From cb53521fc00b4d1084a6e4c729e1db7a4f9c3ea0 Mon Sep 17 00:00:00 2001 From: Stavros Kois Date: Mon, 29 Sep 2025 18:35:23 +0300 Subject: [PATCH 1/3] feat: add InterfaceToType mutation to convert interfaces to type aliases MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This mutation converts TypeScript interfaces to type aliases with object literals: - interface User { name: string } -> type User = { name: string } - Supports generic interfaces with type parameters - Adds TypeLiteralNode expression type and corresponding bindings - Includes test data and TypeScript engine support 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude --- bindings/bindings.go | 41 +++++++++++++++++++++ bindings/expressions.go | 8 ++++ config/mutations.go | 29 ++++++++++++++- convert_test.go | 2 + testdata/interfacetotype/interfacetotype.go | 19 ++++++++++ testdata/interfacetotype/interfacetotype.ts | 22 +++++++++++ testdata/interfacetotype/mutations | 1 + typescript-engine/dist/main.js | 6 +-- typescript-engine/src/index.ts | 7 ++++ 9 files changed, 130 insertions(+), 5 deletions(-) create mode 100644 testdata/interfacetotype/interfacetotype.go create mode 100644 testdata/interfacetotype/interfacetotype.ts create mode 100644 testdata/interfacetotype/mutations diff --git a/bindings/bindings.go b/bindings/bindings.go index c12161a..4c6633f 100644 --- a/bindings/bindings.go +++ b/bindings/bindings.go @@ -99,6 +99,8 @@ func (b *Bindings) ToTypescriptExpressionNode(ety ExpressionType) (*goja.Object, siObj, err = b.ArrayLiteral(ety) case *OperatorNodeType: siObj, err = b.OperatorNode(ety) + case *TypeLiteralNode: + siObj, err = b.TypeLiteralNode(ety) default: return nil, xerrors.Errorf("unsupported type for field type: %T", ety) } @@ -703,3 +705,42 @@ func (b *Bindings) EnumDeclaration(e *Enum) (*goja.Object, error) { return obj, nil } + +func (b *Bindings) TypeLiteralNode(node *TypeLiteralNode) (*goja.Object, error) { + typeLiteralF, err := b.f("typeLiteralNode") + if err != nil { + return nil, err + } + + var members []interface{} + for _, member := range node.Members { + v, err := b.PropertySignature(member) + if err != nil { + return nil, err + } + + // Add field comments if they exist + if len(member.FieldComments) > 0 { + for _, text := range member.FieldComments { + v, err = b.Comment(Comment{ + SingleLine: true, + Text: text, + TrailingNewLine: false, + Node: v, + }) + if err != nil { + return nil, fmt.Errorf("comment field %q: %w", member.Name, err) + } + } + } + + members = append(members, v) + } + + res, err := typeLiteralF(goja.Undefined(), b.vm.NewArray(members...)) + if err != nil { + return nil, xerrors.Errorf("call typeLiteralNode: %w", err) + } + + return res.ToObject(b.vm), nil +} diff --git a/bindings/expressions.go b/bindings/expressions.go index 7535ccd..ae64407 100644 --- a/bindings/expressions.go +++ b/bindings/expressions.go @@ -181,3 +181,11 @@ type EnumMember struct { func (*EnumMember) isNode() {} func (*EnumMember) isExpressionType() {} + +// TypeLiteralNode represents an object type literal like { name: string } +type TypeLiteralNode struct { + Members []*PropertySignature +} + +func (*TypeLiteralNode) isNode() {} +func (*TypeLiteralNode) isExpressionType() {} diff --git a/config/mutations.go b/config/mutations.go index 626dd00..716987b 100644 --- a/config/mutations.go +++ b/config/mutations.go @@ -107,7 +107,7 @@ func TrimEnumPrefix(ts *guts.Typescript) { // EnumAsTypes uses types to handle enums rather than using 'enum'. // An enum will look like: -// type EnumString = "bar" | "baz" | "foo" | "qux"; +// type EnumString = "bar" | "baz" | "foo" | "qux"; func EnumAsTypes(ts *guts.Typescript) { ts.ForEach(func(key string, node bindings.Node) { enum, ok := node.(*bindings.Enum) @@ -142,7 +142,7 @@ func EnumAsTypes(ts *guts.Typescript) { // ) // const MyEnums: string = ["foo", "bar"] <-- this is added // TODO: Enums were changed to use proper enum types. This should be -// updated to support that. EnumLists only works with EnumAsTypes used first. +// updated to support that. EnumLists only works with EnumAsTypes used first. func EnumLists(ts *guts.Typescript) { addNodes := make(map[string]bindings.Node) ts.ForEach(func(key string, node bindings.Node) { @@ -342,6 +342,31 @@ func (v *notNullMaps) Visit(node bindings.Node) walk.Visitor { return v } +// InterfaceToType converts all interfaces to type aliases. +// interface User { name: string } --> type User = { name: string } +func InterfaceToType(ts *guts.Typescript) { + ts.ForEach(func(key string, node bindings.Node) { + intf, ok := node.(*bindings.Interface) + if !ok { + return + } + + // Create a type literal node to represent the interface structure + typeLiteral := &bindings.TypeLiteralNode{ + Members: intf.Fields, + } + + // Replace the interface with a type alias + ts.ReplaceNode(key, &bindings.Alias{ + Name: intf.Name, + Modifiers: intf.Modifiers, + Type: typeLiteral, + Parameters: intf.Parameters, + Source: intf.Source, + }) + }) +} + func isGoEnum(n bindings.Node) (*bindings.Alias, *bindings.UnionType, bool) { al, ok := n.(*bindings.Alias) if !ok { diff --git a/convert_test.go b/convert_test.go index c3fc5c5..d5085b6 100644 --- a/convert_test.go +++ b/convert_test.go @@ -123,6 +123,8 @@ func TestGeneration(t *testing.T) { mutations = append(mutations, config.NullUnionSlices) case "TrimEnumPrefix": mutations = append(mutations, config.TrimEnumPrefix) + case "InterfaceToType": + mutations = append(mutations, config.InterfaceToType) default: t.Fatal("unknown mutation, add it to the list:", m) } diff --git a/testdata/interfacetotype/interfacetotype.go b/testdata/interfacetotype/interfacetotype.go new file mode 100644 index 0000000..8e38182 --- /dev/null +++ b/testdata/interfacetotype/interfacetotype.go @@ -0,0 +1,19 @@ +package codersdk + +type User struct { + ID int `json:"id"` + Name string `json:"name"` + Email string `json:"email"` + IsActive bool `json:"is_active"` +} + +type Address struct { + Street string `json:"street"` + City string `json:"city"` + Country string `json:"country"` +} + +type GenericContainer[T any] struct { + Value T `json:"value"` + Count int `json:"count"` +} diff --git a/testdata/interfacetotype/interfacetotype.ts b/testdata/interfacetotype/interfacetotype.ts new file mode 100644 index 0000000..7d07a87 --- /dev/null +++ b/testdata/interfacetotype/interfacetotype.ts @@ -0,0 +1,22 @@ +// Code generated by 'guts'. DO NOT EDIT. + +// From codersdk/interfacetotype.go +export type Address = { + street: string; + city: string; + country: string; +}; + +// From codersdk/interfacetotype.go +export type GenericContainer = { + value: T; + count: number; +}; + +// From codersdk/interfacetotype.go +export type User = { + id: number; + name: string; + email: string; + is_active: boolean; +}; diff --git a/testdata/interfacetotype/mutations b/testdata/interfacetotype/mutations new file mode 100644 index 0000000..92ae551 --- /dev/null +++ b/testdata/interfacetotype/mutations @@ -0,0 +1 @@ +InterfaceToType,ExportTypes,ReadOnly \ No newline at end of file diff --git a/typescript-engine/dist/main.js b/typescript-engine/dist/main.js index 770c188..d0f247a 100644 --- a/typescript-engine/dist/main.js +++ b/typescript-engine/dist/main.js @@ -1,6 +1,6 @@ -var guts;(()=>{var e={421:function(e,t,n){"use strict";var r,i=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(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){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),a=this&&this.__importStar||(r=function(e){return r=Object.getOwnPropertyNames||function(e){var t=[];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[t.length]=n);return t},r(e)},function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n=r(e),a=0;a{var r="/index.js",i={};(e=>{"use strict";var t=Object.defineProperty,i=(Object.getOwnPropertyDescriptor,Object.getOwnPropertyNames,Object.prototype.hasOwnProperty,(e,n)=>{for(var r in n)t(e,r,{get:n[r],enumerable:!0})}),o={};i(o,{ANONYMOUS:()=>aZ,AccessFlags:()=>Xr,AssertionLevel:()=>ft,AssignmentDeclarationKind:()=>ai,AssignmentKind:()=>Hg,Associativity:()=>ey,BreakpointResolver:()=>$8,BuilderFileEmit:()=>jV,BuilderProgramKind:()=>_W,BuilderState:()=>OV,CallHierarchy:()=>K8,CharacterCodes:()=>ki,CheckFlags:()=>Ur,CheckMode:()=>EB,ClassificationType:()=>CG,ClassificationTypeNames:()=>TG,CommentDirectiveType:()=>Tr,Comparison:()=>c,CompletionInfoFlags:()=>hG,CompletionTriggerKind:()=>lG,Completions:()=>oae,ContainerFlags:()=>FM,ContextFlags:()=>Or,Debug:()=>un,DiagnosticCategory:()=>si,Diagnostics:()=>la,DocumentHighlights:()=>d0,ElementFlags:()=>Gr,EmitFlags:()=>wi,EmitHint:()=>Ei,EmitOnly:()=>Dr,EndOfLineState:()=>bG,ExitStatus:()=>Er,ExportKind:()=>YZ,Extension:()=>Si,ExternalEmitHelpers:()=>Fi,FileIncludeKind:()=>wr,FilePreprocessingDiagnosticsKind:()=>Nr,FileSystemEntryKind:()=>no,FileWatcherEventKind:()=>Bi,FindAllReferences:()=>ice,FlattenLevel:()=>oz,FlowFlags:()=>Sr,ForegroundColorEscapeSequences:()=>PU,FunctionFlags:()=>Ah,GeneratedIdentifierFlags:()=>br,GetLiteralTextFlags:()=>ep,GoToDefinition:()=>Wce,HighlightSpanKind:()=>uG,IdentifierNameMap:()=>OJ,ImportKind:()=>QZ,ImportsNotUsedAsValues:()=>gi,IndentStyle:()=>dG,IndexFlags:()=>Qr,IndexKind:()=>ti,InferenceFlags:()=>ii,InferencePriority:()=>ri,InlayHintKind:()=>_G,InlayHints:()=>lle,InternalEmitFlags:()=>Ni,InternalNodeBuilderFlags:()=>jr,InternalSymbolName:()=>Vr,IntersectionFlags:()=>Ir,InvalidatedProjectKind:()=>nH,JSDocParsingMode:()=>ji,JsDoc:()=>fle,JsTyping:()=>DK,JsxEmit:()=>mi,JsxFlags:()=>hr,JsxReferenceKind:()=>Yr,LanguageFeatureMinimumTarget:()=>Di,LanguageServiceMode:()=>oG,LanguageVariant:()=>bi,LexicalEnvironmentFlags:()=>Ai,ListFormat:()=>Ii,LogLevel:()=>dn,MapCode:()=>Ole,MemberOverrideStatus:()=>Pr,ModifierFlags:()=>gr,ModuleDetectionKind:()=>_i,ModuleInstanceState:()=>CM,ModuleKind:()=>fi,ModuleResolutionKind:()=>li,ModuleSpecifierEnding:()=>LS,NavigateTo:()=>R1,NavigationBar:()=>K1,NewLineKind:()=>hi,NodeBuilderFlags:()=>Lr,NodeCheckFlags:()=>Wr,NodeFactoryFlags:()=>jC,NodeFlags:()=>mr,NodeResolutionFeatures:()=>SR,ObjectFlags:()=>Hr,OperationCanceledException:()=>Cr,OperatorPrecedence:()=>oy,OrganizeImports:()=>Jle,OrganizeImportsMode:()=>cG,OuterExpressionKinds:()=>Pi,OutliningElementsCollector:()=>h_e,OutliningSpanKind:()=>yG,OutputFileType:()=>vG,PackageJsonAutoImportPreference:()=>iG,PackageJsonDependencyGroup:()=>rG,PatternMatchKind:()=>B0,PollingInterval:()=>Ji,PollingWatchKind:()=>pi,PragmaKindFlags:()=>Oi,PredicateSemantics:()=>vr,PreparePasteEdits:()=>Ype,PrivateIdentifierKind:()=>Bw,ProcessLevel:()=>wz,ProgramUpdateLevel:()=>cU,QuotePreference:()=>RQ,RegularExpressionFlags:()=>xr,RelationComparisonResult:()=>yr,Rename:()=>w_e,ScriptElementKind:()=>kG,ScriptElementKindModifier:()=>SG,ScriptKind:()=>yi,ScriptSnapshot:()=>XK,ScriptTarget:()=>vi,SemanticClassificationFormat:()=>sG,SemanticMeaning:()=>NG,SemicolonPreference:()=>pG,SignatureCheckMode:()=>PB,SignatureFlags:()=>ei,SignatureHelp:()=>I_e,SignatureInfo:()=>LV,SignatureKind:()=>Zr,SmartSelectionRange:()=>iue,SnippetKind:()=>Ci,StatisticType:()=>zH,StructureIsReused:()=>Fr,SymbolAccessibility:()=>Br,SymbolDisplay:()=>mue,SymbolDisplayPartKind:()=>gG,SymbolFlags:()=>qr,SymbolFormatFlags:()=>Mr,SyntaxKind:()=>fr,Ternary:()=>oi,ThrottledCancellationToken:()=>R8,TokenClass:()=>xG,TokenFlags:()=>kr,TransformFlags:()=>Ti,TypeFacts:()=>DB,TypeFlags:()=>$r,TypeFormatFlags:()=>Rr,TypeMapKind:()=>ni,TypePredicateKind:()=>Jr,TypeReferenceSerializationKind:()=>zr,UnionReduction:()=>Ar,UpToDateStatusType:()=>F$,VarianceFlags:()=>Kr,Version:()=>bn,VersionRange:()=>kn,WatchDirectoryFlags:()=>xi,WatchDirectoryKind:()=>di,WatchFileKind:()=>ui,WatchLogLevel:()=>gU,WatchType:()=>p$,accessPrivateIdentifier:()=>tz,addEmitFlags:()=>rw,addEmitHelper:()=>Sw,addEmitHelpers:()=>Tw,addInternalEmitFlags:()=>ow,addNodeFactoryPatcher:()=>MC,addObjectAllocatorPatcher:()=>Mx,addRange:()=>se,addRelatedInfo:()=>iT,addSyntheticLeadingComment:()=>gw,addSyntheticTrailingComment:()=>vw,addToSeen:()=>vx,advancedAsyncSuperHelper:()=>bN,affectsDeclarationPathOptionDeclarations:()=>yO,affectsEmitOptionDeclarations:()=>hO,allKeysStartWithDot:()=>ZR,altDirectorySeparator:()=>_o,and:()=>Zt,append:()=>ie,appendIfUnique:()=>le,arrayFrom:()=>Oe,arrayIsEqualTo:()=>te,arrayIsHomogeneous:()=>bT,arrayOf:()=>Ie,arrayReverseIterator:()=>ue,arrayToMap:()=>Re,arrayToMultiMap:()=>Be,arrayToNumericMap:()=>Me,assertType:()=>nn,assign:()=>Le,asyncSuperHelper:()=>vN,attachFileToDiagnostics:()=>Hx,base64decode:()=>Sb,base64encode:()=>kb,binarySearch:()=>Te,binarySearchKey:()=>Ce,bindSourceFile:()=>AM,breakIntoCharacterSpans:()=>t1,breakIntoWordSpans:()=>n1,buildLinkParts:()=>bY,buildOpts:()=>DO,buildOverload:()=>lfe,bundlerModuleNameResolver:()=>TR,canBeConvertedToAsync:()=>w1,canHaveDecorators:()=>iI,canHaveExportModifier:()=>UT,canHaveFlowNode:()=>Ig,canHaveIllegalDecorators:()=>NA,canHaveIllegalModifiers:()=>DA,canHaveIllegalType:()=>CA,canHaveIllegalTypeParameters:()=>wA,canHaveJSDoc:()=>Og,canHaveLocals:()=>au,canHaveModifiers:()=>rI,canHaveModuleSpecifier:()=>gg,canHaveSymbol:()=>ou,canIncludeBindAndCheckDiagnostics:()=>uT,canJsonReportNoInputFiles:()=>ZL,canProduceDiagnostics:()=>aq,canUsePropertyAccess:()=>WT,canWatchAffectingLocation:()=>IW,canWatchAtTypes:()=>EW,canWatchDirectoryOrFile:()=>DW,canWatchDirectoryOrFilePath:()=>FW,cartesianProduct:()=>an,cast:()=>nt,chainBundle:()=>NJ,chainDiagnosticMessages:()=>Yx,changeAnyExtension:()=>$o,changeCompilerHostLikeToUseCache:()=>NU,changeExtension:()=>VS,changeFullExtension:()=>Ho,changesAffectModuleResolution:()=>Qu,changesAffectingProgramStructure:()=>Yu,characterCodeToRegularExpressionFlag:()=>Aa,childIsDecorated:()=>fm,classElementOrClassElementParameterIsDecorated:()=>gm,classHasClassThisAssignment:()=>gz,classHasDeclaredOrExplicitlyAssignedName:()=>kz,classHasExplicitlyAssignedName:()=>xz,classOrConstructorParameterIsDecorated:()=>mm,classicNameResolver:()=>yM,classifier:()=>d7,cleanExtendedConfigCache:()=>uU,clear:()=>F,clearMap:()=>_x,clearSharedExtendedConfigFileWatcher:()=>_U,climbPastPropertyAccess:()=>zG,clone:()=>qe,cloneCompilerOptions:()=>sQ,closeFileWatcher:()=>tx,closeFileWatcherOf:()=>vU,codefix:()=>f7,collapseTextChangeRangesAcrossMultipleVersions:()=>Xs,collectExternalModuleInfo:()=>PJ,combine:()=>oe,combinePaths:()=>jo,commandLineOptionOfCustomType:()=>CO,commentPragmas:()=>Li,commonOptionsWithBuild:()=>uO,compact:()=>ne,compareBooleans:()=>Ot,compareDataObjects:()=>lx,compareDiagnostics:()=>tk,compareEmitHelpers:()=>zw,compareNumberOfDirectorySeparators:()=>BS,comparePaths:()=>Yo,comparePathsCaseInsensitive:()=>Qo,comparePathsCaseSensitive:()=>Xo,comparePatternKeys:()=>tM,compareProperties:()=>It,compareStringsCaseInsensitive:()=>St,compareStringsCaseInsensitiveEslintCompatible:()=>Tt,compareStringsCaseSensitive:()=>Ct,compareStringsCaseSensitiveUI:()=>At,compareTextSpans:()=>bt,compareValues:()=>vt,compilerOptionsAffectDeclarationPath:()=>Uk,compilerOptionsAffectEmit:()=>qk,compilerOptionsAffectSemanticDiagnostics:()=>zk,compilerOptionsDidYouMeanDiagnostics:()=>UO,compilerOptionsIndicateEsModules:()=>PQ,computeCommonSourceDirectoryOfFilenames:()=>kU,computeLineAndCharacterOfPosition:()=>Ra,computeLineOfPosition:()=>Ma,computeLineStarts:()=>Ia,computePositionOfLineAndCharacter:()=>La,computeSignatureWithDiagnostics:()=>pW,computeSuggestionDiagnostics:()=>g1,computedOptions:()=>mk,concatenate:()=>K,concatenateDiagnosticMessageChains:()=>Zx,consumesNodeCoreModules:()=>CZ,contains:()=>T,containsIgnoredPath:()=>PT,containsObjectRestOrSpread:()=>tI,containsParseError:()=>gd,containsPath:()=>Zo,convertCompilerOptionsForTelemetry:()=>Pj,convertCompilerOptionsFromJson:()=>ij,convertJsonOption:()=>dj,convertToBase64:()=>xb,convertToJson:()=>bL,convertToObject:()=>vL,convertToOptionsWithAbsolutePaths:()=>OL,convertToRelativePath:()=>ra,convertToTSConfig:()=>SL,convertTypeAcquisitionFromJson:()=>oj,copyComments:()=>UY,copyEntries:()=>rd,copyLeadingComments:()=>KY,copyProperties:()=>Ve,copyTrailingAsLeadingComments:()=>XY,copyTrailingComments:()=>GY,couldStartTrivia:()=>Ga,countWhere:()=>w,createAbstractBuilder:()=>CW,createAccessorPropertyBackingField:()=>GA,createAccessorPropertyGetRedirector:()=>XA,createAccessorPropertySetRedirector:()=>QA,createBaseNodeFactory:()=>FC,createBinaryExpressionTrampoline:()=>UA,createBuilderProgram:()=>fW,createBuilderProgramUsingIncrementalBuildInfo:()=>vW,createBuilderStatusReporter:()=>j$,createCacheableExportInfoMap:()=>ZZ,createCachedDirectoryStructureHost:()=>sU,createClassifier:()=>u0,createCommentDirectivesMap:()=>Md,createCompilerDiagnostic:()=>Xx,createCompilerDiagnosticForInvalidCustomType:()=>OO,createCompilerDiagnosticFromMessageChain:()=>Qx,createCompilerHost:()=>SU,createCompilerHostFromProgramHost:()=>m$,createCompilerHostWorker:()=>wU,createDetachedDiagnostic:()=>Vx,createDiagnosticCollection:()=>ly,createDiagnosticForFileFromMessageChain:()=>Up,createDiagnosticForNode:()=>jp,createDiagnosticForNodeArray:()=>Rp,createDiagnosticForNodeArrayFromMessageChain:()=>Jp,createDiagnosticForNodeFromMessageChain:()=>Bp,createDiagnosticForNodeInSourceFile:()=>Mp,createDiagnosticForRange:()=>Wp,createDiagnosticMessageChainFromDiagnostic:()=>Vp,createDiagnosticReporter:()=>VW,createDocumentPositionMapper:()=>kJ,createDocumentRegistry:()=>N0,createDocumentRegistryInternal:()=>D0,createEmitAndSemanticDiagnosticsBuilderProgram:()=>TW,createEmitHelperFactory:()=>Jw,createEmptyExports:()=>BP,createEvaluator:()=>fC,createExpressionForJsxElement:()=>VP,createExpressionForJsxFragment:()=>WP,createExpressionForObjectLiteralElementLike:()=>GP,createExpressionForPropertyName:()=>KP,createExpressionFromEntityName:()=>HP,createExternalHelpersImportDeclarationIfNeeded:()=>pA,createFileDiagnostic:()=>Kx,createFileDiagnosticFromMessageChain:()=>qp,createFlowNode:()=>EM,createForOfBindingStatement:()=>$P,createFutureSourceFile:()=>XZ,createGetCanonicalFileName:()=>Wt,createGetIsolatedDeclarationErrors:()=>lq,createGetSourceFile:()=>TU,createGetSymbolAccessibilityDiagnosticForNode:()=>cq,createGetSymbolAccessibilityDiagnosticForNodeName:()=>sq,createGetSymbolWalker:()=>MM,createIncrementalCompilerHost:()=>C$,createIncrementalProgram:()=>w$,createJsxFactoryExpression:()=>UP,createLanguageService:()=>J8,createLanguageServiceSourceFile:()=>I8,createMemberAccessForPropertyName:()=>JP,createModeAwareCache:()=>uR,createModeAwareCacheKey:()=>_R,createModeMismatchDetails:()=>ud,createModuleNotFoundChain:()=>_d,createModuleResolutionCache:()=>mR,createModuleResolutionLoader:()=>eV,createModuleResolutionLoaderUsingGlobalCache:()=>JW,createModuleSpecifierResolutionHost:()=>AQ,createMultiMap:()=>$e,createNameResolver:()=>hC,createNodeConverters:()=>AC,createNodeFactory:()=>BC,createOptionNameMap:()=>EO,createOverload:()=>cfe,createPackageJsonImportFilter:()=>TZ,createPackageJsonInfo:()=>SZ,createParenthesizerRules:()=>EC,createPatternMatcher:()=>z0,createPrinter:()=>rU,createPrinterWithDefaults:()=>Zq,createPrinterWithRemoveComments:()=>eU,createPrinterWithRemoveCommentsNeverAsciiEscape:()=>tU,createPrinterWithRemoveCommentsOmitTrailingSemicolon:()=>nU,createProgram:()=>bV,createProgramHost:()=>y$,createPropertyNameNodeForIdentifierOrLiteral:()=>BT,createQueue:()=>Ge,createRange:()=>Pb,createRedirectedBuilderProgram:()=>kW,createResolutionCache:()=>zW,createRuntimeTypeSerializer:()=>Oz,createScanner:()=>ms,createSemanticDiagnosticsBuilderProgram:()=>SW,createSet:()=>Xe,createSolutionBuilder:()=>J$,createSolutionBuilderHost:()=>M$,createSolutionBuilderWithWatch:()=>z$,createSolutionBuilderWithWatchHost:()=>B$,createSortedArray:()=>Y,createSourceFile:()=>LI,createSourceMapGenerator:()=>oJ,createSourceMapSource:()=>QC,createSuperAccessVariableStatement:()=>Mz,createSymbolTable:()=>Hu,createSymlinkCache:()=>Gk,createSyntacticTypeNodeBuilder:()=>NK,createSystemWatchFunctions:()=>oo,createTextChange:()=>vQ,createTextChangeFromStartLength:()=>yQ,createTextChangeRange:()=>Ks,createTextRangeFromNode:()=>mQ,createTextRangeFromSpan:()=>hQ,createTextSpan:()=>Vs,createTextSpanFromBounds:()=>Ws,createTextSpanFromNode:()=>pQ,createTextSpanFromRange:()=>gQ,createTextSpanFromStringLiteralLikeContent:()=>fQ,createTextWriter:()=>Iy,createTokenRange:()=>jb,createTypeChecker:()=>BB,createTypeReferenceDirectiveResolutionCache:()=>gR,createTypeReferenceResolutionLoader:()=>rV,createWatchCompilerHost:()=>N$,createWatchCompilerHostOfConfigFile:()=>x$,createWatchCompilerHostOfFilesAndCompilerOptions:()=>k$,createWatchFactory:()=>f$,createWatchHost:()=>d$,createWatchProgram:()=>D$,createWatchStatusReporter:()=>KW,createWriteFileMeasuringIO:()=>CU,declarationNameToString:()=>Ep,decodeMappings:()=>pJ,decodedTextSpanIntersectsWith:()=>Bs,deduplicate:()=>Q,defaultInitCompilerOptions:()=>IO,defaultMaximumTruncationLength:()=>Uu,diagnosticCategoryName:()=>ci,diagnosticToString:()=>UZ,diagnosticsEqualityComparer:()=>ok,directoryProbablyExists:()=>Nb,directorySeparator:()=>lo,displayPart:()=>sY,displayPartsToString:()=>D8,disposeEmitNodes:()=>ew,documentSpansEqual:()=>YQ,dumpTracingLegend:()=>pr,elementAt:()=>pe,elideNodes:()=>WA,emitDetachedComments:()=>vv,emitFiles:()=>Gq,emitFilesAndReportErrors:()=>c$,emitFilesAndReportErrorsAndGetExitStatus:()=>l$,emitModuleKindIsNonNodeESM:()=>Ik,emitNewLineBeforeLeadingCommentOfPosition:()=>yv,emitResolverSkipsTypeChecking:()=>Kq,emitSkippedWithNoDiagnostics:()=>CV,emptyArray:()=>l,emptyFileSystemEntries:()=>tT,emptyMap:()=>_,emptyOptions:()=>aG,endsWith:()=>Rt,ensurePathIsNonModuleName:()=>Wo,ensureScriptKind:()=>yS,ensureTrailingDirectorySeparator:()=>Vo,entityNameToString:()=>Lp,enumerateInsertsAndDeletes:()=>on,equalOwnProperties:()=>je,equateStringsCaseInsensitive:()=>gt,equateStringsCaseSensitive:()=>ht,equateValues:()=>mt,escapeJsxAttributeString:()=>Ny,escapeLeadingUnderscores:()=>pc,escapeNonAsciiString:()=>ky,escapeSnippetText:()=>RT,escapeString:()=>by,escapeTemplateSubstitution:()=>uy,evaluatorResult:()=>pC,every:()=>v,exclusivelyPrefixedNodeCoreModules:()=>TC,executeCommandLine:()=>rK,expandPreOrPostfixIncrementOrDecrementExpression:()=>XP,explainFiles:()=>n$,explainIfFileIsRedirectAndImpliedFormat:()=>r$,exportAssignmentIsAlias:()=>fh,expressionResultIsUnused:()=>ET,extend:()=>Ue,extensionFromPath:()=>QS,extensionIsTS:()=>GS,extensionsNotSupportingExtensionlessResolution:()=>FS,externalHelpersModuleNameText:()=>qu,factory:()=>XC,fileExtensionIs:()=>ko,fileExtensionIsOneOf:()=>So,fileIncludeReasonToDiagnostics:()=>a$,fileShouldUseJavaScriptRequire:()=>KZ,filter:()=>N,filterMutate:()=>D,filterSemanticDiagnostics:()=>NV,find:()=>b,findAncestor:()=>_c,findBestPatternMatch:()=>Kt,findChildOfKind:()=>yX,findComputedPropertyNameCacheAssignment:()=>YA,findConfigFile:()=>bU,findConstructorDeclaration:()=>gC,findContainingList:()=>vX,findDiagnosticForNode:()=>DZ,findFirstNonJsxWhitespaceToken:()=>IX,findIndex:()=>k,findLast:()=>x,findLastIndex:()=>S,findListItemInfo:()=>gX,findModifier:()=>KQ,findNextToken:()=>LX,findPackageJson:()=>kZ,findPackageJsons:()=>xZ,findPrecedingMatchingToken:()=>$X,findPrecedingToken:()=>jX,findSuperStatementIndexPath:()=>qJ,findTokenOnLeftOfPosition:()=>OX,findUseStrictPrologue:()=>tA,first:()=>ge,firstDefined:()=>f,firstDefinedIterator:()=>m,firstIterator:()=>he,firstOrOnly:()=>IZ,firstOrUndefined:()=>fe,firstOrUndefinedIterator:()=>me,fixupCompilerOptions:()=>j1,flatMap:()=>O,flatMapIterator:()=>j,flatMapToMutable:()=>L,flatten:()=>I,flattenCommaList:()=>eI,flattenDestructuringAssignment:()=>az,flattenDestructuringBinding:()=>lz,flattenDiagnosticMessageText:()=>UU,forEach:()=>d,forEachAncestor:()=>ed,forEachAncestorDirectory:()=>aa,forEachAncestorDirectoryStoppingAtGlobalCache:()=>sM,forEachChild:()=>PI,forEachChildRecursively:()=>AI,forEachDynamicImportOrRequireCall:()=>wC,forEachEmittedFile:()=>Fq,forEachEnclosingBlockScopeContainer:()=>Fp,forEachEntry:()=>td,forEachExternalModuleToImportFrom:()=>n0,forEachImportClauseDeclaration:()=>Tg,forEachKey:()=>nd,forEachLeadingCommentRange:()=>is,forEachNameInAccessChainWalkingLeft:()=>wx,forEachNameOfDefaultExport:()=>_0,forEachPropertyAssignment:()=>qf,forEachResolvedProjectReference:()=>oV,forEachReturnStatement:()=>wf,forEachRight:()=>p,forEachTrailingCommentRange:()=>os,forEachTsConfigPropArray:()=>$f,forEachUnique:()=>eY,forEachYieldExpression:()=>Nf,formatColorAndReset:()=>BU,formatDiagnostic:()=>EU,formatDiagnostics:()=>FU,formatDiagnosticsWithColorAndContext:()=>qU,formatGeneratedName:()=>KA,formatGeneratedNamePart:()=>HA,formatLocation:()=>zU,formatMessage:()=>Gx,formatStringFromArgs:()=>Jx,formatting:()=>Zue,generateDjb2Hash:()=>Ri,generateTSConfig:()=>IL,getAdjustedReferenceLocation:()=>NX,getAdjustedRenameLocation:()=>DX,getAliasDeclarationFromName:()=>dh,getAllAccessorDeclarations:()=>dv,getAllDecoratorsOfClass:()=>GJ,getAllDecoratorsOfClassElement:()=>XJ,getAllJSDocTags:()=>al,getAllJSDocTagsOfKind:()=>sl,getAllKeys:()=>Pe,getAllProjectOutputs:()=>Wq,getAllSuperTypeNodes:()=>bh,getAllowImportingTsExtensions:()=>gk,getAllowJSCompilerOption:()=>Pk,getAllowSyntheticDefaultImports:()=>Sk,getAncestor:()=>Sh,getAnyExtensionFromPath:()=>Po,getAreDeclarationMapsEnabled:()=>Ek,getAssignedExpandoInitializer:()=>Wm,getAssignedName:()=>Cc,getAssignmentDeclarationKind:()=>eg,getAssignmentDeclarationPropertyAccessKind:()=>_g,getAssignmentTargetKind:()=>Gg,getAutomaticTypeDirectiveNames:()=>rR,getBaseFileName:()=>Fo,getBinaryOperatorPrecedence:()=>sy,getBuildInfo:()=>Qq,getBuildInfoFileVersionMap:()=>bW,getBuildInfoText:()=>Xq,getBuildOrderFromAnyBuildOrder:()=>L$,getBuilderCreationParameters:()=>uW,getBuilderFileEmit:()=>MV,getCanonicalDiagnostic:()=>$p,getCheckFlags:()=>nx,getClassExtendsHeritageElement:()=>yh,getClassLikeDeclarationOfSymbol:()=>fx,getCombinedLocalAndExportSymbolFlags:()=>ox,getCombinedModifierFlags:()=>rc,getCombinedNodeFlags:()=>oc,getCombinedNodeFlagsAlwaysIncludeJSDoc:()=>ic,getCommentRange:()=>dw,getCommonSourceDirectory:()=>Uq,getCommonSourceDirectoryOfConfig:()=>Vq,getCompilerOptionValue:()=>Vk,getCompilerOptionsDiffValue:()=>PL,getConditions:()=>tR,getConfigFileParsingDiagnostics:()=>gV,getConstantValue:()=>xw,getContainerFlags:()=>jM,getContainerNode:()=>tX,getContainingClass:()=>Gf,getContainingClassExcludingClassDecorators:()=>Yf,getContainingClassStaticBlock:()=>Xf,getContainingFunction:()=>Hf,getContainingFunctionDeclaration:()=>Kf,getContainingFunctionOrClassStaticBlock:()=>Qf,getContainingNodeArray:()=>AT,getContainingObjectLiteralElement:()=>q8,getContextualTypeFromParent:()=>eZ,getContextualTypeFromParentOrAncestorTypeNode:()=>SX,getDeclarationDiagnostics:()=>_q,getDeclarationEmitExtensionForPath:()=>Vy,getDeclarationEmitOutputFilePath:()=>qy,getDeclarationEmitOutputFilePathWorker:()=>Uy,getDeclarationFileExtension:()=>HI,getDeclarationFromName:()=>lh,getDeclarationModifierFlagsFromSymbol:()=>rx,getDeclarationOfKind:()=>Wu,getDeclarationsOfKind:()=>$u,getDeclaredExpandoInitializer:()=>Vm,getDecorators:()=>wc,getDefaultCompilerOptions:()=>F8,getDefaultFormatCodeSettings:()=>fG,getDefaultLibFileName:()=>Ns,getDefaultLibFilePath:()=>V8,getDefaultLikeExportInfo:()=>c0,getDefaultLikeExportNameFromDeclaration:()=>LZ,getDefaultResolutionModeForFileWorker:()=>TV,getDiagnosticText:()=>XO,getDiagnosticsWithinSpan:()=>FZ,getDirectoryPath:()=>Do,getDirectoryToWatchFailedLookupLocation:()=>OW,getDirectoryToWatchFailedLookupLocationFromTypeRoot:()=>RW,getDocumentPositionMapper:()=>p1,getDocumentSpansEqualityComparer:()=>ZQ,getESModuleInterop:()=>kk,getEditsForFileRename:()=>P0,getEffectiveBaseTypeNode:()=>hh,getEffectiveConstraintOfTypeParameter:()=>_l,getEffectiveContainerForJSDocTemplateTag:()=>Bg,getEffectiveImplementsTypeNodes:()=>vh,getEffectiveInitializer:()=>Um,getEffectiveJSDocHost:()=>qg,getEffectiveModifierFlags:()=>Mv,getEffectiveModifierFlagsAlwaysIncludeJSDoc:()=>Bv,getEffectiveModifierFlagsNoCache:()=>Uv,getEffectiveReturnTypeNode:()=>mv,getEffectiveSetAccessorTypeAnnotationNode:()=>hv,getEffectiveTypeAnnotationNode:()=>pv,getEffectiveTypeParameterDeclarations:()=>ll,getEffectiveTypeRoots:()=>Gj,getElementOrPropertyAccessArgumentExpressionOrName:()=>cg,getElementOrPropertyAccessName:()=>lg,getElementsOfBindingOrAssignmentPattern:()=>SA,getEmitDeclarations:()=>Nk,getEmitFlags:()=>Qd,getEmitHelpers:()=>ww,getEmitModuleDetectionKind:()=>bk,getEmitModuleFormatOfFileWorker:()=>kV,getEmitModuleKind:()=>yk,getEmitModuleResolutionKind:()=>vk,getEmitScriptTarget:()=>hk,getEmitStandardClassFields:()=>Jk,getEnclosingBlockScopeContainer:()=>Dp,getEnclosingContainer:()=>Np,getEncodedSemanticClassifications:()=>b0,getEncodedSyntacticClassifications:()=>C0,getEndLinePosition:()=>Sd,getEntityNameFromTypeNode:()=>lm,getEntrypointsFromPackageJsonInfo:()=>UR,getErrorCountForSummary:()=>XW,getErrorSpanForNode:()=>Gp,getErrorSummaryText:()=>e$,getEscapedTextOfIdentifierOrLiteral:()=>qh,getEscapedTextOfJsxAttributeName:()=>ZT,getEscapedTextOfJsxNamespacedName:()=>nC,getExpandoInitializer:()=>$m,getExportAssignmentExpression:()=>mh,getExportInfoMap:()=>s0,getExportNeedsImportStarHelper:()=>DJ,getExpressionAssociativity:()=>ty,getExpressionPrecedence:()=>ry,getExternalHelpersModuleName:()=>uA,getExternalModuleImportEqualsDeclarationExpression:()=>Tm,getExternalModuleName:()=>xg,getExternalModuleNameFromDeclaration:()=>By,getExternalModuleNameFromPath:()=>Jy,getExternalModuleNameLiteral:()=>mA,getExternalModuleRequireArgument:()=>Cm,getFallbackOptions:()=>yU,getFileEmitOutput:()=>IV,getFileMatcherPatterns:()=>pS,getFileNamesFromConfigSpecs:()=>vj,getFileWatcherEventKind:()=>Xi,getFilesInErrorForSummary:()=>QW,getFirstConstructorWithBody:()=>rv,getFirstIdentifier:()=>ab,getFirstNonSpaceCharacterPosition:()=>IY,getFirstProjectOutput:()=>Hq,getFixableErrorSpanExpression:()=>PZ,getFormatCodeSettingsForWriting:()=>VZ,getFullWidth:()=>od,getFunctionFlags:()=>Ih,getHeritageClause:()=>kh,getHostSignatureFromJSDoc:()=>zg,getIdentifierAutoGenerate:()=>jw,getIdentifierGeneratedImportReference:()=>Mw,getIdentifierTypeArguments:()=>Ow,getImmediatelyInvokedFunctionExpression:()=>im,getImpliedNodeFormatForEmitWorker:()=>SV,getImpliedNodeFormatForFile:()=>hV,getImpliedNodeFormatForFileWorker:()=>yV,getImportNeedsImportDefaultHelper:()=>EJ,getImportNeedsImportStarHelper:()=>FJ,getIndentString:()=>Py,getInferredLibraryNameResolveFrom:()=>cV,getInitializedVariables:()=>Yb,getInitializerOfBinaryExpression:()=>ug,getInitializerOfBindingOrAssignmentElement:()=>hA,getInterfaceBaseTypeNodes:()=>xh,getInternalEmitFlags:()=>Yd,getInvokedExpression:()=>_m,getIsFileExcluded:()=>a0,getIsolatedModules:()=>xk,getJSDocAugmentsTag:()=>Lc,getJSDocClassTag:()=>Rc,getJSDocCommentRanges:()=>hf,getJSDocCommentsAndTags:()=>Lg,getJSDocDeprecatedTag:()=>Hc,getJSDocDeprecatedTagNoCache:()=>Kc,getJSDocEnumTag:()=>Gc,getJSDocHost:()=>Ug,getJSDocImplementsTags:()=>jc,getJSDocOverloadTags:()=>Jg,getJSDocOverrideTagNoCache:()=>$c,getJSDocParameterTags:()=>Fc,getJSDocParameterTagsNoCache:()=>Ec,getJSDocPrivateTag:()=>Jc,getJSDocPrivateTagNoCache:()=>zc,getJSDocProtectedTag:()=>qc,getJSDocProtectedTagNoCache:()=>Uc,getJSDocPublicTag:()=>Mc,getJSDocPublicTagNoCache:()=>Bc,getJSDocReadonlyTag:()=>Vc,getJSDocReadonlyTagNoCache:()=>Wc,getJSDocReturnTag:()=>Qc,getJSDocReturnType:()=>nl,getJSDocRoot:()=>Vg,getJSDocSatisfiesExpressionType:()=>QT,getJSDocSatisfiesTag:()=>Zc,getJSDocTags:()=>il,getJSDocTemplateTag:()=>Yc,getJSDocThisTag:()=>Xc,getJSDocType:()=>tl,getJSDocTypeAliasName:()=>TA,getJSDocTypeAssertionType:()=>aA,getJSDocTypeParameterDeclarations:()=>gv,getJSDocTypeParameterTags:()=>Ac,getJSDocTypeParameterTagsNoCache:()=>Ic,getJSDocTypeTag:()=>el,getJSXImplicitImportBase:()=>$k,getJSXRuntimeImport:()=>Hk,getJSXTransformEnabled:()=>Wk,getKeyForCompilerOptions:()=>sR,getLanguageVariant:()=>ck,getLastChild:()=>yx,getLeadingCommentRanges:()=>ls,getLeadingCommentRangesOfNode:()=>gf,getLeftmostAccessExpression:()=>Cx,getLeftmostExpression:()=>Nx,getLibraryNameFromLibFileName:()=>lV,getLineAndCharacterOfPosition:()=>Ja,getLineInfo:()=>lJ,getLineOfLocalPosition:()=>tv,getLineStartPositionForPosition:()=>oX,getLineStarts:()=>ja,getLinesBetweenPositionAndNextNonWhitespaceCharacter:()=>Kb,getLinesBetweenPositionAndPrecedingNonWhitespaceCharacter:()=>Hb,getLinesBetweenPositions:()=>Ba,getLinesBetweenRangeEndAndRangeStart:()=>qb,getLinesBetweenRangeEndPositions:()=>Ub,getLiteralText:()=>tp,getLocalNameForExternalImport:()=>fA,getLocalSymbolForExportDefault:()=>yb,getLocaleSpecificMessage:()=>Ux,getLocaleTimeString:()=>HW,getMappedContextSpan:()=>iY,getMappedDocumentSpan:()=>rY,getMappedLocation:()=>nY,getMatchedFileSpec:()=>i$,getMatchedIncludeSpec:()=>o$,getMeaningFromDeclaration:()=>DG,getMeaningFromLocation:()=>FG,getMembersOfDeclaration:()=>Ff,getModeForFileReference:()=>VU,getModeForResolutionAtIndex:()=>WU,getModeForUsageLocation:()=>HU,getModifiedTime:()=>qi,getModifiers:()=>Nc,getModuleInstanceState:()=>wM,getModuleNameStringLiteralAt:()=>AV,getModuleSpecifierEndingPreference:()=>jS,getModuleSpecifierResolverHost:()=>IQ,getNameForExportedSymbol:()=>OZ,getNameFromImportAttribute:()=>uC,getNameFromIndexInfo:()=>Pp,getNameFromPropertyName:()=>DQ,getNameOfAccessExpression:()=>Sx,getNameOfCompilerOptionValue:()=>DL,getNameOfDeclaration:()=>Tc,getNameOfExpando:()=>Km,getNameOfJSDocTypedef:()=>xc,getNameOfScriptTarget:()=>Bk,getNameOrArgument:()=>sg,getNameTable:()=>z8,getNamespaceDeclarationNode:()=>kg,getNewLineCharacter:()=>Eb,getNewLineKind:()=>qZ,getNewLineOrDefaultFromHost:()=>kY,getNewTargetContainer:()=>nm,getNextJSDocCommentLocation:()=>Rg,getNodeChildren:()=>LP,getNodeForGeneratedName:()=>$A,getNodeId:()=>jB,getNodeKind:()=>nX,getNodeModifiers:()=>ZX,getNodeModulePathParts:()=>zT,getNonAssignedNameOfDeclaration:()=>Sc,getNonAssignmentOperatorForCompoundAssignment:()=>BJ,getNonAugmentationDeclaration:()=>fp,getNonDecoratorTokenPosOfNode:()=>Jd,getNonIncrementalBuildInfoRoots:()=>xW,getNonModifierTokenPosOfNode:()=>zd,getNormalizedAbsolutePath:()=>Bo,getNormalizedAbsolutePathWithoutRoot:()=>zo,getNormalizedPathComponents:()=>Mo,getObjectFlags:()=>mx,getOperatorAssociativity:()=>ny,getOperatorPrecedence:()=>ay,getOptionFromName:()=>WO,getOptionsForLibraryResolution:()=>hR,getOptionsNameMap:()=>PO,getOrCreateEmitNode:()=>ZC,getOrUpdate:()=>z,getOriginalNode:()=>lc,getOriginalNodeId:()=>TJ,getOutputDeclarationFileName:()=>jq,getOutputDeclarationFileNameWorker:()=>Rq,getOutputExtension:()=>Oq,getOutputFileNames:()=>$q,getOutputJSFileNameWorker:()=>Bq,getOutputPathsFor:()=>Aq,getOwnEmitOutputFilePath:()=>zy,getOwnKeys:()=>Ee,getOwnValues:()=>Ae,getPackageJsonTypesVersionsPaths:()=>Kj,getPackageNameFromTypesPackageName:()=>mM,getPackageScopeForPath:()=>$R,getParameterSymbolFromJSDoc:()=>Mg,getParentNodeInSpan:()=>$Q,getParseTreeNode:()=>dc,getParsedCommandLineOfConfigFile:()=>QO,getPathComponents:()=>Ao,getPathFromPathComponents:()=>Io,getPathUpdater:()=>A0,getPathsBasePath:()=>Hy,getPatternFromSpec:()=>_S,getPendingEmitKindWithSeen:()=>GV,getPositionOfLineAndCharacter:()=>Oa,getPossibleGenericSignatures:()=>KX,getPossibleOriginalInputExtensionForExtension:()=>Wy,getPossibleOriginalInputPathWithoutChangingExt:()=>$y,getPossibleTypeArgumentsInfo:()=>GX,getPreEmitDiagnostics:()=>DU,getPrecedingNonSpaceCharacterPosition:()=>OY,getPrivateIdentifier:()=>ZJ,getProperties:()=>UJ,getProperty:()=>Fe,getPropertyArrayElementValue:()=>Uf,getPropertyAssignmentAliasLikeExpression:()=>gh,getPropertyNameForPropertyNameNode:()=>Bh,getPropertyNameFromType:()=>aC,getPropertyNameOfBindingOrAssignmentElement:()=>bA,getPropertySymbolFromBindingElement:()=>WQ,getPropertySymbolsFromContextualType:()=>U8,getQuoteFromPreference:()=>JQ,getQuotePreference:()=>BQ,getRangesWhere:()=>H,getRefactorContextSpan:()=>EZ,getReferencedFileLocation:()=>fV,getRegexFromPattern:()=>fS,getRegularExpressionForWildcard:()=>sS,getRegularExpressionsForWildcards:()=>cS,getRelativePathFromDirectory:()=>na,getRelativePathFromFile:()=>ia,getRelativePathToDirectoryOrUrl:()=>oa,getRenameLocation:()=>HY,getReplacementSpanForContextToken:()=>dQ,getResolutionDiagnostic:()=>EV,getResolutionModeOverride:()=>XU,getResolveJsonModule:()=>wk,getResolvePackageJsonExports:()=>Tk,getResolvePackageJsonImports:()=>Ck,getResolvedExternalModuleName:()=>Ry,getResolvedModuleFromResolution:()=>cd,getResolvedTypeReferenceDirectiveFromResolution:()=>ld,getRestIndicatorOfBindingOrAssignmentElement:()=>vA,getRestParameterElementType:()=>Df,getRightMostAssignedExpression:()=>Xm,getRootDeclaration:()=>Qh,getRootDirectoryOfResolutionCache:()=>MW,getRootLength:()=>No,getScriptKind:()=>FY,getScriptKindFromFileName:()=>vS,getScriptTargetFeatures:()=>Zd,getSelectedEffectiveModifierFlags:()=>Lv,getSelectedSyntacticModifierFlags:()=>jv,getSemanticClassifications:()=>y0,getSemanticJsxChildren:()=>cy,getSetAccessorTypeAnnotationNode:()=>ov,getSetAccessorValueParameter:()=>iv,getSetExternalModuleIndicator:()=>dk,getShebang:()=>us,getSingleVariableOfVariableStatement:()=>Pg,getSnapshotText:()=>CQ,getSnippetElement:()=>Dw,getSourceFileOfModule:()=>yd,getSourceFileOfNode:()=>hd,getSourceFilePathInNewDir:()=>Xy,getSourceFileVersionAsHashFromText:()=>g$,getSourceFilesToEmit:()=>Ky,getSourceMapRange:()=>aw,getSourceMapper:()=>d1,getSourceTextOfNodeFromSourceFile:()=>qd,getSpanOfTokenAtPosition:()=>Hp,getSpellingSuggestion:()=>Lt,getStartPositionOfLine:()=>xd,getStartPositionOfRange:()=>$b,getStartsOnNewLine:()=>_w,getStaticPropertiesAndClassStaticBlock:()=>WJ,getStrictOptionValue:()=>Mk,getStringComparer:()=>wt,getSubPatternFromSpec:()=>uS,getSuperCallFromStatement:()=>JJ,getSuperContainer:()=>rm,getSupportedCodeFixes:()=>E8,getSupportedExtensions:()=>ES,getSupportedExtensionsWithJsonIfResolveJsonModule:()=>PS,getSwitchedType:()=>oZ,getSymbolId:()=>RB,getSymbolNameForPrivateIdentifier:()=>Uh,getSymbolTarget:()=>EY,getSyntacticClassifications:()=>T0,getSyntacticModifierFlags:()=>Jv,getSyntacticModifierFlagsNoCache:()=>Vv,getSynthesizedDeepClone:()=>LY,getSynthesizedDeepCloneWithReplacements:()=>jY,getSynthesizedDeepClones:()=>MY,getSynthesizedDeepClonesWithReplacements:()=>BY,getSyntheticLeadingComments:()=>fw,getSyntheticTrailingComments:()=>hw,getTargetLabel:()=>qG,getTargetOfBindingOrAssignmentElement:()=>yA,getTemporaryModuleResolutionState:()=>WR,getTextOfConstantValue:()=>np,getTextOfIdentifierOrLiteral:()=>zh,getTextOfJSDocComment:()=>cl,getTextOfJsxAttributeName:()=>eC,getTextOfJsxNamespacedName:()=>rC,getTextOfNode:()=>Kd,getTextOfNodeFromSourceText:()=>Hd,getTextOfPropertyName:()=>Op,getThisContainer:()=>Zf,getThisParameter:()=>av,getTokenAtPosition:()=>PX,getTokenPosOfNode:()=>Bd,getTokenSourceMapRange:()=>cw,getTouchingPropertyName:()=>FX,getTouchingToken:()=>EX,getTrailingCommentRanges:()=>_s,getTrailingSemicolonDeferringWriter:()=>Oy,getTransformers:()=>hq,getTsBuildInfoEmitOutputFilePath:()=>Eq,getTsConfigObjectLiteralExpression:()=>Vf,getTsConfigPropArrayElementValue:()=>Wf,getTypeAnnotationNode:()=>fv,getTypeArgumentOrTypeParameterList:()=>eQ,getTypeKeywordOfTypeOnlyImport:()=>XQ,getTypeNode:()=>Aw,getTypeNodeIfAccessible:()=>sZ,getTypeParameterFromJsDoc:()=>Wg,getTypeParameterOwner:()=>Qs,getTypesPackageName:()=>pM,getUILocale:()=>Et,getUniqueName:()=>$Y,getUniqueSymbolId:()=>AY,getUseDefineForClassFields:()=>Ak,getWatchErrorSummaryDiagnosticMessage:()=>YW,getWatchFactory:()=>hU,group:()=>Je,groupBy:()=>ze,guessIndentation:()=>Ou,handleNoEmitOptions:()=>wV,handleWatchOptionsConfigDirTemplateSubstitution:()=>UL,hasAbstractModifier:()=>Ev,hasAccessorModifier:()=>Av,hasAmbientModifier:()=>Pv,hasChangesInResolutions:()=>md,hasContextSensitiveParameters:()=>IT,hasDecorators:()=>Ov,hasDocComment:()=>QX,hasDynamicName:()=>Rh,hasEffectiveModifier:()=>Cv,hasEffectiveModifiers:()=>Sv,hasEffectiveReadonlyModifier:()=>Iv,hasExtension:()=>xo,hasImplementationTSFileExtension:()=>OS,hasIndexSignature:()=>iZ,hasInferredType:()=>bC,hasInitializer:()=>Fu,hasInvalidEscape:()=>py,hasJSDocNodes:()=>Nu,hasJSDocParameterTags:()=>Oc,hasJSFileExtension:()=>AS,hasJsonModuleEmitEnabled:()=>Ok,hasOnlyExpressionInitializer:()=>Eu,hasOverrideModifier:()=>Fv,hasPossibleExternalModuleReference:()=>Cp,hasProperty:()=>De,hasPropertyAccessExpressionWithName:()=>UG,hasQuestionToken:()=>Cg,hasRecordedExternalHelpers:()=>dA,hasResolutionModeOverride:()=>cC,hasRestParameter:()=>Ru,hasScopeMarker:()=>H_,hasStaticModifier:()=>Dv,hasSyntacticModifier:()=>wv,hasSyntacticModifiers:()=>Tv,hasTSFileExtension:()=>IS,hasTabstop:()=>$T,hasTrailingDirectorySeparator:()=>To,hasType:()=>Du,hasTypeArguments:()=>$g,hasZeroOrOneAsteriskCharacter:()=>Kk,hostGetCanonicalFileName:()=>jy,hostUsesCaseSensitiveFileNames:()=>Ly,idText:()=>mc,identifierIsThisKeyword:()=>uv,identifierToKeywordKind:()=>gc,identity:()=>st,identitySourceMapConsumer:()=>SJ,ignoreSourceNewlines:()=>Ew,ignoredPaths:()=>Qi,importFromModuleSpecifier:()=>yg,importSyntaxAffectsModuleResolution:()=>pk,indexOfAnyCharCode:()=>C,indexOfNode:()=>Xd,indicesOf:()=>X,inferredTypesContainingFile:()=>sV,injectClassNamedEvaluationHelperBlockIfMissing:()=>Sz,injectClassThisAssignmentIfMissing:()=>hz,insertImports:()=>GQ,insertSorted:()=>Z,insertStatementAfterCustomPrologue:()=>Ld,insertStatementAfterStandardPrologue:()=>Od,insertStatementsAfterCustomPrologue:()=>Id,insertStatementsAfterStandardPrologue:()=>Ad,intersperse:()=>y,intrinsicTagNameToString:()=>iC,introducesArgumentsExoticObject:()=>Lf,inverseJsxOptionMap:()=>aO,isAbstractConstructorSymbol:()=>px,isAbstractModifier:()=>XN,isAccessExpression:()=>kx,isAccessibilityModifier:()=>aQ,isAccessor:()=>u_,isAccessorModifier:()=>YN,isAliasableExpression:()=>ph,isAmbientModule:()=>ap,isAmbientPropertyDeclaration:()=>hp,isAnyDirectorySeparator:()=>fo,isAnyImportOrBareOrAccessedRequire:()=>kp,isAnyImportOrReExport:()=>wp,isAnyImportOrRequireStatement:()=>Sp,isAnyImportSyntax:()=>xp,isAnySupportedFileExtension:()=>YS,isApplicableVersionedTypesKey:()=>iM,isArgumentExpressionOfElementAccess:()=>XG,isArray:()=>Qe,isArrayBindingElement:()=>S_,isArrayBindingOrAssignmentElement:()=>E_,isArrayBindingOrAssignmentPattern:()=>F_,isArrayBindingPattern:()=>UD,isArrayLiteralExpression:()=>WD,isArrayLiteralOrObjectLiteralDestructuringPattern:()=>cQ,isArrayTypeNode:()=>TD,isArrowFunction:()=>tF,isAsExpression:()=>gF,isAssertClause:()=>oE,isAssertEntry:()=>aE,isAssertionExpression:()=>V_,isAssertsKeyword:()=>$N,isAssignmentDeclaration:()=>qm,isAssignmentExpression:()=>nb,isAssignmentOperator:()=>Zv,isAssignmentPattern:()=>k_,isAssignmentTarget:()=>Xg,isAsteriskToken:()=>LN,isAsyncFunction:()=>Oh,isAsyncModifier:()=>WN,isAutoAccessorPropertyDeclaration:()=>d_,isAwaitExpression:()=>oF,isAwaitKeyword:()=>HN,isBigIntLiteral:()=>SN,isBinaryExpression:()=>cF,isBinaryLogicalOperator:()=>Hv,isBinaryOperatorToken:()=>jA,isBindableObjectDefinePropertyCall:()=>tg,isBindableStaticAccessExpression:()=>ig,isBindableStaticElementAccessExpression:()=>og,isBindableStaticNameExpression:()=>ag,isBindingElement:()=>VD,isBindingElementOfBareOrAccessedRequire:()=>Rm,isBindingName:()=>t_,isBindingOrAssignmentElement:()=>C_,isBindingOrAssignmentPattern:()=>w_,isBindingPattern:()=>x_,isBlock:()=>CF,isBlockLike:()=>GZ,isBlockOrCatchScoped:()=>ip,isBlockScope:()=>yp,isBlockScopedContainerTopLevel:()=>_p,isBooleanLiteral:()=>o_,isBreakOrContinueStatement:()=>Tl,isBreakStatement:()=>jF,isBuildCommand:()=>nK,isBuildInfoFile:()=>Dq,isBuilderProgram:()=>t$,isBundle:()=>UE,isCallChain:()=>ml,isCallExpression:()=>GD,isCallExpressionTarget:()=>PG,isCallLikeExpression:()=>O_,isCallLikeOrFunctionLikeExpression:()=>I_,isCallOrNewExpression:()=>L_,isCallOrNewExpressionTarget:()=>IG,isCallSignatureDeclaration:()=>mD,isCallToHelper:()=>xN,isCaseBlock:()=>ZF,isCaseClause:()=>OE,isCaseKeyword:()=>tD,isCaseOrDefaultClause:()=>xu,isCatchClause:()=>RE,isCatchClauseVariableDeclaration:()=>LT,isCatchClauseVariableDeclarationOrBindingElement:()=>op,isCheckJsEnabledForFile:()=>eT,isCircularBuildOrder:()=>O$,isClassDeclaration:()=>HF,isClassElement:()=>l_,isClassExpression:()=>pF,isClassInstanceProperty:()=>p_,isClassLike:()=>__,isClassMemberModifier:()=>Ql,isClassNamedEvaluationHelperBlock:()=>bz,isClassOrTypeElement:()=>h_,isClassStaticBlockDeclaration:()=>uD,isClassThisAssignmentBlock:()=>mz,isColonToken:()=>MN,isCommaExpression:()=>rA,isCommaListExpression:()=>kF,isCommaSequence:()=>iA,isCommaToken:()=>AN,isComment:()=>tQ,isCommonJsExportPropertyAssignment:()=>If,isCommonJsExportedExpression:()=>Af,isCompoundAssignment:()=>MJ,isComputedNonLiteralName:()=>Ap,isComputedPropertyName:()=>rD,isConciseBody:()=>Q_,isConditionalExpression:()=>lF,isConditionalTypeNode:()=>PD,isConstAssertion:()=>mC,isConstTypeReference:()=>xl,isConstructSignatureDeclaration:()=>gD,isConstructorDeclaration:()=>dD,isConstructorTypeNode:()=>xD,isContextualKeyword:()=>Nh,isContinueStatement:()=>LF,isCustomPrologue:()=>df,isDebuggerStatement:()=>UF,isDeclaration:()=>lu,isDeclarationBindingElement:()=>T_,isDeclarationFileName:()=>$I,isDeclarationName:()=>ch,isDeclarationNameOfEnumOrNamespace:()=>Qb,isDeclarationReadonly:()=>ef,isDeclarationStatement:()=>_u,isDeclarationWithTypeParameterChildren:()=>bp,isDeclarationWithTypeParameters:()=>vp,isDecorator:()=>aD,isDecoratorTarget:()=>LG,isDefaultClause:()=>LE,isDefaultImport:()=>Sg,isDefaultModifier:()=>VN,isDefaultedExpandoInitializer:()=>Hm,isDeleteExpression:()=>nF,isDeleteTarget:()=>ah,isDeprecatedDeclaration:()=>JZ,isDestructuringAssignment:()=>rb,isDiskPathRoot:()=>ho,isDoStatement:()=>EF,isDocumentRegistryEntry:()=>w0,isDotDotDotToken:()=>PN,isDottedName:()=>sb,isDynamicName:()=>Mh,isEffectiveExternalModule:()=>mp,isEffectiveStrictModeSourceFile:()=>gp,isElementAccessChain:()=>fl,isElementAccessExpression:()=>KD,isEmittedFileOfProgram:()=>mU,isEmptyArrayLiteral:()=>hb,isEmptyBindingElement:()=>ec,isEmptyBindingPattern:()=>Zs,isEmptyObjectLiteral:()=>gb,isEmptyStatement:()=>NF,isEmptyStringLiteral:()=>hm,isEntityName:()=>Zl,isEntityNameExpression:()=>ob,isEnumConst:()=>Zp,isEnumDeclaration:()=>XF,isEnumMember:()=>zE,isEqualityOperatorKind:()=>nZ,isEqualsGreaterThanToken:()=>JN,isExclamationToken:()=>jN,isExcludedFile:()=>bj,isExclusivelyTypeOnlyImportOrExport:()=>$U,isExpandoPropertyDeclaration:()=>sC,isExportAssignment:()=>pE,isExportDeclaration:()=>fE,isExportModifier:()=>UN,isExportName:()=>ZP,isExportNamespaceAsDefaultDeclaration:()=>Ud,isExportOrDefaultModifier:()=>VA,isExportSpecifier:()=>gE,isExportsIdentifier:()=>Qm,isExportsOrModuleExportsOrAlias:()=>LM,isExpression:()=>U_,isExpressionNode:()=>vm,isExpressionOfExternalModuleImportEqualsDeclaration:()=>eX,isExpressionOfOptionalChainRoot:()=>yl,isExpressionStatement:()=>DF,isExpressionWithTypeArguments:()=>mF,isExpressionWithTypeArgumentsInClassExtendsClause:()=>ib,isExternalModule:()=>MI,isExternalModuleAugmentation:()=>dp,isExternalModuleImportEqualsDeclaration:()=>Sm,isExternalModuleIndicator:()=>G_,isExternalModuleNameRelative:()=>Ts,isExternalModuleReference:()=>xE,isExternalModuleSymbol:()=>Gu,isExternalOrCommonJsModule:()=>Qp,isFileLevelReservedGeneratedIdentifier:()=>$l,isFileLevelUniqueName:()=>Td,isFileProbablyExternalModule:()=>_I,isFirstDeclarationOfSymbolParameter:()=>oY,isFixablePromiseHandler:()=>x1,isForInOrOfStatement:()=>X_,isForInStatement:()=>IF,isForInitializer:()=>Z_,isForOfStatement:()=>OF,isForStatement:()=>AF,isFullSourceFile:()=>Nm,isFunctionBlock:()=>Rf,isFunctionBody:()=>Y_,isFunctionDeclaration:()=>$F,isFunctionExpression:()=>eF,isFunctionExpressionOrArrowFunction:()=>jT,isFunctionLike:()=>n_,isFunctionLikeDeclaration:()=>i_,isFunctionLikeKind:()=>s_,isFunctionLikeOrClassStaticBlockDeclaration:()=>r_,isFunctionOrConstructorTypeNode:()=>b_,isFunctionOrModuleBlock:()=>c_,isFunctionSymbol:()=>mg,isFunctionTypeNode:()=>bD,isGeneratedIdentifier:()=>Vl,isGeneratedPrivateIdentifier:()=>Wl,isGetAccessor:()=>wu,isGetAccessorDeclaration:()=>pD,isGetOrSetAccessorDeclaration:()=>dl,isGlobalScopeAugmentation:()=>up,isGlobalSourceFile:()=>Xp,isGrammarError:()=>Nd,isHeritageClause:()=>jE,isHoistedFunction:()=>pf,isHoistedVariableStatement:()=>mf,isIdentifier:()=>zN,isIdentifierANonContextualKeyword:()=>Eh,isIdentifierName:()=>uh,isIdentifierOrThisTypeNode:()=>EA,isIdentifierPart:()=>ps,isIdentifierStart:()=>ds,isIdentifierText:()=>fs,isIdentifierTypePredicate:()=>Jf,isIdentifierTypeReference:()=>vT,isIfStatement:()=>FF,isIgnoredFileFromWildCardWatching:()=>fU,isImplicitGlob:()=>lS,isImportAttribute:()=>cE,isImportAttributeName:()=>Ul,isImportAttributes:()=>sE,isImportCall:()=>cf,isImportClause:()=>rE,isImportDeclaration:()=>nE,isImportEqualsDeclaration:()=>tE,isImportKeyword:()=>eD,isImportMeta:()=>lf,isImportOrExportSpecifier:()=>Rl,isImportOrExportSpecifierName:()=>DY,isImportSpecifier:()=>dE,isImportTypeAssertionContainer:()=>iE,isImportTypeNode:()=>BD,isImportable:()=>e0,isInComment:()=>XX,isInCompoundLikeAssignment:()=>Qg,isInExpressionContext:()=>bm,isInJSDoc:()=>Am,isInJSFile:()=>Fm,isInJSXText:()=>VX,isInJsonFile:()=>Em,isInNonReferenceComment:()=>_Q,isInReferenceComment:()=>lQ,isInRightSideOfInternalImportEqualsDeclaration:()=>EG,isInString:()=>JX,isInTemplateString:()=>UX,isInTopLevelContext:()=>tm,isInTypeQuery:()=>lv,isIncrementalBuildInfo:()=>aW,isIncrementalBundleEmitBuildInfo:()=>oW,isIncrementalCompilation:()=>Fk,isIndexSignatureDeclaration:()=>hD,isIndexedAccessTypeNode:()=>jD,isInferTypeNode:()=>AD,isInfinityOrNaNString:()=>OT,isInitializedProperty:()=>$J,isInitializedVariable:()=>Zb,isInsideJsxElement:()=>WX,isInsideJsxElementOrAttribute:()=>zX,isInsideNodeModules:()=>wZ,isInsideTemplateLiteral:()=>oQ,isInstanceOfExpression:()=>fb,isInstantiatedModule:()=>MB,isInterfaceDeclaration:()=>KF,isInternalDeclaration:()=>Ju,isInternalModuleImportEqualsDeclaration:()=>wm,isInternalName:()=>QP,isIntersectionTypeNode:()=>ED,isIntrinsicJsxName:()=>Fy,isIterationStatement:()=>W_,isJSDoc:()=>iP,isJSDocAllType:()=>XE,isJSDocAugmentsTag:()=>sP,isJSDocAuthorTag:()=>cP,isJSDocCallbackTag:()=>_P,isJSDocClassTag:()=>lP,isJSDocCommentContainingNode:()=>Su,isJSDocConstructSignature:()=>wg,isJSDocDeprecatedTag:()=>hP,isJSDocEnumTag:()=>vP,isJSDocFunctionType:()=>tP,isJSDocImplementsTag:()=>DP,isJSDocImportTag:()=>PP,isJSDocIndexSignature:()=>Im,isJSDocLikeText:()=>lI,isJSDocLink:()=>HE,isJSDocLinkCode:()=>KE,isJSDocLinkLike:()=>ju,isJSDocLinkPlain:()=>GE,isJSDocMemberName:()=>$E,isJSDocNameReference:()=>WE,isJSDocNamepathType:()=>rP,isJSDocNamespaceBody:()=>nu,isJSDocNode:()=>ku,isJSDocNonNullableType:()=>ZE,isJSDocNullableType:()=>YE,isJSDocOptionalParameter:()=>HT,isJSDocOptionalType:()=>eP,isJSDocOverloadTag:()=>gP,isJSDocOverrideTag:()=>mP,isJSDocParameterTag:()=>bP,isJSDocPrivateTag:()=>dP,isJSDocPropertyLikeTag:()=>wl,isJSDocPropertyTag:()=>NP,isJSDocProtectedTag:()=>pP,isJSDocPublicTag:()=>uP,isJSDocReadonlyTag:()=>fP,isJSDocReturnTag:()=>xP,isJSDocSatisfiesExpression:()=>XT,isJSDocSatisfiesTag:()=>FP,isJSDocSeeTag:()=>yP,isJSDocSignature:()=>aP,isJSDocTag:()=>Tu,isJSDocTemplateTag:()=>TP,isJSDocThisTag:()=>kP,isJSDocThrowsTag:()=>EP,isJSDocTypeAlias:()=>Ng,isJSDocTypeAssertion:()=>oA,isJSDocTypeExpression:()=>VE,isJSDocTypeLiteral:()=>oP,isJSDocTypeTag:()=>SP,isJSDocTypedefTag:()=>CP,isJSDocUnknownTag:()=>wP,isJSDocUnknownType:()=>QE,isJSDocVariadicType:()=>nP,isJSXTagName:()=>ym,isJsonEqual:()=>dT,isJsonSourceFile:()=>Yp,isJsxAttribute:()=>FE,isJsxAttributeLike:()=>hu,isJsxAttributeName:()=>tC,isJsxAttributes:()=>EE,isJsxCallLike:()=>bu,isJsxChild:()=>gu,isJsxClosingElement:()=>CE,isJsxClosingFragment:()=>DE,isJsxElement:()=>kE,isJsxExpression:()=>AE,isJsxFragment:()=>wE,isJsxNamespacedName:()=>IE,isJsxOpeningElement:()=>TE,isJsxOpeningFragment:()=>NE,isJsxOpeningLikeElement:()=>vu,isJsxOpeningLikeElementTagName:()=>jG,isJsxSelfClosingElement:()=>SE,isJsxSpreadAttribute:()=>PE,isJsxTagNameExpression:()=>mu,isJsxText:()=>CN,isJumpStatementTarget:()=>VG,isKeyword:()=>Th,isKeywordOrPunctuation:()=>wh,isKnownSymbol:()=>Vh,isLabelName:()=>$G,isLabelOfLabeledStatement:()=>WG,isLabeledStatement:()=>JF,isLateVisibilityPaintedStatement:()=>Tp,isLeftHandSideExpression:()=>R_,isLet:()=>af,isLineBreak:()=>Ua,isLiteralComputedPropertyDeclarationName:()=>_h,isLiteralExpression:()=>Al,isLiteralExpressionOfObject:()=>Il,isLiteralImportTypeNode:()=>_f,isLiteralKind:()=>Pl,isLiteralNameOfPropertyDeclarationOrIndexAccess:()=>ZG,isLiteralTypeLiteral:()=>q_,isLiteralTypeNode:()=>MD,isLocalName:()=>YP,isLogicalOperator:()=>Kv,isLogicalOrCoalescingAssignmentExpression:()=>Xv,isLogicalOrCoalescingAssignmentOperator:()=>Gv,isLogicalOrCoalescingBinaryExpression:()=>Yv,isLogicalOrCoalescingBinaryOperator:()=>Qv,isMappedTypeNode:()=>RD,isMemberName:()=>ul,isMetaProperty:()=>vF,isMethodDeclaration:()=>_D,isMethodOrAccessor:()=>f_,isMethodSignature:()=>lD,isMinusToken:()=>ON,isMissingDeclaration:()=>yE,isMissingPackageJsonInfo:()=>oR,isModifier:()=>Yl,isModifierKind:()=>Gl,isModifierLike:()=>m_,isModuleAugmentationExternal:()=>pp,isModuleBlock:()=>YF,isModuleBody:()=>eu,isModuleDeclaration:()=>QF,isModuleExportName:()=>hE,isModuleExportsAccessExpression:()=>Zm,isModuleIdentifier:()=>Ym,isModuleName:()=>IA,isModuleOrEnumDeclaration:()=>iu,isModuleReference:()=>fu,isModuleSpecifierLike:()=>UQ,isModuleWithStringLiteralName:()=>sp,isNameOfFunctionDeclaration:()=>YG,isNameOfModuleDeclaration:()=>QG,isNamedDeclaration:()=>kc,isNamedEvaluation:()=>Kh,isNamedEvaluationSource:()=>Hh,isNamedExportBindings:()=>Cl,isNamedExports:()=>mE,isNamedImportBindings:()=>ru,isNamedImports:()=>uE,isNamedImportsOrExports:()=>Tx,isNamedTupleMember:()=>wD,isNamespaceBody:()=>tu,isNamespaceExport:()=>_E,isNamespaceExportDeclaration:()=>eE,isNamespaceImport:()=>lE,isNamespaceReexportDeclaration:()=>km,isNewExpression:()=>XD,isNewExpressionTarget:()=>AG,isNewScopeNode:()=>DC,isNoSubstitutionTemplateLiteral:()=>NN,isNodeArray:()=>El,isNodeArrayMultiLine:()=>Vb,isNodeDescendantOf:()=>sh,isNodeKind:()=>Nl,isNodeLikeSystem:()=>_n,isNodeModulesDirectory:()=>sa,isNodeWithPossibleHoistedDeclaration:()=>Yg,isNonContextualKeyword:()=>Dh,isNonGlobalAmbientModule:()=>cp,isNonNullAccess:()=>GT,isNonNullChain:()=>Sl,isNonNullExpression:()=>yF,isNonStaticMethodOrAccessorWithPrivateName:()=>HJ,isNotEmittedStatement:()=>vE,isNullishCoalesce:()=>bl,isNumber:()=>et,isNumericLiteral:()=>kN,isNumericLiteralName:()=>MT,isObjectBindingElementWithoutPropertyName:()=>VQ,isObjectBindingOrAssignmentElement:()=>D_,isObjectBindingOrAssignmentPattern:()=>N_,isObjectBindingPattern:()=>qD,isObjectLiteralElement:()=>Pu,isObjectLiteralElementLike:()=>y_,isObjectLiteralExpression:()=>$D,isObjectLiteralMethod:()=>Mf,isObjectLiteralOrClassExpressionMethodOrAccessor:()=>Bf,isObjectTypeDeclaration:()=>bx,isOmittedExpression:()=>fF,isOptionalChain:()=>gl,isOptionalChainRoot:()=>hl,isOptionalDeclaration:()=>KT,isOptionalJSDocPropertyLikeTag:()=>VT,isOptionalTypeNode:()=>ND,isOuterExpression:()=>sA,isOutermostOptionalChain:()=>vl,isOverrideModifier:()=>QN,isPackageJsonInfo:()=>iR,isPackedArrayLiteral:()=>FT,isParameter:()=>oD,isParameterPropertyDeclaration:()=>Ys,isParameterPropertyModifier:()=>Xl,isParenthesizedExpression:()=>ZD,isParenthesizedTypeNode:()=>ID,isParseTreeNode:()=>uc,isPartOfParameterDeclaration:()=>Xh,isPartOfTypeNode:()=>Tf,isPartOfTypeOnlyImportOrExportDeclaration:()=>zl,isPartOfTypeQuery:()=>xm,isPartiallyEmittedExpression:()=>xF,isPatternMatch:()=>Yt,isPinnedComment:()=>Rd,isPlainJsFile:()=>vd,isPlusToken:()=>IN,isPossiblyTypeArgumentPosition:()=>HX,isPostfixUnaryExpression:()=>sF,isPrefixUnaryExpression:()=>aF,isPrimitiveLiteralValue:()=>yC,isPrivateIdentifier:()=>qN,isPrivateIdentifierClassElementDeclaration:()=>Hl,isPrivateIdentifierPropertyAccessExpression:()=>Kl,isPrivateIdentifierSymbol:()=>Wh,isProgramUptoDate:()=>mV,isPrologueDirective:()=>uf,isPropertyAccessChain:()=>pl,isPropertyAccessEntityNameExpression:()=>cb,isPropertyAccessExpression:()=>HD,isPropertyAccessOrQualifiedName:()=>A_,isPropertyAccessOrQualifiedNameOrImportTypeNode:()=>P_,isPropertyAssignment:()=>ME,isPropertyDeclaration:()=>cD,isPropertyName:()=>e_,isPropertyNameLiteral:()=>Jh,isPropertySignature:()=>sD,isPrototypeAccess:()=>_b,isPrototypePropertyAssignment:()=>dg,isPunctuation:()=>Ch,isPushOrUnshiftIdentifier:()=>Gh,isQualifiedName:()=>nD,isQuestionDotToken:()=>BN,isQuestionOrExclamationToken:()=>FA,isQuestionOrPlusOrMinusToken:()=>AA,isQuestionToken:()=>RN,isReadonlyKeyword:()=>KN,isReadonlyKeywordOrPlusOrMinusToken:()=>PA,isRecognizedTripleSlashComment:()=>jd,isReferenceFileLocation:()=>pV,isReferencedFile:()=>dV,isRegularExpressionLiteral:()=>wN,isRequireCall:()=>Om,isRequireVariableStatement:()=>Bm,isRestParameter:()=>Mu,isRestTypeNode:()=>DD,isReturnStatement:()=>RF,isReturnStatementWithFixablePromiseHandler:()=>b1,isRightSideOfAccessExpression:()=>db,isRightSideOfInstanceofExpression:()=>mb,isRightSideOfPropertyAccess:()=>GG,isRightSideOfQualifiedName:()=>KG,isRightSideOfQualifiedNameOrPropertyAccess:()=>ub,isRightSideOfQualifiedNameOrPropertyAccessOrJSDocMemberName:()=>pb,isRootedDiskPath:()=>go,isSameEntityName:()=>Gm,isSatisfiesExpression:()=>hF,isSemicolonClassElement:()=>TF,isSetAccessor:()=>Cu,isSetAccessorDeclaration:()=>fD,isShiftOperatorOrHigher:()=>OA,isShorthandAmbientModuleSymbol:()=>lp,isShorthandPropertyAssignment:()=>BE,isSideEffectImport:()=>xC,isSignedNumericLiteral:()=>jh,isSimpleCopiableExpression:()=>jJ,isSimpleInlineableExpression:()=>RJ,isSimpleParameterList:()=>rz,isSingleOrDoubleQuote:()=>Jm,isSolutionConfig:()=>YL,isSourceElement:()=>dC,isSourceFile:()=>qE,isSourceFileFromLibrary:()=>$Z,isSourceFileJS:()=>Dm,isSourceFileNotJson:()=>Pm,isSourceMapping:()=>mJ,isSpecialPropertyDeclaration:()=>pg,isSpreadAssignment:()=>JE,isSpreadElement:()=>dF,isStatement:()=>du,isStatementButNotDeclaration:()=>uu,isStatementOrBlock:()=>pu,isStatementWithLocals:()=>bd,isStatic:()=>Nv,isStaticModifier:()=>GN,isString:()=>Ze,isStringANonContextualKeyword:()=>Fh,isStringAndEmptyAnonymousObjectIntersection:()=>iQ,isStringDoubleQuoted:()=>zm,isStringLiteral:()=>TN,isStringLiteralLike:()=>Lu,isStringLiteralOrJsxExpression:()=>yu,isStringLiteralOrTemplate:()=>rZ,isStringOrNumericLiteralLike:()=>Lh,isStringOrRegularExpressionOrTemplateLiteral:()=>nQ,isStringTextContainingNode:()=>ql,isSuperCall:()=>sf,isSuperKeyword:()=>ZN,isSuperProperty:()=>om,isSupportedSourceFileName:()=>RS,isSwitchStatement:()=>BF,isSyntaxList:()=>AP,isSyntheticExpression:()=>bF,isSyntheticReference:()=>bE,isTagName:()=>HG,isTaggedTemplateExpression:()=>QD,isTaggedTemplateTag:()=>OG,isTemplateExpression:()=>_F,isTemplateHead:()=>DN,isTemplateLiteral:()=>j_,isTemplateLiteralKind:()=>Ol,isTemplateLiteralToken:()=>Ll,isTemplateLiteralTypeNode:()=>zD,isTemplateLiteralTypeSpan:()=>JD,isTemplateMiddle:()=>FN,isTemplateMiddleOrTemplateTail:()=>jl,isTemplateSpan:()=>SF,isTemplateTail:()=>EN,isTextWhiteSpaceLike:()=>tY,isThis:()=>rX,isThisContainerOrFunctionBlock:()=>em,isThisIdentifier:()=>cv,isThisInTypeQuery:()=>_v,isThisInitializedDeclaration:()=>sm,isThisInitializedObjectBindingExpression:()=>cm,isThisProperty:()=>am,isThisTypeNode:()=>OD,isThisTypeParameter:()=>JT,isThisTypePredicate:()=>zf,isThrowStatement:()=>zF,isToken:()=>Fl,isTokenKind:()=>Dl,isTraceEnabled:()=>Lj,isTransientSymbol:()=>Ku,isTrivia:()=>Ph,isTryStatement:()=>qF,isTupleTypeNode:()=>CD,isTypeAlias:()=>Dg,isTypeAliasDeclaration:()=>GF,isTypeAssertionExpression:()=>YD,isTypeDeclaration:()=>qT,isTypeElement:()=>g_,isTypeKeyword:()=>xQ,isTypeKeywordTokenOrIdentifier:()=>SQ,isTypeLiteralNode:()=>SD,isTypeNode:()=>v_,isTypeNodeKind:()=>xx,isTypeOfExpression:()=>rF,isTypeOnlyExportDeclaration:()=>Bl,isTypeOnlyImportDeclaration:()=>Ml,isTypeOnlyImportOrExportDeclaration:()=>Jl,isTypeOperatorNode:()=>LD,isTypeParameterDeclaration:()=>iD,isTypePredicateNode:()=>yD,isTypeQueryNode:()=>kD,isTypeReferenceNode:()=>vD,isTypeReferenceType:()=>Au,isTypeUsableAsPropertyName:()=>oC,isUMDExportSymbol:()=>gx,isUnaryExpression:()=>B_,isUnaryExpressionWithWrite:()=>z_,isUnicodeIdentifierStart:()=>Ca,isUnionTypeNode:()=>FD,isUrl:()=>mo,isValidBigIntString:()=>hT,isValidESSymbolDeclaration:()=>Of,isValidTypeOnlyAliasUseSite:()=>yT,isValueSignatureDeclaration:()=>Zg,isVarAwaitUsing:()=>tf,isVarConst:()=>rf,isVarConstLike:()=>of,isVarUsing:()=>nf,isVariableDeclaration:()=>VF,isVariableDeclarationInVariableStatement:()=>Pf,isVariableDeclarationInitializedToBareOrAccessedRequire:()=>jm,isVariableDeclarationInitializedToRequire:()=>Lm,isVariableDeclarationList:()=>WF,isVariableLike:()=>Ef,isVariableStatement:()=>wF,isVoidExpression:()=>iF,isWatchSet:()=>ex,isWhileStatement:()=>PF,isWhiteSpaceLike:()=>za,isWhiteSpaceSingleLine:()=>qa,isWithStatement:()=>MF,isWriteAccess:()=>sx,isWriteOnlyAccess:()=>ax,isYieldExpression:()=>uF,jsxModeNeedsExplicitImport:()=>WZ,keywordPart:()=>lY,last:()=>ve,lastOrUndefined:()=>ye,length:()=>u,libMap:()=>lO,libs:()=>cO,lineBreakPart:()=>SY,loadModuleFromGlobalCache:()=>xM,loadWithModeAwareCache:()=>iV,makeIdentifierFromModuleName:()=>rp,makeImport:()=>LQ,makeStringLiteral:()=>jQ,mangleScopedPackageName:()=>fM,map:()=>E,mapAllOrFail:()=>M,mapDefined:()=>B,mapDefinedIterator:()=>J,mapEntries:()=>W,mapIterator:()=>P,mapOneOrMany:()=>AZ,mapToDisplayParts:()=>TY,matchFiles:()=>mS,matchPatternOrExact:()=>nT,matchedText:()=>Ht,matchesExclude:()=>kj,matchesExcludeWorker:()=>Sj,maxBy:()=>xt,maybeBind:()=>We,maybeSetLocalizedDiagnosticMessages:()=>qx,memoize:()=>dt,memoizeOne:()=>pt,min:()=>kt,minAndMax:()=>oT,missingFileModifiedTime:()=>zi,modifierToFlag:()=>$v,modifiersToFlags:()=>Wv,moduleExportNameIsDefault:()=>$d,moduleExportNameTextEscaped:()=>Wd,moduleExportNameTextUnescaped:()=>Vd,moduleOptionDeclaration:()=>pO,moduleResolutionIsEqualTo:()=>sd,moduleResolutionNameAndModeGetter:()=>ZU,moduleResolutionOptionDeclarations:()=>vO,moduleResolutionSupportsPackageJsonExportsAndImports:()=>Rk,moduleResolutionUsesNodeModules:()=>OQ,moduleSpecifierToValidIdentifier:()=>RZ,moduleSpecifiers:()=>BM,moduleSymbolToValidIdentifier:()=>jZ,moveEmitHelpers:()=>Nw,moveRangeEnd:()=>Ab,moveRangePastDecorators:()=>Ob,moveRangePastModifiers:()=>Lb,moveRangePos:()=>Ib,moveSyntheticComments:()=>bw,mutateMap:()=>dx,mutateMapSkippingNewValues:()=>ux,needsParentheses:()=>ZY,needsScopeMarker:()=>K_,newCaseClauseTracker:()=>HZ,newPrivateEnvironment:()=>YJ,noEmitNotification:()=>Tq,noEmitSubstitution:()=>Sq,noTransformers:()=>gq,noTruncationMaximumTruncationLength:()=>Vu,nodeCanBeDecorated:()=>um,nodeCoreModules:()=>CC,nodeHasName:()=>bc,nodeIsDecorated:()=>dm,nodeIsMissing:()=>Cd,nodeIsPresent:()=>wd,nodeIsSynthesized:()=>Zh,nodeModuleNameResolver:()=>CR,nodeModulesPathPart:()=>PR,nodeNextJsonConfigResolver:()=>wR,nodeOrChildIsDecorated:()=>pm,nodeOverlapsWithStartEnd:()=>uX,nodePosToString:()=>kd,nodeSeenTracker:()=>TQ,nodeStartsNewLexicalEnvironment:()=>Yh,noop:()=>rt,noopFileWatcher:()=>_$,normalizePath:()=>Jo,normalizeSlashes:()=>Oo,normalizeSpans:()=>Us,not:()=>tn,notImplemented:()=>ut,notImplementedResolver:()=>Yq,nullNodeConverters:()=>OC,nullParenthesizerRules:()=>PC,nullTransformationContext:()=>wq,objectAllocator:()=>jx,operatorPart:()=>uY,optionDeclarations:()=>mO,optionMapToObject:()=>CL,optionsAffectingProgramStructure:()=>xO,optionsForBuild:()=>NO,optionsForWatch:()=>_O,optionsHaveChanges:()=>Zu,or:()=>en,orderedRemoveItem:()=>zt,orderedRemoveItemAt:()=>qt,packageIdToPackageName:()=>dd,packageIdToString:()=>pd,parameterIsThisKeyword:()=>sv,parameterNamePart:()=>dY,parseBaseNodeFactory:()=>oI,parseBigInt:()=>mT,parseBuildCommand:()=>GO,parseCommandLine:()=>VO,parseCommandLineWorker:()=>JO,parseConfigFileTextToJson:()=>ZO,parseConfigFileWithSystem:()=>GW,parseConfigHostFromCompilerHostLike:()=>DV,parseCustomTypeOption:()=>jO,parseIsolatedEntityName:()=>jI,parseIsolatedJSDocComment:()=>JI,parseJSDocTypeExpressionForTests:()=>zI,parseJsonConfigFileContent:()=>jL,parseJsonSourceFileConfigFileContent:()=>RL,parseJsonText:()=>RI,parseListTypeOption:()=>RO,parseNodeFactory:()=>aI,parseNodeModuleFromPath:()=>IR,parsePackageName:()=>YR,parsePseudoBigInt:()=>pT,parseValidBigInt:()=>gT,pasteEdits:()=>efe,patchWriteFileEnsuringDirectory:()=>ao,pathContainsNodeModules:()=>AR,pathIsAbsolute:()=>yo,pathIsBareSpecifier:()=>bo,pathIsRelative:()=>vo,patternText:()=>$t,performIncrementalCompilation:()=>S$,performance:()=>Vn,positionBelongsToNode:()=>pX,positionIsASICandidate:()=>pZ,positionIsSynthesized:()=>KS,positionsAreOnSameLine:()=>Wb,preProcessFile:()=>_1,probablyUsesSemicolons:()=>fZ,processCommentPragmas:()=>KI,processPragmasIntoFields:()=>GI,processTaggedTemplateExpression:()=>Nz,programContainsEsModules:()=>EQ,programContainsModules:()=>FQ,projectReferenceIsEqualTo:()=>ad,propertyNamePart:()=>pY,pseudoBigIntToString:()=>fT,punctuationPart:()=>_Y,pushIfUnique:()=>ce,quote:()=>tZ,quotePreferenceFromString:()=>MQ,rangeContainsPosition:()=>sX,rangeContainsPositionExclusive:()=>cX,rangeContainsRange:()=>Gb,rangeContainsRangeExclusive:()=>aX,rangeContainsStartEnd:()=>lX,rangeEndIsOnSameLineAsRangeStart:()=>zb,rangeEndPositionsAreOnSameLine:()=>Bb,rangeEquals:()=>de,rangeIsOnSingleLine:()=>Rb,rangeOfNode:()=>aT,rangeOfTypeParameters:()=>sT,rangeOverlapsWithStartEnd:()=>_X,rangeStartIsOnSameLineAsRangeEnd:()=>Jb,rangeStartPositionsAreOnSameLine:()=>Mb,readBuilderProgram:()=>T$,readConfigFile:()=>YO,readJson:()=>Cb,readJsonConfigFile:()=>eL,readJsonOrUndefined:()=>Tb,reduceEachLeadingCommentRange:()=>as,reduceEachTrailingCommentRange:()=>ss,reduceLeft:()=>we,reduceLeftIterator:()=>g,reducePathComponents:()=>Lo,refactor:()=>V2,regExpEscape:()=>Zk,regularExpressionFlagToCharacterCode:()=>Pa,relativeComplement:()=>re,removeAllComments:()=>tw,removeEmitHelper:()=>Cw,removeExtension:()=>US,removeFileExtension:()=>zS,removeIgnoredPath:()=>wW,removeMinAndVersionNumbers:()=>Jt,removePrefix:()=>Xt,removeSuffix:()=>Mt,removeTrailingDirectorySeparator:()=>Uo,repeatString:()=>wQ,replaceElement:()=>Se,replaceFirstStar:()=>_C,resolutionExtensionIsTSOrJson:()=>XS,resolveConfigFileProjectName:()=>E$,resolveJSModule:()=>kR,resolveLibrary:()=>yR,resolveModuleName:()=>bR,resolveModuleNameFromCache:()=>vR,resolvePackageNameToPackageJson:()=>nR,resolvePath:()=>Ro,resolveProjectReferencePath:()=>FV,resolveTripleslashReference:()=>xU,resolveTypeReferenceDirective:()=>Zj,resolvingEmptyArray:()=>zu,returnFalse:()=>it,returnNoopFileWatcher:()=>u$,returnTrue:()=>ot,returnUndefined:()=>at,returnsPromise:()=>v1,rewriteModuleSpecifier:()=>iz,sameFlatMap:()=>R,sameMap:()=>A,sameMapping:()=>fJ,scanTokenAtPosition:()=>Kp,scanner:()=>wG,semanticDiagnosticsOptionDeclarations:()=>gO,serializeCompilerOptions:()=>FL,server:()=>uhe,servicesVersion:()=>l8,setCommentRange:()=>pw,setConfigFileInOptions:()=>ML,setConstantValue:()=>kw,setEmitFlags:()=>nw,setGetSourceFileAsHashVersioned:()=>h$,setIdentifierAutoGenerate:()=>Lw,setIdentifierGeneratedImportReference:()=>Rw,setIdentifierTypeArguments:()=>Iw,setInternalEmitFlags:()=>iw,setLocalizedDiagnosticMessages:()=>zx,setNodeChildren:()=>jP,setNodeFlags:()=>CT,setObjectAllocator:()=>Bx,setOriginalNode:()=>YC,setParent:()=>wT,setParentRecursive:()=>NT,setPrivateIdentifier:()=>ez,setSnippetElement:()=>Fw,setSourceMapRange:()=>sw,setStackTraceLimit:()=>Mi,setStartsOnNewLine:()=>uw,setSyntheticLeadingComments:()=>mw,setSyntheticTrailingComments:()=>yw,setSys:()=>co,setSysLog:()=>eo,setTextRange:()=>nI,setTextRangeEnd:()=>kT,setTextRangePos:()=>xT,setTextRangePosEnd:()=>ST,setTextRangePosWidth:()=>TT,setTokenSourceMapRange:()=>lw,setTypeNode:()=>Pw,setUILocale:()=>Pt,setValueDeclaration:()=>fg,shouldAllowImportingTsExtension:()=>bM,shouldPreserveConstEnums:()=>Dk,shouldRewriteModuleSpecifier:()=>bg,shouldUseUriStyleNodeCoreModules:()=>zZ,showModuleSpecifier:()=>hx,signatureHasRestParameter:()=>UB,signatureToDisplayParts:()=>NY,single:()=>xe,singleElementArray:()=>rn,singleIterator:()=>U,singleOrMany:()=>ke,singleOrUndefined:()=>be,skipAlias:()=>ix,skipConstraint:()=>NQ,skipOuterExpressions:()=>cA,skipParentheses:()=>oh,skipPartiallyEmittedExpressions:()=>kl,skipTrivia:()=>Xa,skipTypeChecking:()=>cT,skipTypeCheckingIgnoringNoCheck:()=>lT,skipTypeParentheses:()=>ih,skipWhile:()=>ln,sliceAfter:()=>rT,some:()=>$,sortAndDeduplicate:()=>ee,sortAndDeduplicateDiagnostics:()=>Cs,sourceFileAffectingCompilerOptions:()=>bO,sourceFileMayBeEmitted:()=>Gy,sourceMapCommentRegExp:()=>sJ,sourceMapCommentRegExpDontCareLineStart:()=>aJ,spacePart:()=>cY,spanMap:()=>V,startEndContainsRange:()=>Xb,startEndOverlapsWithStartEnd:()=>dX,startOnNewLine:()=>_A,startTracing:()=>dr,startsWith:()=>Gt,startsWithDirectory:()=>ea,startsWithUnderscore:()=>BZ,startsWithUseStrict:()=>nA,stringContainsAt:()=>MZ,stringToToken:()=>Fa,stripQuotes:()=>Dy,supportedDeclarationExtensions:()=>NS,supportedJSExtensionsFlat:()=>TS,supportedLocaleDirectories:()=>sc,supportedTSExtensionsFlat:()=>xS,supportedTSImplementationExtensions:()=>DS,suppressLeadingAndTrailingTrivia:()=>JY,suppressLeadingTrivia:()=>zY,suppressTrailingTrivia:()=>qY,symbolEscapedNameNoDefault:()=>qQ,symbolName:()=>hc,symbolNameNoDefault:()=>zQ,symbolToDisplayParts:()=>wY,sys:()=>so,sysLog:()=>Zi,tagNamesAreEquivalent:()=>nO,takeWhile:()=>cn,targetOptionDeclaration:()=>dO,targetToLibMap:()=>ws,testFormatSettings:()=>mG,textChangeRangeIsUnchanged:()=>Hs,textChangeRangeNewSpan:()=>$s,textChanges:()=>Tue,textOrKeywordPart:()=>fY,textPart:()=>mY,textRangeContainsPositionInclusive:()=>Ps,textRangeContainsTextSpan:()=>Os,textRangeIntersectsWithTextSpan:()=>zs,textSpanContainsPosition:()=>Es,textSpanContainsTextRange:()=>Is,textSpanContainsTextSpan:()=>As,textSpanEnd:()=>Ds,textSpanIntersection:()=>qs,textSpanIntersectsWith:()=>Ms,textSpanIntersectsWithPosition:()=>Js,textSpanIntersectsWithTextSpan:()=>Rs,textSpanIsEmpty:()=>Fs,textSpanOverlap:()=>js,textSpanOverlapsWith:()=>Ls,textSpansEqual:()=>QQ,textToKeywordObj:()=>da,timestamp:()=>Un,toArray:()=>Ye,toBuilderFileEmit:()=>hW,toBuilderStateFileInfoForMultiEmit:()=>gW,toEditorSettings:()=>w8,toFileNameLowerCase:()=>_t,toPath:()=>qo,toProgramEmitPending:()=>yW,toSorted:()=>_e,tokenIsIdentifierOrKeyword:()=>_a,tokenIsIdentifierOrKeywordOrGreaterThan:()=>ua,tokenToString:()=>Da,trace:()=>Oj,tracing:()=>Hn,tracingEnabled:()=>Kn,transferSourceFileChildren:()=>MP,transform:()=>W8,transformClassFields:()=>Az,transformDeclarations:()=>pq,transformECMAScriptModule:()=>iq,transformES2015:()=>Zz,transformES2016:()=>Qz,transformES2017:()=>Rz,transformES2018:()=>Bz,transformES2019:()=>Jz,transformES2020:()=>zz,transformES2021:()=>qz,transformESDecorators:()=>jz,transformESNext:()=>Uz,transformGenerators:()=>eq,transformImpliedNodeFormatDependentModule:()=>oq,transformJsx:()=>Gz,transformLegacyDecorators:()=>Lz,transformModule:()=>tq,transformNamedEvaluation:()=>Cz,transformNodes:()=>Cq,transformSystemModule:()=>rq,transformTypeScript:()=>Pz,transpile:()=>L1,transpileDeclaration:()=>F1,transpileModule:()=>D1,transpileOptionValueCompilerOptions:()=>kO,tryAddToSet:()=>q,tryAndIgnoreErrors:()=>vZ,tryCast:()=>tt,tryDirectoryExists:()=>yZ,tryExtractTSExtension:()=>vb,tryFileExists:()=>hZ,tryGetClassExtendingExpressionWithTypeArguments:()=>eb,tryGetClassImplementingOrExtendingExpressionWithTypeArguments:()=>tb,tryGetDirectories:()=>mZ,tryGetExtensionFromPath:()=>ZS,tryGetImportFromModuleSpecifier:()=>vg,tryGetJSDocSatisfiesTypeNode:()=>YT,tryGetModuleNameFromFile:()=>gA,tryGetModuleSpecifierFromDeclaration:()=>hg,tryGetNativePerformanceHooks:()=>Jn,tryGetPropertyAccessOrIdentifierToString:()=>lb,tryGetPropertyNameOfBindingOrAssignmentElement:()=>xA,tryGetSourceMappingURL:()=>_J,tryGetTextOfPropertyName:()=>Ip,tryParseJson:()=>wb,tryParsePattern:()=>WS,tryParsePatterns:()=>HS,tryParseRawSourceMap:()=>dJ,tryReadDirectory:()=>gZ,tryReadFile:()=>tL,tryRemoveDirectoryPrefix:()=>Qk,tryRemoveExtension:()=>qS,tryRemovePrefix:()=>Qt,tryRemoveSuffix:()=>Bt,tscBuildOption:()=>wO,typeAcquisitionDeclarations:()=>FO,typeAliasNamePart:()=>gY,typeDirectiveIsEqualTo:()=>fd,typeKeywords:()=>bQ,typeParameterNamePart:()=>hY,typeToDisplayParts:()=>CY,unchangedPollThresholds:()=>$i,unchangedTextChangeRange:()=>Gs,unescapeLeadingUnderscores:()=>fc,unmangleScopedPackageName:()=>gM,unorderedRemoveItem:()=>Vt,unprefixedNodeCoreModules:()=>SC,unreachableCodeIsError:()=>Lk,unsetNodeChildren:()=>RP,unusedLabelIsError:()=>jk,unwrapInnermostStatementOfLabel:()=>jf,unwrapParenthesizedExpression:()=>vC,updateErrorForNoInputFiles:()=>ej,updateLanguageServiceSourceFile:()=>O8,updateMissingFilePathsWatch:()=>dU,updateResolutionField:()=>Vj,updateSharedExtendedConfigFileWatcher:()=>lU,updateSourceFile:()=>BI,updateWatchingWildcardDirectories:()=>pU,usingSingleLineStringWriter:()=>id,utf16EncodeAsString:()=>vs,validateLocaleAndSetLanguage:()=>cc,version:()=>s,versionMajorMinor:()=>a,visitArray:()=>KB,visitCommaListElements:()=>tJ,visitEachChild:()=>nJ,visitFunctionBody:()=>ZB,visitIterationBody:()=>eJ,visitLexicalEnvironment:()=>XB,visitNode:()=>$B,visitNodes:()=>HB,visitParameterList:()=>QB,walkUpBindingElementsAndPatterns:()=>tc,walkUpOuterExpressions:()=>lA,walkUpParenthesizedExpressions:()=>nh,walkUpParenthesizedTypes:()=>th,walkUpParenthesizedTypesAndGetParentAndChild:()=>rh,whitespaceOrMapCommentRegExp:()=>cJ,writeCommentRange:()=>bv,writeFile:()=>Yy,writeFileEnsuringDirectories:()=>ev,zipWith:()=>h}),e.exports=o;var a="5.7",s="5.7.2",c=(e=>(e[e.LessThan=-1]="LessThan",e[e.EqualTo=0]="EqualTo",e[e.GreaterThan=1]="GreaterThan",e))(c||{}),l=[],_=new Map;function u(e){return void 0!==e?e.length:0}function d(e,t){if(void 0!==e)for(let n=0;n=0;n--){const r=t(e[n],n);if(r)return r}}function f(e,t){if(void 0!==e)for(let n=0;n=0;r--){const n=e[r];if(t(n,r))return n}}function k(e,t,n){if(void 0===e)return-1;for(let r=n??0;r=0;r--)if(t(e[r],r))return r;return-1}function T(e,t,n=mt){if(void 0!==e)for(let r=0;r{const[i,o]=t(r,e);n.set(i,o)})),n}function $(e,t){if(void 0!==e){if(void 0===t)return e.length>0;for(let n=0;nn(e[t],e[r])||vt(t,r)))}(e,r,n);let i=e[r[0]];const o=[r[0]];for(let n=1;ne[t]))}(e,t,n):function(e,t){const n=[];for(let r=0;r0&&r(t,e[n-1]))return!1;if(n0&&un.assertGreaterThanOrEqual(n(t[o],t[o-1]),0);t:for(const a=i;ia&&un.assertGreaterThanOrEqual(n(e[i],e[i-1]),0),n(t[o],e[i])){case-1:r.push(t[o]);continue e;case 0:continue e;case 1:continue t}}return r}function ie(e,t){return void 0===t?e:void 0===e?[t]:(e.push(t),e)}function oe(e,t){return void 0===e?t:void 0===t?e:Qe(e)?Qe(t)?K(e,t):ie(e,t):Qe(t)?ie(t,e):[e,t]}function ae(e,t){return t<0?e.length+t:t}function se(e,t,n,r){if(void 0===t||0===t.length)return e;if(void 0===e)return t.slice(n,r);n=void 0===n?0:ae(t,n),r=void 0===r?t.length:ae(t,r);for(let i=n;i=0;t--)yield e[t]}function de(e,t,n,r){for(;nnull==e?void 0:e.at(t):(e,t)=>{if(void 0!==e&&(t=ae(e,t))>1);switch(r(n(e[i],i),t)){case-1:o=i+1;break;case 0:return i;case 1:a=i-1}}return~o}function we(e,t,n,r,i){if(e&&e.length>0){const o=e.length;if(o>0){let a=void 0===r||r<0?0:r;const s=void 0===i||a+i>o-1?o-1:a+i;let c;for(arguments.length<=2?(c=e[a],a++):c=n;a<=s;)c=t(c,e[a],a),a++;return c}}return n}var Ne=Object.prototype.hasOwnProperty;function De(e,t){return Ne.call(e,t)}function Fe(e,t){return Ne.call(e,t)?e[t]:void 0}function Ee(e){const t=[];for(const n in e)Ne.call(e,n)&&t.push(n);return t}function Pe(e){const t=[];do{const n=Object.getOwnPropertyNames(e);for(const e of n)ce(t,e)}while(e=Object.getPrototypeOf(e));return t}function Ae(e){const t=[];for(const n in e)Ne.call(e,n)&&t.push(e[n]);return t}function Ie(e,t){const n=new Array(e);for(let r=0;r100&&n>t.length>>1){const e=t.length-n;t.copyWithin(0,n),t.length=e,n=0}return e},isEmpty:r}}function Xe(e,t){const n=new Map;let r=0;function*i(){for(const e of n.values())Qe(e)?yield*e:yield e}const o={has(r){const i=e(r);if(!n.has(i))return!1;const o=n.get(i);return Qe(o)?T(o,r,t):t(o,r)},add(i){const o=e(i);if(n.has(o)){const e=n.get(o);if(Qe(e))T(e,i,t)||(e.push(i),r++);else{const a=e;t(a,i)||(n.set(o,[a,i]),r++)}}else n.set(o,i),r++;return this},delete(i){const o=e(i);if(!n.has(o))return!1;const a=n.get(o);if(Qe(a)){for(let e=0;ei(),values:()=>i(),*entries(){for(const e of i())yield[e,e]},[Symbol.iterator]:()=>i(),[Symbol.toStringTag]:n[Symbol.toStringTag]};return o}function Qe(e){return Array.isArray(e)}function Ye(e){return Qe(e)?e:[e]}function Ze(e){return"string"==typeof e}function et(e){return"number"==typeof e}function tt(e,t){return void 0!==e&&t(e)?e:void 0}function nt(e,t){return void 0!==e&&t(e)?e:un.fail(`Invalid cast. The supplied value ${e} did not pass the test '${un.getFunctionName(t)}'.`)}function rt(e){}function it(){return!1}function ot(){return!0}function at(){}function st(e){return e}function ct(e){return e.toLowerCase()}var lt=/[^\u0130\u0131\u00DFa-z0-9\\/:\-_. ]+/g;function _t(e){return lt.test(e)?e.replace(lt,ct):e}function ut(){throw new Error("Not implemented")}function dt(e){let t;return()=>(e&&(t=e(),e=void 0),t)}function pt(e){const t=new Map;return n=>{const r=`${typeof n}:${n}`;let i=t.get(r);return void 0!==i||t.has(r)||(i=e(n),t.set(r,i)),i}}var ft=(e=>(e[e.None=0]="None",e[e.Normal=1]="Normal",e[e.Aggressive=2]="Aggressive",e[e.VeryAggressive=3]="VeryAggressive",e))(ft||{});function mt(e,t){return e===t}function gt(e,t){return e===t||void 0!==e&&void 0!==t&&e.toUpperCase()===t.toUpperCase()}function ht(e,t){return mt(e,t)}function yt(e,t){return e===t?0:void 0===e?-1:void 0===t?1:e-1===t(e,n)?e:n))}function St(e,t){return e===t?0:void 0===e?-1:void 0===t?1:(e=e.toUpperCase())<(t=t.toUpperCase())?-1:e>t?1:0}function Tt(e,t){return e===t?0:void 0===e?-1:void 0===t?1:(e=e.toLowerCase())<(t=t.toLowerCase())?-1:e>t?1:0}function Ct(e,t){return yt(e,t)}function wt(e){return e?St:Ct}var Nt,Dt,Ft=(()=>function(e){const t=new Intl.Collator(e,{usage:"sort",sensitivity:"variant",numeric:!0}).compare;return(e,n)=>function(e,t,n){if(e===t)return 0;if(void 0===e)return-1;if(void 0===t)return 1;const r=n(e,t);return r<0?-1:r>0?1:0}(e,n,t)})();function Et(){return Dt}function Pt(e){Dt!==e&&(Dt=e,Nt=void 0)}function At(e,t){return Nt??(Nt=Ft(Dt)),Nt(e,t)}function It(e,t,n,r){return e===t?0:void 0===e?-1:void 0===t?1:r(e[n],t[n])}function Ot(e,t){return vt(e?1:0,t?1:0)}function Lt(e,t,n){const r=Math.max(2,Math.floor(.34*e.length));let i,o=Math.floor(.4*e.length)+1;for(const a of t){const t=n(a);if(void 0!==t&&Math.abs(t.length-e.length)<=r){if(t===e)continue;if(t.length<3&&t.toLowerCase()!==e.toLowerCase())continue;const n=jt(e,t,o-.1);if(void 0===n)continue;un.assert(nn?a-n:1),l=Math.floor(t.length>n+a?n+a:t.length);i[0]=a;let _=a;for(let e=1;en)return;const u=r;r=i,i=u}const a=r[t.length];return a>n?void 0:a}function Rt(e,t,n){const r=e.length-t.length;return r>=0&&(n?gt(e.slice(r),t):e.indexOf(t,r)===r)}function Mt(e,t){return Rt(e,t)?e.slice(0,e.length-t.length):e}function Bt(e,t){return Rt(e,t)?e.slice(0,e.length-t.length):void 0}function Jt(e){let t=e.length;for(let n=t-1;n>0;n--){let r=e.charCodeAt(n);if(r>=48&&r<=57)do{--n,r=e.charCodeAt(n)}while(n>0&&r>=48&&r<=57);else{if(!(n>4)||110!==r&&78!==r)break;if(--n,r=e.charCodeAt(n),105!==r&&73!==r)break;if(--n,r=e.charCodeAt(n),109!==r&&77!==r)break;--n,r=e.charCodeAt(n)}if(45!==r&&46!==r)break;t=n}return t===e.length?e:e.slice(0,t)}function zt(e,t){for(let n=0;ni&&Yt(s,n)&&(i=s.prefix.length,r=a)}return r}function Gt(e,t,n){return n?gt(e.slice(0,t.length),t):0===e.lastIndexOf(t,0)}function Xt(e,t){return Gt(e,t)?e.substr(t.length):e}function Qt(e,t,n=st){return Gt(n(e),n(t))?e.substring(t.length):void 0}function Yt({prefix:e,suffix:t},n){return n.length>=e.length+t.length&&Gt(n,e)&&Rt(n,t)}function Zt(e,t){return n=>e(n)&&t(n)}function en(...e){return(...t)=>{let n;for(const r of e)if(n=r(...t),n)return n;return n}}function tn(e){return(...t)=>!e(...t)}function nn(e){}function rn(e){return void 0===e?void 0:[e]}function on(e,t,n,r,i,o){o??(o=rt);let a=0,s=0;const c=e.length,l=t.length;let _=!1;for(;a(e[e.Off=0]="Off",e[e.Error=1]="Error",e[e.Warning=2]="Warning",e[e.Info=3]="Info",e[e.Verbose=4]="Verbose",e))(dn||{});(e=>{let t=0;function n(t){return e.currentLogLevel<=t}function r(t,r){e.loggingHost&&n(t)&&e.loggingHost.log(t,r)}function i(e){r(3,e)}var o;e.currentLogLevel=2,e.isDebugging=!1,e.shouldLog=n,e.log=i,(o=i=e.log||(e.log={})).error=function(e){r(1,e)},o.warn=function(e){r(2,e)},o.log=function(e){r(3,e)},o.trace=function(e){r(4,e)};const a={};function s(e){return t>=e}function c(t,n){return!!s(t)||(a[n]={level:t,assertion:e[n]},e[n]=rt,!1)}function l(e,t){const n=new Error(e?`Debug Failure. ${e}`:"Debug Failure.");throw Error.captureStackTrace&&Error.captureStackTrace(n,t||l),n}function _(e,t,n,r){e||(t=t?`False expression: ${t}`:"False expression.",n&&(t+="\r\nVerbose Debug Information: "+("string"==typeof n?n:n())),l(t,r||_))}function u(e,t,n){null==e&&l(t,n||u)}function d(e,t,n){for(const r of e)u(r,t,n||d)}function p(e,t="Illegal value:",n){return l(`${t} ${"object"==typeof e&&De(e,"kind")&&De(e,"pos")?"SyntaxKind: "+y(e.kind):JSON.stringify(e)}`,n||p)}function f(e){if("function"!=typeof e)return"";if(De(e,"name"))return e.name;{const t=Function.prototype.toString.call(e),n=/^function\s+([\w$]+)\s*\(/.exec(t);return n?n[1]:""}}function m(e=0,t,n){const r=function(e){const t=g.get(e);if(t)return t;const n=[];for(const t in e){const r=e[t];"number"==typeof r&&n.push([r,t])}const r=_e(n,((e,t)=>vt(e[0],t[0])));return g.set(e,r),r}(t);if(0===e)return r.length>0&&0===r[0][0]?r[0][1]:"0";if(n){const t=[];let n=e;for(const[i,o]of r){if(i>e)break;0!==i&&i&e&&(t.push(o),n&=~i)}if(0===n)return t.join("|")}else for(const[t,n]of r)if(t===e)return n;return e.toString()}e.getAssertionLevel=function(){return t},e.setAssertionLevel=function(n){const r=t;if(t=n,n>r)for(const t of Ee(a)){const r=a[t];void 0!==r&&e[t]!==r.assertion&&n>=r.level&&(e[t]=r,a[t]=void 0)}},e.shouldAssert=s,e.fail=l,e.failBadSyntaxKind=function e(t,n,r){return l(`${n||"Unexpected node."}\r\nNode ${y(t.kind)} was unexpected.`,r||e)},e.assert=_,e.assertEqual=function e(t,n,r,i,o){t!==n&&l(`Expected ${t} === ${n}. ${r?i?`${r} ${i}`:r:""}`,o||e)},e.assertLessThan=function e(t,n,r,i){t>=n&&l(`Expected ${t} < ${n}. ${r||""}`,i||e)},e.assertLessThanOrEqual=function e(t,n,r){t>n&&l(`Expected ${t} <= ${n}`,r||e)},e.assertGreaterThanOrEqual=function e(t,n,r){t= ${n}`,r||e)},e.assertIsDefined=u,e.checkDefined=function e(t,n,r){return u(t,n,r||e),t},e.assertEachIsDefined=d,e.checkEachDefined=function e(t,n,r){return d(t,n,r||e),t},e.assertNever=p,e.assertEachNode=function e(t,n,r,i){c(1,"assertEachNode")&&_(void 0===n||v(t,n),r||"Unexpected node.",(()=>`Node array did not pass test '${f(n)}'.`),i||e)},e.assertNode=function e(t,n,r,i){c(1,"assertNode")&&_(void 0!==t&&(void 0===n||n(t)),r||"Unexpected node.",(()=>`Node ${y(null==t?void 0:t.kind)} did not pass test '${f(n)}'.`),i||e)},e.assertNotNode=function e(t,n,r,i){c(1,"assertNotNode")&&_(void 0===t||void 0===n||!n(t),r||"Unexpected node.",(()=>`Node ${y(t.kind)} should not have passed test '${f(n)}'.`),i||e)},e.assertOptionalNode=function e(t,n,r,i){c(1,"assertOptionalNode")&&_(void 0===n||void 0===t||n(t),r||"Unexpected node.",(()=>`Node ${y(null==t?void 0:t.kind)} did not pass test '${f(n)}'.`),i||e)},e.assertOptionalToken=function e(t,n,r,i){c(1,"assertOptionalToken")&&_(void 0===n||void 0===t||t.kind===n,r||"Unexpected node.",(()=>`Node ${y(null==t?void 0:t.kind)} was not a '${y(n)}' token.`),i||e)},e.assertMissingNode=function e(t,n,r){c(1,"assertMissingNode")&&_(void 0===t,n||"Unexpected node.",(()=>`Node ${y(t.kind)} was unexpected'.`),r||e)},e.type=function(e){},e.getFunctionName=f,e.formatSymbol=function(e){return`{ name: ${fc(e.escapedName)}; flags: ${T(e.flags)}; declarations: ${E(e.declarations,(e=>y(e.kind)))} }`},e.formatEnum=m;const g=new Map;function y(e){return m(e,fr,!1)}function b(e){return m(e,mr,!0)}function x(e){return m(e,gr,!0)}function k(e){return m(e,Ti,!0)}function S(e){return m(e,wi,!0)}function T(e){return m(e,qr,!0)}function C(e){return m(e,$r,!0)}function w(e){return m(e,ei,!0)}function N(e){return m(e,Hr,!0)}function D(e){return m(e,Sr,!0)}e.formatSyntaxKind=y,e.formatSnippetKind=function(e){return m(e,Ci,!1)},e.formatScriptKind=function(e){return m(e,yi,!1)},e.formatNodeFlags=b,e.formatNodeCheckFlags=function(e){return m(e,Wr,!0)},e.formatModifierFlags=x,e.formatTransformFlags=k,e.formatEmitFlags=S,e.formatSymbolFlags=T,e.formatTypeFlags=C,e.formatSignatureFlags=w,e.formatObjectFlags=N,e.formatFlowFlags=D,e.formatRelationComparisonResult=function(e){return m(e,yr,!0)},e.formatCheckMode=function(e){return m(e,EB,!0)},e.formatSignatureCheckMode=function(e){return m(e,PB,!0)},e.formatTypeFacts=function(e){return m(e,DB,!0)};let F,P,A=!1;function I(e){"__debugFlowFlags"in e||Object.defineProperties(e,{__tsDebuggerDisplay:{value(){const e=2&this.flags?"FlowStart":4&this.flags?"FlowBranchLabel":8&this.flags?"FlowLoopLabel":16&this.flags?"FlowAssignment":32&this.flags?"FlowTrueCondition":64&this.flags?"FlowFalseCondition":128&this.flags?"FlowSwitchClause":256&this.flags?"FlowArrayMutation":512&this.flags?"FlowCall":1024&this.flags?"FlowReduceLabel":1&this.flags?"FlowUnreachable":"UnknownFlow",t=-2048&this.flags;return`${e}${t?` (${D(t)})`:""}`}},__debugFlowFlags:{get(){return m(this.flags,Sr,!0)}},__debugToString:{value(){return j(this)}}})}function O(e){"__tsDebuggerDisplay"in e||Object.defineProperties(e,{__tsDebuggerDisplay:{value:e=>`NodeArray ${e=String(e).replace(/(?:,[\s\w]+:[^,]+)+\]$/,"]")}`}})}e.attachFlowNodeDebugInfo=function(e){return A&&("function"==typeof Object.setPrototypeOf?(F||(F=Object.create(Object.prototype),I(F)),Object.setPrototypeOf(e,F)):I(e)),e},e.attachNodeArrayDebugInfo=function(e){A&&("function"==typeof Object.setPrototypeOf?(P||(P=Object.create(Array.prototype),O(P)),Object.setPrototypeOf(e,P)):O(e))},e.enableDebugInfo=function(){if(A)return;const e=new WeakMap,t=new WeakMap;Object.defineProperties(jx.getSymbolConstructor().prototype,{__tsDebuggerDisplay:{value(){const e=33554432&this.flags?"TransientSymbol":"Symbol",t=-33554433&this.flags;return`${e} '${hc(this)}'${t?` (${T(t)})`:""}`}},__debugFlags:{get(){return T(this.flags)}}}),Object.defineProperties(jx.getTypeConstructor().prototype,{__tsDebuggerDisplay:{value(){const e=67359327&this.flags?`IntrinsicType ${this.intrinsicName}${this.debugIntrinsicName?` (${this.debugIntrinsicName})`:""}`:98304&this.flags?"NullableType":384&this.flags?`LiteralType ${JSON.stringify(this.value)}`:2048&this.flags?`LiteralType ${this.value.negative?"-":""}${this.value.base10Value}n`:8192&this.flags?"UniqueESSymbolType":32&this.flags?"EnumType":1048576&this.flags?"UnionType":2097152&this.flags?"IntersectionType":4194304&this.flags?"IndexType":8388608&this.flags?"IndexedAccessType":16777216&this.flags?"ConditionalType":33554432&this.flags?"SubstitutionType":262144&this.flags?"TypeParameter":524288&this.flags?3&this.objectFlags?"InterfaceType":4&this.objectFlags?"TypeReference":8&this.objectFlags?"TupleType":16&this.objectFlags?"AnonymousType":32&this.objectFlags?"MappedType":1024&this.objectFlags?"ReverseMappedType":256&this.objectFlags?"EvolvingArrayType":"ObjectType":"Type",t=524288&this.flags?-1344&this.objectFlags:0;return`${e}${this.symbol?` '${hc(this.symbol)}'`:""}${t?` (${N(t)})`:""}`}},__debugFlags:{get(){return C(this.flags)}},__debugObjectFlags:{get(){return 524288&this.flags?N(this.objectFlags):""}},__debugTypeToString:{value(){let t=e.get(this);return void 0===t&&(t=this.checker.typeToString(this),e.set(this,t)),t}}}),Object.defineProperties(jx.getSignatureConstructor().prototype,{__debugFlags:{get(){return w(this.flags)}},__debugSignatureToString:{value(){var e;return null==(e=this.checker)?void 0:e.signatureToString(this)}}});const n=[jx.getNodeConstructor(),jx.getIdentifierConstructor(),jx.getTokenConstructor(),jx.getSourceFileConstructor()];for(const e of n)De(e.prototype,"__debugKind")||Object.defineProperties(e.prototype,{__tsDebuggerDisplay:{value(){return`${Vl(this)?"GeneratedIdentifier":zN(this)?`Identifier '${mc(this)}'`:qN(this)?`PrivateIdentifier '${mc(this)}'`:TN(this)?`StringLiteral ${JSON.stringify(this.text.length<10?this.text:this.text.slice(10)+"...")}`:kN(this)?`NumericLiteral ${this.text}`:SN(this)?`BigIntLiteral ${this.text}n`:iD(this)?"TypeParameterDeclaration":oD(this)?"ParameterDeclaration":dD(this)?"ConstructorDeclaration":pD(this)?"GetAccessorDeclaration":fD(this)?"SetAccessorDeclaration":mD(this)?"CallSignatureDeclaration":gD(this)?"ConstructSignatureDeclaration":hD(this)?"IndexSignatureDeclaration":yD(this)?"TypePredicateNode":vD(this)?"TypeReferenceNode":bD(this)?"FunctionTypeNode":xD(this)?"ConstructorTypeNode":kD(this)?"TypeQueryNode":SD(this)?"TypeLiteralNode":TD(this)?"ArrayTypeNode":CD(this)?"TupleTypeNode":ND(this)?"OptionalTypeNode":DD(this)?"RestTypeNode":FD(this)?"UnionTypeNode":ED(this)?"IntersectionTypeNode":PD(this)?"ConditionalTypeNode":AD(this)?"InferTypeNode":ID(this)?"ParenthesizedTypeNode":OD(this)?"ThisTypeNode":LD(this)?"TypeOperatorNode":jD(this)?"IndexedAccessTypeNode":RD(this)?"MappedTypeNode":MD(this)?"LiteralTypeNode":wD(this)?"NamedTupleMember":BD(this)?"ImportTypeNode":y(this.kind)}${this.flags?` (${b(this.flags)})`:""}`}},__debugKind:{get(){return y(this.kind)}},__debugNodeFlags:{get(){return b(this.flags)}},__debugModifierFlags:{get(){return x(Uv(this))}},__debugTransformFlags:{get(){return k(this.transformFlags)}},__debugIsParseTreeNode:{get(){return uc(this)}},__debugEmitFlags:{get(){return S(Qd(this))}},__debugGetText:{value(e){if(Zh(this))return"";let n=t.get(this);if(void 0===n){const r=dc(this),i=r&&hd(r);n=i?qd(i,r,e):"",t.set(this,n)}return n}}});A=!0},e.formatVariance=function(e){const t=7&e;let n=0===t?"in out":3===t?"[bivariant]":2===t?"in":1===t?"out":4===t?"[independent]":"";return 8&e?n+=" (unmeasurable)":16&e&&(n+=" (unreliable)"),n};class L{__debugToString(){var e;switch(this.kind){case 3:return(null==(e=this.debugInfo)?void 0:e.call(this))||"(function mapper)";case 0:return`${this.source.__debugTypeToString()} -> ${this.target.__debugTypeToString()}`;case 1:return h(this.sources,this.targets||E(this.sources,(()=>"any")),((e,t)=>`${e.__debugTypeToString()} -> ${"string"==typeof t?t:t.__debugTypeToString()}`)).join(", ");case 2:return h(this.sources,this.targets,((e,t)=>`${e.__debugTypeToString()} -> ${t().__debugTypeToString()}`)).join(", ");case 5:case 4:return`m1: ${this.mapper1.__debugToString().split("\n").join("\n ")}\nm2: ${this.mapper2.__debugToString().split("\n").join("\n ")}`;default:return p(this)}}}function j(e){let t,n=-1;function r(e){return e.id||(e.id=n,n--),e.id}var i;let o;var a;(i=t||(t={})).lr="─",i.ud="│",i.dr="╭",i.dl="╮",i.ul="╯",i.ur="╰",i.udr="├",i.udl="┤",i.dlr="┬",i.ulr="┴",i.udlr="╫",(a=o||(o={}))[a.None=0]="None",a[a.Up=1]="Up",a[a.Down=2]="Down",a[a.Left=4]="Left",a[a.Right=8]="Right",a[a.UpDown=3]="UpDown",a[a.LeftRight=12]="LeftRight",a[a.UpLeft=5]="UpLeft",a[a.UpRight=9]="UpRight",a[a.DownLeft=6]="DownLeft",a[a.DownRight=10]="DownRight",a[a.UpDownLeft=7]="UpDownLeft",a[a.UpDownRight=11]="UpDownRight",a[a.UpLeftRight=13]="UpLeftRight",a[a.DownLeftRight=14]="DownLeftRight",a[a.UpDownLeftRight=15]="UpDownLeftRight",a[a.NoChildren=16]="NoChildren";const s=Object.create(null),c=[],l=[],_=f(e,new Set);for(const e of c)e.text=y(e.flowNode,e.circular),g(e);const u=function(e){const t=b(Array(e),0);for(const e of c)t[e.level]=Math.max(t[e.level],e.text.length);return t}(function e(t){let n=0;for(const r of d(t))n=Math.max(n,e(r));return n+1}(_));return function e(t,n){if(-1===t.lane){t.lane=n,t.endLane=n;const r=d(t);for(let i=0;i0&&n++;const o=r[i];e(o,n),o.endLane>t.endLane&&(n=o.endLane)}t.endLane=n}}(_,0),function(){const e=u.length,t=xt(c,0,(e=>e.lane))+1,n=b(Array(t),""),r=u.map((()=>Array(t))),i=u.map((()=>b(Array(t),0)));for(const e of c){r[e.level][e.lane]=e;const t=d(e);for(let n=0;n0&&(o|=1),n0&&(o|=1),t0?i[n-1][e]:0,r=e>0?i[n][e-1]:0;let o=i[n][e];o||(8&t&&(o|=12),2&r&&(o|=3),i[n][e]=o)}for(let t=0;t0?e.repeat(t):"";let n="";for(;n.length=0,"Invalid argument: major"),un.assert(t>=0,"Invalid argument: minor"),un.assert(n>=0,"Invalid argument: patch");const o=r?Qe(r)?r:r.split("."):l,a=i?Qe(i)?i:i.split("."):l;un.assert(v(o,(e=>mn.test(e))),"Invalid argument: prerelease"),un.assert(v(a,(e=>hn.test(e))),"Invalid argument: build"),this.major=e,this.minor=t,this.patch=n,this.prerelease=o,this.build=a}static tryParse(t){const n=xn(t);if(!n)return;const{major:r,minor:i,patch:o,prerelease:a,build:s}=n;return new e(r,i,o,a,s)}compareTo(e){return this===e?0:void 0===e?1:vt(this.major,e.major)||vt(this.minor,e.minor)||vt(this.patch,e.patch)||function(e,t){if(e===t)return 0;if(0===e.length)return 0===t.length?0:1;if(0===t.length)return-1;const n=Math.min(e.length,t.length);for(let r=0;r=]|<=|>=)?\s*([a-z0-9-+.*]+)$/i;function Dn(e){const t=[];for(let n of e.trim().split(Sn)){if(!n)continue;const e=[];n=n.trim();const r=wn.exec(n);if(r){if(!En(r[1],r[2],e))return}else for(const t of n.split(Tn)){const n=Nn.exec(t.trim());if(!n||!Pn(n[1],n[2],e))return}t.push(e)}return t}function Fn(e){const t=Cn.exec(e);if(!t)return;const[,n,r="*",i="*",o,a]=t;return{version:new bn(An(n)?0:parseInt(n,10),An(n)||An(r)?0:parseInt(r,10),An(n)||An(r)||An(i)?0:parseInt(i,10),o,a),major:n,minor:r,patch:i}}function En(e,t,n){const r=Fn(e);if(!r)return!1;const i=Fn(t);return!!i&&(An(r.major)||n.push(In(">=",r.version)),An(i.major)||n.push(An(i.minor)?In("<",i.version.increment("major")):An(i.patch)?In("<",i.version.increment("minor")):In("<=",i.version)),!0)}function Pn(e,t,n){const r=Fn(t);if(!r)return!1;const{version:i,major:o,minor:a,patch:s}=r;if(An(o))"<"!==e&&">"!==e||n.push(In("<",bn.zero));else switch(e){case"~":n.push(In(">=",i)),n.push(In("<",i.increment(An(a)?"major":"minor")));break;case"^":n.push(In(">=",i)),n.push(In("<",i.increment(i.major>0||An(a)?"major":i.minor>0||An(s)?"minor":"patch")));break;case"<":case">=":n.push(An(a)||An(s)?In(e,i.with({prerelease:"0"})):In(e,i));break;case"<=":case">":n.push(An(a)?In("<="===e?"<":">=",i.increment("major").with({prerelease:"0"})):An(s)?In("<="===e?"<":">=",i.increment("minor").with({prerelease:"0"})):In(e,i));break;case"=":case void 0:An(a)||An(s)?(n.push(In(">=",i.with({prerelease:"0"}))),n.push(In("<",i.increment(An(a)?"major":"minor").with({prerelease:"0"})))):n.push(In("=",i));break;default:return!1}return!0}function An(e){return"*"===e||"x"===e||"X"===e}function In(e,t){return{operator:e,operand:t}}function On(e,t){for(const n of t)if(!Ln(e,n.operator,n.operand))return!1;return!0}function Ln(e,t,n){const r=e.compareTo(n);switch(t){case"<":return r<0;case"<=":return r<=0;case">":return r>0;case">=":return r>=0;case"=":return 0===r;default:return un.assertNever(t)}}function jn(e){return E(e,Rn).join(" ")}function Rn(e){return`${e.operator}${e.operand}`}var Mn=function(){const e=function(){if(_n())try{const{performance:e}=n(31);if(e)return{shouldWriteNativeEvents:!1,performance:e}}catch{}if("object"==typeof performance)return{shouldWriteNativeEvents:!0,performance}}();if(!e)return;const{shouldWriteNativeEvents:t,performance:r}=e,i={shouldWriteNativeEvents:t,performance:void 0,performanceTime:void 0};return"number"==typeof r.timeOrigin&&"function"==typeof r.now&&(i.performanceTime=r),i.performanceTime&&"function"==typeof r.mark&&"function"==typeof r.measure&&"function"==typeof r.clearMarks&&"function"==typeof r.clearMeasures&&(i.performance=r),i}(),Bn=null==Mn?void 0:Mn.performanceTime;function Jn(){return Mn}var zn,qn,Un=Bn?()=>Bn.now():Date.now,Vn={};function Wn(e,t,n,r){return e?$n(t,n,r):Gn}function $n(e,t,n){let r=0;return{enter:function(){1==++r&&tr(t)},exit:function(){0==--r?(tr(n),nr(e,t,n)):r<0&&un.fail("enter/exit count does not match.")}}}i(Vn,{clearMarks:()=>cr,clearMeasures:()=>sr,createTimer:()=>$n,createTimerIf:()=>Wn,disable:()=>ur,enable:()=>_r,forEachMark:()=>ar,forEachMeasure:()=>or,getCount:()=>rr,getDuration:()=>ir,isEnabled:()=>lr,mark:()=>tr,measure:()=>nr,nullTimer:()=>Gn});var Hn,Kn,Gn={enter:rt,exit:rt},Xn=!1,Qn=Un(),Yn=new Map,Zn=new Map,er=new Map;function tr(e){if(Xn){const t=Zn.get(e)??0;Zn.set(e,t+1),Yn.set(e,Un()),null==qn||qn.mark(e),"function"==typeof onProfilerEvent&&onProfilerEvent(e)}}function nr(e,t,n){if(Xn){const r=(void 0!==n?Yn.get(n):void 0)??Un(),i=(void 0!==t?Yn.get(t):void 0)??Qn,o=er.get(e)||0;er.set(e,o+(r-i)),null==qn||qn.measure(e,t,n)}}function rr(e){return Zn.get(e)||0}function ir(e){return er.get(e)||0}function or(e){er.forEach(((t,n)=>e(n,t)))}function ar(e){Yn.forEach(((t,n)=>e(n)))}function sr(e){void 0!==e?er.delete(e):er.clear(),null==qn||qn.clearMeasures(e)}function cr(e){void 0!==e?(Zn.delete(e),Yn.delete(e)):(Zn.clear(),Yn.clear()),null==qn||qn.clearMarks(e)}function lr(){return Xn}function _r(e=so){var t;return Xn||(Xn=!0,zn||(zn=Jn()),(null==zn?void 0:zn.performance)&&(Qn=zn.performance.timeOrigin,(zn.shouldWriteNativeEvents||(null==(t=null==e?void 0:e.cpuProfilingEnabled)?void 0:t.call(e))||(null==e?void 0:e.debugMode))&&(qn=zn.performance))),!0}function ur(){Xn&&(Yn.clear(),Zn.clear(),er.clear(),qn=void 0,Xn=!1)}(e=>{let t,r,i=0,o=0;const a=[];let s;const c=[];let l;var _;e.startTracing=function(l,_,u){if(un.assert(!Hn,"Tracing already started"),void 0===t)try{t=n(714)}catch(e){throw new Error(`tracing requires having fs\n(original error: ${e.message||e})`)}r=l,a.length=0,void 0===s&&(s=jo(_,"legend.json")),t.existsSync(_)||t.mkdirSync(_,{recursive:!0});const d="build"===r?`.${process.pid}-${++i}`:"server"===r?`.${process.pid}`:"",p=jo(_,`trace${d}.json`),f=jo(_,`types${d}.json`);c.push({configFilePath:u,tracePath:p,typesPath:f}),o=t.openSync(p,"w"),Hn=e;const m={cat:"__metadata",ph:"M",ts:1e3*Un(),pid:1,tid:1};t.writeSync(o,"[\n"+[{name:"process_name",args:{name:"tsc"},...m},{name:"thread_name",args:{name:"Main"},...m},{name:"TracingStartedInBrowser",...m,cat:"disabled-by-default-devtools.timeline"}].map((e=>JSON.stringify(e))).join(",\n"))},e.stopTracing=function(){un.assert(Hn,"Tracing is not in progress"),un.assert(!!a.length==("server"!==r)),t.writeSync(o,"\n]\n"),t.closeSync(o),Hn=void 0,a.length?function(e){var n,r,i,o,a,s,l,_,u,d,p,f,g,h,y,v,b,x,k;tr("beginDumpTypes");const S=c[c.length-1].typesPath,T=t.openSync(S,"w"),C=new Map;t.writeSync(T,"[");const w=e.length;for(let c=0;ce.id)),referenceLocation:m(e.node)}}let A={};if(16777216&S.flags){const e=S;A={conditionalCheckType:null==(s=e.checkType)?void 0:s.id,conditionalExtendsType:null==(l=e.extendsType)?void 0:l.id,conditionalTrueType:(null==(_=e.resolvedTrueType)?void 0:_.id)??-1,conditionalFalseType:(null==(u=e.resolvedFalseType)?void 0:u.id)??-1}}let I={};if(33554432&S.flags){const e=S;I={substitutionBaseType:null==(d=e.baseType)?void 0:d.id,constraintType:null==(p=e.constraint)?void 0:p.id}}let O={};if(1024&N){const e=S;O={reverseMappedSourceType:null==(f=e.source)?void 0:f.id,reverseMappedMappedType:null==(g=e.mappedType)?void 0:g.id,reverseMappedConstraintType:null==(h=e.constraintType)?void 0:h.id}}let L,j={};if(256&N){const e=S;j={evolvingArrayElementType:e.elementType.id,evolvingArrayFinalType:null==(y=e.finalArrayType)?void 0:y.id}}const R=S.checker.getRecursionIdentity(S);R&&(L=C.get(R),L||(L=C.size,C.set(R,L)));const M={id:S.id,intrinsicName:S.intrinsicName,symbolName:(null==D?void 0:D.escapedName)&&fc(D.escapedName),recursionId:L,isTuple:!!(8&N)||void 0,unionTypes:1048576&S.flags?null==(v=S.types)?void 0:v.map((e=>e.id)):void 0,intersectionTypes:2097152&S.flags?S.types.map((e=>e.id)):void 0,aliasTypeArguments:null==(b=S.aliasTypeArguments)?void 0:b.map((e=>e.id)),keyofType:4194304&S.flags?null==(x=S.type)?void 0:x.id:void 0,...E,...P,...A,...I,...O,...j,destructuringPattern:m(S.pattern),firstDeclaration:m(null==(k=null==D?void 0:D.declarations)?void 0:k[0]),flags:un.formatTypeFlags(S.flags).split("|"),display:F};t.writeSync(T,JSON.stringify(M)),c0),p(u.length-1,1e3*Un(),e),u.length--},e.popAll=function(){const e=1e3*Un();for(let t=u.length-1;t>=0;t--)p(t,e);u.length=0};const d=1e4;function p(e,t,n){const{phase:r,name:i,args:o,time:a,separateBeginAndEnd:s}=u[e];s?(un.assert(!n,"`results` are not supported for events with `separateBeginAndEnd`"),f("E",r,i,o,void 0,t)):d-a%d<=t-a&&f("X",r,i,{...o,results:n},'"dur":'+(t-a),a)}function f(e,n,i,a,s,c=1e3*Un()){"server"===r&&"checkTypes"===n||(tr("beginTracing"),t.writeSync(o,`,\n{"pid":1,"tid":1,"ph":"${e}","cat":"${n}","ts":${c},"name":"${i}"`),s&&t.writeSync(o,`,${s}`),a&&t.writeSync(o,`,"args":${JSON.stringify(a)}`),t.writeSync(o,"}"),tr("endTracing"),nr("Tracing","beginTracing","endTracing"))}function m(e){const t=hd(e);return t?{path:t.path,start:n(Ja(t,e.pos)),end:n(Ja(t,e.end))}:void 0;function n(e){return{line:e.line+1,character:e.character+1}}}e.dumpLegend=function(){s&&t.writeFileSync(s,JSON.stringify(c))}})(Kn||(Kn={}));var dr=Kn.startTracing,pr=Kn.dumpLegend,fr=(e=>(e[e.Unknown=0]="Unknown",e[e.EndOfFileToken=1]="EndOfFileToken",e[e.SingleLineCommentTrivia=2]="SingleLineCommentTrivia",e[e.MultiLineCommentTrivia=3]="MultiLineCommentTrivia",e[e.NewLineTrivia=4]="NewLineTrivia",e[e.WhitespaceTrivia=5]="WhitespaceTrivia",e[e.ShebangTrivia=6]="ShebangTrivia",e[e.ConflictMarkerTrivia=7]="ConflictMarkerTrivia",e[e.NonTextFileMarkerTrivia=8]="NonTextFileMarkerTrivia",e[e.NumericLiteral=9]="NumericLiteral",e[e.BigIntLiteral=10]="BigIntLiteral",e[e.StringLiteral=11]="StringLiteral",e[e.JsxText=12]="JsxText",e[e.JsxTextAllWhiteSpaces=13]="JsxTextAllWhiteSpaces",e[e.RegularExpressionLiteral=14]="RegularExpressionLiteral",e[e.NoSubstitutionTemplateLiteral=15]="NoSubstitutionTemplateLiteral",e[e.TemplateHead=16]="TemplateHead",e[e.TemplateMiddle=17]="TemplateMiddle",e[e.TemplateTail=18]="TemplateTail",e[e.OpenBraceToken=19]="OpenBraceToken",e[e.CloseBraceToken=20]="CloseBraceToken",e[e.OpenParenToken=21]="OpenParenToken",e[e.CloseParenToken=22]="CloseParenToken",e[e.OpenBracketToken=23]="OpenBracketToken",e[e.CloseBracketToken=24]="CloseBracketToken",e[e.DotToken=25]="DotToken",e[e.DotDotDotToken=26]="DotDotDotToken",e[e.SemicolonToken=27]="SemicolonToken",e[e.CommaToken=28]="CommaToken",e[e.QuestionDotToken=29]="QuestionDotToken",e[e.LessThanToken=30]="LessThanToken",e[e.LessThanSlashToken=31]="LessThanSlashToken",e[e.GreaterThanToken=32]="GreaterThanToken",e[e.LessThanEqualsToken=33]="LessThanEqualsToken",e[e.GreaterThanEqualsToken=34]="GreaterThanEqualsToken",e[e.EqualsEqualsToken=35]="EqualsEqualsToken",e[e.ExclamationEqualsToken=36]="ExclamationEqualsToken",e[e.EqualsEqualsEqualsToken=37]="EqualsEqualsEqualsToken",e[e.ExclamationEqualsEqualsToken=38]="ExclamationEqualsEqualsToken",e[e.EqualsGreaterThanToken=39]="EqualsGreaterThanToken",e[e.PlusToken=40]="PlusToken",e[e.MinusToken=41]="MinusToken",e[e.AsteriskToken=42]="AsteriskToken",e[e.AsteriskAsteriskToken=43]="AsteriskAsteriskToken",e[e.SlashToken=44]="SlashToken",e[e.PercentToken=45]="PercentToken",e[e.PlusPlusToken=46]="PlusPlusToken",e[e.MinusMinusToken=47]="MinusMinusToken",e[e.LessThanLessThanToken=48]="LessThanLessThanToken",e[e.GreaterThanGreaterThanToken=49]="GreaterThanGreaterThanToken",e[e.GreaterThanGreaterThanGreaterThanToken=50]="GreaterThanGreaterThanGreaterThanToken",e[e.AmpersandToken=51]="AmpersandToken",e[e.BarToken=52]="BarToken",e[e.CaretToken=53]="CaretToken",e[e.ExclamationToken=54]="ExclamationToken",e[e.TildeToken=55]="TildeToken",e[e.AmpersandAmpersandToken=56]="AmpersandAmpersandToken",e[e.BarBarToken=57]="BarBarToken",e[e.QuestionToken=58]="QuestionToken",e[e.ColonToken=59]="ColonToken",e[e.AtToken=60]="AtToken",e[e.QuestionQuestionToken=61]="QuestionQuestionToken",e[e.BacktickToken=62]="BacktickToken",e[e.HashToken=63]="HashToken",e[e.EqualsToken=64]="EqualsToken",e[e.PlusEqualsToken=65]="PlusEqualsToken",e[e.MinusEqualsToken=66]="MinusEqualsToken",e[e.AsteriskEqualsToken=67]="AsteriskEqualsToken",e[e.AsteriskAsteriskEqualsToken=68]="AsteriskAsteriskEqualsToken",e[e.SlashEqualsToken=69]="SlashEqualsToken",e[e.PercentEqualsToken=70]="PercentEqualsToken",e[e.LessThanLessThanEqualsToken=71]="LessThanLessThanEqualsToken",e[e.GreaterThanGreaterThanEqualsToken=72]="GreaterThanGreaterThanEqualsToken",e[e.GreaterThanGreaterThanGreaterThanEqualsToken=73]="GreaterThanGreaterThanGreaterThanEqualsToken",e[e.AmpersandEqualsToken=74]="AmpersandEqualsToken",e[e.BarEqualsToken=75]="BarEqualsToken",e[e.BarBarEqualsToken=76]="BarBarEqualsToken",e[e.AmpersandAmpersandEqualsToken=77]="AmpersandAmpersandEqualsToken",e[e.QuestionQuestionEqualsToken=78]="QuestionQuestionEqualsToken",e[e.CaretEqualsToken=79]="CaretEqualsToken",e[e.Identifier=80]="Identifier",e[e.PrivateIdentifier=81]="PrivateIdentifier",e[e.JSDocCommentTextToken=82]="JSDocCommentTextToken",e[e.BreakKeyword=83]="BreakKeyword",e[e.CaseKeyword=84]="CaseKeyword",e[e.CatchKeyword=85]="CatchKeyword",e[e.ClassKeyword=86]="ClassKeyword",e[e.ConstKeyword=87]="ConstKeyword",e[e.ContinueKeyword=88]="ContinueKeyword",e[e.DebuggerKeyword=89]="DebuggerKeyword",e[e.DefaultKeyword=90]="DefaultKeyword",e[e.DeleteKeyword=91]="DeleteKeyword",e[e.DoKeyword=92]="DoKeyword",e[e.ElseKeyword=93]="ElseKeyword",e[e.EnumKeyword=94]="EnumKeyword",e[e.ExportKeyword=95]="ExportKeyword",e[e.ExtendsKeyword=96]="ExtendsKeyword",e[e.FalseKeyword=97]="FalseKeyword",e[e.FinallyKeyword=98]="FinallyKeyword",e[e.ForKeyword=99]="ForKeyword",e[e.FunctionKeyword=100]="FunctionKeyword",e[e.IfKeyword=101]="IfKeyword",e[e.ImportKeyword=102]="ImportKeyword",e[e.InKeyword=103]="InKeyword",e[e.InstanceOfKeyword=104]="InstanceOfKeyword",e[e.NewKeyword=105]="NewKeyword",e[e.NullKeyword=106]="NullKeyword",e[e.ReturnKeyword=107]="ReturnKeyword",e[e.SuperKeyword=108]="SuperKeyword",e[e.SwitchKeyword=109]="SwitchKeyword",e[e.ThisKeyword=110]="ThisKeyword",e[e.ThrowKeyword=111]="ThrowKeyword",e[e.TrueKeyword=112]="TrueKeyword",e[e.TryKeyword=113]="TryKeyword",e[e.TypeOfKeyword=114]="TypeOfKeyword",e[e.VarKeyword=115]="VarKeyword",e[e.VoidKeyword=116]="VoidKeyword",e[e.WhileKeyword=117]="WhileKeyword",e[e.WithKeyword=118]="WithKeyword",e[e.ImplementsKeyword=119]="ImplementsKeyword",e[e.InterfaceKeyword=120]="InterfaceKeyword",e[e.LetKeyword=121]="LetKeyword",e[e.PackageKeyword=122]="PackageKeyword",e[e.PrivateKeyword=123]="PrivateKeyword",e[e.ProtectedKeyword=124]="ProtectedKeyword",e[e.PublicKeyword=125]="PublicKeyword",e[e.StaticKeyword=126]="StaticKeyword",e[e.YieldKeyword=127]="YieldKeyword",e[e.AbstractKeyword=128]="AbstractKeyword",e[e.AccessorKeyword=129]="AccessorKeyword",e[e.AsKeyword=130]="AsKeyword",e[e.AssertsKeyword=131]="AssertsKeyword",e[e.AssertKeyword=132]="AssertKeyword",e[e.AnyKeyword=133]="AnyKeyword",e[e.AsyncKeyword=134]="AsyncKeyword",e[e.AwaitKeyword=135]="AwaitKeyword",e[e.BooleanKeyword=136]="BooleanKeyword",e[e.ConstructorKeyword=137]="ConstructorKeyword",e[e.DeclareKeyword=138]="DeclareKeyword",e[e.GetKeyword=139]="GetKeyword",e[e.InferKeyword=140]="InferKeyword",e[e.IntrinsicKeyword=141]="IntrinsicKeyword",e[e.IsKeyword=142]="IsKeyword",e[e.KeyOfKeyword=143]="KeyOfKeyword",e[e.ModuleKeyword=144]="ModuleKeyword",e[e.NamespaceKeyword=145]="NamespaceKeyword",e[e.NeverKeyword=146]="NeverKeyword",e[e.OutKeyword=147]="OutKeyword",e[e.ReadonlyKeyword=148]="ReadonlyKeyword",e[e.RequireKeyword=149]="RequireKeyword",e[e.NumberKeyword=150]="NumberKeyword",e[e.ObjectKeyword=151]="ObjectKeyword",e[e.SatisfiesKeyword=152]="SatisfiesKeyword",e[e.SetKeyword=153]="SetKeyword",e[e.StringKeyword=154]="StringKeyword",e[e.SymbolKeyword=155]="SymbolKeyword",e[e.TypeKeyword=156]="TypeKeyword",e[e.UndefinedKeyword=157]="UndefinedKeyword",e[e.UniqueKeyword=158]="UniqueKeyword",e[e.UnknownKeyword=159]="UnknownKeyword",e[e.UsingKeyword=160]="UsingKeyword",e[e.FromKeyword=161]="FromKeyword",e[e.GlobalKeyword=162]="GlobalKeyword",e[e.BigIntKeyword=163]="BigIntKeyword",e[e.OverrideKeyword=164]="OverrideKeyword",e[e.OfKeyword=165]="OfKeyword",e[e.QualifiedName=166]="QualifiedName",e[e.ComputedPropertyName=167]="ComputedPropertyName",e[e.TypeParameter=168]="TypeParameter",e[e.Parameter=169]="Parameter",e[e.Decorator=170]="Decorator",e[e.PropertySignature=171]="PropertySignature",e[e.PropertyDeclaration=172]="PropertyDeclaration",e[e.MethodSignature=173]="MethodSignature",e[e.MethodDeclaration=174]="MethodDeclaration",e[e.ClassStaticBlockDeclaration=175]="ClassStaticBlockDeclaration",e[e.Constructor=176]="Constructor",e[e.GetAccessor=177]="GetAccessor",e[e.SetAccessor=178]="SetAccessor",e[e.CallSignature=179]="CallSignature",e[e.ConstructSignature=180]="ConstructSignature",e[e.IndexSignature=181]="IndexSignature",e[e.TypePredicate=182]="TypePredicate",e[e.TypeReference=183]="TypeReference",e[e.FunctionType=184]="FunctionType",e[e.ConstructorType=185]="ConstructorType",e[e.TypeQuery=186]="TypeQuery",e[e.TypeLiteral=187]="TypeLiteral",e[e.ArrayType=188]="ArrayType",e[e.TupleType=189]="TupleType",e[e.OptionalType=190]="OptionalType",e[e.RestType=191]="RestType",e[e.UnionType=192]="UnionType",e[e.IntersectionType=193]="IntersectionType",e[e.ConditionalType=194]="ConditionalType",e[e.InferType=195]="InferType",e[e.ParenthesizedType=196]="ParenthesizedType",e[e.ThisType=197]="ThisType",e[e.TypeOperator=198]="TypeOperator",e[e.IndexedAccessType=199]="IndexedAccessType",e[e.MappedType=200]="MappedType",e[e.LiteralType=201]="LiteralType",e[e.NamedTupleMember=202]="NamedTupleMember",e[e.TemplateLiteralType=203]="TemplateLiteralType",e[e.TemplateLiteralTypeSpan=204]="TemplateLiteralTypeSpan",e[e.ImportType=205]="ImportType",e[e.ObjectBindingPattern=206]="ObjectBindingPattern",e[e.ArrayBindingPattern=207]="ArrayBindingPattern",e[e.BindingElement=208]="BindingElement",e[e.ArrayLiteralExpression=209]="ArrayLiteralExpression",e[e.ObjectLiteralExpression=210]="ObjectLiteralExpression",e[e.PropertyAccessExpression=211]="PropertyAccessExpression",e[e.ElementAccessExpression=212]="ElementAccessExpression",e[e.CallExpression=213]="CallExpression",e[e.NewExpression=214]="NewExpression",e[e.TaggedTemplateExpression=215]="TaggedTemplateExpression",e[e.TypeAssertionExpression=216]="TypeAssertionExpression",e[e.ParenthesizedExpression=217]="ParenthesizedExpression",e[e.FunctionExpression=218]="FunctionExpression",e[e.ArrowFunction=219]="ArrowFunction",e[e.DeleteExpression=220]="DeleteExpression",e[e.TypeOfExpression=221]="TypeOfExpression",e[e.VoidExpression=222]="VoidExpression",e[e.AwaitExpression=223]="AwaitExpression",e[e.PrefixUnaryExpression=224]="PrefixUnaryExpression",e[e.PostfixUnaryExpression=225]="PostfixUnaryExpression",e[e.BinaryExpression=226]="BinaryExpression",e[e.ConditionalExpression=227]="ConditionalExpression",e[e.TemplateExpression=228]="TemplateExpression",e[e.YieldExpression=229]="YieldExpression",e[e.SpreadElement=230]="SpreadElement",e[e.ClassExpression=231]="ClassExpression",e[e.OmittedExpression=232]="OmittedExpression",e[e.ExpressionWithTypeArguments=233]="ExpressionWithTypeArguments",e[e.AsExpression=234]="AsExpression",e[e.NonNullExpression=235]="NonNullExpression",e[e.MetaProperty=236]="MetaProperty",e[e.SyntheticExpression=237]="SyntheticExpression",e[e.SatisfiesExpression=238]="SatisfiesExpression",e[e.TemplateSpan=239]="TemplateSpan",e[e.SemicolonClassElement=240]="SemicolonClassElement",e[e.Block=241]="Block",e[e.EmptyStatement=242]="EmptyStatement",e[e.VariableStatement=243]="VariableStatement",e[e.ExpressionStatement=244]="ExpressionStatement",e[e.IfStatement=245]="IfStatement",e[e.DoStatement=246]="DoStatement",e[e.WhileStatement=247]="WhileStatement",e[e.ForStatement=248]="ForStatement",e[e.ForInStatement=249]="ForInStatement",e[e.ForOfStatement=250]="ForOfStatement",e[e.ContinueStatement=251]="ContinueStatement",e[e.BreakStatement=252]="BreakStatement",e[e.ReturnStatement=253]="ReturnStatement",e[e.WithStatement=254]="WithStatement",e[e.SwitchStatement=255]="SwitchStatement",e[e.LabeledStatement=256]="LabeledStatement",e[e.ThrowStatement=257]="ThrowStatement",e[e.TryStatement=258]="TryStatement",e[e.DebuggerStatement=259]="DebuggerStatement",e[e.VariableDeclaration=260]="VariableDeclaration",e[e.VariableDeclarationList=261]="VariableDeclarationList",e[e.FunctionDeclaration=262]="FunctionDeclaration",e[e.ClassDeclaration=263]="ClassDeclaration",e[e.InterfaceDeclaration=264]="InterfaceDeclaration",e[e.TypeAliasDeclaration=265]="TypeAliasDeclaration",e[e.EnumDeclaration=266]="EnumDeclaration",e[e.ModuleDeclaration=267]="ModuleDeclaration",e[e.ModuleBlock=268]="ModuleBlock",e[e.CaseBlock=269]="CaseBlock",e[e.NamespaceExportDeclaration=270]="NamespaceExportDeclaration",e[e.ImportEqualsDeclaration=271]="ImportEqualsDeclaration",e[e.ImportDeclaration=272]="ImportDeclaration",e[e.ImportClause=273]="ImportClause",e[e.NamespaceImport=274]="NamespaceImport",e[e.NamedImports=275]="NamedImports",e[e.ImportSpecifier=276]="ImportSpecifier",e[e.ExportAssignment=277]="ExportAssignment",e[e.ExportDeclaration=278]="ExportDeclaration",e[e.NamedExports=279]="NamedExports",e[e.NamespaceExport=280]="NamespaceExport",e[e.ExportSpecifier=281]="ExportSpecifier",e[e.MissingDeclaration=282]="MissingDeclaration",e[e.ExternalModuleReference=283]="ExternalModuleReference",e[e.JsxElement=284]="JsxElement",e[e.JsxSelfClosingElement=285]="JsxSelfClosingElement",e[e.JsxOpeningElement=286]="JsxOpeningElement",e[e.JsxClosingElement=287]="JsxClosingElement",e[e.JsxFragment=288]="JsxFragment",e[e.JsxOpeningFragment=289]="JsxOpeningFragment",e[e.JsxClosingFragment=290]="JsxClosingFragment",e[e.JsxAttribute=291]="JsxAttribute",e[e.JsxAttributes=292]="JsxAttributes",e[e.JsxSpreadAttribute=293]="JsxSpreadAttribute",e[e.JsxExpression=294]="JsxExpression",e[e.JsxNamespacedName=295]="JsxNamespacedName",e[e.CaseClause=296]="CaseClause",e[e.DefaultClause=297]="DefaultClause",e[e.HeritageClause=298]="HeritageClause",e[e.CatchClause=299]="CatchClause",e[e.ImportAttributes=300]="ImportAttributes",e[e.ImportAttribute=301]="ImportAttribute",e[e.AssertClause=300]="AssertClause",e[e.AssertEntry=301]="AssertEntry",e[e.ImportTypeAssertionContainer=302]="ImportTypeAssertionContainer",e[e.PropertyAssignment=303]="PropertyAssignment",e[e.ShorthandPropertyAssignment=304]="ShorthandPropertyAssignment",e[e.SpreadAssignment=305]="SpreadAssignment",e[e.EnumMember=306]="EnumMember",e[e.SourceFile=307]="SourceFile",e[e.Bundle=308]="Bundle",e[e.JSDocTypeExpression=309]="JSDocTypeExpression",e[e.JSDocNameReference=310]="JSDocNameReference",e[e.JSDocMemberName=311]="JSDocMemberName",e[e.JSDocAllType=312]="JSDocAllType",e[e.JSDocUnknownType=313]="JSDocUnknownType",e[e.JSDocNullableType=314]="JSDocNullableType",e[e.JSDocNonNullableType=315]="JSDocNonNullableType",e[e.JSDocOptionalType=316]="JSDocOptionalType",e[e.JSDocFunctionType=317]="JSDocFunctionType",e[e.JSDocVariadicType=318]="JSDocVariadicType",e[e.JSDocNamepathType=319]="JSDocNamepathType",e[e.JSDoc=320]="JSDoc",e[e.JSDocComment=320]="JSDocComment",e[e.JSDocText=321]="JSDocText",e[e.JSDocTypeLiteral=322]="JSDocTypeLiteral",e[e.JSDocSignature=323]="JSDocSignature",e[e.JSDocLink=324]="JSDocLink",e[e.JSDocLinkCode=325]="JSDocLinkCode",e[e.JSDocLinkPlain=326]="JSDocLinkPlain",e[e.JSDocTag=327]="JSDocTag",e[e.JSDocAugmentsTag=328]="JSDocAugmentsTag",e[e.JSDocImplementsTag=329]="JSDocImplementsTag",e[e.JSDocAuthorTag=330]="JSDocAuthorTag",e[e.JSDocDeprecatedTag=331]="JSDocDeprecatedTag",e[e.JSDocClassTag=332]="JSDocClassTag",e[e.JSDocPublicTag=333]="JSDocPublicTag",e[e.JSDocPrivateTag=334]="JSDocPrivateTag",e[e.JSDocProtectedTag=335]="JSDocProtectedTag",e[e.JSDocReadonlyTag=336]="JSDocReadonlyTag",e[e.JSDocOverrideTag=337]="JSDocOverrideTag",e[e.JSDocCallbackTag=338]="JSDocCallbackTag",e[e.JSDocOverloadTag=339]="JSDocOverloadTag",e[e.JSDocEnumTag=340]="JSDocEnumTag",e[e.JSDocParameterTag=341]="JSDocParameterTag",e[e.JSDocReturnTag=342]="JSDocReturnTag",e[e.JSDocThisTag=343]="JSDocThisTag",e[e.JSDocTypeTag=344]="JSDocTypeTag",e[e.JSDocTemplateTag=345]="JSDocTemplateTag",e[e.JSDocTypedefTag=346]="JSDocTypedefTag",e[e.JSDocSeeTag=347]="JSDocSeeTag",e[e.JSDocPropertyTag=348]="JSDocPropertyTag",e[e.JSDocThrowsTag=349]="JSDocThrowsTag",e[e.JSDocSatisfiesTag=350]="JSDocSatisfiesTag",e[e.JSDocImportTag=351]="JSDocImportTag",e[e.SyntaxList=352]="SyntaxList",e[e.NotEmittedStatement=353]="NotEmittedStatement",e[e.NotEmittedTypeElement=354]="NotEmittedTypeElement",e[e.PartiallyEmittedExpression=355]="PartiallyEmittedExpression",e[e.CommaListExpression=356]="CommaListExpression",e[e.SyntheticReferenceExpression=357]="SyntheticReferenceExpression",e[e.Count=358]="Count",e[e.FirstAssignment=64]="FirstAssignment",e[e.LastAssignment=79]="LastAssignment",e[e.FirstCompoundAssignment=65]="FirstCompoundAssignment",e[e.LastCompoundAssignment=79]="LastCompoundAssignment",e[e.FirstReservedWord=83]="FirstReservedWord",e[e.LastReservedWord=118]="LastReservedWord",e[e.FirstKeyword=83]="FirstKeyword",e[e.LastKeyword=165]="LastKeyword",e[e.FirstFutureReservedWord=119]="FirstFutureReservedWord",e[e.LastFutureReservedWord=127]="LastFutureReservedWord",e[e.FirstTypeNode=182]="FirstTypeNode",e[e.LastTypeNode=205]="LastTypeNode",e[e.FirstPunctuation=19]="FirstPunctuation",e[e.LastPunctuation=79]="LastPunctuation",e[e.FirstToken=0]="FirstToken",e[e.LastToken=165]="LastToken",e[e.FirstTriviaToken=2]="FirstTriviaToken",e[e.LastTriviaToken=7]="LastTriviaToken",e[e.FirstLiteralToken=9]="FirstLiteralToken",e[e.LastLiteralToken=15]="LastLiteralToken",e[e.FirstTemplateToken=15]="FirstTemplateToken",e[e.LastTemplateToken=18]="LastTemplateToken",e[e.FirstBinaryOperator=30]="FirstBinaryOperator",e[e.LastBinaryOperator=79]="LastBinaryOperator",e[e.FirstStatement=243]="FirstStatement",e[e.LastStatement=259]="LastStatement",e[e.FirstNode=166]="FirstNode",e[e.FirstJSDocNode=309]="FirstJSDocNode",e[e.LastJSDocNode=351]="LastJSDocNode",e[e.FirstJSDocTagNode=327]="FirstJSDocTagNode",e[e.LastJSDocTagNode=351]="LastJSDocTagNode",e[e.FirstContextualKeyword=128]="FirstContextualKeyword",e[e.LastContextualKeyword=165]="LastContextualKeyword",e))(fr||{}),mr=(e=>(e[e.None=0]="None",e[e.Let=1]="Let",e[e.Const=2]="Const",e[e.Using=4]="Using",e[e.AwaitUsing=6]="AwaitUsing",e[e.NestedNamespace=8]="NestedNamespace",e[e.Synthesized=16]="Synthesized",e[e.Namespace=32]="Namespace",e[e.OptionalChain=64]="OptionalChain",e[e.ExportContext=128]="ExportContext",e[e.ContainsThis=256]="ContainsThis",e[e.HasImplicitReturn=512]="HasImplicitReturn",e[e.HasExplicitReturn=1024]="HasExplicitReturn",e[e.GlobalAugmentation=2048]="GlobalAugmentation",e[e.HasAsyncFunctions=4096]="HasAsyncFunctions",e[e.DisallowInContext=8192]="DisallowInContext",e[e.YieldContext=16384]="YieldContext",e[e.DecoratorContext=32768]="DecoratorContext",e[e.AwaitContext=65536]="AwaitContext",e[e.DisallowConditionalTypesContext=131072]="DisallowConditionalTypesContext",e[e.ThisNodeHasError=262144]="ThisNodeHasError",e[e.JavaScriptFile=524288]="JavaScriptFile",e[e.ThisNodeOrAnySubNodesHasError=1048576]="ThisNodeOrAnySubNodesHasError",e[e.HasAggregatedChildData=2097152]="HasAggregatedChildData",e[e.PossiblyContainsDynamicImport=4194304]="PossiblyContainsDynamicImport",e[e.PossiblyContainsImportMeta=8388608]="PossiblyContainsImportMeta",e[e.JSDoc=16777216]="JSDoc",e[e.Ambient=33554432]="Ambient",e[e.InWithStatement=67108864]="InWithStatement",e[e.JsonFile=134217728]="JsonFile",e[e.TypeCached=268435456]="TypeCached",e[e.Deprecated=536870912]="Deprecated",e[e.BlockScoped=7]="BlockScoped",e[e.Constant=6]="Constant",e[e.ReachabilityCheckFlags=1536]="ReachabilityCheckFlags",e[e.ReachabilityAndEmitFlags=5632]="ReachabilityAndEmitFlags",e[e.ContextFlags=101441536]="ContextFlags",e[e.TypeExcludesFlags=81920]="TypeExcludesFlags",e[e.PermanentlySetIncrementalFlags=12582912]="PermanentlySetIncrementalFlags",e[e.IdentifierHasExtendedUnicodeEscape=256]="IdentifierHasExtendedUnicodeEscape",e[e.IdentifierIsInJSDocNamespace=4096]="IdentifierIsInJSDocNamespace",e))(mr||{}),gr=(e=>(e[e.None=0]="None",e[e.Public=1]="Public",e[e.Private=2]="Private",e[e.Protected=4]="Protected",e[e.Readonly=8]="Readonly",e[e.Override=16]="Override",e[e.Export=32]="Export",e[e.Abstract=64]="Abstract",e[e.Ambient=128]="Ambient",e[e.Static=256]="Static",e[e.Accessor=512]="Accessor",e[e.Async=1024]="Async",e[e.Default=2048]="Default",e[e.Const=4096]="Const",e[e.In=8192]="In",e[e.Out=16384]="Out",e[e.Decorator=32768]="Decorator",e[e.Deprecated=65536]="Deprecated",e[e.JSDocPublic=8388608]="JSDocPublic",e[e.JSDocPrivate=16777216]="JSDocPrivate",e[e.JSDocProtected=33554432]="JSDocProtected",e[e.JSDocReadonly=67108864]="JSDocReadonly",e[e.JSDocOverride=134217728]="JSDocOverride",e[e.SyntacticOrJSDocModifiers=31]="SyntacticOrJSDocModifiers",e[e.SyntacticOnlyModifiers=65504]="SyntacticOnlyModifiers",e[e.SyntacticModifiers=65535]="SyntacticModifiers",e[e.JSDocCacheOnlyModifiers=260046848]="JSDocCacheOnlyModifiers",e[e.JSDocOnlyModifiers=65536]="JSDocOnlyModifiers",e[e.NonCacheOnlyModifiers=131071]="NonCacheOnlyModifiers",e[e.HasComputedJSDocModifiers=268435456]="HasComputedJSDocModifiers",e[e.HasComputedFlags=536870912]="HasComputedFlags",e[e.AccessibilityModifier=7]="AccessibilityModifier",e[e.ParameterPropertyModifier=31]="ParameterPropertyModifier",e[e.NonPublicAccessibilityModifier=6]="NonPublicAccessibilityModifier",e[e.TypeScriptModifier=28895]="TypeScriptModifier",e[e.ExportDefault=2080]="ExportDefault",e[e.All=131071]="All",e[e.Modifier=98303]="Modifier",e))(gr||{}),hr=(e=>(e[e.None=0]="None",e[e.IntrinsicNamedElement=1]="IntrinsicNamedElement",e[e.IntrinsicIndexedElement=2]="IntrinsicIndexedElement",e[e.IntrinsicElement=3]="IntrinsicElement",e))(hr||{}),yr=(e=>(e[e.None=0]="None",e[e.Succeeded=1]="Succeeded",e[e.Failed=2]="Failed",e[e.ReportsUnmeasurable=8]="ReportsUnmeasurable",e[e.ReportsUnreliable=16]="ReportsUnreliable",e[e.ReportsMask=24]="ReportsMask",e[e.ComplexityOverflow=32]="ComplexityOverflow",e[e.StackDepthOverflow=64]="StackDepthOverflow",e[e.Overflow=96]="Overflow",e))(yr||{}),vr=(e=>(e[e.None=0]="None",e[e.Always=1]="Always",e[e.Never=2]="Never",e[e.Sometimes=3]="Sometimes",e))(vr||{}),br=(e=>(e[e.None=0]="None",e[e.Auto=1]="Auto",e[e.Loop=2]="Loop",e[e.Unique=3]="Unique",e[e.Node=4]="Node",e[e.KindMask=7]="KindMask",e[e.ReservedInNestedScopes=8]="ReservedInNestedScopes",e[e.Optimistic=16]="Optimistic",e[e.FileLevel=32]="FileLevel",e[e.AllowNameSubstitution=64]="AllowNameSubstitution",e))(br||{}),xr=(e=>(e[e.None=0]="None",e[e.HasIndices=1]="HasIndices",e[e.Global=2]="Global",e[e.IgnoreCase=4]="IgnoreCase",e[e.Multiline=8]="Multiline",e[e.DotAll=16]="DotAll",e[e.Unicode=32]="Unicode",e[e.UnicodeSets=64]="UnicodeSets",e[e.Sticky=128]="Sticky",e[e.AnyUnicodeMode=96]="AnyUnicodeMode",e[e.Modifiers=28]="Modifiers",e))(xr||{}),kr=(e=>(e[e.None=0]="None",e[e.PrecedingLineBreak=1]="PrecedingLineBreak",e[e.PrecedingJSDocComment=2]="PrecedingJSDocComment",e[e.Unterminated=4]="Unterminated",e[e.ExtendedUnicodeEscape=8]="ExtendedUnicodeEscape",e[e.Scientific=16]="Scientific",e[e.Octal=32]="Octal",e[e.HexSpecifier=64]="HexSpecifier",e[e.BinarySpecifier=128]="BinarySpecifier",e[e.OctalSpecifier=256]="OctalSpecifier",e[e.ContainsSeparator=512]="ContainsSeparator",e[e.UnicodeEscape=1024]="UnicodeEscape",e[e.ContainsInvalidEscape=2048]="ContainsInvalidEscape",e[e.HexEscape=4096]="HexEscape",e[e.ContainsLeadingZero=8192]="ContainsLeadingZero",e[e.ContainsInvalidSeparator=16384]="ContainsInvalidSeparator",e[e.PrecedingJSDocLeadingAsterisks=32768]="PrecedingJSDocLeadingAsterisks",e[e.BinaryOrOctalSpecifier=384]="BinaryOrOctalSpecifier",e[e.WithSpecifier=448]="WithSpecifier",e[e.StringLiteralFlags=7176]="StringLiteralFlags",e[e.NumericLiteralFlags=25584]="NumericLiteralFlags",e[e.TemplateLiteralLikeFlags=7176]="TemplateLiteralLikeFlags",e[e.IsInvalid=26656]="IsInvalid",e))(kr||{}),Sr=(e=>(e[e.Unreachable=1]="Unreachable",e[e.Start=2]="Start",e[e.BranchLabel=4]="BranchLabel",e[e.LoopLabel=8]="LoopLabel",e[e.Assignment=16]="Assignment",e[e.TrueCondition=32]="TrueCondition",e[e.FalseCondition=64]="FalseCondition",e[e.SwitchClause=128]="SwitchClause",e[e.ArrayMutation=256]="ArrayMutation",e[e.Call=512]="Call",e[e.ReduceLabel=1024]="ReduceLabel",e[e.Referenced=2048]="Referenced",e[e.Shared=4096]="Shared",e[e.Label=12]="Label",e[e.Condition=96]="Condition",e))(Sr||{}),Tr=(e=>(e[e.ExpectError=0]="ExpectError",e[e.Ignore=1]="Ignore",e))(Tr||{}),Cr=class{},wr=(e=>(e[e.RootFile=0]="RootFile",e[e.SourceFromProjectReference=1]="SourceFromProjectReference",e[e.OutputFromProjectReference=2]="OutputFromProjectReference",e[e.Import=3]="Import",e[e.ReferenceFile=4]="ReferenceFile",e[e.TypeReferenceDirective=5]="TypeReferenceDirective",e[e.LibFile=6]="LibFile",e[e.LibReferenceDirective=7]="LibReferenceDirective",e[e.AutomaticTypeDirectiveFile=8]="AutomaticTypeDirectiveFile",e))(wr||{}),Nr=(e=>(e[e.FilePreprocessingLibReferenceDiagnostic=0]="FilePreprocessingLibReferenceDiagnostic",e[e.FilePreprocessingFileExplainingDiagnostic=1]="FilePreprocessingFileExplainingDiagnostic",e[e.ResolutionDiagnostics=2]="ResolutionDiagnostics",e))(Nr||{}),Dr=(e=>(e[e.Js=0]="Js",e[e.Dts=1]="Dts",e[e.BuilderSignature=2]="BuilderSignature",e))(Dr||{}),Fr=(e=>(e[e.Not=0]="Not",e[e.SafeModules=1]="SafeModules",e[e.Completely=2]="Completely",e))(Fr||{}),Er=(e=>(e[e.Success=0]="Success",e[e.DiagnosticsPresent_OutputsSkipped=1]="DiagnosticsPresent_OutputsSkipped",e[e.DiagnosticsPresent_OutputsGenerated=2]="DiagnosticsPresent_OutputsGenerated",e[e.InvalidProject_OutputsSkipped=3]="InvalidProject_OutputsSkipped",e[e.ProjectReferenceCycle_OutputsSkipped=4]="ProjectReferenceCycle_OutputsSkipped",e))(Er||{}),Pr=(e=>(e[e.Ok=0]="Ok",e[e.NeedsOverride=1]="NeedsOverride",e[e.HasInvalidOverride=2]="HasInvalidOverride",e))(Pr||{}),Ar=(e=>(e[e.None=0]="None",e[e.Literal=1]="Literal",e[e.Subtype=2]="Subtype",e))(Ar||{}),Ir=(e=>(e[e.None=0]="None",e[e.NoSupertypeReduction=1]="NoSupertypeReduction",e[e.NoConstraintReduction=2]="NoConstraintReduction",e))(Ir||{}),Or=(e=>(e[e.None=0]="None",e[e.Signature=1]="Signature",e[e.NoConstraints=2]="NoConstraints",e[e.Completions=4]="Completions",e[e.SkipBindingPatterns=8]="SkipBindingPatterns",e))(Or||{}),Lr=(e=>(e[e.None=0]="None",e[e.NoTruncation=1]="NoTruncation",e[e.WriteArrayAsGenericType=2]="WriteArrayAsGenericType",e[e.GenerateNamesForShadowedTypeParams=4]="GenerateNamesForShadowedTypeParams",e[e.UseStructuralFallback=8]="UseStructuralFallback",e[e.ForbidIndexedAccessSymbolReferences=16]="ForbidIndexedAccessSymbolReferences",e[e.WriteTypeArgumentsOfSignature=32]="WriteTypeArgumentsOfSignature",e[e.UseFullyQualifiedType=64]="UseFullyQualifiedType",e[e.UseOnlyExternalAliasing=128]="UseOnlyExternalAliasing",e[e.SuppressAnyReturnType=256]="SuppressAnyReturnType",e[e.WriteTypeParametersInQualifiedName=512]="WriteTypeParametersInQualifiedName",e[e.MultilineObjectLiterals=1024]="MultilineObjectLiterals",e[e.WriteClassExpressionAsTypeLiteral=2048]="WriteClassExpressionAsTypeLiteral",e[e.UseTypeOfFunction=4096]="UseTypeOfFunction",e[e.OmitParameterModifiers=8192]="OmitParameterModifiers",e[e.UseAliasDefinedOutsideCurrentScope=16384]="UseAliasDefinedOutsideCurrentScope",e[e.UseSingleQuotesForStringLiteralType=268435456]="UseSingleQuotesForStringLiteralType",e[e.NoTypeReduction=536870912]="NoTypeReduction",e[e.OmitThisParameter=33554432]="OmitThisParameter",e[e.AllowThisInObjectLiteral=32768]="AllowThisInObjectLiteral",e[e.AllowQualifiedNameInPlaceOfIdentifier=65536]="AllowQualifiedNameInPlaceOfIdentifier",e[e.AllowAnonymousIdentifier=131072]="AllowAnonymousIdentifier",e[e.AllowEmptyUnionOrIntersection=262144]="AllowEmptyUnionOrIntersection",e[e.AllowEmptyTuple=524288]="AllowEmptyTuple",e[e.AllowUniqueESSymbolType=1048576]="AllowUniqueESSymbolType",e[e.AllowEmptyIndexInfoType=2097152]="AllowEmptyIndexInfoType",e[e.AllowNodeModulesRelativePaths=67108864]="AllowNodeModulesRelativePaths",e[e.IgnoreErrors=70221824]="IgnoreErrors",e[e.InObjectTypeLiteral=4194304]="InObjectTypeLiteral",e[e.InTypeAlias=8388608]="InTypeAlias",e[e.InInitialEntityName=16777216]="InInitialEntityName",e))(Lr||{}),jr=(e=>(e[e.None=0]="None",e[e.WriteComputedProps=1]="WriteComputedProps",e[e.NoSyntacticPrinter=2]="NoSyntacticPrinter",e[e.DoNotIncludeSymbolChain=4]="DoNotIncludeSymbolChain",e[e.AllowUnresolvedNames=8]="AllowUnresolvedNames",e))(jr||{}),Rr=(e=>(e[e.None=0]="None",e[e.NoTruncation=1]="NoTruncation",e[e.WriteArrayAsGenericType=2]="WriteArrayAsGenericType",e[e.GenerateNamesForShadowedTypeParams=4]="GenerateNamesForShadowedTypeParams",e[e.UseStructuralFallback=8]="UseStructuralFallback",e[e.WriteTypeArgumentsOfSignature=32]="WriteTypeArgumentsOfSignature",e[e.UseFullyQualifiedType=64]="UseFullyQualifiedType",e[e.SuppressAnyReturnType=256]="SuppressAnyReturnType",e[e.MultilineObjectLiterals=1024]="MultilineObjectLiterals",e[e.WriteClassExpressionAsTypeLiteral=2048]="WriteClassExpressionAsTypeLiteral",e[e.UseTypeOfFunction=4096]="UseTypeOfFunction",e[e.OmitParameterModifiers=8192]="OmitParameterModifiers",e[e.UseAliasDefinedOutsideCurrentScope=16384]="UseAliasDefinedOutsideCurrentScope",e[e.UseSingleQuotesForStringLiteralType=268435456]="UseSingleQuotesForStringLiteralType",e[e.NoTypeReduction=536870912]="NoTypeReduction",e[e.OmitThisParameter=33554432]="OmitThisParameter",e[e.AllowUniqueESSymbolType=1048576]="AllowUniqueESSymbolType",e[e.AddUndefined=131072]="AddUndefined",e[e.WriteArrowStyleSignature=262144]="WriteArrowStyleSignature",e[e.InArrayType=524288]="InArrayType",e[e.InElementType=2097152]="InElementType",e[e.InFirstTypeArgument=4194304]="InFirstTypeArgument",e[e.InTypeAlias=8388608]="InTypeAlias",e[e.NodeBuilderFlagsMask=848330095]="NodeBuilderFlagsMask",e))(Rr||{}),Mr=(e=>(e[e.None=0]="None",e[e.WriteTypeParametersOrArguments=1]="WriteTypeParametersOrArguments",e[e.UseOnlyExternalAliasing=2]="UseOnlyExternalAliasing",e[e.AllowAnyNodeKind=4]="AllowAnyNodeKind",e[e.UseAliasDefinedOutsideCurrentScope=8]="UseAliasDefinedOutsideCurrentScope",e[e.WriteComputedProps=16]="WriteComputedProps",e[e.DoNotIncludeSymbolChain=32]="DoNotIncludeSymbolChain",e))(Mr||{}),Br=(e=>(e[e.Accessible=0]="Accessible",e[e.NotAccessible=1]="NotAccessible",e[e.CannotBeNamed=2]="CannotBeNamed",e[e.NotResolved=3]="NotResolved",e))(Br||{}),Jr=(e=>(e[e.This=0]="This",e[e.Identifier=1]="Identifier",e[e.AssertsThis=2]="AssertsThis",e[e.AssertsIdentifier=3]="AssertsIdentifier",e))(Jr||{}),zr=(e=>(e[e.Unknown=0]="Unknown",e[e.TypeWithConstructSignatureAndValue=1]="TypeWithConstructSignatureAndValue",e[e.VoidNullableOrNeverType=2]="VoidNullableOrNeverType",e[e.NumberLikeType=3]="NumberLikeType",e[e.BigIntLikeType=4]="BigIntLikeType",e[e.StringLikeType=5]="StringLikeType",e[e.BooleanType=6]="BooleanType",e[e.ArrayLikeType=7]="ArrayLikeType",e[e.ESSymbolType=8]="ESSymbolType",e[e.Promise=9]="Promise",e[e.TypeWithCallSignature=10]="TypeWithCallSignature",e[e.ObjectType=11]="ObjectType",e))(zr||{}),qr=(e=>(e[e.None=0]="None",e[e.FunctionScopedVariable=1]="FunctionScopedVariable",e[e.BlockScopedVariable=2]="BlockScopedVariable",e[e.Property=4]="Property",e[e.EnumMember=8]="EnumMember",e[e.Function=16]="Function",e[e.Class=32]="Class",e[e.Interface=64]="Interface",e[e.ConstEnum=128]="ConstEnum",e[e.RegularEnum=256]="RegularEnum",e[e.ValueModule=512]="ValueModule",e[e.NamespaceModule=1024]="NamespaceModule",e[e.TypeLiteral=2048]="TypeLiteral",e[e.ObjectLiteral=4096]="ObjectLiteral",e[e.Method=8192]="Method",e[e.Constructor=16384]="Constructor",e[e.GetAccessor=32768]="GetAccessor",e[e.SetAccessor=65536]="SetAccessor",e[e.Signature=131072]="Signature",e[e.TypeParameter=262144]="TypeParameter",e[e.TypeAlias=524288]="TypeAlias",e[e.ExportValue=1048576]="ExportValue",e[e.Alias=2097152]="Alias",e[e.Prototype=4194304]="Prototype",e[e.ExportStar=8388608]="ExportStar",e[e.Optional=16777216]="Optional",e[e.Transient=33554432]="Transient",e[e.Assignment=67108864]="Assignment",e[e.ModuleExports=134217728]="ModuleExports",e[e.All=-1]="All",e[e.Enum=384]="Enum",e[e.Variable=3]="Variable",e[e.Value=111551]="Value",e[e.Type=788968]="Type",e[e.Namespace=1920]="Namespace",e[e.Module=1536]="Module",e[e.Accessor=98304]="Accessor",e[e.FunctionScopedVariableExcludes=111550]="FunctionScopedVariableExcludes",e[e.BlockScopedVariableExcludes=111551]="BlockScopedVariableExcludes",e[e.ParameterExcludes=111551]="ParameterExcludes",e[e.PropertyExcludes=0]="PropertyExcludes",e[e.EnumMemberExcludes=900095]="EnumMemberExcludes",e[e.FunctionExcludes=110991]="FunctionExcludes",e[e.ClassExcludes=899503]="ClassExcludes",e[e.InterfaceExcludes=788872]="InterfaceExcludes",e[e.RegularEnumExcludes=899327]="RegularEnumExcludes",e[e.ConstEnumExcludes=899967]="ConstEnumExcludes",e[e.ValueModuleExcludes=110735]="ValueModuleExcludes",e[e.NamespaceModuleExcludes=0]="NamespaceModuleExcludes",e[e.MethodExcludes=103359]="MethodExcludes",e[e.GetAccessorExcludes=46015]="GetAccessorExcludes",e[e.SetAccessorExcludes=78783]="SetAccessorExcludes",e[e.AccessorExcludes=13247]="AccessorExcludes",e[e.TypeParameterExcludes=526824]="TypeParameterExcludes",e[e.TypeAliasExcludes=788968]="TypeAliasExcludes",e[e.AliasExcludes=2097152]="AliasExcludes",e[e.ModuleMember=2623475]="ModuleMember",e[e.ExportHasLocal=944]="ExportHasLocal",e[e.BlockScoped=418]="BlockScoped",e[e.PropertyOrAccessor=98308]="PropertyOrAccessor",e[e.ClassMember=106500]="ClassMember",e[e.ExportSupportsDefaultModifier=112]="ExportSupportsDefaultModifier",e[e.ExportDoesNotSupportDefaultModifier=-113]="ExportDoesNotSupportDefaultModifier",e[e.Classifiable=2885600]="Classifiable",e[e.LateBindingContainer=6256]="LateBindingContainer",e))(qr||{}),Ur=(e=>(e[e.None=0]="None",e[e.Instantiated=1]="Instantiated",e[e.SyntheticProperty=2]="SyntheticProperty",e[e.SyntheticMethod=4]="SyntheticMethod",e[e.Readonly=8]="Readonly",e[e.ReadPartial=16]="ReadPartial",e[e.WritePartial=32]="WritePartial",e[e.HasNonUniformType=64]="HasNonUniformType",e[e.HasLiteralType=128]="HasLiteralType",e[e.ContainsPublic=256]="ContainsPublic",e[e.ContainsProtected=512]="ContainsProtected",e[e.ContainsPrivate=1024]="ContainsPrivate",e[e.ContainsStatic=2048]="ContainsStatic",e[e.Late=4096]="Late",e[e.ReverseMapped=8192]="ReverseMapped",e[e.OptionalParameter=16384]="OptionalParameter",e[e.RestParameter=32768]="RestParameter",e[e.DeferredType=65536]="DeferredType",e[e.HasNeverType=131072]="HasNeverType",e[e.Mapped=262144]="Mapped",e[e.StripOptional=524288]="StripOptional",e[e.Unresolved=1048576]="Unresolved",e[e.Synthetic=6]="Synthetic",e[e.Discriminant=192]="Discriminant",e[e.Partial=48]="Partial",e))(Ur||{}),Vr=(e=>(e.Call="__call",e.Constructor="__constructor",e.New="__new",e.Index="__index",e.ExportStar="__export",e.Global="__global",e.Missing="__missing",e.Type="__type",e.Object="__object",e.JSXAttributes="__jsxAttributes",e.Class="__class",e.Function="__function",e.Computed="__computed",e.Resolving="__resolving__",e.ExportEquals="export=",e.Default="default",e.This="this",e.InstantiationExpression="__instantiationExpression",e.ImportAttributes="__importAttributes",e))(Vr||{}),Wr=(e=>(e[e.None=0]="None",e[e.TypeChecked=1]="TypeChecked",e[e.LexicalThis=2]="LexicalThis",e[e.CaptureThis=4]="CaptureThis",e[e.CaptureNewTarget=8]="CaptureNewTarget",e[e.SuperInstance=16]="SuperInstance",e[e.SuperStatic=32]="SuperStatic",e[e.ContextChecked=64]="ContextChecked",e[e.MethodWithSuperPropertyAccessInAsync=128]="MethodWithSuperPropertyAccessInAsync",e[e.MethodWithSuperPropertyAssignmentInAsync=256]="MethodWithSuperPropertyAssignmentInAsync",e[e.CaptureArguments=512]="CaptureArguments",e[e.EnumValuesComputed=1024]="EnumValuesComputed",e[e.LexicalModuleMergesWithClass=2048]="LexicalModuleMergesWithClass",e[e.LoopWithCapturedBlockScopedBinding=4096]="LoopWithCapturedBlockScopedBinding",e[e.ContainsCapturedBlockScopeBinding=8192]="ContainsCapturedBlockScopeBinding",e[e.CapturedBlockScopedBinding=16384]="CapturedBlockScopedBinding",e[e.BlockScopedBindingInLoop=32768]="BlockScopedBindingInLoop",e[e.NeedsLoopOutParameter=65536]="NeedsLoopOutParameter",e[e.AssignmentsMarked=131072]="AssignmentsMarked",e[e.ContainsConstructorReference=262144]="ContainsConstructorReference",e[e.ConstructorReference=536870912]="ConstructorReference",e[e.ContainsClassWithPrivateIdentifiers=1048576]="ContainsClassWithPrivateIdentifiers",e[e.ContainsSuperPropertyInStaticInitializer=2097152]="ContainsSuperPropertyInStaticInitializer",e[e.InCheckIdentifier=4194304]="InCheckIdentifier",e[e.PartiallyTypeChecked=8388608]="PartiallyTypeChecked",e[e.LazyFlags=539358128]="LazyFlags",e))(Wr||{}),$r=(e=>(e[e.Any=1]="Any",e[e.Unknown=2]="Unknown",e[e.String=4]="String",e[e.Number=8]="Number",e[e.Boolean=16]="Boolean",e[e.Enum=32]="Enum",e[e.BigInt=64]="BigInt",e[e.StringLiteral=128]="StringLiteral",e[e.NumberLiteral=256]="NumberLiteral",e[e.BooleanLiteral=512]="BooleanLiteral",e[e.EnumLiteral=1024]="EnumLiteral",e[e.BigIntLiteral=2048]="BigIntLiteral",e[e.ESSymbol=4096]="ESSymbol",e[e.UniqueESSymbol=8192]="UniqueESSymbol",e[e.Void=16384]="Void",e[e.Undefined=32768]="Undefined",e[e.Null=65536]="Null",e[e.Never=131072]="Never",e[e.TypeParameter=262144]="TypeParameter",e[e.Object=524288]="Object",e[e.Union=1048576]="Union",e[e.Intersection=2097152]="Intersection",e[e.Index=4194304]="Index",e[e.IndexedAccess=8388608]="IndexedAccess",e[e.Conditional=16777216]="Conditional",e[e.Substitution=33554432]="Substitution",e[e.NonPrimitive=67108864]="NonPrimitive",e[e.TemplateLiteral=134217728]="TemplateLiteral",e[e.StringMapping=268435456]="StringMapping",e[e.Reserved1=536870912]="Reserved1",e[e.Reserved2=1073741824]="Reserved2",e[e.AnyOrUnknown=3]="AnyOrUnknown",e[e.Nullable=98304]="Nullable",e[e.Literal=2944]="Literal",e[e.Unit=109472]="Unit",e[e.Freshable=2976]="Freshable",e[e.StringOrNumberLiteral=384]="StringOrNumberLiteral",e[e.StringOrNumberLiteralOrUnique=8576]="StringOrNumberLiteralOrUnique",e[e.DefinitelyFalsy=117632]="DefinitelyFalsy",e[e.PossiblyFalsy=117724]="PossiblyFalsy",e[e.Intrinsic=67359327]="Intrinsic",e[e.StringLike=402653316]="StringLike",e[e.NumberLike=296]="NumberLike",e[e.BigIntLike=2112]="BigIntLike",e[e.BooleanLike=528]="BooleanLike",e[e.EnumLike=1056]="EnumLike",e[e.ESSymbolLike=12288]="ESSymbolLike",e[e.VoidLike=49152]="VoidLike",e[e.Primitive=402784252]="Primitive",e[e.DefinitelyNonNullable=470302716]="DefinitelyNonNullable",e[e.DisjointDomains=469892092]="DisjointDomains",e[e.UnionOrIntersection=3145728]="UnionOrIntersection",e[e.StructuredType=3670016]="StructuredType",e[e.TypeVariable=8650752]="TypeVariable",e[e.InstantiableNonPrimitive=58982400]="InstantiableNonPrimitive",e[e.InstantiablePrimitive=406847488]="InstantiablePrimitive",e[e.Instantiable=465829888]="Instantiable",e[e.StructuredOrInstantiable=469499904]="StructuredOrInstantiable",e[e.ObjectFlagsType=3899393]="ObjectFlagsType",e[e.Simplifiable=25165824]="Simplifiable",e[e.Singleton=67358815]="Singleton",e[e.Narrowable=536624127]="Narrowable",e[e.IncludesMask=473694207]="IncludesMask",e[e.IncludesMissingType=262144]="IncludesMissingType",e[e.IncludesNonWideningType=4194304]="IncludesNonWideningType",e[e.IncludesWildcard=8388608]="IncludesWildcard",e[e.IncludesEmptyObject=16777216]="IncludesEmptyObject",e[e.IncludesInstantiable=33554432]="IncludesInstantiable",e[e.IncludesConstrainedTypeVariable=536870912]="IncludesConstrainedTypeVariable",e[e.IncludesError=1073741824]="IncludesError",e[e.NotPrimitiveUnion=36323331]="NotPrimitiveUnion",e))($r||{}),Hr=(e=>(e[e.None=0]="None",e[e.Class=1]="Class",e[e.Interface=2]="Interface",e[e.Reference=4]="Reference",e[e.Tuple=8]="Tuple",e[e.Anonymous=16]="Anonymous",e[e.Mapped=32]="Mapped",e[e.Instantiated=64]="Instantiated",e[e.ObjectLiteral=128]="ObjectLiteral",e[e.EvolvingArray=256]="EvolvingArray",e[e.ObjectLiteralPatternWithComputedProperties=512]="ObjectLiteralPatternWithComputedProperties",e[e.ReverseMapped=1024]="ReverseMapped",e[e.JsxAttributes=2048]="JsxAttributes",e[e.JSLiteral=4096]="JSLiteral",e[e.FreshLiteral=8192]="FreshLiteral",e[e.ArrayLiteral=16384]="ArrayLiteral",e[e.PrimitiveUnion=32768]="PrimitiveUnion",e[e.ContainsWideningType=65536]="ContainsWideningType",e[e.ContainsObjectOrArrayLiteral=131072]="ContainsObjectOrArrayLiteral",e[e.NonInferrableType=262144]="NonInferrableType",e[e.CouldContainTypeVariablesComputed=524288]="CouldContainTypeVariablesComputed",e[e.CouldContainTypeVariables=1048576]="CouldContainTypeVariables",e[e.ClassOrInterface=3]="ClassOrInterface",e[e.RequiresWidening=196608]="RequiresWidening",e[e.PropagatingFlags=458752]="PropagatingFlags",e[e.InstantiatedMapped=96]="InstantiatedMapped",e[e.ObjectTypeKindMask=1343]="ObjectTypeKindMask",e[e.ContainsSpread=2097152]="ContainsSpread",e[e.ObjectRestType=4194304]="ObjectRestType",e[e.InstantiationExpressionType=8388608]="InstantiationExpressionType",e[e.SingleSignatureType=134217728]="SingleSignatureType",e[e.IsClassInstanceClone=16777216]="IsClassInstanceClone",e[e.IdenticalBaseTypeCalculated=33554432]="IdenticalBaseTypeCalculated",e[e.IdenticalBaseTypeExists=67108864]="IdenticalBaseTypeExists",e[e.IsGenericTypeComputed=2097152]="IsGenericTypeComputed",e[e.IsGenericObjectType=4194304]="IsGenericObjectType",e[e.IsGenericIndexType=8388608]="IsGenericIndexType",e[e.IsGenericType=12582912]="IsGenericType",e[e.ContainsIntersections=16777216]="ContainsIntersections",e[e.IsUnknownLikeUnionComputed=33554432]="IsUnknownLikeUnionComputed",e[e.IsUnknownLikeUnion=67108864]="IsUnknownLikeUnion",e[e.IsNeverIntersectionComputed=16777216]="IsNeverIntersectionComputed",e[e.IsNeverIntersection=33554432]="IsNeverIntersection",e[e.IsConstrainedTypeVariable=67108864]="IsConstrainedTypeVariable",e))(Hr||{}),Kr=(e=>(e[e.Invariant=0]="Invariant",e[e.Covariant=1]="Covariant",e[e.Contravariant=2]="Contravariant",e[e.Bivariant=3]="Bivariant",e[e.Independent=4]="Independent",e[e.VarianceMask=7]="VarianceMask",e[e.Unmeasurable=8]="Unmeasurable",e[e.Unreliable=16]="Unreliable",e[e.AllowsStructuralFallback=24]="AllowsStructuralFallback",e))(Kr||{}),Gr=(e=>(e[e.Required=1]="Required",e[e.Optional=2]="Optional",e[e.Rest=4]="Rest",e[e.Variadic=8]="Variadic",e[e.Fixed=3]="Fixed",e[e.Variable=12]="Variable",e[e.NonRequired=14]="NonRequired",e[e.NonRest=11]="NonRest",e))(Gr||{}),Xr=(e=>(e[e.None=0]="None",e[e.IncludeUndefined=1]="IncludeUndefined",e[e.NoIndexSignatures=2]="NoIndexSignatures",e[e.Writing=4]="Writing",e[e.CacheSymbol=8]="CacheSymbol",e[e.AllowMissing=16]="AllowMissing",e[e.ExpressionPosition=32]="ExpressionPosition",e[e.ReportDeprecated=64]="ReportDeprecated",e[e.SuppressNoImplicitAnyError=128]="SuppressNoImplicitAnyError",e[e.Contextual=256]="Contextual",e[e.Persistent=1]="Persistent",e))(Xr||{}),Qr=(e=>(e[e.None=0]="None",e[e.StringsOnly=1]="StringsOnly",e[e.NoIndexSignatures=2]="NoIndexSignatures",e[e.NoReducibleCheck=4]="NoReducibleCheck",e))(Qr||{}),Yr=(e=>(e[e.Component=0]="Component",e[e.Function=1]="Function",e[e.Mixed=2]="Mixed",e))(Yr||{}),Zr=(e=>(e[e.Call=0]="Call",e[e.Construct=1]="Construct",e))(Zr||{}),ei=(e=>(e[e.None=0]="None",e[e.HasRestParameter=1]="HasRestParameter",e[e.HasLiteralTypes=2]="HasLiteralTypes",e[e.Abstract=4]="Abstract",e[e.IsInnerCallChain=8]="IsInnerCallChain",e[e.IsOuterCallChain=16]="IsOuterCallChain",e[e.IsUntypedSignatureInJSFile=32]="IsUntypedSignatureInJSFile",e[e.IsNonInferrable=64]="IsNonInferrable",e[e.IsSignatureCandidateForOverloadFailure=128]="IsSignatureCandidateForOverloadFailure",e[e.PropagatingFlags=167]="PropagatingFlags",e[e.CallChainFlags=24]="CallChainFlags",e))(ei||{}),ti=(e=>(e[e.String=0]="String",e[e.Number=1]="Number",e))(ti||{}),ni=(e=>(e[e.Simple=0]="Simple",e[e.Array=1]="Array",e[e.Deferred=2]="Deferred",e[e.Function=3]="Function",e[e.Composite=4]="Composite",e[e.Merged=5]="Merged",e))(ni||{}),ri=(e=>(e[e.None=0]="None",e[e.NakedTypeVariable=1]="NakedTypeVariable",e[e.SpeculativeTuple=2]="SpeculativeTuple",e[e.SubstituteSource=4]="SubstituteSource",e[e.HomomorphicMappedType=8]="HomomorphicMappedType",e[e.PartialHomomorphicMappedType=16]="PartialHomomorphicMappedType",e[e.MappedTypeConstraint=32]="MappedTypeConstraint",e[e.ContravariantConditional=64]="ContravariantConditional",e[e.ReturnType=128]="ReturnType",e[e.LiteralKeyof=256]="LiteralKeyof",e[e.NoConstraints=512]="NoConstraints",e[e.AlwaysStrict=1024]="AlwaysStrict",e[e.MaxValue=2048]="MaxValue",e[e.PriorityImpliesCombination=416]="PriorityImpliesCombination",e[e.Circularity=-1]="Circularity",e))(ri||{}),ii=(e=>(e[e.None=0]="None",e[e.NoDefault=1]="NoDefault",e[e.AnyDefault=2]="AnyDefault",e[e.SkippedGenericFunction=4]="SkippedGenericFunction",e))(ii||{}),oi=(e=>(e[e.False=0]="False",e[e.Unknown=1]="Unknown",e[e.Maybe=3]="Maybe",e[e.True=-1]="True",e))(oi||{}),ai=(e=>(e[e.None=0]="None",e[e.ExportsProperty=1]="ExportsProperty",e[e.ModuleExports=2]="ModuleExports",e[e.PrototypeProperty=3]="PrototypeProperty",e[e.ThisProperty=4]="ThisProperty",e[e.Property=5]="Property",e[e.Prototype=6]="Prototype",e[e.ObjectDefinePropertyValue=7]="ObjectDefinePropertyValue",e[e.ObjectDefinePropertyExports=8]="ObjectDefinePropertyExports",e[e.ObjectDefinePrototypeProperty=9]="ObjectDefinePrototypeProperty",e))(ai||{}),si=(e=>(e[e.Warning=0]="Warning",e[e.Error=1]="Error",e[e.Suggestion=2]="Suggestion",e[e.Message=3]="Message",e))(si||{});function ci(e,t=!0){const n=si[e.category];return t?n.toLowerCase():n}var li=(e=>(e[e.Classic=1]="Classic",e[e.NodeJs=2]="NodeJs",e[e.Node10=2]="Node10",e[e.Node16=3]="Node16",e[e.NodeNext=99]="NodeNext",e[e.Bundler=100]="Bundler",e))(li||{}),_i=(e=>(e[e.Legacy=1]="Legacy",e[e.Auto=2]="Auto",e[e.Force=3]="Force",e))(_i||{}),ui=(e=>(e[e.FixedPollingInterval=0]="FixedPollingInterval",e[e.PriorityPollingInterval=1]="PriorityPollingInterval",e[e.DynamicPriorityPolling=2]="DynamicPriorityPolling",e[e.FixedChunkSizePolling=3]="FixedChunkSizePolling",e[e.UseFsEvents=4]="UseFsEvents",e[e.UseFsEventsOnParentDirectory=5]="UseFsEventsOnParentDirectory",e))(ui||{}),di=(e=>(e[e.UseFsEvents=0]="UseFsEvents",e[e.FixedPollingInterval=1]="FixedPollingInterval",e[e.DynamicPriorityPolling=2]="DynamicPriorityPolling",e[e.FixedChunkSizePolling=3]="FixedChunkSizePolling",e))(di||{}),pi=(e=>(e[e.FixedInterval=0]="FixedInterval",e[e.PriorityInterval=1]="PriorityInterval",e[e.DynamicPriority=2]="DynamicPriority",e[e.FixedChunkSize=3]="FixedChunkSize",e))(pi||{}),fi=(e=>(e[e.None=0]="None",e[e.CommonJS=1]="CommonJS",e[e.AMD=2]="AMD",e[e.UMD=3]="UMD",e[e.System=4]="System",e[e.ES2015=5]="ES2015",e[e.ES2020=6]="ES2020",e[e.ES2022=7]="ES2022",e[e.ESNext=99]="ESNext",e[e.Node16=100]="Node16",e[e.NodeNext=199]="NodeNext",e[e.Preserve=200]="Preserve",e))(fi||{}),mi=(e=>(e[e.None=0]="None",e[e.Preserve=1]="Preserve",e[e.React=2]="React",e[e.ReactNative=3]="ReactNative",e[e.ReactJSX=4]="ReactJSX",e[e.ReactJSXDev=5]="ReactJSXDev",e))(mi||{}),gi=(e=>(e[e.Remove=0]="Remove",e[e.Preserve=1]="Preserve",e[e.Error=2]="Error",e))(gi||{}),hi=(e=>(e[e.CarriageReturnLineFeed=0]="CarriageReturnLineFeed",e[e.LineFeed=1]="LineFeed",e))(hi||{}),yi=(e=>(e[e.Unknown=0]="Unknown",e[e.JS=1]="JS",e[e.JSX=2]="JSX",e[e.TS=3]="TS",e[e.TSX=4]="TSX",e[e.External=5]="External",e[e.JSON=6]="JSON",e[e.Deferred=7]="Deferred",e))(yi||{}),vi=(e=>(e[e.ES3=0]="ES3",e[e.ES5=1]="ES5",e[e.ES2015=2]="ES2015",e[e.ES2016=3]="ES2016",e[e.ES2017=4]="ES2017",e[e.ES2018=5]="ES2018",e[e.ES2019=6]="ES2019",e[e.ES2020=7]="ES2020",e[e.ES2021=8]="ES2021",e[e.ES2022=9]="ES2022",e[e.ES2023=10]="ES2023",e[e.ES2024=11]="ES2024",e[e.ESNext=99]="ESNext",e[e.JSON=100]="JSON",e[e.Latest=99]="Latest",e))(vi||{}),bi=(e=>(e[e.Standard=0]="Standard",e[e.JSX=1]="JSX",e))(bi||{}),xi=(e=>(e[e.None=0]="None",e[e.Recursive=1]="Recursive",e))(xi||{}),ki=(e=>(e[e.EOF=-1]="EOF",e[e.nullCharacter=0]="nullCharacter",e[e.maxAsciiCharacter=127]="maxAsciiCharacter",e[e.lineFeed=10]="lineFeed",e[e.carriageReturn=13]="carriageReturn",e[e.lineSeparator=8232]="lineSeparator",e[e.paragraphSeparator=8233]="paragraphSeparator",e[e.nextLine=133]="nextLine",e[e.space=32]="space",e[e.nonBreakingSpace=160]="nonBreakingSpace",e[e.enQuad=8192]="enQuad",e[e.emQuad=8193]="emQuad",e[e.enSpace=8194]="enSpace",e[e.emSpace=8195]="emSpace",e[e.threePerEmSpace=8196]="threePerEmSpace",e[e.fourPerEmSpace=8197]="fourPerEmSpace",e[e.sixPerEmSpace=8198]="sixPerEmSpace",e[e.figureSpace=8199]="figureSpace",e[e.punctuationSpace=8200]="punctuationSpace",e[e.thinSpace=8201]="thinSpace",e[e.hairSpace=8202]="hairSpace",e[e.zeroWidthSpace=8203]="zeroWidthSpace",e[e.narrowNoBreakSpace=8239]="narrowNoBreakSpace",e[e.ideographicSpace=12288]="ideographicSpace",e[e.mathematicalSpace=8287]="mathematicalSpace",e[e.ogham=5760]="ogham",e[e.replacementCharacter=65533]="replacementCharacter",e[e._=95]="_",e[e.$=36]="$",e[e._0=48]="_0",e[e._1=49]="_1",e[e._2=50]="_2",e[e._3=51]="_3",e[e._4=52]="_4",e[e._5=53]="_5",e[e._6=54]="_6",e[e._7=55]="_7",e[e._8=56]="_8",e[e._9=57]="_9",e[e.a=97]="a",e[e.b=98]="b",e[e.c=99]="c",e[e.d=100]="d",e[e.e=101]="e",e[e.f=102]="f",e[e.g=103]="g",e[e.h=104]="h",e[e.i=105]="i",e[e.j=106]="j",e[e.k=107]="k",e[e.l=108]="l",e[e.m=109]="m",e[e.n=110]="n",e[e.o=111]="o",e[e.p=112]="p",e[e.q=113]="q",e[e.r=114]="r",e[e.s=115]="s",e[e.t=116]="t",e[e.u=117]="u",e[e.v=118]="v",e[e.w=119]="w",e[e.x=120]="x",e[e.y=121]="y",e[e.z=122]="z",e[e.A=65]="A",e[e.B=66]="B",e[e.C=67]="C",e[e.D=68]="D",e[e.E=69]="E",e[e.F=70]="F",e[e.G=71]="G",e[e.H=72]="H",e[e.I=73]="I",e[e.J=74]="J",e[e.K=75]="K",e[e.L=76]="L",e[e.M=77]="M",e[e.N=78]="N",e[e.O=79]="O",e[e.P=80]="P",e[e.Q=81]="Q",e[e.R=82]="R",e[e.S=83]="S",e[e.T=84]="T",e[e.U=85]="U",e[e.V=86]="V",e[e.W=87]="W",e[e.X=88]="X",e[e.Y=89]="Y",e[e.Z=90]="Z",e[e.ampersand=38]="ampersand",e[e.asterisk=42]="asterisk",e[e.at=64]="at",e[e.backslash=92]="backslash",e[e.backtick=96]="backtick",e[e.bar=124]="bar",e[e.caret=94]="caret",e[e.closeBrace=125]="closeBrace",e[e.closeBracket=93]="closeBracket",e[e.closeParen=41]="closeParen",e[e.colon=58]="colon",e[e.comma=44]="comma",e[e.dot=46]="dot",e[e.doubleQuote=34]="doubleQuote",e[e.equals=61]="equals",e[e.exclamation=33]="exclamation",e[e.greaterThan=62]="greaterThan",e[e.hash=35]="hash",e[e.lessThan=60]="lessThan",e[e.minus=45]="minus",e[e.openBrace=123]="openBrace",e[e.openBracket=91]="openBracket",e[e.openParen=40]="openParen",e[e.percent=37]="percent",e[e.plus=43]="plus",e[e.question=63]="question",e[e.semicolon=59]="semicolon",e[e.singleQuote=39]="singleQuote",e[e.slash=47]="slash",e[e.tilde=126]="tilde",e[e.backspace=8]="backspace",e[e.formFeed=12]="formFeed",e[e.byteOrderMark=65279]="byteOrderMark",e[e.tab=9]="tab",e[e.verticalTab=11]="verticalTab",e))(ki||{}),Si=(e=>(e.Ts=".ts",e.Tsx=".tsx",e.Dts=".d.ts",e.Js=".js",e.Jsx=".jsx",e.Json=".json",e.TsBuildInfo=".tsbuildinfo",e.Mjs=".mjs",e.Mts=".mts",e.Dmts=".d.mts",e.Cjs=".cjs",e.Cts=".cts",e.Dcts=".d.cts",e))(Si||{}),Ti=(e=>(e[e.None=0]="None",e[e.ContainsTypeScript=1]="ContainsTypeScript",e[e.ContainsJsx=2]="ContainsJsx",e[e.ContainsESNext=4]="ContainsESNext",e[e.ContainsES2022=8]="ContainsES2022",e[e.ContainsES2021=16]="ContainsES2021",e[e.ContainsES2020=32]="ContainsES2020",e[e.ContainsES2019=64]="ContainsES2019",e[e.ContainsES2018=128]="ContainsES2018",e[e.ContainsES2017=256]="ContainsES2017",e[e.ContainsES2016=512]="ContainsES2016",e[e.ContainsES2015=1024]="ContainsES2015",e[e.ContainsGenerator=2048]="ContainsGenerator",e[e.ContainsDestructuringAssignment=4096]="ContainsDestructuringAssignment",e[e.ContainsTypeScriptClassSyntax=8192]="ContainsTypeScriptClassSyntax",e[e.ContainsLexicalThis=16384]="ContainsLexicalThis",e[e.ContainsRestOrSpread=32768]="ContainsRestOrSpread",e[e.ContainsObjectRestOrSpread=65536]="ContainsObjectRestOrSpread",e[e.ContainsComputedPropertyName=131072]="ContainsComputedPropertyName",e[e.ContainsBlockScopedBinding=262144]="ContainsBlockScopedBinding",e[e.ContainsBindingPattern=524288]="ContainsBindingPattern",e[e.ContainsYield=1048576]="ContainsYield",e[e.ContainsAwait=2097152]="ContainsAwait",e[e.ContainsHoistedDeclarationOrCompletion=4194304]="ContainsHoistedDeclarationOrCompletion",e[e.ContainsDynamicImport=8388608]="ContainsDynamicImport",e[e.ContainsClassFields=16777216]="ContainsClassFields",e[e.ContainsDecorators=33554432]="ContainsDecorators",e[e.ContainsPossibleTopLevelAwait=67108864]="ContainsPossibleTopLevelAwait",e[e.ContainsLexicalSuper=134217728]="ContainsLexicalSuper",e[e.ContainsUpdateExpressionForIdentifier=268435456]="ContainsUpdateExpressionForIdentifier",e[e.ContainsPrivateIdentifierInExpression=536870912]="ContainsPrivateIdentifierInExpression",e[e.HasComputedFlags=-2147483648]="HasComputedFlags",e[e.AssertTypeScript=1]="AssertTypeScript",e[e.AssertJsx=2]="AssertJsx",e[e.AssertESNext=4]="AssertESNext",e[e.AssertES2022=8]="AssertES2022",e[e.AssertES2021=16]="AssertES2021",e[e.AssertES2020=32]="AssertES2020",e[e.AssertES2019=64]="AssertES2019",e[e.AssertES2018=128]="AssertES2018",e[e.AssertES2017=256]="AssertES2017",e[e.AssertES2016=512]="AssertES2016",e[e.AssertES2015=1024]="AssertES2015",e[e.AssertGenerator=2048]="AssertGenerator",e[e.AssertDestructuringAssignment=4096]="AssertDestructuringAssignment",e[e.OuterExpressionExcludes=-2147483648]="OuterExpressionExcludes",e[e.PropertyAccessExcludes=-2147483648]="PropertyAccessExcludes",e[e.NodeExcludes=-2147483648]="NodeExcludes",e[e.ArrowFunctionExcludes=-2072174592]="ArrowFunctionExcludes",e[e.FunctionExcludes=-1937940480]="FunctionExcludes",e[e.ConstructorExcludes=-1937948672]="ConstructorExcludes",e[e.MethodOrAccessorExcludes=-2005057536]="MethodOrAccessorExcludes",e[e.PropertyExcludes=-2013249536]="PropertyExcludes",e[e.ClassExcludes=-2147344384]="ClassExcludes",e[e.ModuleExcludes=-1941676032]="ModuleExcludes",e[e.TypeExcludes=-2]="TypeExcludes",e[e.ObjectLiteralExcludes=-2147278848]="ObjectLiteralExcludes",e[e.ArrayLiteralOrCallOrNewExcludes=-2147450880]="ArrayLiteralOrCallOrNewExcludes",e[e.VariableDeclarationListExcludes=-2146893824]="VariableDeclarationListExcludes",e[e.ParameterExcludes=-2147483648]="ParameterExcludes",e[e.CatchClauseExcludes=-2147418112]="CatchClauseExcludes",e[e.BindingPatternExcludes=-2147450880]="BindingPatternExcludes",e[e.ContainsLexicalThisOrSuper=134234112]="ContainsLexicalThisOrSuper",e[e.PropertyNamePropagatingFlags=134234112]="PropertyNamePropagatingFlags",e))(Ti||{}),Ci=(e=>(e[e.TabStop=0]="TabStop",e[e.Placeholder=1]="Placeholder",e[e.Choice=2]="Choice",e[e.Variable=3]="Variable",e))(Ci||{}),wi=(e=>(e[e.None=0]="None",e[e.SingleLine=1]="SingleLine",e[e.MultiLine=2]="MultiLine",e[e.AdviseOnEmitNode=4]="AdviseOnEmitNode",e[e.NoSubstitution=8]="NoSubstitution",e[e.CapturesThis=16]="CapturesThis",e[e.NoLeadingSourceMap=32]="NoLeadingSourceMap",e[e.NoTrailingSourceMap=64]="NoTrailingSourceMap",e[e.NoSourceMap=96]="NoSourceMap",e[e.NoNestedSourceMaps=128]="NoNestedSourceMaps",e[e.NoTokenLeadingSourceMaps=256]="NoTokenLeadingSourceMaps",e[e.NoTokenTrailingSourceMaps=512]="NoTokenTrailingSourceMaps",e[e.NoTokenSourceMaps=768]="NoTokenSourceMaps",e[e.NoLeadingComments=1024]="NoLeadingComments",e[e.NoTrailingComments=2048]="NoTrailingComments",e[e.NoComments=3072]="NoComments",e[e.NoNestedComments=4096]="NoNestedComments",e[e.HelperName=8192]="HelperName",e[e.ExportName=16384]="ExportName",e[e.LocalName=32768]="LocalName",e[e.InternalName=65536]="InternalName",e[e.Indented=131072]="Indented",e[e.NoIndentation=262144]="NoIndentation",e[e.AsyncFunctionBody=524288]="AsyncFunctionBody",e[e.ReuseTempVariableScope=1048576]="ReuseTempVariableScope",e[e.CustomPrologue=2097152]="CustomPrologue",e[e.NoHoisting=4194304]="NoHoisting",e[e.Iterator=8388608]="Iterator",e[e.NoAsciiEscaping=16777216]="NoAsciiEscaping",e))(wi||{}),Ni=(e=>(e[e.None=0]="None",e[e.TypeScriptClassWrapper=1]="TypeScriptClassWrapper",e[e.NeverApplyImportHelper=2]="NeverApplyImportHelper",e[e.IgnoreSourceNewlines=4]="IgnoreSourceNewlines",e[e.Immutable=8]="Immutable",e[e.IndirectCall=16]="IndirectCall",e[e.TransformPrivateStaticElements=32]="TransformPrivateStaticElements",e))(Ni||{}),Di={Classes:2,ForOf:2,Generators:2,Iteration:2,SpreadElements:2,RestElements:2,TaggedTemplates:2,DestructuringAssignment:2,BindingPatterns:2,ArrowFunctions:2,BlockScopedVariables:2,ObjectAssign:2,RegularExpressionFlagsUnicode:2,RegularExpressionFlagsSticky:2,Exponentiation:3,AsyncFunctions:4,ForAwaitOf:5,AsyncGenerators:5,AsyncIteration:5,ObjectSpreadRest:5,RegularExpressionFlagsDotAll:5,BindinglessCatch:6,BigInt:7,NullishCoalesce:7,OptionalChaining:7,LogicalAssignment:8,TopLevelAwait:9,ClassFields:9,PrivateNamesAndClassStaticBlocks:9,RegularExpressionFlagsHasIndices:9,ShebangComments:10,RegularExpressionFlagsUnicodeSets:11,UsingAndAwaitUsing:99,ClassAndClassElementDecorators:99},Fi=(e=>(e[e.Extends=1]="Extends",e[e.Assign=2]="Assign",e[e.Rest=4]="Rest",e[e.Decorate=8]="Decorate",e[e.ESDecorateAndRunInitializers=8]="ESDecorateAndRunInitializers",e[e.Metadata=16]="Metadata",e[e.Param=32]="Param",e[e.Awaiter=64]="Awaiter",e[e.Generator=128]="Generator",e[e.Values=256]="Values",e[e.Read=512]="Read",e[e.SpreadArray=1024]="SpreadArray",e[e.Await=2048]="Await",e[e.AsyncGenerator=4096]="AsyncGenerator",e[e.AsyncDelegator=8192]="AsyncDelegator",e[e.AsyncValues=16384]="AsyncValues",e[e.ExportStar=32768]="ExportStar",e[e.ImportStar=65536]="ImportStar",e[e.ImportDefault=131072]="ImportDefault",e[e.MakeTemplateObject=262144]="MakeTemplateObject",e[e.ClassPrivateFieldGet=524288]="ClassPrivateFieldGet",e[e.ClassPrivateFieldSet=1048576]="ClassPrivateFieldSet",e[e.ClassPrivateFieldIn=2097152]="ClassPrivateFieldIn",e[e.SetFunctionName=4194304]="SetFunctionName",e[e.PropKey=8388608]="PropKey",e[e.AddDisposableResourceAndDisposeResources=16777216]="AddDisposableResourceAndDisposeResources",e[e.RewriteRelativeImportExtension=33554432]="RewriteRelativeImportExtension",e[e.FirstEmitHelper=1]="FirstEmitHelper",e[e.LastEmitHelper=16777216]="LastEmitHelper",e[e.ForOfIncludes=256]="ForOfIncludes",e[e.ForAwaitOfIncludes=16384]="ForAwaitOfIncludes",e[e.AsyncGeneratorIncludes=6144]="AsyncGeneratorIncludes",e[e.AsyncDelegatorIncludes=26624]="AsyncDelegatorIncludes",e[e.SpreadIncludes=1536]="SpreadIncludes",e))(Fi||{}),Ei=(e=>(e[e.SourceFile=0]="SourceFile",e[e.Expression=1]="Expression",e[e.IdentifierName=2]="IdentifierName",e[e.MappedTypeParameter=3]="MappedTypeParameter",e[e.Unspecified=4]="Unspecified",e[e.EmbeddedStatement=5]="EmbeddedStatement",e[e.JsxAttributeValue=6]="JsxAttributeValue",e[e.ImportTypeNodeAttributes=7]="ImportTypeNodeAttributes",e))(Ei||{}),Pi=(e=>(e[e.Parentheses=1]="Parentheses",e[e.TypeAssertions=2]="TypeAssertions",e[e.NonNullAssertions=4]="NonNullAssertions",e[e.PartiallyEmittedExpressions=8]="PartiallyEmittedExpressions",e[e.ExpressionsWithTypeArguments=16]="ExpressionsWithTypeArguments",e[e.Assertions=6]="Assertions",e[e.All=31]="All",e[e.ExcludeJSDocTypeAssertion=-2147483648]="ExcludeJSDocTypeAssertion",e))(Pi||{}),Ai=(e=>(e[e.None=0]="None",e[e.InParameters=1]="InParameters",e[e.VariablesHoistedInParameters=2]="VariablesHoistedInParameters",e))(Ai||{}),Ii=(e=>(e[e.None=0]="None",e[e.SingleLine=0]="SingleLine",e[e.MultiLine=1]="MultiLine",e[e.PreserveLines=2]="PreserveLines",e[e.LinesMask=3]="LinesMask",e[e.NotDelimited=0]="NotDelimited",e[e.BarDelimited=4]="BarDelimited",e[e.AmpersandDelimited=8]="AmpersandDelimited",e[e.CommaDelimited=16]="CommaDelimited",e[e.AsteriskDelimited=32]="AsteriskDelimited",e[e.DelimitersMask=60]="DelimitersMask",e[e.AllowTrailingComma=64]="AllowTrailingComma",e[e.Indented=128]="Indented",e[e.SpaceBetweenBraces=256]="SpaceBetweenBraces",e[e.SpaceBetweenSiblings=512]="SpaceBetweenSiblings",e[e.Braces=1024]="Braces",e[e.Parenthesis=2048]="Parenthesis",e[e.AngleBrackets=4096]="AngleBrackets",e[e.SquareBrackets=8192]="SquareBrackets",e[e.BracketsMask=15360]="BracketsMask",e[e.OptionalIfUndefined=16384]="OptionalIfUndefined",e[e.OptionalIfEmpty=32768]="OptionalIfEmpty",e[e.Optional=49152]="Optional",e[e.PreferNewLine=65536]="PreferNewLine",e[e.NoTrailingNewLine=131072]="NoTrailingNewLine",e[e.NoInterveningComments=262144]="NoInterveningComments",e[e.NoSpaceIfEmpty=524288]="NoSpaceIfEmpty",e[e.SingleElement=1048576]="SingleElement",e[e.SpaceAfterList=2097152]="SpaceAfterList",e[e.Modifiers=2359808]="Modifiers",e[e.HeritageClauses=512]="HeritageClauses",e[e.SingleLineTypeLiteralMembers=768]="SingleLineTypeLiteralMembers",e[e.MultiLineTypeLiteralMembers=32897]="MultiLineTypeLiteralMembers",e[e.SingleLineTupleTypeElements=528]="SingleLineTupleTypeElements",e[e.MultiLineTupleTypeElements=657]="MultiLineTupleTypeElements",e[e.UnionTypeConstituents=516]="UnionTypeConstituents",e[e.IntersectionTypeConstituents=520]="IntersectionTypeConstituents",e[e.ObjectBindingPatternElements=525136]="ObjectBindingPatternElements",e[e.ArrayBindingPatternElements=524880]="ArrayBindingPatternElements",e[e.ObjectLiteralExpressionProperties=526226]="ObjectLiteralExpressionProperties",e[e.ImportAttributes=526226]="ImportAttributes",e[e.ImportClauseEntries=526226]="ImportClauseEntries",e[e.ArrayLiteralExpressionElements=8914]="ArrayLiteralExpressionElements",e[e.CommaListElements=528]="CommaListElements",e[e.CallExpressionArguments=2576]="CallExpressionArguments",e[e.NewExpressionArguments=18960]="NewExpressionArguments",e[e.TemplateExpressionSpans=262144]="TemplateExpressionSpans",e[e.SingleLineBlockStatements=768]="SingleLineBlockStatements",e[e.MultiLineBlockStatements=129]="MultiLineBlockStatements",e[e.VariableDeclarationList=528]="VariableDeclarationList",e[e.SingleLineFunctionBodyStatements=768]="SingleLineFunctionBodyStatements",e[e.MultiLineFunctionBodyStatements=1]="MultiLineFunctionBodyStatements",e[e.ClassHeritageClauses=0]="ClassHeritageClauses",e[e.ClassMembers=129]="ClassMembers",e[e.InterfaceMembers=129]="InterfaceMembers",e[e.EnumMembers=145]="EnumMembers",e[e.CaseBlockClauses=129]="CaseBlockClauses",e[e.NamedImportsOrExportsElements=525136]="NamedImportsOrExportsElements",e[e.JsxElementOrFragmentChildren=262144]="JsxElementOrFragmentChildren",e[e.JsxElementAttributes=262656]="JsxElementAttributes",e[e.CaseOrDefaultClauseStatements=163969]="CaseOrDefaultClauseStatements",e[e.HeritageClauseTypes=528]="HeritageClauseTypes",e[e.SourceFileStatements=131073]="SourceFileStatements",e[e.Decorators=2146305]="Decorators",e[e.TypeArguments=53776]="TypeArguments",e[e.TypeParameters=53776]="TypeParameters",e[e.Parameters=2576]="Parameters",e[e.IndexSignatureParameters=8848]="IndexSignatureParameters",e[e.JSDocComment=33]="JSDocComment",e))(Ii||{}),Oi=(e=>(e[e.None=0]="None",e[e.TripleSlashXML=1]="TripleSlashXML",e[e.SingleLine=2]="SingleLine",e[e.MultiLine=4]="MultiLine",e[e.All=7]="All",e[e.Default=7]="Default",e))(Oi||{}),Li={reference:{args:[{name:"types",optional:!0,captureSpan:!0},{name:"lib",optional:!0,captureSpan:!0},{name:"path",optional:!0,captureSpan:!0},{name:"no-default-lib",optional:!0},{name:"resolution-mode",optional:!0},{name:"preserve",optional:!0}],kind:1},"amd-dependency":{args:[{name:"path"},{name:"name",optional:!0}],kind:1},"amd-module":{args:[{name:"name"}],kind:1},"ts-check":{kind:2},"ts-nocheck":{kind:2},jsx:{args:[{name:"factory"}],kind:4},jsxfrag:{args:[{name:"factory"}],kind:4},jsximportsource:{args:[{name:"factory"}],kind:4},jsxruntime:{args:[{name:"factory"}],kind:4}},ji=(e=>(e[e.ParseAll=0]="ParseAll",e[e.ParseNone=1]="ParseNone",e[e.ParseForTypeErrors=2]="ParseForTypeErrors",e[e.ParseForTypeInfo=3]="ParseForTypeInfo",e))(ji||{});function Ri(e){let t=5381;for(let n=0;n(e[e.Created=0]="Created",e[e.Changed=1]="Changed",e[e.Deleted=2]="Deleted",e))(Bi||{}),Ji=(e=>(e[e.High=2e3]="High",e[e.Medium=500]="Medium",e[e.Low=250]="Low",e))(Ji||{}),zi=new Date(0);function qi(e,t){return e.getModifiedTime(t)||zi}function Ui(e){return{250:e.Low,500:e.Medium,2e3:e.High}}var Vi={Low:32,Medium:64,High:256},Wi=Ui(Vi),$i=Ui(Vi);function Hi(e,t,n,r,i){let o=n;for(let a=t.length;r&&a;++n===t.length&&(o{var i;return null==(i=e.get(o))?void 0:i.callbacks.slice().forEach((e=>e(t,n,r)))})),callbacks:[r]}),{close:()=>{const t=e.get(o);t&&zt(t.callbacks,r)&&!t.callbacks.length&&(e.delete(o),vU(t))}}}function Gi(e,t){const n=e.mtime.getTime(),r=t.getTime();return n!==r&&(e.mtime=t,e.callback(e.fileName,Xi(n,r),t),!0)}function Xi(e,t){return 0===e?0:0===t?2:1}var Qi=["/node_modules/.","/.git","/.#"],Yi=rt;function Zi(e){return Yi(e)}function eo(e){Yi=e}function to({watchDirectory:e,useCaseSensitiveFileNames:t,getCurrentDirectory:n,getAccessibleSortedChildDirectories:r,fileSystemEntryExists:i,realpath:o,setTimeout:a,clearTimeout:s}){const c=new Map,_=$e(),u=new Map;let d;const p=wt(!t),f=Wt(t);return(t,n,r,i)=>r?m(t,i,n):e(t,n,r,i);function m(t,n,r,o){const p=f(t);let m=c.get(p);m?m.refCount++:(m={watcher:e(t,(e=>{var r;x(e,n)||((null==n?void 0:n.synchronousWatchDirectory)?((null==(r=c.get(p))?void 0:r.targetWatcher)||g(t,p,e),b(t,p,n)):function(e,t,n,r){const o=c.get(t);o&&i(e,1)?function(e,t,n,r){const i=u.get(t);i?i.fileNames.push(n):u.set(t,{dirName:e,options:r,fileNames:[n]}),d&&(s(d),d=void 0),d=a(h,1e3,"timerToUpdateChildWatches")}(e,t,n,r):(g(e,t,n),v(o),y(o))}(t,p,e,n))}),!1,n),refCount:1,childWatches:l,targetWatcher:void 0,links:void 0},c.set(p,m),b(t,p,n)),o&&(m.links??(m.links=new Set)).add(o);const k=r&&{dirName:t,callback:r};return k&&_.add(p,k),{dirName:t,close:()=>{var e;const t=un.checkDefined(c.get(p));k&&_.remove(p,k),o&&(null==(e=t.links)||e.delete(o)),t.refCount--,t.refCount||(c.delete(p),t.links=void 0,vU(t),v(t),t.childWatches.forEach(tx))}}}function g(e,t,n,r){var i,o;let a,s;Ze(n)?a=n:s=n,_.forEach(((e,n)=>{if((!s||!0!==s.get(n))&&(n===t||Gt(t,n)&&t[n.length]===lo))if(s)if(r){const e=s.get(n);e?e.push(...r):s.set(n,r.slice())}else s.set(n,!0);else e.forEach((({callback:e})=>e(a)))})),null==(o=null==(i=c.get(t))?void 0:i.links)||o.forEach((t=>{const n=n=>jo(t,na(e,n,f));s?g(t,f(t),s,null==r?void 0:r.map(n)):g(t,f(t),n(a))}))}function h(){var e;d=void 0,Zi(`sysLog:: onTimerToUpdateChildWatches:: ${u.size}`);const t=Un(),n=new Map;for(;!d&&u.size;){const t=u.entries().next();un.assert(!t.done);const{value:[r,{dirName:i,options:o,fileNames:a}]}=t;u.delete(r);const s=b(i,r,o);(null==(e=c.get(r))?void 0:e.targetWatcher)||g(i,r,n,s?void 0:a)}Zi(`sysLog:: invokingWatchers:: Elapsed:: ${Un()-t}ms:: ${u.size}`),_.forEach(((e,t)=>{const r=n.get(t);r&&e.forEach((({callback:e,dirName:t})=>{Qe(r)?r.forEach(e):e(t)}))})),Zi(`sysLog:: Elapsed:: ${Un()-t}ms:: onTimerToUpdateChildWatches:: ${u.size} ${d}`)}function y(e){if(!e)return;const t=e.childWatches;e.childWatches=l;for(const e of t)e.close(),y(c.get(f(e.dirName)))}function v(e){(null==e?void 0:e.targetWatcher)&&(e.targetWatcher.close(),e.targetWatcher=void 0)}function b(e,t,n){const a=c.get(t);if(!a)return!1;const s=Jo(o(e));let _,u;return 0===p(s,e)?_=on(i(e,1)?B(r(e),(t=>{const r=Bo(t,e);return x(r,n)||0!==p(r,Jo(o(r)))?void 0:r})):l,a.childWatches,((e,t)=>p(e,t.dirName)),(function(e){d(m(e,n))}),tx,d):a.targetWatcher&&0===p(s,a.targetWatcher.dirName)?(_=!1,un.assert(a.childWatches===l)):(v(a),a.targetWatcher=m(s,n,void 0,e),a.childWatches.forEach(tx),_=!0),a.childWatches=u||l,_;function d(e){(u||(u=[])).push(e)}}function x(e,r){return $(Qi,(n=>function(e,n){return!!e.includes(n)||!t&&f(e).includes(n)}(e,n)))||ro(e,r,t,n)}}var no=(e=>(e[e.File=0]="File",e[e.Directory=1]="Directory",e))(no||{});function ro(e,t,n,r){return((null==t?void 0:t.excludeDirectories)||(null==t?void 0:t.excludeFiles))&&(kj(e,null==t?void 0:t.excludeFiles,n,r())||kj(e,null==t?void 0:t.excludeDirectories,n,r()))}function io(e,t,n,r,i){return(o,a)=>{if("rename"===o){const o=a?Jo(jo(e,a)):e;a&&ro(o,n,r,i)||t(o)}}}function oo({pollingWatchFileWorker:e,getModifiedTime:t,setTimeout:n,clearTimeout:r,fsWatchWorker:i,fileSystemEntryExists:o,useCaseSensitiveFileNames:a,getCurrentDirectory:s,fsSupportsRecursiveFsWatch:c,getAccessibleSortedChildDirectories:l,realpath:_,tscWatchFile:u,useNonPollingWatchers:d,tscWatchDirectory:p,inodeWatching:f,fsWatchWithTimestamp:m,sysLog:g}){const h=new Map,y=new Map,v=new Map;let b,x,k,S,T=!1;return{watchFile:C,watchDirectory:function(e,t,i,u){return c?P(e,1,io(e,t,u,a,s),i,500,yU(u)):(S||(S=to({useCaseSensitiveFileNames:a,getCurrentDirectory:s,fileSystemEntryExists:o,getAccessibleSortedChildDirectories:l,watchDirectory:F,realpath:_,setTimeout:n,clearTimeout:r})),S(e,t,i,u))}};function C(e,n,r,i){i=function(e,t){if(e&&void 0!==e.watchFile)return e;switch(u){case"PriorityPollingInterval":return{watchFile:1};case"DynamicPriorityPolling":return{watchFile:2};case"UseFsEvents":return D(4,1,e);case"UseFsEventsWithFallbackDynamicPolling":return D(4,2,e);case"UseFsEventsOnParentDirectory":t=!0;default:return t?D(5,1,e):{watchFile:4}}}(i,d);const o=un.checkDefined(i.watchFile);switch(o){case 0:return E(e,n,250,void 0);case 1:return E(e,n,r,void 0);case 2:return w()(e,n,r,void 0);case 3:return N()(e,n,void 0,void 0);case 4:return P(e,0,function(e,t,n){return(r,i,o)=>{"rename"===r?(o||(o=n(e)||zi),t(e,o!==zi?0:2,o)):t(e,1,o)}}(e,n,t),!1,r,yU(i));case 5:return k||(k=function(e,t,n,r){const i=$e(),o=r?new Map:void 0,a=new Map,s=Wt(t);return function(t,r,c,l){const _=s(t);1===i.add(_,r).length&&o&&o.set(_,n(t)||zi);const u=Do(_)||".",d=a.get(u)||function(t,r,c){const l=e(t,1,((e,r)=>{if(!Ze(r))return;const a=Bo(r,t),c=s(a),l=a&&i.get(c);if(l){let t,r=1;if(o){const i=o.get(c);if("change"===e&&(t=n(a)||zi,t.getTime()===i.getTime()))return;t||(t=n(a)||zi),o.set(c,t),i===zi?r=0:t===zi&&(r=2)}for(const e of l)e(a,r,t)}}),!1,500,c);return l.referenceCount=0,a.set(r,l),l}(Do(t)||".",u,l);return d.referenceCount++,{close:()=>{1===d.referenceCount?(d.close(),a.delete(u)):d.referenceCount--,i.remove(_,r)}}}}(P,a,t,m)),k(e,n,r,yU(i));default:un.assertNever(o)}}function w(){return b||(b=function(e){const t=[],n=[],r=a(250),i=a(500),o=a(2e3);return function(n,r,i){const o={fileName:n,callback:r,unchangedPolls:0,mtime:qi(e,n)};return t.push(o),u(o,i),{close:()=>{o.isClosed=!0,Vt(t,o)}}};function a(e){const t=[];return t.pollingInterval=e,t.pollIndex=0,t.pollScheduled=!1,t}function s(e,t){t.pollIndex=l(t,t.pollingInterval,t.pollIndex,Wi[t.pollingInterval]),t.length?p(t.pollingInterval):(un.assert(0===t.pollIndex),t.pollScheduled=!1)}function c(e,t){l(n,250,0,n.length),s(0,t),!t.pollScheduled&&n.length&&p(250)}function l(t,r,i,o){return Hi(e,t,i,o,(function(e,i,o){var a;o?(e.unchangedPolls=0,t!==n&&(t[i]=void 0,a=e,n.push(a),d(250))):e.unchangedPolls!==$i[r]?e.unchangedPolls++:t===n?(e.unchangedPolls=1,t[i]=void 0,u(e,250)):2e3!==r&&(e.unchangedPolls++,t[i]=void 0,u(e,250===r?500:2e3))}))}function _(e){switch(e){case 250:return r;case 500:return i;case 2e3:return o}}function u(e,t){_(t).push(e),d(t)}function d(e){_(e).pollScheduled||p(e)}function p(t){_(t).pollScheduled=e.setTimeout(250===t?c:s,t,250===t?"pollLowPollingIntervalQueue":"pollPollingIntervalQueue",_(t))}}({getModifiedTime:t,setTimeout:n}))}function N(){return x||(x=function(e){const t=[];let n,r=0;return function(n,r){const i={fileName:n,callback:r,mtime:qi(e,n)};return t.push(i),o(),{close:()=>{i.isClosed=!0,Vt(t,i)}}};function i(){n=void 0,r=Hi(e,t,r,Wi[250]),o()}function o(){t.length&&!n&&(n=e.setTimeout(i,2e3,"pollQueue"))}}({getModifiedTime:t,setTimeout:n}))}function D(e,t,n){const r=null==n?void 0:n.fallbackPolling;return{watchFile:e,fallbackPolling:void 0===r?t:r}}function F(e,t,n,r){un.assert(!n);const i=function(e){if(e&&void 0!==e.watchDirectory)return e;switch(p){case"RecursiveDirectoryUsingFsWatchFile":return{watchDirectory:1};case"RecursiveDirectoryUsingDynamicPriorityPolling":return{watchDirectory:2};default:const t=null==e?void 0:e.fallbackPolling;return{watchDirectory:0,fallbackPolling:void 0!==t?t:void 0}}}(r),o=un.checkDefined(i.watchDirectory);switch(o){case 1:return E(e,(()=>t(e)),500,void 0);case 2:return w()(e,(()=>t(e)),500,void 0);case 3:return N()(e,(()=>t(e)),void 0,void 0);case 0:return P(e,1,io(e,t,r,a,s),n,500,yU(i));default:un.assertNever(o)}}function E(t,n,r,i){return Ki(h,a,t,n,(n=>e(t,n,r,i)))}function P(e,n,r,s,c,l){return Ki(s?v:y,a,e,r,(r=>function(e,n,r,a,s,c){let l,_;f&&(l=e.substring(e.lastIndexOf(lo)),_=l.slice(lo.length));let u=o(e,n)?p():v();return{close:()=>{u&&(u.close(),u=void 0)}};function d(t){u&&(g(`sysLog:: ${e}:: Changing watcher to ${t===p?"Present":"Missing"}FileSystemEntryWatcher`),u.close(),u=t())}function p(){if(T)return g(`sysLog:: ${e}:: Defaulting to watchFile`),y();try{const t=(1!==n&&m?A:i)(e,a,f?h:r);return t.on("error",(()=>{r("rename",""),d(v)})),t}catch(t){return T||(T="ENOSPC"===t.code),g(`sysLog:: ${e}:: Changing to watchFile`),y()}}function h(n,i){let o;if(i&&Rt(i,"~")&&(o=i,i=i.slice(0,i.length-1)),"rename"!==n||i&&i!==_&&!Rt(i,l))o&&r(n,o),r(n,i);else{const a=t(e)||zi;o&&r(n,o,a),r(n,i,a),f?d(a===zi?v:p):a===zi&&d(v)}}function y(){return C(e,function(e){return(t,n,r)=>e(1===n?"change":"rename","",r)}(r),s,c)}function v(){return C(e,((n,i,o)=>{0===i&&(o||(o=t(e)||zi),o!==zi&&(r("rename","",o),d(p)))}),s,c)}}(e,n,r,s,c,l)))}function A(e,n,r){let o=t(e)||zi;return i(e,n,((n,i,a)=>{"change"===n&&(a||(a=t(e)||zi),a.getTime()===o.getTime())||(o=a||t(e)||zi,r(n,i,o))}))}}function ao(e){const t=e.writeFile;e.writeFile=(n,r,i)=>ev(n,r,!!i,((n,r,i)=>t.call(e,n,r,i)),(t=>e.createDirectory(t)),(t=>e.directoryExists(t)))}var so=(()=>{let e;return _n()&&(e=function(){const e=/^native |^\([^)]+\)$|^(?:internal[\\/]|[\w\s]+(?:\.js)?$)/,t=n(714),i=n(98),o=n(965);let a,s;try{a=n(728)}catch{a=void 0}let c="./profile.cpuprofile";const l="darwin"===process.platform,_="linux"===process.platform||l,u={throwIfNoEntry:!1},d=o.platform(),p="win32"!==d&&"win64"!==d&&!N((x=r,x.replace(/\w/g,(e=>{const t=e.toUpperCase();return e===t?e.toLowerCase():t})))),f=t.realpathSync.native?"win32"===process.platform?function(e){return e.length<260?t.realpathSync.native(e):t.realpathSync(e)}:t.realpathSync.native:t.realpathSync,m=r.endsWith("sys.js")?i.join(i.dirname("/"),"__fake__.js"):r,g="win32"===process.platform||l,h=dt((()=>process.cwd())),{watchFile:y,watchDirectory:v}=oo({pollingWatchFileWorker:function(e,n,r){let i;return t.watchFile(e,{persistent:!0,interval:r},o),{close:()=>t.unwatchFile(e,o)};function o(t,r){const o=0==+r.mtime||2===i;if(0==+t.mtime){if(o)return;i=2}else if(o)i=0;else{if(+t.mtime==+r.mtime)return;i=1}n(e,i,t.mtime)}},getModifiedTime:F,setTimeout,clearTimeout,fsWatchWorker:function(e,n,r){return t.watch(e,g?{persistent:!0,recursive:!!n}:{persistent:!0},r)},useCaseSensitiveFileNames:p,getCurrentDirectory:h,fileSystemEntryExists:w,fsSupportsRecursiveFsWatch:g,getAccessibleSortedChildDirectories:e=>C(e).directories,realpath:D,tscWatchFile:process.env.TSC_WATCHFILE,useNonPollingWatchers:!!process.env.TSC_NONPOLLING_WATCHER,tscWatchDirectory:process.env.TSC_WATCHDIRECTORY,inodeWatching:_,fsWatchWithTimestamp:l,sysLog:Zi}),b={args:process.argv.slice(2),newLine:o.EOL,useCaseSensitiveFileNames:p,write(e){process.stdout.write(e)},getWidthOfTerminal:()=>process.stdout.columns,writeOutputIsTTY:()=>process.stdout.isTTY,readFile:function(e,n){let r;try{r=t.readFileSync(e)}catch{return}let i=r.length;if(i>=2&&254===r[0]&&255===r[1]){i&=-2;for(let e=0;e=2&&255===r[0]&&254===r[1]?r.toString("utf16le",2):i>=3&&239===r[0]&&187===r[1]&&191===r[2]?r.toString("utf8",3):r.toString("utf8")},writeFile:function(e,n,r){let i;r&&(n="\ufeff"+n);try{i=t.openSync(e,"w"),t.writeSync(i,n,void 0,"utf8")}finally{void 0!==i&&t.closeSync(i)}},watchFile:y,watchDirectory:v,preferNonRecursiveWatch:!g,resolvePath:e=>i.resolve(e),fileExists:N,directoryExists:function(e){return w(e,1)},getAccessibleFileSystemEntries:C,createDirectory(e){if(!b.directoryExists(e))try{t.mkdirSync(e)}catch(e){if("EEXIST"!==e.code)throw e}},getExecutingFilePath:()=>m,getCurrentDirectory:h,getDirectories:function(e){return C(e).directories.slice()},getEnvironmentVariable:e=>process.env[e]||"",readDirectory:function(e,t,n,r,i){return mS(e,t,n,r,p,process.cwd(),i,C,D)},getModifiedTime:F,setModifiedTime:function(e,n){try{t.utimesSync(e,n,n)}catch{return}},deleteFile:function(e){try{return t.unlinkSync(e)}catch{return}},createHash:a?E:Ri,createSHA256Hash:a?E:void 0,getMemoryUsage:()=>(n.g.gc&&n.g.gc(),process.memoryUsage().heapUsed),getFileSize(e){const t=k(e);return(null==t?void 0:t.isFile())?t.size:0},exit(e){S((()=>process.exit(e)))},enableCPUProfiler:function(e,t){if(s)return t(),!1;const r=n(178);if(!r||!r.Session)return t(),!1;const i=new r.Session;return i.connect(),i.post("Profiler.enable",(()=>{i.post("Profiler.start",(()=>{s=i,c=e,t()}))})),!0},disableCPUProfiler:S,cpuProfilingEnabled:()=>!!s||T(process.execArgv,"--cpu-prof")||T(process.execArgv,"--prof"),realpath:D,debugMode:!!process.env.NODE_INSPECTOR_IPC||!!process.env.VSCODE_INSPECTOR_OPTIONS||$(process.execArgv,(e=>/^--(?:inspect|debug)(?:-brk)?(?:=\d+)?$/i.test(e)))||!!process.recordreplay,tryEnableSourceMapsForHost(){try{n(791).install()}catch{}},setTimeout,clearTimeout,clearScreen:()=>{process.stdout.write("")},setBlocking:()=>{var e;const t=null==(e=process.stdout)?void 0:e._handle;t&&t.setBlocking&&t.setBlocking(!0)},base64decode:e=>Buffer.from(e,"base64").toString("utf8"),base64encode:e=>Buffer.from(e).toString("base64"),require:(e,t)=>{try{const r=kR(t,e,b);return{module:n(992)(r),modulePath:r,error:void 0}}catch(e){return{module:void 0,modulePath:void 0,error:e}}}};var x;return b;function k(e){try{return t.statSync(e,u)}catch{return}}function S(n){if(s&&"stopping"!==s){const r=s;return s.post("Profiler.stop",((o,{profile:a})=>{var l;if(!o){(null==(l=k(c))?void 0:l.isDirectory())&&(c=i.join(c,`${(new Date).toISOString().replace(/:/g,"-")}+P${process.pid}.cpuprofile`));try{t.mkdirSync(i.dirname(c),{recursive:!0})}catch{}t.writeFileSync(c,JSON.stringify(function(t){let n=0;const r=new Map,o=Oo(i.dirname(m)),a=`file://${1===No(o)?"":"/"}${o}`;for(const i of t.nodes)if(i.callFrame.url){const t=Oo(i.callFrame.url);Zo(a,t,p)?i.callFrame.url=oa(a,t,a,Wt(p),!0):e.test(t)||(i.callFrame.url=(r.has(t)?r:r.set(t,`external${n}.js`)).get(t),n++)}return t}(a)))}s=void 0,r.disconnect(),n()})),s="stopping",!0}return n(),!1}function C(e){try{const n=t.readdirSync(e||".",{withFileTypes:!0}),r=[],i=[];for(const t of n){const n="string"==typeof t?t:t.name;if("."===n||".."===n)continue;let o;if("string"==typeof t||t.isSymbolicLink()){if(o=k(jo(e,n)),!o)continue}else o=t;o.isFile()?r.push(n):o.isDirectory()&&i.push(n)}return r.sort(),i.sort(),{files:r,directories:i}}catch{return tT}}function w(e,t){const n=k(e);if(!n)return!1;switch(t){case 0:return n.isFile();case 1:return n.isDirectory();default:return!1}}function N(e){return w(e,0)}function D(e){try{return f(e)}catch{return e}}function F(e){var t;return null==(t=k(e))?void 0:t.mtime}function E(e){const t=a.createHash("sha256");return t.update(e),t.digest("hex")}}()),e&&ao(e),e})();function co(e){so=e}so&&so.getEnvironmentVariable&&(function(e){if(!e.getEnvironmentVariable)return;const t=function(e,t){const r=n("TSC_WATCH_POLLINGINTERVAL");return!!r&&(i("Low"),i("Medium"),i("High"),!0);function i(e){t[e]=r[e]||t[e]}}(0,Ji);function n(t){let n;return r("Low"),r("Medium"),r("High"),n;function r(r){const i=function(t,n){return e.getEnvironmentVariable(`${t}_${n.toUpperCase()}`)}(t,r);i&&((n||(n={}))[r]=Number(i))}}function r(e,r){const i=n(e);return(t||i)&&Ui(i?{...r,...i}:r)}Wi=r("TSC_WATCH_POLLINGCHUNKSIZE",Vi)||Wi,$i=r("TSC_WATCH_UNCHANGEDPOLLTHRESHOLDS",Vi)||$i}(so),un.setAssertionLevel(/^development$/i.test(so.getEnvironmentVariable("NODE_ENV"))?1:0)),so&&so.debugMode&&(un.isDebugging=!0);var lo="/",_o="\\",uo="://",po=/\\/g;function fo(e){return 47===e||92===e}function mo(e){return wo(e)<0}function go(e){return wo(e)>0}function ho(e){const t=wo(e);return t>0&&t===e.length}function yo(e){return 0!==wo(e)}function vo(e){return/^\.\.?(?:$|[\\/])/.test(e)}function bo(e){return!yo(e)&&!vo(e)}function xo(e){return Fo(e).includes(".")}function ko(e,t){return e.length>t.length&&Rt(e,t)}function So(e,t){for(const n of t)if(ko(e,n))return!0;return!1}function To(e){return e.length>0&&fo(e.charCodeAt(e.length-1))}function Co(e){return e>=97&&e<=122||e>=65&&e<=90}function wo(e){if(!e)return 0;const t=e.charCodeAt(0);if(47===t||92===t){if(e.charCodeAt(1)!==t)return 1;const n=e.indexOf(47===t?lo:_o,2);return n<0?e.length:n+1}if(Co(t)&&58===e.charCodeAt(1)){const t=e.charCodeAt(2);if(47===t||92===t)return 3;if(2===e.length)return 2}const n=e.indexOf(uo);if(-1!==n){const t=n+uo.length,r=e.indexOf(lo,t);if(-1!==r){const i=e.slice(0,n),o=e.slice(t,r);if("file"===i&&(""===o||"localhost"===o)&&Co(e.charCodeAt(r+1))){const t=function(e,t){const n=e.charCodeAt(t);if(58===n)return t+1;if(37===n&&51===e.charCodeAt(t+1)){const n=e.charCodeAt(t+2);if(97===n||65===n)return t+3}return-1}(e,r+2);if(-1!==t){if(47===e.charCodeAt(t))return~(t+1);if(t===e.length)return~t}}return~(r+1)}return~e.length}return 0}function No(e){const t=wo(e);return t<0?~t:t}function Do(e){const t=No(e=Oo(e));return t===e.length?e:(e=Uo(e)).slice(0,Math.max(t,e.lastIndexOf(lo)))}function Fo(e,t,n){if(No(e=Oo(e))===e.length)return"";const r=(e=Uo(e)).slice(Math.max(No(e),e.lastIndexOf(lo)+1)),i=void 0!==t&&void 0!==n?Po(r,t,n):void 0;return i?r.slice(0,r.length-i.length):r}function Eo(e,t,n){if(Gt(t,".")||(t="."+t),e.length>=t.length&&46===e.charCodeAt(e.length-t.length)){const r=e.slice(e.length-t.length);if(n(r,t))return r}}function Po(e,t,n){if(t)return function(e,t,n){if("string"==typeof t)return Eo(e,t,n)||"";for(const r of t){const t=Eo(e,r,n);if(t)return t}return""}(Uo(e),t,n?gt:ht);const r=Fo(e),i=r.lastIndexOf(".");return i>=0?r.substring(i):""}function Ao(e,t=""){return function(e,t){const n=e.substring(0,t),r=e.substring(t).split(lo);return r.length&&!ye(r)&&r.pop(),[n,...r]}(e=jo(t,e),No(e))}function Io(e,t){return 0===e.length?"":(e[0]&&Vo(e[0]))+e.slice(1,t).join(lo)}function Oo(e){return e.includes("\\")?e.replace(po,lo):e}function Lo(e){if(!$(e))return[];const t=[e[0]];for(let n=1;n1){if(".."!==t[t.length-1]){t.pop();continue}}else if(t[0])continue;t.push(r)}}return t}function jo(e,...t){e&&(e=Oo(e));for(let n of t)n&&(n=Oo(n),e=e&&0===No(n)?Vo(e)+n:n);return e}function Ro(e,...t){return Jo($(t)?jo(e,...t):Oo(e))}function Mo(e,t){return Lo(Ao(e,t))}function Bo(e,t){return Io(Mo(e,t))}function Jo(e){if(e=Oo(e),!Ko.test(e))return e;const t=e.replace(/\/\.\//g,"/").replace(/^\.\//,"");if(t!==e&&(e=t,!Ko.test(e)))return e;const n=Io(Lo(Ao(e)));return n&&To(e)?Vo(n):n}function zo(e,t){return 0===(n=Mo(e,t)).length?"":n.slice(1).join(lo);var n}function qo(e,t,n){return n(go(e)?Jo(e):Bo(e,t))}function Uo(e){return To(e)?e.substr(0,e.length-1):e}function Vo(e){return To(e)?e:e+lo}function Wo(e){return yo(e)||vo(e)?e:"./"+e}function $o(e,t,n,r){const i=void 0!==n&&void 0!==r?Po(e,n,r):Po(e);return i?e.slice(0,e.length-i.length)+(Gt(t,".")?t:"."+t):e}function Ho(e,t){const n=HI(e);return n?e.slice(0,e.length-n.length)+(Gt(t,".")?t:"."+t):$o(e,t)}var Ko=/\/\/|(?:^|\/)\.\.?(?:$|\/)/;function Go(e,t,n){if(e===t)return 0;if(void 0===e)return-1;if(void 0===t)return 1;const r=e.substring(0,No(e)),i=t.substring(0,No(t)),o=St(r,i);if(0!==o)return o;const a=e.substring(r.length),s=t.substring(i.length);if(!Ko.test(a)&&!Ko.test(s))return n(a,s);const c=Lo(Ao(e)),l=Lo(Ao(t)),_=Math.min(c.length,l.length);for(let e=1;e<_;e++){const t=n(c[e],l[e]);if(0!==t)return t}return vt(c.length,l.length)}function Xo(e,t){return Go(e,t,Ct)}function Qo(e,t){return Go(e,t,St)}function Yo(e,t,n,r){return"string"==typeof n?(e=jo(n,e),t=jo(n,t)):"boolean"==typeof n&&(r=n),Go(e,t,wt(r))}function Zo(e,t,n,r){if("string"==typeof n?(e=jo(n,e),t=jo(n,t)):"boolean"==typeof n&&(r=n),void 0===e||void 0===t)return!1;if(e===t)return!0;const i=Lo(Ao(e)),o=Lo(Ao(t));if(o.length0==No(t)>0,"Paths must either both be absolute or both be relative"),Io(ta(e,t,"boolean"==typeof n&&n?gt:ht,"function"==typeof n?n:st))}function ra(e,t,n){return go(e)?oa(t,e,t,n,!1):e}function ia(e,t,n){return Wo(na(Do(e),t,n))}function oa(e,t,n,r,i){const o=ta(Ro(n,e),Ro(n,t),ht,r),a=o[0];if(i&&go(a)){const e=a.charAt(0)===lo?"file://":"file:///";o[0]=e+a}return Io(o)}function aa(e,t){for(;;){const n=t(e);if(void 0!==n)return n;const r=Do(e);if(r===e)return;e=r}}function sa(e){return Rt(e,"/node_modules")}function ca(e,t,n,r,i,o,a){return{code:e,category:t,key:n,message:r,reportsUnnecessary:i,elidedInCompatabilityPyramid:o,reportsDeprecated:a}}var la={Unterminated_string_literal:ca(1002,1,"Unterminated_string_literal_1002","Unterminated string literal."),Identifier_expected:ca(1003,1,"Identifier_expected_1003","Identifier expected."),_0_expected:ca(1005,1,"_0_expected_1005","'{0}' expected."),A_file_cannot_have_a_reference_to_itself:ca(1006,1,"A_file_cannot_have_a_reference_to_itself_1006","A file cannot have a reference to itself."),The_parser_expected_to_find_a_1_to_match_the_0_token_here:ca(1007,1,"The_parser_expected_to_find_a_1_to_match_the_0_token_here_1007","The parser expected to find a '{1}' to match the '{0}' token here."),Trailing_comma_not_allowed:ca(1009,1,"Trailing_comma_not_allowed_1009","Trailing comma not allowed."),Asterisk_Slash_expected:ca(1010,1,"Asterisk_Slash_expected_1010","'*/' expected."),An_element_access_expression_should_take_an_argument:ca(1011,1,"An_element_access_expression_should_take_an_argument_1011","An element access expression should take an argument."),Unexpected_token:ca(1012,1,"Unexpected_token_1012","Unexpected token."),A_rest_parameter_or_binding_pattern_may_not_have_a_trailing_comma:ca(1013,1,"A_rest_parameter_or_binding_pattern_may_not_have_a_trailing_comma_1013","A rest parameter or binding pattern may not have a trailing comma."),A_rest_parameter_must_be_last_in_a_parameter_list:ca(1014,1,"A_rest_parameter_must_be_last_in_a_parameter_list_1014","A rest parameter must be last in a parameter list."),Parameter_cannot_have_question_mark_and_initializer:ca(1015,1,"Parameter_cannot_have_question_mark_and_initializer_1015","Parameter cannot have question mark and initializer."),A_required_parameter_cannot_follow_an_optional_parameter:ca(1016,1,"A_required_parameter_cannot_follow_an_optional_parameter_1016","A required parameter cannot follow an optional parameter."),An_index_signature_cannot_have_a_rest_parameter:ca(1017,1,"An_index_signature_cannot_have_a_rest_parameter_1017","An index signature cannot have a rest parameter."),An_index_signature_parameter_cannot_have_an_accessibility_modifier:ca(1018,1,"An_index_signature_parameter_cannot_have_an_accessibility_modifier_1018","An index signature parameter cannot have an accessibility modifier."),An_index_signature_parameter_cannot_have_a_question_mark:ca(1019,1,"An_index_signature_parameter_cannot_have_a_question_mark_1019","An index signature parameter cannot have a question mark."),An_index_signature_parameter_cannot_have_an_initializer:ca(1020,1,"An_index_signature_parameter_cannot_have_an_initializer_1020","An index signature parameter cannot have an initializer."),An_index_signature_must_have_a_type_annotation:ca(1021,1,"An_index_signature_must_have_a_type_annotation_1021","An index signature must have a type annotation."),An_index_signature_parameter_must_have_a_type_annotation:ca(1022,1,"An_index_signature_parameter_must_have_a_type_annotation_1022","An index signature parameter must have a type annotation."),readonly_modifier_can_only_appear_on_a_property_declaration_or_index_signature:ca(1024,1,"readonly_modifier_can_only_appear_on_a_property_declaration_or_index_signature_1024","'readonly' modifier can only appear on a property declaration or index signature."),An_index_signature_cannot_have_a_trailing_comma:ca(1025,1,"An_index_signature_cannot_have_a_trailing_comma_1025","An index signature cannot have a trailing comma."),Accessibility_modifier_already_seen:ca(1028,1,"Accessibility_modifier_already_seen_1028","Accessibility modifier already seen."),_0_modifier_must_precede_1_modifier:ca(1029,1,"_0_modifier_must_precede_1_modifier_1029","'{0}' modifier must precede '{1}' modifier."),_0_modifier_already_seen:ca(1030,1,"_0_modifier_already_seen_1030","'{0}' modifier already seen."),_0_modifier_cannot_appear_on_class_elements_of_this_kind:ca(1031,1,"_0_modifier_cannot_appear_on_class_elements_of_this_kind_1031","'{0}' modifier cannot appear on class elements of this kind."),super_must_be_followed_by_an_argument_list_or_member_access:ca(1034,1,"super_must_be_followed_by_an_argument_list_or_member_access_1034","'super' must be followed by an argument list or member access."),Only_ambient_modules_can_use_quoted_names:ca(1035,1,"Only_ambient_modules_can_use_quoted_names_1035","Only ambient modules can use quoted names."),Statements_are_not_allowed_in_ambient_contexts:ca(1036,1,"Statements_are_not_allowed_in_ambient_contexts_1036","Statements are not allowed in ambient contexts."),A_declare_modifier_cannot_be_used_in_an_already_ambient_context:ca(1038,1,"A_declare_modifier_cannot_be_used_in_an_already_ambient_context_1038","A 'declare' modifier cannot be used in an already ambient context."),Initializers_are_not_allowed_in_ambient_contexts:ca(1039,1,"Initializers_are_not_allowed_in_ambient_contexts_1039","Initializers are not allowed in ambient contexts."),_0_modifier_cannot_be_used_in_an_ambient_context:ca(1040,1,"_0_modifier_cannot_be_used_in_an_ambient_context_1040","'{0}' modifier cannot be used in an ambient context."),_0_modifier_cannot_be_used_here:ca(1042,1,"_0_modifier_cannot_be_used_here_1042","'{0}' modifier cannot be used here."),_0_modifier_cannot_appear_on_a_module_or_namespace_element:ca(1044,1,"_0_modifier_cannot_appear_on_a_module_or_namespace_element_1044","'{0}' modifier cannot appear on a module or namespace element."),Top_level_declarations_in_d_ts_files_must_start_with_either_a_declare_or_export_modifier:ca(1046,1,"Top_level_declarations_in_d_ts_files_must_start_with_either_a_declare_or_export_modifier_1046","Top-level declarations in .d.ts files must start with either a 'declare' or 'export' modifier."),A_rest_parameter_cannot_be_optional:ca(1047,1,"A_rest_parameter_cannot_be_optional_1047","A rest parameter cannot be optional."),A_rest_parameter_cannot_have_an_initializer:ca(1048,1,"A_rest_parameter_cannot_have_an_initializer_1048","A rest parameter cannot have an initializer."),A_set_accessor_must_have_exactly_one_parameter:ca(1049,1,"A_set_accessor_must_have_exactly_one_parameter_1049","A 'set' accessor must have exactly one parameter."),A_set_accessor_cannot_have_an_optional_parameter:ca(1051,1,"A_set_accessor_cannot_have_an_optional_parameter_1051","A 'set' accessor cannot have an optional parameter."),A_set_accessor_parameter_cannot_have_an_initializer:ca(1052,1,"A_set_accessor_parameter_cannot_have_an_initializer_1052","A 'set' accessor parameter cannot have an initializer."),A_set_accessor_cannot_have_rest_parameter:ca(1053,1,"A_set_accessor_cannot_have_rest_parameter_1053","A 'set' accessor cannot have rest parameter."),A_get_accessor_cannot_have_parameters:ca(1054,1,"A_get_accessor_cannot_have_parameters_1054","A 'get' accessor cannot have parameters."),Type_0_is_not_a_valid_async_function_return_type_in_ES5_because_it_does_not_refer_to_a_Promise_compatible_constructor_value:ca(1055,1,"Type_0_is_not_a_valid_async_function_return_type_in_ES5_because_it_does_not_refer_to_a_Promise_compa_1055","Type '{0}' is not a valid async function return type in ES5 because it does not refer to a Promise-compatible constructor value."),Accessors_are_only_available_when_targeting_ECMAScript_5_and_higher:ca(1056,1,"Accessors_are_only_available_when_targeting_ECMAScript_5_and_higher_1056","Accessors are only available when targeting ECMAScript 5 and higher."),The_return_type_of_an_async_function_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member:ca(1058,1,"The_return_type_of_an_async_function_must_either_be_a_valid_promise_or_must_not_contain_a_callable_t_1058","The return type of an async function must either be a valid promise or must not contain a callable 'then' member."),A_promise_must_have_a_then_method:ca(1059,1,"A_promise_must_have_a_then_method_1059","A promise must have a 'then' method."),The_first_parameter_of_the_then_method_of_a_promise_must_be_a_callback:ca(1060,1,"The_first_parameter_of_the_then_method_of_a_promise_must_be_a_callback_1060","The first parameter of the 'then' method of a promise must be a callback."),Enum_member_must_have_initializer:ca(1061,1,"Enum_member_must_have_initializer_1061","Enum member must have initializer."),Type_is_referenced_directly_or_indirectly_in_the_fulfillment_callback_of_its_own_then_method:ca(1062,1,"Type_is_referenced_directly_or_indirectly_in_the_fulfillment_callback_of_its_own_then_method_1062","Type is referenced directly or indirectly in the fulfillment callback of its own 'then' method."),An_export_assignment_cannot_be_used_in_a_namespace:ca(1063,1,"An_export_assignment_cannot_be_used_in_a_namespace_1063","An export assignment cannot be used in a namespace."),The_return_type_of_an_async_function_or_method_must_be_the_global_Promise_T_type_Did_you_mean_to_write_Promise_0:ca(1064,1,"The_return_type_of_an_async_function_or_method_must_be_the_global_Promise_T_type_Did_you_mean_to_wri_1064","The return type of an async function or method must be the global Promise type. Did you mean to write 'Promise<{0}>'?"),The_return_type_of_an_async_function_or_method_must_be_the_global_Promise_T_type:ca(1065,1,"The_return_type_of_an_async_function_or_method_must_be_the_global_Promise_T_type_1065","The return type of an async function or method must be the global Promise type."),In_ambient_enum_declarations_member_initializer_must_be_constant_expression:ca(1066,1,"In_ambient_enum_declarations_member_initializer_must_be_constant_expression_1066","In ambient enum declarations member initializer must be constant expression."),Unexpected_token_A_constructor_method_accessor_or_property_was_expected:ca(1068,1,"Unexpected_token_A_constructor_method_accessor_or_property_was_expected_1068","Unexpected token. A constructor, method, accessor, or property was expected."),Unexpected_token_A_type_parameter_name_was_expected_without_curly_braces:ca(1069,1,"Unexpected_token_A_type_parameter_name_was_expected_without_curly_braces_1069","Unexpected token. A type parameter name was expected without curly braces."),_0_modifier_cannot_appear_on_a_type_member:ca(1070,1,"_0_modifier_cannot_appear_on_a_type_member_1070","'{0}' modifier cannot appear on a type member."),_0_modifier_cannot_appear_on_an_index_signature:ca(1071,1,"_0_modifier_cannot_appear_on_an_index_signature_1071","'{0}' modifier cannot appear on an index signature."),A_0_modifier_cannot_be_used_with_an_import_declaration:ca(1079,1,"A_0_modifier_cannot_be_used_with_an_import_declaration_1079","A '{0}' modifier cannot be used with an import declaration."),Invalid_reference_directive_syntax:ca(1084,1,"Invalid_reference_directive_syntax_1084","Invalid 'reference' directive syntax."),_0_modifier_cannot_appear_on_a_constructor_declaration:ca(1089,1,"_0_modifier_cannot_appear_on_a_constructor_declaration_1089","'{0}' modifier cannot appear on a constructor declaration."),_0_modifier_cannot_appear_on_a_parameter:ca(1090,1,"_0_modifier_cannot_appear_on_a_parameter_1090","'{0}' modifier cannot appear on a parameter."),Only_a_single_variable_declaration_is_allowed_in_a_for_in_statement:ca(1091,1,"Only_a_single_variable_declaration_is_allowed_in_a_for_in_statement_1091","Only a single variable declaration is allowed in a 'for...in' statement."),Type_parameters_cannot_appear_on_a_constructor_declaration:ca(1092,1,"Type_parameters_cannot_appear_on_a_constructor_declaration_1092","Type parameters cannot appear on a constructor declaration."),Type_annotation_cannot_appear_on_a_constructor_declaration:ca(1093,1,"Type_annotation_cannot_appear_on_a_constructor_declaration_1093","Type annotation cannot appear on a constructor declaration."),An_accessor_cannot_have_type_parameters:ca(1094,1,"An_accessor_cannot_have_type_parameters_1094","An accessor cannot have type parameters."),A_set_accessor_cannot_have_a_return_type_annotation:ca(1095,1,"A_set_accessor_cannot_have_a_return_type_annotation_1095","A 'set' accessor cannot have a return type annotation."),An_index_signature_must_have_exactly_one_parameter:ca(1096,1,"An_index_signature_must_have_exactly_one_parameter_1096","An index signature must have exactly one parameter."),_0_list_cannot_be_empty:ca(1097,1,"_0_list_cannot_be_empty_1097","'{0}' list cannot be empty."),Type_parameter_list_cannot_be_empty:ca(1098,1,"Type_parameter_list_cannot_be_empty_1098","Type parameter list cannot be empty."),Type_argument_list_cannot_be_empty:ca(1099,1,"Type_argument_list_cannot_be_empty_1099","Type argument list cannot be empty."),Invalid_use_of_0_in_strict_mode:ca(1100,1,"Invalid_use_of_0_in_strict_mode_1100","Invalid use of '{0}' in strict mode."),with_statements_are_not_allowed_in_strict_mode:ca(1101,1,"with_statements_are_not_allowed_in_strict_mode_1101","'with' statements are not allowed in strict mode."),delete_cannot_be_called_on_an_identifier_in_strict_mode:ca(1102,1,"delete_cannot_be_called_on_an_identifier_in_strict_mode_1102","'delete' cannot be called on an identifier in strict mode."),for_await_loops_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules:ca(1103,1,"for_await_loops_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules_1103","'for await' loops are only allowed within async functions and at the top levels of modules."),A_continue_statement_can_only_be_used_within_an_enclosing_iteration_statement:ca(1104,1,"A_continue_statement_can_only_be_used_within_an_enclosing_iteration_statement_1104","A 'continue' statement can only be used within an enclosing iteration statement."),A_break_statement_can_only_be_used_within_an_enclosing_iteration_or_switch_statement:ca(1105,1,"A_break_statement_can_only_be_used_within_an_enclosing_iteration_or_switch_statement_1105","A 'break' statement can only be used within an enclosing iteration or switch statement."),The_left_hand_side_of_a_for_of_statement_may_not_be_async:ca(1106,1,"The_left_hand_side_of_a_for_of_statement_may_not_be_async_1106","The left-hand side of a 'for...of' statement may not be 'async'."),Jump_target_cannot_cross_function_boundary:ca(1107,1,"Jump_target_cannot_cross_function_boundary_1107","Jump target cannot cross function boundary."),A_return_statement_can_only_be_used_within_a_function_body:ca(1108,1,"A_return_statement_can_only_be_used_within_a_function_body_1108","A 'return' statement can only be used within a function body."),Expression_expected:ca(1109,1,"Expression_expected_1109","Expression expected."),Type_expected:ca(1110,1,"Type_expected_1110","Type expected."),Private_field_0_must_be_declared_in_an_enclosing_class:ca(1111,1,"Private_field_0_must_be_declared_in_an_enclosing_class_1111","Private field '{0}' must be declared in an enclosing class."),A_default_clause_cannot_appear_more_than_once_in_a_switch_statement:ca(1113,1,"A_default_clause_cannot_appear_more_than_once_in_a_switch_statement_1113","A 'default' clause cannot appear more than once in a 'switch' statement."),Duplicate_label_0:ca(1114,1,"Duplicate_label_0_1114","Duplicate label '{0}'."),A_continue_statement_can_only_jump_to_a_label_of_an_enclosing_iteration_statement:ca(1115,1,"A_continue_statement_can_only_jump_to_a_label_of_an_enclosing_iteration_statement_1115","A 'continue' statement can only jump to a label of an enclosing iteration statement."),A_break_statement_can_only_jump_to_a_label_of_an_enclosing_statement:ca(1116,1,"A_break_statement_can_only_jump_to_a_label_of_an_enclosing_statement_1116","A 'break' statement can only jump to a label of an enclosing statement."),An_object_literal_cannot_have_multiple_properties_with_the_same_name:ca(1117,1,"An_object_literal_cannot_have_multiple_properties_with_the_same_name_1117","An object literal cannot have multiple properties with the same name."),An_object_literal_cannot_have_multiple_get_Slashset_accessors_with_the_same_name:ca(1118,1,"An_object_literal_cannot_have_multiple_get_Slashset_accessors_with_the_same_name_1118","An object literal cannot have multiple get/set accessors with the same name."),An_object_literal_cannot_have_property_and_accessor_with_the_same_name:ca(1119,1,"An_object_literal_cannot_have_property_and_accessor_with_the_same_name_1119","An object literal cannot have property and accessor with the same name."),An_export_assignment_cannot_have_modifiers:ca(1120,1,"An_export_assignment_cannot_have_modifiers_1120","An export assignment cannot have modifiers."),Octal_literals_are_not_allowed_Use_the_syntax_0:ca(1121,1,"Octal_literals_are_not_allowed_Use_the_syntax_0_1121","Octal literals are not allowed. Use the syntax '{0}'."),Variable_declaration_list_cannot_be_empty:ca(1123,1,"Variable_declaration_list_cannot_be_empty_1123","Variable declaration list cannot be empty."),Digit_expected:ca(1124,1,"Digit_expected_1124","Digit expected."),Hexadecimal_digit_expected:ca(1125,1,"Hexadecimal_digit_expected_1125","Hexadecimal digit expected."),Unexpected_end_of_text:ca(1126,1,"Unexpected_end_of_text_1126","Unexpected end of text."),Invalid_character:ca(1127,1,"Invalid_character_1127","Invalid character."),Declaration_or_statement_expected:ca(1128,1,"Declaration_or_statement_expected_1128","Declaration or statement expected."),Statement_expected:ca(1129,1,"Statement_expected_1129","Statement expected."),case_or_default_expected:ca(1130,1,"case_or_default_expected_1130","'case' or 'default' expected."),Property_or_signature_expected:ca(1131,1,"Property_or_signature_expected_1131","Property or signature expected."),Enum_member_expected:ca(1132,1,"Enum_member_expected_1132","Enum member expected."),Variable_declaration_expected:ca(1134,1,"Variable_declaration_expected_1134","Variable declaration expected."),Argument_expression_expected:ca(1135,1,"Argument_expression_expected_1135","Argument expression expected."),Property_assignment_expected:ca(1136,1,"Property_assignment_expected_1136","Property assignment expected."),Expression_or_comma_expected:ca(1137,1,"Expression_or_comma_expected_1137","Expression or comma expected."),Parameter_declaration_expected:ca(1138,1,"Parameter_declaration_expected_1138","Parameter declaration expected."),Type_parameter_declaration_expected:ca(1139,1,"Type_parameter_declaration_expected_1139","Type parameter declaration expected."),Type_argument_expected:ca(1140,1,"Type_argument_expected_1140","Type argument expected."),String_literal_expected:ca(1141,1,"String_literal_expected_1141","String literal expected."),Line_break_not_permitted_here:ca(1142,1,"Line_break_not_permitted_here_1142","Line break not permitted here."),or_expected:ca(1144,1,"or_expected_1144","'{' or ';' expected."),or_JSX_element_expected:ca(1145,1,"or_JSX_element_expected_1145","'{' or JSX element expected."),Declaration_expected:ca(1146,1,"Declaration_expected_1146","Declaration expected."),Import_declarations_in_a_namespace_cannot_reference_a_module:ca(1147,1,"Import_declarations_in_a_namespace_cannot_reference_a_module_1147","Import declarations in a namespace cannot reference a module."),Cannot_use_imports_exports_or_module_augmentations_when_module_is_none:ca(1148,1,"Cannot_use_imports_exports_or_module_augmentations_when_module_is_none_1148","Cannot use imports, exports, or module augmentations when '--module' is 'none'."),File_name_0_differs_from_already_included_file_name_1_only_in_casing:ca(1149,1,"File_name_0_differs_from_already_included_file_name_1_only_in_casing_1149","File name '{0}' differs from already included file name '{1}' only in casing."),_0_declarations_must_be_initialized:ca(1155,1,"_0_declarations_must_be_initialized_1155","'{0}' declarations must be initialized."),_0_declarations_can_only_be_declared_inside_a_block:ca(1156,1,"_0_declarations_can_only_be_declared_inside_a_block_1156","'{0}' declarations can only be declared inside a block."),Unterminated_template_literal:ca(1160,1,"Unterminated_template_literal_1160","Unterminated template literal."),Unterminated_regular_expression_literal:ca(1161,1,"Unterminated_regular_expression_literal_1161","Unterminated regular expression literal."),An_object_member_cannot_be_declared_optional:ca(1162,1,"An_object_member_cannot_be_declared_optional_1162","An object member cannot be declared optional."),A_yield_expression_is_only_allowed_in_a_generator_body:ca(1163,1,"A_yield_expression_is_only_allowed_in_a_generator_body_1163","A 'yield' expression is only allowed in a generator body."),Computed_property_names_are_not_allowed_in_enums:ca(1164,1,"Computed_property_names_are_not_allowed_in_enums_1164","Computed property names are not allowed in enums."),A_computed_property_name_in_an_ambient_context_must_refer_to_an_expression_whose_type_is_a_literal_type_or_a_unique_symbol_type:ca(1165,1,"A_computed_property_name_in_an_ambient_context_must_refer_to_an_expression_whose_type_is_a_literal_t_1165","A computed property name in an ambient context must refer to an expression whose type is a literal type or a 'unique symbol' type."),A_computed_property_name_in_a_class_property_declaration_must_have_a_simple_literal_type_or_a_unique_symbol_type:ca(1166,1,"A_computed_property_name_in_a_class_property_declaration_must_have_a_simple_literal_type_or_a_unique_1166","A computed property name in a class property declaration must have a simple literal type or a 'unique symbol' type."),A_computed_property_name_in_a_method_overload_must_refer_to_an_expression_whose_type_is_a_literal_type_or_a_unique_symbol_type:ca(1168,1,"A_computed_property_name_in_a_method_overload_must_refer_to_an_expression_whose_type_is_a_literal_ty_1168","A computed property name in a method overload must refer to an expression whose type is a literal type or a 'unique symbol' type."),A_computed_property_name_in_an_interface_must_refer_to_an_expression_whose_type_is_a_literal_type_or_a_unique_symbol_type:ca(1169,1,"A_computed_property_name_in_an_interface_must_refer_to_an_expression_whose_type_is_a_literal_type_or_1169","A computed property name in an interface must refer to an expression whose type is a literal type or a 'unique symbol' type."),A_computed_property_name_in_a_type_literal_must_refer_to_an_expression_whose_type_is_a_literal_type_or_a_unique_symbol_type:ca(1170,1,"A_computed_property_name_in_a_type_literal_must_refer_to_an_expression_whose_type_is_a_literal_type__1170","A computed property name in a type literal must refer to an expression whose type is a literal type or a 'unique symbol' type."),A_comma_expression_is_not_allowed_in_a_computed_property_name:ca(1171,1,"A_comma_expression_is_not_allowed_in_a_computed_property_name_1171","A comma expression is not allowed in a computed property name."),extends_clause_already_seen:ca(1172,1,"extends_clause_already_seen_1172","'extends' clause already seen."),extends_clause_must_precede_implements_clause:ca(1173,1,"extends_clause_must_precede_implements_clause_1173","'extends' clause must precede 'implements' clause."),Classes_can_only_extend_a_single_class:ca(1174,1,"Classes_can_only_extend_a_single_class_1174","Classes can only extend a single class."),implements_clause_already_seen:ca(1175,1,"implements_clause_already_seen_1175","'implements' clause already seen."),Interface_declaration_cannot_have_implements_clause:ca(1176,1,"Interface_declaration_cannot_have_implements_clause_1176","Interface declaration cannot have 'implements' clause."),Binary_digit_expected:ca(1177,1,"Binary_digit_expected_1177","Binary digit expected."),Octal_digit_expected:ca(1178,1,"Octal_digit_expected_1178","Octal digit expected."),Unexpected_token_expected:ca(1179,1,"Unexpected_token_expected_1179","Unexpected token. '{' expected."),Property_destructuring_pattern_expected:ca(1180,1,"Property_destructuring_pattern_expected_1180","Property destructuring pattern expected."),Array_element_destructuring_pattern_expected:ca(1181,1,"Array_element_destructuring_pattern_expected_1181","Array element destructuring pattern expected."),A_destructuring_declaration_must_have_an_initializer:ca(1182,1,"A_destructuring_declaration_must_have_an_initializer_1182","A destructuring declaration must have an initializer."),An_implementation_cannot_be_declared_in_ambient_contexts:ca(1183,1,"An_implementation_cannot_be_declared_in_ambient_contexts_1183","An implementation cannot be declared in ambient contexts."),Modifiers_cannot_appear_here:ca(1184,1,"Modifiers_cannot_appear_here_1184","Modifiers cannot appear here."),Merge_conflict_marker_encountered:ca(1185,1,"Merge_conflict_marker_encountered_1185","Merge conflict marker encountered."),A_rest_element_cannot_have_an_initializer:ca(1186,1,"A_rest_element_cannot_have_an_initializer_1186","A rest element cannot have an initializer."),A_parameter_property_may_not_be_declared_using_a_binding_pattern:ca(1187,1,"A_parameter_property_may_not_be_declared_using_a_binding_pattern_1187","A parameter property may not be declared using a binding pattern."),Only_a_single_variable_declaration_is_allowed_in_a_for_of_statement:ca(1188,1,"Only_a_single_variable_declaration_is_allowed_in_a_for_of_statement_1188","Only a single variable declaration is allowed in a 'for...of' statement."),The_variable_declaration_of_a_for_in_statement_cannot_have_an_initializer:ca(1189,1,"The_variable_declaration_of_a_for_in_statement_cannot_have_an_initializer_1189","The variable declaration of a 'for...in' statement cannot have an initializer."),The_variable_declaration_of_a_for_of_statement_cannot_have_an_initializer:ca(1190,1,"The_variable_declaration_of_a_for_of_statement_cannot_have_an_initializer_1190","The variable declaration of a 'for...of' statement cannot have an initializer."),An_import_declaration_cannot_have_modifiers:ca(1191,1,"An_import_declaration_cannot_have_modifiers_1191","An import declaration cannot have modifiers."),Module_0_has_no_default_export:ca(1192,1,"Module_0_has_no_default_export_1192","Module '{0}' has no default export."),An_export_declaration_cannot_have_modifiers:ca(1193,1,"An_export_declaration_cannot_have_modifiers_1193","An export declaration cannot have modifiers."),Export_declarations_are_not_permitted_in_a_namespace:ca(1194,1,"Export_declarations_are_not_permitted_in_a_namespace_1194","Export declarations are not permitted in a namespace."),export_Asterisk_does_not_re_export_a_default:ca(1195,1,"export_Asterisk_does_not_re_export_a_default_1195","'export *' does not re-export a default."),Catch_clause_variable_type_annotation_must_be_any_or_unknown_if_specified:ca(1196,1,"Catch_clause_variable_type_annotation_must_be_any_or_unknown_if_specified_1196","Catch clause variable type annotation must be 'any' or 'unknown' if specified."),Catch_clause_variable_cannot_have_an_initializer:ca(1197,1,"Catch_clause_variable_cannot_have_an_initializer_1197","Catch clause variable cannot have an initializer."),An_extended_Unicode_escape_value_must_be_between_0x0_and_0x10FFFF_inclusive:ca(1198,1,"An_extended_Unicode_escape_value_must_be_between_0x0_and_0x10FFFF_inclusive_1198","An extended Unicode escape value must be between 0x0 and 0x10FFFF inclusive."),Unterminated_Unicode_escape_sequence:ca(1199,1,"Unterminated_Unicode_escape_sequence_1199","Unterminated Unicode escape sequence."),Line_terminator_not_permitted_before_arrow:ca(1200,1,"Line_terminator_not_permitted_before_arrow_1200","Line terminator not permitted before arrow."),Import_assignment_cannot_be_used_when_targeting_ECMAScript_modules_Consider_using_import_Asterisk_as_ns_from_mod_import_a_from_mod_import_d_from_mod_or_another_module_format_instead:ca(1202,1,"Import_assignment_cannot_be_used_when_targeting_ECMAScript_modules_Consider_using_import_Asterisk_as_1202","Import assignment cannot be used when targeting ECMAScript modules. Consider using 'import * as ns from \"mod\"', 'import {a} from \"mod\"', 'import d from \"mod\"', or another module format instead."),Export_assignment_cannot_be_used_when_targeting_ECMAScript_modules_Consider_using_export_default_or_another_module_format_instead:ca(1203,1,"Export_assignment_cannot_be_used_when_targeting_ECMAScript_modules_Consider_using_export_default_or__1203","Export assignment cannot be used when targeting ECMAScript modules. Consider using 'export default' or another module format instead."),Re_exporting_a_type_when_0_is_enabled_requires_using_export_type:ca(1205,1,"Re_exporting_a_type_when_0_is_enabled_requires_using_export_type_1205","Re-exporting a type when '{0}' is enabled requires using 'export type'."),Decorators_are_not_valid_here:ca(1206,1,"Decorators_are_not_valid_here_1206","Decorators are not valid here."),Decorators_cannot_be_applied_to_multiple_get_Slashset_accessors_of_the_same_name:ca(1207,1,"Decorators_cannot_be_applied_to_multiple_get_Slashset_accessors_of_the_same_name_1207","Decorators cannot be applied to multiple get/set accessors of the same name."),Invalid_optional_chain_from_new_expression_Did_you_mean_to_call_0:ca(1209,1,"Invalid_optional_chain_from_new_expression_Did_you_mean_to_call_0_1209","Invalid optional chain from new expression. Did you mean to call '{0}()'?"),Code_contained_in_a_class_is_evaluated_in_JavaScript_s_strict_mode_which_does_not_allow_this_use_of_0_For_more_information_see_https_Colon_Slash_Slashdeveloper_mozilla_org_Slashen_US_Slashdocs_SlashWeb_SlashJavaScript_SlashReference_SlashStrict_mode:ca(1210,1,"Code_contained_in_a_class_is_evaluated_in_JavaScript_s_strict_mode_which_does_not_allow_this_use_of__1210","Code contained in a class is evaluated in JavaScript's strict mode which does not allow this use of '{0}'. For more information, see https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Strict_mode."),A_class_declaration_without_the_default_modifier_must_have_a_name:ca(1211,1,"A_class_declaration_without_the_default_modifier_must_have_a_name_1211","A class declaration without the 'default' modifier must have a name."),Identifier_expected_0_is_a_reserved_word_in_strict_mode:ca(1212,1,"Identifier_expected_0_is_a_reserved_word_in_strict_mode_1212","Identifier expected. '{0}' is a reserved word in strict mode."),Identifier_expected_0_is_a_reserved_word_in_strict_mode_Class_definitions_are_automatically_in_strict_mode:ca(1213,1,"Identifier_expected_0_is_a_reserved_word_in_strict_mode_Class_definitions_are_automatically_in_stric_1213","Identifier expected. '{0}' is a reserved word in strict mode. Class definitions are automatically in strict mode."),Identifier_expected_0_is_a_reserved_word_in_strict_mode_Modules_are_automatically_in_strict_mode:ca(1214,1,"Identifier_expected_0_is_a_reserved_word_in_strict_mode_Modules_are_automatically_in_strict_mode_1214","Identifier expected. '{0}' is a reserved word in strict mode. Modules are automatically in strict mode."),Invalid_use_of_0_Modules_are_automatically_in_strict_mode:ca(1215,1,"Invalid_use_of_0_Modules_are_automatically_in_strict_mode_1215","Invalid use of '{0}'. Modules are automatically in strict mode."),Identifier_expected_esModule_is_reserved_as_an_exported_marker_when_transforming_ECMAScript_modules:ca(1216,1,"Identifier_expected_esModule_is_reserved_as_an_exported_marker_when_transforming_ECMAScript_modules_1216","Identifier expected. '__esModule' is reserved as an exported marker when transforming ECMAScript modules."),Export_assignment_is_not_supported_when_module_flag_is_system:ca(1218,1,"Export_assignment_is_not_supported_when_module_flag_is_system_1218","Export assignment is not supported when '--module' flag is 'system'."),Generators_are_not_allowed_in_an_ambient_context:ca(1221,1,"Generators_are_not_allowed_in_an_ambient_context_1221","Generators are not allowed in an ambient context."),An_overload_signature_cannot_be_declared_as_a_generator:ca(1222,1,"An_overload_signature_cannot_be_declared_as_a_generator_1222","An overload signature cannot be declared as a generator."),_0_tag_already_specified:ca(1223,1,"_0_tag_already_specified_1223","'{0}' tag already specified."),Signature_0_must_be_a_type_predicate:ca(1224,1,"Signature_0_must_be_a_type_predicate_1224","Signature '{0}' must be a type predicate."),Cannot_find_parameter_0:ca(1225,1,"Cannot_find_parameter_0_1225","Cannot find parameter '{0}'."),Type_predicate_0_is_not_assignable_to_1:ca(1226,1,"Type_predicate_0_is_not_assignable_to_1_1226","Type predicate '{0}' is not assignable to '{1}'."),Parameter_0_is_not_in_the_same_position_as_parameter_1:ca(1227,1,"Parameter_0_is_not_in_the_same_position_as_parameter_1_1227","Parameter '{0}' is not in the same position as parameter '{1}'."),A_type_predicate_is_only_allowed_in_return_type_position_for_functions_and_methods:ca(1228,1,"A_type_predicate_is_only_allowed_in_return_type_position_for_functions_and_methods_1228","A type predicate is only allowed in return type position for functions and methods."),A_type_predicate_cannot_reference_a_rest_parameter:ca(1229,1,"A_type_predicate_cannot_reference_a_rest_parameter_1229","A type predicate cannot reference a rest parameter."),A_type_predicate_cannot_reference_element_0_in_a_binding_pattern:ca(1230,1,"A_type_predicate_cannot_reference_element_0_in_a_binding_pattern_1230","A type predicate cannot reference element '{0}' in a binding pattern."),An_export_assignment_must_be_at_the_top_level_of_a_file_or_module_declaration:ca(1231,1,"An_export_assignment_must_be_at_the_top_level_of_a_file_or_module_declaration_1231","An export assignment must be at the top level of a file or module declaration."),An_import_declaration_can_only_be_used_at_the_top_level_of_a_namespace_or_module:ca(1232,1,"An_import_declaration_can_only_be_used_at_the_top_level_of_a_namespace_or_module_1232","An import declaration can only be used at the top level of a namespace or module."),An_export_declaration_can_only_be_used_at_the_top_level_of_a_namespace_or_module:ca(1233,1,"An_export_declaration_can_only_be_used_at_the_top_level_of_a_namespace_or_module_1233","An export declaration can only be used at the top level of a namespace or module."),An_ambient_module_declaration_is_only_allowed_at_the_top_level_in_a_file:ca(1234,1,"An_ambient_module_declaration_is_only_allowed_at_the_top_level_in_a_file_1234","An ambient module declaration is only allowed at the top level in a file."),A_namespace_declaration_is_only_allowed_at_the_top_level_of_a_namespace_or_module:ca(1235,1,"A_namespace_declaration_is_only_allowed_at_the_top_level_of_a_namespace_or_module_1235","A namespace declaration is only allowed at the top level of a namespace or module."),The_return_type_of_a_property_decorator_function_must_be_either_void_or_any:ca(1236,1,"The_return_type_of_a_property_decorator_function_must_be_either_void_or_any_1236","The return type of a property decorator function must be either 'void' or 'any'."),The_return_type_of_a_parameter_decorator_function_must_be_either_void_or_any:ca(1237,1,"The_return_type_of_a_parameter_decorator_function_must_be_either_void_or_any_1237","The return type of a parameter decorator function must be either 'void' or 'any'."),Unable_to_resolve_signature_of_class_decorator_when_called_as_an_expression:ca(1238,1,"Unable_to_resolve_signature_of_class_decorator_when_called_as_an_expression_1238","Unable to resolve signature of class decorator when called as an expression."),Unable_to_resolve_signature_of_parameter_decorator_when_called_as_an_expression:ca(1239,1,"Unable_to_resolve_signature_of_parameter_decorator_when_called_as_an_expression_1239","Unable to resolve signature of parameter decorator when called as an expression."),Unable_to_resolve_signature_of_property_decorator_when_called_as_an_expression:ca(1240,1,"Unable_to_resolve_signature_of_property_decorator_when_called_as_an_expression_1240","Unable to resolve signature of property decorator when called as an expression."),Unable_to_resolve_signature_of_method_decorator_when_called_as_an_expression:ca(1241,1,"Unable_to_resolve_signature_of_method_decorator_when_called_as_an_expression_1241","Unable to resolve signature of method decorator when called as an expression."),abstract_modifier_can_only_appear_on_a_class_method_or_property_declaration:ca(1242,1,"abstract_modifier_can_only_appear_on_a_class_method_or_property_declaration_1242","'abstract' modifier can only appear on a class, method, or property declaration."),_0_modifier_cannot_be_used_with_1_modifier:ca(1243,1,"_0_modifier_cannot_be_used_with_1_modifier_1243","'{0}' modifier cannot be used with '{1}' modifier."),Abstract_methods_can_only_appear_within_an_abstract_class:ca(1244,1,"Abstract_methods_can_only_appear_within_an_abstract_class_1244","Abstract methods can only appear within an abstract class."),Method_0_cannot_have_an_implementation_because_it_is_marked_abstract:ca(1245,1,"Method_0_cannot_have_an_implementation_because_it_is_marked_abstract_1245","Method '{0}' cannot have an implementation because it is marked abstract."),An_interface_property_cannot_have_an_initializer:ca(1246,1,"An_interface_property_cannot_have_an_initializer_1246","An interface property cannot have an initializer."),A_type_literal_property_cannot_have_an_initializer:ca(1247,1,"A_type_literal_property_cannot_have_an_initializer_1247","A type literal property cannot have an initializer."),A_class_member_cannot_have_the_0_keyword:ca(1248,1,"A_class_member_cannot_have_the_0_keyword_1248","A class member cannot have the '{0}' keyword."),A_decorator_can_only_decorate_a_method_implementation_not_an_overload:ca(1249,1,"A_decorator_can_only_decorate_a_method_implementation_not_an_overload_1249","A decorator can only decorate a method implementation, not an overload."),Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES5:ca(1250,1,"Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES5_1250","Function declarations are not allowed inside blocks in strict mode when targeting 'ES5'."),Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES5_Class_definitions_are_automatically_in_strict_mode:ca(1251,1,"Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES5_Class_definiti_1251","Function declarations are not allowed inside blocks in strict mode when targeting 'ES5'. Class definitions are automatically in strict mode."),Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES5_Modules_are_automatically_in_strict_mode:ca(1252,1,"Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES5_Modules_are_au_1252","Function declarations are not allowed inside blocks in strict mode when targeting 'ES5'. Modules are automatically in strict mode."),Abstract_properties_can_only_appear_within_an_abstract_class:ca(1253,1,"Abstract_properties_can_only_appear_within_an_abstract_class_1253","Abstract properties can only appear within an abstract class."),A_const_initializer_in_an_ambient_context_must_be_a_string_or_numeric_literal_or_literal_enum_reference:ca(1254,1,"A_const_initializer_in_an_ambient_context_must_be_a_string_or_numeric_literal_or_literal_enum_refere_1254","A 'const' initializer in an ambient context must be a string or numeric literal or literal enum reference."),A_definite_assignment_assertion_is_not_permitted_in_this_context:ca(1255,1,"A_definite_assignment_assertion_is_not_permitted_in_this_context_1255","A definite assignment assertion '!' is not permitted in this context."),A_required_element_cannot_follow_an_optional_element:ca(1257,1,"A_required_element_cannot_follow_an_optional_element_1257","A required element cannot follow an optional element."),A_default_export_must_be_at_the_top_level_of_a_file_or_module_declaration:ca(1258,1,"A_default_export_must_be_at_the_top_level_of_a_file_or_module_declaration_1258","A default export must be at the top level of a file or module declaration."),Module_0_can_only_be_default_imported_using_the_1_flag:ca(1259,1,"Module_0_can_only_be_default_imported_using_the_1_flag_1259","Module '{0}' can only be default-imported using the '{1}' flag"),Keywords_cannot_contain_escape_characters:ca(1260,1,"Keywords_cannot_contain_escape_characters_1260","Keywords cannot contain escape characters."),Already_included_file_name_0_differs_from_file_name_1_only_in_casing:ca(1261,1,"Already_included_file_name_0_differs_from_file_name_1_only_in_casing_1261","Already included file name '{0}' differs from file name '{1}' only in casing."),Identifier_expected_0_is_a_reserved_word_at_the_top_level_of_a_module:ca(1262,1,"Identifier_expected_0_is_a_reserved_word_at_the_top_level_of_a_module_1262","Identifier expected. '{0}' is a reserved word at the top-level of a module."),Declarations_with_initializers_cannot_also_have_definite_assignment_assertions:ca(1263,1,"Declarations_with_initializers_cannot_also_have_definite_assignment_assertions_1263","Declarations with initializers cannot also have definite assignment assertions."),Declarations_with_definite_assignment_assertions_must_also_have_type_annotations:ca(1264,1,"Declarations_with_definite_assignment_assertions_must_also_have_type_annotations_1264","Declarations with definite assignment assertions must also have type annotations."),A_rest_element_cannot_follow_another_rest_element:ca(1265,1,"A_rest_element_cannot_follow_another_rest_element_1265","A rest element cannot follow another rest element."),An_optional_element_cannot_follow_a_rest_element:ca(1266,1,"An_optional_element_cannot_follow_a_rest_element_1266","An optional element cannot follow a rest element."),Property_0_cannot_have_an_initializer_because_it_is_marked_abstract:ca(1267,1,"Property_0_cannot_have_an_initializer_because_it_is_marked_abstract_1267","Property '{0}' cannot have an initializer because it is marked abstract."),An_index_signature_parameter_type_must_be_string_number_symbol_or_a_template_literal_type:ca(1268,1,"An_index_signature_parameter_type_must_be_string_number_symbol_or_a_template_literal_type_1268","An index signature parameter type must be 'string', 'number', 'symbol', or a template literal type."),Cannot_use_export_import_on_a_type_or_type_only_namespace_when_0_is_enabled:ca(1269,1,"Cannot_use_export_import_on_a_type_or_type_only_namespace_when_0_is_enabled_1269","Cannot use 'export import' on a type or type-only namespace when '{0}' is enabled."),Decorator_function_return_type_0_is_not_assignable_to_type_1:ca(1270,1,"Decorator_function_return_type_0_is_not_assignable_to_type_1_1270","Decorator function return type '{0}' is not assignable to type '{1}'."),Decorator_function_return_type_is_0_but_is_expected_to_be_void_or_any:ca(1271,1,"Decorator_function_return_type_is_0_but_is_expected_to_be_void_or_any_1271","Decorator function return type is '{0}' but is expected to be 'void' or 'any'."),A_type_referenced_in_a_decorated_signature_must_be_imported_with_import_type_or_a_namespace_import_when_isolatedModules_and_emitDecoratorMetadata_are_enabled:ca(1272,1,"A_type_referenced_in_a_decorated_signature_must_be_imported_with_import_type_or_a_namespace_import_w_1272","A type referenced in a decorated signature must be imported with 'import type' or a namespace import when 'isolatedModules' and 'emitDecoratorMetadata' are enabled."),_0_modifier_cannot_appear_on_a_type_parameter:ca(1273,1,"_0_modifier_cannot_appear_on_a_type_parameter_1273","'{0}' modifier cannot appear on a type parameter"),_0_modifier_can_only_appear_on_a_type_parameter_of_a_class_interface_or_type_alias:ca(1274,1,"_0_modifier_can_only_appear_on_a_type_parameter_of_a_class_interface_or_type_alias_1274","'{0}' modifier can only appear on a type parameter of a class, interface or type alias"),accessor_modifier_can_only_appear_on_a_property_declaration:ca(1275,1,"accessor_modifier_can_only_appear_on_a_property_declaration_1275","'accessor' modifier can only appear on a property declaration."),An_accessor_property_cannot_be_declared_optional:ca(1276,1,"An_accessor_property_cannot_be_declared_optional_1276","An 'accessor' property cannot be declared optional."),_0_modifier_can_only_appear_on_a_type_parameter_of_a_function_method_or_class:ca(1277,1,"_0_modifier_can_only_appear_on_a_type_parameter_of_a_function_method_or_class_1277","'{0}' modifier can only appear on a type parameter of a function, method or class"),The_runtime_will_invoke_the_decorator_with_1_arguments_but_the_decorator_expects_0:ca(1278,1,"The_runtime_will_invoke_the_decorator_with_1_arguments_but_the_decorator_expects_0_1278","The runtime will invoke the decorator with {1} arguments, but the decorator expects {0}."),The_runtime_will_invoke_the_decorator_with_1_arguments_but_the_decorator_expects_at_least_0:ca(1279,1,"The_runtime_will_invoke_the_decorator_with_1_arguments_but_the_decorator_expects_at_least_0_1279","The runtime will invoke the decorator with {1} arguments, but the decorator expects at least {0}."),Namespaces_are_not_allowed_in_global_script_files_when_0_is_enabled_If_this_file_is_not_intended_to_be_a_global_script_set_moduleDetection_to_force_or_add_an_empty_export_statement:ca(1280,1,"Namespaces_are_not_allowed_in_global_script_files_when_0_is_enabled_If_this_file_is_not_intended_to__1280","Namespaces are not allowed in global script files when '{0}' is enabled. If this file is not intended to be a global script, set 'moduleDetection' to 'force' or add an empty 'export {}' statement."),Cannot_access_0_from_another_file_without_qualification_when_1_is_enabled_Use_2_instead:ca(1281,1,"Cannot_access_0_from_another_file_without_qualification_when_1_is_enabled_Use_2_instead_1281","Cannot access '{0}' from another file without qualification when '{1}' is enabled. Use '{2}' instead."),An_export_declaration_must_reference_a_value_when_verbatimModuleSyntax_is_enabled_but_0_only_refers_to_a_type:ca(1282,1,"An_export_declaration_must_reference_a_value_when_verbatimModuleSyntax_is_enabled_but_0_only_refers__1282","An 'export =' declaration must reference a value when 'verbatimModuleSyntax' is enabled, but '{0}' only refers to a type."),An_export_declaration_must_reference_a_real_value_when_verbatimModuleSyntax_is_enabled_but_0_resolves_to_a_type_only_declaration:ca(1283,1,"An_export_declaration_must_reference_a_real_value_when_verbatimModuleSyntax_is_enabled_but_0_resolve_1283","An 'export =' declaration must reference a real value when 'verbatimModuleSyntax' is enabled, but '{0}' resolves to a type-only declaration."),An_export_default_must_reference_a_value_when_verbatimModuleSyntax_is_enabled_but_0_only_refers_to_a_type:ca(1284,1,"An_export_default_must_reference_a_value_when_verbatimModuleSyntax_is_enabled_but_0_only_refers_to_a_1284","An 'export default' must reference a value when 'verbatimModuleSyntax' is enabled, but '{0}' only refers to a type."),An_export_default_must_reference_a_real_value_when_verbatimModuleSyntax_is_enabled_but_0_resolves_to_a_type_only_declaration:ca(1285,1,"An_export_default_must_reference_a_real_value_when_verbatimModuleSyntax_is_enabled_but_0_resolves_to_1285","An 'export default' must reference a real value when 'verbatimModuleSyntax' is enabled, but '{0}' resolves to a type-only declaration."),ESM_syntax_is_not_allowed_in_a_CommonJS_module_when_verbatimModuleSyntax_is_enabled:ca(1286,1,"ESM_syntax_is_not_allowed_in_a_CommonJS_module_when_verbatimModuleSyntax_is_enabled_1286","ESM syntax is not allowed in a CommonJS module when 'verbatimModuleSyntax' is enabled."),A_top_level_export_modifier_cannot_be_used_on_value_declarations_in_a_CommonJS_module_when_verbatimModuleSyntax_is_enabled:ca(1287,1,"A_top_level_export_modifier_cannot_be_used_on_value_declarations_in_a_CommonJS_module_when_verbatimM_1287","A top-level 'export' modifier cannot be used on value declarations in a CommonJS module when 'verbatimModuleSyntax' is enabled."),An_import_alias_cannot_resolve_to_a_type_or_type_only_declaration_when_verbatimModuleSyntax_is_enabled:ca(1288,1,"An_import_alias_cannot_resolve_to_a_type_or_type_only_declaration_when_verbatimModuleSyntax_is_enabl_1288","An import alias cannot resolve to a type or type-only declaration when 'verbatimModuleSyntax' is enabled."),_0_resolves_to_a_type_only_declaration_and_must_be_marked_type_only_in_this_file_before_re_exporting_when_1_is_enabled_Consider_using_import_type_where_0_is_imported:ca(1289,1,"_0_resolves_to_a_type_only_declaration_and_must_be_marked_type_only_in_this_file_before_re_exporting_1289","'{0}' resolves to a type-only declaration and must be marked type-only in this file before re-exporting when '{1}' is enabled. Consider using 'import type' where '{0}' is imported."),_0_resolves_to_a_type_only_declaration_and_must_be_marked_type_only_in_this_file_before_re_exporting_when_1_is_enabled_Consider_using_export_type_0_as_default:ca(1290,1,"_0_resolves_to_a_type_only_declaration_and_must_be_marked_type_only_in_this_file_before_re_exporting_1290","'{0}' resolves to a type-only declaration and must be marked type-only in this file before re-exporting when '{1}' is enabled. Consider using 'export type { {0} as default }'."),_0_resolves_to_a_type_and_must_be_marked_type_only_in_this_file_before_re_exporting_when_1_is_enabled_Consider_using_import_type_where_0_is_imported:ca(1291,1,"_0_resolves_to_a_type_and_must_be_marked_type_only_in_this_file_before_re_exporting_when_1_is_enable_1291","'{0}' resolves to a type and must be marked type-only in this file before re-exporting when '{1}' is enabled. Consider using 'import type' where '{0}' is imported."),_0_resolves_to_a_type_and_must_be_marked_type_only_in_this_file_before_re_exporting_when_1_is_enabled_Consider_using_export_type_0_as_default:ca(1292,1,"_0_resolves_to_a_type_and_must_be_marked_type_only_in_this_file_before_re_exporting_when_1_is_enable_1292","'{0}' resolves to a type and must be marked type-only in this file before re-exporting when '{1}' is enabled. Consider using 'export type { {0} as default }'."),ESM_syntax_is_not_allowed_in_a_CommonJS_module_when_module_is_set_to_preserve:ca(1293,1,"ESM_syntax_is_not_allowed_in_a_CommonJS_module_when_module_is_set_to_preserve_1293","ESM syntax is not allowed in a CommonJS module when 'module' is set to 'preserve'."),with_statements_are_not_allowed_in_an_async_function_block:ca(1300,1,"with_statements_are_not_allowed_in_an_async_function_block_1300","'with' statements are not allowed in an async function block."),await_expressions_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules:ca(1308,1,"await_expressions_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules_1308","'await' expressions are only allowed within async functions and at the top levels of modules."),The_current_file_is_a_CommonJS_module_and_cannot_use_await_at_the_top_level:ca(1309,1,"The_current_file_is_a_CommonJS_module_and_cannot_use_await_at_the_top_level_1309","The current file is a CommonJS module and cannot use 'await' at the top level."),Did_you_mean_to_use_a_Colon_An_can_only_follow_a_property_name_when_the_containing_object_literal_is_part_of_a_destructuring_pattern:ca(1312,1,"Did_you_mean_to_use_a_Colon_An_can_only_follow_a_property_name_when_the_containing_object_literal_is_1312","Did you mean to use a ':'? An '=' can only follow a property name when the containing object literal is part of a destructuring pattern."),The_body_of_an_if_statement_cannot_be_the_empty_statement:ca(1313,1,"The_body_of_an_if_statement_cannot_be_the_empty_statement_1313","The body of an 'if' statement cannot be the empty statement."),Global_module_exports_may_only_appear_in_module_files:ca(1314,1,"Global_module_exports_may_only_appear_in_module_files_1314","Global module exports may only appear in module files."),Global_module_exports_may_only_appear_in_declaration_files:ca(1315,1,"Global_module_exports_may_only_appear_in_declaration_files_1315","Global module exports may only appear in declaration files."),Global_module_exports_may_only_appear_at_top_level:ca(1316,1,"Global_module_exports_may_only_appear_at_top_level_1316","Global module exports may only appear at top level."),A_parameter_property_cannot_be_declared_using_a_rest_parameter:ca(1317,1,"A_parameter_property_cannot_be_declared_using_a_rest_parameter_1317","A parameter property cannot be declared using a rest parameter."),An_abstract_accessor_cannot_have_an_implementation:ca(1318,1,"An_abstract_accessor_cannot_have_an_implementation_1318","An abstract accessor cannot have an implementation."),A_default_export_can_only_be_used_in_an_ECMAScript_style_module:ca(1319,1,"A_default_export_can_only_be_used_in_an_ECMAScript_style_module_1319","A default export can only be used in an ECMAScript-style module."),Type_of_await_operand_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member:ca(1320,1,"Type_of_await_operand_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member_1320","Type of 'await' operand must either be a valid promise or must not contain a callable 'then' member."),Type_of_yield_operand_in_an_async_generator_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member:ca(1321,1,"Type_of_yield_operand_in_an_async_generator_must_either_be_a_valid_promise_or_must_not_contain_a_cal_1321","Type of 'yield' operand in an async generator must either be a valid promise or must not contain a callable 'then' member."),Type_of_iterated_elements_of_a_yield_Asterisk_operand_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member:ca(1322,1,"Type_of_iterated_elements_of_a_yield_Asterisk_operand_must_either_be_a_valid_promise_or_must_not_con_1322","Type of iterated elements of a 'yield*' operand must either be a valid promise or must not contain a callable 'then' member."),Dynamic_imports_are_only_supported_when_the_module_flag_is_set_to_es2020_es2022_esnext_commonjs_amd_system_umd_node16_or_nodenext:ca(1323,1,"Dynamic_imports_are_only_supported_when_the_module_flag_is_set_to_es2020_es2022_esnext_commonjs_amd__1323","Dynamic imports are only supported when the '--module' flag is set to 'es2020', 'es2022', 'esnext', 'commonjs', 'amd', 'system', 'umd', 'node16', or 'nodenext'."),Dynamic_imports_only_support_a_second_argument_when_the_module_option_is_set_to_esnext_node16_nodenext_or_preserve:ca(1324,1,"Dynamic_imports_only_support_a_second_argument_when_the_module_option_is_set_to_esnext_node16_nodene_1324","Dynamic imports only support a second argument when the '--module' option is set to 'esnext', 'node16', 'nodenext', or 'preserve'."),Argument_of_dynamic_import_cannot_be_spread_element:ca(1325,1,"Argument_of_dynamic_import_cannot_be_spread_element_1325","Argument of dynamic import cannot be spread element."),This_use_of_import_is_invalid_import_calls_can_be_written_but_they_must_have_parentheses_and_cannot_have_type_arguments:ca(1326,1,"This_use_of_import_is_invalid_import_calls_can_be_written_but_they_must_have_parentheses_and_cannot__1326","This use of 'import' is invalid. 'import()' calls can be written, but they must have parentheses and cannot have type arguments."),String_literal_with_double_quotes_expected:ca(1327,1,"String_literal_with_double_quotes_expected_1327","String literal with double quotes expected."),Property_value_can_only_be_string_literal_numeric_literal_true_false_null_object_literal_or_array_literal:ca(1328,1,"Property_value_can_only_be_string_literal_numeric_literal_true_false_null_object_literal_or_array_li_1328","Property value can only be string literal, numeric literal, 'true', 'false', 'null', object literal or array literal."),_0_accepts_too_few_arguments_to_be_used_as_a_decorator_here_Did_you_mean_to_call_it_first_and_write_0:ca(1329,1,"_0_accepts_too_few_arguments_to_be_used_as_a_decorator_here_Did_you_mean_to_call_it_first_and_write__1329","'{0}' accepts too few arguments to be used as a decorator here. Did you mean to call it first and write '@{0}()'?"),A_property_of_an_interface_or_type_literal_whose_type_is_a_unique_symbol_type_must_be_readonly:ca(1330,1,"A_property_of_an_interface_or_type_literal_whose_type_is_a_unique_symbol_type_must_be_readonly_1330","A property of an interface or type literal whose type is a 'unique symbol' type must be 'readonly'."),A_property_of_a_class_whose_type_is_a_unique_symbol_type_must_be_both_static_and_readonly:ca(1331,1,"A_property_of_a_class_whose_type_is_a_unique_symbol_type_must_be_both_static_and_readonly_1331","A property of a class whose type is a 'unique symbol' type must be both 'static' and 'readonly'."),A_variable_whose_type_is_a_unique_symbol_type_must_be_const:ca(1332,1,"A_variable_whose_type_is_a_unique_symbol_type_must_be_const_1332","A variable whose type is a 'unique symbol' type must be 'const'."),unique_symbol_types_may_not_be_used_on_a_variable_declaration_with_a_binding_name:ca(1333,1,"unique_symbol_types_may_not_be_used_on_a_variable_declaration_with_a_binding_name_1333","'unique symbol' types may not be used on a variable declaration with a binding name."),unique_symbol_types_are_only_allowed_on_variables_in_a_variable_statement:ca(1334,1,"unique_symbol_types_are_only_allowed_on_variables_in_a_variable_statement_1334","'unique symbol' types are only allowed on variables in a variable statement."),unique_symbol_types_are_not_allowed_here:ca(1335,1,"unique_symbol_types_are_not_allowed_here_1335","'unique symbol' types are not allowed here."),An_index_signature_parameter_type_cannot_be_a_literal_type_or_generic_type_Consider_using_a_mapped_object_type_instead:ca(1337,1,"An_index_signature_parameter_type_cannot_be_a_literal_type_or_generic_type_Consider_using_a_mapped_o_1337","An index signature parameter type cannot be a literal type or generic type. Consider using a mapped object type instead."),infer_declarations_are_only_permitted_in_the_extends_clause_of_a_conditional_type:ca(1338,1,"infer_declarations_are_only_permitted_in_the_extends_clause_of_a_conditional_type_1338","'infer' declarations are only permitted in the 'extends' clause of a conditional type."),Module_0_does_not_refer_to_a_value_but_is_used_as_a_value_here:ca(1339,1,"Module_0_does_not_refer_to_a_value_but_is_used_as_a_value_here_1339","Module '{0}' does not refer to a value, but is used as a value here."),Module_0_does_not_refer_to_a_type_but_is_used_as_a_type_here_Did_you_mean_typeof_import_0:ca(1340,1,"Module_0_does_not_refer_to_a_type_but_is_used_as_a_type_here_Did_you_mean_typeof_import_0_1340","Module '{0}' does not refer to a type, but is used as a type here. Did you mean 'typeof import('{0}')'?"),Class_constructor_may_not_be_an_accessor:ca(1341,1,"Class_constructor_may_not_be_an_accessor_1341","Class constructor may not be an accessor."),The_import_meta_meta_property_is_only_allowed_when_the_module_option_is_es2020_es2022_esnext_system_node16_or_nodenext:ca(1343,1,"The_import_meta_meta_property_is_only_allowed_when_the_module_option_is_es2020_es2022_esnext_system__1343","The 'import.meta' meta-property is only allowed when the '--module' option is 'es2020', 'es2022', 'esnext', 'system', 'node16', or 'nodenext'."),A_label_is_not_allowed_here:ca(1344,1,"A_label_is_not_allowed_here_1344","'A label is not allowed here."),An_expression_of_type_void_cannot_be_tested_for_truthiness:ca(1345,1,"An_expression_of_type_void_cannot_be_tested_for_truthiness_1345","An expression of type 'void' cannot be tested for truthiness."),This_parameter_is_not_allowed_with_use_strict_directive:ca(1346,1,"This_parameter_is_not_allowed_with_use_strict_directive_1346","This parameter is not allowed with 'use strict' directive."),use_strict_directive_cannot_be_used_with_non_simple_parameter_list:ca(1347,1,"use_strict_directive_cannot_be_used_with_non_simple_parameter_list_1347","'use strict' directive cannot be used with non-simple parameter list."),Non_simple_parameter_declared_here:ca(1348,1,"Non_simple_parameter_declared_here_1348","Non-simple parameter declared here."),use_strict_directive_used_here:ca(1349,1,"use_strict_directive_used_here_1349","'use strict' directive used here."),Print_the_final_configuration_instead_of_building:ca(1350,3,"Print_the_final_configuration_instead_of_building_1350","Print the final configuration instead of building."),An_identifier_or_keyword_cannot_immediately_follow_a_numeric_literal:ca(1351,1,"An_identifier_or_keyword_cannot_immediately_follow_a_numeric_literal_1351","An identifier or keyword cannot immediately follow a numeric literal."),A_bigint_literal_cannot_use_exponential_notation:ca(1352,1,"A_bigint_literal_cannot_use_exponential_notation_1352","A bigint literal cannot use exponential notation."),A_bigint_literal_must_be_an_integer:ca(1353,1,"A_bigint_literal_must_be_an_integer_1353","A bigint literal must be an integer."),readonly_type_modifier_is_only_permitted_on_array_and_tuple_literal_types:ca(1354,1,"readonly_type_modifier_is_only_permitted_on_array_and_tuple_literal_types_1354","'readonly' type modifier is only permitted on array and tuple literal types."),A_const_assertions_can_only_be_applied_to_references_to_enum_members_or_string_number_boolean_array_or_object_literals:ca(1355,1,"A_const_assertions_can_only_be_applied_to_references_to_enum_members_or_string_number_boolean_array__1355","A 'const' assertions can only be applied to references to enum members, or string, number, boolean, array, or object literals."),Did_you_mean_to_mark_this_function_as_async:ca(1356,1,"Did_you_mean_to_mark_this_function_as_async_1356","Did you mean to mark this function as 'async'?"),An_enum_member_name_must_be_followed_by_a_or:ca(1357,1,"An_enum_member_name_must_be_followed_by_a_or_1357","An enum member name must be followed by a ',', '=', or '}'."),Tagged_template_expressions_are_not_permitted_in_an_optional_chain:ca(1358,1,"Tagged_template_expressions_are_not_permitted_in_an_optional_chain_1358","Tagged template expressions are not permitted in an optional chain."),Identifier_expected_0_is_a_reserved_word_that_cannot_be_used_here:ca(1359,1,"Identifier_expected_0_is_a_reserved_word_that_cannot_be_used_here_1359","Identifier expected. '{0}' is a reserved word that cannot be used here."),Type_0_does_not_satisfy_the_expected_type_1:ca(1360,1,"Type_0_does_not_satisfy_the_expected_type_1_1360","Type '{0}' does not satisfy the expected type '{1}'."),_0_cannot_be_used_as_a_value_because_it_was_imported_using_import_type:ca(1361,1,"_0_cannot_be_used_as_a_value_because_it_was_imported_using_import_type_1361","'{0}' cannot be used as a value because it was imported using 'import type'."),_0_cannot_be_used_as_a_value_because_it_was_exported_using_export_type:ca(1362,1,"_0_cannot_be_used_as_a_value_because_it_was_exported_using_export_type_1362","'{0}' cannot be used as a value because it was exported using 'export type'."),A_type_only_import_can_specify_a_default_import_or_named_bindings_but_not_both:ca(1363,1,"A_type_only_import_can_specify_a_default_import_or_named_bindings_but_not_both_1363","A type-only import can specify a default import or named bindings, but not both."),Convert_to_type_only_export:ca(1364,3,"Convert_to_type_only_export_1364","Convert to type-only export"),Convert_all_re_exported_types_to_type_only_exports:ca(1365,3,"Convert_all_re_exported_types_to_type_only_exports_1365","Convert all re-exported types to type-only exports"),Split_into_two_separate_import_declarations:ca(1366,3,"Split_into_two_separate_import_declarations_1366","Split into two separate import declarations"),Split_all_invalid_type_only_imports:ca(1367,3,"Split_all_invalid_type_only_imports_1367","Split all invalid type-only imports"),Class_constructor_may_not_be_a_generator:ca(1368,1,"Class_constructor_may_not_be_a_generator_1368","Class constructor may not be a generator."),Did_you_mean_0:ca(1369,3,"Did_you_mean_0_1369","Did you mean '{0}'?"),await_expressions_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_this_file_has_no_imports_or_exports_Consider_adding_an_empty_export_to_make_this_file_a_module:ca(1375,1,"await_expressions_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_this_fi_1375","'await' expressions are only allowed at the top level of a file when that file is a module, but this file has no imports or exports. Consider adding an empty 'export {}' to make this file a module."),_0_was_imported_here:ca(1376,3,"_0_was_imported_here_1376","'{0}' was imported here."),_0_was_exported_here:ca(1377,3,"_0_was_exported_here_1377","'{0}' was exported here."),Top_level_await_expressions_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_node16_nodenext_or_preserve_and_the_target_option_is_set_to_es2017_or_higher:ca(1378,1,"Top_level_await_expressions_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_n_1378","Top-level 'await' expressions are only allowed when the 'module' option is set to 'es2022', 'esnext', 'system', 'node16', 'nodenext', or 'preserve', and the 'target' option is set to 'es2017' or higher."),An_import_alias_cannot_reference_a_declaration_that_was_exported_using_export_type:ca(1379,1,"An_import_alias_cannot_reference_a_declaration_that_was_exported_using_export_type_1379","An import alias cannot reference a declaration that was exported using 'export type'."),An_import_alias_cannot_reference_a_declaration_that_was_imported_using_import_type:ca(1380,1,"An_import_alias_cannot_reference_a_declaration_that_was_imported_using_import_type_1380","An import alias cannot reference a declaration that was imported using 'import type'."),Unexpected_token_Did_you_mean_or_rbrace:ca(1381,1,"Unexpected_token_Did_you_mean_or_rbrace_1381","Unexpected token. Did you mean `{'}'}` or `}`?"),Unexpected_token_Did_you_mean_or_gt:ca(1382,1,"Unexpected_token_Did_you_mean_or_gt_1382","Unexpected token. Did you mean `{'>'}` or `>`?"),Function_type_notation_must_be_parenthesized_when_used_in_a_union_type:ca(1385,1,"Function_type_notation_must_be_parenthesized_when_used_in_a_union_type_1385","Function type notation must be parenthesized when used in a union type."),Constructor_type_notation_must_be_parenthesized_when_used_in_a_union_type:ca(1386,1,"Constructor_type_notation_must_be_parenthesized_when_used_in_a_union_type_1386","Constructor type notation must be parenthesized when used in a union type."),Function_type_notation_must_be_parenthesized_when_used_in_an_intersection_type:ca(1387,1,"Function_type_notation_must_be_parenthesized_when_used_in_an_intersection_type_1387","Function type notation must be parenthesized when used in an intersection type."),Constructor_type_notation_must_be_parenthesized_when_used_in_an_intersection_type:ca(1388,1,"Constructor_type_notation_must_be_parenthesized_when_used_in_an_intersection_type_1388","Constructor type notation must be parenthesized when used in an intersection type."),_0_is_not_allowed_as_a_variable_declaration_name:ca(1389,1,"_0_is_not_allowed_as_a_variable_declaration_name_1389","'{0}' is not allowed as a variable declaration name."),_0_is_not_allowed_as_a_parameter_name:ca(1390,1,"_0_is_not_allowed_as_a_parameter_name_1390","'{0}' is not allowed as a parameter name."),An_import_alias_cannot_use_import_type:ca(1392,1,"An_import_alias_cannot_use_import_type_1392","An import alias cannot use 'import type'"),Imported_via_0_from_file_1:ca(1393,3,"Imported_via_0_from_file_1_1393","Imported via {0} from file '{1}'"),Imported_via_0_from_file_1_with_packageId_2:ca(1394,3,"Imported_via_0_from_file_1_with_packageId_2_1394","Imported via {0} from file '{1}' with packageId '{2}'"),Imported_via_0_from_file_1_to_import_importHelpers_as_specified_in_compilerOptions:ca(1395,3,"Imported_via_0_from_file_1_to_import_importHelpers_as_specified_in_compilerOptions_1395","Imported via {0} from file '{1}' to import 'importHelpers' as specified in compilerOptions"),Imported_via_0_from_file_1_with_packageId_2_to_import_importHelpers_as_specified_in_compilerOptions:ca(1396,3,"Imported_via_0_from_file_1_with_packageId_2_to_import_importHelpers_as_specified_in_compilerOptions_1396","Imported via {0} from file '{1}' with packageId '{2}' to import 'importHelpers' as specified in compilerOptions"),Imported_via_0_from_file_1_to_import_jsx_and_jsxs_factory_functions:ca(1397,3,"Imported_via_0_from_file_1_to_import_jsx_and_jsxs_factory_functions_1397","Imported via {0} from file '{1}' to import 'jsx' and 'jsxs' factory functions"),Imported_via_0_from_file_1_with_packageId_2_to_import_jsx_and_jsxs_factory_functions:ca(1398,3,"Imported_via_0_from_file_1_with_packageId_2_to_import_jsx_and_jsxs_factory_functions_1398","Imported via {0} from file '{1}' with packageId '{2}' to import 'jsx' and 'jsxs' factory functions"),File_is_included_via_import_here:ca(1399,3,"File_is_included_via_import_here_1399","File is included via import here."),Referenced_via_0_from_file_1:ca(1400,3,"Referenced_via_0_from_file_1_1400","Referenced via '{0}' from file '{1}'"),File_is_included_via_reference_here:ca(1401,3,"File_is_included_via_reference_here_1401","File is included via reference here."),Type_library_referenced_via_0_from_file_1:ca(1402,3,"Type_library_referenced_via_0_from_file_1_1402","Type library referenced via '{0}' from file '{1}'"),Type_library_referenced_via_0_from_file_1_with_packageId_2:ca(1403,3,"Type_library_referenced_via_0_from_file_1_with_packageId_2_1403","Type library referenced via '{0}' from file '{1}' with packageId '{2}'"),File_is_included_via_type_library_reference_here:ca(1404,3,"File_is_included_via_type_library_reference_here_1404","File is included via type library reference here."),Library_referenced_via_0_from_file_1:ca(1405,3,"Library_referenced_via_0_from_file_1_1405","Library referenced via '{0}' from file '{1}'"),File_is_included_via_library_reference_here:ca(1406,3,"File_is_included_via_library_reference_here_1406","File is included via library reference here."),Matched_by_include_pattern_0_in_1:ca(1407,3,"Matched_by_include_pattern_0_in_1_1407","Matched by include pattern '{0}' in '{1}'"),File_is_matched_by_include_pattern_specified_here:ca(1408,3,"File_is_matched_by_include_pattern_specified_here_1408","File is matched by include pattern specified here."),Part_of_files_list_in_tsconfig_json:ca(1409,3,"Part_of_files_list_in_tsconfig_json_1409","Part of 'files' list in tsconfig.json"),File_is_matched_by_files_list_specified_here:ca(1410,3,"File_is_matched_by_files_list_specified_here_1410","File is matched by 'files' list specified here."),Output_from_referenced_project_0_included_because_1_specified:ca(1411,3,"Output_from_referenced_project_0_included_because_1_specified_1411","Output from referenced project '{0}' included because '{1}' specified"),Output_from_referenced_project_0_included_because_module_is_specified_as_none:ca(1412,3,"Output_from_referenced_project_0_included_because_module_is_specified_as_none_1412","Output from referenced project '{0}' included because '--module' is specified as 'none'"),File_is_output_from_referenced_project_specified_here:ca(1413,3,"File_is_output_from_referenced_project_specified_here_1413","File is output from referenced project specified here."),Source_from_referenced_project_0_included_because_1_specified:ca(1414,3,"Source_from_referenced_project_0_included_because_1_specified_1414","Source from referenced project '{0}' included because '{1}' specified"),Source_from_referenced_project_0_included_because_module_is_specified_as_none:ca(1415,3,"Source_from_referenced_project_0_included_because_module_is_specified_as_none_1415","Source from referenced project '{0}' included because '--module' is specified as 'none'"),File_is_source_from_referenced_project_specified_here:ca(1416,3,"File_is_source_from_referenced_project_specified_here_1416","File is source from referenced project specified here."),Entry_point_of_type_library_0_specified_in_compilerOptions:ca(1417,3,"Entry_point_of_type_library_0_specified_in_compilerOptions_1417","Entry point of type library '{0}' specified in compilerOptions"),Entry_point_of_type_library_0_specified_in_compilerOptions_with_packageId_1:ca(1418,3,"Entry_point_of_type_library_0_specified_in_compilerOptions_with_packageId_1_1418","Entry point of type library '{0}' specified in compilerOptions with packageId '{1}'"),File_is_entry_point_of_type_library_specified_here:ca(1419,3,"File_is_entry_point_of_type_library_specified_here_1419","File is entry point of type library specified here."),Entry_point_for_implicit_type_library_0:ca(1420,3,"Entry_point_for_implicit_type_library_0_1420","Entry point for implicit type library '{0}'"),Entry_point_for_implicit_type_library_0_with_packageId_1:ca(1421,3,"Entry_point_for_implicit_type_library_0_with_packageId_1_1421","Entry point for implicit type library '{0}' with packageId '{1}'"),Library_0_specified_in_compilerOptions:ca(1422,3,"Library_0_specified_in_compilerOptions_1422","Library '{0}' specified in compilerOptions"),File_is_library_specified_here:ca(1423,3,"File_is_library_specified_here_1423","File is library specified here."),Default_library:ca(1424,3,"Default_library_1424","Default library"),Default_library_for_target_0:ca(1425,3,"Default_library_for_target_0_1425","Default library for target '{0}'"),File_is_default_library_for_target_specified_here:ca(1426,3,"File_is_default_library_for_target_specified_here_1426","File is default library for target specified here."),Root_file_specified_for_compilation:ca(1427,3,"Root_file_specified_for_compilation_1427","Root file specified for compilation"),File_is_output_of_project_reference_source_0:ca(1428,3,"File_is_output_of_project_reference_source_0_1428","File is output of project reference source '{0}'"),File_redirects_to_file_0:ca(1429,3,"File_redirects_to_file_0_1429","File redirects to file '{0}'"),The_file_is_in_the_program_because_Colon:ca(1430,3,"The_file_is_in_the_program_because_Colon_1430","The file is in the program because:"),for_await_loops_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_this_file_has_no_imports_or_exports_Consider_adding_an_empty_export_to_make_this_file_a_module:ca(1431,1,"for_await_loops_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_this_file_1431","'for await' loops are only allowed at the top level of a file when that file is a module, but this file has no imports or exports. Consider adding an empty 'export {}' to make this file a module."),Top_level_for_await_loops_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_node16_nodenext_or_preserve_and_the_target_option_is_set_to_es2017_or_higher:ca(1432,1,"Top_level_for_await_loops_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_nod_1432","Top-level 'for await' loops are only allowed when the 'module' option is set to 'es2022', 'esnext', 'system', 'node16', 'nodenext', or 'preserve', and the 'target' option is set to 'es2017' or higher."),Neither_decorators_nor_modifiers_may_be_applied_to_this_parameters:ca(1433,1,"Neither_decorators_nor_modifiers_may_be_applied_to_this_parameters_1433","Neither decorators nor modifiers may be applied to 'this' parameters."),Unexpected_keyword_or_identifier:ca(1434,1,"Unexpected_keyword_or_identifier_1434","Unexpected keyword or identifier."),Unknown_keyword_or_identifier_Did_you_mean_0:ca(1435,1,"Unknown_keyword_or_identifier_Did_you_mean_0_1435","Unknown keyword or identifier. Did you mean '{0}'?"),Decorators_must_precede_the_name_and_all_keywords_of_property_declarations:ca(1436,1,"Decorators_must_precede_the_name_and_all_keywords_of_property_declarations_1436","Decorators must precede the name and all keywords of property declarations."),Namespace_must_be_given_a_name:ca(1437,1,"Namespace_must_be_given_a_name_1437","Namespace must be given a name."),Interface_must_be_given_a_name:ca(1438,1,"Interface_must_be_given_a_name_1438","Interface must be given a name."),Type_alias_must_be_given_a_name:ca(1439,1,"Type_alias_must_be_given_a_name_1439","Type alias must be given a name."),Variable_declaration_not_allowed_at_this_location:ca(1440,1,"Variable_declaration_not_allowed_at_this_location_1440","Variable declaration not allowed at this location."),Cannot_start_a_function_call_in_a_type_annotation:ca(1441,1,"Cannot_start_a_function_call_in_a_type_annotation_1441","Cannot start a function call in a type annotation."),Expected_for_property_initializer:ca(1442,1,"Expected_for_property_initializer_1442","Expected '=' for property initializer."),Module_declaration_names_may_only_use_or_quoted_strings:ca(1443,1,"Module_declaration_names_may_only_use_or_quoted_strings_1443","Module declaration names may only use ' or \" quoted strings."),_0_resolves_to_a_type_only_declaration_and_must_be_re_exported_using_a_type_only_re_export_when_1_is_enabled:ca(1448,1,"_0_resolves_to_a_type_only_declaration_and_must_be_re_exported_using_a_type_only_re_export_when_1_is_1448","'{0}' resolves to a type-only declaration and must be re-exported using a type-only re-export when '{1}' is enabled."),Preserve_unused_imported_values_in_the_JavaScript_output_that_would_otherwise_be_removed:ca(1449,3,"Preserve_unused_imported_values_in_the_JavaScript_output_that_would_otherwise_be_removed_1449","Preserve unused imported values in the JavaScript output that would otherwise be removed."),Dynamic_imports_can_only_accept_a_module_specifier_and_an_optional_set_of_attributes_as_arguments:ca(1450,3,"Dynamic_imports_can_only_accept_a_module_specifier_and_an_optional_set_of_attributes_as_arguments_1450","Dynamic imports can only accept a module specifier and an optional set of attributes as arguments"),Private_identifiers_are_only_allowed_in_class_bodies_and_may_only_be_used_as_part_of_a_class_member_declaration_property_access_or_on_the_left_hand_side_of_an_in_expression:ca(1451,1,"Private_identifiers_are_only_allowed_in_class_bodies_and_may_only_be_used_as_part_of_a_class_member__1451","Private identifiers are only allowed in class bodies and may only be used as part of a class member declaration, property access, or on the left-hand-side of an 'in' expression"),resolution_mode_should_be_either_require_or_import:ca(1453,1,"resolution_mode_should_be_either_require_or_import_1453","`resolution-mode` should be either `require` or `import`."),resolution_mode_can_only_be_set_for_type_only_imports:ca(1454,1,"resolution_mode_can_only_be_set_for_type_only_imports_1454","`resolution-mode` can only be set for type-only imports."),resolution_mode_is_the_only_valid_key_for_type_import_assertions:ca(1455,1,"resolution_mode_is_the_only_valid_key_for_type_import_assertions_1455","`resolution-mode` is the only valid key for type import assertions."),Type_import_assertions_should_have_exactly_one_key_resolution_mode_with_value_import_or_require:ca(1456,1,"Type_import_assertions_should_have_exactly_one_key_resolution_mode_with_value_import_or_require_1456","Type import assertions should have exactly one key - `resolution-mode` - with value `import` or `require`."),Matched_by_default_include_pattern_Asterisk_Asterisk_Slash_Asterisk:ca(1457,3,"Matched_by_default_include_pattern_Asterisk_Asterisk_Slash_Asterisk_1457","Matched by default include pattern '**/*'"),File_is_ECMAScript_module_because_0_has_field_type_with_value_module:ca(1458,3,"File_is_ECMAScript_module_because_0_has_field_type_with_value_module_1458",'File is ECMAScript module because \'{0}\' has field "type" with value "module"'),File_is_CommonJS_module_because_0_has_field_type_whose_value_is_not_module:ca(1459,3,"File_is_CommonJS_module_because_0_has_field_type_whose_value_is_not_module_1459",'File is CommonJS module because \'{0}\' has field "type" whose value is not "module"'),File_is_CommonJS_module_because_0_does_not_have_field_type:ca(1460,3,"File_is_CommonJS_module_because_0_does_not_have_field_type_1460","File is CommonJS module because '{0}' does not have field \"type\""),File_is_CommonJS_module_because_package_json_was_not_found:ca(1461,3,"File_is_CommonJS_module_because_package_json_was_not_found_1461","File is CommonJS module because 'package.json' was not found"),resolution_mode_is_the_only_valid_key_for_type_import_attributes:ca(1463,1,"resolution_mode_is_the_only_valid_key_for_type_import_attributes_1463","'resolution-mode' is the only valid key for type import attributes."),Type_import_attributes_should_have_exactly_one_key_resolution_mode_with_value_import_or_require:ca(1464,1,"Type_import_attributes_should_have_exactly_one_key_resolution_mode_with_value_import_or_require_1464","Type import attributes should have exactly one key - 'resolution-mode' - with value 'import' or 'require'."),The_import_meta_meta_property_is_not_allowed_in_files_which_will_build_into_CommonJS_output:ca(1470,1,"The_import_meta_meta_property_is_not_allowed_in_files_which_will_build_into_CommonJS_output_1470","The 'import.meta' meta-property is not allowed in files which will build into CommonJS output."),Module_0_cannot_be_imported_using_this_construct_The_specifier_only_resolves_to_an_ES_module_which_cannot_be_imported_with_require_Use_an_ECMAScript_import_instead:ca(1471,1,"Module_0_cannot_be_imported_using_this_construct_The_specifier_only_resolves_to_an_ES_module_which_c_1471","Module '{0}' cannot be imported using this construct. The specifier only resolves to an ES module, which cannot be imported with 'require'. Use an ECMAScript import instead."),catch_or_finally_expected:ca(1472,1,"catch_or_finally_expected_1472","'catch' or 'finally' expected."),An_import_declaration_can_only_be_used_at_the_top_level_of_a_module:ca(1473,1,"An_import_declaration_can_only_be_used_at_the_top_level_of_a_module_1473","An import declaration can only be used at the top level of a module."),An_export_declaration_can_only_be_used_at_the_top_level_of_a_module:ca(1474,1,"An_export_declaration_can_only_be_used_at_the_top_level_of_a_module_1474","An export declaration can only be used at the top level of a module."),Control_what_method_is_used_to_detect_module_format_JS_files:ca(1475,3,"Control_what_method_is_used_to_detect_module_format_JS_files_1475","Control what method is used to detect module-format JS files."),auto_Colon_Treat_files_with_imports_exports_import_meta_jsx_with_jsx_Colon_react_jsx_or_esm_format_with_module_Colon_node16_as_modules:ca(1476,3,"auto_Colon_Treat_files_with_imports_exports_import_meta_jsx_with_jsx_Colon_react_jsx_or_esm_format_w_1476",'"auto": Treat files with imports, exports, import.meta, jsx (with jsx: react-jsx), or esm format (with module: node16+) as modules.'),An_instantiation_expression_cannot_be_followed_by_a_property_access:ca(1477,1,"An_instantiation_expression_cannot_be_followed_by_a_property_access_1477","An instantiation expression cannot be followed by a property access."),Identifier_or_string_literal_expected:ca(1478,1,"Identifier_or_string_literal_expected_1478","Identifier or string literal expected."),The_current_file_is_a_CommonJS_module_whose_imports_will_produce_require_calls_however_the_referenced_file_is_an_ECMAScript_module_and_cannot_be_imported_with_require_Consider_writing_a_dynamic_import_0_call_instead:ca(1479,1,"The_current_file_is_a_CommonJS_module_whose_imports_will_produce_require_calls_however_the_reference_1479","The current file is a CommonJS module whose imports will produce 'require' calls; however, the referenced file is an ECMAScript module and cannot be imported with 'require'. Consider writing a dynamic 'import(\"{0}\")' call instead."),To_convert_this_file_to_an_ECMAScript_module_change_its_file_extension_to_0_or_create_a_local_package_json_file_with_type_Colon_module:ca(1480,3,"To_convert_this_file_to_an_ECMAScript_module_change_its_file_extension_to_0_or_create_a_local_packag_1480",'To convert this file to an ECMAScript module, change its file extension to \'{0}\' or create a local package.json file with `{ "type": "module" }`.'),To_convert_this_file_to_an_ECMAScript_module_change_its_file_extension_to_0_or_add_the_field_type_Colon_module_to_1:ca(1481,3,"To_convert_this_file_to_an_ECMAScript_module_change_its_file_extension_to_0_or_add_the_field_type_Co_1481","To convert this file to an ECMAScript module, change its file extension to '{0}', or add the field `\"type\": \"module\"` to '{1}'."),To_convert_this_file_to_an_ECMAScript_module_add_the_field_type_Colon_module_to_0:ca(1482,3,"To_convert_this_file_to_an_ECMAScript_module_add_the_field_type_Colon_module_to_0_1482",'To convert this file to an ECMAScript module, add the field `"type": "module"` to \'{0}\'.'),To_convert_this_file_to_an_ECMAScript_module_create_a_local_package_json_file_with_type_Colon_module:ca(1483,3,"To_convert_this_file_to_an_ECMAScript_module_create_a_local_package_json_file_with_type_Colon_module_1483",'To convert this file to an ECMAScript module, create a local package.json file with `{ "type": "module" }`.'),_0_is_a_type_and_must_be_imported_using_a_type_only_import_when_verbatimModuleSyntax_is_enabled:ca(1484,1,"_0_is_a_type_and_must_be_imported_using_a_type_only_import_when_verbatimModuleSyntax_is_enabled_1484","'{0}' is a type and must be imported using a type-only import when 'verbatimModuleSyntax' is enabled."),_0_resolves_to_a_type_only_declaration_and_must_be_imported_using_a_type_only_import_when_verbatimModuleSyntax_is_enabled:ca(1485,1,"_0_resolves_to_a_type_only_declaration_and_must_be_imported_using_a_type_only_import_when_verbatimMo_1485","'{0}' resolves to a type-only declaration and must be imported using a type-only import when 'verbatimModuleSyntax' is enabled."),Decorator_used_before_export_here:ca(1486,1,"Decorator_used_before_export_here_1486","Decorator used before 'export' here."),Octal_escape_sequences_are_not_allowed_Use_the_syntax_0:ca(1487,1,"Octal_escape_sequences_are_not_allowed_Use_the_syntax_0_1487","Octal escape sequences are not allowed. Use the syntax '{0}'."),Escape_sequence_0_is_not_allowed:ca(1488,1,"Escape_sequence_0_is_not_allowed_1488","Escape sequence '{0}' is not allowed."),Decimals_with_leading_zeros_are_not_allowed:ca(1489,1,"Decimals_with_leading_zeros_are_not_allowed_1489","Decimals with leading zeros are not allowed."),File_appears_to_be_binary:ca(1490,1,"File_appears_to_be_binary_1490","File appears to be binary."),_0_modifier_cannot_appear_on_a_using_declaration:ca(1491,1,"_0_modifier_cannot_appear_on_a_using_declaration_1491","'{0}' modifier cannot appear on a 'using' declaration."),_0_declarations_may_not_have_binding_patterns:ca(1492,1,"_0_declarations_may_not_have_binding_patterns_1492","'{0}' declarations may not have binding patterns."),The_left_hand_side_of_a_for_in_statement_cannot_be_a_using_declaration:ca(1493,1,"The_left_hand_side_of_a_for_in_statement_cannot_be_a_using_declaration_1493","The left-hand side of a 'for...in' statement cannot be a 'using' declaration."),The_left_hand_side_of_a_for_in_statement_cannot_be_an_await_using_declaration:ca(1494,1,"The_left_hand_side_of_a_for_in_statement_cannot_be_an_await_using_declaration_1494","The left-hand side of a 'for...in' statement cannot be an 'await using' declaration."),_0_modifier_cannot_appear_on_an_await_using_declaration:ca(1495,1,"_0_modifier_cannot_appear_on_an_await_using_declaration_1495","'{0}' modifier cannot appear on an 'await using' declaration."),Identifier_string_literal_or_number_literal_expected:ca(1496,1,"Identifier_string_literal_or_number_literal_expected_1496","Identifier, string literal, or number literal expected."),Expression_must_be_enclosed_in_parentheses_to_be_used_as_a_decorator:ca(1497,1,"Expression_must_be_enclosed_in_parentheses_to_be_used_as_a_decorator_1497","Expression must be enclosed in parentheses to be used as a decorator."),Invalid_syntax_in_decorator:ca(1498,1,"Invalid_syntax_in_decorator_1498","Invalid syntax in decorator."),Unknown_regular_expression_flag:ca(1499,1,"Unknown_regular_expression_flag_1499","Unknown regular expression flag."),Duplicate_regular_expression_flag:ca(1500,1,"Duplicate_regular_expression_flag_1500","Duplicate regular expression flag."),This_regular_expression_flag_is_only_available_when_targeting_0_or_later:ca(1501,1,"This_regular_expression_flag_is_only_available_when_targeting_0_or_later_1501","This regular expression flag is only available when targeting '{0}' or later."),The_Unicode_u_flag_and_the_Unicode_Sets_v_flag_cannot_be_set_simultaneously:ca(1502,1,"The_Unicode_u_flag_and_the_Unicode_Sets_v_flag_cannot_be_set_simultaneously_1502","The Unicode (u) flag and the Unicode Sets (v) flag cannot be set simultaneously."),Named_capturing_groups_are_only_available_when_targeting_ES2018_or_later:ca(1503,1,"Named_capturing_groups_are_only_available_when_targeting_ES2018_or_later_1503","Named capturing groups are only available when targeting 'ES2018' or later."),Subpattern_flags_must_be_present_when_there_is_a_minus_sign:ca(1504,1,"Subpattern_flags_must_be_present_when_there_is_a_minus_sign_1504","Subpattern flags must be present when there is a minus sign."),Incomplete_quantifier_Digit_expected:ca(1505,1,"Incomplete_quantifier_Digit_expected_1505","Incomplete quantifier. Digit expected."),Numbers_out_of_order_in_quantifier:ca(1506,1,"Numbers_out_of_order_in_quantifier_1506","Numbers out of order in quantifier."),There_is_nothing_available_for_repetition:ca(1507,1,"There_is_nothing_available_for_repetition_1507","There is nothing available for repetition."),Unexpected_0_Did_you_mean_to_escape_it_with_backslash:ca(1508,1,"Unexpected_0_Did_you_mean_to_escape_it_with_backslash_1508","Unexpected '{0}'. Did you mean to escape it with backslash?"),This_regular_expression_flag_cannot_be_toggled_within_a_subpattern:ca(1509,1,"This_regular_expression_flag_cannot_be_toggled_within_a_subpattern_1509","This regular expression flag cannot be toggled within a subpattern."),k_must_be_followed_by_a_capturing_group_name_enclosed_in_angle_brackets:ca(1510,1,"k_must_be_followed_by_a_capturing_group_name_enclosed_in_angle_brackets_1510","'\\k' must be followed by a capturing group name enclosed in angle brackets."),q_is_only_available_inside_character_class:ca(1511,1,"q_is_only_available_inside_character_class_1511","'\\q' is only available inside character class."),c_must_be_followed_by_an_ASCII_letter:ca(1512,1,"c_must_be_followed_by_an_ASCII_letter_1512","'\\c' must be followed by an ASCII letter."),Undetermined_character_escape:ca(1513,1,"Undetermined_character_escape_1513","Undetermined character escape."),Expected_a_capturing_group_name:ca(1514,1,"Expected_a_capturing_group_name_1514","Expected a capturing group name."),Named_capturing_groups_with_the_same_name_must_be_mutually_exclusive_to_each_other:ca(1515,1,"Named_capturing_groups_with_the_same_name_must_be_mutually_exclusive_to_each_other_1515","Named capturing groups with the same name must be mutually exclusive to each other."),A_character_class_range_must_not_be_bounded_by_another_character_class:ca(1516,1,"A_character_class_range_must_not_be_bounded_by_another_character_class_1516","A character class range must not be bounded by another character class."),Range_out_of_order_in_character_class:ca(1517,1,"Range_out_of_order_in_character_class_1517","Range out of order in character class."),Anything_that_would_possibly_match_more_than_a_single_character_is_invalid_inside_a_negated_character_class:ca(1518,1,"Anything_that_would_possibly_match_more_than_a_single_character_is_invalid_inside_a_negated_characte_1518","Anything that would possibly match more than a single character is invalid inside a negated character class."),Operators_must_not_be_mixed_within_a_character_class_Wrap_it_in_a_nested_class_instead:ca(1519,1,"Operators_must_not_be_mixed_within_a_character_class_Wrap_it_in_a_nested_class_instead_1519","Operators must not be mixed within a character class. Wrap it in a nested class instead."),Expected_a_class_set_operand:ca(1520,1,"Expected_a_class_set_operand_1520","Expected a class set operand."),q_must_be_followed_by_string_alternatives_enclosed_in_braces:ca(1521,1,"q_must_be_followed_by_string_alternatives_enclosed_in_braces_1521","'\\q' must be followed by string alternatives enclosed in braces."),A_character_class_must_not_contain_a_reserved_double_punctuator_Did_you_mean_to_escape_it_with_backslash:ca(1522,1,"A_character_class_must_not_contain_a_reserved_double_punctuator_Did_you_mean_to_escape_it_with_backs_1522","A character class must not contain a reserved double punctuator. Did you mean to escape it with backslash?"),Expected_a_Unicode_property_name:ca(1523,1,"Expected_a_Unicode_property_name_1523","Expected a Unicode property name."),Unknown_Unicode_property_name:ca(1524,1,"Unknown_Unicode_property_name_1524","Unknown Unicode property name."),Expected_a_Unicode_property_value:ca(1525,1,"Expected_a_Unicode_property_value_1525","Expected a Unicode property value."),Unknown_Unicode_property_value:ca(1526,1,"Unknown_Unicode_property_value_1526","Unknown Unicode property value."),Expected_a_Unicode_property_name_or_value:ca(1527,1,"Expected_a_Unicode_property_name_or_value_1527","Expected a Unicode property name or value."),Any_Unicode_property_that_would_possibly_match_more_than_a_single_character_is_only_available_when_the_Unicode_Sets_v_flag_is_set:ca(1528,1,"Any_Unicode_property_that_would_possibly_match_more_than_a_single_character_is_only_available_when_t_1528","Any Unicode property that would possibly match more than a single character is only available when the Unicode Sets (v) flag is set."),Unknown_Unicode_property_name_or_value:ca(1529,1,"Unknown_Unicode_property_name_or_value_1529","Unknown Unicode property name or value."),Unicode_property_value_expressions_are_only_available_when_the_Unicode_u_flag_or_the_Unicode_Sets_v_flag_is_set:ca(1530,1,"Unicode_property_value_expressions_are_only_available_when_the_Unicode_u_flag_or_the_Unicode_Sets_v__1530","Unicode property value expressions are only available when the Unicode (u) flag or the Unicode Sets (v) flag is set."),_0_must_be_followed_by_a_Unicode_property_value_expression_enclosed_in_braces:ca(1531,1,"_0_must_be_followed_by_a_Unicode_property_value_expression_enclosed_in_braces_1531","'\\{0}' must be followed by a Unicode property value expression enclosed in braces."),There_is_no_capturing_group_named_0_in_this_regular_expression:ca(1532,1,"There_is_no_capturing_group_named_0_in_this_regular_expression_1532","There is no capturing group named '{0}' in this regular expression."),This_backreference_refers_to_a_group_that_does_not_exist_There_are_only_0_capturing_groups_in_this_regular_expression:ca(1533,1,"This_backreference_refers_to_a_group_that_does_not_exist_There_are_only_0_capturing_groups_in_this_r_1533","This backreference refers to a group that does not exist. There are only {0} capturing groups in this regular expression."),This_backreference_refers_to_a_group_that_does_not_exist_There_are_no_capturing_groups_in_this_regular_expression:ca(1534,1,"This_backreference_refers_to_a_group_that_does_not_exist_There_are_no_capturing_groups_in_this_regul_1534","This backreference refers to a group that does not exist. There are no capturing groups in this regular expression."),This_character_cannot_be_escaped_in_a_regular_expression:ca(1535,1,"This_character_cannot_be_escaped_in_a_regular_expression_1535","This character cannot be escaped in a regular expression."),Octal_escape_sequences_and_backreferences_are_not_allowed_in_a_character_class_If_this_was_intended_as_an_escape_sequence_use_the_syntax_0_instead:ca(1536,1,"Octal_escape_sequences_and_backreferences_are_not_allowed_in_a_character_class_If_this_was_intended__1536","Octal escape sequences and backreferences are not allowed in a character class. If this was intended as an escape sequence, use the syntax '{0}' instead."),Decimal_escape_sequences_and_backreferences_are_not_allowed_in_a_character_class:ca(1537,1,"Decimal_escape_sequences_and_backreferences_are_not_allowed_in_a_character_class_1537","Decimal escape sequences and backreferences are not allowed in a character class."),Unicode_escape_sequences_are_only_available_when_the_Unicode_u_flag_or_the_Unicode_Sets_v_flag_is_set:ca(1538,1,"Unicode_escape_sequences_are_only_available_when_the_Unicode_u_flag_or_the_Unicode_Sets_v_flag_is_se_1538","Unicode escape sequences are only available when the Unicode (u) flag or the Unicode Sets (v) flag is set."),A_bigint_literal_cannot_be_used_as_a_property_name:ca(1539,1,"A_bigint_literal_cannot_be_used_as_a_property_name_1539","A 'bigint' literal cannot be used as a property name."),A_namespace_declaration_should_not_be_declared_using_the_module_keyword_Please_use_the_namespace_keyword_instead:ca(1540,2,"A_namespace_declaration_should_not_be_declared_using_the_module_keyword_Please_use_the_namespace_key_1540","A 'namespace' declaration should not be declared using the 'module' keyword. Please use the 'namespace' keyword instead.",void 0,void 0,!0),Type_only_import_of_an_ECMAScript_module_from_a_CommonJS_module_must_have_a_resolution_mode_attribute:ca(1541,1,"Type_only_import_of_an_ECMAScript_module_from_a_CommonJS_module_must_have_a_resolution_mode_attribut_1541","Type-only import of an ECMAScript module from a CommonJS module must have a 'resolution-mode' attribute."),Type_import_of_an_ECMAScript_module_from_a_CommonJS_module_must_have_a_resolution_mode_attribute:ca(1542,1,"Type_import_of_an_ECMAScript_module_from_a_CommonJS_module_must_have_a_resolution_mode_attribute_1542","Type import of an ECMAScript module from a CommonJS module must have a 'resolution-mode' attribute."),Importing_a_JSON_file_into_an_ECMAScript_module_requires_a_type_Colon_json_import_attribute_when_module_is_set_to_0:ca(1543,1,"Importing_a_JSON_file_into_an_ECMAScript_module_requires_a_type_Colon_json_import_attribute_when_mod_1543","Importing a JSON file into an ECMAScript module requires a 'type: \"json\"' import attribute when 'module' is set to '{0}'."),Named_imports_from_a_JSON_file_into_an_ECMAScript_module_are_not_allowed_when_module_is_set_to_0:ca(1544,1,"Named_imports_from_a_JSON_file_into_an_ECMAScript_module_are_not_allowed_when_module_is_set_to_0_1544","Named imports from a JSON file into an ECMAScript module are not allowed when 'module' is set to '{0}'."),The_types_of_0_are_incompatible_between_these_types:ca(2200,1,"The_types_of_0_are_incompatible_between_these_types_2200","The types of '{0}' are incompatible between these types."),The_types_returned_by_0_are_incompatible_between_these_types:ca(2201,1,"The_types_returned_by_0_are_incompatible_between_these_types_2201","The types returned by '{0}' are incompatible between these types."),Call_signature_return_types_0_and_1_are_incompatible:ca(2202,1,"Call_signature_return_types_0_and_1_are_incompatible_2202","Call signature return types '{0}' and '{1}' are incompatible.",void 0,!0),Construct_signature_return_types_0_and_1_are_incompatible:ca(2203,1,"Construct_signature_return_types_0_and_1_are_incompatible_2203","Construct signature return types '{0}' and '{1}' are incompatible.",void 0,!0),Call_signatures_with_no_arguments_have_incompatible_return_types_0_and_1:ca(2204,1,"Call_signatures_with_no_arguments_have_incompatible_return_types_0_and_1_2204","Call signatures with no arguments have incompatible return types '{0}' and '{1}'.",void 0,!0),Construct_signatures_with_no_arguments_have_incompatible_return_types_0_and_1:ca(2205,1,"Construct_signatures_with_no_arguments_have_incompatible_return_types_0_and_1_2205","Construct signatures with no arguments have incompatible return types '{0}' and '{1}'.",void 0,!0),The_type_modifier_cannot_be_used_on_a_named_import_when_import_type_is_used_on_its_import_statement:ca(2206,1,"The_type_modifier_cannot_be_used_on_a_named_import_when_import_type_is_used_on_its_import_statement_2206","The 'type' modifier cannot be used on a named import when 'import type' is used on its import statement."),The_type_modifier_cannot_be_used_on_a_named_export_when_export_type_is_used_on_its_export_statement:ca(2207,1,"The_type_modifier_cannot_be_used_on_a_named_export_when_export_type_is_used_on_its_export_statement_2207","The 'type' modifier cannot be used on a named export when 'export type' is used on its export statement."),This_type_parameter_might_need_an_extends_0_constraint:ca(2208,1,"This_type_parameter_might_need_an_extends_0_constraint_2208","This type parameter might need an `extends {0}` constraint."),The_project_root_is_ambiguous_but_is_required_to_resolve_export_map_entry_0_in_file_1_Supply_the_rootDir_compiler_option_to_disambiguate:ca(2209,1,"The_project_root_is_ambiguous_but_is_required_to_resolve_export_map_entry_0_in_file_1_Supply_the_roo_2209","The project root is ambiguous, but is required to resolve export map entry '{0}' in file '{1}'. Supply the `rootDir` compiler option to disambiguate."),The_project_root_is_ambiguous_but_is_required_to_resolve_import_map_entry_0_in_file_1_Supply_the_rootDir_compiler_option_to_disambiguate:ca(2210,1,"The_project_root_is_ambiguous_but_is_required_to_resolve_import_map_entry_0_in_file_1_Supply_the_roo_2210","The project root is ambiguous, but is required to resolve import map entry '{0}' in file '{1}'. Supply the `rootDir` compiler option to disambiguate."),Add_extends_constraint:ca(2211,3,"Add_extends_constraint_2211","Add `extends` constraint."),Add_extends_constraint_to_all_type_parameters:ca(2212,3,"Add_extends_constraint_to_all_type_parameters_2212","Add `extends` constraint to all type parameters"),Duplicate_identifier_0:ca(2300,1,"Duplicate_identifier_0_2300","Duplicate identifier '{0}'."),Initializer_of_instance_member_variable_0_cannot_reference_identifier_1_declared_in_the_constructor:ca(2301,1,"Initializer_of_instance_member_variable_0_cannot_reference_identifier_1_declared_in_the_constructor_2301","Initializer of instance member variable '{0}' cannot reference identifier '{1}' declared in the constructor."),Static_members_cannot_reference_class_type_parameters:ca(2302,1,"Static_members_cannot_reference_class_type_parameters_2302","Static members cannot reference class type parameters."),Circular_definition_of_import_alias_0:ca(2303,1,"Circular_definition_of_import_alias_0_2303","Circular definition of import alias '{0}'."),Cannot_find_name_0:ca(2304,1,"Cannot_find_name_0_2304","Cannot find name '{0}'."),Module_0_has_no_exported_member_1:ca(2305,1,"Module_0_has_no_exported_member_1_2305","Module '{0}' has no exported member '{1}'."),File_0_is_not_a_module:ca(2306,1,"File_0_is_not_a_module_2306","File '{0}' is not a module."),Cannot_find_module_0_or_its_corresponding_type_declarations:ca(2307,1,"Cannot_find_module_0_or_its_corresponding_type_declarations_2307","Cannot find module '{0}' or its corresponding type declarations."),Module_0_has_already_exported_a_member_named_1_Consider_explicitly_re_exporting_to_resolve_the_ambiguity:ca(2308,1,"Module_0_has_already_exported_a_member_named_1_Consider_explicitly_re_exporting_to_resolve_the_ambig_2308","Module {0} has already exported a member named '{1}'. Consider explicitly re-exporting to resolve the ambiguity."),An_export_assignment_cannot_be_used_in_a_module_with_other_exported_elements:ca(2309,1,"An_export_assignment_cannot_be_used_in_a_module_with_other_exported_elements_2309","An export assignment cannot be used in a module with other exported elements."),Type_0_recursively_references_itself_as_a_base_type:ca(2310,1,"Type_0_recursively_references_itself_as_a_base_type_2310","Type '{0}' recursively references itself as a base type."),Cannot_find_name_0_Did_you_mean_to_write_this_in_an_async_function:ca(2311,1,"Cannot_find_name_0_Did_you_mean_to_write_this_in_an_async_function_2311","Cannot find name '{0}'. Did you mean to write this in an async function?"),An_interface_can_only_extend_an_object_type_or_intersection_of_object_types_with_statically_known_members:ca(2312,1,"An_interface_can_only_extend_an_object_type_or_intersection_of_object_types_with_statically_known_me_2312","An interface can only extend an object type or intersection of object types with statically known members."),Type_parameter_0_has_a_circular_constraint:ca(2313,1,"Type_parameter_0_has_a_circular_constraint_2313","Type parameter '{0}' has a circular constraint."),Generic_type_0_requires_1_type_argument_s:ca(2314,1,"Generic_type_0_requires_1_type_argument_s_2314","Generic type '{0}' requires {1} type argument(s)."),Type_0_is_not_generic:ca(2315,1,"Type_0_is_not_generic_2315","Type '{0}' is not generic."),Global_type_0_must_be_a_class_or_interface_type:ca(2316,1,"Global_type_0_must_be_a_class_or_interface_type_2316","Global type '{0}' must be a class or interface type."),Global_type_0_must_have_1_type_parameter_s:ca(2317,1,"Global_type_0_must_have_1_type_parameter_s_2317","Global type '{0}' must have {1} type parameter(s)."),Cannot_find_global_type_0:ca(2318,1,"Cannot_find_global_type_0_2318","Cannot find global type '{0}'."),Named_property_0_of_types_1_and_2_are_not_identical:ca(2319,1,"Named_property_0_of_types_1_and_2_are_not_identical_2319","Named property '{0}' of types '{1}' and '{2}' are not identical."),Interface_0_cannot_simultaneously_extend_types_1_and_2:ca(2320,1,"Interface_0_cannot_simultaneously_extend_types_1_and_2_2320","Interface '{0}' cannot simultaneously extend types '{1}' and '{2}'."),Excessive_stack_depth_comparing_types_0_and_1:ca(2321,1,"Excessive_stack_depth_comparing_types_0_and_1_2321","Excessive stack depth comparing types '{0}' and '{1}'."),Type_0_is_not_assignable_to_type_1:ca(2322,1,"Type_0_is_not_assignable_to_type_1_2322","Type '{0}' is not assignable to type '{1}'."),Cannot_redeclare_exported_variable_0:ca(2323,1,"Cannot_redeclare_exported_variable_0_2323","Cannot redeclare exported variable '{0}'."),Property_0_is_missing_in_type_1:ca(2324,1,"Property_0_is_missing_in_type_1_2324","Property '{0}' is missing in type '{1}'."),Property_0_is_private_in_type_1_but_not_in_type_2:ca(2325,1,"Property_0_is_private_in_type_1_but_not_in_type_2_2325","Property '{0}' is private in type '{1}' but not in type '{2}'."),Types_of_property_0_are_incompatible:ca(2326,1,"Types_of_property_0_are_incompatible_2326","Types of property '{0}' are incompatible."),Property_0_is_optional_in_type_1_but_required_in_type_2:ca(2327,1,"Property_0_is_optional_in_type_1_but_required_in_type_2_2327","Property '{0}' is optional in type '{1}' but required in type '{2}'."),Types_of_parameters_0_and_1_are_incompatible:ca(2328,1,"Types_of_parameters_0_and_1_are_incompatible_2328","Types of parameters '{0}' and '{1}' are incompatible."),Index_signature_for_type_0_is_missing_in_type_1:ca(2329,1,"Index_signature_for_type_0_is_missing_in_type_1_2329","Index signature for type '{0}' is missing in type '{1}'."),_0_and_1_index_signatures_are_incompatible:ca(2330,1,"_0_and_1_index_signatures_are_incompatible_2330","'{0}' and '{1}' index signatures are incompatible."),this_cannot_be_referenced_in_a_module_or_namespace_body:ca(2331,1,"this_cannot_be_referenced_in_a_module_or_namespace_body_2331","'this' cannot be referenced in a module or namespace body."),this_cannot_be_referenced_in_current_location:ca(2332,1,"this_cannot_be_referenced_in_current_location_2332","'this' cannot be referenced in current location."),this_cannot_be_referenced_in_a_static_property_initializer:ca(2334,1,"this_cannot_be_referenced_in_a_static_property_initializer_2334","'this' cannot be referenced in a static property initializer."),super_can_only_be_referenced_in_a_derived_class:ca(2335,1,"super_can_only_be_referenced_in_a_derived_class_2335","'super' can only be referenced in a derived class."),super_cannot_be_referenced_in_constructor_arguments:ca(2336,1,"super_cannot_be_referenced_in_constructor_arguments_2336","'super' cannot be referenced in constructor arguments."),Super_calls_are_not_permitted_outside_constructors_or_in_nested_functions_inside_constructors:ca(2337,1,"Super_calls_are_not_permitted_outside_constructors_or_in_nested_functions_inside_constructors_2337","Super calls are not permitted outside constructors or in nested functions inside constructors."),super_property_access_is_permitted_only_in_a_constructor_member_function_or_member_accessor_of_a_derived_class:ca(2338,1,"super_property_access_is_permitted_only_in_a_constructor_member_function_or_member_accessor_of_a_der_2338","'super' property access is permitted only in a constructor, member function, or member accessor of a derived class."),Property_0_does_not_exist_on_type_1:ca(2339,1,"Property_0_does_not_exist_on_type_1_2339","Property '{0}' does not exist on type '{1}'."),Only_public_and_protected_methods_of_the_base_class_are_accessible_via_the_super_keyword:ca(2340,1,"Only_public_and_protected_methods_of_the_base_class_are_accessible_via_the_super_keyword_2340","Only public and protected methods of the base class are accessible via the 'super' keyword."),Property_0_is_private_and_only_accessible_within_class_1:ca(2341,1,"Property_0_is_private_and_only_accessible_within_class_1_2341","Property '{0}' is private and only accessible within class '{1}'."),This_syntax_requires_an_imported_helper_named_1_which_does_not_exist_in_0_Consider_upgrading_your_version_of_0:ca(2343,1,"This_syntax_requires_an_imported_helper_named_1_which_does_not_exist_in_0_Consider_upgrading_your_ve_2343","This syntax requires an imported helper named '{1}' which does not exist in '{0}'. Consider upgrading your version of '{0}'."),Type_0_does_not_satisfy_the_constraint_1:ca(2344,1,"Type_0_does_not_satisfy_the_constraint_1_2344","Type '{0}' does not satisfy the constraint '{1}'."),Argument_of_type_0_is_not_assignable_to_parameter_of_type_1:ca(2345,1,"Argument_of_type_0_is_not_assignable_to_parameter_of_type_1_2345","Argument of type '{0}' is not assignable to parameter of type '{1}'."),Untyped_function_calls_may_not_accept_type_arguments:ca(2347,1,"Untyped_function_calls_may_not_accept_type_arguments_2347","Untyped function calls may not accept type arguments."),Value_of_type_0_is_not_callable_Did_you_mean_to_include_new:ca(2348,1,"Value_of_type_0_is_not_callable_Did_you_mean_to_include_new_2348","Value of type '{0}' is not callable. Did you mean to include 'new'?"),This_expression_is_not_callable:ca(2349,1,"This_expression_is_not_callable_2349","This expression is not callable."),Only_a_void_function_can_be_called_with_the_new_keyword:ca(2350,1,"Only_a_void_function_can_be_called_with_the_new_keyword_2350","Only a void function can be called with the 'new' keyword."),This_expression_is_not_constructable:ca(2351,1,"This_expression_is_not_constructable_2351","This expression is not constructable."),Conversion_of_type_0_to_type_1_may_be_a_mistake_because_neither_type_sufficiently_overlaps_with_the_other_If_this_was_intentional_convert_the_expression_to_unknown_first:ca(2352,1,"Conversion_of_type_0_to_type_1_may_be_a_mistake_because_neither_type_sufficiently_overlaps_with_the__2352","Conversion of type '{0}' to type '{1}' may be a mistake because neither type sufficiently overlaps with the other. If this was intentional, convert the expression to 'unknown' first."),Object_literal_may_only_specify_known_properties_and_0_does_not_exist_in_type_1:ca(2353,1,"Object_literal_may_only_specify_known_properties_and_0_does_not_exist_in_type_1_2353","Object literal may only specify known properties, and '{0}' does not exist in type '{1}'."),This_syntax_requires_an_imported_helper_but_module_0_cannot_be_found:ca(2354,1,"This_syntax_requires_an_imported_helper_but_module_0_cannot_be_found_2354","This syntax requires an imported helper but module '{0}' cannot be found."),A_function_whose_declared_type_is_neither_undefined_void_nor_any_must_return_a_value:ca(2355,1,"A_function_whose_declared_type_is_neither_undefined_void_nor_any_must_return_a_value_2355","A function whose declared type is neither 'undefined', 'void', nor 'any' must return a value."),An_arithmetic_operand_must_be_of_type_any_number_bigint_or_an_enum_type:ca(2356,1,"An_arithmetic_operand_must_be_of_type_any_number_bigint_or_an_enum_type_2356","An arithmetic operand must be of type 'any', 'number', 'bigint' or an enum type."),The_operand_of_an_increment_or_decrement_operator_must_be_a_variable_or_a_property_access:ca(2357,1,"The_operand_of_an_increment_or_decrement_operator_must_be_a_variable_or_a_property_access_2357","The operand of an increment or decrement operator must be a variable or a property access."),The_left_hand_side_of_an_instanceof_expression_must_be_of_type_any_an_object_type_or_a_type_parameter:ca(2358,1,"The_left_hand_side_of_an_instanceof_expression_must_be_of_type_any_an_object_type_or_a_type_paramete_2358","The left-hand side of an 'instanceof' expression must be of type 'any', an object type or a type parameter."),The_right_hand_side_of_an_instanceof_expression_must_be_either_of_type_any_a_class_function_or_other_type_assignable_to_the_Function_interface_type_or_an_object_type_with_a_Symbol_hasInstance_method:ca(2359,1,"The_right_hand_side_of_an_instanceof_expression_must_be_either_of_type_any_a_class_function_or_other_2359","The right-hand side of an 'instanceof' expression must be either of type 'any', a class, function, or other type assignable to the 'Function' interface type, or an object type with a 'Symbol.hasInstance' method."),The_left_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type:ca(2362,1,"The_left_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type_2362","The left-hand side of an arithmetic operation must be of type 'any', 'number', 'bigint' or an enum type."),The_right_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type:ca(2363,1,"The_right_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type_2363","The right-hand side of an arithmetic operation must be of type 'any', 'number', 'bigint' or an enum type."),The_left_hand_side_of_an_assignment_expression_must_be_a_variable_or_a_property_access:ca(2364,1,"The_left_hand_side_of_an_assignment_expression_must_be_a_variable_or_a_property_access_2364","The left-hand side of an assignment expression must be a variable or a property access."),Operator_0_cannot_be_applied_to_types_1_and_2:ca(2365,1,"Operator_0_cannot_be_applied_to_types_1_and_2_2365","Operator '{0}' cannot be applied to types '{1}' and '{2}'."),Function_lacks_ending_return_statement_and_return_type_does_not_include_undefined:ca(2366,1,"Function_lacks_ending_return_statement_and_return_type_does_not_include_undefined_2366","Function lacks ending return statement and return type does not include 'undefined'."),This_comparison_appears_to_be_unintentional_because_the_types_0_and_1_have_no_overlap:ca(2367,1,"This_comparison_appears_to_be_unintentional_because_the_types_0_and_1_have_no_overlap_2367","This comparison appears to be unintentional because the types '{0}' and '{1}' have no overlap."),Type_parameter_name_cannot_be_0:ca(2368,1,"Type_parameter_name_cannot_be_0_2368","Type parameter name cannot be '{0}'."),A_parameter_property_is_only_allowed_in_a_constructor_implementation:ca(2369,1,"A_parameter_property_is_only_allowed_in_a_constructor_implementation_2369","A parameter property is only allowed in a constructor implementation."),A_rest_parameter_must_be_of_an_array_type:ca(2370,1,"A_rest_parameter_must_be_of_an_array_type_2370","A rest parameter must be of an array type."),A_parameter_initializer_is_only_allowed_in_a_function_or_constructor_implementation:ca(2371,1,"A_parameter_initializer_is_only_allowed_in_a_function_or_constructor_implementation_2371","A parameter initializer is only allowed in a function or constructor implementation."),Parameter_0_cannot_reference_itself:ca(2372,1,"Parameter_0_cannot_reference_itself_2372","Parameter '{0}' cannot reference itself."),Parameter_0_cannot_reference_identifier_1_declared_after_it:ca(2373,1,"Parameter_0_cannot_reference_identifier_1_declared_after_it_2373","Parameter '{0}' cannot reference identifier '{1}' declared after it."),Duplicate_index_signature_for_type_0:ca(2374,1,"Duplicate_index_signature_for_type_0_2374","Duplicate index signature for type '{0}'."),Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_types_of_the_target_s_properties:ca(2375,1,"Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefi_2375","Type '{0}' is not assignable to type '{1}' with 'exactOptionalPropertyTypes: true'. Consider adding 'undefined' to the types of the target's properties."),A_super_call_must_be_the_first_statement_in_the_constructor_to_refer_to_super_or_this_when_a_derived_class_contains_initialized_properties_parameter_properties_or_private_identifiers:ca(2376,1,"A_super_call_must_be_the_first_statement_in_the_constructor_to_refer_to_super_or_this_when_a_derived_2376","A 'super' call must be the first statement in the constructor to refer to 'super' or 'this' when a derived class contains initialized properties, parameter properties, or private identifiers."),Constructors_for_derived_classes_must_contain_a_super_call:ca(2377,1,"Constructors_for_derived_classes_must_contain_a_super_call_2377","Constructors for derived classes must contain a 'super' call."),A_get_accessor_must_return_a_value:ca(2378,1,"A_get_accessor_must_return_a_value_2378","A 'get' accessor must return a value."),Argument_of_type_0_is_not_assignable_to_parameter_of_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_types_of_the_target_s_properties:ca(2379,1,"Argument_of_type_0_is_not_assignable_to_parameter_of_type_1_with_exactOptionalPropertyTypes_Colon_tr_2379","Argument of type '{0}' is not assignable to parameter of type '{1}' with 'exactOptionalPropertyTypes: true'. Consider adding 'undefined' to the types of the target's properties."),Overload_signatures_must_all_be_exported_or_non_exported:ca(2383,1,"Overload_signatures_must_all_be_exported_or_non_exported_2383","Overload signatures must all be exported or non-exported."),Overload_signatures_must_all_be_ambient_or_non_ambient:ca(2384,1,"Overload_signatures_must_all_be_ambient_or_non_ambient_2384","Overload signatures must all be ambient or non-ambient."),Overload_signatures_must_all_be_public_private_or_protected:ca(2385,1,"Overload_signatures_must_all_be_public_private_or_protected_2385","Overload signatures must all be public, private or protected."),Overload_signatures_must_all_be_optional_or_required:ca(2386,1,"Overload_signatures_must_all_be_optional_or_required_2386","Overload signatures must all be optional or required."),Function_overload_must_be_static:ca(2387,1,"Function_overload_must_be_static_2387","Function overload must be static."),Function_overload_must_not_be_static:ca(2388,1,"Function_overload_must_not_be_static_2388","Function overload must not be static."),Function_implementation_name_must_be_0:ca(2389,1,"Function_implementation_name_must_be_0_2389","Function implementation name must be '{0}'."),Constructor_implementation_is_missing:ca(2390,1,"Constructor_implementation_is_missing_2390","Constructor implementation is missing."),Function_implementation_is_missing_or_not_immediately_following_the_declaration:ca(2391,1,"Function_implementation_is_missing_or_not_immediately_following_the_declaration_2391","Function implementation is missing or not immediately following the declaration."),Multiple_constructor_implementations_are_not_allowed:ca(2392,1,"Multiple_constructor_implementations_are_not_allowed_2392","Multiple constructor implementations are not allowed."),Duplicate_function_implementation:ca(2393,1,"Duplicate_function_implementation_2393","Duplicate function implementation."),This_overload_signature_is_not_compatible_with_its_implementation_signature:ca(2394,1,"This_overload_signature_is_not_compatible_with_its_implementation_signature_2394","This overload signature is not compatible with its implementation signature."),Individual_declarations_in_merged_declaration_0_must_be_all_exported_or_all_local:ca(2395,1,"Individual_declarations_in_merged_declaration_0_must_be_all_exported_or_all_local_2395","Individual declarations in merged declaration '{0}' must be all exported or all local."),Duplicate_identifier_arguments_Compiler_uses_arguments_to_initialize_rest_parameters:ca(2396,1,"Duplicate_identifier_arguments_Compiler_uses_arguments_to_initialize_rest_parameters_2396","Duplicate identifier 'arguments'. Compiler uses 'arguments' to initialize rest parameters."),Declaration_name_conflicts_with_built_in_global_identifier_0:ca(2397,1,"Declaration_name_conflicts_with_built_in_global_identifier_0_2397","Declaration name conflicts with built-in global identifier '{0}'."),constructor_cannot_be_used_as_a_parameter_property_name:ca(2398,1,"constructor_cannot_be_used_as_a_parameter_property_name_2398","'constructor' cannot be used as a parameter property name."),Duplicate_identifier_this_Compiler_uses_variable_declaration_this_to_capture_this_reference:ca(2399,1,"Duplicate_identifier_this_Compiler_uses_variable_declaration_this_to_capture_this_reference_2399","Duplicate identifier '_this'. Compiler uses variable declaration '_this' to capture 'this' reference."),Expression_resolves_to_variable_declaration_this_that_compiler_uses_to_capture_this_reference:ca(2400,1,"Expression_resolves_to_variable_declaration_this_that_compiler_uses_to_capture_this_reference_2400","Expression resolves to variable declaration '_this' that compiler uses to capture 'this' reference."),A_super_call_must_be_a_root_level_statement_within_a_constructor_of_a_derived_class_that_contains_initialized_properties_parameter_properties_or_private_identifiers:ca(2401,1,"A_super_call_must_be_a_root_level_statement_within_a_constructor_of_a_derived_class_that_contains_in_2401","A 'super' call must be a root-level statement within a constructor of a derived class that contains initialized properties, parameter properties, or private identifiers."),Expression_resolves_to_super_that_compiler_uses_to_capture_base_class_reference:ca(2402,1,"Expression_resolves_to_super_that_compiler_uses_to_capture_base_class_reference_2402","Expression resolves to '_super' that compiler uses to capture base class reference."),Subsequent_variable_declarations_must_have_the_same_type_Variable_0_must_be_of_type_1_but_here_has_type_2:ca(2403,1,"Subsequent_variable_declarations_must_have_the_same_type_Variable_0_must_be_of_type_1_but_here_has_t_2403","Subsequent variable declarations must have the same type. Variable '{0}' must be of type '{1}', but here has type '{2}'."),The_left_hand_side_of_a_for_in_statement_cannot_use_a_type_annotation:ca(2404,1,"The_left_hand_side_of_a_for_in_statement_cannot_use_a_type_annotation_2404","The left-hand side of a 'for...in' statement cannot use a type annotation."),The_left_hand_side_of_a_for_in_statement_must_be_of_type_string_or_any:ca(2405,1,"The_left_hand_side_of_a_for_in_statement_must_be_of_type_string_or_any_2405","The left-hand side of a 'for...in' statement must be of type 'string' or 'any'."),The_left_hand_side_of_a_for_in_statement_must_be_a_variable_or_a_property_access:ca(2406,1,"The_left_hand_side_of_a_for_in_statement_must_be_a_variable_or_a_property_access_2406","The left-hand side of a 'for...in' statement must be a variable or a property access."),The_right_hand_side_of_a_for_in_statement_must_be_of_type_any_an_object_type_or_a_type_parameter_but_here_has_type_0:ca(2407,1,"The_right_hand_side_of_a_for_in_statement_must_be_of_type_any_an_object_type_or_a_type_parameter_but_2407","The right-hand side of a 'for...in' statement must be of type 'any', an object type or a type parameter, but here has type '{0}'."),Setters_cannot_return_a_value:ca(2408,1,"Setters_cannot_return_a_value_2408","Setters cannot return a value."),Return_type_of_constructor_signature_must_be_assignable_to_the_instance_type_of_the_class:ca(2409,1,"Return_type_of_constructor_signature_must_be_assignable_to_the_instance_type_of_the_class_2409","Return type of constructor signature must be assignable to the instance type of the class."),The_with_statement_is_not_supported_All_symbols_in_a_with_block_will_have_type_any:ca(2410,1,"The_with_statement_is_not_supported_All_symbols_in_a_with_block_will_have_type_any_2410","The 'with' statement is not supported. All symbols in a 'with' block will have type 'any'."),Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_type_of_the_target:ca(2412,1,"Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefi_2412","Type '{0}' is not assignable to type '{1}' with 'exactOptionalPropertyTypes: true'. Consider adding 'undefined' to the type of the target."),Property_0_of_type_1_is_not_assignable_to_2_index_type_3:ca(2411,1,"Property_0_of_type_1_is_not_assignable_to_2_index_type_3_2411","Property '{0}' of type '{1}' is not assignable to '{2}' index type '{3}'."),_0_index_type_1_is_not_assignable_to_2_index_type_3:ca(2413,1,"_0_index_type_1_is_not_assignable_to_2_index_type_3_2413","'{0}' index type '{1}' is not assignable to '{2}' index type '{3}'."),Class_name_cannot_be_0:ca(2414,1,"Class_name_cannot_be_0_2414","Class name cannot be '{0}'."),Class_0_incorrectly_extends_base_class_1:ca(2415,1,"Class_0_incorrectly_extends_base_class_1_2415","Class '{0}' incorrectly extends base class '{1}'."),Property_0_in_type_1_is_not_assignable_to_the_same_property_in_base_type_2:ca(2416,1,"Property_0_in_type_1_is_not_assignable_to_the_same_property_in_base_type_2_2416","Property '{0}' in type '{1}' is not assignable to the same property in base type '{2}'."),Class_static_side_0_incorrectly_extends_base_class_static_side_1:ca(2417,1,"Class_static_side_0_incorrectly_extends_base_class_static_side_1_2417","Class static side '{0}' incorrectly extends base class static side '{1}'."),Type_of_computed_property_s_value_is_0_which_is_not_assignable_to_type_1:ca(2418,1,"Type_of_computed_property_s_value_is_0_which_is_not_assignable_to_type_1_2418","Type of computed property's value is '{0}', which is not assignable to type '{1}'."),Types_of_construct_signatures_are_incompatible:ca(2419,1,"Types_of_construct_signatures_are_incompatible_2419","Types of construct signatures are incompatible."),Class_0_incorrectly_implements_interface_1:ca(2420,1,"Class_0_incorrectly_implements_interface_1_2420","Class '{0}' incorrectly implements interface '{1}'."),A_class_can_only_implement_an_object_type_or_intersection_of_object_types_with_statically_known_members:ca(2422,1,"A_class_can_only_implement_an_object_type_or_intersection_of_object_types_with_statically_known_memb_2422","A class can only implement an object type or intersection of object types with statically known members."),Class_0_defines_instance_member_function_1_but_extended_class_2_defines_it_as_instance_member_accessor:ca(2423,1,"Class_0_defines_instance_member_function_1_but_extended_class_2_defines_it_as_instance_member_access_2423","Class '{0}' defines instance member function '{1}', but extended class '{2}' defines it as instance member accessor."),Class_0_defines_instance_member_property_1_but_extended_class_2_defines_it_as_instance_member_function:ca(2425,1,"Class_0_defines_instance_member_property_1_but_extended_class_2_defines_it_as_instance_member_functi_2425","Class '{0}' defines instance member property '{1}', but extended class '{2}' defines it as instance member function."),Class_0_defines_instance_member_accessor_1_but_extended_class_2_defines_it_as_instance_member_function:ca(2426,1,"Class_0_defines_instance_member_accessor_1_but_extended_class_2_defines_it_as_instance_member_functi_2426","Class '{0}' defines instance member accessor '{1}', but extended class '{2}' defines it as instance member function."),Interface_name_cannot_be_0:ca(2427,1,"Interface_name_cannot_be_0_2427","Interface name cannot be '{0}'."),All_declarations_of_0_must_have_identical_type_parameters:ca(2428,1,"All_declarations_of_0_must_have_identical_type_parameters_2428","All declarations of '{0}' must have identical type parameters."),Interface_0_incorrectly_extends_interface_1:ca(2430,1,"Interface_0_incorrectly_extends_interface_1_2430","Interface '{0}' incorrectly extends interface '{1}'."),Enum_name_cannot_be_0:ca(2431,1,"Enum_name_cannot_be_0_2431","Enum name cannot be '{0}'."),In_an_enum_with_multiple_declarations_only_one_declaration_can_omit_an_initializer_for_its_first_enum_element:ca(2432,1,"In_an_enum_with_multiple_declarations_only_one_declaration_can_omit_an_initializer_for_its_first_enu_2432","In an enum with multiple declarations, only one declaration can omit an initializer for its first enum element."),A_namespace_declaration_cannot_be_in_a_different_file_from_a_class_or_function_with_which_it_is_merged:ca(2433,1,"A_namespace_declaration_cannot_be_in_a_different_file_from_a_class_or_function_with_which_it_is_merg_2433","A namespace declaration cannot be in a different file from a class or function with which it is merged."),A_namespace_declaration_cannot_be_located_prior_to_a_class_or_function_with_which_it_is_merged:ca(2434,1,"A_namespace_declaration_cannot_be_located_prior_to_a_class_or_function_with_which_it_is_merged_2434","A namespace declaration cannot be located prior to a class or function with which it is merged."),Ambient_modules_cannot_be_nested_in_other_modules_or_namespaces:ca(2435,1,"Ambient_modules_cannot_be_nested_in_other_modules_or_namespaces_2435","Ambient modules cannot be nested in other modules or namespaces."),Ambient_module_declaration_cannot_specify_relative_module_name:ca(2436,1,"Ambient_module_declaration_cannot_specify_relative_module_name_2436","Ambient module declaration cannot specify relative module name."),Module_0_is_hidden_by_a_local_declaration_with_the_same_name:ca(2437,1,"Module_0_is_hidden_by_a_local_declaration_with_the_same_name_2437","Module '{0}' is hidden by a local declaration with the same name."),Import_name_cannot_be_0:ca(2438,1,"Import_name_cannot_be_0_2438","Import name cannot be '{0}'."),Import_or_export_declaration_in_an_ambient_module_declaration_cannot_reference_module_through_relative_module_name:ca(2439,1,"Import_or_export_declaration_in_an_ambient_module_declaration_cannot_reference_module_through_relati_2439","Import or export declaration in an ambient module declaration cannot reference module through relative module name."),Import_declaration_conflicts_with_local_declaration_of_0:ca(2440,1,"Import_declaration_conflicts_with_local_declaration_of_0_2440","Import declaration conflicts with local declaration of '{0}'."),Duplicate_identifier_0_Compiler_reserves_name_1_in_top_level_scope_of_a_module:ca(2441,1,"Duplicate_identifier_0_Compiler_reserves_name_1_in_top_level_scope_of_a_module_2441","Duplicate identifier '{0}'. Compiler reserves name '{1}' in top level scope of a module."),Types_have_separate_declarations_of_a_private_property_0:ca(2442,1,"Types_have_separate_declarations_of_a_private_property_0_2442","Types have separate declarations of a private property '{0}'."),Property_0_is_protected_but_type_1_is_not_a_class_derived_from_2:ca(2443,1,"Property_0_is_protected_but_type_1_is_not_a_class_derived_from_2_2443","Property '{0}' is protected but type '{1}' is not a class derived from '{2}'."),Property_0_is_protected_in_type_1_but_public_in_type_2:ca(2444,1,"Property_0_is_protected_in_type_1_but_public_in_type_2_2444","Property '{0}' is protected in type '{1}' but public in type '{2}'."),Property_0_is_protected_and_only_accessible_within_class_1_and_its_subclasses:ca(2445,1,"Property_0_is_protected_and_only_accessible_within_class_1_and_its_subclasses_2445","Property '{0}' is protected and only accessible within class '{1}' and its subclasses."),Property_0_is_protected_and_only_accessible_through_an_instance_of_class_1_This_is_an_instance_of_class_2:ca(2446,1,"Property_0_is_protected_and_only_accessible_through_an_instance_of_class_1_This_is_an_instance_of_cl_2446","Property '{0}' is protected and only accessible through an instance of class '{1}'. This is an instance of class '{2}'."),The_0_operator_is_not_allowed_for_boolean_types_Consider_using_1_instead:ca(2447,1,"The_0_operator_is_not_allowed_for_boolean_types_Consider_using_1_instead_2447","The '{0}' operator is not allowed for boolean types. Consider using '{1}' instead."),Block_scoped_variable_0_used_before_its_declaration:ca(2448,1,"Block_scoped_variable_0_used_before_its_declaration_2448","Block-scoped variable '{0}' used before its declaration."),Class_0_used_before_its_declaration:ca(2449,1,"Class_0_used_before_its_declaration_2449","Class '{0}' used before its declaration."),Enum_0_used_before_its_declaration:ca(2450,1,"Enum_0_used_before_its_declaration_2450","Enum '{0}' used before its declaration."),Cannot_redeclare_block_scoped_variable_0:ca(2451,1,"Cannot_redeclare_block_scoped_variable_0_2451","Cannot redeclare block-scoped variable '{0}'."),An_enum_member_cannot_have_a_numeric_name:ca(2452,1,"An_enum_member_cannot_have_a_numeric_name_2452","An enum member cannot have a numeric name."),Variable_0_is_used_before_being_assigned:ca(2454,1,"Variable_0_is_used_before_being_assigned_2454","Variable '{0}' is used before being assigned."),Type_alias_0_circularly_references_itself:ca(2456,1,"Type_alias_0_circularly_references_itself_2456","Type alias '{0}' circularly references itself."),Type_alias_name_cannot_be_0:ca(2457,1,"Type_alias_name_cannot_be_0_2457","Type alias name cannot be '{0}'."),An_AMD_module_cannot_have_multiple_name_assignments:ca(2458,1,"An_AMD_module_cannot_have_multiple_name_assignments_2458","An AMD module cannot have multiple name assignments."),Module_0_declares_1_locally_but_it_is_not_exported:ca(2459,1,"Module_0_declares_1_locally_but_it_is_not_exported_2459","Module '{0}' declares '{1}' locally, but it is not exported."),Module_0_declares_1_locally_but_it_is_exported_as_2:ca(2460,1,"Module_0_declares_1_locally_but_it_is_exported_as_2_2460","Module '{0}' declares '{1}' locally, but it is exported as '{2}'."),Type_0_is_not_an_array_type:ca(2461,1,"Type_0_is_not_an_array_type_2461","Type '{0}' is not an array type."),A_rest_element_must_be_last_in_a_destructuring_pattern:ca(2462,1,"A_rest_element_must_be_last_in_a_destructuring_pattern_2462","A rest element must be last in a destructuring pattern."),A_binding_pattern_parameter_cannot_be_optional_in_an_implementation_signature:ca(2463,1,"A_binding_pattern_parameter_cannot_be_optional_in_an_implementation_signature_2463","A binding pattern parameter cannot be optional in an implementation signature."),A_computed_property_name_must_be_of_type_string_number_symbol_or_any:ca(2464,1,"A_computed_property_name_must_be_of_type_string_number_symbol_or_any_2464","A computed property name must be of type 'string', 'number', 'symbol', or 'any'."),this_cannot_be_referenced_in_a_computed_property_name:ca(2465,1,"this_cannot_be_referenced_in_a_computed_property_name_2465","'this' cannot be referenced in a computed property name."),super_cannot_be_referenced_in_a_computed_property_name:ca(2466,1,"super_cannot_be_referenced_in_a_computed_property_name_2466","'super' cannot be referenced in a computed property name."),A_computed_property_name_cannot_reference_a_type_parameter_from_its_containing_type:ca(2467,1,"A_computed_property_name_cannot_reference_a_type_parameter_from_its_containing_type_2467","A computed property name cannot reference a type parameter from its containing type."),Cannot_find_global_value_0:ca(2468,1,"Cannot_find_global_value_0_2468","Cannot find global value '{0}'."),The_0_operator_cannot_be_applied_to_type_symbol:ca(2469,1,"The_0_operator_cannot_be_applied_to_type_symbol_2469","The '{0}' operator cannot be applied to type 'symbol'."),Spread_operator_in_new_expressions_is_only_available_when_targeting_ECMAScript_5_and_higher:ca(2472,1,"Spread_operator_in_new_expressions_is_only_available_when_targeting_ECMAScript_5_and_higher_2472","Spread operator in 'new' expressions is only available when targeting ECMAScript 5 and higher."),Enum_declarations_must_all_be_const_or_non_const:ca(2473,1,"Enum_declarations_must_all_be_const_or_non_const_2473","Enum declarations must all be const or non-const."),const_enum_member_initializers_must_be_constant_expressions:ca(2474,1,"const_enum_member_initializers_must_be_constant_expressions_2474","const enum member initializers must be constant expressions."),const_enums_can_only_be_used_in_property_or_index_access_expressions_or_the_right_hand_side_of_an_import_declaration_or_export_assignment_or_type_query:ca(2475,1,"const_enums_can_only_be_used_in_property_or_index_access_expressions_or_the_right_hand_side_of_an_im_2475","'const' enums can only be used in property or index access expressions or the right hand side of an import declaration or export assignment or type query."),A_const_enum_member_can_only_be_accessed_using_a_string_literal:ca(2476,1,"A_const_enum_member_can_only_be_accessed_using_a_string_literal_2476","A const enum member can only be accessed using a string literal."),const_enum_member_initializer_was_evaluated_to_a_non_finite_value:ca(2477,1,"const_enum_member_initializer_was_evaluated_to_a_non_finite_value_2477","'const' enum member initializer was evaluated to a non-finite value."),const_enum_member_initializer_was_evaluated_to_disallowed_value_NaN:ca(2478,1,"const_enum_member_initializer_was_evaluated_to_disallowed_value_NaN_2478","'const' enum member initializer was evaluated to disallowed value 'NaN'."),let_is_not_allowed_to_be_used_as_a_name_in_let_or_const_declarations:ca(2480,1,"let_is_not_allowed_to_be_used_as_a_name_in_let_or_const_declarations_2480","'let' is not allowed to be used as a name in 'let' or 'const' declarations."),Cannot_initialize_outer_scoped_variable_0_in_the_same_scope_as_block_scoped_declaration_1:ca(2481,1,"Cannot_initialize_outer_scoped_variable_0_in_the_same_scope_as_block_scoped_declaration_1_2481","Cannot initialize outer scoped variable '{0}' in the same scope as block scoped declaration '{1}'."),The_left_hand_side_of_a_for_of_statement_cannot_use_a_type_annotation:ca(2483,1,"The_left_hand_side_of_a_for_of_statement_cannot_use_a_type_annotation_2483","The left-hand side of a 'for...of' statement cannot use a type annotation."),Export_declaration_conflicts_with_exported_declaration_of_0:ca(2484,1,"Export_declaration_conflicts_with_exported_declaration_of_0_2484","Export declaration conflicts with exported declaration of '{0}'."),The_left_hand_side_of_a_for_of_statement_must_be_a_variable_or_a_property_access:ca(2487,1,"The_left_hand_side_of_a_for_of_statement_must_be_a_variable_or_a_property_access_2487","The left-hand side of a 'for...of' statement must be a variable or a property access."),Type_0_must_have_a_Symbol_iterator_method_that_returns_an_iterator:ca(2488,1,"Type_0_must_have_a_Symbol_iterator_method_that_returns_an_iterator_2488","Type '{0}' must have a '[Symbol.iterator]()' method that returns an iterator."),An_iterator_must_have_a_next_method:ca(2489,1,"An_iterator_must_have_a_next_method_2489","An iterator must have a 'next()' method."),The_type_returned_by_the_0_method_of_an_iterator_must_have_a_value_property:ca(2490,1,"The_type_returned_by_the_0_method_of_an_iterator_must_have_a_value_property_2490","The type returned by the '{0}()' method of an iterator must have a 'value' property."),The_left_hand_side_of_a_for_in_statement_cannot_be_a_destructuring_pattern:ca(2491,1,"The_left_hand_side_of_a_for_in_statement_cannot_be_a_destructuring_pattern_2491","The left-hand side of a 'for...in' statement cannot be a destructuring pattern."),Cannot_redeclare_identifier_0_in_catch_clause:ca(2492,1,"Cannot_redeclare_identifier_0_in_catch_clause_2492","Cannot redeclare identifier '{0}' in catch clause."),Tuple_type_0_of_length_1_has_no_element_at_index_2:ca(2493,1,"Tuple_type_0_of_length_1_has_no_element_at_index_2_2493","Tuple type '{0}' of length '{1}' has no element at index '{2}'."),Using_a_string_in_a_for_of_statement_is_only_supported_in_ECMAScript_5_and_higher:ca(2494,1,"Using_a_string_in_a_for_of_statement_is_only_supported_in_ECMAScript_5_and_higher_2494","Using a string in a 'for...of' statement is only supported in ECMAScript 5 and higher."),Type_0_is_not_an_array_type_or_a_string_type:ca(2495,1,"Type_0_is_not_an_array_type_or_a_string_type_2495","Type '{0}' is not an array type or a string type."),The_arguments_object_cannot_be_referenced_in_an_arrow_function_in_ES5_Consider_using_a_standard_function_expression:ca(2496,1,"The_arguments_object_cannot_be_referenced_in_an_arrow_function_in_ES5_Consider_using_a_standard_func_2496","The 'arguments' object cannot be referenced in an arrow function in ES5. Consider using a standard function expression."),This_module_can_only_be_referenced_with_ECMAScript_imports_Slashexports_by_turning_on_the_0_flag_and_referencing_its_default_export:ca(2497,1,"This_module_can_only_be_referenced_with_ECMAScript_imports_Slashexports_by_turning_on_the_0_flag_and_2497","This module can only be referenced with ECMAScript imports/exports by turning on the '{0}' flag and referencing its default export."),Module_0_uses_export_and_cannot_be_used_with_export_Asterisk:ca(2498,1,"Module_0_uses_export_and_cannot_be_used_with_export_Asterisk_2498","Module '{0}' uses 'export =' and cannot be used with 'export *'."),An_interface_can_only_extend_an_identifier_Slashqualified_name_with_optional_type_arguments:ca(2499,1,"An_interface_can_only_extend_an_identifier_Slashqualified_name_with_optional_type_arguments_2499","An interface can only extend an identifier/qualified-name with optional type arguments."),A_class_can_only_implement_an_identifier_Slashqualified_name_with_optional_type_arguments:ca(2500,1,"A_class_can_only_implement_an_identifier_Slashqualified_name_with_optional_type_arguments_2500","A class can only implement an identifier/qualified-name with optional type arguments."),A_rest_element_cannot_contain_a_binding_pattern:ca(2501,1,"A_rest_element_cannot_contain_a_binding_pattern_2501","A rest element cannot contain a binding pattern."),_0_is_referenced_directly_or_indirectly_in_its_own_type_annotation:ca(2502,1,"_0_is_referenced_directly_or_indirectly_in_its_own_type_annotation_2502","'{0}' is referenced directly or indirectly in its own type annotation."),Cannot_find_namespace_0:ca(2503,1,"Cannot_find_namespace_0_2503","Cannot find namespace '{0}'."),Type_0_must_have_a_Symbol_asyncIterator_method_that_returns_an_async_iterator:ca(2504,1,"Type_0_must_have_a_Symbol_asyncIterator_method_that_returns_an_async_iterator_2504","Type '{0}' must have a '[Symbol.asyncIterator]()' method that returns an async iterator."),A_generator_cannot_have_a_void_type_annotation:ca(2505,1,"A_generator_cannot_have_a_void_type_annotation_2505","A generator cannot have a 'void' type annotation."),_0_is_referenced_directly_or_indirectly_in_its_own_base_expression:ca(2506,1,"_0_is_referenced_directly_or_indirectly_in_its_own_base_expression_2506","'{0}' is referenced directly or indirectly in its own base expression."),Type_0_is_not_a_constructor_function_type:ca(2507,1,"Type_0_is_not_a_constructor_function_type_2507","Type '{0}' is not a constructor function type."),No_base_constructor_has_the_specified_number_of_type_arguments:ca(2508,1,"No_base_constructor_has_the_specified_number_of_type_arguments_2508","No base constructor has the specified number of type arguments."),Base_constructor_return_type_0_is_not_an_object_type_or_intersection_of_object_types_with_statically_known_members:ca(2509,1,"Base_constructor_return_type_0_is_not_an_object_type_or_intersection_of_object_types_with_statically_2509","Base constructor return type '{0}' is not an object type or intersection of object types with statically known members."),Base_constructors_must_all_have_the_same_return_type:ca(2510,1,"Base_constructors_must_all_have_the_same_return_type_2510","Base constructors must all have the same return type."),Cannot_create_an_instance_of_an_abstract_class:ca(2511,1,"Cannot_create_an_instance_of_an_abstract_class_2511","Cannot create an instance of an abstract class."),Overload_signatures_must_all_be_abstract_or_non_abstract:ca(2512,1,"Overload_signatures_must_all_be_abstract_or_non_abstract_2512","Overload signatures must all be abstract or non-abstract."),Abstract_method_0_in_class_1_cannot_be_accessed_via_super_expression:ca(2513,1,"Abstract_method_0_in_class_1_cannot_be_accessed_via_super_expression_2513","Abstract method '{0}' in class '{1}' cannot be accessed via super expression."),A_tuple_type_cannot_be_indexed_with_a_negative_value:ca(2514,1,"A_tuple_type_cannot_be_indexed_with_a_negative_value_2514","A tuple type cannot be indexed with a negative value."),Non_abstract_class_0_does_not_implement_inherited_abstract_member_1_from_class_2:ca(2515,1,"Non_abstract_class_0_does_not_implement_inherited_abstract_member_1_from_class_2_2515","Non-abstract class '{0}' does not implement inherited abstract member {1} from class '{2}'."),All_declarations_of_an_abstract_method_must_be_consecutive:ca(2516,1,"All_declarations_of_an_abstract_method_must_be_consecutive_2516","All declarations of an abstract method must be consecutive."),Cannot_assign_an_abstract_constructor_type_to_a_non_abstract_constructor_type:ca(2517,1,"Cannot_assign_an_abstract_constructor_type_to_a_non_abstract_constructor_type_2517","Cannot assign an abstract constructor type to a non-abstract constructor type."),A_this_based_type_guard_is_not_compatible_with_a_parameter_based_type_guard:ca(2518,1,"A_this_based_type_guard_is_not_compatible_with_a_parameter_based_type_guard_2518","A 'this'-based type guard is not compatible with a parameter-based type guard."),An_async_iterator_must_have_a_next_method:ca(2519,1,"An_async_iterator_must_have_a_next_method_2519","An async iterator must have a 'next()' method."),Duplicate_identifier_0_Compiler_uses_declaration_1_to_support_async_functions:ca(2520,1,"Duplicate_identifier_0_Compiler_uses_declaration_1_to_support_async_functions_2520","Duplicate identifier '{0}'. Compiler uses declaration '{1}' to support async functions."),The_arguments_object_cannot_be_referenced_in_an_async_function_or_method_in_ES5_Consider_using_a_standard_function_or_method:ca(2522,1,"The_arguments_object_cannot_be_referenced_in_an_async_function_or_method_in_ES5_Consider_using_a_sta_2522","The 'arguments' object cannot be referenced in an async function or method in ES5. Consider using a standard function or method."),yield_expressions_cannot_be_used_in_a_parameter_initializer:ca(2523,1,"yield_expressions_cannot_be_used_in_a_parameter_initializer_2523","'yield' expressions cannot be used in a parameter initializer."),await_expressions_cannot_be_used_in_a_parameter_initializer:ca(2524,1,"await_expressions_cannot_be_used_in_a_parameter_initializer_2524","'await' expressions cannot be used in a parameter initializer."),A_this_type_is_available_only_in_a_non_static_member_of_a_class_or_interface:ca(2526,1,"A_this_type_is_available_only_in_a_non_static_member_of_a_class_or_interface_2526","A 'this' type is available only in a non-static member of a class or interface."),The_inferred_type_of_0_references_an_inaccessible_1_type_A_type_annotation_is_necessary:ca(2527,1,"The_inferred_type_of_0_references_an_inaccessible_1_type_A_type_annotation_is_necessary_2527","The inferred type of '{0}' references an inaccessible '{1}' type. A type annotation is necessary."),A_module_cannot_have_multiple_default_exports:ca(2528,1,"A_module_cannot_have_multiple_default_exports_2528","A module cannot have multiple default exports."),Duplicate_identifier_0_Compiler_reserves_name_1_in_top_level_scope_of_a_module_containing_async_functions:ca(2529,1,"Duplicate_identifier_0_Compiler_reserves_name_1_in_top_level_scope_of_a_module_containing_async_func_2529","Duplicate identifier '{0}'. Compiler reserves name '{1}' in top level scope of a module containing async functions."),Property_0_is_incompatible_with_index_signature:ca(2530,1,"Property_0_is_incompatible_with_index_signature_2530","Property '{0}' is incompatible with index signature."),Object_is_possibly_null:ca(2531,1,"Object_is_possibly_null_2531","Object is possibly 'null'."),Object_is_possibly_undefined:ca(2532,1,"Object_is_possibly_undefined_2532","Object is possibly 'undefined'."),Object_is_possibly_null_or_undefined:ca(2533,1,"Object_is_possibly_null_or_undefined_2533","Object is possibly 'null' or 'undefined'."),A_function_returning_never_cannot_have_a_reachable_end_point:ca(2534,1,"A_function_returning_never_cannot_have_a_reachable_end_point_2534","A function returning 'never' cannot have a reachable end point."),Type_0_cannot_be_used_to_index_type_1:ca(2536,1,"Type_0_cannot_be_used_to_index_type_1_2536","Type '{0}' cannot be used to index type '{1}'."),Type_0_has_no_matching_index_signature_for_type_1:ca(2537,1,"Type_0_has_no_matching_index_signature_for_type_1_2537","Type '{0}' has no matching index signature for type '{1}'."),Type_0_cannot_be_used_as_an_index_type:ca(2538,1,"Type_0_cannot_be_used_as_an_index_type_2538","Type '{0}' cannot be used as an index type."),Cannot_assign_to_0_because_it_is_not_a_variable:ca(2539,1,"Cannot_assign_to_0_because_it_is_not_a_variable_2539","Cannot assign to '{0}' because it is not a variable."),Cannot_assign_to_0_because_it_is_a_read_only_property:ca(2540,1,"Cannot_assign_to_0_because_it_is_a_read_only_property_2540","Cannot assign to '{0}' because it is a read-only property."),Index_signature_in_type_0_only_permits_reading:ca(2542,1,"Index_signature_in_type_0_only_permits_reading_2542","Index signature in type '{0}' only permits reading."),Duplicate_identifier_newTarget_Compiler_uses_variable_declaration_newTarget_to_capture_new_target_meta_property_reference:ca(2543,1,"Duplicate_identifier_newTarget_Compiler_uses_variable_declaration_newTarget_to_capture_new_target_me_2543","Duplicate identifier '_newTarget'. Compiler uses variable declaration '_newTarget' to capture 'new.target' meta-property reference."),Expression_resolves_to_variable_declaration_newTarget_that_compiler_uses_to_capture_new_target_meta_property_reference:ca(2544,1,"Expression_resolves_to_variable_declaration_newTarget_that_compiler_uses_to_capture_new_target_meta__2544","Expression resolves to variable declaration '_newTarget' that compiler uses to capture 'new.target' meta-property reference."),A_mixin_class_must_have_a_constructor_with_a_single_rest_parameter_of_type_any:ca(2545,1,"A_mixin_class_must_have_a_constructor_with_a_single_rest_parameter_of_type_any_2545","A mixin class must have a constructor with a single rest parameter of type 'any[]'."),The_type_returned_by_the_0_method_of_an_async_iterator_must_be_a_promise_for_a_type_with_a_value_property:ca(2547,1,"The_type_returned_by_the_0_method_of_an_async_iterator_must_be_a_promise_for_a_type_with_a_value_pro_2547","The type returned by the '{0}()' method of an async iterator must be a promise for a type with a 'value' property."),Type_0_is_not_an_array_type_or_does_not_have_a_Symbol_iterator_method_that_returns_an_iterator:ca(2548,1,"Type_0_is_not_an_array_type_or_does_not_have_a_Symbol_iterator_method_that_returns_an_iterator_2548","Type '{0}' is not an array type or does not have a '[Symbol.iterator]()' method that returns an iterator."),Type_0_is_not_an_array_type_or_a_string_type_or_does_not_have_a_Symbol_iterator_method_that_returns_an_iterator:ca(2549,1,"Type_0_is_not_an_array_type_or_a_string_type_or_does_not_have_a_Symbol_iterator_method_that_returns__2549","Type '{0}' is not an array type or a string type or does not have a '[Symbol.iterator]()' method that returns an iterator."),Property_0_does_not_exist_on_type_1_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_2_or_later:ca(2550,1,"Property_0_does_not_exist_on_type_1_Do_you_need_to_change_your_target_library_Try_changing_the_lib_c_2550","Property '{0}' does not exist on type '{1}'. Do you need to change your target library? Try changing the 'lib' compiler option to '{2}' or later."),Property_0_does_not_exist_on_type_1_Did_you_mean_2:ca(2551,1,"Property_0_does_not_exist_on_type_1_Did_you_mean_2_2551","Property '{0}' does not exist on type '{1}'. Did you mean '{2}'?"),Cannot_find_name_0_Did_you_mean_1:ca(2552,1,"Cannot_find_name_0_Did_you_mean_1_2552","Cannot find name '{0}'. Did you mean '{1}'?"),Computed_values_are_not_permitted_in_an_enum_with_string_valued_members:ca(2553,1,"Computed_values_are_not_permitted_in_an_enum_with_string_valued_members_2553","Computed values are not permitted in an enum with string valued members."),Expected_0_arguments_but_got_1:ca(2554,1,"Expected_0_arguments_but_got_1_2554","Expected {0} arguments, but got {1}."),Expected_at_least_0_arguments_but_got_1:ca(2555,1,"Expected_at_least_0_arguments_but_got_1_2555","Expected at least {0} arguments, but got {1}."),A_spread_argument_must_either_have_a_tuple_type_or_be_passed_to_a_rest_parameter:ca(2556,1,"A_spread_argument_must_either_have_a_tuple_type_or_be_passed_to_a_rest_parameter_2556","A spread argument must either have a tuple type or be passed to a rest parameter."),Expected_0_type_arguments_but_got_1:ca(2558,1,"Expected_0_type_arguments_but_got_1_2558","Expected {0} type arguments, but got {1}."),Type_0_has_no_properties_in_common_with_type_1:ca(2559,1,"Type_0_has_no_properties_in_common_with_type_1_2559","Type '{0}' has no properties in common with type '{1}'."),Value_of_type_0_has_no_properties_in_common_with_type_1_Did_you_mean_to_call_it:ca(2560,1,"Value_of_type_0_has_no_properties_in_common_with_type_1_Did_you_mean_to_call_it_2560","Value of type '{0}' has no properties in common with type '{1}'. Did you mean to call it?"),Object_literal_may_only_specify_known_properties_but_0_does_not_exist_in_type_1_Did_you_mean_to_write_2:ca(2561,1,"Object_literal_may_only_specify_known_properties_but_0_does_not_exist_in_type_1_Did_you_mean_to_writ_2561","Object literal may only specify known properties, but '{0}' does not exist in type '{1}'. Did you mean to write '{2}'?"),Base_class_expressions_cannot_reference_class_type_parameters:ca(2562,1,"Base_class_expressions_cannot_reference_class_type_parameters_2562","Base class expressions cannot reference class type parameters."),The_containing_function_or_module_body_is_too_large_for_control_flow_analysis:ca(2563,1,"The_containing_function_or_module_body_is_too_large_for_control_flow_analysis_2563","The containing function or module body is too large for control flow analysis."),Property_0_has_no_initializer_and_is_not_definitely_assigned_in_the_constructor:ca(2564,1,"Property_0_has_no_initializer_and_is_not_definitely_assigned_in_the_constructor_2564","Property '{0}' has no initializer and is not definitely assigned in the constructor."),Property_0_is_used_before_being_assigned:ca(2565,1,"Property_0_is_used_before_being_assigned_2565","Property '{0}' is used before being assigned."),A_rest_element_cannot_have_a_property_name:ca(2566,1,"A_rest_element_cannot_have_a_property_name_2566","A rest element cannot have a property name."),Enum_declarations_can_only_merge_with_namespace_or_other_enum_declarations:ca(2567,1,"Enum_declarations_can_only_merge_with_namespace_or_other_enum_declarations_2567","Enum declarations can only merge with namespace or other enum declarations."),Property_0_may_not_exist_on_type_1_Did_you_mean_2:ca(2568,1,"Property_0_may_not_exist_on_type_1_Did_you_mean_2_2568","Property '{0}' may not exist on type '{1}'. Did you mean '{2}'?"),Could_not_find_name_0_Did_you_mean_1:ca(2570,1,"Could_not_find_name_0_Did_you_mean_1_2570","Could not find name '{0}'. Did you mean '{1}'?"),Object_is_of_type_unknown:ca(2571,1,"Object_is_of_type_unknown_2571","Object is of type 'unknown'."),A_rest_element_type_must_be_an_array_type:ca(2574,1,"A_rest_element_type_must_be_an_array_type_2574","A rest element type must be an array type."),No_overload_expects_0_arguments_but_overloads_do_exist_that_expect_either_1_or_2_arguments:ca(2575,1,"No_overload_expects_0_arguments_but_overloads_do_exist_that_expect_either_1_or_2_arguments_2575","No overload expects {0} arguments, but overloads do exist that expect either {1} or {2} arguments."),Property_0_does_not_exist_on_type_1_Did_you_mean_to_access_the_static_member_2_instead:ca(2576,1,"Property_0_does_not_exist_on_type_1_Did_you_mean_to_access_the_static_member_2_instead_2576","Property '{0}' does not exist on type '{1}'. Did you mean to access the static member '{2}' instead?"),Return_type_annotation_circularly_references_itself:ca(2577,1,"Return_type_annotation_circularly_references_itself_2577","Return type annotation circularly references itself."),Unused_ts_expect_error_directive:ca(2578,1,"Unused_ts_expect_error_directive_2578","Unused '@ts-expect-error' directive."),Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_node_Try_npm_i_save_dev_types_Slashnode:ca(2580,1,"Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_node_Try_npm_i_save_dev_types_Slashno_2580","Cannot find name '{0}'. Do you need to install type definitions for node? Try `npm i --save-dev @types/node`."),Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_jQuery_Try_npm_i_save_dev_types_Slashjquery:ca(2581,1,"Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_jQuery_Try_npm_i_save_dev_types_Slash_2581","Cannot find name '{0}'. Do you need to install type definitions for jQuery? Try `npm i --save-dev @types/jquery`."),Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_a_test_runner_Try_npm_i_save_dev_types_Slashjest_or_npm_i_save_dev_types_Slashmocha:ca(2582,1,"Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_a_test_runner_Try_npm_i_save_dev_type_2582","Cannot find name '{0}'. Do you need to install type definitions for a test runner? Try `npm i --save-dev @types/jest` or `npm i --save-dev @types/mocha`."),Cannot_find_name_0_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_1_or_later:ca(2583,1,"Cannot_find_name_0_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_2583","Cannot find name '{0}'. Do you need to change your target library? Try changing the 'lib' compiler option to '{1}' or later."),Cannot_find_name_0_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_include_dom:ca(2584,1,"Cannot_find_name_0_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_2584","Cannot find name '{0}'. Do you need to change your target library? Try changing the 'lib' compiler option to include 'dom'."),_0_only_refers_to_a_type_but_is_being_used_as_a_value_here_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_es2015_or_later:ca(2585,1,"_0_only_refers_to_a_type_but_is_being_used_as_a_value_here_Do_you_need_to_change_your_target_library_2585","'{0}' only refers to a type, but is being used as a value here. Do you need to change your target library? Try changing the 'lib' compiler option to es2015 or later."),Cannot_assign_to_0_because_it_is_a_constant:ca(2588,1,"Cannot_assign_to_0_because_it_is_a_constant_2588","Cannot assign to '{0}' because it is a constant."),Type_instantiation_is_excessively_deep_and_possibly_infinite:ca(2589,1,"Type_instantiation_is_excessively_deep_and_possibly_infinite_2589","Type instantiation is excessively deep and possibly infinite."),Expression_produces_a_union_type_that_is_too_complex_to_represent:ca(2590,1,"Expression_produces_a_union_type_that_is_too_complex_to_represent_2590","Expression produces a union type that is too complex to represent."),Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_node_Try_npm_i_save_dev_types_Slashnode_and_then_add_node_to_the_types_field_in_your_tsconfig:ca(2591,1,"Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_node_Try_npm_i_save_dev_types_Slashno_2591","Cannot find name '{0}'. Do you need to install type definitions for node? Try `npm i --save-dev @types/node` and then add 'node' to the types field in your tsconfig."),Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_jQuery_Try_npm_i_save_dev_types_Slashjquery_and_then_add_jquery_to_the_types_field_in_your_tsconfig:ca(2592,1,"Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_jQuery_Try_npm_i_save_dev_types_Slash_2592","Cannot find name '{0}'. Do you need to install type definitions for jQuery? Try `npm i --save-dev @types/jquery` and then add 'jquery' to the types field in your tsconfig."),Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_a_test_runner_Try_npm_i_save_dev_types_Slashjest_or_npm_i_save_dev_types_Slashmocha_and_then_add_jest_or_mocha_to_the_types_field_in_your_tsconfig:ca(2593,1,"Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_a_test_runner_Try_npm_i_save_dev_type_2593","Cannot find name '{0}'. Do you need to install type definitions for a test runner? Try `npm i --save-dev @types/jest` or `npm i --save-dev @types/mocha` and then add 'jest' or 'mocha' to the types field in your tsconfig."),This_module_is_declared_with_export_and_can_only_be_used_with_a_default_import_when_using_the_0_flag:ca(2594,1,"This_module_is_declared_with_export_and_can_only_be_used_with_a_default_import_when_using_the_0_flag_2594","This module is declared with 'export =', and can only be used with a default import when using the '{0}' flag."),_0_can_only_be_imported_by_using_a_default_import:ca(2595,1,"_0_can_only_be_imported_by_using_a_default_import_2595","'{0}' can only be imported by using a default import."),_0_can_only_be_imported_by_turning_on_the_esModuleInterop_flag_and_using_a_default_import:ca(2596,1,"_0_can_only_be_imported_by_turning_on_the_esModuleInterop_flag_and_using_a_default_import_2596","'{0}' can only be imported by turning on the 'esModuleInterop' flag and using a default import."),_0_can_only_be_imported_by_using_a_require_call_or_by_using_a_default_import:ca(2597,1,"_0_can_only_be_imported_by_using_a_require_call_or_by_using_a_default_import_2597","'{0}' can only be imported by using a 'require' call or by using a default import."),_0_can_only_be_imported_by_using_a_require_call_or_by_turning_on_the_esModuleInterop_flag_and_using_a_default_import:ca(2598,1,"_0_can_only_be_imported_by_using_a_require_call_or_by_turning_on_the_esModuleInterop_flag_and_using__2598","'{0}' can only be imported by using a 'require' call or by turning on the 'esModuleInterop' flag and using a default import."),JSX_element_implicitly_has_type_any_because_the_global_type_JSX_Element_does_not_exist:ca(2602,1,"JSX_element_implicitly_has_type_any_because_the_global_type_JSX_Element_does_not_exist_2602","JSX element implicitly has type 'any' because the global type 'JSX.Element' does not exist."),Property_0_in_type_1_is_not_assignable_to_type_2:ca(2603,1,"Property_0_in_type_1_is_not_assignable_to_type_2_2603","Property '{0}' in type '{1}' is not assignable to type '{2}'."),JSX_element_type_0_does_not_have_any_construct_or_call_signatures:ca(2604,1,"JSX_element_type_0_does_not_have_any_construct_or_call_signatures_2604","JSX element type '{0}' does not have any construct or call signatures."),Property_0_of_JSX_spread_attribute_is_not_assignable_to_target_property:ca(2606,1,"Property_0_of_JSX_spread_attribute_is_not_assignable_to_target_property_2606","Property '{0}' of JSX spread attribute is not assignable to target property."),JSX_element_class_does_not_support_attributes_because_it_does_not_have_a_0_property:ca(2607,1,"JSX_element_class_does_not_support_attributes_because_it_does_not_have_a_0_property_2607","JSX element class does not support attributes because it does not have a '{0}' property."),The_global_type_JSX_0_may_not_have_more_than_one_property:ca(2608,1,"The_global_type_JSX_0_may_not_have_more_than_one_property_2608","The global type 'JSX.{0}' may not have more than one property."),JSX_spread_child_must_be_an_array_type:ca(2609,1,"JSX_spread_child_must_be_an_array_type_2609","JSX spread child must be an array type."),_0_is_defined_as_an_accessor_in_class_1_but_is_overridden_here_in_2_as_an_instance_property:ca(2610,1,"_0_is_defined_as_an_accessor_in_class_1_but_is_overridden_here_in_2_as_an_instance_property_2610","'{0}' is defined as an accessor in class '{1}', but is overridden here in '{2}' as an instance property."),_0_is_defined_as_a_property_in_class_1_but_is_overridden_here_in_2_as_an_accessor:ca(2611,1,"_0_is_defined_as_a_property_in_class_1_but_is_overridden_here_in_2_as_an_accessor_2611","'{0}' is defined as a property in class '{1}', but is overridden here in '{2}' as an accessor."),Property_0_will_overwrite_the_base_property_in_1_If_this_is_intentional_add_an_initializer_Otherwise_add_a_declare_modifier_or_remove_the_redundant_declaration:ca(2612,1,"Property_0_will_overwrite_the_base_property_in_1_If_this_is_intentional_add_an_initializer_Otherwise_2612","Property '{0}' will overwrite the base property in '{1}'. If this is intentional, add an initializer. Otherwise, add a 'declare' modifier or remove the redundant declaration."),Module_0_has_no_default_export_Did_you_mean_to_use_import_1_from_0_instead:ca(2613,1,"Module_0_has_no_default_export_Did_you_mean_to_use_import_1_from_0_instead_2613","Module '{0}' has no default export. Did you mean to use 'import { {1} } from {0}' instead?"),Module_0_has_no_exported_member_1_Did_you_mean_to_use_import_1_from_0_instead:ca(2614,1,"Module_0_has_no_exported_member_1_Did_you_mean_to_use_import_1_from_0_instead_2614","Module '{0}' has no exported member '{1}'. Did you mean to use 'import {1} from {0}' instead?"),Type_of_property_0_circularly_references_itself_in_mapped_type_1:ca(2615,1,"Type_of_property_0_circularly_references_itself_in_mapped_type_1_2615","Type of property '{0}' circularly references itself in mapped type '{1}'."),_0_can_only_be_imported_by_using_import_1_require_2_or_a_default_import:ca(2616,1,"_0_can_only_be_imported_by_using_import_1_require_2_or_a_default_import_2616","'{0}' can only be imported by using 'import {1} = require({2})' or a default import."),_0_can_only_be_imported_by_using_import_1_require_2_or_by_turning_on_the_esModuleInterop_flag_and_using_a_default_import:ca(2617,1,"_0_can_only_be_imported_by_using_import_1_require_2_or_by_turning_on_the_esModuleInterop_flag_and_us_2617","'{0}' can only be imported by using 'import {1} = require({2})' or by turning on the 'esModuleInterop' flag and using a default import."),Source_has_0_element_s_but_target_requires_1:ca(2618,1,"Source_has_0_element_s_but_target_requires_1_2618","Source has {0} element(s) but target requires {1}."),Source_has_0_element_s_but_target_allows_only_1:ca(2619,1,"Source_has_0_element_s_but_target_allows_only_1_2619","Source has {0} element(s) but target allows only {1}."),Target_requires_0_element_s_but_source_may_have_fewer:ca(2620,1,"Target_requires_0_element_s_but_source_may_have_fewer_2620","Target requires {0} element(s) but source may have fewer."),Target_allows_only_0_element_s_but_source_may_have_more:ca(2621,1,"Target_allows_only_0_element_s_but_source_may_have_more_2621","Target allows only {0} element(s) but source may have more."),Source_provides_no_match_for_required_element_at_position_0_in_target:ca(2623,1,"Source_provides_no_match_for_required_element_at_position_0_in_target_2623","Source provides no match for required element at position {0} in target."),Source_provides_no_match_for_variadic_element_at_position_0_in_target:ca(2624,1,"Source_provides_no_match_for_variadic_element_at_position_0_in_target_2624","Source provides no match for variadic element at position {0} in target."),Variadic_element_at_position_0_in_source_does_not_match_element_at_position_1_in_target:ca(2625,1,"Variadic_element_at_position_0_in_source_does_not_match_element_at_position_1_in_target_2625","Variadic element at position {0} in source does not match element at position {1} in target."),Type_at_position_0_in_source_is_not_compatible_with_type_at_position_1_in_target:ca(2626,1,"Type_at_position_0_in_source_is_not_compatible_with_type_at_position_1_in_target_2626","Type at position {0} in source is not compatible with type at position {1} in target."),Type_at_positions_0_through_1_in_source_is_not_compatible_with_type_at_position_2_in_target:ca(2627,1,"Type_at_positions_0_through_1_in_source_is_not_compatible_with_type_at_position_2_in_target_2627","Type at positions {0} through {1} in source is not compatible with type at position {2} in target."),Cannot_assign_to_0_because_it_is_an_enum:ca(2628,1,"Cannot_assign_to_0_because_it_is_an_enum_2628","Cannot assign to '{0}' because it is an enum."),Cannot_assign_to_0_because_it_is_a_class:ca(2629,1,"Cannot_assign_to_0_because_it_is_a_class_2629","Cannot assign to '{0}' because it is a class."),Cannot_assign_to_0_because_it_is_a_function:ca(2630,1,"Cannot_assign_to_0_because_it_is_a_function_2630","Cannot assign to '{0}' because it is a function."),Cannot_assign_to_0_because_it_is_a_namespace:ca(2631,1,"Cannot_assign_to_0_because_it_is_a_namespace_2631","Cannot assign to '{0}' because it is a namespace."),Cannot_assign_to_0_because_it_is_an_import:ca(2632,1,"Cannot_assign_to_0_because_it_is_an_import_2632","Cannot assign to '{0}' because it is an import."),JSX_property_access_expressions_cannot_include_JSX_namespace_names:ca(2633,1,"JSX_property_access_expressions_cannot_include_JSX_namespace_names_2633","JSX property access expressions cannot include JSX namespace names"),_0_index_signatures_are_incompatible:ca(2634,1,"_0_index_signatures_are_incompatible_2634","'{0}' index signatures are incompatible."),Type_0_has_no_signatures_for_which_the_type_argument_list_is_applicable:ca(2635,1,"Type_0_has_no_signatures_for_which_the_type_argument_list_is_applicable_2635","Type '{0}' has no signatures for which the type argument list is applicable."),Type_0_is_not_assignable_to_type_1_as_implied_by_variance_annotation:ca(2636,1,"Type_0_is_not_assignable_to_type_1_as_implied_by_variance_annotation_2636","Type '{0}' is not assignable to type '{1}' as implied by variance annotation."),Variance_annotations_are_only_supported_in_type_aliases_for_object_function_constructor_and_mapped_types:ca(2637,1,"Variance_annotations_are_only_supported_in_type_aliases_for_object_function_constructor_and_mapped_t_2637","Variance annotations are only supported in type aliases for object, function, constructor, and mapped types."),Type_0_may_represent_a_primitive_value_which_is_not_permitted_as_the_right_operand_of_the_in_operator:ca(2638,1,"Type_0_may_represent_a_primitive_value_which_is_not_permitted_as_the_right_operand_of_the_in_operato_2638","Type '{0}' may represent a primitive value, which is not permitted as the right operand of the 'in' operator."),React_components_cannot_include_JSX_namespace_names:ca(2639,1,"React_components_cannot_include_JSX_namespace_names_2639","React components cannot include JSX namespace names"),Cannot_augment_module_0_with_value_exports_because_it_resolves_to_a_non_module_entity:ca(2649,1,"Cannot_augment_module_0_with_value_exports_because_it_resolves_to_a_non_module_entity_2649","Cannot augment module '{0}' with value exports because it resolves to a non-module entity."),Non_abstract_class_expression_is_missing_implementations_for_the_following_members_of_0_Colon_1_and_2_more:ca(2650,1,"Non_abstract_class_expression_is_missing_implementations_for_the_following_members_of_0_Colon_1_and__2650","Non-abstract class expression is missing implementations for the following members of '{0}': {1} and {2} more."),A_member_initializer_in_a_enum_declaration_cannot_reference_members_declared_after_it_including_members_defined_in_other_enums:ca(2651,1,"A_member_initializer_in_a_enum_declaration_cannot_reference_members_declared_after_it_including_memb_2651","A member initializer in a enum declaration cannot reference members declared after it, including members defined in other enums."),Merged_declaration_0_cannot_include_a_default_export_declaration_Consider_adding_a_separate_export_default_0_declaration_instead:ca(2652,1,"Merged_declaration_0_cannot_include_a_default_export_declaration_Consider_adding_a_separate_export_d_2652","Merged declaration '{0}' cannot include a default export declaration. Consider adding a separate 'export default {0}' declaration instead."),Non_abstract_class_expression_does_not_implement_inherited_abstract_member_0_from_class_1:ca(2653,1,"Non_abstract_class_expression_does_not_implement_inherited_abstract_member_0_from_class_1_2653","Non-abstract class expression does not implement inherited abstract member '{0}' from class '{1}'."),Non_abstract_class_0_is_missing_implementations_for_the_following_members_of_1_Colon_2:ca(2654,1,"Non_abstract_class_0_is_missing_implementations_for_the_following_members_of_1_Colon_2_2654","Non-abstract class '{0}' is missing implementations for the following members of '{1}': {2}."),Non_abstract_class_0_is_missing_implementations_for_the_following_members_of_1_Colon_2_and_3_more:ca(2655,1,"Non_abstract_class_0_is_missing_implementations_for_the_following_members_of_1_Colon_2_and_3_more_2655","Non-abstract class '{0}' is missing implementations for the following members of '{1}': {2} and {3} more."),Non_abstract_class_expression_is_missing_implementations_for_the_following_members_of_0_Colon_1:ca(2656,1,"Non_abstract_class_expression_is_missing_implementations_for_the_following_members_of_0_Colon_1_2656","Non-abstract class expression is missing implementations for the following members of '{0}': {1}."),JSX_expressions_must_have_one_parent_element:ca(2657,1,"JSX_expressions_must_have_one_parent_element_2657","JSX expressions must have one parent element."),Type_0_provides_no_match_for_the_signature_1:ca(2658,1,"Type_0_provides_no_match_for_the_signature_1_2658","Type '{0}' provides no match for the signature '{1}'."),super_is_only_allowed_in_members_of_object_literal_expressions_when_option_target_is_ES2015_or_higher:ca(2659,1,"super_is_only_allowed_in_members_of_object_literal_expressions_when_option_target_is_ES2015_or_highe_2659","'super' is only allowed in members of object literal expressions when option 'target' is 'ES2015' or higher."),super_can_only_be_referenced_in_members_of_derived_classes_or_object_literal_expressions:ca(2660,1,"super_can_only_be_referenced_in_members_of_derived_classes_or_object_literal_expressions_2660","'super' can only be referenced in members of derived classes or object literal expressions."),Cannot_export_0_Only_local_declarations_can_be_exported_from_a_module:ca(2661,1,"Cannot_export_0_Only_local_declarations_can_be_exported_from_a_module_2661","Cannot export '{0}'. Only local declarations can be exported from a module."),Cannot_find_name_0_Did_you_mean_the_static_member_1_0:ca(2662,1,"Cannot_find_name_0_Did_you_mean_the_static_member_1_0_2662","Cannot find name '{0}'. Did you mean the static member '{1}.{0}'?"),Cannot_find_name_0_Did_you_mean_the_instance_member_this_0:ca(2663,1,"Cannot_find_name_0_Did_you_mean_the_instance_member_this_0_2663","Cannot find name '{0}'. Did you mean the instance member 'this.{0}'?"),Invalid_module_name_in_augmentation_module_0_cannot_be_found:ca(2664,1,"Invalid_module_name_in_augmentation_module_0_cannot_be_found_2664","Invalid module name in augmentation, module '{0}' cannot be found."),Invalid_module_name_in_augmentation_Module_0_resolves_to_an_untyped_module_at_1_which_cannot_be_augmented:ca(2665,1,"Invalid_module_name_in_augmentation_Module_0_resolves_to_an_untyped_module_at_1_which_cannot_be_augm_2665","Invalid module name in augmentation. Module '{0}' resolves to an untyped module at '{1}', which cannot be augmented."),Exports_and_export_assignments_are_not_permitted_in_module_augmentations:ca(2666,1,"Exports_and_export_assignments_are_not_permitted_in_module_augmentations_2666","Exports and export assignments are not permitted in module augmentations."),Imports_are_not_permitted_in_module_augmentations_Consider_moving_them_to_the_enclosing_external_module:ca(2667,1,"Imports_are_not_permitted_in_module_augmentations_Consider_moving_them_to_the_enclosing_external_mod_2667","Imports are not permitted in module augmentations. Consider moving them to the enclosing external module."),export_modifier_cannot_be_applied_to_ambient_modules_and_module_augmentations_since_they_are_always_visible:ca(2668,1,"export_modifier_cannot_be_applied_to_ambient_modules_and_module_augmentations_since_they_are_always__2668","'export' modifier cannot be applied to ambient modules and module augmentations since they are always visible."),Augmentations_for_the_global_scope_can_only_be_directly_nested_in_external_modules_or_ambient_module_declarations:ca(2669,1,"Augmentations_for_the_global_scope_can_only_be_directly_nested_in_external_modules_or_ambient_module_2669","Augmentations for the global scope can only be directly nested in external modules or ambient module declarations."),Augmentations_for_the_global_scope_should_have_declare_modifier_unless_they_appear_in_already_ambient_context:ca(2670,1,"Augmentations_for_the_global_scope_should_have_declare_modifier_unless_they_appear_in_already_ambien_2670","Augmentations for the global scope should have 'declare' modifier unless they appear in already ambient context."),Cannot_augment_module_0_because_it_resolves_to_a_non_module_entity:ca(2671,1,"Cannot_augment_module_0_because_it_resolves_to_a_non_module_entity_2671","Cannot augment module '{0}' because it resolves to a non-module entity."),Cannot_assign_a_0_constructor_type_to_a_1_constructor_type:ca(2672,1,"Cannot_assign_a_0_constructor_type_to_a_1_constructor_type_2672","Cannot assign a '{0}' constructor type to a '{1}' constructor type."),Constructor_of_class_0_is_private_and_only_accessible_within_the_class_declaration:ca(2673,1,"Constructor_of_class_0_is_private_and_only_accessible_within_the_class_declaration_2673","Constructor of class '{0}' is private and only accessible within the class declaration."),Constructor_of_class_0_is_protected_and_only_accessible_within_the_class_declaration:ca(2674,1,"Constructor_of_class_0_is_protected_and_only_accessible_within_the_class_declaration_2674","Constructor of class '{0}' is protected and only accessible within the class declaration."),Cannot_extend_a_class_0_Class_constructor_is_marked_as_private:ca(2675,1,"Cannot_extend_a_class_0_Class_constructor_is_marked_as_private_2675","Cannot extend a class '{0}'. Class constructor is marked as private."),Accessors_must_both_be_abstract_or_non_abstract:ca(2676,1,"Accessors_must_both_be_abstract_or_non_abstract_2676","Accessors must both be abstract or non-abstract."),A_type_predicate_s_type_must_be_assignable_to_its_parameter_s_type:ca(2677,1,"A_type_predicate_s_type_must_be_assignable_to_its_parameter_s_type_2677","A type predicate's type must be assignable to its parameter's type."),Type_0_is_not_comparable_to_type_1:ca(2678,1,"Type_0_is_not_comparable_to_type_1_2678","Type '{0}' is not comparable to type '{1}'."),A_function_that_is_called_with_the_new_keyword_cannot_have_a_this_type_that_is_void:ca(2679,1,"A_function_that_is_called_with_the_new_keyword_cannot_have_a_this_type_that_is_void_2679","A function that is called with the 'new' keyword cannot have a 'this' type that is 'void'."),A_0_parameter_must_be_the_first_parameter:ca(2680,1,"A_0_parameter_must_be_the_first_parameter_2680","A '{0}' parameter must be the first parameter."),A_constructor_cannot_have_a_this_parameter:ca(2681,1,"A_constructor_cannot_have_a_this_parameter_2681","A constructor cannot have a 'this' parameter."),this_implicitly_has_type_any_because_it_does_not_have_a_type_annotation:ca(2683,1,"this_implicitly_has_type_any_because_it_does_not_have_a_type_annotation_2683","'this' implicitly has type 'any' because it does not have a type annotation."),The_this_context_of_type_0_is_not_assignable_to_method_s_this_of_type_1:ca(2684,1,"The_this_context_of_type_0_is_not_assignable_to_method_s_this_of_type_1_2684","The 'this' context of type '{0}' is not assignable to method's 'this' of type '{1}'."),The_this_types_of_each_signature_are_incompatible:ca(2685,1,"The_this_types_of_each_signature_are_incompatible_2685","The 'this' types of each signature are incompatible."),_0_refers_to_a_UMD_global_but_the_current_file_is_a_module_Consider_adding_an_import_instead:ca(2686,1,"_0_refers_to_a_UMD_global_but_the_current_file_is_a_module_Consider_adding_an_import_instead_2686","'{0}' refers to a UMD global, but the current file is a module. Consider adding an import instead."),All_declarations_of_0_must_have_identical_modifiers:ca(2687,1,"All_declarations_of_0_must_have_identical_modifiers_2687","All declarations of '{0}' must have identical modifiers."),Cannot_find_type_definition_file_for_0:ca(2688,1,"Cannot_find_type_definition_file_for_0_2688","Cannot find type definition file for '{0}'."),Cannot_extend_an_interface_0_Did_you_mean_implements:ca(2689,1,"Cannot_extend_an_interface_0_Did_you_mean_implements_2689","Cannot extend an interface '{0}'. Did you mean 'implements'?"),_0_only_refers_to_a_type_but_is_being_used_as_a_value_here_Did_you_mean_to_use_1_in_0:ca(2690,1,"_0_only_refers_to_a_type_but_is_being_used_as_a_value_here_Did_you_mean_to_use_1_in_0_2690","'{0}' only refers to a type, but is being used as a value here. Did you mean to use '{1} in {0}'?"),_0_is_a_primitive_but_1_is_a_wrapper_object_Prefer_using_0_when_possible:ca(2692,1,"_0_is_a_primitive_but_1_is_a_wrapper_object_Prefer_using_0_when_possible_2692","'{0}' is a primitive, but '{1}' is a wrapper object. Prefer using '{0}' when possible."),_0_only_refers_to_a_type_but_is_being_used_as_a_value_here:ca(2693,1,"_0_only_refers_to_a_type_but_is_being_used_as_a_value_here_2693","'{0}' only refers to a type, but is being used as a value here."),Namespace_0_has_no_exported_member_1:ca(2694,1,"Namespace_0_has_no_exported_member_1_2694","Namespace '{0}' has no exported member '{1}'."),Left_side_of_comma_operator_is_unused_and_has_no_side_effects:ca(2695,1,"Left_side_of_comma_operator_is_unused_and_has_no_side_effects_2695","Left side of comma operator is unused and has no side effects.",!0),The_Object_type_is_assignable_to_very_few_other_types_Did_you_mean_to_use_the_any_type_instead:ca(2696,1,"The_Object_type_is_assignable_to_very_few_other_types_Did_you_mean_to_use_the_any_type_instead_2696","The 'Object' type is assignable to very few other types. Did you mean to use the 'any' type instead?"),An_async_function_or_method_must_return_a_Promise_Make_sure_you_have_a_declaration_for_Promise_or_include_ES2015_in_your_lib_option:ca(2697,1,"An_async_function_or_method_must_return_a_Promise_Make_sure_you_have_a_declaration_for_Promise_or_in_2697","An async function or method must return a 'Promise'. Make sure you have a declaration for 'Promise' or include 'ES2015' in your '--lib' option."),Spread_types_may_only_be_created_from_object_types:ca(2698,1,"Spread_types_may_only_be_created_from_object_types_2698","Spread types may only be created from object types."),Static_property_0_conflicts_with_built_in_property_Function_0_of_constructor_function_1:ca(2699,1,"Static_property_0_conflicts_with_built_in_property_Function_0_of_constructor_function_1_2699","Static property '{0}' conflicts with built-in property 'Function.{0}' of constructor function '{1}'."),Rest_types_may_only_be_created_from_object_types:ca(2700,1,"Rest_types_may_only_be_created_from_object_types_2700","Rest types may only be created from object types."),The_target_of_an_object_rest_assignment_must_be_a_variable_or_a_property_access:ca(2701,1,"The_target_of_an_object_rest_assignment_must_be_a_variable_or_a_property_access_2701","The target of an object rest assignment must be a variable or a property access."),_0_only_refers_to_a_type_but_is_being_used_as_a_namespace_here:ca(2702,1,"_0_only_refers_to_a_type_but_is_being_used_as_a_namespace_here_2702","'{0}' only refers to a type, but is being used as a namespace here."),The_operand_of_a_delete_operator_must_be_a_property_reference:ca(2703,1,"The_operand_of_a_delete_operator_must_be_a_property_reference_2703","The operand of a 'delete' operator must be a property reference."),The_operand_of_a_delete_operator_cannot_be_a_read_only_property:ca(2704,1,"The_operand_of_a_delete_operator_cannot_be_a_read_only_property_2704","The operand of a 'delete' operator cannot be a read-only property."),An_async_function_or_method_in_ES5_requires_the_Promise_constructor_Make_sure_you_have_a_declaration_for_the_Promise_constructor_or_include_ES2015_in_your_lib_option:ca(2705,1,"An_async_function_or_method_in_ES5_requires_the_Promise_constructor_Make_sure_you_have_a_declaration_2705","An async function or method in ES5 requires the 'Promise' constructor. Make sure you have a declaration for the 'Promise' constructor or include 'ES2015' in your '--lib' option."),Required_type_parameters_may_not_follow_optional_type_parameters:ca(2706,1,"Required_type_parameters_may_not_follow_optional_type_parameters_2706","Required type parameters may not follow optional type parameters."),Generic_type_0_requires_between_1_and_2_type_arguments:ca(2707,1,"Generic_type_0_requires_between_1_and_2_type_arguments_2707","Generic type '{0}' requires between {1} and {2} type arguments."),Cannot_use_namespace_0_as_a_value:ca(2708,1,"Cannot_use_namespace_0_as_a_value_2708","Cannot use namespace '{0}' as a value."),Cannot_use_namespace_0_as_a_type:ca(2709,1,"Cannot_use_namespace_0_as_a_type_2709","Cannot use namespace '{0}' as a type."),_0_are_specified_twice_The_attribute_named_0_will_be_overwritten:ca(2710,1,"_0_are_specified_twice_The_attribute_named_0_will_be_overwritten_2710","'{0}' are specified twice. The attribute named '{0}' will be overwritten."),A_dynamic_import_call_returns_a_Promise_Make_sure_you_have_a_declaration_for_Promise_or_include_ES2015_in_your_lib_option:ca(2711,1,"A_dynamic_import_call_returns_a_Promise_Make_sure_you_have_a_declaration_for_Promise_or_include_ES20_2711","A dynamic import call returns a 'Promise'. Make sure you have a declaration for 'Promise' or include 'ES2015' in your '--lib' option."),A_dynamic_import_call_in_ES5_requires_the_Promise_constructor_Make_sure_you_have_a_declaration_for_the_Promise_constructor_or_include_ES2015_in_your_lib_option:ca(2712,1,"A_dynamic_import_call_in_ES5_requires_the_Promise_constructor_Make_sure_you_have_a_declaration_for_t_2712","A dynamic import call in ES5 requires the 'Promise' constructor. Make sure you have a declaration for the 'Promise' constructor or include 'ES2015' in your '--lib' option."),Cannot_access_0_1_because_0_is_a_type_but_not_a_namespace_Did_you_mean_to_retrieve_the_type_of_the_property_1_in_0_with_0_1:ca(2713,1,"Cannot_access_0_1_because_0_is_a_type_but_not_a_namespace_Did_you_mean_to_retrieve_the_type_of_the_p_2713","Cannot access '{0}.{1}' because '{0}' is a type, but not a namespace. Did you mean to retrieve the type of the property '{1}' in '{0}' with '{0}[\"{1}\"]'?"),The_expression_of_an_export_assignment_must_be_an_identifier_or_qualified_name_in_an_ambient_context:ca(2714,1,"The_expression_of_an_export_assignment_must_be_an_identifier_or_qualified_name_in_an_ambient_context_2714","The expression of an export assignment must be an identifier or qualified name in an ambient context."),Abstract_property_0_in_class_1_cannot_be_accessed_in_the_constructor:ca(2715,1,"Abstract_property_0_in_class_1_cannot_be_accessed_in_the_constructor_2715","Abstract property '{0}' in class '{1}' cannot be accessed in the constructor."),Type_parameter_0_has_a_circular_default:ca(2716,1,"Type_parameter_0_has_a_circular_default_2716","Type parameter '{0}' has a circular default."),Subsequent_property_declarations_must_have_the_same_type_Property_0_must_be_of_type_1_but_here_has_type_2:ca(2717,1,"Subsequent_property_declarations_must_have_the_same_type_Property_0_must_be_of_type_1_but_here_has_t_2717","Subsequent property declarations must have the same type. Property '{0}' must be of type '{1}', but here has type '{2}'."),Duplicate_property_0:ca(2718,1,"Duplicate_property_0_2718","Duplicate property '{0}'."),Type_0_is_not_assignable_to_type_1_Two_different_types_with_this_name_exist_but_they_are_unrelated:ca(2719,1,"Type_0_is_not_assignable_to_type_1_Two_different_types_with_this_name_exist_but_they_are_unrelated_2719","Type '{0}' is not assignable to type '{1}'. Two different types with this name exist, but they are unrelated."),Class_0_incorrectly_implements_class_1_Did_you_mean_to_extend_1_and_inherit_its_members_as_a_subclass:ca(2720,1,"Class_0_incorrectly_implements_class_1_Did_you_mean_to_extend_1_and_inherit_its_members_as_a_subclas_2720","Class '{0}' incorrectly implements class '{1}'. Did you mean to extend '{1}' and inherit its members as a subclass?"),Cannot_invoke_an_object_which_is_possibly_null:ca(2721,1,"Cannot_invoke_an_object_which_is_possibly_null_2721","Cannot invoke an object which is possibly 'null'."),Cannot_invoke_an_object_which_is_possibly_undefined:ca(2722,1,"Cannot_invoke_an_object_which_is_possibly_undefined_2722","Cannot invoke an object which is possibly 'undefined'."),Cannot_invoke_an_object_which_is_possibly_null_or_undefined:ca(2723,1,"Cannot_invoke_an_object_which_is_possibly_null_or_undefined_2723","Cannot invoke an object which is possibly 'null' or 'undefined'."),_0_has_no_exported_member_named_1_Did_you_mean_2:ca(2724,1,"_0_has_no_exported_member_named_1_Did_you_mean_2_2724","'{0}' has no exported member named '{1}'. Did you mean '{2}'?"),Class_name_cannot_be_Object_when_targeting_ES5_with_module_0:ca(2725,1,"Class_name_cannot_be_Object_when_targeting_ES5_with_module_0_2725","Class name cannot be 'Object' when targeting ES5 with module {0}."),Cannot_find_lib_definition_for_0:ca(2726,1,"Cannot_find_lib_definition_for_0_2726","Cannot find lib definition for '{0}'."),Cannot_find_lib_definition_for_0_Did_you_mean_1:ca(2727,1,"Cannot_find_lib_definition_for_0_Did_you_mean_1_2727","Cannot find lib definition for '{0}'. Did you mean '{1}'?"),_0_is_declared_here:ca(2728,3,"_0_is_declared_here_2728","'{0}' is declared here."),Property_0_is_used_before_its_initialization:ca(2729,1,"Property_0_is_used_before_its_initialization_2729","Property '{0}' is used before its initialization."),An_arrow_function_cannot_have_a_this_parameter:ca(2730,1,"An_arrow_function_cannot_have_a_this_parameter_2730","An arrow function cannot have a 'this' parameter."),Implicit_conversion_of_a_symbol_to_a_string_will_fail_at_runtime_Consider_wrapping_this_expression_in_String:ca(2731,1,"Implicit_conversion_of_a_symbol_to_a_string_will_fail_at_runtime_Consider_wrapping_this_expression_i_2731","Implicit conversion of a 'symbol' to a 'string' will fail at runtime. Consider wrapping this expression in 'String(...)'."),Cannot_find_module_0_Consider_using_resolveJsonModule_to_import_module_with_json_extension:ca(2732,1,"Cannot_find_module_0_Consider_using_resolveJsonModule_to_import_module_with_json_extension_2732","Cannot find module '{0}'. Consider using '--resolveJsonModule' to import module with '.json' extension."),Property_0_was_also_declared_here:ca(2733,1,"Property_0_was_also_declared_here_2733","Property '{0}' was also declared here."),Are_you_missing_a_semicolon:ca(2734,1,"Are_you_missing_a_semicolon_2734","Are you missing a semicolon?"),Did_you_mean_for_0_to_be_constrained_to_type_new_args_Colon_any_1:ca(2735,1,"Did_you_mean_for_0_to_be_constrained_to_type_new_args_Colon_any_1_2735","Did you mean for '{0}' to be constrained to type 'new (...args: any[]) => {1}'?"),Operator_0_cannot_be_applied_to_type_1:ca(2736,1,"Operator_0_cannot_be_applied_to_type_1_2736","Operator '{0}' cannot be applied to type '{1}'."),BigInt_literals_are_not_available_when_targeting_lower_than_ES2020:ca(2737,1,"BigInt_literals_are_not_available_when_targeting_lower_than_ES2020_2737","BigInt literals are not available when targeting lower than ES2020."),An_outer_value_of_this_is_shadowed_by_this_container:ca(2738,3,"An_outer_value_of_this_is_shadowed_by_this_container_2738","An outer value of 'this' is shadowed by this container."),Type_0_is_missing_the_following_properties_from_type_1_Colon_2:ca(2739,1,"Type_0_is_missing_the_following_properties_from_type_1_Colon_2_2739","Type '{0}' is missing the following properties from type '{1}': {2}"),Type_0_is_missing_the_following_properties_from_type_1_Colon_2_and_3_more:ca(2740,1,"Type_0_is_missing_the_following_properties_from_type_1_Colon_2_and_3_more_2740","Type '{0}' is missing the following properties from type '{1}': {2}, and {3} more."),Property_0_is_missing_in_type_1_but_required_in_type_2:ca(2741,1,"Property_0_is_missing_in_type_1_but_required_in_type_2_2741","Property '{0}' is missing in type '{1}' but required in type '{2}'."),The_inferred_type_of_0_cannot_be_named_without_a_reference_to_1_This_is_likely_not_portable_A_type_annotation_is_necessary:ca(2742,1,"The_inferred_type_of_0_cannot_be_named_without_a_reference_to_1_This_is_likely_not_portable_A_type_a_2742","The inferred type of '{0}' cannot be named without a reference to '{1}'. This is likely not portable. A type annotation is necessary."),No_overload_expects_0_type_arguments_but_overloads_do_exist_that_expect_either_1_or_2_type_arguments:ca(2743,1,"No_overload_expects_0_type_arguments_but_overloads_do_exist_that_expect_either_1_or_2_type_arguments_2743","No overload expects {0} type arguments, but overloads do exist that expect either {1} or {2} type arguments."),Type_parameter_defaults_can_only_reference_previously_declared_type_parameters:ca(2744,1,"Type_parameter_defaults_can_only_reference_previously_declared_type_parameters_2744","Type parameter defaults can only reference previously declared type parameters."),This_JSX_tag_s_0_prop_expects_type_1_which_requires_multiple_children_but_only_a_single_child_was_provided:ca(2745,1,"This_JSX_tag_s_0_prop_expects_type_1_which_requires_multiple_children_but_only_a_single_child_was_pr_2745","This JSX tag's '{0}' prop expects type '{1}' which requires multiple children, but only a single child was provided."),This_JSX_tag_s_0_prop_expects_a_single_child_of_type_1_but_multiple_children_were_provided:ca(2746,1,"This_JSX_tag_s_0_prop_expects_a_single_child_of_type_1_but_multiple_children_were_provided_2746","This JSX tag's '{0}' prop expects a single child of type '{1}', but multiple children were provided."),_0_components_don_t_accept_text_as_child_elements_Text_in_JSX_has_the_type_string_but_the_expected_type_of_1_is_2:ca(2747,1,"_0_components_don_t_accept_text_as_child_elements_Text_in_JSX_has_the_type_string_but_the_expected_t_2747","'{0}' components don't accept text as child elements. Text in JSX has the type 'string', but the expected type of '{1}' is '{2}'."),Cannot_access_ambient_const_enums_when_0_is_enabled:ca(2748,1,"Cannot_access_ambient_const_enums_when_0_is_enabled_2748","Cannot access ambient const enums when '{0}' is enabled."),_0_refers_to_a_value_but_is_being_used_as_a_type_here_Did_you_mean_typeof_0:ca(2749,1,"_0_refers_to_a_value_but_is_being_used_as_a_type_here_Did_you_mean_typeof_0_2749","'{0}' refers to a value, but is being used as a type here. Did you mean 'typeof {0}'?"),The_implementation_signature_is_declared_here:ca(2750,1,"The_implementation_signature_is_declared_here_2750","The implementation signature is declared here."),Circularity_originates_in_type_at_this_location:ca(2751,1,"Circularity_originates_in_type_at_this_location_2751","Circularity originates in type at this location."),The_first_export_default_is_here:ca(2752,1,"The_first_export_default_is_here_2752","The first export default is here."),Another_export_default_is_here:ca(2753,1,"Another_export_default_is_here_2753","Another export default is here."),super_may_not_use_type_arguments:ca(2754,1,"super_may_not_use_type_arguments_2754","'super' may not use type arguments."),No_constituent_of_type_0_is_callable:ca(2755,1,"No_constituent_of_type_0_is_callable_2755","No constituent of type '{0}' is callable."),Not_all_constituents_of_type_0_are_callable:ca(2756,1,"Not_all_constituents_of_type_0_are_callable_2756","Not all constituents of type '{0}' are callable."),Type_0_has_no_call_signatures:ca(2757,1,"Type_0_has_no_call_signatures_2757","Type '{0}' has no call signatures."),Each_member_of_the_union_type_0_has_signatures_but_none_of_those_signatures_are_compatible_with_each_other:ca(2758,1,"Each_member_of_the_union_type_0_has_signatures_but_none_of_those_signatures_are_compatible_with_each_2758","Each member of the union type '{0}' has signatures, but none of those signatures are compatible with each other."),No_constituent_of_type_0_is_constructable:ca(2759,1,"No_constituent_of_type_0_is_constructable_2759","No constituent of type '{0}' is constructable."),Not_all_constituents_of_type_0_are_constructable:ca(2760,1,"Not_all_constituents_of_type_0_are_constructable_2760","Not all constituents of type '{0}' are constructable."),Type_0_has_no_construct_signatures:ca(2761,1,"Type_0_has_no_construct_signatures_2761","Type '{0}' has no construct signatures."),Each_member_of_the_union_type_0_has_construct_signatures_but_none_of_those_signatures_are_compatible_with_each_other:ca(2762,1,"Each_member_of_the_union_type_0_has_construct_signatures_but_none_of_those_signatures_are_compatible_2762","Each member of the union type '{0}' has construct signatures, but none of those signatures are compatible with each other."),Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_for_of_will_always_send_0:ca(2763,1,"Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_for_of_will_always_s_2763","Cannot iterate value because the 'next' method of its iterator expects type '{1}', but for-of will always send '{0}'."),Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_array_spread_will_always_send_0:ca(2764,1,"Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_array_spread_will_al_2764","Cannot iterate value because the 'next' method of its iterator expects type '{1}', but array spread will always send '{0}'."),Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_array_destructuring_will_always_send_0:ca(2765,1,"Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_array_destructuring__2765","Cannot iterate value because the 'next' method of its iterator expects type '{1}', but array destructuring will always send '{0}'."),Cannot_delegate_iteration_to_value_because_the_next_method_of_its_iterator_expects_type_1_but_the_containing_generator_will_always_send_0:ca(2766,1,"Cannot_delegate_iteration_to_value_because_the_next_method_of_its_iterator_expects_type_1_but_the_co_2766","Cannot delegate iteration to value because the 'next' method of its iterator expects type '{1}', but the containing generator will always send '{0}'."),The_0_property_of_an_iterator_must_be_a_method:ca(2767,1,"The_0_property_of_an_iterator_must_be_a_method_2767","The '{0}' property of an iterator must be a method."),The_0_property_of_an_async_iterator_must_be_a_method:ca(2768,1,"The_0_property_of_an_async_iterator_must_be_a_method_2768","The '{0}' property of an async iterator must be a method."),No_overload_matches_this_call:ca(2769,1,"No_overload_matches_this_call_2769","No overload matches this call."),The_last_overload_gave_the_following_error:ca(2770,1,"The_last_overload_gave_the_following_error_2770","The last overload gave the following error."),The_last_overload_is_declared_here:ca(2771,1,"The_last_overload_is_declared_here_2771","The last overload is declared here."),Overload_0_of_1_2_gave_the_following_error:ca(2772,1,"Overload_0_of_1_2_gave_the_following_error_2772","Overload {0} of {1}, '{2}', gave the following error."),Did_you_forget_to_use_await:ca(2773,1,"Did_you_forget_to_use_await_2773","Did you forget to use 'await'?"),This_condition_will_always_return_true_since_this_function_is_always_defined_Did_you_mean_to_call_it_instead:ca(2774,1,"This_condition_will_always_return_true_since_this_function_is_always_defined_Did_you_mean_to_call_it_2774","This condition will always return true since this function is always defined. Did you mean to call it instead?"),Assertions_require_every_name_in_the_call_target_to_be_declared_with_an_explicit_type_annotation:ca(2775,1,"Assertions_require_every_name_in_the_call_target_to_be_declared_with_an_explicit_type_annotation_2775","Assertions require every name in the call target to be declared with an explicit type annotation."),Assertions_require_the_call_target_to_be_an_identifier_or_qualified_name:ca(2776,1,"Assertions_require_the_call_target_to_be_an_identifier_or_qualified_name_2776","Assertions require the call target to be an identifier or qualified name."),The_operand_of_an_increment_or_decrement_operator_may_not_be_an_optional_property_access:ca(2777,1,"The_operand_of_an_increment_or_decrement_operator_may_not_be_an_optional_property_access_2777","The operand of an increment or decrement operator may not be an optional property access."),The_target_of_an_object_rest_assignment_may_not_be_an_optional_property_access:ca(2778,1,"The_target_of_an_object_rest_assignment_may_not_be_an_optional_property_access_2778","The target of an object rest assignment may not be an optional property access."),The_left_hand_side_of_an_assignment_expression_may_not_be_an_optional_property_access:ca(2779,1,"The_left_hand_side_of_an_assignment_expression_may_not_be_an_optional_property_access_2779","The left-hand side of an assignment expression may not be an optional property access."),The_left_hand_side_of_a_for_in_statement_may_not_be_an_optional_property_access:ca(2780,1,"The_left_hand_side_of_a_for_in_statement_may_not_be_an_optional_property_access_2780","The left-hand side of a 'for...in' statement may not be an optional property access."),The_left_hand_side_of_a_for_of_statement_may_not_be_an_optional_property_access:ca(2781,1,"The_left_hand_side_of_a_for_of_statement_may_not_be_an_optional_property_access_2781","The left-hand side of a 'for...of' statement may not be an optional property access."),_0_needs_an_explicit_type_annotation:ca(2782,3,"_0_needs_an_explicit_type_annotation_2782","'{0}' needs an explicit type annotation."),_0_is_specified_more_than_once_so_this_usage_will_be_overwritten:ca(2783,1,"_0_is_specified_more_than_once_so_this_usage_will_be_overwritten_2783","'{0}' is specified more than once, so this usage will be overwritten."),get_and_set_accessors_cannot_declare_this_parameters:ca(2784,1,"get_and_set_accessors_cannot_declare_this_parameters_2784","'get' and 'set' accessors cannot declare 'this' parameters."),This_spread_always_overwrites_this_property:ca(2785,1,"This_spread_always_overwrites_this_property_2785","This spread always overwrites this property."),_0_cannot_be_used_as_a_JSX_component:ca(2786,1,"_0_cannot_be_used_as_a_JSX_component_2786","'{0}' cannot be used as a JSX component."),Its_return_type_0_is_not_a_valid_JSX_element:ca(2787,1,"Its_return_type_0_is_not_a_valid_JSX_element_2787","Its return type '{0}' is not a valid JSX element."),Its_instance_type_0_is_not_a_valid_JSX_element:ca(2788,1,"Its_instance_type_0_is_not_a_valid_JSX_element_2788","Its instance type '{0}' is not a valid JSX element."),Its_element_type_0_is_not_a_valid_JSX_element:ca(2789,1,"Its_element_type_0_is_not_a_valid_JSX_element_2789","Its element type '{0}' is not a valid JSX element."),The_operand_of_a_delete_operator_must_be_optional:ca(2790,1,"The_operand_of_a_delete_operator_must_be_optional_2790","The operand of a 'delete' operator must be optional."),Exponentiation_cannot_be_performed_on_bigint_values_unless_the_target_option_is_set_to_es2016_or_later:ca(2791,1,"Exponentiation_cannot_be_performed_on_bigint_values_unless_the_target_option_is_set_to_es2016_or_lat_2791","Exponentiation cannot be performed on 'bigint' values unless the 'target' option is set to 'es2016' or later."),Cannot_find_module_0_Did_you_mean_to_set_the_moduleResolution_option_to_nodenext_or_to_add_aliases_to_the_paths_option:ca(2792,1,"Cannot_find_module_0_Did_you_mean_to_set_the_moduleResolution_option_to_nodenext_or_to_add_aliases_t_2792","Cannot find module '{0}'. Did you mean to set the 'moduleResolution' option to 'nodenext', or to add aliases to the 'paths' option?"),The_call_would_have_succeeded_against_this_implementation_but_implementation_signatures_of_overloads_are_not_externally_visible:ca(2793,1,"The_call_would_have_succeeded_against_this_implementation_but_implementation_signatures_of_overloads_2793","The call would have succeeded against this implementation, but implementation signatures of overloads are not externally visible."),Expected_0_arguments_but_got_1_Did_you_forget_to_include_void_in_your_type_argument_to_Promise:ca(2794,1,"Expected_0_arguments_but_got_1_Did_you_forget_to_include_void_in_your_type_argument_to_Promise_2794","Expected {0} arguments, but got {1}. Did you forget to include 'void' in your type argument to 'Promise'?"),The_intrinsic_keyword_can_only_be_used_to_declare_compiler_provided_intrinsic_types:ca(2795,1,"The_intrinsic_keyword_can_only_be_used_to_declare_compiler_provided_intrinsic_types_2795","The 'intrinsic' keyword can only be used to declare compiler provided intrinsic types."),It_is_likely_that_you_are_missing_a_comma_to_separate_these_two_template_expressions_They_form_a_tagged_template_expression_which_cannot_be_invoked:ca(2796,1,"It_is_likely_that_you_are_missing_a_comma_to_separate_these_two_template_expressions_They_form_a_tag_2796","It is likely that you are missing a comma to separate these two template expressions. They form a tagged template expression which cannot be invoked."),A_mixin_class_that_extends_from_a_type_variable_containing_an_abstract_construct_signature_must_also_be_declared_abstract:ca(2797,1,"A_mixin_class_that_extends_from_a_type_variable_containing_an_abstract_construct_signature_must_also_2797","A mixin class that extends from a type variable containing an abstract construct signature must also be declared 'abstract'."),The_declaration_was_marked_as_deprecated_here:ca(2798,1,"The_declaration_was_marked_as_deprecated_here_2798","The declaration was marked as deprecated here."),Type_produces_a_tuple_type_that_is_too_large_to_represent:ca(2799,1,"Type_produces_a_tuple_type_that_is_too_large_to_represent_2799","Type produces a tuple type that is too large to represent."),Expression_produces_a_tuple_type_that_is_too_large_to_represent:ca(2800,1,"Expression_produces_a_tuple_type_that_is_too_large_to_represent_2800","Expression produces a tuple type that is too large to represent."),This_condition_will_always_return_true_since_this_0_is_always_defined:ca(2801,1,"This_condition_will_always_return_true_since_this_0_is_always_defined_2801","This condition will always return true since this '{0}' is always defined."),Type_0_can_only_be_iterated_through_when_using_the_downlevelIteration_flag_or_with_a_target_of_es2015_or_higher:ca(2802,1,"Type_0_can_only_be_iterated_through_when_using_the_downlevelIteration_flag_or_with_a_target_of_es201_2802","Type '{0}' can only be iterated through when using the '--downlevelIteration' flag or with a '--target' of 'es2015' or higher."),Cannot_assign_to_private_method_0_Private_methods_are_not_writable:ca(2803,1,"Cannot_assign_to_private_method_0_Private_methods_are_not_writable_2803","Cannot assign to private method '{0}'. Private methods are not writable."),Duplicate_identifier_0_Static_and_instance_elements_cannot_share_the_same_private_name:ca(2804,1,"Duplicate_identifier_0_Static_and_instance_elements_cannot_share_the_same_private_name_2804","Duplicate identifier '{0}'. Static and instance elements cannot share the same private name."),Private_accessor_was_defined_without_a_getter:ca(2806,1,"Private_accessor_was_defined_without_a_getter_2806","Private accessor was defined without a getter."),This_syntax_requires_an_imported_helper_named_1_with_2_parameters_which_is_not_compatible_with_the_one_in_0_Consider_upgrading_your_version_of_0:ca(2807,1,"This_syntax_requires_an_imported_helper_named_1_with_2_parameters_which_is_not_compatible_with_the_o_2807","This syntax requires an imported helper named '{1}' with {2} parameters, which is not compatible with the one in '{0}'. Consider upgrading your version of '{0}'."),A_get_accessor_must_be_at_least_as_accessible_as_the_setter:ca(2808,1,"A_get_accessor_must_be_at_least_as_accessible_as_the_setter_2808","A get accessor must be at least as accessible as the setter"),Declaration_or_statement_expected_This_follows_a_block_of_statements_so_if_you_intended_to_write_a_destructuring_assignment_you_might_need_to_wrap_the_whole_assignment_in_parentheses:ca(2809,1,"Declaration_or_statement_expected_This_follows_a_block_of_statements_so_if_you_intended_to_write_a_d_2809","Declaration or statement expected. This '=' follows a block of statements, so if you intended to write a destructuring assignment, you might need to wrap the whole assignment in parentheses."),Expected_1_argument_but_got_0_new_Promise_needs_a_JSDoc_hint_to_produce_a_resolve_that_can_be_called_without_arguments:ca(2810,1,"Expected_1_argument_but_got_0_new_Promise_needs_a_JSDoc_hint_to_produce_a_resolve_that_can_be_called_2810","Expected 1 argument, but got 0. 'new Promise()' needs a JSDoc hint to produce a 'resolve' that can be called without arguments."),Initializer_for_property_0:ca(2811,1,"Initializer_for_property_0_2811","Initializer for property '{0}'"),Property_0_does_not_exist_on_type_1_Try_changing_the_lib_compiler_option_to_include_dom:ca(2812,1,"Property_0_does_not_exist_on_type_1_Try_changing_the_lib_compiler_option_to_include_dom_2812","Property '{0}' does not exist on type '{1}'. Try changing the 'lib' compiler option to include 'dom'."),Class_declaration_cannot_implement_overload_list_for_0:ca(2813,1,"Class_declaration_cannot_implement_overload_list_for_0_2813","Class declaration cannot implement overload list for '{0}'."),Function_with_bodies_can_only_merge_with_classes_that_are_ambient:ca(2814,1,"Function_with_bodies_can_only_merge_with_classes_that_are_ambient_2814","Function with bodies can only merge with classes that are ambient."),arguments_cannot_be_referenced_in_property_initializers:ca(2815,1,"arguments_cannot_be_referenced_in_property_initializers_2815","'arguments' cannot be referenced in property initializers."),Cannot_use_this_in_a_static_property_initializer_of_a_decorated_class:ca(2816,1,"Cannot_use_this_in_a_static_property_initializer_of_a_decorated_class_2816","Cannot use 'this' in a static property initializer of a decorated class."),Property_0_has_no_initializer_and_is_not_definitely_assigned_in_a_class_static_block:ca(2817,1,"Property_0_has_no_initializer_and_is_not_definitely_assigned_in_a_class_static_block_2817","Property '{0}' has no initializer and is not definitely assigned in a class static block."),Duplicate_identifier_0_Compiler_reserves_name_1_when_emitting_super_references_in_static_initializers:ca(2818,1,"Duplicate_identifier_0_Compiler_reserves_name_1_when_emitting_super_references_in_static_initializer_2818","Duplicate identifier '{0}'. Compiler reserves name '{1}' when emitting 'super' references in static initializers."),Namespace_name_cannot_be_0:ca(2819,1,"Namespace_name_cannot_be_0_2819","Namespace name cannot be '{0}'."),Type_0_is_not_assignable_to_type_1_Did_you_mean_2:ca(2820,1,"Type_0_is_not_assignable_to_type_1_Did_you_mean_2_2820","Type '{0}' is not assignable to type '{1}'. Did you mean '{2}'?"),Import_assertions_are_only_supported_when_the_module_option_is_set_to_esnext_nodenext_or_preserve:ca(2821,1,"Import_assertions_are_only_supported_when_the_module_option_is_set_to_esnext_nodenext_or_preserve_2821","Import assertions are only supported when the '--module' option is set to 'esnext', 'nodenext', or 'preserve'."),Import_assertions_cannot_be_used_with_type_only_imports_or_exports:ca(2822,1,"Import_assertions_cannot_be_used_with_type_only_imports_or_exports_2822","Import assertions cannot be used with type-only imports or exports."),Import_attributes_are_only_supported_when_the_module_option_is_set_to_esnext_nodenext_or_preserve:ca(2823,1,"Import_attributes_are_only_supported_when_the_module_option_is_set_to_esnext_nodenext_or_preserve_2823","Import attributes are only supported when the '--module' option is set to 'esnext', 'nodenext', or 'preserve'."),Cannot_find_namespace_0_Did_you_mean_1:ca(2833,1,"Cannot_find_namespace_0_Did_you_mean_1_2833","Cannot find namespace '{0}'. Did you mean '{1}'?"),Relative_import_paths_need_explicit_file_extensions_in_ECMAScript_imports_when_moduleResolution_is_node16_or_nodenext_Consider_adding_an_extension_to_the_import_path:ca(2834,1,"Relative_import_paths_need_explicit_file_extensions_in_ECMAScript_imports_when_moduleResolution_is_n_2834","Relative import paths need explicit file extensions in ECMAScript imports when '--moduleResolution' is 'node16' or 'nodenext'. Consider adding an extension to the import path."),Relative_import_paths_need_explicit_file_extensions_in_ECMAScript_imports_when_moduleResolution_is_node16_or_nodenext_Did_you_mean_0:ca(2835,1,"Relative_import_paths_need_explicit_file_extensions_in_ECMAScript_imports_when_moduleResolution_is_n_2835","Relative import paths need explicit file extensions in ECMAScript imports when '--moduleResolution' is 'node16' or 'nodenext'. Did you mean '{0}'?"),Import_assertions_are_not_allowed_on_statements_that_compile_to_CommonJS_require_calls:ca(2836,1,"Import_assertions_are_not_allowed_on_statements_that_compile_to_CommonJS_require_calls_2836","Import assertions are not allowed on statements that compile to CommonJS 'require' calls."),Import_assertion_values_must_be_string_literal_expressions:ca(2837,1,"Import_assertion_values_must_be_string_literal_expressions_2837","Import assertion values must be string literal expressions."),All_declarations_of_0_must_have_identical_constraints:ca(2838,1,"All_declarations_of_0_must_have_identical_constraints_2838","All declarations of '{0}' must have identical constraints."),This_condition_will_always_return_0_since_JavaScript_compares_objects_by_reference_not_value:ca(2839,1,"This_condition_will_always_return_0_since_JavaScript_compares_objects_by_reference_not_value_2839","This condition will always return '{0}' since JavaScript compares objects by reference, not value."),An_interface_cannot_extend_a_primitive_type_like_0_It_can_only_extend_other_named_object_types:ca(2840,1,"An_interface_cannot_extend_a_primitive_type_like_0_It_can_only_extend_other_named_object_types_2840","An interface cannot extend a primitive type like '{0}'. It can only extend other named object types."),_0_is_an_unused_renaming_of_1_Did_you_intend_to_use_it_as_a_type_annotation:ca(2842,1,"_0_is_an_unused_renaming_of_1_Did_you_intend_to_use_it_as_a_type_annotation_2842","'{0}' is an unused renaming of '{1}'. Did you intend to use it as a type annotation?"),We_can_only_write_a_type_for_0_by_adding_a_type_for_the_entire_parameter_here:ca(2843,1,"We_can_only_write_a_type_for_0_by_adding_a_type_for_the_entire_parameter_here_2843","We can only write a type for '{0}' by adding a type for the entire parameter here."),Type_of_instance_member_variable_0_cannot_reference_identifier_1_declared_in_the_constructor:ca(2844,1,"Type_of_instance_member_variable_0_cannot_reference_identifier_1_declared_in_the_constructor_2844","Type of instance member variable '{0}' cannot reference identifier '{1}' declared in the constructor."),This_condition_will_always_return_0:ca(2845,1,"This_condition_will_always_return_0_2845","This condition will always return '{0}'."),A_declaration_file_cannot_be_imported_without_import_type_Did_you_mean_to_import_an_implementation_file_0_instead:ca(2846,1,"A_declaration_file_cannot_be_imported_without_import_type_Did_you_mean_to_import_an_implementation_f_2846","A declaration file cannot be imported without 'import type'. Did you mean to import an implementation file '{0}' instead?"),The_right_hand_side_of_an_instanceof_expression_must_not_be_an_instantiation_expression:ca(2848,1,"The_right_hand_side_of_an_instanceof_expression_must_not_be_an_instantiation_expression_2848","The right-hand side of an 'instanceof' expression must not be an instantiation expression."),Target_signature_provides_too_few_arguments_Expected_0_or_more_but_got_1:ca(2849,1,"Target_signature_provides_too_few_arguments_Expected_0_or_more_but_got_1_2849","Target signature provides too few arguments. Expected {0} or more, but got {1}."),The_initializer_of_a_using_declaration_must_be_either_an_object_with_a_Symbol_dispose_method_or_be_null_or_undefined:ca(2850,1,"The_initializer_of_a_using_declaration_must_be_either_an_object_with_a_Symbol_dispose_method_or_be_n_2850","The initializer of a 'using' declaration must be either an object with a '[Symbol.dispose]()' method, or be 'null' or 'undefined'."),The_initializer_of_an_await_using_declaration_must_be_either_an_object_with_a_Symbol_asyncDispose_or_Symbol_dispose_method_or_be_null_or_undefined:ca(2851,1,"The_initializer_of_an_await_using_declaration_must_be_either_an_object_with_a_Symbol_asyncDispose_or_2851","The initializer of an 'await using' declaration must be either an object with a '[Symbol.asyncDispose]()' or '[Symbol.dispose]()' method, or be 'null' or 'undefined'."),await_using_statements_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules:ca(2852,1,"await_using_statements_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules_2852","'await using' statements are only allowed within async functions and at the top levels of modules."),await_using_statements_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_this_file_has_no_imports_or_exports_Consider_adding_an_empty_export_to_make_this_file_a_module:ca(2853,1,"await_using_statements_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_th_2853","'await using' statements are only allowed at the top level of a file when that file is a module, but this file has no imports or exports. Consider adding an empty 'export {}' to make this file a module."),Top_level_await_using_statements_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_node16_nodenext_or_preserve_and_the_target_option_is_set_to_es2017_or_higher:ca(2854,1,"Top_level_await_using_statements_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_sys_2854","Top-level 'await using' statements are only allowed when the 'module' option is set to 'es2022', 'esnext', 'system', 'node16', 'nodenext', or 'preserve', and the 'target' option is set to 'es2017' or higher."),Class_field_0_defined_by_the_parent_class_is_not_accessible_in_the_child_class_via_super:ca(2855,1,"Class_field_0_defined_by_the_parent_class_is_not_accessible_in_the_child_class_via_super_2855","Class field '{0}' defined by the parent class is not accessible in the child class via super."),Import_attributes_are_not_allowed_on_statements_that_compile_to_CommonJS_require_calls:ca(2856,1,"Import_attributes_are_not_allowed_on_statements_that_compile_to_CommonJS_require_calls_2856","Import attributes are not allowed on statements that compile to CommonJS 'require' calls."),Import_attributes_cannot_be_used_with_type_only_imports_or_exports:ca(2857,1,"Import_attributes_cannot_be_used_with_type_only_imports_or_exports_2857","Import attributes cannot be used with type-only imports or exports."),Import_attribute_values_must_be_string_literal_expressions:ca(2858,1,"Import_attribute_values_must_be_string_literal_expressions_2858","Import attribute values must be string literal expressions."),Excessive_complexity_comparing_types_0_and_1:ca(2859,1,"Excessive_complexity_comparing_types_0_and_1_2859","Excessive complexity comparing types '{0}' and '{1}'."),The_left_hand_side_of_an_instanceof_expression_must_be_assignable_to_the_first_argument_of_the_right_hand_side_s_Symbol_hasInstance_method:ca(2860,1,"The_left_hand_side_of_an_instanceof_expression_must_be_assignable_to_the_first_argument_of_the_right_2860","The left-hand side of an 'instanceof' expression must be assignable to the first argument of the right-hand side's '[Symbol.hasInstance]' method."),An_object_s_Symbol_hasInstance_method_must_return_a_boolean_value_for_it_to_be_used_on_the_right_hand_side_of_an_instanceof_expression:ca(2861,1,"An_object_s_Symbol_hasInstance_method_must_return_a_boolean_value_for_it_to_be_used_on_the_right_han_2861","An object's '[Symbol.hasInstance]' method must return a boolean value for it to be used on the right-hand side of an 'instanceof' expression."),Type_0_is_generic_and_can_only_be_indexed_for_reading:ca(2862,1,"Type_0_is_generic_and_can_only_be_indexed_for_reading_2862","Type '{0}' is generic and can only be indexed for reading."),A_class_cannot_extend_a_primitive_type_like_0_Classes_can_only_extend_constructable_values:ca(2863,1,"A_class_cannot_extend_a_primitive_type_like_0_Classes_can_only_extend_constructable_values_2863","A class cannot extend a primitive type like '{0}'. Classes can only extend constructable values."),A_class_cannot_implement_a_primitive_type_like_0_It_can_only_implement_other_named_object_types:ca(2864,1,"A_class_cannot_implement_a_primitive_type_like_0_It_can_only_implement_other_named_object_types_2864","A class cannot implement a primitive type like '{0}'. It can only implement other named object types."),Import_0_conflicts_with_local_value_so_must_be_declared_with_a_type_only_import_when_isolatedModules_is_enabled:ca(2865,1,"Import_0_conflicts_with_local_value_so_must_be_declared_with_a_type_only_import_when_isolatedModules_2865","Import '{0}' conflicts with local value, so must be declared with a type-only import when 'isolatedModules' is enabled."),Import_0_conflicts_with_global_value_used_in_this_file_so_must_be_declared_with_a_type_only_import_when_isolatedModules_is_enabled:ca(2866,1,"Import_0_conflicts_with_global_value_used_in_this_file_so_must_be_declared_with_a_type_only_import_w_2866","Import '{0}' conflicts with global value used in this file, so must be declared with a type-only import when 'isolatedModules' is enabled."),Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_Bun_Try_npm_i_save_dev_types_Slashbun:ca(2867,1,"Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_Bun_Try_npm_i_save_dev_types_Slashbun_2867","Cannot find name '{0}'. Do you need to install type definitions for Bun? Try `npm i --save-dev @types/bun`."),Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_Bun_Try_npm_i_save_dev_types_Slashbun_and_then_add_bun_to_the_types_field_in_your_tsconfig:ca(2868,1,"Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_Bun_Try_npm_i_save_dev_types_Slashbun_2868","Cannot find name '{0}'. Do you need to install type definitions for Bun? Try `npm i --save-dev @types/bun` and then add 'bun' to the types field in your tsconfig."),Right_operand_of_is_unreachable_because_the_left_operand_is_never_nullish:ca(2869,1,"Right_operand_of_is_unreachable_because_the_left_operand_is_never_nullish_2869","Right operand of ?? is unreachable because the left operand is never nullish."),This_binary_expression_is_never_nullish_Are_you_missing_parentheses:ca(2870,1,"This_binary_expression_is_never_nullish_Are_you_missing_parentheses_2870","This binary expression is never nullish. Are you missing parentheses?"),This_expression_is_always_nullish:ca(2871,1,"This_expression_is_always_nullish_2871","This expression is always nullish."),This_kind_of_expression_is_always_truthy:ca(2872,1,"This_kind_of_expression_is_always_truthy_2872","This kind of expression is always truthy."),This_kind_of_expression_is_always_falsy:ca(2873,1,"This_kind_of_expression_is_always_falsy_2873","This kind of expression is always falsy."),This_JSX_tag_requires_0_to_be_in_scope_but_it_could_not_be_found:ca(2874,1,"This_JSX_tag_requires_0_to_be_in_scope_but_it_could_not_be_found_2874","This JSX tag requires '{0}' to be in scope, but it could not be found."),This_JSX_tag_requires_the_module_path_0_to_exist_but_none_could_be_found_Make_sure_you_have_types_for_the_appropriate_package_installed:ca(2875,1,"This_JSX_tag_requires_the_module_path_0_to_exist_but_none_could_be_found_Make_sure_you_have_types_fo_2875","This JSX tag requires the module path '{0}' to exist, but none could be found. Make sure you have types for the appropriate package installed."),This_relative_import_path_is_unsafe_to_rewrite_because_it_looks_like_a_file_name_but_actually_resolves_to_0:ca(2876,1,"This_relative_import_path_is_unsafe_to_rewrite_because_it_looks_like_a_file_name_but_actually_resolv_2876",'This relative import path is unsafe to rewrite because it looks like a file name, but actually resolves to "{0}".'),This_import_uses_a_0_extension_to_resolve_to_an_input_TypeScript_file_but_will_not_be_rewritten_during_emit_because_it_is_not_a_relative_path:ca(2877,1,"This_import_uses_a_0_extension_to_resolve_to_an_input_TypeScript_file_but_will_not_be_rewritten_duri_2877","This import uses a '{0}' extension to resolve to an input TypeScript file, but will not be rewritten during emit because it is not a relative path."),This_import_path_is_unsafe_to_rewrite_because_it_resolves_to_another_project_and_the_relative_path_between_the_projects_output_files_is_not_the_same_as_the_relative_path_between_its_input_files:ca(2878,1,"This_import_path_is_unsafe_to_rewrite_because_it_resolves_to_another_project_and_the_relative_path_b_2878","This import path is unsafe to rewrite because it resolves to another project, and the relative path between the projects' output files is not the same as the relative path between its input files."),Using_JSX_fragments_requires_fragment_factory_0_to_be_in_scope_but_it_could_not_be_found:ca(2879,1,"Using_JSX_fragments_requires_fragment_factory_0_to_be_in_scope_but_it_could_not_be_found_2879","Using JSX fragments requires fragment factory '{0}' to be in scope, but it could not be found."),Import_declaration_0_is_using_private_name_1:ca(4e3,1,"Import_declaration_0_is_using_private_name_1_4000","Import declaration '{0}' is using private name '{1}'."),Type_parameter_0_of_exported_class_has_or_is_using_private_name_1:ca(4002,1,"Type_parameter_0_of_exported_class_has_or_is_using_private_name_1_4002","Type parameter '{0}' of exported class has or is using private name '{1}'."),Type_parameter_0_of_exported_interface_has_or_is_using_private_name_1:ca(4004,1,"Type_parameter_0_of_exported_interface_has_or_is_using_private_name_1_4004","Type parameter '{0}' of exported interface has or is using private name '{1}'."),Type_parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_1:ca(4006,1,"Type_parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_1_4006","Type parameter '{0}' of constructor signature from exported interface has or is using private name '{1}'."),Type_parameter_0_of_call_signature_from_exported_interface_has_or_is_using_private_name_1:ca(4008,1,"Type_parameter_0_of_call_signature_from_exported_interface_has_or_is_using_private_name_1_4008","Type parameter '{0}' of call signature from exported interface has or is using private name '{1}'."),Type_parameter_0_of_public_static_method_from_exported_class_has_or_is_using_private_name_1:ca(4010,1,"Type_parameter_0_of_public_static_method_from_exported_class_has_or_is_using_private_name_1_4010","Type parameter '{0}' of public static method from exported class has or is using private name '{1}'."),Type_parameter_0_of_public_method_from_exported_class_has_or_is_using_private_name_1:ca(4012,1,"Type_parameter_0_of_public_method_from_exported_class_has_or_is_using_private_name_1_4012","Type parameter '{0}' of public method from exported class has or is using private name '{1}'."),Type_parameter_0_of_method_from_exported_interface_has_or_is_using_private_name_1:ca(4014,1,"Type_parameter_0_of_method_from_exported_interface_has_or_is_using_private_name_1_4014","Type parameter '{0}' of method from exported interface has or is using private name '{1}'."),Type_parameter_0_of_exported_function_has_or_is_using_private_name_1:ca(4016,1,"Type_parameter_0_of_exported_function_has_or_is_using_private_name_1_4016","Type parameter '{0}' of exported function has or is using private name '{1}'."),Implements_clause_of_exported_class_0_has_or_is_using_private_name_1:ca(4019,1,"Implements_clause_of_exported_class_0_has_or_is_using_private_name_1_4019","Implements clause of exported class '{0}' has or is using private name '{1}'."),extends_clause_of_exported_class_0_has_or_is_using_private_name_1:ca(4020,1,"extends_clause_of_exported_class_0_has_or_is_using_private_name_1_4020","'extends' clause of exported class '{0}' has or is using private name '{1}'."),extends_clause_of_exported_class_has_or_is_using_private_name_0:ca(4021,1,"extends_clause_of_exported_class_has_or_is_using_private_name_0_4021","'extends' clause of exported class has or is using private name '{0}'."),extends_clause_of_exported_interface_0_has_or_is_using_private_name_1:ca(4022,1,"extends_clause_of_exported_interface_0_has_or_is_using_private_name_1_4022","'extends' clause of exported interface '{0}' has or is using private name '{1}'."),Exported_variable_0_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:ca(4023,1,"Exported_variable_0_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named_4023","Exported variable '{0}' has or is using name '{1}' from external module {2} but cannot be named."),Exported_variable_0_has_or_is_using_name_1_from_private_module_2:ca(4024,1,"Exported_variable_0_has_or_is_using_name_1_from_private_module_2_4024","Exported variable '{0}' has or is using name '{1}' from private module '{2}'."),Exported_variable_0_has_or_is_using_private_name_1:ca(4025,1,"Exported_variable_0_has_or_is_using_private_name_1_4025","Exported variable '{0}' has or is using private name '{1}'."),Public_static_property_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:ca(4026,1,"Public_static_property_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot__4026","Public static property '{0}' of exported class has or is using name '{1}' from external module {2} but cannot be named."),Public_static_property_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:ca(4027,1,"Public_static_property_0_of_exported_class_has_or_is_using_name_1_from_private_module_2_4027","Public static property '{0}' of exported class has or is using name '{1}' from private module '{2}'."),Public_static_property_0_of_exported_class_has_or_is_using_private_name_1:ca(4028,1,"Public_static_property_0_of_exported_class_has_or_is_using_private_name_1_4028","Public static property '{0}' of exported class has or is using private name '{1}'."),Public_property_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:ca(4029,1,"Public_property_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_name_4029","Public property '{0}' of exported class has or is using name '{1}' from external module {2} but cannot be named."),Public_property_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:ca(4030,1,"Public_property_0_of_exported_class_has_or_is_using_name_1_from_private_module_2_4030","Public property '{0}' of exported class has or is using name '{1}' from private module '{2}'."),Public_property_0_of_exported_class_has_or_is_using_private_name_1:ca(4031,1,"Public_property_0_of_exported_class_has_or_is_using_private_name_1_4031","Public property '{0}' of exported class has or is using private name '{1}'."),Property_0_of_exported_interface_has_or_is_using_name_1_from_private_module_2:ca(4032,1,"Property_0_of_exported_interface_has_or_is_using_name_1_from_private_module_2_4032","Property '{0}' of exported interface has or is using name '{1}' from private module '{2}'."),Property_0_of_exported_interface_has_or_is_using_private_name_1:ca(4033,1,"Property_0_of_exported_interface_has_or_is_using_private_name_1_4033","Property '{0}' of exported interface has or is using private name '{1}'."),Parameter_type_of_public_static_setter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2:ca(4034,1,"Parameter_type_of_public_static_setter_0_from_exported_class_has_or_is_using_name_1_from_private_mod_4034","Parameter type of public static setter '{0}' from exported class has or is using name '{1}' from private module '{2}'."),Parameter_type_of_public_static_setter_0_from_exported_class_has_or_is_using_private_name_1:ca(4035,1,"Parameter_type_of_public_static_setter_0_from_exported_class_has_or_is_using_private_name_1_4035","Parameter type of public static setter '{0}' from exported class has or is using private name '{1}'."),Parameter_type_of_public_setter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2:ca(4036,1,"Parameter_type_of_public_setter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2_4036","Parameter type of public setter '{0}' from exported class has or is using name '{1}' from private module '{2}'."),Parameter_type_of_public_setter_0_from_exported_class_has_or_is_using_private_name_1:ca(4037,1,"Parameter_type_of_public_setter_0_from_exported_class_has_or_is_using_private_name_1_4037","Parameter type of public setter '{0}' from exported class has or is using private name '{1}'."),Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:ca(4038,1,"Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_name_1_from_external_modul_4038","Return type of public static getter '{0}' from exported class has or is using name '{1}' from external module {2} but cannot be named."),Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2:ca(4039,1,"Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_name_1_from_private_module_4039","Return type of public static getter '{0}' from exported class has or is using name '{1}' from private module '{2}'."),Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_private_name_1:ca(4040,1,"Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_private_name_1_4040","Return type of public static getter '{0}' from exported class has or is using private name '{1}'."),Return_type_of_public_getter_0_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:ca(4041,1,"Return_type_of_public_getter_0_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_4041","Return type of public getter '{0}' from exported class has or is using name '{1}' from external module {2} but cannot be named."),Return_type_of_public_getter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2:ca(4042,1,"Return_type_of_public_getter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2_4042","Return type of public getter '{0}' from exported class has or is using name '{1}' from private module '{2}'."),Return_type_of_public_getter_0_from_exported_class_has_or_is_using_private_name_1:ca(4043,1,"Return_type_of_public_getter_0_from_exported_class_has_or_is_using_private_name_1_4043","Return type of public getter '{0}' from exported class has or is using private name '{1}'."),Return_type_of_constructor_signature_from_exported_interface_has_or_is_using_name_0_from_private_module_1:ca(4044,1,"Return_type_of_constructor_signature_from_exported_interface_has_or_is_using_name_0_from_private_mod_4044","Return type of constructor signature from exported interface has or is using name '{0}' from private module '{1}'."),Return_type_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_0:ca(4045,1,"Return_type_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_0_4045","Return type of constructor signature from exported interface has or is using private name '{0}'."),Return_type_of_call_signature_from_exported_interface_has_or_is_using_name_0_from_private_module_1:ca(4046,1,"Return_type_of_call_signature_from_exported_interface_has_or_is_using_name_0_from_private_module_1_4046","Return type of call signature from exported interface has or is using name '{0}' from private module '{1}'."),Return_type_of_call_signature_from_exported_interface_has_or_is_using_private_name_0:ca(4047,1,"Return_type_of_call_signature_from_exported_interface_has_or_is_using_private_name_0_4047","Return type of call signature from exported interface has or is using private name '{0}'."),Return_type_of_index_signature_from_exported_interface_has_or_is_using_name_0_from_private_module_1:ca(4048,1,"Return_type_of_index_signature_from_exported_interface_has_or_is_using_name_0_from_private_module_1_4048","Return type of index signature from exported interface has or is using name '{0}' from private module '{1}'."),Return_type_of_index_signature_from_exported_interface_has_or_is_using_private_name_0:ca(4049,1,"Return_type_of_index_signature_from_exported_interface_has_or_is_using_private_name_0_4049","Return type of index signature from exported interface has or is using private name '{0}'."),Return_type_of_public_static_method_from_exported_class_has_or_is_using_name_0_from_external_module_1_but_cannot_be_named:ca(4050,1,"Return_type_of_public_static_method_from_exported_class_has_or_is_using_name_0_from_external_module__4050","Return type of public static method from exported class has or is using name '{0}' from external module {1} but cannot be named."),Return_type_of_public_static_method_from_exported_class_has_or_is_using_name_0_from_private_module_1:ca(4051,1,"Return_type_of_public_static_method_from_exported_class_has_or_is_using_name_0_from_private_module_1_4051","Return type of public static method from exported class has or is using name '{0}' from private module '{1}'."),Return_type_of_public_static_method_from_exported_class_has_or_is_using_private_name_0:ca(4052,1,"Return_type_of_public_static_method_from_exported_class_has_or_is_using_private_name_0_4052","Return type of public static method from exported class has or is using private name '{0}'."),Return_type_of_public_method_from_exported_class_has_or_is_using_name_0_from_external_module_1_but_cannot_be_named:ca(4053,1,"Return_type_of_public_method_from_exported_class_has_or_is_using_name_0_from_external_module_1_but_c_4053","Return type of public method from exported class has or is using name '{0}' from external module {1} but cannot be named."),Return_type_of_public_method_from_exported_class_has_or_is_using_name_0_from_private_module_1:ca(4054,1,"Return_type_of_public_method_from_exported_class_has_or_is_using_name_0_from_private_module_1_4054","Return type of public method from exported class has or is using name '{0}' from private module '{1}'."),Return_type_of_public_method_from_exported_class_has_or_is_using_private_name_0:ca(4055,1,"Return_type_of_public_method_from_exported_class_has_or_is_using_private_name_0_4055","Return type of public method from exported class has or is using private name '{0}'."),Return_type_of_method_from_exported_interface_has_or_is_using_name_0_from_private_module_1:ca(4056,1,"Return_type_of_method_from_exported_interface_has_or_is_using_name_0_from_private_module_1_4056","Return type of method from exported interface has or is using name '{0}' from private module '{1}'."),Return_type_of_method_from_exported_interface_has_or_is_using_private_name_0:ca(4057,1,"Return_type_of_method_from_exported_interface_has_or_is_using_private_name_0_4057","Return type of method from exported interface has or is using private name '{0}'."),Return_type_of_exported_function_has_or_is_using_name_0_from_external_module_1_but_cannot_be_named:ca(4058,1,"Return_type_of_exported_function_has_or_is_using_name_0_from_external_module_1_but_cannot_be_named_4058","Return type of exported function has or is using name '{0}' from external module {1} but cannot be named."),Return_type_of_exported_function_has_or_is_using_name_0_from_private_module_1:ca(4059,1,"Return_type_of_exported_function_has_or_is_using_name_0_from_private_module_1_4059","Return type of exported function has or is using name '{0}' from private module '{1}'."),Return_type_of_exported_function_has_or_is_using_private_name_0:ca(4060,1,"Return_type_of_exported_function_has_or_is_using_private_name_0_4060","Return type of exported function has or is using private name '{0}'."),Parameter_0_of_constructor_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:ca(4061,1,"Parameter_0_of_constructor_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_can_4061","Parameter '{0}' of constructor from exported class has or is using name '{1}' from external module {2} but cannot be named."),Parameter_0_of_constructor_from_exported_class_has_or_is_using_name_1_from_private_module_2:ca(4062,1,"Parameter_0_of_constructor_from_exported_class_has_or_is_using_name_1_from_private_module_2_4062","Parameter '{0}' of constructor from exported class has or is using name '{1}' from private module '{2}'."),Parameter_0_of_constructor_from_exported_class_has_or_is_using_private_name_1:ca(4063,1,"Parameter_0_of_constructor_from_exported_class_has_or_is_using_private_name_1_4063","Parameter '{0}' of constructor from exported class has or is using private name '{1}'."),Parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2:ca(4064,1,"Parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_name_1_from_private_mod_4064","Parameter '{0}' of constructor signature from exported interface has or is using name '{1}' from private module '{2}'."),Parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_1:ca(4065,1,"Parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_1_4065","Parameter '{0}' of constructor signature from exported interface has or is using private name '{1}'."),Parameter_0_of_call_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2:ca(4066,1,"Parameter_0_of_call_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2_4066","Parameter '{0}' of call signature from exported interface has or is using name '{1}' from private module '{2}'."),Parameter_0_of_call_signature_from_exported_interface_has_or_is_using_private_name_1:ca(4067,1,"Parameter_0_of_call_signature_from_exported_interface_has_or_is_using_private_name_1_4067","Parameter '{0}' of call signature from exported interface has or is using private name '{1}'."),Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:ca(4068,1,"Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_name_1_from_external_module__4068","Parameter '{0}' of public static method from exported class has or is using name '{1}' from external module {2} but cannot be named."),Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_name_1_from_private_module_2:ca(4069,1,"Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_name_1_from_private_module_2_4069","Parameter '{0}' of public static method from exported class has or is using name '{1}' from private module '{2}'."),Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_private_name_1:ca(4070,1,"Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_private_name_1_4070","Parameter '{0}' of public static method from exported class has or is using private name '{1}'."),Parameter_0_of_public_method_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:ca(4071,1,"Parameter_0_of_public_method_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_c_4071","Parameter '{0}' of public method from exported class has or is using name '{1}' from external module {2} but cannot be named."),Parameter_0_of_public_method_from_exported_class_has_or_is_using_name_1_from_private_module_2:ca(4072,1,"Parameter_0_of_public_method_from_exported_class_has_or_is_using_name_1_from_private_module_2_4072","Parameter '{0}' of public method from exported class has or is using name '{1}' from private module '{2}'."),Parameter_0_of_public_method_from_exported_class_has_or_is_using_private_name_1:ca(4073,1,"Parameter_0_of_public_method_from_exported_class_has_or_is_using_private_name_1_4073","Parameter '{0}' of public method from exported class has or is using private name '{1}'."),Parameter_0_of_method_from_exported_interface_has_or_is_using_name_1_from_private_module_2:ca(4074,1,"Parameter_0_of_method_from_exported_interface_has_or_is_using_name_1_from_private_module_2_4074","Parameter '{0}' of method from exported interface has or is using name '{1}' from private module '{2}'."),Parameter_0_of_method_from_exported_interface_has_or_is_using_private_name_1:ca(4075,1,"Parameter_0_of_method_from_exported_interface_has_or_is_using_private_name_1_4075","Parameter '{0}' of method from exported interface has or is using private name '{1}'."),Parameter_0_of_exported_function_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:ca(4076,1,"Parameter_0_of_exported_function_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named_4076","Parameter '{0}' of exported function has or is using name '{1}' from external module {2} but cannot be named."),Parameter_0_of_exported_function_has_or_is_using_name_1_from_private_module_2:ca(4077,1,"Parameter_0_of_exported_function_has_or_is_using_name_1_from_private_module_2_4077","Parameter '{0}' of exported function has or is using name '{1}' from private module '{2}'."),Parameter_0_of_exported_function_has_or_is_using_private_name_1:ca(4078,1,"Parameter_0_of_exported_function_has_or_is_using_private_name_1_4078","Parameter '{0}' of exported function has or is using private name '{1}'."),Exported_type_alias_0_has_or_is_using_private_name_1:ca(4081,1,"Exported_type_alias_0_has_or_is_using_private_name_1_4081","Exported type alias '{0}' has or is using private name '{1}'."),Default_export_of_the_module_has_or_is_using_private_name_0:ca(4082,1,"Default_export_of_the_module_has_or_is_using_private_name_0_4082","Default export of the module has or is using private name '{0}'."),Type_parameter_0_of_exported_type_alias_has_or_is_using_private_name_1:ca(4083,1,"Type_parameter_0_of_exported_type_alias_has_or_is_using_private_name_1_4083","Type parameter '{0}' of exported type alias has or is using private name '{1}'."),Exported_type_alias_0_has_or_is_using_private_name_1_from_module_2:ca(4084,1,"Exported_type_alias_0_has_or_is_using_private_name_1_from_module_2_4084","Exported type alias '{0}' has or is using private name '{1}' from module {2}."),Extends_clause_for_inferred_type_0_has_or_is_using_private_name_1:ca(4085,1,"Extends_clause_for_inferred_type_0_has_or_is_using_private_name_1_4085","Extends clause for inferred type '{0}' has or is using private name '{1}'."),Parameter_0_of_index_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2:ca(4091,1,"Parameter_0_of_index_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2_4091","Parameter '{0}' of index signature from exported interface has or is using name '{1}' from private module '{2}'."),Parameter_0_of_index_signature_from_exported_interface_has_or_is_using_private_name_1:ca(4092,1,"Parameter_0_of_index_signature_from_exported_interface_has_or_is_using_private_name_1_4092","Parameter '{0}' of index signature from exported interface has or is using private name '{1}'."),Property_0_of_exported_anonymous_class_type_may_not_be_private_or_protected:ca(4094,1,"Property_0_of_exported_anonymous_class_type_may_not_be_private_or_protected_4094","Property '{0}' of exported anonymous class type may not be private or protected."),Public_static_method_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:ca(4095,1,"Public_static_method_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_4095","Public static method '{0}' of exported class has or is using name '{1}' from external module {2} but cannot be named."),Public_static_method_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:ca(4096,1,"Public_static_method_0_of_exported_class_has_or_is_using_name_1_from_private_module_2_4096","Public static method '{0}' of exported class has or is using name '{1}' from private module '{2}'."),Public_static_method_0_of_exported_class_has_or_is_using_private_name_1:ca(4097,1,"Public_static_method_0_of_exported_class_has_or_is_using_private_name_1_4097","Public static method '{0}' of exported class has or is using private name '{1}'."),Public_method_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:ca(4098,1,"Public_method_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named_4098","Public method '{0}' of exported class has or is using name '{1}' from external module {2} but cannot be named."),Public_method_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:ca(4099,1,"Public_method_0_of_exported_class_has_or_is_using_name_1_from_private_module_2_4099","Public method '{0}' of exported class has or is using name '{1}' from private module '{2}'."),Public_method_0_of_exported_class_has_or_is_using_private_name_1:ca(4100,1,"Public_method_0_of_exported_class_has_or_is_using_private_name_1_4100","Public method '{0}' of exported class has or is using private name '{1}'."),Method_0_of_exported_interface_has_or_is_using_name_1_from_private_module_2:ca(4101,1,"Method_0_of_exported_interface_has_or_is_using_name_1_from_private_module_2_4101","Method '{0}' of exported interface has or is using name '{1}' from private module '{2}'."),Method_0_of_exported_interface_has_or_is_using_private_name_1:ca(4102,1,"Method_0_of_exported_interface_has_or_is_using_private_name_1_4102","Method '{0}' of exported interface has or is using private name '{1}'."),Type_parameter_0_of_exported_mapped_object_type_is_using_private_name_1:ca(4103,1,"Type_parameter_0_of_exported_mapped_object_type_is_using_private_name_1_4103","Type parameter '{0}' of exported mapped object type is using private name '{1}'."),The_type_0_is_readonly_and_cannot_be_assigned_to_the_mutable_type_1:ca(4104,1,"The_type_0_is_readonly_and_cannot_be_assigned_to_the_mutable_type_1_4104","The type '{0}' is 'readonly' and cannot be assigned to the mutable type '{1}'."),Private_or_protected_member_0_cannot_be_accessed_on_a_type_parameter:ca(4105,1,"Private_or_protected_member_0_cannot_be_accessed_on_a_type_parameter_4105","Private or protected member '{0}' cannot be accessed on a type parameter."),Parameter_0_of_accessor_has_or_is_using_private_name_1:ca(4106,1,"Parameter_0_of_accessor_has_or_is_using_private_name_1_4106","Parameter '{0}' of accessor has or is using private name '{1}'."),Parameter_0_of_accessor_has_or_is_using_name_1_from_private_module_2:ca(4107,1,"Parameter_0_of_accessor_has_or_is_using_name_1_from_private_module_2_4107","Parameter '{0}' of accessor has or is using name '{1}' from private module '{2}'."),Parameter_0_of_accessor_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:ca(4108,1,"Parameter_0_of_accessor_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named_4108","Parameter '{0}' of accessor has or is using name '{1}' from external module '{2}' but cannot be named."),Type_arguments_for_0_circularly_reference_themselves:ca(4109,1,"Type_arguments_for_0_circularly_reference_themselves_4109","Type arguments for '{0}' circularly reference themselves."),Tuple_type_arguments_circularly_reference_themselves:ca(4110,1,"Tuple_type_arguments_circularly_reference_themselves_4110","Tuple type arguments circularly reference themselves."),Property_0_comes_from_an_index_signature_so_it_must_be_accessed_with_0:ca(4111,1,"Property_0_comes_from_an_index_signature_so_it_must_be_accessed_with_0_4111","Property '{0}' comes from an index signature, so it must be accessed with ['{0}']."),This_member_cannot_have_an_override_modifier_because_its_containing_class_0_does_not_extend_another_class:ca(4112,1,"This_member_cannot_have_an_override_modifier_because_its_containing_class_0_does_not_extend_another__4112","This member cannot have an 'override' modifier because its containing class '{0}' does not extend another class."),This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0:ca(4113,1,"This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0_4113","This member cannot have an 'override' modifier because it is not declared in the base class '{0}'."),This_member_must_have_an_override_modifier_because_it_overrides_a_member_in_the_base_class_0:ca(4114,1,"This_member_must_have_an_override_modifier_because_it_overrides_a_member_in_the_base_class_0_4114","This member must have an 'override' modifier because it overrides a member in the base class '{0}'."),This_parameter_property_must_have_an_override_modifier_because_it_overrides_a_member_in_base_class_0:ca(4115,1,"This_parameter_property_must_have_an_override_modifier_because_it_overrides_a_member_in_base_class_0_4115","This parameter property must have an 'override' modifier because it overrides a member in base class '{0}'."),This_member_must_have_an_override_modifier_because_it_overrides_an_abstract_method_that_is_declared_in_the_base_class_0:ca(4116,1,"This_member_must_have_an_override_modifier_because_it_overrides_an_abstract_method_that_is_declared__4116","This member must have an 'override' modifier because it overrides an abstract method that is declared in the base class '{0}'."),This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0_Did_you_mean_1:ca(4117,1,"This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0_Did_you__4117","This member cannot have an 'override' modifier because it is not declared in the base class '{0}'. Did you mean '{1}'?"),The_type_of_this_node_cannot_be_serialized_because_its_property_0_cannot_be_serialized:ca(4118,1,"The_type_of_this_node_cannot_be_serialized_because_its_property_0_cannot_be_serialized_4118","The type of this node cannot be serialized because its property '{0}' cannot be serialized."),This_member_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_class_0:ca(4119,1,"This_member_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_4119","This member must have a JSDoc comment with an '@override' tag because it overrides a member in the base class '{0}'."),This_parameter_property_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_class_0:ca(4120,1,"This_parameter_property_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_4120","This parameter property must have a JSDoc comment with an '@override' tag because it overrides a member in the base class '{0}'."),This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_its_containing_class_0_does_not_extend_another_class:ca(4121,1,"This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_its_containing_class_0_does_not_4121","This member cannot have a JSDoc comment with an '@override' tag because its containing class '{0}' does not extend another class."),This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base_class_0:ca(4122,1,"This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base__4122","This member cannot have a JSDoc comment with an '@override' tag because it is not declared in the base class '{0}'."),This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base_class_0_Did_you_mean_1:ca(4123,1,"This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base__4123","This member cannot have a JSDoc comment with an 'override' tag because it is not declared in the base class '{0}'. Did you mean '{1}'?"),Compiler_option_0_of_value_1_is_unstable_Use_nightly_TypeScript_to_silence_this_error_Try_updating_with_npm_install_D_typescript_next:ca(4124,1,"Compiler_option_0_of_value_1_is_unstable_Use_nightly_TypeScript_to_silence_this_error_Try_updating_w_4124","Compiler option '{0}' of value '{1}' is unstable. Use nightly TypeScript to silence this error. Try updating with 'npm install -D typescript@next'."),Each_declaration_of_0_1_differs_in_its_value_where_2_was_expected_but_3_was_given:ca(4125,1,"Each_declaration_of_0_1_differs_in_its_value_where_2_was_expected_but_3_was_given_4125","Each declaration of '{0}.{1}' differs in its value, where '{2}' was expected but '{3}' was given."),One_value_of_0_1_is_the_string_2_and_the_other_is_assumed_to_be_an_unknown_numeric_value:ca(4126,1,"One_value_of_0_1_is_the_string_2_and_the_other_is_assumed_to_be_an_unknown_numeric_value_4126","One value of '{0}.{1}' is the string '{2}', and the other is assumed to be an unknown numeric value."),The_current_host_does_not_support_the_0_option:ca(5001,1,"The_current_host_does_not_support_the_0_option_5001","The current host does not support the '{0}' option."),Cannot_find_the_common_subdirectory_path_for_the_input_files:ca(5009,1,"Cannot_find_the_common_subdirectory_path_for_the_input_files_5009","Cannot find the common subdirectory path for the input files."),File_specification_cannot_end_in_a_recursive_directory_wildcard_Asterisk_Asterisk_Colon_0:ca(5010,1,"File_specification_cannot_end_in_a_recursive_directory_wildcard_Asterisk_Asterisk_Colon_0_5010","File specification cannot end in a recursive directory wildcard ('**'): '{0}'."),Cannot_read_file_0_Colon_1:ca(5012,1,"Cannot_read_file_0_Colon_1_5012","Cannot read file '{0}': {1}."),Unknown_compiler_option_0:ca(5023,1,"Unknown_compiler_option_0_5023","Unknown compiler option '{0}'."),Compiler_option_0_requires_a_value_of_type_1:ca(5024,1,"Compiler_option_0_requires_a_value_of_type_1_5024","Compiler option '{0}' requires a value of type {1}."),Unknown_compiler_option_0_Did_you_mean_1:ca(5025,1,"Unknown_compiler_option_0_Did_you_mean_1_5025","Unknown compiler option '{0}'. Did you mean '{1}'?"),Could_not_write_file_0_Colon_1:ca(5033,1,"Could_not_write_file_0_Colon_1_5033","Could not write file '{0}': {1}."),Option_project_cannot_be_mixed_with_source_files_on_a_command_line:ca(5042,1,"Option_project_cannot_be_mixed_with_source_files_on_a_command_line_5042","Option 'project' cannot be mixed with source files on a command line."),Option_isolatedModules_can_only_be_used_when_either_option_module_is_provided_or_option_target_is_ES2015_or_higher:ca(5047,1,"Option_isolatedModules_can_only_be_used_when_either_option_module_is_provided_or_option_target_is_ES_5047","Option 'isolatedModules' can only be used when either option '--module' is provided or option 'target' is 'ES2015' or higher."),Option_0_can_only_be_used_when_either_option_inlineSourceMap_or_option_sourceMap_is_provided:ca(5051,1,"Option_0_can_only_be_used_when_either_option_inlineSourceMap_or_option_sourceMap_is_provided_5051","Option '{0} can only be used when either option '--inlineSourceMap' or option '--sourceMap' is provided."),Option_0_cannot_be_specified_without_specifying_option_1:ca(5052,1,"Option_0_cannot_be_specified_without_specifying_option_1_5052","Option '{0}' cannot be specified without specifying option '{1}'."),Option_0_cannot_be_specified_with_option_1:ca(5053,1,"Option_0_cannot_be_specified_with_option_1_5053","Option '{0}' cannot be specified with option '{1}'."),A_tsconfig_json_file_is_already_defined_at_Colon_0:ca(5054,1,"A_tsconfig_json_file_is_already_defined_at_Colon_0_5054","A 'tsconfig.json' file is already defined at: '{0}'."),Cannot_write_file_0_because_it_would_overwrite_input_file:ca(5055,1,"Cannot_write_file_0_because_it_would_overwrite_input_file_5055","Cannot write file '{0}' because it would overwrite input file."),Cannot_write_file_0_because_it_would_be_overwritten_by_multiple_input_files:ca(5056,1,"Cannot_write_file_0_because_it_would_be_overwritten_by_multiple_input_files_5056","Cannot write file '{0}' because it would be overwritten by multiple input files."),Cannot_find_a_tsconfig_json_file_at_the_specified_directory_Colon_0:ca(5057,1,"Cannot_find_a_tsconfig_json_file_at_the_specified_directory_Colon_0_5057","Cannot find a tsconfig.json file at the specified directory: '{0}'."),The_specified_path_does_not_exist_Colon_0:ca(5058,1,"The_specified_path_does_not_exist_Colon_0_5058","The specified path does not exist: '{0}'."),Invalid_value_for_reactNamespace_0_is_not_a_valid_identifier:ca(5059,1,"Invalid_value_for_reactNamespace_0_is_not_a_valid_identifier_5059","Invalid value for '--reactNamespace'. '{0}' is not a valid identifier."),Pattern_0_can_have_at_most_one_Asterisk_character:ca(5061,1,"Pattern_0_can_have_at_most_one_Asterisk_character_5061","Pattern '{0}' can have at most one '*' character."),Substitution_0_in_pattern_1_can_have_at_most_one_Asterisk_character:ca(5062,1,"Substitution_0_in_pattern_1_can_have_at_most_one_Asterisk_character_5062","Substitution '{0}' in pattern '{1}' can have at most one '*' character."),Substitutions_for_pattern_0_should_be_an_array:ca(5063,1,"Substitutions_for_pattern_0_should_be_an_array_5063","Substitutions for pattern '{0}' should be an array."),Substitution_0_for_pattern_1_has_incorrect_type_expected_string_got_2:ca(5064,1,"Substitution_0_for_pattern_1_has_incorrect_type_expected_string_got_2_5064","Substitution '{0}' for pattern '{1}' has incorrect type, expected 'string', got '{2}'."),File_specification_cannot_contain_a_parent_directory_that_appears_after_a_recursive_directory_wildcard_Asterisk_Asterisk_Colon_0:ca(5065,1,"File_specification_cannot_contain_a_parent_directory_that_appears_after_a_recursive_directory_wildca_5065","File specification cannot contain a parent directory ('..') that appears after a recursive directory wildcard ('**'): '{0}'."),Substitutions_for_pattern_0_shouldn_t_be_an_empty_array:ca(5066,1,"Substitutions_for_pattern_0_shouldn_t_be_an_empty_array_5066","Substitutions for pattern '{0}' shouldn't be an empty array."),Invalid_value_for_jsxFactory_0_is_not_a_valid_identifier_or_qualified_name:ca(5067,1,"Invalid_value_for_jsxFactory_0_is_not_a_valid_identifier_or_qualified_name_5067","Invalid value for 'jsxFactory'. '{0}' is not a valid identifier or qualified-name."),Adding_a_tsconfig_json_file_will_help_organize_projects_that_contain_both_TypeScript_and_JavaScript_files_Learn_more_at_https_Colon_Slash_Slashaka_ms_Slashtsconfig:ca(5068,1,"Adding_a_tsconfig_json_file_will_help_organize_projects_that_contain_both_TypeScript_and_JavaScript__5068","Adding a tsconfig.json file will help organize projects that contain both TypeScript and JavaScript files. Learn more at https://aka.ms/tsconfig."),Option_0_cannot_be_specified_without_specifying_option_1_or_option_2:ca(5069,1,"Option_0_cannot_be_specified_without_specifying_option_1_or_option_2_5069","Option '{0}' cannot be specified without specifying option '{1}' or option '{2}'."),Option_resolveJsonModule_cannot_be_specified_when_moduleResolution_is_set_to_classic:ca(5070,1,"Option_resolveJsonModule_cannot_be_specified_when_moduleResolution_is_set_to_classic_5070","Option '--resolveJsonModule' cannot be specified when 'moduleResolution' is set to 'classic'."),Option_resolveJsonModule_cannot_be_specified_when_module_is_set_to_none_system_or_umd:ca(5071,1,"Option_resolveJsonModule_cannot_be_specified_when_module_is_set_to_none_system_or_umd_5071","Option '--resolveJsonModule' cannot be specified when 'module' is set to 'none', 'system', or 'umd'."),Unknown_build_option_0:ca(5072,1,"Unknown_build_option_0_5072","Unknown build option '{0}'."),Build_option_0_requires_a_value_of_type_1:ca(5073,1,"Build_option_0_requires_a_value_of_type_1_5073","Build option '{0}' requires a value of type {1}."),Option_incremental_can_only_be_specified_using_tsconfig_emitting_to_single_file_or_when_option_tsBuildInfoFile_is_specified:ca(5074,1,"Option_incremental_can_only_be_specified_using_tsconfig_emitting_to_single_file_or_when_option_tsBui_5074","Option '--incremental' can only be specified using tsconfig, emitting to single file or when option '--tsBuildInfoFile' is specified."),_0_is_assignable_to_the_constraint_of_type_1_but_1_could_be_instantiated_with_a_different_subtype_of_constraint_2:ca(5075,1,"_0_is_assignable_to_the_constraint_of_type_1_but_1_could_be_instantiated_with_a_different_subtype_of_5075","'{0}' is assignable to the constraint of type '{1}', but '{1}' could be instantiated with a different subtype of constraint '{2}'."),_0_and_1_operations_cannot_be_mixed_without_parentheses:ca(5076,1,"_0_and_1_operations_cannot_be_mixed_without_parentheses_5076","'{0}' and '{1}' operations cannot be mixed without parentheses."),Unknown_build_option_0_Did_you_mean_1:ca(5077,1,"Unknown_build_option_0_Did_you_mean_1_5077","Unknown build option '{0}'. Did you mean '{1}'?"),Unknown_watch_option_0:ca(5078,1,"Unknown_watch_option_0_5078","Unknown watch option '{0}'."),Unknown_watch_option_0_Did_you_mean_1:ca(5079,1,"Unknown_watch_option_0_Did_you_mean_1_5079","Unknown watch option '{0}'. Did you mean '{1}'?"),Watch_option_0_requires_a_value_of_type_1:ca(5080,1,"Watch_option_0_requires_a_value_of_type_1_5080","Watch option '{0}' requires a value of type {1}."),Cannot_find_a_tsconfig_json_file_at_the_current_directory_Colon_0:ca(5081,1,"Cannot_find_a_tsconfig_json_file_at_the_current_directory_Colon_0_5081","Cannot find a tsconfig.json file at the current directory: {0}."),_0_could_be_instantiated_with_an_arbitrary_type_which_could_be_unrelated_to_1:ca(5082,1,"_0_could_be_instantiated_with_an_arbitrary_type_which_could_be_unrelated_to_1_5082","'{0}' could be instantiated with an arbitrary type which could be unrelated to '{1}'."),Cannot_read_file_0:ca(5083,1,"Cannot_read_file_0_5083","Cannot read file '{0}'."),A_tuple_member_cannot_be_both_optional_and_rest:ca(5085,1,"A_tuple_member_cannot_be_both_optional_and_rest_5085","A tuple member cannot be both optional and rest."),A_labeled_tuple_element_is_declared_as_optional_with_a_question_mark_after_the_name_and_before_the_colon_rather_than_after_the_type:ca(5086,1,"A_labeled_tuple_element_is_declared_as_optional_with_a_question_mark_after_the_name_and_before_the_c_5086","A labeled tuple element is declared as optional with a question mark after the name and before the colon, rather than after the type."),A_labeled_tuple_element_is_declared_as_rest_with_a_before_the_name_rather_than_before_the_type:ca(5087,1,"A_labeled_tuple_element_is_declared_as_rest_with_a_before_the_name_rather_than_before_the_type_5087","A labeled tuple element is declared as rest with a '...' before the name, rather than before the type."),The_inferred_type_of_0_references_a_type_with_a_cyclic_structure_which_cannot_be_trivially_serialized_A_type_annotation_is_necessary:ca(5088,1,"The_inferred_type_of_0_references_a_type_with_a_cyclic_structure_which_cannot_be_trivially_serialize_5088","The inferred type of '{0}' references a type with a cyclic structure which cannot be trivially serialized. A type annotation is necessary."),Option_0_cannot_be_specified_when_option_jsx_is_1:ca(5089,1,"Option_0_cannot_be_specified_when_option_jsx_is_1_5089","Option '{0}' cannot be specified when option 'jsx' is '{1}'."),Non_relative_paths_are_not_allowed_when_baseUrl_is_not_set_Did_you_forget_a_leading_Slash:ca(5090,1,"Non_relative_paths_are_not_allowed_when_baseUrl_is_not_set_Did_you_forget_a_leading_Slash_5090","Non-relative paths are not allowed when 'baseUrl' is not set. Did you forget a leading './'?"),Option_preserveConstEnums_cannot_be_disabled_when_0_is_enabled:ca(5091,1,"Option_preserveConstEnums_cannot_be_disabled_when_0_is_enabled_5091","Option 'preserveConstEnums' cannot be disabled when '{0}' is enabled."),The_root_value_of_a_0_file_must_be_an_object:ca(5092,1,"The_root_value_of_a_0_file_must_be_an_object_5092","The root value of a '{0}' file must be an object."),Compiler_option_0_may_only_be_used_with_build:ca(5093,1,"Compiler_option_0_may_only_be_used_with_build_5093","Compiler option '--{0}' may only be used with '--build'."),Compiler_option_0_may_not_be_used_with_build:ca(5094,1,"Compiler_option_0_may_not_be_used_with_build_5094","Compiler option '--{0}' may not be used with '--build'."),Option_0_can_only_be_used_when_module_is_set_to_preserve_or_to_es2015_or_later:ca(5095,1,"Option_0_can_only_be_used_when_module_is_set_to_preserve_or_to_es2015_or_later_5095","Option '{0}' can only be used when 'module' is set to 'preserve' or to 'es2015' or later."),Option_allowImportingTsExtensions_can_only_be_used_when_either_noEmit_or_emitDeclarationOnly_is_set:ca(5096,1,"Option_allowImportingTsExtensions_can_only_be_used_when_either_noEmit_or_emitDeclarationOnly_is_set_5096","Option 'allowImportingTsExtensions' can only be used when either 'noEmit' or 'emitDeclarationOnly' is set."),An_import_path_can_only_end_with_a_0_extension_when_allowImportingTsExtensions_is_enabled:ca(5097,1,"An_import_path_can_only_end_with_a_0_extension_when_allowImportingTsExtensions_is_enabled_5097","An import path can only end with a '{0}' extension when 'allowImportingTsExtensions' is enabled."),Option_0_can_only_be_used_when_moduleResolution_is_set_to_node16_nodenext_or_bundler:ca(5098,1,"Option_0_can_only_be_used_when_moduleResolution_is_set_to_node16_nodenext_or_bundler_5098","Option '{0}' can only be used when 'moduleResolution' is set to 'node16', 'nodenext', or 'bundler'."),Option_0_is_deprecated_and_will_stop_functioning_in_TypeScript_1_Specify_compilerOption_ignoreDeprecations_Colon_2_to_silence_this_error:ca(5101,1,"Option_0_is_deprecated_and_will_stop_functioning_in_TypeScript_1_Specify_compilerOption_ignoreDeprec_5101","Option '{0}' is deprecated and will stop functioning in TypeScript {1}. Specify compilerOption '\"ignoreDeprecations\": \"{2}\"' to silence this error."),Option_0_has_been_removed_Please_remove_it_from_your_configuration:ca(5102,1,"Option_0_has_been_removed_Please_remove_it_from_your_configuration_5102","Option '{0}' has been removed. Please remove it from your configuration."),Invalid_value_for_ignoreDeprecations:ca(5103,1,"Invalid_value_for_ignoreDeprecations_5103","Invalid value for '--ignoreDeprecations'."),Option_0_is_redundant_and_cannot_be_specified_with_option_1:ca(5104,1,"Option_0_is_redundant_and_cannot_be_specified_with_option_1_5104","Option '{0}' is redundant and cannot be specified with option '{1}'."),Option_verbatimModuleSyntax_cannot_be_used_when_module_is_set_to_UMD_AMD_or_System:ca(5105,1,"Option_verbatimModuleSyntax_cannot_be_used_when_module_is_set_to_UMD_AMD_or_System_5105","Option 'verbatimModuleSyntax' cannot be used when 'module' is set to 'UMD', 'AMD', or 'System'."),Use_0_instead:ca(5106,3,"Use_0_instead_5106","Use '{0}' instead."),Option_0_1_is_deprecated_and_will_stop_functioning_in_TypeScript_2_Specify_compilerOption_ignoreDeprecations_Colon_3_to_silence_this_error:ca(5107,1,"Option_0_1_is_deprecated_and_will_stop_functioning_in_TypeScript_2_Specify_compilerOption_ignoreDepr_5107","Option '{0}={1}' is deprecated and will stop functioning in TypeScript {2}. Specify compilerOption '\"ignoreDeprecations\": \"{3}\"' to silence this error."),Option_0_1_has_been_removed_Please_remove_it_from_your_configuration:ca(5108,1,"Option_0_1_has_been_removed_Please_remove_it_from_your_configuration_5108","Option '{0}={1}' has been removed. Please remove it from your configuration."),Option_moduleResolution_must_be_set_to_0_or_left_unspecified_when_option_module_is_set_to_1:ca(5109,1,"Option_moduleResolution_must_be_set_to_0_or_left_unspecified_when_option_module_is_set_to_1_5109","Option 'moduleResolution' must be set to '{0}' (or left unspecified) when option 'module' is set to '{1}'."),Option_module_must_be_set_to_0_when_option_moduleResolution_is_set_to_1:ca(5110,1,"Option_module_must_be_set_to_0_when_option_moduleResolution_is_set_to_1_5110","Option 'module' must be set to '{0}' when option 'moduleResolution' is set to '{1}'."),Generates_a_sourcemap_for_each_corresponding_d_ts_file:ca(6e3,3,"Generates_a_sourcemap_for_each_corresponding_d_ts_file_6000","Generates a sourcemap for each corresponding '.d.ts' file."),Concatenate_and_emit_output_to_single_file:ca(6001,3,"Concatenate_and_emit_output_to_single_file_6001","Concatenate and emit output to single file."),Generates_corresponding_d_ts_file:ca(6002,3,"Generates_corresponding_d_ts_file_6002","Generates corresponding '.d.ts' file."),Specify_the_location_where_debugger_should_locate_TypeScript_files_instead_of_source_locations:ca(6004,3,"Specify_the_location_where_debugger_should_locate_TypeScript_files_instead_of_source_locations_6004","Specify the location where debugger should locate TypeScript files instead of source locations."),Watch_input_files:ca(6005,3,"Watch_input_files_6005","Watch input files."),Redirect_output_structure_to_the_directory:ca(6006,3,"Redirect_output_structure_to_the_directory_6006","Redirect output structure to the directory."),Do_not_erase_const_enum_declarations_in_generated_code:ca(6007,3,"Do_not_erase_const_enum_declarations_in_generated_code_6007","Do not erase const enum declarations in generated code."),Do_not_emit_outputs_if_any_errors_were_reported:ca(6008,3,"Do_not_emit_outputs_if_any_errors_were_reported_6008","Do not emit outputs if any errors were reported."),Do_not_emit_comments_to_output:ca(6009,3,"Do_not_emit_comments_to_output_6009","Do not emit comments to output."),Do_not_emit_outputs:ca(6010,3,"Do_not_emit_outputs_6010","Do not emit outputs."),Allow_default_imports_from_modules_with_no_default_export_This_does_not_affect_code_emit_just_typechecking:ca(6011,3,"Allow_default_imports_from_modules_with_no_default_export_This_does_not_affect_code_emit_just_typech_6011","Allow default imports from modules with no default export. This does not affect code emit, just typechecking."),Skip_type_checking_of_declaration_files:ca(6012,3,"Skip_type_checking_of_declaration_files_6012","Skip type checking of declaration files."),Do_not_resolve_the_real_path_of_symlinks:ca(6013,3,"Do_not_resolve_the_real_path_of_symlinks_6013","Do not resolve the real path of symlinks."),Only_emit_d_ts_declaration_files:ca(6014,3,"Only_emit_d_ts_declaration_files_6014","Only emit '.d.ts' declaration files."),Specify_ECMAScript_target_version:ca(6015,3,"Specify_ECMAScript_target_version_6015","Specify ECMAScript target version."),Specify_module_code_generation:ca(6016,3,"Specify_module_code_generation_6016","Specify module code generation."),Print_this_message:ca(6017,3,"Print_this_message_6017","Print this message."),Print_the_compiler_s_version:ca(6019,3,"Print_the_compiler_s_version_6019","Print the compiler's version."),Compile_the_project_given_the_path_to_its_configuration_file_or_to_a_folder_with_a_tsconfig_json:ca(6020,3,"Compile_the_project_given_the_path_to_its_configuration_file_or_to_a_folder_with_a_tsconfig_json_6020","Compile the project given the path to its configuration file, or to a folder with a 'tsconfig.json'."),Syntax_Colon_0:ca(6023,3,"Syntax_Colon_0_6023","Syntax: {0}"),options:ca(6024,3,"options_6024","options"),file:ca(6025,3,"file_6025","file"),Examples_Colon_0:ca(6026,3,"Examples_Colon_0_6026","Examples: {0}"),Options_Colon:ca(6027,3,"Options_Colon_6027","Options:"),Version_0:ca(6029,3,"Version_0_6029","Version {0}"),Insert_command_line_options_and_files_from_a_file:ca(6030,3,"Insert_command_line_options_and_files_from_a_file_6030","Insert command line options and files from a file."),Starting_compilation_in_watch_mode:ca(6031,3,"Starting_compilation_in_watch_mode_6031","Starting compilation in watch mode..."),File_change_detected_Starting_incremental_compilation:ca(6032,3,"File_change_detected_Starting_incremental_compilation_6032","File change detected. Starting incremental compilation..."),KIND:ca(6034,3,"KIND_6034","KIND"),FILE:ca(6035,3,"FILE_6035","FILE"),VERSION:ca(6036,3,"VERSION_6036","VERSION"),LOCATION:ca(6037,3,"LOCATION_6037","LOCATION"),DIRECTORY:ca(6038,3,"DIRECTORY_6038","DIRECTORY"),STRATEGY:ca(6039,3,"STRATEGY_6039","STRATEGY"),FILE_OR_DIRECTORY:ca(6040,3,"FILE_OR_DIRECTORY_6040","FILE OR DIRECTORY"),Errors_Files:ca(6041,3,"Errors_Files_6041","Errors Files"),Generates_corresponding_map_file:ca(6043,3,"Generates_corresponding_map_file_6043","Generates corresponding '.map' file."),Compiler_option_0_expects_an_argument:ca(6044,1,"Compiler_option_0_expects_an_argument_6044","Compiler option '{0}' expects an argument."),Unterminated_quoted_string_in_response_file_0:ca(6045,1,"Unterminated_quoted_string_in_response_file_0_6045","Unterminated quoted string in response file '{0}'."),Argument_for_0_option_must_be_Colon_1:ca(6046,1,"Argument_for_0_option_must_be_Colon_1_6046","Argument for '{0}' option must be: {1}."),Locale_must_be_of_the_form_language_or_language_territory_For_example_0_or_1:ca(6048,1,"Locale_must_be_of_the_form_language_or_language_territory_For_example_0_or_1_6048","Locale must be of the form or -. For example '{0}' or '{1}'."),Unable_to_open_file_0:ca(6050,1,"Unable_to_open_file_0_6050","Unable to open file '{0}'."),Corrupted_locale_file_0:ca(6051,1,"Corrupted_locale_file_0_6051","Corrupted locale file {0}."),Raise_error_on_expressions_and_declarations_with_an_implied_any_type:ca(6052,3,"Raise_error_on_expressions_and_declarations_with_an_implied_any_type_6052","Raise error on expressions and declarations with an implied 'any' type."),File_0_not_found:ca(6053,1,"File_0_not_found_6053","File '{0}' not found."),File_0_has_an_unsupported_extension_The_only_supported_extensions_are_1:ca(6054,1,"File_0_has_an_unsupported_extension_The_only_supported_extensions_are_1_6054","File '{0}' has an unsupported extension. The only supported extensions are {1}."),Suppress_noImplicitAny_errors_for_indexing_objects_lacking_index_signatures:ca(6055,3,"Suppress_noImplicitAny_errors_for_indexing_objects_lacking_index_signatures_6055","Suppress noImplicitAny errors for indexing objects lacking index signatures."),Do_not_emit_declarations_for_code_that_has_an_internal_annotation:ca(6056,3,"Do_not_emit_declarations_for_code_that_has_an_internal_annotation_6056","Do not emit declarations for code that has an '@internal' annotation."),Specify_the_root_directory_of_input_files_Use_to_control_the_output_directory_structure_with_outDir:ca(6058,3,"Specify_the_root_directory_of_input_files_Use_to_control_the_output_directory_structure_with_outDir_6058","Specify the root directory of input files. Use to control the output directory structure with --outDir."),File_0_is_not_under_rootDir_1_rootDir_is_expected_to_contain_all_source_files:ca(6059,1,"File_0_is_not_under_rootDir_1_rootDir_is_expected_to_contain_all_source_files_6059","File '{0}' is not under 'rootDir' '{1}'. 'rootDir' is expected to contain all source files."),Specify_the_end_of_line_sequence_to_be_used_when_emitting_files_Colon_CRLF_dos_or_LF_unix:ca(6060,3,"Specify_the_end_of_line_sequence_to_be_used_when_emitting_files_Colon_CRLF_dos_or_LF_unix_6060","Specify the end of line sequence to be used when emitting files: 'CRLF' (dos) or 'LF' (unix)."),NEWLINE:ca(6061,3,"NEWLINE_6061","NEWLINE"),Option_0_can_only_be_specified_in_tsconfig_json_file_or_set_to_null_on_command_line:ca(6064,1,"Option_0_can_only_be_specified_in_tsconfig_json_file_or_set_to_null_on_command_line_6064","Option '{0}' can only be specified in 'tsconfig.json' file or set to 'null' on command line."),Enables_experimental_support_for_ES7_decorators:ca(6065,3,"Enables_experimental_support_for_ES7_decorators_6065","Enables experimental support for ES7 decorators."),Enables_experimental_support_for_emitting_type_metadata_for_decorators:ca(6066,3,"Enables_experimental_support_for_emitting_type_metadata_for_decorators_6066","Enables experimental support for emitting type metadata for decorators."),Initializes_a_TypeScript_project_and_creates_a_tsconfig_json_file:ca(6070,3,"Initializes_a_TypeScript_project_and_creates_a_tsconfig_json_file_6070","Initializes a TypeScript project and creates a tsconfig.json file."),Successfully_created_a_tsconfig_json_file:ca(6071,3,"Successfully_created_a_tsconfig_json_file_6071","Successfully created a tsconfig.json file."),Suppress_excess_property_checks_for_object_literals:ca(6072,3,"Suppress_excess_property_checks_for_object_literals_6072","Suppress excess property checks for object literals."),Stylize_errors_and_messages_using_color_and_context_experimental:ca(6073,3,"Stylize_errors_and_messages_using_color_and_context_experimental_6073","Stylize errors and messages using color and context (experimental)."),Do_not_report_errors_on_unused_labels:ca(6074,3,"Do_not_report_errors_on_unused_labels_6074","Do not report errors on unused labels."),Report_error_when_not_all_code_paths_in_function_return_a_value:ca(6075,3,"Report_error_when_not_all_code_paths_in_function_return_a_value_6075","Report error when not all code paths in function return a value."),Report_errors_for_fallthrough_cases_in_switch_statement:ca(6076,3,"Report_errors_for_fallthrough_cases_in_switch_statement_6076","Report errors for fallthrough cases in switch statement."),Do_not_report_errors_on_unreachable_code:ca(6077,3,"Do_not_report_errors_on_unreachable_code_6077","Do not report errors on unreachable code."),Disallow_inconsistently_cased_references_to_the_same_file:ca(6078,3,"Disallow_inconsistently_cased_references_to_the_same_file_6078","Disallow inconsistently-cased references to the same file."),Specify_library_files_to_be_included_in_the_compilation:ca(6079,3,"Specify_library_files_to_be_included_in_the_compilation_6079","Specify library files to be included in the compilation."),Specify_JSX_code_generation:ca(6080,3,"Specify_JSX_code_generation_6080","Specify JSX code generation."),Only_amd_and_system_modules_are_supported_alongside_0:ca(6082,1,"Only_amd_and_system_modules_are_supported_alongside_0_6082","Only 'amd' and 'system' modules are supported alongside --{0}."),Base_directory_to_resolve_non_absolute_module_names:ca(6083,3,"Base_directory_to_resolve_non_absolute_module_names_6083","Base directory to resolve non-absolute module names."),Deprecated_Use_jsxFactory_instead_Specify_the_object_invoked_for_createElement_when_targeting_react_JSX_emit:ca(6084,3,"Deprecated_Use_jsxFactory_instead_Specify_the_object_invoked_for_createElement_when_targeting_react__6084","[Deprecated] Use '--jsxFactory' instead. Specify the object invoked for createElement when targeting 'react' JSX emit"),Enable_tracing_of_the_name_resolution_process:ca(6085,3,"Enable_tracing_of_the_name_resolution_process_6085","Enable tracing of the name resolution process."),Resolving_module_0_from_1:ca(6086,3,"Resolving_module_0_from_1_6086","======== Resolving module '{0}' from '{1}'. ========"),Explicitly_specified_module_resolution_kind_Colon_0:ca(6087,3,"Explicitly_specified_module_resolution_kind_Colon_0_6087","Explicitly specified module resolution kind: '{0}'."),Module_resolution_kind_is_not_specified_using_0:ca(6088,3,"Module_resolution_kind_is_not_specified_using_0_6088","Module resolution kind is not specified, using '{0}'."),Module_name_0_was_successfully_resolved_to_1:ca(6089,3,"Module_name_0_was_successfully_resolved_to_1_6089","======== Module name '{0}' was successfully resolved to '{1}'. ========"),Module_name_0_was_not_resolved:ca(6090,3,"Module_name_0_was_not_resolved_6090","======== Module name '{0}' was not resolved. ========"),paths_option_is_specified_looking_for_a_pattern_to_match_module_name_0:ca(6091,3,"paths_option_is_specified_looking_for_a_pattern_to_match_module_name_0_6091","'paths' option is specified, looking for a pattern to match module name '{0}'."),Module_name_0_matched_pattern_1:ca(6092,3,"Module_name_0_matched_pattern_1_6092","Module name '{0}', matched pattern '{1}'."),Trying_substitution_0_candidate_module_location_Colon_1:ca(6093,3,"Trying_substitution_0_candidate_module_location_Colon_1_6093","Trying substitution '{0}', candidate module location: '{1}'."),Resolving_module_name_0_relative_to_base_url_1_2:ca(6094,3,"Resolving_module_name_0_relative_to_base_url_1_2_6094","Resolving module name '{0}' relative to base url '{1}' - '{2}'."),Loading_module_as_file_Slash_folder_candidate_module_location_0_target_file_types_Colon_1:ca(6095,3,"Loading_module_as_file_Slash_folder_candidate_module_location_0_target_file_types_Colon_1_6095","Loading module as file / folder, candidate module location '{0}', target file types: {1}."),File_0_does_not_exist:ca(6096,3,"File_0_does_not_exist_6096","File '{0}' does not exist."),File_0_exists_use_it_as_a_name_resolution_result:ca(6097,3,"File_0_exists_use_it_as_a_name_resolution_result_6097","File '{0}' exists - use it as a name resolution result."),Loading_module_0_from_node_modules_folder_target_file_types_Colon_1:ca(6098,3,"Loading_module_0_from_node_modules_folder_target_file_types_Colon_1_6098","Loading module '{0}' from 'node_modules' folder, target file types: {1}."),Found_package_json_at_0:ca(6099,3,"Found_package_json_at_0_6099","Found 'package.json' at '{0}'."),package_json_does_not_have_a_0_field:ca(6100,3,"package_json_does_not_have_a_0_field_6100","'package.json' does not have a '{0}' field."),package_json_has_0_field_1_that_references_2:ca(6101,3,"package_json_has_0_field_1_that_references_2_6101","'package.json' has '{0}' field '{1}' that references '{2}'."),Allow_javascript_files_to_be_compiled:ca(6102,3,"Allow_javascript_files_to_be_compiled_6102","Allow javascript files to be compiled."),Checking_if_0_is_the_longest_matching_prefix_for_1_2:ca(6104,3,"Checking_if_0_is_the_longest_matching_prefix_for_1_2_6104","Checking if '{0}' is the longest matching prefix for '{1}' - '{2}'."),Expected_type_of_0_field_in_package_json_to_be_1_got_2:ca(6105,3,"Expected_type_of_0_field_in_package_json_to_be_1_got_2_6105","Expected type of '{0}' field in 'package.json' to be '{1}', got '{2}'."),baseUrl_option_is_set_to_0_using_this_value_to_resolve_non_relative_module_name_1:ca(6106,3,"baseUrl_option_is_set_to_0_using_this_value_to_resolve_non_relative_module_name_1_6106","'baseUrl' option is set to '{0}', using this value to resolve non-relative module name '{1}'."),rootDirs_option_is_set_using_it_to_resolve_relative_module_name_0:ca(6107,3,"rootDirs_option_is_set_using_it_to_resolve_relative_module_name_0_6107","'rootDirs' option is set, using it to resolve relative module name '{0}'."),Longest_matching_prefix_for_0_is_1:ca(6108,3,"Longest_matching_prefix_for_0_is_1_6108","Longest matching prefix for '{0}' is '{1}'."),Loading_0_from_the_root_dir_1_candidate_location_2:ca(6109,3,"Loading_0_from_the_root_dir_1_candidate_location_2_6109","Loading '{0}' from the root dir '{1}', candidate location '{2}'."),Trying_other_entries_in_rootDirs:ca(6110,3,"Trying_other_entries_in_rootDirs_6110","Trying other entries in 'rootDirs'."),Module_resolution_using_rootDirs_has_failed:ca(6111,3,"Module_resolution_using_rootDirs_has_failed_6111","Module resolution using 'rootDirs' has failed."),Do_not_emit_use_strict_directives_in_module_output:ca(6112,3,"Do_not_emit_use_strict_directives_in_module_output_6112","Do not emit 'use strict' directives in module output."),Enable_strict_null_checks:ca(6113,3,"Enable_strict_null_checks_6113","Enable strict null checks."),Unknown_option_excludes_Did_you_mean_exclude:ca(6114,1,"Unknown_option_excludes_Did_you_mean_exclude_6114","Unknown option 'excludes'. Did you mean 'exclude'?"),Raise_error_on_this_expressions_with_an_implied_any_type:ca(6115,3,"Raise_error_on_this_expressions_with_an_implied_any_type_6115","Raise error on 'this' expressions with an implied 'any' type."),Resolving_type_reference_directive_0_containing_file_1_root_directory_2:ca(6116,3,"Resolving_type_reference_directive_0_containing_file_1_root_directory_2_6116","======== Resolving type reference directive '{0}', containing file '{1}', root directory '{2}'. ========"),Type_reference_directive_0_was_successfully_resolved_to_1_primary_Colon_2:ca(6119,3,"Type_reference_directive_0_was_successfully_resolved_to_1_primary_Colon_2_6119","======== Type reference directive '{0}' was successfully resolved to '{1}', primary: {2}. ========"),Type_reference_directive_0_was_not_resolved:ca(6120,3,"Type_reference_directive_0_was_not_resolved_6120","======== Type reference directive '{0}' was not resolved. ========"),Resolving_with_primary_search_path_0:ca(6121,3,"Resolving_with_primary_search_path_0_6121","Resolving with primary search path '{0}'."),Root_directory_cannot_be_determined_skipping_primary_search_paths:ca(6122,3,"Root_directory_cannot_be_determined_skipping_primary_search_paths_6122","Root directory cannot be determined, skipping primary search paths."),Resolving_type_reference_directive_0_containing_file_1_root_directory_not_set:ca(6123,3,"Resolving_type_reference_directive_0_containing_file_1_root_directory_not_set_6123","======== Resolving type reference directive '{0}', containing file '{1}', root directory not set. ========"),Type_declaration_files_to_be_included_in_compilation:ca(6124,3,"Type_declaration_files_to_be_included_in_compilation_6124","Type declaration files to be included in compilation."),Looking_up_in_node_modules_folder_initial_location_0:ca(6125,3,"Looking_up_in_node_modules_folder_initial_location_0_6125","Looking up in 'node_modules' folder, initial location '{0}'."),Containing_file_is_not_specified_and_root_directory_cannot_be_determined_skipping_lookup_in_node_modules_folder:ca(6126,3,"Containing_file_is_not_specified_and_root_directory_cannot_be_determined_skipping_lookup_in_node_mod_6126","Containing file is not specified and root directory cannot be determined, skipping lookup in 'node_modules' folder."),Resolving_type_reference_directive_0_containing_file_not_set_root_directory_1:ca(6127,3,"Resolving_type_reference_directive_0_containing_file_not_set_root_directory_1_6127","======== Resolving type reference directive '{0}', containing file not set, root directory '{1}'. ========"),Resolving_type_reference_directive_0_containing_file_not_set_root_directory_not_set:ca(6128,3,"Resolving_type_reference_directive_0_containing_file_not_set_root_directory_not_set_6128","======== Resolving type reference directive '{0}', containing file not set, root directory not set. ========"),Resolving_real_path_for_0_result_1:ca(6130,3,"Resolving_real_path_for_0_result_1_6130","Resolving real path for '{0}', result '{1}'."),Cannot_compile_modules_using_option_0_unless_the_module_flag_is_amd_or_system:ca(6131,1,"Cannot_compile_modules_using_option_0_unless_the_module_flag_is_amd_or_system_6131","Cannot compile modules using option '{0}' unless the '--module' flag is 'amd' or 'system'."),File_name_0_has_a_1_extension_stripping_it:ca(6132,3,"File_name_0_has_a_1_extension_stripping_it_6132","File name '{0}' has a '{1}' extension - stripping it."),_0_is_declared_but_its_value_is_never_read:ca(6133,1,"_0_is_declared_but_its_value_is_never_read_6133","'{0}' is declared but its value is never read.",!0),Report_errors_on_unused_locals:ca(6134,3,"Report_errors_on_unused_locals_6134","Report errors on unused locals."),Report_errors_on_unused_parameters:ca(6135,3,"Report_errors_on_unused_parameters_6135","Report errors on unused parameters."),The_maximum_dependency_depth_to_search_under_node_modules_and_load_JavaScript_files:ca(6136,3,"The_maximum_dependency_depth_to_search_under_node_modules_and_load_JavaScript_files_6136","The maximum dependency depth to search under node_modules and load JavaScript files."),Cannot_import_type_declaration_files_Consider_importing_0_instead_of_1:ca(6137,1,"Cannot_import_type_declaration_files_Consider_importing_0_instead_of_1_6137","Cannot import type declaration files. Consider importing '{0}' instead of '{1}'."),Property_0_is_declared_but_its_value_is_never_read:ca(6138,1,"Property_0_is_declared_but_its_value_is_never_read_6138","Property '{0}' is declared but its value is never read.",!0),Import_emit_helpers_from_tslib:ca(6139,3,"Import_emit_helpers_from_tslib_6139","Import emit helpers from 'tslib'."),Auto_discovery_for_typings_is_enabled_in_project_0_Running_extra_resolution_pass_for_module_1_using_cache_location_2:ca(6140,1,"Auto_discovery_for_typings_is_enabled_in_project_0_Running_extra_resolution_pass_for_module_1_using__6140","Auto discovery for typings is enabled in project '{0}'. Running extra resolution pass for module '{1}' using cache location '{2}'."),Parse_in_strict_mode_and_emit_use_strict_for_each_source_file:ca(6141,3,"Parse_in_strict_mode_and_emit_use_strict_for_each_source_file_6141",'Parse in strict mode and emit "use strict" for each source file.'),Module_0_was_resolved_to_1_but_jsx_is_not_set:ca(6142,1,"Module_0_was_resolved_to_1_but_jsx_is_not_set_6142","Module '{0}' was resolved to '{1}', but '--jsx' is not set."),Module_0_was_resolved_as_locally_declared_ambient_module_in_file_1:ca(6144,3,"Module_0_was_resolved_as_locally_declared_ambient_module_in_file_1_6144","Module '{0}' was resolved as locally declared ambient module in file '{1}'."),Specify_the_JSX_factory_function_to_use_when_targeting_react_JSX_emit_e_g_React_createElement_or_h:ca(6146,3,"Specify_the_JSX_factory_function_to_use_when_targeting_react_JSX_emit_e_g_React_createElement_or_h_6146","Specify the JSX factory function to use when targeting 'react' JSX emit, e.g. 'React.createElement' or 'h'."),Resolution_for_module_0_was_found_in_cache_from_location_1:ca(6147,3,"Resolution_for_module_0_was_found_in_cache_from_location_1_6147","Resolution for module '{0}' was found in cache from location '{1}'."),Directory_0_does_not_exist_skipping_all_lookups_in_it:ca(6148,3,"Directory_0_does_not_exist_skipping_all_lookups_in_it_6148","Directory '{0}' does not exist, skipping all lookups in it."),Show_diagnostic_information:ca(6149,3,"Show_diagnostic_information_6149","Show diagnostic information."),Show_verbose_diagnostic_information:ca(6150,3,"Show_verbose_diagnostic_information_6150","Show verbose diagnostic information."),Emit_a_single_file_with_source_maps_instead_of_having_a_separate_file:ca(6151,3,"Emit_a_single_file_with_source_maps_instead_of_having_a_separate_file_6151","Emit a single file with source maps instead of having a separate file."),Emit_the_source_alongside_the_sourcemaps_within_a_single_file_requires_inlineSourceMap_or_sourceMap_to_be_set:ca(6152,3,"Emit_the_source_alongside_the_sourcemaps_within_a_single_file_requires_inlineSourceMap_or_sourceMap__6152","Emit the source alongside the sourcemaps within a single file; requires '--inlineSourceMap' or '--sourceMap' to be set."),Transpile_each_file_as_a_separate_module_similar_to_ts_transpileModule:ca(6153,3,"Transpile_each_file_as_a_separate_module_similar_to_ts_transpileModule_6153","Transpile each file as a separate module (similar to 'ts.transpileModule')."),Print_names_of_generated_files_part_of_the_compilation:ca(6154,3,"Print_names_of_generated_files_part_of_the_compilation_6154","Print names of generated files part of the compilation."),Print_names_of_files_part_of_the_compilation:ca(6155,3,"Print_names_of_files_part_of_the_compilation_6155","Print names of files part of the compilation."),The_locale_used_when_displaying_messages_to_the_user_e_g_en_us:ca(6156,3,"The_locale_used_when_displaying_messages_to_the_user_e_g_en_us_6156","The locale used when displaying messages to the user (e.g. 'en-us')"),Do_not_generate_custom_helper_functions_like_extends_in_compiled_output:ca(6157,3,"Do_not_generate_custom_helper_functions_like_extends_in_compiled_output_6157","Do not generate custom helper functions like '__extends' in compiled output."),Do_not_include_the_default_library_file_lib_d_ts:ca(6158,3,"Do_not_include_the_default_library_file_lib_d_ts_6158","Do not include the default library file (lib.d.ts)."),Do_not_add_triple_slash_references_or_imported_modules_to_the_list_of_compiled_files:ca(6159,3,"Do_not_add_triple_slash_references_or_imported_modules_to_the_list_of_compiled_files_6159","Do not add triple-slash references or imported modules to the list of compiled files."),Deprecated_Use_skipLibCheck_instead_Skip_type_checking_of_default_library_declaration_files:ca(6160,3,"Deprecated_Use_skipLibCheck_instead_Skip_type_checking_of_default_library_declaration_files_6160","[Deprecated] Use '--skipLibCheck' instead. Skip type checking of default library declaration files."),List_of_folders_to_include_type_definitions_from:ca(6161,3,"List_of_folders_to_include_type_definitions_from_6161","List of folders to include type definitions from."),Disable_size_limitations_on_JavaScript_projects:ca(6162,3,"Disable_size_limitations_on_JavaScript_projects_6162","Disable size limitations on JavaScript projects."),The_character_set_of_the_input_files:ca(6163,3,"The_character_set_of_the_input_files_6163","The character set of the input files."),Skipping_module_0_that_looks_like_an_absolute_URI_target_file_types_Colon_1:ca(6164,3,"Skipping_module_0_that_looks_like_an_absolute_URI_target_file_types_Colon_1_6164","Skipping module '{0}' that looks like an absolute URI, target file types: {1}."),Do_not_truncate_error_messages:ca(6165,3,"Do_not_truncate_error_messages_6165","Do not truncate error messages."),Output_directory_for_generated_declaration_files:ca(6166,3,"Output_directory_for_generated_declaration_files_6166","Output directory for generated declaration files."),A_series_of_entries_which_re_map_imports_to_lookup_locations_relative_to_the_baseUrl:ca(6167,3,"A_series_of_entries_which_re_map_imports_to_lookup_locations_relative_to_the_baseUrl_6167","A series of entries which re-map imports to lookup locations relative to the 'baseUrl'."),List_of_root_folders_whose_combined_content_represents_the_structure_of_the_project_at_runtime:ca(6168,3,"List_of_root_folders_whose_combined_content_represents_the_structure_of_the_project_at_runtime_6168","List of root folders whose combined content represents the structure of the project at runtime."),Show_all_compiler_options:ca(6169,3,"Show_all_compiler_options_6169","Show all compiler options."),Deprecated_Use_outFile_instead_Concatenate_and_emit_output_to_single_file:ca(6170,3,"Deprecated_Use_outFile_instead_Concatenate_and_emit_output_to_single_file_6170","[Deprecated] Use '--outFile' instead. Concatenate and emit output to single file"),Command_line_Options:ca(6171,3,"Command_line_Options_6171","Command-line Options"),Provide_full_support_for_iterables_in_for_of_spread_and_destructuring_when_targeting_ES5:ca(6179,3,"Provide_full_support_for_iterables_in_for_of_spread_and_destructuring_when_targeting_ES5_6179","Provide full support for iterables in 'for-of', spread, and destructuring when targeting 'ES5'."),Enable_all_strict_type_checking_options:ca(6180,3,"Enable_all_strict_type_checking_options_6180","Enable all strict type-checking options."),Scoped_package_detected_looking_in_0:ca(6182,3,"Scoped_package_detected_looking_in_0_6182","Scoped package detected, looking in '{0}'"),Reusing_resolution_of_module_0_from_1_of_old_program_it_was_successfully_resolved_to_2:ca(6183,3,"Reusing_resolution_of_module_0_from_1_of_old_program_it_was_successfully_resolved_to_2_6183","Reusing resolution of module '{0}' from '{1}' of old program, it was successfully resolved to '{2}'."),Reusing_resolution_of_module_0_from_1_of_old_program_it_was_successfully_resolved_to_2_with_Package_ID_3:ca(6184,3,"Reusing_resolution_of_module_0_from_1_of_old_program_it_was_successfully_resolved_to_2_with_Package__6184","Reusing resolution of module '{0}' from '{1}' of old program, it was successfully resolved to '{2}' with Package ID '{3}'."),Enable_strict_checking_of_function_types:ca(6186,3,"Enable_strict_checking_of_function_types_6186","Enable strict checking of function types."),Enable_strict_checking_of_property_initialization_in_classes:ca(6187,3,"Enable_strict_checking_of_property_initialization_in_classes_6187","Enable strict checking of property initialization in classes."),Numeric_separators_are_not_allowed_here:ca(6188,1,"Numeric_separators_are_not_allowed_here_6188","Numeric separators are not allowed here."),Multiple_consecutive_numeric_separators_are_not_permitted:ca(6189,1,"Multiple_consecutive_numeric_separators_are_not_permitted_6189","Multiple consecutive numeric separators are not permitted."),Whether_to_keep_outdated_console_output_in_watch_mode_instead_of_clearing_the_screen:ca(6191,3,"Whether_to_keep_outdated_console_output_in_watch_mode_instead_of_clearing_the_screen_6191","Whether to keep outdated console output in watch mode instead of clearing the screen."),All_imports_in_import_declaration_are_unused:ca(6192,1,"All_imports_in_import_declaration_are_unused_6192","All imports in import declaration are unused.",!0),Found_1_error_Watching_for_file_changes:ca(6193,3,"Found_1_error_Watching_for_file_changes_6193","Found 1 error. Watching for file changes."),Found_0_errors_Watching_for_file_changes:ca(6194,3,"Found_0_errors_Watching_for_file_changes_6194","Found {0} errors. Watching for file changes."),Resolve_keyof_to_string_valued_property_names_only_no_numbers_or_symbols:ca(6195,3,"Resolve_keyof_to_string_valued_property_names_only_no_numbers_or_symbols_6195","Resolve 'keyof' to string valued property names only (no numbers or symbols)."),_0_is_declared_but_never_used:ca(6196,1,"_0_is_declared_but_never_used_6196","'{0}' is declared but never used.",!0),Include_modules_imported_with_json_extension:ca(6197,3,"Include_modules_imported_with_json_extension_6197","Include modules imported with '.json' extension"),All_destructured_elements_are_unused:ca(6198,1,"All_destructured_elements_are_unused_6198","All destructured elements are unused.",!0),All_variables_are_unused:ca(6199,1,"All_variables_are_unused_6199","All variables are unused.",!0),Definitions_of_the_following_identifiers_conflict_with_those_in_another_file_Colon_0:ca(6200,1,"Definitions_of_the_following_identifiers_conflict_with_those_in_another_file_Colon_0_6200","Definitions of the following identifiers conflict with those in another file: {0}"),Conflicts_are_in_this_file:ca(6201,3,"Conflicts_are_in_this_file_6201","Conflicts are in this file."),Project_references_may_not_form_a_circular_graph_Cycle_detected_Colon_0:ca(6202,1,"Project_references_may_not_form_a_circular_graph_Cycle_detected_Colon_0_6202","Project references may not form a circular graph. Cycle detected: {0}"),_0_was_also_declared_here:ca(6203,3,"_0_was_also_declared_here_6203","'{0}' was also declared here."),and_here:ca(6204,3,"and_here_6204","and here."),All_type_parameters_are_unused:ca(6205,1,"All_type_parameters_are_unused_6205","All type parameters are unused."),package_json_has_a_typesVersions_field_with_version_specific_path_mappings:ca(6206,3,"package_json_has_a_typesVersions_field_with_version_specific_path_mappings_6206","'package.json' has a 'typesVersions' field with version-specific path mappings."),package_json_does_not_have_a_typesVersions_entry_that_matches_version_0:ca(6207,3,"package_json_does_not_have_a_typesVersions_entry_that_matches_version_0_6207","'package.json' does not have a 'typesVersions' entry that matches version '{0}'."),package_json_has_a_typesVersions_entry_0_that_matches_compiler_version_1_looking_for_a_pattern_to_match_module_name_2:ca(6208,3,"package_json_has_a_typesVersions_entry_0_that_matches_compiler_version_1_looking_for_a_pattern_to_ma_6208","'package.json' has a 'typesVersions' entry '{0}' that matches compiler version '{1}', looking for a pattern to match module name '{2}'."),package_json_has_a_typesVersions_entry_0_that_is_not_a_valid_semver_range:ca(6209,3,"package_json_has_a_typesVersions_entry_0_that_is_not_a_valid_semver_range_6209","'package.json' has a 'typesVersions' entry '{0}' that is not a valid semver range."),An_argument_for_0_was_not_provided:ca(6210,3,"An_argument_for_0_was_not_provided_6210","An argument for '{0}' was not provided."),An_argument_matching_this_binding_pattern_was_not_provided:ca(6211,3,"An_argument_matching_this_binding_pattern_was_not_provided_6211","An argument matching this binding pattern was not provided."),Did_you_mean_to_call_this_expression:ca(6212,3,"Did_you_mean_to_call_this_expression_6212","Did you mean to call this expression?"),Did_you_mean_to_use_new_with_this_expression:ca(6213,3,"Did_you_mean_to_use_new_with_this_expression_6213","Did you mean to use 'new' with this expression?"),Enable_strict_bind_call_and_apply_methods_on_functions:ca(6214,3,"Enable_strict_bind_call_and_apply_methods_on_functions_6214","Enable strict 'bind', 'call', and 'apply' methods on functions."),Using_compiler_options_of_project_reference_redirect_0:ca(6215,3,"Using_compiler_options_of_project_reference_redirect_0_6215","Using compiler options of project reference redirect '{0}'."),Found_1_error:ca(6216,3,"Found_1_error_6216","Found 1 error."),Found_0_errors:ca(6217,3,"Found_0_errors_6217","Found {0} errors."),Module_name_0_was_successfully_resolved_to_1_with_Package_ID_2:ca(6218,3,"Module_name_0_was_successfully_resolved_to_1_with_Package_ID_2_6218","======== Module name '{0}' was successfully resolved to '{1}' with Package ID '{2}'. ========"),Type_reference_directive_0_was_successfully_resolved_to_1_with_Package_ID_2_primary_Colon_3:ca(6219,3,"Type_reference_directive_0_was_successfully_resolved_to_1_with_Package_ID_2_primary_Colon_3_6219","======== Type reference directive '{0}' was successfully resolved to '{1}' with Package ID '{2}', primary: {3}. ========"),package_json_had_a_falsy_0_field:ca(6220,3,"package_json_had_a_falsy_0_field_6220","'package.json' had a falsy '{0}' field."),Disable_use_of_source_files_instead_of_declaration_files_from_referenced_projects:ca(6221,3,"Disable_use_of_source_files_instead_of_declaration_files_from_referenced_projects_6221","Disable use of source files instead of declaration files from referenced projects."),Emit_class_fields_with_Define_instead_of_Set:ca(6222,3,"Emit_class_fields_with_Define_instead_of_Set_6222","Emit class fields with Define instead of Set."),Generates_a_CPU_profile:ca(6223,3,"Generates_a_CPU_profile_6223","Generates a CPU profile."),Disable_solution_searching_for_this_project:ca(6224,3,"Disable_solution_searching_for_this_project_6224","Disable solution searching for this project."),Specify_strategy_for_watching_file_Colon_FixedPollingInterval_default_PriorityPollingInterval_DynamicPriorityPolling_FixedChunkSizePolling_UseFsEvents_UseFsEventsOnParentDirectory:ca(6225,3,"Specify_strategy_for_watching_file_Colon_FixedPollingInterval_default_PriorityPollingInterval_Dynami_6225","Specify strategy for watching file: 'FixedPollingInterval' (default), 'PriorityPollingInterval', 'DynamicPriorityPolling', 'FixedChunkSizePolling', 'UseFsEvents', 'UseFsEventsOnParentDirectory'."),Specify_strategy_for_watching_directory_on_platforms_that_don_t_support_recursive_watching_natively_Colon_UseFsEvents_default_FixedPollingInterval_DynamicPriorityPolling_FixedChunkSizePolling:ca(6226,3,"Specify_strategy_for_watching_directory_on_platforms_that_don_t_support_recursive_watching_natively__6226","Specify strategy for watching directory on platforms that don't support recursive watching natively: 'UseFsEvents' (default), 'FixedPollingInterval', 'DynamicPriorityPolling', 'FixedChunkSizePolling'."),Specify_strategy_for_creating_a_polling_watch_when_it_fails_to_create_using_file_system_events_Colon_FixedInterval_default_PriorityInterval_DynamicPriority_FixedChunkSize:ca(6227,3,"Specify_strategy_for_creating_a_polling_watch_when_it_fails_to_create_using_file_system_events_Colon_6227","Specify strategy for creating a polling watch when it fails to create using file system events: 'FixedInterval' (default), 'PriorityInterval', 'DynamicPriority', 'FixedChunkSize'."),Tag_0_expects_at_least_1_arguments_but_the_JSX_factory_2_provides_at_most_3:ca(6229,1,"Tag_0_expects_at_least_1_arguments_but_the_JSX_factory_2_provides_at_most_3_6229","Tag '{0}' expects at least '{1}' arguments, but the JSX factory '{2}' provides at most '{3}'."),Option_0_can_only_be_specified_in_tsconfig_json_file_or_set_to_false_or_null_on_command_line:ca(6230,1,"Option_0_can_only_be_specified_in_tsconfig_json_file_or_set_to_false_or_null_on_command_line_6230","Option '{0}' can only be specified in 'tsconfig.json' file or set to 'false' or 'null' on command line."),Could_not_resolve_the_path_0_with_the_extensions_Colon_1:ca(6231,1,"Could_not_resolve_the_path_0_with_the_extensions_Colon_1_6231","Could not resolve the path '{0}' with the extensions: {1}."),Declaration_augments_declaration_in_another_file_This_cannot_be_serialized:ca(6232,1,"Declaration_augments_declaration_in_another_file_This_cannot_be_serialized_6232","Declaration augments declaration in another file. This cannot be serialized."),This_is_the_declaration_being_augmented_Consider_moving_the_augmenting_declaration_into_the_same_file:ca(6233,1,"This_is_the_declaration_being_augmented_Consider_moving_the_augmenting_declaration_into_the_same_fil_6233","This is the declaration being augmented. Consider moving the augmenting declaration into the same file."),This_expression_is_not_callable_because_it_is_a_get_accessor_Did_you_mean_to_use_it_without:ca(6234,1,"This_expression_is_not_callable_because_it_is_a_get_accessor_Did_you_mean_to_use_it_without_6234","This expression is not callable because it is a 'get' accessor. Did you mean to use it without '()'?"),Disable_loading_referenced_projects:ca(6235,3,"Disable_loading_referenced_projects_6235","Disable loading referenced projects."),Arguments_for_the_rest_parameter_0_were_not_provided:ca(6236,1,"Arguments_for_the_rest_parameter_0_were_not_provided_6236","Arguments for the rest parameter '{0}' were not provided."),Generates_an_event_trace_and_a_list_of_types:ca(6237,3,"Generates_an_event_trace_and_a_list_of_types_6237","Generates an event trace and a list of types."),Specify_the_module_specifier_to_be_used_to_import_the_jsx_and_jsxs_factory_functions_from_eg_react:ca(6238,1,"Specify_the_module_specifier_to_be_used_to_import_the_jsx_and_jsxs_factory_functions_from_eg_react_6238","Specify the module specifier to be used to import the 'jsx' and 'jsxs' factory functions from. eg, react"),File_0_exists_according_to_earlier_cached_lookups:ca(6239,3,"File_0_exists_according_to_earlier_cached_lookups_6239","File '{0}' exists according to earlier cached lookups."),File_0_does_not_exist_according_to_earlier_cached_lookups:ca(6240,3,"File_0_does_not_exist_according_to_earlier_cached_lookups_6240","File '{0}' does not exist according to earlier cached lookups."),Resolution_for_type_reference_directive_0_was_found_in_cache_from_location_1:ca(6241,3,"Resolution_for_type_reference_directive_0_was_found_in_cache_from_location_1_6241","Resolution for type reference directive '{0}' was found in cache from location '{1}'."),Resolving_type_reference_directive_0_containing_file_1:ca(6242,3,"Resolving_type_reference_directive_0_containing_file_1_6242","======== Resolving type reference directive '{0}', containing file '{1}'. ========"),Interpret_optional_property_types_as_written_rather_than_adding_undefined:ca(6243,3,"Interpret_optional_property_types_as_written_rather_than_adding_undefined_6243","Interpret optional property types as written, rather than adding 'undefined'."),Modules:ca(6244,3,"Modules_6244","Modules"),File_Management:ca(6245,3,"File_Management_6245","File Management"),Emit:ca(6246,3,"Emit_6246","Emit"),JavaScript_Support:ca(6247,3,"JavaScript_Support_6247","JavaScript Support"),Type_Checking:ca(6248,3,"Type_Checking_6248","Type Checking"),Editor_Support:ca(6249,3,"Editor_Support_6249","Editor Support"),Watch_and_Build_Modes:ca(6250,3,"Watch_and_Build_Modes_6250","Watch and Build Modes"),Compiler_Diagnostics:ca(6251,3,"Compiler_Diagnostics_6251","Compiler Diagnostics"),Interop_Constraints:ca(6252,3,"Interop_Constraints_6252","Interop Constraints"),Backwards_Compatibility:ca(6253,3,"Backwards_Compatibility_6253","Backwards Compatibility"),Language_and_Environment:ca(6254,3,"Language_and_Environment_6254","Language and Environment"),Projects:ca(6255,3,"Projects_6255","Projects"),Output_Formatting:ca(6256,3,"Output_Formatting_6256","Output Formatting"),Completeness:ca(6257,3,"Completeness_6257","Completeness"),_0_should_be_set_inside_the_compilerOptions_object_of_the_config_json_file:ca(6258,1,"_0_should_be_set_inside_the_compilerOptions_object_of_the_config_json_file_6258","'{0}' should be set inside the 'compilerOptions' object of the config json file"),Found_1_error_in_0:ca(6259,3,"Found_1_error_in_0_6259","Found 1 error in {0}"),Found_0_errors_in_the_same_file_starting_at_Colon_1:ca(6260,3,"Found_0_errors_in_the_same_file_starting_at_Colon_1_6260","Found {0} errors in the same file, starting at: {1}"),Found_0_errors_in_1_files:ca(6261,3,"Found_0_errors_in_1_files_6261","Found {0} errors in {1} files."),File_name_0_has_a_1_extension_looking_up_2_instead:ca(6262,3,"File_name_0_has_a_1_extension_looking_up_2_instead_6262","File name '{0}' has a '{1}' extension - looking up '{2}' instead."),Module_0_was_resolved_to_1_but_allowArbitraryExtensions_is_not_set:ca(6263,1,"Module_0_was_resolved_to_1_but_allowArbitraryExtensions_is_not_set_6263","Module '{0}' was resolved to '{1}', but '--allowArbitraryExtensions' is not set."),Enable_importing_files_with_any_extension_provided_a_declaration_file_is_present:ca(6264,3,"Enable_importing_files_with_any_extension_provided_a_declaration_file_is_present_6264","Enable importing files with any extension, provided a declaration file is present."),Resolving_type_reference_directive_for_program_that_specifies_custom_typeRoots_skipping_lookup_in_node_modules_folder:ca(6265,3,"Resolving_type_reference_directive_for_program_that_specifies_custom_typeRoots_skipping_lookup_in_no_6265","Resolving type reference directive for program that specifies custom typeRoots, skipping lookup in 'node_modules' folder."),Option_0_can_only_be_specified_on_command_line:ca(6266,1,"Option_0_can_only_be_specified_on_command_line_6266","Option '{0}' can only be specified on command line."),Directory_0_has_no_containing_package_json_scope_Imports_will_not_resolve:ca(6270,3,"Directory_0_has_no_containing_package_json_scope_Imports_will_not_resolve_6270","Directory '{0}' has no containing package.json scope. Imports will not resolve."),Import_specifier_0_does_not_exist_in_package_json_scope_at_path_1:ca(6271,3,"Import_specifier_0_does_not_exist_in_package_json_scope_at_path_1_6271","Import specifier '{0}' does not exist in package.json scope at path '{1}'."),Invalid_import_specifier_0_has_no_possible_resolutions:ca(6272,3,"Invalid_import_specifier_0_has_no_possible_resolutions_6272","Invalid import specifier '{0}' has no possible resolutions."),package_json_scope_0_has_no_imports_defined:ca(6273,3,"package_json_scope_0_has_no_imports_defined_6273","package.json scope '{0}' has no imports defined."),package_json_scope_0_explicitly_maps_specifier_1_to_null:ca(6274,3,"package_json_scope_0_explicitly_maps_specifier_1_to_null_6274","package.json scope '{0}' explicitly maps specifier '{1}' to null."),package_json_scope_0_has_invalid_type_for_target_of_specifier_1:ca(6275,3,"package_json_scope_0_has_invalid_type_for_target_of_specifier_1_6275","package.json scope '{0}' has invalid type for target of specifier '{1}'"),Export_specifier_0_does_not_exist_in_package_json_scope_at_path_1:ca(6276,3,"Export_specifier_0_does_not_exist_in_package_json_scope_at_path_1_6276","Export specifier '{0}' does not exist in package.json scope at path '{1}'."),Resolution_of_non_relative_name_failed_trying_with_modern_Node_resolution_features_disabled_to_see_if_npm_library_needs_configuration_update:ca(6277,3,"Resolution_of_non_relative_name_failed_trying_with_modern_Node_resolution_features_disabled_to_see_i_6277","Resolution of non-relative name failed; trying with modern Node resolution features disabled to see if npm library needs configuration update."),There_are_types_at_0_but_this_result_could_not_be_resolved_when_respecting_package_json_exports_The_1_library_may_need_to_update_its_package_json_or_typings:ca(6278,3,"There_are_types_at_0_but_this_result_could_not_be_resolved_when_respecting_package_json_exports_The__6278","There are types at '{0}', but this result could not be resolved when respecting package.json \"exports\". The '{1}' library may need to update its package.json or typings."),Resolution_of_non_relative_name_failed_trying_with_moduleResolution_bundler_to_see_if_project_may_need_configuration_update:ca(6279,3,"Resolution_of_non_relative_name_failed_trying_with_moduleResolution_bundler_to_see_if_project_may_ne_6279","Resolution of non-relative name failed; trying with '--moduleResolution bundler' to see if project may need configuration update."),There_are_types_at_0_but_this_result_could_not_be_resolved_under_your_current_moduleResolution_setting_Consider_updating_to_node16_nodenext_or_bundler:ca(6280,3,"There_are_types_at_0_but_this_result_could_not_be_resolved_under_your_current_moduleResolution_setti_6280","There are types at '{0}', but this result could not be resolved under your current 'moduleResolution' setting. Consider updating to 'node16', 'nodenext', or 'bundler'."),package_json_has_a_peerDependencies_field:ca(6281,3,"package_json_has_a_peerDependencies_field_6281","'package.json' has a 'peerDependencies' field."),Found_peerDependency_0_with_1_version:ca(6282,3,"Found_peerDependency_0_with_1_version_6282","Found peerDependency '{0}' with '{1}' version."),Failed_to_find_peerDependency_0:ca(6283,3,"Failed_to_find_peerDependency_0_6283","Failed to find peerDependency '{0}'."),Enable_project_compilation:ca(6302,3,"Enable_project_compilation_6302","Enable project compilation"),Composite_projects_may_not_disable_declaration_emit:ca(6304,1,"Composite_projects_may_not_disable_declaration_emit_6304","Composite projects may not disable declaration emit."),Output_file_0_has_not_been_built_from_source_file_1:ca(6305,1,"Output_file_0_has_not_been_built_from_source_file_1_6305","Output file '{0}' has not been built from source file '{1}'."),Referenced_project_0_must_have_setting_composite_Colon_true:ca(6306,1,"Referenced_project_0_must_have_setting_composite_Colon_true_6306","Referenced project '{0}' must have setting \"composite\": true."),File_0_is_not_listed_within_the_file_list_of_project_1_Projects_must_list_all_files_or_use_an_include_pattern:ca(6307,1,"File_0_is_not_listed_within_the_file_list_of_project_1_Projects_must_list_all_files_or_use_an_includ_6307","File '{0}' is not listed within the file list of project '{1}'. Projects must list all files or use an 'include' pattern."),Referenced_project_0_may_not_disable_emit:ca(6310,1,"Referenced_project_0_may_not_disable_emit_6310","Referenced project '{0}' may not disable emit."),Project_0_is_out_of_date_because_output_1_is_older_than_input_2:ca(6350,3,"Project_0_is_out_of_date_because_output_1_is_older_than_input_2_6350","Project '{0}' is out of date because output '{1}' is older than input '{2}'"),Project_0_is_up_to_date_because_newest_input_1_is_older_than_output_2:ca(6351,3,"Project_0_is_up_to_date_because_newest_input_1_is_older_than_output_2_6351","Project '{0}' is up to date because newest input '{1}' is older than output '{2}'"),Project_0_is_out_of_date_because_output_file_1_does_not_exist:ca(6352,3,"Project_0_is_out_of_date_because_output_file_1_does_not_exist_6352","Project '{0}' is out of date because output file '{1}' does not exist"),Project_0_is_out_of_date_because_its_dependency_1_is_out_of_date:ca(6353,3,"Project_0_is_out_of_date_because_its_dependency_1_is_out_of_date_6353","Project '{0}' is out of date because its dependency '{1}' is out of date"),Project_0_is_up_to_date_with_d_ts_files_from_its_dependencies:ca(6354,3,"Project_0_is_up_to_date_with_d_ts_files_from_its_dependencies_6354","Project '{0}' is up to date with .d.ts files from its dependencies"),Projects_in_this_build_Colon_0:ca(6355,3,"Projects_in_this_build_Colon_0_6355","Projects in this build: {0}"),A_non_dry_build_would_delete_the_following_files_Colon_0:ca(6356,3,"A_non_dry_build_would_delete_the_following_files_Colon_0_6356","A non-dry build would delete the following files: {0}"),A_non_dry_build_would_build_project_0:ca(6357,3,"A_non_dry_build_would_build_project_0_6357","A non-dry build would build project '{0}'"),Building_project_0:ca(6358,3,"Building_project_0_6358","Building project '{0}'..."),Updating_output_timestamps_of_project_0:ca(6359,3,"Updating_output_timestamps_of_project_0_6359","Updating output timestamps of project '{0}'..."),Project_0_is_up_to_date:ca(6361,3,"Project_0_is_up_to_date_6361","Project '{0}' is up to date"),Skipping_build_of_project_0_because_its_dependency_1_has_errors:ca(6362,3,"Skipping_build_of_project_0_because_its_dependency_1_has_errors_6362","Skipping build of project '{0}' because its dependency '{1}' has errors"),Project_0_can_t_be_built_because_its_dependency_1_has_errors:ca(6363,3,"Project_0_can_t_be_built_because_its_dependency_1_has_errors_6363","Project '{0}' can't be built because its dependency '{1}' has errors"),Build_one_or_more_projects_and_their_dependencies_if_out_of_date:ca(6364,3,"Build_one_or_more_projects_and_their_dependencies_if_out_of_date_6364","Build one or more projects and their dependencies, if out of date"),Delete_the_outputs_of_all_projects:ca(6365,3,"Delete_the_outputs_of_all_projects_6365","Delete the outputs of all projects."),Show_what_would_be_built_or_deleted_if_specified_with_clean:ca(6367,3,"Show_what_would_be_built_or_deleted_if_specified_with_clean_6367","Show what would be built (or deleted, if specified with '--clean')"),Option_build_must_be_the_first_command_line_argument:ca(6369,1,"Option_build_must_be_the_first_command_line_argument_6369","Option '--build' must be the first command line argument."),Options_0_and_1_cannot_be_combined:ca(6370,1,"Options_0_and_1_cannot_be_combined_6370","Options '{0}' and '{1}' cannot be combined."),Updating_unchanged_output_timestamps_of_project_0:ca(6371,3,"Updating_unchanged_output_timestamps_of_project_0_6371","Updating unchanged output timestamps of project '{0}'..."),A_non_dry_build_would_update_timestamps_for_output_of_project_0:ca(6374,3,"A_non_dry_build_would_update_timestamps_for_output_of_project_0_6374","A non-dry build would update timestamps for output of project '{0}'"),Cannot_write_file_0_because_it_will_overwrite_tsbuildinfo_file_generated_by_referenced_project_1:ca(6377,1,"Cannot_write_file_0_because_it_will_overwrite_tsbuildinfo_file_generated_by_referenced_project_1_6377","Cannot write file '{0}' because it will overwrite '.tsbuildinfo' file generated by referenced project '{1}'"),Composite_projects_may_not_disable_incremental_compilation:ca(6379,1,"Composite_projects_may_not_disable_incremental_compilation_6379","Composite projects may not disable incremental compilation."),Specify_file_to_store_incremental_compilation_information:ca(6380,3,"Specify_file_to_store_incremental_compilation_information_6380","Specify file to store incremental compilation information"),Project_0_is_out_of_date_because_output_for_it_was_generated_with_version_1_that_differs_with_current_version_2:ca(6381,3,"Project_0_is_out_of_date_because_output_for_it_was_generated_with_version_1_that_differs_with_curren_6381","Project '{0}' is out of date because output for it was generated with version '{1}' that differs with current version '{2}'"),Skipping_build_of_project_0_because_its_dependency_1_was_not_built:ca(6382,3,"Skipping_build_of_project_0_because_its_dependency_1_was_not_built_6382","Skipping build of project '{0}' because its dependency '{1}' was not built"),Project_0_can_t_be_built_because_its_dependency_1_was_not_built:ca(6383,3,"Project_0_can_t_be_built_because_its_dependency_1_was_not_built_6383","Project '{0}' can't be built because its dependency '{1}' was not built"),Have_recompiles_in_incremental_and_watch_assume_that_changes_within_a_file_will_only_affect_files_directly_depending_on_it:ca(6384,3,"Have_recompiles_in_incremental_and_watch_assume_that_changes_within_a_file_will_only_affect_files_di_6384","Have recompiles in '--incremental' and '--watch' assume that changes within a file will only affect files directly depending on it."),_0_is_deprecated:ca(6385,2,"_0_is_deprecated_6385","'{0}' is deprecated.",void 0,void 0,!0),Performance_timings_for_diagnostics_or_extendedDiagnostics_are_not_available_in_this_session_A_native_implementation_of_the_Web_Performance_API_could_not_be_found:ca(6386,3,"Performance_timings_for_diagnostics_or_extendedDiagnostics_are_not_available_in_this_session_A_nativ_6386","Performance timings for '--diagnostics' or '--extendedDiagnostics' are not available in this session. A native implementation of the Web Performance API could not be found."),The_signature_0_of_1_is_deprecated:ca(6387,2,"The_signature_0_of_1_is_deprecated_6387","The signature '{0}' of '{1}' is deprecated.",void 0,void 0,!0),Project_0_is_being_forcibly_rebuilt:ca(6388,3,"Project_0_is_being_forcibly_rebuilt_6388","Project '{0}' is being forcibly rebuilt"),Reusing_resolution_of_module_0_from_1_of_old_program_it_was_not_resolved:ca(6389,3,"Reusing_resolution_of_module_0_from_1_of_old_program_it_was_not_resolved_6389","Reusing resolution of module '{0}' from '{1}' of old program, it was not resolved."),Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_successfully_resolved_to_2:ca(6390,3,"Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_successfully_resolved__6390","Reusing resolution of type reference directive '{0}' from '{1}' of old program, it was successfully resolved to '{2}'."),Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_successfully_resolved_to_2_with_Package_ID_3:ca(6391,3,"Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_successfully_resolved__6391","Reusing resolution of type reference directive '{0}' from '{1}' of old program, it was successfully resolved to '{2}' with Package ID '{3}'."),Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_not_resolved:ca(6392,3,"Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_not_resolved_6392","Reusing resolution of type reference directive '{0}' from '{1}' of old program, it was not resolved."),Reusing_resolution_of_module_0_from_1_found_in_cache_from_location_2_it_was_successfully_resolved_to_3:ca(6393,3,"Reusing_resolution_of_module_0_from_1_found_in_cache_from_location_2_it_was_successfully_resolved_to_6393","Reusing resolution of module '{0}' from '{1}' found in cache from location '{2}', it was successfully resolved to '{3}'."),Reusing_resolution_of_module_0_from_1_found_in_cache_from_location_2_it_was_successfully_resolved_to_3_with_Package_ID_4:ca(6394,3,"Reusing_resolution_of_module_0_from_1_found_in_cache_from_location_2_it_was_successfully_resolved_to_6394","Reusing resolution of module '{0}' from '{1}' found in cache from location '{2}', it was successfully resolved to '{3}' with Package ID '{4}'."),Reusing_resolution_of_module_0_from_1_found_in_cache_from_location_2_it_was_not_resolved:ca(6395,3,"Reusing_resolution_of_module_0_from_1_found_in_cache_from_location_2_it_was_not_resolved_6395","Reusing resolution of module '{0}' from '{1}' found in cache from location '{2}', it was not resolved."),Reusing_resolution_of_type_reference_directive_0_from_1_found_in_cache_from_location_2_it_was_successfully_resolved_to_3:ca(6396,3,"Reusing_resolution_of_type_reference_directive_0_from_1_found_in_cache_from_location_2_it_was_succes_6396","Reusing resolution of type reference directive '{0}' from '{1}' found in cache from location '{2}', it was successfully resolved to '{3}'."),Reusing_resolution_of_type_reference_directive_0_from_1_found_in_cache_from_location_2_it_was_successfully_resolved_to_3_with_Package_ID_4:ca(6397,3,"Reusing_resolution_of_type_reference_directive_0_from_1_found_in_cache_from_location_2_it_was_succes_6397","Reusing resolution of type reference directive '{0}' from '{1}' found in cache from location '{2}', it was successfully resolved to '{3}' with Package ID '{4}'."),Reusing_resolution_of_type_reference_directive_0_from_1_found_in_cache_from_location_2_it_was_not_resolved:ca(6398,3,"Reusing_resolution_of_type_reference_directive_0_from_1_found_in_cache_from_location_2_it_was_not_re_6398","Reusing resolution of type reference directive '{0}' from '{1}' found in cache from location '{2}', it was not resolved."),Project_0_is_out_of_date_because_buildinfo_file_1_indicates_that_some_of_the_changes_were_not_emitted:ca(6399,3,"Project_0_is_out_of_date_because_buildinfo_file_1_indicates_that_some_of_the_changes_were_not_emitte_6399","Project '{0}' is out of date because buildinfo file '{1}' indicates that some of the changes were not emitted"),Project_0_is_up_to_date_but_needs_to_update_timestamps_of_output_files_that_are_older_than_input_files:ca(6400,3,"Project_0_is_up_to_date_but_needs_to_update_timestamps_of_output_files_that_are_older_than_input_fil_6400","Project '{0}' is up to date but needs to update timestamps of output files that are older than input files"),Project_0_is_out_of_date_because_there_was_error_reading_file_1:ca(6401,3,"Project_0_is_out_of_date_because_there_was_error_reading_file_1_6401","Project '{0}' is out of date because there was error reading file '{1}'"),Resolving_in_0_mode_with_conditions_1:ca(6402,3,"Resolving_in_0_mode_with_conditions_1_6402","Resolving in {0} mode with conditions {1}."),Matched_0_condition_1:ca(6403,3,"Matched_0_condition_1_6403","Matched '{0}' condition '{1}'."),Using_0_subpath_1_with_target_2:ca(6404,3,"Using_0_subpath_1_with_target_2_6404","Using '{0}' subpath '{1}' with target '{2}'."),Saw_non_matching_condition_0:ca(6405,3,"Saw_non_matching_condition_0_6405","Saw non-matching condition '{0}'."),Project_0_is_out_of_date_because_buildinfo_file_1_indicates_there_is_change_in_compilerOptions:ca(6406,3,"Project_0_is_out_of_date_because_buildinfo_file_1_indicates_there_is_change_in_compilerOptions_6406","Project '{0}' is out of date because buildinfo file '{1}' indicates there is change in compilerOptions"),Allow_imports_to_include_TypeScript_file_extensions_Requires_moduleResolution_bundler_and_either_noEmit_or_emitDeclarationOnly_to_be_set:ca(6407,3,"Allow_imports_to_include_TypeScript_file_extensions_Requires_moduleResolution_bundler_and_either_noE_6407","Allow imports to include TypeScript file extensions. Requires '--moduleResolution bundler' and either '--noEmit' or '--emitDeclarationOnly' to be set."),Use_the_package_json_exports_field_when_resolving_package_imports:ca(6408,3,"Use_the_package_json_exports_field_when_resolving_package_imports_6408","Use the package.json 'exports' field when resolving package imports."),Use_the_package_json_imports_field_when_resolving_imports:ca(6409,3,"Use_the_package_json_imports_field_when_resolving_imports_6409","Use the package.json 'imports' field when resolving imports."),Conditions_to_set_in_addition_to_the_resolver_specific_defaults_when_resolving_imports:ca(6410,3,"Conditions_to_set_in_addition_to_the_resolver_specific_defaults_when_resolving_imports_6410","Conditions to set in addition to the resolver-specific defaults when resolving imports."),true_when_moduleResolution_is_node16_nodenext_or_bundler_otherwise_false:ca(6411,3,"true_when_moduleResolution_is_node16_nodenext_or_bundler_otherwise_false_6411","`true` when 'moduleResolution' is 'node16', 'nodenext', or 'bundler'; otherwise `false`."),Project_0_is_out_of_date_because_buildinfo_file_1_indicates_that_file_2_was_root_file_of_compilation_but_not_any_more:ca(6412,3,"Project_0_is_out_of_date_because_buildinfo_file_1_indicates_that_file_2_was_root_file_of_compilation_6412","Project '{0}' is out of date because buildinfo file '{1}' indicates that file '{2}' was root file of compilation but not any more."),Entering_conditional_exports:ca(6413,3,"Entering_conditional_exports_6413","Entering conditional exports."),Resolved_under_condition_0:ca(6414,3,"Resolved_under_condition_0_6414","Resolved under condition '{0}'."),Failed_to_resolve_under_condition_0:ca(6415,3,"Failed_to_resolve_under_condition_0_6415","Failed to resolve under condition '{0}'."),Exiting_conditional_exports:ca(6416,3,"Exiting_conditional_exports_6416","Exiting conditional exports."),Searching_all_ancestor_node_modules_directories_for_preferred_extensions_Colon_0:ca(6417,3,"Searching_all_ancestor_node_modules_directories_for_preferred_extensions_Colon_0_6417","Searching all ancestor node_modules directories for preferred extensions: {0}."),Searching_all_ancestor_node_modules_directories_for_fallback_extensions_Colon_0:ca(6418,3,"Searching_all_ancestor_node_modules_directories_for_fallback_extensions_Colon_0_6418","Searching all ancestor node_modules directories for fallback extensions: {0}."),Project_0_is_out_of_date_because_buildinfo_file_1_indicates_that_program_needs_to_report_errors:ca(6419,3,"Project_0_is_out_of_date_because_buildinfo_file_1_indicates_that_program_needs_to_report_errors_6419","Project '{0}' is out of date because buildinfo file '{1}' indicates that program needs to report errors."),Project_0_is_out_of_date_because_1:ca(6420,3,"Project_0_is_out_of_date_because_1_6420","Project '{0}' is out of date because {1}."),Rewrite_ts_tsx_mts_and_cts_file_extensions_in_relative_import_paths_to_their_JavaScript_equivalent_in_output_files:ca(6421,3,"Rewrite_ts_tsx_mts_and_cts_file_extensions_in_relative_import_paths_to_their_JavaScript_equivalent_i_6421","Rewrite '.ts', '.tsx', '.mts', and '.cts' file extensions in relative import paths to their JavaScript equivalent in output files."),The_expected_type_comes_from_property_0_which_is_declared_here_on_type_1:ca(6500,3,"The_expected_type_comes_from_property_0_which_is_declared_here_on_type_1_6500","The expected type comes from property '{0}' which is declared here on type '{1}'"),The_expected_type_comes_from_this_index_signature:ca(6501,3,"The_expected_type_comes_from_this_index_signature_6501","The expected type comes from this index signature."),The_expected_type_comes_from_the_return_type_of_this_signature:ca(6502,3,"The_expected_type_comes_from_the_return_type_of_this_signature_6502","The expected type comes from the return type of this signature."),Print_names_of_files_that_are_part_of_the_compilation_and_then_stop_processing:ca(6503,3,"Print_names_of_files_that_are_part_of_the_compilation_and_then_stop_processing_6503","Print names of files that are part of the compilation and then stop processing."),File_0_is_a_JavaScript_file_Did_you_mean_to_enable_the_allowJs_option:ca(6504,1,"File_0_is_a_JavaScript_file_Did_you_mean_to_enable_the_allowJs_option_6504","File '{0}' is a JavaScript file. Did you mean to enable the 'allowJs' option?"),Print_names_of_files_and_the_reason_they_are_part_of_the_compilation:ca(6505,3,"Print_names_of_files_and_the_reason_they_are_part_of_the_compilation_6505","Print names of files and the reason they are part of the compilation."),Consider_adding_a_declare_modifier_to_this_class:ca(6506,3,"Consider_adding_a_declare_modifier_to_this_class_6506","Consider adding a 'declare' modifier to this class."),Allow_JavaScript_files_to_be_a_part_of_your_program_Use_the_checkJS_option_to_get_errors_from_these_files:ca(6600,3,"Allow_JavaScript_files_to_be_a_part_of_your_program_Use_the_checkJS_option_to_get_errors_from_these__6600","Allow JavaScript files to be a part of your program. Use the 'checkJS' option to get errors from these files."),Allow_import_x_from_y_when_a_module_doesn_t_have_a_default_export:ca(6601,3,"Allow_import_x_from_y_when_a_module_doesn_t_have_a_default_export_6601","Allow 'import x from y' when a module doesn't have a default export."),Allow_accessing_UMD_globals_from_modules:ca(6602,3,"Allow_accessing_UMD_globals_from_modules_6602","Allow accessing UMD globals from modules."),Disable_error_reporting_for_unreachable_code:ca(6603,3,"Disable_error_reporting_for_unreachable_code_6603","Disable error reporting for unreachable code."),Disable_error_reporting_for_unused_labels:ca(6604,3,"Disable_error_reporting_for_unused_labels_6604","Disable error reporting for unused labels."),Ensure_use_strict_is_always_emitted:ca(6605,3,"Ensure_use_strict_is_always_emitted_6605","Ensure 'use strict' is always emitted."),Have_recompiles_in_projects_that_use_incremental_and_watch_mode_assume_that_changes_within_a_file_will_only_affect_files_directly_depending_on_it:ca(6606,3,"Have_recompiles_in_projects_that_use_incremental_and_watch_mode_assume_that_changes_within_a_file_wi_6606","Have recompiles in projects that use 'incremental' and 'watch' mode assume that changes within a file will only affect files directly depending on it."),Specify_the_base_directory_to_resolve_non_relative_module_names:ca(6607,3,"Specify_the_base_directory_to_resolve_non_relative_module_names_6607","Specify the base directory to resolve non-relative module names."),No_longer_supported_In_early_versions_manually_set_the_text_encoding_for_reading_files:ca(6608,3,"No_longer_supported_In_early_versions_manually_set_the_text_encoding_for_reading_files_6608","No longer supported. In early versions, manually set the text encoding for reading files."),Enable_error_reporting_in_type_checked_JavaScript_files:ca(6609,3,"Enable_error_reporting_in_type_checked_JavaScript_files_6609","Enable error reporting in type-checked JavaScript files."),Enable_constraints_that_allow_a_TypeScript_project_to_be_used_with_project_references:ca(6611,3,"Enable_constraints_that_allow_a_TypeScript_project_to_be_used_with_project_references_6611","Enable constraints that allow a TypeScript project to be used with project references."),Generate_d_ts_files_from_TypeScript_and_JavaScript_files_in_your_project:ca(6612,3,"Generate_d_ts_files_from_TypeScript_and_JavaScript_files_in_your_project_6612","Generate .d.ts files from TypeScript and JavaScript files in your project."),Specify_the_output_directory_for_generated_declaration_files:ca(6613,3,"Specify_the_output_directory_for_generated_declaration_files_6613","Specify the output directory for generated declaration files."),Create_sourcemaps_for_d_ts_files:ca(6614,3,"Create_sourcemaps_for_d_ts_files_6614","Create sourcemaps for d.ts files."),Output_compiler_performance_information_after_building:ca(6615,3,"Output_compiler_performance_information_after_building_6615","Output compiler performance information after building."),Disables_inference_for_type_acquisition_by_looking_at_filenames_in_a_project:ca(6616,3,"Disables_inference_for_type_acquisition_by_looking_at_filenames_in_a_project_6616","Disables inference for type acquisition by looking at filenames in a project."),Reduce_the_number_of_projects_loaded_automatically_by_TypeScript:ca(6617,3,"Reduce_the_number_of_projects_loaded_automatically_by_TypeScript_6617","Reduce the number of projects loaded automatically by TypeScript."),Remove_the_20mb_cap_on_total_source_code_size_for_JavaScript_files_in_the_TypeScript_language_server:ca(6618,3,"Remove_the_20mb_cap_on_total_source_code_size_for_JavaScript_files_in_the_TypeScript_language_server_6618","Remove the 20mb cap on total source code size for JavaScript files in the TypeScript language server."),Opt_a_project_out_of_multi_project_reference_checking_when_editing:ca(6619,3,"Opt_a_project_out_of_multi_project_reference_checking_when_editing_6619","Opt a project out of multi-project reference checking when editing."),Disable_preferring_source_files_instead_of_declaration_files_when_referencing_composite_projects:ca(6620,3,"Disable_preferring_source_files_instead_of_declaration_files_when_referencing_composite_projects_6620","Disable preferring source files instead of declaration files when referencing composite projects."),Emit_more_compliant_but_verbose_and_less_performant_JavaScript_for_iteration:ca(6621,3,"Emit_more_compliant_but_verbose_and_less_performant_JavaScript_for_iteration_6621","Emit more compliant, but verbose and less performant JavaScript for iteration."),Emit_a_UTF_8_Byte_Order_Mark_BOM_in_the_beginning_of_output_files:ca(6622,3,"Emit_a_UTF_8_Byte_Order_Mark_BOM_in_the_beginning_of_output_files_6622","Emit a UTF-8 Byte Order Mark (BOM) in the beginning of output files."),Only_output_d_ts_files_and_not_JavaScript_files:ca(6623,3,"Only_output_d_ts_files_and_not_JavaScript_files_6623","Only output d.ts files and not JavaScript files."),Emit_design_type_metadata_for_decorated_declarations_in_source_files:ca(6624,3,"Emit_design_type_metadata_for_decorated_declarations_in_source_files_6624","Emit design-type metadata for decorated declarations in source files."),Disable_the_type_acquisition_for_JavaScript_projects:ca(6625,3,"Disable_the_type_acquisition_for_JavaScript_projects_6625","Disable the type acquisition for JavaScript projects"),Emit_additional_JavaScript_to_ease_support_for_importing_CommonJS_modules_This_enables_allowSyntheticDefaultImports_for_type_compatibility:ca(6626,3,"Emit_additional_JavaScript_to_ease_support_for_importing_CommonJS_modules_This_enables_allowSyntheti_6626","Emit additional JavaScript to ease support for importing CommonJS modules. This enables 'allowSyntheticDefaultImports' for type compatibility."),Filters_results_from_the_include_option:ca(6627,3,"Filters_results_from_the_include_option_6627","Filters results from the `include` option."),Remove_a_list_of_directories_from_the_watch_process:ca(6628,3,"Remove_a_list_of_directories_from_the_watch_process_6628","Remove a list of directories from the watch process."),Remove_a_list_of_files_from_the_watch_mode_s_processing:ca(6629,3,"Remove_a_list_of_files_from_the_watch_mode_s_processing_6629","Remove a list of files from the watch mode's processing."),Enable_experimental_support_for_legacy_experimental_decorators:ca(6630,3,"Enable_experimental_support_for_legacy_experimental_decorators_6630","Enable experimental support for legacy experimental decorators."),Print_files_read_during_the_compilation_including_why_it_was_included:ca(6631,3,"Print_files_read_during_the_compilation_including_why_it_was_included_6631","Print files read during the compilation including why it was included."),Output_more_detailed_compiler_performance_information_after_building:ca(6632,3,"Output_more_detailed_compiler_performance_information_after_building_6632","Output more detailed compiler performance information after building."),Specify_one_or_more_path_or_node_module_references_to_base_configuration_files_from_which_settings_are_inherited:ca(6633,3,"Specify_one_or_more_path_or_node_module_references_to_base_configuration_files_from_which_settings_a_6633","Specify one or more path or node module references to base configuration files from which settings are inherited."),Specify_what_approach_the_watcher_should_use_if_the_system_runs_out_of_native_file_watchers:ca(6634,3,"Specify_what_approach_the_watcher_should_use_if_the_system_runs_out_of_native_file_watchers_6634","Specify what approach the watcher should use if the system runs out of native file watchers."),Include_a_list_of_files_This_does_not_support_glob_patterns_as_opposed_to_include:ca(6635,3,"Include_a_list_of_files_This_does_not_support_glob_patterns_as_opposed_to_include_6635","Include a list of files. This does not support glob patterns, as opposed to `include`."),Build_all_projects_including_those_that_appear_to_be_up_to_date:ca(6636,3,"Build_all_projects_including_those_that_appear_to_be_up_to_date_6636","Build all projects, including those that appear to be up to date."),Ensure_that_casing_is_correct_in_imports:ca(6637,3,"Ensure_that_casing_is_correct_in_imports_6637","Ensure that casing is correct in imports."),Emit_a_v8_CPU_profile_of_the_compiler_run_for_debugging:ca(6638,3,"Emit_a_v8_CPU_profile_of_the_compiler_run_for_debugging_6638","Emit a v8 CPU profile of the compiler run for debugging."),Allow_importing_helper_functions_from_tslib_once_per_project_instead_of_including_them_per_file:ca(6639,3,"Allow_importing_helper_functions_from_tslib_once_per_project_instead_of_including_them_per_file_6639","Allow importing helper functions from tslib once per project, instead of including them per-file."),Skip_building_downstream_projects_on_error_in_upstream_project:ca(6640,3,"Skip_building_downstream_projects_on_error_in_upstream_project_6640","Skip building downstream projects on error in upstream project."),Specify_a_list_of_glob_patterns_that_match_files_to_be_included_in_compilation:ca(6641,3,"Specify_a_list_of_glob_patterns_that_match_files_to_be_included_in_compilation_6641","Specify a list of glob patterns that match files to be included in compilation."),Save_tsbuildinfo_files_to_allow_for_incremental_compilation_of_projects:ca(6642,3,"Save_tsbuildinfo_files_to_allow_for_incremental_compilation_of_projects_6642","Save .tsbuildinfo files to allow for incremental compilation of projects."),Include_sourcemap_files_inside_the_emitted_JavaScript:ca(6643,3,"Include_sourcemap_files_inside_the_emitted_JavaScript_6643","Include sourcemap files inside the emitted JavaScript."),Include_source_code_in_the_sourcemaps_inside_the_emitted_JavaScript:ca(6644,3,"Include_source_code_in_the_sourcemaps_inside_the_emitted_JavaScript_6644","Include source code in the sourcemaps inside the emitted JavaScript."),Ensure_that_each_file_can_be_safely_transpiled_without_relying_on_other_imports:ca(6645,3,"Ensure_that_each_file_can_be_safely_transpiled_without_relying_on_other_imports_6645","Ensure that each file can be safely transpiled without relying on other imports."),Specify_what_JSX_code_is_generated:ca(6646,3,"Specify_what_JSX_code_is_generated_6646","Specify what JSX code is generated."),Specify_the_JSX_factory_function_used_when_targeting_React_JSX_emit_e_g_React_createElement_or_h:ca(6647,3,"Specify_the_JSX_factory_function_used_when_targeting_React_JSX_emit_e_g_React_createElement_or_h_6647","Specify the JSX factory function used when targeting React JSX emit, e.g. 'React.createElement' or 'h'."),Specify_the_JSX_Fragment_reference_used_for_fragments_when_targeting_React_JSX_emit_e_g_React_Fragment_or_Fragment:ca(6648,3,"Specify_the_JSX_Fragment_reference_used_for_fragments_when_targeting_React_JSX_emit_e_g_React_Fragme_6648","Specify the JSX Fragment reference used for fragments when targeting React JSX emit e.g. 'React.Fragment' or 'Fragment'."),Specify_module_specifier_used_to_import_the_JSX_factory_functions_when_using_jsx_Colon_react_jsx_Asterisk:ca(6649,3,"Specify_module_specifier_used_to_import_the_JSX_factory_functions_when_using_jsx_Colon_react_jsx_Ast_6649","Specify module specifier used to import the JSX factory functions when using 'jsx: react-jsx*'."),Make_keyof_only_return_strings_instead_of_string_numbers_or_symbols_Legacy_option:ca(6650,3,"Make_keyof_only_return_strings_instead_of_string_numbers_or_symbols_Legacy_option_6650","Make keyof only return strings instead of string, numbers or symbols. Legacy option."),Specify_a_set_of_bundled_library_declaration_files_that_describe_the_target_runtime_environment:ca(6651,3,"Specify_a_set_of_bundled_library_declaration_files_that_describe_the_target_runtime_environment_6651","Specify a set of bundled library declaration files that describe the target runtime environment."),Print_the_names_of_emitted_files_after_a_compilation:ca(6652,3,"Print_the_names_of_emitted_files_after_a_compilation_6652","Print the names of emitted files after a compilation."),Print_all_of_the_files_read_during_the_compilation:ca(6653,3,"Print_all_of_the_files_read_during_the_compilation_6653","Print all of the files read during the compilation."),Set_the_language_of_the_messaging_from_TypeScript_This_does_not_affect_emit:ca(6654,3,"Set_the_language_of_the_messaging_from_TypeScript_This_does_not_affect_emit_6654","Set the language of the messaging from TypeScript. This does not affect emit."),Specify_the_location_where_debugger_should_locate_map_files_instead_of_generated_locations:ca(6655,3,"Specify_the_location_where_debugger_should_locate_map_files_instead_of_generated_locations_6655","Specify the location where debugger should locate map files instead of generated locations."),Specify_the_maximum_folder_depth_used_for_checking_JavaScript_files_from_node_modules_Only_applicable_with_allowJs:ca(6656,3,"Specify_the_maximum_folder_depth_used_for_checking_JavaScript_files_from_node_modules_Only_applicabl_6656","Specify the maximum folder depth used for checking JavaScript files from 'node_modules'. Only applicable with 'allowJs'."),Specify_what_module_code_is_generated:ca(6657,3,"Specify_what_module_code_is_generated_6657","Specify what module code is generated."),Specify_how_TypeScript_looks_up_a_file_from_a_given_module_specifier:ca(6658,3,"Specify_how_TypeScript_looks_up_a_file_from_a_given_module_specifier_6658","Specify how TypeScript looks up a file from a given module specifier."),Set_the_newline_character_for_emitting_files:ca(6659,3,"Set_the_newline_character_for_emitting_files_6659","Set the newline character for emitting files."),Disable_emitting_files_from_a_compilation:ca(6660,3,"Disable_emitting_files_from_a_compilation_6660","Disable emitting files from a compilation."),Disable_generating_custom_helper_functions_like_extends_in_compiled_output:ca(6661,3,"Disable_generating_custom_helper_functions_like_extends_in_compiled_output_6661","Disable generating custom helper functions like '__extends' in compiled output."),Disable_emitting_files_if_any_type_checking_errors_are_reported:ca(6662,3,"Disable_emitting_files_if_any_type_checking_errors_are_reported_6662","Disable emitting files if any type checking errors are reported."),Disable_truncating_types_in_error_messages:ca(6663,3,"Disable_truncating_types_in_error_messages_6663","Disable truncating types in error messages."),Enable_error_reporting_for_fallthrough_cases_in_switch_statements:ca(6664,3,"Enable_error_reporting_for_fallthrough_cases_in_switch_statements_6664","Enable error reporting for fallthrough cases in switch statements."),Enable_error_reporting_for_expressions_and_declarations_with_an_implied_any_type:ca(6665,3,"Enable_error_reporting_for_expressions_and_declarations_with_an_implied_any_type_6665","Enable error reporting for expressions and declarations with an implied 'any' type."),Ensure_overriding_members_in_derived_classes_are_marked_with_an_override_modifier:ca(6666,3,"Ensure_overriding_members_in_derived_classes_are_marked_with_an_override_modifier_6666","Ensure overriding members in derived classes are marked with an override modifier."),Enable_error_reporting_for_codepaths_that_do_not_explicitly_return_in_a_function:ca(6667,3,"Enable_error_reporting_for_codepaths_that_do_not_explicitly_return_in_a_function_6667","Enable error reporting for codepaths that do not explicitly return in a function."),Enable_error_reporting_when_this_is_given_the_type_any:ca(6668,3,"Enable_error_reporting_when_this_is_given_the_type_any_6668","Enable error reporting when 'this' is given the type 'any'."),Disable_adding_use_strict_directives_in_emitted_JavaScript_files:ca(6669,3,"Disable_adding_use_strict_directives_in_emitted_JavaScript_files_6669","Disable adding 'use strict' directives in emitted JavaScript files."),Disable_including_any_library_files_including_the_default_lib_d_ts:ca(6670,3,"Disable_including_any_library_files_including_the_default_lib_d_ts_6670","Disable including any library files, including the default lib.d.ts."),Enforces_using_indexed_accessors_for_keys_declared_using_an_indexed_type:ca(6671,3,"Enforces_using_indexed_accessors_for_keys_declared_using_an_indexed_type_6671","Enforces using indexed accessors for keys declared using an indexed type."),Disallow_import_s_require_s_or_reference_s_from_expanding_the_number_of_files_TypeScript_should_add_to_a_project:ca(6672,3,"Disallow_import_s_require_s_or_reference_s_from_expanding_the_number_of_files_TypeScript_should_add__6672","Disallow 'import's, 'require's or ''s from expanding the number of files TypeScript should add to a project."),Disable_strict_checking_of_generic_signatures_in_function_types:ca(6673,3,"Disable_strict_checking_of_generic_signatures_in_function_types_6673","Disable strict checking of generic signatures in function types."),Add_undefined_to_a_type_when_accessed_using_an_index:ca(6674,3,"Add_undefined_to_a_type_when_accessed_using_an_index_6674","Add 'undefined' to a type when accessed using an index."),Enable_error_reporting_when_local_variables_aren_t_read:ca(6675,3,"Enable_error_reporting_when_local_variables_aren_t_read_6675","Enable error reporting when local variables aren't read."),Raise_an_error_when_a_function_parameter_isn_t_read:ca(6676,3,"Raise_an_error_when_a_function_parameter_isn_t_read_6676","Raise an error when a function parameter isn't read."),Deprecated_setting_Use_outFile_instead:ca(6677,3,"Deprecated_setting_Use_outFile_instead_6677","Deprecated setting. Use 'outFile' instead."),Specify_an_output_folder_for_all_emitted_files:ca(6678,3,"Specify_an_output_folder_for_all_emitted_files_6678","Specify an output folder for all emitted files."),Specify_a_file_that_bundles_all_outputs_into_one_JavaScript_file_If_declaration_is_true_also_designates_a_file_that_bundles_all_d_ts_output:ca(6679,3,"Specify_a_file_that_bundles_all_outputs_into_one_JavaScript_file_If_declaration_is_true_also_designa_6679","Specify a file that bundles all outputs into one JavaScript file. If 'declaration' is true, also designates a file that bundles all .d.ts output."),Specify_a_set_of_entries_that_re_map_imports_to_additional_lookup_locations:ca(6680,3,"Specify_a_set_of_entries_that_re_map_imports_to_additional_lookup_locations_6680","Specify a set of entries that re-map imports to additional lookup locations."),Specify_a_list_of_language_service_plugins_to_include:ca(6681,3,"Specify_a_list_of_language_service_plugins_to_include_6681","Specify a list of language service plugins to include."),Disable_erasing_const_enum_declarations_in_generated_code:ca(6682,3,"Disable_erasing_const_enum_declarations_in_generated_code_6682","Disable erasing 'const enum' declarations in generated code."),Disable_resolving_symlinks_to_their_realpath_This_correlates_to_the_same_flag_in_node:ca(6683,3,"Disable_resolving_symlinks_to_their_realpath_This_correlates_to_the_same_flag_in_node_6683","Disable resolving symlinks to their realpath. This correlates to the same flag in node."),Disable_wiping_the_console_in_watch_mode:ca(6684,3,"Disable_wiping_the_console_in_watch_mode_6684","Disable wiping the console in watch mode."),Enable_color_and_formatting_in_TypeScript_s_output_to_make_compiler_errors_easier_to_read:ca(6685,3,"Enable_color_and_formatting_in_TypeScript_s_output_to_make_compiler_errors_easier_to_read_6685","Enable color and formatting in TypeScript's output to make compiler errors easier to read."),Specify_the_object_invoked_for_createElement_This_only_applies_when_targeting_react_JSX_emit:ca(6686,3,"Specify_the_object_invoked_for_createElement_This_only_applies_when_targeting_react_JSX_emit_6686","Specify the object invoked for 'createElement'. This only applies when targeting 'react' JSX emit."),Specify_an_array_of_objects_that_specify_paths_for_projects_Used_in_project_references:ca(6687,3,"Specify_an_array_of_objects_that_specify_paths_for_projects_Used_in_project_references_6687","Specify an array of objects that specify paths for projects. Used in project references."),Disable_emitting_comments:ca(6688,3,"Disable_emitting_comments_6688","Disable emitting comments."),Enable_importing_json_files:ca(6689,3,"Enable_importing_json_files_6689","Enable importing .json files."),Specify_the_root_folder_within_your_source_files:ca(6690,3,"Specify_the_root_folder_within_your_source_files_6690","Specify the root folder within your source files."),Allow_multiple_folders_to_be_treated_as_one_when_resolving_modules:ca(6691,3,"Allow_multiple_folders_to_be_treated_as_one_when_resolving_modules_6691","Allow multiple folders to be treated as one when resolving modules."),Skip_type_checking_d_ts_files_that_are_included_with_TypeScript:ca(6692,3,"Skip_type_checking_d_ts_files_that_are_included_with_TypeScript_6692","Skip type checking .d.ts files that are included with TypeScript."),Skip_type_checking_all_d_ts_files:ca(6693,3,"Skip_type_checking_all_d_ts_files_6693","Skip type checking all .d.ts files."),Create_source_map_files_for_emitted_JavaScript_files:ca(6694,3,"Create_source_map_files_for_emitted_JavaScript_files_6694","Create source map files for emitted JavaScript files."),Specify_the_root_path_for_debuggers_to_find_the_reference_source_code:ca(6695,3,"Specify_the_root_path_for_debuggers_to_find_the_reference_source_code_6695","Specify the root path for debuggers to find the reference source code."),Check_that_the_arguments_for_bind_call_and_apply_methods_match_the_original_function:ca(6697,3,"Check_that_the_arguments_for_bind_call_and_apply_methods_match_the_original_function_6697","Check that the arguments for 'bind', 'call', and 'apply' methods match the original function."),When_assigning_functions_check_to_ensure_parameters_and_the_return_values_are_subtype_compatible:ca(6698,3,"When_assigning_functions_check_to_ensure_parameters_and_the_return_values_are_subtype_compatible_6698","When assigning functions, check to ensure parameters and the return values are subtype-compatible."),When_type_checking_take_into_account_null_and_undefined:ca(6699,3,"When_type_checking_take_into_account_null_and_undefined_6699","When type checking, take into account 'null' and 'undefined'."),Check_for_class_properties_that_are_declared_but_not_set_in_the_constructor:ca(6700,3,"Check_for_class_properties_that_are_declared_but_not_set_in_the_constructor_6700","Check for class properties that are declared but not set in the constructor."),Disable_emitting_declarations_that_have_internal_in_their_JSDoc_comments:ca(6701,3,"Disable_emitting_declarations_that_have_internal_in_their_JSDoc_comments_6701","Disable emitting declarations that have '@internal' in their JSDoc comments."),Disable_reporting_of_excess_property_errors_during_the_creation_of_object_literals:ca(6702,3,"Disable_reporting_of_excess_property_errors_during_the_creation_of_object_literals_6702","Disable reporting of excess property errors during the creation of object literals."),Suppress_noImplicitAny_errors_when_indexing_objects_that_lack_index_signatures:ca(6703,3,"Suppress_noImplicitAny_errors_when_indexing_objects_that_lack_index_signatures_6703","Suppress 'noImplicitAny' errors when indexing objects that lack index signatures."),Synchronously_call_callbacks_and_update_the_state_of_directory_watchers_on_platforms_that_don_t_support_recursive_watching_natively:ca(6704,3,"Synchronously_call_callbacks_and_update_the_state_of_directory_watchers_on_platforms_that_don_t_supp_6704","Synchronously call callbacks and update the state of directory watchers on platforms that don`t support recursive watching natively."),Set_the_JavaScript_language_version_for_emitted_JavaScript_and_include_compatible_library_declarations:ca(6705,3,"Set_the_JavaScript_language_version_for_emitted_JavaScript_and_include_compatible_library_declaratio_6705","Set the JavaScript language version for emitted JavaScript and include compatible library declarations."),Log_paths_used_during_the_moduleResolution_process:ca(6706,3,"Log_paths_used_during_the_moduleResolution_process_6706","Log paths used during the 'moduleResolution' process."),Specify_the_path_to_tsbuildinfo_incremental_compilation_file:ca(6707,3,"Specify_the_path_to_tsbuildinfo_incremental_compilation_file_6707","Specify the path to .tsbuildinfo incremental compilation file."),Specify_options_for_automatic_acquisition_of_declaration_files:ca(6709,3,"Specify_options_for_automatic_acquisition_of_declaration_files_6709","Specify options for automatic acquisition of declaration files."),Specify_multiple_folders_that_act_like_Slashnode_modules_Slash_types:ca(6710,3,"Specify_multiple_folders_that_act_like_Slashnode_modules_Slash_types_6710","Specify multiple folders that act like './node_modules/@types'."),Specify_type_package_names_to_be_included_without_being_referenced_in_a_source_file:ca(6711,3,"Specify_type_package_names_to_be_included_without_being_referenced_in_a_source_file_6711","Specify type package names to be included without being referenced in a source file."),Emit_ECMAScript_standard_compliant_class_fields:ca(6712,3,"Emit_ECMAScript_standard_compliant_class_fields_6712","Emit ECMAScript-standard-compliant class fields."),Enable_verbose_logging:ca(6713,3,"Enable_verbose_logging_6713","Enable verbose logging."),Specify_how_directories_are_watched_on_systems_that_lack_recursive_file_watching_functionality:ca(6714,3,"Specify_how_directories_are_watched_on_systems_that_lack_recursive_file_watching_functionality_6714","Specify how directories are watched on systems that lack recursive file-watching functionality."),Specify_how_the_TypeScript_watch_mode_works:ca(6715,3,"Specify_how_the_TypeScript_watch_mode_works_6715","Specify how the TypeScript watch mode works."),Require_undeclared_properties_from_index_signatures_to_use_element_accesses:ca(6717,3,"Require_undeclared_properties_from_index_signatures_to_use_element_accesses_6717","Require undeclared properties from index signatures to use element accesses."),Specify_emit_Slashchecking_behavior_for_imports_that_are_only_used_for_types:ca(6718,3,"Specify_emit_Slashchecking_behavior_for_imports_that_are_only_used_for_types_6718","Specify emit/checking behavior for imports that are only used for types."),Require_sufficient_annotation_on_exports_so_other_tools_can_trivially_generate_declaration_files:ca(6719,3,"Require_sufficient_annotation_on_exports_so_other_tools_can_trivially_generate_declaration_files_6719","Require sufficient annotation on exports so other tools can trivially generate declaration files."),Built_in_iterators_are_instantiated_with_a_TReturn_type_of_undefined_instead_of_any:ca(6720,3,"Built_in_iterators_are_instantiated_with_a_TReturn_type_of_undefined_instead_of_any_6720","Built-in iterators are instantiated with a 'TReturn' type of 'undefined' instead of 'any'."),Default_catch_clause_variables_as_unknown_instead_of_any:ca(6803,3,"Default_catch_clause_variables_as_unknown_instead_of_any_6803","Default catch clause variables as 'unknown' instead of 'any'."),Do_not_transform_or_elide_any_imports_or_exports_not_marked_as_type_only_ensuring_they_are_written_in_the_output_file_s_format_based_on_the_module_setting:ca(6804,3,"Do_not_transform_or_elide_any_imports_or_exports_not_marked_as_type_only_ensuring_they_are_written_i_6804","Do not transform or elide any imports or exports not marked as type-only, ensuring they are written in the output file's format based on the 'module' setting."),Disable_full_type_checking_only_critical_parse_and_emit_errors_will_be_reported:ca(6805,3,"Disable_full_type_checking_only_critical_parse_and_emit_errors_will_be_reported_6805","Disable full type checking (only critical parse and emit errors will be reported)."),Check_side_effect_imports:ca(6806,3,"Check_side_effect_imports_6806","Check side effect imports."),This_operation_can_be_simplified_This_shift_is_identical_to_0_1_2:ca(6807,1,"This_operation_can_be_simplified_This_shift_is_identical_to_0_1_2_6807","This operation can be simplified. This shift is identical to `{0} {1} {2}`."),one_of_Colon:ca(6900,3,"one_of_Colon_6900","one of:"),one_or_more_Colon:ca(6901,3,"one_or_more_Colon_6901","one or more:"),type_Colon:ca(6902,3,"type_Colon_6902","type:"),default_Colon:ca(6903,3,"default_Colon_6903","default:"),module_system_or_esModuleInterop:ca(6904,3,"module_system_or_esModuleInterop_6904",'module === "system" or esModuleInterop'),false_unless_strict_is_set:ca(6905,3,"false_unless_strict_is_set_6905","`false`, unless `strict` is set"),false_unless_composite_is_set:ca(6906,3,"false_unless_composite_is_set_6906","`false`, unless `composite` is set"),node_modules_bower_components_jspm_packages_plus_the_value_of_outDir_if_one_is_specified:ca(6907,3,"node_modules_bower_components_jspm_packages_plus_the_value_of_outDir_if_one_is_specified_6907",'`["node_modules", "bower_components", "jspm_packages"]`, plus the value of `outDir` if one is specified.'),if_files_is_specified_otherwise_Asterisk_Asterisk_Slash_Asterisk:ca(6908,3,"if_files_is_specified_otherwise_Asterisk_Asterisk_Slash_Asterisk_6908",'`[]` if `files` is specified, otherwise `["**/*"]`'),true_if_composite_false_otherwise:ca(6909,3,"true_if_composite_false_otherwise_6909","`true` if `composite`, `false` otherwise"),module_AMD_or_UMD_or_System_or_ES6_then_Classic_Otherwise_Node:ca(69010,3,"module_AMD_or_UMD_or_System_or_ES6_then_Classic_Otherwise_Node_69010","module === `AMD` or `UMD` or `System` or `ES6`, then `Classic`, Otherwise `Node`"),Computed_from_the_list_of_input_files:ca(6911,3,"Computed_from_the_list_of_input_files_6911","Computed from the list of input files"),Platform_specific:ca(6912,3,"Platform_specific_6912","Platform specific"),You_can_learn_about_all_of_the_compiler_options_at_0:ca(6913,3,"You_can_learn_about_all_of_the_compiler_options_at_0_6913","You can learn about all of the compiler options at {0}"),Including_watch_w_will_start_watching_the_current_project_for_the_file_changes_Once_set_you_can_config_watch_mode_with_Colon:ca(6914,3,"Including_watch_w_will_start_watching_the_current_project_for_the_file_changes_Once_set_you_can_conf_6914","Including --watch, -w will start watching the current project for the file changes. Once set, you can config watch mode with:"),Using_build_b_will_make_tsc_behave_more_like_a_build_orchestrator_than_a_compiler_This_is_used_to_trigger_building_composite_projects_which_you_can_learn_more_about_at_0:ca(6915,3,"Using_build_b_will_make_tsc_behave_more_like_a_build_orchestrator_than_a_compiler_This_is_used_to_tr_6915","Using --build, -b will make tsc behave more like a build orchestrator than a compiler. This is used to trigger building composite projects which you can learn more about at {0}"),COMMON_COMMANDS:ca(6916,3,"COMMON_COMMANDS_6916","COMMON COMMANDS"),ALL_COMPILER_OPTIONS:ca(6917,3,"ALL_COMPILER_OPTIONS_6917","ALL COMPILER OPTIONS"),WATCH_OPTIONS:ca(6918,3,"WATCH_OPTIONS_6918","WATCH OPTIONS"),BUILD_OPTIONS:ca(6919,3,"BUILD_OPTIONS_6919","BUILD OPTIONS"),COMMON_COMPILER_OPTIONS:ca(6920,3,"COMMON_COMPILER_OPTIONS_6920","COMMON COMPILER OPTIONS"),COMMAND_LINE_FLAGS:ca(6921,3,"COMMAND_LINE_FLAGS_6921","COMMAND LINE FLAGS"),tsc_Colon_The_TypeScript_Compiler:ca(6922,3,"tsc_Colon_The_TypeScript_Compiler_6922","tsc: The TypeScript Compiler"),Compiles_the_current_project_tsconfig_json_in_the_working_directory:ca(6923,3,"Compiles_the_current_project_tsconfig_json_in_the_working_directory_6923","Compiles the current project (tsconfig.json in the working directory.)"),Ignoring_tsconfig_json_compiles_the_specified_files_with_default_compiler_options:ca(6924,3,"Ignoring_tsconfig_json_compiles_the_specified_files_with_default_compiler_options_6924","Ignoring tsconfig.json, compiles the specified files with default compiler options."),Build_a_composite_project_in_the_working_directory:ca(6925,3,"Build_a_composite_project_in_the_working_directory_6925","Build a composite project in the working directory."),Creates_a_tsconfig_json_with_the_recommended_settings_in_the_working_directory:ca(6926,3,"Creates_a_tsconfig_json_with_the_recommended_settings_in_the_working_directory_6926","Creates a tsconfig.json with the recommended settings in the working directory."),Compiles_the_TypeScript_project_located_at_the_specified_path:ca(6927,3,"Compiles_the_TypeScript_project_located_at_the_specified_path_6927","Compiles the TypeScript project located at the specified path."),An_expanded_version_of_this_information_showing_all_possible_compiler_options:ca(6928,3,"An_expanded_version_of_this_information_showing_all_possible_compiler_options_6928","An expanded version of this information, showing all possible compiler options"),Compiles_the_current_project_with_additional_settings:ca(6929,3,"Compiles_the_current_project_with_additional_settings_6929","Compiles the current project, with additional settings."),true_for_ES2022_and_above_including_ESNext:ca(6930,3,"true_for_ES2022_and_above_including_ESNext_6930","`true` for ES2022 and above, including ESNext."),List_of_file_name_suffixes_to_search_when_resolving_a_module:ca(6931,1,"List_of_file_name_suffixes_to_search_when_resolving_a_module_6931","List of file name suffixes to search when resolving a module."),Variable_0_implicitly_has_an_1_type:ca(7005,1,"Variable_0_implicitly_has_an_1_type_7005","Variable '{0}' implicitly has an '{1}' type."),Parameter_0_implicitly_has_an_1_type:ca(7006,1,"Parameter_0_implicitly_has_an_1_type_7006","Parameter '{0}' implicitly has an '{1}' type."),Member_0_implicitly_has_an_1_type:ca(7008,1,"Member_0_implicitly_has_an_1_type_7008","Member '{0}' implicitly has an '{1}' type."),new_expression_whose_target_lacks_a_construct_signature_implicitly_has_an_any_type:ca(7009,1,"new_expression_whose_target_lacks_a_construct_signature_implicitly_has_an_any_type_7009","'new' expression, whose target lacks a construct signature, implicitly has an 'any' type."),_0_which_lacks_return_type_annotation_implicitly_has_an_1_return_type:ca(7010,1,"_0_which_lacks_return_type_annotation_implicitly_has_an_1_return_type_7010","'{0}', which lacks return-type annotation, implicitly has an '{1}' return type."),Function_expression_which_lacks_return_type_annotation_implicitly_has_an_0_return_type:ca(7011,1,"Function_expression_which_lacks_return_type_annotation_implicitly_has_an_0_return_type_7011","Function expression, which lacks return-type annotation, implicitly has an '{0}' return type."),This_overload_implicitly_returns_the_type_0_because_it_lacks_a_return_type_annotation:ca(7012,1,"This_overload_implicitly_returns_the_type_0_because_it_lacks_a_return_type_annotation_7012","This overload implicitly returns the type '{0}' because it lacks a return type annotation."),Construct_signature_which_lacks_return_type_annotation_implicitly_has_an_any_return_type:ca(7013,1,"Construct_signature_which_lacks_return_type_annotation_implicitly_has_an_any_return_type_7013","Construct signature, which lacks return-type annotation, implicitly has an 'any' return type."),Function_type_which_lacks_return_type_annotation_implicitly_has_an_0_return_type:ca(7014,1,"Function_type_which_lacks_return_type_annotation_implicitly_has_an_0_return_type_7014","Function type, which lacks return-type annotation, implicitly has an '{0}' return type."),Element_implicitly_has_an_any_type_because_index_expression_is_not_of_type_number:ca(7015,1,"Element_implicitly_has_an_any_type_because_index_expression_is_not_of_type_number_7015","Element implicitly has an 'any' type because index expression is not of type 'number'."),Could_not_find_a_declaration_file_for_module_0_1_implicitly_has_an_any_type:ca(7016,1,"Could_not_find_a_declaration_file_for_module_0_1_implicitly_has_an_any_type_7016","Could not find a declaration file for module '{0}'. '{1}' implicitly has an 'any' type."),Element_implicitly_has_an_any_type_because_type_0_has_no_index_signature:ca(7017,1,"Element_implicitly_has_an_any_type_because_type_0_has_no_index_signature_7017","Element implicitly has an 'any' type because type '{0}' has no index signature."),Object_literal_s_property_0_implicitly_has_an_1_type:ca(7018,1,"Object_literal_s_property_0_implicitly_has_an_1_type_7018","Object literal's property '{0}' implicitly has an '{1}' type."),Rest_parameter_0_implicitly_has_an_any_type:ca(7019,1,"Rest_parameter_0_implicitly_has_an_any_type_7019","Rest parameter '{0}' implicitly has an 'any[]' type."),Call_signature_which_lacks_return_type_annotation_implicitly_has_an_any_return_type:ca(7020,1,"Call_signature_which_lacks_return_type_annotation_implicitly_has_an_any_return_type_7020","Call signature, which lacks return-type annotation, implicitly has an 'any' return type."),_0_implicitly_has_type_any_because_it_does_not_have_a_type_annotation_and_is_referenced_directly_or_indirectly_in_its_own_initializer:ca(7022,1,"_0_implicitly_has_type_any_because_it_does_not_have_a_type_annotation_and_is_referenced_directly_or__7022","'{0}' implicitly has type 'any' because it does not have a type annotation and is referenced directly or indirectly in its own initializer."),_0_implicitly_has_return_type_any_because_it_does_not_have_a_return_type_annotation_and_is_referenced_directly_or_indirectly_in_one_of_its_return_expressions:ca(7023,1,"_0_implicitly_has_return_type_any_because_it_does_not_have_a_return_type_annotation_and_is_reference_7023","'{0}' implicitly has return type 'any' because it does not have a return type annotation and is referenced directly or indirectly in one of its return expressions."),Function_implicitly_has_return_type_any_because_it_does_not_have_a_return_type_annotation_and_is_referenced_directly_or_indirectly_in_one_of_its_return_expressions:ca(7024,1,"Function_implicitly_has_return_type_any_because_it_does_not_have_a_return_type_annotation_and_is_ref_7024","Function implicitly has return type 'any' because it does not have a return type annotation and is referenced directly or indirectly in one of its return expressions."),Generator_implicitly_has_yield_type_0_Consider_supplying_a_return_type_annotation:ca(7025,1,"Generator_implicitly_has_yield_type_0_Consider_supplying_a_return_type_annotation_7025","Generator implicitly has yield type '{0}'. Consider supplying a return type annotation."),JSX_element_implicitly_has_type_any_because_no_interface_JSX_0_exists:ca(7026,1,"JSX_element_implicitly_has_type_any_because_no_interface_JSX_0_exists_7026","JSX element implicitly has type 'any' because no interface 'JSX.{0}' exists."),Unreachable_code_detected:ca(7027,1,"Unreachable_code_detected_7027","Unreachable code detected.",!0),Unused_label:ca(7028,1,"Unused_label_7028","Unused label.",!0),Fallthrough_case_in_switch:ca(7029,1,"Fallthrough_case_in_switch_7029","Fallthrough case in switch."),Not_all_code_paths_return_a_value:ca(7030,1,"Not_all_code_paths_return_a_value_7030","Not all code paths return a value."),Binding_element_0_implicitly_has_an_1_type:ca(7031,1,"Binding_element_0_implicitly_has_an_1_type_7031","Binding element '{0}' implicitly has an '{1}' type."),Property_0_implicitly_has_type_any_because_its_set_accessor_lacks_a_parameter_type_annotation:ca(7032,1,"Property_0_implicitly_has_type_any_because_its_set_accessor_lacks_a_parameter_type_annotation_7032","Property '{0}' implicitly has type 'any', because its set accessor lacks a parameter type annotation."),Property_0_implicitly_has_type_any_because_its_get_accessor_lacks_a_return_type_annotation:ca(7033,1,"Property_0_implicitly_has_type_any_because_its_get_accessor_lacks_a_return_type_annotation_7033","Property '{0}' implicitly has type 'any', because its get accessor lacks a return type annotation."),Variable_0_implicitly_has_type_1_in_some_locations_where_its_type_cannot_be_determined:ca(7034,1,"Variable_0_implicitly_has_type_1_in_some_locations_where_its_type_cannot_be_determined_7034","Variable '{0}' implicitly has type '{1}' in some locations where its type cannot be determined."),Try_npm_i_save_dev_types_Slash_1_if_it_exists_or_add_a_new_declaration_d_ts_file_containing_declare_module_0:ca(7035,1,"Try_npm_i_save_dev_types_Slash_1_if_it_exists_or_add_a_new_declaration_d_ts_file_containing_declare__7035","Try `npm i --save-dev @types/{1}` if it exists or add a new declaration (.d.ts) file containing `declare module '{0}';`"),Dynamic_import_s_specifier_must_be_of_type_string_but_here_has_type_0:ca(7036,1,"Dynamic_import_s_specifier_must_be_of_type_string_but_here_has_type_0_7036","Dynamic import's specifier must be of type 'string', but here has type '{0}'."),Enables_emit_interoperability_between_CommonJS_and_ES_Modules_via_creation_of_namespace_objects_for_all_imports_Implies_allowSyntheticDefaultImports:ca(7037,3,"Enables_emit_interoperability_between_CommonJS_and_ES_Modules_via_creation_of_namespace_objects_for__7037","Enables emit interoperability between CommonJS and ES Modules via creation of namespace objects for all imports. Implies 'allowSyntheticDefaultImports'."),Type_originates_at_this_import_A_namespace_style_import_cannot_be_called_or_constructed_and_will_cause_a_failure_at_runtime_Consider_using_a_default_import_or_import_require_here_instead:ca(7038,3,"Type_originates_at_this_import_A_namespace_style_import_cannot_be_called_or_constructed_and_will_cau_7038","Type originates at this import. A namespace-style import cannot be called or constructed, and will cause a failure at runtime. Consider using a default import or import require here instead."),Mapped_object_type_implicitly_has_an_any_template_type:ca(7039,1,"Mapped_object_type_implicitly_has_an_any_template_type_7039","Mapped object type implicitly has an 'any' template type."),If_the_0_package_actually_exposes_this_module_consider_sending_a_pull_request_to_amend_https_Colon_Slash_Slashgithub_com_SlashDefinitelyTyped_SlashDefinitelyTyped_Slashtree_Slashmaster_Slashtypes_Slash_1:ca(7040,1,"If_the_0_package_actually_exposes_this_module_consider_sending_a_pull_request_to_amend_https_Colon_S_7040","If the '{0}' package actually exposes this module, consider sending a pull request to amend 'https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/{1}'"),The_containing_arrow_function_captures_the_global_value_of_this:ca(7041,1,"The_containing_arrow_function_captures_the_global_value_of_this_7041","The containing arrow function captures the global value of 'this'."),Module_0_was_resolved_to_1_but_resolveJsonModule_is_not_used:ca(7042,1,"Module_0_was_resolved_to_1_but_resolveJsonModule_is_not_used_7042","Module '{0}' was resolved to '{1}', but '--resolveJsonModule' is not used."),Variable_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage:ca(7043,2,"Variable_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage_7043","Variable '{0}' implicitly has an '{1}' type, but a better type may be inferred from usage."),Parameter_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage:ca(7044,2,"Parameter_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage_7044","Parameter '{0}' implicitly has an '{1}' type, but a better type may be inferred from usage."),Member_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage:ca(7045,2,"Member_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage_7045","Member '{0}' implicitly has an '{1}' type, but a better type may be inferred from usage."),Variable_0_implicitly_has_type_1_in_some_locations_but_a_better_type_may_be_inferred_from_usage:ca(7046,2,"Variable_0_implicitly_has_type_1_in_some_locations_but_a_better_type_may_be_inferred_from_usage_7046","Variable '{0}' implicitly has type '{1}' in some locations, but a better type may be inferred from usage."),Rest_parameter_0_implicitly_has_an_any_type_but_a_better_type_may_be_inferred_from_usage:ca(7047,2,"Rest_parameter_0_implicitly_has_an_any_type_but_a_better_type_may_be_inferred_from_usage_7047","Rest parameter '{0}' implicitly has an 'any[]' type, but a better type may be inferred from usage."),Property_0_implicitly_has_type_any_but_a_better_type_for_its_get_accessor_may_be_inferred_from_usage:ca(7048,2,"Property_0_implicitly_has_type_any_but_a_better_type_for_its_get_accessor_may_be_inferred_from_usage_7048","Property '{0}' implicitly has type 'any', but a better type for its get accessor may be inferred from usage."),Property_0_implicitly_has_type_any_but_a_better_type_for_its_set_accessor_may_be_inferred_from_usage:ca(7049,2,"Property_0_implicitly_has_type_any_but_a_better_type_for_its_set_accessor_may_be_inferred_from_usage_7049","Property '{0}' implicitly has type 'any', but a better type for its set accessor may be inferred from usage."),_0_implicitly_has_an_1_return_type_but_a_better_type_may_be_inferred_from_usage:ca(7050,2,"_0_implicitly_has_an_1_return_type_but_a_better_type_may_be_inferred_from_usage_7050","'{0}' implicitly has an '{1}' return type, but a better type may be inferred from usage."),Parameter_has_a_name_but_no_type_Did_you_mean_0_Colon_1:ca(7051,1,"Parameter_has_a_name_but_no_type_Did_you_mean_0_Colon_1_7051","Parameter has a name but no type. Did you mean '{0}: {1}'?"),Element_implicitly_has_an_any_type_because_type_0_has_no_index_signature_Did_you_mean_to_call_1:ca(7052,1,"Element_implicitly_has_an_any_type_because_type_0_has_no_index_signature_Did_you_mean_to_call_1_7052","Element implicitly has an 'any' type because type '{0}' has no index signature. Did you mean to call '{1}'?"),Element_implicitly_has_an_any_type_because_expression_of_type_0_can_t_be_used_to_index_type_1:ca(7053,1,"Element_implicitly_has_an_any_type_because_expression_of_type_0_can_t_be_used_to_index_type_1_7053","Element implicitly has an 'any' type because expression of type '{0}' can't be used to index type '{1}'."),No_index_signature_with_a_parameter_of_type_0_was_found_on_type_1:ca(7054,1,"No_index_signature_with_a_parameter_of_type_0_was_found_on_type_1_7054","No index signature with a parameter of type '{0}' was found on type '{1}'."),_0_which_lacks_return_type_annotation_implicitly_has_an_1_yield_type:ca(7055,1,"_0_which_lacks_return_type_annotation_implicitly_has_an_1_yield_type_7055","'{0}', which lacks return-type annotation, implicitly has an '{1}' yield type."),The_inferred_type_of_this_node_exceeds_the_maximum_length_the_compiler_will_serialize_An_explicit_type_annotation_is_needed:ca(7056,1,"The_inferred_type_of_this_node_exceeds_the_maximum_length_the_compiler_will_serialize_An_explicit_ty_7056","The inferred type of this node exceeds the maximum length the compiler will serialize. An explicit type annotation is needed."),yield_expression_implicitly_results_in_an_any_type_because_its_containing_generator_lacks_a_return_type_annotation:ca(7057,1,"yield_expression_implicitly_results_in_an_any_type_because_its_containing_generator_lacks_a_return_t_7057","'yield' expression implicitly results in an 'any' type because its containing generator lacks a return-type annotation."),If_the_0_package_actually_exposes_this_module_try_adding_a_new_declaration_d_ts_file_containing_declare_module_1:ca(7058,1,"If_the_0_package_actually_exposes_this_module_try_adding_a_new_declaration_d_ts_file_containing_decl_7058","If the '{0}' package actually exposes this module, try adding a new declaration (.d.ts) file containing `declare module '{1}';`"),This_syntax_is_reserved_in_files_with_the_mts_or_cts_extension_Use_an_as_expression_instead:ca(7059,1,"This_syntax_is_reserved_in_files_with_the_mts_or_cts_extension_Use_an_as_expression_instead_7059","This syntax is reserved in files with the .mts or .cts extension. Use an `as` expression instead."),This_syntax_is_reserved_in_files_with_the_mts_or_cts_extension_Add_a_trailing_comma_or_explicit_constraint:ca(7060,1,"This_syntax_is_reserved_in_files_with_the_mts_or_cts_extension_Add_a_trailing_comma_or_explicit_cons_7060","This syntax is reserved in files with the .mts or .cts extension. Add a trailing comma or explicit constraint."),A_mapped_type_may_not_declare_properties_or_methods:ca(7061,1,"A_mapped_type_may_not_declare_properties_or_methods_7061","A mapped type may not declare properties or methods."),You_cannot_rename_this_element:ca(8e3,1,"You_cannot_rename_this_element_8000","You cannot rename this element."),You_cannot_rename_elements_that_are_defined_in_the_standard_TypeScript_library:ca(8001,1,"You_cannot_rename_elements_that_are_defined_in_the_standard_TypeScript_library_8001","You cannot rename elements that are defined in the standard TypeScript library."),import_can_only_be_used_in_TypeScript_files:ca(8002,1,"import_can_only_be_used_in_TypeScript_files_8002","'import ... =' can only be used in TypeScript files."),export_can_only_be_used_in_TypeScript_files:ca(8003,1,"export_can_only_be_used_in_TypeScript_files_8003","'export =' can only be used in TypeScript files."),Type_parameter_declarations_can_only_be_used_in_TypeScript_files:ca(8004,1,"Type_parameter_declarations_can_only_be_used_in_TypeScript_files_8004","Type parameter declarations can only be used in TypeScript files."),implements_clauses_can_only_be_used_in_TypeScript_files:ca(8005,1,"implements_clauses_can_only_be_used_in_TypeScript_files_8005","'implements' clauses can only be used in TypeScript files."),_0_declarations_can_only_be_used_in_TypeScript_files:ca(8006,1,"_0_declarations_can_only_be_used_in_TypeScript_files_8006","'{0}' declarations can only be used in TypeScript files."),Type_aliases_can_only_be_used_in_TypeScript_files:ca(8008,1,"Type_aliases_can_only_be_used_in_TypeScript_files_8008","Type aliases can only be used in TypeScript files."),The_0_modifier_can_only_be_used_in_TypeScript_files:ca(8009,1,"The_0_modifier_can_only_be_used_in_TypeScript_files_8009","The '{0}' modifier can only be used in TypeScript files."),Type_annotations_can_only_be_used_in_TypeScript_files:ca(8010,1,"Type_annotations_can_only_be_used_in_TypeScript_files_8010","Type annotations can only be used in TypeScript files."),Type_arguments_can_only_be_used_in_TypeScript_files:ca(8011,1,"Type_arguments_can_only_be_used_in_TypeScript_files_8011","Type arguments can only be used in TypeScript files."),Parameter_modifiers_can_only_be_used_in_TypeScript_files:ca(8012,1,"Parameter_modifiers_can_only_be_used_in_TypeScript_files_8012","Parameter modifiers can only be used in TypeScript files."),Non_null_assertions_can_only_be_used_in_TypeScript_files:ca(8013,1,"Non_null_assertions_can_only_be_used_in_TypeScript_files_8013","Non-null assertions can only be used in TypeScript files."),Type_assertion_expressions_can_only_be_used_in_TypeScript_files:ca(8016,1,"Type_assertion_expressions_can_only_be_used_in_TypeScript_files_8016","Type assertion expressions can only be used in TypeScript files."),Signature_declarations_can_only_be_used_in_TypeScript_files:ca(8017,1,"Signature_declarations_can_only_be_used_in_TypeScript_files_8017","Signature declarations can only be used in TypeScript files."),Report_errors_in_js_files:ca(8019,3,"Report_errors_in_js_files_8019","Report errors in .js files."),JSDoc_types_can_only_be_used_inside_documentation_comments:ca(8020,1,"JSDoc_types_can_only_be_used_inside_documentation_comments_8020","JSDoc types can only be used inside documentation comments."),JSDoc_typedef_tag_should_either_have_a_type_annotation_or_be_followed_by_property_or_member_tags:ca(8021,1,"JSDoc_typedef_tag_should_either_have_a_type_annotation_or_be_followed_by_property_or_member_tags_8021","JSDoc '@typedef' tag should either have a type annotation or be followed by '@property' or '@member' tags."),JSDoc_0_is_not_attached_to_a_class:ca(8022,1,"JSDoc_0_is_not_attached_to_a_class_8022","JSDoc '@{0}' is not attached to a class."),JSDoc_0_1_does_not_match_the_extends_2_clause:ca(8023,1,"JSDoc_0_1_does_not_match_the_extends_2_clause_8023","JSDoc '@{0} {1}' does not match the 'extends {2}' clause."),JSDoc_param_tag_has_name_0_but_there_is_no_parameter_with_that_name:ca(8024,1,"JSDoc_param_tag_has_name_0_but_there_is_no_parameter_with_that_name_8024","JSDoc '@param' tag has name '{0}', but there is no parameter with that name."),Class_declarations_cannot_have_more_than_one_augments_or_extends_tag:ca(8025,1,"Class_declarations_cannot_have_more_than_one_augments_or_extends_tag_8025","Class declarations cannot have more than one '@augments' or '@extends' tag."),Expected_0_type_arguments_provide_these_with_an_extends_tag:ca(8026,1,"Expected_0_type_arguments_provide_these_with_an_extends_tag_8026","Expected {0} type arguments; provide these with an '@extends' tag."),Expected_0_1_type_arguments_provide_these_with_an_extends_tag:ca(8027,1,"Expected_0_1_type_arguments_provide_these_with_an_extends_tag_8027","Expected {0}-{1} type arguments; provide these with an '@extends' tag."),JSDoc_may_only_appear_in_the_last_parameter_of_a_signature:ca(8028,1,"JSDoc_may_only_appear_in_the_last_parameter_of_a_signature_8028","JSDoc '...' may only appear in the last parameter of a signature."),JSDoc_param_tag_has_name_0_but_there_is_no_parameter_with_that_name_It_would_match_arguments_if_it_had_an_array_type:ca(8029,1,"JSDoc_param_tag_has_name_0_but_there_is_no_parameter_with_that_name_It_would_match_arguments_if_it_h_8029","JSDoc '@param' tag has name '{0}', but there is no parameter with that name. It would match 'arguments' if it had an array type."),The_type_of_a_function_declaration_must_match_the_function_s_signature:ca(8030,1,"The_type_of_a_function_declaration_must_match_the_function_s_signature_8030","The type of a function declaration must match the function's signature."),You_cannot_rename_a_module_via_a_global_import:ca(8031,1,"You_cannot_rename_a_module_via_a_global_import_8031","You cannot rename a module via a global import."),Qualified_name_0_is_not_allowed_without_a_leading_param_object_1:ca(8032,1,"Qualified_name_0_is_not_allowed_without_a_leading_param_object_1_8032","Qualified name '{0}' is not allowed without a leading '@param {object} {1}'."),A_JSDoc_typedef_comment_may_not_contain_multiple_type_tags:ca(8033,1,"A_JSDoc_typedef_comment_may_not_contain_multiple_type_tags_8033","A JSDoc '@typedef' comment may not contain multiple '@type' tags."),The_tag_was_first_specified_here:ca(8034,1,"The_tag_was_first_specified_here_8034","The tag was first specified here."),You_cannot_rename_elements_that_are_defined_in_a_node_modules_folder:ca(8035,1,"You_cannot_rename_elements_that_are_defined_in_a_node_modules_folder_8035","You cannot rename elements that are defined in a 'node_modules' folder."),You_cannot_rename_elements_that_are_defined_in_another_node_modules_folder:ca(8036,1,"You_cannot_rename_elements_that_are_defined_in_another_node_modules_folder_8036","You cannot rename elements that are defined in another 'node_modules' folder."),Type_satisfaction_expressions_can_only_be_used_in_TypeScript_files:ca(8037,1,"Type_satisfaction_expressions_can_only_be_used_in_TypeScript_files_8037","Type satisfaction expressions can only be used in TypeScript files."),Decorators_may_not_appear_after_export_or_export_default_if_they_also_appear_before_export:ca(8038,1,"Decorators_may_not_appear_after_export_or_export_default_if_they_also_appear_before_export_8038","Decorators may not appear after 'export' or 'export default' if they also appear before 'export'."),A_JSDoc_template_tag_may_not_follow_a_typedef_callback_or_overload_tag:ca(8039,1,"A_JSDoc_template_tag_may_not_follow_a_typedef_callback_or_overload_tag_8039","A JSDoc '@template' tag may not follow a '@typedef', '@callback', or '@overload' tag"),Declaration_emit_for_this_file_requires_using_private_name_0_An_explicit_type_annotation_may_unblock_declaration_emit:ca(9005,1,"Declaration_emit_for_this_file_requires_using_private_name_0_An_explicit_type_annotation_may_unblock_9005","Declaration emit for this file requires using private name '{0}'. An explicit type annotation may unblock declaration emit."),Declaration_emit_for_this_file_requires_using_private_name_0_from_module_1_An_explicit_type_annotation_may_unblock_declaration_emit:ca(9006,1,"Declaration_emit_for_this_file_requires_using_private_name_0_from_module_1_An_explicit_type_annotati_9006","Declaration emit for this file requires using private name '{0}' from module '{1}'. An explicit type annotation may unblock declaration emit."),Function_must_have_an_explicit_return_type_annotation_with_isolatedDeclarations:ca(9007,1,"Function_must_have_an_explicit_return_type_annotation_with_isolatedDeclarations_9007","Function must have an explicit return type annotation with --isolatedDeclarations."),Method_must_have_an_explicit_return_type_annotation_with_isolatedDeclarations:ca(9008,1,"Method_must_have_an_explicit_return_type_annotation_with_isolatedDeclarations_9008","Method must have an explicit return type annotation with --isolatedDeclarations."),At_least_one_accessor_must_have_an_explicit_type_annotation_with_isolatedDeclarations:ca(9009,1,"At_least_one_accessor_must_have_an_explicit_type_annotation_with_isolatedDeclarations_9009","At least one accessor must have an explicit type annotation with --isolatedDeclarations."),Variable_must_have_an_explicit_type_annotation_with_isolatedDeclarations:ca(9010,1,"Variable_must_have_an_explicit_type_annotation_with_isolatedDeclarations_9010","Variable must have an explicit type annotation with --isolatedDeclarations."),Parameter_must_have_an_explicit_type_annotation_with_isolatedDeclarations:ca(9011,1,"Parameter_must_have_an_explicit_type_annotation_with_isolatedDeclarations_9011","Parameter must have an explicit type annotation with --isolatedDeclarations."),Property_must_have_an_explicit_type_annotation_with_isolatedDeclarations:ca(9012,1,"Property_must_have_an_explicit_type_annotation_with_isolatedDeclarations_9012","Property must have an explicit type annotation with --isolatedDeclarations."),Expression_type_can_t_be_inferred_with_isolatedDeclarations:ca(9013,1,"Expression_type_can_t_be_inferred_with_isolatedDeclarations_9013","Expression type can't be inferred with --isolatedDeclarations."),Computed_properties_must_be_number_or_string_literals_variables_or_dotted_expressions_with_isolatedDeclarations:ca(9014,1,"Computed_properties_must_be_number_or_string_literals_variables_or_dotted_expressions_with_isolatedD_9014","Computed properties must be number or string literals, variables or dotted expressions with --isolatedDeclarations."),Objects_that_contain_spread_assignments_can_t_be_inferred_with_isolatedDeclarations:ca(9015,1,"Objects_that_contain_spread_assignments_can_t_be_inferred_with_isolatedDeclarations_9015","Objects that contain spread assignments can't be inferred with --isolatedDeclarations."),Objects_that_contain_shorthand_properties_can_t_be_inferred_with_isolatedDeclarations:ca(9016,1,"Objects_that_contain_shorthand_properties_can_t_be_inferred_with_isolatedDeclarations_9016","Objects that contain shorthand properties can't be inferred with --isolatedDeclarations."),Only_const_arrays_can_be_inferred_with_isolatedDeclarations:ca(9017,1,"Only_const_arrays_can_be_inferred_with_isolatedDeclarations_9017","Only const arrays can be inferred with --isolatedDeclarations."),Arrays_with_spread_elements_can_t_inferred_with_isolatedDeclarations:ca(9018,1,"Arrays_with_spread_elements_can_t_inferred_with_isolatedDeclarations_9018","Arrays with spread elements can't inferred with --isolatedDeclarations."),Binding_elements_can_t_be_exported_directly_with_isolatedDeclarations:ca(9019,1,"Binding_elements_can_t_be_exported_directly_with_isolatedDeclarations_9019","Binding elements can't be exported directly with --isolatedDeclarations."),Enum_member_initializers_must_be_computable_without_references_to_external_symbols_with_isolatedDeclarations:ca(9020,1,"Enum_member_initializers_must_be_computable_without_references_to_external_symbols_with_isolatedDecl_9020","Enum member initializers must be computable without references to external symbols with --isolatedDeclarations."),Extends_clause_can_t_contain_an_expression_with_isolatedDeclarations:ca(9021,1,"Extends_clause_can_t_contain_an_expression_with_isolatedDeclarations_9021","Extends clause can't contain an expression with --isolatedDeclarations."),Inference_from_class_expressions_is_not_supported_with_isolatedDeclarations:ca(9022,1,"Inference_from_class_expressions_is_not_supported_with_isolatedDeclarations_9022","Inference from class expressions is not supported with --isolatedDeclarations."),Assigning_properties_to_functions_without_declaring_them_is_not_supported_with_isolatedDeclarations_Add_an_explicit_declaration_for_the_properties_assigned_to_this_function:ca(9023,1,"Assigning_properties_to_functions_without_declaring_them_is_not_supported_with_isolatedDeclarations__9023","Assigning properties to functions without declaring them is not supported with --isolatedDeclarations. Add an explicit declaration for the properties assigned to this function."),Declaration_emit_for_this_parameter_requires_implicitly_adding_undefined_to_its_type_This_is_not_supported_with_isolatedDeclarations:ca(9025,1,"Declaration_emit_for_this_parameter_requires_implicitly_adding_undefined_to_its_type_This_is_not_sup_9025","Declaration emit for this parameter requires implicitly adding undefined to its type. This is not supported with --isolatedDeclarations."),Declaration_emit_for_this_file_requires_preserving_this_import_for_augmentations_This_is_not_supported_with_isolatedDeclarations:ca(9026,1,"Declaration_emit_for_this_file_requires_preserving_this_import_for_augmentations_This_is_not_support_9026","Declaration emit for this file requires preserving this import for augmentations. This is not supported with --isolatedDeclarations."),Add_a_type_annotation_to_the_variable_0:ca(9027,1,"Add_a_type_annotation_to_the_variable_0_9027","Add a type annotation to the variable {0}."),Add_a_type_annotation_to_the_parameter_0:ca(9028,1,"Add_a_type_annotation_to_the_parameter_0_9028","Add a type annotation to the parameter {0}."),Add_a_type_annotation_to_the_property_0:ca(9029,1,"Add_a_type_annotation_to_the_property_0_9029","Add a type annotation to the property {0}."),Add_a_return_type_to_the_function_expression:ca(9030,1,"Add_a_return_type_to_the_function_expression_9030","Add a return type to the function expression."),Add_a_return_type_to_the_function_declaration:ca(9031,1,"Add_a_return_type_to_the_function_declaration_9031","Add a return type to the function declaration."),Add_a_return_type_to_the_get_accessor_declaration:ca(9032,1,"Add_a_return_type_to_the_get_accessor_declaration_9032","Add a return type to the get accessor declaration."),Add_a_type_to_parameter_of_the_set_accessor_declaration:ca(9033,1,"Add_a_type_to_parameter_of_the_set_accessor_declaration_9033","Add a type to parameter of the set accessor declaration."),Add_a_return_type_to_the_method:ca(9034,1,"Add_a_return_type_to_the_method_9034","Add a return type to the method"),Add_satisfies_and_a_type_assertion_to_this_expression_satisfies_T_as_T_to_make_the_type_explicit:ca(9035,1,"Add_satisfies_and_a_type_assertion_to_this_expression_satisfies_T_as_T_to_make_the_type_explicit_9035","Add satisfies and a type assertion to this expression (satisfies T as T) to make the type explicit."),Move_the_expression_in_default_export_to_a_variable_and_add_a_type_annotation_to_it:ca(9036,1,"Move_the_expression_in_default_export_to_a_variable_and_add_a_type_annotation_to_it_9036","Move the expression in default export to a variable and add a type annotation to it."),Default_exports_can_t_be_inferred_with_isolatedDeclarations:ca(9037,1,"Default_exports_can_t_be_inferred_with_isolatedDeclarations_9037","Default exports can't be inferred with --isolatedDeclarations."),Computed_property_names_on_class_or_object_literals_cannot_be_inferred_with_isolatedDeclarations:ca(9038,1,"Computed_property_names_on_class_or_object_literals_cannot_be_inferred_with_isolatedDeclarations_9038","Computed property names on class or object literals cannot be inferred with --isolatedDeclarations."),Type_containing_private_name_0_can_t_be_used_with_isolatedDeclarations:ca(9039,1,"Type_containing_private_name_0_can_t_be_used_with_isolatedDeclarations_9039","Type containing private name '{0}' can't be used with --isolatedDeclarations."),JSX_attributes_must_only_be_assigned_a_non_empty_expression:ca(17e3,1,"JSX_attributes_must_only_be_assigned_a_non_empty_expression_17000","JSX attributes must only be assigned a non-empty 'expression'."),JSX_elements_cannot_have_multiple_attributes_with_the_same_name:ca(17001,1,"JSX_elements_cannot_have_multiple_attributes_with_the_same_name_17001","JSX elements cannot have multiple attributes with the same name."),Expected_corresponding_JSX_closing_tag_for_0:ca(17002,1,"Expected_corresponding_JSX_closing_tag_for_0_17002","Expected corresponding JSX closing tag for '{0}'."),Cannot_use_JSX_unless_the_jsx_flag_is_provided:ca(17004,1,"Cannot_use_JSX_unless_the_jsx_flag_is_provided_17004","Cannot use JSX unless the '--jsx' flag is provided."),A_constructor_cannot_contain_a_super_call_when_its_class_extends_null:ca(17005,1,"A_constructor_cannot_contain_a_super_call_when_its_class_extends_null_17005","A constructor cannot contain a 'super' call when its class extends 'null'."),An_unary_expression_with_the_0_operator_is_not_allowed_in_the_left_hand_side_of_an_exponentiation_expression_Consider_enclosing_the_expression_in_parentheses:ca(17006,1,"An_unary_expression_with_the_0_operator_is_not_allowed_in_the_left_hand_side_of_an_exponentiation_ex_17006","An unary expression with the '{0}' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses."),A_type_assertion_expression_is_not_allowed_in_the_left_hand_side_of_an_exponentiation_expression_Consider_enclosing_the_expression_in_parentheses:ca(17007,1,"A_type_assertion_expression_is_not_allowed_in_the_left_hand_side_of_an_exponentiation_expression_Con_17007","A type assertion expression is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses."),JSX_element_0_has_no_corresponding_closing_tag:ca(17008,1,"JSX_element_0_has_no_corresponding_closing_tag_17008","JSX element '{0}' has no corresponding closing tag."),super_must_be_called_before_accessing_this_in_the_constructor_of_a_derived_class:ca(17009,1,"super_must_be_called_before_accessing_this_in_the_constructor_of_a_derived_class_17009","'super' must be called before accessing 'this' in the constructor of a derived class."),Unknown_type_acquisition_option_0:ca(17010,1,"Unknown_type_acquisition_option_0_17010","Unknown type acquisition option '{0}'."),super_must_be_called_before_accessing_a_property_of_super_in_the_constructor_of_a_derived_class:ca(17011,1,"super_must_be_called_before_accessing_a_property_of_super_in_the_constructor_of_a_derived_class_17011","'super' must be called before accessing a property of 'super' in the constructor of a derived class."),_0_is_not_a_valid_meta_property_for_keyword_1_Did_you_mean_2:ca(17012,1,"_0_is_not_a_valid_meta_property_for_keyword_1_Did_you_mean_2_17012","'{0}' is not a valid meta-property for keyword '{1}'. Did you mean '{2}'?"),Meta_property_0_is_only_allowed_in_the_body_of_a_function_declaration_function_expression_or_constructor:ca(17013,1,"Meta_property_0_is_only_allowed_in_the_body_of_a_function_declaration_function_expression_or_constru_17013","Meta-property '{0}' is only allowed in the body of a function declaration, function expression, or constructor."),JSX_fragment_has_no_corresponding_closing_tag:ca(17014,1,"JSX_fragment_has_no_corresponding_closing_tag_17014","JSX fragment has no corresponding closing tag."),Expected_corresponding_closing_tag_for_JSX_fragment:ca(17015,1,"Expected_corresponding_closing_tag_for_JSX_fragment_17015","Expected corresponding closing tag for JSX fragment."),The_jsxFragmentFactory_compiler_option_must_be_provided_to_use_JSX_fragments_with_the_jsxFactory_compiler_option:ca(17016,1,"The_jsxFragmentFactory_compiler_option_must_be_provided_to_use_JSX_fragments_with_the_jsxFactory_com_17016","The 'jsxFragmentFactory' compiler option must be provided to use JSX fragments with the 'jsxFactory' compiler option."),An_jsxFrag_pragma_is_required_when_using_an_jsx_pragma_with_JSX_fragments:ca(17017,1,"An_jsxFrag_pragma_is_required_when_using_an_jsx_pragma_with_JSX_fragments_17017","An @jsxFrag pragma is required when using an @jsx pragma with JSX fragments."),Unknown_type_acquisition_option_0_Did_you_mean_1:ca(17018,1,"Unknown_type_acquisition_option_0_Did_you_mean_1_17018","Unknown type acquisition option '{0}'. Did you mean '{1}'?"),_0_at_the_end_of_a_type_is_not_valid_TypeScript_syntax_Did_you_mean_to_write_1:ca(17019,1,"_0_at_the_end_of_a_type_is_not_valid_TypeScript_syntax_Did_you_mean_to_write_1_17019","'{0}' at the end of a type is not valid TypeScript syntax. Did you mean to write '{1}'?"),_0_at_the_start_of_a_type_is_not_valid_TypeScript_syntax_Did_you_mean_to_write_1:ca(17020,1,"_0_at_the_start_of_a_type_is_not_valid_TypeScript_syntax_Did_you_mean_to_write_1_17020","'{0}' at the start of a type is not valid TypeScript syntax. Did you mean to write '{1}'?"),Unicode_escape_sequence_cannot_appear_here:ca(17021,1,"Unicode_escape_sequence_cannot_appear_here_17021","Unicode escape sequence cannot appear here."),Circularity_detected_while_resolving_configuration_Colon_0:ca(18e3,1,"Circularity_detected_while_resolving_configuration_Colon_0_18000","Circularity detected while resolving configuration: {0}"),The_files_list_in_config_file_0_is_empty:ca(18002,1,"The_files_list_in_config_file_0_is_empty_18002","The 'files' list in config file '{0}' is empty."),No_inputs_were_found_in_config_file_0_Specified_include_paths_were_1_and_exclude_paths_were_2:ca(18003,1,"No_inputs_were_found_in_config_file_0_Specified_include_paths_were_1_and_exclude_paths_were_2_18003","No inputs were found in config file '{0}'. Specified 'include' paths were '{1}' and 'exclude' paths were '{2}'."),File_is_a_CommonJS_module_it_may_be_converted_to_an_ES_module:ca(80001,2,"File_is_a_CommonJS_module_it_may_be_converted_to_an_ES_module_80001","File is a CommonJS module; it may be converted to an ES module."),This_constructor_function_may_be_converted_to_a_class_declaration:ca(80002,2,"This_constructor_function_may_be_converted_to_a_class_declaration_80002","This constructor function may be converted to a class declaration."),Import_may_be_converted_to_a_default_import:ca(80003,2,"Import_may_be_converted_to_a_default_import_80003","Import may be converted to a default import."),JSDoc_types_may_be_moved_to_TypeScript_types:ca(80004,2,"JSDoc_types_may_be_moved_to_TypeScript_types_80004","JSDoc types may be moved to TypeScript types."),require_call_may_be_converted_to_an_import:ca(80005,2,"require_call_may_be_converted_to_an_import_80005","'require' call may be converted to an import."),This_may_be_converted_to_an_async_function:ca(80006,2,"This_may_be_converted_to_an_async_function_80006","This may be converted to an async function."),await_has_no_effect_on_the_type_of_this_expression:ca(80007,2,"await_has_no_effect_on_the_type_of_this_expression_80007","'await' has no effect on the type of this expression."),Numeric_literals_with_absolute_values_equal_to_2_53_or_greater_are_too_large_to_be_represented_accurately_as_integers:ca(80008,2,"Numeric_literals_with_absolute_values_equal_to_2_53_or_greater_are_too_large_to_be_represented_accur_80008","Numeric literals with absolute values equal to 2^53 or greater are too large to be represented accurately as integers."),JSDoc_typedef_may_be_converted_to_TypeScript_type:ca(80009,2,"JSDoc_typedef_may_be_converted_to_TypeScript_type_80009","JSDoc typedef may be converted to TypeScript type."),JSDoc_typedefs_may_be_converted_to_TypeScript_types:ca(80010,2,"JSDoc_typedefs_may_be_converted_to_TypeScript_types_80010","JSDoc typedefs may be converted to TypeScript types."),Add_missing_super_call:ca(90001,3,"Add_missing_super_call_90001","Add missing 'super()' call"),Make_super_call_the_first_statement_in_the_constructor:ca(90002,3,"Make_super_call_the_first_statement_in_the_constructor_90002","Make 'super()' call the first statement in the constructor"),Change_extends_to_implements:ca(90003,3,"Change_extends_to_implements_90003","Change 'extends' to 'implements'"),Remove_unused_declaration_for_Colon_0:ca(90004,3,"Remove_unused_declaration_for_Colon_0_90004","Remove unused declaration for: '{0}'"),Remove_import_from_0:ca(90005,3,"Remove_import_from_0_90005","Remove import from '{0}'"),Implement_interface_0:ca(90006,3,"Implement_interface_0_90006","Implement interface '{0}'"),Implement_inherited_abstract_class:ca(90007,3,"Implement_inherited_abstract_class_90007","Implement inherited abstract class"),Add_0_to_unresolved_variable:ca(90008,3,"Add_0_to_unresolved_variable_90008","Add '{0}.' to unresolved variable"),Remove_variable_statement:ca(90010,3,"Remove_variable_statement_90010","Remove variable statement"),Remove_template_tag:ca(90011,3,"Remove_template_tag_90011","Remove template tag"),Remove_type_parameters:ca(90012,3,"Remove_type_parameters_90012","Remove type parameters"),Import_0_from_1:ca(90013,3,"Import_0_from_1_90013","Import '{0}' from \"{1}\""),Change_0_to_1:ca(90014,3,"Change_0_to_1_90014","Change '{0}' to '{1}'"),Declare_property_0:ca(90016,3,"Declare_property_0_90016","Declare property '{0}'"),Add_index_signature_for_property_0:ca(90017,3,"Add_index_signature_for_property_0_90017","Add index signature for property '{0}'"),Disable_checking_for_this_file:ca(90018,3,"Disable_checking_for_this_file_90018","Disable checking for this file"),Ignore_this_error_message:ca(90019,3,"Ignore_this_error_message_90019","Ignore this error message"),Initialize_property_0_in_the_constructor:ca(90020,3,"Initialize_property_0_in_the_constructor_90020","Initialize property '{0}' in the constructor"),Initialize_static_property_0:ca(90021,3,"Initialize_static_property_0_90021","Initialize static property '{0}'"),Change_spelling_to_0:ca(90022,3,"Change_spelling_to_0_90022","Change spelling to '{0}'"),Declare_method_0:ca(90023,3,"Declare_method_0_90023","Declare method '{0}'"),Declare_static_method_0:ca(90024,3,"Declare_static_method_0_90024","Declare static method '{0}'"),Prefix_0_with_an_underscore:ca(90025,3,"Prefix_0_with_an_underscore_90025","Prefix '{0}' with an underscore"),Rewrite_as_the_indexed_access_type_0:ca(90026,3,"Rewrite_as_the_indexed_access_type_0_90026","Rewrite as the indexed access type '{0}'"),Declare_static_property_0:ca(90027,3,"Declare_static_property_0_90027","Declare static property '{0}'"),Call_decorator_expression:ca(90028,3,"Call_decorator_expression_90028","Call decorator expression"),Add_async_modifier_to_containing_function:ca(90029,3,"Add_async_modifier_to_containing_function_90029","Add async modifier to containing function"),Replace_infer_0_with_unknown:ca(90030,3,"Replace_infer_0_with_unknown_90030","Replace 'infer {0}' with 'unknown'"),Replace_all_unused_infer_with_unknown:ca(90031,3,"Replace_all_unused_infer_with_unknown_90031","Replace all unused 'infer' with 'unknown'"),Add_parameter_name:ca(90034,3,"Add_parameter_name_90034","Add parameter name"),Declare_private_property_0:ca(90035,3,"Declare_private_property_0_90035","Declare private property '{0}'"),Replace_0_with_Promise_1:ca(90036,3,"Replace_0_with_Promise_1_90036","Replace '{0}' with 'Promise<{1}>'"),Fix_all_incorrect_return_type_of_an_async_functions:ca(90037,3,"Fix_all_incorrect_return_type_of_an_async_functions_90037","Fix all incorrect return type of an async functions"),Declare_private_method_0:ca(90038,3,"Declare_private_method_0_90038","Declare private method '{0}'"),Remove_unused_destructuring_declaration:ca(90039,3,"Remove_unused_destructuring_declaration_90039","Remove unused destructuring declaration"),Remove_unused_declarations_for_Colon_0:ca(90041,3,"Remove_unused_declarations_for_Colon_0_90041","Remove unused declarations for: '{0}'"),Declare_a_private_field_named_0:ca(90053,3,"Declare_a_private_field_named_0_90053","Declare a private field named '{0}'."),Includes_imports_of_types_referenced_by_0:ca(90054,3,"Includes_imports_of_types_referenced_by_0_90054","Includes imports of types referenced by '{0}'"),Remove_type_from_import_declaration_from_0:ca(90055,3,"Remove_type_from_import_declaration_from_0_90055","Remove 'type' from import declaration from \"{0}\""),Remove_type_from_import_of_0_from_1:ca(90056,3,"Remove_type_from_import_of_0_from_1_90056","Remove 'type' from import of '{0}' from \"{1}\""),Add_import_from_0:ca(90057,3,"Add_import_from_0_90057",'Add import from "{0}"'),Update_import_from_0:ca(90058,3,"Update_import_from_0_90058",'Update import from "{0}"'),Export_0_from_module_1:ca(90059,3,"Export_0_from_module_1_90059","Export '{0}' from module '{1}'"),Export_all_referenced_locals:ca(90060,3,"Export_all_referenced_locals_90060","Export all referenced locals"),Update_modifiers_of_0:ca(90061,3,"Update_modifiers_of_0_90061","Update modifiers of '{0}'"),Add_annotation_of_type_0:ca(90062,3,"Add_annotation_of_type_0_90062","Add annotation of type '{0}'"),Add_return_type_0:ca(90063,3,"Add_return_type_0_90063","Add return type '{0}'"),Extract_base_class_to_variable:ca(90064,3,"Extract_base_class_to_variable_90064","Extract base class to variable"),Extract_default_export_to_variable:ca(90065,3,"Extract_default_export_to_variable_90065","Extract default export to variable"),Extract_binding_expressions_to_variable:ca(90066,3,"Extract_binding_expressions_to_variable_90066","Extract binding expressions to variable"),Add_all_missing_type_annotations:ca(90067,3,"Add_all_missing_type_annotations_90067","Add all missing type annotations"),Add_satisfies_and_an_inline_type_assertion_with_0:ca(90068,3,"Add_satisfies_and_an_inline_type_assertion_with_0_90068","Add satisfies and an inline type assertion with '{0}'"),Extract_to_variable_and_replace_with_0_as_typeof_0:ca(90069,3,"Extract_to_variable_and_replace_with_0_as_typeof_0_90069","Extract to variable and replace with '{0} as typeof {0}'"),Mark_array_literal_as_const:ca(90070,3,"Mark_array_literal_as_const_90070","Mark array literal as const"),Annotate_types_of_properties_expando_function_in_a_namespace:ca(90071,3,"Annotate_types_of_properties_expando_function_in_a_namespace_90071","Annotate types of properties expando function in a namespace"),Convert_function_to_an_ES2015_class:ca(95001,3,"Convert_function_to_an_ES2015_class_95001","Convert function to an ES2015 class"),Convert_0_to_1_in_0:ca(95003,3,"Convert_0_to_1_in_0_95003","Convert '{0}' to '{1} in {0}'"),Extract_to_0_in_1:ca(95004,3,"Extract_to_0_in_1_95004","Extract to {0} in {1}"),Extract_function:ca(95005,3,"Extract_function_95005","Extract function"),Extract_constant:ca(95006,3,"Extract_constant_95006","Extract constant"),Extract_to_0_in_enclosing_scope:ca(95007,3,"Extract_to_0_in_enclosing_scope_95007","Extract to {0} in enclosing scope"),Extract_to_0_in_1_scope:ca(95008,3,"Extract_to_0_in_1_scope_95008","Extract to {0} in {1} scope"),Annotate_with_type_from_JSDoc:ca(95009,3,"Annotate_with_type_from_JSDoc_95009","Annotate with type from JSDoc"),Infer_type_of_0_from_usage:ca(95011,3,"Infer_type_of_0_from_usage_95011","Infer type of '{0}' from usage"),Infer_parameter_types_from_usage:ca(95012,3,"Infer_parameter_types_from_usage_95012","Infer parameter types from usage"),Convert_to_default_import:ca(95013,3,"Convert_to_default_import_95013","Convert to default import"),Install_0:ca(95014,3,"Install_0_95014","Install '{0}'"),Replace_import_with_0:ca(95015,3,"Replace_import_with_0_95015","Replace import with '{0}'."),Use_synthetic_default_member:ca(95016,3,"Use_synthetic_default_member_95016","Use synthetic 'default' member."),Convert_to_ES_module:ca(95017,3,"Convert_to_ES_module_95017","Convert to ES module"),Add_undefined_type_to_property_0:ca(95018,3,"Add_undefined_type_to_property_0_95018","Add 'undefined' type to property '{0}'"),Add_initializer_to_property_0:ca(95019,3,"Add_initializer_to_property_0_95019","Add initializer to property '{0}'"),Add_definite_assignment_assertion_to_property_0:ca(95020,3,"Add_definite_assignment_assertion_to_property_0_95020","Add definite assignment assertion to property '{0}'"),Convert_all_type_literals_to_mapped_type:ca(95021,3,"Convert_all_type_literals_to_mapped_type_95021","Convert all type literals to mapped type"),Add_all_missing_members:ca(95022,3,"Add_all_missing_members_95022","Add all missing members"),Infer_all_types_from_usage:ca(95023,3,"Infer_all_types_from_usage_95023","Infer all types from usage"),Delete_all_unused_declarations:ca(95024,3,"Delete_all_unused_declarations_95024","Delete all unused declarations"),Prefix_all_unused_declarations_with_where_possible:ca(95025,3,"Prefix_all_unused_declarations_with_where_possible_95025","Prefix all unused declarations with '_' where possible"),Fix_all_detected_spelling_errors:ca(95026,3,"Fix_all_detected_spelling_errors_95026","Fix all detected spelling errors"),Add_initializers_to_all_uninitialized_properties:ca(95027,3,"Add_initializers_to_all_uninitialized_properties_95027","Add initializers to all uninitialized properties"),Add_definite_assignment_assertions_to_all_uninitialized_properties:ca(95028,3,"Add_definite_assignment_assertions_to_all_uninitialized_properties_95028","Add definite assignment assertions to all uninitialized properties"),Add_undefined_type_to_all_uninitialized_properties:ca(95029,3,"Add_undefined_type_to_all_uninitialized_properties_95029","Add undefined type to all uninitialized properties"),Change_all_jsdoc_style_types_to_TypeScript:ca(95030,3,"Change_all_jsdoc_style_types_to_TypeScript_95030","Change all jsdoc-style types to TypeScript"),Change_all_jsdoc_style_types_to_TypeScript_and_add_undefined_to_nullable_types:ca(95031,3,"Change_all_jsdoc_style_types_to_TypeScript_and_add_undefined_to_nullable_types_95031","Change all jsdoc-style types to TypeScript (and add '| undefined' to nullable types)"),Implement_all_unimplemented_interfaces:ca(95032,3,"Implement_all_unimplemented_interfaces_95032","Implement all unimplemented interfaces"),Install_all_missing_types_packages:ca(95033,3,"Install_all_missing_types_packages_95033","Install all missing types packages"),Rewrite_all_as_indexed_access_types:ca(95034,3,"Rewrite_all_as_indexed_access_types_95034","Rewrite all as indexed access types"),Convert_all_to_default_imports:ca(95035,3,"Convert_all_to_default_imports_95035","Convert all to default imports"),Make_all_super_calls_the_first_statement_in_their_constructor:ca(95036,3,"Make_all_super_calls_the_first_statement_in_their_constructor_95036","Make all 'super()' calls the first statement in their constructor"),Add_qualifier_to_all_unresolved_variables_matching_a_member_name:ca(95037,3,"Add_qualifier_to_all_unresolved_variables_matching_a_member_name_95037","Add qualifier to all unresolved variables matching a member name"),Change_all_extended_interfaces_to_implements:ca(95038,3,"Change_all_extended_interfaces_to_implements_95038","Change all extended interfaces to 'implements'"),Add_all_missing_super_calls:ca(95039,3,"Add_all_missing_super_calls_95039","Add all missing super calls"),Implement_all_inherited_abstract_classes:ca(95040,3,"Implement_all_inherited_abstract_classes_95040","Implement all inherited abstract classes"),Add_all_missing_async_modifiers:ca(95041,3,"Add_all_missing_async_modifiers_95041","Add all missing 'async' modifiers"),Add_ts_ignore_to_all_error_messages:ca(95042,3,"Add_ts_ignore_to_all_error_messages_95042","Add '@ts-ignore' to all error messages"),Annotate_everything_with_types_from_JSDoc:ca(95043,3,"Annotate_everything_with_types_from_JSDoc_95043","Annotate everything with types from JSDoc"),Add_to_all_uncalled_decorators:ca(95044,3,"Add_to_all_uncalled_decorators_95044","Add '()' to all uncalled decorators"),Convert_all_constructor_functions_to_classes:ca(95045,3,"Convert_all_constructor_functions_to_classes_95045","Convert all constructor functions to classes"),Generate_get_and_set_accessors:ca(95046,3,"Generate_get_and_set_accessors_95046","Generate 'get' and 'set' accessors"),Convert_require_to_import:ca(95047,3,"Convert_require_to_import_95047","Convert 'require' to 'import'"),Convert_all_require_to_import:ca(95048,3,"Convert_all_require_to_import_95048","Convert all 'require' to 'import'"),Move_to_a_new_file:ca(95049,3,"Move_to_a_new_file_95049","Move to a new file"),Remove_unreachable_code:ca(95050,3,"Remove_unreachable_code_95050","Remove unreachable code"),Remove_all_unreachable_code:ca(95051,3,"Remove_all_unreachable_code_95051","Remove all unreachable code"),Add_missing_typeof:ca(95052,3,"Add_missing_typeof_95052","Add missing 'typeof'"),Remove_unused_label:ca(95053,3,"Remove_unused_label_95053","Remove unused label"),Remove_all_unused_labels:ca(95054,3,"Remove_all_unused_labels_95054","Remove all unused labels"),Convert_0_to_mapped_object_type:ca(95055,3,"Convert_0_to_mapped_object_type_95055","Convert '{0}' to mapped object type"),Convert_namespace_import_to_named_imports:ca(95056,3,"Convert_namespace_import_to_named_imports_95056","Convert namespace import to named imports"),Convert_named_imports_to_namespace_import:ca(95057,3,"Convert_named_imports_to_namespace_import_95057","Convert named imports to namespace import"),Add_or_remove_braces_in_an_arrow_function:ca(95058,3,"Add_or_remove_braces_in_an_arrow_function_95058","Add or remove braces in an arrow function"),Add_braces_to_arrow_function:ca(95059,3,"Add_braces_to_arrow_function_95059","Add braces to arrow function"),Remove_braces_from_arrow_function:ca(95060,3,"Remove_braces_from_arrow_function_95060","Remove braces from arrow function"),Convert_default_export_to_named_export:ca(95061,3,"Convert_default_export_to_named_export_95061","Convert default export to named export"),Convert_named_export_to_default_export:ca(95062,3,"Convert_named_export_to_default_export_95062","Convert named export to default export"),Add_missing_enum_member_0:ca(95063,3,"Add_missing_enum_member_0_95063","Add missing enum member '{0}'"),Add_all_missing_imports:ca(95064,3,"Add_all_missing_imports_95064","Add all missing imports"),Convert_to_async_function:ca(95065,3,"Convert_to_async_function_95065","Convert to async function"),Convert_all_to_async_functions:ca(95066,3,"Convert_all_to_async_functions_95066","Convert all to async functions"),Add_missing_call_parentheses:ca(95067,3,"Add_missing_call_parentheses_95067","Add missing call parentheses"),Add_all_missing_call_parentheses:ca(95068,3,"Add_all_missing_call_parentheses_95068","Add all missing call parentheses"),Add_unknown_conversion_for_non_overlapping_types:ca(95069,3,"Add_unknown_conversion_for_non_overlapping_types_95069","Add 'unknown' conversion for non-overlapping types"),Add_unknown_to_all_conversions_of_non_overlapping_types:ca(95070,3,"Add_unknown_to_all_conversions_of_non_overlapping_types_95070","Add 'unknown' to all conversions of non-overlapping types"),Add_missing_new_operator_to_call:ca(95071,3,"Add_missing_new_operator_to_call_95071","Add missing 'new' operator to call"),Add_missing_new_operator_to_all_calls:ca(95072,3,"Add_missing_new_operator_to_all_calls_95072","Add missing 'new' operator to all calls"),Add_names_to_all_parameters_without_names:ca(95073,3,"Add_names_to_all_parameters_without_names_95073","Add names to all parameters without names"),Enable_the_experimentalDecorators_option_in_your_configuration_file:ca(95074,3,"Enable_the_experimentalDecorators_option_in_your_configuration_file_95074","Enable the 'experimentalDecorators' option in your configuration file"),Convert_parameters_to_destructured_object:ca(95075,3,"Convert_parameters_to_destructured_object_95075","Convert parameters to destructured object"),Extract_type:ca(95077,3,"Extract_type_95077","Extract type"),Extract_to_type_alias:ca(95078,3,"Extract_to_type_alias_95078","Extract to type alias"),Extract_to_typedef:ca(95079,3,"Extract_to_typedef_95079","Extract to typedef"),Infer_this_type_of_0_from_usage:ca(95080,3,"Infer_this_type_of_0_from_usage_95080","Infer 'this' type of '{0}' from usage"),Add_const_to_unresolved_variable:ca(95081,3,"Add_const_to_unresolved_variable_95081","Add 'const' to unresolved variable"),Add_const_to_all_unresolved_variables:ca(95082,3,"Add_const_to_all_unresolved_variables_95082","Add 'const' to all unresolved variables"),Add_await:ca(95083,3,"Add_await_95083","Add 'await'"),Add_await_to_initializer_for_0:ca(95084,3,"Add_await_to_initializer_for_0_95084","Add 'await' to initializer for '{0}'"),Fix_all_expressions_possibly_missing_await:ca(95085,3,"Fix_all_expressions_possibly_missing_await_95085","Fix all expressions possibly missing 'await'"),Remove_unnecessary_await:ca(95086,3,"Remove_unnecessary_await_95086","Remove unnecessary 'await'"),Remove_all_unnecessary_uses_of_await:ca(95087,3,"Remove_all_unnecessary_uses_of_await_95087","Remove all unnecessary uses of 'await'"),Enable_the_jsx_flag_in_your_configuration_file:ca(95088,3,"Enable_the_jsx_flag_in_your_configuration_file_95088","Enable the '--jsx' flag in your configuration file"),Add_await_to_initializers:ca(95089,3,"Add_await_to_initializers_95089","Add 'await' to initializers"),Extract_to_interface:ca(95090,3,"Extract_to_interface_95090","Extract to interface"),Convert_to_a_bigint_numeric_literal:ca(95091,3,"Convert_to_a_bigint_numeric_literal_95091","Convert to a bigint numeric literal"),Convert_all_to_bigint_numeric_literals:ca(95092,3,"Convert_all_to_bigint_numeric_literals_95092","Convert all to bigint numeric literals"),Convert_const_to_let:ca(95093,3,"Convert_const_to_let_95093","Convert 'const' to 'let'"),Prefix_with_declare:ca(95094,3,"Prefix_with_declare_95094","Prefix with 'declare'"),Prefix_all_incorrect_property_declarations_with_declare:ca(95095,3,"Prefix_all_incorrect_property_declarations_with_declare_95095","Prefix all incorrect property declarations with 'declare'"),Convert_to_template_string:ca(95096,3,"Convert_to_template_string_95096","Convert to template string"),Add_export_to_make_this_file_into_a_module:ca(95097,3,"Add_export_to_make_this_file_into_a_module_95097","Add 'export {}' to make this file into a module"),Set_the_target_option_in_your_configuration_file_to_0:ca(95098,3,"Set_the_target_option_in_your_configuration_file_to_0_95098","Set the 'target' option in your configuration file to '{0}'"),Set_the_module_option_in_your_configuration_file_to_0:ca(95099,3,"Set_the_module_option_in_your_configuration_file_to_0_95099","Set the 'module' option in your configuration file to '{0}'"),Convert_invalid_character_to_its_html_entity_code:ca(95100,3,"Convert_invalid_character_to_its_html_entity_code_95100","Convert invalid character to its html entity code"),Convert_all_invalid_characters_to_HTML_entity_code:ca(95101,3,"Convert_all_invalid_characters_to_HTML_entity_code_95101","Convert all invalid characters to HTML entity code"),Convert_all_const_to_let:ca(95102,3,"Convert_all_const_to_let_95102","Convert all 'const' to 'let'"),Convert_function_expression_0_to_arrow_function:ca(95105,3,"Convert_function_expression_0_to_arrow_function_95105","Convert function expression '{0}' to arrow function"),Convert_function_declaration_0_to_arrow_function:ca(95106,3,"Convert_function_declaration_0_to_arrow_function_95106","Convert function declaration '{0}' to arrow function"),Fix_all_implicit_this_errors:ca(95107,3,"Fix_all_implicit_this_errors_95107","Fix all implicit-'this' errors"),Wrap_invalid_character_in_an_expression_container:ca(95108,3,"Wrap_invalid_character_in_an_expression_container_95108","Wrap invalid character in an expression container"),Wrap_all_invalid_characters_in_an_expression_container:ca(95109,3,"Wrap_all_invalid_characters_in_an_expression_container_95109","Wrap all invalid characters in an expression container"),Visit_https_Colon_Slash_Slashaka_ms_Slashtsconfig_to_read_more_about_this_file:ca(95110,3,"Visit_https_Colon_Slash_Slashaka_ms_Slashtsconfig_to_read_more_about_this_file_95110","Visit https://aka.ms/tsconfig to read more about this file"),Add_a_return_statement:ca(95111,3,"Add_a_return_statement_95111","Add a return statement"),Remove_braces_from_arrow_function_body:ca(95112,3,"Remove_braces_from_arrow_function_body_95112","Remove braces from arrow function body"),Wrap_the_following_body_with_parentheses_which_should_be_an_object_literal:ca(95113,3,"Wrap_the_following_body_with_parentheses_which_should_be_an_object_literal_95113","Wrap the following body with parentheses which should be an object literal"),Add_all_missing_return_statement:ca(95114,3,"Add_all_missing_return_statement_95114","Add all missing return statement"),Remove_braces_from_all_arrow_function_bodies_with_relevant_issues:ca(95115,3,"Remove_braces_from_all_arrow_function_bodies_with_relevant_issues_95115","Remove braces from all arrow function bodies with relevant issues"),Wrap_all_object_literal_with_parentheses:ca(95116,3,"Wrap_all_object_literal_with_parentheses_95116","Wrap all object literal with parentheses"),Move_labeled_tuple_element_modifiers_to_labels:ca(95117,3,"Move_labeled_tuple_element_modifiers_to_labels_95117","Move labeled tuple element modifiers to labels"),Convert_overload_list_to_single_signature:ca(95118,3,"Convert_overload_list_to_single_signature_95118","Convert overload list to single signature"),Generate_get_and_set_accessors_for_all_overriding_properties:ca(95119,3,"Generate_get_and_set_accessors_for_all_overriding_properties_95119","Generate 'get' and 'set' accessors for all overriding properties"),Wrap_in_JSX_fragment:ca(95120,3,"Wrap_in_JSX_fragment_95120","Wrap in JSX fragment"),Wrap_all_unparented_JSX_in_JSX_fragment:ca(95121,3,"Wrap_all_unparented_JSX_in_JSX_fragment_95121","Wrap all unparented JSX in JSX fragment"),Convert_arrow_function_or_function_expression:ca(95122,3,"Convert_arrow_function_or_function_expression_95122","Convert arrow function or function expression"),Convert_to_anonymous_function:ca(95123,3,"Convert_to_anonymous_function_95123","Convert to anonymous function"),Convert_to_named_function:ca(95124,3,"Convert_to_named_function_95124","Convert to named function"),Convert_to_arrow_function:ca(95125,3,"Convert_to_arrow_function_95125","Convert to arrow function"),Remove_parentheses:ca(95126,3,"Remove_parentheses_95126","Remove parentheses"),Could_not_find_a_containing_arrow_function:ca(95127,3,"Could_not_find_a_containing_arrow_function_95127","Could not find a containing arrow function"),Containing_function_is_not_an_arrow_function:ca(95128,3,"Containing_function_is_not_an_arrow_function_95128","Containing function is not an arrow function"),Could_not_find_export_statement:ca(95129,3,"Could_not_find_export_statement_95129","Could not find export statement"),This_file_already_has_a_default_export:ca(95130,3,"This_file_already_has_a_default_export_95130","This file already has a default export"),Could_not_find_import_clause:ca(95131,3,"Could_not_find_import_clause_95131","Could not find import clause"),Could_not_find_namespace_import_or_named_imports:ca(95132,3,"Could_not_find_namespace_import_or_named_imports_95132","Could not find namespace import or named imports"),Selection_is_not_a_valid_type_node:ca(95133,3,"Selection_is_not_a_valid_type_node_95133","Selection is not a valid type node"),No_type_could_be_extracted_from_this_type_node:ca(95134,3,"No_type_could_be_extracted_from_this_type_node_95134","No type could be extracted from this type node"),Could_not_find_property_for_which_to_generate_accessor:ca(95135,3,"Could_not_find_property_for_which_to_generate_accessor_95135","Could not find property for which to generate accessor"),Name_is_not_valid:ca(95136,3,"Name_is_not_valid_95136","Name is not valid"),Can_only_convert_property_with_modifier:ca(95137,3,"Can_only_convert_property_with_modifier_95137","Can only convert property with modifier"),Switch_each_misused_0_to_1:ca(95138,3,"Switch_each_misused_0_to_1_95138","Switch each misused '{0}' to '{1}'"),Convert_to_optional_chain_expression:ca(95139,3,"Convert_to_optional_chain_expression_95139","Convert to optional chain expression"),Could_not_find_convertible_access_expression:ca(95140,3,"Could_not_find_convertible_access_expression_95140","Could not find convertible access expression"),Could_not_find_matching_access_expressions:ca(95141,3,"Could_not_find_matching_access_expressions_95141","Could not find matching access expressions"),Can_only_convert_logical_AND_access_chains:ca(95142,3,"Can_only_convert_logical_AND_access_chains_95142","Can only convert logical AND access chains"),Add_void_to_Promise_resolved_without_a_value:ca(95143,3,"Add_void_to_Promise_resolved_without_a_value_95143","Add 'void' to Promise resolved without a value"),Add_void_to_all_Promises_resolved_without_a_value:ca(95144,3,"Add_void_to_all_Promises_resolved_without_a_value_95144","Add 'void' to all Promises resolved without a value"),Use_element_access_for_0:ca(95145,3,"Use_element_access_for_0_95145","Use element access for '{0}'"),Use_element_access_for_all_undeclared_properties:ca(95146,3,"Use_element_access_for_all_undeclared_properties_95146","Use element access for all undeclared properties."),Delete_all_unused_imports:ca(95147,3,"Delete_all_unused_imports_95147","Delete all unused imports"),Infer_function_return_type:ca(95148,3,"Infer_function_return_type_95148","Infer function return type"),Return_type_must_be_inferred_from_a_function:ca(95149,3,"Return_type_must_be_inferred_from_a_function_95149","Return type must be inferred from a function"),Could_not_determine_function_return_type:ca(95150,3,"Could_not_determine_function_return_type_95150","Could not determine function return type"),Could_not_convert_to_arrow_function:ca(95151,3,"Could_not_convert_to_arrow_function_95151","Could not convert to arrow function"),Could_not_convert_to_named_function:ca(95152,3,"Could_not_convert_to_named_function_95152","Could not convert to named function"),Could_not_convert_to_anonymous_function:ca(95153,3,"Could_not_convert_to_anonymous_function_95153","Could not convert to anonymous function"),Can_only_convert_string_concatenations_and_string_literals:ca(95154,3,"Can_only_convert_string_concatenations_and_string_literals_95154","Can only convert string concatenations and string literals"),Selection_is_not_a_valid_statement_or_statements:ca(95155,3,"Selection_is_not_a_valid_statement_or_statements_95155","Selection is not a valid statement or statements"),Add_missing_function_declaration_0:ca(95156,3,"Add_missing_function_declaration_0_95156","Add missing function declaration '{0}'"),Add_all_missing_function_declarations:ca(95157,3,"Add_all_missing_function_declarations_95157","Add all missing function declarations"),Method_not_implemented:ca(95158,3,"Method_not_implemented_95158","Method not implemented."),Function_not_implemented:ca(95159,3,"Function_not_implemented_95159","Function not implemented."),Add_override_modifier:ca(95160,3,"Add_override_modifier_95160","Add 'override' modifier"),Remove_override_modifier:ca(95161,3,"Remove_override_modifier_95161","Remove 'override' modifier"),Add_all_missing_override_modifiers:ca(95162,3,"Add_all_missing_override_modifiers_95162","Add all missing 'override' modifiers"),Remove_all_unnecessary_override_modifiers:ca(95163,3,"Remove_all_unnecessary_override_modifiers_95163","Remove all unnecessary 'override' modifiers"),Can_only_convert_named_export:ca(95164,3,"Can_only_convert_named_export_95164","Can only convert named export"),Add_missing_properties:ca(95165,3,"Add_missing_properties_95165","Add missing properties"),Add_all_missing_properties:ca(95166,3,"Add_all_missing_properties_95166","Add all missing properties"),Add_missing_attributes:ca(95167,3,"Add_missing_attributes_95167","Add missing attributes"),Add_all_missing_attributes:ca(95168,3,"Add_all_missing_attributes_95168","Add all missing attributes"),Add_undefined_to_optional_property_type:ca(95169,3,"Add_undefined_to_optional_property_type_95169","Add 'undefined' to optional property type"),Convert_named_imports_to_default_import:ca(95170,3,"Convert_named_imports_to_default_import_95170","Convert named imports to default import"),Delete_unused_param_tag_0:ca(95171,3,"Delete_unused_param_tag_0_95171","Delete unused '@param' tag '{0}'"),Delete_all_unused_param_tags:ca(95172,3,"Delete_all_unused_param_tags_95172","Delete all unused '@param' tags"),Rename_param_tag_name_0_to_1:ca(95173,3,"Rename_param_tag_name_0_to_1_95173","Rename '@param' tag name '{0}' to '{1}'"),Use_0:ca(95174,3,"Use_0_95174","Use `{0}`."),Use_Number_isNaN_in_all_conditions:ca(95175,3,"Use_Number_isNaN_in_all_conditions_95175","Use `Number.isNaN` in all conditions."),Convert_typedef_to_TypeScript_type:ca(95176,3,"Convert_typedef_to_TypeScript_type_95176","Convert typedef to TypeScript type."),Convert_all_typedef_to_TypeScript_types:ca(95177,3,"Convert_all_typedef_to_TypeScript_types_95177","Convert all typedef to TypeScript types."),Move_to_file:ca(95178,3,"Move_to_file_95178","Move to file"),Cannot_move_to_file_selected_file_is_invalid:ca(95179,3,"Cannot_move_to_file_selected_file_is_invalid_95179","Cannot move to file, selected file is invalid"),Use_import_type:ca(95180,3,"Use_import_type_95180","Use 'import type'"),Use_type_0:ca(95181,3,"Use_type_0_95181","Use 'type {0}'"),Fix_all_with_type_only_imports:ca(95182,3,"Fix_all_with_type_only_imports_95182","Fix all with type-only imports"),Cannot_move_statements_to_the_selected_file:ca(95183,3,"Cannot_move_statements_to_the_selected_file_95183","Cannot move statements to the selected file"),Inline_variable:ca(95184,3,"Inline_variable_95184","Inline variable"),Could_not_find_variable_to_inline:ca(95185,3,"Could_not_find_variable_to_inline_95185","Could not find variable to inline."),Variables_with_multiple_declarations_cannot_be_inlined:ca(95186,3,"Variables_with_multiple_declarations_cannot_be_inlined_95186","Variables with multiple declarations cannot be inlined."),Add_missing_comma_for_object_member_completion_0:ca(95187,3,"Add_missing_comma_for_object_member_completion_0_95187","Add missing comma for object member completion '{0}'."),Add_missing_parameter_to_0:ca(95188,3,"Add_missing_parameter_to_0_95188","Add missing parameter to '{0}'"),Add_missing_parameters_to_0:ca(95189,3,"Add_missing_parameters_to_0_95189","Add missing parameters to '{0}'"),Add_all_missing_parameters:ca(95190,3,"Add_all_missing_parameters_95190","Add all missing parameters"),Add_optional_parameter_to_0:ca(95191,3,"Add_optional_parameter_to_0_95191","Add optional parameter to '{0}'"),Add_optional_parameters_to_0:ca(95192,3,"Add_optional_parameters_to_0_95192","Add optional parameters to '{0}'"),Add_all_optional_parameters:ca(95193,3,"Add_all_optional_parameters_95193","Add all optional parameters"),Wrap_in_parentheses:ca(95194,3,"Wrap_in_parentheses_95194","Wrap in parentheses"),Wrap_all_invalid_decorator_expressions_in_parentheses:ca(95195,3,"Wrap_all_invalid_decorator_expressions_in_parentheses_95195","Wrap all invalid decorator expressions in parentheses"),Add_resolution_mode_import_attribute:ca(95196,3,"Add_resolution_mode_import_attribute_95196","Add 'resolution-mode' import attribute"),Add_resolution_mode_import_attribute_to_all_type_only_imports_that_need_it:ca(95197,3,"Add_resolution_mode_import_attribute_to_all_type_only_imports_that_need_it_95197","Add 'resolution-mode' import attribute to all type-only imports that need it"),No_value_exists_in_scope_for_the_shorthand_property_0_Either_declare_one_or_provide_an_initializer:ca(18004,1,"No_value_exists_in_scope_for_the_shorthand_property_0_Either_declare_one_or_provide_an_initializer_18004","No value exists in scope for the shorthand property '{0}'. Either declare one or provide an initializer."),Classes_may_not_have_a_field_named_constructor:ca(18006,1,"Classes_may_not_have_a_field_named_constructor_18006","Classes may not have a field named 'constructor'."),JSX_expressions_may_not_use_the_comma_operator_Did_you_mean_to_write_an_array:ca(18007,1,"JSX_expressions_may_not_use_the_comma_operator_Did_you_mean_to_write_an_array_18007","JSX expressions may not use the comma operator. Did you mean to write an array?"),Private_identifiers_cannot_be_used_as_parameters:ca(18009,1,"Private_identifiers_cannot_be_used_as_parameters_18009","Private identifiers cannot be used as parameters."),An_accessibility_modifier_cannot_be_used_with_a_private_identifier:ca(18010,1,"An_accessibility_modifier_cannot_be_used_with_a_private_identifier_18010","An accessibility modifier cannot be used with a private identifier."),The_operand_of_a_delete_operator_cannot_be_a_private_identifier:ca(18011,1,"The_operand_of_a_delete_operator_cannot_be_a_private_identifier_18011","The operand of a 'delete' operator cannot be a private identifier."),constructor_is_a_reserved_word:ca(18012,1,"constructor_is_a_reserved_word_18012","'#constructor' is a reserved word."),Property_0_is_not_accessible_outside_class_1_because_it_has_a_private_identifier:ca(18013,1,"Property_0_is_not_accessible_outside_class_1_because_it_has_a_private_identifier_18013","Property '{0}' is not accessible outside class '{1}' because it has a private identifier."),The_property_0_cannot_be_accessed_on_type_1_within_this_class_because_it_is_shadowed_by_another_private_identifier_with_the_same_spelling:ca(18014,1,"The_property_0_cannot_be_accessed_on_type_1_within_this_class_because_it_is_shadowed_by_another_priv_18014","The property '{0}' cannot be accessed on type '{1}' within this class because it is shadowed by another private identifier with the same spelling."),Property_0_in_type_1_refers_to_a_different_member_that_cannot_be_accessed_from_within_type_2:ca(18015,1,"Property_0_in_type_1_refers_to_a_different_member_that_cannot_be_accessed_from_within_type_2_18015","Property '{0}' in type '{1}' refers to a different member that cannot be accessed from within type '{2}'."),Private_identifiers_are_not_allowed_outside_class_bodies:ca(18016,1,"Private_identifiers_are_not_allowed_outside_class_bodies_18016","Private identifiers are not allowed outside class bodies."),The_shadowing_declaration_of_0_is_defined_here:ca(18017,1,"The_shadowing_declaration_of_0_is_defined_here_18017","The shadowing declaration of '{0}' is defined here"),The_declaration_of_0_that_you_probably_intended_to_use_is_defined_here:ca(18018,1,"The_declaration_of_0_that_you_probably_intended_to_use_is_defined_here_18018","The declaration of '{0}' that you probably intended to use is defined here"),_0_modifier_cannot_be_used_with_a_private_identifier:ca(18019,1,"_0_modifier_cannot_be_used_with_a_private_identifier_18019","'{0}' modifier cannot be used with a private identifier."),An_enum_member_cannot_be_named_with_a_private_identifier:ca(18024,1,"An_enum_member_cannot_be_named_with_a_private_identifier_18024","An enum member cannot be named with a private identifier."),can_only_be_used_at_the_start_of_a_file:ca(18026,1,"can_only_be_used_at_the_start_of_a_file_18026","'#!' can only be used at the start of a file."),Compiler_reserves_name_0_when_emitting_private_identifier_downlevel:ca(18027,1,"Compiler_reserves_name_0_when_emitting_private_identifier_downlevel_18027","Compiler reserves name '{0}' when emitting private identifier downlevel."),Private_identifiers_are_only_available_when_targeting_ECMAScript_2015_and_higher:ca(18028,1,"Private_identifiers_are_only_available_when_targeting_ECMAScript_2015_and_higher_18028","Private identifiers are only available when targeting ECMAScript 2015 and higher."),Private_identifiers_are_not_allowed_in_variable_declarations:ca(18029,1,"Private_identifiers_are_not_allowed_in_variable_declarations_18029","Private identifiers are not allowed in variable declarations."),An_optional_chain_cannot_contain_private_identifiers:ca(18030,1,"An_optional_chain_cannot_contain_private_identifiers_18030","An optional chain cannot contain private identifiers."),The_intersection_0_was_reduced_to_never_because_property_1_has_conflicting_types_in_some_constituents:ca(18031,1,"The_intersection_0_was_reduced_to_never_because_property_1_has_conflicting_types_in_some_constituent_18031","The intersection '{0}' was reduced to 'never' because property '{1}' has conflicting types in some constituents."),The_intersection_0_was_reduced_to_never_because_property_1_exists_in_multiple_constituents_and_is_private_in_some:ca(18032,1,"The_intersection_0_was_reduced_to_never_because_property_1_exists_in_multiple_constituents_and_is_pr_18032","The intersection '{0}' was reduced to 'never' because property '{1}' exists in multiple constituents and is private in some."),Type_0_is_not_assignable_to_type_1_as_required_for_computed_enum_member_values:ca(18033,1,"Type_0_is_not_assignable_to_type_1_as_required_for_computed_enum_member_values_18033","Type '{0}' is not assignable to type '{1}' as required for computed enum member values."),Specify_the_JSX_fragment_factory_function_to_use_when_targeting_react_JSX_emit_with_jsxFactory_compiler_option_is_specified_e_g_Fragment:ca(18034,3,"Specify_the_JSX_fragment_factory_function_to_use_when_targeting_react_JSX_emit_with_jsxFactory_compi_18034","Specify the JSX fragment factory function to use when targeting 'react' JSX emit with 'jsxFactory' compiler option is specified, e.g. 'Fragment'."),Invalid_value_for_jsxFragmentFactory_0_is_not_a_valid_identifier_or_qualified_name:ca(18035,1,"Invalid_value_for_jsxFragmentFactory_0_is_not_a_valid_identifier_or_qualified_name_18035","Invalid value for 'jsxFragmentFactory'. '{0}' is not a valid identifier or qualified-name."),Class_decorators_can_t_be_used_with_static_private_identifier_Consider_removing_the_experimental_decorator:ca(18036,1,"Class_decorators_can_t_be_used_with_static_private_identifier_Consider_removing_the_experimental_dec_18036","Class decorators can't be used with static private identifier. Consider removing the experimental decorator."),await_expression_cannot_be_used_inside_a_class_static_block:ca(18037,1,"await_expression_cannot_be_used_inside_a_class_static_block_18037","'await' expression cannot be used inside a class static block."),for_await_loops_cannot_be_used_inside_a_class_static_block:ca(18038,1,"for_await_loops_cannot_be_used_inside_a_class_static_block_18038","'for await' loops cannot be used inside a class static block."),Invalid_use_of_0_It_cannot_be_used_inside_a_class_static_block:ca(18039,1,"Invalid_use_of_0_It_cannot_be_used_inside_a_class_static_block_18039","Invalid use of '{0}'. It cannot be used inside a class static block."),A_return_statement_cannot_be_used_inside_a_class_static_block:ca(18041,1,"A_return_statement_cannot_be_used_inside_a_class_static_block_18041","A 'return' statement cannot be used inside a class static block."),_0_is_a_type_and_cannot_be_imported_in_JavaScript_files_Use_1_in_a_JSDoc_type_annotation:ca(18042,1,"_0_is_a_type_and_cannot_be_imported_in_JavaScript_files_Use_1_in_a_JSDoc_type_annotation_18042","'{0}' is a type and cannot be imported in JavaScript files. Use '{1}' in a JSDoc type annotation."),Types_cannot_appear_in_export_declarations_in_JavaScript_files:ca(18043,1,"Types_cannot_appear_in_export_declarations_in_JavaScript_files_18043","Types cannot appear in export declarations in JavaScript files."),_0_is_automatically_exported_here:ca(18044,3,"_0_is_automatically_exported_here_18044","'{0}' is automatically exported here."),Properties_with_the_accessor_modifier_are_only_available_when_targeting_ECMAScript_2015_and_higher:ca(18045,1,"Properties_with_the_accessor_modifier_are_only_available_when_targeting_ECMAScript_2015_and_higher_18045","Properties with the 'accessor' modifier are only available when targeting ECMAScript 2015 and higher."),_0_is_of_type_unknown:ca(18046,1,"_0_is_of_type_unknown_18046","'{0}' is of type 'unknown'."),_0_is_possibly_null:ca(18047,1,"_0_is_possibly_null_18047","'{0}' is possibly 'null'."),_0_is_possibly_undefined:ca(18048,1,"_0_is_possibly_undefined_18048","'{0}' is possibly 'undefined'."),_0_is_possibly_null_or_undefined:ca(18049,1,"_0_is_possibly_null_or_undefined_18049","'{0}' is possibly 'null' or 'undefined'."),The_value_0_cannot_be_used_here:ca(18050,1,"The_value_0_cannot_be_used_here_18050","The value '{0}' cannot be used here."),Compiler_option_0_cannot_be_given_an_empty_string:ca(18051,1,"Compiler_option_0_cannot_be_given_an_empty_string_18051","Compiler option '{0}' cannot be given an empty string."),Its_type_0_is_not_a_valid_JSX_element_type:ca(18053,1,"Its_type_0_is_not_a_valid_JSX_element_type_18053","Its type '{0}' is not a valid JSX element type."),await_using_statements_cannot_be_used_inside_a_class_static_block:ca(18054,1,"await_using_statements_cannot_be_used_inside_a_class_static_block_18054","'await using' statements cannot be used inside a class static block."),_0_has_a_string_type_but_must_have_syntactically_recognizable_string_syntax_when_isolatedModules_is_enabled:ca(18055,1,"_0_has_a_string_type_but_must_have_syntactically_recognizable_string_syntax_when_isolatedModules_is__18055","'{0}' has a string type, but must have syntactically recognizable string syntax when 'isolatedModules' is enabled."),Enum_member_following_a_non_literal_numeric_member_must_have_an_initializer_when_isolatedModules_is_enabled:ca(18056,1,"Enum_member_following_a_non_literal_numeric_member_must_have_an_initializer_when_isolatedModules_is__18056","Enum member following a non-literal numeric member must have an initializer when 'isolatedModules' is enabled."),String_literal_import_and_export_names_are_not_supported_when_the_module_flag_is_set_to_es2015_or_es2020:ca(18057,1,"String_literal_import_and_export_names_are_not_supported_when_the_module_flag_is_set_to_es2015_or_es_18057","String literal import and export names are not supported when the '--module' flag is set to 'es2015' or 'es2020'.")};function _a(e){return e>=80}function ua(e){return 32===e||_a(e)}var da={abstract:128,accessor:129,any:133,as:130,asserts:131,assert:132,bigint:163,boolean:136,break:83,case:84,catch:85,class:86,continue:88,const:87,constructor:137,debugger:89,declare:138,default:90,delete:91,do:92,else:93,enum:94,export:95,extends:96,false:97,finally:98,for:99,from:161,function:100,get:139,if:101,implements:119,import:102,in:103,infer:140,instanceof:104,interface:120,intrinsic:141,is:142,keyof:143,let:121,module:144,namespace:145,never:146,new:105,null:106,number:150,object:151,package:122,private:123,protected:124,public:125,override:164,out:147,readonly:148,require:149,global:162,return:107,satisfies:152,set:153,static:126,string:154,super:108,switch:109,symbol:155,this:110,throw:111,true:112,try:113,type:156,typeof:114,undefined:157,unique:158,unknown:159,using:160,var:115,void:116,while:117,with:118,yield:127,async:134,await:135,of:165},pa=new Map(Object.entries(da)),fa=new Map(Object.entries({...da,"{":19,"}":20,"(":21,")":22,"[":23,"]":24,".":25,"...":26,";":27,",":28,"<":30,">":32,"<=":33,">=":34,"==":35,"!=":36,"===":37,"!==":38,"=>":39,"+":40,"-":41,"**":43,"*":42,"/":44,"%":45,"++":46,"--":47,"<<":48,">":49,">>>":50,"&":51,"|":52,"^":53,"!":54,"~":55,"&&":56,"||":57,"?":58,"??":61,"?.":29,":":59,"=":64,"+=":65,"-=":66,"*=":67,"**=":68,"/=":69,"%=":70,"<<=":71,">>=":72,">>>=":73,"&=":74,"|=":75,"^=":79,"||=":76,"&&=":77,"??=":78,"@":60,"#":63,"`":62})),ma=new Map([[100,1],[103,2],[105,4],[109,8],[115,16],[117,32],[118,64],[121,128]]),ga=new Map([[1,Di.RegularExpressionFlagsHasIndices],[16,Di.RegularExpressionFlagsDotAll],[32,Di.RegularExpressionFlagsUnicode],[64,Di.RegularExpressionFlagsUnicodeSets],[128,Di.RegularExpressionFlagsSticky]]),ha=[170,170,181,181,186,186,192,214,216,246,248,705,710,721,736,740,748,748,750,750,880,884,886,887,890,893,902,902,904,906,908,908,910,929,931,1013,1015,1153,1162,1319,1329,1366,1369,1369,1377,1415,1488,1514,1520,1522,1568,1610,1646,1647,1649,1747,1749,1749,1765,1766,1774,1775,1786,1788,1791,1791,1808,1808,1810,1839,1869,1957,1969,1969,1994,2026,2036,2037,2042,2042,2048,2069,2074,2074,2084,2084,2088,2088,2112,2136,2208,2208,2210,2220,2308,2361,2365,2365,2384,2384,2392,2401,2417,2423,2425,2431,2437,2444,2447,2448,2451,2472,2474,2480,2482,2482,2486,2489,2493,2493,2510,2510,2524,2525,2527,2529,2544,2545,2565,2570,2575,2576,2579,2600,2602,2608,2610,2611,2613,2614,2616,2617,2649,2652,2654,2654,2674,2676,2693,2701,2703,2705,2707,2728,2730,2736,2738,2739,2741,2745,2749,2749,2768,2768,2784,2785,2821,2828,2831,2832,2835,2856,2858,2864,2866,2867,2869,2873,2877,2877,2908,2909,2911,2913,2929,2929,2947,2947,2949,2954,2958,2960,2962,2965,2969,2970,2972,2972,2974,2975,2979,2980,2984,2986,2990,3001,3024,3024,3077,3084,3086,3088,3090,3112,3114,3123,3125,3129,3133,3133,3160,3161,3168,3169,3205,3212,3214,3216,3218,3240,3242,3251,3253,3257,3261,3261,3294,3294,3296,3297,3313,3314,3333,3340,3342,3344,3346,3386,3389,3389,3406,3406,3424,3425,3450,3455,3461,3478,3482,3505,3507,3515,3517,3517,3520,3526,3585,3632,3634,3635,3648,3654,3713,3714,3716,3716,3719,3720,3722,3722,3725,3725,3732,3735,3737,3743,3745,3747,3749,3749,3751,3751,3754,3755,3757,3760,3762,3763,3773,3773,3776,3780,3782,3782,3804,3807,3840,3840,3904,3911,3913,3948,3976,3980,4096,4138,4159,4159,4176,4181,4186,4189,4193,4193,4197,4198,4206,4208,4213,4225,4238,4238,4256,4293,4295,4295,4301,4301,4304,4346,4348,4680,4682,4685,4688,4694,4696,4696,4698,4701,4704,4744,4746,4749,4752,4784,4786,4789,4792,4798,4800,4800,4802,4805,4808,4822,4824,4880,4882,4885,4888,4954,4992,5007,5024,5108,5121,5740,5743,5759,5761,5786,5792,5866,5870,5872,5888,5900,5902,5905,5920,5937,5952,5969,5984,5996,5998,6e3,6016,6067,6103,6103,6108,6108,6176,6263,6272,6312,6314,6314,6320,6389,6400,6428,6480,6509,6512,6516,6528,6571,6593,6599,6656,6678,6688,6740,6823,6823,6917,6963,6981,6987,7043,7072,7086,7087,7098,7141,7168,7203,7245,7247,7258,7293,7401,7404,7406,7409,7413,7414,7424,7615,7680,7957,7960,7965,7968,8005,8008,8013,8016,8023,8025,8025,8027,8027,8029,8029,8031,8061,8064,8116,8118,8124,8126,8126,8130,8132,8134,8140,8144,8147,8150,8155,8160,8172,8178,8180,8182,8188,8305,8305,8319,8319,8336,8348,8450,8450,8455,8455,8458,8467,8469,8469,8473,8477,8484,8484,8486,8486,8488,8488,8490,8493,8495,8505,8508,8511,8517,8521,8526,8526,8544,8584,11264,11310,11312,11358,11360,11492,11499,11502,11506,11507,11520,11557,11559,11559,11565,11565,11568,11623,11631,11631,11648,11670,11680,11686,11688,11694,11696,11702,11704,11710,11712,11718,11720,11726,11728,11734,11736,11742,11823,11823,12293,12295,12321,12329,12337,12341,12344,12348,12353,12438,12445,12447,12449,12538,12540,12543,12549,12589,12593,12686,12704,12730,12784,12799,13312,19893,19968,40908,40960,42124,42192,42237,42240,42508,42512,42527,42538,42539,42560,42606,42623,42647,42656,42735,42775,42783,42786,42888,42891,42894,42896,42899,42912,42922,43e3,43009,43011,43013,43015,43018,43020,43042,43072,43123,43138,43187,43250,43255,43259,43259,43274,43301,43312,43334,43360,43388,43396,43442,43471,43471,43520,43560,43584,43586,43588,43595,43616,43638,43642,43642,43648,43695,43697,43697,43701,43702,43705,43709,43712,43712,43714,43714,43739,43741,43744,43754,43762,43764,43777,43782,43785,43790,43793,43798,43808,43814,43816,43822,43968,44002,44032,55203,55216,55238,55243,55291,63744,64109,64112,64217,64256,64262,64275,64279,64285,64285,64287,64296,64298,64310,64312,64316,64318,64318,64320,64321,64323,64324,64326,64433,64467,64829,64848,64911,64914,64967,65008,65019,65136,65140,65142,65276,65313,65338,65345,65370,65382,65470,65474,65479,65482,65487,65490,65495,65498,65500],ya=[170,170,181,181,186,186,192,214,216,246,248,705,710,721,736,740,748,748,750,750,768,884,886,887,890,893,902,902,904,906,908,908,910,929,931,1013,1015,1153,1155,1159,1162,1319,1329,1366,1369,1369,1377,1415,1425,1469,1471,1471,1473,1474,1476,1477,1479,1479,1488,1514,1520,1522,1552,1562,1568,1641,1646,1747,1749,1756,1759,1768,1770,1788,1791,1791,1808,1866,1869,1969,1984,2037,2042,2042,2048,2093,2112,2139,2208,2208,2210,2220,2276,2302,2304,2403,2406,2415,2417,2423,2425,2431,2433,2435,2437,2444,2447,2448,2451,2472,2474,2480,2482,2482,2486,2489,2492,2500,2503,2504,2507,2510,2519,2519,2524,2525,2527,2531,2534,2545,2561,2563,2565,2570,2575,2576,2579,2600,2602,2608,2610,2611,2613,2614,2616,2617,2620,2620,2622,2626,2631,2632,2635,2637,2641,2641,2649,2652,2654,2654,2662,2677,2689,2691,2693,2701,2703,2705,2707,2728,2730,2736,2738,2739,2741,2745,2748,2757,2759,2761,2763,2765,2768,2768,2784,2787,2790,2799,2817,2819,2821,2828,2831,2832,2835,2856,2858,2864,2866,2867,2869,2873,2876,2884,2887,2888,2891,2893,2902,2903,2908,2909,2911,2915,2918,2927,2929,2929,2946,2947,2949,2954,2958,2960,2962,2965,2969,2970,2972,2972,2974,2975,2979,2980,2984,2986,2990,3001,3006,3010,3014,3016,3018,3021,3024,3024,3031,3031,3046,3055,3073,3075,3077,3084,3086,3088,3090,3112,3114,3123,3125,3129,3133,3140,3142,3144,3146,3149,3157,3158,3160,3161,3168,3171,3174,3183,3202,3203,3205,3212,3214,3216,3218,3240,3242,3251,3253,3257,3260,3268,3270,3272,3274,3277,3285,3286,3294,3294,3296,3299,3302,3311,3313,3314,3330,3331,3333,3340,3342,3344,3346,3386,3389,3396,3398,3400,3402,3406,3415,3415,3424,3427,3430,3439,3450,3455,3458,3459,3461,3478,3482,3505,3507,3515,3517,3517,3520,3526,3530,3530,3535,3540,3542,3542,3544,3551,3570,3571,3585,3642,3648,3662,3664,3673,3713,3714,3716,3716,3719,3720,3722,3722,3725,3725,3732,3735,3737,3743,3745,3747,3749,3749,3751,3751,3754,3755,3757,3769,3771,3773,3776,3780,3782,3782,3784,3789,3792,3801,3804,3807,3840,3840,3864,3865,3872,3881,3893,3893,3895,3895,3897,3897,3902,3911,3913,3948,3953,3972,3974,3991,3993,4028,4038,4038,4096,4169,4176,4253,4256,4293,4295,4295,4301,4301,4304,4346,4348,4680,4682,4685,4688,4694,4696,4696,4698,4701,4704,4744,4746,4749,4752,4784,4786,4789,4792,4798,4800,4800,4802,4805,4808,4822,4824,4880,4882,4885,4888,4954,4957,4959,4992,5007,5024,5108,5121,5740,5743,5759,5761,5786,5792,5866,5870,5872,5888,5900,5902,5908,5920,5940,5952,5971,5984,5996,5998,6e3,6002,6003,6016,6099,6103,6103,6108,6109,6112,6121,6155,6157,6160,6169,6176,6263,6272,6314,6320,6389,6400,6428,6432,6443,6448,6459,6470,6509,6512,6516,6528,6571,6576,6601,6608,6617,6656,6683,6688,6750,6752,6780,6783,6793,6800,6809,6823,6823,6912,6987,6992,7001,7019,7027,7040,7155,7168,7223,7232,7241,7245,7293,7376,7378,7380,7414,7424,7654,7676,7957,7960,7965,7968,8005,8008,8013,8016,8023,8025,8025,8027,8027,8029,8029,8031,8061,8064,8116,8118,8124,8126,8126,8130,8132,8134,8140,8144,8147,8150,8155,8160,8172,8178,8180,8182,8188,8204,8205,8255,8256,8276,8276,8305,8305,8319,8319,8336,8348,8400,8412,8417,8417,8421,8432,8450,8450,8455,8455,8458,8467,8469,8469,8473,8477,8484,8484,8486,8486,8488,8488,8490,8493,8495,8505,8508,8511,8517,8521,8526,8526,8544,8584,11264,11310,11312,11358,11360,11492,11499,11507,11520,11557,11559,11559,11565,11565,11568,11623,11631,11631,11647,11670,11680,11686,11688,11694,11696,11702,11704,11710,11712,11718,11720,11726,11728,11734,11736,11742,11744,11775,11823,11823,12293,12295,12321,12335,12337,12341,12344,12348,12353,12438,12441,12442,12445,12447,12449,12538,12540,12543,12549,12589,12593,12686,12704,12730,12784,12799,13312,19893,19968,40908,40960,42124,42192,42237,42240,42508,42512,42539,42560,42607,42612,42621,42623,42647,42655,42737,42775,42783,42786,42888,42891,42894,42896,42899,42912,42922,43e3,43047,43072,43123,43136,43204,43216,43225,43232,43255,43259,43259,43264,43309,43312,43347,43360,43388,43392,43456,43471,43481,43520,43574,43584,43597,43600,43609,43616,43638,43642,43643,43648,43714,43739,43741,43744,43759,43762,43766,43777,43782,43785,43790,43793,43798,43808,43814,43816,43822,43968,44010,44012,44013,44016,44025,44032,55203,55216,55238,55243,55291,63744,64109,64112,64217,64256,64262,64275,64279,64285,64296,64298,64310,64312,64316,64318,64318,64320,64321,64323,64324,64326,64433,64467,64829,64848,64911,64914,64967,65008,65019,65024,65039,65056,65062,65075,65076,65101,65103,65136,65140,65142,65276,65296,65305,65313,65338,65343,65343,65345,65370,65382,65470,65474,65479,65482,65487,65490,65495,65498,65500],va=[65,90,97,122,170,170,181,181,186,186,192,214,216,246,248,705,710,721,736,740,748,748,750,750,880,884,886,887,890,893,895,895,902,902,904,906,908,908,910,929,931,1013,1015,1153,1162,1327,1329,1366,1369,1369,1376,1416,1488,1514,1519,1522,1568,1610,1646,1647,1649,1747,1749,1749,1765,1766,1774,1775,1786,1788,1791,1791,1808,1808,1810,1839,1869,1957,1969,1969,1994,2026,2036,2037,2042,2042,2048,2069,2074,2074,2084,2084,2088,2088,2112,2136,2144,2154,2160,2183,2185,2190,2208,2249,2308,2361,2365,2365,2384,2384,2392,2401,2417,2432,2437,2444,2447,2448,2451,2472,2474,2480,2482,2482,2486,2489,2493,2493,2510,2510,2524,2525,2527,2529,2544,2545,2556,2556,2565,2570,2575,2576,2579,2600,2602,2608,2610,2611,2613,2614,2616,2617,2649,2652,2654,2654,2674,2676,2693,2701,2703,2705,2707,2728,2730,2736,2738,2739,2741,2745,2749,2749,2768,2768,2784,2785,2809,2809,2821,2828,2831,2832,2835,2856,2858,2864,2866,2867,2869,2873,2877,2877,2908,2909,2911,2913,2929,2929,2947,2947,2949,2954,2958,2960,2962,2965,2969,2970,2972,2972,2974,2975,2979,2980,2984,2986,2990,3001,3024,3024,3077,3084,3086,3088,3090,3112,3114,3129,3133,3133,3160,3162,3165,3165,3168,3169,3200,3200,3205,3212,3214,3216,3218,3240,3242,3251,3253,3257,3261,3261,3293,3294,3296,3297,3313,3314,3332,3340,3342,3344,3346,3386,3389,3389,3406,3406,3412,3414,3423,3425,3450,3455,3461,3478,3482,3505,3507,3515,3517,3517,3520,3526,3585,3632,3634,3635,3648,3654,3713,3714,3716,3716,3718,3722,3724,3747,3749,3749,3751,3760,3762,3763,3773,3773,3776,3780,3782,3782,3804,3807,3840,3840,3904,3911,3913,3948,3976,3980,4096,4138,4159,4159,4176,4181,4186,4189,4193,4193,4197,4198,4206,4208,4213,4225,4238,4238,4256,4293,4295,4295,4301,4301,4304,4346,4348,4680,4682,4685,4688,4694,4696,4696,4698,4701,4704,4744,4746,4749,4752,4784,4786,4789,4792,4798,4800,4800,4802,4805,4808,4822,4824,4880,4882,4885,4888,4954,4992,5007,5024,5109,5112,5117,5121,5740,5743,5759,5761,5786,5792,5866,5870,5880,5888,5905,5919,5937,5952,5969,5984,5996,5998,6e3,6016,6067,6103,6103,6108,6108,6176,6264,6272,6312,6314,6314,6320,6389,6400,6430,6480,6509,6512,6516,6528,6571,6576,6601,6656,6678,6688,6740,6823,6823,6917,6963,6981,6988,7043,7072,7086,7087,7098,7141,7168,7203,7245,7247,7258,7293,7296,7304,7312,7354,7357,7359,7401,7404,7406,7411,7413,7414,7418,7418,7424,7615,7680,7957,7960,7965,7968,8005,8008,8013,8016,8023,8025,8025,8027,8027,8029,8029,8031,8061,8064,8116,8118,8124,8126,8126,8130,8132,8134,8140,8144,8147,8150,8155,8160,8172,8178,8180,8182,8188,8305,8305,8319,8319,8336,8348,8450,8450,8455,8455,8458,8467,8469,8469,8472,8477,8484,8484,8486,8486,8488,8488,8490,8505,8508,8511,8517,8521,8526,8526,8544,8584,11264,11492,11499,11502,11506,11507,11520,11557,11559,11559,11565,11565,11568,11623,11631,11631,11648,11670,11680,11686,11688,11694,11696,11702,11704,11710,11712,11718,11720,11726,11728,11734,11736,11742,12293,12295,12321,12329,12337,12341,12344,12348,12353,12438,12443,12447,12449,12538,12540,12543,12549,12591,12593,12686,12704,12735,12784,12799,13312,19903,19968,42124,42192,42237,42240,42508,42512,42527,42538,42539,42560,42606,42623,42653,42656,42735,42775,42783,42786,42888,42891,42954,42960,42961,42963,42963,42965,42969,42994,43009,43011,43013,43015,43018,43020,43042,43072,43123,43138,43187,43250,43255,43259,43259,43261,43262,43274,43301,43312,43334,43360,43388,43396,43442,43471,43471,43488,43492,43494,43503,43514,43518,43520,43560,43584,43586,43588,43595,43616,43638,43642,43642,43646,43695,43697,43697,43701,43702,43705,43709,43712,43712,43714,43714,43739,43741,43744,43754,43762,43764,43777,43782,43785,43790,43793,43798,43808,43814,43816,43822,43824,43866,43868,43881,43888,44002,44032,55203,55216,55238,55243,55291,63744,64109,64112,64217,64256,64262,64275,64279,64285,64285,64287,64296,64298,64310,64312,64316,64318,64318,64320,64321,64323,64324,64326,64433,64467,64829,64848,64911,64914,64967,65008,65019,65136,65140,65142,65276,65313,65338,65345,65370,65382,65470,65474,65479,65482,65487,65490,65495,65498,65500,65536,65547,65549,65574,65576,65594,65596,65597,65599,65613,65616,65629,65664,65786,65856,65908,66176,66204,66208,66256,66304,66335,66349,66378,66384,66421,66432,66461,66464,66499,66504,66511,66513,66517,66560,66717,66736,66771,66776,66811,66816,66855,66864,66915,66928,66938,66940,66954,66956,66962,66964,66965,66967,66977,66979,66993,66995,67001,67003,67004,67072,67382,67392,67413,67424,67431,67456,67461,67463,67504,67506,67514,67584,67589,67592,67592,67594,67637,67639,67640,67644,67644,67647,67669,67680,67702,67712,67742,67808,67826,67828,67829,67840,67861,67872,67897,67968,68023,68030,68031,68096,68096,68112,68115,68117,68119,68121,68149,68192,68220,68224,68252,68288,68295,68297,68324,68352,68405,68416,68437,68448,68466,68480,68497,68608,68680,68736,68786,68800,68850,68864,68899,69248,69289,69296,69297,69376,69404,69415,69415,69424,69445,69488,69505,69552,69572,69600,69622,69635,69687,69745,69746,69749,69749,69763,69807,69840,69864,69891,69926,69956,69956,69959,69959,69968,70002,70006,70006,70019,70066,70081,70084,70106,70106,70108,70108,70144,70161,70163,70187,70207,70208,70272,70278,70280,70280,70282,70285,70287,70301,70303,70312,70320,70366,70405,70412,70415,70416,70419,70440,70442,70448,70450,70451,70453,70457,70461,70461,70480,70480,70493,70497,70656,70708,70727,70730,70751,70753,70784,70831,70852,70853,70855,70855,71040,71086,71128,71131,71168,71215,71236,71236,71296,71338,71352,71352,71424,71450,71488,71494,71680,71723,71840,71903,71935,71942,71945,71945,71948,71955,71957,71958,71960,71983,71999,71999,72001,72001,72096,72103,72106,72144,72161,72161,72163,72163,72192,72192,72203,72242,72250,72250,72272,72272,72284,72329,72349,72349,72368,72440,72704,72712,72714,72750,72768,72768,72818,72847,72960,72966,72968,72969,72971,73008,73030,73030,73056,73061,73063,73064,73066,73097,73112,73112,73440,73458,73474,73474,73476,73488,73490,73523,73648,73648,73728,74649,74752,74862,74880,75075,77712,77808,77824,78895,78913,78918,82944,83526,92160,92728,92736,92766,92784,92862,92880,92909,92928,92975,92992,92995,93027,93047,93053,93071,93760,93823,93952,94026,94032,94032,94099,94111,94176,94177,94179,94179,94208,100343,100352,101589,101632,101640,110576,110579,110581,110587,110589,110590,110592,110882,110898,110898,110928,110930,110933,110933,110948,110951,110960,111355,113664,113770,113776,113788,113792,113800,113808,113817,119808,119892,119894,119964,119966,119967,119970,119970,119973,119974,119977,119980,119982,119993,119995,119995,119997,120003,120005,120069,120071,120074,120077,120084,120086,120092,120094,120121,120123,120126,120128,120132,120134,120134,120138,120144,120146,120485,120488,120512,120514,120538,120540,120570,120572,120596,120598,120628,120630,120654,120656,120686,120688,120712,120714,120744,120746,120770,120772,120779,122624,122654,122661,122666,122928,122989,123136,123180,123191,123197,123214,123214,123536,123565,123584,123627,124112,124139,124896,124902,124904,124907,124909,124910,124912,124926,124928,125124,125184,125251,125259,125259,126464,126467,126469,126495,126497,126498,126500,126500,126503,126503,126505,126514,126516,126519,126521,126521,126523,126523,126530,126530,126535,126535,126537,126537,126539,126539,126541,126543,126545,126546,126548,126548,126551,126551,126553,126553,126555,126555,126557,126557,126559,126559,126561,126562,126564,126564,126567,126570,126572,126578,126580,126583,126585,126588,126590,126590,126592,126601,126603,126619,126625,126627,126629,126633,126635,126651,131072,173791,173824,177977,177984,178205,178208,183969,183984,191456,191472,192093,194560,195101,196608,201546,201552,205743],ba=[48,57,65,90,95,95,97,122,170,170,181,181,183,183,186,186,192,214,216,246,248,705,710,721,736,740,748,748,750,750,768,884,886,887,890,893,895,895,902,906,908,908,910,929,931,1013,1015,1153,1155,1159,1162,1327,1329,1366,1369,1369,1376,1416,1425,1469,1471,1471,1473,1474,1476,1477,1479,1479,1488,1514,1519,1522,1552,1562,1568,1641,1646,1747,1749,1756,1759,1768,1770,1788,1791,1791,1808,1866,1869,1969,1984,2037,2042,2042,2045,2045,2048,2093,2112,2139,2144,2154,2160,2183,2185,2190,2200,2273,2275,2403,2406,2415,2417,2435,2437,2444,2447,2448,2451,2472,2474,2480,2482,2482,2486,2489,2492,2500,2503,2504,2507,2510,2519,2519,2524,2525,2527,2531,2534,2545,2556,2556,2558,2558,2561,2563,2565,2570,2575,2576,2579,2600,2602,2608,2610,2611,2613,2614,2616,2617,2620,2620,2622,2626,2631,2632,2635,2637,2641,2641,2649,2652,2654,2654,2662,2677,2689,2691,2693,2701,2703,2705,2707,2728,2730,2736,2738,2739,2741,2745,2748,2757,2759,2761,2763,2765,2768,2768,2784,2787,2790,2799,2809,2815,2817,2819,2821,2828,2831,2832,2835,2856,2858,2864,2866,2867,2869,2873,2876,2884,2887,2888,2891,2893,2901,2903,2908,2909,2911,2915,2918,2927,2929,2929,2946,2947,2949,2954,2958,2960,2962,2965,2969,2970,2972,2972,2974,2975,2979,2980,2984,2986,2990,3001,3006,3010,3014,3016,3018,3021,3024,3024,3031,3031,3046,3055,3072,3084,3086,3088,3090,3112,3114,3129,3132,3140,3142,3144,3146,3149,3157,3158,3160,3162,3165,3165,3168,3171,3174,3183,3200,3203,3205,3212,3214,3216,3218,3240,3242,3251,3253,3257,3260,3268,3270,3272,3274,3277,3285,3286,3293,3294,3296,3299,3302,3311,3313,3315,3328,3340,3342,3344,3346,3396,3398,3400,3402,3406,3412,3415,3423,3427,3430,3439,3450,3455,3457,3459,3461,3478,3482,3505,3507,3515,3517,3517,3520,3526,3530,3530,3535,3540,3542,3542,3544,3551,3558,3567,3570,3571,3585,3642,3648,3662,3664,3673,3713,3714,3716,3716,3718,3722,3724,3747,3749,3749,3751,3773,3776,3780,3782,3782,3784,3790,3792,3801,3804,3807,3840,3840,3864,3865,3872,3881,3893,3893,3895,3895,3897,3897,3902,3911,3913,3948,3953,3972,3974,3991,3993,4028,4038,4038,4096,4169,4176,4253,4256,4293,4295,4295,4301,4301,4304,4346,4348,4680,4682,4685,4688,4694,4696,4696,4698,4701,4704,4744,4746,4749,4752,4784,4786,4789,4792,4798,4800,4800,4802,4805,4808,4822,4824,4880,4882,4885,4888,4954,4957,4959,4969,4977,4992,5007,5024,5109,5112,5117,5121,5740,5743,5759,5761,5786,5792,5866,5870,5880,5888,5909,5919,5940,5952,5971,5984,5996,5998,6e3,6002,6003,6016,6099,6103,6103,6108,6109,6112,6121,6155,6157,6159,6169,6176,6264,6272,6314,6320,6389,6400,6430,6432,6443,6448,6459,6470,6509,6512,6516,6528,6571,6576,6601,6608,6618,6656,6683,6688,6750,6752,6780,6783,6793,6800,6809,6823,6823,6832,6845,6847,6862,6912,6988,6992,7001,7019,7027,7040,7155,7168,7223,7232,7241,7245,7293,7296,7304,7312,7354,7357,7359,7376,7378,7380,7418,7424,7957,7960,7965,7968,8005,8008,8013,8016,8023,8025,8025,8027,8027,8029,8029,8031,8061,8064,8116,8118,8124,8126,8126,8130,8132,8134,8140,8144,8147,8150,8155,8160,8172,8178,8180,8182,8188,8204,8205,8255,8256,8276,8276,8305,8305,8319,8319,8336,8348,8400,8412,8417,8417,8421,8432,8450,8450,8455,8455,8458,8467,8469,8469,8472,8477,8484,8484,8486,8486,8488,8488,8490,8505,8508,8511,8517,8521,8526,8526,8544,8584,11264,11492,11499,11507,11520,11557,11559,11559,11565,11565,11568,11623,11631,11631,11647,11670,11680,11686,11688,11694,11696,11702,11704,11710,11712,11718,11720,11726,11728,11734,11736,11742,11744,11775,12293,12295,12321,12335,12337,12341,12344,12348,12353,12438,12441,12447,12449,12543,12549,12591,12593,12686,12704,12735,12784,12799,13312,19903,19968,42124,42192,42237,42240,42508,42512,42539,42560,42607,42612,42621,42623,42737,42775,42783,42786,42888,42891,42954,42960,42961,42963,42963,42965,42969,42994,43047,43052,43052,43072,43123,43136,43205,43216,43225,43232,43255,43259,43259,43261,43309,43312,43347,43360,43388,43392,43456,43471,43481,43488,43518,43520,43574,43584,43597,43600,43609,43616,43638,43642,43714,43739,43741,43744,43759,43762,43766,43777,43782,43785,43790,43793,43798,43808,43814,43816,43822,43824,43866,43868,43881,43888,44010,44012,44013,44016,44025,44032,55203,55216,55238,55243,55291,63744,64109,64112,64217,64256,64262,64275,64279,64285,64296,64298,64310,64312,64316,64318,64318,64320,64321,64323,64324,64326,64433,64467,64829,64848,64911,64914,64967,65008,65019,65024,65039,65056,65071,65075,65076,65101,65103,65136,65140,65142,65276,65296,65305,65313,65338,65343,65343,65345,65370,65381,65470,65474,65479,65482,65487,65490,65495,65498,65500,65536,65547,65549,65574,65576,65594,65596,65597,65599,65613,65616,65629,65664,65786,65856,65908,66045,66045,66176,66204,66208,66256,66272,66272,66304,66335,66349,66378,66384,66426,66432,66461,66464,66499,66504,66511,66513,66517,66560,66717,66720,66729,66736,66771,66776,66811,66816,66855,66864,66915,66928,66938,66940,66954,66956,66962,66964,66965,66967,66977,66979,66993,66995,67001,67003,67004,67072,67382,67392,67413,67424,67431,67456,67461,67463,67504,67506,67514,67584,67589,67592,67592,67594,67637,67639,67640,67644,67644,67647,67669,67680,67702,67712,67742,67808,67826,67828,67829,67840,67861,67872,67897,67968,68023,68030,68031,68096,68099,68101,68102,68108,68115,68117,68119,68121,68149,68152,68154,68159,68159,68192,68220,68224,68252,68288,68295,68297,68326,68352,68405,68416,68437,68448,68466,68480,68497,68608,68680,68736,68786,68800,68850,68864,68903,68912,68921,69248,69289,69291,69292,69296,69297,69373,69404,69415,69415,69424,69456,69488,69509,69552,69572,69600,69622,69632,69702,69734,69749,69759,69818,69826,69826,69840,69864,69872,69881,69888,69940,69942,69951,69956,69959,69968,70003,70006,70006,70016,70084,70089,70092,70094,70106,70108,70108,70144,70161,70163,70199,70206,70209,70272,70278,70280,70280,70282,70285,70287,70301,70303,70312,70320,70378,70384,70393,70400,70403,70405,70412,70415,70416,70419,70440,70442,70448,70450,70451,70453,70457,70459,70468,70471,70472,70475,70477,70480,70480,70487,70487,70493,70499,70502,70508,70512,70516,70656,70730,70736,70745,70750,70753,70784,70853,70855,70855,70864,70873,71040,71093,71096,71104,71128,71133,71168,71232,71236,71236,71248,71257,71296,71352,71360,71369,71424,71450,71453,71467,71472,71481,71488,71494,71680,71738,71840,71913,71935,71942,71945,71945,71948,71955,71957,71958,71960,71989,71991,71992,71995,72003,72016,72025,72096,72103,72106,72151,72154,72161,72163,72164,72192,72254,72263,72263,72272,72345,72349,72349,72368,72440,72704,72712,72714,72758,72760,72768,72784,72793,72818,72847,72850,72871,72873,72886,72960,72966,72968,72969,72971,73014,73018,73018,73020,73021,73023,73031,73040,73049,73056,73061,73063,73064,73066,73102,73104,73105,73107,73112,73120,73129,73440,73462,73472,73488,73490,73530,73534,73538,73552,73561,73648,73648,73728,74649,74752,74862,74880,75075,77712,77808,77824,78895,78912,78933,82944,83526,92160,92728,92736,92766,92768,92777,92784,92862,92864,92873,92880,92909,92912,92916,92928,92982,92992,92995,93008,93017,93027,93047,93053,93071,93760,93823,93952,94026,94031,94087,94095,94111,94176,94177,94179,94180,94192,94193,94208,100343,100352,101589,101632,101640,110576,110579,110581,110587,110589,110590,110592,110882,110898,110898,110928,110930,110933,110933,110948,110951,110960,111355,113664,113770,113776,113788,113792,113800,113808,113817,113821,113822,118528,118573,118576,118598,119141,119145,119149,119154,119163,119170,119173,119179,119210,119213,119362,119364,119808,119892,119894,119964,119966,119967,119970,119970,119973,119974,119977,119980,119982,119993,119995,119995,119997,120003,120005,120069,120071,120074,120077,120084,120086,120092,120094,120121,120123,120126,120128,120132,120134,120134,120138,120144,120146,120485,120488,120512,120514,120538,120540,120570,120572,120596,120598,120628,120630,120654,120656,120686,120688,120712,120714,120744,120746,120770,120772,120779,120782,120831,121344,121398,121403,121452,121461,121461,121476,121476,121499,121503,121505,121519,122624,122654,122661,122666,122880,122886,122888,122904,122907,122913,122915,122916,122918,122922,122928,122989,123023,123023,123136,123180,123184,123197,123200,123209,123214,123214,123536,123566,123584,123641,124112,124153,124896,124902,124904,124907,124909,124910,124912,124926,124928,125124,125136,125142,125184,125259,125264,125273,126464,126467,126469,126495,126497,126498,126500,126500,126503,126503,126505,126514,126516,126519,126521,126521,126523,126523,126530,126530,126535,126535,126537,126537,126539,126539,126541,126543,126545,126546,126548,126548,126551,126551,126553,126553,126555,126555,126557,126557,126559,126559,126561,126562,126564,126564,126567,126570,126572,126578,126580,126583,126585,126588,126590,126590,126592,126601,126603,126619,126625,126627,126629,126633,126635,126651,130032,130041,131072,173791,173824,177977,177984,178205,178208,183969,183984,191456,191472,192093,194560,195101,196608,201546,201552,205743,917760,917999],xa=/^\/\/\/?\s*@(ts-expect-error|ts-ignore)/,ka=/^(?:\/|\*)*\s*@(ts-expect-error|ts-ignore)/,Sa=/@(?:see|link)/i;function Ta(e,t){if(e=2?va:ha)}function wa(e){const t=[];return e.forEach(((e,n)=>{t[e]=n})),t}var Na=wa(fa);function Da(e){return Na[e]}function Fa(e){return fa.get(e)}var Ea=wa(ma);function Pa(e){return Ea[e]}function Aa(e){return ma.get(e)}function Ia(e){const t=[];let n=0,r=0;for(;n127&&Ua(i)&&(t.push(r),r=n)}}return t.push(r),t}function Oa(e,t,n,r){return e.getPositionOfLineAndCharacter?e.getPositionOfLineAndCharacter(t,n,r):La(ja(e),t,n,e.text,r)}function La(e,t,n,r,i){(t<0||t>=e.length)&&(i?t=t<0?0:t>=e.length?e.length-1:t:un.fail(`Bad line number. Line: ${t}, lineStarts.length: ${e.length} , line map is correct? ${void 0!==r?te(e,Ia(r)):"unknown"}`));const o=e[t]+n;return i?o>e[t+1]?e[t+1]:"string"==typeof r&&o>r.length?r.length:o:(t=8192&&e<=8203||8239===e||8287===e||12288===e||65279===e}function Ua(e){return 10===e||13===e||8232===e||8233===e}function Va(e){return e>=48&&e<=57}function Wa(e){return Va(e)||e>=65&&e<=70||e>=97&&e<=102}function $a(e){return e>=65&&e<=90||e>=97&&e<=122}function Ha(e){return $a(e)||Va(e)||95===e}function Ka(e){return e>=48&&e<=55}function Ga(e,t){const n=e.charCodeAt(t);switch(n){case 13:case 10:case 9:case 11:case 12:case 32:case 47:case 60:case 124:case 61:case 62:return!0;case 35:return 0===t;default:return n>127}}function Xa(e,t,n,r,i){if(KS(t))return t;let o=!1;for(;;){const a=e.charCodeAt(t);switch(a){case 13:10===e.charCodeAt(t+1)&&t++;case 10:if(t++,n)return t;o=!!i;continue;case 9:case 11:case 12:case 32:t++;continue;case 47:if(r)break;if(47===e.charCodeAt(t+1)){for(t+=2;t127&&za(a)){t++;continue}}return t}}var Qa=7;function Ya(e,t){if(un.assert(t>=0),0===t||Ua(e.charCodeAt(t-1))){const n=e.charCodeAt(t);if(t+Qa=0&&n127&&za(a)){u&&Ua(a)&&(_=!0),n++;continue}break e}}return u&&(p=i(s,c,l,_,o,p)),p}function is(e,t,n,r){return rs(!1,e,t,!1,n,r)}function os(e,t,n,r){return rs(!1,e,t,!0,n,r)}function as(e,t,n,r,i){return rs(!0,e,t,!1,n,r,i)}function ss(e,t,n,r,i){return rs(!0,e,t,!0,n,r,i)}function cs(e,t,n,r,i,o=[]){return o.push({kind:n,pos:e,end:t,hasTrailingNewLine:r}),o}function ls(e,t){return as(e,t,cs,void 0,void 0)}function _s(e,t){return ss(e,t,cs,void 0,void 0)}function us(e){const t=es.exec(e);if(t)return t[0]}function ds(e,t){return $a(e)||36===e||95===e||e>127&&Ca(e,t)}function ps(e,t,n){return Ha(e)||36===e||1===n&&(45===e||58===e)||e>127&&function(e,t){return Ta(e,t>=2?ba:ya)}(e,t)}function fs(e,t,n){let r=gs(e,0);if(!ds(r,t))return!1;for(let i=hs(r);il,getStartPos:()=>l,getTokenEnd:()=>s,getTextPos:()=>s,getToken:()=>u,getTokenStart:()=>_,getTokenPos:()=>_,getTokenText:()=>g.substring(_,s),getTokenValue:()=>p,hasUnicodeEscape:()=>!!(1024&f),hasExtendedUnicodeEscape:()=>!!(8&f),hasPrecedingLineBreak:()=>!!(1&f),hasPrecedingJSDocComment:()=>!!(2&f),hasPrecedingJSDocLeadingAsterisks:()=>!!(32768&f),isIdentifier:()=>80===u||u>118,isReservedWord:()=>u>=83&&u<=118,isUnterminated:()=>!!(4&f),getCommentDirectives:()=>m,getNumericLiteralFlags:()=>25584&f,getTokenFlags:()=>f,reScanGreaterToken:function(){if(32===u){if(62===S(s))return 62===S(s+1)?61===S(s+2)?(s+=3,u=73):(s+=2,u=50):61===S(s+1)?(s+=2,u=72):(s++,u=49);if(61===S(s))return s++,u=34}return u},reScanAsteriskEqualsToken:function(){return un.assert(67===u,"'reScanAsteriskEqualsToken' should only be called on a '*='"),s=_+1,u=64},reScanSlashToken:function(t){if(44===u||69===u){const n=_+1;s=n;let r=!1,i=!1,a=!1;for(;;){const e=T(s);if(-1===e||Ua(e)){f|=4;break}if(r)r=!1;else{if(47===e&&!a)break;91===e?a=!0:92===e?r=!0:93===e?a=!1:a||40!==e||63!==T(s+1)||60!==T(s+2)||61===T(s+3)||33===T(s+3)||(i=!0)}s++}const l=s;if(4&f){s=n,r=!1;let e=0,t=!1,i=0;for(;s{!function(t,n,r){var i,a,l,u,f=!!(64&t),m=!!(96&t),h=m||!1,y=!1,v=0,b=[];function x(e){for(;;){if(b.push(u),u=void 0,w(e),u=b.pop(),124!==T(s))return;s++}}function w(t){let n=!1;for(;;){const r=s,i=T(s);switch(i){case-1:return;case 94:case 36:s++,n=!1;break;case 92:switch(T(++s)){case 98:case 66:s++,n=!1;break;default:D(),n=!0}break;case 40:if(63===T(++s))switch(T(++s)){case 61:case 33:s++,n=!h;break;case 60:const t=s;switch(T(++s)){case 61:case 33:s++,n=!1;break;default:P(!1),U(62),e<5&&C(la.Named_capturing_groups_are_only_available_when_targeting_ES2018_or_later,t,s-t),v++,n=!0}break;default:const r=s,i=N(0);45===T(s)&&(s++,N(i),s===r+1&&C(la.Subpattern_flags_must_be_present_when_there_is_a_minus_sign,r,s-r)),U(58),n=!0}else v++,n=!0;x(!0),U(41);break;case 123:const o=++s;F();const a=p;if(!h&&!a){n=!0;break}if(44===T(s)){s++,F();const e=p;if(a)e&&Number.parseInt(a)>Number.parseInt(e)&&(h||125===T(s))&&C(la.Numbers_out_of_order_in_quantifier,o,s-o);else{if(!e&&125!==T(s)){C(la.Unexpected_0_Did_you_mean_to_escape_it_with_backslash,r,1,String.fromCharCode(i)),n=!0;break}C(la.Incomplete_quantifier_Digit_expected,o,0)}}else if(!a){h&&C(la.Unexpected_0_Did_you_mean_to_escape_it_with_backslash,r,1,String.fromCharCode(i)),n=!0;break}if(125!==T(s)){if(!h){n=!0;break}C(la._0_expected,s,0,String.fromCharCode(125)),s--}case 42:case 43:case 63:63===T(++s)&&s++,n||C(la.There_is_nothing_available_for_repetition,r,s-r),n=!1;break;case 46:s++,n=!0;break;case 91:s++,f?L():I(),U(93),n=!0;break;case 41:if(t)return;case 93:case 125:(h||41===i)&&C(la.Unexpected_0_Did_you_mean_to_escape_it_with_backslash,s,1,String.fromCharCode(i)),s++,n=!0;break;case 47:case 124:return;default:q(),n=!0}}}function N(t){for(;;){const n=k(s);if(-1===n||!ps(n,e))break;const r=hs(n),i=Aa(n);void 0===i?C(la.Unknown_regular_expression_flag,s,r):t&i?C(la.Duplicate_regular_expression_flag,s,r):28&i?(t|=i,W(i,r)):C(la.This_regular_expression_flag_cannot_be_toggled_within_a_subpattern,s,r),s+=r}return t}function D(){switch(un.assertEqual(S(s-1),92),T(s)){case 107:60===T(++s)?(s++,P(!0),U(62)):(h||r)&&C(la.k_must_be_followed_by_a_capturing_group_name_enclosed_in_angle_brackets,s-2,2);break;case 113:if(f){s++,C(la.q_is_only_available_inside_character_class,s-2,2);break}default:un.assert(J()||function(){un.assertEqual(S(s-1),92);const e=T(s);if(e>=49&&e<=57){const e=s;return F(),l=ie(l,{pos:e,end:s,value:+p}),!0}return!1}()||E(!0))}}function E(e){un.assertEqual(S(s-1),92);let t=T(s);switch(t){case-1:return C(la.Undetermined_character_escape,s-1,1),"\\";case 99:if(t=T(++s),$a(t))return s++,String.fromCharCode(31&t);if(h)C(la.c_must_be_followed_by_an_ASCII_letter,s-2,2);else if(e)return s--,"\\";return String.fromCharCode(t);case 94:case 36:case 47:case 92:case 46:case 42:case 43:case 63:case 40:case 41:case 91:case 93:case 123:case 125:case 124:return s++,String.fromCharCode(t);default:return s--,O(12|(m?16:0)|(e?32:0))}}function P(t){un.assertEqual(S(s-1),60),_=s,V(k(s),e),s===_?C(la.Expected_a_capturing_group_name):t?a=ie(a,{pos:_,end:s,name:p}):(null==u?void 0:u.has(p))||b.some((e=>null==e?void 0:e.has(p)))?C(la.Named_capturing_groups_with_the_same_name_must_be_mutually_exclusive_to_each_other,_,s-_):(u??(u=new Set),u.add(p),i??(i=new Set),i.add(p))}function A(e){return 93===e||-1===e||s>=c}function I(){for(un.assertEqual(S(s-1),91),94===T(s)&&s++;;){if(A(T(s)))return;const e=s,t=B();if(45===T(s)){if(A(T(++s)))return;!t&&h&&C(la.A_character_class_range_must_not_be_bounded_by_another_character_class,e,s-1-e);const n=s,r=B();if(!r&&h){C(la.A_character_class_range_must_not_be_bounded_by_another_character_class,n,s-n);continue}if(!t)continue;const i=gs(t,0),o=gs(r,0);t.length===hs(i)&&r.length===hs(o)&&i>o&&C(la.Range_out_of_order_in_character_class,e,s-e)}}}function L(){un.assertEqual(S(s-1),91);let e=!1;94===T(s)&&(s++,e=!0);let t=!1,n=T(s);if(A(n))return;let r,i=s;switch(g.slice(s,s+2)){case"--":case"&&":C(la.Expected_a_class_set_operand),y=!1;break;default:r=R()}switch(T(s)){case 45:if(45===T(s+1))return e&&y&&C(la.Anything_that_would_possibly_match_more_than_a_single_character_is_invalid_inside_a_negated_character_class,i,s-i),t=y,j(3),void(y=!e&&t);break;case 38:if(38===T(s+1))return j(2),e&&y&&C(la.Anything_that_would_possibly_match_more_than_a_single_character_is_invalid_inside_a_negated_character_class,i,s-i),t=y,void(y=!e&&t);C(la.Unexpected_0_Did_you_mean_to_escape_it_with_backslash,s,1,String.fromCharCode(n));break;default:e&&y&&C(la.Anything_that_would_possibly_match_more_than_a_single_character_is_invalid_inside_a_negated_character_class,i,s-i),t=y}for(;n=T(s),-1!==n;){switch(n){case 45:if(n=T(++s),A(n))return void(y=!e&&t);if(45===n){s++,C(la.Operators_must_not_be_mixed_within_a_character_class_Wrap_it_in_a_nested_class_instead,s-2,2),i=s-2,r=g.slice(i,s);continue}{r||C(la.A_character_class_range_must_not_be_bounded_by_another_character_class,i,s-1-i);const n=s,o=R();if(e&&y&&C(la.Anything_that_would_possibly_match_more_than_a_single_character_is_invalid_inside_a_negated_character_class,n,s-n),t||(t=y),!o){C(la.A_character_class_range_must_not_be_bounded_by_another_character_class,n,s-n);break}if(!r)break;const a=gs(r,0),c=gs(o,0);r.length===hs(a)&&o.length===hs(c)&&a>c&&C(la.Range_out_of_order_in_character_class,i,s-i)}break;case 38:i=s,38===T(++s)?(s++,C(la.Operators_must_not_be_mixed_within_a_character_class_Wrap_it_in_a_nested_class_instead,s-2,2),38===T(s)&&(C(la.Unexpected_0_Did_you_mean_to_escape_it_with_backslash,s,1,String.fromCharCode(n)),s++)):C(la.Unexpected_0_Did_you_mean_to_escape_it_with_backslash,s-1,1,String.fromCharCode(n)),r=g.slice(i,s);continue}if(A(T(s)))break;switch(i=s,g.slice(s,s+2)){case"--":case"&&":C(la.Operators_must_not_be_mixed_within_a_character_class_Wrap_it_in_a_nested_class_instead,s,2),s+=2,r=g.slice(i,s);break;default:r=R()}}y=!e&&t}function j(e){let t=y;for(;;){let n=T(s);if(A(n))break;switch(n){case 45:45===T(++s)?(s++,3!==e&&C(la.Operators_must_not_be_mixed_within_a_character_class_Wrap_it_in_a_nested_class_instead,s-2,2)):C(la.Operators_must_not_be_mixed_within_a_character_class_Wrap_it_in_a_nested_class_instead,s-1,1);break;case 38:38===T(++s)?(s++,2!==e&&C(la.Operators_must_not_be_mixed_within_a_character_class_Wrap_it_in_a_nested_class_instead,s-2,2),38===T(s)&&(C(la.Unexpected_0_Did_you_mean_to_escape_it_with_backslash,s,1,String.fromCharCode(n)),s++)):C(la.Unexpected_0_Did_you_mean_to_escape_it_with_backslash,s-1,1,String.fromCharCode(n));break;default:switch(e){case 3:C(la._0_expected,s,0,"--");break;case 2:C(la._0_expected,s,0,"&&")}}if(n=T(s),A(n)){C(la.Expected_a_class_set_operand);break}R(),t&&(t=y)}y=t}function R(){switch(y=!1,T(s)){case-1:return"";case 91:return s++,L(),U(93),"";case 92:if(s++,J())return"";if(113===T(s))return 123===T(++s)?(s++,function(){un.assertEqual(S(s-1),123);let e=0;for(;;)switch(T(s)){case-1:return;case 125:return void(1!==e&&(y=!0));case 124:1!==e&&(y=!0),s++,o=s,e=0;break;default:M(),e++}}(),U(125),""):(C(la.q_must_be_followed_by_string_alternatives_enclosed_in_braces,s-2,2),"q");s--;default:return M()}}function M(){const e=T(s);if(-1===e)return"";if(92===e){const e=T(++s);switch(e){case 98:return s++,"\b";case 38:case 45:case 33:case 35:case 37:case 44:case 58:case 59:case 60:case 61:case 62:case 64:case 96:case 126:return s++,String.fromCharCode(e);default:return E(!1)}}else if(e===T(s+1))switch(e){case 38:case 33:case 35:case 37:case 42:case 43:case 44:case 46:case 58:case 59:case 60:case 61:case 62:case 63:case 64:case 96:case 126:return C(la.A_character_class_must_not_contain_a_reserved_double_punctuator_Did_you_mean_to_escape_it_with_backslash,s,2),s+=2,g.substring(s-2,s)}switch(e){case 47:case 40:case 41:case 91:case 93:case 123:case 125:case 45:case 124:return C(la.Unexpected_0_Did_you_mean_to_escape_it_with_backslash,s,1,String.fromCharCode(e)),s++,String.fromCharCode(e)}return q()}function B(){if(92!==T(s))return q();{const e=T(++s);switch(e){case 98:return s++,"\b";case 45:return s++,String.fromCharCode(e);default:return J()?"":E(!1)}}}function J(){un.assertEqual(S(s-1),92);let e=!1;const t=s-1,n=T(s);switch(n){case 100:case 68:case 115:case 83:case 119:case 87:return s++,!0;case 80:e=!0;case 112:if(123===T(++s)){const n=++s,r=z();if(61===T(s)){const e=bs.get(r);if(s===n)C(la.Expected_a_Unicode_property_name);else if(void 0===e){C(la.Unknown_Unicode_property_name,n,s-n);const e=Lt(r,bs.keys(),st);e&&C(la.Did_you_mean_0,n,s-n,e)}const t=++s,i=z();if(s===t)C(la.Expected_a_Unicode_property_value);else if(void 0!==e&&!Ss[e].has(i)){C(la.Unknown_Unicode_property_value,t,s-t);const n=Lt(i,Ss[e],st);n&&C(la.Did_you_mean_0,t,s-t,n)}}else if(s===n)C(la.Expected_a_Unicode_property_name_or_value);else if(ks.has(r))f?e?C(la.Anything_that_would_possibly_match_more_than_a_single_character_is_invalid_inside_a_negated_character_class,n,s-n):y=!0:C(la.Any_Unicode_property_that_would_possibly_match_more_than_a_single_character_is_only_available_when_the_Unicode_Sets_v_flag_is_set,n,s-n);else if(!Ss.General_Category.has(r)&&!xs.has(r)){C(la.Unknown_Unicode_property_name_or_value,n,s-n);const e=Lt(r,[...Ss.General_Category,...xs,...ks],st);e&&C(la.Did_you_mean_0,n,s-n,e)}U(125),m||C(la.Unicode_property_value_expressions_are_only_available_when_the_Unicode_u_flag_or_the_Unicode_Sets_v_flag_is_set,t,s-t)}else{if(!h)return s--,!1;C(la._0_must_be_followed_by_a_Unicode_property_value_expression_enclosed_in_braces,s-2,2,String.fromCharCode(n))}return!0}return!1}function z(){let e="";for(;;){const t=T(s);if(-1===t||!Ha(t))break;e+=String.fromCharCode(t),s++}return e}function q(){const e=m?hs(k(s)):1;return s+=e,e>0?g.substring(s-e,s):""}function U(e){T(s)===e?s++:C(la._0_expected,s,0,String.fromCharCode(e))}x(!1),d(a,(e=>{if(!(null==i?void 0:i.has(e.name))&&(C(la.There_is_no_capturing_group_named_0_in_this_regular_expression,e.pos,e.end-e.pos,e.name),i)){const t=Lt(e.name,i,st);t&&C(la.Did_you_mean_0,e.pos,e.end-e.pos,t)}})),d(l,(e=>{e.value>v&&(v?C(la.This_backreference_refers_to_a_group_that_does_not_exist_There_are_only_0_capturing_groups_in_this_regular_expression,e.pos,e.end-e.pos,v):C(la.This_backreference_refers_to_a_group_that_does_not_exist_There_are_no_capturing_groups_in_this_regular_expression,e.pos,e.end-e.pos))}))}(r,0,i)}))}p=g.substring(_,s),u=14}return u},reScanTemplateToken:function(e){return s=_,u=I(!e)},reScanTemplateHeadOrNoSubstitutionTemplate:function(){return s=_,u=I(!0)},scanJsxIdentifier:function(){if(_a(u)){for(;s=c)return u=1;for(let t=S(s);s=0&&qa(S(s-1))&&!(s+1{const e=b.getText();return e.slice(0,b.getTokenFullStart())+"║"+e.slice(b.getTokenFullStart())}}),b;function x(e){return gs(g,e)}function k(e){return e>=0&&e=0&&e=65&&e<=70)e+=32;else if(!(e>=48&&e<=57||e>=97&&e<=102))break;r.push(e),s++,o=!1}}return r.length=c){n+=g.substring(r,s),f|=4,C(la.Unterminated_string_literal);break}const i=S(s);if(i===t){n+=g.substring(r,s),s++;break}if(92!==i||e){if((10===i||13===i)&&!e){n+=g.substring(r,s),f|=4,C(la.Unterminated_string_literal);break}s++}else n+=g.substring(r,s),n+=O(3),r=s}return n}function I(e){const t=96===S(s);let n,r=++s,i="";for(;;){if(s>=c){i+=g.substring(r,s),f|=4,C(la.Unterminated_template_literal),n=t?15:18;break}const o=S(s);if(96===o){i+=g.substring(r,s),s++,n=t?15:18;break}if(36===o&&s+1=c)return C(la.Unexpected_end_of_text),"";const r=S(s);switch(s++,r){case 48:if(s>=c||!Va(S(s)))return"\0";case 49:case 50:case 51:s=55296&&i<=56319&&s+6=56320&&n<=57343)return s=t,o+String.fromCharCode(n)}return o;case 120:for(;s1114111&&(e&&C(la.An_extended_Unicode_escape_value_must_be_between_0x0_and_0x10FFFF_inclusive,n,s-n),o=!0),s>=c?(e&&C(la.Unexpected_end_of_text),o=!0):125===S(s)?s++:(e&&C(la.Unterminated_Unicode_escape_sequence),o=!0),o?(f|=2048,g.substring(t,s)):(f|=8,vs(i))}function j(){if(s+5=0&&ps(r,e)){t+=L(!0),n=s;continue}if(r=j(),!(r>=0&&ps(r,e)))break;f|=1024,t+=g.substring(n,s),t+=vs(r),n=s+=6}}return t+=g.substring(n,s),t}function B(){const e=p.length;if(e>=2&&e<=12){const e=p.charCodeAt(0);if(e>=97&&e<=122){const e=pa.get(p);if(void 0!==e)return u=e}}return u=80}function J(e){let t="",n=!1,r=!1;for(;;){const i=S(s);if(95!==i){if(n=!0,!Va(i)||i-48>=e)break;t+=g[s],s++,r=!1}else f|=512,n?(n=!1,r=!0):C(r?la.Multiple_consecutive_numeric_separators_are_not_permitted:la.Numeric_separators_are_not_allowed_here,s,1),s++}return 95===S(s-1)&&C(la.Numeric_separators_are_not_allowed_here,s-1,1),t}function z(){if(110===S(s))return p+="n",384&f&&(p=pT(p)+"n"),s++,10;{const e=128&f?parseInt(p.slice(2),2):256&f?parseInt(p.slice(2),8):+p;return p=""+e,9}}function q(){for(l=s,f=0;;){if(_=s,s>=c)return u=1;const r=x(s);if(0===s&&35===r&&ts(g,s)){if(s=ns(g,s),t)continue;return u=6}switch(r){case 10:case 13:if(f|=1,t){s++;continue}return 13===r&&s+1=0&&ds(i,e))return p=L(!0)+M(),u=B();const o=j();return o>=0&&ds(o,e)?(s+=6,f|=1024,p=String.fromCharCode(o)+M(),u=B()):(C(la.Invalid_character),s++,u=0);case 35:if(0!==s&&"!"===g[s+1])return C(la.can_only_be_used_at_the_start_of_a_file,s,2),s++,u=0;const a=x(s+1);if(92===a){s++;const t=R();if(t>=0&&ds(t,e))return p="#"+L(!0)+M(),u=81;const n=j();if(n>=0&&ds(n,e))return s+=6,f|=1024,p="#"+String.fromCharCode(n)+M(),u=81;s--}return ds(a,e)?(s++,V(a,e)):(p="#",C(la.Invalid_character,s++,hs(r))),u=81;case 65533:return C(la.File_appears_to_be_binary,0,0),s=c,u=8;default:const l=V(r,e);if(l)return u=l;if(qa(r)){s+=hs(r);continue}if(Ua(r)){f|=1,s+=hs(r);continue}const d=hs(r);return C(la.Invalid_character,s,d),s+=d,u=0}}}function U(){switch(v){case 0:return!0;case 1:return!1}return 3!==y&&4!==y||3!==v&&Sa.test(g.slice(l,s))}function V(e,t){let n=e;if(ds(n,t)){for(s+=hs(n);s=c)return u=1;let t=S(s);if(60===t)return 47===S(s+1)?(s+=2,u=31):(s++,u=30);if(123===t)return s++,u=19;let n=0;for(;s0)break;za(t)||(n=s)}s++}return p=g.substring(l,s),-1===n?13:12}function K(){switch(l=s,S(s)){case 34:case 39:return p=A(!0),u=11;default:return q()}}function G(){if(l=_=s,f=0,s>=c)return u=1;const t=x(s);switch(s+=hs(t),t){case 9:case 11:case 12:case 32:for(;s=0&&ds(t,e))return p=L(!0)+M(),u=B();const n=j();return n>=0&&ds(n,e)?(s+=6,f|=1024,p=String.fromCharCode(n)+M(),u=B()):(s++,u=0)}if(ds(t,e)){let n=t;for(;s=0),s=e,l=e,_=e,u=0,p=void 0,f=0}}function gs(e,t){return e.codePointAt(t)}function hs(e){return e>=65536?2:-1===e?0:1}var ys=String.fromCodePoint?e=>String.fromCodePoint(e):function(e){if(un.assert(0<=e&&e<=1114111),e<=65535)return String.fromCharCode(e);const t=Math.floor((e-65536)/1024)+55296,n=(e-65536)%1024+56320;return String.fromCharCode(t,n)};function vs(e){return ys(e)}var bs=new Map(Object.entries({General_Category:"General_Category",gc:"General_Category",Script:"Script",sc:"Script",Script_Extensions:"Script_Extensions",scx:"Script_Extensions"})),xs=new Set(["ASCII","ASCII_Hex_Digit","AHex","Alphabetic","Alpha","Any","Assigned","Bidi_Control","Bidi_C","Bidi_Mirrored","Bidi_M","Case_Ignorable","CI","Cased","Changes_When_Casefolded","CWCF","Changes_When_Casemapped","CWCM","Changes_When_Lowercased","CWL","Changes_When_NFKC_Casefolded","CWKCF","Changes_When_Titlecased","CWT","Changes_When_Uppercased","CWU","Dash","Default_Ignorable_Code_Point","DI","Deprecated","Dep","Diacritic","Dia","Emoji","Emoji_Component","EComp","Emoji_Modifier","EMod","Emoji_Modifier_Base","EBase","Emoji_Presentation","EPres","Extended_Pictographic","ExtPict","Extender","Ext","Grapheme_Base","Gr_Base","Grapheme_Extend","Gr_Ext","Hex_Digit","Hex","IDS_Binary_Operator","IDSB","IDS_Trinary_Operator","IDST","ID_Continue","IDC","ID_Start","IDS","Ideographic","Ideo","Join_Control","Join_C","Logical_Order_Exception","LOE","Lowercase","Lower","Math","Noncharacter_Code_Point","NChar","Pattern_Syntax","Pat_Syn","Pattern_White_Space","Pat_WS","Quotation_Mark","QMark","Radical","Regional_Indicator","RI","Sentence_Terminal","STerm","Soft_Dotted","SD","Terminal_Punctuation","Term","Unified_Ideograph","UIdeo","Uppercase","Upper","Variation_Selector","VS","White_Space","space","XID_Continue","XIDC","XID_Start","XIDS"]),ks=new Set(["Basic_Emoji","Emoji_Keycap_Sequence","RGI_Emoji_Modifier_Sequence","RGI_Emoji_Flag_Sequence","RGI_Emoji_Tag_Sequence","RGI_Emoji_ZWJ_Sequence","RGI_Emoji"]),Ss={General_Category:new Set(["C","Other","Cc","Control","cntrl","Cf","Format","Cn","Unassigned","Co","Private_Use","Cs","Surrogate","L","Letter","LC","Cased_Letter","Ll","Lowercase_Letter","Lm","Modifier_Letter","Lo","Other_Letter","Lt","Titlecase_Letter","Lu","Uppercase_Letter","M","Mark","Combining_Mark","Mc","Spacing_Mark","Me","Enclosing_Mark","Mn","Nonspacing_Mark","N","Number","Nd","Decimal_Number","digit","Nl","Letter_Number","No","Other_Number","P","Punctuation","punct","Pc","Connector_Punctuation","Pd","Dash_Punctuation","Pe","Close_Punctuation","Pf","Final_Punctuation","Pi","Initial_Punctuation","Po","Other_Punctuation","Ps","Open_Punctuation","S","Symbol","Sc","Currency_Symbol","Sk","Modifier_Symbol","Sm","Math_Symbol","So","Other_Symbol","Z","Separator","Zl","Line_Separator","Zp","Paragraph_Separator","Zs","Space_Separator"]),Script:new Set(["Adlm","Adlam","Aghb","Caucasian_Albanian","Ahom","Arab","Arabic","Armi","Imperial_Aramaic","Armn","Armenian","Avst","Avestan","Bali","Balinese","Bamu","Bamum","Bass","Bassa_Vah","Batk","Batak","Beng","Bengali","Bhks","Bhaiksuki","Bopo","Bopomofo","Brah","Brahmi","Brai","Braille","Bugi","Buginese","Buhd","Buhid","Cakm","Chakma","Cans","Canadian_Aboriginal","Cari","Carian","Cham","Cher","Cherokee","Chrs","Chorasmian","Copt","Coptic","Qaac","Cpmn","Cypro_Minoan","Cprt","Cypriot","Cyrl","Cyrillic","Deva","Devanagari","Diak","Dives_Akuru","Dogr","Dogra","Dsrt","Deseret","Dupl","Duployan","Egyp","Egyptian_Hieroglyphs","Elba","Elbasan","Elym","Elymaic","Ethi","Ethiopic","Geor","Georgian","Glag","Glagolitic","Gong","Gunjala_Gondi","Gonm","Masaram_Gondi","Goth","Gothic","Gran","Grantha","Grek","Greek","Gujr","Gujarati","Guru","Gurmukhi","Hang","Hangul","Hani","Han","Hano","Hanunoo","Hatr","Hatran","Hebr","Hebrew","Hira","Hiragana","Hluw","Anatolian_Hieroglyphs","Hmng","Pahawh_Hmong","Hmnp","Nyiakeng_Puachue_Hmong","Hrkt","Katakana_Or_Hiragana","Hung","Old_Hungarian","Ital","Old_Italic","Java","Javanese","Kali","Kayah_Li","Kana","Katakana","Kawi","Khar","Kharoshthi","Khmr","Khmer","Khoj","Khojki","Kits","Khitan_Small_Script","Knda","Kannada","Kthi","Kaithi","Lana","Tai_Tham","Laoo","Lao","Latn","Latin","Lepc","Lepcha","Limb","Limbu","Lina","Linear_A","Linb","Linear_B","Lisu","Lyci","Lycian","Lydi","Lydian","Mahj","Mahajani","Maka","Makasar","Mand","Mandaic","Mani","Manichaean","Marc","Marchen","Medf","Medefaidrin","Mend","Mende_Kikakui","Merc","Meroitic_Cursive","Mero","Meroitic_Hieroglyphs","Mlym","Malayalam","Modi","Mong","Mongolian","Mroo","Mro","Mtei","Meetei_Mayek","Mult","Multani","Mymr","Myanmar","Nagm","Nag_Mundari","Nand","Nandinagari","Narb","Old_North_Arabian","Nbat","Nabataean","Newa","Nkoo","Nko","Nshu","Nushu","Ogam","Ogham","Olck","Ol_Chiki","Orkh","Old_Turkic","Orya","Oriya","Osge","Osage","Osma","Osmanya","Ougr","Old_Uyghur","Palm","Palmyrene","Pauc","Pau_Cin_Hau","Perm","Old_Permic","Phag","Phags_Pa","Phli","Inscriptional_Pahlavi","Phlp","Psalter_Pahlavi","Phnx","Phoenician","Plrd","Miao","Prti","Inscriptional_Parthian","Rjng","Rejang","Rohg","Hanifi_Rohingya","Runr","Runic","Samr","Samaritan","Sarb","Old_South_Arabian","Saur","Saurashtra","Sgnw","SignWriting","Shaw","Shavian","Shrd","Sharada","Sidd","Siddham","Sind","Khudawadi","Sinh","Sinhala","Sogd","Sogdian","Sogo","Old_Sogdian","Sora","Sora_Sompeng","Soyo","Soyombo","Sund","Sundanese","Sylo","Syloti_Nagri","Syrc","Syriac","Tagb","Tagbanwa","Takr","Takri","Tale","Tai_Le","Talu","New_Tai_Lue","Taml","Tamil","Tang","Tangut","Tavt","Tai_Viet","Telu","Telugu","Tfng","Tifinagh","Tglg","Tagalog","Thaa","Thaana","Thai","Tibt","Tibetan","Tirh","Tirhuta","Tnsa","Tangsa","Toto","Ugar","Ugaritic","Vaii","Vai","Vith","Vithkuqi","Wara","Warang_Citi","Wcho","Wancho","Xpeo","Old_Persian","Xsux","Cuneiform","Yezi","Yezidi","Yiii","Yi","Zanb","Zanabazar_Square","Zinh","Inherited","Qaai","Zyyy","Common","Zzzz","Unknown"]),Script_Extensions:void 0};function Ts(e){return vo(e)||go(e)}function Cs(e){return ee(e,tk,ok)}Ss.Script_Extensions=Ss.Script;var ws=new Map([[99,"lib.esnext.full.d.ts"],[10,"lib.es2023.full.d.ts"],[9,"lib.es2022.full.d.ts"],[8,"lib.es2021.full.d.ts"],[7,"lib.es2020.full.d.ts"],[6,"lib.es2019.full.d.ts"],[5,"lib.es2018.full.d.ts"],[4,"lib.es2017.full.d.ts"],[3,"lib.es2016.full.d.ts"],[2,"lib.es6.d.ts"]]);function Ns(e){const t=hk(e);switch(t){case 99:case 10:case 9:case 8:case 7:case 6:case 5:case 4:case 3:case 2:return ws.get(t);default:return"lib.d.ts"}}function Ds(e){return e.start+e.length}function Fs(e){return 0===e.length}function Es(e,t){return t>=e.start&&t=e.pos&&t<=e.end}function As(e,t){return t.start>=e.start&&Ds(t)<=Ds(e)}function Is(e,t){return t.pos>=e.start&&t.end<=Ds(e)}function Os(e,t){return t.start>=e.pos&&Ds(t)<=e.end}function Ls(e,t){return void 0!==js(e,t)}function js(e,t){const n=qs(e,t);return n&&0===n.length?void 0:n}function Rs(e,t){return Bs(e.start,e.length,t.start,t.length)}function Ms(e,t,n){return Bs(e.start,e.length,t,n)}function Bs(e,t,n,r){return n<=e+t&&n+r>=e}function Js(e,t){return t<=Ds(e)&&t>=e.start}function zs(e,t){return Ms(t,e.pos,e.end-e.pos)}function qs(e,t){const n=Math.max(e.start,t.start),r=Math.min(Ds(e),Ds(t));return n<=r?Ws(n,r):void 0}function Us(e){e=e.filter((e=>e.length>0)).sort(((e,t)=>e.start!==t.start?e.start-t.start:e.length-t.length));const t=[];let n=0;for(;n=2&&95===e.charCodeAt(0)&&95===e.charCodeAt(1)?"_"+e:e}function fc(e){const t=e;return t.length>=3&&95===t.charCodeAt(0)&&95===t.charCodeAt(1)&&95===t.charCodeAt(2)?t.substr(1):t}function mc(e){return fc(e.escapedText)}function gc(e){const t=Fa(e.escapedText);return t?tt(t,Th):void 0}function hc(e){return e.valueDeclaration&&Hl(e.valueDeclaration)?mc(e.valueDeclaration.name):fc(e.escapedName)}function yc(e){const t=e.parent.parent;if(t){if(lu(t))return vc(t);switch(t.kind){case 243:if(t.declarationList&&t.declarationList.declarations[0])return vc(t.declarationList.declarations[0]);break;case 244:let e=t.expression;switch(226===e.kind&&64===e.operatorToken.kind&&(e=e.left),e.kind){case 211:return e.name;case 212:const t=e.argumentExpression;if(zN(t))return t}break;case 217:return vc(t.expression);case 256:if(lu(t.statement)||U_(t.statement))return vc(t.statement)}}}function vc(e){const t=Tc(e);return t&&zN(t)?t:void 0}function bc(e,t){return!(!kc(e)||!zN(e.name)||mc(e.name)!==mc(t))||!(!wF(e)||!$(e.declarationList.declarations,(e=>bc(e,t))))}function xc(e){return e.name||yc(e)}function kc(e){return!!e.name}function Sc(e){switch(e.kind){case 80:return e;case 348:case 341:{const{name:t}=e;if(166===t.kind)return t.right;break}case 213:case 226:{const t=e;switch(eg(t)){case 1:case 4:case 5:case 3:return cg(t.left);case 7:case 8:case 9:return t.arguments[1];default:return}}case 346:return xc(e);case 340:return yc(e);case 277:{const{expression:t}=e;return zN(t)?t:void 0}case 212:const t=e;if(og(t))return t.argumentExpression}return e.name}function Tc(e){if(void 0!==e)return Sc(e)||(eF(e)||tF(e)||pF(e)?Cc(e):void 0)}function Cc(e){if(e.parent){if(ME(e.parent)||VD(e.parent))return e.parent.name;if(cF(e.parent)&&e===e.parent.right){if(zN(e.parent.left))return e.parent.left;if(kx(e.parent.left))return cg(e.parent.left)}else if(VF(e.parent)&&zN(e.parent.name))return e.parent.name}}function wc(e){if(Ov(e))return N(e.modifiers,aD)}function Nc(e){if(wv(e,98303))return N(e.modifiers,Yl)}function Dc(e,t){if(e.name){if(zN(e.name)){const n=e.name.escapedText;return rl(e.parent,t).filter((e=>bP(e)&&zN(e.name)&&e.name.escapedText===n))}{const n=e.parent.parameters.indexOf(e);un.assert(n>-1,"Parameters should always be in their parents' parameter list");const r=rl(e.parent,t).filter(bP);if(nTP(e)&&e.typeParameters.some((e=>e.name.escapedText===n))))}function Ac(e){return Pc(e,!1)}function Ic(e){return Pc(e,!0)}function Oc(e){return!!ol(e,bP)}function Lc(e){return ol(e,sP)}function jc(e){return al(e,DP)}function Rc(e){return ol(e,lP)}function Mc(e){return ol(e,uP)}function Bc(e){return ol(e,uP,!0)}function Jc(e){return ol(e,dP)}function zc(e){return ol(e,dP,!0)}function qc(e){return ol(e,pP)}function Uc(e){return ol(e,pP,!0)}function Vc(e){return ol(e,fP)}function Wc(e){return ol(e,fP,!0)}function $c(e){return ol(e,mP,!0)}function Hc(e){return ol(e,hP)}function Kc(e){return ol(e,hP,!0)}function Gc(e){return ol(e,vP)}function Xc(e){return ol(e,kP)}function Qc(e){return ol(e,xP)}function Yc(e){return ol(e,TP)}function Zc(e){return ol(e,FP)}function el(e){const t=ol(e,SP);if(t&&t.typeExpression&&t.typeExpression.type)return t}function tl(e){let t=ol(e,SP);return!t&&oD(e)&&(t=b(Fc(e),(e=>!!e.typeExpression))),t&&t.typeExpression&&t.typeExpression.type}function nl(e){const t=Qc(e);if(t&&t.typeExpression)return t.typeExpression.type;const n=el(e);if(n&&n.typeExpression){const e=n.typeExpression.type;if(SD(e)){const t=b(e.members,mD);return t&&t.type}if(bD(e)||tP(e))return e.type}}function rl(e,t){var n;if(!Og(e))return l;let r=null==(n=e.jsDoc)?void 0:n.jsDocCache;if(void 0===r||t){const n=Lg(e,t);un.assert(n.length<2||n[0]!==n[1]),r=O(n,(e=>iP(e)?e.tags:e)),t||(e.jsDoc??(e.jsDoc=[]),e.jsDoc.jsDocCache=r)}return r}function il(e){return rl(e,!1)}function ol(e,t,n){return b(rl(e,n),t)}function al(e,t){return il(e).filter(t)}function sl(e,t){return il(e).filter((e=>e.kind===t))}function cl(e){return"string"==typeof e?e:null==e?void 0:e.map((e=>{return 321===e.kind?e.text:`{@${324===(t=e).kind?"link":325===t.kind?"linkcode":"linkplain"} ${t.name?Lp(t.name):""}${t.name&&(""===t.text||t.text.startsWith("://"))?"":" "}${t.text}}`;var t})).join("")}function ll(e){if(aP(e)){if(gP(e.parent)){const t=Vg(e.parent);if(t&&u(t.tags))return O(t.tags,(e=>TP(e)?e.typeParameters:void 0))}return l}if(Ng(e))return un.assert(320===e.parent.kind),O(e.parent.tags,(e=>TP(e)?e.typeParameters:void 0));if(e.typeParameters)return e.typeParameters;if(wA(e)&&e.typeParameters)return e.typeParameters;if(Fm(e)){const t=gv(e);if(t.length)return t;const n=tl(e);if(n&&bD(n)&&n.typeParameters)return n.typeParameters}return l}function _l(e){return e.constraint?e.constraint:TP(e.parent)&&e===e.parent.typeParameters[0]?e.parent.constraint:void 0}function ul(e){return 80===e.kind||81===e.kind}function dl(e){return 178===e.kind||177===e.kind}function pl(e){return HD(e)&&!!(64&e.flags)}function fl(e){return KD(e)&&!!(64&e.flags)}function ml(e){return GD(e)&&!!(64&e.flags)}function gl(e){const t=e.kind;return!!(64&e.flags)&&(211===t||212===t||213===t||235===t)}function hl(e){return gl(e)&&!yF(e)&&!!e.questionDotToken}function yl(e){return hl(e.parent)&&e.parent.expression===e}function vl(e){return!gl(e.parent)||hl(e.parent)||e!==e.parent.expression}function bl(e){return 226===e.kind&&61===e.operatorToken.kind}function xl(e){return vD(e)&&zN(e.typeName)&&"const"===e.typeName.escapedText&&!e.typeArguments}function kl(e){return cA(e,8)}function Sl(e){return yF(e)&&!!(64&e.flags)}function Tl(e){return 252===e.kind||251===e.kind}function Cl(e){return 280===e.kind||279===e.kind}function wl(e){return 348===e.kind||341===e.kind}function Nl(e){return e>=166}function Dl(e){return e>=0&&e<=165}function Fl(e){return Dl(e.kind)}function El(e){return De(e,"pos")&&De(e,"end")}function Pl(e){return 9<=e&&e<=15}function Al(e){return Pl(e.kind)}function Il(e){switch(e.kind){case 210:case 209:case 14:case 218:case 231:return!0}return!1}function Ol(e){return 15<=e&&e<=18}function Ll(e){return Ol(e.kind)}function jl(e){const t=e.kind;return 17===t||18===t}function Rl(e){return dE(e)||gE(e)}function Ml(e){switch(e.kind){case 276:return e.isTypeOnly||e.parent.parent.isTypeOnly;case 274:return e.parent.isTypeOnly;case 273:case 271:return e.isTypeOnly}return!1}function Bl(e){switch(e.kind){case 281:return e.isTypeOnly||e.parent.parent.isTypeOnly;case 278:return e.isTypeOnly&&!!e.moduleSpecifier&&!e.exportClause;case 280:return e.parent.isTypeOnly}return!1}function Jl(e){return Ml(e)||Bl(e)}function zl(e){return void 0!==_c(e,Jl)}function ql(e){return 11===e.kind||Ol(e.kind)}function Ul(e){return TN(e)||zN(e)}function Vl(e){var t;return zN(e)&&void 0!==(null==(t=e.emitNode)?void 0:t.autoGenerate)}function Wl(e){var t;return qN(e)&&void 0!==(null==(t=e.emitNode)?void 0:t.autoGenerate)}function $l(e){const t=e.emitNode.autoGenerate.flags;return!!(32&t)&&!!(16&t)&&!!(8&t)}function Hl(e){return(cD(e)||f_(e))&&qN(e.name)}function Kl(e){return HD(e)&&qN(e.name)}function Gl(e){switch(e){case 128:case 129:case 134:case 87:case 138:case 90:case 95:case 103:case 125:case 123:case 124:case 148:case 126:case 147:case 164:return!0}return!1}function Xl(e){return!!(31&$v(e))}function Ql(e){return Xl(e)||126===e||164===e||129===e}function Yl(e){return Gl(e.kind)}function Zl(e){const t=e.kind;return 166===t||80===t}function e_(e){const t=e.kind;return 80===t||81===t||11===t||9===t||167===t}function t_(e){const t=e.kind;return 80===t||206===t||207===t}function n_(e){return!!e&&s_(e.kind)}function r_(e){return!!e&&(s_(e.kind)||uD(e))}function i_(e){return e&&a_(e.kind)}function o_(e){return 112===e.kind||97===e.kind}function a_(e){switch(e){case 262:case 174:case 176:case 177:case 178:case 218:case 219:return!0;default:return!1}}function s_(e){switch(e){case 173:case 179:case 323:case 180:case 181:case 184:case 317:case 185:return!0;default:return a_(e)}}function c_(e){return qE(e)||YF(e)||CF(e)&&n_(e.parent)}function l_(e){const t=e.kind;return 176===t||172===t||174===t||177===t||178===t||181===t||175===t||240===t}function __(e){return e&&(263===e.kind||231===e.kind)}function u_(e){return e&&(177===e.kind||178===e.kind)}function d_(e){return cD(e)&&Av(e)}function p_(e){return Fm(e)&&sC(e)?!(ig(e)&&_b(e.expression)||ag(e,!0)):e.parent&&__(e.parent)&&cD(e)&&!Av(e)}function f_(e){switch(e.kind){case 174:case 177:case 178:return!0;default:return!1}}function m_(e){return Yl(e)||aD(e)}function g_(e){const t=e.kind;return 180===t||179===t||171===t||173===t||181===t||177===t||178===t||354===t}function h_(e){return g_(e)||l_(e)}function y_(e){const t=e.kind;return 303===t||304===t||305===t||174===t||177===t||178===t}function v_(e){return xx(e.kind)}function b_(e){switch(e.kind){case 184:case 185:return!0}return!1}function x_(e){if(e){const t=e.kind;return 207===t||206===t}return!1}function k_(e){const t=e.kind;return 209===t||210===t}function S_(e){const t=e.kind;return 208===t||232===t}function T_(e){switch(e.kind){case 260:case 169:case 208:return!0}return!1}function C_(e){return VF(e)||oD(e)||D_(e)||E_(e)}function w_(e){return N_(e)||F_(e)}function N_(e){switch(e.kind){case 206:case 210:return!0}return!1}function D_(e){switch(e.kind){case 208:case 303:case 304:case 305:return!0}return!1}function F_(e){switch(e.kind){case 207:case 209:return!0}return!1}function E_(e){switch(e.kind){case 208:case 232:case 230:case 209:case 210:case 80:case 211:case 212:return!0}return nb(e,!0)}function P_(e){const t=e.kind;return 211===t||166===t||205===t}function A_(e){const t=e.kind;return 211===t||166===t}function I_(e){return O_(e)||jT(e)}function O_(e){switch(e.kind){case 213:case 214:case 215:case 170:case 286:case 285:case 289:return!0;case 226:return 104===e.operatorToken.kind;default:return!1}}function L_(e){return 213===e.kind||214===e.kind}function j_(e){const t=e.kind;return 228===t||15===t}function R_(e){return M_(kl(e).kind)}function M_(e){switch(e){case 211:case 212:case 214:case 213:case 284:case 285:case 288:case 215:case 209:case 217:case 210:case 231:case 218:case 80:case 81:case 14:case 9:case 10:case 11:case 15:case 228:case 97:case 106:case 110:case 112:case 108:case 235:case 233:case 236:case 102:case 282:return!0;default:return!1}}function B_(e){return J_(kl(e).kind)}function J_(e){switch(e){case 224:case 225:case 220:case 221:case 222:case 223:case 216:return!0;default:return M_(e)}}function z_(e){switch(e.kind){case 225:return!0;case 224:return 46===e.operator||47===e.operator;default:return!1}}function q_(e){switch(e.kind){case 106:case 112:case 97:case 224:return!0;default:return Al(e)}}function U_(e){return function(e){switch(e){case 227:case 229:case 219:case 226:case 230:case 234:case 232:case 356:case 355:case 238:return!0;default:return J_(e)}}(kl(e).kind)}function V_(e){const t=e.kind;return 216===t||234===t}function W_(e,t){switch(e.kind){case 248:case 249:case 250:case 246:case 247:return!0;case 256:return t&&W_(e.statement,t)}return!1}function $_(e){return pE(e)||fE(e)}function H_(e){return $(e,$_)}function K_(e){return!(wp(e)||pE(e)||wv(e,32)||ap(e))}function G_(e){return wp(e)||pE(e)||wv(e,32)}function X_(e){return 249===e.kind||250===e.kind}function Q_(e){return CF(e)||U_(e)}function Y_(e){return CF(e)}function Z_(e){return WF(e)||U_(e)}function eu(e){const t=e.kind;return 268===t||267===t||80===t}function tu(e){const t=e.kind;return 268===t||267===t}function nu(e){const t=e.kind;return 80===t||267===t}function ru(e){const t=e.kind;return 275===t||274===t}function iu(e){return 267===e.kind||266===e.kind}function ou(e){switch(e.kind){case 219:case 226:case 208:case 213:case 179:case 263:case 231:case 175:case 176:case 185:case 180:case 212:case 266:case 306:case 277:case 278:case 281:case 262:case 218:case 184:case 177:case 80:case 273:case 271:case 276:case 181:case 264:case 338:case 340:case 317:case 341:case 348:case 323:case 346:case 322:case 291:case 292:case 293:case 200:case 174:case 173:case 267:case 202:case 280:case 270:case 274:case 214:case 15:case 9:case 210:case 169:case 211:case 303:case 172:case 171:case 178:case 304:case 307:case 305:case 11:case 265:case 187:case 168:case 260:return!0;default:return!1}}function au(e){switch(e.kind){case 219:case 241:case 179:case 269:case 299:case 175:case 194:case 176:case 185:case 180:case 248:case 249:case 250:case 262:case 218:case 184:case 177:case 181:case 338:case 340:case 317:case 323:case 346:case 200:case 174:case 173:case 267:case 178:case 307:case 265:return!0;default:return!1}}function su(e){return 262===e||282===e||263===e||264===e||265===e||266===e||267===e||272===e||271===e||278===e||277===e||270===e}function cu(e){return 252===e||251===e||259===e||246===e||244===e||242===e||249===e||250===e||248===e||245===e||256===e||253===e||255===e||257===e||258===e||243===e||247===e||254===e||353===e}function lu(e){return 168===e.kind?e.parent&&345!==e.parent.kind||Fm(e):219===(t=e.kind)||208===t||263===t||231===t||175===t||176===t||266===t||306===t||281===t||262===t||218===t||177===t||273===t||271===t||276===t||264===t||291===t||174===t||173===t||267===t||270===t||274===t||280===t||169===t||303===t||172===t||171===t||178===t||304===t||265===t||168===t||260===t||346===t||338===t||348===t||202===t;var t}function _u(e){return su(e.kind)}function uu(e){return cu(e.kind)}function du(e){const t=e.kind;return cu(t)||su(t)||function(e){return 241===e.kind&&((void 0===e.parent||258!==e.parent.kind&&299!==e.parent.kind)&&!Rf(e))}(e)}function pu(e){const t=e.kind;return cu(t)||su(t)||241===t}function fu(e){const t=e.kind;return 283===t||166===t||80===t}function mu(e){const t=e.kind;return 110===t||80===t||211===t||295===t}function gu(e){const t=e.kind;return 284===t||294===t||285===t||12===t||288===t}function hu(e){const t=e.kind;return 291===t||293===t}function yu(e){const t=e.kind;return 11===t||294===t}function vu(e){const t=e.kind;return 286===t||285===t}function bu(e){const t=e.kind;return 286===t||285===t||289===t}function xu(e){const t=e.kind;return 296===t||297===t}function ku(e){return e.kind>=309&&e.kind<=351}function Su(e){return 320===e.kind||319===e.kind||321===e.kind||ju(e)||Tu(e)||oP(e)||aP(e)}function Tu(e){return e.kind>=327&&e.kind<=351}function Cu(e){return 178===e.kind}function wu(e){return 177===e.kind}function Nu(e){if(!Og(e))return!1;const{jsDoc:t}=e;return!!t&&t.length>0}function Du(e){return!!e.type}function Fu(e){return!!e.initializer}function Eu(e){switch(e.kind){case 260:case 169:case 208:case 172:case 303:case 306:return!0;default:return!1}}function Pu(e){return 291===e.kind||293===e.kind||y_(e)}function Au(e){return 183===e.kind||233===e.kind}var Iu=1073741823;function Ou(e){let t=Iu;for(const n of e){if(!n.length)continue;let e=0;for(;e0?n.parent.parameters[r-1]:void 0,o=t.text,a=i?K(_s(o,Xa(o,i.end+1,!1,!0)),ls(o,e.pos)):_s(o,Xa(o,e.pos,!1,!0));return $(a)&&Bu(ve(a),t)}return!!d(n&&gf(n,t),(e=>Bu(e,t)))}var zu=[],qu="tslib",Uu=160,Vu=1e6;function Wu(e,t){const n=e.declarations;if(n)for(const e of n)if(e.kind===t)return e}function $u(e,t){return N(e.declarations||l,(e=>e.kind===t))}function Hu(e){const t=new Map;if(e)for(const n of e)t.set(n.escapedName,n);return t}function Ku(e){return!!(33554432&e.flags)}function Gu(e){return!!(1536&e.flags)&&34===e.escapedName.charCodeAt(0)}var Xu=function(){var e="";const t=t=>e+=t;return{getText:()=>e,write:t,rawWrite:t,writeKeyword:t,writeOperator:t,writePunctuation:t,writeSpace:t,writeStringLiteral:t,writeLiteral:t,writeParameter:t,writeProperty:t,writeSymbol:(e,n)=>t(e),writeTrailingSemicolon:t,writeComment:t,getTextPos:()=>e.length,getLine:()=>0,getColumn:()=>0,getIndent:()=>0,isAtStartOfLine:()=>!1,hasTrailingComment:()=>!1,hasTrailingWhitespace:()=>!!e.length&&za(e.charCodeAt(e.length-1)),writeLine:()=>e+=" ",increaseIndent:rt,decreaseIndent:rt,clear:()=>e=""}}();function Qu(e,t){return e.configFilePath!==t.configFilePath||function(e,t){return Zu(e,t,vO)}(e,t)}function Yu(e,t){return Zu(e,t,xO)}function Zu(e,t,n){return e!==t&&n.some((n=>!dT(Vk(e,n),Vk(t,n))))}function ed(e,t){for(;;){const n=t(e);if("quit"===n)return;if(void 0!==n)return n;if(qE(e))return;e=e.parent}}function td(e,t){const n=e.entries();for(const[e,r]of n){const n=t(r,e);if(n)return n}}function nd(e,t){const n=e.keys();for(const e of n){const n=t(e);if(n)return n}}function rd(e,t){e.forEach(((e,n)=>{t.set(n,e)}))}function id(e){const t=Xu.getText();try{return e(Xu),Xu.getText()}finally{Xu.clear(),Xu.writeKeyword(t)}}function od(e){return e.end-e.pos}function ad(e,t){return e.path===t.path&&!e.prepend==!t.prepend&&!e.circular==!t.circular}function sd(e,t){return e===t||e.resolvedModule===t.resolvedModule||!!e.resolvedModule&&!!t.resolvedModule&&e.resolvedModule.isExternalLibraryImport===t.resolvedModule.isExternalLibraryImport&&e.resolvedModule.extension===t.resolvedModule.extension&&e.resolvedModule.resolvedFileName===t.resolvedModule.resolvedFileName&&e.resolvedModule.originalPath===t.resolvedModule.originalPath&&((n=e.resolvedModule.packageId)===(r=t.resolvedModule.packageId)||!!n&&!!r&&n.name===r.name&&n.subModuleName===r.subModuleName&&n.version===r.version&&n.peerDependencies===r.peerDependencies)&&e.alternateResult===t.alternateResult;var n,r}function cd(e){return e.resolvedModule}function ld(e){return e.resolvedTypeReferenceDirective}function _d(e,t,n,r,i){var o;const a=null==(o=t.getResolvedModule(e,n,r))?void 0:o.alternateResult,s=a&&(2===vk(t.getCompilerOptions())?[la.There_are_types_at_0_but_this_result_could_not_be_resolved_under_your_current_moduleResolution_setting_Consider_updating_to_node16_nodenext_or_bundler,[a]]:[la.There_are_types_at_0_but_this_result_could_not_be_resolved_when_respecting_package_json_exports_The_1_library_may_need_to_update_its_package_json_or_typings,[a,a.includes(PR+"@types/")?`@types/${fM(i)}`:i]]),c=s?Yx(void 0,s[0],...s[1]):t.typesPackageExists(i)?Yx(void 0,la.If_the_0_package_actually_exposes_this_module_consider_sending_a_pull_request_to_amend_https_Colon_Slash_Slashgithub_com_SlashDefinitelyTyped_SlashDefinitelyTyped_Slashtree_Slashmaster_Slashtypes_Slash_1,i,fM(i)):t.packageBundlesTypes(i)?Yx(void 0,la.If_the_0_package_actually_exposes_this_module_try_adding_a_new_declaration_d_ts_file_containing_declare_module_1,i,n):Yx(void 0,la.Try_npm_i_save_dev_types_Slash_1_if_it_exists_or_add_a_new_declaration_d_ts_file_containing_declare_module_0,n,fM(i));return c&&(c.repopulateInfo=()=>({moduleReference:n,mode:r,packageName:i===n?void 0:i})),c}function ud(e){const t=ZS(e.fileName),n=e.packageJsonScope,r=".ts"===t?".mts":".js"===t?".mjs":void 0,i=n&&!n.contents.packageJsonContent.type?r?Yx(void 0,la.To_convert_this_file_to_an_ECMAScript_module_change_its_file_extension_to_0_or_add_the_field_type_Colon_module_to_1,r,jo(n.packageDirectory,"package.json")):Yx(void 0,la.To_convert_this_file_to_an_ECMAScript_module_add_the_field_type_Colon_module_to_0,jo(n.packageDirectory,"package.json")):r?Yx(void 0,la.To_convert_this_file_to_an_ECMAScript_module_change_its_file_extension_to_0_or_create_a_local_package_json_file_with_type_Colon_module,r):Yx(void 0,la.To_convert_this_file_to_an_ECMAScript_module_create_a_local_package_json_file_with_type_Colon_module);return i.repopulateInfo=()=>!0,i}function dd({name:e,subModuleName:t}){return t?`${e}/${t}`:e}function pd(e){return`${dd(e)}@${e.version}${e.peerDependencies??""}`}function fd(e,t){return e===t||e.resolvedTypeReferenceDirective===t.resolvedTypeReferenceDirective||!!e.resolvedTypeReferenceDirective&&!!t.resolvedTypeReferenceDirective&&e.resolvedTypeReferenceDirective.resolvedFileName===t.resolvedTypeReferenceDirective.resolvedFileName&&!!e.resolvedTypeReferenceDirective.primary==!!t.resolvedTypeReferenceDirective.primary&&e.resolvedTypeReferenceDirective.originalPath===t.resolvedTypeReferenceDirective.originalPath}function md(e,t,n,r){un.assert(e.length===t.length);for(let i=0;i=0),ja(t)[e]}function kd(e){const t=hd(e),n=Ja(t,e.pos);return`${t.fileName}(${n.line+1},${n.character+1})`}function Sd(e,t){un.assert(e>=0);const n=ja(t),r=e,i=t.text;if(r+1===n.length)return i.length-1;{const e=n[r];let t=n[r+1]-1;for(un.assert(Ua(i.charCodeAt(t)));e<=t&&Ua(i.charCodeAt(t));)t--;return t}}function Td(e,t,n){return!(n&&n(t)||e.identifiers.has(t))}function Cd(e){return void 0===e||e.pos===e.end&&e.pos>=0&&1!==e.kind}function wd(e){return!Cd(e)}function Nd(e,t){return iD(e)?t===e.expression:uD(e)?t===e.modifiers:sD(e)?t===e.initializer:cD(e)?t===e.questionToken&&d_(e):ME(e)?t===e.modifiers||t===e.questionToken||t===e.exclamationToken||Dd(e.modifiers,t,m_):BE(e)?t===e.equalsToken||t===e.modifiers||t===e.questionToken||t===e.exclamationToken||Dd(e.modifiers,t,m_):_D(e)?t===e.exclamationToken:dD(e)?t===e.typeParameters||t===e.type||Dd(e.typeParameters,t,iD):pD(e)?t===e.typeParameters||Dd(e.typeParameters,t,iD):fD(e)?t===e.typeParameters||t===e.type||Dd(e.typeParameters,t,iD):!!eE(e)&&(t===e.modifiers||Dd(e.modifiers,t,m_))}function Dd(e,t,n){return!(!e||Qe(t)||!n(t))&&T(e,t)}function Fd(e,t,n){if(void 0===t||0===t.length)return e;let r=0;for(;r[`${Ja(e,t.range.end).line}`,t]))),r=new Map;return{getUnusedExpectations:function(){return Oe(n.entries()).filter((([e,t])=>0===t.type&&!r.get(e))).map((([e,t])=>t))},markUsed:function(e){return!!n.has(`${e}`)&&(r.set(`${e}`,!0),!0)}}}function Bd(e,t,n){if(Cd(e))return e.pos;if(ku(e)||12===e.kind)return Xa((t??hd(e)).text,e.pos,!1,!0);if(n&&Nu(e))return Bd(e.jsDoc[0],t);if(352===e.kind){t??(t=hd(e));const r=fe(LP(e,t));if(r)return Bd(r,t,n)}return Xa((t??hd(e)).text,e.pos,!1,!1,Am(e))}function Jd(e,t){const n=!Cd(e)&&rI(e)?x(e.modifiers,aD):void 0;return n?Xa((t||hd(e)).text,n.end):Bd(e,t)}function zd(e,t){const n=!Cd(e)&&rI(e)&&e.modifiers?ve(e.modifiers):void 0;return n?Xa((t||hd(e)).text,n.end):Bd(e,t)}function qd(e,t,n=!1){return Hd(e.text,t,n)}function Ud(e){return!!(fE(e)&&e.exportClause&&_E(e.exportClause)&&$d(e.exportClause.name))}function Vd(e){return 11===e.kind?e.text:fc(e.escapedText)}function Wd(e){return 11===e.kind?pc(e.text):e.escapedText}function $d(e){return"default"===(11===e.kind?e.text:e.escapedText)}function Hd(e,t,n=!1){if(Cd(t))return"";let r=e.substring(n?t.pos:Xa(e,t.pos),t.end);return function(e){return!!_c(e,VE)}(t)&&(r=r.split(/\r\n|\n|\r/).map((e=>e.replace(/^\s*\*/,"").trimStart())).join("\n")),r}function Kd(e,t=!1){return qd(hd(e),e,t)}function Gd(e){return e.pos}function Xd(e,t){return Te(e,t,Gd,vt)}function Qd(e){const t=e.emitNode;return t&&t.flags||0}function Yd(e){const t=e.emitNode;return t&&t.internalFlags||0}var Zd=dt((()=>new Map(Object.entries({Array:new Map(Object.entries({es2015:["find","findIndex","fill","copyWithin","entries","keys","values"],es2016:["includes"],es2019:["flat","flatMap"],es2022:["at"],es2023:["findLastIndex","findLast","toReversed","toSorted","toSpliced","with"]})),Iterator:new Map(Object.entries({es2015:l})),AsyncIterator:new Map(Object.entries({es2015:l})),ArrayBuffer:new Map(Object.entries({es2024:["maxByteLength","resizable","resize","detached","transfer","transferToFixedLength"]})),Atomics:new Map(Object.entries({es2017:["add","and","compareExchange","exchange","isLockFree","load","or","store","sub","wait","notify","xor"],es2024:["waitAsync"]})),SharedArrayBuffer:new Map(Object.entries({es2017:["byteLength","slice"],es2024:["growable","maxByteLength","grow"]})),AsyncIterable:new Map(Object.entries({es2018:l})),AsyncIterableIterator:new Map(Object.entries({es2018:l})),AsyncGenerator:new Map(Object.entries({es2018:l})),AsyncGeneratorFunction:new Map(Object.entries({es2018:l})),RegExp:new Map(Object.entries({es2015:["flags","sticky","unicode"],es2018:["dotAll"],es2024:["unicodeSets"]})),Reflect:new Map(Object.entries({es2015:["apply","construct","defineProperty","deleteProperty","get","getOwnPropertyDescriptor","getPrototypeOf","has","isExtensible","ownKeys","preventExtensions","set","setPrototypeOf"]})),ArrayConstructor:new Map(Object.entries({es2015:["from","of"],esnext:["fromAsync"]})),ObjectConstructor:new Map(Object.entries({es2015:["assign","getOwnPropertySymbols","keys","is","setPrototypeOf"],es2017:["values","entries","getOwnPropertyDescriptors"],es2019:["fromEntries"],es2022:["hasOwn"],es2024:["groupBy"]})),NumberConstructor:new Map(Object.entries({es2015:["isFinite","isInteger","isNaN","isSafeInteger","parseFloat","parseInt"]})),Math:new Map(Object.entries({es2015:["clz32","imul","sign","log10","log2","log1p","expm1","cosh","sinh","tanh","acosh","asinh","atanh","hypot","trunc","fround","cbrt"]})),Map:new Map(Object.entries({es2015:["entries","keys","values"]})),MapConstructor:new Map(Object.entries({es2024:["groupBy"]})),Set:new Map(Object.entries({es2015:["entries","keys","values"],esnext:["union","intersection","difference","symmetricDifference","isSubsetOf","isSupersetOf","isDisjointFrom"]})),PromiseConstructor:new Map(Object.entries({es2015:["all","race","reject","resolve"],es2020:["allSettled"],es2021:["any"],es2024:["withResolvers"]})),Symbol:new Map(Object.entries({es2015:["for","keyFor"],es2019:["description"]})),WeakMap:new Map(Object.entries({es2015:["entries","keys","values"]})),WeakSet:new Map(Object.entries({es2015:["entries","keys","values"]})),String:new Map(Object.entries({es2015:["codePointAt","includes","endsWith","normalize","repeat","startsWith","anchor","big","blink","bold","fixed","fontcolor","fontsize","italics","link","small","strike","sub","sup"],es2017:["padStart","padEnd"],es2019:["trimStart","trimEnd","trimLeft","trimRight"],es2020:["matchAll"],es2021:["replaceAll"],es2022:["at"],es2024:["isWellFormed","toWellFormed"]})),StringConstructor:new Map(Object.entries({es2015:["fromCodePoint","raw"]})),DateTimeFormat:new Map(Object.entries({es2017:["formatToParts"]})),Promise:new Map(Object.entries({es2015:l,es2018:["finally"]})),RegExpMatchArray:new Map(Object.entries({es2018:["groups"]})),RegExpExecArray:new Map(Object.entries({es2018:["groups"]})),Intl:new Map(Object.entries({es2018:["PluralRules"]})),NumberFormat:new Map(Object.entries({es2018:["formatToParts"]})),SymbolConstructor:new Map(Object.entries({es2020:["matchAll"],esnext:["metadata","dispose","asyncDispose"]})),DataView:new Map(Object.entries({es2020:["setBigInt64","setBigUint64","getBigInt64","getBigUint64"]})),BigInt:new Map(Object.entries({es2020:l})),RelativeTimeFormat:new Map(Object.entries({es2020:["format","formatToParts","resolvedOptions"]})),Int8Array:new Map(Object.entries({es2022:["at"],es2023:["findLastIndex","findLast","toReversed","toSorted","toSpliced","with"]})),Uint8Array:new Map(Object.entries({es2022:["at"],es2023:["findLastIndex","findLast","toReversed","toSorted","toSpliced","with"]})),Uint8ClampedArray:new Map(Object.entries({es2022:["at"],es2023:["findLastIndex","findLast","toReversed","toSorted","toSpliced","with"]})),Int16Array:new Map(Object.entries({es2022:["at"],es2023:["findLastIndex","findLast","toReversed","toSorted","toSpliced","with"]})),Uint16Array:new Map(Object.entries({es2022:["at"],es2023:["findLastIndex","findLast","toReversed","toSorted","toSpliced","with"]})),Int32Array:new Map(Object.entries({es2022:["at"],es2023:["findLastIndex","findLast","toReversed","toSorted","toSpliced","with"]})),Uint32Array:new Map(Object.entries({es2022:["at"],es2023:["findLastIndex","findLast","toReversed","toSorted","toSpliced","with"]})),Float32Array:new Map(Object.entries({es2022:["at"],es2023:["findLastIndex","findLast","toReversed","toSorted","toSpliced","with"]})),Float64Array:new Map(Object.entries({es2022:["at"],es2023:["findLastIndex","findLast","toReversed","toSorted","toSpliced","with"]})),BigInt64Array:new Map(Object.entries({es2020:l,es2022:["at"],es2023:["findLastIndex","findLast","toReversed","toSorted","toSpliced","with"]})),BigUint64Array:new Map(Object.entries({es2020:l,es2022:["at"],es2023:["findLastIndex","findLast","toReversed","toSorted","toSpliced","with"]})),Error:new Map(Object.entries({es2022:["cause"]}))})))),ep=(e=>(e[e.None=0]="None",e[e.NeverAsciiEscape=1]="NeverAsciiEscape",e[e.JsxAttributeEscape=2]="JsxAttributeEscape",e[e.TerminateUnterminatedLiterals=4]="TerminateUnterminatedLiterals",e[e.AllowNumericSeparator=8]="AllowNumericSeparator",e))(ep||{});function tp(e,t,n){if(t&&function(e,t){if(Zh(e)||!e.parent||4&t&&e.isUnterminated)return!1;if(kN(e)){if(26656&e.numericLiteralFlags)return!1;if(512&e.numericLiteralFlags)return!!(8&t)}return!SN(e)}(e,n))return qd(t,e);switch(e.kind){case 11:{const t=2&n?Ny:1&n||16777216&Qd(e)?by:ky;return e.singleQuote?"'"+t(e.text,39)+"'":'"'+t(e.text,34)+'"'}case 15:case 16:case 17:case 18:{const t=1&n||16777216&Qd(e)?by:ky,r=e.rawText??uy(t(e.text,96));switch(e.kind){case 15:return"`"+r+"`";case 16:return"`"+r+"${";case 17:return"}"+r+"${";case 18:return"}"+r+"`"}break}case 9:case 10:return e.text;case 14:return 4&n&&e.isUnterminated?e.text+(92===e.text.charCodeAt(e.text.length-1)?" /":"/"):e.text}return un.fail(`Literal kind '${e.kind}' not accounted for.`)}function np(e){return Ze(e)?`"${by(e)}"`:""+e}function rp(e){return Fo(e).replace(/^(\d)/,"_$1").replace(/\W/g,"_")}function ip(e){return!!(7&oc(e))||op(e)}function op(e){const t=Qh(e);return 260===t.kind&&299===t.parent.kind}function ap(e){return QF(e)&&(11===e.name.kind||up(e))}function sp(e){return QF(e)&&11===e.name.kind}function cp(e){return QF(e)&&TN(e.name)}function lp(e){return!!(t=e.valueDeclaration)&&267===t.kind&&!t.body;var t}function _p(e){return 307===e.kind||267===e.kind||r_(e)}function up(e){return!!(2048&e.flags)}function dp(e){return ap(e)&&pp(e)}function pp(e){switch(e.parent.kind){case 307:return MI(e.parent);case 268:return ap(e.parent.parent)&&qE(e.parent.parent.parent)&&!MI(e.parent.parent.parent)}return!1}function fp(e){var t;return null==(t=e.declarations)?void 0:t.find((e=>!(dp(e)||QF(e)&&up(e))))}function mp(e,t){return MI(e)||(1===(n=yk(t))||100===n||199===n)&&!!e.commonJsModuleIndicator;var n}function gp(e,t){switch(e.scriptKind){case 1:case 3:case 2:case 4:break;default:return!1}return!(e.isDeclarationFile||!Mk(t,"alwaysStrict")&&!nA(e.statements)&&!MI(e)&&!xk(t))}function hp(e){return!!(33554432&e.flags)||wv(e,128)}function yp(e,t){switch(e.kind){case 307:case 269:case 299:case 267:case 248:case 249:case 250:case 176:case 174:case 177:case 178:case 262:case 218:case 219:case 172:case 175:return!0;case 241:return!r_(t)}return!1}function vp(e){switch(un.type(e),e.kind){case 338:case 346:case 323:return!0;default:return bp(e)}}function bp(e){switch(un.type(e),e.kind){case 179:case 180:case 173:case 181:case 184:case 185:case 317:case 263:case 231:case 264:case 265:case 345:case 262:case 174:case 176:case 177:case 178:case 218:case 219:return!0;default:return!1}}function xp(e){switch(e.kind){case 272:case 271:return!0;default:return!1}}function kp(e){return xp(e)||jm(e)}function Sp(e){return xp(e)||Bm(e)}function Tp(e){switch(e.kind){case 272:case 271:case 243:case 263:case 262:case 267:case 265:case 264:case 266:return!0;default:return!1}}function Cp(e){return wp(e)||QF(e)||BD(e)||cf(e)}function wp(e){return xp(e)||fE(e)}function Np(e){return _c(e.parent,(e=>!!(1&jM(e))))}function Dp(e){return _c(e.parent,(e=>yp(e,e.parent)))}function Fp(e,t){let n=Dp(e);for(;n;)t(n),n=Dp(n)}function Ep(e){return e&&0!==od(e)?Kd(e):"(Missing)"}function Pp(e){return e.declaration?Ep(e.declaration.parameters[0].name):void 0}function Ap(e){return 167===e.kind&&!Lh(e.expression)}function Ip(e){var t;switch(e.kind){case 80:case 81:return(null==(t=e.emitNode)?void 0:t.autoGenerate)?void 0:e.escapedText;case 11:case 9:case 10:case 15:return pc(e.text);case 167:return Lh(e.expression)?pc(e.expression.text):void 0;case 295:return nC(e);default:return un.assertNever(e)}}function Op(e){return un.checkDefined(Ip(e))}function Lp(e){switch(e.kind){case 110:return"this";case 81:case 80:return 0===od(e)?mc(e):Kd(e);case 166:return Lp(e.left)+"."+Lp(e.right);case 211:return zN(e.name)||qN(e.name)?Lp(e.expression)+"."+Lp(e.name):un.assertNever(e.name);case 311:return Lp(e.left)+"#"+Lp(e.right);case 295:return Lp(e.namespace)+":"+Lp(e.name);default:return un.assertNever(e)}}function jp(e,t,...n){return Mp(hd(e),e,t,...n)}function Rp(e,t,n,...r){const i=Xa(e.text,t.pos);return Kx(e,i,t.end-i,n,...r)}function Mp(e,t,n,...r){const i=Gp(e,t);return Kx(e,i.start,i.length,n,...r)}function Bp(e,t,n,r){const i=Gp(e,t);return qp(e,i.start,i.length,n,r)}function Jp(e,t,n,r){const i=Xa(e.text,t.pos);return qp(e,i,t.end-i,n,r)}function zp(e,t,n){un.assertGreaterThanOrEqual(t,0),un.assertGreaterThanOrEqual(n,0),un.assertLessThanOrEqual(t,e.length),un.assertLessThanOrEqual(t+n,e.length)}function qp(e,t,n,r,i){return zp(e.text,t,n),{file:e,start:t,length:n,code:r.code,category:r.category,messageText:r.next?r:r.messageText,relatedInformation:i,canonicalHead:r.canonicalHead}}function Up(e,t,n){return{file:e,start:0,length:0,code:t.code,category:t.category,messageText:t.next?t:t.messageText,relatedInformation:n}}function Vp(e){return"string"==typeof e.messageText?{code:e.code,category:e.category,messageText:e.messageText,next:e.next}:e.messageText}function Wp(e,t,n){return{file:e,start:t.pos,length:t.end-t.pos,code:n.code,category:n.category,messageText:n.message}}function $p(e,...t){return{code:e.code,messageText:Gx(e,...t)}}function Hp(e,t){const n=ms(e.languageVersion,!0,e.languageVariant,e.text,void 0,t);return n.scan(),Ws(n.getTokenStart(),n.getTokenEnd())}function Kp(e,t){const n=ms(e.languageVersion,!0,e.languageVariant,e.text,void 0,t);return n.scan(),n.getToken()}function Gp(e,t){let n=t;switch(t.kind){case 307:{const t=Xa(e.text,0,!1);return t===e.text.length?Vs(0,0):Hp(e,t)}case 260:case 208:case 263:case 231:case 264:case 267:case 266:case 306:case 262:case 218:case 174:case 177:case 178:case 265:case 172:case 171:case 274:n=t.name;break;case 219:return function(e,t){const n=Xa(e.text,t.pos);if(t.body&&241===t.body.kind){const{line:r}=Ja(e,t.body.pos),{line:i}=Ja(e,t.body.end);if(r0?t.statements[0].pos:t.end);case 253:case 229:return Hp(e,Xa(e.text,t.pos));case 238:return Hp(e,Xa(e.text,t.expression.end));case 350:return Hp(e,Xa(e.text,t.tagName.pos));case 176:{const n=t,r=Xa(e.text,n.pos),i=ms(e.languageVersion,!0,e.languageVariant,e.text,void 0,r);let o=i.scan();for(;137!==o&&1!==o;)o=i.scan();return Ws(r,i.getTokenEnd())}}if(void 0===n)return Hp(e,t.pos);un.assert(!iP(n));const r=Cd(n),i=r||CN(t)?n.pos:Xa(e.text,n.pos);return r?(un.assert(i===n.pos,"This failure could trigger https://github.com/Microsoft/TypeScript/issues/20809"),un.assert(i===n.end,"This failure could trigger https://github.com/Microsoft/TypeScript/issues/20809")):(un.assert(i>=n.pos,"This failure could trigger https://github.com/Microsoft/TypeScript/issues/20809"),un.assert(i<=n.end,"This failure could trigger https://github.com/Microsoft/TypeScript/issues/20809")),Ws(i,n.end)}function Xp(e){return 307===e.kind&&!Qp(e)}function Qp(e){return void 0!==(e.externalModuleIndicator||e.commonJsModuleIndicator)}function Yp(e){return 6===e.scriptKind}function Zp(e){return!!(4096&rc(e))}function ef(e){return!(!(8&rc(e))||Ys(e,e.parent))}function tf(e){return 6==(7&oc(e))}function nf(e){return 4==(7&oc(e))}function rf(e){return 2==(7&oc(e))}function of(e){const t=7&oc(e);return 2===t||4===t||6===t}function af(e){return 1==(7&oc(e))}function sf(e){return 213===e.kind&&108===e.expression.kind}function cf(e){return 213===e.kind&&102===e.expression.kind}function lf(e){return vF(e)&&102===e.keywordToken&&"meta"===e.name.escapedText}function _f(e){return BD(e)&&MD(e.argument)&&TN(e.argument.literal)}function uf(e){return 244===e.kind&&11===e.expression.kind}function df(e){return!!(2097152&Qd(e))}function pf(e){return df(e)&&$F(e)}function ff(e){return zN(e.name)&&!e.initializer}function mf(e){return df(e)&&wF(e)&&v(e.declarationList.declarations,ff)}function gf(e,t){return 12!==e.kind?ls(t.text,e.pos):void 0}function hf(e,t){return N(169===e.kind||168===e.kind||218===e.kind||219===e.kind||217===e.kind||260===e.kind||281===e.kind?K(_s(t,e.pos),ls(t,e.pos)):ls(t,e.pos),(n=>n.end<=e.end&&42===t.charCodeAt(n.pos+1)&&42===t.charCodeAt(n.pos+2)&&47!==t.charCodeAt(n.pos+3)))}var yf=/^\/\/\/\s*/,vf=/^\/\/\/\s*/,bf=/^\/\/\/\s*/,xf=/^\/\/\/\s*/,kf=/^\/\/\/\s*/,Sf=/^\/\/\/\s*/;function Tf(e){if(182<=e.kind&&e.kind<=205)return!0;switch(e.kind){case 133:case 159:case 150:case 163:case 154:case 136:case 155:case 151:case 157:case 106:case 146:return!0;case 116:return 222!==e.parent.kind;case 233:return Cf(e);case 168:return 200===e.parent.kind||195===e.parent.kind;case 80:(166===e.parent.kind&&e.parent.right===e||211===e.parent.kind&&e.parent.name===e)&&(e=e.parent),un.assert(80===e.kind||166===e.kind||211===e.kind,"'node' was expected to be a qualified name, identifier or property access in 'isPartOfTypeNode'.");case 166:case 211:case 110:{const{parent:t}=e;if(186===t.kind)return!1;if(205===t.kind)return!t.isTypeOf;if(182<=t.kind&&t.kind<=205)return!0;switch(t.kind){case 233:return Cf(t);case 168:case 345:return e===t.constraint;case 172:case 171:case 169:case 260:case 262:case 218:case 219:case 176:case 174:case 173:case 177:case 178:case 179:case 180:case 181:case 216:return e===t.type;case 213:case 214:case 215:return T(t.typeArguments,e)}}}return!1}function Cf(e){return DP(e.parent)||sP(e.parent)||jE(e.parent)&&!ib(e)}function wf(e,t){return function e(n){switch(n.kind){case 253:return t(n);case 269:case 241:case 245:case 246:case 247:case 248:case 249:case 250:case 254:case 255:case 296:case 297:case 256:case 258:case 299:return PI(n,e)}}(e)}function Nf(e,t){return function e(n){switch(n.kind){case 229:t(n);const r=n.expression;return void(r&&e(r));case 266:case 264:case 267:case 265:return;default:if(n_(n)){if(n.name&&167===n.name.kind)return void e(n.name.expression)}else Tf(n)||PI(n,e)}}(e)}function Df(e){return e&&188===e.kind?e.elementType:e&&183===e.kind?be(e.typeArguments):void 0}function Ff(e){switch(e.kind){case 264:case 263:case 231:case 187:return e.members;case 210:return e.properties}}function Ef(e){if(e)switch(e.kind){case 208:case 306:case 169:case 303:case 172:case 171:case 304:case 260:return!0}return!1}function Pf(e){return 261===e.parent.kind&&243===e.parent.parent.kind}function Af(e){return!!Fm(e)&&($D(e.parent)&&cF(e.parent.parent)&&2===eg(e.parent.parent)||If(e.parent))}function If(e){return!!Fm(e)&&cF(e)&&1===eg(e)}function Of(e){return(VF(e)?rf(e)&&zN(e.name)&&Pf(e):cD(e)?Iv(e)&&Dv(e):sD(e)&&Iv(e))||If(e)}function Lf(e){switch(e.kind){case 174:case 173:case 176:case 177:case 178:case 262:case 218:return!0}return!1}function jf(e,t){for(;;){if(t&&t(e),256!==e.statement.kind)return e.statement;e=e.statement}}function Rf(e){return e&&241===e.kind&&n_(e.parent)}function Mf(e){return e&&174===e.kind&&210===e.parent.kind}function Bf(e){return!(174!==e.kind&&177!==e.kind&&178!==e.kind||210!==e.parent.kind&&231!==e.parent.kind)}function Jf(e){return e&&1===e.kind}function zf(e){return e&&0===e.kind}function qf(e,t,n,r){return d(null==e?void 0:e.properties,(e=>{if(!ME(e))return;const i=Ip(e.name);return t===i||r&&r===i?n(e):void 0}))}function Uf(e,t,n){return qf(e,t,(e=>WD(e.initializer)?b(e.initializer.elements,(e=>TN(e)&&e.text===n)):void 0))}function Vf(e){if(e&&e.statements.length)return tt(e.statements[0].expression,$D)}function Wf(e,t,n){return $f(e,t,(e=>WD(e.initializer)?b(e.initializer.elements,(e=>TN(e)&&e.text===n)):void 0))}function $f(e,t,n){return qf(Vf(e),t,n)}function Hf(e){return _c(e.parent,n_)}function Kf(e){return _c(e.parent,i_)}function Gf(e){return _c(e.parent,__)}function Xf(e){return _c(e.parent,(e=>__(e)||n_(e)?"quit":uD(e)))}function Qf(e){return _c(e.parent,r_)}function Yf(e){const t=_c(e.parent,(e=>__(e)?"quit":aD(e)));return t&&__(t.parent)?Gf(t.parent):Gf(t??e)}function Zf(e,t,n){for(un.assert(307!==e.kind);;){if(!(e=e.parent))return un.fail();switch(e.kind){case 167:if(n&&__(e.parent.parent))return e;e=e.parent.parent;break;case 170:169===e.parent.kind&&l_(e.parent.parent)?e=e.parent.parent:l_(e.parent)&&(e=e.parent);break;case 219:if(!t)continue;case 262:case 218:case 267:case 175:case 172:case 171:case 174:case 173:case 176:case 177:case 178:case 179:case 180:case 181:case 266:case 307:return e}}}function em(e){switch(e.kind){case 219:case 262:case 218:case 172:return!0;case 241:switch(e.parent.kind){case 176:case 174:case 177:case 178:return!0;default:return!1}default:return!1}}function tm(e){return zN(e)&&(HF(e.parent)||$F(e.parent))&&e.parent.name===e&&(e=e.parent),qE(Zf(e,!0,!1))}function nm(e){const t=Zf(e,!1,!1);if(t)switch(t.kind){case 176:case 262:case 218:return t}}function rm(e,t){for(;;){if(!(e=e.parent))return;switch(e.kind){case 167:e=e.parent;break;case 262:case 218:case 219:if(!t)continue;case 172:case 171:case 174:case 173:case 176:case 177:case 178:case 175:return e;case 170:169===e.parent.kind&&l_(e.parent.parent)?e=e.parent.parent:l_(e.parent)&&(e=e.parent)}}}function im(e){if(218===e.kind||219===e.kind){let t=e,n=e.parent;for(;217===n.kind;)t=n,n=n.parent;if(213===n.kind&&n.expression===t)return n}}function om(e){const t=e.kind;return(211===t||212===t)&&108===e.expression.kind}function am(e){const t=e.kind;return(211===t||212===t)&&110===e.expression.kind}function sm(e){var t;return!!e&&VF(e)&&110===(null==(t=e.initializer)?void 0:t.kind)}function cm(e){return!!e&&(BE(e)||ME(e))&&cF(e.parent.parent)&&64===e.parent.parent.operatorToken.kind&&110===e.parent.parent.right.kind}function lm(e){switch(e.kind){case 183:return e.typeName;case 233:return ob(e.expression)?e.expression:void 0;case 80:case 166:return e}}function _m(e){switch(e.kind){case 215:return e.tag;case 286:case 285:return e.tagName;case 226:return e.right;case 289:return e;default:return e.expression}}function um(e,t,n,r){if(e&&kc(t)&&qN(t.name))return!1;switch(t.kind){case 263:return!0;case 231:return!e;case 172:return void 0!==n&&(e?HF(n):__(n)&&!Ev(t)&&!Pv(t));case 177:case 178:case 174:return void 0!==t.body&&void 0!==n&&(e?HF(n):__(n));case 169:return!!e&&void 0!==n&&void 0!==n.body&&(176===n.kind||174===n.kind||178===n.kind)&&av(n)!==t&&void 0!==r&&263===r.kind}return!1}function dm(e,t,n,r){return Ov(t)&&um(e,t,n,r)}function pm(e,t,n,r){return dm(e,t,n,r)||fm(e,t,n)}function fm(e,t,n){switch(t.kind){case 263:return $(t.members,(r=>pm(e,r,t,n)));case 231:return!e&&$(t.members,(r=>pm(e,r,t,n)));case 174:case 178:case 176:return $(t.parameters,(r=>dm(e,r,t,n)));default:return!1}}function mm(e,t){if(dm(e,t))return!0;const n=rv(t);return!!n&&fm(e,n,t)}function gm(e,t,n){let r;if(u_(t)){const{firstAccessor:e,secondAccessor:i,setAccessor:o}=dv(n.members,t),a=Ov(e)?e:i&&Ov(i)?i:void 0;if(!a||t!==a)return!1;r=null==o?void 0:o.parameters}else _D(t)&&(r=t.parameters);if(dm(e,t,n))return!0;if(r)for(const i of r)if(!sv(i)&&dm(e,i,t,n))return!0;return!1}function hm(e){if(e.textSourceNode){switch(e.textSourceNode.kind){case 11:return hm(e.textSourceNode);case 15:return""===e.text}return!1}return""===e.text}function ym(e){const{parent:t}=e;return(286===t.kind||285===t.kind||287===t.kind)&&t.tagName===e}function vm(e){switch(e.kind){case 108:case 106:case 112:case 97:case 14:case 209:case 210:case 211:case 212:case 213:case 214:case 215:case 234:case 216:case 238:case 235:case 217:case 218:case 231:case 219:case 222:case 220:case 221:case 224:case 225:case 226:case 227:case 230:case 228:case 232:case 284:case 285:case 288:case 229:case 223:case 236:return!0;case 233:return!jE(e.parent)&&!sP(e.parent);case 166:for(;166===e.parent.kind;)e=e.parent;return 186===e.parent.kind||ju(e.parent)||WE(e.parent)||$E(e.parent)||ym(e);case 311:for(;$E(e.parent);)e=e.parent;return 186===e.parent.kind||ju(e.parent)||WE(e.parent)||$E(e.parent)||ym(e);case 81:return cF(e.parent)&&e.parent.left===e&&103===e.parent.operatorToken.kind;case 80:if(186===e.parent.kind||ju(e.parent)||WE(e.parent)||$E(e.parent)||ym(e))return!0;case 9:case 10:case 11:case 15:case 110:return bm(e);default:return!1}}function bm(e){const{parent:t}=e;switch(t.kind){case 260:case 169:case 172:case 171:case 306:case 303:case 208:return t.initializer===e;case 244:case 245:case 246:case 247:case 253:case 254:case 255:case 296:case 257:return t.expression===e;case 248:const n=t;return n.initializer===e&&261!==n.initializer.kind||n.condition===e||n.incrementor===e;case 249:case 250:const r=t;return r.initializer===e&&261!==r.initializer.kind||r.expression===e;case 216:case 234:case 239:case 167:case 238:return e===t.expression;case 170:case 294:case 293:case 305:return!0;case 233:return t.expression===e&&!Tf(t);case 304:return t.objectAssignmentInitializer===e;default:return vm(t)}}function xm(e){for(;166===e.kind||80===e.kind;)e=e.parent;return 186===e.kind}function km(e){return _E(e)&&!!e.parent.moduleSpecifier}function Sm(e){return 271===e.kind&&283===e.moduleReference.kind}function Tm(e){return un.assert(Sm(e)),e.moduleReference.expression}function Cm(e){return jm(e)&&Cx(e.initializer).arguments[0]}function wm(e){return 271===e.kind&&283!==e.moduleReference.kind}function Nm(e){return 307===(null==e?void 0:e.kind)}function Dm(e){return Fm(e)}function Fm(e){return!!e&&!!(524288&e.flags)}function Em(e){return!!e&&!!(134217728&e.flags)}function Pm(e){return!Yp(e)}function Am(e){return!!e&&!!(16777216&e.flags)}function Im(e){return vD(e)&&zN(e.typeName)&&"Object"===e.typeName.escapedText&&e.typeArguments&&2===e.typeArguments.length&&(154===e.typeArguments[0].kind||150===e.typeArguments[0].kind)}function Om(e,t){if(213!==e.kind)return!1;const{expression:n,arguments:r}=e;if(80!==n.kind||"require"!==n.escapedText)return!1;if(1!==r.length)return!1;const i=r[0];return!t||Lu(i)}function Lm(e){return Mm(e,!1)}function jm(e){return Mm(e,!0)}function Rm(e){return VD(e)&&jm(e.parent.parent)}function Mm(e,t){return VF(e)&&!!e.initializer&&Om(t?Cx(e.initializer):e.initializer,!0)}function Bm(e){return wF(e)&&e.declarationList.declarations.length>0&&v(e.declarationList.declarations,(e=>Lm(e)))}function Jm(e){return 39===e||34===e}function zm(e,t){return 34===qd(t,e).charCodeAt(0)}function qm(e){return cF(e)||kx(e)||zN(e)||GD(e)}function Um(e){return Fm(e)&&e.initializer&&cF(e.initializer)&&(57===e.initializer.operatorToken.kind||61===e.initializer.operatorToken.kind)&&e.name&&ob(e.name)&&Gm(e.name,e.initializer.left)?e.initializer.right:e.initializer}function Vm(e){const t=Um(e);return t&&$m(t,_b(e.name))}function Wm(e){if(e&&e.parent&&cF(e.parent)&&64===e.parent.operatorToken.kind){const t=_b(e.parent.left);return $m(e.parent.right,t)||function(e,t,n){const r=cF(t)&&(57===t.operatorToken.kind||61===t.operatorToken.kind)&&$m(t.right,n);if(r&&Gm(e,t.left))return r}(e.parent.left,e.parent.right,t)}if(e&&GD(e)&&tg(e)){const t=function(e,t){return d(e.properties,(e=>ME(e)&&zN(e.name)&&"value"===e.name.escapedText&&e.initializer&&$m(e.initializer,t)))}(e.arguments[2],"prototype"===e.arguments[1].text);if(t)return t}}function $m(e,t){if(GD(e)){const t=oh(e.expression);return 218===t.kind||219===t.kind?e:void 0}return 218===e.kind||231===e.kind||219===e.kind||$D(e)&&(0===e.properties.length||t)?e:void 0}function Hm(e){const t=VF(e.parent)?e.parent.name:cF(e.parent)&&64===e.parent.operatorToken.kind?e.parent.left:void 0;return t&&$m(e.right,_b(t))&&ob(t)&&Gm(t,e.left)}function Km(e){if(cF(e.parent)){const t=57!==e.parent.operatorToken.kind&&61!==e.parent.operatorToken.kind||!cF(e.parent.parent)?e.parent:e.parent.parent;if(64===t.operatorToken.kind&&zN(t.left))return t.left}else if(VF(e.parent))return e.parent.name}function Gm(e,t){return Jh(e)&&Jh(t)?zh(e)===zh(t):ul(e)&&ng(t)&&(110===t.expression.kind||zN(t.expression)&&("window"===t.expression.escapedText||"self"===t.expression.escapedText||"global"===t.expression.escapedText))?Gm(e,sg(t)):!(!ng(e)||!ng(t))&&lg(e)===lg(t)&&Gm(e.expression,t.expression)}function Xm(e){for(;nb(e,!0);)e=e.right;return e}function Qm(e){return zN(e)&&"exports"===e.escapedText}function Ym(e){return zN(e)&&"module"===e.escapedText}function Zm(e){return(HD(e)||rg(e))&&Ym(e.expression)&&"exports"===lg(e)}function eg(e){const t=function(e){if(GD(e)){if(!tg(e))return 0;const t=e.arguments[0];return Qm(t)||Zm(t)?8:ig(t)&&"prototype"===lg(t)?9:7}return 64!==e.operatorToken.kind||!kx(e.left)||iF(t=Xm(e))&&kN(t.expression)&&"0"===t.expression.text?0:ag(e.left.expression,!0)&&"prototype"===lg(e.left)&&$D(ug(e))?6:_g(e.left);var t}(e);return 5===t||Fm(e)?t:0}function tg(e){return 3===u(e.arguments)&&HD(e.expression)&&zN(e.expression.expression)&&"Object"===mc(e.expression.expression)&&"defineProperty"===mc(e.expression.name)&&Lh(e.arguments[1])&&ag(e.arguments[0],!0)}function ng(e){return HD(e)||rg(e)}function rg(e){return KD(e)&&Lh(e.argumentExpression)}function ig(e,t){return HD(e)&&(!t&&110===e.expression.kind||zN(e.name)&&ag(e.expression,!0))||og(e,t)}function og(e,t){return rg(e)&&(!t&&110===e.expression.kind||ob(e.expression)||ig(e.expression,!0))}function ag(e,t){return ob(e)||ig(e,t)}function sg(e){return HD(e)?e.name:e.argumentExpression}function cg(e){if(HD(e))return e.name;const t=oh(e.argumentExpression);return kN(t)||Lu(t)?t:e}function lg(e){const t=cg(e);if(t){if(zN(t))return t.escapedText;if(Lu(t)||kN(t))return pc(t.text)}}function _g(e){if(110===e.expression.kind)return 4;if(Zm(e))return 2;if(ag(e.expression,!0)){if(_b(e.expression))return 3;let t=e;for(;!zN(t.expression);)t=t.expression;const n=t.expression;if(("exports"===n.escapedText||"module"===n.escapedText&&"exports"===lg(t))&&ig(e))return 1;if(ag(e,!0)||KD(e)&&Mh(e))return 5}return 0}function ug(e){for(;cF(e.right);)e=e.right;return e.right}function dg(e){return cF(e)&&3===eg(e)}function pg(e){return Fm(e)&&e.parent&&244===e.parent.kind&&(!KD(e)||rg(e))&&!!el(e.parent)}function fg(e,t){const{valueDeclaration:n}=e;(!n||(!(33554432&t.flags)||Fm(t)||33554432&n.flags)&&qm(n)&&!qm(t)||n.kind!==t.kind&&function(e){return QF(e)||zN(e)}(n))&&(e.valueDeclaration=t)}function mg(e){if(!e||!e.valueDeclaration)return!1;const t=e.valueDeclaration;return 262===t.kind||VF(t)&&t.initializer&&n_(t.initializer)}function gg(e){switch(null==e?void 0:e.kind){case 260:case 208:case 272:case 278:case 271:case 273:case 280:case 274:case 281:case 276:case 205:return!0}return!1}function hg(e){var t,n;switch(e.kind){case 260:case 208:return null==(t=_c(e.initializer,(e=>Om(e,!0))))?void 0:t.arguments[0];case 272:case 278:case 351:return tt(e.moduleSpecifier,Lu);case 271:return tt(null==(n=tt(e.moduleReference,xE))?void 0:n.expression,Lu);case 273:case 280:return tt(e.parent.moduleSpecifier,Lu);case 274:case 281:return tt(e.parent.parent.moduleSpecifier,Lu);case 276:return tt(e.parent.parent.parent.moduleSpecifier,Lu);case 205:return _f(e)?e.argument.literal:void 0;default:un.assertNever(e)}}function yg(e){return vg(e)||un.failBadSyntaxKind(e.parent)}function vg(e){switch(e.parent.kind){case 272:case 278:case 351:return e.parent;case 283:return e.parent.parent;case 213:return cf(e.parent)||Om(e.parent,!1)?e.parent:void 0;case 201:if(!TN(e))break;return tt(e.parent.parent,BD);default:return}}function bg(e,t){return!!t.rewriteRelativeImportExtensions&&vo(e)&&!$I(e)&&IS(e)}function xg(e){switch(e.kind){case 272:case 278:case 351:return e.moduleSpecifier;case 271:return 283===e.moduleReference.kind?e.moduleReference.expression:void 0;case 205:return _f(e)?e.argument.literal:void 0;case 213:return e.arguments[0];case 267:return 11===e.name.kind?e.name:void 0;default:return un.assertNever(e)}}function kg(e){switch(e.kind){case 272:return e.importClause&&tt(e.importClause.namedBindings,lE);case 271:return e;case 278:return e.exportClause&&tt(e.exportClause,_E);default:return un.assertNever(e)}}function Sg(e){return!(272!==e.kind&&351!==e.kind||!e.importClause||!e.importClause.name)}function Tg(e,t){if(e.name){const n=t(e);if(n)return n}if(e.namedBindings){const n=lE(e.namedBindings)?t(e.namedBindings):d(e.namedBindings.elements,t);if(n)return n}}function Cg(e){switch(e.kind){case 169:case 174:case 173:case 304:case 303:case 172:case 171:return void 0!==e.questionToken}return!1}function wg(e){const t=tP(e)?fe(e.parameters):void 0,n=tt(t&&t.name,zN);return!!n&&"new"===n.escapedText}function Ng(e){return 346===e.kind||338===e.kind||340===e.kind}function Dg(e){return Ng(e)||GF(e)}function Fg(e){return DF(e)&&cF(e.expression)&&0!==eg(e.expression)&&cF(e.expression.right)&&(57===e.expression.right.operatorToken.kind||61===e.expression.right.operatorToken.kind)?e.expression.right.right:void 0}function Eg(e){switch(e.kind){case 243:const t=Pg(e);return t&&t.initializer;case 172:case 303:return e.initializer}}function Pg(e){return wF(e)?fe(e.declarationList.declarations):void 0}function Ag(e){return QF(e)&&e.body&&267===e.body.kind?e.body:void 0}function Ig(e){if(e.kind>=243&&e.kind<=259)return!0;switch(e.kind){case 80:case 110:case 108:case 166:case 236:case 212:case 211:case 208:case 218:case 219:case 174:case 177:case 178:return!0;default:return!1}}function Og(e){switch(e.kind){case 219:case 226:case 241:case 252:case 179:case 296:case 263:case 231:case 175:case 176:case 185:case 180:case 251:case 259:case 246:case 212:case 242:case 1:case 266:case 306:case 277:case 278:case 281:case 244:case 249:case 250:case 248:case 262:case 218:case 184:case 177:case 80:case 245:case 272:case 271:case 181:case 264:case 317:case 323:case 256:case 174:case 173:case 267:case 202:case 270:case 210:case 169:case 217:case 211:case 303:case 172:case 171:case 253:case 240:case 178:case 304:case 305:case 255:case 257:case 258:case 265:case 168:case 260:case 243:case 247:case 254:return!0;default:return!1}}function Lg(e,t){let n;Ef(e)&&Fu(e)&&Nu(e.initializer)&&(n=se(n,jg(e,e.initializer.jsDoc)));let r=e;for(;r&&r.parent;){if(Nu(r)&&(n=se(n,jg(e,r.jsDoc))),169===r.kind){n=se(n,(t?Ec:Fc)(r));break}if(168===r.kind){n=se(n,(t?Ic:Ac)(r));break}r=Rg(r)}return n||l}function jg(e,t){const n=ve(t);return O(t,(t=>{if(t===n){const n=N(t.tags,(t=>function(e,t){return!((SP(t)||FP(t))&&t.parent&&iP(t.parent)&&ZD(t.parent.parent)&&t.parent.parent!==e)}(e,t)));return t.tags===n?[t]:n}return N(t.tags,gP)}))}function Rg(e){const t=e.parent;return 303===t.kind||277===t.kind||172===t.kind||244===t.kind&&211===e.kind||253===t.kind||Ag(t)||nb(e)?t:t.parent&&(Pg(t.parent)===e||nb(t))?t.parent:t.parent&&t.parent.parent&&(Pg(t.parent.parent)||Eg(t.parent.parent)===e||Fg(t.parent.parent))?t.parent.parent:void 0}function Mg(e){if(e.symbol)return e.symbol;if(!zN(e.name))return;const t=e.name.escapedText,n=zg(e);if(!n)return;const r=b(n.parameters,(e=>80===e.name.kind&&e.name.escapedText===t));return r&&r.symbol}function Bg(e){if(iP(e.parent)&&e.parent.tags){const t=b(e.parent.tags,Ng);if(t)return t}return zg(e)}function Jg(e){return al(e,gP)}function zg(e){const t=qg(e);if(t)return sD(t)&&t.type&&n_(t.type)?t.type:n_(t)?t:void 0}function qg(e){const t=Ug(e);if(t)return Fg(t)||function(e){return DF(e)&&cF(e.expression)&&64===e.expression.operatorToken.kind?Xm(e.expression):void 0}(t)||Eg(t)||Pg(t)||Ag(t)||t}function Ug(e){const t=Vg(e);if(!t)return;const n=t.parent;return n&&n.jsDoc&&t===ye(n.jsDoc)?n:void 0}function Vg(e){return _c(e.parent,iP)}function Wg(e){const t=e.name.escapedText,{typeParameters:n}=e.parent.parent.parent;return n&&b(n,(e=>e.name.escapedText===t))}function $g(e){return!!e.typeArguments}var Hg=(e=>(e[e.None=0]="None",e[e.Definite=1]="Definite",e[e.Compound=2]="Compound",e))(Hg||{});function Kg(e){let t=e.parent;for(;;){switch(t.kind){case 226:const n=t;return Zv(n.operatorToken.kind)&&n.left===e?n:void 0;case 224:case 225:const r=t,i=r.operator;return 46===i||47===i?r:void 0;case 249:case 250:const o=t;return o.initializer===e?o:void 0;case 217:case 209:case 230:case 235:e=t;break;case 305:e=t.parent;break;case 304:if(t.name!==e)return;e=t.parent;break;case 303:if(t.name===e)return;e=t.parent;break;default:return}t=e.parent}}function Gg(e){const t=Kg(e);if(!t)return 0;switch(t.kind){case 226:const e=t.operatorToken.kind;return 64===e||Gv(e)?1:2;case 224:case 225:return 2;case 249:case 250:return 1}}function Xg(e){return!!Kg(e)}function Qg(e){const t=Kg(e);return!!t&&nb(t,!0)&&function(e){const t=oh(e.right);return 226===t.kind&&OA(t.operatorToken.kind)}(t)}function Yg(e){switch(e.kind){case 241:case 243:case 254:case 245:case 255:case 269:case 296:case 297:case 256:case 248:case 249:case 250:case 246:case 247:case 258:case 299:return!0}return!1}function Zg(e){return eF(e)||tF(e)||f_(e)||$F(e)||dD(e)}function eh(e,t){for(;e&&e.kind===t;)e=e.parent;return e}function th(e){return eh(e,196)}function nh(e){return eh(e,217)}function rh(e){let t;for(;e&&196===e.kind;)t=e,e=e.parent;return[t,e]}function ih(e){for(;ID(e);)e=e.type;return e}function oh(e,t){return cA(e,t?-2147483647:1)}function ah(e){return(211===e.kind||212===e.kind)&&(e=nh(e.parent))&&220===e.kind}function sh(e,t){for(;e;){if(e===t)return!0;e=e.parent}return!1}function ch(e){return!qE(e)&&!x_(e)&&lu(e.parent)&&e.parent.name===e}function lh(e){const t=e.parent;switch(e.kind){case 11:case 15:case 9:if(rD(t))return t.parent;case 80:if(lu(t))return t.name===e?t:void 0;if(nD(t)){const e=t.parent;return bP(e)&&e.name===t?e:void 0}{const n=t.parent;return cF(n)&&0!==eg(n)&&(n.left.symbol||n.symbol)&&Tc(n)===e?n:void 0}case 81:return lu(t)&&t.name===e?t:void 0;default:return}}function _h(e){return Lh(e)&&167===e.parent.kind&&lu(e.parent.parent)}function uh(e){const t=e.parent;switch(t.kind){case 172:case 171:case 174:case 173:case 177:case 178:case 306:case 303:case 211:return t.name===e;case 166:return t.right===e;case 208:case 276:return t.propertyName===e;case 281:case 291:case 285:case 286:case 287:return!0}return!1}function dh(e){switch(e.parent.kind){case 273:case 276:case 274:case 281:case 277:case 271:case 280:return e.parent;case 166:do{e=e.parent}while(166===e.parent.kind);return dh(e)}}function ph(e){return ob(e)||pF(e)}function fh(e){return ph(mh(e))}function mh(e){return pE(e)?e.expression:e.right}function gh(e){return 304===e.kind?e.name:303===e.kind?e.initializer:e.parent.right}function hh(e){const t=yh(e);if(t&&Fm(e)){const t=Lc(e);if(t)return t.class}return t}function yh(e){const t=kh(e.heritageClauses,96);return t&&t.types.length>0?t.types[0]:void 0}function vh(e){if(Fm(e))return jc(e).map((e=>e.class));{const t=kh(e.heritageClauses,119);return null==t?void 0:t.types}}function bh(e){return KF(e)?xh(e)||l:__(e)&&K(rn(hh(e)),vh(e))||l}function xh(e){const t=kh(e.heritageClauses,96);return t?t.types:void 0}function kh(e,t){if(e)for(const n of e)if(n.token===t)return n}function Sh(e,t){for(;e;){if(e.kind===t)return e;e=e.parent}}function Th(e){return 83<=e&&e<=165}function Ch(e){return 19<=e&&e<=79}function wh(e){return Th(e)||Ch(e)}function Nh(e){return 128<=e&&e<=165}function Dh(e){return Th(e)&&!Nh(e)}function Fh(e){const t=Fa(e);return void 0!==t&&Dh(t)}function Eh(e){const t=gc(e);return!!t&&!Nh(t)}function Ph(e){return 2<=e&&e<=7}var Ah=(e=>(e[e.Normal=0]="Normal",e[e.Generator=1]="Generator",e[e.Async=2]="Async",e[e.Invalid=4]="Invalid",e[e.AsyncGenerator=3]="AsyncGenerator",e))(Ah||{});function Ih(e){if(!e)return 4;let t=0;switch(e.kind){case 262:case 218:case 174:e.asteriskToken&&(t|=1);case 219:wv(e,1024)&&(t|=2)}return e.body||(t|=4),t}function Oh(e){switch(e.kind){case 262:case 218:case 219:case 174:return void 0!==e.body&&void 0===e.asteriskToken&&wv(e,1024)}return!1}function Lh(e){return Lu(e)||kN(e)}function jh(e){return aF(e)&&(40===e.operator||41===e.operator)&&kN(e.operand)}function Rh(e){const t=Tc(e);return!!t&&Mh(t)}function Mh(e){if(167!==e.kind&&212!==e.kind)return!1;const t=KD(e)?oh(e.argumentExpression):e.expression;return!Lh(t)&&!jh(t)}function Bh(e){switch(e.kind){case 80:case 81:return e.escapedText;case 11:case 15:case 9:case 10:return pc(e.text);case 167:const t=e.expression;return Lh(t)?pc(t.text):jh(t)?41===t.operator?Da(t.operator)+t.operand.text:t.operand.text:void 0;case 295:return nC(e);default:return un.assertNever(e)}}function Jh(e){switch(e.kind){case 80:case 11:case 15:case 9:return!0;default:return!1}}function zh(e){return ul(e)?mc(e):IE(e)?rC(e):e.text}function qh(e){return ul(e)?e.escapedText:IE(e)?nC(e):pc(e.text)}function Uh(e,t){return`__#${RB(e)}@${t}`}function Vh(e){return Gt(e.escapedName,"__@")}function Wh(e){return Gt(e.escapedName,"__#")}function $h(e,t){switch((e=cA(e)).kind){case 231:if(kz(e))return!1;break;case 218:if(e.name)return!1;break;case 219:break;default:return!1}return"function"!=typeof t||t(e)}function Hh(e){switch(e.kind){case 303:return!function(e){return zN(e)?"__proto__"===mc(e):TN(e)&&"__proto__"===e.text}(e.name);case 304:return!!e.objectAssignmentInitializer;case 260:return zN(e.name)&&!!e.initializer;case 169:case 208:return zN(e.name)&&!!e.initializer&&!e.dotDotDotToken;case 172:return!!e.initializer;case 226:switch(e.operatorToken.kind){case 64:case 77:case 76:case 78:return zN(e.left)}break;case 277:return!0}return!1}function Kh(e,t){if(!Hh(e))return!1;switch(e.kind){case 303:case 260:case 169:case 208:case 172:return $h(e.initializer,t);case 304:return $h(e.objectAssignmentInitializer,t);case 226:return $h(e.right,t);case 277:return $h(e.expression,t)}}function Gh(e){return"push"===e.escapedText||"unshift"===e.escapedText}function Xh(e){return 169===Qh(e).kind}function Qh(e){for(;208===e.kind;)e=e.parent.parent;return e}function Yh(e){const t=e.kind;return 176===t||218===t||262===t||219===t||174===t||177===t||178===t||267===t||307===t}function Zh(e){return KS(e.pos)||KS(e.end)}var ey=(e=>(e[e.Left=0]="Left",e[e.Right=1]="Right",e))(ey||{});function ty(e){const t=iy(e),n=214===e.kind&&void 0!==e.arguments;return ny(e.kind,t,n)}function ny(e,t,n){switch(e){case 214:return n?0:1;case 224:case 221:case 222:case 220:case 223:case 227:case 229:return 1;case 226:switch(t){case 43:case 64:case 65:case 66:case 68:case 67:case 69:case 70:case 71:case 72:case 73:case 74:case 79:case 75:case 76:case 77:case 78:return 1}}return 0}function ry(e){const t=iy(e),n=214===e.kind&&void 0!==e.arguments;return ay(e.kind,t,n)}function iy(e){return 226===e.kind?e.operatorToken.kind:224===e.kind||225===e.kind?e.operator:e.kind}var oy=(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",e))(oy||{});function ay(e,t,n){switch(e){case 356:return 0;case 230:return 1;case 229:return 2;case 227:return 4;case 226:switch(t){case 28:return 0;case 64:case 65:case 66:case 68:case 67:case 69:case 70:case 71:case 72:case 73:case 74:case 79:case 75:case 76:case 77:case 78:return 3;default:return sy(t)}case 216:case 235:case 224:case 221:case 222:case 220:case 223:return 16;case 225:return 17;case 213:return 18;case 214:return n?19:18;case 215:case 211:case 212:case 236:return 19;case 234:case 238:return 11;case 110:case 108:case 80:case 81:case 106:case 112:case 97:case 9:case 10:case 11:case 209:case 210:case 218:case 219:case 231:case 14:case 15:case 228:case 217:case 232:case 284:case 285:case 288:return 20;default:return-1}}function sy(e){switch(e){case 61:return 4;case 57:return 5;case 56:return 6;case 52:return 7;case 53:return 8;case 51:return 9;case 35:case 36:case 37:case 38:return 10;case 30:case 32:case 33:case 34:case 104:case 103:case 130:case 152:return 11;case 48:case 49:case 50:return 12;case 40:case 41:return 13;case 42:case 44:case 45:return 14;case 43:return 15}return-1}function cy(e){return N(e,(e=>{switch(e.kind){case 294:return!!e.expression;case 12:return!e.containsOnlyTriviaWhiteSpaces;default:return!0}}))}function ly(){let e=[];const t=[],n=new Map;let r=!1;return{add:function(i){let o;i.file?(o=n.get(i.file.fileName),o||(o=[],n.set(i.file.fileName,o),Z(t,i.file.fileName,Ct))):(r&&(r=!1,e=e.slice()),o=e),Z(o,i,nk,ok)},lookup:function(t){let r;if(r=t.file?n.get(t.file.fileName):e,!r)return;const i=Te(r,t,st,nk);return i>=0?r[i]:~i>0&&ok(t,r[~i-1])?r[~i-1]:void 0},getGlobalDiagnostics:function(){return r=!0,e},getDiagnostics:function(r){if(r)return n.get(r)||[];const i=L(t,(e=>n.get(e)));return e.length?(i.unshift(...e),i):i}}}var _y=/\$\{/g;function uy(e){return e.replace(_y,"\\${")}function dy(e){return!!(2048&(e.templateFlags||0))}function py(e){return e&&!!(NN(e)?dy(e):dy(e.head)||$(e.templateSpans,(e=>dy(e.literal))))}var fy=/[\\"\u0000-\u001f\u2028\u2029\u0085]/g,my=/[\\'\u0000-\u001f\u2028\u2029\u0085]/g,gy=/\r\n|[\\`\u0000-\u0009\u000b-\u001f\u2028\u2029\u0085]/g,hy=new Map(Object.entries({"\t":"\\t","\v":"\\v","\f":"\\f","\b":"\\b","\r":"\\r","\n":"\\n","\\":"\\\\",'"':'\\"',"'":"\\'","`":"\\`","\u2028":"\\u2028","\u2029":"\\u2029","…":"\\u0085","\r\n":"\\r\\n"}));function yy(e){return"\\u"+("0000"+e.toString(16).toUpperCase()).slice(-4)}function vy(e,t,n){if(0===e.charCodeAt(0)){const r=n.charCodeAt(t+e.length);return r>=48&&r<=57?"\\x00":"\\0"}return hy.get(e)||yy(e.charCodeAt(0))}function by(e,t){const n=96===t?gy:39===t?my:fy;return e.replace(n,vy)}var xy=/[^\u0000-\u007F]/g;function ky(e,t){return e=by(e,t),xy.test(e)?e.replace(xy,(e=>yy(e.charCodeAt(0)))):e}var Sy=/["\u0000-\u001f\u2028\u2029\u0085]/g,Ty=/['\u0000-\u001f\u2028\u2029\u0085]/g,Cy=new Map(Object.entries({'"':""","'":"'"}));function wy(e){return 0===e.charCodeAt(0)?"�":Cy.get(e)||"&#x"+e.charCodeAt(0).toString(16).toUpperCase()+";"}function Ny(e,t){const n=39===t?Ty:Sy;return e.replace(n,wy)}function Dy(e){const t=e.length;return t>=2&&e.charCodeAt(0)===e.charCodeAt(t-1)&&(39===(n=e.charCodeAt(0))||34===n||96===n)?e.substring(1,t-1):e;var n}function Fy(e){const t=e.charCodeAt(0);return t>=97&&t<=122||e.includes("-")}var Ey=[""," "];function Py(e){const t=Ey[1];for(let n=Ey.length;n<=e;n++)Ey.push(Ey[n-1]+t);return Ey[e]}function Ay(){return Ey[1].length}function Iy(e){var t,n,r,i,o,a=!1;function s(e){const n=Ia(e);n.length>1?(i=i+n.length-1,o=t.length-e.length+ve(n),r=o-t.length==0):r=!1}function c(e){e&&e.length&&(r&&(e=Py(n)+e,r=!1),t+=e,s(e))}function l(e){e&&(a=!1),c(e)}function _(){t="",n=0,r=!0,i=0,o=0,a=!1}return _(),{write:l,rawWrite:function(e){void 0!==e&&(t+=e,s(e),a=!1)},writeLiteral:function(e){e&&e.length&&l(e)},writeLine:function(n){r&&!n||(i++,o=(t+=e).length,r=!0,a=!1)},increaseIndent:()=>{n++},decreaseIndent:()=>{n--},getIndent:()=>n,getTextPos:()=>t.length,getLine:()=>i,getColumn:()=>r?n*Ay():t.length-o,getText:()=>t,isAtStartOfLine:()=>r,hasTrailingComment:()=>a,hasTrailingWhitespace:()=>!!t.length&&za(t.charCodeAt(t.length-1)),clear:_,writeKeyword:l,writeOperator:l,writeParameter:l,writeProperty:l,writePunctuation:l,writeSpace:l,writeStringLiteral:l,writeSymbol:(e,t)=>l(e),writeTrailingSemicolon:l,writeComment:function(e){e&&(a=!0),c(e)}}}function Oy(e){let t=!1;function n(){t&&(e.writeTrailingSemicolon(";"),t=!1)}return{...e,writeTrailingSemicolon(){t=!0},writeLiteral(t){n(),e.writeLiteral(t)},writeStringLiteral(t){n(),e.writeStringLiteral(t)},writeSymbol(t,r){n(),e.writeSymbol(t,r)},writePunctuation(t){n(),e.writePunctuation(t)},writeKeyword(t){n(),e.writeKeyword(t)},writeOperator(t){n(),e.writeOperator(t)},writeParameter(t){n(),e.writeParameter(t)},writeSpace(t){n(),e.writeSpace(t)},writeProperty(t){n(),e.writeProperty(t)},writeComment(t){n(),e.writeComment(t)},writeLine(){n(),e.writeLine()},increaseIndent(){n(),e.increaseIndent()},decreaseIndent(){n(),e.decreaseIndent()}}}function Ly(e){return!!e.useCaseSensitiveFileNames&&e.useCaseSensitiveFileNames()}function jy(e){return Wt(Ly(e))}function Ry(e,t,n){return t.moduleName||Jy(e,t.fileName,n&&n.fileName)}function My(e,t){return e.getCanonicalFileName(Bo(t,e.getCurrentDirectory()))}function By(e,t,n){const r=t.getExternalModuleFileFromDeclaration(n);if(!r||r.isDeclarationFile)return;const i=xg(n);return!i||!Lu(i)||vo(i.text)||My(e,r.path).includes(My(e,Vo(e.getCommonSourceDirectory())))?Ry(e,r):void 0}function Jy(e,t,n){const r=t=>e.getCanonicalFileName(t),i=qo(n?Do(n):e.getCommonSourceDirectory(),e.getCurrentDirectory(),r),o=zS(oa(i,Bo(t,e.getCurrentDirectory()),i,r,!1));return n?Wo(o):o}function zy(e,t,n){const r=t.getCompilerOptions();let i;return i=r.outDir?zS(Xy(e,t,r.outDir)):zS(e),i+n}function qy(e,t){return Uy(e,t.getCompilerOptions(),t)}function Uy(e,t,n){const r=t.declarationDir||t.outDir,i=r?Qy(e,r,n.getCurrentDirectory(),n.getCommonSourceDirectory(),(e=>n.getCanonicalFileName(e))):e,o=Vy(i);return zS(i)+o}function Vy(e){return So(e,[".mjs",".mts"])?".d.mts":So(e,[".cjs",".cts"])?".d.cts":So(e,[".json"])?".d.json.ts":".d.ts"}function Wy(e){return So(e,[".d.mts",".mjs",".mts"])?[".mts",".mjs"]:So(e,[".d.cts",".cjs",".cts"])?[".cts",".cjs"]:So(e,[".d.json.ts"])?[".json"]:[".tsx",".ts",".jsx",".js"]}function $y(e,t,n,r){return n?Ro(r(),na(n,e,t)):e}function Hy(e,t){var n;if(e.paths)return e.baseUrl??un.checkDefined(e.pathsBasePath||(null==(n=t.getCurrentDirectory)?void 0:n.call(t)),"Encountered 'paths' without a 'baseUrl', config file, or host 'getCurrentDirectory'.")}function Ky(e,t,n){const r=e.getCompilerOptions();if(r.outFile){const t=yk(r),i=r.emitDeclarationOnly||2===t||4===t;return N(e.getSourceFiles(),(t=>(i||!MI(t))&&Gy(t,e,n)))}return N(void 0===t?e.getSourceFiles():[t],(t=>Gy(t,e,n)))}function Gy(e,t,n){const r=t.getCompilerOptions();if(r.noEmitForJsFiles&&Dm(e))return!1;if(e.isDeclarationFile)return!1;if(t.isSourceFileFromExternalLibrary(e))return!1;if(n)return!0;if(t.isSourceOfProjectReferenceRedirect(e.fileName))return!1;if(!Yp(e))return!0;if(t.getResolvedProjectReferenceToRedirect(e.fileName))return!1;if(r.outFile)return!0;if(!r.outDir)return!1;if(r.rootDir||r.composite&&r.configFilePath){const n=Bo(Uq(r,(()=>[]),t.getCurrentDirectory(),t.getCanonicalFileName),t.getCurrentDirectory()),i=Qy(e.fileName,r.outDir,t.getCurrentDirectory(),n,t.getCanonicalFileName);if(0===Yo(e.fileName,i,t.getCurrentDirectory(),!t.useCaseSensitiveFileNames()))return!1}return!0}function Xy(e,t,n){return Qy(e,n,t.getCurrentDirectory(),t.getCommonSourceDirectory(),(e=>t.getCanonicalFileName(e)))}function Qy(e,t,n,r,i){let o=Bo(e,n);return o=0===i(o).indexOf(i(r))?o.substring(r.length):o,jo(t,o)}function Yy(e,t,n,r,i,o,a){e.writeFile(n,r,i,(e=>{t.add(Xx(la.Could_not_write_file_0_Colon_1,n,e))}),o,a)}function Zy(e,t,n){e.length>No(e)&&!n(e)&&(Zy(Do(e),t,n),t(e))}function ev(e,t,n,r,i,o){try{r(e,t,n)}catch{Zy(Do(Jo(e)),i,o),r(e,t,n)}}function tv(e,t){return Ma(ja(e),t)}function nv(e,t){return Ma(e,t)}function rv(e){return b(e.members,(e=>dD(e)&&wd(e.body)))}function iv(e){if(e&&e.parameters.length>0){const t=2===e.parameters.length&&sv(e.parameters[0]);return e.parameters[t?1:0]}}function ov(e){const t=iv(e);return t&&t.type}function av(e){if(e.parameters.length&&!aP(e)){const t=e.parameters[0];if(sv(t))return t}}function sv(e){return cv(e.name)}function cv(e){return!!e&&80===e.kind&&uv(e)}function lv(e){return!!_c(e,(e=>186===e.kind||80!==e.kind&&166!==e.kind&&"quit"))}function _v(e){if(!cv(e))return!1;for(;nD(e.parent)&&e.parent.left===e;)e=e.parent;return 186===e.parent.kind}function uv(e){return"this"===e.escapedText}function dv(e,t){let n,r,i,o;return Rh(t)?(n=t,177===t.kind?i=t:178===t.kind?o=t:un.fail("Accessor has wrong kind")):d(e,(e=>{u_(e)&&Nv(e)===Nv(t)&&Bh(e.name)===Bh(t.name)&&(n?r||(r=e):n=e,177!==e.kind||i||(i=e),178!==e.kind||o||(o=e))})),{firstAccessor:n,secondAccessor:r,getAccessor:i,setAccessor:o}}function pv(e){if(!Fm(e)&&$F(e))return;if(GF(e))return;const t=e.type;return t||!Fm(e)?t:wl(e)?e.typeExpression&&e.typeExpression.type:tl(e)}function fv(e){return e.type}function mv(e){return aP(e)?e.type&&e.type.typeExpression&&e.type.typeExpression.type:e.type||(Fm(e)?nl(e):void 0)}function gv(e){return O(il(e),(e=>function(e){return TP(e)&&!(320===e.parent.kind&&(e.parent.tags.some(Ng)||e.parent.tags.some(gP)))}(e)?e.typeParameters:void 0))}function hv(e){const t=iv(e);return t&&pv(t)}function yv(e,t,n,r){n!==r&&nv(e,n)!==nv(e,r)&&t.writeLine()}function vv(e,t,n,r,i,o,a){let s,c;if(a?0===i.pos&&(s=N(ls(e,i.pos),(function(t){return Rd(e,t.pos)}))):s=ls(e,i.pos),s){const a=[];let l;for(const e of s){if(l){const n=nv(t,l.end);if(nv(t,e.pos)>=n+2)break}a.push(e),l=e}if(a.length){const l=nv(t,ve(a).end);nv(t,Xa(e,i.pos))>=l+2&&(function(e,t,n,r){!function(e,t,n,r){r&&r.length&&n!==r[0].pos&&nv(e,n)!==nv(e,r[0].pos)&&t.writeLine()}(e,t,n.pos,r)}(t,n,i,s),function(e,t,n,r,i,o,a,s){if(r&&r.length>0){let i=!1;for(const o of r)i&&(n.writeSpace(" "),i=!1),s(e,t,n,o.pos,o.end,a),o.hasTrailingNewLine?n.writeLine():i=!0;i&&n.writeSpace(" ")}}(e,t,n,a,0,0,o,r),c={nodePos:i.pos,detachedCommentEndPos:ve(a).end})}}return c}function bv(e,t,n,r,i,o){if(42===e.charCodeAt(r+1)){const a=Ra(t,r),s=t.length;let c;for(let l=r,_=a.line;l0){let e=i%Ay();const t=Py((i-e)/Ay());for(n.rawWrite(t);e;)n.rawWrite(" "),e--}else n.rawWrite("")}xv(e,i,n,o,l,u),l=u}}else n.writeComment(e.substring(r,i))}function xv(e,t,n,r,i,o){const a=Math.min(t,o-1),s=e.substring(i,a).trim();s?(n.writeComment(s),a!==t&&n.writeLine()):n.rawWrite(r)}function kv(e,t,n){let r=0;for(;t=0&&e.kind<=165?0:(536870912&e.modifierFlagsCache||(e.modifierFlagsCache=536870912|Vv(e)),n||t&&Fm(e)?(268435456&e.modifierFlagsCache||!e.parent||(e.modifierFlagsCache|=268435456|zv(e)),qv(e.modifierFlagsCache)):65535&e.modifierFlagsCache)}function Mv(e){return Rv(e,!0)}function Bv(e){return Rv(e,!0,!0)}function Jv(e){return Rv(e,!1)}function zv(e){let t=0;return e.parent&&!oD(e)&&(Fm(e)&&(Bc(e)&&(t|=8388608),zc(e)&&(t|=16777216),Uc(e)&&(t|=33554432),Wc(e)&&(t|=67108864),$c(e)&&(t|=134217728)),Kc(e)&&(t|=65536)),t}function qv(e){return 131071&e|(260046848&e)>>>23}function Uv(e){return Vv(e)|function(e){return qv(zv(e))}(e)}function Vv(e){let t=rI(e)?Wv(e.modifiers):0;return(8&e.flags||80===e.kind&&4096&e.flags)&&(t|=32),t}function Wv(e){let t=0;if(e)for(const n of e)t|=$v(n.kind);return t}function $v(e){switch(e){case 126:return 256;case 125:return 1;case 124:return 4;case 123:return 2;case 128:return 64;case 129:return 512;case 95:return 32;case 138:return 128;case 87:return 4096;case 90:return 2048;case 134:return 1024;case 148:return 8;case 164:return 16;case 103:return 8192;case 147:return 16384;case 170:return 32768}return 0}function Hv(e){return 57===e||56===e}function Kv(e){return Hv(e)||54===e}function Gv(e){return 76===e||77===e||78===e}function Xv(e){return cF(e)&&Gv(e.operatorToken.kind)}function Qv(e){return Hv(e)||61===e}function Yv(e){return cF(e)&&Qv(e.operatorToken.kind)}function Zv(e){return e>=64&&e<=79}function eb(e){const t=tb(e);return t&&!t.isImplements?t.class:void 0}function tb(e){if(mF(e)){if(jE(e.parent)&&__(e.parent.parent))return{class:e.parent.parent,isImplements:119===e.parent.token};if(sP(e.parent)){const t=qg(e.parent);if(t&&__(t))return{class:t,isImplements:!1}}}}function nb(e,t){return cF(e)&&(t?64===e.operatorToken.kind:Zv(e.operatorToken.kind))&&R_(e.left)}function rb(e){if(nb(e,!0)){const t=e.left.kind;return 210===t||209===t}return!1}function ib(e){return void 0!==eb(e)}function ob(e){return 80===e.kind||cb(e)}function ab(e){switch(e.kind){case 80:return e;case 166:do{e=e.left}while(80!==e.kind);return e;case 211:do{e=e.expression}while(80!==e.kind);return e}}function sb(e){return 80===e.kind||110===e.kind||108===e.kind||236===e.kind||211===e.kind&&sb(e.expression)||217===e.kind&&sb(e.expression)}function cb(e){return HD(e)&&zN(e.name)&&ob(e.expression)}function lb(e){if(HD(e)){const t=lb(e.expression);if(void 0!==t)return t+"."+Lp(e.name)}else if(KD(e)){const t=lb(e.expression);if(void 0!==t&&e_(e.argumentExpression))return t+"."+Bh(e.argumentExpression)}else{if(zN(e))return fc(e.escapedText);if(IE(e))return rC(e)}}function _b(e){return ig(e)&&"prototype"===lg(e)}function ub(e){return 166===e.parent.kind&&e.parent.right===e||211===e.parent.kind&&e.parent.name===e||236===e.parent.kind&&e.parent.name===e}function db(e){return!!e.parent&&(HD(e.parent)&&e.parent.name===e||KD(e.parent)&&e.parent.argumentExpression===e)}function pb(e){return nD(e.parent)&&e.parent.right===e||HD(e.parent)&&e.parent.name===e||$E(e.parent)&&e.parent.right===e}function fb(e){return cF(e)&&104===e.operatorToken.kind}function mb(e){return fb(e.parent)&&e===e.parent.right}function gb(e){return 210===e.kind&&0===e.properties.length}function hb(e){return 209===e.kind&&0===e.elements.length}function yb(e){if(function(e){return e&&u(e.declarations)>0&&wv(e.declarations[0],2048)}(e)&&e.declarations)for(const t of e.declarations)if(t.localSymbol)return t.localSymbol}function vb(e){return b(SS,(t=>ko(e,t)))}var bb="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";function xb(e){let t="";const n=function(e){const t=[],n=e.length;for(let r=0;r>6|192),t.push(63&n|128)):n<65536?(t.push(n>>12|224),t.push(n>>6&63|128),t.push(63&n|128)):n<131072?(t.push(n>>18|240),t.push(n>>12&63|128),t.push(n>>6&63|128),t.push(63&n|128)):un.assert(!1,"Unexpected code point")}return t}(e);let r=0;const i=n.length;let o,a,s,c;for(;r>2,a=(3&n[r])<<4|n[r+1]>>4,s=(15&n[r+1])<<2|n[r+2]>>6,c=63&n[r+2],r+1>=i?s=c=64:r+2>=i&&(c=64),t+=bb.charAt(o)+bb.charAt(a)+bb.charAt(s)+bb.charAt(c),r+=3;return t}function kb(e,t){return e&&e.base64encode?e.base64encode(t):xb(t)}function Sb(e,t){if(e&&e.base64decode)return e.base64decode(t);const n=t.length,r=[];let i=0;for(;i>4&3,c=(15&n)<<4|o>>2&15,l=(3&o)<<6|63&a;0===c&&0!==o?r.push(s):0===l&&0!==a?r.push(s,c):r.push(s,c,l),i+=4}return function(e){let t="",n=0;const r=e.length;for(;n=e||-1===t),{pos:e,end:t}}function Ab(e,t){return Pb(e.pos,t)}function Ib(e,t){return Pb(t,e.end)}function Ob(e){const t=rI(e)?x(e.modifiers,aD):void 0;return t&&!KS(t.end)?Ib(e,t.end):e}function Lb(e){if(cD(e)||_D(e))return Ib(e,e.name.pos);const t=rI(e)?ye(e.modifiers):void 0;return t&&!KS(t.end)?Ib(e,t.end):Ob(e)}function jb(e,t){return Pb(e,e+Da(t).length)}function Rb(e,t){return Jb(e,e,t)}function Mb(e,t,n){return Wb($b(e,n,!1),$b(t,n,!1),n)}function Bb(e,t,n){return Wb(e.end,t.end,n)}function Jb(e,t,n){return Wb($b(e,n,!1),t.end,n)}function zb(e,t,n){return Wb(e.end,$b(t,n,!1),n)}function qb(e,t,n,r){const i=$b(t,n,r);return Ba(n,e.end,i)}function Ub(e,t,n){return Ba(n,e.end,t.end)}function Vb(e,t){return!Wb(e.pos,e.end,t)}function Wb(e,t,n){return 0===Ba(n,e,t)}function $b(e,t,n){return KS(e.pos)?-1:Xa(t.text,e.pos,!1,n)}function Hb(e,t,n,r){const i=Xa(n.text,e,!1,r),o=function(e,t=0,n){for(;e-- >t;)if(!za(n.text.charCodeAt(e)))return e}(i,t,n);return Ba(n,o??t,i)}function Kb(e,t,n,r){const i=Xa(n.text,e,!1,r);return Ba(n,e,Math.min(t,i))}function Gb(e,t){return Xb(e.pos,e.end,t)}function Xb(e,t,n){return e<=n.pos&&t>=n.end}function Qb(e){const t=dc(e);if(t)switch(t.parent.kind){case 266:case 267:return t===t.parent.name}return!1}function Yb(e){return N(e.declarations,Zb)}function Zb(e){return VF(e)&&void 0!==e.initializer}function ex(e){return e.watch&&De(e,"watch")}function tx(e){e.close()}function nx(e){return 33554432&e.flags?e.links.checkFlags:0}function rx(e,t=!1){if(e.valueDeclaration){const n=rc(t&&e.declarations&&b(e.declarations,fD)||32768&e.flags&&b(e.declarations,pD)||e.valueDeclaration);return e.parent&&32&e.parent.flags?n:-8&n}if(6&nx(e)){const t=e.links.checkFlags;return(1024&t?2:256&t?1:4)|(2048&t?256:0)}return 4194304&e.flags?257:0}function ix(e,t){return 2097152&e.flags?t.getAliasedSymbol(e):e}function ox(e){return e.exportSymbol?e.exportSymbol.flags|e.flags:e.flags}function ax(e){return 1===cx(e)}function sx(e){return 0!==cx(e)}function cx(e){const{parent:t}=e;switch(null==t?void 0:t.kind){case 217:case 209:return cx(t);case 225:case 224:const{operator:n}=t;return 46===n||47===n?2:0;case 226:const{left:r,operatorToken:i}=t;return r===e&&Zv(i.kind)?64===i.kind?1:2:0;case 211:return t.name!==e?0:cx(t);case 303:{const n=cx(t.parent);return e===t.name?function(e){switch(e){case 0:return 1;case 1:return 0;case 2:return 2;default:return un.assertNever(e)}}(n):n}case 304:return e===t.objectAssignmentInitializer?0:cx(t.parent);case 249:case 250:return e===t.initializer?1:0;default:return 0}}function lx(e,t){if(!e||!t||Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if("object"==typeof e[n]){if(!lx(e[n],t[n]))return!1}else if("function"!=typeof e[n]&&e[n]!==t[n])return!1;return!0}function _x(e,t){e.forEach(t),e.clear()}function ux(e,t,n){const{onDeleteValue:r,onExistingValue:i}=n;e.forEach(((n,o)=>{var a;(null==t?void 0:t.has(o))?i&&i(n,null==(a=t.get)?void 0:a.call(t,o),o):(e.delete(o),r(n,o))}))}function dx(e,t,n){ux(e,t,n);const{createNewValue:r}=n;null==t||t.forEach(((t,n)=>{e.has(n)||e.set(n,r(n,t))}))}function px(e){if(32&e.flags){const t=fx(e);return!!t&&wv(t,64)}return!1}function fx(e){var t;return null==(t=e.declarations)?void 0:t.find(__)}function mx(e){return 3899393&e.flags?e.objectFlags:0}function gx(e){return!!e&&!!e.declarations&&!!e.declarations[0]&&eE(e.declarations[0])}function hx({moduleSpecifier:e}){return TN(e)?e.text:Kd(e)}function yx(e){let t;return PI(e,(e=>{wd(e)&&(t=e)}),(e=>{for(let n=e.length-1;n>=0;n--)if(wd(e[n])){t=e[n];break}})),t}function vx(e,t){return!e.has(t)&&(e.add(t),!0)}function bx(e){return __(e)||KF(e)||SD(e)}function xx(e){return e>=182&&e<=205||133===e||159===e||150===e||163===e||151===e||136===e||154===e||155===e||116===e||157===e||146===e||141===e||233===e||312===e||313===e||314===e||315===e||316===e||317===e||318===e}function kx(e){return 211===e.kind||212===e.kind}function Sx(e){return 211===e.kind?e.name:(un.assert(212===e.kind),e.argumentExpression)}function Tx(e){return 275===e.kind||279===e.kind}function Cx(e){for(;kx(e);)e=e.expression;return e}function wx(e,t){if(kx(e.parent)&&db(e))return function e(n){if(211===n.kind){const e=t(n.name);if(void 0!==e)return e}else if(212===n.kind){if(!zN(n.argumentExpression)&&!Lu(n.argumentExpression))return;{const e=t(n.argumentExpression);if(void 0!==e)return e}}return kx(n.expression)?e(n.expression):zN(n.expression)?t(n.expression):void 0}(e.parent)}function Nx(e,t){for(;;){switch(e.kind){case 225:e=e.operand;continue;case 226:e=e.left;continue;case 227:e=e.condition;continue;case 215:e=e.tag;continue;case 213:if(t)return e;case 234:case 212:case 211:case 235:case 355:case 238:e=e.expression;continue}return e}}function Dx(e,t){this.flags=e,this.escapedName=t,this.declarations=void 0,this.valueDeclaration=void 0,this.id=0,this.mergeId=0,this.parent=void 0,this.members=void 0,this.exports=void 0,this.exportSymbol=void 0,this.constEnumOnlyModule=void 0,this.isReferenced=void 0,this.lastAssignmentPos=void 0,this.links=void 0}function Fx(e,t){this.flags=t,(un.isDebugging||Hn)&&(this.checker=e)}function Ex(e,t){this.flags=t,un.isDebugging&&(this.checker=e)}function Px(e,t,n){this.pos=t,this.end=n,this.kind=e,this.id=0,this.flags=0,this.modifierFlagsCache=0,this.transformFlags=0,this.parent=void 0,this.original=void 0,this.emitNode=void 0}function Ax(e,t,n){this.pos=t,this.end=n,this.kind=e,this.id=0,this.flags=0,this.transformFlags=0,this.parent=void 0,this.emitNode=void 0}function Ix(e,t,n){this.pos=t,this.end=n,this.kind=e,this.id=0,this.flags=0,this.transformFlags=0,this.parent=void 0,this.original=void 0,this.emitNode=void 0}function Ox(e,t,n){this.fileName=e,this.text=t,this.skipTrivia=n||(e=>e)}var Lx,jx={getNodeConstructor:()=>Px,getTokenConstructor:()=>Ax,getIdentifierConstructor:()=>Ix,getPrivateIdentifierConstructor:()=>Px,getSourceFileConstructor:()=>Px,getSymbolConstructor:()=>Dx,getTypeConstructor:()=>Fx,getSignatureConstructor:()=>Ex,getSourceMapSourceConstructor:()=>Ox},Rx=[];function Mx(e){Rx.push(e),e(jx)}function Bx(e){Object.assign(jx,e),d(Rx,(e=>e(jx)))}function Jx(e,t){return e.replace(/\{(\d+)\}/g,((e,n)=>""+un.checkDefined(t[+n])))}function zx(e){Lx=e}function qx(e){!Lx&&e&&(Lx=e())}function Ux(e){return Lx&&Lx[e.key]||e.message}function Vx(e,t,n,r,i,...o){n+r>t.length&&(r=t.length-n),zp(t,n,r);let a=Ux(i);return $(o)&&(a=Jx(a,o)),{file:void 0,start:n,length:r,messageText:a,category:i.category,code:i.code,reportsUnnecessary:i.reportsUnnecessary,fileName:e}}function Wx(e){return void 0===e.file&&void 0!==e.start&&void 0!==e.length&&"string"==typeof e.fileName}function $x(e,t){const n=t.fileName||"",r=t.text.length;un.assertEqual(e.fileName,n),un.assertLessThanOrEqual(e.start,r),un.assertLessThanOrEqual(e.start+e.length,r);const i={file:t,start:e.start,length:e.length,messageText:e.messageText,category:e.category,code:e.code,reportsUnnecessary:e.reportsUnnecessary};if(e.relatedInformation){i.relatedInformation=[];for(const o of e.relatedInformation)Wx(o)&&o.fileName===n?(un.assertLessThanOrEqual(o.start,r),un.assertLessThanOrEqual(o.start+o.length,r),i.relatedInformation.push($x(o,t))):i.relatedInformation.push(o)}return i}function Hx(e,t){const n=[];for(const r of e)n.push($x(r,t));return n}function Kx(e,t,n,r,...i){zp(e.text,t,n);let o=Ux(r);return $(i)&&(o=Jx(o,i)),{file:e,start:t,length:n,messageText:o,category:r.category,code:r.code,reportsUnnecessary:r.reportsUnnecessary,reportsDeprecated:r.reportsDeprecated}}function Gx(e,...t){let n=Ux(e);return $(t)&&(n=Jx(n,t)),n}function Xx(e,...t){let n=Ux(e);return $(t)&&(n=Jx(n,t)),{file:void 0,start:void 0,length:void 0,messageText:n,category:e.category,code:e.code,reportsUnnecessary:e.reportsUnnecessary,reportsDeprecated:e.reportsDeprecated}}function Qx(e,t){return{file:void 0,start:void 0,length:void 0,code:e.code,category:e.category,messageText:e.next?e:e.messageText,relatedInformation:t}}function Yx(e,t,...n){let r=Ux(t);return $(n)&&(r=Jx(r,n)),{messageText:r,category:t.category,code:t.code,next:void 0===e||Array.isArray(e)?e:[e]}}function Zx(e,t){let n=e;for(;n.next;)n=n.next[0];n.next=[t]}function ek(e){return e.file?e.file.path:void 0}function tk(e,t){return nk(e,t)||function(e,t){return e.relatedInformation||t.relatedInformation?e.relatedInformation&&t.relatedInformation?vt(t.relatedInformation.length,e.relatedInformation.length)||d(e.relatedInformation,((e,n)=>tk(e,t.relatedInformation[n])))||0:e.relatedInformation?-1:1:0}(e,t)||0}function nk(e,t){const n=ak(e),r=ak(t);return Ct(ek(e),ek(t))||vt(e.start,t.start)||vt(e.length,t.length)||vt(n,r)||function(e,t){let n=sk(e),r=sk(t);"string"!=typeof n&&(n=n.messageText),"string"!=typeof r&&(r=r.messageText);const i="string"!=typeof e.messageText?e.messageText.next:void 0,o="string"!=typeof t.messageText?t.messageText.next:void 0;let a=Ct(n,r);return a||(c=o,a=void 0===(s=i)&&void 0===c?0:void 0===s?1:void 0===c?-1:rk(s,c)||ik(s,c),a||(e.canonicalHead&&!t.canonicalHead?-1:t.canonicalHead&&!e.canonicalHead?1:0));var s,c}(e,t)||0}function rk(e,t){if(void 0===e&&void 0===t)return 0;if(void 0===e)return 1;if(void 0===t)return-1;let n=vt(t.length,e.length);if(n)return n;for(let r=0;r{e.externalModuleIndicator=_I(e)||!e.isDeclarationFile||void 0};case 1:return e=>{e.externalModuleIndicator=_I(e)};case 2:const t=[_I];4!==e.jsx&&5!==e.jsx||t.push(_k),t.push(uk);const n=en(...t);return t=>{t.externalModuleIndicator=n(t,e)}}}function pk(e){const t=vk(e);return 3<=t&&t<=99||Tk(e)||Ck(e)}var fk={allowImportingTsExtensions:{dependencies:["rewriteRelativeImportExtensions"],computeValue:e=>!(!e.allowImportingTsExtensions&&!e.rewriteRelativeImportExtensions)},target:{dependencies:["module"],computeValue:e=>(0===e.target?void 0:e.target)??((100===e.module?9:199===e.module&&99)||1)},module:{dependencies:["target"],computeValue:e=>"number"==typeof e.module?e.module:fk.target.computeValue(e)>=2?5:1},moduleResolution:{dependencies:["module","target"],computeValue:e=>{let t=e.moduleResolution;if(void 0===t)switch(fk.module.computeValue(e)){case 1:t=2;break;case 100:t=3;break;case 199:t=99;break;case 200:t=100;break;default:t=1}return t}},moduleDetection:{dependencies:["module","target"],computeValue:e=>e.moduleDetection||(100===fk.module.computeValue(e)||199===fk.module.computeValue(e)?3:2)},isolatedModules:{dependencies:["verbatimModuleSyntax"],computeValue:e=>!(!e.isolatedModules&&!e.verbatimModuleSyntax)},esModuleInterop:{dependencies:["module","target"],computeValue:e=>{if(void 0!==e.esModuleInterop)return e.esModuleInterop;switch(fk.module.computeValue(e)){case 100:case 199:case 200:return!0}return!1}},allowSyntheticDefaultImports:{dependencies:["module","target","moduleResolution"],computeValue:e=>void 0!==e.allowSyntheticDefaultImports?e.allowSyntheticDefaultImports:fk.esModuleInterop.computeValue(e)||4===fk.module.computeValue(e)||100===fk.moduleResolution.computeValue(e)},resolvePackageJsonExports:{dependencies:["moduleResolution"],computeValue:e=>{const t=fk.moduleResolution.computeValue(e);if(!Rk(t))return!1;if(void 0!==e.resolvePackageJsonExports)return e.resolvePackageJsonExports;switch(t){case 3:case 99:case 100:return!0}return!1}},resolvePackageJsonImports:{dependencies:["moduleResolution","resolvePackageJsonExports"],computeValue:e=>{const t=fk.moduleResolution.computeValue(e);if(!Rk(t))return!1;if(void 0!==e.resolvePackageJsonExports)return e.resolvePackageJsonExports;switch(t){case 3:case 99:case 100:return!0}return!1}},resolveJsonModule:{dependencies:["moduleResolution","module","target"],computeValue:e=>void 0!==e.resolveJsonModule?e.resolveJsonModule:100===fk.moduleResolution.computeValue(e)},declaration:{dependencies:["composite"],computeValue:e=>!(!e.declaration&&!e.composite)},preserveConstEnums:{dependencies:["isolatedModules","verbatimModuleSyntax"],computeValue:e=>!(!e.preserveConstEnums&&!fk.isolatedModules.computeValue(e))},incremental:{dependencies:["composite"],computeValue:e=>!(!e.incremental&&!e.composite)},declarationMap:{dependencies:["declaration","composite"],computeValue:e=>!(!e.declarationMap||!fk.declaration.computeValue(e))},allowJs:{dependencies:["checkJs"],computeValue:e=>void 0===e.allowJs?!!e.checkJs:e.allowJs},useDefineForClassFields:{dependencies:["target","module"],computeValue:e=>void 0===e.useDefineForClassFields?fk.target.computeValue(e)>=9:e.useDefineForClassFields},noImplicitAny:{dependencies:["strict"],computeValue:e=>Mk(e,"noImplicitAny")},noImplicitThis:{dependencies:["strict"],computeValue:e=>Mk(e,"noImplicitThis")},strictNullChecks:{dependencies:["strict"],computeValue:e=>Mk(e,"strictNullChecks")},strictFunctionTypes:{dependencies:["strict"],computeValue:e=>Mk(e,"strictFunctionTypes")},strictBindCallApply:{dependencies:["strict"],computeValue:e=>Mk(e,"strictBindCallApply")},strictPropertyInitialization:{dependencies:["strict"],computeValue:e=>Mk(e,"strictPropertyInitialization")},strictBuiltinIteratorReturn:{dependencies:["strict"],computeValue:e=>Mk(e,"strictBuiltinIteratorReturn")},alwaysStrict:{dependencies:["strict"],computeValue:e=>Mk(e,"alwaysStrict")},useUnknownInCatchVariables:{dependencies:["strict"],computeValue:e=>Mk(e,"useUnknownInCatchVariables")}},mk=fk,gk=fk.allowImportingTsExtensions.computeValue,hk=fk.target.computeValue,yk=fk.module.computeValue,vk=fk.moduleResolution.computeValue,bk=fk.moduleDetection.computeValue,xk=fk.isolatedModules.computeValue,kk=fk.esModuleInterop.computeValue,Sk=fk.allowSyntheticDefaultImports.computeValue,Tk=fk.resolvePackageJsonExports.computeValue,Ck=fk.resolvePackageJsonImports.computeValue,wk=fk.resolveJsonModule.computeValue,Nk=fk.declaration.computeValue,Dk=fk.preserveConstEnums.computeValue,Fk=fk.incremental.computeValue,Ek=fk.declarationMap.computeValue,Pk=fk.allowJs.computeValue,Ak=fk.useDefineForClassFields.computeValue;function Ik(e){return e>=5&&e<=99}function Ok(e){switch(yk(e)){case 0:case 4:case 3:return!1}return!0}function Lk(e){return!1===e.allowUnreachableCode}function jk(e){return!1===e.allowUnusedLabels}function Rk(e){return e>=3&&e<=99||100===e}function Mk(e,t){return void 0===e[t]?!!e.strict:!!e[t]}function Bk(e){return td(dO.type,((t,n)=>t===e?n:void 0))}function Jk(e){return!1!==e.useDefineForClassFields&&hk(e)>=9}function zk(e,t){return Zu(t,e,gO)}function qk(e,t){return Zu(t,e,hO)}function Uk(e,t){return Zu(t,e,yO)}function Vk(e,t){return t.strictFlag?Mk(e,t.name):t.allowJsFlag?Pk(e):e[t.name]}function Wk(e){const t=e.jsx;return 2===t||4===t||5===t}function $k(e,t){const n=null==t?void 0:t.pragmas.get("jsximportsource"),r=Qe(n)?n[n.length-1]:n,i=null==t?void 0:t.pragmas.get("jsxruntime"),o=Qe(i)?i[i.length-1]:i;if("classic"!==(null==o?void 0:o.arguments.factory))return 4===e.jsx||5===e.jsx||e.jsxImportSource||r||"automatic"===(null==o?void 0:o.arguments.factory)?(null==r?void 0:r.arguments.factory)||e.jsxImportSource||"react":void 0}function Hk(e,t){return e?`${e}/${5===t.jsx?"jsx-dev-runtime":"jsx-runtime"}`:void 0}function Kk(e){let t=!1;for(let n=0;ni,getSymlinkedDirectories:()=>n,getSymlinkedDirectoriesByRealpath:()=>r,setSymlinkedFile:(e,t)=>(i||(i=new Map)).set(e,t),setSymlinkedDirectory:(i,o)=>{let a=qo(i,e,t);PT(a)||(a=Vo(a),!1===o||(null==n?void 0:n.has(a))||(r||(r=$e())).add(o.realPath,i),(n||(n=new Map)).set(a,o))},setSymlinksFromResolutions(e,t,n){un.assert(!o),o=!0,e((e=>a(this,e.resolvedModule))),t((e=>a(this,e.resolvedTypeReferenceDirective))),n.forEach((e=>a(this,e.resolvedTypeReferenceDirective)))},hasProcessedResolutions:()=>o,setSymlinksFromResolution(e){a(this,e)},hasAnySymlinks:function(){return!!(null==i?void 0:i.size)||!!n&&!!td(n,(e=>!!e))}};function a(n,r){if(!r||!r.originalPath||!r.resolvedFileName)return;const{resolvedFileName:i,originalPath:o}=r;n.setSymlinkedFile(qo(o,e,t),i);const[a,s]=function(e,t,n,r){const i=Ao(Bo(e,n)),o=Ao(Bo(t,n));let a=!1;for(;i.length>=2&&o.length>=2&&!Xk(i[i.length-2],r)&&!Xk(o[o.length-2],r)&&r(i[i.length-1])===r(o[o.length-1]);)i.pop(),o.pop(),a=!0;return a?[Io(i),Io(o)]:void 0}(i,o,e,t)||l;a&&s&&n.setSymlinkedDirectory(s,{real:Vo(a),realPath:Vo(qo(a,e,t))})}}function Xk(e,t){return void 0!==e&&("node_modules"===t(e)||Gt(e,"@"))}function Qk(e,t,n){const r=Qt(e,t,n);return void 0===r?void 0:fo((i=r).charCodeAt(0))?i.slice(1):void 0;var i}var Yk=/[^\w\s/]/g;function Zk(e){return e.replace(Yk,eS)}function eS(e){return"\\"+e}var tS=[42,63],nS=`(?!(${["node_modules","bower_components","jspm_packages"].join("|")})(/|$))`,rS={singleAsteriskRegexFragment:"([^./]|(\\.(?!min\\.js$))?)*",doubleAsteriskRegexFragment:`(/${nS}[^/.][^/]*)*?`,replaceWildcardCharacter:e=>dS(e,rS.singleAsteriskRegexFragment)},iS={singleAsteriskRegexFragment:"[^/]*",doubleAsteriskRegexFragment:`(/${nS}[^/.][^/]*)*?`,replaceWildcardCharacter:e=>dS(e,iS.singleAsteriskRegexFragment)},oS={singleAsteriskRegexFragment:"[^/]*",doubleAsteriskRegexFragment:"(/.+?)?",replaceWildcardCharacter:e=>dS(e,oS.singleAsteriskRegexFragment)},aS={files:rS,directories:iS,exclude:oS};function sS(e,t,n){const r=cS(e,t,n);if(r&&r.length)return`^(${r.map((e=>`(${e})`)).join("|")})${"exclude"===n?"($|/)":"$"}`}function cS(e,t,n){if(void 0!==e&&0!==e.length)return O(e,(e=>e&&uS(e,t,n,aS[n])))}function lS(e){return!/[.*?]/.test(e)}function _S(e,t,n){const r=e&&uS(e,t,n,aS[n]);return r&&`^(${r})${"exclude"===n?"($|/)":"$"}`}function uS(e,t,n,{singleAsteriskRegexFragment:r,doubleAsteriskRegexFragment:i,replaceWildcardCharacter:o}=aS[n]){let a="",s=!1;const c=Mo(e,t),l=ve(c);if("exclude"!==n&&"**"===l)return;c[0]=Uo(c[0]),lS(l)&&c.push("**","*");let _=0;for(let e of c){if("**"===e)a+=i;else if("directories"===n&&(a+="(",_++),s&&(a+=lo),"exclude"!==n){let t="";42===e.charCodeAt(0)?(t+="([^./]"+r+")?",e=e.substr(1)):63===e.charCodeAt(0)&&(t+="[^./]",e=e.substr(1)),t+=e.replace(Yk,o),t!==e&&(a+=nS),a+=t}else a+=e.replace(Yk,o);s=!0}for(;_>0;)a+=")?",_--;return a}function dS(e,t){return"*"===e?t:"?"===e?"[^/]":"\\"+e}function pS(e,t,n,r,i){e=Jo(e);const o=jo(i=Jo(i),e);return{includeFilePatterns:E(cS(n,o,"files"),(e=>`^${e}$`)),includeFilePattern:sS(n,o,"files"),includeDirectoryPattern:sS(n,o,"directories"),excludePattern:sS(t,o,"exclude"),basePaths:gS(e,n,r)}}function fS(e,t){return new RegExp(e,t?"":"i")}function mS(e,t,n,r,i,o,a,s,c){e=Jo(e),o=Jo(o);const l=pS(e,n,r,i,o),_=l.includeFilePatterns&&l.includeFilePatterns.map((e=>fS(e,i))),u=l.includeDirectoryPattern&&fS(l.includeDirectoryPattern,i),d=l.excludePattern&&fS(l.excludePattern,i),p=_?_.map((()=>[])):[[]],f=new Map,m=Wt(i);for(const e of l.basePaths)g(e,jo(o,e),a);return I(p);function g(e,n,r){const i=m(c(n));if(f.has(i))return;f.set(i,!0);const{files:o,directories:a}=s(e);for(const r of _e(o,Ct)){const i=jo(e,r),o=jo(n,r);if((!t||So(i,t))&&(!d||!d.test(o)))if(_){const e=k(_,(e=>e.test(o)));-1!==e&&p[e].push(i)}else p[0].push(i)}if(void 0===r||0!=--r)for(const t of _e(a,Ct)){const i=jo(e,t),o=jo(n,t);u&&!u.test(o)||d&&d.test(o)||g(i,o,r)}}}function gS(e,t,n){const r=[e];if(t){const i=[];for(const n of t){const t=go(n)?n:Jo(jo(e,n));i.push(hS(t))}i.sort(wt(!n));for(const t of i)v(r,(r=>!Zo(r,t,e,!n)))&&r.push(t)}return r}function hS(e){const t=C(e,tS);return t<0?xo(e)?Uo(Do(e)):e:e.substring(0,e.lastIndexOf(lo,t))}function yS(e,t){return t||vS(e)||3}function vS(e){switch(e.substr(e.lastIndexOf(".")).toLowerCase()){case".js":case".cjs":case".mjs":return 1;case".jsx":return 2;case".ts":case".cts":case".mts":return 3;case".tsx":return 4;case".json":return 6;default:return 0}}var bS=[[".ts",".tsx",".d.ts"],[".cts",".d.cts"],[".mts",".d.mts"]],xS=I(bS),kS=[...bS,[".json"]],SS=[".d.ts",".d.cts",".d.mts",".cts",".mts",".ts",".tsx"],TS=I([[".js",".jsx"],[".mjs"],[".cjs"]]),CS=[[".ts",".tsx",".d.ts",".js",".jsx"],[".cts",".d.cts",".cjs"],[".mts",".d.mts",".mjs"]],wS=[...CS,[".json"]],NS=[".d.ts",".d.cts",".d.mts"],DS=[".ts",".cts",".mts",".tsx"],FS=[".mts",".d.mts",".mjs",".cts",".d.cts",".cjs"];function ES(e,t){const n=e&&Pk(e);if(!t||0===t.length)return n?CS:bS;const r=n?CS:bS,i=I(r);return[...r,...B(t,(e=>{return 7===e.scriptKind||n&&(1===(t=e.scriptKind)||2===t)&&!i.includes(e.extension)?[e.extension]:void 0;var t}))]}function PS(e,t){return e&&wk(e)?t===CS?wS:t===bS?kS:[...t,[".json"]]:t}function AS(e){return $(TS,(t=>ko(e,t)))}function IS(e){return $(xS,(t=>ko(e,t)))}function OS(e){return $(DS,(t=>ko(e,t)))&&!$I(e)}var LS=(e=>(e[e.Minimal=0]="Minimal",e[e.Index=1]="Index",e[e.JsExtension=2]="JsExtension",e[e.TsExtension=3]="TsExtension",e))(LS||{});function jS(e,t,n,r){const i=vk(n),o=3<=i&&i<=99;return"js"===e||99===t&&o?bM(n)&&2!==a()?3:2:"minimal"===e?0:"index"===e?1:bM(n)?a():r&&function({imports:e},t=en(AS,IS)){return f(e,(({text:e})=>vo(e)&&!So(e,FS)?t(e):void 0))||!1}(r)?2:0;function a(){let e=!1;const i=(null==r?void 0:r.imports.length)?r.imports:r&&Dm(r)?function(e){let t,n=0;for(const r of e.statements){if(n>3)break;Bm(r)?t=K(t,r.declarationList.declarations.map((e=>e.initializer))):DF(r)&&Om(r.expression,!0)?t=ie(t,r.expression):n++}return t||l}(r).map((e=>e.arguments[0])):l;for(const a of i)if(vo(a.text)){if(o&&1===t&&99===HU(r,a,n))continue;if(So(a.text,FS))continue;if(IS(a.text))return 3;AS(a.text)&&(e=!0)}return e?2:0}}function RS(e,t,n){if(!e)return!1;const r=ES(t,n);for(const n of I(PS(t,r)))if(ko(e,n))return!0;return!1}function MS(e){const t=e.match(/\//g);return t?t.length:0}function BS(e,t){return vt(MS(e),MS(t))}var JS=[".d.ts",".d.mts",".d.cts",".mjs",".mts",".cjs",".cts",".ts",".js",".tsx",".jsx",".json"];function zS(e){for(const t of JS){const n=qS(e,t);if(void 0!==n)return n}return e}function qS(e,t){return ko(e,t)?US(e,t):void 0}function US(e,t){return e.substring(0,e.length-t.length)}function VS(e,t){return $o(e,t,JS,!1)}function WS(e){const t=e.indexOf("*");return-1===t?e:-1!==e.indexOf("*",t+1)?void 0:{prefix:e.substr(0,t),suffix:e.substr(t+1)}}var $S=new WeakMap;function HS(e){let t,n,r=$S.get(e);if(void 0!==r)return r;const i=Ee(e);for(const e of i){const r=WS(e);void 0!==r&&("string"==typeof r?(t??(t=new Set)).add(r):(n??(n=[])).push(r))}return $S.set(e,r={matchableStringSet:t,patterns:n}),r}function KS(e){return!(e>=0)}function GS(e){return".ts"===e||".tsx"===e||".d.ts"===e||".cts"===e||".mts"===e||".d.mts"===e||".d.cts"===e||Gt(e,".d.")&&Rt(e,".ts")}function XS(e){return GS(e)||".json"===e}function QS(e){const t=ZS(e);return void 0!==t?t:un.fail(`File ${e} has unknown extension.`)}function YS(e){return void 0!==ZS(e)}function ZS(e){return b(JS,(t=>ko(e,t)))}function eT(e,t){return e.checkJsDirective?e.checkJsDirective.enabled:t.checkJs}var tT={files:l,directories:l};function nT(e,t){const{matchableStringSet:n,patterns:r}=e;return(null==n?void 0:n.has(t))?t:void 0!==r&&0!==r.length?Kt(r,(e=>e),t):void 0}function rT(e,t){const n=e.indexOf(t);return un.assert(-1!==n),e.slice(n)}function iT(e,...t){return t.length?(e.relatedInformation||(e.relatedInformation=[]),un.assert(e.relatedInformation!==l,"Diagnostic had empty array singleton for related info, but is still being constructed!"),e.relatedInformation.push(...t),e):e}function oT(e,t){un.assert(0!==e.length);let n=t(e[0]),r=n;for(let i=1;ir&&(r=o)}return{min:n,max:r}}function aT(e){return{pos:Bd(e),end:e.end}}function sT(e,t){return{pos:t.pos-1,end:Math.min(e.text.length,Xa(e.text,t.end)+1)}}function cT(e,t,n){return _T(e,t,n,!1)}function lT(e,t,n){return _T(e,t,n,!0)}function _T(e,t,n,r){return t.skipLibCheck&&e.isDeclarationFile||t.skipDefaultLibCheck&&e.hasNoDefaultLib||!r&&t.noCheck||n.isSourceOfProjectReferenceRedirect(e.fileName)||!uT(e,t)}function uT(e,t){if(e.checkJsDirective&&!1===e.checkJsDirective.enabled)return!1;if(3===e.scriptKind||4===e.scriptKind||5===e.scriptKind)return!0;const n=(1===e.scriptKind||2===e.scriptKind)&&eT(e,t);return vd(e,t.checkJs)||n||7===e.scriptKind}function dT(e,t){return e===t||"object"==typeof e&&null!==e&&"object"==typeof t&&null!==t&&je(e,t,dT)}function pT(e){let t;switch(e.charCodeAt(1)){case 98:case 66:t=1;break;case 111:case 79:t=3;break;case 120:case 88:t=4;break;default:const n=e.length-1;let r=0;for(;48===e.charCodeAt(r);)r++;return e.slice(r,n)||"0"}const n=e.length-1,r=(n-2)*t,i=new Uint16Array((r>>>4)+(15&r?1:0));for(let r=n-1,o=0;r>=2;r--,o+=t){const t=o>>>4,n=e.charCodeAt(r),a=(n<=57?n-48:10+n-(n<=70?65:97))<<(15&o);i[t]|=a;const s=a>>>16;s&&(i[t+1]|=s)}let o="",a=i.length-1,s=!0;for(;s;){let e=0;s=!1;for(let t=a;t>=0;t--){const n=e<<16|i[t],r=n/10|0;i[t]=r,e=n-10*r,r&&!s&&(a=t,s=!0)}o=e+o}return o}function fT({negative:e,base10Value:t}){return(e&&"0"!==t?"-":"")+t}function mT(e){if(hT(e,!1))return gT(e)}function gT(e){const t=e.startsWith("-");return{negative:t,base10Value:pT(`${t?e.slice(1):e}n`)}}function hT(e,t){if(""===e)return!1;const n=ms(99,!1);let r=!0;n.setOnError((()=>r=!1)),n.setText(e+"n");let i=n.scan();const o=41===i;o&&(i=n.scan());const a=n.getTokenFlags();return r&&10===i&&n.getTokenEnd()===e.length+1&&!(512&a)&&(!t||e===fT({negative:o,base10Value:pT(n.getTokenValue())}))}function yT(e){return!!(33554432&e.flags)||xm(e)||function(e){if(80!==e.kind)return!1;const t=_c(e.parent,(e=>{switch(e.kind){case 298:return!0;case 211:case 233:return!1;default:return"quit"}}));return 119===(null==t?void 0:t.token)||264===(null==t?void 0:t.parent.kind)}(e)||function(e){for(;80===e.kind||211===e.kind;)e=e.parent;if(167!==e.kind)return!1;if(wv(e.parent,64))return!0;const t=e.parent.parent.kind;return 264===t||187===t}(e)||!(vm(e)||function(e){return zN(e)&&BE(e.parent)&&e.parent.name===e}(e))}function vT(e){return vD(e)&&zN(e.typeName)}function bT(e,t=mt){if(e.length<2)return!0;const n=e[0];for(let r=1,i=e.length;re.includes(t)))}function AT(e){if(!e.parent)return;switch(e.kind){case 168:const{parent:t}=e;return 195===t.kind?void 0:t.typeParameters;case 169:return e.parent.parameters;case 204:case 239:return e.parent.templateSpans;case 170:{const{parent:t}=e;return iI(t)?t.modifiers:void 0}case 298:return e.parent.heritageClauses}const{parent:t}=e;if(Tu(e))return oP(e.parent)?void 0:e.parent.tags;switch(t.kind){case 187:case 264:return g_(e)?t.members:void 0;case 192:case 193:return t.types;case 189:case 209:case 356:case 275:case 279:return t.elements;case 210:case 292:return t.properties;case 213:case 214:return v_(e)?t.typeArguments:t.expression===e?void 0:t.arguments;case 284:case 288:return gu(e)?t.children:void 0;case 286:case 285:return v_(e)?t.typeArguments:void 0;case 241:case 296:case 297:case 268:case 307:return t.statements;case 269:return t.clauses;case 263:case 231:return l_(e)?t.members:void 0;case 266:return zE(e)?t.members:void 0}}function IT(e){if(!e.typeParameters){if($(e.parameters,(e=>!pv(e))))return!0;if(219!==e.kind){const t=fe(e.parameters);if(!t||!sv(t))return!0}}return!1}function OT(e){return"Infinity"===e||"-Infinity"===e||"NaN"===e}function LT(e){return 260===e.kind&&299===e.parent.kind}function jT(e){return 218===e.kind||219===e.kind}function RT(e){return e.replace(/\$/g,(()=>"\\$"))}function MT(e){return(+e).toString()===e}function BT(e,t,n,r,i){const o=i&&"new"===e;return!o&&fs(e,t)?XC.createIdentifier(e):!r&&!o&&MT(e)&&+e>=0?XC.createNumericLiteral(+e):XC.createStringLiteral(e,!!n)}function JT(e){return!!(262144&e.flags&&e.isThisType)}function zT(e){let t,n=0,r=0,i=0,o=0;var a;(a=t||(t={}))[a.BeforeNodeModules=0]="BeforeNodeModules",a[a.NodeModules=1]="NodeModules",a[a.Scope=2]="Scope",a[a.PackageContent=3]="PackageContent";let s=0,c=0,l=0;for(;c>=0;)switch(s=c,c=e.indexOf("/",s+1),l){case 0:e.indexOf(PR,s)===s&&(n=s,r=c,l=1);break;case 1:case 2:1===l&&"@"===e.charAt(s+1)?l=2:(i=c,l=3);break;case 3:l=e.indexOf(PR,s)===s?1:3}return o=s,l>1?{topLevelNodeModulesIndex:n,topLevelPackageNameIndex:r,packageRootIndex:i,fileNameIndex:o}:void 0}function qT(e){switch(e.kind){case 168:case 263:case 264:case 265:case 266:case 346:case 338:case 340:return!0;case 273:return e.isTypeOnly;case 276:case 281:return e.parent.parent.isTypeOnly;default:return!1}}function UT(e){return XF(e)||wF(e)||$F(e)||HF(e)||KF(e)||qT(e)||QF(e)&&!dp(e)&&!up(e)}function VT(e){if(!wl(e))return!1;const{isBracketed:t,typeExpression:n}=e;return t||!!n&&316===n.type.kind}function WT(e,t){if(0===e.length)return!1;const n=e.charCodeAt(0);return 35===n?e.length>1&&ds(e.charCodeAt(1),t):ds(n,t)}function $T(e){var t;return 0===(null==(t=Dw(e))?void 0:t.kind)}function HT(e){return Fm(e)&&(e.type&&316===e.type.kind||Fc(e).some(VT))}function KT(e){switch(e.kind){case 172:case 171:return!!e.questionToken;case 169:return!!e.questionToken||HT(e);case 348:case 341:return VT(e);default:return!1}}function GT(e){const t=e.kind;return(211===t||212===t)&&yF(e.expression)}function XT(e){return Fm(e)&&ZD(e)&&Nu(e)&&!!Zc(e)}function QT(e){return un.checkDefined(YT(e))}function YT(e){const t=Zc(e);return t&&t.typeExpression&&t.typeExpression.type}function ZT(e){return zN(e)?e.escapedText:nC(e)}function eC(e){return zN(e)?mc(e):rC(e)}function tC(e){const t=e.kind;return 80===t||295===t}function nC(e){return`${e.namespace.escapedText}:${mc(e.name)}`}function rC(e){return`${mc(e.namespace)}:${mc(e.name)}`}function iC(e){return zN(e)?mc(e):rC(e)}function oC(e){return!!(8576&e.flags)}function aC(e){return 8192&e.flags?e.escapedName:384&e.flags?pc(""+e.value):un.fail()}function sC(e){return!!e&&(HD(e)||KD(e)||cF(e))}function cC(e){return void 0!==e&&!!XU(e.attributes)}var lC=String.prototype.replace;function _C(e,t){return lC.call(e,"*",t)}function uC(e){return zN(e.name)?e.name.escapedText:pc(e.name.text)}function dC(e){switch(e.kind){case 168:case 169:case 172:case 171:case 185:case 184:case 179:case 180:case 181:case 174:case 173:case 175:case 176:case 177:case 178:case 183:case 182:case 186:case 187:case 188:case 189:case 192:case 193:case 196:case 190:case 191:case 197:case 198:case 194:case 195:case 203:case 205:case 202:case 328:case 329:case 346:case 338:case 340:case 345:case 344:case 324:case 325:case 326:case 341:case 348:case 317:case 315:case 314:case 312:case 313:case 322:case 318:case 309:case 333:case 335:case 334:case 350:case 343:case 199:case 200:case 262:case 241:case 268:case 243:case 244:case 245:case 246:case 247:case 248:case 249:case 250:case 251:case 252:case 253:case 254:case 255:case 256:case 257:case 258:case 260:case 208:case 263:case 264:case 265:case 266:case 267:case 272:case 271:case 278:case 277:case 242:case 259:case 282:return!0}return!1}function pC(e,t=!1,n=!1,r=!1){return{value:e,isSyntacticallyString:t,resolvedOtherFiles:n,hasExternalReferences:r}}function fC({evaluateElementAccessExpression:e,evaluateEntityNameExpression:t}){return function n(r,i){let o=!1,a=!1,s=!1;switch((r=oh(r)).kind){case 224:const c=n(r.operand,i);if(a=c.resolvedOtherFiles,s=c.hasExternalReferences,"number"==typeof c.value)switch(r.operator){case 40:return pC(c.value,o,a,s);case 41:return pC(-c.value,o,a,s);case 55:return pC(~c.value,o,a,s)}break;case 226:{const e=n(r.left,i),t=n(r.right,i);if(o=(e.isSyntacticallyString||t.isSyntacticallyString)&&40===r.operatorToken.kind,a=e.resolvedOtherFiles||t.resolvedOtherFiles,s=e.hasExternalReferences||t.hasExternalReferences,"number"==typeof e.value&&"number"==typeof t.value)switch(r.operatorToken.kind){case 52:return pC(e.value|t.value,o,a,s);case 51:return pC(e.value&t.value,o,a,s);case 49:return pC(e.value>>t.value,o,a,s);case 50:return pC(e.value>>>t.value,o,a,s);case 48:return pC(e.value<=2)break;case 174:case 176:case 177:case 178:case 262:if(3&d&&"arguments"===I){w=n;break e}break;case 218:if(3&d&&"arguments"===I){w=n;break e}if(16&d){const e=s.name;if(e&&I===e.escapedText){w=s.symbol;break e}}break;case 170:s.parent&&169===s.parent.kind&&(s=s.parent),s.parent&&(l_(s.parent)||263===s.parent.kind)&&(s=s.parent);break;case 346:case 338:case 340:case 351:const o=Vg(s);o&&(s=o.parent);break;case 169:N&&(N===s.initializer||N===s.name&&x_(N))&&(E||(E=s));break;case 208:N&&(N===s.initializer||N===s.name&&x_(N))&&Xh(s)&&!E&&(E=s);break;case 195:if(262144&d){const e=s.typeParameter.name;if(e&&I===e.escapedText){w=s.typeParameter.symbol;break e}}break;case 281:N&&N===s.propertyName&&s.parent.parent.moduleSpecifier&&(s=s.parent.parent.parent)}y(s,N)&&(D=s),N=s,s=TP(s)?Bg(s)||s.parent:(bP(s)||xP(s))&&zg(s)||s.parent}if(!b||!w||D&&w===D.symbol||(w.isReferenced|=d),!w){if(N&&(un.assertNode(N,qE),N.commonJsModuleIndicator&&"exports"===I&&d&N.symbol.flags))return N.symbol;x||(w=a(o,I,d))}if(!w&&C&&Fm(C)&&C.parent&&Om(C.parent,!1))return t;if(f){if(F&&l(C,I,F,w))return;w?u(C,w,d,N,E,A):_(C,c,d,f)}return w};function g(t,n,r){const i=hk(e),o=n;if(oD(r)&&o.body&&t.valueDeclaration&&t.valueDeclaration.pos>=o.body.pos&&t.valueDeclaration.end<=o.body.end&&i>=2){let e=c(o);return void 0===e&&(e=d(o.parameters,(function(e){return a(e.name)||!!e.initializer&&a(e.initializer)}))||!1,s(o,e)),!e}return!1;function a(e){switch(e.kind){case 219:case 218:case 262:case 176:return!1;case 174:case 177:case 178:case 303:return a(e.name);case 172:return Dv(e)?!f:a(e.name);default:return bl(e)||gl(e)?i<7:VD(e)&&e.dotDotDotToken&&qD(e.parent)?i<4:!v_(e)&&(PI(e,a)||!1)}}}function h(e,t){return 219!==e.kind&&218!==e.kind?kD(e)||(i_(e)||172===e.kind&&!Nv(e))&&(!t||t!==e.name):!(t&&t===e.name||!e.asteriskToken&&!wv(e,1024)&&im(e))}function y(e,t){switch(e.kind){case 169:return!!t&&t===e.name;case 262:case 263:case 264:case 266:case 265:case 267:return!0;default:return!1}}function v(e,t){if(e.declarations)for(const n of e.declarations)if(168===n.kind&&(TP(n.parent)?Ug(n.parent):n.parent)===t)return!(TP(n.parent)&&b(n.parent.parent.tags,Ng));return!1}}function yC(e,t=!0){switch(un.type(e),e.kind){case 112:case 97:case 9:case 11:case 15:return!0;case 10:return t;case 224:return 41===e.operator?kN(e.operand)||t&&SN(e.operand):40===e.operator&&kN(e.operand);default:return!1}}function vC(e){for(;217===e.kind;)e=e.expression;return e}function bC(e){switch(un.type(e),e.kind){case 169:case 171:case 172:case 208:case 211:case 212:case 226:case 260:case 277:case 303:case 304:case 341:case 348:return!0;default:return!1}}function xC(e){const t=_c(e,nE);return!!t&&!t.importClause}var kC=["assert","assert/strict","async_hooks","buffer","child_process","cluster","console","constants","crypto","dgram","diagnostics_channel","dns","dns/promises","domain","events","fs","fs/promises","http","http2","https","inspector","inspector/promises","module","net","os","path","path/posix","path/win32","perf_hooks","process","punycode","querystring","readline","readline/promises","repl","stream","stream/consumers","stream/promises","stream/web","string_decoder","sys","test/mock_loader","timers","timers/promises","tls","trace_events","tty","url","util","util/types","v8","vm","wasi","worker_threads","zlib"],SC=new Set(kC),TC=new Set(["node:sea","node:sqlite","node:test","node:test/reporters"]),CC=new Set([...kC,...kC.map((e=>`node:${e}`)),...TC]);function wC(e,t,n,r){const i=Fm(e),o=/import|require/g;for(;null!==o.exec(e.text);){const a=NC(e,o.lastIndex,t);if(i&&Om(a,n))r(a,a.arguments[0]);else if(cf(a)&&a.arguments.length>=1&&(!n||Lu(a.arguments[0])))r(a,a.arguments[0]);else if(t&&_f(a))r(a,a.argument.literal);else if(t&&PP(a)){const e=xg(a);e&&TN(e)&&e.text&&r(a,e)}}}function NC(e,t,n){const r=Fm(e);let i=e;const o=e=>{if(e.pos<=t&&(to(e,t),t.set(e,n)),n},getParenthesizeRightSideOfBinaryForOperator:function(e){n||(n=new Map);let t=n.get(e);return t||(t=t=>a(e,void 0,t),n.set(e,t)),t},parenthesizeLeftSideOfBinary:o,parenthesizeRightSideOfBinary:a,parenthesizeExpressionOfComputedPropertyName:function(t){return iA(t)?e.createParenthesizedExpression(t):t},parenthesizeConditionOfConditionalExpression:function(t){const n=ay(227,58);return 1!==vt(ry(kl(t)),n)?e.createParenthesizedExpression(t):t},parenthesizeBranchOfConditionalExpression:function(t){return iA(kl(t))?e.createParenthesizedExpression(t):t},parenthesizeExpressionOfExportDefault:function(t){const n=kl(t);let r=iA(n);if(!r)switch(Nx(n,!1).kind){case 231:case 218:r=!0}return r?e.createParenthesizedExpression(t):t},parenthesizeExpressionOfNew:function(t){const n=Nx(t,!0);switch(n.kind){case 213:return e.createParenthesizedExpression(t);case 214:return n.arguments?t:e.createParenthesizedExpression(t)}return s(t)},parenthesizeLeftSideOfAccess:s,parenthesizeOperandOfPostfixUnary:function(t){return R_(t)?t:nI(e.createParenthesizedExpression(t),t)},parenthesizeOperandOfPrefixUnary:function(t){return B_(t)?t:nI(e.createParenthesizedExpression(t),t)},parenthesizeExpressionsOfCommaDelimitedList:function(t){const n=A(t,c);return nI(e.createNodeArray(n,t.hasTrailingComma),t)},parenthesizeExpressionForDisallowedComma:c,parenthesizeExpressionOfExpressionStatement:function(t){const n=kl(t);if(GD(n)){const r=n.expression,i=kl(r).kind;if(218===i||219===i){const i=e.updateCallExpression(n,nI(e.createParenthesizedExpression(r),r),n.typeArguments,n.arguments);return e.restoreOuterExpressions(t,i,8)}}const r=Nx(n,!1).kind;return 210===r||218===r?nI(e.createParenthesizedExpression(t),t):t},parenthesizeConciseBodyOfArrowFunction:function(t){return CF(t)||!iA(t)&&210!==Nx(t,!1).kind?t:nI(e.createParenthesizedExpression(t),t)},parenthesizeCheckTypeOfConditionalType:l,parenthesizeExtendsTypeOfConditionalType:function(t){return 194===t.kind?e.createParenthesizedType(t):t},parenthesizeConstituentTypesOfUnionType:function(t){return e.createNodeArray(A(t,_))},parenthesizeConstituentTypeOfUnionType:_,parenthesizeConstituentTypesOfIntersectionType:function(t){return e.createNodeArray(A(t,u))},parenthesizeConstituentTypeOfIntersectionType:u,parenthesizeOperandOfTypeOperator:d,parenthesizeOperandOfReadonlyTypeOperator:function(t){return 198===t.kind?e.createParenthesizedType(t):d(t)},parenthesizeNonArrayTypeOfPostfixType:p,parenthesizeElementTypesOfTupleType:function(t){return e.createNodeArray(A(t,f))},parenthesizeElementTypeOfTupleType:f,parenthesizeTypeOfOptionalType:function(t){return m(t)?e.createParenthesizedType(t):p(t)},parenthesizeTypeArguments:function(t){if($(t))return e.createNodeArray(A(t,h))},parenthesizeLeadingTypeArgument:g};function r(e){if(Pl((e=kl(e)).kind))return e.kind;if(226===e.kind&&40===e.operatorToken.kind){if(void 0!==e.cachedLiteralKind)return e.cachedLiteralKind;const t=r(e.left),n=Pl(t)&&t===r(e.right)?t:0;return e.cachedLiteralKind=n,n}return 0}function i(t,n,i,o){return 217===kl(n).kind?n:function(e,t,n,i){const o=ay(226,e),a=ny(226,e),s=kl(t);if(!n&&219===t.kind&&o>3)return!0;switch(vt(ry(s),o)){case-1:return!(!n&&1===a&&229===t.kind);case 1:return!1;case 0:if(n)return 1===a;if(cF(s)&&s.operatorToken.kind===e){if(function(e){return 42===e||52===e||51===e||53===e||28===e}(e))return!1;if(40===e){const e=i?r(i):0;if(Pl(e)&&e===r(s))return!1}}return 0===ty(s)}}(t,n,i,o)?e.createParenthesizedExpression(n):n}function o(e,t){return i(e,t,!0)}function a(e,t,n){return i(e,n,!1,t)}function s(t,n){const r=kl(t);return!R_(r)||214===r.kind&&!r.arguments||!n&&gl(r)?nI(e.createParenthesizedExpression(t),t):t}function c(t){return ry(kl(t))>ay(226,28)?t:nI(e.createParenthesizedExpression(t),t)}function l(t){switch(t.kind){case 184:case 185:case 194:return e.createParenthesizedType(t)}return t}function _(t){switch(t.kind){case 192:case 193:return e.createParenthesizedType(t)}return l(t)}function u(t){switch(t.kind){case 192:case 193:return e.createParenthesizedType(t)}return _(t)}function d(t){return 193===t.kind?e.createParenthesizedType(t):u(t)}function p(t){switch(t.kind){case 195:case 198:case 186:return e.createParenthesizedType(t)}return d(t)}function f(t){return m(t)?e.createParenthesizedType(t):t}function m(e){return YE(e)?e.postfix:wD(e)||bD(e)||xD(e)||LD(e)?m(e.type):PD(e)?m(e.falseType):FD(e)||ED(e)?m(ve(e.types)):!!AD(e)&&!!e.typeParameter.constraint&&m(e.typeParameter.constraint)}function g(t){return b_(t)&&t.typeParameters?e.createParenthesizedType(t):t}function h(e,t){return 0===t?g(e):e}}var PC={getParenthesizeLeftSideOfBinaryForOperator:e=>st,getParenthesizeRightSideOfBinaryForOperator:e=>st,parenthesizeLeftSideOfBinary:(e,t)=>t,parenthesizeRightSideOfBinary:(e,t,n)=>n,parenthesizeExpressionOfComputedPropertyName:st,parenthesizeConditionOfConditionalExpression:st,parenthesizeBranchOfConditionalExpression:st,parenthesizeExpressionOfExportDefault:st,parenthesizeExpressionOfNew:e=>nt(e,R_),parenthesizeLeftSideOfAccess:e=>nt(e,R_),parenthesizeOperandOfPostfixUnary:e=>nt(e,R_),parenthesizeOperandOfPrefixUnary:e=>nt(e,B_),parenthesizeExpressionsOfCommaDelimitedList:e=>nt(e,El),parenthesizeExpressionForDisallowedComma:st,parenthesizeExpressionOfExpressionStatement:st,parenthesizeConciseBodyOfArrowFunction:st,parenthesizeCheckTypeOfConditionalType:st,parenthesizeExtendsTypeOfConditionalType:st,parenthesizeConstituentTypesOfUnionType:e=>nt(e,El),parenthesizeConstituentTypeOfUnionType:st,parenthesizeConstituentTypesOfIntersectionType:e=>nt(e,El),parenthesizeConstituentTypeOfIntersectionType:st,parenthesizeOperandOfTypeOperator:st,parenthesizeOperandOfReadonlyTypeOperator:st,parenthesizeNonArrayTypeOfPostfixType:st,parenthesizeElementTypesOfTupleType:e=>nt(e,El),parenthesizeElementTypeOfTupleType:st,parenthesizeTypeOfOptionalType:st,parenthesizeTypeArguments:e=>e&&nt(e,El),parenthesizeLeadingTypeArgument:st};function AC(e){return{convertToFunctionBlock:function(t,n){if(CF(t))return t;const r=e.createReturnStatement(t);nI(r,t);const i=e.createBlock([r],n);return nI(i,t),i},convertToFunctionExpression:function(t){var n;if(!t.body)return un.fail("Cannot convert a FunctionDeclaration without a body");const r=e.createFunctionExpression(null==(n=Nc(t))?void 0:n.filter((e=>!UN(e)&&!VN(e))),t.asteriskToken,t.name,t.typeParameters,t.parameters,t.type,t.body);return YC(r,t),nI(r,t),_w(t)&&uw(r,!0),r},convertToClassExpression:function(t){var n;const r=e.createClassExpression(null==(n=t.modifiers)?void 0:n.filter((e=>!UN(e)&&!VN(e))),t.name,t.typeParameters,t.heritageClauses,t.members);return YC(r,t),nI(r,t),_w(t)&&uw(r,!0),r},convertToArrayAssignmentElement:t,convertToObjectAssignmentElement:n,convertToAssignmentPattern:r,convertToObjectAssignmentPattern:i,convertToArrayAssignmentPattern:o,convertToAssignmentElementTarget:a};function t(t){if(VD(t)){if(t.dotDotDotToken)return un.assertNode(t.name,zN),YC(nI(e.createSpreadElement(t.name),t),t);const n=a(t.name);return t.initializer?YC(nI(e.createAssignment(n,t.initializer),t),t):n}return nt(t,U_)}function n(t){if(VD(t)){if(t.dotDotDotToken)return un.assertNode(t.name,zN),YC(nI(e.createSpreadAssignment(t.name),t),t);if(t.propertyName){const n=a(t.name);return YC(nI(e.createPropertyAssignment(t.propertyName,t.initializer?e.createAssignment(n,t.initializer):n),t),t)}return un.assertNode(t.name,zN),YC(nI(e.createShorthandPropertyAssignment(t.name,t.initializer),t),t)}return nt(t,y_)}function r(e){switch(e.kind){case 207:case 209:return o(e);case 206:case 210:return i(e)}}function i(t){return qD(t)?YC(nI(e.createObjectLiteralExpression(E(t.elements,n)),t),t):nt(t,$D)}function o(n){return UD(n)?YC(nI(e.createArrayLiteralExpression(E(n.elements,t)),n),n):nt(n,WD)}function a(e){return x_(e)?r(e):nt(e,U_)}}var IC,OC={convertToFunctionBlock:ut,convertToFunctionExpression:ut,convertToClassExpression:ut,convertToArrayAssignmentElement:ut,convertToObjectAssignmentElement:ut,convertToAssignmentPattern:ut,convertToObjectAssignmentPattern:ut,convertToArrayAssignmentPattern:ut,convertToAssignmentElementTarget:ut},LC=0,jC=(e=>(e[e.None=0]="None",e[e.NoParenthesizerRules=1]="NoParenthesizerRules",e[e.NoNodeConverters=2]="NoNodeConverters",e[e.NoIndentationOnFreshPropertyAccess=4]="NoIndentationOnFreshPropertyAccess",e[e.NoOriginalNode=8]="NoOriginalNode",e))(jC||{}),RC=[];function MC(e){RC.push(e)}function BC(e,t){const n=8&e?st:YC,r=dt((()=>1&e?PC:EC(b))),i=dt((()=>2&e?OC:AC(b))),o=pt((e=>(t,n)=>Ot(t,e,n))),a=pt((e=>t=>At(e,t))),s=pt((e=>t=>It(t,e))),c=pt((e=>()=>function(e){return k(e)}(e))),_=pt((e=>t=>dr(e,t))),u=pt((e=>(t,n)=>function(e,t,n){return t.type!==n?Ii(dr(e,n),t):t}(e,t,n))),p=pt((e=>(t,n)=>ur(e,t,n))),f=pt((e=>(t,n)=>function(e,t,n){return t.type!==n?Ii(ur(e,n,t.postfix),t):t}(e,t,n))),m=pt((e=>(t,n)=>Or(e,t,n))),g=pt((e=>(t,n,r)=>function(e,t,n=hr(t),r){return t.tagName!==n||t.comment!==r?Ii(Or(e,n,r),t):t}(e,t,n,r))),h=pt((e=>(t,n,r)=>Lr(e,t,n,r))),y=pt((e=>(t,n,r,i)=>function(e,t,n=hr(t),r,i){return t.tagName!==n||t.typeExpression!==r||t.comment!==i?Ii(Lr(e,n,r,i),t):t}(e,t,n,r,i))),b={get parenthesizer(){return r()},get converters(){return i()},baseFactory:t,flags:e,createNodeArray:x,createNumericLiteral:C,createBigIntLiteral:w,createStringLiteral:D,createStringLiteralFromNode:function(e){const t=N(zh(e),void 0);return t.textSourceNode=e,t},createRegularExpressionLiteral:F,createLiteralLikeNode:function(e,t){switch(e){case 9:return C(t,0);case 10:return w(t);case 11:return D(t,void 0);case 12:return $r(t,!1);case 13:return $r(t,!0);case 14:return F(t);case 15:return zt(e,t,void 0,0)}},createIdentifier:A,createTempVariable:I,createLoopVariable:function(e){let t=2;return e&&(t|=8),P("",t,void 0,void 0)},createUniqueName:function(e,t=0,n,r){return un.assert(!(7&t),"Argument out of range: flags"),un.assert(32!=(48&t),"GeneratedIdentifierFlags.FileLevel cannot be set without also setting GeneratedIdentifierFlags.Optimistic"),P(e,3|t,n,r)},getGeneratedNameForNode:O,createPrivateIdentifier:function(e){return Gt(e,"#")||un.fail("First character of private identifier must be #: "+e),L(pc(e))},createUniquePrivateName:function(e,t,n){return e&&!Gt(e,"#")&&un.fail("First character of private identifier must be #: "+e),j(e??"",8|(e?3:1),t,n)},getGeneratedPrivateNameForNode:function(e,t,n){const r=j(ul(e)?KA(!0,t,e,n,mc):`#generated@${jB(e)}`,4|(t||n?16:0),t,n);return r.original=e,r},createToken:B,createSuper:function(){return B(108)},createThis:J,createNull:z,createTrue:q,createFalse:U,createModifier:V,createModifiersFromModifierFlags:W,createQualifiedName:H,updateQualifiedName:function(e,t,n){return e.left!==t||e.right!==n?Ii(H(t,n),e):e},createComputedPropertyName:K,updateComputedPropertyName:function(e,t){return e.expression!==t?Ii(K(t),e):e},createTypeParameterDeclaration:G,updateTypeParameterDeclaration:X,createParameterDeclaration:Q,updateParameterDeclaration:Y,createDecorator:Z,updateDecorator:function(e,t){return e.expression!==t?Ii(Z(t),e):e},createPropertySignature:ee,updatePropertySignature:te,createPropertyDeclaration:ne,updatePropertyDeclaration:re,createMethodSignature:oe,updateMethodSignature:ae,createMethodDeclaration:se,updateMethodDeclaration:ce,createConstructorDeclaration:_e,updateConstructorDeclaration:ue,createGetAccessorDeclaration:de,updateGetAccessorDeclaration:pe,createSetAccessorDeclaration:fe,updateSetAccessorDeclaration:me,createCallSignature:ge,updateCallSignature:function(e,t,n,r){return e.typeParameters!==t||e.parameters!==n||e.type!==r?T(ge(t,n,r),e):e},createConstructSignature:he,updateConstructSignature:function(e,t,n,r){return e.typeParameters!==t||e.parameters!==n||e.type!==r?T(he(t,n,r),e):e},createIndexSignature:ve,updateIndexSignature:xe,createClassStaticBlockDeclaration:le,updateClassStaticBlockDeclaration:function(e,t){return e.body!==t?((n=le(t))!==(r=e)&&(n.modifiers=r.modifiers),Ii(n,r)):e;var n,r},createTemplateLiteralTypeSpan:ke,updateTemplateLiteralTypeSpan:function(e,t,n){return e.type!==t||e.literal!==n?Ii(ke(t,n),e):e},createKeywordTypeNode:function(e){return B(e)},createTypePredicateNode:Se,updateTypePredicateNode:function(e,t,n,r){return e.assertsModifier!==t||e.parameterName!==n||e.type!==r?Ii(Se(t,n,r),e):e},createTypeReferenceNode:Te,updateTypeReferenceNode:function(e,t,n){return e.typeName!==t||e.typeArguments!==n?Ii(Te(t,n),e):e},createFunctionTypeNode:Ce,updateFunctionTypeNode:function(e,t,n,r){return e.typeParameters!==t||e.parameters!==n||e.type!==r?((i=Ce(t,n,r))!==(o=e)&&(i.modifiers=o.modifiers),T(i,o)):e;var i,o},createConstructorTypeNode:Ne,updateConstructorTypeNode:function(...e){return 5===e.length?Ee(...e):4===e.length?function(e,t,n,r){return Ee(e,e.modifiers,t,n,r)}(...e):un.fail("Incorrect number of arguments specified.")},createTypeQueryNode:Pe,updateTypeQueryNode:function(e,t,n){return e.exprName!==t||e.typeArguments!==n?Ii(Pe(t,n),e):e},createTypeLiteralNode:Ae,updateTypeLiteralNode:function(e,t){return e.members!==t?Ii(Ae(t),e):e},createArrayTypeNode:Ie,updateArrayTypeNode:function(e,t){return e.elementType!==t?Ii(Ie(t),e):e},createTupleTypeNode:Oe,updateTupleTypeNode:function(e,t){return e.elements!==t?Ii(Oe(t),e):e},createNamedTupleMember:Le,updateNamedTupleMember:function(e,t,n,r,i){return e.dotDotDotToken!==t||e.name!==n||e.questionToken!==r||e.type!==i?Ii(Le(t,n,r,i),e):e},createOptionalTypeNode:je,updateOptionalTypeNode:function(e,t){return e.type!==t?Ii(je(t),e):e},createRestTypeNode:Re,updateRestTypeNode:function(e,t){return e.type!==t?Ii(Re(t),e):e},createUnionTypeNode:function(e){return Me(192,e,r().parenthesizeConstituentTypesOfUnionType)},updateUnionTypeNode:function(e,t){return Be(e,t,r().parenthesizeConstituentTypesOfUnionType)},createIntersectionTypeNode:function(e){return Me(193,e,r().parenthesizeConstituentTypesOfIntersectionType)},updateIntersectionTypeNode:function(e,t){return Be(e,t,r().parenthesizeConstituentTypesOfIntersectionType)},createConditionalTypeNode:Je,updateConditionalTypeNode:function(e,t,n,r,i){return e.checkType!==t||e.extendsType!==n||e.trueType!==r||e.falseType!==i?Ii(Je(t,n,r,i),e):e},createInferTypeNode:ze,updateInferTypeNode:function(e,t){return e.typeParameter!==t?Ii(ze(t),e):e},createImportTypeNode:Ue,updateImportTypeNode:function(e,t,n,r,i,o=e.isTypeOf){return e.argument!==t||e.attributes!==n||e.qualifier!==r||e.typeArguments!==i||e.isTypeOf!==o?Ii(Ue(t,n,r,i,o),e):e},createParenthesizedType:Ve,updateParenthesizedType:function(e,t){return e.type!==t?Ii(Ve(t),e):e},createThisTypeNode:function(){const e=k(197);return e.transformFlags=1,e},createTypeOperatorNode:We,updateTypeOperatorNode:function(e,t){return e.type!==t?Ii(We(e.operator,t),e):e},createIndexedAccessTypeNode:$e,updateIndexedAccessTypeNode:function(e,t,n){return e.objectType!==t||e.indexType!==n?Ii($e(t,n),e):e},createMappedTypeNode:He,updateMappedTypeNode:function(e,t,n,r,i,o,a){return e.readonlyToken!==t||e.typeParameter!==n||e.nameType!==r||e.questionToken!==i||e.type!==o||e.members!==a?Ii(He(t,n,r,i,o,a),e):e},createLiteralTypeNode:Ke,updateLiteralTypeNode:function(e,t){return e.literal!==t?Ii(Ke(t),e):e},createTemplateLiteralType:qe,updateTemplateLiteralType:function(e,t,n){return e.head!==t||e.templateSpans!==n?Ii(qe(t,n),e):e},createObjectBindingPattern:Ge,updateObjectBindingPattern:function(e,t){return e.elements!==t?Ii(Ge(t),e):e},createArrayBindingPattern:Xe,updateArrayBindingPattern:function(e,t){return e.elements!==t?Ii(Xe(t),e):e},createBindingElement:Ye,updateBindingElement:function(e,t,n,r,i){return e.propertyName!==n||e.dotDotDotToken!==t||e.name!==r||e.initializer!==i?Ii(Ye(t,n,r,i),e):e},createArrayLiteralExpression:Ze,updateArrayLiteralExpression:function(e,t){return e.elements!==t?Ii(Ze(t,e.multiLine),e):e},createObjectLiteralExpression:et,updateObjectLiteralExpression:function(e,t){return e.properties!==t?Ii(et(t,e.multiLine),e):e},createPropertyAccessExpression:4&e?(e,t)=>nw(rt(e,t),262144):rt,updatePropertyAccessExpression:function(e,t,n){return pl(e)?at(e,t,e.questionDotToken,nt(n,zN)):e.expression!==t||e.name!==n?Ii(rt(t,n),e):e},createPropertyAccessChain:4&e?(e,t,n)=>nw(it(e,t,n),262144):it,updatePropertyAccessChain:at,createElementAccessExpression:lt,updateElementAccessExpression:function(e,t,n){return fl(e)?ut(e,t,e.questionDotToken,n):e.expression!==t||e.argumentExpression!==n?Ii(lt(t,n),e):e},createElementAccessChain:_t,updateElementAccessChain:ut,createCallExpression:mt,updateCallExpression:function(e,t,n,r){return ml(e)?ht(e,t,e.questionDotToken,n,r):e.expression!==t||e.typeArguments!==n||e.arguments!==r?Ii(mt(t,n,r),e):e},createCallChain:gt,updateCallChain:ht,createNewExpression:yt,updateNewExpression:function(e,t,n,r){return e.expression!==t||e.typeArguments!==n||e.arguments!==r?Ii(yt(t,n,r),e):e},createTaggedTemplateExpression:vt,updateTaggedTemplateExpression:function(e,t,n,r){return e.tag!==t||e.typeArguments!==n||e.template!==r?Ii(vt(t,n,r),e):e},createTypeAssertion:bt,updateTypeAssertion:xt,createParenthesizedExpression:kt,updateParenthesizedExpression:St,createFunctionExpression:Tt,updateFunctionExpression:Ct,createArrowFunction:wt,updateArrowFunction:Nt,createDeleteExpression:Dt,updateDeleteExpression:function(e,t){return e.expression!==t?Ii(Dt(t),e):e},createTypeOfExpression:Ft,updateTypeOfExpression:function(e,t){return e.expression!==t?Ii(Ft(t),e):e},createVoidExpression:Et,updateVoidExpression:function(e,t){return e.expression!==t?Ii(Et(t),e):e},createAwaitExpression:Pt,updateAwaitExpression:function(e,t){return e.expression!==t?Ii(Pt(t),e):e},createPrefixUnaryExpression:At,updatePrefixUnaryExpression:function(e,t){return e.operand!==t?Ii(At(e.operator,t),e):e},createPostfixUnaryExpression:It,updatePostfixUnaryExpression:function(e,t){return e.operand!==t?Ii(It(t,e.operator),e):e},createBinaryExpression:Ot,updateBinaryExpression:function(e,t,n,r){return e.left!==t||e.operatorToken!==n||e.right!==r?Ii(Ot(t,n,r),e):e},createConditionalExpression:jt,updateConditionalExpression:function(e,t,n,r,i,o){return e.condition!==t||e.questionToken!==n||e.whenTrue!==r||e.colonToken!==i||e.whenFalse!==o?Ii(jt(t,n,r,i,o),e):e},createTemplateExpression:Rt,updateTemplateExpression:function(e,t,n){return e.head!==t||e.templateSpans!==n?Ii(Rt(t,n),e):e},createTemplateHead:function(e,t,n){return zt(16,e=Mt(16,e,t,n),t,n)},createTemplateMiddle:function(e,t,n){return zt(17,e=Mt(16,e,t,n),t,n)},createTemplateTail:function(e,t,n){return zt(18,e=Mt(16,e,t,n),t,n)},createNoSubstitutionTemplateLiteral:function(e,t,n){return Jt(15,e=Mt(16,e,t,n),t,n)},createTemplateLiteralLikeNode:zt,createYieldExpression:qt,updateYieldExpression:function(e,t,n){return e.expression!==n||e.asteriskToken!==t?Ii(qt(t,n),e):e},createSpreadElement:Ut,updateSpreadElement:function(e,t){return e.expression!==t?Ii(Ut(t),e):e},createClassExpression:Vt,updateClassExpression:Wt,createOmittedExpression:function(){return k(232)},createExpressionWithTypeArguments:$t,updateExpressionWithTypeArguments:Ht,createAsExpression:Kt,updateAsExpression:Xt,createNonNullExpression:Qt,updateNonNullExpression:Yt,createSatisfiesExpression:Zt,updateSatisfiesExpression:en,createNonNullChain:tn,updateNonNullChain:nn,createMetaProperty:rn,updateMetaProperty:function(e,t){return e.name!==t?Ii(rn(e.keywordToken,t),e):e},createTemplateSpan:on,updateTemplateSpan:function(e,t,n){return e.expression!==t||e.literal!==n?Ii(on(t,n),e):e},createSemicolonClassElement:function(){const e=k(240);return e.transformFlags|=1024,e},createBlock:an,updateBlock:function(e,t){return e.statements!==t?Ii(an(t,e.multiLine),e):e},createVariableStatement:sn,updateVariableStatement:cn,createEmptyStatement:ln,createExpressionStatement:_n,updateExpressionStatement:function(e,t){return e.expression!==t?Ii(_n(t),e):e},createIfStatement:dn,updateIfStatement:function(e,t,n,r){return e.expression!==t||e.thenStatement!==n||e.elseStatement!==r?Ii(dn(t,n,r),e):e},createDoStatement:pn,updateDoStatement:function(e,t,n){return e.statement!==t||e.expression!==n?Ii(pn(t,n),e):e},createWhileStatement:fn,updateWhileStatement:function(e,t,n){return e.expression!==t||e.statement!==n?Ii(fn(t,n),e):e},createForStatement:mn,updateForStatement:function(e,t,n,r,i){return e.initializer!==t||e.condition!==n||e.incrementor!==r||e.statement!==i?Ii(mn(t,n,r,i),e):e},createForInStatement:gn,updateForInStatement:function(e,t,n,r){return e.initializer!==t||e.expression!==n||e.statement!==r?Ii(gn(t,n,r),e):e},createForOfStatement:hn,updateForOfStatement:function(e,t,n,r,i){return e.awaitModifier!==t||e.initializer!==n||e.expression!==r||e.statement!==i?Ii(hn(t,n,r,i),e):e},createContinueStatement:yn,updateContinueStatement:function(e,t){return e.label!==t?Ii(yn(t),e):e},createBreakStatement:vn,updateBreakStatement:function(e,t){return e.label!==t?Ii(vn(t),e):e},createReturnStatement:bn,updateReturnStatement:function(e,t){return e.expression!==t?Ii(bn(t),e):e},createWithStatement:xn,updateWithStatement:function(e,t,n){return e.expression!==t||e.statement!==n?Ii(xn(t,n),e):e},createSwitchStatement:kn,updateSwitchStatement:function(e,t,n){return e.expression!==t||e.caseBlock!==n?Ii(kn(t,n),e):e},createLabeledStatement:Sn,updateLabeledStatement:Tn,createThrowStatement:Cn,updateThrowStatement:function(e,t){return e.expression!==t?Ii(Cn(t),e):e},createTryStatement:wn,updateTryStatement:function(e,t,n,r){return e.tryBlock!==t||e.catchClause!==n||e.finallyBlock!==r?Ii(wn(t,n,r),e):e},createDebuggerStatement:function(){const e=k(259);return e.jsDoc=void 0,e.flowNode=void 0,e},createVariableDeclaration:Nn,updateVariableDeclaration:function(e,t,n,r,i){return e.name!==t||e.type!==r||e.exclamationToken!==n||e.initializer!==i?Ii(Nn(t,n,r,i),e):e},createVariableDeclarationList:Dn,updateVariableDeclarationList:function(e,t){return e.declarations!==t?Ii(Dn(t,e.flags),e):e},createFunctionDeclaration:Fn,updateFunctionDeclaration:En,createClassDeclaration:Pn,updateClassDeclaration:An,createInterfaceDeclaration:In,updateInterfaceDeclaration:On,createTypeAliasDeclaration:Ln,updateTypeAliasDeclaration:jn,createEnumDeclaration:Rn,updateEnumDeclaration:Mn,createModuleDeclaration:Bn,updateModuleDeclaration:Jn,createModuleBlock:zn,updateModuleBlock:function(e,t){return e.statements!==t?Ii(zn(t),e):e},createCaseBlock:qn,updateCaseBlock:function(e,t){return e.clauses!==t?Ii(qn(t),e):e},createNamespaceExportDeclaration:Un,updateNamespaceExportDeclaration:function(e,t){return e.name!==t?((n=Un(t))!==(r=e)&&(n.modifiers=r.modifiers),Ii(n,r)):e;var n,r},createImportEqualsDeclaration:Vn,updateImportEqualsDeclaration:Wn,createImportDeclaration:$n,updateImportDeclaration:Hn,createImportClause:Kn,updateImportClause:function(e,t,n,r){return e.isTypeOnly!==t||e.name!==n||e.namedBindings!==r?Ii(Kn(t,n,r),e):e},createAssertClause:Gn,updateAssertClause:function(e,t,n){return e.elements!==t||e.multiLine!==n?Ii(Gn(t,n),e):e},createAssertEntry:Xn,updateAssertEntry:function(e,t,n){return e.name!==t||e.value!==n?Ii(Xn(t,n),e):e},createImportTypeAssertionContainer:Qn,updateImportTypeAssertionContainer:function(e,t,n){return e.assertClause!==t||e.multiLine!==n?Ii(Qn(t,n),e):e},createImportAttributes:Yn,updateImportAttributes:function(e,t,n){return e.elements!==t||e.multiLine!==n?Ii(Yn(t,n,e.token),e):e},createImportAttribute:Zn,updateImportAttribute:function(e,t,n){return e.name!==t||e.value!==n?Ii(Zn(t,n),e):e},createNamespaceImport:er,updateNamespaceImport:function(e,t){return e.name!==t?Ii(er(t),e):e},createNamespaceExport:tr,updateNamespaceExport:function(e,t){return e.name!==t?Ii(tr(t),e):e},createNamedImports:nr,updateNamedImports:function(e,t){return e.elements!==t?Ii(nr(t),e):e},createImportSpecifier:rr,updateImportSpecifier:function(e,t,n,r){return e.isTypeOnly!==t||e.propertyName!==n||e.name!==r?Ii(rr(t,n,r),e):e},createExportAssignment:ir,updateExportAssignment:or,createExportDeclaration:ar,updateExportDeclaration:sr,createNamedExports:cr,updateNamedExports:function(e,t){return e.elements!==t?Ii(cr(t),e):e},createExportSpecifier:lr,updateExportSpecifier:function(e,t,n,r){return e.isTypeOnly!==t||e.propertyName!==n||e.name!==r?Ii(lr(t,n,r),e):e},createMissingDeclaration:function(){const e=S(282);return e.jsDoc=void 0,e},createExternalModuleReference:_r,updateExternalModuleReference:function(e,t){return e.expression!==t?Ii(_r(t),e):e},get createJSDocAllType(){return c(312)},get createJSDocUnknownType(){return c(313)},get createJSDocNonNullableType(){return p(315)},get updateJSDocNonNullableType(){return f(315)},get createJSDocNullableType(){return p(314)},get updateJSDocNullableType(){return f(314)},get createJSDocOptionalType(){return _(316)},get updateJSDocOptionalType(){return u(316)},get createJSDocVariadicType(){return _(318)},get updateJSDocVariadicType(){return u(318)},get createJSDocNamepathType(){return _(319)},get updateJSDocNamepathType(){return u(319)},createJSDocFunctionType:pr,updateJSDocFunctionType:function(e,t,n){return e.parameters!==t||e.type!==n?Ii(pr(t,n),e):e},createJSDocTypeLiteral:fr,updateJSDocTypeLiteral:function(e,t,n){return e.jsDocPropertyTags!==t||e.isArrayType!==n?Ii(fr(t,n),e):e},createJSDocTypeExpression:mr,updateJSDocTypeExpression:function(e,t){return e.type!==t?Ii(mr(t),e):e},createJSDocSignature:gr,updateJSDocSignature:function(e,t,n,r){return e.typeParameters!==t||e.parameters!==n||e.type!==r?Ii(gr(t,n,r),e):e},createJSDocTemplateTag:br,updateJSDocTemplateTag:function(e,t=hr(e),n,r,i){return e.tagName!==t||e.constraint!==n||e.typeParameters!==r||e.comment!==i?Ii(br(t,n,r,i),e):e},createJSDocTypedefTag:xr,updateJSDocTypedefTag:function(e,t=hr(e),n,r,i){return e.tagName!==t||e.typeExpression!==n||e.fullName!==r||e.comment!==i?Ii(xr(t,n,r,i),e):e},createJSDocParameterTag:kr,updateJSDocParameterTag:function(e,t=hr(e),n,r,i,o,a){return e.tagName!==t||e.name!==n||e.isBracketed!==r||e.typeExpression!==i||e.isNameFirst!==o||e.comment!==a?Ii(kr(t,n,r,i,o,a),e):e},createJSDocPropertyTag:Sr,updateJSDocPropertyTag:function(e,t=hr(e),n,r,i,o,a){return e.tagName!==t||e.name!==n||e.isBracketed!==r||e.typeExpression!==i||e.isNameFirst!==o||e.comment!==a?Ii(Sr(t,n,r,i,o,a),e):e},createJSDocCallbackTag:Tr,updateJSDocCallbackTag:function(e,t=hr(e),n,r,i){return e.tagName!==t||e.typeExpression!==n||e.fullName!==r||e.comment!==i?Ii(Tr(t,n,r,i),e):e},createJSDocOverloadTag:Cr,updateJSDocOverloadTag:function(e,t=hr(e),n,r){return e.tagName!==t||e.typeExpression!==n||e.comment!==r?Ii(Cr(t,n,r),e):e},createJSDocAugmentsTag:wr,updateJSDocAugmentsTag:function(e,t=hr(e),n,r){return e.tagName!==t||e.class!==n||e.comment!==r?Ii(wr(t,n,r),e):e},createJSDocImplementsTag:Nr,updateJSDocImplementsTag:function(e,t=hr(e),n,r){return e.tagName!==t||e.class!==n||e.comment!==r?Ii(Nr(t,n,r),e):e},createJSDocSeeTag:Dr,updateJSDocSeeTag:function(e,t,n,r){return e.tagName!==t||e.name!==n||e.comment!==r?Ii(Dr(t,n,r),e):e},createJSDocImportTag:Mr,updateJSDocImportTag:function(e,t,n,r,i,o){return e.tagName!==t||e.comment!==o||e.importClause!==n||e.moduleSpecifier!==r||e.attributes!==i?Ii(Mr(t,n,r,i,o),e):e},createJSDocNameReference:Fr,updateJSDocNameReference:function(e,t){return e.name!==t?Ii(Fr(t),e):e},createJSDocMemberName:Er,updateJSDocMemberName:function(e,t,n){return e.left!==t||e.right!==n?Ii(Er(t,n),e):e},createJSDocLink:Pr,updateJSDocLink:function(e,t,n){return e.name!==t?Ii(Pr(t,n),e):e},createJSDocLinkCode:Ar,updateJSDocLinkCode:function(e,t,n){return e.name!==t?Ii(Ar(t,n),e):e},createJSDocLinkPlain:Ir,updateJSDocLinkPlain:function(e,t,n){return e.name!==t?Ii(Ir(t,n),e):e},get createJSDocTypeTag(){return h(344)},get updateJSDocTypeTag(){return y(344)},get createJSDocReturnTag(){return h(342)},get updateJSDocReturnTag(){return y(342)},get createJSDocThisTag(){return h(343)},get updateJSDocThisTag(){return y(343)},get createJSDocAuthorTag(){return m(330)},get updateJSDocAuthorTag(){return g(330)},get createJSDocClassTag(){return m(332)},get updateJSDocClassTag(){return g(332)},get createJSDocPublicTag(){return m(333)},get updateJSDocPublicTag(){return g(333)},get createJSDocPrivateTag(){return m(334)},get updateJSDocPrivateTag(){return g(334)},get createJSDocProtectedTag(){return m(335)},get updateJSDocProtectedTag(){return g(335)},get createJSDocReadonlyTag(){return m(336)},get updateJSDocReadonlyTag(){return g(336)},get createJSDocOverrideTag(){return m(337)},get updateJSDocOverrideTag(){return g(337)},get createJSDocDeprecatedTag(){return m(331)},get updateJSDocDeprecatedTag(){return g(331)},get createJSDocThrowsTag(){return h(349)},get updateJSDocThrowsTag(){return y(349)},get createJSDocSatisfiesTag(){return h(350)},get updateJSDocSatisfiesTag(){return y(350)},createJSDocEnumTag:Rr,updateJSDocEnumTag:function(e,t=hr(e),n,r){return e.tagName!==t||e.typeExpression!==n||e.comment!==r?Ii(Rr(t,n,r),e):e},createJSDocUnknownTag:jr,updateJSDocUnknownTag:function(e,t,n){return e.tagName!==t||e.comment!==n?Ii(jr(t,n),e):e},createJSDocText:Br,updateJSDocText:function(e,t){return e.text!==t?Ii(Br(t),e):e},createJSDocComment:Jr,updateJSDocComment:function(e,t,n){return e.comment!==t||e.tags!==n?Ii(Jr(t,n),e):e},createJsxElement:zr,updateJsxElement:function(e,t,n,r){return e.openingElement!==t||e.children!==n||e.closingElement!==r?Ii(zr(t,n,r),e):e},createJsxSelfClosingElement:qr,updateJsxSelfClosingElement:function(e,t,n,r){return e.tagName!==t||e.typeArguments!==n||e.attributes!==r?Ii(qr(t,n,r),e):e},createJsxOpeningElement:Ur,updateJsxOpeningElement:function(e,t,n,r){return e.tagName!==t||e.typeArguments!==n||e.attributes!==r?Ii(Ur(t,n,r),e):e},createJsxClosingElement:Vr,updateJsxClosingElement:function(e,t){return e.tagName!==t?Ii(Vr(t),e):e},createJsxFragment:Wr,createJsxText:$r,updateJsxText:function(e,t,n){return e.text!==t||e.containsOnlyTriviaWhiteSpaces!==n?Ii($r(t,n),e):e},createJsxOpeningFragment:function(){const e=k(289);return e.transformFlags|=2,e},createJsxJsxClosingFragment:function(){const e=k(290);return e.transformFlags|=2,e},updateJsxFragment:function(e,t,n,r){return e.openingFragment!==t||e.children!==n||e.closingFragment!==r?Ii(Wr(t,n,r),e):e},createJsxAttribute:Hr,updateJsxAttribute:function(e,t,n){return e.name!==t||e.initializer!==n?Ii(Hr(t,n),e):e},createJsxAttributes:Kr,updateJsxAttributes:function(e,t){return e.properties!==t?Ii(Kr(t),e):e},createJsxSpreadAttribute:Gr,updateJsxSpreadAttribute:function(e,t){return e.expression!==t?Ii(Gr(t),e):e},createJsxExpression:Xr,updateJsxExpression:function(e,t){return e.expression!==t?Ii(Xr(e.dotDotDotToken,t),e):e},createJsxNamespacedName:Qr,updateJsxNamespacedName:function(e,t,n){return e.namespace!==t||e.name!==n?Ii(Qr(t,n),e):e},createCaseClause:Yr,updateCaseClause:function(e,t,n){return e.expression!==t||e.statements!==n?Ii(Yr(t,n),e):e},createDefaultClause:Zr,updateDefaultClause:function(e,t){return e.statements!==t?Ii(Zr(t),e):e},createHeritageClause:ei,updateHeritageClause:function(e,t){return e.types!==t?Ii(ei(e.token,t),e):e},createCatchClause:ti,updateCatchClause:function(e,t,n){return e.variableDeclaration!==t||e.block!==n?Ii(ti(t,n),e):e},createPropertyAssignment:ni,updatePropertyAssignment:ri,createShorthandPropertyAssignment:ii,updateShorthandPropertyAssignment:function(e,t,n){return e.name!==t||e.objectAssignmentInitializer!==n?((r=ii(t,n))!==(i=e)&&(r.modifiers=i.modifiers,r.questionToken=i.questionToken,r.exclamationToken=i.exclamationToken,r.equalsToken=i.equalsToken),Ii(r,i)):e;var r,i},createSpreadAssignment:oi,updateSpreadAssignment:function(e,t){return e.expression!==t?Ii(oi(t),e):e},createEnumMember:ai,updateEnumMember:function(e,t,n){return e.name!==t||e.initializer!==n?Ii(ai(t,n),e):e},createSourceFile:function(e,n,r){const i=t.createBaseSourceFileNode(307);return i.statements=x(e),i.endOfFileToken=n,i.flags|=r,i.text="",i.fileName="",i.path="",i.resolvedPath="",i.originalFileName="",i.languageVersion=1,i.languageVariant=0,i.scriptKind=0,i.isDeclarationFile=!1,i.hasNoDefaultLib=!1,i.transformFlags|=WC(i.statements)|VC(i.endOfFileToken),i.locals=void 0,i.nextContainer=void 0,i.endFlowNode=void 0,i.nodeCount=0,i.identifierCount=0,i.symbolCount=0,i.parseDiagnostics=void 0,i.bindDiagnostics=void 0,i.bindSuggestionDiagnostics=void 0,i.lineMap=void 0,i.externalModuleIndicator=void 0,i.setExternalModuleIndicator=void 0,i.pragmas=void 0,i.checkJsDirective=void 0,i.referencedFiles=void 0,i.typeReferenceDirectives=void 0,i.libReferenceDirectives=void 0,i.amdDependencies=void 0,i.commentDirectives=void 0,i.identifiers=void 0,i.packageJsonLocations=void 0,i.packageJsonScope=void 0,i.imports=void 0,i.moduleAugmentations=void 0,i.ambientModuleNames=void 0,i.classifiableNames=void 0,i.impliedNodeFormat=void 0,i},updateSourceFile:function(e,t,n=e.isDeclarationFile,r=e.referencedFiles,i=e.typeReferenceDirectives,o=e.hasNoDefaultLib,a=e.libReferenceDirectives){return e.statements!==t||e.isDeclarationFile!==n||e.referencedFiles!==r||e.typeReferenceDirectives!==i||e.hasNoDefaultLib!==o||e.libReferenceDirectives!==a?Ii(function(e,t,n,r,i,o,a){const s=ci(e);return s.statements=x(t),s.isDeclarationFile=n,s.referencedFiles=r,s.typeReferenceDirectives=i,s.hasNoDefaultLib=o,s.libReferenceDirectives=a,s.transformFlags=WC(s.statements)|VC(s.endOfFileToken),s}(e,t,n,r,i,o,a),e):e},createRedirectedSourceFile:si,createBundle:li,updateBundle:function(e,t){return e.sourceFiles!==t?Ii(li(t),e):e},createSyntheticExpression:function(e,t=!1,n){const r=k(237);return r.type=e,r.isSpread=t,r.tupleNameSource=n,r},createSyntaxList:function(e){const t=k(352);return t._children=e,t},createNotEmittedStatement:function(e){const t=k(353);return t.original=e,nI(t,e),t},createNotEmittedTypeElement:function(){return k(354)},createPartiallyEmittedExpression:_i,updatePartiallyEmittedExpression:ui,createCommaListExpression:pi,updateCommaListExpression:function(e,t){return e.elements!==t?Ii(pi(t),e):e},createSyntheticReferenceExpression:fi,updateSyntheticReferenceExpression:function(e,t,n){return e.expression!==t||e.thisArg!==n?Ii(fi(t,n),e):e},cloneNode:mi,get createComma(){return o(28)},get createAssignment(){return o(64)},get createLogicalOr(){return o(57)},get createLogicalAnd(){return o(56)},get createBitwiseOr(){return o(52)},get createBitwiseXor(){return o(53)},get createBitwiseAnd(){return o(51)},get createStrictEquality(){return o(37)},get createStrictInequality(){return o(38)},get createEquality(){return o(35)},get createInequality(){return o(36)},get createLessThan(){return o(30)},get createLessThanEquals(){return o(33)},get createGreaterThan(){return o(32)},get createGreaterThanEquals(){return o(34)},get createLeftShift(){return o(48)},get createRightShift(){return o(49)},get createUnsignedRightShift(){return o(50)},get createAdd(){return o(40)},get createSubtract(){return o(41)},get createMultiply(){return o(42)},get createDivide(){return o(44)},get createModulo(){return o(45)},get createExponent(){return o(43)},get createPrefixPlus(){return a(40)},get createPrefixMinus(){return a(41)},get createPrefixIncrement(){return a(46)},get createPrefixDecrement(){return a(47)},get createBitwiseNot(){return a(55)},get createLogicalNot(){return a(54)},get createPostfixIncrement(){return s(46)},get createPostfixDecrement(){return s(47)},createImmediatelyInvokedFunctionExpression:function(e,t,n){return mt(Tt(void 0,void 0,void 0,void 0,t?[t]:[],void 0,an(e,!0)),void 0,n?[n]:[])},createImmediatelyInvokedArrowFunction:function(e,t,n){return mt(wt(void 0,void 0,t?[t]:[],void 0,void 0,an(e,!0)),void 0,n?[n]:[])},createVoidZero:gi,createExportDefault:function(e){return ir(void 0,!1,e)},createExternalModuleExport:function(e){return ar(void 0,!1,cr([lr(!1,void 0,e)]))},createTypeCheck:function(e,t){return"null"===t?b.createStrictEquality(e,z()):"undefined"===t?b.createStrictEquality(e,gi()):b.createStrictEquality(Ft(e),D(t))},createIsNotTypeCheck:function(e,t){return"null"===t?b.createStrictInequality(e,z()):"undefined"===t?b.createStrictInequality(e,gi()):b.createStrictInequality(Ft(e),D(t))},createMethodCall:hi,createGlobalMethodCall:yi,createFunctionBindCall:function(e,t,n){return hi(e,"bind",[t,...n])},createFunctionCallCall:function(e,t,n){return hi(e,"call",[t,...n])},createFunctionApplyCall:function(e,t,n){return hi(e,"apply",[t,n])},createArraySliceCall:function(e,t){return hi(e,"slice",void 0===t?[]:[Ei(t)])},createArrayConcatCall:function(e,t){return hi(e,"concat",t)},createObjectDefinePropertyCall:function(e,t,n){return yi("Object","defineProperty",[e,Ei(t),n])},createObjectGetOwnPropertyDescriptorCall:function(e,t){return yi("Object","getOwnPropertyDescriptor",[e,Ei(t)])},createReflectGetCall:function(e,t,n){return yi("Reflect","get",n?[e,t,n]:[e,t])},createReflectSetCall:function(e,t,n,r){return yi("Reflect","set",r?[e,t,n,r]:[e,t,n])},createPropertyDescriptor:function(e,t){const n=[];vi(n,"enumerable",Ei(e.enumerable)),vi(n,"configurable",Ei(e.configurable));let r=vi(n,"writable",Ei(e.writable));r=vi(n,"value",e.value)||r;let i=vi(n,"get",e.get);return i=vi(n,"set",e.set)||i,un.assert(!(r&&i),"A PropertyDescriptor may not be both an accessor descriptor and a data descriptor."),et(n,!t)},createCallBinding:function(e,t,n,i=!1){const o=cA(e,31);let a,s;return om(o)?(a=J(),s=o):ZN(o)?(a=J(),s=void 0!==n&&n<2?nI(A("_super"),o):o):8192&Qd(o)?(a=gi(),s=r().parenthesizeLeftSideOfAccess(o,!1)):HD(o)?bi(o.expression,i)?(a=I(t),s=rt(nI(b.createAssignment(a,o.expression),o.expression),o.name),nI(s,o)):(a=o.expression,s=o):KD(o)?bi(o.expression,i)?(a=I(t),s=lt(nI(b.createAssignment(a,o.expression),o.expression),o.argumentExpression),nI(s,o)):(a=o.expression,s=o):(a=gi(),s=r().parenthesizeLeftSideOfAccess(e,!1)),{target:s,thisArg:a}},createAssignmentTargetWrapper:function(e,t){return rt(kt(et([fe(void 0,"value",[Q(void 0,void 0,e,void 0,void 0,void 0)],an([_n(t)]))])),"value")},inlineExpressions:function(e){return e.length>10?pi(e):we(e,b.createComma)},getInternalName:function(e,t,n){return xi(e,t,n,98304)},getLocalName:function(e,t,n,r){return xi(e,t,n,32768,r)},getExportName:ki,getDeclarationName:function(e,t,n){return xi(e,t,n)},getNamespaceMemberName:Si,getExternalModuleOrNamespaceExportName:function(e,t,n,r){return e&&wv(t,32)?Si(e,xi(t),n,r):ki(t,n,r)},restoreOuterExpressions:function e(t,n,r=31){return t&&sA(t,r)&&(!(ZD(i=t)&&Zh(i)&&Zh(aw(i))&&Zh(dw(i)))||$(fw(i))||$(hw(i)))?function(e,t){switch(e.kind){case 217:return St(e,t);case 216:return xt(e,e.type,t);case 234:return Xt(e,t,e.type);case 238:return en(e,t,e.type);case 235:return Yt(e,t);case 233:return Ht(e,t,e.typeArguments);case 355:return ui(e,t)}}(t,e(t.expression,n)):n;var i},restoreEnclosingLabel:function e(t,n,r){if(!n)return t;const i=Tn(n,n.label,JF(n.statement)?e(t,n.statement):t);return r&&r(n),i},createUseStrictPrologue:Ti,copyPrologue:function(e,t,n,r){return wi(e,t,Ci(e,t,0,n),r)},copyStandardPrologue:Ci,copyCustomPrologue:wi,ensureUseStrict:function(e){return tA(e)?e:nI(x([Ti(),...e]),e)},liftToBlock:function(e){return un.assert(v(e,pu),"Cannot lift nodes to a Block."),be(e)||an(e)},mergeLexicalEnvironment:function(e,t){if(!$(t))return e;const n=Ni(e,uf,0),r=Ni(e,pf,n),i=Ni(e,mf,r),o=Ni(t,uf,0),a=Ni(t,pf,o),s=Ni(t,mf,a),c=Ni(t,df,s);un.assert(c===t.length,"Expected declarations to be valid standard or custom prologues");const l=El(e)?e.slice():e;if(c>s&&l.splice(i,0,...t.slice(s,c)),s>a&&l.splice(r,0,...t.slice(a,s)),a>o&&l.splice(n,0,...t.slice(o,a)),o>0)if(0===n)l.splice(0,0,...t.slice(0,o));else{const r=new Map;for(let t=0;t=0;e--){const n=t[e];r.has(n.expression.text)||l.unshift(n)}}return El(e)?nI(x(l,e.hasTrailingComma),e):e},replaceModifiers:function(e,t){let n;return n="number"==typeof t?W(t):t,iD(e)?X(e,n,e.name,e.constraint,e.default):oD(e)?Y(e,n,e.dotDotDotToken,e.name,e.questionToken,e.type,e.initializer):xD(e)?Ee(e,n,e.typeParameters,e.parameters,e.type):sD(e)?te(e,n,e.name,e.questionToken,e.type):cD(e)?re(e,n,e.name,e.questionToken??e.exclamationToken,e.type,e.initializer):lD(e)?ae(e,n,e.name,e.questionToken,e.typeParameters,e.parameters,e.type):_D(e)?ce(e,n,e.asteriskToken,e.name,e.questionToken,e.typeParameters,e.parameters,e.type,e.body):dD(e)?ue(e,n,e.parameters,e.body):pD(e)?pe(e,n,e.name,e.parameters,e.type,e.body):fD(e)?me(e,n,e.name,e.parameters,e.body):hD(e)?xe(e,n,e.parameters,e.type):eF(e)?Ct(e,n,e.asteriskToken,e.name,e.typeParameters,e.parameters,e.type,e.body):tF(e)?Nt(e,n,e.typeParameters,e.parameters,e.type,e.equalsGreaterThanToken,e.body):pF(e)?Wt(e,n,e.name,e.typeParameters,e.heritageClauses,e.members):wF(e)?cn(e,n,e.declarationList):$F(e)?En(e,n,e.asteriskToken,e.name,e.typeParameters,e.parameters,e.type,e.body):HF(e)?An(e,n,e.name,e.typeParameters,e.heritageClauses,e.members):KF(e)?On(e,n,e.name,e.typeParameters,e.heritageClauses,e.members):GF(e)?jn(e,n,e.name,e.typeParameters,e.type):XF(e)?Mn(e,n,e.name,e.members):QF(e)?Jn(e,n,e.name,e.body):tE(e)?Wn(e,n,e.isTypeOnly,e.name,e.moduleReference):nE(e)?Hn(e,n,e.importClause,e.moduleSpecifier,e.attributes):pE(e)?or(e,n,e.expression):fE(e)?sr(e,n,e.isTypeOnly,e.exportClause,e.moduleSpecifier,e.attributes):un.assertNever(e)},replaceDecoratorsAndModifiers:function(e,t){return oD(e)?Y(e,t,e.dotDotDotToken,e.name,e.questionToken,e.type,e.initializer):cD(e)?re(e,t,e.name,e.questionToken??e.exclamationToken,e.type,e.initializer):_D(e)?ce(e,t,e.asteriskToken,e.name,e.questionToken,e.typeParameters,e.parameters,e.type,e.body):pD(e)?pe(e,t,e.name,e.parameters,e.type,e.body):fD(e)?me(e,t,e.name,e.parameters,e.body):pF(e)?Wt(e,t,e.name,e.typeParameters,e.heritageClauses,e.members):HF(e)?An(e,t,e.name,e.typeParameters,e.heritageClauses,e.members):un.assertNever(e)},replacePropertyName:function(e,t){switch(e.kind){case 177:return pe(e,e.modifiers,t,e.parameters,e.type,e.body);case 178:return me(e,e.modifiers,t,e.parameters,e.body);case 174:return ce(e,e.modifiers,e.asteriskToken,t,e.questionToken,e.typeParameters,e.parameters,e.type,e.body);case 173:return ae(e,e.modifiers,t,e.questionToken,e.typeParameters,e.parameters,e.type);case 172:return re(e,e.modifiers,t,e.questionToken??e.exclamationToken,e.type,e.initializer);case 171:return te(e,e.modifiers,t,e.questionToken,e.type);case 303:return ri(e,t,e.initializer)}}};return d(RC,(e=>e(b))),b;function x(e,t){if(void 0===e||e===l)e=[];else if(El(e)){if(void 0===t||e.hasTrailingComma===t)return void 0===e.transformFlags&&$C(e),un.attachNodeArrayDebugInfo(e),e;const n=e.slice();return n.pos=e.pos,n.end=e.end,n.hasTrailingComma=t,n.transformFlags=e.transformFlags,un.attachNodeArrayDebugInfo(n),n}const n=e.length,r=n>=1&&n<=4?e.slice():e;return r.pos=-1,r.end=-1,r.hasTrailingComma=!!t,r.transformFlags=0,$C(r),un.attachNodeArrayDebugInfo(r),r}function k(e){return t.createBaseNode(e)}function S(e){const t=k(e);return t.symbol=void 0,t.localSymbol=void 0,t}function T(e,t){return e!==t&&(e.typeArguments=t.typeArguments),Ii(e,t)}function C(e,t=0){const n="number"==typeof e?e+"":e;un.assert(45!==n.charCodeAt(0),"Negative numbers should be created in combination with createPrefixUnaryExpression");const r=S(9);return r.text=n,r.numericLiteralFlags=t,384&t&&(r.transformFlags|=1024),r}function w(e){const t=M(10);return t.text="string"==typeof e?e:fT(e)+"n",t.transformFlags|=32,t}function N(e,t){const n=S(11);return n.text=e,n.singleQuote=t,n}function D(e,t,n){const r=N(e,t);return r.hasExtendedUnicodeEscape=n,n&&(r.transformFlags|=1024),r}function F(e){const t=M(14);return t.text=e,t}function E(e){const n=t.createBaseIdentifierNode(80);return n.escapedText=e,n.jsDoc=void 0,n.flowNode=void 0,n.symbol=void 0,n}function P(e,t,n,r){const i=E(pc(e));return Lw(i,{flags:t,id:LC,prefix:n,suffix:r}),LC++,i}function A(e,t,n){void 0===t&&e&&(t=Fa(e)),80===t&&(t=void 0);const r=E(pc(e));return n&&(r.flags|=256),"await"===r.escapedText&&(r.transformFlags|=67108864),256&r.flags&&(r.transformFlags|=1024),r}function I(e,t,n,r){let i=1;t&&(i|=8);const o=P("",i,n,r);return e&&e(o),o}function O(e,t=0,n,r){un.assert(!(7&t),"Argument out of range: flags"),(n||r)&&(t|=16);const i=P(e?ul(e)?KA(!1,n,e,r,mc):`generated@${jB(e)}`:"",4|t,n,r);return i.original=e,i}function L(e){const n=t.createBasePrivateIdentifierNode(81);return n.escapedText=e,n.transformFlags|=16777216,n}function j(e,t,n,r){const i=L(pc(e));return Lw(i,{flags:t,id:LC,prefix:n,suffix:r}),LC++,i}function M(e){return t.createBaseTokenNode(e)}function B(e){un.assert(e>=0&&e<=165,"Invalid token"),un.assert(e<=15||e>=18,"Invalid token. Use 'createTemplateLiteralLikeNode' to create template literals."),un.assert(e<=9||e>=15,"Invalid token. Use 'createLiteralLikeNode' to create literals."),un.assert(80!==e,"Invalid token. Use 'createIdentifier' to create identifiers");const t=M(e);let n=0;switch(e){case 134:n=384;break;case 160:n=4;break;case 125:case 123:case 124:case 148:case 128:case 138:case 87:case 133:case 150:case 163:case 146:case 151:case 103:case 147:case 164:case 154:case 136:case 155:case 116:case 159:case 157:n=1;break;case 108:n=134218752,t.flowNode=void 0;break;case 126:n=1024;break;case 129:n=16777216;break;case 110:n=16384,t.flowNode=void 0}return n&&(t.transformFlags|=n),t}function J(){return B(110)}function z(){return B(106)}function q(){return B(112)}function U(){return B(97)}function V(e){return B(e)}function W(e){const t=[];return 32&e&&t.push(V(95)),128&e&&t.push(V(138)),2048&e&&t.push(V(90)),4096&e&&t.push(V(87)),1&e&&t.push(V(125)),2&e&&t.push(V(123)),4&e&&t.push(V(124)),64&e&&t.push(V(128)),256&e&&t.push(V(126)),16&e&&t.push(V(164)),8&e&&t.push(V(148)),512&e&&t.push(V(129)),1024&e&&t.push(V(134)),8192&e&&t.push(V(103)),16384&e&&t.push(V(147)),t.length?t:void 0}function H(e,t){const n=k(166);return n.left=e,n.right=Fi(t),n.transformFlags|=VC(n.left)|UC(n.right),n.flowNode=void 0,n}function K(e){const t=k(167);return t.expression=r().parenthesizeExpressionOfComputedPropertyName(e),t.transformFlags|=132096|VC(t.expression),t}function G(e,t,n,r){const i=S(168);return i.modifiers=Di(e),i.name=Fi(t),i.constraint=n,i.default=r,i.transformFlags=1,i.expression=void 0,i.jsDoc=void 0,i}function X(e,t,n,r,i){return e.modifiers!==t||e.name!==n||e.constraint!==r||e.default!==i?Ii(G(t,n,r,i),e):e}function Q(e,t,n,r,i,o){const a=S(169);return a.modifiers=Di(e),a.dotDotDotToken=t,a.name=Fi(n),a.questionToken=r,a.type=i,a.initializer=Pi(o),cv(a.name)?a.transformFlags=1:a.transformFlags=WC(a.modifiers)|VC(a.dotDotDotToken)|qC(a.name)|VC(a.questionToken)|VC(a.initializer)|(a.questionToken??a.type?1:0)|(a.dotDotDotToken??a.initializer?1024:0)|(31&Wv(a.modifiers)?8192:0),a.jsDoc=void 0,a}function Y(e,t,n,r,i,o,a){return e.modifiers!==t||e.dotDotDotToken!==n||e.name!==r||e.questionToken!==i||e.type!==o||e.initializer!==a?Ii(Q(t,n,r,i,o,a),e):e}function Z(e){const t=k(170);return t.expression=r().parenthesizeLeftSideOfAccess(e,!1),t.transformFlags|=33562625|VC(t.expression),t}function ee(e,t,n,r){const i=S(171);return i.modifiers=Di(e),i.name=Fi(t),i.type=r,i.questionToken=n,i.transformFlags=1,i.initializer=void 0,i.jsDoc=void 0,i}function te(e,t,n,r,i){return e.modifiers!==t||e.name!==n||e.questionToken!==r||e.type!==i?((o=ee(t,n,r,i))!==(a=e)&&(o.initializer=a.initializer),Ii(o,a)):e;var o,a}function ne(e,t,n,r,i){const o=S(172);o.modifiers=Di(e),o.name=Fi(t),o.questionToken=n&&RN(n)?n:void 0,o.exclamationToken=n&&jN(n)?n:void 0,o.type=r,o.initializer=Pi(i);const a=33554432&o.flags||128&Wv(o.modifiers);return o.transformFlags=WC(o.modifiers)|qC(o.name)|VC(o.initializer)|(a||o.questionToken||o.exclamationToken||o.type?1:0)|(rD(o.name)||256&Wv(o.modifiers)&&o.initializer?8192:0)|16777216,o.jsDoc=void 0,o}function re(e,t,n,r,i,o){return e.modifiers!==t||e.name!==n||e.questionToken!==(void 0!==r&&RN(r)?r:void 0)||e.exclamationToken!==(void 0!==r&&jN(r)?r:void 0)||e.type!==i||e.initializer!==o?Ii(ne(t,n,r,i,o),e):e}function oe(e,t,n,r,i,o){const a=S(173);return a.modifiers=Di(e),a.name=Fi(t),a.questionToken=n,a.typeParameters=Di(r),a.parameters=Di(i),a.type=o,a.transformFlags=1,a.jsDoc=void 0,a.locals=void 0,a.nextContainer=void 0,a.typeArguments=void 0,a}function ae(e,t,n,r,i,o,a){return e.modifiers!==t||e.name!==n||e.questionToken!==r||e.typeParameters!==i||e.parameters!==o||e.type!==a?T(oe(t,n,r,i,o,a),e):e}function se(e,t,n,r,i,o,a,s){const c=S(174);if(c.modifiers=Di(e),c.asteriskToken=t,c.name=Fi(n),c.questionToken=r,c.exclamationToken=void 0,c.typeParameters=Di(i),c.parameters=x(o),c.type=a,c.body=s,c.body){const e=1024&Wv(c.modifiers),t=!!c.asteriskToken,n=e&&t;c.transformFlags=WC(c.modifiers)|VC(c.asteriskToken)|qC(c.name)|VC(c.questionToken)|WC(c.typeParameters)|WC(c.parameters)|VC(c.type)|-67108865&VC(c.body)|(n?128:e?256:t?2048:0)|(c.questionToken||c.typeParameters||c.type?1:0)|1024}else c.transformFlags=1;return c.typeArguments=void 0,c.jsDoc=void 0,c.locals=void 0,c.nextContainer=void 0,c.flowNode=void 0,c.endFlowNode=void 0,c.returnFlowNode=void 0,c}function ce(e,t,n,r,i,o,a,s,c){return e.modifiers!==t||e.asteriskToken!==n||e.name!==r||e.questionToken!==i||e.typeParameters!==o||e.parameters!==a||e.type!==s||e.body!==c?((l=se(t,n,r,i,o,a,s,c))!==(_=e)&&(l.exclamationToken=_.exclamationToken),Ii(l,_)):e;var l,_}function le(e){const t=S(175);return t.body=e,t.transformFlags=16777216|VC(e),t.modifiers=void 0,t.jsDoc=void 0,t.locals=void 0,t.nextContainer=void 0,t.endFlowNode=void 0,t.returnFlowNode=void 0,t}function _e(e,t,n){const r=S(176);return r.modifiers=Di(e),r.parameters=x(t),r.body=n,r.body?r.transformFlags=WC(r.modifiers)|WC(r.parameters)|-67108865&VC(r.body)|1024:r.transformFlags=1,r.typeParameters=void 0,r.type=void 0,r.typeArguments=void 0,r.jsDoc=void 0,r.locals=void 0,r.nextContainer=void 0,r.endFlowNode=void 0,r.returnFlowNode=void 0,r}function ue(e,t,n,r){return e.modifiers!==t||e.parameters!==n||e.body!==r?((i=_e(t,n,r))!==(o=e)&&(i.typeParameters=o.typeParameters,i.type=o.type),T(i,o)):e;var i,o}function de(e,t,n,r,i){const o=S(177);return o.modifiers=Di(e),o.name=Fi(t),o.parameters=x(n),o.type=r,o.body=i,o.body?o.transformFlags=WC(o.modifiers)|qC(o.name)|WC(o.parameters)|VC(o.type)|-67108865&VC(o.body)|(o.type?1:0):o.transformFlags=1,o.typeArguments=void 0,o.typeParameters=void 0,o.jsDoc=void 0,o.locals=void 0,o.nextContainer=void 0,o.flowNode=void 0,o.endFlowNode=void 0,o.returnFlowNode=void 0,o}function pe(e,t,n,r,i,o){return e.modifiers!==t||e.name!==n||e.parameters!==r||e.type!==i||e.body!==o?((a=de(t,n,r,i,o))!==(s=e)&&(a.typeParameters=s.typeParameters),T(a,s)):e;var a,s}function fe(e,t,n,r){const i=S(178);return i.modifiers=Di(e),i.name=Fi(t),i.parameters=x(n),i.body=r,i.body?i.transformFlags=WC(i.modifiers)|qC(i.name)|WC(i.parameters)|-67108865&VC(i.body)|(i.type?1:0):i.transformFlags=1,i.typeArguments=void 0,i.typeParameters=void 0,i.type=void 0,i.jsDoc=void 0,i.locals=void 0,i.nextContainer=void 0,i.flowNode=void 0,i.endFlowNode=void 0,i.returnFlowNode=void 0,i}function me(e,t,n,r,i){return e.modifiers!==t||e.name!==n||e.parameters!==r||e.body!==i?((o=fe(t,n,r,i))!==(a=e)&&(o.typeParameters=a.typeParameters,o.type=a.type),T(o,a)):e;var o,a}function ge(e,t,n){const r=S(179);return r.typeParameters=Di(e),r.parameters=Di(t),r.type=n,r.transformFlags=1,r.jsDoc=void 0,r.locals=void 0,r.nextContainer=void 0,r.typeArguments=void 0,r}function he(e,t,n){const r=S(180);return r.typeParameters=Di(e),r.parameters=Di(t),r.type=n,r.transformFlags=1,r.jsDoc=void 0,r.locals=void 0,r.nextContainer=void 0,r.typeArguments=void 0,r}function ve(e,t,n){const r=S(181);return r.modifiers=Di(e),r.parameters=Di(t),r.type=n,r.transformFlags=1,r.jsDoc=void 0,r.locals=void 0,r.nextContainer=void 0,r.typeArguments=void 0,r}function xe(e,t,n,r){return e.parameters!==n||e.type!==r||e.modifiers!==t?T(ve(t,n,r),e):e}function ke(e,t){const n=k(204);return n.type=e,n.literal=t,n.transformFlags=1,n}function Se(e,t,n){const r=k(182);return r.assertsModifier=e,r.parameterName=Fi(t),r.type=n,r.transformFlags=1,r}function Te(e,t){const n=k(183);return n.typeName=Fi(e),n.typeArguments=t&&r().parenthesizeTypeArguments(x(t)),n.transformFlags=1,n}function Ce(e,t,n){const r=S(184);return r.typeParameters=Di(e),r.parameters=Di(t),r.type=n,r.transformFlags=1,r.modifiers=void 0,r.jsDoc=void 0,r.locals=void 0,r.nextContainer=void 0,r.typeArguments=void 0,r}function Ne(...e){return 4===e.length?Fe(...e):3===e.length?function(e,t,n){return Fe(void 0,e,t,n)}(...e):un.fail("Incorrect number of arguments specified.")}function Fe(e,t,n,r){const i=S(185);return i.modifiers=Di(e),i.typeParameters=Di(t),i.parameters=Di(n),i.type=r,i.transformFlags=1,i.jsDoc=void 0,i.locals=void 0,i.nextContainer=void 0,i.typeArguments=void 0,i}function Ee(e,t,n,r,i){return e.modifiers!==t||e.typeParameters!==n||e.parameters!==r||e.type!==i?T(Ne(t,n,r,i),e):e}function Pe(e,t){const n=k(186);return n.exprName=e,n.typeArguments=t&&r().parenthesizeTypeArguments(t),n.transformFlags=1,n}function Ae(e){const t=S(187);return t.members=x(e),t.transformFlags=1,t}function Ie(e){const t=k(188);return t.elementType=r().parenthesizeNonArrayTypeOfPostfixType(e),t.transformFlags=1,t}function Oe(e){const t=k(189);return t.elements=x(r().parenthesizeElementTypesOfTupleType(e)),t.transformFlags=1,t}function Le(e,t,n,r){const i=S(202);return i.dotDotDotToken=e,i.name=t,i.questionToken=n,i.type=r,i.transformFlags=1,i.jsDoc=void 0,i}function je(e){const t=k(190);return t.type=r().parenthesizeTypeOfOptionalType(e),t.transformFlags=1,t}function Re(e){const t=k(191);return t.type=e,t.transformFlags=1,t}function Me(e,t,n){const r=k(e);return r.types=b.createNodeArray(n(t)),r.transformFlags=1,r}function Be(e,t,n){return e.types!==t?Ii(Me(e.kind,t,n),e):e}function Je(e,t,n,i){const o=k(194);return o.checkType=r().parenthesizeCheckTypeOfConditionalType(e),o.extendsType=r().parenthesizeExtendsTypeOfConditionalType(t),o.trueType=n,o.falseType=i,o.transformFlags=1,o.locals=void 0,o.nextContainer=void 0,o}function ze(e){const t=k(195);return t.typeParameter=e,t.transformFlags=1,t}function qe(e,t){const n=k(203);return n.head=e,n.templateSpans=x(t),n.transformFlags=1,n}function Ue(e,t,n,i,o=!1){const a=k(205);return a.argument=e,a.attributes=t,a.assertions&&a.assertions.assertClause&&a.attributes&&(a.assertions.assertClause=a.attributes),a.qualifier=n,a.typeArguments=i&&r().parenthesizeTypeArguments(i),a.isTypeOf=o,a.transformFlags=1,a}function Ve(e){const t=k(196);return t.type=e,t.transformFlags=1,t}function We(e,t){const n=k(198);return n.operator=e,n.type=148===e?r().parenthesizeOperandOfReadonlyTypeOperator(t):r().parenthesizeOperandOfTypeOperator(t),n.transformFlags=1,n}function $e(e,t){const n=k(199);return n.objectType=r().parenthesizeNonArrayTypeOfPostfixType(e),n.indexType=t,n.transformFlags=1,n}function He(e,t,n,r,i,o){const a=S(200);return a.readonlyToken=e,a.typeParameter=t,a.nameType=n,a.questionToken=r,a.type=i,a.members=o&&x(o),a.transformFlags=1,a.locals=void 0,a.nextContainer=void 0,a}function Ke(e){const t=k(201);return t.literal=e,t.transformFlags=1,t}function Ge(e){const t=k(206);return t.elements=x(e),t.transformFlags|=525312|WC(t.elements),32768&t.transformFlags&&(t.transformFlags|=65664),t}function Xe(e){const t=k(207);return t.elements=x(e),t.transformFlags|=525312|WC(t.elements),t}function Ye(e,t,n,r){const i=S(208);return i.dotDotDotToken=e,i.propertyName=Fi(t),i.name=Fi(n),i.initializer=Pi(r),i.transformFlags|=VC(i.dotDotDotToken)|qC(i.propertyName)|qC(i.name)|VC(i.initializer)|(i.dotDotDotToken?32768:0)|1024,i.flowNode=void 0,i}function Ze(e,t){const n=k(209),i=e&&ye(e),o=x(e,!(!i||!fF(i))||void 0);return n.elements=r().parenthesizeExpressionsOfCommaDelimitedList(o),n.multiLine=t,n.transformFlags|=WC(n.elements),n}function et(e,t){const n=S(210);return n.properties=x(e),n.multiLine=t,n.transformFlags|=WC(n.properties),n.jsDoc=void 0,n}function tt(e,t,n){const r=S(211);return r.expression=e,r.questionDotToken=t,r.name=n,r.transformFlags=VC(r.expression)|VC(r.questionDotToken)|(zN(r.name)?UC(r.name):536870912|VC(r.name)),r.jsDoc=void 0,r.flowNode=void 0,r}function rt(e,t){const n=tt(r().parenthesizeLeftSideOfAccess(e,!1),void 0,Fi(t));return ZN(e)&&(n.transformFlags|=384),n}function it(e,t,n){const i=tt(r().parenthesizeLeftSideOfAccess(e,!0),t,Fi(n));return i.flags|=64,i.transformFlags|=32,i}function at(e,t,n,r){return un.assert(!!(64&e.flags),"Cannot update a PropertyAccessExpression using updatePropertyAccessChain. Use updatePropertyAccess instead."),e.expression!==t||e.questionDotToken!==n||e.name!==r?Ii(it(t,n,r),e):e}function ct(e,t,n){const r=S(212);return r.expression=e,r.questionDotToken=t,r.argumentExpression=n,r.transformFlags|=VC(r.expression)|VC(r.questionDotToken)|VC(r.argumentExpression),r.jsDoc=void 0,r.flowNode=void 0,r}function lt(e,t){const n=ct(r().parenthesizeLeftSideOfAccess(e,!1),void 0,Ei(t));return ZN(e)&&(n.transformFlags|=384),n}function _t(e,t,n){const i=ct(r().parenthesizeLeftSideOfAccess(e,!0),t,Ei(n));return i.flags|=64,i.transformFlags|=32,i}function ut(e,t,n,r){return un.assert(!!(64&e.flags),"Cannot update a ElementAccessExpression using updateElementAccessChain. Use updateElementAccess instead."),e.expression!==t||e.questionDotToken!==n||e.argumentExpression!==r?Ii(_t(t,n,r),e):e}function ft(e,t,n,r){const i=S(213);return i.expression=e,i.questionDotToken=t,i.typeArguments=n,i.arguments=r,i.transformFlags|=VC(i.expression)|VC(i.questionDotToken)|WC(i.typeArguments)|WC(i.arguments),i.typeArguments&&(i.transformFlags|=1),om(i.expression)&&(i.transformFlags|=16384),i}function mt(e,t,n){const i=ft(r().parenthesizeLeftSideOfAccess(e,!1),void 0,Di(t),r().parenthesizeExpressionsOfCommaDelimitedList(x(n)));return eD(i.expression)&&(i.transformFlags|=8388608),i}function gt(e,t,n,i){const o=ft(r().parenthesizeLeftSideOfAccess(e,!0),t,Di(n),r().parenthesizeExpressionsOfCommaDelimitedList(x(i)));return o.flags|=64,o.transformFlags|=32,o}function ht(e,t,n,r,i){return un.assert(!!(64&e.flags),"Cannot update a CallExpression using updateCallChain. Use updateCall instead."),e.expression!==t||e.questionDotToken!==n||e.typeArguments!==r||e.arguments!==i?Ii(gt(t,n,r,i),e):e}function yt(e,t,n){const i=S(214);return i.expression=r().parenthesizeExpressionOfNew(e),i.typeArguments=Di(t),i.arguments=n?r().parenthesizeExpressionsOfCommaDelimitedList(n):void 0,i.transformFlags|=VC(i.expression)|WC(i.typeArguments)|WC(i.arguments)|32,i.typeArguments&&(i.transformFlags|=1),i}function vt(e,t,n){const i=k(215);return i.tag=r().parenthesizeLeftSideOfAccess(e,!1),i.typeArguments=Di(t),i.template=n,i.transformFlags|=VC(i.tag)|WC(i.typeArguments)|VC(i.template)|1024,i.typeArguments&&(i.transformFlags|=1),py(i.template)&&(i.transformFlags|=128),i}function bt(e,t){const n=k(216);return n.expression=r().parenthesizeOperandOfPrefixUnary(t),n.type=e,n.transformFlags|=VC(n.expression)|VC(n.type)|1,n}function xt(e,t,n){return e.type!==t||e.expression!==n?Ii(bt(t,n),e):e}function kt(e){const t=k(217);return t.expression=e,t.transformFlags=VC(t.expression),t.jsDoc=void 0,t}function St(e,t){return e.expression!==t?Ii(kt(t),e):e}function Tt(e,t,n,r,i,o,a){const s=S(218);s.modifiers=Di(e),s.asteriskToken=t,s.name=Fi(n),s.typeParameters=Di(r),s.parameters=x(i),s.type=o,s.body=a;const c=1024&Wv(s.modifiers),l=!!s.asteriskToken,_=c&&l;return s.transformFlags=WC(s.modifiers)|VC(s.asteriskToken)|qC(s.name)|WC(s.typeParameters)|WC(s.parameters)|VC(s.type)|-67108865&VC(s.body)|(_?128:c?256:l?2048:0)|(s.typeParameters||s.type?1:0)|4194304,s.typeArguments=void 0,s.jsDoc=void 0,s.locals=void 0,s.nextContainer=void 0,s.flowNode=void 0,s.endFlowNode=void 0,s.returnFlowNode=void 0,s}function Ct(e,t,n,r,i,o,a,s){return e.name!==r||e.modifiers!==t||e.asteriskToken!==n||e.typeParameters!==i||e.parameters!==o||e.type!==a||e.body!==s?T(Tt(t,n,r,i,o,a,s),e):e}function wt(e,t,n,i,o,a){const s=S(219);s.modifiers=Di(e),s.typeParameters=Di(t),s.parameters=x(n),s.type=i,s.equalsGreaterThanToken=o??B(39),s.body=r().parenthesizeConciseBodyOfArrowFunction(a);const c=1024&Wv(s.modifiers);return s.transformFlags=WC(s.modifiers)|WC(s.typeParameters)|WC(s.parameters)|VC(s.type)|VC(s.equalsGreaterThanToken)|-67108865&VC(s.body)|(s.typeParameters||s.type?1:0)|(c?16640:0)|1024,s.typeArguments=void 0,s.jsDoc=void 0,s.locals=void 0,s.nextContainer=void 0,s.flowNode=void 0,s.endFlowNode=void 0,s.returnFlowNode=void 0,s}function Nt(e,t,n,r,i,o,a){return e.modifiers!==t||e.typeParameters!==n||e.parameters!==r||e.type!==i||e.equalsGreaterThanToken!==o||e.body!==a?T(wt(t,n,r,i,o,a),e):e}function Dt(e){const t=k(220);return t.expression=r().parenthesizeOperandOfPrefixUnary(e),t.transformFlags|=VC(t.expression),t}function Ft(e){const t=k(221);return t.expression=r().parenthesizeOperandOfPrefixUnary(e),t.transformFlags|=VC(t.expression),t}function Et(e){const t=k(222);return t.expression=r().parenthesizeOperandOfPrefixUnary(e),t.transformFlags|=VC(t.expression),t}function Pt(e){const t=k(223);return t.expression=r().parenthesizeOperandOfPrefixUnary(e),t.transformFlags|=2097536|VC(t.expression),t}function At(e,t){const n=k(224);return n.operator=e,n.operand=r().parenthesizeOperandOfPrefixUnary(t),n.transformFlags|=VC(n.operand),46!==e&&47!==e||!zN(n.operand)||Vl(n.operand)||YP(n.operand)||(n.transformFlags|=268435456),n}function It(e,t){const n=k(225);return n.operator=t,n.operand=r().parenthesizeOperandOfPostfixUnary(e),n.transformFlags|=VC(n.operand),!zN(n.operand)||Vl(n.operand)||YP(n.operand)||(n.transformFlags|=268435456),n}function Ot(e,t,n){const i=S(226),o="number"==typeof(a=t)?B(a):a;var a;const s=o.kind;return i.left=r().parenthesizeLeftSideOfBinary(s,e),i.operatorToken=o,i.right=r().parenthesizeRightSideOfBinary(s,i.left,n),i.transformFlags|=VC(i.left)|VC(i.operatorToken)|VC(i.right),61===s?i.transformFlags|=32:64===s?$D(i.left)?i.transformFlags|=5248|Lt(i.left):WD(i.left)&&(i.transformFlags|=5120|Lt(i.left)):43===s||68===s?i.transformFlags|=512:Gv(s)&&(i.transformFlags|=16),103===s&&qN(i.left)&&(i.transformFlags|=536870912),i.jsDoc=void 0,i}function Lt(e){return tI(e)?65536:0}function jt(e,t,n,i,o){const a=k(227);return a.condition=r().parenthesizeConditionOfConditionalExpression(e),a.questionToken=t??B(58),a.whenTrue=r().parenthesizeBranchOfConditionalExpression(n),a.colonToken=i??B(59),a.whenFalse=r().parenthesizeBranchOfConditionalExpression(o),a.transformFlags|=VC(a.condition)|VC(a.questionToken)|VC(a.whenTrue)|VC(a.colonToken)|VC(a.whenFalse),a}function Rt(e,t){const n=k(228);return n.head=e,n.templateSpans=x(t),n.transformFlags|=VC(n.head)|WC(n.templateSpans)|1024,n}function Mt(e,t,n,r=0){let i;if(un.assert(!(-7177&r),"Unsupported template flags."),void 0!==n&&n!==t&&(i=function(e,t){switch(IC||(IC=ms(99,!1,0)),e){case 15:IC.setText("`"+t+"`");break;case 16:IC.setText("`"+t+"${");break;case 17:IC.setText("}"+t+"${");break;case 18:IC.setText("}"+t+"`")}let n,r=IC.scan();if(20===r&&(r=IC.reScanTemplateToken(!1)),IC.isUnterminated())return IC.setText(void 0),zC;switch(r){case 15:case 16:case 17:case 18:n=IC.getTokenValue()}return void 0===n||1!==IC.scan()?(IC.setText(void 0),zC):(IC.setText(void 0),n)}(e,n),"object"==typeof i))return un.fail("Invalid raw text");if(void 0===t){if(void 0===i)return un.fail("Arguments 'text' and 'rawText' may not both be undefined.");t=i}else void 0!==i&&un.assert(t===i,"Expected argument 'text' to be the normalized (i.e. 'cooked') version of argument 'rawText'.");return t}function Bt(e){let t=1024;return e&&(t|=128),t}function Jt(e,t,n,r){const i=S(e);return i.text=t,i.rawText=n,i.templateFlags=7176&r,i.transformFlags=Bt(i.templateFlags),i}function zt(e,t,n,r){return 15===e?Jt(e,t,n,r):function(e,t,n,r){const i=M(e);return i.text=t,i.rawText=n,i.templateFlags=7176&r,i.transformFlags=Bt(i.templateFlags),i}(e,t,n,r)}function qt(e,t){un.assert(!e||!!t,"A `YieldExpression` with an asteriskToken must have an expression.");const n=k(229);return n.expression=t&&r().parenthesizeExpressionForDisallowedComma(t),n.asteriskToken=e,n.transformFlags|=VC(n.expression)|VC(n.asteriskToken)|1049728,n}function Ut(e){const t=k(230);return t.expression=r().parenthesizeExpressionForDisallowedComma(e),t.transformFlags|=33792|VC(t.expression),t}function Vt(e,t,n,r,i){const o=S(231);return o.modifiers=Di(e),o.name=Fi(t),o.typeParameters=Di(n),o.heritageClauses=Di(r),o.members=x(i),o.transformFlags|=WC(o.modifiers)|qC(o.name)|WC(o.typeParameters)|WC(o.heritageClauses)|WC(o.members)|(o.typeParameters?1:0)|1024,o.jsDoc=void 0,o}function Wt(e,t,n,r,i,o){return e.modifiers!==t||e.name!==n||e.typeParameters!==r||e.heritageClauses!==i||e.members!==o?Ii(Vt(t,n,r,i,o),e):e}function $t(e,t){const n=k(233);return n.expression=r().parenthesizeLeftSideOfAccess(e,!1),n.typeArguments=t&&r().parenthesizeTypeArguments(t),n.transformFlags|=VC(n.expression)|WC(n.typeArguments)|1024,n}function Ht(e,t,n){return e.expression!==t||e.typeArguments!==n?Ii($t(t,n),e):e}function Kt(e,t){const n=k(234);return n.expression=e,n.type=t,n.transformFlags|=VC(n.expression)|VC(n.type)|1,n}function Xt(e,t,n){return e.expression!==t||e.type!==n?Ii(Kt(t,n),e):e}function Qt(e){const t=k(235);return t.expression=r().parenthesizeLeftSideOfAccess(e,!1),t.transformFlags|=1|VC(t.expression),t}function Yt(e,t){return Sl(e)?nn(e,t):e.expression!==t?Ii(Qt(t),e):e}function Zt(e,t){const n=k(238);return n.expression=e,n.type=t,n.transformFlags|=VC(n.expression)|VC(n.type)|1,n}function en(e,t,n){return e.expression!==t||e.type!==n?Ii(Zt(t,n),e):e}function tn(e){const t=k(235);return t.flags|=64,t.expression=r().parenthesizeLeftSideOfAccess(e,!0),t.transformFlags|=1|VC(t.expression),t}function nn(e,t){return un.assert(!!(64&e.flags),"Cannot update a NonNullExpression using updateNonNullChain. Use updateNonNullExpression instead."),e.expression!==t?Ii(tn(t),e):e}function rn(e,t){const n=k(236);switch(n.keywordToken=e,n.name=t,n.transformFlags|=VC(n.name),e){case 105:n.transformFlags|=1024;break;case 102:n.transformFlags|=32;break;default:return un.assertNever(e)}return n.flowNode=void 0,n}function on(e,t){const n=k(239);return n.expression=e,n.literal=t,n.transformFlags|=VC(n.expression)|VC(n.literal)|1024,n}function an(e,t){const n=k(241);return n.statements=x(e),n.multiLine=t,n.transformFlags|=WC(n.statements),n.jsDoc=void 0,n.locals=void 0,n.nextContainer=void 0,n}function sn(e,t){const n=k(243);return n.modifiers=Di(e),n.declarationList=Qe(t)?Dn(t):t,n.transformFlags|=WC(n.modifiers)|VC(n.declarationList),128&Wv(n.modifiers)&&(n.transformFlags=1),n.jsDoc=void 0,n.flowNode=void 0,n}function cn(e,t,n){return e.modifiers!==t||e.declarationList!==n?Ii(sn(t,n),e):e}function ln(){const e=k(242);return e.jsDoc=void 0,e}function _n(e){const t=k(244);return t.expression=r().parenthesizeExpressionOfExpressionStatement(e),t.transformFlags|=VC(t.expression),t.jsDoc=void 0,t.flowNode=void 0,t}function dn(e,t,n){const r=k(245);return r.expression=e,r.thenStatement=Ai(t),r.elseStatement=Ai(n),r.transformFlags|=VC(r.expression)|VC(r.thenStatement)|VC(r.elseStatement),r.jsDoc=void 0,r.flowNode=void 0,r}function pn(e,t){const n=k(246);return n.statement=Ai(e),n.expression=t,n.transformFlags|=VC(n.statement)|VC(n.expression),n.jsDoc=void 0,n.flowNode=void 0,n}function fn(e,t){const n=k(247);return n.expression=e,n.statement=Ai(t),n.transformFlags|=VC(n.expression)|VC(n.statement),n.jsDoc=void 0,n.flowNode=void 0,n}function mn(e,t,n,r){const i=k(248);return i.initializer=e,i.condition=t,i.incrementor=n,i.statement=Ai(r),i.transformFlags|=VC(i.initializer)|VC(i.condition)|VC(i.incrementor)|VC(i.statement),i.jsDoc=void 0,i.locals=void 0,i.nextContainer=void 0,i.flowNode=void 0,i}function gn(e,t,n){const r=k(249);return r.initializer=e,r.expression=t,r.statement=Ai(n),r.transformFlags|=VC(r.initializer)|VC(r.expression)|VC(r.statement),r.jsDoc=void 0,r.locals=void 0,r.nextContainer=void 0,r.flowNode=void 0,r}function hn(e,t,n,i){const o=k(250);return o.awaitModifier=e,o.initializer=t,o.expression=r().parenthesizeExpressionForDisallowedComma(n),o.statement=Ai(i),o.transformFlags|=VC(o.awaitModifier)|VC(o.initializer)|VC(o.expression)|VC(o.statement)|1024,e&&(o.transformFlags|=128),o.jsDoc=void 0,o.locals=void 0,o.nextContainer=void 0,o.flowNode=void 0,o}function yn(e){const t=k(251);return t.label=Fi(e),t.transformFlags|=4194304|VC(t.label),t.jsDoc=void 0,t.flowNode=void 0,t}function vn(e){const t=k(252);return t.label=Fi(e),t.transformFlags|=4194304|VC(t.label),t.jsDoc=void 0,t.flowNode=void 0,t}function bn(e){const t=k(253);return t.expression=e,t.transformFlags|=4194432|VC(t.expression),t.jsDoc=void 0,t.flowNode=void 0,t}function xn(e,t){const n=k(254);return n.expression=e,n.statement=Ai(t),n.transformFlags|=VC(n.expression)|VC(n.statement),n.jsDoc=void 0,n.flowNode=void 0,n}function kn(e,t){const n=k(255);return n.expression=r().parenthesizeExpressionForDisallowedComma(e),n.caseBlock=t,n.transformFlags|=VC(n.expression)|VC(n.caseBlock),n.jsDoc=void 0,n.flowNode=void 0,n.possiblyExhaustive=!1,n}function Sn(e,t){const n=k(256);return n.label=Fi(e),n.statement=Ai(t),n.transformFlags|=VC(n.label)|VC(n.statement),n.jsDoc=void 0,n.flowNode=void 0,n}function Tn(e,t,n){return e.label!==t||e.statement!==n?Ii(Sn(t,n),e):e}function Cn(e){const t=k(257);return t.expression=e,t.transformFlags|=VC(t.expression),t.jsDoc=void 0,t.flowNode=void 0,t}function wn(e,t,n){const r=k(258);return r.tryBlock=e,r.catchClause=t,r.finallyBlock=n,r.transformFlags|=VC(r.tryBlock)|VC(r.catchClause)|VC(r.finallyBlock),r.jsDoc=void 0,r.flowNode=void 0,r}function Nn(e,t,n,r){const i=S(260);return i.name=Fi(e),i.exclamationToken=t,i.type=n,i.initializer=Pi(r),i.transformFlags|=qC(i.name)|VC(i.initializer)|(i.exclamationToken??i.type?1:0),i.jsDoc=void 0,i}function Dn(e,t=0){const n=k(261);return n.flags|=7&t,n.declarations=x(e),n.transformFlags|=4194304|WC(n.declarations),7&t&&(n.transformFlags|=263168),4&t&&(n.transformFlags|=4),n}function Fn(e,t,n,r,i,o,a){const s=S(262);if(s.modifiers=Di(e),s.asteriskToken=t,s.name=Fi(n),s.typeParameters=Di(r),s.parameters=x(i),s.type=o,s.body=a,!s.body||128&Wv(s.modifiers))s.transformFlags=1;else{const e=1024&Wv(s.modifiers),t=!!s.asteriskToken,n=e&&t;s.transformFlags=WC(s.modifiers)|VC(s.asteriskToken)|qC(s.name)|WC(s.typeParameters)|WC(s.parameters)|VC(s.type)|-67108865&VC(s.body)|(n?128:e?256:t?2048:0)|(s.typeParameters||s.type?1:0)|4194304}return s.typeArguments=void 0,s.jsDoc=void 0,s.locals=void 0,s.nextContainer=void 0,s.endFlowNode=void 0,s.returnFlowNode=void 0,s}function En(e,t,n,r,i,o,a,s){return e.modifiers!==t||e.asteriskToken!==n||e.name!==r||e.typeParameters!==i||e.parameters!==o||e.type!==a||e.body!==s?((c=Fn(t,n,r,i,o,a,s))!==(l=e)&&c.modifiers===l.modifiers&&(c.modifiers=l.modifiers),T(c,l)):e;var c,l}function Pn(e,t,n,r,i){const o=S(263);return o.modifiers=Di(e),o.name=Fi(t),o.typeParameters=Di(n),o.heritageClauses=Di(r),o.members=x(i),128&Wv(o.modifiers)?o.transformFlags=1:(o.transformFlags|=WC(o.modifiers)|qC(o.name)|WC(o.typeParameters)|WC(o.heritageClauses)|WC(o.members)|(o.typeParameters?1:0)|1024,8192&o.transformFlags&&(o.transformFlags|=1)),o.jsDoc=void 0,o}function An(e,t,n,r,i,o){return e.modifiers!==t||e.name!==n||e.typeParameters!==r||e.heritageClauses!==i||e.members!==o?Ii(Pn(t,n,r,i,o),e):e}function In(e,t,n,r,i){const o=S(264);return o.modifiers=Di(e),o.name=Fi(t),o.typeParameters=Di(n),o.heritageClauses=Di(r),o.members=x(i),o.transformFlags=1,o.jsDoc=void 0,o}function On(e,t,n,r,i,o){return e.modifiers!==t||e.name!==n||e.typeParameters!==r||e.heritageClauses!==i||e.members!==o?Ii(In(t,n,r,i,o),e):e}function Ln(e,t,n,r){const i=S(265);return i.modifiers=Di(e),i.name=Fi(t),i.typeParameters=Di(n),i.type=r,i.transformFlags=1,i.jsDoc=void 0,i.locals=void 0,i.nextContainer=void 0,i}function jn(e,t,n,r,i){return e.modifiers!==t||e.name!==n||e.typeParameters!==r||e.type!==i?Ii(Ln(t,n,r,i),e):e}function Rn(e,t,n){const r=S(266);return r.modifiers=Di(e),r.name=Fi(t),r.members=x(n),r.transformFlags|=WC(r.modifiers)|VC(r.name)|WC(r.members)|1,r.transformFlags&=-67108865,r.jsDoc=void 0,r}function Mn(e,t,n,r){return e.modifiers!==t||e.name!==n||e.members!==r?Ii(Rn(t,n,r),e):e}function Bn(e,t,n,r=0){const i=S(267);return i.modifiers=Di(e),i.flags|=2088&r,i.name=t,i.body=n,128&Wv(i.modifiers)?i.transformFlags=1:i.transformFlags|=WC(i.modifiers)|VC(i.name)|VC(i.body)|1,i.transformFlags&=-67108865,i.jsDoc=void 0,i.locals=void 0,i.nextContainer=void 0,i}function Jn(e,t,n,r){return e.modifiers!==t||e.name!==n||e.body!==r?Ii(Bn(t,n,r,e.flags),e):e}function zn(e){const t=k(268);return t.statements=x(e),t.transformFlags|=WC(t.statements),t.jsDoc=void 0,t}function qn(e){const t=k(269);return t.clauses=x(e),t.transformFlags|=WC(t.clauses),t.locals=void 0,t.nextContainer=void 0,t}function Un(e){const t=S(270);return t.name=Fi(e),t.transformFlags|=1|UC(t.name),t.modifiers=void 0,t.jsDoc=void 0,t}function Vn(e,t,n,r){const i=S(271);return i.modifiers=Di(e),i.name=Fi(n),i.isTypeOnly=t,i.moduleReference=r,i.transformFlags|=WC(i.modifiers)|UC(i.name)|VC(i.moduleReference),xE(i.moduleReference)||(i.transformFlags|=1),i.transformFlags&=-67108865,i.jsDoc=void 0,i}function Wn(e,t,n,r,i){return e.modifiers!==t||e.isTypeOnly!==n||e.name!==r||e.moduleReference!==i?Ii(Vn(t,n,r,i),e):e}function $n(e,t,n,r){const i=k(272);return i.modifiers=Di(e),i.importClause=t,i.moduleSpecifier=n,i.attributes=i.assertClause=r,i.transformFlags|=VC(i.importClause)|VC(i.moduleSpecifier),i.transformFlags&=-67108865,i.jsDoc=void 0,i}function Hn(e,t,n,r,i){return e.modifiers!==t||e.importClause!==n||e.moduleSpecifier!==r||e.attributes!==i?Ii($n(t,n,r,i),e):e}function Kn(e,t,n){const r=S(273);return r.isTypeOnly=e,r.name=t,r.namedBindings=n,r.transformFlags|=VC(r.name)|VC(r.namedBindings),e&&(r.transformFlags|=1),r.transformFlags&=-67108865,r}function Gn(e,t){const n=k(300);return n.elements=x(e),n.multiLine=t,n.token=132,n.transformFlags|=4,n}function Xn(e,t){const n=k(301);return n.name=e,n.value=t,n.transformFlags|=4,n}function Qn(e,t){const n=k(302);return n.assertClause=e,n.multiLine=t,n}function Yn(e,t,n){const r=k(300);return r.token=n??118,r.elements=x(e),r.multiLine=t,r.transformFlags|=4,r}function Zn(e,t){const n=k(301);return n.name=e,n.value=t,n.transformFlags|=4,n}function er(e){const t=S(274);return t.name=e,t.transformFlags|=VC(t.name),t.transformFlags&=-67108865,t}function tr(e){const t=S(280);return t.name=e,t.transformFlags|=32|VC(t.name),t.transformFlags&=-67108865,t}function nr(e){const t=k(275);return t.elements=x(e),t.transformFlags|=WC(t.elements),t.transformFlags&=-67108865,t}function rr(e,t,n){const r=S(276);return r.isTypeOnly=e,r.propertyName=t,r.name=n,r.transformFlags|=VC(r.propertyName)|VC(r.name),r.transformFlags&=-67108865,r}function ir(e,t,n){const i=S(277);return i.modifiers=Di(e),i.isExportEquals=t,i.expression=t?r().parenthesizeRightSideOfBinary(64,void 0,n):r().parenthesizeExpressionOfExportDefault(n),i.transformFlags|=WC(i.modifiers)|VC(i.expression),i.transformFlags&=-67108865,i.jsDoc=void 0,i}function or(e,t,n){return e.modifiers!==t||e.expression!==n?Ii(ir(t,e.isExportEquals,n),e):e}function ar(e,t,n,r,i){const o=S(278);return o.modifiers=Di(e),o.isTypeOnly=t,o.exportClause=n,o.moduleSpecifier=r,o.attributes=o.assertClause=i,o.transformFlags|=WC(o.modifiers)|VC(o.exportClause)|VC(o.moduleSpecifier),o.transformFlags&=-67108865,o.jsDoc=void 0,o}function sr(e,t,n,r,i,o){return e.modifiers!==t||e.isTypeOnly!==n||e.exportClause!==r||e.moduleSpecifier!==i||e.attributes!==o?((a=ar(t,n,r,i,o))!==(s=e)&&a.modifiers===s.modifiers&&(a.modifiers=s.modifiers),Ii(a,s)):e;var a,s}function cr(e){const t=k(279);return t.elements=x(e),t.transformFlags|=WC(t.elements),t.transformFlags&=-67108865,t}function lr(e,t,n){const r=k(281);return r.isTypeOnly=e,r.propertyName=Fi(t),r.name=Fi(n),r.transformFlags|=VC(r.propertyName)|VC(r.name),r.transformFlags&=-67108865,r.jsDoc=void 0,r}function _r(e){const t=k(283);return t.expression=e,t.transformFlags|=VC(t.expression),t.transformFlags&=-67108865,t}function ur(e,t,n=!1){const i=dr(e,n?t&&r().parenthesizeNonArrayTypeOfPostfixType(t):t);return i.postfix=n,i}function dr(e,t){const n=k(e);return n.type=t,n}function pr(e,t){const n=S(317);return n.parameters=Di(e),n.type=t,n.transformFlags=WC(n.parameters)|(n.type?1:0),n.jsDoc=void 0,n.locals=void 0,n.nextContainer=void 0,n.typeArguments=void 0,n}function fr(e,t=!1){const n=S(322);return n.jsDocPropertyTags=Di(e),n.isArrayType=t,n}function mr(e){const t=k(309);return t.type=e,t}function gr(e,t,n){const r=S(323);return r.typeParameters=Di(e),r.parameters=x(t),r.type=n,r.jsDoc=void 0,r.locals=void 0,r.nextContainer=void 0,r}function hr(e){const t=JC(e.kind);return e.tagName.escapedText===pc(t)?e.tagName:A(t)}function yr(e,t,n){const r=k(e);return r.tagName=t,r.comment=n,r}function vr(e,t,n){const r=S(e);return r.tagName=t,r.comment=n,r}function br(e,t,n,r){const i=yr(345,e??A("template"),r);return i.constraint=t,i.typeParameters=x(n),i}function xr(e,t,n,r){const i=vr(346,e??A("typedef"),r);return i.typeExpression=t,i.fullName=n,i.name=TA(n),i.locals=void 0,i.nextContainer=void 0,i}function kr(e,t,n,r,i,o){const a=vr(341,e??A("param"),o);return a.typeExpression=r,a.name=t,a.isNameFirst=!!i,a.isBracketed=n,a}function Sr(e,t,n,r,i,o){const a=vr(348,e??A("prop"),o);return a.typeExpression=r,a.name=t,a.isNameFirst=!!i,a.isBracketed=n,a}function Tr(e,t,n,r){const i=vr(338,e??A("callback"),r);return i.typeExpression=t,i.fullName=n,i.name=TA(n),i.locals=void 0,i.nextContainer=void 0,i}function Cr(e,t,n){const r=yr(339,e??A("overload"),n);return r.typeExpression=t,r}function wr(e,t,n){const r=yr(328,e??A("augments"),n);return r.class=t,r}function Nr(e,t,n){const r=yr(329,e??A("implements"),n);return r.class=t,r}function Dr(e,t,n){const r=yr(347,e??A("see"),n);return r.name=t,r}function Fr(e){const t=k(310);return t.name=e,t}function Er(e,t){const n=k(311);return n.left=e,n.right=t,n.transformFlags|=VC(n.left)|VC(n.right),n}function Pr(e,t){const n=k(324);return n.name=e,n.text=t,n}function Ar(e,t){const n=k(325);return n.name=e,n.text=t,n}function Ir(e,t){const n=k(326);return n.name=e,n.text=t,n}function Or(e,t,n){return yr(e,t??A(JC(e)),n)}function Lr(e,t,n,r){const i=yr(e,t??A(JC(e)),r);return i.typeExpression=n,i}function jr(e,t){return yr(327,e,t)}function Rr(e,t,n){const r=vr(340,e??A(JC(340)),n);return r.typeExpression=t,r.locals=void 0,r.nextContainer=void 0,r}function Mr(e,t,n,r,i){const o=yr(351,e??A("import"),i);return o.importClause=t,o.moduleSpecifier=n,o.attributes=r,o.comment=i,o}function Br(e){const t=k(321);return t.text=e,t}function Jr(e,t){const n=k(320);return n.comment=e,n.tags=Di(t),n}function zr(e,t,n){const r=k(284);return r.openingElement=e,r.children=x(t),r.closingElement=n,r.transformFlags|=VC(r.openingElement)|WC(r.children)|VC(r.closingElement)|2,r}function qr(e,t,n){const r=k(285);return r.tagName=e,r.typeArguments=Di(t),r.attributes=n,r.transformFlags|=VC(r.tagName)|WC(r.typeArguments)|VC(r.attributes)|2,r.typeArguments&&(r.transformFlags|=1),r}function Ur(e,t,n){const r=k(286);return r.tagName=e,r.typeArguments=Di(t),r.attributes=n,r.transformFlags|=VC(r.tagName)|WC(r.typeArguments)|VC(r.attributes)|2,t&&(r.transformFlags|=1),r}function Vr(e){const t=k(287);return t.tagName=e,t.transformFlags|=2|VC(t.tagName),t}function Wr(e,t,n){const r=k(288);return r.openingFragment=e,r.children=x(t),r.closingFragment=n,r.transformFlags|=VC(r.openingFragment)|WC(r.children)|VC(r.closingFragment)|2,r}function $r(e,t){const n=k(12);return n.text=e,n.containsOnlyTriviaWhiteSpaces=!!t,n.transformFlags|=2,n}function Hr(e,t){const n=S(291);return n.name=e,n.initializer=t,n.transformFlags|=VC(n.name)|VC(n.initializer)|2,n}function Kr(e){const t=S(292);return t.properties=x(e),t.transformFlags|=2|WC(t.properties),t}function Gr(e){const t=k(293);return t.expression=e,t.transformFlags|=2|VC(t.expression),t}function Xr(e,t){const n=k(294);return n.dotDotDotToken=e,n.expression=t,n.transformFlags|=VC(n.dotDotDotToken)|VC(n.expression)|2,n}function Qr(e,t){const n=k(295);return n.namespace=e,n.name=t,n.transformFlags|=VC(n.namespace)|VC(n.name)|2,n}function Yr(e,t){const n=k(296);return n.expression=r().parenthesizeExpressionForDisallowedComma(e),n.statements=x(t),n.transformFlags|=VC(n.expression)|WC(n.statements),n.jsDoc=void 0,n}function Zr(e){const t=k(297);return t.statements=x(e),t.transformFlags=WC(t.statements),t}function ei(e,t){const n=k(298);switch(n.token=e,n.types=x(t),n.transformFlags|=WC(n.types),e){case 96:n.transformFlags|=1024;break;case 119:n.transformFlags|=1;break;default:return un.assertNever(e)}return n}function ti(e,t){const n=k(299);return n.variableDeclaration=function(e){return"string"==typeof e||e&&!VF(e)?Nn(e,void 0,void 0,void 0):e}(e),n.block=t,n.transformFlags|=VC(n.variableDeclaration)|VC(n.block)|(e?0:64),n.locals=void 0,n.nextContainer=void 0,n}function ni(e,t){const n=S(303);return n.name=Fi(e),n.initializer=r().parenthesizeExpressionForDisallowedComma(t),n.transformFlags|=qC(n.name)|VC(n.initializer),n.modifiers=void 0,n.questionToken=void 0,n.exclamationToken=void 0,n.jsDoc=void 0,n}function ri(e,t,n){return e.name!==t||e.initializer!==n?((r=ni(t,n))!==(i=e)&&(r.modifiers=i.modifiers,r.questionToken=i.questionToken,r.exclamationToken=i.exclamationToken),Ii(r,i)):e;var r,i}function ii(e,t){const n=S(304);return n.name=Fi(e),n.objectAssignmentInitializer=t&&r().parenthesizeExpressionForDisallowedComma(t),n.transformFlags|=UC(n.name)|VC(n.objectAssignmentInitializer)|1024,n.equalsToken=void 0,n.modifiers=void 0,n.questionToken=void 0,n.exclamationToken=void 0,n.jsDoc=void 0,n}function oi(e){const t=S(305);return t.expression=r().parenthesizeExpressionForDisallowedComma(e),t.transformFlags|=65664|VC(t.expression),t.jsDoc=void 0,t}function ai(e,t){const n=S(306);return n.name=Fi(e),n.initializer=t&&r().parenthesizeExpressionForDisallowedComma(t),n.transformFlags|=VC(n.name)|VC(n.initializer)|1,n.jsDoc=void 0,n}function si(e){const t=Object.create(e.redirectTarget);return Object.defineProperties(t,{id:{get(){return this.redirectInfo.redirectTarget.id},set(e){this.redirectInfo.redirectTarget.id=e}},symbol:{get(){return this.redirectInfo.redirectTarget.symbol},set(e){this.redirectInfo.redirectTarget.symbol=e}}}),t.redirectInfo=e,t}function ci(e){const r=e.redirectInfo?function(e){const t=si(e.redirectInfo);return t.flags|=-17&e.flags,t.fileName=e.fileName,t.path=e.path,t.resolvedPath=e.resolvedPath,t.originalFileName=e.originalFileName,t.packageJsonLocations=e.packageJsonLocations,t.packageJsonScope=e.packageJsonScope,t.emitNode=void 0,t}(e):function(e){const n=t.createBaseSourceFileNode(307);n.flags|=-17&e.flags;for(const t in e)!De(n,t)&&De(e,t)&&("emitNode"!==t?n[t]=e[t]:n.emitNode=void 0);return n}(e);return n(r,e),r}function li(e){const t=k(308);return t.sourceFiles=e,t.syntheticFileReferences=void 0,t.syntheticTypeReferences=void 0,t.syntheticLibReferences=void 0,t.hasNoDefaultLib=void 0,t}function _i(e,t){const n=k(355);return n.expression=e,n.original=t,n.transformFlags|=1|VC(n.expression),nI(n,t),n}function ui(e,t){return e.expression!==t?Ii(_i(t,e.original),e):e}function di(e){if(Zh(e)&&!uc(e)&&!e.original&&!e.emitNode&&!e.id){if(kF(e))return e.elements;if(cF(e)&&AN(e.operatorToken))return[e.left,e.right]}return e}function pi(e){const t=k(356);return t.elements=x(R(e,di)),t.transformFlags|=WC(t.elements),t}function fi(e,t){const n=k(357);return n.expression=e,n.thisArg=t,n.transformFlags|=VC(n.expression)|VC(n.thisArg),n}function mi(e){if(void 0===e)return e;if(qE(e))return ci(e);if(Vl(e))return function(e){const t=E(e.escapedText);return t.flags|=-17&e.flags,t.transformFlags=e.transformFlags,n(t,e),Lw(t,{...e.emitNode.autoGenerate}),t}(e);if(zN(e))return function(e){const t=E(e.escapedText);t.flags|=-17&e.flags,t.jsDoc=e.jsDoc,t.flowNode=e.flowNode,t.symbol=e.symbol,t.transformFlags=e.transformFlags,n(t,e);const r=Ow(e);return r&&Iw(t,r),t}(e);if(Wl(e))return function(e){const t=L(e.escapedText);return t.flags|=-17&e.flags,t.transformFlags=e.transformFlags,n(t,e),Lw(t,{...e.emitNode.autoGenerate}),t}(e);if(qN(e))return function(e){const t=L(e.escapedText);return t.flags|=-17&e.flags,t.transformFlags=e.transformFlags,n(t,e),t}(e);const r=Nl(e.kind)?t.createBaseNode(e.kind):t.createBaseTokenNode(e.kind);r.flags|=-17&e.flags,r.transformFlags=e.transformFlags,n(r,e);for(const t in e)!De(r,t)&&De(e,t)&&(r[t]=e[t]);return r}function gi(){return Et(C("0"))}function hi(e,t,n){return ml(e)?gt(it(e,void 0,t),void 0,void 0,n):mt(rt(e,t),void 0,n)}function yi(e,t,n){return hi(A(e),t,n)}function vi(e,t,n){return!!n&&(e.push(ni(t,n)),!0)}function bi(e,t){const n=oh(e);switch(n.kind){case 80:return t;case 110:case 9:case 10:case 11:return!1;case 209:return 0!==n.elements.length;case 210:return n.properties.length>0;default:return!0}}function xi(e,t,n,r=0,i){const o=i?e&&Sc(e):Tc(e);if(o&&zN(o)&&!Vl(o)){const e=wT(nI(mi(o),o),o.parent);return r|=Qd(o),n||(r|=96),t||(r|=3072),r&&nw(e,r),e}return O(e)}function ki(e,t,n){return xi(e,t,n,16384)}function Si(e,t,n,r){const i=rt(e,Zh(t)?t:mi(t));nI(i,t);let o=0;return r||(o|=96),n||(o|=3072),o&&nw(i,o),i}function Ti(){return _A(_n(D("use strict")))}function Ci(e,t,n=0,r){un.assert(0===t.length,"Prologue directives should be at the first statement in the target statements array");let i=!1;const o=e.length;for(;n=182&&e<=205)return-2;switch(e){case 213:case 214:case 209:case 206:case 207:return-2147450880;case 267:return-1941676032;case 169:case 216:case 238:case 234:case 355:case 217:case 108:case 211:case 212:default:return-2147483648;case 219:return-2072174592;case 218:case 262:return-1937940480;case 261:return-2146893824;case 263:case 231:return-2147344384;case 176:return-1937948672;case 172:return-2013249536;case 174:case 177:case 178:return-2005057536;case 133:case 150:case 163:case 146:case 154:case 151:case 136:case 155:case 116:case 168:case 171:case 173:case 179:case 180:case 181:case 264:case 265:return-2;case 210:return-2147278848;case 299:return-2147418112}}(e.kind);return kc(e)&&e_(e.name)?t|134234112&e.name.transformFlags:t}function WC(e){return e?e.transformFlags:0}function $C(e){let t=0;for(const n of e)t|=VC(n);e.transformFlags=t}var HC=FC();function KC(e){return e.flags|=16,e}var GC,XC=BC(4,{createBaseSourceFileNode:e=>KC(HC.createBaseSourceFileNode(e)),createBaseIdentifierNode:e=>KC(HC.createBaseIdentifierNode(e)),createBasePrivateIdentifierNode:e=>KC(HC.createBasePrivateIdentifierNode(e)),createBaseTokenNode:e=>KC(HC.createBaseTokenNode(e)),createBaseNode:e=>KC(HC.createBaseNode(e))});function QC(e,t,n){return new(GC||(GC=jx.getSourceMapSourceConstructor()))(e,t,n)}function YC(e,t){if(e.original!==t&&(e.original=t,t)){const n=t.emitNode;n&&(e.emitNode=function(e,t){const{flags:n,internalFlags:r,leadingComments:i,trailingComments:o,commentRange:a,sourceMapRange:s,tokenSourceMapRanges:c,constantValue:l,helpers:_,startsOnNewLine:u,snippetElement:d,classThis:p,assignedName:f}=e;if(t||(t={}),n&&(t.flags=n),r&&(t.internalFlags=-9&r),i&&(t.leadingComments=se(i.slice(),t.leadingComments)),o&&(t.trailingComments=se(o.slice(),t.trailingComments)),a&&(t.commentRange=a),s&&(t.sourceMapRange=s),c&&(t.tokenSourceMapRanges=function(e,t){t||(t=[]);for(const n in e)t[n]=e[n];return t}(c,t.tokenSourceMapRanges)),void 0!==l&&(t.constantValue=l),_)for(const e of _)t.helpers=le(t.helpers,e);return void 0!==u&&(t.startsOnNewLine=u),void 0!==d&&(t.snippetElement=d),p&&(t.classThis=p),f&&(t.assignedName=f),t}(n,e.emitNode))}return e}function ZC(e){if(e.emitNode)un.assert(!(8&e.emitNode.internalFlags),"Invalid attempt to mutate an immutable node.");else{if(uc(e)){if(307===e.kind)return e.emitNode={annotatedNodes:[e]};ZC(hd(dc(hd(e)))??un.fail("Could not determine parsed source file.")).annotatedNodes.push(e)}e.emitNode={}}return e.emitNode}function ew(e){var t,n;const r=null==(n=null==(t=hd(dc(e)))?void 0:t.emitNode)?void 0:n.annotatedNodes;if(r)for(const e of r)e.emitNode=void 0}function tw(e){const t=ZC(e);return t.flags|=3072,t.leadingComments=void 0,t.trailingComments=void 0,e}function nw(e,t){return ZC(e).flags=t,e}function rw(e,t){const n=ZC(e);return n.flags=n.flags|t,e}function iw(e,t){return ZC(e).internalFlags=t,e}function ow(e,t){const n=ZC(e);return n.internalFlags=n.internalFlags|t,e}function aw(e){var t;return(null==(t=e.emitNode)?void 0:t.sourceMapRange)??e}function sw(e,t){return ZC(e).sourceMapRange=t,e}function cw(e,t){var n,r;return null==(r=null==(n=e.emitNode)?void 0:n.tokenSourceMapRanges)?void 0:r[t]}function lw(e,t,n){const r=ZC(e);return(r.tokenSourceMapRanges??(r.tokenSourceMapRanges=[]))[t]=n,e}function _w(e){var t;return null==(t=e.emitNode)?void 0:t.startsOnNewLine}function uw(e,t){return ZC(e).startsOnNewLine=t,e}function dw(e){var t;return(null==(t=e.emitNode)?void 0:t.commentRange)??e}function pw(e,t){return ZC(e).commentRange=t,e}function fw(e){var t;return null==(t=e.emitNode)?void 0:t.leadingComments}function mw(e,t){return ZC(e).leadingComments=t,e}function gw(e,t,n,r){return mw(e,ie(fw(e),{kind:t,pos:-1,end:-1,hasTrailingNewLine:r,text:n}))}function hw(e){var t;return null==(t=e.emitNode)?void 0:t.trailingComments}function yw(e,t){return ZC(e).trailingComments=t,e}function vw(e,t,n,r){return yw(e,ie(hw(e),{kind:t,pos:-1,end:-1,hasTrailingNewLine:r,text:n}))}function bw(e,t){mw(e,fw(t)),yw(e,hw(t));const n=ZC(t);return n.leadingComments=void 0,n.trailingComments=void 0,e}function xw(e){var t;return null==(t=e.emitNode)?void 0:t.constantValue}function kw(e,t){return ZC(e).constantValue=t,e}function Sw(e,t){const n=ZC(e);return n.helpers=ie(n.helpers,t),e}function Tw(e,t){if($(t)){const n=ZC(e);for(const e of t)n.helpers=le(n.helpers,e)}return e}function Cw(e,t){var n;const r=null==(n=e.emitNode)?void 0:n.helpers;return!!r&&zt(r,t)}function ww(e){var t;return null==(t=e.emitNode)?void 0:t.helpers}function Nw(e,t,n){const r=e.emitNode,i=r&&r.helpers;if(!$(i))return;const o=ZC(t);let a=0;for(let e=0;e0&&(i[e-a]=t)}a>0&&(i.length-=a)}function Dw(e){var t;return null==(t=e.emitNode)?void 0:t.snippetElement}function Fw(e,t){return ZC(e).snippetElement=t,e}function Ew(e){return ZC(e).internalFlags|=4,e}function Pw(e,t){return ZC(e).typeNode=t,e}function Aw(e){var t;return null==(t=e.emitNode)?void 0:t.typeNode}function Iw(e,t){return ZC(e).identifierTypeArguments=t,e}function Ow(e){var t;return null==(t=e.emitNode)?void 0:t.identifierTypeArguments}function Lw(e,t){return ZC(e).autoGenerate=t,e}function jw(e){var t;return null==(t=e.emitNode)?void 0:t.autoGenerate}function Rw(e,t){return ZC(e).generatedImportReference=t,e}function Mw(e){var t;return null==(t=e.emitNode)?void 0:t.generatedImportReference}var Bw=(e=>(e.Field="f",e.Method="m",e.Accessor="a",e))(Bw||{});function Jw(e){const t=e.factory,n=dt((()=>iw(t.createTrue(),8))),r=dt((()=>iw(t.createFalse(),8)));return{getUnscopedHelperName:i,createDecorateHelper:function(n,r,o,a){e.requestEmitHelper(Uw);const s=[];return s.push(t.createArrayLiteralExpression(n,!0)),s.push(r),o&&(s.push(o),a&&s.push(a)),t.createCallExpression(i("__decorate"),void 0,s)},createMetadataHelper:function(n,r){return e.requestEmitHelper(Vw),t.createCallExpression(i("__metadata"),void 0,[t.createStringLiteral(n),r])},createParamHelper:function(n,r,o){return e.requestEmitHelper(Ww),nI(t.createCallExpression(i("__param"),void 0,[t.createNumericLiteral(r+""),n]),o)},createESDecorateHelper:function(n,r,o,s,c,l){return e.requestEmitHelper($w),t.createCallExpression(i("__esDecorate"),void 0,[n??t.createNull(),r??t.createNull(),o,a(s),c,l])},createRunInitializersHelper:function(n,r,o){return e.requestEmitHelper(Hw),t.createCallExpression(i("__runInitializers"),void 0,o?[n,r,o]:[n,r])},createAssignHelper:function(n){return hk(e.getCompilerOptions())>=2?t.createCallExpression(t.createPropertyAccessExpression(t.createIdentifier("Object"),"assign"),void 0,n):(e.requestEmitHelper(Kw),t.createCallExpression(i("__assign"),void 0,n))},createAwaitHelper:function(n){return e.requestEmitHelper(Gw),t.createCallExpression(i("__await"),void 0,[n])},createAsyncGeneratorHelper:function(n,r){return e.requestEmitHelper(Gw),e.requestEmitHelper(Xw),(n.emitNode||(n.emitNode={})).flags|=1572864,t.createCallExpression(i("__asyncGenerator"),void 0,[r?t.createThis():t.createVoidZero(),t.createIdentifier("arguments"),n])},createAsyncDelegatorHelper:function(n){return e.requestEmitHelper(Gw),e.requestEmitHelper(Qw),t.createCallExpression(i("__asyncDelegator"),void 0,[n])},createAsyncValuesHelper:function(n){return e.requestEmitHelper(Yw),t.createCallExpression(i("__asyncValues"),void 0,[n])},createRestHelper:function(n,r,o,a){e.requestEmitHelper(Zw);const s=[];let c=0;for(let e=0;e{let r="";for(let i=0;i= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n return c > 3 && r && Object.defineProperty(target, key, r), r;\n };'},Vw={name:"typescript:metadata",importName:"__metadata",scoped:!1,priority:3,text:'\n var __metadata = (this && this.__metadata) || function (k, v) {\n if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);\n };'},Ww={name:"typescript:param",importName:"__param",scoped:!1,priority:4,text:"\n var __param = (this && this.__param) || function (paramIndex, decorator) {\n return function (target, key) { decorator(target, key, paramIndex); }\n };"},$w={name:"typescript:esDecorate",importName:"__esDecorate",scoped:!1,priority:2,text:'\n var __esDecorate = (this && this.__esDecorate) || function (ctor, descriptorIn, decorators, contextIn, initializers, extraInitializers) {\n function accept(f) { if (f !== void 0 && typeof f !== "function") throw new TypeError("Function expected"); return f; }\n var kind = contextIn.kind, key = kind === "getter" ? "get" : kind === "setter" ? "set" : "value";\n var target = !descriptorIn && ctor ? contextIn["static"] ? ctor : ctor.prototype : null;\n var descriptor = descriptorIn || (target ? Object.getOwnPropertyDescriptor(target, contextIn.name) : {});\n var _, done = false;\n for (var i = decorators.length - 1; i >= 0; i--) {\n var context = {};\n for (var p in contextIn) context[p] = p === "access" ? {} : contextIn[p];\n for (var p in contextIn.access) context.access[p] = contextIn.access[p];\n context.addInitializer = function (f) { if (done) throw new TypeError("Cannot add initializers after decoration has completed"); extraInitializers.push(accept(f || null)); };\n var result = (0, decorators[i])(kind === "accessor" ? { get: descriptor.get, set: descriptor.set } : descriptor[key], context);\n if (kind === "accessor") {\n if (result === void 0) continue;\n if (result === null || typeof result !== "object") throw new TypeError("Object expected");\n if (_ = accept(result.get)) descriptor.get = _;\n if (_ = accept(result.set)) descriptor.set = _;\n if (_ = accept(result.init)) initializers.unshift(_);\n }\n else if (_ = accept(result)) {\n if (kind === "field") initializers.unshift(_);\n else descriptor[key] = _;\n }\n }\n if (target) Object.defineProperty(target, contextIn.name, descriptor);\n done = true;\n };'},Hw={name:"typescript:runInitializers",importName:"__runInitializers",scoped:!1,priority:2,text:"\n var __runInitializers = (this && this.__runInitializers) || function (thisArg, initializers, value) {\n var useValue = arguments.length > 2;\n for (var i = 0; i < initializers.length; i++) {\n value = useValue ? initializers[i].call(thisArg, value) : initializers[i].call(thisArg);\n }\n return useValue ? value : void 0;\n };"},Kw={name:"typescript:assign",importName:"__assign",scoped:!1,priority:1,text:"\n var __assign = (this && this.__assign) || function () {\n __assign = Object.assign || function(t) {\n for (var s, i = 1, n = arguments.length; i < n; i++) {\n s = arguments[i];\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))\n t[p] = s[p];\n }\n return t;\n };\n return __assign.apply(this, arguments);\n };"},Gw={name:"typescript:await",importName:"__await",scoped:!1,text:"\n var __await = (this && this.__await) || function (v) { return this instanceof __await ? (this.v = v, this) : new __await(v); }"},Xw={name:"typescript:asyncGenerator",importName:"__asyncGenerator",scoped:!1,dependencies:[Gw],text:'\n var __asyncGenerator = (this && this.__asyncGenerator) || function (thisArg, _arguments, generator) {\n if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");\n var g = generator.apply(thisArg, _arguments || []), i, q = [];\n return i = Object.create((typeof AsyncIterator === "function" ? AsyncIterator : Object).prototype), verb("next"), verb("throw"), verb("return", awaitReturn), i[Symbol.asyncIterator] = function () { return this; }, i;\n function awaitReturn(f) { return function (v) { return Promise.resolve(v).then(f, reject); }; }\n function verb(n, f) { if (g[n]) { i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; if (f) i[n] = f(i[n]); } }\n function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } }\n function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }\n function fulfill(value) { resume("next", value); }\n function reject(value) { resume("throw", value); }\n function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); }\n };'},Qw={name:"typescript:asyncDelegator",importName:"__asyncDelegator",scoped:!1,dependencies:[Gw],text:'\n var __asyncDelegator = (this && this.__asyncDelegator) || function (o) {\n var i, p;\n return i = {}, verb("next"), verb("throw", function (e) { throw e; }), verb("return"), i[Symbol.iterator] = function () { return this; }, i;\n function verb(n, f) { i[n] = o[n] ? function (v) { return (p = !p) ? { value: __await(o[n](v)), done: false } : f ? f(v) : v; } : f; }\n };'},Yw={name:"typescript:asyncValues",importName:"__asyncValues",scoped:!1,text:'\n var __asyncValues = (this && this.__asyncValues) || function (o) {\n if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");\n var m = o[Symbol.asyncIterator], i;\n return m ? m.call(o) : (o = typeof __values === "function" ? __values(o) : o[Symbol.iterator](), i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i);\n function verb(n) { i[n] = o[n] && function (v) { return new Promise(function (resolve, reject) { v = o[n](v), settle(resolve, reject, v.done, v.value); }); }; }\n function settle(resolve, reject, d, v) { Promise.resolve(v).then(function(v) { resolve({ value: v, done: d }); }, reject); }\n };'},Zw={name:"typescript:rest",importName:"__rest",scoped:!1,text:'\n var __rest = (this && this.__rest) || function (s, e) {\n var t = {};\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)\n t[p] = s[p];\n if (s != null && typeof Object.getOwnPropertySymbols === "function")\n for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))\n t[p[i]] = s[p[i]];\n }\n return t;\n };'},eN={name:"typescript:awaiter",importName:"__awaiter",scoped:!1,priority:5,text:'\n var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {\n function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\n return new (P || (P = Promise))(function (resolve, reject) {\n function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\n function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }\n function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\n step((generator = generator.apply(thisArg, _arguments || [])).next());\n });\n };'},tN={name:"typescript:extends",importName:"__extends",scoped:!1,priority:0,text:'\n var __extends = (this && this.__extends) || (function () {\n var extendStatics = function (d, b) {\n extendStatics = Object.setPrototypeOf ||\n ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\n function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };\n return extendStatics(d, b);\n };\n\n return function (d, b) {\n if (typeof b !== "function" && b !== null)\n throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");\n extendStatics(d, b);\n function __() { this.constructor = d; }\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n })();'},nN={name:"typescript:makeTemplateObject",importName:"__makeTemplateObject",scoped:!1,priority:0,text:'\n var __makeTemplateObject = (this && this.__makeTemplateObject) || function (cooked, raw) {\n if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; }\n return cooked;\n };'},rN={name:"typescript:read",importName:"__read",scoped:!1,text:'\n var __read = (this && this.__read) || function (o, n) {\n var m = typeof Symbol === "function" && o[Symbol.iterator];\n if (!m) return o;\n var i = m.call(o), r, ar = [], e;\n try {\n while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);\n }\n catch (error) { e = { error: error }; }\n finally {\n try {\n if (r && !r.done && (m = i["return"])) m.call(i);\n }\n finally { if (e) throw e.error; }\n }\n return ar;\n };'},iN={name:"typescript:spreadArray",importName:"__spreadArray",scoped:!1,text:"\n var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {\n if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {\n if (ar || !(i in from)) {\n if (!ar) ar = Array.prototype.slice.call(from, 0, i);\n ar[i] = from[i];\n }\n }\n return to.concat(ar || Array.prototype.slice.call(from));\n };"},oN={name:"typescript:propKey",importName:"__propKey",scoped:!1,text:'\n var __propKey = (this && this.__propKey) || function (x) {\n return typeof x === "symbol" ? x : "".concat(x);\n };'},aN={name:"typescript:setFunctionName",importName:"__setFunctionName",scoped:!1,text:'\n var __setFunctionName = (this && this.__setFunctionName) || function (f, name, prefix) {\n if (typeof name === "symbol") name = name.description ? "[".concat(name.description, "]") : "";\n return Object.defineProperty(f, "name", { configurable: true, value: prefix ? "".concat(prefix, " ", name) : name });\n };'},sN={name:"typescript:values",importName:"__values",scoped:!1,text:'\n var __values = (this && this.__values) || function(o) {\n var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;\n if (m) return m.call(o);\n if (o && typeof o.length === "number") return {\n next: function () {\n if (o && i >= o.length) o = void 0;\n return { value: o && o[i++], done: !o };\n }\n };\n throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");\n };'},cN={name:"typescript:generator",importName:"__generator",scoped:!1,priority:6,text:'\n var __generator = (this && this.__generator) || function (thisArg, body) {\n var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g = Object.create((typeof Iterator === "function" ? Iterator : Object).prototype);\n return g.next = verb(0), g["throw"] = verb(1), g["return"] = verb(2), typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;\n function verb(n) { return function (v) { return step([n, v]); }; }\n function step(op) {\n if (f) throw new TypeError("Generator is already executing.");\n while (g && (g = 0, op[0] && (_ = 0)), _) try {\n if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;\n if (y = 0, t) op = [op[0] & 2, t.value];\n switch (op[0]) {\n case 0: case 1: t = op; break;\n case 4: _.label++; return { value: op[1], done: false };\n case 5: _.label++; y = op[1]; op = [0]; continue;\n case 7: op = _.ops.pop(); _.trys.pop(); continue;\n default:\n if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }\n if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }\n if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }\n if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }\n if (t[2]) _.ops.pop();\n _.trys.pop(); continue;\n }\n op = body.call(thisArg, _);\n } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }\n if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };\n }\n };'},lN={name:"typescript:commonjscreatebinding",importName:"__createBinding",scoped:!1,priority:1,text:'\n var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {\n if (k2 === undefined) k2 = k;\n var desc = Object.getOwnPropertyDescriptor(m, k);\n if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {\n desc = { enumerable: true, get: function() { return m[k]; } };\n }\n Object.defineProperty(o, k2, desc);\n }) : (function(o, m, k, k2) {\n if (k2 === undefined) k2 = k;\n o[k2] = m[k];\n }));'},_N={name:"typescript:commonjsimportstar",importName:"__importStar",scoped:!1,dependencies:[lN,{name:"typescript:commonjscreatevalue",importName:"__setModuleDefault",scoped:!1,priority:1,text:'\n var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {\n Object.defineProperty(o, "default", { enumerable: true, value: v });\n }) : function(o, v) {\n o["default"] = v;\n });'}],priority:2,text:'\n var __importStar = (this && this.__importStar) || (function () {\n var ownKeys = function(o) {\n ownKeys = Object.getOwnPropertyNames || function (o) {\n var ar = [];\n for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;\n return ar;\n };\n return ownKeys(o);\n };\n return function (mod) {\n if (mod && mod.__esModule) return mod;\n var result = {};\n if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);\n __setModuleDefault(result, mod);\n return result;\n };\n })();'},uN={name:"typescript:commonjsimportdefault",importName:"__importDefault",scoped:!1,text:'\n var __importDefault = (this && this.__importDefault) || function (mod) {\n return (mod && mod.__esModule) ? mod : { "default": mod };\n };'},dN={name:"typescript:export-star",importName:"__exportStar",scoped:!1,dependencies:[lN],priority:2,text:'\n var __exportStar = (this && this.__exportStar) || function(m, exports) {\n for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);\n };'},pN={name:"typescript:classPrivateFieldGet",importName:"__classPrivateFieldGet",scoped:!1,text:'\n var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (receiver, state, kind, f) {\n if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");\n if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");\n return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);\n };'},fN={name:"typescript:classPrivateFieldSet",importName:"__classPrivateFieldSet",scoped:!1,text:'\n var __classPrivateFieldSet = (this && this.__classPrivateFieldSet) || function (receiver, state, value, kind, f) {\n if (kind === "m") throw new TypeError("Private method is not writable");\n if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a setter");\n if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot write private member to an object whose class did not declare it");\n return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;\n };'},mN={name:"typescript:classPrivateFieldIn",importName:"__classPrivateFieldIn",scoped:!1,text:'\n var __classPrivateFieldIn = (this && this.__classPrivateFieldIn) || function(state, receiver) {\n if (receiver === null || (typeof receiver !== "object" && typeof receiver !== "function")) throw new TypeError("Cannot use \'in\' operator on non-object");\n return typeof state === "function" ? receiver === state : state.has(receiver);\n };'},gN={name:"typescript:addDisposableResource",importName:"__addDisposableResource",scoped:!1,text:'\n var __addDisposableResource = (this && this.__addDisposableResource) || function (env, value, async) {\n if (value !== null && value !== void 0) {\n if (typeof value !== "object" && typeof value !== "function") throw new TypeError("Object expected.");\n var dispose, inner;\n if (async) {\n if (!Symbol.asyncDispose) throw new TypeError("Symbol.asyncDispose is not defined.");\n dispose = value[Symbol.asyncDispose];\n }\n if (dispose === void 0) {\n if (!Symbol.dispose) throw new TypeError("Symbol.dispose is not defined.");\n dispose = value[Symbol.dispose];\n if (async) inner = dispose;\n }\n if (typeof dispose !== "function") throw new TypeError("Object not disposable.");\n if (inner) dispose = function() { try { inner.call(this); } catch (e) { return Promise.reject(e); } };\n env.stack.push({ value: value, dispose: dispose, async: async });\n }\n else if (async) {\n env.stack.push({ async: true });\n }\n return value;\n };'},hN={name:"typescript:disposeResources",importName:"__disposeResources",scoped:!1,text:'\n var __disposeResources = (this && this.__disposeResources) || (function (SuppressedError) {\n return function (env) {\n function fail(e) {\n env.error = env.hasError ? new SuppressedError(e, env.error, "An error was suppressed during disposal.") : e;\n env.hasError = true;\n }\n var r, s = 0;\n function next() {\n while (r = env.stack.pop()) {\n try {\n if (!r.async && s === 1) return s = 0, env.stack.push(r), Promise.resolve().then(next);\n if (r.dispose) {\n var result = r.dispose.call(r.value);\n if (r.async) return s |= 2, Promise.resolve(result).then(next, function(e) { fail(e); return next(); });\n }\n else s |= 1;\n }\n catch (e) {\n fail(e);\n }\n }\n if (s === 1) return env.hasError ? Promise.reject(env.error) : Promise.resolve();\n if (env.hasError) throw env.error;\n }\n return next();\n };\n })(typeof SuppressedError === "function" ? SuppressedError : function (error, suppressed, message) {\n var e = new Error(message);\n return e.name = "SuppressedError", e.error = error, e.suppressed = suppressed, e;\n });'},yN={name:"typescript:rewriteRelativeImportExtensions",importName:"__rewriteRelativeImportExtension",scoped:!1,text:'\n var __rewriteRelativeImportExtension = (this && this.__rewriteRelativeImportExtension) || function (path, preserveJsx) {\n if (typeof path === "string" && /^\\.\\.?\\//.test(path)) {\n return path.replace(/\\.(tsx)$|((?:\\.d)?)((?:\\.[^./]+?)?)\\.([cm]?)ts$/i, function (m, tsx, d, ext, cm) {\n return tsx ? preserveJsx ? ".jsx" : ".js" : d && (!ext || !cm) ? m : (d + ext + "." + cm.toLowerCase() + "js");\n });\n }\n return path;\n };'},vN={name:"typescript:async-super",scoped:!0,text:qw` - const ${"_superIndex"} = name => super[name];`},bN={name:"typescript:advanced-async-super",scoped:!0,text:qw` +var guts;(()=>{var e={21:()=>{},156:function(e,t,n){"use strict";var r,i=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(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){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),a=this&&this.__importStar||(r=function(e){return r=Object.getOwnPropertyNames||function(e){var t=[];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[t.length]=n);return t},r(e)},function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n=r(e),a=0;a{},247:()=>{},387:e=>{function t(e){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}t.keys=()=>[],t.resolve=t,t.id=387,e.exports=t},615:()=>{},641:()=>{},664:()=>{},732:()=>{},843:(e,t,n)=>{var r="/index.js",i={};(e=>{"use strict";var t=Object.defineProperty,i=(Object.getOwnPropertyDescriptor,Object.getOwnPropertyNames,Object.prototype.hasOwnProperty,(e,n)=>{for(var r in n)t(e,r,{get:n[r],enumerable:!0})}),o={};i(o,{ANONYMOUS:()=>dZ,AccessFlags:()=>Xr,AssertionLevel:()=>ft,AssignmentDeclarationKind:()=>ai,AssignmentKind:()=>Kg,Associativity:()=>ty,BreakpointResolver:()=>n7,BuilderFileEmit:()=>YV,BuilderProgramKind:()=>wW,BuilderState:()=>XV,CallHierarchy:()=>i7,CharacterCodes:()=>ki,CheckFlags:()=>Ur,CheckMode:()=>HB,ClassificationType:()=>zG,ClassificationTypeNames:()=>JG,CommentDirectiveType:()=>Tr,Comparison:()=>c,CompletionInfoFlags:()=>IG,CompletionTriggerKind:()=>CG,Completions:()=>mae,ContainerFlags:()=>$R,ContextFlags:()=>Or,Debug:()=>un,DiagnosticCategory:()=>si,Diagnostics:()=>_a,DocumentHighlights:()=>y0,ElementFlags:()=>Gr,EmitFlags:()=>wi,EmitHint:()=>Ei,EmitOnly:()=>Dr,EndOfLineState:()=>jG,ExitStatus:()=>Er,ExportKind:()=>i0,Extension:()=>Si,ExternalEmitHelpers:()=>Fi,FileIncludeKind:()=>wr,FilePreprocessingDiagnosticsKind:()=>Nr,FileSystemEntryKind:()=>no,FileWatcherEventKind:()=>Bi,FindAllReferences:()=>gce,FlattenLevel:()=>Tz,FlowFlags:()=>Sr,ForegroundColorEscapeSequences:()=>XU,FunctionFlags:()=>Ih,GeneratedIdentifierFlags:()=>br,GetLiteralTextFlags:()=>np,GoToDefinition:()=>rle,HighlightSpanKind:()=>NG,IdentifierNameMap:()=>ZJ,ImportKind:()=>r0,ImportsNotUsedAsValues:()=>gi,IndentStyle:()=>DG,IndexFlags:()=>Qr,IndexKind:()=>ti,InferenceFlags:()=>ii,InferencePriority:()=>ri,InlayHintKind:()=>wG,InlayHints:()=>xle,InternalEmitFlags:()=>Ni,InternalNodeBuilderFlags:()=>jr,InternalSymbolName:()=>Vr,IntersectionFlags:()=>Ir,InvalidatedProjectKind:()=>yH,JSDocParsingMode:()=>ji,JsDoc:()=>wle,JsTyping:()=>VK,JsxEmit:()=>mi,JsxFlags:()=>hr,JsxReferenceKind:()=>Yr,LanguageFeatureMinimumTarget:()=>Di,LanguageServiceMode:()=>xG,LanguageVariant:()=>bi,LexicalEnvironmentFlags:()=>Ai,ListFormat:()=>Ii,LogLevel:()=>dn,MapCode:()=>$le,MemberOverrideStatus:()=>Pr,ModifierFlags:()=>gr,ModuleDetectionKind:()=>_i,ModuleInstanceState:()=>qR,ModuleKind:()=>fi,ModuleResolutionKind:()=>li,ModuleSpecifierEnding:()=>MS,NavigateTo:()=>V1,NavigationBar:()=>t2,NewLineKind:()=>hi,NodeBuilderFlags:()=>Lr,NodeCheckFlags:()=>Wr,NodeFactoryFlags:()=>tw,NodeFlags:()=>mr,NodeResolutionFeatures:()=>JM,ObjectFlags:()=>Hr,OperationCanceledException:()=>Cr,OperatorPrecedence:()=>ay,OrganizeImports:()=>Yle,OrganizeImportsMode:()=>TG,OuterExpressionKinds:()=>Pi,OutliningElementsCollector:()=>F_e,OutliningSpanKind:()=>OG,OutputFileType:()=>LG,PackageJsonAutoImportPreference:()=>bG,PackageJsonDependencyGroup:()=>vG,PatternMatchKind:()=>W0,PollingInterval:()=>Ji,PollingWatchKind:()=>pi,PragmaKindFlags:()=>Oi,PredicateSemantics:()=>vr,PreparePasteEdits:()=>_fe,PrivateIdentifierKind:()=>iN,ProcessLevel:()=>Wz,ProgramUpdateLevel:()=>NU,QuotePreference:()=>ZQ,RegularExpressionFlags:()=>xr,RelationComparisonResult:()=>yr,Rename:()=>R_e,ScriptElementKind:()=>RG,ScriptElementKindModifier:()=>BG,ScriptKind:()=>yi,ScriptSnapshot:()=>dG,ScriptTarget:()=>vi,SemanticClassificationFormat:()=>SG,SemanticMeaning:()=>UG,SemicolonPreference:()=>FG,SignatureCheckMode:()=>KB,SignatureFlags:()=>ei,SignatureHelp:()=>W_e,SignatureInfo:()=>QV,SignatureKind:()=>Zr,SmartSelectionRange:()=>gue,SnippetKind:()=>Ci,StatisticType:()=>rK,StructureIsReused:()=>Fr,SymbolAccessibility:()=>Br,SymbolDisplay:()=>Nue,SymbolDisplayPartKind:()=>AG,SymbolFlags:()=>qr,SymbolFormatFlags:()=>Rr,SyntaxKind:()=>fr,Ternary:()=>oi,ThrottledCancellationToken:()=>H8,TokenClass:()=>MG,TokenFlags:()=>kr,TransformFlags:()=>Ti,TypeFacts:()=>WB,TypeFlags:()=>$r,TypeFormatFlags:()=>Mr,TypeMapKind:()=>ni,TypePredicateKind:()=>Jr,TypeReferenceSerializationKind:()=>zr,UnionReduction:()=>Ar,UpToDateStatusType:()=>W$,VarianceFlags:()=>Kr,Version:()=>bn,VersionRange:()=>kn,WatchDirectoryFlags:()=>xi,WatchDirectoryKind:()=>di,WatchFileKind:()=>ui,WatchLogLevel:()=>LU,WatchType:()=>F$,accessPrivateIdentifier:()=>bz,addEmitFlags:()=>kw,addEmitHelper:()=>qw,addEmitHelpers:()=>Uw,addInternalEmitFlags:()=>Tw,addNodeFactoryPatcher:()=>rw,addObjectAllocatorPatcher:()=>Bx,addRange:()=>se,addRelatedInfo:()=>aT,addSyntheticLeadingComment:()=>Lw,addSyntheticTrailingComment:()=>Rw,addToSeen:()=>bx,advancedAsyncSuperHelper:()=>BN,affectsDeclarationPathOptionDeclarations:()=>MO,affectsEmitOptionDeclarations:()=>jO,allKeysStartWithDot:()=>gR,altDirectorySeparator:()=>_o,and:()=>Zt,append:()=>ie,appendIfUnique:()=>le,arrayFrom:()=>Oe,arrayIsEqualTo:()=>te,arrayIsHomogeneous:()=>kT,arrayOf:()=>Ie,arrayReverseIterator:()=>ue,arrayToMap:()=>Me,arrayToMultiMap:()=>Be,arrayToNumericMap:()=>Re,assertType:()=>nn,assign:()=>Le,asyncSuperHelper:()=>RN,attachFileToDiagnostics:()=>Kx,base64decode:()=>Tb,base64encode:()=>Sb,binarySearch:()=>Te,binarySearchKey:()=>Ce,bindSourceFile:()=>GR,breakIntoCharacterSpans:()=>c1,breakIntoWordSpans:()=>l1,buildLinkParts:()=>jY,buildOpts:()=>HO,buildOverload:()=>xfe,bundlerModuleNameResolver:()=>zM,canBeConvertedToAsync:()=>I1,canHaveDecorators:()=>SI,canHaveExportModifier:()=>WT,canHaveFlowNode:()=>Og,canHaveIllegalDecorators:()=>$A,canHaveIllegalModifiers:()=>HA,canHaveIllegalType:()=>VA,canHaveIllegalTypeParameters:()=>WA,canHaveJSDoc:()=>Lg,canHaveLocals:()=>su,canHaveModifiers:()=>kI,canHaveModuleSpecifier:()=>hg,canHaveSymbol:()=>au,canIncludeBindAndCheckDiagnostics:()=>pT,canJsonReportNoInputFiles:()=>gj,canProduceDiagnostics:()=>Cq,canUsePropertyAccess:()=>HT,canWatchAffectingLocation:()=>GW,canWatchAtTypes:()=>$W,canWatchDirectoryOrFile:()=>VW,canWatchDirectoryOrFilePath:()=>WW,cartesianProduct:()=>an,cast:()=>nt,chainBundle:()=>$J,chainDiagnosticMessages:()=>Zx,changeAnyExtension:()=>Ho,changeCompilerHostLikeToUseCache:()=>$U,changeExtension:()=>$S,changeFullExtension:()=>Ko,changesAffectModuleResolution:()=>Zu,changesAffectingProgramStructure:()=>ed,characterCodeToRegularExpressionFlag:()=>Ia,childIsDecorated:()=>mm,classElementOrClassElementParameterIsDecorated:()=>hm,classHasClassThisAssignment:()=>Lz,classHasDeclaredOrExplicitlyAssignedName:()=>zz,classHasExplicitlyAssignedName:()=>Jz,classOrConstructorParameterIsDecorated:()=>gm,classicNameResolver:()=>LR,classifier:()=>k7,cleanExtendedConfigCache:()=>EU,clear:()=>F,clearMap:()=>ux,clearSharedExtendedConfigFileWatcher:()=>FU,climbPastPropertyAccess:()=>rX,clone:()=>qe,cloneCompilerOptions:()=>SQ,closeFileWatcher:()=>nx,closeFileWatcherOf:()=>RU,codefix:()=>T7,collapseTextChangeRangesAcrossMultipleVersions:()=>Qs,collectExternalModuleInfo:()=>XJ,combine:()=>oe,combinePaths:()=>jo,commandLineOptionOfCustomType:()=>VO,commentPragmas:()=>Li,commonOptionsWithBuild:()=>EO,compact:()=>ne,compareBooleans:()=>Ot,compareDataObjects:()=>_x,compareDiagnostics:()=>nk,compareEmitHelpers:()=>aN,compareNumberOfDirectorySeparators:()=>zS,comparePaths:()=>Zo,comparePathsCaseInsensitive:()=>Yo,comparePathsCaseSensitive:()=>Qo,comparePatternKeys:()=>yR,compareProperties:()=>It,compareStringsCaseInsensitive:()=>St,compareStringsCaseInsensitiveEslintCompatible:()=>Tt,compareStringsCaseSensitive:()=>Ct,compareStringsCaseSensitiveUI:()=>At,compareTextSpans:()=>bt,compareValues:()=>vt,compilerOptionsAffectDeclarationPath:()=>Wk,compilerOptionsAffectEmit:()=>Vk,compilerOptionsAffectSemanticDiagnostics:()=>Uk,compilerOptionsDidYouMeanDiagnostics:()=>cL,compilerOptionsIndicateEsModules:()=>HQ,computeCommonSourceDirectoryOfFilenames:()=>zU,computeLineAndCharacterOfPosition:()=>Ra,computeLineOfPosition:()=>Ba,computeLineStarts:()=>Oa,computePositionOfLineAndCharacter:()=>ja,computeSignatureWithDiagnostics:()=>FW,computeSuggestionDiagnostics:()=>S1,computedOptions:()=>gk,concatenate:()=>K,concatenateDiagnosticMessageChains:()=>ek,consumesNodeCoreModules:()=>PZ,contains:()=>T,containsIgnoredPath:()=>IT,containsObjectRestOrSpread:()=>bI,containsParseError:()=>yd,containsPath:()=>ea,convertCompilerOptionsForTelemetry:()=>Kj,convertCompilerOptionsFromJson:()=>xj,convertJsonOption:()=>Fj,convertToBase64:()=>kb,convertToJson:()=>BL,convertToObject:()=>RL,convertToOptionsWithAbsolutePaths:()=>QL,convertToRelativePath:()=>ia,convertToTSConfig:()=>qL,convertTypeAcquisitionFromJson:()=>kj,copyComments:()=>QY,copyEntries:()=>od,copyLeadingComments:()=>eZ,copyProperties:()=>Ve,copyTrailingAsLeadingComments:()=>nZ,copyTrailingComments:()=>tZ,couldStartTrivia:()=>Xa,countWhere:()=>w,createAbstractBuilder:()=>zW,createAccessorPropertyBackingField:()=>fI,createAccessorPropertyGetRedirector:()=>mI,createAccessorPropertySetRedirector:()=>gI,createBaseNodeFactory:()=>KC,createBinaryExpressionTrampoline:()=>cI,createBuilderProgram:()=>EW,createBuilderProgramUsingIncrementalBuildInfo:()=>LW,createBuilderStatusReporter:()=>Y$,createCacheableExportInfoMap:()=>o0,createCachedDirectoryStructureHost:()=>wU,createClassifier:()=>h0,createCommentDirectivesMap:()=>Jd,createCompilerDiagnostic:()=>Qx,createCompilerDiagnosticForInvalidCustomType:()=>ZO,createCompilerDiagnosticFromMessageChain:()=>Yx,createCompilerHost:()=>qU,createCompilerHostFromProgramHost:()=>P$,createCompilerHostWorker:()=>WU,createDetachedDiagnostic:()=>Wx,createDiagnosticCollection:()=>_y,createDiagnosticForFileFromMessageChain:()=>Wp,createDiagnosticForNode:()=>Rp,createDiagnosticForNodeArray:()=>Bp,createDiagnosticForNodeArrayFromMessageChain:()=>qp,createDiagnosticForNodeFromMessageChain:()=>zp,createDiagnosticForNodeInSourceFile:()=>Jp,createDiagnosticForRange:()=>Hp,createDiagnosticMessageChainFromDiagnostic:()=>$p,createDiagnosticReporter:()=>a$,createDocumentPositionMapper:()=>zJ,createDocumentRegistry:()=>I0,createDocumentRegistryInternal:()=>O0,createEmitAndSemanticDiagnosticsBuilderProgram:()=>JW,createEmitHelperFactory:()=>oN,createEmptyExports:()=>iA,createEvaluator:()=>gC,createExpressionForJsxElement:()=>lA,createExpressionForJsxFragment:()=>_A,createExpressionForObjectLiteralElementLike:()=>fA,createExpressionForPropertyName:()=>pA,createExpressionFromEntityName:()=>dA,createExternalHelpersImportDeclarationIfNeeded:()=>AA,createFileDiagnostic:()=>Gx,createFileDiagnosticFromMessageChain:()=>Vp,createFlowNode:()=>HR,createForOfBindingStatement:()=>uA,createFutureSourceFile:()=>n0,createGetCanonicalFileName:()=>Wt,createGetIsolatedDeclarationErrors:()=>Dq,createGetSourceFile:()=>UU,createGetSymbolAccessibilityDiagnosticForNode:()=>Nq,createGetSymbolAccessibilityDiagnosticForNodeName:()=>wq,createGetSymbolWalker:()=>tB,createIncrementalCompilerHost:()=>z$,createIncrementalProgram:()=>q$,createJsxFactoryExpression:()=>cA,createLanguageService:()=>X8,createLanguageServiceSourceFile:()=>U8,createMemberAccessForPropertyName:()=>oA,createModeAwareCache:()=>DM,createModeAwareCacheKey:()=>NM,createModeMismatchDetails:()=>pd,createModuleNotFoundChain:()=>dd,createModuleResolutionCache:()=>AM,createModuleResolutionLoader:()=>vV,createModuleResolutionLoaderUsingGlobalCache:()=>n$,createModuleSpecifierResolutionHost:()=>KQ,createMultiMap:()=>$e,createNameResolver:()=>vC,createNodeConverters:()=>QC,createNodeFactory:()=>iw,createOptionNameMap:()=>GO,createOverload:()=>bfe,createPackageJsonImportFilter:()=>EZ,createPackageJsonInfo:()=>FZ,createParenthesizerRules:()=>GC,createPatternMatcher:()=>H0,createPrinter:()=>kU,createPrinterWithDefaults:()=>yU,createPrinterWithRemoveComments:()=>vU,createPrinterWithRemoveCommentsNeverAsciiEscape:()=>bU,createPrinterWithRemoveCommentsOmitTrailingSemicolon:()=>xU,createProgram:()=>LV,createProgramDiagnostics:()=>KV,createProgramHost:()=>O$,createPropertyNameNodeForIdentifierOrLiteral:()=>zT,createQueue:()=>Ge,createRange:()=>Ab,createRedirectedBuilderProgram:()=>RW,createResolutionCache:()=>r$,createRuntimeTypeSerializer:()=>Zz,createScanner:()=>gs,createSemanticDiagnosticsBuilderProgram:()=>BW,createSet:()=>Xe,createSolutionBuilder:()=>nH,createSolutionBuilderHost:()=>eH,createSolutionBuilderWithWatch:()=>rH,createSolutionBuilderWithWatchHost:()=>tH,createSortedArray:()=>Y,createSourceFile:()=>eO,createSourceMapGenerator:()=>kJ,createSourceMapSource:()=>gw,createSuperAccessVariableStatement:()=>rq,createSymbolTable:()=>Gu,createSymlinkCache:()=>Qk,createSyntacticTypeNodeBuilder:()=>UK,createSystemWatchFunctions:()=>oo,createTextChange:()=>LQ,createTextChangeFromStartLength:()=>OQ,createTextChangeRange:()=>Gs,createTextRangeFromNode:()=>PQ,createTextRangeFromSpan:()=>IQ,createTextSpan:()=>Ws,createTextSpanFromBounds:()=>$s,createTextSpanFromNode:()=>FQ,createTextSpanFromRange:()=>AQ,createTextSpanFromStringLiteralLikeContent:()=>EQ,createTextWriter:()=>Oy,createTokenRange:()=>Mb,createTypeChecker:()=>nJ,createTypeReferenceDirectiveResolutionCache:()=>IM,createTypeReferenceResolutionLoader:()=>kV,createWatchCompilerHost:()=>U$,createWatchCompilerHostOfConfigFile:()=>M$,createWatchCompilerHostOfFilesAndCompilerOptions:()=>R$,createWatchFactory:()=>E$,createWatchHost:()=>D$,createWatchProgram:()=>V$,createWatchStatusReporter:()=>_$,createWriteFileMeasuringIO:()=>VU,declarationNameToString:()=>Ap,decodeMappings:()=>EJ,decodedTextSpanIntersectsWith:()=>Js,deduplicate:()=>Q,defaultHoverMaximumTruncationLength:()=>$u,defaultInitCompilerOptions:()=>YO,defaultMaximumTruncationLength:()=>Vu,diagnosticCategoryName:()=>ci,diagnosticToString:()=>GZ,diagnosticsEqualityComparer:()=>ak,directoryProbablyExists:()=>Db,directorySeparator:()=>lo,displayPart:()=>SY,displayPartsToString:()=>R8,disposeEmitNodes:()=>vw,documentSpansEqual:()=>fY,dumpTracingLegend:()=>pr,elementAt:()=>pe,elideNodes:()=>_I,emitDetachedComments:()=>bv,emitFiles:()=>fU,emitFilesAndReportErrors:()=>T$,emitFilesAndReportErrorsAndGetExitStatus:()=>C$,emitModuleKindIsNonNodeESM:()=>Ok,emitNewLineBeforeLeadingCommentOfPosition:()=>vv,emitResolverSkipsTypeChecking:()=>pU,emitSkippedWithNoDiagnostics:()=>JV,emptyArray:()=>l,emptyFileSystemEntries:()=>rT,emptyMap:()=>_,emptyOptions:()=>kG,endsWith:()=>Mt,ensurePathIsNonModuleName:()=>$o,ensureScriptKind:()=>bS,ensureTrailingDirectorySeparator:()=>Wo,entityNameToString:()=>Mp,enumerateInsertsAndDeletes:()=>on,equalOwnProperties:()=>je,equateStringsCaseInsensitive:()=>gt,equateStringsCaseSensitive:()=>ht,equateValues:()=>mt,escapeJsxAttributeString:()=>Dy,escapeLeadingUnderscores:()=>fc,escapeNonAsciiString:()=>Sy,escapeSnippetText:()=>BT,escapeString:()=>xy,escapeTemplateSubstitution:()=>dy,evaluatorResult:()=>mC,every:()=>v,exclusivelyPrefixedNodeCoreModules:()=>wC,executeCommandLine:()=>vK,expandPreOrPostfixIncrementOrDecrementExpression:()=>mA,explainFiles:()=>y$,explainIfFileIsRedirectAndImpliedFormat:()=>v$,exportAssignmentIsAlias:()=>mh,expressionResultIsUnused:()=>AT,extend:()=>Ue,extensionFromPath:()=>ZS,extensionIsTS:()=>QS,extensionsNotSupportingExtensionlessResolution:()=>PS,externalHelpersModuleNameText:()=>Uu,factory:()=>mw,fileExtensionIs:()=>ko,fileExtensionIsOneOf:()=>So,fileIncludeReasonToDiagnostics:()=>k$,fileShouldUseJavaScriptRequire:()=>e0,filter:()=>N,filterMutate:()=>D,filterSemanticDiagnostics:()=>qV,find:()=>b,findAncestor:()=>uc,findBestPatternMatch:()=>Kt,findChildOfKind:()=>OX,findComputedPropertyNameCacheAssignment:()=>hI,findConfigFile:()=>BU,findConstructorDeclaration:()=>yC,findContainingList:()=>LX,findDiagnosticForNode:()=>OZ,findFirstNonJsxWhitespaceToken:()=>GX,findIndex:()=>k,findLast:()=>x,findLastIndex:()=>S,findListItemInfo:()=>AX,findModifier:()=>_Y,findNextToken:()=>QX,findPackageJson:()=>DZ,findPackageJsons:()=>NZ,findPrecedingMatchingToken:()=>cQ,findPrecedingToken:()=>YX,findSuperStatementIndexPath:()=>sz,findTokenOnLeftOfPosition:()=>XX,findUseStrictPrologue:()=>bA,first:()=>ge,firstDefined:()=>f,firstDefinedIterator:()=>m,firstIterator:()=>he,firstOrOnly:()=>BZ,firstOrUndefined:()=>fe,firstOrUndefinedIterator:()=>me,fixupCompilerOptions:()=>U1,flatMap:()=>O,flatMapIterator:()=>j,flatMapToMutable:()=>L,flatten:()=>I,flattenCommaList:()=>vI,flattenDestructuringAssignment:()=>Cz,flattenDestructuringBinding:()=>Dz,flattenDiagnosticMessageText:()=>cV,forEach:()=>d,forEachAncestor:()=>nd,forEachAncestorDirectory:()=>sa,forEachAncestorDirectoryStoppingAtGlobalCache:()=>TR,forEachChild:()=>XI,forEachChildRecursively:()=>QI,forEachDynamicImportOrRequireCall:()=>DC,forEachEmittedFile:()=>Kq,forEachEnclosingBlockScopeContainer:()=>Pp,forEachEntry:()=>rd,forEachExternalModuleToImportFrom:()=>c0,forEachImportClauseDeclaration:()=>Cg,forEachKey:()=>id,forEachLeadingCommentRange:()=>os,forEachNameInAccessChainWalkingLeft:()=>Nx,forEachNameOfDefaultExport:()=>g0,forEachOptionsSyntaxByName:()=>MC,forEachProjectReference:()=>OC,forEachPropertyAssignment:()=>Vf,forEachResolvedProjectReference:()=>IC,forEachReturnStatement:()=>Df,forEachRight:()=>p,forEachTrailingCommentRange:()=>as,forEachTsConfigPropArray:()=>Hf,forEachUnique:()=>gY,forEachYieldExpression:()=>Ff,formatColorAndReset:()=>iV,formatDiagnostic:()=>GU,formatDiagnostics:()=>KU,formatDiagnosticsWithColorAndContext:()=>sV,formatGeneratedName:()=>pI,formatGeneratedNamePart:()=>dI,formatLocation:()=>aV,formatMessage:()=>Xx,formatStringFromArgs:()=>zx,formatting:()=>ude,generateDjb2Hash:()=>Mi,generateTSConfig:()=>XL,getAdjustedReferenceLocation:()=>UX,getAdjustedRenameLocation:()=>VX,getAliasDeclarationFromName:()=>ph,getAllAccessorDeclarations:()=>pv,getAllDecoratorsOfClass:()=>fz,getAllDecoratorsOfClassElement:()=>mz,getAllJSDocTags:()=>sl,getAllJSDocTagsOfKind:()=>cl,getAllKeys:()=>Pe,getAllProjectOutputs:()=>_U,getAllSuperTypeNodes:()=>xh,getAllowImportingTsExtensions:()=>hk,getAllowJSCompilerOption:()=>Ak,getAllowSyntheticDefaultImports:()=>Tk,getAncestor:()=>Th,getAnyExtensionFromPath:()=>Po,getAreDeclarationMapsEnabled:()=>Pk,getAssignedExpandoInitializer:()=>$m,getAssignedName:()=>wc,getAssignmentDeclarationKind:()=>tg,getAssignmentDeclarationPropertyAccessKind:()=>ug,getAssignmentTargetKind:()=>Xg,getAutomaticTypeDirectiveNames:()=>bM,getBaseFileName:()=>Fo,getBinaryOperatorPrecedence:()=>cy,getBuildInfo:()=>gU,getBuildInfoFileVersionMap:()=>jW,getBuildInfoText:()=>mU,getBuildOrderFromAnyBuildOrder:()=>Q$,getBuilderCreationParameters:()=>NW,getBuilderFileEmit:()=>eW,getCanonicalDiagnostic:()=>Kp,getCheckFlags:()=>rx,getClassExtendsHeritageElement:()=>vh,getClassLikeDeclarationOfSymbol:()=>mx,getCombinedLocalAndExportSymbolFlags:()=>ax,getCombinedModifierFlags:()=>ic,getCombinedNodeFlags:()=>ac,getCombinedNodeFlagsAlwaysIncludeJSDoc:()=>oc,getCommentRange:()=>Pw,getCommonSourceDirectory:()=>cU,getCommonSourceDirectoryOfConfig:()=>lU,getCompilerOptionValue:()=>$k,getConditions:()=>yM,getConfigFileParsingDiagnostics:()=>PV,getConstantValue:()=>Jw,getContainerFlags:()=>ZR,getContainerNode:()=>hX,getContainingClass:()=>Xf,getContainingClassExcludingClassDecorators:()=>Zf,getContainingClassStaticBlock:()=>Qf,getContainingFunction:()=>Kf,getContainingFunctionDeclaration:()=>Gf,getContainingFunctionOrClassStaticBlock:()=>Yf,getContainingNodeArray:()=>OT,getContainingObjectLiteralElement:()=>Y8,getContextualTypeFromParent:()=>aZ,getContextualTypeFromParentOrAncestorTypeNode:()=>BX,getDeclarationDiagnostics:()=>Fq,getDeclarationEmitExtensionForPath:()=>Wy,getDeclarationEmitOutputFilePath:()=>Uy,getDeclarationEmitOutputFilePathWorker:()=>Vy,getDeclarationFileExtension:()=>dO,getDeclarationFromName:()=>_h,getDeclarationModifierFlagsFromSymbol:()=>ix,getDeclarationOfKind:()=>Hu,getDeclarationsOfKind:()=>Ku,getDeclaredExpandoInitializer:()=>Wm,getDecorators:()=>Nc,getDefaultCompilerOptions:()=>B8,getDefaultFormatCodeSettings:()=>EG,getDefaultLibFileName:()=>Ds,getDefaultLibFilePath:()=>e7,getDefaultLikeExportInfo:()=>f0,getDefaultLikeExportNameFromDeclaration:()=>zZ,getDefaultResolutionModeForFileWorker:()=>BV,getDiagnosticText:()=>mL,getDiagnosticsWithinSpan:()=>LZ,getDirectoryPath:()=>Do,getDirectoryToWatchFailedLookupLocation:()=>XW,getDirectoryToWatchFailedLookupLocationFromTypeRoot:()=>ZW,getDocumentPositionMapper:()=>b1,getDocumentSpansEqualityComparer:()=>mY,getESModuleInterop:()=>Sk,getEditsForFileRename:()=>M0,getEffectiveBaseTypeNode:()=>yh,getEffectiveConstraintOfTypeParameter:()=>ul,getEffectiveContainerForJSDocTemplateTag:()=>Jg,getEffectiveImplementsTypeNodes:()=>bh,getEffectiveInitializer:()=>Vm,getEffectiveJSDocHost:()=>Ug,getEffectiveModifierFlags:()=>Bv,getEffectiveModifierFlagsAlwaysIncludeJSDoc:()=>Jv,getEffectiveModifierFlagsNoCache:()=>Vv,getEffectiveReturnTypeNode:()=>gv,getEffectiveSetAccessorTypeAnnotationNode:()=>yv,getEffectiveTypeAnnotationNode:()=>fv,getEffectiveTypeParameterDeclarations:()=>_l,getEffectiveTypeRoots:()=>uM,getElementOrPropertyAccessArgumentExpressionOrName:()=>lg,getElementOrPropertyAccessName:()=>_g,getElementsOfBindingOrAssignmentPattern:()=>qA,getEmitDeclarations:()=>Dk,getEmitFlags:()=>Zd,getEmitHelpers:()=>Ww,getEmitModuleDetectionKind:()=>xk,getEmitModuleFormatOfFileWorker:()=>MV,getEmitModuleKind:()=>vk,getEmitModuleResolutionKind:()=>bk,getEmitScriptTarget:()=>yk,getEmitStandardClassFields:()=>qk,getEnclosingBlockScopeContainer:()=>Ep,getEnclosingContainer:()=>Fp,getEncodedSemanticClassifications:()=>w0,getEncodedSyntacticClassifications:()=>P0,getEndLinePosition:()=>Cd,getEntityNameFromTypeNode:()=>_m,getEntrypointsFromPackageJsonInfo:()=>aR,getErrorCountForSummary:()=>d$,getErrorSpanForNode:()=>Qp,getErrorSummaryText:()=>g$,getEscapedTextOfIdentifierOrLiteral:()=>Uh,getEscapedTextOfJsxAttributeName:()=>tC,getEscapedTextOfJsxNamespacedName:()=>iC,getExpandoInitializer:()=>Hm,getExportAssignmentExpression:()=>gh,getExportInfoMap:()=>p0,getExportNeedsImportStarHelper:()=>HJ,getExpressionAssociativity:()=>ny,getExpressionPrecedence:()=>iy,getExternalHelpersModuleName:()=>EA,getExternalModuleImportEqualsDeclarationExpression:()=>Cm,getExternalModuleName:()=>kg,getExternalModuleNameFromDeclaration:()=>Jy,getExternalModuleNameFromPath:()=>zy,getExternalModuleNameLiteral:()=>OA,getExternalModuleRequireArgument:()=>wm,getFallbackOptions:()=>MU,getFileEmitOutput:()=>GV,getFileMatcherPatterns:()=>mS,getFileNamesFromConfigSpecs:()=>jj,getFileWatcherEventKind:()=>Xi,getFilesInErrorForSummary:()=>p$,getFirstConstructorWithBody:()=>iv,getFirstIdentifier:()=>sb,getFirstNonSpaceCharacterPosition:()=>GY,getFirstProjectOutput:()=>dU,getFixableErrorSpanExpression:()=>MZ,getFormatCodeSettingsForWriting:()=>XZ,getFullWidth:()=>sd,getFunctionFlags:()=>Oh,getHeritageClause:()=>Sh,getHostSignatureFromJSDoc:()=>qg,getIdentifierAutoGenerate:()=>tN,getIdentifierGeneratedImportReference:()=>rN,getIdentifierTypeArguments:()=>Zw,getImmediatelyInvokedFunctionExpression:()=>om,getImpliedNodeFormatForEmitWorker:()=>RV,getImpliedNodeFormatForFile:()=>AV,getImpliedNodeFormatForFileWorker:()=>IV,getImportNeedsImportDefaultHelper:()=>GJ,getImportNeedsImportStarHelper:()=>KJ,getIndentString:()=>Ay,getInferredLibraryNameResolveFrom:()=>CV,getInitializedVariables:()=>Zb,getInitializerOfBinaryExpression:()=>dg,getInitializerOfBindingOrAssignmentElement:()=>jA,getInterfaceBaseTypeNodes:()=>kh,getInternalEmitFlags:()=>ep,getInvokedExpression:()=>um,getIsFileExcluded:()=>d0,getIsolatedModules:()=>kk,getJSDocAugmentsTag:()=>jc,getJSDocClassTag:()=>Rc,getJSDocCommentRanges:()=>vf,getJSDocCommentsAndTags:()=>jg,getJSDocDeprecatedTag:()=>Kc,getJSDocDeprecatedTagNoCache:()=>Gc,getJSDocEnumTag:()=>Xc,getJSDocHost:()=>Vg,getJSDocImplementsTags:()=>Mc,getJSDocOverloadTags:()=>zg,getJSDocOverrideTagNoCache:()=>Hc,getJSDocParameterTags:()=>Ec,getJSDocParameterTagsNoCache:()=>Pc,getJSDocPrivateTag:()=>zc,getJSDocPrivateTagNoCache:()=>qc,getJSDocProtectedTag:()=>Uc,getJSDocProtectedTagNoCache:()=>Vc,getJSDocPublicTag:()=>Bc,getJSDocPublicTagNoCache:()=>Jc,getJSDocReadonlyTag:()=>Wc,getJSDocReadonlyTagNoCache:()=>$c,getJSDocReturnTag:()=>Yc,getJSDocReturnType:()=>rl,getJSDocRoot:()=>Wg,getJSDocSatisfiesExpressionType:()=>ZT,getJSDocSatisfiesTag:()=>el,getJSDocTags:()=>ol,getJSDocTemplateTag:()=>Zc,getJSDocThisTag:()=>Qc,getJSDocType:()=>nl,getJSDocTypeAliasName:()=>UA,getJSDocTypeAssertionType:()=>CA,getJSDocTypeParameterDeclarations:()=>hv,getJSDocTypeParameterTags:()=>Ic,getJSDocTypeParameterTagsNoCache:()=>Oc,getJSDocTypeTag:()=>tl,getJSXImplicitImportBase:()=>Kk,getJSXRuntimeImport:()=>Gk,getJSXTransformEnabled:()=>Hk,getKeyForCompilerOptions:()=>TM,getLanguageVariant:()=>lk,getLastChild:()=>vx,getLeadingCommentRanges:()=>_s,getLeadingCommentRangesOfNode:()=>yf,getLeftmostAccessExpression:()=>wx,getLeftmostExpression:()=>Dx,getLibFileNameFromLibReference:()=>AC,getLibNameFromLibReference:()=>PC,getLibraryNameFromLibFileName:()=>wV,getLineAndCharacterOfPosition:()=>za,getLineInfo:()=>wJ,getLineOfLocalPosition:()=>nv,getLineStartPositionForPosition:()=>xX,getLineStarts:()=>Ma,getLinesBetweenPositionAndNextNonWhitespaceCharacter:()=>Gb,getLinesBetweenPositionAndPrecedingNonWhitespaceCharacter:()=>Kb,getLinesBetweenPositions:()=>Ja,getLinesBetweenRangeEndAndRangeStart:()=>Ub,getLinesBetweenRangeEndPositions:()=>Vb,getLiteralText:()=>rp,getLocalNameForExternalImport:()=>IA,getLocalSymbolForExportDefault:()=>vb,getLocaleSpecificMessage:()=>Vx,getLocaleTimeString:()=>l$,getMappedContextSpan:()=>bY,getMappedDocumentSpan:()=>vY,getMappedLocation:()=>yY,getMatchedFileSpec:()=>b$,getMatchedIncludeSpec:()=>x$,getMeaningFromDeclaration:()=>VG,getMeaningFromLocation:()=>WG,getMembersOfDeclaration:()=>Pf,getModeForFileReference:()=>lV,getModeForResolutionAtIndex:()=>_V,getModeForUsageLocation:()=>dV,getModifiedTime:()=>qi,getModifiers:()=>Dc,getModuleInstanceState:()=>UR,getModuleNameStringLiteralAt:()=>HV,getModuleSpecifierEndingPreference:()=>RS,getModuleSpecifierResolverHost:()=>GQ,getNameForExportedSymbol:()=>JZ,getNameFromImportAttribute:()=>pC,getNameFromIndexInfo:()=>Ip,getNameFromPropertyName:()=>VQ,getNameOfAccessExpression:()=>Tx,getNameOfCompilerOptionValue:()=>HL,getNameOfDeclaration:()=>Cc,getNameOfExpando:()=>Gm,getNameOfJSDocTypedef:()=>kc,getNameOfScriptTarget:()=>zk,getNameOrArgument:()=>cg,getNameTable:()=>Q8,getNamespaceDeclarationNode:()=>Sg,getNewLineCharacter:()=>Pb,getNewLineKind:()=>KZ,getNewLineOrDefaultFromHost:()=>RY,getNewTargetContainer:()=>rm,getNextJSDocCommentLocation:()=>Rg,getNodeChildren:()=>eA,getNodeForGeneratedName:()=>uI,getNodeId:()=>ZB,getNodeKind:()=>yX,getNodeModifiers:()=>mQ,getNodeModulePathParts:()=>UT,getNonAssignedNameOfDeclaration:()=>Tc,getNonAssignmentOperatorForCompoundAssignment:()=>iz,getNonAugmentationDeclaration:()=>gp,getNonDecoratorTokenPosOfNode:()=>qd,getNonIncrementalBuildInfoRoots:()=>MW,getNonModifierTokenPosOfNode:()=>Ud,getNormalizedAbsolutePath:()=>Bo,getNormalizedAbsolutePathWithoutRoot:()=>qo,getNormalizedPathComponents:()=>Ro,getObjectFlags:()=>gx,getOperatorAssociativity:()=>ry,getOperatorPrecedence:()=>sy,getOptionFromName:()=>_L,getOptionsForLibraryResolution:()=>OM,getOptionsNameMap:()=>XO,getOptionsSyntaxByArrayElementValue:()=>LC,getOptionsSyntaxByValue:()=>jC,getOrCreateEmitNode:()=>yw,getOrUpdate:()=>z,getOriginalNode:()=>_c,getOriginalNodeId:()=>UJ,getOutputDeclarationFileName:()=>tU,getOutputDeclarationFileNameWorker:()=>nU,getOutputExtension:()=>Zq,getOutputFileNames:()=>uU,getOutputJSFileNameWorker:()=>iU,getOutputPathsFor:()=>Qq,getOwnEmitOutputFilePath:()=>qy,getOwnKeys:()=>Ee,getOwnValues:()=>Ae,getPackageJsonTypesVersionsPaths:()=>_M,getPackageNameFromTypesPackageName:()=>AR,getPackageScopeForPath:()=>lR,getParameterSymbolFromJSDoc:()=>Bg,getParentNodeInSpan:()=>cY,getParseTreeNode:()=>pc,getParsedCommandLineOfConfigFile:()=>gL,getPathComponents:()=>Ao,getPathFromPathComponents:()=>Io,getPathUpdater:()=>R0,getPathsBasePath:()=>Ky,getPatternFromSpec:()=>dS,getPendingEmitKindWithSeen:()=>uW,getPositionOfLineAndCharacter:()=>La,getPossibleGenericSignatures:()=>_Q,getPossibleOriginalInputExtensionForExtension:()=>$y,getPossibleOriginalInputPathWithoutChangingExt:()=>Hy,getPossibleTypeArgumentsInfo:()=>uQ,getPreEmitDiagnostics:()=>HU,getPrecedingNonSpaceCharacterPosition:()=>XY,getPrivateIdentifier:()=>yz,getProperties:()=>cz,getProperty:()=>Fe,getPropertyAssignmentAliasLikeExpression:()=>hh,getPropertyNameForPropertyNameNode:()=>Jh,getPropertyNameFromType:()=>cC,getPropertyNameOfBindingOrAssignmentElement:()=>BA,getPropertySymbolFromBindingElement:()=>sY,getPropertySymbolsFromContextualType:()=>Z8,getQuoteFromPreference:()=>nY,getQuotePreference:()=>tY,getRangesWhere:()=>H,getRefactorContextSpan:()=>jZ,getReferencedFileLocation:()=>FV,getRegexFromPattern:()=>gS,getRegularExpressionForWildcard:()=>lS,getRegularExpressionsForWildcards:()=>_S,getRelativePathFromDirectory:()=>ra,getRelativePathFromFile:()=>oa,getRelativePathToDirectoryOrUrl:()=>aa,getRenameLocation:()=>ZY,getReplacementSpanForContextToken:()=>DQ,getResolutionDiagnostic:()=>WV,getResolutionModeOverride:()=>mV,getResolveJsonModule:()=>Nk,getResolvePackageJsonExports:()=>Ck,getResolvePackageJsonImports:()=>wk,getResolvedExternalModuleName:()=>Ry,getResolvedModuleFromResolution:()=>_d,getResolvedTypeReferenceDirectiveFromResolution:()=>ud,getRestIndicatorOfBindingOrAssignmentElement:()=>RA,getRestParameterElementType:()=>Ef,getRightMostAssignedExpression:()=>Qm,getRootDeclaration:()=>Yh,getRootDirectoryOfResolutionCache:()=>e$,getRootLength:()=>No,getScriptKind:()=>WY,getScriptKindFromFileName:()=>xS,getScriptTargetFeatures:()=>tp,getSelectedEffectiveModifierFlags:()=>jv,getSelectedSyntacticModifierFlags:()=>Mv,getSemanticClassifications:()=>T0,getSemanticJsxChildren:()=>ly,getSetAccessorTypeAnnotationNode:()=>av,getSetAccessorValueParameter:()=>ov,getSetExternalModuleIndicator:()=>pk,getShebang:()=>ds,getSingleVariableOfVariableStatement:()=>Ag,getSnapshotText:()=>zQ,getSnippetElement:()=>Hw,getSourceFileOfModule:()=>bd,getSourceFileOfNode:()=>vd,getSourceFilePathInNewDir:()=>Qy,getSourceFileVersionAsHashFromText:()=>A$,getSourceFilesToEmit:()=>Gy,getSourceMapRange:()=>Cw,getSourceMapper:()=>v1,getSourceTextOfNodeFromSourceFile:()=>Vd,getSpanOfTokenAtPosition:()=>Gp,getSpellingSuggestion:()=>Lt,getStartPositionOfLine:()=>Sd,getStartPositionOfRange:()=>Hb,getStartsOnNewLine:()=>Fw,getStaticPropertiesAndClassStaticBlock:()=>_z,getStrictOptionValue:()=>Jk,getStringComparer:()=>wt,getSubPatternFromSpec:()=>pS,getSuperCallFromStatement:()=>oz,getSuperContainer:()=>im,getSupportedCodeFixes:()=>J8,getSupportedExtensions:()=>AS,getSupportedExtensionsWithJsonIfResolveJsonModule:()=>IS,getSwitchedType:()=>uZ,getSymbolId:()=>eJ,getSymbolNameForPrivateIdentifier:()=>Vh,getSymbolTarget:()=>$Y,getSyntacticClassifications:()=>E0,getSyntacticModifierFlags:()=>zv,getSyntacticModifierFlagsNoCache:()=>Wv,getSynthesizedDeepClone:()=>RC,getSynthesizedDeepCloneWithReplacements:()=>BC,getSynthesizedDeepClones:()=>zC,getSynthesizedDeepClonesWithReplacements:()=>qC,getSyntheticLeadingComments:()=>Iw,getSyntheticTrailingComments:()=>jw,getTargetLabel:()=>iX,getTargetOfBindingOrAssignmentElement:()=>MA,getTemporaryModuleResolutionState:()=>cR,getTextOfConstantValue:()=>ip,getTextOfIdentifierOrLiteral:()=>qh,getTextOfJSDocComment:()=>ll,getTextOfJsxAttributeName:()=>nC,getTextOfJsxNamespacedName:()=>oC,getTextOfNode:()=>Xd,getTextOfNodeFromSourceText:()=>Gd,getTextOfPropertyName:()=>jp,getThisContainer:()=>em,getThisParameter:()=>sv,getTokenAtPosition:()=>HX,getTokenPosOfNode:()=>zd,getTokenSourceMapRange:()=>Nw,getTouchingPropertyName:()=>WX,getTouchingToken:()=>$X,getTrailingCommentRanges:()=>us,getTrailingSemicolonDeferringWriter:()=>Ly,getTransformers:()=>jq,getTsBuildInfoEmitOutputFilePath:()=>Gq,getTsConfigObjectLiteralExpression:()=>Wf,getTsConfigPropArrayElementValue:()=>$f,getTypeAnnotationNode:()=>mv,getTypeArgumentOrTypeParameterList:()=>gQ,getTypeKeywordOfTypeOnlyImport:()=>dY,getTypeNode:()=>Qw,getTypeNodeIfAccessible:()=>pZ,getTypeParameterFromJsDoc:()=>$g,getTypeParameterOwner:()=>Ys,getTypesPackageName:()=>ER,getUILocale:()=>Et,getUniqueName:()=>YY,getUniqueSymbolId:()=>KY,getUseDefineForClassFields:()=>Ik,getWatchErrorSummaryDiagnosticMessage:()=>f$,getWatchFactory:()=>jU,group:()=>Je,groupBy:()=>ze,guessIndentation:()=>Lu,handleNoEmitOptions:()=>zV,handleWatchOptionsConfigDirTemplateSubstitution:()=>aj,hasAbstractModifier:()=>Pv,hasAccessorModifier:()=>Iv,hasAmbientModifier:()=>Av,hasChangesInResolutions:()=>hd,hasContextSensitiveParameters:()=>LT,hasDecorators:()=>Lv,hasDocComment:()=>pQ,hasDynamicName:()=>Rh,hasEffectiveModifier:()=>wv,hasEffectiveModifiers:()=>Tv,hasEffectiveReadonlyModifier:()=>Ov,hasExtension:()=>xo,hasImplementationTSFileExtension:()=>jS,hasIndexSignature:()=>_Z,hasInferredType:()=>kC,hasInitializer:()=>Eu,hasInvalidEscape:()=>fy,hasJSDocNodes:()=>Du,hasJSDocParameterTags:()=>Lc,hasJSFileExtension:()=>OS,hasJsonModuleEmitEnabled:()=>Lk,hasOnlyExpressionInitializer:()=>Pu,hasOverrideModifier:()=>Ev,hasPossibleExternalModuleReference:()=>Np,hasProperty:()=>De,hasPropertyAccessExpressionWithName:()=>oX,hasQuestionToken:()=>wg,hasRecordedExternalHelpers:()=>PA,hasResolutionModeOverride:()=>_C,hasRestParameter:()=>Ru,hasScopeMarker:()=>K_,hasStaticModifier:()=>Fv,hasSyntacticModifier:()=>Nv,hasSyntacticModifiers:()=>Cv,hasTSFileExtension:()=>LS,hasTabstop:()=>KT,hasTrailingDirectorySeparator:()=>To,hasType:()=>Fu,hasTypeArguments:()=>Hg,hasZeroOrOneAsteriskCharacter:()=>Xk,hostGetCanonicalFileName:()=>My,hostUsesCaseSensitiveFileNames:()=>jy,idText:()=>gc,identifierIsThisKeyword:()=>dv,identifierToKeywordKind:()=>hc,identity:()=>st,identitySourceMapConsumer:()=>qJ,ignoreSourceNewlines:()=>Gw,ignoredPaths:()=>Qi,importFromModuleSpecifier:()=>vg,importSyntaxAffectsModuleResolution:()=>fk,indexOfAnyCharCode:()=>C,indexOfNode:()=>Yd,indicesOf:()=>X,inferredTypesContainingFile:()=>TV,injectClassNamedEvaluationHelperBlockIfMissing:()=>qz,injectClassThisAssignmentIfMissing:()=>jz,insertImports:()=>uY,insertSorted:()=>Z,insertStatementAfterCustomPrologue:()=>Md,insertStatementAfterStandardPrologue:()=>jd,insertStatementsAfterCustomPrologue:()=>Ld,insertStatementsAfterStandardPrologue:()=>Od,intersperse:()=>y,intrinsicTagNameToString:()=>aC,introducesArgumentsExoticObject:()=>Mf,inverseJsxOptionMap:()=>CO,isAbstractConstructorSymbol:()=>fx,isAbstractModifier:()=>mD,isAccessExpression:()=>Sx,isAccessibilityModifier:()=>kQ,isAccessor:()=>d_,isAccessorModifier:()=>hD,isAliasableExpression:()=>fh,isAmbientModule:()=>cp,isAmbientPropertyDeclaration:()=>vp,isAnyDirectorySeparator:()=>fo,isAnyImportOrBareOrAccessedRequire:()=>Tp,isAnyImportOrReExport:()=>Dp,isAnyImportOrRequireStatement:()=>Cp,isAnyImportSyntax:()=>Sp,isAnySupportedFileExtension:()=>eT,isApplicableVersionedTypesKey:()=>xR,isArgumentExpressionOfElementAccess:()=>dX,isArray:()=>Qe,isArrayBindingElement:()=>T_,isArrayBindingOrAssignmentElement:()=>P_,isArrayBindingOrAssignmentPattern:()=>E_,isArrayBindingPattern:()=>cF,isArrayLiteralExpression:()=>_F,isArrayLiteralOrObjectLiteralDestructuringPattern:()=>TQ,isArrayTypeNode:()=>UD,isArrowFunction:()=>bF,isAsExpression:()=>LF,isAssertClause:()=>TE,isAssertEntry:()=>CE,isAssertionExpression:()=>W_,isAssertsKeyword:()=>uD,isAssignmentDeclaration:()=>Um,isAssignmentExpression:()=>rb,isAssignmentOperator:()=>eb,isAssignmentPattern:()=>S_,isAssignmentTarget:()=>Qg,isAsteriskToken:()=>eD,isAsyncFunction:()=>Lh,isAsyncModifier:()=>_D,isAutoAccessorPropertyDeclaration:()=>p_,isAwaitExpression:()=>TF,isAwaitKeyword:()=>dD,isBigIntLiteral:()=>qN,isBinaryExpression:()=>NF,isBinaryLogicalOperator:()=>Kv,isBinaryOperatorToken:()=>tI,isBindableObjectDefinePropertyCall:()=>ng,isBindableStaticAccessExpression:()=>og,isBindableStaticElementAccessExpression:()=>ag,isBindableStaticNameExpression:()=>sg,isBindingElement:()=>lF,isBindingElementOfBareOrAccessedRequire:()=>Rm,isBindingName:()=>n_,isBindingOrAssignmentElement:()=>w_,isBindingOrAssignmentPattern:()=>N_,isBindingPattern:()=>k_,isBlock:()=>VF,isBlockLike:()=>t0,isBlockOrCatchScoped:()=>ap,isBlockScope:()=>bp,isBlockScopedContainerTopLevel:()=>dp,isBooleanLiteral:()=>a_,isBreakOrContinueStatement:()=>Cl,isBreakStatement:()=>tE,isBuildCommand:()=>yK,isBuildInfoFile:()=>Hq,isBuilderProgram:()=>h$,isBundle:()=>cP,isCallChain:()=>gl,isCallExpression:()=>fF,isCallExpressionTarget:()=>HG,isCallLikeExpression:()=>L_,isCallLikeOrFunctionLikeExpression:()=>O_,isCallOrNewExpression:()=>j_,isCallOrNewExpressionTarget:()=>GG,isCallSignatureDeclaration:()=>OD,isCallToHelper:()=>JN,isCaseBlock:()=>yE,isCaseClause:()=>ZE,isCaseKeyword:()=>bD,isCaseOrDefaultClause:()=>ku,isCatchClause:()=>nP,isCatchClauseVariableDeclaration:()=>MT,isCatchClauseVariableDeclarationOrBindingElement:()=>sp,isCheckJsEnabledForFile:()=>nT,isCircularBuildOrder:()=>X$,isClassDeclaration:()=>dE,isClassElement:()=>__,isClassExpression:()=>AF,isClassInstanceProperty:()=>f_,isClassLike:()=>u_,isClassMemberModifier:()=>Yl,isClassNamedEvaluationHelperBlock:()=>Bz,isClassOrTypeElement:()=>y_,isClassStaticBlockDeclaration:()=>ED,isClassThisAssignmentBlock:()=>Oz,isColonToken:()=>rD,isCommaExpression:()=>kA,isCommaListExpression:()=>zF,isCommaSequence:()=>SA,isCommaToken:()=>QN,isComment:()=>hQ,isCommonJsExportPropertyAssignment:()=>Lf,isCommonJsExportedExpression:()=>Of,isCompoundAssignment:()=>rz,isComputedNonLiteralName:()=>Op,isComputedPropertyName:()=>kD,isConciseBody:()=>Y_,isConditionalExpression:()=>DF,isConditionalTypeNode:()=>XD,isConstAssertion:()=>hC,isConstTypeReference:()=>kl,isConstructSignatureDeclaration:()=>LD,isConstructorDeclaration:()=>PD,isConstructorTypeNode:()=>JD,isContextualKeyword:()=>Dh,isContinueStatement:()=>eE,isCustomPrologue:()=>ff,isDebuggerStatement:()=>cE,isDeclaration:()=>_u,isDeclarationBindingElement:()=>C_,isDeclarationFileName:()=>uO,isDeclarationName:()=>lh,isDeclarationNameOfEnumOrNamespace:()=>Yb,isDeclarationReadonly:()=>nf,isDeclarationStatement:()=>uu,isDeclarationWithTypeParameterChildren:()=>kp,isDeclarationWithTypeParameters:()=>xp,isDecorator:()=>CD,isDecoratorTarget:()=>QG,isDefaultClause:()=>eP,isDefaultImport:()=>Tg,isDefaultModifier:()=>lD,isDefaultedExpandoInitializer:()=>Km,isDeleteExpression:()=>xF,isDeleteTarget:()=>sh,isDeprecatedDeclaration:()=>$Z,isDestructuringAssignment:()=>ib,isDiskPathRoot:()=>ho,isDoStatement:()=>GF,isDocumentRegistryEntry:()=>A0,isDotDotDotToken:()=>XN,isDottedName:()=>cb,isDynamicName:()=>Bh,isEffectiveExternalModule:()=>hp,isEffectiveStrictModeSourceFile:()=>yp,isElementAccessChain:()=>ml,isElementAccessExpression:()=>pF,isEmittedFileOfProgram:()=>OU,isEmptyArrayLiteral:()=>yb,isEmptyBindingElement:()=>tc,isEmptyBindingPattern:()=>ec,isEmptyObjectLiteral:()=>hb,isEmptyStatement:()=>$F,isEmptyStringLiteral:()=>ym,isEntityName:()=>e_,isEntityNameExpression:()=>ab,isEnumConst:()=>tf,isEnumDeclaration:()=>mE,isEnumMember:()=>aP,isEqualityOperatorKind:()=>cZ,isEqualsGreaterThanToken:()=>oD,isExclamationToken:()=>tD,isExcludedFile:()=>Mj,isExclusivelyTypeOnlyImportOrExport:()=>uV,isExpandoPropertyDeclaration:()=>lC,isExportAssignment:()=>AE,isExportDeclaration:()=>IE,isExportModifier:()=>cD,isExportName:()=>yA,isExportNamespaceAsDefaultDeclaration:()=>Wd,isExportOrDefaultModifier:()=>lI,isExportSpecifier:()=>LE,isExportsIdentifier:()=>Ym,isExportsOrModuleExportsOrAlias:()=>YR,isExpression:()=>V_,isExpressionNode:()=>bm,isExpressionOfExternalModuleImportEqualsDeclaration:()=>gX,isExpressionOfOptionalChainRoot:()=>vl,isExpressionStatement:()=>HF,isExpressionWithTypeArguments:()=>OF,isExpressionWithTypeArgumentsInClassExtendsClause:()=>ob,isExternalModule:()=>rO,isExternalModuleAugmentation:()=>fp,isExternalModuleImportEqualsDeclaration:()=>Tm,isExternalModuleIndicator:()=>X_,isExternalModuleNameRelative:()=>Cs,isExternalModuleReference:()=>JE,isExternalModuleSymbol:()=>Qu,isExternalOrCommonJsModule:()=>Zp,isFileLevelReservedGeneratedIdentifier:()=>Hl,isFileLevelUniqueName:()=>wd,isFileProbablyExternalModule:()=>FI,isFirstDeclarationOfSymbolParameter:()=>xY,isFixablePromiseHandler:()=>D1,isForInOrOfStatement:()=>Q_,isForInStatement:()=>YF,isForInitializer:()=>eu,isForOfStatement:()=>ZF,isForStatement:()=>QF,isFullSourceFile:()=>Dm,isFunctionBlock:()=>Bf,isFunctionBody:()=>Z_,isFunctionDeclaration:()=>uE,isFunctionExpression:()=>vF,isFunctionExpressionOrArrowFunction:()=>RT,isFunctionLike:()=>r_,isFunctionLikeDeclaration:()=>o_,isFunctionLikeKind:()=>c_,isFunctionLikeOrClassStaticBlockDeclaration:()=>i_,isFunctionOrConstructorTypeNode:()=>x_,isFunctionOrModuleBlock:()=>l_,isFunctionSymbol:()=>gg,isFunctionTypeNode:()=>BD,isGeneratedIdentifier:()=>Wl,isGeneratedPrivateIdentifier:()=>$l,isGetAccessor:()=>Nu,isGetAccessorDeclaration:()=>AD,isGetOrSetAccessorDeclaration:()=>pl,isGlobalScopeAugmentation:()=>pp,isGlobalSourceFile:()=>Yp,isGrammarError:()=>Fd,isHeritageClause:()=>tP,isHoistedFunction:()=>mf,isHoistedVariableStatement:()=>hf,isIdentifier:()=>aD,isIdentifierANonContextualKeyword:()=>Ph,isIdentifierName:()=>dh,isIdentifierOrThisTypeNode:()=>GA,isIdentifierPart:()=>fs,isIdentifierStart:()=>ps,isIdentifierText:()=>ms,isIdentifierTypePredicate:()=>qf,isIdentifierTypeReference:()=>xT,isIfStatement:()=>KF,isIgnoredFileFromWildCardWatching:()=>IU,isImplicitGlob:()=>uS,isImportAttribute:()=>NE,isImportAttributeName:()=>Vl,isImportAttributes:()=>wE,isImportCall:()=>_f,isImportClause:()=>kE,isImportDeclaration:()=>xE,isImportEqualsDeclaration:()=>bE,isImportKeyword:()=>vD,isImportMeta:()=>uf,isImportOrExportSpecifier:()=>Rl,isImportOrExportSpecifierName:()=>VY,isImportSpecifier:()=>PE,isImportTypeAssertionContainer:()=>SE,isImportTypeNode:()=>iF,isImportable:()=>a0,isInComment:()=>dQ,isInCompoundLikeAssignment:()=>Yg,isInExpressionContext:()=>xm,isInJSDoc:()=>Im,isInJSFile:()=>Em,isInJSXText:()=>aQ,isInJsonFile:()=>Pm,isInNonReferenceComment:()=>wQ,isInReferenceComment:()=>CQ,isInRightSideOfInternalImportEqualsDeclaration:()=>$G,isInString:()=>nQ,isInTemplateString:()=>oQ,isInTopLevelContext:()=>nm,isInTypeQuery:()=>_v,isIncrementalBuildInfo:()=>kW,isIncrementalBundleEmitBuildInfo:()=>xW,isIncrementalCompilation:()=>Ek,isIndexSignatureDeclaration:()=>jD,isIndexedAccessTypeNode:()=>tF,isInferTypeNode:()=>QD,isInfinityOrNaNString:()=>jT,isInitializedProperty:()=>uz,isInitializedVariable:()=>ex,isInsideJsxElement:()=>sQ,isInsideJsxElementOrAttribute:()=>rQ,isInsideNodeModules:()=>AZ,isInsideTemplateLiteral:()=>xQ,isInstanceOfExpression:()=>mb,isInstantiatedModule:()=>tJ,isInterfaceDeclaration:()=>pE,isInternalDeclaration:()=>zu,isInternalModuleImportEqualsDeclaration:()=>Nm,isInternalName:()=>gA,isIntersectionTypeNode:()=>GD,isIntrinsicJsxName:()=>Ey,isIterationStatement:()=>$_,isJSDoc:()=>SP,isJSDocAllType:()=>mP,isJSDocAugmentsTag:()=>wP,isJSDocAuthorTag:()=>NP,isJSDocCallbackTag:()=>FP,isJSDocClassTag:()=>DP,isJSDocCommentContainingNode:()=>Tu,isJSDocConstructSignature:()=>Ng,isJSDocDeprecatedTag:()=>jP,isJSDocEnumTag:()=>RP,isJSDocFunctionType:()=>bP,isJSDocImplementsTag:()=>HP,isJSDocImportTag:()=>XP,isJSDocIndexSignature:()=>Om,isJSDocLikeText:()=>DI,isJSDocLink:()=>dP,isJSDocLinkCode:()=>pP,isJSDocLinkLike:()=>Mu,isJSDocLinkPlain:()=>fP,isJSDocMemberName:()=>uP,isJSDocNameReference:()=>_P,isJSDocNamepathType:()=>kP,isJSDocNamespaceBody:()=>ru,isJSDocNode:()=>Su,isJSDocNonNullableType:()=>yP,isJSDocNullableType:()=>hP,isJSDocOptionalParameter:()=>GT,isJSDocOptionalType:()=>vP,isJSDocOverloadTag:()=>LP,isJSDocOverrideTag:()=>OP,isJSDocParameterTag:()=>BP,isJSDocPrivateTag:()=>PP,isJSDocPropertyLikeTag:()=>Nl,isJSDocPropertyTag:()=>$P,isJSDocProtectedTag:()=>AP,isJSDocPublicTag:()=>EP,isJSDocReadonlyTag:()=>IP,isJSDocReturnTag:()=>JP,isJSDocSatisfiesExpression:()=>YT,isJSDocSatisfiesTag:()=>KP,isJSDocSeeTag:()=>MP,isJSDocSignature:()=>CP,isJSDocTag:()=>Cu,isJSDocTemplateTag:()=>UP,isJSDocThisTag:()=>zP,isJSDocThrowsTag:()=>GP,isJSDocTypeAlias:()=>Dg,isJSDocTypeAssertion:()=>TA,isJSDocTypeExpression:()=>lP,isJSDocTypeLiteral:()=>TP,isJSDocTypeTag:()=>qP,isJSDocTypedefTag:()=>VP,isJSDocUnknownTag:()=>WP,isJSDocUnknownType:()=>gP,isJSDocVariadicType:()=>xP,isJSXTagName:()=>vm,isJsonEqual:()=>fT,isJsonSourceFile:()=>ef,isJsxAttribute:()=>KE,isJsxAttributeLike:()=>yu,isJsxAttributeName:()=>rC,isJsxAttributes:()=>GE,isJsxCallLike:()=>xu,isJsxChild:()=>hu,isJsxClosingElement:()=>VE,isJsxClosingFragment:()=>HE,isJsxElement:()=>zE,isJsxExpression:()=>QE,isJsxFragment:()=>WE,isJsxNamespacedName:()=>YE,isJsxOpeningElement:()=>UE,isJsxOpeningFragment:()=>$E,isJsxOpeningLikeElement:()=>bu,isJsxOpeningLikeElementTagName:()=>YG,isJsxSelfClosingElement:()=>qE,isJsxSpreadAttribute:()=>XE,isJsxTagNameExpression:()=>gu,isJsxText:()=>VN,isJumpStatementTarget:()=>aX,isKeyword:()=>Ch,isKeywordOrPunctuation:()=>Nh,isKnownSymbol:()=>Wh,isLabelName:()=>cX,isLabelOfLabeledStatement:()=>sX,isLabeledStatement:()=>oE,isLateVisibilityPaintedStatement:()=>wp,isLeftHandSideExpression:()=>R_,isLet:()=>cf,isLineBreak:()=>Va,isLiteralComputedPropertyDeclarationName:()=>uh,isLiteralExpression:()=>Il,isLiteralExpressionOfObject:()=>Ol,isLiteralImportTypeNode:()=>df,isLiteralKind:()=>Al,isLiteralNameOfPropertyDeclarationOrIndexAccess:()=>mX,isLiteralTypeLiteral:()=>U_,isLiteralTypeNode:()=>rF,isLocalName:()=>hA,isLogicalOperator:()=>Gv,isLogicalOrCoalescingAssignmentExpression:()=>Qv,isLogicalOrCoalescingAssignmentOperator:()=>Xv,isLogicalOrCoalescingBinaryExpression:()=>Zv,isLogicalOrCoalescingBinaryOperator:()=>Yv,isMappedTypeNode:()=>nF,isMemberName:()=>dl,isMetaProperty:()=>RF,isMethodDeclaration:()=>FD,isMethodOrAccessor:()=>m_,isMethodSignature:()=>DD,isMinusToken:()=>ZN,isMissingDeclaration:()=>ME,isMissingPackageJsonInfo:()=>kM,isModifier:()=>Zl,isModifierKind:()=>Xl,isModifierLike:()=>g_,isModuleAugmentationExternal:()=>mp,isModuleBlock:()=>hE,isModuleBody:()=>tu,isModuleDeclaration:()=>gE,isModuleExportName:()=>jE,isModuleExportsAccessExpression:()=>eg,isModuleIdentifier:()=>Zm,isModuleName:()=>YA,isModuleOrEnumDeclaration:()=>ou,isModuleReference:()=>mu,isModuleSpecifierLike:()=>oY,isModuleWithStringLiteralName:()=>lp,isNameOfFunctionDeclaration:()=>fX,isNameOfModuleDeclaration:()=>pX,isNamedDeclaration:()=>Sc,isNamedEvaluation:()=>Gh,isNamedEvaluationSource:()=>Kh,isNamedExportBindings:()=>wl,isNamedExports:()=>OE,isNamedImportBindings:()=>iu,isNamedImports:()=>EE,isNamedImportsOrExports:()=>Cx,isNamedTupleMember:()=>WD,isNamespaceBody:()=>nu,isNamespaceExport:()=>FE,isNamespaceExportDeclaration:()=>vE,isNamespaceImport:()=>DE,isNamespaceReexportDeclaration:()=>Sm,isNewExpression:()=>mF,isNewExpressionTarget:()=>KG,isNewScopeNode:()=>EC,isNoSubstitutionTemplateLiteral:()=>$N,isNodeArray:()=>Pl,isNodeArrayMultiLine:()=>Wb,isNodeDescendantOf:()=>ch,isNodeKind:()=>Dl,isNodeLikeSystem:()=>_n,isNodeModulesDirectory:()=>ca,isNodeWithPossibleHoistedDeclaration:()=>Zg,isNonContextualKeyword:()=>Fh,isNonGlobalAmbientModule:()=>_p,isNonNullAccess:()=>QT,isNonNullChain:()=>Tl,isNonNullExpression:()=>MF,isNonStaticMethodOrAccessorWithPrivateName:()=>dz,isNotEmittedStatement:()=>RE,isNullishCoalesce:()=>xl,isNumber:()=>et,isNumericLiteral:()=>zN,isNumericLiteralName:()=>JT,isObjectBindingElementWithoutPropertyName:()=>aY,isObjectBindingOrAssignmentElement:()=>F_,isObjectBindingOrAssignmentPattern:()=>D_,isObjectBindingPattern:()=>sF,isObjectLiteralElement:()=>Au,isObjectLiteralElementLike:()=>v_,isObjectLiteralExpression:()=>uF,isObjectLiteralMethod:()=>Jf,isObjectLiteralOrClassExpressionMethodOrAccessor:()=>zf,isObjectTypeDeclaration:()=>xx,isOmittedExpression:()=>IF,isOptionalChain:()=>hl,isOptionalChainRoot:()=>yl,isOptionalDeclaration:()=>XT,isOptionalJSDocPropertyLikeTag:()=>$T,isOptionalTypeNode:()=>$D,isOuterExpression:()=>wA,isOutermostOptionalChain:()=>bl,isOverrideModifier:()=>gD,isPackageJsonInfo:()=>xM,isPackedArrayLiteral:()=>PT,isParameter:()=>TD,isParameterPropertyDeclaration:()=>Zs,isParameterPropertyModifier:()=>Ql,isParenthesizedExpression:()=>yF,isParenthesizedTypeNode:()=>YD,isParseTreeNode:()=>dc,isPartOfParameterDeclaration:()=>Qh,isPartOfTypeNode:()=>wf,isPartOfTypeOnlyImportOrExportDeclaration:()=>ql,isPartOfTypeQuery:()=>km,isPartiallyEmittedExpression:()=>JF,isPatternMatch:()=>Yt,isPinnedComment:()=>Bd,isPlainJsFile:()=>xd,isPlusToken:()=>YN,isPossiblyTypeArgumentPosition:()=>lQ,isPostfixUnaryExpression:()=>wF,isPrefixUnaryExpression:()=>CF,isPrimitiveLiteralValue:()=>bC,isPrivateIdentifier:()=>sD,isPrivateIdentifierClassElementDeclaration:()=>Kl,isPrivateIdentifierPropertyAccessExpression:()=>Gl,isPrivateIdentifierSymbol:()=>$h,isProgramUptoDate:()=>EV,isPrologueDirective:()=>pf,isPropertyAccessChain:()=>fl,isPropertyAccessEntityNameExpression:()=>lb,isPropertyAccessExpression:()=>dF,isPropertyAccessOrQualifiedName:()=>I_,isPropertyAccessOrQualifiedNameOrImportTypeNode:()=>A_,isPropertyAssignment:()=>rP,isPropertyDeclaration:()=>ND,isPropertyName:()=>t_,isPropertyNameLiteral:()=>zh,isPropertySignature:()=>wD,isPrototypeAccess:()=>ub,isPrototypePropertyAssignment:()=>pg,isPunctuation:()=>wh,isPushOrUnshiftIdentifier:()=>Xh,isQualifiedName:()=>xD,isQuestionDotToken:()=>iD,isQuestionOrExclamationToken:()=>KA,isQuestionOrPlusOrMinusToken:()=>QA,isQuestionToken:()=>nD,isReadonlyKeyword:()=>pD,isReadonlyKeywordOrPlusOrMinusToken:()=>XA,isRecognizedTripleSlashComment:()=>Rd,isReferenceFileLocation:()=>DV,isReferencedFile:()=>NV,isRegularExpressionLiteral:()=>WN,isRequireCall:()=>Lm,isRequireVariableStatement:()=>Jm,isRestParameter:()=>Bu,isRestTypeNode:()=>HD,isReturnStatement:()=>nE,isReturnStatementWithFixablePromiseHandler:()=>N1,isRightSideOfAccessExpression:()=>pb,isRightSideOfInstanceofExpression:()=>gb,isRightSideOfPropertyAccess:()=>uX,isRightSideOfQualifiedName:()=>_X,isRightSideOfQualifiedNameOrPropertyAccess:()=>db,isRightSideOfQualifiedNameOrPropertyAccessOrJSDocMemberName:()=>fb,isRootedDiskPath:()=>go,isSameEntityName:()=>Xm,isSatisfiesExpression:()=>jF,isSemicolonClassElement:()=>UF,isSetAccessor:()=>wu,isSetAccessorDeclaration:()=>ID,isShiftOperatorOrHigher:()=>ZA,isShorthandAmbientModuleSymbol:()=>up,isShorthandPropertyAssignment:()=>iP,isSideEffectImport:()=>SC,isSignedNumericLiteral:()=>Mh,isSimpleCopiableExpression:()=>tz,isSimpleInlineableExpression:()=>nz,isSimpleParameterList:()=>kz,isSingleOrDoubleQuote:()=>zm,isSolutionConfig:()=>mj,isSourceElement:()=>fC,isSourceFile:()=>sP,isSourceFileFromLibrary:()=>YZ,isSourceFileJS:()=>Fm,isSourceFileNotJson:()=>Am,isSourceMapping:()=>AJ,isSpecialPropertyDeclaration:()=>fg,isSpreadAssignment:()=>oP,isSpreadElement:()=>PF,isStatement:()=>pu,isStatementButNotDeclaration:()=>du,isStatementOrBlock:()=>fu,isStatementWithLocals:()=>kd,isStatic:()=>Dv,isStaticModifier:()=>fD,isString:()=>Ze,isStringANonContextualKeyword:()=>Eh,isStringAndEmptyAnonymousObjectIntersection:()=>bQ,isStringDoubleQuoted:()=>qm,isStringLiteral:()=>UN,isStringLiteralLike:()=>ju,isStringLiteralOrJsxExpression:()=>vu,isStringLiteralOrTemplate:()=>lZ,isStringOrNumericLiteralLike:()=>jh,isStringOrRegularExpressionOrTemplateLiteral:()=>yQ,isStringTextContainingNode:()=>Ul,isSuperCall:()=>lf,isSuperKeyword:()=>yD,isSuperProperty:()=>am,isSupportedSourceFileName:()=>BS,isSwitchStatement:()=>iE,isSyntaxList:()=>QP,isSyntheticExpression:()=>BF,isSyntheticReference:()=>BE,isTagName:()=>lX,isTaggedTemplateExpression:()=>gF,isTaggedTemplateTag:()=>XG,isTemplateExpression:()=>FF,isTemplateHead:()=>HN,isTemplateLiteral:()=>M_,isTemplateLiteralKind:()=>Ll,isTemplateLiteralToken:()=>jl,isTemplateLiteralTypeNode:()=>aF,isTemplateLiteralTypeSpan:()=>oF,isTemplateMiddle:()=>KN,isTemplateMiddleOrTemplateTail:()=>Ml,isTemplateSpan:()=>qF,isTemplateTail:()=>GN,isTextWhiteSpaceLike:()=>hY,isThis:()=>vX,isThisContainerOrFunctionBlock:()=>tm,isThisIdentifier:()=>lv,isThisInTypeQuery:()=>uv,isThisInitializedDeclaration:()=>cm,isThisInitializedObjectBindingExpression:()=>lm,isThisProperty:()=>sm,isThisTypeNode:()=>ZD,isThisTypeParameter:()=>qT,isThisTypePredicate:()=>Uf,isThrowStatement:()=>aE,isToken:()=>El,isTokenKind:()=>Fl,isTraceEnabled:()=>Qj,isTransientSymbol:()=>Xu,isTrivia:()=>Ah,isTryStatement:()=>sE,isTupleTypeNode:()=>VD,isTypeAlias:()=>Fg,isTypeAliasDeclaration:()=>fE,isTypeAssertionExpression:()=>hF,isTypeDeclaration:()=>VT,isTypeElement:()=>h_,isTypeKeyword:()=>MQ,isTypeKeywordTokenOrIdentifier:()=>BQ,isTypeLiteralNode:()=>qD,isTypeNode:()=>b_,isTypeNodeKind:()=>kx,isTypeOfExpression:()=>kF,isTypeOnlyExportDeclaration:()=>Jl,isTypeOnlyImportDeclaration:()=>Bl,isTypeOnlyImportOrExportDeclaration:()=>zl,isTypeOperatorNode:()=>eF,isTypeParameterDeclaration:()=>SD,isTypePredicateNode:()=>MD,isTypeQueryNode:()=>zD,isTypeReferenceNode:()=>RD,isTypeReferenceType:()=>Iu,isTypeUsableAsPropertyName:()=>sC,isUMDExportSymbol:()=>hx,isUnaryExpression:()=>J_,isUnaryExpressionWithWrite:()=>q_,isUnicodeIdentifierStart:()=>wa,isUnionTypeNode:()=>KD,isUrl:()=>mo,isValidBigIntString:()=>vT,isValidESSymbolDeclaration:()=>jf,isValidTypeOnlyAliasUseSite:()=>bT,isValueSignatureDeclaration:()=>eh,isVarAwaitUsing:()=>rf,isVarConst:()=>af,isVarConstLike:()=>sf,isVarUsing:()=>of,isVariableDeclaration:()=>lE,isVariableDeclarationInVariableStatement:()=>If,isVariableDeclarationInitializedToBareOrAccessedRequire:()=>Mm,isVariableDeclarationInitializedToRequire:()=>jm,isVariableDeclarationList:()=>_E,isVariableLike:()=>Af,isVariableStatement:()=>WF,isVoidExpression:()=>SF,isWatchSet:()=>tx,isWhileStatement:()=>XF,isWhiteSpaceLike:()=>qa,isWhiteSpaceSingleLine:()=>Ua,isWithStatement:()=>rE,isWriteAccess:()=>cx,isWriteOnlyAccess:()=>sx,isYieldExpression:()=>EF,jsxModeNeedsExplicitImport:()=>QZ,keywordPart:()=>CY,last:()=>ve,lastOrUndefined:()=>ye,length:()=>u,libMap:()=>DO,libs:()=>NO,lineBreakPart:()=>BY,loadModuleFromGlobalCache:()=>RR,loadWithModeAwareCache:()=>SV,makeIdentifierFromModuleName:()=>op,makeImport:()=>QQ,makeStringLiteral:()=>YQ,mangleScopedPackageName:()=>PR,map:()=>E,mapAllOrFail:()=>R,mapDefined:()=>B,mapDefinedIterator:()=>J,mapEntries:()=>W,mapIterator:()=>P,mapOneOrMany:()=>RZ,mapToDisplayParts:()=>JY,matchFiles:()=>hS,matchPatternOrExact:()=>iT,matchedText:()=>Ht,matchesExclude:()=>Bj,matchesExcludeWorker:()=>Jj,maxBy:()=>xt,maybeBind:()=>We,maybeSetLocalizedDiagnosticMessages:()=>Ux,memoize:()=>dt,memoizeOne:()=>pt,min:()=>kt,minAndMax:()=>sT,missingFileModifiedTime:()=>zi,modifierToFlag:()=>Hv,modifiersToFlags:()=>$v,moduleExportNameIsDefault:()=>Kd,moduleExportNameTextEscaped:()=>Hd,moduleExportNameTextUnescaped:()=>$d,moduleOptionDeclaration:()=>AO,moduleResolutionIsEqualTo:()=>ld,moduleResolutionNameAndModeGetter:()=>yV,moduleResolutionOptionDeclarations:()=>RO,moduleResolutionSupportsPackageJsonExportsAndImports:()=>Rk,moduleResolutionUsesNodeModules:()=>XQ,moduleSpecifierToValidIdentifier:()=>UZ,moduleSpecifiers:()=>nB,moduleSupportsImportAttributes:()=>Bk,moduleSymbolToValidIdentifier:()=>qZ,moveEmitHelpers:()=>$w,moveRangeEnd:()=>Ib,moveRangePastDecorators:()=>Lb,moveRangePastModifiers:()=>jb,moveRangePos:()=>Ob,moveSyntheticComments:()=>Bw,mutateMap:()=>px,mutateMapSkippingNewValues:()=>dx,needsParentheses:()=>oZ,needsScopeMarker:()=>G_,newCaseClauseTracker:()=>ZZ,newPrivateEnvironment:()=>hz,noEmitNotification:()=>Uq,noEmitSubstitution:()=>qq,noTransformers:()=>Lq,noTruncationMaximumTruncationLength:()=>Wu,nodeCanBeDecorated:()=>dm,nodeCoreModules:()=>NC,nodeHasName:()=>xc,nodeIsDecorated:()=>pm,nodeIsMissing:()=>Nd,nodeIsPresent:()=>Dd,nodeIsSynthesized:()=>ey,nodeModuleNameResolver:()=>qM,nodeModulesPathPart:()=>KM,nodeNextJsonConfigResolver:()=>UM,nodeOrChildIsDecorated:()=>fm,nodeOverlapsWithStartEnd:()=>NX,nodePosToString:()=>Td,nodeSeenTracker:()=>JQ,nodeStartsNewLexicalEnvironment:()=>Zh,noop:()=>rt,noopFileWatcher:()=>w$,normalizePath:()=>Jo,normalizeSlashes:()=>Oo,normalizeSpans:()=>Vs,not:()=>tn,notImplemented:()=>ut,notImplementedResolver:()=>hU,nullNodeConverters:()=>ZC,nullParenthesizerRules:()=>XC,nullTransformationContext:()=>Wq,objectAllocator:()=>Mx,operatorPart:()=>NY,optionDeclarations:()=>OO,optionMapToObject:()=>VL,optionsAffectingProgramStructure:()=>JO,optionsForBuild:()=>$O,optionsForWatch:()=>FO,optionsHaveChanges:()=>td,or:()=>en,orderedRemoveItem:()=>zt,orderedRemoveItemAt:()=>qt,packageIdToPackageName:()=>fd,packageIdToString:()=>md,parameterIsThisKeyword:()=>cv,parameterNamePart:()=>DY,parseBaseNodeFactory:()=>TI,parseBigInt:()=>hT,parseBuildCommand:()=>fL,parseCommandLine:()=>lL,parseCommandLineWorker:()=>oL,parseConfigFileTextToJson:()=>yL,parseConfigFileWithSystem:()=>u$,parseConfigHostFromCompilerHostLike:()=>UV,parseCustomTypeOption:()=>tL,parseIsolatedEntityName:()=>tO,parseIsolatedJSDocComment:()=>oO,parseJSDocTypeExpressionForTests:()=>aO,parseJsonConfigFileContent:()=>ZL,parseJsonSourceFileConfigFileContent:()=>ej,parseJsonText:()=>nO,parseListTypeOption:()=>nL,parseNodeFactory:()=>CI,parseNodeModuleFromPath:()=>XM,parsePackageName:()=>mR,parsePseudoBigInt:()=>mT,parseValidBigInt:()=>yT,pasteEdits:()=>dfe,patchWriteFileEnsuringDirectory:()=>ao,pathContainsNodeModules:()=>GM,pathIsAbsolute:()=>yo,pathIsBareSpecifier:()=>bo,pathIsRelative:()=>vo,patternText:()=>$t,performIncrementalCompilation:()=>B$,performance:()=>Vn,positionBelongsToNode:()=>FX,positionIsASICandidate:()=>vZ,positionIsSynthesized:()=>XS,positionsAreOnSameLine:()=>$b,preProcessFile:()=>h1,probablyUsesSemicolons:()=>bZ,processCommentPragmas:()=>pO,processPragmasIntoFields:()=>fO,processTaggedTemplateExpression:()=>$z,programContainsEsModules:()=>$Q,programContainsModules:()=>WQ,projectReferenceIsEqualTo:()=>cd,propertyNamePart:()=>FY,pseudoBigIntToString:()=>gT,punctuationPart:()=>wY,pushIfUnique:()=>ce,quote:()=>sZ,quotePreferenceFromString:()=>eY,rangeContainsPosition:()=>SX,rangeContainsPositionExclusive:()=>TX,rangeContainsRange:()=>Xb,rangeContainsRangeExclusive:()=>kX,rangeContainsStartEnd:()=>CX,rangeEndIsOnSameLineAsRangeStart:()=>qb,rangeEndPositionsAreOnSameLine:()=>Jb,rangeEquals:()=>de,rangeIsOnSingleLine:()=>Rb,rangeOfNode:()=>cT,rangeOfTypeParameters:()=>lT,rangeOverlapsWithStartEnd:()=>wX,rangeStartIsOnSameLineAsRangeEnd:()=>zb,rangeStartPositionsAreOnSameLine:()=>Bb,readBuilderProgram:()=>J$,readConfigFile:()=>hL,readJson:()=>wb,readJsonConfigFile:()=>vL,readJsonOrUndefined:()=>Cb,reduceEachLeadingCommentRange:()=>ss,reduceEachTrailingCommentRange:()=>cs,reduceLeft:()=>we,reduceLeftIterator:()=>g,reducePathComponents:()=>Lo,refactor:()=>Q2,regExpEscape:()=>tS,regularExpressionFlagToCharacterCode:()=>Aa,relativeComplement:()=>re,removeAllComments:()=>bw,removeEmitHelper:()=>Vw,removeExtension:()=>WS,removeFileExtension:()=>US,removeIgnoredPath:()=>qW,removeMinAndVersionNumbers:()=>Jt,removePrefix:()=>Xt,removeSuffix:()=>Rt,removeTrailingDirectorySeparator:()=>Vo,repeatString:()=>qQ,replaceElement:()=>Se,replaceFirstStar:()=>dC,resolutionExtensionIsTSOrJson:()=>YS,resolveConfigFileProjectName:()=>$$,resolveJSModule:()=>BM,resolveLibrary:()=>LM,resolveModuleName:()=>MM,resolveModuleNameFromCache:()=>jM,resolvePackageNameToPackageJson:()=>vM,resolvePath:()=>Mo,resolveProjectReferencePath:()=>VV,resolveTripleslashReference:()=>JU,resolveTypeReferenceDirective:()=>gM,resolvingEmptyArray:()=>qu,returnFalse:()=>it,returnNoopFileWatcher:()=>N$,returnTrue:()=>ot,returnUndefined:()=>at,returnsPromise:()=>w1,rewriteModuleSpecifier:()=>Sz,sameFlatMap:()=>M,sameMap:()=>A,sameMapping:()=>PJ,scanTokenAtPosition:()=>Xp,scanner:()=>qG,semanticDiagnosticsOptionDeclarations:()=>LO,serializeCompilerOptions:()=>KL,server:()=>She,servicesVersion:()=>v8,setCommentRange:()=>Aw,setConfigFileInOptions:()=>tj,setConstantValue:()=>zw,setEmitFlags:()=>xw,setGetSourceFileAsHashVersioned:()=>I$,setIdentifierAutoGenerate:()=>eN,setIdentifierGeneratedImportReference:()=>nN,setIdentifierTypeArguments:()=>Yw,setInternalEmitFlags:()=>Sw,setLocalizedDiagnosticMessages:()=>qx,setNodeChildren:()=>tA,setNodeFlags:()=>NT,setObjectAllocator:()=>Jx,setOriginalNode:()=>hw,setParent:()=>DT,setParentRecursive:()=>FT,setPrivateIdentifier:()=>vz,setSnippetElement:()=>Kw,setSourceMapRange:()=>ww,setStackTraceLimit:()=>Ri,setStartsOnNewLine:()=>Ew,setSyntheticLeadingComments:()=>Ow,setSyntheticTrailingComments:()=>Mw,setSys:()=>co,setSysLog:()=>eo,setTextRange:()=>xI,setTextRangeEnd:()=>TT,setTextRangePos:()=>ST,setTextRangePosEnd:()=>CT,setTextRangePosWidth:()=>wT,setTokenSourceMapRange:()=>Dw,setTypeNode:()=>Xw,setUILocale:()=>Pt,setValueDeclaration:()=>mg,shouldAllowImportingTsExtension:()=>MR,shouldPreserveConstEnums:()=>Fk,shouldRewriteModuleSpecifier:()=>xg,shouldUseUriStyleNodeCoreModules:()=>HZ,showModuleSpecifier:()=>yx,signatureHasRestParameter:()=>aJ,signatureToDisplayParts:()=>UY,single:()=>xe,singleElementArray:()=>rn,singleIterator:()=>U,singleOrMany:()=>ke,singleOrUndefined:()=>be,skipAlias:()=>ox,skipConstraint:()=>UQ,skipOuterExpressions:()=>NA,skipParentheses:()=>ah,skipPartiallyEmittedExpressions:()=>Sl,skipTrivia:()=>Qa,skipTypeChecking:()=>_T,skipTypeCheckingIgnoringNoCheck:()=>uT,skipTypeParentheses:()=>oh,skipWhile:()=>ln,sliceAfter:()=>oT,some:()=>$,sortAndDeduplicate:()=>ee,sortAndDeduplicateDiagnostics:()=>ws,sourceFileAffectingCompilerOptions:()=>BO,sourceFileMayBeEmitted:()=>Xy,sourceMapCommentRegExp:()=>TJ,sourceMapCommentRegExpDontCareLineStart:()=>SJ,spacePart:()=>TY,spanMap:()=>V,startEndContainsRange:()=>Qb,startEndOverlapsWithStartEnd:()=>DX,startOnNewLine:()=>FA,startTracing:()=>dr,startsWith:()=>Gt,startsWithDirectory:()=>ta,startsWithUnderscore:()=>WZ,startsWithUseStrict:()=>xA,stringContainsAt:()=>VZ,stringToToken:()=>Ea,stripQuotes:()=>Fy,supportedDeclarationExtensions:()=>FS,supportedJSExtensionsFlat:()=>wS,supportedLocaleDirectories:()=>cc,supportedTSExtensionsFlat:()=>SS,supportedTSImplementationExtensions:()=>ES,suppressLeadingAndTrailingTrivia:()=>UC,suppressLeadingTrivia:()=>VC,suppressTrailingTrivia:()=>WC,symbolEscapedNameNoDefault:()=>iY,symbolName:()=>yc,symbolNameNoDefault:()=>rY,symbolToDisplayParts:()=>qY,sys:()=>so,sysLog:()=>Zi,tagNamesAreEquivalent:()=>xO,takeWhile:()=>cn,targetOptionDeclaration:()=>PO,targetToLibMap:()=>Ns,testFormatSettings:()=>PG,textChangeRangeIsUnchanged:()=>Ks,textChangeRangeNewSpan:()=>Hs,textChanges:()=>jue,textOrKeywordPart:()=>EY,textPart:()=>PY,textRangeContainsPositionInclusive:()=>As,textRangeContainsTextSpan:()=>Ls,textRangeIntersectsWithTextSpan:()=>qs,textSpanContainsPosition:()=>Ps,textSpanContainsTextRange:()=>Os,textSpanContainsTextSpan:()=>Is,textSpanEnd:()=>Fs,textSpanIntersection:()=>Us,textSpanIntersectsWith:()=>Bs,textSpanIntersectsWithPosition:()=>zs,textSpanIntersectsWithTextSpan:()=>Rs,textSpanIsEmpty:()=>Es,textSpanOverlap:()=>Ms,textSpanOverlapsWith:()=>js,textSpansEqual:()=>pY,textToKeywordObj:()=>pa,timestamp:()=>Un,toArray:()=>Ye,toBuilderFileEmit:()=>IW,toBuilderStateFileInfoForMultiEmit:()=>AW,toEditorSettings:()=>j8,toFileNameLowerCase:()=>_t,toPath:()=>Uo,toProgramEmitPending:()=>OW,toSorted:()=>_e,tokenIsIdentifierOrKeyword:()=>ua,tokenIsIdentifierOrKeywordOrGreaterThan:()=>da,tokenToString:()=>Fa,trace:()=>Xj,tracing:()=>Hn,tracingEnabled:()=>Kn,transferSourceFileChildren:()=>rA,transform:()=>t7,transformClassFields:()=>Qz,transformDeclarations:()=>Aq,transformECMAScriptModule:()=>Sq,transformES2015:()=>yq,transformES2016:()=>gq,transformES2017:()=>nq,transformES2018:()=>iq,transformES2019:()=>oq,transformES2020:()=>aq,transformES2021:()=>sq,transformESDecorators:()=>tq,transformESNext:()=>cq,transformGenerators:()=>vq,transformImpliedNodeFormatDependentModule:()=>Tq,transformJsx:()=>fq,transformLegacyDecorators:()=>eq,transformModule:()=>bq,transformNamedEvaluation:()=>Vz,transformNodes:()=>Vq,transformSystemModule:()=>kq,transformTypeScript:()=>Xz,transpile:()=>q1,transpileDeclaration:()=>j1,transpileModule:()=>L1,transpileOptionValueCompilerOptions:()=>zO,tryAddToSet:()=>q,tryAndIgnoreErrors:()=>CZ,tryCast:()=>tt,tryDirectoryExists:()=>TZ,tryExtractTSExtension:()=>bb,tryFileExists:()=>SZ,tryGetClassExtendingExpressionWithTypeArguments:()=>tb,tryGetClassImplementingOrExtendingExpressionWithTypeArguments:()=>nb,tryGetDirectories:()=>xZ,tryGetExtensionFromPath:()=>tT,tryGetImportFromModuleSpecifier:()=>bg,tryGetJSDocSatisfiesTypeNode:()=>eC,tryGetModuleNameFromFile:()=>LA,tryGetModuleSpecifierFromDeclaration:()=>yg,tryGetNativePerformanceHooks:()=>Jn,tryGetPropertyAccessOrIdentifierToString:()=>_b,tryGetPropertyNameOfBindingOrAssignmentElement:()=>JA,tryGetSourceMappingURL:()=>NJ,tryGetTextOfPropertyName:()=>Lp,tryParseJson:()=>Nb,tryParsePattern:()=>HS,tryParsePatterns:()=>GS,tryParseRawSourceMap:()=>FJ,tryReadDirectory:()=>kZ,tryReadFile:()=>bL,tryRemoveDirectoryPrefix:()=>Zk,tryRemoveExtension:()=>VS,tryRemovePrefix:()=>Qt,tryRemoveSuffix:()=>Bt,tscBuildOption:()=>WO,typeAcquisitionDeclarations:()=>KO,typeAliasNamePart:()=>AY,typeDirectiveIsEqualTo:()=>gd,typeKeywords:()=>jQ,typeParameterNamePart:()=>IY,typeToDisplayParts:()=>zY,unchangedPollThresholds:()=>$i,unchangedTextChangeRange:()=>Xs,unescapeLeadingUnderscores:()=>mc,unmangleScopedPackageName:()=>IR,unorderedRemoveItem:()=>Vt,unprefixedNodeCoreModules:()=>CC,unreachableCodeIsError:()=>jk,unsetNodeChildren:()=>nA,unusedLabelIsError:()=>Mk,unwrapInnermostStatementOfLabel:()=>Rf,unwrapParenthesizedExpression:()=>xC,updateErrorForNoInputFiles:()=>hj,updateLanguageServiceSourceFile:()=>V8,updateMissingFilePathsWatch:()=>PU,updateResolutionField:()=>aM,updateSharedExtendedConfigFileWatcher:()=>DU,updateSourceFile:()=>iO,updateWatchingWildcardDirectories:()=>AU,usingSingleLineStringWriter:()=>ad,utf16EncodeAsString:()=>bs,validateLocaleAndSetLanguage:()=>lc,version:()=>s,versionMajorMinor:()=>a,visitArray:()=>uJ,visitCommaListElements:()=>yJ,visitEachChild:()=>vJ,visitFunctionBody:()=>gJ,visitIterationBody:()=>hJ,visitLexicalEnvironment:()=>pJ,visitNode:()=>lJ,visitNodes:()=>_J,visitParameterList:()=>fJ,walkUpBindingElementsAndPatterns:()=>nc,walkUpOuterExpressions:()=>DA,walkUpParenthesizedExpressions:()=>rh,walkUpParenthesizedTypes:()=>nh,walkUpParenthesizedTypesAndGetParentAndChild:()=>ih,whitespaceOrMapCommentRegExp:()=>CJ,writeCommentRange:()=>xv,writeFile:()=>Zy,writeFileEnsuringDirectories:()=>tv,zipWith:()=>h}),e.exports=o;var a="5.9",s="5.9.2",c=(e=>(e[e.LessThan=-1]="LessThan",e[e.EqualTo=0]="EqualTo",e[e.GreaterThan=1]="GreaterThan",e))(c||{}),l=[],_=new Map;function u(e){return void 0!==e?e.length:0}function d(e,t){if(void 0!==e)for(let n=0;n=0;n--){const r=t(e[n],n);if(r)return r}}function f(e,t){if(void 0!==e)for(let n=0;n=0;r--){const n=e[r];if(t(n,r))return n}}function k(e,t,n){if(void 0===e)return-1;for(let r=n??0;r=0;r--)if(t(e[r],r))return r;return-1}function T(e,t,n=mt){if(void 0!==e)for(let r=0;r{const[i,o]=t(r,e);n.set(i,o)}),n}function $(e,t){if(void 0!==e){if(void 0===t)return e.length>0;for(let n=0;nn(e[t],e[r])||vt(t,r))}(e,r,n);let i=e[r[0]];const o=[r[0]];for(let n=1;ne[t])}(e,t,n):function(e,t){const n=[];for(let r=0;r0&&r(t,e[n-1]))return!1;if(n0&&un.assertGreaterThanOrEqual(n(t[o],t[o-1]),0);t:for(const a=i;ia&&un.assertGreaterThanOrEqual(n(e[i],e[i-1]),0),n(t[o],e[i])){case-1:r.push(t[o]);continue e;case 0:continue e;case 1:continue t}}return r}function ie(e,t){return void 0===t?e:void 0===e?[t]:(e.push(t),e)}function oe(e,t){return void 0===e?t:void 0===t?e:Qe(e)?Qe(t)?K(e,t):ie(e,t):Qe(t)?ie(t,e):[e,t]}function ae(e,t){return t<0?e.length+t:t}function se(e,t,n,r){if(void 0===t||0===t.length)return e;if(void 0===e)return t.slice(n,r);n=void 0===n?0:ae(t,n),r=void 0===r?t.length:ae(t,r);for(let i=n;i=0;t--)yield e[t]}function de(e,t,n,r){for(;nnull==e?void 0:e.at(t):(e,t)=>{if(void 0!==e&&(t=ae(e,t))>1);switch(r(n(e[i],i),t)){case-1:o=i+1;break;case 0:return i;case 1:a=i-1}}return~o}function we(e,t,n,r,i){if(e&&e.length>0){const o=e.length;if(o>0){let a=void 0===r||r<0?0:r;const s=void 0===i||a+i>o-1?o-1:a+i;let c;for(arguments.length<=2?(c=e[a],a++):c=n;a<=s;)c=t(c,e[a],a),a++;return c}}return n}var Ne=Object.prototype.hasOwnProperty;function De(e,t){return Ne.call(e,t)}function Fe(e,t){return Ne.call(e,t)?e[t]:void 0}function Ee(e){const t=[];for(const n in e)Ne.call(e,n)&&t.push(n);return t}function Pe(e){const t=[];do{const n=Object.getOwnPropertyNames(e);for(const e of n)ce(t,e)}while(e=Object.getPrototypeOf(e));return t}function Ae(e){const t=[];for(const n in e)Ne.call(e,n)&&t.push(e[n]);return t}function Ie(e,t){const n=new Array(e);for(let r=0;r100&&n>t.length>>1){const e=t.length-n;t.copyWithin(0,n),t.length=e,n=0}return e},isEmpty:r}}function Xe(e,t){const n=new Map;let r=0;function*i(){for(const e of n.values())Qe(e)?yield*e:yield e}const o={has(r){const i=e(r);if(!n.has(i))return!1;const o=n.get(i);return Qe(o)?T(o,r,t):t(o,r)},add(i){const o=e(i);if(n.has(o)){const e=n.get(o);if(Qe(e))T(e,i,t)||(e.push(i),r++);else{const a=e;t(a,i)||(n.set(o,[a,i]),r++)}}else n.set(o,i),r++;return this},delete(i){const o=e(i);if(!n.has(o))return!1;const a=n.get(o);if(Qe(a)){for(let e=0;ei(),values:()=>i(),*entries(){for(const e of i())yield[e,e]},[Symbol.iterator]:()=>i(),[Symbol.toStringTag]:n[Symbol.toStringTag]};return o}function Qe(e){return Array.isArray(e)}function Ye(e){return Qe(e)?e:[e]}function Ze(e){return"string"==typeof e}function et(e){return"number"==typeof e}function tt(e,t){return void 0!==e&&t(e)?e:void 0}function nt(e,t){return void 0!==e&&t(e)?e:un.fail(`Invalid cast. The supplied value ${e} did not pass the test '${un.getFunctionName(t)}'.`)}function rt(e){}function it(){return!1}function ot(){return!0}function at(){}function st(e){return e}function ct(e){return e.toLowerCase()}var lt=/[^\u0130\u0131\u00DFa-z0-9\\/:\-_. ]+/g;function _t(e){return lt.test(e)?e.replace(lt,ct):e}function ut(){throw new Error("Not implemented")}function dt(e){let t;return()=>(e&&(t=e(),e=void 0),t)}function pt(e){const t=new Map;return n=>{const r=`${typeof n}:${n}`;let i=t.get(r);return void 0!==i||t.has(r)||(i=e(n),t.set(r,i)),i}}var ft=(e=>(e[e.None=0]="None",e[e.Normal=1]="Normal",e[e.Aggressive=2]="Aggressive",e[e.VeryAggressive=3]="VeryAggressive",e))(ft||{});function mt(e,t){return e===t}function gt(e,t){return e===t||void 0!==e&&void 0!==t&&e.toUpperCase()===t.toUpperCase()}function ht(e,t){return mt(e,t)}function yt(e,t){return e===t?0:void 0===e?-1:void 0===t?1:e-1===t(e,n)?e:n)}function St(e,t){return e===t?0:void 0===e?-1:void 0===t?1:(e=e.toUpperCase())<(t=t.toUpperCase())?-1:e>t?1:0}function Tt(e,t){return e===t?0:void 0===e?-1:void 0===t?1:(e=e.toLowerCase())<(t=t.toLowerCase())?-1:e>t?1:0}function Ct(e,t){return yt(e,t)}function wt(e){return e?St:Ct}var Nt,Dt,Ft=(()=>function(e){const t=new Intl.Collator(e,{usage:"sort",sensitivity:"variant",numeric:!0}).compare;return(e,n)=>function(e,t,n){if(e===t)return 0;if(void 0===e)return-1;if(void 0===t)return 1;const r=n(e,t);return r<0?-1:r>0?1:0}(e,n,t)})();function Et(){return Dt}function Pt(e){Dt!==e&&(Dt=e,Nt=void 0)}function At(e,t){return Nt??(Nt=Ft(Dt)),Nt(e,t)}function It(e,t,n,r){return e===t?0:void 0===e?-1:void 0===t?1:r(e[n],t[n])}function Ot(e,t){return vt(e?1:0,t?1:0)}function Lt(e,t,n){const r=Math.max(2,Math.floor(.34*e.length));let i,o=Math.floor(.4*e.length)+1;for(const a of t){const t=n(a);if(void 0!==t&&Math.abs(t.length-e.length)<=r){if(t===e)continue;if(t.length<3&&t.toLowerCase()!==e.toLowerCase())continue;const n=jt(e,t,o-.1);if(void 0===n)continue;un.assert(nn?a-n:1),l=Math.floor(t.length>n+a?n+a:t.length);i[0]=a;let _=a;for(let e=1;en)return;const u=r;r=i,i=u}const a=r[t.length];return a>n?void 0:a}function Mt(e,t,n){const r=e.length-t.length;return r>=0&&(n?gt(e.slice(r),t):e.indexOf(t,r)===r)}function Rt(e,t){return Mt(e,t)?e.slice(0,e.length-t.length):e}function Bt(e,t){return Mt(e,t)?e.slice(0,e.length-t.length):void 0}function Jt(e){let t=e.length;for(let n=t-1;n>0;n--){let r=e.charCodeAt(n);if(r>=48&&r<=57)do{--n,r=e.charCodeAt(n)}while(n>0&&r>=48&&r<=57);else{if(!(n>4)||110!==r&&78!==r)break;if(--n,r=e.charCodeAt(n),105!==r&&73!==r)break;if(--n,r=e.charCodeAt(n),109!==r&&77!==r)break;--n,r=e.charCodeAt(n)}if(45!==r&&46!==r)break;t=n}return t===e.length?e:e.slice(0,t)}function zt(e,t){for(let n=0;ne===t)}function Wt(e){return e?st:_t}function $t({prefix:e,suffix:t}){return`${e}*${t}`}function Ht(e,t){return un.assert(Yt(e,t)),t.substring(e.prefix.length,t.length-e.suffix.length)}function Kt(e,t,n){let r,i=-1;for(let o=0;oi&&Yt(s,n)&&(i=s.prefix.length,r=a)}return r}function Gt(e,t,n){return n?gt(e.slice(0,t.length),t):0===e.lastIndexOf(t,0)}function Xt(e,t){return Gt(e,t)?e.substr(t.length):e}function Qt(e,t,n=st){return Gt(n(e),n(t))?e.substring(t.length):void 0}function Yt({prefix:e,suffix:t},n){return n.length>=e.length+t.length&&Gt(n,e)&&Mt(n,t)}function Zt(e,t){return n=>e(n)&&t(n)}function en(...e){return(...t)=>{let n;for(const r of e)if(n=r(...t),n)return n;return n}}function tn(e){return(...t)=>!e(...t)}function nn(e){}function rn(e){return void 0===e?void 0:[e]}function on(e,t,n,r,i,o){o??(o=rt);let a=0,s=0;const c=e.length,l=t.length;let _=!1;for(;a(e[e.Off=0]="Off",e[e.Error=1]="Error",e[e.Warning=2]="Warning",e[e.Info=3]="Info",e[e.Verbose=4]="Verbose",e))(dn||{});(e=>{let t=0;function n(t){return e.currentLogLevel<=t}function r(t,r){e.loggingHost&&n(t)&&e.loggingHost.log(t,r)}function i(e){r(3,e)}var o;e.currentLogLevel=2,e.isDebugging=!1,e.shouldLog=n,e.log=i,(o=i=e.log||(e.log={})).error=function(e){r(1,e)},o.warn=function(e){r(2,e)},o.log=function(e){r(3,e)},o.trace=function(e){r(4,e)};const a={};function s(e){return t>=e}function c(t,n){return!!s(t)||(a[n]={level:t,assertion:e[n]},e[n]=rt,!1)}function l(e,t){const n=new Error(e?`Debug Failure. ${e}`:"Debug Failure.");throw Error.captureStackTrace&&Error.captureStackTrace(n,t||l),n}function _(e,t,n,r){e||(t=t?`False expression: ${t}`:"False expression.",n&&(t+="\r\nVerbose Debug Information: "+("string"==typeof n?n:n())),l(t,r||_))}function u(e,t,n){null==e&&l(t,n||u)}function d(e,t,n){for(const r of e)u(r,t,n||d)}function p(e,t="Illegal value:",n){return l(`${t} ${"object"==typeof e&&De(e,"kind")&&De(e,"pos")?"SyntaxKind: "+y(e.kind):JSON.stringify(e)}`,n||p)}function f(e){if("function"!=typeof e)return"";if(De(e,"name"))return e.name;{const t=Function.prototype.toString.call(e),n=/^function\s+([\w$]+)\s*\(/.exec(t);return n?n[1]:""}}function m(e=0,t,n){const r=function(e){const t=g.get(e);if(t)return t;const n=[];for(const t in e){const r=e[t];"number"==typeof r&&n.push([r,t])}const r=_e(n,(e,t)=>vt(e[0],t[0]));return g.set(e,r),r}(t);if(0===e)return r.length>0&&0===r[0][0]?r[0][1]:"0";if(n){const t=[];let n=e;for(const[i,o]of r){if(i>e)break;0!==i&&i&e&&(t.push(o),n&=~i)}if(0===n)return t.join("|")}else for(const[t,n]of r)if(t===e)return n;return e.toString()}e.getAssertionLevel=function(){return t},e.setAssertionLevel=function(n){const r=t;if(t=n,n>r)for(const t of Ee(a)){const r=a[t];void 0!==r&&e[t]!==r.assertion&&n>=r.level&&(e[t]=r,a[t]=void 0)}},e.shouldAssert=s,e.fail=l,e.failBadSyntaxKind=function e(t,n,r){return l(`${n||"Unexpected node."}\r\nNode ${y(t.kind)} was unexpected.`,r||e)},e.assert=_,e.assertEqual=function e(t,n,r,i,o){t!==n&&l(`Expected ${t} === ${n}. ${r?i?`${r} ${i}`:r:""}`,o||e)},e.assertLessThan=function e(t,n,r,i){t>=n&&l(`Expected ${t} < ${n}. ${r||""}`,i||e)},e.assertLessThanOrEqual=function e(t,n,r){t>n&&l(`Expected ${t} <= ${n}`,r||e)},e.assertGreaterThanOrEqual=function e(t,n,r){t= ${n}`,r||e)},e.assertIsDefined=u,e.checkDefined=function e(t,n,r){return u(t,n,r||e),t},e.assertEachIsDefined=d,e.checkEachDefined=function e(t,n,r){return d(t,n,r||e),t},e.assertNever=p,e.assertEachNode=function e(t,n,r,i){c(1,"assertEachNode")&&_(void 0===n||v(t,n),r||"Unexpected node.",()=>`Node array did not pass test '${f(n)}'.`,i||e)},e.assertNode=function e(t,n,r,i){c(1,"assertNode")&&_(void 0!==t&&(void 0===n||n(t)),r||"Unexpected node.",()=>`Node ${y(null==t?void 0:t.kind)} did not pass test '${f(n)}'.`,i||e)},e.assertNotNode=function e(t,n,r,i){c(1,"assertNotNode")&&_(void 0===t||void 0===n||!n(t),r||"Unexpected node.",()=>`Node ${y(t.kind)} should not have passed test '${f(n)}'.`,i||e)},e.assertOptionalNode=function e(t,n,r,i){c(1,"assertOptionalNode")&&_(void 0===n||void 0===t||n(t),r||"Unexpected node.",()=>`Node ${y(null==t?void 0:t.kind)} did not pass test '${f(n)}'.`,i||e)},e.assertOptionalToken=function e(t,n,r,i){c(1,"assertOptionalToken")&&_(void 0===n||void 0===t||t.kind===n,r||"Unexpected node.",()=>`Node ${y(null==t?void 0:t.kind)} was not a '${y(n)}' token.`,i||e)},e.assertMissingNode=function e(t,n,r){c(1,"assertMissingNode")&&_(void 0===t,n||"Unexpected node.",()=>`Node ${y(t.kind)} was unexpected'.`,r||e)},e.type=function(e){},e.getFunctionName=f,e.formatSymbol=function(e){return`{ name: ${mc(e.escapedName)}; flags: ${T(e.flags)}; declarations: ${E(e.declarations,e=>y(e.kind))} }`},e.formatEnum=m;const g=new Map;function y(e){return m(e,fr,!1)}function b(e){return m(e,mr,!0)}function x(e){return m(e,gr,!0)}function k(e){return m(e,Ti,!0)}function S(e){return m(e,wi,!0)}function T(e){return m(e,qr,!0)}function C(e){return m(e,$r,!0)}function w(e){return m(e,ei,!0)}function N(e){return m(e,Hr,!0)}function D(e){return m(e,Sr,!0)}e.formatSyntaxKind=y,e.formatSnippetKind=function(e){return m(e,Ci,!1)},e.formatScriptKind=function(e){return m(e,yi,!1)},e.formatNodeFlags=b,e.formatNodeCheckFlags=function(e){return m(e,Wr,!0)},e.formatModifierFlags=x,e.formatTransformFlags=k,e.formatEmitFlags=S,e.formatSymbolFlags=T,e.formatTypeFlags=C,e.formatSignatureFlags=w,e.formatObjectFlags=N,e.formatFlowFlags=D,e.formatRelationComparisonResult=function(e){return m(e,yr,!0)},e.formatCheckMode=function(e){return m(e,HB,!0)},e.formatSignatureCheckMode=function(e){return m(e,KB,!0)},e.formatTypeFacts=function(e){return m(e,WB,!0)};let F,P,A=!1;function I(e){"__debugFlowFlags"in e||Object.defineProperties(e,{__tsDebuggerDisplay:{value(){const e=2&this.flags?"FlowStart":4&this.flags?"FlowBranchLabel":8&this.flags?"FlowLoopLabel":16&this.flags?"FlowAssignment":32&this.flags?"FlowTrueCondition":64&this.flags?"FlowFalseCondition":128&this.flags?"FlowSwitchClause":256&this.flags?"FlowArrayMutation":512&this.flags?"FlowCall":1024&this.flags?"FlowReduceLabel":1&this.flags?"FlowUnreachable":"UnknownFlow",t=-2048&this.flags;return`${e}${t?` (${D(t)})`:""}`}},__debugFlowFlags:{get(){return m(this.flags,Sr,!0)}},__debugToString:{value(){return j(this)}}})}function O(e){"__tsDebuggerDisplay"in e||Object.defineProperties(e,{__tsDebuggerDisplay:{value:e=>`NodeArray ${e=String(e).replace(/(?:,[\s\w]+:[^,]+)+\]$/,"]")}`}})}e.attachFlowNodeDebugInfo=function(e){return A&&("function"==typeof Object.setPrototypeOf?(F||(F=Object.create(Object.prototype),I(F)),Object.setPrototypeOf(e,F)):I(e)),e},e.attachNodeArrayDebugInfo=function(e){A&&("function"==typeof Object.setPrototypeOf?(P||(P=Object.create(Array.prototype),O(P)),Object.setPrototypeOf(e,P)):O(e))},e.enableDebugInfo=function(){if(A)return;const e=new WeakMap,t=new WeakMap;Object.defineProperties(Mx.getSymbolConstructor().prototype,{__tsDebuggerDisplay:{value(){const e=33554432&this.flags?"TransientSymbol":"Symbol",t=-33554433&this.flags;return`${e} '${yc(this)}'${t?` (${T(t)})`:""}`}},__debugFlags:{get(){return T(this.flags)}}}),Object.defineProperties(Mx.getTypeConstructor().prototype,{__tsDebuggerDisplay:{value(){const e=67359327&this.flags?`IntrinsicType ${this.intrinsicName}${this.debugIntrinsicName?` (${this.debugIntrinsicName})`:""}`:98304&this.flags?"NullableType":384&this.flags?`LiteralType ${JSON.stringify(this.value)}`:2048&this.flags?`LiteralType ${this.value.negative?"-":""}${this.value.base10Value}n`:8192&this.flags?"UniqueESSymbolType":32&this.flags?"EnumType":1048576&this.flags?"UnionType":2097152&this.flags?"IntersectionType":4194304&this.flags?"IndexType":8388608&this.flags?"IndexedAccessType":16777216&this.flags?"ConditionalType":33554432&this.flags?"SubstitutionType":262144&this.flags?"TypeParameter":524288&this.flags?3&this.objectFlags?"InterfaceType":4&this.objectFlags?"TypeReference":8&this.objectFlags?"TupleType":16&this.objectFlags?"AnonymousType":32&this.objectFlags?"MappedType":1024&this.objectFlags?"ReverseMappedType":256&this.objectFlags?"EvolvingArrayType":"ObjectType":"Type",t=524288&this.flags?-1344&this.objectFlags:0;return`${e}${this.symbol?` '${yc(this.symbol)}'`:""}${t?` (${N(t)})`:""}`}},__debugFlags:{get(){return C(this.flags)}},__debugObjectFlags:{get(){return 524288&this.flags?N(this.objectFlags):""}},__debugTypeToString:{value(){let t=e.get(this);return void 0===t&&(t=this.checker.typeToString(this),e.set(this,t)),t}}}),Object.defineProperties(Mx.getSignatureConstructor().prototype,{__debugFlags:{get(){return w(this.flags)}},__debugSignatureToString:{value(){var e;return null==(e=this.checker)?void 0:e.signatureToString(this)}}});const n=[Mx.getNodeConstructor(),Mx.getIdentifierConstructor(),Mx.getTokenConstructor(),Mx.getSourceFileConstructor()];for(const e of n)De(e.prototype,"__debugKind")||Object.defineProperties(e.prototype,{__tsDebuggerDisplay:{value(){return`${Wl(this)?"GeneratedIdentifier":aD(this)?`Identifier '${gc(this)}'`:sD(this)?`PrivateIdentifier '${gc(this)}'`:UN(this)?`StringLiteral ${JSON.stringify(this.text.length<10?this.text:this.text.slice(10)+"...")}`:zN(this)?`NumericLiteral ${this.text}`:qN(this)?`BigIntLiteral ${this.text}n`:SD(this)?"TypeParameterDeclaration":TD(this)?"ParameterDeclaration":PD(this)?"ConstructorDeclaration":AD(this)?"GetAccessorDeclaration":ID(this)?"SetAccessorDeclaration":OD(this)?"CallSignatureDeclaration":LD(this)?"ConstructSignatureDeclaration":jD(this)?"IndexSignatureDeclaration":MD(this)?"TypePredicateNode":RD(this)?"TypeReferenceNode":BD(this)?"FunctionTypeNode":JD(this)?"ConstructorTypeNode":zD(this)?"TypeQueryNode":qD(this)?"TypeLiteralNode":UD(this)?"ArrayTypeNode":VD(this)?"TupleTypeNode":$D(this)?"OptionalTypeNode":HD(this)?"RestTypeNode":KD(this)?"UnionTypeNode":GD(this)?"IntersectionTypeNode":XD(this)?"ConditionalTypeNode":QD(this)?"InferTypeNode":YD(this)?"ParenthesizedTypeNode":ZD(this)?"ThisTypeNode":eF(this)?"TypeOperatorNode":tF(this)?"IndexedAccessTypeNode":nF(this)?"MappedTypeNode":rF(this)?"LiteralTypeNode":WD(this)?"NamedTupleMember":iF(this)?"ImportTypeNode":y(this.kind)}${this.flags?` (${b(this.flags)})`:""}`}},__debugKind:{get(){return y(this.kind)}},__debugNodeFlags:{get(){return b(this.flags)}},__debugModifierFlags:{get(){return x(Vv(this))}},__debugTransformFlags:{get(){return k(this.transformFlags)}},__debugIsParseTreeNode:{get(){return dc(this)}},__debugEmitFlags:{get(){return S(Zd(this))}},__debugGetText:{value(e){if(ey(this))return"";let n=t.get(this);if(void 0===n){const r=pc(this),i=r&&vd(r);n=i?Vd(i,r,e):"",t.set(this,n)}return n}}});A=!0},e.formatVariance=function(e){const t=7&e;let n=0===t?"in out":3===t?"[bivariant]":2===t?"in":1===t?"out":4===t?"[independent]":"";return 8&e?n+=" (unmeasurable)":16&e&&(n+=" (unreliable)"),n};class L{__debugToString(){var e;switch(this.kind){case 3:return(null==(e=this.debugInfo)?void 0:e.call(this))||"(function mapper)";case 0:return`${this.source.__debugTypeToString()} -> ${this.target.__debugTypeToString()}`;case 1:return h(this.sources,this.targets||E(this.sources,()=>"any"),(e,t)=>`${e.__debugTypeToString()} -> ${"string"==typeof t?t:t.__debugTypeToString()}`).join(", ");case 2:return h(this.sources,this.targets,(e,t)=>`${e.__debugTypeToString()} -> ${t().__debugTypeToString()}`).join(", ");case 5:case 4:return`m1: ${this.mapper1.__debugToString().split("\n").join("\n ")}\nm2: ${this.mapper2.__debugToString().split("\n").join("\n ")}`;default:return p(this)}}}function j(e){let t,n=-1;function r(e){return e.id||(e.id=n,n--),e.id}var i;let o;var a;(i=t||(t={})).lr="─",i.ud="│",i.dr="╭",i.dl="╮",i.ul="╯",i.ur="╰",i.udr="├",i.udl="┤",i.dlr="┬",i.ulr="┴",i.udlr="╫",(a=o||(o={}))[a.None=0]="None",a[a.Up=1]="Up",a[a.Down=2]="Down",a[a.Left=4]="Left",a[a.Right=8]="Right",a[a.UpDown=3]="UpDown",a[a.LeftRight=12]="LeftRight",a[a.UpLeft=5]="UpLeft",a[a.UpRight=9]="UpRight",a[a.DownLeft=6]="DownLeft",a[a.DownRight=10]="DownRight",a[a.UpDownLeft=7]="UpDownLeft",a[a.UpDownRight=11]="UpDownRight",a[a.UpLeftRight=13]="UpLeftRight",a[a.DownLeftRight=14]="DownLeftRight",a[a.UpDownLeftRight=15]="UpDownLeftRight",a[a.NoChildren=16]="NoChildren";const s=Object.create(null),c=[],l=[],_=f(e,new Set);for(const e of c)e.text=y(e.flowNode,e.circular),g(e);const u=function(e){const t=b(Array(e),0);for(const e of c)t[e.level]=Math.max(t[e.level],e.text.length);return t}(function e(t){let n=0;for(const r of d(t))n=Math.max(n,e(r));return n+1}(_));return function e(t,n){if(-1===t.lane){t.lane=n,t.endLane=n;const r=d(t);for(let i=0;i0&&n++;const o=r[i];e(o,n),o.endLane>t.endLane&&(n=o.endLane)}t.endLane=n}}(_,0),function(){const e=u.length,t=xt(c,0,e=>e.lane)+1,n=b(Array(t),""),r=u.map(()=>Array(t)),i=u.map(()=>b(Array(t),0));for(const e of c){r[e.level][e.lane]=e;const t=d(e);for(let n=0;n0&&(o|=1),n0&&(o|=1),t0?i[n-1][e]:0,r=e>0?i[n][e-1]:0;let o=i[n][e];o||(8&t&&(o|=12),2&r&&(o|=3),i[n][e]=o)}for(let t=0;t0?e.repeat(t):"";let n="";for(;n.length=0,"Invalid argument: major"),un.assert(t>=0,"Invalid argument: minor"),un.assert(n>=0,"Invalid argument: patch");const o=r?Qe(r)?r:r.split("."):l,a=i?Qe(i)?i:i.split("."):l;un.assert(v(o,e=>mn.test(e)),"Invalid argument: prerelease"),un.assert(v(a,e=>hn.test(e)),"Invalid argument: build"),this.major=e,this.minor=t,this.patch=n,this.prerelease=o,this.build=a}static tryParse(t){const n=xn(t);if(!n)return;const{major:r,minor:i,patch:o,prerelease:a,build:s}=n;return new e(r,i,o,a,s)}compareTo(e){return this===e?0:void 0===e?1:vt(this.major,e.major)||vt(this.minor,e.minor)||vt(this.patch,e.patch)||function(e,t){if(e===t)return 0;if(0===e.length)return 0===t.length?0:1;if(0===t.length)return-1;const n=Math.min(e.length,t.length);for(let r=0;r=]|<=|>=)?\s*([a-z0-9-+.*]+)$/i;function Dn(e){const t=[];for(let n of e.trim().split(Sn)){if(!n)continue;const e=[];n=n.trim();const r=wn.exec(n);if(r){if(!En(r[1],r[2],e))return}else for(const t of n.split(Tn)){const n=Nn.exec(t.trim());if(!n||!Pn(n[1],n[2],e))return}t.push(e)}return t}function Fn(e){const t=Cn.exec(e);if(!t)return;const[,n,r="*",i="*",o,a]=t;return{version:new bn(An(n)?0:parseInt(n,10),An(n)||An(r)?0:parseInt(r,10),An(n)||An(r)||An(i)?0:parseInt(i,10),o,a),major:n,minor:r,patch:i}}function En(e,t,n){const r=Fn(e);if(!r)return!1;const i=Fn(t);return!!i&&(An(r.major)||n.push(In(">=",r.version)),An(i.major)||n.push(An(i.minor)?In("<",i.version.increment("major")):An(i.patch)?In("<",i.version.increment("minor")):In("<=",i.version)),!0)}function Pn(e,t,n){const r=Fn(t);if(!r)return!1;const{version:i,major:o,minor:a,patch:s}=r;if(An(o))"<"!==e&&">"!==e||n.push(In("<",bn.zero));else switch(e){case"~":n.push(In(">=",i)),n.push(In("<",i.increment(An(a)?"major":"minor")));break;case"^":n.push(In(">=",i)),n.push(In("<",i.increment(i.major>0||An(a)?"major":i.minor>0||An(s)?"minor":"patch")));break;case"<":case">=":n.push(An(a)||An(s)?In(e,i.with({prerelease:"0"})):In(e,i));break;case"<=":case">":n.push(An(a)?In("<="===e?"<":">=",i.increment("major").with({prerelease:"0"})):An(s)?In("<="===e?"<":">=",i.increment("minor").with({prerelease:"0"})):In(e,i));break;case"=":case void 0:An(a)||An(s)?(n.push(In(">=",i.with({prerelease:"0"}))),n.push(In("<",i.increment(An(a)?"major":"minor").with({prerelease:"0"})))):n.push(In("=",i));break;default:return!1}return!0}function An(e){return"*"===e||"x"===e||"X"===e}function In(e,t){return{operator:e,operand:t}}function On(e,t){for(const n of t)if(!Ln(e,n.operator,n.operand))return!1;return!0}function Ln(e,t,n){const r=e.compareTo(n);switch(t){case"<":return r<0;case"<=":return r<=0;case">":return r>0;case">=":return r>=0;case"=":return 0===r;default:return un.assertNever(t)}}function jn(e){return E(e,Mn).join(" ")}function Mn(e){return`${e.operator}${e.operand}`}var Rn=function(){const e=function(){if(_n())try{const{performance:e}=n(732);if(e)return{shouldWriteNativeEvents:!1,performance:e}}catch{}if("object"==typeof performance)return{shouldWriteNativeEvents:!0,performance}}();if(!e)return;const{shouldWriteNativeEvents:t,performance:r}=e,i={shouldWriteNativeEvents:t,performance:void 0,performanceTime:void 0};return"number"==typeof r.timeOrigin&&"function"==typeof r.now&&(i.performanceTime=r),i.performanceTime&&"function"==typeof r.mark&&"function"==typeof r.measure&&"function"==typeof r.clearMarks&&"function"==typeof r.clearMeasures&&(i.performance=r),i}(),Bn=null==Rn?void 0:Rn.performanceTime;function Jn(){return Rn}var zn,qn,Un=Bn?()=>Bn.now():Date.now,Vn={};function Wn(e,t,n,r){return e?$n(t,n,r):Gn}function $n(e,t,n){let r=0;return{enter:function(){1===++r&&tr(t)},exit:function(){0===--r?(tr(n),nr(e,t,n)):r<0&&un.fail("enter/exit count does not match.")}}}i(Vn,{clearMarks:()=>cr,clearMeasures:()=>sr,createTimer:()=>$n,createTimerIf:()=>Wn,disable:()=>ur,enable:()=>_r,forEachMark:()=>ar,forEachMeasure:()=>or,getCount:()=>rr,getDuration:()=>ir,isEnabled:()=>lr,mark:()=>tr,measure:()=>nr,nullTimer:()=>Gn});var Hn,Kn,Gn={enter:rt,exit:rt},Xn=!1,Qn=Un(),Yn=new Map,Zn=new Map,er=new Map;function tr(e){if(Xn){const t=Zn.get(e)??0;Zn.set(e,t+1),Yn.set(e,Un()),null==qn||qn.mark(e),"function"==typeof onProfilerEvent&&onProfilerEvent(e)}}function nr(e,t,n){if(Xn){const r=(void 0!==n?Yn.get(n):void 0)??Un(),i=(void 0!==t?Yn.get(t):void 0)??Qn,o=er.get(e)||0;er.set(e,o+(r-i)),null==qn||qn.measure(e,t,n)}}function rr(e){return Zn.get(e)||0}function ir(e){return er.get(e)||0}function or(e){er.forEach((t,n)=>e(n,t))}function ar(e){Yn.forEach((t,n)=>e(n))}function sr(e){void 0!==e?er.delete(e):er.clear(),null==qn||qn.clearMeasures(e)}function cr(e){void 0!==e?(Zn.delete(e),Yn.delete(e)):(Zn.clear(),Yn.clear()),null==qn||qn.clearMarks(e)}function lr(){return Xn}function _r(e=so){var t;return Xn||(Xn=!0,zn||(zn=Jn()),(null==zn?void 0:zn.performance)&&(Qn=zn.performance.timeOrigin,(zn.shouldWriteNativeEvents||(null==(t=null==e?void 0:e.cpuProfilingEnabled)?void 0:t.call(e))||(null==e?void 0:e.debugMode))&&(qn=zn.performance))),!0}function ur(){Xn&&(Yn.clear(),Zn.clear(),er.clear(),qn=void 0,Xn=!1)}(e=>{let t,r,i=0,o=0;const a=[];let s;const c=[];let l;var _;e.startTracing=function(l,_,u){if(un.assert(!Hn,"Tracing already started"),void 0===t)try{t=n(21)}catch(e){throw new Error(`tracing requires having fs\n(original error: ${e.message||e})`)}r=l,a.length=0,void 0===s&&(s=jo(_,"legend.json")),t.existsSync(_)||t.mkdirSync(_,{recursive:!0});const d="build"===r?`.${process.pid}-${++i}`:"server"===r?`.${process.pid}`:"",p=jo(_,`trace${d}.json`),f=jo(_,`types${d}.json`);c.push({configFilePath:u,tracePath:p,typesPath:f}),o=t.openSync(p,"w"),Hn=e;const m={cat:"__metadata",ph:"M",ts:1e3*Un(),pid:1,tid:1};t.writeSync(o,"[\n"+[{name:"process_name",args:{name:"tsc"},...m},{name:"thread_name",args:{name:"Main"},...m},{name:"TracingStartedInBrowser",...m,cat:"disabled-by-default-devtools.timeline"}].map(e=>JSON.stringify(e)).join(",\n"))},e.stopTracing=function(){un.assert(Hn,"Tracing is not in progress"),un.assert(!!a.length==("server"!==r)),t.writeSync(o,"\n]\n"),t.closeSync(o),Hn=void 0,a.length?function(e){var n,r,i,o,a,s,l,_,u,d,p,f,g,h,y,v,b,x,k;tr("beginDumpTypes");const S=c[c.length-1].typesPath,T=t.openSync(S,"w"),C=new Map;t.writeSync(T,"[");const w=e.length;for(let c=0;ce.id),referenceLocation:m(e.node)}}let A={};if(16777216&S.flags){const e=S;A={conditionalCheckType:null==(s=e.checkType)?void 0:s.id,conditionalExtendsType:null==(l=e.extendsType)?void 0:l.id,conditionalTrueType:(null==(_=e.resolvedTrueType)?void 0:_.id)??-1,conditionalFalseType:(null==(u=e.resolvedFalseType)?void 0:u.id)??-1}}let I={};if(33554432&S.flags){const e=S;I={substitutionBaseType:null==(d=e.baseType)?void 0:d.id,constraintType:null==(p=e.constraint)?void 0:p.id}}let O={};if(1024&N){const e=S;O={reverseMappedSourceType:null==(f=e.source)?void 0:f.id,reverseMappedMappedType:null==(g=e.mappedType)?void 0:g.id,reverseMappedConstraintType:null==(h=e.constraintType)?void 0:h.id}}let L,j={};if(256&N){const e=S;j={evolvingArrayElementType:e.elementType.id,evolvingArrayFinalType:null==(y=e.finalArrayType)?void 0:y.id}}const M=S.checker.getRecursionIdentity(S);M&&(L=C.get(M),L||(L=C.size,C.set(M,L)));const R={id:S.id,intrinsicName:S.intrinsicName,symbolName:(null==D?void 0:D.escapedName)&&mc(D.escapedName),recursionId:L,isTuple:!!(8&N)||void 0,unionTypes:1048576&S.flags?null==(v=S.types)?void 0:v.map(e=>e.id):void 0,intersectionTypes:2097152&S.flags?S.types.map(e=>e.id):void 0,aliasTypeArguments:null==(b=S.aliasTypeArguments)?void 0:b.map(e=>e.id),keyofType:4194304&S.flags?null==(x=S.type)?void 0:x.id:void 0,...E,...P,...A,...I,...O,...j,destructuringPattern:m(S.pattern),firstDeclaration:m(null==(k=null==D?void 0:D.declarations)?void 0:k[0]),flags:un.formatTypeFlags(S.flags).split("|"),display:F};t.writeSync(T,JSON.stringify(R)),c0),p(u.length-1,1e3*Un(),e),u.length--},e.popAll=function(){const e=1e3*Un();for(let t=u.length-1;t>=0;t--)p(t,e);u.length=0};const d=1e4;function p(e,t,n){const{phase:r,name:i,args:o,time:a,separateBeginAndEnd:s}=u[e];s?(un.assert(!n,"`results` are not supported for events with `separateBeginAndEnd`"),f("E",r,i,o,void 0,t)):d-a%d<=t-a&&f("X",r,i,{...o,results:n},'"dur":'+(t-a),a)}function f(e,n,i,a,s,c=1e3*Un()){"server"===r&&"checkTypes"===n||(tr("beginTracing"),t.writeSync(o,`,\n{"pid":1,"tid":1,"ph":"${e}","cat":"${n}","ts":${c},"name":"${i}"`),s&&t.writeSync(o,`,${s}`),a&&t.writeSync(o,`,"args":${JSON.stringify(a)}`),t.writeSync(o,"}"),tr("endTracing"),nr("Tracing","beginTracing","endTracing"))}function m(e){const t=vd(e);return t?{path:t.path,start:n(za(t,e.pos)),end:n(za(t,e.end))}:void 0;function n(e){return{line:e.line+1,character:e.character+1}}}e.dumpLegend=function(){s&&t.writeFileSync(s,JSON.stringify(c))}})(Kn||(Kn={}));var dr=Kn.startTracing,pr=Kn.dumpLegend,fr=(e=>(e[e.Unknown=0]="Unknown",e[e.EndOfFileToken=1]="EndOfFileToken",e[e.SingleLineCommentTrivia=2]="SingleLineCommentTrivia",e[e.MultiLineCommentTrivia=3]="MultiLineCommentTrivia",e[e.NewLineTrivia=4]="NewLineTrivia",e[e.WhitespaceTrivia=5]="WhitespaceTrivia",e[e.ShebangTrivia=6]="ShebangTrivia",e[e.ConflictMarkerTrivia=7]="ConflictMarkerTrivia",e[e.NonTextFileMarkerTrivia=8]="NonTextFileMarkerTrivia",e[e.NumericLiteral=9]="NumericLiteral",e[e.BigIntLiteral=10]="BigIntLiteral",e[e.StringLiteral=11]="StringLiteral",e[e.JsxText=12]="JsxText",e[e.JsxTextAllWhiteSpaces=13]="JsxTextAllWhiteSpaces",e[e.RegularExpressionLiteral=14]="RegularExpressionLiteral",e[e.NoSubstitutionTemplateLiteral=15]="NoSubstitutionTemplateLiteral",e[e.TemplateHead=16]="TemplateHead",e[e.TemplateMiddle=17]="TemplateMiddle",e[e.TemplateTail=18]="TemplateTail",e[e.OpenBraceToken=19]="OpenBraceToken",e[e.CloseBraceToken=20]="CloseBraceToken",e[e.OpenParenToken=21]="OpenParenToken",e[e.CloseParenToken=22]="CloseParenToken",e[e.OpenBracketToken=23]="OpenBracketToken",e[e.CloseBracketToken=24]="CloseBracketToken",e[e.DotToken=25]="DotToken",e[e.DotDotDotToken=26]="DotDotDotToken",e[e.SemicolonToken=27]="SemicolonToken",e[e.CommaToken=28]="CommaToken",e[e.QuestionDotToken=29]="QuestionDotToken",e[e.LessThanToken=30]="LessThanToken",e[e.LessThanSlashToken=31]="LessThanSlashToken",e[e.GreaterThanToken=32]="GreaterThanToken",e[e.LessThanEqualsToken=33]="LessThanEqualsToken",e[e.GreaterThanEqualsToken=34]="GreaterThanEqualsToken",e[e.EqualsEqualsToken=35]="EqualsEqualsToken",e[e.ExclamationEqualsToken=36]="ExclamationEqualsToken",e[e.EqualsEqualsEqualsToken=37]="EqualsEqualsEqualsToken",e[e.ExclamationEqualsEqualsToken=38]="ExclamationEqualsEqualsToken",e[e.EqualsGreaterThanToken=39]="EqualsGreaterThanToken",e[e.PlusToken=40]="PlusToken",e[e.MinusToken=41]="MinusToken",e[e.AsteriskToken=42]="AsteriskToken",e[e.AsteriskAsteriskToken=43]="AsteriskAsteriskToken",e[e.SlashToken=44]="SlashToken",e[e.PercentToken=45]="PercentToken",e[e.PlusPlusToken=46]="PlusPlusToken",e[e.MinusMinusToken=47]="MinusMinusToken",e[e.LessThanLessThanToken=48]="LessThanLessThanToken",e[e.GreaterThanGreaterThanToken=49]="GreaterThanGreaterThanToken",e[e.GreaterThanGreaterThanGreaterThanToken=50]="GreaterThanGreaterThanGreaterThanToken",e[e.AmpersandToken=51]="AmpersandToken",e[e.BarToken=52]="BarToken",e[e.CaretToken=53]="CaretToken",e[e.ExclamationToken=54]="ExclamationToken",e[e.TildeToken=55]="TildeToken",e[e.AmpersandAmpersandToken=56]="AmpersandAmpersandToken",e[e.BarBarToken=57]="BarBarToken",e[e.QuestionToken=58]="QuestionToken",e[e.ColonToken=59]="ColonToken",e[e.AtToken=60]="AtToken",e[e.QuestionQuestionToken=61]="QuestionQuestionToken",e[e.BacktickToken=62]="BacktickToken",e[e.HashToken=63]="HashToken",e[e.EqualsToken=64]="EqualsToken",e[e.PlusEqualsToken=65]="PlusEqualsToken",e[e.MinusEqualsToken=66]="MinusEqualsToken",e[e.AsteriskEqualsToken=67]="AsteriskEqualsToken",e[e.AsteriskAsteriskEqualsToken=68]="AsteriskAsteriskEqualsToken",e[e.SlashEqualsToken=69]="SlashEqualsToken",e[e.PercentEqualsToken=70]="PercentEqualsToken",e[e.LessThanLessThanEqualsToken=71]="LessThanLessThanEqualsToken",e[e.GreaterThanGreaterThanEqualsToken=72]="GreaterThanGreaterThanEqualsToken",e[e.GreaterThanGreaterThanGreaterThanEqualsToken=73]="GreaterThanGreaterThanGreaterThanEqualsToken",e[e.AmpersandEqualsToken=74]="AmpersandEqualsToken",e[e.BarEqualsToken=75]="BarEqualsToken",e[e.BarBarEqualsToken=76]="BarBarEqualsToken",e[e.AmpersandAmpersandEqualsToken=77]="AmpersandAmpersandEqualsToken",e[e.QuestionQuestionEqualsToken=78]="QuestionQuestionEqualsToken",e[e.CaretEqualsToken=79]="CaretEqualsToken",e[e.Identifier=80]="Identifier",e[e.PrivateIdentifier=81]="PrivateIdentifier",e[e.JSDocCommentTextToken=82]="JSDocCommentTextToken",e[e.BreakKeyword=83]="BreakKeyword",e[e.CaseKeyword=84]="CaseKeyword",e[e.CatchKeyword=85]="CatchKeyword",e[e.ClassKeyword=86]="ClassKeyword",e[e.ConstKeyword=87]="ConstKeyword",e[e.ContinueKeyword=88]="ContinueKeyword",e[e.DebuggerKeyword=89]="DebuggerKeyword",e[e.DefaultKeyword=90]="DefaultKeyword",e[e.DeleteKeyword=91]="DeleteKeyword",e[e.DoKeyword=92]="DoKeyword",e[e.ElseKeyword=93]="ElseKeyword",e[e.EnumKeyword=94]="EnumKeyword",e[e.ExportKeyword=95]="ExportKeyword",e[e.ExtendsKeyword=96]="ExtendsKeyword",e[e.FalseKeyword=97]="FalseKeyword",e[e.FinallyKeyword=98]="FinallyKeyword",e[e.ForKeyword=99]="ForKeyword",e[e.FunctionKeyword=100]="FunctionKeyword",e[e.IfKeyword=101]="IfKeyword",e[e.ImportKeyword=102]="ImportKeyword",e[e.InKeyword=103]="InKeyword",e[e.InstanceOfKeyword=104]="InstanceOfKeyword",e[e.NewKeyword=105]="NewKeyword",e[e.NullKeyword=106]="NullKeyword",e[e.ReturnKeyword=107]="ReturnKeyword",e[e.SuperKeyword=108]="SuperKeyword",e[e.SwitchKeyword=109]="SwitchKeyword",e[e.ThisKeyword=110]="ThisKeyword",e[e.ThrowKeyword=111]="ThrowKeyword",e[e.TrueKeyword=112]="TrueKeyword",e[e.TryKeyword=113]="TryKeyword",e[e.TypeOfKeyword=114]="TypeOfKeyword",e[e.VarKeyword=115]="VarKeyword",e[e.VoidKeyword=116]="VoidKeyword",e[e.WhileKeyword=117]="WhileKeyword",e[e.WithKeyword=118]="WithKeyword",e[e.ImplementsKeyword=119]="ImplementsKeyword",e[e.InterfaceKeyword=120]="InterfaceKeyword",e[e.LetKeyword=121]="LetKeyword",e[e.PackageKeyword=122]="PackageKeyword",e[e.PrivateKeyword=123]="PrivateKeyword",e[e.ProtectedKeyword=124]="ProtectedKeyword",e[e.PublicKeyword=125]="PublicKeyword",e[e.StaticKeyword=126]="StaticKeyword",e[e.YieldKeyword=127]="YieldKeyword",e[e.AbstractKeyword=128]="AbstractKeyword",e[e.AccessorKeyword=129]="AccessorKeyword",e[e.AsKeyword=130]="AsKeyword",e[e.AssertsKeyword=131]="AssertsKeyword",e[e.AssertKeyword=132]="AssertKeyword",e[e.AnyKeyword=133]="AnyKeyword",e[e.AsyncKeyword=134]="AsyncKeyword",e[e.AwaitKeyword=135]="AwaitKeyword",e[e.BooleanKeyword=136]="BooleanKeyword",e[e.ConstructorKeyword=137]="ConstructorKeyword",e[e.DeclareKeyword=138]="DeclareKeyword",e[e.GetKeyword=139]="GetKeyword",e[e.InferKeyword=140]="InferKeyword",e[e.IntrinsicKeyword=141]="IntrinsicKeyword",e[e.IsKeyword=142]="IsKeyword",e[e.KeyOfKeyword=143]="KeyOfKeyword",e[e.ModuleKeyword=144]="ModuleKeyword",e[e.NamespaceKeyword=145]="NamespaceKeyword",e[e.NeverKeyword=146]="NeverKeyword",e[e.OutKeyword=147]="OutKeyword",e[e.ReadonlyKeyword=148]="ReadonlyKeyword",e[e.RequireKeyword=149]="RequireKeyword",e[e.NumberKeyword=150]="NumberKeyword",e[e.ObjectKeyword=151]="ObjectKeyword",e[e.SatisfiesKeyword=152]="SatisfiesKeyword",e[e.SetKeyword=153]="SetKeyword",e[e.StringKeyword=154]="StringKeyword",e[e.SymbolKeyword=155]="SymbolKeyword",e[e.TypeKeyword=156]="TypeKeyword",e[e.UndefinedKeyword=157]="UndefinedKeyword",e[e.UniqueKeyword=158]="UniqueKeyword",e[e.UnknownKeyword=159]="UnknownKeyword",e[e.UsingKeyword=160]="UsingKeyword",e[e.FromKeyword=161]="FromKeyword",e[e.GlobalKeyword=162]="GlobalKeyword",e[e.BigIntKeyword=163]="BigIntKeyword",e[e.OverrideKeyword=164]="OverrideKeyword",e[e.OfKeyword=165]="OfKeyword",e[e.DeferKeyword=166]="DeferKeyword",e[e.QualifiedName=167]="QualifiedName",e[e.ComputedPropertyName=168]="ComputedPropertyName",e[e.TypeParameter=169]="TypeParameter",e[e.Parameter=170]="Parameter",e[e.Decorator=171]="Decorator",e[e.PropertySignature=172]="PropertySignature",e[e.PropertyDeclaration=173]="PropertyDeclaration",e[e.MethodSignature=174]="MethodSignature",e[e.MethodDeclaration=175]="MethodDeclaration",e[e.ClassStaticBlockDeclaration=176]="ClassStaticBlockDeclaration",e[e.Constructor=177]="Constructor",e[e.GetAccessor=178]="GetAccessor",e[e.SetAccessor=179]="SetAccessor",e[e.CallSignature=180]="CallSignature",e[e.ConstructSignature=181]="ConstructSignature",e[e.IndexSignature=182]="IndexSignature",e[e.TypePredicate=183]="TypePredicate",e[e.TypeReference=184]="TypeReference",e[e.FunctionType=185]="FunctionType",e[e.ConstructorType=186]="ConstructorType",e[e.TypeQuery=187]="TypeQuery",e[e.TypeLiteral=188]="TypeLiteral",e[e.ArrayType=189]="ArrayType",e[e.TupleType=190]="TupleType",e[e.OptionalType=191]="OptionalType",e[e.RestType=192]="RestType",e[e.UnionType=193]="UnionType",e[e.IntersectionType=194]="IntersectionType",e[e.ConditionalType=195]="ConditionalType",e[e.InferType=196]="InferType",e[e.ParenthesizedType=197]="ParenthesizedType",e[e.ThisType=198]="ThisType",e[e.TypeOperator=199]="TypeOperator",e[e.IndexedAccessType=200]="IndexedAccessType",e[e.MappedType=201]="MappedType",e[e.LiteralType=202]="LiteralType",e[e.NamedTupleMember=203]="NamedTupleMember",e[e.TemplateLiteralType=204]="TemplateLiteralType",e[e.TemplateLiteralTypeSpan=205]="TemplateLiteralTypeSpan",e[e.ImportType=206]="ImportType",e[e.ObjectBindingPattern=207]="ObjectBindingPattern",e[e.ArrayBindingPattern=208]="ArrayBindingPattern",e[e.BindingElement=209]="BindingElement",e[e.ArrayLiteralExpression=210]="ArrayLiteralExpression",e[e.ObjectLiteralExpression=211]="ObjectLiteralExpression",e[e.PropertyAccessExpression=212]="PropertyAccessExpression",e[e.ElementAccessExpression=213]="ElementAccessExpression",e[e.CallExpression=214]="CallExpression",e[e.NewExpression=215]="NewExpression",e[e.TaggedTemplateExpression=216]="TaggedTemplateExpression",e[e.TypeAssertionExpression=217]="TypeAssertionExpression",e[e.ParenthesizedExpression=218]="ParenthesizedExpression",e[e.FunctionExpression=219]="FunctionExpression",e[e.ArrowFunction=220]="ArrowFunction",e[e.DeleteExpression=221]="DeleteExpression",e[e.TypeOfExpression=222]="TypeOfExpression",e[e.VoidExpression=223]="VoidExpression",e[e.AwaitExpression=224]="AwaitExpression",e[e.PrefixUnaryExpression=225]="PrefixUnaryExpression",e[e.PostfixUnaryExpression=226]="PostfixUnaryExpression",e[e.BinaryExpression=227]="BinaryExpression",e[e.ConditionalExpression=228]="ConditionalExpression",e[e.TemplateExpression=229]="TemplateExpression",e[e.YieldExpression=230]="YieldExpression",e[e.SpreadElement=231]="SpreadElement",e[e.ClassExpression=232]="ClassExpression",e[e.OmittedExpression=233]="OmittedExpression",e[e.ExpressionWithTypeArguments=234]="ExpressionWithTypeArguments",e[e.AsExpression=235]="AsExpression",e[e.NonNullExpression=236]="NonNullExpression",e[e.MetaProperty=237]="MetaProperty",e[e.SyntheticExpression=238]="SyntheticExpression",e[e.SatisfiesExpression=239]="SatisfiesExpression",e[e.TemplateSpan=240]="TemplateSpan",e[e.SemicolonClassElement=241]="SemicolonClassElement",e[e.Block=242]="Block",e[e.EmptyStatement=243]="EmptyStatement",e[e.VariableStatement=244]="VariableStatement",e[e.ExpressionStatement=245]="ExpressionStatement",e[e.IfStatement=246]="IfStatement",e[e.DoStatement=247]="DoStatement",e[e.WhileStatement=248]="WhileStatement",e[e.ForStatement=249]="ForStatement",e[e.ForInStatement=250]="ForInStatement",e[e.ForOfStatement=251]="ForOfStatement",e[e.ContinueStatement=252]="ContinueStatement",e[e.BreakStatement=253]="BreakStatement",e[e.ReturnStatement=254]="ReturnStatement",e[e.WithStatement=255]="WithStatement",e[e.SwitchStatement=256]="SwitchStatement",e[e.LabeledStatement=257]="LabeledStatement",e[e.ThrowStatement=258]="ThrowStatement",e[e.TryStatement=259]="TryStatement",e[e.DebuggerStatement=260]="DebuggerStatement",e[e.VariableDeclaration=261]="VariableDeclaration",e[e.VariableDeclarationList=262]="VariableDeclarationList",e[e.FunctionDeclaration=263]="FunctionDeclaration",e[e.ClassDeclaration=264]="ClassDeclaration",e[e.InterfaceDeclaration=265]="InterfaceDeclaration",e[e.TypeAliasDeclaration=266]="TypeAliasDeclaration",e[e.EnumDeclaration=267]="EnumDeclaration",e[e.ModuleDeclaration=268]="ModuleDeclaration",e[e.ModuleBlock=269]="ModuleBlock",e[e.CaseBlock=270]="CaseBlock",e[e.NamespaceExportDeclaration=271]="NamespaceExportDeclaration",e[e.ImportEqualsDeclaration=272]="ImportEqualsDeclaration",e[e.ImportDeclaration=273]="ImportDeclaration",e[e.ImportClause=274]="ImportClause",e[e.NamespaceImport=275]="NamespaceImport",e[e.NamedImports=276]="NamedImports",e[e.ImportSpecifier=277]="ImportSpecifier",e[e.ExportAssignment=278]="ExportAssignment",e[e.ExportDeclaration=279]="ExportDeclaration",e[e.NamedExports=280]="NamedExports",e[e.NamespaceExport=281]="NamespaceExport",e[e.ExportSpecifier=282]="ExportSpecifier",e[e.MissingDeclaration=283]="MissingDeclaration",e[e.ExternalModuleReference=284]="ExternalModuleReference",e[e.JsxElement=285]="JsxElement",e[e.JsxSelfClosingElement=286]="JsxSelfClosingElement",e[e.JsxOpeningElement=287]="JsxOpeningElement",e[e.JsxClosingElement=288]="JsxClosingElement",e[e.JsxFragment=289]="JsxFragment",e[e.JsxOpeningFragment=290]="JsxOpeningFragment",e[e.JsxClosingFragment=291]="JsxClosingFragment",e[e.JsxAttribute=292]="JsxAttribute",e[e.JsxAttributes=293]="JsxAttributes",e[e.JsxSpreadAttribute=294]="JsxSpreadAttribute",e[e.JsxExpression=295]="JsxExpression",e[e.JsxNamespacedName=296]="JsxNamespacedName",e[e.CaseClause=297]="CaseClause",e[e.DefaultClause=298]="DefaultClause",e[e.HeritageClause=299]="HeritageClause",e[e.CatchClause=300]="CatchClause",e[e.ImportAttributes=301]="ImportAttributes",e[e.ImportAttribute=302]="ImportAttribute",e[e.AssertClause=301]="AssertClause",e[e.AssertEntry=302]="AssertEntry",e[e.ImportTypeAssertionContainer=303]="ImportTypeAssertionContainer",e[e.PropertyAssignment=304]="PropertyAssignment",e[e.ShorthandPropertyAssignment=305]="ShorthandPropertyAssignment",e[e.SpreadAssignment=306]="SpreadAssignment",e[e.EnumMember=307]="EnumMember",e[e.SourceFile=308]="SourceFile",e[e.Bundle=309]="Bundle",e[e.JSDocTypeExpression=310]="JSDocTypeExpression",e[e.JSDocNameReference=311]="JSDocNameReference",e[e.JSDocMemberName=312]="JSDocMemberName",e[e.JSDocAllType=313]="JSDocAllType",e[e.JSDocUnknownType=314]="JSDocUnknownType",e[e.JSDocNullableType=315]="JSDocNullableType",e[e.JSDocNonNullableType=316]="JSDocNonNullableType",e[e.JSDocOptionalType=317]="JSDocOptionalType",e[e.JSDocFunctionType=318]="JSDocFunctionType",e[e.JSDocVariadicType=319]="JSDocVariadicType",e[e.JSDocNamepathType=320]="JSDocNamepathType",e[e.JSDoc=321]="JSDoc",e[e.JSDocComment=321]="JSDocComment",e[e.JSDocText=322]="JSDocText",e[e.JSDocTypeLiteral=323]="JSDocTypeLiteral",e[e.JSDocSignature=324]="JSDocSignature",e[e.JSDocLink=325]="JSDocLink",e[e.JSDocLinkCode=326]="JSDocLinkCode",e[e.JSDocLinkPlain=327]="JSDocLinkPlain",e[e.JSDocTag=328]="JSDocTag",e[e.JSDocAugmentsTag=329]="JSDocAugmentsTag",e[e.JSDocImplementsTag=330]="JSDocImplementsTag",e[e.JSDocAuthorTag=331]="JSDocAuthorTag",e[e.JSDocDeprecatedTag=332]="JSDocDeprecatedTag",e[e.JSDocClassTag=333]="JSDocClassTag",e[e.JSDocPublicTag=334]="JSDocPublicTag",e[e.JSDocPrivateTag=335]="JSDocPrivateTag",e[e.JSDocProtectedTag=336]="JSDocProtectedTag",e[e.JSDocReadonlyTag=337]="JSDocReadonlyTag",e[e.JSDocOverrideTag=338]="JSDocOverrideTag",e[e.JSDocCallbackTag=339]="JSDocCallbackTag",e[e.JSDocOverloadTag=340]="JSDocOverloadTag",e[e.JSDocEnumTag=341]="JSDocEnumTag",e[e.JSDocParameterTag=342]="JSDocParameterTag",e[e.JSDocReturnTag=343]="JSDocReturnTag",e[e.JSDocThisTag=344]="JSDocThisTag",e[e.JSDocTypeTag=345]="JSDocTypeTag",e[e.JSDocTemplateTag=346]="JSDocTemplateTag",e[e.JSDocTypedefTag=347]="JSDocTypedefTag",e[e.JSDocSeeTag=348]="JSDocSeeTag",e[e.JSDocPropertyTag=349]="JSDocPropertyTag",e[e.JSDocThrowsTag=350]="JSDocThrowsTag",e[e.JSDocSatisfiesTag=351]="JSDocSatisfiesTag",e[e.JSDocImportTag=352]="JSDocImportTag",e[e.SyntaxList=353]="SyntaxList",e[e.NotEmittedStatement=354]="NotEmittedStatement",e[e.NotEmittedTypeElement=355]="NotEmittedTypeElement",e[e.PartiallyEmittedExpression=356]="PartiallyEmittedExpression",e[e.CommaListExpression=357]="CommaListExpression",e[e.SyntheticReferenceExpression=358]="SyntheticReferenceExpression",e[e.Count=359]="Count",e[e.FirstAssignment=64]="FirstAssignment",e[e.LastAssignment=79]="LastAssignment",e[e.FirstCompoundAssignment=65]="FirstCompoundAssignment",e[e.LastCompoundAssignment=79]="LastCompoundAssignment",e[e.FirstReservedWord=83]="FirstReservedWord",e[e.LastReservedWord=118]="LastReservedWord",e[e.FirstKeyword=83]="FirstKeyword",e[e.LastKeyword=166]="LastKeyword",e[e.FirstFutureReservedWord=119]="FirstFutureReservedWord",e[e.LastFutureReservedWord=127]="LastFutureReservedWord",e[e.FirstTypeNode=183]="FirstTypeNode",e[e.LastTypeNode=206]="LastTypeNode",e[e.FirstPunctuation=19]="FirstPunctuation",e[e.LastPunctuation=79]="LastPunctuation",e[e.FirstToken=0]="FirstToken",e[e.LastToken=166]="LastToken",e[e.FirstTriviaToken=2]="FirstTriviaToken",e[e.LastTriviaToken=7]="LastTriviaToken",e[e.FirstLiteralToken=9]="FirstLiteralToken",e[e.LastLiteralToken=15]="LastLiteralToken",e[e.FirstTemplateToken=15]="FirstTemplateToken",e[e.LastTemplateToken=18]="LastTemplateToken",e[e.FirstBinaryOperator=30]="FirstBinaryOperator",e[e.LastBinaryOperator=79]="LastBinaryOperator",e[e.FirstStatement=244]="FirstStatement",e[e.LastStatement=260]="LastStatement",e[e.FirstNode=167]="FirstNode",e[e.FirstJSDocNode=310]="FirstJSDocNode",e[e.LastJSDocNode=352]="LastJSDocNode",e[e.FirstJSDocTagNode=328]="FirstJSDocTagNode",e[e.LastJSDocTagNode=352]="LastJSDocTagNode",e[e.FirstContextualKeyword=128]="FirstContextualKeyword",e[e.LastContextualKeyword=166]="LastContextualKeyword",e))(fr||{}),mr=(e=>(e[e.None=0]="None",e[e.Let=1]="Let",e[e.Const=2]="Const",e[e.Using=4]="Using",e[e.AwaitUsing=6]="AwaitUsing",e[e.NestedNamespace=8]="NestedNamespace",e[e.Synthesized=16]="Synthesized",e[e.Namespace=32]="Namespace",e[e.OptionalChain=64]="OptionalChain",e[e.ExportContext=128]="ExportContext",e[e.ContainsThis=256]="ContainsThis",e[e.HasImplicitReturn=512]="HasImplicitReturn",e[e.HasExplicitReturn=1024]="HasExplicitReturn",e[e.GlobalAugmentation=2048]="GlobalAugmentation",e[e.HasAsyncFunctions=4096]="HasAsyncFunctions",e[e.DisallowInContext=8192]="DisallowInContext",e[e.YieldContext=16384]="YieldContext",e[e.DecoratorContext=32768]="DecoratorContext",e[e.AwaitContext=65536]="AwaitContext",e[e.DisallowConditionalTypesContext=131072]="DisallowConditionalTypesContext",e[e.ThisNodeHasError=262144]="ThisNodeHasError",e[e.JavaScriptFile=524288]="JavaScriptFile",e[e.ThisNodeOrAnySubNodesHasError=1048576]="ThisNodeOrAnySubNodesHasError",e[e.HasAggregatedChildData=2097152]="HasAggregatedChildData",e[e.PossiblyContainsDynamicImport=4194304]="PossiblyContainsDynamicImport",e[e.PossiblyContainsImportMeta=8388608]="PossiblyContainsImportMeta",e[e.JSDoc=16777216]="JSDoc",e[e.Ambient=33554432]="Ambient",e[e.InWithStatement=67108864]="InWithStatement",e[e.JsonFile=134217728]="JsonFile",e[e.TypeCached=268435456]="TypeCached",e[e.Deprecated=536870912]="Deprecated",e[e.BlockScoped=7]="BlockScoped",e[e.Constant=6]="Constant",e[e.ReachabilityCheckFlags=1536]="ReachabilityCheckFlags",e[e.ReachabilityAndEmitFlags=5632]="ReachabilityAndEmitFlags",e[e.ContextFlags=101441536]="ContextFlags",e[e.TypeExcludesFlags=81920]="TypeExcludesFlags",e[e.PermanentlySetIncrementalFlags=12582912]="PermanentlySetIncrementalFlags",e[e.IdentifierHasExtendedUnicodeEscape=256]="IdentifierHasExtendedUnicodeEscape",e[e.IdentifierIsInJSDocNamespace=4096]="IdentifierIsInJSDocNamespace",e))(mr||{}),gr=(e=>(e[e.None=0]="None",e[e.Public=1]="Public",e[e.Private=2]="Private",e[e.Protected=4]="Protected",e[e.Readonly=8]="Readonly",e[e.Override=16]="Override",e[e.Export=32]="Export",e[e.Abstract=64]="Abstract",e[e.Ambient=128]="Ambient",e[e.Static=256]="Static",e[e.Accessor=512]="Accessor",e[e.Async=1024]="Async",e[e.Default=2048]="Default",e[e.Const=4096]="Const",e[e.In=8192]="In",e[e.Out=16384]="Out",e[e.Decorator=32768]="Decorator",e[e.Deprecated=65536]="Deprecated",e[e.JSDocPublic=8388608]="JSDocPublic",e[e.JSDocPrivate=16777216]="JSDocPrivate",e[e.JSDocProtected=33554432]="JSDocProtected",e[e.JSDocReadonly=67108864]="JSDocReadonly",e[e.JSDocOverride=134217728]="JSDocOverride",e[e.SyntacticOrJSDocModifiers=31]="SyntacticOrJSDocModifiers",e[e.SyntacticOnlyModifiers=65504]="SyntacticOnlyModifiers",e[e.SyntacticModifiers=65535]="SyntacticModifiers",e[e.JSDocCacheOnlyModifiers=260046848]="JSDocCacheOnlyModifiers",e[e.JSDocOnlyModifiers=65536]="JSDocOnlyModifiers",e[e.NonCacheOnlyModifiers=131071]="NonCacheOnlyModifiers",e[e.HasComputedJSDocModifiers=268435456]="HasComputedJSDocModifiers",e[e.HasComputedFlags=536870912]="HasComputedFlags",e[e.AccessibilityModifier=7]="AccessibilityModifier",e[e.ParameterPropertyModifier=31]="ParameterPropertyModifier",e[e.NonPublicAccessibilityModifier=6]="NonPublicAccessibilityModifier",e[e.TypeScriptModifier=28895]="TypeScriptModifier",e[e.ExportDefault=2080]="ExportDefault",e[e.All=131071]="All",e[e.Modifier=98303]="Modifier",e))(gr||{}),hr=(e=>(e[e.None=0]="None",e[e.IntrinsicNamedElement=1]="IntrinsicNamedElement",e[e.IntrinsicIndexedElement=2]="IntrinsicIndexedElement",e[e.IntrinsicElement=3]="IntrinsicElement",e))(hr||{}),yr=(e=>(e[e.None=0]="None",e[e.Succeeded=1]="Succeeded",e[e.Failed=2]="Failed",e[e.ReportsUnmeasurable=8]="ReportsUnmeasurable",e[e.ReportsUnreliable=16]="ReportsUnreliable",e[e.ReportsMask=24]="ReportsMask",e[e.ComplexityOverflow=32]="ComplexityOverflow",e[e.StackDepthOverflow=64]="StackDepthOverflow",e[e.Overflow=96]="Overflow",e))(yr||{}),vr=(e=>(e[e.None=0]="None",e[e.Always=1]="Always",e[e.Never=2]="Never",e[e.Sometimes=3]="Sometimes",e))(vr||{}),br=(e=>(e[e.None=0]="None",e[e.Auto=1]="Auto",e[e.Loop=2]="Loop",e[e.Unique=3]="Unique",e[e.Node=4]="Node",e[e.KindMask=7]="KindMask",e[e.ReservedInNestedScopes=8]="ReservedInNestedScopes",e[e.Optimistic=16]="Optimistic",e[e.FileLevel=32]="FileLevel",e[e.AllowNameSubstitution=64]="AllowNameSubstitution",e))(br||{}),xr=(e=>(e[e.None=0]="None",e[e.HasIndices=1]="HasIndices",e[e.Global=2]="Global",e[e.IgnoreCase=4]="IgnoreCase",e[e.Multiline=8]="Multiline",e[e.DotAll=16]="DotAll",e[e.Unicode=32]="Unicode",e[e.UnicodeSets=64]="UnicodeSets",e[e.Sticky=128]="Sticky",e[e.AnyUnicodeMode=96]="AnyUnicodeMode",e[e.Modifiers=28]="Modifiers",e))(xr||{}),kr=(e=>(e[e.None=0]="None",e[e.PrecedingLineBreak=1]="PrecedingLineBreak",e[e.PrecedingJSDocComment=2]="PrecedingJSDocComment",e[e.Unterminated=4]="Unterminated",e[e.ExtendedUnicodeEscape=8]="ExtendedUnicodeEscape",e[e.Scientific=16]="Scientific",e[e.Octal=32]="Octal",e[e.HexSpecifier=64]="HexSpecifier",e[e.BinarySpecifier=128]="BinarySpecifier",e[e.OctalSpecifier=256]="OctalSpecifier",e[e.ContainsSeparator=512]="ContainsSeparator",e[e.UnicodeEscape=1024]="UnicodeEscape",e[e.ContainsInvalidEscape=2048]="ContainsInvalidEscape",e[e.HexEscape=4096]="HexEscape",e[e.ContainsLeadingZero=8192]="ContainsLeadingZero",e[e.ContainsInvalidSeparator=16384]="ContainsInvalidSeparator",e[e.PrecedingJSDocLeadingAsterisks=32768]="PrecedingJSDocLeadingAsterisks",e[e.BinaryOrOctalSpecifier=384]="BinaryOrOctalSpecifier",e[e.WithSpecifier=448]="WithSpecifier",e[e.StringLiteralFlags=7176]="StringLiteralFlags",e[e.NumericLiteralFlags=25584]="NumericLiteralFlags",e[e.TemplateLiteralLikeFlags=7176]="TemplateLiteralLikeFlags",e[e.IsInvalid=26656]="IsInvalid",e))(kr||{}),Sr=(e=>(e[e.Unreachable=1]="Unreachable",e[e.Start=2]="Start",e[e.BranchLabel=4]="BranchLabel",e[e.LoopLabel=8]="LoopLabel",e[e.Assignment=16]="Assignment",e[e.TrueCondition=32]="TrueCondition",e[e.FalseCondition=64]="FalseCondition",e[e.SwitchClause=128]="SwitchClause",e[e.ArrayMutation=256]="ArrayMutation",e[e.Call=512]="Call",e[e.ReduceLabel=1024]="ReduceLabel",e[e.Referenced=2048]="Referenced",e[e.Shared=4096]="Shared",e[e.Label=12]="Label",e[e.Condition=96]="Condition",e))(Sr||{}),Tr=(e=>(e[e.ExpectError=0]="ExpectError",e[e.Ignore=1]="Ignore",e))(Tr||{}),Cr=class{},wr=(e=>(e[e.RootFile=0]="RootFile",e[e.SourceFromProjectReference=1]="SourceFromProjectReference",e[e.OutputFromProjectReference=2]="OutputFromProjectReference",e[e.Import=3]="Import",e[e.ReferenceFile=4]="ReferenceFile",e[e.TypeReferenceDirective=5]="TypeReferenceDirective",e[e.LibFile=6]="LibFile",e[e.LibReferenceDirective=7]="LibReferenceDirective",e[e.AutomaticTypeDirectiveFile=8]="AutomaticTypeDirectiveFile",e))(wr||{}),Nr=(e=>(e[e.FilePreprocessingLibReferenceDiagnostic=0]="FilePreprocessingLibReferenceDiagnostic",e[e.FilePreprocessingFileExplainingDiagnostic=1]="FilePreprocessingFileExplainingDiagnostic",e[e.ResolutionDiagnostics=2]="ResolutionDiagnostics",e))(Nr||{}),Dr=(e=>(e[e.Js=0]="Js",e[e.Dts=1]="Dts",e[e.BuilderSignature=2]="BuilderSignature",e))(Dr||{}),Fr=(e=>(e[e.Not=0]="Not",e[e.SafeModules=1]="SafeModules",e[e.Completely=2]="Completely",e))(Fr||{}),Er=(e=>(e[e.Success=0]="Success",e[e.DiagnosticsPresent_OutputsSkipped=1]="DiagnosticsPresent_OutputsSkipped",e[e.DiagnosticsPresent_OutputsGenerated=2]="DiagnosticsPresent_OutputsGenerated",e[e.InvalidProject_OutputsSkipped=3]="InvalidProject_OutputsSkipped",e[e.ProjectReferenceCycle_OutputsSkipped=4]="ProjectReferenceCycle_OutputsSkipped",e))(Er||{}),Pr=(e=>(e[e.Ok=0]="Ok",e[e.NeedsOverride=1]="NeedsOverride",e[e.HasInvalidOverride=2]="HasInvalidOverride",e))(Pr||{}),Ar=(e=>(e[e.None=0]="None",e[e.Literal=1]="Literal",e[e.Subtype=2]="Subtype",e))(Ar||{}),Ir=(e=>(e[e.None=0]="None",e[e.NoSupertypeReduction=1]="NoSupertypeReduction",e[e.NoConstraintReduction=2]="NoConstraintReduction",e))(Ir||{}),Or=(e=>(e[e.None=0]="None",e[e.Signature=1]="Signature",e[e.NoConstraints=2]="NoConstraints",e[e.Completions=4]="Completions",e[e.SkipBindingPatterns=8]="SkipBindingPatterns",e))(Or||{}),Lr=(e=>(e[e.None=0]="None",e[e.NoTruncation=1]="NoTruncation",e[e.WriteArrayAsGenericType=2]="WriteArrayAsGenericType",e[e.GenerateNamesForShadowedTypeParams=4]="GenerateNamesForShadowedTypeParams",e[e.UseStructuralFallback=8]="UseStructuralFallback",e[e.ForbidIndexedAccessSymbolReferences=16]="ForbidIndexedAccessSymbolReferences",e[e.WriteTypeArgumentsOfSignature=32]="WriteTypeArgumentsOfSignature",e[e.UseFullyQualifiedType=64]="UseFullyQualifiedType",e[e.UseOnlyExternalAliasing=128]="UseOnlyExternalAliasing",e[e.SuppressAnyReturnType=256]="SuppressAnyReturnType",e[e.WriteTypeParametersInQualifiedName=512]="WriteTypeParametersInQualifiedName",e[e.MultilineObjectLiterals=1024]="MultilineObjectLiterals",e[e.WriteClassExpressionAsTypeLiteral=2048]="WriteClassExpressionAsTypeLiteral",e[e.UseTypeOfFunction=4096]="UseTypeOfFunction",e[e.OmitParameterModifiers=8192]="OmitParameterModifiers",e[e.UseAliasDefinedOutsideCurrentScope=16384]="UseAliasDefinedOutsideCurrentScope",e[e.UseSingleQuotesForStringLiteralType=268435456]="UseSingleQuotesForStringLiteralType",e[e.NoTypeReduction=536870912]="NoTypeReduction",e[e.OmitThisParameter=33554432]="OmitThisParameter",e[e.AllowThisInObjectLiteral=32768]="AllowThisInObjectLiteral",e[e.AllowQualifiedNameInPlaceOfIdentifier=65536]="AllowQualifiedNameInPlaceOfIdentifier",e[e.AllowAnonymousIdentifier=131072]="AllowAnonymousIdentifier",e[e.AllowEmptyUnionOrIntersection=262144]="AllowEmptyUnionOrIntersection",e[e.AllowEmptyTuple=524288]="AllowEmptyTuple",e[e.AllowUniqueESSymbolType=1048576]="AllowUniqueESSymbolType",e[e.AllowEmptyIndexInfoType=2097152]="AllowEmptyIndexInfoType",e[e.AllowNodeModulesRelativePaths=67108864]="AllowNodeModulesRelativePaths",e[e.IgnoreErrors=70221824]="IgnoreErrors",e[e.InObjectTypeLiteral=4194304]="InObjectTypeLiteral",e[e.InTypeAlias=8388608]="InTypeAlias",e[e.InInitialEntityName=16777216]="InInitialEntityName",e))(Lr||{}),jr=(e=>(e[e.None=0]="None",e[e.WriteComputedProps=1]="WriteComputedProps",e[e.NoSyntacticPrinter=2]="NoSyntacticPrinter",e[e.DoNotIncludeSymbolChain=4]="DoNotIncludeSymbolChain",e[e.AllowUnresolvedNames=8]="AllowUnresolvedNames",e))(jr||{}),Mr=(e=>(e[e.None=0]="None",e[e.NoTruncation=1]="NoTruncation",e[e.WriteArrayAsGenericType=2]="WriteArrayAsGenericType",e[e.GenerateNamesForShadowedTypeParams=4]="GenerateNamesForShadowedTypeParams",e[e.UseStructuralFallback=8]="UseStructuralFallback",e[e.WriteTypeArgumentsOfSignature=32]="WriteTypeArgumentsOfSignature",e[e.UseFullyQualifiedType=64]="UseFullyQualifiedType",e[e.SuppressAnyReturnType=256]="SuppressAnyReturnType",e[e.MultilineObjectLiterals=1024]="MultilineObjectLiterals",e[e.WriteClassExpressionAsTypeLiteral=2048]="WriteClassExpressionAsTypeLiteral",e[e.UseTypeOfFunction=4096]="UseTypeOfFunction",e[e.OmitParameterModifiers=8192]="OmitParameterModifiers",e[e.UseAliasDefinedOutsideCurrentScope=16384]="UseAliasDefinedOutsideCurrentScope",e[e.UseSingleQuotesForStringLiteralType=268435456]="UseSingleQuotesForStringLiteralType",e[e.NoTypeReduction=536870912]="NoTypeReduction",e[e.OmitThisParameter=33554432]="OmitThisParameter",e[e.AllowUniqueESSymbolType=1048576]="AllowUniqueESSymbolType",e[e.AddUndefined=131072]="AddUndefined",e[e.WriteArrowStyleSignature=262144]="WriteArrowStyleSignature",e[e.InArrayType=524288]="InArrayType",e[e.InElementType=2097152]="InElementType",e[e.InFirstTypeArgument=4194304]="InFirstTypeArgument",e[e.InTypeAlias=8388608]="InTypeAlias",e[e.NodeBuilderFlagsMask=848330095]="NodeBuilderFlagsMask",e))(Mr||{}),Rr=(e=>(e[e.None=0]="None",e[e.WriteTypeParametersOrArguments=1]="WriteTypeParametersOrArguments",e[e.UseOnlyExternalAliasing=2]="UseOnlyExternalAliasing",e[e.AllowAnyNodeKind=4]="AllowAnyNodeKind",e[e.UseAliasDefinedOutsideCurrentScope=8]="UseAliasDefinedOutsideCurrentScope",e[e.WriteComputedProps=16]="WriteComputedProps",e[e.DoNotIncludeSymbolChain=32]="DoNotIncludeSymbolChain",e))(Rr||{}),Br=(e=>(e[e.Accessible=0]="Accessible",e[e.NotAccessible=1]="NotAccessible",e[e.CannotBeNamed=2]="CannotBeNamed",e[e.NotResolved=3]="NotResolved",e))(Br||{}),Jr=(e=>(e[e.This=0]="This",e[e.Identifier=1]="Identifier",e[e.AssertsThis=2]="AssertsThis",e[e.AssertsIdentifier=3]="AssertsIdentifier",e))(Jr||{}),zr=(e=>(e[e.Unknown=0]="Unknown",e[e.TypeWithConstructSignatureAndValue=1]="TypeWithConstructSignatureAndValue",e[e.VoidNullableOrNeverType=2]="VoidNullableOrNeverType",e[e.NumberLikeType=3]="NumberLikeType",e[e.BigIntLikeType=4]="BigIntLikeType",e[e.StringLikeType=5]="StringLikeType",e[e.BooleanType=6]="BooleanType",e[e.ArrayLikeType=7]="ArrayLikeType",e[e.ESSymbolType=8]="ESSymbolType",e[e.Promise=9]="Promise",e[e.TypeWithCallSignature=10]="TypeWithCallSignature",e[e.ObjectType=11]="ObjectType",e))(zr||{}),qr=(e=>(e[e.None=0]="None",e[e.FunctionScopedVariable=1]="FunctionScopedVariable",e[e.BlockScopedVariable=2]="BlockScopedVariable",e[e.Property=4]="Property",e[e.EnumMember=8]="EnumMember",e[e.Function=16]="Function",e[e.Class=32]="Class",e[e.Interface=64]="Interface",e[e.ConstEnum=128]="ConstEnum",e[e.RegularEnum=256]="RegularEnum",e[e.ValueModule=512]="ValueModule",e[e.NamespaceModule=1024]="NamespaceModule",e[e.TypeLiteral=2048]="TypeLiteral",e[e.ObjectLiteral=4096]="ObjectLiteral",e[e.Method=8192]="Method",e[e.Constructor=16384]="Constructor",e[e.GetAccessor=32768]="GetAccessor",e[e.SetAccessor=65536]="SetAccessor",e[e.Signature=131072]="Signature",e[e.TypeParameter=262144]="TypeParameter",e[e.TypeAlias=524288]="TypeAlias",e[e.ExportValue=1048576]="ExportValue",e[e.Alias=2097152]="Alias",e[e.Prototype=4194304]="Prototype",e[e.ExportStar=8388608]="ExportStar",e[e.Optional=16777216]="Optional",e[e.Transient=33554432]="Transient",e[e.Assignment=67108864]="Assignment",e[e.ModuleExports=134217728]="ModuleExports",e[e.All=-1]="All",e[e.Enum=384]="Enum",e[e.Variable=3]="Variable",e[e.Value=111551]="Value",e[e.Type=788968]="Type",e[e.Namespace=1920]="Namespace",e[e.Module=1536]="Module",e[e.Accessor=98304]="Accessor",e[e.FunctionScopedVariableExcludes=111550]="FunctionScopedVariableExcludes",e[e.BlockScopedVariableExcludes=111551]="BlockScopedVariableExcludes",e[e.ParameterExcludes=111551]="ParameterExcludes",e[e.PropertyExcludes=0]="PropertyExcludes",e[e.EnumMemberExcludes=900095]="EnumMemberExcludes",e[e.FunctionExcludes=110991]="FunctionExcludes",e[e.ClassExcludes=899503]="ClassExcludes",e[e.InterfaceExcludes=788872]="InterfaceExcludes",e[e.RegularEnumExcludes=899327]="RegularEnumExcludes",e[e.ConstEnumExcludes=899967]="ConstEnumExcludes",e[e.ValueModuleExcludes=110735]="ValueModuleExcludes",e[e.NamespaceModuleExcludes=0]="NamespaceModuleExcludes",e[e.MethodExcludes=103359]="MethodExcludes",e[e.GetAccessorExcludes=46015]="GetAccessorExcludes",e[e.SetAccessorExcludes=78783]="SetAccessorExcludes",e[e.AccessorExcludes=13247]="AccessorExcludes",e[e.TypeParameterExcludes=526824]="TypeParameterExcludes",e[e.TypeAliasExcludes=788968]="TypeAliasExcludes",e[e.AliasExcludes=2097152]="AliasExcludes",e[e.ModuleMember=2623475]="ModuleMember",e[e.ExportHasLocal=944]="ExportHasLocal",e[e.BlockScoped=418]="BlockScoped",e[e.PropertyOrAccessor=98308]="PropertyOrAccessor",e[e.ClassMember=106500]="ClassMember",e[e.ExportSupportsDefaultModifier=112]="ExportSupportsDefaultModifier",e[e.ExportDoesNotSupportDefaultModifier=-113]="ExportDoesNotSupportDefaultModifier",e[e.Classifiable=2885600]="Classifiable",e[e.LateBindingContainer=6256]="LateBindingContainer",e))(qr||{}),Ur=(e=>(e[e.None=0]="None",e[e.Instantiated=1]="Instantiated",e[e.SyntheticProperty=2]="SyntheticProperty",e[e.SyntheticMethod=4]="SyntheticMethod",e[e.Readonly=8]="Readonly",e[e.ReadPartial=16]="ReadPartial",e[e.WritePartial=32]="WritePartial",e[e.HasNonUniformType=64]="HasNonUniformType",e[e.HasLiteralType=128]="HasLiteralType",e[e.ContainsPublic=256]="ContainsPublic",e[e.ContainsProtected=512]="ContainsProtected",e[e.ContainsPrivate=1024]="ContainsPrivate",e[e.ContainsStatic=2048]="ContainsStatic",e[e.Late=4096]="Late",e[e.ReverseMapped=8192]="ReverseMapped",e[e.OptionalParameter=16384]="OptionalParameter",e[e.RestParameter=32768]="RestParameter",e[e.DeferredType=65536]="DeferredType",e[e.HasNeverType=131072]="HasNeverType",e[e.Mapped=262144]="Mapped",e[e.StripOptional=524288]="StripOptional",e[e.Unresolved=1048576]="Unresolved",e[e.Synthetic=6]="Synthetic",e[e.Discriminant=192]="Discriminant",e[e.Partial=48]="Partial",e))(Ur||{}),Vr=(e=>(e.Call="__call",e.Constructor="__constructor",e.New="__new",e.Index="__index",e.ExportStar="__export",e.Global="__global",e.Missing="__missing",e.Type="__type",e.Object="__object",e.JSXAttributes="__jsxAttributes",e.Class="__class",e.Function="__function",e.Computed="__computed",e.Resolving="__resolving__",e.ExportEquals="export=",e.Default="default",e.This="this",e.InstantiationExpression="__instantiationExpression",e.ImportAttributes="__importAttributes",e))(Vr||{}),Wr=(e=>(e[e.None=0]="None",e[e.TypeChecked=1]="TypeChecked",e[e.LexicalThis=2]="LexicalThis",e[e.CaptureThis=4]="CaptureThis",e[e.CaptureNewTarget=8]="CaptureNewTarget",e[e.SuperInstance=16]="SuperInstance",e[e.SuperStatic=32]="SuperStatic",e[e.ContextChecked=64]="ContextChecked",e[e.MethodWithSuperPropertyAccessInAsync=128]="MethodWithSuperPropertyAccessInAsync",e[e.MethodWithSuperPropertyAssignmentInAsync=256]="MethodWithSuperPropertyAssignmentInAsync",e[e.CaptureArguments=512]="CaptureArguments",e[e.EnumValuesComputed=1024]="EnumValuesComputed",e[e.LexicalModuleMergesWithClass=2048]="LexicalModuleMergesWithClass",e[e.LoopWithCapturedBlockScopedBinding=4096]="LoopWithCapturedBlockScopedBinding",e[e.ContainsCapturedBlockScopeBinding=8192]="ContainsCapturedBlockScopeBinding",e[e.CapturedBlockScopedBinding=16384]="CapturedBlockScopedBinding",e[e.BlockScopedBindingInLoop=32768]="BlockScopedBindingInLoop",e[e.NeedsLoopOutParameter=65536]="NeedsLoopOutParameter",e[e.AssignmentsMarked=131072]="AssignmentsMarked",e[e.ContainsConstructorReference=262144]="ContainsConstructorReference",e[e.ConstructorReference=536870912]="ConstructorReference",e[e.ContainsClassWithPrivateIdentifiers=1048576]="ContainsClassWithPrivateIdentifiers",e[e.ContainsSuperPropertyInStaticInitializer=2097152]="ContainsSuperPropertyInStaticInitializer",e[e.InCheckIdentifier=4194304]="InCheckIdentifier",e[e.PartiallyTypeChecked=8388608]="PartiallyTypeChecked",e[e.LazyFlags=539358128]="LazyFlags",e))(Wr||{}),$r=(e=>(e[e.Any=1]="Any",e[e.Unknown=2]="Unknown",e[e.String=4]="String",e[e.Number=8]="Number",e[e.Boolean=16]="Boolean",e[e.Enum=32]="Enum",e[e.BigInt=64]="BigInt",e[e.StringLiteral=128]="StringLiteral",e[e.NumberLiteral=256]="NumberLiteral",e[e.BooleanLiteral=512]="BooleanLiteral",e[e.EnumLiteral=1024]="EnumLiteral",e[e.BigIntLiteral=2048]="BigIntLiteral",e[e.ESSymbol=4096]="ESSymbol",e[e.UniqueESSymbol=8192]="UniqueESSymbol",e[e.Void=16384]="Void",e[e.Undefined=32768]="Undefined",e[e.Null=65536]="Null",e[e.Never=131072]="Never",e[e.TypeParameter=262144]="TypeParameter",e[e.Object=524288]="Object",e[e.Union=1048576]="Union",e[e.Intersection=2097152]="Intersection",e[e.Index=4194304]="Index",e[e.IndexedAccess=8388608]="IndexedAccess",e[e.Conditional=16777216]="Conditional",e[e.Substitution=33554432]="Substitution",e[e.NonPrimitive=67108864]="NonPrimitive",e[e.TemplateLiteral=134217728]="TemplateLiteral",e[e.StringMapping=268435456]="StringMapping",e[e.Reserved1=536870912]="Reserved1",e[e.Reserved2=1073741824]="Reserved2",e[e.AnyOrUnknown=3]="AnyOrUnknown",e[e.Nullable=98304]="Nullable",e[e.Literal=2944]="Literal",e[e.Unit=109472]="Unit",e[e.Freshable=2976]="Freshable",e[e.StringOrNumberLiteral=384]="StringOrNumberLiteral",e[e.StringOrNumberLiteralOrUnique=8576]="StringOrNumberLiteralOrUnique",e[e.DefinitelyFalsy=117632]="DefinitelyFalsy",e[e.PossiblyFalsy=117724]="PossiblyFalsy",e[e.Intrinsic=67359327]="Intrinsic",e[e.StringLike=402653316]="StringLike",e[e.NumberLike=296]="NumberLike",e[e.BigIntLike=2112]="BigIntLike",e[e.BooleanLike=528]="BooleanLike",e[e.EnumLike=1056]="EnumLike",e[e.ESSymbolLike=12288]="ESSymbolLike",e[e.VoidLike=49152]="VoidLike",e[e.Primitive=402784252]="Primitive",e[e.DefinitelyNonNullable=470302716]="DefinitelyNonNullable",e[e.DisjointDomains=469892092]="DisjointDomains",e[e.UnionOrIntersection=3145728]="UnionOrIntersection",e[e.StructuredType=3670016]="StructuredType",e[e.TypeVariable=8650752]="TypeVariable",e[e.InstantiableNonPrimitive=58982400]="InstantiableNonPrimitive",e[e.InstantiablePrimitive=406847488]="InstantiablePrimitive",e[e.Instantiable=465829888]="Instantiable",e[e.StructuredOrInstantiable=469499904]="StructuredOrInstantiable",e[e.ObjectFlagsType=3899393]="ObjectFlagsType",e[e.Simplifiable=25165824]="Simplifiable",e[e.Singleton=67358815]="Singleton",e[e.Narrowable=536624127]="Narrowable",e[e.IncludesMask=473694207]="IncludesMask",e[e.IncludesMissingType=262144]="IncludesMissingType",e[e.IncludesNonWideningType=4194304]="IncludesNonWideningType",e[e.IncludesWildcard=8388608]="IncludesWildcard",e[e.IncludesEmptyObject=16777216]="IncludesEmptyObject",e[e.IncludesInstantiable=33554432]="IncludesInstantiable",e[e.IncludesConstrainedTypeVariable=536870912]="IncludesConstrainedTypeVariable",e[e.IncludesError=1073741824]="IncludesError",e[e.NotPrimitiveUnion=36323331]="NotPrimitiveUnion",e))($r||{}),Hr=(e=>(e[e.None=0]="None",e[e.Class=1]="Class",e[e.Interface=2]="Interface",e[e.Reference=4]="Reference",e[e.Tuple=8]="Tuple",e[e.Anonymous=16]="Anonymous",e[e.Mapped=32]="Mapped",e[e.Instantiated=64]="Instantiated",e[e.ObjectLiteral=128]="ObjectLiteral",e[e.EvolvingArray=256]="EvolvingArray",e[e.ObjectLiteralPatternWithComputedProperties=512]="ObjectLiteralPatternWithComputedProperties",e[e.ReverseMapped=1024]="ReverseMapped",e[e.JsxAttributes=2048]="JsxAttributes",e[e.JSLiteral=4096]="JSLiteral",e[e.FreshLiteral=8192]="FreshLiteral",e[e.ArrayLiteral=16384]="ArrayLiteral",e[e.PrimitiveUnion=32768]="PrimitiveUnion",e[e.ContainsWideningType=65536]="ContainsWideningType",e[e.ContainsObjectOrArrayLiteral=131072]="ContainsObjectOrArrayLiteral",e[e.NonInferrableType=262144]="NonInferrableType",e[e.CouldContainTypeVariablesComputed=524288]="CouldContainTypeVariablesComputed",e[e.CouldContainTypeVariables=1048576]="CouldContainTypeVariables",e[e.SingleSignatureType=134217728]="SingleSignatureType",e[e.ClassOrInterface=3]="ClassOrInterface",e[e.RequiresWidening=196608]="RequiresWidening",e[e.PropagatingFlags=458752]="PropagatingFlags",e[e.InstantiatedMapped=96]="InstantiatedMapped",e[e.ObjectTypeKindMask=1343]="ObjectTypeKindMask",e[e.ContainsSpread=2097152]="ContainsSpread",e[e.ObjectRestType=4194304]="ObjectRestType",e[e.InstantiationExpressionType=8388608]="InstantiationExpressionType",e[e.IsClassInstanceClone=16777216]="IsClassInstanceClone",e[e.IdenticalBaseTypeCalculated=33554432]="IdenticalBaseTypeCalculated",e[e.IdenticalBaseTypeExists=67108864]="IdenticalBaseTypeExists",e[e.IsGenericTypeComputed=2097152]="IsGenericTypeComputed",e[e.IsGenericObjectType=4194304]="IsGenericObjectType",e[e.IsGenericIndexType=8388608]="IsGenericIndexType",e[e.IsGenericType=12582912]="IsGenericType",e[e.ContainsIntersections=16777216]="ContainsIntersections",e[e.IsUnknownLikeUnionComputed=33554432]="IsUnknownLikeUnionComputed",e[e.IsUnknownLikeUnion=67108864]="IsUnknownLikeUnion",e[e.IsNeverIntersectionComputed=16777216]="IsNeverIntersectionComputed",e[e.IsNeverIntersection=33554432]="IsNeverIntersection",e[e.IsConstrainedTypeVariable=67108864]="IsConstrainedTypeVariable",e))(Hr||{}),Kr=(e=>(e[e.Invariant=0]="Invariant",e[e.Covariant=1]="Covariant",e[e.Contravariant=2]="Contravariant",e[e.Bivariant=3]="Bivariant",e[e.Independent=4]="Independent",e[e.VarianceMask=7]="VarianceMask",e[e.Unmeasurable=8]="Unmeasurable",e[e.Unreliable=16]="Unreliable",e[e.AllowsStructuralFallback=24]="AllowsStructuralFallback",e))(Kr||{}),Gr=(e=>(e[e.Required=1]="Required",e[e.Optional=2]="Optional",e[e.Rest=4]="Rest",e[e.Variadic=8]="Variadic",e[e.Fixed=3]="Fixed",e[e.Variable=12]="Variable",e[e.NonRequired=14]="NonRequired",e[e.NonRest=11]="NonRest",e))(Gr||{}),Xr=(e=>(e[e.None=0]="None",e[e.IncludeUndefined=1]="IncludeUndefined",e[e.NoIndexSignatures=2]="NoIndexSignatures",e[e.Writing=4]="Writing",e[e.CacheSymbol=8]="CacheSymbol",e[e.AllowMissing=16]="AllowMissing",e[e.ExpressionPosition=32]="ExpressionPosition",e[e.ReportDeprecated=64]="ReportDeprecated",e[e.SuppressNoImplicitAnyError=128]="SuppressNoImplicitAnyError",e[e.Contextual=256]="Contextual",e[e.Persistent=1]="Persistent",e))(Xr||{}),Qr=(e=>(e[e.None=0]="None",e[e.StringsOnly=1]="StringsOnly",e[e.NoIndexSignatures=2]="NoIndexSignatures",e[e.NoReducibleCheck=4]="NoReducibleCheck",e))(Qr||{}),Yr=(e=>(e[e.Component=0]="Component",e[e.Function=1]="Function",e[e.Mixed=2]="Mixed",e))(Yr||{}),Zr=(e=>(e[e.Call=0]="Call",e[e.Construct=1]="Construct",e))(Zr||{}),ei=(e=>(e[e.None=0]="None",e[e.HasRestParameter=1]="HasRestParameter",e[e.HasLiteralTypes=2]="HasLiteralTypes",e[e.Abstract=4]="Abstract",e[e.IsInnerCallChain=8]="IsInnerCallChain",e[e.IsOuterCallChain=16]="IsOuterCallChain",e[e.IsUntypedSignatureInJSFile=32]="IsUntypedSignatureInJSFile",e[e.IsNonInferrable=64]="IsNonInferrable",e[e.IsSignatureCandidateForOverloadFailure=128]="IsSignatureCandidateForOverloadFailure",e[e.PropagatingFlags=167]="PropagatingFlags",e[e.CallChainFlags=24]="CallChainFlags",e))(ei||{}),ti=(e=>(e[e.String=0]="String",e[e.Number=1]="Number",e))(ti||{}),ni=(e=>(e[e.Simple=0]="Simple",e[e.Array=1]="Array",e[e.Deferred=2]="Deferred",e[e.Function=3]="Function",e[e.Composite=4]="Composite",e[e.Merged=5]="Merged",e))(ni||{}),ri=(e=>(e[e.None=0]="None",e[e.NakedTypeVariable=1]="NakedTypeVariable",e[e.SpeculativeTuple=2]="SpeculativeTuple",e[e.SubstituteSource=4]="SubstituteSource",e[e.HomomorphicMappedType=8]="HomomorphicMappedType",e[e.PartialHomomorphicMappedType=16]="PartialHomomorphicMappedType",e[e.MappedTypeConstraint=32]="MappedTypeConstraint",e[e.ContravariantConditional=64]="ContravariantConditional",e[e.ReturnType=128]="ReturnType",e[e.LiteralKeyof=256]="LiteralKeyof",e[e.NoConstraints=512]="NoConstraints",e[e.AlwaysStrict=1024]="AlwaysStrict",e[e.MaxValue=2048]="MaxValue",e[e.PriorityImpliesCombination=416]="PriorityImpliesCombination",e[e.Circularity=-1]="Circularity",e))(ri||{}),ii=(e=>(e[e.None=0]="None",e[e.NoDefault=1]="NoDefault",e[e.AnyDefault=2]="AnyDefault",e[e.SkippedGenericFunction=4]="SkippedGenericFunction",e))(ii||{}),oi=(e=>(e[e.False=0]="False",e[e.Unknown=1]="Unknown",e[e.Maybe=3]="Maybe",e[e.True=-1]="True",e))(oi||{}),ai=(e=>(e[e.None=0]="None",e[e.ExportsProperty=1]="ExportsProperty",e[e.ModuleExports=2]="ModuleExports",e[e.PrototypeProperty=3]="PrototypeProperty",e[e.ThisProperty=4]="ThisProperty",e[e.Property=5]="Property",e[e.Prototype=6]="Prototype",e[e.ObjectDefinePropertyValue=7]="ObjectDefinePropertyValue",e[e.ObjectDefinePropertyExports=8]="ObjectDefinePropertyExports",e[e.ObjectDefinePrototypeProperty=9]="ObjectDefinePrototypeProperty",e))(ai||{}),si=(e=>(e[e.Warning=0]="Warning",e[e.Error=1]="Error",e[e.Suggestion=2]="Suggestion",e[e.Message=3]="Message",e))(si||{});function ci(e,t=!0){const n=si[e.category];return t?n.toLowerCase():n}var li=(e=>(e[e.Classic=1]="Classic",e[e.NodeJs=2]="NodeJs",e[e.Node10=2]="Node10",e[e.Node16=3]="Node16",e[e.NodeNext=99]="NodeNext",e[e.Bundler=100]="Bundler",e))(li||{}),_i=(e=>(e[e.Legacy=1]="Legacy",e[e.Auto=2]="Auto",e[e.Force=3]="Force",e))(_i||{}),ui=(e=>(e[e.FixedPollingInterval=0]="FixedPollingInterval",e[e.PriorityPollingInterval=1]="PriorityPollingInterval",e[e.DynamicPriorityPolling=2]="DynamicPriorityPolling",e[e.FixedChunkSizePolling=3]="FixedChunkSizePolling",e[e.UseFsEvents=4]="UseFsEvents",e[e.UseFsEventsOnParentDirectory=5]="UseFsEventsOnParentDirectory",e))(ui||{}),di=(e=>(e[e.UseFsEvents=0]="UseFsEvents",e[e.FixedPollingInterval=1]="FixedPollingInterval",e[e.DynamicPriorityPolling=2]="DynamicPriorityPolling",e[e.FixedChunkSizePolling=3]="FixedChunkSizePolling",e))(di||{}),pi=(e=>(e[e.FixedInterval=0]="FixedInterval",e[e.PriorityInterval=1]="PriorityInterval",e[e.DynamicPriority=2]="DynamicPriority",e[e.FixedChunkSize=3]="FixedChunkSize",e))(pi||{}),fi=(e=>(e[e.None=0]="None",e[e.CommonJS=1]="CommonJS",e[e.AMD=2]="AMD",e[e.UMD=3]="UMD",e[e.System=4]="System",e[e.ES2015=5]="ES2015",e[e.ES2020=6]="ES2020",e[e.ES2022=7]="ES2022",e[e.ESNext=99]="ESNext",e[e.Node16=100]="Node16",e[e.Node18=101]="Node18",e[e.Node20=102]="Node20",e[e.NodeNext=199]="NodeNext",e[e.Preserve=200]="Preserve",e))(fi||{}),mi=(e=>(e[e.None=0]="None",e[e.Preserve=1]="Preserve",e[e.React=2]="React",e[e.ReactNative=3]="ReactNative",e[e.ReactJSX=4]="ReactJSX",e[e.ReactJSXDev=5]="ReactJSXDev",e))(mi||{}),gi=(e=>(e[e.Remove=0]="Remove",e[e.Preserve=1]="Preserve",e[e.Error=2]="Error",e))(gi||{}),hi=(e=>(e[e.CarriageReturnLineFeed=0]="CarriageReturnLineFeed",e[e.LineFeed=1]="LineFeed",e))(hi||{}),yi=(e=>(e[e.Unknown=0]="Unknown",e[e.JS=1]="JS",e[e.JSX=2]="JSX",e[e.TS=3]="TS",e[e.TSX=4]="TSX",e[e.External=5]="External",e[e.JSON=6]="JSON",e[e.Deferred=7]="Deferred",e))(yi||{}),vi=(e=>(e[e.ES3=0]="ES3",e[e.ES5=1]="ES5",e[e.ES2015=2]="ES2015",e[e.ES2016=3]="ES2016",e[e.ES2017=4]="ES2017",e[e.ES2018=5]="ES2018",e[e.ES2019=6]="ES2019",e[e.ES2020=7]="ES2020",e[e.ES2021=8]="ES2021",e[e.ES2022=9]="ES2022",e[e.ES2023=10]="ES2023",e[e.ES2024=11]="ES2024",e[e.ESNext=99]="ESNext",e[e.JSON=100]="JSON",e[e.Latest=99]="Latest",e))(vi||{}),bi=(e=>(e[e.Standard=0]="Standard",e[e.JSX=1]="JSX",e))(bi||{}),xi=(e=>(e[e.None=0]="None",e[e.Recursive=1]="Recursive",e))(xi||{}),ki=(e=>(e[e.EOF=-1]="EOF",e[e.nullCharacter=0]="nullCharacter",e[e.maxAsciiCharacter=127]="maxAsciiCharacter",e[e.lineFeed=10]="lineFeed",e[e.carriageReturn=13]="carriageReturn",e[e.lineSeparator=8232]="lineSeparator",e[e.paragraphSeparator=8233]="paragraphSeparator",e[e.nextLine=133]="nextLine",e[e.space=32]="space",e[e.nonBreakingSpace=160]="nonBreakingSpace",e[e.enQuad=8192]="enQuad",e[e.emQuad=8193]="emQuad",e[e.enSpace=8194]="enSpace",e[e.emSpace=8195]="emSpace",e[e.threePerEmSpace=8196]="threePerEmSpace",e[e.fourPerEmSpace=8197]="fourPerEmSpace",e[e.sixPerEmSpace=8198]="sixPerEmSpace",e[e.figureSpace=8199]="figureSpace",e[e.punctuationSpace=8200]="punctuationSpace",e[e.thinSpace=8201]="thinSpace",e[e.hairSpace=8202]="hairSpace",e[e.zeroWidthSpace=8203]="zeroWidthSpace",e[e.narrowNoBreakSpace=8239]="narrowNoBreakSpace",e[e.ideographicSpace=12288]="ideographicSpace",e[e.mathematicalSpace=8287]="mathematicalSpace",e[e.ogham=5760]="ogham",e[e.replacementCharacter=65533]="replacementCharacter",e[e._=95]="_",e[e.$=36]="$",e[e._0=48]="_0",e[e._1=49]="_1",e[e._2=50]="_2",e[e._3=51]="_3",e[e._4=52]="_4",e[e._5=53]="_5",e[e._6=54]="_6",e[e._7=55]="_7",e[e._8=56]="_8",e[e._9=57]="_9",e[e.a=97]="a",e[e.b=98]="b",e[e.c=99]="c",e[e.d=100]="d",e[e.e=101]="e",e[e.f=102]="f",e[e.g=103]="g",e[e.h=104]="h",e[e.i=105]="i",e[e.j=106]="j",e[e.k=107]="k",e[e.l=108]="l",e[e.m=109]="m",e[e.n=110]="n",e[e.o=111]="o",e[e.p=112]="p",e[e.q=113]="q",e[e.r=114]="r",e[e.s=115]="s",e[e.t=116]="t",e[e.u=117]="u",e[e.v=118]="v",e[e.w=119]="w",e[e.x=120]="x",e[e.y=121]="y",e[e.z=122]="z",e[e.A=65]="A",e[e.B=66]="B",e[e.C=67]="C",e[e.D=68]="D",e[e.E=69]="E",e[e.F=70]="F",e[e.G=71]="G",e[e.H=72]="H",e[e.I=73]="I",e[e.J=74]="J",e[e.K=75]="K",e[e.L=76]="L",e[e.M=77]="M",e[e.N=78]="N",e[e.O=79]="O",e[e.P=80]="P",e[e.Q=81]="Q",e[e.R=82]="R",e[e.S=83]="S",e[e.T=84]="T",e[e.U=85]="U",e[e.V=86]="V",e[e.W=87]="W",e[e.X=88]="X",e[e.Y=89]="Y",e[e.Z=90]="Z",e[e.ampersand=38]="ampersand",e[e.asterisk=42]="asterisk",e[e.at=64]="at",e[e.backslash=92]="backslash",e[e.backtick=96]="backtick",e[e.bar=124]="bar",e[e.caret=94]="caret",e[e.closeBrace=125]="closeBrace",e[e.closeBracket=93]="closeBracket",e[e.closeParen=41]="closeParen",e[e.colon=58]="colon",e[e.comma=44]="comma",e[e.dot=46]="dot",e[e.doubleQuote=34]="doubleQuote",e[e.equals=61]="equals",e[e.exclamation=33]="exclamation",e[e.greaterThan=62]="greaterThan",e[e.hash=35]="hash",e[e.lessThan=60]="lessThan",e[e.minus=45]="minus",e[e.openBrace=123]="openBrace",e[e.openBracket=91]="openBracket",e[e.openParen=40]="openParen",e[e.percent=37]="percent",e[e.plus=43]="plus",e[e.question=63]="question",e[e.semicolon=59]="semicolon",e[e.singleQuote=39]="singleQuote",e[e.slash=47]="slash",e[e.tilde=126]="tilde",e[e.backspace=8]="backspace",e[e.formFeed=12]="formFeed",e[e.byteOrderMark=65279]="byteOrderMark",e[e.tab=9]="tab",e[e.verticalTab=11]="verticalTab",e))(ki||{}),Si=(e=>(e.Ts=".ts",e.Tsx=".tsx",e.Dts=".d.ts",e.Js=".js",e.Jsx=".jsx",e.Json=".json",e.TsBuildInfo=".tsbuildinfo",e.Mjs=".mjs",e.Mts=".mts",e.Dmts=".d.mts",e.Cjs=".cjs",e.Cts=".cts",e.Dcts=".d.cts",e))(Si||{}),Ti=(e=>(e[e.None=0]="None",e[e.ContainsTypeScript=1]="ContainsTypeScript",e[e.ContainsJsx=2]="ContainsJsx",e[e.ContainsESNext=4]="ContainsESNext",e[e.ContainsES2022=8]="ContainsES2022",e[e.ContainsES2021=16]="ContainsES2021",e[e.ContainsES2020=32]="ContainsES2020",e[e.ContainsES2019=64]="ContainsES2019",e[e.ContainsES2018=128]="ContainsES2018",e[e.ContainsES2017=256]="ContainsES2017",e[e.ContainsES2016=512]="ContainsES2016",e[e.ContainsES2015=1024]="ContainsES2015",e[e.ContainsGenerator=2048]="ContainsGenerator",e[e.ContainsDestructuringAssignment=4096]="ContainsDestructuringAssignment",e[e.ContainsTypeScriptClassSyntax=8192]="ContainsTypeScriptClassSyntax",e[e.ContainsLexicalThis=16384]="ContainsLexicalThis",e[e.ContainsRestOrSpread=32768]="ContainsRestOrSpread",e[e.ContainsObjectRestOrSpread=65536]="ContainsObjectRestOrSpread",e[e.ContainsComputedPropertyName=131072]="ContainsComputedPropertyName",e[e.ContainsBlockScopedBinding=262144]="ContainsBlockScopedBinding",e[e.ContainsBindingPattern=524288]="ContainsBindingPattern",e[e.ContainsYield=1048576]="ContainsYield",e[e.ContainsAwait=2097152]="ContainsAwait",e[e.ContainsHoistedDeclarationOrCompletion=4194304]="ContainsHoistedDeclarationOrCompletion",e[e.ContainsDynamicImport=8388608]="ContainsDynamicImport",e[e.ContainsClassFields=16777216]="ContainsClassFields",e[e.ContainsDecorators=33554432]="ContainsDecorators",e[e.ContainsPossibleTopLevelAwait=67108864]="ContainsPossibleTopLevelAwait",e[e.ContainsLexicalSuper=134217728]="ContainsLexicalSuper",e[e.ContainsUpdateExpressionForIdentifier=268435456]="ContainsUpdateExpressionForIdentifier",e[e.ContainsPrivateIdentifierInExpression=536870912]="ContainsPrivateIdentifierInExpression",e[e.HasComputedFlags=-2147483648]="HasComputedFlags",e[e.AssertTypeScript=1]="AssertTypeScript",e[e.AssertJsx=2]="AssertJsx",e[e.AssertESNext=4]="AssertESNext",e[e.AssertES2022=8]="AssertES2022",e[e.AssertES2021=16]="AssertES2021",e[e.AssertES2020=32]="AssertES2020",e[e.AssertES2019=64]="AssertES2019",e[e.AssertES2018=128]="AssertES2018",e[e.AssertES2017=256]="AssertES2017",e[e.AssertES2016=512]="AssertES2016",e[e.AssertES2015=1024]="AssertES2015",e[e.AssertGenerator=2048]="AssertGenerator",e[e.AssertDestructuringAssignment=4096]="AssertDestructuringAssignment",e[e.OuterExpressionExcludes=-2147483648]="OuterExpressionExcludes",e[e.PropertyAccessExcludes=-2147483648]="PropertyAccessExcludes",e[e.NodeExcludes=-2147483648]="NodeExcludes",e[e.ArrowFunctionExcludes=-2072174592]="ArrowFunctionExcludes",e[e.FunctionExcludes=-1937940480]="FunctionExcludes",e[e.ConstructorExcludes=-1937948672]="ConstructorExcludes",e[e.MethodOrAccessorExcludes=-2005057536]="MethodOrAccessorExcludes",e[e.PropertyExcludes=-2013249536]="PropertyExcludes",e[e.ClassExcludes=-2147344384]="ClassExcludes",e[e.ModuleExcludes=-1941676032]="ModuleExcludes",e[e.TypeExcludes=-2]="TypeExcludes",e[e.ObjectLiteralExcludes=-2147278848]="ObjectLiteralExcludes",e[e.ArrayLiteralOrCallOrNewExcludes=-2147450880]="ArrayLiteralOrCallOrNewExcludes",e[e.VariableDeclarationListExcludes=-2146893824]="VariableDeclarationListExcludes",e[e.ParameterExcludes=-2147483648]="ParameterExcludes",e[e.CatchClauseExcludes=-2147418112]="CatchClauseExcludes",e[e.BindingPatternExcludes=-2147450880]="BindingPatternExcludes",e[e.ContainsLexicalThisOrSuper=134234112]="ContainsLexicalThisOrSuper",e[e.PropertyNamePropagatingFlags=134234112]="PropertyNamePropagatingFlags",e))(Ti||{}),Ci=(e=>(e[e.TabStop=0]="TabStop",e[e.Placeholder=1]="Placeholder",e[e.Choice=2]="Choice",e[e.Variable=3]="Variable",e))(Ci||{}),wi=(e=>(e[e.None=0]="None",e[e.SingleLine=1]="SingleLine",e[e.MultiLine=2]="MultiLine",e[e.AdviseOnEmitNode=4]="AdviseOnEmitNode",e[e.NoSubstitution=8]="NoSubstitution",e[e.CapturesThis=16]="CapturesThis",e[e.NoLeadingSourceMap=32]="NoLeadingSourceMap",e[e.NoTrailingSourceMap=64]="NoTrailingSourceMap",e[e.NoSourceMap=96]="NoSourceMap",e[e.NoNestedSourceMaps=128]="NoNestedSourceMaps",e[e.NoTokenLeadingSourceMaps=256]="NoTokenLeadingSourceMaps",e[e.NoTokenTrailingSourceMaps=512]="NoTokenTrailingSourceMaps",e[e.NoTokenSourceMaps=768]="NoTokenSourceMaps",e[e.NoLeadingComments=1024]="NoLeadingComments",e[e.NoTrailingComments=2048]="NoTrailingComments",e[e.NoComments=3072]="NoComments",e[e.NoNestedComments=4096]="NoNestedComments",e[e.HelperName=8192]="HelperName",e[e.ExportName=16384]="ExportName",e[e.LocalName=32768]="LocalName",e[e.InternalName=65536]="InternalName",e[e.Indented=131072]="Indented",e[e.NoIndentation=262144]="NoIndentation",e[e.AsyncFunctionBody=524288]="AsyncFunctionBody",e[e.ReuseTempVariableScope=1048576]="ReuseTempVariableScope",e[e.CustomPrologue=2097152]="CustomPrologue",e[e.NoHoisting=4194304]="NoHoisting",e[e.Iterator=8388608]="Iterator",e[e.NoAsciiEscaping=16777216]="NoAsciiEscaping",e))(wi||{}),Ni=(e=>(e[e.None=0]="None",e[e.TypeScriptClassWrapper=1]="TypeScriptClassWrapper",e[e.NeverApplyImportHelper=2]="NeverApplyImportHelper",e[e.IgnoreSourceNewlines=4]="IgnoreSourceNewlines",e[e.Immutable=8]="Immutable",e[e.IndirectCall=16]="IndirectCall",e[e.TransformPrivateStaticElements=32]="TransformPrivateStaticElements",e))(Ni||{}),Di={Classes:2,ForOf:2,Generators:2,Iteration:2,SpreadElements:2,RestElements:2,TaggedTemplates:2,DestructuringAssignment:2,BindingPatterns:2,ArrowFunctions:2,BlockScopedVariables:2,ObjectAssign:2,RegularExpressionFlagsUnicode:2,RegularExpressionFlagsSticky:2,Exponentiation:3,AsyncFunctions:4,ForAwaitOf:5,AsyncGenerators:5,AsyncIteration:5,ObjectSpreadRest:5,RegularExpressionFlagsDotAll:5,BindinglessCatch:6,BigInt:7,NullishCoalesce:7,OptionalChaining:7,LogicalAssignment:8,TopLevelAwait:9,ClassFields:9,PrivateNamesAndClassStaticBlocks:9,RegularExpressionFlagsHasIndices:9,ShebangComments:10,RegularExpressionFlagsUnicodeSets:11,UsingAndAwaitUsing:99,ClassAndClassElementDecorators:99},Fi=(e=>(e[e.Extends=1]="Extends",e[e.Assign=2]="Assign",e[e.Rest=4]="Rest",e[e.Decorate=8]="Decorate",e[e.ESDecorateAndRunInitializers=8]="ESDecorateAndRunInitializers",e[e.Metadata=16]="Metadata",e[e.Param=32]="Param",e[e.Awaiter=64]="Awaiter",e[e.Generator=128]="Generator",e[e.Values=256]="Values",e[e.Read=512]="Read",e[e.SpreadArray=1024]="SpreadArray",e[e.Await=2048]="Await",e[e.AsyncGenerator=4096]="AsyncGenerator",e[e.AsyncDelegator=8192]="AsyncDelegator",e[e.AsyncValues=16384]="AsyncValues",e[e.ExportStar=32768]="ExportStar",e[e.ImportStar=65536]="ImportStar",e[e.ImportDefault=131072]="ImportDefault",e[e.MakeTemplateObject=262144]="MakeTemplateObject",e[e.ClassPrivateFieldGet=524288]="ClassPrivateFieldGet",e[e.ClassPrivateFieldSet=1048576]="ClassPrivateFieldSet",e[e.ClassPrivateFieldIn=2097152]="ClassPrivateFieldIn",e[e.SetFunctionName=4194304]="SetFunctionName",e[e.PropKey=8388608]="PropKey",e[e.AddDisposableResourceAndDisposeResources=16777216]="AddDisposableResourceAndDisposeResources",e[e.RewriteRelativeImportExtension=33554432]="RewriteRelativeImportExtension",e[e.FirstEmitHelper=1]="FirstEmitHelper",e[e.LastEmitHelper=16777216]="LastEmitHelper",e[e.ForOfIncludes=256]="ForOfIncludes",e[e.ForAwaitOfIncludes=16384]="ForAwaitOfIncludes",e[e.AsyncGeneratorIncludes=6144]="AsyncGeneratorIncludes",e[e.AsyncDelegatorIncludes=26624]="AsyncDelegatorIncludes",e[e.SpreadIncludes=1536]="SpreadIncludes",e))(Fi||{}),Ei=(e=>(e[e.SourceFile=0]="SourceFile",e[e.Expression=1]="Expression",e[e.IdentifierName=2]="IdentifierName",e[e.MappedTypeParameter=3]="MappedTypeParameter",e[e.Unspecified=4]="Unspecified",e[e.EmbeddedStatement=5]="EmbeddedStatement",e[e.JsxAttributeValue=6]="JsxAttributeValue",e[e.ImportTypeNodeAttributes=7]="ImportTypeNodeAttributes",e))(Ei||{}),Pi=(e=>(e[e.Parentheses=1]="Parentheses",e[e.TypeAssertions=2]="TypeAssertions",e[e.NonNullAssertions=4]="NonNullAssertions",e[e.PartiallyEmittedExpressions=8]="PartiallyEmittedExpressions",e[e.ExpressionsWithTypeArguments=16]="ExpressionsWithTypeArguments",e[e.Satisfies=32]="Satisfies",e[e.Assertions=38]="Assertions",e[e.All=63]="All",e[e.ExcludeJSDocTypeAssertion=-2147483648]="ExcludeJSDocTypeAssertion",e))(Pi||{}),Ai=(e=>(e[e.None=0]="None",e[e.InParameters=1]="InParameters",e[e.VariablesHoistedInParameters=2]="VariablesHoistedInParameters",e))(Ai||{}),Ii=(e=>(e[e.None=0]="None",e[e.SingleLine=0]="SingleLine",e[e.MultiLine=1]="MultiLine",e[e.PreserveLines=2]="PreserveLines",e[e.LinesMask=3]="LinesMask",e[e.NotDelimited=0]="NotDelimited",e[e.BarDelimited=4]="BarDelimited",e[e.AmpersandDelimited=8]="AmpersandDelimited",e[e.CommaDelimited=16]="CommaDelimited",e[e.AsteriskDelimited=32]="AsteriskDelimited",e[e.DelimitersMask=60]="DelimitersMask",e[e.AllowTrailingComma=64]="AllowTrailingComma",e[e.Indented=128]="Indented",e[e.SpaceBetweenBraces=256]="SpaceBetweenBraces",e[e.SpaceBetweenSiblings=512]="SpaceBetweenSiblings",e[e.Braces=1024]="Braces",e[e.Parenthesis=2048]="Parenthesis",e[e.AngleBrackets=4096]="AngleBrackets",e[e.SquareBrackets=8192]="SquareBrackets",e[e.BracketsMask=15360]="BracketsMask",e[e.OptionalIfUndefined=16384]="OptionalIfUndefined",e[e.OptionalIfEmpty=32768]="OptionalIfEmpty",e[e.Optional=49152]="Optional",e[e.PreferNewLine=65536]="PreferNewLine",e[e.NoTrailingNewLine=131072]="NoTrailingNewLine",e[e.NoInterveningComments=262144]="NoInterveningComments",e[e.NoSpaceIfEmpty=524288]="NoSpaceIfEmpty",e[e.SingleElement=1048576]="SingleElement",e[e.SpaceAfterList=2097152]="SpaceAfterList",e[e.Modifiers=2359808]="Modifiers",e[e.HeritageClauses=512]="HeritageClauses",e[e.SingleLineTypeLiteralMembers=768]="SingleLineTypeLiteralMembers",e[e.MultiLineTypeLiteralMembers=32897]="MultiLineTypeLiteralMembers",e[e.SingleLineTupleTypeElements=528]="SingleLineTupleTypeElements",e[e.MultiLineTupleTypeElements=657]="MultiLineTupleTypeElements",e[e.UnionTypeConstituents=516]="UnionTypeConstituents",e[e.IntersectionTypeConstituents=520]="IntersectionTypeConstituents",e[e.ObjectBindingPatternElements=525136]="ObjectBindingPatternElements",e[e.ArrayBindingPatternElements=524880]="ArrayBindingPatternElements",e[e.ObjectLiteralExpressionProperties=526226]="ObjectLiteralExpressionProperties",e[e.ImportAttributes=526226]="ImportAttributes",e[e.ImportClauseEntries=526226]="ImportClauseEntries",e[e.ArrayLiteralExpressionElements=8914]="ArrayLiteralExpressionElements",e[e.CommaListElements=528]="CommaListElements",e[e.CallExpressionArguments=2576]="CallExpressionArguments",e[e.NewExpressionArguments=18960]="NewExpressionArguments",e[e.TemplateExpressionSpans=262144]="TemplateExpressionSpans",e[e.SingleLineBlockStatements=768]="SingleLineBlockStatements",e[e.MultiLineBlockStatements=129]="MultiLineBlockStatements",e[e.VariableDeclarationList=528]="VariableDeclarationList",e[e.SingleLineFunctionBodyStatements=768]="SingleLineFunctionBodyStatements",e[e.MultiLineFunctionBodyStatements=1]="MultiLineFunctionBodyStatements",e[e.ClassHeritageClauses=0]="ClassHeritageClauses",e[e.ClassMembers=129]="ClassMembers",e[e.InterfaceMembers=129]="InterfaceMembers",e[e.EnumMembers=145]="EnumMembers",e[e.CaseBlockClauses=129]="CaseBlockClauses",e[e.NamedImportsOrExportsElements=525136]="NamedImportsOrExportsElements",e[e.JsxElementOrFragmentChildren=262144]="JsxElementOrFragmentChildren",e[e.JsxElementAttributes=262656]="JsxElementAttributes",e[e.CaseOrDefaultClauseStatements=163969]="CaseOrDefaultClauseStatements",e[e.HeritageClauseTypes=528]="HeritageClauseTypes",e[e.SourceFileStatements=131073]="SourceFileStatements",e[e.Decorators=2146305]="Decorators",e[e.TypeArguments=53776]="TypeArguments",e[e.TypeParameters=53776]="TypeParameters",e[e.Parameters=2576]="Parameters",e[e.IndexSignatureParameters=8848]="IndexSignatureParameters",e[e.JSDocComment=33]="JSDocComment",e))(Ii||{}),Oi=(e=>(e[e.None=0]="None",e[e.TripleSlashXML=1]="TripleSlashXML",e[e.SingleLine=2]="SingleLine",e[e.MultiLine=4]="MultiLine",e[e.All=7]="All",e[e.Default=7]="Default",e))(Oi||{}),Li={reference:{args:[{name:"types",optional:!0,captureSpan:!0},{name:"lib",optional:!0,captureSpan:!0},{name:"path",optional:!0,captureSpan:!0},{name:"no-default-lib",optional:!0},{name:"resolution-mode",optional:!0},{name:"preserve",optional:!0}],kind:1},"amd-dependency":{args:[{name:"path"},{name:"name",optional:!0}],kind:1},"amd-module":{args:[{name:"name"}],kind:1},"ts-check":{kind:2},"ts-nocheck":{kind:2},jsx:{args:[{name:"factory"}],kind:4},jsxfrag:{args:[{name:"factory"}],kind:4},jsximportsource:{args:[{name:"factory"}],kind:4},jsxruntime:{args:[{name:"factory"}],kind:4}},ji=(e=>(e[e.ParseAll=0]="ParseAll",e[e.ParseNone=1]="ParseNone",e[e.ParseForTypeErrors=2]="ParseForTypeErrors",e[e.ParseForTypeInfo=3]="ParseForTypeInfo",e))(ji||{});function Mi(e){let t=5381;for(let n=0;n(e[e.Created=0]="Created",e[e.Changed=1]="Changed",e[e.Deleted=2]="Deleted",e))(Bi||{}),Ji=(e=>(e[e.High=2e3]="High",e[e.Medium=500]="Medium",e[e.Low=250]="Low",e))(Ji||{}),zi=new Date(0);function qi(e,t){return e.getModifiedTime(t)||zi}function Ui(e){return{250:e.Low,500:e.Medium,2e3:e.High}}var Vi={Low:32,Medium:64,High:256},Wi=Ui(Vi),$i=Ui(Vi);function Hi(e,t,n,r,i){let o=n;for(let s=t.length;r&&s;a(),s--){const a=t[n];if(!a)continue;if(a.isClosed){t[n]=void 0;continue}r--;const s=Gi(a,qi(e,a.fileName));a.isClosed?t[n]=void 0:(null==i||i(a,n,s),t[n]&&(o{var i;return null==(i=e.get(o))?void 0:i.callbacks.slice().forEach(e=>e(t,n,r))}),callbacks:[r]}),{close:()=>{const t=e.get(o);t&&zt(t.callbacks,r)&&!t.callbacks.length&&(e.delete(o),RU(t))}}}function Gi(e,t){const n=e.mtime.getTime(),r=t.getTime();return n!==r&&(e.mtime=t,e.callback(e.fileName,Xi(n,r),t),!0)}function Xi(e,t){return 0===e?0:0===t?2:1}var Qi=["/node_modules/.","/.git","/.#"],Yi=rt;function Zi(e){return Yi(e)}function eo(e){Yi=e}function to({watchDirectory:e,useCaseSensitiveFileNames:t,getCurrentDirectory:n,getAccessibleSortedChildDirectories:r,fileSystemEntryExists:i,realpath:o,setTimeout:a,clearTimeout:s}){const c=new Map,_=$e(),u=new Map;let d;const p=wt(!t),f=Wt(t);return(t,n,r,i)=>r?m(t,i,n):e(t,n,r,i);function m(t,n,r,o){const p=f(t);let m=c.get(p);m?m.refCount++:(m={watcher:e(t,e=>{var r;x(e,n)||((null==n?void 0:n.synchronousWatchDirectory)?((null==(r=c.get(p))?void 0:r.targetWatcher)||g(t,p,e),b(t,p,n)):function(e,t,n,r){const o=c.get(t);o&&i(e,1)?function(e,t,n,r){const i=u.get(t);i?i.fileNames.push(n):u.set(t,{dirName:e,options:r,fileNames:[n]}),d&&(s(d),d=void 0),d=a(h,1e3,"timerToUpdateChildWatches")}(e,t,n,r):(g(e,t,n),v(o),y(o))}(t,p,e,n))},!1,n),refCount:1,childWatches:l,targetWatcher:void 0,links:void 0},c.set(p,m),b(t,p,n)),o&&(m.links??(m.links=new Set)).add(o);const k=r&&{dirName:t,callback:r};return k&&_.add(p,k),{dirName:t,close:()=>{var e;const t=un.checkDefined(c.get(p));k&&_.remove(p,k),o&&(null==(e=t.links)||e.delete(o)),t.refCount--,t.refCount||(c.delete(p),t.links=void 0,RU(t),v(t),t.childWatches.forEach(nx))}}}function g(e,t,n,r){var i,o;let a,s;Ze(n)?a=n:s=n,_.forEach((e,n)=>{if((!s||!0!==s.get(n))&&(n===t||Gt(t,n)&&t[n.length]===lo))if(s)if(r){const e=s.get(n);e?e.push(...r):s.set(n,r.slice())}else s.set(n,!0);else e.forEach(({callback:e})=>e(a))}),null==(o=null==(i=c.get(t))?void 0:i.links)||o.forEach(t=>{const n=n=>jo(t,ra(e,n,f));s?g(t,f(t),s,null==r?void 0:r.map(n)):g(t,f(t),n(a))})}function h(){var e;d=void 0,Zi(`sysLog:: onTimerToUpdateChildWatches:: ${u.size}`);const t=Un(),n=new Map;for(;!d&&u.size;){const t=u.entries().next();un.assert(!t.done);const{value:[r,{dirName:i,options:o,fileNames:a}]}=t;u.delete(r);const s=b(i,r,o);(null==(e=c.get(r))?void 0:e.targetWatcher)||g(i,r,n,s?void 0:a)}Zi(`sysLog:: invokingWatchers:: Elapsed:: ${Un()-t}ms:: ${u.size}`),_.forEach((e,t)=>{const r=n.get(t);r&&e.forEach(({callback:e,dirName:t})=>{Qe(r)?r.forEach(e):e(t)})}),Zi(`sysLog:: Elapsed:: ${Un()-t}ms:: onTimerToUpdateChildWatches:: ${u.size} ${d}`)}function y(e){if(!e)return;const t=e.childWatches;e.childWatches=l;for(const e of t)e.close(),y(c.get(f(e.dirName)))}function v(e){(null==e?void 0:e.targetWatcher)&&(e.targetWatcher.close(),e.targetWatcher=void 0)}function b(e,t,n){const a=c.get(t);if(!a)return!1;const s=Jo(o(e));let _,u;return 0===p(s,e)?_=on(i(e,1)?B(r(e),t=>{const r=Bo(t,e);return x(r,n)||0!==p(r,Jo(o(r)))?void 0:r}):l,a.childWatches,(e,t)=>p(e,t.dirName),function(e){d(m(e,n))},nx,d):a.targetWatcher&&0===p(s,a.targetWatcher.dirName)?(_=!1,un.assert(a.childWatches===l)):(v(a),a.targetWatcher=m(s,n,void 0,e),a.childWatches.forEach(nx),_=!0),a.childWatches=u||l,_;function d(e){(u||(u=[])).push(e)}}function x(e,r){return $(Qi,n=>function(e,n){return!!e.includes(n)||!t&&f(e).includes(n)}(e,n))||ro(e,r,t,n)}}var no=(e=>(e[e.File=0]="File",e[e.Directory=1]="Directory",e))(no||{});function ro(e,t,n,r){return((null==t?void 0:t.excludeDirectories)||(null==t?void 0:t.excludeFiles))&&(Bj(e,null==t?void 0:t.excludeFiles,n,r())||Bj(e,null==t?void 0:t.excludeDirectories,n,r()))}function io(e,t,n,r,i){return(o,a)=>{if("rename"===o){const o=a?Jo(jo(e,a)):e;a&&ro(o,n,r,i)||t(o)}}}function oo({pollingWatchFileWorker:e,getModifiedTime:t,setTimeout:n,clearTimeout:r,fsWatchWorker:i,fileSystemEntryExists:o,useCaseSensitiveFileNames:a,getCurrentDirectory:s,fsSupportsRecursiveFsWatch:c,getAccessibleSortedChildDirectories:l,realpath:_,tscWatchFile:u,useNonPollingWatchers:d,tscWatchDirectory:p,inodeWatching:f,fsWatchWithTimestamp:m,sysLog:g}){const h=new Map,y=new Map,v=new Map;let b,x,k,S,T=!1;return{watchFile:C,watchDirectory:function(e,t,i,u){return c?P(e,1,io(e,t,u,a,s),i,500,MU(u)):(S||(S=to({useCaseSensitiveFileNames:a,getCurrentDirectory:s,fileSystemEntryExists:o,getAccessibleSortedChildDirectories:l,watchDirectory:F,realpath:_,setTimeout:n,clearTimeout:r})),S(e,t,i,u))}};function C(e,n,r,i){i=function(e,t){if(e&&void 0!==e.watchFile)return e;switch(u){case"PriorityPollingInterval":return{watchFile:1};case"DynamicPriorityPolling":return{watchFile:2};case"UseFsEvents":return D(4,1,e);case"UseFsEventsWithFallbackDynamicPolling":return D(4,2,e);case"UseFsEventsOnParentDirectory":t=!0;default:return t?D(5,1,e):{watchFile:4}}}(i,d);const o=un.checkDefined(i.watchFile);switch(o){case 0:return E(e,n,250,void 0);case 1:return E(e,n,r,void 0);case 2:return w()(e,n,r,void 0);case 3:return N()(e,n,void 0,void 0);case 4:return P(e,0,function(e,t,n){return(r,i,o)=>{"rename"===r?(o||(o=n(e)||zi),t(e,o!==zi?0:2,o)):t(e,1,o)}}(e,n,t),!1,r,MU(i));case 5:return k||(k=function(e,t,n,r){const i=$e(),o=r?new Map:void 0,a=new Map,s=Wt(t);return function(t,r,c,l){const _=s(t);1===i.add(_,r).length&&o&&o.set(_,n(t)||zi);const u=Do(_)||".",d=a.get(u)||function(t,r,c){const l=e(t,1,(e,r)=>{if(!Ze(r))return;const a=Bo(r,t),c=s(a),l=a&&i.get(c);if(l){let t,r=1;if(o){const i=o.get(c);if("change"===e&&(t=n(a)||zi,t.getTime()===i.getTime()))return;t||(t=n(a)||zi),o.set(c,t),i===zi?r=0:t===zi&&(r=2)}for(const e of l)e(a,r,t)}},!1,500,c);return l.referenceCount=0,a.set(r,l),l}(Do(t)||".",u,l);return d.referenceCount++,{close:()=>{1===d.referenceCount?(d.close(),a.delete(u)):d.referenceCount--,i.remove(_,r)}}}}(P,a,t,m)),k(e,n,r,MU(i));default:un.assertNever(o)}}function w(){return b||(b=function(e){const t=[],n=[],r=a(250),i=a(500),o=a(2e3);return function(n,r,i){const o={fileName:n,callback:r,unchangedPolls:0,mtime:qi(e,n)};return t.push(o),u(o,i),{close:()=>{o.isClosed=!0,Vt(t,o)}}};function a(e){const t=[];return t.pollingInterval=e,t.pollIndex=0,t.pollScheduled=!1,t}function s(e,t){t.pollIndex=l(t,t.pollingInterval,t.pollIndex,Wi[t.pollingInterval]),t.length?p(t.pollingInterval):(un.assert(0===t.pollIndex),t.pollScheduled=!1)}function c(e,t){l(n,250,0,n.length),s(0,t),!t.pollScheduled&&n.length&&p(250)}function l(t,r,i,o){return Hi(e,t,i,o,function(e,i,o){var a;o?(e.unchangedPolls=0,t!==n&&(t[i]=void 0,a=e,n.push(a),d(250))):e.unchangedPolls!==$i[r]?e.unchangedPolls++:t===n?(e.unchangedPolls=1,t[i]=void 0,u(e,250)):2e3!==r&&(e.unchangedPolls++,t[i]=void 0,u(e,250===r?500:2e3))})}function _(e){switch(e){case 250:return r;case 500:return i;case 2e3:return o}}function u(e,t){_(t).push(e),d(t)}function d(e){_(e).pollScheduled||p(e)}function p(t){_(t).pollScheduled=e.setTimeout(250===t?c:s,t,250===t?"pollLowPollingIntervalQueue":"pollPollingIntervalQueue",_(t))}}({getModifiedTime:t,setTimeout:n}))}function N(){return x||(x=function(e){const t=[];let n,r=0;return function(n,r){const i={fileName:n,callback:r,mtime:qi(e,n)};return t.push(i),o(),{close:()=>{i.isClosed=!0,Vt(t,i)}}};function i(){n=void 0,r=Hi(e,t,r,Wi[250]),o()}function o(){t.length&&!n&&(n=e.setTimeout(i,2e3,"pollQueue"))}}({getModifiedTime:t,setTimeout:n}))}function D(e,t,n){const r=null==n?void 0:n.fallbackPolling;return{watchFile:e,fallbackPolling:void 0===r?t:r}}function F(e,t,n,r){un.assert(!n);const i=function(e){if(e&&void 0!==e.watchDirectory)return e;switch(p){case"RecursiveDirectoryUsingFsWatchFile":return{watchDirectory:1};case"RecursiveDirectoryUsingDynamicPriorityPolling":return{watchDirectory:2};default:const t=null==e?void 0:e.fallbackPolling;return{watchDirectory:0,fallbackPolling:void 0!==t?t:void 0}}}(r),o=un.checkDefined(i.watchDirectory);switch(o){case 1:return E(e,()=>t(e),500,void 0);case 2:return w()(e,()=>t(e),500,void 0);case 3:return N()(e,()=>t(e),void 0,void 0);case 0:return P(e,1,io(e,t,r,a,s),n,500,MU(i));default:un.assertNever(o)}}function E(t,n,r,i){return Ki(h,a,t,n,n=>e(t,n,r,i))}function P(e,n,r,s,c,l){return Ki(s?v:y,a,e,r,r=>function(e,n,r,a,s,c){let l,_;f&&(l=e.substring(e.lastIndexOf(lo)),_=l.slice(lo.length));let u=o(e,n)?p():v();return{close:()=>{u&&(u.close(),u=void 0)}};function d(t){u&&(g(`sysLog:: ${e}:: Changing watcher to ${t===p?"Present":"Missing"}FileSystemEntryWatcher`),u.close(),u=t())}function p(){if(T)return g(`sysLog:: ${e}:: Defaulting to watchFile`),y();try{const t=(1!==n&&m?A:i)(e,a,f?h:r);return t.on("error",()=>{r("rename",""),d(v)}),t}catch(t){return T||(T="ENOSPC"===t.code),g(`sysLog:: ${e}:: Changing to watchFile`),y()}}function h(n,i){let o;if(i&&Mt(i,"~")&&(o=i,i=i.slice(0,i.length-1)),"rename"!==n||i&&i!==_&&!Mt(i,l))o&&r(n,o),r(n,i);else{const a=t(e)||zi;o&&r(n,o,a),r(n,i,a),f?d(a===zi?v:p):a===zi&&d(v)}}function y(){return C(e,function(e){return(t,n,r)=>e(1===n?"change":"rename","",r)}(r),s,c)}function v(){return C(e,(n,i,o)=>{0===i&&(o||(o=t(e)||zi),o!==zi&&(r("rename","",o),d(p)))},s,c)}}(e,n,r,s,c,l))}function A(e,n,r){let o=t(e)||zi;return i(e,n,(n,i,a)=>{"change"===n&&(a||(a=t(e)||zi),a.getTime()===o.getTime())||(o=a||t(e)||zi,r(n,i,o))})}}function ao(e){const t=e.writeFile;e.writeFile=(n,r,i)=>tv(n,r,!!i,(n,r,i)=>t.call(e,n,r,i),t=>e.createDirectory(t),t=>e.directoryExists(t))}var so=(()=>{let e;return _n()&&(e=function(){const e=/^native |^\([^)]+\)$|^(?:internal[\\/]|[\w\s]+(?:\.js)?$)/,t=n(21),i=n(641),o=n(202);let a,s;try{a=n(615)}catch{a=void 0}let c="./profile.cpuprofile";const l="darwin"===process.platform,_="linux"===process.platform||l,u={throwIfNoEntry:!1},d=o.platform(),p="win32"!==d&&"win64"!==d&&!N((x=r,x.replace(/\w/g,e=>{const t=e.toUpperCase();return e===t?e.toLowerCase():t}))),f=t.realpathSync.native?"win32"===process.platform?function(e){return e.length<260?t.realpathSync.native(e):t.realpathSync(e)}:t.realpathSync.native:t.realpathSync,m=r.endsWith("sys.js")?i.join(i.dirname("/"),"__fake__.js"):r,g="win32"===process.platform||l,h=dt(()=>process.cwd()),{watchFile:y,watchDirectory:v}=oo({pollingWatchFileWorker:function(e,n,r){let i;return t.watchFile(e,{persistent:!0,interval:r},o),{close:()=>t.unwatchFile(e,o)};function o(t,r){const o=0===+r.mtime||2===i;if(0===+t.mtime){if(o)return;i=2}else if(o)i=0;else{if(+t.mtime===+r.mtime)return;i=1}n(e,i,t.mtime)}},getModifiedTime:F,setTimeout,clearTimeout,fsWatchWorker:function(e,n,r){return t.watch(e,g?{persistent:!0,recursive:!!n}:{persistent:!0},r)},useCaseSensitiveFileNames:p,getCurrentDirectory:h,fileSystemEntryExists:w,fsSupportsRecursiveFsWatch:g,getAccessibleSortedChildDirectories:e=>C(e).directories,realpath:D,tscWatchFile:process.env.TSC_WATCHFILE,useNonPollingWatchers:!!process.env.TSC_NONPOLLING_WATCHER,tscWatchDirectory:process.env.TSC_WATCHDIRECTORY,inodeWatching:_,fsWatchWithTimestamp:l,sysLog:Zi}),b={args:process.argv.slice(2),newLine:o.EOL,useCaseSensitiveFileNames:p,write(e){process.stdout.write(e)},getWidthOfTerminal:()=>process.stdout.columns,writeOutputIsTTY:()=>process.stdout.isTTY,readFile:function(e,n){let r;try{r=t.readFileSync(e)}catch{return}let i=r.length;if(i>=2&&254===r[0]&&255===r[1]){i&=-2;for(let e=0;e=2&&255===r[0]&&254===r[1]?r.toString("utf16le",2):i>=3&&239===r[0]&&187===r[1]&&191===r[2]?r.toString("utf8",3):r.toString("utf8")},writeFile:function(e,n,r){let i;r&&(n="\ufeff"+n);try{i=t.openSync(e,"w"),t.writeSync(i,n,void 0,"utf8")}finally{void 0!==i&&t.closeSync(i)}},watchFile:y,watchDirectory:v,preferNonRecursiveWatch:!g,resolvePath:e=>i.resolve(e),fileExists:N,directoryExists:function(e){return w(e,1)},getAccessibleFileSystemEntries:C,createDirectory(e){if(!b.directoryExists(e))try{t.mkdirSync(e)}catch(e){if("EEXIST"!==e.code)throw e}},getExecutingFilePath:()=>m,getCurrentDirectory:h,getDirectories:function(e){return C(e).directories.slice()},getEnvironmentVariable:e=>process.env[e]||"",readDirectory:function(e,t,n,r,i){return hS(e,t,n,r,p,process.cwd(),i,C,D)},getModifiedTime:F,setModifiedTime:function(e,n){try{t.utimesSync(e,n,n)}catch{return}},deleteFile:function(e){try{return t.unlinkSync(e)}catch{return}},createHash:a?E:Mi,createSHA256Hash:a?E:void 0,getMemoryUsage:()=>(n.g.gc&&n.g.gc(),process.memoryUsage().heapUsed),getFileSize(e){const t=k(e);return(null==t?void 0:t.isFile())?t.size:0},exit(e){S(()=>process.exit(e))},enableCPUProfiler:function(e,t){if(s)return t(),!1;const r=n(247);if(!r||!r.Session)return t(),!1;const i=new r.Session;return i.connect(),i.post("Profiler.enable",()=>{i.post("Profiler.start",()=>{s=i,c=e,t()})}),!0},disableCPUProfiler:S,cpuProfilingEnabled:()=>!!s||T(process.execArgv,"--cpu-prof")||T(process.execArgv,"--prof"),realpath:D,debugMode:!!process.env.NODE_INSPECTOR_IPC||!!process.env.VSCODE_INSPECTOR_OPTIONS||$(process.execArgv,e=>/^--(?:inspect|debug)(?:-brk)?(?:=\d+)?$/i.test(e))||!!process.recordreplay,tryEnableSourceMapsForHost(){try{n(664).install()}catch{}},setTimeout,clearTimeout,clearScreen:()=>{process.stdout.write("")},setBlocking:()=>{var e;const t=null==(e=process.stdout)?void 0:e._handle;t&&t.setBlocking&&t.setBlocking(!0)},base64decode:e=>Buffer.from(e,"base64").toString("utf8"),base64encode:e=>Buffer.from(e).toString("base64"),require:(e,t)=>{try{const r=BM(t,e,b);return{module:n(387)(r),modulePath:r,error:void 0}}catch(e){return{module:void 0,modulePath:void 0,error:e}}}};var x;return b;function k(e){try{return t.statSync(e,u)}catch{return}}function S(n){if(s&&"stopping"!==s){const r=s;return s.post("Profiler.stop",(o,{profile:a})=>{var l;if(!o){(null==(l=k(c))?void 0:l.isDirectory())&&(c=i.join(c,`${(new Date).toISOString().replace(/:/g,"-")}+P${process.pid}.cpuprofile`));try{t.mkdirSync(i.dirname(c),{recursive:!0})}catch{}t.writeFileSync(c,JSON.stringify(function(t){let n=0;const r=new Map,o=Oo(i.dirname(m)),a=`file://${1===No(o)?"":"/"}${o}`;for(const i of t.nodes)if(i.callFrame.url){const t=Oo(i.callFrame.url);ea(a,t,p)?i.callFrame.url=aa(a,t,a,Wt(p),!0):e.test(t)||(i.callFrame.url=(r.has(t)?r:r.set(t,`external${n}.js`)).get(t),n++)}return t}(a)))}s=void 0,r.disconnect(),n()}),s="stopping",!0}return n(),!1}function C(e){try{const n=t.readdirSync(e||".",{withFileTypes:!0}),r=[],i=[];for(const t of n){const n="string"==typeof t?t:t.name;if("."===n||".."===n)continue;let o;if("string"==typeof t||t.isSymbolicLink()){if(o=k(jo(e,n)),!o)continue}else o=t;o.isFile()?r.push(n):o.isDirectory()&&i.push(n)}return r.sort(),i.sort(),{files:r,directories:i}}catch{return rT}}function w(e,t){const n=k(e);if(!n)return!1;switch(t){case 0:return n.isFile();case 1:return n.isDirectory();default:return!1}}function N(e){return w(e,0)}function D(e){try{return f(e)}catch{return e}}function F(e){var t;return null==(t=k(e))?void 0:t.mtime}function E(e){const t=a.createHash("sha256");return t.update(e),t.digest("hex")}}()),e&&ao(e),e})();function co(e){so=e}so&&so.getEnvironmentVariable&&(function(e){if(!e.getEnvironmentVariable)return;const t=function(e,t){const r=n("TSC_WATCH_POLLINGINTERVAL");return!!r&&(i("Low"),i("Medium"),i("High"),!0);function i(e){t[e]=r[e]||t[e]}}(0,Ji);function n(t){let n;return r("Low"),r("Medium"),r("High"),n;function r(r){const i=function(t,n){return e.getEnvironmentVariable(`${t}_${n.toUpperCase()}`)}(t,r);i&&((n||(n={}))[r]=Number(i))}}function r(e,r){const i=n(e);return(t||i)&&Ui(i?{...r,...i}:r)}Wi=r("TSC_WATCH_POLLINGCHUNKSIZE",Vi)||Wi,$i=r("TSC_WATCH_UNCHANGEDPOLLTHRESHOLDS",Vi)||$i}(so),un.setAssertionLevel(/^development$/i.test(so.getEnvironmentVariable("NODE_ENV"))?1:0)),so&&so.debugMode&&(un.isDebugging=!0);var lo="/",_o="\\",uo="://",po=/\\/g;function fo(e){return 47===e||92===e}function mo(e){return wo(e)<0}function go(e){return wo(e)>0}function ho(e){const t=wo(e);return t>0&&t===e.length}function yo(e){return 0!==wo(e)}function vo(e){return/^\.\.?(?:$|[\\/])/.test(e)}function bo(e){return!yo(e)&&!vo(e)}function xo(e){return Fo(e).includes(".")}function ko(e,t){return e.length>t.length&&Mt(e,t)}function So(e,t){for(const n of t)if(ko(e,n))return!0;return!1}function To(e){return e.length>0&&fo(e.charCodeAt(e.length-1))}function Co(e){return e>=97&&e<=122||e>=65&&e<=90}function wo(e){if(!e)return 0;const t=e.charCodeAt(0);if(47===t||92===t){if(e.charCodeAt(1)!==t)return 1;const n=e.indexOf(47===t?lo:_o,2);return n<0?e.length:n+1}if(Co(t)&&58===e.charCodeAt(1)){const t=e.charCodeAt(2);if(47===t||92===t)return 3;if(2===e.length)return 2}const n=e.indexOf(uo);if(-1!==n){const t=n+uo.length,r=e.indexOf(lo,t);if(-1!==r){const i=e.slice(0,n),o=e.slice(t,r);if("file"===i&&(""===o||"localhost"===o)&&Co(e.charCodeAt(r+1))){const t=function(e,t){const n=e.charCodeAt(t);if(58===n)return t+1;if(37===n&&51===e.charCodeAt(t+1)){const n=e.charCodeAt(t+2);if(97===n||65===n)return t+3}return-1}(e,r+2);if(-1!==t){if(47===e.charCodeAt(t))return~(t+1);if(t===e.length)return~t}}return~(r+1)}return~e.length}return 0}function No(e){const t=wo(e);return t<0?~t:t}function Do(e){const t=No(e=Oo(e));return t===e.length?e:(e=Vo(e)).slice(0,Math.max(t,e.lastIndexOf(lo)))}function Fo(e,t,n){if(No(e=Oo(e))===e.length)return"";const r=(e=Vo(e)).slice(Math.max(No(e),e.lastIndexOf(lo)+1)),i=void 0!==t&&void 0!==n?Po(r,t,n):void 0;return i?r.slice(0,r.length-i.length):r}function Eo(e,t,n){if(Gt(t,".")||(t="."+t),e.length>=t.length&&46===e.charCodeAt(e.length-t.length)){const r=e.slice(e.length-t.length);if(n(r,t))return r}}function Po(e,t,n){if(t)return function(e,t,n){if("string"==typeof t)return Eo(e,t,n)||"";for(const r of t){const t=Eo(e,r,n);if(t)return t}return""}(Vo(e),t,n?gt:ht);const r=Fo(e),i=r.lastIndexOf(".");return i>=0?r.substring(i):""}function Ao(e,t=""){return function(e,t){const n=e.substring(0,t),r=e.substring(t).split(lo);return r.length&&!ye(r)&&r.pop(),[n,...r]}(e=jo(t,e),No(e))}function Io(e,t){return 0===e.length?"":(e[0]&&Wo(e[0]))+e.slice(1,t).join(lo)}function Oo(e){return e.includes("\\")?e.replace(po,lo):e}function Lo(e){if(!$(e))return[];const t=[e[0]];for(let n=1;n1){if(".."!==t[t.length-1]){t.pop();continue}}else if(t[0])continue;t.push(r)}}return t}function jo(e,...t){e&&(e=Oo(e));for(let n of t)n&&(n=Oo(n),e=e&&0===No(n)?Wo(e)+n:n);return e}function Mo(e,...t){return Jo($(t)?jo(e,...t):Oo(e))}function Ro(e,t){return Lo(Ao(e,t))}function Bo(e,t){let n=No(e);0===n&&t?n=No(e=jo(t,e)):e=Oo(e);const r=zo(e);if(void 0!==r)return r.length>n?Vo(r):r;const i=e.length,o=e.substring(0,n);let a,s=n,c=s,l=s,_=0!==n;for(;sc&&(a??(a=e.substring(0,c-1)),c=s);let r=e.indexOf(lo,s+1);-1===r&&(r=i);const u=r-c;if(1===u&&46===e.charCodeAt(s))a??(a=e.substring(0,l));else if(2===u&&46===e.charCodeAt(s)&&46===e.charCodeAt(s+1))if(_)if(void 0===a)a=l-2>=0?e.substring(0,Math.max(n,e.lastIndexOf(lo,l-2))):e.substring(0,l);else{const e=a.lastIndexOf(lo);a=-1!==e?a.substring(0,Math.max(n,e)):o,a.length===n&&(_=0!==n)}else void 0!==a?a+=a.length===n?"..":"/..":l=s+2;else void 0!==a?(a.length!==n&&(a+=lo),_=!0,a+=e.substring(c,r)):(_=!0,l=r);s=r+1}return a??(i>n?Vo(e):e)}function Jo(e){let t=zo(e=Oo(e));return void 0!==t?t:(t=Bo(e,""),t&&To(e)?Wo(t):t)}function zo(e){if(!Go.test(e))return e;let t=e.replace(/\/\.\//g,"/");return t.startsWith("./")&&(t=t.slice(2)),t===e||(e=t,Go.test(e))?void 0:e}function qo(e,t){return 0===(n=Ro(e,t)).length?"":n.slice(1).join(lo);var n}function Uo(e,t,n){return n(go(e)?Jo(e):Bo(e,t))}function Vo(e){return To(e)?e.substr(0,e.length-1):e}function Wo(e){return To(e)?e:e+lo}function $o(e){return yo(e)||vo(e)?e:"./"+e}function Ho(e,t,n,r){const i=void 0!==n&&void 0!==r?Po(e,n,r):Po(e);return i?e.slice(0,e.length-i.length)+(Gt(t,".")?t:"."+t):e}function Ko(e,t){const n=dO(e);return n?e.slice(0,e.length-n.length)+(Gt(t,".")?t:"."+t):Ho(e,t)}var Go=/\/\/|(?:^|\/)\.\.?(?:$|\/)/;function Xo(e,t,n){if(e===t)return 0;if(void 0===e)return-1;if(void 0===t)return 1;const r=e.substring(0,No(e)),i=t.substring(0,No(t)),o=St(r,i);if(0!==o)return o;const a=e.substring(r.length),s=t.substring(i.length);if(!Go.test(a)&&!Go.test(s))return n(a,s);const c=Lo(Ao(e)),l=Lo(Ao(t)),_=Math.min(c.length,l.length);for(let e=1;e<_;e++){const t=n(c[e],l[e]);if(0!==t)return t}return vt(c.length,l.length)}function Qo(e,t){return Xo(e,t,Ct)}function Yo(e,t){return Xo(e,t,St)}function Zo(e,t,n,r){return"string"==typeof n?(e=jo(n,e),t=jo(n,t)):"boolean"==typeof n&&(r=n),Xo(e,t,wt(r))}function ea(e,t,n,r){if("string"==typeof n?(e=jo(n,e),t=jo(n,t)):"boolean"==typeof n&&(r=n),void 0===e||void 0===t)return!1;if(e===t)return!0;const i=Lo(Ao(e)),o=Lo(Ao(t));if(o.length0==No(t)>0,"Paths must either both be absolute or both be relative"),Io(na(e,t,"boolean"==typeof n&&n?gt:ht,"function"==typeof n?n:st))}function ia(e,t,n){return go(e)?aa(t,e,t,n,!1):e}function oa(e,t,n){return $o(ra(Do(e),t,n))}function aa(e,t,n,r,i){const o=na(Mo(n,e),Mo(n,t),ht,r),a=o[0];if(i&&go(a)){const e=a.charAt(0)===lo?"file://":"file:///";o[0]=e+a}return Io(o)}function sa(e,t){for(;;){const n=t(e);if(void 0!==n)return n;const r=Do(e);if(r===e)return;e=r}}function ca(e){return Mt(e,"/node_modules")}function la(e,t,n,r,i,o,a){return{code:e,category:t,key:n,message:r,reportsUnnecessary:i,elidedInCompatabilityPyramid:o,reportsDeprecated:a}}var _a={Unterminated_string_literal:la(1002,1,"Unterminated_string_literal_1002","Unterminated string literal."),Identifier_expected:la(1003,1,"Identifier_expected_1003","Identifier expected."),_0_expected:la(1005,1,"_0_expected_1005","'{0}' expected."),A_file_cannot_have_a_reference_to_itself:la(1006,1,"A_file_cannot_have_a_reference_to_itself_1006","A file cannot have a reference to itself."),The_parser_expected_to_find_a_1_to_match_the_0_token_here:la(1007,1,"The_parser_expected_to_find_a_1_to_match_the_0_token_here_1007","The parser expected to find a '{1}' to match the '{0}' token here."),Trailing_comma_not_allowed:la(1009,1,"Trailing_comma_not_allowed_1009","Trailing comma not allowed."),Asterisk_Slash_expected:la(1010,1,"Asterisk_Slash_expected_1010","'*/' expected."),An_element_access_expression_should_take_an_argument:la(1011,1,"An_element_access_expression_should_take_an_argument_1011","An element access expression should take an argument."),Unexpected_token:la(1012,1,"Unexpected_token_1012","Unexpected token."),A_rest_parameter_or_binding_pattern_may_not_have_a_trailing_comma:la(1013,1,"A_rest_parameter_or_binding_pattern_may_not_have_a_trailing_comma_1013","A rest parameter or binding pattern may not have a trailing comma."),A_rest_parameter_must_be_last_in_a_parameter_list:la(1014,1,"A_rest_parameter_must_be_last_in_a_parameter_list_1014","A rest parameter must be last in a parameter list."),Parameter_cannot_have_question_mark_and_initializer:la(1015,1,"Parameter_cannot_have_question_mark_and_initializer_1015","Parameter cannot have question mark and initializer."),A_required_parameter_cannot_follow_an_optional_parameter:la(1016,1,"A_required_parameter_cannot_follow_an_optional_parameter_1016","A required parameter cannot follow an optional parameter."),An_index_signature_cannot_have_a_rest_parameter:la(1017,1,"An_index_signature_cannot_have_a_rest_parameter_1017","An index signature cannot have a rest parameter."),An_index_signature_parameter_cannot_have_an_accessibility_modifier:la(1018,1,"An_index_signature_parameter_cannot_have_an_accessibility_modifier_1018","An index signature parameter cannot have an accessibility modifier."),An_index_signature_parameter_cannot_have_a_question_mark:la(1019,1,"An_index_signature_parameter_cannot_have_a_question_mark_1019","An index signature parameter cannot have a question mark."),An_index_signature_parameter_cannot_have_an_initializer:la(1020,1,"An_index_signature_parameter_cannot_have_an_initializer_1020","An index signature parameter cannot have an initializer."),An_index_signature_must_have_a_type_annotation:la(1021,1,"An_index_signature_must_have_a_type_annotation_1021","An index signature must have a type annotation."),An_index_signature_parameter_must_have_a_type_annotation:la(1022,1,"An_index_signature_parameter_must_have_a_type_annotation_1022","An index signature parameter must have a type annotation."),readonly_modifier_can_only_appear_on_a_property_declaration_or_index_signature:la(1024,1,"readonly_modifier_can_only_appear_on_a_property_declaration_or_index_signature_1024","'readonly' modifier can only appear on a property declaration or index signature."),An_index_signature_cannot_have_a_trailing_comma:la(1025,1,"An_index_signature_cannot_have_a_trailing_comma_1025","An index signature cannot have a trailing comma."),Accessibility_modifier_already_seen:la(1028,1,"Accessibility_modifier_already_seen_1028","Accessibility modifier already seen."),_0_modifier_must_precede_1_modifier:la(1029,1,"_0_modifier_must_precede_1_modifier_1029","'{0}' modifier must precede '{1}' modifier."),_0_modifier_already_seen:la(1030,1,"_0_modifier_already_seen_1030","'{0}' modifier already seen."),_0_modifier_cannot_appear_on_class_elements_of_this_kind:la(1031,1,"_0_modifier_cannot_appear_on_class_elements_of_this_kind_1031","'{0}' modifier cannot appear on class elements of this kind."),super_must_be_followed_by_an_argument_list_or_member_access:la(1034,1,"super_must_be_followed_by_an_argument_list_or_member_access_1034","'super' must be followed by an argument list or member access."),Only_ambient_modules_can_use_quoted_names:la(1035,1,"Only_ambient_modules_can_use_quoted_names_1035","Only ambient modules can use quoted names."),Statements_are_not_allowed_in_ambient_contexts:la(1036,1,"Statements_are_not_allowed_in_ambient_contexts_1036","Statements are not allowed in ambient contexts."),A_declare_modifier_cannot_be_used_in_an_already_ambient_context:la(1038,1,"A_declare_modifier_cannot_be_used_in_an_already_ambient_context_1038","A 'declare' modifier cannot be used in an already ambient context."),Initializers_are_not_allowed_in_ambient_contexts:la(1039,1,"Initializers_are_not_allowed_in_ambient_contexts_1039","Initializers are not allowed in ambient contexts."),_0_modifier_cannot_be_used_in_an_ambient_context:la(1040,1,"_0_modifier_cannot_be_used_in_an_ambient_context_1040","'{0}' modifier cannot be used in an ambient context."),_0_modifier_cannot_be_used_here:la(1042,1,"_0_modifier_cannot_be_used_here_1042","'{0}' modifier cannot be used here."),_0_modifier_cannot_appear_on_a_module_or_namespace_element:la(1044,1,"_0_modifier_cannot_appear_on_a_module_or_namespace_element_1044","'{0}' modifier cannot appear on a module or namespace element."),Top_level_declarations_in_d_ts_files_must_start_with_either_a_declare_or_export_modifier:la(1046,1,"Top_level_declarations_in_d_ts_files_must_start_with_either_a_declare_or_export_modifier_1046","Top-level declarations in .d.ts files must start with either a 'declare' or 'export' modifier."),A_rest_parameter_cannot_be_optional:la(1047,1,"A_rest_parameter_cannot_be_optional_1047","A rest parameter cannot be optional."),A_rest_parameter_cannot_have_an_initializer:la(1048,1,"A_rest_parameter_cannot_have_an_initializer_1048","A rest parameter cannot have an initializer."),A_set_accessor_must_have_exactly_one_parameter:la(1049,1,"A_set_accessor_must_have_exactly_one_parameter_1049","A 'set' accessor must have exactly one parameter."),A_set_accessor_cannot_have_an_optional_parameter:la(1051,1,"A_set_accessor_cannot_have_an_optional_parameter_1051","A 'set' accessor cannot have an optional parameter."),A_set_accessor_parameter_cannot_have_an_initializer:la(1052,1,"A_set_accessor_parameter_cannot_have_an_initializer_1052","A 'set' accessor parameter cannot have an initializer."),A_set_accessor_cannot_have_rest_parameter:la(1053,1,"A_set_accessor_cannot_have_rest_parameter_1053","A 'set' accessor cannot have rest parameter."),A_get_accessor_cannot_have_parameters:la(1054,1,"A_get_accessor_cannot_have_parameters_1054","A 'get' accessor cannot have parameters."),Type_0_is_not_a_valid_async_function_return_type_in_ES5_because_it_does_not_refer_to_a_Promise_compatible_constructor_value:la(1055,1,"Type_0_is_not_a_valid_async_function_return_type_in_ES5_because_it_does_not_refer_to_a_Promise_compa_1055","Type '{0}' is not a valid async function return type in ES5 because it does not refer to a Promise-compatible constructor value."),Accessors_are_only_available_when_targeting_ECMAScript_5_and_higher:la(1056,1,"Accessors_are_only_available_when_targeting_ECMAScript_5_and_higher_1056","Accessors are only available when targeting ECMAScript 5 and higher."),The_return_type_of_an_async_function_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member:la(1058,1,"The_return_type_of_an_async_function_must_either_be_a_valid_promise_or_must_not_contain_a_callable_t_1058","The return type of an async function must either be a valid promise or must not contain a callable 'then' member."),A_promise_must_have_a_then_method:la(1059,1,"A_promise_must_have_a_then_method_1059","A promise must have a 'then' method."),The_first_parameter_of_the_then_method_of_a_promise_must_be_a_callback:la(1060,1,"The_first_parameter_of_the_then_method_of_a_promise_must_be_a_callback_1060","The first parameter of the 'then' method of a promise must be a callback."),Enum_member_must_have_initializer:la(1061,1,"Enum_member_must_have_initializer_1061","Enum member must have initializer."),Type_is_referenced_directly_or_indirectly_in_the_fulfillment_callback_of_its_own_then_method:la(1062,1,"Type_is_referenced_directly_or_indirectly_in_the_fulfillment_callback_of_its_own_then_method_1062","Type is referenced directly or indirectly in the fulfillment callback of its own 'then' method."),An_export_assignment_cannot_be_used_in_a_namespace:la(1063,1,"An_export_assignment_cannot_be_used_in_a_namespace_1063","An export assignment cannot be used in a namespace."),The_return_type_of_an_async_function_or_method_must_be_the_global_Promise_T_type_Did_you_mean_to_write_Promise_0:la(1064,1,"The_return_type_of_an_async_function_or_method_must_be_the_global_Promise_T_type_Did_you_mean_to_wri_1064","The return type of an async function or method must be the global Promise type. Did you mean to write 'Promise<{0}>'?"),The_return_type_of_an_async_function_or_method_must_be_the_global_Promise_T_type:la(1065,1,"The_return_type_of_an_async_function_or_method_must_be_the_global_Promise_T_type_1065","The return type of an async function or method must be the global Promise type."),In_ambient_enum_declarations_member_initializer_must_be_constant_expression:la(1066,1,"In_ambient_enum_declarations_member_initializer_must_be_constant_expression_1066","In ambient enum declarations member initializer must be constant expression."),Unexpected_token_A_constructor_method_accessor_or_property_was_expected:la(1068,1,"Unexpected_token_A_constructor_method_accessor_or_property_was_expected_1068","Unexpected token. A constructor, method, accessor, or property was expected."),Unexpected_token_A_type_parameter_name_was_expected_without_curly_braces:la(1069,1,"Unexpected_token_A_type_parameter_name_was_expected_without_curly_braces_1069","Unexpected token. A type parameter name was expected without curly braces."),_0_modifier_cannot_appear_on_a_type_member:la(1070,1,"_0_modifier_cannot_appear_on_a_type_member_1070","'{0}' modifier cannot appear on a type member."),_0_modifier_cannot_appear_on_an_index_signature:la(1071,1,"_0_modifier_cannot_appear_on_an_index_signature_1071","'{0}' modifier cannot appear on an index signature."),A_0_modifier_cannot_be_used_with_an_import_declaration:la(1079,1,"A_0_modifier_cannot_be_used_with_an_import_declaration_1079","A '{0}' modifier cannot be used with an import declaration."),Invalid_reference_directive_syntax:la(1084,1,"Invalid_reference_directive_syntax_1084","Invalid 'reference' directive syntax."),_0_modifier_cannot_appear_on_a_constructor_declaration:la(1089,1,"_0_modifier_cannot_appear_on_a_constructor_declaration_1089","'{0}' modifier cannot appear on a constructor declaration."),_0_modifier_cannot_appear_on_a_parameter:la(1090,1,"_0_modifier_cannot_appear_on_a_parameter_1090","'{0}' modifier cannot appear on a parameter."),Only_a_single_variable_declaration_is_allowed_in_a_for_in_statement:la(1091,1,"Only_a_single_variable_declaration_is_allowed_in_a_for_in_statement_1091","Only a single variable declaration is allowed in a 'for...in' statement."),Type_parameters_cannot_appear_on_a_constructor_declaration:la(1092,1,"Type_parameters_cannot_appear_on_a_constructor_declaration_1092","Type parameters cannot appear on a constructor declaration."),Type_annotation_cannot_appear_on_a_constructor_declaration:la(1093,1,"Type_annotation_cannot_appear_on_a_constructor_declaration_1093","Type annotation cannot appear on a constructor declaration."),An_accessor_cannot_have_type_parameters:la(1094,1,"An_accessor_cannot_have_type_parameters_1094","An accessor cannot have type parameters."),A_set_accessor_cannot_have_a_return_type_annotation:la(1095,1,"A_set_accessor_cannot_have_a_return_type_annotation_1095","A 'set' accessor cannot have a return type annotation."),An_index_signature_must_have_exactly_one_parameter:la(1096,1,"An_index_signature_must_have_exactly_one_parameter_1096","An index signature must have exactly one parameter."),_0_list_cannot_be_empty:la(1097,1,"_0_list_cannot_be_empty_1097","'{0}' list cannot be empty."),Type_parameter_list_cannot_be_empty:la(1098,1,"Type_parameter_list_cannot_be_empty_1098","Type parameter list cannot be empty."),Type_argument_list_cannot_be_empty:la(1099,1,"Type_argument_list_cannot_be_empty_1099","Type argument list cannot be empty."),Invalid_use_of_0_in_strict_mode:la(1100,1,"Invalid_use_of_0_in_strict_mode_1100","Invalid use of '{0}' in strict mode."),with_statements_are_not_allowed_in_strict_mode:la(1101,1,"with_statements_are_not_allowed_in_strict_mode_1101","'with' statements are not allowed in strict mode."),delete_cannot_be_called_on_an_identifier_in_strict_mode:la(1102,1,"delete_cannot_be_called_on_an_identifier_in_strict_mode_1102","'delete' cannot be called on an identifier in strict mode."),for_await_loops_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules:la(1103,1,"for_await_loops_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules_1103","'for await' loops are only allowed within async functions and at the top levels of modules."),A_continue_statement_can_only_be_used_within_an_enclosing_iteration_statement:la(1104,1,"A_continue_statement_can_only_be_used_within_an_enclosing_iteration_statement_1104","A 'continue' statement can only be used within an enclosing iteration statement."),A_break_statement_can_only_be_used_within_an_enclosing_iteration_or_switch_statement:la(1105,1,"A_break_statement_can_only_be_used_within_an_enclosing_iteration_or_switch_statement_1105","A 'break' statement can only be used within an enclosing iteration or switch statement."),The_left_hand_side_of_a_for_of_statement_may_not_be_async:la(1106,1,"The_left_hand_side_of_a_for_of_statement_may_not_be_async_1106","The left-hand side of a 'for...of' statement may not be 'async'."),Jump_target_cannot_cross_function_boundary:la(1107,1,"Jump_target_cannot_cross_function_boundary_1107","Jump target cannot cross function boundary."),A_return_statement_can_only_be_used_within_a_function_body:la(1108,1,"A_return_statement_can_only_be_used_within_a_function_body_1108","A 'return' statement can only be used within a function body."),Expression_expected:la(1109,1,"Expression_expected_1109","Expression expected."),Type_expected:la(1110,1,"Type_expected_1110","Type expected."),Private_field_0_must_be_declared_in_an_enclosing_class:la(1111,1,"Private_field_0_must_be_declared_in_an_enclosing_class_1111","Private field '{0}' must be declared in an enclosing class."),A_default_clause_cannot_appear_more_than_once_in_a_switch_statement:la(1113,1,"A_default_clause_cannot_appear_more_than_once_in_a_switch_statement_1113","A 'default' clause cannot appear more than once in a 'switch' statement."),Duplicate_label_0:la(1114,1,"Duplicate_label_0_1114","Duplicate label '{0}'."),A_continue_statement_can_only_jump_to_a_label_of_an_enclosing_iteration_statement:la(1115,1,"A_continue_statement_can_only_jump_to_a_label_of_an_enclosing_iteration_statement_1115","A 'continue' statement can only jump to a label of an enclosing iteration statement."),A_break_statement_can_only_jump_to_a_label_of_an_enclosing_statement:la(1116,1,"A_break_statement_can_only_jump_to_a_label_of_an_enclosing_statement_1116","A 'break' statement can only jump to a label of an enclosing statement."),An_object_literal_cannot_have_multiple_properties_with_the_same_name:la(1117,1,"An_object_literal_cannot_have_multiple_properties_with_the_same_name_1117","An object literal cannot have multiple properties with the same name."),An_object_literal_cannot_have_multiple_get_Slashset_accessors_with_the_same_name:la(1118,1,"An_object_literal_cannot_have_multiple_get_Slashset_accessors_with_the_same_name_1118","An object literal cannot have multiple get/set accessors with the same name."),An_object_literal_cannot_have_property_and_accessor_with_the_same_name:la(1119,1,"An_object_literal_cannot_have_property_and_accessor_with_the_same_name_1119","An object literal cannot have property and accessor with the same name."),An_export_assignment_cannot_have_modifiers:la(1120,1,"An_export_assignment_cannot_have_modifiers_1120","An export assignment cannot have modifiers."),Octal_literals_are_not_allowed_Use_the_syntax_0:la(1121,1,"Octal_literals_are_not_allowed_Use_the_syntax_0_1121","Octal literals are not allowed. Use the syntax '{0}'."),Variable_declaration_list_cannot_be_empty:la(1123,1,"Variable_declaration_list_cannot_be_empty_1123","Variable declaration list cannot be empty."),Digit_expected:la(1124,1,"Digit_expected_1124","Digit expected."),Hexadecimal_digit_expected:la(1125,1,"Hexadecimal_digit_expected_1125","Hexadecimal digit expected."),Unexpected_end_of_text:la(1126,1,"Unexpected_end_of_text_1126","Unexpected end of text."),Invalid_character:la(1127,1,"Invalid_character_1127","Invalid character."),Declaration_or_statement_expected:la(1128,1,"Declaration_or_statement_expected_1128","Declaration or statement expected."),Statement_expected:la(1129,1,"Statement_expected_1129","Statement expected."),case_or_default_expected:la(1130,1,"case_or_default_expected_1130","'case' or 'default' expected."),Property_or_signature_expected:la(1131,1,"Property_or_signature_expected_1131","Property or signature expected."),Enum_member_expected:la(1132,1,"Enum_member_expected_1132","Enum member expected."),Variable_declaration_expected:la(1134,1,"Variable_declaration_expected_1134","Variable declaration expected."),Argument_expression_expected:la(1135,1,"Argument_expression_expected_1135","Argument expression expected."),Property_assignment_expected:la(1136,1,"Property_assignment_expected_1136","Property assignment expected."),Expression_or_comma_expected:la(1137,1,"Expression_or_comma_expected_1137","Expression or comma expected."),Parameter_declaration_expected:la(1138,1,"Parameter_declaration_expected_1138","Parameter declaration expected."),Type_parameter_declaration_expected:la(1139,1,"Type_parameter_declaration_expected_1139","Type parameter declaration expected."),Type_argument_expected:la(1140,1,"Type_argument_expected_1140","Type argument expected."),String_literal_expected:la(1141,1,"String_literal_expected_1141","String literal expected."),Line_break_not_permitted_here:la(1142,1,"Line_break_not_permitted_here_1142","Line break not permitted here."),or_expected:la(1144,1,"or_expected_1144","'{' or ';' expected."),or_JSX_element_expected:la(1145,1,"or_JSX_element_expected_1145","'{' or JSX element expected."),Declaration_expected:la(1146,1,"Declaration_expected_1146","Declaration expected."),Import_declarations_in_a_namespace_cannot_reference_a_module:la(1147,1,"Import_declarations_in_a_namespace_cannot_reference_a_module_1147","Import declarations in a namespace cannot reference a module."),Cannot_use_imports_exports_or_module_augmentations_when_module_is_none:la(1148,1,"Cannot_use_imports_exports_or_module_augmentations_when_module_is_none_1148","Cannot use imports, exports, or module augmentations when '--module' is 'none'."),File_name_0_differs_from_already_included_file_name_1_only_in_casing:la(1149,1,"File_name_0_differs_from_already_included_file_name_1_only_in_casing_1149","File name '{0}' differs from already included file name '{1}' only in casing."),_0_declarations_must_be_initialized:la(1155,1,"_0_declarations_must_be_initialized_1155","'{0}' declarations must be initialized."),_0_declarations_can_only_be_declared_inside_a_block:la(1156,1,"_0_declarations_can_only_be_declared_inside_a_block_1156","'{0}' declarations can only be declared inside a block."),Unterminated_template_literal:la(1160,1,"Unterminated_template_literal_1160","Unterminated template literal."),Unterminated_regular_expression_literal:la(1161,1,"Unterminated_regular_expression_literal_1161","Unterminated regular expression literal."),An_object_member_cannot_be_declared_optional:la(1162,1,"An_object_member_cannot_be_declared_optional_1162","An object member cannot be declared optional."),A_yield_expression_is_only_allowed_in_a_generator_body:la(1163,1,"A_yield_expression_is_only_allowed_in_a_generator_body_1163","A 'yield' expression is only allowed in a generator body."),Computed_property_names_are_not_allowed_in_enums:la(1164,1,"Computed_property_names_are_not_allowed_in_enums_1164","Computed property names are not allowed in enums."),A_computed_property_name_in_an_ambient_context_must_refer_to_an_expression_whose_type_is_a_literal_type_or_a_unique_symbol_type:la(1165,1,"A_computed_property_name_in_an_ambient_context_must_refer_to_an_expression_whose_type_is_a_literal_t_1165","A computed property name in an ambient context must refer to an expression whose type is a literal type or a 'unique symbol' type."),A_computed_property_name_in_a_class_property_declaration_must_have_a_simple_literal_type_or_a_unique_symbol_type:la(1166,1,"A_computed_property_name_in_a_class_property_declaration_must_have_a_simple_literal_type_or_a_unique_1166","A computed property name in a class property declaration must have a simple literal type or a 'unique symbol' type."),A_computed_property_name_in_a_method_overload_must_refer_to_an_expression_whose_type_is_a_literal_type_or_a_unique_symbol_type:la(1168,1,"A_computed_property_name_in_a_method_overload_must_refer_to_an_expression_whose_type_is_a_literal_ty_1168","A computed property name in a method overload must refer to an expression whose type is a literal type or a 'unique symbol' type."),A_computed_property_name_in_an_interface_must_refer_to_an_expression_whose_type_is_a_literal_type_or_a_unique_symbol_type:la(1169,1,"A_computed_property_name_in_an_interface_must_refer_to_an_expression_whose_type_is_a_literal_type_or_1169","A computed property name in an interface must refer to an expression whose type is a literal type or a 'unique symbol' type."),A_computed_property_name_in_a_type_literal_must_refer_to_an_expression_whose_type_is_a_literal_type_or_a_unique_symbol_type:la(1170,1,"A_computed_property_name_in_a_type_literal_must_refer_to_an_expression_whose_type_is_a_literal_type__1170","A computed property name in a type literal must refer to an expression whose type is a literal type or a 'unique symbol' type."),A_comma_expression_is_not_allowed_in_a_computed_property_name:la(1171,1,"A_comma_expression_is_not_allowed_in_a_computed_property_name_1171","A comma expression is not allowed in a computed property name."),extends_clause_already_seen:la(1172,1,"extends_clause_already_seen_1172","'extends' clause already seen."),extends_clause_must_precede_implements_clause:la(1173,1,"extends_clause_must_precede_implements_clause_1173","'extends' clause must precede 'implements' clause."),Classes_can_only_extend_a_single_class:la(1174,1,"Classes_can_only_extend_a_single_class_1174","Classes can only extend a single class."),implements_clause_already_seen:la(1175,1,"implements_clause_already_seen_1175","'implements' clause already seen."),Interface_declaration_cannot_have_implements_clause:la(1176,1,"Interface_declaration_cannot_have_implements_clause_1176","Interface declaration cannot have 'implements' clause."),Binary_digit_expected:la(1177,1,"Binary_digit_expected_1177","Binary digit expected."),Octal_digit_expected:la(1178,1,"Octal_digit_expected_1178","Octal digit expected."),Unexpected_token_expected:la(1179,1,"Unexpected_token_expected_1179","Unexpected token. '{' expected."),Property_destructuring_pattern_expected:la(1180,1,"Property_destructuring_pattern_expected_1180","Property destructuring pattern expected."),Array_element_destructuring_pattern_expected:la(1181,1,"Array_element_destructuring_pattern_expected_1181","Array element destructuring pattern expected."),A_destructuring_declaration_must_have_an_initializer:la(1182,1,"A_destructuring_declaration_must_have_an_initializer_1182","A destructuring declaration must have an initializer."),An_implementation_cannot_be_declared_in_ambient_contexts:la(1183,1,"An_implementation_cannot_be_declared_in_ambient_contexts_1183","An implementation cannot be declared in ambient contexts."),Modifiers_cannot_appear_here:la(1184,1,"Modifiers_cannot_appear_here_1184","Modifiers cannot appear here."),Merge_conflict_marker_encountered:la(1185,1,"Merge_conflict_marker_encountered_1185","Merge conflict marker encountered."),A_rest_element_cannot_have_an_initializer:la(1186,1,"A_rest_element_cannot_have_an_initializer_1186","A rest element cannot have an initializer."),A_parameter_property_may_not_be_declared_using_a_binding_pattern:la(1187,1,"A_parameter_property_may_not_be_declared_using_a_binding_pattern_1187","A parameter property may not be declared using a binding pattern."),Only_a_single_variable_declaration_is_allowed_in_a_for_of_statement:la(1188,1,"Only_a_single_variable_declaration_is_allowed_in_a_for_of_statement_1188","Only a single variable declaration is allowed in a 'for...of' statement."),The_variable_declaration_of_a_for_in_statement_cannot_have_an_initializer:la(1189,1,"The_variable_declaration_of_a_for_in_statement_cannot_have_an_initializer_1189","The variable declaration of a 'for...in' statement cannot have an initializer."),The_variable_declaration_of_a_for_of_statement_cannot_have_an_initializer:la(1190,1,"The_variable_declaration_of_a_for_of_statement_cannot_have_an_initializer_1190","The variable declaration of a 'for...of' statement cannot have an initializer."),An_import_declaration_cannot_have_modifiers:la(1191,1,"An_import_declaration_cannot_have_modifiers_1191","An import declaration cannot have modifiers."),Module_0_has_no_default_export:la(1192,1,"Module_0_has_no_default_export_1192","Module '{0}' has no default export."),An_export_declaration_cannot_have_modifiers:la(1193,1,"An_export_declaration_cannot_have_modifiers_1193","An export declaration cannot have modifiers."),Export_declarations_are_not_permitted_in_a_namespace:la(1194,1,"Export_declarations_are_not_permitted_in_a_namespace_1194","Export declarations are not permitted in a namespace."),export_Asterisk_does_not_re_export_a_default:la(1195,1,"export_Asterisk_does_not_re_export_a_default_1195","'export *' does not re-export a default."),Catch_clause_variable_type_annotation_must_be_any_or_unknown_if_specified:la(1196,1,"Catch_clause_variable_type_annotation_must_be_any_or_unknown_if_specified_1196","Catch clause variable type annotation must be 'any' or 'unknown' if specified."),Catch_clause_variable_cannot_have_an_initializer:la(1197,1,"Catch_clause_variable_cannot_have_an_initializer_1197","Catch clause variable cannot have an initializer."),An_extended_Unicode_escape_value_must_be_between_0x0_and_0x10FFFF_inclusive:la(1198,1,"An_extended_Unicode_escape_value_must_be_between_0x0_and_0x10FFFF_inclusive_1198","An extended Unicode escape value must be between 0x0 and 0x10FFFF inclusive."),Unterminated_Unicode_escape_sequence:la(1199,1,"Unterminated_Unicode_escape_sequence_1199","Unterminated Unicode escape sequence."),Line_terminator_not_permitted_before_arrow:la(1200,1,"Line_terminator_not_permitted_before_arrow_1200","Line terminator not permitted before arrow."),Import_assignment_cannot_be_used_when_targeting_ECMAScript_modules_Consider_using_import_Asterisk_as_ns_from_mod_import_a_from_mod_import_d_from_mod_or_another_module_format_instead:la(1202,1,"Import_assignment_cannot_be_used_when_targeting_ECMAScript_modules_Consider_using_import_Asterisk_as_1202","Import assignment cannot be used when targeting ECMAScript modules. Consider using 'import * as ns from \"mod\"', 'import {a} from \"mod\"', 'import d from \"mod\"', or another module format instead."),Export_assignment_cannot_be_used_when_targeting_ECMAScript_modules_Consider_using_export_default_or_another_module_format_instead:la(1203,1,"Export_assignment_cannot_be_used_when_targeting_ECMAScript_modules_Consider_using_export_default_or__1203","Export assignment cannot be used when targeting ECMAScript modules. Consider using 'export default' or another module format instead."),Re_exporting_a_type_when_0_is_enabled_requires_using_export_type:la(1205,1,"Re_exporting_a_type_when_0_is_enabled_requires_using_export_type_1205","Re-exporting a type when '{0}' is enabled requires using 'export type'."),Decorators_are_not_valid_here:la(1206,1,"Decorators_are_not_valid_here_1206","Decorators are not valid here."),Decorators_cannot_be_applied_to_multiple_get_Slashset_accessors_of_the_same_name:la(1207,1,"Decorators_cannot_be_applied_to_multiple_get_Slashset_accessors_of_the_same_name_1207","Decorators cannot be applied to multiple get/set accessors of the same name."),Invalid_optional_chain_from_new_expression_Did_you_mean_to_call_0:la(1209,1,"Invalid_optional_chain_from_new_expression_Did_you_mean_to_call_0_1209","Invalid optional chain from new expression. Did you mean to call '{0}()'?"),Code_contained_in_a_class_is_evaluated_in_JavaScript_s_strict_mode_which_does_not_allow_this_use_of_0_For_more_information_see_https_Colon_Slash_Slashdeveloper_mozilla_org_Slashen_US_Slashdocs_SlashWeb_SlashJavaScript_SlashReference_SlashStrict_mode:la(1210,1,"Code_contained_in_a_class_is_evaluated_in_JavaScript_s_strict_mode_which_does_not_allow_this_use_of__1210","Code contained in a class is evaluated in JavaScript's strict mode which does not allow this use of '{0}'. For more information, see https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Strict_mode."),A_class_declaration_without_the_default_modifier_must_have_a_name:la(1211,1,"A_class_declaration_without_the_default_modifier_must_have_a_name_1211","A class declaration without the 'default' modifier must have a name."),Identifier_expected_0_is_a_reserved_word_in_strict_mode:la(1212,1,"Identifier_expected_0_is_a_reserved_word_in_strict_mode_1212","Identifier expected. '{0}' is a reserved word in strict mode."),Identifier_expected_0_is_a_reserved_word_in_strict_mode_Class_definitions_are_automatically_in_strict_mode:la(1213,1,"Identifier_expected_0_is_a_reserved_word_in_strict_mode_Class_definitions_are_automatically_in_stric_1213","Identifier expected. '{0}' is a reserved word in strict mode. Class definitions are automatically in strict mode."),Identifier_expected_0_is_a_reserved_word_in_strict_mode_Modules_are_automatically_in_strict_mode:la(1214,1,"Identifier_expected_0_is_a_reserved_word_in_strict_mode_Modules_are_automatically_in_strict_mode_1214","Identifier expected. '{0}' is a reserved word in strict mode. Modules are automatically in strict mode."),Invalid_use_of_0_Modules_are_automatically_in_strict_mode:la(1215,1,"Invalid_use_of_0_Modules_are_automatically_in_strict_mode_1215","Invalid use of '{0}'. Modules are automatically in strict mode."),Identifier_expected_esModule_is_reserved_as_an_exported_marker_when_transforming_ECMAScript_modules:la(1216,1,"Identifier_expected_esModule_is_reserved_as_an_exported_marker_when_transforming_ECMAScript_modules_1216","Identifier expected. '__esModule' is reserved as an exported marker when transforming ECMAScript modules."),Export_assignment_is_not_supported_when_module_flag_is_system:la(1218,1,"Export_assignment_is_not_supported_when_module_flag_is_system_1218","Export assignment is not supported when '--module' flag is 'system'."),Generators_are_not_allowed_in_an_ambient_context:la(1221,1,"Generators_are_not_allowed_in_an_ambient_context_1221","Generators are not allowed in an ambient context."),An_overload_signature_cannot_be_declared_as_a_generator:la(1222,1,"An_overload_signature_cannot_be_declared_as_a_generator_1222","An overload signature cannot be declared as a generator."),_0_tag_already_specified:la(1223,1,"_0_tag_already_specified_1223","'{0}' tag already specified."),Signature_0_must_be_a_type_predicate:la(1224,1,"Signature_0_must_be_a_type_predicate_1224","Signature '{0}' must be a type predicate."),Cannot_find_parameter_0:la(1225,1,"Cannot_find_parameter_0_1225","Cannot find parameter '{0}'."),Type_predicate_0_is_not_assignable_to_1:la(1226,1,"Type_predicate_0_is_not_assignable_to_1_1226","Type predicate '{0}' is not assignable to '{1}'."),Parameter_0_is_not_in_the_same_position_as_parameter_1:la(1227,1,"Parameter_0_is_not_in_the_same_position_as_parameter_1_1227","Parameter '{0}' is not in the same position as parameter '{1}'."),A_type_predicate_is_only_allowed_in_return_type_position_for_functions_and_methods:la(1228,1,"A_type_predicate_is_only_allowed_in_return_type_position_for_functions_and_methods_1228","A type predicate is only allowed in return type position for functions and methods."),A_type_predicate_cannot_reference_a_rest_parameter:la(1229,1,"A_type_predicate_cannot_reference_a_rest_parameter_1229","A type predicate cannot reference a rest parameter."),A_type_predicate_cannot_reference_element_0_in_a_binding_pattern:la(1230,1,"A_type_predicate_cannot_reference_element_0_in_a_binding_pattern_1230","A type predicate cannot reference element '{0}' in a binding pattern."),An_export_assignment_must_be_at_the_top_level_of_a_file_or_module_declaration:la(1231,1,"An_export_assignment_must_be_at_the_top_level_of_a_file_or_module_declaration_1231","An export assignment must be at the top level of a file or module declaration."),An_import_declaration_can_only_be_used_at_the_top_level_of_a_namespace_or_module:la(1232,1,"An_import_declaration_can_only_be_used_at_the_top_level_of_a_namespace_or_module_1232","An import declaration can only be used at the top level of a namespace or module."),An_export_declaration_can_only_be_used_at_the_top_level_of_a_namespace_or_module:la(1233,1,"An_export_declaration_can_only_be_used_at_the_top_level_of_a_namespace_or_module_1233","An export declaration can only be used at the top level of a namespace or module."),An_ambient_module_declaration_is_only_allowed_at_the_top_level_in_a_file:la(1234,1,"An_ambient_module_declaration_is_only_allowed_at_the_top_level_in_a_file_1234","An ambient module declaration is only allowed at the top level in a file."),A_namespace_declaration_is_only_allowed_at_the_top_level_of_a_namespace_or_module:la(1235,1,"A_namespace_declaration_is_only_allowed_at_the_top_level_of_a_namespace_or_module_1235","A namespace declaration is only allowed at the top level of a namespace or module."),The_return_type_of_a_property_decorator_function_must_be_either_void_or_any:la(1236,1,"The_return_type_of_a_property_decorator_function_must_be_either_void_or_any_1236","The return type of a property decorator function must be either 'void' or 'any'."),The_return_type_of_a_parameter_decorator_function_must_be_either_void_or_any:la(1237,1,"The_return_type_of_a_parameter_decorator_function_must_be_either_void_or_any_1237","The return type of a parameter decorator function must be either 'void' or 'any'."),Unable_to_resolve_signature_of_class_decorator_when_called_as_an_expression:la(1238,1,"Unable_to_resolve_signature_of_class_decorator_when_called_as_an_expression_1238","Unable to resolve signature of class decorator when called as an expression."),Unable_to_resolve_signature_of_parameter_decorator_when_called_as_an_expression:la(1239,1,"Unable_to_resolve_signature_of_parameter_decorator_when_called_as_an_expression_1239","Unable to resolve signature of parameter decorator when called as an expression."),Unable_to_resolve_signature_of_property_decorator_when_called_as_an_expression:la(1240,1,"Unable_to_resolve_signature_of_property_decorator_when_called_as_an_expression_1240","Unable to resolve signature of property decorator when called as an expression."),Unable_to_resolve_signature_of_method_decorator_when_called_as_an_expression:la(1241,1,"Unable_to_resolve_signature_of_method_decorator_when_called_as_an_expression_1241","Unable to resolve signature of method decorator when called as an expression."),abstract_modifier_can_only_appear_on_a_class_method_or_property_declaration:la(1242,1,"abstract_modifier_can_only_appear_on_a_class_method_or_property_declaration_1242","'abstract' modifier can only appear on a class, method, or property declaration."),_0_modifier_cannot_be_used_with_1_modifier:la(1243,1,"_0_modifier_cannot_be_used_with_1_modifier_1243","'{0}' modifier cannot be used with '{1}' modifier."),Abstract_methods_can_only_appear_within_an_abstract_class:la(1244,1,"Abstract_methods_can_only_appear_within_an_abstract_class_1244","Abstract methods can only appear within an abstract class."),Method_0_cannot_have_an_implementation_because_it_is_marked_abstract:la(1245,1,"Method_0_cannot_have_an_implementation_because_it_is_marked_abstract_1245","Method '{0}' cannot have an implementation because it is marked abstract."),An_interface_property_cannot_have_an_initializer:la(1246,1,"An_interface_property_cannot_have_an_initializer_1246","An interface property cannot have an initializer."),A_type_literal_property_cannot_have_an_initializer:la(1247,1,"A_type_literal_property_cannot_have_an_initializer_1247","A type literal property cannot have an initializer."),A_class_member_cannot_have_the_0_keyword:la(1248,1,"A_class_member_cannot_have_the_0_keyword_1248","A class member cannot have the '{0}' keyword."),A_decorator_can_only_decorate_a_method_implementation_not_an_overload:la(1249,1,"A_decorator_can_only_decorate_a_method_implementation_not_an_overload_1249","A decorator can only decorate a method implementation, not an overload."),Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES5:la(1250,1,"Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES5_1250","Function declarations are not allowed inside blocks in strict mode when targeting 'ES5'."),Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES5_Class_definitions_are_automatically_in_strict_mode:la(1251,1,"Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES5_Class_definiti_1251","Function declarations are not allowed inside blocks in strict mode when targeting 'ES5'. Class definitions are automatically in strict mode."),Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES5_Modules_are_automatically_in_strict_mode:la(1252,1,"Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES5_Modules_are_au_1252","Function declarations are not allowed inside blocks in strict mode when targeting 'ES5'. Modules are automatically in strict mode."),Abstract_properties_can_only_appear_within_an_abstract_class:la(1253,1,"Abstract_properties_can_only_appear_within_an_abstract_class_1253","Abstract properties can only appear within an abstract class."),A_const_initializer_in_an_ambient_context_must_be_a_string_or_numeric_literal_or_literal_enum_reference:la(1254,1,"A_const_initializer_in_an_ambient_context_must_be_a_string_or_numeric_literal_or_literal_enum_refere_1254","A 'const' initializer in an ambient context must be a string or numeric literal or literal enum reference."),A_definite_assignment_assertion_is_not_permitted_in_this_context:la(1255,1,"A_definite_assignment_assertion_is_not_permitted_in_this_context_1255","A definite assignment assertion '!' is not permitted in this context."),A_required_element_cannot_follow_an_optional_element:la(1257,1,"A_required_element_cannot_follow_an_optional_element_1257","A required element cannot follow an optional element."),A_default_export_must_be_at_the_top_level_of_a_file_or_module_declaration:la(1258,1,"A_default_export_must_be_at_the_top_level_of_a_file_or_module_declaration_1258","A default export must be at the top level of a file or module declaration."),Module_0_can_only_be_default_imported_using_the_1_flag:la(1259,1,"Module_0_can_only_be_default_imported_using_the_1_flag_1259","Module '{0}' can only be default-imported using the '{1}' flag"),Keywords_cannot_contain_escape_characters:la(1260,1,"Keywords_cannot_contain_escape_characters_1260","Keywords cannot contain escape characters."),Already_included_file_name_0_differs_from_file_name_1_only_in_casing:la(1261,1,"Already_included_file_name_0_differs_from_file_name_1_only_in_casing_1261","Already included file name '{0}' differs from file name '{1}' only in casing."),Identifier_expected_0_is_a_reserved_word_at_the_top_level_of_a_module:la(1262,1,"Identifier_expected_0_is_a_reserved_word_at_the_top_level_of_a_module_1262","Identifier expected. '{0}' is a reserved word at the top-level of a module."),Declarations_with_initializers_cannot_also_have_definite_assignment_assertions:la(1263,1,"Declarations_with_initializers_cannot_also_have_definite_assignment_assertions_1263","Declarations with initializers cannot also have definite assignment assertions."),Declarations_with_definite_assignment_assertions_must_also_have_type_annotations:la(1264,1,"Declarations_with_definite_assignment_assertions_must_also_have_type_annotations_1264","Declarations with definite assignment assertions must also have type annotations."),A_rest_element_cannot_follow_another_rest_element:la(1265,1,"A_rest_element_cannot_follow_another_rest_element_1265","A rest element cannot follow another rest element."),An_optional_element_cannot_follow_a_rest_element:la(1266,1,"An_optional_element_cannot_follow_a_rest_element_1266","An optional element cannot follow a rest element."),Property_0_cannot_have_an_initializer_because_it_is_marked_abstract:la(1267,1,"Property_0_cannot_have_an_initializer_because_it_is_marked_abstract_1267","Property '{0}' cannot have an initializer because it is marked abstract."),An_index_signature_parameter_type_must_be_string_number_symbol_or_a_template_literal_type:la(1268,1,"An_index_signature_parameter_type_must_be_string_number_symbol_or_a_template_literal_type_1268","An index signature parameter type must be 'string', 'number', 'symbol', or a template literal type."),Cannot_use_export_import_on_a_type_or_type_only_namespace_when_0_is_enabled:la(1269,1,"Cannot_use_export_import_on_a_type_or_type_only_namespace_when_0_is_enabled_1269","Cannot use 'export import' on a type or type-only namespace when '{0}' is enabled."),Decorator_function_return_type_0_is_not_assignable_to_type_1:la(1270,1,"Decorator_function_return_type_0_is_not_assignable_to_type_1_1270","Decorator function return type '{0}' is not assignable to type '{1}'."),Decorator_function_return_type_is_0_but_is_expected_to_be_void_or_any:la(1271,1,"Decorator_function_return_type_is_0_but_is_expected_to_be_void_or_any_1271","Decorator function return type is '{0}' but is expected to be 'void' or 'any'."),A_type_referenced_in_a_decorated_signature_must_be_imported_with_import_type_or_a_namespace_import_when_isolatedModules_and_emitDecoratorMetadata_are_enabled:la(1272,1,"A_type_referenced_in_a_decorated_signature_must_be_imported_with_import_type_or_a_namespace_import_w_1272","A type referenced in a decorated signature must be imported with 'import type' or a namespace import when 'isolatedModules' and 'emitDecoratorMetadata' are enabled."),_0_modifier_cannot_appear_on_a_type_parameter:la(1273,1,"_0_modifier_cannot_appear_on_a_type_parameter_1273","'{0}' modifier cannot appear on a type parameter"),_0_modifier_can_only_appear_on_a_type_parameter_of_a_class_interface_or_type_alias:la(1274,1,"_0_modifier_can_only_appear_on_a_type_parameter_of_a_class_interface_or_type_alias_1274","'{0}' modifier can only appear on a type parameter of a class, interface or type alias"),accessor_modifier_can_only_appear_on_a_property_declaration:la(1275,1,"accessor_modifier_can_only_appear_on_a_property_declaration_1275","'accessor' modifier can only appear on a property declaration."),An_accessor_property_cannot_be_declared_optional:la(1276,1,"An_accessor_property_cannot_be_declared_optional_1276","An 'accessor' property cannot be declared optional."),_0_modifier_can_only_appear_on_a_type_parameter_of_a_function_method_or_class:la(1277,1,"_0_modifier_can_only_appear_on_a_type_parameter_of_a_function_method_or_class_1277","'{0}' modifier can only appear on a type parameter of a function, method or class"),The_runtime_will_invoke_the_decorator_with_1_arguments_but_the_decorator_expects_0:la(1278,1,"The_runtime_will_invoke_the_decorator_with_1_arguments_but_the_decorator_expects_0_1278","The runtime will invoke the decorator with {1} arguments, but the decorator expects {0}."),The_runtime_will_invoke_the_decorator_with_1_arguments_but_the_decorator_expects_at_least_0:la(1279,1,"The_runtime_will_invoke_the_decorator_with_1_arguments_but_the_decorator_expects_at_least_0_1279","The runtime will invoke the decorator with {1} arguments, but the decorator expects at least {0}."),Namespaces_are_not_allowed_in_global_script_files_when_0_is_enabled_If_this_file_is_not_intended_to_be_a_global_script_set_moduleDetection_to_force_or_add_an_empty_export_statement:la(1280,1,"Namespaces_are_not_allowed_in_global_script_files_when_0_is_enabled_If_this_file_is_not_intended_to__1280","Namespaces are not allowed in global script files when '{0}' is enabled. If this file is not intended to be a global script, set 'moduleDetection' to 'force' or add an empty 'export {}' statement."),Cannot_access_0_from_another_file_without_qualification_when_1_is_enabled_Use_2_instead:la(1281,1,"Cannot_access_0_from_another_file_without_qualification_when_1_is_enabled_Use_2_instead_1281","Cannot access '{0}' from another file without qualification when '{1}' is enabled. Use '{2}' instead."),An_export_declaration_must_reference_a_value_when_verbatimModuleSyntax_is_enabled_but_0_only_refers_to_a_type:la(1282,1,"An_export_declaration_must_reference_a_value_when_verbatimModuleSyntax_is_enabled_but_0_only_refers__1282","An 'export =' declaration must reference a value when 'verbatimModuleSyntax' is enabled, but '{0}' only refers to a type."),An_export_declaration_must_reference_a_real_value_when_verbatimModuleSyntax_is_enabled_but_0_resolves_to_a_type_only_declaration:la(1283,1,"An_export_declaration_must_reference_a_real_value_when_verbatimModuleSyntax_is_enabled_but_0_resolve_1283","An 'export =' declaration must reference a real value when 'verbatimModuleSyntax' is enabled, but '{0}' resolves to a type-only declaration."),An_export_default_must_reference_a_value_when_verbatimModuleSyntax_is_enabled_but_0_only_refers_to_a_type:la(1284,1,"An_export_default_must_reference_a_value_when_verbatimModuleSyntax_is_enabled_but_0_only_refers_to_a_1284","An 'export default' must reference a value when 'verbatimModuleSyntax' is enabled, but '{0}' only refers to a type."),An_export_default_must_reference_a_real_value_when_verbatimModuleSyntax_is_enabled_but_0_resolves_to_a_type_only_declaration:la(1285,1,"An_export_default_must_reference_a_real_value_when_verbatimModuleSyntax_is_enabled_but_0_resolves_to_1285","An 'export default' must reference a real value when 'verbatimModuleSyntax' is enabled, but '{0}' resolves to a type-only declaration."),ECMAScript_imports_and_exports_cannot_be_written_in_a_CommonJS_file_under_verbatimModuleSyntax:la(1286,1,"ECMAScript_imports_and_exports_cannot_be_written_in_a_CommonJS_file_under_verbatimModuleSyntax_1286","ECMAScript imports and exports cannot be written in a CommonJS file under 'verbatimModuleSyntax'."),A_top_level_export_modifier_cannot_be_used_on_value_declarations_in_a_CommonJS_module_when_verbatimModuleSyntax_is_enabled:la(1287,1,"A_top_level_export_modifier_cannot_be_used_on_value_declarations_in_a_CommonJS_module_when_verbatimM_1287","A top-level 'export' modifier cannot be used on value declarations in a CommonJS module when 'verbatimModuleSyntax' is enabled."),An_import_alias_cannot_resolve_to_a_type_or_type_only_declaration_when_verbatimModuleSyntax_is_enabled:la(1288,1,"An_import_alias_cannot_resolve_to_a_type_or_type_only_declaration_when_verbatimModuleSyntax_is_enabl_1288","An import alias cannot resolve to a type or type-only declaration when 'verbatimModuleSyntax' is enabled."),_0_resolves_to_a_type_only_declaration_and_must_be_marked_type_only_in_this_file_before_re_exporting_when_1_is_enabled_Consider_using_import_type_where_0_is_imported:la(1289,1,"_0_resolves_to_a_type_only_declaration_and_must_be_marked_type_only_in_this_file_before_re_exporting_1289","'{0}' resolves to a type-only declaration and must be marked type-only in this file before re-exporting when '{1}' is enabled. Consider using 'import type' where '{0}' is imported."),_0_resolves_to_a_type_only_declaration_and_must_be_marked_type_only_in_this_file_before_re_exporting_when_1_is_enabled_Consider_using_export_type_0_as_default:la(1290,1,"_0_resolves_to_a_type_only_declaration_and_must_be_marked_type_only_in_this_file_before_re_exporting_1290","'{0}' resolves to a type-only declaration and must be marked type-only in this file before re-exporting when '{1}' is enabled. Consider using 'export type { {0} as default }'."),_0_resolves_to_a_type_and_must_be_marked_type_only_in_this_file_before_re_exporting_when_1_is_enabled_Consider_using_import_type_where_0_is_imported:la(1291,1,"_0_resolves_to_a_type_and_must_be_marked_type_only_in_this_file_before_re_exporting_when_1_is_enable_1291","'{0}' resolves to a type and must be marked type-only in this file before re-exporting when '{1}' is enabled. Consider using 'import type' where '{0}' is imported."),_0_resolves_to_a_type_and_must_be_marked_type_only_in_this_file_before_re_exporting_when_1_is_enabled_Consider_using_export_type_0_as_default:la(1292,1,"_0_resolves_to_a_type_and_must_be_marked_type_only_in_this_file_before_re_exporting_when_1_is_enable_1292","'{0}' resolves to a type and must be marked type-only in this file before re-exporting when '{1}' is enabled. Consider using 'export type { {0} as default }'."),ECMAScript_module_syntax_is_not_allowed_in_a_CommonJS_module_when_module_is_set_to_preserve:la(1293,1,"ECMAScript_module_syntax_is_not_allowed_in_a_CommonJS_module_when_module_is_set_to_preserve_1293","ECMAScript module syntax is not allowed in a CommonJS module when 'module' is set to 'preserve'."),This_syntax_is_not_allowed_when_erasableSyntaxOnly_is_enabled:la(1294,1,"This_syntax_is_not_allowed_when_erasableSyntaxOnly_is_enabled_1294","This syntax is not allowed when 'erasableSyntaxOnly' is enabled."),ECMAScript_imports_and_exports_cannot_be_written_in_a_CommonJS_file_under_verbatimModuleSyntax_Adjust_the_type_field_in_the_nearest_package_json_to_make_this_file_an_ECMAScript_module_or_adjust_your_verbatimModuleSyntax_module_and_moduleResolution_settings_in_TypeScript:la(1295,1,"ECMAScript_imports_and_exports_cannot_be_written_in_a_CommonJS_file_under_verbatimModuleSyntax_Adjus_1295","ECMAScript imports and exports cannot be written in a CommonJS file under 'verbatimModuleSyntax'. Adjust the 'type' field in the nearest 'package.json' to make this file an ECMAScript module, or adjust your 'verbatimModuleSyntax', 'module', and 'moduleResolution' settings in TypeScript."),with_statements_are_not_allowed_in_an_async_function_block:la(1300,1,"with_statements_are_not_allowed_in_an_async_function_block_1300","'with' statements are not allowed in an async function block."),await_expressions_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules:la(1308,1,"await_expressions_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules_1308","'await' expressions are only allowed within async functions and at the top levels of modules."),The_current_file_is_a_CommonJS_module_and_cannot_use_await_at_the_top_level:la(1309,1,"The_current_file_is_a_CommonJS_module_and_cannot_use_await_at_the_top_level_1309","The current file is a CommonJS module and cannot use 'await' at the top level."),Did_you_mean_to_use_a_Colon_An_can_only_follow_a_property_name_when_the_containing_object_literal_is_part_of_a_destructuring_pattern:la(1312,1,"Did_you_mean_to_use_a_Colon_An_can_only_follow_a_property_name_when_the_containing_object_literal_is_1312","Did you mean to use a ':'? An '=' can only follow a property name when the containing object literal is part of a destructuring pattern."),The_body_of_an_if_statement_cannot_be_the_empty_statement:la(1313,1,"The_body_of_an_if_statement_cannot_be_the_empty_statement_1313","The body of an 'if' statement cannot be the empty statement."),Global_module_exports_may_only_appear_in_module_files:la(1314,1,"Global_module_exports_may_only_appear_in_module_files_1314","Global module exports may only appear in module files."),Global_module_exports_may_only_appear_in_declaration_files:la(1315,1,"Global_module_exports_may_only_appear_in_declaration_files_1315","Global module exports may only appear in declaration files."),Global_module_exports_may_only_appear_at_top_level:la(1316,1,"Global_module_exports_may_only_appear_at_top_level_1316","Global module exports may only appear at top level."),A_parameter_property_cannot_be_declared_using_a_rest_parameter:la(1317,1,"A_parameter_property_cannot_be_declared_using_a_rest_parameter_1317","A parameter property cannot be declared using a rest parameter."),An_abstract_accessor_cannot_have_an_implementation:la(1318,1,"An_abstract_accessor_cannot_have_an_implementation_1318","An abstract accessor cannot have an implementation."),A_default_export_can_only_be_used_in_an_ECMAScript_style_module:la(1319,1,"A_default_export_can_only_be_used_in_an_ECMAScript_style_module_1319","A default export can only be used in an ECMAScript-style module."),Type_of_await_operand_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member:la(1320,1,"Type_of_await_operand_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member_1320","Type of 'await' operand must either be a valid promise or must not contain a callable 'then' member."),Type_of_yield_operand_in_an_async_generator_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member:la(1321,1,"Type_of_yield_operand_in_an_async_generator_must_either_be_a_valid_promise_or_must_not_contain_a_cal_1321","Type of 'yield' operand in an async generator must either be a valid promise or must not contain a callable 'then' member."),Type_of_iterated_elements_of_a_yield_Asterisk_operand_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member:la(1322,1,"Type_of_iterated_elements_of_a_yield_Asterisk_operand_must_either_be_a_valid_promise_or_must_not_con_1322","Type of iterated elements of a 'yield*' operand must either be a valid promise or must not contain a callable 'then' member."),Dynamic_imports_are_only_supported_when_the_module_flag_is_set_to_es2020_es2022_esnext_commonjs_amd_system_umd_node16_node18_node20_or_nodenext:la(1323,1,"Dynamic_imports_are_only_supported_when_the_module_flag_is_set_to_es2020_es2022_esnext_commonjs_amd__1323","Dynamic imports are only supported when the '--module' flag is set to 'es2020', 'es2022', 'esnext', 'commonjs', 'amd', 'system', 'umd', 'node16', 'node18', 'node20', or 'nodenext'."),Dynamic_imports_only_support_a_second_argument_when_the_module_option_is_set_to_esnext_node16_node18_node20_nodenext_or_preserve:la(1324,1,"Dynamic_imports_only_support_a_second_argument_when_the_module_option_is_set_to_esnext_node16_node18_1324","Dynamic imports only support a second argument when the '--module' option is set to 'esnext', 'node16', 'node18', 'node20', 'nodenext', or 'preserve'."),Argument_of_dynamic_import_cannot_be_spread_element:la(1325,1,"Argument_of_dynamic_import_cannot_be_spread_element_1325","Argument of dynamic import cannot be spread element."),This_use_of_import_is_invalid_import_calls_can_be_written_but_they_must_have_parentheses_and_cannot_have_type_arguments:la(1326,1,"This_use_of_import_is_invalid_import_calls_can_be_written_but_they_must_have_parentheses_and_cannot__1326","This use of 'import' is invalid. 'import()' calls can be written, but they must have parentheses and cannot have type arguments."),String_literal_with_double_quotes_expected:la(1327,1,"String_literal_with_double_quotes_expected_1327","String literal with double quotes expected."),Property_value_can_only_be_string_literal_numeric_literal_true_false_null_object_literal_or_array_literal:la(1328,1,"Property_value_can_only_be_string_literal_numeric_literal_true_false_null_object_literal_or_array_li_1328","Property value can only be string literal, numeric literal, 'true', 'false', 'null', object literal or array literal."),_0_accepts_too_few_arguments_to_be_used_as_a_decorator_here_Did_you_mean_to_call_it_first_and_write_0:la(1329,1,"_0_accepts_too_few_arguments_to_be_used_as_a_decorator_here_Did_you_mean_to_call_it_first_and_write__1329","'{0}' accepts too few arguments to be used as a decorator here. Did you mean to call it first and write '@{0}()'?"),A_property_of_an_interface_or_type_literal_whose_type_is_a_unique_symbol_type_must_be_readonly:la(1330,1,"A_property_of_an_interface_or_type_literal_whose_type_is_a_unique_symbol_type_must_be_readonly_1330","A property of an interface or type literal whose type is a 'unique symbol' type must be 'readonly'."),A_property_of_a_class_whose_type_is_a_unique_symbol_type_must_be_both_static_and_readonly:la(1331,1,"A_property_of_a_class_whose_type_is_a_unique_symbol_type_must_be_both_static_and_readonly_1331","A property of a class whose type is a 'unique symbol' type must be both 'static' and 'readonly'."),A_variable_whose_type_is_a_unique_symbol_type_must_be_const:la(1332,1,"A_variable_whose_type_is_a_unique_symbol_type_must_be_const_1332","A variable whose type is a 'unique symbol' type must be 'const'."),unique_symbol_types_may_not_be_used_on_a_variable_declaration_with_a_binding_name:la(1333,1,"unique_symbol_types_may_not_be_used_on_a_variable_declaration_with_a_binding_name_1333","'unique symbol' types may not be used on a variable declaration with a binding name."),unique_symbol_types_are_only_allowed_on_variables_in_a_variable_statement:la(1334,1,"unique_symbol_types_are_only_allowed_on_variables_in_a_variable_statement_1334","'unique symbol' types are only allowed on variables in a variable statement."),unique_symbol_types_are_not_allowed_here:la(1335,1,"unique_symbol_types_are_not_allowed_here_1335","'unique symbol' types are not allowed here."),An_index_signature_parameter_type_cannot_be_a_literal_type_or_generic_type_Consider_using_a_mapped_object_type_instead:la(1337,1,"An_index_signature_parameter_type_cannot_be_a_literal_type_or_generic_type_Consider_using_a_mapped_o_1337","An index signature parameter type cannot be a literal type or generic type. Consider using a mapped object type instead."),infer_declarations_are_only_permitted_in_the_extends_clause_of_a_conditional_type:la(1338,1,"infer_declarations_are_only_permitted_in_the_extends_clause_of_a_conditional_type_1338","'infer' declarations are only permitted in the 'extends' clause of a conditional type."),Module_0_does_not_refer_to_a_value_but_is_used_as_a_value_here:la(1339,1,"Module_0_does_not_refer_to_a_value_but_is_used_as_a_value_here_1339","Module '{0}' does not refer to a value, but is used as a value here."),Module_0_does_not_refer_to_a_type_but_is_used_as_a_type_here_Did_you_mean_typeof_import_0:la(1340,1,"Module_0_does_not_refer_to_a_type_but_is_used_as_a_type_here_Did_you_mean_typeof_import_0_1340","Module '{0}' does not refer to a type, but is used as a type here. Did you mean 'typeof import('{0}')'?"),Class_constructor_may_not_be_an_accessor:la(1341,1,"Class_constructor_may_not_be_an_accessor_1341","Class constructor may not be an accessor."),The_import_meta_meta_property_is_only_allowed_when_the_module_option_is_es2020_es2022_esnext_system_node16_node18_node20_or_nodenext:la(1343,1,"The_import_meta_meta_property_is_only_allowed_when_the_module_option_is_es2020_es2022_esnext_system__1343","The 'import.meta' meta-property is only allowed when the '--module' option is 'es2020', 'es2022', 'esnext', 'system', 'node16', 'node18', 'node20', or 'nodenext'."),A_label_is_not_allowed_here:la(1344,1,"A_label_is_not_allowed_here_1344","'A label is not allowed here."),An_expression_of_type_void_cannot_be_tested_for_truthiness:la(1345,1,"An_expression_of_type_void_cannot_be_tested_for_truthiness_1345","An expression of type 'void' cannot be tested for truthiness."),This_parameter_is_not_allowed_with_use_strict_directive:la(1346,1,"This_parameter_is_not_allowed_with_use_strict_directive_1346","This parameter is not allowed with 'use strict' directive."),use_strict_directive_cannot_be_used_with_non_simple_parameter_list:la(1347,1,"use_strict_directive_cannot_be_used_with_non_simple_parameter_list_1347","'use strict' directive cannot be used with non-simple parameter list."),Non_simple_parameter_declared_here:la(1348,1,"Non_simple_parameter_declared_here_1348","Non-simple parameter declared here."),use_strict_directive_used_here:la(1349,1,"use_strict_directive_used_here_1349","'use strict' directive used here."),Print_the_final_configuration_instead_of_building:la(1350,3,"Print_the_final_configuration_instead_of_building_1350","Print the final configuration instead of building."),An_identifier_or_keyword_cannot_immediately_follow_a_numeric_literal:la(1351,1,"An_identifier_or_keyword_cannot_immediately_follow_a_numeric_literal_1351","An identifier or keyword cannot immediately follow a numeric literal."),A_bigint_literal_cannot_use_exponential_notation:la(1352,1,"A_bigint_literal_cannot_use_exponential_notation_1352","A bigint literal cannot use exponential notation."),A_bigint_literal_must_be_an_integer:la(1353,1,"A_bigint_literal_must_be_an_integer_1353","A bigint literal must be an integer."),readonly_type_modifier_is_only_permitted_on_array_and_tuple_literal_types:la(1354,1,"readonly_type_modifier_is_only_permitted_on_array_and_tuple_literal_types_1354","'readonly' type modifier is only permitted on array and tuple literal types."),A_const_assertions_can_only_be_applied_to_references_to_enum_members_or_string_number_boolean_array_or_object_literals:la(1355,1,"A_const_assertions_can_only_be_applied_to_references_to_enum_members_or_string_number_boolean_array__1355","A 'const' assertions can only be applied to references to enum members, or string, number, boolean, array, or object literals."),Did_you_mean_to_mark_this_function_as_async:la(1356,1,"Did_you_mean_to_mark_this_function_as_async_1356","Did you mean to mark this function as 'async'?"),An_enum_member_name_must_be_followed_by_a_or:la(1357,1,"An_enum_member_name_must_be_followed_by_a_or_1357","An enum member name must be followed by a ',', '=', or '}'."),Tagged_template_expressions_are_not_permitted_in_an_optional_chain:la(1358,1,"Tagged_template_expressions_are_not_permitted_in_an_optional_chain_1358","Tagged template expressions are not permitted in an optional chain."),Identifier_expected_0_is_a_reserved_word_that_cannot_be_used_here:la(1359,1,"Identifier_expected_0_is_a_reserved_word_that_cannot_be_used_here_1359","Identifier expected. '{0}' is a reserved word that cannot be used here."),Type_0_does_not_satisfy_the_expected_type_1:la(1360,1,"Type_0_does_not_satisfy_the_expected_type_1_1360","Type '{0}' does not satisfy the expected type '{1}'."),_0_cannot_be_used_as_a_value_because_it_was_imported_using_import_type:la(1361,1,"_0_cannot_be_used_as_a_value_because_it_was_imported_using_import_type_1361","'{0}' cannot be used as a value because it was imported using 'import type'."),_0_cannot_be_used_as_a_value_because_it_was_exported_using_export_type:la(1362,1,"_0_cannot_be_used_as_a_value_because_it_was_exported_using_export_type_1362","'{0}' cannot be used as a value because it was exported using 'export type'."),A_type_only_import_can_specify_a_default_import_or_named_bindings_but_not_both:la(1363,1,"A_type_only_import_can_specify_a_default_import_or_named_bindings_but_not_both_1363","A type-only import can specify a default import or named bindings, but not both."),Convert_to_type_only_export:la(1364,3,"Convert_to_type_only_export_1364","Convert to type-only export"),Convert_all_re_exported_types_to_type_only_exports:la(1365,3,"Convert_all_re_exported_types_to_type_only_exports_1365","Convert all re-exported types to type-only exports"),Split_into_two_separate_import_declarations:la(1366,3,"Split_into_two_separate_import_declarations_1366","Split into two separate import declarations"),Split_all_invalid_type_only_imports:la(1367,3,"Split_all_invalid_type_only_imports_1367","Split all invalid type-only imports"),Class_constructor_may_not_be_a_generator:la(1368,1,"Class_constructor_may_not_be_a_generator_1368","Class constructor may not be a generator."),Did_you_mean_0:la(1369,3,"Did_you_mean_0_1369","Did you mean '{0}'?"),await_expressions_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_this_file_has_no_imports_or_exports_Consider_adding_an_empty_export_to_make_this_file_a_module:la(1375,1,"await_expressions_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_this_fi_1375","'await' expressions are only allowed at the top level of a file when that file is a module, but this file has no imports or exports. Consider adding an empty 'export {}' to make this file a module."),_0_was_imported_here:la(1376,3,"_0_was_imported_here_1376","'{0}' was imported here."),_0_was_exported_here:la(1377,3,"_0_was_exported_here_1377","'{0}' was exported here."),Top_level_await_expressions_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_node16_node18_node20_nodenext_or_preserve_and_the_target_option_is_set_to_es2017_or_higher:la(1378,1,"Top_level_await_expressions_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_n_1378","Top-level 'await' expressions are only allowed when the 'module' option is set to 'es2022', 'esnext', 'system', 'node16', 'node18', 'node20', 'nodenext', or 'preserve', and the 'target' option is set to 'es2017' or higher."),An_import_alias_cannot_reference_a_declaration_that_was_exported_using_export_type:la(1379,1,"An_import_alias_cannot_reference_a_declaration_that_was_exported_using_export_type_1379","An import alias cannot reference a declaration that was exported using 'export type'."),An_import_alias_cannot_reference_a_declaration_that_was_imported_using_import_type:la(1380,1,"An_import_alias_cannot_reference_a_declaration_that_was_imported_using_import_type_1380","An import alias cannot reference a declaration that was imported using 'import type'."),Unexpected_token_Did_you_mean_or_rbrace:la(1381,1,"Unexpected_token_Did_you_mean_or_rbrace_1381","Unexpected token. Did you mean `{'}'}` or `}`?"),Unexpected_token_Did_you_mean_or_gt:la(1382,1,"Unexpected_token_Did_you_mean_or_gt_1382","Unexpected token. Did you mean `{'>'}` or `>`?"),Function_type_notation_must_be_parenthesized_when_used_in_a_union_type:la(1385,1,"Function_type_notation_must_be_parenthesized_when_used_in_a_union_type_1385","Function type notation must be parenthesized when used in a union type."),Constructor_type_notation_must_be_parenthesized_when_used_in_a_union_type:la(1386,1,"Constructor_type_notation_must_be_parenthesized_when_used_in_a_union_type_1386","Constructor type notation must be parenthesized when used in a union type."),Function_type_notation_must_be_parenthesized_when_used_in_an_intersection_type:la(1387,1,"Function_type_notation_must_be_parenthesized_when_used_in_an_intersection_type_1387","Function type notation must be parenthesized when used in an intersection type."),Constructor_type_notation_must_be_parenthesized_when_used_in_an_intersection_type:la(1388,1,"Constructor_type_notation_must_be_parenthesized_when_used_in_an_intersection_type_1388","Constructor type notation must be parenthesized when used in an intersection type."),_0_is_not_allowed_as_a_variable_declaration_name:la(1389,1,"_0_is_not_allowed_as_a_variable_declaration_name_1389","'{0}' is not allowed as a variable declaration name."),_0_is_not_allowed_as_a_parameter_name:la(1390,1,"_0_is_not_allowed_as_a_parameter_name_1390","'{0}' is not allowed as a parameter name."),An_import_alias_cannot_use_import_type:la(1392,1,"An_import_alias_cannot_use_import_type_1392","An import alias cannot use 'import type'"),Imported_via_0_from_file_1:la(1393,3,"Imported_via_0_from_file_1_1393","Imported via {0} from file '{1}'"),Imported_via_0_from_file_1_with_packageId_2:la(1394,3,"Imported_via_0_from_file_1_with_packageId_2_1394","Imported via {0} from file '{1}' with packageId '{2}'"),Imported_via_0_from_file_1_to_import_importHelpers_as_specified_in_compilerOptions:la(1395,3,"Imported_via_0_from_file_1_to_import_importHelpers_as_specified_in_compilerOptions_1395","Imported via {0} from file '{1}' to import 'importHelpers' as specified in compilerOptions"),Imported_via_0_from_file_1_with_packageId_2_to_import_importHelpers_as_specified_in_compilerOptions:la(1396,3,"Imported_via_0_from_file_1_with_packageId_2_to_import_importHelpers_as_specified_in_compilerOptions_1396","Imported via {0} from file '{1}' with packageId '{2}' to import 'importHelpers' as specified in compilerOptions"),Imported_via_0_from_file_1_to_import_jsx_and_jsxs_factory_functions:la(1397,3,"Imported_via_0_from_file_1_to_import_jsx_and_jsxs_factory_functions_1397","Imported via {0} from file '{1}' to import 'jsx' and 'jsxs' factory functions"),Imported_via_0_from_file_1_with_packageId_2_to_import_jsx_and_jsxs_factory_functions:la(1398,3,"Imported_via_0_from_file_1_with_packageId_2_to_import_jsx_and_jsxs_factory_functions_1398","Imported via {0} from file '{1}' with packageId '{2}' to import 'jsx' and 'jsxs' factory functions"),File_is_included_via_import_here:la(1399,3,"File_is_included_via_import_here_1399","File is included via import here."),Referenced_via_0_from_file_1:la(1400,3,"Referenced_via_0_from_file_1_1400","Referenced via '{0}' from file '{1}'"),File_is_included_via_reference_here:la(1401,3,"File_is_included_via_reference_here_1401","File is included via reference here."),Type_library_referenced_via_0_from_file_1:la(1402,3,"Type_library_referenced_via_0_from_file_1_1402","Type library referenced via '{0}' from file '{1}'"),Type_library_referenced_via_0_from_file_1_with_packageId_2:la(1403,3,"Type_library_referenced_via_0_from_file_1_with_packageId_2_1403","Type library referenced via '{0}' from file '{1}' with packageId '{2}'"),File_is_included_via_type_library_reference_here:la(1404,3,"File_is_included_via_type_library_reference_here_1404","File is included via type library reference here."),Library_referenced_via_0_from_file_1:la(1405,3,"Library_referenced_via_0_from_file_1_1405","Library referenced via '{0}' from file '{1}'"),File_is_included_via_library_reference_here:la(1406,3,"File_is_included_via_library_reference_here_1406","File is included via library reference here."),Matched_by_include_pattern_0_in_1:la(1407,3,"Matched_by_include_pattern_0_in_1_1407","Matched by include pattern '{0}' in '{1}'"),File_is_matched_by_include_pattern_specified_here:la(1408,3,"File_is_matched_by_include_pattern_specified_here_1408","File is matched by include pattern specified here."),Part_of_files_list_in_tsconfig_json:la(1409,3,"Part_of_files_list_in_tsconfig_json_1409","Part of 'files' list in tsconfig.json"),File_is_matched_by_files_list_specified_here:la(1410,3,"File_is_matched_by_files_list_specified_here_1410","File is matched by 'files' list specified here."),Output_from_referenced_project_0_included_because_1_specified:la(1411,3,"Output_from_referenced_project_0_included_because_1_specified_1411","Output from referenced project '{0}' included because '{1}' specified"),Output_from_referenced_project_0_included_because_module_is_specified_as_none:la(1412,3,"Output_from_referenced_project_0_included_because_module_is_specified_as_none_1412","Output from referenced project '{0}' included because '--module' is specified as 'none'"),File_is_output_from_referenced_project_specified_here:la(1413,3,"File_is_output_from_referenced_project_specified_here_1413","File is output from referenced project specified here."),Source_from_referenced_project_0_included_because_1_specified:la(1414,3,"Source_from_referenced_project_0_included_because_1_specified_1414","Source from referenced project '{0}' included because '{1}' specified"),Source_from_referenced_project_0_included_because_module_is_specified_as_none:la(1415,3,"Source_from_referenced_project_0_included_because_module_is_specified_as_none_1415","Source from referenced project '{0}' included because '--module' is specified as 'none'"),File_is_source_from_referenced_project_specified_here:la(1416,3,"File_is_source_from_referenced_project_specified_here_1416","File is source from referenced project specified here."),Entry_point_of_type_library_0_specified_in_compilerOptions:la(1417,3,"Entry_point_of_type_library_0_specified_in_compilerOptions_1417","Entry point of type library '{0}' specified in compilerOptions"),Entry_point_of_type_library_0_specified_in_compilerOptions_with_packageId_1:la(1418,3,"Entry_point_of_type_library_0_specified_in_compilerOptions_with_packageId_1_1418","Entry point of type library '{0}' specified in compilerOptions with packageId '{1}'"),File_is_entry_point_of_type_library_specified_here:la(1419,3,"File_is_entry_point_of_type_library_specified_here_1419","File is entry point of type library specified here."),Entry_point_for_implicit_type_library_0:la(1420,3,"Entry_point_for_implicit_type_library_0_1420","Entry point for implicit type library '{0}'"),Entry_point_for_implicit_type_library_0_with_packageId_1:la(1421,3,"Entry_point_for_implicit_type_library_0_with_packageId_1_1421","Entry point for implicit type library '{0}' with packageId '{1}'"),Library_0_specified_in_compilerOptions:la(1422,3,"Library_0_specified_in_compilerOptions_1422","Library '{0}' specified in compilerOptions"),File_is_library_specified_here:la(1423,3,"File_is_library_specified_here_1423","File is library specified here."),Default_library:la(1424,3,"Default_library_1424","Default library"),Default_library_for_target_0:la(1425,3,"Default_library_for_target_0_1425","Default library for target '{0}'"),File_is_default_library_for_target_specified_here:la(1426,3,"File_is_default_library_for_target_specified_here_1426","File is default library for target specified here."),Root_file_specified_for_compilation:la(1427,3,"Root_file_specified_for_compilation_1427","Root file specified for compilation"),File_is_output_of_project_reference_source_0:la(1428,3,"File_is_output_of_project_reference_source_0_1428","File is output of project reference source '{0}'"),File_redirects_to_file_0:la(1429,3,"File_redirects_to_file_0_1429","File redirects to file '{0}'"),The_file_is_in_the_program_because_Colon:la(1430,3,"The_file_is_in_the_program_because_Colon_1430","The file is in the program because:"),for_await_loops_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_this_file_has_no_imports_or_exports_Consider_adding_an_empty_export_to_make_this_file_a_module:la(1431,1,"for_await_loops_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_this_file_1431","'for await' loops are only allowed at the top level of a file when that file is a module, but this file has no imports or exports. Consider adding an empty 'export {}' to make this file a module."),Top_level_for_await_loops_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_node16_node18_node20_nodenext_or_preserve_and_the_target_option_is_set_to_es2017_or_higher:la(1432,1,"Top_level_for_await_loops_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_nod_1432","Top-level 'for await' loops are only allowed when the 'module' option is set to 'es2022', 'esnext', 'system', 'node16', 'node18', 'node20', 'nodenext', or 'preserve', and the 'target' option is set to 'es2017' or higher."),Neither_decorators_nor_modifiers_may_be_applied_to_this_parameters:la(1433,1,"Neither_decorators_nor_modifiers_may_be_applied_to_this_parameters_1433","Neither decorators nor modifiers may be applied to 'this' parameters."),Unexpected_keyword_or_identifier:la(1434,1,"Unexpected_keyword_or_identifier_1434","Unexpected keyword or identifier."),Unknown_keyword_or_identifier_Did_you_mean_0:la(1435,1,"Unknown_keyword_or_identifier_Did_you_mean_0_1435","Unknown keyword or identifier. Did you mean '{0}'?"),Decorators_must_precede_the_name_and_all_keywords_of_property_declarations:la(1436,1,"Decorators_must_precede_the_name_and_all_keywords_of_property_declarations_1436","Decorators must precede the name and all keywords of property declarations."),Namespace_must_be_given_a_name:la(1437,1,"Namespace_must_be_given_a_name_1437","Namespace must be given a name."),Interface_must_be_given_a_name:la(1438,1,"Interface_must_be_given_a_name_1438","Interface must be given a name."),Type_alias_must_be_given_a_name:la(1439,1,"Type_alias_must_be_given_a_name_1439","Type alias must be given a name."),Variable_declaration_not_allowed_at_this_location:la(1440,1,"Variable_declaration_not_allowed_at_this_location_1440","Variable declaration not allowed at this location."),Cannot_start_a_function_call_in_a_type_annotation:la(1441,1,"Cannot_start_a_function_call_in_a_type_annotation_1441","Cannot start a function call in a type annotation."),Expected_for_property_initializer:la(1442,1,"Expected_for_property_initializer_1442","Expected '=' for property initializer."),Module_declaration_names_may_only_use_or_quoted_strings:la(1443,1,"Module_declaration_names_may_only_use_or_quoted_strings_1443","Module declaration names may only use ' or \" quoted strings."),_0_resolves_to_a_type_only_declaration_and_must_be_re_exported_using_a_type_only_re_export_when_1_is_enabled:la(1448,1,"_0_resolves_to_a_type_only_declaration_and_must_be_re_exported_using_a_type_only_re_export_when_1_is_1448","'{0}' resolves to a type-only declaration and must be re-exported using a type-only re-export when '{1}' is enabled."),Preserve_unused_imported_values_in_the_JavaScript_output_that_would_otherwise_be_removed:la(1449,3,"Preserve_unused_imported_values_in_the_JavaScript_output_that_would_otherwise_be_removed_1449","Preserve unused imported values in the JavaScript output that would otherwise be removed."),Dynamic_imports_can_only_accept_a_module_specifier_and_an_optional_set_of_attributes_as_arguments:la(1450,3,"Dynamic_imports_can_only_accept_a_module_specifier_and_an_optional_set_of_attributes_as_arguments_1450","Dynamic imports can only accept a module specifier and an optional set of attributes as arguments"),Private_identifiers_are_only_allowed_in_class_bodies_and_may_only_be_used_as_part_of_a_class_member_declaration_property_access_or_on_the_left_hand_side_of_an_in_expression:la(1451,1,"Private_identifiers_are_only_allowed_in_class_bodies_and_may_only_be_used_as_part_of_a_class_member__1451","Private identifiers are only allowed in class bodies and may only be used as part of a class member declaration, property access, or on the left-hand-side of an 'in' expression"),resolution_mode_should_be_either_require_or_import:la(1453,1,"resolution_mode_should_be_either_require_or_import_1453","`resolution-mode` should be either `require` or `import`."),resolution_mode_can_only_be_set_for_type_only_imports:la(1454,1,"resolution_mode_can_only_be_set_for_type_only_imports_1454","`resolution-mode` can only be set for type-only imports."),resolution_mode_is_the_only_valid_key_for_type_import_assertions:la(1455,1,"resolution_mode_is_the_only_valid_key_for_type_import_assertions_1455","`resolution-mode` is the only valid key for type import assertions."),Type_import_assertions_should_have_exactly_one_key_resolution_mode_with_value_import_or_require:la(1456,1,"Type_import_assertions_should_have_exactly_one_key_resolution_mode_with_value_import_or_require_1456","Type import assertions should have exactly one key - `resolution-mode` - with value `import` or `require`."),Matched_by_default_include_pattern_Asterisk_Asterisk_Slash_Asterisk:la(1457,3,"Matched_by_default_include_pattern_Asterisk_Asterisk_Slash_Asterisk_1457","Matched by default include pattern '**/*'"),File_is_ECMAScript_module_because_0_has_field_type_with_value_module:la(1458,3,"File_is_ECMAScript_module_because_0_has_field_type_with_value_module_1458",'File is ECMAScript module because \'{0}\' has field "type" with value "module"'),File_is_CommonJS_module_because_0_has_field_type_whose_value_is_not_module:la(1459,3,"File_is_CommonJS_module_because_0_has_field_type_whose_value_is_not_module_1459",'File is CommonJS module because \'{0}\' has field "type" whose value is not "module"'),File_is_CommonJS_module_because_0_does_not_have_field_type:la(1460,3,"File_is_CommonJS_module_because_0_does_not_have_field_type_1460","File is CommonJS module because '{0}' does not have field \"type\""),File_is_CommonJS_module_because_package_json_was_not_found:la(1461,3,"File_is_CommonJS_module_because_package_json_was_not_found_1461","File is CommonJS module because 'package.json' was not found"),resolution_mode_is_the_only_valid_key_for_type_import_attributes:la(1463,1,"resolution_mode_is_the_only_valid_key_for_type_import_attributes_1463","'resolution-mode' is the only valid key for type import attributes."),Type_import_attributes_should_have_exactly_one_key_resolution_mode_with_value_import_or_require:la(1464,1,"Type_import_attributes_should_have_exactly_one_key_resolution_mode_with_value_import_or_require_1464","Type import attributes should have exactly one key - 'resolution-mode' - with value 'import' or 'require'."),The_import_meta_meta_property_is_not_allowed_in_files_which_will_build_into_CommonJS_output:la(1470,1,"The_import_meta_meta_property_is_not_allowed_in_files_which_will_build_into_CommonJS_output_1470","The 'import.meta' meta-property is not allowed in files which will build into CommonJS output."),Module_0_cannot_be_imported_using_this_construct_The_specifier_only_resolves_to_an_ES_module_which_cannot_be_imported_with_require_Use_an_ECMAScript_import_instead:la(1471,1,"Module_0_cannot_be_imported_using_this_construct_The_specifier_only_resolves_to_an_ES_module_which_c_1471","Module '{0}' cannot be imported using this construct. The specifier only resolves to an ES module, which cannot be imported with 'require'. Use an ECMAScript import instead."),catch_or_finally_expected:la(1472,1,"catch_or_finally_expected_1472","'catch' or 'finally' expected."),An_import_declaration_can_only_be_used_at_the_top_level_of_a_module:la(1473,1,"An_import_declaration_can_only_be_used_at_the_top_level_of_a_module_1473","An import declaration can only be used at the top level of a module."),An_export_declaration_can_only_be_used_at_the_top_level_of_a_module:la(1474,1,"An_export_declaration_can_only_be_used_at_the_top_level_of_a_module_1474","An export declaration can only be used at the top level of a module."),Control_what_method_is_used_to_detect_module_format_JS_files:la(1475,3,"Control_what_method_is_used_to_detect_module_format_JS_files_1475","Control what method is used to detect module-format JS files."),auto_Colon_Treat_files_with_imports_exports_import_meta_jsx_with_jsx_Colon_react_jsx_or_esm_format_with_module_Colon_node16_as_modules:la(1476,3,"auto_Colon_Treat_files_with_imports_exports_import_meta_jsx_with_jsx_Colon_react_jsx_or_esm_format_w_1476",'"auto": Treat files with imports, exports, import.meta, jsx (with jsx: react-jsx), or esm format (with module: node16+) as modules.'),An_instantiation_expression_cannot_be_followed_by_a_property_access:la(1477,1,"An_instantiation_expression_cannot_be_followed_by_a_property_access_1477","An instantiation expression cannot be followed by a property access."),Identifier_or_string_literal_expected:la(1478,1,"Identifier_or_string_literal_expected_1478","Identifier or string literal expected."),The_current_file_is_a_CommonJS_module_whose_imports_will_produce_require_calls_however_the_referenced_file_is_an_ECMAScript_module_and_cannot_be_imported_with_require_Consider_writing_a_dynamic_import_0_call_instead:la(1479,1,"The_current_file_is_a_CommonJS_module_whose_imports_will_produce_require_calls_however_the_reference_1479","The current file is a CommonJS module whose imports will produce 'require' calls; however, the referenced file is an ECMAScript module and cannot be imported with 'require'. Consider writing a dynamic 'import(\"{0}\")' call instead."),To_convert_this_file_to_an_ECMAScript_module_change_its_file_extension_to_0_or_create_a_local_package_json_file_with_type_Colon_module:la(1480,3,"To_convert_this_file_to_an_ECMAScript_module_change_its_file_extension_to_0_or_create_a_local_packag_1480",'To convert this file to an ECMAScript module, change its file extension to \'{0}\' or create a local package.json file with `{ "type": "module" }`.'),To_convert_this_file_to_an_ECMAScript_module_change_its_file_extension_to_0_or_add_the_field_type_Colon_module_to_1:la(1481,3,"To_convert_this_file_to_an_ECMAScript_module_change_its_file_extension_to_0_or_add_the_field_type_Co_1481","To convert this file to an ECMAScript module, change its file extension to '{0}', or add the field `\"type\": \"module\"` to '{1}'."),To_convert_this_file_to_an_ECMAScript_module_add_the_field_type_Colon_module_to_0:la(1482,3,"To_convert_this_file_to_an_ECMAScript_module_add_the_field_type_Colon_module_to_0_1482",'To convert this file to an ECMAScript module, add the field `"type": "module"` to \'{0}\'.'),To_convert_this_file_to_an_ECMAScript_module_create_a_local_package_json_file_with_type_Colon_module:la(1483,3,"To_convert_this_file_to_an_ECMAScript_module_create_a_local_package_json_file_with_type_Colon_module_1483",'To convert this file to an ECMAScript module, create a local package.json file with `{ "type": "module" }`.'),_0_is_a_type_and_must_be_imported_using_a_type_only_import_when_verbatimModuleSyntax_is_enabled:la(1484,1,"_0_is_a_type_and_must_be_imported_using_a_type_only_import_when_verbatimModuleSyntax_is_enabled_1484","'{0}' is a type and must be imported using a type-only import when 'verbatimModuleSyntax' is enabled."),_0_resolves_to_a_type_only_declaration_and_must_be_imported_using_a_type_only_import_when_verbatimModuleSyntax_is_enabled:la(1485,1,"_0_resolves_to_a_type_only_declaration_and_must_be_imported_using_a_type_only_import_when_verbatimMo_1485","'{0}' resolves to a type-only declaration and must be imported using a type-only import when 'verbatimModuleSyntax' is enabled."),Decorator_used_before_export_here:la(1486,1,"Decorator_used_before_export_here_1486","Decorator used before 'export' here."),Octal_escape_sequences_are_not_allowed_Use_the_syntax_0:la(1487,1,"Octal_escape_sequences_are_not_allowed_Use_the_syntax_0_1487","Octal escape sequences are not allowed. Use the syntax '{0}'."),Escape_sequence_0_is_not_allowed:la(1488,1,"Escape_sequence_0_is_not_allowed_1488","Escape sequence '{0}' is not allowed."),Decimals_with_leading_zeros_are_not_allowed:la(1489,1,"Decimals_with_leading_zeros_are_not_allowed_1489","Decimals with leading zeros are not allowed."),File_appears_to_be_binary:la(1490,1,"File_appears_to_be_binary_1490","File appears to be binary."),_0_modifier_cannot_appear_on_a_using_declaration:la(1491,1,"_0_modifier_cannot_appear_on_a_using_declaration_1491","'{0}' modifier cannot appear on a 'using' declaration."),_0_declarations_may_not_have_binding_patterns:la(1492,1,"_0_declarations_may_not_have_binding_patterns_1492","'{0}' declarations may not have binding patterns."),The_left_hand_side_of_a_for_in_statement_cannot_be_a_using_declaration:la(1493,1,"The_left_hand_side_of_a_for_in_statement_cannot_be_a_using_declaration_1493","The left-hand side of a 'for...in' statement cannot be a 'using' declaration."),The_left_hand_side_of_a_for_in_statement_cannot_be_an_await_using_declaration:la(1494,1,"The_left_hand_side_of_a_for_in_statement_cannot_be_an_await_using_declaration_1494","The left-hand side of a 'for...in' statement cannot be an 'await using' declaration."),_0_modifier_cannot_appear_on_an_await_using_declaration:la(1495,1,"_0_modifier_cannot_appear_on_an_await_using_declaration_1495","'{0}' modifier cannot appear on an 'await using' declaration."),Identifier_string_literal_or_number_literal_expected:la(1496,1,"Identifier_string_literal_or_number_literal_expected_1496","Identifier, string literal, or number literal expected."),Expression_must_be_enclosed_in_parentheses_to_be_used_as_a_decorator:la(1497,1,"Expression_must_be_enclosed_in_parentheses_to_be_used_as_a_decorator_1497","Expression must be enclosed in parentheses to be used as a decorator."),Invalid_syntax_in_decorator:la(1498,1,"Invalid_syntax_in_decorator_1498","Invalid syntax in decorator."),Unknown_regular_expression_flag:la(1499,1,"Unknown_regular_expression_flag_1499","Unknown regular expression flag."),Duplicate_regular_expression_flag:la(1500,1,"Duplicate_regular_expression_flag_1500","Duplicate regular expression flag."),This_regular_expression_flag_is_only_available_when_targeting_0_or_later:la(1501,1,"This_regular_expression_flag_is_only_available_when_targeting_0_or_later_1501","This regular expression flag is only available when targeting '{0}' or later."),The_Unicode_u_flag_and_the_Unicode_Sets_v_flag_cannot_be_set_simultaneously:la(1502,1,"The_Unicode_u_flag_and_the_Unicode_Sets_v_flag_cannot_be_set_simultaneously_1502","The Unicode (u) flag and the Unicode Sets (v) flag cannot be set simultaneously."),Named_capturing_groups_are_only_available_when_targeting_ES2018_or_later:la(1503,1,"Named_capturing_groups_are_only_available_when_targeting_ES2018_or_later_1503","Named capturing groups are only available when targeting 'ES2018' or later."),Subpattern_flags_must_be_present_when_there_is_a_minus_sign:la(1504,1,"Subpattern_flags_must_be_present_when_there_is_a_minus_sign_1504","Subpattern flags must be present when there is a minus sign."),Incomplete_quantifier_Digit_expected:la(1505,1,"Incomplete_quantifier_Digit_expected_1505","Incomplete quantifier. Digit expected."),Numbers_out_of_order_in_quantifier:la(1506,1,"Numbers_out_of_order_in_quantifier_1506","Numbers out of order in quantifier."),There_is_nothing_available_for_repetition:la(1507,1,"There_is_nothing_available_for_repetition_1507","There is nothing available for repetition."),Unexpected_0_Did_you_mean_to_escape_it_with_backslash:la(1508,1,"Unexpected_0_Did_you_mean_to_escape_it_with_backslash_1508","Unexpected '{0}'. Did you mean to escape it with backslash?"),This_regular_expression_flag_cannot_be_toggled_within_a_subpattern:la(1509,1,"This_regular_expression_flag_cannot_be_toggled_within_a_subpattern_1509","This regular expression flag cannot be toggled within a subpattern."),k_must_be_followed_by_a_capturing_group_name_enclosed_in_angle_brackets:la(1510,1,"k_must_be_followed_by_a_capturing_group_name_enclosed_in_angle_brackets_1510","'\\k' must be followed by a capturing group name enclosed in angle brackets."),q_is_only_available_inside_character_class:la(1511,1,"q_is_only_available_inside_character_class_1511","'\\q' is only available inside character class."),c_must_be_followed_by_an_ASCII_letter:la(1512,1,"c_must_be_followed_by_an_ASCII_letter_1512","'\\c' must be followed by an ASCII letter."),Undetermined_character_escape:la(1513,1,"Undetermined_character_escape_1513","Undetermined character escape."),Expected_a_capturing_group_name:la(1514,1,"Expected_a_capturing_group_name_1514","Expected a capturing group name."),Named_capturing_groups_with_the_same_name_must_be_mutually_exclusive_to_each_other:la(1515,1,"Named_capturing_groups_with_the_same_name_must_be_mutually_exclusive_to_each_other_1515","Named capturing groups with the same name must be mutually exclusive to each other."),A_character_class_range_must_not_be_bounded_by_another_character_class:la(1516,1,"A_character_class_range_must_not_be_bounded_by_another_character_class_1516","A character class range must not be bounded by another character class."),Range_out_of_order_in_character_class:la(1517,1,"Range_out_of_order_in_character_class_1517","Range out of order in character class."),Anything_that_would_possibly_match_more_than_a_single_character_is_invalid_inside_a_negated_character_class:la(1518,1,"Anything_that_would_possibly_match_more_than_a_single_character_is_invalid_inside_a_negated_characte_1518","Anything that would possibly match more than a single character is invalid inside a negated character class."),Operators_must_not_be_mixed_within_a_character_class_Wrap_it_in_a_nested_class_instead:la(1519,1,"Operators_must_not_be_mixed_within_a_character_class_Wrap_it_in_a_nested_class_instead_1519","Operators must not be mixed within a character class. Wrap it in a nested class instead."),Expected_a_class_set_operand:la(1520,1,"Expected_a_class_set_operand_1520","Expected a class set operand."),q_must_be_followed_by_string_alternatives_enclosed_in_braces:la(1521,1,"q_must_be_followed_by_string_alternatives_enclosed_in_braces_1521","'\\q' must be followed by string alternatives enclosed in braces."),A_character_class_must_not_contain_a_reserved_double_punctuator_Did_you_mean_to_escape_it_with_backslash:la(1522,1,"A_character_class_must_not_contain_a_reserved_double_punctuator_Did_you_mean_to_escape_it_with_backs_1522","A character class must not contain a reserved double punctuator. Did you mean to escape it with backslash?"),Expected_a_Unicode_property_name:la(1523,1,"Expected_a_Unicode_property_name_1523","Expected a Unicode property name."),Unknown_Unicode_property_name:la(1524,1,"Unknown_Unicode_property_name_1524","Unknown Unicode property name."),Expected_a_Unicode_property_value:la(1525,1,"Expected_a_Unicode_property_value_1525","Expected a Unicode property value."),Unknown_Unicode_property_value:la(1526,1,"Unknown_Unicode_property_value_1526","Unknown Unicode property value."),Expected_a_Unicode_property_name_or_value:la(1527,1,"Expected_a_Unicode_property_name_or_value_1527","Expected a Unicode property name or value."),Any_Unicode_property_that_would_possibly_match_more_than_a_single_character_is_only_available_when_the_Unicode_Sets_v_flag_is_set:la(1528,1,"Any_Unicode_property_that_would_possibly_match_more_than_a_single_character_is_only_available_when_t_1528","Any Unicode property that would possibly match more than a single character is only available when the Unicode Sets (v) flag is set."),Unknown_Unicode_property_name_or_value:la(1529,1,"Unknown_Unicode_property_name_or_value_1529","Unknown Unicode property name or value."),Unicode_property_value_expressions_are_only_available_when_the_Unicode_u_flag_or_the_Unicode_Sets_v_flag_is_set:la(1530,1,"Unicode_property_value_expressions_are_only_available_when_the_Unicode_u_flag_or_the_Unicode_Sets_v__1530","Unicode property value expressions are only available when the Unicode (u) flag or the Unicode Sets (v) flag is set."),_0_must_be_followed_by_a_Unicode_property_value_expression_enclosed_in_braces:la(1531,1,"_0_must_be_followed_by_a_Unicode_property_value_expression_enclosed_in_braces_1531","'\\{0}' must be followed by a Unicode property value expression enclosed in braces."),There_is_no_capturing_group_named_0_in_this_regular_expression:la(1532,1,"There_is_no_capturing_group_named_0_in_this_regular_expression_1532","There is no capturing group named '{0}' in this regular expression."),This_backreference_refers_to_a_group_that_does_not_exist_There_are_only_0_capturing_groups_in_this_regular_expression:la(1533,1,"This_backreference_refers_to_a_group_that_does_not_exist_There_are_only_0_capturing_groups_in_this_r_1533","This backreference refers to a group that does not exist. There are only {0} capturing groups in this regular expression."),This_backreference_refers_to_a_group_that_does_not_exist_There_are_no_capturing_groups_in_this_regular_expression:la(1534,1,"This_backreference_refers_to_a_group_that_does_not_exist_There_are_no_capturing_groups_in_this_regul_1534","This backreference refers to a group that does not exist. There are no capturing groups in this regular expression."),This_character_cannot_be_escaped_in_a_regular_expression:la(1535,1,"This_character_cannot_be_escaped_in_a_regular_expression_1535","This character cannot be escaped in a regular expression."),Octal_escape_sequences_and_backreferences_are_not_allowed_in_a_character_class_If_this_was_intended_as_an_escape_sequence_use_the_syntax_0_instead:la(1536,1,"Octal_escape_sequences_and_backreferences_are_not_allowed_in_a_character_class_If_this_was_intended__1536","Octal escape sequences and backreferences are not allowed in a character class. If this was intended as an escape sequence, use the syntax '{0}' instead."),Decimal_escape_sequences_and_backreferences_are_not_allowed_in_a_character_class:la(1537,1,"Decimal_escape_sequences_and_backreferences_are_not_allowed_in_a_character_class_1537","Decimal escape sequences and backreferences are not allowed in a character class."),Unicode_escape_sequences_are_only_available_when_the_Unicode_u_flag_or_the_Unicode_Sets_v_flag_is_set:la(1538,1,"Unicode_escape_sequences_are_only_available_when_the_Unicode_u_flag_or_the_Unicode_Sets_v_flag_is_se_1538","Unicode escape sequences are only available when the Unicode (u) flag or the Unicode Sets (v) flag is set."),A_bigint_literal_cannot_be_used_as_a_property_name:la(1539,1,"A_bigint_literal_cannot_be_used_as_a_property_name_1539","A 'bigint' literal cannot be used as a property name."),A_namespace_declaration_should_not_be_declared_using_the_module_keyword_Please_use_the_namespace_keyword_instead:la(1540,2,"A_namespace_declaration_should_not_be_declared_using_the_module_keyword_Please_use_the_namespace_key_1540","A 'namespace' declaration should not be declared using the 'module' keyword. Please use the 'namespace' keyword instead.",void 0,void 0,!0),Type_only_import_of_an_ECMAScript_module_from_a_CommonJS_module_must_have_a_resolution_mode_attribute:la(1541,1,"Type_only_import_of_an_ECMAScript_module_from_a_CommonJS_module_must_have_a_resolution_mode_attribut_1541","Type-only import of an ECMAScript module from a CommonJS module must have a 'resolution-mode' attribute."),Type_import_of_an_ECMAScript_module_from_a_CommonJS_module_must_have_a_resolution_mode_attribute:la(1542,1,"Type_import_of_an_ECMAScript_module_from_a_CommonJS_module_must_have_a_resolution_mode_attribute_1542","Type import of an ECMAScript module from a CommonJS module must have a 'resolution-mode' attribute."),Importing_a_JSON_file_into_an_ECMAScript_module_requires_a_type_Colon_json_import_attribute_when_module_is_set_to_0:la(1543,1,"Importing_a_JSON_file_into_an_ECMAScript_module_requires_a_type_Colon_json_import_attribute_when_mod_1543","Importing a JSON file into an ECMAScript module requires a 'type: \"json\"' import attribute when 'module' is set to '{0}'."),Named_imports_from_a_JSON_file_into_an_ECMAScript_module_are_not_allowed_when_module_is_set_to_0:la(1544,1,"Named_imports_from_a_JSON_file_into_an_ECMAScript_module_are_not_allowed_when_module_is_set_to_0_1544","Named imports from a JSON file into an ECMAScript module are not allowed when 'module' is set to '{0}'."),using_declarations_are_not_allowed_in_ambient_contexts:la(1545,1,"using_declarations_are_not_allowed_in_ambient_contexts_1545","'using' declarations are not allowed in ambient contexts."),await_using_declarations_are_not_allowed_in_ambient_contexts:la(1546,1,"await_using_declarations_are_not_allowed_in_ambient_contexts_1546","'await using' declarations are not allowed in ambient contexts."),The_types_of_0_are_incompatible_between_these_types:la(2200,1,"The_types_of_0_are_incompatible_between_these_types_2200","The types of '{0}' are incompatible between these types."),The_types_returned_by_0_are_incompatible_between_these_types:la(2201,1,"The_types_returned_by_0_are_incompatible_between_these_types_2201","The types returned by '{0}' are incompatible between these types."),Call_signature_return_types_0_and_1_are_incompatible:la(2202,1,"Call_signature_return_types_0_and_1_are_incompatible_2202","Call signature return types '{0}' and '{1}' are incompatible.",void 0,!0),Construct_signature_return_types_0_and_1_are_incompatible:la(2203,1,"Construct_signature_return_types_0_and_1_are_incompatible_2203","Construct signature return types '{0}' and '{1}' are incompatible.",void 0,!0),Call_signatures_with_no_arguments_have_incompatible_return_types_0_and_1:la(2204,1,"Call_signatures_with_no_arguments_have_incompatible_return_types_0_and_1_2204","Call signatures with no arguments have incompatible return types '{0}' and '{1}'.",void 0,!0),Construct_signatures_with_no_arguments_have_incompatible_return_types_0_and_1:la(2205,1,"Construct_signatures_with_no_arguments_have_incompatible_return_types_0_and_1_2205","Construct signatures with no arguments have incompatible return types '{0}' and '{1}'.",void 0,!0),The_type_modifier_cannot_be_used_on_a_named_import_when_import_type_is_used_on_its_import_statement:la(2206,1,"The_type_modifier_cannot_be_used_on_a_named_import_when_import_type_is_used_on_its_import_statement_2206","The 'type' modifier cannot be used on a named import when 'import type' is used on its import statement."),The_type_modifier_cannot_be_used_on_a_named_export_when_export_type_is_used_on_its_export_statement:la(2207,1,"The_type_modifier_cannot_be_used_on_a_named_export_when_export_type_is_used_on_its_export_statement_2207","The 'type' modifier cannot be used on a named export when 'export type' is used on its export statement."),This_type_parameter_might_need_an_extends_0_constraint:la(2208,1,"This_type_parameter_might_need_an_extends_0_constraint_2208","This type parameter might need an `extends {0}` constraint."),The_project_root_is_ambiguous_but_is_required_to_resolve_export_map_entry_0_in_file_1_Supply_the_rootDir_compiler_option_to_disambiguate:la(2209,1,"The_project_root_is_ambiguous_but_is_required_to_resolve_export_map_entry_0_in_file_1_Supply_the_roo_2209","The project root is ambiguous, but is required to resolve export map entry '{0}' in file '{1}'. Supply the `rootDir` compiler option to disambiguate."),The_project_root_is_ambiguous_but_is_required_to_resolve_import_map_entry_0_in_file_1_Supply_the_rootDir_compiler_option_to_disambiguate:la(2210,1,"The_project_root_is_ambiguous_but_is_required_to_resolve_import_map_entry_0_in_file_1_Supply_the_roo_2210","The project root is ambiguous, but is required to resolve import map entry '{0}' in file '{1}'. Supply the `rootDir` compiler option to disambiguate."),Add_extends_constraint:la(2211,3,"Add_extends_constraint_2211","Add `extends` constraint."),Add_extends_constraint_to_all_type_parameters:la(2212,3,"Add_extends_constraint_to_all_type_parameters_2212","Add `extends` constraint to all type parameters"),Duplicate_identifier_0:la(2300,1,"Duplicate_identifier_0_2300","Duplicate identifier '{0}'."),Initializer_of_instance_member_variable_0_cannot_reference_identifier_1_declared_in_the_constructor:la(2301,1,"Initializer_of_instance_member_variable_0_cannot_reference_identifier_1_declared_in_the_constructor_2301","Initializer of instance member variable '{0}' cannot reference identifier '{1}' declared in the constructor."),Static_members_cannot_reference_class_type_parameters:la(2302,1,"Static_members_cannot_reference_class_type_parameters_2302","Static members cannot reference class type parameters."),Circular_definition_of_import_alias_0:la(2303,1,"Circular_definition_of_import_alias_0_2303","Circular definition of import alias '{0}'."),Cannot_find_name_0:la(2304,1,"Cannot_find_name_0_2304","Cannot find name '{0}'."),Module_0_has_no_exported_member_1:la(2305,1,"Module_0_has_no_exported_member_1_2305","Module '{0}' has no exported member '{1}'."),File_0_is_not_a_module:la(2306,1,"File_0_is_not_a_module_2306","File '{0}' is not a module."),Cannot_find_module_0_or_its_corresponding_type_declarations:la(2307,1,"Cannot_find_module_0_or_its_corresponding_type_declarations_2307","Cannot find module '{0}' or its corresponding type declarations."),Module_0_has_already_exported_a_member_named_1_Consider_explicitly_re_exporting_to_resolve_the_ambiguity:la(2308,1,"Module_0_has_already_exported_a_member_named_1_Consider_explicitly_re_exporting_to_resolve_the_ambig_2308","Module {0} has already exported a member named '{1}'. Consider explicitly re-exporting to resolve the ambiguity."),An_export_assignment_cannot_be_used_in_a_module_with_other_exported_elements:la(2309,1,"An_export_assignment_cannot_be_used_in_a_module_with_other_exported_elements_2309","An export assignment cannot be used in a module with other exported elements."),Type_0_recursively_references_itself_as_a_base_type:la(2310,1,"Type_0_recursively_references_itself_as_a_base_type_2310","Type '{0}' recursively references itself as a base type."),Cannot_find_name_0_Did_you_mean_to_write_this_in_an_async_function:la(2311,1,"Cannot_find_name_0_Did_you_mean_to_write_this_in_an_async_function_2311","Cannot find name '{0}'. Did you mean to write this in an async function?"),An_interface_can_only_extend_an_object_type_or_intersection_of_object_types_with_statically_known_members:la(2312,1,"An_interface_can_only_extend_an_object_type_or_intersection_of_object_types_with_statically_known_me_2312","An interface can only extend an object type or intersection of object types with statically known members."),Type_parameter_0_has_a_circular_constraint:la(2313,1,"Type_parameter_0_has_a_circular_constraint_2313","Type parameter '{0}' has a circular constraint."),Generic_type_0_requires_1_type_argument_s:la(2314,1,"Generic_type_0_requires_1_type_argument_s_2314","Generic type '{0}' requires {1} type argument(s)."),Type_0_is_not_generic:la(2315,1,"Type_0_is_not_generic_2315","Type '{0}' is not generic."),Global_type_0_must_be_a_class_or_interface_type:la(2316,1,"Global_type_0_must_be_a_class_or_interface_type_2316","Global type '{0}' must be a class or interface type."),Global_type_0_must_have_1_type_parameter_s:la(2317,1,"Global_type_0_must_have_1_type_parameter_s_2317","Global type '{0}' must have {1} type parameter(s)."),Cannot_find_global_type_0:la(2318,1,"Cannot_find_global_type_0_2318","Cannot find global type '{0}'."),Named_property_0_of_types_1_and_2_are_not_identical:la(2319,1,"Named_property_0_of_types_1_and_2_are_not_identical_2319","Named property '{0}' of types '{1}' and '{2}' are not identical."),Interface_0_cannot_simultaneously_extend_types_1_and_2:la(2320,1,"Interface_0_cannot_simultaneously_extend_types_1_and_2_2320","Interface '{0}' cannot simultaneously extend types '{1}' and '{2}'."),Excessive_stack_depth_comparing_types_0_and_1:la(2321,1,"Excessive_stack_depth_comparing_types_0_and_1_2321","Excessive stack depth comparing types '{0}' and '{1}'."),Type_0_is_not_assignable_to_type_1:la(2322,1,"Type_0_is_not_assignable_to_type_1_2322","Type '{0}' is not assignable to type '{1}'."),Cannot_redeclare_exported_variable_0:la(2323,1,"Cannot_redeclare_exported_variable_0_2323","Cannot redeclare exported variable '{0}'."),Property_0_is_missing_in_type_1:la(2324,1,"Property_0_is_missing_in_type_1_2324","Property '{0}' is missing in type '{1}'."),Property_0_is_private_in_type_1_but_not_in_type_2:la(2325,1,"Property_0_is_private_in_type_1_but_not_in_type_2_2325","Property '{0}' is private in type '{1}' but not in type '{2}'."),Types_of_property_0_are_incompatible:la(2326,1,"Types_of_property_0_are_incompatible_2326","Types of property '{0}' are incompatible."),Property_0_is_optional_in_type_1_but_required_in_type_2:la(2327,1,"Property_0_is_optional_in_type_1_but_required_in_type_2_2327","Property '{0}' is optional in type '{1}' but required in type '{2}'."),Types_of_parameters_0_and_1_are_incompatible:la(2328,1,"Types_of_parameters_0_and_1_are_incompatible_2328","Types of parameters '{0}' and '{1}' are incompatible."),Index_signature_for_type_0_is_missing_in_type_1:la(2329,1,"Index_signature_for_type_0_is_missing_in_type_1_2329","Index signature for type '{0}' is missing in type '{1}'."),_0_and_1_index_signatures_are_incompatible:la(2330,1,"_0_and_1_index_signatures_are_incompatible_2330","'{0}' and '{1}' index signatures are incompatible."),this_cannot_be_referenced_in_a_module_or_namespace_body:la(2331,1,"this_cannot_be_referenced_in_a_module_or_namespace_body_2331","'this' cannot be referenced in a module or namespace body."),this_cannot_be_referenced_in_current_location:la(2332,1,"this_cannot_be_referenced_in_current_location_2332","'this' cannot be referenced in current location."),this_cannot_be_referenced_in_a_static_property_initializer:la(2334,1,"this_cannot_be_referenced_in_a_static_property_initializer_2334","'this' cannot be referenced in a static property initializer."),super_can_only_be_referenced_in_a_derived_class:la(2335,1,"super_can_only_be_referenced_in_a_derived_class_2335","'super' can only be referenced in a derived class."),super_cannot_be_referenced_in_constructor_arguments:la(2336,1,"super_cannot_be_referenced_in_constructor_arguments_2336","'super' cannot be referenced in constructor arguments."),Super_calls_are_not_permitted_outside_constructors_or_in_nested_functions_inside_constructors:la(2337,1,"Super_calls_are_not_permitted_outside_constructors_or_in_nested_functions_inside_constructors_2337","Super calls are not permitted outside constructors or in nested functions inside constructors."),super_property_access_is_permitted_only_in_a_constructor_member_function_or_member_accessor_of_a_derived_class:la(2338,1,"super_property_access_is_permitted_only_in_a_constructor_member_function_or_member_accessor_of_a_der_2338","'super' property access is permitted only in a constructor, member function, or member accessor of a derived class."),Property_0_does_not_exist_on_type_1:la(2339,1,"Property_0_does_not_exist_on_type_1_2339","Property '{0}' does not exist on type '{1}'."),Only_public_and_protected_methods_of_the_base_class_are_accessible_via_the_super_keyword:la(2340,1,"Only_public_and_protected_methods_of_the_base_class_are_accessible_via_the_super_keyword_2340","Only public and protected methods of the base class are accessible via the 'super' keyword."),Property_0_is_private_and_only_accessible_within_class_1:la(2341,1,"Property_0_is_private_and_only_accessible_within_class_1_2341","Property '{0}' is private and only accessible within class '{1}'."),This_syntax_requires_an_imported_helper_named_1_which_does_not_exist_in_0_Consider_upgrading_your_version_of_0:la(2343,1,"This_syntax_requires_an_imported_helper_named_1_which_does_not_exist_in_0_Consider_upgrading_your_ve_2343","This syntax requires an imported helper named '{1}' which does not exist in '{0}'. Consider upgrading your version of '{0}'."),Type_0_does_not_satisfy_the_constraint_1:la(2344,1,"Type_0_does_not_satisfy_the_constraint_1_2344","Type '{0}' does not satisfy the constraint '{1}'."),Argument_of_type_0_is_not_assignable_to_parameter_of_type_1:la(2345,1,"Argument_of_type_0_is_not_assignable_to_parameter_of_type_1_2345","Argument of type '{0}' is not assignable to parameter of type '{1}'."),Call_target_does_not_contain_any_signatures:la(2346,1,"Call_target_does_not_contain_any_signatures_2346","Call target does not contain any signatures."),Untyped_function_calls_may_not_accept_type_arguments:la(2347,1,"Untyped_function_calls_may_not_accept_type_arguments_2347","Untyped function calls may not accept type arguments."),Value_of_type_0_is_not_callable_Did_you_mean_to_include_new:la(2348,1,"Value_of_type_0_is_not_callable_Did_you_mean_to_include_new_2348","Value of type '{0}' is not callable. Did you mean to include 'new'?"),This_expression_is_not_callable:la(2349,1,"This_expression_is_not_callable_2349","This expression is not callable."),Only_a_void_function_can_be_called_with_the_new_keyword:la(2350,1,"Only_a_void_function_can_be_called_with_the_new_keyword_2350","Only a void function can be called with the 'new' keyword."),This_expression_is_not_constructable:la(2351,1,"This_expression_is_not_constructable_2351","This expression is not constructable."),Conversion_of_type_0_to_type_1_may_be_a_mistake_because_neither_type_sufficiently_overlaps_with_the_other_If_this_was_intentional_convert_the_expression_to_unknown_first:la(2352,1,"Conversion_of_type_0_to_type_1_may_be_a_mistake_because_neither_type_sufficiently_overlaps_with_the__2352","Conversion of type '{0}' to type '{1}' may be a mistake because neither type sufficiently overlaps with the other. If this was intentional, convert the expression to 'unknown' first."),Object_literal_may_only_specify_known_properties_and_0_does_not_exist_in_type_1:la(2353,1,"Object_literal_may_only_specify_known_properties_and_0_does_not_exist_in_type_1_2353","Object literal may only specify known properties, and '{0}' does not exist in type '{1}'."),This_syntax_requires_an_imported_helper_but_module_0_cannot_be_found:la(2354,1,"This_syntax_requires_an_imported_helper_but_module_0_cannot_be_found_2354","This syntax requires an imported helper but module '{0}' cannot be found."),A_function_whose_declared_type_is_neither_undefined_void_nor_any_must_return_a_value:la(2355,1,"A_function_whose_declared_type_is_neither_undefined_void_nor_any_must_return_a_value_2355","A function whose declared type is neither 'undefined', 'void', nor 'any' must return a value."),An_arithmetic_operand_must_be_of_type_any_number_bigint_or_an_enum_type:la(2356,1,"An_arithmetic_operand_must_be_of_type_any_number_bigint_or_an_enum_type_2356","An arithmetic operand must be of type 'any', 'number', 'bigint' or an enum type."),The_operand_of_an_increment_or_decrement_operator_must_be_a_variable_or_a_property_access:la(2357,1,"The_operand_of_an_increment_or_decrement_operator_must_be_a_variable_or_a_property_access_2357","The operand of an increment or decrement operator must be a variable or a property access."),The_left_hand_side_of_an_instanceof_expression_must_be_of_type_any_an_object_type_or_a_type_parameter:la(2358,1,"The_left_hand_side_of_an_instanceof_expression_must_be_of_type_any_an_object_type_or_a_type_paramete_2358","The left-hand side of an 'instanceof' expression must be of type 'any', an object type or a type parameter."),The_right_hand_side_of_an_instanceof_expression_must_be_either_of_type_any_a_class_function_or_other_type_assignable_to_the_Function_interface_type_or_an_object_type_with_a_Symbol_hasInstance_method:la(2359,1,"The_right_hand_side_of_an_instanceof_expression_must_be_either_of_type_any_a_class_function_or_other_2359","The right-hand side of an 'instanceof' expression must be either of type 'any', a class, function, or other type assignable to the 'Function' interface type, or an object type with a 'Symbol.hasInstance' method."),The_left_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type:la(2362,1,"The_left_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type_2362","The left-hand side of an arithmetic operation must be of type 'any', 'number', 'bigint' or an enum type."),The_right_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type:la(2363,1,"The_right_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type_2363","The right-hand side of an arithmetic operation must be of type 'any', 'number', 'bigint' or an enum type."),The_left_hand_side_of_an_assignment_expression_must_be_a_variable_or_a_property_access:la(2364,1,"The_left_hand_side_of_an_assignment_expression_must_be_a_variable_or_a_property_access_2364","The left-hand side of an assignment expression must be a variable or a property access."),Operator_0_cannot_be_applied_to_types_1_and_2:la(2365,1,"Operator_0_cannot_be_applied_to_types_1_and_2_2365","Operator '{0}' cannot be applied to types '{1}' and '{2}'."),Function_lacks_ending_return_statement_and_return_type_does_not_include_undefined:la(2366,1,"Function_lacks_ending_return_statement_and_return_type_does_not_include_undefined_2366","Function lacks ending return statement and return type does not include 'undefined'."),This_comparison_appears_to_be_unintentional_because_the_types_0_and_1_have_no_overlap:la(2367,1,"This_comparison_appears_to_be_unintentional_because_the_types_0_and_1_have_no_overlap_2367","This comparison appears to be unintentional because the types '{0}' and '{1}' have no overlap."),Type_parameter_name_cannot_be_0:la(2368,1,"Type_parameter_name_cannot_be_0_2368","Type parameter name cannot be '{0}'."),A_parameter_property_is_only_allowed_in_a_constructor_implementation:la(2369,1,"A_parameter_property_is_only_allowed_in_a_constructor_implementation_2369","A parameter property is only allowed in a constructor implementation."),A_rest_parameter_must_be_of_an_array_type:la(2370,1,"A_rest_parameter_must_be_of_an_array_type_2370","A rest parameter must be of an array type."),A_parameter_initializer_is_only_allowed_in_a_function_or_constructor_implementation:la(2371,1,"A_parameter_initializer_is_only_allowed_in_a_function_or_constructor_implementation_2371","A parameter initializer is only allowed in a function or constructor implementation."),Parameter_0_cannot_reference_itself:la(2372,1,"Parameter_0_cannot_reference_itself_2372","Parameter '{0}' cannot reference itself."),Parameter_0_cannot_reference_identifier_1_declared_after_it:la(2373,1,"Parameter_0_cannot_reference_identifier_1_declared_after_it_2373","Parameter '{0}' cannot reference identifier '{1}' declared after it."),Duplicate_index_signature_for_type_0:la(2374,1,"Duplicate_index_signature_for_type_0_2374","Duplicate index signature for type '{0}'."),Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_types_of_the_target_s_properties:la(2375,1,"Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefi_2375","Type '{0}' is not assignable to type '{1}' with 'exactOptionalPropertyTypes: true'. Consider adding 'undefined' to the types of the target's properties."),A_super_call_must_be_the_first_statement_in_the_constructor_to_refer_to_super_or_this_when_a_derived_class_contains_initialized_properties_parameter_properties_or_private_identifiers:la(2376,1,"A_super_call_must_be_the_first_statement_in_the_constructor_to_refer_to_super_or_this_when_a_derived_2376","A 'super' call must be the first statement in the constructor to refer to 'super' or 'this' when a derived class contains initialized properties, parameter properties, or private identifiers."),Constructors_for_derived_classes_must_contain_a_super_call:la(2377,1,"Constructors_for_derived_classes_must_contain_a_super_call_2377","Constructors for derived classes must contain a 'super' call."),A_get_accessor_must_return_a_value:la(2378,1,"A_get_accessor_must_return_a_value_2378","A 'get' accessor must return a value."),Argument_of_type_0_is_not_assignable_to_parameter_of_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_types_of_the_target_s_properties:la(2379,1,"Argument_of_type_0_is_not_assignable_to_parameter_of_type_1_with_exactOptionalPropertyTypes_Colon_tr_2379","Argument of type '{0}' is not assignable to parameter of type '{1}' with 'exactOptionalPropertyTypes: true'. Consider adding 'undefined' to the types of the target's properties."),Overload_signatures_must_all_be_exported_or_non_exported:la(2383,1,"Overload_signatures_must_all_be_exported_or_non_exported_2383","Overload signatures must all be exported or non-exported."),Overload_signatures_must_all_be_ambient_or_non_ambient:la(2384,1,"Overload_signatures_must_all_be_ambient_or_non_ambient_2384","Overload signatures must all be ambient or non-ambient."),Overload_signatures_must_all_be_public_private_or_protected:la(2385,1,"Overload_signatures_must_all_be_public_private_or_protected_2385","Overload signatures must all be public, private or protected."),Overload_signatures_must_all_be_optional_or_required:la(2386,1,"Overload_signatures_must_all_be_optional_or_required_2386","Overload signatures must all be optional or required."),Function_overload_must_be_static:la(2387,1,"Function_overload_must_be_static_2387","Function overload must be static."),Function_overload_must_not_be_static:la(2388,1,"Function_overload_must_not_be_static_2388","Function overload must not be static."),Function_implementation_name_must_be_0:la(2389,1,"Function_implementation_name_must_be_0_2389","Function implementation name must be '{0}'."),Constructor_implementation_is_missing:la(2390,1,"Constructor_implementation_is_missing_2390","Constructor implementation is missing."),Function_implementation_is_missing_or_not_immediately_following_the_declaration:la(2391,1,"Function_implementation_is_missing_or_not_immediately_following_the_declaration_2391","Function implementation is missing or not immediately following the declaration."),Multiple_constructor_implementations_are_not_allowed:la(2392,1,"Multiple_constructor_implementations_are_not_allowed_2392","Multiple constructor implementations are not allowed."),Duplicate_function_implementation:la(2393,1,"Duplicate_function_implementation_2393","Duplicate function implementation."),This_overload_signature_is_not_compatible_with_its_implementation_signature:la(2394,1,"This_overload_signature_is_not_compatible_with_its_implementation_signature_2394","This overload signature is not compatible with its implementation signature."),Individual_declarations_in_merged_declaration_0_must_be_all_exported_or_all_local:la(2395,1,"Individual_declarations_in_merged_declaration_0_must_be_all_exported_or_all_local_2395","Individual declarations in merged declaration '{0}' must be all exported or all local."),Duplicate_identifier_arguments_Compiler_uses_arguments_to_initialize_rest_parameters:la(2396,1,"Duplicate_identifier_arguments_Compiler_uses_arguments_to_initialize_rest_parameters_2396","Duplicate identifier 'arguments'. Compiler uses 'arguments' to initialize rest parameters."),Declaration_name_conflicts_with_built_in_global_identifier_0:la(2397,1,"Declaration_name_conflicts_with_built_in_global_identifier_0_2397","Declaration name conflicts with built-in global identifier '{0}'."),constructor_cannot_be_used_as_a_parameter_property_name:la(2398,1,"constructor_cannot_be_used_as_a_parameter_property_name_2398","'constructor' cannot be used as a parameter property name."),Duplicate_identifier_this_Compiler_uses_variable_declaration_this_to_capture_this_reference:la(2399,1,"Duplicate_identifier_this_Compiler_uses_variable_declaration_this_to_capture_this_reference_2399","Duplicate identifier '_this'. Compiler uses variable declaration '_this' to capture 'this' reference."),Expression_resolves_to_variable_declaration_this_that_compiler_uses_to_capture_this_reference:la(2400,1,"Expression_resolves_to_variable_declaration_this_that_compiler_uses_to_capture_this_reference_2400","Expression resolves to variable declaration '_this' that compiler uses to capture 'this' reference."),A_super_call_must_be_a_root_level_statement_within_a_constructor_of_a_derived_class_that_contains_initialized_properties_parameter_properties_or_private_identifiers:la(2401,1,"A_super_call_must_be_a_root_level_statement_within_a_constructor_of_a_derived_class_that_contains_in_2401","A 'super' call must be a root-level statement within a constructor of a derived class that contains initialized properties, parameter properties, or private identifiers."),Expression_resolves_to_super_that_compiler_uses_to_capture_base_class_reference:la(2402,1,"Expression_resolves_to_super_that_compiler_uses_to_capture_base_class_reference_2402","Expression resolves to '_super' that compiler uses to capture base class reference."),Subsequent_variable_declarations_must_have_the_same_type_Variable_0_must_be_of_type_1_but_here_has_type_2:la(2403,1,"Subsequent_variable_declarations_must_have_the_same_type_Variable_0_must_be_of_type_1_but_here_has_t_2403","Subsequent variable declarations must have the same type. Variable '{0}' must be of type '{1}', but here has type '{2}'."),The_left_hand_side_of_a_for_in_statement_cannot_use_a_type_annotation:la(2404,1,"The_left_hand_side_of_a_for_in_statement_cannot_use_a_type_annotation_2404","The left-hand side of a 'for...in' statement cannot use a type annotation."),The_left_hand_side_of_a_for_in_statement_must_be_of_type_string_or_any:la(2405,1,"The_left_hand_side_of_a_for_in_statement_must_be_of_type_string_or_any_2405","The left-hand side of a 'for...in' statement must be of type 'string' or 'any'."),The_left_hand_side_of_a_for_in_statement_must_be_a_variable_or_a_property_access:la(2406,1,"The_left_hand_side_of_a_for_in_statement_must_be_a_variable_or_a_property_access_2406","The left-hand side of a 'for...in' statement must be a variable or a property access."),The_right_hand_side_of_a_for_in_statement_must_be_of_type_any_an_object_type_or_a_type_parameter_but_here_has_type_0:la(2407,1,"The_right_hand_side_of_a_for_in_statement_must_be_of_type_any_an_object_type_or_a_type_parameter_but_2407","The right-hand side of a 'for...in' statement must be of type 'any', an object type or a type parameter, but here has type '{0}'."),Setters_cannot_return_a_value:la(2408,1,"Setters_cannot_return_a_value_2408","Setters cannot return a value."),Return_type_of_constructor_signature_must_be_assignable_to_the_instance_type_of_the_class:la(2409,1,"Return_type_of_constructor_signature_must_be_assignable_to_the_instance_type_of_the_class_2409","Return type of constructor signature must be assignable to the instance type of the class."),The_with_statement_is_not_supported_All_symbols_in_a_with_block_will_have_type_any:la(2410,1,"The_with_statement_is_not_supported_All_symbols_in_a_with_block_will_have_type_any_2410","The 'with' statement is not supported. All symbols in a 'with' block will have type 'any'."),Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_type_of_the_target:la(2412,1,"Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefi_2412","Type '{0}' is not assignable to type '{1}' with 'exactOptionalPropertyTypes: true'. Consider adding 'undefined' to the type of the target."),Property_0_of_type_1_is_not_assignable_to_2_index_type_3:la(2411,1,"Property_0_of_type_1_is_not_assignable_to_2_index_type_3_2411","Property '{0}' of type '{1}' is not assignable to '{2}' index type '{3}'."),_0_index_type_1_is_not_assignable_to_2_index_type_3:la(2413,1,"_0_index_type_1_is_not_assignable_to_2_index_type_3_2413","'{0}' index type '{1}' is not assignable to '{2}' index type '{3}'."),Class_name_cannot_be_0:la(2414,1,"Class_name_cannot_be_0_2414","Class name cannot be '{0}'."),Class_0_incorrectly_extends_base_class_1:la(2415,1,"Class_0_incorrectly_extends_base_class_1_2415","Class '{0}' incorrectly extends base class '{1}'."),Property_0_in_type_1_is_not_assignable_to_the_same_property_in_base_type_2:la(2416,1,"Property_0_in_type_1_is_not_assignable_to_the_same_property_in_base_type_2_2416","Property '{0}' in type '{1}' is not assignable to the same property in base type '{2}'."),Class_static_side_0_incorrectly_extends_base_class_static_side_1:la(2417,1,"Class_static_side_0_incorrectly_extends_base_class_static_side_1_2417","Class static side '{0}' incorrectly extends base class static side '{1}'."),Type_of_computed_property_s_value_is_0_which_is_not_assignable_to_type_1:la(2418,1,"Type_of_computed_property_s_value_is_0_which_is_not_assignable_to_type_1_2418","Type of computed property's value is '{0}', which is not assignable to type '{1}'."),Types_of_construct_signatures_are_incompatible:la(2419,1,"Types_of_construct_signatures_are_incompatible_2419","Types of construct signatures are incompatible."),Class_0_incorrectly_implements_interface_1:la(2420,1,"Class_0_incorrectly_implements_interface_1_2420","Class '{0}' incorrectly implements interface '{1}'."),A_class_can_only_implement_an_object_type_or_intersection_of_object_types_with_statically_known_members:la(2422,1,"A_class_can_only_implement_an_object_type_or_intersection_of_object_types_with_statically_known_memb_2422","A class can only implement an object type or intersection of object types with statically known members."),Class_0_defines_instance_member_function_1_but_extended_class_2_defines_it_as_instance_member_accessor:la(2423,1,"Class_0_defines_instance_member_function_1_but_extended_class_2_defines_it_as_instance_member_access_2423","Class '{0}' defines instance member function '{1}', but extended class '{2}' defines it as instance member accessor."),Class_0_defines_instance_member_property_1_but_extended_class_2_defines_it_as_instance_member_function:la(2425,1,"Class_0_defines_instance_member_property_1_but_extended_class_2_defines_it_as_instance_member_functi_2425","Class '{0}' defines instance member property '{1}', but extended class '{2}' defines it as instance member function."),Class_0_defines_instance_member_accessor_1_but_extended_class_2_defines_it_as_instance_member_function:la(2426,1,"Class_0_defines_instance_member_accessor_1_but_extended_class_2_defines_it_as_instance_member_functi_2426","Class '{0}' defines instance member accessor '{1}', but extended class '{2}' defines it as instance member function."),Interface_name_cannot_be_0:la(2427,1,"Interface_name_cannot_be_0_2427","Interface name cannot be '{0}'."),All_declarations_of_0_must_have_identical_type_parameters:la(2428,1,"All_declarations_of_0_must_have_identical_type_parameters_2428","All declarations of '{0}' must have identical type parameters."),Interface_0_incorrectly_extends_interface_1:la(2430,1,"Interface_0_incorrectly_extends_interface_1_2430","Interface '{0}' incorrectly extends interface '{1}'."),Enum_name_cannot_be_0:la(2431,1,"Enum_name_cannot_be_0_2431","Enum name cannot be '{0}'."),In_an_enum_with_multiple_declarations_only_one_declaration_can_omit_an_initializer_for_its_first_enum_element:la(2432,1,"In_an_enum_with_multiple_declarations_only_one_declaration_can_omit_an_initializer_for_its_first_enu_2432","In an enum with multiple declarations, only one declaration can omit an initializer for its first enum element."),A_namespace_declaration_cannot_be_in_a_different_file_from_a_class_or_function_with_which_it_is_merged:la(2433,1,"A_namespace_declaration_cannot_be_in_a_different_file_from_a_class_or_function_with_which_it_is_merg_2433","A namespace declaration cannot be in a different file from a class or function with which it is merged."),A_namespace_declaration_cannot_be_located_prior_to_a_class_or_function_with_which_it_is_merged:la(2434,1,"A_namespace_declaration_cannot_be_located_prior_to_a_class_or_function_with_which_it_is_merged_2434","A namespace declaration cannot be located prior to a class or function with which it is merged."),Ambient_modules_cannot_be_nested_in_other_modules_or_namespaces:la(2435,1,"Ambient_modules_cannot_be_nested_in_other_modules_or_namespaces_2435","Ambient modules cannot be nested in other modules or namespaces."),Ambient_module_declaration_cannot_specify_relative_module_name:la(2436,1,"Ambient_module_declaration_cannot_specify_relative_module_name_2436","Ambient module declaration cannot specify relative module name."),Module_0_is_hidden_by_a_local_declaration_with_the_same_name:la(2437,1,"Module_0_is_hidden_by_a_local_declaration_with_the_same_name_2437","Module '{0}' is hidden by a local declaration with the same name."),Import_name_cannot_be_0:la(2438,1,"Import_name_cannot_be_0_2438","Import name cannot be '{0}'."),Import_or_export_declaration_in_an_ambient_module_declaration_cannot_reference_module_through_relative_module_name:la(2439,1,"Import_or_export_declaration_in_an_ambient_module_declaration_cannot_reference_module_through_relati_2439","Import or export declaration in an ambient module declaration cannot reference module through relative module name."),Import_declaration_conflicts_with_local_declaration_of_0:la(2440,1,"Import_declaration_conflicts_with_local_declaration_of_0_2440","Import declaration conflicts with local declaration of '{0}'."),Duplicate_identifier_0_Compiler_reserves_name_1_in_top_level_scope_of_a_module:la(2441,1,"Duplicate_identifier_0_Compiler_reserves_name_1_in_top_level_scope_of_a_module_2441","Duplicate identifier '{0}'. Compiler reserves name '{1}' in top level scope of a module."),Types_have_separate_declarations_of_a_private_property_0:la(2442,1,"Types_have_separate_declarations_of_a_private_property_0_2442","Types have separate declarations of a private property '{0}'."),Property_0_is_protected_but_type_1_is_not_a_class_derived_from_2:la(2443,1,"Property_0_is_protected_but_type_1_is_not_a_class_derived_from_2_2443","Property '{0}' is protected but type '{1}' is not a class derived from '{2}'."),Property_0_is_protected_in_type_1_but_public_in_type_2:la(2444,1,"Property_0_is_protected_in_type_1_but_public_in_type_2_2444","Property '{0}' is protected in type '{1}' but public in type '{2}'."),Property_0_is_protected_and_only_accessible_within_class_1_and_its_subclasses:la(2445,1,"Property_0_is_protected_and_only_accessible_within_class_1_and_its_subclasses_2445","Property '{0}' is protected and only accessible within class '{1}' and its subclasses."),Property_0_is_protected_and_only_accessible_through_an_instance_of_class_1_This_is_an_instance_of_class_2:la(2446,1,"Property_0_is_protected_and_only_accessible_through_an_instance_of_class_1_This_is_an_instance_of_cl_2446","Property '{0}' is protected and only accessible through an instance of class '{1}'. This is an instance of class '{2}'."),The_0_operator_is_not_allowed_for_boolean_types_Consider_using_1_instead:la(2447,1,"The_0_operator_is_not_allowed_for_boolean_types_Consider_using_1_instead_2447","The '{0}' operator is not allowed for boolean types. Consider using '{1}' instead."),Block_scoped_variable_0_used_before_its_declaration:la(2448,1,"Block_scoped_variable_0_used_before_its_declaration_2448","Block-scoped variable '{0}' used before its declaration."),Class_0_used_before_its_declaration:la(2449,1,"Class_0_used_before_its_declaration_2449","Class '{0}' used before its declaration."),Enum_0_used_before_its_declaration:la(2450,1,"Enum_0_used_before_its_declaration_2450","Enum '{0}' used before its declaration."),Cannot_redeclare_block_scoped_variable_0:la(2451,1,"Cannot_redeclare_block_scoped_variable_0_2451","Cannot redeclare block-scoped variable '{0}'."),An_enum_member_cannot_have_a_numeric_name:la(2452,1,"An_enum_member_cannot_have_a_numeric_name_2452","An enum member cannot have a numeric name."),Variable_0_is_used_before_being_assigned:la(2454,1,"Variable_0_is_used_before_being_assigned_2454","Variable '{0}' is used before being assigned."),Type_alias_0_circularly_references_itself:la(2456,1,"Type_alias_0_circularly_references_itself_2456","Type alias '{0}' circularly references itself."),Type_alias_name_cannot_be_0:la(2457,1,"Type_alias_name_cannot_be_0_2457","Type alias name cannot be '{0}'."),An_AMD_module_cannot_have_multiple_name_assignments:la(2458,1,"An_AMD_module_cannot_have_multiple_name_assignments_2458","An AMD module cannot have multiple name assignments."),Module_0_declares_1_locally_but_it_is_not_exported:la(2459,1,"Module_0_declares_1_locally_but_it_is_not_exported_2459","Module '{0}' declares '{1}' locally, but it is not exported."),Module_0_declares_1_locally_but_it_is_exported_as_2:la(2460,1,"Module_0_declares_1_locally_but_it_is_exported_as_2_2460","Module '{0}' declares '{1}' locally, but it is exported as '{2}'."),Type_0_is_not_an_array_type:la(2461,1,"Type_0_is_not_an_array_type_2461","Type '{0}' is not an array type."),A_rest_element_must_be_last_in_a_destructuring_pattern:la(2462,1,"A_rest_element_must_be_last_in_a_destructuring_pattern_2462","A rest element must be last in a destructuring pattern."),A_binding_pattern_parameter_cannot_be_optional_in_an_implementation_signature:la(2463,1,"A_binding_pattern_parameter_cannot_be_optional_in_an_implementation_signature_2463","A binding pattern parameter cannot be optional in an implementation signature."),A_computed_property_name_must_be_of_type_string_number_symbol_or_any:la(2464,1,"A_computed_property_name_must_be_of_type_string_number_symbol_or_any_2464","A computed property name must be of type 'string', 'number', 'symbol', or 'any'."),this_cannot_be_referenced_in_a_computed_property_name:la(2465,1,"this_cannot_be_referenced_in_a_computed_property_name_2465","'this' cannot be referenced in a computed property name."),super_cannot_be_referenced_in_a_computed_property_name:la(2466,1,"super_cannot_be_referenced_in_a_computed_property_name_2466","'super' cannot be referenced in a computed property name."),A_computed_property_name_cannot_reference_a_type_parameter_from_its_containing_type:la(2467,1,"A_computed_property_name_cannot_reference_a_type_parameter_from_its_containing_type_2467","A computed property name cannot reference a type parameter from its containing type."),Cannot_find_global_value_0:la(2468,1,"Cannot_find_global_value_0_2468","Cannot find global value '{0}'."),The_0_operator_cannot_be_applied_to_type_symbol:la(2469,1,"The_0_operator_cannot_be_applied_to_type_symbol_2469","The '{0}' operator cannot be applied to type 'symbol'."),Spread_operator_in_new_expressions_is_only_available_when_targeting_ECMAScript_5_and_higher:la(2472,1,"Spread_operator_in_new_expressions_is_only_available_when_targeting_ECMAScript_5_and_higher_2472","Spread operator in 'new' expressions is only available when targeting ECMAScript 5 and higher."),Enum_declarations_must_all_be_const_or_non_const:la(2473,1,"Enum_declarations_must_all_be_const_or_non_const_2473","Enum declarations must all be const or non-const."),const_enum_member_initializers_must_be_constant_expressions:la(2474,1,"const_enum_member_initializers_must_be_constant_expressions_2474","const enum member initializers must be constant expressions."),const_enums_can_only_be_used_in_property_or_index_access_expressions_or_the_right_hand_side_of_an_import_declaration_or_export_assignment_or_type_query:la(2475,1,"const_enums_can_only_be_used_in_property_or_index_access_expressions_or_the_right_hand_side_of_an_im_2475","'const' enums can only be used in property or index access expressions or the right hand side of an import declaration or export assignment or type query."),A_const_enum_member_can_only_be_accessed_using_a_string_literal:la(2476,1,"A_const_enum_member_can_only_be_accessed_using_a_string_literal_2476","A const enum member can only be accessed using a string literal."),const_enum_member_initializer_was_evaluated_to_a_non_finite_value:la(2477,1,"const_enum_member_initializer_was_evaluated_to_a_non_finite_value_2477","'const' enum member initializer was evaluated to a non-finite value."),const_enum_member_initializer_was_evaluated_to_disallowed_value_NaN:la(2478,1,"const_enum_member_initializer_was_evaluated_to_disallowed_value_NaN_2478","'const' enum member initializer was evaluated to disallowed value 'NaN'."),let_is_not_allowed_to_be_used_as_a_name_in_let_or_const_declarations:la(2480,1,"let_is_not_allowed_to_be_used_as_a_name_in_let_or_const_declarations_2480","'let' is not allowed to be used as a name in 'let' or 'const' declarations."),Cannot_initialize_outer_scoped_variable_0_in_the_same_scope_as_block_scoped_declaration_1:la(2481,1,"Cannot_initialize_outer_scoped_variable_0_in_the_same_scope_as_block_scoped_declaration_1_2481","Cannot initialize outer scoped variable '{0}' in the same scope as block scoped declaration '{1}'."),The_left_hand_side_of_a_for_of_statement_cannot_use_a_type_annotation:la(2483,1,"The_left_hand_side_of_a_for_of_statement_cannot_use_a_type_annotation_2483","The left-hand side of a 'for...of' statement cannot use a type annotation."),Export_declaration_conflicts_with_exported_declaration_of_0:la(2484,1,"Export_declaration_conflicts_with_exported_declaration_of_0_2484","Export declaration conflicts with exported declaration of '{0}'."),The_left_hand_side_of_a_for_of_statement_must_be_a_variable_or_a_property_access:la(2487,1,"The_left_hand_side_of_a_for_of_statement_must_be_a_variable_or_a_property_access_2487","The left-hand side of a 'for...of' statement must be a variable or a property access."),Type_0_must_have_a_Symbol_iterator_method_that_returns_an_iterator:la(2488,1,"Type_0_must_have_a_Symbol_iterator_method_that_returns_an_iterator_2488","Type '{0}' must have a '[Symbol.iterator]()' method that returns an iterator."),An_iterator_must_have_a_next_method:la(2489,1,"An_iterator_must_have_a_next_method_2489","An iterator must have a 'next()' method."),The_type_returned_by_the_0_method_of_an_iterator_must_have_a_value_property:la(2490,1,"The_type_returned_by_the_0_method_of_an_iterator_must_have_a_value_property_2490","The type returned by the '{0}()' method of an iterator must have a 'value' property."),The_left_hand_side_of_a_for_in_statement_cannot_be_a_destructuring_pattern:la(2491,1,"The_left_hand_side_of_a_for_in_statement_cannot_be_a_destructuring_pattern_2491","The left-hand side of a 'for...in' statement cannot be a destructuring pattern."),Cannot_redeclare_identifier_0_in_catch_clause:la(2492,1,"Cannot_redeclare_identifier_0_in_catch_clause_2492","Cannot redeclare identifier '{0}' in catch clause."),Tuple_type_0_of_length_1_has_no_element_at_index_2:la(2493,1,"Tuple_type_0_of_length_1_has_no_element_at_index_2_2493","Tuple type '{0}' of length '{1}' has no element at index '{2}'."),Using_a_string_in_a_for_of_statement_is_only_supported_in_ECMAScript_5_and_higher:la(2494,1,"Using_a_string_in_a_for_of_statement_is_only_supported_in_ECMAScript_5_and_higher_2494","Using a string in a 'for...of' statement is only supported in ECMAScript 5 and higher."),Type_0_is_not_an_array_type_or_a_string_type:la(2495,1,"Type_0_is_not_an_array_type_or_a_string_type_2495","Type '{0}' is not an array type or a string type."),The_arguments_object_cannot_be_referenced_in_an_arrow_function_in_ES5_Consider_using_a_standard_function_expression:la(2496,1,"The_arguments_object_cannot_be_referenced_in_an_arrow_function_in_ES5_Consider_using_a_standard_func_2496","The 'arguments' object cannot be referenced in an arrow function in ES5. Consider using a standard function expression."),This_module_can_only_be_referenced_with_ECMAScript_imports_Slashexports_by_turning_on_the_0_flag_and_referencing_its_default_export:la(2497,1,"This_module_can_only_be_referenced_with_ECMAScript_imports_Slashexports_by_turning_on_the_0_flag_and_2497","This module can only be referenced with ECMAScript imports/exports by turning on the '{0}' flag and referencing its default export."),Module_0_uses_export_and_cannot_be_used_with_export_Asterisk:la(2498,1,"Module_0_uses_export_and_cannot_be_used_with_export_Asterisk_2498","Module '{0}' uses 'export =' and cannot be used with 'export *'."),An_interface_can_only_extend_an_identifier_Slashqualified_name_with_optional_type_arguments:la(2499,1,"An_interface_can_only_extend_an_identifier_Slashqualified_name_with_optional_type_arguments_2499","An interface can only extend an identifier/qualified-name with optional type arguments."),A_class_can_only_implement_an_identifier_Slashqualified_name_with_optional_type_arguments:la(2500,1,"A_class_can_only_implement_an_identifier_Slashqualified_name_with_optional_type_arguments_2500","A class can only implement an identifier/qualified-name with optional type arguments."),A_rest_element_cannot_contain_a_binding_pattern:la(2501,1,"A_rest_element_cannot_contain_a_binding_pattern_2501","A rest element cannot contain a binding pattern."),_0_is_referenced_directly_or_indirectly_in_its_own_type_annotation:la(2502,1,"_0_is_referenced_directly_or_indirectly_in_its_own_type_annotation_2502","'{0}' is referenced directly or indirectly in its own type annotation."),Cannot_find_namespace_0:la(2503,1,"Cannot_find_namespace_0_2503","Cannot find namespace '{0}'."),Type_0_must_have_a_Symbol_asyncIterator_method_that_returns_an_async_iterator:la(2504,1,"Type_0_must_have_a_Symbol_asyncIterator_method_that_returns_an_async_iterator_2504","Type '{0}' must have a '[Symbol.asyncIterator]()' method that returns an async iterator."),A_generator_cannot_have_a_void_type_annotation:la(2505,1,"A_generator_cannot_have_a_void_type_annotation_2505","A generator cannot have a 'void' type annotation."),_0_is_referenced_directly_or_indirectly_in_its_own_base_expression:la(2506,1,"_0_is_referenced_directly_or_indirectly_in_its_own_base_expression_2506","'{0}' is referenced directly or indirectly in its own base expression."),Type_0_is_not_a_constructor_function_type:la(2507,1,"Type_0_is_not_a_constructor_function_type_2507","Type '{0}' is not a constructor function type."),No_base_constructor_has_the_specified_number_of_type_arguments:la(2508,1,"No_base_constructor_has_the_specified_number_of_type_arguments_2508","No base constructor has the specified number of type arguments."),Base_constructor_return_type_0_is_not_an_object_type_or_intersection_of_object_types_with_statically_known_members:la(2509,1,"Base_constructor_return_type_0_is_not_an_object_type_or_intersection_of_object_types_with_statically_2509","Base constructor return type '{0}' is not an object type or intersection of object types with statically known members."),Base_constructors_must_all_have_the_same_return_type:la(2510,1,"Base_constructors_must_all_have_the_same_return_type_2510","Base constructors must all have the same return type."),Cannot_create_an_instance_of_an_abstract_class:la(2511,1,"Cannot_create_an_instance_of_an_abstract_class_2511","Cannot create an instance of an abstract class."),Overload_signatures_must_all_be_abstract_or_non_abstract:la(2512,1,"Overload_signatures_must_all_be_abstract_or_non_abstract_2512","Overload signatures must all be abstract or non-abstract."),Abstract_method_0_in_class_1_cannot_be_accessed_via_super_expression:la(2513,1,"Abstract_method_0_in_class_1_cannot_be_accessed_via_super_expression_2513","Abstract method '{0}' in class '{1}' cannot be accessed via super expression."),A_tuple_type_cannot_be_indexed_with_a_negative_value:la(2514,1,"A_tuple_type_cannot_be_indexed_with_a_negative_value_2514","A tuple type cannot be indexed with a negative value."),Non_abstract_class_0_does_not_implement_inherited_abstract_member_1_from_class_2:la(2515,1,"Non_abstract_class_0_does_not_implement_inherited_abstract_member_1_from_class_2_2515","Non-abstract class '{0}' does not implement inherited abstract member {1} from class '{2}'."),All_declarations_of_an_abstract_method_must_be_consecutive:la(2516,1,"All_declarations_of_an_abstract_method_must_be_consecutive_2516","All declarations of an abstract method must be consecutive."),Cannot_assign_an_abstract_constructor_type_to_a_non_abstract_constructor_type:la(2517,1,"Cannot_assign_an_abstract_constructor_type_to_a_non_abstract_constructor_type_2517","Cannot assign an abstract constructor type to a non-abstract constructor type."),A_this_based_type_guard_is_not_compatible_with_a_parameter_based_type_guard:la(2518,1,"A_this_based_type_guard_is_not_compatible_with_a_parameter_based_type_guard_2518","A 'this'-based type guard is not compatible with a parameter-based type guard."),An_async_iterator_must_have_a_next_method:la(2519,1,"An_async_iterator_must_have_a_next_method_2519","An async iterator must have a 'next()' method."),Duplicate_identifier_0_Compiler_uses_declaration_1_to_support_async_functions:la(2520,1,"Duplicate_identifier_0_Compiler_uses_declaration_1_to_support_async_functions_2520","Duplicate identifier '{0}'. Compiler uses declaration '{1}' to support async functions."),The_arguments_object_cannot_be_referenced_in_an_async_function_or_method_in_ES5_Consider_using_a_standard_function_or_method:la(2522,1,"The_arguments_object_cannot_be_referenced_in_an_async_function_or_method_in_ES5_Consider_using_a_sta_2522","The 'arguments' object cannot be referenced in an async function or method in ES5. Consider using a standard function or method."),yield_expressions_cannot_be_used_in_a_parameter_initializer:la(2523,1,"yield_expressions_cannot_be_used_in_a_parameter_initializer_2523","'yield' expressions cannot be used in a parameter initializer."),await_expressions_cannot_be_used_in_a_parameter_initializer:la(2524,1,"await_expressions_cannot_be_used_in_a_parameter_initializer_2524","'await' expressions cannot be used in a parameter initializer."),A_this_type_is_available_only_in_a_non_static_member_of_a_class_or_interface:la(2526,1,"A_this_type_is_available_only_in_a_non_static_member_of_a_class_or_interface_2526","A 'this' type is available only in a non-static member of a class or interface."),The_inferred_type_of_0_references_an_inaccessible_1_type_A_type_annotation_is_necessary:la(2527,1,"The_inferred_type_of_0_references_an_inaccessible_1_type_A_type_annotation_is_necessary_2527","The inferred type of '{0}' references an inaccessible '{1}' type. A type annotation is necessary."),A_module_cannot_have_multiple_default_exports:la(2528,1,"A_module_cannot_have_multiple_default_exports_2528","A module cannot have multiple default exports."),Duplicate_identifier_0_Compiler_reserves_name_1_in_top_level_scope_of_a_module_containing_async_functions:la(2529,1,"Duplicate_identifier_0_Compiler_reserves_name_1_in_top_level_scope_of_a_module_containing_async_func_2529","Duplicate identifier '{0}'. Compiler reserves name '{1}' in top level scope of a module containing async functions."),Property_0_is_incompatible_with_index_signature:la(2530,1,"Property_0_is_incompatible_with_index_signature_2530","Property '{0}' is incompatible with index signature."),Object_is_possibly_null:la(2531,1,"Object_is_possibly_null_2531","Object is possibly 'null'."),Object_is_possibly_undefined:la(2532,1,"Object_is_possibly_undefined_2532","Object is possibly 'undefined'."),Object_is_possibly_null_or_undefined:la(2533,1,"Object_is_possibly_null_or_undefined_2533","Object is possibly 'null' or 'undefined'."),A_function_returning_never_cannot_have_a_reachable_end_point:la(2534,1,"A_function_returning_never_cannot_have_a_reachable_end_point_2534","A function returning 'never' cannot have a reachable end point."),Type_0_cannot_be_used_to_index_type_1:la(2536,1,"Type_0_cannot_be_used_to_index_type_1_2536","Type '{0}' cannot be used to index type '{1}'."),Type_0_has_no_matching_index_signature_for_type_1:la(2537,1,"Type_0_has_no_matching_index_signature_for_type_1_2537","Type '{0}' has no matching index signature for type '{1}'."),Type_0_cannot_be_used_as_an_index_type:la(2538,1,"Type_0_cannot_be_used_as_an_index_type_2538","Type '{0}' cannot be used as an index type."),Cannot_assign_to_0_because_it_is_not_a_variable:la(2539,1,"Cannot_assign_to_0_because_it_is_not_a_variable_2539","Cannot assign to '{0}' because it is not a variable."),Cannot_assign_to_0_because_it_is_a_read_only_property:la(2540,1,"Cannot_assign_to_0_because_it_is_a_read_only_property_2540","Cannot assign to '{0}' because it is a read-only property."),Index_signature_in_type_0_only_permits_reading:la(2542,1,"Index_signature_in_type_0_only_permits_reading_2542","Index signature in type '{0}' only permits reading."),Duplicate_identifier_newTarget_Compiler_uses_variable_declaration_newTarget_to_capture_new_target_meta_property_reference:la(2543,1,"Duplicate_identifier_newTarget_Compiler_uses_variable_declaration_newTarget_to_capture_new_target_me_2543","Duplicate identifier '_newTarget'. Compiler uses variable declaration '_newTarget' to capture 'new.target' meta-property reference."),Expression_resolves_to_variable_declaration_newTarget_that_compiler_uses_to_capture_new_target_meta_property_reference:la(2544,1,"Expression_resolves_to_variable_declaration_newTarget_that_compiler_uses_to_capture_new_target_meta__2544","Expression resolves to variable declaration '_newTarget' that compiler uses to capture 'new.target' meta-property reference."),A_mixin_class_must_have_a_constructor_with_a_single_rest_parameter_of_type_any:la(2545,1,"A_mixin_class_must_have_a_constructor_with_a_single_rest_parameter_of_type_any_2545","A mixin class must have a constructor with a single rest parameter of type 'any[]'."),The_type_returned_by_the_0_method_of_an_async_iterator_must_be_a_promise_for_a_type_with_a_value_property:la(2547,1,"The_type_returned_by_the_0_method_of_an_async_iterator_must_be_a_promise_for_a_type_with_a_value_pro_2547","The type returned by the '{0}()' method of an async iterator must be a promise for a type with a 'value' property."),Type_0_is_not_an_array_type_or_does_not_have_a_Symbol_iterator_method_that_returns_an_iterator:la(2548,1,"Type_0_is_not_an_array_type_or_does_not_have_a_Symbol_iterator_method_that_returns_an_iterator_2548","Type '{0}' is not an array type or does not have a '[Symbol.iterator]()' method that returns an iterator."),Type_0_is_not_an_array_type_or_a_string_type_or_does_not_have_a_Symbol_iterator_method_that_returns_an_iterator:la(2549,1,"Type_0_is_not_an_array_type_or_a_string_type_or_does_not_have_a_Symbol_iterator_method_that_returns__2549","Type '{0}' is not an array type or a string type or does not have a '[Symbol.iterator]()' method that returns an iterator."),Property_0_does_not_exist_on_type_1_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_2_or_later:la(2550,1,"Property_0_does_not_exist_on_type_1_Do_you_need_to_change_your_target_library_Try_changing_the_lib_c_2550","Property '{0}' does not exist on type '{1}'. Do you need to change your target library? Try changing the 'lib' compiler option to '{2}' or later."),Property_0_does_not_exist_on_type_1_Did_you_mean_2:la(2551,1,"Property_0_does_not_exist_on_type_1_Did_you_mean_2_2551","Property '{0}' does not exist on type '{1}'. Did you mean '{2}'?"),Cannot_find_name_0_Did_you_mean_1:la(2552,1,"Cannot_find_name_0_Did_you_mean_1_2552","Cannot find name '{0}'. Did you mean '{1}'?"),Computed_values_are_not_permitted_in_an_enum_with_string_valued_members:la(2553,1,"Computed_values_are_not_permitted_in_an_enum_with_string_valued_members_2553","Computed values are not permitted in an enum with string valued members."),Expected_0_arguments_but_got_1:la(2554,1,"Expected_0_arguments_but_got_1_2554","Expected {0} arguments, but got {1}."),Expected_at_least_0_arguments_but_got_1:la(2555,1,"Expected_at_least_0_arguments_but_got_1_2555","Expected at least {0} arguments, but got {1}."),A_spread_argument_must_either_have_a_tuple_type_or_be_passed_to_a_rest_parameter:la(2556,1,"A_spread_argument_must_either_have_a_tuple_type_or_be_passed_to_a_rest_parameter_2556","A spread argument must either have a tuple type or be passed to a rest parameter."),Expected_0_type_arguments_but_got_1:la(2558,1,"Expected_0_type_arguments_but_got_1_2558","Expected {0} type arguments, but got {1}."),Type_0_has_no_properties_in_common_with_type_1:la(2559,1,"Type_0_has_no_properties_in_common_with_type_1_2559","Type '{0}' has no properties in common with type '{1}'."),Value_of_type_0_has_no_properties_in_common_with_type_1_Did_you_mean_to_call_it:la(2560,1,"Value_of_type_0_has_no_properties_in_common_with_type_1_Did_you_mean_to_call_it_2560","Value of type '{0}' has no properties in common with type '{1}'. Did you mean to call it?"),Object_literal_may_only_specify_known_properties_but_0_does_not_exist_in_type_1_Did_you_mean_to_write_2:la(2561,1,"Object_literal_may_only_specify_known_properties_but_0_does_not_exist_in_type_1_Did_you_mean_to_writ_2561","Object literal may only specify known properties, but '{0}' does not exist in type '{1}'. Did you mean to write '{2}'?"),Base_class_expressions_cannot_reference_class_type_parameters:la(2562,1,"Base_class_expressions_cannot_reference_class_type_parameters_2562","Base class expressions cannot reference class type parameters."),The_containing_function_or_module_body_is_too_large_for_control_flow_analysis:la(2563,1,"The_containing_function_or_module_body_is_too_large_for_control_flow_analysis_2563","The containing function or module body is too large for control flow analysis."),Property_0_has_no_initializer_and_is_not_definitely_assigned_in_the_constructor:la(2564,1,"Property_0_has_no_initializer_and_is_not_definitely_assigned_in_the_constructor_2564","Property '{0}' has no initializer and is not definitely assigned in the constructor."),Property_0_is_used_before_being_assigned:la(2565,1,"Property_0_is_used_before_being_assigned_2565","Property '{0}' is used before being assigned."),A_rest_element_cannot_have_a_property_name:la(2566,1,"A_rest_element_cannot_have_a_property_name_2566","A rest element cannot have a property name."),Enum_declarations_can_only_merge_with_namespace_or_other_enum_declarations:la(2567,1,"Enum_declarations_can_only_merge_with_namespace_or_other_enum_declarations_2567","Enum declarations can only merge with namespace or other enum declarations."),Property_0_may_not_exist_on_type_1_Did_you_mean_2:la(2568,1,"Property_0_may_not_exist_on_type_1_Did_you_mean_2_2568","Property '{0}' may not exist on type '{1}'. Did you mean '{2}'?"),Could_not_find_name_0_Did_you_mean_1:la(2570,1,"Could_not_find_name_0_Did_you_mean_1_2570","Could not find name '{0}'. Did you mean '{1}'?"),Object_is_of_type_unknown:la(2571,1,"Object_is_of_type_unknown_2571","Object is of type 'unknown'."),A_rest_element_type_must_be_an_array_type:la(2574,1,"A_rest_element_type_must_be_an_array_type_2574","A rest element type must be an array type."),No_overload_expects_0_arguments_but_overloads_do_exist_that_expect_either_1_or_2_arguments:la(2575,1,"No_overload_expects_0_arguments_but_overloads_do_exist_that_expect_either_1_or_2_arguments_2575","No overload expects {0} arguments, but overloads do exist that expect either {1} or {2} arguments."),Property_0_does_not_exist_on_type_1_Did_you_mean_to_access_the_static_member_2_instead:la(2576,1,"Property_0_does_not_exist_on_type_1_Did_you_mean_to_access_the_static_member_2_instead_2576","Property '{0}' does not exist on type '{1}'. Did you mean to access the static member '{2}' instead?"),Return_type_annotation_circularly_references_itself:la(2577,1,"Return_type_annotation_circularly_references_itself_2577","Return type annotation circularly references itself."),Unused_ts_expect_error_directive:la(2578,1,"Unused_ts_expect_error_directive_2578","Unused '@ts-expect-error' directive."),Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_node_Try_npm_i_save_dev_types_Slashnode:la(2580,1,"Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_node_Try_npm_i_save_dev_types_Slashno_2580","Cannot find name '{0}'. Do you need to install type definitions for node? Try `npm i --save-dev @types/node`."),Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_jQuery_Try_npm_i_save_dev_types_Slashjquery:la(2581,1,"Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_jQuery_Try_npm_i_save_dev_types_Slash_2581","Cannot find name '{0}'. Do you need to install type definitions for jQuery? Try `npm i --save-dev @types/jquery`."),Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_a_test_runner_Try_npm_i_save_dev_types_Slashjest_or_npm_i_save_dev_types_Slashmocha:la(2582,1,"Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_a_test_runner_Try_npm_i_save_dev_type_2582","Cannot find name '{0}'. Do you need to install type definitions for a test runner? Try `npm i --save-dev @types/jest` or `npm i --save-dev @types/mocha`."),Cannot_find_name_0_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_1_or_later:la(2583,1,"Cannot_find_name_0_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_2583","Cannot find name '{0}'. Do you need to change your target library? Try changing the 'lib' compiler option to '{1}' or later."),Cannot_find_name_0_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_include_dom:la(2584,1,"Cannot_find_name_0_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_2584","Cannot find name '{0}'. Do you need to change your target library? Try changing the 'lib' compiler option to include 'dom'."),_0_only_refers_to_a_type_but_is_being_used_as_a_value_here_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_es2015_or_later:la(2585,1,"_0_only_refers_to_a_type_but_is_being_used_as_a_value_here_Do_you_need_to_change_your_target_library_2585","'{0}' only refers to a type, but is being used as a value here. Do you need to change your target library? Try changing the 'lib' compiler option to es2015 or later."),Cannot_assign_to_0_because_it_is_a_constant:la(2588,1,"Cannot_assign_to_0_because_it_is_a_constant_2588","Cannot assign to '{0}' because it is a constant."),Type_instantiation_is_excessively_deep_and_possibly_infinite:la(2589,1,"Type_instantiation_is_excessively_deep_and_possibly_infinite_2589","Type instantiation is excessively deep and possibly infinite."),Expression_produces_a_union_type_that_is_too_complex_to_represent:la(2590,1,"Expression_produces_a_union_type_that_is_too_complex_to_represent_2590","Expression produces a union type that is too complex to represent."),Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_node_Try_npm_i_save_dev_types_Slashnode_and_then_add_node_to_the_types_field_in_your_tsconfig:la(2591,1,"Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_node_Try_npm_i_save_dev_types_Slashno_2591","Cannot find name '{0}'. Do you need to install type definitions for node? Try `npm i --save-dev @types/node` and then add 'node' to the types field in your tsconfig."),Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_jQuery_Try_npm_i_save_dev_types_Slashjquery_and_then_add_jquery_to_the_types_field_in_your_tsconfig:la(2592,1,"Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_jQuery_Try_npm_i_save_dev_types_Slash_2592","Cannot find name '{0}'. Do you need to install type definitions for jQuery? Try `npm i --save-dev @types/jquery` and then add 'jquery' to the types field in your tsconfig."),Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_a_test_runner_Try_npm_i_save_dev_types_Slashjest_or_npm_i_save_dev_types_Slashmocha_and_then_add_jest_or_mocha_to_the_types_field_in_your_tsconfig:la(2593,1,"Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_a_test_runner_Try_npm_i_save_dev_type_2593","Cannot find name '{0}'. Do you need to install type definitions for a test runner? Try `npm i --save-dev @types/jest` or `npm i --save-dev @types/mocha` and then add 'jest' or 'mocha' to the types field in your tsconfig."),This_module_is_declared_with_export_and_can_only_be_used_with_a_default_import_when_using_the_0_flag:la(2594,1,"This_module_is_declared_with_export_and_can_only_be_used_with_a_default_import_when_using_the_0_flag_2594","This module is declared with 'export =', and can only be used with a default import when using the '{0}' flag."),_0_can_only_be_imported_by_using_a_default_import:la(2595,1,"_0_can_only_be_imported_by_using_a_default_import_2595","'{0}' can only be imported by using a default import."),_0_can_only_be_imported_by_turning_on_the_esModuleInterop_flag_and_using_a_default_import:la(2596,1,"_0_can_only_be_imported_by_turning_on_the_esModuleInterop_flag_and_using_a_default_import_2596","'{0}' can only be imported by turning on the 'esModuleInterop' flag and using a default import."),_0_can_only_be_imported_by_using_a_require_call_or_by_using_a_default_import:la(2597,1,"_0_can_only_be_imported_by_using_a_require_call_or_by_using_a_default_import_2597","'{0}' can only be imported by using a 'require' call or by using a default import."),_0_can_only_be_imported_by_using_a_require_call_or_by_turning_on_the_esModuleInterop_flag_and_using_a_default_import:la(2598,1,"_0_can_only_be_imported_by_using_a_require_call_or_by_turning_on_the_esModuleInterop_flag_and_using__2598","'{0}' can only be imported by using a 'require' call or by turning on the 'esModuleInterop' flag and using a default import."),JSX_element_implicitly_has_type_any_because_the_global_type_JSX_Element_does_not_exist:la(2602,1,"JSX_element_implicitly_has_type_any_because_the_global_type_JSX_Element_does_not_exist_2602","JSX element implicitly has type 'any' because the global type 'JSX.Element' does not exist."),Property_0_in_type_1_is_not_assignable_to_type_2:la(2603,1,"Property_0_in_type_1_is_not_assignable_to_type_2_2603","Property '{0}' in type '{1}' is not assignable to type '{2}'."),JSX_element_type_0_does_not_have_any_construct_or_call_signatures:la(2604,1,"JSX_element_type_0_does_not_have_any_construct_or_call_signatures_2604","JSX element type '{0}' does not have any construct or call signatures."),Property_0_of_JSX_spread_attribute_is_not_assignable_to_target_property:la(2606,1,"Property_0_of_JSX_spread_attribute_is_not_assignable_to_target_property_2606","Property '{0}' of JSX spread attribute is not assignable to target property."),JSX_element_class_does_not_support_attributes_because_it_does_not_have_a_0_property:la(2607,1,"JSX_element_class_does_not_support_attributes_because_it_does_not_have_a_0_property_2607","JSX element class does not support attributes because it does not have a '{0}' property."),The_global_type_JSX_0_may_not_have_more_than_one_property:la(2608,1,"The_global_type_JSX_0_may_not_have_more_than_one_property_2608","The global type 'JSX.{0}' may not have more than one property."),JSX_spread_child_must_be_an_array_type:la(2609,1,"JSX_spread_child_must_be_an_array_type_2609","JSX spread child must be an array type."),_0_is_defined_as_an_accessor_in_class_1_but_is_overridden_here_in_2_as_an_instance_property:la(2610,1,"_0_is_defined_as_an_accessor_in_class_1_but_is_overridden_here_in_2_as_an_instance_property_2610","'{0}' is defined as an accessor in class '{1}', but is overridden here in '{2}' as an instance property."),_0_is_defined_as_a_property_in_class_1_but_is_overridden_here_in_2_as_an_accessor:la(2611,1,"_0_is_defined_as_a_property_in_class_1_but_is_overridden_here_in_2_as_an_accessor_2611","'{0}' is defined as a property in class '{1}', but is overridden here in '{2}' as an accessor."),Property_0_will_overwrite_the_base_property_in_1_If_this_is_intentional_add_an_initializer_Otherwise_add_a_declare_modifier_or_remove_the_redundant_declaration:la(2612,1,"Property_0_will_overwrite_the_base_property_in_1_If_this_is_intentional_add_an_initializer_Otherwise_2612","Property '{0}' will overwrite the base property in '{1}'. If this is intentional, add an initializer. Otherwise, add a 'declare' modifier or remove the redundant declaration."),Module_0_has_no_default_export_Did_you_mean_to_use_import_1_from_0_instead:la(2613,1,"Module_0_has_no_default_export_Did_you_mean_to_use_import_1_from_0_instead_2613","Module '{0}' has no default export. Did you mean to use 'import { {1} } from {0}' instead?"),Module_0_has_no_exported_member_1_Did_you_mean_to_use_import_1_from_0_instead:la(2614,1,"Module_0_has_no_exported_member_1_Did_you_mean_to_use_import_1_from_0_instead_2614","Module '{0}' has no exported member '{1}'. Did you mean to use 'import {1} from {0}' instead?"),Type_of_property_0_circularly_references_itself_in_mapped_type_1:la(2615,1,"Type_of_property_0_circularly_references_itself_in_mapped_type_1_2615","Type of property '{0}' circularly references itself in mapped type '{1}'."),_0_can_only_be_imported_by_using_import_1_require_2_or_a_default_import:la(2616,1,"_0_can_only_be_imported_by_using_import_1_require_2_or_a_default_import_2616","'{0}' can only be imported by using 'import {1} = require({2})' or a default import."),_0_can_only_be_imported_by_using_import_1_require_2_or_by_turning_on_the_esModuleInterop_flag_and_using_a_default_import:la(2617,1,"_0_can_only_be_imported_by_using_import_1_require_2_or_by_turning_on_the_esModuleInterop_flag_and_us_2617","'{0}' can only be imported by using 'import {1} = require({2})' or by turning on the 'esModuleInterop' flag and using a default import."),Source_has_0_element_s_but_target_requires_1:la(2618,1,"Source_has_0_element_s_but_target_requires_1_2618","Source has {0} element(s) but target requires {1}."),Source_has_0_element_s_but_target_allows_only_1:la(2619,1,"Source_has_0_element_s_but_target_allows_only_1_2619","Source has {0} element(s) but target allows only {1}."),Target_requires_0_element_s_but_source_may_have_fewer:la(2620,1,"Target_requires_0_element_s_but_source_may_have_fewer_2620","Target requires {0} element(s) but source may have fewer."),Target_allows_only_0_element_s_but_source_may_have_more:la(2621,1,"Target_allows_only_0_element_s_but_source_may_have_more_2621","Target allows only {0} element(s) but source may have more."),Source_provides_no_match_for_required_element_at_position_0_in_target:la(2623,1,"Source_provides_no_match_for_required_element_at_position_0_in_target_2623","Source provides no match for required element at position {0} in target."),Source_provides_no_match_for_variadic_element_at_position_0_in_target:la(2624,1,"Source_provides_no_match_for_variadic_element_at_position_0_in_target_2624","Source provides no match for variadic element at position {0} in target."),Variadic_element_at_position_0_in_source_does_not_match_element_at_position_1_in_target:la(2625,1,"Variadic_element_at_position_0_in_source_does_not_match_element_at_position_1_in_target_2625","Variadic element at position {0} in source does not match element at position {1} in target."),Type_at_position_0_in_source_is_not_compatible_with_type_at_position_1_in_target:la(2626,1,"Type_at_position_0_in_source_is_not_compatible_with_type_at_position_1_in_target_2626","Type at position {0} in source is not compatible with type at position {1} in target."),Type_at_positions_0_through_1_in_source_is_not_compatible_with_type_at_position_2_in_target:la(2627,1,"Type_at_positions_0_through_1_in_source_is_not_compatible_with_type_at_position_2_in_target_2627","Type at positions {0} through {1} in source is not compatible with type at position {2} in target."),Cannot_assign_to_0_because_it_is_an_enum:la(2628,1,"Cannot_assign_to_0_because_it_is_an_enum_2628","Cannot assign to '{0}' because it is an enum."),Cannot_assign_to_0_because_it_is_a_class:la(2629,1,"Cannot_assign_to_0_because_it_is_a_class_2629","Cannot assign to '{0}' because it is a class."),Cannot_assign_to_0_because_it_is_a_function:la(2630,1,"Cannot_assign_to_0_because_it_is_a_function_2630","Cannot assign to '{0}' because it is a function."),Cannot_assign_to_0_because_it_is_a_namespace:la(2631,1,"Cannot_assign_to_0_because_it_is_a_namespace_2631","Cannot assign to '{0}' because it is a namespace."),Cannot_assign_to_0_because_it_is_an_import:la(2632,1,"Cannot_assign_to_0_because_it_is_an_import_2632","Cannot assign to '{0}' because it is an import."),JSX_property_access_expressions_cannot_include_JSX_namespace_names:la(2633,1,"JSX_property_access_expressions_cannot_include_JSX_namespace_names_2633","JSX property access expressions cannot include JSX namespace names"),_0_index_signatures_are_incompatible:la(2634,1,"_0_index_signatures_are_incompatible_2634","'{0}' index signatures are incompatible."),Type_0_has_no_signatures_for_which_the_type_argument_list_is_applicable:la(2635,1,"Type_0_has_no_signatures_for_which_the_type_argument_list_is_applicable_2635","Type '{0}' has no signatures for which the type argument list is applicable."),Type_0_is_not_assignable_to_type_1_as_implied_by_variance_annotation:la(2636,1,"Type_0_is_not_assignable_to_type_1_as_implied_by_variance_annotation_2636","Type '{0}' is not assignable to type '{1}' as implied by variance annotation."),Variance_annotations_are_only_supported_in_type_aliases_for_object_function_constructor_and_mapped_types:la(2637,1,"Variance_annotations_are_only_supported_in_type_aliases_for_object_function_constructor_and_mapped_t_2637","Variance annotations are only supported in type aliases for object, function, constructor, and mapped types."),Type_0_may_represent_a_primitive_value_which_is_not_permitted_as_the_right_operand_of_the_in_operator:la(2638,1,"Type_0_may_represent_a_primitive_value_which_is_not_permitted_as_the_right_operand_of_the_in_operato_2638","Type '{0}' may represent a primitive value, which is not permitted as the right operand of the 'in' operator."),React_components_cannot_include_JSX_namespace_names:la(2639,1,"React_components_cannot_include_JSX_namespace_names_2639","React components cannot include JSX namespace names"),Cannot_augment_module_0_with_value_exports_because_it_resolves_to_a_non_module_entity:la(2649,1,"Cannot_augment_module_0_with_value_exports_because_it_resolves_to_a_non_module_entity_2649","Cannot augment module '{0}' with value exports because it resolves to a non-module entity."),Non_abstract_class_expression_is_missing_implementations_for_the_following_members_of_0_Colon_1_and_2_more:la(2650,1,"Non_abstract_class_expression_is_missing_implementations_for_the_following_members_of_0_Colon_1_and__2650","Non-abstract class expression is missing implementations for the following members of '{0}': {1} and {2} more."),A_member_initializer_in_a_enum_declaration_cannot_reference_members_declared_after_it_including_members_defined_in_other_enums:la(2651,1,"A_member_initializer_in_a_enum_declaration_cannot_reference_members_declared_after_it_including_memb_2651","A member initializer in a enum declaration cannot reference members declared after it, including members defined in other enums."),Merged_declaration_0_cannot_include_a_default_export_declaration_Consider_adding_a_separate_export_default_0_declaration_instead:la(2652,1,"Merged_declaration_0_cannot_include_a_default_export_declaration_Consider_adding_a_separate_export_d_2652","Merged declaration '{0}' cannot include a default export declaration. Consider adding a separate 'export default {0}' declaration instead."),Non_abstract_class_expression_does_not_implement_inherited_abstract_member_0_from_class_1:la(2653,1,"Non_abstract_class_expression_does_not_implement_inherited_abstract_member_0_from_class_1_2653","Non-abstract class expression does not implement inherited abstract member '{0}' from class '{1}'."),Non_abstract_class_0_is_missing_implementations_for_the_following_members_of_1_Colon_2:la(2654,1,"Non_abstract_class_0_is_missing_implementations_for_the_following_members_of_1_Colon_2_2654","Non-abstract class '{0}' is missing implementations for the following members of '{1}': {2}."),Non_abstract_class_0_is_missing_implementations_for_the_following_members_of_1_Colon_2_and_3_more:la(2655,1,"Non_abstract_class_0_is_missing_implementations_for_the_following_members_of_1_Colon_2_and_3_more_2655","Non-abstract class '{0}' is missing implementations for the following members of '{1}': {2} and {3} more."),Non_abstract_class_expression_is_missing_implementations_for_the_following_members_of_0_Colon_1:la(2656,1,"Non_abstract_class_expression_is_missing_implementations_for_the_following_members_of_0_Colon_1_2656","Non-abstract class expression is missing implementations for the following members of '{0}': {1}."),JSX_expressions_must_have_one_parent_element:la(2657,1,"JSX_expressions_must_have_one_parent_element_2657","JSX expressions must have one parent element."),Type_0_provides_no_match_for_the_signature_1:la(2658,1,"Type_0_provides_no_match_for_the_signature_1_2658","Type '{0}' provides no match for the signature '{1}'."),super_is_only_allowed_in_members_of_object_literal_expressions_when_option_target_is_ES2015_or_higher:la(2659,1,"super_is_only_allowed_in_members_of_object_literal_expressions_when_option_target_is_ES2015_or_highe_2659","'super' is only allowed in members of object literal expressions when option 'target' is 'ES2015' or higher."),super_can_only_be_referenced_in_members_of_derived_classes_or_object_literal_expressions:la(2660,1,"super_can_only_be_referenced_in_members_of_derived_classes_or_object_literal_expressions_2660","'super' can only be referenced in members of derived classes or object literal expressions."),Cannot_export_0_Only_local_declarations_can_be_exported_from_a_module:la(2661,1,"Cannot_export_0_Only_local_declarations_can_be_exported_from_a_module_2661","Cannot export '{0}'. Only local declarations can be exported from a module."),Cannot_find_name_0_Did_you_mean_the_static_member_1_0:la(2662,1,"Cannot_find_name_0_Did_you_mean_the_static_member_1_0_2662","Cannot find name '{0}'. Did you mean the static member '{1}.{0}'?"),Cannot_find_name_0_Did_you_mean_the_instance_member_this_0:la(2663,1,"Cannot_find_name_0_Did_you_mean_the_instance_member_this_0_2663","Cannot find name '{0}'. Did you mean the instance member 'this.{0}'?"),Invalid_module_name_in_augmentation_module_0_cannot_be_found:la(2664,1,"Invalid_module_name_in_augmentation_module_0_cannot_be_found_2664","Invalid module name in augmentation, module '{0}' cannot be found."),Invalid_module_name_in_augmentation_Module_0_resolves_to_an_untyped_module_at_1_which_cannot_be_augmented:la(2665,1,"Invalid_module_name_in_augmentation_Module_0_resolves_to_an_untyped_module_at_1_which_cannot_be_augm_2665","Invalid module name in augmentation. Module '{0}' resolves to an untyped module at '{1}', which cannot be augmented."),Exports_and_export_assignments_are_not_permitted_in_module_augmentations:la(2666,1,"Exports_and_export_assignments_are_not_permitted_in_module_augmentations_2666","Exports and export assignments are not permitted in module augmentations."),Imports_are_not_permitted_in_module_augmentations_Consider_moving_them_to_the_enclosing_external_module:la(2667,1,"Imports_are_not_permitted_in_module_augmentations_Consider_moving_them_to_the_enclosing_external_mod_2667","Imports are not permitted in module augmentations. Consider moving them to the enclosing external module."),export_modifier_cannot_be_applied_to_ambient_modules_and_module_augmentations_since_they_are_always_visible:la(2668,1,"export_modifier_cannot_be_applied_to_ambient_modules_and_module_augmentations_since_they_are_always__2668","'export' modifier cannot be applied to ambient modules and module augmentations since they are always visible."),Augmentations_for_the_global_scope_can_only_be_directly_nested_in_external_modules_or_ambient_module_declarations:la(2669,1,"Augmentations_for_the_global_scope_can_only_be_directly_nested_in_external_modules_or_ambient_module_2669","Augmentations for the global scope can only be directly nested in external modules or ambient module declarations."),Augmentations_for_the_global_scope_should_have_declare_modifier_unless_they_appear_in_already_ambient_context:la(2670,1,"Augmentations_for_the_global_scope_should_have_declare_modifier_unless_they_appear_in_already_ambien_2670","Augmentations for the global scope should have 'declare' modifier unless they appear in already ambient context."),Cannot_augment_module_0_because_it_resolves_to_a_non_module_entity:la(2671,1,"Cannot_augment_module_0_because_it_resolves_to_a_non_module_entity_2671","Cannot augment module '{0}' because it resolves to a non-module entity."),Cannot_assign_a_0_constructor_type_to_a_1_constructor_type:la(2672,1,"Cannot_assign_a_0_constructor_type_to_a_1_constructor_type_2672","Cannot assign a '{0}' constructor type to a '{1}' constructor type."),Constructor_of_class_0_is_private_and_only_accessible_within_the_class_declaration:la(2673,1,"Constructor_of_class_0_is_private_and_only_accessible_within_the_class_declaration_2673","Constructor of class '{0}' is private and only accessible within the class declaration."),Constructor_of_class_0_is_protected_and_only_accessible_within_the_class_declaration:la(2674,1,"Constructor_of_class_0_is_protected_and_only_accessible_within_the_class_declaration_2674","Constructor of class '{0}' is protected and only accessible within the class declaration."),Cannot_extend_a_class_0_Class_constructor_is_marked_as_private:la(2675,1,"Cannot_extend_a_class_0_Class_constructor_is_marked_as_private_2675","Cannot extend a class '{0}'. Class constructor is marked as private."),Accessors_must_both_be_abstract_or_non_abstract:la(2676,1,"Accessors_must_both_be_abstract_or_non_abstract_2676","Accessors must both be abstract or non-abstract."),A_type_predicate_s_type_must_be_assignable_to_its_parameter_s_type:la(2677,1,"A_type_predicate_s_type_must_be_assignable_to_its_parameter_s_type_2677","A type predicate's type must be assignable to its parameter's type."),Type_0_is_not_comparable_to_type_1:la(2678,1,"Type_0_is_not_comparable_to_type_1_2678","Type '{0}' is not comparable to type '{1}'."),A_function_that_is_called_with_the_new_keyword_cannot_have_a_this_type_that_is_void:la(2679,1,"A_function_that_is_called_with_the_new_keyword_cannot_have_a_this_type_that_is_void_2679","A function that is called with the 'new' keyword cannot have a 'this' type that is 'void'."),A_0_parameter_must_be_the_first_parameter:la(2680,1,"A_0_parameter_must_be_the_first_parameter_2680","A '{0}' parameter must be the first parameter."),A_constructor_cannot_have_a_this_parameter:la(2681,1,"A_constructor_cannot_have_a_this_parameter_2681","A constructor cannot have a 'this' parameter."),this_implicitly_has_type_any_because_it_does_not_have_a_type_annotation:la(2683,1,"this_implicitly_has_type_any_because_it_does_not_have_a_type_annotation_2683","'this' implicitly has type 'any' because it does not have a type annotation."),The_this_context_of_type_0_is_not_assignable_to_method_s_this_of_type_1:la(2684,1,"The_this_context_of_type_0_is_not_assignable_to_method_s_this_of_type_1_2684","The 'this' context of type '{0}' is not assignable to method's 'this' of type '{1}'."),The_this_types_of_each_signature_are_incompatible:la(2685,1,"The_this_types_of_each_signature_are_incompatible_2685","The 'this' types of each signature are incompatible."),_0_refers_to_a_UMD_global_but_the_current_file_is_a_module_Consider_adding_an_import_instead:la(2686,1,"_0_refers_to_a_UMD_global_but_the_current_file_is_a_module_Consider_adding_an_import_instead_2686","'{0}' refers to a UMD global, but the current file is a module. Consider adding an import instead."),All_declarations_of_0_must_have_identical_modifiers:la(2687,1,"All_declarations_of_0_must_have_identical_modifiers_2687","All declarations of '{0}' must have identical modifiers."),Cannot_find_type_definition_file_for_0:la(2688,1,"Cannot_find_type_definition_file_for_0_2688","Cannot find type definition file for '{0}'."),Cannot_extend_an_interface_0_Did_you_mean_implements:la(2689,1,"Cannot_extend_an_interface_0_Did_you_mean_implements_2689","Cannot extend an interface '{0}'. Did you mean 'implements'?"),_0_only_refers_to_a_type_but_is_being_used_as_a_value_here_Did_you_mean_to_use_1_in_0:la(2690,1,"_0_only_refers_to_a_type_but_is_being_used_as_a_value_here_Did_you_mean_to_use_1_in_0_2690","'{0}' only refers to a type, but is being used as a value here. Did you mean to use '{1} in {0}'?"),_0_is_a_primitive_but_1_is_a_wrapper_object_Prefer_using_0_when_possible:la(2692,1,"_0_is_a_primitive_but_1_is_a_wrapper_object_Prefer_using_0_when_possible_2692","'{0}' is a primitive, but '{1}' is a wrapper object. Prefer using '{0}' when possible."),_0_only_refers_to_a_type_but_is_being_used_as_a_value_here:la(2693,1,"_0_only_refers_to_a_type_but_is_being_used_as_a_value_here_2693","'{0}' only refers to a type, but is being used as a value here."),Namespace_0_has_no_exported_member_1:la(2694,1,"Namespace_0_has_no_exported_member_1_2694","Namespace '{0}' has no exported member '{1}'."),Left_side_of_comma_operator_is_unused_and_has_no_side_effects:la(2695,1,"Left_side_of_comma_operator_is_unused_and_has_no_side_effects_2695","Left side of comma operator is unused and has no side effects.",!0),The_Object_type_is_assignable_to_very_few_other_types_Did_you_mean_to_use_the_any_type_instead:la(2696,1,"The_Object_type_is_assignable_to_very_few_other_types_Did_you_mean_to_use_the_any_type_instead_2696","The 'Object' type is assignable to very few other types. Did you mean to use the 'any' type instead?"),An_async_function_or_method_must_return_a_Promise_Make_sure_you_have_a_declaration_for_Promise_or_include_ES2015_in_your_lib_option:la(2697,1,"An_async_function_or_method_must_return_a_Promise_Make_sure_you_have_a_declaration_for_Promise_or_in_2697","An async function or method must return a 'Promise'. Make sure you have a declaration for 'Promise' or include 'ES2015' in your '--lib' option."),Spread_types_may_only_be_created_from_object_types:la(2698,1,"Spread_types_may_only_be_created_from_object_types_2698","Spread types may only be created from object types."),Static_property_0_conflicts_with_built_in_property_Function_0_of_constructor_function_1:la(2699,1,"Static_property_0_conflicts_with_built_in_property_Function_0_of_constructor_function_1_2699","Static property '{0}' conflicts with built-in property 'Function.{0}' of constructor function '{1}'."),Rest_types_may_only_be_created_from_object_types:la(2700,1,"Rest_types_may_only_be_created_from_object_types_2700","Rest types may only be created from object types."),The_target_of_an_object_rest_assignment_must_be_a_variable_or_a_property_access:la(2701,1,"The_target_of_an_object_rest_assignment_must_be_a_variable_or_a_property_access_2701","The target of an object rest assignment must be a variable or a property access."),_0_only_refers_to_a_type_but_is_being_used_as_a_namespace_here:la(2702,1,"_0_only_refers_to_a_type_but_is_being_used_as_a_namespace_here_2702","'{0}' only refers to a type, but is being used as a namespace here."),The_operand_of_a_delete_operator_must_be_a_property_reference:la(2703,1,"The_operand_of_a_delete_operator_must_be_a_property_reference_2703","The operand of a 'delete' operator must be a property reference."),The_operand_of_a_delete_operator_cannot_be_a_read_only_property:la(2704,1,"The_operand_of_a_delete_operator_cannot_be_a_read_only_property_2704","The operand of a 'delete' operator cannot be a read-only property."),An_async_function_or_method_in_ES5_requires_the_Promise_constructor_Make_sure_you_have_a_declaration_for_the_Promise_constructor_or_include_ES2015_in_your_lib_option:la(2705,1,"An_async_function_or_method_in_ES5_requires_the_Promise_constructor_Make_sure_you_have_a_declaration_2705","An async function or method in ES5 requires the 'Promise' constructor. Make sure you have a declaration for the 'Promise' constructor or include 'ES2015' in your '--lib' option."),Required_type_parameters_may_not_follow_optional_type_parameters:la(2706,1,"Required_type_parameters_may_not_follow_optional_type_parameters_2706","Required type parameters may not follow optional type parameters."),Generic_type_0_requires_between_1_and_2_type_arguments:la(2707,1,"Generic_type_0_requires_between_1_and_2_type_arguments_2707","Generic type '{0}' requires between {1} and {2} type arguments."),Cannot_use_namespace_0_as_a_value:la(2708,1,"Cannot_use_namespace_0_as_a_value_2708","Cannot use namespace '{0}' as a value."),Cannot_use_namespace_0_as_a_type:la(2709,1,"Cannot_use_namespace_0_as_a_type_2709","Cannot use namespace '{0}' as a type."),_0_are_specified_twice_The_attribute_named_0_will_be_overwritten:la(2710,1,"_0_are_specified_twice_The_attribute_named_0_will_be_overwritten_2710","'{0}' are specified twice. The attribute named '{0}' will be overwritten."),A_dynamic_import_call_returns_a_Promise_Make_sure_you_have_a_declaration_for_Promise_or_include_ES2015_in_your_lib_option:la(2711,1,"A_dynamic_import_call_returns_a_Promise_Make_sure_you_have_a_declaration_for_Promise_or_include_ES20_2711","A dynamic import call returns a 'Promise'. Make sure you have a declaration for 'Promise' or include 'ES2015' in your '--lib' option."),A_dynamic_import_call_in_ES5_requires_the_Promise_constructor_Make_sure_you_have_a_declaration_for_the_Promise_constructor_or_include_ES2015_in_your_lib_option:la(2712,1,"A_dynamic_import_call_in_ES5_requires_the_Promise_constructor_Make_sure_you_have_a_declaration_for_t_2712","A dynamic import call in ES5 requires the 'Promise' constructor. Make sure you have a declaration for the 'Promise' constructor or include 'ES2015' in your '--lib' option."),Cannot_access_0_1_because_0_is_a_type_but_not_a_namespace_Did_you_mean_to_retrieve_the_type_of_the_property_1_in_0_with_0_1:la(2713,1,"Cannot_access_0_1_because_0_is_a_type_but_not_a_namespace_Did_you_mean_to_retrieve_the_type_of_the_p_2713","Cannot access '{0}.{1}' because '{0}' is a type, but not a namespace. Did you mean to retrieve the type of the property '{1}' in '{0}' with '{0}[\"{1}\"]'?"),The_expression_of_an_export_assignment_must_be_an_identifier_or_qualified_name_in_an_ambient_context:la(2714,1,"The_expression_of_an_export_assignment_must_be_an_identifier_or_qualified_name_in_an_ambient_context_2714","The expression of an export assignment must be an identifier or qualified name in an ambient context."),Abstract_property_0_in_class_1_cannot_be_accessed_in_the_constructor:la(2715,1,"Abstract_property_0_in_class_1_cannot_be_accessed_in_the_constructor_2715","Abstract property '{0}' in class '{1}' cannot be accessed in the constructor."),Type_parameter_0_has_a_circular_default:la(2716,1,"Type_parameter_0_has_a_circular_default_2716","Type parameter '{0}' has a circular default."),Subsequent_property_declarations_must_have_the_same_type_Property_0_must_be_of_type_1_but_here_has_type_2:la(2717,1,"Subsequent_property_declarations_must_have_the_same_type_Property_0_must_be_of_type_1_but_here_has_t_2717","Subsequent property declarations must have the same type. Property '{0}' must be of type '{1}', but here has type '{2}'."),Duplicate_property_0:la(2718,1,"Duplicate_property_0_2718","Duplicate property '{0}'."),Type_0_is_not_assignable_to_type_1_Two_different_types_with_this_name_exist_but_they_are_unrelated:la(2719,1,"Type_0_is_not_assignable_to_type_1_Two_different_types_with_this_name_exist_but_they_are_unrelated_2719","Type '{0}' is not assignable to type '{1}'. Two different types with this name exist, but they are unrelated."),Class_0_incorrectly_implements_class_1_Did_you_mean_to_extend_1_and_inherit_its_members_as_a_subclass:la(2720,1,"Class_0_incorrectly_implements_class_1_Did_you_mean_to_extend_1_and_inherit_its_members_as_a_subclas_2720","Class '{0}' incorrectly implements class '{1}'. Did you mean to extend '{1}' and inherit its members as a subclass?"),Cannot_invoke_an_object_which_is_possibly_null:la(2721,1,"Cannot_invoke_an_object_which_is_possibly_null_2721","Cannot invoke an object which is possibly 'null'."),Cannot_invoke_an_object_which_is_possibly_undefined:la(2722,1,"Cannot_invoke_an_object_which_is_possibly_undefined_2722","Cannot invoke an object which is possibly 'undefined'."),Cannot_invoke_an_object_which_is_possibly_null_or_undefined:la(2723,1,"Cannot_invoke_an_object_which_is_possibly_null_or_undefined_2723","Cannot invoke an object which is possibly 'null' or 'undefined'."),_0_has_no_exported_member_named_1_Did_you_mean_2:la(2724,1,"_0_has_no_exported_member_named_1_Did_you_mean_2_2724","'{0}' has no exported member named '{1}'. Did you mean '{2}'?"),Class_name_cannot_be_Object_when_targeting_ES5_and_above_with_module_0:la(2725,1,"Class_name_cannot_be_Object_when_targeting_ES5_and_above_with_module_0_2725","Class name cannot be 'Object' when targeting ES5 and above with module {0}."),Cannot_find_lib_definition_for_0:la(2726,1,"Cannot_find_lib_definition_for_0_2726","Cannot find lib definition for '{0}'."),Cannot_find_lib_definition_for_0_Did_you_mean_1:la(2727,1,"Cannot_find_lib_definition_for_0_Did_you_mean_1_2727","Cannot find lib definition for '{0}'. Did you mean '{1}'?"),_0_is_declared_here:la(2728,3,"_0_is_declared_here_2728","'{0}' is declared here."),Property_0_is_used_before_its_initialization:la(2729,1,"Property_0_is_used_before_its_initialization_2729","Property '{0}' is used before its initialization."),An_arrow_function_cannot_have_a_this_parameter:la(2730,1,"An_arrow_function_cannot_have_a_this_parameter_2730","An arrow function cannot have a 'this' parameter."),Implicit_conversion_of_a_symbol_to_a_string_will_fail_at_runtime_Consider_wrapping_this_expression_in_String:la(2731,1,"Implicit_conversion_of_a_symbol_to_a_string_will_fail_at_runtime_Consider_wrapping_this_expression_i_2731","Implicit conversion of a 'symbol' to a 'string' will fail at runtime. Consider wrapping this expression in 'String(...)'."),Cannot_find_module_0_Consider_using_resolveJsonModule_to_import_module_with_json_extension:la(2732,1,"Cannot_find_module_0_Consider_using_resolveJsonModule_to_import_module_with_json_extension_2732","Cannot find module '{0}'. Consider using '--resolveJsonModule' to import module with '.json' extension."),Property_0_was_also_declared_here:la(2733,1,"Property_0_was_also_declared_here_2733","Property '{0}' was also declared here."),Are_you_missing_a_semicolon:la(2734,1,"Are_you_missing_a_semicolon_2734","Are you missing a semicolon?"),Did_you_mean_for_0_to_be_constrained_to_type_new_args_Colon_any_1:la(2735,1,"Did_you_mean_for_0_to_be_constrained_to_type_new_args_Colon_any_1_2735","Did you mean for '{0}' to be constrained to type 'new (...args: any[]) => {1}'?"),Operator_0_cannot_be_applied_to_type_1:la(2736,1,"Operator_0_cannot_be_applied_to_type_1_2736","Operator '{0}' cannot be applied to type '{1}'."),BigInt_literals_are_not_available_when_targeting_lower_than_ES2020:la(2737,1,"BigInt_literals_are_not_available_when_targeting_lower_than_ES2020_2737","BigInt literals are not available when targeting lower than ES2020."),An_outer_value_of_this_is_shadowed_by_this_container:la(2738,3,"An_outer_value_of_this_is_shadowed_by_this_container_2738","An outer value of 'this' is shadowed by this container."),Type_0_is_missing_the_following_properties_from_type_1_Colon_2:la(2739,1,"Type_0_is_missing_the_following_properties_from_type_1_Colon_2_2739","Type '{0}' is missing the following properties from type '{1}': {2}"),Type_0_is_missing_the_following_properties_from_type_1_Colon_2_and_3_more:la(2740,1,"Type_0_is_missing_the_following_properties_from_type_1_Colon_2_and_3_more_2740","Type '{0}' is missing the following properties from type '{1}': {2}, and {3} more."),Property_0_is_missing_in_type_1_but_required_in_type_2:la(2741,1,"Property_0_is_missing_in_type_1_but_required_in_type_2_2741","Property '{0}' is missing in type '{1}' but required in type '{2}'."),The_inferred_type_of_0_cannot_be_named_without_a_reference_to_1_This_is_likely_not_portable_A_type_annotation_is_necessary:la(2742,1,"The_inferred_type_of_0_cannot_be_named_without_a_reference_to_1_This_is_likely_not_portable_A_type_a_2742","The inferred type of '{0}' cannot be named without a reference to '{1}'. This is likely not portable. A type annotation is necessary."),No_overload_expects_0_type_arguments_but_overloads_do_exist_that_expect_either_1_or_2_type_arguments:la(2743,1,"No_overload_expects_0_type_arguments_but_overloads_do_exist_that_expect_either_1_or_2_type_arguments_2743","No overload expects {0} type arguments, but overloads do exist that expect either {1} or {2} type arguments."),Type_parameter_defaults_can_only_reference_previously_declared_type_parameters:la(2744,1,"Type_parameter_defaults_can_only_reference_previously_declared_type_parameters_2744","Type parameter defaults can only reference previously declared type parameters."),This_JSX_tag_s_0_prop_expects_type_1_which_requires_multiple_children_but_only_a_single_child_was_provided:la(2745,1,"This_JSX_tag_s_0_prop_expects_type_1_which_requires_multiple_children_but_only_a_single_child_was_pr_2745","This JSX tag's '{0}' prop expects type '{1}' which requires multiple children, but only a single child was provided."),This_JSX_tag_s_0_prop_expects_a_single_child_of_type_1_but_multiple_children_were_provided:la(2746,1,"This_JSX_tag_s_0_prop_expects_a_single_child_of_type_1_but_multiple_children_were_provided_2746","This JSX tag's '{0}' prop expects a single child of type '{1}', but multiple children were provided."),_0_components_don_t_accept_text_as_child_elements_Text_in_JSX_has_the_type_string_but_the_expected_type_of_1_is_2:la(2747,1,"_0_components_don_t_accept_text_as_child_elements_Text_in_JSX_has_the_type_string_but_the_expected_t_2747","'{0}' components don't accept text as child elements. Text in JSX has the type 'string', but the expected type of '{1}' is '{2}'."),Cannot_access_ambient_const_enums_when_0_is_enabled:la(2748,1,"Cannot_access_ambient_const_enums_when_0_is_enabled_2748","Cannot access ambient const enums when '{0}' is enabled."),_0_refers_to_a_value_but_is_being_used_as_a_type_here_Did_you_mean_typeof_0:la(2749,1,"_0_refers_to_a_value_but_is_being_used_as_a_type_here_Did_you_mean_typeof_0_2749","'{0}' refers to a value, but is being used as a type here. Did you mean 'typeof {0}'?"),The_implementation_signature_is_declared_here:la(2750,1,"The_implementation_signature_is_declared_here_2750","The implementation signature is declared here."),Circularity_originates_in_type_at_this_location:la(2751,1,"Circularity_originates_in_type_at_this_location_2751","Circularity originates in type at this location."),The_first_export_default_is_here:la(2752,1,"The_first_export_default_is_here_2752","The first export default is here."),Another_export_default_is_here:la(2753,1,"Another_export_default_is_here_2753","Another export default is here."),super_may_not_use_type_arguments:la(2754,1,"super_may_not_use_type_arguments_2754","'super' may not use type arguments."),No_constituent_of_type_0_is_callable:la(2755,1,"No_constituent_of_type_0_is_callable_2755","No constituent of type '{0}' is callable."),Not_all_constituents_of_type_0_are_callable:la(2756,1,"Not_all_constituents_of_type_0_are_callable_2756","Not all constituents of type '{0}' are callable."),Type_0_has_no_call_signatures:la(2757,1,"Type_0_has_no_call_signatures_2757","Type '{0}' has no call signatures."),Each_member_of_the_union_type_0_has_signatures_but_none_of_those_signatures_are_compatible_with_each_other:la(2758,1,"Each_member_of_the_union_type_0_has_signatures_but_none_of_those_signatures_are_compatible_with_each_2758","Each member of the union type '{0}' has signatures, but none of those signatures are compatible with each other."),No_constituent_of_type_0_is_constructable:la(2759,1,"No_constituent_of_type_0_is_constructable_2759","No constituent of type '{0}' is constructable."),Not_all_constituents_of_type_0_are_constructable:la(2760,1,"Not_all_constituents_of_type_0_are_constructable_2760","Not all constituents of type '{0}' are constructable."),Type_0_has_no_construct_signatures:la(2761,1,"Type_0_has_no_construct_signatures_2761","Type '{0}' has no construct signatures."),Each_member_of_the_union_type_0_has_construct_signatures_but_none_of_those_signatures_are_compatible_with_each_other:la(2762,1,"Each_member_of_the_union_type_0_has_construct_signatures_but_none_of_those_signatures_are_compatible_2762","Each member of the union type '{0}' has construct signatures, but none of those signatures are compatible with each other."),Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_for_of_will_always_send_0:la(2763,1,"Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_for_of_will_always_s_2763","Cannot iterate value because the 'next' method of its iterator expects type '{1}', but for-of will always send '{0}'."),Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_array_spread_will_always_send_0:la(2764,1,"Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_array_spread_will_al_2764","Cannot iterate value because the 'next' method of its iterator expects type '{1}', but array spread will always send '{0}'."),Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_array_destructuring_will_always_send_0:la(2765,1,"Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_array_destructuring__2765","Cannot iterate value because the 'next' method of its iterator expects type '{1}', but array destructuring will always send '{0}'."),Cannot_delegate_iteration_to_value_because_the_next_method_of_its_iterator_expects_type_1_but_the_containing_generator_will_always_send_0:la(2766,1,"Cannot_delegate_iteration_to_value_because_the_next_method_of_its_iterator_expects_type_1_but_the_co_2766","Cannot delegate iteration to value because the 'next' method of its iterator expects type '{1}', but the containing generator will always send '{0}'."),The_0_property_of_an_iterator_must_be_a_method:la(2767,1,"The_0_property_of_an_iterator_must_be_a_method_2767","The '{0}' property of an iterator must be a method."),The_0_property_of_an_async_iterator_must_be_a_method:la(2768,1,"The_0_property_of_an_async_iterator_must_be_a_method_2768","The '{0}' property of an async iterator must be a method."),No_overload_matches_this_call:la(2769,1,"No_overload_matches_this_call_2769","No overload matches this call."),The_last_overload_gave_the_following_error:la(2770,1,"The_last_overload_gave_the_following_error_2770","The last overload gave the following error."),The_last_overload_is_declared_here:la(2771,1,"The_last_overload_is_declared_here_2771","The last overload is declared here."),Overload_0_of_1_2_gave_the_following_error:la(2772,1,"Overload_0_of_1_2_gave_the_following_error_2772","Overload {0} of {1}, '{2}', gave the following error."),Did_you_forget_to_use_await:la(2773,1,"Did_you_forget_to_use_await_2773","Did you forget to use 'await'?"),This_condition_will_always_return_true_since_this_function_is_always_defined_Did_you_mean_to_call_it_instead:la(2774,1,"This_condition_will_always_return_true_since_this_function_is_always_defined_Did_you_mean_to_call_it_2774","This condition will always return true since this function is always defined. Did you mean to call it instead?"),Assertions_require_every_name_in_the_call_target_to_be_declared_with_an_explicit_type_annotation:la(2775,1,"Assertions_require_every_name_in_the_call_target_to_be_declared_with_an_explicit_type_annotation_2775","Assertions require every name in the call target to be declared with an explicit type annotation."),Assertions_require_the_call_target_to_be_an_identifier_or_qualified_name:la(2776,1,"Assertions_require_the_call_target_to_be_an_identifier_or_qualified_name_2776","Assertions require the call target to be an identifier or qualified name."),The_operand_of_an_increment_or_decrement_operator_may_not_be_an_optional_property_access:la(2777,1,"The_operand_of_an_increment_or_decrement_operator_may_not_be_an_optional_property_access_2777","The operand of an increment or decrement operator may not be an optional property access."),The_target_of_an_object_rest_assignment_may_not_be_an_optional_property_access:la(2778,1,"The_target_of_an_object_rest_assignment_may_not_be_an_optional_property_access_2778","The target of an object rest assignment may not be an optional property access."),The_left_hand_side_of_an_assignment_expression_may_not_be_an_optional_property_access:la(2779,1,"The_left_hand_side_of_an_assignment_expression_may_not_be_an_optional_property_access_2779","The left-hand side of an assignment expression may not be an optional property access."),The_left_hand_side_of_a_for_in_statement_may_not_be_an_optional_property_access:la(2780,1,"The_left_hand_side_of_a_for_in_statement_may_not_be_an_optional_property_access_2780","The left-hand side of a 'for...in' statement may not be an optional property access."),The_left_hand_side_of_a_for_of_statement_may_not_be_an_optional_property_access:la(2781,1,"The_left_hand_side_of_a_for_of_statement_may_not_be_an_optional_property_access_2781","The left-hand side of a 'for...of' statement may not be an optional property access."),_0_needs_an_explicit_type_annotation:la(2782,3,"_0_needs_an_explicit_type_annotation_2782","'{0}' needs an explicit type annotation."),_0_is_specified_more_than_once_so_this_usage_will_be_overwritten:la(2783,1,"_0_is_specified_more_than_once_so_this_usage_will_be_overwritten_2783","'{0}' is specified more than once, so this usage will be overwritten."),get_and_set_accessors_cannot_declare_this_parameters:la(2784,1,"get_and_set_accessors_cannot_declare_this_parameters_2784","'get' and 'set' accessors cannot declare 'this' parameters."),This_spread_always_overwrites_this_property:la(2785,1,"This_spread_always_overwrites_this_property_2785","This spread always overwrites this property."),_0_cannot_be_used_as_a_JSX_component:la(2786,1,"_0_cannot_be_used_as_a_JSX_component_2786","'{0}' cannot be used as a JSX component."),Its_return_type_0_is_not_a_valid_JSX_element:la(2787,1,"Its_return_type_0_is_not_a_valid_JSX_element_2787","Its return type '{0}' is not a valid JSX element."),Its_instance_type_0_is_not_a_valid_JSX_element:la(2788,1,"Its_instance_type_0_is_not_a_valid_JSX_element_2788","Its instance type '{0}' is not a valid JSX element."),Its_element_type_0_is_not_a_valid_JSX_element:la(2789,1,"Its_element_type_0_is_not_a_valid_JSX_element_2789","Its element type '{0}' is not a valid JSX element."),The_operand_of_a_delete_operator_must_be_optional:la(2790,1,"The_operand_of_a_delete_operator_must_be_optional_2790","The operand of a 'delete' operator must be optional."),Exponentiation_cannot_be_performed_on_bigint_values_unless_the_target_option_is_set_to_es2016_or_later:la(2791,1,"Exponentiation_cannot_be_performed_on_bigint_values_unless_the_target_option_is_set_to_es2016_or_lat_2791","Exponentiation cannot be performed on 'bigint' values unless the 'target' option is set to 'es2016' or later."),Cannot_find_module_0_Did_you_mean_to_set_the_moduleResolution_option_to_nodenext_or_to_add_aliases_to_the_paths_option:la(2792,1,"Cannot_find_module_0_Did_you_mean_to_set_the_moduleResolution_option_to_nodenext_or_to_add_aliases_t_2792","Cannot find module '{0}'. Did you mean to set the 'moduleResolution' option to 'nodenext', or to add aliases to the 'paths' option?"),The_call_would_have_succeeded_against_this_implementation_but_implementation_signatures_of_overloads_are_not_externally_visible:la(2793,1,"The_call_would_have_succeeded_against_this_implementation_but_implementation_signatures_of_overloads_2793","The call would have succeeded against this implementation, but implementation signatures of overloads are not externally visible."),Expected_0_arguments_but_got_1_Did_you_forget_to_include_void_in_your_type_argument_to_Promise:la(2794,1,"Expected_0_arguments_but_got_1_Did_you_forget_to_include_void_in_your_type_argument_to_Promise_2794","Expected {0} arguments, but got {1}. Did you forget to include 'void' in your type argument to 'Promise'?"),The_intrinsic_keyword_can_only_be_used_to_declare_compiler_provided_intrinsic_types:la(2795,1,"The_intrinsic_keyword_can_only_be_used_to_declare_compiler_provided_intrinsic_types_2795","The 'intrinsic' keyword can only be used to declare compiler provided intrinsic types."),It_is_likely_that_you_are_missing_a_comma_to_separate_these_two_template_expressions_They_form_a_tagged_template_expression_which_cannot_be_invoked:la(2796,1,"It_is_likely_that_you_are_missing_a_comma_to_separate_these_two_template_expressions_They_form_a_tag_2796","It is likely that you are missing a comma to separate these two template expressions. They form a tagged template expression which cannot be invoked."),A_mixin_class_that_extends_from_a_type_variable_containing_an_abstract_construct_signature_must_also_be_declared_abstract:la(2797,1,"A_mixin_class_that_extends_from_a_type_variable_containing_an_abstract_construct_signature_must_also_2797","A mixin class that extends from a type variable containing an abstract construct signature must also be declared 'abstract'."),The_declaration_was_marked_as_deprecated_here:la(2798,1,"The_declaration_was_marked_as_deprecated_here_2798","The declaration was marked as deprecated here."),Type_produces_a_tuple_type_that_is_too_large_to_represent:la(2799,1,"Type_produces_a_tuple_type_that_is_too_large_to_represent_2799","Type produces a tuple type that is too large to represent."),Expression_produces_a_tuple_type_that_is_too_large_to_represent:la(2800,1,"Expression_produces_a_tuple_type_that_is_too_large_to_represent_2800","Expression produces a tuple type that is too large to represent."),This_condition_will_always_return_true_since_this_0_is_always_defined:la(2801,1,"This_condition_will_always_return_true_since_this_0_is_always_defined_2801","This condition will always return true since this '{0}' is always defined."),Type_0_can_only_be_iterated_through_when_using_the_downlevelIteration_flag_or_with_a_target_of_es2015_or_higher:la(2802,1,"Type_0_can_only_be_iterated_through_when_using_the_downlevelIteration_flag_or_with_a_target_of_es201_2802","Type '{0}' can only be iterated through when using the '--downlevelIteration' flag or with a '--target' of 'es2015' or higher."),Cannot_assign_to_private_method_0_Private_methods_are_not_writable:la(2803,1,"Cannot_assign_to_private_method_0_Private_methods_are_not_writable_2803","Cannot assign to private method '{0}'. Private methods are not writable."),Duplicate_identifier_0_Static_and_instance_elements_cannot_share_the_same_private_name:la(2804,1,"Duplicate_identifier_0_Static_and_instance_elements_cannot_share_the_same_private_name_2804","Duplicate identifier '{0}'. Static and instance elements cannot share the same private name."),Private_accessor_was_defined_without_a_getter:la(2806,1,"Private_accessor_was_defined_without_a_getter_2806","Private accessor was defined without a getter."),This_syntax_requires_an_imported_helper_named_1_with_2_parameters_which_is_not_compatible_with_the_one_in_0_Consider_upgrading_your_version_of_0:la(2807,1,"This_syntax_requires_an_imported_helper_named_1_with_2_parameters_which_is_not_compatible_with_the_o_2807","This syntax requires an imported helper named '{1}' with {2} parameters, which is not compatible with the one in '{0}'. Consider upgrading your version of '{0}'."),A_get_accessor_must_be_at_least_as_accessible_as_the_setter:la(2808,1,"A_get_accessor_must_be_at_least_as_accessible_as_the_setter_2808","A get accessor must be at least as accessible as the setter"),Declaration_or_statement_expected_This_follows_a_block_of_statements_so_if_you_intended_to_write_a_destructuring_assignment_you_might_need_to_wrap_the_whole_assignment_in_parentheses:la(2809,1,"Declaration_or_statement_expected_This_follows_a_block_of_statements_so_if_you_intended_to_write_a_d_2809","Declaration or statement expected. This '=' follows a block of statements, so if you intended to write a destructuring assignment, you might need to wrap the whole assignment in parentheses."),Expected_1_argument_but_got_0_new_Promise_needs_a_JSDoc_hint_to_produce_a_resolve_that_can_be_called_without_arguments:la(2810,1,"Expected_1_argument_but_got_0_new_Promise_needs_a_JSDoc_hint_to_produce_a_resolve_that_can_be_called_2810","Expected 1 argument, but got 0. 'new Promise()' needs a JSDoc hint to produce a 'resolve' that can be called without arguments."),Initializer_for_property_0:la(2811,1,"Initializer_for_property_0_2811","Initializer for property '{0}'"),Property_0_does_not_exist_on_type_1_Try_changing_the_lib_compiler_option_to_include_dom:la(2812,1,"Property_0_does_not_exist_on_type_1_Try_changing_the_lib_compiler_option_to_include_dom_2812","Property '{0}' does not exist on type '{1}'. Try changing the 'lib' compiler option to include 'dom'."),Class_declaration_cannot_implement_overload_list_for_0:la(2813,1,"Class_declaration_cannot_implement_overload_list_for_0_2813","Class declaration cannot implement overload list for '{0}'."),Function_with_bodies_can_only_merge_with_classes_that_are_ambient:la(2814,1,"Function_with_bodies_can_only_merge_with_classes_that_are_ambient_2814","Function with bodies can only merge with classes that are ambient."),arguments_cannot_be_referenced_in_property_initializers_or_class_static_initialization_blocks:la(2815,1,"arguments_cannot_be_referenced_in_property_initializers_or_class_static_initialization_blocks_2815","'arguments' cannot be referenced in property initializers or class static initialization blocks."),Cannot_use_this_in_a_static_property_initializer_of_a_decorated_class:la(2816,1,"Cannot_use_this_in_a_static_property_initializer_of_a_decorated_class_2816","Cannot use 'this' in a static property initializer of a decorated class."),Property_0_has_no_initializer_and_is_not_definitely_assigned_in_a_class_static_block:la(2817,1,"Property_0_has_no_initializer_and_is_not_definitely_assigned_in_a_class_static_block_2817","Property '{0}' has no initializer and is not definitely assigned in a class static block."),Duplicate_identifier_0_Compiler_reserves_name_1_when_emitting_super_references_in_static_initializers:la(2818,1,"Duplicate_identifier_0_Compiler_reserves_name_1_when_emitting_super_references_in_static_initializer_2818","Duplicate identifier '{0}'. Compiler reserves name '{1}' when emitting 'super' references in static initializers."),Namespace_name_cannot_be_0:la(2819,1,"Namespace_name_cannot_be_0_2819","Namespace name cannot be '{0}'."),Type_0_is_not_assignable_to_type_1_Did_you_mean_2:la(2820,1,"Type_0_is_not_assignable_to_type_1_Did_you_mean_2_2820","Type '{0}' is not assignable to type '{1}'. Did you mean '{2}'?"),Import_assertions_are_only_supported_when_the_module_option_is_set_to_esnext_node18_node20_nodenext_or_preserve:la(2821,1,"Import_assertions_are_only_supported_when_the_module_option_is_set_to_esnext_node18_node20_nodenext__2821","Import assertions are only supported when the '--module' option is set to 'esnext', 'node18', 'node20', 'nodenext', or 'preserve'."),Import_assertions_cannot_be_used_with_type_only_imports_or_exports:la(2822,1,"Import_assertions_cannot_be_used_with_type_only_imports_or_exports_2822","Import assertions cannot be used with type-only imports or exports."),Import_attributes_are_only_supported_when_the_module_option_is_set_to_esnext_node18_node20_nodenext_or_preserve:la(2823,1,"Import_attributes_are_only_supported_when_the_module_option_is_set_to_esnext_node18_node20_nodenext__2823","Import attributes are only supported when the '--module' option is set to 'esnext', 'node18', 'node20', 'nodenext', or 'preserve'."),Cannot_find_namespace_0_Did_you_mean_1:la(2833,1,"Cannot_find_namespace_0_Did_you_mean_1_2833","Cannot find namespace '{0}'. Did you mean '{1}'?"),Relative_import_paths_need_explicit_file_extensions_in_ECMAScript_imports_when_moduleResolution_is_node16_or_nodenext_Consider_adding_an_extension_to_the_import_path:la(2834,1,"Relative_import_paths_need_explicit_file_extensions_in_ECMAScript_imports_when_moduleResolution_is_n_2834","Relative import paths need explicit file extensions in ECMAScript imports when '--moduleResolution' is 'node16' or 'nodenext'. Consider adding an extension to the import path."),Relative_import_paths_need_explicit_file_extensions_in_ECMAScript_imports_when_moduleResolution_is_node16_or_nodenext_Did_you_mean_0:la(2835,1,"Relative_import_paths_need_explicit_file_extensions_in_ECMAScript_imports_when_moduleResolution_is_n_2835","Relative import paths need explicit file extensions in ECMAScript imports when '--moduleResolution' is 'node16' or 'nodenext'. Did you mean '{0}'?"),Import_assertions_are_not_allowed_on_statements_that_compile_to_CommonJS_require_calls:la(2836,1,"Import_assertions_are_not_allowed_on_statements_that_compile_to_CommonJS_require_calls_2836","Import assertions are not allowed on statements that compile to CommonJS 'require' calls."),Import_assertion_values_must_be_string_literal_expressions:la(2837,1,"Import_assertion_values_must_be_string_literal_expressions_2837","Import assertion values must be string literal expressions."),All_declarations_of_0_must_have_identical_constraints:la(2838,1,"All_declarations_of_0_must_have_identical_constraints_2838","All declarations of '{0}' must have identical constraints."),This_condition_will_always_return_0_since_JavaScript_compares_objects_by_reference_not_value:la(2839,1,"This_condition_will_always_return_0_since_JavaScript_compares_objects_by_reference_not_value_2839","This condition will always return '{0}' since JavaScript compares objects by reference, not value."),An_interface_cannot_extend_a_primitive_type_like_0_It_can_only_extend_other_named_object_types:la(2840,1,"An_interface_cannot_extend_a_primitive_type_like_0_It_can_only_extend_other_named_object_types_2840","An interface cannot extend a primitive type like '{0}'. It can only extend other named object types."),_0_is_an_unused_renaming_of_1_Did_you_intend_to_use_it_as_a_type_annotation:la(2842,1,"_0_is_an_unused_renaming_of_1_Did_you_intend_to_use_it_as_a_type_annotation_2842","'{0}' is an unused renaming of '{1}'. Did you intend to use it as a type annotation?"),We_can_only_write_a_type_for_0_by_adding_a_type_for_the_entire_parameter_here:la(2843,1,"We_can_only_write_a_type_for_0_by_adding_a_type_for_the_entire_parameter_here_2843","We can only write a type for '{0}' by adding a type for the entire parameter here."),Type_of_instance_member_variable_0_cannot_reference_identifier_1_declared_in_the_constructor:la(2844,1,"Type_of_instance_member_variable_0_cannot_reference_identifier_1_declared_in_the_constructor_2844","Type of instance member variable '{0}' cannot reference identifier '{1}' declared in the constructor."),This_condition_will_always_return_0:la(2845,1,"This_condition_will_always_return_0_2845","This condition will always return '{0}'."),A_declaration_file_cannot_be_imported_without_import_type_Did_you_mean_to_import_an_implementation_file_0_instead:la(2846,1,"A_declaration_file_cannot_be_imported_without_import_type_Did_you_mean_to_import_an_implementation_f_2846","A declaration file cannot be imported without 'import type'. Did you mean to import an implementation file '{0}' instead?"),The_right_hand_side_of_an_instanceof_expression_must_not_be_an_instantiation_expression:la(2848,1,"The_right_hand_side_of_an_instanceof_expression_must_not_be_an_instantiation_expression_2848","The right-hand side of an 'instanceof' expression must not be an instantiation expression."),Target_signature_provides_too_few_arguments_Expected_0_or_more_but_got_1:la(2849,1,"Target_signature_provides_too_few_arguments_Expected_0_or_more_but_got_1_2849","Target signature provides too few arguments. Expected {0} or more, but got {1}."),The_initializer_of_a_using_declaration_must_be_either_an_object_with_a_Symbol_dispose_method_or_be_null_or_undefined:la(2850,1,"The_initializer_of_a_using_declaration_must_be_either_an_object_with_a_Symbol_dispose_method_or_be_n_2850","The initializer of a 'using' declaration must be either an object with a '[Symbol.dispose]()' method, or be 'null' or 'undefined'."),The_initializer_of_an_await_using_declaration_must_be_either_an_object_with_a_Symbol_asyncDispose_or_Symbol_dispose_method_or_be_null_or_undefined:la(2851,1,"The_initializer_of_an_await_using_declaration_must_be_either_an_object_with_a_Symbol_asyncDispose_or_2851","The initializer of an 'await using' declaration must be either an object with a '[Symbol.asyncDispose]()' or '[Symbol.dispose]()' method, or be 'null' or 'undefined'."),await_using_statements_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules:la(2852,1,"await_using_statements_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules_2852","'await using' statements are only allowed within async functions and at the top levels of modules."),await_using_statements_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_this_file_has_no_imports_or_exports_Consider_adding_an_empty_export_to_make_this_file_a_module:la(2853,1,"await_using_statements_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_th_2853","'await using' statements are only allowed at the top level of a file when that file is a module, but this file has no imports or exports. Consider adding an empty 'export {}' to make this file a module."),Top_level_await_using_statements_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_node16_node18_node20_nodenext_or_preserve_and_the_target_option_is_set_to_es2017_or_higher:la(2854,1,"Top_level_await_using_statements_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_sys_2854","Top-level 'await using' statements are only allowed when the 'module' option is set to 'es2022', 'esnext', 'system', 'node16', 'node18', 'node20', 'nodenext', or 'preserve', and the 'target' option is set to 'es2017' or higher."),Class_field_0_defined_by_the_parent_class_is_not_accessible_in_the_child_class_via_super:la(2855,1,"Class_field_0_defined_by_the_parent_class_is_not_accessible_in_the_child_class_via_super_2855","Class field '{0}' defined by the parent class is not accessible in the child class via super."),Import_attributes_are_not_allowed_on_statements_that_compile_to_CommonJS_require_calls:la(2856,1,"Import_attributes_are_not_allowed_on_statements_that_compile_to_CommonJS_require_calls_2856","Import attributes are not allowed on statements that compile to CommonJS 'require' calls."),Import_attributes_cannot_be_used_with_type_only_imports_or_exports:la(2857,1,"Import_attributes_cannot_be_used_with_type_only_imports_or_exports_2857","Import attributes cannot be used with type-only imports or exports."),Import_attribute_values_must_be_string_literal_expressions:la(2858,1,"Import_attribute_values_must_be_string_literal_expressions_2858","Import attribute values must be string literal expressions."),Excessive_complexity_comparing_types_0_and_1:la(2859,1,"Excessive_complexity_comparing_types_0_and_1_2859","Excessive complexity comparing types '{0}' and '{1}'."),The_left_hand_side_of_an_instanceof_expression_must_be_assignable_to_the_first_argument_of_the_right_hand_side_s_Symbol_hasInstance_method:la(2860,1,"The_left_hand_side_of_an_instanceof_expression_must_be_assignable_to_the_first_argument_of_the_right_2860","The left-hand side of an 'instanceof' expression must be assignable to the first argument of the right-hand side's '[Symbol.hasInstance]' method."),An_object_s_Symbol_hasInstance_method_must_return_a_boolean_value_for_it_to_be_used_on_the_right_hand_side_of_an_instanceof_expression:la(2861,1,"An_object_s_Symbol_hasInstance_method_must_return_a_boolean_value_for_it_to_be_used_on_the_right_han_2861","An object's '[Symbol.hasInstance]' method must return a boolean value for it to be used on the right-hand side of an 'instanceof' expression."),Type_0_is_generic_and_can_only_be_indexed_for_reading:la(2862,1,"Type_0_is_generic_and_can_only_be_indexed_for_reading_2862","Type '{0}' is generic and can only be indexed for reading."),A_class_cannot_extend_a_primitive_type_like_0_Classes_can_only_extend_constructable_values:la(2863,1,"A_class_cannot_extend_a_primitive_type_like_0_Classes_can_only_extend_constructable_values_2863","A class cannot extend a primitive type like '{0}'. Classes can only extend constructable values."),A_class_cannot_implement_a_primitive_type_like_0_It_can_only_implement_other_named_object_types:la(2864,1,"A_class_cannot_implement_a_primitive_type_like_0_It_can_only_implement_other_named_object_types_2864","A class cannot implement a primitive type like '{0}'. It can only implement other named object types."),Import_0_conflicts_with_local_value_so_must_be_declared_with_a_type_only_import_when_isolatedModules_is_enabled:la(2865,1,"Import_0_conflicts_with_local_value_so_must_be_declared_with_a_type_only_import_when_isolatedModules_2865","Import '{0}' conflicts with local value, so must be declared with a type-only import when 'isolatedModules' is enabled."),Import_0_conflicts_with_global_value_used_in_this_file_so_must_be_declared_with_a_type_only_import_when_isolatedModules_is_enabled:la(2866,1,"Import_0_conflicts_with_global_value_used_in_this_file_so_must_be_declared_with_a_type_only_import_w_2866","Import '{0}' conflicts with global value used in this file, so must be declared with a type-only import when 'isolatedModules' is enabled."),Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_Bun_Try_npm_i_save_dev_types_Slashbun:la(2867,1,"Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_Bun_Try_npm_i_save_dev_types_Slashbun_2867","Cannot find name '{0}'. Do you need to install type definitions for Bun? Try `npm i --save-dev @types/bun`."),Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_Bun_Try_npm_i_save_dev_types_Slashbun_and_then_add_bun_to_the_types_field_in_your_tsconfig:la(2868,1,"Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_Bun_Try_npm_i_save_dev_types_Slashbun_2868","Cannot find name '{0}'. Do you need to install type definitions for Bun? Try `npm i --save-dev @types/bun` and then add 'bun' to the types field in your tsconfig."),Right_operand_of_is_unreachable_because_the_left_operand_is_never_nullish:la(2869,1,"Right_operand_of_is_unreachable_because_the_left_operand_is_never_nullish_2869","Right operand of ?? is unreachable because the left operand is never nullish."),This_binary_expression_is_never_nullish_Are_you_missing_parentheses:la(2870,1,"This_binary_expression_is_never_nullish_Are_you_missing_parentheses_2870","This binary expression is never nullish. Are you missing parentheses?"),This_expression_is_always_nullish:la(2871,1,"This_expression_is_always_nullish_2871","This expression is always nullish."),This_kind_of_expression_is_always_truthy:la(2872,1,"This_kind_of_expression_is_always_truthy_2872","This kind of expression is always truthy."),This_kind_of_expression_is_always_falsy:la(2873,1,"This_kind_of_expression_is_always_falsy_2873","This kind of expression is always falsy."),This_JSX_tag_requires_0_to_be_in_scope_but_it_could_not_be_found:la(2874,1,"This_JSX_tag_requires_0_to_be_in_scope_but_it_could_not_be_found_2874","This JSX tag requires '{0}' to be in scope, but it could not be found."),This_JSX_tag_requires_the_module_path_0_to_exist_but_none_could_be_found_Make_sure_you_have_types_for_the_appropriate_package_installed:la(2875,1,"This_JSX_tag_requires_the_module_path_0_to_exist_but_none_could_be_found_Make_sure_you_have_types_fo_2875","This JSX tag requires the module path '{0}' to exist, but none could be found. Make sure you have types for the appropriate package installed."),This_relative_import_path_is_unsafe_to_rewrite_because_it_looks_like_a_file_name_but_actually_resolves_to_0:la(2876,1,"This_relative_import_path_is_unsafe_to_rewrite_because_it_looks_like_a_file_name_but_actually_resolv_2876",'This relative import path is unsafe to rewrite because it looks like a file name, but actually resolves to "{0}".'),This_import_uses_a_0_extension_to_resolve_to_an_input_TypeScript_file_but_will_not_be_rewritten_during_emit_because_it_is_not_a_relative_path:la(2877,1,"This_import_uses_a_0_extension_to_resolve_to_an_input_TypeScript_file_but_will_not_be_rewritten_duri_2877","This import uses a '{0}' extension to resolve to an input TypeScript file, but will not be rewritten during emit because it is not a relative path."),This_import_path_is_unsafe_to_rewrite_because_it_resolves_to_another_project_and_the_relative_path_between_the_projects_output_files_is_not_the_same_as_the_relative_path_between_its_input_files:la(2878,1,"This_import_path_is_unsafe_to_rewrite_because_it_resolves_to_another_project_and_the_relative_path_b_2878","This import path is unsafe to rewrite because it resolves to another project, and the relative path between the projects' output files is not the same as the relative path between its input files."),Using_JSX_fragments_requires_fragment_factory_0_to_be_in_scope_but_it_could_not_be_found:la(2879,1,"Using_JSX_fragments_requires_fragment_factory_0_to_be_in_scope_but_it_could_not_be_found_2879","Using JSX fragments requires fragment factory '{0}' to be in scope, but it could not be found."),Import_assertions_have_been_replaced_by_import_attributes_Use_with_instead_of_assert:la(2880,1,"Import_assertions_have_been_replaced_by_import_attributes_Use_with_instead_of_assert_2880","Import assertions have been replaced by import attributes. Use 'with' instead of 'assert'."),This_expression_is_never_nullish:la(2881,1,"This_expression_is_never_nullish_2881","This expression is never nullish."),Import_declaration_0_is_using_private_name_1:la(4e3,1,"Import_declaration_0_is_using_private_name_1_4000","Import declaration '{0}' is using private name '{1}'."),Type_parameter_0_of_exported_class_has_or_is_using_private_name_1:la(4002,1,"Type_parameter_0_of_exported_class_has_or_is_using_private_name_1_4002","Type parameter '{0}' of exported class has or is using private name '{1}'."),Type_parameter_0_of_exported_interface_has_or_is_using_private_name_1:la(4004,1,"Type_parameter_0_of_exported_interface_has_or_is_using_private_name_1_4004","Type parameter '{0}' of exported interface has or is using private name '{1}'."),Type_parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_1:la(4006,1,"Type_parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_1_4006","Type parameter '{0}' of constructor signature from exported interface has or is using private name '{1}'."),Type_parameter_0_of_call_signature_from_exported_interface_has_or_is_using_private_name_1:la(4008,1,"Type_parameter_0_of_call_signature_from_exported_interface_has_or_is_using_private_name_1_4008","Type parameter '{0}' of call signature from exported interface has or is using private name '{1}'."),Type_parameter_0_of_public_static_method_from_exported_class_has_or_is_using_private_name_1:la(4010,1,"Type_parameter_0_of_public_static_method_from_exported_class_has_or_is_using_private_name_1_4010","Type parameter '{0}' of public static method from exported class has or is using private name '{1}'."),Type_parameter_0_of_public_method_from_exported_class_has_or_is_using_private_name_1:la(4012,1,"Type_parameter_0_of_public_method_from_exported_class_has_or_is_using_private_name_1_4012","Type parameter '{0}' of public method from exported class has or is using private name '{1}'."),Type_parameter_0_of_method_from_exported_interface_has_or_is_using_private_name_1:la(4014,1,"Type_parameter_0_of_method_from_exported_interface_has_or_is_using_private_name_1_4014","Type parameter '{0}' of method from exported interface has or is using private name '{1}'."),Type_parameter_0_of_exported_function_has_or_is_using_private_name_1:la(4016,1,"Type_parameter_0_of_exported_function_has_or_is_using_private_name_1_4016","Type parameter '{0}' of exported function has or is using private name '{1}'."),Implements_clause_of_exported_class_0_has_or_is_using_private_name_1:la(4019,1,"Implements_clause_of_exported_class_0_has_or_is_using_private_name_1_4019","Implements clause of exported class '{0}' has or is using private name '{1}'."),extends_clause_of_exported_class_0_has_or_is_using_private_name_1:la(4020,1,"extends_clause_of_exported_class_0_has_or_is_using_private_name_1_4020","'extends' clause of exported class '{0}' has or is using private name '{1}'."),extends_clause_of_exported_class_has_or_is_using_private_name_0:la(4021,1,"extends_clause_of_exported_class_has_or_is_using_private_name_0_4021","'extends' clause of exported class has or is using private name '{0}'."),extends_clause_of_exported_interface_0_has_or_is_using_private_name_1:la(4022,1,"extends_clause_of_exported_interface_0_has_or_is_using_private_name_1_4022","'extends' clause of exported interface '{0}' has or is using private name '{1}'."),Exported_variable_0_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:la(4023,1,"Exported_variable_0_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named_4023","Exported variable '{0}' has or is using name '{1}' from external module {2} but cannot be named."),Exported_variable_0_has_or_is_using_name_1_from_private_module_2:la(4024,1,"Exported_variable_0_has_or_is_using_name_1_from_private_module_2_4024","Exported variable '{0}' has or is using name '{1}' from private module '{2}'."),Exported_variable_0_has_or_is_using_private_name_1:la(4025,1,"Exported_variable_0_has_or_is_using_private_name_1_4025","Exported variable '{0}' has or is using private name '{1}'."),Public_static_property_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:la(4026,1,"Public_static_property_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot__4026","Public static property '{0}' of exported class has or is using name '{1}' from external module {2} but cannot be named."),Public_static_property_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:la(4027,1,"Public_static_property_0_of_exported_class_has_or_is_using_name_1_from_private_module_2_4027","Public static property '{0}' of exported class has or is using name '{1}' from private module '{2}'."),Public_static_property_0_of_exported_class_has_or_is_using_private_name_1:la(4028,1,"Public_static_property_0_of_exported_class_has_or_is_using_private_name_1_4028","Public static property '{0}' of exported class has or is using private name '{1}'."),Public_property_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:la(4029,1,"Public_property_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_name_4029","Public property '{0}' of exported class has or is using name '{1}' from external module {2} but cannot be named."),Public_property_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:la(4030,1,"Public_property_0_of_exported_class_has_or_is_using_name_1_from_private_module_2_4030","Public property '{0}' of exported class has or is using name '{1}' from private module '{2}'."),Public_property_0_of_exported_class_has_or_is_using_private_name_1:la(4031,1,"Public_property_0_of_exported_class_has_or_is_using_private_name_1_4031","Public property '{0}' of exported class has or is using private name '{1}'."),Property_0_of_exported_interface_has_or_is_using_name_1_from_private_module_2:la(4032,1,"Property_0_of_exported_interface_has_or_is_using_name_1_from_private_module_2_4032","Property '{0}' of exported interface has or is using name '{1}' from private module '{2}'."),Property_0_of_exported_interface_has_or_is_using_private_name_1:la(4033,1,"Property_0_of_exported_interface_has_or_is_using_private_name_1_4033","Property '{0}' of exported interface has or is using private name '{1}'."),Parameter_type_of_public_static_setter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2:la(4034,1,"Parameter_type_of_public_static_setter_0_from_exported_class_has_or_is_using_name_1_from_private_mod_4034","Parameter type of public static setter '{0}' from exported class has or is using name '{1}' from private module '{2}'."),Parameter_type_of_public_static_setter_0_from_exported_class_has_or_is_using_private_name_1:la(4035,1,"Parameter_type_of_public_static_setter_0_from_exported_class_has_or_is_using_private_name_1_4035","Parameter type of public static setter '{0}' from exported class has or is using private name '{1}'."),Parameter_type_of_public_setter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2:la(4036,1,"Parameter_type_of_public_setter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2_4036","Parameter type of public setter '{0}' from exported class has or is using name '{1}' from private module '{2}'."),Parameter_type_of_public_setter_0_from_exported_class_has_or_is_using_private_name_1:la(4037,1,"Parameter_type_of_public_setter_0_from_exported_class_has_or_is_using_private_name_1_4037","Parameter type of public setter '{0}' from exported class has or is using private name '{1}'."),Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:la(4038,1,"Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_name_1_from_external_modul_4038","Return type of public static getter '{0}' from exported class has or is using name '{1}' from external module {2} but cannot be named."),Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2:la(4039,1,"Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_name_1_from_private_module_4039","Return type of public static getter '{0}' from exported class has or is using name '{1}' from private module '{2}'."),Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_private_name_1:la(4040,1,"Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_private_name_1_4040","Return type of public static getter '{0}' from exported class has or is using private name '{1}'."),Return_type_of_public_getter_0_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:la(4041,1,"Return_type_of_public_getter_0_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_4041","Return type of public getter '{0}' from exported class has or is using name '{1}' from external module {2} but cannot be named."),Return_type_of_public_getter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2:la(4042,1,"Return_type_of_public_getter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2_4042","Return type of public getter '{0}' from exported class has or is using name '{1}' from private module '{2}'."),Return_type_of_public_getter_0_from_exported_class_has_or_is_using_private_name_1:la(4043,1,"Return_type_of_public_getter_0_from_exported_class_has_or_is_using_private_name_1_4043","Return type of public getter '{0}' from exported class has or is using private name '{1}'."),Return_type_of_constructor_signature_from_exported_interface_has_or_is_using_name_0_from_private_module_1:la(4044,1,"Return_type_of_constructor_signature_from_exported_interface_has_or_is_using_name_0_from_private_mod_4044","Return type of constructor signature from exported interface has or is using name '{0}' from private module '{1}'."),Return_type_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_0:la(4045,1,"Return_type_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_0_4045","Return type of constructor signature from exported interface has or is using private name '{0}'."),Return_type_of_call_signature_from_exported_interface_has_or_is_using_name_0_from_private_module_1:la(4046,1,"Return_type_of_call_signature_from_exported_interface_has_or_is_using_name_0_from_private_module_1_4046","Return type of call signature from exported interface has or is using name '{0}' from private module '{1}'."),Return_type_of_call_signature_from_exported_interface_has_or_is_using_private_name_0:la(4047,1,"Return_type_of_call_signature_from_exported_interface_has_or_is_using_private_name_0_4047","Return type of call signature from exported interface has or is using private name '{0}'."),Return_type_of_index_signature_from_exported_interface_has_or_is_using_name_0_from_private_module_1:la(4048,1,"Return_type_of_index_signature_from_exported_interface_has_or_is_using_name_0_from_private_module_1_4048","Return type of index signature from exported interface has or is using name '{0}' from private module '{1}'."),Return_type_of_index_signature_from_exported_interface_has_or_is_using_private_name_0:la(4049,1,"Return_type_of_index_signature_from_exported_interface_has_or_is_using_private_name_0_4049","Return type of index signature from exported interface has or is using private name '{0}'."),Return_type_of_public_static_method_from_exported_class_has_or_is_using_name_0_from_external_module_1_but_cannot_be_named:la(4050,1,"Return_type_of_public_static_method_from_exported_class_has_or_is_using_name_0_from_external_module__4050","Return type of public static method from exported class has or is using name '{0}' from external module {1} but cannot be named."),Return_type_of_public_static_method_from_exported_class_has_or_is_using_name_0_from_private_module_1:la(4051,1,"Return_type_of_public_static_method_from_exported_class_has_or_is_using_name_0_from_private_module_1_4051","Return type of public static method from exported class has or is using name '{0}' from private module '{1}'."),Return_type_of_public_static_method_from_exported_class_has_or_is_using_private_name_0:la(4052,1,"Return_type_of_public_static_method_from_exported_class_has_or_is_using_private_name_0_4052","Return type of public static method from exported class has or is using private name '{0}'."),Return_type_of_public_method_from_exported_class_has_or_is_using_name_0_from_external_module_1_but_cannot_be_named:la(4053,1,"Return_type_of_public_method_from_exported_class_has_or_is_using_name_0_from_external_module_1_but_c_4053","Return type of public method from exported class has or is using name '{0}' from external module {1} but cannot be named."),Return_type_of_public_method_from_exported_class_has_or_is_using_name_0_from_private_module_1:la(4054,1,"Return_type_of_public_method_from_exported_class_has_or_is_using_name_0_from_private_module_1_4054","Return type of public method from exported class has or is using name '{0}' from private module '{1}'."),Return_type_of_public_method_from_exported_class_has_or_is_using_private_name_0:la(4055,1,"Return_type_of_public_method_from_exported_class_has_or_is_using_private_name_0_4055","Return type of public method from exported class has or is using private name '{0}'."),Return_type_of_method_from_exported_interface_has_or_is_using_name_0_from_private_module_1:la(4056,1,"Return_type_of_method_from_exported_interface_has_or_is_using_name_0_from_private_module_1_4056","Return type of method from exported interface has or is using name '{0}' from private module '{1}'."),Return_type_of_method_from_exported_interface_has_or_is_using_private_name_0:la(4057,1,"Return_type_of_method_from_exported_interface_has_or_is_using_private_name_0_4057","Return type of method from exported interface has or is using private name '{0}'."),Return_type_of_exported_function_has_or_is_using_name_0_from_external_module_1_but_cannot_be_named:la(4058,1,"Return_type_of_exported_function_has_or_is_using_name_0_from_external_module_1_but_cannot_be_named_4058","Return type of exported function has or is using name '{0}' from external module {1} but cannot be named."),Return_type_of_exported_function_has_or_is_using_name_0_from_private_module_1:la(4059,1,"Return_type_of_exported_function_has_or_is_using_name_0_from_private_module_1_4059","Return type of exported function has or is using name '{0}' from private module '{1}'."),Return_type_of_exported_function_has_or_is_using_private_name_0:la(4060,1,"Return_type_of_exported_function_has_or_is_using_private_name_0_4060","Return type of exported function has or is using private name '{0}'."),Parameter_0_of_constructor_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:la(4061,1,"Parameter_0_of_constructor_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_can_4061","Parameter '{0}' of constructor from exported class has or is using name '{1}' from external module {2} but cannot be named."),Parameter_0_of_constructor_from_exported_class_has_or_is_using_name_1_from_private_module_2:la(4062,1,"Parameter_0_of_constructor_from_exported_class_has_or_is_using_name_1_from_private_module_2_4062","Parameter '{0}' of constructor from exported class has or is using name '{1}' from private module '{2}'."),Parameter_0_of_constructor_from_exported_class_has_or_is_using_private_name_1:la(4063,1,"Parameter_0_of_constructor_from_exported_class_has_or_is_using_private_name_1_4063","Parameter '{0}' of constructor from exported class has or is using private name '{1}'."),Parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2:la(4064,1,"Parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_name_1_from_private_mod_4064","Parameter '{0}' of constructor signature from exported interface has or is using name '{1}' from private module '{2}'."),Parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_1:la(4065,1,"Parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_1_4065","Parameter '{0}' of constructor signature from exported interface has or is using private name '{1}'."),Parameter_0_of_call_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2:la(4066,1,"Parameter_0_of_call_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2_4066","Parameter '{0}' of call signature from exported interface has or is using name '{1}' from private module '{2}'."),Parameter_0_of_call_signature_from_exported_interface_has_or_is_using_private_name_1:la(4067,1,"Parameter_0_of_call_signature_from_exported_interface_has_or_is_using_private_name_1_4067","Parameter '{0}' of call signature from exported interface has or is using private name '{1}'."),Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:la(4068,1,"Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_name_1_from_external_module__4068","Parameter '{0}' of public static method from exported class has or is using name '{1}' from external module {2} but cannot be named."),Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_name_1_from_private_module_2:la(4069,1,"Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_name_1_from_private_module_2_4069","Parameter '{0}' of public static method from exported class has or is using name '{1}' from private module '{2}'."),Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_private_name_1:la(4070,1,"Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_private_name_1_4070","Parameter '{0}' of public static method from exported class has or is using private name '{1}'."),Parameter_0_of_public_method_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:la(4071,1,"Parameter_0_of_public_method_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_c_4071","Parameter '{0}' of public method from exported class has or is using name '{1}' from external module {2} but cannot be named."),Parameter_0_of_public_method_from_exported_class_has_or_is_using_name_1_from_private_module_2:la(4072,1,"Parameter_0_of_public_method_from_exported_class_has_or_is_using_name_1_from_private_module_2_4072","Parameter '{0}' of public method from exported class has or is using name '{1}' from private module '{2}'."),Parameter_0_of_public_method_from_exported_class_has_or_is_using_private_name_1:la(4073,1,"Parameter_0_of_public_method_from_exported_class_has_or_is_using_private_name_1_4073","Parameter '{0}' of public method from exported class has or is using private name '{1}'."),Parameter_0_of_method_from_exported_interface_has_or_is_using_name_1_from_private_module_2:la(4074,1,"Parameter_0_of_method_from_exported_interface_has_or_is_using_name_1_from_private_module_2_4074","Parameter '{0}' of method from exported interface has or is using name '{1}' from private module '{2}'."),Parameter_0_of_method_from_exported_interface_has_or_is_using_private_name_1:la(4075,1,"Parameter_0_of_method_from_exported_interface_has_or_is_using_private_name_1_4075","Parameter '{0}' of method from exported interface has or is using private name '{1}'."),Parameter_0_of_exported_function_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:la(4076,1,"Parameter_0_of_exported_function_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named_4076","Parameter '{0}' of exported function has or is using name '{1}' from external module {2} but cannot be named."),Parameter_0_of_exported_function_has_or_is_using_name_1_from_private_module_2:la(4077,1,"Parameter_0_of_exported_function_has_or_is_using_name_1_from_private_module_2_4077","Parameter '{0}' of exported function has or is using name '{1}' from private module '{2}'."),Parameter_0_of_exported_function_has_or_is_using_private_name_1:la(4078,1,"Parameter_0_of_exported_function_has_or_is_using_private_name_1_4078","Parameter '{0}' of exported function has or is using private name '{1}'."),Exported_type_alias_0_has_or_is_using_private_name_1:la(4081,1,"Exported_type_alias_0_has_or_is_using_private_name_1_4081","Exported type alias '{0}' has or is using private name '{1}'."),Default_export_of_the_module_has_or_is_using_private_name_0:la(4082,1,"Default_export_of_the_module_has_or_is_using_private_name_0_4082","Default export of the module has or is using private name '{0}'."),Type_parameter_0_of_exported_type_alias_has_or_is_using_private_name_1:la(4083,1,"Type_parameter_0_of_exported_type_alias_has_or_is_using_private_name_1_4083","Type parameter '{0}' of exported type alias has or is using private name '{1}'."),Exported_type_alias_0_has_or_is_using_private_name_1_from_module_2:la(4084,1,"Exported_type_alias_0_has_or_is_using_private_name_1_from_module_2_4084","Exported type alias '{0}' has or is using private name '{1}' from module {2}."),Extends_clause_for_inferred_type_0_has_or_is_using_private_name_1:la(4085,1,"Extends_clause_for_inferred_type_0_has_or_is_using_private_name_1_4085","Extends clause for inferred type '{0}' has or is using private name '{1}'."),Parameter_0_of_index_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2:la(4091,1,"Parameter_0_of_index_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2_4091","Parameter '{0}' of index signature from exported interface has or is using name '{1}' from private module '{2}'."),Parameter_0_of_index_signature_from_exported_interface_has_or_is_using_private_name_1:la(4092,1,"Parameter_0_of_index_signature_from_exported_interface_has_or_is_using_private_name_1_4092","Parameter '{0}' of index signature from exported interface has or is using private name '{1}'."),Property_0_of_exported_anonymous_class_type_may_not_be_private_or_protected:la(4094,1,"Property_0_of_exported_anonymous_class_type_may_not_be_private_or_protected_4094","Property '{0}' of exported anonymous class type may not be private or protected."),Public_static_method_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:la(4095,1,"Public_static_method_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_4095","Public static method '{0}' of exported class has or is using name '{1}' from external module {2} but cannot be named."),Public_static_method_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:la(4096,1,"Public_static_method_0_of_exported_class_has_or_is_using_name_1_from_private_module_2_4096","Public static method '{0}' of exported class has or is using name '{1}' from private module '{2}'."),Public_static_method_0_of_exported_class_has_or_is_using_private_name_1:la(4097,1,"Public_static_method_0_of_exported_class_has_or_is_using_private_name_1_4097","Public static method '{0}' of exported class has or is using private name '{1}'."),Public_method_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:la(4098,1,"Public_method_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named_4098","Public method '{0}' of exported class has or is using name '{1}' from external module {2} but cannot be named."),Public_method_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:la(4099,1,"Public_method_0_of_exported_class_has_or_is_using_name_1_from_private_module_2_4099","Public method '{0}' of exported class has or is using name '{1}' from private module '{2}'."),Public_method_0_of_exported_class_has_or_is_using_private_name_1:la(4100,1,"Public_method_0_of_exported_class_has_or_is_using_private_name_1_4100","Public method '{0}' of exported class has or is using private name '{1}'."),Method_0_of_exported_interface_has_or_is_using_name_1_from_private_module_2:la(4101,1,"Method_0_of_exported_interface_has_or_is_using_name_1_from_private_module_2_4101","Method '{0}' of exported interface has or is using name '{1}' from private module '{2}'."),Method_0_of_exported_interface_has_or_is_using_private_name_1:la(4102,1,"Method_0_of_exported_interface_has_or_is_using_private_name_1_4102","Method '{0}' of exported interface has or is using private name '{1}'."),Type_parameter_0_of_exported_mapped_object_type_is_using_private_name_1:la(4103,1,"Type_parameter_0_of_exported_mapped_object_type_is_using_private_name_1_4103","Type parameter '{0}' of exported mapped object type is using private name '{1}'."),The_type_0_is_readonly_and_cannot_be_assigned_to_the_mutable_type_1:la(4104,1,"The_type_0_is_readonly_and_cannot_be_assigned_to_the_mutable_type_1_4104","The type '{0}' is 'readonly' and cannot be assigned to the mutable type '{1}'."),Private_or_protected_member_0_cannot_be_accessed_on_a_type_parameter:la(4105,1,"Private_or_protected_member_0_cannot_be_accessed_on_a_type_parameter_4105","Private or protected member '{0}' cannot be accessed on a type parameter."),Parameter_0_of_accessor_has_or_is_using_private_name_1:la(4106,1,"Parameter_0_of_accessor_has_or_is_using_private_name_1_4106","Parameter '{0}' of accessor has or is using private name '{1}'."),Parameter_0_of_accessor_has_or_is_using_name_1_from_private_module_2:la(4107,1,"Parameter_0_of_accessor_has_or_is_using_name_1_from_private_module_2_4107","Parameter '{0}' of accessor has or is using name '{1}' from private module '{2}'."),Parameter_0_of_accessor_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:la(4108,1,"Parameter_0_of_accessor_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named_4108","Parameter '{0}' of accessor has or is using name '{1}' from external module '{2}' but cannot be named."),Type_arguments_for_0_circularly_reference_themselves:la(4109,1,"Type_arguments_for_0_circularly_reference_themselves_4109","Type arguments for '{0}' circularly reference themselves."),Tuple_type_arguments_circularly_reference_themselves:la(4110,1,"Tuple_type_arguments_circularly_reference_themselves_4110","Tuple type arguments circularly reference themselves."),Property_0_comes_from_an_index_signature_so_it_must_be_accessed_with_0:la(4111,1,"Property_0_comes_from_an_index_signature_so_it_must_be_accessed_with_0_4111","Property '{0}' comes from an index signature, so it must be accessed with ['{0}']."),This_member_cannot_have_an_override_modifier_because_its_containing_class_0_does_not_extend_another_class:la(4112,1,"This_member_cannot_have_an_override_modifier_because_its_containing_class_0_does_not_extend_another__4112","This member cannot have an 'override' modifier because its containing class '{0}' does not extend another class."),This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0:la(4113,1,"This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0_4113","This member cannot have an 'override' modifier because it is not declared in the base class '{0}'."),This_member_must_have_an_override_modifier_because_it_overrides_a_member_in_the_base_class_0:la(4114,1,"This_member_must_have_an_override_modifier_because_it_overrides_a_member_in_the_base_class_0_4114","This member must have an 'override' modifier because it overrides a member in the base class '{0}'."),This_parameter_property_must_have_an_override_modifier_because_it_overrides_a_member_in_base_class_0:la(4115,1,"This_parameter_property_must_have_an_override_modifier_because_it_overrides_a_member_in_base_class_0_4115","This parameter property must have an 'override' modifier because it overrides a member in base class '{0}'."),This_member_must_have_an_override_modifier_because_it_overrides_an_abstract_method_that_is_declared_in_the_base_class_0:la(4116,1,"This_member_must_have_an_override_modifier_because_it_overrides_an_abstract_method_that_is_declared__4116","This member must have an 'override' modifier because it overrides an abstract method that is declared in the base class '{0}'."),This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0_Did_you_mean_1:la(4117,1,"This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0_Did_you__4117","This member cannot have an 'override' modifier because it is not declared in the base class '{0}'. Did you mean '{1}'?"),The_type_of_this_node_cannot_be_serialized_because_its_property_0_cannot_be_serialized:la(4118,1,"The_type_of_this_node_cannot_be_serialized_because_its_property_0_cannot_be_serialized_4118","The type of this node cannot be serialized because its property '{0}' cannot be serialized."),This_member_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_class_0:la(4119,1,"This_member_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_4119","This member must have a JSDoc comment with an '@override' tag because it overrides a member in the base class '{0}'."),This_parameter_property_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_class_0:la(4120,1,"This_parameter_property_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_4120","This parameter property must have a JSDoc comment with an '@override' tag because it overrides a member in the base class '{0}'."),This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_its_containing_class_0_does_not_extend_another_class:la(4121,1,"This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_its_containing_class_0_does_not_4121","This member cannot have a JSDoc comment with an '@override' tag because its containing class '{0}' does not extend another class."),This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base_class_0:la(4122,1,"This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base__4122","This member cannot have a JSDoc comment with an '@override' tag because it is not declared in the base class '{0}'."),This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base_class_0_Did_you_mean_1:la(4123,1,"This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base__4123","This member cannot have a JSDoc comment with an 'override' tag because it is not declared in the base class '{0}'. Did you mean '{1}'?"),Compiler_option_0_of_value_1_is_unstable_Use_nightly_TypeScript_to_silence_this_error_Try_updating_with_npm_install_D_typescript_next:la(4124,1,"Compiler_option_0_of_value_1_is_unstable_Use_nightly_TypeScript_to_silence_this_error_Try_updating_w_4124","Compiler option '{0}' of value '{1}' is unstable. Use nightly TypeScript to silence this error. Try updating with 'npm install -D typescript@next'."),Each_declaration_of_0_1_differs_in_its_value_where_2_was_expected_but_3_was_given:la(4125,1,"Each_declaration_of_0_1_differs_in_its_value_where_2_was_expected_but_3_was_given_4125","Each declaration of '{0}.{1}' differs in its value, where '{2}' was expected but '{3}' was given."),One_value_of_0_1_is_the_string_2_and_the_other_is_assumed_to_be_an_unknown_numeric_value:la(4126,1,"One_value_of_0_1_is_the_string_2_and_the_other_is_assumed_to_be_an_unknown_numeric_value_4126","One value of '{0}.{1}' is the string '{2}', and the other is assumed to be an unknown numeric value."),This_member_cannot_have_an_override_modifier_because_its_name_is_dynamic:la(4127,1,"This_member_cannot_have_an_override_modifier_because_its_name_is_dynamic_4127","This member cannot have an 'override' modifier because its name is dynamic."),This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_its_name_is_dynamic:la(4128,1,"This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_its_name_is_dynamic_4128","This member cannot have a JSDoc comment with an '@override' tag because its name is dynamic."),The_current_host_does_not_support_the_0_option:la(5001,1,"The_current_host_does_not_support_the_0_option_5001","The current host does not support the '{0}' option."),Cannot_find_the_common_subdirectory_path_for_the_input_files:la(5009,1,"Cannot_find_the_common_subdirectory_path_for_the_input_files_5009","Cannot find the common subdirectory path for the input files."),File_specification_cannot_end_in_a_recursive_directory_wildcard_Asterisk_Asterisk_Colon_0:la(5010,1,"File_specification_cannot_end_in_a_recursive_directory_wildcard_Asterisk_Asterisk_Colon_0_5010","File specification cannot end in a recursive directory wildcard ('**'): '{0}'."),Cannot_read_file_0_Colon_1:la(5012,1,"Cannot_read_file_0_Colon_1_5012","Cannot read file '{0}': {1}."),Unknown_compiler_option_0:la(5023,1,"Unknown_compiler_option_0_5023","Unknown compiler option '{0}'."),Compiler_option_0_requires_a_value_of_type_1:la(5024,1,"Compiler_option_0_requires_a_value_of_type_1_5024","Compiler option '{0}' requires a value of type {1}."),Unknown_compiler_option_0_Did_you_mean_1:la(5025,1,"Unknown_compiler_option_0_Did_you_mean_1_5025","Unknown compiler option '{0}'. Did you mean '{1}'?"),Could_not_write_file_0_Colon_1:la(5033,1,"Could_not_write_file_0_Colon_1_5033","Could not write file '{0}': {1}."),Option_project_cannot_be_mixed_with_source_files_on_a_command_line:la(5042,1,"Option_project_cannot_be_mixed_with_source_files_on_a_command_line_5042","Option 'project' cannot be mixed with source files on a command line."),Option_isolatedModules_can_only_be_used_when_either_option_module_is_provided_or_option_target_is_ES2015_or_higher:la(5047,1,"Option_isolatedModules_can_only_be_used_when_either_option_module_is_provided_or_option_target_is_ES_5047","Option 'isolatedModules' can only be used when either option '--module' is provided or option 'target' is 'ES2015' or higher."),Option_0_can_only_be_used_when_either_option_inlineSourceMap_or_option_sourceMap_is_provided:la(5051,1,"Option_0_can_only_be_used_when_either_option_inlineSourceMap_or_option_sourceMap_is_provided_5051","Option '{0} can only be used when either option '--inlineSourceMap' or option '--sourceMap' is provided."),Option_0_cannot_be_specified_without_specifying_option_1:la(5052,1,"Option_0_cannot_be_specified_without_specifying_option_1_5052","Option '{0}' cannot be specified without specifying option '{1}'."),Option_0_cannot_be_specified_with_option_1:la(5053,1,"Option_0_cannot_be_specified_with_option_1_5053","Option '{0}' cannot be specified with option '{1}'."),A_tsconfig_json_file_is_already_defined_at_Colon_0:la(5054,1,"A_tsconfig_json_file_is_already_defined_at_Colon_0_5054","A 'tsconfig.json' file is already defined at: '{0}'."),Cannot_write_file_0_because_it_would_overwrite_input_file:la(5055,1,"Cannot_write_file_0_because_it_would_overwrite_input_file_5055","Cannot write file '{0}' because it would overwrite input file."),Cannot_write_file_0_because_it_would_be_overwritten_by_multiple_input_files:la(5056,1,"Cannot_write_file_0_because_it_would_be_overwritten_by_multiple_input_files_5056","Cannot write file '{0}' because it would be overwritten by multiple input files."),Cannot_find_a_tsconfig_json_file_at_the_specified_directory_Colon_0:la(5057,1,"Cannot_find_a_tsconfig_json_file_at_the_specified_directory_Colon_0_5057","Cannot find a tsconfig.json file at the specified directory: '{0}'."),The_specified_path_does_not_exist_Colon_0:la(5058,1,"The_specified_path_does_not_exist_Colon_0_5058","The specified path does not exist: '{0}'."),Invalid_value_for_reactNamespace_0_is_not_a_valid_identifier:la(5059,1,"Invalid_value_for_reactNamespace_0_is_not_a_valid_identifier_5059","Invalid value for '--reactNamespace'. '{0}' is not a valid identifier."),Pattern_0_can_have_at_most_one_Asterisk_character:la(5061,1,"Pattern_0_can_have_at_most_one_Asterisk_character_5061","Pattern '{0}' can have at most one '*' character."),Substitution_0_in_pattern_1_can_have_at_most_one_Asterisk_character:la(5062,1,"Substitution_0_in_pattern_1_can_have_at_most_one_Asterisk_character_5062","Substitution '{0}' in pattern '{1}' can have at most one '*' character."),Substitutions_for_pattern_0_should_be_an_array:la(5063,1,"Substitutions_for_pattern_0_should_be_an_array_5063","Substitutions for pattern '{0}' should be an array."),Substitution_0_for_pattern_1_has_incorrect_type_expected_string_got_2:la(5064,1,"Substitution_0_for_pattern_1_has_incorrect_type_expected_string_got_2_5064","Substitution '{0}' for pattern '{1}' has incorrect type, expected 'string', got '{2}'."),File_specification_cannot_contain_a_parent_directory_that_appears_after_a_recursive_directory_wildcard_Asterisk_Asterisk_Colon_0:la(5065,1,"File_specification_cannot_contain_a_parent_directory_that_appears_after_a_recursive_directory_wildca_5065","File specification cannot contain a parent directory ('..') that appears after a recursive directory wildcard ('**'): '{0}'."),Substitutions_for_pattern_0_shouldn_t_be_an_empty_array:la(5066,1,"Substitutions_for_pattern_0_shouldn_t_be_an_empty_array_5066","Substitutions for pattern '{0}' shouldn't be an empty array."),Invalid_value_for_jsxFactory_0_is_not_a_valid_identifier_or_qualified_name:la(5067,1,"Invalid_value_for_jsxFactory_0_is_not_a_valid_identifier_or_qualified_name_5067","Invalid value for 'jsxFactory'. '{0}' is not a valid identifier or qualified-name."),Adding_a_tsconfig_json_file_will_help_organize_projects_that_contain_both_TypeScript_and_JavaScript_files_Learn_more_at_https_Colon_Slash_Slashaka_ms_Slashtsconfig:la(5068,1,"Adding_a_tsconfig_json_file_will_help_organize_projects_that_contain_both_TypeScript_and_JavaScript__5068","Adding a tsconfig.json file will help organize projects that contain both TypeScript and JavaScript files. Learn more at https://aka.ms/tsconfig."),Option_0_cannot_be_specified_without_specifying_option_1_or_option_2:la(5069,1,"Option_0_cannot_be_specified_without_specifying_option_1_or_option_2_5069","Option '{0}' cannot be specified without specifying option '{1}' or option '{2}'."),Option_resolveJsonModule_cannot_be_specified_when_moduleResolution_is_set_to_classic:la(5070,1,"Option_resolveJsonModule_cannot_be_specified_when_moduleResolution_is_set_to_classic_5070","Option '--resolveJsonModule' cannot be specified when 'moduleResolution' is set to 'classic'."),Option_resolveJsonModule_cannot_be_specified_when_module_is_set_to_none_system_or_umd:la(5071,1,"Option_resolveJsonModule_cannot_be_specified_when_module_is_set_to_none_system_or_umd_5071","Option '--resolveJsonModule' cannot be specified when 'module' is set to 'none', 'system', or 'umd'."),Unknown_build_option_0:la(5072,1,"Unknown_build_option_0_5072","Unknown build option '{0}'."),Build_option_0_requires_a_value_of_type_1:la(5073,1,"Build_option_0_requires_a_value_of_type_1_5073","Build option '{0}' requires a value of type {1}."),Option_incremental_can_only_be_specified_using_tsconfig_emitting_to_single_file_or_when_option_tsBuildInfoFile_is_specified:la(5074,1,"Option_incremental_can_only_be_specified_using_tsconfig_emitting_to_single_file_or_when_option_tsBui_5074","Option '--incremental' can only be specified using tsconfig, emitting to single file or when option '--tsBuildInfoFile' is specified."),_0_is_assignable_to_the_constraint_of_type_1_but_1_could_be_instantiated_with_a_different_subtype_of_constraint_2:la(5075,1,"_0_is_assignable_to_the_constraint_of_type_1_but_1_could_be_instantiated_with_a_different_subtype_of_5075","'{0}' is assignable to the constraint of type '{1}', but '{1}' could be instantiated with a different subtype of constraint '{2}'."),_0_and_1_operations_cannot_be_mixed_without_parentheses:la(5076,1,"_0_and_1_operations_cannot_be_mixed_without_parentheses_5076","'{0}' and '{1}' operations cannot be mixed without parentheses."),Unknown_build_option_0_Did_you_mean_1:la(5077,1,"Unknown_build_option_0_Did_you_mean_1_5077","Unknown build option '{0}'. Did you mean '{1}'?"),Unknown_watch_option_0:la(5078,1,"Unknown_watch_option_0_5078","Unknown watch option '{0}'."),Unknown_watch_option_0_Did_you_mean_1:la(5079,1,"Unknown_watch_option_0_Did_you_mean_1_5079","Unknown watch option '{0}'. Did you mean '{1}'?"),Watch_option_0_requires_a_value_of_type_1:la(5080,1,"Watch_option_0_requires_a_value_of_type_1_5080","Watch option '{0}' requires a value of type {1}."),Cannot_find_a_tsconfig_json_file_at_the_current_directory_Colon_0:la(5081,1,"Cannot_find_a_tsconfig_json_file_at_the_current_directory_Colon_0_5081","Cannot find a tsconfig.json file at the current directory: {0}."),_0_could_be_instantiated_with_an_arbitrary_type_which_could_be_unrelated_to_1:la(5082,1,"_0_could_be_instantiated_with_an_arbitrary_type_which_could_be_unrelated_to_1_5082","'{0}' could be instantiated with an arbitrary type which could be unrelated to '{1}'."),Cannot_read_file_0:la(5083,1,"Cannot_read_file_0_5083","Cannot read file '{0}'."),A_tuple_member_cannot_be_both_optional_and_rest:la(5085,1,"A_tuple_member_cannot_be_both_optional_and_rest_5085","A tuple member cannot be both optional and rest."),A_labeled_tuple_element_is_declared_as_optional_with_a_question_mark_after_the_name_and_before_the_colon_rather_than_after_the_type:la(5086,1,"A_labeled_tuple_element_is_declared_as_optional_with_a_question_mark_after_the_name_and_before_the_c_5086","A labeled tuple element is declared as optional with a question mark after the name and before the colon, rather than after the type."),A_labeled_tuple_element_is_declared_as_rest_with_a_before_the_name_rather_than_before_the_type:la(5087,1,"A_labeled_tuple_element_is_declared_as_rest_with_a_before_the_name_rather_than_before_the_type_5087","A labeled tuple element is declared as rest with a '...' before the name, rather than before the type."),The_inferred_type_of_0_references_a_type_with_a_cyclic_structure_which_cannot_be_trivially_serialized_A_type_annotation_is_necessary:la(5088,1,"The_inferred_type_of_0_references_a_type_with_a_cyclic_structure_which_cannot_be_trivially_serialize_5088","The inferred type of '{0}' references a type with a cyclic structure which cannot be trivially serialized. A type annotation is necessary."),Option_0_cannot_be_specified_when_option_jsx_is_1:la(5089,1,"Option_0_cannot_be_specified_when_option_jsx_is_1_5089","Option '{0}' cannot be specified when option 'jsx' is '{1}'."),Non_relative_paths_are_not_allowed_when_baseUrl_is_not_set_Did_you_forget_a_leading_Slash:la(5090,1,"Non_relative_paths_are_not_allowed_when_baseUrl_is_not_set_Did_you_forget_a_leading_Slash_5090","Non-relative paths are not allowed when 'baseUrl' is not set. Did you forget a leading './'?"),Option_preserveConstEnums_cannot_be_disabled_when_0_is_enabled:la(5091,1,"Option_preserveConstEnums_cannot_be_disabled_when_0_is_enabled_5091","Option 'preserveConstEnums' cannot be disabled when '{0}' is enabled."),The_root_value_of_a_0_file_must_be_an_object:la(5092,1,"The_root_value_of_a_0_file_must_be_an_object_5092","The root value of a '{0}' file must be an object."),Compiler_option_0_may_only_be_used_with_build:la(5093,1,"Compiler_option_0_may_only_be_used_with_build_5093","Compiler option '--{0}' may only be used with '--build'."),Compiler_option_0_may_not_be_used_with_build:la(5094,1,"Compiler_option_0_may_not_be_used_with_build_5094","Compiler option '--{0}' may not be used with '--build'."),Option_0_can_only_be_used_when_module_is_set_to_preserve_or_to_es2015_or_later:la(5095,1,"Option_0_can_only_be_used_when_module_is_set_to_preserve_or_to_es2015_or_later_5095","Option '{0}' can only be used when 'module' is set to 'preserve' or to 'es2015' or later."),Option_allowImportingTsExtensions_can_only_be_used_when_either_noEmit_or_emitDeclarationOnly_is_set:la(5096,1,"Option_allowImportingTsExtensions_can_only_be_used_when_either_noEmit_or_emitDeclarationOnly_is_set_5096","Option 'allowImportingTsExtensions' can only be used when either 'noEmit' or 'emitDeclarationOnly' is set."),An_import_path_can_only_end_with_a_0_extension_when_allowImportingTsExtensions_is_enabled:la(5097,1,"An_import_path_can_only_end_with_a_0_extension_when_allowImportingTsExtensions_is_enabled_5097","An import path can only end with a '{0}' extension when 'allowImportingTsExtensions' is enabled."),Option_0_can_only_be_used_when_moduleResolution_is_set_to_node16_nodenext_or_bundler:la(5098,1,"Option_0_can_only_be_used_when_moduleResolution_is_set_to_node16_nodenext_or_bundler_5098","Option '{0}' can only be used when 'moduleResolution' is set to 'node16', 'nodenext', or 'bundler'."),Option_0_is_deprecated_and_will_stop_functioning_in_TypeScript_1_Specify_compilerOption_ignoreDeprecations_Colon_2_to_silence_this_error:la(5101,1,"Option_0_is_deprecated_and_will_stop_functioning_in_TypeScript_1_Specify_compilerOption_ignoreDeprec_5101","Option '{0}' is deprecated and will stop functioning in TypeScript {1}. Specify compilerOption '\"ignoreDeprecations\": \"{2}\"' to silence this error."),Option_0_has_been_removed_Please_remove_it_from_your_configuration:la(5102,1,"Option_0_has_been_removed_Please_remove_it_from_your_configuration_5102","Option '{0}' has been removed. Please remove it from your configuration."),Invalid_value_for_ignoreDeprecations:la(5103,1,"Invalid_value_for_ignoreDeprecations_5103","Invalid value for '--ignoreDeprecations'."),Option_0_is_redundant_and_cannot_be_specified_with_option_1:la(5104,1,"Option_0_is_redundant_and_cannot_be_specified_with_option_1_5104","Option '{0}' is redundant and cannot be specified with option '{1}'."),Option_verbatimModuleSyntax_cannot_be_used_when_module_is_set_to_UMD_AMD_or_System:la(5105,1,"Option_verbatimModuleSyntax_cannot_be_used_when_module_is_set_to_UMD_AMD_or_System_5105","Option 'verbatimModuleSyntax' cannot be used when 'module' is set to 'UMD', 'AMD', or 'System'."),Use_0_instead:la(5106,3,"Use_0_instead_5106","Use '{0}' instead."),Option_0_1_is_deprecated_and_will_stop_functioning_in_TypeScript_2_Specify_compilerOption_ignoreDeprecations_Colon_3_to_silence_this_error:la(5107,1,"Option_0_1_is_deprecated_and_will_stop_functioning_in_TypeScript_2_Specify_compilerOption_ignoreDepr_5107","Option '{0}={1}' is deprecated and will stop functioning in TypeScript {2}. Specify compilerOption '\"ignoreDeprecations\": \"{3}\"' to silence this error."),Option_0_1_has_been_removed_Please_remove_it_from_your_configuration:la(5108,1,"Option_0_1_has_been_removed_Please_remove_it_from_your_configuration_5108","Option '{0}={1}' has been removed. Please remove it from your configuration."),Option_moduleResolution_must_be_set_to_0_or_left_unspecified_when_option_module_is_set_to_1:la(5109,1,"Option_moduleResolution_must_be_set_to_0_or_left_unspecified_when_option_module_is_set_to_1_5109","Option 'moduleResolution' must be set to '{0}' (or left unspecified) when option 'module' is set to '{1}'."),Option_module_must_be_set_to_0_when_option_moduleResolution_is_set_to_1:la(5110,1,"Option_module_must_be_set_to_0_when_option_moduleResolution_is_set_to_1_5110","Option 'module' must be set to '{0}' when option 'moduleResolution' is set to '{1}'."),Generates_a_sourcemap_for_each_corresponding_d_ts_file:la(6e3,3,"Generates_a_sourcemap_for_each_corresponding_d_ts_file_6000","Generates a sourcemap for each corresponding '.d.ts' file."),Concatenate_and_emit_output_to_single_file:la(6001,3,"Concatenate_and_emit_output_to_single_file_6001","Concatenate and emit output to single file."),Generates_corresponding_d_ts_file:la(6002,3,"Generates_corresponding_d_ts_file_6002","Generates corresponding '.d.ts' file."),Specify_the_location_where_debugger_should_locate_TypeScript_files_instead_of_source_locations:la(6004,3,"Specify_the_location_where_debugger_should_locate_TypeScript_files_instead_of_source_locations_6004","Specify the location where debugger should locate TypeScript files instead of source locations."),Watch_input_files:la(6005,3,"Watch_input_files_6005","Watch input files."),Redirect_output_structure_to_the_directory:la(6006,3,"Redirect_output_structure_to_the_directory_6006","Redirect output structure to the directory."),Do_not_erase_const_enum_declarations_in_generated_code:la(6007,3,"Do_not_erase_const_enum_declarations_in_generated_code_6007","Do not erase const enum declarations in generated code."),Do_not_emit_outputs_if_any_errors_were_reported:la(6008,3,"Do_not_emit_outputs_if_any_errors_were_reported_6008","Do not emit outputs if any errors were reported."),Do_not_emit_comments_to_output:la(6009,3,"Do_not_emit_comments_to_output_6009","Do not emit comments to output."),Do_not_emit_outputs:la(6010,3,"Do_not_emit_outputs_6010","Do not emit outputs."),Allow_default_imports_from_modules_with_no_default_export_This_does_not_affect_code_emit_just_typechecking:la(6011,3,"Allow_default_imports_from_modules_with_no_default_export_This_does_not_affect_code_emit_just_typech_6011","Allow default imports from modules with no default export. This does not affect code emit, just typechecking."),Skip_type_checking_of_declaration_files:la(6012,3,"Skip_type_checking_of_declaration_files_6012","Skip type checking of declaration files."),Do_not_resolve_the_real_path_of_symlinks:la(6013,3,"Do_not_resolve_the_real_path_of_symlinks_6013","Do not resolve the real path of symlinks."),Only_emit_d_ts_declaration_files:la(6014,3,"Only_emit_d_ts_declaration_files_6014","Only emit '.d.ts' declaration files."),Specify_ECMAScript_target_version:la(6015,3,"Specify_ECMAScript_target_version_6015","Specify ECMAScript target version."),Specify_module_code_generation:la(6016,3,"Specify_module_code_generation_6016","Specify module code generation."),Print_this_message:la(6017,3,"Print_this_message_6017","Print this message."),Print_the_compiler_s_version:la(6019,3,"Print_the_compiler_s_version_6019","Print the compiler's version."),Compile_the_project_given_the_path_to_its_configuration_file_or_to_a_folder_with_a_tsconfig_json:la(6020,3,"Compile_the_project_given_the_path_to_its_configuration_file_or_to_a_folder_with_a_tsconfig_json_6020","Compile the project given the path to its configuration file, or to a folder with a 'tsconfig.json'."),Syntax_Colon_0:la(6023,3,"Syntax_Colon_0_6023","Syntax: {0}"),options:la(6024,3,"options_6024","options"),file:la(6025,3,"file_6025","file"),Examples_Colon_0:la(6026,3,"Examples_Colon_0_6026","Examples: {0}"),Options_Colon:la(6027,3,"Options_Colon_6027","Options:"),Version_0:la(6029,3,"Version_0_6029","Version {0}"),Insert_command_line_options_and_files_from_a_file:la(6030,3,"Insert_command_line_options_and_files_from_a_file_6030","Insert command line options and files from a file."),Starting_compilation_in_watch_mode:la(6031,3,"Starting_compilation_in_watch_mode_6031","Starting compilation in watch mode..."),File_change_detected_Starting_incremental_compilation:la(6032,3,"File_change_detected_Starting_incremental_compilation_6032","File change detected. Starting incremental compilation..."),KIND:la(6034,3,"KIND_6034","KIND"),FILE:la(6035,3,"FILE_6035","FILE"),VERSION:la(6036,3,"VERSION_6036","VERSION"),LOCATION:la(6037,3,"LOCATION_6037","LOCATION"),DIRECTORY:la(6038,3,"DIRECTORY_6038","DIRECTORY"),STRATEGY:la(6039,3,"STRATEGY_6039","STRATEGY"),FILE_OR_DIRECTORY:la(6040,3,"FILE_OR_DIRECTORY_6040","FILE OR DIRECTORY"),Errors_Files:la(6041,3,"Errors_Files_6041","Errors Files"),Generates_corresponding_map_file:la(6043,3,"Generates_corresponding_map_file_6043","Generates corresponding '.map' file."),Compiler_option_0_expects_an_argument:la(6044,1,"Compiler_option_0_expects_an_argument_6044","Compiler option '{0}' expects an argument."),Unterminated_quoted_string_in_response_file_0:la(6045,1,"Unterminated_quoted_string_in_response_file_0_6045","Unterminated quoted string in response file '{0}'."),Argument_for_0_option_must_be_Colon_1:la(6046,1,"Argument_for_0_option_must_be_Colon_1_6046","Argument for '{0}' option must be: {1}."),Locale_must_be_of_the_form_language_or_language_territory_For_example_0_or_1:la(6048,1,"Locale_must_be_of_the_form_language_or_language_territory_For_example_0_or_1_6048","Locale must be of the form or -. For example '{0}' or '{1}'."),Unable_to_open_file_0:la(6050,1,"Unable_to_open_file_0_6050","Unable to open file '{0}'."),Corrupted_locale_file_0:la(6051,1,"Corrupted_locale_file_0_6051","Corrupted locale file {0}."),Raise_error_on_expressions_and_declarations_with_an_implied_any_type:la(6052,3,"Raise_error_on_expressions_and_declarations_with_an_implied_any_type_6052","Raise error on expressions and declarations with an implied 'any' type."),File_0_not_found:la(6053,1,"File_0_not_found_6053","File '{0}' not found."),File_0_has_an_unsupported_extension_The_only_supported_extensions_are_1:la(6054,1,"File_0_has_an_unsupported_extension_The_only_supported_extensions_are_1_6054","File '{0}' has an unsupported extension. The only supported extensions are {1}."),Suppress_noImplicitAny_errors_for_indexing_objects_lacking_index_signatures:la(6055,3,"Suppress_noImplicitAny_errors_for_indexing_objects_lacking_index_signatures_6055","Suppress noImplicitAny errors for indexing objects lacking index signatures."),Do_not_emit_declarations_for_code_that_has_an_internal_annotation:la(6056,3,"Do_not_emit_declarations_for_code_that_has_an_internal_annotation_6056","Do not emit declarations for code that has an '@internal' annotation."),Specify_the_root_directory_of_input_files_Use_to_control_the_output_directory_structure_with_outDir:la(6058,3,"Specify_the_root_directory_of_input_files_Use_to_control_the_output_directory_structure_with_outDir_6058","Specify the root directory of input files. Use to control the output directory structure with --outDir."),File_0_is_not_under_rootDir_1_rootDir_is_expected_to_contain_all_source_files:la(6059,1,"File_0_is_not_under_rootDir_1_rootDir_is_expected_to_contain_all_source_files_6059","File '{0}' is not under 'rootDir' '{1}'. 'rootDir' is expected to contain all source files."),Specify_the_end_of_line_sequence_to_be_used_when_emitting_files_Colon_CRLF_dos_or_LF_unix:la(6060,3,"Specify_the_end_of_line_sequence_to_be_used_when_emitting_files_Colon_CRLF_dos_or_LF_unix_6060","Specify the end of line sequence to be used when emitting files: 'CRLF' (dos) or 'LF' (unix)."),NEWLINE:la(6061,3,"NEWLINE_6061","NEWLINE"),Option_0_can_only_be_specified_in_tsconfig_json_file_or_set_to_null_on_command_line:la(6064,1,"Option_0_can_only_be_specified_in_tsconfig_json_file_or_set_to_null_on_command_line_6064","Option '{0}' can only be specified in 'tsconfig.json' file or set to 'null' on command line."),Enables_experimental_support_for_ES7_decorators:la(6065,3,"Enables_experimental_support_for_ES7_decorators_6065","Enables experimental support for ES7 decorators."),Enables_experimental_support_for_emitting_type_metadata_for_decorators:la(6066,3,"Enables_experimental_support_for_emitting_type_metadata_for_decorators_6066","Enables experimental support for emitting type metadata for decorators."),Initializes_a_TypeScript_project_and_creates_a_tsconfig_json_file:la(6070,3,"Initializes_a_TypeScript_project_and_creates_a_tsconfig_json_file_6070","Initializes a TypeScript project and creates a tsconfig.json file."),Successfully_created_a_tsconfig_json_file:la(6071,3,"Successfully_created_a_tsconfig_json_file_6071","Successfully created a tsconfig.json file."),Suppress_excess_property_checks_for_object_literals:la(6072,3,"Suppress_excess_property_checks_for_object_literals_6072","Suppress excess property checks for object literals."),Stylize_errors_and_messages_using_color_and_context_experimental:la(6073,3,"Stylize_errors_and_messages_using_color_and_context_experimental_6073","Stylize errors and messages using color and context (experimental)."),Do_not_report_errors_on_unused_labels:la(6074,3,"Do_not_report_errors_on_unused_labels_6074","Do not report errors on unused labels."),Report_error_when_not_all_code_paths_in_function_return_a_value:la(6075,3,"Report_error_when_not_all_code_paths_in_function_return_a_value_6075","Report error when not all code paths in function return a value."),Report_errors_for_fallthrough_cases_in_switch_statement:la(6076,3,"Report_errors_for_fallthrough_cases_in_switch_statement_6076","Report errors for fallthrough cases in switch statement."),Do_not_report_errors_on_unreachable_code:la(6077,3,"Do_not_report_errors_on_unreachable_code_6077","Do not report errors on unreachable code."),Disallow_inconsistently_cased_references_to_the_same_file:la(6078,3,"Disallow_inconsistently_cased_references_to_the_same_file_6078","Disallow inconsistently-cased references to the same file."),Specify_library_files_to_be_included_in_the_compilation:la(6079,3,"Specify_library_files_to_be_included_in_the_compilation_6079","Specify library files to be included in the compilation."),Specify_JSX_code_generation:la(6080,3,"Specify_JSX_code_generation_6080","Specify JSX code generation."),Only_amd_and_system_modules_are_supported_alongside_0:la(6082,1,"Only_amd_and_system_modules_are_supported_alongside_0_6082","Only 'amd' and 'system' modules are supported alongside --{0}."),Base_directory_to_resolve_non_absolute_module_names:la(6083,3,"Base_directory_to_resolve_non_absolute_module_names_6083","Base directory to resolve non-absolute module names."),Deprecated_Use_jsxFactory_instead_Specify_the_object_invoked_for_createElement_when_targeting_react_JSX_emit:la(6084,3,"Deprecated_Use_jsxFactory_instead_Specify_the_object_invoked_for_createElement_when_targeting_react__6084","[Deprecated] Use '--jsxFactory' instead. Specify the object invoked for createElement when targeting 'react' JSX emit"),Enable_tracing_of_the_name_resolution_process:la(6085,3,"Enable_tracing_of_the_name_resolution_process_6085","Enable tracing of the name resolution process."),Resolving_module_0_from_1:la(6086,3,"Resolving_module_0_from_1_6086","======== Resolving module '{0}' from '{1}'. ========"),Explicitly_specified_module_resolution_kind_Colon_0:la(6087,3,"Explicitly_specified_module_resolution_kind_Colon_0_6087","Explicitly specified module resolution kind: '{0}'."),Module_resolution_kind_is_not_specified_using_0:la(6088,3,"Module_resolution_kind_is_not_specified_using_0_6088","Module resolution kind is not specified, using '{0}'."),Module_name_0_was_successfully_resolved_to_1:la(6089,3,"Module_name_0_was_successfully_resolved_to_1_6089","======== Module name '{0}' was successfully resolved to '{1}'. ========"),Module_name_0_was_not_resolved:la(6090,3,"Module_name_0_was_not_resolved_6090","======== Module name '{0}' was not resolved. ========"),paths_option_is_specified_looking_for_a_pattern_to_match_module_name_0:la(6091,3,"paths_option_is_specified_looking_for_a_pattern_to_match_module_name_0_6091","'paths' option is specified, looking for a pattern to match module name '{0}'."),Module_name_0_matched_pattern_1:la(6092,3,"Module_name_0_matched_pattern_1_6092","Module name '{0}', matched pattern '{1}'."),Trying_substitution_0_candidate_module_location_Colon_1:la(6093,3,"Trying_substitution_0_candidate_module_location_Colon_1_6093","Trying substitution '{0}', candidate module location: '{1}'."),Resolving_module_name_0_relative_to_base_url_1_2:la(6094,3,"Resolving_module_name_0_relative_to_base_url_1_2_6094","Resolving module name '{0}' relative to base url '{1}' - '{2}'."),Loading_module_as_file_Slash_folder_candidate_module_location_0_target_file_types_Colon_1:la(6095,3,"Loading_module_as_file_Slash_folder_candidate_module_location_0_target_file_types_Colon_1_6095","Loading module as file / folder, candidate module location '{0}', target file types: {1}."),File_0_does_not_exist:la(6096,3,"File_0_does_not_exist_6096","File '{0}' does not exist."),File_0_exists_use_it_as_a_name_resolution_result:la(6097,3,"File_0_exists_use_it_as_a_name_resolution_result_6097","File '{0}' exists - use it as a name resolution result."),Loading_module_0_from_node_modules_folder_target_file_types_Colon_1:la(6098,3,"Loading_module_0_from_node_modules_folder_target_file_types_Colon_1_6098","Loading module '{0}' from 'node_modules' folder, target file types: {1}."),Found_package_json_at_0:la(6099,3,"Found_package_json_at_0_6099","Found 'package.json' at '{0}'."),package_json_does_not_have_a_0_field:la(6100,3,"package_json_does_not_have_a_0_field_6100","'package.json' does not have a '{0}' field."),package_json_has_0_field_1_that_references_2:la(6101,3,"package_json_has_0_field_1_that_references_2_6101","'package.json' has '{0}' field '{1}' that references '{2}'."),Allow_javascript_files_to_be_compiled:la(6102,3,"Allow_javascript_files_to_be_compiled_6102","Allow javascript files to be compiled."),Checking_if_0_is_the_longest_matching_prefix_for_1_2:la(6104,3,"Checking_if_0_is_the_longest_matching_prefix_for_1_2_6104","Checking if '{0}' is the longest matching prefix for '{1}' - '{2}'."),Expected_type_of_0_field_in_package_json_to_be_1_got_2:la(6105,3,"Expected_type_of_0_field_in_package_json_to_be_1_got_2_6105","Expected type of '{0}' field in 'package.json' to be '{1}', got '{2}'."),baseUrl_option_is_set_to_0_using_this_value_to_resolve_non_relative_module_name_1:la(6106,3,"baseUrl_option_is_set_to_0_using_this_value_to_resolve_non_relative_module_name_1_6106","'baseUrl' option is set to '{0}', using this value to resolve non-relative module name '{1}'."),rootDirs_option_is_set_using_it_to_resolve_relative_module_name_0:la(6107,3,"rootDirs_option_is_set_using_it_to_resolve_relative_module_name_0_6107","'rootDirs' option is set, using it to resolve relative module name '{0}'."),Longest_matching_prefix_for_0_is_1:la(6108,3,"Longest_matching_prefix_for_0_is_1_6108","Longest matching prefix for '{0}' is '{1}'."),Loading_0_from_the_root_dir_1_candidate_location_2:la(6109,3,"Loading_0_from_the_root_dir_1_candidate_location_2_6109","Loading '{0}' from the root dir '{1}', candidate location '{2}'."),Trying_other_entries_in_rootDirs:la(6110,3,"Trying_other_entries_in_rootDirs_6110","Trying other entries in 'rootDirs'."),Module_resolution_using_rootDirs_has_failed:la(6111,3,"Module_resolution_using_rootDirs_has_failed_6111","Module resolution using 'rootDirs' has failed."),Do_not_emit_use_strict_directives_in_module_output:la(6112,3,"Do_not_emit_use_strict_directives_in_module_output_6112","Do not emit 'use strict' directives in module output."),Enable_strict_null_checks:la(6113,3,"Enable_strict_null_checks_6113","Enable strict null checks."),Unknown_option_excludes_Did_you_mean_exclude:la(6114,1,"Unknown_option_excludes_Did_you_mean_exclude_6114","Unknown option 'excludes'. Did you mean 'exclude'?"),Raise_error_on_this_expressions_with_an_implied_any_type:la(6115,3,"Raise_error_on_this_expressions_with_an_implied_any_type_6115","Raise error on 'this' expressions with an implied 'any' type."),Resolving_type_reference_directive_0_containing_file_1_root_directory_2:la(6116,3,"Resolving_type_reference_directive_0_containing_file_1_root_directory_2_6116","======== Resolving type reference directive '{0}', containing file '{1}', root directory '{2}'. ========"),Type_reference_directive_0_was_successfully_resolved_to_1_primary_Colon_2:la(6119,3,"Type_reference_directive_0_was_successfully_resolved_to_1_primary_Colon_2_6119","======== Type reference directive '{0}' was successfully resolved to '{1}', primary: {2}. ========"),Type_reference_directive_0_was_not_resolved:la(6120,3,"Type_reference_directive_0_was_not_resolved_6120","======== Type reference directive '{0}' was not resolved. ========"),Resolving_with_primary_search_path_0:la(6121,3,"Resolving_with_primary_search_path_0_6121","Resolving with primary search path '{0}'."),Root_directory_cannot_be_determined_skipping_primary_search_paths:la(6122,3,"Root_directory_cannot_be_determined_skipping_primary_search_paths_6122","Root directory cannot be determined, skipping primary search paths."),Resolving_type_reference_directive_0_containing_file_1_root_directory_not_set:la(6123,3,"Resolving_type_reference_directive_0_containing_file_1_root_directory_not_set_6123","======== Resolving type reference directive '{0}', containing file '{1}', root directory not set. ========"),Type_declaration_files_to_be_included_in_compilation:la(6124,3,"Type_declaration_files_to_be_included_in_compilation_6124","Type declaration files to be included in compilation."),Looking_up_in_node_modules_folder_initial_location_0:la(6125,3,"Looking_up_in_node_modules_folder_initial_location_0_6125","Looking up in 'node_modules' folder, initial location '{0}'."),Containing_file_is_not_specified_and_root_directory_cannot_be_determined_skipping_lookup_in_node_modules_folder:la(6126,3,"Containing_file_is_not_specified_and_root_directory_cannot_be_determined_skipping_lookup_in_node_mod_6126","Containing file is not specified and root directory cannot be determined, skipping lookup in 'node_modules' folder."),Resolving_type_reference_directive_0_containing_file_not_set_root_directory_1:la(6127,3,"Resolving_type_reference_directive_0_containing_file_not_set_root_directory_1_6127","======== Resolving type reference directive '{0}', containing file not set, root directory '{1}'. ========"),Resolving_type_reference_directive_0_containing_file_not_set_root_directory_not_set:la(6128,3,"Resolving_type_reference_directive_0_containing_file_not_set_root_directory_not_set_6128","======== Resolving type reference directive '{0}', containing file not set, root directory not set. ========"),Resolving_real_path_for_0_result_1:la(6130,3,"Resolving_real_path_for_0_result_1_6130","Resolving real path for '{0}', result '{1}'."),Cannot_compile_modules_using_option_0_unless_the_module_flag_is_amd_or_system:la(6131,1,"Cannot_compile_modules_using_option_0_unless_the_module_flag_is_amd_or_system_6131","Cannot compile modules using option '{0}' unless the '--module' flag is 'amd' or 'system'."),File_name_0_has_a_1_extension_stripping_it:la(6132,3,"File_name_0_has_a_1_extension_stripping_it_6132","File name '{0}' has a '{1}' extension - stripping it."),_0_is_declared_but_its_value_is_never_read:la(6133,1,"_0_is_declared_but_its_value_is_never_read_6133","'{0}' is declared but its value is never read.",!0),Report_errors_on_unused_locals:la(6134,3,"Report_errors_on_unused_locals_6134","Report errors on unused locals."),Report_errors_on_unused_parameters:la(6135,3,"Report_errors_on_unused_parameters_6135","Report errors on unused parameters."),The_maximum_dependency_depth_to_search_under_node_modules_and_load_JavaScript_files:la(6136,3,"The_maximum_dependency_depth_to_search_under_node_modules_and_load_JavaScript_files_6136","The maximum dependency depth to search under node_modules and load JavaScript files."),Cannot_import_type_declaration_files_Consider_importing_0_instead_of_1:la(6137,1,"Cannot_import_type_declaration_files_Consider_importing_0_instead_of_1_6137","Cannot import type declaration files. Consider importing '{0}' instead of '{1}'."),Property_0_is_declared_but_its_value_is_never_read:la(6138,1,"Property_0_is_declared_but_its_value_is_never_read_6138","Property '{0}' is declared but its value is never read.",!0),Import_emit_helpers_from_tslib:la(6139,3,"Import_emit_helpers_from_tslib_6139","Import emit helpers from 'tslib'."),Auto_discovery_for_typings_is_enabled_in_project_0_Running_extra_resolution_pass_for_module_1_using_cache_location_2:la(6140,1,"Auto_discovery_for_typings_is_enabled_in_project_0_Running_extra_resolution_pass_for_module_1_using__6140","Auto discovery for typings is enabled in project '{0}'. Running extra resolution pass for module '{1}' using cache location '{2}'."),Parse_in_strict_mode_and_emit_use_strict_for_each_source_file:la(6141,3,"Parse_in_strict_mode_and_emit_use_strict_for_each_source_file_6141",'Parse in strict mode and emit "use strict" for each source file.'),Module_0_was_resolved_to_1_but_jsx_is_not_set:la(6142,1,"Module_0_was_resolved_to_1_but_jsx_is_not_set_6142","Module '{0}' was resolved to '{1}', but '--jsx' is not set."),Module_0_was_resolved_as_locally_declared_ambient_module_in_file_1:la(6144,3,"Module_0_was_resolved_as_locally_declared_ambient_module_in_file_1_6144","Module '{0}' was resolved as locally declared ambient module in file '{1}'."),Specify_the_JSX_factory_function_to_use_when_targeting_react_JSX_emit_e_g_React_createElement_or_h:la(6146,3,"Specify_the_JSX_factory_function_to_use_when_targeting_react_JSX_emit_e_g_React_createElement_or_h_6146","Specify the JSX factory function to use when targeting 'react' JSX emit, e.g. 'React.createElement' or 'h'."),Resolution_for_module_0_was_found_in_cache_from_location_1:la(6147,3,"Resolution_for_module_0_was_found_in_cache_from_location_1_6147","Resolution for module '{0}' was found in cache from location '{1}'."),Directory_0_does_not_exist_skipping_all_lookups_in_it:la(6148,3,"Directory_0_does_not_exist_skipping_all_lookups_in_it_6148","Directory '{0}' does not exist, skipping all lookups in it."),Show_diagnostic_information:la(6149,3,"Show_diagnostic_information_6149","Show diagnostic information."),Show_verbose_diagnostic_information:la(6150,3,"Show_verbose_diagnostic_information_6150","Show verbose diagnostic information."),Emit_a_single_file_with_source_maps_instead_of_having_a_separate_file:la(6151,3,"Emit_a_single_file_with_source_maps_instead_of_having_a_separate_file_6151","Emit a single file with source maps instead of having a separate file."),Emit_the_source_alongside_the_sourcemaps_within_a_single_file_requires_inlineSourceMap_or_sourceMap_to_be_set:la(6152,3,"Emit_the_source_alongside_the_sourcemaps_within_a_single_file_requires_inlineSourceMap_or_sourceMap__6152","Emit the source alongside the sourcemaps within a single file; requires '--inlineSourceMap' or '--sourceMap' to be set."),Transpile_each_file_as_a_separate_module_similar_to_ts_transpileModule:la(6153,3,"Transpile_each_file_as_a_separate_module_similar_to_ts_transpileModule_6153","Transpile each file as a separate module (similar to 'ts.transpileModule')."),Print_names_of_generated_files_part_of_the_compilation:la(6154,3,"Print_names_of_generated_files_part_of_the_compilation_6154","Print names of generated files part of the compilation."),Print_names_of_files_part_of_the_compilation:la(6155,3,"Print_names_of_files_part_of_the_compilation_6155","Print names of files part of the compilation."),The_locale_used_when_displaying_messages_to_the_user_e_g_en_us:la(6156,3,"The_locale_used_when_displaying_messages_to_the_user_e_g_en_us_6156","The locale used when displaying messages to the user (e.g. 'en-us')"),Do_not_generate_custom_helper_functions_like_extends_in_compiled_output:la(6157,3,"Do_not_generate_custom_helper_functions_like_extends_in_compiled_output_6157","Do not generate custom helper functions like '__extends' in compiled output."),Do_not_include_the_default_library_file_lib_d_ts:la(6158,3,"Do_not_include_the_default_library_file_lib_d_ts_6158","Do not include the default library file (lib.d.ts)."),Do_not_add_triple_slash_references_or_imported_modules_to_the_list_of_compiled_files:la(6159,3,"Do_not_add_triple_slash_references_or_imported_modules_to_the_list_of_compiled_files_6159","Do not add triple-slash references or imported modules to the list of compiled files."),Deprecated_Use_skipLibCheck_instead_Skip_type_checking_of_default_library_declaration_files:la(6160,3,"Deprecated_Use_skipLibCheck_instead_Skip_type_checking_of_default_library_declaration_files_6160","[Deprecated] Use '--skipLibCheck' instead. Skip type checking of default library declaration files."),List_of_folders_to_include_type_definitions_from:la(6161,3,"List_of_folders_to_include_type_definitions_from_6161","List of folders to include type definitions from."),Disable_size_limitations_on_JavaScript_projects:la(6162,3,"Disable_size_limitations_on_JavaScript_projects_6162","Disable size limitations on JavaScript projects."),The_character_set_of_the_input_files:la(6163,3,"The_character_set_of_the_input_files_6163","The character set of the input files."),Skipping_module_0_that_looks_like_an_absolute_URI_target_file_types_Colon_1:la(6164,3,"Skipping_module_0_that_looks_like_an_absolute_URI_target_file_types_Colon_1_6164","Skipping module '{0}' that looks like an absolute URI, target file types: {1}."),Do_not_truncate_error_messages:la(6165,3,"Do_not_truncate_error_messages_6165","Do not truncate error messages."),Output_directory_for_generated_declaration_files:la(6166,3,"Output_directory_for_generated_declaration_files_6166","Output directory for generated declaration files."),A_series_of_entries_which_re_map_imports_to_lookup_locations_relative_to_the_baseUrl:la(6167,3,"A_series_of_entries_which_re_map_imports_to_lookup_locations_relative_to_the_baseUrl_6167","A series of entries which re-map imports to lookup locations relative to the 'baseUrl'."),List_of_root_folders_whose_combined_content_represents_the_structure_of_the_project_at_runtime:la(6168,3,"List_of_root_folders_whose_combined_content_represents_the_structure_of_the_project_at_runtime_6168","List of root folders whose combined content represents the structure of the project at runtime."),Show_all_compiler_options:la(6169,3,"Show_all_compiler_options_6169","Show all compiler options."),Deprecated_Use_outFile_instead_Concatenate_and_emit_output_to_single_file:la(6170,3,"Deprecated_Use_outFile_instead_Concatenate_and_emit_output_to_single_file_6170","[Deprecated] Use '--outFile' instead. Concatenate and emit output to single file"),Command_line_Options:la(6171,3,"Command_line_Options_6171","Command-line Options"),Provide_full_support_for_iterables_in_for_of_spread_and_destructuring_when_targeting_ES5:la(6179,3,"Provide_full_support_for_iterables_in_for_of_spread_and_destructuring_when_targeting_ES5_6179","Provide full support for iterables in 'for-of', spread, and destructuring when targeting 'ES5'."),Enable_all_strict_type_checking_options:la(6180,3,"Enable_all_strict_type_checking_options_6180","Enable all strict type-checking options."),Scoped_package_detected_looking_in_0:la(6182,3,"Scoped_package_detected_looking_in_0_6182","Scoped package detected, looking in '{0}'"),Reusing_resolution_of_module_0_from_1_of_old_program_it_was_successfully_resolved_to_2:la(6183,3,"Reusing_resolution_of_module_0_from_1_of_old_program_it_was_successfully_resolved_to_2_6183","Reusing resolution of module '{0}' from '{1}' of old program, it was successfully resolved to '{2}'."),Reusing_resolution_of_module_0_from_1_of_old_program_it_was_successfully_resolved_to_2_with_Package_ID_3:la(6184,3,"Reusing_resolution_of_module_0_from_1_of_old_program_it_was_successfully_resolved_to_2_with_Package__6184","Reusing resolution of module '{0}' from '{1}' of old program, it was successfully resolved to '{2}' with Package ID '{3}'."),Enable_strict_checking_of_function_types:la(6186,3,"Enable_strict_checking_of_function_types_6186","Enable strict checking of function types."),Enable_strict_checking_of_property_initialization_in_classes:la(6187,3,"Enable_strict_checking_of_property_initialization_in_classes_6187","Enable strict checking of property initialization in classes."),Numeric_separators_are_not_allowed_here:la(6188,1,"Numeric_separators_are_not_allowed_here_6188","Numeric separators are not allowed here."),Multiple_consecutive_numeric_separators_are_not_permitted:la(6189,1,"Multiple_consecutive_numeric_separators_are_not_permitted_6189","Multiple consecutive numeric separators are not permitted."),Whether_to_keep_outdated_console_output_in_watch_mode_instead_of_clearing_the_screen:la(6191,3,"Whether_to_keep_outdated_console_output_in_watch_mode_instead_of_clearing_the_screen_6191","Whether to keep outdated console output in watch mode instead of clearing the screen."),All_imports_in_import_declaration_are_unused:la(6192,1,"All_imports_in_import_declaration_are_unused_6192","All imports in import declaration are unused.",!0),Found_1_error_Watching_for_file_changes:la(6193,3,"Found_1_error_Watching_for_file_changes_6193","Found 1 error. Watching for file changes."),Found_0_errors_Watching_for_file_changes:la(6194,3,"Found_0_errors_Watching_for_file_changes_6194","Found {0} errors. Watching for file changes."),Resolve_keyof_to_string_valued_property_names_only_no_numbers_or_symbols:la(6195,3,"Resolve_keyof_to_string_valued_property_names_only_no_numbers_or_symbols_6195","Resolve 'keyof' to string valued property names only (no numbers or symbols)."),_0_is_declared_but_never_used:la(6196,1,"_0_is_declared_but_never_used_6196","'{0}' is declared but never used.",!0),Include_modules_imported_with_json_extension:la(6197,3,"Include_modules_imported_with_json_extension_6197","Include modules imported with '.json' extension"),All_destructured_elements_are_unused:la(6198,1,"All_destructured_elements_are_unused_6198","All destructured elements are unused.",!0),All_variables_are_unused:la(6199,1,"All_variables_are_unused_6199","All variables are unused.",!0),Definitions_of_the_following_identifiers_conflict_with_those_in_another_file_Colon_0:la(6200,1,"Definitions_of_the_following_identifiers_conflict_with_those_in_another_file_Colon_0_6200","Definitions of the following identifiers conflict with those in another file: {0}"),Conflicts_are_in_this_file:la(6201,3,"Conflicts_are_in_this_file_6201","Conflicts are in this file."),Project_references_may_not_form_a_circular_graph_Cycle_detected_Colon_0:la(6202,1,"Project_references_may_not_form_a_circular_graph_Cycle_detected_Colon_0_6202","Project references may not form a circular graph. Cycle detected: {0}"),_0_was_also_declared_here:la(6203,3,"_0_was_also_declared_here_6203","'{0}' was also declared here."),and_here:la(6204,3,"and_here_6204","and here."),All_type_parameters_are_unused:la(6205,1,"All_type_parameters_are_unused_6205","All type parameters are unused."),package_json_has_a_typesVersions_field_with_version_specific_path_mappings:la(6206,3,"package_json_has_a_typesVersions_field_with_version_specific_path_mappings_6206","'package.json' has a 'typesVersions' field with version-specific path mappings."),package_json_does_not_have_a_typesVersions_entry_that_matches_version_0:la(6207,3,"package_json_does_not_have_a_typesVersions_entry_that_matches_version_0_6207","'package.json' does not have a 'typesVersions' entry that matches version '{0}'."),package_json_has_a_typesVersions_entry_0_that_matches_compiler_version_1_looking_for_a_pattern_to_match_module_name_2:la(6208,3,"package_json_has_a_typesVersions_entry_0_that_matches_compiler_version_1_looking_for_a_pattern_to_ma_6208","'package.json' has a 'typesVersions' entry '{0}' that matches compiler version '{1}', looking for a pattern to match module name '{2}'."),package_json_has_a_typesVersions_entry_0_that_is_not_a_valid_semver_range:la(6209,3,"package_json_has_a_typesVersions_entry_0_that_is_not_a_valid_semver_range_6209","'package.json' has a 'typesVersions' entry '{0}' that is not a valid semver range."),An_argument_for_0_was_not_provided:la(6210,3,"An_argument_for_0_was_not_provided_6210","An argument for '{0}' was not provided."),An_argument_matching_this_binding_pattern_was_not_provided:la(6211,3,"An_argument_matching_this_binding_pattern_was_not_provided_6211","An argument matching this binding pattern was not provided."),Did_you_mean_to_call_this_expression:la(6212,3,"Did_you_mean_to_call_this_expression_6212","Did you mean to call this expression?"),Did_you_mean_to_use_new_with_this_expression:la(6213,3,"Did_you_mean_to_use_new_with_this_expression_6213","Did you mean to use 'new' with this expression?"),Enable_strict_bind_call_and_apply_methods_on_functions:la(6214,3,"Enable_strict_bind_call_and_apply_methods_on_functions_6214","Enable strict 'bind', 'call', and 'apply' methods on functions."),Using_compiler_options_of_project_reference_redirect_0:la(6215,3,"Using_compiler_options_of_project_reference_redirect_0_6215","Using compiler options of project reference redirect '{0}'."),Found_1_error:la(6216,3,"Found_1_error_6216","Found 1 error."),Found_0_errors:la(6217,3,"Found_0_errors_6217","Found {0} errors."),Module_name_0_was_successfully_resolved_to_1_with_Package_ID_2:la(6218,3,"Module_name_0_was_successfully_resolved_to_1_with_Package_ID_2_6218","======== Module name '{0}' was successfully resolved to '{1}' with Package ID '{2}'. ========"),Type_reference_directive_0_was_successfully_resolved_to_1_with_Package_ID_2_primary_Colon_3:la(6219,3,"Type_reference_directive_0_was_successfully_resolved_to_1_with_Package_ID_2_primary_Colon_3_6219","======== Type reference directive '{0}' was successfully resolved to '{1}' with Package ID '{2}', primary: {3}. ========"),package_json_had_a_falsy_0_field:la(6220,3,"package_json_had_a_falsy_0_field_6220","'package.json' had a falsy '{0}' field."),Disable_use_of_source_files_instead_of_declaration_files_from_referenced_projects:la(6221,3,"Disable_use_of_source_files_instead_of_declaration_files_from_referenced_projects_6221","Disable use of source files instead of declaration files from referenced projects."),Emit_class_fields_with_Define_instead_of_Set:la(6222,3,"Emit_class_fields_with_Define_instead_of_Set_6222","Emit class fields with Define instead of Set."),Generates_a_CPU_profile:la(6223,3,"Generates_a_CPU_profile_6223","Generates a CPU profile."),Disable_solution_searching_for_this_project:la(6224,3,"Disable_solution_searching_for_this_project_6224","Disable solution searching for this project."),Specify_strategy_for_watching_file_Colon_FixedPollingInterval_default_PriorityPollingInterval_DynamicPriorityPolling_FixedChunkSizePolling_UseFsEvents_UseFsEventsOnParentDirectory:la(6225,3,"Specify_strategy_for_watching_file_Colon_FixedPollingInterval_default_PriorityPollingInterval_Dynami_6225","Specify strategy for watching file: 'FixedPollingInterval' (default), 'PriorityPollingInterval', 'DynamicPriorityPolling', 'FixedChunkSizePolling', 'UseFsEvents', 'UseFsEventsOnParentDirectory'."),Specify_strategy_for_watching_directory_on_platforms_that_don_t_support_recursive_watching_natively_Colon_UseFsEvents_default_FixedPollingInterval_DynamicPriorityPolling_FixedChunkSizePolling:la(6226,3,"Specify_strategy_for_watching_directory_on_platforms_that_don_t_support_recursive_watching_natively__6226","Specify strategy for watching directory on platforms that don't support recursive watching natively: 'UseFsEvents' (default), 'FixedPollingInterval', 'DynamicPriorityPolling', 'FixedChunkSizePolling'."),Specify_strategy_for_creating_a_polling_watch_when_it_fails_to_create_using_file_system_events_Colon_FixedInterval_default_PriorityInterval_DynamicPriority_FixedChunkSize:la(6227,3,"Specify_strategy_for_creating_a_polling_watch_when_it_fails_to_create_using_file_system_events_Colon_6227","Specify strategy for creating a polling watch when it fails to create using file system events: 'FixedInterval' (default), 'PriorityInterval', 'DynamicPriority', 'FixedChunkSize'."),Tag_0_expects_at_least_1_arguments_but_the_JSX_factory_2_provides_at_most_3:la(6229,1,"Tag_0_expects_at_least_1_arguments_but_the_JSX_factory_2_provides_at_most_3_6229","Tag '{0}' expects at least '{1}' arguments, but the JSX factory '{2}' provides at most '{3}'."),Option_0_can_only_be_specified_in_tsconfig_json_file_or_set_to_false_or_null_on_command_line:la(6230,1,"Option_0_can_only_be_specified_in_tsconfig_json_file_or_set_to_false_or_null_on_command_line_6230","Option '{0}' can only be specified in 'tsconfig.json' file or set to 'false' or 'null' on command line."),Could_not_resolve_the_path_0_with_the_extensions_Colon_1:la(6231,1,"Could_not_resolve_the_path_0_with_the_extensions_Colon_1_6231","Could not resolve the path '{0}' with the extensions: {1}."),Declaration_augments_declaration_in_another_file_This_cannot_be_serialized:la(6232,1,"Declaration_augments_declaration_in_another_file_This_cannot_be_serialized_6232","Declaration augments declaration in another file. This cannot be serialized."),This_is_the_declaration_being_augmented_Consider_moving_the_augmenting_declaration_into_the_same_file:la(6233,1,"This_is_the_declaration_being_augmented_Consider_moving_the_augmenting_declaration_into_the_same_fil_6233","This is the declaration being augmented. Consider moving the augmenting declaration into the same file."),This_expression_is_not_callable_because_it_is_a_get_accessor_Did_you_mean_to_use_it_without:la(6234,1,"This_expression_is_not_callable_because_it_is_a_get_accessor_Did_you_mean_to_use_it_without_6234","This expression is not callable because it is a 'get' accessor. Did you mean to use it without '()'?"),Disable_loading_referenced_projects:la(6235,3,"Disable_loading_referenced_projects_6235","Disable loading referenced projects."),Arguments_for_the_rest_parameter_0_were_not_provided:la(6236,1,"Arguments_for_the_rest_parameter_0_were_not_provided_6236","Arguments for the rest parameter '{0}' were not provided."),Generates_an_event_trace_and_a_list_of_types:la(6237,3,"Generates_an_event_trace_and_a_list_of_types_6237","Generates an event trace and a list of types."),Specify_the_module_specifier_to_be_used_to_import_the_jsx_and_jsxs_factory_functions_from_eg_react:la(6238,1,"Specify_the_module_specifier_to_be_used_to_import_the_jsx_and_jsxs_factory_functions_from_eg_react_6238","Specify the module specifier to be used to import the 'jsx' and 'jsxs' factory functions from. eg, react"),File_0_exists_according_to_earlier_cached_lookups:la(6239,3,"File_0_exists_according_to_earlier_cached_lookups_6239","File '{0}' exists according to earlier cached lookups."),File_0_does_not_exist_according_to_earlier_cached_lookups:la(6240,3,"File_0_does_not_exist_according_to_earlier_cached_lookups_6240","File '{0}' does not exist according to earlier cached lookups."),Resolution_for_type_reference_directive_0_was_found_in_cache_from_location_1:la(6241,3,"Resolution_for_type_reference_directive_0_was_found_in_cache_from_location_1_6241","Resolution for type reference directive '{0}' was found in cache from location '{1}'."),Resolving_type_reference_directive_0_containing_file_1:la(6242,3,"Resolving_type_reference_directive_0_containing_file_1_6242","======== Resolving type reference directive '{0}', containing file '{1}'. ========"),Interpret_optional_property_types_as_written_rather_than_adding_undefined:la(6243,3,"Interpret_optional_property_types_as_written_rather_than_adding_undefined_6243","Interpret optional property types as written, rather than adding 'undefined'."),Modules:la(6244,3,"Modules_6244","Modules"),File_Management:la(6245,3,"File_Management_6245","File Management"),Emit:la(6246,3,"Emit_6246","Emit"),JavaScript_Support:la(6247,3,"JavaScript_Support_6247","JavaScript Support"),Type_Checking:la(6248,3,"Type_Checking_6248","Type Checking"),Editor_Support:la(6249,3,"Editor_Support_6249","Editor Support"),Watch_and_Build_Modes:la(6250,3,"Watch_and_Build_Modes_6250","Watch and Build Modes"),Compiler_Diagnostics:la(6251,3,"Compiler_Diagnostics_6251","Compiler Diagnostics"),Interop_Constraints:la(6252,3,"Interop_Constraints_6252","Interop Constraints"),Backwards_Compatibility:la(6253,3,"Backwards_Compatibility_6253","Backwards Compatibility"),Language_and_Environment:la(6254,3,"Language_and_Environment_6254","Language and Environment"),Projects:la(6255,3,"Projects_6255","Projects"),Output_Formatting:la(6256,3,"Output_Formatting_6256","Output Formatting"),Completeness:la(6257,3,"Completeness_6257","Completeness"),_0_should_be_set_inside_the_compilerOptions_object_of_the_config_json_file:la(6258,1,"_0_should_be_set_inside_the_compilerOptions_object_of_the_config_json_file_6258","'{0}' should be set inside the 'compilerOptions' object of the config json file"),Found_1_error_in_0:la(6259,3,"Found_1_error_in_0_6259","Found 1 error in {0}"),Found_0_errors_in_the_same_file_starting_at_Colon_1:la(6260,3,"Found_0_errors_in_the_same_file_starting_at_Colon_1_6260","Found {0} errors in the same file, starting at: {1}"),Found_0_errors_in_1_files:la(6261,3,"Found_0_errors_in_1_files_6261","Found {0} errors in {1} files."),File_name_0_has_a_1_extension_looking_up_2_instead:la(6262,3,"File_name_0_has_a_1_extension_looking_up_2_instead_6262","File name '{0}' has a '{1}' extension - looking up '{2}' instead."),Module_0_was_resolved_to_1_but_allowArbitraryExtensions_is_not_set:la(6263,1,"Module_0_was_resolved_to_1_but_allowArbitraryExtensions_is_not_set_6263","Module '{0}' was resolved to '{1}', but '--allowArbitraryExtensions' is not set."),Enable_importing_files_with_any_extension_provided_a_declaration_file_is_present:la(6264,3,"Enable_importing_files_with_any_extension_provided_a_declaration_file_is_present_6264","Enable importing files with any extension, provided a declaration file is present."),Resolving_type_reference_directive_for_program_that_specifies_custom_typeRoots_skipping_lookup_in_node_modules_folder:la(6265,3,"Resolving_type_reference_directive_for_program_that_specifies_custom_typeRoots_skipping_lookup_in_no_6265","Resolving type reference directive for program that specifies custom typeRoots, skipping lookup in 'node_modules' folder."),Option_0_can_only_be_specified_on_command_line:la(6266,1,"Option_0_can_only_be_specified_on_command_line_6266","Option '{0}' can only be specified on command line."),Directory_0_has_no_containing_package_json_scope_Imports_will_not_resolve:la(6270,3,"Directory_0_has_no_containing_package_json_scope_Imports_will_not_resolve_6270","Directory '{0}' has no containing package.json scope. Imports will not resolve."),Import_specifier_0_does_not_exist_in_package_json_scope_at_path_1:la(6271,3,"Import_specifier_0_does_not_exist_in_package_json_scope_at_path_1_6271","Import specifier '{0}' does not exist in package.json scope at path '{1}'."),Invalid_import_specifier_0_has_no_possible_resolutions:la(6272,3,"Invalid_import_specifier_0_has_no_possible_resolutions_6272","Invalid import specifier '{0}' has no possible resolutions."),package_json_scope_0_has_no_imports_defined:la(6273,3,"package_json_scope_0_has_no_imports_defined_6273","package.json scope '{0}' has no imports defined."),package_json_scope_0_explicitly_maps_specifier_1_to_null:la(6274,3,"package_json_scope_0_explicitly_maps_specifier_1_to_null_6274","package.json scope '{0}' explicitly maps specifier '{1}' to null."),package_json_scope_0_has_invalid_type_for_target_of_specifier_1:la(6275,3,"package_json_scope_0_has_invalid_type_for_target_of_specifier_1_6275","package.json scope '{0}' has invalid type for target of specifier '{1}'"),Export_specifier_0_does_not_exist_in_package_json_scope_at_path_1:la(6276,3,"Export_specifier_0_does_not_exist_in_package_json_scope_at_path_1_6276","Export specifier '{0}' does not exist in package.json scope at path '{1}'."),Resolution_of_non_relative_name_failed_trying_with_modern_Node_resolution_features_disabled_to_see_if_npm_library_needs_configuration_update:la(6277,3,"Resolution_of_non_relative_name_failed_trying_with_modern_Node_resolution_features_disabled_to_see_i_6277","Resolution of non-relative name failed; trying with modern Node resolution features disabled to see if npm library needs configuration update."),There_are_types_at_0_but_this_result_could_not_be_resolved_when_respecting_package_json_exports_The_1_library_may_need_to_update_its_package_json_or_typings:la(6278,3,"There_are_types_at_0_but_this_result_could_not_be_resolved_when_respecting_package_json_exports_The__6278","There are types at '{0}', but this result could not be resolved when respecting package.json \"exports\". The '{1}' library may need to update its package.json or typings."),Resolution_of_non_relative_name_failed_trying_with_moduleResolution_bundler_to_see_if_project_may_need_configuration_update:la(6279,3,"Resolution_of_non_relative_name_failed_trying_with_moduleResolution_bundler_to_see_if_project_may_ne_6279","Resolution of non-relative name failed; trying with '--moduleResolution bundler' to see if project may need configuration update."),There_are_types_at_0_but_this_result_could_not_be_resolved_under_your_current_moduleResolution_setting_Consider_updating_to_node16_nodenext_or_bundler:la(6280,3,"There_are_types_at_0_but_this_result_could_not_be_resolved_under_your_current_moduleResolution_setti_6280","There are types at '{0}', but this result could not be resolved under your current 'moduleResolution' setting. Consider updating to 'node16', 'nodenext', or 'bundler'."),package_json_has_a_peerDependencies_field:la(6281,3,"package_json_has_a_peerDependencies_field_6281","'package.json' has a 'peerDependencies' field."),Found_peerDependency_0_with_1_version:la(6282,3,"Found_peerDependency_0_with_1_version_6282","Found peerDependency '{0}' with '{1}' version."),Failed_to_find_peerDependency_0:la(6283,3,"Failed_to_find_peerDependency_0_6283","Failed to find peerDependency '{0}'."),File_Layout:la(6284,3,"File_Layout_6284","File Layout"),Environment_Settings:la(6285,3,"Environment_Settings_6285","Environment Settings"),See_also_https_Colon_Slash_Slashaka_ms_Slashtsconfig_Slashmodule:la(6286,3,"See_also_https_Colon_Slash_Slashaka_ms_Slashtsconfig_Slashmodule_6286","See also https://aka.ms/tsconfig/module"),For_nodejs_Colon:la(6287,3,"For_nodejs_Colon_6287","For nodejs:"),and_npm_install_D_types_Slashnode:la(6290,3,"and_npm_install_D_types_Slashnode_6290","and npm install -D @types/node"),Other_Outputs:la(6291,3,"Other_Outputs_6291","Other Outputs"),Stricter_Typechecking_Options:la(6292,3,"Stricter_Typechecking_Options_6292","Stricter Typechecking Options"),Style_Options:la(6293,3,"Style_Options_6293","Style Options"),Recommended_Options:la(6294,3,"Recommended_Options_6294","Recommended Options"),Enable_project_compilation:la(6302,3,"Enable_project_compilation_6302","Enable project compilation"),Composite_projects_may_not_disable_declaration_emit:la(6304,1,"Composite_projects_may_not_disable_declaration_emit_6304","Composite projects may not disable declaration emit."),Output_file_0_has_not_been_built_from_source_file_1:la(6305,1,"Output_file_0_has_not_been_built_from_source_file_1_6305","Output file '{0}' has not been built from source file '{1}'."),Referenced_project_0_must_have_setting_composite_Colon_true:la(6306,1,"Referenced_project_0_must_have_setting_composite_Colon_true_6306","Referenced project '{0}' must have setting \"composite\": true."),File_0_is_not_listed_within_the_file_list_of_project_1_Projects_must_list_all_files_or_use_an_include_pattern:la(6307,1,"File_0_is_not_listed_within_the_file_list_of_project_1_Projects_must_list_all_files_or_use_an_includ_6307","File '{0}' is not listed within the file list of project '{1}'. Projects must list all files or use an 'include' pattern."),Referenced_project_0_may_not_disable_emit:la(6310,1,"Referenced_project_0_may_not_disable_emit_6310","Referenced project '{0}' may not disable emit."),Project_0_is_out_of_date_because_output_1_is_older_than_input_2:la(6350,3,"Project_0_is_out_of_date_because_output_1_is_older_than_input_2_6350","Project '{0}' is out of date because output '{1}' is older than input '{2}'"),Project_0_is_up_to_date_because_newest_input_1_is_older_than_output_2:la(6351,3,"Project_0_is_up_to_date_because_newest_input_1_is_older_than_output_2_6351","Project '{0}' is up to date because newest input '{1}' is older than output '{2}'"),Project_0_is_out_of_date_because_output_file_1_does_not_exist:la(6352,3,"Project_0_is_out_of_date_because_output_file_1_does_not_exist_6352","Project '{0}' is out of date because output file '{1}' does not exist"),Project_0_is_out_of_date_because_its_dependency_1_is_out_of_date:la(6353,3,"Project_0_is_out_of_date_because_its_dependency_1_is_out_of_date_6353","Project '{0}' is out of date because its dependency '{1}' is out of date"),Project_0_is_up_to_date_with_d_ts_files_from_its_dependencies:la(6354,3,"Project_0_is_up_to_date_with_d_ts_files_from_its_dependencies_6354","Project '{0}' is up to date with .d.ts files from its dependencies"),Projects_in_this_build_Colon_0:la(6355,3,"Projects_in_this_build_Colon_0_6355","Projects in this build: {0}"),A_non_dry_build_would_delete_the_following_files_Colon_0:la(6356,3,"A_non_dry_build_would_delete_the_following_files_Colon_0_6356","A non-dry build would delete the following files: {0}"),A_non_dry_build_would_build_project_0:la(6357,3,"A_non_dry_build_would_build_project_0_6357","A non-dry build would build project '{0}'"),Building_project_0:la(6358,3,"Building_project_0_6358","Building project '{0}'..."),Updating_output_timestamps_of_project_0:la(6359,3,"Updating_output_timestamps_of_project_0_6359","Updating output timestamps of project '{0}'..."),Project_0_is_up_to_date:la(6361,3,"Project_0_is_up_to_date_6361","Project '{0}' is up to date"),Skipping_build_of_project_0_because_its_dependency_1_has_errors:la(6362,3,"Skipping_build_of_project_0_because_its_dependency_1_has_errors_6362","Skipping build of project '{0}' because its dependency '{1}' has errors"),Project_0_can_t_be_built_because_its_dependency_1_has_errors:la(6363,3,"Project_0_can_t_be_built_because_its_dependency_1_has_errors_6363","Project '{0}' can't be built because its dependency '{1}' has errors"),Build_one_or_more_projects_and_their_dependencies_if_out_of_date:la(6364,3,"Build_one_or_more_projects_and_their_dependencies_if_out_of_date_6364","Build one or more projects and their dependencies, if out of date"),Delete_the_outputs_of_all_projects:la(6365,3,"Delete_the_outputs_of_all_projects_6365","Delete the outputs of all projects."),Show_what_would_be_built_or_deleted_if_specified_with_clean:la(6367,3,"Show_what_would_be_built_or_deleted_if_specified_with_clean_6367","Show what would be built (or deleted, if specified with '--clean')"),Option_build_must_be_the_first_command_line_argument:la(6369,1,"Option_build_must_be_the_first_command_line_argument_6369","Option '--build' must be the first command line argument."),Options_0_and_1_cannot_be_combined:la(6370,1,"Options_0_and_1_cannot_be_combined_6370","Options '{0}' and '{1}' cannot be combined."),Updating_unchanged_output_timestamps_of_project_0:la(6371,3,"Updating_unchanged_output_timestamps_of_project_0_6371","Updating unchanged output timestamps of project '{0}'..."),A_non_dry_build_would_update_timestamps_for_output_of_project_0:la(6374,3,"A_non_dry_build_would_update_timestamps_for_output_of_project_0_6374","A non-dry build would update timestamps for output of project '{0}'"),Cannot_write_file_0_because_it_will_overwrite_tsbuildinfo_file_generated_by_referenced_project_1:la(6377,1,"Cannot_write_file_0_because_it_will_overwrite_tsbuildinfo_file_generated_by_referenced_project_1_6377","Cannot write file '{0}' because it will overwrite '.tsbuildinfo' file generated by referenced project '{1}'"),Composite_projects_may_not_disable_incremental_compilation:la(6379,1,"Composite_projects_may_not_disable_incremental_compilation_6379","Composite projects may not disable incremental compilation."),Specify_file_to_store_incremental_compilation_information:la(6380,3,"Specify_file_to_store_incremental_compilation_information_6380","Specify file to store incremental compilation information"),Project_0_is_out_of_date_because_output_for_it_was_generated_with_version_1_that_differs_with_current_version_2:la(6381,3,"Project_0_is_out_of_date_because_output_for_it_was_generated_with_version_1_that_differs_with_curren_6381","Project '{0}' is out of date because output for it was generated with version '{1}' that differs with current version '{2}'"),Skipping_build_of_project_0_because_its_dependency_1_was_not_built:la(6382,3,"Skipping_build_of_project_0_because_its_dependency_1_was_not_built_6382","Skipping build of project '{0}' because its dependency '{1}' was not built"),Project_0_can_t_be_built_because_its_dependency_1_was_not_built:la(6383,3,"Project_0_can_t_be_built_because_its_dependency_1_was_not_built_6383","Project '{0}' can't be built because its dependency '{1}' was not built"),Have_recompiles_in_incremental_and_watch_assume_that_changes_within_a_file_will_only_affect_files_directly_depending_on_it:la(6384,3,"Have_recompiles_in_incremental_and_watch_assume_that_changes_within_a_file_will_only_affect_files_di_6384","Have recompiles in '--incremental' and '--watch' assume that changes within a file will only affect files directly depending on it."),_0_is_deprecated:la(6385,2,"_0_is_deprecated_6385","'{0}' is deprecated.",void 0,void 0,!0),Performance_timings_for_diagnostics_or_extendedDiagnostics_are_not_available_in_this_session_A_native_implementation_of_the_Web_Performance_API_could_not_be_found:la(6386,3,"Performance_timings_for_diagnostics_or_extendedDiagnostics_are_not_available_in_this_session_A_nativ_6386","Performance timings for '--diagnostics' or '--extendedDiagnostics' are not available in this session. A native implementation of the Web Performance API could not be found."),The_signature_0_of_1_is_deprecated:la(6387,2,"The_signature_0_of_1_is_deprecated_6387","The signature '{0}' of '{1}' is deprecated.",void 0,void 0,!0),Project_0_is_being_forcibly_rebuilt:la(6388,3,"Project_0_is_being_forcibly_rebuilt_6388","Project '{0}' is being forcibly rebuilt"),Reusing_resolution_of_module_0_from_1_of_old_program_it_was_not_resolved:la(6389,3,"Reusing_resolution_of_module_0_from_1_of_old_program_it_was_not_resolved_6389","Reusing resolution of module '{0}' from '{1}' of old program, it was not resolved."),Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_successfully_resolved_to_2:la(6390,3,"Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_successfully_resolved__6390","Reusing resolution of type reference directive '{0}' from '{1}' of old program, it was successfully resolved to '{2}'."),Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_successfully_resolved_to_2_with_Package_ID_3:la(6391,3,"Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_successfully_resolved__6391","Reusing resolution of type reference directive '{0}' from '{1}' of old program, it was successfully resolved to '{2}' with Package ID '{3}'."),Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_not_resolved:la(6392,3,"Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_not_resolved_6392","Reusing resolution of type reference directive '{0}' from '{1}' of old program, it was not resolved."),Reusing_resolution_of_module_0_from_1_found_in_cache_from_location_2_it_was_successfully_resolved_to_3:la(6393,3,"Reusing_resolution_of_module_0_from_1_found_in_cache_from_location_2_it_was_successfully_resolved_to_6393","Reusing resolution of module '{0}' from '{1}' found in cache from location '{2}', it was successfully resolved to '{3}'."),Reusing_resolution_of_module_0_from_1_found_in_cache_from_location_2_it_was_successfully_resolved_to_3_with_Package_ID_4:la(6394,3,"Reusing_resolution_of_module_0_from_1_found_in_cache_from_location_2_it_was_successfully_resolved_to_6394","Reusing resolution of module '{0}' from '{1}' found in cache from location '{2}', it was successfully resolved to '{3}' with Package ID '{4}'."),Reusing_resolution_of_module_0_from_1_found_in_cache_from_location_2_it_was_not_resolved:la(6395,3,"Reusing_resolution_of_module_0_from_1_found_in_cache_from_location_2_it_was_not_resolved_6395","Reusing resolution of module '{0}' from '{1}' found in cache from location '{2}', it was not resolved."),Reusing_resolution_of_type_reference_directive_0_from_1_found_in_cache_from_location_2_it_was_successfully_resolved_to_3:la(6396,3,"Reusing_resolution_of_type_reference_directive_0_from_1_found_in_cache_from_location_2_it_was_succes_6396","Reusing resolution of type reference directive '{0}' from '{1}' found in cache from location '{2}', it was successfully resolved to '{3}'."),Reusing_resolution_of_type_reference_directive_0_from_1_found_in_cache_from_location_2_it_was_successfully_resolved_to_3_with_Package_ID_4:la(6397,3,"Reusing_resolution_of_type_reference_directive_0_from_1_found_in_cache_from_location_2_it_was_succes_6397","Reusing resolution of type reference directive '{0}' from '{1}' found in cache from location '{2}', it was successfully resolved to '{3}' with Package ID '{4}'."),Reusing_resolution_of_type_reference_directive_0_from_1_found_in_cache_from_location_2_it_was_not_resolved:la(6398,3,"Reusing_resolution_of_type_reference_directive_0_from_1_found_in_cache_from_location_2_it_was_not_re_6398","Reusing resolution of type reference directive '{0}' from '{1}' found in cache from location '{2}', it was not resolved."),Project_0_is_out_of_date_because_buildinfo_file_1_indicates_that_some_of_the_changes_were_not_emitted:la(6399,3,"Project_0_is_out_of_date_because_buildinfo_file_1_indicates_that_some_of_the_changes_were_not_emitte_6399","Project '{0}' is out of date because buildinfo file '{1}' indicates that some of the changes were not emitted"),Project_0_is_up_to_date_but_needs_to_update_timestamps_of_output_files_that_are_older_than_input_files:la(6400,3,"Project_0_is_up_to_date_but_needs_to_update_timestamps_of_output_files_that_are_older_than_input_fil_6400","Project '{0}' is up to date but needs to update timestamps of output files that are older than input files"),Project_0_is_out_of_date_because_there_was_error_reading_file_1:la(6401,3,"Project_0_is_out_of_date_because_there_was_error_reading_file_1_6401","Project '{0}' is out of date because there was error reading file '{1}'"),Resolving_in_0_mode_with_conditions_1:la(6402,3,"Resolving_in_0_mode_with_conditions_1_6402","Resolving in {0} mode with conditions {1}."),Matched_0_condition_1:la(6403,3,"Matched_0_condition_1_6403","Matched '{0}' condition '{1}'."),Using_0_subpath_1_with_target_2:la(6404,3,"Using_0_subpath_1_with_target_2_6404","Using '{0}' subpath '{1}' with target '{2}'."),Saw_non_matching_condition_0:la(6405,3,"Saw_non_matching_condition_0_6405","Saw non-matching condition '{0}'."),Project_0_is_out_of_date_because_buildinfo_file_1_indicates_there_is_change_in_compilerOptions:la(6406,3,"Project_0_is_out_of_date_because_buildinfo_file_1_indicates_there_is_change_in_compilerOptions_6406","Project '{0}' is out of date because buildinfo file '{1}' indicates there is change in compilerOptions"),Allow_imports_to_include_TypeScript_file_extensions_Requires_moduleResolution_bundler_and_either_noEmit_or_emitDeclarationOnly_to_be_set:la(6407,3,"Allow_imports_to_include_TypeScript_file_extensions_Requires_moduleResolution_bundler_and_either_noE_6407","Allow imports to include TypeScript file extensions. Requires '--moduleResolution bundler' and either '--noEmit' or '--emitDeclarationOnly' to be set."),Use_the_package_json_exports_field_when_resolving_package_imports:la(6408,3,"Use_the_package_json_exports_field_when_resolving_package_imports_6408","Use the package.json 'exports' field when resolving package imports."),Use_the_package_json_imports_field_when_resolving_imports:la(6409,3,"Use_the_package_json_imports_field_when_resolving_imports_6409","Use the package.json 'imports' field when resolving imports."),Conditions_to_set_in_addition_to_the_resolver_specific_defaults_when_resolving_imports:la(6410,3,"Conditions_to_set_in_addition_to_the_resolver_specific_defaults_when_resolving_imports_6410","Conditions to set in addition to the resolver-specific defaults when resolving imports."),true_when_moduleResolution_is_node16_nodenext_or_bundler_otherwise_false:la(6411,3,"true_when_moduleResolution_is_node16_nodenext_or_bundler_otherwise_false_6411","`true` when 'moduleResolution' is 'node16', 'nodenext', or 'bundler'; otherwise `false`."),Project_0_is_out_of_date_because_buildinfo_file_1_indicates_that_file_2_was_root_file_of_compilation_but_not_any_more:la(6412,3,"Project_0_is_out_of_date_because_buildinfo_file_1_indicates_that_file_2_was_root_file_of_compilation_6412","Project '{0}' is out of date because buildinfo file '{1}' indicates that file '{2}' was root file of compilation but not any more."),Entering_conditional_exports:la(6413,3,"Entering_conditional_exports_6413","Entering conditional exports."),Resolved_under_condition_0:la(6414,3,"Resolved_under_condition_0_6414","Resolved under condition '{0}'."),Failed_to_resolve_under_condition_0:la(6415,3,"Failed_to_resolve_under_condition_0_6415","Failed to resolve under condition '{0}'."),Exiting_conditional_exports:la(6416,3,"Exiting_conditional_exports_6416","Exiting conditional exports."),Searching_all_ancestor_node_modules_directories_for_preferred_extensions_Colon_0:la(6417,3,"Searching_all_ancestor_node_modules_directories_for_preferred_extensions_Colon_0_6417","Searching all ancestor node_modules directories for preferred extensions: {0}."),Searching_all_ancestor_node_modules_directories_for_fallback_extensions_Colon_0:la(6418,3,"Searching_all_ancestor_node_modules_directories_for_fallback_extensions_Colon_0_6418","Searching all ancestor node_modules directories for fallback extensions: {0}."),Project_0_is_out_of_date_because_buildinfo_file_1_indicates_that_program_needs_to_report_errors:la(6419,3,"Project_0_is_out_of_date_because_buildinfo_file_1_indicates_that_program_needs_to_report_errors_6419","Project '{0}' is out of date because buildinfo file '{1}' indicates that program needs to report errors."),Project_0_is_out_of_date_because_1:la(6420,3,"Project_0_is_out_of_date_because_1_6420","Project '{0}' is out of date because {1}."),Rewrite_ts_tsx_mts_and_cts_file_extensions_in_relative_import_paths_to_their_JavaScript_equivalent_in_output_files:la(6421,3,"Rewrite_ts_tsx_mts_and_cts_file_extensions_in_relative_import_paths_to_their_JavaScript_equivalent_i_6421","Rewrite '.ts', '.tsx', '.mts', and '.cts' file extensions in relative import paths to their JavaScript equivalent in output files."),The_expected_type_comes_from_property_0_which_is_declared_here_on_type_1:la(6500,3,"The_expected_type_comes_from_property_0_which_is_declared_here_on_type_1_6500","The expected type comes from property '{0}' which is declared here on type '{1}'"),The_expected_type_comes_from_this_index_signature:la(6501,3,"The_expected_type_comes_from_this_index_signature_6501","The expected type comes from this index signature."),The_expected_type_comes_from_the_return_type_of_this_signature:la(6502,3,"The_expected_type_comes_from_the_return_type_of_this_signature_6502","The expected type comes from the return type of this signature."),Print_names_of_files_that_are_part_of_the_compilation_and_then_stop_processing:la(6503,3,"Print_names_of_files_that_are_part_of_the_compilation_and_then_stop_processing_6503","Print names of files that are part of the compilation and then stop processing."),File_0_is_a_JavaScript_file_Did_you_mean_to_enable_the_allowJs_option:la(6504,1,"File_0_is_a_JavaScript_file_Did_you_mean_to_enable_the_allowJs_option_6504","File '{0}' is a JavaScript file. Did you mean to enable the 'allowJs' option?"),Print_names_of_files_and_the_reason_they_are_part_of_the_compilation:la(6505,3,"Print_names_of_files_and_the_reason_they_are_part_of_the_compilation_6505","Print names of files and the reason they are part of the compilation."),Consider_adding_a_declare_modifier_to_this_class:la(6506,3,"Consider_adding_a_declare_modifier_to_this_class_6506","Consider adding a 'declare' modifier to this class."),Allow_JavaScript_files_to_be_a_part_of_your_program_Use_the_checkJs_option_to_get_errors_from_these_files:la(6600,3,"Allow_JavaScript_files_to_be_a_part_of_your_program_Use_the_checkJs_option_to_get_errors_from_these__6600","Allow JavaScript files to be a part of your program. Use the 'checkJs' option to get errors from these files."),Allow_import_x_from_y_when_a_module_doesn_t_have_a_default_export:la(6601,3,"Allow_import_x_from_y_when_a_module_doesn_t_have_a_default_export_6601","Allow 'import x from y' when a module doesn't have a default export."),Allow_accessing_UMD_globals_from_modules:la(6602,3,"Allow_accessing_UMD_globals_from_modules_6602","Allow accessing UMD globals from modules."),Disable_error_reporting_for_unreachable_code:la(6603,3,"Disable_error_reporting_for_unreachable_code_6603","Disable error reporting for unreachable code."),Disable_error_reporting_for_unused_labels:la(6604,3,"Disable_error_reporting_for_unused_labels_6604","Disable error reporting for unused labels."),Ensure_use_strict_is_always_emitted:la(6605,3,"Ensure_use_strict_is_always_emitted_6605","Ensure 'use strict' is always emitted."),Have_recompiles_in_projects_that_use_incremental_and_watch_mode_assume_that_changes_within_a_file_will_only_affect_files_directly_depending_on_it:la(6606,3,"Have_recompiles_in_projects_that_use_incremental_and_watch_mode_assume_that_changes_within_a_file_wi_6606","Have recompiles in projects that use 'incremental' and 'watch' mode assume that changes within a file will only affect files directly depending on it."),Specify_the_base_directory_to_resolve_non_relative_module_names:la(6607,3,"Specify_the_base_directory_to_resolve_non_relative_module_names_6607","Specify the base directory to resolve non-relative module names."),No_longer_supported_In_early_versions_manually_set_the_text_encoding_for_reading_files:la(6608,3,"No_longer_supported_In_early_versions_manually_set_the_text_encoding_for_reading_files_6608","No longer supported. In early versions, manually set the text encoding for reading files."),Enable_error_reporting_in_type_checked_JavaScript_files:la(6609,3,"Enable_error_reporting_in_type_checked_JavaScript_files_6609","Enable error reporting in type-checked JavaScript files."),Enable_constraints_that_allow_a_TypeScript_project_to_be_used_with_project_references:la(6611,3,"Enable_constraints_that_allow_a_TypeScript_project_to_be_used_with_project_references_6611","Enable constraints that allow a TypeScript project to be used with project references."),Generate_d_ts_files_from_TypeScript_and_JavaScript_files_in_your_project:la(6612,3,"Generate_d_ts_files_from_TypeScript_and_JavaScript_files_in_your_project_6612","Generate .d.ts files from TypeScript and JavaScript files in your project."),Specify_the_output_directory_for_generated_declaration_files:la(6613,3,"Specify_the_output_directory_for_generated_declaration_files_6613","Specify the output directory for generated declaration files."),Create_sourcemaps_for_d_ts_files:la(6614,3,"Create_sourcemaps_for_d_ts_files_6614","Create sourcemaps for d.ts files."),Output_compiler_performance_information_after_building:la(6615,3,"Output_compiler_performance_information_after_building_6615","Output compiler performance information after building."),Disables_inference_for_type_acquisition_by_looking_at_filenames_in_a_project:la(6616,3,"Disables_inference_for_type_acquisition_by_looking_at_filenames_in_a_project_6616","Disables inference for type acquisition by looking at filenames in a project."),Reduce_the_number_of_projects_loaded_automatically_by_TypeScript:la(6617,3,"Reduce_the_number_of_projects_loaded_automatically_by_TypeScript_6617","Reduce the number of projects loaded automatically by TypeScript."),Remove_the_20mb_cap_on_total_source_code_size_for_JavaScript_files_in_the_TypeScript_language_server:la(6618,3,"Remove_the_20mb_cap_on_total_source_code_size_for_JavaScript_files_in_the_TypeScript_language_server_6618","Remove the 20mb cap on total source code size for JavaScript files in the TypeScript language server."),Opt_a_project_out_of_multi_project_reference_checking_when_editing:la(6619,3,"Opt_a_project_out_of_multi_project_reference_checking_when_editing_6619","Opt a project out of multi-project reference checking when editing."),Disable_preferring_source_files_instead_of_declaration_files_when_referencing_composite_projects:la(6620,3,"Disable_preferring_source_files_instead_of_declaration_files_when_referencing_composite_projects_6620","Disable preferring source files instead of declaration files when referencing composite projects."),Emit_more_compliant_but_verbose_and_less_performant_JavaScript_for_iteration:la(6621,3,"Emit_more_compliant_but_verbose_and_less_performant_JavaScript_for_iteration_6621","Emit more compliant, but verbose and less performant JavaScript for iteration."),Emit_a_UTF_8_Byte_Order_Mark_BOM_in_the_beginning_of_output_files:la(6622,3,"Emit_a_UTF_8_Byte_Order_Mark_BOM_in_the_beginning_of_output_files_6622","Emit a UTF-8 Byte Order Mark (BOM) in the beginning of output files."),Only_output_d_ts_files_and_not_JavaScript_files:la(6623,3,"Only_output_d_ts_files_and_not_JavaScript_files_6623","Only output d.ts files and not JavaScript files."),Emit_design_type_metadata_for_decorated_declarations_in_source_files:la(6624,3,"Emit_design_type_metadata_for_decorated_declarations_in_source_files_6624","Emit design-type metadata for decorated declarations in source files."),Disable_the_type_acquisition_for_JavaScript_projects:la(6625,3,"Disable_the_type_acquisition_for_JavaScript_projects_6625","Disable the type acquisition for JavaScript projects"),Emit_additional_JavaScript_to_ease_support_for_importing_CommonJS_modules_This_enables_allowSyntheticDefaultImports_for_type_compatibility:la(6626,3,"Emit_additional_JavaScript_to_ease_support_for_importing_CommonJS_modules_This_enables_allowSyntheti_6626","Emit additional JavaScript to ease support for importing CommonJS modules. This enables 'allowSyntheticDefaultImports' for type compatibility."),Filters_results_from_the_include_option:la(6627,3,"Filters_results_from_the_include_option_6627","Filters results from the `include` option."),Remove_a_list_of_directories_from_the_watch_process:la(6628,3,"Remove_a_list_of_directories_from_the_watch_process_6628","Remove a list of directories from the watch process."),Remove_a_list_of_files_from_the_watch_mode_s_processing:la(6629,3,"Remove_a_list_of_files_from_the_watch_mode_s_processing_6629","Remove a list of files from the watch mode's processing."),Enable_experimental_support_for_legacy_experimental_decorators:la(6630,3,"Enable_experimental_support_for_legacy_experimental_decorators_6630","Enable experimental support for legacy experimental decorators."),Print_files_read_during_the_compilation_including_why_it_was_included:la(6631,3,"Print_files_read_during_the_compilation_including_why_it_was_included_6631","Print files read during the compilation including why it was included."),Output_more_detailed_compiler_performance_information_after_building:la(6632,3,"Output_more_detailed_compiler_performance_information_after_building_6632","Output more detailed compiler performance information after building."),Specify_one_or_more_path_or_node_module_references_to_base_configuration_files_from_which_settings_are_inherited:la(6633,3,"Specify_one_or_more_path_or_node_module_references_to_base_configuration_files_from_which_settings_a_6633","Specify one or more path or node module references to base configuration files from which settings are inherited."),Specify_what_approach_the_watcher_should_use_if_the_system_runs_out_of_native_file_watchers:la(6634,3,"Specify_what_approach_the_watcher_should_use_if_the_system_runs_out_of_native_file_watchers_6634","Specify what approach the watcher should use if the system runs out of native file watchers."),Include_a_list_of_files_This_does_not_support_glob_patterns_as_opposed_to_include:la(6635,3,"Include_a_list_of_files_This_does_not_support_glob_patterns_as_opposed_to_include_6635","Include a list of files. This does not support glob patterns, as opposed to `include`."),Build_all_projects_including_those_that_appear_to_be_up_to_date:la(6636,3,"Build_all_projects_including_those_that_appear_to_be_up_to_date_6636","Build all projects, including those that appear to be up to date."),Ensure_that_casing_is_correct_in_imports:la(6637,3,"Ensure_that_casing_is_correct_in_imports_6637","Ensure that casing is correct in imports."),Emit_a_v8_CPU_profile_of_the_compiler_run_for_debugging:la(6638,3,"Emit_a_v8_CPU_profile_of_the_compiler_run_for_debugging_6638","Emit a v8 CPU profile of the compiler run for debugging."),Allow_importing_helper_functions_from_tslib_once_per_project_instead_of_including_them_per_file:la(6639,3,"Allow_importing_helper_functions_from_tslib_once_per_project_instead_of_including_them_per_file_6639","Allow importing helper functions from tslib once per project, instead of including them per-file."),Skip_building_downstream_projects_on_error_in_upstream_project:la(6640,3,"Skip_building_downstream_projects_on_error_in_upstream_project_6640","Skip building downstream projects on error in upstream project."),Specify_a_list_of_glob_patterns_that_match_files_to_be_included_in_compilation:la(6641,3,"Specify_a_list_of_glob_patterns_that_match_files_to_be_included_in_compilation_6641","Specify a list of glob patterns that match files to be included in compilation."),Save_tsbuildinfo_files_to_allow_for_incremental_compilation_of_projects:la(6642,3,"Save_tsbuildinfo_files_to_allow_for_incremental_compilation_of_projects_6642","Save .tsbuildinfo files to allow for incremental compilation of projects."),Include_sourcemap_files_inside_the_emitted_JavaScript:la(6643,3,"Include_sourcemap_files_inside_the_emitted_JavaScript_6643","Include sourcemap files inside the emitted JavaScript."),Include_source_code_in_the_sourcemaps_inside_the_emitted_JavaScript:la(6644,3,"Include_source_code_in_the_sourcemaps_inside_the_emitted_JavaScript_6644","Include source code in the sourcemaps inside the emitted JavaScript."),Ensure_that_each_file_can_be_safely_transpiled_without_relying_on_other_imports:la(6645,3,"Ensure_that_each_file_can_be_safely_transpiled_without_relying_on_other_imports_6645","Ensure that each file can be safely transpiled without relying on other imports."),Specify_what_JSX_code_is_generated:la(6646,3,"Specify_what_JSX_code_is_generated_6646","Specify what JSX code is generated."),Specify_the_JSX_factory_function_used_when_targeting_React_JSX_emit_e_g_React_createElement_or_h:la(6647,3,"Specify_the_JSX_factory_function_used_when_targeting_React_JSX_emit_e_g_React_createElement_or_h_6647","Specify the JSX factory function used when targeting React JSX emit, e.g. 'React.createElement' or 'h'."),Specify_the_JSX_Fragment_reference_used_for_fragments_when_targeting_React_JSX_emit_e_g_React_Fragment_or_Fragment:la(6648,3,"Specify_the_JSX_Fragment_reference_used_for_fragments_when_targeting_React_JSX_emit_e_g_React_Fragme_6648","Specify the JSX Fragment reference used for fragments when targeting React JSX emit e.g. 'React.Fragment' or 'Fragment'."),Specify_module_specifier_used_to_import_the_JSX_factory_functions_when_using_jsx_Colon_react_jsx_Asterisk:la(6649,3,"Specify_module_specifier_used_to_import_the_JSX_factory_functions_when_using_jsx_Colon_react_jsx_Ast_6649","Specify module specifier used to import the JSX factory functions when using 'jsx: react-jsx*'."),Make_keyof_only_return_strings_instead_of_string_numbers_or_symbols_Legacy_option:la(6650,3,"Make_keyof_only_return_strings_instead_of_string_numbers_or_symbols_Legacy_option_6650","Make keyof only return strings instead of string, numbers or symbols. Legacy option."),Specify_a_set_of_bundled_library_declaration_files_that_describe_the_target_runtime_environment:la(6651,3,"Specify_a_set_of_bundled_library_declaration_files_that_describe_the_target_runtime_environment_6651","Specify a set of bundled library declaration files that describe the target runtime environment."),Print_the_names_of_emitted_files_after_a_compilation:la(6652,3,"Print_the_names_of_emitted_files_after_a_compilation_6652","Print the names of emitted files after a compilation."),Print_all_of_the_files_read_during_the_compilation:la(6653,3,"Print_all_of_the_files_read_during_the_compilation_6653","Print all of the files read during the compilation."),Set_the_language_of_the_messaging_from_TypeScript_This_does_not_affect_emit:la(6654,3,"Set_the_language_of_the_messaging_from_TypeScript_This_does_not_affect_emit_6654","Set the language of the messaging from TypeScript. This does not affect emit."),Specify_the_location_where_debugger_should_locate_map_files_instead_of_generated_locations:la(6655,3,"Specify_the_location_where_debugger_should_locate_map_files_instead_of_generated_locations_6655","Specify the location where debugger should locate map files instead of generated locations."),Specify_the_maximum_folder_depth_used_for_checking_JavaScript_files_from_node_modules_Only_applicable_with_allowJs:la(6656,3,"Specify_the_maximum_folder_depth_used_for_checking_JavaScript_files_from_node_modules_Only_applicabl_6656","Specify the maximum folder depth used for checking JavaScript files from 'node_modules'. Only applicable with 'allowJs'."),Specify_what_module_code_is_generated:la(6657,3,"Specify_what_module_code_is_generated_6657","Specify what module code is generated."),Specify_how_TypeScript_looks_up_a_file_from_a_given_module_specifier:la(6658,3,"Specify_how_TypeScript_looks_up_a_file_from_a_given_module_specifier_6658","Specify how TypeScript looks up a file from a given module specifier."),Set_the_newline_character_for_emitting_files:la(6659,3,"Set_the_newline_character_for_emitting_files_6659","Set the newline character for emitting files."),Disable_emitting_files_from_a_compilation:la(6660,3,"Disable_emitting_files_from_a_compilation_6660","Disable emitting files from a compilation."),Disable_generating_custom_helper_functions_like_extends_in_compiled_output:la(6661,3,"Disable_generating_custom_helper_functions_like_extends_in_compiled_output_6661","Disable generating custom helper functions like '__extends' in compiled output."),Disable_emitting_files_if_any_type_checking_errors_are_reported:la(6662,3,"Disable_emitting_files_if_any_type_checking_errors_are_reported_6662","Disable emitting files if any type checking errors are reported."),Disable_truncating_types_in_error_messages:la(6663,3,"Disable_truncating_types_in_error_messages_6663","Disable truncating types in error messages."),Enable_error_reporting_for_fallthrough_cases_in_switch_statements:la(6664,3,"Enable_error_reporting_for_fallthrough_cases_in_switch_statements_6664","Enable error reporting for fallthrough cases in switch statements."),Enable_error_reporting_for_expressions_and_declarations_with_an_implied_any_type:la(6665,3,"Enable_error_reporting_for_expressions_and_declarations_with_an_implied_any_type_6665","Enable error reporting for expressions and declarations with an implied 'any' type."),Ensure_overriding_members_in_derived_classes_are_marked_with_an_override_modifier:la(6666,3,"Ensure_overriding_members_in_derived_classes_are_marked_with_an_override_modifier_6666","Ensure overriding members in derived classes are marked with an override modifier."),Enable_error_reporting_for_codepaths_that_do_not_explicitly_return_in_a_function:la(6667,3,"Enable_error_reporting_for_codepaths_that_do_not_explicitly_return_in_a_function_6667","Enable error reporting for codepaths that do not explicitly return in a function."),Enable_error_reporting_when_this_is_given_the_type_any:la(6668,3,"Enable_error_reporting_when_this_is_given_the_type_any_6668","Enable error reporting when 'this' is given the type 'any'."),Disable_adding_use_strict_directives_in_emitted_JavaScript_files:la(6669,3,"Disable_adding_use_strict_directives_in_emitted_JavaScript_files_6669","Disable adding 'use strict' directives in emitted JavaScript files."),Disable_including_any_library_files_including_the_default_lib_d_ts:la(6670,3,"Disable_including_any_library_files_including_the_default_lib_d_ts_6670","Disable including any library files, including the default lib.d.ts."),Enforces_using_indexed_accessors_for_keys_declared_using_an_indexed_type:la(6671,3,"Enforces_using_indexed_accessors_for_keys_declared_using_an_indexed_type_6671","Enforces using indexed accessors for keys declared using an indexed type."),Disallow_import_s_require_s_or_reference_s_from_expanding_the_number_of_files_TypeScript_should_add_to_a_project:la(6672,3,"Disallow_import_s_require_s_or_reference_s_from_expanding_the_number_of_files_TypeScript_should_add__6672","Disallow 'import's, 'require's or ''s from expanding the number of files TypeScript should add to a project."),Disable_strict_checking_of_generic_signatures_in_function_types:la(6673,3,"Disable_strict_checking_of_generic_signatures_in_function_types_6673","Disable strict checking of generic signatures in function types."),Add_undefined_to_a_type_when_accessed_using_an_index:la(6674,3,"Add_undefined_to_a_type_when_accessed_using_an_index_6674","Add 'undefined' to a type when accessed using an index."),Enable_error_reporting_when_local_variables_aren_t_read:la(6675,3,"Enable_error_reporting_when_local_variables_aren_t_read_6675","Enable error reporting when local variables aren't read."),Raise_an_error_when_a_function_parameter_isn_t_read:la(6676,3,"Raise_an_error_when_a_function_parameter_isn_t_read_6676","Raise an error when a function parameter isn't read."),Deprecated_setting_Use_outFile_instead:la(6677,3,"Deprecated_setting_Use_outFile_instead_6677","Deprecated setting. Use 'outFile' instead."),Specify_an_output_folder_for_all_emitted_files:la(6678,3,"Specify_an_output_folder_for_all_emitted_files_6678","Specify an output folder for all emitted files."),Specify_a_file_that_bundles_all_outputs_into_one_JavaScript_file_If_declaration_is_true_also_designates_a_file_that_bundles_all_d_ts_output:la(6679,3,"Specify_a_file_that_bundles_all_outputs_into_one_JavaScript_file_If_declaration_is_true_also_designa_6679","Specify a file that bundles all outputs into one JavaScript file. If 'declaration' is true, also designates a file that bundles all .d.ts output."),Specify_a_set_of_entries_that_re_map_imports_to_additional_lookup_locations:la(6680,3,"Specify_a_set_of_entries_that_re_map_imports_to_additional_lookup_locations_6680","Specify a set of entries that re-map imports to additional lookup locations."),Specify_a_list_of_language_service_plugins_to_include:la(6681,3,"Specify_a_list_of_language_service_plugins_to_include_6681","Specify a list of language service plugins to include."),Disable_erasing_const_enum_declarations_in_generated_code:la(6682,3,"Disable_erasing_const_enum_declarations_in_generated_code_6682","Disable erasing 'const enum' declarations in generated code."),Disable_resolving_symlinks_to_their_realpath_This_correlates_to_the_same_flag_in_node:la(6683,3,"Disable_resolving_symlinks_to_their_realpath_This_correlates_to_the_same_flag_in_node_6683","Disable resolving symlinks to their realpath. This correlates to the same flag in node."),Disable_wiping_the_console_in_watch_mode:la(6684,3,"Disable_wiping_the_console_in_watch_mode_6684","Disable wiping the console in watch mode."),Enable_color_and_formatting_in_TypeScript_s_output_to_make_compiler_errors_easier_to_read:la(6685,3,"Enable_color_and_formatting_in_TypeScript_s_output_to_make_compiler_errors_easier_to_read_6685","Enable color and formatting in TypeScript's output to make compiler errors easier to read."),Specify_the_object_invoked_for_createElement_This_only_applies_when_targeting_react_JSX_emit:la(6686,3,"Specify_the_object_invoked_for_createElement_This_only_applies_when_targeting_react_JSX_emit_6686","Specify the object invoked for 'createElement'. This only applies when targeting 'react' JSX emit."),Specify_an_array_of_objects_that_specify_paths_for_projects_Used_in_project_references:la(6687,3,"Specify_an_array_of_objects_that_specify_paths_for_projects_Used_in_project_references_6687","Specify an array of objects that specify paths for projects. Used in project references."),Disable_emitting_comments:la(6688,3,"Disable_emitting_comments_6688","Disable emitting comments."),Enable_importing_json_files:la(6689,3,"Enable_importing_json_files_6689","Enable importing .json files."),Specify_the_root_folder_within_your_source_files:la(6690,3,"Specify_the_root_folder_within_your_source_files_6690","Specify the root folder within your source files."),Allow_multiple_folders_to_be_treated_as_one_when_resolving_modules:la(6691,3,"Allow_multiple_folders_to_be_treated_as_one_when_resolving_modules_6691","Allow multiple folders to be treated as one when resolving modules."),Skip_type_checking_d_ts_files_that_are_included_with_TypeScript:la(6692,3,"Skip_type_checking_d_ts_files_that_are_included_with_TypeScript_6692","Skip type checking .d.ts files that are included with TypeScript."),Skip_type_checking_all_d_ts_files:la(6693,3,"Skip_type_checking_all_d_ts_files_6693","Skip type checking all .d.ts files."),Create_source_map_files_for_emitted_JavaScript_files:la(6694,3,"Create_source_map_files_for_emitted_JavaScript_files_6694","Create source map files for emitted JavaScript files."),Specify_the_root_path_for_debuggers_to_find_the_reference_source_code:la(6695,3,"Specify_the_root_path_for_debuggers_to_find_the_reference_source_code_6695","Specify the root path for debuggers to find the reference source code."),Check_that_the_arguments_for_bind_call_and_apply_methods_match_the_original_function:la(6697,3,"Check_that_the_arguments_for_bind_call_and_apply_methods_match_the_original_function_6697","Check that the arguments for 'bind', 'call', and 'apply' methods match the original function."),When_assigning_functions_check_to_ensure_parameters_and_the_return_values_are_subtype_compatible:la(6698,3,"When_assigning_functions_check_to_ensure_parameters_and_the_return_values_are_subtype_compatible_6698","When assigning functions, check to ensure parameters and the return values are subtype-compatible."),When_type_checking_take_into_account_null_and_undefined:la(6699,3,"When_type_checking_take_into_account_null_and_undefined_6699","When type checking, take into account 'null' and 'undefined'."),Check_for_class_properties_that_are_declared_but_not_set_in_the_constructor:la(6700,3,"Check_for_class_properties_that_are_declared_but_not_set_in_the_constructor_6700","Check for class properties that are declared but not set in the constructor."),Disable_emitting_declarations_that_have_internal_in_their_JSDoc_comments:la(6701,3,"Disable_emitting_declarations_that_have_internal_in_their_JSDoc_comments_6701","Disable emitting declarations that have '@internal' in their JSDoc comments."),Disable_reporting_of_excess_property_errors_during_the_creation_of_object_literals:la(6702,3,"Disable_reporting_of_excess_property_errors_during_the_creation_of_object_literals_6702","Disable reporting of excess property errors during the creation of object literals."),Suppress_noImplicitAny_errors_when_indexing_objects_that_lack_index_signatures:la(6703,3,"Suppress_noImplicitAny_errors_when_indexing_objects_that_lack_index_signatures_6703","Suppress 'noImplicitAny' errors when indexing objects that lack index signatures."),Synchronously_call_callbacks_and_update_the_state_of_directory_watchers_on_platforms_that_don_t_support_recursive_watching_natively:la(6704,3,"Synchronously_call_callbacks_and_update_the_state_of_directory_watchers_on_platforms_that_don_t_supp_6704","Synchronously call callbacks and update the state of directory watchers on platforms that don`t support recursive watching natively."),Set_the_JavaScript_language_version_for_emitted_JavaScript_and_include_compatible_library_declarations:la(6705,3,"Set_the_JavaScript_language_version_for_emitted_JavaScript_and_include_compatible_library_declaratio_6705","Set the JavaScript language version for emitted JavaScript and include compatible library declarations."),Log_paths_used_during_the_moduleResolution_process:la(6706,3,"Log_paths_used_during_the_moduleResolution_process_6706","Log paths used during the 'moduleResolution' process."),Specify_the_path_to_tsbuildinfo_incremental_compilation_file:la(6707,3,"Specify_the_path_to_tsbuildinfo_incremental_compilation_file_6707","Specify the path to .tsbuildinfo incremental compilation file."),Specify_options_for_automatic_acquisition_of_declaration_files:la(6709,3,"Specify_options_for_automatic_acquisition_of_declaration_files_6709","Specify options for automatic acquisition of declaration files."),Specify_multiple_folders_that_act_like_Slashnode_modules_Slash_types:la(6710,3,"Specify_multiple_folders_that_act_like_Slashnode_modules_Slash_types_6710","Specify multiple folders that act like './node_modules/@types'."),Specify_type_package_names_to_be_included_without_being_referenced_in_a_source_file:la(6711,3,"Specify_type_package_names_to_be_included_without_being_referenced_in_a_source_file_6711","Specify type package names to be included without being referenced in a source file."),Emit_ECMAScript_standard_compliant_class_fields:la(6712,3,"Emit_ECMAScript_standard_compliant_class_fields_6712","Emit ECMAScript-standard-compliant class fields."),Enable_verbose_logging:la(6713,3,"Enable_verbose_logging_6713","Enable verbose logging."),Specify_how_directories_are_watched_on_systems_that_lack_recursive_file_watching_functionality:la(6714,3,"Specify_how_directories_are_watched_on_systems_that_lack_recursive_file_watching_functionality_6714","Specify how directories are watched on systems that lack recursive file-watching functionality."),Specify_how_the_TypeScript_watch_mode_works:la(6715,3,"Specify_how_the_TypeScript_watch_mode_works_6715","Specify how the TypeScript watch mode works."),Require_undeclared_properties_from_index_signatures_to_use_element_accesses:la(6717,3,"Require_undeclared_properties_from_index_signatures_to_use_element_accesses_6717","Require undeclared properties from index signatures to use element accesses."),Specify_emit_Slashchecking_behavior_for_imports_that_are_only_used_for_types:la(6718,3,"Specify_emit_Slashchecking_behavior_for_imports_that_are_only_used_for_types_6718","Specify emit/checking behavior for imports that are only used for types."),Require_sufficient_annotation_on_exports_so_other_tools_can_trivially_generate_declaration_files:la(6719,3,"Require_sufficient_annotation_on_exports_so_other_tools_can_trivially_generate_declaration_files_6719","Require sufficient annotation on exports so other tools can trivially generate declaration files."),Built_in_iterators_are_instantiated_with_a_TReturn_type_of_undefined_instead_of_any:la(6720,3,"Built_in_iterators_are_instantiated_with_a_TReturn_type_of_undefined_instead_of_any_6720","Built-in iterators are instantiated with a 'TReturn' type of 'undefined' instead of 'any'."),Do_not_allow_runtime_constructs_that_are_not_part_of_ECMAScript:la(6721,3,"Do_not_allow_runtime_constructs_that_are_not_part_of_ECMAScript_6721","Do not allow runtime constructs that are not part of ECMAScript."),Default_catch_clause_variables_as_unknown_instead_of_any:la(6803,3,"Default_catch_clause_variables_as_unknown_instead_of_any_6803","Default catch clause variables as 'unknown' instead of 'any'."),Do_not_transform_or_elide_any_imports_or_exports_not_marked_as_type_only_ensuring_they_are_written_in_the_output_file_s_format_based_on_the_module_setting:la(6804,3,"Do_not_transform_or_elide_any_imports_or_exports_not_marked_as_type_only_ensuring_they_are_written_i_6804","Do not transform or elide any imports or exports not marked as type-only, ensuring they are written in the output file's format based on the 'module' setting."),Disable_full_type_checking_only_critical_parse_and_emit_errors_will_be_reported:la(6805,3,"Disable_full_type_checking_only_critical_parse_and_emit_errors_will_be_reported_6805","Disable full type checking (only critical parse and emit errors will be reported)."),Check_side_effect_imports:la(6806,3,"Check_side_effect_imports_6806","Check side effect imports."),This_operation_can_be_simplified_This_shift_is_identical_to_0_1_2:la(6807,1,"This_operation_can_be_simplified_This_shift_is_identical_to_0_1_2_6807","This operation can be simplified. This shift is identical to `{0} {1} {2}`."),Enable_lib_replacement:la(6808,3,"Enable_lib_replacement_6808","Enable lib replacement."),one_of_Colon:la(6900,3,"one_of_Colon_6900","one of:"),one_or_more_Colon:la(6901,3,"one_or_more_Colon_6901","one or more:"),type_Colon:la(6902,3,"type_Colon_6902","type:"),default_Colon:la(6903,3,"default_Colon_6903","default:"),module_system_or_esModuleInterop:la(6904,3,"module_system_or_esModuleInterop_6904",'module === "system" or esModuleInterop'),false_unless_strict_is_set:la(6905,3,"false_unless_strict_is_set_6905","`false`, unless `strict` is set"),false_unless_composite_is_set:la(6906,3,"false_unless_composite_is_set_6906","`false`, unless `composite` is set"),node_modules_bower_components_jspm_packages_plus_the_value_of_outDir_if_one_is_specified:la(6907,3,"node_modules_bower_components_jspm_packages_plus_the_value_of_outDir_if_one_is_specified_6907",'`["node_modules", "bower_components", "jspm_packages"]`, plus the value of `outDir` if one is specified.'),if_files_is_specified_otherwise_Asterisk_Asterisk_Slash_Asterisk:la(6908,3,"if_files_is_specified_otherwise_Asterisk_Asterisk_Slash_Asterisk_6908",'`[]` if `files` is specified, otherwise `["**/*"]`'),true_if_composite_false_otherwise:la(6909,3,"true_if_composite_false_otherwise_6909","`true` if `composite`, `false` otherwise"),module_AMD_or_UMD_or_System_or_ES6_then_Classic_Otherwise_Node:la(69010,3,"module_AMD_or_UMD_or_System_or_ES6_then_Classic_Otherwise_Node_69010","module === `AMD` or `UMD` or `System` or `ES6`, then `Classic`, Otherwise `Node`"),Computed_from_the_list_of_input_files:la(6911,3,"Computed_from_the_list_of_input_files_6911","Computed from the list of input files"),Platform_specific:la(6912,3,"Platform_specific_6912","Platform specific"),You_can_learn_about_all_of_the_compiler_options_at_0:la(6913,3,"You_can_learn_about_all_of_the_compiler_options_at_0_6913","You can learn about all of the compiler options at {0}"),Including_watch_w_will_start_watching_the_current_project_for_the_file_changes_Once_set_you_can_config_watch_mode_with_Colon:la(6914,3,"Including_watch_w_will_start_watching_the_current_project_for_the_file_changes_Once_set_you_can_conf_6914","Including --watch, -w will start watching the current project for the file changes. Once set, you can config watch mode with:"),Using_build_b_will_make_tsc_behave_more_like_a_build_orchestrator_than_a_compiler_This_is_used_to_trigger_building_composite_projects_which_you_can_learn_more_about_at_0:la(6915,3,"Using_build_b_will_make_tsc_behave_more_like_a_build_orchestrator_than_a_compiler_This_is_used_to_tr_6915","Using --build, -b will make tsc behave more like a build orchestrator than a compiler. This is used to trigger building composite projects which you can learn more about at {0}"),COMMON_COMMANDS:la(6916,3,"COMMON_COMMANDS_6916","COMMON COMMANDS"),ALL_COMPILER_OPTIONS:la(6917,3,"ALL_COMPILER_OPTIONS_6917","ALL COMPILER OPTIONS"),WATCH_OPTIONS:la(6918,3,"WATCH_OPTIONS_6918","WATCH OPTIONS"),BUILD_OPTIONS:la(6919,3,"BUILD_OPTIONS_6919","BUILD OPTIONS"),COMMON_COMPILER_OPTIONS:la(6920,3,"COMMON_COMPILER_OPTIONS_6920","COMMON COMPILER OPTIONS"),COMMAND_LINE_FLAGS:la(6921,3,"COMMAND_LINE_FLAGS_6921","COMMAND LINE FLAGS"),tsc_Colon_The_TypeScript_Compiler:la(6922,3,"tsc_Colon_The_TypeScript_Compiler_6922","tsc: The TypeScript Compiler"),Compiles_the_current_project_tsconfig_json_in_the_working_directory:la(6923,3,"Compiles_the_current_project_tsconfig_json_in_the_working_directory_6923","Compiles the current project (tsconfig.json in the working directory.)"),Ignoring_tsconfig_json_compiles_the_specified_files_with_default_compiler_options:la(6924,3,"Ignoring_tsconfig_json_compiles_the_specified_files_with_default_compiler_options_6924","Ignoring tsconfig.json, compiles the specified files with default compiler options."),Build_a_composite_project_in_the_working_directory:la(6925,3,"Build_a_composite_project_in_the_working_directory_6925","Build a composite project in the working directory."),Creates_a_tsconfig_json_with_the_recommended_settings_in_the_working_directory:la(6926,3,"Creates_a_tsconfig_json_with_the_recommended_settings_in_the_working_directory_6926","Creates a tsconfig.json with the recommended settings in the working directory."),Compiles_the_TypeScript_project_located_at_the_specified_path:la(6927,3,"Compiles_the_TypeScript_project_located_at_the_specified_path_6927","Compiles the TypeScript project located at the specified path."),An_expanded_version_of_this_information_showing_all_possible_compiler_options:la(6928,3,"An_expanded_version_of_this_information_showing_all_possible_compiler_options_6928","An expanded version of this information, showing all possible compiler options"),Compiles_the_current_project_with_additional_settings:la(6929,3,"Compiles_the_current_project_with_additional_settings_6929","Compiles the current project, with additional settings."),true_for_ES2022_and_above_including_ESNext:la(6930,3,"true_for_ES2022_and_above_including_ESNext_6930","`true` for ES2022 and above, including ESNext."),List_of_file_name_suffixes_to_search_when_resolving_a_module:la(6931,1,"List_of_file_name_suffixes_to_search_when_resolving_a_module_6931","List of file name suffixes to search when resolving a module."),Variable_0_implicitly_has_an_1_type:la(7005,1,"Variable_0_implicitly_has_an_1_type_7005","Variable '{0}' implicitly has an '{1}' type."),Parameter_0_implicitly_has_an_1_type:la(7006,1,"Parameter_0_implicitly_has_an_1_type_7006","Parameter '{0}' implicitly has an '{1}' type."),Member_0_implicitly_has_an_1_type:la(7008,1,"Member_0_implicitly_has_an_1_type_7008","Member '{0}' implicitly has an '{1}' type."),new_expression_whose_target_lacks_a_construct_signature_implicitly_has_an_any_type:la(7009,1,"new_expression_whose_target_lacks_a_construct_signature_implicitly_has_an_any_type_7009","'new' expression, whose target lacks a construct signature, implicitly has an 'any' type."),_0_which_lacks_return_type_annotation_implicitly_has_an_1_return_type:la(7010,1,"_0_which_lacks_return_type_annotation_implicitly_has_an_1_return_type_7010","'{0}', which lacks return-type annotation, implicitly has an '{1}' return type."),Function_expression_which_lacks_return_type_annotation_implicitly_has_an_0_return_type:la(7011,1,"Function_expression_which_lacks_return_type_annotation_implicitly_has_an_0_return_type_7011","Function expression, which lacks return-type annotation, implicitly has an '{0}' return type."),This_overload_implicitly_returns_the_type_0_because_it_lacks_a_return_type_annotation:la(7012,1,"This_overload_implicitly_returns_the_type_0_because_it_lacks_a_return_type_annotation_7012","This overload implicitly returns the type '{0}' because it lacks a return type annotation."),Construct_signature_which_lacks_return_type_annotation_implicitly_has_an_any_return_type:la(7013,1,"Construct_signature_which_lacks_return_type_annotation_implicitly_has_an_any_return_type_7013","Construct signature, which lacks return-type annotation, implicitly has an 'any' return type."),Function_type_which_lacks_return_type_annotation_implicitly_has_an_0_return_type:la(7014,1,"Function_type_which_lacks_return_type_annotation_implicitly_has_an_0_return_type_7014","Function type, which lacks return-type annotation, implicitly has an '{0}' return type."),Element_implicitly_has_an_any_type_because_index_expression_is_not_of_type_number:la(7015,1,"Element_implicitly_has_an_any_type_because_index_expression_is_not_of_type_number_7015","Element implicitly has an 'any' type because index expression is not of type 'number'."),Could_not_find_a_declaration_file_for_module_0_1_implicitly_has_an_any_type:la(7016,1,"Could_not_find_a_declaration_file_for_module_0_1_implicitly_has_an_any_type_7016","Could not find a declaration file for module '{0}'. '{1}' implicitly has an 'any' type."),Element_implicitly_has_an_any_type_because_type_0_has_no_index_signature:la(7017,1,"Element_implicitly_has_an_any_type_because_type_0_has_no_index_signature_7017","Element implicitly has an 'any' type because type '{0}' has no index signature."),Object_literal_s_property_0_implicitly_has_an_1_type:la(7018,1,"Object_literal_s_property_0_implicitly_has_an_1_type_7018","Object literal's property '{0}' implicitly has an '{1}' type."),Rest_parameter_0_implicitly_has_an_any_type:la(7019,1,"Rest_parameter_0_implicitly_has_an_any_type_7019","Rest parameter '{0}' implicitly has an 'any[]' type."),Call_signature_which_lacks_return_type_annotation_implicitly_has_an_any_return_type:la(7020,1,"Call_signature_which_lacks_return_type_annotation_implicitly_has_an_any_return_type_7020","Call signature, which lacks return-type annotation, implicitly has an 'any' return type."),_0_implicitly_has_type_any_because_it_does_not_have_a_type_annotation_and_is_referenced_directly_or_indirectly_in_its_own_initializer:la(7022,1,"_0_implicitly_has_type_any_because_it_does_not_have_a_type_annotation_and_is_referenced_directly_or__7022","'{0}' implicitly has type 'any' because it does not have a type annotation and is referenced directly or indirectly in its own initializer."),_0_implicitly_has_return_type_any_because_it_does_not_have_a_return_type_annotation_and_is_referenced_directly_or_indirectly_in_one_of_its_return_expressions:la(7023,1,"_0_implicitly_has_return_type_any_because_it_does_not_have_a_return_type_annotation_and_is_reference_7023","'{0}' implicitly has return type 'any' because it does not have a return type annotation and is referenced directly or indirectly in one of its return expressions."),Function_implicitly_has_return_type_any_because_it_does_not_have_a_return_type_annotation_and_is_referenced_directly_or_indirectly_in_one_of_its_return_expressions:la(7024,1,"Function_implicitly_has_return_type_any_because_it_does_not_have_a_return_type_annotation_and_is_ref_7024","Function implicitly has return type 'any' because it does not have a return type annotation and is referenced directly or indirectly in one of its return expressions."),Generator_implicitly_has_yield_type_0_Consider_supplying_a_return_type_annotation:la(7025,1,"Generator_implicitly_has_yield_type_0_Consider_supplying_a_return_type_annotation_7025","Generator implicitly has yield type '{0}'. Consider supplying a return type annotation."),JSX_element_implicitly_has_type_any_because_no_interface_JSX_0_exists:la(7026,1,"JSX_element_implicitly_has_type_any_because_no_interface_JSX_0_exists_7026","JSX element implicitly has type 'any' because no interface 'JSX.{0}' exists."),Unreachable_code_detected:la(7027,1,"Unreachable_code_detected_7027","Unreachable code detected.",!0),Unused_label:la(7028,1,"Unused_label_7028","Unused label.",!0),Fallthrough_case_in_switch:la(7029,1,"Fallthrough_case_in_switch_7029","Fallthrough case in switch."),Not_all_code_paths_return_a_value:la(7030,1,"Not_all_code_paths_return_a_value_7030","Not all code paths return a value."),Binding_element_0_implicitly_has_an_1_type:la(7031,1,"Binding_element_0_implicitly_has_an_1_type_7031","Binding element '{0}' implicitly has an '{1}' type."),Property_0_implicitly_has_type_any_because_its_set_accessor_lacks_a_parameter_type_annotation:la(7032,1,"Property_0_implicitly_has_type_any_because_its_set_accessor_lacks_a_parameter_type_annotation_7032","Property '{0}' implicitly has type 'any', because its set accessor lacks a parameter type annotation."),Property_0_implicitly_has_type_any_because_its_get_accessor_lacks_a_return_type_annotation:la(7033,1,"Property_0_implicitly_has_type_any_because_its_get_accessor_lacks_a_return_type_annotation_7033","Property '{0}' implicitly has type 'any', because its get accessor lacks a return type annotation."),Variable_0_implicitly_has_type_1_in_some_locations_where_its_type_cannot_be_determined:la(7034,1,"Variable_0_implicitly_has_type_1_in_some_locations_where_its_type_cannot_be_determined_7034","Variable '{0}' implicitly has type '{1}' in some locations where its type cannot be determined."),Try_npm_i_save_dev_types_Slash_1_if_it_exists_or_add_a_new_declaration_d_ts_file_containing_declare_module_0:la(7035,1,"Try_npm_i_save_dev_types_Slash_1_if_it_exists_or_add_a_new_declaration_d_ts_file_containing_declare__7035","Try `npm i --save-dev @types/{1}` if it exists or add a new declaration (.d.ts) file containing `declare module '{0}';`"),Dynamic_import_s_specifier_must_be_of_type_string_but_here_has_type_0:la(7036,1,"Dynamic_import_s_specifier_must_be_of_type_string_but_here_has_type_0_7036","Dynamic import's specifier must be of type 'string', but here has type '{0}'."),Enables_emit_interoperability_between_CommonJS_and_ES_Modules_via_creation_of_namespace_objects_for_all_imports_Implies_allowSyntheticDefaultImports:la(7037,3,"Enables_emit_interoperability_between_CommonJS_and_ES_Modules_via_creation_of_namespace_objects_for__7037","Enables emit interoperability between CommonJS and ES Modules via creation of namespace objects for all imports. Implies 'allowSyntheticDefaultImports'."),Type_originates_at_this_import_A_namespace_style_import_cannot_be_called_or_constructed_and_will_cause_a_failure_at_runtime_Consider_using_a_default_import_or_import_require_here_instead:la(7038,3,"Type_originates_at_this_import_A_namespace_style_import_cannot_be_called_or_constructed_and_will_cau_7038","Type originates at this import. A namespace-style import cannot be called or constructed, and will cause a failure at runtime. Consider using a default import or import require here instead."),Mapped_object_type_implicitly_has_an_any_template_type:la(7039,1,"Mapped_object_type_implicitly_has_an_any_template_type_7039","Mapped object type implicitly has an 'any' template type."),If_the_0_package_actually_exposes_this_module_consider_sending_a_pull_request_to_amend_https_Colon_Slash_Slashgithub_com_SlashDefinitelyTyped_SlashDefinitelyTyped_Slashtree_Slashmaster_Slashtypes_Slash_1:la(7040,1,"If_the_0_package_actually_exposes_this_module_consider_sending_a_pull_request_to_amend_https_Colon_S_7040","If the '{0}' package actually exposes this module, consider sending a pull request to amend 'https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/{1}'"),The_containing_arrow_function_captures_the_global_value_of_this:la(7041,1,"The_containing_arrow_function_captures_the_global_value_of_this_7041","The containing arrow function captures the global value of 'this'."),Module_0_was_resolved_to_1_but_resolveJsonModule_is_not_used:la(7042,1,"Module_0_was_resolved_to_1_but_resolveJsonModule_is_not_used_7042","Module '{0}' was resolved to '{1}', but '--resolveJsonModule' is not used."),Variable_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage:la(7043,2,"Variable_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage_7043","Variable '{0}' implicitly has an '{1}' type, but a better type may be inferred from usage."),Parameter_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage:la(7044,2,"Parameter_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage_7044","Parameter '{0}' implicitly has an '{1}' type, but a better type may be inferred from usage."),Member_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage:la(7045,2,"Member_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage_7045","Member '{0}' implicitly has an '{1}' type, but a better type may be inferred from usage."),Variable_0_implicitly_has_type_1_in_some_locations_but_a_better_type_may_be_inferred_from_usage:la(7046,2,"Variable_0_implicitly_has_type_1_in_some_locations_but_a_better_type_may_be_inferred_from_usage_7046","Variable '{0}' implicitly has type '{1}' in some locations, but a better type may be inferred from usage."),Rest_parameter_0_implicitly_has_an_any_type_but_a_better_type_may_be_inferred_from_usage:la(7047,2,"Rest_parameter_0_implicitly_has_an_any_type_but_a_better_type_may_be_inferred_from_usage_7047","Rest parameter '{0}' implicitly has an 'any[]' type, but a better type may be inferred from usage."),Property_0_implicitly_has_type_any_but_a_better_type_for_its_get_accessor_may_be_inferred_from_usage:la(7048,2,"Property_0_implicitly_has_type_any_but_a_better_type_for_its_get_accessor_may_be_inferred_from_usage_7048","Property '{0}' implicitly has type 'any', but a better type for its get accessor may be inferred from usage."),Property_0_implicitly_has_type_any_but_a_better_type_for_its_set_accessor_may_be_inferred_from_usage:la(7049,2,"Property_0_implicitly_has_type_any_but_a_better_type_for_its_set_accessor_may_be_inferred_from_usage_7049","Property '{0}' implicitly has type 'any', but a better type for its set accessor may be inferred from usage."),_0_implicitly_has_an_1_return_type_but_a_better_type_may_be_inferred_from_usage:la(7050,2,"_0_implicitly_has_an_1_return_type_but_a_better_type_may_be_inferred_from_usage_7050","'{0}' implicitly has an '{1}' return type, but a better type may be inferred from usage."),Parameter_has_a_name_but_no_type_Did_you_mean_0_Colon_1:la(7051,1,"Parameter_has_a_name_but_no_type_Did_you_mean_0_Colon_1_7051","Parameter has a name but no type. Did you mean '{0}: {1}'?"),Element_implicitly_has_an_any_type_because_type_0_has_no_index_signature_Did_you_mean_to_call_1:la(7052,1,"Element_implicitly_has_an_any_type_because_type_0_has_no_index_signature_Did_you_mean_to_call_1_7052","Element implicitly has an 'any' type because type '{0}' has no index signature. Did you mean to call '{1}'?"),Element_implicitly_has_an_any_type_because_expression_of_type_0_can_t_be_used_to_index_type_1:la(7053,1,"Element_implicitly_has_an_any_type_because_expression_of_type_0_can_t_be_used_to_index_type_1_7053","Element implicitly has an 'any' type because expression of type '{0}' can't be used to index type '{1}'."),No_index_signature_with_a_parameter_of_type_0_was_found_on_type_1:la(7054,1,"No_index_signature_with_a_parameter_of_type_0_was_found_on_type_1_7054","No index signature with a parameter of type '{0}' was found on type '{1}'."),_0_which_lacks_return_type_annotation_implicitly_has_an_1_yield_type:la(7055,1,"_0_which_lacks_return_type_annotation_implicitly_has_an_1_yield_type_7055","'{0}', which lacks return-type annotation, implicitly has an '{1}' yield type."),The_inferred_type_of_this_node_exceeds_the_maximum_length_the_compiler_will_serialize_An_explicit_type_annotation_is_needed:la(7056,1,"The_inferred_type_of_this_node_exceeds_the_maximum_length_the_compiler_will_serialize_An_explicit_ty_7056","The inferred type of this node exceeds the maximum length the compiler will serialize. An explicit type annotation is needed."),yield_expression_implicitly_results_in_an_any_type_because_its_containing_generator_lacks_a_return_type_annotation:la(7057,1,"yield_expression_implicitly_results_in_an_any_type_because_its_containing_generator_lacks_a_return_t_7057","'yield' expression implicitly results in an 'any' type because its containing generator lacks a return-type annotation."),If_the_0_package_actually_exposes_this_module_try_adding_a_new_declaration_d_ts_file_containing_declare_module_1:la(7058,1,"If_the_0_package_actually_exposes_this_module_try_adding_a_new_declaration_d_ts_file_containing_decl_7058","If the '{0}' package actually exposes this module, try adding a new declaration (.d.ts) file containing `declare module '{1}';`"),This_syntax_is_reserved_in_files_with_the_mts_or_cts_extension_Use_an_as_expression_instead:la(7059,1,"This_syntax_is_reserved_in_files_with_the_mts_or_cts_extension_Use_an_as_expression_instead_7059","This syntax is reserved in files with the .mts or .cts extension. Use an `as` expression instead."),This_syntax_is_reserved_in_files_with_the_mts_or_cts_extension_Add_a_trailing_comma_or_explicit_constraint:la(7060,1,"This_syntax_is_reserved_in_files_with_the_mts_or_cts_extension_Add_a_trailing_comma_or_explicit_cons_7060","This syntax is reserved in files with the .mts or .cts extension. Add a trailing comma or explicit constraint."),A_mapped_type_may_not_declare_properties_or_methods:la(7061,1,"A_mapped_type_may_not_declare_properties_or_methods_7061","A mapped type may not declare properties or methods."),You_cannot_rename_this_element:la(8e3,1,"You_cannot_rename_this_element_8000","You cannot rename this element."),You_cannot_rename_elements_that_are_defined_in_the_standard_TypeScript_library:la(8001,1,"You_cannot_rename_elements_that_are_defined_in_the_standard_TypeScript_library_8001","You cannot rename elements that are defined in the standard TypeScript library."),import_can_only_be_used_in_TypeScript_files:la(8002,1,"import_can_only_be_used_in_TypeScript_files_8002","'import ... =' can only be used in TypeScript files."),export_can_only_be_used_in_TypeScript_files:la(8003,1,"export_can_only_be_used_in_TypeScript_files_8003","'export =' can only be used in TypeScript files."),Type_parameter_declarations_can_only_be_used_in_TypeScript_files:la(8004,1,"Type_parameter_declarations_can_only_be_used_in_TypeScript_files_8004","Type parameter declarations can only be used in TypeScript files."),implements_clauses_can_only_be_used_in_TypeScript_files:la(8005,1,"implements_clauses_can_only_be_used_in_TypeScript_files_8005","'implements' clauses can only be used in TypeScript files."),_0_declarations_can_only_be_used_in_TypeScript_files:la(8006,1,"_0_declarations_can_only_be_used_in_TypeScript_files_8006","'{0}' declarations can only be used in TypeScript files."),Type_aliases_can_only_be_used_in_TypeScript_files:la(8008,1,"Type_aliases_can_only_be_used_in_TypeScript_files_8008","Type aliases can only be used in TypeScript files."),The_0_modifier_can_only_be_used_in_TypeScript_files:la(8009,1,"The_0_modifier_can_only_be_used_in_TypeScript_files_8009","The '{0}' modifier can only be used in TypeScript files."),Type_annotations_can_only_be_used_in_TypeScript_files:la(8010,1,"Type_annotations_can_only_be_used_in_TypeScript_files_8010","Type annotations can only be used in TypeScript files."),Type_arguments_can_only_be_used_in_TypeScript_files:la(8011,1,"Type_arguments_can_only_be_used_in_TypeScript_files_8011","Type arguments can only be used in TypeScript files."),Parameter_modifiers_can_only_be_used_in_TypeScript_files:la(8012,1,"Parameter_modifiers_can_only_be_used_in_TypeScript_files_8012","Parameter modifiers can only be used in TypeScript files."),Non_null_assertions_can_only_be_used_in_TypeScript_files:la(8013,1,"Non_null_assertions_can_only_be_used_in_TypeScript_files_8013","Non-null assertions can only be used in TypeScript files."),Type_assertion_expressions_can_only_be_used_in_TypeScript_files:la(8016,1,"Type_assertion_expressions_can_only_be_used_in_TypeScript_files_8016","Type assertion expressions can only be used in TypeScript files."),Signature_declarations_can_only_be_used_in_TypeScript_files:la(8017,1,"Signature_declarations_can_only_be_used_in_TypeScript_files_8017","Signature declarations can only be used in TypeScript files."),Report_errors_in_js_files:la(8019,3,"Report_errors_in_js_files_8019","Report errors in .js files."),JSDoc_types_can_only_be_used_inside_documentation_comments:la(8020,1,"JSDoc_types_can_only_be_used_inside_documentation_comments_8020","JSDoc types can only be used inside documentation comments."),JSDoc_typedef_tag_should_either_have_a_type_annotation_or_be_followed_by_property_or_member_tags:la(8021,1,"JSDoc_typedef_tag_should_either_have_a_type_annotation_or_be_followed_by_property_or_member_tags_8021","JSDoc '@typedef' tag should either have a type annotation or be followed by '@property' or '@member' tags."),JSDoc_0_is_not_attached_to_a_class:la(8022,1,"JSDoc_0_is_not_attached_to_a_class_8022","JSDoc '@{0}' is not attached to a class."),JSDoc_0_1_does_not_match_the_extends_2_clause:la(8023,1,"JSDoc_0_1_does_not_match_the_extends_2_clause_8023","JSDoc '@{0} {1}' does not match the 'extends {2}' clause."),JSDoc_param_tag_has_name_0_but_there_is_no_parameter_with_that_name:la(8024,1,"JSDoc_param_tag_has_name_0_but_there_is_no_parameter_with_that_name_8024","JSDoc '@param' tag has name '{0}', but there is no parameter with that name."),Class_declarations_cannot_have_more_than_one_augments_or_extends_tag:la(8025,1,"Class_declarations_cannot_have_more_than_one_augments_or_extends_tag_8025","Class declarations cannot have more than one '@augments' or '@extends' tag."),Expected_0_type_arguments_provide_these_with_an_extends_tag:la(8026,1,"Expected_0_type_arguments_provide_these_with_an_extends_tag_8026","Expected {0} type arguments; provide these with an '@extends' tag."),Expected_0_1_type_arguments_provide_these_with_an_extends_tag:la(8027,1,"Expected_0_1_type_arguments_provide_these_with_an_extends_tag_8027","Expected {0}-{1} type arguments; provide these with an '@extends' tag."),JSDoc_may_only_appear_in_the_last_parameter_of_a_signature:la(8028,1,"JSDoc_may_only_appear_in_the_last_parameter_of_a_signature_8028","JSDoc '...' may only appear in the last parameter of a signature."),JSDoc_param_tag_has_name_0_but_there_is_no_parameter_with_that_name_It_would_match_arguments_if_it_had_an_array_type:la(8029,1,"JSDoc_param_tag_has_name_0_but_there_is_no_parameter_with_that_name_It_would_match_arguments_if_it_h_8029","JSDoc '@param' tag has name '{0}', but there is no parameter with that name. It would match 'arguments' if it had an array type."),The_type_of_a_function_declaration_must_match_the_function_s_signature:la(8030,1,"The_type_of_a_function_declaration_must_match_the_function_s_signature_8030","The type of a function declaration must match the function's signature."),You_cannot_rename_a_module_via_a_global_import:la(8031,1,"You_cannot_rename_a_module_via_a_global_import_8031","You cannot rename a module via a global import."),Qualified_name_0_is_not_allowed_without_a_leading_param_object_1:la(8032,1,"Qualified_name_0_is_not_allowed_without_a_leading_param_object_1_8032","Qualified name '{0}' is not allowed without a leading '@param {object} {1}'."),A_JSDoc_typedef_comment_may_not_contain_multiple_type_tags:la(8033,1,"A_JSDoc_typedef_comment_may_not_contain_multiple_type_tags_8033","A JSDoc '@typedef' comment may not contain multiple '@type' tags."),The_tag_was_first_specified_here:la(8034,1,"The_tag_was_first_specified_here_8034","The tag was first specified here."),You_cannot_rename_elements_that_are_defined_in_a_node_modules_folder:la(8035,1,"You_cannot_rename_elements_that_are_defined_in_a_node_modules_folder_8035","You cannot rename elements that are defined in a 'node_modules' folder."),You_cannot_rename_elements_that_are_defined_in_another_node_modules_folder:la(8036,1,"You_cannot_rename_elements_that_are_defined_in_another_node_modules_folder_8036","You cannot rename elements that are defined in another 'node_modules' folder."),Type_satisfaction_expressions_can_only_be_used_in_TypeScript_files:la(8037,1,"Type_satisfaction_expressions_can_only_be_used_in_TypeScript_files_8037","Type satisfaction expressions can only be used in TypeScript files."),Decorators_may_not_appear_after_export_or_export_default_if_they_also_appear_before_export:la(8038,1,"Decorators_may_not_appear_after_export_or_export_default_if_they_also_appear_before_export_8038","Decorators may not appear after 'export' or 'export default' if they also appear before 'export'."),A_JSDoc_template_tag_may_not_follow_a_typedef_callback_or_overload_tag:la(8039,1,"A_JSDoc_template_tag_may_not_follow_a_typedef_callback_or_overload_tag_8039","A JSDoc '@template' tag may not follow a '@typedef', '@callback', or '@overload' tag"),Declaration_emit_for_this_file_requires_using_private_name_0_An_explicit_type_annotation_may_unblock_declaration_emit:la(9005,1,"Declaration_emit_for_this_file_requires_using_private_name_0_An_explicit_type_annotation_may_unblock_9005","Declaration emit for this file requires using private name '{0}'. An explicit type annotation may unblock declaration emit."),Declaration_emit_for_this_file_requires_using_private_name_0_from_module_1_An_explicit_type_annotation_may_unblock_declaration_emit:la(9006,1,"Declaration_emit_for_this_file_requires_using_private_name_0_from_module_1_An_explicit_type_annotati_9006","Declaration emit for this file requires using private name '{0}' from module '{1}'. An explicit type annotation may unblock declaration emit."),Function_must_have_an_explicit_return_type_annotation_with_isolatedDeclarations:la(9007,1,"Function_must_have_an_explicit_return_type_annotation_with_isolatedDeclarations_9007","Function must have an explicit return type annotation with --isolatedDeclarations."),Method_must_have_an_explicit_return_type_annotation_with_isolatedDeclarations:la(9008,1,"Method_must_have_an_explicit_return_type_annotation_with_isolatedDeclarations_9008","Method must have an explicit return type annotation with --isolatedDeclarations."),At_least_one_accessor_must_have_an_explicit_type_annotation_with_isolatedDeclarations:la(9009,1,"At_least_one_accessor_must_have_an_explicit_type_annotation_with_isolatedDeclarations_9009","At least one accessor must have an explicit type annotation with --isolatedDeclarations."),Variable_must_have_an_explicit_type_annotation_with_isolatedDeclarations:la(9010,1,"Variable_must_have_an_explicit_type_annotation_with_isolatedDeclarations_9010","Variable must have an explicit type annotation with --isolatedDeclarations."),Parameter_must_have_an_explicit_type_annotation_with_isolatedDeclarations:la(9011,1,"Parameter_must_have_an_explicit_type_annotation_with_isolatedDeclarations_9011","Parameter must have an explicit type annotation with --isolatedDeclarations."),Property_must_have_an_explicit_type_annotation_with_isolatedDeclarations:la(9012,1,"Property_must_have_an_explicit_type_annotation_with_isolatedDeclarations_9012","Property must have an explicit type annotation with --isolatedDeclarations."),Expression_type_can_t_be_inferred_with_isolatedDeclarations:la(9013,1,"Expression_type_can_t_be_inferred_with_isolatedDeclarations_9013","Expression type can't be inferred with --isolatedDeclarations."),Computed_properties_must_be_number_or_string_literals_variables_or_dotted_expressions_with_isolatedDeclarations:la(9014,1,"Computed_properties_must_be_number_or_string_literals_variables_or_dotted_expressions_with_isolatedD_9014","Computed properties must be number or string literals, variables or dotted expressions with --isolatedDeclarations."),Objects_that_contain_spread_assignments_can_t_be_inferred_with_isolatedDeclarations:la(9015,1,"Objects_that_contain_spread_assignments_can_t_be_inferred_with_isolatedDeclarations_9015","Objects that contain spread assignments can't be inferred with --isolatedDeclarations."),Objects_that_contain_shorthand_properties_can_t_be_inferred_with_isolatedDeclarations:la(9016,1,"Objects_that_contain_shorthand_properties_can_t_be_inferred_with_isolatedDeclarations_9016","Objects that contain shorthand properties can't be inferred with --isolatedDeclarations."),Only_const_arrays_can_be_inferred_with_isolatedDeclarations:la(9017,1,"Only_const_arrays_can_be_inferred_with_isolatedDeclarations_9017","Only const arrays can be inferred with --isolatedDeclarations."),Arrays_with_spread_elements_can_t_inferred_with_isolatedDeclarations:la(9018,1,"Arrays_with_spread_elements_can_t_inferred_with_isolatedDeclarations_9018","Arrays with spread elements can't inferred with --isolatedDeclarations."),Binding_elements_can_t_be_exported_directly_with_isolatedDeclarations:la(9019,1,"Binding_elements_can_t_be_exported_directly_with_isolatedDeclarations_9019","Binding elements can't be exported directly with --isolatedDeclarations."),Enum_member_initializers_must_be_computable_without_references_to_external_symbols_with_isolatedDeclarations:la(9020,1,"Enum_member_initializers_must_be_computable_without_references_to_external_symbols_with_isolatedDecl_9020","Enum member initializers must be computable without references to external symbols with --isolatedDeclarations."),Extends_clause_can_t_contain_an_expression_with_isolatedDeclarations:la(9021,1,"Extends_clause_can_t_contain_an_expression_with_isolatedDeclarations_9021","Extends clause can't contain an expression with --isolatedDeclarations."),Inference_from_class_expressions_is_not_supported_with_isolatedDeclarations:la(9022,1,"Inference_from_class_expressions_is_not_supported_with_isolatedDeclarations_9022","Inference from class expressions is not supported with --isolatedDeclarations."),Assigning_properties_to_functions_without_declaring_them_is_not_supported_with_isolatedDeclarations_Add_an_explicit_declaration_for_the_properties_assigned_to_this_function:la(9023,1,"Assigning_properties_to_functions_without_declaring_them_is_not_supported_with_isolatedDeclarations__9023","Assigning properties to functions without declaring them is not supported with --isolatedDeclarations. Add an explicit declaration for the properties assigned to this function."),Declaration_emit_for_this_parameter_requires_implicitly_adding_undefined_to_its_type_This_is_not_supported_with_isolatedDeclarations:la(9025,1,"Declaration_emit_for_this_parameter_requires_implicitly_adding_undefined_to_its_type_This_is_not_sup_9025","Declaration emit for this parameter requires implicitly adding undefined to its type. This is not supported with --isolatedDeclarations."),Declaration_emit_for_this_file_requires_preserving_this_import_for_augmentations_This_is_not_supported_with_isolatedDeclarations:la(9026,1,"Declaration_emit_for_this_file_requires_preserving_this_import_for_augmentations_This_is_not_support_9026","Declaration emit for this file requires preserving this import for augmentations. This is not supported with --isolatedDeclarations."),Add_a_type_annotation_to_the_variable_0:la(9027,1,"Add_a_type_annotation_to_the_variable_0_9027","Add a type annotation to the variable {0}."),Add_a_type_annotation_to_the_parameter_0:la(9028,1,"Add_a_type_annotation_to_the_parameter_0_9028","Add a type annotation to the parameter {0}."),Add_a_type_annotation_to_the_property_0:la(9029,1,"Add_a_type_annotation_to_the_property_0_9029","Add a type annotation to the property {0}."),Add_a_return_type_to_the_function_expression:la(9030,1,"Add_a_return_type_to_the_function_expression_9030","Add a return type to the function expression."),Add_a_return_type_to_the_function_declaration:la(9031,1,"Add_a_return_type_to_the_function_declaration_9031","Add a return type to the function declaration."),Add_a_return_type_to_the_get_accessor_declaration:la(9032,1,"Add_a_return_type_to_the_get_accessor_declaration_9032","Add a return type to the get accessor declaration."),Add_a_type_to_parameter_of_the_set_accessor_declaration:la(9033,1,"Add_a_type_to_parameter_of_the_set_accessor_declaration_9033","Add a type to parameter of the set accessor declaration."),Add_a_return_type_to_the_method:la(9034,1,"Add_a_return_type_to_the_method_9034","Add a return type to the method"),Add_satisfies_and_a_type_assertion_to_this_expression_satisfies_T_as_T_to_make_the_type_explicit:la(9035,1,"Add_satisfies_and_a_type_assertion_to_this_expression_satisfies_T_as_T_to_make_the_type_explicit_9035","Add satisfies and a type assertion to this expression (satisfies T as T) to make the type explicit."),Move_the_expression_in_default_export_to_a_variable_and_add_a_type_annotation_to_it:la(9036,1,"Move_the_expression_in_default_export_to_a_variable_and_add_a_type_annotation_to_it_9036","Move the expression in default export to a variable and add a type annotation to it."),Default_exports_can_t_be_inferred_with_isolatedDeclarations:la(9037,1,"Default_exports_can_t_be_inferred_with_isolatedDeclarations_9037","Default exports can't be inferred with --isolatedDeclarations."),Computed_property_names_on_class_or_object_literals_cannot_be_inferred_with_isolatedDeclarations:la(9038,1,"Computed_property_names_on_class_or_object_literals_cannot_be_inferred_with_isolatedDeclarations_9038","Computed property names on class or object literals cannot be inferred with --isolatedDeclarations."),Type_containing_private_name_0_can_t_be_used_with_isolatedDeclarations:la(9039,1,"Type_containing_private_name_0_can_t_be_used_with_isolatedDeclarations_9039","Type containing private name '{0}' can't be used with --isolatedDeclarations."),JSX_attributes_must_only_be_assigned_a_non_empty_expression:la(17e3,1,"JSX_attributes_must_only_be_assigned_a_non_empty_expression_17000","JSX attributes must only be assigned a non-empty 'expression'."),JSX_elements_cannot_have_multiple_attributes_with_the_same_name:la(17001,1,"JSX_elements_cannot_have_multiple_attributes_with_the_same_name_17001","JSX elements cannot have multiple attributes with the same name."),Expected_corresponding_JSX_closing_tag_for_0:la(17002,1,"Expected_corresponding_JSX_closing_tag_for_0_17002","Expected corresponding JSX closing tag for '{0}'."),Cannot_use_JSX_unless_the_jsx_flag_is_provided:la(17004,1,"Cannot_use_JSX_unless_the_jsx_flag_is_provided_17004","Cannot use JSX unless the '--jsx' flag is provided."),A_constructor_cannot_contain_a_super_call_when_its_class_extends_null:la(17005,1,"A_constructor_cannot_contain_a_super_call_when_its_class_extends_null_17005","A constructor cannot contain a 'super' call when its class extends 'null'."),An_unary_expression_with_the_0_operator_is_not_allowed_in_the_left_hand_side_of_an_exponentiation_expression_Consider_enclosing_the_expression_in_parentheses:la(17006,1,"An_unary_expression_with_the_0_operator_is_not_allowed_in_the_left_hand_side_of_an_exponentiation_ex_17006","An unary expression with the '{0}' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses."),A_type_assertion_expression_is_not_allowed_in_the_left_hand_side_of_an_exponentiation_expression_Consider_enclosing_the_expression_in_parentheses:la(17007,1,"A_type_assertion_expression_is_not_allowed_in_the_left_hand_side_of_an_exponentiation_expression_Con_17007","A type assertion expression is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses."),JSX_element_0_has_no_corresponding_closing_tag:la(17008,1,"JSX_element_0_has_no_corresponding_closing_tag_17008","JSX element '{0}' has no corresponding closing tag."),super_must_be_called_before_accessing_this_in_the_constructor_of_a_derived_class:la(17009,1,"super_must_be_called_before_accessing_this_in_the_constructor_of_a_derived_class_17009","'super' must be called before accessing 'this' in the constructor of a derived class."),Unknown_type_acquisition_option_0:la(17010,1,"Unknown_type_acquisition_option_0_17010","Unknown type acquisition option '{0}'."),super_must_be_called_before_accessing_a_property_of_super_in_the_constructor_of_a_derived_class:la(17011,1,"super_must_be_called_before_accessing_a_property_of_super_in_the_constructor_of_a_derived_class_17011","'super' must be called before accessing a property of 'super' in the constructor of a derived class."),_0_is_not_a_valid_meta_property_for_keyword_1_Did_you_mean_2:la(17012,1,"_0_is_not_a_valid_meta_property_for_keyword_1_Did_you_mean_2_17012","'{0}' is not a valid meta-property for keyword '{1}'. Did you mean '{2}'?"),Meta_property_0_is_only_allowed_in_the_body_of_a_function_declaration_function_expression_or_constructor:la(17013,1,"Meta_property_0_is_only_allowed_in_the_body_of_a_function_declaration_function_expression_or_constru_17013","Meta-property '{0}' is only allowed in the body of a function declaration, function expression, or constructor."),JSX_fragment_has_no_corresponding_closing_tag:la(17014,1,"JSX_fragment_has_no_corresponding_closing_tag_17014","JSX fragment has no corresponding closing tag."),Expected_corresponding_closing_tag_for_JSX_fragment:la(17015,1,"Expected_corresponding_closing_tag_for_JSX_fragment_17015","Expected corresponding closing tag for JSX fragment."),The_jsxFragmentFactory_compiler_option_must_be_provided_to_use_JSX_fragments_with_the_jsxFactory_compiler_option:la(17016,1,"The_jsxFragmentFactory_compiler_option_must_be_provided_to_use_JSX_fragments_with_the_jsxFactory_com_17016","The 'jsxFragmentFactory' compiler option must be provided to use JSX fragments with the 'jsxFactory' compiler option."),An_jsxFrag_pragma_is_required_when_using_an_jsx_pragma_with_JSX_fragments:la(17017,1,"An_jsxFrag_pragma_is_required_when_using_an_jsx_pragma_with_JSX_fragments_17017","An @jsxFrag pragma is required when using an @jsx pragma with JSX fragments."),Unknown_type_acquisition_option_0_Did_you_mean_1:la(17018,1,"Unknown_type_acquisition_option_0_Did_you_mean_1_17018","Unknown type acquisition option '{0}'. Did you mean '{1}'?"),_0_at_the_end_of_a_type_is_not_valid_TypeScript_syntax_Did_you_mean_to_write_1:la(17019,1,"_0_at_the_end_of_a_type_is_not_valid_TypeScript_syntax_Did_you_mean_to_write_1_17019","'{0}' at the end of a type is not valid TypeScript syntax. Did you mean to write '{1}'?"),_0_at_the_start_of_a_type_is_not_valid_TypeScript_syntax_Did_you_mean_to_write_1:la(17020,1,"_0_at_the_start_of_a_type_is_not_valid_TypeScript_syntax_Did_you_mean_to_write_1_17020","'{0}' at the start of a type is not valid TypeScript syntax. Did you mean to write '{1}'?"),Unicode_escape_sequence_cannot_appear_here:la(17021,1,"Unicode_escape_sequence_cannot_appear_here_17021","Unicode escape sequence cannot appear here."),Circularity_detected_while_resolving_configuration_Colon_0:la(18e3,1,"Circularity_detected_while_resolving_configuration_Colon_0_18000","Circularity detected while resolving configuration: {0}"),The_files_list_in_config_file_0_is_empty:la(18002,1,"The_files_list_in_config_file_0_is_empty_18002","The 'files' list in config file '{0}' is empty."),No_inputs_were_found_in_config_file_0_Specified_include_paths_were_1_and_exclude_paths_were_2:la(18003,1,"No_inputs_were_found_in_config_file_0_Specified_include_paths_were_1_and_exclude_paths_were_2_18003","No inputs were found in config file '{0}'. Specified 'include' paths were '{1}' and 'exclude' paths were '{2}'."),File_is_a_CommonJS_module_it_may_be_converted_to_an_ES_module:la(80001,2,"File_is_a_CommonJS_module_it_may_be_converted_to_an_ES_module_80001","File is a CommonJS module; it may be converted to an ES module."),This_constructor_function_may_be_converted_to_a_class_declaration:la(80002,2,"This_constructor_function_may_be_converted_to_a_class_declaration_80002","This constructor function may be converted to a class declaration."),Import_may_be_converted_to_a_default_import:la(80003,2,"Import_may_be_converted_to_a_default_import_80003","Import may be converted to a default import."),JSDoc_types_may_be_moved_to_TypeScript_types:la(80004,2,"JSDoc_types_may_be_moved_to_TypeScript_types_80004","JSDoc types may be moved to TypeScript types."),require_call_may_be_converted_to_an_import:la(80005,2,"require_call_may_be_converted_to_an_import_80005","'require' call may be converted to an import."),This_may_be_converted_to_an_async_function:la(80006,2,"This_may_be_converted_to_an_async_function_80006","This may be converted to an async function."),await_has_no_effect_on_the_type_of_this_expression:la(80007,2,"await_has_no_effect_on_the_type_of_this_expression_80007","'await' has no effect on the type of this expression."),Numeric_literals_with_absolute_values_equal_to_2_53_or_greater_are_too_large_to_be_represented_accurately_as_integers:la(80008,2,"Numeric_literals_with_absolute_values_equal_to_2_53_or_greater_are_too_large_to_be_represented_accur_80008","Numeric literals with absolute values equal to 2^53 or greater are too large to be represented accurately as integers."),JSDoc_typedef_may_be_converted_to_TypeScript_type:la(80009,2,"JSDoc_typedef_may_be_converted_to_TypeScript_type_80009","JSDoc typedef may be converted to TypeScript type."),JSDoc_typedefs_may_be_converted_to_TypeScript_types:la(80010,2,"JSDoc_typedefs_may_be_converted_to_TypeScript_types_80010","JSDoc typedefs may be converted to TypeScript types."),Add_missing_super_call:la(90001,3,"Add_missing_super_call_90001","Add missing 'super()' call"),Make_super_call_the_first_statement_in_the_constructor:la(90002,3,"Make_super_call_the_first_statement_in_the_constructor_90002","Make 'super()' call the first statement in the constructor"),Change_extends_to_implements:la(90003,3,"Change_extends_to_implements_90003","Change 'extends' to 'implements'"),Remove_unused_declaration_for_Colon_0:la(90004,3,"Remove_unused_declaration_for_Colon_0_90004","Remove unused declaration for: '{0}'"),Remove_import_from_0:la(90005,3,"Remove_import_from_0_90005","Remove import from '{0}'"),Implement_interface_0:la(90006,3,"Implement_interface_0_90006","Implement interface '{0}'"),Implement_inherited_abstract_class:la(90007,3,"Implement_inherited_abstract_class_90007","Implement inherited abstract class"),Add_0_to_unresolved_variable:la(90008,3,"Add_0_to_unresolved_variable_90008","Add '{0}.' to unresolved variable"),Remove_variable_statement:la(90010,3,"Remove_variable_statement_90010","Remove variable statement"),Remove_template_tag:la(90011,3,"Remove_template_tag_90011","Remove template tag"),Remove_type_parameters:la(90012,3,"Remove_type_parameters_90012","Remove type parameters"),Import_0_from_1:la(90013,3,"Import_0_from_1_90013","Import '{0}' from \"{1}\""),Change_0_to_1:la(90014,3,"Change_0_to_1_90014","Change '{0}' to '{1}'"),Declare_property_0:la(90016,3,"Declare_property_0_90016","Declare property '{0}'"),Add_index_signature_for_property_0:la(90017,3,"Add_index_signature_for_property_0_90017","Add index signature for property '{0}'"),Disable_checking_for_this_file:la(90018,3,"Disable_checking_for_this_file_90018","Disable checking for this file"),Ignore_this_error_message:la(90019,3,"Ignore_this_error_message_90019","Ignore this error message"),Initialize_property_0_in_the_constructor:la(90020,3,"Initialize_property_0_in_the_constructor_90020","Initialize property '{0}' in the constructor"),Initialize_static_property_0:la(90021,3,"Initialize_static_property_0_90021","Initialize static property '{0}'"),Change_spelling_to_0:la(90022,3,"Change_spelling_to_0_90022","Change spelling to '{0}'"),Declare_method_0:la(90023,3,"Declare_method_0_90023","Declare method '{0}'"),Declare_static_method_0:la(90024,3,"Declare_static_method_0_90024","Declare static method '{0}'"),Prefix_0_with_an_underscore:la(90025,3,"Prefix_0_with_an_underscore_90025","Prefix '{0}' with an underscore"),Rewrite_as_the_indexed_access_type_0:la(90026,3,"Rewrite_as_the_indexed_access_type_0_90026","Rewrite as the indexed access type '{0}'"),Declare_static_property_0:la(90027,3,"Declare_static_property_0_90027","Declare static property '{0}'"),Call_decorator_expression:la(90028,3,"Call_decorator_expression_90028","Call decorator expression"),Add_async_modifier_to_containing_function:la(90029,3,"Add_async_modifier_to_containing_function_90029","Add async modifier to containing function"),Replace_infer_0_with_unknown:la(90030,3,"Replace_infer_0_with_unknown_90030","Replace 'infer {0}' with 'unknown'"),Replace_all_unused_infer_with_unknown:la(90031,3,"Replace_all_unused_infer_with_unknown_90031","Replace all unused 'infer' with 'unknown'"),Add_parameter_name:la(90034,3,"Add_parameter_name_90034","Add parameter name"),Declare_private_property_0:la(90035,3,"Declare_private_property_0_90035","Declare private property '{0}'"),Replace_0_with_Promise_1:la(90036,3,"Replace_0_with_Promise_1_90036","Replace '{0}' with 'Promise<{1}>'"),Fix_all_incorrect_return_type_of_an_async_functions:la(90037,3,"Fix_all_incorrect_return_type_of_an_async_functions_90037","Fix all incorrect return type of an async functions"),Declare_private_method_0:la(90038,3,"Declare_private_method_0_90038","Declare private method '{0}'"),Remove_unused_destructuring_declaration:la(90039,3,"Remove_unused_destructuring_declaration_90039","Remove unused destructuring declaration"),Remove_unused_declarations_for_Colon_0:la(90041,3,"Remove_unused_declarations_for_Colon_0_90041","Remove unused declarations for: '{0}'"),Declare_a_private_field_named_0:la(90053,3,"Declare_a_private_field_named_0_90053","Declare a private field named '{0}'."),Includes_imports_of_types_referenced_by_0:la(90054,3,"Includes_imports_of_types_referenced_by_0_90054","Includes imports of types referenced by '{0}'"),Remove_type_from_import_declaration_from_0:la(90055,3,"Remove_type_from_import_declaration_from_0_90055","Remove 'type' from import declaration from \"{0}\""),Remove_type_from_import_of_0_from_1:la(90056,3,"Remove_type_from_import_of_0_from_1_90056","Remove 'type' from import of '{0}' from \"{1}\""),Add_import_from_0:la(90057,3,"Add_import_from_0_90057",'Add import from "{0}"'),Update_import_from_0:la(90058,3,"Update_import_from_0_90058",'Update import from "{0}"'),Export_0_from_module_1:la(90059,3,"Export_0_from_module_1_90059","Export '{0}' from module '{1}'"),Export_all_referenced_locals:la(90060,3,"Export_all_referenced_locals_90060","Export all referenced locals"),Update_modifiers_of_0:la(90061,3,"Update_modifiers_of_0_90061","Update modifiers of '{0}'"),Add_annotation_of_type_0:la(90062,3,"Add_annotation_of_type_0_90062","Add annotation of type '{0}'"),Add_return_type_0:la(90063,3,"Add_return_type_0_90063","Add return type '{0}'"),Extract_base_class_to_variable:la(90064,3,"Extract_base_class_to_variable_90064","Extract base class to variable"),Extract_default_export_to_variable:la(90065,3,"Extract_default_export_to_variable_90065","Extract default export to variable"),Extract_binding_expressions_to_variable:la(90066,3,"Extract_binding_expressions_to_variable_90066","Extract binding expressions to variable"),Add_all_missing_type_annotations:la(90067,3,"Add_all_missing_type_annotations_90067","Add all missing type annotations"),Add_satisfies_and_an_inline_type_assertion_with_0:la(90068,3,"Add_satisfies_and_an_inline_type_assertion_with_0_90068","Add satisfies and an inline type assertion with '{0}'"),Extract_to_variable_and_replace_with_0_as_typeof_0:la(90069,3,"Extract_to_variable_and_replace_with_0_as_typeof_0_90069","Extract to variable and replace with '{0} as typeof {0}'"),Mark_array_literal_as_const:la(90070,3,"Mark_array_literal_as_const_90070","Mark array literal as const"),Annotate_types_of_properties_expando_function_in_a_namespace:la(90071,3,"Annotate_types_of_properties_expando_function_in_a_namespace_90071","Annotate types of properties expando function in a namespace"),Convert_function_to_an_ES2015_class:la(95001,3,"Convert_function_to_an_ES2015_class_95001","Convert function to an ES2015 class"),Convert_0_to_1_in_0:la(95003,3,"Convert_0_to_1_in_0_95003","Convert '{0}' to '{1} in {0}'"),Extract_to_0_in_1:la(95004,3,"Extract_to_0_in_1_95004","Extract to {0} in {1}"),Extract_function:la(95005,3,"Extract_function_95005","Extract function"),Extract_constant:la(95006,3,"Extract_constant_95006","Extract constant"),Extract_to_0_in_enclosing_scope:la(95007,3,"Extract_to_0_in_enclosing_scope_95007","Extract to {0} in enclosing scope"),Extract_to_0_in_1_scope:la(95008,3,"Extract_to_0_in_1_scope_95008","Extract to {0} in {1} scope"),Annotate_with_type_from_JSDoc:la(95009,3,"Annotate_with_type_from_JSDoc_95009","Annotate with type from JSDoc"),Infer_type_of_0_from_usage:la(95011,3,"Infer_type_of_0_from_usage_95011","Infer type of '{0}' from usage"),Infer_parameter_types_from_usage:la(95012,3,"Infer_parameter_types_from_usage_95012","Infer parameter types from usage"),Convert_to_default_import:la(95013,3,"Convert_to_default_import_95013","Convert to default import"),Install_0:la(95014,3,"Install_0_95014","Install '{0}'"),Replace_import_with_0:la(95015,3,"Replace_import_with_0_95015","Replace import with '{0}'."),Use_synthetic_default_member:la(95016,3,"Use_synthetic_default_member_95016","Use synthetic 'default' member."),Convert_to_ES_module:la(95017,3,"Convert_to_ES_module_95017","Convert to ES module"),Add_undefined_type_to_property_0:la(95018,3,"Add_undefined_type_to_property_0_95018","Add 'undefined' type to property '{0}'"),Add_initializer_to_property_0:la(95019,3,"Add_initializer_to_property_0_95019","Add initializer to property '{0}'"),Add_definite_assignment_assertion_to_property_0:la(95020,3,"Add_definite_assignment_assertion_to_property_0_95020","Add definite assignment assertion to property '{0}'"),Convert_all_type_literals_to_mapped_type:la(95021,3,"Convert_all_type_literals_to_mapped_type_95021","Convert all type literals to mapped type"),Add_all_missing_members:la(95022,3,"Add_all_missing_members_95022","Add all missing members"),Infer_all_types_from_usage:la(95023,3,"Infer_all_types_from_usage_95023","Infer all types from usage"),Delete_all_unused_declarations:la(95024,3,"Delete_all_unused_declarations_95024","Delete all unused declarations"),Prefix_all_unused_declarations_with_where_possible:la(95025,3,"Prefix_all_unused_declarations_with_where_possible_95025","Prefix all unused declarations with '_' where possible"),Fix_all_detected_spelling_errors:la(95026,3,"Fix_all_detected_spelling_errors_95026","Fix all detected spelling errors"),Add_initializers_to_all_uninitialized_properties:la(95027,3,"Add_initializers_to_all_uninitialized_properties_95027","Add initializers to all uninitialized properties"),Add_definite_assignment_assertions_to_all_uninitialized_properties:la(95028,3,"Add_definite_assignment_assertions_to_all_uninitialized_properties_95028","Add definite assignment assertions to all uninitialized properties"),Add_undefined_type_to_all_uninitialized_properties:la(95029,3,"Add_undefined_type_to_all_uninitialized_properties_95029","Add undefined type to all uninitialized properties"),Change_all_jsdoc_style_types_to_TypeScript:la(95030,3,"Change_all_jsdoc_style_types_to_TypeScript_95030","Change all jsdoc-style types to TypeScript"),Change_all_jsdoc_style_types_to_TypeScript_and_add_undefined_to_nullable_types:la(95031,3,"Change_all_jsdoc_style_types_to_TypeScript_and_add_undefined_to_nullable_types_95031","Change all jsdoc-style types to TypeScript (and add '| undefined' to nullable types)"),Implement_all_unimplemented_interfaces:la(95032,3,"Implement_all_unimplemented_interfaces_95032","Implement all unimplemented interfaces"),Install_all_missing_types_packages:la(95033,3,"Install_all_missing_types_packages_95033","Install all missing types packages"),Rewrite_all_as_indexed_access_types:la(95034,3,"Rewrite_all_as_indexed_access_types_95034","Rewrite all as indexed access types"),Convert_all_to_default_imports:la(95035,3,"Convert_all_to_default_imports_95035","Convert all to default imports"),Make_all_super_calls_the_first_statement_in_their_constructor:la(95036,3,"Make_all_super_calls_the_first_statement_in_their_constructor_95036","Make all 'super()' calls the first statement in their constructor"),Add_qualifier_to_all_unresolved_variables_matching_a_member_name:la(95037,3,"Add_qualifier_to_all_unresolved_variables_matching_a_member_name_95037","Add qualifier to all unresolved variables matching a member name"),Change_all_extended_interfaces_to_implements:la(95038,3,"Change_all_extended_interfaces_to_implements_95038","Change all extended interfaces to 'implements'"),Add_all_missing_super_calls:la(95039,3,"Add_all_missing_super_calls_95039","Add all missing super calls"),Implement_all_inherited_abstract_classes:la(95040,3,"Implement_all_inherited_abstract_classes_95040","Implement all inherited abstract classes"),Add_all_missing_async_modifiers:la(95041,3,"Add_all_missing_async_modifiers_95041","Add all missing 'async' modifiers"),Add_ts_ignore_to_all_error_messages:la(95042,3,"Add_ts_ignore_to_all_error_messages_95042","Add '@ts-ignore' to all error messages"),Annotate_everything_with_types_from_JSDoc:la(95043,3,"Annotate_everything_with_types_from_JSDoc_95043","Annotate everything with types from JSDoc"),Add_to_all_uncalled_decorators:la(95044,3,"Add_to_all_uncalled_decorators_95044","Add '()' to all uncalled decorators"),Convert_all_constructor_functions_to_classes:la(95045,3,"Convert_all_constructor_functions_to_classes_95045","Convert all constructor functions to classes"),Generate_get_and_set_accessors:la(95046,3,"Generate_get_and_set_accessors_95046","Generate 'get' and 'set' accessors"),Convert_require_to_import:la(95047,3,"Convert_require_to_import_95047","Convert 'require' to 'import'"),Convert_all_require_to_import:la(95048,3,"Convert_all_require_to_import_95048","Convert all 'require' to 'import'"),Move_to_a_new_file:la(95049,3,"Move_to_a_new_file_95049","Move to a new file"),Remove_unreachable_code:la(95050,3,"Remove_unreachable_code_95050","Remove unreachable code"),Remove_all_unreachable_code:la(95051,3,"Remove_all_unreachable_code_95051","Remove all unreachable code"),Add_missing_typeof:la(95052,3,"Add_missing_typeof_95052","Add missing 'typeof'"),Remove_unused_label:la(95053,3,"Remove_unused_label_95053","Remove unused label"),Remove_all_unused_labels:la(95054,3,"Remove_all_unused_labels_95054","Remove all unused labels"),Convert_0_to_mapped_object_type:la(95055,3,"Convert_0_to_mapped_object_type_95055","Convert '{0}' to mapped object type"),Convert_namespace_import_to_named_imports:la(95056,3,"Convert_namespace_import_to_named_imports_95056","Convert namespace import to named imports"),Convert_named_imports_to_namespace_import:la(95057,3,"Convert_named_imports_to_namespace_import_95057","Convert named imports to namespace import"),Add_or_remove_braces_in_an_arrow_function:la(95058,3,"Add_or_remove_braces_in_an_arrow_function_95058","Add or remove braces in an arrow function"),Add_braces_to_arrow_function:la(95059,3,"Add_braces_to_arrow_function_95059","Add braces to arrow function"),Remove_braces_from_arrow_function:la(95060,3,"Remove_braces_from_arrow_function_95060","Remove braces from arrow function"),Convert_default_export_to_named_export:la(95061,3,"Convert_default_export_to_named_export_95061","Convert default export to named export"),Convert_named_export_to_default_export:la(95062,3,"Convert_named_export_to_default_export_95062","Convert named export to default export"),Add_missing_enum_member_0:la(95063,3,"Add_missing_enum_member_0_95063","Add missing enum member '{0}'"),Add_all_missing_imports:la(95064,3,"Add_all_missing_imports_95064","Add all missing imports"),Convert_to_async_function:la(95065,3,"Convert_to_async_function_95065","Convert to async function"),Convert_all_to_async_functions:la(95066,3,"Convert_all_to_async_functions_95066","Convert all to async functions"),Add_missing_call_parentheses:la(95067,3,"Add_missing_call_parentheses_95067","Add missing call parentheses"),Add_all_missing_call_parentheses:la(95068,3,"Add_all_missing_call_parentheses_95068","Add all missing call parentheses"),Add_unknown_conversion_for_non_overlapping_types:la(95069,3,"Add_unknown_conversion_for_non_overlapping_types_95069","Add 'unknown' conversion for non-overlapping types"),Add_unknown_to_all_conversions_of_non_overlapping_types:la(95070,3,"Add_unknown_to_all_conversions_of_non_overlapping_types_95070","Add 'unknown' to all conversions of non-overlapping types"),Add_missing_new_operator_to_call:la(95071,3,"Add_missing_new_operator_to_call_95071","Add missing 'new' operator to call"),Add_missing_new_operator_to_all_calls:la(95072,3,"Add_missing_new_operator_to_all_calls_95072","Add missing 'new' operator to all calls"),Add_names_to_all_parameters_without_names:la(95073,3,"Add_names_to_all_parameters_without_names_95073","Add names to all parameters without names"),Enable_the_experimentalDecorators_option_in_your_configuration_file:la(95074,3,"Enable_the_experimentalDecorators_option_in_your_configuration_file_95074","Enable the 'experimentalDecorators' option in your configuration file"),Convert_parameters_to_destructured_object:la(95075,3,"Convert_parameters_to_destructured_object_95075","Convert parameters to destructured object"),Extract_type:la(95077,3,"Extract_type_95077","Extract type"),Extract_to_type_alias:la(95078,3,"Extract_to_type_alias_95078","Extract to type alias"),Extract_to_typedef:la(95079,3,"Extract_to_typedef_95079","Extract to typedef"),Infer_this_type_of_0_from_usage:la(95080,3,"Infer_this_type_of_0_from_usage_95080","Infer 'this' type of '{0}' from usage"),Add_const_to_unresolved_variable:la(95081,3,"Add_const_to_unresolved_variable_95081","Add 'const' to unresolved variable"),Add_const_to_all_unresolved_variables:la(95082,3,"Add_const_to_all_unresolved_variables_95082","Add 'const' to all unresolved variables"),Add_await:la(95083,3,"Add_await_95083","Add 'await'"),Add_await_to_initializer_for_0:la(95084,3,"Add_await_to_initializer_for_0_95084","Add 'await' to initializer for '{0}'"),Fix_all_expressions_possibly_missing_await:la(95085,3,"Fix_all_expressions_possibly_missing_await_95085","Fix all expressions possibly missing 'await'"),Remove_unnecessary_await:la(95086,3,"Remove_unnecessary_await_95086","Remove unnecessary 'await'"),Remove_all_unnecessary_uses_of_await:la(95087,3,"Remove_all_unnecessary_uses_of_await_95087","Remove all unnecessary uses of 'await'"),Enable_the_jsx_flag_in_your_configuration_file:la(95088,3,"Enable_the_jsx_flag_in_your_configuration_file_95088","Enable the '--jsx' flag in your configuration file"),Add_await_to_initializers:la(95089,3,"Add_await_to_initializers_95089","Add 'await' to initializers"),Extract_to_interface:la(95090,3,"Extract_to_interface_95090","Extract to interface"),Convert_to_a_bigint_numeric_literal:la(95091,3,"Convert_to_a_bigint_numeric_literal_95091","Convert to a bigint numeric literal"),Convert_all_to_bigint_numeric_literals:la(95092,3,"Convert_all_to_bigint_numeric_literals_95092","Convert all to bigint numeric literals"),Convert_const_to_let:la(95093,3,"Convert_const_to_let_95093","Convert 'const' to 'let'"),Prefix_with_declare:la(95094,3,"Prefix_with_declare_95094","Prefix with 'declare'"),Prefix_all_incorrect_property_declarations_with_declare:la(95095,3,"Prefix_all_incorrect_property_declarations_with_declare_95095","Prefix all incorrect property declarations with 'declare'"),Convert_to_template_string:la(95096,3,"Convert_to_template_string_95096","Convert to template string"),Add_export_to_make_this_file_into_a_module:la(95097,3,"Add_export_to_make_this_file_into_a_module_95097","Add 'export {}' to make this file into a module"),Set_the_target_option_in_your_configuration_file_to_0:la(95098,3,"Set_the_target_option_in_your_configuration_file_to_0_95098","Set the 'target' option in your configuration file to '{0}'"),Set_the_module_option_in_your_configuration_file_to_0:la(95099,3,"Set_the_module_option_in_your_configuration_file_to_0_95099","Set the 'module' option in your configuration file to '{0}'"),Convert_invalid_character_to_its_html_entity_code:la(95100,3,"Convert_invalid_character_to_its_html_entity_code_95100","Convert invalid character to its html entity code"),Convert_all_invalid_characters_to_HTML_entity_code:la(95101,3,"Convert_all_invalid_characters_to_HTML_entity_code_95101","Convert all invalid characters to HTML entity code"),Convert_all_const_to_let:la(95102,3,"Convert_all_const_to_let_95102","Convert all 'const' to 'let'"),Convert_function_expression_0_to_arrow_function:la(95105,3,"Convert_function_expression_0_to_arrow_function_95105","Convert function expression '{0}' to arrow function"),Convert_function_declaration_0_to_arrow_function:la(95106,3,"Convert_function_declaration_0_to_arrow_function_95106","Convert function declaration '{0}' to arrow function"),Fix_all_implicit_this_errors:la(95107,3,"Fix_all_implicit_this_errors_95107","Fix all implicit-'this' errors"),Wrap_invalid_character_in_an_expression_container:la(95108,3,"Wrap_invalid_character_in_an_expression_container_95108","Wrap invalid character in an expression container"),Wrap_all_invalid_characters_in_an_expression_container:la(95109,3,"Wrap_all_invalid_characters_in_an_expression_container_95109","Wrap all invalid characters in an expression container"),Visit_https_Colon_Slash_Slashaka_ms_Slashtsconfig_to_read_more_about_this_file:la(95110,3,"Visit_https_Colon_Slash_Slashaka_ms_Slashtsconfig_to_read_more_about_this_file_95110","Visit https://aka.ms/tsconfig to read more about this file"),Add_a_return_statement:la(95111,3,"Add_a_return_statement_95111","Add a return statement"),Remove_braces_from_arrow_function_body:la(95112,3,"Remove_braces_from_arrow_function_body_95112","Remove braces from arrow function body"),Wrap_the_following_body_with_parentheses_which_should_be_an_object_literal:la(95113,3,"Wrap_the_following_body_with_parentheses_which_should_be_an_object_literal_95113","Wrap the following body with parentheses which should be an object literal"),Add_all_missing_return_statement:la(95114,3,"Add_all_missing_return_statement_95114","Add all missing return statement"),Remove_braces_from_all_arrow_function_bodies_with_relevant_issues:la(95115,3,"Remove_braces_from_all_arrow_function_bodies_with_relevant_issues_95115","Remove braces from all arrow function bodies with relevant issues"),Wrap_all_object_literal_with_parentheses:la(95116,3,"Wrap_all_object_literal_with_parentheses_95116","Wrap all object literal with parentheses"),Move_labeled_tuple_element_modifiers_to_labels:la(95117,3,"Move_labeled_tuple_element_modifiers_to_labels_95117","Move labeled tuple element modifiers to labels"),Convert_overload_list_to_single_signature:la(95118,3,"Convert_overload_list_to_single_signature_95118","Convert overload list to single signature"),Generate_get_and_set_accessors_for_all_overriding_properties:la(95119,3,"Generate_get_and_set_accessors_for_all_overriding_properties_95119","Generate 'get' and 'set' accessors for all overriding properties"),Wrap_in_JSX_fragment:la(95120,3,"Wrap_in_JSX_fragment_95120","Wrap in JSX fragment"),Wrap_all_unparented_JSX_in_JSX_fragment:la(95121,3,"Wrap_all_unparented_JSX_in_JSX_fragment_95121","Wrap all unparented JSX in JSX fragment"),Convert_arrow_function_or_function_expression:la(95122,3,"Convert_arrow_function_or_function_expression_95122","Convert arrow function or function expression"),Convert_to_anonymous_function:la(95123,3,"Convert_to_anonymous_function_95123","Convert to anonymous function"),Convert_to_named_function:la(95124,3,"Convert_to_named_function_95124","Convert to named function"),Convert_to_arrow_function:la(95125,3,"Convert_to_arrow_function_95125","Convert to arrow function"),Remove_parentheses:la(95126,3,"Remove_parentheses_95126","Remove parentheses"),Could_not_find_a_containing_arrow_function:la(95127,3,"Could_not_find_a_containing_arrow_function_95127","Could not find a containing arrow function"),Containing_function_is_not_an_arrow_function:la(95128,3,"Containing_function_is_not_an_arrow_function_95128","Containing function is not an arrow function"),Could_not_find_export_statement:la(95129,3,"Could_not_find_export_statement_95129","Could not find export statement"),This_file_already_has_a_default_export:la(95130,3,"This_file_already_has_a_default_export_95130","This file already has a default export"),Could_not_find_import_clause:la(95131,3,"Could_not_find_import_clause_95131","Could not find import clause"),Could_not_find_namespace_import_or_named_imports:la(95132,3,"Could_not_find_namespace_import_or_named_imports_95132","Could not find namespace import or named imports"),Selection_is_not_a_valid_type_node:la(95133,3,"Selection_is_not_a_valid_type_node_95133","Selection is not a valid type node"),No_type_could_be_extracted_from_this_type_node:la(95134,3,"No_type_could_be_extracted_from_this_type_node_95134","No type could be extracted from this type node"),Could_not_find_property_for_which_to_generate_accessor:la(95135,3,"Could_not_find_property_for_which_to_generate_accessor_95135","Could not find property for which to generate accessor"),Name_is_not_valid:la(95136,3,"Name_is_not_valid_95136","Name is not valid"),Can_only_convert_property_with_modifier:la(95137,3,"Can_only_convert_property_with_modifier_95137","Can only convert property with modifier"),Switch_each_misused_0_to_1:la(95138,3,"Switch_each_misused_0_to_1_95138","Switch each misused '{0}' to '{1}'"),Convert_to_optional_chain_expression:la(95139,3,"Convert_to_optional_chain_expression_95139","Convert to optional chain expression"),Could_not_find_convertible_access_expression:la(95140,3,"Could_not_find_convertible_access_expression_95140","Could not find convertible access expression"),Could_not_find_matching_access_expressions:la(95141,3,"Could_not_find_matching_access_expressions_95141","Could not find matching access expressions"),Can_only_convert_logical_AND_access_chains:la(95142,3,"Can_only_convert_logical_AND_access_chains_95142","Can only convert logical AND access chains"),Add_void_to_Promise_resolved_without_a_value:la(95143,3,"Add_void_to_Promise_resolved_without_a_value_95143","Add 'void' to Promise resolved without a value"),Add_void_to_all_Promises_resolved_without_a_value:la(95144,3,"Add_void_to_all_Promises_resolved_without_a_value_95144","Add 'void' to all Promises resolved without a value"),Use_element_access_for_0:la(95145,3,"Use_element_access_for_0_95145","Use element access for '{0}'"),Use_element_access_for_all_undeclared_properties:la(95146,3,"Use_element_access_for_all_undeclared_properties_95146","Use element access for all undeclared properties."),Delete_all_unused_imports:la(95147,3,"Delete_all_unused_imports_95147","Delete all unused imports"),Infer_function_return_type:la(95148,3,"Infer_function_return_type_95148","Infer function return type"),Return_type_must_be_inferred_from_a_function:la(95149,3,"Return_type_must_be_inferred_from_a_function_95149","Return type must be inferred from a function"),Could_not_determine_function_return_type:la(95150,3,"Could_not_determine_function_return_type_95150","Could not determine function return type"),Could_not_convert_to_arrow_function:la(95151,3,"Could_not_convert_to_arrow_function_95151","Could not convert to arrow function"),Could_not_convert_to_named_function:la(95152,3,"Could_not_convert_to_named_function_95152","Could not convert to named function"),Could_not_convert_to_anonymous_function:la(95153,3,"Could_not_convert_to_anonymous_function_95153","Could not convert to anonymous function"),Can_only_convert_string_concatenations_and_string_literals:la(95154,3,"Can_only_convert_string_concatenations_and_string_literals_95154","Can only convert string concatenations and string literals"),Selection_is_not_a_valid_statement_or_statements:la(95155,3,"Selection_is_not_a_valid_statement_or_statements_95155","Selection is not a valid statement or statements"),Add_missing_function_declaration_0:la(95156,3,"Add_missing_function_declaration_0_95156","Add missing function declaration '{0}'"),Add_all_missing_function_declarations:la(95157,3,"Add_all_missing_function_declarations_95157","Add all missing function declarations"),Method_not_implemented:la(95158,3,"Method_not_implemented_95158","Method not implemented."),Function_not_implemented:la(95159,3,"Function_not_implemented_95159","Function not implemented."),Add_override_modifier:la(95160,3,"Add_override_modifier_95160","Add 'override' modifier"),Remove_override_modifier:la(95161,3,"Remove_override_modifier_95161","Remove 'override' modifier"),Add_all_missing_override_modifiers:la(95162,3,"Add_all_missing_override_modifiers_95162","Add all missing 'override' modifiers"),Remove_all_unnecessary_override_modifiers:la(95163,3,"Remove_all_unnecessary_override_modifiers_95163","Remove all unnecessary 'override' modifiers"),Can_only_convert_named_export:la(95164,3,"Can_only_convert_named_export_95164","Can only convert named export"),Add_missing_properties:la(95165,3,"Add_missing_properties_95165","Add missing properties"),Add_all_missing_properties:la(95166,3,"Add_all_missing_properties_95166","Add all missing properties"),Add_missing_attributes:la(95167,3,"Add_missing_attributes_95167","Add missing attributes"),Add_all_missing_attributes:la(95168,3,"Add_all_missing_attributes_95168","Add all missing attributes"),Add_undefined_to_optional_property_type:la(95169,3,"Add_undefined_to_optional_property_type_95169","Add 'undefined' to optional property type"),Convert_named_imports_to_default_import:la(95170,3,"Convert_named_imports_to_default_import_95170","Convert named imports to default import"),Delete_unused_param_tag_0:la(95171,3,"Delete_unused_param_tag_0_95171","Delete unused '@param' tag '{0}'"),Delete_all_unused_param_tags:la(95172,3,"Delete_all_unused_param_tags_95172","Delete all unused '@param' tags"),Rename_param_tag_name_0_to_1:la(95173,3,"Rename_param_tag_name_0_to_1_95173","Rename '@param' tag name '{0}' to '{1}'"),Use_0:la(95174,3,"Use_0_95174","Use `{0}`."),Use_Number_isNaN_in_all_conditions:la(95175,3,"Use_Number_isNaN_in_all_conditions_95175","Use `Number.isNaN` in all conditions."),Convert_typedef_to_TypeScript_type:la(95176,3,"Convert_typedef_to_TypeScript_type_95176","Convert typedef to TypeScript type."),Convert_all_typedef_to_TypeScript_types:la(95177,3,"Convert_all_typedef_to_TypeScript_types_95177","Convert all typedef to TypeScript types."),Move_to_file:la(95178,3,"Move_to_file_95178","Move to file"),Cannot_move_to_file_selected_file_is_invalid:la(95179,3,"Cannot_move_to_file_selected_file_is_invalid_95179","Cannot move to file, selected file is invalid"),Use_import_type:la(95180,3,"Use_import_type_95180","Use 'import type'"),Use_type_0:la(95181,3,"Use_type_0_95181","Use 'type {0}'"),Fix_all_with_type_only_imports:la(95182,3,"Fix_all_with_type_only_imports_95182","Fix all with type-only imports"),Cannot_move_statements_to_the_selected_file:la(95183,3,"Cannot_move_statements_to_the_selected_file_95183","Cannot move statements to the selected file"),Inline_variable:la(95184,3,"Inline_variable_95184","Inline variable"),Could_not_find_variable_to_inline:la(95185,3,"Could_not_find_variable_to_inline_95185","Could not find variable to inline."),Variables_with_multiple_declarations_cannot_be_inlined:la(95186,3,"Variables_with_multiple_declarations_cannot_be_inlined_95186","Variables with multiple declarations cannot be inlined."),Add_missing_comma_for_object_member_completion_0:la(95187,3,"Add_missing_comma_for_object_member_completion_0_95187","Add missing comma for object member completion '{0}'."),Add_missing_parameter_to_0:la(95188,3,"Add_missing_parameter_to_0_95188","Add missing parameter to '{0}'"),Add_missing_parameters_to_0:la(95189,3,"Add_missing_parameters_to_0_95189","Add missing parameters to '{0}'"),Add_all_missing_parameters:la(95190,3,"Add_all_missing_parameters_95190","Add all missing parameters"),Add_optional_parameter_to_0:la(95191,3,"Add_optional_parameter_to_0_95191","Add optional parameter to '{0}'"),Add_optional_parameters_to_0:la(95192,3,"Add_optional_parameters_to_0_95192","Add optional parameters to '{0}'"),Add_all_optional_parameters:la(95193,3,"Add_all_optional_parameters_95193","Add all optional parameters"),Wrap_in_parentheses:la(95194,3,"Wrap_in_parentheses_95194","Wrap in parentheses"),Wrap_all_invalid_decorator_expressions_in_parentheses:la(95195,3,"Wrap_all_invalid_decorator_expressions_in_parentheses_95195","Wrap all invalid decorator expressions in parentheses"),Add_resolution_mode_import_attribute:la(95196,3,"Add_resolution_mode_import_attribute_95196","Add 'resolution-mode' import attribute"),Add_resolution_mode_import_attribute_to_all_type_only_imports_that_need_it:la(95197,3,"Add_resolution_mode_import_attribute_to_all_type_only_imports_that_need_it_95197","Add 'resolution-mode' import attribute to all type-only imports that need it"),No_value_exists_in_scope_for_the_shorthand_property_0_Either_declare_one_or_provide_an_initializer:la(18004,1,"No_value_exists_in_scope_for_the_shorthand_property_0_Either_declare_one_or_provide_an_initializer_18004","No value exists in scope for the shorthand property '{0}'. Either declare one or provide an initializer."),Classes_may_not_have_a_field_named_constructor:la(18006,1,"Classes_may_not_have_a_field_named_constructor_18006","Classes may not have a field named 'constructor'."),JSX_expressions_may_not_use_the_comma_operator_Did_you_mean_to_write_an_array:la(18007,1,"JSX_expressions_may_not_use_the_comma_operator_Did_you_mean_to_write_an_array_18007","JSX expressions may not use the comma operator. Did you mean to write an array?"),Private_identifiers_cannot_be_used_as_parameters:la(18009,1,"Private_identifiers_cannot_be_used_as_parameters_18009","Private identifiers cannot be used as parameters."),An_accessibility_modifier_cannot_be_used_with_a_private_identifier:la(18010,1,"An_accessibility_modifier_cannot_be_used_with_a_private_identifier_18010","An accessibility modifier cannot be used with a private identifier."),The_operand_of_a_delete_operator_cannot_be_a_private_identifier:la(18011,1,"The_operand_of_a_delete_operator_cannot_be_a_private_identifier_18011","The operand of a 'delete' operator cannot be a private identifier."),constructor_is_a_reserved_word:la(18012,1,"constructor_is_a_reserved_word_18012","'#constructor' is a reserved word."),Property_0_is_not_accessible_outside_class_1_because_it_has_a_private_identifier:la(18013,1,"Property_0_is_not_accessible_outside_class_1_because_it_has_a_private_identifier_18013","Property '{0}' is not accessible outside class '{1}' because it has a private identifier."),The_property_0_cannot_be_accessed_on_type_1_within_this_class_because_it_is_shadowed_by_another_private_identifier_with_the_same_spelling:la(18014,1,"The_property_0_cannot_be_accessed_on_type_1_within_this_class_because_it_is_shadowed_by_another_priv_18014","The property '{0}' cannot be accessed on type '{1}' within this class because it is shadowed by another private identifier with the same spelling."),Property_0_in_type_1_refers_to_a_different_member_that_cannot_be_accessed_from_within_type_2:la(18015,1,"Property_0_in_type_1_refers_to_a_different_member_that_cannot_be_accessed_from_within_type_2_18015","Property '{0}' in type '{1}' refers to a different member that cannot be accessed from within type '{2}'."),Private_identifiers_are_not_allowed_outside_class_bodies:la(18016,1,"Private_identifiers_are_not_allowed_outside_class_bodies_18016","Private identifiers are not allowed outside class bodies."),The_shadowing_declaration_of_0_is_defined_here:la(18017,1,"The_shadowing_declaration_of_0_is_defined_here_18017","The shadowing declaration of '{0}' is defined here"),The_declaration_of_0_that_you_probably_intended_to_use_is_defined_here:la(18018,1,"The_declaration_of_0_that_you_probably_intended_to_use_is_defined_here_18018","The declaration of '{0}' that you probably intended to use is defined here"),_0_modifier_cannot_be_used_with_a_private_identifier:la(18019,1,"_0_modifier_cannot_be_used_with_a_private_identifier_18019","'{0}' modifier cannot be used with a private identifier."),An_enum_member_cannot_be_named_with_a_private_identifier:la(18024,1,"An_enum_member_cannot_be_named_with_a_private_identifier_18024","An enum member cannot be named with a private identifier."),can_only_be_used_at_the_start_of_a_file:la(18026,1,"can_only_be_used_at_the_start_of_a_file_18026","'#!' can only be used at the start of a file."),Compiler_reserves_name_0_when_emitting_private_identifier_downlevel:la(18027,1,"Compiler_reserves_name_0_when_emitting_private_identifier_downlevel_18027","Compiler reserves name '{0}' when emitting private identifier downlevel."),Private_identifiers_are_only_available_when_targeting_ECMAScript_2015_and_higher:la(18028,1,"Private_identifiers_are_only_available_when_targeting_ECMAScript_2015_and_higher_18028","Private identifiers are only available when targeting ECMAScript 2015 and higher."),Private_identifiers_are_not_allowed_in_variable_declarations:la(18029,1,"Private_identifiers_are_not_allowed_in_variable_declarations_18029","Private identifiers are not allowed in variable declarations."),An_optional_chain_cannot_contain_private_identifiers:la(18030,1,"An_optional_chain_cannot_contain_private_identifiers_18030","An optional chain cannot contain private identifiers."),The_intersection_0_was_reduced_to_never_because_property_1_has_conflicting_types_in_some_constituents:la(18031,1,"The_intersection_0_was_reduced_to_never_because_property_1_has_conflicting_types_in_some_constituent_18031","The intersection '{0}' was reduced to 'never' because property '{1}' has conflicting types in some constituents."),The_intersection_0_was_reduced_to_never_because_property_1_exists_in_multiple_constituents_and_is_private_in_some:la(18032,1,"The_intersection_0_was_reduced_to_never_because_property_1_exists_in_multiple_constituents_and_is_pr_18032","The intersection '{0}' was reduced to 'never' because property '{1}' exists in multiple constituents and is private in some."),Type_0_is_not_assignable_to_type_1_as_required_for_computed_enum_member_values:la(18033,1,"Type_0_is_not_assignable_to_type_1_as_required_for_computed_enum_member_values_18033","Type '{0}' is not assignable to type '{1}' as required for computed enum member values."),Specify_the_JSX_fragment_factory_function_to_use_when_targeting_react_JSX_emit_with_jsxFactory_compiler_option_is_specified_e_g_Fragment:la(18034,3,"Specify_the_JSX_fragment_factory_function_to_use_when_targeting_react_JSX_emit_with_jsxFactory_compi_18034","Specify the JSX fragment factory function to use when targeting 'react' JSX emit with 'jsxFactory' compiler option is specified, e.g. 'Fragment'."),Invalid_value_for_jsxFragmentFactory_0_is_not_a_valid_identifier_or_qualified_name:la(18035,1,"Invalid_value_for_jsxFragmentFactory_0_is_not_a_valid_identifier_or_qualified_name_18035","Invalid value for 'jsxFragmentFactory'. '{0}' is not a valid identifier or qualified-name."),Class_decorators_can_t_be_used_with_static_private_identifier_Consider_removing_the_experimental_decorator:la(18036,1,"Class_decorators_can_t_be_used_with_static_private_identifier_Consider_removing_the_experimental_dec_18036","Class decorators can't be used with static private identifier. Consider removing the experimental decorator."),await_expression_cannot_be_used_inside_a_class_static_block:la(18037,1,"await_expression_cannot_be_used_inside_a_class_static_block_18037","'await' expression cannot be used inside a class static block."),for_await_loops_cannot_be_used_inside_a_class_static_block:la(18038,1,"for_await_loops_cannot_be_used_inside_a_class_static_block_18038","'for await' loops cannot be used inside a class static block."),Invalid_use_of_0_It_cannot_be_used_inside_a_class_static_block:la(18039,1,"Invalid_use_of_0_It_cannot_be_used_inside_a_class_static_block_18039","Invalid use of '{0}'. It cannot be used inside a class static block."),A_return_statement_cannot_be_used_inside_a_class_static_block:la(18041,1,"A_return_statement_cannot_be_used_inside_a_class_static_block_18041","A 'return' statement cannot be used inside a class static block."),_0_is_a_type_and_cannot_be_imported_in_JavaScript_files_Use_1_in_a_JSDoc_type_annotation:la(18042,1,"_0_is_a_type_and_cannot_be_imported_in_JavaScript_files_Use_1_in_a_JSDoc_type_annotation_18042","'{0}' is a type and cannot be imported in JavaScript files. Use '{1}' in a JSDoc type annotation."),Types_cannot_appear_in_export_declarations_in_JavaScript_files:la(18043,1,"Types_cannot_appear_in_export_declarations_in_JavaScript_files_18043","Types cannot appear in export declarations in JavaScript files."),_0_is_automatically_exported_here:la(18044,3,"_0_is_automatically_exported_here_18044","'{0}' is automatically exported here."),Properties_with_the_accessor_modifier_are_only_available_when_targeting_ECMAScript_2015_and_higher:la(18045,1,"Properties_with_the_accessor_modifier_are_only_available_when_targeting_ECMAScript_2015_and_higher_18045","Properties with the 'accessor' modifier are only available when targeting ECMAScript 2015 and higher."),_0_is_of_type_unknown:la(18046,1,"_0_is_of_type_unknown_18046","'{0}' is of type 'unknown'."),_0_is_possibly_null:la(18047,1,"_0_is_possibly_null_18047","'{0}' is possibly 'null'."),_0_is_possibly_undefined:la(18048,1,"_0_is_possibly_undefined_18048","'{0}' is possibly 'undefined'."),_0_is_possibly_null_or_undefined:la(18049,1,"_0_is_possibly_null_or_undefined_18049","'{0}' is possibly 'null' or 'undefined'."),The_value_0_cannot_be_used_here:la(18050,1,"The_value_0_cannot_be_used_here_18050","The value '{0}' cannot be used here."),Compiler_option_0_cannot_be_given_an_empty_string:la(18051,1,"Compiler_option_0_cannot_be_given_an_empty_string_18051","Compiler option '{0}' cannot be given an empty string."),Its_type_0_is_not_a_valid_JSX_element_type:la(18053,1,"Its_type_0_is_not_a_valid_JSX_element_type_18053","Its type '{0}' is not a valid JSX element type."),await_using_statements_cannot_be_used_inside_a_class_static_block:la(18054,1,"await_using_statements_cannot_be_used_inside_a_class_static_block_18054","'await using' statements cannot be used inside a class static block."),_0_has_a_string_type_but_must_have_syntactically_recognizable_string_syntax_when_isolatedModules_is_enabled:la(18055,1,"_0_has_a_string_type_but_must_have_syntactically_recognizable_string_syntax_when_isolatedModules_is__18055","'{0}' has a string type, but must have syntactically recognizable string syntax when 'isolatedModules' is enabled."),Enum_member_following_a_non_literal_numeric_member_must_have_an_initializer_when_isolatedModules_is_enabled:la(18056,1,"Enum_member_following_a_non_literal_numeric_member_must_have_an_initializer_when_isolatedModules_is__18056","Enum member following a non-literal numeric member must have an initializer when 'isolatedModules' is enabled."),String_literal_import_and_export_names_are_not_supported_when_the_module_flag_is_set_to_es2015_or_es2020:la(18057,1,"String_literal_import_and_export_names_are_not_supported_when_the_module_flag_is_set_to_es2015_or_es_18057","String literal import and export names are not supported when the '--module' flag is set to 'es2015' or 'es2020'."),Default_imports_are_not_allowed_in_a_deferred_import:la(18058,1,"Default_imports_are_not_allowed_in_a_deferred_import_18058","Default imports are not allowed in a deferred import."),Named_imports_are_not_allowed_in_a_deferred_import:la(18059,1,"Named_imports_are_not_allowed_in_a_deferred_import_18059","Named imports are not allowed in a deferred import."),Deferred_imports_are_only_supported_when_the_module_flag_is_set_to_esnext_or_preserve:la(18060,1,"Deferred_imports_are_only_supported_when_the_module_flag_is_set_to_esnext_or_preserve_18060","Deferred imports are only supported when the '--module' flag is set to 'esnext' or 'preserve'."),_0_is_not_a_valid_meta_property_for_keyword_import_Did_you_mean_meta_or_defer:la(18061,1,"_0_is_not_a_valid_meta_property_for_keyword_import_Did_you_mean_meta_or_defer_18061","'{0}' is not a valid meta-property for keyword 'import'. Did you mean 'meta' or 'defer'?")};function ua(e){return e>=80}function da(e){return 32===e||ua(e)}var pa={abstract:128,accessor:129,any:133,as:130,asserts:131,assert:132,bigint:163,boolean:136,break:83,case:84,catch:85,class:86,continue:88,const:87,constructor:137,debugger:89,declare:138,default:90,defer:166,delete:91,do:92,else:93,enum:94,export:95,extends:96,false:97,finally:98,for:99,from:161,function:100,get:139,if:101,implements:119,import:102,in:103,infer:140,instanceof:104,interface:120,intrinsic:141,is:142,keyof:143,let:121,module:144,namespace:145,never:146,new:105,null:106,number:150,object:151,package:122,private:123,protected:124,public:125,override:164,out:147,readonly:148,require:149,global:162,return:107,satisfies:152,set:153,static:126,string:154,super:108,switch:109,symbol:155,this:110,throw:111,true:112,try:113,type:156,typeof:114,undefined:157,unique:158,unknown:159,using:160,var:115,void:116,while:117,with:118,yield:127,async:134,await:135,of:165},fa=new Map(Object.entries(pa)),ma=new Map(Object.entries({...pa,"{":19,"}":20,"(":21,")":22,"[":23,"]":24,".":25,"...":26,";":27,",":28,"<":30,">":32,"<=":33,">=":34,"==":35,"!=":36,"===":37,"!==":38,"=>":39,"+":40,"-":41,"**":43,"*":42,"/":44,"%":45,"++":46,"--":47,"<<":48,">":49,">>>":50,"&":51,"|":52,"^":53,"!":54,"~":55,"&&":56,"||":57,"?":58,"??":61,"?.":29,":":59,"=":64,"+=":65,"-=":66,"*=":67,"**=":68,"/=":69,"%=":70,"<<=":71,">>=":72,">>>=":73,"&=":74,"|=":75,"^=":79,"||=":76,"&&=":77,"??=":78,"@":60,"#":63,"`":62})),ga=new Map([[100,1],[103,2],[105,4],[109,8],[115,16],[117,32],[118,64],[121,128]]),ha=new Map([[1,Di.RegularExpressionFlagsHasIndices],[16,Di.RegularExpressionFlagsDotAll],[32,Di.RegularExpressionFlagsUnicode],[64,Di.RegularExpressionFlagsUnicodeSets],[128,Di.RegularExpressionFlagsSticky]]),ya=[170,170,181,181,186,186,192,214,216,246,248,705,710,721,736,740,748,748,750,750,880,884,886,887,890,893,902,902,904,906,908,908,910,929,931,1013,1015,1153,1162,1319,1329,1366,1369,1369,1377,1415,1488,1514,1520,1522,1568,1610,1646,1647,1649,1747,1749,1749,1765,1766,1774,1775,1786,1788,1791,1791,1808,1808,1810,1839,1869,1957,1969,1969,1994,2026,2036,2037,2042,2042,2048,2069,2074,2074,2084,2084,2088,2088,2112,2136,2208,2208,2210,2220,2308,2361,2365,2365,2384,2384,2392,2401,2417,2423,2425,2431,2437,2444,2447,2448,2451,2472,2474,2480,2482,2482,2486,2489,2493,2493,2510,2510,2524,2525,2527,2529,2544,2545,2565,2570,2575,2576,2579,2600,2602,2608,2610,2611,2613,2614,2616,2617,2649,2652,2654,2654,2674,2676,2693,2701,2703,2705,2707,2728,2730,2736,2738,2739,2741,2745,2749,2749,2768,2768,2784,2785,2821,2828,2831,2832,2835,2856,2858,2864,2866,2867,2869,2873,2877,2877,2908,2909,2911,2913,2929,2929,2947,2947,2949,2954,2958,2960,2962,2965,2969,2970,2972,2972,2974,2975,2979,2980,2984,2986,2990,3001,3024,3024,3077,3084,3086,3088,3090,3112,3114,3123,3125,3129,3133,3133,3160,3161,3168,3169,3205,3212,3214,3216,3218,3240,3242,3251,3253,3257,3261,3261,3294,3294,3296,3297,3313,3314,3333,3340,3342,3344,3346,3386,3389,3389,3406,3406,3424,3425,3450,3455,3461,3478,3482,3505,3507,3515,3517,3517,3520,3526,3585,3632,3634,3635,3648,3654,3713,3714,3716,3716,3719,3720,3722,3722,3725,3725,3732,3735,3737,3743,3745,3747,3749,3749,3751,3751,3754,3755,3757,3760,3762,3763,3773,3773,3776,3780,3782,3782,3804,3807,3840,3840,3904,3911,3913,3948,3976,3980,4096,4138,4159,4159,4176,4181,4186,4189,4193,4193,4197,4198,4206,4208,4213,4225,4238,4238,4256,4293,4295,4295,4301,4301,4304,4346,4348,4680,4682,4685,4688,4694,4696,4696,4698,4701,4704,4744,4746,4749,4752,4784,4786,4789,4792,4798,4800,4800,4802,4805,4808,4822,4824,4880,4882,4885,4888,4954,4992,5007,5024,5108,5121,5740,5743,5759,5761,5786,5792,5866,5870,5872,5888,5900,5902,5905,5920,5937,5952,5969,5984,5996,5998,6e3,6016,6067,6103,6103,6108,6108,6176,6263,6272,6312,6314,6314,6320,6389,6400,6428,6480,6509,6512,6516,6528,6571,6593,6599,6656,6678,6688,6740,6823,6823,6917,6963,6981,6987,7043,7072,7086,7087,7098,7141,7168,7203,7245,7247,7258,7293,7401,7404,7406,7409,7413,7414,7424,7615,7680,7957,7960,7965,7968,8005,8008,8013,8016,8023,8025,8025,8027,8027,8029,8029,8031,8061,8064,8116,8118,8124,8126,8126,8130,8132,8134,8140,8144,8147,8150,8155,8160,8172,8178,8180,8182,8188,8305,8305,8319,8319,8336,8348,8450,8450,8455,8455,8458,8467,8469,8469,8473,8477,8484,8484,8486,8486,8488,8488,8490,8493,8495,8505,8508,8511,8517,8521,8526,8526,8544,8584,11264,11310,11312,11358,11360,11492,11499,11502,11506,11507,11520,11557,11559,11559,11565,11565,11568,11623,11631,11631,11648,11670,11680,11686,11688,11694,11696,11702,11704,11710,11712,11718,11720,11726,11728,11734,11736,11742,11823,11823,12293,12295,12321,12329,12337,12341,12344,12348,12353,12438,12445,12447,12449,12538,12540,12543,12549,12589,12593,12686,12704,12730,12784,12799,13312,19893,19968,40908,40960,42124,42192,42237,42240,42508,42512,42527,42538,42539,42560,42606,42623,42647,42656,42735,42775,42783,42786,42888,42891,42894,42896,42899,42912,42922,43e3,43009,43011,43013,43015,43018,43020,43042,43072,43123,43138,43187,43250,43255,43259,43259,43274,43301,43312,43334,43360,43388,43396,43442,43471,43471,43520,43560,43584,43586,43588,43595,43616,43638,43642,43642,43648,43695,43697,43697,43701,43702,43705,43709,43712,43712,43714,43714,43739,43741,43744,43754,43762,43764,43777,43782,43785,43790,43793,43798,43808,43814,43816,43822,43968,44002,44032,55203,55216,55238,55243,55291,63744,64109,64112,64217,64256,64262,64275,64279,64285,64285,64287,64296,64298,64310,64312,64316,64318,64318,64320,64321,64323,64324,64326,64433,64467,64829,64848,64911,64914,64967,65008,65019,65136,65140,65142,65276,65313,65338,65345,65370,65382,65470,65474,65479,65482,65487,65490,65495,65498,65500],va=[170,170,181,181,186,186,192,214,216,246,248,705,710,721,736,740,748,748,750,750,768,884,886,887,890,893,902,902,904,906,908,908,910,929,931,1013,1015,1153,1155,1159,1162,1319,1329,1366,1369,1369,1377,1415,1425,1469,1471,1471,1473,1474,1476,1477,1479,1479,1488,1514,1520,1522,1552,1562,1568,1641,1646,1747,1749,1756,1759,1768,1770,1788,1791,1791,1808,1866,1869,1969,1984,2037,2042,2042,2048,2093,2112,2139,2208,2208,2210,2220,2276,2302,2304,2403,2406,2415,2417,2423,2425,2431,2433,2435,2437,2444,2447,2448,2451,2472,2474,2480,2482,2482,2486,2489,2492,2500,2503,2504,2507,2510,2519,2519,2524,2525,2527,2531,2534,2545,2561,2563,2565,2570,2575,2576,2579,2600,2602,2608,2610,2611,2613,2614,2616,2617,2620,2620,2622,2626,2631,2632,2635,2637,2641,2641,2649,2652,2654,2654,2662,2677,2689,2691,2693,2701,2703,2705,2707,2728,2730,2736,2738,2739,2741,2745,2748,2757,2759,2761,2763,2765,2768,2768,2784,2787,2790,2799,2817,2819,2821,2828,2831,2832,2835,2856,2858,2864,2866,2867,2869,2873,2876,2884,2887,2888,2891,2893,2902,2903,2908,2909,2911,2915,2918,2927,2929,2929,2946,2947,2949,2954,2958,2960,2962,2965,2969,2970,2972,2972,2974,2975,2979,2980,2984,2986,2990,3001,3006,3010,3014,3016,3018,3021,3024,3024,3031,3031,3046,3055,3073,3075,3077,3084,3086,3088,3090,3112,3114,3123,3125,3129,3133,3140,3142,3144,3146,3149,3157,3158,3160,3161,3168,3171,3174,3183,3202,3203,3205,3212,3214,3216,3218,3240,3242,3251,3253,3257,3260,3268,3270,3272,3274,3277,3285,3286,3294,3294,3296,3299,3302,3311,3313,3314,3330,3331,3333,3340,3342,3344,3346,3386,3389,3396,3398,3400,3402,3406,3415,3415,3424,3427,3430,3439,3450,3455,3458,3459,3461,3478,3482,3505,3507,3515,3517,3517,3520,3526,3530,3530,3535,3540,3542,3542,3544,3551,3570,3571,3585,3642,3648,3662,3664,3673,3713,3714,3716,3716,3719,3720,3722,3722,3725,3725,3732,3735,3737,3743,3745,3747,3749,3749,3751,3751,3754,3755,3757,3769,3771,3773,3776,3780,3782,3782,3784,3789,3792,3801,3804,3807,3840,3840,3864,3865,3872,3881,3893,3893,3895,3895,3897,3897,3902,3911,3913,3948,3953,3972,3974,3991,3993,4028,4038,4038,4096,4169,4176,4253,4256,4293,4295,4295,4301,4301,4304,4346,4348,4680,4682,4685,4688,4694,4696,4696,4698,4701,4704,4744,4746,4749,4752,4784,4786,4789,4792,4798,4800,4800,4802,4805,4808,4822,4824,4880,4882,4885,4888,4954,4957,4959,4992,5007,5024,5108,5121,5740,5743,5759,5761,5786,5792,5866,5870,5872,5888,5900,5902,5908,5920,5940,5952,5971,5984,5996,5998,6e3,6002,6003,6016,6099,6103,6103,6108,6109,6112,6121,6155,6157,6160,6169,6176,6263,6272,6314,6320,6389,6400,6428,6432,6443,6448,6459,6470,6509,6512,6516,6528,6571,6576,6601,6608,6617,6656,6683,6688,6750,6752,6780,6783,6793,6800,6809,6823,6823,6912,6987,6992,7001,7019,7027,7040,7155,7168,7223,7232,7241,7245,7293,7376,7378,7380,7414,7424,7654,7676,7957,7960,7965,7968,8005,8008,8013,8016,8023,8025,8025,8027,8027,8029,8029,8031,8061,8064,8116,8118,8124,8126,8126,8130,8132,8134,8140,8144,8147,8150,8155,8160,8172,8178,8180,8182,8188,8204,8205,8255,8256,8276,8276,8305,8305,8319,8319,8336,8348,8400,8412,8417,8417,8421,8432,8450,8450,8455,8455,8458,8467,8469,8469,8473,8477,8484,8484,8486,8486,8488,8488,8490,8493,8495,8505,8508,8511,8517,8521,8526,8526,8544,8584,11264,11310,11312,11358,11360,11492,11499,11507,11520,11557,11559,11559,11565,11565,11568,11623,11631,11631,11647,11670,11680,11686,11688,11694,11696,11702,11704,11710,11712,11718,11720,11726,11728,11734,11736,11742,11744,11775,11823,11823,12293,12295,12321,12335,12337,12341,12344,12348,12353,12438,12441,12442,12445,12447,12449,12538,12540,12543,12549,12589,12593,12686,12704,12730,12784,12799,13312,19893,19968,40908,40960,42124,42192,42237,42240,42508,42512,42539,42560,42607,42612,42621,42623,42647,42655,42737,42775,42783,42786,42888,42891,42894,42896,42899,42912,42922,43e3,43047,43072,43123,43136,43204,43216,43225,43232,43255,43259,43259,43264,43309,43312,43347,43360,43388,43392,43456,43471,43481,43520,43574,43584,43597,43600,43609,43616,43638,43642,43643,43648,43714,43739,43741,43744,43759,43762,43766,43777,43782,43785,43790,43793,43798,43808,43814,43816,43822,43968,44010,44012,44013,44016,44025,44032,55203,55216,55238,55243,55291,63744,64109,64112,64217,64256,64262,64275,64279,64285,64296,64298,64310,64312,64316,64318,64318,64320,64321,64323,64324,64326,64433,64467,64829,64848,64911,64914,64967,65008,65019,65024,65039,65056,65062,65075,65076,65101,65103,65136,65140,65142,65276,65296,65305,65313,65338,65343,65343,65345,65370,65382,65470,65474,65479,65482,65487,65490,65495,65498,65500],ba=[65,90,97,122,170,170,181,181,186,186,192,214,216,246,248,705,710,721,736,740,748,748,750,750,880,884,886,887,890,893,895,895,902,902,904,906,908,908,910,929,931,1013,1015,1153,1162,1327,1329,1366,1369,1369,1376,1416,1488,1514,1519,1522,1568,1610,1646,1647,1649,1747,1749,1749,1765,1766,1774,1775,1786,1788,1791,1791,1808,1808,1810,1839,1869,1957,1969,1969,1994,2026,2036,2037,2042,2042,2048,2069,2074,2074,2084,2084,2088,2088,2112,2136,2144,2154,2160,2183,2185,2190,2208,2249,2308,2361,2365,2365,2384,2384,2392,2401,2417,2432,2437,2444,2447,2448,2451,2472,2474,2480,2482,2482,2486,2489,2493,2493,2510,2510,2524,2525,2527,2529,2544,2545,2556,2556,2565,2570,2575,2576,2579,2600,2602,2608,2610,2611,2613,2614,2616,2617,2649,2652,2654,2654,2674,2676,2693,2701,2703,2705,2707,2728,2730,2736,2738,2739,2741,2745,2749,2749,2768,2768,2784,2785,2809,2809,2821,2828,2831,2832,2835,2856,2858,2864,2866,2867,2869,2873,2877,2877,2908,2909,2911,2913,2929,2929,2947,2947,2949,2954,2958,2960,2962,2965,2969,2970,2972,2972,2974,2975,2979,2980,2984,2986,2990,3001,3024,3024,3077,3084,3086,3088,3090,3112,3114,3129,3133,3133,3160,3162,3165,3165,3168,3169,3200,3200,3205,3212,3214,3216,3218,3240,3242,3251,3253,3257,3261,3261,3293,3294,3296,3297,3313,3314,3332,3340,3342,3344,3346,3386,3389,3389,3406,3406,3412,3414,3423,3425,3450,3455,3461,3478,3482,3505,3507,3515,3517,3517,3520,3526,3585,3632,3634,3635,3648,3654,3713,3714,3716,3716,3718,3722,3724,3747,3749,3749,3751,3760,3762,3763,3773,3773,3776,3780,3782,3782,3804,3807,3840,3840,3904,3911,3913,3948,3976,3980,4096,4138,4159,4159,4176,4181,4186,4189,4193,4193,4197,4198,4206,4208,4213,4225,4238,4238,4256,4293,4295,4295,4301,4301,4304,4346,4348,4680,4682,4685,4688,4694,4696,4696,4698,4701,4704,4744,4746,4749,4752,4784,4786,4789,4792,4798,4800,4800,4802,4805,4808,4822,4824,4880,4882,4885,4888,4954,4992,5007,5024,5109,5112,5117,5121,5740,5743,5759,5761,5786,5792,5866,5870,5880,5888,5905,5919,5937,5952,5969,5984,5996,5998,6e3,6016,6067,6103,6103,6108,6108,6176,6264,6272,6312,6314,6314,6320,6389,6400,6430,6480,6509,6512,6516,6528,6571,6576,6601,6656,6678,6688,6740,6823,6823,6917,6963,6981,6988,7043,7072,7086,7087,7098,7141,7168,7203,7245,7247,7258,7293,7296,7304,7312,7354,7357,7359,7401,7404,7406,7411,7413,7414,7418,7418,7424,7615,7680,7957,7960,7965,7968,8005,8008,8013,8016,8023,8025,8025,8027,8027,8029,8029,8031,8061,8064,8116,8118,8124,8126,8126,8130,8132,8134,8140,8144,8147,8150,8155,8160,8172,8178,8180,8182,8188,8305,8305,8319,8319,8336,8348,8450,8450,8455,8455,8458,8467,8469,8469,8472,8477,8484,8484,8486,8486,8488,8488,8490,8505,8508,8511,8517,8521,8526,8526,8544,8584,11264,11492,11499,11502,11506,11507,11520,11557,11559,11559,11565,11565,11568,11623,11631,11631,11648,11670,11680,11686,11688,11694,11696,11702,11704,11710,11712,11718,11720,11726,11728,11734,11736,11742,12293,12295,12321,12329,12337,12341,12344,12348,12353,12438,12443,12447,12449,12538,12540,12543,12549,12591,12593,12686,12704,12735,12784,12799,13312,19903,19968,42124,42192,42237,42240,42508,42512,42527,42538,42539,42560,42606,42623,42653,42656,42735,42775,42783,42786,42888,42891,42954,42960,42961,42963,42963,42965,42969,42994,43009,43011,43013,43015,43018,43020,43042,43072,43123,43138,43187,43250,43255,43259,43259,43261,43262,43274,43301,43312,43334,43360,43388,43396,43442,43471,43471,43488,43492,43494,43503,43514,43518,43520,43560,43584,43586,43588,43595,43616,43638,43642,43642,43646,43695,43697,43697,43701,43702,43705,43709,43712,43712,43714,43714,43739,43741,43744,43754,43762,43764,43777,43782,43785,43790,43793,43798,43808,43814,43816,43822,43824,43866,43868,43881,43888,44002,44032,55203,55216,55238,55243,55291,63744,64109,64112,64217,64256,64262,64275,64279,64285,64285,64287,64296,64298,64310,64312,64316,64318,64318,64320,64321,64323,64324,64326,64433,64467,64829,64848,64911,64914,64967,65008,65019,65136,65140,65142,65276,65313,65338,65345,65370,65382,65470,65474,65479,65482,65487,65490,65495,65498,65500,65536,65547,65549,65574,65576,65594,65596,65597,65599,65613,65616,65629,65664,65786,65856,65908,66176,66204,66208,66256,66304,66335,66349,66378,66384,66421,66432,66461,66464,66499,66504,66511,66513,66517,66560,66717,66736,66771,66776,66811,66816,66855,66864,66915,66928,66938,66940,66954,66956,66962,66964,66965,66967,66977,66979,66993,66995,67001,67003,67004,67072,67382,67392,67413,67424,67431,67456,67461,67463,67504,67506,67514,67584,67589,67592,67592,67594,67637,67639,67640,67644,67644,67647,67669,67680,67702,67712,67742,67808,67826,67828,67829,67840,67861,67872,67897,67968,68023,68030,68031,68096,68096,68112,68115,68117,68119,68121,68149,68192,68220,68224,68252,68288,68295,68297,68324,68352,68405,68416,68437,68448,68466,68480,68497,68608,68680,68736,68786,68800,68850,68864,68899,69248,69289,69296,69297,69376,69404,69415,69415,69424,69445,69488,69505,69552,69572,69600,69622,69635,69687,69745,69746,69749,69749,69763,69807,69840,69864,69891,69926,69956,69956,69959,69959,69968,70002,70006,70006,70019,70066,70081,70084,70106,70106,70108,70108,70144,70161,70163,70187,70207,70208,70272,70278,70280,70280,70282,70285,70287,70301,70303,70312,70320,70366,70405,70412,70415,70416,70419,70440,70442,70448,70450,70451,70453,70457,70461,70461,70480,70480,70493,70497,70656,70708,70727,70730,70751,70753,70784,70831,70852,70853,70855,70855,71040,71086,71128,71131,71168,71215,71236,71236,71296,71338,71352,71352,71424,71450,71488,71494,71680,71723,71840,71903,71935,71942,71945,71945,71948,71955,71957,71958,71960,71983,71999,71999,72001,72001,72096,72103,72106,72144,72161,72161,72163,72163,72192,72192,72203,72242,72250,72250,72272,72272,72284,72329,72349,72349,72368,72440,72704,72712,72714,72750,72768,72768,72818,72847,72960,72966,72968,72969,72971,73008,73030,73030,73056,73061,73063,73064,73066,73097,73112,73112,73440,73458,73474,73474,73476,73488,73490,73523,73648,73648,73728,74649,74752,74862,74880,75075,77712,77808,77824,78895,78913,78918,82944,83526,92160,92728,92736,92766,92784,92862,92880,92909,92928,92975,92992,92995,93027,93047,93053,93071,93760,93823,93952,94026,94032,94032,94099,94111,94176,94177,94179,94179,94208,100343,100352,101589,101632,101640,110576,110579,110581,110587,110589,110590,110592,110882,110898,110898,110928,110930,110933,110933,110948,110951,110960,111355,113664,113770,113776,113788,113792,113800,113808,113817,119808,119892,119894,119964,119966,119967,119970,119970,119973,119974,119977,119980,119982,119993,119995,119995,119997,120003,120005,120069,120071,120074,120077,120084,120086,120092,120094,120121,120123,120126,120128,120132,120134,120134,120138,120144,120146,120485,120488,120512,120514,120538,120540,120570,120572,120596,120598,120628,120630,120654,120656,120686,120688,120712,120714,120744,120746,120770,120772,120779,122624,122654,122661,122666,122928,122989,123136,123180,123191,123197,123214,123214,123536,123565,123584,123627,124112,124139,124896,124902,124904,124907,124909,124910,124912,124926,124928,125124,125184,125251,125259,125259,126464,126467,126469,126495,126497,126498,126500,126500,126503,126503,126505,126514,126516,126519,126521,126521,126523,126523,126530,126530,126535,126535,126537,126537,126539,126539,126541,126543,126545,126546,126548,126548,126551,126551,126553,126553,126555,126555,126557,126557,126559,126559,126561,126562,126564,126564,126567,126570,126572,126578,126580,126583,126585,126588,126590,126590,126592,126601,126603,126619,126625,126627,126629,126633,126635,126651,131072,173791,173824,177977,177984,178205,178208,183969,183984,191456,191472,192093,194560,195101,196608,201546,201552,205743],xa=[48,57,65,90,95,95,97,122,170,170,181,181,183,183,186,186,192,214,216,246,248,705,710,721,736,740,748,748,750,750,768,884,886,887,890,893,895,895,902,906,908,908,910,929,931,1013,1015,1153,1155,1159,1162,1327,1329,1366,1369,1369,1376,1416,1425,1469,1471,1471,1473,1474,1476,1477,1479,1479,1488,1514,1519,1522,1552,1562,1568,1641,1646,1747,1749,1756,1759,1768,1770,1788,1791,1791,1808,1866,1869,1969,1984,2037,2042,2042,2045,2045,2048,2093,2112,2139,2144,2154,2160,2183,2185,2190,2200,2273,2275,2403,2406,2415,2417,2435,2437,2444,2447,2448,2451,2472,2474,2480,2482,2482,2486,2489,2492,2500,2503,2504,2507,2510,2519,2519,2524,2525,2527,2531,2534,2545,2556,2556,2558,2558,2561,2563,2565,2570,2575,2576,2579,2600,2602,2608,2610,2611,2613,2614,2616,2617,2620,2620,2622,2626,2631,2632,2635,2637,2641,2641,2649,2652,2654,2654,2662,2677,2689,2691,2693,2701,2703,2705,2707,2728,2730,2736,2738,2739,2741,2745,2748,2757,2759,2761,2763,2765,2768,2768,2784,2787,2790,2799,2809,2815,2817,2819,2821,2828,2831,2832,2835,2856,2858,2864,2866,2867,2869,2873,2876,2884,2887,2888,2891,2893,2901,2903,2908,2909,2911,2915,2918,2927,2929,2929,2946,2947,2949,2954,2958,2960,2962,2965,2969,2970,2972,2972,2974,2975,2979,2980,2984,2986,2990,3001,3006,3010,3014,3016,3018,3021,3024,3024,3031,3031,3046,3055,3072,3084,3086,3088,3090,3112,3114,3129,3132,3140,3142,3144,3146,3149,3157,3158,3160,3162,3165,3165,3168,3171,3174,3183,3200,3203,3205,3212,3214,3216,3218,3240,3242,3251,3253,3257,3260,3268,3270,3272,3274,3277,3285,3286,3293,3294,3296,3299,3302,3311,3313,3315,3328,3340,3342,3344,3346,3396,3398,3400,3402,3406,3412,3415,3423,3427,3430,3439,3450,3455,3457,3459,3461,3478,3482,3505,3507,3515,3517,3517,3520,3526,3530,3530,3535,3540,3542,3542,3544,3551,3558,3567,3570,3571,3585,3642,3648,3662,3664,3673,3713,3714,3716,3716,3718,3722,3724,3747,3749,3749,3751,3773,3776,3780,3782,3782,3784,3790,3792,3801,3804,3807,3840,3840,3864,3865,3872,3881,3893,3893,3895,3895,3897,3897,3902,3911,3913,3948,3953,3972,3974,3991,3993,4028,4038,4038,4096,4169,4176,4253,4256,4293,4295,4295,4301,4301,4304,4346,4348,4680,4682,4685,4688,4694,4696,4696,4698,4701,4704,4744,4746,4749,4752,4784,4786,4789,4792,4798,4800,4800,4802,4805,4808,4822,4824,4880,4882,4885,4888,4954,4957,4959,4969,4977,4992,5007,5024,5109,5112,5117,5121,5740,5743,5759,5761,5786,5792,5866,5870,5880,5888,5909,5919,5940,5952,5971,5984,5996,5998,6e3,6002,6003,6016,6099,6103,6103,6108,6109,6112,6121,6155,6157,6159,6169,6176,6264,6272,6314,6320,6389,6400,6430,6432,6443,6448,6459,6470,6509,6512,6516,6528,6571,6576,6601,6608,6618,6656,6683,6688,6750,6752,6780,6783,6793,6800,6809,6823,6823,6832,6845,6847,6862,6912,6988,6992,7001,7019,7027,7040,7155,7168,7223,7232,7241,7245,7293,7296,7304,7312,7354,7357,7359,7376,7378,7380,7418,7424,7957,7960,7965,7968,8005,8008,8013,8016,8023,8025,8025,8027,8027,8029,8029,8031,8061,8064,8116,8118,8124,8126,8126,8130,8132,8134,8140,8144,8147,8150,8155,8160,8172,8178,8180,8182,8188,8204,8205,8255,8256,8276,8276,8305,8305,8319,8319,8336,8348,8400,8412,8417,8417,8421,8432,8450,8450,8455,8455,8458,8467,8469,8469,8472,8477,8484,8484,8486,8486,8488,8488,8490,8505,8508,8511,8517,8521,8526,8526,8544,8584,11264,11492,11499,11507,11520,11557,11559,11559,11565,11565,11568,11623,11631,11631,11647,11670,11680,11686,11688,11694,11696,11702,11704,11710,11712,11718,11720,11726,11728,11734,11736,11742,11744,11775,12293,12295,12321,12335,12337,12341,12344,12348,12353,12438,12441,12447,12449,12543,12549,12591,12593,12686,12704,12735,12784,12799,13312,19903,19968,42124,42192,42237,42240,42508,42512,42539,42560,42607,42612,42621,42623,42737,42775,42783,42786,42888,42891,42954,42960,42961,42963,42963,42965,42969,42994,43047,43052,43052,43072,43123,43136,43205,43216,43225,43232,43255,43259,43259,43261,43309,43312,43347,43360,43388,43392,43456,43471,43481,43488,43518,43520,43574,43584,43597,43600,43609,43616,43638,43642,43714,43739,43741,43744,43759,43762,43766,43777,43782,43785,43790,43793,43798,43808,43814,43816,43822,43824,43866,43868,43881,43888,44010,44012,44013,44016,44025,44032,55203,55216,55238,55243,55291,63744,64109,64112,64217,64256,64262,64275,64279,64285,64296,64298,64310,64312,64316,64318,64318,64320,64321,64323,64324,64326,64433,64467,64829,64848,64911,64914,64967,65008,65019,65024,65039,65056,65071,65075,65076,65101,65103,65136,65140,65142,65276,65296,65305,65313,65338,65343,65343,65345,65370,65381,65470,65474,65479,65482,65487,65490,65495,65498,65500,65536,65547,65549,65574,65576,65594,65596,65597,65599,65613,65616,65629,65664,65786,65856,65908,66045,66045,66176,66204,66208,66256,66272,66272,66304,66335,66349,66378,66384,66426,66432,66461,66464,66499,66504,66511,66513,66517,66560,66717,66720,66729,66736,66771,66776,66811,66816,66855,66864,66915,66928,66938,66940,66954,66956,66962,66964,66965,66967,66977,66979,66993,66995,67001,67003,67004,67072,67382,67392,67413,67424,67431,67456,67461,67463,67504,67506,67514,67584,67589,67592,67592,67594,67637,67639,67640,67644,67644,67647,67669,67680,67702,67712,67742,67808,67826,67828,67829,67840,67861,67872,67897,67968,68023,68030,68031,68096,68099,68101,68102,68108,68115,68117,68119,68121,68149,68152,68154,68159,68159,68192,68220,68224,68252,68288,68295,68297,68326,68352,68405,68416,68437,68448,68466,68480,68497,68608,68680,68736,68786,68800,68850,68864,68903,68912,68921,69248,69289,69291,69292,69296,69297,69373,69404,69415,69415,69424,69456,69488,69509,69552,69572,69600,69622,69632,69702,69734,69749,69759,69818,69826,69826,69840,69864,69872,69881,69888,69940,69942,69951,69956,69959,69968,70003,70006,70006,70016,70084,70089,70092,70094,70106,70108,70108,70144,70161,70163,70199,70206,70209,70272,70278,70280,70280,70282,70285,70287,70301,70303,70312,70320,70378,70384,70393,70400,70403,70405,70412,70415,70416,70419,70440,70442,70448,70450,70451,70453,70457,70459,70468,70471,70472,70475,70477,70480,70480,70487,70487,70493,70499,70502,70508,70512,70516,70656,70730,70736,70745,70750,70753,70784,70853,70855,70855,70864,70873,71040,71093,71096,71104,71128,71133,71168,71232,71236,71236,71248,71257,71296,71352,71360,71369,71424,71450,71453,71467,71472,71481,71488,71494,71680,71738,71840,71913,71935,71942,71945,71945,71948,71955,71957,71958,71960,71989,71991,71992,71995,72003,72016,72025,72096,72103,72106,72151,72154,72161,72163,72164,72192,72254,72263,72263,72272,72345,72349,72349,72368,72440,72704,72712,72714,72758,72760,72768,72784,72793,72818,72847,72850,72871,72873,72886,72960,72966,72968,72969,72971,73014,73018,73018,73020,73021,73023,73031,73040,73049,73056,73061,73063,73064,73066,73102,73104,73105,73107,73112,73120,73129,73440,73462,73472,73488,73490,73530,73534,73538,73552,73561,73648,73648,73728,74649,74752,74862,74880,75075,77712,77808,77824,78895,78912,78933,82944,83526,92160,92728,92736,92766,92768,92777,92784,92862,92864,92873,92880,92909,92912,92916,92928,92982,92992,92995,93008,93017,93027,93047,93053,93071,93760,93823,93952,94026,94031,94087,94095,94111,94176,94177,94179,94180,94192,94193,94208,100343,100352,101589,101632,101640,110576,110579,110581,110587,110589,110590,110592,110882,110898,110898,110928,110930,110933,110933,110948,110951,110960,111355,113664,113770,113776,113788,113792,113800,113808,113817,113821,113822,118528,118573,118576,118598,119141,119145,119149,119154,119163,119170,119173,119179,119210,119213,119362,119364,119808,119892,119894,119964,119966,119967,119970,119970,119973,119974,119977,119980,119982,119993,119995,119995,119997,120003,120005,120069,120071,120074,120077,120084,120086,120092,120094,120121,120123,120126,120128,120132,120134,120134,120138,120144,120146,120485,120488,120512,120514,120538,120540,120570,120572,120596,120598,120628,120630,120654,120656,120686,120688,120712,120714,120744,120746,120770,120772,120779,120782,120831,121344,121398,121403,121452,121461,121461,121476,121476,121499,121503,121505,121519,122624,122654,122661,122666,122880,122886,122888,122904,122907,122913,122915,122916,122918,122922,122928,122989,123023,123023,123136,123180,123184,123197,123200,123209,123214,123214,123536,123566,123584,123641,124112,124153,124896,124902,124904,124907,124909,124910,124912,124926,124928,125124,125136,125142,125184,125259,125264,125273,126464,126467,126469,126495,126497,126498,126500,126500,126503,126503,126505,126514,126516,126519,126521,126521,126523,126523,126530,126530,126535,126535,126537,126537,126539,126539,126541,126543,126545,126546,126548,126548,126551,126551,126553,126553,126555,126555,126557,126557,126559,126559,126561,126562,126564,126564,126567,126570,126572,126578,126580,126583,126585,126588,126590,126590,126592,126601,126603,126619,126625,126627,126629,126633,126635,126651,130032,130041,131072,173791,173824,177977,177984,178205,178208,183969,183984,191456,191472,192093,194560,195101,196608,201546,201552,205743,917760,917999],ka=/^\/\/\/?\s*@(ts-expect-error|ts-ignore)/,Sa=/^(?:\/|\*)*\s*@(ts-expect-error|ts-ignore)/,Ta=/@(?:see|link)/i;function Ca(e,t){if(e=2?ba:ya)}function Na(e){const t=[];return e.forEach((e,n)=>{t[e]=n}),t}var Da=Na(ma);function Fa(e){return Da[e]}function Ea(e){return ma.get(e)}var Pa=Na(ga);function Aa(e){return Pa[e]}function Ia(e){return ga.get(e)}function Oa(e){const t=[];let n=0,r=0;for(;n127&&Va(i)&&(t.push(r),r=n)}}return t.push(r),t}function La(e,t,n,r){return e.getPositionOfLineAndCharacter?e.getPositionOfLineAndCharacter(t,n,r):ja(Ma(e),t,n,e.text,r)}function ja(e,t,n,r,i){(t<0||t>=e.length)&&(i?t=t<0?0:t>=e.length?e.length-1:t:un.fail(`Bad line number. Line: ${t}, lineStarts.length: ${e.length} , line map is correct? ${void 0!==r?te(e,Oa(r)):"unknown"}`));const o=e[t]+n;return i?o>e[t+1]?e[t+1]:"string"==typeof r&&o>r.length?r.length:o:(t=8192&&e<=8203||8239===e||8287===e||12288===e||65279===e}function Va(e){return 10===e||13===e||8232===e||8233===e}function Wa(e){return e>=48&&e<=57}function $a(e){return Wa(e)||e>=65&&e<=70||e>=97&&e<=102}function Ha(e){return e>=65&&e<=90||e>=97&&e<=122}function Ka(e){return Ha(e)||Wa(e)||95===e}function Ga(e){return e>=48&&e<=55}function Xa(e,t){const n=e.charCodeAt(t);switch(n){case 13:case 10:case 9:case 11:case 12:case 32:case 47:case 60:case 124:case 61:case 62:return!0;case 35:return 0===t;default:return n>127}}function Qa(e,t,n,r,i){if(XS(t))return t;let o=!1;for(;;){const a=e.charCodeAt(t);switch(a){case 13:10===e.charCodeAt(t+1)&&t++;case 10:if(t++,n)return t;o=!!i;continue;case 9:case 11:case 12:case 32:t++;continue;case 47:if(r)break;if(47===e.charCodeAt(t+1)){for(t+=2;t127&&qa(a)){t++;continue}}return t}}var Ya=7;function Za(e,t){if(un.assert(t>=0),0===t||Va(e.charCodeAt(t-1))){const n=e.charCodeAt(t);if(t+Ya=0&&n127&&qa(a)){u&&Va(a)&&(_=!0),n++;continue}break e}}return u&&(p=i(s,c,l,_,o,p)),p}function os(e,t,n,r){return is(!1,e,t,!1,n,r)}function as(e,t,n,r){return is(!1,e,t,!0,n,r)}function ss(e,t,n,r,i){return is(!0,e,t,!1,n,r,i)}function cs(e,t,n,r,i){return is(!0,e,t,!0,n,r,i)}function ls(e,t,n,r,i,o=[]){return o.push({kind:n,pos:e,end:t,hasTrailingNewLine:r}),o}function _s(e,t){return ss(e,t,ls,void 0,void 0)}function us(e,t){return cs(e,t,ls,void 0,void 0)}function ds(e){const t=ts.exec(e);if(t)return t[0]}function ps(e,t){return Ha(e)||36===e||95===e||e>127&&wa(e,t)}function fs(e,t,n){return Ka(e)||36===e||1===n&&(45===e||58===e)||e>127&&function(e,t){return Ca(e,t>=2?xa:va)}(e,t)}function ms(e,t,n){let r=hs(e,0);if(!ps(r,t))return!1;for(let i=ys(r);il,getStartPos:()=>l,getTokenEnd:()=>s,getTextPos:()=>s,getToken:()=>u,getTokenStart:()=>_,getTokenPos:()=>_,getTokenText:()=>g.substring(_,s),getTokenValue:()=>p,hasUnicodeEscape:()=>!!(1024&f),hasExtendedUnicodeEscape:()=>!!(8&f),hasPrecedingLineBreak:()=>!!(1&f),hasPrecedingJSDocComment:()=>!!(2&f),hasPrecedingJSDocLeadingAsterisks:()=>!!(32768&f),isIdentifier:()=>80===u||u>118,isReservedWord:()=>u>=83&&u<=118,isUnterminated:()=>!!(4&f),getCommentDirectives:()=>m,getNumericLiteralFlags:()=>25584&f,getTokenFlags:()=>f,reScanGreaterToken:function(){if(32===u){if(62===S(s))return 62===S(s+1)?61===S(s+2)?(s+=3,u=73):(s+=2,u=50):61===S(s+1)?(s+=2,u=72):(s++,u=49);if(61===S(s))return s++,u=34}return u},reScanAsteriskEqualsToken:function(){return un.assert(67===u,"'reScanAsteriskEqualsToken' should only be called on a '*='"),s=_+1,u=64},reScanSlashToken:function(t){if(44===u||69===u){const n=_+1;s=n;let r=!1,i=!1,a=!1;for(;;){const e=T(s);if(-1===e||Va(e)){f|=4;break}if(r)r=!1;else{if(47===e&&!a)break;91===e?a=!0:92===e?r=!0:93===e?a=!1:a||40!==e||63!==T(s+1)||60!==T(s+2)||61===T(s+3)||33===T(s+3)||(i=!0)}s++}const l=s;if(4&f){s=n,r=!1;let e=0,t=!1,i=0;for(;s{!function(t,n,r){var i,a,l,u,f=!!(64&t),m=!!(96&t),h=m||!1,y=!1,v=0,b=[];function x(e){for(;;){if(b.push(u),u=void 0,w(e),u=b.pop(),124!==T(s))return;s++}}function w(t){let n=!1;for(;;){const r=s,i=T(s);switch(i){case-1:return;case 94:case 36:s++,n=!1;break;case 92:switch(T(++s)){case 98:case 66:s++,n=!1;break;default:D(),n=!0}break;case 40:if(63===T(++s))switch(T(++s)){case 61:case 33:s++,n=!h;break;case 60:const t=s;switch(T(++s)){case 61:case 33:s++,n=!1;break;default:P(!1),U(62),e<5&&C(_a.Named_capturing_groups_are_only_available_when_targeting_ES2018_or_later,t,s-t),v++,n=!0}break;default:const r=s,i=N(0);45===T(s)&&(s++,N(i),s===r+1&&C(_a.Subpattern_flags_must_be_present_when_there_is_a_minus_sign,r,s-r)),U(58),n=!0}else v++,n=!0;x(!0),U(41);break;case 123:const o=++s;F();const a=p;if(!h&&!a){n=!0;break}if(44===T(s)){s++,F();const e=p;if(a)e&&Number.parseInt(a)>Number.parseInt(e)&&(h||125===T(s))&&C(_a.Numbers_out_of_order_in_quantifier,o,s-o);else{if(!e&&125!==T(s)){C(_a.Unexpected_0_Did_you_mean_to_escape_it_with_backslash,r,1,String.fromCharCode(i)),n=!0;break}C(_a.Incomplete_quantifier_Digit_expected,o,0)}}else if(!a){h&&C(_a.Unexpected_0_Did_you_mean_to_escape_it_with_backslash,r,1,String.fromCharCode(i)),n=!0;break}if(125!==T(s)){if(!h){n=!0;break}C(_a._0_expected,s,0,String.fromCharCode(125)),s--}case 42:case 43:case 63:63===T(++s)&&s++,n||C(_a.There_is_nothing_available_for_repetition,r,s-r),n=!1;break;case 46:s++,n=!0;break;case 91:s++,f?L():I(),U(93),n=!0;break;case 41:if(t)return;case 93:case 125:(h||41===i)&&C(_a.Unexpected_0_Did_you_mean_to_escape_it_with_backslash,s,1,String.fromCharCode(i)),s++,n=!0;break;case 47:case 124:return;default:q(),n=!0}}}function N(t){for(;;){const n=k(s);if(-1===n||!fs(n,e))break;const r=ys(n),i=Ia(n);void 0===i?C(_a.Unknown_regular_expression_flag,s,r):t&i?C(_a.Duplicate_regular_expression_flag,s,r):28&i?(t|=i,W(i,r)):C(_a.This_regular_expression_flag_cannot_be_toggled_within_a_subpattern,s,r),s+=r}return t}function D(){switch(un.assertEqual(S(s-1),92),T(s)){case 107:60===T(++s)?(s++,P(!0),U(62)):(h||r)&&C(_a.k_must_be_followed_by_a_capturing_group_name_enclosed_in_angle_brackets,s-2,2);break;case 113:if(f){s++,C(_a.q_is_only_available_inside_character_class,s-2,2);break}default:un.assert(J()||function(){un.assertEqual(S(s-1),92);const e=T(s);if(e>=49&&e<=57){const e=s;return F(),l=ie(l,{pos:e,end:s,value:+p}),!0}return!1}()||E(!0))}}function E(e){un.assertEqual(S(s-1),92);let t=T(s);switch(t){case-1:return C(_a.Undetermined_character_escape,s-1,1),"\\";case 99:if(t=T(++s),Ha(t))return s++,String.fromCharCode(31&t);if(h)C(_a.c_must_be_followed_by_an_ASCII_letter,s-2,2);else if(e)return s--,"\\";return String.fromCharCode(t);case 94:case 36:case 47:case 92:case 46:case 42:case 43:case 63:case 40:case 41:case 91:case 93:case 123:case 125:case 124:return s++,String.fromCharCode(t);default:return s--,O(12|(m?16:0)|(e?32:0))}}function P(t){un.assertEqual(S(s-1),60),_=s,V(k(s),e),s===_?C(_a.Expected_a_capturing_group_name):t?a=ie(a,{pos:_,end:s,name:p}):(null==u?void 0:u.has(p))||b.some(e=>null==e?void 0:e.has(p))?C(_a.Named_capturing_groups_with_the_same_name_must_be_mutually_exclusive_to_each_other,_,s-_):(u??(u=new Set),u.add(p),i??(i=new Set),i.add(p))}function A(e){return 93===e||-1===e||s>=c}function I(){for(un.assertEqual(S(s-1),91),94===T(s)&&s++;;){if(A(T(s)))return;const e=s,t=B();if(45===T(s)){if(A(T(++s)))return;!t&&h&&C(_a.A_character_class_range_must_not_be_bounded_by_another_character_class,e,s-1-e);const n=s,r=B();if(!r&&h){C(_a.A_character_class_range_must_not_be_bounded_by_another_character_class,n,s-n);continue}if(!t)continue;const i=hs(t,0),o=hs(r,0);t.length===ys(i)&&r.length===ys(o)&&i>o&&C(_a.Range_out_of_order_in_character_class,e,s-e)}}}function L(){un.assertEqual(S(s-1),91);let e=!1;94===T(s)&&(s++,e=!0);let t=!1,n=T(s);if(A(n))return;let r,i=s;switch(g.slice(s,s+2)){case"--":case"&&":C(_a.Expected_a_class_set_operand),y=!1;break;default:r=M()}switch(T(s)){case 45:if(45===T(s+1))return e&&y&&C(_a.Anything_that_would_possibly_match_more_than_a_single_character_is_invalid_inside_a_negated_character_class,i,s-i),t=y,j(3),void(y=!e&&t);break;case 38:if(38===T(s+1))return j(2),e&&y&&C(_a.Anything_that_would_possibly_match_more_than_a_single_character_is_invalid_inside_a_negated_character_class,i,s-i),t=y,void(y=!e&&t);C(_a.Unexpected_0_Did_you_mean_to_escape_it_with_backslash,s,1,String.fromCharCode(n));break;default:e&&y&&C(_a.Anything_that_would_possibly_match_more_than_a_single_character_is_invalid_inside_a_negated_character_class,i,s-i),t=y}for(;n=T(s),-1!==n;){switch(n){case 45:if(n=T(++s),A(n))return void(y=!e&&t);if(45===n){s++,C(_a.Operators_must_not_be_mixed_within_a_character_class_Wrap_it_in_a_nested_class_instead,s-2,2),i=s-2,r=g.slice(i,s);continue}{r||C(_a.A_character_class_range_must_not_be_bounded_by_another_character_class,i,s-1-i);const n=s,o=M();if(e&&y&&C(_a.Anything_that_would_possibly_match_more_than_a_single_character_is_invalid_inside_a_negated_character_class,n,s-n),t||(t=y),!o){C(_a.A_character_class_range_must_not_be_bounded_by_another_character_class,n,s-n);break}if(!r)break;const a=hs(r,0),c=hs(o,0);r.length===ys(a)&&o.length===ys(c)&&a>c&&C(_a.Range_out_of_order_in_character_class,i,s-i)}break;case 38:i=s,38===T(++s)?(s++,C(_a.Operators_must_not_be_mixed_within_a_character_class_Wrap_it_in_a_nested_class_instead,s-2,2),38===T(s)&&(C(_a.Unexpected_0_Did_you_mean_to_escape_it_with_backslash,s,1,String.fromCharCode(n)),s++)):C(_a.Unexpected_0_Did_you_mean_to_escape_it_with_backslash,s-1,1,String.fromCharCode(n)),r=g.slice(i,s);continue}if(A(T(s)))break;switch(i=s,g.slice(s,s+2)){case"--":case"&&":C(_a.Operators_must_not_be_mixed_within_a_character_class_Wrap_it_in_a_nested_class_instead,s,2),s+=2,r=g.slice(i,s);break;default:r=M()}}y=!e&&t}function j(e){let t=y;for(;;){let n=T(s);if(A(n))break;switch(n){case 45:45===T(++s)?(s++,3!==e&&C(_a.Operators_must_not_be_mixed_within_a_character_class_Wrap_it_in_a_nested_class_instead,s-2,2)):C(_a.Operators_must_not_be_mixed_within_a_character_class_Wrap_it_in_a_nested_class_instead,s-1,1);break;case 38:38===T(++s)?(s++,2!==e&&C(_a.Operators_must_not_be_mixed_within_a_character_class_Wrap_it_in_a_nested_class_instead,s-2,2),38===T(s)&&(C(_a.Unexpected_0_Did_you_mean_to_escape_it_with_backslash,s,1,String.fromCharCode(n)),s++)):C(_a.Unexpected_0_Did_you_mean_to_escape_it_with_backslash,s-1,1,String.fromCharCode(n));break;default:switch(e){case 3:C(_a._0_expected,s,0,"--");break;case 2:C(_a._0_expected,s,0,"&&")}}if(n=T(s),A(n)){C(_a.Expected_a_class_set_operand);break}M(),t&&(t=y)}y=t}function M(){switch(y=!1,T(s)){case-1:return"";case 91:return s++,L(),U(93),"";case 92:if(s++,J())return"";if(113===T(s))return 123===T(++s)?(s++,function(){un.assertEqual(S(s-1),123);let e=0;for(;;)switch(T(s)){case-1:return;case 125:return void(1!==e&&(y=!0));case 124:1!==e&&(y=!0),s++,o=s,e=0;break;default:R(),e++}}(),U(125),""):(C(_a.q_must_be_followed_by_string_alternatives_enclosed_in_braces,s-2,2),"q");s--;default:return R()}}function R(){const e=T(s);if(-1===e)return"";if(92===e){const e=T(++s);switch(e){case 98:return s++,"\b";case 38:case 45:case 33:case 35:case 37:case 44:case 58:case 59:case 60:case 61:case 62:case 64:case 96:case 126:return s++,String.fromCharCode(e);default:return E(!1)}}else if(e===T(s+1))switch(e){case 38:case 33:case 35:case 37:case 42:case 43:case 44:case 46:case 58:case 59:case 60:case 61:case 62:case 63:case 64:case 96:case 126:return C(_a.A_character_class_must_not_contain_a_reserved_double_punctuator_Did_you_mean_to_escape_it_with_backslash,s,2),s+=2,g.substring(s-2,s)}switch(e){case 47:case 40:case 41:case 91:case 93:case 123:case 125:case 45:case 124:return C(_a.Unexpected_0_Did_you_mean_to_escape_it_with_backslash,s,1,String.fromCharCode(e)),s++,String.fromCharCode(e)}return q()}function B(){if(92!==T(s))return q();{const e=T(++s);switch(e){case 98:return s++,"\b";case 45:return s++,String.fromCharCode(e);default:return J()?"":E(!1)}}}function J(){un.assertEqual(S(s-1),92);let e=!1;const t=s-1,n=T(s);switch(n){case 100:case 68:case 115:case 83:case 119:case 87:return s++,!0;case 80:e=!0;case 112:if(123===T(++s)){const n=++s,r=z();if(61===T(s)){const e=xs.get(r);if(s===n)C(_a.Expected_a_Unicode_property_name);else if(void 0===e){C(_a.Unknown_Unicode_property_name,n,s-n);const e=Lt(r,xs.keys(),st);e&&C(_a.Did_you_mean_0,n,s-n,e)}const t=++s,i=z();if(s===t)C(_a.Expected_a_Unicode_property_value);else if(void 0!==e&&!Ts[e].has(i)){C(_a.Unknown_Unicode_property_value,t,s-t);const n=Lt(i,Ts[e],st);n&&C(_a.Did_you_mean_0,t,s-t,n)}}else if(s===n)C(_a.Expected_a_Unicode_property_name_or_value);else if(Ss.has(r))f?e?C(_a.Anything_that_would_possibly_match_more_than_a_single_character_is_invalid_inside_a_negated_character_class,n,s-n):y=!0:C(_a.Any_Unicode_property_that_would_possibly_match_more_than_a_single_character_is_only_available_when_the_Unicode_Sets_v_flag_is_set,n,s-n);else if(!Ts.General_Category.has(r)&&!ks.has(r)){C(_a.Unknown_Unicode_property_name_or_value,n,s-n);const e=Lt(r,[...Ts.General_Category,...ks,...Ss],st);e&&C(_a.Did_you_mean_0,n,s-n,e)}U(125),m||C(_a.Unicode_property_value_expressions_are_only_available_when_the_Unicode_u_flag_or_the_Unicode_Sets_v_flag_is_set,t,s-t)}else{if(!h)return s--,!1;C(_a._0_must_be_followed_by_a_Unicode_property_value_expression_enclosed_in_braces,s-2,2,String.fromCharCode(n))}return!0}return!1}function z(){let e="";for(;;){const t=T(s);if(-1===t||!Ka(t))break;e+=String.fromCharCode(t),s++}return e}function q(){const e=m?ys(k(s)):1;return s+=e,e>0?g.substring(s-e,s):""}function U(e){T(s)===e?s++:C(_a._0_expected,s,0,String.fromCharCode(e))}x(!1),d(a,e=>{if(!(null==i?void 0:i.has(e.name))&&(C(_a.There_is_no_capturing_group_named_0_in_this_regular_expression,e.pos,e.end-e.pos,e.name),i)){const t=Lt(e.name,i,st);t&&C(_a.Did_you_mean_0,e.pos,e.end-e.pos,t)}}),d(l,e=>{e.value>v&&(v?C(_a.This_backreference_refers_to_a_group_that_does_not_exist_There_are_only_0_capturing_groups_in_this_regular_expression,e.pos,e.end-e.pos,v):C(_a.This_backreference_refers_to_a_group_that_does_not_exist_There_are_no_capturing_groups_in_this_regular_expression,e.pos,e.end-e.pos))})}(r,0,i)})}p=g.substring(_,s),u=14}return u},reScanTemplateToken:function(e){return s=_,u=I(!e)},reScanTemplateHeadOrNoSubstitutionTemplate:function(){return s=_,u=I(!0)},scanJsxIdentifier:function(){if(ua(u)){for(;s=c)return u=1;for(let t=S(s);s=0&&Ua(S(s-1))&&!(s+1{const e=b.getText();return e.slice(0,b.getTokenFullStart())+"â•‘"+e.slice(b.getTokenFullStart())}}),b;function x(e){return hs(g,e)}function k(e){return e>=0&&e=0&&e=65&&e<=70)e+=32;else if(!(e>=48&&e<=57||e>=97&&e<=102))break;r.push(e),s++,o=!1}}return r.length=c){n+=g.substring(r,s),f|=4,C(_a.Unterminated_string_literal);break}const i=S(s);if(i===t){n+=g.substring(r,s),s++;break}if(92!==i||e){if((10===i||13===i)&&!e){n+=g.substring(r,s),f|=4,C(_a.Unterminated_string_literal);break}s++}else n+=g.substring(r,s),n+=O(3),r=s}return n}function I(e){const t=96===S(s);let n,r=++s,i="";for(;;){if(s>=c){i+=g.substring(r,s),f|=4,C(_a.Unterminated_template_literal),n=t?15:18;break}const o=S(s);if(96===o){i+=g.substring(r,s),s++,n=t?15:18;break}if(36===o&&s+1=c)return C(_a.Unexpected_end_of_text),"";const r=S(s);switch(s++,r){case 48:if(s>=c||!Wa(S(s)))return"\0";case 49:case 50:case 51:s=55296&&i<=56319&&s+6=56320&&n<=57343)return s=t,o+String.fromCharCode(n)}return o;case 120:for(;s1114111&&(e&&C(_a.An_extended_Unicode_escape_value_must_be_between_0x0_and_0x10FFFF_inclusive,n,s-n),o=!0),s>=c?(e&&C(_a.Unexpected_end_of_text),o=!0):125===S(s)?s++:(e&&C(_a.Unterminated_Unicode_escape_sequence),o=!0),o?(f|=2048,g.substring(t,s)):(f|=8,bs(i))}function j(){if(s+5=0&&fs(r,e)){t+=L(!0),n=s;continue}if(r=j(),!(r>=0&&fs(r,e)))break;f|=1024,t+=g.substring(n,s),t+=bs(r),n=s+=6}}return t+=g.substring(n,s),t}function B(){const e=p.length;if(e>=2&&e<=12){const e=p.charCodeAt(0);if(e>=97&&e<=122){const e=fa.get(p);if(void 0!==e)return u=e}}return u=80}function J(e){let t="",n=!1,r=!1;for(;;){const i=S(s);if(95!==i){if(n=!0,!Wa(i)||i-48>=e)break;t+=g[s],s++,r=!1}else f|=512,n?(n=!1,r=!0):C(r?_a.Multiple_consecutive_numeric_separators_are_not_permitted:_a.Numeric_separators_are_not_allowed_here,s,1),s++}return 95===S(s-1)&&C(_a.Numeric_separators_are_not_allowed_here,s-1,1),t}function z(){if(110===S(s))return p+="n",384&f&&(p=mT(p)+"n"),s++,10;{const e=128&f?parseInt(p.slice(2),2):256&f?parseInt(p.slice(2),8):+p;return p=""+e,9}}function q(){for(l=s,f=0;;){if(_=s,s>=c)return u=1;const r=x(s);if(0===s&&35===r&&ns(g,s)){if(s=rs(g,s),t)continue;return u=6}switch(r){case 10:case 13:if(f|=1,t){s++;continue}return 13===r&&s+1=0&&ps(i,e))return p=L(!0)+R(),u=B();const o=j();return o>=0&&ps(o,e)?(s+=6,f|=1024,p=String.fromCharCode(o)+R(),u=B()):(C(_a.Invalid_character),s++,u=0);case 35:if(0!==s&&"!"===g[s+1])return C(_a.can_only_be_used_at_the_start_of_a_file,s,2),s++,u=0;const a=x(s+1);if(92===a){s++;const t=M();if(t>=0&&ps(t,e))return p="#"+L(!0)+R(),u=81;const n=j();if(n>=0&&ps(n,e))return s+=6,f|=1024,p="#"+String.fromCharCode(n)+R(),u=81;s--}return ps(a,e)?(s++,V(a,e)):(p="#",C(_a.Invalid_character,s++,ys(r))),u=81;case 65533:return C(_a.File_appears_to_be_binary,0,0),s=c,u=8;default:const l=V(r,e);if(l)return u=l;if(Ua(r)){s+=ys(r);continue}if(Va(r)){f|=1,s+=ys(r);continue}const d=ys(r);return C(_a.Invalid_character,s,d),s+=d,u=0}}}function U(){switch(v){case 0:return!0;case 1:return!1}return 3!==y&&4!==y||3!==v&&Ta.test(g.slice(l,s))}function V(e,t){let n=e;if(ps(n,t)){for(s+=ys(n);s=c)return u=1;let t=S(s);if(60===t)return 47===S(s+1)?(s+=2,u=31):(s++,u=30);if(123===t)return s++,u=19;let n=0;for(;s0)break;qa(t)||(n=s)}s++}return p=g.substring(l,s),-1===n?13:12}function K(){switch(l=s,S(s)){case 34:case 39:return p=A(!0),u=11;default:return q()}}function G(){if(l=_=s,f=0,s>=c)return u=1;const t=x(s);switch(s+=ys(t),t){case 9:case 11:case 12:case 32:for(;s=0&&ps(t,e))return p=L(!0)+R(),u=B();const n=j();return n>=0&&ps(n,e)?(s+=6,f|=1024,p=String.fromCharCode(n)+R(),u=B()):(s++,u=0)}if(ps(t,e)){let n=t;for(;s=0),s=e,l=e,_=e,u=0,p=void 0,f=0}}function hs(e,t){return e.codePointAt(t)}function ys(e){return e>=65536?2:-1===e?0:1}var vs=String.fromCodePoint?e=>String.fromCodePoint(e):function(e){if(un.assert(0<=e&&e<=1114111),e<=65535)return String.fromCharCode(e);const t=Math.floor((e-65536)/1024)+55296,n=(e-65536)%1024+56320;return String.fromCharCode(t,n)};function bs(e){return vs(e)}var xs=new Map(Object.entries({General_Category:"General_Category",gc:"General_Category",Script:"Script",sc:"Script",Script_Extensions:"Script_Extensions",scx:"Script_Extensions"})),ks=new Set(["ASCII","ASCII_Hex_Digit","AHex","Alphabetic","Alpha","Any","Assigned","Bidi_Control","Bidi_C","Bidi_Mirrored","Bidi_M","Case_Ignorable","CI","Cased","Changes_When_Casefolded","CWCF","Changes_When_Casemapped","CWCM","Changes_When_Lowercased","CWL","Changes_When_NFKC_Casefolded","CWKCF","Changes_When_Titlecased","CWT","Changes_When_Uppercased","CWU","Dash","Default_Ignorable_Code_Point","DI","Deprecated","Dep","Diacritic","Dia","Emoji","Emoji_Component","EComp","Emoji_Modifier","EMod","Emoji_Modifier_Base","EBase","Emoji_Presentation","EPres","Extended_Pictographic","ExtPict","Extender","Ext","Grapheme_Base","Gr_Base","Grapheme_Extend","Gr_Ext","Hex_Digit","Hex","IDS_Binary_Operator","IDSB","IDS_Trinary_Operator","IDST","ID_Continue","IDC","ID_Start","IDS","Ideographic","Ideo","Join_Control","Join_C","Logical_Order_Exception","LOE","Lowercase","Lower","Math","Noncharacter_Code_Point","NChar","Pattern_Syntax","Pat_Syn","Pattern_White_Space","Pat_WS","Quotation_Mark","QMark","Radical","Regional_Indicator","RI","Sentence_Terminal","STerm","Soft_Dotted","SD","Terminal_Punctuation","Term","Unified_Ideograph","UIdeo","Uppercase","Upper","Variation_Selector","VS","White_Space","space","XID_Continue","XIDC","XID_Start","XIDS"]),Ss=new Set(["Basic_Emoji","Emoji_Keycap_Sequence","RGI_Emoji_Modifier_Sequence","RGI_Emoji_Flag_Sequence","RGI_Emoji_Tag_Sequence","RGI_Emoji_ZWJ_Sequence","RGI_Emoji"]),Ts={General_Category:new Set(["C","Other","Cc","Control","cntrl","Cf","Format","Cn","Unassigned","Co","Private_Use","Cs","Surrogate","L","Letter","LC","Cased_Letter","Ll","Lowercase_Letter","Lm","Modifier_Letter","Lo","Other_Letter","Lt","Titlecase_Letter","Lu","Uppercase_Letter","M","Mark","Combining_Mark","Mc","Spacing_Mark","Me","Enclosing_Mark","Mn","Nonspacing_Mark","N","Number","Nd","Decimal_Number","digit","Nl","Letter_Number","No","Other_Number","P","Punctuation","punct","Pc","Connector_Punctuation","Pd","Dash_Punctuation","Pe","Close_Punctuation","Pf","Final_Punctuation","Pi","Initial_Punctuation","Po","Other_Punctuation","Ps","Open_Punctuation","S","Symbol","Sc","Currency_Symbol","Sk","Modifier_Symbol","Sm","Math_Symbol","So","Other_Symbol","Z","Separator","Zl","Line_Separator","Zp","Paragraph_Separator","Zs","Space_Separator"]),Script:new Set(["Adlm","Adlam","Aghb","Caucasian_Albanian","Ahom","Arab","Arabic","Armi","Imperial_Aramaic","Armn","Armenian","Avst","Avestan","Bali","Balinese","Bamu","Bamum","Bass","Bassa_Vah","Batk","Batak","Beng","Bengali","Bhks","Bhaiksuki","Bopo","Bopomofo","Brah","Brahmi","Brai","Braille","Bugi","Buginese","Buhd","Buhid","Cakm","Chakma","Cans","Canadian_Aboriginal","Cari","Carian","Cham","Cher","Cherokee","Chrs","Chorasmian","Copt","Coptic","Qaac","Cpmn","Cypro_Minoan","Cprt","Cypriot","Cyrl","Cyrillic","Deva","Devanagari","Diak","Dives_Akuru","Dogr","Dogra","Dsrt","Deseret","Dupl","Duployan","Egyp","Egyptian_Hieroglyphs","Elba","Elbasan","Elym","Elymaic","Ethi","Ethiopic","Geor","Georgian","Glag","Glagolitic","Gong","Gunjala_Gondi","Gonm","Masaram_Gondi","Goth","Gothic","Gran","Grantha","Grek","Greek","Gujr","Gujarati","Guru","Gurmukhi","Hang","Hangul","Hani","Han","Hano","Hanunoo","Hatr","Hatran","Hebr","Hebrew","Hira","Hiragana","Hluw","Anatolian_Hieroglyphs","Hmng","Pahawh_Hmong","Hmnp","Nyiakeng_Puachue_Hmong","Hrkt","Katakana_Or_Hiragana","Hung","Old_Hungarian","Ital","Old_Italic","Java","Javanese","Kali","Kayah_Li","Kana","Katakana","Kawi","Khar","Kharoshthi","Khmr","Khmer","Khoj","Khojki","Kits","Khitan_Small_Script","Knda","Kannada","Kthi","Kaithi","Lana","Tai_Tham","Laoo","Lao","Latn","Latin","Lepc","Lepcha","Limb","Limbu","Lina","Linear_A","Linb","Linear_B","Lisu","Lyci","Lycian","Lydi","Lydian","Mahj","Mahajani","Maka","Makasar","Mand","Mandaic","Mani","Manichaean","Marc","Marchen","Medf","Medefaidrin","Mend","Mende_Kikakui","Merc","Meroitic_Cursive","Mero","Meroitic_Hieroglyphs","Mlym","Malayalam","Modi","Mong","Mongolian","Mroo","Mro","Mtei","Meetei_Mayek","Mult","Multani","Mymr","Myanmar","Nagm","Nag_Mundari","Nand","Nandinagari","Narb","Old_North_Arabian","Nbat","Nabataean","Newa","Nkoo","Nko","Nshu","Nushu","Ogam","Ogham","Olck","Ol_Chiki","Orkh","Old_Turkic","Orya","Oriya","Osge","Osage","Osma","Osmanya","Ougr","Old_Uyghur","Palm","Palmyrene","Pauc","Pau_Cin_Hau","Perm","Old_Permic","Phag","Phags_Pa","Phli","Inscriptional_Pahlavi","Phlp","Psalter_Pahlavi","Phnx","Phoenician","Plrd","Miao","Prti","Inscriptional_Parthian","Rjng","Rejang","Rohg","Hanifi_Rohingya","Runr","Runic","Samr","Samaritan","Sarb","Old_South_Arabian","Saur","Saurashtra","Sgnw","SignWriting","Shaw","Shavian","Shrd","Sharada","Sidd","Siddham","Sind","Khudawadi","Sinh","Sinhala","Sogd","Sogdian","Sogo","Old_Sogdian","Sora","Sora_Sompeng","Soyo","Soyombo","Sund","Sundanese","Sylo","Syloti_Nagri","Syrc","Syriac","Tagb","Tagbanwa","Takr","Takri","Tale","Tai_Le","Talu","New_Tai_Lue","Taml","Tamil","Tang","Tangut","Tavt","Tai_Viet","Telu","Telugu","Tfng","Tifinagh","Tglg","Tagalog","Thaa","Thaana","Thai","Tibt","Tibetan","Tirh","Tirhuta","Tnsa","Tangsa","Toto","Ugar","Ugaritic","Vaii","Vai","Vith","Vithkuqi","Wara","Warang_Citi","Wcho","Wancho","Xpeo","Old_Persian","Xsux","Cuneiform","Yezi","Yezidi","Yiii","Yi","Zanb","Zanabazar_Square","Zinh","Inherited","Qaai","Zyyy","Common","Zzzz","Unknown"]),Script_Extensions:void 0};function Cs(e){return vo(e)||go(e)}function ws(e){return ee(e,nk,ak)}Ts.Script_Extensions=Ts.Script;var Ns=new Map([[99,"lib.esnext.full.d.ts"],[11,"lib.es2024.full.d.ts"],[10,"lib.es2023.full.d.ts"],[9,"lib.es2022.full.d.ts"],[8,"lib.es2021.full.d.ts"],[7,"lib.es2020.full.d.ts"],[6,"lib.es2019.full.d.ts"],[5,"lib.es2018.full.d.ts"],[4,"lib.es2017.full.d.ts"],[3,"lib.es2016.full.d.ts"],[2,"lib.es6.d.ts"]]);function Ds(e){const t=yk(e);switch(t){case 99:case 11:case 10:case 9:case 8:case 7:case 6:case 5:case 4:case 3:case 2:return Ns.get(t);default:return"lib.d.ts"}}function Fs(e){return e.start+e.length}function Es(e){return 0===e.length}function Ps(e,t){return t>=e.start&&t=e.pos&&t<=e.end}function Is(e,t){return t.start>=e.start&&Fs(t)<=Fs(e)}function Os(e,t){return t.pos>=e.start&&t.end<=Fs(e)}function Ls(e,t){return t.start>=e.pos&&Fs(t)<=e.end}function js(e,t){return void 0!==Ms(e,t)}function Ms(e,t){const n=Us(e,t);return n&&0===n.length?void 0:n}function Rs(e,t){return Js(e.start,e.length,t.start,t.length)}function Bs(e,t,n){return Js(e.start,e.length,t,n)}function Js(e,t,n,r){return n<=e+t&&n+r>=e}function zs(e,t){return t<=Fs(e)&&t>=e.start}function qs(e,t){return Bs(t,e.pos,e.end-e.pos)}function Us(e,t){const n=Math.max(e.start,t.start),r=Math.min(Fs(e),Fs(t));return n<=r?$s(n,r):void 0}function Vs(e){e=e.filter(e=>e.length>0).sort((e,t)=>e.start!==t.start?e.start-t.start:e.length-t.length);const t=[];let n=0;for(;n=2&&95===e.charCodeAt(0)&&95===e.charCodeAt(1)?"_"+e:e}function mc(e){const t=e;return t.length>=3&&95===t.charCodeAt(0)&&95===t.charCodeAt(1)&&95===t.charCodeAt(2)?t.substr(1):t}function gc(e){return mc(e.escapedText)}function hc(e){const t=Ea(e.escapedText);return t?tt(t,Ch):void 0}function yc(e){return e.valueDeclaration&&Kl(e.valueDeclaration)?gc(e.valueDeclaration.name):mc(e.escapedName)}function vc(e){const t=e.parent.parent;if(t){if(_u(t))return bc(t);switch(t.kind){case 244:if(t.declarationList&&t.declarationList.declarations[0])return bc(t.declarationList.declarations[0]);break;case 245:let e=t.expression;switch(227===e.kind&&64===e.operatorToken.kind&&(e=e.left),e.kind){case 212:return e.name;case 213:const t=e.argumentExpression;if(aD(t))return t}break;case 218:return bc(t.expression);case 257:if(_u(t.statement)||V_(t.statement))return bc(t.statement)}}}function bc(e){const t=Cc(e);return t&&aD(t)?t:void 0}function xc(e,t){return!(!Sc(e)||!aD(e.name)||gc(e.name)!==gc(t))||!(!WF(e)||!$(e.declarationList.declarations,e=>xc(e,t)))}function kc(e){return e.name||vc(e)}function Sc(e){return!!e.name}function Tc(e){switch(e.kind){case 80:return e;case 349:case 342:{const{name:t}=e;if(167===t.kind)return t.right;break}case 214:case 227:{const t=e;switch(tg(t)){case 1:case 4:case 5:case 3:return lg(t.left);case 7:case 8:case 9:return t.arguments[1];default:return}}case 347:return kc(e);case 341:return vc(e);case 278:{const{expression:t}=e;return aD(t)?t:void 0}case 213:const t=e;if(ag(t))return t.argumentExpression}return e.name}function Cc(e){if(void 0!==e)return Tc(e)||(vF(e)||bF(e)||AF(e)?wc(e):void 0)}function wc(e){if(e.parent){if(rP(e.parent)||lF(e.parent))return e.parent.name;if(NF(e.parent)&&e===e.parent.right){if(aD(e.parent.left))return e.parent.left;if(Sx(e.parent.left))return lg(e.parent.left)}else if(lE(e.parent)&&aD(e.parent.name))return e.parent.name}}function Nc(e){if(Lv(e))return N(e.modifiers,CD)}function Dc(e){if(Nv(e,98303))return N(e.modifiers,Zl)}function Fc(e,t){if(e.name){if(aD(e.name)){const n=e.name.escapedText;return il(e.parent,t).filter(e=>BP(e)&&aD(e.name)&&e.name.escapedText===n)}{const n=e.parent.parameters.indexOf(e);un.assert(n>-1,"Parameters should always be in their parents' parameter list");const r=il(e.parent,t).filter(BP);if(nUP(e)&&e.typeParameters.some(e=>e.name.escapedText===n))}function Ic(e){return Ac(e,!1)}function Oc(e){return Ac(e,!0)}function Lc(e){return!!al(e,BP)}function jc(e){return al(e,wP)}function Mc(e){return sl(e,HP)}function Rc(e){return al(e,DP)}function Bc(e){return al(e,EP)}function Jc(e){return al(e,EP,!0)}function zc(e){return al(e,PP)}function qc(e){return al(e,PP,!0)}function Uc(e){return al(e,AP)}function Vc(e){return al(e,AP,!0)}function Wc(e){return al(e,IP)}function $c(e){return al(e,IP,!0)}function Hc(e){return al(e,OP,!0)}function Kc(e){return al(e,jP)}function Gc(e){return al(e,jP,!0)}function Xc(e){return al(e,RP)}function Qc(e){return al(e,zP)}function Yc(e){return al(e,JP)}function Zc(e){return al(e,UP)}function el(e){return al(e,KP)}function tl(e){const t=al(e,qP);if(t&&t.typeExpression&&t.typeExpression.type)return t}function nl(e){let t=al(e,qP);return!t&&TD(e)&&(t=b(Ec(e),e=>!!e.typeExpression)),t&&t.typeExpression&&t.typeExpression.type}function rl(e){const t=Yc(e);if(t&&t.typeExpression)return t.typeExpression.type;const n=tl(e);if(n&&n.typeExpression){const e=n.typeExpression.type;if(qD(e)){const t=b(e.members,OD);return t&&t.type}if(BD(e)||bP(e))return e.type}}function il(e,t){var n;if(!Lg(e))return l;let r=null==(n=e.jsDoc)?void 0:n.jsDocCache;if(void 0===r||t){const n=jg(e,t);un.assert(n.length<2||n[0]!==n[1]),r=O(n,e=>SP(e)?e.tags:e),t||(e.jsDoc??(e.jsDoc=[]),e.jsDoc.jsDocCache=r)}return r}function ol(e){return il(e,!1)}function al(e,t,n){return b(il(e,n),t)}function sl(e,t){return ol(e).filter(t)}function cl(e,t){return ol(e).filter(e=>e.kind===t)}function ll(e){return"string"==typeof e?e:null==e?void 0:e.map(e=>{return 322===e.kind?e.text:`{@${325===(t=e).kind?"link":326===t.kind?"linkcode":"linkplain"} ${t.name?Mp(t.name):""}${t.name&&(""===t.text||t.text.startsWith("://"))?"":" "}${t.text}}`;var t}).join("")}function _l(e){if(CP(e)){if(LP(e.parent)){const t=Wg(e.parent);if(t&&u(t.tags))return O(t.tags,e=>UP(e)?e.typeParameters:void 0)}return l}if(Dg(e))return un.assert(321===e.parent.kind),O(e.parent.tags,e=>UP(e)?e.typeParameters:void 0);if(e.typeParameters)return e.typeParameters;if(WA(e)&&e.typeParameters)return e.typeParameters;if(Em(e)){const t=hv(e);if(t.length)return t;const n=nl(e);if(n&&BD(n)&&n.typeParameters)return n.typeParameters}return l}function ul(e){return e.constraint?e.constraint:UP(e.parent)&&e===e.parent.typeParameters[0]?e.parent.constraint:void 0}function dl(e){return 80===e.kind||81===e.kind}function pl(e){return 179===e.kind||178===e.kind}function fl(e){return dF(e)&&!!(64&e.flags)}function ml(e){return pF(e)&&!!(64&e.flags)}function gl(e){return fF(e)&&!!(64&e.flags)}function hl(e){const t=e.kind;return!!(64&e.flags)&&(212===t||213===t||214===t||236===t)}function yl(e){return hl(e)&&!MF(e)&&!!e.questionDotToken}function vl(e){return yl(e.parent)&&e.parent.expression===e}function bl(e){return!hl(e.parent)||yl(e.parent)||e!==e.parent.expression}function xl(e){return 227===e.kind&&61===e.operatorToken.kind}function kl(e){return RD(e)&&aD(e.typeName)&&"const"===e.typeName.escapedText&&!e.typeArguments}function Sl(e){return NA(e,8)}function Tl(e){return MF(e)&&!!(64&e.flags)}function Cl(e){return 253===e.kind||252===e.kind}function wl(e){return 281===e.kind||280===e.kind}function Nl(e){return 349===e.kind||342===e.kind}function Dl(e){return e>=167}function Fl(e){return e>=0&&e<=166}function El(e){return Fl(e.kind)}function Pl(e){return De(e,"pos")&&De(e,"end")}function Al(e){return 9<=e&&e<=15}function Il(e){return Al(e.kind)}function Ol(e){switch(e.kind){case 211:case 210:case 14:case 219:case 232:return!0}return!1}function Ll(e){return 15<=e&&e<=18}function jl(e){return Ll(e.kind)}function Ml(e){const t=e.kind;return 17===t||18===t}function Rl(e){return PE(e)||LE(e)}function Bl(e){switch(e.kind){case 277:return e.isTypeOnly||156===e.parent.parent.phaseModifier;case 275:return 156===e.parent.phaseModifier;case 274:return 156===e.phaseModifier;case 272:return e.isTypeOnly}return!1}function Jl(e){switch(e.kind){case 282:return e.isTypeOnly||e.parent.parent.isTypeOnly;case 279:return e.isTypeOnly&&!!e.moduleSpecifier&&!e.exportClause;case 281:return e.parent.isTypeOnly}return!1}function zl(e){return Bl(e)||Jl(e)}function ql(e){return void 0!==uc(e,zl)}function Ul(e){return 11===e.kind||Ll(e.kind)}function Vl(e){return UN(e)||aD(e)}function Wl(e){var t;return aD(e)&&void 0!==(null==(t=e.emitNode)?void 0:t.autoGenerate)}function $l(e){var t;return sD(e)&&void 0!==(null==(t=e.emitNode)?void 0:t.autoGenerate)}function Hl(e){const t=e.emitNode.autoGenerate.flags;return!!(32&t)&&!!(16&t)&&!!(8&t)}function Kl(e){return(ND(e)||m_(e))&&sD(e.name)}function Gl(e){return dF(e)&&sD(e.name)}function Xl(e){switch(e){case 128:case 129:case 134:case 87:case 138:case 90:case 95:case 103:case 125:case 123:case 124:case 148:case 126:case 147:case 164:return!0}return!1}function Ql(e){return!!(31&Hv(e))}function Yl(e){return Ql(e)||126===e||164===e||129===e}function Zl(e){return Xl(e.kind)}function e_(e){const t=e.kind;return 167===t||80===t}function t_(e){const t=e.kind;return 80===t||81===t||11===t||9===t||168===t}function n_(e){const t=e.kind;return 80===t||207===t||208===t}function r_(e){return!!e&&c_(e.kind)}function i_(e){return!!e&&(c_(e.kind)||ED(e))}function o_(e){return e&&s_(e.kind)}function a_(e){return 112===e.kind||97===e.kind}function s_(e){switch(e){case 263:case 175:case 177:case 178:case 179:case 219:case 220:return!0;default:return!1}}function c_(e){switch(e){case 174:case 180:case 324:case 181:case 182:case 185:case 318:case 186:return!0;default:return s_(e)}}function l_(e){return sP(e)||hE(e)||VF(e)&&r_(e.parent)}function __(e){const t=e.kind;return 177===t||173===t||175===t||178===t||179===t||182===t||176===t||241===t}function u_(e){return e&&(264===e.kind||232===e.kind)}function d_(e){return e&&(178===e.kind||179===e.kind)}function p_(e){return ND(e)&&Iv(e)}function f_(e){return Em(e)&&lC(e)?!(og(e)&&ub(e.expression)||sg(e,!0)):e.parent&&u_(e.parent)&&ND(e)&&!Iv(e)}function m_(e){switch(e.kind){case 175:case 178:case 179:return!0;default:return!1}}function g_(e){return Zl(e)||CD(e)}function h_(e){const t=e.kind;return 181===t||180===t||172===t||174===t||182===t||178===t||179===t||355===t}function y_(e){return h_(e)||__(e)}function v_(e){const t=e.kind;return 304===t||305===t||306===t||175===t||178===t||179===t}function b_(e){return kx(e.kind)}function x_(e){switch(e.kind){case 185:case 186:return!0}return!1}function k_(e){if(e){const t=e.kind;return 208===t||207===t}return!1}function S_(e){const t=e.kind;return 210===t||211===t}function T_(e){const t=e.kind;return 209===t||233===t}function C_(e){switch(e.kind){case 261:case 170:case 209:return!0}return!1}function w_(e){return lE(e)||TD(e)||F_(e)||P_(e)}function N_(e){return D_(e)||E_(e)}function D_(e){switch(e.kind){case 207:case 211:return!0}return!1}function F_(e){switch(e.kind){case 209:case 304:case 305:case 306:return!0}return!1}function E_(e){switch(e.kind){case 208:case 210:return!0}return!1}function P_(e){switch(e.kind){case 209:case 233:case 231:case 210:case 211:case 80:case 212:case 213:return!0}return rb(e,!0)}function A_(e){const t=e.kind;return 212===t||167===t||206===t}function I_(e){const t=e.kind;return 212===t||167===t}function O_(e){return L_(e)||RT(e)}function L_(e){switch(e.kind){case 214:case 215:case 216:case 171:case 287:case 286:case 290:return!0;case 227:return 104===e.operatorToken.kind;default:return!1}}function j_(e){return 214===e.kind||215===e.kind}function M_(e){const t=e.kind;return 229===t||15===t}function R_(e){return B_(Sl(e).kind)}function B_(e){switch(e){case 212:case 213:case 215:case 214:case 285:case 286:case 289:case 216:case 210:case 218:case 211:case 232:case 219:case 80:case 81:case 14:case 9:case 10:case 11:case 15:case 229:case 97:case 106:case 110:case 112:case 108:case 236:case 234:case 237:case 102:case 283:return!0;default:return!1}}function J_(e){return z_(Sl(e).kind)}function z_(e){switch(e){case 225:case 226:case 221:case 222:case 223:case 224:case 217:return!0;default:return B_(e)}}function q_(e){switch(e.kind){case 226:return!0;case 225:return 46===e.operator||47===e.operator;default:return!1}}function U_(e){switch(e.kind){case 106:case 112:case 97:case 225:return!0;default:return Il(e)}}function V_(e){return function(e){switch(e){case 228:case 230:case 220:case 227:case 231:case 235:case 233:case 357:case 356:case 239:return!0;default:return z_(e)}}(Sl(e).kind)}function W_(e){const t=e.kind;return 217===t||235===t}function $_(e,t){switch(e.kind){case 249:case 250:case 251:case 247:case 248:return!0;case 257:return t&&$_(e.statement,t)}return!1}function H_(e){return AE(e)||IE(e)}function K_(e){return $(e,H_)}function G_(e){return!(Dp(e)||AE(e)||Nv(e,32)||cp(e))}function X_(e){return Dp(e)||AE(e)||Nv(e,32)}function Q_(e){return 250===e.kind||251===e.kind}function Y_(e){return VF(e)||V_(e)}function Z_(e){return VF(e)}function eu(e){return _E(e)||V_(e)}function tu(e){const t=e.kind;return 269===t||268===t||80===t}function nu(e){const t=e.kind;return 269===t||268===t}function ru(e){const t=e.kind;return 80===t||268===t}function iu(e){const t=e.kind;return 276===t||275===t}function ou(e){return 268===e.kind||267===e.kind}function au(e){switch(e.kind){case 220:case 227:case 209:case 214:case 180:case 264:case 232:case 176:case 177:case 186:case 181:case 213:case 267:case 307:case 278:case 279:case 282:case 263:case 219:case 185:case 178:case 80:case 274:case 272:case 277:case 182:case 265:case 339:case 341:case 318:case 342:case 349:case 324:case 347:case 323:case 292:case 293:case 294:case 201:case 175:case 174:case 268:case 203:case 281:case 271:case 275:case 215:case 15:case 9:case 211:case 170:case 212:case 304:case 173:case 172:case 179:case 305:case 308:case 306:case 11:case 266:case 188:case 169:case 261:return!0;default:return!1}}function su(e){switch(e.kind){case 220:case 242:case 180:case 270:case 300:case 176:case 195:case 177:case 186:case 181:case 249:case 250:case 251:case 263:case 219:case 185:case 178:case 182:case 339:case 341:case 318:case 324:case 347:case 201:case 175:case 174:case 268:case 179:case 308:case 266:return!0;default:return!1}}function cu(e){return 263===e||283===e||264===e||265===e||266===e||267===e||268===e||273===e||272===e||279===e||278===e||271===e}function lu(e){return 253===e||252===e||260===e||247===e||245===e||243===e||250===e||251===e||249===e||246===e||257===e||254===e||256===e||258===e||259===e||244===e||248===e||255===e||354===e}function _u(e){return 169===e.kind?e.parent&&346!==e.parent.kind||Em(e):220===(t=e.kind)||209===t||264===t||232===t||176===t||177===t||267===t||307===t||282===t||263===t||219===t||178===t||274===t||272===t||277===t||265===t||292===t||175===t||174===t||268===t||271===t||275===t||281===t||170===t||304===t||173===t||172===t||179===t||305===t||266===t||169===t||261===t||347===t||339===t||349===t||203===t;var t}function uu(e){return cu(e.kind)}function du(e){return lu(e.kind)}function pu(e){const t=e.kind;return lu(t)||cu(t)||function(e){return 242===e.kind&&((void 0===e.parent||259!==e.parent.kind&&300!==e.parent.kind)&&!Bf(e))}(e)}function fu(e){const t=e.kind;return lu(t)||cu(t)||242===t}function mu(e){const t=e.kind;return 284===t||167===t||80===t}function gu(e){const t=e.kind;return 110===t||80===t||212===t||296===t}function hu(e){const t=e.kind;return 285===t||295===t||286===t||12===t||289===t}function yu(e){const t=e.kind;return 292===t||294===t}function vu(e){const t=e.kind;return 11===t||295===t}function bu(e){const t=e.kind;return 287===t||286===t}function xu(e){const t=e.kind;return 287===t||286===t||290===t}function ku(e){const t=e.kind;return 297===t||298===t}function Su(e){return e.kind>=310&&e.kind<=352}function Tu(e){return 321===e.kind||320===e.kind||322===e.kind||Mu(e)||Cu(e)||TP(e)||CP(e)}function Cu(e){return e.kind>=328&&e.kind<=352}function wu(e){return 179===e.kind}function Nu(e){return 178===e.kind}function Du(e){if(!Lg(e))return!1;const{jsDoc:t}=e;return!!t&&t.length>0}function Fu(e){return!!e.type}function Eu(e){return!!e.initializer}function Pu(e){switch(e.kind){case 261:case 170:case 209:case 173:case 304:case 307:return!0;default:return!1}}function Au(e){return 292===e.kind||294===e.kind||v_(e)}function Iu(e){return 184===e.kind||234===e.kind}var Ou=1073741823;function Lu(e){let t=Ou;for(const n of e){if(!n.length)continue;let e=0;for(;e0?n.parent.parameters[r-1]:void 0,o=t.text,a=i?K(us(o,Qa(o,i.end+1,!1,!0)),_s(o,e.pos)):us(o,Qa(o,e.pos,!1,!0));return $(a)&&Ju(ve(a),t)}return!!d(n&&yf(n,t),e=>Ju(e,t))}var qu=[],Uu="tslib",Vu=160,Wu=1e6,$u=500;function Hu(e,t){const n=e.declarations;if(n)for(const e of n)if(e.kind===t)return e}function Ku(e,t){return N(e.declarations||l,e=>e.kind===t)}function Gu(e){const t=new Map;if(e)for(const n of e)t.set(n.escapedName,n);return t}function Xu(e){return!!(33554432&e.flags)}function Qu(e){return!!(1536&e.flags)&&34===e.escapedName.charCodeAt(0)}var Yu=function(){var e="";const t=t=>e+=t;return{getText:()=>e,write:t,rawWrite:t,writeKeyword:t,writeOperator:t,writePunctuation:t,writeSpace:t,writeStringLiteral:t,writeLiteral:t,writeParameter:t,writeProperty:t,writeSymbol:(e,n)=>t(e),writeTrailingSemicolon:t,writeComment:t,getTextPos:()=>e.length,getLine:()=>0,getColumn:()=>0,getIndent:()=>0,isAtStartOfLine:()=>!1,hasTrailingComment:()=>!1,hasTrailingWhitespace:()=>!!e.length&&qa(e.charCodeAt(e.length-1)),writeLine:()=>e+=" ",increaseIndent:rt,decreaseIndent:rt,clear:()=>e=""}}();function Zu(e,t){return e.configFilePath!==t.configFilePath||function(e,t){return td(e,t,RO)}(e,t)}function ed(e,t){return td(e,t,JO)}function td(e,t,n){return e!==t&&n.some(n=>!fT($k(e,n),$k(t,n)))}function nd(e,t){for(;;){const n=t(e);if("quit"===n)return;if(void 0!==n)return n;if(sP(e))return;e=e.parent}}function rd(e,t){const n=e.entries();for(const[e,r]of n){const n=t(r,e);if(n)return n}}function id(e,t){const n=e.keys();for(const e of n){const n=t(e);if(n)return n}}function od(e,t){e.forEach((e,n)=>{t.set(n,e)})}function ad(e){const t=Yu.getText();try{return e(Yu),Yu.getText()}finally{Yu.clear(),Yu.writeKeyword(t)}}function sd(e){return e.end-e.pos}function cd(e,t){return e.path===t.path&&!e.prepend==!t.prepend&&!e.circular==!t.circular}function ld(e,t){return e===t||e.resolvedModule===t.resolvedModule||!!e.resolvedModule&&!!t.resolvedModule&&e.resolvedModule.isExternalLibraryImport===t.resolvedModule.isExternalLibraryImport&&e.resolvedModule.extension===t.resolvedModule.extension&&e.resolvedModule.resolvedFileName===t.resolvedModule.resolvedFileName&&e.resolvedModule.originalPath===t.resolvedModule.originalPath&&((n=e.resolvedModule.packageId)===(r=t.resolvedModule.packageId)||!!n&&!!r&&n.name===r.name&&n.subModuleName===r.subModuleName&&n.version===r.version&&n.peerDependencies===r.peerDependencies)&&e.alternateResult===t.alternateResult;var n,r}function _d(e){return e.resolvedModule}function ud(e){return e.resolvedTypeReferenceDirective}function dd(e,t,n,r,i){var o;const a=null==(o=t.getResolvedModule(e,n,r))?void 0:o.alternateResult,s=a&&(2===bk(t.getCompilerOptions())?[_a.There_are_types_at_0_but_this_result_could_not_be_resolved_under_your_current_moduleResolution_setting_Consider_updating_to_node16_nodenext_or_bundler,[a]]:[_a.There_are_types_at_0_but_this_result_could_not_be_resolved_when_respecting_package_json_exports_The_1_library_may_need_to_update_its_package_json_or_typings,[a,a.includes(KM+"@types/")?`@types/${PR(i)}`:i]]),c=s?Zx(void 0,s[0],...s[1]):t.typesPackageExists(i)?Zx(void 0,_a.If_the_0_package_actually_exposes_this_module_consider_sending_a_pull_request_to_amend_https_Colon_Slash_Slashgithub_com_SlashDefinitelyTyped_SlashDefinitelyTyped_Slashtree_Slashmaster_Slashtypes_Slash_1,i,PR(i)):t.packageBundlesTypes(i)?Zx(void 0,_a.If_the_0_package_actually_exposes_this_module_try_adding_a_new_declaration_d_ts_file_containing_declare_module_1,i,n):Zx(void 0,_a.Try_npm_i_save_dev_types_Slash_1_if_it_exists_or_add_a_new_declaration_d_ts_file_containing_declare_module_0,n,PR(i));return c&&(c.repopulateInfo=()=>({moduleReference:n,mode:r,packageName:i===n?void 0:i})),c}function pd(e){const t=tT(e.fileName),n=e.packageJsonScope,r=".ts"===t?".mts":".js"===t?".mjs":void 0,i=n&&!n.contents.packageJsonContent.type?r?Zx(void 0,_a.To_convert_this_file_to_an_ECMAScript_module_change_its_file_extension_to_0_or_add_the_field_type_Colon_module_to_1,r,jo(n.packageDirectory,"package.json")):Zx(void 0,_a.To_convert_this_file_to_an_ECMAScript_module_add_the_field_type_Colon_module_to_0,jo(n.packageDirectory,"package.json")):r?Zx(void 0,_a.To_convert_this_file_to_an_ECMAScript_module_change_its_file_extension_to_0_or_create_a_local_package_json_file_with_type_Colon_module,r):Zx(void 0,_a.To_convert_this_file_to_an_ECMAScript_module_create_a_local_package_json_file_with_type_Colon_module);return i.repopulateInfo=()=>!0,i}function fd({name:e,subModuleName:t}){return t?`${e}/${t}`:e}function md(e){return`${fd(e)}@${e.version}${e.peerDependencies??""}`}function gd(e,t){return e===t||e.resolvedTypeReferenceDirective===t.resolvedTypeReferenceDirective||!!e.resolvedTypeReferenceDirective&&!!t.resolvedTypeReferenceDirective&&e.resolvedTypeReferenceDirective.resolvedFileName===t.resolvedTypeReferenceDirective.resolvedFileName&&!!e.resolvedTypeReferenceDirective.primary==!!t.resolvedTypeReferenceDirective.primary&&e.resolvedTypeReferenceDirective.originalPath===t.resolvedTypeReferenceDirective.originalPath}function hd(e,t,n,r){un.assert(e.length===t.length);for(let i=0;i=0),Ma(t)[e]}function Td(e){const t=vd(e),n=za(t,e.pos);return`${t.fileName}(${n.line+1},${n.character+1})`}function Cd(e,t){un.assert(e>=0);const n=Ma(t),r=e,i=t.text;if(r+1===n.length)return i.length-1;{const e=n[r];let t=n[r+1]-1;for(un.assert(Va(i.charCodeAt(t)));e<=t&&Va(i.charCodeAt(t));)t--;return t}}function wd(e,t,n){return!(n&&n(t)||e.identifiers.has(t))}function Nd(e){return void 0===e||e.pos===e.end&&e.pos>=0&&1!==e.kind}function Dd(e){return!Nd(e)}function Fd(e,t){return SD(e)?t===e.expression:ED(e)?t===e.modifiers:wD(e)?t===e.initializer:ND(e)?t===e.questionToken&&p_(e):rP(e)?t===e.modifiers||t===e.questionToken||t===e.exclamationToken||Ed(e.modifiers,t,g_):iP(e)?t===e.equalsToken||t===e.modifiers||t===e.questionToken||t===e.exclamationToken||Ed(e.modifiers,t,g_):FD(e)?t===e.exclamationToken:PD(e)?t===e.typeParameters||t===e.type||Ed(e.typeParameters,t,SD):AD(e)?t===e.typeParameters||Ed(e.typeParameters,t,SD):ID(e)?t===e.typeParameters||t===e.type||Ed(e.typeParameters,t,SD):!!vE(e)&&(t===e.modifiers||Ed(e.modifiers,t,g_))}function Ed(e,t,n){return!(!e||Qe(t)||!n(t))&&T(e,t)}function Pd(e,t,n){if(void 0===t||0===t.length)return e;let r=0;for(;r[`${za(e,t.range.end).line}`,t])),r=new Map;return{getUnusedExpectations:function(){return Oe(n.entries()).filter(([e,t])=>0===t.type&&!r.get(e)).map(([e,t])=>t)},markUsed:function(e){return!!n.has(`${e}`)&&(r.set(`${e}`,!0),!0)}}}function zd(e,t,n){if(Nd(e))return e.pos;if(Su(e)||12===e.kind)return Qa((t??vd(e)).text,e.pos,!1,!0);if(n&&Du(e))return zd(e.jsDoc[0],t);if(353===e.kind){t??(t=vd(e));const r=fe(eA(e,t));if(r)return zd(r,t,n)}return Qa((t??vd(e)).text,e.pos,!1,!1,Im(e))}function qd(e,t){const n=!Nd(e)&&kI(e)?x(e.modifiers,CD):void 0;return n?Qa((t||vd(e)).text,n.end):zd(e,t)}function Ud(e,t){const n=!Nd(e)&&kI(e)&&e.modifiers?ve(e.modifiers):void 0;return n?Qa((t||vd(e)).text,n.end):zd(e,t)}function Vd(e,t,n=!1){return Gd(e.text,t,n)}function Wd(e){return!!(IE(e)&&e.exportClause&&FE(e.exportClause)&&Kd(e.exportClause.name))}function $d(e){return 11===e.kind?e.text:mc(e.escapedText)}function Hd(e){return 11===e.kind?fc(e.text):e.escapedText}function Kd(e){return"default"===(11===e.kind?e.text:e.escapedText)}function Gd(e,t,n=!1){if(Nd(t))return"";let r=e.substring(n?t.pos:Qa(e,t.pos),t.end);return function(e){return!!uc(e,lP)}(t)&&(r=r.split(/\r\n|\n|\r/).map(e=>e.replace(/^\s*\*/,"").trimStart()).join("\n")),r}function Xd(e,t=!1){return Vd(vd(e),e,t)}function Qd(e){return e.pos}function Yd(e,t){return Te(e,t,Qd,vt)}function Zd(e){const t=e.emitNode;return t&&t.flags||0}function ep(e){const t=e.emitNode;return t&&t.internalFlags||0}var tp=dt(()=>new Map(Object.entries({Array:new Map(Object.entries({es2015:["find","findIndex","fill","copyWithin","entries","keys","values"],es2016:["includes"],es2019:["flat","flatMap"],es2022:["at"],es2023:["findLastIndex","findLast","toReversed","toSorted","toSpliced","with"]})),Iterator:new Map(Object.entries({es2015:l})),AsyncIterator:new Map(Object.entries({es2015:l})),ArrayBuffer:new Map(Object.entries({es2024:["maxByteLength","resizable","resize","detached","transfer","transferToFixedLength"]})),Atomics:new Map(Object.entries({es2017:["add","and","compareExchange","exchange","isLockFree","load","or","store","sub","wait","notify","xor"],es2024:["waitAsync"],esnext:["pause"]})),SharedArrayBuffer:new Map(Object.entries({es2017:["byteLength","slice"],es2024:["growable","maxByteLength","grow"]})),AsyncIterable:new Map(Object.entries({es2018:l})),AsyncIterableIterator:new Map(Object.entries({es2018:l})),AsyncGenerator:new Map(Object.entries({es2018:l})),AsyncGeneratorFunction:new Map(Object.entries({es2018:l})),RegExp:new Map(Object.entries({es2015:["flags","sticky","unicode"],es2018:["dotAll"],es2024:["unicodeSets"]})),Reflect:new Map(Object.entries({es2015:["apply","construct","defineProperty","deleteProperty","get","getOwnPropertyDescriptor","getPrototypeOf","has","isExtensible","ownKeys","preventExtensions","set","setPrototypeOf"]})),ArrayConstructor:new Map(Object.entries({es2015:["from","of"],esnext:["fromAsync"]})),ObjectConstructor:new Map(Object.entries({es2015:["assign","getOwnPropertySymbols","keys","is","setPrototypeOf"],es2017:["values","entries","getOwnPropertyDescriptors"],es2019:["fromEntries"],es2022:["hasOwn"],es2024:["groupBy"]})),NumberConstructor:new Map(Object.entries({es2015:["isFinite","isInteger","isNaN","isSafeInteger","parseFloat","parseInt"]})),Math:new Map(Object.entries({es2015:["clz32","imul","sign","log10","log2","log1p","expm1","cosh","sinh","tanh","acosh","asinh","atanh","hypot","trunc","fround","cbrt"],esnext:["f16round"]})),Map:new Map(Object.entries({es2015:["entries","keys","values"]})),MapConstructor:new Map(Object.entries({es2024:["groupBy"]})),Set:new Map(Object.entries({es2015:["entries","keys","values"],esnext:["union","intersection","difference","symmetricDifference","isSubsetOf","isSupersetOf","isDisjointFrom"]})),PromiseConstructor:new Map(Object.entries({es2015:["all","race","reject","resolve"],es2020:["allSettled"],es2021:["any"],es2024:["withResolvers"]})),Symbol:new Map(Object.entries({es2015:["for","keyFor"],es2019:["description"]})),WeakMap:new Map(Object.entries({es2015:["entries","keys","values"]})),WeakSet:new Map(Object.entries({es2015:["entries","keys","values"]})),String:new Map(Object.entries({es2015:["codePointAt","includes","endsWith","normalize","repeat","startsWith","anchor","big","blink","bold","fixed","fontcolor","fontsize","italics","link","small","strike","sub","sup"],es2017:["padStart","padEnd"],es2019:["trimStart","trimEnd","trimLeft","trimRight"],es2020:["matchAll"],es2021:["replaceAll"],es2022:["at"],es2024:["isWellFormed","toWellFormed"]})),StringConstructor:new Map(Object.entries({es2015:["fromCodePoint","raw"]})),DateTimeFormat:new Map(Object.entries({es2017:["formatToParts"]})),Promise:new Map(Object.entries({es2015:l,es2018:["finally"]})),RegExpMatchArray:new Map(Object.entries({es2018:["groups"]})),RegExpExecArray:new Map(Object.entries({es2018:["groups"]})),Intl:new Map(Object.entries({es2018:["PluralRules"]})),NumberFormat:new Map(Object.entries({es2018:["formatToParts"]})),SymbolConstructor:new Map(Object.entries({es2020:["matchAll"],esnext:["metadata","dispose","asyncDispose"]})),DataView:new Map(Object.entries({es2020:["setBigInt64","setBigUint64","getBigInt64","getBigUint64"],esnext:["setFloat16","getFloat16"]})),BigInt:new Map(Object.entries({es2020:l})),RelativeTimeFormat:new Map(Object.entries({es2020:["format","formatToParts","resolvedOptions"]})),Int8Array:new Map(Object.entries({es2022:["at"],es2023:["findLastIndex","findLast","toReversed","toSorted","toSpliced","with"]})),Uint8Array:new Map(Object.entries({es2022:["at"],es2023:["findLastIndex","findLast","toReversed","toSorted","toSpliced","with"]})),Uint8ClampedArray:new Map(Object.entries({es2022:["at"],es2023:["findLastIndex","findLast","toReversed","toSorted","toSpliced","with"]})),Int16Array:new Map(Object.entries({es2022:["at"],es2023:["findLastIndex","findLast","toReversed","toSorted","toSpliced","with"]})),Uint16Array:new Map(Object.entries({es2022:["at"],es2023:["findLastIndex","findLast","toReversed","toSorted","toSpliced","with"]})),Int32Array:new Map(Object.entries({es2022:["at"],es2023:["findLastIndex","findLast","toReversed","toSorted","toSpliced","with"]})),Uint32Array:new Map(Object.entries({es2022:["at"],es2023:["findLastIndex","findLast","toReversed","toSorted","toSpliced","with"]})),Float16Array:new Map(Object.entries({esnext:l})),Float32Array:new Map(Object.entries({es2022:["at"],es2023:["findLastIndex","findLast","toReversed","toSorted","toSpliced","with"]})),Float64Array:new Map(Object.entries({es2022:["at"],es2023:["findLastIndex","findLast","toReversed","toSorted","toSpliced","with"]})),BigInt64Array:new Map(Object.entries({es2020:l,es2022:["at"],es2023:["findLastIndex","findLast","toReversed","toSorted","toSpliced","with"]})),BigUint64Array:new Map(Object.entries({es2020:l,es2022:["at"],es2023:["findLastIndex","findLast","toReversed","toSorted","toSpliced","with"]})),Error:new Map(Object.entries({es2022:["cause"]}))}))),np=(e=>(e[e.None=0]="None",e[e.NeverAsciiEscape=1]="NeverAsciiEscape",e[e.JsxAttributeEscape=2]="JsxAttributeEscape",e[e.TerminateUnterminatedLiterals=4]="TerminateUnterminatedLiterals",e[e.AllowNumericSeparator=8]="AllowNumericSeparator",e))(np||{});function rp(e,t,n){if(t&&function(e,t){if(ey(e)||!e.parent||4&t&&e.isUnterminated)return!1;if(zN(e)){if(26656&e.numericLiteralFlags)return!1;if(512&e.numericLiteralFlags)return!!(8&t)}return!qN(e)}(e,n))return Vd(t,e);switch(e.kind){case 11:{const t=2&n?Dy:1&n||16777216&Zd(e)?xy:Sy;return e.singleQuote?"'"+t(e.text,39)+"'":'"'+t(e.text,34)+'"'}case 15:case 16:case 17:case 18:{const t=1&n||16777216&Zd(e)?xy:Sy,r=e.rawText??dy(t(e.text,96));switch(e.kind){case 15:return"`"+r+"`";case 16:return"`"+r+"${";case 17:return"}"+r+"${";case 18:return"}"+r+"`"}break}case 9:case 10:return e.text;case 14:return 4&n&&e.isUnterminated?e.text+(92===e.text.charCodeAt(e.text.length-1)?" /":"/"):e.text}return un.fail(`Literal kind '${e.kind}' not accounted for.`)}function ip(e){return Ze(e)?`"${xy(e)}"`:""+e}function op(e){return Fo(e).replace(/^(\d)/,"_$1").replace(/\W/g,"_")}function ap(e){return!!(7&ac(e))||sp(e)}function sp(e){const t=Yh(e);return 261===t.kind&&300===t.parent.kind}function cp(e){return gE(e)&&(11===e.name.kind||pp(e))}function lp(e){return gE(e)&&11===e.name.kind}function _p(e){return gE(e)&&UN(e.name)}function up(e){return!!(t=e.valueDeclaration)&&268===t.kind&&!t.body;var t}function dp(e){return 308===e.kind||268===e.kind||i_(e)}function pp(e){return!!(2048&e.flags)}function fp(e){return cp(e)&&mp(e)}function mp(e){switch(e.parent.kind){case 308:return rO(e.parent);case 269:return cp(e.parent.parent)&&sP(e.parent.parent.parent)&&!rO(e.parent.parent.parent)}return!1}function gp(e){var t;return null==(t=e.declarations)?void 0:t.find(e=>!(fp(e)||gE(e)&&pp(e)))}function hp(e,t){return rO(e)||(1===(n=vk(t))||100<=n&&n<=199)&&!!e.commonJsModuleIndicator;var n}function yp(e,t){switch(e.scriptKind){case 1:case 3:case 2:case 4:break;default:return!1}return!(e.isDeclarationFile||!Jk(t,"alwaysStrict")&&!xA(e.statements)&&!rO(e)&&!kk(t))}function vp(e){return!!(33554432&e.flags)||Nv(e,128)}function bp(e,t){switch(e.kind){case 308:case 270:case 300:case 268:case 249:case 250:case 251:case 177:case 175:case 178:case 179:case 263:case 219:case 220:case 173:case 176:return!0;case 242:return!i_(t)}return!1}function xp(e){switch(un.type(e),e.kind){case 339:case 347:case 324:return!0;default:return kp(e)}}function kp(e){switch(un.type(e),e.kind){case 180:case 181:case 174:case 182:case 185:case 186:case 318:case 264:case 232:case 265:case 266:case 346:case 263:case 175:case 177:case 178:case 179:case 219:case 220:return!0;default:return!1}}function Sp(e){switch(e.kind){case 273:case 272:return!0;default:return!1}}function Tp(e){return Sp(e)||Mm(e)}function Cp(e){return Sp(e)||Jm(e)}function wp(e){switch(e.kind){case 273:case 272:case 244:case 264:case 263:case 268:case 266:case 265:case 267:return!0;default:return!1}}function Np(e){return Dp(e)||gE(e)||iF(e)||_f(e)}function Dp(e){return Sp(e)||IE(e)}function Fp(e){return uc(e.parent,e=>!!(1&ZR(e)))}function Ep(e){return uc(e.parent,e=>bp(e,e.parent))}function Pp(e,t){let n=Ep(e);for(;n;)t(n),n=Ep(n)}function Ap(e){return e&&0!==sd(e)?Xd(e):"(Missing)"}function Ip(e){return e.declaration?Ap(e.declaration.parameters[0].name):void 0}function Op(e){return 168===e.kind&&!jh(e.expression)}function Lp(e){var t;switch(e.kind){case 80:case 81:return(null==(t=e.emitNode)?void 0:t.autoGenerate)?void 0:e.escapedText;case 11:case 9:case 10:case 15:return fc(e.text);case 168:return jh(e.expression)?fc(e.expression.text):void 0;case 296:return iC(e);default:return un.assertNever(e)}}function jp(e){return un.checkDefined(Lp(e))}function Mp(e){switch(e.kind){case 110:return"this";case 81:case 80:return 0===sd(e)?gc(e):Xd(e);case 167:return Mp(e.left)+"."+Mp(e.right);case 212:return aD(e.name)||sD(e.name)?Mp(e.expression)+"."+Mp(e.name):un.assertNever(e.name);case 312:return Mp(e.left)+"#"+Mp(e.right);case 296:return Mp(e.namespace)+":"+Mp(e.name);default:return un.assertNever(e)}}function Rp(e,t,...n){return Jp(vd(e),e,t,...n)}function Bp(e,t,n,...r){const i=Qa(e.text,t.pos);return Gx(e,i,t.end-i,n,...r)}function Jp(e,t,n,...r){const i=Qp(e,t);return Gx(e,i.start,i.length,n,...r)}function zp(e,t,n,r){const i=Qp(e,t);return Vp(e,i.start,i.length,n,r)}function qp(e,t,n,r){const i=Qa(e.text,t.pos);return Vp(e,i,t.end-i,n,r)}function Up(e,t,n){un.assertGreaterThanOrEqual(t,0),un.assertGreaterThanOrEqual(n,0),un.assertLessThanOrEqual(t,e.length),un.assertLessThanOrEqual(t+n,e.length)}function Vp(e,t,n,r,i){return Up(e.text,t,n),{file:e,start:t,length:n,code:r.code,category:r.category,messageText:r.next?r:r.messageText,relatedInformation:i,canonicalHead:r.canonicalHead}}function Wp(e,t,n){return{file:e,start:0,length:0,code:t.code,category:t.category,messageText:t.next?t:t.messageText,relatedInformation:n}}function $p(e){return"string"==typeof e.messageText?{code:e.code,category:e.category,messageText:e.messageText,next:e.next}:e.messageText}function Hp(e,t,n){return{file:e,start:t.pos,length:t.end-t.pos,code:n.code,category:n.category,messageText:n.message}}function Kp(e,...t){return{code:e.code,messageText:Xx(e,...t)}}function Gp(e,t){const n=gs(e.languageVersion,!0,e.languageVariant,e.text,void 0,t);return n.scan(),$s(n.getTokenStart(),n.getTokenEnd())}function Xp(e,t){const n=gs(e.languageVersion,!0,e.languageVariant,e.text,void 0,t);return n.scan(),n.getToken()}function Qp(e,t){let n=t;switch(t.kind){case 308:{const t=Qa(e.text,0,!1);return t===e.text.length?Ws(0,0):Gp(e,t)}case 261:case 209:case 264:case 232:case 265:case 268:case 267:case 307:case 263:case 219:case 175:case 178:case 179:case 266:case 173:case 172:case 275:n=t.name;break;case 220:return function(e,t){const n=Qa(e.text,t.pos);if(t.body&&242===t.body.kind){const{line:r}=za(e,t.body.pos),{line:i}=za(e,t.body.end);if(r0?t.statements[0].pos:t.end);case 254:case 230:return Gp(e,Qa(e.text,t.pos));case 239:return Gp(e,Qa(e.text,t.expression.end));case 351:return Gp(e,Qa(e.text,t.tagName.pos));case 177:{const n=t,r=Qa(e.text,n.pos),i=gs(e.languageVersion,!0,e.languageVariant,e.text,void 0,r);let o=i.scan();for(;137!==o&&1!==o;)o=i.scan();return $s(r,i.getTokenEnd())}}if(void 0===n)return Gp(e,t.pos);un.assert(!SP(n));const r=Nd(n),i=r||VN(t)?n.pos:Qa(e.text,n.pos);return r?(un.assert(i===n.pos,"This failure could trigger https://github.com/Microsoft/TypeScript/issues/20809"),un.assert(i===n.end,"This failure could trigger https://github.com/Microsoft/TypeScript/issues/20809")):(un.assert(i>=n.pos,"This failure could trigger https://github.com/Microsoft/TypeScript/issues/20809"),un.assert(i<=n.end,"This failure could trigger https://github.com/Microsoft/TypeScript/issues/20809")),$s(i,n.end)}function Yp(e){return 308===e.kind&&!Zp(e)}function Zp(e){return void 0!==(e.externalModuleIndicator||e.commonJsModuleIndicator)}function ef(e){return 6===e.scriptKind}function tf(e){return!!(4096&ic(e))}function nf(e){return!(!(8&ic(e))||Zs(e,e.parent))}function rf(e){return 6==(7&ac(e))}function of(e){return 4==(7&ac(e))}function af(e){return 2==(7&ac(e))}function sf(e){const t=7&ac(e);return 2===t||4===t||6===t}function cf(e){return 1==(7&ac(e))}function lf(e){return 214===e.kind&&108===e.expression.kind}function _f(e){if(214!==e.kind)return!1;const t=e.expression;return 102===t.kind||RF(t)&&102===t.keywordToken&&"defer"===t.name.escapedText}function uf(e){return RF(e)&&102===e.keywordToken&&"meta"===e.name.escapedText}function df(e){return iF(e)&&rF(e.argument)&&UN(e.argument.literal)}function pf(e){return 245===e.kind&&11===e.expression.kind}function ff(e){return!!(2097152&Zd(e))}function mf(e){return ff(e)&&uE(e)}function gf(e){return aD(e.name)&&!e.initializer}function hf(e){return ff(e)&&WF(e)&&v(e.declarationList.declarations,gf)}function yf(e,t){return 12!==e.kind?_s(t.text,e.pos):void 0}function vf(e,t){return N(170===e.kind||169===e.kind||219===e.kind||220===e.kind||218===e.kind||261===e.kind||282===e.kind?K(us(t,e.pos),_s(t,e.pos)):_s(t,e.pos),n=>n.end<=e.end&&42===t.charCodeAt(n.pos+1)&&42===t.charCodeAt(n.pos+2)&&47!==t.charCodeAt(n.pos+3))}var bf=/^\/\/\/\s*/,xf=/^\/\/\/\s*/,kf=/^\/\/\/\s*/,Sf=/^\/\/\/\s*/,Tf=/^\/\/\/\s*/,Cf=/^\/\/\/\s*/;function wf(e){if(183<=e.kind&&e.kind<=206)return!0;switch(e.kind){case 133:case 159:case 150:case 163:case 154:case 136:case 155:case 151:case 157:case 106:case 146:return!0;case 116:return 223!==e.parent.kind;case 234:return Nf(e);case 169:return 201===e.parent.kind||196===e.parent.kind;case 80:(167===e.parent.kind&&e.parent.right===e||212===e.parent.kind&&e.parent.name===e)&&(e=e.parent),un.assert(80===e.kind||167===e.kind||212===e.kind,"'node' was expected to be a qualified name, identifier or property access in 'isPartOfTypeNode'.");case 167:case 212:case 110:{const{parent:t}=e;if(187===t.kind)return!1;if(206===t.kind)return!t.isTypeOf;if(183<=t.kind&&t.kind<=206)return!0;switch(t.kind){case 234:return Nf(t);case 169:case 346:return e===t.constraint;case 173:case 172:case 170:case 261:case 263:case 219:case 220:case 177:case 175:case 174:case 178:case 179:case 180:case 181:case 182:case 217:return e===t.type;case 214:case 215:case 216:return T(t.typeArguments,e)}}}return!1}function Nf(e){return HP(e.parent)||wP(e.parent)||tP(e.parent)&&!ob(e)}function Df(e,t){return function e(n){switch(n.kind){case 254:return t(n);case 270:case 242:case 246:case 247:case 248:case 249:case 250:case 251:case 255:case 256:case 297:case 298:case 257:case 259:case 300:return XI(n,e)}}(e)}function Ff(e,t){return function e(n){switch(n.kind){case 230:t(n);const r=n.expression;return void(r&&e(r));case 267:case 265:case 268:case 266:return;default:if(r_(n)){if(n.name&&168===n.name.kind)return void e(n.name.expression)}else wf(n)||XI(n,e)}}(e)}function Ef(e){return e&&189===e.kind?e.elementType:e&&184===e.kind?be(e.typeArguments):void 0}function Pf(e){switch(e.kind){case 265:case 264:case 232:case 188:return e.members;case 211:return e.properties}}function Af(e){if(e)switch(e.kind){case 209:case 307:case 170:case 304:case 173:case 172:case 305:case 261:return!0}return!1}function If(e){return 262===e.parent.kind&&244===e.parent.parent.kind}function Of(e){return!!Em(e)&&(uF(e.parent)&&NF(e.parent.parent)&&2===tg(e.parent.parent)||Lf(e.parent))}function Lf(e){return!!Em(e)&&NF(e)&&1===tg(e)}function jf(e){return(lE(e)?af(e)&&aD(e.name)&&If(e):ND(e)?Ov(e)&&Fv(e):wD(e)&&Ov(e))||Lf(e)}function Mf(e){switch(e.kind){case 175:case 174:case 177:case 178:case 179:case 263:case 219:return!0}return!1}function Rf(e,t){for(;;){if(t&&t(e),257!==e.statement.kind)return e.statement;e=e.statement}}function Bf(e){return e&&242===e.kind&&r_(e.parent)}function Jf(e){return e&&175===e.kind&&211===e.parent.kind}function zf(e){return!(175!==e.kind&&178!==e.kind&&179!==e.kind||211!==e.parent.kind&&232!==e.parent.kind)}function qf(e){return e&&1===e.kind}function Uf(e){return e&&0===e.kind}function Vf(e,t,n,r){return d(null==e?void 0:e.properties,e=>{if(!rP(e))return;const i=Lp(e.name);return t===i||r&&r===i?n(e):void 0})}function Wf(e){if(e&&e.statements.length)return tt(e.statements[0].expression,uF)}function $f(e,t,n){return Hf(e,t,e=>_F(e.initializer)?b(e.initializer.elements,e=>UN(e)&&e.text===n):void 0)}function Hf(e,t,n){return Vf(Wf(e),t,n)}function Kf(e){return uc(e.parent,r_)}function Gf(e){return uc(e.parent,o_)}function Xf(e){return uc(e.parent,u_)}function Qf(e){return uc(e.parent,e=>u_(e)||r_(e)?"quit":ED(e))}function Yf(e){return uc(e.parent,i_)}function Zf(e){const t=uc(e.parent,e=>u_(e)?"quit":CD(e));return t&&u_(t.parent)?Xf(t.parent):Xf(t??e)}function em(e,t,n){for(un.assert(308!==e.kind);;){if(!(e=e.parent))return un.fail();switch(e.kind){case 168:if(n&&u_(e.parent.parent))return e;e=e.parent.parent;break;case 171:170===e.parent.kind&&__(e.parent.parent)?e=e.parent.parent:__(e.parent)&&(e=e.parent);break;case 220:if(!t)continue;case 263:case 219:case 268:case 176:case 173:case 172:case 175:case 174:case 177:case 178:case 179:case 180:case 181:case 182:case 267:case 308:return e}}}function tm(e){switch(e.kind){case 220:case 263:case 219:case 173:return!0;case 242:switch(e.parent.kind){case 177:case 175:case 178:case 179:return!0;default:return!1}default:return!1}}function nm(e){return aD(e)&&(dE(e.parent)||uE(e.parent))&&e.parent.name===e&&(e=e.parent),sP(em(e,!0,!1))}function rm(e){const t=em(e,!1,!1);if(t)switch(t.kind){case 177:case 263:case 219:return t}}function im(e,t){for(;;){if(!(e=e.parent))return;switch(e.kind){case 168:e=e.parent;break;case 263:case 219:case 220:if(!t)continue;case 173:case 172:case 175:case 174:case 177:case 178:case 179:case 176:return e;case 171:170===e.parent.kind&&__(e.parent.parent)?e=e.parent.parent:__(e.parent)&&(e=e.parent)}}}function om(e){if(219===e.kind||220===e.kind){let t=e,n=e.parent;for(;218===n.kind;)t=n,n=n.parent;if(214===n.kind&&n.expression===t)return n}}function am(e){const t=e.kind;return(212===t||213===t)&&108===e.expression.kind}function sm(e){const t=e.kind;return(212===t||213===t)&&110===e.expression.kind}function cm(e){var t;return!!e&&lE(e)&&110===(null==(t=e.initializer)?void 0:t.kind)}function lm(e){return!!e&&(iP(e)||rP(e))&&NF(e.parent.parent)&&64===e.parent.parent.operatorToken.kind&&110===e.parent.parent.right.kind}function _m(e){switch(e.kind){case 184:return e.typeName;case 234:return ab(e.expression)?e.expression:void 0;case 80:case 167:return e}}function um(e){switch(e.kind){case 216:return e.tag;case 287:case 286:return e.tagName;case 227:return e.right;case 290:return e;default:return e.expression}}function dm(e,t,n,r){if(e&&Sc(t)&&sD(t.name))return!1;switch(t.kind){case 264:return!0;case 232:return!e;case 173:return void 0!==n&&(e?dE(n):u_(n)&&!Pv(t)&&!Av(t));case 178:case 179:case 175:return void 0!==t.body&&void 0!==n&&(e?dE(n):u_(n));case 170:return!!e&&void 0!==n&&void 0!==n.body&&(177===n.kind||175===n.kind||179===n.kind)&&sv(n)!==t&&void 0!==r&&264===r.kind}return!1}function pm(e,t,n,r){return Lv(t)&&dm(e,t,n,r)}function fm(e,t,n,r){return pm(e,t,n,r)||mm(e,t,n)}function mm(e,t,n){switch(t.kind){case 264:return $(t.members,r=>fm(e,r,t,n));case 232:return!e&&$(t.members,r=>fm(e,r,t,n));case 175:case 179:case 177:return $(t.parameters,r=>pm(e,r,t,n));default:return!1}}function gm(e,t){if(pm(e,t))return!0;const n=iv(t);return!!n&&mm(e,n,t)}function hm(e,t,n){let r;if(d_(t)){const{firstAccessor:e,secondAccessor:i,setAccessor:o}=pv(n.members,t),a=Lv(e)?e:i&&Lv(i)?i:void 0;if(!a||t!==a)return!1;r=null==o?void 0:o.parameters}else FD(t)&&(r=t.parameters);if(pm(e,t,n))return!0;if(r)for(const i of r)if(!cv(i)&&pm(e,i,t,n))return!0;return!1}function ym(e){if(e.textSourceNode){switch(e.textSourceNode.kind){case 11:return ym(e.textSourceNode);case 15:return""===e.text}return!1}return""===e.text}function vm(e){const{parent:t}=e;return(287===t.kind||286===t.kind||288===t.kind)&&t.tagName===e}function bm(e){switch(e.kind){case 108:case 106:case 112:case 97:case 14:case 210:case 211:case 212:case 213:case 214:case 215:case 216:case 235:case 217:case 239:case 236:case 218:case 219:case 232:case 220:case 223:case 221:case 222:case 225:case 226:case 227:case 228:case 231:case 229:case 233:case 285:case 286:case 289:case 230:case 224:return!0;case 237:return!_f(e.parent)||e.parent.expression!==e;case 234:return!tP(e.parent)&&!wP(e.parent);case 167:for(;167===e.parent.kind;)e=e.parent;return 187===e.parent.kind||Mu(e.parent)||_P(e.parent)||uP(e.parent)||vm(e);case 312:for(;uP(e.parent);)e=e.parent;return 187===e.parent.kind||Mu(e.parent)||_P(e.parent)||uP(e.parent)||vm(e);case 81:return NF(e.parent)&&e.parent.left===e&&103===e.parent.operatorToken.kind;case 80:if(187===e.parent.kind||Mu(e.parent)||_P(e.parent)||uP(e.parent)||vm(e))return!0;case 9:case 10:case 11:case 15:case 110:return xm(e);default:return!1}}function xm(e){const{parent:t}=e;switch(t.kind){case 261:case 170:case 173:case 172:case 307:case 304:case 209:return t.initializer===e;case 245:case 246:case 247:case 248:case 254:case 255:case 256:case 297:case 258:return t.expression===e;case 249:const n=t;return n.initializer===e&&262!==n.initializer.kind||n.condition===e||n.incrementor===e;case 250:case 251:const r=t;return r.initializer===e&&262!==r.initializer.kind||r.expression===e;case 217:case 235:case 240:case 168:case 239:return e===t.expression;case 171:case 295:case 294:case 306:return!0;case 234:return t.expression===e&&!wf(t);case 305:return t.objectAssignmentInitializer===e;default:return bm(t)}}function km(e){for(;167===e.kind||80===e.kind;)e=e.parent;return 187===e.kind}function Sm(e){return FE(e)&&!!e.parent.moduleSpecifier}function Tm(e){return 272===e.kind&&284===e.moduleReference.kind}function Cm(e){return un.assert(Tm(e)),e.moduleReference.expression}function wm(e){return Mm(e)&&wx(e.initializer).arguments[0]}function Nm(e){return 272===e.kind&&284!==e.moduleReference.kind}function Dm(e){return 308===(null==e?void 0:e.kind)}function Fm(e){return Em(e)}function Em(e){return!!e&&!!(524288&e.flags)}function Pm(e){return!!e&&!!(134217728&e.flags)}function Am(e){return!ef(e)}function Im(e){return!!e&&!!(16777216&e.flags)}function Om(e){return RD(e)&&aD(e.typeName)&&"Object"===e.typeName.escapedText&&e.typeArguments&&2===e.typeArguments.length&&(154===e.typeArguments[0].kind||150===e.typeArguments[0].kind)}function Lm(e,t){if(214!==e.kind)return!1;const{expression:n,arguments:r}=e;if(80!==n.kind||"require"!==n.escapedText)return!1;if(1!==r.length)return!1;const i=r[0];return!t||ju(i)}function jm(e){return Bm(e,!1)}function Mm(e){return Bm(e,!0)}function Rm(e){return lF(e)&&Mm(e.parent.parent)}function Bm(e,t){return lE(e)&&!!e.initializer&&Lm(t?wx(e.initializer):e.initializer,!0)}function Jm(e){return WF(e)&&e.declarationList.declarations.length>0&&v(e.declarationList.declarations,e=>jm(e))}function zm(e){return 39===e||34===e}function qm(e,t){return 34===Vd(t,e).charCodeAt(0)}function Um(e){return NF(e)||Sx(e)||aD(e)||fF(e)}function Vm(e){return Em(e)&&e.initializer&&NF(e.initializer)&&(57===e.initializer.operatorToken.kind||61===e.initializer.operatorToken.kind)&&e.name&&ab(e.name)&&Xm(e.name,e.initializer.left)?e.initializer.right:e.initializer}function Wm(e){const t=Vm(e);return t&&Hm(t,ub(e.name))}function $m(e){if(e&&e.parent&&NF(e.parent)&&64===e.parent.operatorToken.kind){const t=ub(e.parent.left);return Hm(e.parent.right,t)||function(e,t,n){const r=NF(t)&&(57===t.operatorToken.kind||61===t.operatorToken.kind)&&Hm(t.right,n);if(r&&Xm(e,t.left))return r}(e.parent.left,e.parent.right,t)}if(e&&fF(e)&&ng(e)){const t=function(e,t){return d(e.properties,e=>rP(e)&&aD(e.name)&&"value"===e.name.escapedText&&e.initializer&&Hm(e.initializer,t))}(e.arguments[2],"prototype"===e.arguments[1].text);if(t)return t}}function Hm(e,t){if(fF(e)){const t=ah(e.expression);return 219===t.kind||220===t.kind?e:void 0}return 219===e.kind||232===e.kind||220===e.kind||uF(e)&&(0===e.properties.length||t)?e:void 0}function Km(e){const t=lE(e.parent)?e.parent.name:NF(e.parent)&&64===e.parent.operatorToken.kind?e.parent.left:void 0;return t&&Hm(e.right,ub(t))&&ab(t)&&Xm(t,e.left)}function Gm(e){if(NF(e.parent)){const t=57!==e.parent.operatorToken.kind&&61!==e.parent.operatorToken.kind||!NF(e.parent.parent)?e.parent:e.parent.parent;if(64===t.operatorToken.kind&&aD(t.left))return t.left}else if(lE(e.parent))return e.parent.name}function Xm(e,t){return zh(e)&&zh(t)?qh(e)===qh(t):dl(e)&&rg(t)&&(110===t.expression.kind||aD(t.expression)&&("window"===t.expression.escapedText||"self"===t.expression.escapedText||"global"===t.expression.escapedText))?Xm(e,cg(t)):!(!rg(e)||!rg(t))&&_g(e)===_g(t)&&Xm(e.expression,t.expression)}function Qm(e){for(;rb(e,!0);)e=e.right;return e}function Ym(e){return aD(e)&&"exports"===e.escapedText}function Zm(e){return aD(e)&&"module"===e.escapedText}function eg(e){return(dF(e)||ig(e))&&Zm(e.expression)&&"exports"===_g(e)}function tg(e){const t=function(e){if(fF(e)){if(!ng(e))return 0;const t=e.arguments[0];return Ym(t)||eg(t)?8:og(t)&&"prototype"===_g(t)?9:7}return 64!==e.operatorToken.kind||!Sx(e.left)||SF(t=Qm(e))&&zN(t.expression)&&"0"===t.expression.text?0:sg(e.left.expression,!0)&&"prototype"===_g(e.left)&&uF(dg(e))?6:ug(e.left);var t}(e);return 5===t||Em(e)?t:0}function ng(e){return 3===u(e.arguments)&&dF(e.expression)&&aD(e.expression.expression)&&"Object"===gc(e.expression.expression)&&"defineProperty"===gc(e.expression.name)&&jh(e.arguments[1])&&sg(e.arguments[0],!0)}function rg(e){return dF(e)||ig(e)}function ig(e){return pF(e)&&jh(e.argumentExpression)}function og(e,t){return dF(e)&&(!t&&110===e.expression.kind||aD(e.name)&&sg(e.expression,!0))||ag(e,t)}function ag(e,t){return ig(e)&&(!t&&110===e.expression.kind||ab(e.expression)||og(e.expression,!0))}function sg(e,t){return ab(e)||og(e,t)}function cg(e){return dF(e)?e.name:e.argumentExpression}function lg(e){if(dF(e))return e.name;const t=ah(e.argumentExpression);return zN(t)||ju(t)?t:e}function _g(e){const t=lg(e);if(t){if(aD(t))return t.escapedText;if(ju(t)||zN(t))return fc(t.text)}}function ug(e){if(110===e.expression.kind)return 4;if(eg(e))return 2;if(sg(e.expression,!0)){if(ub(e.expression))return 3;let t=e;for(;!aD(t.expression);)t=t.expression;const n=t.expression;if(("exports"===n.escapedText||"module"===n.escapedText&&"exports"===_g(t))&&og(e))return 1;if(sg(e,!0)||pF(e)&&Bh(e))return 5}return 0}function dg(e){for(;NF(e.right);)e=e.right;return e.right}function pg(e){return NF(e)&&3===tg(e)}function fg(e){return Em(e)&&e.parent&&245===e.parent.kind&&(!pF(e)||ig(e))&&!!tl(e.parent)}function mg(e,t){const{valueDeclaration:n}=e;(!n||(!(33554432&t.flags)||Em(t)||33554432&n.flags)&&Um(n)&&!Um(t)||n.kind!==t.kind&&function(e){return gE(e)||aD(e)}(n))&&(e.valueDeclaration=t)}function gg(e){if(!e||!e.valueDeclaration)return!1;const t=e.valueDeclaration;return 263===t.kind||lE(t)&&t.initializer&&r_(t.initializer)}function hg(e){switch(null==e?void 0:e.kind){case 261:case 209:case 273:case 279:case 272:case 274:case 281:case 275:case 282:case 277:case 206:return!0}return!1}function yg(e){var t,n;switch(e.kind){case 261:case 209:return null==(t=uc(e.initializer,e=>Lm(e,!0)))?void 0:t.arguments[0];case 273:case 279:case 352:return tt(e.moduleSpecifier,ju);case 272:return tt(null==(n=tt(e.moduleReference,JE))?void 0:n.expression,ju);case 274:case 281:return tt(e.parent.moduleSpecifier,ju);case 275:case 282:return tt(e.parent.parent.moduleSpecifier,ju);case 277:return tt(e.parent.parent.parent.moduleSpecifier,ju);case 206:return df(e)?e.argument.literal:void 0;default:un.assertNever(e)}}function vg(e){return bg(e)||un.failBadSyntaxKind(e.parent)}function bg(e){switch(e.parent.kind){case 273:case 279:case 352:return e.parent;case 284:return e.parent.parent;case 214:return _f(e.parent)||Lm(e.parent,!1)?e.parent:void 0;case 202:if(!UN(e))break;return tt(e.parent.parent,iF);default:return}}function xg(e,t){return!!t.rewriteRelativeImportExtensions&&vo(e)&&!uO(e)&&LS(e)}function kg(e){switch(e.kind){case 273:case 279:case 352:return e.moduleSpecifier;case 272:return 284===e.moduleReference.kind?e.moduleReference.expression:void 0;case 206:return df(e)?e.argument.literal:void 0;case 214:return e.arguments[0];case 268:return 11===e.name.kind?e.name:void 0;default:return un.assertNever(e)}}function Sg(e){switch(e.kind){case 273:return e.importClause&&tt(e.importClause.namedBindings,DE);case 272:return e;case 279:return e.exportClause&&tt(e.exportClause,FE);default:return un.assertNever(e)}}function Tg(e){return!(273!==e.kind&&352!==e.kind||!e.importClause||!e.importClause.name)}function Cg(e,t){if(e.name){const n=t(e);if(n)return n}if(e.namedBindings){const n=DE(e.namedBindings)?t(e.namedBindings):d(e.namedBindings.elements,t);if(n)return n}}function wg(e){switch(e.kind){case 170:case 175:case 174:case 305:case 304:case 173:case 172:return void 0!==e.questionToken}return!1}function Ng(e){const t=bP(e)?fe(e.parameters):void 0,n=tt(t&&t.name,aD);return!!n&&"new"===n.escapedText}function Dg(e){return 347===e.kind||339===e.kind||341===e.kind}function Fg(e){return Dg(e)||fE(e)}function Eg(e){return HF(e)&&NF(e.expression)&&0!==tg(e.expression)&&NF(e.expression.right)&&(57===e.expression.right.operatorToken.kind||61===e.expression.right.operatorToken.kind)?e.expression.right.right:void 0}function Pg(e){switch(e.kind){case 244:const t=Ag(e);return t&&t.initializer;case 173:case 304:return e.initializer}}function Ag(e){return WF(e)?fe(e.declarationList.declarations):void 0}function Ig(e){return gE(e)&&e.body&&268===e.body.kind?e.body:void 0}function Og(e){if(e.kind>=244&&e.kind<=260)return!0;switch(e.kind){case 80:case 110:case 108:case 167:case 237:case 213:case 212:case 209:case 219:case 220:case 175:case 178:case 179:return!0;default:return!1}}function Lg(e){switch(e.kind){case 220:case 227:case 242:case 253:case 180:case 297:case 264:case 232:case 176:case 177:case 186:case 181:case 252:case 260:case 247:case 213:case 243:case 1:case 267:case 307:case 278:case 279:case 282:case 245:case 250:case 251:case 249:case 263:case 219:case 185:case 178:case 80:case 246:case 273:case 272:case 182:case 265:case 318:case 324:case 257:case 175:case 174:case 268:case 203:case 271:case 211:case 170:case 218:case 212:case 304:case 173:case 172:case 254:case 241:case 179:case 305:case 306:case 256:case 258:case 259:case 266:case 169:case 261:case 244:case 248:case 255:return!0;default:return!1}}function jg(e,t){let n;Af(e)&&Eu(e)&&Du(e.initializer)&&(n=se(n,Mg(e,e.initializer.jsDoc)));let r=e;for(;r&&r.parent;){if(Du(r)&&(n=se(n,Mg(e,r.jsDoc))),170===r.kind){n=se(n,(t?Pc:Ec)(r));break}if(169===r.kind){n=se(n,(t?Oc:Ic)(r));break}r=Rg(r)}return n||l}function Mg(e,t){const n=ve(t);return O(t,t=>{if(t===n){const n=N(t.tags,t=>function(e,t){return!((qP(t)||KP(t))&&t.parent&&SP(t.parent)&&yF(t.parent.parent)&&t.parent.parent!==e)}(e,t));return t.tags===n?[t]:n}return N(t.tags,LP)})}function Rg(e){const t=e.parent;return 304===t.kind||278===t.kind||173===t.kind||245===t.kind&&212===e.kind||254===t.kind||Ig(t)||rb(e)?t:t.parent&&(Ag(t.parent)===e||rb(t))?t.parent:t.parent&&t.parent.parent&&(Ag(t.parent.parent)||Pg(t.parent.parent)===e||Eg(t.parent.parent))?t.parent.parent:void 0}function Bg(e){if(e.symbol)return e.symbol;if(!aD(e.name))return;const t=e.name.escapedText,n=qg(e);if(!n)return;const r=b(n.parameters,e=>80===e.name.kind&&e.name.escapedText===t);return r&&r.symbol}function Jg(e){if(SP(e.parent)&&e.parent.tags){const t=b(e.parent.tags,Dg);if(t)return t}return qg(e)}function zg(e){return sl(e,LP)}function qg(e){const t=Ug(e);if(t)return wD(t)&&t.type&&r_(t.type)?t.type:r_(t)?t:void 0}function Ug(e){const t=Vg(e);if(t)return Eg(t)||function(e){return HF(e)&&NF(e.expression)&&64===e.expression.operatorToken.kind?Qm(e.expression):void 0}(t)||Pg(t)||Ag(t)||Ig(t)||t}function Vg(e){const t=Wg(e);if(!t)return;const n=t.parent;return n&&n.jsDoc&&t===ye(n.jsDoc)?n:void 0}function Wg(e){return uc(e.parent,SP)}function $g(e){const t=e.name.escapedText,{typeParameters:n}=e.parent.parent.parent;return n&&b(n,e=>e.name.escapedText===t)}function Hg(e){return!!e.typeArguments}var Kg=(e=>(e[e.None=0]="None",e[e.Definite=1]="Definite",e[e.Compound=2]="Compound",e))(Kg||{});function Gg(e){let t=e.parent;for(;;){switch(t.kind){case 227:const n=t;return eb(n.operatorToken.kind)&&n.left===e?n:void 0;case 225:case 226:const r=t,i=r.operator;return 46===i||47===i?r:void 0;case 250:case 251:const o=t;return o.initializer===e?o:void 0;case 218:case 210:case 231:case 236:e=t;break;case 306:e=t.parent;break;case 305:if(t.name!==e)return;e=t.parent;break;case 304:if(t.name===e)return;e=t.parent;break;default:return}t=e.parent}}function Xg(e){const t=Gg(e);if(!t)return 0;switch(t.kind){case 227:const e=t.operatorToken.kind;return 64===e||Xv(e)?1:2;case 225:case 226:return 2;case 250:case 251:return 1}}function Qg(e){return!!Gg(e)}function Yg(e){const t=Gg(e);return!!t&&rb(t,!0)&&function(e){const t=ah(e.right);return 227===t.kind&&ZA(t.operatorToken.kind)}(t)}function Zg(e){switch(e.kind){case 242:case 244:case 255:case 246:case 256:case 270:case 297:case 298:case 257:case 249:case 250:case 251:case 247:case 248:case 259:case 300:return!0}return!1}function eh(e){return vF(e)||bF(e)||m_(e)||uE(e)||PD(e)}function th(e,t){for(;e&&e.kind===t;)e=e.parent;return e}function nh(e){return th(e,197)}function rh(e){return th(e,218)}function ih(e){let t;for(;e&&197===e.kind;)t=e,e=e.parent;return[t,e]}function oh(e){for(;YD(e);)e=e.type;return e}function ah(e,t){return NA(e,t?-2147483647:1)}function sh(e){return(212===e.kind||213===e.kind)&&(e=rh(e.parent))&&221===e.kind}function ch(e,t){for(;e;){if(e===t)return!0;e=e.parent}return!1}function lh(e){return!sP(e)&&!k_(e)&&_u(e.parent)&&e.parent.name===e}function _h(e){const t=e.parent;switch(e.kind){case 11:case 15:case 9:if(kD(t))return t.parent;case 80:if(_u(t))return t.name===e?t:void 0;if(xD(t)){const e=t.parent;return BP(e)&&e.name===t?e:void 0}{const n=t.parent;return NF(n)&&0!==tg(n)&&(n.left.symbol||n.symbol)&&Cc(n)===e?n:void 0}case 81:return _u(t)&&t.name===e?t:void 0;default:return}}function uh(e){return jh(e)&&168===e.parent.kind&&_u(e.parent.parent)}function dh(e){const t=e.parent;switch(t.kind){case 173:case 172:case 175:case 174:case 178:case 179:case 307:case 304:case 212:return t.name===e;case 167:return t.right===e;case 209:case 277:return t.propertyName===e;case 282:case 292:case 286:case 287:case 288:return!0}return!1}function ph(e){switch(e.parent.kind){case 274:case 277:case 275:case 282:case 278:case 272:case 281:return e.parent;case 167:do{e=e.parent}while(167===e.parent.kind);return ph(e)}}function fh(e){return ab(e)||AF(e)}function mh(e){return fh(gh(e))}function gh(e){return AE(e)?e.expression:e.right}function hh(e){return 305===e.kind?e.name:304===e.kind?e.initializer:e.parent.right}function yh(e){const t=vh(e);if(t&&Em(e)){const t=jc(e);if(t)return t.class}return t}function vh(e){const t=Sh(e.heritageClauses,96);return t&&t.types.length>0?t.types[0]:void 0}function bh(e){if(Em(e))return Mc(e).map(e=>e.class);{const t=Sh(e.heritageClauses,119);return null==t?void 0:t.types}}function xh(e){return pE(e)?kh(e)||l:u_(e)&&K(rn(yh(e)),bh(e))||l}function kh(e){const t=Sh(e.heritageClauses,96);return t?t.types:void 0}function Sh(e,t){if(e)for(const n of e)if(n.token===t)return n}function Th(e,t){for(;e;){if(e.kind===t)return e;e=e.parent}}function Ch(e){return 83<=e&&e<=166}function wh(e){return 19<=e&&e<=79}function Nh(e){return Ch(e)||wh(e)}function Dh(e){return 128<=e&&e<=166}function Fh(e){return Ch(e)&&!Dh(e)}function Eh(e){const t=Ea(e);return void 0!==t&&Fh(t)}function Ph(e){const t=hc(e);return!!t&&!Dh(t)}function Ah(e){return 2<=e&&e<=7}var Ih=(e=>(e[e.Normal=0]="Normal",e[e.Generator=1]="Generator",e[e.Async=2]="Async",e[e.Invalid=4]="Invalid",e[e.AsyncGenerator=3]="AsyncGenerator",e))(Ih||{});function Oh(e){if(!e)return 4;let t=0;switch(e.kind){case 263:case 219:case 175:e.asteriskToken&&(t|=1);case 220:Nv(e,1024)&&(t|=2)}return e.body||(t|=4),t}function Lh(e){switch(e.kind){case 263:case 219:case 220:case 175:return void 0!==e.body&&void 0===e.asteriskToken&&Nv(e,1024)}return!1}function jh(e){return ju(e)||zN(e)}function Mh(e){return CF(e)&&(40===e.operator||41===e.operator)&&zN(e.operand)}function Rh(e){const t=Cc(e);return!!t&&Bh(t)}function Bh(e){if(168!==e.kind&&213!==e.kind)return!1;const t=pF(e)?ah(e.argumentExpression):e.expression;return!jh(t)&&!Mh(t)}function Jh(e){switch(e.kind){case 80:case 81:return e.escapedText;case 11:case 15:case 9:case 10:return fc(e.text);case 168:const t=e.expression;return jh(t)?fc(t.text):Mh(t)?41===t.operator?Fa(t.operator)+t.operand.text:t.operand.text:void 0;case 296:return iC(e);default:return un.assertNever(e)}}function zh(e){switch(e.kind){case 80:case 11:case 15:case 9:return!0;default:return!1}}function qh(e){return dl(e)?gc(e):YE(e)?oC(e):e.text}function Uh(e){return dl(e)?e.escapedText:YE(e)?iC(e):fc(e.text)}function Vh(e,t){return`__#${eJ(e)}@${t}`}function Wh(e){return Gt(e.escapedName,"__@")}function $h(e){return Gt(e.escapedName,"__#")}function Hh(e,t){switch((e=NA(e)).kind){case 232:if(zz(e))return!1;break;case 219:if(e.name)return!1;break;case 220:break;default:return!1}return"function"!=typeof t||t(e)}function Kh(e){switch(e.kind){case 304:return!function(e){return aD(e)?"__proto__"===gc(e):UN(e)&&"__proto__"===e.text}(e.name);case 305:return!!e.objectAssignmentInitializer;case 261:return aD(e.name)&&!!e.initializer;case 170:case 209:return aD(e.name)&&!!e.initializer&&!e.dotDotDotToken;case 173:return!!e.initializer;case 227:switch(e.operatorToken.kind){case 64:case 77:case 76:case 78:return aD(e.left)}break;case 278:return!0}return!1}function Gh(e,t){if(!Kh(e))return!1;switch(e.kind){case 304:case 261:case 170:case 209:case 173:return Hh(e.initializer,t);case 305:return Hh(e.objectAssignmentInitializer,t);case 227:return Hh(e.right,t);case 278:return Hh(e.expression,t)}}function Xh(e){return"push"===e.escapedText||"unshift"===e.escapedText}function Qh(e){return 170===Yh(e).kind}function Yh(e){for(;209===e.kind;)e=e.parent.parent;return e}function Zh(e){const t=e.kind;return 177===t||219===t||263===t||220===t||175===t||178===t||179===t||268===t||308===t}function ey(e){return XS(e.pos)||XS(e.end)}var ty=(e=>(e[e.Left=0]="Left",e[e.Right=1]="Right",e))(ty||{});function ny(e){const t=oy(e),n=215===e.kind&&void 0!==e.arguments;return ry(e.kind,t,n)}function ry(e,t,n){switch(e){case 215:return n?0:1;case 225:case 222:case 223:case 221:case 224:case 228:case 230:return 1;case 227:switch(t){case 43:case 64:case 65:case 66:case 68:case 67:case 69:case 70:case 71:case 72:case 73:case 74:case 79:case 75:case 76:case 77:case 78:return 1}}return 0}function iy(e){const t=oy(e),n=215===e.kind&&void 0!==e.arguments;return sy(e.kind,t,n)}function oy(e){return 227===e.kind?e.operatorToken.kind:225===e.kind||226===e.kind?e.operator:e.kind}var ay=(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.LogicalOR=5]="LogicalOR",e[e.Coalesce=5]="Coalesce",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",e))(ay||{});function sy(e,t,n){switch(e){case 357:return 0;case 231:return 1;case 230:return 2;case 228:return 4;case 227:switch(t){case 28:return 0;case 64:case 65:case 66:case 68:case 67:case 69:case 70:case 71:case 72:case 73:case 74:case 79:case 75:case 76:case 77:case 78:return 3;default:return cy(t)}case 217:case 236:case 225:case 222:case 223:case 221:case 224:return 16;case 226:return 17;case 214:return 18;case 215:return n?19:18;case 216:case 212:case 213:case 237:return 19;case 235:case 239:return 11;case 110:case 108:case 80:case 81:case 106:case 112:case 97:case 9:case 10:case 11:case 210:case 211:case 219:case 220:case 232:case 14:case 15:case 229:case 218:case 233:case 285:case 286:case 289:return 20;default:return-1}}function cy(e){switch(e){case 61:case 57:return 5;case 56:return 6;case 52:return 7;case 53:return 8;case 51:return 9;case 35:case 36:case 37:case 38:return 10;case 30:case 32:case 33:case 34:case 104:case 103:case 130:case 152:return 11;case 48:case 49:case 50:return 12;case 40:case 41:return 13;case 42:case 44:case 45:return 14;case 43:return 15}return-1}function ly(e){return N(e,e=>{switch(e.kind){case 295:return!!e.expression;case 12:return!e.containsOnlyTriviaWhiteSpaces;default:return!0}})}function _y(){let e=[];const t=[],n=new Map;let r=!1;return{add:function(i){let o;i.file?(o=n.get(i.file.fileName),o||(o=[],n.set(i.file.fileName,o),Z(t,i.file.fileName,Ct))):(r&&(r=!1,e=e.slice()),o=e),Z(o,i,rk,ak)},lookup:function(t){let r;if(r=t.file?n.get(t.file.fileName):e,!r)return;const i=Te(r,t,st,rk);return i>=0?r[i]:~i>0&&ak(t,r[~i-1])?r[~i-1]:void 0},getGlobalDiagnostics:function(){return r=!0,e},getDiagnostics:function(r){if(r)return n.get(r)||[];const i=L(t,e=>n.get(e));return e.length?(i.unshift(...e),i):i}}}var uy=/\$\{/g;function dy(e){return e.replace(uy,"\\${")}function py(e){return!!(2048&(e.templateFlags||0))}function fy(e){return e&&!!($N(e)?py(e):py(e.head)||$(e.templateSpans,e=>py(e.literal)))}var my=/[\\"\u0000-\u001f\u2028\u2029\u0085]/g,gy=/[\\'\u0000-\u001f\u2028\u2029\u0085]/g,hy=/\r\n|[\\`\u0000-\u0009\u000b-\u001f\u2028\u2029\u0085]/g,yy=new Map(Object.entries({"\t":"\\t","\v":"\\v","\f":"\\f","\b":"\\b","\r":"\\r","\n":"\\n","\\":"\\\\",'"':'\\"',"'":"\\'","`":"\\`","\u2028":"\\u2028","\u2029":"\\u2029","Â…":"\\u0085","\r\n":"\\r\\n"}));function vy(e){return"\\u"+("0000"+e.toString(16).toUpperCase()).slice(-4)}function by(e,t,n){if(0===e.charCodeAt(0)){const r=n.charCodeAt(t+e.length);return r>=48&&r<=57?"\\x00":"\\0"}return yy.get(e)||vy(e.charCodeAt(0))}function xy(e,t){const n=96===t?hy:39===t?gy:my;return e.replace(n,by)}var ky=/[^\u0000-\u007F]/g;function Sy(e,t){return e=xy(e,t),ky.test(e)?e.replace(ky,e=>vy(e.charCodeAt(0))):e}var Ty=/["\u0000-\u001f\u2028\u2029\u0085]/g,Cy=/['\u0000-\u001f\u2028\u2029\u0085]/g,wy=new Map(Object.entries({'"':""","'":"'"}));function Ny(e){return 0===e.charCodeAt(0)?"�":wy.get(e)||"&#x"+e.charCodeAt(0).toString(16).toUpperCase()+";"}function Dy(e,t){const n=39===t?Cy:Ty;return e.replace(n,Ny)}function Fy(e){const t=e.length;return t>=2&&e.charCodeAt(0)===e.charCodeAt(t-1)&&(39===(n=e.charCodeAt(0))||34===n||96===n)?e.substring(1,t-1):e;var n}function Ey(e){const t=e.charCodeAt(0);return t>=97&&t<=122||e.includes("-")}var Py=[""," "];function Ay(e){const t=Py[1];for(let n=Py.length;n<=e;n++)Py.push(Py[n-1]+t);return Py[e]}function Iy(){return Py[1].length}function Oy(e){var t,n,r,i,o,a=!1;function s(e){const n=Oa(e);n.length>1?(i=i+n.length-1,o=t.length-e.length+ve(n),r=o-t.length===0):r=!1}function c(e){e&&e.length&&(r&&(e=Ay(n)+e,r=!1),t+=e,s(e))}function l(e){e&&(a=!1),c(e)}function _(){t="",n=0,r=!0,i=0,o=0,a=!1}return _(),{write:l,rawWrite:function(e){void 0!==e&&(t+=e,s(e),a=!1)},writeLiteral:function(e){e&&e.length&&l(e)},writeLine:function(n){r&&!n||(i++,o=(t+=e).length,r=!0,a=!1)},increaseIndent:()=>{n++},decreaseIndent:()=>{n--},getIndent:()=>n,getTextPos:()=>t.length,getLine:()=>i,getColumn:()=>r?n*Iy():t.length-o,getText:()=>t,isAtStartOfLine:()=>r,hasTrailingComment:()=>a,hasTrailingWhitespace:()=>!!t.length&&qa(t.charCodeAt(t.length-1)),clear:_,writeKeyword:l,writeOperator:l,writeParameter:l,writeProperty:l,writePunctuation:l,writeSpace:l,writeStringLiteral:l,writeSymbol:(e,t)=>l(e),writeTrailingSemicolon:l,writeComment:function(e){e&&(a=!0),c(e)}}}function Ly(e){let t=!1;function n(){t&&(e.writeTrailingSemicolon(";"),t=!1)}return{...e,writeTrailingSemicolon(){t=!0},writeLiteral(t){n(),e.writeLiteral(t)},writeStringLiteral(t){n(),e.writeStringLiteral(t)},writeSymbol(t,r){n(),e.writeSymbol(t,r)},writePunctuation(t){n(),e.writePunctuation(t)},writeKeyword(t){n(),e.writeKeyword(t)},writeOperator(t){n(),e.writeOperator(t)},writeParameter(t){n(),e.writeParameter(t)},writeSpace(t){n(),e.writeSpace(t)},writeProperty(t){n(),e.writeProperty(t)},writeComment(t){n(),e.writeComment(t)},writeLine(){n(),e.writeLine()},increaseIndent(){n(),e.increaseIndent()},decreaseIndent(){n(),e.decreaseIndent()}}}function jy(e){return!!e.useCaseSensitiveFileNames&&e.useCaseSensitiveFileNames()}function My(e){return Wt(jy(e))}function Ry(e,t,n){return t.moduleName||zy(e,t.fileName,n&&n.fileName)}function By(e,t){return e.getCanonicalFileName(Bo(t,e.getCurrentDirectory()))}function Jy(e,t,n){const r=t.getExternalModuleFileFromDeclaration(n);if(!r||r.isDeclarationFile)return;const i=kg(n);return!i||!ju(i)||vo(i.text)||By(e,r.path).includes(By(e,Wo(e.getCommonSourceDirectory())))?Ry(e,r):void 0}function zy(e,t,n){const r=t=>e.getCanonicalFileName(t),i=Uo(n?Do(n):e.getCommonSourceDirectory(),e.getCurrentDirectory(),r),o=US(aa(i,Bo(t,e.getCurrentDirectory()),i,r,!1));return n?$o(o):o}function qy(e,t,n){const r=t.getCompilerOptions();let i;return i=r.outDir?US(Qy(e,t,r.outDir)):US(e),i+n}function Uy(e,t){return Vy(e,t.getCompilerOptions(),t)}function Vy(e,t,n){const r=t.declarationDir||t.outDir,i=r?Yy(e,r,n.getCurrentDirectory(),n.getCommonSourceDirectory(),e=>n.getCanonicalFileName(e)):e,o=Wy(i);return US(i)+o}function Wy(e){return So(e,[".mjs",".mts"])?".d.mts":So(e,[".cjs",".cts"])?".d.cts":So(e,[".json"])?".d.json.ts":".d.ts"}function $y(e){return So(e,[".d.mts",".mjs",".mts"])?[".mts",".mjs"]:So(e,[".d.cts",".cjs",".cts"])?[".cts",".cjs"]:So(e,[".d.json.ts"])?[".json"]:[".tsx",".ts",".jsx",".js"]}function Hy(e,t,n,r){return n?Mo(r(),ra(n,e,t)):e}function Ky(e,t){var n;if(e.paths)return e.baseUrl??un.checkDefined(e.pathsBasePath||(null==(n=t.getCurrentDirectory)?void 0:n.call(t)),"Encountered 'paths' without a 'baseUrl', config file, or host 'getCurrentDirectory'.")}function Gy(e,t,n){const r=e.getCompilerOptions();if(r.outFile){const t=vk(r),i=r.emitDeclarationOnly||2===t||4===t;return N(e.getSourceFiles(),t=>(i||!rO(t))&&Xy(t,e,n))}return N(void 0===t?e.getSourceFiles():[t],t=>Xy(t,e,n))}function Xy(e,t,n){const r=t.getCompilerOptions();if(r.noEmitForJsFiles&&Fm(e))return!1;if(e.isDeclarationFile)return!1;if(t.isSourceFileFromExternalLibrary(e))return!1;if(n)return!0;if(t.isSourceOfProjectReferenceRedirect(e.fileName))return!1;if(!ef(e))return!0;if(t.getRedirectFromSourceFile(e.fileName))return!1;if(r.outFile)return!0;if(!r.outDir)return!1;if(r.rootDir||r.composite&&r.configFilePath){const n=Bo(cU(r,()=>[],t.getCurrentDirectory(),t.getCanonicalFileName),t.getCurrentDirectory()),i=Yy(e.fileName,r.outDir,t.getCurrentDirectory(),n,t.getCanonicalFileName);if(0===Zo(e.fileName,i,t.getCurrentDirectory(),!t.useCaseSensitiveFileNames()))return!1}return!0}function Qy(e,t,n){return Yy(e,n,t.getCurrentDirectory(),t.getCommonSourceDirectory(),e=>t.getCanonicalFileName(e))}function Yy(e,t,n,r,i){let o=Bo(e,n);return o=0===i(o).indexOf(i(r))?o.substring(r.length):o,jo(t,o)}function Zy(e,t,n,r,i,o,a){e.writeFile(n,r,i,e=>{t.add(Qx(_a.Could_not_write_file_0_Colon_1,n,e))},o,a)}function ev(e,t,n){e.length>No(e)&&!n(e)&&(ev(Do(e),t,n),t(e))}function tv(e,t,n,r,i,o){try{r(e,t,n)}catch{ev(Do(Jo(e)),i,o),r(e,t,n)}}function nv(e,t){return Ba(Ma(e),t)}function rv(e,t){return Ba(e,t)}function iv(e){return b(e.members,e=>PD(e)&&Dd(e.body))}function ov(e){if(e&&e.parameters.length>0){const t=2===e.parameters.length&&cv(e.parameters[0]);return e.parameters[t?1:0]}}function av(e){const t=ov(e);return t&&t.type}function sv(e){if(e.parameters.length&&!CP(e)){const t=e.parameters[0];if(cv(t))return t}}function cv(e){return lv(e.name)}function lv(e){return!!e&&80===e.kind&&dv(e)}function _v(e){return!!uc(e,e=>187===e.kind||80!==e.kind&&167!==e.kind&&"quit")}function uv(e){if(!lv(e))return!1;for(;xD(e.parent)&&e.parent.left===e;)e=e.parent;return 187===e.parent.kind}function dv(e){return"this"===e.escapedText}function pv(e,t){let n,r,i,o;return Rh(t)?(n=t,178===t.kind?i=t:179===t.kind?o=t:un.fail("Accessor has wrong kind")):d(e,e=>{d_(e)&&Dv(e)===Dv(t)&&Jh(e.name)===Jh(t.name)&&(n?r||(r=e):n=e,178!==e.kind||i||(i=e),179!==e.kind||o||(o=e))}),{firstAccessor:n,secondAccessor:r,getAccessor:i,setAccessor:o}}function fv(e){if(!Em(e)&&uE(e))return;if(fE(e))return;const t=e.type;return t||!Em(e)?t:Nl(e)?e.typeExpression&&e.typeExpression.type:nl(e)}function mv(e){return e.type}function gv(e){return CP(e)?e.type&&e.type.typeExpression&&e.type.typeExpression.type:e.type||(Em(e)?rl(e):void 0)}function hv(e){return O(ol(e),e=>function(e){return UP(e)&&!(321===e.parent.kind&&(e.parent.tags.some(Dg)||e.parent.tags.some(LP)))}(e)?e.typeParameters:void 0)}function yv(e){const t=ov(e);return t&&fv(t)}function vv(e,t,n,r){n!==r&&rv(e,n)!==rv(e,r)&&t.writeLine()}function bv(e,t,n,r,i,o,a){let s,c;if(a?0===i.pos&&(s=N(_s(e,i.pos),function(t){return Bd(e,t.pos)})):s=_s(e,i.pos),s){const a=[];let l;for(const e of s){if(l){const n=rv(t,l.end);if(rv(t,e.pos)>=n+2)break}a.push(e),l=e}if(a.length){const l=rv(t,ve(a).end);rv(t,Qa(e,i.pos))>=l+2&&(function(e,t,n,r){!function(e,t,n,r){r&&r.length&&n!==r[0].pos&&rv(e,n)!==rv(e,r[0].pos)&&t.writeLine()}(e,t,n.pos,r)}(t,n,i,s),function(e,t,n,r,i,o,a,s){if(r&&r.length>0){let i=!1;for(const o of r)i&&(n.writeSpace(" "),i=!1),s(e,t,n,o.pos,o.end,a),o.hasTrailingNewLine?n.writeLine():i=!0;i&&n.writeSpace(" ")}}(e,t,n,a,0,0,o,r),c={nodePos:i.pos,detachedCommentEndPos:ve(a).end})}}return c}function xv(e,t,n,r,i,o){if(42===e.charCodeAt(r+1)){const a=Ra(t,r),s=t.length;let c;for(let l=r,_=a.line;l0){let e=i%Iy();const t=Ay((i-e)/Iy());for(n.rawWrite(t);e;)n.rawWrite(" "),e--}else n.rawWrite("")}kv(e,i,n,o,l,u),l=u}}else n.writeComment(e.substring(r,i))}function kv(e,t,n,r,i,o){const a=Math.min(t,o-1),s=e.substring(i,a).trim();s?(n.writeComment(s),a!==t&&n.writeLine()):n.rawWrite(r)}function Sv(e,t,n){let r=0;for(;t=0&&e.kind<=166?0:(536870912&e.modifierFlagsCache||(e.modifierFlagsCache=536870912|Wv(e)),n||t&&Em(e)?(268435456&e.modifierFlagsCache||!e.parent||(e.modifierFlagsCache|=268435456|qv(e)),Uv(e.modifierFlagsCache)):65535&e.modifierFlagsCache)}function Bv(e){return Rv(e,!0)}function Jv(e){return Rv(e,!0,!0)}function zv(e){return Rv(e,!1)}function qv(e){let t=0;return e.parent&&!TD(e)&&(Em(e)&&(Jc(e)&&(t|=8388608),qc(e)&&(t|=16777216),Vc(e)&&(t|=33554432),$c(e)&&(t|=67108864),Hc(e)&&(t|=134217728)),Gc(e)&&(t|=65536)),t}function Uv(e){return 131071&e|(260046848&e)>>>23}function Vv(e){return Wv(e)|function(e){return Uv(qv(e))}(e)}function Wv(e){let t=kI(e)?$v(e.modifiers):0;return(8&e.flags||80===e.kind&&4096&e.flags)&&(t|=32),t}function $v(e){let t=0;if(e)for(const n of e)t|=Hv(n.kind);return t}function Hv(e){switch(e){case 126:return 256;case 125:return 1;case 124:return 4;case 123:return 2;case 128:return 64;case 129:return 512;case 95:return 32;case 138:return 128;case 87:return 4096;case 90:return 2048;case 134:return 1024;case 148:return 8;case 164:return 16;case 103:return 8192;case 147:return 16384;case 171:return 32768}return 0}function Kv(e){return 57===e||56===e}function Gv(e){return Kv(e)||54===e}function Xv(e){return 76===e||77===e||78===e}function Qv(e){return NF(e)&&Xv(e.operatorToken.kind)}function Yv(e){return Kv(e)||61===e}function Zv(e){return NF(e)&&Yv(e.operatorToken.kind)}function eb(e){return e>=64&&e<=79}function tb(e){const t=nb(e);return t&&!t.isImplements?t.class:void 0}function nb(e){if(OF(e)){if(tP(e.parent)&&u_(e.parent.parent))return{class:e.parent.parent,isImplements:119===e.parent.token};if(wP(e.parent)){const t=Ug(e.parent);if(t&&u_(t))return{class:t,isImplements:!1}}}}function rb(e,t){return NF(e)&&(t?64===e.operatorToken.kind:eb(e.operatorToken.kind))&&R_(e.left)}function ib(e){if(rb(e,!0)){const t=e.left.kind;return 211===t||210===t}return!1}function ob(e){return void 0!==tb(e)}function ab(e){return 80===e.kind||lb(e)}function sb(e){switch(e.kind){case 80:return e;case 167:do{e=e.left}while(80!==e.kind);return e;case 212:do{e=e.expression}while(80!==e.kind);return e}}function cb(e){return 80===e.kind||110===e.kind||108===e.kind||237===e.kind||212===e.kind&&cb(e.expression)||218===e.kind&&cb(e.expression)}function lb(e){return dF(e)&&aD(e.name)&&ab(e.expression)}function _b(e){if(dF(e)){const t=_b(e.expression);if(void 0!==t)return t+"."+Mp(e.name)}else if(pF(e)){const t=_b(e.expression);if(void 0!==t&&t_(e.argumentExpression))return t+"."+Jh(e.argumentExpression)}else{if(aD(e))return mc(e.escapedText);if(YE(e))return oC(e)}}function ub(e){return og(e)&&"prototype"===_g(e)}function db(e){return 167===e.parent.kind&&e.parent.right===e||212===e.parent.kind&&e.parent.name===e||237===e.parent.kind&&e.parent.name===e}function pb(e){return!!e.parent&&(dF(e.parent)&&e.parent.name===e||pF(e.parent)&&e.parent.argumentExpression===e)}function fb(e){return xD(e.parent)&&e.parent.right===e||dF(e.parent)&&e.parent.name===e||uP(e.parent)&&e.parent.right===e}function mb(e){return NF(e)&&104===e.operatorToken.kind}function gb(e){return mb(e.parent)&&e===e.parent.right}function hb(e){return 211===e.kind&&0===e.properties.length}function yb(e){return 210===e.kind&&0===e.elements.length}function vb(e){if(function(e){return e&&u(e.declarations)>0&&Nv(e.declarations[0],2048)}(e)&&e.declarations)for(const t of e.declarations)if(t.localSymbol)return t.localSymbol}function bb(e){return b(CS,t=>ko(e,t))}var xb="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";function kb(e){let t="";const n=function(e){const t=[],n=e.length;for(let r=0;r>6|192),t.push(63&n|128)):n<65536?(t.push(n>>12|224),t.push(n>>6&63|128),t.push(63&n|128)):n<131072?(t.push(n>>18|240),t.push(n>>12&63|128),t.push(n>>6&63|128),t.push(63&n|128)):un.assert(!1,"Unexpected code point")}return t}(e);let r=0;const i=n.length;let o,a,s,c;for(;r>2,a=(3&n[r])<<4|n[r+1]>>4,s=(15&n[r+1])<<2|n[r+2]>>6,c=63&n[r+2],r+1>=i?s=c=64:r+2>=i&&(c=64),t+=xb.charAt(o)+xb.charAt(a)+xb.charAt(s)+xb.charAt(c),r+=3;return t}function Sb(e,t){return e&&e.base64encode?e.base64encode(t):kb(t)}function Tb(e,t){if(e&&e.base64decode)return e.base64decode(t);const n=t.length,r=[];let i=0;for(;i>4&3,c=(15&n)<<4|o>>2&15,l=(3&o)<<6|63&a;0===c&&0!==o?r.push(s):0===l&&0!==a?r.push(s,c):r.push(s,c,l),i+=4}return function(e){let t="",n=0;const r=e.length;for(;n=e||-1===t),{pos:e,end:t}}function Ib(e,t){return Ab(e.pos,t)}function Ob(e,t){return Ab(t,e.end)}function Lb(e){const t=kI(e)?x(e.modifiers,CD):void 0;return t&&!XS(t.end)?Ob(e,t.end):e}function jb(e){if(ND(e)||FD(e))return Ob(e,e.name.pos);const t=kI(e)?ye(e.modifiers):void 0;return t&&!XS(t.end)?Ob(e,t.end):Lb(e)}function Mb(e,t){return Ab(e,e+Fa(t).length)}function Rb(e,t){return zb(e,e,t)}function Bb(e,t,n){return $b(Hb(e,n,!1),Hb(t,n,!1),n)}function Jb(e,t,n){return $b(e.end,t.end,n)}function zb(e,t,n){return $b(Hb(e,n,!1),t.end,n)}function qb(e,t,n){return $b(e.end,Hb(t,n,!1),n)}function Ub(e,t,n,r){const i=Hb(t,n,r);return Ja(n,e.end,i)}function Vb(e,t,n){return Ja(n,e.end,t.end)}function Wb(e,t){return!$b(e.pos,e.end,t)}function $b(e,t,n){return 0===Ja(n,e,t)}function Hb(e,t,n){return XS(e.pos)?-1:Qa(t.text,e.pos,!1,n)}function Kb(e,t,n,r){const i=Qa(n.text,e,!1,r),o=function(e,t=0,n){for(;e-- >t;)if(!qa(n.text.charCodeAt(e)))return e}(i,t,n);return Ja(n,o??t,i)}function Gb(e,t,n,r){const i=Qa(n.text,e,!1,r);return Ja(n,e,Math.min(t,i))}function Xb(e,t){return Qb(e.pos,e.end,t)}function Qb(e,t,n){return e<=n.pos&&t>=n.end}function Yb(e){const t=pc(e);if(t)switch(t.parent.kind){case 267:case 268:return t===t.parent.name}return!1}function Zb(e){return N(e.declarations,ex)}function ex(e){return lE(e)&&void 0!==e.initializer}function tx(e){return e.watch&&De(e,"watch")}function nx(e){e.close()}function rx(e){return 33554432&e.flags?e.links.checkFlags:0}function ix(e,t=!1){if(e.valueDeclaration){const n=ic(t&&e.declarations&&b(e.declarations,ID)||32768&e.flags&&b(e.declarations,AD)||e.valueDeclaration);return e.parent&&32&e.parent.flags?n:-8&n}if(6&rx(e)){const t=e.links.checkFlags;return(1024&t?2:256&t?1:4)|(2048&t?256:0)}return 4194304&e.flags?257:0}function ox(e,t){return 2097152&e.flags?t.getAliasedSymbol(e):e}function ax(e){return e.exportSymbol?e.exportSymbol.flags|e.flags:e.flags}function sx(e){return 1===lx(e)}function cx(e){return 0!==lx(e)}function lx(e){const{parent:t}=e;switch(null==t?void 0:t.kind){case 218:case 210:return lx(t);case 226:case 225:const{operator:n}=t;return 46===n||47===n?2:0;case 227:const{left:r,operatorToken:i}=t;return r===e&&eb(i.kind)?64===i.kind?1:2:0;case 212:return t.name!==e?0:lx(t);case 304:{const n=lx(t.parent);return e===t.name?function(e){switch(e){case 0:return 1;case 1:return 0;case 2:return 2;default:return un.assertNever(e)}}(n):n}case 305:return e===t.objectAssignmentInitializer?0:lx(t.parent);case 250:case 251:return e===t.initializer?1:0;default:return 0}}function _x(e,t){if(!e||!t||Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if("object"==typeof e[n]){if(!_x(e[n],t[n]))return!1}else if("function"!=typeof e[n]&&e[n]!==t[n])return!1;return!0}function ux(e,t){e.forEach(t),e.clear()}function dx(e,t,n){const{onDeleteValue:r,onExistingValue:i}=n;e.forEach((n,o)=>{var a;(null==t?void 0:t.has(o))?i&&i(n,null==(a=t.get)?void 0:a.call(t,o),o):(e.delete(o),r(n,o))})}function px(e,t,n){dx(e,t,n);const{createNewValue:r}=n;null==t||t.forEach((t,n)=>{e.has(n)||e.set(n,r(n,t))})}function fx(e){if(32&e.flags){const t=mx(e);return!!t&&Nv(t,64)}return!1}function mx(e){var t;return null==(t=e.declarations)?void 0:t.find(u_)}function gx(e){return 3899393&e.flags?e.objectFlags:0}function hx(e){return!!e&&!!e.declarations&&!!e.declarations[0]&&vE(e.declarations[0])}function yx({moduleSpecifier:e}){return UN(e)?e.text:Xd(e)}function vx(e){let t;return XI(e,e=>{Dd(e)&&(t=e)},e=>{for(let n=e.length-1;n>=0;n--)if(Dd(e[n])){t=e[n];break}}),t}function bx(e,t){return!e.has(t)&&(e.add(t),!0)}function xx(e){return u_(e)||pE(e)||qD(e)}function kx(e){return e>=183&&e<=206||133===e||159===e||150===e||163===e||151===e||136===e||154===e||155===e||116===e||157===e||146===e||141===e||234===e||313===e||314===e||315===e||316===e||317===e||318===e||319===e}function Sx(e){return 212===e.kind||213===e.kind}function Tx(e){return 212===e.kind?e.name:(un.assert(213===e.kind),e.argumentExpression)}function Cx(e){return 276===e.kind||280===e.kind}function wx(e){for(;Sx(e);)e=e.expression;return e}function Nx(e,t){if(Sx(e.parent)&&pb(e))return function e(n){if(212===n.kind){const e=t(n.name);if(void 0!==e)return e}else if(213===n.kind){if(!aD(n.argumentExpression)&&!ju(n.argumentExpression))return;{const e=t(n.argumentExpression);if(void 0!==e)return e}}return Sx(n.expression)?e(n.expression):aD(n.expression)?t(n.expression):void 0}(e.parent)}function Dx(e,t){for(;;){switch(e.kind){case 226:e=e.operand;continue;case 227:e=e.left;continue;case 228:e=e.condition;continue;case 216:e=e.tag;continue;case 214:if(t)return e;case 235:case 213:case 212:case 236:case 356:case 239:e=e.expression;continue}return e}}function Fx(e,t){this.flags=e,this.escapedName=t,this.declarations=void 0,this.valueDeclaration=void 0,this.id=0,this.mergeId=0,this.parent=void 0,this.members=void 0,this.exports=void 0,this.exportSymbol=void 0,this.constEnumOnlyModule=void 0,this.isReferenced=void 0,this.lastAssignmentPos=void 0,this.links=void 0}function Ex(e,t){this.flags=t,(un.isDebugging||Hn)&&(this.checker=e)}function Px(e,t){this.flags=t,un.isDebugging&&(this.checker=e)}function Ax(e,t,n){this.pos=t,this.end=n,this.kind=e,this.id=0,this.flags=0,this.modifierFlagsCache=0,this.transformFlags=0,this.parent=void 0,this.original=void 0,this.emitNode=void 0}function Ix(e,t,n){this.pos=t,this.end=n,this.kind=e,this.id=0,this.flags=0,this.transformFlags=0,this.parent=void 0,this.emitNode=void 0}function Ox(e,t,n){this.pos=t,this.end=n,this.kind=e,this.id=0,this.flags=0,this.transformFlags=0,this.parent=void 0,this.original=void 0,this.emitNode=void 0}function Lx(e,t,n){this.fileName=e,this.text=t,this.skipTrivia=n||(e=>e)}var jx,Mx={getNodeConstructor:()=>Ax,getTokenConstructor:()=>Ix,getIdentifierConstructor:()=>Ox,getPrivateIdentifierConstructor:()=>Ax,getSourceFileConstructor:()=>Ax,getSymbolConstructor:()=>Fx,getTypeConstructor:()=>Ex,getSignatureConstructor:()=>Px,getSourceMapSourceConstructor:()=>Lx},Rx=[];function Bx(e){Rx.push(e),e(Mx)}function Jx(e){Object.assign(Mx,e),d(Rx,e=>e(Mx))}function zx(e,t){return e.replace(/\{(\d+)\}/g,(e,n)=>""+un.checkDefined(t[+n]))}function qx(e){jx=e}function Ux(e){!jx&&e&&(jx=e())}function Vx(e){return jx&&jx[e.key]||e.message}function Wx(e,t,n,r,i,...o){n+r>t.length&&(r=t.length-n),Up(t,n,r);let a=Vx(i);return $(o)&&(a=zx(a,o)),{file:void 0,start:n,length:r,messageText:a,category:i.category,code:i.code,reportsUnnecessary:i.reportsUnnecessary,fileName:e}}function $x(e){return void 0===e.file&&void 0!==e.start&&void 0!==e.length&&"string"==typeof e.fileName}function Hx(e,t){const n=t.fileName||"",r=t.text.length;un.assertEqual(e.fileName,n),un.assertLessThanOrEqual(e.start,r),un.assertLessThanOrEqual(e.start+e.length,r);const i={file:t,start:e.start,length:e.length,messageText:e.messageText,category:e.category,code:e.code,reportsUnnecessary:e.reportsUnnecessary};if(e.relatedInformation){i.relatedInformation=[];for(const o of e.relatedInformation)$x(o)&&o.fileName===n?(un.assertLessThanOrEqual(o.start,r),un.assertLessThanOrEqual(o.start+o.length,r),i.relatedInformation.push(Hx(o,t))):i.relatedInformation.push(o)}return i}function Kx(e,t){const n=[];for(const r of e)n.push(Hx(r,t));return n}function Gx(e,t,n,r,...i){Up(e.text,t,n);let o=Vx(r);return $(i)&&(o=zx(o,i)),{file:e,start:t,length:n,messageText:o,category:r.category,code:r.code,reportsUnnecessary:r.reportsUnnecessary,reportsDeprecated:r.reportsDeprecated}}function Xx(e,...t){let n=Vx(e);return $(t)&&(n=zx(n,t)),n}function Qx(e,...t){let n=Vx(e);return $(t)&&(n=zx(n,t)),{file:void 0,start:void 0,length:void 0,messageText:n,category:e.category,code:e.code,reportsUnnecessary:e.reportsUnnecessary,reportsDeprecated:e.reportsDeprecated}}function Yx(e,t){return{file:void 0,start:void 0,length:void 0,code:e.code,category:e.category,messageText:e.next?e:e.messageText,relatedInformation:t}}function Zx(e,t,...n){let r=Vx(t);return $(n)&&(r=zx(r,n)),{messageText:r,category:t.category,code:t.code,next:void 0===e||Array.isArray(e)?e:[e]}}function ek(e,t){let n=e;for(;n.next;)n=n.next[0];n.next=[t]}function tk(e){return e.file?e.file.path:void 0}function nk(e,t){return rk(e,t)||function(e,t){return e.relatedInformation||t.relatedInformation?e.relatedInformation&&t.relatedInformation?vt(t.relatedInformation.length,e.relatedInformation.length)||d(e.relatedInformation,(e,n)=>nk(e,t.relatedInformation[n]))||0:e.relatedInformation?-1:1:0}(e,t)||0}function rk(e,t){const n=sk(e),r=sk(t);return Ct(tk(e),tk(t))||vt(e.start,t.start)||vt(e.length,t.length)||vt(n,r)||function(e,t){let n=ck(e),r=ck(t);"string"!=typeof n&&(n=n.messageText),"string"!=typeof r&&(r=r.messageText);const i="string"!=typeof e.messageText?e.messageText.next:void 0,o="string"!=typeof t.messageText?t.messageText.next:void 0;let a=Ct(n,r);return a||(c=o,a=void 0===(s=i)&&void 0===c?0:void 0===s?1:void 0===c?-1:ik(s,c)||ok(s,c),a||(e.canonicalHead&&!t.canonicalHead?-1:t.canonicalHead&&!e.canonicalHead?1:0));var s,c}(e,t)||0}function ik(e,t){if(void 0===e&&void 0===t)return 0;if(void 0===e)return 1;if(void 0===t)return-1;let n=vt(t.length,e.length);if(n)return n;for(let r=0;r{e.externalModuleIndicator=FI(e)||!e.isDeclarationFile||void 0};case 1:return e=>{e.externalModuleIndicator=FI(e)};case 2:const t=[FI];4!==e.jsx&&5!==e.jsx||t.push(uk),t.push(dk);const n=en(...t);return t=>{t.externalModuleIndicator=n(t,e)}}}function fk(e){const t=bk(e);return 3<=t&&t<=99||Ck(e)||wk(e)}var mk={allowImportingTsExtensions:{dependencies:["rewriteRelativeImportExtensions"],computeValue:e=>!(!e.allowImportingTsExtensions&&!e.rewriteRelativeImportExtensions)},target:{dependencies:["module"],computeValue:e=>(0===e.target?void 0:e.target)??((100===e.module||101===e.module?9:102===e.module&&10)||199===e.module&&99||1)},module:{dependencies:["target"],computeValue:e=>"number"==typeof e.module?e.module:mk.target.computeValue(e)>=2?5:1},moduleResolution:{dependencies:["module","target"],computeValue:e=>{let t=e.moduleResolution;if(void 0===t)switch(mk.module.computeValue(e)){case 1:t=2;break;case 100:case 101:case 102:t=3;break;case 199:t=99;break;case 200:t=100;break;default:t=1}return t}},moduleDetection:{dependencies:["module","target"],computeValue:e=>{if(void 0!==e.moduleDetection)return e.moduleDetection;const t=mk.module.computeValue(e);return 100<=t&&t<=199?3:2}},isolatedModules:{dependencies:["verbatimModuleSyntax"],computeValue:e=>!(!e.isolatedModules&&!e.verbatimModuleSyntax)},esModuleInterop:{dependencies:["module","target"],computeValue:e=>{if(void 0!==e.esModuleInterop)return e.esModuleInterop;switch(mk.module.computeValue(e)){case 100:case 101:case 102:case 199:case 200:return!0}return!1}},allowSyntheticDefaultImports:{dependencies:["module","target","moduleResolution"],computeValue:e=>void 0!==e.allowSyntheticDefaultImports?e.allowSyntheticDefaultImports:mk.esModuleInterop.computeValue(e)||4===mk.module.computeValue(e)||100===mk.moduleResolution.computeValue(e)},resolvePackageJsonExports:{dependencies:["moduleResolution"],computeValue:e=>{const t=mk.moduleResolution.computeValue(e);if(!Rk(t))return!1;if(void 0!==e.resolvePackageJsonExports)return e.resolvePackageJsonExports;switch(t){case 3:case 99:case 100:return!0}return!1}},resolvePackageJsonImports:{dependencies:["moduleResolution","resolvePackageJsonExports"],computeValue:e=>{const t=mk.moduleResolution.computeValue(e);if(!Rk(t))return!1;if(void 0!==e.resolvePackageJsonImports)return e.resolvePackageJsonImports;switch(t){case 3:case 99:case 100:return!0}return!1}},resolveJsonModule:{dependencies:["moduleResolution","module","target"],computeValue:e=>{if(void 0!==e.resolveJsonModule)return e.resolveJsonModule;switch(mk.module.computeValue(e)){case 102:case 199:return!0}return 100===mk.moduleResolution.computeValue(e)}},declaration:{dependencies:["composite"],computeValue:e=>!(!e.declaration&&!e.composite)},preserveConstEnums:{dependencies:["isolatedModules","verbatimModuleSyntax"],computeValue:e=>!(!e.preserveConstEnums&&!mk.isolatedModules.computeValue(e))},incremental:{dependencies:["composite"],computeValue:e=>!(!e.incremental&&!e.composite)},declarationMap:{dependencies:["declaration","composite"],computeValue:e=>!(!e.declarationMap||!mk.declaration.computeValue(e))},allowJs:{dependencies:["checkJs"],computeValue:e=>void 0===e.allowJs?!!e.checkJs:e.allowJs},useDefineForClassFields:{dependencies:["target","module"],computeValue:e=>void 0===e.useDefineForClassFields?mk.target.computeValue(e)>=9:e.useDefineForClassFields},noImplicitAny:{dependencies:["strict"],computeValue:e=>Jk(e,"noImplicitAny")},noImplicitThis:{dependencies:["strict"],computeValue:e=>Jk(e,"noImplicitThis")},strictNullChecks:{dependencies:["strict"],computeValue:e=>Jk(e,"strictNullChecks")},strictFunctionTypes:{dependencies:["strict"],computeValue:e=>Jk(e,"strictFunctionTypes")},strictBindCallApply:{dependencies:["strict"],computeValue:e=>Jk(e,"strictBindCallApply")},strictPropertyInitialization:{dependencies:["strict"],computeValue:e=>Jk(e,"strictPropertyInitialization")},strictBuiltinIteratorReturn:{dependencies:["strict"],computeValue:e=>Jk(e,"strictBuiltinIteratorReturn")},alwaysStrict:{dependencies:["strict"],computeValue:e=>Jk(e,"alwaysStrict")},useUnknownInCatchVariables:{dependencies:["strict"],computeValue:e=>Jk(e,"useUnknownInCatchVariables")}},gk=mk,hk=mk.allowImportingTsExtensions.computeValue,yk=mk.target.computeValue,vk=mk.module.computeValue,bk=mk.moduleResolution.computeValue,xk=mk.moduleDetection.computeValue,kk=mk.isolatedModules.computeValue,Sk=mk.esModuleInterop.computeValue,Tk=mk.allowSyntheticDefaultImports.computeValue,Ck=mk.resolvePackageJsonExports.computeValue,wk=mk.resolvePackageJsonImports.computeValue,Nk=mk.resolveJsonModule.computeValue,Dk=mk.declaration.computeValue,Fk=mk.preserveConstEnums.computeValue,Ek=mk.incremental.computeValue,Pk=mk.declarationMap.computeValue,Ak=mk.allowJs.computeValue,Ik=mk.useDefineForClassFields.computeValue;function Ok(e){return e>=5&&e<=99}function Lk(e){switch(vk(e)){case 0:case 4:case 3:return!1}return!0}function jk(e){return!1===e.allowUnreachableCode}function Mk(e){return!1===e.allowUnusedLabels}function Rk(e){return e>=3&&e<=99||100===e}function Bk(e){return 101<=e&&e<=199||200===e||99===e}function Jk(e,t){return void 0===e[t]?!!e.strict:!!e[t]}function zk(e){return rd(PO.type,(t,n)=>t===e?n:void 0)}function qk(e){return!1!==e.useDefineForClassFields&&yk(e)>=9}function Uk(e,t){return td(t,e,LO)}function Vk(e,t){return td(t,e,jO)}function Wk(e,t){return td(t,e,MO)}function $k(e,t){return t.strictFlag?Jk(e,t.name):t.allowJsFlag?Ak(e):e[t.name]}function Hk(e){const t=e.jsx;return 2===t||4===t||5===t}function Kk(e,t){const n=null==t?void 0:t.pragmas.get("jsximportsource"),r=Qe(n)?n[n.length-1]:n,i=null==t?void 0:t.pragmas.get("jsxruntime"),o=Qe(i)?i[i.length-1]:i;if("classic"!==(null==o?void 0:o.arguments.factory))return 4===e.jsx||5===e.jsx||e.jsxImportSource||r||"automatic"===(null==o?void 0:o.arguments.factory)?(null==r?void 0:r.arguments.factory)||e.jsxImportSource||"react":void 0}function Gk(e,t){return e?`${e}/${5===t.jsx?"jsx-dev-runtime":"jsx-runtime"}`:void 0}function Xk(e){let t=!1;for(let n=0;ni,getSymlinkedDirectories:()=>n,getSymlinkedDirectoriesByRealpath:()=>r,setSymlinkedFile:(e,t)=>(i||(i=new Map)).set(e,t),setSymlinkedDirectory:(i,o)=>{let a=Uo(i,e,t);IT(a)||(a=Wo(a),!1===o||(null==n?void 0:n.has(a))||(r||(r=$e())).add(o.realPath,i),(n||(n=new Map)).set(a,o))},setSymlinksFromResolutions(e,t,n){un.assert(!o),o=!0,e(e=>a(this,e.resolvedModule)),t(e=>a(this,e.resolvedTypeReferenceDirective)),n.forEach(e=>a(this,e.resolvedTypeReferenceDirective))},hasProcessedResolutions:()=>o,setSymlinksFromResolution(e){a(this,e)},hasAnySymlinks:function(){return!!(null==i?void 0:i.size)||!!n&&!!rd(n,e=>!!e)}};function a(n,r){if(!r||!r.originalPath||!r.resolvedFileName)return;const{resolvedFileName:i,originalPath:o}=r;n.setSymlinkedFile(Uo(o,e,t),i);const[a,s]=function(e,t,n,r){const i=Ao(Bo(e,n)),o=Ao(Bo(t,n));let a=!1;for(;i.length>=2&&o.length>=2&&!Yk(i[i.length-2],r)&&!Yk(o[o.length-2],r)&&r(i[i.length-1])===r(o[o.length-1]);)i.pop(),o.pop(),a=!0;return a?[Io(i),Io(o)]:void 0}(i,o,e,t)||l;a&&s&&n.setSymlinkedDirectory(s,{real:Wo(a),realPath:Wo(Uo(a,e,t))})}}function Yk(e,t){return void 0!==e&&("node_modules"===t(e)||Gt(e,"@"))}function Zk(e,t,n){const r=Qt(e,t,n);return void 0===r?void 0:fo((i=r).charCodeAt(0))?i.slice(1):void 0;var i}var eS=/[^\w\s/]/g;function tS(e){return e.replace(eS,nS)}function nS(e){return"\\"+e}var rS=[42,63],iS=`(?!(?:${["node_modules","bower_components","jspm_packages"].join("|")})(?:/|$))`,oS={singleAsteriskRegexFragment:"(?:[^./]|(?:\\.(?!min\\.js$))?)*",doubleAsteriskRegexFragment:`(?:/${iS}[^/.][^/]*)*?`,replaceWildcardCharacter:e=>fS(e,oS.singleAsteriskRegexFragment)},aS={singleAsteriskRegexFragment:"[^/]*",doubleAsteriskRegexFragment:`(?:/${iS}[^/.][^/]*)*?`,replaceWildcardCharacter:e=>fS(e,aS.singleAsteriskRegexFragment)},sS={singleAsteriskRegexFragment:"[^/]*",doubleAsteriskRegexFragment:"(?:/.+?)?",replaceWildcardCharacter:e=>fS(e,sS.singleAsteriskRegexFragment)},cS={files:oS,directories:aS,exclude:sS};function lS(e,t,n){const r=_S(e,t,n);if(r&&r.length)return`^(?:${r.map(e=>`(?:${e})`).join("|")})${"exclude"===n?"(?:$|/)":"$"}`}function _S(e,t,n){if(void 0!==e&&0!==e.length)return O(e,e=>e&&pS(e,t,n,cS[n]))}function uS(e){return!/[.*?]/.test(e)}function dS(e,t,n){const r=e&&pS(e,t,n,cS[n]);return r&&`^(?:${r})${"exclude"===n?"(?:$|/)":"$"}`}function pS(e,t,n,{singleAsteriskRegexFragment:r,doubleAsteriskRegexFragment:i,replaceWildcardCharacter:o}=cS[n]){let a="",s=!1;const c=Ro(e,t),l=ve(c);if("exclude"!==n&&"**"===l)return;c[0]=Vo(c[0]),uS(l)&&c.push("**","*");let _=0;for(let e of c){if("**"===e)a+=i;else if("directories"===n&&(a+="(?:",_++),s&&(a+=lo),"exclude"!==n){let t="";42===e.charCodeAt(0)?(t+="(?:[^./]"+r+")?",e=e.substr(1)):63===e.charCodeAt(0)&&(t+="[^./]",e=e.substr(1)),t+=e.replace(eS,o),t!==e&&(a+=iS),a+=t}else a+=e.replace(eS,o);s=!0}for(;_>0;)a+=")?",_--;return a}function fS(e,t){return"*"===e?t:"?"===e?"[^/]":"\\"+e}function mS(e,t,n,r,i){e=Jo(e);const o=jo(i=Jo(i),e);return{includeFilePatterns:E(_S(n,o,"files"),e=>`^${e}$`),includeFilePattern:lS(n,o,"files"),includeDirectoryPattern:lS(n,o,"directories"),excludePattern:lS(t,o,"exclude"),basePaths:yS(e,n,r)}}function gS(e,t){return new RegExp(e,t?"":"i")}function hS(e,t,n,r,i,o,a,s,c){e=Jo(e),o=Jo(o);const l=mS(e,n,r,i,o),_=l.includeFilePatterns&&l.includeFilePatterns.map(e=>gS(e,i)),u=l.includeDirectoryPattern&&gS(l.includeDirectoryPattern,i),d=l.excludePattern&&gS(l.excludePattern,i),p=_?_.map(()=>[]):[[]],f=new Map,m=Wt(i);for(const e of l.basePaths)g(e,jo(o,e),a);return I(p);function g(e,n,r){const i=m(c(n));if(f.has(i))return;f.set(i,!0);const{files:o,directories:a}=s(e);for(const r of _e(o,Ct)){const i=jo(e,r),o=jo(n,r);if((!t||So(i,t))&&(!d||!d.test(o)))if(_){const e=k(_,e=>e.test(o));-1!==e&&p[e].push(i)}else p[0].push(i)}if(void 0===r||0!==--r)for(const t of _e(a,Ct)){const i=jo(e,t),o=jo(n,t);u&&!u.test(o)||d&&d.test(o)||g(i,o,r)}}}function yS(e,t,n){const r=[e];if(t){const i=[];for(const n of t){const t=go(n)?n:Jo(jo(e,n));i.push(vS(t))}i.sort(wt(!n));for(const t of i)v(r,r=>!ea(r,t,e,!n))&&r.push(t)}return r}function vS(e){const t=C(e,rS);return t<0?xo(e)?Vo(Do(e)):e:e.substring(0,e.lastIndexOf(lo,t))}function bS(e,t){return t||xS(e)||3}function xS(e){switch(e.substr(e.lastIndexOf(".")).toLowerCase()){case".js":case".cjs":case".mjs":return 1;case".jsx":return 2;case".ts":case".cts":case".mts":return 3;case".tsx":return 4;case".json":return 6;default:return 0}}var kS=[[".ts",".tsx",".d.ts"],[".cts",".d.cts"],[".mts",".d.mts"]],SS=I(kS),TS=[...kS,[".json"]],CS=[".d.ts",".d.cts",".d.mts",".cts",".mts",".ts",".tsx"],wS=I([[".js",".jsx"],[".mjs"],[".cjs"]]),NS=[[".ts",".tsx",".d.ts",".js",".jsx"],[".cts",".d.cts",".cjs"],[".mts",".d.mts",".mjs"]],DS=[...NS,[".json"]],FS=[".d.ts",".d.cts",".d.mts"],ES=[".ts",".cts",".mts",".tsx"],PS=[".mts",".d.mts",".mjs",".cts",".d.cts",".cjs"];function AS(e,t){const n=e&&Ak(e);if(!t||0===t.length)return n?NS:kS;const r=n?NS:kS,i=I(r);return[...r,...B(t,e=>{return 7===e.scriptKind||n&&(1===(t=e.scriptKind)||2===t)&&!i.includes(e.extension)?[e.extension]:void 0;var t})]}function IS(e,t){return e&&Nk(e)?t===NS?DS:t===kS?TS:[...t,[".json"]]:t}function OS(e){return $(wS,t=>ko(e,t))}function LS(e){return $(SS,t=>ko(e,t))}function jS(e){return $(ES,t=>ko(e,t))&&!uO(e)}var MS=(e=>(e[e.Minimal=0]="Minimal",e[e.Index=1]="Index",e[e.JsExtension=2]="JsExtension",e[e.TsExtension=3]="TsExtension",e))(MS||{});function RS(e,t,n,r){const i=bk(n),o=3<=i&&i<=99;return"js"===e||99===t&&o?MR(n)&&2!==a()?3:2:"minimal"===e?0:"index"===e?1:MR(n)?a():r&&function({imports:e},t=en(OS,LS)){return f(e,({text:e})=>vo(e)&&!So(e,PS)?t(e):void 0)||!1}(r)?2:0;function a(){let e=!1;const i=(null==r?void 0:r.imports.length)?r.imports:r&&Fm(r)?function(e){let t,n=0;for(const r of e.statements){if(n>3)break;Jm(r)?t=K(t,r.declarationList.declarations.map(e=>e.initializer)):HF(r)&&Lm(r.expression,!0)?t=ie(t,r.expression):n++}return t||l}(r).map(e=>e.arguments[0]):l;for(const a of i)if(vo(a.text)){if(o&&1===t&&99===dV(r,a,n))continue;if(So(a.text,PS))continue;if(LS(a.text))return 3;OS(a.text)&&(e=!0)}return e?2:0}}function BS(e,t,n){if(!e)return!1;const r=AS(t,n);for(const n of I(IS(t,r)))if(ko(e,n))return!0;return!1}function JS(e){const t=e.match(/\//g);return t?t.length:0}function zS(e,t){return vt(JS(e),JS(t))}var qS=[".d.ts",".d.mts",".d.cts",".mjs",".mts",".cjs",".cts",".ts",".js",".tsx",".jsx",".json"];function US(e){for(const t of qS){const n=VS(e,t);if(void 0!==n)return n}return e}function VS(e,t){return ko(e,t)?WS(e,t):void 0}function WS(e,t){return e.substring(0,e.length-t.length)}function $S(e,t){return Ho(e,t,qS,!1)}function HS(e){const t=e.indexOf("*");return-1===t?e:-1!==e.indexOf("*",t+1)?void 0:{prefix:e.substr(0,t),suffix:e.substr(t+1)}}var KS=new WeakMap;function GS(e){let t,n,r=KS.get(e);if(void 0!==r)return r;const i=Ee(e);for(const e of i){const r=HS(e);void 0!==r&&("string"==typeof r?(t??(t=new Set)).add(r):(n??(n=[])).push(r))}return KS.set(e,r={matchableStringSet:t,patterns:n}),r}function XS(e){return!(e>=0)}function QS(e){return".ts"===e||".tsx"===e||".d.ts"===e||".cts"===e||".mts"===e||".d.mts"===e||".d.cts"===e||Gt(e,".d.")&&Mt(e,".ts")}function YS(e){return QS(e)||".json"===e}function ZS(e){const t=tT(e);return void 0!==t?t:un.fail(`File ${e} has unknown extension.`)}function eT(e){return void 0!==tT(e)}function tT(e){return b(qS,t=>ko(e,t))}function nT(e,t){return e.checkJsDirective?e.checkJsDirective.enabled:t.checkJs}var rT={files:l,directories:l};function iT(e,t){const{matchableStringSet:n,patterns:r}=e;return(null==n?void 0:n.has(t))?t:void 0!==r&&0!==r.length?Kt(r,e=>e,t):void 0}function oT(e,t){const n=e.indexOf(t);return un.assert(-1!==n),e.slice(n)}function aT(e,...t){return t.length?(e.relatedInformation||(e.relatedInformation=[]),un.assert(e.relatedInformation!==l,"Diagnostic had empty array singleton for related info, but is still being constructed!"),e.relatedInformation.push(...t),e):e}function sT(e,t){un.assert(0!==e.length);let n=t(e[0]),r=n;for(let i=1;ir&&(r=o)}return{min:n,max:r}}function cT(e){return{pos:zd(e),end:e.end}}function lT(e,t){return{pos:t.pos-1,end:Math.min(e.text.length,Qa(e.text,t.end)+1)}}function _T(e,t,n){return dT(e,t,n,!1)}function uT(e,t,n){return dT(e,t,n,!0)}function dT(e,t,n,r){return t.skipLibCheck&&e.isDeclarationFile||t.skipDefaultLibCheck&&e.hasNoDefaultLib||!r&&t.noCheck||n.isSourceOfProjectReferenceRedirect(e.fileName)||!pT(e,t)}function pT(e,t){if(e.checkJsDirective&&!1===e.checkJsDirective.enabled)return!1;if(3===e.scriptKind||4===e.scriptKind||5===e.scriptKind)return!0;const n=(1===e.scriptKind||2===e.scriptKind)&&nT(e,t);return xd(e,t.checkJs)||n||7===e.scriptKind}function fT(e,t){return e===t||"object"==typeof e&&null!==e&&"object"==typeof t&&null!==t&&je(e,t,fT)}function mT(e){let t;switch(e.charCodeAt(1)){case 98:case 66:t=1;break;case 111:case 79:t=3;break;case 120:case 88:t=4;break;default:const n=e.length-1;let r=0;for(;48===e.charCodeAt(r);)r++;return e.slice(r,n)||"0"}const n=e.length-1,r=(n-2)*t,i=new Uint16Array((r>>>4)+(15&r?1:0));for(let r=n-1,o=0;r>=2;r--,o+=t){const t=o>>>4,n=e.charCodeAt(r),a=(n<=57?n-48:10+n-(n<=70?65:97))<<(15&o);i[t]|=a;const s=a>>>16;s&&(i[t+1]|=s)}let o="",a=i.length-1,s=!0;for(;s;){let e=0;s=!1;for(let t=a;t>=0;t--){const n=e<<16|i[t],r=n/10|0;i[t]=r,e=n-10*r,r&&!s&&(a=t,s=!0)}o=e+o}return o}function gT({negative:e,base10Value:t}){return(e&&"0"!==t?"-":"")+t}function hT(e){if(vT(e,!1))return yT(e)}function yT(e){const t=e.startsWith("-");return{negative:t,base10Value:mT(`${t?e.slice(1):e}n`)}}function vT(e,t){if(""===e)return!1;const n=gs(99,!1);let r=!0;n.setOnError(()=>r=!1),n.setText(e+"n");let i=n.scan();const o=41===i;o&&(i=n.scan());const a=n.getTokenFlags();return r&&10===i&&n.getTokenEnd()===e.length+1&&!(512&a)&&(!t||e===gT({negative:o,base10Value:mT(n.getTokenValue())}))}function bT(e){return!!(33554432&e.flags)||Im(e)||km(e)||function(e){if(80!==e.kind)return!1;const t=uc(e.parent,e=>{switch(e.kind){case 299:return!0;case 212:case 234:return!1;default:return"quit"}});return 119===(null==t?void 0:t.token)||265===(null==t?void 0:t.parent.kind)}(e)||function(e){for(;80===e.kind||212===e.kind;)e=e.parent;if(168!==e.kind)return!1;if(Nv(e.parent,64))return!0;const t=e.parent.parent.kind;return 265===t||188===t}(e)||!(bm(e)||function(e){return aD(e)&&iP(e.parent)&&e.parent.name===e}(e))}function xT(e){return RD(e)&&aD(e.typeName)}function kT(e,t=mt){if(e.length<2)return!0;const n=e[0];for(let r=1,i=e.length;re.includes(t))}function OT(e){if(!e.parent)return;switch(e.kind){case 169:const{parent:t}=e;return 196===t.kind?void 0:t.typeParameters;case 170:return e.parent.parameters;case 205:case 240:return e.parent.templateSpans;case 171:{const{parent:t}=e;return SI(t)?t.modifiers:void 0}case 299:return e.parent.heritageClauses}const{parent:t}=e;if(Cu(e))return TP(e.parent)?void 0:e.parent.tags;switch(t.kind){case 188:case 265:return h_(e)?t.members:void 0;case 193:case 194:return t.types;case 190:case 210:case 357:case 276:case 280:return t.elements;case 211:case 293:return t.properties;case 214:case 215:return b_(e)?t.typeArguments:t.expression===e?void 0:t.arguments;case 285:case 289:return hu(e)?t.children:void 0;case 287:case 286:return b_(e)?t.typeArguments:void 0;case 242:case 297:case 298:case 269:case 308:return t.statements;case 270:return t.clauses;case 264:case 232:return __(e)?t.members:void 0;case 267:return aP(e)?t.members:void 0}}function LT(e){if(!e.typeParameters){if($(e.parameters,e=>!fv(e)))return!0;if(220!==e.kind){const t=fe(e.parameters);if(!t||!cv(t))return!0}}return!1}function jT(e){return"Infinity"===e||"-Infinity"===e||"NaN"===e}function MT(e){return 261===e.kind&&300===e.parent.kind}function RT(e){return 219===e.kind||220===e.kind}function BT(e){return e.replace(/\$/g,()=>"\\$")}function JT(e){return(+e).toString()===e}function zT(e,t,n,r,i){const o=i&&"new"===e;return!o&&ms(e,t)?mw.createIdentifier(e):!r&&!o&&JT(e)&&+e>=0?mw.createNumericLiteral(+e):mw.createStringLiteral(e,!!n)}function qT(e){return!!(262144&e.flags&&e.isThisType)}function UT(e){let t,n=0,r=0,i=0,o=0;var a;(a=t||(t={}))[a.BeforeNodeModules=0]="BeforeNodeModules",a[a.NodeModules=1]="NodeModules",a[a.Scope=2]="Scope",a[a.PackageContent=3]="PackageContent";let s=0,c=0,l=0;for(;c>=0;)switch(s=c,c=e.indexOf("/",s+1),l){case 0:e.indexOf(KM,s)===s&&(n=s,r=c,l=1);break;case 1:case 2:1===l&&"@"===e.charAt(s+1)?l=2:(i=c,l=3);break;case 3:l=e.indexOf(KM,s)===s?1:3}return o=s,l>1?{topLevelNodeModulesIndex:n,topLevelPackageNameIndex:r,packageRootIndex:i,fileNameIndex:o}:void 0}function VT(e){switch(e.kind){case 169:case 264:case 265:case 266:case 267:case 347:case 339:case 341:return!0;case 274:return 156===e.phaseModifier;case 277:return 156===e.parent.parent.phaseModifier;case 282:return e.parent.parent.isTypeOnly;default:return!1}}function WT(e){return mE(e)||WF(e)||uE(e)||dE(e)||pE(e)||VT(e)||gE(e)&&!fp(e)&&!pp(e)}function $T(e){if(!Nl(e))return!1;const{isBracketed:t,typeExpression:n}=e;return t||!!n&&317===n.type.kind}function HT(e,t){if(0===e.length)return!1;const n=e.charCodeAt(0);return 35===n?e.length>1&&ps(e.charCodeAt(1),t):ps(n,t)}function KT(e){var t;return 0===(null==(t=Hw(e))?void 0:t.kind)}function GT(e){return Em(e)&&(e.type&&317===e.type.kind||Ec(e).some($T))}function XT(e){switch(e.kind){case 173:case 172:return!!e.questionToken;case 170:return!!e.questionToken||GT(e);case 349:case 342:return $T(e);default:return!1}}function QT(e){const t=e.kind;return(212===t||213===t)&&MF(e.expression)}function YT(e){return Em(e)&&yF(e)&&Du(e)&&!!el(e)}function ZT(e){return un.checkDefined(eC(e))}function eC(e){const t=el(e);return t&&t.typeExpression&&t.typeExpression.type}function tC(e){return aD(e)?e.escapedText:iC(e)}function nC(e){return aD(e)?gc(e):oC(e)}function rC(e){const t=e.kind;return 80===t||296===t}function iC(e){return`${e.namespace.escapedText}:${gc(e.name)}`}function oC(e){return`${gc(e.namespace)}:${gc(e.name)}`}function aC(e){return aD(e)?gc(e):oC(e)}function sC(e){return!!(8576&e.flags)}function cC(e){return 8192&e.flags?e.escapedName:384&e.flags?fc(""+e.value):un.fail()}function lC(e){return!!e&&(dF(e)||pF(e)||NF(e))}function _C(e){return void 0!==e&&!!mV(e.attributes)}var uC=String.prototype.replace;function dC(e,t){return uC.call(e,"*",t)}function pC(e){return aD(e.name)?e.name.escapedText:fc(e.name.text)}function fC(e){switch(e.kind){case 169:case 170:case 173:case 172:case 186:case 185:case 180:case 181:case 182:case 175:case 174:case 176:case 177:case 178:case 179:case 184:case 183:case 187:case 188:case 189:case 190:case 193:case 194:case 197:case 191:case 192:case 198:case 199:case 195:case 196:case 204:case 206:case 203:case 329:case 330:case 347:case 339:case 341:case 346:case 345:case 325:case 326:case 327:case 342:case 349:case 318:case 316:case 315:case 313:case 314:case 323:case 319:case 310:case 334:case 336:case 335:case 351:case 344:case 200:case 201:case 263:case 242:case 269:case 244:case 245:case 246:case 247:case 248:case 249:case 250:case 251:case 252:case 253:case 254:case 255:case 256:case 257:case 258:case 259:case 261:case 209:case 264:case 265:case 266:case 267:case 268:case 273:case 272:case 279:case 278:case 243:case 260:case 283:return!0}return!1}function mC(e,t=!1,n=!1,r=!1){return{value:e,isSyntacticallyString:t,resolvedOtherFiles:n,hasExternalReferences:r}}function gC({evaluateElementAccessExpression:e,evaluateEntityNameExpression:t}){return function n(r,i){let o=!1,a=!1,s=!1;switch((r=ah(r)).kind){case 225:const c=n(r.operand,i);if(a=c.resolvedOtherFiles,s=c.hasExternalReferences,"number"==typeof c.value)switch(r.operator){case 40:return mC(c.value,o,a,s);case 41:return mC(-c.value,o,a,s);case 55:return mC(~c.value,o,a,s)}break;case 227:{const e=n(r.left,i),t=n(r.right,i);if(o=(e.isSyntacticallyString||t.isSyntacticallyString)&&40===r.operatorToken.kind,a=e.resolvedOtherFiles||t.resolvedOtherFiles,s=e.hasExternalReferences||t.hasExternalReferences,"number"==typeof e.value&&"number"==typeof t.value)switch(r.operatorToken.kind){case 52:return mC(e.value|t.value,o,a,s);case 51:return mC(e.value&t.value,o,a,s);case 49:return mC(e.value>>t.value,o,a,s);case 50:return mC(e.value>>>t.value,o,a,s);case 48:return mC(e.value<=2)break;case 175:case 177:case 178:case 179:case 263:if(3&d&&"arguments"===I){w=n;break e}break;case 219:if(3&d&&"arguments"===I){w=n;break e}if(16&d){const e=s.name;if(e&&I===e.escapedText){w=s.symbol;break e}}break;case 171:s.parent&&170===s.parent.kind&&(s=s.parent),s.parent&&(__(s.parent)||264===s.parent.kind)&&(s=s.parent);break;case 347:case 339:case 341:case 352:const o=Wg(s);o&&(s=o.parent);break;case 170:N&&(N===s.initializer||N===s.name&&k_(N))&&(E||(E=s));break;case 209:N&&(N===s.initializer||N===s.name&&k_(N))&&Qh(s)&&!E&&(E=s);break;case 196:if(262144&d){const e=s.typeParameter.name;if(e&&I===e.escapedText){w=s.typeParameter.symbol;break e}}break;case 282:N&&N===s.propertyName&&s.parent.parent.moduleSpecifier&&(s=s.parent.parent.parent)}y(s,N)&&(D=s),N=s,s=UP(s)?Jg(s)||s.parent:(BP(s)||JP(s))&&qg(s)||s.parent}if(!b||!w||D&&w===D.symbol||(w.isReferenced|=d),!w){if(N&&(un.assertNode(N,sP),N.commonJsModuleIndicator&&"exports"===I&&d&N.symbol.flags))return N.symbol;x||(w=a(o,I,d))}if(!w&&C&&Em(C)&&C.parent&&Lm(C.parent,!1))return t;if(f){if(F&&l(C,I,F,w))return;w?u(C,w,d,N,E,A):_(C,c,d,f)}return w};function g(t,n,r){const i=yk(e),o=n;if(TD(r)&&o.body&&t.valueDeclaration&&t.valueDeclaration.pos>=o.body.pos&&t.valueDeclaration.end<=o.body.end&&i>=2){let e=c(o);return void 0===e&&(e=d(o.parameters,function(e){return a(e.name)||!!e.initializer&&a(e.initializer)})||!1,s(o,e)),!e}return!1;function a(e){switch(e.kind){case 220:case 219:case 263:case 177:return!1;case 175:case 178:case 179:case 304:return a(e.name);case 173:return Fv(e)?!f:a(e.name);default:return xl(e)||hl(e)?i<7:lF(e)&&e.dotDotDotToken&&sF(e.parent)?i<4:!b_(e)&&(XI(e,a)||!1)}}}function h(e,t){return 220!==e.kind&&219!==e.kind?zD(e)||(o_(e)||173===e.kind&&!Dv(e))&&(!t||t!==e.name):!(t&&t===e.name||!e.asteriskToken&&!Nv(e,1024)&&om(e))}function y(e,t){switch(e.kind){case 170:return!!t&&t===e.name;case 263:case 264:case 265:case 267:case 266:case 268:return!0;default:return!1}}function v(e,t){if(e.declarations)for(const n of e.declarations)if(169===n.kind&&(UP(n.parent)?Vg(n.parent):n.parent)===t)return!(UP(n.parent)&&b(n.parent.parent.tags,Dg));return!1}}function bC(e,t=!0){switch(un.type(e),e.kind){case 112:case 97:case 9:case 11:case 15:return!0;case 10:return t;case 225:return 41===e.operator?zN(e.operand)||t&&qN(e.operand):40===e.operator&&zN(e.operand);default:return!1}}function xC(e){for(;218===e.kind;)e=e.expression;return e}function kC(e){switch(un.type(e),e.kind){case 170:case 172:case 173:case 209:case 212:case 213:case 227:case 261:case 278:case 304:case 305:case 342:case 349:return!0;default:return!1}}function SC(e){const t=uc(e,xE);return!!t&&!t.importClause}var TC=["assert","assert/strict","async_hooks","buffer","child_process","cluster","console","constants","crypto","dgram","diagnostics_channel","dns","dns/promises","domain","events","fs","fs/promises","http","http2","https","inspector","inspector/promises","module","net","os","path","path/posix","path/win32","perf_hooks","process","punycode","querystring","readline","readline/promises","repl","stream","stream/consumers","stream/promises","stream/web","string_decoder","sys","test/mock_loader","timers","timers/promises","tls","trace_events","tty","url","util","util/types","v8","vm","wasi","worker_threads","zlib"],CC=new Set(TC),wC=new Set(["node:sea","node:sqlite","node:test","node:test/reporters"]),NC=new Set([...TC,...TC.map(e=>`node:${e}`),...wC]);function DC(e,t,n,r){const i=Em(e),o=/import|require/g;for(;null!==o.exec(e.text);){const a=FC(e,o.lastIndex,t);if(i&&Lm(a,n))r(a,a.arguments[0]);else if(_f(a)&&a.arguments.length>=1&&(!n||ju(a.arguments[0])))r(a,a.arguments[0]);else if(t&&df(a))r(a,a.argument.literal);else if(t&&XP(a)){const e=kg(a);e&&UN(e)&&e.text&&r(a,e)}}}function FC(e,t,n){const r=Em(e);let i=e;const o=e=>{if(e.pos<=t&&(te&&t(e))}function OC(e,t,n,r){let i;return function e(t,o,a){if(r){const e=r(t,a);if(e)return e}let s;return d(o,(e,t)=>{if(e&&(null==i?void 0:i.has(e.sourceFile.path)))return void(s??(s=new Set)).add(e);const r=n(e,a,t);if(r||!e)return r;(i||(i=new Set)).add(e.sourceFile.path)})||d(o,t=>t&&!(null==s?void 0:s.has(t))?e(t.commandLine.projectReferences,t.references,t):void 0)}(e,t,void 0)}function LC(e,t,n){return e&&(r=n,Vf(e,t,e=>_F(e.initializer)?b(e.initializer.elements,e=>UN(e)&&e.text===r):void 0));var r}function jC(e,t,n){return MC(e,t,e=>UN(e.initializer)&&e.initializer.text===n?e.initializer:void 0)}function MC(e,t,n){return Vf(e,t,n)}function RC(e,t=!0){const n=e&&JC(e);return n&&!t&&UC(n),FT(n,!1)}function BC(e,t,n){let r=n(e);return r?hw(r,e):r=JC(e,n),r&&!t&&UC(r),r}function JC(e,t){const n=t?e=>BC(e,!0,t):RC,r=vJ(e,n,void 0,t?e=>e&&qC(e,!0,t):e=>e&&zC(e),n);return r===e?xI(UN(e)?hw(mw.createStringLiteralFromNode(e),e):zN(e)?hw(mw.createNumericLiteral(e.text,e.numericLiteralFlags),e):mw.cloneNode(e),e):(r.parent=void 0,r)}function zC(e,t=!0){if(e){const n=mw.createNodeArray(e.map(e=>RC(e,t)),e.hasTrailingComma);return xI(n,e),n}return e}function qC(e,t,n){return mw.createNodeArray(e.map(e=>BC(e,t,n)),e.hasTrailingComma)}function UC(e){VC(e),WC(e)}function VC(e){$C(e,1024,HC)}function WC(e){$C(e,2048,vx)}function $C(e,t,n){kw(e,t);const r=n(e);r&&$C(r,t,n)}function HC(e){return XI(e,e=>e)}function KC(){let e,t,n,r,i;return{createBaseSourceFileNode:function(e){return new(i||(i=Mx.getSourceFileConstructor()))(e,-1,-1)},createBaseIdentifierNode:function(e){return new(n||(n=Mx.getIdentifierConstructor()))(e,-1,-1)},createBasePrivateIdentifierNode:function(e){return new(r||(r=Mx.getPrivateIdentifierConstructor()))(e,-1,-1)},createBaseTokenNode:function(e){return new(t||(t=Mx.getTokenConstructor()))(e,-1,-1)},createBaseNode:function(t){return new(e||(e=Mx.getNodeConstructor()))(t,-1,-1)}}}function GC(e){let t,n;return{getParenthesizeLeftSideOfBinaryForOperator:function(e){t||(t=new Map);let n=t.get(e);return n||(n=t=>o(e,t),t.set(e,n)),n},getParenthesizeRightSideOfBinaryForOperator:function(e){n||(n=new Map);let t=n.get(e);return t||(t=t=>a(e,void 0,t),n.set(e,t)),t},parenthesizeLeftSideOfBinary:o,parenthesizeRightSideOfBinary:a,parenthesizeExpressionOfComputedPropertyName:function(t){return SA(t)?e.createParenthesizedExpression(t):t},parenthesizeConditionOfConditionalExpression:function(t){const n=sy(228,58);return 1!==vt(iy(Sl(t)),n)?e.createParenthesizedExpression(t):t},parenthesizeBranchOfConditionalExpression:function(t){return SA(Sl(t))?e.createParenthesizedExpression(t):t},parenthesizeExpressionOfExportDefault:function(t){const n=Sl(t);let r=SA(n);if(!r)switch(Dx(n,!1).kind){case 232:case 219:r=!0}return r?e.createParenthesizedExpression(t):t},parenthesizeExpressionOfNew:function(t){const n=Dx(t,!0);switch(n.kind){case 214:return e.createParenthesizedExpression(t);case 215:return n.arguments?t:e.createParenthesizedExpression(t)}return s(t)},parenthesizeLeftSideOfAccess:s,parenthesizeOperandOfPostfixUnary:function(t){return R_(t)?t:xI(e.createParenthesizedExpression(t),t)},parenthesizeOperandOfPrefixUnary:function(t){return J_(t)?t:xI(e.createParenthesizedExpression(t),t)},parenthesizeExpressionsOfCommaDelimitedList:function(t){const n=A(t,c);return xI(e.createNodeArray(n,t.hasTrailingComma),t)},parenthesizeExpressionForDisallowedComma:c,parenthesizeExpressionOfExpressionStatement:function(t){const n=Sl(t);if(fF(n)){const r=n.expression,i=Sl(r).kind;if(219===i||220===i){const i=e.updateCallExpression(n,xI(e.createParenthesizedExpression(r),r),n.typeArguments,n.arguments);return e.restoreOuterExpressions(t,i,8)}}const r=Dx(n,!1).kind;return 211===r||219===r?xI(e.createParenthesizedExpression(t),t):t},parenthesizeConciseBodyOfArrowFunction:function(t){return VF(t)||!SA(t)&&211!==Dx(t,!1).kind?t:xI(e.createParenthesizedExpression(t),t)},parenthesizeCheckTypeOfConditionalType:l,parenthesizeExtendsTypeOfConditionalType:function(t){return 195===t.kind?e.createParenthesizedType(t):t},parenthesizeConstituentTypesOfUnionType:function(t){return e.createNodeArray(A(t,_))},parenthesizeConstituentTypeOfUnionType:_,parenthesizeConstituentTypesOfIntersectionType:function(t){return e.createNodeArray(A(t,u))},parenthesizeConstituentTypeOfIntersectionType:u,parenthesizeOperandOfTypeOperator:d,parenthesizeOperandOfReadonlyTypeOperator:function(t){return 199===t.kind?e.createParenthesizedType(t):d(t)},parenthesizeNonArrayTypeOfPostfixType:p,parenthesizeElementTypesOfTupleType:function(t){return e.createNodeArray(A(t,f))},parenthesizeElementTypeOfTupleType:f,parenthesizeTypeOfOptionalType:function(t){return m(t)?e.createParenthesizedType(t):p(t)},parenthesizeTypeArguments:function(t){if($(t))return e.createNodeArray(A(t,h))},parenthesizeLeadingTypeArgument:g};function r(e){if(Al((e=Sl(e)).kind))return e.kind;if(227===e.kind&&40===e.operatorToken.kind){if(void 0!==e.cachedLiteralKind)return e.cachedLiteralKind;const t=r(e.left),n=Al(t)&&t===r(e.right)?t:0;return e.cachedLiteralKind=n,n}return 0}function i(t,n,i,o){return 218===Sl(n).kind?n:function(e,t,n,i){const o=sy(227,e),a=ry(227,e),s=Sl(t);if(!n&&220===t.kind&&o>3)return!0;switch(vt(iy(s),o)){case-1:return!(!n&&1===a&&230===t.kind);case 1:return!1;case 0:if(n)return 1===a;if(NF(s)&&s.operatorToken.kind===e){if(function(e){return 42===e||52===e||51===e||53===e||28===e}(e))return!1;if(40===e){const e=i?r(i):0;if(Al(e)&&e===r(s))return!1}}return 0===ny(s)}}(t,n,i,o)?e.createParenthesizedExpression(n):n}function o(e,t){return i(e,t,!0)}function a(e,t,n){return i(e,n,!1,t)}function s(t,n){const r=Sl(t);return!R_(r)||215===r.kind&&!r.arguments||!n&&hl(r)?xI(e.createParenthesizedExpression(t),t):t}function c(t){return iy(Sl(t))>sy(227,28)?t:xI(e.createParenthesizedExpression(t),t)}function l(t){switch(t.kind){case 185:case 186:case 195:return e.createParenthesizedType(t)}return t}function _(t){switch(t.kind){case 193:case 194:return e.createParenthesizedType(t)}return l(t)}function u(t){switch(t.kind){case 193:case 194:return e.createParenthesizedType(t)}return _(t)}function d(t){return 194===t.kind?e.createParenthesizedType(t):u(t)}function p(t){switch(t.kind){case 196:case 199:case 187:return e.createParenthesizedType(t)}return d(t)}function f(t){return m(t)?e.createParenthesizedType(t):t}function m(e){return hP(e)?e.postfix:WD(e)||BD(e)||JD(e)||eF(e)?m(e.type):XD(e)?m(e.falseType):KD(e)||GD(e)?m(ve(e.types)):!!QD(e)&&!!e.typeParameter.constraint&&m(e.typeParameter.constraint)}function g(t){return x_(t)&&t.typeParameters?e.createParenthesizedType(t):t}function h(e,t){return 0===t?g(e):e}}var XC={getParenthesizeLeftSideOfBinaryForOperator:e=>st,getParenthesizeRightSideOfBinaryForOperator:e=>st,parenthesizeLeftSideOfBinary:(e,t)=>t,parenthesizeRightSideOfBinary:(e,t,n)=>n,parenthesizeExpressionOfComputedPropertyName:st,parenthesizeConditionOfConditionalExpression:st,parenthesizeBranchOfConditionalExpression:st,parenthesizeExpressionOfExportDefault:st,parenthesizeExpressionOfNew:e=>nt(e,R_),parenthesizeLeftSideOfAccess:e=>nt(e,R_),parenthesizeOperandOfPostfixUnary:e=>nt(e,R_),parenthesizeOperandOfPrefixUnary:e=>nt(e,J_),parenthesizeExpressionsOfCommaDelimitedList:e=>nt(e,Pl),parenthesizeExpressionForDisallowedComma:st,parenthesizeExpressionOfExpressionStatement:st,parenthesizeConciseBodyOfArrowFunction:st,parenthesizeCheckTypeOfConditionalType:st,parenthesizeExtendsTypeOfConditionalType:st,parenthesizeConstituentTypesOfUnionType:e=>nt(e,Pl),parenthesizeConstituentTypeOfUnionType:st,parenthesizeConstituentTypesOfIntersectionType:e=>nt(e,Pl),parenthesizeConstituentTypeOfIntersectionType:st,parenthesizeOperandOfTypeOperator:st,parenthesizeOperandOfReadonlyTypeOperator:st,parenthesizeNonArrayTypeOfPostfixType:st,parenthesizeElementTypesOfTupleType:e=>nt(e,Pl),parenthesizeElementTypeOfTupleType:st,parenthesizeTypeOfOptionalType:st,parenthesizeTypeArguments:e=>e&&nt(e,Pl),parenthesizeLeadingTypeArgument:st};function QC(e){return{convertToFunctionBlock:function(t,n){if(VF(t))return t;const r=e.createReturnStatement(t);xI(r,t);const i=e.createBlock([r],n);return xI(i,t),i},convertToFunctionExpression:function(t){var n;if(!t.body)return un.fail("Cannot convert a FunctionDeclaration without a body");const r=e.createFunctionExpression(null==(n=Dc(t))?void 0:n.filter(e=>!cD(e)&&!lD(e)),t.asteriskToken,t.name,t.typeParameters,t.parameters,t.type,t.body);return hw(r,t),xI(r,t),Fw(t)&&Ew(r,!0),r},convertToClassExpression:function(t){var n;const r=e.createClassExpression(null==(n=t.modifiers)?void 0:n.filter(e=>!cD(e)&&!lD(e)),t.name,t.typeParameters,t.heritageClauses,t.members);return hw(r,t),xI(r,t),Fw(t)&&Ew(r,!0),r},convertToArrayAssignmentElement:t,convertToObjectAssignmentElement:n,convertToAssignmentPattern:r,convertToObjectAssignmentPattern:i,convertToArrayAssignmentPattern:o,convertToAssignmentElementTarget:a};function t(t){if(lF(t)){if(t.dotDotDotToken)return un.assertNode(t.name,aD),hw(xI(e.createSpreadElement(t.name),t),t);const n=a(t.name);return t.initializer?hw(xI(e.createAssignment(n,t.initializer),t),t):n}return nt(t,V_)}function n(t){if(lF(t)){if(t.dotDotDotToken)return un.assertNode(t.name,aD),hw(xI(e.createSpreadAssignment(t.name),t),t);if(t.propertyName){const n=a(t.name);return hw(xI(e.createPropertyAssignment(t.propertyName,t.initializer?e.createAssignment(n,t.initializer):n),t),t)}return un.assertNode(t.name,aD),hw(xI(e.createShorthandPropertyAssignment(t.name,t.initializer),t),t)}return nt(t,v_)}function r(e){switch(e.kind){case 208:case 210:return o(e);case 207:case 211:return i(e)}}function i(t){return sF(t)?hw(xI(e.createObjectLiteralExpression(E(t.elements,n)),t),t):nt(t,uF)}function o(n){return cF(n)?hw(xI(e.createArrayLiteralExpression(E(n.elements,t)),n),n):nt(n,_F)}function a(e){return k_(e)?r(e):nt(e,V_)}}var YC,ZC={convertToFunctionBlock:ut,convertToFunctionExpression:ut,convertToClassExpression:ut,convertToArrayAssignmentElement:ut,convertToObjectAssignmentElement:ut,convertToAssignmentPattern:ut,convertToObjectAssignmentPattern:ut,convertToArrayAssignmentPattern:ut,convertToAssignmentElementTarget:ut},ew=0,tw=(e=>(e[e.None=0]="None",e[e.NoParenthesizerRules=1]="NoParenthesizerRules",e[e.NoNodeConverters=2]="NoNodeConverters",e[e.NoIndentationOnFreshPropertyAccess=4]="NoIndentationOnFreshPropertyAccess",e[e.NoOriginalNode=8]="NoOriginalNode",e))(tw||{}),nw=[];function rw(e){nw.push(e)}function iw(e,t){const n=8&e?st:hw,r=dt(()=>1&e?XC:GC(b)),i=dt(()=>2&e?ZC:QC(b)),o=pt(e=>(t,n)=>Ot(t,e,n)),a=pt(e=>t=>At(e,t)),s=pt(e=>t=>It(t,e)),c=pt(e=>()=>function(e){return k(e)}(e)),_=pt(e=>t=>dr(e,t)),u=pt(e=>(t,n)=>function(e,t,n){return t.type!==n?Oi(dr(e,n),t):t}(e,t,n)),p=pt(e=>(t,n)=>ur(e,t,n)),f=pt(e=>(t,n)=>function(e,t,n){return t.type!==n?Oi(ur(e,n,t.postfix),t):t}(e,t,n)),m=pt(e=>(t,n)=>Or(e,t,n)),g=pt(e=>(t,n,r)=>function(e,t,n=hr(t),r){return t.tagName!==n||t.comment!==r?Oi(Or(e,n,r),t):t}(e,t,n,r)),h=pt(e=>(t,n,r)=>Lr(e,t,n,r)),y=pt(e=>(t,n,r,i)=>function(e,t,n=hr(t),r,i){return t.tagName!==n||t.typeExpression!==r||t.comment!==i?Oi(Lr(e,n,r,i),t):t}(e,t,n,r,i)),b={get parenthesizer(){return r()},get converters(){return i()},baseFactory:t,flags:e,createNodeArray:x,createNumericLiteral:C,createBigIntLiteral:w,createStringLiteral:D,createStringLiteralFromNode:function(e){const t=N(qh(e),void 0);return t.textSourceNode=e,t},createRegularExpressionLiteral:F,createLiteralLikeNode:function(e,t){switch(e){case 9:return C(t,0);case 10:return w(t);case 11:return D(t,void 0);case 12:return $r(t,!1);case 13:return $r(t,!0);case 14:return F(t);case 15:return zt(e,t,void 0,0)}},createIdentifier:A,createTempVariable:I,createLoopVariable:function(e){let t=2;return e&&(t|=8),P("",t,void 0,void 0)},createUniqueName:function(e,t=0,n,r){return un.assert(!(7&t),"Argument out of range: flags"),un.assert(32!=(48&t),"GeneratedIdentifierFlags.FileLevel cannot be set without also setting GeneratedIdentifierFlags.Optimistic"),P(e,3|t,n,r)},getGeneratedNameForNode:O,createPrivateIdentifier:function(e){return Gt(e,"#")||un.fail("First character of private identifier must be #: "+e),L(fc(e))},createUniquePrivateName:function(e,t,n){return e&&!Gt(e,"#")&&un.fail("First character of private identifier must be #: "+e),j(e??"",8|(e?3:1),t,n)},getGeneratedPrivateNameForNode:function(e,t,n){const r=j(dl(e)?pI(!0,t,e,n,gc):`#generated@${ZB(e)}`,4|(t||n?16:0),t,n);return r.original=e,r},createToken:B,createSuper:function(){return B(108)},createThis:J,createNull:z,createTrue:q,createFalse:U,createModifier:V,createModifiersFromModifierFlags:W,createQualifiedName:H,updateQualifiedName:function(e,t,n){return e.left!==t||e.right!==n?Oi(H(t,n),e):e},createComputedPropertyName:K,updateComputedPropertyName:function(e,t){return e.expression!==t?Oi(K(t),e):e},createTypeParameterDeclaration:G,updateTypeParameterDeclaration:X,createParameterDeclaration:Q,updateParameterDeclaration:Y,createDecorator:Z,updateDecorator:function(e,t){return e.expression!==t?Oi(Z(t),e):e},createPropertySignature:ee,updatePropertySignature:te,createPropertyDeclaration:ne,updatePropertyDeclaration:re,createMethodSignature:oe,updateMethodSignature:ae,createMethodDeclaration:se,updateMethodDeclaration:ce,createConstructorDeclaration:_e,updateConstructorDeclaration:ue,createGetAccessorDeclaration:de,updateGetAccessorDeclaration:pe,createSetAccessorDeclaration:fe,updateSetAccessorDeclaration:me,createCallSignature:ge,updateCallSignature:function(e,t,n,r){return e.typeParameters!==t||e.parameters!==n||e.type!==r?T(ge(t,n,r),e):e},createConstructSignature:he,updateConstructSignature:function(e,t,n,r){return e.typeParameters!==t||e.parameters!==n||e.type!==r?T(he(t,n,r),e):e},createIndexSignature:ve,updateIndexSignature:xe,createClassStaticBlockDeclaration:le,updateClassStaticBlockDeclaration:function(e,t){return e.body!==t?((n=le(t))!==(r=e)&&(n.modifiers=r.modifiers),Oi(n,r)):e;var n,r},createTemplateLiteralTypeSpan:ke,updateTemplateLiteralTypeSpan:function(e,t,n){return e.type!==t||e.literal!==n?Oi(ke(t,n),e):e},createKeywordTypeNode:function(e){return B(e)},createTypePredicateNode:Se,updateTypePredicateNode:function(e,t,n,r){return e.assertsModifier!==t||e.parameterName!==n||e.type!==r?Oi(Se(t,n,r),e):e},createTypeReferenceNode:Te,updateTypeReferenceNode:function(e,t,n){return e.typeName!==t||e.typeArguments!==n?Oi(Te(t,n),e):e},createFunctionTypeNode:Ce,updateFunctionTypeNode:function(e,t,n,r){return e.typeParameters!==t||e.parameters!==n||e.type!==r?((i=Ce(t,n,r))!==(o=e)&&(i.modifiers=o.modifiers),T(i,o)):e;var i,o},createConstructorTypeNode:Ne,updateConstructorTypeNode:function(...e){return 5===e.length?Ee(...e):4===e.length?function(e,t,n,r){return Ee(e,e.modifiers,t,n,r)}(...e):un.fail("Incorrect number of arguments specified.")},createTypeQueryNode:Pe,updateTypeQueryNode:function(e,t,n){return e.exprName!==t||e.typeArguments!==n?Oi(Pe(t,n),e):e},createTypeLiteralNode:Ae,updateTypeLiteralNode:function(e,t){return e.members!==t?Oi(Ae(t),e):e},createArrayTypeNode:Ie,updateArrayTypeNode:function(e,t){return e.elementType!==t?Oi(Ie(t),e):e},createTupleTypeNode:Oe,updateTupleTypeNode:function(e,t){return e.elements!==t?Oi(Oe(t),e):e},createNamedTupleMember:Le,updateNamedTupleMember:function(e,t,n,r,i){return e.dotDotDotToken!==t||e.name!==n||e.questionToken!==r||e.type!==i?Oi(Le(t,n,r,i),e):e},createOptionalTypeNode:je,updateOptionalTypeNode:function(e,t){return e.type!==t?Oi(je(t),e):e},createRestTypeNode:Me,updateRestTypeNode:function(e,t){return e.type!==t?Oi(Me(t),e):e},createUnionTypeNode:function(e){return Re(193,e,r().parenthesizeConstituentTypesOfUnionType)},updateUnionTypeNode:function(e,t){return Be(e,t,r().parenthesizeConstituentTypesOfUnionType)},createIntersectionTypeNode:function(e){return Re(194,e,r().parenthesizeConstituentTypesOfIntersectionType)},updateIntersectionTypeNode:function(e,t){return Be(e,t,r().parenthesizeConstituentTypesOfIntersectionType)},createConditionalTypeNode:Je,updateConditionalTypeNode:function(e,t,n,r,i){return e.checkType!==t||e.extendsType!==n||e.trueType!==r||e.falseType!==i?Oi(Je(t,n,r,i),e):e},createInferTypeNode:ze,updateInferTypeNode:function(e,t){return e.typeParameter!==t?Oi(ze(t),e):e},createImportTypeNode:Ue,updateImportTypeNode:function(e,t,n,r,i,o=e.isTypeOf){return e.argument!==t||e.attributes!==n||e.qualifier!==r||e.typeArguments!==i||e.isTypeOf!==o?Oi(Ue(t,n,r,i,o),e):e},createParenthesizedType:Ve,updateParenthesizedType:function(e,t){return e.type!==t?Oi(Ve(t),e):e},createThisTypeNode:function(){const e=k(198);return e.transformFlags=1,e},createTypeOperatorNode:We,updateTypeOperatorNode:function(e,t){return e.type!==t?Oi(We(e.operator,t),e):e},createIndexedAccessTypeNode:$e,updateIndexedAccessTypeNode:function(e,t,n){return e.objectType!==t||e.indexType!==n?Oi($e(t,n),e):e},createMappedTypeNode:He,updateMappedTypeNode:function(e,t,n,r,i,o,a){return e.readonlyToken!==t||e.typeParameter!==n||e.nameType!==r||e.questionToken!==i||e.type!==o||e.members!==a?Oi(He(t,n,r,i,o,a),e):e},createLiteralTypeNode:Ke,updateLiteralTypeNode:function(e,t){return e.literal!==t?Oi(Ke(t),e):e},createTemplateLiteralType:qe,updateTemplateLiteralType:function(e,t,n){return e.head!==t||e.templateSpans!==n?Oi(qe(t,n),e):e},createObjectBindingPattern:Ge,updateObjectBindingPattern:function(e,t){return e.elements!==t?Oi(Ge(t),e):e},createArrayBindingPattern:Xe,updateArrayBindingPattern:function(e,t){return e.elements!==t?Oi(Xe(t),e):e},createBindingElement:Ye,updateBindingElement:function(e,t,n,r,i){return e.propertyName!==n||e.dotDotDotToken!==t||e.name!==r||e.initializer!==i?Oi(Ye(t,n,r,i),e):e},createArrayLiteralExpression:Ze,updateArrayLiteralExpression:function(e,t){return e.elements!==t?Oi(Ze(t,e.multiLine),e):e},createObjectLiteralExpression:et,updateObjectLiteralExpression:function(e,t){return e.properties!==t?Oi(et(t,e.multiLine),e):e},createPropertyAccessExpression:4&e?(e,t)=>xw(rt(e,t),262144):rt,updatePropertyAccessExpression:function(e,t,n){return fl(e)?at(e,t,e.questionDotToken,nt(n,aD)):e.expression!==t||e.name!==n?Oi(rt(t,n),e):e},createPropertyAccessChain:4&e?(e,t,n)=>xw(it(e,t,n),262144):it,updatePropertyAccessChain:at,createElementAccessExpression:lt,updateElementAccessExpression:function(e,t,n){return ml(e)?ut(e,t,e.questionDotToken,n):e.expression!==t||e.argumentExpression!==n?Oi(lt(t,n),e):e},createElementAccessChain:_t,updateElementAccessChain:ut,createCallExpression:mt,updateCallExpression:function(e,t,n,r){return gl(e)?ht(e,t,e.questionDotToken,n,r):e.expression!==t||e.typeArguments!==n||e.arguments!==r?Oi(mt(t,n,r),e):e},createCallChain:gt,updateCallChain:ht,createNewExpression:yt,updateNewExpression:function(e,t,n,r){return e.expression!==t||e.typeArguments!==n||e.arguments!==r?Oi(yt(t,n,r),e):e},createTaggedTemplateExpression:vt,updateTaggedTemplateExpression:function(e,t,n,r){return e.tag!==t||e.typeArguments!==n||e.template!==r?Oi(vt(t,n,r),e):e},createTypeAssertion:bt,updateTypeAssertion:xt,createParenthesizedExpression:kt,updateParenthesizedExpression:St,createFunctionExpression:Tt,updateFunctionExpression:Ct,createArrowFunction:wt,updateArrowFunction:Nt,createDeleteExpression:Dt,updateDeleteExpression:function(e,t){return e.expression!==t?Oi(Dt(t),e):e},createTypeOfExpression:Ft,updateTypeOfExpression:function(e,t){return e.expression!==t?Oi(Ft(t),e):e},createVoidExpression:Et,updateVoidExpression:function(e,t){return e.expression!==t?Oi(Et(t),e):e},createAwaitExpression:Pt,updateAwaitExpression:function(e,t){return e.expression!==t?Oi(Pt(t),e):e},createPrefixUnaryExpression:At,updatePrefixUnaryExpression:function(e,t){return e.operand!==t?Oi(At(e.operator,t),e):e},createPostfixUnaryExpression:It,updatePostfixUnaryExpression:function(e,t){return e.operand!==t?Oi(It(t,e.operator),e):e},createBinaryExpression:Ot,updateBinaryExpression:function(e,t,n,r){return e.left!==t||e.operatorToken!==n||e.right!==r?Oi(Ot(t,n,r),e):e},createConditionalExpression:jt,updateConditionalExpression:function(e,t,n,r,i,o){return e.condition!==t||e.questionToken!==n||e.whenTrue!==r||e.colonToken!==i||e.whenFalse!==o?Oi(jt(t,n,r,i,o),e):e},createTemplateExpression:Mt,updateTemplateExpression:function(e,t,n){return e.head!==t||e.templateSpans!==n?Oi(Mt(t,n),e):e},createTemplateHead:function(e,t,n){return zt(16,e=Rt(16,e,t,n),t,n)},createTemplateMiddle:function(e,t,n){return zt(17,e=Rt(16,e,t,n),t,n)},createTemplateTail:function(e,t,n){return zt(18,e=Rt(16,e,t,n),t,n)},createNoSubstitutionTemplateLiteral:function(e,t,n){return Jt(15,e=Rt(16,e,t,n),t,n)},createTemplateLiteralLikeNode:zt,createYieldExpression:qt,updateYieldExpression:function(e,t,n){return e.expression!==n||e.asteriskToken!==t?Oi(qt(t,n),e):e},createSpreadElement:Ut,updateSpreadElement:function(e,t){return e.expression!==t?Oi(Ut(t),e):e},createClassExpression:Vt,updateClassExpression:Wt,createOmittedExpression:function(){return k(233)},createExpressionWithTypeArguments:$t,updateExpressionWithTypeArguments:Ht,createAsExpression:Kt,updateAsExpression:Xt,createNonNullExpression:Qt,updateNonNullExpression:Yt,createSatisfiesExpression:Zt,updateSatisfiesExpression:en,createNonNullChain:tn,updateNonNullChain:nn,createMetaProperty:rn,updateMetaProperty:function(e,t){return e.name!==t?Oi(rn(e.keywordToken,t),e):e},createTemplateSpan:on,updateTemplateSpan:function(e,t,n){return e.expression!==t||e.literal!==n?Oi(on(t,n),e):e},createSemicolonClassElement:function(){const e=k(241);return e.transformFlags|=1024,e},createBlock:an,updateBlock:function(e,t){return e.statements!==t?Oi(an(t,e.multiLine),e):e},createVariableStatement:sn,updateVariableStatement:cn,createEmptyStatement:ln,createExpressionStatement:_n,updateExpressionStatement:function(e,t){return e.expression!==t?Oi(_n(t),e):e},createIfStatement:dn,updateIfStatement:function(e,t,n,r){return e.expression!==t||e.thenStatement!==n||e.elseStatement!==r?Oi(dn(t,n,r),e):e},createDoStatement:pn,updateDoStatement:function(e,t,n){return e.statement!==t||e.expression!==n?Oi(pn(t,n),e):e},createWhileStatement:fn,updateWhileStatement:function(e,t,n){return e.expression!==t||e.statement!==n?Oi(fn(t,n),e):e},createForStatement:mn,updateForStatement:function(e,t,n,r,i){return e.initializer!==t||e.condition!==n||e.incrementor!==r||e.statement!==i?Oi(mn(t,n,r,i),e):e},createForInStatement:gn,updateForInStatement:function(e,t,n,r){return e.initializer!==t||e.expression!==n||e.statement!==r?Oi(gn(t,n,r),e):e},createForOfStatement:hn,updateForOfStatement:function(e,t,n,r,i){return e.awaitModifier!==t||e.initializer!==n||e.expression!==r||e.statement!==i?Oi(hn(t,n,r,i),e):e},createContinueStatement:yn,updateContinueStatement:function(e,t){return e.label!==t?Oi(yn(t),e):e},createBreakStatement:vn,updateBreakStatement:function(e,t){return e.label!==t?Oi(vn(t),e):e},createReturnStatement:bn,updateReturnStatement:function(e,t){return e.expression!==t?Oi(bn(t),e):e},createWithStatement:xn,updateWithStatement:function(e,t,n){return e.expression!==t||e.statement!==n?Oi(xn(t,n),e):e},createSwitchStatement:kn,updateSwitchStatement:function(e,t,n){return e.expression!==t||e.caseBlock!==n?Oi(kn(t,n),e):e},createLabeledStatement:Sn,updateLabeledStatement:Tn,createThrowStatement:Cn,updateThrowStatement:function(e,t){return e.expression!==t?Oi(Cn(t),e):e},createTryStatement:wn,updateTryStatement:function(e,t,n,r){return e.tryBlock!==t||e.catchClause!==n||e.finallyBlock!==r?Oi(wn(t,n,r),e):e},createDebuggerStatement:function(){const e=k(260);return e.jsDoc=void 0,e.flowNode=void 0,e},createVariableDeclaration:Nn,updateVariableDeclaration:function(e,t,n,r,i){return e.name!==t||e.type!==r||e.exclamationToken!==n||e.initializer!==i?Oi(Nn(t,n,r,i),e):e},createVariableDeclarationList:Dn,updateVariableDeclarationList:function(e,t){return e.declarations!==t?Oi(Dn(t,e.flags),e):e},createFunctionDeclaration:Fn,updateFunctionDeclaration:En,createClassDeclaration:Pn,updateClassDeclaration:An,createInterfaceDeclaration:In,updateInterfaceDeclaration:On,createTypeAliasDeclaration:Ln,updateTypeAliasDeclaration:jn,createEnumDeclaration:Mn,updateEnumDeclaration:Rn,createModuleDeclaration:Bn,updateModuleDeclaration:Jn,createModuleBlock:zn,updateModuleBlock:function(e,t){return e.statements!==t?Oi(zn(t),e):e},createCaseBlock:qn,updateCaseBlock:function(e,t){return e.clauses!==t?Oi(qn(t),e):e},createNamespaceExportDeclaration:Un,updateNamespaceExportDeclaration:function(e,t){return e.name!==t?((n=Un(t))!==(r=e)&&(n.modifiers=r.modifiers),Oi(n,r)):e;var n,r},createImportEqualsDeclaration:Vn,updateImportEqualsDeclaration:Wn,createImportDeclaration:$n,updateImportDeclaration:Hn,createImportClause:Kn,updateImportClause:function(e,t,n,r){return"boolean"==typeof t&&(t=t?156:void 0),e.phaseModifier!==t||e.name!==n||e.namedBindings!==r?Oi(Kn(t,n,r),e):e},createAssertClause:Gn,updateAssertClause:function(e,t,n){return e.elements!==t||e.multiLine!==n?Oi(Gn(t,n),e):e},createAssertEntry:Xn,updateAssertEntry:function(e,t,n){return e.name!==t||e.value!==n?Oi(Xn(t,n),e):e},createImportTypeAssertionContainer:Qn,updateImportTypeAssertionContainer:function(e,t,n){return e.assertClause!==t||e.multiLine!==n?Oi(Qn(t,n),e):e},createImportAttributes:Yn,updateImportAttributes:function(e,t,n){return e.elements!==t||e.multiLine!==n?Oi(Yn(t,n,e.token),e):e},createImportAttribute:Zn,updateImportAttribute:function(e,t,n){return e.name!==t||e.value!==n?Oi(Zn(t,n),e):e},createNamespaceImport:er,updateNamespaceImport:function(e,t){return e.name!==t?Oi(er(t),e):e},createNamespaceExport:tr,updateNamespaceExport:function(e,t){return e.name!==t?Oi(tr(t),e):e},createNamedImports:nr,updateNamedImports:function(e,t){return e.elements!==t?Oi(nr(t),e):e},createImportSpecifier:rr,updateImportSpecifier:function(e,t,n,r){return e.isTypeOnly!==t||e.propertyName!==n||e.name!==r?Oi(rr(t,n,r),e):e},createExportAssignment:ir,updateExportAssignment:or,createExportDeclaration:ar,updateExportDeclaration:sr,createNamedExports:cr,updateNamedExports:function(e,t){return e.elements!==t?Oi(cr(t),e):e},createExportSpecifier:lr,updateExportSpecifier:function(e,t,n,r){return e.isTypeOnly!==t||e.propertyName!==n||e.name!==r?Oi(lr(t,n,r),e):e},createMissingDeclaration:function(){const e=S(283);return e.jsDoc=void 0,e},createExternalModuleReference:_r,updateExternalModuleReference:function(e,t){return e.expression!==t?Oi(_r(t),e):e},get createJSDocAllType(){return c(313)},get createJSDocUnknownType(){return c(314)},get createJSDocNonNullableType(){return p(316)},get updateJSDocNonNullableType(){return f(316)},get createJSDocNullableType(){return p(315)},get updateJSDocNullableType(){return f(315)},get createJSDocOptionalType(){return _(317)},get updateJSDocOptionalType(){return u(317)},get createJSDocVariadicType(){return _(319)},get updateJSDocVariadicType(){return u(319)},get createJSDocNamepathType(){return _(320)},get updateJSDocNamepathType(){return u(320)},createJSDocFunctionType:pr,updateJSDocFunctionType:function(e,t,n){return e.parameters!==t||e.type!==n?Oi(pr(t,n),e):e},createJSDocTypeLiteral:fr,updateJSDocTypeLiteral:function(e,t,n){return e.jsDocPropertyTags!==t||e.isArrayType!==n?Oi(fr(t,n),e):e},createJSDocTypeExpression:mr,updateJSDocTypeExpression:function(e,t){return e.type!==t?Oi(mr(t),e):e},createJSDocSignature:gr,updateJSDocSignature:function(e,t,n,r){return e.typeParameters!==t||e.parameters!==n||e.type!==r?Oi(gr(t,n,r),e):e},createJSDocTemplateTag:br,updateJSDocTemplateTag:function(e,t=hr(e),n,r,i){return e.tagName!==t||e.constraint!==n||e.typeParameters!==r||e.comment!==i?Oi(br(t,n,r,i),e):e},createJSDocTypedefTag:xr,updateJSDocTypedefTag:function(e,t=hr(e),n,r,i){return e.tagName!==t||e.typeExpression!==n||e.fullName!==r||e.comment!==i?Oi(xr(t,n,r,i),e):e},createJSDocParameterTag:kr,updateJSDocParameterTag:function(e,t=hr(e),n,r,i,o,a){return e.tagName!==t||e.name!==n||e.isBracketed!==r||e.typeExpression!==i||e.isNameFirst!==o||e.comment!==a?Oi(kr(t,n,r,i,o,a),e):e},createJSDocPropertyTag:Sr,updateJSDocPropertyTag:function(e,t=hr(e),n,r,i,o,a){return e.tagName!==t||e.name!==n||e.isBracketed!==r||e.typeExpression!==i||e.isNameFirst!==o||e.comment!==a?Oi(Sr(t,n,r,i,o,a),e):e},createJSDocCallbackTag:Tr,updateJSDocCallbackTag:function(e,t=hr(e),n,r,i){return e.tagName!==t||e.typeExpression!==n||e.fullName!==r||e.comment!==i?Oi(Tr(t,n,r,i),e):e},createJSDocOverloadTag:Cr,updateJSDocOverloadTag:function(e,t=hr(e),n,r){return e.tagName!==t||e.typeExpression!==n||e.comment!==r?Oi(Cr(t,n,r),e):e},createJSDocAugmentsTag:wr,updateJSDocAugmentsTag:function(e,t=hr(e),n,r){return e.tagName!==t||e.class!==n||e.comment!==r?Oi(wr(t,n,r),e):e},createJSDocImplementsTag:Nr,updateJSDocImplementsTag:function(e,t=hr(e),n,r){return e.tagName!==t||e.class!==n||e.comment!==r?Oi(Nr(t,n,r),e):e},createJSDocSeeTag:Dr,updateJSDocSeeTag:function(e,t,n,r){return e.tagName!==t||e.name!==n||e.comment!==r?Oi(Dr(t,n,r),e):e},createJSDocImportTag:Rr,updateJSDocImportTag:function(e,t,n,r,i,o){return e.tagName!==t||e.comment!==o||e.importClause!==n||e.moduleSpecifier!==r||e.attributes!==i?Oi(Rr(t,n,r,i,o),e):e},createJSDocNameReference:Fr,updateJSDocNameReference:function(e,t){return e.name!==t?Oi(Fr(t),e):e},createJSDocMemberName:Er,updateJSDocMemberName:function(e,t,n){return e.left!==t||e.right!==n?Oi(Er(t,n),e):e},createJSDocLink:Pr,updateJSDocLink:function(e,t,n){return e.name!==t?Oi(Pr(t,n),e):e},createJSDocLinkCode:Ar,updateJSDocLinkCode:function(e,t,n){return e.name!==t?Oi(Ar(t,n),e):e},createJSDocLinkPlain:Ir,updateJSDocLinkPlain:function(e,t,n){return e.name!==t?Oi(Ir(t,n),e):e},get createJSDocTypeTag(){return h(345)},get updateJSDocTypeTag(){return y(345)},get createJSDocReturnTag(){return h(343)},get updateJSDocReturnTag(){return y(343)},get createJSDocThisTag(){return h(344)},get updateJSDocThisTag(){return y(344)},get createJSDocAuthorTag(){return m(331)},get updateJSDocAuthorTag(){return g(331)},get createJSDocClassTag(){return m(333)},get updateJSDocClassTag(){return g(333)},get createJSDocPublicTag(){return m(334)},get updateJSDocPublicTag(){return g(334)},get createJSDocPrivateTag(){return m(335)},get updateJSDocPrivateTag(){return g(335)},get createJSDocProtectedTag(){return m(336)},get updateJSDocProtectedTag(){return g(336)},get createJSDocReadonlyTag(){return m(337)},get updateJSDocReadonlyTag(){return g(337)},get createJSDocOverrideTag(){return m(338)},get updateJSDocOverrideTag(){return g(338)},get createJSDocDeprecatedTag(){return m(332)},get updateJSDocDeprecatedTag(){return g(332)},get createJSDocThrowsTag(){return h(350)},get updateJSDocThrowsTag(){return y(350)},get createJSDocSatisfiesTag(){return h(351)},get updateJSDocSatisfiesTag(){return y(351)},createJSDocEnumTag:Mr,updateJSDocEnumTag:function(e,t=hr(e),n,r){return e.tagName!==t||e.typeExpression!==n||e.comment!==r?Oi(Mr(t,n,r),e):e},createJSDocUnknownTag:jr,updateJSDocUnknownTag:function(e,t,n){return e.tagName!==t||e.comment!==n?Oi(jr(t,n),e):e},createJSDocText:Br,updateJSDocText:function(e,t){return e.text!==t?Oi(Br(t),e):e},createJSDocComment:Jr,updateJSDocComment:function(e,t,n){return e.comment!==t||e.tags!==n?Oi(Jr(t,n),e):e},createJsxElement:zr,updateJsxElement:function(e,t,n,r){return e.openingElement!==t||e.children!==n||e.closingElement!==r?Oi(zr(t,n,r),e):e},createJsxSelfClosingElement:qr,updateJsxSelfClosingElement:function(e,t,n,r){return e.tagName!==t||e.typeArguments!==n||e.attributes!==r?Oi(qr(t,n,r),e):e},createJsxOpeningElement:Ur,updateJsxOpeningElement:function(e,t,n,r){return e.tagName!==t||e.typeArguments!==n||e.attributes!==r?Oi(Ur(t,n,r),e):e},createJsxClosingElement:Vr,updateJsxClosingElement:function(e,t){return e.tagName!==t?Oi(Vr(t),e):e},createJsxFragment:Wr,createJsxText:$r,updateJsxText:function(e,t,n){return e.text!==t||e.containsOnlyTriviaWhiteSpaces!==n?Oi($r(t,n),e):e},createJsxOpeningFragment:function(){const e=k(290);return e.transformFlags|=2,e},createJsxJsxClosingFragment:function(){const e=k(291);return e.transformFlags|=2,e},updateJsxFragment:function(e,t,n,r){return e.openingFragment!==t||e.children!==n||e.closingFragment!==r?Oi(Wr(t,n,r),e):e},createJsxAttribute:Hr,updateJsxAttribute:function(e,t,n){return e.name!==t||e.initializer!==n?Oi(Hr(t,n),e):e},createJsxAttributes:Kr,updateJsxAttributes:function(e,t){return e.properties!==t?Oi(Kr(t),e):e},createJsxSpreadAttribute:Gr,updateJsxSpreadAttribute:function(e,t){return e.expression!==t?Oi(Gr(t),e):e},createJsxExpression:Xr,updateJsxExpression:function(e,t){return e.expression!==t?Oi(Xr(e.dotDotDotToken,t),e):e},createJsxNamespacedName:Qr,updateJsxNamespacedName:function(e,t,n){return e.namespace!==t||e.name!==n?Oi(Qr(t,n),e):e},createCaseClause:Yr,updateCaseClause:function(e,t,n){return e.expression!==t||e.statements!==n?Oi(Yr(t,n),e):e},createDefaultClause:Zr,updateDefaultClause:function(e,t){return e.statements!==t?Oi(Zr(t),e):e},createHeritageClause:ei,updateHeritageClause:function(e,t){return e.types!==t?Oi(ei(e.token,t),e):e},createCatchClause:ti,updateCatchClause:function(e,t,n){return e.variableDeclaration!==t||e.block!==n?Oi(ti(t,n),e):e},createPropertyAssignment:ni,updatePropertyAssignment:ri,createShorthandPropertyAssignment:ii,updateShorthandPropertyAssignment:function(e,t,n){return e.name!==t||e.objectAssignmentInitializer!==n?((r=ii(t,n))!==(i=e)&&(r.modifiers=i.modifiers,r.questionToken=i.questionToken,r.exclamationToken=i.exclamationToken,r.equalsToken=i.equalsToken),Oi(r,i)):e;var r,i},createSpreadAssignment:oi,updateSpreadAssignment:function(e,t){return e.expression!==t?Oi(oi(t),e):e},createEnumMember:ai,updateEnumMember:function(e,t,n){return e.name!==t||e.initializer!==n?Oi(ai(t,n),e):e},createSourceFile:function(e,n,r){const i=t.createBaseSourceFileNode(308);return i.statements=x(e),i.endOfFileToken=n,i.flags|=r,i.text="",i.fileName="",i.path="",i.resolvedPath="",i.originalFileName="",i.languageVersion=1,i.languageVariant=0,i.scriptKind=0,i.isDeclarationFile=!1,i.hasNoDefaultLib=!1,i.transformFlags|=_w(i.statements)|lw(i.endOfFileToken),i.locals=void 0,i.nextContainer=void 0,i.endFlowNode=void 0,i.nodeCount=0,i.identifierCount=0,i.symbolCount=0,i.parseDiagnostics=void 0,i.bindDiagnostics=void 0,i.bindSuggestionDiagnostics=void 0,i.lineMap=void 0,i.externalModuleIndicator=void 0,i.setExternalModuleIndicator=void 0,i.pragmas=void 0,i.checkJsDirective=void 0,i.referencedFiles=void 0,i.typeReferenceDirectives=void 0,i.libReferenceDirectives=void 0,i.amdDependencies=void 0,i.commentDirectives=void 0,i.identifiers=void 0,i.packageJsonLocations=void 0,i.packageJsonScope=void 0,i.imports=void 0,i.moduleAugmentations=void 0,i.ambientModuleNames=void 0,i.classifiableNames=void 0,i.impliedNodeFormat=void 0,i},updateSourceFile:function(e,t,n=e.isDeclarationFile,r=e.referencedFiles,i=e.typeReferenceDirectives,o=e.hasNoDefaultLib,a=e.libReferenceDirectives){return e.statements!==t||e.isDeclarationFile!==n||e.referencedFiles!==r||e.typeReferenceDirectives!==i||e.hasNoDefaultLib!==o||e.libReferenceDirectives!==a?Oi(function(e,t,n,r,i,o,a){const s=ci(e);return s.statements=x(t),s.isDeclarationFile=n,s.referencedFiles=r,s.typeReferenceDirectives=i,s.hasNoDefaultLib=o,s.libReferenceDirectives=a,s.transformFlags=_w(s.statements)|lw(s.endOfFileToken),s}(e,t,n,r,i,o,a),e):e},createRedirectedSourceFile:si,createBundle:li,updateBundle:function(e,t){return e.sourceFiles!==t?Oi(li(t),e):e},createSyntheticExpression:function(e,t=!1,n){const r=k(238);return r.type=e,r.isSpread=t,r.tupleNameSource=n,r},createSyntaxList:function(e){const t=k(353);return t._children=e,t},createNotEmittedStatement:function(e){const t=k(354);return t.original=e,xI(t,e),t},createNotEmittedTypeElement:function(){return k(355)},createPartiallyEmittedExpression:_i,updatePartiallyEmittedExpression:ui,createCommaListExpression:pi,updateCommaListExpression:function(e,t){return e.elements!==t?Oi(pi(t),e):e},createSyntheticReferenceExpression:fi,updateSyntheticReferenceExpression:function(e,t,n){return e.expression!==t||e.thisArg!==n?Oi(fi(t,n),e):e},cloneNode:mi,get createComma(){return o(28)},get createAssignment(){return o(64)},get createLogicalOr(){return o(57)},get createLogicalAnd(){return o(56)},get createBitwiseOr(){return o(52)},get createBitwiseXor(){return o(53)},get createBitwiseAnd(){return o(51)},get createStrictEquality(){return o(37)},get createStrictInequality(){return o(38)},get createEquality(){return o(35)},get createInequality(){return o(36)},get createLessThan(){return o(30)},get createLessThanEquals(){return o(33)},get createGreaterThan(){return o(32)},get createGreaterThanEquals(){return o(34)},get createLeftShift(){return o(48)},get createRightShift(){return o(49)},get createUnsignedRightShift(){return o(50)},get createAdd(){return o(40)},get createSubtract(){return o(41)},get createMultiply(){return o(42)},get createDivide(){return o(44)},get createModulo(){return o(45)},get createExponent(){return o(43)},get createPrefixPlus(){return a(40)},get createPrefixMinus(){return a(41)},get createPrefixIncrement(){return a(46)},get createPrefixDecrement(){return a(47)},get createBitwiseNot(){return a(55)},get createLogicalNot(){return a(54)},get createPostfixIncrement(){return s(46)},get createPostfixDecrement(){return s(47)},createImmediatelyInvokedFunctionExpression:function(e,t,n){return mt(Tt(void 0,void 0,void 0,void 0,t?[t]:[],void 0,an(e,!0)),void 0,n?[n]:[])},createImmediatelyInvokedArrowFunction:function(e,t,n){return mt(wt(void 0,void 0,t?[t]:[],void 0,void 0,an(e,!0)),void 0,n?[n]:[])},createVoidZero:gi,createExportDefault:function(e){return ir(void 0,!1,e)},createExternalModuleExport:function(e){return ar(void 0,!1,cr([lr(!1,void 0,e)]))},createTypeCheck:function(e,t){return"null"===t?b.createStrictEquality(e,z()):"undefined"===t?b.createStrictEquality(e,gi()):b.createStrictEquality(Ft(e),D(t))},createIsNotTypeCheck:function(e,t){return"null"===t?b.createStrictInequality(e,z()):"undefined"===t?b.createStrictInequality(e,gi()):b.createStrictInequality(Ft(e),D(t))},createMethodCall:hi,createGlobalMethodCall:yi,createFunctionBindCall:function(e,t,n){return hi(e,"bind",[t,...n])},createFunctionCallCall:function(e,t,n){return hi(e,"call",[t,...n])},createFunctionApplyCall:function(e,t,n){return hi(e,"apply",[t,n])},createArraySliceCall:function(e,t){return hi(e,"slice",void 0===t?[]:[Pi(t)])},createArrayConcatCall:function(e,t){return hi(e,"concat",t)},createObjectDefinePropertyCall:function(e,t,n){return yi("Object","defineProperty",[e,Pi(t),n])},createObjectGetOwnPropertyDescriptorCall:function(e,t){return yi("Object","getOwnPropertyDescriptor",[e,Pi(t)])},createReflectGetCall:function(e,t,n){return yi("Reflect","get",n?[e,t,n]:[e,t])},createReflectSetCall:function(e,t,n,r){return yi("Reflect","set",r?[e,t,n,r]:[e,t,n])},createPropertyDescriptor:function(e,t){const n=[];vi(n,"enumerable",Pi(e.enumerable)),vi(n,"configurable",Pi(e.configurable));let r=vi(n,"writable",Pi(e.writable));r=vi(n,"value",e.value)||r;let i=vi(n,"get",e.get);return i=vi(n,"set",e.set)||i,un.assert(!(r&&i),"A PropertyDescriptor may not be both an accessor descriptor and a data descriptor."),et(n,!t)},createCallBinding:function(e,t,n,i=!1){const o=NA(e,63);let a,s;return am(o)?(a=J(),s=o):yD(o)?(a=J(),s=void 0!==n&&n<2?xI(A("_super"),o):o):8192&Zd(o)?(a=gi(),s=r().parenthesizeLeftSideOfAccess(o,!1)):dF(o)?bi(o.expression,i)?(a=I(t),s=rt(xI(b.createAssignment(a,o.expression),o.expression),o.name),xI(s,o)):(a=o.expression,s=o):pF(o)?bi(o.expression,i)?(a=I(t),s=lt(xI(b.createAssignment(a,o.expression),o.expression),o.argumentExpression),xI(s,o)):(a=o.expression,s=o):(a=gi(),s=r().parenthesizeLeftSideOfAccess(e,!1)),{target:s,thisArg:a}},createAssignmentTargetWrapper:function(e,t){return rt(kt(et([fe(void 0,"value",[Q(void 0,void 0,e,void 0,void 0,void 0)],an([_n(t)]))])),"value")},inlineExpressions:function(e){return e.length>10?pi(e):we(e,b.createComma)},getInternalName:function(e,t,n){return xi(e,t,n,98304)},getLocalName:function(e,t,n,r){return xi(e,t,n,32768,r)},getExportName:ki,getDeclarationName:function(e,t,n){return xi(e,t,n)},getNamespaceMemberName:Si,getExternalModuleOrNamespaceExportName:function(e,t,n,r){return e&&Nv(t,32)?Si(e,xi(t),n,r):ki(t,n,r)},restoreOuterExpressions:function e(t,n,r=63){return t&&wA(t,r)&&(!(yF(i=t)&&ey(i)&&ey(Cw(i))&&ey(Pw(i)))||$(Iw(i))||$(jw(i)))?function(e,t){switch(e.kind){case 218:return St(e,t);case 217:return xt(e,e.type,t);case 235:return Xt(e,t,e.type);case 239:return en(e,t,e.type);case 236:return Yt(e,t);case 234:return Ht(e,t,e.typeArguments);case 356:return ui(e,t)}}(t,e(t.expression,n)):n;var i},restoreEnclosingLabel:function e(t,n,r){if(!n)return t;const i=Tn(n,n.label,oE(n.statement)?e(t,n.statement):t);return r&&r(n),i},createUseStrictPrologue:Ci,copyPrologue:function(e,t,n,r){return Ni(e,t,wi(e,t,0,n),r)},copyStandardPrologue:wi,copyCustomPrologue:Ni,ensureUseStrict:function(e){return bA(e)?e:xI(x([Ci(),...e]),e)},liftToBlock:function(e){return un.assert(v(e,fu),"Cannot lift nodes to a Block."),be(e)||an(e)},mergeLexicalEnvironment:function(e,t){if(!$(t))return e;const n=Di(e,pf,0),r=Di(e,mf,n),i=Di(e,hf,r),o=Di(t,pf,0),a=Di(t,mf,o),s=Di(t,hf,a),c=Di(t,ff,s);un.assert(c===t.length,"Expected declarations to be valid standard or custom prologues");const l=Pl(e)?e.slice():e;if(c>s&&l.splice(i,0,...t.slice(s,c)),s>a&&l.splice(r,0,...t.slice(a,s)),a>o&&l.splice(n,0,...t.slice(o,a)),o>0)if(0===n)l.splice(0,0,...t.slice(0,o));else{const r=new Map;for(let t=0;t=0;e--){const n=t[e];r.has(n.expression.text)||l.unshift(n)}}return Pl(e)?xI(x(l,e.hasTrailingComma),e):e},replaceModifiers:function(e,t){let n;return n="number"==typeof t?W(t):t,SD(e)?X(e,n,e.name,e.constraint,e.default):TD(e)?Y(e,n,e.dotDotDotToken,e.name,e.questionToken,e.type,e.initializer):JD(e)?Ee(e,n,e.typeParameters,e.parameters,e.type):wD(e)?te(e,n,e.name,e.questionToken,e.type):ND(e)?re(e,n,e.name,e.questionToken??e.exclamationToken,e.type,e.initializer):DD(e)?ae(e,n,e.name,e.questionToken,e.typeParameters,e.parameters,e.type):FD(e)?ce(e,n,e.asteriskToken,e.name,e.questionToken,e.typeParameters,e.parameters,e.type,e.body):PD(e)?ue(e,n,e.parameters,e.body):AD(e)?pe(e,n,e.name,e.parameters,e.type,e.body):ID(e)?me(e,n,e.name,e.parameters,e.body):jD(e)?xe(e,n,e.parameters,e.type):vF(e)?Ct(e,n,e.asteriskToken,e.name,e.typeParameters,e.parameters,e.type,e.body):bF(e)?Nt(e,n,e.typeParameters,e.parameters,e.type,e.equalsGreaterThanToken,e.body):AF(e)?Wt(e,n,e.name,e.typeParameters,e.heritageClauses,e.members):WF(e)?cn(e,n,e.declarationList):uE(e)?En(e,n,e.asteriskToken,e.name,e.typeParameters,e.parameters,e.type,e.body):dE(e)?An(e,n,e.name,e.typeParameters,e.heritageClauses,e.members):pE(e)?On(e,n,e.name,e.typeParameters,e.heritageClauses,e.members):fE(e)?jn(e,n,e.name,e.typeParameters,e.type):mE(e)?Rn(e,n,e.name,e.members):gE(e)?Jn(e,n,e.name,e.body):bE(e)?Wn(e,n,e.isTypeOnly,e.name,e.moduleReference):xE(e)?Hn(e,n,e.importClause,e.moduleSpecifier,e.attributes):AE(e)?or(e,n,e.expression):IE(e)?sr(e,n,e.isTypeOnly,e.exportClause,e.moduleSpecifier,e.attributes):un.assertNever(e)},replaceDecoratorsAndModifiers:function(e,t){return TD(e)?Y(e,t,e.dotDotDotToken,e.name,e.questionToken,e.type,e.initializer):ND(e)?re(e,t,e.name,e.questionToken??e.exclamationToken,e.type,e.initializer):FD(e)?ce(e,t,e.asteriskToken,e.name,e.questionToken,e.typeParameters,e.parameters,e.type,e.body):AD(e)?pe(e,t,e.name,e.parameters,e.type,e.body):ID(e)?me(e,t,e.name,e.parameters,e.body):AF(e)?Wt(e,t,e.name,e.typeParameters,e.heritageClauses,e.members):dE(e)?An(e,t,e.name,e.typeParameters,e.heritageClauses,e.members):un.assertNever(e)},replacePropertyName:function(e,t){switch(e.kind){case 178:return pe(e,e.modifiers,t,e.parameters,e.type,e.body);case 179:return me(e,e.modifiers,t,e.parameters,e.body);case 175:return ce(e,e.modifiers,e.asteriskToken,t,e.questionToken,e.typeParameters,e.parameters,e.type,e.body);case 174:return ae(e,e.modifiers,t,e.questionToken,e.typeParameters,e.parameters,e.type);case 173:return re(e,e.modifiers,t,e.questionToken??e.exclamationToken,e.type,e.initializer);case 172:return te(e,e.modifiers,t,e.questionToken,e.type);case 304:return ri(e,t,e.initializer)}}};return d(nw,e=>e(b)),b;function x(e,t){if(void 0===e||e===l)e=[];else if(Pl(e)){if(void 0===t||e.hasTrailingComma===t)return void 0===e.transformFlags&&uw(e),un.attachNodeArrayDebugInfo(e),e;const n=e.slice();return n.pos=e.pos,n.end=e.end,n.hasTrailingComma=t,n.transformFlags=e.transformFlags,un.attachNodeArrayDebugInfo(n),n}const n=e.length,r=n>=1&&n<=4?e.slice():e;return r.pos=-1,r.end=-1,r.hasTrailingComma=!!t,r.transformFlags=0,uw(r),un.attachNodeArrayDebugInfo(r),r}function k(e){return t.createBaseNode(e)}function S(e){const t=k(e);return t.symbol=void 0,t.localSymbol=void 0,t}function T(e,t){return e!==t&&(e.typeArguments=t.typeArguments),Oi(e,t)}function C(e,t=0){const n="number"==typeof e?e+"":e;un.assert(45!==n.charCodeAt(0),"Negative numbers should be created in combination with createPrefixUnaryExpression");const r=S(9);return r.text=n,r.numericLiteralFlags=t,384&t&&(r.transformFlags|=1024),r}function w(e){const t=R(10);return t.text="string"==typeof e?e:gT(e)+"n",t.transformFlags|=32,t}function N(e,t){const n=S(11);return n.text=e,n.singleQuote=t,n}function D(e,t,n){const r=N(e,t);return r.hasExtendedUnicodeEscape=n,n&&(r.transformFlags|=1024),r}function F(e){const t=R(14);return t.text=e,t}function E(e){const n=t.createBaseIdentifierNode(80);return n.escapedText=e,n.jsDoc=void 0,n.flowNode=void 0,n.symbol=void 0,n}function P(e,t,n,r){const i=E(fc(e));return eN(i,{flags:t,id:ew,prefix:n,suffix:r}),ew++,i}function A(e,t,n){void 0===t&&e&&(t=Ea(e)),80===t&&(t=void 0);const r=E(fc(e));return n&&(r.flags|=256),"await"===r.escapedText&&(r.transformFlags|=67108864),256&r.flags&&(r.transformFlags|=1024),r}function I(e,t,n,r){let i=1;t&&(i|=8);const o=P("",i,n,r);return e&&e(o),o}function O(e,t=0,n,r){un.assert(!(7&t),"Argument out of range: flags"),(n||r)&&(t|=16);const i=P(e?dl(e)?pI(!1,n,e,r,gc):`generated@${ZB(e)}`:"",4|t,n,r);return i.original=e,i}function L(e){const n=t.createBasePrivateIdentifierNode(81);return n.escapedText=e,n.transformFlags|=16777216,n}function j(e,t,n,r){const i=L(fc(e));return eN(i,{flags:t,id:ew,prefix:n,suffix:r}),ew++,i}function R(e){return t.createBaseTokenNode(e)}function B(e){un.assert(e>=0&&e<=166,"Invalid token"),un.assert(e<=15||e>=18,"Invalid token. Use 'createTemplateLiteralLikeNode' to create template literals."),un.assert(e<=9||e>=15,"Invalid token. Use 'createLiteralLikeNode' to create literals."),un.assert(80!==e,"Invalid token. Use 'createIdentifier' to create identifiers");const t=R(e);let n=0;switch(e){case 134:n=384;break;case 160:n=4;break;case 125:case 123:case 124:case 148:case 128:case 138:case 87:case 133:case 150:case 163:case 146:case 151:case 103:case 147:case 164:case 154:case 136:case 155:case 116:case 159:case 157:n=1;break;case 108:n=134218752,t.flowNode=void 0;break;case 126:n=1024;break;case 129:n=16777216;break;case 110:n=16384,t.flowNode=void 0}return n&&(t.transformFlags|=n),t}function J(){return B(110)}function z(){return B(106)}function q(){return B(112)}function U(){return B(97)}function V(e){return B(e)}function W(e){const t=[];return 32&e&&t.push(V(95)),128&e&&t.push(V(138)),2048&e&&t.push(V(90)),4096&e&&t.push(V(87)),1&e&&t.push(V(125)),2&e&&t.push(V(123)),4&e&&t.push(V(124)),64&e&&t.push(V(128)),256&e&&t.push(V(126)),16&e&&t.push(V(164)),8&e&&t.push(V(148)),512&e&&t.push(V(129)),1024&e&&t.push(V(134)),8192&e&&t.push(V(103)),16384&e&&t.push(V(147)),t.length?t:void 0}function H(e,t){const n=k(167);return n.left=e,n.right=Ei(t),n.transformFlags|=lw(n.left)|cw(n.right),n.flowNode=void 0,n}function K(e){const t=k(168);return t.expression=r().parenthesizeExpressionOfComputedPropertyName(e),t.transformFlags|=132096|lw(t.expression),t}function G(e,t,n,r){const i=S(169);return i.modifiers=Fi(e),i.name=Ei(t),i.constraint=n,i.default=r,i.transformFlags=1,i.expression=void 0,i.jsDoc=void 0,i}function X(e,t,n,r,i){return e.modifiers!==t||e.name!==n||e.constraint!==r||e.default!==i?Oi(G(t,n,r,i),e):e}function Q(e,t,n,r,i,o){const a=S(170);return a.modifiers=Fi(e),a.dotDotDotToken=t,a.name=Ei(n),a.questionToken=r,a.type=i,a.initializer=Ai(o),lv(a.name)?a.transformFlags=1:a.transformFlags=_w(a.modifiers)|lw(a.dotDotDotToken)|sw(a.name)|lw(a.questionToken)|lw(a.initializer)|(a.questionToken??a.type?1:0)|(a.dotDotDotToken??a.initializer?1024:0)|(31&$v(a.modifiers)?8192:0),a.jsDoc=void 0,a}function Y(e,t,n,r,i,o,a){return e.modifiers!==t||e.dotDotDotToken!==n||e.name!==r||e.questionToken!==i||e.type!==o||e.initializer!==a?Oi(Q(t,n,r,i,o,a),e):e}function Z(e){const t=k(171);return t.expression=r().parenthesizeLeftSideOfAccess(e,!1),t.transformFlags|=33562625|lw(t.expression),t}function ee(e,t,n,r){const i=S(172);return i.modifiers=Fi(e),i.name=Ei(t),i.type=r,i.questionToken=n,i.transformFlags=1,i.initializer=void 0,i.jsDoc=void 0,i}function te(e,t,n,r,i){return e.modifiers!==t||e.name!==n||e.questionToken!==r||e.type!==i?((o=ee(t,n,r,i))!==(a=e)&&(o.initializer=a.initializer),Oi(o,a)):e;var o,a}function ne(e,t,n,r,i){const o=S(173);o.modifiers=Fi(e),o.name=Ei(t),o.questionToken=n&&nD(n)?n:void 0,o.exclamationToken=n&&tD(n)?n:void 0,o.type=r,o.initializer=Ai(i);const a=33554432&o.flags||128&$v(o.modifiers);return o.transformFlags=_w(o.modifiers)|sw(o.name)|lw(o.initializer)|(a||o.questionToken||o.exclamationToken||o.type?1:0)|(kD(o.name)||256&$v(o.modifiers)&&o.initializer?8192:0)|16777216,o.jsDoc=void 0,o}function re(e,t,n,r,i,o){return e.modifiers!==t||e.name!==n||e.questionToken!==(void 0!==r&&nD(r)?r:void 0)||e.exclamationToken!==(void 0!==r&&tD(r)?r:void 0)||e.type!==i||e.initializer!==o?Oi(ne(t,n,r,i,o),e):e}function oe(e,t,n,r,i,o){const a=S(174);return a.modifiers=Fi(e),a.name=Ei(t),a.questionToken=n,a.typeParameters=Fi(r),a.parameters=Fi(i),a.type=o,a.transformFlags=1,a.jsDoc=void 0,a.locals=void 0,a.nextContainer=void 0,a.typeArguments=void 0,a}function ae(e,t,n,r,i,o,a){return e.modifiers!==t||e.name!==n||e.questionToken!==r||e.typeParameters!==i||e.parameters!==o||e.type!==a?T(oe(t,n,r,i,o,a),e):e}function se(e,t,n,r,i,o,a,s){const c=S(175);if(c.modifiers=Fi(e),c.asteriskToken=t,c.name=Ei(n),c.questionToken=r,c.exclamationToken=void 0,c.typeParameters=Fi(i),c.parameters=x(o),c.type=a,c.body=s,c.body){const e=1024&$v(c.modifiers),t=!!c.asteriskToken,n=e&&t;c.transformFlags=_w(c.modifiers)|lw(c.asteriskToken)|sw(c.name)|lw(c.questionToken)|_w(c.typeParameters)|_w(c.parameters)|lw(c.type)|-67108865&lw(c.body)|(n?128:e?256:t?2048:0)|(c.questionToken||c.typeParameters||c.type?1:0)|1024}else c.transformFlags=1;return c.typeArguments=void 0,c.jsDoc=void 0,c.locals=void 0,c.nextContainer=void 0,c.flowNode=void 0,c.endFlowNode=void 0,c.returnFlowNode=void 0,c}function ce(e,t,n,r,i,o,a,s,c){return e.modifiers!==t||e.asteriskToken!==n||e.name!==r||e.questionToken!==i||e.typeParameters!==o||e.parameters!==a||e.type!==s||e.body!==c?((l=se(t,n,r,i,o,a,s,c))!==(_=e)&&(l.exclamationToken=_.exclamationToken),Oi(l,_)):e;var l,_}function le(e){const t=S(176);return t.body=e,t.transformFlags=16777216|lw(e),t.modifiers=void 0,t.jsDoc=void 0,t.locals=void 0,t.nextContainer=void 0,t.endFlowNode=void 0,t.returnFlowNode=void 0,t}function _e(e,t,n){const r=S(177);return r.modifiers=Fi(e),r.parameters=x(t),r.body=n,r.body?r.transformFlags=_w(r.modifiers)|_w(r.parameters)|-67108865&lw(r.body)|1024:r.transformFlags=1,r.typeParameters=void 0,r.type=void 0,r.typeArguments=void 0,r.jsDoc=void 0,r.locals=void 0,r.nextContainer=void 0,r.endFlowNode=void 0,r.returnFlowNode=void 0,r}function ue(e,t,n,r){return e.modifiers!==t||e.parameters!==n||e.body!==r?((i=_e(t,n,r))!==(o=e)&&(i.typeParameters=o.typeParameters,i.type=o.type),T(i,o)):e;var i,o}function de(e,t,n,r,i){const o=S(178);return o.modifiers=Fi(e),o.name=Ei(t),o.parameters=x(n),o.type=r,o.body=i,o.body?o.transformFlags=_w(o.modifiers)|sw(o.name)|_w(o.parameters)|lw(o.type)|-67108865&lw(o.body)|(o.type?1:0):o.transformFlags=1,o.typeArguments=void 0,o.typeParameters=void 0,o.jsDoc=void 0,o.locals=void 0,o.nextContainer=void 0,o.flowNode=void 0,o.endFlowNode=void 0,o.returnFlowNode=void 0,o}function pe(e,t,n,r,i,o){return e.modifiers!==t||e.name!==n||e.parameters!==r||e.type!==i||e.body!==o?((a=de(t,n,r,i,o))!==(s=e)&&(a.typeParameters=s.typeParameters),T(a,s)):e;var a,s}function fe(e,t,n,r){const i=S(179);return i.modifiers=Fi(e),i.name=Ei(t),i.parameters=x(n),i.body=r,i.body?i.transformFlags=_w(i.modifiers)|sw(i.name)|_w(i.parameters)|-67108865&lw(i.body)|(i.type?1:0):i.transformFlags=1,i.typeArguments=void 0,i.typeParameters=void 0,i.type=void 0,i.jsDoc=void 0,i.locals=void 0,i.nextContainer=void 0,i.flowNode=void 0,i.endFlowNode=void 0,i.returnFlowNode=void 0,i}function me(e,t,n,r,i){return e.modifiers!==t||e.name!==n||e.parameters!==r||e.body!==i?((o=fe(t,n,r,i))!==(a=e)&&(o.typeParameters=a.typeParameters,o.type=a.type),T(o,a)):e;var o,a}function ge(e,t,n){const r=S(180);return r.typeParameters=Fi(e),r.parameters=Fi(t),r.type=n,r.transformFlags=1,r.jsDoc=void 0,r.locals=void 0,r.nextContainer=void 0,r.typeArguments=void 0,r}function he(e,t,n){const r=S(181);return r.typeParameters=Fi(e),r.parameters=Fi(t),r.type=n,r.transformFlags=1,r.jsDoc=void 0,r.locals=void 0,r.nextContainer=void 0,r.typeArguments=void 0,r}function ve(e,t,n){const r=S(182);return r.modifiers=Fi(e),r.parameters=Fi(t),r.type=n,r.transformFlags=1,r.jsDoc=void 0,r.locals=void 0,r.nextContainer=void 0,r.typeArguments=void 0,r}function xe(e,t,n,r){return e.parameters!==n||e.type!==r||e.modifiers!==t?T(ve(t,n,r),e):e}function ke(e,t){const n=k(205);return n.type=e,n.literal=t,n.transformFlags=1,n}function Se(e,t,n){const r=k(183);return r.assertsModifier=e,r.parameterName=Ei(t),r.type=n,r.transformFlags=1,r}function Te(e,t){const n=k(184);return n.typeName=Ei(e),n.typeArguments=t&&r().parenthesizeTypeArguments(x(t)),n.transformFlags=1,n}function Ce(e,t,n){const r=S(185);return r.typeParameters=Fi(e),r.parameters=Fi(t),r.type=n,r.transformFlags=1,r.modifiers=void 0,r.jsDoc=void 0,r.locals=void 0,r.nextContainer=void 0,r.typeArguments=void 0,r}function Ne(...e){return 4===e.length?Fe(...e):3===e.length?function(e,t,n){return Fe(void 0,e,t,n)}(...e):un.fail("Incorrect number of arguments specified.")}function Fe(e,t,n,r){const i=S(186);return i.modifiers=Fi(e),i.typeParameters=Fi(t),i.parameters=Fi(n),i.type=r,i.transformFlags=1,i.jsDoc=void 0,i.locals=void 0,i.nextContainer=void 0,i.typeArguments=void 0,i}function Ee(e,t,n,r,i){return e.modifiers!==t||e.typeParameters!==n||e.parameters!==r||e.type!==i?T(Ne(t,n,r,i),e):e}function Pe(e,t){const n=k(187);return n.exprName=e,n.typeArguments=t&&r().parenthesizeTypeArguments(t),n.transformFlags=1,n}function Ae(e){const t=S(188);return t.members=x(e),t.transformFlags=1,t}function Ie(e){const t=k(189);return t.elementType=r().parenthesizeNonArrayTypeOfPostfixType(e),t.transformFlags=1,t}function Oe(e){const t=k(190);return t.elements=x(r().parenthesizeElementTypesOfTupleType(e)),t.transformFlags=1,t}function Le(e,t,n,r){const i=S(203);return i.dotDotDotToken=e,i.name=t,i.questionToken=n,i.type=r,i.transformFlags=1,i.jsDoc=void 0,i}function je(e){const t=k(191);return t.type=r().parenthesizeTypeOfOptionalType(e),t.transformFlags=1,t}function Me(e){const t=k(192);return t.type=e,t.transformFlags=1,t}function Re(e,t,n){const r=k(e);return r.types=b.createNodeArray(n(t)),r.transformFlags=1,r}function Be(e,t,n){return e.types!==t?Oi(Re(e.kind,t,n),e):e}function Je(e,t,n,i){const o=k(195);return o.checkType=r().parenthesizeCheckTypeOfConditionalType(e),o.extendsType=r().parenthesizeExtendsTypeOfConditionalType(t),o.trueType=n,o.falseType=i,o.transformFlags=1,o.locals=void 0,o.nextContainer=void 0,o}function ze(e){const t=k(196);return t.typeParameter=e,t.transformFlags=1,t}function qe(e,t){const n=k(204);return n.head=e,n.templateSpans=x(t),n.transformFlags=1,n}function Ue(e,t,n,i,o=!1){const a=k(206);return a.argument=e,a.attributes=t,a.assertions&&a.assertions.assertClause&&a.attributes&&(a.assertions.assertClause=a.attributes),a.qualifier=n,a.typeArguments=i&&r().parenthesizeTypeArguments(i),a.isTypeOf=o,a.transformFlags=1,a}function Ve(e){const t=k(197);return t.type=e,t.transformFlags=1,t}function We(e,t){const n=k(199);return n.operator=e,n.type=148===e?r().parenthesizeOperandOfReadonlyTypeOperator(t):r().parenthesizeOperandOfTypeOperator(t),n.transformFlags=1,n}function $e(e,t){const n=k(200);return n.objectType=r().parenthesizeNonArrayTypeOfPostfixType(e),n.indexType=t,n.transformFlags=1,n}function He(e,t,n,r,i,o){const a=S(201);return a.readonlyToken=e,a.typeParameter=t,a.nameType=n,a.questionToken=r,a.type=i,a.members=o&&x(o),a.transformFlags=1,a.locals=void 0,a.nextContainer=void 0,a}function Ke(e){const t=k(202);return t.literal=e,t.transformFlags=1,t}function Ge(e){const t=k(207);return t.elements=x(e),t.transformFlags|=525312|_w(t.elements),32768&t.transformFlags&&(t.transformFlags|=65664),t}function Xe(e){const t=k(208);return t.elements=x(e),t.transformFlags|=525312|_w(t.elements),t}function Ye(e,t,n,r){const i=S(209);return i.dotDotDotToken=e,i.propertyName=Ei(t),i.name=Ei(n),i.initializer=Ai(r),i.transformFlags|=lw(i.dotDotDotToken)|sw(i.propertyName)|sw(i.name)|lw(i.initializer)|(i.dotDotDotToken?32768:0)|1024,i.flowNode=void 0,i}function Ze(e,t){const n=k(210),i=e&&ye(e),o=x(e,!(!i||!IF(i))||void 0);return n.elements=r().parenthesizeExpressionsOfCommaDelimitedList(o),n.multiLine=t,n.transformFlags|=_w(n.elements),n}function et(e,t){const n=S(211);return n.properties=x(e),n.multiLine=t,n.transformFlags|=_w(n.properties),n.jsDoc=void 0,n}function tt(e,t,n){const r=S(212);return r.expression=e,r.questionDotToken=t,r.name=n,r.transformFlags=lw(r.expression)|lw(r.questionDotToken)|(aD(r.name)?cw(r.name):536870912|lw(r.name)),r.jsDoc=void 0,r.flowNode=void 0,r}function rt(e,t){const n=tt(r().parenthesizeLeftSideOfAccess(e,!1),void 0,Ei(t));return yD(e)&&(n.transformFlags|=384),n}function it(e,t,n){const i=tt(r().parenthesizeLeftSideOfAccess(e,!0),t,Ei(n));return i.flags|=64,i.transformFlags|=32,i}function at(e,t,n,r){return un.assert(!!(64&e.flags),"Cannot update a PropertyAccessExpression using updatePropertyAccessChain. Use updatePropertyAccess instead."),e.expression!==t||e.questionDotToken!==n||e.name!==r?Oi(it(t,n,r),e):e}function ct(e,t,n){const r=S(213);return r.expression=e,r.questionDotToken=t,r.argumentExpression=n,r.transformFlags|=lw(r.expression)|lw(r.questionDotToken)|lw(r.argumentExpression),r.jsDoc=void 0,r.flowNode=void 0,r}function lt(e,t){const n=ct(r().parenthesizeLeftSideOfAccess(e,!1),void 0,Pi(t));return yD(e)&&(n.transformFlags|=384),n}function _t(e,t,n){const i=ct(r().parenthesizeLeftSideOfAccess(e,!0),t,Pi(n));return i.flags|=64,i.transformFlags|=32,i}function ut(e,t,n,r){return un.assert(!!(64&e.flags),"Cannot update a ElementAccessExpression using updateElementAccessChain. Use updateElementAccess instead."),e.expression!==t||e.questionDotToken!==n||e.argumentExpression!==r?Oi(_t(t,n,r),e):e}function ft(e,t,n,r){const i=S(214);return i.expression=e,i.questionDotToken=t,i.typeArguments=n,i.arguments=r,i.transformFlags|=lw(i.expression)|lw(i.questionDotToken)|_w(i.typeArguments)|_w(i.arguments),i.typeArguments&&(i.transformFlags|=1),am(i.expression)&&(i.transformFlags|=16384),i}function mt(e,t,n){const i=ft(r().parenthesizeLeftSideOfAccess(e,!1),void 0,Fi(t),r().parenthesizeExpressionsOfCommaDelimitedList(x(n)));return vD(i.expression)&&(i.transformFlags|=8388608),i}function gt(e,t,n,i){const o=ft(r().parenthesizeLeftSideOfAccess(e,!0),t,Fi(n),r().parenthesizeExpressionsOfCommaDelimitedList(x(i)));return o.flags|=64,o.transformFlags|=32,o}function ht(e,t,n,r,i){return un.assert(!!(64&e.flags),"Cannot update a CallExpression using updateCallChain. Use updateCall instead."),e.expression!==t||e.questionDotToken!==n||e.typeArguments!==r||e.arguments!==i?Oi(gt(t,n,r,i),e):e}function yt(e,t,n){const i=S(215);return i.expression=r().parenthesizeExpressionOfNew(e),i.typeArguments=Fi(t),i.arguments=n?r().parenthesizeExpressionsOfCommaDelimitedList(n):void 0,i.transformFlags|=lw(i.expression)|_w(i.typeArguments)|_w(i.arguments)|32,i.typeArguments&&(i.transformFlags|=1),i}function vt(e,t,n){const i=k(216);return i.tag=r().parenthesizeLeftSideOfAccess(e,!1),i.typeArguments=Fi(t),i.template=n,i.transformFlags|=lw(i.tag)|_w(i.typeArguments)|lw(i.template)|1024,i.typeArguments&&(i.transformFlags|=1),fy(i.template)&&(i.transformFlags|=128),i}function bt(e,t){const n=k(217);return n.expression=r().parenthesizeOperandOfPrefixUnary(t),n.type=e,n.transformFlags|=lw(n.expression)|lw(n.type)|1,n}function xt(e,t,n){return e.type!==t||e.expression!==n?Oi(bt(t,n),e):e}function kt(e){const t=k(218);return t.expression=e,t.transformFlags=lw(t.expression),t.jsDoc=void 0,t}function St(e,t){return e.expression!==t?Oi(kt(t),e):e}function Tt(e,t,n,r,i,o,a){const s=S(219);s.modifiers=Fi(e),s.asteriskToken=t,s.name=Ei(n),s.typeParameters=Fi(r),s.parameters=x(i),s.type=o,s.body=a;const c=1024&$v(s.modifiers),l=!!s.asteriskToken,_=c&&l;return s.transformFlags=_w(s.modifiers)|lw(s.asteriskToken)|sw(s.name)|_w(s.typeParameters)|_w(s.parameters)|lw(s.type)|-67108865&lw(s.body)|(_?128:c?256:l?2048:0)|(s.typeParameters||s.type?1:0)|4194304,s.typeArguments=void 0,s.jsDoc=void 0,s.locals=void 0,s.nextContainer=void 0,s.flowNode=void 0,s.endFlowNode=void 0,s.returnFlowNode=void 0,s}function Ct(e,t,n,r,i,o,a,s){return e.name!==r||e.modifiers!==t||e.asteriskToken!==n||e.typeParameters!==i||e.parameters!==o||e.type!==a||e.body!==s?T(Tt(t,n,r,i,o,a,s),e):e}function wt(e,t,n,i,o,a){const s=S(220);s.modifiers=Fi(e),s.typeParameters=Fi(t),s.parameters=x(n),s.type=i,s.equalsGreaterThanToken=o??B(39),s.body=r().parenthesizeConciseBodyOfArrowFunction(a);const c=1024&$v(s.modifiers);return s.transformFlags=_w(s.modifiers)|_w(s.typeParameters)|_w(s.parameters)|lw(s.type)|lw(s.equalsGreaterThanToken)|-67108865&lw(s.body)|(s.typeParameters||s.type?1:0)|(c?16640:0)|1024,s.typeArguments=void 0,s.jsDoc=void 0,s.locals=void 0,s.nextContainer=void 0,s.flowNode=void 0,s.endFlowNode=void 0,s.returnFlowNode=void 0,s}function Nt(e,t,n,r,i,o,a){return e.modifiers!==t||e.typeParameters!==n||e.parameters!==r||e.type!==i||e.equalsGreaterThanToken!==o||e.body!==a?T(wt(t,n,r,i,o,a),e):e}function Dt(e){const t=k(221);return t.expression=r().parenthesizeOperandOfPrefixUnary(e),t.transformFlags|=lw(t.expression),t}function Ft(e){const t=k(222);return t.expression=r().parenthesizeOperandOfPrefixUnary(e),t.transformFlags|=lw(t.expression),t}function Et(e){const t=k(223);return t.expression=r().parenthesizeOperandOfPrefixUnary(e),t.transformFlags|=lw(t.expression),t}function Pt(e){const t=k(224);return t.expression=r().parenthesizeOperandOfPrefixUnary(e),t.transformFlags|=2097536|lw(t.expression),t}function At(e,t){const n=k(225);return n.operator=e,n.operand=r().parenthesizeOperandOfPrefixUnary(t),n.transformFlags|=lw(n.operand),46!==e&&47!==e||!aD(n.operand)||Wl(n.operand)||hA(n.operand)||(n.transformFlags|=268435456),n}function It(e,t){const n=k(226);return n.operator=t,n.operand=r().parenthesizeOperandOfPostfixUnary(e),n.transformFlags|=lw(n.operand),!aD(n.operand)||Wl(n.operand)||hA(n.operand)||(n.transformFlags|=268435456),n}function Ot(e,t,n){const i=S(227),o="number"==typeof(a=t)?B(a):a;var a;const s=o.kind;return i.left=r().parenthesizeLeftSideOfBinary(s,e),i.operatorToken=o,i.right=r().parenthesizeRightSideOfBinary(s,i.left,n),i.transformFlags|=lw(i.left)|lw(i.operatorToken)|lw(i.right),61===s?i.transformFlags|=32:64===s?uF(i.left)?i.transformFlags|=5248|Lt(i.left):_F(i.left)&&(i.transformFlags|=5120|Lt(i.left)):43===s||68===s?i.transformFlags|=512:Xv(s)&&(i.transformFlags|=16),103===s&&sD(i.left)&&(i.transformFlags|=536870912),i.jsDoc=void 0,i}function Lt(e){return bI(e)?65536:0}function jt(e,t,n,i,o){const a=k(228);return a.condition=r().parenthesizeConditionOfConditionalExpression(e),a.questionToken=t??B(58),a.whenTrue=r().parenthesizeBranchOfConditionalExpression(n),a.colonToken=i??B(59),a.whenFalse=r().parenthesizeBranchOfConditionalExpression(o),a.transformFlags|=lw(a.condition)|lw(a.questionToken)|lw(a.whenTrue)|lw(a.colonToken)|lw(a.whenFalse),a.flowNodeWhenFalse=void 0,a.flowNodeWhenTrue=void 0,a}function Mt(e,t){const n=k(229);return n.head=e,n.templateSpans=x(t),n.transformFlags|=lw(n.head)|_w(n.templateSpans)|1024,n}function Rt(e,t,n,r=0){let i;if(un.assert(!(-7177&r),"Unsupported template flags."),void 0!==n&&n!==t&&(i=function(e,t){switch(YC||(YC=gs(99,!1,0)),e){case 15:YC.setText("`"+t+"`");break;case 16:YC.setText("`"+t+"${");break;case 17:YC.setText("}"+t+"${");break;case 18:YC.setText("}"+t+"`")}let n,r=YC.scan();if(20===r&&(r=YC.reScanTemplateToken(!1)),YC.isUnterminated())return YC.setText(void 0),aw;switch(r){case 15:case 16:case 17:case 18:n=YC.getTokenValue()}return void 0===n||1!==YC.scan()?(YC.setText(void 0),aw):(YC.setText(void 0),n)}(e,n),"object"==typeof i))return un.fail("Invalid raw text");if(void 0===t){if(void 0===i)return un.fail("Arguments 'text' and 'rawText' may not both be undefined.");t=i}else void 0!==i&&un.assert(t===i,"Expected argument 'text' to be the normalized (i.e. 'cooked') version of argument 'rawText'.");return t}function Bt(e){let t=1024;return e&&(t|=128),t}function Jt(e,t,n,r){const i=S(e);return i.text=t,i.rawText=n,i.templateFlags=7176&r,i.transformFlags=Bt(i.templateFlags),i}function zt(e,t,n,r){return 15===e?Jt(e,t,n,r):function(e,t,n,r){const i=R(e);return i.text=t,i.rawText=n,i.templateFlags=7176&r,i.transformFlags=Bt(i.templateFlags),i}(e,t,n,r)}function qt(e,t){un.assert(!e||!!t,"A `YieldExpression` with an asteriskToken must have an expression.");const n=k(230);return n.expression=t&&r().parenthesizeExpressionForDisallowedComma(t),n.asteriskToken=e,n.transformFlags|=lw(n.expression)|lw(n.asteriskToken)|1049728,n}function Ut(e){const t=k(231);return t.expression=r().parenthesizeExpressionForDisallowedComma(e),t.transformFlags|=33792|lw(t.expression),t}function Vt(e,t,n,r,i){const o=S(232);return o.modifiers=Fi(e),o.name=Ei(t),o.typeParameters=Fi(n),o.heritageClauses=Fi(r),o.members=x(i),o.transformFlags|=_w(o.modifiers)|sw(o.name)|_w(o.typeParameters)|_w(o.heritageClauses)|_w(o.members)|(o.typeParameters?1:0)|1024,o.jsDoc=void 0,o}function Wt(e,t,n,r,i,o){return e.modifiers!==t||e.name!==n||e.typeParameters!==r||e.heritageClauses!==i||e.members!==o?Oi(Vt(t,n,r,i,o),e):e}function $t(e,t){const n=k(234);return n.expression=r().parenthesizeLeftSideOfAccess(e,!1),n.typeArguments=t&&r().parenthesizeTypeArguments(t),n.transformFlags|=lw(n.expression)|_w(n.typeArguments)|1024,n}function Ht(e,t,n){return e.expression!==t||e.typeArguments!==n?Oi($t(t,n),e):e}function Kt(e,t){const n=k(235);return n.expression=e,n.type=t,n.transformFlags|=lw(n.expression)|lw(n.type)|1,n}function Xt(e,t,n){return e.expression!==t||e.type!==n?Oi(Kt(t,n),e):e}function Qt(e){const t=k(236);return t.expression=r().parenthesizeLeftSideOfAccess(e,!1),t.transformFlags|=1|lw(t.expression),t}function Yt(e,t){return Tl(e)?nn(e,t):e.expression!==t?Oi(Qt(t),e):e}function Zt(e,t){const n=k(239);return n.expression=e,n.type=t,n.transformFlags|=lw(n.expression)|lw(n.type)|1,n}function en(e,t,n){return e.expression!==t||e.type!==n?Oi(Zt(t,n),e):e}function tn(e){const t=k(236);return t.flags|=64,t.expression=r().parenthesizeLeftSideOfAccess(e,!0),t.transformFlags|=1|lw(t.expression),t}function nn(e,t){return un.assert(!!(64&e.flags),"Cannot update a NonNullExpression using updateNonNullChain. Use updateNonNullExpression instead."),e.expression!==t?Oi(tn(t),e):e}function rn(e,t){const n=k(237);switch(n.keywordToken=e,n.name=t,n.transformFlags|=lw(n.name),e){case 105:n.transformFlags|=1024;break;case 102:n.transformFlags|=32;break;default:return un.assertNever(e)}return n.flowNode=void 0,n}function on(e,t){const n=k(240);return n.expression=e,n.literal=t,n.transformFlags|=lw(n.expression)|lw(n.literal)|1024,n}function an(e,t){const n=k(242);return n.statements=x(e),n.multiLine=t,n.transformFlags|=_w(n.statements),n.jsDoc=void 0,n.locals=void 0,n.nextContainer=void 0,n}function sn(e,t){const n=k(244);return n.modifiers=Fi(e),n.declarationList=Qe(t)?Dn(t):t,n.transformFlags|=_w(n.modifiers)|lw(n.declarationList),128&$v(n.modifiers)&&(n.transformFlags=1),n.jsDoc=void 0,n.flowNode=void 0,n}function cn(e,t,n){return e.modifiers!==t||e.declarationList!==n?Oi(sn(t,n),e):e}function ln(){const e=k(243);return e.jsDoc=void 0,e}function _n(e){const t=k(245);return t.expression=r().parenthesizeExpressionOfExpressionStatement(e),t.transformFlags|=lw(t.expression),t.jsDoc=void 0,t.flowNode=void 0,t}function dn(e,t,n){const r=k(246);return r.expression=e,r.thenStatement=Ii(t),r.elseStatement=Ii(n),r.transformFlags|=lw(r.expression)|lw(r.thenStatement)|lw(r.elseStatement),r.jsDoc=void 0,r.flowNode=void 0,r}function pn(e,t){const n=k(247);return n.statement=Ii(e),n.expression=t,n.transformFlags|=lw(n.statement)|lw(n.expression),n.jsDoc=void 0,n.flowNode=void 0,n}function fn(e,t){const n=k(248);return n.expression=e,n.statement=Ii(t),n.transformFlags|=lw(n.expression)|lw(n.statement),n.jsDoc=void 0,n.flowNode=void 0,n}function mn(e,t,n,r){const i=k(249);return i.initializer=e,i.condition=t,i.incrementor=n,i.statement=Ii(r),i.transformFlags|=lw(i.initializer)|lw(i.condition)|lw(i.incrementor)|lw(i.statement),i.jsDoc=void 0,i.locals=void 0,i.nextContainer=void 0,i.flowNode=void 0,i}function gn(e,t,n){const r=k(250);return r.initializer=e,r.expression=t,r.statement=Ii(n),r.transformFlags|=lw(r.initializer)|lw(r.expression)|lw(r.statement),r.jsDoc=void 0,r.locals=void 0,r.nextContainer=void 0,r.flowNode=void 0,r}function hn(e,t,n,i){const o=k(251);return o.awaitModifier=e,o.initializer=t,o.expression=r().parenthesizeExpressionForDisallowedComma(n),o.statement=Ii(i),o.transformFlags|=lw(o.awaitModifier)|lw(o.initializer)|lw(o.expression)|lw(o.statement)|1024,e&&(o.transformFlags|=128),o.jsDoc=void 0,o.locals=void 0,o.nextContainer=void 0,o.flowNode=void 0,o}function yn(e){const t=k(252);return t.label=Ei(e),t.transformFlags|=4194304|lw(t.label),t.jsDoc=void 0,t.flowNode=void 0,t}function vn(e){const t=k(253);return t.label=Ei(e),t.transformFlags|=4194304|lw(t.label),t.jsDoc=void 0,t.flowNode=void 0,t}function bn(e){const t=k(254);return t.expression=e,t.transformFlags|=4194432|lw(t.expression),t.jsDoc=void 0,t.flowNode=void 0,t}function xn(e,t){const n=k(255);return n.expression=e,n.statement=Ii(t),n.transformFlags|=lw(n.expression)|lw(n.statement),n.jsDoc=void 0,n.flowNode=void 0,n}function kn(e,t){const n=k(256);return n.expression=r().parenthesizeExpressionForDisallowedComma(e),n.caseBlock=t,n.transformFlags|=lw(n.expression)|lw(n.caseBlock),n.jsDoc=void 0,n.flowNode=void 0,n.possiblyExhaustive=!1,n}function Sn(e,t){const n=k(257);return n.label=Ei(e),n.statement=Ii(t),n.transformFlags|=lw(n.label)|lw(n.statement),n.jsDoc=void 0,n.flowNode=void 0,n}function Tn(e,t,n){return e.label!==t||e.statement!==n?Oi(Sn(t,n),e):e}function Cn(e){const t=k(258);return t.expression=e,t.transformFlags|=lw(t.expression),t.jsDoc=void 0,t.flowNode=void 0,t}function wn(e,t,n){const r=k(259);return r.tryBlock=e,r.catchClause=t,r.finallyBlock=n,r.transformFlags|=lw(r.tryBlock)|lw(r.catchClause)|lw(r.finallyBlock),r.jsDoc=void 0,r.flowNode=void 0,r}function Nn(e,t,n,r){const i=S(261);return i.name=Ei(e),i.exclamationToken=t,i.type=n,i.initializer=Ai(r),i.transformFlags|=sw(i.name)|lw(i.initializer)|(i.exclamationToken??i.type?1:0),i.jsDoc=void 0,i}function Dn(e,t=0){const n=k(262);return n.flags|=7&t,n.declarations=x(e),n.transformFlags|=4194304|_w(n.declarations),7&t&&(n.transformFlags|=263168),4&t&&(n.transformFlags|=4),n}function Fn(e,t,n,r,i,o,a){const s=S(263);if(s.modifiers=Fi(e),s.asteriskToken=t,s.name=Ei(n),s.typeParameters=Fi(r),s.parameters=x(i),s.type=o,s.body=a,!s.body||128&$v(s.modifiers))s.transformFlags=1;else{const e=1024&$v(s.modifiers),t=!!s.asteriskToken,n=e&&t;s.transformFlags=_w(s.modifiers)|lw(s.asteriskToken)|sw(s.name)|_w(s.typeParameters)|_w(s.parameters)|lw(s.type)|-67108865&lw(s.body)|(n?128:e?256:t?2048:0)|(s.typeParameters||s.type?1:0)|4194304}return s.typeArguments=void 0,s.jsDoc=void 0,s.locals=void 0,s.nextContainer=void 0,s.endFlowNode=void 0,s.returnFlowNode=void 0,s}function En(e,t,n,r,i,o,a,s){return e.modifiers!==t||e.asteriskToken!==n||e.name!==r||e.typeParameters!==i||e.parameters!==o||e.type!==a||e.body!==s?((c=Fn(t,n,r,i,o,a,s))!==(l=e)&&c.modifiers===l.modifiers&&(c.modifiers=l.modifiers),T(c,l)):e;var c,l}function Pn(e,t,n,r,i){const o=S(264);return o.modifiers=Fi(e),o.name=Ei(t),o.typeParameters=Fi(n),o.heritageClauses=Fi(r),o.members=x(i),128&$v(o.modifiers)?o.transformFlags=1:(o.transformFlags|=_w(o.modifiers)|sw(o.name)|_w(o.typeParameters)|_w(o.heritageClauses)|_w(o.members)|(o.typeParameters?1:0)|1024,8192&o.transformFlags&&(o.transformFlags|=1)),o.jsDoc=void 0,o}function An(e,t,n,r,i,o){return e.modifiers!==t||e.name!==n||e.typeParameters!==r||e.heritageClauses!==i||e.members!==o?Oi(Pn(t,n,r,i,o),e):e}function In(e,t,n,r,i){const o=S(265);return o.modifiers=Fi(e),o.name=Ei(t),o.typeParameters=Fi(n),o.heritageClauses=Fi(r),o.members=x(i),o.transformFlags=1,o.jsDoc=void 0,o}function On(e,t,n,r,i,o){return e.modifiers!==t||e.name!==n||e.typeParameters!==r||e.heritageClauses!==i||e.members!==o?Oi(In(t,n,r,i,o),e):e}function Ln(e,t,n,r){const i=S(266);return i.modifiers=Fi(e),i.name=Ei(t),i.typeParameters=Fi(n),i.type=r,i.transformFlags=1,i.jsDoc=void 0,i.locals=void 0,i.nextContainer=void 0,i}function jn(e,t,n,r,i){return e.modifiers!==t||e.name!==n||e.typeParameters!==r||e.type!==i?Oi(Ln(t,n,r,i),e):e}function Mn(e,t,n){const r=S(267);return r.modifiers=Fi(e),r.name=Ei(t),r.members=x(n),r.transformFlags|=_w(r.modifiers)|lw(r.name)|_w(r.members)|1,r.transformFlags&=-67108865,r.jsDoc=void 0,r}function Rn(e,t,n,r){return e.modifiers!==t||e.name!==n||e.members!==r?Oi(Mn(t,n,r),e):e}function Bn(e,t,n,r=0){const i=S(268);return i.modifiers=Fi(e),i.flags|=2088&r,i.name=t,i.body=n,128&$v(i.modifiers)?i.transformFlags=1:i.transformFlags|=_w(i.modifiers)|lw(i.name)|lw(i.body)|1,i.transformFlags&=-67108865,i.jsDoc=void 0,i.locals=void 0,i.nextContainer=void 0,i}function Jn(e,t,n,r){return e.modifiers!==t||e.name!==n||e.body!==r?Oi(Bn(t,n,r,e.flags),e):e}function zn(e){const t=k(269);return t.statements=x(e),t.transformFlags|=_w(t.statements),t.jsDoc=void 0,t}function qn(e){const t=k(270);return t.clauses=x(e),t.transformFlags|=_w(t.clauses),t.locals=void 0,t.nextContainer=void 0,t}function Un(e){const t=S(271);return t.name=Ei(e),t.transformFlags|=1|cw(t.name),t.modifiers=void 0,t.jsDoc=void 0,t}function Vn(e,t,n,r){const i=S(272);return i.modifiers=Fi(e),i.name=Ei(n),i.isTypeOnly=t,i.moduleReference=r,i.transformFlags|=_w(i.modifiers)|cw(i.name)|lw(i.moduleReference),JE(i.moduleReference)||(i.transformFlags|=1),i.transformFlags&=-67108865,i.jsDoc=void 0,i}function Wn(e,t,n,r,i){return e.modifiers!==t||e.isTypeOnly!==n||e.name!==r||e.moduleReference!==i?Oi(Vn(t,n,r,i),e):e}function $n(e,t,n,r){const i=k(273);return i.modifiers=Fi(e),i.importClause=t,i.moduleSpecifier=n,i.attributes=i.assertClause=r,i.transformFlags|=lw(i.importClause)|lw(i.moduleSpecifier),i.transformFlags&=-67108865,i.jsDoc=void 0,i}function Hn(e,t,n,r,i){return e.modifiers!==t||e.importClause!==n||e.moduleSpecifier!==r||e.attributes!==i?Oi($n(t,n,r,i),e):e}function Kn(e,t,n){const r=S(274);return"boolean"==typeof e&&(e=e?156:void 0),r.isTypeOnly=156===e,r.phaseModifier=e,r.name=t,r.namedBindings=n,r.transformFlags|=lw(r.name)|lw(r.namedBindings),156===e&&(r.transformFlags|=1),r.transformFlags&=-67108865,r}function Gn(e,t){const n=k(301);return n.elements=x(e),n.multiLine=t,n.token=132,n.transformFlags|=4,n}function Xn(e,t){const n=k(302);return n.name=e,n.value=t,n.transformFlags|=4,n}function Qn(e,t){const n=k(303);return n.assertClause=e,n.multiLine=t,n}function Yn(e,t,n){const r=k(301);return r.token=n??118,r.elements=x(e),r.multiLine=t,r.transformFlags|=4,r}function Zn(e,t){const n=k(302);return n.name=e,n.value=t,n.transformFlags|=4,n}function er(e){const t=S(275);return t.name=e,t.transformFlags|=lw(t.name),t.transformFlags&=-67108865,t}function tr(e){const t=S(281);return t.name=e,t.transformFlags|=32|lw(t.name),t.transformFlags&=-67108865,t}function nr(e){const t=k(276);return t.elements=x(e),t.transformFlags|=_w(t.elements),t.transformFlags&=-67108865,t}function rr(e,t,n){const r=S(277);return r.isTypeOnly=e,r.propertyName=t,r.name=n,r.transformFlags|=lw(r.propertyName)|lw(r.name),r.transformFlags&=-67108865,r}function ir(e,t,n){const i=S(278);return i.modifiers=Fi(e),i.isExportEquals=t,i.expression=t?r().parenthesizeRightSideOfBinary(64,void 0,n):r().parenthesizeExpressionOfExportDefault(n),i.transformFlags|=_w(i.modifiers)|lw(i.expression),i.transformFlags&=-67108865,i.jsDoc=void 0,i}function or(e,t,n){return e.modifiers!==t||e.expression!==n?Oi(ir(t,e.isExportEquals,n),e):e}function ar(e,t,n,r,i){const o=S(279);return o.modifiers=Fi(e),o.isTypeOnly=t,o.exportClause=n,o.moduleSpecifier=r,o.attributes=o.assertClause=i,o.transformFlags|=_w(o.modifiers)|lw(o.exportClause)|lw(o.moduleSpecifier),o.transformFlags&=-67108865,o.jsDoc=void 0,o}function sr(e,t,n,r,i,o){return e.modifiers!==t||e.isTypeOnly!==n||e.exportClause!==r||e.moduleSpecifier!==i||e.attributes!==o?((a=ar(t,n,r,i,o))!==(s=e)&&a.modifiers===s.modifiers&&(a.modifiers=s.modifiers),Oi(a,s)):e;var a,s}function cr(e){const t=k(280);return t.elements=x(e),t.transformFlags|=_w(t.elements),t.transformFlags&=-67108865,t}function lr(e,t,n){const r=k(282);return r.isTypeOnly=e,r.propertyName=Ei(t),r.name=Ei(n),r.transformFlags|=lw(r.propertyName)|lw(r.name),r.transformFlags&=-67108865,r.jsDoc=void 0,r}function _r(e){const t=k(284);return t.expression=e,t.transformFlags|=lw(t.expression),t.transformFlags&=-67108865,t}function ur(e,t,n=!1){const i=dr(e,n?t&&r().parenthesizeNonArrayTypeOfPostfixType(t):t);return i.postfix=n,i}function dr(e,t){const n=k(e);return n.type=t,n}function pr(e,t){const n=S(318);return n.parameters=Fi(e),n.type=t,n.transformFlags=_w(n.parameters)|(n.type?1:0),n.jsDoc=void 0,n.locals=void 0,n.nextContainer=void 0,n.typeArguments=void 0,n}function fr(e,t=!1){const n=S(323);return n.jsDocPropertyTags=Fi(e),n.isArrayType=t,n}function mr(e){const t=k(310);return t.type=e,t}function gr(e,t,n){const r=S(324);return r.typeParameters=Fi(e),r.parameters=x(t),r.type=n,r.jsDoc=void 0,r.locals=void 0,r.nextContainer=void 0,r}function hr(e){const t=ow(e.kind);return e.tagName.escapedText===fc(t)?e.tagName:A(t)}function yr(e,t,n){const r=k(e);return r.tagName=t,r.comment=n,r}function vr(e,t,n){const r=S(e);return r.tagName=t,r.comment=n,r}function br(e,t,n,r){const i=yr(346,e??A("template"),r);return i.constraint=t,i.typeParameters=x(n),i}function xr(e,t,n,r){const i=vr(347,e??A("typedef"),r);return i.typeExpression=t,i.fullName=n,i.name=UA(n),i.locals=void 0,i.nextContainer=void 0,i}function kr(e,t,n,r,i,o){const a=vr(342,e??A("param"),o);return a.typeExpression=r,a.name=t,a.isNameFirst=!!i,a.isBracketed=n,a}function Sr(e,t,n,r,i,o){const a=vr(349,e??A("prop"),o);return a.typeExpression=r,a.name=t,a.isNameFirst=!!i,a.isBracketed=n,a}function Tr(e,t,n,r){const i=vr(339,e??A("callback"),r);return i.typeExpression=t,i.fullName=n,i.name=UA(n),i.locals=void 0,i.nextContainer=void 0,i}function Cr(e,t,n){const r=yr(340,e??A("overload"),n);return r.typeExpression=t,r}function wr(e,t,n){const r=yr(329,e??A("augments"),n);return r.class=t,r}function Nr(e,t,n){const r=yr(330,e??A("implements"),n);return r.class=t,r}function Dr(e,t,n){const r=yr(348,e??A("see"),n);return r.name=t,r}function Fr(e){const t=k(311);return t.name=e,t}function Er(e,t){const n=k(312);return n.left=e,n.right=t,n.transformFlags|=lw(n.left)|lw(n.right),n}function Pr(e,t){const n=k(325);return n.name=e,n.text=t,n}function Ar(e,t){const n=k(326);return n.name=e,n.text=t,n}function Ir(e,t){const n=k(327);return n.name=e,n.text=t,n}function Or(e,t,n){return yr(e,t??A(ow(e)),n)}function Lr(e,t,n,r){const i=yr(e,t??A(ow(e)),r);return i.typeExpression=n,i}function jr(e,t){return yr(328,e,t)}function Mr(e,t,n){const r=vr(341,e??A(ow(341)),n);return r.typeExpression=t,r.locals=void 0,r.nextContainer=void 0,r}function Rr(e,t,n,r,i){const o=yr(352,e??A("import"),i);return o.importClause=t,o.moduleSpecifier=n,o.attributes=r,o.comment=i,o}function Br(e){const t=k(322);return t.text=e,t}function Jr(e,t){const n=k(321);return n.comment=e,n.tags=Fi(t),n}function zr(e,t,n){const r=k(285);return r.openingElement=e,r.children=x(t),r.closingElement=n,r.transformFlags|=lw(r.openingElement)|_w(r.children)|lw(r.closingElement)|2,r}function qr(e,t,n){const r=k(286);return r.tagName=e,r.typeArguments=Fi(t),r.attributes=n,r.transformFlags|=lw(r.tagName)|_w(r.typeArguments)|lw(r.attributes)|2,r.typeArguments&&(r.transformFlags|=1),r}function Ur(e,t,n){const r=k(287);return r.tagName=e,r.typeArguments=Fi(t),r.attributes=n,r.transformFlags|=lw(r.tagName)|_w(r.typeArguments)|lw(r.attributes)|2,t&&(r.transformFlags|=1),r}function Vr(e){const t=k(288);return t.tagName=e,t.transformFlags|=2|lw(t.tagName),t}function Wr(e,t,n){const r=k(289);return r.openingFragment=e,r.children=x(t),r.closingFragment=n,r.transformFlags|=lw(r.openingFragment)|_w(r.children)|lw(r.closingFragment)|2,r}function $r(e,t){const n=k(12);return n.text=e,n.containsOnlyTriviaWhiteSpaces=!!t,n.transformFlags|=2,n}function Hr(e,t){const n=S(292);return n.name=e,n.initializer=t,n.transformFlags|=lw(n.name)|lw(n.initializer)|2,n}function Kr(e){const t=S(293);return t.properties=x(e),t.transformFlags|=2|_w(t.properties),t}function Gr(e){const t=k(294);return t.expression=e,t.transformFlags|=2|lw(t.expression),t}function Xr(e,t){const n=k(295);return n.dotDotDotToken=e,n.expression=t,n.transformFlags|=lw(n.dotDotDotToken)|lw(n.expression)|2,n}function Qr(e,t){const n=k(296);return n.namespace=e,n.name=t,n.transformFlags|=lw(n.namespace)|lw(n.name)|2,n}function Yr(e,t){const n=k(297);return n.expression=r().parenthesizeExpressionForDisallowedComma(e),n.statements=x(t),n.transformFlags|=lw(n.expression)|_w(n.statements),n.jsDoc=void 0,n}function Zr(e){const t=k(298);return t.statements=x(e),t.transformFlags=_w(t.statements),t}function ei(e,t){const n=k(299);switch(n.token=e,n.types=x(t),n.transformFlags|=_w(n.types),e){case 96:n.transformFlags|=1024;break;case 119:n.transformFlags|=1;break;default:return un.assertNever(e)}return n}function ti(e,t){const n=k(300);return n.variableDeclaration=function(e){return"string"==typeof e||e&&!lE(e)?Nn(e,void 0,void 0,void 0):e}(e),n.block=t,n.transformFlags|=lw(n.variableDeclaration)|lw(n.block)|(e?0:64),n.locals=void 0,n.nextContainer=void 0,n}function ni(e,t){const n=S(304);return n.name=Ei(e),n.initializer=r().parenthesizeExpressionForDisallowedComma(t),n.transformFlags|=sw(n.name)|lw(n.initializer),n.modifiers=void 0,n.questionToken=void 0,n.exclamationToken=void 0,n.jsDoc=void 0,n}function ri(e,t,n){return e.name!==t||e.initializer!==n?((r=ni(t,n))!==(i=e)&&(r.modifiers=i.modifiers,r.questionToken=i.questionToken,r.exclamationToken=i.exclamationToken),Oi(r,i)):e;var r,i}function ii(e,t){const n=S(305);return n.name=Ei(e),n.objectAssignmentInitializer=t&&r().parenthesizeExpressionForDisallowedComma(t),n.transformFlags|=cw(n.name)|lw(n.objectAssignmentInitializer)|1024,n.equalsToken=void 0,n.modifiers=void 0,n.questionToken=void 0,n.exclamationToken=void 0,n.jsDoc=void 0,n}function oi(e){const t=S(306);return t.expression=r().parenthesizeExpressionForDisallowedComma(e),t.transformFlags|=65664|lw(t.expression),t.jsDoc=void 0,t}function ai(e,t){const n=S(307);return n.name=Ei(e),n.initializer=t&&r().parenthesizeExpressionForDisallowedComma(t),n.transformFlags|=lw(n.name)|lw(n.initializer)|1,n.jsDoc=void 0,n}function si(e){const t=Object.create(e.redirectTarget);return Object.defineProperties(t,{id:{get(){return this.redirectInfo.redirectTarget.id},set(e){this.redirectInfo.redirectTarget.id=e}},symbol:{get(){return this.redirectInfo.redirectTarget.symbol},set(e){this.redirectInfo.redirectTarget.symbol=e}}}),t.redirectInfo=e,t}function ci(e){const r=e.redirectInfo?function(e){const t=si(e.redirectInfo);return t.flags|=-17&e.flags,t.fileName=e.fileName,t.path=e.path,t.resolvedPath=e.resolvedPath,t.originalFileName=e.originalFileName,t.packageJsonLocations=e.packageJsonLocations,t.packageJsonScope=e.packageJsonScope,t.emitNode=void 0,t}(e):function(e){const n=t.createBaseSourceFileNode(308);n.flags|=-17&e.flags;for(const t in e)!De(n,t)&&De(e,t)&&("emitNode"!==t?n[t]=e[t]:n.emitNode=void 0);return n}(e);return n(r,e),r}function li(e){const t=k(309);return t.sourceFiles=e,t.syntheticFileReferences=void 0,t.syntheticTypeReferences=void 0,t.syntheticLibReferences=void 0,t.hasNoDefaultLib=void 0,t}function _i(e,t){const n=k(356);return n.expression=e,n.original=t,n.transformFlags|=1|lw(n.expression),xI(n,t),n}function ui(e,t){return e.expression!==t?Oi(_i(t,e.original),e):e}function di(e){if(ey(e)&&!dc(e)&&!e.original&&!e.emitNode&&!e.id){if(zF(e))return e.elements;if(NF(e)&&QN(e.operatorToken))return[e.left,e.right]}return e}function pi(e){const t=k(357);return t.elements=x(M(e,di)),t.transformFlags|=_w(t.elements),t}function fi(e,t){const n=k(358);return n.expression=e,n.thisArg=t,n.transformFlags|=lw(n.expression)|lw(n.thisArg),n}function mi(e){if(void 0===e)return e;if(sP(e))return ci(e);if(Wl(e))return function(e){const t=E(e.escapedText);return t.flags|=-17&e.flags,t.transformFlags=e.transformFlags,n(t,e),eN(t,{...e.emitNode.autoGenerate}),t}(e);if(aD(e))return function(e){const t=E(e.escapedText);t.flags|=-17&e.flags,t.jsDoc=e.jsDoc,t.flowNode=e.flowNode,t.symbol=e.symbol,t.transformFlags=e.transformFlags,n(t,e);const r=Zw(e);return r&&Yw(t,r),t}(e);if($l(e))return function(e){const t=L(e.escapedText);return t.flags|=-17&e.flags,t.transformFlags=e.transformFlags,n(t,e),eN(t,{...e.emitNode.autoGenerate}),t}(e);if(sD(e))return function(e){const t=L(e.escapedText);return t.flags|=-17&e.flags,t.transformFlags=e.transformFlags,n(t,e),t}(e);const r=Dl(e.kind)?t.createBaseNode(e.kind):t.createBaseTokenNode(e.kind);r.flags|=-17&e.flags,r.transformFlags=e.transformFlags,n(r,e);for(const t in e)!De(r,t)&&De(e,t)&&(r[t]=e[t]);return r}function gi(){return Et(C("0"))}function hi(e,t,n){return gl(e)?gt(it(e,void 0,t),void 0,void 0,n):mt(rt(e,t),void 0,n)}function yi(e,t,n){return hi(A(e),t,n)}function vi(e,t,n){return!!n&&(e.push(ni(t,n)),!0)}function bi(e,t){const n=ah(e);switch(n.kind){case 80:return t;case 110:case 9:case 10:case 11:return!1;case 210:return 0!==n.elements.length;case 211:return n.properties.length>0;default:return!0}}function xi(e,t,n,r=0,i){const o=i?e&&Tc(e):Cc(e);if(o&&aD(o)&&!Wl(o)){const e=DT(xI(mi(o),o),o.parent);return r|=Zd(o),n||(r|=96),t||(r|=3072),r&&xw(e,r),e}return O(e)}function ki(e,t,n){return xi(e,t,n,16384)}function Si(e,t,n,r){const i=rt(e,ey(t)?t:mi(t));xI(i,t);let o=0;return r||(o|=96),n||(o|=3072),o&&xw(i,o),i}function Ti(e){return UN(e.expression)&&"use strict"===e.expression.text}function Ci(){return FA(_n(D("use strict")))}function wi(e,t,n=0,r){un.assert(0===t.length,"Prologue directives should be at the first statement in the target statements array");let i=!1;const o=e.length;for(;n=183&&e<=206)return-2;switch(e){case 214:case 215:case 210:case 207:case 208:return-2147450880;case 268:return-1941676032;case 170:case 217:case 239:case 235:case 356:case 218:case 108:case 212:case 213:default:return-2147483648;case 220:return-2072174592;case 219:case 263:return-1937940480;case 262:return-2146893824;case 264:case 232:return-2147344384;case 177:return-1937948672;case 173:return-2013249536;case 175:case 178:case 179:return-2005057536;case 133:case 150:case 163:case 146:case 154:case 151:case 136:case 155:case 116:case 169:case 172:case 174:case 180:case 181:case 182:case 265:case 266:return-2;case 211:return-2147278848;case 300:return-2147418112}}(e.kind);return Sc(e)&&t_(e.name)?t|134234112&e.name.transformFlags:t}function _w(e){return e?e.transformFlags:0}function uw(e){let t=0;for(const n of e)t|=lw(n);e.transformFlags=t}var dw=KC();function pw(e){return e.flags|=16,e}var fw,mw=iw(4,{createBaseSourceFileNode:e=>pw(dw.createBaseSourceFileNode(e)),createBaseIdentifierNode:e=>pw(dw.createBaseIdentifierNode(e)),createBasePrivateIdentifierNode:e=>pw(dw.createBasePrivateIdentifierNode(e)),createBaseTokenNode:e=>pw(dw.createBaseTokenNode(e)),createBaseNode:e=>pw(dw.createBaseNode(e))});function gw(e,t,n){return new(fw||(fw=Mx.getSourceMapSourceConstructor()))(e,t,n)}function hw(e,t){if(e.original!==t&&(e.original=t,t)){const n=t.emitNode;n&&(e.emitNode=function(e,t){const{flags:n,internalFlags:r,leadingComments:i,trailingComments:o,commentRange:a,sourceMapRange:s,tokenSourceMapRanges:c,constantValue:l,helpers:_,startsOnNewLine:u,snippetElement:d,classThis:p,assignedName:f}=e;if(t||(t={}),n&&(t.flags=n),r&&(t.internalFlags=-9&r),i&&(t.leadingComments=se(i.slice(),t.leadingComments)),o&&(t.trailingComments=se(o.slice(),t.trailingComments)),a&&(t.commentRange=a),s&&(t.sourceMapRange=s),c&&(t.tokenSourceMapRanges=function(e,t){t||(t=[]);for(const n in e)t[n]=e[n];return t}(c,t.tokenSourceMapRanges)),void 0!==l&&(t.constantValue=l),_)for(const e of _)t.helpers=le(t.helpers,e);return void 0!==u&&(t.startsOnNewLine=u),void 0!==d&&(t.snippetElement=d),p&&(t.classThis=p),f&&(t.assignedName=f),t}(n,e.emitNode))}return e}function yw(e){if(e.emitNode)un.assert(!(8&e.emitNode.internalFlags),"Invalid attempt to mutate an immutable node.");else{if(dc(e)){if(308===e.kind)return e.emitNode={annotatedNodes:[e]};yw(vd(pc(vd(e)))??un.fail("Could not determine parsed source file.")).annotatedNodes.push(e)}e.emitNode={}}return e.emitNode}function vw(e){var t,n;const r=null==(n=null==(t=vd(pc(e)))?void 0:t.emitNode)?void 0:n.annotatedNodes;if(r)for(const e of r)e.emitNode=void 0}function bw(e){const t=yw(e);return t.flags|=3072,t.leadingComments=void 0,t.trailingComments=void 0,e}function xw(e,t){return yw(e).flags=t,e}function kw(e,t){const n=yw(e);return n.flags=n.flags|t,e}function Sw(e,t){return yw(e).internalFlags=t,e}function Tw(e,t){const n=yw(e);return n.internalFlags=n.internalFlags|t,e}function Cw(e){var t;return(null==(t=e.emitNode)?void 0:t.sourceMapRange)??e}function ww(e,t){return yw(e).sourceMapRange=t,e}function Nw(e,t){var n,r;return null==(r=null==(n=e.emitNode)?void 0:n.tokenSourceMapRanges)?void 0:r[t]}function Dw(e,t,n){const r=yw(e);return(r.tokenSourceMapRanges??(r.tokenSourceMapRanges=[]))[t]=n,e}function Fw(e){var t;return null==(t=e.emitNode)?void 0:t.startsOnNewLine}function Ew(e,t){return yw(e).startsOnNewLine=t,e}function Pw(e){var t;return(null==(t=e.emitNode)?void 0:t.commentRange)??e}function Aw(e,t){return yw(e).commentRange=t,e}function Iw(e){var t;return null==(t=e.emitNode)?void 0:t.leadingComments}function Ow(e,t){return yw(e).leadingComments=t,e}function Lw(e,t,n,r){return Ow(e,ie(Iw(e),{kind:t,pos:-1,end:-1,hasTrailingNewLine:r,text:n}))}function jw(e){var t;return null==(t=e.emitNode)?void 0:t.trailingComments}function Mw(e,t){return yw(e).trailingComments=t,e}function Rw(e,t,n,r){return Mw(e,ie(jw(e),{kind:t,pos:-1,end:-1,hasTrailingNewLine:r,text:n}))}function Bw(e,t){Ow(e,Iw(t)),Mw(e,jw(t));const n=yw(t);return n.leadingComments=void 0,n.trailingComments=void 0,e}function Jw(e){var t;return null==(t=e.emitNode)?void 0:t.constantValue}function zw(e,t){return yw(e).constantValue=t,e}function qw(e,t){const n=yw(e);return n.helpers=ie(n.helpers,t),e}function Uw(e,t){if($(t)){const n=yw(e);for(const e of t)n.helpers=le(n.helpers,e)}return e}function Vw(e,t){var n;const r=null==(n=e.emitNode)?void 0:n.helpers;return!!r&&zt(r,t)}function Ww(e){var t;return null==(t=e.emitNode)?void 0:t.helpers}function $w(e,t,n){const r=e.emitNode,i=r&&r.helpers;if(!$(i))return;const o=yw(t);let a=0;for(let e=0;e0&&(i[e-a]=t)}a>0&&(i.length-=a)}function Hw(e){var t;return null==(t=e.emitNode)?void 0:t.snippetElement}function Kw(e,t){return yw(e).snippetElement=t,e}function Gw(e){return yw(e).internalFlags|=4,e}function Xw(e,t){return yw(e).typeNode=t,e}function Qw(e){var t;return null==(t=e.emitNode)?void 0:t.typeNode}function Yw(e,t){return yw(e).identifierTypeArguments=t,e}function Zw(e){var t;return null==(t=e.emitNode)?void 0:t.identifierTypeArguments}function eN(e,t){return yw(e).autoGenerate=t,e}function tN(e){var t;return null==(t=e.emitNode)?void 0:t.autoGenerate}function nN(e,t){return yw(e).generatedImportReference=t,e}function rN(e){var t;return null==(t=e.emitNode)?void 0:t.generatedImportReference}var iN=(e=>(e.Field="f",e.Method="m",e.Accessor="a",e))(iN||{});function oN(e){const t=e.factory,n=dt(()=>Sw(t.createTrue(),8)),r=dt(()=>Sw(t.createFalse(),8));return{getUnscopedHelperName:i,createDecorateHelper:function(n,r,o,a){e.requestEmitHelper(cN);const s=[];return s.push(t.createArrayLiteralExpression(n,!0)),s.push(r),o&&(s.push(o),a&&s.push(a)),t.createCallExpression(i("__decorate"),void 0,s)},createMetadataHelper:function(n,r){return e.requestEmitHelper(lN),t.createCallExpression(i("__metadata"),void 0,[t.createStringLiteral(n),r])},createParamHelper:function(n,r,o){return e.requestEmitHelper(_N),xI(t.createCallExpression(i("__param"),void 0,[t.createNumericLiteral(r+""),n]),o)},createESDecorateHelper:function(n,r,o,s,c,l){return e.requestEmitHelper(uN),t.createCallExpression(i("__esDecorate"),void 0,[n??t.createNull(),r??t.createNull(),o,a(s),c,l])},createRunInitializersHelper:function(n,r,o){return e.requestEmitHelper(dN),t.createCallExpression(i("__runInitializers"),void 0,o?[n,r,o]:[n,r])},createAssignHelper:function(n){return yk(e.getCompilerOptions())>=2?t.createCallExpression(t.createPropertyAccessExpression(t.createIdentifier("Object"),"assign"),void 0,n):(e.requestEmitHelper(pN),t.createCallExpression(i("__assign"),void 0,n))},createAwaitHelper:function(n){return e.requestEmitHelper(fN),t.createCallExpression(i("__await"),void 0,[n])},createAsyncGeneratorHelper:function(n,r){return e.requestEmitHelper(fN),e.requestEmitHelper(mN),(n.emitNode||(n.emitNode={})).flags|=1572864,t.createCallExpression(i("__asyncGenerator"),void 0,[r?t.createThis():t.createVoidZero(),t.createIdentifier("arguments"),n])},createAsyncDelegatorHelper:function(n){return e.requestEmitHelper(fN),e.requestEmitHelper(gN),t.createCallExpression(i("__asyncDelegator"),void 0,[n])},createAsyncValuesHelper:function(n){return e.requestEmitHelper(hN),t.createCallExpression(i("__asyncValues"),void 0,[n])},createRestHelper:function(n,r,o,a){e.requestEmitHelper(yN);const s=[];let c=0;for(let e=0;e{let r="";for(let i=0;i= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n return c > 3 && r && Object.defineProperty(target, key, r), r;\n };'},lN={name:"typescript:metadata",importName:"__metadata",scoped:!1,priority:3,text:'\n var __metadata = (this && this.__metadata) || function (k, v) {\n if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);\n };'},_N={name:"typescript:param",importName:"__param",scoped:!1,priority:4,text:"\n var __param = (this && this.__param) || function (paramIndex, decorator) {\n return function (target, key) { decorator(target, key, paramIndex); }\n };"},uN={name:"typescript:esDecorate",importName:"__esDecorate",scoped:!1,priority:2,text:'\n var __esDecorate = (this && this.__esDecorate) || function (ctor, descriptorIn, decorators, contextIn, initializers, extraInitializers) {\n function accept(f) { if (f !== void 0 && typeof f !== "function") throw new TypeError("Function expected"); return f; }\n var kind = contextIn.kind, key = kind === "getter" ? "get" : kind === "setter" ? "set" : "value";\n var target = !descriptorIn && ctor ? contextIn["static"] ? ctor : ctor.prototype : null;\n var descriptor = descriptorIn || (target ? Object.getOwnPropertyDescriptor(target, contextIn.name) : {});\n var _, done = false;\n for (var i = decorators.length - 1; i >= 0; i--) {\n var context = {};\n for (var p in contextIn) context[p] = p === "access" ? {} : contextIn[p];\n for (var p in contextIn.access) context.access[p] = contextIn.access[p];\n context.addInitializer = function (f) { if (done) throw new TypeError("Cannot add initializers after decoration has completed"); extraInitializers.push(accept(f || null)); };\n var result = (0, decorators[i])(kind === "accessor" ? { get: descriptor.get, set: descriptor.set } : descriptor[key], context);\n if (kind === "accessor") {\n if (result === void 0) continue;\n if (result === null || typeof result !== "object") throw new TypeError("Object expected");\n if (_ = accept(result.get)) descriptor.get = _;\n if (_ = accept(result.set)) descriptor.set = _;\n if (_ = accept(result.init)) initializers.unshift(_);\n }\n else if (_ = accept(result)) {\n if (kind === "field") initializers.unshift(_);\n else descriptor[key] = _;\n }\n }\n if (target) Object.defineProperty(target, contextIn.name, descriptor);\n done = true;\n };'},dN={name:"typescript:runInitializers",importName:"__runInitializers",scoped:!1,priority:2,text:"\n var __runInitializers = (this && this.__runInitializers) || function (thisArg, initializers, value) {\n var useValue = arguments.length > 2;\n for (var i = 0; i < initializers.length; i++) {\n value = useValue ? initializers[i].call(thisArg, value) : initializers[i].call(thisArg);\n }\n return useValue ? value : void 0;\n };"},pN={name:"typescript:assign",importName:"__assign",scoped:!1,priority:1,text:"\n var __assign = (this && this.__assign) || function () {\n __assign = Object.assign || function(t) {\n for (var s, i = 1, n = arguments.length; i < n; i++) {\n s = arguments[i];\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))\n t[p] = s[p];\n }\n return t;\n };\n return __assign.apply(this, arguments);\n };"},fN={name:"typescript:await",importName:"__await",scoped:!1,text:"\n var __await = (this && this.__await) || function (v) { return this instanceof __await ? (this.v = v, this) : new __await(v); }"},mN={name:"typescript:asyncGenerator",importName:"__asyncGenerator",scoped:!1,dependencies:[fN],text:'\n var __asyncGenerator = (this && this.__asyncGenerator) || function (thisArg, _arguments, generator) {\n if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");\n var g = generator.apply(thisArg, _arguments || []), i, q = [];\n return i = Object.create((typeof AsyncIterator === "function" ? AsyncIterator : Object).prototype), verb("next"), verb("throw"), verb("return", awaitReturn), i[Symbol.asyncIterator] = function () { return this; }, i;\n function awaitReturn(f) { return function (v) { return Promise.resolve(v).then(f, reject); }; }\n function verb(n, f) { if (g[n]) { i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; if (f) i[n] = f(i[n]); } }\n function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } }\n function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }\n function fulfill(value) { resume("next", value); }\n function reject(value) { resume("throw", value); }\n function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); }\n };'},gN={name:"typescript:asyncDelegator",importName:"__asyncDelegator",scoped:!1,dependencies:[fN],text:'\n var __asyncDelegator = (this && this.__asyncDelegator) || function (o) {\n var i, p;\n return i = {}, verb("next"), verb("throw", function (e) { throw e; }), verb("return"), i[Symbol.iterator] = function () { return this; }, i;\n function verb(n, f) { i[n] = o[n] ? function (v) { return (p = !p) ? { value: __await(o[n](v)), done: false } : f ? f(v) : v; } : f; }\n };'},hN={name:"typescript:asyncValues",importName:"__asyncValues",scoped:!1,text:'\n var __asyncValues = (this && this.__asyncValues) || function (o) {\n if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");\n var m = o[Symbol.asyncIterator], i;\n return m ? m.call(o) : (o = typeof __values === "function" ? __values(o) : o[Symbol.iterator](), i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i);\n function verb(n) { i[n] = o[n] && function (v) { return new Promise(function (resolve, reject) { v = o[n](v), settle(resolve, reject, v.done, v.value); }); }; }\n function settle(resolve, reject, d, v) { Promise.resolve(v).then(function(v) { resolve({ value: v, done: d }); }, reject); }\n };'},yN={name:"typescript:rest",importName:"__rest",scoped:!1,text:'\n var __rest = (this && this.__rest) || function (s, e) {\n var t = {};\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)\n t[p] = s[p];\n if (s != null && typeof Object.getOwnPropertySymbols === "function")\n for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))\n t[p[i]] = s[p[i]];\n }\n return t;\n };'},vN={name:"typescript:awaiter",importName:"__awaiter",scoped:!1,priority:5,text:'\n var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {\n function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\n return new (P || (P = Promise))(function (resolve, reject) {\n function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\n function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }\n function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\n step((generator = generator.apply(thisArg, _arguments || [])).next());\n });\n };'},bN={name:"typescript:extends",importName:"__extends",scoped:!1,priority:0,text:'\n var __extends = (this && this.__extends) || (function () {\n var extendStatics = function (d, b) {\n extendStatics = Object.setPrototypeOf ||\n ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\n function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };\n return extendStatics(d, b);\n };\n\n return function (d, b) {\n if (typeof b !== "function" && b !== null)\n throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");\n extendStatics(d, b);\n function __() { this.constructor = d; }\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n })();'},xN={name:"typescript:makeTemplateObject",importName:"__makeTemplateObject",scoped:!1,priority:0,text:'\n var __makeTemplateObject = (this && this.__makeTemplateObject) || function (cooked, raw) {\n if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; }\n return cooked;\n };'},kN={name:"typescript:read",importName:"__read",scoped:!1,text:'\n var __read = (this && this.__read) || function (o, n) {\n var m = typeof Symbol === "function" && o[Symbol.iterator];\n if (!m) return o;\n var i = m.call(o), r, ar = [], e;\n try {\n while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);\n }\n catch (error) { e = { error: error }; }\n finally {\n try {\n if (r && !r.done && (m = i["return"])) m.call(i);\n }\n finally { if (e) throw e.error; }\n }\n return ar;\n };'},SN={name:"typescript:spreadArray",importName:"__spreadArray",scoped:!1,text:"\n var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {\n if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {\n if (ar || !(i in from)) {\n if (!ar) ar = Array.prototype.slice.call(from, 0, i);\n ar[i] = from[i];\n }\n }\n return to.concat(ar || Array.prototype.slice.call(from));\n };"},TN={name:"typescript:propKey",importName:"__propKey",scoped:!1,text:'\n var __propKey = (this && this.__propKey) || function (x) {\n return typeof x === "symbol" ? x : "".concat(x);\n };'},CN={name:"typescript:setFunctionName",importName:"__setFunctionName",scoped:!1,text:'\n var __setFunctionName = (this && this.__setFunctionName) || function (f, name, prefix) {\n if (typeof name === "symbol") name = name.description ? "[".concat(name.description, "]") : "";\n return Object.defineProperty(f, "name", { configurable: true, value: prefix ? "".concat(prefix, " ", name) : name });\n };'},wN={name:"typescript:values",importName:"__values",scoped:!1,text:'\n var __values = (this && this.__values) || function(o) {\n var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;\n if (m) return m.call(o);\n if (o && typeof o.length === "number") return {\n next: function () {\n if (o && i >= o.length) o = void 0;\n return { value: o && o[i++], done: !o };\n }\n };\n throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");\n };'},NN={name:"typescript:generator",importName:"__generator",scoped:!1,priority:6,text:'\n var __generator = (this && this.__generator) || function (thisArg, body) {\n var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g = Object.create((typeof Iterator === "function" ? Iterator : Object).prototype);\n return g.next = verb(0), g["throw"] = verb(1), g["return"] = verb(2), typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;\n function verb(n) { return function (v) { return step([n, v]); }; }\n function step(op) {\n if (f) throw new TypeError("Generator is already executing.");\n while (g && (g = 0, op[0] && (_ = 0)), _) try {\n if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;\n if (y = 0, t) op = [op[0] & 2, t.value];\n switch (op[0]) {\n case 0: case 1: t = op; break;\n case 4: _.label++; return { value: op[1], done: false };\n case 5: _.label++; y = op[1]; op = [0]; continue;\n case 7: op = _.ops.pop(); _.trys.pop(); continue;\n default:\n if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }\n if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }\n if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }\n if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }\n if (t[2]) _.ops.pop();\n _.trys.pop(); continue;\n }\n op = body.call(thisArg, _);\n } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }\n if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };\n }\n };'},DN={name:"typescript:commonjscreatebinding",importName:"__createBinding",scoped:!1,priority:1,text:'\n var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {\n if (k2 === undefined) k2 = k;\n var desc = Object.getOwnPropertyDescriptor(m, k);\n if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {\n desc = { enumerable: true, get: function() { return m[k]; } };\n }\n Object.defineProperty(o, k2, desc);\n }) : (function(o, m, k, k2) {\n if (k2 === undefined) k2 = k;\n o[k2] = m[k];\n }));'},FN={name:"typescript:commonjsimportstar",importName:"__importStar",scoped:!1,dependencies:[DN,{name:"typescript:commonjscreatevalue",importName:"__setModuleDefault",scoped:!1,priority:1,text:'\n var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {\n Object.defineProperty(o, "default", { enumerable: true, value: v });\n }) : function(o, v) {\n o["default"] = v;\n });'}],priority:2,text:'\n var __importStar = (this && this.__importStar) || (function () {\n var ownKeys = function(o) {\n ownKeys = Object.getOwnPropertyNames || function (o) {\n var ar = [];\n for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;\n return ar;\n };\n return ownKeys(o);\n };\n return function (mod) {\n if (mod && mod.__esModule) return mod;\n var result = {};\n if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);\n __setModuleDefault(result, mod);\n return result;\n };\n })();'},EN={name:"typescript:commonjsimportdefault",importName:"__importDefault",scoped:!1,text:'\n var __importDefault = (this && this.__importDefault) || function (mod) {\n return (mod && mod.__esModule) ? mod : { "default": mod };\n };'},PN={name:"typescript:export-star",importName:"__exportStar",scoped:!1,dependencies:[DN],priority:2,text:'\n var __exportStar = (this && this.__exportStar) || function(m, exports) {\n for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);\n };'},AN={name:"typescript:classPrivateFieldGet",importName:"__classPrivateFieldGet",scoped:!1,text:'\n var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (receiver, state, kind, f) {\n if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");\n if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");\n return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);\n };'},IN={name:"typescript:classPrivateFieldSet",importName:"__classPrivateFieldSet",scoped:!1,text:'\n var __classPrivateFieldSet = (this && this.__classPrivateFieldSet) || function (receiver, state, value, kind, f) {\n if (kind === "m") throw new TypeError("Private method is not writable");\n if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a setter");\n if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot write private member to an object whose class did not declare it");\n return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;\n };'},ON={name:"typescript:classPrivateFieldIn",importName:"__classPrivateFieldIn",scoped:!1,text:'\n var __classPrivateFieldIn = (this && this.__classPrivateFieldIn) || function(state, receiver) {\n if (receiver === null || (typeof receiver !== "object" && typeof receiver !== "function")) throw new TypeError("Cannot use \'in\' operator on non-object");\n return typeof state === "function" ? receiver === state : state.has(receiver);\n };'},LN={name:"typescript:addDisposableResource",importName:"__addDisposableResource",scoped:!1,text:'\n var __addDisposableResource = (this && this.__addDisposableResource) || function (env, value, async) {\n if (value !== null && value !== void 0) {\n if (typeof value !== "object" && typeof value !== "function") throw new TypeError("Object expected.");\n var dispose, inner;\n if (async) {\n if (!Symbol.asyncDispose) throw new TypeError("Symbol.asyncDispose is not defined.");\n dispose = value[Symbol.asyncDispose];\n }\n if (dispose === void 0) {\n if (!Symbol.dispose) throw new TypeError("Symbol.dispose is not defined.");\n dispose = value[Symbol.dispose];\n if (async) inner = dispose;\n }\n if (typeof dispose !== "function") throw new TypeError("Object not disposable.");\n if (inner) dispose = function() { try { inner.call(this); } catch (e) { return Promise.reject(e); } };\n env.stack.push({ value: value, dispose: dispose, async: async });\n }\n else if (async) {\n env.stack.push({ async: true });\n }\n return value;\n };'},jN={name:"typescript:disposeResources",importName:"__disposeResources",scoped:!1,text:'\n var __disposeResources = (this && this.__disposeResources) || (function (SuppressedError) {\n return function (env) {\n function fail(e) {\n env.error = env.hasError ? new SuppressedError(e, env.error, "An error was suppressed during disposal.") : e;\n env.hasError = true;\n }\n var r, s = 0;\n function next() {\n while (r = env.stack.pop()) {\n try {\n if (!r.async && s === 1) return s = 0, env.stack.push(r), Promise.resolve().then(next);\n if (r.dispose) {\n var result = r.dispose.call(r.value);\n if (r.async) return s |= 2, Promise.resolve(result).then(next, function(e) { fail(e); return next(); });\n }\n else s |= 1;\n }\n catch (e) {\n fail(e);\n }\n }\n if (s === 1) return env.hasError ? Promise.reject(env.error) : Promise.resolve();\n if (env.hasError) throw env.error;\n }\n return next();\n };\n })(typeof SuppressedError === "function" ? SuppressedError : function (error, suppressed, message) {\n var e = new Error(message);\n return e.name = "SuppressedError", e.error = error, e.suppressed = suppressed, e;\n });'},MN={name:"typescript:rewriteRelativeImportExtensions",importName:"__rewriteRelativeImportExtension",scoped:!1,text:'\n var __rewriteRelativeImportExtension = (this && this.__rewriteRelativeImportExtension) || function (path, preserveJsx) {\n if (typeof path === "string" && /^\\.\\.?\\//.test(path)) {\n return path.replace(/\\.(tsx)$|((?:\\.d)?)((?:\\.[^./]+?)?)\\.([cm]?)ts$/i, function (m, tsx, d, ext, cm) {\n return tsx ? preserveJsx ? ".jsx" : ".js" : d && (!ext || !cm) ? m : (d + ext + "." + cm.toLowerCase() + "js");\n });\n }\n return path;\n };'},RN={name:"typescript:async-super",scoped:!0,text:sN` + const ${"_superIndex"} = name => super[name];`},BN={name:"typescript:advanced-async-super",scoped:!0,text:sN` const ${"_superIndex"} = (function (geti, seti) { const cache = Object.create(null); return name => cache[name] || (cache[name] = { get value() { return geti(name); }, set value(v) { seti(name, v); } }); - })(name => super[name], (name, value) => super[name] = value);`};function xN(e,t){return GD(e)&&zN(e.expression)&&!!(8192&Qd(e.expression))&&e.expression.escapedText===t}function kN(e){return 9===e.kind}function SN(e){return 10===e.kind}function TN(e){return 11===e.kind}function CN(e){return 12===e.kind}function wN(e){return 14===e.kind}function NN(e){return 15===e.kind}function DN(e){return 16===e.kind}function FN(e){return 17===e.kind}function EN(e){return 18===e.kind}function PN(e){return 26===e.kind}function AN(e){return 28===e.kind}function IN(e){return 40===e.kind}function ON(e){return 41===e.kind}function LN(e){return 42===e.kind}function jN(e){return 54===e.kind}function RN(e){return 58===e.kind}function MN(e){return 59===e.kind}function BN(e){return 29===e.kind}function JN(e){return 39===e.kind}function zN(e){return 80===e.kind}function qN(e){return 81===e.kind}function UN(e){return 95===e.kind}function VN(e){return 90===e.kind}function WN(e){return 134===e.kind}function $N(e){return 131===e.kind}function HN(e){return 135===e.kind}function KN(e){return 148===e.kind}function GN(e){return 126===e.kind}function XN(e){return 128===e.kind}function QN(e){return 164===e.kind}function YN(e){return 129===e.kind}function ZN(e){return 108===e.kind}function eD(e){return 102===e.kind}function tD(e){return 84===e.kind}function nD(e){return 166===e.kind}function rD(e){return 167===e.kind}function iD(e){return 168===e.kind}function oD(e){return 169===e.kind}function aD(e){return 170===e.kind}function sD(e){return 171===e.kind}function cD(e){return 172===e.kind}function lD(e){return 173===e.kind}function _D(e){return 174===e.kind}function uD(e){return 175===e.kind}function dD(e){return 176===e.kind}function pD(e){return 177===e.kind}function fD(e){return 178===e.kind}function mD(e){return 179===e.kind}function gD(e){return 180===e.kind}function hD(e){return 181===e.kind}function yD(e){return 182===e.kind}function vD(e){return 183===e.kind}function bD(e){return 184===e.kind}function xD(e){return 185===e.kind}function kD(e){return 186===e.kind}function SD(e){return 187===e.kind}function TD(e){return 188===e.kind}function CD(e){return 189===e.kind}function wD(e){return 202===e.kind}function ND(e){return 190===e.kind}function DD(e){return 191===e.kind}function FD(e){return 192===e.kind}function ED(e){return 193===e.kind}function PD(e){return 194===e.kind}function AD(e){return 195===e.kind}function ID(e){return 196===e.kind}function OD(e){return 197===e.kind}function LD(e){return 198===e.kind}function jD(e){return 199===e.kind}function RD(e){return 200===e.kind}function MD(e){return 201===e.kind}function BD(e){return 205===e.kind}function JD(e){return 204===e.kind}function zD(e){return 203===e.kind}function qD(e){return 206===e.kind}function UD(e){return 207===e.kind}function VD(e){return 208===e.kind}function WD(e){return 209===e.kind}function $D(e){return 210===e.kind}function HD(e){return 211===e.kind}function KD(e){return 212===e.kind}function GD(e){return 213===e.kind}function XD(e){return 214===e.kind}function QD(e){return 215===e.kind}function YD(e){return 216===e.kind}function ZD(e){return 217===e.kind}function eF(e){return 218===e.kind}function tF(e){return 219===e.kind}function nF(e){return 220===e.kind}function rF(e){return 221===e.kind}function iF(e){return 222===e.kind}function oF(e){return 223===e.kind}function aF(e){return 224===e.kind}function sF(e){return 225===e.kind}function cF(e){return 226===e.kind}function lF(e){return 227===e.kind}function _F(e){return 228===e.kind}function uF(e){return 229===e.kind}function dF(e){return 230===e.kind}function pF(e){return 231===e.kind}function fF(e){return 232===e.kind}function mF(e){return 233===e.kind}function gF(e){return 234===e.kind}function hF(e){return 238===e.kind}function yF(e){return 235===e.kind}function vF(e){return 236===e.kind}function bF(e){return 237===e.kind}function xF(e){return 355===e.kind}function kF(e){return 356===e.kind}function SF(e){return 239===e.kind}function TF(e){return 240===e.kind}function CF(e){return 241===e.kind}function wF(e){return 243===e.kind}function NF(e){return 242===e.kind}function DF(e){return 244===e.kind}function FF(e){return 245===e.kind}function EF(e){return 246===e.kind}function PF(e){return 247===e.kind}function AF(e){return 248===e.kind}function IF(e){return 249===e.kind}function OF(e){return 250===e.kind}function LF(e){return 251===e.kind}function jF(e){return 252===e.kind}function RF(e){return 253===e.kind}function MF(e){return 254===e.kind}function BF(e){return 255===e.kind}function JF(e){return 256===e.kind}function zF(e){return 257===e.kind}function qF(e){return 258===e.kind}function UF(e){return 259===e.kind}function VF(e){return 260===e.kind}function WF(e){return 261===e.kind}function $F(e){return 262===e.kind}function HF(e){return 263===e.kind}function KF(e){return 264===e.kind}function GF(e){return 265===e.kind}function XF(e){return 266===e.kind}function QF(e){return 267===e.kind}function YF(e){return 268===e.kind}function ZF(e){return 269===e.kind}function eE(e){return 270===e.kind}function tE(e){return 271===e.kind}function nE(e){return 272===e.kind}function rE(e){return 273===e.kind}function iE(e){return 302===e.kind}function oE(e){return 300===e.kind}function aE(e){return 301===e.kind}function sE(e){return 300===e.kind}function cE(e){return 301===e.kind}function lE(e){return 274===e.kind}function _E(e){return 280===e.kind}function uE(e){return 275===e.kind}function dE(e){return 276===e.kind}function pE(e){return 277===e.kind}function fE(e){return 278===e.kind}function mE(e){return 279===e.kind}function gE(e){return 281===e.kind}function hE(e){return 80===e.kind||11===e.kind}function yE(e){return 282===e.kind}function vE(e){return 353===e.kind}function bE(e){return 357===e.kind}function xE(e){return 283===e.kind}function kE(e){return 284===e.kind}function SE(e){return 285===e.kind}function TE(e){return 286===e.kind}function CE(e){return 287===e.kind}function wE(e){return 288===e.kind}function NE(e){return 289===e.kind}function DE(e){return 290===e.kind}function FE(e){return 291===e.kind}function EE(e){return 292===e.kind}function PE(e){return 293===e.kind}function AE(e){return 294===e.kind}function IE(e){return 295===e.kind}function OE(e){return 296===e.kind}function LE(e){return 297===e.kind}function jE(e){return 298===e.kind}function RE(e){return 299===e.kind}function ME(e){return 303===e.kind}function BE(e){return 304===e.kind}function JE(e){return 305===e.kind}function zE(e){return 306===e.kind}function qE(e){return 307===e.kind}function UE(e){return 308===e.kind}function VE(e){return 309===e.kind}function WE(e){return 310===e.kind}function $E(e){return 311===e.kind}function HE(e){return 324===e.kind}function KE(e){return 325===e.kind}function GE(e){return 326===e.kind}function XE(e){return 312===e.kind}function QE(e){return 313===e.kind}function YE(e){return 314===e.kind}function ZE(e){return 315===e.kind}function eP(e){return 316===e.kind}function tP(e){return 317===e.kind}function nP(e){return 318===e.kind}function rP(e){return 319===e.kind}function iP(e){return 320===e.kind}function oP(e){return 322===e.kind}function aP(e){return 323===e.kind}function sP(e){return 328===e.kind}function cP(e){return 330===e.kind}function lP(e){return 332===e.kind}function _P(e){return 338===e.kind}function uP(e){return 333===e.kind}function dP(e){return 334===e.kind}function pP(e){return 335===e.kind}function fP(e){return 336===e.kind}function mP(e){return 337===e.kind}function gP(e){return 339===e.kind}function hP(e){return 331===e.kind}function yP(e){return 347===e.kind}function vP(e){return 340===e.kind}function bP(e){return 341===e.kind}function xP(e){return 342===e.kind}function kP(e){return 343===e.kind}function SP(e){return 344===e.kind}function TP(e){return 345===e.kind}function CP(e){return 346===e.kind}function wP(e){return 327===e.kind}function NP(e){return 348===e.kind}function DP(e){return 329===e.kind}function FP(e){return 350===e.kind}function EP(e){return 349===e.kind}function PP(e){return 351===e.kind}function AP(e){return 352===e.kind}var IP,OP=new WeakMap;function LP(e,t){var n;const r=e.kind;return Nl(r)?352===r?e._children:null==(n=OP.get(t))?void 0:n.get(e):l}function jP(e,t,n){352===e.kind&&un.fail("Should not need to re-set the children of a SyntaxList.");let r=OP.get(t);return void 0===r&&(r=new WeakMap,OP.set(t,r)),r.set(e,n),n}function RP(e,t){var n;352===e.kind&&un.fail("Did not expect to unset the children of a SyntaxList."),null==(n=OP.get(t))||n.delete(e)}function MP(e,t){const n=OP.get(e);void 0!==n&&(OP.delete(e),OP.set(t,n))}function BP(e){return e.createExportDeclaration(void 0,!1,e.createNamedExports([]),void 0)}function JP(e,t,n,r){if(rD(n))return nI(e.createElementAccessExpression(t,n.expression),r);{const r=nI(ul(n)?e.createPropertyAccessExpression(t,n):e.createElementAccessExpression(t,n),n);return rw(r,128),r}}function zP(e,t){const n=aI.createIdentifier(e||"React");return wT(n,dc(t)),n}function qP(e,t,n){if(nD(t)){const r=qP(e,t.left,n),i=e.createIdentifier(mc(t.right));return i.escapedText=t.right.escapedText,e.createPropertyAccessExpression(r,i)}return zP(mc(t),n)}function UP(e,t,n,r){return t?qP(e,t,r):e.createPropertyAccessExpression(zP(n,r),"createElement")}function VP(e,t,n,r,i,o){const a=[n];if(r&&a.push(r),i&&i.length>0)if(r||a.push(e.createNull()),i.length>1)for(const e of i)_A(e),a.push(e);else a.push(i[0]);return nI(e.createCallExpression(t,void 0,a),o)}function WP(e,t,n,r,i,o,a){const s=function(e,t,n,r){return t?qP(e,t,r):e.createPropertyAccessExpression(zP(n,r),"Fragment")}(e,n,r,o),c=[s,e.createNull()];if(i&&i.length>0)if(i.length>1)for(const e of i)_A(e),c.push(e);else c.push(i[0]);return nI(e.createCallExpression(UP(e,t,r,o),void 0,c),a)}function $P(e,t,n){if(WF(t)){const r=ge(t.declarations),i=e.updateVariableDeclaration(r,r.name,void 0,void 0,n);return nI(e.createVariableStatement(void 0,e.updateVariableDeclarationList(t,[i])),t)}{const r=nI(e.createAssignment(t,n),t);return nI(e.createExpressionStatement(r),t)}}function HP(e,t){if(nD(t)){const n=HP(e,t.left),r=wT(nI(e.cloneNode(t.right),t.right),t.right.parent);return nI(e.createPropertyAccessExpression(n,r),t)}return wT(nI(e.cloneNode(t),t),t.parent)}function KP(e,t){return zN(t)?e.createStringLiteralFromNode(t):rD(t)?wT(nI(e.cloneNode(t.expression),t.expression),t.expression.parent):wT(nI(e.cloneNode(t),t),t.parent)}function GP(e,t,n,r){switch(n.name&&qN(n.name)&&un.failBadSyntaxKind(n.name,"Private identifiers are not allowed in object literals."),n.kind){case 177:case 178:return function(e,t,n,r,i){const{firstAccessor:o,getAccessor:a,setAccessor:s}=dv(t,n);if(n===o)return nI(e.createObjectDefinePropertyCall(r,KP(e,n.name),e.createPropertyDescriptor({enumerable:e.createFalse(),configurable:!0,get:a&&nI(YC(e.createFunctionExpression(Nc(a),void 0,void 0,void 0,a.parameters,void 0,a.body),a),a),set:s&&nI(YC(e.createFunctionExpression(Nc(s),void 0,void 0,void 0,s.parameters,void 0,s.body),s),s)},!i)),o)}(e,t.properties,n,r,!!t.multiLine);case 303:return function(e,t,n){return YC(nI(e.createAssignment(JP(e,n,t.name,t.name),t.initializer),t),t)}(e,n,r);case 304:return function(e,t,n){return YC(nI(e.createAssignment(JP(e,n,t.name,t.name),e.cloneNode(t.name)),t),t)}(e,n,r);case 174:return function(e,t,n){return YC(nI(e.createAssignment(JP(e,n,t.name,t.name),YC(nI(e.createFunctionExpression(Nc(t),t.asteriskToken,void 0,void 0,t.parameters,void 0,t.body),t),t)),t),t)}(e,n,r)}}function XP(e,t,n,r,i){const o=t.operator;un.assert(46===o||47===o,"Expected 'node' to be a pre- or post-increment or pre- or post-decrement expression");const a=e.createTempVariable(r);nI(n=e.createAssignment(a,n),t.operand);let s=aF(t)?e.createPrefixUnaryExpression(o,a):e.createPostfixUnaryExpression(a,o);return nI(s,t),i&&(s=e.createAssignment(i,s),nI(s,t)),nI(n=e.createComma(n,s),t),sF(t)&&nI(n=e.createComma(n,a),t),n}function QP(e){return!!(65536&Qd(e))}function YP(e){return!!(32768&Qd(e))}function ZP(e){return!!(16384&Qd(e))}function eA(e){return TN(e.expression)&&"use strict"===e.expression.text}function tA(e){for(const t of e){if(!uf(t))break;if(eA(t))return t}}function nA(e){const t=fe(e);return void 0!==t&&uf(t)&&eA(t)}function rA(e){return 226===e.kind&&28===e.operatorToken.kind}function iA(e){return rA(e)||kF(e)}function oA(e){return ZD(e)&&Fm(e)&&!!el(e)}function aA(e){const t=tl(e);return un.assertIsDefined(t),t}function sA(e,t=31){switch(e.kind){case 217:return!(-2147483648&t&&oA(e)||!(1&t));case 216:case 234:case 238:return!!(2&t);case 233:return!!(16&t);case 235:return!!(4&t);case 355:return!!(8&t)}return!1}function cA(e,t=31){for(;sA(e,t);)e=e.expression;return e}function lA(e,t=31){let n=e.parent;for(;sA(n,t);)n=n.parent,un.assert(n);return n}function _A(e){return uw(e,!0)}function uA(e){const t=lc(e,qE),n=t&&t.emitNode;return n&&n.externalHelpersModuleName}function dA(e){const t=lc(e,qE),n=t&&t.emitNode;return!(!n||!n.externalHelpersModuleName&&!n.externalHelpers)}function pA(e,t,n,r,i,o,a){if(r.importHelpers&&mp(n,r)){const s=yk(r),c=SV(n,r),l=function(e){return N(ww(e),(e=>!e.scoped))}(n);if(s>=5&&s<=99||99===c||void 0===c&&200===s){if(l){const r=[];for(const e of l){const t=e.importName;t&&ce(r,t)}if($(r)){r.sort(Ct);const i=e.createNamedImports(E(r,(r=>Td(n,r)?e.createImportSpecifier(!1,void 0,e.createIdentifier(r)):e.createImportSpecifier(!1,e.createIdentifier(r),t.getUnscopedHelperName(r)))));ZC(lc(n,qE)).externalHelpers=!0;const o=e.createImportDeclaration(void 0,e.createImportClause(!1,void 0,i),e.createStringLiteral(qu),void 0);return ow(o,2),o}}}else{const t=function(e,t,n,r,i,o){const a=uA(t);if(a)return a;if($(r)||(i||kk(n)&&o)&&kV(t,n)<4){const n=ZC(lc(t,qE));return n.externalHelpersModuleName||(n.externalHelpersModuleName=e.createUniqueName(qu))}}(e,n,r,l,i,o||a);if(t){const n=e.createImportEqualsDeclaration(void 0,!1,t,e.createExternalModuleReference(e.createStringLiteral(qu)));return ow(n,2),n}}}}function fA(e,t,n){const r=kg(t);if(r&&!Sg(t)&&!Ud(t)){const i=r.name;return 11===i.kind?e.getGeneratedNameForNode(t):Vl(i)?i:e.createIdentifier(qd(n,i)||mc(i))}return 272===t.kind&&t.importClause||278===t.kind&&t.moduleSpecifier?e.getGeneratedNameForNode(t):void 0}function mA(e,t,n,r,i,o){const a=xg(t);if(a&&TN(a))return function(e,t,n,r,i){return gA(n,r.getExternalModuleFileFromDeclaration(e),t,i)}(t,r,e,i,o)||function(e,t,n){const r=n.renamedDependencies&&n.renamedDependencies.get(t.text);return r?e.createStringLiteral(r):void 0}(e,a,n)||e.cloneNode(a)}function gA(e,t,n,r){if(t)return t.moduleName?e.createStringLiteral(t.moduleName):!t.isDeclarationFile&&r.outFile?e.createStringLiteral(Jy(n,t.fileName)):void 0}function hA(e){if(T_(e))return e.initializer;if(ME(e)){const t=e.initializer;return nb(t,!0)?t.right:void 0}return BE(e)?e.objectAssignmentInitializer:nb(e,!0)?e.right:dF(e)?hA(e.expression):void 0}function yA(e){if(T_(e))return e.name;if(!y_(e))return nb(e,!0)?yA(e.left):dF(e)?yA(e.expression):e;switch(e.kind){case 303:return yA(e.initializer);case 304:return e.name;case 305:return yA(e.expression)}}function vA(e){switch(e.kind){case 169:case 208:return e.dotDotDotToken;case 230:case 305:return e}}function bA(e){const t=xA(e);return un.assert(!!t||JE(e),"Invalid property name for binding element."),t}function xA(e){switch(e.kind){case 208:if(e.propertyName){const t=e.propertyName;return qN(t)?un.failBadSyntaxKind(t):rD(t)&&kA(t.expression)?t.expression:t}break;case 303:if(e.name){const t=e.name;return qN(t)?un.failBadSyntaxKind(t):rD(t)&&kA(t.expression)?t.expression:t}break;case 305:return e.name&&qN(e.name)?un.failBadSyntaxKind(e.name):e.name}const t=yA(e);if(t&&e_(t))return t}function kA(e){const t=e.kind;return 11===t||9===t}function SA(e){switch(e.kind){case 206:case 207:case 209:return e.elements;case 210:return e.properties}}function TA(e){if(e){let t=e;for(;;){if(zN(t)||!t.body)return zN(t)?t:t.name;t=t.body}}}function CA(e){const t=e.kind;return 176===t||178===t}function wA(e){const t=e.kind;return 176===t||177===t||178===t}function NA(e){const t=e.kind;return 303===t||304===t||262===t||176===t||181===t||175===t||282===t||243===t||264===t||265===t||266===t||267===t||271===t||272===t||270===t||278===t||277===t}function DA(e){const t=e.kind;return 175===t||303===t||304===t||282===t||270===t}function FA(e){return RN(e)||jN(e)}function EA(e){return zN(e)||OD(e)}function PA(e){return KN(e)||IN(e)||ON(e)}function AA(e){return RN(e)||IN(e)||ON(e)}function IA(e){return zN(e)||TN(e)}function OA(e){return function(e){return 48===e||49===e||50===e}(e)||function(e){return function(e){return 40===e||41===e}(e)||function(e){return function(e){return 43===e}(e)||function(e){return 42===e||44===e||45===e}(e)}(e)}(e)}function LA(e){return function(e){return 56===e||57===e}(e)||function(e){return function(e){return 51===e||52===e||53===e}(e)||function(e){return function(e){return 35===e||37===e||36===e||38===e}(e)||function(e){return function(e){return 30===e||33===e||32===e||34===e||104===e||103===e}(e)||OA(e)}(e)}(e)}(e)}function jA(e){return function(e){return 61===e||LA(e)||Zv(e)}(t=e.kind)||28===t;var t}(e=>{function t(e,n,r,i,o,a,c){const l=n>0?o[n-1]:void 0;return un.assertEqual(r[n],t),o[n]=e.onEnter(i[n],l,c),r[n]=s(e,t),n}function n(e,t,r,i,o,a,_){un.assertEqual(r[t],n),un.assertIsDefined(e.onLeft),r[t]=s(e,n);const u=e.onLeft(i[t].left,o[t],i[t]);return u?(l(t,i,u),c(t,r,i,o,u)):t}function r(e,t,n,i,o,a,c){return un.assertEqual(n[t],r),un.assertIsDefined(e.onOperator),n[t]=s(e,r),e.onOperator(i[t].operatorToken,o[t],i[t]),t}function i(e,t,n,r,o,a,_){un.assertEqual(n[t],i),un.assertIsDefined(e.onRight),n[t]=s(e,i);const u=e.onRight(r[t].right,o[t],r[t]);return u?(l(t,r,u),c(t,n,r,o,u)):t}function o(e,t,n,r,i,a,c){un.assertEqual(n[t],o),n[t]=s(e,o);const l=e.onExit(r[t],i[t]);if(t>0){if(t--,e.foldState){const r=n[t]===o?"right":"left";i[t]=e.foldState(i[t],l,r)}}else a.value=l;return t}function a(e,t,n,r,i,o,s){return un.assertEqual(n[t],a),t}function s(e,s){switch(s){case t:if(e.onLeft)return n;case n:if(e.onOperator)return r;case r:if(e.onRight)return i;case i:return o;case o:case a:return a;default:un.fail("Invalid state")}}function c(e,n,r,i,o){return n[++e]=t,r[e]=o,i[e]=void 0,e}function l(e,t,n){if(un.shouldAssert(2))for(;e>=0;)un.assert(t[e]!==n,"Circular traversal detected."),e--}e.enter=t,e.left=n,e.operator=r,e.right=i,e.exit=o,e.done=a,e.nextState=s})(IP||(IP={}));var RA,MA,BA,JA,zA,qA=class{constructor(e,t,n,r,i,o){this.onEnter=e,this.onLeft=t,this.onOperator=n,this.onRight=r,this.onExit=i,this.foldState=o}};function UA(e,t,n,r,i,o){const a=new qA(e,t,n,r,i,o);return function(e,t){const n={value:void 0},r=[IP.enter],i=[e],o=[void 0];let s=0;for(;r[s]!==IP.done;)s=r[s](a,s,r,i,o,n,t);return un.assertEqual(s,0),n.value}}function VA(e){return 95===(t=e.kind)||90===t;var t}function WA(e,t){if(void 0!==t)return 0===t.length?t:nI(e.createNodeArray([],t.hasTrailingComma),t)}function $A(e){var t;const n=e.emitNode.autoGenerate;if(4&n.flags){const r=n.id;let i=e,o=i.original;for(;o;){i=o;const e=null==(t=i.emitNode)?void 0:t.autoGenerate;if(ul(i)&&(void 0===e||4&e.flags&&e.id!==r))break;o=i.original}return i}return e}function HA(e,t){return"object"==typeof e?KA(!1,e.prefix,e.node,e.suffix,t):"string"==typeof e?e.length>0&&35===e.charCodeAt(0)?e.slice(1):e:""}function KA(e,t,n,r,i){return t=HA(t,i),r=HA(r,i),`${e?"#":""}${t}${n=function(e,t){return"string"==typeof e?e:function(e,t){return Wl(e)?t(e).slice(1):Vl(e)?t(e):qN(e)?e.escapedText.slice(1):mc(e)}(e,un.checkDefined(t))}(n,i)}${r}`}function GA(e,t,n,r){return e.updatePropertyDeclaration(t,n,e.getGeneratedPrivateNameForNode(t.name,void 0,"_accessor_storage"),void 0,void 0,r)}function XA(e,t,n,r,i=e.createThis()){return e.createGetAccessorDeclaration(n,r,[],void 0,e.createBlock([e.createReturnStatement(e.createPropertyAccessExpression(i,e.getGeneratedPrivateNameForNode(t.name,void 0,"_accessor_storage")))]))}function QA(e,t,n,r,i=e.createThis()){return e.createSetAccessorDeclaration(n,r,[e.createParameterDeclaration(void 0,void 0,"value")],e.createBlock([e.createExpressionStatement(e.createAssignment(e.createPropertyAccessExpression(i,e.getGeneratedPrivateNameForNode(t.name,void 0,"_accessor_storage")),e.createIdentifier("value")))]))}function YA(e){let t=e.expression;for(;;)if(t=cA(t),kF(t))t=ve(t.elements);else{if(!rA(t)){if(nb(t,!0)&&Vl(t.left))return t;break}t=t.right}}function ZA(e,t){if(function(e){return ZD(e)&&Zh(e)&&!e.emitNode}(e))ZA(e.expression,t);else if(rA(e))ZA(e.left,t),ZA(e.right,t);else if(kF(e))for(const n of e.elements)ZA(n,t);else t.push(e)}function eI(e){const t=[];return ZA(e,t),t}function tI(e){if(65536&e.transformFlags)return!0;if(128&e.transformFlags)for(const t of SA(e)){const e=yA(t);if(e&&k_(e)){if(65536&e.transformFlags)return!0;if(128&e.transformFlags&&tI(e))return!0}}return!1}function nI(e,t){return t?ST(e,t.pos,t.end):e}function rI(e){const t=e.kind;return 168===t||169===t||171===t||172===t||173===t||174===t||176===t||177===t||178===t||181===t||185===t||218===t||219===t||231===t||243===t||262===t||263===t||264===t||265===t||266===t||267===t||271===t||272===t||277===t||278===t}function iI(e){const t=e.kind;return 169===t||172===t||174===t||177===t||178===t||231===t||263===t}var oI={createBaseSourceFileNode:e=>new(zA||(zA=jx.getSourceFileConstructor()))(e,-1,-1),createBaseIdentifierNode:e=>new(BA||(BA=jx.getIdentifierConstructor()))(e,-1,-1),createBasePrivateIdentifierNode:e=>new(JA||(JA=jx.getPrivateIdentifierConstructor()))(e,-1,-1),createBaseTokenNode:e=>new(MA||(MA=jx.getTokenConstructor()))(e,-1,-1),createBaseNode:e=>new(RA||(RA=jx.getNodeConstructor()))(e,-1,-1)},aI=BC(1,oI);function sI(e,t){return t&&e(t)}function cI(e,t,n){if(n){if(t)return t(n);for(const t of n){const n=e(t);if(n)return n}}}function lI(e,t){return 42===e.charCodeAt(t+1)&&42===e.charCodeAt(t+2)&&47!==e.charCodeAt(t+3)}function _I(e){return d(e.statements,uI)||function(e){return 8388608&e.flags?dI(e):void 0}(e)}function uI(e){return rI(e)&&function(e){return $(e.modifiers,(e=>95===e.kind))}(e)||tE(e)&&xE(e.moduleReference)||nE(e)||pE(e)||fE(e)?e:void 0}function dI(e){return function(e){return vF(e)&&102===e.keywordToken&&"meta"===e.name.escapedText}(e)?e:PI(e,dI)}var pI,fI={166:function(e,t,n){return sI(t,e.left)||sI(t,e.right)},168:function(e,t,n){return cI(t,n,e.modifiers)||sI(t,e.name)||sI(t,e.constraint)||sI(t,e.default)||sI(t,e.expression)},304:function(e,t,n){return cI(t,n,e.modifiers)||sI(t,e.name)||sI(t,e.questionToken)||sI(t,e.exclamationToken)||sI(t,e.equalsToken)||sI(t,e.objectAssignmentInitializer)},305:function(e,t,n){return sI(t,e.expression)},169:function(e,t,n){return cI(t,n,e.modifiers)||sI(t,e.dotDotDotToken)||sI(t,e.name)||sI(t,e.questionToken)||sI(t,e.type)||sI(t,e.initializer)},172:function(e,t,n){return cI(t,n,e.modifiers)||sI(t,e.name)||sI(t,e.questionToken)||sI(t,e.exclamationToken)||sI(t,e.type)||sI(t,e.initializer)},171:function(e,t,n){return cI(t,n,e.modifiers)||sI(t,e.name)||sI(t,e.questionToken)||sI(t,e.type)||sI(t,e.initializer)},303:function(e,t,n){return cI(t,n,e.modifiers)||sI(t,e.name)||sI(t,e.questionToken)||sI(t,e.exclamationToken)||sI(t,e.initializer)},260:function(e,t,n){return sI(t,e.name)||sI(t,e.exclamationToken)||sI(t,e.type)||sI(t,e.initializer)},208:function(e,t,n){return sI(t,e.dotDotDotToken)||sI(t,e.propertyName)||sI(t,e.name)||sI(t,e.initializer)},181:function(e,t,n){return cI(t,n,e.modifiers)||cI(t,n,e.typeParameters)||cI(t,n,e.parameters)||sI(t,e.type)},185:function(e,t,n){return cI(t,n,e.modifiers)||cI(t,n,e.typeParameters)||cI(t,n,e.parameters)||sI(t,e.type)},184:function(e,t,n){return cI(t,n,e.modifiers)||cI(t,n,e.typeParameters)||cI(t,n,e.parameters)||sI(t,e.type)},179:mI,180:mI,174:function(e,t,n){return cI(t,n,e.modifiers)||sI(t,e.asteriskToken)||sI(t,e.name)||sI(t,e.questionToken)||sI(t,e.exclamationToken)||cI(t,n,e.typeParameters)||cI(t,n,e.parameters)||sI(t,e.type)||sI(t,e.body)},173:function(e,t,n){return cI(t,n,e.modifiers)||sI(t,e.name)||sI(t,e.questionToken)||cI(t,n,e.typeParameters)||cI(t,n,e.parameters)||sI(t,e.type)},176:function(e,t,n){return cI(t,n,e.modifiers)||sI(t,e.name)||cI(t,n,e.typeParameters)||cI(t,n,e.parameters)||sI(t,e.type)||sI(t,e.body)},177:function(e,t,n){return cI(t,n,e.modifiers)||sI(t,e.name)||cI(t,n,e.typeParameters)||cI(t,n,e.parameters)||sI(t,e.type)||sI(t,e.body)},178:function(e,t,n){return cI(t,n,e.modifiers)||sI(t,e.name)||cI(t,n,e.typeParameters)||cI(t,n,e.parameters)||sI(t,e.type)||sI(t,e.body)},262:function(e,t,n){return cI(t,n,e.modifiers)||sI(t,e.asteriskToken)||sI(t,e.name)||cI(t,n,e.typeParameters)||cI(t,n,e.parameters)||sI(t,e.type)||sI(t,e.body)},218:function(e,t,n){return cI(t,n,e.modifiers)||sI(t,e.asteriskToken)||sI(t,e.name)||cI(t,n,e.typeParameters)||cI(t,n,e.parameters)||sI(t,e.type)||sI(t,e.body)},219:function(e,t,n){return cI(t,n,e.modifiers)||cI(t,n,e.typeParameters)||cI(t,n,e.parameters)||sI(t,e.type)||sI(t,e.equalsGreaterThanToken)||sI(t,e.body)},175:function(e,t,n){return cI(t,n,e.modifiers)||sI(t,e.body)},183:function(e,t,n){return sI(t,e.typeName)||cI(t,n,e.typeArguments)},182:function(e,t,n){return sI(t,e.assertsModifier)||sI(t,e.parameterName)||sI(t,e.type)},186:function(e,t,n){return sI(t,e.exprName)||cI(t,n,e.typeArguments)},187:function(e,t,n){return cI(t,n,e.members)},188:function(e,t,n){return sI(t,e.elementType)},189:function(e,t,n){return cI(t,n,e.elements)},192:gI,193:gI,194:function(e,t,n){return sI(t,e.checkType)||sI(t,e.extendsType)||sI(t,e.trueType)||sI(t,e.falseType)},195:function(e,t,n){return sI(t,e.typeParameter)},205:function(e,t,n){return sI(t,e.argument)||sI(t,e.attributes)||sI(t,e.qualifier)||cI(t,n,e.typeArguments)},302:function(e,t,n){return sI(t,e.assertClause)},196:hI,198:hI,199:function(e,t,n){return sI(t,e.objectType)||sI(t,e.indexType)},200:function(e,t,n){return sI(t,e.readonlyToken)||sI(t,e.typeParameter)||sI(t,e.nameType)||sI(t,e.questionToken)||sI(t,e.type)||cI(t,n,e.members)},201:function(e,t,n){return sI(t,e.literal)},202:function(e,t,n){return sI(t,e.dotDotDotToken)||sI(t,e.name)||sI(t,e.questionToken)||sI(t,e.type)},206:yI,207:yI,209:function(e,t,n){return cI(t,n,e.elements)},210:function(e,t,n){return cI(t,n,e.properties)},211:function(e,t,n){return sI(t,e.expression)||sI(t,e.questionDotToken)||sI(t,e.name)},212:function(e,t,n){return sI(t,e.expression)||sI(t,e.questionDotToken)||sI(t,e.argumentExpression)},213:vI,214:vI,215:function(e,t,n){return sI(t,e.tag)||sI(t,e.questionDotToken)||cI(t,n,e.typeArguments)||sI(t,e.template)},216:function(e,t,n){return sI(t,e.type)||sI(t,e.expression)},217:function(e,t,n){return sI(t,e.expression)},220:function(e,t,n){return sI(t,e.expression)},221:function(e,t,n){return sI(t,e.expression)},222:function(e,t,n){return sI(t,e.expression)},224:function(e,t,n){return sI(t,e.operand)},229:function(e,t,n){return sI(t,e.asteriskToken)||sI(t,e.expression)},223:function(e,t,n){return sI(t,e.expression)},225:function(e,t,n){return sI(t,e.operand)},226:function(e,t,n){return sI(t,e.left)||sI(t,e.operatorToken)||sI(t,e.right)},234:function(e,t,n){return sI(t,e.expression)||sI(t,e.type)},235:function(e,t,n){return sI(t,e.expression)},238:function(e,t,n){return sI(t,e.expression)||sI(t,e.type)},236:function(e,t,n){return sI(t,e.name)},227:function(e,t,n){return sI(t,e.condition)||sI(t,e.questionToken)||sI(t,e.whenTrue)||sI(t,e.colonToken)||sI(t,e.whenFalse)},230:function(e,t,n){return sI(t,e.expression)},241:bI,268:bI,307:function(e,t,n){return cI(t,n,e.statements)||sI(t,e.endOfFileToken)},243:function(e,t,n){return cI(t,n,e.modifiers)||sI(t,e.declarationList)},261:function(e,t,n){return cI(t,n,e.declarations)},244:function(e,t,n){return sI(t,e.expression)},245:function(e,t,n){return sI(t,e.expression)||sI(t,e.thenStatement)||sI(t,e.elseStatement)},246:function(e,t,n){return sI(t,e.statement)||sI(t,e.expression)},247:function(e,t,n){return sI(t,e.expression)||sI(t,e.statement)},248:function(e,t,n){return sI(t,e.initializer)||sI(t,e.condition)||sI(t,e.incrementor)||sI(t,e.statement)},249:function(e,t,n){return sI(t,e.initializer)||sI(t,e.expression)||sI(t,e.statement)},250:function(e,t,n){return sI(t,e.awaitModifier)||sI(t,e.initializer)||sI(t,e.expression)||sI(t,e.statement)},251:xI,252:xI,253:function(e,t,n){return sI(t,e.expression)},254:function(e,t,n){return sI(t,e.expression)||sI(t,e.statement)},255:function(e,t,n){return sI(t,e.expression)||sI(t,e.caseBlock)},269:function(e,t,n){return cI(t,n,e.clauses)},296:function(e,t,n){return sI(t,e.expression)||cI(t,n,e.statements)},297:function(e,t,n){return cI(t,n,e.statements)},256:function(e,t,n){return sI(t,e.label)||sI(t,e.statement)},257:function(e,t,n){return sI(t,e.expression)},258:function(e,t,n){return sI(t,e.tryBlock)||sI(t,e.catchClause)||sI(t,e.finallyBlock)},299:function(e,t,n){return sI(t,e.variableDeclaration)||sI(t,e.block)},170:function(e,t,n){return sI(t,e.expression)},263:kI,231:kI,264:function(e,t,n){return cI(t,n,e.modifiers)||sI(t,e.name)||cI(t,n,e.typeParameters)||cI(t,n,e.heritageClauses)||cI(t,n,e.members)},265:function(e,t,n){return cI(t,n,e.modifiers)||sI(t,e.name)||cI(t,n,e.typeParameters)||sI(t,e.type)},266:function(e,t,n){return cI(t,n,e.modifiers)||sI(t,e.name)||cI(t,n,e.members)},306:function(e,t,n){return sI(t,e.name)||sI(t,e.initializer)},267:function(e,t,n){return cI(t,n,e.modifiers)||sI(t,e.name)||sI(t,e.body)},271:function(e,t,n){return cI(t,n,e.modifiers)||sI(t,e.name)||sI(t,e.moduleReference)},272:function(e,t,n){return cI(t,n,e.modifiers)||sI(t,e.importClause)||sI(t,e.moduleSpecifier)||sI(t,e.attributes)},273:function(e,t,n){return sI(t,e.name)||sI(t,e.namedBindings)},300:function(e,t,n){return cI(t,n,e.elements)},301:function(e,t,n){return sI(t,e.name)||sI(t,e.value)},270:function(e,t,n){return cI(t,n,e.modifiers)||sI(t,e.name)},274:function(e,t,n){return sI(t,e.name)},280:function(e,t,n){return sI(t,e.name)},275:SI,279:SI,278:function(e,t,n){return cI(t,n,e.modifiers)||sI(t,e.exportClause)||sI(t,e.moduleSpecifier)||sI(t,e.attributes)},276:TI,281:TI,277:function(e,t,n){return cI(t,n,e.modifiers)||sI(t,e.expression)},228:function(e,t,n){return sI(t,e.head)||cI(t,n,e.templateSpans)},239:function(e,t,n){return sI(t,e.expression)||sI(t,e.literal)},203:function(e,t,n){return sI(t,e.head)||cI(t,n,e.templateSpans)},204:function(e,t,n){return sI(t,e.type)||sI(t,e.literal)},167:function(e,t,n){return sI(t,e.expression)},298:function(e,t,n){return cI(t,n,e.types)},233:function(e,t,n){return sI(t,e.expression)||cI(t,n,e.typeArguments)},283:function(e,t,n){return sI(t,e.expression)},282:function(e,t,n){return cI(t,n,e.modifiers)},356:function(e,t,n){return cI(t,n,e.elements)},284:function(e,t,n){return sI(t,e.openingElement)||cI(t,n,e.children)||sI(t,e.closingElement)},288:function(e,t,n){return sI(t,e.openingFragment)||cI(t,n,e.children)||sI(t,e.closingFragment)},285:CI,286:CI,292:function(e,t,n){return cI(t,n,e.properties)},291:function(e,t,n){return sI(t,e.name)||sI(t,e.initializer)},293:function(e,t,n){return sI(t,e.expression)},294:function(e,t,n){return sI(t,e.dotDotDotToken)||sI(t,e.expression)},287:function(e,t,n){return sI(t,e.tagName)},295:function(e,t,n){return sI(t,e.namespace)||sI(t,e.name)},190:wI,191:wI,309:wI,315:wI,314:wI,316:wI,318:wI,317:function(e,t,n){return cI(t,n,e.parameters)||sI(t,e.type)},320:function(e,t,n){return("string"==typeof e.comment?void 0:cI(t,n,e.comment))||cI(t,n,e.tags)},347:function(e,t,n){return sI(t,e.tagName)||sI(t,e.name)||("string"==typeof e.comment?void 0:cI(t,n,e.comment))},310:function(e,t,n){return sI(t,e.name)},311:function(e,t,n){return sI(t,e.left)||sI(t,e.right)},341:NI,348:NI,330:function(e,t,n){return sI(t,e.tagName)||("string"==typeof e.comment?void 0:cI(t,n,e.comment))},329:function(e,t,n){return sI(t,e.tagName)||sI(t,e.class)||("string"==typeof e.comment?void 0:cI(t,n,e.comment))},328:function(e,t,n){return sI(t,e.tagName)||sI(t,e.class)||("string"==typeof e.comment?void 0:cI(t,n,e.comment))},345:function(e,t,n){return sI(t,e.tagName)||sI(t,e.constraint)||cI(t,n,e.typeParameters)||("string"==typeof e.comment?void 0:cI(t,n,e.comment))},346:function(e,t,n){return sI(t,e.tagName)||(e.typeExpression&&309===e.typeExpression.kind?sI(t,e.typeExpression)||sI(t,e.fullName)||("string"==typeof e.comment?void 0:cI(t,n,e.comment)):sI(t,e.fullName)||sI(t,e.typeExpression)||("string"==typeof e.comment?void 0:cI(t,n,e.comment)))},338:function(e,t,n){return sI(t,e.tagName)||sI(t,e.fullName)||sI(t,e.typeExpression)||("string"==typeof e.comment?void 0:cI(t,n,e.comment))},342:DI,344:DI,343:DI,340:DI,350:DI,349:DI,339:DI,323:function(e,t,n){return d(e.typeParameters,t)||d(e.parameters,t)||sI(t,e.type)},324:FI,325:FI,326:FI,322:function(e,t,n){return d(e.jsDocPropertyTags,t)},327:EI,332:EI,333:EI,334:EI,335:EI,336:EI,331:EI,337:EI,351:function(e,t,n){return sI(t,e.tagName)||sI(t,e.importClause)||sI(t,e.moduleSpecifier)||sI(t,e.attributes)||("string"==typeof e.comment?void 0:cI(t,n,e.comment))},355:function(e,t,n){return sI(t,e.expression)}};function mI(e,t,n){return cI(t,n,e.typeParameters)||cI(t,n,e.parameters)||sI(t,e.type)}function gI(e,t,n){return cI(t,n,e.types)}function hI(e,t,n){return sI(t,e.type)}function yI(e,t,n){return cI(t,n,e.elements)}function vI(e,t,n){return sI(t,e.expression)||sI(t,e.questionDotToken)||cI(t,n,e.typeArguments)||cI(t,n,e.arguments)}function bI(e,t,n){return cI(t,n,e.statements)}function xI(e,t,n){return sI(t,e.label)}function kI(e,t,n){return cI(t,n,e.modifiers)||sI(t,e.name)||cI(t,n,e.typeParameters)||cI(t,n,e.heritageClauses)||cI(t,n,e.members)}function SI(e,t,n){return cI(t,n,e.elements)}function TI(e,t,n){return sI(t,e.propertyName)||sI(t,e.name)}function CI(e,t,n){return sI(t,e.tagName)||cI(t,n,e.typeArguments)||sI(t,e.attributes)}function wI(e,t,n){return sI(t,e.type)}function NI(e,t,n){return sI(t,e.tagName)||(e.isNameFirst?sI(t,e.name)||sI(t,e.typeExpression):sI(t,e.typeExpression)||sI(t,e.name))||("string"==typeof e.comment?void 0:cI(t,n,e.comment))}function DI(e,t,n){return sI(t,e.tagName)||sI(t,e.typeExpression)||("string"==typeof e.comment?void 0:cI(t,n,e.comment))}function FI(e,t,n){return sI(t,e.name)}function EI(e,t,n){return sI(t,e.tagName)||("string"==typeof e.comment?void 0:cI(t,n,e.comment))}function PI(e,t,n){if(void 0===e||e.kind<=165)return;const r=fI[e.kind];return void 0===r?void 0:r(e,t,n)}function AI(e,t,n){const r=II(e),i=[];for(;i.length=0;--t)r.push(e[t]),i.push(o)}else{const n=t(e,o);if(n){if("skip"===n)continue;return n}if(e.kind>=166)for(const t of II(e))r.push(t),i.push(e)}}}function II(e){const t=[];return PI(e,n,n),t;function n(e){t.unshift(e)}}function OI(e){e.externalModuleIndicator=_I(e)}function LI(e,t,n,r=!1,i){var o,a;let s;null==(o=Hn)||o.push(Hn.Phase.Parse,"createSourceFile",{path:e},!0),tr("beforeParse");const{languageVersion:c,setExternalModuleIndicator:l,impliedNodeFormat:_,jsDocParsingMode:u}="object"==typeof n?n:{languageVersion:n};if(100===c)s=pI.parseSourceFile(e,t,c,void 0,r,6,rt,u);else{const n=void 0===_?l:e=>(e.impliedNodeFormat=_,(l||OI)(e));s=pI.parseSourceFile(e,t,c,void 0,r,i,n,u)}return tr("afterParse"),nr("Parse","beforeParse","afterParse"),null==(a=Hn)||a.pop(),s}function jI(e,t){return pI.parseIsolatedEntityName(e,t)}function RI(e,t){return pI.parseJsonText(e,t)}function MI(e){return void 0!==e.externalModuleIndicator}function BI(e,t,n,r=!1){const i=qI.updateSourceFile(e,t,n,r);return i.flags|=12582912&e.flags,i}function JI(e,t,n){const r=pI.JSDocParser.parseIsolatedJSDocComment(e,t,n);return r&&r.jsDoc&&pI.fixupParentReferences(r.jsDoc),r}function zI(e,t,n){return pI.JSDocParser.parseJSDocTypeExpressionForTests(e,t,n)}(e=>{var t,n,r,i,o,a=ms(99,!0);function s(e){return b++,e}var c,u,d,p,f,m,g,h,y,v,b,x,S,T,C,w,N=BC(11,{createBaseSourceFileNode:e=>s(new o(e,0,0)),createBaseIdentifierNode:e=>s(new r(e,0,0)),createBasePrivateIdentifierNode:e=>s(new i(e,0,0)),createBaseTokenNode:e=>s(new n(e,0,0)),createBaseNode:e=>s(new t(e,0,0))}),{createNodeArray:D,createNumericLiteral:F,createStringLiteral:E,createLiteralLikeNode:P,createIdentifier:A,createPrivateIdentifier:I,createToken:O,createArrayLiteralExpression:L,createObjectLiteralExpression:j,createPropertyAccessExpression:R,createPropertyAccessChain:M,createElementAccessExpression:J,createElementAccessChain:z,createCallExpression:q,createCallChain:U,createNewExpression:V,createParenthesizedExpression:W,createBlock:H,createVariableStatement:G,createExpressionStatement:X,createIfStatement:Q,createWhileStatement:Y,createForStatement:Z,createForOfStatement:ee,createVariableDeclaration:te,createVariableDeclarationList:ne}=N,re=!0,oe=!1;function ae(e,t,n=2,r,i=!1){ce(e,t,n,r,6,0),u=w,Ve();const o=Be();let a,s;if(1===ze())a=bt([],o,o),s=gt();else{let e;for(;1!==ze();){let t;switch(ze()){case 23:t=ri();break;case 112:case 97:case 106:t=gt();break;case 41:t=tt((()=>9===Ve()&&59!==Ve()))?Ar():oi();break;case 9:case 11:if(tt((()=>59!==Ve()))){t=fn();break}default:t=oi()}e&&Qe(e)?e.push(t):e?e=[e,t]:(e=t,1!==ze()&&Oe(la.Unexpected_token))}const t=Qe(e)?xt(L(e),o):un.checkDefined(e),n=X(t);xt(n,o),a=bt([n],o),s=mt(1,la.Unexpected_token)}const c=pe(e,2,6,!1,a,s,u,rt);i&&de(c),c.nodeCount=b,c.identifierCount=S,c.identifiers=x,c.parseDiagnostics=Hx(g,c),h&&(c.jsDocDiagnostics=Hx(h,c));const l=c;return le(),l}function ce(e,s,l,_,h,v){switch(t=jx.getNodeConstructor(),n=jx.getTokenConstructor(),r=jx.getIdentifierConstructor(),i=jx.getPrivateIdentifierConstructor(),o=jx.getSourceFileConstructor(),c=Jo(e),d=s,p=l,y=_,f=h,m=ck(h),g=[],T=0,x=new Map,S=0,b=0,u=0,re=!0,f){case 1:case 2:w=524288;break;case 6:w=134742016;break;default:w=0}oe=!1,a.setText(d),a.setOnError(Me),a.setScriptTarget(p),a.setLanguageVariant(m),a.setScriptKind(f),a.setJSDocParsingMode(v)}function le(){a.clearCommentDirectives(),a.setText(""),a.setOnError(void 0),a.setScriptKind(0),a.setJSDocParsingMode(0),d=void 0,p=void 0,y=void 0,f=void 0,m=void 0,u=0,g=void 0,h=void 0,T=0,x=void 0,C=void 0,re=!0}e.parseSourceFile=function(e,t,n,r,i=!1,o,s,p=0){var f;if(6===(o=yS(e,o))){const o=ae(e,t,n,r,i);return bL(o,null==(f=o.statements[0])?void 0:f.expression,o.parseDiagnostics,!1,void 0),o.referencedFiles=l,o.typeReferenceDirectives=l,o.libReferenceDirectives=l,o.amdDependencies=l,o.hasNoDefaultLib=!1,o.pragmas=_,o}ce(e,t,n,r,o,p);const m=function(e,t,n,r,i){const o=$I(c);o&&(w|=33554432),u=w,Ve();const s=Xt(0,Ci);un.assert(1===ze());const l=Je(),_=ue(gt(),l),p=pe(c,e,n,o,s,_,u,r);return KI(p,d),GI(p,(function(e,t,n){g.push(Vx(c,d,e,t,n))})),p.commentDirectives=a.getCommentDirectives(),p.nodeCount=b,p.identifierCount=S,p.identifiers=x,p.parseDiagnostics=Hx(g,p),p.jsDocParsingMode=i,h&&(p.jsDocDiagnostics=Hx(h,p)),t&&de(p),p}(n,i,o,s||OI,p);return le(),m},e.parseIsolatedEntityName=function(e,t){ce("",e,t,void 0,1,0),Ve();const n=an(!0),r=1===ze()&&!g.length;return le(),r?n:void 0},e.parseJsonText=ae;let _e=!1;function ue(e,t){if(!t)return e;un.assert(!e.jsDoc);const n=B(hf(e,d),(t=>Fo.parseJSDocComment(e,t.pos,t.end-t.pos)));return n.length&&(e.jsDoc=n),_e&&(_e=!1,e.flags|=536870912),e}function de(e){NT(e,!0)}function pe(e,t,n,r,i,o,s,c){let l=N.createSourceFile(i,o,s);if(TT(l,0,d.length),_(l),!r&&MI(l)&&67108864&l.transformFlags){const e=l;l=function(e){const t=y,n=qI.createSyntaxCursor(e);y={currentNode:function(e){const t=n.currentNode(e);return re&&t&&c(t)&&WI(t),t}};const r=[],i=g;g=[];let o=0,s=l(e.statements,0);for(;-1!==s;){const t=e.statements[o],n=e.statements[s];se(r,e.statements,o,s),o=_(e.statements,s);const c=k(i,(e=>e.start>=t.pos)),u=c>=0?k(i,(e=>e.start>=n.pos),c):-1;c>=0&&se(g,i,c,u>=0?u:void 0),et((()=>{const t=w;for(w|=65536,a.resetTokenState(n.pos),Ve();1!==ze();){const t=a.getTokenFullStart(),n=Qt(0,Ci);if(r.push(n),t===a.getTokenFullStart()&&Ve(),o>=0){const t=e.statements[o];if(n.end===t.pos)break;n.end>t.pos&&(o=_(e.statements,o+1))}}w=t}),2),s=o>=0?l(e.statements,o):-1}if(o>=0){const t=e.statements[o];se(r,e.statements,o);const n=k(i,(e=>e.start>=t.pos));n>=0&&se(g,i,n)}return y=t,N.updateSourceFile(e,nI(D(r),e.statements));function c(e){return!(65536&e.flags||!(67108864&e.transformFlags))}function l(e,t){for(let n=t;n118}function ot(){return 80===ze()||(127!==ze()||!Fe())&&(135!==ze()||!Ie())&&ze()>118}function at(e,t,n=!0){return ze()===e?(n&&Ve(),!0):(t?Oe(t):Oe(la._0_expected,Da(e)),!1)}e.fixupParentReferences=de;const ct=Object.keys(da).filter((e=>e.length>2));function lt(e){if(QD(e))return void je(Xa(d,e.template.pos),e.template.end,la.Module_declaration_names_may_only_use_or_quoted_strings);const t=zN(e)?mc(e):void 0;if(!t||!fs(t,p))return void Oe(la._0_expected,Da(27));const n=Xa(d,e.pos);switch(t){case"const":case"let":case"var":return void je(n,e.end,la.Variable_declaration_not_allowed_at_this_location);case"declare":return;case"interface":return void _t(la.Interface_name_cannot_be_0,la.Interface_must_be_given_a_name,19);case"is":return void je(n,a.getTokenStart(),la.A_type_predicate_is_only_allowed_in_return_type_position_for_functions_and_methods);case"module":case"namespace":return void _t(la.Namespace_name_cannot_be_0,la.Namespace_must_be_given_a_name,19);case"type":return void _t(la.Type_alias_name_cannot_be_0,la.Type_alias_must_be_given_a_name,64)}const r=Lt(t,ct,st)??function(e){for(const t of ct)if(e.length>t.length+2&&Gt(e,t))return`${t} ${e.slice(t.length)}`}(t);r?je(n,e.end,la.Unknown_keyword_or_identifier_Did_you_mean_0,r):0!==ze()&&je(n,e.end,la.Unexpected_keyword_or_identifier)}function _t(e,t,n){ze()===n?Oe(t):Oe(e,a.getTokenValue())}function ut(e){return ze()===e?(We(),!0):(un.assert(wh(e)),Oe(la._0_expected,Da(e)),!1)}function dt(e,t,n,r){if(ze()===t)return void Ve();const i=Oe(la._0_expected,Da(t));n&&i&&iT(i,Vx(c,d,r,1,la.The_parser_expected_to_find_a_1_to_match_the_0_token_here,Da(e),Da(t)))}function pt(e){return ze()===e&&(Ve(),!0)}function ft(e){if(ze()===e)return gt()}function mt(e,t,n){return ft(e)||kt(e,!1,t||la._0_expected,n||Da(e))}function gt(){const e=Be(),t=ze();return Ve(),xt(O(t),e)}function ht(){return 27===ze()||20===ze()||1===ze()||a.hasPrecedingLineBreak()}function yt(){return!!ht()&&(27===ze()&&Ve(),!0)}function vt(){return yt()||at(27)}function bt(e,t,n,r){const i=D(e,r);return ST(i,t,n??a.getTokenFullStart()),i}function xt(e,t,n){return ST(e,t,n??a.getTokenFullStart()),w&&(e.flags|=w),oe&&(oe=!1,e.flags|=262144),e}function kt(e,t,n,...r){t?Le(a.getTokenFullStart(),0,n,...r):n&&Oe(n,...r);const i=Be();return xt(80===e?A("",void 0):Ol(e)?N.createTemplateLiteralLikeNode(e,"","",void 0):9===e?F("",void 0):11===e?E("",void 0):282===e?N.createMissingDeclaration():O(e),i)}function St(e){let t=x.get(e);return void 0===t&&x.set(e,t=e),t}function Tt(e,t,n){if(e){S++;const e=a.hasPrecedingJSDocLeadingAsterisks()?a.getTokenStart():Be(),t=ze(),n=St(a.getTokenValue()),r=a.hasExtendedUnicodeEscape();return qe(),xt(A(n,t,r),e)}if(81===ze())return Oe(n||la.Private_identifiers_are_not_allowed_outside_class_bodies),Tt(!0);if(0===ze()&&a.tryScan((()=>80===a.reScanInvalidIdentifier())))return Tt(!0);S++;const r=1===ze(),i=a.isReservedWord(),o=a.getTokenText(),s=i?la.Identifier_expected_0_is_a_reserved_word_that_cannot_be_used_here:la.Identifier_expected;return kt(80,r,t||s,o)}function Ct(e){return Tt(it(),void 0,e)}function wt(e,t){return Tt(ot(),e,t)}function Nt(e){return Tt(_a(ze()),e)}function Dt(){return(a.hasUnicodeEscape()||a.hasExtendedUnicodeEscape())&&Oe(la.Unicode_escape_sequence_cannot_appear_here),Tt(_a(ze()))}function Ft(){return _a(ze())||11===ze()||9===ze()||10===ze()}function Et(){return function(e){if(11===ze()||9===ze()||10===ze()){const e=fn();return e.text=St(e.text),e}return e&&23===ze()?function(){const e=Be();at(23);const t=Se(yr);return at(24),xt(N.createComputedPropertyName(t),e)}():81===ze()?Pt():Nt()}(!0)}function Pt(){const e=Be(),t=I(St(a.getTokenValue()));return Ve(),xt(t,e)}function At(e){return ze()===e&&nt(Ot)}function It(){return Ve(),!a.hasPrecedingLineBreak()&&Mt()}function Ot(){switch(ze()){case 87:return 94===Ve();case 95:return Ve(),90===ze()?tt(Bt):156===ze()?tt(Rt):jt();case 90:return Bt();case 126:return Ve(),Mt();case 139:case 153:return Ve(),23===ze()||Ft();default:return It()}}function jt(){return 60===ze()||42!==ze()&&130!==ze()&&19!==ze()&&Mt()}function Rt(){return Ve(),jt()}function Mt(){return 23===ze()||19===ze()||42===ze()||26===ze()||Ft()}function Bt(){return Ve(),86===ze()||100===ze()||120===ze()||60===ze()||128===ze()&&tt(pi)||134===ze()&&tt(fi)}function Jt(e,t){if(Yt(e))return!0;switch(e){case 0:case 1:case 3:return!(27===ze()&&t)&&yi();case 2:return 84===ze()||90===ze();case 4:return tt(Rn);case 5:return tt($i)||27===ze()&&!t;case 6:return 23===ze()||Ft();case 12:switch(ze()){case 23:case 42:case 26:case 25:return!0;default:return Ft()}case 18:return Ft();case 9:return 23===ze()||26===ze()||Ft();case 24:return _a(ze())||11===ze();case 7:return 19===ze()?tt(zt):t?ot()&&!Wt():gr()&&!Wt();case 8:return Oi();case 10:return 28===ze()||26===ze()||Oi();case 19:return 103===ze()||87===ze()||ot();case 15:switch(ze()){case 28:case 25:return!0}case 11:return 26===ze()||hr();case 16:return wn(!1);case 17:return wn(!0);case 20:case 21:return 28===ze()||tr();case 22:return oo();case 23:return(161!==ze()||!tt(Fi))&&(11===ze()||_a(ze()));case 13:return _a(ze())||19===ze();case 14:case 25:return!0;case 26:return un.fail("ParsingContext.Count used as a context");default:un.assertNever(e,"Non-exhaustive case in 'isListElement'.")}}function zt(){if(un.assert(19===ze()),20===Ve()){const e=Ve();return 28===e||19===e||96===e||119===e}return!0}function qt(){return Ve(),ot()}function Ut(){return Ve(),_a(ze())}function Vt(){return Ve(),ua(ze())}function Wt(){return(119===ze()||96===ze())&&tt($t)}function $t(){return Ve(),hr()}function Ht(){return Ve(),tr()}function Kt(e){if(1===ze())return!0;switch(e){case 1:case 2:case 4:case 5:case 6:case 12:case 9:case 23:case 24:return 20===ze();case 3:return 20===ze()||84===ze()||90===ze();case 7:return 19===ze()||96===ze()||119===ze();case 8:return!!ht()||!!Nr(ze())||39===ze();case 19:return 32===ze()||21===ze()||19===ze()||96===ze()||119===ze();case 11:return 22===ze()||27===ze();case 15:case 21:case 10:return 24===ze();case 17:case 16:case 18:return 22===ze()||24===ze();case 20:return 28!==ze();case 22:return 19===ze()||20===ze();case 13:return 32===ze()||44===ze();case 14:return 30===ze()&&tt(po);default:return!1}}function Xt(e,t){const n=T;T|=1<=0)}function nn(e){return 6===e?la.An_enum_member_name_must_be_followed_by_a_or:void 0}function rn(){const e=bt([],Be());return e.isMissingList=!0,e}function on(e,t,n,r){if(at(n)){const n=tn(e,t);return at(r),n}return rn()}function an(e,t){const n=Be();let r=e?Nt(t):wt(t);for(;pt(25)&&30!==ze();)r=xt(N.createQualifiedName(r,cn(e,!1,!0)),n);return r}function sn(e,t){return xt(N.createQualifiedName(e,t),e.pos)}function cn(e,t,n){if(a.hasPrecedingLineBreak()&&_a(ze())&&tt(di))return kt(80,!0,la.Identifier_expected);if(81===ze()){const e=Pt();return t?e:kt(80,!0,la.Identifier_expected)}return e?n?Nt():Dt():wt()}function ln(e){const t=Be();return xt(N.createTemplateExpression(mn(e),function(e){const t=Be(),n=[];let r;do{r=pn(e),n.push(r)}while(17===r.literal.kind);return bt(n,t)}(e)),t)}function _n(){const e=Be();return xt(N.createTemplateLiteralTypeSpan(fr(),dn(!1)),e)}function dn(e){return 20===ze()?(Ke(e),function(){const e=gn(ze());return un.assert(17===e.kind||18===e.kind,"Template fragment has wrong token kind"),e}()):mt(18,la._0_expected,Da(20))}function pn(e){const t=Be();return xt(N.createTemplateSpan(Se(yr),dn(e)),t)}function fn(){return gn(ze())}function mn(e){!e&&26656&a.getTokenFlags()&&Ke(!1);const t=gn(ze());return un.assert(16===t.kind,"Template head has wrong token kind"),t}function gn(e){const t=Be(),n=Ol(e)?N.createTemplateLiteralLikeNode(e,a.getTokenValue(),function(e){const t=15===e||18===e,n=a.getTokenText();return n.substring(1,n.length-(a.isUnterminated()?0:t?1:2))}(e),7176&a.getTokenFlags()):9===e?F(a.getTokenValue(),a.getNumericLiteralFlags()):11===e?E(a.getTokenValue(),void 0,a.hasExtendedUnicodeEscape()):Pl(e)?P(e,a.getTokenValue()):un.fail();return a.hasExtendedUnicodeEscape()&&(n.hasExtendedUnicodeEscape=!0),a.isUnterminated()&&(n.isUnterminated=!0),Ve(),xt(n,t)}function hn(){return an(!0,la.Type_expected)}function yn(){if(!a.hasPrecedingLineBreak()&&30===Ge())return on(20,fr,30,32)}function vn(){const e=Be();return xt(N.createTypeReferenceNode(hn(),yn()),e)}function bn(e){switch(e.kind){case 183:return Cd(e.typeName);case 184:case 185:{const{parameters:t,type:n}=e;return!!t.isMissingList||bn(n)}case 196:return bn(e.type);default:return!1}}function xn(){const e=Be();return Ve(),xt(N.createThisTypeNode(),e)}function kn(){const e=Be();let t;return 110!==ze()&&105!==ze()||(t=Nt(),at(59)),xt(N.createParameterDeclaration(void 0,void 0,t,void 0,Sn(),void 0),e)}function Sn(){a.setSkipJsDocLeadingAsterisks(!0);const e=Be();if(pt(144)){const t=N.createJSDocNamepathType(void 0);e:for(;;)switch(ze()){case 20:case 1:case 28:case 5:break e;default:We()}return a.setSkipJsDocLeadingAsterisks(!1),xt(t,e)}const t=pt(26);let n=dr();return a.setSkipJsDocLeadingAsterisks(!1),t&&(n=xt(N.createJSDocVariadicType(n),e)),64===ze()?(Ve(),xt(N.createJSDocOptionalType(n),e)):n}function Tn(){const e=Be(),t=Xi(!1,!0),n=wt();let r,i;pt(96)&&(tr()||!hr()?r=fr():i=Ir());const o=pt(64)?fr():void 0,a=N.createTypeParameterDeclaration(t,n,r,o);return a.expression=i,xt(a,e)}function Cn(){if(30===ze())return on(19,Tn,30,32)}function wn(e){return 26===ze()||Oi()||Gl(ze())||60===ze()||tr(!e)}function Nn(e){return Dn(e)}function Dn(e,t=!0){const n=Be(),r=Je(),i=e?we((()=>Xi(!0))):Ne((()=>Xi(!0)));if(110===ze()){const e=N.createParameterDeclaration(i,void 0,Tt(!0),void 0,mr(),void 0),t=fe(i);return t&&Re(t,la.Neither_decorators_nor_modifiers_may_be_applied_to_this_parameters),ue(xt(e,n),r)}const o=re;re=!1;const a=ft(26);if(!t&&!it()&&23!==ze()&&19!==ze())return;const s=ue(xt(N.createParameterDeclaration(i,a,function(e){const t=Li(la.Private_identifiers_cannot_be_used_as_parameters);return 0===od(t)&&!$(e)&&Gl(ze())&&Ve(),t}(i),ft(58),mr(),vr()),n),r);return re=o,s}function Fn(e,t){if(function(e,t){return 39===e?(at(e),!0):!!pt(59)||!(!t||39!==ze())&&(Oe(la._0_expected,Da(59)),Ve(),!0)}(e,t))return Te(dr)}function En(e,t){const n=Fe(),r=Ie();he(!!(1&e)),be(!!(2&e));const i=32&e?tn(17,kn):tn(16,(()=>t?Nn(r):Dn(r,!1)));return he(n),be(r),i}function Pn(e){if(!at(21))return rn();const t=En(e,!0);return at(22),t}function An(){pt(28)||vt()}function In(e){const t=Be(),n=Je();180===e&&at(105);const r=Cn(),i=Pn(4),o=Fn(59,!0);return An(),ue(xt(179===e?N.createCallSignature(r,i,o):N.createConstructSignature(r,i,o),t),n)}function On(){return 23===ze()&&tt(Ln)}function Ln(){if(Ve(),26===ze()||24===ze())return!0;if(Gl(ze())){if(Ve(),ot())return!0}else{if(!ot())return!1;Ve()}return 59===ze()||28===ze()||58===ze()&&(Ve(),59===ze()||28===ze()||24===ze())}function jn(e,t,n){const r=on(16,(()=>Nn(!1)),23,24),i=mr();return An(),ue(xt(N.createIndexSignature(n,r,i),e),t)}function Rn(){if(21===ze()||30===ze()||139===ze()||153===ze())return!0;let e=!1;for(;Gl(ze());)e=!0,Ve();return 23===ze()||(Ft()&&(e=!0,Ve()),!!e&&(21===ze()||30===ze()||58===ze()||59===ze()||28===ze()||ht()))}function Mn(){if(21===ze()||30===ze())return In(179);if(105===ze()&&tt(Bn))return In(180);const e=Be(),t=Je(),n=Xi(!1);return At(139)?Wi(e,t,n,177,4):At(153)?Wi(e,t,n,178,4):On()?jn(e,t,n):function(e,t,n){const r=Et(),i=ft(58);let o;if(21===ze()||30===ze()){const e=Cn(),t=Pn(4),a=Fn(59,!0);o=N.createMethodSignature(n,r,i,e,t,a)}else{const e=mr();o=N.createPropertySignature(n,r,i,e),64===ze()&&(o.initializer=vr())}return An(),ue(xt(o,e),t)}(e,t,n)}function Bn(){return Ve(),21===ze()||30===ze()}function Jn(){return 25===Ve()}function zn(){switch(Ve()){case 21:case 30:case 25:return!0}return!1}function qn(){let e;return at(19)?(e=Xt(4,Mn),at(20)):e=rn(),e}function Un(){return Ve(),40===ze()||41===ze()?148===Ve():(148===ze()&&Ve(),23===ze()&&qt()&&103===Ve())}function Vn(){const e=Be();if(pt(26))return xt(N.createRestTypeNode(fr()),e);const t=fr();if(YE(t)&&t.pos===t.type.pos){const e=N.createOptionalTypeNode(t.type);return nI(e,t),e.flags=t.flags,e}return t}function Wn(){return 59===Ve()||58===ze()&&59===Ve()}function $n(){return 26===ze()?_a(Ve())&&Wn():_a(ze())&&Wn()}function Hn(){if(tt($n)){const e=Be(),t=Je(),n=ft(26),r=Nt(),i=ft(58);at(59);const o=Vn();return ue(xt(N.createNamedTupleMember(n,r,i,o),e),t)}return Vn()}function Kn(){const e=Be(),t=Je(),n=function(){let e;if(128===ze()){const t=Be();Ve(),e=bt([xt(O(128),t)],t)}return e}(),r=pt(105);un.assert(!n||r,"Per isStartOfFunctionOrConstructorType, a function type cannot have modifiers.");const i=Cn(),o=Pn(4),a=Fn(39,!1);return ue(xt(r?N.createConstructorTypeNode(n,i,o,a):N.createFunctionTypeNode(i,o,a),e),t)}function Gn(){const e=gt();return 25===ze()?void 0:e}function Xn(e){const t=Be();e&&Ve();let n=112===ze()||97===ze()||106===ze()?gt():gn(ze());return e&&(n=xt(N.createPrefixUnaryExpression(41,n),t)),xt(N.createLiteralTypeNode(n),t)}function Qn(){return Ve(),102===ze()}function Yn(){u|=4194304;const e=Be(),t=pt(114);at(102),at(21);const n=fr();let r;if(pt(28)){const e=a.getTokenStart();at(19);const t=ze();if(118===t||132===t?Ve():Oe(la._0_expected,Da(118)),at(59),r=ho(t,!0),!at(20)){const t=ye(g);t&&t.code===la._0_expected.code&&iT(t,Vx(c,d,e,1,la.The_parser_expected_to_find_a_1_to_match_the_0_token_here,"{","}"))}}at(22);const i=pt(25)?hn():void 0,o=yn();return xt(N.createImportTypeNode(n,r,i,o,t),e)}function Zn(){return Ve(),9===ze()||10===ze()}function er(){switch(ze()){case 133:case 159:case 154:case 150:case 163:case 155:case 136:case 157:case 146:case 151:return nt(Gn)||vn();case 67:a.reScanAsteriskEqualsToken();case 42:return function(){const e=Be();return Ve(),xt(N.createJSDocAllType(),e)}();case 61:a.reScanQuestionToken();case 58:return function(){const e=Be();return Ve(),28===ze()||20===ze()||22===ze()||32===ze()||64===ze()||52===ze()?xt(N.createJSDocUnknownType(),e):xt(N.createJSDocNullableType(fr(),!1),e)}();case 100:return function(){const e=Be(),t=Je();if(nt(_o)){const n=Pn(36),r=Fn(59,!1);return ue(xt(N.createJSDocFunctionType(n,r),e),t)}return xt(N.createTypeReferenceNode(Nt(),void 0),e)}();case 54:return function(){const e=Be();return Ve(),xt(N.createJSDocNonNullableType(er(),!1),e)}();case 15:case 11:case 9:case 10:case 112:case 97:case 106:return Xn();case 41:return tt(Zn)?Xn(!0):vn();case 116:return gt();case 110:{const t=xn();return 142!==ze()||a.hasPrecedingLineBreak()?t:(e=t,Ve(),xt(N.createTypePredicateNode(void 0,e,fr()),e.pos))}case 114:return tt(Qn)?Yn():function(){const e=Be();at(114);const t=an(!0),n=a.hasPrecedingLineBreak()?void 0:io();return xt(N.createTypeQueryNode(t,n),e)}();case 19:return tt(Un)?function(){const e=Be();let t;at(19),148!==ze()&&40!==ze()&&41!==ze()||(t=gt(),148!==t.kind&&at(148)),at(23);const n=function(){const e=Be(),t=Nt();at(103);const n=fr();return xt(N.createTypeParameterDeclaration(void 0,t,n,void 0),e)}(),r=pt(130)?fr():void 0;let i;at(24),58!==ze()&&40!==ze()&&41!==ze()||(i=gt(),58!==i.kind&&at(58));const o=mr();vt();const a=Xt(4,Mn);return at(20),xt(N.createMappedTypeNode(t,n,r,i,o,a),e)}():function(){const e=Be();return xt(N.createTypeLiteralNode(qn()),e)}();case 23:return function(){const e=Be();return xt(N.createTupleTypeNode(on(21,Hn,23,24)),e)}();case 21:return function(){const e=Be();at(21);const t=fr();return at(22),xt(N.createParenthesizedType(t),e)}();case 102:return Yn();case 131:return tt(di)?function(){const e=Be(),t=mt(131),n=110===ze()?xn():wt(),r=pt(142)?fr():void 0;return xt(N.createTypePredicateNode(t,n,r),e)}():vn();case 16:return function(){const e=Be();return xt(N.createTemplateLiteralType(mn(!1),function(){const e=Be(),t=[];let n;do{n=_n(),t.push(n)}while(17===n.literal.kind);return bt(t,e)}()),e)}();default:return vn()}var e}function tr(e){switch(ze()){case 133:case 159:case 154:case 150:case 163:case 136:case 148:case 155:case 158:case 116:case 157:case 106:case 110:case 114:case 146:case 19:case 23:case 30:case 52:case 51:case 105:case 11:case 9:case 10:case 112:case 97:case 151:case 42:case 58:case 54:case 26:case 140:case 102:case 131:case 15:case 16:return!0;case 100:return!e;case 41:return!e&&tt(Zn);case 21:return!e&&tt(nr);default:return ot()}}function nr(){return Ve(),22===ze()||wn(!1)||tr()}function rr(){const e=Be();let t=er();for(;!a.hasPrecedingLineBreak();)switch(ze()){case 54:Ve(),t=xt(N.createJSDocNonNullableType(t,!0),e);break;case 58:if(tt(Ht))return t;Ve(),t=xt(N.createJSDocNullableType(t,!0),e);break;case 23:if(at(23),tr()){const n=fr();at(24),t=xt(N.createIndexedAccessTypeNode(t,n),e)}else at(24),t=xt(N.createArrayTypeNode(t),e);break;default:return t}return t}function ir(){if(pt(96)){const e=Ce(fr);if(Pe()||58!==ze())return e}}function or(){const e=ze();switch(e){case 143:case 158:case 148:return function(e){const t=Be();return at(e),xt(N.createTypeOperatorNode(e,or()),t)}(e);case 140:return function(){const e=Be();return at(140),xt(N.createInferTypeNode(function(){const e=Be(),t=wt(),n=nt(ir);return xt(N.createTypeParameterDeclaration(void 0,t,n),e)}()),e)}()}return Te(rr)}function ar(e){if(_r()){const t=Kn();let n;return n=bD(t)?e?la.Function_type_notation_must_be_parenthesized_when_used_in_a_union_type:la.Function_type_notation_must_be_parenthesized_when_used_in_an_intersection_type:e?la.Constructor_type_notation_must_be_parenthesized_when_used_in_a_union_type:la.Constructor_type_notation_must_be_parenthesized_when_used_in_an_intersection_type,Re(t,n),t}}function sr(e,t,n){const r=Be(),i=52===e,o=pt(e);let a=o&&ar(i)||t();if(ze()===e||o){const o=[a];for(;pt(e);)o.push(ar(i)||t());a=xt(n(bt(o,r)),r)}return a}function cr(){return sr(51,or,N.createIntersectionTypeNode)}function lr(){return Ve(),105===ze()}function _r(){return 30===ze()||!(21!==ze()||!tt(ur))||105===ze()||128===ze()&&tt(lr)}function ur(){if(Ve(),22===ze()||26===ze())return!0;if(function(){if(Gl(ze())&&Xi(!1),ot()||110===ze())return Ve(),!0;if(23===ze()||19===ze()){const e=g.length;return Li(),e===g.length}return!1}()){if(59===ze()||28===ze()||58===ze()||64===ze())return!0;if(22===ze()&&(Ve(),39===ze()))return!0}return!1}function dr(){const e=Be(),t=ot()&&nt(pr),n=fr();return t?xt(N.createTypePredicateNode(void 0,t,n),e):n}function pr(){const e=wt();if(142===ze()&&!a.hasPrecedingLineBreak())return Ve(),e}function fr(){if(81920&w)return xe(81920,fr);if(_r())return Kn();const e=Be(),t=sr(52,cr,N.createUnionTypeNode);if(!Pe()&&!a.hasPrecedingLineBreak()&&pt(96)){const n=Ce(fr);at(58);const r=Te(fr);at(59);const i=Te(fr);return xt(N.createConditionalTypeNode(t,n,r,i),e)}return t}function mr(){return pt(59)?fr():void 0}function gr(){switch(ze()){case 110:case 108:case 106:case 112:case 97:case 9:case 10:case 11:case 15:case 16:case 21:case 23:case 19:case 100:case 86:case 105:case 44:case 69:case 80:return!0;case 102:return tt(zn);default:return ot()}}function hr(){if(gr())return!0;switch(ze()){case 40:case 41:case 55:case 54:case 91:case 114:case 116:case 46:case 47:case 30:case 135:case 127:case 81:case 60:return!0;default:return!!Fr()||ot()}}function yr(){const e=Ae();e&&ve(!1);const t=Be();let n,r=br(!0);for(;n=ft(28);)r=Er(r,n,br(!0),t);return e&&ve(!0),r}function vr(){return pt(64)?br(!0):void 0}function br(e){if(127===ze()&&(Fe()||tt(mi)))return function(){const e=Be();return Ve(),a.hasPrecedingLineBreak()||42!==ze()&&!hr()?xt(N.createYieldExpression(void 0,void 0),e):xt(N.createYieldExpression(ft(42),br(!0)),e)}();const t=function(e){const t=21===ze()||30===ze()||134===ze()?tt(kr):39===ze()?1:0;if(0!==t)return 1===t?Tr(!0,!0):nt((()=>function(e){const t=a.getTokenStart();if(null==C?void 0:C.has(t))return;const n=Tr(!1,e);return n||(C||(C=new Set)).add(t),n}(e)))}(e)||function(e){if(134===ze()&&1===tt(Sr)){const t=Be(),n=Je(),r=Qi();return xr(t,wr(0),e,n,r)}}(e);if(t)return t;const n=Be(),r=Je(),i=wr(0);return 80===i.kind&&39===ze()?xr(n,i,e,r,void 0):R_(i)&&Zv(He())?Er(i,gt(),br(e),n):function(e,t,n){const r=ft(58);if(!r)return e;let i;return xt(N.createConditionalExpression(e,r,xe(40960,(()=>br(!1))),i=mt(59),wd(i)?br(n):kt(80,!1,la._0_expected,Da(59))),t)}(i,n,e)}function xr(e,t,n,r,i){un.assert(39===ze(),"parseSimpleArrowFunctionExpression should only have been called if we had a =>");const o=N.createParameterDeclaration(void 0,void 0,t,void 0,void 0,void 0);xt(o,t.pos);const a=bt([o],o.pos,o.end),s=mt(39),c=Cr(!!i,n);return ue(xt(N.createArrowFunction(i,void 0,a,void 0,s,c),e),r)}function kr(){if(134===ze()){if(Ve(),a.hasPrecedingLineBreak())return 0;if(21!==ze()&&30!==ze())return 0}const e=ze(),t=Ve();if(21===e){if(22===t)switch(Ve()){case 39:case 59:case 19:return 1;default:return 0}if(23===t||19===t)return 2;if(26===t)return 1;if(Gl(t)&&134!==t&&tt(qt))return 130===Ve()?0:1;if(!ot()&&110!==t)return 0;switch(Ve()){case 59:return 1;case 58:return Ve(),59===ze()||28===ze()||64===ze()||22===ze()?1:0;case 28:case 64:case 22:return 2}return 0}return un.assert(30===e),ot()||87===ze()?1===m?tt((()=>{pt(87);const e=Ve();if(96===e)switch(Ve()){case 64:case 32:case 44:return!1;default:return!0}else if(28===e||64===e)return!0;return!1}))?1:0:2:0}function Sr(){if(134===ze()){if(Ve(),a.hasPrecedingLineBreak()||39===ze())return 0;const e=wr(0);if(!a.hasPrecedingLineBreak()&&80===e.kind&&39===ze())return 1}return 0}function Tr(e,t){const n=Be(),r=Je(),i=Qi(),o=$(i,WN)?2:0,a=Cn();let s;if(at(21)){if(e)s=En(o,e);else{const t=En(o,e);if(!t)return;s=t}if(!at(22)&&!e)return}else{if(!e)return;s=rn()}const c=59===ze(),l=Fn(59,!1);if(l&&!e&&bn(l))return;let _=l;for(;196===(null==_?void 0:_.kind);)_=_.type;const u=_&&tP(_);if(!e&&39!==ze()&&(u||19!==ze()))return;const d=ze(),p=mt(39),f=39===d||19===d?Cr($(i,WN),t):wt();return t||!c||59===ze()?ue(xt(N.createArrowFunction(i,a,s,l,p,f),n),r):void 0}function Cr(e,t){if(19===ze())return li(e?2:0);if(27!==ze()&&100!==ze()&&86!==ze()&&yi()&&(19===ze()||100===ze()||86===ze()||60===ze()||!hr()))return li(16|(e?2:0));const n=re;re=!1;const r=e?we((()=>br(t))):Ne((()=>br(t)));return re=n,r}function wr(e){const t=Be();return Dr(e,Ir(),t)}function Nr(e){return 103===e||165===e}function Dr(e,t,n){for(;;){He();const o=sy(ze());if(!(43===ze()?o>=e:o>e))break;if(103===ze()&&Ee())break;if(130===ze()||152===ze()){if(a.hasPrecedingLineBreak())break;{const e=ze();Ve(),t=152===e?(r=t,i=fr(),xt(N.createSatisfiesExpression(r,i),r.pos)):Pr(t,fr())}}else t=Er(t,gt(),wr(o),n)}var r,i;return t}function Fr(){return(!Ee()||103!==ze())&&sy(ze())>0}function Er(e,t,n,r){return xt(N.createBinaryExpression(e,t,n),r)}function Pr(e,t){return xt(N.createAsExpression(e,t),e.pos)}function Ar(){const e=Be();return xt(N.createPrefixUnaryExpression(ze(),Ue(Or)),e)}function Ir(){if(function(){switch(ze()){case 40:case 41:case 55:case 54:case 91:case 114:case 116:case 135:return!1;case 30:if(1!==m)return!1;default:return!0}}()){const e=Be(),t=Lr();return 43===ze()?Dr(sy(ze()),t,e):t}const e=ze(),t=Or();if(43===ze()){const n=Xa(d,t.pos),{end:r}=t;216===t.kind?je(n,r,la.A_type_assertion_expression_is_not_allowed_in_the_left_hand_side_of_an_exponentiation_expression_Consider_enclosing_the_expression_in_parentheses):(un.assert(wh(e)),je(n,r,la.An_unary_expression_with_the_0_operator_is_not_allowed_in_the_left_hand_side_of_an_exponentiation_expression_Consider_enclosing_the_expression_in_parentheses,Da(e)))}return t}function Or(){switch(ze()){case 40:case 41:case 55:case 54:return Ar();case 91:return function(){const e=Be();return xt(N.createDeleteExpression(Ue(Or)),e)}();case 114:return function(){const e=Be();return xt(N.createTypeOfExpression(Ue(Or)),e)}();case 116:return function(){const e=Be();return xt(N.createVoidExpression(Ue(Or)),e)}();case 30:return 1===m?Mr(!0,void 0,void 0,!0):function(){un.assert(1!==m,"Type assertions should never be parsed in JSX; they should be parsed as comparisons or JSX elements/fragments.");const e=Be();at(30);const t=fr();at(32);const n=Or();return xt(N.createTypeAssertion(t,n),e)}();case 135:if(135===ze()&&(Ie()||tt(mi)))return function(){const e=Be();return xt(N.createAwaitExpression(Ue(Or)),e)}();default:return Lr()}}function Lr(){if(46===ze()||47===ze()){const e=Be();return xt(N.createPrefixUnaryExpression(ze(),Ue(jr)),e)}if(1===m&&30===ze()&&tt(Vt))return Mr(!0);const e=jr();if(un.assert(R_(e)),(46===ze()||47===ze())&&!a.hasPrecedingLineBreak()){const t=ze();return Ve(),xt(N.createPostfixUnaryExpression(e,t),e.pos)}return e}function jr(){const e=Be();let t;return 102===ze()?tt(Bn)?(u|=4194304,t=gt()):tt(Jn)?(Ve(),Ve(),t=xt(N.createMetaProperty(102,Nt()),e),u|=8388608):t=Rr():t=108===ze()?function(){const e=Be();let t=gt();if(30===ze()){const e=Be(),n=nt(Zr);void 0!==n&&(je(e,Be(),la.super_may_not_use_type_arguments),Gr()||(t=N.createExpressionWithTypeArguments(t,n)))}return 21===ze()||25===ze()||23===ze()?t:(mt(25,la.super_must_be_followed_by_an_argument_list_or_member_access),xt(R(t,cn(!0,!0,!0)),e))}():Rr(),Qr(e,t)}function Rr(){return Kr(Be(),ei(),!0)}function Mr(e,t,n,r=!1){const i=Be(),o=function(e){const t=Be();if(at(30),32===ze())return Ze(),xt(N.createJsxOpeningFragment(),t);const n=zr(),r=524288&w?void 0:io(),i=function(){const e=Be();return xt(N.createJsxAttributes(Xt(13,Ur)),e)}();let o;return 32===ze()?(Ze(),o=N.createJsxOpeningElement(n,r,i)):(at(44),at(32,void 0,!1)&&(e?Ve():Ze()),o=N.createJsxSelfClosingElement(n,r,i)),xt(o,t)}(e);let a;if(286===o.kind){let t,r=Jr(o);const s=r[r.length-1];if(284===(null==s?void 0:s.kind)&&!nO(s.openingElement.tagName,s.closingElement.tagName)&&nO(o.tagName,s.closingElement.tagName)){const e=s.children.end,n=xt(N.createJsxElement(s.openingElement,s.children,xt(N.createJsxClosingElement(xt(A(""),e,e)),e,e)),s.openingElement.pos,e);r=bt([...r.slice(0,r.length-1),n],r.pos,e),t=s.closingElement}else t=function(e,t){const n=Be();at(31);const r=zr();return at(32,void 0,!1)&&(t||!nO(e.tagName,r)?Ve():Ze()),xt(N.createJsxClosingElement(r),n)}(o,e),nO(o.tagName,t.tagName)||(n&&TE(n)&&nO(t.tagName,n.tagName)?Re(o.tagName,la.JSX_element_0_has_no_corresponding_closing_tag,Hd(d,o.tagName)):Re(t.tagName,la.Expected_corresponding_JSX_closing_tag_for_0,Hd(d,o.tagName)));a=xt(N.createJsxElement(o,r,t),i)}else 289===o.kind?a=xt(N.createJsxFragment(o,Jr(o),function(e){const t=Be();return at(31),at(32,la.Expected_corresponding_closing_tag_for_JSX_fragment,!1)&&(e?Ve():Ze()),xt(N.createJsxJsxClosingFragment(),t)}(e)),i):(un.assert(285===o.kind),a=o);if(!r&&e&&30===ze()){const e=void 0===t?a.pos:t,n=nt((()=>Mr(!0,e)));if(n){const t=kt(28,!1);return TT(t,n.pos,0),je(Xa(d,e),n.end,la.JSX_expressions_must_have_one_parent_element),xt(N.createBinaryExpression(a,t,n),i)}}return a}function Br(e,t){switch(t){case 1:if(NE(e))Re(e,la.JSX_fragment_has_no_corresponding_closing_tag);else{const t=e.tagName;je(Math.min(Xa(d,t.pos),t.end),t.end,la.JSX_element_0_has_no_corresponding_closing_tag,Hd(d,e.tagName))}return;case 31:case 7:return;case 12:case 13:return function(){const e=Be(),t=N.createJsxText(a.getTokenValue(),13===v);return v=a.scanJsxToken(),xt(t,e)}();case 19:return qr(!1);case 30:return Mr(!1,void 0,e);default:return un.assertNever(t)}}function Jr(e){const t=[],n=Be(),r=T;for(T|=16384;;){const n=Br(e,v=a.reScanJsxToken());if(!n)break;if(t.push(n),TE(e)&&284===(null==n?void 0:n.kind)&&!nO(n.openingElement.tagName,n.closingElement.tagName)&&nO(e.tagName,n.closingElement.tagName))break}return T=r,bt(t,n)}function zr(){const e=Be(),t=function(){const e=Be();Ye();const t=110===ze(),n=Dt();return pt(59)?(Ye(),xt(N.createJsxNamespacedName(n,Dt()),e)):t?xt(N.createToken(110),e):n}();if(IE(t))return t;let n=t;for(;pt(25);)n=xt(R(n,cn(!0,!1,!1)),e);return n}function qr(e){const t=Be();if(!at(19))return;let n,r;return 20!==ze()&&(e||(n=ft(26)),r=yr()),e?at(20):at(20,void 0,!1)&&Ze(),xt(N.createJsxExpression(n,r),t)}function Ur(){if(19===ze())return function(){const e=Be();at(19),at(26);const t=yr();return at(20),xt(N.createJsxSpreadAttribute(t),e)}();const e=Be();return xt(N.createJsxAttribute(function(){const e=Be();Ye();const t=Dt();return pt(59)?(Ye(),xt(N.createJsxNamespacedName(t,Dt()),e)):t}(),function(){if(64===ze()){if(11===(v=a.scanJsxAttributeValue()))return fn();if(19===ze())return qr(!0);if(30===ze())return Mr(!0);Oe(la.or_JSX_element_expected)}}()),e)}function Vr(){return Ve(),_a(ze())||23===ze()||Gr()}function Wr(e){if(64&e.flags)return!0;if(yF(e)){let t=e.expression;for(;yF(t)&&!(64&t.flags);)t=t.expression;if(64&t.flags){for(;yF(e);)e.flags|=64,e=e.expression;return!0}}return!1}function $r(e,t,n){const r=cn(!0,!0,!0),i=n||Wr(t),o=i?M(t,n,r):R(t,r);return i&&qN(o.name)&&Re(o.name,la.An_optional_chain_cannot_contain_private_identifiers),mF(t)&&t.typeArguments&&je(t.typeArguments.pos-1,Xa(d,t.typeArguments.end)+1,la.An_instantiation_expression_cannot_be_followed_by_a_property_access),xt(o,e)}function Hr(e,t,n){let r;if(24===ze())r=kt(80,!0,la.An_element_access_expression_should_take_an_argument);else{const e=Se(yr);Lh(e)&&(e.text=St(e.text)),r=e}return at(24),xt(n||Wr(t)?z(t,n,r):J(t,r),e)}function Kr(e,t,n){for(;;){let r,i=!1;if(n&&29===ze()&&tt(Vr)?(r=mt(29),i=_a(ze())):i=pt(25),i)t=$r(e,t,r);else if(!r&&Ae()||!pt(23)){if(!Gr()){if(!r){if(54===ze()&&!a.hasPrecedingLineBreak()){Ve(),t=xt(N.createNonNullExpression(t),e);continue}const n=nt(Zr);if(n){t=xt(N.createExpressionWithTypeArguments(t,n),e);continue}}return t}t=r||233!==t.kind?Xr(e,t,r,void 0):Xr(e,t.expression,r,t.typeArguments)}else t=Hr(e,t,r)}}function Gr(){return 15===ze()||16===ze()}function Xr(e,t,n,r){const i=N.createTaggedTemplateExpression(t,r,15===ze()?(Ke(!0),fn()):ln(!0));return(n||64&t.flags)&&(i.flags|=64),i.questionDotToken=n,xt(i,e)}function Qr(e,t){for(;;){let n;t=Kr(e,t,!0);const r=ft(29);if(r&&(n=nt(Zr),Gr()))t=Xr(e,t,r,n);else{if(!n&&21!==ze()){if(r){const n=kt(80,!1,la.Identifier_expected);t=xt(M(t,r,n),e)}break}{r||233!==t.kind||(n=t.typeArguments,t=t.expression);const i=Yr();t=xt(r||Wr(t)?U(t,r,n,i):q(t,n,i),e)}}}return t}function Yr(){at(21);const e=tn(11,ni);return at(22),e}function Zr(){if(524288&w)return;if(30!==Ge())return;Ve();const e=tn(20,fr);return 32===He()?(Ve(),e&&function(){switch(ze()){case 21:case 15:case 16:return!0;case 30:case 32:case 40:case 41:return!1}return a.hasPrecedingLineBreak()||Fr()||!hr()}()?e:void 0):void 0}function ei(){switch(ze()){case 15:26656&a.getTokenFlags()&&Ke(!1);case 9:case 10:case 11:return fn();case 110:case 108:case 106:case 112:case 97:return gt();case 21:return function(){const e=Be(),t=Je();at(21);const n=Se(yr);return at(22),ue(xt(W(n),e),t)}();case 23:return ri();case 19:return oi();case 134:if(!tt(fi))break;return ai();case 60:return function(){const e=Be(),t=Je(),n=Xi(!0);if(86===ze())return eo(e,t,n,231);const r=kt(282,!0,la.Expression_expected);return xT(r,e),r.modifiers=n,r}();case 86:return eo(Be(),Je(),void 0,231);case 100:return ai();case 105:return function(){const e=Be();if(at(105),pt(25)){const t=Nt();return xt(N.createMetaProperty(105,t),e)}let t,n=Kr(Be(),ei(),!1);233===n.kind&&(t=n.typeArguments,n=n.expression),29===ze()&&Oe(la.Invalid_optional_chain_from_new_expression_Did_you_mean_to_call_0,Hd(d,n));const r=21===ze()?Yr():void 0;return xt(V(n,t,r),e)}();case 44:case 69:if(14===(v=a.reScanSlashToken()))return fn();break;case 16:return ln(!1);case 81:return Pt()}return wt(la.Expression_expected)}function ti(){return 26===ze()?function(){const e=Be();at(26);const t=br(!0);return xt(N.createSpreadElement(t),e)}():28===ze()?xt(N.createOmittedExpression(),Be()):br(!0)}function ni(){return xe(40960,ti)}function ri(){const e=Be(),t=a.getTokenStart(),n=at(23),r=a.hasPrecedingLineBreak(),i=tn(15,ti);return dt(23,24,n,t),xt(L(i,r),e)}function ii(){const e=Be(),t=Je();if(ft(26)){const n=br(!0);return ue(xt(N.createSpreadAssignment(n),e),t)}const n=Xi(!0);if(At(139))return Wi(e,t,n,177,0);if(At(153))return Wi(e,t,n,178,0);const r=ft(42),i=ot(),o=Et(),a=ft(58),s=ft(54);if(r||21===ze()||30===ze())return qi(e,t,n,r,o,a,s);let c;if(i&&59!==ze()){const e=ft(64),t=e?Se((()=>br(!0))):void 0;c=N.createShorthandPropertyAssignment(o,t),c.equalsToken=e}else{at(59);const e=Se((()=>br(!0)));c=N.createPropertyAssignment(o,e)}return c.modifiers=n,c.questionToken=a,c.exclamationToken=s,ue(xt(c,e),t)}function oi(){const e=Be(),t=a.getTokenStart(),n=at(19),r=a.hasPrecedingLineBreak(),i=tn(12,ii,!0);return dt(19,20,n,t),xt(j(i,r),e)}function ai(){const e=Ae();ve(!1);const t=Be(),n=Je(),r=Xi(!1);at(100);const i=ft(42),o=i?1:0,a=$(r,WN)?2:0,s=o&&a?ke(81920,si):o?ke(16384,si):a?we(si):si();const c=Cn(),l=Pn(o|a),_=Fn(59,!1),u=li(o|a);return ve(e),ue(xt(N.createFunctionExpression(r,i,s,c,l,_,u),t),n)}function si(){return it()?Ct():void 0}function ci(e,t){const n=Be(),r=Je(),i=a.getTokenStart(),o=at(19,t);if(o||e){const e=a.hasPrecedingLineBreak(),t=Xt(1,Ci);dt(19,20,o,i);const s=ue(xt(H(t,e),n),r);return 64===ze()&&(Oe(la.Declaration_or_statement_expected_This_follows_a_block_of_statements_so_if_you_intended_to_write_a_destructuring_assignment_you_might_need_to_wrap_the_whole_assignment_in_parentheses),Ve()),s}{const e=rn();return ue(xt(H(e,void 0),n),r)}}function li(e,t){const n=Fe();he(!!(1&e));const r=Ie();be(!!(2&e));const i=re;re=!1;const o=Ae();o&&ve(!1);const a=ci(!!(16&e),t);return o&&ve(!0),re=i,he(n),be(r),a}function _i(e){const t=Be(),n=Je();at(252===e?83:88);const r=ht()?void 0:wt();return vt(),ue(xt(252===e?N.createBreakStatement(r):N.createContinueStatement(r),t),n)}function ui(){return 84===ze()?function(){const e=Be(),t=Je();at(84);const n=Se(yr);at(59);const r=Xt(3,Ci);return ue(xt(N.createCaseClause(n,r),e),t)}():function(){const e=Be();at(90),at(59);const t=Xt(3,Ci);return xt(N.createDefaultClause(t),e)}()}function di(){return Ve(),_a(ze())&&!a.hasPrecedingLineBreak()}function pi(){return Ve(),86===ze()&&!a.hasPrecedingLineBreak()}function fi(){return Ve(),100===ze()&&!a.hasPrecedingLineBreak()}function mi(){return Ve(),(_a(ze())||9===ze()||10===ze()||11===ze())&&!a.hasPrecedingLineBreak()}function gi(){for(;;)switch(ze()){case 115:case 121:case 87:case 100:case 86:case 94:return!0;case 160:return ki();case 135:return Ti();case 120:case 156:return Ve(),!a.hasPrecedingLineBreak()&&ot();case 144:case 145:return Ve(),!a.hasPrecedingLineBreak()&&(ot()||11===ze());case 128:case 129:case 134:case 138:case 123:case 124:case 125:case 148:const e=ze();if(Ve(),a.hasPrecedingLineBreak())return!1;if(138===e&&156===ze())return!0;continue;case 162:return Ve(),19===ze()||80===ze()||95===ze();case 102:return Ve(),11===ze()||42===ze()||19===ze()||_a(ze());case 95:let t=Ve();if(156===t&&(t=tt(Ve)),64===t||42===t||19===t||90===t||130===t||60===t)return!0;continue;case 126:Ve();continue;default:return!1}}function hi(){return tt(gi)}function yi(){switch(ze()){case 60:case 27:case 19:case 115:case 121:case 160:case 100:case 86:case 94:case 101:case 92:case 117:case 99:case 88:case 83:case 107:case 118:case 109:case 111:case 113:case 89:case 85:case 98:case 134:case 138:case 120:case 144:case 145:case 156:case 162:return!0;case 102:return hi()||tt(zn);case 87:case 95:return hi();case 129:case 125:case 123:case 124:case 126:case 148:return hi()||!tt(di);default:return hr()}}function vi(){return Ve(),it()||19===ze()||23===ze()}function bi(){return xi(!0)}function xi(e){return Ve(),(!e||165!==ze())&&(it()||19===ze())&&!a.hasPrecedingLineBreak()}function ki(){return tt(xi)}function Si(e){return 160===Ve()&&xi(e)}function Ti(){return tt(Si)}function Ci(){switch(ze()){case 27:return function(){const e=Be(),t=Je();return at(27),ue(xt(N.createEmptyStatement(),e),t)}();case 19:return ci(!1);case 115:return Ji(Be(),Je(),void 0);case 121:if(tt(vi))return Ji(Be(),Je(),void 0);break;case 135:if(Ti())return Ji(Be(),Je(),void 0);break;case 160:if(ki())return Ji(Be(),Je(),void 0);break;case 100:return zi(Be(),Je(),void 0);case 86:return Zi(Be(),Je(),void 0);case 101:return function(){const e=Be(),t=Je();at(101);const n=a.getTokenStart(),r=at(21),i=Se(yr);dt(21,22,r,n);const o=Ci(),s=pt(93)?Ci():void 0;return ue(xt(Q(i,o,s),e),t)}();case 92:return function(){const e=Be(),t=Je();at(92);const n=Ci();at(117);const r=a.getTokenStart(),i=at(21),o=Se(yr);return dt(21,22,i,r),pt(27),ue(xt(N.createDoStatement(n,o),e),t)}();case 117:return function(){const e=Be(),t=Je();at(117);const n=a.getTokenStart(),r=at(21),i=Se(yr);dt(21,22,r,n);const o=Ci();return ue(xt(Y(i,o),e),t)}();case 99:return function(){const e=Be(),t=Je();at(99);const n=ft(135);let r,i;if(at(21),27!==ze()&&(r=115===ze()||121===ze()||87===ze()||160===ze()&&tt(bi)||135===ze()&&tt(Si)?Mi(!0):ke(8192,yr)),n?at(165):pt(165)){const e=Se((()=>br(!0)));at(22),i=ee(n,r,e,Ci())}else if(pt(103)){const e=Se(yr);at(22),i=N.createForInStatement(r,e,Ci())}else{at(27);const e=27!==ze()&&22!==ze()?Se(yr):void 0;at(27);const t=22!==ze()?Se(yr):void 0;at(22),i=Z(r,e,t,Ci())}return ue(xt(i,e),t)}();case 88:return _i(251);case 83:return _i(252);case 107:return function(){const e=Be(),t=Je();at(107);const n=ht()?void 0:Se(yr);return vt(),ue(xt(N.createReturnStatement(n),e),t)}();case 118:return function(){const e=Be(),t=Je();at(118);const n=a.getTokenStart(),r=at(21),i=Se(yr);dt(21,22,r,n);const o=ke(67108864,Ci);return ue(xt(N.createWithStatement(i,o),e),t)}();case 109:return function(){const e=Be(),t=Je();at(109),at(21);const n=Se(yr);at(22);const r=function(){const e=Be();at(19);const t=Xt(2,ui);return at(20),xt(N.createCaseBlock(t),e)}();return ue(xt(N.createSwitchStatement(n,r),e),t)}();case 111:return function(){const e=Be(),t=Je();at(111);let n=a.hasPrecedingLineBreak()?void 0:Se(yr);return void 0===n&&(S++,n=xt(A(""),Be())),yt()||lt(n),ue(xt(N.createThrowStatement(n),e),t)}();case 113:case 85:case 98:return function(){const e=Be(),t=Je();at(113);const n=ci(!1),r=85===ze()?function(){const e=Be();let t;at(85),pt(21)?(t=Ri(),at(22)):t=void 0;const n=ci(!1);return xt(N.createCatchClause(t,n),e)}():void 0;let i;return r&&98!==ze()||(at(98,la.catch_or_finally_expected),i=ci(!1)),ue(xt(N.createTryStatement(n,r,i),e),t)}();case 89:return function(){const e=Be(),t=Je();return at(89),vt(),ue(xt(N.createDebuggerStatement(),e),t)}();case 60:return Ni();case 134:case 120:case 156:case 144:case 145:case 138:case 87:case 94:case 95:case 102:case 123:case 124:case 125:case 128:case 129:case 126:case 148:case 162:if(hi())return Ni()}return function(){const e=Be();let t,n=Je();const r=21===ze(),i=Se(yr);return zN(i)&&pt(59)?t=N.createLabeledStatement(i,Ci()):(yt()||lt(i),t=X(i),r&&(n=!1)),ue(xt(t,e),n)}()}function wi(e){return 138===e.kind}function Ni(){const e=Be(),t=Je(),n=Xi(!0);if($(n,wi)){const r=function(e){return ke(33554432,(()=>{const t=Yt(T,e);if(t)return Zt(t)}))}(e);if(r)return r;for(const e of n)e.flags|=33554432;return ke(33554432,(()=>Di(e,t,n)))}return Di(e,t,n)}function Di(e,t,n){switch(ze()){case 115:case 121:case 87:case 160:case 135:return Ji(e,t,n);case 100:return zi(e,t,n);case 86:return Zi(e,t,n);case 120:return function(e,t,n){at(120);const r=wt(),i=Cn(),o=to(),a=qn();return ue(xt(N.createInterfaceDeclaration(n,r,i,o,a),e),t)}(e,t,n);case 156:return function(e,t,n){at(156),a.hasPrecedingLineBreak()&&Oe(la.Line_break_not_permitted_here);const r=wt(),i=Cn();at(64);const o=141===ze()&&nt(Gn)||fr();return vt(),ue(xt(N.createTypeAliasDeclaration(n,r,i,o),e),t)}(e,t,n);case 94:return function(e,t,n){at(94);const r=wt();let i;return at(19)?(i=xe(81920,(()=>tn(6,ao))),at(20)):i=rn(),ue(xt(N.createEnumDeclaration(n,r,i),e),t)}(e,t,n);case 162:case 144:case 145:return function(e,t,n){let r=0;if(162===ze())return lo(e,t,n);if(pt(145))r|=32;else if(at(144),11===ze())return lo(e,t,n);return co(e,t,n,r)}(e,t,n);case 102:return function(e,t,n){at(102);const r=a.getTokenFullStart();let i;ot()&&(i=wt());let o=!1;if("type"===(null==i?void 0:i.escapedText)&&(161!==ze()||ot()&&tt(Ei))&&(ot()||42===ze()||19===ze())&&(o=!0,i=ot()?wt():void 0),i&&28!==ze()&&161!==ze())return function(e,t,n,r,i){at(64);const o=149===ze()&&tt(_o)?function(){const e=Be();at(149),at(21);const t=yo();return at(22),xt(N.createExternalModuleReference(t),e)}():an(!1);vt();return ue(xt(N.createImportEqualsDeclaration(n,i,r,o),e),t)}(e,t,n,i,o);const s=fo(i,r,o),c=yo(),l=mo();return vt(),ue(xt(N.createImportDeclaration(n,s,c,l),e),t)}(e,t,n);case 95:switch(Ve(),ze()){case 90:case 64:return function(e,t,n){const r=Ie();let i;be(!0),pt(64)?i=!0:at(90);const o=br(!0);return vt(),be(r),ue(xt(N.createExportAssignment(n,i,o),e),t)}(e,t,n);case 130:return function(e,t,n){at(130),at(145);const r=wt();vt();const i=N.createNamespaceExportDeclaration(r);return i.modifiers=n,ue(xt(i,e),t)}(e,t,n);default:return function(e,t,n){const r=Ie();let i,o,s;be(!0);const c=pt(156),l=Be();pt(42)?(pt(130)&&(i=function(e){return xt(N.createNamespaceExport(bo(Nt)),e)}(l)),at(161),o=yo()):(i=xo(279),(161===ze()||11===ze()&&!a.hasPrecedingLineBreak())&&(at(161),o=yo()));const _=ze();return!o||118!==_&&132!==_||a.hasPrecedingLineBreak()||(s=ho(_)),vt(),be(r),ue(xt(N.createExportDeclaration(n,c,i,o,s),e),t)}(e,t,n)}default:if(n){const t=kt(282,!0,la.Declaration_expected);return xT(t,e),t.modifiers=n,t}return}}function Fi(){return 11===Ve()}function Ei(){return Ve(),161===ze()||64===ze()}function Pi(e,t){if(19!==ze()){if(4&e)return void An();if(ht())return void vt()}return li(e,t)}function Ai(){const e=Be();if(28===ze())return xt(N.createOmittedExpression(),e);const t=ft(26),n=Li(),r=vr();return xt(N.createBindingElement(t,void 0,n,r),e)}function Ii(){const e=Be(),t=ft(26),n=it();let r,i=Et();n&&59!==ze()?(r=i,i=void 0):(at(59),r=Li());const o=vr();return xt(N.createBindingElement(t,i,r,o),e)}function Oi(){return 19===ze()||23===ze()||81===ze()||it()}function Li(e){return 23===ze()?function(){const e=Be();at(23);const t=Se((()=>tn(10,Ai)));return at(24),xt(N.createArrayBindingPattern(t),e)}():19===ze()?function(){const e=Be();at(19);const t=Se((()=>tn(9,Ii)));return at(20),xt(N.createObjectBindingPattern(t),e)}():Ct(e)}function ji(){return Ri(!0)}function Ri(e){const t=Be(),n=Je(),r=Li(la.Private_identifiers_are_not_allowed_in_variable_declarations);let i;e&&80===r.kind&&54===ze()&&!a.hasPrecedingLineBreak()&&(i=gt());const o=mr(),s=Nr(ze())?void 0:vr();return ue(xt(te(r,i,o,s),t),n)}function Mi(e){const t=Be();let n,r=0;switch(ze()){case 115:break;case 121:r|=1;break;case 87:r|=2;break;case 160:r|=4;break;case 135:un.assert(Ti()),r|=6,Ve();break;default:un.fail()}if(Ve(),165===ze()&&tt(Bi))n=rn();else{const t=Ee();ge(e),n=tn(8,e?Ri:ji),ge(t)}return xt(ne(n,r),t)}function Bi(){return qt()&&22===Ve()}function Ji(e,t,n){const r=Mi(!1);return vt(),ue(xt(G(n,r),e),t)}function zi(e,t,n){const r=Ie(),i=Wv(n);at(100);const o=ft(42),a=2048&i?si():Ct(),s=o?1:0,c=1024&i?2:0,l=Cn();32&i&&be(!0);const _=Pn(s|c),u=Fn(59,!1),d=Pi(s|c,la.or_expected);return be(r),ue(xt(N.createFunctionDeclaration(n,o,a,l,_,u,d),e),t)}function qi(e,t,n,r,i,o,a,s){const c=r?1:0,l=$(n,WN)?2:0,_=Cn(),u=Pn(c|l),d=Fn(59,!1),p=Pi(c|l,s),f=N.createMethodDeclaration(n,r,i,o,_,u,d,p);return f.exclamationToken=a,ue(xt(f,e),t)}function Ui(e,t,n,r,i){const o=i||a.hasPrecedingLineBreak()?void 0:ft(54),s=mr(),c=xe(90112,vr);return function(e,t,n){if(60!==ze()||a.hasPrecedingLineBreak())return 21===ze()?(Oe(la.Cannot_start_a_function_call_in_a_type_annotation),void Ve()):void(!t||ht()?yt()||(n?Oe(la._0_expected,Da(27)):lt(e)):n?Oe(la._0_expected,Da(27)):Oe(la.Expected_for_property_initializer));Oe(la.Decorators_must_precede_the_name_and_all_keywords_of_property_declarations)}(r,s,c),ue(xt(N.createPropertyDeclaration(n,r,i||o,s,c),e),t)}function Vi(e,t,n){const r=ft(42),i=Et(),o=ft(58);return r||21===ze()||30===ze()?qi(e,t,n,r,i,o,void 0,la.or_expected):Ui(e,t,n,i,o)}function Wi(e,t,n,r,i){const o=Et(),a=Cn(),s=Pn(0),c=Fn(59,!1),l=Pi(i),_=177===r?N.createGetAccessorDeclaration(n,o,s,c,l):N.createSetAccessorDeclaration(n,o,s,l);return _.typeParameters=a,fD(_)&&(_.type=c),ue(xt(_,e),t)}function $i(){let e;if(60===ze())return!0;for(;Gl(ze());){if(e=ze(),Ql(e))return!0;Ve()}if(42===ze())return!0;if(Ft()&&(e=ze(),Ve()),23===ze())return!0;if(void 0!==e){if(!Th(e)||153===e||139===e)return!0;switch(ze()){case 21:case 30:case 54:case 59:case 64:case 58:return!0;default:return ht()}}return!1}function Hi(){if(Ie()&&135===ze()){const e=Be(),t=wt(la.Expression_expected);return Ve(),Qr(e,Kr(e,t,!0))}return jr()}function Ki(){const e=Be();if(!pt(60))return;const t=ke(32768,Hi);return xt(N.createDecorator(t),e)}function Gi(e,t,n){const r=Be(),i=ze();if(87===ze()&&t){if(!nt(It))return}else{if(n&&126===ze()&&tt(uo))return;if(e&&126===ze())return;if(!Gl(ze())||!nt(Ot))return}return xt(O(i),r)}function Xi(e,t,n){const r=Be();let i,o,a,s=!1,c=!1,l=!1;if(e&&60===ze())for(;o=Ki();)i=ie(i,o);for(;a=Gi(s,t,n);)126===a.kind&&(s=!0),i=ie(i,a),c=!0;if(c&&e&&60===ze())for(;o=Ki();)i=ie(i,o),l=!0;if(l)for(;a=Gi(s,t,n);)126===a.kind&&(s=!0),i=ie(i,a);return i&&bt(i,r)}function Qi(){let e;if(134===ze()){const t=Be();Ve(),e=bt([xt(O(134),t)],t)}return e}function Yi(){const e=Be(),t=Je();if(27===ze())return Ve(),ue(xt(N.createSemicolonClassElement(),e),t);const n=Xi(!0,!0,!0);if(126===ze()&&tt(uo))return function(e,t,n){mt(126);const r=function(){const e=Fe(),t=Ie();he(!1),be(!0);const n=ci(!1);return he(e),be(t),n}(),i=ue(xt(N.createClassStaticBlockDeclaration(r),e),t);return i.modifiers=n,i}(e,t,n);if(At(139))return Wi(e,t,n,177,0);if(At(153))return Wi(e,t,n,178,0);if(137===ze()||11===ze()){const r=function(e,t,n){return nt((()=>{if(137===ze()?at(137):11===ze()&&21===tt(Ve)?nt((()=>{const e=fn();return"constructor"===e.text?e:void 0})):void 0){const r=Cn(),i=Pn(0),o=Fn(59,!1),a=Pi(0,la.or_expected),s=N.createConstructorDeclaration(n,i,a);return s.typeParameters=r,s.type=o,ue(xt(s,e),t)}}))}(e,t,n);if(r)return r}if(On())return jn(e,t,n);if(_a(ze())||11===ze()||9===ze()||10===ze()||42===ze()||23===ze()){if($(n,wi)){for(const e of n)e.flags|=33554432;return ke(33554432,(()=>Vi(e,t,n)))}return Vi(e,t,n)}if(n){const r=kt(80,!0,la.Declaration_expected);return Ui(e,t,n,r,void 0)}return un.fail("Should not have attempted to parse class member declaration.")}function Zi(e,t,n){return eo(e,t,n,263)}function eo(e,t,n,r){const i=Ie();at(86);const o=!it()||119===ze()&&tt(Ut)?void 0:Tt(it()),a=Cn();$(n,UN)&&be(!0);const s=to();let c;return at(19)?(c=Xt(5,Yi),at(20)):c=rn(),be(i),ue(xt(263===r?N.createClassDeclaration(n,o,a,s,c):N.createClassExpression(n,o,a,s,c),e),t)}function to(){if(oo())return Xt(22,no)}function no(){const e=Be(),t=ze();un.assert(96===t||119===t),Ve();const n=tn(7,ro);return xt(N.createHeritageClause(t,n),e)}function ro(){const e=Be(),t=jr();if(233===t.kind)return t;const n=io();return xt(N.createExpressionWithTypeArguments(t,n),e)}function io(){return 30===ze()?on(20,fr,30,32):void 0}function oo(){return 96===ze()||119===ze()}function ao(){const e=Be(),t=Je(),n=Et(),r=Se(vr);return ue(xt(N.createEnumMember(n,r),e),t)}function so(){const e=Be();let t;return at(19)?(t=Xt(1,Ci),at(20)):t=rn(),xt(N.createModuleBlock(t),e)}function co(e,t,n,r){const i=32&r,o=8&r?Nt():wt(),a=pt(25)?co(Be(),!1,void 0,8|i):so();return ue(xt(N.createModuleDeclaration(n,o,a,r),e),t)}function lo(e,t,n){let r,i,o=0;return 162===ze()?(r=wt(),o|=2048):(r=fn(),r.text=St(r.text)),19===ze()?i=so():vt(),ue(xt(N.createModuleDeclaration(n,r,i,o),e),t)}function _o(){return 21===Ve()}function uo(){return 19===Ve()}function po(){return 44===Ve()}function fo(e,t,n,r=!1){let i;return(e||42===ze()||19===ze())&&(i=function(e,t,n,r){let i;return e&&!pt(28)||(r&&a.setSkipJsDocLeadingAsterisks(!0),i=42===ze()?function(){const e=Be();at(42),at(130);const t=wt();return xt(N.createNamespaceImport(t),e)}():xo(275),r&&a.setSkipJsDocLeadingAsterisks(!1)),xt(N.createImportClause(n,e,i),t)}(e,t,n,r),at(161)),i}function mo(){const e=ze();if((118===e||132===e)&&!a.hasPrecedingLineBreak())return ho(e)}function go(){const e=Be(),t=_a(ze())?Nt():gn(11);at(59);const n=br(!0);return xt(N.createImportAttribute(t,n),e)}function ho(e,t){const n=Be();t||at(e);const r=a.getTokenStart();if(at(19)){const t=a.hasPrecedingLineBreak(),i=tn(24,go,!0);if(!at(20)){const e=ye(g);e&&e.code===la._0_expected.code&&iT(e,Vx(c,d,r,1,la.The_parser_expected_to_find_a_1_to_match_the_0_token_here,"{","}"))}return xt(N.createImportAttributes(i,t,e),n)}{const t=bt([],Be(),void 0,!1);return xt(N.createImportAttributes(t,!1,e),n)}}function yo(){if(11===ze()){const e=fn();return e.text=St(e.text),e}return yr()}function vo(){return _a(ze())||11===ze()}function bo(e){return 11===ze()?fn():e()}function xo(e){const t=Be();return xt(275===e?N.createNamedImports(on(23,So,19,20)):N.createNamedExports(on(23,ko,19,20)),t)}function ko(){const e=Je();return ue(To(281),e)}function So(){return To(276)}function To(e){const t=Be();let n,r=Th(ze())&&!ot(),i=a.getTokenStart(),o=a.getTokenEnd(),s=!1,c=!0,l=bo(Nt);if(80===l.kind&&"type"===l.escapedText)if(130===ze()){const e=Nt();if(130===ze()){const t=Nt();vo()?(s=!0,n=e,l=bo(_),c=!1):(n=l,l=t,c=!1)}else vo()?(n=l,c=!1,l=bo(_)):(s=!0,l=e)}else vo()&&(s=!0,l=bo(_));return c&&130===ze()&&(n=l,at(130),l=bo(_)),276===e&&(80!==l.kind?(je(Xa(d,l.pos),l.end,la.Identifier_expected),l=ST(kt(80,!1),l.pos,l.pos)):r&&je(i,o,la.Identifier_expected)),xt(276===e?N.createImportSpecifier(s,n,l):N.createExportSpecifier(s,n,l),t);function _(){return r=Th(ze())&&!ot(),i=a.getTokenStart(),o=a.getTokenEnd(),Nt()}}let Co;var wo;let No;var Do;let Fo;(wo=Co||(Co={}))[wo.SourceElements=0]="SourceElements",wo[wo.BlockStatements=1]="BlockStatements",wo[wo.SwitchClauses=2]="SwitchClauses",wo[wo.SwitchClauseStatements=3]="SwitchClauseStatements",wo[wo.TypeMembers=4]="TypeMembers",wo[wo.ClassMembers=5]="ClassMembers",wo[wo.EnumMembers=6]="EnumMembers",wo[wo.HeritageClauseElement=7]="HeritageClauseElement",wo[wo.VariableDeclarations=8]="VariableDeclarations",wo[wo.ObjectBindingElements=9]="ObjectBindingElements",wo[wo.ArrayBindingElements=10]="ArrayBindingElements",wo[wo.ArgumentExpressions=11]="ArgumentExpressions",wo[wo.ObjectLiteralMembers=12]="ObjectLiteralMembers",wo[wo.JsxAttributes=13]="JsxAttributes",wo[wo.JsxChildren=14]="JsxChildren",wo[wo.ArrayLiteralMembers=15]="ArrayLiteralMembers",wo[wo.Parameters=16]="Parameters",wo[wo.JSDocParameters=17]="JSDocParameters",wo[wo.RestProperties=18]="RestProperties",wo[wo.TypeParameters=19]="TypeParameters",wo[wo.TypeArguments=20]="TypeArguments",wo[wo.TupleElementTypes=21]="TupleElementTypes",wo[wo.HeritageClauses=22]="HeritageClauses",wo[wo.ImportOrExportSpecifiers=23]="ImportOrExportSpecifiers",wo[wo.ImportAttributes=24]="ImportAttributes",wo[wo.JSDocComment=25]="JSDocComment",wo[wo.Count=26]="Count",(Do=No||(No={}))[Do.False=0]="False",Do[Do.True=1]="True",Do[Do.Unknown=2]="Unknown",(e=>{function t(e){const t=Be(),n=(e?pt:at)(19),r=ke(16777216,Sn);e&&!n||ut(20);const i=N.createJSDocTypeExpression(r);return de(i),xt(i,t)}function n(){const e=Be(),t=pt(19),n=Be();let r=an(!1);for(;81===ze();)Xe(),We(),r=xt(N.createJSDocMemberName(r,wt()),n);t&&ut(20);const i=N.createJSDocNameReference(r);return de(i),xt(i,e)}let r;var i;let o;var s;function l(e=0,r){const i=d,o=void 0===r?i.length:e+r;if(r=o-e,un.assert(e>=0),un.assert(e<=o),un.assert(o<=i.length),!lI(i,e))return;let s,l,_,u,p,f=[];const m=[],g=T;T|=1<<25;const h=a.scanRange(e+3,r-5,(function(){let t,n=1,r=e-(i.lastIndexOf("\n",e)+1)+4;function c(e){t||(t=r),f.push(e),r+=e.length}for(We();Z(5););Z(4)&&(n=0,r=0);e:for(;;){switch(ze()){case 60:v(f),p||(p=Be()),(d=C(r))&&(s?s.push(d):(s=[d],l=d.pos),_=d.end),n=0,t=void 0;break;case 4:f.push(a.getTokenText()),n=0,r=0;break;case 42:const i=a.getTokenText();1===n?(n=2,c(i)):(un.assert(0===n),n=1,r+=i.length);break;case 5:un.assert(2!==n,"whitespace shouldn't come from the scanner while saving top-level comment text");const o=a.getTokenText();void 0!==t&&r+o.length>t&&f.push(o.slice(t-r)),r+=o.length;break;case 1:break e;case 82:n=2,c(a.getTokenValue());break;case 19:n=2;const g=a.getTokenFullStart(),h=F(a.getTokenEnd()-1);if(h){u||y(f),m.push(xt(N.createJSDocText(f.join("")),u??e,g)),m.push(h),f=[],u=a.getTokenEnd();break}default:n=2,c(a.getTokenText())}2===n?$e(!1):We()}var d;const g=f.join("").trimEnd();m.length&&g.length&&m.push(xt(N.createJSDocText(g),u??e,p)),m.length&&s&&un.assertIsDefined(p,"having parsed tags implies that the end of the comment span should be set");const h=s&&bt(s,l,_);return xt(N.createJSDocComment(m.length?bt(m,e,p):g.length?g:void 0,h),e,o)}));return T=g,h;function y(e){for(;e.length&&("\n"===e[0]||"\r"===e[0]);)e.shift()}function v(e){for(;e.length;){const t=e[e.length-1].trimEnd();if(""!==t){if(t.lengthH(n))))&&345!==t.kind;)if(s=!0,344===t.kind){if(r){const e=Oe(la.A_JSDoc_typedef_comment_may_not_contain_multiple_type_tags);e&&iT(e,Vx(c,d,0,0,la.The_tag_was_first_specified_here));break}r=t}else o=ie(o,t);if(s){const t=i&&188===i.type.kind,n=N.createJSDocTypeLiteral(o,t);i=r&&r.typeExpression&&!j(r.typeExpression.type)?r.typeExpression:xt(n,e),a=i.end}}a=a||void 0!==s?Be():(o??i??t).end,s||(s=w(e,a,n,r));return xt(N.createJSDocTypedefTag(t,i,o,s),e,a)}(r,i,e,o);break;case"callback":l=function(e,t,n,r){const i=U();x();let o=D(n);const a=V(e,n);o||(o=w(e,Be(),n,r));const s=void 0!==o?Be():a.end;return xt(N.createJSDocCallbackTag(t,a,i,o),e,s)}(r,i,e,o);break;case"overload":l=function(e,t,n,r){x();let i=D(n);const o=V(e,n);i||(i=w(e,Be(),n,r));const a=void 0!==i?Be():o.end;return xt(N.createJSDocOverloadTag(t,o,i),e,a)}(r,i,e,o);break;case"satisfies":l=function(e,n,r,i){const o=t(!1),a=void 0!==r&&void 0!==i?w(e,Be(),r,i):void 0;return xt(N.createJSDocSatisfiesTag(n,o,a),e)}(r,i,e,o);break;case"see":l=function(e,t,r,i){const o=23===ze()||tt((()=>60===We()&&_a(We())&&P(a.getTokenValue())))?void 0:n(),s=void 0!==r&&void 0!==i?w(e,Be(),r,i):void 0;return xt(N.createJSDocSeeTag(t,o,s),e)}(r,i,e,o);break;case"exception":case"throws":l=function(e,t,n,r){const i=I(),o=w(e,Be(),n,r);return xt(N.createJSDocThrowsTag(t,i,o),e)}(r,i,e,o);break;case"import":l=function(e,t,n,r){const i=a.getTokenFullStart();let o;ot()&&(o=wt());const s=fo(o,i,!0,!0),c=yo(),l=mo(),_=void 0!==n&&void 0!==r?w(e,Be(),n,r):void 0;return xt(N.createJSDocImportTag(t,s,c,l,_),e)}(r,i,e,o);break;default:l=function(e,t,n,r){return xt(N.createJSDocUnknownTag(t,w(e,Be(),n,r)),e)}(r,i,e,o)}return l}function w(e,t,n,r){return r||(n+=t-e),D(n,r.slice(n))}function D(e,t){const n=Be();let r=[];const i=[];let o,s,c=0;function l(t){s||(s=e),r.push(t),e+=t.length}void 0!==t&&(""!==t&&l(t),c=1);let _=ze();e:for(;;){switch(_){case 4:c=0,r.push(a.getTokenText()),e=0;break;case 60:a.resetTokenState(a.getTokenEnd()-1);break e;case 1:break e;case 5:un.assert(2!==c&&3!==c,"whitespace shouldn't come from the scanner while saving comment text");const t=a.getTokenText();void 0!==s&&e+t.length>s&&(r.push(t.slice(s-e)),c=2),e+=t.length;break;case 19:c=2;const _=a.getTokenFullStart(),u=F(a.getTokenEnd()-1);u?(i.push(xt(N.createJSDocText(r.join("")),o??n,_)),i.push(u),r=[],o=a.getTokenEnd()):l(a.getTokenText());break;case 62:c=3===c?2:3,l(a.getTokenText());break;case 82:3!==c&&(c=2),l(a.getTokenValue());break;case 42:if(0===c){c=1,e+=1;break}default:3!==c&&(c=2),l(a.getTokenText())}_=2===c||3===c?$e(3===c):We()}y(r);const u=r.join("").trimEnd();return i.length?(u.length&&i.push(xt(N.createJSDocText(u),o??n)),bt(i,n,a.getTokenEnd())):u.length?u:void 0}function F(e){const t=nt(E);if(!t)return;We(),x();const n=function(){if(_a(ze())){const e=Be();let t=Nt();for(;pt(25);)t=xt(N.createQualifiedName(t,81===ze()?kt(80,!1):Nt()),e);for(;81===ze();)Xe(),We(),t=xt(N.createJSDocMemberName(t,wt()),e);return t}}(),r=[];for(;20!==ze()&&4!==ze()&&1!==ze();)r.push(a.getTokenText()),We();return xt(("link"===t?N.createJSDocLink:"linkcode"===t?N.createJSDocLinkCode:N.createJSDocLinkPlain)(n,r.join("")),e,a.getTokenEnd())}function E(){if(k(),19===ze()&&60===We()&&_a(We())){const e=a.getTokenValue();if(P(e))return e}}function P(e){return"link"===e||"linkcode"===e||"linkplain"===e}function I(){return k(),19===ze()?t():void 0}function L(){const e=Z(23);e&&x();const t=Z(62),n=function(){let e=ee();for(pt(23)&&at(24);pt(25);){const t=ee();pt(23)&&at(24),e=sn(e,t)}return e}();return t&&(function(e){if(ze()===e)return function(){const e=Be(),t=ze();return We(),xt(O(t),e)}()}(62)||(un.assert(wh(62)),kt(62,!1,la._0_expected,Da(62)))),e&&(x(),ft(64)&&yr(),at(24)),{name:n,isBracketed:e}}function j(e){switch(e.kind){case 151:return!0;case 188:return j(e.elementType);default:return vD(e)&&zN(e.typeName)&&"Object"===e.typeName.escapedText&&!e.typeArguments}}function M(e,t,n,r){let i=I(),o=!i;k();const{name:a,isBracketed:s}=L(),c=k();o&&!tt(E)&&(i=I());const l=w(e,Be(),r,c),_=function(e,t,n,r){if(e&&j(e.type)){const i=Be();let o,a;for(;o=nt((()=>G(n,r,t)));)341===o.kind||348===o.kind?a=ie(a,o):345===o.kind&&Re(o.tagName,la.A_JSDoc_template_tag_may_not_follow_a_typedef_callback_or_overload_tag);if(a){const t=xt(N.createJSDocTypeLiteral(a,188===e.type.kind),i);return xt(N.createJSDocTypeExpression(t),i)}}}(i,a,n,r);return _&&(i=_,o=!0),xt(1===n?N.createJSDocPropertyTag(t,a,s,i,o,l):N.createJSDocParameterTag(t,a,s,i,o,l),e)}function B(e,n,r,i){$(s,SP)&&je(n.pos,a.getTokenStart(),la._0_tag_already_specified,fc(n.escapedText));const o=t(!0),c=void 0!==r&&void 0!==i?w(e,Be(),r,i):void 0;return xt(N.createJSDocTypeTag(n,o,c),e)}function J(){const e=pt(19),t=Be(),n=function(){const e=Be();let t=ee();for(;pt(25);){const n=ee();t=xt(R(t,n),e)}return t}();a.setSkipJsDocLeadingAsterisks(!0);const r=io();a.setSkipJsDocLeadingAsterisks(!1);const i=xt(N.createExpressionWithTypeArguments(n,r),t);return e&&at(20),i}function z(e,t,n,r,i){return xt(t(n,w(e,Be(),r,i)),e)}function q(e,n,r,i){const o=t(!0);return x(),xt(N.createJSDocThisTag(n,o,w(e,Be(),r,i)),e)}function U(e){const t=a.getTokenStart();if(!_a(ze()))return;const n=ee();if(pt(25)){const r=U(!0);return xt(N.createModuleDeclaration(void 0,n,r,e?8:void 0),t)}return e&&(n.flags|=4096),n}function V(e,t){const n=function(e){const t=Be();let n,r;for(;n=nt((()=>G(4,e)));){if(345===n.kind){Re(n.tagName,la.A_JSDoc_template_tag_may_not_follow_a_typedef_callback_or_overload_tag);break}r=ie(r,n)}return bt(r||[],t)}(t),r=nt((()=>{if(Z(60)){const e=C(t);if(e&&342===e.kind)return e}}));return xt(N.createJSDocSignature(void 0,n,r),e)}function W(e,t){for(;!zN(e)||!zN(t);){if(zN(e)||zN(t)||e.right.escapedText!==t.right.escapedText)return!1;e=e.left,t=t.left}return e.escapedText===t.escapedText}function H(e){return G(1,e)}function G(e,t,n){let r=!0,i=!1;for(;;)switch(We()){case 60:if(r){const r=X(e,t);return!(r&&(341===r.kind||348===r.kind)&&n&&(zN(r.name)||!W(n,r.name.left)))&&r}i=!1;break;case 4:r=!0,i=!1;break;case 42:i&&(r=!1),i=!0;break;case 80:r=!1;break;case 1:return!1}}function X(e,t){un.assert(60===ze());const n=a.getTokenFullStart();We();const r=ee(),i=k();let o;switch(r.escapedText){case"type":return 1===e&&B(n,r);case"prop":case"property":o=1;break;case"arg":case"argument":case"param":o=6;break;case"template":return Y(n,r,t,i);case"this":return q(n,r,t,i);default:return!1}return!!(e&o)&&M(n,r,e,t)}function Q(){const e=Be(),t=Z(23);t&&x();const n=Xi(!1,!0),r=ee(la.Unexpected_token_A_type_parameter_name_was_expected_without_curly_braces);let i;if(t&&(x(),at(64),i=ke(16777216,Sn),at(24)),!Cd(r))return xt(N.createTypeParameterDeclaration(n,r,void 0,i),e)}function Y(e,n,r,i){const o=19===ze()?t():void 0,a=function(){const e=Be(),t=[];do{x();const e=Q();void 0!==e&&t.push(e),k()}while(Z(28));return bt(t,e)}();return xt(N.createJSDocTemplateTag(n,o,a,w(e,Be(),r,i)),e)}function Z(e){return ze()===e&&(We(),!0)}function ee(e){if(!_a(ze()))return kt(80,!e,e||la.Identifier_expected);S++;const t=a.getTokenStart(),n=a.getTokenEnd(),r=ze(),i=St(a.getTokenValue()),o=xt(A(i,r),t,n);return We(),o}}e.parseJSDocTypeExpressionForTests=function(e,n,r){ce("file.js",e,99,void 0,1,0),a.setText(e,n,r),v=a.scan();const i=t(),o=pe("file.js",99,1,!1,[],O(1),0,rt),s=Hx(g,o);return h&&(o.jsDocDiagnostics=Hx(h,o)),le(),i?{jsDocTypeExpression:i,diagnostics:s}:void 0},e.parseJSDocTypeExpression=t,e.parseJSDocNameReference=n,e.parseIsolatedJSDocComment=function(e,t,n){ce("",e,99,void 0,1,0);const r=ke(16777216,(()=>l(t,n))),i=Hx(g,{languageVariant:0,text:e});return le(),r?{jsDoc:r,diagnostics:i}:void 0},e.parseJSDocComment=function(e,t,n){const r=v,i=g.length,o=oe,a=ke(16777216,(()=>l(t,n)));return wT(a,e),524288&w&&(h||(h=[]),se(h,g,i)),v=r,g.length=i,oe=o,a},(i=r||(r={}))[i.BeginningOfLine=0]="BeginningOfLine",i[i.SawAsterisk=1]="SawAsterisk",i[i.SavingComments=2]="SavingComments",i[i.SavingBackticks=3]="SavingBackticks",(s=o||(o={}))[s.Property=1]="Property",s[s.Parameter=2]="Parameter",s[s.CallbackParameter=4]="CallbackParameter"})(Fo=e.JSDocParser||(e.JSDocParser={}))})(pI||(pI={}));var qI,UI=new WeakSet,VI=new WeakSet;function WI(e){VI.add(e)}function $I(e){return void 0!==HI(e)}function HI(e){const t=Po(e,NS,!1);if(t)return t;if(ko(e,".ts")){const t=Fo(e),n=t.lastIndexOf(".d.");if(n>=0)return t.substring(n)}}function KI(e,t){const n=[];for(const e of ls(t,0)||l)eO(n,e,t.substring(e.pos,e.end));e.pragmas=new Map;for(const t of n)if(e.pragmas.has(t.name)){const n=e.pragmas.get(t.name);n instanceof Array?n.push(t.args):e.pragmas.set(t.name,[n,t.args])}else e.pragmas.set(t.name,t.args)}function GI(e,t){e.checkJsDirective=void 0,e.referencedFiles=[],e.typeReferenceDirectives=[],e.libReferenceDirectives=[],e.amdDependencies=[],e.hasNoDefaultLib=!1,e.pragmas.forEach(((n,r)=>{switch(r){case"reference":{const r=e.referencedFiles,i=e.typeReferenceDirectives,o=e.libReferenceDirectives;d(Ye(n),(n=>{const{types:a,lib:s,path:c,"resolution-mode":l,preserve:_}=n.arguments,u="true"===_||void 0;if("true"===n.arguments["no-default-lib"])e.hasNoDefaultLib=!0;else if(a){const e=function(e,t,n,r){if(e)return"import"===e?99:"require"===e?1:void r(t,n-t,la.resolution_mode_should_be_either_require_or_import)}(l,a.pos,a.end,t);i.push({pos:a.pos,end:a.end,fileName:a.value,...e?{resolutionMode:e}:{},...u?{preserve:u}:{}})}else s?o.push({pos:s.pos,end:s.end,fileName:s.value,...u?{preserve:u}:{}}):c?r.push({pos:c.pos,end:c.end,fileName:c.value,...u?{preserve:u}:{}}):t(n.range.pos,n.range.end-n.range.pos,la.Invalid_reference_directive_syntax)}));break}case"amd-dependency":e.amdDependencies=E(Ye(n),(e=>({name:e.arguments.name,path:e.arguments.path})));break;case"amd-module":if(n instanceof Array)for(const r of n)e.moduleName&&t(r.range.pos,r.range.end-r.range.pos,la.An_AMD_module_cannot_have_multiple_name_assignments),e.moduleName=r.arguments.name;else e.moduleName=n.arguments.name;break;case"ts-nocheck":case"ts-check":d(Ye(n),(t=>{(!e.checkJsDirective||t.range.pos>e.checkJsDirective.pos)&&(e.checkJsDirective={enabled:"ts-check"===r,end:t.range.end,pos:t.range.pos})}));break;case"jsx":case"jsxfrag":case"jsximportsource":case"jsxruntime":return;default:un.fail("Unhandled pragma kind")}}))}(e=>{function t(e,t,r,o,a,s,c){return void(r?_(e):l(e));function l(e){let r="";if(c&&n(e)&&(r=a.substring(e.pos,e.end)),RP(e,t),ST(e,e.pos+o,e.end+o),c&&n(e)&&un.assert(r===s.substring(e.pos,e.end)),PI(e,l,_),Nu(e))for(const t of e.jsDoc)l(t);i(e,c)}function _(e){ST(e,e.pos+o,e.end+o);for(const t of e)l(t)}}function n(e){switch(e.kind){case 11:case 9:case 80:return!0}return!1}function r(e,t,n,r,i){un.assert(e.end>=t,"Adjusting an element that was entirely before the change range"),un.assert(e.pos<=n,"Adjusting an element that was entirely after the change range"),un.assert(e.pos<=e.end);const o=Math.min(e.pos,r),a=e.end>=n?e.end+i:Math.min(e.end,r);if(un.assert(o<=a),e.parent){const t=e.parent;un.assertGreaterThanOrEqual(o,t.pos),un.assertLessThanOrEqual(a,t.end)}ST(e,o,a)}function i(e,t){if(t){let t=e.pos;const n=e=>{un.assert(e.pos>=t),t=e.end};if(Nu(e))for(const t of e.jsDoc)n(t);PI(e,n),un.assert(t<=e.end)}}function o(e,t){let n,r=e;if(PI(e,(function e(i){if(!Cd(i))return i.pos<=t?(i.pos>=r.pos&&(r=i),tt),!0)})),n){const e=function(e){for(;;){const t=yx(e);if(!t)return e;e=t}}(n);e.pos>r.pos&&(r=e)}return r}function a(e,t,n,r){const i=e.text;if(n&&(un.assert(i.length-n.span.length+n.newLength===t.length),r||un.shouldAssert(3))){const e=i.substr(0,n.span.start),r=t.substr(0,n.span.start);un.assert(e===r);const o=i.substring(Ds(n.span),i.length),a=t.substring(Ds($s(n)),t.length);un.assert(o===a)}}function s(e){let t=e.statements,n=0;un.assert(n(o!==i&&(r&&r.end===o&&n=e.pos&&i=e.pos&&i0&&t<=1;t++){const t=o(e,n);un.assert(t.pos<=n);const r=t.pos;n=Math.max(0,r-1)}return Ks(Ws(n,Ds(t.span)),t.newLength+(t.span.start-n))}(e,c);a(e,n,d,l),un.assert(d.span.start<=c.span.start),un.assert(Ds(d.span)===Ds(c.span)),un.assert(Ds($s(d))===Ds($s(c)));const p=$s(d).length-d.span.length;!function(e,n,o,a,s,c,l,_){return void u(e);function u(p){if(un.assert(p.pos<=p.end),p.pos>o)return void t(p,e,!1,s,c,l,_);const f=p.end;if(f>=n){if(WI(p),RP(p,e),r(p,n,o,a,s),PI(p,u,d),Nu(p))for(const e of p.jsDoc)u(e);i(p,_)}else un.assert(fo)return void t(i,e,!0,s,c,l,_);const d=i.end;if(d>=n){WI(i),r(i,n,o,a,s);for(const e of i)u(e)}else un.assert(dr){_();const t={range:{pos:e.pos+i,end:e.end+i},type:l};c=ie(c,t),s&&un.assert(o.substring(e.pos,e.end)===a.substring(t.range.pos,t.range.end))}}return _(),c;function _(){l||(l=!0,c?t&&c.push(...t):c=t)}}(e.commentDirectives,f.commentDirectives,d.span.start,Ds(d.span),p,_,n,l),f.impliedNodeFormat=e.impliedNodeFormat,MP(e,f),f},e.createSyntaxCursor=s,(l=c||(c={}))[l.Value=-1]="Value"})(qI||(qI={}));var XI=new Map;function QI(e){if(XI.has(e))return XI.get(e);const t=new RegExp(`(\\s${e}\\s*=\\s*)(?:(?:'([^']*)')|(?:"([^"]*)"))`,"im");return XI.set(e,t),t}var YI=/^\/\/\/\s*<(\S+)\s.*?\/>/m,ZI=/^\/\/\/?\s*@([^\s:]+)((?:[^\S\r\n]|:).*)?$/m;function eO(e,t,n){const r=2===t.kind&&YI.exec(n);if(r){const i=r[1].toLowerCase(),o=Li[i];if(!(o&&1&o.kind))return;if(o.args){const r={};for(const e of o.args){const i=QI(e.name).exec(n);if(!i&&!e.optional)return;if(i){const n=i[2]||i[3];if(e.captureSpan){const o=t.pos+i.index+i[1].length+1;r[e.name]={value:n,pos:o,end:o+n.length}}else r[e.name]=n}}e.push({name:i,args:{arguments:r,range:t}})}else e.push({name:i,args:{arguments:{},range:t}});return}const i=2===t.kind&&ZI.exec(n);if(i)return tO(e,t,2,i);if(3===t.kind){const r=/@(\S+)(\s+(?:\S.*)?)?$/gm;let i;for(;i=r.exec(n);)tO(e,t,4,i)}}function tO(e,t,n,r){if(!r)return;const i=r[1].toLowerCase(),o=Li[i];if(!(o&&o.kind&n))return;const a=function(e,t){if(!t)return{};if(!e.args)return{};const n=t.trim().split(/\s+/),r={};for(let t=0;t[""+t,e]))),sO=[["es5","lib.es5.d.ts"],["es6","lib.es2015.d.ts"],["es2015","lib.es2015.d.ts"],["es7","lib.es2016.d.ts"],["es2016","lib.es2016.d.ts"],["es2017","lib.es2017.d.ts"],["es2018","lib.es2018.d.ts"],["es2019","lib.es2019.d.ts"],["es2020","lib.es2020.d.ts"],["es2021","lib.es2021.d.ts"],["es2022","lib.es2022.d.ts"],["es2023","lib.es2023.d.ts"],["es2024","lib.es2024.d.ts"],["esnext","lib.esnext.d.ts"],["dom","lib.dom.d.ts"],["dom.iterable","lib.dom.iterable.d.ts"],["dom.asynciterable","lib.dom.asynciterable.d.ts"],["webworker","lib.webworker.d.ts"],["webworker.importscripts","lib.webworker.importscripts.d.ts"],["webworker.iterable","lib.webworker.iterable.d.ts"],["webworker.asynciterable","lib.webworker.asynciterable.d.ts"],["scripthost","lib.scripthost.d.ts"],["es2015.core","lib.es2015.core.d.ts"],["es2015.collection","lib.es2015.collection.d.ts"],["es2015.generator","lib.es2015.generator.d.ts"],["es2015.iterable","lib.es2015.iterable.d.ts"],["es2015.promise","lib.es2015.promise.d.ts"],["es2015.proxy","lib.es2015.proxy.d.ts"],["es2015.reflect","lib.es2015.reflect.d.ts"],["es2015.symbol","lib.es2015.symbol.d.ts"],["es2015.symbol.wellknown","lib.es2015.symbol.wellknown.d.ts"],["es2016.array.include","lib.es2016.array.include.d.ts"],["es2016.intl","lib.es2016.intl.d.ts"],["es2017.arraybuffer","lib.es2017.arraybuffer.d.ts"],["es2017.date","lib.es2017.date.d.ts"],["es2017.object","lib.es2017.object.d.ts"],["es2017.sharedmemory","lib.es2017.sharedmemory.d.ts"],["es2017.string","lib.es2017.string.d.ts"],["es2017.intl","lib.es2017.intl.d.ts"],["es2017.typedarrays","lib.es2017.typedarrays.d.ts"],["es2018.asyncgenerator","lib.es2018.asyncgenerator.d.ts"],["es2018.asynciterable","lib.es2018.asynciterable.d.ts"],["es2018.intl","lib.es2018.intl.d.ts"],["es2018.promise","lib.es2018.promise.d.ts"],["es2018.regexp","lib.es2018.regexp.d.ts"],["es2019.array","lib.es2019.array.d.ts"],["es2019.object","lib.es2019.object.d.ts"],["es2019.string","lib.es2019.string.d.ts"],["es2019.symbol","lib.es2019.symbol.d.ts"],["es2019.intl","lib.es2019.intl.d.ts"],["es2020.bigint","lib.es2020.bigint.d.ts"],["es2020.date","lib.es2020.date.d.ts"],["es2020.promise","lib.es2020.promise.d.ts"],["es2020.sharedmemory","lib.es2020.sharedmemory.d.ts"],["es2020.string","lib.es2020.string.d.ts"],["es2020.symbol.wellknown","lib.es2020.symbol.wellknown.d.ts"],["es2020.intl","lib.es2020.intl.d.ts"],["es2020.number","lib.es2020.number.d.ts"],["es2021.promise","lib.es2021.promise.d.ts"],["es2021.string","lib.es2021.string.d.ts"],["es2021.weakref","lib.es2021.weakref.d.ts"],["es2021.intl","lib.es2021.intl.d.ts"],["es2022.array","lib.es2022.array.d.ts"],["es2022.error","lib.es2022.error.d.ts"],["es2022.intl","lib.es2022.intl.d.ts"],["es2022.object","lib.es2022.object.d.ts"],["es2022.string","lib.es2022.string.d.ts"],["es2022.regexp","lib.es2022.regexp.d.ts"],["es2023.array","lib.es2023.array.d.ts"],["es2023.collection","lib.es2023.collection.d.ts"],["es2023.intl","lib.es2023.intl.d.ts"],["es2024.arraybuffer","lib.es2024.arraybuffer.d.ts"],["es2024.collection","lib.es2024.collection.d.ts"],["es2024.object","lib.es2024.object.d.ts"],["es2024.promise","lib.es2024.promise.d.ts"],["es2024.regexp","lib.es2024.regexp.d.ts"],["es2024.sharedmemory","lib.es2024.sharedmemory.d.ts"],["es2024.string","lib.es2024.string.d.ts"],["esnext.array","lib.es2023.array.d.ts"],["esnext.collection","lib.esnext.collection.d.ts"],["esnext.symbol","lib.es2019.symbol.d.ts"],["esnext.asynciterable","lib.es2018.asynciterable.d.ts"],["esnext.intl","lib.esnext.intl.d.ts"],["esnext.disposable","lib.esnext.disposable.d.ts"],["esnext.bigint","lib.es2020.bigint.d.ts"],["esnext.string","lib.es2022.string.d.ts"],["esnext.promise","lib.es2024.promise.d.ts"],["esnext.weakref","lib.es2021.weakref.d.ts"],["esnext.decorators","lib.esnext.decorators.d.ts"],["esnext.object","lib.es2024.object.d.ts"],["esnext.array","lib.esnext.array.d.ts"],["esnext.regexp","lib.es2024.regexp.d.ts"],["esnext.string","lib.es2024.string.d.ts"],["esnext.iterator","lib.esnext.iterator.d.ts"],["decorators","lib.decorators.d.ts"],["decorators.legacy","lib.decorators.legacy.d.ts"]],cO=sO.map((e=>e[0])),lO=new Map(sO),_O=[{name:"watchFile",type:new Map(Object.entries({fixedpollinginterval:0,prioritypollinginterval:1,dynamicprioritypolling:2,fixedchunksizepolling:3,usefsevents:4,usefseventsonparentdirectory:5})),category:la.Watch_and_Build_Modes,description:la.Specify_how_the_TypeScript_watch_mode_works,defaultValueDescription:4},{name:"watchDirectory",type:new Map(Object.entries({usefsevents:0,fixedpollinginterval:1,dynamicprioritypolling:2,fixedchunksizepolling:3})),category:la.Watch_and_Build_Modes,description:la.Specify_how_directories_are_watched_on_systems_that_lack_recursive_file_watching_functionality,defaultValueDescription:0},{name:"fallbackPolling",type:new Map(Object.entries({fixedinterval:0,priorityinterval:1,dynamicpriority:2,fixedchunksize:3})),category:la.Watch_and_Build_Modes,description:la.Specify_what_approach_the_watcher_should_use_if_the_system_runs_out_of_native_file_watchers,defaultValueDescription:1},{name:"synchronousWatchDirectory",type:"boolean",category:la.Watch_and_Build_Modes,description:la.Synchronously_call_callbacks_and_update_the_state_of_directory_watchers_on_platforms_that_don_t_support_recursive_watching_natively,defaultValueDescription:!1},{name:"excludeDirectories",type:"list",element:{name:"excludeDirectory",type:"string",isFilePath:!0,extraValidation:Cj},allowConfigDirTemplateSubstitution:!0,category:la.Watch_and_Build_Modes,description:la.Remove_a_list_of_directories_from_the_watch_process},{name:"excludeFiles",type:"list",element:{name:"excludeFile",type:"string",isFilePath:!0,extraValidation:Cj},allowConfigDirTemplateSubstitution:!0,category:la.Watch_and_Build_Modes,description:la.Remove_a_list_of_files_from_the_watch_mode_s_processing}],uO=[{name:"help",shortName:"h",type:"boolean",showInSimplifiedHelpView:!0,isCommandLineOnly:!0,category:la.Command_line_Options,description:la.Print_this_message,defaultValueDescription:!1},{name:"help",shortName:"?",type:"boolean",isCommandLineOnly:!0,category:la.Command_line_Options,defaultValueDescription:!1},{name:"watch",shortName:"w",type:"boolean",showInSimplifiedHelpView:!0,isCommandLineOnly:!0,category:la.Command_line_Options,description:la.Watch_input_files,defaultValueDescription:!1},{name:"preserveWatchOutput",type:"boolean",showInSimplifiedHelpView:!1,category:la.Output_Formatting,description:la.Disable_wiping_the_console_in_watch_mode,defaultValueDescription:!1},{name:"listFiles",type:"boolean",category:la.Compiler_Diagnostics,description:la.Print_all_of_the_files_read_during_the_compilation,defaultValueDescription:!1},{name:"explainFiles",type:"boolean",category:la.Compiler_Diagnostics,description:la.Print_files_read_during_the_compilation_including_why_it_was_included,defaultValueDescription:!1},{name:"listEmittedFiles",type:"boolean",category:la.Compiler_Diagnostics,description:la.Print_the_names_of_emitted_files_after_a_compilation,defaultValueDescription:!1},{name:"pretty",type:"boolean",showInSimplifiedHelpView:!0,category:la.Output_Formatting,description:la.Enable_color_and_formatting_in_TypeScript_s_output_to_make_compiler_errors_easier_to_read,defaultValueDescription:!0},{name:"traceResolution",type:"boolean",category:la.Compiler_Diagnostics,description:la.Log_paths_used_during_the_moduleResolution_process,defaultValueDescription:!1},{name:"diagnostics",type:"boolean",category:la.Compiler_Diagnostics,description:la.Output_compiler_performance_information_after_building,defaultValueDescription:!1},{name:"extendedDiagnostics",type:"boolean",category:la.Compiler_Diagnostics,description:la.Output_more_detailed_compiler_performance_information_after_building,defaultValueDescription:!1},{name:"generateCpuProfile",type:"string",isFilePath:!0,paramType:la.FILE_OR_DIRECTORY,category:la.Compiler_Diagnostics,description:la.Emit_a_v8_CPU_profile_of_the_compiler_run_for_debugging,defaultValueDescription:"profile.cpuprofile"},{name:"generateTrace",type:"string",isFilePath:!0,paramType:la.DIRECTORY,category:la.Compiler_Diagnostics,description:la.Generates_an_event_trace_and_a_list_of_types},{name:"incremental",shortName:"i",type:"boolean",category:la.Projects,description:la.Save_tsbuildinfo_files_to_allow_for_incremental_compilation_of_projects,transpileOptionValue:void 0,defaultValueDescription:la.false_unless_composite_is_set},{name:"declaration",shortName:"d",type:"boolean",affectsBuildInfo:!0,showInSimplifiedHelpView:!0,category:la.Emit,transpileOptionValue:void 0,description:la.Generate_d_ts_files_from_TypeScript_and_JavaScript_files_in_your_project,defaultValueDescription:la.false_unless_composite_is_set},{name:"declarationMap",type:"boolean",affectsBuildInfo:!0,showInSimplifiedHelpView:!0,category:la.Emit,defaultValueDescription:!1,description:la.Create_sourcemaps_for_d_ts_files},{name:"emitDeclarationOnly",type:"boolean",affectsBuildInfo:!0,showInSimplifiedHelpView:!0,category:la.Emit,description:la.Only_output_d_ts_files_and_not_JavaScript_files,transpileOptionValue:void 0,defaultValueDescription:!1},{name:"sourceMap",type:"boolean",affectsBuildInfo:!0,showInSimplifiedHelpView:!0,category:la.Emit,defaultValueDescription:!1,description:la.Create_source_map_files_for_emitted_JavaScript_files},{name:"inlineSourceMap",type:"boolean",affectsBuildInfo:!0,category:la.Emit,description:la.Include_sourcemap_files_inside_the_emitted_JavaScript,defaultValueDescription:!1},{name:"noCheck",type:"boolean",showInSimplifiedHelpView:!1,category:la.Compiler_Diagnostics,description:la.Disable_full_type_checking_only_critical_parse_and_emit_errors_will_be_reported,transpileOptionValue:!0,defaultValueDescription:!1},{name:"noEmit",type:"boolean",showInSimplifiedHelpView:!0,category:la.Emit,description:la.Disable_emitting_files_from_a_compilation,transpileOptionValue:void 0,defaultValueDescription:!1},{name:"assumeChangesOnlyAffectDirectDependencies",type:"boolean",affectsSemanticDiagnostics:!0,affectsEmit:!0,affectsBuildInfo:!0,category:la.Watch_and_Build_Modes,description:la.Have_recompiles_in_projects_that_use_incremental_and_watch_mode_assume_that_changes_within_a_file_will_only_affect_files_directly_depending_on_it,defaultValueDescription:!1},{name:"locale",type:"string",category:la.Command_line_Options,isCommandLineOnly:!0,description:la.Set_the_language_of_the_messaging_from_TypeScript_This_does_not_affect_emit,defaultValueDescription:la.Platform_specific}],dO={name:"target",shortName:"t",type:new Map(Object.entries({es3:0,es5:1,es6:2,es2015:2,es2016:3,es2017:4,es2018:5,es2019:6,es2020:7,es2021:8,es2022:9,es2023:10,es2024:11,esnext:99})),affectsSourceFile:!0,affectsModuleResolution:!0,affectsEmit:!0,affectsBuildInfo:!0,deprecatedKeys:new Set(["es3"]),paramType:la.VERSION,showInSimplifiedHelpView:!0,category:la.Language_and_Environment,description:la.Set_the_JavaScript_language_version_for_emitted_JavaScript_and_include_compatible_library_declarations,defaultValueDescription:1},pO={name:"module",shortName:"m",type:new Map(Object.entries({none:0,commonjs:1,amd:2,system:4,umd:3,es6:5,es2015:5,es2020:6,es2022:7,esnext:99,node16:100,nodenext:199,preserve:200})),affectsSourceFile:!0,affectsModuleResolution:!0,affectsEmit:!0,affectsBuildInfo:!0,paramType:la.KIND,showInSimplifiedHelpView:!0,category:la.Modules,description:la.Specify_what_module_code_is_generated,defaultValueDescription:void 0},fO=[{name:"all",type:"boolean",showInSimplifiedHelpView:!0,category:la.Command_line_Options,description:la.Show_all_compiler_options,defaultValueDescription:!1},{name:"version",shortName:"v",type:"boolean",showInSimplifiedHelpView:!0,category:la.Command_line_Options,description:la.Print_the_compiler_s_version,defaultValueDescription:!1},{name:"init",type:"boolean",showInSimplifiedHelpView:!0,category:la.Command_line_Options,description:la.Initializes_a_TypeScript_project_and_creates_a_tsconfig_json_file,defaultValueDescription:!1},{name:"project",shortName:"p",type:"string",isFilePath:!0,showInSimplifiedHelpView:!0,category:la.Command_line_Options,paramType:la.FILE_OR_DIRECTORY,description:la.Compile_the_project_given_the_path_to_its_configuration_file_or_to_a_folder_with_a_tsconfig_json},{name:"showConfig",type:"boolean",showInSimplifiedHelpView:!0,category:la.Command_line_Options,isCommandLineOnly:!0,description:la.Print_the_final_configuration_instead_of_building,defaultValueDescription:!1},{name:"listFilesOnly",type:"boolean",category:la.Command_line_Options,isCommandLineOnly:!0,description:la.Print_names_of_files_that_are_part_of_the_compilation_and_then_stop_processing,defaultValueDescription:!1},dO,pO,{name:"lib",type:"list",element:{name:"lib",type:lO,defaultValueDescription:void 0},affectsProgramStructure:!0,showInSimplifiedHelpView:!0,category:la.Language_and_Environment,description:la.Specify_a_set_of_bundled_library_declaration_files_that_describe_the_target_runtime_environment,transpileOptionValue:void 0},{name:"allowJs",type:"boolean",allowJsFlag:!0,affectsBuildInfo:!0,showInSimplifiedHelpView:!0,category:la.JavaScript_Support,description:la.Allow_JavaScript_files_to_be_a_part_of_your_program_Use_the_checkJS_option_to_get_errors_from_these_files,defaultValueDescription:!1},{name:"checkJs",type:"boolean",affectsModuleResolution:!0,affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,showInSimplifiedHelpView:!0,category:la.JavaScript_Support,description:la.Enable_error_reporting_in_type_checked_JavaScript_files,defaultValueDescription:!1},{name:"jsx",type:oO,affectsSourceFile:!0,affectsEmit:!0,affectsBuildInfo:!0,affectsModuleResolution:!0,affectsSemanticDiagnostics:!0,paramType:la.KIND,showInSimplifiedHelpView:!0,category:la.Language_and_Environment,description:la.Specify_what_JSX_code_is_generated,defaultValueDescription:void 0},{name:"outFile",type:"string",affectsEmit:!0,affectsBuildInfo:!0,affectsDeclarationPath:!0,isFilePath:!0,paramType:la.FILE,showInSimplifiedHelpView:!0,category:la.Emit,description:la.Specify_a_file_that_bundles_all_outputs_into_one_JavaScript_file_If_declaration_is_true_also_designates_a_file_that_bundles_all_d_ts_output,transpileOptionValue:void 0},{name:"outDir",type:"string",affectsEmit:!0,affectsBuildInfo:!0,affectsDeclarationPath:!0,isFilePath:!0,paramType:la.DIRECTORY,showInSimplifiedHelpView:!0,category:la.Emit,description:la.Specify_an_output_folder_for_all_emitted_files},{name:"rootDir",type:"string",affectsEmit:!0,affectsBuildInfo:!0,affectsDeclarationPath:!0,isFilePath:!0,paramType:la.LOCATION,category:la.Modules,description:la.Specify_the_root_folder_within_your_source_files,defaultValueDescription:la.Computed_from_the_list_of_input_files},{name:"composite",type:"boolean",affectsBuildInfo:!0,isTSConfigOnly:!0,category:la.Projects,transpileOptionValue:void 0,defaultValueDescription:!1,description:la.Enable_constraints_that_allow_a_TypeScript_project_to_be_used_with_project_references},{name:"tsBuildInfoFile",type:"string",affectsEmit:!0,affectsBuildInfo:!0,isFilePath:!0,paramType:la.FILE,category:la.Projects,transpileOptionValue:void 0,defaultValueDescription:".tsbuildinfo",description:la.Specify_the_path_to_tsbuildinfo_incremental_compilation_file},{name:"removeComments",type:"boolean",affectsEmit:!0,affectsBuildInfo:!0,showInSimplifiedHelpView:!0,category:la.Emit,defaultValueDescription:!1,description:la.Disable_emitting_comments},{name:"importHelpers",type:"boolean",affectsEmit:!0,affectsBuildInfo:!0,affectsSourceFile:!0,category:la.Emit,description:la.Allow_importing_helper_functions_from_tslib_once_per_project_instead_of_including_them_per_file,defaultValueDescription:!1},{name:"importsNotUsedAsValues",type:new Map(Object.entries({remove:0,preserve:1,error:2})),affectsEmit:!0,affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:la.Backwards_Compatibility,description:la.Specify_emit_Slashchecking_behavior_for_imports_that_are_only_used_for_types,defaultValueDescription:0},{name:"downlevelIteration",type:"boolean",affectsEmit:!0,affectsBuildInfo:!0,category:la.Emit,description:la.Emit_more_compliant_but_verbose_and_less_performant_JavaScript_for_iteration,defaultValueDescription:!1},{name:"isolatedModules",type:"boolean",category:la.Interop_Constraints,description:la.Ensure_that_each_file_can_be_safely_transpiled_without_relying_on_other_imports,transpileOptionValue:!0,defaultValueDescription:!1},{name:"verbatimModuleSyntax",type:"boolean",affectsEmit:!0,affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:la.Interop_Constraints,description:la.Do_not_transform_or_elide_any_imports_or_exports_not_marked_as_type_only_ensuring_they_are_written_in_the_output_file_s_format_based_on_the_module_setting,defaultValueDescription:!1},{name:"isolatedDeclarations",type:"boolean",category:la.Interop_Constraints,description:la.Require_sufficient_annotation_on_exports_so_other_tools_can_trivially_generate_declaration_files,defaultValueDescription:!1,affectsBuildInfo:!0,affectsSemanticDiagnostics:!0},{name:"strict",type:"boolean",affectsBuildInfo:!0,showInSimplifiedHelpView:!0,category:la.Type_Checking,description:la.Enable_all_strict_type_checking_options,defaultValueDescription:!1},{name:"noImplicitAny",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,strictFlag:!0,category:la.Type_Checking,description:la.Enable_error_reporting_for_expressions_and_declarations_with_an_implied_any_type,defaultValueDescription:la.false_unless_strict_is_set},{name:"strictNullChecks",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,strictFlag:!0,category:la.Type_Checking,description:la.When_type_checking_take_into_account_null_and_undefined,defaultValueDescription:la.false_unless_strict_is_set},{name:"strictFunctionTypes",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,strictFlag:!0,category:la.Type_Checking,description:la.When_assigning_functions_check_to_ensure_parameters_and_the_return_values_are_subtype_compatible,defaultValueDescription:la.false_unless_strict_is_set},{name:"strictBindCallApply",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,strictFlag:!0,category:la.Type_Checking,description:la.Check_that_the_arguments_for_bind_call_and_apply_methods_match_the_original_function,defaultValueDescription:la.false_unless_strict_is_set},{name:"strictPropertyInitialization",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,strictFlag:!0,category:la.Type_Checking,description:la.Check_for_class_properties_that_are_declared_but_not_set_in_the_constructor,defaultValueDescription:la.false_unless_strict_is_set},{name:"strictBuiltinIteratorReturn",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,strictFlag:!0,category:la.Type_Checking,description:la.Built_in_iterators_are_instantiated_with_a_TReturn_type_of_undefined_instead_of_any,defaultValueDescription:la.false_unless_strict_is_set},{name:"noImplicitThis",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,strictFlag:!0,category:la.Type_Checking,description:la.Enable_error_reporting_when_this_is_given_the_type_any,defaultValueDescription:la.false_unless_strict_is_set},{name:"useUnknownInCatchVariables",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,strictFlag:!0,category:la.Type_Checking,description:la.Default_catch_clause_variables_as_unknown_instead_of_any,defaultValueDescription:la.false_unless_strict_is_set},{name:"alwaysStrict",type:"boolean",affectsSourceFile:!0,affectsEmit:!0,affectsBuildInfo:!0,strictFlag:!0,category:la.Type_Checking,description:la.Ensure_use_strict_is_always_emitted,defaultValueDescription:la.false_unless_strict_is_set},{name:"noUnusedLocals",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:la.Type_Checking,description:la.Enable_error_reporting_when_local_variables_aren_t_read,defaultValueDescription:!1},{name:"noUnusedParameters",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:la.Type_Checking,description:la.Raise_an_error_when_a_function_parameter_isn_t_read,defaultValueDescription:!1},{name:"exactOptionalPropertyTypes",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:la.Type_Checking,description:la.Interpret_optional_property_types_as_written_rather_than_adding_undefined,defaultValueDescription:!1},{name:"noImplicitReturns",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:la.Type_Checking,description:la.Enable_error_reporting_for_codepaths_that_do_not_explicitly_return_in_a_function,defaultValueDescription:!1},{name:"noFallthroughCasesInSwitch",type:"boolean",affectsBindDiagnostics:!0,affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:la.Type_Checking,description:la.Enable_error_reporting_for_fallthrough_cases_in_switch_statements,defaultValueDescription:!1},{name:"noUncheckedIndexedAccess",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:la.Type_Checking,description:la.Add_undefined_to_a_type_when_accessed_using_an_index,defaultValueDescription:!1},{name:"noImplicitOverride",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:la.Type_Checking,description:la.Ensure_overriding_members_in_derived_classes_are_marked_with_an_override_modifier,defaultValueDescription:!1},{name:"noPropertyAccessFromIndexSignature",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,showInSimplifiedHelpView:!1,category:la.Type_Checking,description:la.Enforces_using_indexed_accessors_for_keys_declared_using_an_indexed_type,defaultValueDescription:!1},{name:"moduleResolution",type:new Map(Object.entries({node10:2,node:2,classic:1,node16:3,nodenext:99,bundler:100})),deprecatedKeys:new Set(["node"]),affectsSourceFile:!0,affectsModuleResolution:!0,paramType:la.STRATEGY,category:la.Modules,description:la.Specify_how_TypeScript_looks_up_a_file_from_a_given_module_specifier,defaultValueDescription:la.module_AMD_or_UMD_or_System_or_ES6_then_Classic_Otherwise_Node},{name:"baseUrl",type:"string",affectsModuleResolution:!0,isFilePath:!0,category:la.Modules,description:la.Specify_the_base_directory_to_resolve_non_relative_module_names},{name:"paths",type:"object",affectsModuleResolution:!0,allowConfigDirTemplateSubstitution:!0,isTSConfigOnly:!0,category:la.Modules,description:la.Specify_a_set_of_entries_that_re_map_imports_to_additional_lookup_locations,transpileOptionValue:void 0},{name:"rootDirs",type:"list",isTSConfigOnly:!0,element:{name:"rootDirs",type:"string",isFilePath:!0},affectsModuleResolution:!0,allowConfigDirTemplateSubstitution:!0,category:la.Modules,description:la.Allow_multiple_folders_to_be_treated_as_one_when_resolving_modules,transpileOptionValue:void 0,defaultValueDescription:la.Computed_from_the_list_of_input_files},{name:"typeRoots",type:"list",element:{name:"typeRoots",type:"string",isFilePath:!0},affectsModuleResolution:!0,allowConfigDirTemplateSubstitution:!0,category:la.Modules,description:la.Specify_multiple_folders_that_act_like_Slashnode_modules_Slash_types},{name:"types",type:"list",element:{name:"types",type:"string"},affectsProgramStructure:!0,showInSimplifiedHelpView:!0,category:la.Modules,description:la.Specify_type_package_names_to_be_included_without_being_referenced_in_a_source_file,transpileOptionValue:void 0},{name:"allowSyntheticDefaultImports",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:la.Interop_Constraints,description:la.Allow_import_x_from_y_when_a_module_doesn_t_have_a_default_export,defaultValueDescription:la.module_system_or_esModuleInterop},{name:"esModuleInterop",type:"boolean",affectsSemanticDiagnostics:!0,affectsEmit:!0,affectsBuildInfo:!0,showInSimplifiedHelpView:!0,category:la.Interop_Constraints,description:la.Emit_additional_JavaScript_to_ease_support_for_importing_CommonJS_modules_This_enables_allowSyntheticDefaultImports_for_type_compatibility,defaultValueDescription:!1},{name:"preserveSymlinks",type:"boolean",category:la.Interop_Constraints,description:la.Disable_resolving_symlinks_to_their_realpath_This_correlates_to_the_same_flag_in_node,defaultValueDescription:!1},{name:"allowUmdGlobalAccess",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:la.Modules,description:la.Allow_accessing_UMD_globals_from_modules,defaultValueDescription:!1},{name:"moduleSuffixes",type:"list",element:{name:"suffix",type:"string"},listPreserveFalsyValues:!0,affectsModuleResolution:!0,category:la.Modules,description:la.List_of_file_name_suffixes_to_search_when_resolving_a_module},{name:"allowImportingTsExtensions",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:la.Modules,description:la.Allow_imports_to_include_TypeScript_file_extensions_Requires_moduleResolution_bundler_and_either_noEmit_or_emitDeclarationOnly_to_be_set,defaultValueDescription:!1,transpileOptionValue:void 0},{name:"rewriteRelativeImportExtensions",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:la.Modules,description:la.Rewrite_ts_tsx_mts_and_cts_file_extensions_in_relative_import_paths_to_their_JavaScript_equivalent_in_output_files,defaultValueDescription:!1},{name:"resolvePackageJsonExports",type:"boolean",affectsModuleResolution:!0,category:la.Modules,description:la.Use_the_package_json_exports_field_when_resolving_package_imports,defaultValueDescription:la.true_when_moduleResolution_is_node16_nodenext_or_bundler_otherwise_false},{name:"resolvePackageJsonImports",type:"boolean",affectsModuleResolution:!0,category:la.Modules,description:la.Use_the_package_json_imports_field_when_resolving_imports,defaultValueDescription:la.true_when_moduleResolution_is_node16_nodenext_or_bundler_otherwise_false},{name:"customConditions",type:"list",element:{name:"condition",type:"string"},affectsModuleResolution:!0,category:la.Modules,description:la.Conditions_to_set_in_addition_to_the_resolver_specific_defaults_when_resolving_imports},{name:"noUncheckedSideEffectImports",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:la.Modules,description:la.Check_side_effect_imports,defaultValueDescription:!1},{name:"sourceRoot",type:"string",affectsEmit:!0,affectsBuildInfo:!0,paramType:la.LOCATION,category:la.Emit,description:la.Specify_the_root_path_for_debuggers_to_find_the_reference_source_code},{name:"mapRoot",type:"string",affectsEmit:!0,affectsBuildInfo:!0,paramType:la.LOCATION,category:la.Emit,description:la.Specify_the_location_where_debugger_should_locate_map_files_instead_of_generated_locations},{name:"inlineSources",type:"boolean",affectsEmit:!0,affectsBuildInfo:!0,category:la.Emit,description:la.Include_source_code_in_the_sourcemaps_inside_the_emitted_JavaScript,defaultValueDescription:!1},{name:"experimentalDecorators",type:"boolean",affectsEmit:!0,affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:la.Language_and_Environment,description:la.Enable_experimental_support_for_legacy_experimental_decorators,defaultValueDescription:!1},{name:"emitDecoratorMetadata",type:"boolean",affectsSemanticDiagnostics:!0,affectsEmit:!0,affectsBuildInfo:!0,category:la.Language_and_Environment,description:la.Emit_design_type_metadata_for_decorated_declarations_in_source_files,defaultValueDescription:!1},{name:"jsxFactory",type:"string",category:la.Language_and_Environment,description:la.Specify_the_JSX_factory_function_used_when_targeting_React_JSX_emit_e_g_React_createElement_or_h,defaultValueDescription:"`React.createElement`"},{name:"jsxFragmentFactory",type:"string",category:la.Language_and_Environment,description:la.Specify_the_JSX_Fragment_reference_used_for_fragments_when_targeting_React_JSX_emit_e_g_React_Fragment_or_Fragment,defaultValueDescription:"React.Fragment"},{name:"jsxImportSource",type:"string",affectsSemanticDiagnostics:!0,affectsEmit:!0,affectsBuildInfo:!0,affectsModuleResolution:!0,affectsSourceFile:!0,category:la.Language_and_Environment,description:la.Specify_module_specifier_used_to_import_the_JSX_factory_functions_when_using_jsx_Colon_react_jsx_Asterisk,defaultValueDescription:"react"},{name:"resolveJsonModule",type:"boolean",affectsModuleResolution:!0,category:la.Modules,description:la.Enable_importing_json_files,defaultValueDescription:!1},{name:"allowArbitraryExtensions",type:"boolean",affectsProgramStructure:!0,category:la.Modules,description:la.Enable_importing_files_with_any_extension_provided_a_declaration_file_is_present,defaultValueDescription:!1},{name:"out",type:"string",affectsEmit:!0,affectsBuildInfo:!0,affectsDeclarationPath:!0,isFilePath:!1,category:la.Backwards_Compatibility,paramType:la.FILE,transpileOptionValue:void 0,description:la.Deprecated_setting_Use_outFile_instead},{name:"reactNamespace",type:"string",affectsEmit:!0,affectsBuildInfo:!0,category:la.Language_and_Environment,description:la.Specify_the_object_invoked_for_createElement_This_only_applies_when_targeting_react_JSX_emit,defaultValueDescription:"`React`"},{name:"skipDefaultLibCheck",type:"boolean",affectsBuildInfo:!0,category:la.Completeness,description:la.Skip_type_checking_d_ts_files_that_are_included_with_TypeScript,defaultValueDescription:!1},{name:"charset",type:"string",category:la.Backwards_Compatibility,description:la.No_longer_supported_In_early_versions_manually_set_the_text_encoding_for_reading_files,defaultValueDescription:"utf8"},{name:"emitBOM",type:"boolean",affectsEmit:!0,affectsBuildInfo:!0,category:la.Emit,description:la.Emit_a_UTF_8_Byte_Order_Mark_BOM_in_the_beginning_of_output_files,defaultValueDescription:!1},{name:"newLine",type:new Map(Object.entries({crlf:0,lf:1})),affectsEmit:!0,affectsBuildInfo:!0,paramType:la.NEWLINE,category:la.Emit,description:la.Set_the_newline_character_for_emitting_files,defaultValueDescription:"lf"},{name:"noErrorTruncation",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:la.Output_Formatting,description:la.Disable_truncating_types_in_error_messages,defaultValueDescription:!1},{name:"noLib",type:"boolean",category:la.Language_and_Environment,affectsProgramStructure:!0,description:la.Disable_including_any_library_files_including_the_default_lib_d_ts,transpileOptionValue:!0,defaultValueDescription:!1},{name:"noResolve",type:"boolean",affectsModuleResolution:!0,category:la.Modules,description:la.Disallow_import_s_require_s_or_reference_s_from_expanding_the_number_of_files_TypeScript_should_add_to_a_project,transpileOptionValue:!0,defaultValueDescription:!1},{name:"stripInternal",type:"boolean",affectsEmit:!0,affectsBuildInfo:!0,category:la.Emit,description:la.Disable_emitting_declarations_that_have_internal_in_their_JSDoc_comments,defaultValueDescription:!1},{name:"disableSizeLimit",type:"boolean",affectsProgramStructure:!0,category:la.Editor_Support,description:la.Remove_the_20mb_cap_on_total_source_code_size_for_JavaScript_files_in_the_TypeScript_language_server,defaultValueDescription:!1},{name:"disableSourceOfProjectReferenceRedirect",type:"boolean",isTSConfigOnly:!0,category:la.Projects,description:la.Disable_preferring_source_files_instead_of_declaration_files_when_referencing_composite_projects,defaultValueDescription:!1},{name:"disableSolutionSearching",type:"boolean",isTSConfigOnly:!0,category:la.Projects,description:la.Opt_a_project_out_of_multi_project_reference_checking_when_editing,defaultValueDescription:!1},{name:"disableReferencedProjectLoad",type:"boolean",isTSConfigOnly:!0,category:la.Projects,description:la.Reduce_the_number_of_projects_loaded_automatically_by_TypeScript,defaultValueDescription:!1},{name:"noImplicitUseStrict",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:la.Backwards_Compatibility,description:la.Disable_adding_use_strict_directives_in_emitted_JavaScript_files,defaultValueDescription:!1},{name:"noEmitHelpers",type:"boolean",affectsEmit:!0,affectsBuildInfo:!0,category:la.Emit,description:la.Disable_generating_custom_helper_functions_like_extends_in_compiled_output,defaultValueDescription:!1},{name:"noEmitOnError",type:"boolean",affectsEmit:!0,affectsBuildInfo:!0,category:la.Emit,transpileOptionValue:void 0,description:la.Disable_emitting_files_if_any_type_checking_errors_are_reported,defaultValueDescription:!1},{name:"preserveConstEnums",type:"boolean",affectsEmit:!0,affectsBuildInfo:!0,category:la.Emit,description:la.Disable_erasing_const_enum_declarations_in_generated_code,defaultValueDescription:!1},{name:"declarationDir",type:"string",affectsEmit:!0,affectsBuildInfo:!0,affectsDeclarationPath:!0,isFilePath:!0,paramType:la.DIRECTORY,category:la.Emit,transpileOptionValue:void 0,description:la.Specify_the_output_directory_for_generated_declaration_files},{name:"skipLibCheck",type:"boolean",affectsBuildInfo:!0,category:la.Completeness,description:la.Skip_type_checking_all_d_ts_files,defaultValueDescription:!1},{name:"allowUnusedLabels",type:"boolean",affectsBindDiagnostics:!0,affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:la.Type_Checking,description:la.Disable_error_reporting_for_unused_labels,defaultValueDescription:void 0},{name:"allowUnreachableCode",type:"boolean",affectsBindDiagnostics:!0,affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:la.Type_Checking,description:la.Disable_error_reporting_for_unreachable_code,defaultValueDescription:void 0},{name:"suppressExcessPropertyErrors",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:la.Backwards_Compatibility,description:la.Disable_reporting_of_excess_property_errors_during_the_creation_of_object_literals,defaultValueDescription:!1},{name:"suppressImplicitAnyIndexErrors",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:la.Backwards_Compatibility,description:la.Suppress_noImplicitAny_errors_when_indexing_objects_that_lack_index_signatures,defaultValueDescription:!1},{name:"forceConsistentCasingInFileNames",type:"boolean",affectsModuleResolution:!0,category:la.Interop_Constraints,description:la.Ensure_that_casing_is_correct_in_imports,defaultValueDescription:!0},{name:"maxNodeModuleJsDepth",type:"number",affectsModuleResolution:!0,category:la.JavaScript_Support,description:la.Specify_the_maximum_folder_depth_used_for_checking_JavaScript_files_from_node_modules_Only_applicable_with_allowJs,defaultValueDescription:0},{name:"noStrictGenericChecks",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:la.Backwards_Compatibility,description:la.Disable_strict_checking_of_generic_signatures_in_function_types,defaultValueDescription:!1},{name:"useDefineForClassFields",type:"boolean",affectsSemanticDiagnostics:!0,affectsEmit:!0,affectsBuildInfo:!0,category:la.Language_and_Environment,description:la.Emit_ECMAScript_standard_compliant_class_fields,defaultValueDescription:la.true_for_ES2022_and_above_including_ESNext},{name:"preserveValueImports",type:"boolean",affectsEmit:!0,affectsBuildInfo:!0,category:la.Backwards_Compatibility,description:la.Preserve_unused_imported_values_in_the_JavaScript_output_that_would_otherwise_be_removed,defaultValueDescription:!1},{name:"keyofStringsOnly",type:"boolean",category:la.Backwards_Compatibility,description:la.Make_keyof_only_return_strings_instead_of_string_numbers_or_symbols_Legacy_option,defaultValueDescription:!1},{name:"plugins",type:"list",isTSConfigOnly:!0,element:{name:"plugin",type:"object"},description:la.Specify_a_list_of_language_service_plugins_to_include,category:la.Editor_Support},{name:"moduleDetection",type:new Map(Object.entries({auto:2,legacy:1,force:3})),affectsSourceFile:!0,affectsModuleResolution:!0,description:la.Control_what_method_is_used_to_detect_module_format_JS_files,category:la.Language_and_Environment,defaultValueDescription:la.auto_Colon_Treat_files_with_imports_exports_import_meta_jsx_with_jsx_Colon_react_jsx_or_esm_format_with_module_Colon_node16_as_modules},{name:"ignoreDeprecations",type:"string",defaultValueDescription:void 0}],mO=[...uO,...fO],gO=mO.filter((e=>!!e.affectsSemanticDiagnostics)),hO=mO.filter((e=>!!e.affectsEmit)),yO=mO.filter((e=>!!e.affectsDeclarationPath)),vO=mO.filter((e=>!!e.affectsModuleResolution)),bO=mO.filter((e=>!!e.affectsSourceFile||!!e.affectsBindDiagnostics)),xO=mO.filter((e=>!!e.affectsProgramStructure)),kO=mO.filter((e=>De(e,"transpileOptionValue"))),SO=mO.filter((e=>e.allowConfigDirTemplateSubstitution||!e.isCommandLineOnly&&e.isFilePath)),TO=_O.filter((e=>e.allowConfigDirTemplateSubstitution||!e.isCommandLineOnly&&e.isFilePath)),CO=mO.filter((function(e){return!Ze(e.type)})),wO={name:"build",type:"boolean",shortName:"b",showInSimplifiedHelpView:!0,category:la.Command_line_Options,description:la.Build_one_or_more_projects_and_their_dependencies_if_out_of_date,defaultValueDescription:!1},NO=[wO,{name:"verbose",shortName:"v",category:la.Command_line_Options,description:la.Enable_verbose_logging,type:"boolean",defaultValueDescription:!1},{name:"dry",shortName:"d",category:la.Command_line_Options,description:la.Show_what_would_be_built_or_deleted_if_specified_with_clean,type:"boolean",defaultValueDescription:!1},{name:"force",shortName:"f",category:la.Command_line_Options,description:la.Build_all_projects_including_those_that_appear_to_be_up_to_date,type:"boolean",defaultValueDescription:!1},{name:"clean",category:la.Command_line_Options,description:la.Delete_the_outputs_of_all_projects,type:"boolean",defaultValueDescription:!1},{name:"stopBuildOnErrors",category:la.Command_line_Options,description:la.Skip_building_downstream_projects_on_error_in_upstream_project,type:"boolean",defaultValueDescription:!1}],DO=[...uO,...NO],FO=[{name:"enable",type:"boolean",defaultValueDescription:!1},{name:"include",type:"list",element:{name:"include",type:"string"}},{name:"exclude",type:"list",element:{name:"exclude",type:"string"}},{name:"disableFilenameBasedTypeAcquisition",type:"boolean",defaultValueDescription:!1}];function EO(e){const t=new Map,n=new Map;return d(e,(e=>{t.set(e.name.toLowerCase(),e),e.shortName&&n.set(e.shortName,e.name)})),{optionsNameMap:t,shortOptionNames:n}}function PO(){return rO||(rO=EO(mO))}var AO={diagnostic:la.Compiler_option_0_may_only_be_used_with_build,getOptionsNameMap:HO},IO={module:1,target:3,strict:!0,esModuleInterop:!0,forceConsistentCasingInFileNames:!0,skipLibCheck:!0};function OO(e){return LO(e,Xx)}function LO(e,t){const n=Oe(e.type.keys()),r=(e.deprecatedKeys?n.filter((t=>!e.deprecatedKeys.has(t))):n).map((e=>`'${e}'`)).join(", ");return t(la.Argument_for_0_option_must_be_Colon_1,`--${e.name}`,r)}function jO(e,t,n){return fj(e,(t??"").trim(),n)}function RO(e,t="",n){if(Gt(t=t.trim(),"-"))return;if("listOrElement"===e.type&&!t.includes(","))return pj(e,t,n);if(""===t)return[];const r=t.split(",");switch(e.element.type){case"number":return B(r,(t=>pj(e.element,parseInt(t),n)));case"string":return B(r,(t=>pj(e.element,t||"",n)));case"boolean":case"object":return un.fail(`List of ${e.element.type} is not yet supported.`);default:return B(r,(t=>jO(e.element,t,n)))}}function MO(e){return e.name}function BO(e,t,n,r,i){var o;const a=null==(o=t.alternateMode)?void 0:o.getOptionsNameMap().optionsNameMap.get(e.toLowerCase());if(a)return uj(i,r,a!==wO?t.alternateMode.diagnostic:la.Option_build_must_be_the_first_command_line_argument,e);const s=Lt(e,t.optionDeclarations,MO);return s?uj(i,r,t.unknownDidYouMeanDiagnostic,n||e,s.name):uj(i,r,t.unknownOptionDiagnostic,n||e)}function JO(e,t,n){const r={};let i;const o=[],a=[];return s(t),{options:r,watchOptions:i,fileNames:o,errors:a};function s(t){let n=0;for(;nso.readFile(e)));if(!Ze(t))return void a.push(t);const r=[];let i=0;for(;;){for(;i=t.length)break;const n=i;if(34===t.charCodeAt(n)){for(i++;i32;)i++;r.push(t.substring(n,i))}}s(r)}}function zO(e,t,n,r,i,o){if(r.isTSConfigOnly){const n=e[t];"null"===n?(i[r.name]=void 0,t++):"boolean"===r.type?"false"===n?(i[r.name]=pj(r,!1,o),t++):("true"===n&&t++,o.push(Xx(la.Option_0_can_only_be_specified_in_tsconfig_json_file_or_set_to_false_or_null_on_command_line,r.name))):(o.push(Xx(la.Option_0_can_only_be_specified_in_tsconfig_json_file_or_set_to_null_on_command_line,r.name)),n&&!Gt(n,"-")&&t++)}else if(e[t]||"boolean"===r.type||o.push(Xx(n.optionTypeMismatchDiagnostic,r.name,xL(r))),"null"!==e[t])switch(r.type){case"number":i[r.name]=pj(r,parseInt(e[t]),o),t++;break;case"boolean":const n=e[t];i[r.name]=pj(r,"false"!==n,o),"false"!==n&&"true"!==n||t++;break;case"string":i[r.name]=pj(r,e[t]||"",o),t++;break;case"list":const a=RO(r,e[t],o);i[r.name]=a||[],a&&t++;break;case"listOrElement":un.fail("listOrElement not supported here");break;default:i[r.name]=jO(r,e[t],o),t++}else i[r.name]=void 0,t++;return t}var qO,UO={alternateMode:AO,getOptionsNameMap:PO,optionDeclarations:mO,unknownOptionDiagnostic:la.Unknown_compiler_option_0,unknownDidYouMeanDiagnostic:la.Unknown_compiler_option_0_Did_you_mean_1,optionTypeMismatchDiagnostic:la.Compiler_option_0_expects_an_argument};function VO(e,t){return JO(UO,e,t)}function WO(e,t){return $O(PO,e,t)}function $O(e,t,n=!1){t=t.toLowerCase();const{optionsNameMap:r,shortOptionNames:i}=e();if(n){const e=i.get(t);void 0!==e&&(t=e)}return r.get(t)}function HO(){return qO||(qO=EO(DO))}var KO={alternateMode:{diagnostic:la.Compiler_option_0_may_not_be_used_with_build,getOptionsNameMap:PO},getOptionsNameMap:HO,optionDeclarations:DO,unknownOptionDiagnostic:la.Unknown_build_option_0,unknownDidYouMeanDiagnostic:la.Unknown_build_option_0_Did_you_mean_1,optionTypeMismatchDiagnostic:la.Build_option_0_requires_a_value_of_type_1};function GO(e){const{options:t,watchOptions:n,fileNames:r,errors:i}=JO(KO,e),o=t;return 0===r.length&&r.push("."),o.clean&&o.force&&i.push(Xx(la.Options_0_and_1_cannot_be_combined,"clean","force")),o.clean&&o.verbose&&i.push(Xx(la.Options_0_and_1_cannot_be_combined,"clean","verbose")),o.clean&&o.watch&&i.push(Xx(la.Options_0_and_1_cannot_be_combined,"clean","watch")),o.watch&&o.dry&&i.push(Xx(la.Options_0_and_1_cannot_be_combined,"watch","dry")),{buildOptions:o,watchOptions:n,projects:r,errors:i}}function XO(e,...t){return nt(Xx(e,...t).messageText,Ze)}function QO(e,t,n,r,i,o){const a=tL(e,(e=>n.readFile(e)));if(!Ze(a))return void n.onUnRecoverableConfigFileDiagnostic(a);const s=RI(e,a),c=n.getCurrentDirectory();return s.path=qo(e,c,Wt(n.useCaseSensitiveFileNames)),s.resolvedPath=s.path,s.originalFileName=s.fileName,RL(s,n,Bo(Do(e),c),t,Bo(e,c),void 0,o,r,i)}function YO(e,t){const n=tL(e,t);return Ze(n)?ZO(e,n):{config:{},error:n}}function ZO(e,t){const n=RI(e,t);return{config:yL(n,n.parseDiagnostics,void 0),error:n.parseDiagnostics.length?n.parseDiagnostics[0]:void 0}}function eL(e,t){const n=tL(e,t);return Ze(n)?RI(e,n):{fileName:e,parseDiagnostics:[n]}}function tL(e,t){let n;try{n=t(e)}catch(t){return Xx(la.Cannot_read_file_0_Colon_1,e,t.message)}return void 0===n?Xx(la.Cannot_read_file_0,e):n}function nL(e){return Re(e,MO)}var rL,iL={optionDeclarations:FO,unknownOptionDiagnostic:la.Unknown_type_acquisition_option_0,unknownDidYouMeanDiagnostic:la.Unknown_type_acquisition_option_0_Did_you_mean_1};function oL(){return rL||(rL=EO(_O))}var aL,sL,cL,lL={getOptionsNameMap:oL,optionDeclarations:_O,unknownOptionDiagnostic:la.Unknown_watch_option_0,unknownDidYouMeanDiagnostic:la.Unknown_watch_option_0_Did_you_mean_1,optionTypeMismatchDiagnostic:la.Watch_option_0_requires_a_value_of_type_1};function _L(){return aL||(aL=nL(mO))}function uL(){return sL||(sL=nL(_O))}function dL(){return cL||(cL=nL(FO))}var pL,fL={name:"extends",type:"listOrElement",element:{name:"extends",type:"string"},category:la.File_Management,disallowNullOrUndefined:!0},mL={name:"compilerOptions",type:"object",elementOptions:_L(),extraKeyDiagnostics:UO},gL={name:"watchOptions",type:"object",elementOptions:uL(),extraKeyDiagnostics:lL},hL={name:"typeAcquisition",type:"object",elementOptions:dL(),extraKeyDiagnostics:iL};function yL(e,t,n){var r;const i=null==(r=e.statements[0])?void 0:r.expression;if(i&&210!==i.kind){if(t.push(Mp(e,i,la.The_root_value_of_a_0_file_must_be_an_object,"jsconfig.json"===Fo(e.fileName)?"jsconfig.json":"tsconfig.json")),WD(i)){const r=b(i.elements,$D);if(r)return bL(e,r,t,!0,n)}return{}}return bL(e,i,t,!0,n)}function vL(e,t){var n;return bL(e,null==(n=e.statements[0])?void 0:n.expression,t,!0,void 0)}function bL(e,t,n,r,i){return t?function t(a,s){switch(a.kind){case 112:return!0;case 97:return!1;case 106:return null;case 11:return o(a)||n.push(Mp(e,a,la.String_literal_with_double_quotes_expected)),a.text;case 9:return Number(a.text);case 224:if(41!==a.operator||9!==a.operand.kind)break;return-Number(a.operand.text);case 210:return function(a,s){var c;const l=r?{}:void 0;for(const _ of a.properties){if(303!==_.kind){n.push(Mp(e,_,la.Property_assignment_expected));continue}_.questionToken&&n.push(Mp(e,_.questionToken,la.The_0_modifier_can_only_be_used_in_TypeScript_files,"?")),o(_.name)||n.push(Mp(e,_.name,la.String_literal_with_double_quotes_expected));const a=Ap(_.name)?void 0:Op(_.name),u=a&&fc(a),d=u?null==(c=null==s?void 0:s.elementOptions)?void 0:c.get(u):void 0,p=t(_.initializer,d);void 0!==u&&(r&&(l[u]=p),null==i||i.onPropertySet(u,p,_,s,d))}return l}(a,s);case 209:return function(e,n){if(r)return N(e.map((e=>t(e,n))),(e=>void 0!==e));e.forEach((e=>t(e,n)))}(a.elements,s&&s.element)}s?n.push(Mp(e,a,la.Compiler_option_0_requires_a_value_of_type_1,s.name,xL(s))):n.push(Mp(e,a,la.Property_value_can_only_be_string_literal_numeric_literal_true_false_null_object_literal_or_array_literal))}(t,null==i?void 0:i.rootOptions):r?{}:void 0;function o(t){return TN(t)&&zm(t,e)}}function xL(e){return"listOrElement"===e.type?`${xL(e.element)} or Array`:"list"===e.type?"Array":Ze(e.type)?e.type:"string"}function kL(e,t){return!!e&&(BL(t)?!e.disallowNullOrUndefined:"list"===e.type?Qe(t):"listOrElement"===e.type?Qe(t)||kL(e.element,t):typeof t===(Ze(e.type)?e.type:"string"))}function SL(e,t,n){var r,i,o;const a=Wt(n.useCaseSensitiveFileNames),s=E(N(e.fileNames,(null==(i=null==(r=e.options.configFile)?void 0:r.configFileSpecs)?void 0:i.validatedIncludeSpecs)?function(e,t,n,r){if(!t)return ot;const i=pS(e,n,t,r.useCaseSensitiveFileNames,r.getCurrentDirectory()),o=i.excludePattern&&fS(i.excludePattern,r.useCaseSensitiveFileNames),a=i.includeFilePattern&&fS(i.includeFilePattern,r.useCaseSensitiveFileNames);return a?o?e=>!(a.test(e)&&!o.test(e)):e=>!a.test(e):o?e=>o.test(e):ot}(t,e.options.configFile.configFileSpecs.validatedIncludeSpecs,e.options.configFile.configFileSpecs.validatedExcludeSpecs,n):ot),(e=>ia(Bo(t,n.getCurrentDirectory()),Bo(e,n.getCurrentDirectory()),a))),c={configFilePath:Bo(t,n.getCurrentDirectory()),useCaseSensitiveFileNames:n.useCaseSensitiveFileNames},l=FL(e.options,c),_=e.watchOptions&&EL(e.watchOptions,oL()),d={compilerOptions:{...CL(l),showConfig:void 0,configFile:void 0,configFilePath:void 0,help:void 0,init:void 0,listFiles:void 0,listEmittedFiles:void 0,project:void 0,build:void 0,version:void 0},watchOptions:_&&CL(_),references:E(e.projectReferences,(e=>({...e,path:e.originalPath?e.originalPath:"",originalPath:void 0}))),files:u(s)?s:void 0,...(null==(o=e.options.configFile)?void 0:o.configFileSpecs)?{include:wL(e.options.configFile.configFileSpecs.validatedIncludeSpecs),exclude:e.options.configFile.configFileSpecs.validatedExcludeSpecs}:{},compileOnSave:!!e.compileOnSave||void 0},p=new Set(l.keys()),f={};for(const t in mk)!p.has(t)&&TL(t,p)&&mk[t].computeValue(e.options)!==mk[t].computeValue({})&&(f[t]=mk[t].computeValue(e.options));return Le(d.compilerOptions,CL(FL(f,c))),d}function TL(e,t){const n=new Set;return function e(r){var i;return!!vx(n,r)&&$(null==(i=mk[r])?void 0:i.dependencies,(n=>t.has(n)||e(n)))}(e)}function CL(e){return Object.fromEntries(e)}function wL(e){if(u(e)){if(1!==u(e))return e;if(e[0]!==zL)return e}}function NL(e){switch(e.type){case"string":case"number":case"boolean":case"object":return;case"list":case"listOrElement":return NL(e.element);default:return e.type}}function DL(e,t){return td(t,((t,n)=>{if(t===e)return n}))}function FL(e,t){return EL(e,PO(),t)}function EL(e,{optionsNameMap:t},n){const r=new Map,i=n&&Wt(n.useCaseSensitiveFileNames);for(const o in e)if(De(e,o)){if(t.has(o)&&(t.get(o).category===la.Command_line_Options||t.get(o).category===la.Output_Formatting))continue;const a=e[o],s=t.get(o.toLowerCase());if(s){un.assert("listOrElement"!==s.type);const e=NL(s);e?"list"===s.type?r.set(o,a.map((t=>DL(t,e)))):r.set(o,DL(a,e)):n&&s.isFilePath?r.set(o,ia(n.configFilePath,Bo(a,Do(n.configFilePath)),i)):n&&"list"===s.type&&s.element.isFilePath?r.set(o,a.map((e=>ia(n.configFilePath,Bo(e,Do(n.configFilePath)),i)))):r.set(o,a)}}return r}function PL(e,t){const n=AL(e);return function(){const e=[],r=Array(3).join(" ");return fO.forEach((t=>{if(!n.has(t.name))return;const i=n.get(t.name),o=Ij(t);i!==o?e.push(`${r}${t.name}: ${i}`):De(IO,t.name)&&e.push(`${r}${t.name}: ${o}`)})),e.join(t)+t}()}function AL(e){return FL(Ue(e,IO))}function IL(e,t,n){const r=AL(e);return function(){const e=new Map;e.set(la.Projects,[]),e.set(la.Language_and_Environment,[]),e.set(la.Modules,[]),e.set(la.JavaScript_Support,[]),e.set(la.Emit,[]),e.set(la.Interop_Constraints,[]),e.set(la.Type_Checking,[]),e.set(la.Completeness,[]);for(const t of mO)if(o(t)){let n=e.get(t.category);n||e.set(t.category,n=[]),n.push(t)}let a=0,s=0;const c=[];e.forEach(((e,t)=>{0!==c.length&&c.push({value:""}),c.push({value:`/* ${Ux(t)} */`});for(const t of e){let e;e=r.has(t.name)?`"${t.name}": ${JSON.stringify(r.get(t.name))}${(s+=1)===r.size?"":","}`:`// "${t.name}": ${JSON.stringify(Ij(t))},`,c.push({value:e,description:`/* ${t.description&&Ux(t.description)||t.name} */`}),a=Math.max(e.length,a)}}));const l=i(2),_=[];_.push("{"),_.push(`${l}"compilerOptions": {`),_.push(`${l}${l}/* ${Ux(la.Visit_https_Colon_Slash_Slashaka_ms_Slashtsconfig_to_read_more_about_this_file)} */`),_.push("");for(const e of c){const{value:t,description:n=""}=e;_.push(t&&`${l}${l}${t}${n&&i(a-t.length+2)+n}`)}if(t.length){_.push(`${l}},`),_.push(`${l}"files": [`);for(let e=0;e"object"==typeof e),"object"),n=h(y("files"));if(n){const r="no-prop"===e||Qe(e)&&0===e.length,i=De(d,"extends");if(0===n.length&&r&&!i)if(t){const e=a||"tsconfig.json",n=la.The_files_list_in_config_file_0_is_empty,r=$f(t,"files",(e=>e.initializer)),i=uj(t,r,n,e);_.push(i)}else x(la.The_files_list_in_config_file_0_is_empty,a||"tsconfig.json")}let r=h(y("include"));const i=y("exclude");let o,s,c,l,u=!1,f=h(i);if("no-prop"===i){const e=p.outDir,t=p.declarationDir;(e||t)&&(f=N([e,t],(e=>!!e)))}void 0===n&&void 0===r&&(r=[zL],u=!0),r&&(o=Tj(r,_,!0,t,"include"),c=KL(o,m)||o),f&&(s=Tj(f,_,!1,t,"exclude"),l=KL(s,m)||s);const g=N(n,Ze);return{filesSpecs:n,includeSpecs:r,excludeSpecs:f,validatedFilesSpec:KL(g,m)||g,validatedIncludeSpecs:c,validatedExcludeSpecs:l,validatedFilesSpecBeforeSubstitution:g,validatedIncludeSpecsBeforeSubstitution:o,validatedExcludeSpecsBeforeSubstitution:s,isDefaultIncludeSpec:u}}();return t&&(t.configFileSpecs=g),ML(p,t),{options:p,watchOptions:f,fileNames:function(e){const t=vj(g,e,p,n,c);return QL(t,ZL(d),s)&&_.push(XL(g,a)),t}(m),projectReferences:function(e){let t;const n=b("references",(e=>"object"==typeof e),"object");if(Qe(n))for(const r of n)"string"!=typeof r.path?x(la.Compiler_option_0_requires_a_value_of_type_1,"reference.path","string"):(t||(t=[])).push({path:Bo(r.path,e),originalPath:r.path,prepend:r.prepend,circular:r.circular});return t}(m),typeAcquisition:u.typeAcquisition||cj(),raw:d,errors:_,wildcardDirectories:wj(g,m,n.useCaseSensitiveFileNames),compileOnSave:!!d.compileOnSave};function h(e){return Qe(e)?e:void 0}function y(e){return b(e,Ze,"string")}function b(e,n,r){if(De(d,e)&&!BL(d[e])){if(Qe(d[e])){const i=d[e];return t||v(i,n)||_.push(Xx(la.Compiler_option_0_requires_a_value_of_type_1,e,r)),i}return x(la.Compiler_option_0_requires_a_value_of_type_1,e,"Array"),"not-array"}return"no-prop"}function x(e,...n){t||_.push(Xx(e,...n))}}function UL(e,t){return VL(e,TO,t)}function VL(e,t,n){if(!e)return e;let r;for(const r of t)if(void 0!==e[r.name]){const t=e[r.name];switch(r.type){case"string":un.assert(r.isFilePath),$L(t)&&i(r,HL(t,n));break;case"list":un.assert(r.element.isFilePath);const e=KL(t,n);e&&i(r,e);break;case"object":un.assert("paths"===r.name);const o=GL(t,n);o&&i(r,o);break;default:un.fail("option type not supported")}}return r||e;function i(t,n){(r??(r=Le({},e)))[t.name]=n}}var WL="${configDir}";function $L(e){return Ze(e)&&Gt(e,WL,!0)}function HL(e,t){return Bo(e.replace(WL,"./"),t)}function KL(e,t){if(!e)return e;let n;return e.forEach(((r,i)=>{$L(r)&&((n??(n=e.slice()))[i]=HL(r,t))})),n}function GL(e,t){let n;return Ee(e).forEach((r=>{if(!Qe(e[r]))return;const i=KL(e[r],t);i&&((n??(n=Le({},e)))[r]=i)})),n}function XL({includeSpecs:e,excludeSpecs:t},n){return Xx(la.No_inputs_were_found_in_config_file_0_Specified_include_paths_were_1_and_exclude_paths_were_2,n||"tsconfig.json",JSON.stringify(e||[]),JSON.stringify(t||[]))}function QL(e,t,n){return 0===e.length&&t&&(!n||0===n.length)}function YL(e){return!e.fileNames.length&&De(e.raw,"references")}function ZL(e){return!De(e,"files")&&!De(e,"references")}function ej(e,t,n,r,i){const o=r.length;return QL(e,i)?r.push(XL(n,t)):D(r,(e=>!function(e){return e.code===la.No_inputs_were_found_in_config_file_0_Specified_include_paths_were_1_and_exclude_paths_were_2.code}(e))),o!==r.length}function tj(e,t,n,r,i,o,a,s){var c;const l=Bo(i||"",r=Oo(r));if(o.includes(l))return a.push(Xx(la.Circularity_detected_while_resolving_configuration_Colon_0,[...o,l].join(" -> "))),{raw:e||vL(t,a)};const _=e?function(e,t,n,r,i){De(e,"excludes")&&i.push(Xx(la.Unknown_option_excludes_Did_you_mean_exclude));const o=sj(e.compilerOptions,n,i,r),a=lj(e.typeAcquisition,n,i,r),s=function(e,t,n){return _j(uL(),e,t,void 0,lL,n)}(e.watchOptions,n,i);e.compileOnSave=function(e,t,n){if(!De(e,iO.name))return!1;const r=dj(iO,e.compileOnSave,t,n);return"boolean"==typeof r&&r}(e,n,i);return{raw:e,options:o,watchOptions:s,typeAcquisition:a,extendedConfigPath:e.extends||""===e.extends?nj(e.extends,t,n,r,i):void 0}}(e,n,r,i,a):function(e,t,n,r,i){const o=aj(r);let a,s,c,l;const _=(void 0===pL&&(pL={name:void 0,type:"object",elementOptions:nL([mL,gL,hL,fL,{name:"references",type:"list",element:{name:"references",type:"object"},category:la.Projects},{name:"files",type:"list",element:{name:"files",type:"string"},category:la.File_Management},{name:"include",type:"list",element:{name:"include",type:"string"},category:la.File_Management,defaultValueDescription:la.if_files_is_specified_otherwise_Asterisk_Asterisk_Slash_Asterisk},{name:"exclude",type:"list",element:{name:"exclude",type:"string"},category:la.File_Management,defaultValueDescription:la.node_modules_bower_components_jspm_packages_plus_the_value_of_outDir_if_one_is_specified},iO])}),pL),u=yL(e,i,{rootOptions:_,onPropertySet:function(u,d,p,f,m){if(m&&m!==fL&&(d=dj(m,d,n,i,p,p.initializer,e)),null==f?void 0:f.name)if(m){let e;f===mL?e=o:f===gL?e=s??(s={}):f===hL?e=a??(a=cj(r)):un.fail("Unknown option"),e[m.name]=d}else u&&(null==f?void 0:f.extraKeyDiagnostics)&&(f.elementOptions?i.push(BO(u,f.extraKeyDiagnostics,void 0,p.name,e)):i.push(Mp(e,p.name,f.extraKeyDiagnostics.unknownOptionDiagnostic,u)));else f===_&&(m===fL?c=nj(d,t,n,r,i,p,p.initializer,e):m||("excludes"===u&&i.push(Mp(e,p.name,la.Unknown_option_excludes_Did_you_mean_exclude)),b(fO,(e=>e.name===u))&&(l=ie(l,p.name))))}});return a||(a=cj(r)),l&&u&&void 0===u.compilerOptions&&i.push(Mp(e,l[0],la._0_should_be_set_inside_the_compilerOptions_object_of_the_config_json_file,Op(l[0]))),{raw:u,options:o,watchOptions:s,typeAcquisition:a,extendedConfigPath:c}}(t,n,r,i,a);if((null==(c=_.options)?void 0:c.paths)&&(_.options.pathsBasePath=r),_.extendedConfigPath){o=o.concat([l]);const e={options:{}};Ze(_.extendedConfigPath)?u(e,_.extendedConfigPath):_.extendedConfigPath.forEach((t=>u(e,t))),e.include&&(_.raw.include=e.include),e.exclude&&(_.raw.exclude=e.exclude),e.files&&(_.raw.files=e.files),void 0===_.raw.compileOnSave&&e.compileOnSave&&(_.raw.compileOnSave=e.compileOnSave),t&&e.extendedSourceFiles&&(t.extendedSourceFiles=Oe(e.extendedSourceFiles.keys())),_.options=Le(e.options,_.options),_.watchOptions=_.watchOptions&&e.watchOptions?d(e,_.watchOptions):_.watchOptions||e.watchOptions}return _;function u(e,i){const c=function(e,t,n,r,i,o,a){const s=n.useCaseSensitiveFileNames?t:_t(t);let c,l,_;if(o&&(c=o.get(s))?({extendedResult:l,extendedConfig:_}=c):(l=eL(t,(e=>n.readFile(e))),l.parseDiagnostics.length||(_=tj(void 0,l,n,Do(t),Fo(t),r,i,o)),o&&o.set(s,{extendedResult:l,extendedConfig:_})),e&&((a.extendedSourceFiles??(a.extendedSourceFiles=new Set)).add(l.fileName),l.extendedSourceFiles))for(const e of l.extendedSourceFiles)a.extendedSourceFiles.add(e);if(!l.parseDiagnostics.length)return _;i.push(...l.parseDiagnostics)}(t,i,n,o,a,s,e);if(c&&c.options){const t=c.raw;let o;const a=a=>{_.raw[a]||t[a]&&(e[a]=E(t[a],(e=>$L(e)||go(e)?e:jo(o||(o=ra(Do(i),r,Wt(n.useCaseSensitiveFileNames))),e))))};a("include"),a("exclude"),a("files"),void 0!==t.compileOnSave&&(e.compileOnSave=t.compileOnSave),Le(e.options,c.options),e.watchOptions=e.watchOptions&&c.watchOptions?d(e,c.watchOptions):e.watchOptions||c.watchOptions}}function d(e,t){return e.watchOptionsCopied?Le(e.watchOptions,t):(e.watchOptionsCopied=!0,Le({},e.watchOptions,t))}}function nj(e,t,n,r,i,o,a,s){let c;const l=r?JL(r,n):n;if(Ze(e))c=rj(e,t,l,i,a,s);else if(Qe(e)){c=[];for(let r=0;ruj(i,r,e,...t))))}function mj(e,t,n,r,i,o,a){return N(E(t,((t,s)=>dj(e.element,t,n,r,i,null==o?void 0:o.elements[s],a))),(t=>!!e.listPreserveFalsyValues||!!t))}var gj,hj=/(?:^|\/)\*\*\/?$/,yj=/^[^*?]*(?=\/[^/]*[*?])/;function vj(e,t,n,r,i=l){t=Jo(t);const o=Wt(r.useCaseSensitiveFileNames),a=new Map,s=new Map,c=new Map,{validatedFilesSpec:_,validatedIncludeSpecs:u,validatedExcludeSpecs:d}=e,p=ES(n,i),f=PS(n,p);if(_)for(const e of _){const n=Bo(e,t);a.set(o(n),n)}let m;if(u&&u.length>0)for(const e of r.readDirectory(t,I(f),d,u,void 0)){if(ko(e,".json")){if(!m){const e=E(cS(u.filter((e=>Rt(e,".json"))),t,"files"),(e=>`^${e}$`));m=e?e.map((e=>fS(e,r.useCaseSensitiveFileNames))):l}if(-1!==k(m,(t=>t.test(e)))){const t=o(e);a.has(t)||c.has(t)||c.set(t,e)}continue}if(Fj(e,a,s,p,o))continue;Ej(e,s,p,o);const n=o(e);a.has(n)||s.has(n)||s.set(n,e)}const g=Oe(a.values()),h=Oe(s.values());return g.concat(h,Oe(c.values()))}function bj(e,t,n,r,i){const{validatedFilesSpec:o,validatedIncludeSpecs:a,validatedExcludeSpecs:s}=t;if(!u(a)||!u(s))return!1;n=Jo(n);const c=Wt(r);if(o)for(const t of o)if(c(Bo(t,n))===e)return!1;return Sj(e,s,r,i,n)}function xj(e){const t=Gt(e,"**/")?0:e.indexOf("/**/");return-1!==t&&(Rt(e,"/..")?e.length:e.lastIndexOf("/../"))>t}function kj(e,t,n,r){return Sj(e,N(t,(e=>!xj(e))),n,r)}function Sj(e,t,n,r,i){const o=sS(t,jo(Jo(r),i),"exclude"),a=o&&fS(o,n);return!!a&&(!!a.test(e)||!xo(e)&&a.test(Vo(e)))}function Tj(e,t,n,r,i){return e.filter((e=>{if(!Ze(e))return!1;const o=Cj(e,n);return void 0!==o&&t.push(function(e,t){const n=Wf(r,i,t);return uj(r,n,e,t)}(...o)),void 0===o}))}function Cj(e,t){return un.assert("string"==typeof e),t&&hj.test(e)?[la.File_specification_cannot_end_in_a_recursive_directory_wildcard_Asterisk_Asterisk_Colon_0,e]:xj(e)?[la.File_specification_cannot_contain_a_parent_directory_that_appears_after_a_recursive_directory_wildcard_Asterisk_Asterisk_Colon_0,e]:void 0}function wj({validatedIncludeSpecs:e,validatedExcludeSpecs:t},n,r){const i=sS(t,n,"exclude"),o=i&&new RegExp(i,r?"":"i"),a={},s=new Map;if(void 0!==e){const t=[];for(const i of e){const e=Jo(jo(n,i));if(o&&o.test(e))continue;const c=Dj(e,r);if(c){const{key:e,path:n,flags:r}=c,i=s.get(e),o=void 0!==i?a[i]:void 0;(void 0===o||oSo(e,t)?t:void 0));if(!o)return!1;for(const r of o){if(ko(e,r)&&(".ts"!==r||!ko(e,".d.ts")))return!1;const o=i(VS(e,r));if(t.has(o)||n.has(o)){if(".d.ts"===r&&(ko(e,".js")||ko(e,".jsx")))continue;return!0}}return!1}function Ej(e,t,n,r){const i=d(n,(t=>So(e,t)?t:void 0));if(i)for(let n=i.length-1;n>=0;n--){const o=i[n];if(ko(e,o))return;const a=r(VS(e,o));t.delete(a)}}function Pj(e){const t={};for(const n in e)if(De(e,n)){const r=WO(n);void 0!==r&&(t[n]=Aj(e[n],r))}return t}function Aj(e,t){if(void 0===e)return e;switch(t.type){case"object":case"string":return"";case"number":return"number"==typeof e?e:"";case"boolean":return"boolean"==typeof e?e:"";case"listOrElement":if(!Qe(e))return Aj(e,t.element);case"list":const n=t.element;return Qe(e)?B(e,(e=>Aj(e,n))):"";default:return td(t.type,((t,n)=>{if(t===e)return n}))}}function Ij(e){switch(e.type){case"number":return 1;case"boolean":return!0;case"string":const t=e.defaultValueDescription;return e.isFilePath?`./${t&&"string"==typeof t?t:""}`:"";case"list":return[];case"listOrElement":return Ij(e.element);case"object":return{};default:const n=me(e.type.keys());return void 0!==n?n:un.fail("Expected 'option.type' to have entries.")}}function Oj(e,t,...n){e.trace(Gx(t,...n))}function Lj(e,t){return!!e.traceResolution&&void 0!==t.trace}function jj(e,t,n){let r;if(t&&e){const i=e.contents.packageJsonContent;"string"==typeof i.name&&"string"==typeof i.version&&(r={name:i.name,subModuleName:t.path.slice(e.packageDirectory.length+lo.length),version:i.version,peerDependencies:KR(e,n)})}return t&&{path:t.path,extension:t.ext,packageId:r,resolvedUsingTsExtension:t.resolvedUsingTsExtension}}function Rj(e){return jj(void 0,e,void 0)}function Mj(e){if(e)return un.assert(void 0===e.packageId),{path:e.path,ext:e.extension,resolvedUsingTsExtension:e.resolvedUsingTsExtension}}function Bj(e){const t=[];return 1&e&&t.push("TypeScript"),2&e&&t.push("JavaScript"),4&e&&t.push("Declaration"),8&e&&t.push("JSON"),t.join(", ")}function Jj(e){if(e)return un.assert(GS(e.extension)),{fileName:e.path,packageId:e.packageId}}function zj(e,t,n,r,i,o,a,s,c){if(!a.resultFromCache&&!a.compilerOptions.preserveSymlinks&&t&&n&&!t.originalPath&&!Ts(e)){const{resolvedFileName:e,originalPath:n}=Qj(t.path,a.host,a.traceEnabled);n&&(t={...t,path:e,originalPath:n})}return qj(t,n,r,i,o,a.resultFromCache,s,c)}function qj(e,t,n,r,i,o,a,s){return o?(null==a?void 0:a.isReadonly)?{...o,failedLookupLocations:Wj(o.failedLookupLocations,n),affectingLocations:Wj(o.affectingLocations,r),resolutionDiagnostics:Wj(o.resolutionDiagnostics,i)}:(o.failedLookupLocations=Vj(o.failedLookupLocations,n),o.affectingLocations=Vj(o.affectingLocations,r),o.resolutionDiagnostics=Vj(o.resolutionDiagnostics,i),o):{resolvedModule:e&&{resolvedFileName:e.path,originalPath:!0===e.originalPath?void 0:e.originalPath,extension:e.extension,isExternalLibraryImport:t,packageId:e.packageId,resolvedUsingTsExtension:!!e.resolvedUsingTsExtension},failedLookupLocations:Uj(n),affectingLocations:Uj(r),resolutionDiagnostics:Uj(i),alternateResult:s}}function Uj(e){return e.length?e:void 0}function Vj(e,t){return(null==t?void 0:t.length)?(null==e?void 0:e.length)?(e.push(...t),e):t:e}function Wj(e,t){return(null==e?void 0:e.length)?t.length?[...e,...t]:e.slice():Uj(t)}function $j(e,t,n,r){if(!De(e,t))return void(r.traceEnabled&&Oj(r.host,la.package_json_does_not_have_a_0_field,t));const i=e[t];if(typeof i===n&&null!==i)return i;r.traceEnabled&&Oj(r.host,la.Expected_type_of_0_field_in_package_json_to_be_1_got_2,t,n,null===i?"null":typeof i)}function Hj(e,t,n,r){const i=$j(e,t,"string",r);if(void 0===i)return;if(!i)return void(r.traceEnabled&&Oj(r.host,la.package_json_had_a_falsy_0_field,t));const o=Jo(jo(n,i));return r.traceEnabled&&Oj(r.host,la.package_json_has_0_field_1_that_references_2,t,i,o),o}function Kj(e){gj||(gj=new bn(s));for(const t in e){if(!De(e,t))continue;const n=kn.tryParse(t);if(void 0!==n&&n.test(gj))return{version:t,paths:e[t]}}}function Gj(e,t){if(e.typeRoots)return e.typeRoots;let n;return e.configFilePath?n=Do(e.configFilePath):t.getCurrentDirectory&&(n=t.getCurrentDirectory()),void 0!==n?function(e){let t;return aa(Jo(e),(e=>{const n=jo(e,Xj);(t??(t=[])).push(n)})),t}(n):void 0}var Xj=jo("node_modules","@types");function Qj(e,t,n){const r=FR(e,t,n),i=function(e,t,n){return 0===Yo(e,t,!("function"==typeof n.useCaseSensitiveFileNames?n.useCaseSensitiveFileNames():n.useCaseSensitiveFileNames))}(e,r,t);return{resolvedFileName:i?e:r,originalPath:i?void 0:e}}function Yj(e,t,n){return jo(e,Rt(e,"/node_modules/@types")||Rt(e,"/node_modules/@types/")?dM(t,n):t)}function Zj(e,t,n,r,i,o,a){un.assert("string"==typeof e,"Non-string value passed to `ts.resolveTypeReferenceDirective`, likely by a wrapping package working with an outdated `resolveTypeReferenceDirectives` signature. This is probably not a problem in TS itself.");const s=Lj(n,r);i&&(n=i.commandLine.options);const c=t?Do(t):void 0;let l=c?null==o?void 0:o.getFromDirectoryCache(e,a,c,i):void 0;if(l||!c||Ts(e)||(l=null==o?void 0:o.getFromNonRelativeNameCache(e,a,c,i)),l)return s&&(Oj(r,la.Resolving_type_reference_directive_0_containing_file_1,e,t),i&&Oj(r,la.Using_compiler_options_of_project_reference_redirect_0,i.sourceFile.fileName),Oj(r,la.Resolution_for_type_reference_directive_0_was_found_in_cache_from_location_1,e,c),k(l)),l;const _=Gj(n,r);s&&(void 0===t?void 0===_?Oj(r,la.Resolving_type_reference_directive_0_containing_file_not_set_root_directory_not_set,e):Oj(r,la.Resolving_type_reference_directive_0_containing_file_not_set_root_directory_1,e,_):void 0===_?Oj(r,la.Resolving_type_reference_directive_0_containing_file_1_root_directory_not_set,e,t):Oj(r,la.Resolving_type_reference_directive_0_containing_file_1_root_directory_2,e,t,_),i&&Oj(r,la.Using_compiler_options_of_project_reference_redirect_0,i.sourceFile.fileName));const u=[],d=[];let p=eR(n);void 0!==a&&(p|=30);const m=vk(n);99===a&&3<=m&&m<=99&&(p|=32);const g=8&p?tR(n,a):[],h=[],y={compilerOptions:n,host:r,traceEnabled:s,failedLookupLocations:u,affectingLocations:d,packageJsonInfoCache:o,features:p,conditions:g,requestContainingDirectory:c,reportDiagnostic:e=>{h.push(e)},isConfigLookup:!1,candidateIsFromPackageJsonField:!1,resolvedPackageDirectory:!1};let v,b=function(){if(_&&_.length)return s&&Oj(r,la.Resolving_with_primary_search_path_0,_.join(", ")),f(_,(t=>{const i=Yj(t,e,y),o=Nb(t,r);if(!o&&s&&Oj(r,la.Directory_0_does_not_exist_skipping_all_lookups_in_it,t),n.typeRoots){const e=jR(4,i,!o,y);if(e){const t=IR(e.path);return Jj(jj(t?GR(t,!1,y):void 0,e,y))}}return Jj(qR(4,i,!o,y))}));s&&Oj(r,la.Root_directory_cannot_be_determined_skipping_primary_search_paths)}(),x=!0;if(b||(b=function(){const i=t&&Do(t);if(void 0!==i){let o;if(n.typeRoots&&Rt(t,sV))s&&Oj(r,la.Resolving_type_reference_directive_for_program_that_specifies_custom_typeRoots_skipping_lookup_in_node_modules_folder);else if(s&&Oj(r,la.Looking_up_in_node_modules_folder_initial_location_0,i),Ts(e)){const{path:t}=DR(i,e);o=ER(4,t,!1,y,!0)}else{const t=oM(4,e,i,y,void 0,void 0);o=t&&t.value}return Jj(o)}s&&Oj(r,la.Containing_file_is_not_specified_and_root_directory_cannot_be_determined_skipping_lookup_in_node_modules_folder)}(),x=!1),b){const{fileName:e,packageId:t}=b;let i,o=e;n.preserveSymlinks||({resolvedFileName:o,originalPath:i}=Qj(e,r,s)),v={primary:x,resolvedFileName:o,originalPath:i,packageId:t,isExternalLibraryImport:AR(e)}}return l={resolvedTypeReferenceDirective:v,failedLookupLocations:Uj(u),affectingLocations:Uj(d),resolutionDiagnostics:Uj(h)},c&&o&&!o.isReadonly&&(o.getOrCreateCacheForDirectory(c,i).set(e,a,l),Ts(e)||o.getOrCreateCacheForNonRelativeName(e,a,i).set(c,l)),s&&k(l),l;function k(t){var n;(null==(n=t.resolvedTypeReferenceDirective)?void 0:n.resolvedFileName)?t.resolvedTypeReferenceDirective.packageId?Oj(r,la.Type_reference_directive_0_was_successfully_resolved_to_1_with_Package_ID_2_primary_Colon_3,e,t.resolvedTypeReferenceDirective.resolvedFileName,pd(t.resolvedTypeReferenceDirective.packageId),t.resolvedTypeReferenceDirective.primary):Oj(r,la.Type_reference_directive_0_was_successfully_resolved_to_1_primary_Colon_2,e,t.resolvedTypeReferenceDirective.resolvedFileName,t.resolvedTypeReferenceDirective.primary):Oj(r,la.Type_reference_directive_0_was_not_resolved,e)}}function eR(e){let t=0;switch(vk(e)){case 3:case 99:case 100:t=30}return e.resolvePackageJsonExports?t|=8:!1===e.resolvePackageJsonExports&&(t&=-9),e.resolvePackageJsonImports?t|=2:!1===e.resolvePackageJsonImports&&(t&=-3),t}function tR(e,t){const n=vk(e);if(void 0===t)if(100===n)t=99;else if(2===n)return[];const r=99===t?["import"]:["require"];return e.noDtsResolution||r.push("types"),100!==n&&r.push("node"),K(r,e.customConditions)}function nR(e,t,n,r,i){const o=WR(null==i?void 0:i.getPackageJsonInfoCache(),r,n);return sM(r,t,(t=>{if("node_modules"!==Fo(t)){const n=jo(t,"node_modules");return GR(jo(n,e),!1,o)}}))}function rR(e,t){if(e.types)return e.types;const n=[];if(t.directoryExists&&t.getDirectories){const r=Gj(e,t);if(r)for(const e of r)if(t.directoryExists(e))for(const r of t.getDirectories(e)){const i=Jo(r),o=jo(e,i,"package.json");if(!t.fileExists(o)||null!==Cb(o,t).typings){const e=Fo(i);46!==e.charCodeAt(0)&&n.push(e)}}}return n}function iR(e){return!!(null==e?void 0:e.contents)}function oR(e){return!!e&&!e.contents}function aR(e){var t;if(null===e||"object"!=typeof e)return""+e;if(Qe(e))return`[${null==(t=e.map((e=>aR(e))))?void 0:t.join(",")}]`;let n="{";for(const t in e)De(e,t)&&(n+=`${t}: ${aR(e[t])}`);return n+"}"}function sR(e,t){return t.map((t=>aR(Vk(e,t)))).join("|")+`|${e.pathsBasePath}`}function cR(e,t){const n=new Map,r=new Map;let i=new Map;return e&&n.set(e,i),{getMapOfCacheRedirects:function(e){return e?o(e.commandLine.options,!1):i},getOrCreateMapOfCacheRedirects:function(e){return e?o(e.commandLine.options,!0):i},update:function(t){e!==t&&(e?i=o(t,!0):n.set(t,i),e=t)},clear:function(){const o=e&&t.get(e);i.clear(),n.clear(),t.clear(),r.clear(),e&&(o&&t.set(e,o),n.set(e,i))},getOwnMap:()=>i};function o(t,o){let s=n.get(t);if(s)return s;const c=a(t);if(s=r.get(c),!s){if(e){const t=a(e);t===c?s=i:r.has(t)||r.set(t,i)}o&&(s??(s=new Map)),s&&r.set(c,s)}return s&&n.set(t,s),s}function a(e){let n=t.get(e);return n||t.set(e,n=sR(e,vO)),n}}function lR(e,t,n,r){const i=e.getOrCreateMapOfCacheRedirects(t);let o=i.get(n);return o||(o=r(),i.set(n,o)),o}function _R(e,t){return void 0===t?e:`${t}|${e}`}function uR(){const e=new Map,t=new Map,n={get:(t,n)=>e.get(r(t,n)),set:(t,i,o)=>(e.set(r(t,i),o),n),delete:(t,i)=>(e.delete(r(t,i)),n),has:(t,n)=>e.has(r(t,n)),forEach:n=>e.forEach(((e,r)=>{const[i,o]=t.get(r);return n(e,i,o)})),size:()=>e.size};return n;function r(e,n){const r=_R(e,n);return t.set(r,[e,n]),r}}function dR(e){return e.resolvedModule&&(e.resolvedModule.originalPath||e.resolvedModule.resolvedFileName)}function pR(e){return e.resolvedTypeReferenceDirective&&(e.resolvedTypeReferenceDirective.originalPath||e.resolvedTypeReferenceDirective.resolvedFileName)}function fR(e,t,n,r,i,o){o??(o=new Map);const a=function(e,t,n,r){const i=cR(n,r);return{getFromDirectoryCache:function(n,r,o,a){var s,c;const l=qo(o,e,t);return null==(c=null==(s=i.getMapOfCacheRedirects(a))?void 0:s.get(l))?void 0:c.get(n,r)},getOrCreateCacheForDirectory:function(n,r){const o=qo(n,e,t);return lR(i,r,o,(()=>uR()))},clear:function(){i.clear()},update:function(e){i.update(e)},directoryToModuleNameMap:i}}(e,t,n,o),s=function(e,t,n,r,i){const o=cR(n,i);return{getFromNonRelativeNameCache:function(e,t,n,r){var i,a;return un.assert(!Ts(e)),null==(a=null==(i=o.getMapOfCacheRedirects(r))?void 0:i.get(_R(e,t)))?void 0:a.get(n)},getOrCreateCacheForNonRelativeName:function(e,t,n){return un.assert(!Ts(e)),lR(o,n,_R(e,t),a)},clear:function(){o.clear()},update:function(e){o.update(e)}};function a(){const n=new Map;return{get:function(r){return n.get(qo(r,e,t))},set:function(i,o){const a=qo(i,e,t);if(n.has(a))return;n.set(a,o);const s=r(o),c=s&&function(n,r){const i=qo(Do(r),e,t);let o=0;const a=Math.min(n.length,i.length);for(;or,clearAllExceptPackageJsonInfoCache:c,optionsToRedirectsKey:o};function c(){a.clear(),s.clear()}}function mR(e,t,n,r,i){const o=fR(e,t,n,r,dR,i);return o.getOrCreateCacheForModuleName=(e,t,n)=>o.getOrCreateCacheForNonRelativeName(e,t,n),o}function gR(e,t,n,r,i){return fR(e,t,n,r,pR,i)}function hR(e){return{moduleResolution:2,traceResolution:e.traceResolution}}function yR(e,t,n,r,i){return bR(e,t,hR(n),r,i)}function vR(e,t,n,r){const i=Do(t);return n.getFromDirectoryCache(e,r,i,void 0)}function bR(e,t,n,r,i,o,a){const s=Lj(n,r);o&&(n=o.commandLine.options),s&&(Oj(r,la.Resolving_module_0_from_1,e,t),o&&Oj(r,la.Using_compiler_options_of_project_reference_redirect_0,o.sourceFile.fileName));const c=Do(t);let l=null==i?void 0:i.getFromDirectoryCache(e,a,c,o);if(l)s&&Oj(r,la.Resolution_for_module_0_was_found_in_cache_from_location_1,e,c);else{let _=n.moduleResolution;switch(void 0===_?(_=vk(n),s&&Oj(r,la.Module_resolution_kind_is_not_specified_using_0,li[_])):s&&Oj(r,la.Explicitly_specified_module_resolution_kind_Colon_0,li[_]),_){case 3:case 99:l=function(e,t,n,r,i,o,a){return function(e,t,n,r,i,o,a,s,c){const l=Do(n),_=99===s?32:0;let u=r.noDtsResolution?3:7;return wk(r)&&(u|=8),NR(e|_,t,l,r,i,o,u,!1,a,c)}(30,e,t,n,r,i,o,a)}(e,t,n,r,i,o,a);break;case 2:l=CR(e,t,n,r,i,o,a?tR(n,a):void 0);break;case 1:l=yM(e,t,n,r,i,o);break;case 100:l=TR(e,t,n,r,i,o,a?tR(n,a):void 0);break;default:return un.fail(`Unexpected moduleResolution: ${_}`)}i&&!i.isReadonly&&(i.getOrCreateCacheForDirectory(c,o).set(e,a,l),Ts(e)||i.getOrCreateCacheForNonRelativeName(e,a,o).set(c,l))}return s&&(l.resolvedModule?l.resolvedModule.packageId?Oj(r,la.Module_name_0_was_successfully_resolved_to_1_with_Package_ID_2,e,l.resolvedModule.resolvedFileName,pd(l.resolvedModule.packageId)):Oj(r,la.Module_name_0_was_successfully_resolved_to_1,e,l.resolvedModule.resolvedFileName):Oj(r,la.Module_name_0_was_not_resolved,e)),l}function xR(e,t,n,r,i){const o=function(e,t,n,r){const{baseUrl:i,paths:o}=r.compilerOptions;if(o&&!vo(t))return r.traceEnabled&&(i&&Oj(r.host,la.baseUrl_option_is_set_to_0_using_this_value_to_resolve_non_relative_module_name_1,i,t),Oj(r.host,la.paths_option_is_specified_looking_for_a_pattern_to_match_module_name_0,t)),_M(e,t,Hy(r.compilerOptions,r.host),o,HS(o),n,!1,r)}(e,t,r,i);return o?o.value:Ts(t)?function(e,t,n,r,i){if(!i.compilerOptions.rootDirs)return;i.traceEnabled&&Oj(i.host,la.rootDirs_option_is_set_using_it_to_resolve_relative_module_name_0,t);const o=Jo(jo(n,t));let a,s;for(const e of i.compilerOptions.rootDirs){let t=Jo(e);Rt(t,lo)||(t+=lo);const n=Gt(o,t)&&(void 0===s||s.length(e[e.None=0]="None",e[e.Imports=2]="Imports",e[e.SelfName=4]="SelfName",e[e.Exports=8]="Exports",e[e.ExportsPatternTrailers=16]="ExportsPatternTrailers",e[e.AllFeatures=30]="AllFeatures",e[e.Node16Default=30]="Node16Default",e[e.NodeNextDefault=30]="NodeNextDefault",e[e.BundlerDefault=30]="BundlerDefault",e[e.EsmMode=32]="EsmMode",e))(SR||{});function TR(e,t,n,r,i,o,a){const s=Do(t);let c=n.noDtsResolution?3:7;return wk(n)&&(c|=8),NR(eR(n),e,s,n,r,i,c,!1,o,a)}function CR(e,t,n,r,i,o,a,s){let c;return s?c=8:n.noDtsResolution?(c=3,wk(n)&&(c|=8)):c=wk(n)?15:7,NR(a?30:0,e,Do(t),n,r,i,c,!!s,o,a)}function wR(e,t,n){return NR(30,e,Do(t),{moduleResolution:99},n,void 0,8,!0,void 0,void 0)}function NR(e,t,n,r,i,o,a,s,c,_){var d,p,f,m,g;const h=Lj(r,i),y=[],b=[],x=vk(r);_??(_=tR(r,100===x||2===x?void 0:32&e?99:1));const k=[],S={compilerOptions:r,host:i,traceEnabled:h,failedLookupLocations:y,affectingLocations:b,packageJsonInfoCache:o,features:e,conditions:_??l,requestContainingDirectory:n,reportDiagnostic:e=>{k.push(e)},isConfigLookup:s,candidateIsFromPackageJsonField:!1,resolvedPackageDirectory:!1};let C,w;if(h&&Rk(x)&&Oj(i,la.Resolving_in_0_mode_with_conditions_1,32&e?"ESM":"CJS",S.conditions.map((e=>`'${e}'`)).join(", ")),2===x){const e=5&a,t=-6&a;C=e&&N(e,S)||t&&N(t,S)||void 0}else C=N(a,S);if(S.resolvedPackageDirectory&&!s&&!Ts(t)){const t=(null==C?void 0:C.value)&&5&a&&!QR(5,C.value.resolved.extension);if((null==(d=null==C?void 0:C.value)?void 0:d.isExternalLibraryImport)&&t&&8&e&&(null==_?void 0:_.includes("import"))){SM(S,la.Resolution_of_non_relative_name_failed_trying_with_modern_Node_resolution_features_disabled_to_see_if_npm_library_needs_configuration_update);const e=N(5&a,{...S,features:-9&S.features,reportDiagnostic:rt});(null==(p=null==e?void 0:e.value)?void 0:p.isExternalLibraryImport)&&(w=e.value.resolved.path)}else if((!(null==C?void 0:C.value)||t)&&2===x){SM(S,la.Resolution_of_non_relative_name_failed_trying_with_moduleResolution_bundler_to_see_if_project_may_need_configuration_update);const e={...S.compilerOptions,moduleResolution:100},t=N(5&a,{...S,compilerOptions:e,features:30,conditions:tR(e),reportDiagnostic:rt});(null==(f=null==t?void 0:t.value)?void 0:f.isExternalLibraryImport)&&(w=t.value.resolved.path)}}return zj(t,null==(m=null==C?void 0:C.value)?void 0:m.resolved,null==(g=null==C?void 0:C.value)?void 0:g.isExternalLibraryImport,y,b,k,S,o,w);function N(r,a){const s=xR(r,t,n,((e,t,n,r)=>ER(e,t,n,r,!0)),a);if(s)return kM({resolved:s,isExternalLibraryImport:AR(s.path)});if(Ts(t)){const{path:e,parts:i}=DR(n,t),o=ER(r,e,!1,a,!0);return o&&kM({resolved:o,isExternalLibraryImport:T(i,"node_modules")})}{if(2&e&&Gt(t,"#")){const e=function(e,t,n,r,i,o){var a,s;if("#"===t||Gt(t,"#/"))return r.traceEnabled&&Oj(r.host,la.Invalid_import_specifier_0_has_no_possible_resolutions,t),kM(void 0);const c=Bo(n,null==(s=(a=r.host).getCurrentDirectory)?void 0:s.call(a)),l=$R(c,r);if(!l)return r.traceEnabled&&Oj(r.host,la.Directory_0_has_no_containing_package_json_scope_Imports_will_not_resolve,c),kM(void 0);if(!l.contents.packageJsonContent.imports)return r.traceEnabled&&Oj(r.host,la.package_json_scope_0_has_no_imports_defined,l.packageDirectory),kM(void 0);const _=nM(e,r,i,o,t,l.contents.packageJsonContent.imports,l,!0);return _||(r.traceEnabled&&Oj(r.host,la.Import_specifier_0_does_not_exist_in_package_json_scope_at_path_1,t,l.packageDirectory),kM(void 0))}(r,t,n,a,o,c);if(e)return e.value&&{value:{resolved:e.value,isExternalLibraryImport:!1}}}if(4&e){const e=function(e,t,n,r,i,o){var a,s;const c=$R(Bo(n,null==(s=(a=r.host).getCurrentDirectory)?void 0:s.call(a)),r);if(!c||!c.contents.packageJsonContent.exports)return;if("string"!=typeof c.contents.packageJsonContent.name)return;const l=Ao(t),_=Ao(c.contents.packageJsonContent.name);if(!v(_,((e,t)=>l[t]===e)))return;const d=l.slice(_.length),p=u(d)?`.${lo}${d.join(lo)}`:".";if(Pk(r.compilerOptions)&&!AR(n))return eM(c,e,p,r,i,o);const f=-6&e;return eM(c,5&e,p,r,i,o)||eM(c,f,p,r,i,o)}(r,t,n,a,o,c);if(e)return e.value&&{value:{resolved:e.value,isExternalLibraryImport:!1}}}if(t.includes(":"))return void(h&&Oj(i,la.Skipping_module_0_that_looks_like_an_absolute_URI_target_file_types_Colon_1,t,Bj(r)));h&&Oj(i,la.Loading_module_0_from_node_modules_folder_target_file_types_Colon_1,t,Bj(r));let s=oM(r,t,n,a,o,c);return 4&r&&(s??(s=vM(t,a))),s&&{value:s.value&&{resolved:s.value,isExternalLibraryImport:!0}}}}}function DR(e,t){const n=jo(e,t),r=Ao(n),i=ye(r);return{path:"."===i||".."===i?Vo(Jo(n)):Jo(n),parts:r}}function FR(e,t,n){if(!t.realpath)return e;const r=Jo(t.realpath(e));return n&&Oj(t,la.Resolving_real_path_for_0_result_1,e,r),r}function ER(e,t,n,r,i){if(r.traceEnabled&&Oj(r.host,la.Loading_module_as_file_Slash_folder_candidate_module_location_0_target_file_types_Colon_1,t,Bj(e)),!To(t)){if(!n){const e=Do(t);Nb(e,r.host)||(r.traceEnabled&&Oj(r.host,la.Directory_0_does_not_exist_skipping_all_lookups_in_it,e),n=!0)}const o=jR(e,t,n,r);if(o){const e=i?IR(o.path):void 0;return jj(e?GR(e,!1,r):void 0,o,r)}}if(n||Nb(t,r.host)||(r.traceEnabled&&Oj(r.host,la.Directory_0_does_not_exist_skipping_all_lookups_in_it,t),n=!0),!(32&r.features))return qR(e,t,n,r,i)}var PR="/node_modules/";function AR(e){return e.includes(PR)}function IR(e,t){const n=Jo(e),r=n.lastIndexOf(PR);if(-1===r)return;const i=r+PR.length;let o=OR(n,i,t);return 64===n.charCodeAt(i)&&(o=OR(n,o,t)),n.slice(0,o)}function OR(e,t,n){const r=e.indexOf(lo,t+1);return-1===r?n?e.length:t:r}function LR(e,t,n,r){return Rj(jR(e,t,n,r))}function jR(e,t,n,r){const i=RR(e,t,n,r);if(i)return i;if(!(32&r.features)){const i=BR(t,e,"",n,r);if(i)return i}}function RR(e,t,n,r){if(!Fo(t).includes("."))return;let i=zS(t);i===t&&(i=t.substring(0,t.lastIndexOf(".")));const o=t.substring(i.length);return r.traceEnabled&&Oj(r.host,la.File_name_0_has_a_1_extension_stripping_it,t,o),BR(i,e,o,n,r)}function MR(e,t,n,r,i){if(1&e&&So(t,DS)||4&e&&So(t,NS)){const e=JR(t,r,i),o=vb(t);return void 0!==e?{path:t,ext:o,resolvedUsingTsExtension:n?!Rt(n,o):void 0}:void 0}return i.isConfigLookup&&8===e&&ko(t,".json")?void 0!==JR(t,r,i)?{path:t,ext:".json",resolvedUsingTsExtension:void 0}:void 0:RR(e,t,r,i)}function BR(e,t,n,r,i){if(!r){const t=Do(e);t&&(r=!Nb(t,i.host))}switch(n){case".mjs":case".mts":case".d.mts":return 1&t&&o(".mts",".mts"===n||".d.mts"===n)||4&t&&o(".d.mts",".mts"===n||".d.mts"===n)||2&t&&o(".mjs")||void 0;case".cjs":case".cts":case".d.cts":return 1&t&&o(".cts",".cts"===n||".d.cts"===n)||4&t&&o(".d.cts",".cts"===n||".d.cts"===n)||2&t&&o(".cjs")||void 0;case".json":return 4&t&&o(".d.json.ts")||8&t&&o(".json")||void 0;case".tsx":case".jsx":return 1&t&&(o(".tsx",".tsx"===n)||o(".ts",".tsx"===n))||4&t&&o(".d.ts",".tsx"===n)||2&t&&(o(".jsx")||o(".js"))||void 0;case".ts":case".d.ts":case".js":case"":return 1&t&&(o(".ts",".ts"===n||".d.ts"===n)||o(".tsx",".ts"===n||".d.ts"===n))||4&t&&o(".d.ts",".ts"===n||".d.ts"===n)||2&t&&(o(".js")||o(".jsx"))||i.isConfigLookup&&o(".json")||void 0;default:return 4&t&&!$I(e+n)&&o(`.d${n}.ts`)||void 0}function o(t,n){const o=JR(e+t,r,i);return void 0===o?void 0:{path:o,ext:t,resolvedUsingTsExtension:!i.candidateIsFromPackageJsonField&&n}}}function JR(e,t,n){var r;if(!(null==(r=n.compilerOptions.moduleSuffixes)?void 0:r.length))return zR(e,t,n);const i=ZS(e)??"",o=i?US(e,i):e;return d(n.compilerOptions.moduleSuffixes,(e=>zR(o+e+i,t,n)))}function zR(e,t,n){var r;if(!t){if(n.host.fileExists(e))return n.traceEnabled&&Oj(n.host,la.File_0_exists_use_it_as_a_name_resolution_result,e),e;n.traceEnabled&&Oj(n.host,la.File_0_does_not_exist,e)}null==(r=n.failedLookupLocations)||r.push(e)}function qR(e,t,n,r,i=!0){const o=i?GR(t,n,r):void 0;return jj(o,XR(e,t,n,r,o&&o.contents.packageJsonContent,o&&HR(o,r)),r)}function UR(e,t,n,r,i){if(!i&&void 0!==e.contents.resolvedEntrypoints)return e.contents.resolvedEntrypoints;let o;const a=5|(i?2:0),s=eR(t),c=WR(null==r?void 0:r.getPackageJsonInfoCache(),n,t);c.conditions=tR(t),c.requestContainingDirectory=e.packageDirectory;const l=XR(a,e.packageDirectory,!1,c,e.contents.packageJsonContent,HR(e,c));if(o=ie(o,null==l?void 0:l.path),8&s&&e.contents.packageJsonContent.exports){const r=Q([tR(t,99),tR(t,1)],te);for(const t of r){const r={...c,failedLookupLocations:[],conditions:t,host:n},i=VR(e,e.contents.packageJsonContent.exports,r,a);if(i)for(const e of i)o=le(o,e.path)}}return e.contents.resolvedEntrypoints=o||!1}function VR(e,t,n,r){let i;if(Qe(t))for(const e of t)o(e);else if("object"==typeof t&&null!==t&&ZR(t))for(const e in t)o(t[e]);else o(t);return i;function o(t){var a,s;if("string"==typeof t&&Gt(t,"./"))if(t.includes("*")&&n.host.readDirectory){if(t.indexOf("*")!==t.lastIndexOf("*"))return!1;n.host.readDirectory(e.packageDirectory,function(e){const t=[];return 1&e&&t.push(...DS),2&e&&t.push(...TS),4&e&&t.push(...NS),8&e&&t.push(".json"),t}(r),void 0,[Ho(_C(t,"**/*"),".*")]).forEach((e=>{i=le(i,{path:e,ext:Po(e),resolvedUsingTsExtension:void 0})}))}else{const o=Ao(t).slice(2);if(o.includes("..")||o.includes(".")||o.includes("node_modules"))return!1;const c=Bo(jo(e.packageDirectory,t),null==(s=(a=n.host).getCurrentDirectory)?void 0:s.call(a)),l=MR(r,c,t,!1,n);if(l)return i=le(i,l,((e,t)=>e.path===t.path)),!0}else if(Array.isArray(t)){for(const e of t)if(o(e))return!0}else if("object"==typeof t&&null!==t)return d(Ee(t),(e=>{if("default"===e||T(n.conditions,e)||iM(n.conditions,e))return o(t[e]),!0}))}}function WR(e,t,n){return{host:t,compilerOptions:n,traceEnabled:Lj(n,t),failedLookupLocations:void 0,affectingLocations:void 0,packageJsonInfoCache:e,features:0,conditions:l,requestContainingDirectory:void 0,reportDiagnostic:rt,isConfigLookup:!1,candidateIsFromPackageJsonField:!1,resolvedPackageDirectory:!1}}function $R(e,t){return sM(t.host,e,(e=>GR(e,!1,t)))}function HR(e,t){return void 0===e.contents.versionPaths&&(e.contents.versionPaths=function(e,t){const n=function(e,t){const n=$j(e,"typesVersions","object",t);if(void 0!==n)return t.traceEnabled&&Oj(t.host,la.package_json_has_a_typesVersions_field_with_version_specific_path_mappings),n}(e,t);if(void 0===n)return;if(t.traceEnabled)for(const e in n)De(n,e)&&!kn.tryParse(e)&&Oj(t.host,la.package_json_has_a_typesVersions_entry_0_that_is_not_a_valid_semver_range,e);const r=Kj(n);if(!r)return void(t.traceEnabled&&Oj(t.host,la.package_json_does_not_have_a_typesVersions_entry_that_matches_version_0,a));const{version:i,paths:o}=r;if("object"==typeof o)return r;t.traceEnabled&&Oj(t.host,la.Expected_type_of_0_field_in_package_json_to_be_1_got_2,`typesVersions['${i}']`,"object",typeof o)}(e.contents.packageJsonContent,t)||!1),e.contents.versionPaths||void 0}function KR(e,t){return void 0===e.contents.peerDependencies&&(e.contents.peerDependencies=function(e,t){const n=$j(e.contents.packageJsonContent,"peerDependencies","object",t);if(void 0===n)return;t.traceEnabled&&Oj(t.host,la.package_json_has_a_peerDependencies_field);const r=FR(e.packageDirectory,t.host,t.traceEnabled),i=r.substring(0,r.lastIndexOf("node_modules")+12)+lo;let o="";for(const e in n)if(De(n,e)){const n=GR(i+e,!1,t);if(n){const r=n.contents.packageJsonContent.version;o+=`+${e}@${r}`,t.traceEnabled&&Oj(t.host,la.Found_peerDependency_0_with_1_version,e,r)}else t.traceEnabled&&Oj(t.host,la.Failed_to_find_peerDependency_0,e)}return o}(e,t)||!1),e.contents.peerDependencies||void 0}function GR(e,t,n){var r,i,o,a,s,c;const{host:l,traceEnabled:_}=n,u=jo(e,"package.json");if(t)return void(null==(r=n.failedLookupLocations)||r.push(u));const d=null==(i=n.packageJsonInfoCache)?void 0:i.getPackageJsonInfo(u);if(void 0!==d)return iR(d)?(_&&Oj(l,la.File_0_exists_according_to_earlier_cached_lookups,u),null==(o=n.affectingLocations)||o.push(u),d.packageDirectory===e?d:{packageDirectory:e,contents:d.contents}):(d.directoryExists&&_&&Oj(l,la.File_0_does_not_exist_according_to_earlier_cached_lookups,u),void(null==(a=n.failedLookupLocations)||a.push(u)));const p=Nb(e,l);if(p&&l.fileExists(u)){const t=Cb(u,l);_&&Oj(l,la.Found_package_json_at_0,u);const r={packageDirectory:e,contents:{packageJsonContent:t,versionPaths:void 0,resolvedEntrypoints:void 0,peerDependencies:void 0}};return n.packageJsonInfoCache&&!n.packageJsonInfoCache.isReadonly&&n.packageJsonInfoCache.setPackageJsonInfo(u,r),null==(s=n.affectingLocations)||s.push(u),r}p&&_&&Oj(l,la.File_0_does_not_exist,u),n.packageJsonInfoCache&&!n.packageJsonInfoCache.isReadonly&&n.packageJsonInfoCache.setPackageJsonInfo(u,{packageDirectory:e,directoryExists:p}),null==(c=n.failedLookupLocations)||c.push(u)}function XR(e,t,n,r,i,o){let a;i&&(a=r.isConfigLookup?function(e,t,n){return Hj(e,"tsconfig",t,n)}(i,t,r):4&e&&function(e,t,n){return Hj(e,"typings",t,n)||Hj(e,"types",t,n)}(i,t,r)||7&e&&function(e,t,n){return Hj(e,"main",t,n)}(i,t,r)||void 0);const c=(e,t,n,r)=>{const o=MR(e,t,void 0,n,r);if(o)return Rj(o);const a=4===e?5:e,s=r.features,c=r.candidateIsFromPackageJsonField;r.candidateIsFromPackageJsonField=!0,"module"!==(null==i?void 0:i.type)&&(r.features&=-33);const l=ER(a,t,n,r,!1);return r.features=s,r.candidateIsFromPackageJsonField=c,l},l=a?!Nb(Do(a),r.host):void 0,_=n||!Nb(t,r.host),u=jo(t,r.isConfigLookup?"tsconfig":"index");if(o&&(!a||Zo(t,a))){const n=na(t,a||u,!1);r.traceEnabled&&Oj(r.host,la.package_json_has_a_typesVersions_entry_0_that_matches_compiler_version_1_looking_for_a_pattern_to_match_module_name_2,o.version,s,n);const i=HS(o.paths),d=_M(e,n,t,o.paths,i,c,l||_,r);if(d)return Mj(d.value)}return a&&Mj(c(e,a,l,r))||(32&r.features?void 0:jR(e,u,_,r))}function QR(e,t){return 2&e&&(".js"===t||".jsx"===t||".mjs"===t||".cjs"===t)||1&e&&(".ts"===t||".tsx"===t||".mts"===t||".cts"===t)||4&e&&(".d.ts"===t||".d.mts"===t||".d.cts"===t)||8&e&&".json"===t||!1}function YR(e){let t=e.indexOf(lo);return"@"===e[0]&&(t=e.indexOf(lo,t+1)),-1===t?{packageName:e,rest:""}:{packageName:e.slice(0,t),rest:e.slice(t+1)}}function ZR(e){return v(Ee(e),(e=>Gt(e,".")))}function eM(e,t,n,r,i,o){if(e.contents.packageJsonContent.exports){if("."===n){let a;if("string"==typeof e.contents.packageJsonContent.exports||Array.isArray(e.contents.packageJsonContent.exports)||"object"==typeof e.contents.packageJsonContent.exports&&!$(Ee(e.contents.packageJsonContent.exports),(e=>Gt(e,".")))?a=e.contents.packageJsonContent.exports:De(e.contents.packageJsonContent.exports,".")&&(a=e.contents.packageJsonContent.exports["."]),a)return rM(t,r,i,o,n,e,!1)(a,"",!1,".")}else if(ZR(e.contents.packageJsonContent.exports)){if("object"!=typeof e.contents.packageJsonContent.exports)return r.traceEnabled&&Oj(r.host,la.Export_specifier_0_does_not_exist_in_package_json_scope_at_path_1,n,e.packageDirectory),kM(void 0);const a=nM(t,r,i,o,n,e.contents.packageJsonContent.exports,e,!1);if(a)return a}return r.traceEnabled&&Oj(r.host,la.Export_specifier_0_does_not_exist_in_package_json_scope_at_path_1,n,e.packageDirectory),kM(void 0)}}function tM(e,t){const n=e.indexOf("*"),r=t.indexOf("*"),i=-1===n?e.length:n+1,o=-1===r?t.length:r+1;return i>o?-1:o>i||-1===n?1:-1===r||e.length>t.length?-1:t.length>e.length?1:0}function nM(e,t,n,r,i,o,a,s){const c=rM(e,t,n,r,i,a,s);if(!Rt(i,lo)&&!i.includes("*")&&De(o,i))return c(o[i],"",!1,i);const l=_e(N(Ee(o),(e=>function(e){const t=e.indexOf("*");return-1!==t&&t===e.lastIndexOf("*")}(e)||Rt(e,"/"))),tM);for(const e of l){if(16&t.features&&_(e,i)){const t=o[e],n=e.indexOf("*");return c(t,i.substring(e.substring(0,n).length,i.length-(e.length-1-n)),!0,e)}if(Rt(e,"*")&&Gt(i,e.substring(0,e.length-1)))return c(o[e],i.substring(e.length-1),!0,e);if(Gt(i,e))return c(o[e],i.substring(e.length),!1,e)}function _(e,t){if(Rt(e,"*"))return!1;const n=e.indexOf("*");return-1!==n&&Gt(t,e.substring(0,n))&&Rt(t,e.substring(n+1))}}function rM(e,t,n,r,i,o,a){return function s(c,l,_,d){if("string"==typeof c){if(!_&&l.length>0&&!Rt(c,"/"))return t.traceEnabled&&Oj(t.host,la.package_json_scope_0_has_invalid_type_for_target_of_specifier_1,o.packageDirectory,i),kM(void 0);if(!Gt(c,"./")){if(a&&!Gt(c,"../")&&!Gt(c,"/")&&!go(c)){const i=_?c.replace(/\*/g,l):c+l;SM(t,la.Using_0_subpath_1_with_target_2,"imports",d,i),SM(t,la.Resolving_module_0_from_1,i,o.packageDirectory+"/");const a=NR(t.features,i,o.packageDirectory+"/",t.compilerOptions,t.host,n,e,!1,r,t.conditions);return kM(a.resolvedModule?{path:a.resolvedModule.resolvedFileName,extension:a.resolvedModule.extension,packageId:a.resolvedModule.packageId,originalPath:a.resolvedModule.originalPath,resolvedUsingTsExtension:a.resolvedModule.resolvedUsingTsExtension}:void 0)}return t.traceEnabled&&Oj(t.host,la.package_json_scope_0_has_invalid_type_for_target_of_specifier_1,o.packageDirectory,i),kM(void 0)}const s=(vo(c)?Ao(c).slice(1):Ao(c)).slice(1);if(s.includes("..")||s.includes(".")||s.includes("node_modules"))return t.traceEnabled&&Oj(t.host,la.package_json_scope_0_has_invalid_type_for_target_of_specifier_1,o.packageDirectory,i),kM(void 0);const u=jo(o.packageDirectory,c),m=Ao(l);if(m.includes("..")||m.includes(".")||m.includes("node_modules"))return t.traceEnabled&&Oj(t.host,la.package_json_scope_0_has_invalid_type_for_target_of_specifier_1,o.packageDirectory,i),kM(void 0);t.traceEnabled&&Oj(t.host,la.Using_0_subpath_1_with_target_2,a?"imports":"exports",d,_?c.replace(/\*/g,l):c+l);const g=p(_?u.replace(/\*/g,l):u+l),h=function(n,r,i,a){var s,c,l,_;if(!t.isConfigLookup&&(t.compilerOptions.declarationDir||t.compilerOptions.outDir)&&!n.includes("/node_modules/")&&(!t.compilerOptions.configFile||Zo(o.packageDirectory,p(t.compilerOptions.configFile.fileName),!TM(t)))){const d=jy({useCaseSensitiveFileNames:()=>TM(t)}),f=[];if(t.compilerOptions.rootDir||t.compilerOptions.composite&&t.compilerOptions.configFilePath){const e=p(Uq(t.compilerOptions,(()=>[]),(null==(c=(s=t.host).getCurrentDirectory)?void 0:c.call(s))||"",d));f.push(e)}else if(t.requestContainingDirectory){const e=p(jo(t.requestContainingDirectory,"index.ts")),n=p(Uq(t.compilerOptions,(()=>[e,p(i)]),(null==(_=(l=t.host).getCurrentDirectory)?void 0:_.call(l))||"",d));f.push(n);let r=Vo(n);for(;r&&r.length>1;){const e=Ao(r);e.pop();const t=Io(e);f.unshift(t),r=Vo(t)}}f.length>1&&t.reportDiagnostic(Xx(a?la.The_project_root_is_ambiguous_but_is_required_to_resolve_import_map_entry_0_in_file_1_Supply_the_rootDir_compiler_option_to_disambiguate:la.The_project_root_is_ambiguous_but_is_required_to_resolve_export_map_entry_0_in_file_1_Supply_the_rootDir_compiler_option_to_disambiguate,""===r?".":r,i));for(const r of f){const i=u(r);for(const a of i)if(Zo(a,n,!TM(t))){const i=jo(r,n.slice(a.length+1)),s=[".mjs",".cjs",".js",".json",".d.mts",".d.cts",".d.ts"];for(const n of s)if(ko(i,n)){const r=Wy(i);for(const a of r){if(!QR(e,a))continue;const r=$o(i,a,n,!TM(t));if(t.host.fileExists(r))return kM(jj(o,MR(e,r,void 0,!1,t),t))}}}}}return;function u(e){var n,r;const i=t.compilerOptions.configFile?(null==(r=(n=t.host).getCurrentDirectory)?void 0:r.call(n))||"":e,o=[];return t.compilerOptions.declarationDir&&o.push(p(f(i,t.compilerOptions.declarationDir))),t.compilerOptions.outDir&&t.compilerOptions.outDir!==t.compilerOptions.declarationDir&&o.push(p(f(i,t.compilerOptions.outDir))),o}}(g,l,jo(o.packageDirectory,"package.json"),a);return h||kM(jj(o,MR(e,g,c,!1,t),t))}if("object"==typeof c&&null!==c){if(!Array.isArray(c)){SM(t,la.Entering_conditional_exports);for(const e of Ee(c))if("default"===e||t.conditions.includes(e)||iM(t.conditions,e)){SM(t,la.Matched_0_condition_1,a?"imports":"exports",e);const n=s(c[e],l,_,d);if(n)return SM(t,la.Resolved_under_condition_0,e),SM(t,la.Exiting_conditional_exports),n;SM(t,la.Failed_to_resolve_under_condition_0,e)}else SM(t,la.Saw_non_matching_condition_0,e);return void SM(t,la.Exiting_conditional_exports)}if(!u(c))return t.traceEnabled&&Oj(t.host,la.package_json_scope_0_has_invalid_type_for_target_of_specifier_1,o.packageDirectory,i),kM(void 0);for(const e of c){const t=s(e,l,_,d);if(t)return t}}else if(null===c)return t.traceEnabled&&Oj(t.host,la.package_json_scope_0_explicitly_maps_specifier_1_to_null,o.packageDirectory,i),kM(void 0);return t.traceEnabled&&Oj(t.host,la.package_json_scope_0_has_invalid_type_for_target_of_specifier_1,o.packageDirectory,i),kM(void 0);function p(e){var n,r;return void 0===e?e:Bo(e,null==(r=(n=t.host).getCurrentDirectory)?void 0:r.call(n))}function f(e,t){return Vo(jo(e,t))}}}function iM(e,t){if(!e.includes("types"))return!1;if(!Gt(t,"types@"))return!1;const n=kn.tryParse(t.substring(6));return!!n&&n.test(s)}function oM(e,t,n,r,i,o){return aM(e,t,n,r,!1,i,o)}function aM(e,t,n,r,i,o,a){const s=0===r.features?void 0:32&r.features?99:1,c=5&e,l=-6&e;if(c){SM(r,la.Searching_all_ancestor_node_modules_directories_for_preferred_extensions_Colon_0,Bj(c));const e=_(c);if(e)return e}if(l&&!i)return SM(r,la.Searching_all_ancestor_node_modules_directories_for_fallback_extensions_Colon_0,Bj(l)),_(l);function _(e){return sM(r.host,Oo(n),(n=>{if("node_modules"!==Fo(n)){return hM(o,t,s,n,a,r)||kM(cM(e,t,n,r,i,o,a))}}))}}function sM(e,t,n){var r;const i=null==(r=null==e?void 0:e.getGlobalTypingsCacheLocation)?void 0:r.call(e);return aa(t,(e=>{const t=n(e);return void 0!==t?t:e!==i&&void 0}))||void 0}function cM(e,t,n,r,i,o,a){const s=jo(n,"node_modules"),c=Nb(s,r.host);if(!c&&r.traceEnabled&&Oj(r.host,la.Directory_0_does_not_exist_skipping_all_lookups_in_it,s),!i){const n=lM(e,t,s,c,r,o,a);if(n)return n}if(4&e){const e=jo(s,"@types");let n=c;return c&&!Nb(e,r.host)&&(r.traceEnabled&&Oj(r.host,la.Directory_0_does_not_exist_skipping_all_lookups_in_it,e),n=!1),lM(4,dM(t,r),e,n,r,o,a)}}function lM(e,t,n,r,i,o,a){var c,_;const u=Jo(jo(n,t)),{packageName:d,rest:p}=YR(t),f=jo(n,d);let m,g=GR(u,!r,i);if(""!==p&&g&&(!(8&i.features)||!De((null==(c=m=GR(f,!r,i))?void 0:c.contents.packageJsonContent)??l,"exports"))){const t=jR(e,u,!r,i);if(t)return Rj(t);const n=XR(e,u,!r,i,g.contents.packageJsonContent,HR(g,i));return jj(g,n,i)}const h=(e,t,n,r)=>{let i=(p||!(32&r.features))&&jR(e,t,n,r)||XR(e,t,n,r,g&&g.contents.packageJsonContent,g&&HR(g,r));return!i&&g&&(void 0===g.contents.packageJsonContent.exports||null===g.contents.packageJsonContent.exports)&&32&r.features&&(i=jR(e,jo(t,"index.js"),n,r)),jj(g,i,r)};if(""!==p&&(g=m??GR(f,!r,i)),g&&(i.resolvedPackageDirectory=!0),g&&g.contents.packageJsonContent.exports&&8&i.features)return null==(_=eM(g,e,jo(".",p),i,o,a))?void 0:_.value;const y=""!==p&&g?HR(g,i):void 0;if(y){i.traceEnabled&&Oj(i.host,la.package_json_has_a_typesVersions_entry_0_that_matches_compiler_version_1_looking_for_a_pattern_to_match_module_name_2,y.version,s,p);const t=r&&Nb(f,i.host),n=HS(y.paths),o=_M(e,p,f,y.paths,n,h,!t,i);if(o)return o.value}return h(e,u,!r,i)}function _M(e,t,n,r,i,o,a,s){const c=nT(i,t);if(c){const i=Ze(c)?void 0:Ht(c,t),l=Ze(c)?c:$t(c);return s.traceEnabled&&Oj(s.host,la.Module_name_0_matched_pattern_1,t,l),{value:d(r[l],(t=>{const r=i?_C(t,i):t,c=Jo(jo(n,r));s.traceEnabled&&Oj(s.host,la.Trying_substitution_0_candidate_module_location_Colon_1,t,r);const l=ZS(t);if(void 0!==l){const e=JR(c,a,s);if(void 0!==e)return Rj({path:e,ext:l,resolvedUsingTsExtension:void 0})}return o(e,c,a||!Nb(Do(c),s.host),s)}))}}}var uM="__";function dM(e,t){const n=fM(e);return t.traceEnabled&&n!==e&&Oj(t.host,la.Scoped_package_detected_looking_in_0,n),n}function pM(e){return`@types/${fM(e)}`}function fM(e){if(Gt(e,"@")){const t=e.replace(lo,uM);if(t!==e)return t.slice(1)}return e}function mM(e){const t=Xt(e,"@types/");return t!==e?gM(t):e}function gM(e){return e.includes(uM)?"@"+e.replace(uM,lo):e}function hM(e,t,n,r,i,o){const a=e&&e.getFromNonRelativeNameCache(t,n,r,i);if(a)return o.traceEnabled&&Oj(o.host,la.Resolution_for_module_0_was_found_in_cache_from_location_1,t,r),o.resultFromCache=a,{value:a.resolvedModule&&{path:a.resolvedModule.resolvedFileName,originalPath:a.resolvedModule.originalPath||!0,extension:a.resolvedModule.extension,packageId:a.resolvedModule.packageId,resolvedUsingTsExtension:a.resolvedModule.resolvedUsingTsExtension}}}function yM(e,t,n,r,i,o){const a=Lj(n,r),s=[],c=[],l=Do(t),_=[],u={compilerOptions:n,host:r,traceEnabled:a,failedLookupLocations:s,affectingLocations:c,packageJsonInfoCache:i,features:0,conditions:[],requestContainingDirectory:l,reportDiagnostic:e=>{_.push(e)},isConfigLookup:!1,candidateIsFromPackageJsonField:!1,resolvedPackageDirectory:!1},d=p(5)||p(2|(n.resolveJsonModule?8:0));return zj(e,d&&d.value,(null==d?void 0:d.value)&&AR(d.value.path),s,c,_,u,i);function p(t){const n=xR(t,e,l,LR,u);if(n)return{value:n};if(Ts(e)){const n=Jo(jo(l,e));return kM(LR(t,n,!1,u))}{const n=sM(u.host,l,(n=>{const r=hM(i,e,void 0,n,o,u);if(r)return r;const a=Jo(jo(n,e));return kM(LR(t,a,!1,u))}));if(n)return n;if(5&t){let n=function(e,t,n){return aM(4,e,t,n,!0,void 0,void 0)}(e,l,u);return 4&t&&(n??(n=vM(e,u))),n}}}}function vM(e,t){if(t.compilerOptions.typeRoots)for(const n of t.compilerOptions.typeRoots){const r=Yj(n,e,t),i=Nb(n,t.host);!i&&t.traceEnabled&&Oj(t.host,la.Directory_0_does_not_exist_skipping_all_lookups_in_it,n);const o=jR(4,r,!i,t);if(o){const e=IR(o.path);return kM(jj(e?GR(e,!1,t):void 0,o,t))}const a=qR(4,r,!i,t);if(a)return kM(a)}}function bM(e,t){return gk(e)||!!t&&$I(t)}function xM(e,t,n,r,i,o){const a=Lj(n,r);a&&Oj(r,la.Auto_discovery_for_typings_is_enabled_in_project_0_Running_extra_resolution_pass_for_module_1_using_cache_location_2,t,e,i);const s=[],c=[],l=[],_={compilerOptions:n,host:r,traceEnabled:a,failedLookupLocations:s,affectingLocations:c,packageJsonInfoCache:o,features:0,conditions:[],requestContainingDirectory:void 0,reportDiagnostic:e=>{l.push(e)},isConfigLookup:!1,candidateIsFromPackageJsonField:!1,resolvedPackageDirectory:!1};return qj(cM(4,e,i,_,!1,void 0,void 0),!0,s,c,l,_.resultFromCache,void 0)}function kM(e){return void 0!==e?{value:e}:void 0}function SM(e,t,...n){e.traceEnabled&&Oj(e.host,t,...n)}function TM(e){return!e.host.useCaseSensitiveFileNames||("boolean"==typeof e.host.useCaseSensitiveFileNames?e.host.useCaseSensitiveFileNames:e.host.useCaseSensitiveFileNames())}var CM=(e=>(e[e.NonInstantiated=0]="NonInstantiated",e[e.Instantiated=1]="Instantiated",e[e.ConstEnumOnly=2]="ConstEnumOnly",e))(CM||{});function wM(e,t){return e.body&&!e.body.parent&&(wT(e.body,e),NT(e.body,!1)),e.body?NM(e.body,t):1}function NM(e,t=new Map){const n=jB(e);if(t.has(n))return t.get(n)||0;t.set(n,void 0);const r=function(e,t){switch(e.kind){case 264:case 265:return 0;case 266:if(Zp(e))return 2;break;case 272:case 271:if(!wv(e,32))return 0;break;case 278:const n=e;if(!n.moduleSpecifier&&n.exportClause&&279===n.exportClause.kind){let e=0;for(const r of n.exportClause.elements){const n=DM(r,t);if(n>e&&(e=n),1===e)return e}return e}break;case 268:{let n=0;return PI(e,(e=>{const r=NM(e,t);switch(r){case 0:return;case 2:return void(n=2);case 1:return n=1,!0;default:un.assertNever(r)}})),n}case 267:return wM(e,t);case 80:if(4096&e.flags)return 0}return 1}(e,t);return t.set(n,r),r}function DM(e,t){const n=e.propertyName||e.name;if(80!==n.kind)return 1;let r=e.parent;for(;r;){if(CF(r)||YF(r)||qE(r)){const e=r.statements;let i;for(const o of e)if(bc(o,n)){o.parent||(wT(o,r),NT(o,!1));const e=NM(o,t);if((void 0===i||e>i)&&(i=e),1===i)return i;271===o.kind&&(i=1)}if(void 0!==i)return i}r=r.parent}return 1}var FM=(e=>(e[e.None=0]="None",e[e.IsContainer=1]="IsContainer",e[e.IsBlockScopedContainer=2]="IsBlockScopedContainer",e[e.IsControlFlowContainer=4]="IsControlFlowContainer",e[e.IsFunctionLike=8]="IsFunctionLike",e[e.IsFunctionExpression=16]="IsFunctionExpression",e[e.HasLocals=32]="HasLocals",e[e.IsInterface=64]="IsInterface",e[e.IsObjectLiteralOrClassExpressionMethodOrAccessor=128]="IsObjectLiteralOrClassExpressionMethodOrAccessor",e))(FM||{});function EM(e,t,n){return un.attachFlowNodeDebugInfo({flags:e,id:0,node:t,antecedent:n})}var PM=IM();function AM(e,t){tr("beforeBind"),PM(e,t),tr("afterBind"),nr("Bind","beforeBind","afterBind")}function IM(){var e,t,n,r,i,o,a,s,c,l,_,p,f,m,g,h,y,b,x,k,S,C,w,N,D,F,E=!1,P=0,A=EM(1,void 0,void 0),I=EM(1,void 0,void 0),O=function(){return UA((function(e,t){if(t){t.stackIndex++,wT(e,r);const n=N;qe(e);const i=r;r=e,t.skip=!1,t.inStrictModeStack[t.stackIndex]=n,t.parentStack[t.stackIndex]=i}else t={stackIndex:0,skip:!1,inStrictModeStack:[void 0],parentStack:[void 0]};const n=e.operatorToken.kind;if(Qv(n)||Gv(n)){if(pe(e)){const t=ee(),n=p,r=C;C=!1,ke(e,t,t),p=C?ue(t):n,C||(C=r)}else ke(e,h,y);t.skip=!0}return t}),(function(t,n,r){if(!n.skip){const n=e(t);return 28===r.operatorToken.kind&&ve(t),n}}),(function(e,t,n){t.skip||Me(e)}),(function(t,n,r){if(!n.skip){const n=e(t);return 28===r.operatorToken.kind&&ve(t),n}}),(function(e,t){if(!t.skip){const t=e.operatorToken.kind;Zv(t)&&!Xg(e)&&(xe(e.left),64===t&&212===e.left.kind)&&Z(e.left.expression)&&(p=ce(256,p,e))}const n=t.inStrictModeStack[t.stackIndex],i=t.parentStack[t.stackIndex];void 0!==n&&(N=n),void 0!==i&&(r=i),t.skip=!1,t.stackIndex--}),void 0);function e(e){if(e&&cF(e)&&!rb(e))return e;Me(e)}}();return function(u,d){var v,x;e=u,n=hk(t=d),N=function(e,t){return!(!Mk(t,"alwaysStrict")||e.isDeclarationFile)||!!e.externalModuleIndicator}(e,d),F=new Set,P=0,D=jx.getSymbolConstructor(),un.attachFlowNodeDebugInfo(A),un.attachFlowNodeDebugInfo(I),e.locals||(null==(v=Hn)||v.push(Hn.Phase.Bind,"bindSourceFile",{path:e.path},!0),Me(e),null==(x=Hn)||x.pop(),e.symbolCount=P,e.classifiableNames=F,function(){if(!c)return;const t=i,n=s,o=a,l=r,_=p;for(const t of c){const n=t.parent.parent;i=Np(n)||e,a=Dp(n)||e,p=EM(2,void 0,void 0),r=t,Me(t.typeExpression);const o=Tc(t);if((vP(t)||!t.fullName)&&o&&cb(o.parent)){const n=rt(o.parent);if(n){Ye(e.symbol,o.parent,n,!!_c(o,(e=>HD(e)&&"prototype"===e.name.escapedText)),!1);const r=i;switch(_g(o.parent)){case 1:case 2:i=Qp(e)?e:void 0;break;case 4:i=o.parent.expression;break;case 3:i=o.parent.expression.name;break;case 5:i=LM(e,o.parent.expression)?e:HD(o.parent.expression)?o.parent.expression.name:o.parent.expression;break;case 0:return un.fail("Shouldn't have detected typedef or enum on non-assignment declaration")}i&&z(t,524288,788968),i=r}}else vP(t)||!t.fullName||80===t.fullName.kind?(r=t.parent,Ie(t,524288,788968)):Me(t.fullName)}i=t,s=n,a=o,r=l,p=_}(),function(){if(void 0===_)return;const t=i,n=s,o=a,c=r,l=p;for(const t of _){const n=Ug(t),o=n?Np(n):void 0,s=n?Dp(n):void 0;i=o||e,a=s||e,p=EM(2,void 0,void 0),r=t,Me(t.importClause)}i=t,s=n,a=o,r=c,p=l}()),e=void 0,t=void 0,n=void 0,r=void 0,i=void 0,o=void 0,a=void 0,s=void 0,c=void 0,_=void 0,l=!1,p=void 0,f=void 0,m=void 0,g=void 0,h=void 0,y=void 0,b=void 0,k=void 0,S=!1,C=!1,E=!1,w=0};function L(t,n,...r){return Mp(hd(t)||e,t,n,...r)}function j(e,t){return P++,new D(e,t)}function R(e,t,n){e.flags|=n,t.symbol=e,e.declarations=le(e.declarations,t),1955&n&&!e.exports&&(e.exports=Hu()),6240&n&&!e.members&&(e.members=Hu()),e.constEnumOnlyModule&&304&e.flags&&(e.constEnumOnlyModule=!1),111551&n&&fg(e,t)}function M(e){if(277===e.kind)return e.isExportEquals?"export=":"default";const t=Tc(e);if(t){if(ap(e)){const n=zh(t);return up(e)?"__global":`"${n}"`}if(167===t.kind){const e=t.expression;if(Lh(e))return pc(e.text);if(jh(e))return Da(e.operator)+e.operand.text;un.fail("Only computed properties with literal names have declaration names")}if(qN(t)){const n=Gf(e);if(!n)return;return Uh(n.symbol,t.escapedText)}return IE(t)?nC(t):Jh(t)?qh(t):void 0}switch(e.kind){case 176:return"__constructor";case 184:case 179:case 323:return"__call";case 185:case 180:return"__new";case 181:return"__index";case 278:return"__export";case 307:return"export=";case 226:if(2===eg(e))return"export=";un.fail("Unknown binary declaration kind");break;case 317:return wg(e)?"__new":"__call";case 169:return un.assert(317===e.parent.kind,"Impossible parameter parent kind",(()=>`parent is: ${un.formatSyntaxKind(e.parent.kind)}, expected JSDocFunctionType`)),"arg"+e.parent.parameters.indexOf(e)}}function B(e){return kc(e)?Ep(e.name):fc(un.checkDefined(M(e)))}function J(t,n,r,i,o,a,s){un.assert(s||!Rh(r));const c=wv(r,2048)||gE(r)&&$d(r.name),l=s?"__computed":c&&n?"default":M(r);let _;if(void 0===l)_=j(0,"__missing");else if(_=t.get(l),2885600&i&&F.add(l),_){if(a&&!_.isReplaceableByMethod)return _;if(_.flags&o)if(_.isReplaceableByMethod)t.set(l,_=j(0,l));else if(!(3&i&&67108864&_.flags)){kc(r)&&wT(r.name,r);let t=2&_.flags?la.Cannot_redeclare_block_scoped_variable_0:la.Duplicate_identifier_0,n=!0;(384&_.flags||384&i)&&(t=la.Enum_declarations_can_only_merge_with_namespace_or_other_enum_declarations,n=!1);let o=!1;u(_.declarations)&&(c||_.declarations&&_.declarations.length&&277===r.kind&&!r.isExportEquals)&&(t=la.A_module_cannot_have_multiple_default_exports,n=!1,o=!0);const a=[];GF(r)&&Cd(r.type)&&wv(r,32)&&2887656&_.flags&&a.push(L(r,la.Did_you_mean_0,`export type { ${fc(r.name.escapedText)} }`));const s=Tc(r)||r;d(_.declarations,((r,i)=>{const c=Tc(r)||r,l=n?L(c,t,B(r)):L(c,t);e.bindDiagnostics.push(o?iT(l,L(s,0===i?la.Another_export_default_is_here:la.and_here)):l),o&&a.push(L(c,la.The_first_export_default_is_here))}));const p=n?L(s,t,B(r)):L(s,t);e.bindDiagnostics.push(iT(p,...a)),_=j(0,l)}}else t.set(l,_=j(0,l)),a&&(_.isReplaceableByMethod=!0);return R(_,r,i),_.parent?un.assert(_.parent===n,"Existing symbol parent should match new one"):_.parent=n,_}function z(e,t,n){const r=!!(32&rc(e))||function(e){if(e.parent&&QF(e)&&(e=e.parent),!Ng(e))return!1;if(!vP(e)&&e.fullName)return!0;const t=Tc(e);return!!(t&&(cb(t.parent)&&rt(t.parent)||lu(t.parent)&&32&rc(t.parent)))}(e);if(2097152&t)return 281===e.kind||271===e.kind&&r?J(i.symbol.exports,i.symbol,e,t,n):(un.assertNode(i,au),J(i.locals,void 0,e,t,n));if(Ng(e)&&un.assert(Fm(e)),!ap(e)&&(r||128&i.flags)){if(!au(i)||!i.locals||wv(e,2048)&&!M(e))return J(i.symbol.exports,i.symbol,e,t,n);const r=111551&t?1048576:0,o=J(i.locals,void 0,e,r,n);return o.exportSymbol=J(i.symbol.exports,i.symbol,e,t,n),e.localSymbol=o,o}return un.assertNode(i,au),J(i.locals,void 0,e,t,n)}function q(e){U(e,(e=>262===e.kind?Me(e):void 0)),U(e,(e=>262!==e.kind?Me(e):void 0))}function U(e,t=Me){void 0!==e&&d(e,t)}function V(e){PI(e,Me,U)}function W(e){const n=E;if(E=!1,function(e){if(!(1&p.flags))return!1;if(p===A){const n=uu(e)&&242!==e.kind||263===e.kind||OM(e,t)||267===e.kind&&function(e){const n=wM(e);return 1===n||2===n&&Dk(t)}(e);if(n&&(p=I,!t.allowUnreachableCode)){const n=Lk(t)&&!(33554432&e.flags)&&(!wF(e)||!!(7&oc(e.declarationList))||e.declarationList.declarations.some((e=>!!e.initializer)));!function(e,t,n){if(du(e)&&r(e)&&CF(e.parent)){const{statements:t}=e.parent,i=rT(t,e);H(i,r,((e,t)=>n(i[e],i[t-1])))}else n(e,e);function r(e){return!($F(e)||function(e){switch(e.kind){case 264:case 265:return!0;case 267:return 1!==wM(e);case 266:return!OM(e,t);default:return!1}}(e)||wF(e)&&!(7&oc(e))&&e.declarationList.declarations.some((e=>!e.initializer)))}}(e,t,((e,t)=>Re(n,e,t,la.Unreachable_code_detected)))}}return!0}(e))return V(e),Be(e),void(E=n);switch(e.kind>=243&&e.kind<=259&&(!t.allowUnreachableCode||253===e.kind)&&(e.flowNode=p),e.kind){case 247:!function(e){const t=he(e,te()),n=ee(),r=ee();oe(t,p),p=t,me(e.expression,n,r),p=ue(n),ge(e.statement,r,t),oe(t,p),p=ue(r)}(e);break;case 246:!function(e){const t=te(),n=he(e,ee()),r=ee();oe(t,p),p=t,ge(e.statement,r,n),oe(n,p),p=ue(n),me(e.expression,t,r),p=ue(r)}(e);break;case 248:!function(e){const t=he(e,te()),n=ee(),r=ee();Me(e.initializer),oe(t,p),p=t,me(e.condition,n,r),p=ue(n),ge(e.statement,r,t),Me(e.incrementor),oe(t,p),p=ue(r)}(e);break;case 249:case 250:!function(e){const t=he(e,te()),n=ee();Me(e.expression),oe(t,p),p=t,250===e.kind&&Me(e.awaitModifier),oe(n,p),Me(e.initializer),261!==e.initializer.kind&&xe(e.initializer),ge(e.statement,n,t),oe(t,p),p=ue(n)}(e);break;case 245:!function(e){const t=ee(),n=ee(),r=ee();me(e.expression,t,n),p=ue(t),Me(e.thenStatement),oe(r,p),p=ue(n),Me(e.elseStatement),oe(r,p),p=ue(r)}(e);break;case 253:case 257:!function(e){Me(e.expression),253===e.kind&&(S=!0,g&&oe(g,p)),p=A,C=!0}(e);break;case 252:case 251:!function(e){if(Me(e.label),e.label){const t=function(e){for(let t=k;t;t=t.next)if(t.name===e)return t}(e.label.escapedText);t&&(t.referenced=!0,ye(e,t.breakTarget,t.continueTarget))}else ye(e,f,m)}(e);break;case 258:!function(e){const t=g,n=b,r=ee(),i=ee();let o=ee();if(e.finallyBlock&&(g=i),oe(o,p),b=o,Me(e.tryBlock),oe(r,p),e.catchClause&&(p=ue(o),o=ee(),oe(o,p),b=o,Me(e.catchClause),oe(r,p)),g=t,b=n,e.finallyBlock){const t=ee();t.antecedent=K(K(r.antecedent,o.antecedent),i.antecedent),p=t,Me(e.finallyBlock),1&p.flags?p=A:(g&&i.antecedent&&oe(g,ne(t,i.antecedent,p)),b&&o.antecedent&&oe(b,ne(t,o.antecedent,p)),p=r.antecedent?ne(t,r.antecedent,p):A)}else p=ue(r)}(e);break;case 255:!function(e){const t=ee();Me(e.expression);const n=f,r=x;f=t,x=p,Me(e.caseBlock),oe(t,p);const i=d(e.caseBlock.clauses,(e=>297===e.kind));e.possiblyExhaustive=!i&&!t.antecedent,i||oe(t,se(x,e,0,0)),f=n,x=r,p=ue(t)}(e);break;case 269:!function(e){const n=e.clauses,r=112===e.parent.expression.kind||G(e.parent.expression);let i=A;for(let o=0;ofE(e)||pE(e)))}(e)?e.flags|=128:e.flags&=-129}function Pe(e){const t=wM(e),n=0!==t;return Fe(e,n?512:1024,n?110735:0),t}function Ae(e,t,n){const r=j(t,n);return 106508&t&&(r.parent=i.symbol),R(r,e,t),r}function Ie(e,t,n){switch(a.kind){case 267:z(e,t,n);break;case 307:if(Qp(i)){z(e,t,n);break}default:un.assertNode(a,au),a.locals||(a.locals=Hu(),De(a)),J(a.locals,void 0,e,t,n)}}function Oe(t,n){if(n&&80===n.kind){const i=n;if(zN(r=i)&&("eval"===r.escapedText||"arguments"===r.escapedText)){const r=Gp(e,n);e.bindDiagnostics.push(Kx(e,r.start,r.length,function(t){return Gf(t)?la.Code_contained_in_a_class_is_evaluated_in_JavaScript_s_strict_mode_which_does_not_allow_this_use_of_0_For_more_information_see_https_Colon_Slash_Slashdeveloper_mozilla_org_Slashen_US_Slashdocs_SlashWeb_SlashJavaScript_SlashReference_SlashStrict_mode:e.externalModuleIndicator?la.Invalid_use_of_0_Modules_are_automatically_in_strict_mode:la.Invalid_use_of_0_in_strict_mode}(t),mc(i)))}}var r}function Le(e){!N||33554432&e.flags||Oe(e,e.name)}function je(t,n,...r){const i=Hp(e,t.pos);e.bindDiagnostics.push(Kx(e,i.start,i.length,n,...r))}function Re(t,n,r,i){!function(t,n,r){const i=Kx(e,n.pos,n.end-n.pos,r);t?e.bindDiagnostics.push(i):e.bindSuggestionDiagnostics=ie(e.bindSuggestionDiagnostics,{...i,category:2})}(t,{pos:Bd(n,e),end:r.end},i)}function Me(t){if(!t)return;wT(t,r),Hn&&(t.tracingPath=e.path);const n=N;if(qe(t),t.kind>165){const e=r;r=t;const n=jM(t);0===n?W(t):function(e,t){const n=i,r=o,s=a;if(1&t?(219!==e.kind&&(o=i),i=a=e,32&t&&(i.locals=Hu(),De(i))):2&t&&(a=e,32&t&&(a.locals=void 0)),4&t){const n=p,r=f,i=m,o=g,a=b,s=k,c=S,l=16&t&&!wv(e,1024)&&!e.asteriskToken&&!!im(e)||175===e.kind;l||(p=EM(2,void 0,void 0),144&t&&(p.node=e)),g=l||176===e.kind||Fm(e)&&(262===e.kind||218===e.kind)?ee():void 0,b=void 0,f=void 0,m=void 0,k=void 0,S=!1,W(e),e.flags&=-5633,!(1&p.flags)&&8&t&&wd(e.body)&&(e.flags|=512,S&&(e.flags|=1024),e.endFlowNode=p),307===e.kind&&(e.flags|=w,e.endFlowNode=p),g&&(oe(g,p),p=ue(g),(176===e.kind||175===e.kind||Fm(e)&&(262===e.kind||218===e.kind))&&(e.returnFlowNode=p)),l||(p=n),f=r,m=i,g=o,b=a,k=s,S=c}else 64&t?(l=!1,W(e),un.assertNotNode(e,zN),e.flags=l?256|e.flags:-257&e.flags):W(e);i=n,o=r,a=s}(t,n),r=e}else{const e=r;1===t.kind&&(r=t),Be(t),r=e}N=n}function Be(e){if(Nu(e))if(Fm(e))for(const t of e.jsDoc)Me(t);else for(const t of e.jsDoc)wT(t,e),NT(t,!1)}function Je(e){if(!N)for(const t of e){if(!uf(t))return;if(ze(t))return void(N=!0)}}function ze(t){const n=qd(e,t.expression);return'"use strict"'===n||"'use strict'"===n}function qe(o){switch(o.kind){case 80:if(4096&o.flags){let e=o.parent;for(;e&&!Ng(e);)e=e.parent;Ie(e,524288,788968);break}case 110:return p&&(U_(o)||304===r.kind)&&(o.flowNode=p),function(t){if(!(e.parseDiagnostics.length||33554432&t.flags||16777216&t.flags||uh(t))){const n=gc(t);if(void 0===n)return;N&&n>=119&&n<=127?e.bindDiagnostics.push(L(t,function(t){return Gf(t)?la.Identifier_expected_0_is_a_reserved_word_in_strict_mode_Class_definitions_are_automatically_in_strict_mode:e.externalModuleIndicator?la.Identifier_expected_0_is_a_reserved_word_in_strict_mode_Modules_are_automatically_in_strict_mode:la.Identifier_expected_0_is_a_reserved_word_in_strict_mode}(t),Ep(t))):135===n?MI(e)&&tm(t)?e.bindDiagnostics.push(L(t,la.Identifier_expected_0_is_a_reserved_word_at_the_top_level_of_a_module,Ep(t))):65536&t.flags&&e.bindDiagnostics.push(L(t,la.Identifier_expected_0_is_a_reserved_word_that_cannot_be_used_here,Ep(t))):127===n&&16384&t.flags&&e.bindDiagnostics.push(L(t,la.Identifier_expected_0_is_a_reserved_word_that_cannot_be_used_here,Ep(t)))}}(o);case 166:p&&xm(o)&&(o.flowNode=p);break;case 236:case 108:o.flowNode=p;break;case 81:return function(t){"#constructor"===t.escapedText&&(e.parseDiagnostics.length||e.bindDiagnostics.push(L(t,la.constructor_is_a_reserved_word,Ep(t))))}(o);case 211:case 212:const s=o;p&&X(s)&&(s.flowNode=p),pg(s)&&function(e){110===e.expression.kind?He(e):ig(e)&&307===e.parent.parent.kind&&(_b(e.expression)?Xe(e,e.parent):Qe(e))}(s),Fm(s)&&e.commonJsModuleIndicator&&Zm(s)&&!RM(a,"module")&&J(e.locals,void 0,s.expression,134217729,111550);break;case 226:switch(eg(o)){case 1:We(o);break;case 2:!function(t){if(!Ve(t))return;const n=Xm(t.right);if(gb(n)||i===e&&LM(e,n))return;if($D(n)&&v(n.properties,BE))return void d(n.properties,$e);const r=fh(t)?2097152:1049092;fg(J(e.symbol.exports,e.symbol,t,67108864|r,0),t)}(o);break;case 3:Xe(o.left,o);break;case 6:!function(e){wT(e.left,e),wT(e.right,e),it(e.left.expression,e.left,!1,!0)}(o);break;case 4:He(o);break;case 5:const t=o.left.expression;if(Fm(o)&&zN(t)){const e=RM(a,t.escapedText);if(sm(null==e?void 0:e.valueDeclaration)){He(o);break}}!function(t){var n;const r=ot(t.left.expression,a)||ot(t.left.expression,i);if(!Fm(t)&&!mg(r))return;const o=Cx(t.left);zN(o)&&2097152&(null==(n=RM(i,o.escapedText))?void 0:n.flags)||(wT(t.left,t),wT(t.right,t),zN(t.left.expression)&&i===e&&LM(e,t.left.expression)?We(t):Rh(t)?(Ae(t,67108868,"__computed"),Ge(t,Ye(r,t.left.expression,rt(t.left),!1,!1))):Qe(nt(t.left,ag)))}(o);break;case 0:break;default:un.fail("Unknown binary expression special property assignment kind")}return function(e){N&&R_(e.left)&&Zv(e.operatorToken.kind)&&Oe(e,e.left)}(o);case 299:return function(e){N&&e.variableDeclaration&&Oe(e,e.variableDeclaration.name)}(o);case 220:return function(t){if(N&&80===t.expression.kind){const n=Gp(e,t.expression);e.bindDiagnostics.push(Kx(e,n.start,n.length,la.delete_cannot_be_called_on_an_identifier_in_strict_mode))}}(o);case 225:return function(e){N&&Oe(e,e.operand)}(o);case 224:return function(e){N&&(46!==e.operator&&47!==e.operator||Oe(e,e.operand))}(o);case 254:return function(e){N&&je(e,la.with_statements_are_not_allowed_in_strict_mode)}(o);case 256:return function(e){N&&hk(t)>=2&&(_u(e.statement)||wF(e.statement))&&je(e.label,la.A_label_is_not_allowed_here)}(o);case 197:return void(l=!0);case 182:break;case 168:return function(e){if(TP(e.parent)){const t=Bg(e.parent);t?(un.assertNode(t,au),t.locals??(t.locals=Hu()),J(t.locals,void 0,e,262144,526824)):Fe(e,262144,526824)}else if(195===e.parent.kind){const t=function(e){const t=_c(e,(e=>e.parent&&PD(e.parent)&&e.parent.extendsType===e));return t&&t.parent}(e.parent);t?(un.assertNode(t,au),t.locals??(t.locals=Hu()),J(t.locals,void 0,e,262144,526824)):Ae(e,262144,M(e))}else Fe(e,262144,526824)}(o);case 169:return ct(o);case 260:return st(o);case 208:return o.flowNode=p,st(o);case 172:case 171:return function(e){const t=d_(e),n=t?13247:0;return lt(e,(t?98304:4)|(e.questionToken?16777216:0),n)}(o);case 303:case 304:return lt(o,4,0);case 306:return lt(o,8,900095);case 179:case 180:case 181:return Fe(o,131072,0);case 174:case 173:return lt(o,8192|(o.questionToken?16777216:0),Mf(o)?0:103359);case 262:return function(t){e.isDeclarationFile||33554432&t.flags||Oh(t)&&(w|=4096),Le(t),N?(function(t){if(n<2&&307!==a.kind&&267!==a.kind&&!r_(a)){const n=Gp(e,t);e.bindDiagnostics.push(Kx(e,n.start,n.length,function(t){return Gf(t)?la.Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES5_Class_definitions_are_automatically_in_strict_mode:e.externalModuleIndicator?la.Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES5_Modules_are_automatically_in_strict_mode:la.Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES5}(t)))}}(t),Ie(t,16,110991)):Fe(t,16,110991)}(o);case 176:return Fe(o,16384,0);case 177:return lt(o,32768,46015);case 178:return lt(o,65536,78783);case 184:case 317:case 323:case 185:return function(e){const t=j(131072,M(e));R(t,e,131072);const n=j(2048,"__type");R(n,e,2048),n.members=Hu(),n.members.set(t.escapedName,t)}(o);case 187:case 322:case 200:return function(e){return Ae(e,2048,"__type")}(o);case 332:return function(e){V(e);const t=zg(e);t&&174!==t.kind&&R(t.symbol,t,32)}(o);case 210:return function(e){return Ae(e,4096,"__object")}(o);case 218:case 219:return function(t){e.isDeclarationFile||33554432&t.flags||Oh(t)&&(w|=4096),p&&(t.flowNode=p),Le(t);return Ae(t,16,t.name?t.name.escapedText:"__function")}(o);case 213:switch(eg(o)){case 7:return function(e){let t=ot(e.arguments[0]);const n=307===e.parent.parent.kind;t=Ye(t,e.arguments[0],n,!1,!1),et(e,t,!1)}(o);case 8:return function(e){if(!Ve(e))return;const t=at(e.arguments[0],void 0,((e,t)=>(t&&R(t,e,67110400),t)));if(t){const n=1048580;J(t.exports,t,e,n,0)}}(o);case 9:return function(e){const t=ot(e.arguments[0].expression);t&&t.valueDeclaration&&R(t,t.valueDeclaration,32),et(e,t,!0)}(o);case 0:break;default:return un.fail("Unknown call expression assignment declaration kind")}Fm(o)&&function(t){!e.commonJsModuleIndicator&&Om(t,!1)&&Ve(t)}(o);break;case 231:case 263:return N=!0,function(t){263===t.kind?Ie(t,32,899503):(Ae(t,32,t.name?t.name.escapedText:"__class"),t.name&&F.add(t.name.escapedText));const{symbol:n}=t,r=j(4194308,"prototype"),i=n.exports.get(r.escapedName);i&&(t.name&&wT(t.name,t),e.bindDiagnostics.push(L(i.declarations[0],la.Duplicate_identifier_0,hc(r)))),n.exports.set(r.escapedName,r),r.parent=n}(o);case 264:return Ie(o,64,788872);case 265:return Ie(o,524288,788968);case 266:return function(e){return Zp(e)?Ie(e,128,899967):Ie(e,256,899327)}(o);case 267:return function(t){if(Ee(t),ap(t))if(wv(t,32)&&je(t,la.export_modifier_cannot_be_applied_to_ambient_modules_and_module_augmentations_since_they_are_always_visible),pp(t))Pe(t);else{let n;if(11===t.name.kind){const{text:e}=t.name;n=WS(e),void 0===n&&je(t.name,la.Pattern_0_can_have_at_most_one_Asterisk_character,e)}const r=Fe(t,512,110735);e.patternAmbientModules=ie(e.patternAmbientModules,n&&!Ze(n)?{pattern:n,symbol:r}:void 0)}else{const e=Pe(t);if(0!==e){const{symbol:n}=t;n.constEnumOnlyModule=!(304&n.flags)&&2===e&&!1!==n.constEnumOnlyModule}}}(o);case 292:return function(e){return Ae(e,4096,"__jsxAttributes")}(o);case 291:return function(e){return Fe(e,4,0)}(o);case 271:case 274:case 276:case 281:return Fe(o,2097152,2097152);case 270:return function(t){$(t.modifiers)&&e.bindDiagnostics.push(L(t,la.Modifiers_cannot_appear_here));const n=qE(t.parent)?MI(t.parent)?t.parent.isDeclarationFile?void 0:la.Global_module_exports_may_only_appear_in_declaration_files:la.Global_module_exports_may_only_appear_in_module_files:la.Global_module_exports_may_only_appear_at_top_level;n?e.bindDiagnostics.push(L(t,n)):(e.symbol.globalExports=e.symbol.globalExports||Hu(),J(e.symbol.globalExports,e.symbol,t,2097152,2097152))}(o);case 273:return function(e){e.name&&Fe(e,2097152,2097152)}(o);case 278:return function(e){i.symbol&&i.symbol.exports?e.exportClause?_E(e.exportClause)&&(wT(e.exportClause,e),J(i.symbol.exports,i.symbol,e.exportClause,2097152,2097152)):J(i.symbol.exports,i.symbol,e,8388608,0):Ae(e,8388608,M(e))}(o);case 277:return function(e){if(i.symbol&&i.symbol.exports){const t=fh(e)?2097152:4,n=J(i.symbol.exports,i.symbol,e,t,-1);e.isExportEquals&&fg(n,e)}else Ae(e,111551,M(e))}(o);case 307:return Je(o.statements),function(){if(Ee(e),MI(e))Ue();else if(Yp(e)){Ue();const t=e.symbol;J(e.symbol.exports,e.symbol,e,4,-1),e.symbol=t}}();case 241:if(!r_(o.parent))return;case 268:return Je(o.statements);case 341:if(323===o.parent.kind)return ct(o);if(322!==o.parent.kind)break;case 348:const u=o;return Fe(u,u.isBracketed||u.typeExpression&&316===u.typeExpression.type.kind?16777220:4,0);case 346:case 338:case 340:return(c||(c=[])).push(o);case 339:return Me(o.typeExpression);case 351:return(_||(_=[])).push(o)}}function Ue(){Ae(e,512,`"${zS(e.fileName)}"`)}function Ve(t){return!(e.externalModuleIndicator&&!0!==e.externalModuleIndicator||(e.commonJsModuleIndicator||(e.commonJsModuleIndicator=t,e.externalModuleIndicator||Ue()),0))}function We(e){if(!Ve(e))return;const t=at(e.left.expression,void 0,((e,t)=>(t&&R(t,e,67110400),t)));if(t){const n=ph(e.right)&&(Qm(e.left.expression)||Zm(e.left.expression))?2097152:1048580;wT(e.left,e),J(t.exports,t,e.left,n,0)}}function $e(t){J(e.symbol.exports,e.symbol,t,69206016,0)}function He(e){if(un.assert(Fm(e)),cF(e)&&HD(e.left)&&qN(e.left.name)||HD(e)&&qN(e.name))return;const t=Zf(e,!1,!1);switch(t.kind){case 262:case 218:let n=t.symbol;if(cF(t.parent)&&64===t.parent.operatorToken.kind){const e=t.parent.left;ig(e)&&_b(e.expression)&&(n=ot(e.expression.expression,o))}n&&n.valueDeclaration&&(n.members=n.members||Hu(),Rh(e)?Ke(e,n,n.members):J(n.members,n,e,67108868,0),R(n,n.valueDeclaration,32));break;case 176:case 172:case 174:case 177:case 178:case 175:const r=t.parent,i=Nv(t)?r.symbol.exports:r.symbol.members;Rh(e)?Ke(e,r.symbol,i):J(i,r.symbol,e,67108868,0,!0);break;case 307:if(Rh(e))break;t.commonJsModuleIndicator?J(t.symbol.exports,t.symbol,e,1048580,0):Fe(e,1,111550);break;case 267:break;default:un.failBadSyntaxKind(t)}}function Ke(e,t,n){J(n,t,e,4,0,!0,!0),Ge(e,t)}function Ge(e,t){t&&(t.assignmentDeclarationMembers||(t.assignmentDeclarationMembers=new Map)).set(jB(e),e)}function Xe(e,t){const n=e.expression,r=n.expression;wT(r,n),wT(n,e),wT(e,t),it(r,e,!0,!0)}function Qe(e){un.assert(!zN(e)),wT(e.expression,e),it(e.expression,e,!1,!1)}function Ye(t,n,r,i,o){if(2097152&(null==t?void 0:t.flags))return t;if(r&&!i){const r=67110400,i=110735;t=at(n,t,((t,n,o)=>n?(R(n,t,r),n):J(o?o.exports:e.jsGlobalAugmentations||(e.jsGlobalAugmentations=Hu()),o,t,r,i)))}return o&&t&&t.valueDeclaration&&R(t,t.valueDeclaration,32),t}function et(e,t,n){if(!t||!function(e){if(1072&e.flags)return!0;const t=e.valueDeclaration;if(t&&GD(t))return!!Wm(t);let n=t?VF(t)?t.initializer:cF(t)?t.right:HD(t)&&cF(t.parent)?t.parent.right:void 0:void 0;if(n=n&&Xm(n),n){const e=_b(VF(t)?t.name:cF(t)?t.left:t);return!!$m(!cF(n)||57!==n.operatorToken.kind&&61!==n.operatorToken.kind?n:n.right,e)}return!1}(t))return;const r=n?t.members||(t.members=Hu()):t.exports||(t.exports=Hu());let i=0,o=0;i_(Wm(e))?(i=8192,o=103359):GD(e)&&tg(e)&&($(e.arguments[2].properties,(e=>{const t=Tc(e);return!!t&&zN(t)&&"set"===mc(t)}))&&(i|=65540,o|=78783),$(e.arguments[2].properties,(e=>{const t=Tc(e);return!!t&&zN(t)&&"get"===mc(t)}))&&(i|=32772,o|=46015)),0===i&&(i=4,o=0),J(r,t,e,67108864|i,-67108865&o)}function rt(e){return cF(e.parent)?307===function(e){for(;cF(e.parent);)e=e.parent;return e.parent}(e.parent).parent.kind:307===e.parent.parent.kind}function it(e,t,n,r){let o=ot(e,a)||ot(e,i);const s=rt(t);o=Ye(o,t.expression,s,n,r),et(t,o,n)}function ot(e,t=i){if(zN(e))return RM(t,e.escapedText);{const t=ot(e.expression);return t&&t.exports&&t.exports.get(lg(e))}}function at(t,n,r){if(LM(e,t))return e.symbol;if(zN(t))return r(t,ot(t),n);{const e=at(t.expression,n,r),i=sg(t);return qN(i)&&un.fail("unexpected PrivateIdentifier"),r(i,e&&e.exports&&e.exports.get(lg(t)),e)}}function st(e){if(N&&Oe(e,e.name),!x_(e.name)){const t=260===e.kind?e:e.parent.parent;!Fm(e)||!jm(t)||el(e)||32&rc(e)?ip(e)?Ie(e,2,111551):Xh(e)?Fe(e,1,111551):Fe(e,1,111550):Fe(e,2097152,2097152)}}function ct(e){if((341!==e.kind||323===i.kind)&&(!N||33554432&e.flags||Oe(e,e.name),x_(e.name)?Ae(e,1,"__"+e.parent.parameters.indexOf(e)):Fe(e,1,111551),Ys(e,e.parent))){const t=e.parent.parent;J(t.symbol.members,t.symbol,e,4|(e.questionToken?16777216:0),0)}}function lt(t,n,r){return e.isDeclarationFile||33554432&t.flags||!Oh(t)||(w|=4096),p&&Bf(t)&&(t.flowNode=p),Rh(t)?Ae(t,n,"__computed"):Fe(t,n,r)}}function OM(e,t){return 266===e.kind&&(!Zp(e)||Dk(t))}function LM(e,t){let n=0;const r=Ge();for(r.enqueue(t);!r.isEmpty()&&n<100;){if(n++,Qm(t=r.dequeue())||Zm(t))return!0;if(zN(t)){const n=RM(e,t.escapedText);if(n&&n.valueDeclaration&&VF(n.valueDeclaration)&&n.valueDeclaration.initializer){const e=n.valueDeclaration.initializer;r.enqueue(e),nb(e,!0)&&(r.enqueue(e.left),r.enqueue(e.right))}}}return!1}function jM(e){switch(e.kind){case 231:case 263:case 266:case 210:case 187:case 322:case 292:return 1;case 264:return 65;case 267:case 265:case 200:case 181:return 33;case 307:return 37;case 177:case 178:case 174:if(Bf(e))return 173;case 176:case 262:case 173:case 179:case 323:case 317:case 184:case 180:case 185:case 175:return 45;case 218:case 219:return 61;case 268:return 4;case 172:return e.initializer?4:0;case 299:case 248:case 249:case 250:case 269:return 34;case 241:return n_(e.parent)||uD(e.parent)?0:34}return 0}function RM(e,t){var n,r,i,o;const a=null==(r=null==(n=tt(e,au))?void 0:n.locals)?void 0:r.get(t);return a?a.exportSymbol??a:qE(e)&&e.jsGlobalAugmentations&&e.jsGlobalAugmentations.has(t)?e.jsGlobalAugmentations.get(t):ou(e)?null==(o=null==(i=e.symbol)?void 0:i.exports)?void 0:o.get(t):void 0}function MM(e,t,n,r,i,o,a,s,c,l){return function(_=()=>!0){const u=[],p=[];return{walkType:e=>{try{return f(e),{visitedTypes:Ae(u),visitedSymbols:Ae(p)}}finally{F(u),F(p)}},walkSymbol:e=>{try{return h(e),{visitedTypes:Ae(u),visitedSymbols:Ae(p)}}finally{F(u),F(p)}}};function f(e){if(e&&!u[e.id]&&(u[e.id]=e,!h(e.symbol))){if(524288&e.flags){const n=e,i=n.objectFlags;4&i&&function(e){f(e.target),d(l(e),f)}(e),32&i&&function(e){f(e.typeParameter),f(e.constraintType),f(e.templateType),f(e.modifiersType)}(e),3&i&&(g(t=e),d(t.typeParameters,f),d(r(t),f),f(t.thisType)),24&i&&g(n)}var t;262144&e.flags&&function(e){f(s(e))}(e),3145728&e.flags&&function(e){d(e.types,f)}(e),4194304&e.flags&&function(e){f(e.type)}(e),8388608&e.flags&&function(e){f(e.objectType),f(e.indexType),f(e.constraint)}(e)}}function m(r){const i=t(r);i&&f(i.type),d(r.typeParameters,f);for(const e of r.parameters)h(e);f(e(r)),f(n(r))}function g(e){const t=i(e);for(const e of t.indexInfos)f(e.keyType),f(e.type);for(const e of t.callSignatures)m(e);for(const e of t.constructSignatures)m(e);for(const e of t.properties)h(e)}function h(e){if(!e)return!1;const t=RB(e);return!p[t]&&(p[t]=e,!_(e)||(f(o(e)),e.exports&&e.exports.forEach(h),d(e.declarations,(e=>{if(e.type&&186===e.type.kind){const t=e.type;h(a(c(t.exprName)))}})),!1))}}}var BM={};i(BM,{RelativePreference:()=>zM,countPathComponents:()=>tB,forEachFileNameOfModule:()=>iB,getLocalModuleSpecifierBetweenFileNames:()=>QM,getModuleSpecifier:()=>VM,getModuleSpecifierPreferences:()=>qM,getModuleSpecifiers:()=>GM,getModuleSpecifiersWithCacheInfo:()=>XM,getNodeModulesPackageName:()=>WM,tryGetJSExtensionForFile:()=>mB,tryGetModuleSpecifiersFromCache:()=>HM,tryGetRealFileNameForNonJsDeclarationFileName:()=>pB,updateModuleSpecifier:()=>UM});var JM=pt((e=>{try{let t=e.indexOf("/");if(0!==t)return new RegExp(e);const n=e.lastIndexOf("/");if(t===n)return new RegExp(e);for(;(t=e.indexOf("/",t+1))!==n;)if("\\"!==e[t-1])return new RegExp(e);const r=e.substring(n+1).replace(/[^iu]/g,"");return e=e.substring(1,n),new RegExp(e,r)}catch{return}})),zM=(e=>(e[e.Relative=0]="Relative",e[e.NonRelative=1]="NonRelative",e[e.Shortest=2]="Shortest",e[e.ExternalNonRelative=3]="ExternalNonRelative",e))(zM||{});function qM({importModuleSpecifierPreference:e,importModuleSpecifierEnding:t,autoImportSpecifierExcludeRegexes:n},r,i,o,a){const s=c();return{excludeRegexes:n,relativePreference:void 0!==a?Ts(a)?0:1:"relative"===e?0:"non-relative"===e?1:"project-relative"===e?3:2,getAllowedEndingsInPreferredOrder:e=>{const t=yB(o,r,i),n=e!==t?c(e):s,a=vk(i);if(99===(e??t)&&3<=a&&a<=99)return bM(i,o.fileName)?[3,2]:[2];if(1===vk(i))return 2===n?[2,1]:[1,2];const l=bM(i,o.fileName);switch(n){case 2:return l?[2,3,0,1]:[2,0,1];case 3:return[3,0,2,1];case 1:return l?[1,0,3,2]:[1,0,2];case 0:return l?[0,1,3,2]:[0,1,2];default:un.assertNever(n)}}};function c(e){if(void 0!==a){if(AS(a))return 2;if(Rt(a,"/index"))return 1}return jS(t,e??yB(o,r,i),i,Nm(o)?o:void 0)}}function UM(e,t,n,r,i,o,a={}){const s=$M(e,t,n,r,i,qM({},i,e,t,o),{},a);if(s!==o)return s}function VM(e,t,n,r,i,o={}){return $M(e,t,n,r,i,qM({},i,e,t),{},o)}function WM(e,t,n,r,i,o={}){const a=ZM(t.fileName,r);return f(oB(a,n,r,i,e,o),(n=>_B(n,a,t,r,e,i,!0,o.overrideImportMode)))}function $M(e,t,n,r,i,o,a,s={}){const c=ZM(n,i);return f(oB(c,r,i,a,e,s),(n=>_B(n,c,t,i,e,a,void 0,s.overrideImportMode)))||eB(r,c,e,i,s.overrideImportMode||yB(t,i,e),o)}function HM(e,t,n,r,i={}){const o=KM(e,t,n,r,i);return o[1]&&{kind:o[0],moduleSpecifiers:o[1],computedWithoutCache:!1}}function KM(e,t,n,r,i={}){var o;const a=yd(e);if(!a)return l;const s=null==(o=n.getModuleSpecifierCache)?void 0:o.call(n),c=null==s?void 0:s.get(t.path,a.path,r,i);return[null==c?void 0:c.kind,null==c?void 0:c.moduleSpecifiers,a,null==c?void 0:c.modulePaths,s]}function GM(e,t,n,r,i,o,a={}){return XM(e,t,n,r,i,o,a,!1).moduleSpecifiers}function XM(e,t,n,r,i,o,a={},s){let c=!1;const _=function(e,t){var n;const r=null==(n=e.declarations)?void 0:n.find((e=>cp(e)&&(!dp(e)||!Ts(zh(e.name)))));if(r)return r.name.text;const i=B(e.declarations,(e=>{var n,r,i,o;if(!QF(e))return;const a=function(e){for(;8&e.flags;)e=e.parent;return e}(e);if(!((null==(n=null==a?void 0:a.parent)?void 0:n.parent)&&YF(a.parent)&&ap(a.parent.parent)&&qE(a.parent.parent.parent)))return;const s=null==(o=null==(i=null==(r=a.parent.parent.symbol.exports)?void 0:r.get("export="))?void 0:i.valueDeclaration)?void 0:o.expression;if(!s)return;const c=t.getSymbolAtLocation(s);if(c&&(2097152&(null==c?void 0:c.flags)?t.getAliasedSymbol(c):c)===e.symbol)return a.parent.parent}))[0];return i?i.name.text:void 0}(e,t);if(_)return{kind:"ambient",moduleSpecifiers:s&&YM(_,o.autoImportSpecifierExcludeRegexes)?l:[_],computedWithoutCache:c};let[u,p,f,m,g]=KM(e,r,i,o,a);if(p)return{kind:u,moduleSpecifiers:p,computedWithoutCache:c};if(!f)return{kind:void 0,moduleSpecifiers:l,computedWithoutCache:c};c=!0,m||(m=sB(ZM(r.fileName,i),f.originalFileName,i,n,a));const h=function(e,t,n,r,i,o={},a){const s=ZM(n.fileName,r),c=qM(i,r,t,n),_=Nm(n)&&d(e,(e=>d(r.getFileIncludeReasons().get(qo(e.path,r.getCurrentDirectory(),s.getCanonicalFileName)),(e=>{if(3!==e.kind||e.file!==n.path)return;const t=r.getModeForResolutionAtIndex(n,e.index),i=o.overrideImportMode??r.getDefaultResolutionModeForFile(n);if(t!==i&&void 0!==t&&void 0!==i)return;const a=AV(n,e.index).text;return 1===c.relativePreference&&vo(a)?void 0:a}))));if(_)return{kind:void 0,moduleSpecifiers:[_],computedWithoutCache:!0};const u=$(e,(e=>e.isInNodeModules));let p,f,m,g;for(const l of e){const e=l.isInNodeModules?_B(l,s,n,r,t,i,void 0,o.overrideImportMode):void 0;if(e&&(!a||!YM(e,c.excludeRegexes))&&(p=ie(p,e),l.isRedirect))return{kind:"node_modules",moduleSpecifiers:p,computedWithoutCache:!0};const _=eB(l.path,s,t,r,o.overrideImportMode||n.impliedNodeFormat,c,l.isRedirect||!!e);!_||a&&YM(_,c.excludeRegexes)||(l.isRedirect?m=ie(m,_):bo(_)?AR(_)?g=ie(g,_):f=ie(f,_):(a||!u||l.isInNodeModules)&&(g=ie(g,_)))}return(null==f?void 0:f.length)?{kind:"paths",moduleSpecifiers:f,computedWithoutCache:!0}:(null==m?void 0:m.length)?{kind:"redirect",moduleSpecifiers:m,computedWithoutCache:!0}:(null==p?void 0:p.length)?{kind:"node_modules",moduleSpecifiers:p,computedWithoutCache:!0}:{kind:"relative",moduleSpecifiers:g??l,computedWithoutCache:!0}}(m,n,r,i,o,a,s);return null==g||g.set(r.path,f.path,o,a,h.kind,m,h.moduleSpecifiers),h}function QM(e,t,n,r,i,o={}){return eB(t,ZM(e.fileName,r),n,r,o.overrideImportMode??e.impliedNodeFormat,qM(i,r,n,e))}function YM(e,t){return $(t,(t=>{var n;return!!(null==(n=JM(t))?void 0:n.test(e))}))}function ZM(e,t){e=Bo(e,t.getCurrentDirectory());const n=Wt(!t.useCaseSensitiveFileNames||t.useCaseSensitiveFileNames()),r=Do(e);return{getCanonicalFileName:n,importingSourceFileName:e,sourceDirectory:r,canonicalSourceDirectory:n(r)}}function eB(e,t,n,r,i,{getAllowedEndingsInPreferredOrder:o,relativePreference:a,excludeRegexes:s},c){const{baseUrl:l,paths:_,rootDirs:u}=n;if(c&&!_)return;const{sourceDirectory:p,canonicalSourceDirectory:f,getCanonicalFileName:m}=t,g=o(i),h=u&&function(e,t,n,r,i,o){const a=uB(t,e,r);if(void 0===a)return;const s=kt(O(uB(n,e,r),(e=>E(a,(t=>Wo(na(e,t,r)))))),BS);return s?dB(s,i,o):void 0}(u,e,p,m,g,n)||dB(Wo(na(p,e,m)),g,n);if(!l&&!_&&!Ck(n)||0===a)return c?void 0:h;const y=Bo(Hy(n,r)||l,r.getCurrentDirectory()),v=gB(e,y,m);if(!v)return c?void 0:h;const b=c?void 0:function(e,t,n,r,i,o){var a,s,c;if(!r.readFile||!Ck(n))return;const l=rB(r,t);if(!l)return;const _=jo(l,"package.json"),u=null==(s=null==(a=r.getPackageJsonInfoCache)?void 0:a.call(r))?void 0:s.getPackageJsonInfo(_);if(oR(u)||!r.fileExists(_))return;const p=(null==u?void 0:u.contents.packageJsonContent)||wb(r.readFile(_)),f=null==p?void 0:p.imports;if(!f)return;const m=tR(n,i);return null==(c=d(Ee(f),(t=>{if(!Gt(t,"#")||"#"===t||Gt(t,"#/"))return;const i=Rt(t,"/")?1:t.includes("*")?2:0;return lB(n,r,e,l,t,f[t],m,i,!0,o)})))?void 0:c.moduleFileToTry}(e,p,n,r,i,function(e){const t=e.indexOf(3);return t>-1&&te.fileExists(jo(t,"package.json"))?t:void 0))}function iB(e,t,n,r,i){var o;const a=jy(n),s=n.getCurrentDirectory(),c=n.isSourceOfProjectReferenceRedirect(t)?n.getProjectReferenceRedirect(t):void 0,_=qo(t,s,a),u=n.redirectTargetsMap.get(_)||l,p=[...c?[c]:l,t,...u].map((e=>Bo(e,s)));let f=!v(p,PT);if(!r){const e=d(p,(e=>!(f&&PT(e))&&i(e,c===e)));if(e)return e}const m=null==(o=n.getSymlinkCache)?void 0:o.call(n).getSymlinkedDirectoriesByRealpath(),g=Bo(t,s);return m&&sM(n,Do(g),(t=>{const n=m.get(Vo(qo(t,s,a)));if(n)return!ea(e,t,a)&&d(p,(e=>{if(!ea(e,t,a))return;const r=na(t,e,a);for(const t of n){const n=Ro(t,r),o=i(n,e===c);if(f=!0,o)return o}}))}))||(r?d(p,(e=>f&&PT(e)?void 0:i(e,e===c))):void 0)}function oB(e,t,n,r,i,o={}){var a;const s=qo(e.importingSourceFileName,n.getCurrentDirectory(),jy(n)),c=qo(t,n.getCurrentDirectory(),jy(n)),l=null==(a=n.getModuleSpecifierCache)?void 0:a.call(n);if(l){const e=l.get(s,c,r,o);if(null==e?void 0:e.modulePaths)return e.modulePaths}const _=sB(e,t,n,i,o);return l&&l.setModulePaths(s,c,r,o,_),_}var aB=["dependencies","peerDependencies","optionalDependencies"];function sB(e,t,n,r,i){var o,a;const s=null==(o=n.getModuleResolutionCache)?void 0:o.call(n),c=null==(a=n.getSymlinkCache)?void 0:a.call(n);if(s&&c&&n.readFile&&!AR(e.importingSourceFileName)){un.type(n);const t=WR(s.getPackageJsonInfoCache(),n,{}),o=$R(Do(e.importingSourceFileName),t);if(o){const e=function(e){let t;for(const n of aB){const r=e[n];r&&"object"==typeof r&&(t=K(t,Ee(r)))}return t}(o.contents.packageJsonContent);for(const t of e||l){const e=bR(t,jo(o.packageDirectory,"package.json"),r,n,s,void 0,i.overrideImportMode);c.setSymlinksFromResolution(e.resolvedModule)}}}const _=new Map;let u=!1;iB(e.importingSourceFileName,t,n,!0,((t,n)=>{const r=AR(t);_.set(t,{path:e.getCanonicalFileName(t),isRedirect:n,isInNodeModules:r}),u=u||r}));const d=[];for(let t=e.canonicalSourceDirectory;0!==_.size;){const e=Vo(t);let n;_.forEach((({path:t,isRedirect:r,isInNodeModules:i},o)=>{Gt(t,e)&&((n||(n=[])).push({path:o,isRedirect:r,isInNodeModules:i}),_.delete(o))})),n&&(n.length>1&&n.sort(nB),d.push(...n));const r=Do(t);if(r===t)break;t=r}if(_.size){const e=Oe(_.entries(),(([e,{isRedirect:t,isInNodeModules:n}])=>({path:e,isRedirect:t,isInNodeModules:n})));e.length>1&&e.sort(nB),d.push(...e)}return d}function cB(e,t,n,r,i,o,a){for(const o in t)for(const c of t[o]){const t=Jo(c),l=gB(t,r,i)??t,_=l.indexOf("*"),u=n.map((t=>({ending:t,value:dB(e,[t],a)})));if(ZS(l)&&u.push({ending:void 0,value:e}),-1!==_){const e=l.substring(0,_),t=l.substring(_+1);for(const{ending:n,value:r}of u)if(r.length>=e.length+t.length&&Gt(r,e)&&Rt(r,t)&&s({ending:n,value:r})){const n=r.substring(e.length,r.length-t.length);if(!vo(n))return _C(o,n)}}else if($(u,(e=>0!==e.ending&&l===e.value))||$(u,(e=>0===e.ending&&l===e.value&&s(e))))return o}function s({ending:t,value:n}){return 0!==t||n===dB(e,[t],a,o)}}function lB(e,t,n,r,i,o,a,s,c,l){if("string"==typeof o){const a=!Ly(t),_=()=>t.getCommonSourceDirectory(),u=c&&Bq(n,e,a,_),d=c&&Rq(n,e,a,_),p=Bo(jo(r,o),void 0),f=IS(n)?zS(n)+mB(n,e):void 0,m=l&&OS(n);switch(s){case 0:if(f&&0===Yo(f,p,a)||0===Yo(n,p,a)||u&&0===Yo(u,p,a)||d&&0===Yo(d,p,a))return{moduleFileToTry:i};break;case 1:if(m&&Zo(n,p,a)){const e=na(p,n,!1);return{moduleFileToTry:Bo(jo(jo(i,o),e),void 0)}}if(f&&Zo(p,f,a)){const e=na(p,f,!1);return{moduleFileToTry:Bo(jo(jo(i,o),e),void 0)}}if(!m&&Zo(p,n,a)){const e=na(p,n,!1);return{moduleFileToTry:Bo(jo(jo(i,o),e),void 0)}}if(u&&Zo(p,u,a)){const e=na(p,u,!1);return{moduleFileToTry:jo(i,e)}}if(d&&Zo(p,d,a)){const t=Ho(na(p,d,!1),fB(d,e));return{moduleFileToTry:jo(i,t)}}break;case 2:const t=p.indexOf("*"),r=p.slice(0,t),s=p.slice(t+1);if(m&&Gt(n,r,a)&&Rt(n,s,a)){const e=n.slice(r.length,n.length-s.length);return{moduleFileToTry:_C(i,e)}}if(f&&Gt(f,r,a)&&Rt(f,s,a)){const e=f.slice(r.length,f.length-s.length);return{moduleFileToTry:_C(i,e)}}if(!m&&Gt(n,r,a)&&Rt(n,s,a)){const e=n.slice(r.length,n.length-s.length);return{moduleFileToTry:_C(i,e)}}if(u&&Gt(u,r,a)&&Rt(u,s,a)){const e=u.slice(r.length,u.length-s.length);return{moduleFileToTry:_C(i,e)}}if(d&&Gt(d,r,a)&&Rt(d,s,a)){const t=d.slice(r.length,d.length-s.length),n=_C(i,t),o=mB(d,e);return o?{moduleFileToTry:Ho(n,o)}:void 0}}}else{if(Array.isArray(o))return d(o,(o=>lB(e,t,n,r,i,o,a,s,c,l)));if("object"==typeof o&&null!==o)for(const _ of Ee(o))if("default"===_||a.indexOf(_)>=0||iM(a,_)){const u=o[_],d=lB(e,t,n,r,i,u,a,s,c,l);if(d)return d}}}function _B({path:e,isRedirect:t},{getCanonicalFileName:n,canonicalSourceDirectory:r},i,o,a,s,c,l){if(!o.fileExists||!o.readFile)return;const _=zT(e);if(!_)return;const u=qM(s,o,a,i).getAllowedEndingsInPreferredOrder();let p=e,f=!1;if(!c){let t,n=_.packageRootIndex;for(;;){const{moduleFileToTry:r,packageRootPath:i,blockedByExports:s,verbatimFromExports:c}=v(n);if(1!==vk(a)){if(s)return;if(c)return r}if(i){p=i,f=!0;break}if(t||(t=r),n=e.indexOf(lo,n+1),-1===n){p=dB(t,u,a,o);break}}}if(t&&!f)return;const m=o.getGlobalTypingsCacheLocation&&o.getGlobalTypingsCacheLocation(),g=n(p.substring(0,_.topLevelNodeModulesIndex));if(!(Gt(r,g)||m&&Gt(n(m),g)))return;const h=p.substring(_.topLevelPackageNameIndex+1),y=mM(h);return 1===vk(a)&&y===h?void 0:y;function v(t){var r,s;const c=e.substring(0,t),p=jo(c,"package.json");let f=e,m=!1;const g=null==(s=null==(r=o.getPackageJsonInfoCache)?void 0:r.call(o))?void 0:s.getPackageJsonInfo(p);if(iR(g)||void 0===g&&o.fileExists(p)){const t=(null==g?void 0:g.contents.packageJsonContent)||wb(o.readFile(p)),r=l||yB(i,o,a);if(Tk(a)){const n=mM(c.substring(_.topLevelPackageNameIndex+1)),i=tR(a,r),s=(null==t?void 0:t.exports)?function(e,t,n,r,i,o,a){return"object"==typeof o&&null!==o&&!Array.isArray(o)&&ZR(o)?d(Ee(o),(s=>{const c=Bo(jo(i,s),void 0),l=Rt(s,"/")?1:s.includes("*")?2:0;return lB(e,t,n,r,c,o[s],a,l,!1,!1)})):lB(e,t,n,r,i,o,a,0,!1,!1)}(a,o,e,c,n,t.exports,i):void 0;if(s)return{...s,verbatimFromExports:!0};if(null==t?void 0:t.exports)return{moduleFileToTry:e,blockedByExports:!0}}const s=(null==t?void 0:t.typesVersions)?Kj(t.typesVersions):void 0;if(s){const t=cB(e.slice(c.length+1),s.paths,u,c,n,o,a);void 0===t?m=!0:f=jo(c,t)}const h=(null==t?void 0:t.typings)||(null==t?void 0:t.types)||(null==t?void 0:t.main)||"index.js";if(Ze(h)&&(!m||!nT(HS(s.paths),h))){const e=qo(h,c,n),r=n(f);if(zS(e)===zS(r))return{packageRootPath:c,moduleFileToTry:f};if("module"!==(null==t?void 0:t.type)&&!So(r,FS)&&Gt(r,e)&&Do(r)===Uo(e)&&"index"===zS(Fo(r)))return{packageRootPath:c,moduleFileToTry:f}}}else{const e=n(f.substring(_.packageRootIndex+1));if("index.d.ts"===e||"index.js"===e||"index.ts"===e||"index.tsx"===e)return{moduleFileToTry:f,packageRootPath:c}}return{moduleFileToTry:f}}}function uB(e,t,n){return B(t,(t=>{const r=gB(e,t,n);return void 0!==r&&hB(r)?void 0:r}))}function dB(e,t,n,r){if(So(e,[".json",".mjs",".cjs"]))return e;const i=zS(e);if(e===i)return e;const o=t.indexOf(2),a=t.indexOf(3);if(So(e,[".mts",".cts"])&&-1!==a&&a0===e||1===e));return-1!==r&&r(e[e.None=0]="None",e[e.TypeofEQString=1]="TypeofEQString",e[e.TypeofEQNumber=2]="TypeofEQNumber",e[e.TypeofEQBigInt=4]="TypeofEQBigInt",e[e.TypeofEQBoolean=8]="TypeofEQBoolean",e[e.TypeofEQSymbol=16]="TypeofEQSymbol",e[e.TypeofEQObject=32]="TypeofEQObject",e[e.TypeofEQFunction=64]="TypeofEQFunction",e[e.TypeofEQHostObject=128]="TypeofEQHostObject",e[e.TypeofNEString=256]="TypeofNEString",e[e.TypeofNENumber=512]="TypeofNENumber",e[e.TypeofNEBigInt=1024]="TypeofNEBigInt",e[e.TypeofNEBoolean=2048]="TypeofNEBoolean",e[e.TypeofNESymbol=4096]="TypeofNESymbol",e[e.TypeofNEObject=8192]="TypeofNEObject",e[e.TypeofNEFunction=16384]="TypeofNEFunction",e[e.TypeofNEHostObject=32768]="TypeofNEHostObject",e[e.EQUndefined=65536]="EQUndefined",e[e.EQNull=131072]="EQNull",e[e.EQUndefinedOrNull=262144]="EQUndefinedOrNull",e[e.NEUndefined=524288]="NEUndefined",e[e.NENull=1048576]="NENull",e[e.NEUndefinedOrNull=2097152]="NEUndefinedOrNull",e[e.Truthy=4194304]="Truthy",e[e.Falsy=8388608]="Falsy",e[e.IsUndefined=16777216]="IsUndefined",e[e.IsNull=33554432]="IsNull",e[e.IsUndefinedOrNull=50331648]="IsUndefinedOrNull",e[e.All=134217727]="All",e[e.BaseStringStrictFacts=3735041]="BaseStringStrictFacts",e[e.BaseStringFacts=12582401]="BaseStringFacts",e[e.StringStrictFacts=16317953]="StringStrictFacts",e[e.StringFacts=16776705]="StringFacts",e[e.EmptyStringStrictFacts=12123649]="EmptyStringStrictFacts",e[e.EmptyStringFacts=12582401]="EmptyStringFacts",e[e.NonEmptyStringStrictFacts=7929345]="NonEmptyStringStrictFacts",e[e.NonEmptyStringFacts=16776705]="NonEmptyStringFacts",e[e.BaseNumberStrictFacts=3734786]="BaseNumberStrictFacts",e[e.BaseNumberFacts=12582146]="BaseNumberFacts",e[e.NumberStrictFacts=16317698]="NumberStrictFacts",e[e.NumberFacts=16776450]="NumberFacts",e[e.ZeroNumberStrictFacts=12123394]="ZeroNumberStrictFacts",e[e.ZeroNumberFacts=12582146]="ZeroNumberFacts",e[e.NonZeroNumberStrictFacts=7929090]="NonZeroNumberStrictFacts",e[e.NonZeroNumberFacts=16776450]="NonZeroNumberFacts",e[e.BaseBigIntStrictFacts=3734276]="BaseBigIntStrictFacts",e[e.BaseBigIntFacts=12581636]="BaseBigIntFacts",e[e.BigIntStrictFacts=16317188]="BigIntStrictFacts",e[e.BigIntFacts=16775940]="BigIntFacts",e[e.ZeroBigIntStrictFacts=12122884]="ZeroBigIntStrictFacts",e[e.ZeroBigIntFacts=12581636]="ZeroBigIntFacts",e[e.NonZeroBigIntStrictFacts=7928580]="NonZeroBigIntStrictFacts",e[e.NonZeroBigIntFacts=16775940]="NonZeroBigIntFacts",e[e.BaseBooleanStrictFacts=3733256]="BaseBooleanStrictFacts",e[e.BaseBooleanFacts=12580616]="BaseBooleanFacts",e[e.BooleanStrictFacts=16316168]="BooleanStrictFacts",e[e.BooleanFacts=16774920]="BooleanFacts",e[e.FalseStrictFacts=12121864]="FalseStrictFacts",e[e.FalseFacts=12580616]="FalseFacts",e[e.TrueStrictFacts=7927560]="TrueStrictFacts",e[e.TrueFacts=16774920]="TrueFacts",e[e.SymbolStrictFacts=7925520]="SymbolStrictFacts",e[e.SymbolFacts=16772880]="SymbolFacts",e[e.ObjectStrictFacts=7888800]="ObjectStrictFacts",e[e.ObjectFacts=16736160]="ObjectFacts",e[e.FunctionStrictFacts=7880640]="FunctionStrictFacts",e[e.FunctionFacts=16728e3]="FunctionFacts",e[e.VoidFacts=9830144]="VoidFacts",e[e.UndefinedFacts=26607360]="UndefinedFacts",e[e.NullFacts=42917664]="NullFacts",e[e.EmptyObjectStrictFacts=83427327]="EmptyObjectStrictFacts",e[e.EmptyObjectFacts=83886079]="EmptyObjectFacts",e[e.UnknownFacts=83886079]="UnknownFacts",e[e.AllTypeofNE=556800]="AllTypeofNE",e[e.OrFactsMask=8256]="OrFactsMask",e[e.AndFactsMask=134209471]="AndFactsMask",e))(DB||{}),FB=new Map(Object.entries({string:256,number:512,bigint:1024,boolean:2048,symbol:4096,undefined:524288,object:8192,function:16384})),EB=(e=>(e[e.Normal=0]="Normal",e[e.Contextual=1]="Contextual",e[e.Inferential=2]="Inferential",e[e.SkipContextSensitive=4]="SkipContextSensitive",e[e.SkipGenericFunctions=8]="SkipGenericFunctions",e[e.IsForSignatureHelp=16]="IsForSignatureHelp",e[e.RestBindingElement=32]="RestBindingElement",e[e.TypeOnly=64]="TypeOnly",e))(EB||{}),PB=(e=>(e[e.None=0]="None",e[e.BivariantCallback=1]="BivariantCallback",e[e.StrictCallback=2]="StrictCallback",e[e.IgnoreReturnTypes=4]="IgnoreReturnTypes",e[e.StrictArity=8]="StrictArity",e[e.StrictTopSignature=16]="StrictTopSignature",e[e.Callback=3]="Callback",e))(PB||{}),AB=Zt(JB,(function(e){return!u_(e)})),IB=new Map(Object.entries({Uppercase:0,Lowercase:1,Capitalize:2,Uncapitalize:3,NoInfer:4})),OB=class{};function LB(){this.flags=0}function jB(e){return e.id||(e.id=CB,CB++),e.id}function RB(e){return e.id||(e.id=TB,TB++),e.id}function MB(e,t){const n=wM(e);return 1===n||t&&2===n}function BB(e){var t,n,r,i,o=[],a=e=>{o.push(e)},s=jx.getSymbolConstructor(),c=jx.getTypeConstructor(),_=jx.getSignatureConstructor(),p=0,m=0,g=0,h=0,y=0,C=0,D=!1,P=Hu(),L=[1],j=e.getCompilerOptions(),R=hk(j),M=yk(j),J=!!j.experimentalDecorators,U=Ak(j),V=Jk(j),W=Sk(j),H=Mk(j,"strictNullChecks"),G=Mk(j,"strictFunctionTypes"),Y=Mk(j,"strictBindCallApply"),Z=Mk(j,"strictPropertyInitialization"),ee=Mk(j,"strictBuiltinIteratorReturn"),ne=Mk(j,"noImplicitAny"),oe=Mk(j,"noImplicitThis"),ae=Mk(j,"useUnknownInCatchVariables"),_e=j.exactOptionalPropertyTypes,ue=!!j.noUncheckedSideEffectImports,pe=function(){const e=UA((function(e,t,r){return t?(t.stackIndex++,t.skip=!1,n(t,void 0),i(t,void 0)):t={checkMode:r,skip:!1,stackIndex:0,typeStack:[void 0,void 0]},Fm(e)&&Wm(e)?(t.skip=!0,i(t,Lj(e.right,r)),t):(function(e){const{left:t,operatorToken:n,right:r}=e;if(61===n.kind){!cF(t)||57!==t.operatorToken.kind&&56!==t.operatorToken.kind||nz(t,la._0_and_1_operations_cannot_be_mixed_without_parentheses,Da(t.operatorToken.kind),Da(n.kind)),!cF(r)||57!==r.operatorToken.kind&&56!==r.operatorToken.kind||nz(r,la._0_and_1_operations_cannot_be_mixed_without_parentheses,Da(r.operatorToken.kind),Da(n.kind));const i=cA(t,31),o=cj(i);3!==o&&(226===e.parent.kind?jo(i,la.This_binary_expression_is_never_nullish_Are_you_missing_parentheses):jo(i,1===o?la.This_expression_is_always_nullish:la.Right_operand_of_is_unreachable_because_the_left_operand_is_never_nullish))}}(e),64!==e.operatorToken.kind||210!==e.left.kind&&209!==e.left.kind||(t.skip=!0,i(t,oj(e.left,Lj(e.right,r),r,110===e.right.kind))),t)}),(function(e,n,r){if(!n.skip)return t(n,e)}),(function(e,t,o){if(!t.skip){const a=r(t);un.assertIsDefined(a),n(t,a),i(t,void 0);const s=e.kind;if(Qv(s)){let e=o.parent;for(;217===e.kind||Yv(e);)e=e.parent;(56===s||FF(e))&&YR(o.left,a,FF(e)?e.thenStatement:void 0),Hv(s)&&ZR(a,o.left)}}}),(function(e,n,r){if(!n.skip)return t(n,e)}),(function(e,t){let o;if(t.skip)o=r(t);else{const n=function(e){return e.typeStack[e.stackIndex]}(t);un.assertIsDefined(n);const i=r(t);un.assertIsDefined(i),o=lj(e.left,e.operatorToken,e.right,n,i,t.checkMode,e)}return t.skip=!1,n(t,void 0),i(t,void 0),t.stackIndex--,o}),(function(e,t,n){return i(e,t),e}));return(t,n)=>{const r=e(t,n);return un.assertIsDefined(r),r};function t(e,t){if(cF(t))return t;i(e,Lj(t,e.checkMode))}function n(e,t){e.typeStack[e.stackIndex]=t}function r(e){return e.typeStack[e.stackIndex+1]}function i(e,t){e.typeStack[e.stackIndex+1]=t}}(),be={getReferencedExportContainer:function(e,t){var n;const r=dc(e,zN);if(r){let e=kJ(r,function(e){return iu(e.parent)&&e===e.parent.name}(r));if(e){if(1048576&e.flags){const n=ds(e.exportSymbol);if(!t&&944&n.flags&&!(3&n.flags))return;e=n}const i=hs(e);if(i){if(512&i.flags&&307===(null==(n=i.valueDeclaration)?void 0:n.kind)){const e=i.valueDeclaration;return e!==hd(r)?void 0:e}return _c(r.parent,(e=>iu(e)&&ps(e)===i))}}}},getReferencedImportDeclaration:function(e){const t=Mw(e);if(t)return t;const n=dc(e,zN);if(n){const e=function(e){const t=aa(e).resolvedSymbol;return t&&t!==xt?t:Ue(e,e.escapedText,3257279,void 0,!0,void 0)}(n);if(Ra(e,111551)&&!Wa(e,111551))return ba(e)}},getReferencedDeclarationWithCollidingName:function(e){if(!Vl(e)){const t=dc(e,zN);if(t){const e=kJ(t);if(e&&sJ(e))return e.valueDeclaration}}},isDeclarationWithCollidingName:function(e){const t=dc(e,lu);if(t){const e=ps(t);if(e)return sJ(e)}return!1},isValueAliasDeclaration:e=>{const t=dc(e);return!t||!Me||cJ(t)},hasGlobalName:function(e){return Ne.has(pc(e))},isReferencedAliasDeclaration:(e,t)=>{const n=dc(e);return!n||!Me||uJ(n,t)},hasNodeCheckFlag:(e,t)=>{const n=dc(e);return!!n&&gJ(n,t)},isTopLevelValueImportEqualsWithEntityName:function(e){const t=dc(e,tE);return!(void 0===t||307!==t.parent.kind||!wm(t))&&(lJ(ps(t))&&t.moduleReference&&!Cd(t.moduleReference))},isDeclarationVisible:Lc,isImplementationOfOverload:dJ,requiresAddingImplicitUndefined:pJ,isExpandoFunctionDeclaration:fJ,getPropertiesOfContainerFunction:function(e){const t=dc(e,$F);if(!t)return l;const n=ps(t);return n&&vp(S_(n))||l},createTypeOfDeclaration:function(e,t,n,r,i){const o=dc(e,bC);if(!o)return XC.createToken(133);const a=ps(o);return xe.serializeTypeForDeclaration(o,a,t,1024|n,r,i)},createReturnTypeOfSignatureDeclaration:function(e,t,n,r,i){const o=dc(e,n_);return o?xe.serializeReturnTypeForSignature(o,t,1024|n,r,i):XC.createToken(133)},createTypeOfExpression:function(e,t,n,r,i){const o=dc(e,U_);return o?xe.serializeTypeForExpression(o,t,1024|n,r,i):XC.createToken(133)},createLiteralConstValue:function(e,t){return function(e,t,n){const r=1056&e.flags?xe.symbolToExpression(e.symbol,111551,t,void 0,void 0,n):e===Yt?XC.createTrue():e===Ht&&XC.createFalse();if(r)return r;const i=e.value;return"object"==typeof i?XC.createBigIntLiteral(i):"string"==typeof i?XC.createStringLiteral(i):i<0?XC.createPrefixUnaryExpression(41,XC.createNumericLiteral(-i)):XC.createNumericLiteral(i)}(S_(ps(e)),e,t)},isSymbolAccessible:Hs,isEntityNameVisible:nc,getConstantValue:e=>{const t=dc(e,yJ);return t?vJ(t):void 0},getEnumMemberValue:e=>{const t=dc(e,zE);return t?hJ(t):void 0},collectLinkedAliases:jc,markLinkedReferences:e=>{const t=dc(e);return t&&CE(t,0)},getReferencedValueDeclaration:function(e){if(!Vl(e)){const t=dc(e,zN);if(t){const e=kJ(t);if(e)return Ss(e).valueDeclaration}}},getReferencedValueDeclarations:function(e){if(!Vl(e)){const t=dc(e,zN);if(t){const e=kJ(t);if(e)return N(Ss(e).declarations,(e=>{switch(e.kind){case 260:case 169:case 208:case 172:case 303:case 304:case 306:case 210:case 262:case 218:case 219:case 263:case 231:case 266:case 174:case 177:case 178:case 267:return!0}return!1}))}}},getTypeReferenceSerializationKind:function(e,t){var n;const r=dc(e,Zl);if(!r)return 0;if(t&&!(t=dc(t)))return 0;let i=!1;if(nD(r)){const e=Ka(ab(r),111551,!0,!0,t);i=!!(null==(n=null==e?void 0:e.declarations)?void 0:n.every(Jl))}const o=Ka(r,111551,!0,!0,t),a=o&&2097152&o.flags?Ba(o):o;i||(i=!(!o||!Wa(o,111551)));const s=Ka(r,788968,!0,!0,t),c=s&&2097152&s.flags?Ba(s):s;if(o||i||(i=!(!s||!Wa(s,788968))),a&&a===c){const e=Wy(!1);if(e&&a===e)return 9;const t=S_(a);if(t&&J_(t))return i?10:1}if(!c)return i?11:0;const l=fu(c);return $c(l)?i?11:0:3&l.flags?11:YL(l,245760)?2:YL(l,528)?6:YL(l,296)?3:YL(l,2112)?4:YL(l,402653316)?5:UC(l)?7:YL(l,12288)?8:bJ(l)?10:yC(l)?7:11},isOptionalParameter:zm,isArgumentsLocalBinding:function(e){if(Vl(e))return!1;const t=dc(e,zN);if(!t)return!1;const n=t.parent;return!!n&&(!((HD(n)||ME(n))&&n.name===t)&&kJ(t)===Le)},getExternalModuleFileFromDeclaration:e=>{const t=dc(e,Cp);return t&&wJ(t)},isLiteralConstDeclaration:function(e){return!!(ef(e)||VF(e)&&uz(e))&&rk(S_(ps(e)))},isLateBound:e=>{const t=dc(e,lu),n=t&&ps(t);return!!(n&&4096&nx(n))},getJsxFactoryEntity:SJ,getJsxFragmentFactoryEntity:TJ,isBindingCapturedByNode:(e,t)=>{const n=dc(e),r=dc(t);return!!n&&!!r&&(VF(r)||VD(r))&&function(e,t){const n=aa(e);return!!n&&T(n.capturedBlockScopeBindings,ps(t))}(n,r)},getDeclarationStatementsForSourceFile:(e,t,n,r)=>{const i=dc(e);un.assert(i&&307===i.kind,"Non-sourcefile node passed into getDeclarationsForSourceFile");const o=ps(e);return o?(ts(o),o.exports?xe.symbolTableToDeclarationStatements(o.exports,e,t,n,r):[]):e.locals?xe.symbolTableToDeclarationStatements(e.locals,e,t,n,r):[]},isImportRequiredByAugmentation:function(e){const t=hd(e);if(!t.symbol)return!1;const n=wJ(e);if(!n)return!1;if(n===t)return!1;const r=ls(t.symbol);for(const e of Oe(r.values()))if(e.mergeId){const t=ds(e);if(t.declarations)for(const e of t.declarations)if(hd(e)===n)return!0}return!1},isDefinitelyReferenceToGlobalSymbolObject:wo,createLateBoundIndexSignatures:(e,t,n,r,i)=>{const o=e.symbol,a=Kf(S_(o)),s=eh(o),c=s&&kh(s,Oe(sd(o).values()));let l;for(const e of[a,c])if(u(e)){l||(l=[]);for(const o of e){if(o.declaration)continue;const s=xe.indexInfoToIndexSignatureDeclaration(o,t,n,r,i);s&&e===a&&(s.modifiers||(s.modifiers=XC.createNodeArray())).unshift(XC.createModifier(126)),s&&l.push(s)}}return l}},xe=function(){return{syntacticBuilderResolver:{evaluateEntityNameExpression:QM,isExpandoFunctionDeclaration:fJ,hasLateBindableName:Qu,shouldRemoveDeclaration:(e,t)=>!(8&e.internalFlags&&ob(t.name.expression)&&1&kA(t.name).flags),createRecoveryBoundary:e=>function(e){t&&t.throwIfCancellationRequested&&t.throwIfCancellationRequested();let n,r,i=!1;const o=e.tracker,a=e.trackedSymbols;e.trackedSymbols=void 0;const s=e.encounteredError;return e.tracker=new WB(e,{...o.inner,reportCyclicStructureError(){c((()=>o.reportCyclicStructureError()))},reportInaccessibleThisError(){c((()=>o.reportInaccessibleThisError()))},reportInaccessibleUniqueSymbolError(){c((()=>o.reportInaccessibleUniqueSymbolError()))},reportLikelyUnsafeImportRequiredError(e){c((()=>o.reportLikelyUnsafeImportRequiredError(e)))},reportNonSerializableProperty(e){c((()=>o.reportNonSerializableProperty(e)))},reportPrivateInBaseOfClassExpression(e){c((()=>o.reportPrivateInBaseOfClassExpression(e)))},trackSymbol:(e,t,r)=>((n??(n=[])).push([e,t,r]),!1),moduleResolverHost:e.tracker.moduleResolverHost},e.tracker.moduleResolverHost),{startRecoveryScope:function(){const e=(null==n?void 0:n.length)??0,t=(null==r?void 0:r.length)??0;return()=>{i=!1,n&&(n.length=e),r&&(r.length=t)}},finalizeBoundary:function(){return e.tracker=o,e.trackedSymbols=a,e.encounteredError=s,null==r||r.forEach((e=>e())),!i&&(null==n||n.forEach((([t,n,r])=>e.tracker.trackSymbol(t,n,r))),!0)},markError:c,hadError:()=>i};function c(e){i=!0,e&&(r??(r=[])).push(e)}}(e),isDefinitelyReferenceToGlobalSymbolObject:wo,getAllAccessorDeclarations:xJ,requiresAddingImplicitUndefined(e,t,n){var r;switch(e.kind){case 172:case 171:case 348:t??(t=ps(e));const i=S_(t);return!!(4&t.flags&&16777216&t.flags&&KT(e)&&(null==(r=t.links)?void 0:r.mappedType)&&function(e){const t=1048576&e.flags?e.types[0]:e;return!!(32768&t.flags)&&t!==Mt}(i));case 169:case 341:return pJ(e,n);default:un.assertNever(e)}},isOptionalParameter:zm,isUndefinedIdentifierExpression:e=>(un.assert(vm(e)),YB(e)===De),isEntityNameVisible:(e,t,n)=>nc(t,e.enclosingDeclaration,n),serializeExistingTypeNode:(e,t,r)=>function(e,t,r){const i=n(e,t);if(r&&!ED(i,(e=>!!(32768&e.flags)))&&me(e,t)){const n=ke.tryReuseExistingTypeNode(e,t);if(n)return XC.createUnionTypeNode([n,XC.createKeywordTypeNode(157)])}return _(i,e)}(e,t,!!r),serializeReturnTypeForSignature(e,t){const n=e,r=ig(t),i=n.enclosingSymbolTypes.get(RB(ps(t)))??tS(Tg(r),n.mapper);return pe(n,r,i)},serializeTypeOfExpression(e,t){const n=e;return _(tS(Sw(tJ(t)),n.mapper),n)},serializeTypeOfDeclaration(e,t,n){var r;const i=e;n??(n=ps(t));let o=null==(r=i.enclosingSymbolTypes)?void 0:r.get(RB(n));return void 0===o&&(o=!n||133120&n.flags?Et:tS(BC(S_(n)),i.mapper)),t&&(oD(t)||bP(t))&&pJ(t,i.enclosingDeclaration)&&(o=tw(o)),_e(n,i,o)},serializeNameOfParameter:(e,t)=>M(ps(t),t,e),serializeEntityName(e,t){const n=e,r=YB(t,!0);if(r&&Vs(r,n.enclosingDeclaration))return ne(r,n,1160127)},serializeTypeName:(e,t,n,r)=>function(e,t,n,r){const i=n?111551:788968,o=Ka(t,i,!0);if(!o)return;const a=2097152&o.flags?Ba(o):o;return 0!==Hs(o,e.enclosingDeclaration,i,!1).accessibility?void 0:Y(a,e,i,r)}(e,t,n,r),getJsDocPropertyOverride(e,t,r){const i=e,o=zN(r.name)?r.name:r.name.right,a=Uc(n(i,t),o.escapedText);return a&&r.typeExpression&&n(i,r.typeExpression.type)!==a?_(a,i):void 0},enterNewScope(e,t){if(n_(t)||aP(t)){const n=ig(t);return C(e,t,kd(n,!0)[0],n.typeParameters)}return C(e,t,void 0,PD(t)?Ix(t):[pu(ps(t.typeParameter))])},markNodeReuse:(e,t,n)=>r(e,t,n),trackExistingEntityName:(e,t)=>fe(t,e),trackComputedName(e,t){J(t,e.enclosingDeclaration,e)},getModuleSpecifierOverride(e,t,n){const r=e;if(r.bundled||r.enclosingFile!==hd(n)){let e=n.text;const i=aa(t).resolvedSymbol,o=t.isTypeOf?111551:788968,a=i&&0===Hs(i,r.enclosingDeclaration,o,!1).accessibility&&z(i,r,o,!0)[0];if(a&&Gu(a))e=G(a,r);else{const n=wJ(t);n&&(e=G(n.symbol,r))}return e.includes("/node_modules/")&&(r.encounteredError=!0,r.tracker.reportLikelyUnsafeImportRequiredError&&r.tracker.reportLikelyUnsafeImportRequiredError(e)),e}},canReuseTypeNode:(e,t)=>me(e,t),canReuseTypeNodeAnnotation(e,t,n,r,i){var o;const a=e;if(void 0===a.enclosingDeclaration)return!1;r??(r=ps(t));let s=null==(o=a.enclosingSymbolTypes)?void 0:o.get(RB(r));void 0===s&&(s=98304&r.flags?178===t.kind?b_(r):t_(r):Zg(t)?Tg(ig(t)):S_(r));let c=Sc(n);return!!$c(c)||(i&&c&&(c=tw(c,!oD(t))),!!c&&function(e,t,n){return n===t||!!e&&(((sD(e)||cD(e))&&e.questionToken||!(!oD(e)||!Bm(e)))&&ON(t,524288)===n)}(t,s,c)&&le(n,s))}},typeToTypeNode:(e,t,n,r,i)=>o(t,n,r,i,(t=>_(e,t))),typePredicateToTypePredicateNode:(e,t,n,r,i)=>o(t,n,r,i,(t=>P(e,t))),serializeTypeForExpression:(e,t,n,r,i)=>o(t,n,r,i,(t=>ke.serializeTypeOfExpression(e,t))),serializeTypeForDeclaration:(e,t,n,r,i,a)=>o(n,r,i,a,(n=>ke.serializeTypeOfDeclaration(e,t,n))),serializeReturnTypeForSignature:(e,t,n,r,i)=>o(t,n,r,i,(t=>ke.serializeReturnTypeForSignature(e,ps(e),t))),indexInfoToIndexSignatureDeclaration:(e,t,n,r,i)=>o(t,n,r,i,(t=>x(e,t,void 0))),signatureToSignatureDeclaration:(e,t,n,r,i,a)=>o(n,r,i,a,(n=>S(e,t,n))),symbolToEntityName:(e,t,n,r,i,a)=>o(n,r,i,a,(n=>te(e,n,t,!1))),symbolToExpression:(e,t,n,r,i,a)=>o(n,r,i,a,(n=>ne(e,n,t))),symbolToTypeParameterDeclarations:(e,t,n,r,i)=>o(t,n,r,i,(t=>U(e,t))),symbolToParameterDeclaration:(e,t,n,r,i)=>o(t,n,r,i,(t=>L(e,t))),typeParameterToDeclaration:(e,t,n,r,i)=>o(t,n,r,i,(t=>F(e,t))),symbolTableToDeclarationStatements:(e,t,i,a,c)=>o(t,i,a,c,(t=>function(e,t){var i;const o=oe(XC.createPropertyDeclaration,174,!0),a=oe(((e,t,n,r)=>XC.createPropertySignature(e,t,n,r)),173,!1),c=t.enclosingDeclaration;let p=[];const m=new Set,g=[],h=t;t={...h,usedSymbolNames:new Set(h.usedSymbolNames),remappedSymbolNames:new Map,remappedSymbolReferences:new Map(null==(i=h.remappedSymbolReferences)?void 0:i.entries()),tracker:void 0};const y={...h.tracker.inner,trackSymbol:(e,n,r)=>{var i,o;if(null==(i=t.remappedSymbolNames)?void 0:i.has(RB(e)))return!1;if(0===Hs(e,n,r,!1).accessibility){const n=q(e,t,r);if(!(4&e.flags)){const e=n[0],t=hd(h.enclosingDeclaration);$(e.declarations,(e=>hd(e)===t))&&z(e)}}else if(null==(o=h.tracker.inner)?void 0:o.trackSymbol)return h.tracker.inner.trackSymbol(e,n,r);return!1}};t.tracker=new WB(t,y,h.tracker.moduleResolverHost),td(e,((e,t)=>{he(e,fc(t))}));let T=!t.bundled;const C=e.get("export=");return C&&e.size>1&&2098688&C.flags&&(e=Hu()).set("export=",C),L(e),w=function(e){const t=k(e,(e=>fE(e)&&!e.moduleSpecifier&&!e.attributes&&!!e.exportClause&&mE(e.exportClause)));if(t>=0){const n=e[t],r=B(n.exportClause.elements,(t=>{if(!t.propertyName&&11!==t.name.kind){const n=t.name,r=N(X(e),(t=>bc(e[t],n)));if(u(r)&&v(r,(t=>UT(e[t])))){for(const t of r)e[t]=P(e[t]);return}}return t}));u(r)?e[t]=XC.updateExportDeclaration(n,n.modifiers,n.isTypeOnly,XC.updateNamedExports(n.exportClause,r),n.moduleSpecifier,n.attributes):qt(e,t)}return e}(w=function(e){const t=N(e,(e=>fE(e)&&!e.moduleSpecifier&&!!e.exportClause&&mE(e.exportClause)));u(t)>1&&(e=[...N(e,(e=>!fE(e)||!!e.moduleSpecifier||!e.exportClause)),XC.createExportDeclaration(void 0,!1,XC.createNamedExports(O(t,(e=>nt(e.exportClause,mE).elements))),void 0)]);const n=N(e,(e=>fE(e)&&!!e.moduleSpecifier&&!!e.exportClause&&mE(e.exportClause)));if(u(n)>1){const t=Je(n,(e=>TN(e.moduleSpecifier)?">"+e.moduleSpecifier.text:">"));if(t.length!==n.length)for(const n of t)n.length>1&&(e=[...N(e,(e=>!n.includes(e))),XC.createExportDeclaration(void 0,!1,XC.createNamedExports(O(n,(e=>nt(e.exportClause,mE).elements))),n[0].moduleSpecifier)])}return e}(w=function(e){const t=b(e,pE),n=k(e,QF);let r=-1!==n?e[n]:void 0;if(r&&t&&t.isExportEquals&&zN(t.expression)&&zN(r.name)&&mc(r.name)===mc(t.expression)&&r.body&&YF(r.body)){const i=N(e,(e=>!!(32&Mv(e)))),o=r.name;let a=r.body;if(u(i)&&(r=XC.updateModuleDeclaration(r,r.modifiers,r.name,a=XC.updateModuleBlock(a,XC.createNodeArray([...r.body.statements,XC.createExportDeclaration(void 0,!1,XC.createNamedExports(E(O(i,(e=>{return wF(t=e)?N(E(t.declarationList.declarations,Tc),D):N([Tc(t)],D);var t})),(e=>XC.createExportSpecifier(!1,void 0,e)))),void 0)]))),e=[...e.slice(0,n),r,...e.slice(n+1)]),!b(e,(e=>e!==r&&bc(e,o)))){p=[];const n=!$(a.statements,(e=>wv(e,32)||pE(e)||fE(e)));d(a.statements,(e=>{U(e,n?32:0)})),e=[...N(e,(e=>e!==r&&e!==t)),...p]}}return e}(w=p))),c&&(qE(c)&&Qp(c)||QF(c))&&(!$(w,G_)||!H_(w)&&$(w,K_))&&w.push(BP(XC)),w;var w;function D(e){return!!e&&80===e.kind}function P(e){const t=-129&Mv(e)|32;return XC.replaceModifiers(e,t)}function A(e){const t=-33&Mv(e);return XC.replaceModifiers(e,t)}function L(e,t,n){t||g.push(new Map),e.forEach((e=>{j(e,!1,!!n)})),t||(g[g.length-1].forEach((e=>{j(e,!0,!!n)})),g.pop())}function j(e,n,r){vp(S_(e));const i=ds(e);if(!m.has(RB(i))&&(m.add(RB(i)),!n||u(e.declarations)&&$(e.declarations,(e=>!!_c(e,(e=>e===c)))))){const i=se(t);t.tracker.pushErrorFallbackNode(b(e.declarations,(e=>hd(e)===t.enclosingFile))),J(e,n,r),t.tracker.popErrorFallbackNode(),i()}}function J(e,i,c,p=e.escapedName){var f,m,g,h,y,x;const k=fc(p),S="default"===p;if(i&&!(131072&t.flags)&&Fh(k)&&!S)return void(t.encounteredError=!0);let T=S&&!!(-113&e.flags||16&e.flags&&u(vp(S_(e))))&&!(2097152&e.flags),C=!T&&!i&&Fh(k)&&!S;(T||C)&&(i=!0);const w=(i?0:32)|(S&&!T?2048:0),D=1536&e.flags&&7&e.flags&&"export="!==p,P=D&&ie(S_(e),e);if((8208&e.flags||P)&&H(S_(e),e,he(e,k),w),524288&e.flags&&function(e,n,r){var i;const o=ru(e),a=E(oa(e).typeParameters,(e=>F(e,t))),c=null==(i=e.declarations)?void 0:i.find(Ng),l=cl(c?c.comment||c.parent.comment:void 0),u=s(t);t.flags|=8388608;const d=t.enclosingDeclaration;t.enclosingDeclaration=c;const p=c&&c.typeExpression&&VE(c.typeExpression)&&ke.tryReuseExistingTypeNode(t,c.typeExpression.type)||_(o,t);U(mw(XC.createTypeAliasDeclaration(void 0,he(e,n),a,p),l?[{kind:3,text:"*\n * "+l.replace(/\n/g,"\n * ")+"\n ",pos:-1,end:-1,hasTrailingNewLine:!0}]:[]),r),u(),t.enclosingDeclaration=d}(e,k,w),98311&e.flags&&"export="!==p&&!(4194304&e.flags)&&!(32&e.flags)&&!(8192&e.flags)&&!P)if(c)re(e)&&(C=!1,T=!1);else{const n=S_(e),o=he(e,k);if(n.symbol&&n.symbol!==e&&16&n.symbol.flags&&$(n.symbol.declarations,jT)&&((null==(f=n.symbol.members)?void 0:f.size)||(null==(m=n.symbol.exports)?void 0:m.size)))t.remappedSymbolReferences||(t.remappedSymbolReferences=new Map),t.remappedSymbolReferences.set(RB(n.symbol),e),J(n.symbol,i,c,p),t.remappedSymbolReferences.delete(RB(n.symbol));else if(16&e.flags||!ie(n,e)){const a=2&e.flags?cE(e)?2:1:(null==(g=e.parent)?void 0:g.valueDeclaration)&&qE(null==(h=e.parent)?void 0:h.valueDeclaration)?2:void 0,s=!T&&4&e.flags?me(o,e):o;let c=e.declarations&&b(e.declarations,(e=>VF(e)));c&&WF(c.parent)&&1===c.parent.declarations.length&&(c=c.parent.parent);const l=null==(y=e.declarations)?void 0:y.find(HD);if(l&&cF(l.parent)&&zN(l.parent.right)&&(null==(x=n.symbol)?void 0:x.valueDeclaration)&&qE(n.symbol.valueDeclaration)){const e=o===l.parent.right.escapedText?void 0:l.parent.right;U(XC.createExportDeclaration(void 0,!1,XC.createNamedExports([XC.createExportSpecifier(!1,e,o)])),0),t.tracker.trackSymbol(n.symbol,t.enclosingDeclaration,111551)}else U(r(t,XC.createVariableStatement(void 0,XC.createVariableDeclarationList([XC.createVariableDeclaration(s,void 0,ue(t,void 0,n,e))],a)),c),s!==o?-33&w:w),s===o||i||(U(XC.createExportDeclaration(void 0,!1,XC.createNamedExports([XC.createExportSpecifier(!1,s,o)])),0),C=!1,T=!1)}else H(n,e,o,w)}if(384&e.flags&&function(e,t,n){U(XC.createEnumDeclaration(XC.createModifiersFromModifierFlags(tj(e)?4096:0),he(e,t),E(N(vp(S_(e)),(e=>!!(8&e.flags))),(e=>{const t=e.declarations&&e.declarations[0]&&zE(e.declarations[0])?vJ(e.declarations[0]):void 0;return XC.createEnumMember(fc(e.escapedName),void 0===t?void 0:"string"==typeof t?XC.createStringLiteral(t):XC.createNumericLiteral(t))}))),n)}(e,k,w),32&e.flags&&(4&e.flags&&e.valueDeclaration&&cF(e.valueDeclaration.parent)&&pF(e.valueDeclaration.parent.right)?Z(e,he(e,k),w):function(e,i,a){var s,c;const p=null==(s=e.declarations)?void 0:s.find(__),f=t.enclosingDeclaration;t.enclosingDeclaration=p||f;const m=E(M_(e),(e=>F(e,t))),g=ld(nu(e)),h=Z_(g),y=p&&vh(p),v=y&&function(e){const r=B(e,(e=>{const r=t.enclosingDeclaration;t.enclosingDeclaration=e;let i=e.expression;if(ob(i)){if(zN(i)&&""===mc(i))return o(void 0);let e;if(({introducesError:e,node:i}=fe(i,t)),e)return o(void 0)}return o(XC.createExpressionWithTypeArguments(i,E(e.typeArguments,(e=>ke.tryReuseExistingTypeNode(t,e)||_(n(t,e),t)))));function o(e){return t.enclosingDeclaration=r,e}}));if(r.length===e.length)return r}(y)||B(function(e){let t=l;if(e.symbol.declarations)for(const n of e.symbol.declarations){const e=vh(n);if(e)for(const n of e){const e=dk(n);$c(e)||(t===l?t=[e]:t.push(e))}}return t}(g),pe),b=S_(e),x=!!(null==(c=b.symbol)?void 0:c.valueDeclaration)&&__(b.symbol.valueDeclaration),k=x?Q_(b):wt,S=[...u(h)?[XC.createHeritageClause(96,E(h,(e=>function(e,n,r){const i=de(e,111551);if(i)return i;const o=me(`${r}_base`);return U(XC.createVariableStatement(void 0,XC.createVariableDeclarationList([XC.createVariableDeclaration(o,void 0,_(n,t))],2)),0),XC.createExpressionWithTypeArguments(XC.createIdentifier(o),void 0)}(e,k,i))))]:[],...u(v)?[XC.createHeritageClause(119,v)]:[]],T=function(e,t,n){if(!u(t))return n;const r=new Map;d(n,(e=>{r.set(e.escapedName,e)}));for(const n of t){const t=vp(ld(n,e.thisType));for(const e of t){const t=r.get(e.escapedName);t&&e.parent===t.parent&&r.delete(e.escapedName)}}return Oe(r.values())}(g,h,vp(g)),C=N(T,(e=>{const t=e.valueDeclaration;return!(!t||kc(t)&&qN(t.name))})),w=$(T,(e=>{const t=e.valueDeclaration;return!!t&&kc(t)&&qN(t.name)}))?[XC.createPropertyDeclaration(void 0,XC.createPrivateIdentifier("#private"),void 0,void 0,void 0)]:l,D=O(C,(e=>o(e,!1,h[0]))),P=O(N(vp(b),(e=>!(4194304&e.flags||"prototype"===e.escapedName||Y(e)))),(e=>o(e,!0,k))),A=!x&&e.valueDeclaration&&Fm(e.valueDeclaration)&&!$(Rf(b,1))?[XC.createConstructorDeclaration(XC.createModifiersFromModifierFlags(2),[],void 0)]:le(1,b,k,176),I=_e(g,h[0]);t.enclosingDeclaration=f,U(r(t,XC.createClassDeclaration(void 0,i,m,S,[...I,...P,...A,...D,...w]),e.declarations&&N(e.declarations,(e=>HF(e)||pF(e)))[0]),a)}(e,he(e,k),w)),(1536&e.flags&&(!D||function(e){return v(V(e),(e=>!(111551&za(Ma(e)))))}(e))||P)&&function(e,n,r){const i=Be(V(e),(t=>t.parent&&t.parent===e?"real":"merged")),o=i.get("real")||l,a=i.get("merged")||l;u(o)&&Q(o,he(e,n),r,!!(67108880&e.flags));if(u(a)){const r=hd(t.enclosingDeclaration),i=he(e,n),o=XC.createModuleBlock([XC.createExportDeclaration(void 0,!1,XC.createNamedExports(B(N(a,(e=>"export="!==e.escapedName)),(n=>{var i,o;const a=fc(n.escapedName),s=he(n,a),c=n.declarations&&ba(n);if(r&&(c?r!==hd(c):!$(n.declarations,(e=>hd(e)===r))))return void(null==(o=null==(i=t.tracker)?void 0:i.reportNonlocalAugmentation)||o.call(i,r,e,n));const l=c&&ja(c,!0);z(l||n);const _=l?he(l,fc(l.escapedName)):s;return XC.createExportSpecifier(!1,a===_?void 0:_,a)}))))]);U(XC.createModuleDeclaration(void 0,XC.createIdentifier(i),o,32),0)}}(e,k,w),64&e.flags&&!(32&e.flags)&&function(e,n,r){const i=nu(e),o=E(M_(e),(e=>F(e,t))),s=Z_(i),c=u(s)?Fb(s):void 0,l=O(vp(i),(e=>function(e,t){return a(e,!1,t)}(e,c))),_=le(0,i,c,179),d=le(1,i,c,180),p=_e(i,c),f=u(s)?[XC.createHeritageClause(96,B(s,(e=>de(e,111551))))]:void 0;U(XC.createInterfaceDeclaration(void 0,he(e,n),o,f,[...p,...d,..._,...l]),r)}(e,k,w),2097152&e.flags&&Z(e,he(e,k),w),4&e.flags&&"export="===e.escapedName&&re(e),8388608&e.flags&&e.declarations)for(const n of e.declarations){const e=Qa(n,n.moduleSpecifier);e&&U(XC.createExportDeclaration(void 0,n.isTypeOnly,void 0,XC.createStringLiteral(G(e,t))),0)}T?U(XC.createExportAssignment(void 0,!1,XC.createIdentifier(he(e,k))),0):C&&U(XC.createExportDeclaration(void 0,!1,XC.createNamedExports([XC.createExportSpecifier(!1,he(e,k),k)])),0)}function z(e){if($(e.declarations,Xh))return;un.assertIsDefined(g[g.length-1]),me(fc(e.escapedName),e);const t=!!(2097152&e.flags)&&!$(e.declarations,(e=>!!_c(e,fE)||_E(e)||tE(e)&&!xE(e.moduleReference)));g[t?0:g.length-1].set(RB(e),e)}function U(e,n){if(rI(e)){let r=0;const i=t.enclosingDeclaration&&(Ng(t.enclosingDeclaration)?hd(t.enclosingDeclaration):t.enclosingDeclaration);32&n&&i&&(function(e){return qE(e)&&(Qp(e)||Yp(e))||ap(e)&&!up(e)}(i)||QF(i))&&UT(e)&&(r|=32),!T||32&r||i&&33554432&i.flags||!(XF(e)||wF(e)||$F(e)||HF(e)||QF(e))||(r|=128),2048&n&&(HF(e)||KF(e)||$F(e))&&(r|=2048),r&&(e=XC.replaceModifiers(e,r|Mv(e)))}p.push(e)}function V(e){let t=Oe(cs(e).values());const n=ds(e);if(n!==e){const e=new Set(t);for(const t of cs(n).values())111551&za(Ma(t))||e.add(t);t=Oe(e)}return N(t,(e=>Y(e)&&fs(e.escapedName,99)))}function H(e,n,i,o){const a=Rf(e,0);for(const e of a){const n=S(e,262,t,{name:XC.createIdentifier(i)});U(r(t,n,K(e)),o)}1536&n.flags&&n.exports&&n.exports.size||Q(N(vp(e),Y),i,o,!0)}function K(e){if(e.declaration&&e.declaration.parent){if(cF(e.declaration.parent)&&5===eg(e.declaration.parent))return e.declaration.parent;if(VF(e.declaration.parent)&&e.declaration.parent.parent)return e.declaration.parent.parent}return e.declaration}function Q(e,n,r,i){if(u(e)){const o=Be(e,(e=>!u(e.declarations)||$(e.declarations,(e=>hd(e)===hd(t.enclosingDeclaration)))?"local":"remote")).get("local")||l;let a=aI.createModuleDeclaration(void 0,XC.createIdentifier(n),XC.createModuleBlock([]),32);wT(a,c),a.locals=Hu(e),a.symbol=e[0].parent;const s=p;p=[];const _=T;T=!1;const d={...t,enclosingDeclaration:a},f=t;t=d,L(Hu(o),i,!0),t=f,T=_;const m=p;p=s;const g=E(m,(e=>pE(e)&&!e.isExportEquals&&zN(e.expression)?XC.createExportDeclaration(void 0,!1,XC.createNamedExports([XC.createExportSpecifier(!1,e.expression,XC.createIdentifier("default"))])):e)),h=v(g,(e=>wv(e,32)))?E(g,A):g;a=XC.updateModuleDeclaration(a,a.modifiers,a.name,XC.createModuleBlock(h)),U(a,r)}}function Y(e){return!!(2887656&e.flags)||!(4194304&e.flags||"prototype"===e.escapedName||e.valueDeclaration&&Nv(e.valueDeclaration)&&__(e.valueDeclaration.parent))}function Z(e,n,r){var i,o,a,s,c;const l=ba(e);if(!l)return un.fail();const _=ds(ja(l,!0));if(!_)return;let u=lp(_)&&f(e.declarations,(e=>{if(dE(e)||gE(e))return Vd(e.propertyName||e.name);if(cF(e)||pE(e)){const t=pE(e)?e.expression:e.right;if(HD(t))return mc(t.name)}if(xa(e)){const t=Tc(e);if(t&&zN(t))return mc(t)}}))||fc(_.escapedName);"export="===u&&W&&(u="default");const d=he(_,u);switch(z(_),l.kind){case 208:if(260===(null==(o=null==(i=l.parent)?void 0:i.parent)?void 0:o.kind)){const e=G(_.parent||_,t),{propertyName:r}=l;U(XC.createImportDeclaration(void 0,XC.createImportClause(!1,void 0,XC.createNamedImports([XC.createImportSpecifier(!1,r&&zN(r)?XC.createIdentifier(mc(r)):void 0,XC.createIdentifier(n))])),XC.createStringLiteral(e),void 0),0);break}un.failBadSyntaxKind((null==(a=l.parent)?void 0:a.parent)||l,"Unhandled binding element grandparent kind in declaration serialization");break;case 304:226===(null==(c=null==(s=l.parent)?void 0:s.parent)?void 0:c.kind)&&ee(fc(e.escapedName),d);break;case 260:if(HD(l.initializer)){const e=l.initializer,i=XC.createUniqueName(n),o=G(_.parent||_,t);U(XC.createImportEqualsDeclaration(void 0,!1,i,XC.createExternalModuleReference(XC.createStringLiteral(o))),0),U(XC.createImportEqualsDeclaration(void 0,!1,XC.createIdentifier(n),XC.createQualifiedName(i,e.name)),r);break}case 271:if("export="===_.escapedName&&$(_.declarations,(e=>qE(e)&&Yp(e)))){re(e);break}const p=!(512&_.flags||VF(l));U(XC.createImportEqualsDeclaration(void 0,!1,XC.createIdentifier(n),p?te(_,t,-1,!1):XC.createExternalModuleReference(XC.createStringLiteral(G(_,t)))),p?r:0);break;case 270:U(XC.createNamespaceExportDeclaration(mc(l.name)),0);break;case 273:{const e=G(_.parent||_,t),r=t.bundled?XC.createStringLiteral(e):l.parent.moduleSpecifier,i=nE(l.parent)?l.parent.attributes:void 0,o=PP(l.parent);U(XC.createImportDeclaration(void 0,XC.createImportClause(o,XC.createIdentifier(n),void 0),r,i),0);break}case 274:{const e=G(_.parent||_,t),r=t.bundled?XC.createStringLiteral(e):l.parent.parent.moduleSpecifier,i=PP(l.parent.parent);U(XC.createImportDeclaration(void 0,XC.createImportClause(i,void 0,XC.createNamespaceImport(XC.createIdentifier(n))),r,l.parent.attributes),0);break}case 280:U(XC.createExportDeclaration(void 0,!1,XC.createNamespaceExport(XC.createIdentifier(n)),XC.createStringLiteral(G(_,t))),0);break;case 276:{const e=G(_.parent||_,t),r=t.bundled?XC.createStringLiteral(e):l.parent.parent.parent.moduleSpecifier,i=PP(l.parent.parent.parent);U(XC.createImportDeclaration(void 0,XC.createImportClause(i,void 0,XC.createNamedImports([XC.createImportSpecifier(!1,n!==u?XC.createIdentifier(u):void 0,XC.createIdentifier(n))])),r,l.parent.parent.parent.attributes),0);break}case 281:const f=l.parent.parent.moduleSpecifier;if(f){const e=l.propertyName;e&&$d(e)&&(u="default")}ee(fc(e.escapedName),f?u:d,f&&Lu(f)?XC.createStringLiteral(f.text):void 0);break;case 277:re(e);break;case 226:case 211:case 212:"default"===e.escapedName||"export="===e.escapedName?re(e):ee(n,d);break;default:return un.failBadSyntaxKind(l,"Unhandled alias declaration kind in symbol serializer!")}}function ee(e,t,n){U(XC.createExportDeclaration(void 0,!1,XC.createNamedExports([XC.createExportSpecifier(!1,e!==t?t:void 0,e)]),n),0)}function re(e){var n;if(4194304&e.flags)return!1;const r=fc(e.escapedName),i="export="===r,o=i||"default"===r,a=e.declarations&&ba(e),s=a&&ja(a,!0);if(s&&u(s.declarations)&&$(s.declarations,(e=>hd(e)===hd(c)))){const n=a&&(pE(a)||cF(a)?mh(a):gh(a)),l=n&&ob(n)?function(e){switch(e.kind){case 80:return e;case 166:do{e=e.left}while(80!==e.kind);return e;case 211:do{if(Zm(e.expression)&&!qN(e.name))return e.name;e=e.expression}while(80!==e.kind);return e}}(n):void 0,_=l&&Ka(l,-1,!0,!0,c);(_||s)&&z(_||s);const u=t.tracker.disableTrackSymbol;if(t.tracker.disableTrackSymbol=!0,o)p.push(XC.createExportAssignment(void 0,i,ne(s,t,-1)));else if(l===n&&l)ee(r,mc(l));else if(n&&pF(n))ee(r,he(s,hc(s)));else{const n=me(r,e);U(XC.createImportEqualsDeclaration(void 0,!1,XC.createIdentifier(n),te(s,t,-1,!1)),0),ee(r,n)}return t.tracker.disableTrackSymbol=u,!0}{const a=me(r,e),c=Sw(S_(ds(e)));if(ie(c,e))H(c,e,a,o?0:32);else{const i=267!==(null==(n=t.enclosingDeclaration)?void 0:n.kind)||98304&e.flags&&!(65536&e.flags)?2:1;U(XC.createVariableStatement(void 0,XC.createVariableDeclarationList([XC.createVariableDeclaration(a,void 0,ue(t,void 0,c,e))],i)),s&&4&s.flags&&"export="===s.escapedName?128:r===a?32:0)}return o?(p.push(XC.createExportAssignment(void 0,i,XC.createIdentifier(a))),!0):r!==a&&(ee(r,a),!0)}}function ie(e,n){var r;const i=hd(t.enclosingDeclaration);return 48&mx(e)&&!$(null==(r=e.symbol)?void 0:r.declarations,v_)&&!u(Kf(e))&&!xc(e)&&!(!u(N(vp(e),Y))&&!u(Rf(e,0)))&&!u(Rf(e,1))&&!ce(n,c)&&!(e.symbol&&$(e.symbol.declarations,(e=>hd(e)!==i)))&&!$(vp(e),(e=>Xu(e.escapedName)))&&!$(vp(e),(e=>$(e.declarations,(e=>hd(e)!==i))))&&v(vp(e),(e=>!(!fs(hc(e),R)||98304&e.flags&&T_(e)!==b_(e))))}function oe(e,n,i){return function(o,a,s){var c,l,_,u,p,f;const m=rx(o),g=!!(2&m);if(a&&2887656&o.flags)return[];if(4194304&o.flags||"constructor"===o.escapedName||s&&Cf(s,o.escapedName)&&WL(Cf(s,o.escapedName))===WL(o)&&(16777216&o.flags)==(16777216&Cf(s,o.escapedName).flags)&&_S(S_(o),Uc(s,o.escapedName)))return[];const h=-1025&m|(a?256:0),y=ae(o,t),v=null==(c=o.declarations)?void 0:c.find(en(cD,u_,VF,sD,cF,HD));if(98304&o.flags&&i){const e=[];if(65536&o.flags){const n=o.declarations&&d(o.declarations,(e=>178===e.kind?e:GD(e)&&tg(e)?d(e.arguments[2].properties,(e=>{const t=Tc(e);if(t&&zN(t)&&"set"===mc(t))return e})):void 0));un.assert(!!n);const i=i_(n)?ig(n).parameters[0]:void 0,a=null==(l=o.declarations)?void 0:l.find(Cu);e.push(r(t,XC.createSetAccessorDeclaration(XC.createModifiersFromModifierFlags(h),y,[XC.createParameterDeclaration(void 0,void 0,i?M(i,I(i),t):"value",void 0,g?void 0:ue(t,a,b_(o),o))],void 0),a??v))}if(32768&o.flags){const n=2&m,i=null==(_=o.declarations)?void 0:_.find(wu);e.push(r(t,XC.createGetAccessorDeclaration(XC.createModifiersFromModifierFlags(h),y,[],n?void 0:ue(t,i,S_(o),o),void 0),i??v))}return e}if(98311&o.flags)return r(t,e(XC.createModifiersFromModifierFlags((WL(o)?8:0)|h),y,16777216&o.flags?XC.createToken(58):void 0,g?void 0:ue(t,null==(u=o.declarations)?void 0:u.find(fD),b_(o),o),void 0),(null==(p=o.declarations)?void 0:p.find(en(cD,VF)))||v);if(8208&o.flags){const i=Rf(S_(o),0);if(2&h)return r(t,e(XC.createModifiersFromModifierFlags((WL(o)?8:0)|h),y,16777216&o.flags?XC.createToken(58):void 0,void 0,void 0),(null==(f=o.declarations)?void 0:f.find(i_))||i[0]&&i[0].declaration||o.declarations&&o.declarations[0]);const a=[];for(const e of i){const i=S(e,n,t,{name:y,questionToken:16777216&o.flags?XC.createToken(58):void 0,modifiers:h?XC.createModifiersFromModifierFlags(h):void 0}),s=e.declaration&&dg(e.declaration.parent)?e.declaration.parent:e.declaration;a.push(r(t,i,s))}return a}return un.fail(`Unhandled class member kind! ${o.__debugFlags||o.flags}`)}}function le(e,n,i,o){const a=Rf(n,e);if(1===e){if(!i&&v(a,(e=>0===u(e.parameters))))return[];if(i){const e=Rf(i,1);if(!u(e)&&v(a,(e=>0===u(e.parameters))))return[];if(e.length===a.length){let t=!1;for(let n=0;n_(e,t))),i=ne(e.target.symbol,t,788968)):e.symbol&&Ws(e.symbol,c,n)&&(i=ne(e.symbol,t,788968)),i)return XC.createExpressionWithTypeArguments(i,r)}function pe(e){return de(e,788968)||(e.symbol?XC.createExpressionWithTypeArguments(ne(e.symbol,t,788968),void 0):void 0)}function me(e,n){var r,i;const o=n?RB(n):void 0;if(o&&t.remappedSymbolNames.has(o))return t.remappedSymbolNames.get(o);n&&(e=ge(n,e));let a=0;const s=e;for(;null==(r=t.usedSymbolNames)?void 0:r.has(e);)a++,e=`${s}_${a}`;return null==(i=t.usedSymbolNames)||i.add(e),o&&t.remappedSymbolNames.set(o,e),e}function ge(e,n){if("default"===n||"__class"===n||"__function"===n){const r=s(t);t.flags|=16777216;const i=Ic(e,t);r(),n=i.length>0&&Jm(i.charCodeAt(0))?Dy(i):i}return"default"===n?n="_default":"export="===n&&(n="_exports"),fs(n,R)&&!Fh(n)?n:"_"+n.replace(/[^a-z0-9]/gi,"_")}function he(e,n){const r=RB(e);return t.remappedSymbolNames.has(r)?t.remappedSymbolNames.get(r):(n=ge(e,n),t.remappedSymbolNames.set(r,n),n)}}(e,t))),symbolToNode:(e,t,n,r,i,a)=>o(n,r,i,a,(n=>function(e,t,n){if(1&t.internalFlags){if(e.valueDeclaration){const t=Tc(e.valueDeclaration);if(t&&rD(t))return t}const r=oa(e).nameType;if(r&&9216&r.flags)return t.enclosingDeclaration=r.symbol.valueDeclaration,XC.createComputedPropertyName(ne(r.symbol,t,n))}return ne(e,t,n)}(e,n,t)))};function n(e,t,n){const r=Sc(t);if(!e.mapper)return r;const i=tS(r,e.mapper);return n&&i!==r?void 0:i}function r(e,t,n){if(Zh(t)&&16&t.flags&&e.enclosingFile&&e.enclosingFile===hd(lc(t))||(t=XC.cloneNode(t)),t===n)return t;if(!n)return t;let r=t.original;for(;r&&r!==n;)r=r.original;return r||YC(t,n),e.enclosingFile&&e.enclosingFile===hd(lc(n))?nI(t,n):t}function o(t,n,r,i,o){const a=(null==i?void 0:i.trackSymbol)?i.moduleResolverHost:4&(r||0)?function(e){return{getCommonSourceDirectory:e.getCommonSourceDirectory?()=>e.getCommonSourceDirectory():()=>"",getCurrentDirectory:()=>e.getCurrentDirectory(),getSymlinkCache:We(e,e.getSymlinkCache),getPackageJsonInfoCache:()=>{var t;return null==(t=e.getPackageJsonInfoCache)?void 0:t.call(e)},useCaseSensitiveFileNames:()=>e.useCaseSensitiveFileNames(),redirectTargetsMap:e.redirectTargetsMap,getProjectReferenceRedirect:t=>e.getProjectReferenceRedirect(t),isSourceOfProjectReferenceRedirect:t=>e.isSourceOfProjectReferenceRedirect(t),fileExists:t=>e.fileExists(t),getFileIncludeReasons:()=>e.getFileIncludeReasons(),readFile:e.readFile?t=>e.readFile(t):void 0,getDefaultResolutionModeForFile:t=>e.getDefaultResolutionModeForFile(t),getModeForResolutionAtIndex:(t,n)=>e.getModeForResolutionAtIndex(t,n),getGlobalTypingsCacheLocation:We(e,e.getGlobalTypingsCacheLocation)}}(e):void 0,s={enclosingDeclaration:t,enclosingFile:t&&hd(t),flags:n||0,internalFlags:r||0,tracker:void 0,encounteredError:!1,suppressReportInferenceFallback:!1,reportedDiagnostic:!1,visitedTypes:void 0,symbolDepth:void 0,inferTypeParameters:void 0,approximateLength:0,trackedSymbols:void 0,bundled:!!j.outFile&&!!t&&Qp(hd(t)),truncating:!1,usedSymbolNames:void 0,remappedSymbolNames:void 0,remappedSymbolReferences:void 0,reverseMappedStack:void 0,mustCreateTypeParameterSymbolList:!0,typeParameterSymbolList:void 0,mustCreateTypeParametersNamesLookups:!0,typeParameterNames:void 0,typeParameterNamesByText:void 0,typeParameterNamesByTextNextNameCount:void 0,enclosingSymbolTypes:new Map,mapper:void 0};s.tracker=new WB(s,i,a);const c=o(s);return s.truncating&&1&s.flags&&s.tracker.reportTruncationError(),s.encounteredError?void 0:c}function a(e,t,n){const r=RB(t),i=e.enclosingSymbolTypes.get(r);return e.enclosingSymbolTypes.set(r,n),function(){i?e.enclosingSymbolTypes.set(r,i):e.enclosingSymbolTypes.delete(r)}}function s(e){const t=e.flags,n=e.internalFlags;return function(){e.flags=t,e.internalFlags=n}}function c(e){return e.truncating?e.truncating:e.truncating=e.approximateLength>(1&e.flags?Vu:Uu)}function _(e,o){const a=s(o),f=function(e,o){var a,f;t&&t.throwIfCancellationRequested&&t.throwIfCancellationRequested();const m=8388608&o.flags;if(o.flags&=-8388609,!e)return 262144&o.flags?(o.approximateLength+=3,XC.createKeywordTypeNode(133)):void(o.encounteredError=!0);if(536870912&o.flags||(e=yf(e)),1&e.flags)return e.aliasSymbol?XC.createTypeReferenceNode(Q(e.aliasSymbol),y(e.aliasTypeArguments,o)):e===Pt?gw(XC.createKeywordTypeNode(133),3,"unresolved"):(o.approximateLength+=3,XC.createKeywordTypeNode(e===It?141:133));if(2&e.flags)return XC.createKeywordTypeNode(159);if(4&e.flags)return o.approximateLength+=6,XC.createKeywordTypeNode(154);if(8&e.flags)return o.approximateLength+=6,XC.createKeywordTypeNode(150);if(64&e.flags)return o.approximateLength+=6,XC.createKeywordTypeNode(163);if(16&e.flags&&!e.aliasSymbol)return o.approximateLength+=7,XC.createKeywordTypeNode(136);if(1056&e.flags){if(8&e.symbol.flags){const t=hs(e.symbol),n=Y(t,o,788968);if(fu(t)===e)return n;const r=hc(e.symbol);return fs(r,1)?O(n,XC.createTypeReferenceNode(r,void 0)):BD(n)?(n.isTypeOf=!0,XC.createIndexedAccessTypeNode(n,XC.createLiteralTypeNode(XC.createStringLiteral(r)))):vD(n)?XC.createIndexedAccessTypeNode(XC.createTypeQueryNode(n.typeName),XC.createLiteralTypeNode(XC.createStringLiteral(r))):un.fail("Unhandled type node kind returned from `symbolToTypeNode`.")}return Y(e.symbol,o,788968)}if(128&e.flags)return o.approximateLength+=e.value.length+2,XC.createLiteralTypeNode(nw(XC.createStringLiteral(e.value,!!(268435456&o.flags)),16777216));if(256&e.flags){const t=e.value;return o.approximateLength+=(""+t).length,XC.createLiteralTypeNode(t<0?XC.createPrefixUnaryExpression(41,XC.createNumericLiteral(-t)):XC.createNumericLiteral(t))}if(2048&e.flags)return o.approximateLength+=fT(e.value).length+1,XC.createLiteralTypeNode(XC.createBigIntLiteral(e.value));if(512&e.flags)return o.approximateLength+=e.intrinsicName.length,XC.createLiteralTypeNode("true"===e.intrinsicName?XC.createTrue():XC.createFalse());if(8192&e.flags){if(!(1048576&o.flags)){if(Vs(e.symbol,o.enclosingDeclaration))return o.approximateLength+=6,Y(e.symbol,o,111551);o.tracker.reportInaccessibleUniqueSymbolError&&o.tracker.reportInaccessibleUniqueSymbolError()}return o.approximateLength+=13,XC.createTypeOperatorNode(158,XC.createKeywordTypeNode(155))}if(16384&e.flags)return o.approximateLength+=4,XC.createKeywordTypeNode(116);if(32768&e.flags)return o.approximateLength+=9,XC.createKeywordTypeNode(157);if(65536&e.flags)return o.approximateLength+=4,XC.createLiteralTypeNode(XC.createNull());if(131072&e.flags)return o.approximateLength+=5,XC.createKeywordTypeNode(146);if(4096&e.flags)return o.approximateLength+=6,XC.createKeywordTypeNode(155);if(67108864&e.flags)return o.approximateLength+=6,XC.createKeywordTypeNode(151);if(JT(e))return 4194304&o.flags&&(o.encounteredError||32768&o.flags||(o.encounteredError=!0),null==(f=(a=o.tracker).reportInaccessibleThisError)||f.call(a)),o.approximateLength+=4,XC.createThisTypeNode();if(!m&&e.aliasSymbol&&(16384&o.flags||0===Ks(e.aliasSymbol,o.enclosingDeclaration,788968,!1,!0).accessibility)){const t=y(e.aliasTypeArguments,o);return!Ls(e.aliasSymbol.escapedName)||32&e.aliasSymbol.flags?1===u(t)&&e.aliasSymbol===Zn.symbol?XC.createArrayTypeNode(t[0]):Y(e.aliasSymbol,o,788968,t):XC.createTypeReferenceNode(XC.createIdentifier(""),t)}const h=mx(e);if(4&h)return un.assert(!!(524288&e.flags)),e.node?F(e,I):I(e);if(262144&e.flags||3&h){if(262144&e.flags&&T(o.inferTypeParameters,e)){let t;o.approximateLength+=hc(e.symbol).length+6;const n=xp(e);if(n){const r=wh(e,!0);r&&_S(n,r)||(o.approximateLength+=9,t=n&&_(n,o))}return XC.createInferTypeNode(D(e,o,t))}if(4&o.flags&&262144&e.flags){const t=ee(e,o);return o.approximateLength+=mc(t).length,XC.createTypeReferenceNode(XC.createIdentifier(mc(t)),void 0)}if(e.symbol)return Y(e.symbol,o,788968);const t=(e===qn||e===Un)&&i&&i.symbol?(e===Un?"sub-":"super-")+hc(i.symbol):"?";return XC.createTypeReferenceNode(XC.createIdentifier(t),void 0)}if(1048576&e.flags&&e.origin&&(e=e.origin),3145728&e.flags){const t=1048576&e.flags?function(e){const t=[];let n=0;for(let r=0;r0?1048576&e.flags?XC.createUnionTypeNode(n):XC.createIntersectionTypeNode(n):void(o.encounteredError||262144&o.flags||(o.encounteredError=!0))}if(48&h)return un.assert(!!(524288&e.flags)),C(e);if(4194304&e.flags){const t=e.type;o.approximateLength+=6;const n=_(t,o);return XC.createTypeOperatorNode(143,n)}if(134217728&e.flags){const t=e.texts,n=e.types,r=XC.createTemplateHead(t[0]),i=XC.createNodeArray(E(n,((e,r)=>XC.createTemplateLiteralTypeSpan(_(e,o),(rfunction(e){const t=_(e.checkType,o);if(o.approximateLength+=15,4&o.flags&&e.root.isDistributive&&!(262144&e.checkType.flags)){const r=Os(Wo(262144,"T")),i=ee(r,o),a=XC.createTypeReferenceNode(i);o.approximateLength+=37;const s=Bk(e.root.checkType,r,e.mapper),c=o.inferTypeParameters;o.inferTypeParameters=e.root.inferTypeParameters;const l=_(tS(e.root.extendsType,s),o);o.inferTypeParameters=c;const u=v(tS(n(o,e.root.node.trueType),s)),d=v(tS(n(o,e.root.node.falseType),s));return XC.createConditionalTypeNode(t,XC.createInferTypeNode(XC.createTypeParameterDeclaration(void 0,XC.cloneNode(a.typeName))),XC.createConditionalTypeNode(XC.createTypeReferenceNode(XC.cloneNode(i)),_(e.checkType,o),XC.createConditionalTypeNode(a,l,u,d),XC.createKeywordTypeNode(146)),XC.createKeywordTypeNode(146))}const r=o.inferTypeParameters;o.inferTypeParameters=e.root.inferTypeParameters;const i=_(e.extendsType,o);o.inferTypeParameters=r;const a=v(Px(e)),s=v(Ax(e));return XC.createConditionalTypeNode(t,i,a,s)}(e)));if(33554432&e.flags){const t=_(e.baseType,o),n=dy(e)&&Ny("NoInfer",!1);return n?Y(n,o,788968,[t]):t}return un.fail("Should be unreachable.");function v(e){var t,n,r;return 1048576&e.flags?(null==(t=o.visitedTypes)?void 0:t.has(Kv(e)))?(131072&o.flags||(o.encounteredError=!0,null==(r=null==(n=o.tracker)?void 0:n.reportCyclicStructureError)||r.call(n)),p(o)):F(e,(e=>_(e,o))):_(e,o)}function b(e){return!!Xk(e)}function k(e){return!!e.target&&b(e.target)&&!b(e)}function C(e){var t,r;const i=e.id,a=e.symbol;if(a){if(8388608&mx(e)){const r=e.node;if(kD(r)&&n(o,r)===e){const e=ke.tryReuseExistingTypeNode(o,r);if(e)return e}return(null==(t=o.visitedTypes)?void 0:t.has(i))?p(o):F(e,P)}const s=xc(e)?788968:111551;if(qO(a.valueDeclaration))return Y(a,o,s);if(32&a.flags&&!s_(a)&&(!(a.valueDeclaration&&__(a.valueDeclaration)&&2048&o.flags)||HF(a.valueDeclaration)&&0===Hs(a,o.enclosingDeclaration,s,!1).accessibility)||896&a.flags||function(){var e;const t=!!(8192&a.flags)&&$(a.declarations,(e=>Nv(e))),n=!!(16&a.flags)&&(a.parent||d(a.declarations,(e=>307===e.parent.kind||268===e.parent.kind)));if(t||n)return(!!(4096&o.flags)||(null==(e=o.visitedTypes)?void 0:e.has(i)))&&(!(8&o.flags)||Vs(a,o.enclosingDeclaration))}())return Y(a,o,s);if(null==(r=o.visitedTypes)?void 0:r.has(i)){const t=function(e){if(e.symbol&&2048&e.symbol.flags&&e.symbol.declarations){const t=th(e.symbol.declarations[0].parent);if(GF(t))return ps(t)}}(e);return t?Y(t,o,788968):p(o)}return F(e,P)}return P(e)}function F(e,t){var n,i,a;const s=e.id,c=16&mx(e)&&e.symbol&&32&e.symbol.flags,l=4&mx(e)&&e.node?"N"+jB(e.node):16777216&e.flags?"N"+jB(e.root.node):e.symbol?(c?"+":"")+RB(e.symbol):void 0;o.visitedTypes||(o.visitedTypes=new Set),l&&!o.symbolDepth&&(o.symbolDepth=new Map);const _=o.enclosingDeclaration&&aa(o.enclosingDeclaration),u=`${Kv(e)}|${o.flags}|${o.internalFlags}`;_&&(_.serializedTypes||(_.serializedTypes=new Map));const d=null==(n=null==_?void 0:_.serializedTypes)?void 0:n.get(u);if(d)return null==(i=d.trackedSymbols)||i.forEach((([e,t,n])=>o.tracker.trackSymbol(e,t,n))),d.truncating&&(o.truncating=!0),o.approximateLength+=d.addedLength,function e(t){return Zh(t)||dc(t)!==t?r(o,XC.cloneNode(nJ(t,e,void 0,v,e)),t):t}(d.node);let f;if(l){if(f=o.symbolDepth.get(l)||0,f>10)return p(o);o.symbolDepth.set(l,f+1)}o.visitedTypes.add(s);const m=o.trackedSymbols;o.trackedSymbols=void 0;const g=o.approximateLength,h=t(e),y=o.approximateLength-g;return o.reportedDiagnostic||o.encounteredError||null==(a=null==_?void 0:_.serializedTypes)||a.set(u,{node:h,truncating:o.truncating,addedLength:y,trackedSymbols:o.trackedSymbols}),o.visitedTypes.delete(s),l&&o.symbolDepth.set(l,f),o.trackedSymbols=m,h;function v(e,t,n,r,i){return e&&0===e.length?nI(XC.createNodeArray(void 0,e.hasTrailingComma),e):HB(e,t,n,r,i)}}function P(e){if(rp(e)||e.containsError)return function(e){var t;un.assert(!!(524288&e.flags));const r=e.declaration.readonlyToken?XC.createToken(e.declaration.readonlyToken.kind):void 0,i=e.declaration.questionToken?XC.createToken(e.declaration.questionToken.kind):void 0;let a,s;const c=!Qd(e)&&!(2&Yd(e).flags)&&4&o.flags&&!(262144&qd(e).flags&&4194304&(null==(t=xp(qd(e)))?void 0:t.flags));if(Qd(e)){if(k(e)&&4&o.flags){const e=ee(Os(Wo(262144,"T")),o);s=XC.createTypeReferenceNode(e)}a=XC.createTypeOperatorNode(143,s||_(Yd(e),o))}else if(c){const e=ee(Os(Wo(262144,"T")),o);s=XC.createTypeReferenceNode(e),a=s}else a=_(qd(e),o);const l=D(Jd(e),o,a),u=e.declaration.nameType?_(Ud(e),o):void 0,d=_(cw(Hd(e),!!(4&ep(e))),o),p=XC.createMappedTypeNode(r,l,u,i,d,void 0);o.approximateLength+=10;const f=nw(p,1);if(k(e)&&4&o.flags){const t=tS(xp(n(o,e.declaration.typeParameter.constraint.type))||Ot,e.mapper);return XC.createConditionalTypeNode(_(Yd(e),o),XC.createInferTypeNode(XC.createTypeParameterDeclaration(void 0,XC.cloneNode(s.typeName),2&t.flags?void 0:_(t,o))),f,XC.createKeywordTypeNode(146))}return c?XC.createConditionalTypeNode(_(qd(e),o),XC.createInferTypeNode(XC.createTypeParameterDeclaration(void 0,XC.cloneNode(s.typeName),XC.createTypeOperatorNode(143,_(Yd(e),o)))),f,XC.createKeywordTypeNode(146)):f}(e);const t=pp(e);if(!t.properties.length&&!t.indexInfos.length){if(!t.callSignatures.length&&!t.constructSignatures.length)return o.approximateLength+=2,nw(XC.createTypeLiteralNode(void 0),1);if(1===t.callSignatures.length&&!t.constructSignatures.length)return S(t.callSignatures[0],184,o);if(1===t.constructSignatures.length&&!t.callSignatures.length)return S(t.constructSignatures[0],185,o)}const r=N(t.constructSignatures,(e=>!!(4&e.flags)));if($(r)){const e=E(r,(e=>Yg(e)));return t.callSignatures.length+(t.constructSignatures.length-r.length)+t.indexInfos.length+(2048&o.flags?w(t.properties,(e=>!(4194304&e.flags))):u(t.properties))&&e.push(function(e){if(0===e.constructSignatures.length)return e;if(e.objectTypeWithoutAbstractConstructSignatures)return e.objectTypeWithoutAbstractConstructSignatures;const t=N(e.constructSignatures,(e=>!(4&e.flags)));if(e.constructSignatures===t)return e;const n=Bs(e.symbol,e.members,e.callSignatures,$(t)?t:l,e.indexInfos);return e.objectTypeWithoutAbstractConstructSignatures=n,n.objectTypeWithoutAbstractConstructSignatures=n,n}(t)),_(Fb(e),o)}const i=s(o);o.flags|=4194304;const a=function(e){if(c(o))return 1&o.flags?[vw(XC.createNotEmittedTypeElement(),3,"elided")]:[XC.createPropertySignature(void 0,"...",void 0,void 0)];const t=[];for(const n of e.callSignatures)t.push(S(n,179,o));for(const n of e.constructSignatures)4&n.flags||t.push(S(n,180,o));for(const n of e.indexInfos)t.push(x(n,o,1024&e.objectFlags?p(o):void 0));const n=e.properties;if(!n)return t;let r=0;for(const e of n){if(r++,2048&o.flags){if(4194304&e.flags)continue;6&rx(e)&&o.tracker.reportPrivateInBaseOfClassExpression&&o.tracker.reportPrivateInBaseOfClassExpression(fc(e.escapedName))}if(c(o)&&r+20){let n=0;if(e.target.typeParameters&&(n=Math.min(e.target.typeParameters.length,t.length),(w_(e,Ky(!1))||w_(e,Xy(!1))||w_(e,$y(!1))||w_(e,Hy(!1)))&&(!e.node||!vD(e.node)||!e.node.typeArguments||e.node.typeArguments.length0;){const r=t[n-1],i=of(e.target.typeParameters[n-1]);if(!i||!_S(r,i))break;n--}i=y(t.slice(a,n),o)}const c=s(o);o.flags|=16;const l=Y(e.symbol,o,788968,i);return c(),r?O(r,l):l}}if(t=A(t,((t,n)=>cw(t,!!(2&e.target.elementFlags[n])))),t.length>0){const n=ey(e),r=y(t.slice(0,n),o);if(r){const{labeledElementDeclarations:t}=e.target;for(let n=0;n!(32768&e.flags))),0);for(const i of r){const r=S(i,173,t,{name:s,questionToken:c});n.push(d(r,i.declaration||e.valueDeclaration))}if(r.length||!c)return}let l;m(e,t)?l=p(t):(i&&(t.reverseMappedStack||(t.reverseMappedStack=[]),t.reverseMappedStack.push(e)),l=o?ue(t,void 0,o,e):XC.createKeywordTypeNode(133),i&&t.reverseMappedStack.pop());const _=WL(e)?[XC.createToken(148)]:void 0;_&&(t.approximateLength+=9);const u=XC.createPropertySignature(_,s,c,l);function d(n,r){var i;const o=null==(i=e.declarations)?void 0:i.find((e=>348===e.kind));if(o){const e=cl(o.comment);e&&mw(n,[{kind:3,text:"*\n * "+e.replace(/\n/g,"\n * ")+"\n ",pos:-1,end:-1,hasTrailingNewLine:!0}])}else r&&h(t,n,r);return n}n.push(d(u,e.valueDeclaration))}function h(e,t,n){return e.enclosingFile&&e.enclosingFile===hd(n)?pw(t,n):t}function y(e,t,n){if($(e)){if(c(t)){if(!n)return[1&t.flags?gw(XC.createKeywordTypeNode(133),3,"elided"):XC.createTypeReferenceNode("...",void 0)];if(e.length>2)return[_(e[0],t),1&t.flags?gw(XC.createKeywordTypeNode(133),3,`... ${e.length-2} more elided ...`):XC.createTypeReferenceNode(`... ${e.length-2} more ...`,void 0),_(e[e.length-1],t)]}const r=64&t.flags?void 0:$e(),i=[];let o=0;for(const n of e){if(o++,c(t)&&o+2{if(!bT(e,(([e],[t])=>function(e,t){return e===t||!!e.symbol&&e.symbol===t.symbol||!!e.aliasSymbol&&e.aliasSymbol===t.aliasSymbol}(e,t))))for(const[n,r]of e)i[r]=_(n,t)})),e()}return i}}function x(e,t,n){const r=Pp(e)||"x",i=_(e.keyType,t),o=XC.createParameterDeclaration(void 0,void 0,r,void 0,i,void 0);return n||(n=_(e.type||wt,t)),e.type||2097152&t.flags||(t.encounteredError=!0),t.approximateLength+=r.length+4,XC.createIndexSignature(e.isReadonly?[XC.createToken(148)]:void 0,[o],n)}function S(e,t,r,i){var o;let c,l;const u=kd(e,!0)[0],d=C(r,e.declaration,u,e.typeParameters,e.parameters,e.mapper);r.approximateLength+=3,32&r.flags&&e.target&&e.mapper&&e.target.typeParameters?l=e.target.typeParameters.map((t=>_(tS(t,e.mapper),r))):c=e.typeParameters&&e.typeParameters.map((e=>F(e,r)));const p=s(r);r.flags&=-257;const f=($(u,(e=>e!==u[u.length-1]&&!!(32768&nx(e))))?e.parameters:u).map((e=>L(e,r,176===t))),m=33554432&r.flags?void 0:function(e,t){if(e.thisParameter)return L(e.thisParameter,t);if(e.declaration&&Fm(e.declaration)){const r=Xc(e.declaration);if(r&&r.typeExpression)return XC.createParameterDeclaration(void 0,void 0,"this",void 0,_(n(t,r.typeExpression),t))}}(e,r);m&&f.unshift(m),p();const g=function(e,t){const n=256&e.flags,r=s(e);let i;n&&(e.flags&=-257);const o=Tg(t);if(!n||!Wc(o)){if(t.declaration&&!Zh(t.declaration)){const n=ps(t.declaration),r=a(e,n,o);i=ke.serializeReturnTypeForSignature(t.declaration,n,e),r()}i||(i=pe(e,t,o))}return i||n||(i=XC.createKeywordTypeNode(133)),r(),i}(r,e);let h=null==i?void 0:i.modifiers;if(185===t&&4&e.flags){const e=Wv(h);h=XC.createModifiersFromModifierFlags(64|e)}const y=179===t?XC.createCallSignature(c,f,g):180===t?XC.createConstructSignature(c,f,g):173===t?XC.createMethodSignature(h,(null==i?void 0:i.name)??XC.createIdentifier(""),null==i?void 0:i.questionToken,c,f,g):174===t?XC.createMethodDeclaration(h,void 0,(null==i?void 0:i.name)??XC.createIdentifier(""),void 0,c,f,g,void 0):176===t?XC.createConstructorDeclaration(h,f,void 0):177===t?XC.createGetAccessorDeclaration(h,(null==i?void 0:i.name)??XC.createIdentifier(""),f,g,void 0):178===t?XC.createSetAccessorDeclaration(h,(null==i?void 0:i.name)??XC.createIdentifier(""),f,void 0):181===t?XC.createIndexSignature(h,f,g):317===t?XC.createJSDocFunctionType(f,g):184===t?XC.createFunctionTypeNode(c,f,g??XC.createTypeReferenceNode(XC.createIdentifier(""))):185===t?XC.createConstructorTypeNode(h,c,f,g??XC.createTypeReferenceNode(XC.createIdentifier(""))):262===t?XC.createFunctionDeclaration(h,void 0,(null==i?void 0:i.name)?nt(i.name,zN):XC.createIdentifier(""),c,f,g,void 0):218===t?XC.createFunctionExpression(h,void 0,(null==i?void 0:i.name)?nt(i.name,zN):XC.createIdentifier(""),c,f,g,XC.createBlock([])):219===t?XC.createArrowFunction(h,c,f,g,void 0,XC.createBlock([])):un.assertNever(t);return l&&(y.typeArguments=XC.createNodeArray(l)),323===(null==(o=e.declaration)?void 0:o.kind)&&339===e.declaration.parent.kind&&gw(y,3,Kd(e.declaration.parent.parent,!0).slice(2,-2).split(/\r\n|\n|\r/).map((e=>e.replace(/^\s+/," "))).join("\n"),!0),null==d||d(),y}function C(e,t,n,r,i,o){const a=se(e);let s,c;const _=e.enclosingDeclaration,u=e.mapper;if(o&&(e.mapper=o),e.enclosingDeclaration&&t){let t=function(t,n){let r;un.assert(e.enclosingDeclaration),aa(e.enclosingDeclaration).fakeScopeForSignatureDeclaration===t?r=e.enclosingDeclaration:e.enclosingDeclaration.parent&&aa(e.enclosingDeclaration.parent).fakeScopeForSignatureDeclaration===t&&(r=e.enclosingDeclaration.parent),un.assertOptionalNode(r,CF);const i=(null==r?void 0:r.locals)??Hu();let o,a;if(n(((e,t)=>{if(r){const t=i.get(e);t?a=ie(a,{name:e,oldSymbol:t}):o=ie(o,e)}i.set(e,t)})),r)return function(){d(o,(e=>i.delete(e))),d(a,(e=>i.set(e.name,e.oldSymbol)))};{const n=XC.createBlock(l);aa(n).fakeScopeForSignatureDeclaration=t,n.locals=i,wT(n,e.enclosingDeclaration),e.enclosingDeclaration=n}};s=$(n)?t("params",(e=>{if(n)for(let t=0;toD(t)&&x_(t.name)?(function t(n){d(n.elements,(n=>{switch(n.kind){case 232:return;case 208:return function(n){if(x_(n.name))return t(n.name);const r=ps(n);e(r.escapedName,r)}(n);default:return un.assertNever(n)}}))}(t.name),!0):void 0))||e(r.escapedName,r)}})):void 0,4&e.flags&&$(r)&&(c=t("typeParams",(t=>{for(const n of r??l)t(ee(n,e).escapedText,n.symbol)})))}return()=>{null==s||s(),null==c||c(),a(),e.enclosingDeclaration=_,e.mapper=u}}function D(e,t,n){const r=s(t);t.flags&=-513;const i=XC.createModifiersFromModifierFlags(xT(e)),o=ee(e,t),a=of(e),c=a&&_(a,t);return r(),XC.createTypeParameterDeclaration(i,o,n,c)}function F(e,t,r=xp(e)){const i=r&&function(e,t,r){return t&&n(r,t)===e&&ke.tryReuseExistingTypeNode(r,t)||_(e,r)}(r,Ch(e),t);return D(e,t,i)}function P(e,t){const n=2===e.kind||3===e.kind?XC.createToken(131):void 0,r=1===e.kind||3===e.kind?nw(XC.createIdentifier(e.parameterName),16777216):XC.createThisTypeNode(),i=e.type&&_(e.type,t);return XC.createTypePredicateNode(n,r,i)}function I(e){return Wu(e,169)||(Ku(e)?void 0:Wu(e,341))}function L(e,t,n){const r=I(e),i=ue(t,r,S_(e),e),o=!(8192&t.flags)&&n&&r&&rI(r)?E(Nc(r),XC.cloneNode):void 0,a=r&&Mu(r)||32768&nx(e)?XC.createToken(26):void 0,s=M(e,r,t),c=r&&zm(r)||16384&nx(e)?XC.createToken(58):void 0,l=XC.createParameterDeclaration(o,a,s,c,i,void 0);return t.approximateLength+=hc(e).length+3,l}function M(e,t,n){return t&&t.name?80===t.name.kind?nw(XC.cloneNode(t.name),16777216):166===t.name.kind?nw(XC.cloneNode(t.name.right),16777216):function e(t){n.tracker.canTrackSymbol&&rD(t)&&Bu(t)&&J(t.expression,n.enclosingDeclaration,n);let r=nJ(t,e,void 0,void 0,e);return VD(r)&&(r=XC.updateBindingElement(r,r.dotDotDotToken,r.propertyName,r.name,void 0)),Zh(r)||(r=XC.cloneNode(r)),nw(r,16777217)}(t.name):hc(e)}function J(e,t,n){if(!n.tracker.canTrackSymbol)return;const r=ab(e),i=Ue(r,r.escapedText,1160127,void 0,!0);i&&n.tracker.trackSymbol(i,t,111551)}function z(e,t,n,r){return t.tracker.trackSymbol(e,t.enclosingDeclaration,n),q(e,t,n,r)}function q(e,t,n,r){let i;return 262144&e.flags||!(t.enclosingDeclaration||64&t.flags)||4&t.internalFlags?i=[e]:(i=un.checkDefined(function e(n,i,o){let a,s=qs(n,t.enclosingDeclaration,i,!!(128&t.flags));if(!s||Us(s[0],t.enclosingDeclaration,1===s.length?i:zs(i))){const r=vs(s?s[0]:n,t.enclosingDeclaration,i);if(u(r)){a=r.map((e=>$(e.declarations,Qs)?G(e,t):void 0));const o=r.map(((e,t)=>t));o.sort((function(e,t){const n=a[e],r=a[t];if(n&&r){const e=vo(r);return vo(n)===e?tB(n)-tB(r):e?-1:1}return 0}));const c=o.map((e=>r[e]));for(const t of c){const r=e(t,zs(i),!1);if(r){if(t.exports&&t.exports.get("export=")&&ks(t.exports.get("export="),n)){s=r;break}s=r.concat(s||[xs(t,n)||n]);break}}}}if(s)return s;if(o||!(6144&n.flags)){if(!o&&!r&&d(n.declarations,Qs))return;return[n]}}(e,n,!0)),un.assert(i&&i.length>0)),i}function U(e,t){let n;return 524384&VM(e).flags&&(n=XC.createNodeArray(E(M_(e),(e=>F(e,t))))),n}function V(e,t,n){var r;un.assert(e&&0<=t&&tCk(e,o.links.mapper))),n)}else a=U(i,n)}return a}function H(e){return jD(e.objectType)?H(e.objectType):e}function G(t,n,r){let i=Wu(t,307);if(!i){const e=f(t.declarations,(e=>bs(e,t)));e&&(i=Wu(e,307))}if(i&&void 0!==i.moduleName)return i.moduleName;if(!i&&kB.test(t.escapedName))return t.escapedName.substring(1,t.escapedName.length-1);if(!n.enclosingFile||!n.tracker.moduleResolverHost)return kB.test(t.escapedName)?t.escapedName.substring(1,t.escapedName.length-1):hd(fp(t)).fileName;const o=lc(n.enclosingDeclaration),a=gg(o)?hg(o):void 0,s=n.enclosingFile,c=r||a&&e.getModeForUsageLocation(s,a)||s&&e.getDefaultResolutionModeForFile(s),l=_R(s.path,c),_=oa(t);let u=_.specifierCache&&_.specifierCache.get(l);if(!u){const e=!!j.outFile,{moduleResolverHost:i}=n.tracker,o=e?{...j,baseUrl:i.getCommonSourceDirectory()}:j;u=ge(GM(t,He,o,s,i,{importModuleSpecifierPreference:e?"non-relative":"project-relative",importModuleSpecifierEnding:e?"minimal":99===c?"js":void 0},{overrideImportMode:r})),_.specifierCache??(_.specifierCache=new Map),_.specifierCache.set(l,u)}return u}function Q(e){const t=XC.createIdentifier(fc(e.escapedName));return e.parent?XC.createQualifiedName(Q(e.parent),t):t}function Y(e,t,n,r){const i=z(e,t,n,!(16384&t.flags)),o=111551===n;if($(i[0].declarations,Qs)){const e=i.length>1?s(i,i.length-1,1):void 0,n=r||V(i,0,t),a=hd(lc(t.enclosingDeclaration)),c=yd(i[0]);let l,_;if(3!==vk(j)&&99!==vk(j)||99===(null==c?void 0:c.impliedNodeFormat)&&c.impliedNodeFormat!==(null==a?void 0:a.impliedNodeFormat)&&(l=G(i[0],t,99),_=XC.createImportAttributes(XC.createNodeArray([XC.createImportAttribute(XC.createStringLiteral("resolution-mode"),XC.createStringLiteral("import"))]))),l||(l=G(i[0],t)),!(67108864&t.flags)&&1!==vk(j)&&l.includes("/node_modules/")){const e=l;if(3===vk(j)||99===vk(j)){const n=99===(null==a?void 0:a.impliedNodeFormat)?1:99;l=G(i[0],t,n),l.includes("/node_modules/")?l=e:_=XC.createImportAttributes(XC.createNodeArray([XC.createImportAttribute(XC.createStringLiteral("resolution-mode"),XC.createStringLiteral(99===n?"import":"require"))]))}_||(t.encounteredError=!0,t.tracker.reportLikelyUnsafeImportRequiredError&&t.tracker.reportLikelyUnsafeImportRequiredError(e))}const u=XC.createLiteralTypeNode(XC.createStringLiteral(l));if(t.approximateLength+=l.length+10,!e||Zl(e))return e&&Iw(zN(e)?e:e.right,void 0),XC.createImportTypeNode(u,_,e,n,o);{const t=H(e),r=t.objectType.typeName;return XC.createIndexedAccessTypeNode(XC.createImportTypeNode(u,_,r,n,o),t.indexType)}}const a=s(i,i.length-1,0);if(jD(a))return a;if(o)return XC.createTypeQueryNode(a);{const e=zN(a)?a:a.right,t=Ow(e);return Iw(e,void 0),XC.createTypeReferenceNode(a,t)}function s(e,n,i){const o=n===e.length-1?r:V(e,n,t),a=e[n],c=e[n-1];let l;if(0===n?(t.flags|=16777216,l=Ic(a,t),t.approximateLength+=(l?l.length:0)+1,t.flags^=16777216):c&&cs(c)&&td(cs(c),((e,t)=>{if(ks(e,a)&&!Xu(t)&&"export="!==t)return l=fc(t),!0})),void 0===l){const r=f(a.declarations,Tc);if(r&&rD(r)&&Zl(r.expression)){const t=s(e,n-1,i);return Zl(t)?XC.createIndexedAccessTypeNode(XC.createParenthesizedType(XC.createTypeQueryNode(t)),XC.createTypeQueryNode(r.expression)):t}l=Ic(a,t)}if(t.approximateLength+=l.length+1,!(16&t.flags)&&c&&sd(c)&&sd(c).get(a.escapedName)&&ks(sd(c).get(a.escapedName),a)){const t=s(e,n-1,i);return jD(t)?XC.createIndexedAccessTypeNode(t,XC.createLiteralTypeNode(XC.createStringLiteral(l))):XC.createIndexedAccessTypeNode(XC.createTypeReferenceNode(t,o),XC.createLiteralTypeNode(XC.createStringLiteral(l)))}const _=nw(XC.createIdentifier(l),16777216);if(o&&Iw(_,XC.createNodeArray(o)),_.symbol=a,n>i){const t=s(e,n-1,i);return Zl(t)?XC.createQualifiedName(t,_):un.fail("Impossible construct - an export of an indexed access cannot be reachable")}return _}}function Z(e,t,n){const r=Ue(t.enclosingDeclaration,e,788968,void 0,!1);return!!(r&&262144&r.flags)&&r!==n.symbol}function ee(e,t){var n,i,o,a;if(4&t.flags&&t.typeParameterNames){const n=t.typeParameterNames.get(Kv(e));if(n)return n}let s=te(e.symbol,t,788968,!0);if(!(80&s.kind))return XC.createIdentifier("(Missing type parameter)");const c=null==(i=null==(n=e.symbol)?void 0:n.declarations)?void 0:i[0];if(c&&iD(c)&&(s=r(t,s,c.name)),4&t.flags){const n=s.escapedText;let r=(null==(o=t.typeParameterNamesByTextNextNameCount)?void 0:o.get(n))||0,i=n;for(;(null==(a=t.typeParameterNamesByText)?void 0:a.has(i))||Z(i,t,e);)r++,i=`${n}_${r}`;if(i!==n){const e=Ow(s);s=XC.createIdentifier(i),Iw(s,e)}t.mustCreateTypeParametersNamesLookups&&(t.mustCreateTypeParametersNamesLookups=!1,t.typeParameterNames=new Map(t.typeParameterNames),t.typeParameterNamesByTextNextNameCount=new Map(t.typeParameterNamesByTextNextNameCount),t.typeParameterNamesByText=new Set(t.typeParameterNamesByText)),t.typeParameterNamesByTextNextNameCount.set(n,r),t.typeParameterNames.set(Kv(e),s),t.typeParameterNamesByText.add(i)}return s}function te(e,t,n,r){const i=z(e,t,n);return!r||1===i.length||t.encounteredError||65536&t.flags||(t.encounteredError=!0),function e(n,r){const i=V(n,r,t),o=n[r];0===r&&(t.flags|=16777216);const a=Ic(o,t);0===r&&(t.flags^=16777216);const s=nw(XC.createIdentifier(a),16777216);return i&&Iw(s,XC.createNodeArray(i)),s.symbol=o,r>0?XC.createQualifiedName(e(n,r-1),s):s}(i,i.length-1)}function ne(e,t,n){const r=z(e,t,n);return function e(n,r){const i=V(n,r,t),o=n[r];0===r&&(t.flags|=16777216);let a=Ic(o,t);0===r&&(t.flags^=16777216);let s=a.charCodeAt(0);if(Jm(s)&&$(o.declarations,Qs))return XC.createStringLiteral(G(o,t));if(0===r||WT(a,R)){const t=nw(XC.createIdentifier(a),16777216);return i&&Iw(t,XC.createNodeArray(i)),t.symbol=o,r>0?XC.createPropertyAccessExpression(e(n,r-1),t):t}{let t;if(91===s&&(a=a.substring(1,a.length-1),s=a.charCodeAt(0)),!Jm(s)||8&o.flags?""+ +a===a&&(t=XC.createNumericLiteral(+a)):t=XC.createStringLiteral(Dy(a).replace(/\\./g,(e=>e.substring(1))),39===s),!t){const e=nw(XC.createIdentifier(a),16777216);i&&Iw(e,XC.createNodeArray(i)),e.symbol=o,t=e}return XC.createElementAccessExpression(e(n,r-1),t)}}(r,r.length-1)}function re(e){const t=Tc(e);return!!t&&(rD(t)?!!(402653316&Lj(t.expression).flags):KD(t)?!!(402653316&Lj(t.argumentExpression).flags):TN(t))}function oe(e){const t=Tc(e);return!!(t&&TN(t)&&(t.singleQuote||!Zh(t)&&Gt(Kd(t,!1),"'")))}function ae(e,t){const n=!!u(e.declarations)&&v(e.declarations,re),r=!!u(e.declarations)&&v(e.declarations,oe),i=!!(8192&e.flags),o=function(e,t,n,r,i){const o=oa(e).nameType;if(o){if(384&o.flags){const e=""+o.value;return fs(e,hk(j))||!r&&MT(e)?MT(e)&&Gt(e,"-")?XC.createComputedPropertyName(XC.createPrefixUnaryExpression(41,XC.createNumericLiteral(-e))):BT(e,hk(j),n,r,i):XC.createStringLiteral(e,!!n)}if(8192&o.flags)return XC.createComputedPropertyName(ne(o.symbol,t,111551))}}(e,t,r,n,i);return o||BT(fc(e.escapedName),hk(j),r,n,i)}function se(e){const t=e.mustCreateTypeParameterSymbolList,n=e.mustCreateTypeParametersNamesLookups;e.mustCreateTypeParameterSymbolList=!0,e.mustCreateTypeParametersNamesLookups=!0;const r=e.typeParameterNames,i=e.typeParameterNamesByText,o=e.typeParameterNamesByTextNextNameCount,a=e.typeParameterSymbolList;return()=>{e.typeParameterNames=r,e.typeParameterNamesByText=i,e.typeParameterNamesByTextNextNameCount=o,e.typeParameterSymbolList=a,e.mustCreateTypeParameterSymbolList=t,e.mustCreateTypeParametersNamesLookups=n}}function ce(e,t){return e.declarations&&b(e.declarations,(e=>!(!CJ(e)||t&&!_c(e,(e=>e===t)))))}function le(e,t){if(!(4&mx(t)))return!0;if(!vD(e))return!0;ky(e);const n=aa(e).resolvedSymbol,r=n&&fu(n);return!r||r!==t.target||u(e.typeArguments)>=ng(t.target.typeParameters)}function _e(e,t,n){return 8192&n.flags&&n.symbol===e&&(!t.enclosingDeclaration||$(e.declarations,(e=>hd(e)===t.enclosingFile)))&&(t.flags|=1048576),_(n,t)}function ue(e,t,n,r){var i;let o;const s=t&&(oD(t)||bP(t))&&pJ(t,e.enclosingDeclaration),c=t??r.valueDeclaration??ce(r)??(null==(i=r.declarations)?void 0:i[0]);if(c)if(u_(c))o=ke.serializeTypeOfAccessor(c,r,e);else if(bC(c)&&!Zh(c)&&!(196608&mx(n))){const t=a(e,r,n);o=ke.serializeTypeOfDeclaration(c,r,e),t()}return o||(s&&(n=tw(n)),o=_e(r,e,n)),o??XC.createKeywordTypeNode(133)}function pe(e,t,n){const r=e.suppressReportInferenceFallback;e.suppressReportInferenceFallback=!0;const i=vg(t),o=i?P(e.mapper?Uk(i,e.mapper):i,e):_(n,e);return e.suppressReportInferenceFallback=r,o}function fe(e,t,n=t.enclosingDeclaration){let i=!1;const o=ab(e);if(Fm(e)&&(Qm(o)||Zm(o.parent)||nD(o.parent)&&Ym(o.parent.left)&&Qm(o.parent.right)))return i=!0,{introducesError:i,node:e};const a=ec(e);let s;if(cv(o))return s=ps(Zf(o,!1,!1)),0!==Hs(s,o,a,!1).accessibility&&(i=!0,t.tracker.reportInaccessibleThisError()),{introducesError:i,node:c(e)};if(s=Ka(o,a,!0,!0),t.enclosingDeclaration&&!(s&&262144&s.flags)){s=Ss(s);const n=Ka(o,a,!0,!0,t.enclosingDeclaration);if(n===xt||void 0===n&&void 0!==s||n&&s&&!ks(Ss(n),s))return n!==xt&&t.tracker.reportInferenceFallback(e),i=!0,{introducesError:i,node:e,sym:s};s=n}return s?(1&s.flags&&s.valueDeclaration&&(Xh(s.valueDeclaration)||bP(s.valueDeclaration))||(262144&s.flags||ch(e)||0===Hs(s,n,a,!1).accessibility?t.tracker.trackSymbol(s,n,a):(t.tracker.reportInferenceFallback(e),i=!0)),{introducesError:i,node:c(e)}):{introducesError:i,node:e};function c(e){if(e===o){const n=fu(s),i=262144&s.flags?ee(n,t):XC.cloneNode(e);return i.symbol=s,r(t,nw(i,16777216),e)}const n=nJ(e,(e=>c(e)),void 0);return n!==e&&r(t,n,e),n}}function me(e,t){const r=n(e,t,!0);if(!r)return!1;if(Fm(t)&&_f(t)){Lx(t);const e=aa(t).resolvedSymbol;return!e||!!((t.isTypeOf||788968&e.flags)&&u(t.typeArguments)>=ng(M_(e)))}if(vD(t)){if(xl(t))return!1;const n=aa(t).resolvedSymbol;if(!n)return!1;if(262144&n.flags){const t=fu(n);return!(e.mapper&&Ck(t,e.mapper)!==t)}if(Am(t))return le(t,r)&&!xy(t)&&!!(788968&n.flags)}if(LD(t)&&158===t.operator&&155===t.type.kind){const n=e.enclosingDeclaration&&function(e){for(;aa(e).fakeScopeForSignatureDeclaration;)e=e.parent;return e}(e.enclosingDeclaration);return!!_c(t,(e=>e===n))}return!0}}(),ke=NK(j,xe.syntacticBuilderResolver),Ce=fC({evaluateElementAccessExpression:function(e,t){const n=e.expression;if(ob(n)&&Lu(e.argumentExpression)){const r=Ka(n,111551,!0);if(r&&384&r.flags){const n=pc(e.argumentExpression.text),i=r.exports.get(n);if(i)return un.assert(hd(i.valueDeclaration)===hd(r.valueDeclaration)),t?YM(e,i,t):hJ(i.valueDeclaration)}}return pC(void 0)},evaluateEntityNameExpression:QM}),Ne=Hu(),De=Wo(4,"undefined");De.declarations=[];var Fe=Wo(1536,"globalThis",8);Fe.exports=Ne,Fe.declarations=[],Ne.set(Fe.escapedName,Fe);var Ee,Pe,Ae,Le=Wo(4,"arguments"),je=Wo(4,"require"),Re=j.verbatimModuleSyntax?"verbatimModuleSyntax":"isolatedModules",Me=!j.verbatimModuleSyntax,ze=0,qe=0,Ue=hC({compilerOptions:j,requireSymbol:je,argumentsSymbol:Le,globals:Ne,getSymbolOfDeclaration:ps,error:jo,getRequiresScopeChangeCache:_a,setRequiresScopeChangeCache:ua,lookup:sa,onPropertyWithInvalidInitializer:function(e,t,n,r){return!V&&(e&&!r&&fa(e,t,t)||jo(e,e&&n.type&&Ps(n.type,e.pos)?la.Type_of_instance_member_variable_0_cannot_reference_identifier_1_declared_in_the_constructor:la.Initializer_of_instance_member_variable_0_cannot_reference_identifier_1_declared_in_the_constructor,Ep(n.name),pa(t)),!0)},onFailedToResolveSymbol:function(e,t,n,r){const i=Ze(t)?t:t.escapedText;a((()=>{if(!e||!(324===e.parent.kind||fa(e,i,t)||ma(e)||function(e,t,n){const r=1920|(Fm(e)?111551:0);if(n===r){const n=Ma(Ue(e,t,788968&~r,void 0,!1)),i=e.parent;if(n){if(nD(i)){un.assert(i.left===e,"Should only be resolving left side of qualified name as a namespace");const r=i.right.escapedText;if(Cf(fu(n),r))return jo(i,la.Cannot_access_0_1_because_0_is_a_type_but_not_a_namespace_Did_you_mean_to_retrieve_the_type_of_the_property_1_in_0_with_0_1,fc(t),fc(r)),!0}return jo(e,la._0_only_refers_to_a_type_but_is_being_used_as_a_namespace_here,fc(t)),!0}}return!1}(e,i,n)||function(e,t){return!(!ha(t)||281!==e.parent.kind)&&(jo(e,la.Cannot_export_0_Only_local_declarations_can_be_exported_from_a_module,t),!0)}(e,i)||function(e,t,n){if(111127&n){if(Ma(Ue(e,t,1024,void 0,!1)))return jo(e,la.Cannot_use_namespace_0_as_a_value,fc(t)),!0}else if(788544&n&&Ma(Ue(e,t,1536,void 0,!1)))return jo(e,la.Cannot_use_namespace_0_as_a_type,fc(t)),!0;return!1}(e,i,n)||function(e,t,n){if(111551&n){if(ha(t)){const n=e.parent.parent;if(n&&n.parent&&jE(n)){const r=n.token,i=n.parent.kind;264===i&&96===r?jo(e,la.An_interface_cannot_extend_a_primitive_type_like_0_It_can_only_extend_other_named_object_types,fc(t)):263===i&&96===r?jo(e,la.A_class_cannot_extend_a_primitive_type_like_0_Classes_can_only_extend_constructable_values,fc(t)):263===i&&119===r&&jo(e,la.A_class_cannot_implement_a_primitive_type_like_0_It_can_only_implement_other_named_object_types,fc(t))}else jo(e,la._0_only_refers_to_a_type_but_is_being_used_as_a_value_here,fc(t));return!0}const n=Ma(Ue(e,t,788544,void 0,!1)),r=n&&za(n);if(n&&void 0!==r&&!(111551&r)){const r=fc(t);return function(e){switch(e){case"Promise":case"Symbol":case"Map":case"WeakMap":case"Set":case"WeakSet":return!0}return!1}(t)?jo(e,la._0_only_refers_to_a_type_but_is_being_used_as_a_value_here_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_es2015_or_later,r):function(e,t){const n=_c(e.parent,(e=>!rD(e)&&!sD(e)&&(SD(e)||"quit")));if(n&&1===n.members.length){const e=fu(t);return!!(1048576&e.flags)&&ZL(e,384,!0)}return!1}(e,n)?jo(e,la._0_only_refers_to_a_type_but_is_being_used_as_a_value_here_Did_you_mean_to_use_1_in_0,r,"K"===r?"P":"K"):jo(e,la._0_only_refers_to_a_type_but_is_being_used_as_a_value_here,r),!0}}return!1}(e,i,n)||function(e,t,n){if(788584&n){const n=Ma(Ue(e,t,111127,void 0,!1));if(n&&!(1920&n.flags))return jo(e,la._0_refers_to_a_value_but_is_being_used_as_a_type_here_Did_you_mean_typeof_0,fc(t)),!0}return!1}(e,i,n))){let o,a;if(t&&(a=function(e){const t=pa(e),n=Zd().get(t);return n&&he(n.keys())}(t),a&&jo(e,r,pa(t),a)),!a&&Ui{var a;const s=t.escapedName,c=r&&qE(r)&&Qp(r);if(e&&(2&n||(32&n||384&n)&&!(111551&~n))){const n=Ss(t);(2&n.flags||32&n.flags||384&n.flags)&&function(e,t){var n;if(un.assert(!!(2&e.flags||32&e.flags||384&e.flags)),67108881&e.flags&&32&e.flags)return;const r=null==(n=e.declarations)?void 0:n.find((e=>ip(e)||__(e)||266===e.kind));if(void 0===r)return un.fail("checkResolvedBlockScopedVariable could not find block-scoped declaration");if(!(33554432&r.flags||ca(r,t))){let n;const i=Ep(Tc(r));2&e.flags?n=jo(t,la.Block_scoped_variable_0_used_before_its_declaration,i):32&e.flags?n=jo(t,la.Class_0_used_before_its_declaration,i):256&e.flags?n=jo(t,la.Enum_0_used_before_its_declaration,i):(un.assert(!!(128&e.flags)),xk(j)&&(n=jo(t,la.Enum_0_used_before_its_declaration,i))),n&&iT(n,jp(r,la._0_is_declared_here,i))}}(n,e)}if(c&&!(111551&~n)&&!(16777216&e.flags)){const n=ds(t);u(n.declarations)&&v(n.declarations,(e=>eE(e)||qE(e)&&!!e.symbol.globalExports))&&Mo(!j.allowUmdGlobalAccess,e,la._0_refers_to_a_UMD_global_but_the_current_file_is_a_module_Consider_adding_an_import_instead,fc(s))}if(i&&!o&&!(111551&~n)){const r=ds(cd(t)),o=Qh(i);r===ps(i)?jo(e,la.Parameter_0_cannot_reference_itself,Ep(i.name)):r.valueDeclaration&&r.valueDeclaration.pos>i.pos&&o.parent.locals&&sa(o.parent.locals,r.escapedName,n)===r&&jo(e,la.Parameter_0_cannot_reference_identifier_1_declared_after_it,Ep(i.name),Ep(e))}if(e&&111551&n&&2097152&t.flags&&!(111551&t.flags)&&!yT(e)){const n=Wa(t,111551);if(n){const t=281===n.kind||278===n.kind||280===n.kind?la._0_cannot_be_used_as_a_value_because_it_was_exported_using_export_type:la._0_cannot_be_used_as_a_value_because_it_was_imported_using_import_type,r=fc(s);da(jo(e,t,r),n,r)}}if(j.isolatedModules&&t&&c&&!(111551&~n)){const e=sa(Ne,s,n)===t&&qE(r)&&r.locals&&sa(r.locals,s,-111552);if(e){const t=null==(a=e.declarations)?void 0:a.find((e=>276===e.kind||273===e.kind||274===e.kind||271===e.kind));t&&!Ml(t)&&jo(t,la.Import_0_conflicts_with_global_value_used_in_this_file_so_must_be_declared_with_a_type_only_import_when_isolatedModules_is_enabled,fc(s))}}}))}}),Ve=hC({compilerOptions:j,requireSymbol:je,argumentsSymbol:Le,globals:Ne,getSymbolOfDeclaration:ps,error:jo,getRequiresScopeChangeCache:_a,setRequiresScopeChangeCache:ua,lookup:function(e,t,n){const r=sa(e,t,n);if(r)return r;let i;return i=e===Ne?B(["string","number","boolean","object","bigint","symbol"],(t=>e.has(t.charAt(0).toUpperCase()+t.slice(1))?Wo(524288,t):void 0)).concat(Oe(e.values())):Oe(e.values()),JI(fc(t),i,n)}});const He={getNodeCount:()=>we(e.getSourceFiles(),((e,t)=>e+t.nodeCount),0),getIdentifierCount:()=>we(e.getSourceFiles(),((e,t)=>e+t.identifierCount),0),getSymbolCount:()=>we(e.getSourceFiles(),((e,t)=>e+t.symbolCount),m),getTypeCount:()=>p,getInstantiationCount:()=>g,getRelationCacheSizes:()=>({assignable:ho.size,identity:bo.size,subtype:mo.size,strictSubtype:go.size}),isUndefinedSymbol:e=>e===De,isArgumentsSymbol:e=>e===Le,isUnknownSymbol:e=>e===xt,getMergedSymbol:ds,symbolIsValue:Cs,getDiagnostics:TB,getGlobalDiagnostics:function(){return CB(),uo.getGlobalDiagnostics()},getRecursionIdentity:tC,getUnmatchedProperties:$w,getTypeOfSymbolAtLocation:(e,t)=>{const n=dc(t);return n?function(e,t){if(e=Ss(e),(80===t.kind||81===t.kind)&&(ub(t)&&(t=t.parent),vm(t)&&(!Xg(t)||sx(t)))){const n=ow(sx(t)&&211===t.kind?gI(t,void 0,!0):Aj(t));if(Ss(aa(t).resolvedSymbol)===e)return n}return ch(t)&&Cu(t.parent)&&Xl(t.parent)?a_(t.parent.symbol):db(t)&&sx(t.parent)?b_(e):T_(e)}(e,n):Et},getTypeOfSymbol:S_,getSymbolsOfParameterPropertyDeclaration:(e,t)=>{const n=dc(e,oD);return void 0===n?un.fail("Cannot get symbols of a synthetic parameter that cannot be resolved to a parse-tree node."):(un.assert(Ys(n,n.parent)),function(e,t){const n=e.parent,r=e.parent.parent,i=sa(n.locals,t,111551),o=sa(sd(r.symbol),t,111551);return i&&o?[i,o]:un.fail("There should exist two symbols, one as property declaration and one as parameter declaration")}(n,pc(t)))},getDeclaredTypeOfSymbol:fu,getPropertiesOfType:vp,getPropertyOfType:(e,t)=>Cf(e,pc(t)),getPrivateIdentifierPropertyOfType:(e,t,n)=>{const r=dc(n);if(!r)return;const i=vI(pc(t),r);return i?xI(e,i):void 0},getTypeOfPropertyOfType:(e,t)=>Uc(e,pc(t)),getIndexInfoOfType:(e,t)=>dm(e,0===t?Vt:Wt),getIndexInfosOfType:Kf,getIndexInfosOfIndexSymbol:kh,getSignaturesOfType:Rf,getIndexTypeOfType:(e,t)=>pm(e,0===t?Vt:Wt),getIndexType:e=>qb(e),getBaseTypes:Z_,getBaseTypeOfLiteralType:RC,getWidenedType:Sw,getWidenedLiteralType:BC,fillMissingTypeArguments:rg,getTypeFromTypeNode:e=>{const t=dc(e,v_);return t?dk(t):Et},getParameterType:pL,getParameterIdentifierInfoAtPosition:function(e,t){var n;if(317===(null==(n=e.declaration)?void 0:n.kind))return;const r=e.parameters.length-(UB(e)?1:0);if(tdR(e),getReturnTypeOfSignature:Tg,isNullableType:lI,getNullableType:ew,getNonNullableType:rw,getNonOptionalType:ow,getTypeArguments:Kh,typeToTypeNode:xe.typeToTypeNode,typePredicateToTypePredicateNode:xe.typePredicateToTypePredicateNode,indexInfoToIndexSignatureDeclaration:xe.indexInfoToIndexSignatureDeclaration,signatureToSignatureDeclaration:xe.signatureToSignatureDeclaration,symbolToEntityName:xe.symbolToEntityName,symbolToExpression:xe.symbolToExpression,symbolToNode:xe.symbolToNode,symbolToTypeParameterDeclarations:xe.symbolToTypeParameterDeclarations,symbolToParameterDeclaration:xe.symbolToParameterDeclaration,typeParameterToDeclaration:xe.typeParameterToDeclaration,getSymbolsInScope:(e,t)=>{const n=dc(e);return n?function(e,t){if(67108864&e.flags)return[];const n=Hu();let r=!1;return function(){for(;e;){switch(au(e)&&e.locals&&!Xp(e)&&o(e.locals,t),e.kind){case 307:if(!MI(e))break;case 267:a(ps(e).exports,2623475&t);break;case 266:o(ps(e).exports,8&t);break;case 231:e.name&&i(e.symbol,t);case 263:case 264:r||o(sd(ps(e)),788968&t);break;case 218:e.name&&i(e.symbol,t)}Lf(e)&&i(Le,t),r=Nv(e),e=e.parent}o(Ne,t)}(),n.delete("this"),Lm(n);function i(e,t){if(ox(e)&t){const t=e.escapedName;n.has(t)||n.set(t,e)}}function o(e,t){t&&e.forEach((e=>{i(e,t)}))}function a(e,t){t&&e.forEach((e=>{Wu(e,281)||Wu(e,280)||"default"===e.escapedName||i(e,t)}))}}(n,t):[]},getSymbolAtLocation:e=>{const t=dc(e);return t?YB(t,!0):void 0},getIndexInfosAtLocation:e=>{const t=dc(e);return t?function(e){if(zN(e)&&HD(e.parent)&&e.parent.name===e){const t=Rb(e),n=Aj(e.parent.expression);return O(1048576&n.flags?n.types:[n],(e=>N(Kf(e),(e=>Wf(t,e.keyType)))))}}(t):void 0},getShorthandAssignmentValueSymbol:e=>{const t=dc(e);return t?function(e){if(e&&304===e.kind)return Ka(e.name,2208703)}(t):void 0},getExportSpecifierLocalTargetSymbol:e=>{const t=dc(e,gE);return t?function(e){if(gE(e)){const t=e.propertyName||e.name;return e.parent.parent.moduleSpecifier?Pa(e.parent.parent,e):11===t.kind?void 0:Ka(t,2998271)}return Ka(e,2998271)}(t):void 0},getExportSymbolOfSymbol:e=>ds(e.exportSymbol||e),getTypeAtLocation:e=>{const t=dc(e);return t?ZB(t):Et},getTypeOfAssignmentPattern:e=>{const t=dc(e,k_);return t&&eJ(t)||Et},getPropertySymbolOfDestructuringAssignment:e=>{const t=dc(e,zN);return t?function(e){const t=eJ(nt(e.parent.parent,k_));return t&&Cf(t,e.escapedText)}(t):void 0},signatureToString:(e,t,n,r)=>ac(e,dc(t),n,r),typeToString:(e,t,n)=>sc(e,dc(t),n),symbolToString:(e,t,n,r)=>ic(e,dc(t),n,r),typePredicateToString:(e,t,n)=>Cc(e,dc(t),n),writeSignature:(e,t,n,r,i)=>ac(e,dc(t),n,r,i),writeType:(e,t,n,r)=>sc(e,dc(t),n,r),writeSymbol:(e,t,n,r,i)=>ic(e,dc(t),n,r,i),writeTypePredicate:(e,t,n,r)=>Cc(e,dc(t),n,r),getAugmentedPropertiesOfType:oJ,getRootSymbols:function e(t){const n=function(e){if(6&nx(e))return B(oa(e).containingType.types,(t=>Cf(t,e.escapedName)));if(33554432&e.flags){const{links:{leftSpread:t,rightSpread:n,syntheticOrigin:r}}=e;return t?[t,n]:r?[r]:rn(function(e){let t,n=e;for(;n=oa(n).target;)t=n;return t}(e))}}(t);return n?O(n,e):[t]},getSymbolOfExpando:VO,getContextualType:(e,t)=>{const n=dc(e,U_);if(n)return 4&t?Ge(n,(()=>sA(n,t))):sA(n,t)},getContextualTypeForObjectLiteralElement:e=>{const t=dc(e,y_);return t?XP(t,void 0):void 0},getContextualTypeForArgumentAtIndex:(e,t)=>{const n=dc(e,O_);return n&&JP(n,t)},getContextualTypeForJsxAttribute:e=>{const t=dc(e,hu);return t&&YP(t,void 0)},isContextSensitive:aS,getTypeOfPropertyOfContextualType:VP,getFullyQualifiedName:Ha,getResolvedSignature:(e,t,n)=>Xe(e,t,n,0),getCandidateSignaturesForStringLiteralCompletions:function(e,t){const n=new Set,r=[];Ge(t,(()=>Xe(e,r,void 0,0)));for(const e of r)n.add(e);r.length=0,Ke(t,(()=>Xe(e,r,void 0,0)));for(const e of r)n.add(e);return Oe(n)},getResolvedSignatureForSignatureHelp:(e,t,n)=>Ke(e,(()=>Xe(e,t,n,16))),getExpandedParameters:kd,hasEffectiveRestParameter:vL,containsArgumentsReference:cg,getConstantValue:e=>{const t=dc(e,yJ);return t?vJ(t):void 0},isValidPropertyAccess:(e,t)=>{const n=dc(e,P_);return!!n&&function(e,t){switch(e.kind){case 211:return VI(e,108===e.expression.kind,t,Sw(Lj(e.expression)));case 166:return VI(e,!1,t,Sw(Lj(e.left)));case 205:return VI(e,!1,t,dk(e))}}(n,pc(t))},isValidPropertyAccessForCompletions:(e,t,n)=>{const r=dc(e,HD);return!!r&&UI(r,t,n)},getSignatureFromDeclaration:e=>{const t=dc(e,n_);return t?ig(t):void 0},isImplementationOfOverload:e=>{const t=dc(e,n_);return t?dJ(t):void 0},getImmediateAliasedSymbol:wA,getAliasedSymbol:Ba,getEmitResolver:function(e,t,n){return n||TB(e,t),be},requiresAddingImplicitUndefined:pJ,getExportsOfModule:os,getExportsAndPropertiesOfModule:function(e){const t=os(e),n=ts(e);if(n!==e){const e=S_(n);ss(e)&&se(t,vp(e))}return t},forEachExportAndPropertyOfModule:function(e,t){ls(e).forEach(((e,n)=>{Ls(n)||t(e,n)}));const n=ts(e);if(n!==e){const e=S_(n);ss(e)&&function(e){3670016&(e=ff(e)).flags&&pp(e).members.forEach(((e,n)=>{Rs(e,n)&&((e,n)=>{t(e,n)})(e,n)}))}(e)}},getSymbolWalker:MM((function(e){return Ag(e)||wt}),vg,Tg,Z_,pp,S_,dN,xp,ab,Kh),getAmbientModules:function(){return Wn||(Wn=[],Ne.forEach(((e,t)=>{kB.test(t)&&Wn.push(e)}))),Wn},getJsxIntrinsicTagNamesAt:function(e){const t=jA(vB.IntrinsicElements,e);return t?vp(t):l},isOptionalParameter:e=>{const t=dc(e,oD);return!!t&&zm(t)},tryGetMemberInModuleExports:(e,t)=>as(pc(e),t),tryGetMemberInModuleExportsAndProperties:(e,t)=>function(e,t){const n=as(e,t);if(n)return n;const r=ts(t);if(r===t)return;const i=S_(r);return ss(i)?Cf(i,e):void 0}(pc(e),t),tryFindAmbientModule:e=>Mm(e,!0),getApparentType:pf,getUnionType:xb,isTypeAssignableTo:gS,createAnonymousType:Bs,createSignature:pd,createSymbol:Wo,createIndexInfo:uh,getAnyType:()=>wt,getStringType:()=>Vt,getStringLiteralType:ik,getNumberType:()=>Wt,getNumberLiteralType:ok,getBigIntType:()=>$t,getBigIntLiteralType:ak,createPromiseType:PL,createArrayType:uv,getElementTypeOfArrayType:TC,getBooleanType:()=>sn,getFalseType:e=>e?Ht:Qt,getTrueType:e=>e?Yt:nn,getVoidType:()=>ln,getUndefinedType:()=>jt,getNullType:()=>zt,getESSymbolType:()=>cn,getNeverType:()=>_n,getOptionalType:()=>Jt,getPromiseType:()=>Uy(!1),getPromiseLikeType:()=>Vy(!1),getAnyAsyncIterableType:()=>{const e=$y(!1);if(e!==On)return jh(e,[wt,wt,wt])},isSymbolAccessible:Hs,isArrayType:yC,isTupleType:UC,isArrayLikeType:CC,isEmptyAnonymousObjectType:jS,isTypeInvalidDueToUnionDiscriminant:function(e,t){return t.properties.some((t=>{const n=t.name&&(IE(t.name)?ik(eC(t.name)):Rb(t.name)),r=n&&oC(n)?aC(n):void 0,i=void 0===r?void 0:Uc(e,r);return!!i&&jC(i)&&!gS(ZB(t),i)}))},getExactOptionalProperties:function(e){return vp(e).filter((e=>lw(S_(e))))},getAllPossiblePropertiesOfTypes:function(e){const t=xb(e);if(!(1048576&t.flags))return oJ(t);const n=Hu();for(const r of e)for(const{escapedName:e}of oJ(r))if(!n.has(e)){const r=mf(t,e);r&&n.set(e,r)}return Oe(n.values())},getSuggestedSymbolForNonexistentProperty:II,getSuggestedSymbolForNonexistentJSXAttribute:OI,getSuggestedSymbolForNonexistentSymbol:(e,t,n)=>RI(e,pc(t),n),getSuggestedSymbolForNonexistentModule:BI,getSuggestedSymbolForNonexistentClassMember:EI,getBaseConstraintOfType:qp,getDefaultFromTypeParameter:e=>e&&262144&e.flags?of(e):void 0,resolveName:(e,t,n,r)=>Ue(t,pc(e),n,void 0,!1,r),getJsxNamespace:e=>fc(Eo(e)),getJsxFragmentFactory:e=>{const t=TJ(e);return t&&fc(ab(t).escapedText)},getAccessibleSymbolChain:qs,getTypePredicateOfSignature:vg,resolveExternalModuleName:e=>{const t=dc(e,U_);return t&&Qa(t,t,!0)},resolveExternalModuleSymbol:ts,tryGetThisTypeAt:(e,t,n)=>{const r=dc(e);return r&&vP(r,t,n)},getTypeArgumentConstraint:e=>{const t=dc(e,v_);return t&&function(e){const t=tt(e.parent,Au);if(!t)return;const n=Xj(t);if(!n)return;const r=xp(n[t.typeArguments.indexOf(e)]);return r&&tS(r,Tk(n,Kj(t,n)))}(t)},getSuggestionDiagnostics:(n,r)=>{const i=dc(n,qE)||un.fail("Could not determine parsed source file.");if(cT(i,j,e))return l;let o;try{return t=r,DB(i),un.assert(!!(1&aa(i).flags)),o=se(o,po.getDiagnostics(i.fileName)),wR(bB(i),((e,t,n)=>{gd(e)||yB(t,!!(33554432&e.flags))||(o||(o=[])).push({...n,category:2})})),o||l}finally{t=void 0}},runWithCancellationToken:(e,n)=>{try{return t=e,n(He)}finally{t=void 0}},getLocalTypeParametersOfClassOrInterfaceOrTypeAlias:M_,isDeclarationVisible:Lc,isPropertyAccessible:WI,getTypeOnlyAliasDeclaration:Wa,getMemberOverrideModifierStatus:function(e,t,n){if(!t.name)return 0;const r=ps(e),i=fu(r),o=ld(i),a=S_(r),s=hh(e)&&Z_(i),c=(null==s?void 0:s.length)?ld(ge(s),i.thisType):void 0;return qM(e,a,Q_(i),c,i,o,t.parent?Fv(t):wv(t,16),Ev(t),Nv(t),!1,n)},isTypeParameterPossiblyReferenced:Gk,typeHasCallOrConstructSignatures:aJ,getSymbolFlags:za};function Ke(e,t){if(e=_c(e,I_)){const n=[],r=[];for(;e;){const t=aa(e);if(n.push([t,t.resolvedSignature]),t.resolvedSignature=void 0,jT(e)){const t=oa(ps(e)),n=t.type;r.push([t,n]),t.type=void 0}e=_c(e.parent,I_)}const i=t();for(const[e,t]of n)e.resolvedSignature=t;for(const[e,t]of r)e.type=t;return i}return t()}function Ge(e,t){const n=_c(e,O_);if(n){let t=e;do{aa(t).skipDirectInference=!0,t=t.parent}while(t&&t!==n)}D=!0;const r=Ke(e,t);if(D=!1,n){let t=e;do{aa(t).skipDirectInference=void 0,t=t.parent}while(t&&t!==n)}return r}function Xe(e,t,n,r){const i=dc(e,O_);Ee=n;const o=i?zO(i,t,r):void 0;return Ee=void 0,o}var Ye=new Map,et=new Map,rt=new Map,it=new Map,ot=new Map,at=new Map,st=new Map,ct=new Map,lt=new Map,_t=new Map,ut=new Map,dt=new Map,pt=new Map,ft=new Map,gt=new Map,ht=[],yt=new Map,bt=new Set,xt=Wo(4,"unknown"),kt=Wo(0,"__resolving__"),St=new Map,Tt=new Map,Ct=new Set,wt=As(1,"any"),Nt=As(1,"any",262144,"auto"),Dt=As(1,"any",void 0,"wildcard"),Ft=As(1,"any",void 0,"blocked string"),Et=As(1,"error"),Pt=As(1,"unresolved"),At=As(1,"any",65536,"non-inferrable"),It=As(1,"intrinsic"),Ot=As(2,"unknown"),jt=As(32768,"undefined"),Rt=H?jt:As(32768,"undefined",65536,"widening"),Mt=As(32768,"undefined",void 0,"missing"),Bt=_e?Mt:jt,Jt=As(32768,"undefined",void 0,"optional"),zt=As(65536,"null"),Ut=H?zt:As(65536,"null",65536,"widening"),Vt=As(4,"string"),Wt=As(8,"number"),$t=As(64,"bigint"),Ht=As(512,"false",void 0,"fresh"),Qt=As(512,"false"),Yt=As(512,"true",void 0,"fresh"),nn=As(512,"true");Yt.regularType=nn,Yt.freshType=Yt,nn.regularType=nn,nn.freshType=Yt,Ht.regularType=Qt,Ht.freshType=Ht,Qt.regularType=Qt,Qt.freshType=Ht;var on,sn=xb([Qt,nn]),cn=As(4096,"symbol"),ln=As(16384,"void"),_n=As(131072,"never"),dn=As(131072,"never",262144,"silent"),pn=As(131072,"never",void 0,"implicit"),fn=As(131072,"never",void 0,"unreachable"),mn=As(67108864,"object"),gn=xb([Vt,Wt]),hn=xb([Vt,Wt,cn]),yn=xb([Wt,$t]),vn=xb([Vt,Wt,sn,$t,zt,jt]),bn=Vb(["",""],[Wt]),xn=Ek((e=>{return 262144&e.flags?!(t=e).constraint&&!Ch(t)||t.constraint===jn?t:t.restrictiveInstantiation||(t.restrictiveInstantiation=Os(t.symbol),t.restrictiveInstantiation.constraint=jn,t.restrictiveInstantiation):e;var t}),(()=>"(restrictive mapper)")),kn=Ek((e=>262144&e.flags?Dt:e),(()=>"(permissive mapper)")),Sn=As(131072,"never",void 0,"unique literal"),Tn=Ek((e=>262144&e.flags?Sn:e),(()=>"(unique literal mapper)")),Cn=Ek((e=>(!on||e!==Bn&&e!==Jn&&e!==zn||on(!0),e)),(()=>"(unmeasurable reporter)")),wn=Ek((e=>(!on||e!==Bn&&e!==Jn&&e!==zn||on(!1),e)),(()=>"(unreliable reporter)")),Nn=Bs(void 0,P,l,l,l),Dn=Bs(void 0,P,l,l,l);Dn.objectFlags|=2048;var Fn=Bs(void 0,P,l,l,l);Fn.objectFlags|=141440;var En=Wo(2048,"__type");En.members=Hu();var Pn=Bs(En,P,l,l,l),An=Bs(void 0,P,l,l,l),In=H?xb([jt,zt,An]):Ot,On=Bs(void 0,P,l,l,l);On.instantiations=new Map;var Ln=Bs(void 0,P,l,l,l);Ln.objectFlags|=262144;var jn=Bs(void 0,P,l,l,l),Rn=Bs(void 0,P,l,l,l),Mn=Bs(void 0,P,l,l,l),Bn=Os(),Jn=Os();Jn.constraint=Bn;var zn=Os(),qn=Os(),Un=Os();Un.constraint=qn;var Vn,Wn,$n,Kn,Gn,Xn,Qn,Yn,Zn,er,rr,ir,or,ar,sr,cr,lr,_r,ur,dr,pr,fr,mr,gr,hr,yr,vr,br,xr,kr,Sr,Tr,Cr,wr,Nr,Dr,Fr,Er,Pr,Ar,Ir,Or,Lr,jr,Rr,Mr,Br,Jr,zr,qr,Ur,Vr,Wr,$r,Hr,Kr,Gr,Xr,Qr,Yr,Zr,ei,ti,ni,ri,ii,oi,ai=Xm(1,"<>",0,wt),si=pd(void 0,void 0,void 0,l,wt,void 0,0,0),ci=pd(void 0,void 0,void 0,l,Et,void 0,0,0),li=pd(void 0,void 0,void 0,l,wt,void 0,0,0),_i=pd(void 0,void 0,void 0,l,dn,void 0,0,0),ui=uh(Wt,Vt,!0),di=new Map,pi={get yieldType(){return un.fail("Not supported")},get returnType(){return un.fail("Not supported")},get nextType(){return un.fail("Not supported")}},mi=aM(wt,wt,wt),gi={iterableCacheKey:"iterationTypesOfAsyncIterable",iteratorCacheKey:"iterationTypesOfAsyncIterator",iteratorSymbolName:"asyncIterator",getGlobalIteratorType:function(e){return Dr||(Dr=Ay("AsyncIterator",3,e))||On},getGlobalIterableType:$y,getGlobalIterableIteratorType:Hy,getGlobalIteratorObjectType:function(e){return Ar||(Ar=Ay("AsyncIteratorObject",3,e))||On},getGlobalGeneratorType:function(e){return Ir||(Ir=Ay("AsyncGenerator",3,e))||On},getGlobalBuiltinIteratorTypes:function(){return Pr??(Pr=Ly(["ReadableStreamAsyncIterator"],1))},resolveIterationType:(e,t)=>dR(e,t,la.Type_of_await_operand_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member),mustHaveANextMethodDiagnostic:la.An_async_iterator_must_have_a_next_method,mustBeAMethodDiagnostic:la.The_0_property_of_an_async_iterator_must_be_a_method,mustHaveAValueDiagnostic:la.The_type_returned_by_the_0_method_of_an_async_iterator_must_be_a_promise_for_a_type_with_a_value_property},hi={iterableCacheKey:"iterationTypesOfIterable",iteratorCacheKey:"iterationTypesOfIterator",iteratorSymbolName:"iterator",getGlobalIteratorType:function(e){return xr||(xr=Ay("Iterator",3,e))||On},getGlobalIterableType:Ky,getGlobalIterableIteratorType:Xy,getGlobalIteratorObjectType:function(e){return Sr||(Sr=Ay("IteratorObject",3,e))||On},getGlobalGeneratorType:function(e){return Tr||(Tr=Ay("Generator",3,e))||On},getGlobalBuiltinIteratorTypes:function(){return Er??(Er=Ly(["ArrayIterator","MapIterator","SetIterator","StringIterator"],1))},resolveIterationType:(e,t)=>e,mustHaveANextMethodDiagnostic:la.An_iterator_must_have_a_next_method,mustBeAMethodDiagnostic:la.The_0_property_of_an_iterator_must_be_a_method,mustHaveAValueDiagnostic:la.The_type_returned_by_the_0_method_of_an_iterator_must_have_a_value_property},yi=new Map,vi=new Map,bi=new Map,xi=0,ki=0,Si=0,Ti=!1,Ci=0,wi=[],Ni=[],Fi=[],Ei=0,Pi=[],Ai=[],Ii=[],Oi=0,Li=ik(""),ji=ok(0),Ri=ak({negative:!1,base10Value:"0"}),Mi=[],Bi=[],Ji=[],zi=0,qi=!1,Ui=0,Vi=10,Wi=[],$i=[],Hi=[],Ki=[],Gi=[],Xi=[],Qi=[],Yi=[],Zi=[],eo=[],to=[],no=[],ro=[],io=[],oo=[],ao=[],so=[],co=[],lo=[],_o=0,uo=ly(),po=ly(),fo=xb(Oe(FB.keys(),ik)),mo=new Map,go=new Map,ho=new Map,yo=new Map,bo=new Map,To=new Map,Co=[[".mts",".mjs"],[".ts",".js"],[".cts",".cjs"],[".mjs",".mjs"],[".js",".js"],[".cjs",".cjs"],[".tsx",1===j.jsx?".jsx":".js"],[".jsx",".jsx"],[".json",".json"]];return function(){for(const t of e.getSourceFiles())AM(t,j);let t;Vn=new Map;for(const n of e.getSourceFiles())if(!n.redirectInfo){if(!Qp(n)){const e=n.locals.get("globalThis");if(null==e?void 0:e.declarations)for(const t of e.declarations)uo.add(jp(t,la.Declaration_name_conflicts_with_built_in_global_identifier_0,"globalThis"));ta(Ne,n.locals)}n.jsGlobalAugmentations&&ta(Ne,n.jsGlobalAugmentations),n.patternAmbientModules&&n.patternAmbientModules.length&&($n=K($n,n.patternAmbientModules)),n.moduleAugmentations.length&&(t||(t=[])).push(n.moduleAugmentations),n.symbol&&n.symbol.globalExports&&n.symbol.globalExports.forEach(((e,t)=>{Ne.has(t)||Ne.set(t,e)}))}if(t)for(const e of t)for(const t of e)up(t.parent)&&ra(t);if(function(){const e=De.escapedName,t=Ne.get(e);t?d(t.declarations,(t=>{qT(t)||uo.add(jp(t,la.Declaration_name_conflicts_with_built_in_global_identifier_0,fc(e)))})):Ne.set(e,De)}(),oa(De).type=Rt,oa(Le).type=Ay("IArguments",0,!0),oa(xt).type=Et,oa(Fe).type=Is(16,Fe),Zn=Ay("Array",1,!0),Gn=Ay("Object",0,!0),Xn=Ay("Function",0,!0),Qn=Y&&Ay("CallableFunction",0,!0)||Xn,Yn=Y&&Ay("NewableFunction",0,!0)||Xn,rr=Ay("String",0,!0),ir=Ay("Number",0,!0),or=Ay("Boolean",0,!0),ar=Ay("RegExp",0,!0),cr=uv(wt),(lr=uv(Nt))===Nn&&(lr=Bs(void 0,P,l,l,l)),er=Zy("ReadonlyArray",1)||Zn,_r=er?tv(er,[wt]):cr,sr=Zy("ThisType",1),t)for(const e of t)for(const t of e)up(t.parent)||ra(t);Vn.forEach((({firstFile:e,secondFile:t,conflictingSymbols:n})=>{if(n.size<8)n.forEach((({isBlockScoped:e,firstFileLocations:t,secondFileLocations:n},r)=>{const i=e?la.Cannot_redeclare_block_scoped_variable_0:la.Duplicate_identifier_0;for(const e of t)ea(e,i,r,n);for(const e of n)ea(e,i,r,t)}));else{const r=Oe(n.keys()).join(", ");uo.add(iT(jp(e,la.Definitions_of_the_following_identifiers_conflict_with_those_in_another_file_Colon_0,r),jp(t,la.Conflicts_are_in_this_file))),uo.add(iT(jp(t,la.Definitions_of_the_following_identifiers_conflict_with_those_in_another_file_Colon_0,r),jp(e,la.Conflicts_are_in_this_file)))}})),Vn=void 0}(),He;function wo(e){return!(!HD(e)||!zN(e.name)||!HD(e.expression)&&!zN(e.expression)||(zN(e.expression)?"Symbol"!==mc(e.expression)||dN(e.expression)!==(Py("Symbol",1160127,void 0)||xt):!zN(e.expression.expression)||"Symbol"!==mc(e.expression.name)||"globalThis"!==mc(e.expression.expression)||dN(e.expression.expression)!==Fe))}function No(e){return e?gt.get(e):void 0}function Fo(e,t){return e&>.set(e,t),t}function Eo(e){if(e){const t=hd(e);if(t)if(NE(e)){if(t.localJsxFragmentNamespace)return t.localJsxFragmentNamespace;const n=t.pragmas.get("jsxfrag");if(n){const e=Qe(n)?n[0]:n;if(t.localJsxFragmentFactory=jI(e.arguments.factory,R),$B(t.localJsxFragmentFactory,Io,Zl),t.localJsxFragmentFactory)return t.localJsxFragmentNamespace=ab(t.localJsxFragmentFactory).escapedText}const r=TJ(e);if(r)return t.localJsxFragmentFactory=r,t.localJsxFragmentNamespace=ab(r).escapedText}else{const e=Ao(t);if(e)return t.localJsxNamespace=e}}return ii||(ii="React",j.jsxFactory?($B(oi=jI(j.jsxFactory,R),Io),oi&&(ii=ab(oi).escapedText)):j.reactNamespace&&(ii=pc(j.reactNamespace))),oi||(oi=XC.createQualifiedName(XC.createIdentifier(fc(ii)),"createElement")),ii}function Ao(e){if(e.localJsxNamespace)return e.localJsxNamespace;const t=e.pragmas.get("jsx");if(t){const n=Qe(t)?t[0]:t;if(e.localJsxFactory=jI(n.arguments.factory,R),$B(e.localJsxFactory,Io,Zl),e.localJsxFactory)return e.localJsxNamespace=ab(e.localJsxFactory).escapedText}}function Io(e){return ST(e,-1,-1),nJ(e,Io,void 0)}function Oo(e,t,n,...r){const i=jo(t,n,...r);return i.skippedOn=e,i}function Lo(e,t,...n){return e?jp(e,t,...n):Xx(t,...n)}function jo(e,t,...n){const r=Lo(e,t,...n);return uo.add(r),r}function Ro(e,t){e?uo.add(t):po.add({...t,category:2})}function Mo(e,t,n,...r){if(t.pos<0||t.end<0){if(!e)return;const i=hd(t);Ro(e,"message"in n?Kx(i,0,0,n,...r):Up(i,n))}else Ro(e,"message"in n?jp(t,n,...r):Bp(hd(t),t,n))}function Jo(e,t,n,...r){const i=jo(e,n,...r);return t&&iT(i,jp(e,la.Did_you_forget_to_use_await)),i}function zo(e,t){const n=Array.isArray(e)?d(e,Hc):Hc(e);return n&&iT(t,jp(n,la.The_declaration_was_marked_as_deprecated_here)),po.add(t),t}function qo(e){const t=hs(e);return t&&u(e.declarations)>1?64&t.flags?$(e.declarations,Uo):v(e.declarations,Uo):!!e.valueDeclaration&&Uo(e.valueDeclaration)||u(e.declarations)&&v(e.declarations,Uo)}function Uo(e){return!!(536870912&_z(e))}function Vo(e,t,n){return zo(t,jp(e,la._0_is_deprecated,n))}function Wo(e,t,n){m++;const r=new s(33554432|e,t);return r.links=new OB,r.links.checkFlags=n||0,r}function $o(e,t){const n=Wo(1,e);return n.links.type=t,n}function Ho(e,t){const n=Wo(4,e);return n.links.type=t,n}function Ko(e){let t=0;return 2&e&&(t|=111551),1&e&&(t|=111550),4&e&&(t|=0),8&e&&(t|=900095),16&e&&(t|=110991),32&e&&(t|=899503),64&e&&(t|=788872),256&e&&(t|=899327),128&e&&(t|=899967),512&e&&(t|=110735),8192&e&&(t|=103359),32768&e&&(t|=46015),65536&e&&(t|=78783),262144&e&&(t|=526824),524288&e&&(t|=788968),2097152&e&&(t|=2097152),t}function Go(e,t){t.mergeId||(t.mergeId=wB,wB++),Wi[t.mergeId]=e}function Xo(e){const t=Wo(e.flags,e.escapedName);return t.declarations=e.declarations?e.declarations.slice():[],t.parent=e.parent,e.valueDeclaration&&(t.valueDeclaration=e.valueDeclaration),e.constEnumOnlyModule&&(t.constEnumOnlyModule=!0),e.members&&(t.members=new Map(e.members)),e.exports&&(t.exports=new Map(e.exports)),Go(t,e),t}function Qo(e,t,n=!1){if(!(e.flags&Ko(t.flags))||67108864&(t.flags|e.flags)){if(t===e)return e;if(!(33554432&e.flags)){const n=Ma(e);if(n===xt)return t;if(n.flags&Ko(t.flags)&&!(67108864&(t.flags|n.flags)))return r(e,t),t;e=Xo(n)}512&t.flags&&512&e.flags&&e.constEnumOnlyModule&&!t.constEnumOnlyModule&&(e.constEnumOnlyModule=!1),e.flags|=t.flags,t.valueDeclaration&&fg(e,t.valueDeclaration),se(e.declarations,t.declarations),t.members&&(e.members||(e.members=Hu()),ta(e.members,t.members,n)),t.exports&&(e.exports||(e.exports=Hu()),ta(e.exports,t.exports,n,e)),n||Go(e,t)}else 1024&e.flags?e!==Fe&&jo(t.declarations&&Tc(t.declarations[0]),la.Cannot_augment_module_0_with_value_exports_because_it_resolves_to_a_non_module_entity,ic(e)):r(e,t);return e;function r(e,t){const n=!!(384&e.flags||384&t.flags),r=!!(2&e.flags||2&t.flags),o=n?la.Enum_declarations_can_only_merge_with_namespace_or_other_enum_declarations:r?la.Cannot_redeclare_block_scoped_variable_0:la.Duplicate_identifier_0,a=t.declarations&&hd(t.declarations[0]),s=e.declarations&&hd(e.declarations[0]),c=vd(a,j.checkJs),l=vd(s,j.checkJs),_=ic(t);if(a&&s&&Vn&&!n&&a!==s){const n=-1===Yo(a.path,s.path)?a:s,o=n===a?s:a,u=z(Vn,`${n.path}|${o.path}`,(()=>({firstFile:n,secondFile:o,conflictingSymbols:new Map}))),d=z(u.conflictingSymbols,_,(()=>({isBlockScoped:r,firstFileLocations:[],secondFileLocations:[]})));c||i(d.firstFileLocations,t),l||i(d.secondFileLocations,e)}else c||Zo(t,o,_,e),l||Zo(e,o,_,t)}function i(e,t){if(t.declarations)for(const n of t.declarations)ce(e,n)}}function Zo(e,t,n,r){d(e.declarations,(e=>{ea(e,t,n,r.declarations)}))}function ea(e,t,n,r){const i=($m(e,!1)?Km(e):Tc(e))||e,o=function(e,t,...n){const r=e?jp(e,t,...n):Xx(t,...n);return uo.lookup(r)||(uo.add(r),r)}(i,t,n);for(const e of r||l){const t=($m(e,!1)?Km(e):Tc(e))||e;if(t===i)continue;o.relatedInformation=o.relatedInformation||[];const r=jp(t,la._0_was_also_declared_here,n),a=jp(t,la.and_here);u(o.relatedInformation)>=5||$(o.relatedInformation,(e=>0===tk(e,a)||0===tk(e,r)))||iT(o,u(o.relatedInformation)?a:r)}}function ta(e,t,n=!1,r){t.forEach(((t,i)=>{const o=e.get(i),a=o?Qo(o,t,n):ds(t);r&&o&&(a.parent=r),e.set(i,a)}))}function ra(e){var t,n,r;const i=e.parent;if((null==(t=i.symbol.declarations)?void 0:t[0])===i)if(up(i))ta(Ne,i.symbol.exports);else{let t=Ya(e,e,33554432&e.parent.parent.flags?void 0:la.Invalid_module_name_in_augmentation_module_0_cannot_be_found,!1,!0);if(!t)return;if(t=ts(t),1920&t.flags)if($($n,(e=>t===e.symbol))){const n=Qo(i.symbol,t,!0);Kn||(Kn=new Map),Kn.set(e.text,n)}else{if((null==(n=t.exports)?void 0:n.get("__export"))&&(null==(r=i.symbol.exports)?void 0:r.size)){const e=ad(t,"resolvedExports");for(const[n,r]of Oe(i.symbol.exports.entries()))e.has(n)&&!t.exports.has(n)&&Qo(e.get(n),r)}Qo(t,i.symbol)}else jo(e,la.Cannot_augment_module_0_because_it_resolves_to_a_non_module_entity,e.text)}else un.assert(i.symbol.declarations.length>1)}function oa(e){if(33554432&e.flags)return e.links;const t=RB(e);return $i[t]??($i[t]=new OB)}function aa(e){const t=jB(e);return Hi[t]||(Hi[t]=new LB)}function sa(e,t,n){if(n){const r=ds(e.get(t));if(r){if(r.flags&n)return r;if(2097152&r.flags&&za(r)&n)return r}}}function ca(t,n){const r=hd(t),i=hd(n),o=Dp(t);if(r!==i){if(M&&(r.externalModuleIndicator||i.externalModuleIndicator)||!j.outFile||lv(n)||33554432&t.flags)return!0;if(a(n,t))return!0;const o=e.getSourceFiles();return o.indexOf(r)<=o.indexOf(i)}if(16777216&n.flags||lv(n)||pN(n))return!0;if(t.pos<=n.pos&&(!cD(t)||!am(n.parent)||t.initializer||t.exclamationToken)){if(208===t.kind){const e=Sh(n,208);return e?_c(e,VD)!==_c(t,VD)||t.pose===t?"quit":rD(e)?e.parent.parent===t:!J&&aD(e)&&(e.parent===t||_D(e.parent)&&e.parent.parent===t||dl(e.parent)&&e.parent.parent===t||cD(e.parent)&&e.parent.parent===t||oD(e.parent)&&e.parent.parent.parent===t)));return!e||!(J||!aD(e))&&!!_c(n,(t=>t===e?"quit":n_(t)&&!im(t)))}return cD(t)?!s(t,n,!1):!Ys(t,t.parent)||!(V&&Gf(t)===Gf(n)&&a(n,t))}return!(!(281===n.parent.kind||277===n.parent.kind&&n.parent.isExportEquals)&&(277!==n.kind||!n.isExportEquals)&&(!a(n,t)||V&&Gf(t)&&(cD(t)||Ys(t,t.parent))&&s(t,n,!0)));function a(e,t){return!!_c(e,(n=>{if(n===o)return"quit";if(n_(n))return!0;if(uD(n))return t.pos=r&&o.pos<=i){const n=XC.createPropertyAccessExpression(XC.createThis(),e);if(wT(n.expression,n),wT(n,o),n.flowNode=o.returnFlowNode,!RS(JF(n,t,tw(t))))return!0}return!1}(e,S_(ps(t)),N(t.parent.members,uD),t.parent.pos,n.pos))return!0}}else if(172!==t.kind||Nv(t)||Gf(e)!==Gf(t))return!0;return!1}))}function s(e,t,n){return!(t.end>e.end)&&void 0===_c(t,(t=>{if(t===e)return"quit";switch(t.kind){case 219:return!0;case 172:return!n||!(cD(e)&&t.parent===e.parent||Ys(e,e.parent)&&t.parent===e.parent.parent)||"quit";case 241:switch(t.parent.kind){case 177:case 174:case 178:return!0;default:return!1}default:return!1}}))}}function _a(e){return aa(e).declarationRequiresScopeChange}function ua(e,t){aa(e).declarationRequiresScopeChange=t}function da(e,t,n){return t?iT(e,jp(t,281===t.kind||278===t.kind||280===t.kind?la._0_was_exported_here:la._0_was_imported_here,n)):e}function pa(e){return Ze(e)?fc(e):Ep(e)}function fa(e,t,n){if(!zN(e)||e.escapedText!==t||EB(e)||lv(e))return!1;const r=Zf(e,!1,!1);let i=r;for(;i;){if(__(i.parent)){const o=ps(i.parent);if(!o)break;if(Cf(S_(o),t))return jo(e,la.Cannot_find_name_0_Did_you_mean_the_static_member_1_0,pa(n),ic(o)),!0;if(i===r&&!Nv(i)&&Cf(fu(o).thisType,t))return jo(e,la.Cannot_find_name_0_Did_you_mean_the_instance_member_this_0,pa(n)),!0}i=i.parent}return!1}function ma(e){const t=ga(e);return!(!t||!Ka(t,64,!0)||(jo(e,la.Cannot_extend_an_interface_0_Did_you_mean_implements,Kd(t)),0))}function ga(e){switch(e.kind){case 80:case 211:return e.parent?ga(e.parent):void 0;case 233:if(ob(e.expression))return e.expression;default:return}}function ha(e){return"any"===e||"string"===e||"number"===e||"boolean"===e||"never"===e||"unknown"===e}function ya(e,t,n){return!!t&&!!_c(e,(e=>e===t||!!(e===n||n_(e)&&(!im(e)||3&Ih(e)))&&"quit"))}function va(e){switch(e.kind){case 271:return e;case 273:return e.parent;case 274:return e.parent.parent;case 276:return e.parent.parent.parent;default:return}}function ba(e){return e.declarations&&x(e.declarations,xa)}function xa(e){return 271===e.kind||270===e.kind||273===e.kind&&!!e.name||274===e.kind||280===e.kind||276===e.kind||281===e.kind||277===e.kind&&fh(e)||cF(e)&&2===eg(e)&&fh(e)||kx(e)&&cF(e.parent)&&e.parent.left===e&&64===e.parent.operatorToken.kind&&ka(e.parent.right)||304===e.kind||303===e.kind&&ka(e.initializer)||260===e.kind&&jm(e)||208===e.kind&&jm(e.parent.parent)}function ka(e){return ph(e)||eF(e)&&qO(e)}function Sa(e,t,n,r){const i=e.exports.get("export="),o=i?Cf(S_(i),t,!0):e.exports.get(t),a=Ma(o,r);return qa(n,o,a,!1),a}function Ta(e){return pE(e)&&!e.isExportEquals||wv(e,2048)||gE(e)||_E(e)}function Ca(t){return Lu(t)?e.getEmitSyntaxForUsageLocation(hd(t),t):void 0}function wa(e,t){if(100<=M&&M<=199&&99===Ca(e)){t??(t=Qa(e,e,!0));const n=t&&yd(t);return n&&(Yp(n)||".d.json.ts"===HI(n.fileName))}return!1}function Na(t,n,r,i){const o=t&&Ca(i);if(t&&void 0!==o){const n=e.getImpliedNodeFormatForEmit(t);if(99===o&&1===n&&100<=M&&M<=199)return!0;if(99===o&&99===n)return!1}if(!W)return!1;if(!t||t.isDeclarationFile){const e=Sa(n,"default",void 0,!0);return!(e&&$(e.declarations,Ta)||Sa(n,pc("__esModule"),void 0,r))}return Dm(t)?"object"!=typeof t.externalModuleIndicator&&!Sa(n,pc("__esModule"),void 0,r):is(n)}function Fa(e,t,n){var r;let i;i=lp(e)?e:Sa(e,"default",t,n);const o=null==(r=e.declarations)?void 0:r.find(qE),a=Ea(t);if(!a)return i;const s=wa(a,e),c=Na(o,e,n,a);if(i||c||s){if(c||s){const r=ts(e,n)||Ma(e,n);return qa(t,e,r,!1),r}}else if(is(e)&&!W){const n=M>=5?"allowSyntheticDefaultImports":"esModuleInterop",r=e.exports.get("export=").valueDeclaration,i=jo(t.name,la.Module_0_can_only_be_default_imported_using_the_1_flag,ic(e),n);r&&iT(i,jp(r,la.This_module_is_declared_with_export_and_can_only_be_used_with_a_default_import_when_using_the_0_flag,n))}else rE(t)?function(e,t){var n,r,i;if(null==(n=e.exports)?void 0:n.has(t.symbol.escapedName))jo(t.name,la.Module_0_has_no_default_export_Did_you_mean_to_use_import_1_from_0_instead,ic(e),ic(t.symbol));else{const n=jo(t.name,la.Module_0_has_no_default_export,ic(e)),o=null==(r=e.exports)?void 0:r.get("__export");if(o){const e=null==(i=o.declarations)?void 0:i.find((e=>{var t,n;return!!(fE(e)&&e.moduleSpecifier&&(null==(n=null==(t=Qa(e,e.moduleSpecifier))?void 0:t.exports)?void 0:n.has("default")))}));e&&iT(n,jp(e,la.export_Asterisk_does_not_re_export_a_default))}}}(e,t):Aa(e,e,t,Rl(t)&&t.propertyName||t.name);return qa(t,i,void 0,!1),i}function Ea(e){switch(e.kind){case 273:return e.parent.moduleSpecifier;case 271:return xE(e.moduleReference)?e.moduleReference.expression:void 0;case 274:case 281:return e.parent.parent.moduleSpecifier;case 276:return e.parent.parent.parent.moduleSpecifier;default:return un.assertNever(e)}}function Pa(e,t,n=!1){var r;const i=Cm(e)||e.moduleSpecifier,o=Qa(e,i),a=!HD(t)&&t.propertyName||t.name;if(!zN(a)&&11!==a.kind)return;const s=Wd(a),c=ns(o,i,!1,"default"===s&&W);if(c&&(s||11===a.kind)){if(lp(o))return o;let l;l=o&&o.exports&&o.exports.get("export=")?Cf(S_(c),s,!0):function(e,t){if(3&e.flags){const n=e.valueDeclaration.type;if(n)return Ma(Cf(dk(n),t))}}(c,s),l=Ma(l,n);let _=function(e,t,n,r){var i;if(1536&e.flags){const o=cs(e).get(t),a=Ma(o,r);return qa(n,o,a,!1,null==(i=oa(e).typeOnlyExportStarMap)?void 0:i.get(t),t),a}}(c,s,t,n);if(void 0===_&&"default"===s){const e=null==(r=o.declarations)?void 0:r.find(qE);(wa(i,o)||Na(e,o,n,i))&&(_=ts(o,n)||Ma(o,n))}const u=_&&l&&_!==l?function(e,t){if(e===xt&&t===xt)return xt;if(790504&e.flags)return e;const n=Wo(e.flags|t.flags,e.escapedName);return un.assert(e.declarations||t.declarations),n.declarations=Q(K(e.declarations,t.declarations),mt),n.parent=e.parent||t.parent,e.valueDeclaration&&(n.valueDeclaration=e.valueDeclaration),t.members&&(n.members=new Map(t.members)),e.exports&&(n.exports=new Map(e.exports)),n}(l,_):_||l;return Rl(t)&&wa(i,o)&&"default"!==s?jo(a,la.Named_imports_from_a_JSON_file_into_an_ECMAScript_module_are_not_allowed_when_module_is_set_to_0,fi[M]):u||Aa(o,c,e,a),u}}function Aa(e,t,n,r){var i;const o=Ha(e,n),a=Ep(r),s=zN(r)?BI(r,t):void 0;if(void 0!==s){const e=ic(s),t=jo(r,la._0_has_no_exported_member_named_1_Did_you_mean_2,o,a,e);s.valueDeclaration&&iT(t,jp(s.valueDeclaration,la._0_is_declared_here,e))}else(null==(i=e.exports)?void 0:i.has("default"))?jo(r,la.Module_0_has_no_exported_member_1_Did_you_mean_to_use_import_1_from_0_instead,o,a):function(e,t,n,r,i){var o,a;const s=null==(a=null==(o=tt(r.valueDeclaration,au))?void 0:o.locals)?void 0:a.get(Wd(t)),c=r.exports;if(s){const r=null==c?void 0:c.get("export=");if(r)ks(r,s)?function(e,t,n,r){M>=5?jo(t,kk(j)?la._0_can_only_be_imported_by_using_a_default_import:la._0_can_only_be_imported_by_turning_on_the_esModuleInterop_flag_and_using_a_default_import,n):Fm(e)?jo(t,kk(j)?la._0_can_only_be_imported_by_using_a_require_call_or_by_using_a_default_import:la._0_can_only_be_imported_by_using_a_require_call_or_by_turning_on_the_esModuleInterop_flag_and_using_a_default_import,n):jo(t,kk(j)?la._0_can_only_be_imported_by_using_import_1_require_2_or_a_default_import:la._0_can_only_be_imported_by_using_import_1_require_2_or_by_turning_on_the_esModuleInterop_flag_and_using_a_default_import,n,n,r)}(e,t,n,i):jo(t,la.Module_0_has_no_exported_member_1,i,n);else{const e=c?b(Lm(c),(e=>!!ks(e,s))):void 0,r=e?jo(t,la.Module_0_declares_1_locally_but_it_is_exported_as_2,i,n,ic(e)):jo(t,la.Module_0_declares_1_locally_but_it_is_not_exported,i,n);s.declarations&&iT(r,...E(s.declarations,((e,t)=>jp(e,0===t?la._0_is_declared_here:la.and_here,n))))}}else jo(t,la.Module_0_has_no_exported_member_1,i,n)}(n,r,a,e,o)}function Ia(e){if(VF(e)&&e.initializer&&HD(e.initializer))return e.initializer}function Oa(e,t,n){const r=e.propertyName||e.name;if($d(r)){const t=Ea(e),r=t&&Qa(e,t);if(r)return Fa(r,e,!!n)}const i=e.parent.parent.moduleSpecifier?Pa(e.parent.parent,e,n):11===r.kind?void 0:Ka(r,t,!1,n);return qa(e,void 0,i,!1),i}function La(e,t){if(pF(e))return fj(e).symbol;if(!Zl(e)&&!ob(e))return;return Ka(e,901119,!0,t)||(fj(e),aa(e).resolvedSymbol)}function ja(e,t=!1){switch(e.kind){case 271:case 260:return function(e,t){const n=Ia(e);if(n){const e=Cx(n.expression).arguments[0];return zN(n.name)?Ma(Cf(mg(e),n.name.escapedText)):void 0}if(VF(e)||283===e.moduleReference.kind){const t=Qa(e,Cm(e)||Tm(e)),n=ts(t);return qa(e,t,n,!1),n}const r=$a(e.moduleReference,t);return function(e,t){if(qa(e,void 0,t,!1)&&!e.isTypeOnly){const t=Wa(ps(e)),n=281===t.kind||278===t.kind,r=n?la.An_import_alias_cannot_reference_a_declaration_that_was_exported_using_export_type:la.An_import_alias_cannot_reference_a_declaration_that_was_imported_using_import_type,i=n?la._0_was_exported_here:la._0_was_imported_here,o=278===t.kind?"*":Vd(t.name);iT(jo(e.moduleReference,r),jp(t,i,o))}}(e,r),r}(e,t);case 273:return function(e,t){const n=Qa(e,e.parent.moduleSpecifier);if(n)return Fa(n,e,t)}(e,t);case 274:return function(e,t){const n=e.parent.parent.moduleSpecifier,r=Qa(e,n),i=ns(r,n,t,!1);return qa(e,r,i,!1),i}(e,t);case 280:return function(e,t){const n=e.parent.moduleSpecifier,r=n&&Qa(e,n),i=n&&ns(r,n,t,!1);return qa(e,r,i,!1),i}(e,t);case 276:case 208:return function(e,t){if(dE(e)&&$d(e.propertyName||e.name)){const n=Ea(e),r=n&&Qa(e,n);if(r)return Fa(r,e,t)}const n=VD(e)?Qh(e):e.parent.parent.parent,r=Ia(n),i=Pa(n,r||e,t),o=e.propertyName||e.name;return r&&i&&zN(o)?Ma(Cf(S_(i),o.escapedText),t):(qa(e,void 0,i,!1),i)}(e,t);case 281:return Oa(e,901119,t);case 277:case 226:return function(e,t){const n=La(pE(e)?e.expression:e.right,t);return qa(e,void 0,n,!1),n}(e,t);case 270:return function(e,t){if(ou(e.parent)){const n=ts(e.parent.symbol,t);return qa(e,void 0,n,!1),n}}(e,t);case 304:return Ka(e.name,901119,!0,t);case 303:return La(e.initializer,t);case 212:case 211:return function(e,t){if(cF(e.parent)&&e.parent.left===e&&64===e.parent.operatorToken.kind)return La(e.parent.right,t)}(e,t);default:return un.fail()}}function Ra(e,t=901119){return!(!e||2097152!=(e.flags&(2097152|t))&&!(2097152&e.flags&&67108864&e.flags))}function Ma(e,t){return!t&&Ra(e)?Ba(e):e}function Ba(e){un.assert(!!(2097152&e.flags),"Should only get Alias here.");const t=oa(e);if(t.aliasTarget)t.aliasTarget===kt&&(t.aliasTarget=xt);else{t.aliasTarget=kt;const n=ba(e);if(!n)return un.fail();const r=ja(n);t.aliasTarget===kt?t.aliasTarget=r||xt:jo(n,la.Circular_definition_of_import_alias_0,ic(e))}return t.aliasTarget}function za(e,t,n){const r=t&&Wa(e),i=r&&fE(r),o=r&&(i?Qa(r.moduleSpecifier,r.moduleSpecifier,!0):Ba(r.symbol)),a=i&&o?ls(o):void 0;let s,c=n?0:e.flags;for(;2097152&e.flags;){const t=Ss(Ba(e));if(!i&&t===o||(null==a?void 0:a.get(t.escapedName))===t)break;if(t===xt)return-1;if(t===e||(null==s?void 0:s.has(t)))break;2097152&t.flags&&(s?s.add(t):s=new Set([e,t])),c|=t.flags,e=t}return c}function qa(e,t,n,r,i,o){if(!e||HD(e))return!1;const a=ps(e);if(Jl(e))return oa(a).typeOnlyDeclaration=e,!0;if(i){const e=oa(a);return e.typeOnlyDeclaration=i,a.escapedName!==o&&(e.typeOnlyExportStarName=o),!0}const s=oa(a);return Va(s,t,r)||Va(s,n,r)}function Va(e,t,n){var r;if(t&&(void 0===e.typeOnlyDeclaration||n&&!1===e.typeOnlyDeclaration)){const n=(null==(r=t.exports)?void 0:r.get("export="))??t,i=n.declarations&&b(n.declarations,Jl);e.typeOnlyDeclaration=i??oa(n).typeOnlyDeclaration??!1}return!!e.typeOnlyDeclaration}function Wa(e,t){var n;if(!(2097152&e.flags))return;const r=oa(e);if(void 0===r.typeOnlyDeclaration){r.typeOnlyDeclaration=!1;const t=Ma(e);qa(null==(n=e.declarations)?void 0:n[0],ba(e)&&wA(e),t,!0)}return void 0===t?r.typeOnlyDeclaration||void 0:r.typeOnlyDeclaration&&za(278===r.typeOnlyDeclaration.kind?Ma(ls(r.typeOnlyDeclaration.symbol.parent).get(r.typeOnlyExportStarName||e.escapedName)):Ba(r.typeOnlyDeclaration.symbol))&t?r.typeOnlyDeclaration:void 0}function $a(e,t){return 80===e.kind&&ub(e)&&(e=e.parent),80===e.kind||166===e.parent.kind?Ka(e,1920,!1,t):(un.assert(271===e.parent.kind),Ka(e,901119,!1,t))}function Ha(e,t){return e.parent?Ha(e.parent,t)+"."+ic(e):ic(e,t,void 0,36)}function Ka(e,t,n,r,i){if(Cd(e))return;const o=1920|(Fm(e)?111551&t:0);let a;if(80===e.kind){const r=t===o||Zh(e)?la.Cannot_find_namespace_0:uN(ab(e)),s=Fm(e)&&!Zh(e)?function(e,t){if(yy(e.parent)){const n=function(e){if(_c(e,(e=>ku(e)||16777216&e.flags?Ng(e):"quit")))return;const t=Ug(e);if(t&&DF(t)&&dg(t.expression)){const e=ps(t.expression.left);if(e)return Ga(e)}if(t&&eF(t)&&dg(t.parent)&&DF(t.parent.parent)){const e=ps(t.parent.left);if(e)return Ga(e)}if(t&&(Mf(t)||ME(t))&&cF(t.parent.parent)&&6===eg(t.parent.parent)){const e=ps(t.parent.parent.left);if(e)return Ga(e)}const n=qg(e);if(n&&n_(n)){const e=ps(n);return e&&e.valueDeclaration}}(e.parent);if(n)return Ue(n,e,t,void 0,!0)}}(e,t):void 0;if(a=ds(Ue(i||e,e,t,n||s?void 0:r,!0,!1)),!a)return ds(s)}else if(166===e.kind||211===e.kind){const r=166===e.kind?e.left:e.expression,s=166===e.kind?e.right:e.name;let c=Ka(r,o,n,!1,i);if(!c||Cd(s))return;if(c===xt)return c;if(c.valueDeclaration&&Fm(c.valueDeclaration)&&100!==vk(j)&&VF(c.valueDeclaration)&&c.valueDeclaration.initializer&&QO(c.valueDeclaration.initializer)){const e=c.valueDeclaration.initializer.arguments[0],t=Qa(e,e);if(t){const e=ts(t);e&&(c=e)}}if(a=ds(sa(cs(c),s.escapedText,t)),!a&&2097152&c.flags&&(a=ds(sa(cs(Ba(c)),s.escapedText,t))),!a){if(!n){const n=Ha(c),r=Ep(s),i=BI(s,c);if(i)return void jo(s,la._0_has_no_exported_member_named_1_Did_you_mean_2,n,r,ic(i));const o=nD(e)&&function(e){for(;nD(e.parent);)e=e.parent;return e}(e),a=Gn&&788968&t&&o&&!rF(o.parent)&&function(e){let t=ab(e),n=Ue(t,t,111551,void 0,!0);if(n){for(;nD(t.parent);){if(n=Cf(S_(n),t.parent.right.escapedText),!n)return;t=t.parent}return n}}(o);if(a)return void jo(o,la._0_refers_to_a_value_but_is_being_used_as_a_type_here_Did_you_mean_typeof_0,Lp(o));if(1920&t&&nD(e.parent)){const t=ds(sa(cs(c),s.escapedText,788968));if(t)return void jo(e.parent.right,la.Cannot_access_0_1_because_0_is_a_type_but_not_a_namespace_Did_you_mean_to_retrieve_the_type_of_the_property_1_in_0_with_0_1,ic(t),fc(e.parent.right.escapedText))}jo(s,la.Namespace_0_has_no_exported_member_1,n,r)}return}}else un.assertNever(e,"Unknown entity name kind.");return!Zh(e)&&Zl(e)&&(2097152&a.flags||277===e.parent.kind)&&qa(dh(e),a,void 0,!0),a.flags&t||r?a:Ba(a)}function Ga(e){const t=e.parent.valueDeclaration;if(t)return(qm(t)?Wm(t):Eu(t)?Vm(t):void 0)||t}function Qa(e,t,n){const r=1===vk(j)?la.Cannot_find_module_0_Did_you_mean_to_set_the_moduleResolution_option_to_nodenext_or_to_add_aliases_to_the_paths_option:la.Cannot_find_module_0_or_its_corresponding_type_declarations;return Ya(e,t,n?void 0:r,n)}function Ya(e,t,n,r=!1,i=!1){return Lu(t)?Za(e,t.text,n,r?void 0:t,i):void 0}function Za(t,n,r,i,o=!1){var a,s,c,l,_,u,d,p,f,m,g;i&&Gt(n,"@types/")&&jo(i,la.Cannot_import_type_declaration_files_Consider_importing_0_instead_of_1,Xt(n,"@types/"),n);const h=Mm(n,!0);if(h)return h;const y=hd(t),v=Lu(t)?t:(null==(a=QF(t)?t:t.parent&&QF(t.parent)&&t.parent.name===t?t.parent:void 0)?void 0:a.name)||(null==(s=_f(t)?t:void 0)?void 0:s.argument.literal)||(VF(t)&&t.initializer&&Om(t.initializer,!0)?t.initializer.arguments[0]:void 0)||(null==(c=_c(t,cf))?void 0:c.arguments[0])||(null==(l=_c(t,en(nE,PP,fE)))?void 0:l.moduleSpecifier)||(null==(_=_c(t,Sm))?void 0:_.moduleReference.expression),b=v&&Lu(v)?e.getModeForUsageLocation(y,v):e.getDefaultResolutionModeForFile(y),x=vk(j),k=null==(u=e.getResolvedModule(y,n,b))?void 0:u.resolvedModule,S=i&&k&&EV(j,k,y),T=k&&(!S||S===la.Module_0_was_resolved_to_1_but_jsx_is_not_set)&&e.getSourceFile(k.resolvedFileName);if(T){if(S&&jo(i,S,n,k.resolvedFileName),k.resolvedUsingTsExtension&&$I(n)){const e=(null==(d=_c(t,nE))?void 0:d.importClause)||_c(t,en(tE,fE));(i&&e&&!e.isTypeOnly||_c(t,cf))&&jo(i,la.A_declaration_file_cannot_be_imported_without_import_type_Did_you_mean_to_import_an_implementation_file_0_instead,function(e){const t=US(n,e);if(Ik(M)||99===b){const r=$I(n)&&bM(j);return t+(".mts"===e||".d.mts"===e?r?".mts":".mjs":".cts"===e||".d.mts"===e?r?".cts":".cjs":r?".ts":".js")}return t}(un.checkDefined(vb(n))))}else if(k.resolvedUsingTsExtension&&!bM(j,y.fileName)){const e=(null==(p=_c(t,nE))?void 0:p.importClause)||_c(t,en(tE,fE));if(i&&!(null==e?void 0:e.isTypeOnly)&&!_c(t,BD)){const e=un.checkDefined(vb(n));jo(i,la.An_import_path_can_only_end_with_a_0_extension_when_allowImportingTsExtensions_is_enabled,e)}}else if(j.rewriteRelativeImportExtensions&&!(33554432&t.flags)&&!$I(n)&&!_f(t)&&!zl(t)){const t=bg(n,j);if(!k.resolvedUsingTsExtension&&t)jo(i,la.This_relative_import_path_is_unsafe_to_rewrite_because_it_looks_like_a_file_name_but_actually_resolves_to_0,ia(Bo(y.fileName,e.getCurrentDirectory()),k.resolvedFileName,jy(e)));else if(k.resolvedUsingTsExtension&&!t&&Gy(T,e))jo(i,la.This_import_uses_a_0_extension_to_resolve_to_an_input_TypeScript_file_but_will_not_be_rewritten_during_emit_because_it_is_not_a_relative_path,Po(n));else if(k.resolvedUsingTsExtension&&t){const t=e.getResolvedProjectReferenceToRedirect(T.path);if(t){const n=!e.useCaseSensitiveFileNames(),r=e.getCommonSourceDirectory(),o=Vq(t.commandLine,n);na(r,o,n)!==na(j.outDir||r,t.commandLine.options.outDir||o,n)&&jo(i,la.This_import_path_is_unsafe_to_rewrite_because_it_resolves_to_another_project_and_the_relative_path_between_the_projects_output_files_is_not_the_same_as_the_relative_path_between_its_input_files)}}}if(T.symbol){if(i&&k.isExternalLibraryImport&&!XS(k.extension)&&es(!1,i,y,b,k,n),i&&(3===x||99===x)){const e=1===y.impliedNodeFormat&&!_c(t,cf)||!!_c(t,tE),r=_c(t,(e=>BD(e)||fE(e)||nE(e)||PP(e)));if(e&&99===T.impliedNodeFormat&&!cC(r))if(_c(t,tE))jo(i,la.Module_0_cannot_be_imported_using_this_construct_The_specifier_only_resolves_to_an_ES_module_which_cannot_be_imported_with_require_Use_an_ECMAScript_import_instead,n);else{let e;const t=ZS(y.fileName);".ts"!==t&&".js"!==t&&".tsx"!==t&&".jsx"!==t||(e=ud(y));const o=272===(null==r?void 0:r.kind)&&(null==(f=r.importClause)?void 0:f.isTypeOnly)?la.Type_only_import_of_an_ECMAScript_module_from_a_CommonJS_module_must_have_a_resolution_mode_attribute:205===(null==r?void 0:r.kind)?la.Type_import_of_an_ECMAScript_module_from_a_CommonJS_module_must_have_a_resolution_mode_attribute:la.The_current_file_is_a_CommonJS_module_whose_imports_will_produce_require_calls_however_the_referenced_file_is_an_ECMAScript_module_and_cannot_be_imported_with_require_Consider_writing_a_dynamic_import_0_call_instead;uo.add(Bp(hd(i),i,Yx(e,o,n)))}}return ds(T.symbol)}i&&r&&!xC(i)&&jo(i,la.File_0_is_not_a_module,T.fileName)}else{if($n){const e=Kt($n,(e=>e.pattern),n);if(e){const t=Kn&&Kn.get(n);return ds(t||e.symbol)}}if(i){if((!k||XS(k.extension)||void 0!==S)&&S!==la.Could_not_find_a_declaration_file_for_module_0_1_implicitly_has_an_any_type){if(r){if(k){const t=e.getProjectReferenceRedirect(k.resolvedFileName);if(t)return void jo(i,la.Output_file_0_has_not_been_built_from_source_file_1,t,k.resolvedFileName)}if(S)jo(i,S,n,k.resolvedFileName);else{const t=vo(n)&&!xo(n),o=3===x||99===x;if(!wk(j)&&ko(n,".json")&&1!==x&&Ok(j))jo(i,la.Cannot_find_module_0_Consider_using_resolveJsonModule_to_import_module_with_json_extension,n);else if(99===b&&o&&t){const t=Bo(n,Do(y.path)),r=null==(m=Co.find((([n,r])=>e.fileExists(t+n))))?void 0:m[1];r?jo(i,la.Relative_import_paths_need_explicit_file_extensions_in_ECMAScript_imports_when_moduleResolution_is_node16_or_nodenext_Did_you_mean_0,n+r):jo(i,la.Relative_import_paths_need_explicit_file_extensions_in_ECMAScript_imports_when_moduleResolution_is_node16_or_nodenext_Consider_adding_an_extension_to_the_import_path)}else(null==(g=e.getResolvedModule(y,n,b))?void 0:g.alternateResult)?Mo(!0,i,Yx(_d(y,e,n,b,n),r,n)):jo(i,r,n)}}return}o?jo(i,la.Invalid_module_name_in_augmentation_Module_0_resolves_to_an_untyped_module_at_1_which_cannot_be_augmented,n,k.resolvedFileName):es(ne&&!!r,i,y,b,k,n)}}}function es(t,n,r,i,{packageId:o,resolvedFileName:a},s){if(xC(n))return;let c;!Ts(s)&&o&&(c=_d(r,e,s,i,o.name)),Mo(t,n,Yx(c,la.Could_not_find_a_declaration_file_for_module_0_1_implicitly_has_an_any_type,s,a))}function ts(e,t){if(null==e?void 0:e.exports){const n=function(e,t){if(!e||e===xt||e===t||1===t.exports.size||2097152&e.flags)return e;const n=oa(e);if(n.cjsExportMerged)return n.cjsExportMerged;const r=33554432&e.flags?e:Xo(e);return r.flags=512|r.flags,void 0===r.exports&&(r.exports=Hu()),t.exports.forEach(((e,t)=>{"export="!==t&&r.exports.set(t,r.exports.has(t)?Qo(r.exports.get(t),e):e)})),r===e&&(oa(r).resolvedExports=void 0,oa(r).resolvedMembers=void 0),oa(r).cjsExportMerged=r,n.cjsExportMerged=r}(ds(Ma(e.exports.get("export="),t)),ds(e));return ds(n)||e}}function ns(t,n,r,i){var o;const a=ts(t,r);if(!r&&a){if(!(i||1539&a.flags||Wu(a,307))){const e=M>=5?"allowSyntheticDefaultImports":"esModuleInterop";return jo(n,la.This_module_can_only_be_referenced_with_ECMAScript_imports_Slashexports_by_turning_on_the_0_flag_and_referencing_its_default_export,e),a}const r=n.parent;if(nE(r)&&kg(r)||cf(r)){const n=cf(r)?r.arguments[0]:r.moduleSpecifier,i=S_(a),l=GO(i,a,t,n);if(l)return rs(a,l,r);const _=null==(o=null==t?void 0:t.declarations)?void 0:o.find(qE),u=_&&(s=Ca(n),c=e.getImpliedNodeFormatForEmit(_),99===s&&1===c);if(kk(j)||u){let e=jf(i,0);if(e&&e.length||(e=jf(i,1)),e&&e.length||Cf(i,"default",!0)||u)return rs(a,3670016&i.flags?XO(i,a,t,n):KO(a,a.parent),r)}}}var s,c;return a}function rs(e,t,n){const r=Wo(e.flags,e.escapedName);r.declarations=e.declarations?e.declarations.slice():[],r.parent=e.parent,r.links.target=e,r.links.originatingImport=n,e.valueDeclaration&&(r.valueDeclaration=e.valueDeclaration),e.constEnumOnlyModule&&(r.constEnumOnlyModule=!0),e.members&&(r.members=new Map(e.members)),e.exports&&(r.exports=new Map(e.exports));const i=pp(t);return r.links.type=Bs(r,i.members,l,l,i.indexInfos),r}function is(e){return void 0!==e.exports.get("export=")}function os(e){return Lm(ls(e))}function as(e,t){const n=ls(t);if(n)return n.get(e)}function ss(e){return!(402784252&e.flags||1&mx(e)||yC(e)||UC(e))}function cs(e){return 6256&e.flags?ad(e,"resolvedExports"):1536&e.flags?ls(e):e.exports||P}function ls(e){const t=oa(e);if(!t.resolvedExports){const{exports:n,typeOnlyExportStarMap:r}=us(e);t.resolvedExports=n,t.typeOnlyExportStarMap=r}return t.resolvedExports}function _s(e,t,n,r){t&&t.forEach(((t,i)=>{if("default"===i)return;const o=e.get(i);if(o){if(n&&r&&o&&Ma(o)!==Ma(t)){const e=n.get(i);e.exportsWithDuplicate?e.exportsWithDuplicate.push(r):e.exportsWithDuplicate=[r]}}else e.set(i,t),n&&r&&n.set(i,{specifierText:Kd(r.moduleSpecifier)})}))}function us(e){const t=[];let n;const r=new Set,i=function e(i,o,a){if(!a&&(null==i?void 0:i.exports)&&i.exports.forEach(((e,t)=>r.add(t))),!(i&&i.exports&&ce(t,i)))return;const s=new Map(i.exports),c=i.exports.get("__export");if(c){const t=Hu(),n=new Map;if(c.declarations)for(const r of c.declarations){_s(t,e(Qa(r,r.moduleSpecifier),r,a||r.isTypeOnly),n,r)}n.forEach((({exportsWithDuplicate:e},t)=>{if("export="!==t&&e&&e.length&&!s.has(t))for(const r of e)uo.add(jp(r,la.Module_0_has_already_exported_a_member_named_1_Consider_explicitly_re_exporting_to_resolve_the_ambiguity,n.get(t).specifierText,fc(t)))})),_s(s,t)}return(null==o?void 0:o.isTypeOnly)&&(n??(n=new Map),s.forEach(((e,t)=>n.set(t,o)))),s}(e=ts(e))||P;return n&&r.forEach((e=>n.delete(e))),{exports:i,typeOnlyExportStarMap:n}}function ds(e){let t;return e&&e.mergeId&&(t=Wi[e.mergeId])?t:e}function ps(e){return ds(e.symbol&&cd(e.symbol))}function gs(e){return ou(e)?ps(e):void 0}function hs(e){return ds(e.parent&&cd(e.parent))}function ys(e){var t,n;return(219===(null==(t=e.valueDeclaration)?void 0:t.kind)||218===(null==(n=e.valueDeclaration)?void 0:n.kind))&&gs(e.valueDeclaration.parent)||e}function vs(t,n,r){const i=hs(t);if(i&&!(262144&t.flags))return _(i);const o=B(t.declarations,(e=>{if(!ap(e)&&e.parent){if(Qs(e.parent))return ps(e.parent);if(YF(e.parent)&&e.parent.parent&&ts(ps(e.parent.parent))===t)return ps(e.parent.parent)}if(pF(e)&&cF(e.parent)&&64===e.parent.operatorToken.kind&&kx(e.parent.left)&&ob(e.parent.left.expression))return Zm(e.parent.left)||Qm(e.parent.left.expression)?ps(hd(e)):(fj(e.parent.left.expression),aa(e.parent.left.expression).resolvedSymbol)}));if(!u(o))return;const a=B(o,(e=>xs(e,t)?e:void 0));let s=[],c=[];for(const e of a){const[t,...n]=_(e);s=ie(s,t),c=se(c,n)}return K(s,c);function _(i){const o=B(i.declarations,d),a=n&&function(t,n){const r=hd(n),i=jB(r),o=oa(t);let a;if(o.extendedContainersByFile&&(a=o.extendedContainersByFile.get(i)))return a;if(r&&r.imports){for(const e of r.imports){if(Zh(e))continue;const r=Qa(n,e,!0);r&&xs(r,t)&&(a=ie(a,r))}if(u(a))return(o.extendedContainersByFile||(o.extendedContainersByFile=new Map)).set(i,a),a}if(o.extendedContainers)return o.extendedContainers;const s=e.getSourceFiles();for(const e of s){if(!MI(e))continue;const n=ps(e);xs(n,t)&&(a=ie(a,n))}return o.extendedContainers=a||l}(t,n),s=function(e,t){const n=!!u(e.declarations)&&ge(e.declarations);if(111551&t&&n&&n.parent&&VF(n.parent)&&($D(n)&&n===n.parent.initializer||SD(n)&&n===n.parent.type))return ps(n.parent)}(i,r);if(n&&i.flags&zs(r)&&qs(i,n,1920,!1))return ie(K(K([i],o),a),s);const c=!(i.flags&zs(r))&&788968&i.flags&&524288&fu(i).flags&&111551===r?Js(n,(e=>td(e,(e=>{if(e.flags&zs(r)&&S_(e)===fu(i))return e})))):void 0;let _=c?[c,...o,i]:[...o,i];return _=ie(_,s),_=se(_,a),_}function d(e){return i&&bs(e,i)}}function bs(e,t){const n=Gs(e),r=n&&n.exports&&n.exports.get("export=");return r&&ks(r,t)?n:void 0}function xs(e,t){if(e===hs(t))return t;const n=e.exports&&e.exports.get("export=");if(n&&ks(n,t))return e;const r=cs(e),i=r.get(t.escapedName);return i&&ks(i,t)?i:td(r,(e=>{if(ks(e,t))return e}))}function ks(e,t){if(ds(Ma(ds(e)))===ds(Ma(ds(t))))return e}function Ss(e){return ds(e&&!!(1048576&e.flags)&&e.exportSymbol||e)}function Cs(e,t){return!!(111551&e.flags||2097152&e.flags&&111551&za(e,!t))}function ws(e){var t;const n=new c(He,e);return p++,n.id=p,null==(t=Hn)||t.recordType(n),n}function Ns(e,t){const n=ws(e);return n.symbol=t,n}function Fs(e){return new c(He,e)}function As(e,t,n=0,r){!function(e,t){const n=`${e},${t??""}`;Ct.has(n)&&un.fail(`Duplicate intrinsic type name ${e}${t?` (${t})`:""}; you may need to pass a name to createIntrinsicType.`),Ct.add(n)}(t,r);const i=ws(e);return i.intrinsicName=t,i.debugIntrinsicName=r,i.objectFlags=52953088|n,i}function Is(e,t){const n=Ns(524288,t);return n.objectFlags=e,n.members=void 0,n.properties=void 0,n.callSignatures=void 0,n.constructSignatures=void 0,n.indexInfos=void 0,n}function Os(e){return Ns(262144,e)}function Ls(e){return 95===e.charCodeAt(0)&&95===e.charCodeAt(1)&&95!==e.charCodeAt(2)&&64!==e.charCodeAt(2)&&35!==e.charCodeAt(2)}function js(e){let t;return e.forEach(((e,n)=>{Rs(e,n)&&(t||(t=[])).push(e)})),t||l}function Rs(e,t){return!Ls(t)&&Cs(e)}function Ms(e,t,n,r,i){const o=e;return o.members=t,o.properties=l,o.callSignatures=n,o.constructSignatures=r,o.indexInfos=i,t!==P&&(o.properties=js(t)),o}function Bs(e,t,n,r,i){return Ms(Is(16,e),t,n,r,i)}function Js(e,t){let n;for(let r=e;r;r=r.parent){if(au(r)&&r.locals&&!Xp(r)&&(n=t(r.locals,void 0,!0,r)))return n;switch(r.kind){case 307:if(!Qp(r))break;case 267:const e=ps(r);if(n=t((null==e?void 0:e.exports)||P,void 0,!0,r))return n;break;case 263:case 231:case 264:let i;if((ps(r).members||P).forEach(((e,t)=>{788968&e.flags&&(i||(i=Hu())).set(t,e)})),i&&(n=t(i,void 0,!1,r)))return n}}return t(Ne,void 0,!0)}function zs(e){return 111551===e?111551:1920}function qs(e,t,n,r,i=new Map){if(!e||function(e){if(e.declarations&&e.declarations.length){for(const t of e.declarations)switch(t.kind){case 172:case 174:case 177:case 178:continue;default:return!1}return!0}return!1}(e))return;const o=oa(e),a=o.accessibleChainCache||(o.accessibleChainCache=new Map),s=Js(t,((e,t,n,r)=>r)),c=`${r?0:1}|${s?jB(s):0}|${n}`;if(a.has(c))return a.get(c);const l=RB(e);let _=i.get(l);_||i.set(l,_=[]);const u=Js(t,d);return a.set(c,u),u;function d(n,i,o){if(!ce(_,n))return;const a=function(n,i,o){if(f(n.get(e.escapedName),void 0,i))return[e];return td(n,(n=>{if(2097152&n.flags&&"export="!==n.escapedName&&"default"!==n.escapedName&&!(gx(n)&&t&&MI(hd(t)))&&(!r||$(n.declarations,Sm))&&(!o||!$(n.declarations,km))&&(i||!Wu(n,281))){const e=m(n,Ba(n),i);if(e)return e}if(n.escapedName===e.escapedName&&n.exportSymbol&&f(ds(n.exportSymbol),void 0,i))return[e]}))||(n===Ne?m(Fe,Fe,i):void 0)}(n,i,o);return _.pop(),a}function p(e,n){return!Us(e,t,n)||!!qs(e.parent,t,zs(n),r,i)}function f(t,r,i){return(e===(r||t)||ds(e)===ds(r||t))&&!$(t.declarations,Qs)&&(i||p(ds(t),n))}function m(e,t,r){if(f(e,t,r))return[e];const i=cs(t),o=i&&d(i,!0);return o&&p(e,zs(n))?[e].concat(o):void 0}}function Us(e,t,n){let r=!1;return Js(t,(t=>{let i=ds(t.get(e.escapedName));if(!i)return!1;if(i===e)return!0;const o=2097152&i.flags&&!Wu(i,281);return i=o?Ba(i):i,!!((o?za(i):i.flags)&n)&&(r=!0,!0)})),r}function Vs(e,t){return 0===Ks(e,t,111551,!1,!0).accessibility}function Ws(e,t,n){return 0===Ks(e,t,n,!1,!1).accessibility}function $s(e,t,n,r,i,o){if(!u(e))return;let a,s=!1;for(const c of e){const e=qs(c,t,r,!1);if(e){a=c;const t=Zs(e[0],i);if(t)return t}if(o&&$(c.declarations,Qs)){if(i){s=!0;continue}return{accessibility:0}}const l=$s(vs(c,t,r),t,n,n===c?zs(r):r,i,o);if(l)return l}return s?{accessibility:0}:a?{accessibility:1,errorSymbolName:ic(n,t,r),errorModuleName:a!==n?ic(a,t,1920):void 0}:void 0}function Hs(e,t,n,r){return Ks(e,t,n,r,!0)}function Ks(e,t,n,r,i){if(e&&t){const o=$s([e],t,e,n,r,i);if(o)return o;const a=d(e.declarations,Gs);return a&&a!==Gs(t)?{accessibility:2,errorSymbolName:ic(e,t,n),errorModuleName:ic(a),errorNode:Fm(t)?t:void 0}:{accessibility:1,errorSymbolName:ic(e,t,n)}}return{accessibility:0}}function Gs(e){const t=_c(e,Xs);return t&&ps(t)}function Xs(e){return ap(e)||307===e.kind&&Qp(e)}function Qs(e){return sp(e)||307===e.kind&&Qp(e)}function Zs(e,t){let n;if(v(N(e.declarations,(e=>80!==e.kind)),(function(t){var n,i;if(!Lc(t)){const o=va(t);if(o&&!wv(o,32)&&Lc(o.parent))return r(t,o);if(VF(t)&&wF(t.parent.parent)&&!wv(t.parent.parent,32)&&Lc(t.parent.parent.parent))return r(t,t.parent.parent);if(Tp(t)&&!wv(t,32)&&Lc(t.parent))return r(t,t);if(VD(t)){if(2097152&e.flags&&Fm(t)&&(null==(n=t.parent)?void 0:n.parent)&&VF(t.parent.parent)&&(null==(i=t.parent.parent.parent)?void 0:i.parent)&&wF(t.parent.parent.parent.parent)&&!wv(t.parent.parent.parent.parent,32)&&t.parent.parent.parent.parent.parent&&Lc(t.parent.parent.parent.parent.parent))return r(t,t.parent.parent.parent.parent);if(2&e.flags){const e=_c(t,wF);return!!wv(e,32)||!!Lc(e.parent)&&r(t,e)}}return!1}return!0})))return{accessibility:0,aliasesToMakeVisible:n};function r(e,r){return t&&(aa(e).isVisible=!0,n=le(n,r)),!0}}function ec(e){let t;return t=186===e.parent.kind||233===e.parent.kind&&!Tf(e.parent)||167===e.parent.kind||182===e.parent.kind&&e.parent.parameterName===e?1160127:166===e.kind||211===e.kind||271===e.parent.kind||166===e.parent.kind&&e.parent.left===e||211===e.parent.kind&&e.parent.expression===e||212===e.parent.kind&&e.parent.expression===e?1920:788968,t}function nc(e,t,n=!0){const r=ec(e),i=ab(e),o=Ue(t,i.escapedText,r,void 0,!1);return o&&262144&o.flags&&788968&r||!o&&cv(i)&&0===Hs(ps(Zf(i,!1,!1)),i,r,!1).accessibility?{accessibility:0}:o?Zs(o,n)||{accessibility:1,errorSymbolName:Kd(i),errorNode:i}:{accessibility:3,errorSymbolName:Kd(i),errorNode:i}}function ic(e,t,n,r=4,i){let o=70221824,a=0;2&r&&(o|=128),1&r&&(o|=512),8&r&&(o|=16384),32&r&&(a|=4),16&r&&(a|=1);const s=4&r?xe.symbolToNode:xe.symbolToEntityName;return i?c(i).getText():id(c);function c(r){const i=s(e,n,t,o,a),c=307===(null==t?void 0:t.kind)?tU():eU(),l=t&&hd(t);return c.writeNode(4,i,l,r),r}}function ac(e,t,n=0,r,i){return i?o(i).getText():id(o);function o(i){let o;o=262144&n?1===r?185:184:1===r?180:179;const a=xe.signatureToSignatureDeclaration(e,o,t,70222336|vc(n)),s=nU(),c=t&&hd(t);return s.writeNode(4,a,c,Oy(i)),i}}function sc(e,t,n=1064960,r=Iy("")){const i=j.noErrorTruncation||1&n,o=xe.typeToTypeNode(e,t,70221824|vc(n)|(i?1:0),void 0);if(void 0===o)return un.fail("should always get typenode");const a=e!==Pt?eU():Zq(),s=t&&hd(t);a.writeNode(4,o,s,r);const c=r.getText(),l=i?2*Vu:2*Uu;return l&&c&&c.length>=l?c.substr(0,l-3)+"...":c}function cc(e,t){let n=yc(e.symbol)?sc(e,e.symbol.valueDeclaration):sc(e),r=yc(t.symbol)?sc(t,t.symbol.valueDeclaration):sc(t);return n===r&&(n=uc(e),r=uc(t)),[n,r]}function uc(e){return sc(e,void 0,64)}function yc(e){return e&&!!e.valueDeclaration&&U_(e.valueDeclaration)&&!aS(e.valueDeclaration)}function vc(e=0){return 848330095&e}function xc(e){return!!(e.symbol&&32&e.symbol.flags&&(e===nu(e.symbol)||524288&e.flags&&16777216&mx(e)))}function Sc(e){return dk(e)}function Cc(e,t,n=16384,r){return r?i(r).getText():id(i);function i(r){const i=70222336|vc(n),o=xe.typePredicateToTypePredicateNode(e,t,i),a=eU(),s=t&&hd(t);return a.writeNode(4,o,s,r),r}}function Dc(e){return 2===e?"private":4===e?"protected":"public"}function Ec(e){return e&&e.parent&&268===e.parent.kind&&dp(e.parent.parent)}function Pc(e){return 307===e.kind||ap(e)}function Ac(e,t){const n=oa(e).nameType;if(n){if(384&n.flags){const e=""+n.value;return fs(e,hk(j))||MT(e)?MT(e)&&Gt(e,"-")?`[${e}]`:e:`"${by(e,34)}"`}if(8192&n.flags)return`[${Ic(n.symbol,t)}]`}}function Ic(e,t){var n;if((null==(n=null==t?void 0:t.remappedSymbolReferences)?void 0:n.has(RB(e)))&&(e=t.remappedSymbolReferences.get(RB(e))),t&&"default"===e.escapedName&&!(16384&t.flags)&&(!(16777216&t.flags)||!e.declarations||t.enclosingDeclaration&&_c(e.declarations[0],Pc)!==_c(t.enclosingDeclaration,Pc)))return"default";if(e.declarations&&e.declarations.length){let n=f(e.declarations,(e=>Tc(e)?e:void 0));const r=n&&Tc(n);if(n&&r){if(GD(n)&&tg(n))return hc(e);if(rD(r)&&!(4096&nx(e))){const n=oa(e).nameType;if(n&&384&n.flags){const n=Ac(e,t);if(void 0!==n)return n}}return Ep(r)}if(n||(n=e.declarations[0]),n.parent&&260===n.parent.kind)return Ep(n.parent.name);switch(n.kind){case 231:case 218:case 219:return!t||t.encounteredError||131072&t.flags||(t.encounteredError=!0),231===n.kind?"(Anonymous class)":"(Anonymous function)"}}const r=Ac(e,t);return void 0!==r?r:hc(e)}function Lc(e){if(e){const t=aa(e);return void 0===t.isVisible&&(t.isVisible=!!function(){switch(e.kind){case 338:case 346:case 340:return!!(e.parent&&e.parent.parent&&e.parent.parent.parent&&qE(e.parent.parent.parent));case 208:return Lc(e.parent.parent);case 260:if(x_(e.name)&&!e.name.elements.length)return!1;case 267:case 263:case 264:case 265:case 262:case 266:case 271:if(dp(e))return!0;const t=qc(e);return 32&lz(e)||271!==e.kind&&307!==t.kind&&33554432&t.flags?Lc(t):Xp(t);case 172:case 171:case 177:case 178:case 174:case 173:if(Cv(e,6))return!1;case 176:case 180:case 179:case 181:case 169:case 268:case 184:case 185:case 187:case 183:case 188:case 189:case 192:case 193:case 196:case 202:return Lc(e.parent);case 273:case 274:case 276:return!1;case 168:case 307:case 270:return!0;default:return!1}}()),t.isVisible}return!1}function jc(e,t){let n,r,i;return 11!==e.kind&&e.parent&&277===e.parent.kind?n=Ue(e,e,2998271,void 0,!1):281===e.parent.kind&&(n=Oa(e.parent,2998271)),n&&(i=new Set,i.add(RB(n)),function e(n){d(n,(n=>{const o=va(n)||n;if(t?aa(n).isVisible=!0:(r=r||[],ce(r,o)),wm(n)){const t=ab(n.moduleReference),r=Ue(n,t.escapedText,901119,void 0,!1);r&&i&&q(i,RB(r))&&e(r.declarations)}}))}(n.declarations)),r}function Mc(e,t){const n=Bc(e,t);if(n>=0){const{length:e}=Mi;for(let t=n;t=zi;n--){if(Jc(Mi[n],Ji[n]))return-1;if(Mi[n]===e&&Ji[n]===t)return n}return-1}function Jc(e,t){switch(t){case 0:return!!oa(e).type;case 2:return!!oa(e).declaredType;case 1:return!!e.resolvedBaseConstructorType;case 3:return!!e.resolvedReturnType;case 4:return!!e.immediateBaseConstraint;case 5:return!!e.resolvedTypeArguments;case 6:return!!e.baseTypesResolved;case 7:return!!oa(e).writeType;case 8:return void 0!==aa(e).parameterInitializerContainsUndefined}return un.assertNever(t)}function zc(){return Mi.pop(),Ji.pop(),Bi.pop()}function qc(e){return _c(Qh(e),(e=>{switch(e.kind){case 260:case 261:case 276:case 275:case 274:case 273:return!1;default:return!0}})).parent}function Uc(e,t){const n=Cf(e,t);return n?S_(n):void 0}function Vc(e,t){var n;let r;return Uc(e,t)||(r=null==(n=Nm(e,t))?void 0:n.type)&&kl(r,!0,!0)}function Wc(e){return e&&!!(1&e.flags)}function $c(e){return e===Et||!!(1&e.flags&&e.aliasSymbol)}function Kc(e,t){if(0!==t)return Sl(e,!1,t);const n=ps(e);return n&&oa(n).type||Sl(e,!1,t)}function Qc(e,t,n){if(131072&(e=OD(e,(e=>!(98304&e.flags)))).flags)return Nn;if(1048576&e.flags)return zD(e,(e=>Qc(e,t,n)));let r=xb(E(t,Rb));const i=[],o=[];for(const t of vp(e)){const e=Mb(t,8576);gS(e,r)||6&rx(t)||!$x(t)?o.push(e):i.push(t)}if(lx(e)||_x(r)){if(o.length&&(r=xb([r,...o])),131072&r.flags)return e;const t=(qr||(qr=Ey("Omit",2,!0)||xt),qr===xt?void 0:qr);return t?ny(t,[e,r]):Et}const a=Hu();for(const e of i)a.set(e.escapedName,Hx(e,!1));const s=Bs(n,a,l,l,Kf(e));return s.objectFlags|=4194304,s}function Yc(e){return!!(465829888&e.flags)&&QL(qp(e)||Ot,32768)}function Zc(e){return ON(ED(e,Yc)?zD(e,(e=>465829888&e.flags?Wp(e):e)):e,524288)}function nl(e,t){const n=rl(e);return n?JF(n,t):t}function rl(e){const t=function(e){const t=e.parent.parent;switch(t.kind){case 208:case 303:return rl(t);case 209:return rl(e.parent);case 260:return t.initializer;case 226:return t.right}}(e);if(t&&Ig(t)&&t.flowNode){const n=ol(e);if(n){const r=nI(aI.createStringLiteral(n),e),i=R_(t)?t:aI.createParenthesizedExpression(t),o=nI(aI.createElementAccessExpression(i,r),e);return wT(r,o),wT(o,e),i!==t&&wT(i,o),o.flowNode=t.flowNode,o}}}function ol(e){const t=e.parent;return 208===e.kind&&206===t.kind?sl(e.propertyName||e.name):303===e.kind||304===e.kind?sl(e.name):""+t.elements.indexOf(e)}function sl(e){const t=Rb(e);return 384&t.flags?""+t.value:void 0}function ul(e){const t=e.dotDotDotToken?32:0,n=Kc(e.parent.parent,t);return n&&pl(e,n,!1)}function pl(e,t,n){if(Wc(t))return t;const r=e.parent;H&&33554432&e.flags&&Xh(e)?t=rw(t):H&&r.parent.initializer&&!AN(KN(r.parent.initializer),65536)&&(t=ON(t,524288));const i=32|(n||bA(e)?16:0);let o;if(206===r.kind)if(e.dotDotDotToken){if(2&(t=yf(t)).flags||!FA(t))return jo(e,la.Rest_types_may_only_be_created_from_object_types),Et;const n=[];for(const e of r.elements)e.dotDotDotToken||n.push(e.propertyName||e.name);o=Qc(t,n,e.symbol)}else{const n=e.propertyName||e.name;o=nl(e,vx(t,Rb(n),i,n))}else{const n=rM(65|(e.dotDotDotToken?0:128),t,jt,r),a=r.elements.indexOf(e);if(e.dotDotDotToken){const e=zD(t,(e=>58982400&e.flags?Wp(e):e));o=AD(e,UC)?zD(e,(e=>Jv(e,a))):uv(n)}else o=CC(t)?nl(e,Sx(t,ok(a),i,e.name)||Et):n}return e.initializer?pv(tc(e))?H&&!AN(gj(e,0),16777216)?Zc(o):o:yj(e,xb([Zc(o),gj(e,0)],2)):o}function fl(e){const t=tl(e);if(t)return dk(t)}function bl(e){const t=oh(e,!0);return 209===t.kind&&0===t.elements.length}function kl(e,t=!1,n=!0){return H&&n?tw(e,t):e}function Sl(e,t,n){if(VF(e)&&249===e.parent.parent.kind){const t=qb(_I(Lj(e.parent.parent.expression,n)));return 4456448&t.flags?Ub(t):Vt}if(VF(e)&&250===e.parent.parent.kind)return nM(e.parent.parent)||wt;if(x_(e.parent))return ul(e);const r=cD(e)&&!Av(e)||sD(e)||NP(e),i=t&&KT(e),o=Gl(e);if(op(e))return o?Wc(o)||o===Ot?o:Et:ae?Ot:wt;if(o)return kl(o,r,i);if((ne||Fm(e))&&VF(e)&&!x_(e.name)&&!(32&lz(e))&&!(33554432&e.flags)){if(!(6&_z(e))&&(!e.initializer||function(e){const t=oh(e,!0);return 106===t.kind||80===t.kind&&dN(t)===De}(e.initializer)))return Nt;if(e.initializer&&bl(e.initializer))return lr}if(oD(e)){if(!e.symbol)return;const t=e.parent;if(178===t.kind&&Zu(t)){const n=Wu(ps(e.parent),177);if(n){const r=ig(n),i=UJ(t);return i&&e===i?(un.assert(!i.type),S_(r.thisParameter)):Tg(r)}}const n=function(e,t){const n=sg(e);if(!n)return;const r=e.parameters.indexOf(t);return t.dotDotDotToken?mL(n,r):pL(n,r)}(t,e);if(n)return n;const r="this"===e.symbol.escapedName?AP(t):IP(e);if(r)return kl(r,!1,i)}if(Eu(e)&&e.initializer){if(Fm(e)&&!oD(e)){const t=Pl(e,ps(e),Vm(e));if(t)return t}return kl(yj(e,gj(e,n)),r,i)}if(cD(e)&&(ne||Fm(e))){if(Dv(e)){const t=N(e.parent.members,uD),n=t.length?function(e,t){const n=Gt(e.escapedName,"__#")?XC.createPrivateIdentifier(e.escapedName.split("@")[1]):fc(e.escapedName);for(const r of t){const t=XC.createPropertyAccessExpression(XC.createThis(),n);wT(t.expression,t),wT(t,r),t.flowNode=r.returnFlowNode;const i=Fl(t,e);if(!ne||i!==Nt&&i!==lr||jo(e.valueDeclaration,la.Member_0_implicitly_has_an_1_type,ic(e),sc(i)),!AD(i,lI))return $R(i)}}(e.symbol,t):128&Mv(e)?PT(e.symbol):void 0;return n&&kl(n,!0,i)}{const t=gC(e.parent),n=t?Dl(e.symbol,t):128&Mv(e)?PT(e.symbol):void 0;return n&&kl(n,!0,i)}}return FE(e)?Yt:x_(e.name)?ql(e.name,!1,!0):void 0}function Tl(e){if(e.valueDeclaration&&cF(e.valueDeclaration)){const t=oa(e);return void 0===t.isConstructorDeclaredProperty&&(t.isConstructorDeclaredProperty=!1,t.isConstructorDeclaredProperty=!!Nl(e)&&v(e.declarations,(t=>cF(t)&&zP(t)&&(212!==t.left.kind||Lh(t.left.argumentExpression))&&!Ol(void 0,t,e,t)))),t.isConstructorDeclaredProperty}return!1}function Cl(e){const t=e.valueDeclaration;return t&&cD(t)&&!pv(t)&&!t.initializer&&(ne||Fm(t))}function Nl(e){if(e.declarations)for(const t of e.declarations){const e=Zf(t,!1,!1);if(e&&(176===e.kind||qO(e)))return e}}function Dl(e,t){const n=Gt(e.escapedName,"__#")?XC.createPrivateIdentifier(e.escapedName.split("@")[1]):fc(e.escapedName),r=XC.createPropertyAccessExpression(XC.createThis(),n);wT(r.expression,r),wT(r,t),r.flowNode=t.returnFlowNode;const i=Fl(r,e);return!ne||i!==Nt&&i!==lr||jo(e.valueDeclaration,la.Member_0_implicitly_has_an_1_type,ic(e),sc(i)),AD(i,lI)?void 0:$R(i)}function Fl(e,t){const n=(null==t?void 0:t.valueDeclaration)&&(!Cl(t)||128&Mv(t.valueDeclaration))&&PT(t)||jt;return JF(e,Nt,n)}function El(e,t){const n=Wm(e.valueDeclaration);if(n){const t=Fm(n)?el(n):void 0;return t&&t.typeExpression?dk(t.typeExpression):e.valueDeclaration&&Pl(e.valueDeclaration,e,n)||BC(fj(n))}let r,i=!1,o=!1;if(Tl(e)&&(r=Dl(e,Nl(e))),!r){let n;if(e.declarations){let a;for(const r of e.declarations){const s=cF(r)||GD(r)?r:kx(r)?cF(r.parent)?r.parent:r:void 0;if(!s)continue;const c=kx(s)?_g(s):eg(s);(4===c||cF(s)&&zP(s,c))&&(jl(s)?i=!0:o=!0),GD(s)||(a=Ol(a,s,e,r)),a||(n||(n=[])).push(cF(s)||GD(s)?Ll(e,t,s,c):_n)}r=a}if(!r){if(!u(n))return Et;let t=i&&e.declarations?function(e,t){return un.assert(e.length===t.length),e.filter(((e,n)=>{const r=t[n],i=cF(r)?r:cF(r.parent)?r.parent:void 0;return i&&jl(i)}))}(n,e.declarations):void 0;if(o){const n=PT(e);n&&((t||(t=[])).push(n),i=!0)}r=xb($(t,(e=>!!(-98305&e.flags)))?t:n)}}const a=Sw(kl(r,!1,o&&!i));return e.valueDeclaration&&Fm(e.valueDeclaration)&&OD(a,(e=>!!(-98305&e.flags)))===_n?(ww(e.valueDeclaration,wt),wt):a}function Pl(e,t,n){var r,i;if(!Fm(e)||!n||!$D(n)||n.properties.length)return;const o=Hu();for(;cF(e)||HD(e);){const t=gs(e);(null==(r=null==t?void 0:t.exports)?void 0:r.size)&&ta(o,t.exports),e=cF(e)?e.parent:e.parent.parent}const a=gs(e);(null==(i=null==a?void 0:a.exports)?void 0:i.size)&&ta(o,a.exports);const s=Bs(t,o,l,l,l);return s.objectFlags|=4096,s}function Ol(e,t,n,r){var i;const o=pv(t.parent);if(o){const t=Sw(dk(o));if(!e)return t;$c(e)||$c(t)||_S(e,t)||KR(void 0,e,r,t)}if(null==(i=n.parent)?void 0:i.valueDeclaration){const e=ys(n.parent);if(e.valueDeclaration){const t=pv(e.valueDeclaration);if(t){const e=Cf(dk(t),n.escapedName);if(e)return T_(e)}}}return e}function Ll(e,t,n,r){if(GD(n)){if(t)return S_(t);const e=fj(n.arguments[2]),r=Uc(e,"value");if(r)return r;const i=Uc(e,"get");if(i){const e=aO(i);if(e)return Tg(e)}const o=Uc(e,"set");if(o){const e=aO(o);if(e)return kL(e)}return wt}if(function(e,t){return HD(e)&&110===e.expression.kind&&AI(t,(t=>mN(e,t)))}(n.left,n.right))return wt;const i=1===r&&(HD(n.left)||KD(n.left))&&(Zm(n.left.expression)||zN(n.left.expression)&&Qm(n.left.expression)),o=t?S_(t):i?nk(fj(n.right)):BC(fj(n.right));if(524288&o.flags&&2===r&&"export="===e.escapedName){const n=pp(o),r=Hu();rd(n.members,r);const i=r.size;t&&!t.exports&&(t.exports=Hu()),(t||e).exports.forEach(((e,t)=>{var n;const i=r.get(t);if(!i||i===e||2097152&e.flags)r.set(t,e);else if(111551&e.flags&&111551&i.flags){if(e.valueDeclaration&&i.valueDeclaration&&hd(e.valueDeclaration)!==hd(i.valueDeclaration)){const t=fc(e.escapedName),r=(null==(n=tt(i.valueDeclaration,kc))?void 0:n.name)||i.valueDeclaration;iT(jo(e.valueDeclaration,la.Duplicate_identifier_0,t),jp(r,la._0_was_also_declared_here,t)),iT(jo(r,la.Duplicate_identifier_0,t),jp(e.valueDeclaration,la._0_was_also_declared_here,t))}const o=Wo(e.flags|i.flags,t);o.links.type=xb([S_(e),S_(i)]),o.valueDeclaration=i.valueDeclaration,o.declarations=K(i.declarations,e.declarations),r.set(t,o)}else r.set(t,Qo(e,i))}));const a=Bs(i!==r.size?void 0:n.symbol,r,n.callSignatures,n.constructSignatures,n.indexInfos);if(i===r.size&&(o.aliasSymbol&&(a.aliasSymbol=o.aliasSymbol,a.aliasTypeArguments=o.aliasTypeArguments),4&mx(o))){a.aliasSymbol=o.symbol;const e=Kh(o);a.aliasTypeArguments=u(e)?e:void 0}return a.objectFlags|=Ah([o])|20608&mx(o),a.symbol&&32&a.symbol.flags&&o===nu(a.symbol)&&(a.objectFlags|=16777216),a}return FC(o)?(ww(n,cr),cr):o}function jl(e){const t=Zf(e,!1,!1);return 176===t.kind||262===t.kind||218===t.kind&&!dg(t.parent)}function Bl(e,t,n){return e.initializer?kl(vj(e,gj(e,0,x_(e.name)?ql(e.name,!0,!1):Ot))):x_(e.name)?ql(e.name,t,n):(n&&!$l(e)&&ww(e,wt),t?At:wt)}function ql(e,t=!1,n=!1){t&&Pi.push(e);const r=206===e.kind?function(e,t,n){const r=Hu();let i,o=131200;d(e.elements,(e=>{const a=e.propertyName||e.name;if(e.dotDotDotToken)return void(i=uh(Vt,wt,!1));const s=Rb(a);if(!oC(s))return void(o|=512);const c=aC(s),l=Wo(4|(e.initializer?16777216:0),c);l.links.type=Bl(e,t,n),r.set(l.escapedName,l)}));const a=Bs(void 0,r,l,l,i?[i]:l);return a.objectFlags|=o,t&&(a.pattern=e,a.objectFlags|=131072),a}(e,t,n):function(e,t,n){const r=e.elements,i=ye(r),o=i&&208===i.kind&&i.dotDotDotToken?i:void 0;if(0===r.length||1===r.length&&o)return R>=2?ov(wt):cr;const a=E(r,(e=>fF(e)?wt:Bl(e,t,n))),s=S(r,(e=>!(e===o||fF(e)||bA(e))),r.length-1)+1;let c=kv(a,E(r,((e,t)=>e===o?4:t>=s?2:1)));return t&&(c=Wh(c),c.pattern=e,c.objectFlags|=131072),c}(e,t,n);return t&&Pi.pop(),r}function Ul(e,t){return Wl(Sl(e,!0,0),e,t)}function Wl(e,t,n){return e?(4096&e.flags&&function(e){const t=gs(e),n=pr||(pr=Ny("SymbolConstructor",!1));return n&&t&&t===n}(t.parent)&&(e=ck(t)),n&&Nw(t,e),8192&e.flags&&(VD(t)||!t.type)&&e.symbol!==ps(t)&&(e=cn),Sw(e)):(e=oD(t)&&t.dotDotDotToken?cr:wt,n&&($l(t)||ww(t,e)),e)}function $l(e){const t=Qh(e);return eR(169===t.kind?t.parent:t)}function Gl(e){const t=pv(e);if(t)return dk(t)}function Xl(e){if(e)switch(e.kind){case 177:return mv(e);case 178:return hv(e);case 172:return un.assert(Av(e)),pv(e)}}function Ql(e){const t=Xl(e);return t&&dk(t)}function t_(e){const t=oa(e);if(!t.type){if(!Mc(e,0))return Et;const n=Wu(e,177),r=Wu(e,178),i=tt(Wu(e,172),d_);let o=n&&Fm(n)&&fl(n)||Ql(n)||Ql(r)||Ql(i)||n&&n.body&&OL(n)||i&&Ul(i,!0);o||(r&&!eR(r)?Mo(ne,r,la.Property_0_implicitly_has_type_any_because_its_set_accessor_lacks_a_parameter_type_annotation,ic(e)):n&&!eR(n)?Mo(ne,n,la.Property_0_implicitly_has_type_any_because_its_get_accessor_lacks_a_return_type_annotation,ic(e)):i&&!eR(i)&&Mo(ne,i,la.Member_0_implicitly_has_an_1_type,ic(e),"any"),o=wt),zc()||(Xl(n)?jo(n,la._0_is_referenced_directly_or_indirectly_in_its_own_type_annotation,ic(e)):Xl(r)||Xl(i)?jo(r,la._0_is_referenced_directly_or_indirectly_in_its_own_type_annotation,ic(e)):n&&ne&&jo(n,la._0_implicitly_has_return_type_any_because_it_does_not_have_a_return_type_annotation_and_is_referenced_directly_or_indirectly_in_one_of_its_return_expressions,ic(e)),o=wt),t.type??(t.type=o)}return t.type}function a_(e){const t=oa(e);if(!t.writeType){if(!Mc(e,7))return Et;const n=Wu(e,178)??tt(Wu(e,172),d_);let r=Ql(n);zc()||(Xl(n)&&jo(n,la._0_is_referenced_directly_or_indirectly_in_its_own_type_annotation,ic(e)),r=wt),t.writeType??(t.writeType=r||t_(e))}return t.writeType}function s_(e){const t=Q_(nu(e));return 8650752&t.flags?t:2097152&t.flags?b(t.types,(e=>!!(8650752&e.flags))):void 0}function f_(e){let t=oa(e);const n=t;if(!t.type){const r=e.valueDeclaration&&VO(e.valueDeclaration,!1);if(r){const n=UO(e,r);n&&(e=n,t=n.links)}n.type=t.type=function(e){const t=e.valueDeclaration;if(1536&e.flags&&lp(e))return wt;if(t&&(226===t.kind||kx(t)&&226===t.parent.kind))return El(e);if(512&e.flags&&t&&qE(t)&&t.commonJsModuleIndicator){const t=ts(e);if(t!==e){if(!Mc(e,0))return Et;const n=ds(e.exports.get("export=")),r=El(n,n===t?void 0:t);return zc()?r:g_(e)}}const n=Is(16,e);if(32&e.flags){const t=s_(e);return t?Fb([n,t]):n}return H&&16777216&e.flags?tw(n,!0):n}(e)}return t.type}function m_(e){const t=oa(e);return t.type||(t.type=uu(e))}function g_(e){const t=e.valueDeclaration;if(t){if(pv(t))return jo(e.valueDeclaration,la._0_is_referenced_directly_or_indirectly_in_its_own_type_annotation,ic(e)),Et;ne&&(169!==t.kind||t.initializer)&&jo(e.valueDeclaration,la._0_implicitly_has_type_any_because_it_does_not_have_a_type_annotation_and_is_referenced_directly_or_indirectly_in_its_own_initializer,ic(e))}else if(2097152&e.flags){const t=ba(e);t&&jo(t,la.Circular_definition_of_import_alias_0,ic(e))}return wt}function h_(e){const t=oa(e);return t.type||(un.assertIsDefined(t.deferralParent),un.assertIsDefined(t.deferralConstituents),t.type=1048576&t.deferralParent.flags?xb(t.deferralConstituents):Fb(t.deferralConstituents)),t.type}function b_(e){const t=nx(e);return 4&e.flags?2&t?65536&t?function(e){const t=oa(e);return!t.writeType&&t.deferralWriteConstituents&&(un.assertIsDefined(t.deferralParent),un.assertIsDefined(t.deferralConstituents),t.writeType=1048576&t.deferralParent.flags?xb(t.deferralWriteConstituents):Fb(t.deferralWriteConstituents)),t.writeType}(e)||h_(e):e.links.writeType||e.links.type:cw(S_(e),!!(16777216&e.flags)):98304&e.flags?1&t?function(e){const t=oa(e);return t.writeType||(t.writeType=tS(b_(t.target),t.mapper))}(e):a_(e):S_(e)}function S_(e){const t=nx(e);return 65536&t?h_(e):1&t?function(e){const t=oa(e);return t.type||(t.type=tS(S_(t.target),t.mapper))}(e):262144&t?function(e){var t;if(!e.links.type){const n=e.links.mappedType;if(!Mc(e,0))return n.containsError=!0,Et;const i=tS(Hd(n.target||n),zk(n.mapper,Jd(n),e.links.keyType));let o=H&&16777216&e.flags&&!QL(i,49152)?tw(i,!0):524288&e.links.checkFlags?_w(i):i;zc()||(jo(r,la.Type_of_property_0_circularly_references_itself_in_mapped_type_1,ic(e),sc(n)),o=Et),(t=e.links).type??(t.type=o)}return e.links.type}(e):8192&t?function(e){const t=oa(e);return t.type||(t.type=Ww(e.links.propertyType,e.links.mappedType,e.links.constraintType)||Ot),t.type}(e):7&e.flags?function(e){const t=oa(e);if(!t.type){const n=function(e){if(4194304&e.flags)return function(e){const t=fu(hs(e));return t.typeParameters?jh(t,E(t.typeParameters,(e=>wt))):t}(e);if(e===je)return wt;if(134217728&e.flags&&e.valueDeclaration){const t=ps(hd(e.valueDeclaration)),n=Wo(t.flags,"exports");n.declarations=t.declarations?t.declarations.slice():[],n.parent=e,n.links.target=t,t.valueDeclaration&&(n.valueDeclaration=t.valueDeclaration),t.members&&(n.members=new Map(t.members)),t.exports&&(n.exports=new Map(t.exports));const r=Hu();return r.set("exports",n),Bs(e,r,l,l,l)}un.assertIsDefined(e.valueDeclaration);const t=e.valueDeclaration;if(qE(t)&&Yp(t))return t.statements.length?Sw(BC(Lj(t.statements[0].expression))):Nn;if(u_(t))return t_(e);if(!Mc(e,0))return 512&e.flags&&!(67108864&e.flags)?f_(e):g_(e);let n;if(277===t.kind)n=Wl(Gl(t)||fj(t.expression),t);else if(cF(t)||Fm(t)&&(GD(t)||(HD(t)||og(t))&&cF(t.parent)))n=El(e);else if(HD(t)||KD(t)||zN(t)||Lu(t)||kN(t)||HF(t)||$F(t)||_D(t)&&!Mf(t)||lD(t)||qE(t)){if(9136&e.flags)return f_(e);n=cF(t.parent)?El(e):Gl(t)||wt}else if(ME(t))n=Gl(t)||Sj(t);else if(FE(t))n=Gl(t)||AA(t);else if(BE(t))n=Gl(t)||kj(t.name,0);else if(Mf(t))n=Gl(t)||Tj(t,0);else if(oD(t)||cD(t)||sD(t)||VF(t)||VD(t)||wl(t))n=Ul(t,!0);else if(XF(t))n=f_(e);else{if(!zE(t))return un.fail("Unhandled declaration kind! "+un.formatSyntaxKind(t.kind)+" for "+un.formatSymbol(e));n=m_(e)}return zc()?n:512&e.flags&&!(67108864&e.flags)?f_(e):g_(e)}(e);return t.type||function(e){let t=e.valueDeclaration;return!!t&&(VD(t)&&(t=tc(t)),!!oD(t)&&cS(t.parent))}(e)||(t.type=n),n}return t.type}(e):9136&e.flags?f_(e):8&e.flags?m_(e):98304&e.flags?t_(e):2097152&e.flags?function(e){const t=oa(e);if(!t.type){if(!Mc(e,0))return Et;const n=Ba(e),r=e.declarations&&ja(ba(e),!0),i=f(null==r?void 0:r.declarations,(e=>pE(e)?Gl(e):void 0));if(t.type??(t.type=(null==r?void 0:r.declarations)&&uB(r.declarations)&&e.declarations.length?function(e){const t=hd(e.declarations[0]),n=fc(e.escapedName),r=e.declarations.every((e=>Fm(e)&&kx(e)&&Zm(e.expression))),i=r?XC.createPropertyAccessExpression(XC.createPropertyAccessExpression(XC.createIdentifier("module"),XC.createIdentifier("exports")),n):XC.createPropertyAccessExpression(XC.createIdentifier("exports"),n);return r&&wT(i.expression.expression,i.expression),wT(i.expression,i),wT(i,t),i.flowNode=t.endFlowNode,JF(i,Nt,jt)}(r):uB(e.declarations)?Nt:i||(111551&za(n)?S_(n):Et)),!zc())return g_(r??e),t.type??(t.type=Et)}return t.type}(e):Et}function T_(e){return cw(S_(e),!!(16777216&e.flags))}function C_(e,t){if(void 0===e||!(4&mx(e)))return!1;for(const n of t)if(e.target===n)return!0;return!1}function w_(e,t){return void 0!==e&&void 0!==t&&!!(4&mx(e))&&e.target===t}function N_(e){return 4&mx(e)?e.target:e}function D_(e,t){return function e(n){if(7&mx(n)){const r=N_(n);return r===t||$(Z_(r),e)}return!!(2097152&n.flags)&&$(n.types,e)}(e)}function F_(e,t){for(const n of t)e=le(e,pu(ps(n)));return e}function E_(e,t){for(;;){if((e=e.parent)&&cF(e)){const t=eg(e);if(6===t||3===t){const t=ps(e.left);t&&t.parent&&!_c(t.parent.valueDeclaration,(t=>e===t))&&(e=t.parent.valueDeclaration)}}if(!e)return;const n=e.kind;switch(n){case 263:case 231:case 264:case 179:case 180:case 173:case 184:case 185:case 317:case 262:case 174:case 218:case 219:case 265:case 345:case 346:case 340:case 338:case 200:case 194:{const r=E_(e,t);if((218===n||219===n||Mf(e))&&aS(e)){const t=fe(Rf(S_(ps(e)),0));if(t&&t.typeParameters)return[...r||l,...t.typeParameters]}if(200===n)return ie(r,pu(ps(e.typeParameter)));if(194===n)return K(r,Ix(e));const i=F_(r,ll(e)),o=t&&(263===n||231===n||264===n||qO(e))&&nu(ps(e)).thisType;return o?ie(i,o):i}case 341:const r=Mg(e);r&&(e=r.valueDeclaration);break;case 320:{const n=E_(e,t);return e.tags?F_(n,O(e.tags,(e=>TP(e)?e.typeParameters:void 0))):n}}}}function j_(e){var t;const n=32&e.flags||16&e.flags?e.valueDeclaration:null==(t=e.declarations)?void 0:t.find((e=>{if(264===e.kind)return!0;if(260!==e.kind)return!1;const t=e.initializer;return!!t&&(218===t.kind||219===t.kind)}));return un.assert(!!n,"Class was missing valueDeclaration -OR- non-class had no interface declarations"),E_(n)}function M_(e){if(!e.declarations)return;let t;for(const n of e.declarations)(264===n.kind||263===n.kind||231===n.kind||qO(n)||Dg(n))&&(t=F_(t,ll(n)));return t}function B_(e){const t=Rf(e,1);if(1===t.length){const e=t[0];if(!e.typeParameters&&1===e.parameters.length&&UB(e)){const t=aL(e.parameters[0]);return Wc(t)||TC(t)===wt}}return!1}function J_(e){if(Rf(e,1).length>0)return!0;if(8650752&e.flags){const t=qp(e);return!!t&&B_(t)}return!1}function z_(e){const t=fx(e.symbol);return t&&hh(t)}function q_(e,t,n){const r=u(t),i=Fm(n);return N(Rf(e,1),(e=>(i||r>=ng(e.typeParameters))&&r<=u(e.typeParameters)))}function $_(e,t,n){const r=q_(e,t,n),i=E(t,dk);return A(r,(e=>$(e.typeParameters)?Lg(e,i,Fm(n)):e))}function Q_(e){if(!e.resolvedBaseConstructorType){const t=fx(e.symbol),n=t&&hh(t),r=z_(e);if(!r)return e.resolvedBaseConstructorType=jt;if(!Mc(e,1))return Et;const i=Lj(r.expression);if(n&&r!==n&&(un.assert(!n.typeArguments),Lj(n.expression)),2621440&i.flags&&pp(i),!zc())return jo(e.symbol.valueDeclaration,la._0_is_referenced_directly_or_indirectly_in_its_own_base_expression,ic(e.symbol)),e.resolvedBaseConstructorType??(e.resolvedBaseConstructorType=Et);if(!(1&i.flags||i===Ut||J_(i))){const t=jo(r.expression,la.Type_0_is_not_a_constructor_function_type,sc(i));if(262144&i.flags){const e=Nh(i);let n=Ot;if(e){const t=Rf(e,1);t[0]&&(n=Tg(t[0]))}i.symbol.declarations&&iT(t,jp(i.symbol.declarations[0],la.Did_you_mean_for_0_to_be_constrained_to_type_new_args_Colon_any_1,ic(i.symbol),sc(n)))}return e.resolvedBaseConstructorType??(e.resolvedBaseConstructorType=Et)}e.resolvedBaseConstructorType??(e.resolvedBaseConstructorType=i)}return e.resolvedBaseConstructorType}function Y_(e,t){jo(e,la.Type_0_recursively_references_itself_as_a_base_type,sc(t,void 0,2))}function Z_(e){if(!e.baseTypesResolved){if(Mc(e,6)&&(8&e.objectFlags?e.resolvedBaseTypes=[eu(e)]:96&e.symbol.flags?(32&e.symbol.flags&&function(e){e.resolvedBaseTypes=zu;const t=pf(Q_(e));if(!(2621441&t.flags))return e.resolvedBaseTypes=l;const n=z_(e);let r;const i=t.symbol?fu(t.symbol):void 0;if(t.symbol&&32&t.symbol.flags&&function(e){const t=e.outerTypeParameters;if(t){const n=t.length-1,r=Kh(e);return t[n].symbol!==r[n].symbol}return!0}(i))r=ty(n,t.symbol);else if(1&t.flags)r=t;else{const i=$_(t,n.typeArguments,n);if(!i.length)return jo(n.expression,la.No_base_constructor_has_the_specified_number_of_type_arguments),e.resolvedBaseTypes=l;r=Tg(i[0])}if($c(r))return e.resolvedBaseTypes=l;const o=yf(r);if(!tu(o)){const t=Yx(Sf(void 0,r),la.Base_constructor_return_type_0_is_not_an_object_type_or_intersection_of_object_types_with_statically_known_members,sc(o));return uo.add(Bp(hd(n.expression),n.expression,t)),e.resolvedBaseTypes=l}if(e===o||D_(o,e))return jo(e.symbol.valueDeclaration,la.Type_0_recursively_references_itself_as_a_base_type,sc(e,void 0,2)),e.resolvedBaseTypes=l;e.resolvedBaseTypes===zu&&(e.members=void 0),e.resolvedBaseTypes=[o]}(e),64&e.symbol.flags&&function(e){if(e.resolvedBaseTypes=e.resolvedBaseTypes||l,e.symbol.declarations)for(const t of e.symbol.declarations)if(264===t.kind&&xh(t))for(const n of xh(t)){const r=yf(dk(n));$c(r)||(tu(r)?e===r||D_(r,e)?Y_(t,e):e.resolvedBaseTypes===l?e.resolvedBaseTypes=[r]:e.resolvedBaseTypes.push(r):jo(n,la.An_interface_can_only_extend_an_object_type_or_intersection_of_object_types_with_statically_known_members))}}(e)):un.fail("type must be class or interface"),!zc()&&e.symbol.declarations))for(const t of e.symbol.declarations)263!==t.kind&&264!==t.kind||Y_(t,e);e.baseTypesResolved=!0}return e.resolvedBaseTypes}function eu(e){return uv(xb(A(e.typeParameters,((t,n)=>8&e.elementFlags[n]?vx(t,Wt):t))||l),e.readonly)}function tu(e){if(262144&e.flags){const t=qp(e);if(t)return tu(t)}return!!(67633153&e.flags&&!rp(e)||2097152&e.flags&&v(e.types,tu))}function nu(e){let t=oa(e);const n=t;if(!t.declaredType){const r=32&e.flags?1:2,i=UO(e,e.valueDeclaration&&function(e){var t;const n=e&&VO(e,!0),r=null==(t=null==n?void 0:n.exports)?void 0:t.get("prototype"),i=(null==r?void 0:r.valueDeclaration)&&function(e){if(!e.parent)return!1;let t=e.parent;for(;t&&211===t.kind;)t=t.parent;if(t&&cF(t)&&_b(t.left)&&64===t.operatorToken.kind){const e=ug(t);return $D(e)&&e}}(r.valueDeclaration);return i?ps(i):void 0}(e.valueDeclaration));i&&(e=i,t=i.links);const o=n.declaredType=t.declaredType=Is(r,e),a=j_(e),s=M_(e);(a||s||1===r||!function(e){if(!e.declarations)return!0;for(const t of e.declarations)if(264===t.kind){if(256&t.flags)return!1;const e=xh(t);if(e)for(const t of e)if(ob(t.expression)){const e=Ka(t.expression,788968,!0);if(!e||!(64&e.flags)||nu(e).thisType)return!1}}return!0}(e))&&(o.objectFlags|=4,o.typeParameters=K(a,s),o.outerTypeParameters=a,o.localTypeParameters=s,o.instantiations=new Map,o.instantiations.set(Eh(o.typeParameters),o),o.target=o,o.resolvedTypeArguments=o.typeParameters,o.thisType=Os(e),o.thisType.isThisType=!0,o.thisType.constraint=o)}return t.declaredType}function ru(e){var t;const n=oa(e);if(!n.declaredType){if(!Mc(e,2))return Et;const r=un.checkDefined(null==(t=e.declarations)?void 0:t.find(Dg),"Type alias symbol with no valid declaration found"),i=Ng(r)?r.typeExpression:r.type;let o=i?dk(i):Et;if(zc()){const t=M_(e);t&&(n.typeParameters=t,n.instantiations=new Map,n.instantiations.set(Eh(t),o)),o===It&&"BuiltinIteratorReturn"===e.escapedName&&(o=Qy())}else o=Et,340===r.kind?jo(r.typeExpression.type,la.Type_alias_0_circularly_references_itself,ic(e)):jo(kc(r)&&r.name||r,la.Type_alias_0_circularly_references_itself,ic(e));n.declaredType??(n.declaredType=o)}return n.declaredType}function su(e){return 1056&e.flags&&8&e.symbol.flags?fu(hs(e.symbol)):e}function cu(e){const t=oa(e);if(!t.declaredType){const n=[];if(e.declarations)for(const t of e.declarations)if(266===t.kind)for(const r of t.members)if(Zu(r)){const t=ps(r),i=hJ(r).value,o=ek(void 0!==i?sk(i,RB(e),t):_u(t));oa(t).declaredType=o,n.push(nk(o))}const r=n.length?xb(n,1,e,void 0):_u(e);1048576&r.flags&&(r.flags|=1024,r.symbol=e),t.declaredType=r}return t.declaredType}function _u(e){const t=Ns(32,e),n=Ns(32,e);return t.regularType=t,t.freshType=n,n.regularType=t,n.freshType=n,t}function uu(e){const t=oa(e);if(!t.declaredType){const n=cu(hs(e));t.declaredType||(t.declaredType=n)}return t.declaredType}function pu(e){const t=oa(e);return t.declaredType||(t.declaredType=Os(e))}function fu(e){return mu(e)||Et}function mu(e){return 96&e.flags?nu(e):524288&e.flags?ru(e):262144&e.flags?pu(e):384&e.flags?cu(e):8&e.flags?uu(e):2097152&e.flags?function(e){const t=oa(e);return t.declaredType||(t.declaredType=fu(Ba(e)))}(e):void 0}function gu(e){switch(e.kind){case 133:case 159:case 154:case 150:case 163:case 136:case 155:case 151:case 116:case 157:case 146:case 201:return!0;case 188:return gu(e.elementType);case 183:return!e.typeArguments||e.typeArguments.every(gu)}return!1}function yu(e){const t=_l(e);return!t||gu(t)}function xu(e){const t=pv(e);return t?gu(t):!Fu(e)}function Su(e){if(e.declarations&&1===e.declarations.length){const t=e.declarations[0];if(t)switch(t.kind){case 172:case 171:return xu(t);case 174:case 173:case 176:case 177:case 178:return function(e){const t=mv(e),n=ll(e);return(176===e.kind||!!t&&gu(t))&&e.parameters.every(xu)&&n.every(yu)}(t)}}return!1}function Tu(e,t,n){const r=Hu();for(const i of e)r.set(i.escapedName,n&&Su(i)?i:Kk(i,t));return r}function Pu(e,t){for(const n of t){if(Iu(n))continue;const t=e.get(n.escapedName);(!t||t.valueDeclaration&&cF(t.valueDeclaration)&&!Tl(t)&&!Xf(t.valueDeclaration))&&(e.set(n.escapedName,n),e.set(n.escapedName,n))}}function Iu(e){return!!e.valueDeclaration&&Hl(e.valueDeclaration)&&Nv(e.valueDeclaration)}function Ou(e){if(!e.declaredProperties){const t=e.symbol,n=sd(t);e.declaredProperties=js(n),e.declaredCallSignatures=l,e.declaredConstructSignatures=l,e.declaredIndexInfos=l,e.declaredCallSignatures=pg(n.get("__call")),e.declaredConstructSignatures=pg(n.get("__new")),e.declaredIndexInfos=bh(t)}return e}function Bu(e){return Ju(e)&&oC(rD(e)?kA(e):fj(e.argumentExpression))}function Ju(e){return!(!rD(e)&&!KD(e))&&ob(rD(e)?e.expression:e.argumentExpression)}function Xu(e){return 95===e.charCodeAt(0)&&95===e.charCodeAt(1)&&64===e.charCodeAt(2)}function Qu(e){const t=Tc(e);return!!t&&Bu(t)}function Yu(e){const t=Tc(e);return!!t&&function(e){return Ju(e)&&gS(rD(e)?kA(e):fj(e.argumentExpression),hn)}(t)}function Zu(e){return!Rh(e)||Qu(e)}function ed(e,t,n,r){un.assert(!!r.symbol,"The member is expected to have a symbol.");const i=aa(r);if(!i.resolvedSymbol){i.resolvedSymbol=r.symbol;const o=cF(r)?r.left:r.name,a=KD(o)?fj(o.argumentExpression):kA(o);if(oC(a)){const s=aC(a),c=r.symbol.flags;let l=n.get(s);l||n.set(s,l=Wo(0,s,4096));const _=t&&t.get(s);if(!(32&e.flags)&&l.flags&Ko(c)){const e=_?K(_.declarations,l.declarations):l.declarations,t=!(8192&a.flags)&&fc(s)||Ep(o);d(e,(e=>jo(Tc(e)||e,la.Property_0_was_also_declared_here,t))),jo(o||r,la.Duplicate_property_0,t),l=Wo(0,s,4096)}return l.links.nameType=a,function(e,t,n){un.assert(!!(4096&nx(e)),"Expected a late-bound symbol."),e.flags|=n,oa(t.symbol).lateSymbol=e,e.declarations?t.symbol.isReplaceableByMethod||e.declarations.push(t):e.declarations=[t],111551&n&&(e.valueDeclaration&&e.valueDeclaration.kind===t.kind||(e.valueDeclaration=t))}(l,r,c),l.parent?un.assert(l.parent===e,"Existing symbol parent should match new one"):l.parent=e,i.resolvedSymbol=l}}return i.resolvedSymbol}function od(e,t,n,r){let i=n.get("__index");if(!i){const e=null==t?void 0:t.get("__index");e?(i=Xo(e),i.links.checkFlags|=4096):i=Wo(0,"__index",4096),n.set("__index",i)}i.declarations?r.symbol.isReplaceableByMethod||i.declarations.push(r):i.declarations=[r]}function ad(e,t){const n=oa(e);if(!n[t]){const r="resolvedExports"===t,i=r?1536&e.flags?us(e).exports:e.exports:e.members;n[t]=i||P;const o=Hu();for(const t of e.declarations||l){const n=Ff(t);if(n)for(const t of n)r===Dv(t)&&(Qu(t)?ed(e,i,o,t):Yu(t)&&od(0,i,o,t))}const a=ys(e).assignmentDeclarationMembers;if(a){const t=Oe(a.values());for(const n of t){const t=eg(n);r===!(3===t||cF(n)&&zP(n,t)||9===t||6===t)&&Qu(n)&&ed(e,i,o,n)}}let s=function(e,t){if(!(null==e?void 0:e.size))return t;if(!(null==t?void 0:t.size))return e;const n=Hu();return ta(n,e),ta(n,t),n}(i,o);if(33554432&e.flags&&n.cjsExportMerged&&e.declarations)for(const n of e.declarations){const e=oa(n.symbol)[t];s?e&&e.forEach(((e,t)=>{const n=s.get(t);if(n){if(n===e)return;s.set(t,Qo(n,e))}else s.set(t,e)})):s=e}n[t]=s||P}return n[t]}function sd(e){return 6256&e.flags?ad(e,"resolvedMembers"):e.members||P}function cd(e){if(106500&e.flags&&"__computed"===e.escapedName){const t=oa(e);if(!t.lateSymbol&&$(e.declarations,Qu)){const t=ds(e.parent);$(e.declarations,Dv)?cs(t):sd(t)}return t.lateSymbol||(t.lateSymbol=e)}return e}function ld(e,t,n){if(4&mx(e)){const n=e.target,r=Kh(e);return u(n.typeParameters)===u(r)?jh(n,K(r,[t||n.thisType])):e}if(2097152&e.flags){const r=A(e.types,(e=>ld(e,t,n)));return r!==e.types?Fb(r):e}return n?pf(e):e}function dd(e,t,n,r){let i,o,a,s,c;de(n,r,0,n.length)?(o=t.symbol?sd(t.symbol):Hu(t.declaredProperties),a=t.declaredCallSignatures,s=t.declaredConstructSignatures,c=t.declaredIndexInfos):(i=Tk(n,r),o=Tu(t.declaredProperties,i,1===n.length),a=gk(t.declaredCallSignatures,i),s=gk(t.declaredConstructSignatures,i),c=bk(t.declaredIndexInfos,i));const l=Z_(t);if(l.length){if(t.symbol&&o===sd(t.symbol)){const e=Hu(t.declaredProperties),n=eh(t.symbol);n&&e.set("__index",n),o=e}Ms(e,o,a,s,c);const n=ye(r);for(const e of l){const t=n?ld(tS(e,i),n):e;Pu(o,vp(t)),a=K(a,Rf(t,0)),s=K(s,Rf(t,1));const r=t!==wt?Kf(t):[uh(Vt,wt,!1)];c=K(c,N(r,(e=>!Uf(c,e.keyType))))}}Ms(e,o,a,s,c)}function pd(e,t,n,r,i,o,a,s){const c=new _(He,s);return c.declaration=e,c.typeParameters=t,c.parameters=r,c.thisParameter=n,c.resolvedReturnType=i,c.resolvedTypePredicate=o,c.minArgumentCount=a,c.resolvedMinArgumentCount=void 0,c.target=void 0,c.mapper=void 0,c.compositeSignatures=void 0,c.compositeKind=void 0,c}function fd(e){const t=pd(e.declaration,e.typeParameters,e.thisParameter,e.parameters,void 0,void 0,e.minArgumentCount,167&e.flags);return t.target=e.target,t.mapper=e.mapper,t.compositeSignatures=e.compositeSignatures,t.compositeKind=e.compositeKind,t}function md(e,t){const n=fd(e);return n.compositeSignatures=t,n.compositeKind=1048576,n.target=void 0,n.mapper=void 0,n}function xd(e,t){if((24&e.flags)===t)return e;e.optionalCallSignatureCache||(e.optionalCallSignatureCache={});const n=8===t?"inner":"outer";return e.optionalCallSignatureCache[n]||(e.optionalCallSignatureCache[n]=function(e,t){un.assert(8===t||16===t,"An optional call signature can either be for an inner call chain or an outer call chain, but not both.");const n=fd(e);return n.flags|=t,n}(e,t))}function kd(e,t){if(UB(e)){const r=e.parameters.length-1,i=e.parameters[r],o=S_(i);if(UC(o))return[n(o,r,i)];if(!t&&1048576&o.flags&&v(o.types,UC))return E(o.types,(e=>n(e,r,i)))}return[e.parameters];function n(t,n,r){const i=Kh(t),o=function(e,t){const n=E(e.target.labeledElementDeclarations,((n,r)=>cL(n,r,e.target.elementFlags[r],t)));if(n){const e=[],t=new Set;for(let r=0;r{const a=o&&o[i]?o[i]:lL(e,n+i,t),s=t.target.elementFlags[i],c=Wo(1,a,12&s?32768:2&s?16384:0);return c.links.type=4&s?uv(r):r,c}));return K(e.parameters.slice(0,n),a)}}function Sd(e,t,n,r,i){for(const o of e)if(lC(o,t,n,r,i,n?pS:uS))return o}function Td(e,t,n){if(t.typeParameters){if(n>0)return;for(let n=1;n1&&(n=void 0===n?r:-1);for(const n of e[r])if(!t||!Sd(t,n,!1,!1,!0)){const i=Td(e,n,r);if(i){let e=n;if(i.length>1){let t=n.thisParameter;const r=d(i,(e=>e.thisParameter));r&&(t=dw(r,Fb(B(i,(e=>e.thisParameter&&S_(e.thisParameter)))))),e=md(n,i),e.thisParameter=t}(t||(t=[])).push(e)}}}if(!u(t)&&-1!==n){const r=e[void 0!==n?n:0];let i=r.slice();for(const t of e)if(t!==r){const e=t[0];if(un.assert(!!e,"getUnionSignatures bails early on empty signature lists and should not have empty lists on second pass"),i=e.typeParameters&&$(i,(t=>!!t.typeParameters&&!Dd(e.typeParameters,t.typeParameters)))?void 0:E(i,(t=>Fd(t,e))),!i)break}t=i}return t||l}function Dd(e,t){if(u(e)!==u(t))return!1;if(!e||!t)return!0;const n=Tk(t,e);for(let r=0;r=i?e:t,a=o===e?t:e,s=o===e?r:i,c=vL(e)||vL(t),l=c&&!vL(o),_=new Array(s+(l?1:0));for(let u=0;u=yL(o)&&u>=yL(a),h=u>=r?void 0:lL(e,u),y=u>=i?void 0:lL(t,u),v=Wo(1|(g&&!m?16777216:0),(h===y?h:h?y?void 0:h:y)||`arg${u}`,m?32768:g?16384:0);v.links.type=m?uv(f):f,_[u]=v}if(l){const e=Wo(1,"args",32768);e.links.type=uv(pL(a,s)),a===t&&(e.links.type=tS(e.links.type,n)),_[s]=e}return _}(e,t,r),s=ye(a);s&&32768&nx(s)&&(i|=1);const c=function(e,t,n){return e&&t?dw(e,Fb([S_(e),tS(S_(t),n)])):e||t}(e.thisParameter,t.thisParameter,r),l=pd(o,n,c,a,void 0,void 0,Math.max(e.minArgumentCount,t.minArgumentCount),i);return l.compositeKind=1048576,l.compositeSignatures=K(2097152!==e.compositeKind&&e.compositeSignatures||[e],[t]),r?l.mapper=2097152!==e.compositeKind&&e.mapper&&e.compositeSignatures?Rk(e.mapper,r):r:2097152!==e.compositeKind&&e.mapper&&e.compositeSignatures&&(l.mapper=e.mapper),l}function Ed(e){const t=Kf(e[0]);if(t){const n=[];for(const r of t){const t=r.keyType;v(e,(e=>!!dm(e,t)))&&n.push(uh(t,xb(E(e,(e=>pm(e,t)))),$(e,(e=>dm(e,t).isReadonly))))}return n}return l}function Pd(e,t){return e?t?Fb([e,t]):e:t}function Ad(e){const t=w(e,(e=>Rf(e,1).length>0)),n=E(e,B_);if(t>0&&t===w(n,(e=>e))){const e=n.indexOf(!0);n[e]=!1}return n}function Id(e,t,n,r){const i=[];for(let o=0;o!lC(e,n,!1,!1,!1,uS)))||(e=ie(e,n));return e}function Ld(e,t,n){if(e)for(let r=0;r0===n||np(e)===t))?t:0}return 0}function rp(e){if(32&mx(e)){const t=qd(e);if(_x(t))return!0;const n=Ud(e);if(n&&_x(tS(n,Fk(Jd(e),t))))return!0}return!1}function cp(e){const t=Ud(e);return t?gS(t,Jd(e))?1:2:0}function pp(e){return e.members||(524288&e.flags?4&e.objectFlags?function(e){const t=Ou(e.target),n=K(t.typeParameters,[t.thisType]),r=Kh(e);dd(e,t,n,r.length===n.length?r:K(r,[e]))}(e):3&e.objectFlags?function(e){dd(e,Ou(e),l,l)}(e):1024&e.objectFlags?function(e){const t=dm(e.source,Vt),n=ep(e.mappedType),r=!(1&n),i=4&n?0:16777216,o=t?[uh(Vt,Ww(t.type,e.mappedType,e.constraintType)||Ot,r&&t.isReadonly)]:l,a=Hu(),s=function(e){const t=qd(e.mappedType);if(!(1048576&t.flags||2097152&t.flags))return;const n=1048576&t.flags?t.origin:t;if(!(n&&2097152&n.flags))return;const r=Fb(n.types.filter((t=>t!==e.constraintType)));return r!==_n?r:void 0}(e);for(const t of vp(e.source)){if(s&&!gS(Mb(t,8576),s))continue;const n=8192|(r&&WL(t)?8:0),o=Wo(4|t.flags&i,t.escapedName,n);if(o.declarations=t.declarations,o.links.nameType=oa(t).nameType,o.links.propertyType=S_(t),8388608&e.constraintType.type.flags&&262144&e.constraintType.type.objectType.flags&&262144&e.constraintType.type.indexType.flags){const t=e.constraintType.type.objectType,n=jd(e.mappedType,e.constraintType.type,t);o.links.mappedType=n,o.links.constraintType=qb(t)}else o.links.mappedType=e.mappedType,o.links.constraintType=e.constraintType;a.set(t.escapedName,o)}Ms(e,a,l,l,o)}(e):16&e.objectFlags?function(e){if(e.target)return Ms(e,P,l,l,l),void Ms(e,Tu(gp(e.target),e.mapper,!1),gk(Rf(e.target,0),e.mapper),gk(Rf(e.target,1),e.mapper),bk(Kf(e.target),e.mapper));const t=ds(e.symbol);if(2048&t.flags){Ms(e,P,l,l,l);const n=sd(t),r=pg(n.get("__call")),i=pg(n.get("__new"));return void Ms(e,n,r,i,bh(t))}let n,r,i=cs(t);if(t===Fe){const e=new Map;i.forEach((t=>{var n;418&t.flags||512&t.flags&&(null==(n=t.declarations)?void 0:n.length)&&v(t.declarations,ap)||e.set(t.escapedName,t)})),i=e}if(Ms(e,i,l,l,l),32&t.flags){const e=Q_(nu(t));11272192&e.flags?(i=Hu(function(e){const t=js(e),n=lh(e);return n?K(t,[n]):t}(i)),Pu(i,vp(e))):e===wt&&(r=uh(Vt,wt,!1))}const o=lh(i);if(o?n=kh(o,Oe(i.values())):(r&&(n=ie(n,r)),384&t.flags&&(32&fu(t).flags||$(e.properties,(e=>!!(296&S_(e).flags))))&&(n=ie(n,ui))),Ms(e,i,l,l,n||l),8208&t.flags&&(e.callSignatures=pg(t)),32&t.flags){const n=nu(t);let r=t.members?pg(t.members.get("__constructor")):l;16&t.flags&&(r=se(r.slice(),B(e.callSignatures,(e=>qO(e.declaration)?pd(e.declaration,e.typeParameters,e.thisParameter,e.parameters,n,void 0,e.minArgumentCount,167&e.flags):void 0)))),r.length||(r=function(e){const t=Rf(Q_(e),1),n=fx(e.symbol),r=!!n&&wv(n,64);if(0===t.length)return[pd(void 0,e.localTypeParameters,void 0,l,e,void 0,0,r?4:0)];const i=z_(e),o=Fm(i),a=Sy(i),s=u(a),c=[];for(const n of t){const t=ng(n.typeParameters),i=u(n.typeParameters);if(o||s>=t&&s<=i){const s=i?Rg(n,rg(a,n.typeParameters,t,o)):fd(n);s.typeParameters=e.localTypeParameters,s.resolvedReturnType=e,s.flags=r?4|s.flags:-5&s.flags,c.push(s)}}return c}(n)),e.constructSignatures=r}}(e):32&e.objectFlags?function(e){const t=Hu();let n;Ms(e,P,l,l,l);const r=Jd(e),i=qd(e),o=e.target||e,a=Ud(o),s=2!==cp(o),c=Hd(o),_=pf(Yd(e)),u=ep(e);function d(i){FD(a?tS(a,zk(e.mapper,r,i)):i,(o=>function(i,o){if(oC(o)){const n=aC(o),r=t.get(n);if(r)r.links.nameType=xb([r.links.nameType,o]),r.links.keyType=xb([r.links.keyType,i]);else{const r=oC(i)?Cf(_,aC(i)):void 0,a=!!(4&u||!(8&u)&&r&&16777216&r.flags),c=!!(1&u||!(2&u)&&r&&WL(r)),l=H&&!a&&r&&16777216&r.flags,d=Wo(4|(a?16777216:0),n,262144|(r?Md(r):0)|(c?8:0)|(l?524288:0));d.links.mappedType=e,d.links.nameType=o,d.links.keyType=i,r&&(d.links.syntheticOrigin=r,d.declarations=s?r.declarations:void 0),t.set(n,d)}}else if(Th(o)||33&o.flags){const t=5&o.flags?Vt:40&o.flags?Wt:o,a=tS(c,zk(e.mapper,r,i)),s=hm(_,o),l=uh(t,a,!!(1&u||!(2&u)&&(null==s?void 0:s.isReadonly)));n=Ld(n,l,!0)}}(i,o)))}Qd(e)?Bd(_,8576,!1,d):FD(Rd(i),d),Ms(e,t,l,l,n||l)}(e):un.fail("Unhandled object type "+un.formatObjectFlags(e.objectFlags)):1048576&e.flags?function(e){const t=Nd(E(e.types,(e=>e===Xn?[ci]:Rf(e,0)))),n=Nd(E(e.types,(e=>Rf(e,1)))),r=Ed(e.types);Ms(e,P,t,n,r)}(e):2097152&e.flags?function(e){let t,n,r;const i=e.types,o=Ad(i),a=w(o,(e=>e));for(let s=0;s0&&(e=E(e,(e=>{const t=fd(e);return t.resolvedReturnType=Id(Tg(e),i,o,s),t}))),n=Od(n,e)}t=Od(t,Rf(c,0)),r=we(Kf(c),((e,t)=>Ld(e,t,!1)),r)}Ms(e,P,t||l,n||l,r||l)}(e):un.fail("Unhandled type "+un.formatTypeFlags(e.flags))),e}function gp(e){return 524288&e.flags?pp(e).properties:l}function hp(e,t){if(524288&e.flags){const n=pp(e).members.get(t);if(n&&Cs(n))return n}}function yp(e){if(!e.resolvedProperties){const t=Hu();for(const n of e.types){for(const r of vp(n))if(!t.has(r.escapedName)){const n=hf(e,r.escapedName,!!(2097152&e.flags));n&&t.set(r.escapedName,n)}if(1048576&e.flags&&0===Kf(n).length)break}e.resolvedProperties=js(t)}return e.resolvedProperties}function vp(e){return 3145728&(e=ff(e)).flags?yp(e):gp(e)}function bp(e){return 262144&e.flags?xp(e):8388608&e.flags?function(e){return tf(e)?function(e){if(df(e))return yx(e.objectType,e.indexType);const t=Sp(e.indexType);if(t&&t!==e.indexType){const n=Sx(e.objectType,t,e.accessFlags);if(n)return n}const n=Sp(e.objectType);return n&&n!==e.objectType?Sx(n,e.indexType,e.accessFlags):void 0}(e):void 0}(e):16777216&e.flags?zp(e):qp(e)}function xp(e){return tf(e)?Nh(e):void 0}function kp(e,t=0){var n;return t<5&&!(!e||!(262144&e.flags&&$(null==(n=e.symbol)?void 0:n.declarations,(e=>wv(e,4096)))||3145728&e.flags&&$(e.types,(e=>kp(e,t)))||8388608&e.flags&&kp(e.objectType,t+1)||16777216&e.flags&&kp(zp(e),t+1)||33554432&e.flags&&kp(e.baseType,t)||32&mx(e)&&function(e,t){const n=Xk(e);return!!n&&kp(n,t)}(e,t)||VC(e)&&k(Vv(e),((n,r)=>!!(8&e.target.elementFlags[r])&&kp(n,t)))>=0))}function Sp(e){const t=dx(e,!1);return t!==e?t:bp(e)}function wp(e){if(!e.resolvedDefaultConstraint){const t=function(e){return e.resolvedInferredTrueType||(e.resolvedInferredTrueType=e.combinedMapper?tS(dk(e.root.node.trueType),e.combinedMapper):Px(e))}(e),n=Ax(e);e.resolvedDefaultConstraint=Wc(t)?n:Wc(n)?t:xb([t,n])}return e.resolvedDefaultConstraint}function Ip(e){if(void 0!==e.resolvedConstraintOfDistributive)return e.resolvedConstraintOfDistributive||void 0;if(e.root.isDistributive&&e.restrictiveInstantiation!==e){const t=dx(e.checkType,!1),n=t===e.checkType?bp(t):t;if(n&&n!==e.checkType){const t=eS(e,Bk(e.root.checkType,n,e.mapper),!0);if(!(131072&t.flags))return e.resolvedConstraintOfDistributive=t,t}}e.resolvedConstraintOfDistributive=!1}function Mp(e){return Ip(e)||wp(e)}function zp(e){return tf(e)?Mp(e):void 0}function qp(e){if(464781312&e.flags||VC(e)){const t=nf(e);return t!==jn&&t!==Rn?t:void 0}return 4194304&e.flags?hn:void 0}function Wp(e){return qp(e)||e}function tf(e){return nf(e)!==Rn}function nf(e){if(e.resolvedBaseConstraint)return e.resolvedBaseConstraint;const t=[];return e.resolvedBaseConstraint=n(e);function n(e){if(!e.immediateBaseConstraint){if(!Mc(e,4))return Rn;let n;const o=tC(e);if((t.length<10||t.length<50&&!T(t,o))&&(t.push(o),n=function(e){if(262144&e.flags){const t=Nh(e);return e.isThisType||!t?t:i(t)}if(3145728&e.flags){const t=e.types,n=[];let r=!1;for(const e of t){const t=i(e);t?(t!==e&&(r=!0),n.push(t)):r=!0}return r?1048576&e.flags&&n.length===t.length?xb(n):2097152&e.flags&&n.length?Fb(n):void 0:e}if(4194304&e.flags)return hn;if(134217728&e.flags){const t=e.types,n=B(t,i);return n.length===t.length?Vb(e.texts,n):Vt}if(268435456&e.flags){const t=i(e.type);return t&&t!==e.type?$b(e.symbol,t):Vt}if(8388608&e.flags){if(df(e))return i(yx(e.objectType,e.indexType));const t=i(e.objectType),n=i(e.indexType),r=t&&n&&Sx(t,n,e.accessFlags);return r&&i(r)}if(16777216&e.flags){const t=Mp(e);return t&&i(t)}return 33554432&e.flags?i(my(e)):VC(e)?kv(E(Vv(e),((t,n)=>{const r=262144&t.flags&&8&e.target.elementFlags[n]&&i(t)||t;return r!==t&&AD(r,(e=>kC(e)&&!VC(e)))?r:t})),e.target.elementFlags,e.target.readonly,e.target.labeledElementDeclarations):e}(dx(e,!1)),t.pop()),!zc()){if(262144&e.flags){const t=Ch(e);if(t){const n=jo(t,la.Type_parameter_0_has_a_circular_constraint,sc(e));!r||sh(t,r)||sh(r,t)||iT(n,jp(r,la.Circularity_originates_in_type_at_this_location))}}n=Rn}e.immediateBaseConstraint??(e.immediateBaseConstraint=n||jn)}return e.immediateBaseConstraint}function i(e){const t=n(e);return t!==jn&&t!==Rn?t:void 0}}function rf(e){if(e.default)e.default===Mn&&(e.default=Rn);else if(e.target){const t=rf(e.target);e.default=t?tS(t,e.mapper):jn}else{e.default=Mn;const t=e.symbol&&d(e.symbol.declarations,(e=>iD(e)&&e.default)),n=t?dk(t):jn;e.default===Mn&&(e.default=n)}return e.default}function of(e){const t=rf(e);return t!==jn&&t!==Rn?t:void 0}function af(e){return!(!e.symbol||!d(e.symbol.declarations,(e=>iD(e)&&e.default)))}function lf(e){return e.resolvedApparentType||(e.resolvedApparentType=function(e){const t=e.target??e,n=Xk(t);if(n&&!t.declaration.nameType){const r=Yd(e),i=rp(r)?lf(r):qp(r);if(i&&AD(i,(e=>kC(e)||uf(e))))return tS(t,Bk(n,i,e.mapper))}return e}(e))}function uf(e){return!!(2097152&e.flags)&&v(e.types,kC)}function df(e){let t;return!(!(8388608&e.flags&&32&mx(t=e.objectType)&&!rp(t)&&_x(e.indexType))||8&ep(t)||t.declaration.nameType)}function pf(e){const t=465829888&e.flags?qp(e)||Ot:e,n=mx(t);return 32&n?lf(t):4&n&&t!==e?ld(t,e):2097152&t.flags?function(e,t){if(e===t)return e.resolvedApparentType||(e.resolvedApparentType=ld(e,t,!0));const n=`I${Kv(e)},${Kv(t)}`;return No(n)??Fo(n,ld(e,t,!0))}(t,e):402653316&t.flags?rr:296&t.flags?ir:2112&t.flags?Vr||(Vr=Ay("BigInt",0,!1))||Nn:528&t.flags?or:12288&t.flags?qy():67108864&t.flags?Nn:4194304&t.flags?hn:2&t.flags&&!H?Nn:t}function ff(e){return yf(pf(yf(e)))}function mf(e,t,n){var r,i,o;let a,s,c;const l=1048576&e.flags;let _,d=4,p=l?0:8,f=!1;for(const r of e.types){const e=pf(r);if(!($c(e)||131072&e.flags)){const r=Cf(e,t,n),i=r?rx(r):0;if(r){if(106500&r.flags&&(_??(_=l?0:16777216),l?_|=16777216&r.flags:_&=r.flags),a){if(r!==a)if((VM(r)||r)===(VM(a)||a)&&-1===rC(a,r,((e,t)=>e===t?-1:0)))f=!!a.parent&&!!u(M_(a.parent));else{s||(s=new Map,s.set(RB(a),a));const e=RB(r);s.has(e)||s.set(e,r)}}else a=r;l&&WL(r)?p|=8:l||WL(r)||(p&=-9),p|=(6&i?0:256)|(4&i?512:0)|(2&i?1024:0)|(256&i?2048:0),eI(r)||(d=2)}else if(l){const n=!Xu(t)&&Nm(e,t);n?(p|=32|(n.isReadonly?8:0),c=ie(c,UC(e)?$C(e)||jt:n.type)):!aN(e)||2097152&mx(e)?p|=16:(p|=32,c=ie(c,jt))}}}if(!a||l&&(s||48&p)&&1536&p&&(!s||!function(e){let t;for(const n of e){if(!n.declarations)return;if(t){if(t.forEach((e=>{T(n.declarations,e)||t.delete(e)})),0===t.size)return}else t=new Set(n.declarations)}return t}(s.values())))return;if(!(s||16&p||c)){if(f){const t=null==(r=tt(a,Ku))?void 0:r.links,n=dw(a,null==t?void 0:t.type);return n.parent=null==(o=null==(i=a.valueDeclaration)?void 0:i.symbol)?void 0:o.parent,n.links.containingType=e,n.links.mapper=null==t?void 0:t.mapper,n.links.writeType=b_(a),n}return a}const m=s?Oe(s.values()):[a];let g,h,y;const v=[];let b,x,k=!1;for(const e of m){x?e.valueDeclaration&&e.valueDeclaration!==x&&(k=!0):x=e.valueDeclaration,g=se(g,e.declarations);const t=S_(e);h||(h=t,y=oa(e).nameType);const n=b_(e);(b||n!==t)&&(b=ie(b||v.slice(),n)),t!==h&&(p|=64),(jC(t)||tx(t))&&(p|=128),131072&t.flags&&t!==Sn&&(p|=131072),v.push(t)}se(v,c);const S=Wo(4|(_??0),t,d|p);return S.links.containingType=e,!k&&x&&(S.valueDeclaration=x,x.symbol.parent&&(S.parent=x.symbol.parent)),S.declarations=g,S.links.nameType=y,v.length>2?(S.links.checkFlags|=65536,S.links.deferralParent=e,S.links.deferralConstituents=v,S.links.deferralWriteConstituents=b):(S.links.type=l?xb(v):Fb(v),b&&(S.links.writeType=l?xb(b):Fb(b))),S}function gf(e,t,n){var r,i,o;let a=n?null==(r=e.propertyCacheWithoutObjectFunctionPropertyAugment)?void 0:r.get(t):null==(i=e.propertyCache)?void 0:i.get(t);return!a&&(a=mf(e,t,n),a)&&((n?e.propertyCacheWithoutObjectFunctionPropertyAugment||(e.propertyCacheWithoutObjectFunctionPropertyAugment=Hu()):e.propertyCache||(e.propertyCache=Hu())).set(t,a),!n||48&nx(a)||(null==(o=e.propertyCache)?void 0:o.get(t))||(e.propertyCache||(e.propertyCache=Hu())).set(t,a)),a}function hf(e,t,n){const r=gf(e,t,n);return!r||16&nx(r)?void 0:r}function yf(e){return 1048576&e.flags&&16777216&e.objectFlags?e.resolvedReducedType||(e.resolvedReducedType=function(e){const t=A(e.types,yf);if(t===e.types)return e;const n=xb(t);return 1048576&n.flags&&(n.resolvedReducedType=n),n}(e)):2097152&e.flags?(16777216&e.objectFlags||(e.objectFlags|=16777216|($(yp(e),vf)?33554432:0)),33554432&e.objectFlags?_n:e):e}function vf(e){return bf(e)||xf(e)}function bf(e){return!(16777216&e.flags||192!=(131264&nx(e))||!(131072&S_(e).flags))}function xf(e){return!e.valueDeclaration&&!!(1024&nx(e))}function kf(e){return!!(1048576&e.flags&&16777216&e.objectFlags&&$(e.types,kf)||2097152&e.flags&&function(e){const t=e.uniqueLiteralFilledInstantiation||(e.uniqueLiteralFilledInstantiation=tS(e,Tn));return yf(t)!==t}(e))}function Sf(e,t){if(2097152&t.flags&&33554432&mx(t)){const n=b(yp(t),bf);if(n)return Yx(e,la.The_intersection_0_was_reduced_to_never_because_property_1_has_conflicting_types_in_some_constituents,sc(t,void 0,536870912),ic(n));const r=b(yp(t),xf);if(r)return Yx(e,la.The_intersection_0_was_reduced_to_never_because_property_1_exists_in_multiple_constituents_and_is_private_in_some,sc(t,void 0,536870912),ic(r))}return e}function Cf(e,t,n,r){var i,o;if(524288&(e=ff(e)).flags){const a=pp(e),s=a.members.get(t);if(s&&!r&&512&(null==(i=e.symbol)?void 0:i.flags)&&(null==(o=oa(e.symbol).typeOnlyExportStarMap)?void 0:o.has(t)))return;if(s&&Cs(s,r))return s;if(n)return;const c=a===Ln?Xn:a.callSignatures.length?Qn:a.constructSignatures.length?Yn:void 0;if(c){const e=hp(c,t);if(e)return e}return hp(Gn,t)}if(2097152&e.flags){return hf(e,t,!0)||(n?void 0:hf(e,t,n))}if(1048576&e.flags)return hf(e,t,n)}function jf(e,t){if(3670016&e.flags){const n=pp(e);return 0===t?n.callSignatures:n.constructSignatures}return l}function Rf(e,t){const n=jf(ff(e),t);if(0===t&&!u(n)&&1048576&e.flags){if(e.arrayFallbackSignatures)return e.arrayFallbackSignatures;let r;if(AD(e,(e=>{var t,n;return!(!(null==(t=e.symbol)?void 0:t.parent)||(n=e.symbol.parent,!(n&&Zn.symbol&&er.symbol)||!ks(n,Zn.symbol)&&!ks(n,er.symbol))||(r?r!==e.symbol.escapedName:(r=e.symbol.escapedName,0)))}))){const n=uv(zD(e,(e=>Ck((qf(e.symbol.parent)?er:Zn).typeParameters[0],e.mapper))),ED(e,(e=>qf(e.symbol.parent))));return e.arrayFallbackSignatures=Rf(Uc(n,r),t)}e.arrayFallbackSignatures=n}return n}function qf(e){return!(!e||!er.symbol||!ks(e,er.symbol))}function Uf(e,t){return b(e,(e=>e.keyType===t))}function Vf(e,t){let n,r,i;for(const o of e)o.keyType===Vt?n=o:Wf(t,o.keyType)&&(r?(i||(i=[r])).push(o):r=o);return i?uh(Ot,Fb(E(i,(e=>e.type))),we(i,((e,t)=>e&&t.isReadonly),!0)):r||(n&&Wf(t,Vt)?n:void 0)}function Wf(e,t){return gS(e,t)||t===Vt&&gS(e,Wt)||t===Wt&&(e===bn||!!(128&e.flags)&&MT(e.value))}function $f(e){return 3670016&e.flags?pp(e).indexInfos:l}function Kf(e){return $f(ff(e))}function dm(e,t){return Uf(Kf(e),t)}function pm(e,t){var n;return null==(n=dm(e,t))?void 0:n.type}function fm(e,t){return Kf(e).filter((e=>Wf(t,e.keyType)))}function hm(e,t){return Vf(Kf(e),t)}function Nm(e,t){return hm(e,Xu(t)?cn:ik(fc(t)))}function Pm(e){var t;let n;for(const t of ll(e))n=le(n,pu(t.symbol));return(null==n?void 0:n.length)?n:$F(e)?null==(t=sg(e))?void 0:t.typeParameters:void 0}function Lm(e){const t=[];return e.forEach(((e,n)=>{Ls(n)||t.push(e)})),t}function Mm(e,t){if(Ts(e))return;const n=sa(Ne,'"'+e+'"',512);return n&&t?ds(n):n}function Bm(e){return Cg(e)||VT(e)||oD(e)&&HT(e)}function zm(e){if(Bm(e))return!0;if(!oD(e))return!1;if(e.initializer){const t=ig(e.parent),n=e.parent.parameters.indexOf(e);return un.assert(n>=0),n>=yL(t,3)}const t=im(e.parent);return!!t&&!e.type&&!e.dotDotDotToken&&e.parent.parameters.indexOf(e)>=bO(t).length}function Xm(e,t,n,r){return{kind:e,parameterName:t,parameterIndex:n,type:r}}function ng(e){let t=0;if(e)for(let n=0;n=n&&o<=i){const n=e?e.slice():[];for(let e=o;ec.arguments.length&&!u||(o=n.length)}if((177===e.kind||178===e.kind)&&Zu(e)&&(!s||!r)){const t=177===e.kind?178:177,n=Wu(ps(e),t);n&&(r=function(e){const t=UJ(e);return t&&t.symbol}(n))}a&&a.typeExpression&&(r=dw(Wo(1,"this"),dk(a.typeExpression)));const _=aP(e)?qg(e):e,u=_&&dD(_)?nu(ds(_.parent.symbol)):void 0,d=u?u.localTypeParameters:Pm(e);(Ru(e)||Fm(e)&&function(e,t){if(aP(e)||!cg(e))return!1;const n=ye(e.parameters),r=f(n?Fc(n):il(e).filter(bP),(e=>e.typeExpression&&nP(e.typeExpression.type)?e.typeExpression.type:void 0)),i=Wo(3,"args",32768);return r?i.links.type=uv(dk(r.type)):(i.links.checkFlags|=65536,i.links.deferralParent=_n,i.links.deferralConstituents=[cr],i.links.deferralWriteConstituents=[cr]),r&&t.pop(),t.push(i),!0}(e,n))&&(i|=1),(xD(e)&&wv(e,64)||dD(e)&&wv(e.parent,64))&&(i|=4),t.resolvedSignature=pd(e,d,r,n,void 0,void 0,o,i)}return t.resolvedSignature}function sg(e){if(!Fm(e)||!i_(e))return;const t=el(e);return(null==t?void 0:t.typeExpression)&&aO(dk(t.typeExpression))}function cg(e){const t=aa(e);return void 0===t.containsArgumentsReference&&(512&t.flags?t.containsArgumentsReference=!0:t.containsArgumentsReference=function e(t){if(!t)return!1;switch(t.kind){case 80:return t.escapedText===Le.escapedName&&kJ(t)===Le;case 172:case 174:case 177:case 178:return 167===t.name.kind&&e(t.name);case 211:case 212:return e(t.expression);case 303:return e(t.initializer);default:return!Yh(t)&&!Tf(t)&&!!PI(t,e)}}(e.body)),t.containsArgumentsReference}function pg(e){if(!e||!e.declarations)return l;const t=[];for(let n=0;n0&&r.body){const t=e.declarations[n-1];if(r.parent===t.parent&&r.kind===t.kind&&r.pos===t.end)continue}if(Fm(r)&&r.jsDoc){const e=Jg(r);if(u(e)){for(const n of e){const e=n.typeExpression;void 0!==e.type||dD(r)||ww(e,wt),t.push(ig(e))}continue}}t.push(!jT(r)&&!Mf(r)&&sg(r)||ig(r))}}return t}function mg(e){const t=Qa(e,e);if(t){const e=ts(t);if(e)return S_(e)}return wt}function yg(e){if(e.thisParameter)return S_(e.thisParameter)}function vg(e){if(!e.resolvedTypePredicate){if(e.target){const t=vg(e.target);e.resolvedTypePredicate=t?Uk(t,e.mapper):ai}else if(e.compositeSignatures)e.resolvedTypePredicate=function(e,t){let n;const r=[];for(const i of e){const e=vg(i);if(e){if(0!==e.kind&&1!==e.kind||n&&!Sb(n,e))return;n=e,r.push(e.type)}else{const e=2097152!==t?Tg(i):void 0;if(e!==Ht&&e!==Qt)return}}if(!n)return;const i=Sg(r,t);return Xm(n.kind,n.parameterName,n.parameterIndex,i)}(e.compositeSignatures,e.compositeKind)||ai;else{const t=e.declaration&&mv(e.declaration);let n;if(!t){const t=sg(e.declaration);t&&e!==t&&(n=vg(t))}if(t||n)e.resolvedTypePredicate=t&&yD(t)?function(e,t){const n=e.parameterName,r=e.type&&dk(e.type);return 197===n.kind?Xm(e.assertsModifier?2:0,void 0,void 0,r):Xm(e.assertsModifier?3:1,n.escapedText,k(t.parameters,(e=>e.escapedName===n.escapedText)),r)}(t,e):n||ai;else if(e.declaration&&i_(e.declaration)&&(!e.resolvedReturnType||16&e.resolvedReturnType.flags)&&hL(e)>0){const{declaration:t}=e;e.resolvedTypePredicate=ai,e.resolvedTypePredicate=function(e){switch(e.kind){case 176:case 177:case 178:return}if(0!==Ih(e))return;let t;if(e.body&&241!==e.body.kind)t=e.body;else if(wf(e.body,(e=>{if(t||!e.expression)return!0;t=e.expression}))||!t||BL(e))return;return function(e,t){return 16&fj(t=oh(t,!0)).flags?d(e.parameters,((n,r)=>{const i=S_(n.symbol);if(!i||16&i.flags||!zN(n.name)||qF(n.symbol)||Mu(n))return;const o=function(e,t,n,r){const i=Ig(t)&&t.flowNode||253===t.parent.kind&&t.parent.flowNode||EM(2,void 0,void 0),o=EM(32,t,i),a=JF(n.name,r,r,e,o);if(a===r)return;const s=EM(64,t,i);return 131072&JF(n.name,r,a,e,s).flags?a:void 0}(e,t,n,i);return o?Xm(1,fc(n.name.escapedText),r,o):void 0})):void 0}(e,t)}(t)||ai}else e.resolvedTypePredicate=ai}un.assert(!!e.resolvedTypePredicate)}return e.resolvedTypePredicate===ai?void 0:e.resolvedTypePredicate}function Sg(e,t,n){return 2097152!==t?xb(e,n):Fb(e)}function Tg(e){if(!e.resolvedReturnType){if(!Mc(e,3))return Et;let t=e.target?tS(Tg(e.target),e.mapper):e.compositeSignatures?tS(Sg(E(e.compositeSignatures,Tg),e.compositeKind,2),e.mapper):Fg(e.declaration)||(Cd(e.declaration.body)?wt:OL(e.declaration));if(8&e.flags?t=iw(t):16&e.flags&&(t=tw(t)),!zc()){if(e.declaration){const t=mv(e.declaration);if(t)jo(t,la.Return_type_annotation_circularly_references_itself);else if(ne){const t=e.declaration,n=Tc(t);n?jo(n,la._0_implicitly_has_return_type_any_because_it_does_not_have_a_return_type_annotation_and_is_referenced_directly_or_indirectly_in_one_of_its_return_expressions,Ep(n)):jo(t,la.Function_implicitly_has_return_type_any_because_it_does_not_have_a_return_type_annotation_and_is_referenced_directly_or_indirectly_in_one_of_its_return_expressions)}}t=wt}e.resolvedReturnType??(e.resolvedReturnType=t)}return e.resolvedReturnType}function Fg(e){if(176===e.kind)return nu(ds(e.parent.symbol));const t=mv(e);if(aP(e)){const n=Vg(e);if(n&&dD(n.parent)&&!t)return nu(ds(n.parent.parent.symbol))}if(wg(e))return dk(e.parameters[0].type);if(t)return dk(t);if(177===e.kind&&Zu(e)){const t=Fm(e)&&fl(e);if(t)return t;const n=Ql(Wu(ps(e),178));if(n)return n}return function(e){const t=sg(e);return t&&Tg(t)}(e)}function Eg(e){return e.compositeSignatures&&$(e.compositeSignatures,Eg)||!e.resolvedReturnType&&Bc(e,3)>=0}function Ag(e){if(UB(e)){const t=S_(e.parameters[e.parameters.length-1]),n=UC(t)?$C(t):t;return n&&pm(n,Wt)}}function Lg(e,t,n,r){const i=jg(e,rg(t,e.typeParameters,ng(e.typeParameters),n));if(r){const e=sO(Tg(i));if(e){const t=fd(e);t.typeParameters=r;const n=fd(i);return n.resolvedReturnType=Yg(t),n}}return i}function jg(e,t){const n=e.instantiations||(e.instantiations=new Map),r=Eh(t);let i=n.get(r);return i||n.set(r,i=Rg(e,t)),i}function Rg(e,t){return Vk(e,function(e,t){return Tk($g(e),t)}(e,t),!0)}function $g(e){return A(e.typeParameters,(e=>e.mapper?tS(e,e.mapper):e))}function Hg(e){return e.typeParameters?e.erasedSignatureCache||(e.erasedSignatureCache=function(e){return Vk(e,jk(e.typeParameters),!0)}(e)):e}function Kg(e){const t=e.typeParameters;if(t){if(e.baseSignatureCache)return e.baseSignatureCache;const n=jk(t),r=Tk(t,E(t,(e=>xp(e)||Ot)));let i=E(t,(e=>tS(e,r)||Ot));for(let e=0;e{Th(e)&&!Uf(n,e)&&n.push(uh(e,t.type?dk(t.type):wt,Cv(t,8),t))}))}}else if(Yu(t)){const e=cF(t)?t.left:t.name,_=KD(e)?fj(e.argumentExpression):kA(e);if(Uf(n,_))continue;gS(_,hn)&&(gS(_,Wt)?(r=!0,Iv(t)||(i=!1)):gS(_,cn)?(o=!0,Iv(t)||(a=!1)):(s=!0,Iv(t)||(c=!1)),l.push(t.symbol))}const _=K(l,N(t,(t=>t!==e)));return s&&!Uf(n,Vt)&&n.push(CA(c,0,_,Vt)),r&&!Uf(n,Wt)&&n.push(CA(i,0,_,Wt)),o&&!Uf(n,cn)&&n.push(CA(a,0,_,cn)),n}return l}function Th(e){return!!(4108&e.flags)||tx(e)||!!(2097152&e.flags)&&!cx(e)&&$(e.types,Th)}function Ch(e){return B(N(e.symbol&&e.symbol.declarations,iD),_l)[0]}function wh(e,t){var n;let r;if(null==(n=e.symbol)?void 0:n.declarations)for(const n of e.symbol.declarations)if(195===n.parent.kind){const[i=n.parent,o]=rh(n.parent.parent);if(183!==o.kind||t){if(169===o.kind&&o.dotDotDotToken||191===o.kind||202===o.kind&&o.dotDotDotToken)r=ie(r,uv(Ot));else if(204===o.kind)r=ie(r,Vt);else if(168===o.kind&&200===o.parent.kind)r=ie(r,hn);else if(200===o.kind&&o.type&&oh(o.type)===n.parent&&194===o.parent.kind&&o.parent.extendsType===o&&200===o.parent.checkType.kind&&o.parent.checkType.type){const e=o.parent.checkType;r=ie(r,tS(dk(e.type),Fk(pu(ps(e.typeParameter)),e.typeParameter.constraint?dk(e.typeParameter.constraint):hn)))}}else{const t=o,n=Xj(t);if(n){const o=t.typeArguments.indexOf(i);if(o()=>Hj(t,n,r)))));o!==e&&(r=ie(r,o))}}}}}return r&&Fb(r)}function Nh(e){if(!e.constraint)if(e.target){const t=xp(e.target);e.constraint=t?tS(t,e.mapper):jn}else{const t=Ch(e);if(t){let n=dk(t);1&n.flags&&!$c(n)&&(n=200===t.parent.parent.kind?hn:Ot),e.constraint=n}else e.constraint=wh(e)||jn}return e.constraint===jn?void 0:e.constraint}function Dh(e){const t=Wu(e.symbol,168),n=TP(t.parent)?Bg(t.parent):t.parent;return n&&gs(n)}function Eh(e){let t="";if(e){const n=e.length;let r=0;for(;r1&&(t+=":"+o),r+=o}}return t}function Ph(e,t){return e?`@${RB(e)}`+(t?`:${Eh(t)}`:""):""}function Ah(e,t){let n=0;for(const r of e)void 0!==t&&r.flags&t||(n|=mx(r));return 458752&n}function Oh(e,t){return $(t)&&e===On?Ot:jh(e,t)}function jh(e,t){const n=Eh(t);let r=e.instantiations.get(n);return r||(r=Is(4,e.symbol),e.instantiations.set(n,r),r.objectFlags|=t?Ah(t):0,r.target=e,r.resolvedTypeArguments=t),r}function Wh(e){const t=Ns(e.flags,e.symbol);return t.objectFlags=e.objectFlags,t.target=e.target,t.resolvedTypeArguments=e.resolvedTypeArguments,t}function $h(e,t,n,r,i){if(!r){const e=Jx(r=Bx(t));i=n?mk(e,n):e}const o=Is(4,e.symbol);return o.target=e,o.node=t,o.mapper=n,o.aliasSymbol=r,o.aliasTypeArguments=i,o}function Kh(e){var t,n;if(!e.resolvedTypeArguments){if(!Mc(e,5))return K(e.target.outerTypeParameters,null==(t=e.target.localTypeParameters)?void 0:t.map((()=>Et)))||l;const i=e.node,o=i?183===i.kind?K(e.target.outerTypeParameters,Kj(i,e.target.localTypeParameters)):188===i.kind?[dk(i.elementType)]:E(i.elements,dk):l;zc()?e.resolvedTypeArguments??(e.resolvedTypeArguments=e.mapper?mk(o,e.mapper):o):(e.resolvedTypeArguments??(e.resolvedTypeArguments=K(e.target.outerTypeParameters,(null==(n=e.target.localTypeParameters)?void 0:n.map((()=>Et)))||l)),jo(e.node||r,e.target.symbol?la.Type_arguments_for_0_circularly_reference_themselves:la.Tuple_type_arguments_circularly_reference_themselves,e.target.symbol&&ic(e.target.symbol)))}return e.resolvedTypeArguments}function ey(e){return u(e.target.typeParameters)}function ty(e,t){const n=fu(ds(t)),r=n.localTypeParameters;if(r){const t=u(e.typeArguments),i=ng(r),o=Fm(e);if((ne||!o)&&(tr.length)){const t=o&&mF(e)&&!sP(e.parent);if(jo(e,i===r.length?t?la.Expected_0_type_arguments_provide_these_with_an_extends_tag:la.Generic_type_0_requires_1_type_argument_s:t?la.Expected_0_1_type_arguments_provide_these_with_an_extends_tag:la.Generic_type_0_requires_between_1_and_2_type_arguments,sc(n,void 0,2),i,r.length),!o)return Et}return 183===e.kind&&vv(e,u(e.typeArguments)!==r.length)?$h(n,e,void 0):jh(n,K(n.outerTypeParameters,rg(Sy(e),r,i,o)))}return vy(e,t)?n:Et}function ny(e,t,n,r){const i=fu(e);if(i===It){const n=IB.get(e.escapedName);if(void 0!==n&&t&&1===t.length)return 4===n?_y(t[0]):$b(e,t[0])}const o=oa(e),a=o.typeParameters,s=Eh(t)+Ph(n,r);let c=o.instantiations.get(s);return c||o.instantiations.set(s,c=nS(i,Tk(a,rg(t,a,ng(a),Fm(e.valueDeclaration))),n,r)),c}function ry(e){var t;const n=null==(t=e.declarations)?void 0:t.find(Dg);return!(!n||!Hf(n))}function iy(e){return e.parent?`${iy(e.parent)}.${e.escapedName}`:e.escapedName}function oy(e){const t=(166===e.kind?e.right:211===e.kind?e.name:e).escapedText;if(t){const n=166===e.kind?oy(e.left):211===e.kind?oy(e.expression):void 0,r=n?`${iy(n)}.${t}`:t;let i=St.get(r);return i||(St.set(r,i=Wo(524288,t,1048576)),i.parent=n,i.links.declaredType=Pt),i}return xt}function ay(e,t,n){const r=function(e){switch(e.kind){case 183:return e.typeName;case 233:const t=e.expression;if(ob(t))return t}}(e);if(!r)return xt;const i=Ka(r,t,n);return i&&i!==xt?i:n?xt:oy(r)}function sy(e,t){if(t===xt)return Et;if(96&(t=function(e){const t=e.valueDeclaration;if(!t||!Fm(t)||524288&e.flags||$m(t,!1))return;const n=VF(t)?Vm(t):Wm(t);if(n){const t=gs(n);if(t)return UO(t,e)}}(t)||t).flags)return ty(e,t);if(524288&t.flags)return function(e,t){if(1048576&nx(t)){const n=Sy(e),r=Ph(t,n);let i=Tt.get(r);return i||(i=As(1,"error",void 0,`alias ${r}`),i.aliasSymbol=t,i.aliasTypeArguments=n,Tt.set(r,i)),i}const n=fu(t),r=oa(t).typeParameters;if(r){const n=u(e.typeArguments),i=ng(r);if(nr.length)return jo(e,i===r.length?la.Generic_type_0_requires_1_type_argument_s:la.Generic_type_0_requires_between_1_and_2_type_arguments,ic(t),i,r.length),Et;const o=Bx(e);let a,s=!o||!ry(t)&&ry(o)?void 0:o;if(s)a=Jx(s);else if(Au(e)){const t=ay(e,2097152,!0);if(t&&t!==xt){const n=Ba(t);n&&524288&n.flags&&(s=n,a=Sy(e)||(r?[]:void 0))}}return ny(t,Sy(e),s,a)}return vy(e,t)?n:Et}(e,t);const n=mu(t);if(n)return vy(e,t)?nk(n):Et;if(111551&t.flags&&yy(e)){const n=function(e,t){const n=aa(e);if(!n.resolvedJSDocType){const r=S_(t);let i=r;if(t.valueDeclaration){const n=205===e.kind&&e.qualifier;r.symbol&&r.symbol!==t&&n&&(i=sy(e,r.symbol))}n.resolvedJSDocType=i}return n.resolvedJSDocType}(e,t);return n||(ay(e,788968),S_(t))}return Et}function _y(e){return uy(e)?fy(e,Ot):e}function uy(e){return!!(3145728&e.flags&&$(e.types,uy)||33554432&e.flags&&!dy(e)&&uy(e.baseType)||524288&e.flags&&!jS(e)||432275456&e.flags&&!tx(e))}function dy(e){return!!(33554432&e.flags&&2&e.constraint.flags)}function py(e,t){return 3&t.flags||t===e||1&e.flags?e:fy(e,t)}function fy(e,t){const n=`${Kv(e)}>${Kv(t)}`,r=dt.get(n);if(r)return r;const i=ws(33554432);return i.baseType=e,i.constraint=t,dt.set(n,i),i}function my(e){return dy(e)?e.baseType:Fb([e.constraint,e.baseType])}function gy(e){return 189===e.kind&&1===e.elements.length}function hy(e,t,n){return gy(t)&&gy(n)?hy(e,t.elements[0],n.elements[0]):Nx(dk(t))===Nx(e)?dk(n):void 0}function yy(e){return!!(16777216&e.flags)&&(183===e.kind||205===e.kind)}function vy(e,t){return!e.typeArguments||(jo(e,la.Type_0_is_not_generic,t?ic(t):e.typeName?Ep(e.typeName):SB),!1)}function xy(e){if(zN(e.typeName)){const t=e.typeArguments;switch(e.typeName.escapedText){case"String":return vy(e),Vt;case"Number":return vy(e),Wt;case"Boolean":return vy(e),sn;case"Void":return vy(e),ln;case"Undefined":return vy(e),jt;case"Null":return vy(e),zt;case"Function":case"function":return vy(e),Xn;case"array":return t&&t.length||ne?void 0:cr;case"promise":return t&&t.length||ne?void 0:PL(wt);case"Object":if(t&&2===t.length){if(Im(e)){const e=dk(t[0]),n=dk(t[1]),r=e===Vt||e===Wt?[uh(e,n,!1)]:l;return Bs(void 0,P,l,l,r)}return wt}return vy(e),ne?void 0:wt}}}function ky(e){const t=aa(e);if(!t.resolvedType){if(xl(e)&&V_(e.parent))return t.resolvedSymbol=xt,t.resolvedType=fj(e.parent.expression);let n,r;const i=788968;yy(e)&&(r=xy(e),r||(n=ay(e,i,!0),n===xt?n=ay(e,111551|i):ay(e,i),r=sy(e,n))),r||(n=ay(e,i),r=sy(e,n)),t.resolvedSymbol=n,t.resolvedType=r}return t.resolvedType}function Sy(e){return E(e.typeArguments,dk)}function Ty(e){const t=aa(e);if(!t.resolvedType){const n=tL(e);t.resolvedType=nk(Sw(n))}return t.resolvedType}function Cy(e,t){function n(e){const t=e.declarations;if(t)for(const e of t)switch(e.kind){case 263:case 264:case 266:return e}}if(!e)return t?On:Nn;const r=fu(e);return 524288&r.flags?u(r.typeParameters)!==t?(jo(n(e),la.Global_type_0_must_have_1_type_parameter_s,hc(e),t),t?On:Nn):r:(jo(n(e),la.Global_type_0_must_be_a_class_or_interface_type,hc(e)),t?On:Nn)}function wy(e,t){return Py(e,111551,t?la.Cannot_find_global_value_0:void 0)}function Ny(e,t){return Py(e,788968,t?la.Cannot_find_global_type_0:void 0)}function Ey(e,t,n){const r=Py(e,788968,n?la.Cannot_find_global_type_0:void 0);if(!r||(fu(r),u(oa(r).typeParameters)===t))return r;jo(r.declarations&&b(r.declarations,GF),la.Global_type_0_must_have_1_type_parameter_s,hc(r),t)}function Py(e,t,n){return Ue(void 0,e,t,n,!1,!1)}function Ay(e,t,n){const r=Ny(e,n);return r||n?Cy(r,t):void 0}function Ly(e,t){let n;for(const r of e)n=ie(n,Ay(r,t,!1));return n??l}function Ry(){return Lr||(Lr=Ay("ImportMeta",0,!0)||Nn)}function My(){if(!jr){const e=Wo(0,"ImportMetaExpression"),t=Ry(),n=Wo(4,"meta",8);n.parent=e,n.links.type=t;const r=Hu([n]);e.members=r,jr=Bs(e,r,l,l,l)}return jr}function By(e){return Rr||(Rr=Ay("ImportCallOptions",0,e))||Nn}function Jy(e){return Mr||(Mr=Ay("ImportAttributes",0,e))||Nn}function zy(e){return dr||(dr=wy("Symbol",e))}function qy(){return fr||(fr=Ay("Symbol",0,!1))||Nn}function Uy(e){return gr||(gr=Ay("Promise",1,e))||On}function Vy(e){return hr||(hr=Ay("PromiseLike",1,e))||On}function Wy(e){return yr||(yr=wy("Promise",e))}function $y(e){return Nr||(Nr=Ay("AsyncIterable",3,e))||On}function Hy(e){return Fr||(Fr=Ay("AsyncIterableIterator",3,e))||On}function Ky(e){return br||(br=Ay("Iterable",3,e))||On}function Xy(e){return kr||(kr=Ay("IterableIterator",3,e))||On}function Qy(){return ee?jt:wt}function Yy(e){return Br||(Br=Ay("Disposable",0,e))||Nn}function Zy(e,t=0){const n=Py(e,788968,void 0);return n&&Cy(n,t)}function ev(e){return Ur||(Ur=Ey("Awaited",1,e)||(e?xt:void 0)),Ur===xt?void 0:Ur}function tv(e,t){return e!==On?jh(e,t):Nn}function nv(e){return tv(mr||(mr=Ay("TypedPropertyDescriptor",1,!0)||On),[e])}function ov(e){return tv(Ky(!0),[e,ln,jt])}function uv(e,t){return tv(t?er:Zn,[e])}function dv(e){switch(e.kind){case 190:return 2;case 191:return fv(e);case 202:return e.questionToken?2:e.dotDotDotToken?fv(e):1;default:return 1}}function fv(e){return uk(e.type)?4:8}function yv(e){return wD(e)||oD(e)?e:void 0}function vv(e,t){return!!Bx(e)||bv(e)&&(188===e.kind?xv(e.elementType):189===e.kind?$(e.elements,xv):t||$(e.typeArguments,xv))}function bv(e){const t=e.parent;switch(t.kind){case 196:case 202:case 183:case 192:case 193:case 199:case 194:case 198:case 188:case 189:return bv(t);case 265:return!0}return!1}function xv(e){switch(e.kind){case 183:return yy(e)||!!(524288&ay(e,788968).flags);case 186:return!0;case 198:return 158!==e.operator&&xv(e.type);case 196:case 190:case 202:case 316:case 314:case 315:case 309:return xv(e.type);case 191:return 188!==e.type.kind||xv(e.type.elementType);case 192:case 193:return $(e.types,xv);case 199:return xv(e.objectType)||xv(e.indexType);case 194:return xv(e.checkType)||xv(e.extendsType)||xv(e.trueType)||xv(e.falseType)}return!1}function kv(e,t,n=!1,r=[]){const i=jv(t||E(e,(e=>1)),n,r);return i===On?Nn:e.length?Rv(i,e):i}function jv(e,t,n){if(1===e.length&&4&e[0])return t?er:Zn;const r=E(e,(e=>1&e?"#":2&e?"?":4&e?".":"*")).join()+(t?"R":"")+($(n,(e=>!!e))?","+E(n,(e=>e?jB(e):"_")).join(","):"");let i=Ye.get(r);return i||Ye.set(r,i=function(e,t,n){const r=e.length,i=w(e,(e=>!!(9&e)));let o;const a=[];let s=0;if(r){o=new Array(r);for(let i=0;i!!(8&e.elementFlags[n]&&1179648&t.flags)));if(n>=0)return Pb(E(t,((t,n)=>8&e.elementFlags[n]?t:Ot)))?zD(t[n],(r=>Bv(e,Se(t,n,r)))):Et}const s=[],c=[],l=[];let _=-1,u=-1,p=-1;for(let c=0;c=1e4)return jo(r,Tf(r)?la.Type_produces_a_tuple_type_that_is_too_large_to_represent:la.Expression_produces_a_tuple_type_that_is_too_large_to_represent),Et;d(e,((e,t)=>{var n;return m(e,l.target.elementFlags[t],null==(n=l.target.labeledElementDeclarations)?void 0:n[t])}))}else m(CC(l)&&pm(l,Wt)||Et,4,null==(o=e.labeledElementDeclarations)?void 0:o[c]);else m(l,_,null==(a=e.labeledElementDeclarations)?void 0:a[c])}for(let e=0;e<_;e++)2&c[e]&&(c[e]=1);u>=0&&u8&c[u+t]?vx(e,Wt):e))),s.splice(u+1,p-u),c.splice(u+1,p-u),l.splice(u+1,p-u));const f=jv(c,e.readonly,l);return f===On?Nn:c.length?jh(f,s):f;function m(e,t,n){1&t&&(_=c.length),4&t&&u<0&&(u=c.length),6&t&&(p=c.length),s.push(2&t?kl(e,!0):e),c.push(t),l.push(n)}}function Jv(e,t,n=0){const r=e.target,i=ey(e)-n;return t>r.fixedLength?function(e){const t=$C(e);return t&&uv(t)}(e)||kv(l):kv(Kh(e).slice(t,i),r.elementFlags.slice(t,i),!1,r.labeledElementDeclarations&&r.labeledElementDeclarations.slice(t,i))}function zv(e){return xb(ie(Ie(e.target.fixedLength,(e=>ik(""+e))),qb(e.target.readonly?er:Zn)))}function qv(e,t){return e.elementFlags.length-S(e.elementFlags,(e=>!(e&t)))-1}function Uv(e){return e.fixedLength+qv(e,3)}function Vv(e){const t=Kh(e),n=ey(e);return t.length===n?t:t.slice(0,n)}function Kv(e){return e.id}function Gv(e,t){return Te(e,t,Kv,vt)>=0}function Xv(e,t){const n=Te(e,t,Kv,vt);return n<0&&(e.splice(~n,0,t),!0)}function eb(e,t,n){const r=n.flags;if(!(131072&r))if(t|=473694207&r,465829888&r&&(t|=33554432),2097152&r&&67108864&mx(n)&&(t|=536870912),n===Dt&&(t|=8388608),$c(n)&&(t|=1073741824),!H&&98304&r)65536&mx(n)||(t|=4194304);else{const t=e.length,r=t&&n.id>e[t-1].id?~t:Te(e,n,Kv,vt);r<0&&e.splice(~r,0,n)}return t}function rb(e,t,n){let r;for(const i of n)i!==r&&(t=1048576&i.flags?rb(e,t|(hb(i)?1048576:0),i.types):eb(e,t,i),r=i);return t}function gb(e,t){return 134217728&t.flags?tN(e,t):Yw(e,t)}function hb(e){return!!(1048576&e.flags&&(e.aliasSymbol||e.origin))}function yb(e,t){for(const n of t)if(1048576&n.flags){const t=n.origin;n.aliasSymbol||t&&!(1048576&t.flags)?ce(e,n):t&&1048576&t.flags&&yb(e,t.types)}}function bb(e,t){const n=Fs(e);return n.types=t,n}function xb(e,t=1,n,r,i){if(0===e.length)return _n;if(1===e.length)return e[0];if(2===e.length&&!i&&(1048576&e[0].flags||1048576&e[1].flags)){const i=0===t?"N":2===t?"S":"L",o=e[0].id=2&&a[0]===jt&&a[1]===Mt&&qt(a,1),(402664352&s||16384&s&&32768&s)&&function(e,t,n){let r=e.length;for(;r>0;){r--;const i=e[r],o=i.flags;(402653312&o&&4&t||256&o&&8&t||2048&o&&64&t||8192&o&&4096&t||n&&32768&o&&16384&t||rk(i)&&Gv(e,i.regularType))&&qt(e,r)}}(a,s,!!(2&t)),128&s&&402653184&s&&function(e){const t=N(e,tx);if(t.length){let n=e.length;for(;n>0;){n--;const r=e[n];128&r.flags&&$(t,(e=>gb(r,e)))&&qt(e,n)}}}(a),536870912&s&&function(e){const t=[];for(const n of e)if(2097152&n.flags&&67108864&mx(n)){const e=8650752&n.types[0].flags?0:1;ce(t,n.types[e])}for(const n of t){const t=[];for(const r of e)if(2097152&r.flags&&67108864&mx(r)){const e=8650752&r.types[0].flags?0:1;r.types[e]===n&&Xv(t,r.types[1-e])}if(AD(qp(n),(e=>Gv(t,e)))){let r=e.length;for(;r>0;){r--;const i=e[r];if(2097152&i.flags&&67108864&mx(i)){const o=8650752&i.types[0].flags?0:1;i.types[o]===n&&Gv(t,i.types[1-o])&&qt(e,r)}}Xv(e,n)}}}(a),2===t&&(a=function(e,t){var n;if(e.length<2)return e;const i=Eh(e),o=pt.get(i);if(o)return o;const a=t&&$(e,(e=>!!(524288&e.flags)&&!rp(e)&&OS(pp(e)))),s=e.length;let c=s,l=0;for(;c>0;){c--;const t=e[c];if(a||469499904&t.flags){if(262144&t.flags&&1048576&Wp(t).flags){zS(t,xb(E(e,(e=>e===t?_n:e))),go)&&qt(e,c);continue}const i=61603840&t.flags?b(vp(t),(e=>OC(S_(e)))):void 0,o=i&&nk(S_(i));for(const a of e)if(t!==a){if(1e5===l&&l/(s-c)*s>1e6)return null==(n=Hn)||n.instant(Hn.Phase.CheckTypes,"removeSubtypes_DepthLimit",{typeIds:e.map((e=>e.id))}),void jo(r,la.Expression_produces_a_union_type_that_is_too_complex_to_represent);if(l++,i&&61603840&a.flags){const e=Uc(a,i.escapedName);if(e&&OC(e)&&nk(e)!==o)continue}if(zS(t,a,go)&&(!(1&mx(N_(t)))||!(1&mx(N_(a)))||hS(t,a))){qt(e,c);break}}}}return pt.set(i,e),e}(a,!!(524288&s)),!a))return Et;if(0===a.length)return 65536&s?4194304&s?zt:Ut:32768&s?4194304&s?jt:Rt:_n}if(!o&&1048576&s){const t=[];yb(t,e);const r=[];for(const e of a)$(t,(t=>Gv(t.types,e)))||r.push(e);if(!n&&1===t.length&&0===r.length)return t[0];if(we(t,((e,t)=>e+t.types.length),0)+r.length===a.length){for(const e of t)Xv(r,e);o=bb(1048576,r)}}return Tb(a,(36323331&s?0:32768)|(2097152&s?16777216:0),n,i,o)}function Sb(e,t){return e.kind===t.kind&&e.parameterIndex===t.parameterIndex}function Tb(e,t,n,r,i){if(0===e.length)return _n;if(1===e.length)return e[0];const o=(i?1048576&i.flags?`|${Eh(i.types)}`:2097152&i.flags?`&${Eh(i.types)}`:`#${i.type.id}|${Eh(e)}`:Eh(e))+Ph(n,r);let a=et.get(o);return a||(a=ws(1048576),a.objectFlags=t|Ah(e,98304),a.types=e,a.origin=i,a.aliasSymbol=n,a.aliasTypeArguments=r,2===e.length&&512&e[0].flags&&512&e[1].flags&&(a.flags|=16,a.intrinsicName="boolean"),et.set(o,a)),a}function Cb(e,t,n){const r=n.flags;return 2097152&r?wb(e,t,n.types):(jS(n)?16777216&t||(t|=16777216,e.set(n.id.toString(),n)):(3&r?(n===Dt&&(t|=8388608),$c(n)&&(t|=1073741824)):!H&&98304&r||(n===Mt&&(t|=262144,n=jt),e.has(n.id.toString())||(109472&n.flags&&109472&t&&(t|=67108864),e.set(n.id.toString(),n))),t|=473694207&r),t)}function wb(e,t,n){for(const r of n)t=Cb(e,t,nk(r));return t}function Nb(e,t){for(const n of e)if(!Gv(n.types,t)){if(t===Mt)return Gv(n.types,jt);if(t===jt)return Gv(n.types,Mt);const e=128&t.flags?Vt:288&t.flags?Wt:2048&t.flags?$t:8192&t.flags?cn:void 0;if(!e||!Gv(n.types,e))return!1}return!0}function Db(e,t){for(let n=0;n!(e.flags&t)))}function Fb(e,t=0,n,r){const i=new Map,o=wb(i,0,e),a=Oe(i.values());let s=0;if(131072&o)return T(a,dn)?dn:_n;if(H&&98304&o&&84410368&o||67108864&o&&402783228&o||402653316&o&&67238776&o||296&o&&469891796&o||2112&o&&469889980&o||12288&o&&469879804&o||49152&o&&469842940&o)return _n;if(402653184&o&&128&o&&function(e){let t=e.length;const n=N(e,(e=>!!(128&e.flags)));for(;t>0;){t--;const r=e[t];if(402653184&r.flags)for(const i of n){if(fS(i,r)){qt(e,t);break}if(tx(r))return!0}}return!1}(a))return _n;if(1&o)return 8388608&o?Dt:1073741824&o?Et:wt;if(!H&&98304&o)return 16777216&o?_n:32768&o?jt:zt;if((4&o&&402653312&o||8&o&&256&o||64&o&&2048&o||4096&o&&8192&o||16384&o&&32768&o||16777216&o&&470302716&o)&&(1&t||function(e,t){let n=e.length;for(;n>0;){n--;const r=e[n];(4&r.flags&&402653312&t||8&r.flags&&256&t||64&r.flags&&2048&t||4096&r.flags&&8192&t||16384&r.flags&&32768&t||jS(r)&&470302716&t)&&qt(e,n)}}(a,o)),262144&o&&(a[a.indexOf(jt)]=Mt),0===a.length)return Ot;if(1===a.length)return a[0];if(2===a.length&&!(2&t)){const e=8650752&a[0].flags?0:1,t=a[e],n=a[1-e];if(8650752&t.flags&&(469893116&n.flags&&!ix(n)||16777216&o)){const e=qp(t);if(e&&AD(e,(e=>!!(469893116&e.flags)||jS(e)))){if(mS(e,n))return t;if(!(1048576&e.flags&&ED(e,(e=>mS(e,n)))||mS(n,e)))return _n;s=67108864}}}const c=Eh(a)+(2&t?"*":Ph(n,r));let l=it.get(c);if(!l){if(1048576&o)if(function(e){let t;const n=k(e,(e=>!!(32768&mx(e))));if(n<0)return!1;let r=n+1;for(;r!!(1048576&e.flags&&32768&e.types[0].flags)))){const e=$(a,lw)?Mt:jt;Db(a,32768),l=xb([Fb(a,t),e],1,n,r)}else if(v(a,(e=>!!(1048576&e.flags&&(65536&e.types[0].flags||65536&e.types[1].flags)))))Db(a,65536),l=xb([Fb(a,t),zt],1,n,r);else if(a.length>=3&&e.length>2){const e=Math.floor(a.length/2);l=Fb([Fb(a.slice(0,e),t),Fb(a.slice(e),t)],t,n,r)}else{if(!Pb(a))return Et;const e=function(e,t){const n=Eb(e),r=[];for(let i=0;i=0;t--)if(1048576&e[t].flags){const r=e[t].types,i=r.length;n[t]=r[o%i],o=Math.floor(o/i)}const a=Fb(n,t);131072&a.flags||r.push(a)}return r}(a,t);l=xb(e,1,n,r,$(e,(e=>!!(2097152&e.flags)))&&Ib(e)>Ib(a)?bb(2097152,a):void 0)}else l=function(e,t,n,r){const i=ws(2097152);return i.objectFlags=t|Ah(e,98304),i.types=e,i.aliasSymbol=n,i.aliasTypeArguments=r,i}(a,s,n,r);it.set(c,l)}return l}function Eb(e){return we(e,((e,t)=>1048576&t.flags?e*t.types.length:131072&t.flags?0:e),1)}function Pb(e){var t;const n=Eb(e);return!(n>=1e5&&(null==(t=Hn)||t.instant(Hn.Phase.CheckTypes,"checkCrossProductUnion_DepthLimit",{typeIds:e.map((e=>e.id)),size:n}),jo(r,la.Expression_produces_a_union_type_that_is_too_complex_to_represent),1))}function Ab(e){return 3145728&e.flags&&!e.aliasSymbol?1048576&e.flags&&e.origin?Ab(e.origin):Ib(e.types):1}function Ib(e){return we(e,((e,t)=>e+Ab(t)),0)}function Ob(e,t){const n=ws(4194304);return n.type=e,n.indexFlags=t,n}function Lb(e,t){return 1&t?e.resolvedStringIndexType||(e.resolvedStringIndexType=Ob(e,1)):e.resolvedIndexType||(e.resolvedIndexType=Ob(e,0))}function jb(e,t){const n=Jd(e),r=qd(e),i=Ud(e.target||e);if(!(i||2&t))return r;const o=[];if(_x(r)){if(Qd(e))return Lb(e,t);FD(r,s)}else Qd(e)?Bd(pf(Yd(e)),8576,!!(1&t),s):FD(Rd(r),s);const a=2&t?OD(xb(o),(e=>!(5&e.flags))):xb(o);return 1048576&a.flags&&1048576&r.flags&&Eh(a.types)===Eh(r.types)?r:a;function s(t){const r=i?tS(i,zk(e.mapper,n,t)):t;o.push(r===Vt?gn:r)}}function Rb(e){if(qN(e))return _n;if(kN(e))return nk(Lj(e));if(rD(e))return nk(kA(e));const t=Bh(e);return void 0!==t?ik(fc(t)):U_(e)?nk(Lj(e)):_n}function Mb(e,t,n){if(n||!(6&rx(e))){let n=oa(cd(e)).nameType;if(!n){const t=Tc(e.valueDeclaration);n="default"===e.escapedName?ik("default"):t&&Rb(t)||(Vh(e)?void 0:ik(hc(e)))}if(n&&n.flags&t)return n}return _n}function Bb(e,t){return!!(e.flags&t||2097152&e.flags&&$(e.types,(e=>Bb(e,t))))}function Jb(e,t,n){const r=n&&(7&mx(e)||e.aliasSymbol)?function(e){const t=Fs(4194304);return t.type=e,t}(e):void 0;return xb(K(E(vp(e),(e=>Mb(e,t))),E(Kf(e),(e=>e!==ui&&Bb(e.keyType,t)?e.keyType===Vt&&8&t?gn:e.keyType:_n))),1,void 0,void 0,r)}function zb(e,t=0){return!!(58982400&e.flags||VC(e)||rp(e)&&(!function(e){const t=Jd(e);return function e(n){return!!(470810623&n.flags)||(16777216&n.flags?n.root.isDistributive&&n.checkType===t:137363456&n.flags?v(n.types,e):8388608&n.flags?e(n.objectType)&&e(n.indexType):33554432&n.flags?e(n.baseType)&&e(n.constraint):!!(268435456&n.flags)&&e(n.type))}(Ud(e)||t)}(e)||2===cp(e))||1048576&e.flags&&!(4&t)&&kf(e)||2097152&e.flags&&QL(e,465829888)&&$(e.types,jS))}function qb(e,t=0){return dy(e=yf(e))?_y(qb(e.baseType,t)):zb(e,t)?Lb(e,t):1048576&e.flags?Fb(E(e.types,(e=>qb(e,t)))):2097152&e.flags?xb(E(e.types,(e=>qb(e,t)))):32&mx(e)?jb(e,t):e===Dt?Dt:2&e.flags?_n:131073&e.flags?hn:Jb(e,(2&t?128:402653316)|(1&t?0:12584),0===t)}function Ub(e){const t=(zr||(zr=Ey("Extract",2,!0)||xt),zr===xt?void 0:zr);return t?ny(t,[e,Vt]):Vt}function Vb(e,t){const n=k(t,(e=>!!(1179648&e.flags)));if(n>=0)return Pb(t)?zD(t[n],(r=>Vb(e,Se(t,n,r)))):Et;if(T(t,Dt))return Dt;const r=[],i=[];let o=e[0];if(!function e(t,n){for(let a=0;a""===e))){if(v(r,(e=>!!(4&e.flags))))return Vt;if(1===r.length&&tx(r[0]))return r[0]}const a=`${Eh(r)}|${E(i,(e=>e.length)).join(",")}|${i.join("")}`;let s=_t.get(a);return s||_t.set(a,s=function(e,t){const n=ws(134217728);return n.texts=e,n.types=t,n}(i,r)),s}function Wb(e){return 128&e.flags?e.value:256&e.flags?""+e.value:2048&e.flags?fT(e.value):98816&e.flags?e.intrinsicName:void 0}function $b(e,t){return 1179648&t.flags?zD(t,(t=>$b(e,t))):128&t.flags?ik(Hb(e,t.value)):134217728&t.flags?Vb(...function(e,t,n){switch(IB.get(e.escapedName)){case 0:return[t.map((e=>e.toUpperCase())),n.map((t=>$b(e,t)))];case 1:return[t.map((e=>e.toLowerCase())),n.map((t=>$b(e,t)))];case 2:return[""===t[0]?t:[t[0].charAt(0).toUpperCase()+t[0].slice(1),...t.slice(1)],""===t[0]?[$b(e,n[0]),...n.slice(1)]:n];case 3:return[""===t[0]?t:[t[0].charAt(0).toLowerCase()+t[0].slice(1),...t.slice(1)],""===t[0]?[$b(e,n[0]),...n.slice(1)]:n]}return[t,n]}(e,t.texts,t.types)):268435456&t.flags&&e===t.symbol?t:268435461&t.flags||_x(t)?Kb(e,t):ex(t)?Kb(e,Vb(["",""],[t])):t}function Hb(e,t){switch(IB.get(e.escapedName)){case 0:return t.toUpperCase();case 1:return t.toLowerCase();case 2:return t.charAt(0).toUpperCase()+t.slice(1);case 3:return t.charAt(0).toLowerCase()+t.slice(1)}return t}function Kb(e,t){const n=`${RB(e)},${Kv(t)}`;let r=ut.get(n);return r||ut.set(n,r=function(e,t){const n=Ns(268435456,e);return n.type=t,n}(e,t)),r}function Gb(e){if(ne)return!1;if(4096&mx(e))return!0;if(1048576&e.flags)return v(e.types,Gb);if(2097152&e.flags)return $(e.types,Gb);if(465829888&e.flags){const t=nf(e);return t!==e&&Gb(t)}return!1}function Xb(e,t){return oC(e)?aC(e):t&&e_(t)?Bh(t):void 0}function Qb(e,t){if(8208&t.flags){const n=_c(e.parent,(e=>!kx(e)))||e.parent;return O_(n)?L_(n)&&zN(e)&&DN(n,e):v(t.declarations,(e=>!n_(e)||Uo(e)))}return!0}function Yb(e,t,n,r,i,o){const a=i&&212===i.kind?i:void 0,s=i&&qN(i)?void 0:Xb(n,i);if(void 0!==s){if(256&o)return VP(t,s)||wt;const e=Cf(t,s);if(e){if(64&o&&i&&e.declarations&&qo(e)&&Qb(i,e)&&Vo((null==a?void 0:a.argumentExpression)??(jD(i)?i.indexType:i),e.declarations,s),a){if(zI(e,a,qI(a.expression,t.symbol)),$L(a,e,Gg(a)))return void jo(a.argumentExpression,la.Cannot_assign_to_0_because_it_is_a_read_only_property,ic(e));if(8&o&&(aa(i).resolvedSymbol=e),kI(a,e))return Nt}const n=4&o?b_(e):S_(e);return a&&1!==Gg(a)?JF(a,n):i&&jD(i)&&lw(n)?xb([n,jt]):n}if(AD(t,UC)&&MT(s)){const e=+s;if(i&&AD(t,(e=>!(12&e.target.combinedFlags)))&&!(16&o)){const n=Zb(i);if(UC(t)){if(e<0)return jo(n,la.A_tuple_type_cannot_be_indexed_with_a_negative_value),jt;jo(n,la.Tuple_type_0_of_length_1_has_no_element_at_index_2,sc(t),ey(t),fc(s))}else jo(n,la.Property_0_does_not_exist_on_type_1,fc(s),sc(t))}if(e>=0)return c(dm(t,Wt)),HC(t,e,1&o?Mt:void 0)}}if(!(98304&n.flags)&&YL(n,402665900)){if(131073&t.flags)return t;const l=hm(t,n)||dm(t,Vt);if(l)return 2&o&&l.keyType!==Wt?void(a&&(4&o?jo(a,la.Type_0_is_generic_and_can_only_be_indexed_for_reading,sc(e)):jo(a,la.Type_0_cannot_be_used_to_index_type_1,sc(n),sc(e)))):i&&l.keyType===Vt&&!YL(n,12)?(jo(Zb(i),la.Type_0_cannot_be_used_as_an_index_type,sc(n)),1&o?xb([l.type,Mt]):l.type):(c(l),1&o&&!(t.symbol&&384&t.symbol.flags&&n.symbol&&1024&n.flags&&hs(n.symbol)===t.symbol)?xb([l.type,Mt]):l.type);if(131072&n.flags)return _n;if(Gb(t))return wt;if(a&&!ej(t)){if(aN(t)){if(ne&&384&n.flags)return uo.add(jp(a,la.Property_0_does_not_exist_on_type_1,n.value,sc(t))),jt;if(12&n.flags)return xb(ie(E(t.properties,(e=>S_(e))),jt))}if(t.symbol===Fe&&void 0!==s&&Fe.exports.has(s)&&418&Fe.exports.get(s).flags)jo(a,la.Property_0_does_not_exist_on_type_1,fc(s),sc(t));else if(ne&&!(128&o))if(void 0!==s&&FI(s,t)){const e=sc(t);jo(a,la.Property_0_does_not_exist_on_type_1_Did_you_mean_to_access_the_static_member_2_instead,s,e,e+"["+Kd(a.argumentExpression)+"]")}else if(pm(t,Wt))jo(a.argumentExpression,la.Element_implicitly_has_an_any_type_because_index_expression_is_not_of_type_number);else{let e;if(void 0!==s&&(e=LI(s,t)))void 0!==e&&jo(a.argumentExpression,la.Property_0_does_not_exist_on_type_1_Did_you_mean_2,s,sc(t),e);else{const e=function(e,t,n){const r=Xg(t)?"set":"get";if(!function(t){const r=hp(e,t);if(r){const e=aO(S_(r));return!!e&&yL(e)>=1&&gS(n,pL(e,0))}return!1}(r))return;let i=lb(t.expression);return void 0===i?i=r:i+="."+r,i}(t,a,n);if(void 0!==e)jo(a,la.Element_implicitly_has_an_any_type_because_type_0_has_no_index_signature_Did_you_mean_to_call_1,sc(t),e);else{let e;if(1024&n.flags)e=Yx(void 0,la.Property_0_does_not_exist_on_type_1,"["+sc(n)+"]",sc(t));else if(8192&n.flags){const r=Ha(n.symbol,a);e=Yx(void 0,la.Property_0_does_not_exist_on_type_1,"["+r+"]",sc(t))}else 128&n.flags||256&n.flags?e=Yx(void 0,la.Property_0_does_not_exist_on_type_1,n.value,sc(t)):12&n.flags&&(e=Yx(void 0,la.No_index_signature_with_a_parameter_of_type_0_was_found_on_type_1,sc(n),sc(t)));e=Yx(e,la.Element_implicitly_has_an_any_type_because_expression_of_type_0_can_t_be_used_to_index_type_1,sc(r),sc(t)),uo.add(Bp(hd(a),a,e))}}}return}}if(16&o&&aN(t))return jt;if(Gb(t))return wt;if(i){const e=Zb(i);if(10!==e.kind&&384&n.flags)jo(e,la.Property_0_does_not_exist_on_type_1,""+n.value,sc(t));else if(12&n.flags)jo(e,la.Type_0_has_no_matching_index_signature_for_type_1,sc(t),sc(n));else{const t=10===e.kind?"bigint":sc(n);jo(e,la.Type_0_cannot_be_used_as_an_index_type,t)}}return Wc(n)?n:void 0;function c(e){e&&e.isReadonly&&a&&(Xg(a)||ah(a))&&jo(a,la.Index_signature_in_type_0_only_permits_reading,sc(t))}}function Zb(e){return 212===e.kind?e.argumentExpression:199===e.kind?e.indexType:167===e.kind?e.expression:e}function ex(e){if(2097152&e.flags){let t=!1;for(const n of e.types)if(101248&n.flags||ex(n))t=!0;else if(!(524288&n.flags))return!1;return t}return!!(77&e.flags)||tx(e)}function tx(e){return!!(134217728&e.flags)&&v(e.types,ex)||!!(268435456&e.flags)&&ex(e.type)}function ix(e){return!!(402653184&e.flags)&&!tx(e)}function cx(e){return!!ux(e)}function lx(e){return!!(4194304&ux(e))}function _x(e){return!!(8388608&ux(e))}function ux(e){return 3145728&e.flags?(2097152&e.objectFlags||(e.objectFlags|=2097152|we(e.types,((e,t)=>e|ux(t)),0)),12582912&e.objectFlags):33554432&e.flags?(2097152&e.objectFlags||(e.objectFlags|=2097152|ux(e.baseType)|ux(e.constraint)),12582912&e.objectFlags):(58982400&e.flags||rp(e)||VC(e)?4194304:0)|(63176704&e.flags||ix(e)?8388608:0)}function dx(e,t){return 8388608&e.flags?function(e,t){const n=t?"simplifiedForWriting":"simplifiedForReading";if(e[n])return e[n]===Rn?e:e[n];e[n]=Rn;const r=dx(e.objectType,t),i=dx(e.indexType,t),o=function(e,t,n){if(1048576&t.flags){const r=E(t.types,(t=>dx(vx(e,t),n)));return n?Fb(r):xb(r)}}(r,i,t);if(o)return e[n]=o;if(!(465829888&i.flags)){const o=px(r,i,t);if(o)return e[n]=o}if(VC(r)&&296&i.flags){const o=KC(r,8&i.flags?0:r.target.fixedLength,0,t);if(o)return e[n]=o}return rp(r)&&2!==cp(r)?e[n]=zD(yx(r,e.indexType),(e=>dx(e,t))):e[n]=e}(e,t):16777216&e.flags?function(e,t){const n=e.checkType,r=e.extendsType,i=Px(e),o=Ax(e);if(131072&o.flags&&Nx(i)===Nx(n)){if(1&n.flags||gS(iS(n),iS(r)))return dx(i,t);if(hx(n,r))return _n}else if(131072&i.flags&&Nx(o)===Nx(n)){if(!(1&n.flags)&&gS(iS(n),iS(r)))return _n;if(1&n.flags||hx(n,r))return dx(o,t)}return e}(e,t):e}function px(e,t,n){if(1048576&e.flags||2097152&e.flags&&!zb(e)){const r=E(e.types,(e=>dx(vx(e,t),n)));return 2097152&e.flags||n?Fb(r):xb(r)}}function hx(e,t){return!!(131072&xb([Pd(e,t),_n]).flags)}function yx(e,t){const n=Tk([Jd(e)],[t]),r=Rk(e.mapper,n),i=tS(Hd(e.target||e),r),o=tp(e)>0||(cx(e)?np(Yd(e))>0:function(e,t){const n=qp(t);return!!n&&$(vp(e),(e=>!!(16777216&e.flags)&&gS(Mb(e,8576),n)))}(e,t));return kl(i,!0,o)}function vx(e,t,n=0,r,i,o){return Sx(e,t,n,r,i,o)||(r?Et:Ot)}function bx(e,t){return AD(e,(e=>{if(384&e.flags){const n=aC(e);if(MT(n)){const e=+n;return e>=0&&e0&&!$(e.elements,(e=>ND(e)||DD(e)||wD(e)&&!(!e.questionToken&&!e.dotDotDotToken)))}function Fx(e,t){return cx(e)||t&&UC(e)&&$(Vv(e),cx)}function Ex(e,t,n,i,o){let a,s,c=0;for(;;){if(1e3===c)return jo(r,la.Type_instantiation_is_excessively_deep_and_possibly_infinite),Et;const _=tS(Nx(e.checkType),t),d=tS(e.extendsType,t);if(_===Et||d===Et)return Et;if(_===Dt||d===Dt)return Dt;const p=ih(e.node.checkType),f=ih(e.node.extendsType),m=Dx(p)&&Dx(f)&&u(p.elements)===u(f.elements),g=Fx(_,m);let h;if(e.inferTypeParameters){const n=Ew(e.inferTypeParameters,void 0,0);t&&(n.nonFixingMapper=Rk(n.nonFixingMapper,t)),g||rN(n.inferences,_,d,1536),h=t?Rk(n.mapper,t):n.mapper}const y=h?tS(e.extendsType,h):d;if(!g&&!Fx(y,m)){if(!(3&y.flags)&&(1&_.flags||!gS(rS(_),rS(y)))){(1&_.flags||n&&!(131072&y.flags)&&ED(rS(y),(e=>gS(e,rS(_)))))&&(s||(s=[])).push(tS(dk(e.node.trueType),h||t));const r=dk(e.node.falseType);if(16777216&r.flags){const n=r.root;if(n.node.parent===e.node&&(!n.isDistributive||n.checkType===e.checkType)){e=n;continue}if(l(r,t))continue}a=tS(r,t);break}if(3&y.flags||gS(iS(_),iS(y))){const n=dk(e.node.trueType),r=h||t;if(l(n,r))continue;a=tS(n,r);break}}a=ws(16777216),a.root=e,a.checkType=tS(e.checkType,t),a.extendsType=tS(e.extendsType,t),a.mapper=t,a.combinedMapper=h,a.aliasSymbol=i||e.aliasSymbol,a.aliasTypeArguments=i?o:mk(e.aliasTypeArguments,t);break}return s?xb(ie(s,a)):a;function l(n,r){if(16777216&n.flags&&r){const a=n.root;if(a.outerTypeParameters){const s=Rk(n.mapper,r),l=E(a.outerTypeParameters,(e=>Ck(e,s))),_=Tk(a.outerTypeParameters,l),u=a.isDistributive?Ck(a.checkType,_):void 0;if(!(u&&u!==a.checkType&&1179648&u.flags))return e=a,t=_,i=void 0,o=void 0,a.aliasSymbol&&c++,!0}}return!1}}function Px(e){return e.resolvedTrueType||(e.resolvedTrueType=tS(dk(e.root.node.trueType),e.mapper))}function Ax(e){return e.resolvedFalseType||(e.resolvedFalseType=tS(dk(e.root.node.falseType),e.mapper))}function Ix(e){let t;return e.locals&&e.locals.forEach((e=>{262144&e.flags&&(t=ie(t,fu(e)))})),t}function Ox(e){return zN(e)?[e]:ie(Ox(e.left),e.right)}function Lx(e){var t;const n=aa(e);if(!n.resolvedType){if(!_f(e))return jo(e.argument,la.String_literal_expected),n.resolvedSymbol=xt,n.resolvedType=Et;const r=e.isTypeOf?111551:16777216&e.flags?900095:788968,i=Qa(e,e.argument.literal);if(!i)return n.resolvedSymbol=xt,n.resolvedType=Et;const o=!!(null==(t=i.exports)?void 0:t.get("export=")),a=ts(i,!1);if(Cd(e.qualifier))a.flags&r?n.resolvedType=Rx(e,n,a,r):(jo(e,111551===r?la.Module_0_does_not_refer_to_a_value_but_is_used_as_a_value_here:la.Module_0_does_not_refer_to_a_type_but_is_used_as_a_type_here_Did_you_mean_typeof_import_0,e.argument.literal.text),n.resolvedSymbol=xt,n.resolvedType=Et);else{const t=Ox(e.qualifier);let i,s=a;for(;i=t.shift();){const a=t.length?1920:r,c=ds(Ma(s)),l=e.isTypeOf||Fm(e)&&o?Cf(S_(c),i.escapedText,!1,!0):void 0,_=(e.isTypeOf?void 0:sa(cs(c),i.escapedText,a))??l;if(!_)return jo(i,la.Namespace_0_has_no_exported_member_1,Ha(s),Ep(i)),n.resolvedType=Et;aa(i).resolvedSymbol=_,aa(i.parent).resolvedSymbol=_,s=_}n.resolvedType=Rx(e,n,s,r)}}return n.resolvedType}function Rx(e,t,n,r){const i=Ma(n);return t.resolvedSymbol=i,111551===r?nL(S_(n),e):sy(e,i)}function Mx(e){const t=aa(e);if(!t.resolvedType){const n=Bx(e);if(!e.symbol||0===sd(e.symbol).size&&!n)t.resolvedType=Pn;else{let r=Is(16,e.symbol);r.aliasSymbol=n,r.aliasTypeArguments=Jx(n),oP(e)&&e.isArrayType&&(r=uv(r)),t.resolvedType=r}}return t.resolvedType}function Bx(e){let t=e.parent;for(;ID(t)||VE(t)||LD(t)&&148===t.operator;)t=t.parent;return Dg(t)?ps(t):void 0}function Jx(e){return e?M_(e):void 0}function zx(e){return!!(524288&e.flags)&&!rp(e)}function qx(e){return LS(e)||!!(474058748&e.flags)}function Ux(e,t){if(!(1048576&e.flags))return e;if(v(e.types,qx))return b(e.types,LS)||Nn;const n=b(e.types,(e=>!qx(e)));return n?b(e.types,(e=>e!==n&&!qx(e)))?e:function(e){const n=Hu();for(const r of vp(e))if(6&rx(r));else if($x(r)){const e=65536&r.flags&&!(32768&r.flags),i=Wo(16777220,r.escapedName,Md(r)|(t?8:0));i.links.type=e?jt:kl(S_(r),!0),i.declarations=r.declarations,i.links.nameType=oa(r).nameType,i.links.syntheticOrigin=r,n.set(r.escapedName,i)}const r=Bs(e.symbol,n,l,l,Kf(e));return r.objectFlags|=131200,r}(n):e}function Wx(e,t,n,r,i){if(1&e.flags||1&t.flags)return wt;if(2&e.flags||2&t.flags)return Ot;if(131072&e.flags)return t;if(131072&t.flags)return e;if(1048576&(e=Ux(e,i)).flags)return Pb([e,t])?zD(e,(e=>Wx(e,t,n,r,i))):Et;if(1048576&(t=Ux(t,i)).flags)return Pb([e,t])?zD(t,(t=>Wx(e,t,n,r,i))):Et;if(473960444&t.flags)return e;if(lx(e)||lx(t)){if(LS(e))return t;if(2097152&e.flags){const o=e.types,a=o[o.length-1];if(zx(a)&&zx(t))return Fb(K(o.slice(0,o.length-1),[Wx(a,t,n,r,i)]))}return Fb([e,t])}const o=Hu(),a=new Set,s=e===Nn?Kf(t):Ed([e,t]);for(const e of vp(t))6&rx(e)?a.add(e.escapedName):$x(e)&&o.set(e.escapedName,Hx(e,i));for(const t of vp(e))if(!a.has(t.escapedName)&&$x(t))if(o.has(t.escapedName)){const e=o.get(t.escapedName),n=S_(e);if(16777216&e.flags){const r=K(t.declarations,e.declarations),i=Wo(4|16777216&t.flags,t.escapedName),a=S_(t),s=_w(a),c=_w(n);i.links.type=s===c?a:xb([a,c],2),i.links.leftSpread=t,i.links.rightSpread=e,i.declarations=r,i.links.nameType=oa(t).nameType,o.set(t.escapedName,i)}}else o.set(t.escapedName,Hx(t,i));const c=Bs(n,o,l,l,A(s,(e=>function(e,t){return e.isReadonly!==t?uh(e.keyType,e.type,t,e.declaration):e}(e,i))));return c.objectFlags|=2228352|r,c}function $x(e){var t;return!($(e.declarations,Hl)||106496&e.flags&&(null==(t=e.declarations)?void 0:t.some((e=>__(e.parent)))))}function Hx(e,t){const n=65536&e.flags&&!(32768&e.flags);if(!n&&t===WL(e))return e;const r=Wo(4|16777216&e.flags,e.escapedName,Md(e)|(t?8:0));return r.links.type=n?jt:S_(e),r.declarations=e.declarations,r.links.nameType=oa(e).nameType,r.links.syntheticOrigin=e,r}function Qx(e,t,n,r){const i=Ns(e,n);return i.value=t,i.regularType=r||i,i}function ek(e){if(2976&e.flags){if(!e.freshType){const t=Qx(e.flags,e.value,e.symbol,e);t.freshType=t,e.freshType=t}return e.freshType}return e}function nk(e){return 2976&e.flags?e.regularType:1048576&e.flags?e.regularType||(e.regularType=zD(e,nk)):e}function rk(e){return!!(2976&e.flags)&&e.freshType===e}function ik(e){let t;return ot.get(e)||(ot.set(e,t=Qx(128,e)),t)}function ok(e){let t;return at.get(e)||(at.set(e,t=Qx(256,e)),t)}function ak(e){let t;const n=fT(e);return st.get(n)||(st.set(n,t=Qx(2048,e)),t)}function sk(e,t,n){let r;const i=`${t}${"string"==typeof e?"@":"#"}${e}`,o=1024|("string"==typeof e?128:256);return ct.get(i)||(ct.set(i,r=Qx(o,e,n)),r)}function ck(e){if(Fm(e)&&VE(e)){const t=Ug(e);t&&(e=Pg(t)||t)}if(Of(e)){const t=If(e)?gs(e.left):gs(e);if(t){const e=oa(t);return e.uniqueESSymbolType||(e.uniqueESSymbolType=function(e){const t=Ns(8192,e);return t.escapedName=`__@${t.symbol.escapedName}@${RB(t.symbol)}`,t}(t))}}return cn}function lk(e){const t=aa(e);return t.resolvedType||(t.resolvedType=function(e){const t=Zf(e,!1,!1),n=t&&t.parent;if(n&&(__(n)||264===n.kind)&&!Nv(t)&&(!dD(t)||sh(e,t.body)))return nu(ps(n)).thisType;if(n&&$D(n)&&cF(n.parent)&&6===eg(n.parent))return nu(gs(n.parent.left).parent).thisType;const r=16777216&e.flags?zg(e):void 0;return r&&eF(r)&&cF(r.parent)&&3===eg(r.parent)?nu(gs(r.parent.left).parent).thisType:qO(t)&&sh(e,t.body)?nu(ps(t)).thisType:(jo(e,la.A_this_type_is_available_only_in_a_non_static_member_of_a_class_or_interface),Et)}(e)),t.resolvedType}function _k(e){return dk(uk(e.type)||e.type)}function uk(e){switch(e.kind){case 196:return uk(e.type);case 189:if(1===e.elements.length&&(191===(e=e.elements[0]).kind||202===e.kind&&e.dotDotDotToken))return uk(e.type);break;case 188:return e.elementType}}function dk(e){return function(e,t){let n,r=!0;for(;t&&!du(t)&&320!==t.kind;){const i=t.parent;if(169===i.kind&&(r=!r),(r||8650752&e.flags)&&194===i.kind&&t===i.trueType){const t=hy(e,i.checkType,i.extendsType);t&&(n=ie(n,t))}else if(262144&e.flags&&200===i.kind&&!i.nameType&&t===i.type){const t=dk(i);if(Jd(t)===Nx(e)){const e=Xk(t);if(e){const t=xp(e);t&&AD(t,kC)&&(n=ie(n,xb([Wt,bn])))}}}t=i}return n?py(e,Fb(n)):e}(pk(e),e)}function pk(e){switch(e.kind){case 133:case 312:case 313:return wt;case 159:return Ot;case 154:return Vt;case 150:return Wt;case 163:return $t;case 136:return sn;case 155:return cn;case 116:return ln;case 157:return jt;case 106:return zt;case 146:return _n;case 151:return 524288&e.flags&&!ne?wt:mn;case 141:return It;case 197:case 110:return lk(e);case 201:return function(e){if(106===e.literal.kind)return zt;const t=aa(e);return t.resolvedType||(t.resolvedType=nk(Lj(e.literal))),t.resolvedType}(e);case 183:case 233:return ky(e);case 182:return e.assertsModifier?ln:sn;case 186:return Ty(e);case 188:case 189:return function(e){const t=aa(e);if(!t.resolvedType){const n=function(e){const t=function(e){return LD(e)&&148===e.operator}(e.parent);return uk(e)?t?er:Zn:jv(E(e.elements,dv),t,E(e.elements,yv))}(e);if(n===On)t.resolvedType=Nn;else if(189===e.kind&&$(e.elements,(e=>!!(8&dv(e))))||!vv(e)){const r=188===e.kind?[dk(e.elementType)]:E(e.elements,dk);t.resolvedType=Rv(n,r)}else t.resolvedType=189===e.kind&&0===e.elements.length?n:$h(n,e,void 0)}return t.resolvedType}(e);case 190:return function(e){return kl(dk(e.type),!0)}(e);case 192:return function(e){const t=aa(e);if(!t.resolvedType){const n=Bx(e);t.resolvedType=xb(E(e.types,dk),1,n,Jx(n))}return t.resolvedType}(e);case 193:return function(e){const t=aa(e);if(!t.resolvedType){const n=Bx(e),r=E(e.types,dk),i=2===r.length?r.indexOf(Pn):-1,o=i>=0?r[1-i]:Ot,a=!!(76&o.flags||134217728&o.flags&&tx(o));t.resolvedType=Fb(r,a?1:0,n,Jx(n))}return t.resolvedType}(e);case 314:return function(e){const t=dk(e.type);return H?ew(t,65536):t}(e);case 316:return kl(dk(e.type));case 202:return function(e){const t=aa(e);return t.resolvedType||(t.resolvedType=e.dotDotDotToken?_k(e):kl(dk(e.type),!0,!!e.questionToken))}(e);case 196:case 315:case 309:return dk(e.type);case 191:return _k(e);case 318:return function(e){const t=dk(e.type),{parent:n}=e,r=e.parent.parent;if(VE(e.parent)&&bP(r)){const e=zg(r),n=_P(r.parent.parent);if(e||n){const i=ye(n?r.parent.parent.typeExpression.parameters:e.parameters),o=Mg(r);if(!i||o&&i.symbol===o&&Mu(i))return uv(t)}}return oD(n)&&tP(n.parent)?uv(t):kl(t)}(e);case 184:case 185:case 187:case 322:case 317:case 323:return Mx(e);case 198:return function(e){const t=aa(e);if(!t.resolvedType)switch(e.operator){case 143:t.resolvedType=qb(dk(e.type));break;case 158:t.resolvedType=155===e.type.kind?ck(th(e.parent)):Et;break;case 148:t.resolvedType=dk(e.type);break;default:un.assertNever(e.operator)}return t.resolvedType}(e);case 199:return Tx(e);case 200:return wx(e);case 194:return function(e){const t=aa(e);if(!t.resolvedType){const n=dk(e.checkType),r=Bx(e),i=Jx(r),o=E_(e,!0),a=i?o:N(o,(t=>Gk(t,e))),s={node:e,checkType:n,extendsType:dk(e.extendsType),isDistributive:!!(262144&n.flags),inferTypeParameters:Ix(e),outerTypeParameters:a,instantiations:void 0,aliasSymbol:r,aliasTypeArguments:i};t.resolvedType=Ex(s,void 0,!1),a&&(s.instantiations=new Map,s.instantiations.set(Eh(a),t.resolvedType))}return t.resolvedType}(e);case 195:return function(e){const t=aa(e);return t.resolvedType||(t.resolvedType=pu(ps(e.typeParameter))),t.resolvedType}(e);case 203:return function(e){const t=aa(e);return t.resolvedType||(t.resolvedType=Vb([e.head.text,...E(e.templateSpans,(e=>e.literal.text))],E(e.templateSpans,(e=>dk(e.type))))),t.resolvedType}(e);case 205:return Lx(e);case 80:case 166:case 211:const t=YB(e);return t?fu(t):Et;default:return Et}}function fk(e,t,n){if(e&&e.length)for(let r=0;rsh(e,a)))||$(t.typeArguments,n)}return!0;case 174:case 173:return!t.type&&!!t.body||$(t.typeParameters,n)||$(t.parameters,n)||!!t.type&&n(t.type)}return!!PI(t,n)}}function Xk(e){const t=qd(e);if(4194304&t.flags){const e=Nx(t.type);if(262144&e.flags)return e}}function Qk(e,t){return!!(1&t)||!(2&t)&&e}function Yk(e,t,n,r){const i=zk(r,Jd(e),t),o=tS(Hd(e.target||e),i),a=ep(e);return H&&4&a&&!QL(o,49152)?tw(o,!0):H&&8&a&&n?ON(o,524288):o}function Zk(e,t,n,r){un.assert(e.symbol,"anonymous type must have symbol to be instantiated");const i=Is(-1572865&e.objectFlags|64,e.symbol);if(32&e.objectFlags){i.declaration=e.declaration;const n=Jd(e),r=qk(n);i.typeParameter=r,t=Rk(Fk(n,r),t),r.mapper=t}return 8388608&e.objectFlags&&(i.node=e.node),134217728&e.objectFlags&&(i.outerTypeParameters=e.outerTypeParameters),i.target=e,i.mapper=t,i.aliasSymbol=n||e.aliasSymbol,i.aliasTypeArguments=n?r:mk(e.aliasTypeArguments,t),i.objectFlags|=i.aliasTypeArguments?Ah(i.aliasTypeArguments):0,i}function eS(e,t,n,r,i){const o=e.root;if(o.outerTypeParameters){const e=E(o.outerTypeParameters,(e=>Ck(e,t))),a=(n?"C":"")+Eh(e)+Ph(r,i);let s=o.instantiations.get(a);if(!s){const t=Tk(o.outerTypeParameters,e),c=o.checkType,l=o.isDistributive?yf(Ck(c,t)):void 0;s=l&&c!==l&&1179648&l.flags?YD(l,(e=>Ex(o,Bk(c,e,t),n)),r,i):Ex(o,t,n,r,i),o.instantiations.set(a,s)}return s}return e}function tS(e,t){return e&&t?nS(e,t,void 0,void 0):e}function nS(e,t,n,i){var o;if(!Jw(e))return e;if(100===y||h>=5e6)return null==(o=Hn)||o.instant(Hn.Phase.CheckTypes,"instantiateType_DepthLimit",{typeId:e.id,instantiationDepth:y,instantiationCount:h}),jo(r,la.Type_instantiation_is_excessively_deep_and_possibly_infinite),Et;g++,h++,y++;const a=function(e,t,n,r){const i=e.flags;if(262144&i)return Ck(e,t);if(524288&i){const i=e.objectFlags;if(52&i){if(4&i&&!e.node){const n=e.resolvedTypeArguments,r=mk(n,t);return r!==n?Rv(e.target,r):e}return 1024&i?function(e,t){const n=tS(e.mappedType,t);if(!(32&mx(n)))return e;const r=tS(e.constraintType,t);if(!(4194304&r.flags))return e;const i=Uw(tS(e.source,t),n,r);return i||e}(e,t):function(e,t,n,r){const i=4&e.objectFlags||8388608&e.objectFlags?e.node:e.symbol.declarations[0],o=aa(i),a=4&e.objectFlags?o.resolvedType:64&e.objectFlags?e.target:e;let s=134217728&e.objectFlags?e.outerTypeParameters:o.outerTypeParameters;if(!s){let t=E_(i,!0);qO(i)&&(t=se(t,Pm(i))),s=t||l;const n=8388612&e.objectFlags?[i]:e.symbol.declarations;s=(8388612&a.objectFlags||8192&a.symbol.flags||2048&a.symbol.flags)&&!a.aliasTypeArguments?N(s,(e=>$(n,(t=>Gk(e,t))))):s,o.outerTypeParameters=s}if(s.length){const i=Rk(e.mapper,t),o=E(s,(e=>Ck(e,i))),c=n||e.aliasSymbol,l=n?r:mk(e.aliasTypeArguments,t),_=(134217728&e.objectFlags?"S":"")+Eh(o)+Ph(c,l);a.instantiations||(a.instantiations=new Map,a.instantiations.set(Eh(s)+Ph(a.aliasSymbol,a.aliasTypeArguments),a));let u=a.instantiations.get(_);if(!u){if(134217728&e.objectFlags)return u=Zk(e,t),a.instantiations.set(_,u),u;const n=Tk(s,o);u=4&a.objectFlags?$h(e.target,e.node,n,c,l):32&a.objectFlags?function(e,t,n,r){const i=Xk(e);if(i){const o=tS(i,t);if(i!==o)return YD(yf(o),(function n(r){if(61603843&r.flags&&r!==Dt&&!$c(r)){if(!e.declaration.nameType){let o;if(yC(r)||1&r.flags&&Bc(i,4)<0&&(o=xp(i))&&AD(o,kC))return function(e,t,n){const r=Yk(t,Wt,!0,n);return $c(r)?Et:uv(r,Qk(vC(e),ep(t)))}(r,e,Bk(i,r,t));if(UC(r))return function(e,t,n,r){const i=e.target.elementFlags,o=e.target.fixedLength,a=o?Bk(n,e,r):r,s=E(Vv(e),((e,s)=>{const c=i[s];return s1&e?2:e)):8&c?E(i,(e=>2&e?1:e)):i,_=Qk(e.target.readonly,ep(t));return T(s,Et)?Et:kv(s,l,_,e.target.labeledElementDeclarations)}(r,e,i,t);if(uf(r))return Fb(E(r.types,n))}return Zk(e,Bk(i,r,t))}return r}),n,r)}return tS(qd(e),t)===Dt?Dt:Zk(e,t,n,r)}(a,n,c,l):Zk(a,n,c,l),a.instantiations.set(_,u);const r=mx(u);if(3899393&u.flags&&!(524288&r)){const e=$(o,Jw);524288&mx(u)||(u.objectFlags|=52&r?524288|(e?1048576:0):e?0:524288)}}return u}return e}(e,t,n,r)}return e}if(3145728&i){const o=1048576&e.flags?e.origin:void 0,a=o&&3145728&o.flags?o.types:e.types,s=mk(a,t);if(s===a&&n===e.aliasSymbol)return e;const c=n||e.aliasSymbol,l=n?r:mk(e.aliasTypeArguments,t);return 2097152&i||o&&2097152&o.flags?Fb(s,0,c,l):xb(s,1,c,l)}if(4194304&i)return qb(tS(e.type,t));if(134217728&i)return Vb(e.texts,mk(e.types,t));if(268435456&i)return $b(e.symbol,tS(e.type,t));if(8388608&i){const i=n||e.aliasSymbol,o=n?r:mk(e.aliasTypeArguments,t);return vx(tS(e.objectType,t),tS(e.indexType,t),e.accessFlags,void 0,i,o)}if(16777216&i)return eS(e,Rk(e.mapper,t),!1,n,r);if(33554432&i){const n=tS(e.baseType,t);if(dy(e))return _y(n);const r=tS(e.constraint,t);return 8650752&n.flags&&cx(r)?py(n,r):3&r.flags||gS(iS(n),iS(r))?n:8650752&n.flags?py(n,r):Fb([r,n])}return e}(e,t,n,i);return y--,a}function rS(e){return 402915327&e.flags?e:e.permissiveInstantiation||(e.permissiveInstantiation=tS(e,kn))}function iS(e){return 402915327&e.flags?e:(e.restrictiveInstantiation||(e.restrictiveInstantiation=tS(e,xn),e.restrictiveInstantiation.restrictiveInstantiation=e.restrictiveInstantiation),e.restrictiveInstantiation)}function oS(e,t){return uh(e.keyType,tS(e.type,t),e.isReadonly,e.declaration)}function aS(e){switch(un.assert(174!==e.kind||Mf(e)),e.kind){case 218:case 219:case 174:case 262:return sS(e);case 210:return $(e.properties,aS);case 209:return $(e.elements,aS);case 227:return aS(e.whenTrue)||aS(e.whenFalse);case 226:return(57===e.operatorToken.kind||61===e.operatorToken.kind)&&(aS(e.left)||aS(e.right));case 303:return aS(e.initializer);case 217:return aS(e.expression);case 292:return $(e.properties,aS)||TE(e.parent)&&$(e.parent.parent.children,aS);case 291:{const{initializer:t}=e;return!!t&&aS(t)}case 294:{const{expression:t}=e;return!!t&&aS(t)}}return!1}function sS(e){return IT(e)||function(e){return!(e.typeParameters||mv(e)||!e.body)&&(241!==e.body.kind?aS(e.body):!!wf(e.body,(e=>!!e.expression&&aS(e.expression))))}(e)}function cS(e){return(jT(e)||Mf(e))&&sS(e)}function lS(e){if(524288&e.flags){const t=pp(e);if(t.constructSignatures.length||t.callSignatures.length){const n=Is(16,e.symbol);return n.members=t.members,n.properties=t.properties,n.callSignatures=l,n.constructSignatures=l,n.indexInfos=l,n}}else if(2097152&e.flags)return Fb(E(e.types,lS));return e}function _S(e,t){return zS(e,t,bo)}function uS(e,t){return zS(e,t,bo)?-1:0}function dS(e,t){return zS(e,t,ho)?-1:0}function pS(e,t){return zS(e,t,mo)?-1:0}function fS(e,t){return zS(e,t,mo)}function mS(e,t){return zS(e,t,go)}function gS(e,t){return zS(e,t,ho)}function hS(e,t){return 1048576&e.flags?v(e.types,(e=>hS(e,t))):1048576&t.flags?$(t.types,(t=>hS(e,t))):2097152&e.flags?$(e.types,(e=>hS(e,t))):58982400&e.flags?hS(qp(e)||Ot,t):jS(t)?!!(67633152&e.flags):t===Gn?!!(67633152&e.flags)&&!jS(e):t===Xn?!!(524288&e.flags)&&EN(e):D_(e,N_(t))||yC(t)&&!vC(t)&&hS(e,er)}function yS(e,t){return zS(e,t,yo)}function vS(e,t){return yS(e,t)||yS(t,e)}function bS(e,t,n,r,i,o){return HS(e,t,ho,n,r,i,o)}function xS(e,t,n,r,i,o){return kS(e,t,ho,n,r,i,o,void 0)}function kS(e,t,n,r,i,o,a,s){return!!zS(e,t,n)||(!r||!TS(i,e,t,n,o,a,s))&&HS(e,t,n,r,o,a,s)}function SS(e){return!!(16777216&e.flags||2097152&e.flags&&$(e.types,SS))}function TS(e,t,n,r,i,o,a){if(!e||SS(n))return!1;if(!HS(t,n,r,void 0)&&function(e,t,n,r,i,o,a){const s=Rf(t,0),c=Rf(t,1);for(const l of[c,s])if($(l,(e=>{const t=Tg(e);return!(131073&t.flags)&&HS(t,n,r,void 0)}))){const r=a||{};return bS(t,n,e,i,o,r),iT(r.errors[r.errors.length-1],jp(e,l===c?la.Did_you_mean_to_use_new_with_this_expression:la.Did_you_mean_to_call_this_expression)),!0}return!1}(e,t,n,r,i,o,a))return!0;switch(e.kind){case 234:if(!mC(e))break;case 294:case 217:return TS(e.expression,t,n,r,i,o,a);case 226:switch(e.operatorToken.kind){case 64:case 28:return TS(e.right,t,n,r,i,o,a)}break;case 210:return function(e,t,n,r,i,o){return!(402915324&n.flags)&&NS(function*(e){if(u(e.properties))for(const t of e.properties){if(JE(t))continue;const e=Mb(ps(t),8576);if(e&&!(131072&e.flags))switch(t.kind){case 178:case 177:case 174:case 304:yield{errorNode:t.name,innerExpression:void 0,nameType:e};break;case 303:yield{errorNode:t.name,innerExpression:t.initializer,nameType:e,errorMessage:Ap(t.name)?la.Type_of_computed_property_s_value_is_0_which_is_not_assignable_to_type_1:void 0};break;default:un.assertNever(t)}}}(e),t,n,r,i,o)}(e,t,n,r,o,a);case 209:return function(e,t,n,r,i,o){if(402915324&n.flags)return!1;if(EC(t))return NS(FS(e,n),t,n,r,i,o);uA(e,n,!1);const a=xA(e,1,!0);return dA(),!!EC(a)&&NS(FS(e,n),a,n,r,i,o)}(e,t,n,r,o,a);case 292:return function(e,t,n,r,i,o){let a,s=NS(function*(e){if(u(e.properties))for(const t of e.properties)PE(t)||EA(eC(t.name))||(yield{errorNode:t.name,innerExpression:t.initializer,nameType:ik(eC(t.name))})}(e),t,n,r,i,o);if(TE(e.parent)&&kE(e.parent.parent)){const a=e.parent.parent,l=zA(BA(e)),_=void 0===l?"children":fc(l),d=ik(_),p=vx(n,d),f=cy(a.children);if(!u(f))return s;const m=u(f)>1;let g,h;if(Ky(!1)!==On){const e=ov(wt);g=OD(p,(t=>gS(t,e))),h=OD(p,(t=>!gS(t,e)))}else g=OD(p,PC),h=OD(p,(e=>!PC(e)));if(m){if(g!==_n){const e=kv(OA(a,0)),t=function*(e,t){if(!u(e.children))return;let n=0;for(let r=0;r!PC(e))),c=s!==_n?oM(13,0,s,void 0):void 0;let l=!1;for(let n=e.next();!n.done;n=e.next()){const{errorNode:e,innerExpression:s,nameType:_,errorMessage:u}=n.value;let d=c;const p=a!==_n?CS(t,a,_):void 0;if(!p||8388608&p.flags||(d=c?xb([c,p]):p),!d)continue;let f=Sx(t,_);if(!f)continue;const m=Xb(_,void 0);if(!HS(f,d,r,void 0)&&(l=!0,!s||!TS(s,f,d,r,void 0,i,o))){const n=o||{},c=s?wS(s,f):f;if(_e&&QS(c,d)){const t=jp(e,la.Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_type_of_the_target,sc(c),sc(d));uo.add(t),n.errors=[t]}else{const o=!!(m&&16777216&(Cf(a,m)||xt).flags),s=!!(m&&16777216&(Cf(t,m)||xt).flags);d=cw(d,o),f=cw(f,o&&s),HS(c,d,r,e,u,i,n)&&c!==f&&HS(f,d,r,e,u,i,n)}}}return l}(t,e,g,r,i,o)||s}else if(!zS(vx(t,d),p,r)){s=!0;const e=jo(a.openingElement.tagName,la.This_JSX_tag_s_0_prop_expects_a_single_child_of_type_1_but_multiple_children_were_provided,_,sc(p));o&&o.skipLogging&&(o.errors||(o.errors=[])).push(e)}}else if(h!==_n){const e=DS(f[0],d,c);e&&(s=NS(function*(){yield e}(),t,n,r,i,o)||s)}else if(!zS(vx(t,d),p,r)){s=!0;const e=jo(a.openingElement.tagName,la.This_JSX_tag_s_0_prop_expects_type_1_which_requires_multiple_children_but_only_a_single_child_was_provided,_,sc(p));o&&o.skipLogging&&(o.errors||(o.errors=[])).push(e)}}return s;function c(){if(!a){const t=Kd(e.parent.tagName),r=zA(BA(e)),i=void 0===r?"children":fc(r),o=vx(n,ik(i)),s=la._0_components_don_t_accept_text_as_child_elements_Text_in_JSX_has_the_type_string_but_the_expected_type_of_1_is_2;a={...s,key:"!!ALREADY FORMATTED!!",message:Gx(s,t,i,sc(o))}}return a}}(e,t,n,r,o,a);case 219:return function(e,t,n,r,i,o){if(CF(e.body))return!1;if($(e.parameters,Du))return!1;const a=aO(t);if(!a)return!1;const s=Rf(n,0);if(!u(s))return!1;const c=e.body,l=Tg(a),_=xb(E(s,Tg));if(!HS(l,_,r,void 0)){const t=c&&TS(c,l,_,r,void 0,i,o);if(t)return t;const a=o||{};if(HS(l,_,r,c,void 0,i,a),a.errors)return n.symbol&&u(n.symbol.declarations)&&iT(a.errors[a.errors.length-1],jp(n.symbol.declarations[0],la.The_expected_type_comes_from_the_return_type_of_this_signature)),2&Ih(e)||Uc(l,"then")||!HS(PL(l),_,r,void 0)||iT(a.errors[a.errors.length-1],jp(e,la.Did_you_mean_to_mark_this_function_as_async)),!0}return!1}(e,t,n,r,o,a)}return!1}function CS(e,t,n){const r=Sx(t,n);if(r)return r;if(1048576&t.flags){const r=YS(e,t);if(r)return Sx(r,n)}}function wS(e,t){uA(e,t,!1);const n=kj(e,1);return dA(),n}function NS(e,t,n,r,i,o){let a=!1;for(const s of e){const{errorNode:e,innerExpression:c,nameType:l,errorMessage:_}=s;let d=CS(t,n,l);if(!d||8388608&d.flags)continue;let p=Sx(t,l);if(!p)continue;const f=Xb(l,void 0);if(!HS(p,d,r,void 0)&&(a=!0,!c||!TS(c,p,d,r,void 0,i,o))){const a=o||{},s=c?wS(c,p):p;if(_e&&QS(s,d)){const t=jp(e,la.Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_type_of_the_target,sc(s),sc(d));uo.add(t),a.errors=[t]}else{const o=!!(f&&16777216&(Cf(n,f)||xt).flags),c=!!(f&&16777216&(Cf(t,f)||xt).flags);d=cw(d,o),p=cw(p,o&&c),HS(s,d,r,e,_,i,a)&&s!==p&&HS(p,d,r,e,_,i,a)}if(a.errors){const e=a.errors[a.errors.length-1],t=oC(l)?aC(l):void 0,r=void 0!==t?Cf(n,t):void 0;let i=!1;if(!r){const t=hm(n,l);t&&t.declaration&&!hd(t.declaration).hasNoDefaultLib&&(i=!0,iT(e,jp(t.declaration,la.The_expected_type_comes_from_this_index_signature)))}if(!i&&(r&&u(r.declarations)||n.symbol&&u(n.symbol.declarations))){const i=r&&u(r.declarations)?r.declarations[0]:n.symbol.declarations[0];hd(i).hasNoDefaultLib||iT(e,jp(i,la.The_expected_type_comes_from_property_0_which_is_declared_here_on_type_1,!t||8192&l.flags?sc(l):fc(t),sc(n)))}}}}return a}function DS(e,t,n){switch(e.kind){case 294:return{errorNode:e,innerExpression:e.expression,nameType:t};case 12:if(e.containsOnlyTriviaWhiteSpaces)break;return{errorNode:e,innerExpression:void 0,nameType:t,errorMessage:n()};case 284:case 285:case 288:return{errorNode:e,innerExpression:e,nameType:t};default:return un.assertNever(e,"Found invalid jsx child")}}function*FS(e,t){const n=u(e.elements);if(n)for(let r=0;rc:yL(e)>c))return!r||8&n||i(la.Target_signature_provides_too_few_arguments_Expected_0_or_more_but_got_1,yL(e),c),0;var l;e.typeParameters&&e.typeParameters!==t.typeParameters&&(e=lO(e,t=(l=t).typeParameters?l.canonicalSignatureCache||(l.canonicalSignatureCache=function(e){return Lg(e,E(e.typeParameters,(e=>e.target&&!xp(e.target)?e.target:e)),Fm(e.declaration))}(l)):l,void 0,a));const _=hL(e),u=xL(e),d=xL(t);(u||d)&&tS(u||d,s);const p=t.declaration?t.declaration.kind:0,f=!(3&n)&&G&&174!==p&&173!==p&&176!==p;let m=-1;const g=yg(e);if(g&&g!==ln){const e=yg(t);if(e){const t=!f&&a(g,e,!1)||a(e,g,r);if(!t)return r&&i(la.The_this_types_of_each_signature_are_incompatible),0;m&=t}}const h=u||d?Math.min(_,c):Math.max(_,c),y=u||d?h-1:-1;for(let c=0;c=yL(e)&&c=3&&32768&t[0].flags&&65536&t[1].flags&&$(t,jS)?67108864:0)}return!!(67108864&e.objectFlags)}return!1}(t))return!0}return!1}function zS(e,t,n){if(rk(e)&&(e=e.regularType),rk(t)&&(t=t.regularType),e===t)return!0;if(n!==bo){if(n===yo&&!(131072&t.flags)&&JS(t,e,n)||JS(e,t,n))return!0}else if(!(61865984&(e.flags|t.flags))){if(e.flags!==t.flags)return!1;if(67358815&e.flags)return!0}if(524288&e.flags&&524288&t.flags){const r=n.get(NT(e,t,0,n,!1));if(void 0!==r)return!!(1&r)}return!!(469499904&e.flags||469499904&t.flags)&&HS(e,t,n,void 0)}function qS(e,t){return 2048&mx(e)&&EA(t.escapedName)}function VS(e,t){for(;;){const n=rk(e)?e.regularType:VC(e)?$S(e,t):4&mx(e)?e.node?jh(e.target,Kh(e)):NC(e)||e:3145728&e.flags?WS(e,t):33554432&e.flags?t?e.baseType:my(e):25165824&e.flags?dx(e,t):e;if(n===e)return n;e=n}}function WS(e,t){const n=yf(e);if(n!==e)return n;if(2097152&e.flags&&function(e){let t=!1,n=!1;for(const r of e.types)if(t||(t=!!(465829888&r.flags)),n||(n=!!(98304&r.flags)||jS(r)),t&&n)return!0;return!1}(e)){const n=A(e.types,(e=>VS(e,t)));if(n!==e.types)return Fb(n)}return e}function $S(e,t){const n=Vv(e),r=A(n,(e=>25165824&e.flags?dx(e,t):e));return n!==r?Bv(e.target,r):e}function HS(e,t,n,i,o,a,s){var c;let _,d,p,f,m,g,h,y,v=0,b=0,x=0,S=0,C=!1,w=0,N=0,D=16e6-n.size>>3;un.assert(n!==bo||!i,"no error reporting in identity checking");const F=U(e,t,3,!!i,o);if(y&&L(),C){const o=NT(e,t,0,n,!1);n.set(o,2|(D<=0?32:64)),null==(c=Hn)||c.instant(Hn.Phase.CheckTypes,"checkTypeRelatedTo_DepthLimit",{sourceId:e.id,targetId:t.id,depth:b,targetDepth:x});const a=D<=0?la.Excessive_complexity_comparing_types_0_and_1:la.Excessive_stack_depth_comparing_types_0_and_1,l=jo(i||r,a,sc(e),sc(t));s&&(s.errors||(s.errors=[])).push(l)}else if(_){if(a){const e=a();e&&(Zx(e,_),_=e)}let r;if(o&&i&&!F&&e.symbol){const i=oa(e.symbol);i.originatingImport&&!cf(i.originatingImport)&&HS(S_(i.target),t,n,void 0)&&(r=ie(r,jp(i.originatingImport,la.Type_originates_at_this_import_A_namespace_style_import_cannot_be_called_or_constructed_and_will_cause_a_failure_at_runtime_Consider_using_a_default_import_or_import_require_here_instead)))}const c=Bp(hd(i),i,_,r);d&&iT(c,...d),s&&(s.errors||(s.errors=[])).push(c),s&&s.skipLogging||uo.add(c)}return i&&s&&s.skipLogging&&0===F&&un.assert(!!s.errors,"missed opportunity to interact with error."),0!==F;function P(e){_=e.errorInfo,h=e.lastSkippedInfo,y=e.incompatibleStack,w=e.overrideNextErrorInfo,N=e.skipParentCounter,d=e.relatedInfo}function I(){return{errorInfo:_,lastSkippedInfo:h,incompatibleStack:null==y?void 0:y.slice(),overrideNextErrorInfo:w,skipParentCounter:N,relatedInfo:null==d?void 0:d.slice()}}function O(e,...t){w++,h=void 0,(y||(y=[])).push([e,...t])}function L(){const e=y||[];y=void 0;const t=h;if(h=void 0,1===e.length)return R(...e[0]),void(t&&J(void 0,...t));let n="";const r=[];for(;e.length;){const[t,...i]=e.pop();switch(t.code){case la.Types_of_property_0_are_incompatible.code:{0===n.indexOf("new ")&&(n=`(${n})`);const e=""+i[0];n=0===n.length?`${e}`:fs(e,hk(j))?`${n}.${e}`:"["===e[0]&&"]"===e[e.length-1]?`${n}${e}`:`${n}[${e}]`;break}case la.Call_signature_return_types_0_and_1_are_incompatible.code:case la.Construct_signature_return_types_0_and_1_are_incompatible.code:case la.Call_signatures_with_no_arguments_have_incompatible_return_types_0_and_1.code:case la.Construct_signatures_with_no_arguments_have_incompatible_return_types_0_and_1.code:if(0===n.length){let e=t;t.code===la.Call_signatures_with_no_arguments_have_incompatible_return_types_0_and_1.code?e=la.Call_signature_return_types_0_and_1_are_incompatible:t.code===la.Construct_signatures_with_no_arguments_have_incompatible_return_types_0_and_1.code&&(e=la.Construct_signature_return_types_0_and_1_are_incompatible),r.unshift([e,i[0],i[1]])}else n=`${t.code===la.Construct_signature_return_types_0_and_1_are_incompatible.code||t.code===la.Construct_signatures_with_no_arguments_have_incompatible_return_types_0_and_1.code?"new ":""}${n}(${t.code===la.Call_signatures_with_no_arguments_have_incompatible_return_types_0_and_1.code||t.code===la.Construct_signatures_with_no_arguments_have_incompatible_return_types_0_and_1.code?"":"..."})`;break;case la.Type_at_position_0_in_source_is_not_compatible_with_type_at_position_1_in_target.code:r.unshift([la.Type_at_position_0_in_source_is_not_compatible_with_type_at_position_1_in_target,i[0],i[1]]);break;case la.Type_at_positions_0_through_1_in_source_is_not_compatible_with_type_at_position_2_in_target.code:r.unshift([la.Type_at_positions_0_through_1_in_source_is_not_compatible_with_type_at_position_2_in_target,i[0],i[1],i[2]]);break;default:return un.fail(`Unhandled Diagnostic: ${t.code}`)}}n?R(")"===n[n.length-1]?la.The_types_returned_by_0_are_incompatible_between_these_types:la.The_types_of_0_are_incompatible_between_these_types,n):r.shift();for(const[e,...t]of r){const n=e.elidedInCompatabilityPyramid;e.elidedInCompatabilityPyramid=!1,R(e,...t),e.elidedInCompatabilityPyramid=n}t&&J(void 0,...t)}function R(e,...t){un.assert(!!i),y&&L(),e.elidedInCompatabilityPyramid||(0===N?_=Yx(_,e,...t):N--)}function M(e,...t){R(e,...t),N++}function B(e){un.assert(!!_),d?d.push(e):d=[e]}function J(e,t,r){y&&L();const[i,o]=cc(t,r);let a=t,s=i;if(131072&r.flags||!jC(t)||KS(r)||(a=RC(t),un.assert(!gS(a,r),"generalized source shouldn't be assignable"),s=uc(a)),262144&(8388608&r.flags&&!(8388608&t.flags)?r.objectType.flags:r.flags)&&r!==qn&&r!==Un){const e=qp(r);let n;e&&(gS(a,e)||(n=gS(t,e)))?R(la._0_is_assignable_to_the_constraint_of_type_1_but_1_could_be_instantiated_with_a_different_subtype_of_constraint_2,n?i:s,o,sc(e)):(_=void 0,R(la._0_could_be_instantiated_with_an_arbitrary_type_which_could_be_unrelated_to_1,o,s))}if(e)e===la.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1&&_e&&GS(t,r).length&&(e=la.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_types_of_the_target_s_properties);else if(n===yo)e=la.Type_0_is_not_comparable_to_type_1;else if(i===o)e=la.Type_0_is_not_assignable_to_type_1_Two_different_types_with_this_name_exist_but_they_are_unrelated;else if(_e&&GS(t,r).length)e=la.Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_types_of_the_target_s_properties;else{if(128&t.flags&&1048576&r.flags){const e=function(e,t){const n=t.types.filter((e=>!!(128&e.flags)));return Lt(e.value,n,(e=>e.value))}(t,r);if(e)return void R(la.Type_0_is_not_assignable_to_type_1_Did_you_mean_2,s,o,sc(e))}e=la.Type_0_is_not_assignable_to_type_1}R(e,s,o)}function z(e,t,n){return UC(e)?e.target.readonly&&SC(t)?(n&&R(la.The_type_0_is_readonly_and_cannot_be_assigned_to_the_mutable_type_1,sc(e),sc(t)),!1):kC(t):vC(e)&&SC(t)?(n&&R(la.The_type_0_is_readonly_and_cannot_be_assigned_to_the_mutable_type_1,sc(e),sc(t)),!1):!UC(t)||yC(e)}function q(e,t,n){return U(e,t,3,n)}function U(e,t,r=3,o=!1,a,s=0){if(e===t)return-1;if(524288&e.flags&&402784252&t.flags)return n===yo&&!(131072&t.flags)&&JS(t,e,n)||JS(e,t,n,o?R:void 0)?-1:(o&&V(e,t,e,t,a),0);const c=VS(e,!1);let l=VS(t,!0);if(c===l)return-1;if(n===bo)return c.flags!==l.flags?0:67358815&c.flags?-1:(W(c,l),ee(c,l,!1,0,r));if(262144&c.flags&&bp(c)===l)return-1;if(470302716&c.flags&&1048576&l.flags){const e=l.types,t=2===e.length&&98304&e[0].flags?e[1]:3===e.length&&98304&e[0].flags&&98304&e[1].flags?e[2]:void 0;if(t&&!(98304&t.flags)&&(l=VS(t,!0),c===l))return-1}if(n===yo&&!(131072&l.flags)&&JS(l,c,n)||JS(c,l,n,o?R:void 0))return-1;if(469499904&c.flags||469499904&l.flags){if(!(2&s)&&aN(c)&&8192&mx(c)&&function(e,t,r){var o;if(!YA(t)||!ne&&4096&mx(t))return!1;const a=!!(2048&mx(e));if((n===ho||n===yo)&&(TD(Gn,t)||!a&&LS(t)))return!1;let s,c=t;1048576&t.flags&&(c=sz(e,t,U)||function(e){if(QL(e,67108864)){const t=OD(e,(e=>!(402784252&e.flags)));if(!(131072&t.flags))return t}return e}(t),s=1048576&c.flags?c.types:[c]);for(const t of vp(e))if(G(t,e.symbol)&&!qS(e,t)){if(!QA(c,t.escapedName,a)){if(r){const n=OD(c,YA);if(!i)return un.fail();if(EE(i)||vu(i)||vu(i.parent)){t.valueDeclaration&&FE(t.valueDeclaration)&&hd(i)===hd(t.valueDeclaration.name)&&(i=t.valueDeclaration.name);const e=ic(t),r=OI(e,n),o=r?ic(r):void 0;o?R(la.Property_0_does_not_exist_on_type_1_Did_you_mean_2,e,sc(n),o):R(la.Property_0_does_not_exist_on_type_1,e,sc(n))}else{const r=(null==(o=e.symbol)?void 0:o.declarations)&&fe(e.symbol.declarations);let a;if(t.valueDeclaration&&_c(t.valueDeclaration,(e=>e===r))&&hd(r)===hd(i)){const e=t.valueDeclaration;un.assertNode(e,y_);const r=e.name;i=r,zN(r)&&(a=LI(r,n))}void 0!==a?M(la.Object_literal_may_only_specify_known_properties_but_0_does_not_exist_in_type_1_Did_you_mean_to_write_2,ic(t),sc(n),a):M(la.Object_literal_may_only_specify_known_properties_and_0_does_not_exist_in_type_1,ic(t),sc(n))}}return!0}if(s&&!U(S_(t),K(s,t.escapedName),3,r))return r&&O(la.Types_of_property_0_are_incompatible,ic(t)),!0}return!1}(c,l,o))return o&&J(a,c,t.aliasSymbol?t:l),0;const _=(n!==yo||OC(c))&&!(2&s)&&405405692&c.flags&&c!==Gn&&2621440&l.flags&&nT(l)&&(vp(c).length>0||aJ(c)),u=!!(2048&mx(c));if(_&&!function(e,t,n){for(const r of vp(e))if(QA(t,r.escapedName,n))return!0;return!1}(c,l,u)){if(o){const n=sc(e.aliasSymbol?e:c),r=sc(t.aliasSymbol?t:l),i=Rf(c,0),o=Rf(c,1);i.length>0&&U(Tg(i[0]),l,1,!1)||o.length>0&&U(Tg(o[0]),l,1,!1)?R(la.Value_of_type_0_has_no_properties_in_common_with_type_1_Did_you_mean_to_call_it,n,r):R(la.Type_0_has_no_properties_in_common_with_type_1,n,r)}return 0}W(c,l);const d=1048576&c.flags&&c.types.length<4&&!(1048576&l.flags)||1048576&l.flags&&l.types.length<4&&!(469499904&c.flags)?X(c,l,o,s):ee(c,l,o,s,r);if(d)return d}return o&&V(e,t,c,l,a),0}function V(e,t,n,r,o){var a,s;const c=!!NC(e),l=!!NC(t);n=e.aliasSymbol||c?e:n,r=t.aliasSymbol||l?t:r;let u=w>0;if(u&&w--,524288&n.flags&&524288&r.flags){const e=_;z(n,r,!0),_!==e&&(u=!!_)}if(524288&n.flags&&402784252&r.flags)!function(e,t){const n=yc(e.symbol)?sc(e,e.symbol.valueDeclaration):sc(e),r=yc(t.symbol)?sc(t,t.symbol.valueDeclaration):sc(t);(rr===e&&Vt===t||ir===e&&Wt===t||or===e&&sn===t||qy()===e&&cn===t)&&R(la._0_is_a_primitive_but_1_is_a_wrapper_object_Prefer_using_0_when_possible,r,n)}(n,r);else if(n.symbol&&524288&n.flags&&Gn===n)R(la.The_Object_type_is_assignable_to_very_few_other_types_Did_you_mean_to_use_the_any_type_instead);else if(2048&mx(n)&&2097152&r.flags){const e=r.types,t=jA(vB.IntrinsicAttributes,i),n=jA(vB.IntrinsicClassAttributes,i);if(!$c(t)&&!$c(n)&&(T(e,t)||T(e,n)))return}else _=Sf(_,t);if(!o&&u){const e=I();let t;return J(o,n,r),_&&_!==e.errorInfo&&(t={code:_.code,messageText:_.messageText}),P(e),t&&_&&(_.canonicalHead=t),void(h=[n,r])}if(J(o,n,r),262144&n.flags&&(null==(s=null==(a=n.symbol)?void 0:a.declarations)?void 0:s[0])&&!bp(n)){const e=qk(n);if(e.constraint=tS(r,Fk(n,e)),tf(e)){const e=sc(r,n.symbol.declarations[0]);B(jp(n.symbol.declarations[0],la.This_type_parameter_might_need_an_extends_0_constraint,e))}}}function W(e,t){if(Hn&&3145728&e.flags&&3145728&t.flags){const n=e,r=t;if(n.objectFlags&r.objectFlags&32768)return;const o=n.types.length,a=r.types.length;o*a>1e6&&Hn.instant(Hn.Phase.CheckTypes,"traceUnionsOrIntersectionsTooLarge_DepthLimit",{sourceId:e.id,sourceSize:o,targetId:t.id,targetSize:a,pos:null==i?void 0:i.pos,end:null==i?void 0:i.end})}}function K(e,t){return xb(we(e,((e,n)=>{var r;const i=3145728&(n=pf(n)).flags?hf(n,t):hp(n,t);return ie(e,i&&S_(i)||(null==(r=Nm(n,t))?void 0:r.type)||jt)}),void 0)||l)}function G(e,t){return e.valueDeclaration&&t.valueDeclaration&&e.valueDeclaration.parent===t.valueDeclaration}function X(e,t,r,i){if(1048576&e.flags){if(1048576&t.flags){const n=e.origin;if(n&&2097152&n.flags&&t.aliasSymbol&&T(n.types,t))return-1;const r=t.origin;if(r&&1048576&r.flags&&e.aliasSymbol&&T(r.types,e))return-1}return n===yo?Z(e,t,r&&!(402784252&e.flags),i):function(e,t,n,r){let i=-1;const o=e.types,a=function(e,t){return 1048576&e.flags&&1048576&t.flags&&!(32768&e.types[0].flags)&&32768&t.types[0].flags?nF(t,-32769):t}(e,t);for(let e=0;e=a.types.length&&o.length%a.types.length==0){const t=U(s,a.types[e%a.types.length],3,!1,void 0,r);if(t){i&=t;continue}}const c=U(s,t,1,n,void 0,r);if(!c)return 0;i&=c}return i}(e,t,r&&!(402784252&e.flags),i)}if(1048576&t.flags)return Y(fw(e),t,r&&!(402784252&e.flags)&&!(402784252&t.flags),i);if(2097152&t.flags)return function(e,t,n){let r=-1;const i=t.types;for(const t of i){const i=U(e,t,2,n,void 0,2);if(!i)return 0;r&=i}return r}(e,t,r);if(n===yo&&402784252&t.flags){const n=A(e.types,(e=>465829888&e.flags?qp(e)||Ot:e));if(n!==e.types){if(131072&(e=Fb(n)).flags)return 0;if(!(2097152&e.flags))return U(e,t,1,!1)||U(t,e,1,!1)}}return Z(e,t,!1,1)}function Q(e,t){let n=-1;const r=e.types;for(const e of r){const r=Y(e,t,!1,0);if(!r)return 0;n&=r}return n}function Y(e,t,r,i){const o=t.types;if(1048576&t.flags){if(Gv(o,e))return-1;if(n!==yo&&32768&mx(t)&&!(1024&e.flags)&&(2688&e.flags||(n===mo||n===go)&&256&e.flags)){const t=e===e.regularType?e.freshType:e.regularType,n=128&e.flags?Vt:256&e.flags?Wt:2048&e.flags?$t:void 0;return n&&Gv(o,n)||t&&Gv(o,t)?-1:0}const r=wN(t,e);if(r){const t=U(e,r,2,!1,void 0,i);if(t)return t}}for(const t of o){const n=U(e,t,2,!1,void 0,i);if(n)return n}if(r){const n=YS(e,t,U);n&&U(e,n,2,!0,void 0,i)}return 0}function Z(e,t,n,r){const i=e.types;if(1048576&e.flags&&Gv(i,t))return-1;const o=i.length;for(let e=0;e(N|=e?16:8,k(e))),3===S?(null==(a=Hn)||a.instant(Hn.Phase.CheckTypes,"recursiveTypeRelatedTo_DepthLimit",{sourceId:e.id,sourceIdStack:m.map((e=>e.id)),targetId:t.id,targetIdStack:g.map((e=>e.id)),depth:b,targetDepth:x}),T=3):(null==(s=Hn)||s.push(Hn.Phase.CheckTypes,"structuredTypeRelatedTo",{sourceId:e.id,targetId:t.id}),T=function(e,t,r,i){const o=I();let a=function(e,t,r,i,o){let a,s,c=!1,u=e.flags;const d=t.flags;if(n===bo){if(3145728&u){let n=Q(e,t);return n&&(n&=Q(t,e)),n}if(4194304&u)return U(e.type,t.type,3,!1);if(8388608&u&&(a=U(e.objectType,t.objectType,3,!1))&&(a&=U(e.indexType,t.indexType,3,!1)))return a;if(16777216&u&&e.root.isDistributive===t.root.isDistributive&&(a=U(e.checkType,t.checkType,3,!1))&&(a&=U(e.extendsType,t.extendsType,3,!1))&&(a&=U(Px(e),Px(t),3,!1))&&(a&=U(Ax(e),Ax(t),3,!1)))return a;if(33554432&u&&(a=U(e.baseType,t.baseType,3,!1))&&(a&=U(e.constraint,t.constraint,3,!1)))return a;if(!(524288&u))return 0}else if(3145728&u||3145728&d){if(a=X(e,t,r,i))return a;if(!(465829888&u||524288&u&&1048576&d||2097152&u&&467402752&d))return 0}if(17301504&u&&e.aliasSymbol&&e.aliasTypeArguments&&e.aliasSymbol===t.aliasSymbol&&!mT(e)&&!mT(t)){const n=lT(e.aliasSymbol);if(n===l)return 1;const r=oa(e.aliasSymbol).typeParameters,o=ng(r),a=y(rg(e.aliasTypeArguments,r,o,Fm(e.aliasSymbol.valueDeclaration)),rg(t.aliasTypeArguments,r,o,Fm(e.aliasSymbol.valueDeclaration)),n,i);if(void 0!==a)return a}if(WC(e)&&!e.target.readonly&&(a=U(Kh(e)[0],t,1))||WC(t)&&(t.target.readonly||SC(qp(e)||e))&&(a=U(e,Kh(t)[0],2)))return a;if(262144&d){if(32&mx(e)&&!e.declaration.nameType&&U(qb(t),qd(e),3)&&!(4&ep(e))){const n=Hd(e),i=vx(t,Jd(e));if(a=U(n,i,3,r))return a}if(n===yo&&262144&u){let n=xp(e);if(n)for(;n&&ED(n,(e=>!!(262144&e.flags)));){if(a=U(n,t,1,!1))return a;n=xp(n)}return 0}}else if(4194304&d){const n=t.type;if(4194304&u&&(a=U(n,e.type,3,!1)))return a;if(UC(n)){if(a=U(e,zv(n),2,r))return a}else{const i=Sp(n);if(i){if(-1===U(e,qb(i,4|t.indexFlags),2,r))return-1}else if(rp(n)){const t=Ud(n),i=qd(n);let o;if(o=t&&Qd(n)?xb([te(t,n),t]):t||i,-1===U(e,o,2,r))return-1}}}else if(8388608&d){if(8388608&u){if((a=U(e.objectType,t.objectType,3,r))&&(a&=U(e.indexType,t.indexType,3,r)),a)return a;r&&(s=_)}if(n===ho||n===yo){const n=t.objectType,c=t.indexType,l=qp(n)||n,u=qp(c)||c;if(!lx(l)&&!_x(u)){const t=Sx(l,u,4|(l!==n?2:0));if(t){if(r&&s&&P(o),a=U(e,t,2,r,void 0,i))return a;r&&s&&_&&(_=h([s])<=h([_])?s:_)}}}r&&(s=void 0)}else if(rp(t)&&n!==bo){const n=!!t.declaration.nameType,i=Hd(t),c=ep(t);if(!(8&c)){if(!n&&8388608&i.flags&&i.objectType===e&&i.indexType===Jd(t))return-1;if(!rp(e)){const i=n?Ud(t):qd(t),l=qb(e,2),u=4&c,d=u?Pd(i,l):void 0;if(u?!(131072&d.flags):U(i,l,3)){const o=Hd(t),s=Jd(t),c=nF(o,-98305);if(!n&&8388608&c.flags&&c.indexType===s){if(a=U(e,c.objectType,2,r))return a}else{const t=vx(e,n?d||i:d?Fb([d,s]):s);if(a=U(t,o,3,r))return a}}s=_,P(o)}}}else if(16777216&d){if(RT(t,g,x,10))return 3;const n=t;if(!(n.root.inferTypeParameters||(p=n.root,p.isDistributive&&(Gk(p.checkType,p.node.trueType)||Gk(p.checkType,p.node.falseType)))||16777216&e.flags&&e.root===n.root)){const t=!gS(rS(n.checkType),rS(n.extendsType)),r=!t&&gS(iS(n.checkType),iS(n.extendsType));if((a=t?-1:U(e,Px(n),2,!1,void 0,i))&&(a&=r?-1:U(e,Ax(n),2,!1,void 0,i),a))return a}}else if(134217728&d){if(134217728&u){if(n===yo)return function(e,t){const n=e.texts[0],r=t.texts[0],i=e.texts[e.texts.length-1],o=t.texts[t.texts.length-1],a=Math.min(n.length,r.length),s=Math.min(i.length,o.length);return n.slice(0,a)!==r.slice(0,a)||i.slice(i.length-s)!==o.slice(o.length-s)}(e,t)?0:-1;tS(e,Cn)}if(tN(e,t))return-1}else if(268435456&t.flags&&!(268435456&e.flags)&&Yw(e,t))return-1;var p,f;if(8650752&u){if(!(8388608&u&&8388608&d)){const n=bp(e)||Ot;if(a=U(n,t,1,!1,void 0,i))return a;if(a=U(ld(n,e),t,1,r&&n!==Ot&&!(d&u&262144),void 0,i))return a;if(df(e)){const n=bp(e.indexType);if(n&&(a=U(vx(e.objectType,n),t,1,r)))return a}}}else if(4194304&u){const n=zb(e.type,e.indexFlags)&&32&mx(e.type);if(a=U(hn,t,1,r&&!n))return a;if(n){const n=e.type,i=Ud(n),o=i&&Qd(n)?te(i,n):i||qd(n);if(a=U(o,t,1,r))return a}}else if(134217728&u&&!(524288&d)){if(!(134217728&d)){const n=qp(e);if(n&&n!==e&&(a=U(n,t,1,r)))return a}}else if(268435456&u)if(268435456&d){if(e.symbol!==t.symbol)return 0;if(a=U(e.type,t.type,3,r))return a}else{const n=qp(e);if(n&&(a=U(n,t,1,r)))return a}else if(16777216&u){if(RT(e,m,b,10))return 3;if(16777216&d){const n=e.root.inferTypeParameters;let i,o=e.extendsType;if(n){const e=Ew(n,void 0,0,q);rN(e.inferences,t.extendsType,o,1536),o=tS(o,e.mapper),i=e.mapper}if(_S(o,t.extendsType)&&(U(e.checkType,t.checkType,3)||U(t.checkType,e.checkType,3))&&((a=U(tS(Px(e),i),Px(t),3,r))&&(a&=U(Ax(e),Ax(t),3,r)),a))return a}const n=wp(e);if(n&&(a=U(n,t,1,r)))return a;const i=16777216&d||!tf(e)?void 0:Ip(e);if(i&&(P(o),a=U(i,t,1,r)))return a}else{if(n!==mo&&n!==go&&32&mx(f=t)&&4&ep(f)&&LS(e))return-1;if(rp(t))return rp(e)&&(a=function(e,t,r){if(n===yo||(n===bo?ep(e)===ep(t):np(e)<=np(t))){let n;if(n=U(qd(t),tS(qd(e),np(e)<0?wn:Cn),3,r)){const i=Tk([Jd(e)],[Jd(t)]);if(tS(Ud(e),i)===tS(Ud(t),i))return n&U(tS(Hd(e),i),Hd(t),3,r)}}return 0}(e,t,r))?a:0;const p=!!(402784252&u);if(n!==bo)u=(e=pf(e)).flags;else if(rp(e))return 0;if(4&mx(e)&&4&mx(t)&&e.target===t.target&&!UC(e)&&!mT(e)&&!mT(t)){if(FC(e))return-1;const n=rT(e.target);if(n===l)return 1;const r=y(Kh(e),Kh(t),n,i);if(void 0!==r)return r}else{if(vC(t)?AD(e,kC):yC(t)&&AD(e,(e=>UC(e)&&!e.target.readonly)))return n!==bo?U(pm(e,Wt)||wt,pm(t,Wt)||wt,3,r):0;if(VC(e)&&UC(t)&&!VC(t)){const n=Wp(e);if(n!==e)return U(n,t,1,r)}else if((n===mo||n===go)&&LS(t)&&8192&mx(t)&&!LS(e))return 0}if(2621440&u&&524288&d){const n=r&&_===o.errorInfo&&!p;if(a=ae(e,t,n,void 0,!1,i),a&&(a&=se(e,t,0,n,i),a&&(a&=se(e,t,1,n,i),a&&(a&=me(e,t,p,n,i)))),c&&a)_=s||_||o.errorInfo;else if(a)return a}if(2621440&u&&1048576&d){const r=nF(t,36175872);if(1048576&r.flags){const t=function(e,t){var r;const i=xN(vp(e),t);if(!i)return 0;let o=1;for(const n of i)if(o*=JD(T_(n)),o>25)return null==(r=Hn)||r.instant(Hn.Phase.CheckTypes,"typeRelatedToDiscriminatedType_DepthLimit",{sourceId:e.id,targetId:t.id,numCombinations:o}),0;const a=new Array(i.length),s=new Set;for(let e=0;er[o]),!1,0,H||n===yo))continue e}ce(l,a,mt),o=!0}if(!o)return 0}let _=-1;for(const t of l)if(_&=ae(e,t,!1,s,!1,0),_&&(_&=se(e,t,0,!1,0),_&&(_&=se(e,t,1,!1,0),!_||UC(e)&&UC(t)||(_&=me(e,t,!1,!1,0)))),!_)return _;return _}(e,r);if(t)return t}}}return 0;function h(e){return e?we(e,((e,t)=>e+1+h(t.next)),0):0}function y(e,t,i,u){if(a=function(e=l,t=l,r=l,i,o){if(e.length!==t.length&&n===bo)return 0;const a=e.length<=t.length?e.length:t.length;let s=-1;for(let c=0;c!!(24&e))))return s=void 0,void P(o);const d=t&&function(e,t){for(let n=0;n!(7&e)))))return 0;s=_,P(o)}}}(e,t,r,i,o);if(n!==bo){if(!a&&(2097152&e.flags||262144&e.flags&&1048576&t.flags)){const n=function(e,t){let n,r=!1;for(const i of e)if(465829888&i.flags){let e=bp(i);for(;e&&21233664&e.flags;)e=bp(e);e&&(n=ie(n,e),t&&(n=ie(n,i)))}else(469892092&i.flags||jS(i))&&(r=!0);if(n&&(t||r)){if(r)for(const t of e)(469892092&t.flags||jS(t))&&(n=ie(n,t));return VS(Fb(n,2),!1)}}(2097152&e.flags?e.types:[e],!!(1048576&t.flags));n&&AD(n,(t=>t!==e))&&(a=U(n,t,1,!1,void 0,i))}a&&!(2&i)&&2097152&t.flags&&!lx(t)&&2621440&e.flags?(a&=ae(e,t,r,void 0,!1,0),a&&aN(e)&&8192&mx(e)&&(a&=me(e,t,!1,r,0))):a&&zx(t)&&!kC(t)&&2097152&e.flags&&3670016&pf(e).flags&&!$(e.types,(e=>e===t||!!(262144&mx(e))))&&(a&=ae(e,t,r,void 0,!0,i))}return a&&P(o),a}(e,t,r,i),null==(c=Hn)||c.pop()),on&&(on=k),1&o&&b--,2&o&&x--,S=y,T?(-1===T||0===b&&0===x)&&F(-1===T||3===T):(n.set(u,2|N),D--,F(!1)),T;function F(e){for(let t=h;t{r.push(tS(e,zk(t.mapper,Jd(t),n)))})),xb(r)}function re(e,t){if(!t||0===e.length)return e;let n;for(let r=0;r{return!!(4&rx(t))&&(n=e,r=FT(t),!DT(n,(e=>{const t=FT(e);return!!t&&D_(t,r)})));var n,r}))}(r,i))return a&&R(la.Property_0_is_protected_but_type_1_is_not_a_class_derived_from_2,ic(i),sc(FT(r)||e),sc(FT(i)||t)),0}else if(4&l)return a&&R(la.Property_0_is_protected_in_type_1_but_public_in_type_2,ic(i),sc(e),sc(t)),0;if(n===go&&WL(r)&&!WL(i))return 0;const u=function(e,t,n,r,i){const o=H&&!!(48&nx(t)),a=kl(T_(t),!1,o);return U(n(e),a,3,r,void 0,i)}(r,i,o,a,s);return u?!c&&16777216&r.flags&&106500&i.flags&&!(16777216&i.flags)?(a&&R(la.Property_0_is_optional_in_type_1_but_required_in_type_2,ic(i),sc(e),sc(t)),0):u:(a&&O(la.Types_of_property_0_are_incompatible,ic(i)),0)}function ae(e,t,r,i,a,s){if(n===bo)return function(e,t,n){if(!(524288&e.flags&&524288&t.flags))return 0;const r=re(gp(e),n),i=re(gp(t),n);if(r.length!==i.length)return 0;let o=-1;for(const e of r){const n=hp(t,e.escapedName);if(!n)return 0;const r=rC(e,n,U);if(!r)return 0;o&=r}return o}(e,t,i);let c=-1;if(UC(t)){if(kC(e)){if(!t.target.readonly&&(vC(e)||UC(e)&&e.target.readonly))return 0;const n=ey(e),o=ey(t),a=UC(e)?4&e.target.combinedFlags:4,l=!!(12&t.target.combinedFlags),_=UC(e)?e.target.minLength:0,u=t.target.minLength;if(!a&&n!(11&e)));return t>=0?t:e.elementFlags.length}(t.target),m=qv(t.target,11);let g=!!i;for(let a=0;a=f?o-1-Math.min(u,m):a,y=t.target.elementFlags[h];if(8&y&&!(8&_))return r&&R(la.Source_provides_no_match_for_variadic_element_at_position_0_in_target,h),0;if(8&_&&!(12&y))return r&&R(la.Variadic_element_at_position_0_in_source_does_not_match_element_at_position_1_in_target,a,h),0;if(1&y&&!(1&_))return r&&R(la.Source_provides_no_match_for_required_element_at_position_0_in_target,h),0;if(g&&((12&_||12&y)&&(g=!1),g&&(null==i?void 0:i.has(""+a))))continue;const v=cw(d[a],!!(_&y&2)),b=p[h],x=U(v,8&_&&4&y?uv(b):cw(b,!!(2&y)),3,r,void 0,s);if(!x)return r&&(o>1||n>1)&&(l&&a>=f&&u>=m&&f!==n-m-1?O(la.Type_at_positions_0_through_1_in_source_is_not_compatible_with_type_at_position_2_in_target,f,n-m-1,h):O(la.Type_at_position_0_in_source_is_not_compatible_with_type_at_position_1_in_target,a,h)),0;c&=x}return c}if(12&t.target.combinedFlags)return 0}const l=!(n!==mo&&n!==go||aN(e)||FC(e)||UC(e)),d=Hw(e,t,l,!1);if(d)return r&&function(e,t){const n=jf(e,0),r=jf(e,1),i=gp(e);return!((n.length||r.length)&&!i.length)||!!(Rf(t,0).length&&n.length||Rf(t,1).length&&r.length)}(e,t)&&function(e,t,n,r){let i=!1;if(n.valueDeclaration&&kc(n.valueDeclaration)&&qN(n.valueDeclaration.name)&&e.symbol&&32&e.symbol.flags){const r=n.valueDeclaration.name.escapedText,i=Uh(e.symbol,r);if(i&&Cf(e,i)){const n=XC.getDeclarationName(e.symbol.valueDeclaration),i=XC.getDeclarationName(t.symbol.valueDeclaration);return void R(la.Property_0_in_type_1_refers_to_a_different_member_that_cannot_be_accessed_from_within_type_2,pa(r),pa(""===n.escapedText?SB:n),pa(""===i.escapedText?SB:i))}}const a=Oe($w(e,t,r,!1));if((!o||o.code!==la.Class_0_incorrectly_implements_interface_1.code&&o.code!==la.Class_0_incorrectly_implements_class_1_Did_you_mean_to_extend_1_and_inherit_its_members_as_a_subclass.code)&&(i=!0),1===a.length){const r=ic(n,void 0,0,20);R(la.Property_0_is_missing_in_type_1_but_required_in_type_2,r,...cc(e,t)),u(n.declarations)&&B(jp(n.declarations[0],la._0_is_declared_here,r)),i&&_&&w++}else z(e,t,!1)&&(a.length>5?R(la.Type_0_is_missing_the_following_properties_from_type_1_Colon_2_and_3_more,sc(e),sc(t),E(a.slice(0,4),(e=>ic(e))).join(", "),a.length-4):R(la.Type_0_is_missing_the_following_properties_from_type_1_Colon_2,sc(e),sc(t),E(a,(e=>ic(e))).join(", ")),i&&_&&w++)}(e,t,d,l),0;if(aN(t))for(const n of re(vp(e),i))if(!(hp(t,n.escapedName)||32768&S_(n).flags))return r&&R(la.Property_0_does_not_exist_on_type_1,ic(n),sc(t)),0;const p=vp(t),f=UC(e)&&UC(t);for(const o of re(p,i)){const i=o.escapedName;if(!(4194304&o.flags)&&(!f||MT(i)||"length"===i)&&(!a||16777216&o.flags)){const a=Cf(e,i);if(a&&a!==o){const i=oe(e,t,a,o,T_,r,s,n===yo);if(!i)return 0;c&=i}}}return c}function se(e,t,r,i,o){var a,s;if(n===bo)return function(e,t,n){const r=Rf(e,n),i=Rf(t,n);if(r.length!==i.length)return 0;let o=-1;for(let e=0;eac(e,void 0,262144,r);return R(la.Type_0_is_not_assignable_to_type_1,e(t),e(c)),R(la.Types_of_construct_signatures_are_incompatible),d}}else e:for(const t of u){const n=I();let a=i;for(const e of _){const r=de(e,t,!0,a,o,p(e,t));if(r){d&=r,P(n);continue e}a=!1}return a&&R(la.Type_0_provides_no_match_for_the_signature_1,sc(e),ac(t,void 0,void 0,r)),0}return d}function le(e,t){return 0===e.parameters.length&&0===t.parameters.length?(e,t)=>O(la.Call_signatures_with_no_arguments_have_incompatible_return_types_0_and_1,sc(e),sc(t)):(e,t)=>O(la.Call_signature_return_types_0_and_1_are_incompatible,sc(e),sc(t))}function ue(e,t){return 0===e.parameters.length&&0===t.parameters.length?(e,t)=>O(la.Construct_signatures_with_no_arguments_have_incompatible_return_types_0_and_1,sc(e),sc(t)):(e,t)=>O(la.Construct_signature_return_types_0_and_1_are_incompatible,sc(e),sc(t))}function de(e,t,r,i,o,a){const s=n===mo?16:n===go?24:0;return AS(r?Hg(e):e,r?Hg(t):t,s,i,R,a,(function(e,t,n){return U(e,t,3,n,void 0,o)}),Cn)}function pe(e,t,n,r){const i=U(e.type,t.type,3,n,void 0,r);return!i&&n&&(e.keyType===t.keyType?R(la._0_index_signatures_are_incompatible,sc(e.keyType)):R(la._0_and_1_index_signatures_are_incompatible,sc(e.keyType),sc(t.keyType))),i}function me(e,t,r,i,o){if(n===bo)return function(e,t){const n=Kf(e),r=Kf(t);if(n.length!==r.length)return 0;for(const t of r){const n=dm(e,t.keyType);if(!n||!U(n.type,t.type,3)||n.isReadonly!==t.isReadonly)return 0}return-1}(e,t);const a=Kf(t),s=$(a,(e=>e.keyType===Vt));let c=-1;for(const t of a){const a=n!==go&&!r&&s&&1&t.type.flags?-1:rp(e)&&s?U(Hd(e),t.type,3,i):he(e,t,i,o);if(!a)return 0;c&=a}return c}function he(e,t,r,i){const o=hm(e,t.keyType);return o?pe(o,t,r,i):1&i||!(n!==go||8192&mx(e))||!uw(e)?(r&&R(la.Index_signature_for_type_0_is_missing_in_type_1,sc(t.keyType),sc(e)),0):function(e,t,n,r){let i=-1;const o=t.keyType,a=2097152&e.flags?yp(e):gp(e);for(const s of a)if(!qS(e,s)&&Wf(Mb(s,8576),o)){const e=T_(s),a=U(_e||32768&e.flags||o===Wt||!(16777216&s.flags)?e:ON(e,524288),t.type,3,n,void 0,r);if(!a)return n&&R(la.Property_0_is_incompatible_with_index_signature,ic(s)),0;i&=a}for(const a of Kf(e))if(Wf(a.keyType,o)){const e=pe(a,t,n,r);if(!e)return 0;i&=e}return i}(e,t,r,i)}}function KS(e){if(16&e.flags)return!1;if(3145728&e.flags)return!!d(e.types,KS);if(465829888&e.flags){const t=bp(e);if(t&&t!==e)return KS(t)}return OC(e)||!!(134217728&e.flags)||!!(268435456&e.flags)}function GS(e,t){return UC(e)&&UC(t)?l:vp(t).filter((t=>QS(Uc(e,t.escapedName),S_(t))))}function QS(e,t){return!!e&&!!t&&QL(e,32768)&&!!lw(t)}function YS(e,t,n=dS){return sz(e,t,n)||function(e,t){const n=mx(e);if(20&n&&1048576&t.flags)return b(t.types,(t=>{if(524288&t.flags){const r=n&mx(t);if(4&r)return e.target===t.target;if(16&r)return!!e.aliasSymbol&&e.aliasSymbol===t.aliasSymbol}return!1}))}(e,t)||function(e,t){if(128&mx(e)&&ED(t,CC))return b(t.types,(e=>!CC(e)))}(e,t)||function(e,t){let n=0;if(Rf(e,n).length>0||(n=1,Rf(e,n).length>0))return b(t.types,(e=>Rf(e,n).length>0))}(e,t)||function(e,t){let n;if(!(406978556&e.flags)){let r=0;for(const i of t.types)if(!(406978556&i.flags)){const t=Fb([qb(e),qb(i)]);if(4194304&t.flags)return i;if(OC(t)||1048576&t.flags){const e=1048576&t.flags?w(t.types,OC):1;e>=r&&(n=i,r=e)}}}return n}(e,t)}function tT(e,t,n){const r=e.types,i=r.map((e=>402784252&e.flags?0:-1));for(const[e,o]of t){let t=!1;for(let a=0;a!!n(e,s)))?t=!0:i[a]=3}for(let e=0;ei[t])),0):e;return 131072&o.flags?e:o}function nT(e){if(524288&e.flags){const t=pp(e);return 0===t.callSignatures.length&&0===t.constructSignatures.length&&0===t.indexInfos.length&&t.properties.length>0&&v(t.properties,(e=>!!(16777216&e.flags)))}return 33554432&e.flags?nT(e.baseType):!!(2097152&e.flags)&&v(e.types,nT)}function rT(e){return e===Zn||e===er||8&e.objectFlags?L:_T(e.symbol,e.typeParameters)}function lT(e){return _T(e,oa(e).typeParameters)}function _T(e,t=l){var n,r;const i=oa(e);if(!i.variances){null==(n=Hn)||n.push(Hn.Phase.CheckTypes,"getVariancesWorker",{arity:t.length,id:Kv(fu(e))});const o=qi,a=zi;qi||(qi=!0,zi=Mi.length),i.variances=l;const s=[];for(const n of t){const t=xT(n);let r=16384&t?8192&t?0:1:8192&t?2:void 0;if(void 0===r){let t=!1,i=!1;const o=on;on=e=>e?i=!0:t=!0;const a=dT(e,n,Bn),s=dT(e,n,Jn);r=(gS(s,a)?1:0)|(gS(a,s)?2:0),3===r&&gS(dT(e,n,zn),a)&&(r=4),on=o,(t||i)&&(t&&(r|=8),i&&(r|=16))}s.push(r)}o||(qi=!1,zi=a),i.variances=s,null==(r=Hn)||r.pop({variances:s.map(un.formatVariance)})}return i.variances}function dT(e,t,n){const r=Fk(t,n),i=fu(e);if($c(i))return i;const o=524288&e.flags?ny(e,mk(oa(e).typeParameters,r)):jh(i,mk(i.typeParameters,r));return bt.add(Kv(o)),o}function mT(e){return bt.has(Kv(e))}function xT(e){var t;return 28672&we(null==(t=e.symbol)?void 0:t.declarations,((e,t)=>e|Mv(t)),0)}function kT(e){return 262144&e.flags&&!xp(e)}function TT(e){return function(e){return!!(4&mx(e))&&!e.node}(e)&&$(Kh(e),(e=>!!(262144&e.flags)||TT(e)))}function NT(e,t,n,r,i){if(r===bo&&e.id>t.id){const n=e;e=t,t=n}const o=n?":"+n:"";return TT(e)&&TT(t)?function(e,t,n,r){const i=[];let o="";const a=c(e,0),s=c(t,0);return`${o}${a},${s}${n}`;function c(e,t=0){let n=""+e.target.id;for(const a of Kh(e)){if(262144&a.flags){if(r||kT(a)){let e=i.indexOf(a);e<0&&(e=i.length,i.push(a)),n+="="+e;continue}o="*"}else if(t<4&&TT(a)){n+="<"+c(a,t+1)+">";continue}n+="-"+a.id}return n}}(e,t,o,i):`${e.id},${t.id}${o}`}function DT(e,t){if(!(6&nx(e)))return t(e);for(const n of e.links.containingType.types){const r=Cf(n,e.escapedName),i=r&&DT(r,t);if(i)return i}}function FT(e){return e.parent&&32&e.parent.flags?fu(hs(e)):void 0}function PT(e){const t=FT(e),n=t&&Z_(t)[0];return n&&Uc(n,e.escapedName)}function AT(e,t,n){return DT(t,(t=>!!(4&rx(t,n))&&!D_(e,FT(t))))?void 0:e}function RT(e,t,n,r=3){if(n>=r){if(96&~mx(e)||(e=zT(e)),2097152&e.flags)return $(e.types,(e=>RT(e,t,n,r)));const i=tC(e);let o=0,a=0;for(let e=0;e=a&&(o++,o>=r))return!0;a=n.id}}}return!1}function zT(e){let t;for(;!(96&~mx(e))&&(t=Yd(e))&&(t.symbol||2097152&t.flags&&$(t.types,(e=>!!e.symbol)));)e=t;return e}function $T(e,t){return 96&~mx(e)||(e=zT(e)),2097152&e.flags?$(e.types,(e=>$T(e,t))):tC(e)===t}function tC(e){if(524288&e.flags&&!sN(e)){if(4&mx(e)&&e.node)return e.node;if(e.symbol&&!(16&mx(e)&&32&e.symbol.flags))return e.symbol;if(UC(e))return e.target}if(262144&e.flags)return e.symbol;if(8388608&e.flags){do{e=e.objectType}while(8388608&e.flags);return e}return 16777216&e.flags?e.root:e}function rC(e,t,n){if(e===t)return-1;const r=6&rx(e);if(r!==(6&rx(t)))return 0;if(r){if(VM(e)!==VM(t))return 0}else if((16777216&e.flags)!=(16777216&t.flags))return 0;return WL(e)!==WL(t)?0:n(S_(e),S_(t))}function lC(e,t,n,r,i,o){if(e===t)return-1;if(!function(e,t,n){const r=hL(e),i=hL(t),o=yL(e),a=yL(t),s=vL(e),c=vL(t);return r===i&&o===a&&s===c||!!(n&&o<=a)}(e,t,n))return 0;if(u(e.typeParameters)!==u(t.typeParameters))return 0;if(t.typeParameters){const n=Tk(e.typeParameters,t.typeParameters);for(let r=0;re|(1048576&t.flags?_C(t.types):t.flags)),0)}function dC(e){if(1===e.length)return e[0];const t=H?A(e,(e=>OD(e,(e=>!(98304&e.flags))))):e,n=function(e){let t;for(const n of e)if(!(131072&n.flags)){const e=RC(n);if(t??(t=e),e===n||e!==t)return!1}return!0}(t)?xb(t):we(t,((e,t)=>fS(e,t)?t:e));return t===e?n:ew(n,98304&_C(e))}function yC(e){return!!(4&mx(e))&&(e.target===Zn||e.target===er)}function vC(e){return!!(4&mx(e))&&e.target===er}function kC(e){return yC(e)||UC(e)}function SC(e){return yC(e)&&!vC(e)||UC(e)&&!e.target.readonly}function TC(e){return yC(e)?Kh(e)[0]:void 0}function CC(e){return yC(e)||!(98304&e.flags)&&gS(e,_r)}function wC(e){return SC(e)||!(98305&e.flags)&&gS(e,cr)}function NC(e){if(!(4&mx(e)&&3&mx(e.target)))return;if(33554432&mx(e))return 67108864&mx(e)?e.cachedEquivalentBaseType:void 0;e.objectFlags|=33554432;const t=e.target;if(1&mx(t)){const e=z_(t);if(e&&80!==e.expression.kind&&211!==e.expression.kind)return}const n=Z_(t);if(1!==n.length)return;if(sd(e.symbol).size)return;let r=u(t.typeParameters)?tS(n[0],Tk(t.typeParameters,Kh(e).slice(0,t.typeParameters.length))):n[0];return u(Kh(e))>u(t.typeParameters)&&(r=ld(r,ve(Kh(e)))),e.objectFlags|=67108864,e.cachedEquivalentBaseType=r}function DC(e){return H?e===pn:e===Rt}function FC(e){const t=TC(e);return!!t&&DC(t)}function EC(e){let t;return UC(e)||!!Cf(e,"0")||CC(e)&&!!(t=Uc(e,"length"))&&AD(t,(e=>!!(256&e.flags)))}function PC(e){return CC(e)||EC(e)}function AC(e,t){return Uc(e,""+t)||(AD(e,UC)?HC(e,t,j.noUncheckedIndexedAccess?jt:void 0):void 0)}function IC(e){return!(240544&e.flags)}function OC(e){return!!(109472&e.flags)}function LC(e){const t=Wp(e);return 2097152&t.flags?$(t.types,OC):OC(t)}function jC(e){return!!(16&e.flags)||(1048576&e.flags?!!(1024&e.flags)||v(e.types,OC):OC(e))}function RC(e){return 1056&e.flags?su(e):402653312&e.flags?Vt:256&e.flags?Wt:2048&e.flags?$t:512&e.flags?sn:1048576&e.flags?function(e){const t=`B${Kv(e)}`;return No(t)??Fo(t,zD(e,RC))}(e):e}function MC(e){return 402653312&e.flags?Vt:288&e.flags?Wt:2048&e.flags?$t:512&e.flags?sn:1048576&e.flags?zD(e,MC):e}function BC(e){return 1056&e.flags&&rk(e)?su(e):128&e.flags&&rk(e)?Vt:256&e.flags&&rk(e)?Wt:2048&e.flags&&rk(e)?$t:512&e.flags&&rk(e)?sn:1048576&e.flags?zD(e,BC):e}function JC(e){return 8192&e.flags?cn:1048576&e.flags?zD(e,JC):e}function zC(e,t){return bj(e,t)||(e=JC(BC(e))),nk(e)}function qC(e,t,n,r){return e&&OC(e)&&(e=zC(e,t?TM(n,t,r):void 0)),e}function UC(e){return!!(4&mx(e)&&8&e.target.objectFlags)}function VC(e){return UC(e)&&!!(8&e.target.combinedFlags)}function WC(e){return VC(e)&&1===e.target.elementFlags.length}function $C(e){return KC(e,e.target.fixedLength)}function HC(e,t,n){return zD(e,(e=>{const r=e,i=$C(r);return i?n&&t>=Uv(r.target)?xb([i,n]):i:jt}))}function KC(e,t,n=0,r=!1,i=!1){const o=ey(e)-n;if(tAN(e,4194304)))}function ZC(e){return 4&e.flags?Li:8&e.flags?ji:64&e.flags?Ri:e===Qt||e===Ht||114691&e.flags||128&e.flags&&""===e.value||256&e.flags&&0===e.value||2048&e.flags&&GC(e)?e:_n}function ew(e,t){const n=t&~e.flags&98304;return 0===n?e:xb(32768===n?[e,jt]:65536===n?[e,zt]:[e,jt,zt])}function tw(e,t=!1){un.assert(H);const n=t?Bt:jt;return e===n||1048576&e.flags&&e.types[0]===n?e:xb([e,n])}function rw(e){return H?LN(e,2097152):e}function iw(e){return H?xb([e,Jt]):e}function ow(e){return H?RD(e,Jt):e}function aw(e,t,n){return n?vl(t)?tw(e):iw(e):e}function sw(e,t){return yl(t)?rw(e):gl(t)?ow(e):e}function cw(e,t){return _e&&t?RD(e,Mt):e}function lw(e){return e===Mt||!!(1048576&e.flags)&&e.types[0]===Mt}function _w(e){return _e?RD(e,Mt):ON(e,524288)}function uw(e){const t=mx(e);return 2097152&e.flags?v(e.types,uw):!(!(e.symbol&&7040&e.symbol.flags)||32&e.symbol.flags||aJ(e))||!!(4194304&t)||!!(1024&t&&uw(e.source))}function dw(e,t){const n=Wo(e.flags,e.escapedName,8&nx(e));n.declarations=e.declarations,n.parent=e.parent,n.links.type=t,n.links.target=e,e.valueDeclaration&&(n.valueDeclaration=e.valueDeclaration);const r=oa(e).nameType;return r&&(n.links.nameType=r),n}function fw(e){if(!(aN(e)&&8192&mx(e)))return e;const t=e.regularType;if(t)return t;const n=e,r=function(e,t){const n=Hu();for(const r of gp(e)){const e=S_(r),i=t(e);n.set(r.escapedName,i===e?r:dw(r,i))}return n}(e,fw),i=Bs(n.symbol,r,n.callSignatures,n.constructSignatures,n.indexInfos);return i.flags=n.flags,i.objectFlags|=-8193&n.objectFlags,e.regularType=i,i}function hw(e,t,n){return{parent:e,propertyName:t,siblings:n,resolvedProperties:void 0}}function yw(e){if(!e.siblings){const t=[];for(const n of yw(e.parent))if(aN(n)){const r=hp(n,e.propertyName);r&&FD(S_(r),(e=>{t.push(e)}))}e.siblings=t}return e.siblings}function bw(e){if(!e.resolvedProperties){const t=new Map;for(const n of yw(e))if(aN(n)&&!(2097152&mx(n)))for(const e of vp(n))t.set(e.escapedName,e);e.resolvedProperties=Oe(t.values())}return e.resolvedProperties}function xw(e,t){if(!(4&e.flags))return e;const n=S_(e),r=Tw(n,t&&hw(t,e.escapedName,void 0));return r===n?e:dw(e,r)}function kw(e){const t=yt.get(e.escapedName);if(t)return t;const n=dw(e,Bt);return n.flags|=16777216,yt.set(e.escapedName,n),n}function Sw(e){return Tw(e,void 0)}function Tw(e,t){if(196608&mx(e)){if(void 0===t&&e.widened)return e.widened;let n;if(98305&e.flags)n=wt;else if(aN(e))n=function(e,t){const n=Hu();for(const r of gp(e))n.set(r.escapedName,xw(r,t));if(t)for(const e of bw(t))n.has(e.escapedName)||n.set(e.escapedName,kw(e));const r=Bs(e.symbol,n,l,l,A(Kf(e),(e=>uh(e.keyType,Sw(e.type),e.isReadonly))));return r.objectFlags|=266240&mx(e),r}(e,t);else if(1048576&e.flags){const r=t||hw(void 0,void 0,e.types),i=A(e.types,(e=>98304&e.flags?e:Tw(e,r)));n=xb(i,$(i,LS)?2:1)}else 2097152&e.flags?n=Fb(A(e.types,Sw)):kC(e)&&(n=jh(e.target,A(Kh(e),Sw)));return n&&void 0===t&&(e.widened=n),n||e}return e}function Cw(e){var t;let n=!1;if(65536&mx(e))if(1048576&e.flags)if($(e.types,LS))n=!0;else for(const t of e.types)n||(n=Cw(t));else if(kC(e))for(const t of Kh(e))n||(n=Cw(t));else if(aN(e))for(const r of gp(e)){const i=S_(r);if(65536&mx(i)&&(n=Cw(i),!n)){const o=null==(t=r.declarations)?void 0:t.find((t=>{var n;return(null==(n=t.symbol.valueDeclaration)?void 0:n.parent)===e.symbol.valueDeclaration}));o&&(jo(o,la.Object_literal_s_property_0_implicitly_has_an_1_type,ic(r),sc(Sw(i))),n=!0)}}return n}function ww(e,t,n){const r=sc(Sw(t));if(Fm(e)&&!eT(hd(e),j))return;let i;switch(e.kind){case 226:case 172:case 171:i=ne?la.Member_0_implicitly_has_an_1_type:la.Member_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage;break;case 169:const t=e;if(zN(t.name)){const n=gc(t.name);if((mD(t.parent)||lD(t.parent)||bD(t.parent))&&t.parent.parameters.includes(t)&&(Ue(t,t.name.escapedText,788968,void 0,!0)||n&&xx(n))){const n="arg"+t.parent.parameters.indexOf(t),r=Ep(t.name)+(t.dotDotDotToken?"[]":"");return void Mo(ne,e,la.Parameter_has_a_name_but_no_type_Did_you_mean_0_Colon_1,n,r)}}i=e.dotDotDotToken?ne?la.Rest_parameter_0_implicitly_has_an_any_type:la.Rest_parameter_0_implicitly_has_an_any_type_but_a_better_type_may_be_inferred_from_usage:ne?la.Parameter_0_implicitly_has_an_1_type:la.Parameter_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage;break;case 208:if(i=la.Binding_element_0_implicitly_has_an_1_type,!ne)return;break;case 317:return void jo(e,la.Function_type_which_lacks_return_type_annotation_implicitly_has_an_0_return_type,r);case 323:return void(ne&&gP(e.parent)&&jo(e.parent.tagName,la.This_overload_implicitly_returns_the_type_0_because_it_lacks_a_return_type_annotation,r));case 262:case 174:case 173:case 177:case 178:case 218:case 219:if(ne&&!e.name)return void jo(e,3===n?la.Generator_implicitly_has_yield_type_0_Consider_supplying_a_return_type_annotation:la.Function_expression_which_lacks_return_type_annotation_implicitly_has_an_0_return_type,r);i=ne?3===n?la._0_which_lacks_return_type_annotation_implicitly_has_an_1_yield_type:la._0_which_lacks_return_type_annotation_implicitly_has_an_1_return_type:la._0_implicitly_has_an_1_return_type_but_a_better_type_may_be_inferred_from_usage;break;case 200:return void(ne&&jo(e,la.Mapped_object_type_implicitly_has_an_any_template_type));default:i=ne?la.Variable_0_implicitly_has_an_1_type:la.Variable_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage}Mo(ne,e,i,Ep(Tc(e)),r)}function Nw(e,t,n){a((()=>{ne&&65536&mx(t)&&(!n||i_(e)&&function(e,t){const n=yA(e);if(!n)return!0;let r=Tg(n);const i=Ih(e);switch(t){case 1:return 1&i?r=TM(1,r,!!(2&i))??r:2&i&&(r=pR(r)??r),cx(r);case 3:const e=TM(0,r,!!(2&i));return!!e&&cx(e);case 2:const t=TM(2,r,!!(2&i));return!!t&&cx(t)}return!1}(e,n))&&(Cw(t)||ww(e,t,n))}))}function Dw(e,t,n){const r=hL(e),i=hL(t),o=bL(e),a=bL(t),s=a?i-1:i,c=o?s:Math.min(r,s),l=yg(e);if(l){const e=yg(t);e&&n(l,e)}for(let r=0;re.typeParameter)),E(e.inferences,((t,n)=>()=>(t.isFixed||(function(e){if(e.intraExpressionInferenceSites){for(const{node:t,type:n}of e.intraExpressionInferenceSites){const r=174===t.kind?GP(t,2):sA(t,2);r&&rN(e.inferences,n,r)}e.intraExpressionInferenceSites=void 0}}(e),Aw(e.inferences),t.isFixed=!0),cN(e,n)))))}(i),i.nonFixingMapper=function(e){return Pk(E(e.inferences,(e=>e.typeParameter)),E(e.inferences,((t,n)=>()=>cN(e,n))))}(i),i}function Aw(e){for(const t of e)t.isFixed||(t.inferredType=void 0)}function Lw(e,t,n){(e.intraExpressionInferenceSites??(e.intraExpressionInferenceSites=[])).push({node:t,type:n})}function jw(e){return{typeParameter:e,candidates:void 0,contraCandidates:void 0,inferredType:void 0,priority:void 0,topLevel:!0,isFixed:!1,impliedArity:void 0}}function Rw(e){return{typeParameter:e.typeParameter,candidates:e.candidates&&e.candidates.slice(),contraCandidates:e.contraCandidates&&e.contraCandidates.slice(),inferredType:e.inferredType,priority:e.priority,topLevel:e.topLevel,isFixed:e.isFixed,impliedArity:e.impliedArity}}function Bw(e){return e&&e.mapper}function Jw(e){const t=mx(e);if(524288&t)return!!(1048576&t);const n=!!(465829888&e.flags||524288&e.flags&&!zw(e)&&(4&t&&(e.node||$(Kh(e),Jw))||134217728&t&&u(e.outerTypeParameters)||16&t&&e.symbol&&14384&e.symbol.flags&&e.symbol.declarations||12583968&t)||3145728&e.flags&&!(1024&e.flags)&&!zw(e)&&$(e.types,Jw));return 3899393&e.flags&&(e.objectFlags|=524288|(n?1048576:0)),n}function zw(e){if(e.aliasSymbol&&!e.aliasTypeArguments){const t=Wu(e.aliasSymbol,265);return!(!t||!_c(t.parent,(e=>307===e.kind||267!==e.kind&&"quit")))}return!1}function qw(e,t,n=0){return!!(e===t||3145728&e.flags&&$(e.types,(e=>qw(e,t,n)))||n<3&&16777216&e.flags&&(qw(Px(e),t,n+1)||qw(Ax(e),t,n+1)))}function Uw(e,t,n){const r=e.id+","+t.id+","+n.id;if(vi.has(r))return vi.get(r);const i=function(e,t,n){if(!(dm(e,Vt)||0!==vp(e).length&&Vw(e)))return;if(yC(e)){const r=Ww(Kh(e)[0],t,n);if(!r)return;return uv(r,vC(e))}if(UC(e)){const r=E(Vv(e),(e=>Ww(e,t,n)));if(!v(r,(e=>!!e)))return;return kv(r,4&ep(t)?A(e.target.elementFlags,(e=>2&e?1:e)):e.target.elementFlags,e.target.readonly,e.target.labeledElementDeclarations)}const r=Is(1040,void 0);return r.source=e,r.mappedType=t,r.constraintType=n,r}(e,t,n);return vi.set(r,i),i}function Vw(e){return!(262144&mx(e))||aN(e)&&$(vp(e),(e=>Vw(S_(e))))||UC(e)&&$(Vv(e),Vw)}function Ww(e,t,n){const r=e.id+","+t.id+","+n.id;if(yi.has(r))return yi.get(r)||Ot;co.push(e),lo.push(t);const i=_o;let o;return RT(e,co,co.length,2)&&(_o|=1),RT(t,lo,lo.length,2)&&(_o|=2),3!==_o&&(o=function(e,t,n){const r=vx(n.type,Jd(t)),i=Hd(t),o=jw(r);return rN([o],e,i),Kw(o)||Ot}(e,t,n)),co.pop(),lo.pop(),_o=i,yi.set(r,o),o}function*$w(e,t,n,r){const i=vp(t);for(const t of i)if(!Iu(t)&&(n||!(16777216&t.flags||48&nx(t)))){const n=Cf(e,t.escapedName);if(n){if(r){const e=S_(t);if(109472&e.flags){const r=S_(n);1&r.flags||nk(r)===nk(e)||(yield t)}}}else yield t}}function Hw(e,t,n,r){return me($w(e,t,n,r))}function Kw(e){return e.candidates?xb(e.candidates,2):e.contraCandidates?Fb(e.contraCandidates):void 0}function Gw(e){return!!aa(e).skipDirectInference}function Xw(e){return!(!e.symbol||!$(e.symbol.declarations,Gw))}function Qw(e,t){if(""===e)return!1;const n=+e;return isFinite(n)&&(!t||""+n===e)}function Yw(e,t){if(1&t.flags)return!0;if(134217732&t.flags)return gS(e,t);if(268435456&t.flags){const n=[];for(;268435456&t.flags;)n.unshift(t.symbol),t=t.type;return we(n,((e,t)=>$b(t,e)),e)===e&&Yw(e,t)}return!1}function Zw(e,t){if(2097152&t.flags)return v(t.types,(t=>t===Pn||Zw(e,t)));if(4&t.flags||gS(e,t))return!0;if(128&e.flags){const n=e.value;return!!(8&t.flags&&Qw(n,!1)||64&t.flags&&hT(n,!1)||98816&t.flags&&n===t.intrinsicName||268435456&t.flags&&Yw(ik(n),t)||134217728&t.flags&&tN(e,t))}if(134217728&e.flags){const n=e.texts;return 2===n.length&&""===n[0]&&""===n[1]&&gS(e.types[0],t)}return!1}function eN(e,t){return 128&e.flags?nN([e.value],l,t):134217728&e.flags?te(e.texts,t.texts)?E(e.types,((e,n)=>{return gS(Wp(e),Wp(t.types[n]))?e:402653317&(r=e).flags?r:Vb(["",""],[r]);var r})):nN(e.texts,e.types,t):void 0}function tN(e,t){const n=eN(e,t);return!!n&&v(n,((e,n)=>Zw(e,t.types[n])))}function nN(e,t,n){const r=e.length-1,i=e[0],o=e[r],a=n.texts,s=a.length-1,c=a[0],l=a[s];if(0===r&&i.length0){let t=d,r=p;for(;r=f(t).indexOf(n,r),!(r>=0);){if(t++,t===e.length)return;r=0}m(t,r),p+=n.length}else if(p{if(!(128&e.flags))return;const n=pc(e.value),r=Wo(4,n);r.links.type=wt,e.symbol&&(r.declarations=e.symbol.declarations,r.valueDeclaration=e.symbol.valueDeclaration),t.set(n,r)}));const n=4&e.flags?[uh(Vt,Nn,!1)]:l;return Bs(void 0,t,l,l,n)}(t);!function(e,t){const n=r;r|=256,y(e,t),r=n}(e,a.type)}else if(8388608&t.flags&&8388608&a.flags)p(t.objectType,a.objectType),p(t.indexType,a.indexType);else if(268435456&t.flags&&268435456&a.flags)t.symbol===a.symbol&&p(t.type,a.type);else if(33554432&t.flags)p(t.baseType,a),f(my(t),a,4);else if(16777216&a.flags)m(t,a,w);else if(3145728&a.flags)S(t,a.types,a.flags);else if(1048576&t.flags){const e=t.types;for(const t of e)p(t,a)}else if(134217728&a.flags)!function(e,t){const n=eN(e,t),r=t.types;if(n||v(t.texts,(e=>0===e.length)))for(let e=0;ee|t.flags),0);if(!(4&r)){const n=t.value;296&r&&!Qw(n,!0)&&(r&=-297),2112&r&&!hT(n,!0)&&(r&=-2113);const o=we(e,((e,i)=>i.flags&r?4&e.flags?e:4&i.flags?t:134217728&e.flags?e:134217728&i.flags&&tN(t,i)?t:268435456&e.flags?e:268435456&i.flags&&n===Hb(i.symbol,n)?t:128&e.flags?e:128&i.flags&&i.value===n?i:8&e.flags?e:8&i.flags?ok(+n):32&e.flags?e:32&i.flags?ok(+n):256&e.flags?e:256&i.flags&&i.value===+n?i:64&e.flags?e:64&i.flags?ak(gT(n)):2048&e.flags?e:2048&i.flags&&fT(i.value)===n?i:16&e.flags?e:16&i.flags?"true"===n?Yt:"false"===n?Ht:sn:512&e.flags?e:512&i.flags&&i.intrinsicName===n?i:32768&e.flags?e:32768&i.flags&&i.intrinsicName===n?i:65536&e.flags?e:65536&i.flags&&i.intrinsicName===n?i:e:e),_n);if(!(131072&o.flags)){p(o,i);continue}}}}p(t,i)}}(t,a);else{if(rp(t=yf(t))&&rp(a)&&m(t,a,D),!(512&r&&467927040&t.flags)){const e=pf(t);if(e!==t&&!(2621440&e.flags))return p(e,a);t=e}2621440&t.flags&&m(t,a,F)}else h(Kh(t),Kh(a),rT(t.target))}}}function f(e,t,n){const i=r;r|=n,p(e,t),r=i}function m(e,t,n){const r=e.id+","+t.id,i=a&&a.get(r);if(void 0!==i)return void(u=Math.min(u,i));(a||(a=new Map)).set(r,-1);const o=u;u=2048;const l=d;(s??(s=[])).push(e),(c??(c=[])).push(t),RT(e,s,s.length,2)&&(d|=1),RT(t,c,c.length,2)&&(d|=2),3!==d?n(e,t):u=-1,c.pop(),s.pop(),d=l,a.set(r,u),u=Math.min(u,o)}function g(e,t,n){let r,i;for(const o of t)for(const t of e)n(t,o)&&(p(t,o),r=le(r,t),i=le(i,o));return[r?N(e,(e=>!T(r,e))):e,i?N(t,(e=>!T(i,e))):t]}function h(e,t,n){const r=e.length!!k(e)));if(!e||t&&e!==t)return;t=e}return t}(t);return void(n&&f(e,n,1))}if(1===i&&!s){const e=O(o,((e,t)=>a[t]?void 0:e));if(e.length)return void p(xb(e),n)}}else for(const n of t)k(n)?i++:p(e,n);if(2097152&n?1===i:i>0)for(const n of t)k(n)&&f(e,n,1)}function C(e,t,n){if(1048576&n.flags||2097152&n.flags){let r=!1;for(const i of n.types)r=C(e,t,i)||r;return r}if(4194304&n.flags){const r=k(n.type);if(r&&!r.isFixed&&!Xw(e)){const i=Uw(e,t,n);i&&f(i,r.typeParameter,262144&mx(e)?16:8)}return!0}if(262144&n.flags){f(qb(e,e.pattern?2:0),n,32);const r=bp(n);return r&&C(e,t,r)||p(xb(K(E(vp(e),S_),E(Kf(e),(e=>e!==ui?e.type:_n)))),Hd(t)),!0}return!1}function w(e,t){16777216&e.flags?(p(e.checkType,t.checkType),p(e.extendsType,t.extendsType),p(Px(e),Px(t)),p(Ax(e),Ax(t))):function(e,t,n,i){const o=r;r|=i,S(e,t,n),r=o}(e,[Px(t),Ax(t)],t.flags,i?64:0)}function D(e,t){p(qd(e),qd(t)),p(Hd(e),Hd(t));const n=Ud(e),r=Ud(t);n&&r&&p(n,r)}function F(e,t){var n,r;if(4&mx(e)&&4&mx(t)&&(e.target===t.target||yC(e)&&yC(t)))h(Kh(e),Kh(t),rT(e.target));else{if(rp(e)&&rp(t)&&D(e,t),32&mx(t)&&!t.declaration.nameType&&C(e,t,qd(t)))return;if(!function(e,t){return UC(e)&&UC(t)?function(e,t){return!(8&t.target.combinedFlags)&&t.target.minLength>e.target.minLength||!(12&t.target.combinedFlags)&&(!!(12&e.target.combinedFlags)||t.target.fixedLength(12&e)==(12&o.target.elementFlags[t]))))){for(let t=0;t0){const e=Rf(t,n),o=e.length;for(let t=0;t1){const t=N(e,sN);if(t.length){const n=xb(t,2);return K(N(e,(e=>!sN(e))),[n])}}return e}(e.candidates),r=function(e){const t=xp(e);return!!t&&QL(16777216&t.flags?wp(t):t,406978556)}(e.typeParameter)||kp(e.typeParameter),i=!r&&e.topLevel&&(e.isFixed||!function(e,t){const n=vg(e);return n?!!n.type&&qw(n.type,t):qw(Tg(e),t)}(t,e.typeParameter)),o=r?A(n,nk):i?A(n,BC):n;return Sw(416&e.priority?xb(o,2):dC(o))}(n,e.signature):void 0,c=n.contraCandidates?function(e){return 416&e.priority?Fb(e.contraCandidates):we(e.contraCandidates,((e,t)=>fS(t,e)?t:e))}(n):void 0;if(s||c){const t=s&&(!c||!(131073&s.flags)&&$(n.contraCandidates,(e=>gS(s,e)))&&v(e.inferences,(e=>e!==n&&xp(e.typeParameter)!==n.typeParameter||v(e.candidates,(e=>gS(e,s))))));o=t?s:c,a=t?c:s}else if(1&e.flags)o=dn;else{const a=of(n.typeParameter);a&&(o=tS(a,(r=function(e,t){const n=e.inferences.slice(t);return Tk(E(n,(e=>e.typeParameter)),E(n,(()=>Ot)))}(e,t),i=e.nonFixingMapper,r?Lk(5,r,i):i)))}}else o=Kw(n);n.inferredType=o||lN(!!(2&e.flags));const s=xp(n.typeParameter);if(s){const t=tS(s,e.nonFixingMapper);o&&e.compareTypes(o,ld(t,o))||(n.inferredType=a&&e.compareTypes(a,ld(t,a))?a:t)}}var r,i;return n.inferredType}function lN(e){return e?wt:Ot}function _N(e){const t=[];for(let n=0;nKF(e)||GF(e)||SD(e))))}function fN(e,t,n,r){switch(e.kind){case 80:if(!_v(e)){const i=dN(e);return i!==xt?`${r?jB(r):"-1"}|${Kv(t)}|${Kv(n)}|${RB(i)}`:void 0}case 110:return`0|${r?jB(r):"-1"}|${Kv(t)}|${Kv(n)}`;case 235:case 217:return fN(e.expression,t,n,r);case 166:const i=fN(e.left,t,n,r);return i&&`${i}.${e.right.escapedText}`;case 211:case 212:const o=gN(e);if(void 0!==o){const i=fN(e.expression,t,n,r);return i&&`${i}.${o}`}if(KD(e)&&zN(e.argumentExpression)){const i=dN(e.argumentExpression);if(cE(i)||lE(i)&&!qF(i)){const o=fN(e.expression,t,n,r);return o&&`${o}.@${RB(i)}`}}break;case 206:case 207:case 262:case 218:case 219:case 174:return`${jB(e)}#${Kv(t)}`}}function mN(e,t){switch(t.kind){case 217:case 235:return mN(e,t.expression);case 226:return nb(t)&&mN(e,t.left)||cF(t)&&28===t.operatorToken.kind&&mN(e,t.right)}switch(e.kind){case 236:return 236===t.kind&&e.keywordToken===t.keywordToken&&e.name.escapedText===t.name.escapedText;case 80:case 81:return _v(e)?110===t.kind:80===t.kind&&dN(e)===dN(t)||(VF(t)||VD(t))&&Ss(dN(e))===ps(t);case 110:return 110===t.kind;case 108:return 108===t.kind;case 235:case 217:return mN(e.expression,t);case 211:case 212:const n=gN(e);if(void 0!==n){const r=kx(t)?gN(t):void 0;if(void 0!==r)return r===n&&mN(e.expression,t.expression)}if(KD(e)&&KD(t)&&zN(e.argumentExpression)&&zN(t.argumentExpression)){const n=dN(e.argumentExpression);if(n===dN(t.argumentExpression)&&(cE(n)||lE(n)&&!qF(n)))return mN(e.expression,t.expression)}break;case 166:return kx(t)&&e.right.escapedText===gN(t)&&mN(e.left,t.expression);case 226:return cF(e)&&28===e.operatorToken.kind&&mN(e.right,t)}return!1}function gN(e){if(HD(e))return e.name.escapedText;if(KD(e))return Lh((t=e).argumentExpression)?pc(t.argumentExpression.text):ob(t.argumentExpression)?function(e){const t=Ka(e,111551,!0);if(!t||!(cE(t)||8&t.flags))return;const n=t.valueDeclaration;if(void 0===n)return;const r=Gl(n);if(r){const e=hN(r);if(void 0!==e)return e}if(Eu(n)&&ca(n,e)){const e=Um(n);if(e){const t=x_(n.parent)?ul(n):Aj(e);return t&&hN(t)}if(zE(n))return Op(n.name)}}(t.argumentExpression):void 0;var t;if(VD(e)){const t=ol(e);return t?pc(t):void 0}return oD(e)?""+e.parent.parameters.indexOf(e):void 0}function hN(e){return 8192&e.flags?e.escapedName:384&e.flags?pc(""+e.value):void 0}function yN(e,t){for(;kx(e);)if(mN(e=e.expression,t))return!0;return!1}function vN(e,t){for(;gl(e);)if(mN(e=e.expression,t))return!0;return!1}function bN(e,t){if(e&&1048576&e.flags){const n=gf(e,t);if(n&&2&nx(n))return void 0===n.links.isDiscriminantProperty&&(n.links.isDiscriminantProperty=!(192&~n.links.checkFlags||cx(S_(n)))),!!n.links.isDiscriminantProperty}return!1}function xN(e,t){let n;for(const r of e)if(bN(t,r.escapedName)){if(n){n.push(r);continue}n=[r]}return n}function SN(e){const t=e.types;if(!(t.length<10||32768&mx(e)||w(t,(e=>!!(59506688&e.flags)))<10)){if(void 0===e.keyPropertyName){const n=d(t,(e=>59506688&e.flags?d(vp(e),(e=>OC(S_(e))?e.escapedName:void 0)):void 0)),r=n&&function(e,t){const n=new Map;let r=0;for(const i of e)if(61603840&i.flags){const e=Uc(i,t);if(e){if(!jC(e))return;let t=!1;FD(e,(e=>{const r=Kv(nk(e)),o=n.get(r);o?o!==Ot&&(n.set(r,Ot),t=!0):n.set(r,i)})),t||r++}}return r>=10&&2*r>=e.length?n:void 0}(t,n);e.keyPropertyName=r?n:"",e.constituentMap=r}return e.keyPropertyName.length?e.keyPropertyName:void 0}}function CN(e,t){var n;const r=null==(n=e.constituentMap)?void 0:n.get(Kv(nk(t)));return r!==Ot?r:void 0}function wN(e,t){const n=SN(e),r=n&&Uc(t,n);return r&&CN(e,r)}function NN(e,t){return mN(e,t)||yN(e,t)}function DN(e,t){if(e.arguments)for(const n of e.arguments)if(NN(t,n)||vN(n,t))return!0;return!(211!==e.expression.kind||!NN(t,e.expression.expression))}function FN(e){return e.id<=0&&(e.id=NB,NB++),e.id}function EN(e){if(256&mx(e))return!1;const t=pp(e);return!!(t.callSignatures.length||t.constructSignatures.length||t.members.get("bind")&&fS(e,Xn))}function PN(e,t){return IN(e,t)&t}function AN(e,t){return 0!==PN(e,t)}function IN(e,t){467927040&e.flags&&(e=qp(e)||Ot);const n=e.flags;if(268435460&n)return H?16317953:16776705;if(134217856&n){const t=128&n&&""===e.value;return H?t?12123649:7929345:t?12582401:16776705}if(40&n)return H?16317698:16776450;if(256&n){const t=0===e.value;return H?t?12123394:7929090:t?12582146:16776450}if(64&n)return H?16317188:16775940;if(2048&n){const t=GC(e);return H?t?12122884:7928580:t?12581636:16775940}return 16&n?H?16316168:16774920:528&n?H?e===Ht||e===Qt?12121864:7927560:e===Ht||e===Qt?12580616:16774920:524288&n?t&(H?83427327:83886079)?16&mx(e)&&LS(e)?H?83427327:83886079:EN(e)?H?7880640:16728e3:H?7888800:16736160:0:16384&n?9830144:32768&n?26607360:65536&n?42917664:12288&n?H?7925520:16772880:67108864&n?H?7888800:16736160:131072&n?0:1048576&n?we(e.types,((e,n)=>e|IN(n,t)),0):2097152&n?function(e,t){const n=QL(e,402784252);let r=0,i=134217727;for(const o of e.types)if(!(n&&524288&o.flags)){const e=IN(o,t);r|=e,i&=e}return 8256&r|134209471&i}(e,t):83886079}function ON(e,t){return OD(e,(e=>AN(e,t)))}function LN(e,t){const n=RN(ON(H&&2&e.flags?In:e,t));if(H)switch(t){case 524288:return jN(n,65536,131072,33554432,zt);case 1048576:return jN(n,131072,65536,16777216,jt);case 2097152:case 4194304:return zD(n,(e=>AN(e,262144)?function(e){return ur||(ur=Py("NonNullable",524288,void 0)||xt),ur!==xt?ny(ur,[e]):Fb([e,Nn])}(e):e))}return n}function jN(e,t,n,r,i){const o=PN(e,50528256);if(!(o&t))return e;const a=xb([Nn,i]);return zD(e,(e=>AN(e,t)?Fb([e,o&r||!AN(e,n)?Nn:a]):e))}function RN(e){return e===In?Ot:e}function MN(e,t){return t?xb([Zc(e),Aj(t)]):e}function BN(e,t){var n;const r=Rb(t);if(!oC(r))return Et;const i=aC(r);return Uc(e,i)||UN(null==(n=Nm(e,i))?void 0:n.type)||Et}function JN(e,t){return AD(e,EC)&&AC(e,t)||UN(rM(65,e,jt,void 0))||Et}function UN(e){return e&&j.noUncheckedIndexedAccess?xb([e,Mt]):e}function VN(e){return uv(rM(65,e,jt,void 0)||Et)}function WN(e){return 226===e.parent.kind&&e.parent.left===e||250===e.parent.kind&&e.parent.initializer===e}function $N(e){return BN(HN(e.parent),e.name)}function HN(e){const{parent:t}=e;switch(t.kind){case 249:return Vt;case 250:return nM(t)||Et;case 226:return function(e){return 209===e.parent.kind&&WN(e.parent)||303===e.parent.kind&&WN(e.parent.parent)?MN(HN(e),e.right):Aj(e.right)}(t);case 220:return jt;case 209:return function(e,t){return JN(HN(e),e.elements.indexOf(t))}(t,e);case 230:return function(e){return VN(HN(e.parent))}(t);case 303:return $N(t);case 304:return function(e){return MN($N(e),e.objectAssignmentInitializer)}(t)}return Et}function KN(e){return aa(e).resolvedType||Aj(e)}function GN(e){return 260===e.kind?function(e){return e.initializer?KN(e.initializer):249===e.parent.parent.kind?Vt:250===e.parent.parent.kind&&nM(e.parent.parent)||Et}(e):function(e){const t=e.parent,n=GN(t.parent);return MN(206===t.kind?BN(n,e.propertyName||e.name):e.dotDotDotToken?VN(n):JN(n,t.elements.indexOf(e)),e.initializer)}(e)}function XN(e){switch(e.kind){case 217:return XN(e.expression);case 226:switch(e.operatorToken.kind){case 64:case 76:case 77:case 78:return XN(e.left);case 28:return XN(e.right)}}return e}function QN(e){const{parent:t}=e;return 217===t.kind||226===t.kind&&64===t.operatorToken.kind&&t.left===e||226===t.kind&&28===t.operatorToken.kind&&t.right===e?QN(t):e}function YN(e){return 296===e.kind?nk(Aj(e.expression)):_n}function ZN(e){const t=aa(e);if(!t.switchTypes){t.switchTypes=[];for(const n of e.caseBlock.clauses)t.switchTypes.push(YN(n))}return t.switchTypes}function tD(e){if($(e.caseBlock.clauses,(e=>296===e.kind&&!Lu(e.expression))))return;const t=[];for(const n of e.caseBlock.clauses){const e=296===n.kind?n.expression.text:void 0;t.push(e&&!T(t,e)?e:void 0)}return t}function TD(e,t){return!!(e===t||131072&e.flags||1048576&t.flags&&function(e,t){if(1048576&e.flags){for(const n of e.types)if(!Gv(t.types,n))return!1;return!0}return!!(1056&e.flags&&su(e)===t)||Gv(t.types,e)}(e,t))}function FD(e,t){return 1048576&e.flags?d(e.types,t):t(e)}function ED(e,t){return 1048576&e.flags?$(e.types,t):t(e)}function AD(e,t){return 1048576&e.flags?v(e.types,t):t(e)}function OD(e,t){if(1048576&e.flags){const n=e.types,r=N(n,t);if(r===n)return e;const i=e.origin;let o;if(i&&1048576&i.flags){const e=i.types,a=N(e,(e=>!!(1048576&e.flags)||t(e)));if(e.length-a.length==n.length-r.length){if(1===a.length)return a[0];o=bb(1048576,a)}}return Tb(r,16809984&e.objectFlags,void 0,void 0,o)}return 131072&e.flags||t(e)?e:_n}function RD(e,t){return OD(e,(e=>e!==t))}function JD(e){return 1048576&e.flags?e.types.length:1}function zD(e,t,n){if(131072&e.flags)return e;if(!(1048576&e.flags))return t(e);const r=e.origin,i=r&&1048576&r.flags?r.types:e.types;let o,a=!1;for(const e of i){const r=1048576&e.flags?zD(e,t,n):t(e);a||(a=e!==r),r&&(o?o.push(r):o=[r])}return a?o&&xb(o,n?0:1):e}function YD(e,t,n,r){return 1048576&e.flags&&n?xb(E(e.types,t),1,n,r):zD(e,t)}function nF(e,t){return OD(e,(e=>!!(e.flags&t)))}function iF(e,t){return QL(e,134217804)&&QL(t,402655616)?zD(e,(e=>4&e.flags?nF(t,402653316):tx(e)&&!QL(t,402653188)?nF(t,128):8&e.flags?nF(t,264):64&e.flags?nF(t,2112):e)):e}function sF(e){return 0===e.flags}function lF(e){return 0===e.flags?e.type:e}function _F(e,t){return t?{flags:0,type:131072&e.flags?dn:e}:e}function uF(e){return ht[e.id]||(ht[e.id]=function(e){const t=Is(256);return t.elementType=e,t}(e))}function gF(e,t){const n=fw(RC(Oj(t)));return TD(n,e.elementType)?e:uF(xb([e.elementType,n]))}function bF(e){return 256&mx(e)?(t=e).finalArrayType||(t.finalArrayType=131072&(n=t.elementType).flags?lr:uv(1048576&n.flags?xb(n.types,2):n)):e;var t,n}function xF(e){return 256&mx(e)?e.elementType:_n}function kF(e){const t=QN(e),n=t.parent,r=HD(n)&&("length"===n.name.escapedText||213===n.parent.kind&&zN(n.name)&&Gh(n.name)),i=212===n.kind&&n.expression===t&&226===n.parent.kind&&64===n.parent.operatorToken.kind&&n.parent.left===n&&!Xg(n.parent)&&YL(Aj(n.argumentExpression),296);return r||i}function TF(e,t){if(8752&(e=Ma(e)).flags)return S_(e);if(7&e.flags){if(262144&nx(e)){const t=e.links.syntheticOrigin;if(t&&TF(t))return S_(e)}const r=e.valueDeclaration;if(r){if((VF(n=r)||cD(n)||sD(n)||oD(n))&&(pv(n)||Fm(n)&&Fu(n)&&n.initializer&&jT(n.initializer)&&mv(n.initializer)))return S_(e);if(VF(r)&&250===r.parent.parent.kind){const e=r.parent.parent,t=NF(e.expression,void 0);if(t)return rM(e.awaitModifier?15:13,t,jt,void 0)}t&&iT(t,jp(r,la._0_needs_an_explicit_type_annotation,ic(e)))}}var n}function NF(e,t){if(!(67108864&e.flags))switch(e.kind){case 80:return TF(Ss(dN(e)),t);case 110:return function(e){const t=Zf(e,!1,!1);if(n_(t)){const e=ig(t);if(e.thisParameter)return TF(e.thisParameter)}if(__(t.parent)){const e=ps(t.parent);return Nv(t)?S_(e):fu(e).thisType}}(e);case 108:return xP(e);case 211:{const n=NF(e.expression,t);if(n){const r=e.name;let i;if(qN(r)){if(!n.symbol)return;i=Cf(n,Uh(n.symbol,r.escapedText))}else i=Cf(n,r.escapedText);return i&&TF(i,t)}return}case 217:return NF(e.expression,t)}}function EF(e){const t=aa(e);let n=t.effectsSignature;if(void 0===n){let r;cF(e)?r=nj(cI(e.right)):244===e.parent.kind?r=NF(e.expression,void 0):108!==e.expression.kind&&(r=gl(e)?fI(sw(Lj(e.expression),e.expression),e.expression):cI(e.expression));const i=Rf(r&&pf(r)||Ot,0),o=1!==i.length||i[0].typeParameters?$(i,PF)?zO(e):void 0:i[0];n=t.effectsSignature=o&&PF(o)?o:ci}return n===ci?void 0:n}function PF(e){return!!(vg(e)||e.declaration&&131072&(Fg(e.declaration)||Ot).flags)}function LF(e){const t=RF(e,!1);return ti=e,ni=t,t}function jF(e){const t=oh(e,!0);return 97===t.kind||226===t.kind&&(56===t.operatorToken.kind&&(jF(t.left)||jF(t.right))||57===t.operatorToken.kind&&jF(t.left)&&jF(t.right))}function RF(e,t){for(;;){if(e===ti)return ni;const n=e.flags;if(4096&n){if(!t){const t=FN(e),n=eo[t];return void 0!==n?n:eo[t]=RF(e,!0)}t=!1}if(368&n)e=e.antecedent;else if(512&n){const t=EF(e.node);if(t){const n=vg(t);if(n&&3===n.kind&&!n.type){const t=e.node.arguments[n.parameterIndex];if(t&&jF(t))return!1}if(131072&Tg(t).flags)return!1}e=e.antecedent}else{if(4&n)return $(e.antecedent,(e=>RF(e,!1)));if(8&n){const t=e.antecedent;if(void 0===t||0===t.length)return!1;e=t[0]}else{if(!(128&n)){if(1024&n){ti=void 0;const t=e.node.target,n=t.antecedent;t.antecedent=e.node.antecedents;const r=RF(e.antecedent,!1);return t.antecedent=n,r}return!(1&n)}{const t=e.node;if(t.clauseStart===t.clauseEnd&&ML(t.switchStatement))return!1;e=e.antecedent}}}}}function MF(e,t){for(;;){const n=e.flags;if(4096&n){if(!t){const t=FN(e),n=to[t];return void 0!==n?n:to[t]=MF(e,!0)}t=!1}if(496&n)e=e.antecedent;else if(512&n){if(108===e.node.expression.kind)return!0;e=e.antecedent}else{if(4&n)return v(e.antecedent,(e=>MF(e,!1)));if(!(8&n)){if(1024&n){const t=e.node.target,n=t.antecedent;t.antecedent=e.node.antecedents;const r=MF(e.antecedent,!1);return t.antecedent=n,r}return!!(1&n)}e=e.antecedent[0]}}}function BF(e){switch(e.kind){case 110:return!0;case 80:if(!_v(e)){const t=dN(e);return cE(t)||lE(t)&&!qF(t)||!!t.valueDeclaration&&eF(t.valueDeclaration)}break;case 211:case 212:return BF(e.expression)&&WL(aa(e).resolvedSymbol||xt);case 206:case 207:const t=Qh(e.parent);return oD(t)||LT(t)?!ZF(t):VF(t)&&uz(t)}return!1}function JF(e,t,n=t,r,i=(t=>null==(t=tt(e,Ig))?void 0:t.flowNode)()){let o,a=!1,s=0;if(Ti)return Et;if(!i)return t;Ci++;const c=Si,l=lF(d(i));Si=c;const _=256&mx(l)&&kF(e)?lr:bF(l);return _===fn||e.parent&&235===e.parent.kind&&!(131072&_.flags)&&131072&ON(_,2097152).flags?t:_;function u(){return a?o:(a=!0,o=fN(e,t,n,r))}function d(i){var o;if(2e3===s)return null==(o=Hn)||o.instant(Hn.Phase.CheckTypes,"getTypeAtFlowNode_DepthLimit",{flowId:i.id}),Ti=!0,function(e){const t=_c(e,c_),n=hd(e),r=Hp(n,t.statements.pos);uo.add(Kx(n,r.start,r.length,la.The_containing_function_or_module_body_is_too_large_for_control_flow_analysis))}(e),Et;let a;for(s++;;){const o=i.flags;if(4096&o){for(let e=c;efunction(e,t){if(!(1048576&e.flags))return gS(e,t);for(const n of e.types)if(gS(n,t))return!0;return!1}(t,e))),r=512&t.flags&&rk(t)?zD(n,ek):n;return gS(t,r)?r:e}(e,t))}(e,p(n)):e}if(yN(e,r)){if(!LF(n))return fn;if(VF(r)&&(Fm(r)||uz(r))){const e=Vm(r);if(e&&(218===e.kind||219===e.kind))return d(n.antecedent)}return t}if(VF(r)&&249===r.parent.parent.kind&&(mN(e,r.parent.parent.expression)||vN(r.parent.parent.expression,e)))return _I(bF(lF(d(n.antecedent))))}function m(e,t){const n=oh(t,!0);if(97===n.kind)return fn;if(226===n.kind){if(56===n.operatorToken.kind)return m(m(e,n.left),n.right);if(57===n.operatorToken.kind)return xb([m(e,n.left),m(e,n.right)])}return Q(e,n,!0)}function g(e){const t=EF(e.node);if(t){const n=vg(t);if(n&&(2===n.kind||3===n.kind)){const t=d(e.antecedent),r=bF(lF(t)),i=n.type?X(r,n,e.node,!0):3===n.kind&&n.parameterIndex>=0&&n.parameterIndex297===e.kind));if(n===r||o>=n&&oPN(e,t)===t))}return xb(E(i.slice(n,r),(t=>t?U(e,t):_n)))}(i,t.node);else if(112===n.kind)i=function(e,{switchStatement:t,clauseStart:n,clauseEnd:r}){const i=k(t.caseBlock.clauses,(e=>297===e.kind)),o=n===r||i>=n&&i296===t.kind?Q(e,t.expression,!0):_n)))}(i,t.node);else{H&&(vN(n,e)?i=z(i,t.node,(e=>!(163840&e.flags))):221===n.kind&&vN(n.expression,e)&&(i=z(i,t.node,(e=>!(131072&e.flags||128&e.flags&&"undefined"===e.value)))));const r=D(n,i);r&&(i=function(e,t,n){if(n.clauseStartCN(e,t)||Ot)));if(t!==Ot)return t}return F(e,t,(e=>q(e,n)))}(i,r,t.node))}return _F(i,sF(r))}function S(e){const r=[];let i,o=!1,a=!1;for(const s of e.antecedent){if(!i&&128&s.flags&&s.node.clauseStart===s.node.clauseEnd){i=s;continue}const e=d(s),c=lF(e);if(c===t&&t===n)return c;ce(r,c),TD(c,n)||(o=!0),sF(e)&&(a=!0)}if(i){const e=d(i),s=lF(e);if(!(131072&s.flags||T(r,s)||ML(i.node.switchStatement))){if(s===t&&t===n)return s;r.push(s),TD(s,n)||(o=!0),sF(e)&&(a=!0)}}return _F(N(r,o?2:1),a)}function w(e){const r=FN(e),i=Ki[r]||(Ki[r]=new Map),o=u();if(!o)return t;const a=i.get(o);if(a)return a;for(let t=xi;t{const t=Vc(e,r)||Ot;return!(131072&t.flags)&&!(131072&s.flags)&&vS(s,t)}))}function P(e,t,n,r,i){if((37===n||38===n)&&1048576&e.flags){const o=SN(e);if(o&&o===gN(t)){const t=CN(e,Aj(r));if(t)return n===(i?37:38)?t:OC(Uc(t,o)||Ot)?RD(e,t):e}}return F(e,t,(e=>M(e,n,r,i)))}function I(t,n,r){if(mN(e,n))return LN(t,r?4194304:8388608);H&&r&&vN(n,e)&&(t=LN(t,2097152));const i=D(n,t);return i?F(t,i,(e=>ON(e,r?4194304:8388608))):t}function O(e,t,n){const r=Cf(e,t);return r?!!(16777216&r.flags||48&nx(r))||n:!!Nm(e,t)||!n}function L(e,t,n,r,i){return Q(e,t,i=i!==(112===n.kind)!=(38!==r&&36!==r))}function j(t,n,r){switch(n.operatorToken.kind){case 64:case 76:case 77:case 78:return I(Q(t,n.right,r),n.left,r);case 35:case 36:case 37:case 38:const i=n.operatorToken.kind,o=XN(n.left),a=XN(n.right);if(221===o.kind&&Lu(a))return B(t,o,i,a,r);if(221===a.kind&&Lu(o))return B(t,a,i,o,r);if(mN(e,o))return M(t,i,a,r);if(mN(e,a))return M(t,i,o,r);H&&(vN(o,e)?t=R(t,i,a,r):vN(a,e)&&(t=R(t,i,o,r)));const s=D(o,t);if(s)return P(t,s,i,a,r);const c=D(a,t);if(c)return P(t,c,i,o,r);if(W(o))return $(t,i,a,r);if(W(a))return $(t,i,o,r);if(o_(a)&&!kx(o))return L(t,o,a,i,r);if(o_(o)&&!kx(a))return L(t,a,o,i,r);break;case 104:return function(t,n,r){const i=XN(n.left);if(!mN(e,i))return r&&H&&vN(i,e)?LN(t,2097152):t;const o=Aj(n.right);if(!hS(o,Gn))return t;const a=EF(n),s=a&&vg(a);if(s&&1===s.kind&&0===s.parameterIndex)return G(t,s.type,r,!0);if(!hS(o,Xn))return t;const c=zD(o,K);return(!Wc(t)||c!==Gn&&c!==Xn)&&(r||524288&c.flags&&!jS(c))?G(t,c,r,!0):t}(t,n,r);case 103:if(qN(n.left))return function(t,n,r){const i=XN(n.right);if(!mN(e,i))return t;un.assertNode(n.left,qN);const o=bI(n.left);if(void 0===o)return t;const a=o.parent;return G(t,Dv(un.checkDefined(o.valueDeclaration,"should always have a declaration"))?S_(a):fu(a),r,!0)}(t,n,r);const l=XN(n.right);if(lw(t)&&kx(e)&&mN(e.expression,l)){const i=Aj(n.left);if(oC(i)&&gN(e)===aC(i))return ON(t,r?524288:65536)}if(mN(e,l)){const e=Aj(n.left);if(oC(e))return function(e,t,n){const r=aC(t);if(ED(e,(e=>O(e,r,!0))))return OD(e,(e=>O(e,r,n)));if(n){const n=($r||($r=Ey("Record",2,!0)||xt),$r===xt?void 0:$r);if(n)return Fb([e,ny(n,[t,Ot])])}return e}(t,e,r)}break;case 28:return Q(t,n.right,r);case 56:return r?Q(Q(t,n.left,!0),n.right,!0):xb([Q(t,n.left,!1),Q(t,n.right,!1)]);case 57:return r?xb([Q(t,n.left,!0),Q(t,n.right,!0)]):Q(Q(t,n.left,!1),n.right,!1)}return t}function R(e,t,n,r){const i=35===t||37===t,o=35===t||36===t?98304:32768,a=Aj(n);return i!==r&&AD(a,(e=>!!(e.flags&o)))||i===r&&AD(a,(e=>!(e.flags&(3|o))))?LN(e,2097152):e}function M(e,t,n,r){if(1&e.flags)return e;36!==t&&38!==t||(r=!r);const i=Aj(n),o=35===t||36===t;if(98304&i.flags)return H?LN(e,o?r?262144:2097152:65536&i.flags?r?131072:1048576:r?65536:524288):e;if(r){if(!o&&(2&e.flags||ED(e,jS))){if(469893116&i.flags||jS(i))return i;if(524288&i.flags)return mn}return iF(OD(e,(e=>{return vS(e,i)||o&&(t=i,!!(524&e.flags)&&!!(28&t.flags));var t})),i)}return OC(i)?OD(e,(e=>!(LC(e)&&vS(e,i)))):e}function B(t,n,r,i,o){36!==r&&38!==r||(o=!o);const a=XN(n.expression);if(!mN(e,a)){H&&vN(a,e)&&o===("undefined"!==i.text)&&(t=LN(t,2097152));const n=D(a,t);return n?F(t,n,(e=>J(e,i,o))):t}return J(t,i,o)}function J(e,t,n){return n?U(e,t.text):LN(e,FB.get(t.text)||32768)}function z(e,{switchStatement:t,clauseStart:n,clauseEnd:r},i){return n!==r&&v(ZN(t).slice(n,r),i)?ON(e,2097152):e}function q(e,{switchStatement:t,clauseStart:n,clauseEnd:r}){const i=ZN(t);if(!i.length)return e;const o=i.slice(n,r),a=n===r||T(o,_n);if(2&e.flags&&!a){let t;for(let n=0;nvS(s,e))),s);if(!a)return c;const l=OD(e,(e=>!(LC(e)&&T(i,32768&e.flags?jt:nk(function(e){return 2097152&e.flags&&b(e.types,OC)||e}(e))))));return 131072&c.flags?l:xb([c,l])}function U(e,t){switch(t){case"string":return V(e,Vt,1);case"number":return V(e,Wt,2);case"bigint":return V(e,$t,4);case"boolean":return V(e,sn,8);case"symbol":return V(e,cn,16);case"object":return 1&e.flags?e:xb([V(e,mn,32),V(e,zt,131072)]);case"function":return 1&e.flags?e:V(e,Xn,64);case"undefined":return V(e,jt,65536)}return V(e,mn,128)}function V(e,t,n){return zD(e,(e=>zS(e,t,go)?AN(e,n)?e:_n:fS(t,e)?t:AN(e,n)?Fb([e,t]):_n))}function W(t){return(HD(t)&&"constructor"===mc(t.name)||KD(t)&&Lu(t.argumentExpression)&&"constructor"===t.argumentExpression.text)&&mN(e,t.expression)}function $(e,t,n,r){if(r?35!==t&&37!==t:36!==t&&38!==t)return e;const i=Aj(n);if(!bJ(i)&&!J_(i))return e;const o=Cf(i,"prototype");if(!o)return e;const a=S_(o),s=Wc(a)?void 0:a;return s&&s!==Gn&&s!==Xn?Wc(e)?s:OD(e,(e=>{return n=s,524288&(t=e).flags&&1&mx(t)||524288&n.flags&&1&mx(n)?t.symbol===n.symbol:fS(t,n);var t,n})):e}function K(e){const t=Uc(e,"prototype");if(t&&!Wc(t))return t;const n=Rf(e,1);return n.length?xb(E(n,(e=>Tg(Hg(e))))):Nn}function G(e,t,n,r){const i=1048576&e.flags?`N${Kv(e)},${Kv(t)},${(n?1:0)|(r?2:0)}`:void 0;return No(i)??Fo(i,function(e,t,n,r){if(!n){if(e===t)return _n;if(r)return OD(e,(e=>!hS(e,t)));const n=G(e,t,!0,!1);return OD(e,(e=>!TD(e,n)))}if(3&e.flags)return t;if(e===t)return t;const i=r?hS:fS,o=1048576&e.flags?SN(e):void 0,a=zD(t,(t=>{const n=o&&Uc(t,o),a=zD(n&&CN(e,n)||e,r?e=>hS(e,t)?e:hS(t,e)?t:_n:e=>mS(e,t)?e:mS(t,e)?t:fS(e,t)?e:fS(t,e)?t:_n);return 131072&a.flags?zD(e,(e=>QL(e,465829888)&&i(t,qp(e)||Ot)?Fb([e,t]):_n)):a}));return 131072&a.flags?fS(t,e)?t:gS(e,t)?e:gS(t,e)?t:Fb([e,t]):a}(e,t,n,r))}function X(t,n,r,i){if(n.type&&(!Wc(t)||n.type!==Gn&&n.type!==Xn)){const o=function(e,t){if(1===e.kind||3===e.kind)return t.arguments[e.parameterIndex];const n=oh(t.expression);return kx(n)?oh(n.expression):void 0}(n,r);if(o){if(mN(e,o))return G(t,n.type,i,!1);H&&vN(o,e)&&(i&&!AN(n.type,65536)||!i&&AD(n.type,lI))&&(t=LN(t,2097152));const r=D(o,t);if(r)return F(t,r,(e=>G(e,n.type,i,!1)))}}return t}function Q(t,n,r){if(yl(n)||cF(n.parent)&&(61===n.parent.operatorToken.kind||78===n.parent.operatorToken.kind)&&n.parent.left===n)return function(t,n,r){if(mN(e,n))return LN(t,r?2097152:262144);const i=D(n,t);return i?F(t,i,(e=>ON(e,r?2097152:262144))):t}(t,n,r);switch(n.kind){case 80:if(!mN(e,n)&&C<5){const i=dN(n);if(cE(i)){const n=i.valueDeclaration;if(n&&VF(n)&&!n.type&&n.initializer&&BF(e)){C++;const e=Q(t,n.initializer,r);return C--,e}}}case 110:case 108:case 211:case 212:return I(t,n,r);case 213:return function(t,n,r){if(DN(n,e)){const e=r||!ml(n)?EF(n):void 0,i=e&&vg(e);if(i&&(0===i.kind||1===i.kind))return X(t,i,n,r)}if(lw(t)&&kx(e)&&HD(n.expression)){const i=n.expression;if(mN(e.expression,XN(i.expression))&&zN(i.name)&&"hasOwnProperty"===i.name.escapedText&&1===n.arguments.length){const i=n.arguments[0];if(Lu(i)&&gN(e)===pc(i.text))return ON(t,r?524288:65536)}}return t}(t,n,r);case 217:case 235:return Q(t,n.expression,r);case 226:return j(t,n,r);case 224:if(54===n.operator)return Q(t,n.operand,!r)}return t}}function zF(e){return _c(e.parent,(e=>n_(e)&&!im(e)||268===e.kind||307===e.kind||172===e.kind))}function qF(e){return!UF(e,void 0)}function UF(e,t){const n=_c(e.valueDeclaration,oE);if(!n)return!1;const r=aa(n);return 131072&r.flags||(r.flags|=131072,_c(n.parent,(e=>oE(e)&&!!(131072&aa(e).flags)))||aE(n)),!e.lastAssignmentPos||t&&Math.abs(e.lastAssignmentPos)232!==e.kind&&iE(e.name)))}function oE(e){return i_(e)||qE(e)}function aE(e){switch(e.kind){case 80:const t=Gg(e);if(0!==t){const n=dN(e),r=1===t||void 0!==n.lastAssignmentPos&&n.lastAssignmentPos<0;if(lE(n)){if(void 0===n.lastAssignmentPos||Math.abs(n.lastAssignmentPos)!==Number.MAX_VALUE){const t=_c(e,oE),r=_c(n.valueDeclaration,oE);n.lastAssignmentPos=t===r?function(e,t){let n=e.pos;for(;e&&e.pos>t.pos;){switch(e.kind){case 243:case 244:case 245:case 246:case 247:case 248:case 249:case 250:case 254:case 255:case 258:case 263:n=e.end}e=e.parent}return n}(e,n.valueDeclaration):Number.MAX_VALUE}r&&n.lastAssignmentPos>0&&(n.lastAssignmentPos*=-1)}}return;case 281:const n=e.parent.parent,r=e.propertyName||e.name;if(!e.isTypeOnly&&!n.isTypeOnly&&!n.moduleSpecifier&&11!==r.kind){const e=Ka(r,111551,!0,!0);if(e&&lE(e)){const t=void 0!==e.lastAssignmentPos&&e.lastAssignmentPos<0?-1:1;e.lastAssignmentPos=t*Number.MAX_VALUE}}return;case 264:case 265:case 266:return}v_(e)||PI(e,aE)}function cE(e){return 3&e.flags&&!!(6&ZA(e))}function lE(e){const t=e.valueDeclaration&&Qh(e.valueDeclaration);return!!t&&(oD(t)||VF(t)&&(RE(t.parent)||uE(t)))}function uE(e){return!!(1&e.parent.flags)&&!(32&rc(e)||243===e.parent.parent.kind&&Xp(e.parent.parent.parent))}function hE(e){return 2097152&e.flags?$(e.types,hE):!!(465829888&e.flags&&1146880&Wp(e).flags)}function yE(e){return 2097152&e.flags?$(e.types,yE):!(!(465829888&e.flags)||QL(Wp(e),98304))}function vE(e,t,n){dy(e)&&(e=e.baseType);const r=!(n&&2&n)&&ED(e,hE)&&(function(e,t){const n=t.parent;return 211===n.kind||166===n.kind||213===n.kind&&n.expression===t||214===n.kind&&n.expression===t||212===n.kind&&n.expression===t&&!(ED(e,yE)&&_x(Aj(n.argumentExpression)))}(e,t)||function(e,t){const n=(zN(e)||HD(e)||KD(e))&&!((TE(e.parent)||SE(e.parent))&&e.parent.tagName===e)&&sA(e,t&&32&t?8:void 0);return n&&!cx(n)}(t,n));return r?zD(e,Wp):e}function bE(e){return!!_c(e,(e=>{const t=e.parent;return void 0===t?"quit":pE(t)?t.expression===e&&ob(e):!!gE(t)&&(t.name===e||t.propertyName===e)}))}function CE(e,t,n,r){if(Me&&(!(33554432&e.flags)||sD(e)||cD(e)))switch(t){case 1:return DE(e);case 2:return AE(e,n,r);case 3:return OE(e);case 4:return LE(e);case 5:return UE(e);case 6:return HE(e);case 7:return KE(e);case 8:return GE(e);case 0:if(zN(e)&&(vm(e)||BE(e.parent)||tE(e.parent)&&e.parent.moduleReference===e)&&uP(e)){if(A_(e.parent)&&(HD(e.parent)?e.parent.expression:e.parent.left)!==e)return;return void DE(e)}if(A_(e)){let t=e;for(;A_(t);){if(Tf(t))return;t=t.parent}return AE(e)}if(pE(e))return OE(e);if(vu(e)||NE(e))return LE(e);if(tE(e))return wm(e)||nB(e)?HE(e):void 0;if(gE(e))return KE(e);if((i_(e)||lD(e))&&UE(e),!j.emitDecoratorMetadata)return;if(!(iI(e)&&Ov(e)&&e.modifiers&&um(J,e,e.parent,e.parent.parent)))return;return GE(e);default:un.assertNever(t,`Unhandled reference hint: ${t}`)}}function DE(e){const t=dN(e);t&&t!==Le&&t!==xt&&!_v(e)&&XE(t,e)}function AE(e,t,n){const r=HD(e)?e.expression:e.left;if(cv(r)||!zN(r))return;const i=dN(r);if(!i||i===xt)return;if(xk(j)||Dk(j)&&bE(e))return void XE(i,e);const o=n||fj(r);if(Wc(o)||o===dn)return void XE(i,e);let a=t;if(!a&&!n){const t=HD(e)?e.name:e.right,n=qN(t)&&vI(t.escapedText,t),r=pf(0!==Gg(e)||yI(e)?Sw(o):o);a=qN(t)?n&&xI(r,n)||void 0:Cf(r,t.escapedText)}a&&(_J(a)||8&a.flags&&306===e.parent.kind)||XE(i,e)}function OE(e){if(zN(e.expression)){const t=e.expression,n=Ss(Ka(t,-1,!0,!0,e));n&&XE(n,t)}}function LE(e){if(!MA(e)){const t=uo&&2===j.jsx?la.This_JSX_tag_requires_0_to_be_in_scope_but_it_could_not_be_found:void 0,n=Eo(e),r=vu(e)?e.tagName:e;let i;if(NE(e)&&"null"===n||(i=Ue(r,n,1===j.jsx?111167:111551,t,!0)),i&&(i.isReferenced=-1,Me&&2097152&i.flags&&!Wa(i)&&QE(i)),NE(e)){const n=Ao(hd(e));n&&Ue(r,n,1===j.jsx?111167:111551,t,!0)}}}function UE(e){if(R<2&&2&Ih(e)){rP((t=mv(e))&&lm(t),!1)}var t}function HE(e){wv(e,32)&&eP(e)}function KE(e){if(e.parent.parent.moduleSpecifier||e.isTypeOnly||e.parent.parent.isTypeOnly);else{const t=e.propertyName||e.name;if(11===t.kind)return;const n=Ue(t,t.escapedText,2998271,void 0,!0);if(n&&(n===De||n===Fe||n.declarations&&Xp(qc(n.declarations[0]))));else{const r=n&&(2097152&n.flags?Ba(n):n);(!r||111551&za(r))&&(eP(e),DE(t))}}}function GE(e){if(j.emitDecoratorMetadata){const t=b(e.modifiers,aD);if(!t)return;switch(NJ(t,16),e.kind){case 263:const t=rv(e);if(t)for(const e of t.parameters)iP(xR(e));break;case 177:case 178:const n=177===e.kind?178:177,r=Wu(ps(e),n);iP(Xl(e)||r&&Xl(r));break;case 174:for(const t of e.parameters)iP(xR(t));iP(mv(e));break;case 172:iP(pv(e));break;case 169:iP(xR(e));const i=e.parent;for(const e of i.parameters)iP(xR(e));iP(mv(i))}}}function XE(e,t){if(Me&&Ra(e,111551)&&!lv(t)){const n=Ba(e);1160127&za(e,!0)&&(xk(j)||Dk(j)&&bE(t)||!_J(Ss(n)))&&QE(e)}}function QE(e){un.assert(Me);const t=oa(e);if(!t.referenced){t.referenced=!0;const n=ba(e);if(!n)return un.fail();wm(n)&&111551&za(Ma(e))&&DE(ab(n.moduleReference))}}function eP(e){const t=ps(e),n=Ba(t);n&&(n===xt||111551&za(t,!0)&&!_J(n))&&QE(t)}function rP(e,t){if(!e)return;const n=ab(e),r=2097152|(80===e.kind?788968:1920),i=Ue(n,n.escapedText,r,void 0,!0);if(i&&2097152&i.flags)if(Me&&Cs(i)&&!_J(Ba(i))&&!Wa(i))QE(i);else if(t&&xk(j)&&yk(j)>=5&&!Cs(i)&&!$(i.declarations,Jl)){const t=jo(e,la.A_type_referenced_in_a_decorated_signature_must_be_imported_with_import_type_or_a_namespace_import_when_isolatedModules_and_emitDecoratorMetadata_are_enabled),r=b(i.declarations||l,xa);r&&iT(t,jp(r,la._0_was_imported_here,mc(n)))}}function iP(e){const t=vR(e);t&&Zl(t)&&rP(t,!0)}function cP(e,t){if(_v(e))return;if(t===Le){if(wI(e))return void jo(e,la.arguments_cannot_be_referenced_in_property_initializers);let t=Hf(e);if(t)for(R<2&&(219===t.kind?jo(e,la.The_arguments_object_cannot_be_referenced_in_an_arrow_function_in_ES5_Consider_using_a_standard_function_expression):wv(t,1024)&&jo(e,la.The_arguments_object_cannot_be_referenced_in_an_async_function_or_method_in_ES5_Consider_using_a_standard_function_or_method)),aa(t).flags|=512;t&&tF(t);)t=Hf(t),t&&(aa(t).flags|=512);return}const n=Ss(t),r=oB(n,e);qo(r)&&Qb(e,r)&&r.declarations&&Vo(e,r.declarations,e.escapedText);const i=n.valueDeclaration;if(i&&32&n.flags&&__(i)&&i.name!==e){let t=Zf(e,!1,!1);for(;307!==t.kind&&t.parent!==i;)t=Zf(t,!1,!1);307!==t.kind&&(aa(i).flags|=262144,aa(t).flags|=262144,aa(e).flags|=536870912)}!function(e,t){if(R>=2||!(34&t.flags)||!t.valueDeclaration||qE(t.valueDeclaration)||299===t.valueDeclaration.parent.kind)return;const n=Dp(t.valueDeclaration),r=function(e,t){return!!_c(e,(e=>e===t?"quit":n_(e)||e.parent&&cD(e.parent)&&!Dv(e.parent)&&e.parent.initializer===e))}(e,n),i=dP(n);if(i){if(r){let r=!0;if(AF(n)){const i=Sh(t.valueDeclaration,261);if(i&&i.parent===n){const i=function(e,t){return _c(e,(e=>e===t?"quit":e===t.initializer||e===t.condition||e===t.incrementor||e===t.statement))}(e.parent,n);if(i){const e=aa(i);e.flags|=8192,ce(e.capturedBlockScopeBindings||(e.capturedBlockScopeBindings=[]),t),i===n.initializer&&(r=!1)}}}r&&(aa(i).flags|=4096)}if(AF(n)){const r=Sh(t.valueDeclaration,261);r&&r.parent===n&&function(e,t){let n=e;for(;217===n.parent.kind;)n=n.parent;let r=!1;if(Xg(n))r=!0;else if(224===n.parent.kind||225===n.parent.kind){const e=n.parent;r=46===e.operator||47===e.operator}return!!r&&!!_c(n,(e=>e===t?"quit":e===t.statement))}(e,n)&&(aa(t.valueDeclaration).flags|=65536)}aa(t.valueDeclaration).flags|=32768}r&&(aa(t.valueDeclaration).flags|=16384)}(e,t)}function lP(e,t){if(_v(e))return yP(e);const n=dN(e);if(n===xt)return Et;if(cP(e,n),n===Le)return wI(e)?Et:S_(n);uP(e)&&CE(e,1);const r=Ss(n);let i=r.valueDeclaration;const o=i;if(i&&208===i.kind&&T(Pi,i.parent)&&_c(e,(e=>e===i.parent)))return At;let a=function(e,t){var n;const r=S_(e),i=e.valueDeclaration;if(i){if(VD(i)&&!i.initializer&&!i.dotDotDotToken&&i.parent.elements.length>=2){const e=i.parent.parent,n=Qh(e);if(260===n.kind&&6&_z(n)||169===n.kind){const r=aa(e);if(!(4194304&r.flags)){r.flags|=4194304;const o=Kc(e,0),a=o&&zD(o,Wp);if(r.flags&=-4194305,a&&1048576&a.flags&&(169!==n.kind||!ZF(n))){const e=JF(i.parent,a,a,void 0,t.flowNode);return 131072&e.flags?_n:pl(i,e,!0)}}}}if(oD(i)&&!i.type&&!i.initializer&&!i.dotDotDotToken){const e=i.parent;if(e.parameters.length>=2&&cS(e)){const r=vA(e);if(r&&1===r.parameters.length&&UB(r)){const o=ff(tS(S_(r.parameters[0]),null==(n=fA(e))?void 0:n.nonFixingMapper));if(1048576&o.flags&&AD(o,UC)&&!$(e.parameters,ZF))return vx(JF(e,o,o,void 0,t.flowNode),ok(e.parameters.indexOf(i)-(av(e)?1:0)))}}}}return r}(r,e);const s=Gg(e);if(s){if(!(3&r.flags||Fm(e)&&512&r.flags))return jo(e,384&r.flags?la.Cannot_assign_to_0_because_it_is_an_enum:32&r.flags?la.Cannot_assign_to_0_because_it_is_a_class:1536&r.flags?la.Cannot_assign_to_0_because_it_is_a_namespace:16&r.flags?la.Cannot_assign_to_0_because_it_is_a_function:2097152&r.flags?la.Cannot_assign_to_0_because_it_is_an_import:la.Cannot_assign_to_0_because_it_is_not_a_variable,ic(n)),Et;if(WL(r))return 3&r.flags?jo(e,la.Cannot_assign_to_0_because_it_is_a_constant,ic(n)):jo(e,la.Cannot_assign_to_0_because_it_is_a_read_only_property,ic(n)),Et}const c=2097152&r.flags;if(3&r.flags){if(1===s)return Qg(e)?RC(a):a}else{if(!c)return a;i=ba(n)}if(!i)return a;a=vE(a,e,t);const l=169===Qh(i).kind,_=zF(i);let u=zF(e);const d=u!==_,p=e.parent&&e.parent.parent&&JE(e.parent)&&WN(e.parent.parent),f=134217728&n.flags,m=a===Nt||a===lr,g=m&&235===e.parent.kind;for(;u!==_&&(218===u.kind||219===u.kind||Bf(u))&&(cE(r)&&a!==lr||lE(r)&&UF(r,e));)u=zF(u);const h=o&&VF(o)&&!o.initializer&&!o.exclamationToken&&uE(o)&&!function(e){return(void 0!==e.lastAssignmentPos||qF(e)&&void 0!==e.lastAssignmentPos)&&e.lastAssignmentPos<0}(n),y=l||c||d&&!h||p||f||function(e,t){if(VD(t)){const n=_c(e,VD);return n&&Qh(n)===Qh(t)}}(e,i)||a!==Nt&&a!==lr&&(!H||!!(16387&a.flags)||lv(e)||pN(e)||281===e.parent.kind)||235===e.parent.kind||260===i.kind&&i.exclamationToken||33554432&i.flags,v=g?jt:y?l?function(e,t){const n=H&&169===t.kind&&t.initializer&&AN(e,16777216)&&!function(e){const t=aa(e);if(void 0===t.parameterInitializerContainsUndefined){if(!Mc(e,8))return g_(e.symbol),!0;const n=!!AN(gj(e,0),16777216);if(!zc())return g_(e.symbol),!0;t.parameterInitializerContainsUndefined??(t.parameterInitializerContainsUndefined=n)}return t.parameterInitializerContainsUndefined}(t);return n?ON(e,524288):e}(a,i):a:m?jt:tw(a),b=g?rw(JF(e,a,v,u)):JF(e,a,v,u);if(kF(e)||a!==Nt&&a!==lr){if(!y&&!RS(a)&&RS(b))return jo(e,la.Variable_0_is_used_before_being_assigned,ic(n)),a}else if(b===Nt||b===lr)return ne&&(jo(Tc(i),la.Variable_0_implicitly_has_type_1_in_some_locations_where_its_type_cannot_be_determined,ic(n),sc(b)),jo(e,la.Variable_0_implicitly_has_an_1_type,ic(n),sc(b))),$R(b);return s?RC(b):b}function uP(e){var t;const n=e.parent;if(n){if(HD(n)&&n.expression===e)return!1;if(gE(n)&&n.isTypeOnly)return!1;const r=null==(t=n.parent)?void 0:t.parent;if(r&&fE(r)&&r.isTypeOnly)return!1}return!0}function dP(e){return _c(e,(e=>!e||Yh(e)?"quit":W_(e,!1)))}function pP(e,t){aa(e).flags|=2,172===t.kind||176===t.kind?aa(t.parent).flags|=4:aa(t).flags|=4}function fP(e){return sf(e)?e:n_(e)?void 0:PI(e,fP)}function mP(e){return Q_(fu(ps(e)))===Ut}function hP(e,t,n){const r=t.parent;yh(r)&&!mP(r)&&Ig(e)&&e.flowNode&&!MF(e.flowNode,!1)&&jo(e,n)}function yP(e){const t=lv(e);let n=Zf(e,!0,!0),r=!1,i=!1;for(176===n.kind&&hP(e,n,la.super_must_be_called_before_accessing_this_in_the_constructor_of_a_derived_class);219===n.kind&&(n=Zf(n,!1,!i),r=!0),167===n.kind;)n=Zf(n,!r,!1),i=!0;if(function(e,t){cD(t)&&Dv(t)&&J&&t.initializer&&Ps(t.initializer,e.pos)&&Ov(t.parent)&&jo(e,la.Cannot_use_this_in_a_static_property_initializer_of_a_decorated_class)}(e,n),i)jo(e,la.this_cannot_be_referenced_in_a_computed_property_name);else switch(n.kind){case 267:jo(e,la.this_cannot_be_referenced_in_a_module_or_namespace_body);break;case 266:jo(e,la.this_cannot_be_referenced_in_current_location)}!t&&r&&R<2&&pP(e,n);const o=vP(e,!0,n);if(oe){const t=S_(Fe);if(o===t&&r)jo(e,la.The_containing_arrow_function_captures_the_global_value_of_this);else if(!o){const r=jo(e,la.this_implicitly_has_type_any_because_it_does_not_have_a_type_annotation);if(!qE(n)){const e=vP(n);e&&e!==t&&iT(r,jp(n,la.An_outer_value_of_this_is_shadowed_by_this_container))}}}return o||wt}function vP(e,t=!0,n=Zf(e,!1,!1)){const r=Fm(e);if(n_(n)&&(!LP(e)||av(n))){let t=yg(ig(n))||r&&function(e){const t=Xc(e);if(t&&t.typeExpression)return dk(t.typeExpression);const n=sg(e);return n?yg(n):void 0}(n);if(!t){const e=function(e){return 218===e.kind&&cF(e.parent)&&3===eg(e.parent)?e.parent.left.expression.expression:174===e.kind&&210===e.parent.kind&&cF(e.parent.parent)&&6===eg(e.parent.parent)?e.parent.parent.left.expression:218===e.kind&&303===e.parent.kind&&210===e.parent.parent.kind&&cF(e.parent.parent.parent)&&6===eg(e.parent.parent.parent)?e.parent.parent.parent.left.expression:218===e.kind&&ME(e.parent)&&zN(e.parent.name)&&("value"===e.parent.name.escapedText||"get"===e.parent.name.escapedText||"set"===e.parent.name.escapedText)&&$D(e.parent.parent)&&GD(e.parent.parent.parent)&&e.parent.parent.parent.arguments[2]===e.parent.parent&&9===eg(e.parent.parent.parent)?e.parent.parent.parent.arguments[0].expression:_D(e)&&zN(e.name)&&("value"===e.name.escapedText||"get"===e.name.escapedText||"set"===e.name.escapedText)&&$D(e.parent)&&GD(e.parent.parent)&&e.parent.parent.arguments[2]===e.parent&&9===eg(e.parent.parent)?e.parent.parent.arguments[0].expression:void 0}(n);if(r&&e){const n=Lj(e).symbol;n&&n.members&&16&n.flags&&(t=fu(n).thisType)}else qO(n)&&(t=fu(ds(n.symbol)).thisType);t||(t=AP(n))}if(t)return JF(e,t)}if(__(n.parent)){const t=ps(n.parent);return JF(e,Nv(n)?S_(t):fu(t).thisType)}if(qE(n)){if(n.commonJsModuleIndicator){const e=ps(n);return e&&S_(e)}if(n.externalModuleIndicator)return jt;if(t)return S_(Fe)}}function xP(e){const t=213===e.parent.kind&&e.parent.expression===e,n=rm(e,!0);let r=n,i=!1,o=!1;if(!t){for(;r&&219===r.kind;)wv(r,1024)&&(o=!0),r=rm(r,!0),i=R<2;r&&wv(r,1024)&&(o=!0)}let a=0;if(!r||(s=r,!(t?176===s.kind:(__(s.parent)||210===s.parent.kind)&&(Nv(s)?174===s.kind||173===s.kind||177===s.kind||178===s.kind||172===s.kind||175===s.kind:174===s.kind||173===s.kind||177===s.kind||178===s.kind||172===s.kind||171===s.kind||176===s.kind)))){const n=_c(e,(e=>e===r?"quit":167===e.kind));return n&&167===n.kind?jo(e,la.super_cannot_be_referenced_in_a_computed_property_name):t?jo(e,la.Super_calls_are_not_permitted_outside_constructors_or_in_nested_functions_inside_constructors):r&&r.parent&&(__(r.parent)||210===r.parent.kind)?jo(e,la.super_property_access_is_permitted_only_in_a_constructor_member_function_or_member_accessor_of_a_derived_class):jo(e,la.super_can_only_be_referenced_in_members_of_derived_classes_or_object_literal_expressions),Et}var s;if(t||176!==n.kind||hP(e,r,la.super_must_be_called_before_accessing_a_property_of_super_in_the_constructor_of_a_derived_class),Nv(r)||t?(a=32,!t&&R>=2&&R<=8&&(cD(r)||uD(r))&&Fp(e.parent,(e=>{qE(e)&&!Qp(e)||(aa(e).flags|=2097152)}))):a=16,aa(e).flags|=a,174===r.kind&&o&&(om(e.parent)&&Xg(e.parent)?aa(r).flags|=256:aa(r).flags|=128),i&&pP(e.parent,r),210===r.parent.kind)return R<2?(jo(e,la.super_is_only_allowed_in_members_of_object_literal_expressions_when_option_target_is_ES2015_or_higher),Et):wt;const c=r.parent;if(!yh(c))return jo(e,la.super_can_only_be_referenced_in_a_derived_class),Et;if(mP(c))return t?Et:Ut;const l=fu(ps(c)),_=l&&Z_(l)[0];return _?176===r.kind&&function(e,t){return!!_c(e,(e=>i_(e)?"quit":169===e.kind&&e.parent===t))}(e,r)?(jo(e,la.super_cannot_be_referenced_in_constructor_arguments),Et):32===a?Q_(l):ld(_,l.thisType):Et}function SP(e){return 174!==e.kind&&177!==e.kind&&178!==e.kind||210!==e.parent.kind?218===e.kind&&303===e.parent.kind?e.parent.parent:void 0:e.parent}function wP(e){return 4&mx(e)&&e.target===sr?Kh(e)[0]:void 0}function DP(e){return zD(e,(e=>2097152&e.flags?d(e.types,wP):wP(e)))}function EP(e,t){let n=e,r=t;for(;r;){const e=DP(r);if(e)return e;if(303!==n.parent.kind)break;n=n.parent.parent,r=eA(n,void 0)}}function AP(e){if(219===e.kind)return;if(cS(e)){const t=vA(e);if(t){const e=t.thisParameter;if(e)return S_(e)}}const t=Fm(e);if(oe||t){const n=SP(e);if(n){const e=eA(n,void 0),t=EP(n,e);return t?tS(t,Bw(fA(n))):Sw(e?rw(e):fj(n))}const r=nh(e.parent);if(nb(r)){const e=r.left;if(kx(e)){const{expression:n}=e;if(t&&zN(n)){const e=hd(r);if(e.commonJsModuleIndicator&&dN(n)===e.symbol)return}return Sw(fj(n))}}}}function IP(e){const t=e.parent;if(!cS(t))return;const n=im(t);if(n&&n.arguments){const r=bO(n),i=t.parameters.indexOf(e);if(e.dotDotDotToken)return pO(r,i,r.length,wt,void 0,0);const o=aa(n),a=o.resolvedSignature;o.resolvedSignature=si;const s=i!!(58998787&e.flags)||Jj(e,n,void 0))):2&n?OD(t,(e=>!!(58998787&e.flags)||!!iR(e))):t}const i=im(e);return i?sA(i,t):void 0}function MP(e,t){const n=bO(e).indexOf(t);return-1===n?void 0:JP(e,n)}function JP(e,t){if(cf(e))return 0===t?Vt:1===t?By(!1):wt;const n=aa(e).resolvedSignature===li?li:zO(e);if(vu(e)&&0===t)return mA(n,e);const r=n.parameters.length-1;return UB(n)&&t>=r?vx(S_(n.parameters[r]),ok(t-r),256):pL(n,t)}function zP(e,t=eg(e)){if(4===t)return!0;if(!Fm(e)||5!==t||!zN(e.left.expression))return!1;const n=e.left.expression.escapedText,r=Ue(e.left,n,111551,void 0,!0,!0);return sm(null==r?void 0:r.valueDeclaration)}function qP(e){if(!e.symbol)return Aj(e.left);if(e.symbol.valueDeclaration){const t=pv(e.symbol.valueDeclaration);if(t){const e=dk(t);if(e)return e}}const t=nt(e.left,kx);if(!Mf(Zf(t.expression,!1,!1)))return;const n=yP(t.expression),r=lg(t);return void 0!==r&&VP(n,r)||void 0}function UP(e,t){if(16777216&e.flags){const n=e;return!!(131072&yf(Px(n)).flags)&&Nx(Ax(n))===Nx(n.checkType)&&gS(t,n.extendsType)}return!!(2097152&e.flags)&&$(e.types,(e=>UP(e,t)))}function VP(e,t,n){return zD(e,(e=>{if(2097152&e.flags){let r,i,o=!1;for(const a of e.types){if(!(524288&a.flags))continue;if(rp(a)&&2!==cp(a)){r=WP(r,$P(a,t,n));continue}const e=HP(a,t);e?(o=!0,i=void 0,r=WP(r,e)):o||(i=ie(i,a))}if(i)for(const e of i)r=WP(r,KP(e,t,n));if(!r)return;return 1===r.length?r[0]:Fb(r)}if(524288&e.flags)return rp(e)&&2!==cp(e)?$P(e,t,n):HP(e,t)??KP(e,t,n)}),!0)}function WP(e,t){return t?ie(e,1&t.flags?Ot:t):e}function $P(e,t,n){const r=n||ik(fc(t)),i=qd(e);if(!(e.nameType&&UP(e.nameType,r)||UP(i,r)))return gS(r,qp(i)||i)?yx(e,r):void 0}function HP(e,t){const n=Cf(e,t);var r;if(n&&!(262144&nx(r=n)&&!r.links.type&&Bc(r,0)>=0))return cw(S_(n),!!(16777216&n.flags))}function KP(e,t,n){var r;if(UC(e)&&MT(t)&&+t>=0){const t=KC(e,e.target.fixedLength,0,!1,!0);if(t)return t}return null==(r=Vf($f(e),n||ik(fc(t))))?void 0:r.type}function GP(e,t){if(un.assert(Mf(e)),!(67108864&e.flags))return XP(e,t)}function XP(e,t){const n=e.parent,r=ME(e)&&OP(e,t);if(r)return r;const i=eA(n,t);if(i){if(Zu(e)){const t=ps(e);return VP(i,t.escapedName,oa(t).nameType)}if(Rh(e)){const t=Tc(e);if(t&&rD(t)){const e=Lj(t.expression),n=oC(e)&&VP(i,aC(e));if(n)return n}}if(e.name){const t=Rb(e.name);return zD(i,(e=>{var n;return null==(n=Vf($f(e),t))?void 0:n.type}),!0)}}}function QP(e,t,n,r,i){return e&&zD(e,(e=>{if(UC(e)){if((void 0===r||ti)?n-t:0,a=o>0&&12&e.target.combinedFlags?qv(e.target,3):0;return o>0&&o<=a?Kh(e)[ey(e)-o]:KC(e,void 0===r?e.target.fixedLength:Math.min(e.target.fixedLength,r),void 0===n||void 0===i?a:Math.min(a,n-i),!1,!0)}return(!r||t32&mx(e)?e:pf(e)),!0);return 1048576&t.flags&&$D(e)?function(e,t){const n=`D${jB(e)},${Kv(t)}`;return No(n)??Fo(n,function(e,t){const n=SN(e),r=n&&b(t.properties,(e=>e.symbol&&303===e.kind&&e.symbol.escapedName===n&&ZP(e.initializer))),i=r&&Oj(r.initializer);return i&&CN(e,i)}(t,e)??tT(t,K(E(N(e.properties,(e=>!!e.symbol&&(303===e.kind?ZP(e.initializer)&&bN(t,e.symbol.escapedName):304===e.kind&&bN(t,e.symbol.escapedName)))),(e=>[()=>Oj(303===e.kind?e.initializer:e.name),e.symbol.escapedName])),E(N(vp(t),(n=>{var r;return!!(16777216&n.flags)&&!!(null==(r=null==e?void 0:e.symbol)?void 0:r.members)&&!e.symbol.members.has(n.escapedName)&&bN(t,n.escapedName)})),(e=>[()=>jt,e.escapedName]))),gS))}(e,t):1048576&t.flags&&EE(e)?function(e,t){const n=`D${jB(e)},${Kv(t)}`,r=No(n);if(r)return r;const i=zA(BA(e));return Fo(n,tT(t,K(E(N(e.properties,(e=>!!e.symbol&&291===e.kind&&bN(t,e.symbol.escapedName)&&(!e.initializer||ZP(e.initializer)))),(e=>[e.initializer?()=>Oj(e.initializer):()=>Yt,e.symbol.escapedName])),E(N(vp(t),(n=>{var r;if(!(16777216&n.flags&&(null==(r=null==e?void 0:e.symbol)?void 0:r.members)))return!1;const o=e.parent.parent;return(n.escapedName!==i||!kE(o)||!cy(o.children).length)&&!e.symbol.members.has(n.escapedName)&&bN(t,n.escapedName)})),(e=>[()=>jt,e.escapedName]))),gS))}(e,t):t}}function nA(e,t,n){if(e&&QL(e,465829888)){const r=fA(t);if(r&&1&n&&$(r.inferences,Dj))return rA(e,r.nonFixingMapper);if(null==r?void 0:r.returnMapper){const t=rA(e,r.returnMapper);return 1048576&t.flags&&Gv(t.types,Qt)&&Gv(t.types,nn)?OD(t,(e=>e!==Qt&&e!==nn)):t}}return e}function rA(e,t){return 465829888&e.flags?tS(e,t):1048576&e.flags?xb(E(e.types,(e=>rA(e,t))),0):2097152&e.flags?Fb(E(e.types,(e=>rA(e,t)))):e}function sA(e,t){var n;if(67108864&e.flags)return;const r=pA(e,!t);if(r>=0)return Ni[r];const{parent:i}=e;switch(i.kind){case 260:case 169:case 172:case 171:case 208:return function(e,t){const n=e.parent;if(Fu(n)&&e===n.initializer){const e=OP(n,t);if(e)return e;if(!(8&t)&&x_(n.name)&&n.name.elements.length>0)return ql(n.name,!0,!1)}}(e,t);case 219:case 253:return function(e,t){const n=Hf(e);if(n){let e=RP(n,t);if(e){const t=Ih(n);if(1&t){const n=!!(2&t);1048576&e.flags&&(e=OD(e,(e=>!!TM(1,e,n))));const r=TM(1,e,!!(2&t));if(!r)return;e=r}if(2&t){const t=zD(e,pR);return t&&xb([t,AL(t)])}return e}}}(e,t);case 229:return function(e,t){const n=Hf(e);if(n){const r=Ih(n);let i=RP(n,t);if(i){const n=!!(2&r);if(!e.asteriskToken&&1048576&i.flags&&(i=OD(i,(e=>!!TM(1,e,n)))),e.asteriskToken){const r=CM(i,n),o=(null==r?void 0:r.yieldType)??dn,a=sA(e,t)??dn,s=(null==r?void 0:r.nextType)??Ot,c=LL(o,a,s,!1);return n?xb([c,LL(o,a,s,!0)]):c}return TM(0,i,n)}}}(i,t);case 223:return function(e,t){const n=sA(e,t);if(n){const e=pR(n);return e&&xb([e,AL(e)])}}(i,t);case 213:case 214:return MP(i,e);case 170:return function(e){const t=EL(e);return t?Yg(t):void 0}(i);case 216:case 234:return xl(i.type)?sA(i,t):dk(i.type);case 226:return function(e,t){const n=e.parent,{left:r,operatorToken:i,right:o}=n;switch(i.kind){case 64:case 77:case 76:case 78:return e===o?function(e){var t,n;const r=eg(e);switch(r){case 0:case 4:const i=function(e){if(ou(e)&&e.symbol)return e.symbol;if(zN(e))return dN(e);if(HD(e)){const t=Aj(e.expression);return qN(e.name)?function(e,t){const n=vI(t.escapedText,t);return n&&xI(e,n)}(t,e.name):Cf(t,e.name.escapedText)}if(KD(e)){const t=fj(e.argumentExpression);if(!oC(t))return;return Cf(Aj(e.expression),aC(t))}}(e.left),o=i&&i.valueDeclaration;if(o&&(cD(o)||sD(o))){const t=pv(o);return t&&tS(dk(t),oa(i).mapper)||(cD(o)?o.initializer&&Aj(e.left):void 0)}return 0===r?Aj(e.left):qP(e);case 5:if(zP(e,r))return qP(e);if(ou(e.left)&&e.left.symbol){const t=e.left.symbol.valueDeclaration;if(!t)return;const n=nt(e.left,kx),r=pv(t);if(r)return dk(r);if(zN(n.expression)){const e=n.expression,t=Ue(e,e.escapedText,111551,void 0,!0);if(t){const e=t.valueDeclaration&&pv(t.valueDeclaration);if(e){const t=lg(n);if(void 0!==t)return VP(dk(e),t)}return}}return Fm(t)||t===e.left?void 0:Aj(e.left)}return Aj(e.left);case 1:case 6:case 3:case 2:let a;2!==r&&(a=ou(e.left)?null==(t=e.left.symbol)?void 0:t.valueDeclaration:void 0),a||(a=null==(n=e.symbol)?void 0:n.valueDeclaration);const s=a&&pv(a);return s?dk(s):void 0;case 7:case 8:case 9:return un.fail("Does not apply");default:return un.assertNever(r)}}(n):void 0;case 57:case 61:const i=sA(n,t);return e===o&&(i&&i.pattern||!i&&!Hm(n))?Aj(r):i;case 56:case 28:return e===o?sA(n,t):void 0;default:return}}(e,t);case 303:case 304:return XP(i,t);case 305:return sA(i.parent,t);case 209:{const r=i,o=eA(r,t),a=Xd(r.elements,e),s=(n=aa(r)).spreadIndices??(n.spreadIndices=function(e){let t,n;for(let r=0;rCC(e)?vx(e,ok(a)):e),!0))}(n,e,t):void 0}(i,t);case 291:case 293:return YP(i,t);case 286:case 285:return function(e,t){if(TE(e)&&4!==t){const n=pA(e.parent,!t);if(n>=0)return Ni[n]}return JP(e,0)}(i,t);case 301:return function(e){return VP(Jy(!1),uC(e))}(i)}}function _A(e){uA(e,sA(e,void 0),!0)}function uA(e,t,n){wi[Ei]=e,Ni[Ei]=t,Fi[Ei]=n,Ei++}function dA(){Ei--}function pA(e,t){for(let n=Ei-1;n>=0;n--)if(e===wi[n]&&(t||!Fi[n]))return n;return-1}function fA(e){for(let t=Oi-1;t>=0;t--)if(sh(e,Ai[t]))return Ii[t]}function mA(e,t){return NE(t)||0!==mO(t)?function(e,t){let n=SL(e,Ot);n=gA(t,BA(t),n);const r=jA(vB.IntrinsicAttributes,t);return $c(r)||(n=Pd(r,n)),n}(e,t):function(e,t){const n=BA(t),r=(i=n,JA(vB.ElementAttributesPropertyNameContainer,i));var i;let o=void 0===r?SL(e,Ot):""===r?Tg(e):function(e,t){if(e.compositeSignatures){const n=[];for(const r of e.compositeSignatures){const e=Tg(r);if(Wc(e))return e;const i=Uc(e,t);if(!i)return;n.push(i)}return Fb(n)}const n=Tg(e);return Wc(n)?n:Uc(n,t)}(e,r);if(!o)return r&&u(t.attributes.properties)&&jo(t,la.JSX_element_class_does_not_support_attributes_because_it_does_not_have_a_0_property,fc(r)),Ot;if(o=gA(t,n,o),Wc(o))return o;{let n=o;const r=jA(vB.IntrinsicClassAttributes,t);if(!$c(r)){const i=M_(r.symbol),o=Tg(e);let a;a=i?tS(r,Tk(i,rg([o],i,ng(i),Fm(t)))):r,n=Pd(a,n)}const i=jA(vB.IntrinsicAttributes,t);return $c(i)||(n=Pd(i,n)),n}}(e,t)}function gA(e,t,n){const r=(i=t)&&sa(i.exports,vB.LibraryManagedAttributes,788968);var i;if(r){const t=function(e){if(NE(e))return MO(e);if(PA(e.tagName))return Yg(RO(e,WA(e)));const t=fj(e.tagName);if(128&t.flags){const n=VA(t,e);return n?Yg(RO(e,n)):Et}return t}(e),i=GA(r,Fm(e),t,n);if(i)return i}return n}function hA(e,t){const n=N(Rf(e,0),(e=>!function(e,t){let n=0;for(;ne!==t&&e?Dd(e.typeParameters,t.typeParameters)?function(e,t){const n=e.typeParameters||t.typeParameters;let r;e.typeParameters&&t.typeParameters&&(r=Tk(t.typeParameters,e.typeParameters));let i=166&(e.flags|t.flags);const o=e.declaration,a=function(e,t,n){const r=hL(e),i=hL(t),o=r>=i?e:t,a=o===e?t:e,s=o===e?r:i,c=vL(e)||vL(t),l=c&&!vL(o),_=new Array(s+(l?1:0));for(let u=0;u=yL(o)&&u>=yL(a),h=u>=r?void 0:lL(e,u),y=u>=i?void 0:lL(t,u),v=Wo(1|(g&&!m?16777216:0),(h===y?h:h?y?void 0:h:y)||`arg${u}`,m?32768:g?16384:0);v.links.type=m?uv(f):f,_[u]=v}if(l){const e=Wo(1,"args",32768);e.links.type=uv(pL(a,s)),a===t&&(e.links.type=tS(e.links.type,n)),_[s]=e}return _}(e,t,r),s=ye(a);s&&32768&nx(s)&&(i|=1);const c=function(e,t,n){return e&&t?dw(e,xb([S_(e),tS(S_(t),n)])):e||t}(e.thisParameter,t.thisParameter,r),l=pd(o,n,c,a,void 0,void 0,Math.max(e.minArgumentCount,t.minArgumentCount),i);return l.compositeKind=2097152,l.compositeSignatures=K(2097152===e.compositeKind&&e.compositeSignatures||[e],[t]),r&&(l.mapper=2097152===e.compositeKind&&e.mapper&&e.compositeSignatures?Rk(e.mapper,r):r),l}(e,t):void 0:e)):void 0);var r}function yA(e){return jT(e)||Mf(e)?vA(e):void 0}function vA(e){un.assert(174!==e.kind||Mf(e));const t=sg(e);if(t)return t;const n=eA(e,1);if(!n)return;if(!(1048576&n.flags))return hA(n,e);let r;const i=n.types;for(const t of i){const n=hA(t,e);if(n)if(r){if(!lC(r[0],n,!1,!0,!0,uS))return;r.push(n)}else r=[n]}return r?1===r.length?r[0]:md(r[0],r):void 0}function bA(e){return 208===e.kind&&!!e.initializer||303===e.kind&&bA(e.initializer)||304===e.kind&&!!e.objectAssignmentInitializer||226===e.kind&&64===e.operatorToken.kind}function xA(e,t,n){const r=e.elements,i=r.length,o=[],a=[];_A(e);const s=Xg(e),c=xj(e),l=eA(e,void 0),_=function(e){const t=nh(e.parent);return dF(t)&&L_(t.parent)}(e)||!!l&&ED(l,(e=>EC(e)||rp(e)&&!e.nameType&&!!Xk(e.target||e)));let u=!1;for(let c=0;c8&a[t]?Sx(e,Wt)||wt:e)),2):H?pn:Rt,c))}function kA(e){const t=aa(e.expression);if(!t.resolvedType){if((SD(e.parent.parent)||__(e.parent.parent)||KF(e.parent.parent))&&cF(e.expression)&&103===e.expression.operatorToken.kind&&177!==e.parent.kind&&178!==e.parent.kind)return t.resolvedType=Et;if(t.resolvedType=Lj(e.expression),cD(e.parent)&&!Dv(e.parent)&&pF(e.parent.parent)){const t=dP(Dp(e.parent.parent));t&&(aa(t).flags|=4096,aa(e).flags|=32768,aa(e.parent.parent).flags|=32768)}(98304&t.resolvedType.flags||!YL(t.resolvedType,402665900)&&!gS(t.resolvedType,hn))&&jo(e,la.A_computed_property_name_must_be_of_type_string_number_symbol_or_any)}return t.resolvedType}function SA(e){var t;const n=null==(t=e.declarations)?void 0:t[0];return MT(e.escapedName)||n&&kc(n)&&function(e){switch(e.kind){case 167:return function(e){return YL(kA(e),296)}(e);case 80:return MT(e.escapedText);case 9:case 11:return MT(e.text);default:return!1}}(n.name)}function TA(e){var t;const n=null==(t=e.declarations)?void 0:t[0];return Vh(e)||n&&kc(n)&&rD(n.name)&&YL(kA(n.name),4096)}function CA(e,t,n,r){const i=[];for(let e=t;e0&&(o=Wx(o,f(),l.symbol,c,!1),i=Hu());const s=yf(Lj(e.expression,2&t));Wc(s)&&(a=!0),FA(s)?(o=Wx(o,s,l.symbol,c,!1),n&&LA(s,n,e)):(jo(e.expression,la.Spread_types_may_only_be_created_from_object_types),r=r?Fb([r,s]):s)}}a||i.size>0&&(o=Wx(o,f(),l.symbol,c,!1))}const p=e.parent;if((kE(p)&&p.openingElement===e||wE(p)&&p.openingFragment===e)&&cy(p.children).length>0){const n=OA(p,t);if(!a&&_&&""!==_){s&&jo(d,la._0_are_specified_twice_The_attribute_named_0_will_be_overwritten,fc(_));const t=TE(e)?eA(e.attributes,void 0):void 0,r=t&&VP(t,_),i=Wo(4,_);i.links.type=1===n.length?n[0]:r&&ED(r,EC)?kv(n):uv(xb(n)),i.valueDeclaration=XC.createPropertySignature(void 0,fc(_),void 0,void 0),wT(i.valueDeclaration,d),i.valueDeclaration.symbol=i;const a=Hu();a.set(_,i),o=Wx(o,Bs(u,a,l,l,l),u,c,!1)}}return a?wt:r&&o!==Dn?Fb([r,o]):r||(o===Dn?f():o);function f(){return c|=8192,function(e,t,n){const r=Bs(t,n,l,l,l);return r.objectFlags|=139392|e,r}(c,u,i)}}function OA(e,t){const n=[];for(const r of e.children)if(12===r.kind)r.containsOnlyTriviaWhiteSpaces||n.push(Vt);else{if(294===r.kind&&!r.expression)continue;n.push(kj(r,t))}return n}function LA(e,t,n){for(const r of vp(e))if(!(16777216&r.flags)){const e=t.get(r.escapedName);e&&iT(jo(e.valueDeclaration,la._0_is_specified_more_than_once_so_this_usage_will_be_overwritten,fc(e.escapedName)),jp(n,la.This_spread_always_overwrites_this_property))}}function jA(e,t){const n=BA(t),r=n&&cs(n),i=r&&sa(r,e,788968);return i?fu(i):Et}function RA(e){const t=aa(e);if(!t.resolvedSymbol){const n=jA(vB.IntrinsicElements,e);if($c(n))return ne&&jo(e,la.JSX_element_implicitly_has_type_any_because_no_interface_JSX_0_exists,fc(vB.IntrinsicElements)),t.resolvedSymbol=xt;{if(!zN(e.tagName)&&!IE(e.tagName))return un.fail();const r=IE(e.tagName)?nC(e.tagName):e.tagName.escapedText,i=Cf(n,r);if(i)return t.jsxFlags|=1,t.resolvedSymbol=i;const o=XB(n,ik(fc(r)));return o?(t.jsxFlags|=2,t.resolvedSymbol=o):Vc(n,r)?(t.jsxFlags|=2,t.resolvedSymbol=n.symbol):(jo(e,la.Property_0_does_not_exist_on_type_1,iC(e.tagName),"JSX."+vB.IntrinsicElements),t.resolvedSymbol=xt)}}return t.resolvedSymbol}function MA(e){const t=e&&hd(e),n=t&&aa(t);if(n&&!1===n.jsxImplicitImportContainer)return;if(n&&n.jsxImplicitImportContainer)return n.jsxImplicitImportContainer;const r=Hk($k(j,t),j);if(!r)return;const i=1===vk(j)?la.Cannot_find_module_0_Did_you_mean_to_set_the_moduleResolution_option_to_nodenext_or_to_add_aliases_to_the_paths_option:la.This_JSX_tag_requires_the_module_path_0_to_exist_but_none_could_be_found_Make_sure_you_have_types_for_the_appropriate_package_installed,o=function(e,t){const n=j.importHelpers?1:0,r=null==e?void 0:e.imports[n];return r&&un.assert(Zh(r)&&r.text===t,`Expected sourceFile.imports[${n}] to be the synthesized JSX runtime import`),r}(t,r),a=Za(o||e,r,i,e),s=a&&a!==xt?ds(Ma(a)):void 0;return n&&(n.jsxImplicitImportContainer=s||!1),s}function BA(e){const t=e&&aa(e);if(t&&t.jsxNamespace)return t.jsxNamespace;if(!t||!1!==t.jsxNamespace){let n=MA(e);if(!n||n===xt){const t=Eo(e);n=Ue(e,t,1920,void 0,!1)}if(n){const e=Ma(sa(cs(Ma(n)),vB.JSX,1920));if(e&&e!==xt)return t&&(t.jsxNamespace=e),e}t&&(t.jsxNamespace=!1)}const n=Ma(Py(vB.JSX,1920,void 0));return n!==xt?n:void 0}function JA(e,t){const n=t&&sa(t.exports,e,788968),r=n&&fu(n),i=r&&vp(r);if(i){if(0===i.length)return"";if(1===i.length)return i[0].escapedName;i.length>1&&n.declarations&&jo(n.declarations[0],la.The_global_type_JSX_0_may_not_have_more_than_one_property,fc(e))}}function zA(e){return JA(vB.ElementChildrenAttributeNameContainer,e)}function qA(e,t){if(4&e.flags)return[si];if(128&e.flags){const n=VA(e,t);return n?[RO(t,n)]:(jo(t,la.Property_0_does_not_exist_on_type_1,e.value,"JSX."+vB.IntrinsicElements),l)}const n=pf(e);let r=Rf(n,1);return 0===r.length&&(r=Rf(n,0)),0===r.length&&1048576&n.flags&&(r=Nd(E(n.types,(e=>qA(e,t))))),r}function VA(e,t){const n=jA(vB.IntrinsicElements,t);if(!$c(n)){const t=Cf(n,pc(e.value));if(t)return S_(t);return pm(n,Vt)||void 0}return wt}function WA(e){var t;un.assert(PA(e.tagName));const n=aa(e);if(!n.resolvedJsxElementAttributesType){const r=RA(e);if(1&n.jsxFlags)return n.resolvedJsxElementAttributesType=S_(r)||Et;if(2&n.jsxFlags){const r=IE(e.tagName)?nC(e.tagName):e.tagName.escapedText;return n.resolvedJsxElementAttributesType=(null==(t=Nm(jA(vB.IntrinsicElements,e),r))?void 0:t.type)||Et}return n.resolvedJsxElementAttributesType=Et}return n.resolvedJsxElementAttributesType}function $A(e){const t=jA(vB.ElementClass,e);if(!$c(t))return t}function HA(e){return jA(vB.Element,e)}function KA(e){const t=HA(e);if(t)return xb([t,zt])}function GA(e,t,...n){const r=fu(e);if(524288&e.flags){const i=oa(e).typeParameters;if(u(i)>=n.length){const o=rg(n,i,n.length,t);return 0===u(o)?r:ny(e,o)}}if(u(r.typeParameters)>=n.length)return jh(r,rg(n,r.typeParameters,n.length,t))}function XA(e){const t=vu(e);var n;t&&function(e){(function(e){if(HD(e)&&IE(e.expression))return nz(e.expression,la.JSX_property_access_expressions_cannot_include_JSX_namespace_names);IE(e)&&Wk(j)&&!Fy(e.namespace.escapedText)&&nz(e,la.React_components_cannot_include_JSX_namespace_names)})(e.tagName),OJ(e,e.typeArguments);const t=new Map;for(const n of e.attributes.properties){if(293===n.kind)continue;const{name:e,initializer:r}=n,i=ZT(e);if(t.get(i))return nz(e,la.JSX_elements_cannot_have_multiple_attributes_with_the_same_name);if(t.set(i,!0),r&&294===r.kind&&!r.expression)return nz(r,la.JSX_attributes_must_only_be_assigned_a_non_empty_expression)}}(e),n=e,0===(j.jsx||0)&&jo(n,la.Cannot_use_JSX_unless_the_jsx_flag_is_provided),void 0===HA(n)&&ne&&jo(n,la.JSX_element_implicitly_has_type_any_because_the_global_type_JSX_Element_does_not_exist),LE(e);const r=zO(e);if(WO(r,e),t){const t=e,n=function(e){const t=BA(e);if(!t)return;const n=(r=t)&&sa(r.exports,vB.ElementType,788968);var r;if(!n)return;const i=GA(n,Fm(e));return i&&!$c(i)?i:void 0}(t);if(void 0!==n){const e=t.tagName;HS(PA(e)?ik(iC(e)):Lj(e),n,ho,e,la.Its_type_0_is_not_a_valid_JSX_element_type,(()=>{const t=Kd(e);return Yx(void 0,la._0_cannot_be_used_as_a_JSX_component,t)}))}else!function(e,t,n){if(1===e){const e=KA(n);e&&HS(t,e,ho,n.tagName,la.Its_return_type_0_is_not_a_valid_JSX_element,r)}else if(0===e){const e=$A(n);e&&HS(t,e,ho,n.tagName,la.Its_instance_type_0_is_not_a_valid_JSX_element,r)}else{const e=KA(n),i=$A(n);if(!e||!i)return;HS(t,xb([e,i]),ho,n.tagName,la.Its_element_type_0_is_not_a_valid_JSX_element,r)}function r(){const e=Kd(n.tagName);return Yx(void 0,la._0_cannot_be_used_as_a_JSX_component,e)}}(mO(t),Tg(r),t)}}function QA(e,t,n){if(524288&e.flags&&(hp(e,t)||Nm(e,t)||Xu(t)&&dm(e,Vt)||n&&EA(t)))return!0;if(33554432&e.flags)return QA(e.baseType,t,n);if(3145728&e.flags&&YA(e))for(const r of e.types)if(QA(r,t,n))return!0;return!1}function YA(e){return!!(524288&e.flags&&!(512&mx(e))||67108864&e.flags||33554432&e.flags&&YA(e.baseType)||1048576&e.flags&&$(e.types,YA)||2097152&e.flags&&v(e.types,YA))}function ZA(e){return e.valueDeclaration?_z(e.valueDeclaration):0}function eI(e){if(8192&e.flags||4&nx(e))return!0;if(Fm(e.valueDeclaration)){const t=e.valueDeclaration.parent;return t&&cF(t)&&3===eg(t)}}function tI(e,t,n,r,i,o=!0){return oI(e,t,n,r,i,o?166===e.kind?e.right:205===e.kind?e:208===e.kind&&e.propertyName?e.propertyName:e.name:void 0)}function oI(e,t,n,r,i,o){var a;const s=rx(i,n);if(t){if(R<2&&sI(i))return o&&jo(o,la.Only_public_and_protected_methods_of_the_base_class_are_accessible_via_the_super_keyword),!1;if(64&s)return o&&jo(o,la.Abstract_method_0_in_class_1_cannot_be_accessed_via_super_expression,ic(i),sc(FT(i))),!1;if(!(256&s)&&(null==(a=i.declarations)?void 0:a.some(p_)))return o&&jo(o,la.Class_field_0_defined_by_the_parent_class_is_not_accessible_in_the_child_class_via_super,ic(i)),!1}if(64&s&&sI(i)&&(am(e)||cm(e)||qD(e.parent)&&sm(e.parent.parent))){const t=fx(hs(i));if(t&&_c(e,(e=>!!(dD(e)&&wd(e.body)||cD(e))||!(!__(e)&&!i_(e))&&"quit")))return o&&jo(o,la.Abstract_property_0_in_class_1_cannot_be_accessed_in_the_constructor,ic(i),zh(t.name)),!1}if(!(6&s))return!0;if(2&s)return!!BB(e,fx(hs(i)))||(o&&jo(o,la.Property_0_is_private_and_only_accessible_within_class_1,ic(i),sc(FT(i))),!1);if(t)return!0;let c=PB(e,(e=>AT(fu(ps(e)),i,n)));return!c&&(c=function(e){const t=function(e){const t=Zf(e,!1,!1);return t&&n_(t)?av(t):void 0}(e);let n=(null==t?void 0:t.type)&&dk(t.type);if(n)262144&n.flags&&(n=xp(n));else{const t=Zf(e,!1,!1);n_(t)&&(n=AP(t))}if(n&&7&mx(n))return N_(n)}(e),c=c&&AT(c,i,n),256&s||!c)?(o&&jo(o,la.Property_0_is_protected_and_only_accessible_within_class_1_and_its_subclasses,ic(i),sc(FT(i)||r)),!1):!!(256&s)||(262144&r.flags&&(r=r.isThisType?xp(r):qp(r)),!(!r||!D_(r,c))||(o&&jo(o,la.Property_0_is_protected_and_only_accessible_through_an_instance_of_class_1_This_is_an_instance_of_class_2,ic(i),sc(c),sc(r)),!1))}function sI(e){return!!DT(e,(e=>!(8192&e.flags)))}function cI(e){return fI(Lj(e),e)}function lI(e){return AN(e,50331648)}function _I(e){return lI(e)?rw(e):e}function uI(e,t){const n=ob(e)?Lp(e):void 0;if(106!==e.kind)if(void 0!==n&&n.length<100){if(zN(e)&&"undefined"===n)return void jo(e,la.The_value_0_cannot_be_used_here,"undefined");jo(e,16777216&t?33554432&t?la._0_is_possibly_null_or_undefined:la._0_is_possibly_undefined:la._0_is_possibly_null,n)}else jo(e,16777216&t?33554432&t?la.Object_is_possibly_null_or_undefined:la.Object_is_possibly_undefined:la.Object_is_possibly_null);else jo(e,la.The_value_0_cannot_be_used_here,"null")}function dI(e,t){jo(e,16777216&t?33554432&t?la.Cannot_invoke_an_object_which_is_possibly_null_or_undefined:la.Cannot_invoke_an_object_which_is_possibly_undefined:la.Cannot_invoke_an_object_which_is_possibly_null)}function pI(e,t,n){if(H&&2&e.flags){if(ob(t)){const e=Lp(t);if(e.length<100)return jo(t,la._0_is_of_type_unknown,e),Et}return jo(t,la.Object_is_of_type_unknown),Et}const r=PN(e,50331648);if(50331648&r){n(t,r);const i=rw(e);return 229376&i.flags?Et:i}return e}function fI(e,t){return pI(e,t,uI)}function mI(e,t){const n=fI(e,t);if(16384&n.flags){if(ob(t)){const e=Lp(t);if(zN(t)&&"undefined"===e)return jo(t,la.The_value_0_cannot_be_used_here,e),n;if(e.length<100)return jo(t,la._0_is_possibly_undefined,e),n}jo(t,la.Object_is_possibly_undefined)}return n}function gI(e,t,n){return 64&e.flags?function(e,t){const n=Lj(e.expression),r=sw(n,e.expression);return aw(SI(e,e.expression,fI(r,e.expression),e.name,t),e,r!==n)}(e,t):SI(e,e.expression,cI(e.expression),e.name,t,n)}function hI(e,t){const n=xm(e)&&cv(e.left)?fI(yP(e.left),e.left):cI(e.left);return SI(e,e.left,n,e.right,t)}function yI(e){for(;217===e.parent.kind;)e=e.parent;return L_(e.parent)&&e.parent.expression===e}function vI(e,t){for(let n=Yf(t);n;n=Gf(n)){const{symbol:t}=n,r=Uh(t,e),i=t.members&&t.members.get(r)||t.exports&&t.exports.get(r);if(i)return i}}function bI(e){if(!vm(e))return;const t=aa(e);return void 0===t.resolvedSymbol&&(t.resolvedSymbol=vI(e.escapedText,e)),t.resolvedSymbol}function xI(e,t){return Cf(e,t.escapedName)}function kI(e,t){return(Tl(t)||am(e)&&Cl(t))&&Zf(e,!0,!1)===Nl(t)}function SI(e,t,n,r,i,o){const a=aa(t).resolvedSymbol,s=Gg(e),c=pf(0!==s||yI(e)?Sw(n):n),l=Wc(c)||c===dn;let _,u;if(qN(r)){(R{const n=e.valueDeclaration;if(n&&kc(n)&&qN(n.name)&&n.name.escapedText===t.escapedText)return r=e,!0}));const o=pa(t);if(r){const i=un.checkDefined(r.valueDeclaration),a=un.checkDefined(Gf(i));if(null==n?void 0:n.valueDeclaration){const r=n.valueDeclaration,s=Gf(r);if(un.assert(!!s),_c(s,(e=>a===e)))return iT(jo(t,la.The_property_0_cannot_be_accessed_on_type_1_within_this_class_because_it_is_shadowed_by_another_private_identifier_with_the_same_spelling,o,sc(e)),jp(r,la.The_shadowing_declaration_of_0_is_defined_here,o),jp(i,la.The_declaration_of_0_that_you_probably_intended_to_use_is_defined_here,o)),!0}return jo(t,la.Property_0_is_not_accessible_outside_class_1_because_it_has_a_private_identifier,o,pa(a.name||SB)),!0}return!1}(n,r,t))return Et;const e=Yf(r);e&&vd(hd(e),j.checkJs)&&nz(r,la.Private_field_0_must_be_declared_in_an_enclosing_class,mc(r))}else 65536&_.flags&&!(32768&_.flags)&&1!==s&&jo(e,la.Private_accessor_was_defined_without_a_getter)}else{if(l)return zN(t)&&a&&CE(e,2,void 0,n),$c(c)?Et:c;_=Cf(c,r.escapedText,ej(c),166===e.kind)}if(CE(e,2,_,n),_){const n=oB(_,r);if(qo(n)&&Qb(e,n)&&n.declarations&&Vo(r,n.declarations,r.escapedText),function(e,t,n){const{valueDeclaration:r}=e;if(!r||hd(t).isDeclarationFile)return;let i;const o=mc(n);!wI(t)||function(e){return cD(e)&&!Av(e)&&e.questionToken}(r)||kx(t)&&kx(t.expression)||ca(r,n)||_D(r)&&256&lz(r)||!U&&function(e){if(!(32&e.parent.flags))return!1;let t=S_(e.parent);for(;;){if(t=t.symbol&&NI(t),!t)return!1;const n=Cf(t,e.escapedName);if(n&&n.valueDeclaration)return!0}}(e)?263!==r.kind||183===t.parent.kind||33554432&r.flags||ca(r,n)||(i=jo(n,la.Class_0_used_before_its_declaration,o)):i=jo(n,la.Property_0_is_used_before_its_initialization,o),i&&iT(i,jp(r,la._0_is_declared_here,o))}(_,e,r),zI(_,e,qI(t,a)),aa(e).resolvedSymbol=_,tI(e,108===t.kind,sx(e),c,_),$L(e,_,s))return jo(r,la.Cannot_assign_to_0_because_it_is_a_read_only_property,mc(r)),Et;u=kI(e,_)?Nt:o||ax(e)?b_(_):S_(_)}else{const t=qN(r)||0!==s&&lx(n)&&!JT(n)?void 0:Nm(c,r.escapedText);if(!t||!t.type){const t=TI(e,n.symbol,!0);return!t&&Gb(n)?wt:n.symbol===Fe?(Fe.exports.has(r.escapedText)&&418&Fe.exports.get(r.escapedText).flags?jo(r,la.Property_0_does_not_exist_on_type_1,fc(r.escapedText),sc(n)):ne&&jo(r,la.Element_implicitly_has_an_any_type_because_type_0_has_no_index_signature,sc(n)),wt):(r.escapedText&&!ma(e)&&DI(r,JT(n)?c:n,t),Et)}t.isReadonly&&(Xg(e)||ah(e))&&jo(e,la.Index_signature_in_type_0_only_permits_reading,sc(c)),u=t.type,j.noUncheckedIndexedAccess&&1!==Gg(e)&&(u=xb([u,Mt])),j.noPropertyAccessFromIndexSignature&&HD(e)&&jo(r,la.Property_0_comes_from_an_index_signature_so_it_must_be_accessed_with_0,fc(r.escapedText)),t.declaration&&Uo(t.declaration)&&Vo(r,[t.declaration],r.escapedText)}return CI(e,_,u,r,i)}function TI(e,t,n){var r;const i=hd(e);if(i&&void 0===j.checkJs&&void 0===i.checkJsDirective&&(1===i.scriptKind||2===i.scriptKind)){const o=d(null==t?void 0:t.declarations,hd),a=!(null==t?void 0:t.valueDeclaration)||!__(t.valueDeclaration)||(null==(r=t.valueDeclaration.heritageClauses)?void 0:r.length)||mm(!1,t.valueDeclaration);return!(i!==o&&o&&Xp(o)||n&&t&&32&t.flags&&a||e&&n&&HD(e)&&110===e.expression.kind&&a)}return!1}function CI(e,t,n,r,i){const o=Gg(e);if(1===o)return cw(n,!!(t&&16777216&t.flags));if(t&&!(98311&t.flags)&&!(8192&t.flags&&1048576&n.flags)&&!uB(t.declarations))return n;if(n===Nt)return Fl(e,t);n=vE(n,e,i);let a=!1;if(H&&Z&&kx(e)&&110===e.expression.kind){const n=t&&t.valueDeclaration;if(n&&$M(n)&&!Nv(n)){const t=zF(e);176!==t.kind||t.parent!==n.parent||33554432&n.flags||(a=!0)}}else H&&t&&t.valueDeclaration&&HD(t.valueDeclaration)&&_g(t.valueDeclaration)&&zF(e)===zF(t.valueDeclaration)&&(a=!0);const s=JF(e,n,a?tw(n):n);return a&&!RS(n)&&RS(s)?(jo(r,la.Property_0_is_used_before_being_assigned,ic(t)),n):o?RC(s):s}function wI(e){return!!_c(e,(e=>{switch(e.kind){case 172:return!0;case 303:case 174:case 177:case 178:case 305:case 167:case 239:case 294:case 291:case 292:case 293:case 286:case 233:case 298:return!1;case 219:case 244:return!(!CF(e.parent)||!uD(e.parent.parent))||"quit";default:return!vm(e)&&"quit"}}))}function NI(e){const t=Z_(e);if(0!==t.length)return Fb(t)}function DI(e,t,n){let r,i;if(!qN(e)&&1048576&t.flags&&!(402784252&t.flags))for(const n of t.types)if(!Cf(n,e.escapedText)&&!Nm(n,e.escapedText)){r=Yx(r,la.Property_0_does_not_exist_on_type_1,Ep(e),sc(n));break}if(FI(e.escapedText,t)){const n=Ep(e),i=sc(t);r=Yx(r,la.Property_0_does_not_exist_on_type_1_Did_you_mean_to_access_the_static_member_2_instead,n,i,i+"."+n)}else{const o=oR(t);if(o&&Cf(o,e.escapedText))r=Yx(r,la.Property_0_does_not_exist_on_type_1,Ep(e),sc(t)),i=jp(e,la.Did_you_forget_to_use_await);else{const o=Ep(e),a=sc(t),s=function(e,t){const n=pf(t).symbol;if(!n)return;const r=hc(n),i=Zd().get(r);if(i)for(const[t,n]of i)if(T(n,e))return t}(o,t);if(void 0!==s)r=Yx(r,la.Property_0_does_not_exist_on_type_1_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_2_or_later,o,a,s);else{const s=II(e,t);if(void 0!==s){const e=hc(s);r=Yx(r,n?la.Property_0_may_not_exist_on_type_1_Did_you_mean_2:la.Property_0_does_not_exist_on_type_1_Did_you_mean_2,o,a,e),i=s.valueDeclaration&&jp(s.valueDeclaration,la._0_is_declared_here,e)}else{const e=function(e){return j.lib&&!j.lib.includes("dom")&&(n=e=>e.symbol&&/^(?:EventTarget|Node|(?:HTML[a-zA-Z]*)?Element)$/.test(fc(e.symbol.escapedName)),3145728&(t=e).flags?v(t.types,n):n(t))&&LS(e);var t,n}(t)?la.Property_0_does_not_exist_on_type_1_Try_changing_the_lib_compiler_option_to_include_dom:la.Property_0_does_not_exist_on_type_1;r=Yx(Sf(r,t),e,o,a)}}}}const o=Bp(hd(e),e,r);i&&iT(o,i),Ro(!n||r.code!==la.Property_0_may_not_exist_on_type_1_Did_you_mean_2.code,o)}function FI(e,t){const n=t.symbol&&Cf(S_(t.symbol),e);return void 0!==n&&!!n.valueDeclaration&&Nv(n.valueDeclaration)}function EI(e,t){return JI(e,vp(t),106500)}function II(e,t){let n=vp(t);if("string"!=typeof e){const r=e.parent;HD(r)&&(n=N(n,(e=>UI(r,t,e)))),e=mc(e)}return JI(e,n,111551)}function OI(e,t){const n=Ze(e)?e:mc(e),r=vp(t);return("for"===n?b(r,(e=>"htmlFor"===hc(e))):"class"===n?b(r,(e=>"className"===hc(e))):void 0)??JI(n,r,111551)}function LI(e,t){const n=II(e,t);return n&&hc(n)}function RI(e,t,n){return un.assert(void 0!==t,"outername should always be defined"),Ve(e,t,n,void 0,!1,!1)}function BI(e,t){return t.exports&&JI(mc(e),os(t),2623475)}function JI(e,t,n){return Lt(e,t,(function(e){const t=hc(e);if(!Gt(t,'"')){if(e.flags&n)return t;if(2097152&e.flags){const r=function(e){if(oa(e).aliasTarget!==kt)return Ba(e)}(e);if(r&&r.flags&n)return t}}}))}function zI(e,t,n){const r=e&&106500&e.flags&&e.valueDeclaration;if(!r)return;const i=Cv(r,2),o=e.valueDeclaration&&kc(e.valueDeclaration)&&qN(e.valueDeclaration.name);if((i||o)&&(!t||!ax(t)||65536&e.flags)){if(n){const n=_c(t,i_);if(n&&n.symbol===e)return}(1&nx(e)?oa(e).target:e).isReferenced=-1}}function qI(e,t){return 110===e.kind||!!t&&ob(e)&&t===dN(ab(e))}function UI(e,t,n){return WI(e,211===e.kind&&108===e.expression.kind,!1,t,n)}function VI(e,t,n,r){if(Wc(r))return!0;const i=Cf(r,n);return!!i&&WI(e,t,!1,r,i)}function WI(e,t,n,r,i){if(Wc(r))return!0;if(i.valueDeclaration&&Hl(i.valueDeclaration)){const t=Gf(i.valueDeclaration);return!gl(e)&&!!_c(e,(e=>e===t))}return oI(e,t,n,r,i)}function KI(e){const t=e.initializer;if(261===t.kind){const e=t.declarations[0];if(e&&!x_(e.name))return ps(e)}else if(80===t.kind)return dN(t)}function GI(e,t,n){const r=0!==Gg(e)||yI(e)?Sw(t):t,i=e.argumentExpression,o=Lj(i);if($c(r)||r===dn)return r;if(ej(r)&&!Lu(i))return jo(i,la.A_const_enum_member_can_only_be_accessed_using_a_string_literal),Et;const a=function(e){const t=oh(e);if(80===t.kind){const r=dN(t);if(3&r.flags){let t=e,i=e.parent;for(;i;){if(249===i.kind&&t===i.statement&&KI(i)===r&&1===Kf(n=Aj(i.expression)).length&&dm(n,Wt))return!0;t=i,i=i.parent}}}var n;return!1}(i)?Wt:o,s=Gg(e);let c;0===s?c=32:(c=4|(lx(r)&&!JT(r)?2:0),2===s&&(c|=32));const l=Sx(r,a,c,e)||Et;return Zj(CI(e,aa(e).resolvedSymbol,l,i,n),e)}function XI(e){return L_(e)||QD(e)||vu(e)}function QI(e){return XI(e)&&d(e.typeArguments,dB),215===e.kind?Lj(e.template):vu(e)?Lj(e.attributes):cF(e)?Lj(e.left):L_(e)&&d(e.arguments,(e=>{Lj(e)})),si}function YI(e){return QI(e),ci}function ZI(e){return!!e&&(230===e.kind||237===e.kind&&e.isSpread)}function eO(e){return k(e,ZI)}function tO(e){return!!(16384&e.flags)}function nO(e){return!!(49155&e.flags)}function rO(e,t,n,r=!1){if(NE(e))return!0;let i,o=!1,a=hL(n),s=yL(n);if(215===e.kind)if(i=t.length,228===e.template.kind){const t=ve(e.template.templateSpans);o=Cd(t.literal)||!!t.literal.isUnterminated}else{const t=e.template;un.assert(15===t.kind),o=!!t.isUnterminated}else if(170===e.kind)i=xO(e,n);else if(226===e.kind)i=1;else if(vu(e)){if(o=e.attributes.end===e.end,o)return!0;i=0===s?t.length:1,a=0===t.length?a:1,s=Math.min(s,1)}else{if(!e.arguments)return un.assert(214===e.kind),0===yL(n);{i=r?t.length+1:t.length,o=e.arguments.end===e.end;const a=eO(t);if(a>=0)return a>=yL(n)&&(vL(n)||aa)return!1;if(o||i>=s)return!0;for(let t=i;t=r&&t.length<=n}function oO(e,t){let n;return!!(e.target&&(n=fL(e.target,t))&&cx(n))}function aO(e){return cO(e,0,!1)}function sO(e){return cO(e,0,!1)||cO(e,1,!1)}function cO(e,t,n){if(524288&e.flags){const r=pp(e);if(n||0===r.properties.length&&0===r.indexInfos.length){if(0===t&&1===r.callSignatures.length&&0===r.constructSignatures.length)return r.callSignatures[0];if(1===t&&1===r.constructSignatures.length&&0===r.callSignatures.length)return r.constructSignatures[0]}}}function lO(e,t,n,r){const i=Ew($g(e),e,0,r),o=bL(t),a=n&&(o&&262144&o.flags?n.nonFixingMapper:n.mapper);return Dw(a?Vk(t,a):t,e,((e,t)=>{rN(i.inferences,e,t)})),n||Fw(t,e,((e,t)=>{rN(i.inferences,e,t,128)})),Lg(e,_N(i),Fm(t.declaration))}function _O(e){if(!e)return ln;const t=Lj(e);return mb(e)?t:hl(e.parent)?rw(t):gl(e.parent)?ow(t):t}function uO(e,t,n,r,i){if(vu(e))return function(e,t,n,r){const i=mA(t,e),o=pj(e.attributes,i,r,n);return rN(r.inferences,o,i),_N(r)}(e,t,r,i);if(170!==e.kind&&226!==e.kind){const n=v(t.typeParameters,(e=>!!of(e))),r=sA(e,n?8:0);if(r){const o=Tg(t);if(Jw(o)){const a=fA(e);if(n||sA(e,8)===r){const e=Bw(function(e,t=0){return e&&Pw(E(e.inferences,Rw),e.signature,e.flags|t,e.compareTypes)}(a,1)),t=tS(r,e),n=aO(t),s=n&&n.typeParameters?Yg(jg(n,n.typeParameters)):t;rN(i.inferences,s,o,128)}const s=Ew(t.typeParameters,t,i.flags),c=tS(r,a&&a.returnMapper);rN(s.inferences,c,o),i.returnMapper=$(s.inferences,Nj)?Bw(function(e){const t=N(e.inferences,Nj);return t.length?Pw(E(t,Rw),e.signature,e.flags,e.compareTypes):void 0}(s)):void 0}}}const o=xL(t),a=o?Math.min(hL(t)-1,n.length):n.length;if(o&&262144&o.flags){const e=b(i.inferences,(e=>e.typeParameter===o));e&&(e.impliedArity=k(n,ZI,a)<0?n.length-a:void 0)}const s=yg(t);if(s&&Jw(s)){const t=yO(e);rN(i.inferences,_O(t),s)}for(let e=0;e=n-1){const t=e[n-1];if(ZI(t)){const e=237===t.kind?t.type:pj(t.expression,r,i,o);return CC(e)?dO(e):uv(rM(33,e,jt,230===t.kind?t.expression:t),a)}}const s=[],c=[],l=[];for(let _=t;_Yx(void 0,la.Type_0_does_not_satisfy_the_constraint_1):void 0,l=r||la.Type_0_does_not_satisfy_the_constraint_1;s||(s=Tk(o,a));const _=a[e];if(!bS(_,ld(tS(i,s),_),n?t[e]:void 0,l,c))return}}return a}function mO(e){if(PA(e.tagName))return 2;const t=pf(Lj(e.tagName));return u(Rf(t,1))?0:u(Rf(t,0))?1:2}function gO(e){return hF(e=oh(e))?oh(e.expression):e}function hO(e,t,n,r,i,o,a,s){const c={errors:void 0,skipLogging:!0};if(bu(e))return function(e,t,n,r,i,o,a){const s=mA(t,e),c=NE(e)?IA(e):pj(e.attributes,s,void 0,r),l=4&r?fw(c):c;return function(){var t;if(MA(e))return!0;const n=!TE(e)&&!SE(e)||PA(e.tagName)||IE(e.tagName)?void 0:Lj(e.tagName);if(!n)return!0;const r=Rf(n,0);if(!u(r))return!0;const o=SJ(e);if(!o)return!0;const s=Ka(o,111551,!0,!1,e);if(!s)return!0;const c=Rf(S_(s),0);if(!u(c))return!0;let l=!1,_=0;for(const e of c){const t=Rf(pL(e,0),0);if(u(t))for(const e of t){if(l=!0,vL(e))return!0;const t=hL(e);t>_&&(_=t)}}if(!l)return!0;let d=1/0;for(const e of r){const t=yL(e);t{n.push(e.expression)})),n}if(170===e.kind)return function(e){const t=e.expression,n=EL(e);if(n){const e=[];for(const r of n.parameters){const n=S_(r);e.push(vO(t,n))}return e}return un.fail()}(e);if(226===e.kind)return[e.left];if(vu(e))return e.attributes.properties.length>0||TE(e)&&e.parent.children.length>0?[e.attributes]:l;const t=e.arguments||l,n=eO(t);if(n>=0){const e=t.slice(0,n);for(let r=n;r{var o;const a=i.target.elementFlags[r],s=vO(n,4&a?uv(t):t,!!(12&a),null==(o=i.target.labeledElementDeclarations)?void 0:o[r]);e.push(s)})):e.push(n)}return e}return t}function xO(e,t){return j.experimentalDecorators?function(e,t){switch(e.parent.kind){case 263:case 231:return 1;case 172:return Av(e.parent)?3:2;case 174:case 177:case 178:return t.parameters.length<=2?2:3;case 169:return 3;default:return un.fail()}}(e,t):Math.min(Math.max(hL(t),1),2)}function kO(e){const t=hd(e),{start:n,length:r}=Gp(t,HD(e.expression)?e.expression.name:e.expression);return{start:n,length:r,sourceFile:t}}function SO(e,t,...n){if(GD(e)){const{sourceFile:r,start:i,length:o}=kO(e);return"message"in t?Kx(r,i,o,t,...n):Up(r,t)}return"message"in t?jp(e,t,...n):Bp(hd(e),e,t)}function TO(e,t,n,r){var i;const o=eO(n);if(o>-1)return jp(n[o],la.A_spread_argument_must_either_have_a_tuple_type_or_be_passed_to_a_rest_parameter);let a,s=Number.POSITIVE_INFINITY,c=Number.NEGATIVE_INFINITY,l=Number.NEGATIVE_INFINITY,_=Number.POSITIVE_INFINITY;for(const e of t){const t=yL(e),r=hL(e);tl&&(l=t),n.length1&&(y=A(S,mo,C,w)),y||(y=A(S,ho,C,w)),y)return y;if(y=function(e,t,n,r,i){return un.assert(t.length>0),mB(e),r||1===t.length||t.some((e=>!!e.typeParameters))?function(e,t,n,r){const i=function(e,t){let n=-1,r=-1;for(let i=0;i=t)return i;a>r&&(r=a,n=i)}return n}(t,void 0===Ee?n.length:Ee),o=t[i],{typeParameters:a}=o;if(!a)return o;const s=XI(e)?e.typeArguments:void 0,c=s?Rg(o,function(e,t,n){const r=e.map(ZB);for(;r.length>t.length;)r.pop();for(;r.lengthe.thisParameter));let n;t.length&&(n=NO(t,t.map(aL)));const{min:r,max:i}=oT(e,wO),o=[];for(let t=0;tUB(e)?tfL(e,t)))))}const a=B(e,(e=>UB(e)?ve(e.parameters):void 0));let s=128;if(0!==a.length){const t=uv(xb(B(e,Ag),2));o.push(DO(a,t)),s|=1}return e.some(VB)&&(s|=2),pd(e[0].declaration,void 0,n,o,Fb(e.map(Tg)),void 0,r,s)}(t)}(e,S,T,!!n,r),aa(e).resolvedSignature=y,f)if(!o&&p&&(o=la.The_left_hand_side_of_an_instanceof_expression_must_be_assignable_to_the_first_argument_of_the_right_hand_side_s_Symbol_hasInstance_method),m)if(1===m.length||m.length>3){const t=m[m.length-1];let n;m.length>3&&(n=Yx(n,la.The_last_overload_gave_the_following_error),n=Yx(n,la.No_overload_matches_this_call)),o&&(n=Yx(n,o));const r=hO(e,T,t,ho,0,!0,(()=>n),void 0);if(r)for(const e of r)t.declaration&&m.length>3&&iT(e,jp(t.declaration,la.The_last_overload_is_declared_here)),P(t,e),uo.add(e);else un.fail("No error for last overload signature")}else{const t=[];let n=0,r=Number.MAX_VALUE,i=0,a=0;for(const o of m){const s=hO(e,T,o,ho,0,!0,(()=>Yx(void 0,la.Overload_0_of_1_2_gave_the_following_error,a+1,S.length,ac(o))),void 0);s?(s.length<=r&&(r=s.length,i=a),n=Math.max(n,s.length),t.push(s)):un.fail("No error for 3 or fewer overload signatures"),a++}const s=n>1?t[i]:I(t);un.assert(s.length>0,"No errors reported for 3 or fewer overload signatures");let c=Yx(E(s,Vp),la.No_overload_matches_this_call);o&&(c=Yx(c,o));const l=[...O(s,(e=>e.relatedInformation))];let _;if(v(s,(e=>e.start===s[0].start&&e.length===s[0].length&&e.file===s[0].file))){const{file:e,start:t,length:n}=s[0];_={file:e,start:t,length:n,code:c.code,category:c.category,messageText:c,relatedInformation:l}}else _=Bp(hd(e),L_(F=e)?HD(F.expression)?F.expression.name:F.expression:QD(F)?HD(F.tag)?F.tag.name:F.tag:vu(F)?F.tagName:F,c,l);P(m[0],_),uo.add(_)}else if(g)uo.add(TO(e,[g],T,o));else if(h)fO(h,e.typeArguments,!0,o);else if(!_){const n=N(t,(e=>iO(e,x)));0===n.length?uo.add(function(e,t,n,r){const i=n.length;if(1===t.length){const o=t[0],a=ng(o.typeParameters),s=u(o.typeParameters);if(r){let t=Yx(void 0,la.Expected_0_type_arguments_but_got_1,ai?a=Math.min(a,t):n1?b(s,(e=>i_(e)&&wd(e.body))):void 0;if(c){const e=ig(c),n=!e.typeParameters;A([e],ho,n)&&iT(t,jp(c,la.The_call_would_have_succeeded_against_this_implementation_but_implementation_signatures_of_overloads_are_not_externally_visible))}m=i,g=o,h=a}function A(t,n,r,i=!1){var o,a,s;if(m=void 0,g=void 0,h=void 0,r){const r=t[0];if($(x)||!rO(e,T,r,i))return;return hO(e,T,r,n,0,!1,void 0,void 0)?void(m=[r]):r}for(let r=0;re===t))&&(_=(s=_).typeParameters?s.implementationSignatureCache||(s.implementationSignatureCache=function(e){return e.typeParameters?Vk(e,Tk([],[])):e}(s)):s),$(x)){if(n=fO(_,x,!1),!n){h=_;continue}}else l=Ew(_.typeParameters,_,Fm(e)?2:0),n=mk(uO(e,_,T,8|k,l),l.nonFixingMapper),k|=4&l.flags?8:0;if(c=Lg(_,n,Fm(_.declaration),l&&l.inferredTypeParameters),xL(_)&&!rO(e,T,c,i)){g=c;continue}}else c=_;if(!hO(e,T,c,n,k,!1,void 0,l)){if(k){if(k=0,l&&(c=Lg(_,mk(uO(e,_,T,k,l),l.mapper),Fm(_.declaration),l.inferredTypeParameters),xL(_)&&!rO(e,T,c,i))){g=c;continue}if(hO(e,T,c,n,k,!1,void 0,l)){(m||(m=[])).push(c);continue}}return t[r]=c,c}(m||(m=[])).push(c)}}}}function wO(e){const t=e.parameters.length;return UB(e)?t-1:t}function NO(e,t){return DO(e,xb(t,2))}function DO(e,t){return dw(ge(e),t)}function FO(e){return!(!e.typeParameters||!bJ(Tg(e)))}function EO(e,t,n,r){return Wc(e)||Wc(t)&&!!(262144&e.flags)||!n&&!r&&!(1048576&t.flags)&&!(131072&yf(t).flags)&&gS(e,Xn)}function PO(e,t,n){let r=cI(e.expression);if(r===dn)return _i;if(r=pf(r),$c(r))return YI(e);if(Wc(r))return e.typeArguments&&jo(e,la.Untyped_function_calls_may_not_accept_type_arguments),QI(e);const i=Rf(r,1);if(i.length){if(!function(e,t){if(!t||!t.declaration)return!0;const n=t.declaration,r=Lv(n,6);if(!r||176!==n.kind)return!0;const i=fx(n.parent.symbol),o=fu(n.parent.symbol);if(!BB(e,i)){const t=Gf(e);if(t&&4&r){const e=ZB(t);if(IO(n.parent.symbol,e))return!0}return 2&r&&jo(e,la.Constructor_of_class_0_is_private_and_only_accessible_within_the_class_declaration,sc(o)),4&r&&jo(e,la.Constructor_of_class_0_is_protected_and_only_accessible_within_the_class_declaration,sc(o)),!1}return!0}(e,i[0]))return YI(e);if(AO(i,(e=>!!(4&e.flags))))return jo(e,la.Cannot_create_an_instance_of_an_abstract_class),YI(e);const o=r.symbol&&fx(r.symbol);return o&&wv(o,64)?(jo(e,la.Cannot_create_an_instance_of_an_abstract_class),YI(e)):CO(e,i,t,n,0)}const o=Rf(r,0);if(o.length){const r=CO(e,o,t,n,0);return ne||(r.declaration&&!qO(r.declaration)&&Tg(r)!==ln&&jo(e,la.Only_a_void_function_can_be_called_with_the_new_keyword),yg(r)===ln&&jo(e,la.A_function_that_is_called_with_the_new_keyword_cannot_have_a_this_type_that_is_void)),r}return LO(e.expression,r,1),YI(e)}function AO(e,t){return Qe(e)?$(e,(e=>AO(e,t))):1048576===e.compositeKind?$(e.compositeSignatures,t):t(e)}function IO(e,t){const n=Z_(t);if(!u(n))return!1;const r=n[0];if(2097152&r.flags){const t=Ad(r.types);let n=0;for(const i of r.types){if(!t[n]&&3&mx(i)){if(i.symbol===e)return!0;if(IO(e,i))return!0}n++}return!1}return r.symbol===e||IO(e,r)}function OO(e,t,n){let r;const i=0===n,o=dR(t),a=o&&Rf(o,n).length>0;if(1048576&t.flags){const e=t.types;let o=!1;for(const a of e)if(0!==Rf(a,n).length){if(o=!0,r)break}else if(r||(r=Yx(r,i?la.Type_0_has_no_call_signatures:la.Type_0_has_no_construct_signatures,sc(a)),r=Yx(r,i?la.Not_all_constituents_of_type_0_are_callable:la.Not_all_constituents_of_type_0_are_constructable,sc(t))),o)break;o||(r=Yx(void 0,i?la.No_constituent_of_type_0_is_callable:la.No_constituent_of_type_0_is_constructable,sc(t))),r||(r=Yx(r,i?la.Each_member_of_the_union_type_0_has_signatures_but_none_of_those_signatures_are_compatible_with_each_other:la.Each_member_of_the_union_type_0_has_construct_signatures_but_none_of_those_signatures_are_compatible_with_each_other,sc(t)))}else r=Yx(r,i?la.Type_0_has_no_call_signatures:la.Type_0_has_no_construct_signatures,sc(t));let s=i?la.This_expression_is_not_callable:la.This_expression_is_not_constructable;if(GD(e.parent)&&0===e.parent.arguments.length){const{resolvedSymbol:t}=aa(e);t&&32768&t.flags&&(s=la.This_expression_is_not_callable_because_it_is_a_get_accessor_Did_you_mean_to_use_it_without)}return{messageChain:Yx(r,s),relatedMessage:a?la.Did_you_forget_to_use_await:void 0}}function LO(e,t,n,r){const{messageChain:i,relatedMessage:o}=OO(e,t,n),a=Bp(hd(e),e,i);if(o&&iT(a,jp(e,o)),GD(e.parent)){const{start:t,length:n}=kO(e.parent);a.start=t,a.length=n}uo.add(a),jO(t,n,r?iT(a,r):a)}function jO(e,t,n){if(!e.symbol)return;const r=oa(e.symbol).originatingImport;if(r&&!cf(r)){const i=Rf(S_(oa(e.symbol).target),t);if(!i||!i.length)return;iT(n,jp(r,la.Type_originates_at_this_import_A_namespace_style_import_cannot_be_called_or_constructed_and_will_cause_a_failure_at_runtime_Consider_using_a_default_import_or_import_require_here_instead))}}function RO(e,t){const n=BA(e),r=n&&cs(n),i=r&&sa(r,vB.Element,788968),o=i&&xe.symbolToEntityName(i,788968,e),a=XC.createFunctionTypeNode(void 0,[XC.createParameterDeclaration(void 0,void 0,"props",void 0,xe.typeToTypeNode(t,e))],o?XC.createTypeReferenceNode(o,void 0):XC.createKeywordTypeNode(133)),s=Wo(1,"props");return s.links.type=t,pd(a,void 0,void 0,[s],i?fu(i):Et,void 0,1,0)}function MO(e){const t=aa(hd(e));if(void 0!==t.jsxFragmentType)return t.jsxFragmentType;const n=Eo(e);if("null"===n)return t.jsxFragmentType=wt;const r=uo?la.Using_JSX_fragments_requires_fragment_factory_0_to_be_in_scope_but_it_could_not_be_found:void 0,i=MA(e)??Ue(e,n,1===j.jsx?111167:111551,r,!0);if(void 0===i)return t.jsxFragmentType=Et;if(i.escapedName===xB.Fragment)return t.jsxFragmentType=S_(i);const o=2097152&i.flags?Ba(i):i,a=i&&cs(o),s=a&&sa(a,xB.Fragment,2),c=s&&S_(s);return t.jsxFragmentType=void 0===c?Et:c}function BO(e,t,n){const r=NE(e);let i;if(r)i=MO(e);else{if(PA(e.tagName)){const t=WA(e),n=RO(e,t);return xS(pj(e.attributes,mA(n,e),void 0,0),t,e.tagName,e.attributes),u(e.typeArguments)&&(d(e.typeArguments,dB),uo.add(Rp(hd(e),e.typeArguments,la.Expected_0_type_arguments_but_got_1,0,u(e.typeArguments)))),n}i=Lj(e.tagName)}const o=pf(i);if($c(o))return YI(e);const a=qA(i,e);return EO(i,o,a.length,0)?QI(e):0===a.length?(r?jo(e,la.JSX_element_type_0_does_not_have_any_construct_or_call_signatures,Kd(e)):jo(e.tagName,la.JSX_element_type_0_does_not_have_any_construct_or_call_signatures,Kd(e.tagName)),YI(e)):CO(e,a,t,n,0)}function JO(e,t,n){switch(e.kind){case 213:return function(e,t,n){if(108===e.expression.kind){const r=xP(e.expression);if(Wc(r)){for(const t of e.arguments)Lj(t);return si}if(!$c(r)){const i=hh(Gf(e));if(i)return CO(e,$_(r,i.typeArguments,i),t,n,0)}return QI(e)}let r,i=Lj(e.expression);if(ml(e)){const t=sw(i,e.expression);r=t===i?0:vl(e)?16:8,i=t}else r=0;if(i=pI(i,e.expression,dI),i===dn)return _i;const o=pf(i);if($c(o))return YI(e);const a=Rf(o,0),s=Rf(o,1).length;if(EO(i,o,a.length,s))return!$c(i)&&e.typeArguments&&jo(e,la.Untyped_function_calls_may_not_accept_type_arguments),QI(e);if(!a.length){if(s)jo(e,la.Value_of_type_0_is_not_callable_Did_you_mean_to_include_new,sc(i));else{let t;if(1===e.arguments.length){const n=hd(e).text;Ua(n.charCodeAt(Xa(n,e.expression.end,!0)-1))&&(t=jp(e.expression,la.Are_you_missing_a_semicolon))}LO(e.expression,o,0,t)}return YI(e)}return 8&n&&!e.typeArguments&&a.some(FO)?(wj(e,n),li):a.some((e=>Fm(e.declaration)&&!!Rc(e.declaration)))?(jo(e,la.Value_of_type_0_is_not_callable_Did_you_mean_to_include_new,sc(i)),YI(e)):CO(e,a,t,n,r)}(e,t,n);case 214:return PO(e,t,n);case 215:return function(e,t,n){const r=Lj(e.tag),i=pf(r);if($c(i))return YI(e);const o=Rf(i,0),a=Rf(i,1).length;if(EO(r,i,o.length,a))return QI(e);if(!o.length){if(WD(e.parent)){const t=jp(e.tag,la.It_is_likely_that_you_are_missing_a_comma_to_separate_these_two_template_expressions_They_form_a_tagged_template_expression_which_cannot_be_invoked);return uo.add(t),YI(e)}return LO(e.tag,i,0),YI(e)}return CO(e,o,t,n,0)}(e,t,n);case 170:return function(e,t,n){const r=Lj(e.expression),i=pf(r);if($c(i))return YI(e);const o=Rf(i,0),a=Rf(i,1).length;if(EO(r,i,o.length,a))return QI(e);if(s=e,(c=o).length&&v(c,(e=>0===e.minArgumentCount&&!UB(e)&&e.parameters.length!!e.typeParameters&&iO(e,n))),(e=>{const t=fO(e,n,!0);return t?Lg(e,t,Fm(e.declaration)):e}))}}function rL(e,t,n){const r=Lj(e,n),i=dk(t);return $c(i)?i:(xS(r,i,_c(t.parent,(e=>238===e.kind||350===e.kind)),e,la.Type_0_does_not_satisfy_the_expected_type_1),r)}function iL(e){switch(e.keywordToken){case 102:return My();case 105:const t=oL(e);return $c(t)?Et:function(e){const t=Wo(0,"NewTargetExpression"),n=Wo(4,"target",8);n.parent=t,n.links.type=e;const r=Hu([n]);return t.members=r,Bs(t,r,l,l,l)}(t);default:un.assertNever(e.keywordToken)}}function oL(e){const t=nm(e);return t?176===t.kind?S_(ps(t.parent)):S_(ps(t)):(jo(e,la.Meta_property_0_is_only_allowed_in_the_body_of_a_function_declaration_function_expression_or_constructor,"new.target"),Et)}function aL(e){const t=e.valueDeclaration;return kl(S_(e),!1,!!t&&(Fu(t)||KT(t)))}function sL(e,t,n){switch(e.name.kind){case 80:{const r=e.name.escapedText;return e.dotDotDotToken?12&n?r:`${r}_${t}`:3&n?r:`${r}_n`}case 207:if(e.dotDotDotToken){const r=e.name.elements,i=tt(ye(r),VD),o=r.length-((null==i?void 0:i.dotDotDotToken)?1:0);if(t=r-1)return t===r-1?o:uv(vx(o,Wt));const a=[],s=[],c=[];for(let n=t;n!(1&e))),i=r<0?n.target.fixedLength:r;i>0&&(t=e.parameters.length-1+i)}}if(void 0===t){if(!n&&32&e.flags)return 0;t=e.minArgumentCount}if(r)return t;for(let n=t-1;n>=0&&!(131072&OD(pL(e,n),tO).flags);n--)t=n;e.resolvedMinArgumentCount=t}return e.resolvedMinArgumentCount}function vL(e){if(UB(e)){const t=S_(e.parameters[e.parameters.length-1]);return!UC(t)||!!(12&t.target.combinedFlags)}return!1}function bL(e){if(UB(e)){const t=S_(e.parameters[e.parameters.length-1]);if(!UC(t))return Wc(t)?cr:t;if(12&t.target.combinedFlags)return Jv(t,t.target.fixedLength)}}function xL(e){const t=bL(e);return!t||yC(t)||Wc(t)?void 0:t}function kL(e){return SL(e,_n)}function SL(e,t){return e.parameters.length>0?pL(e,0):t}function TL(e,t,n){const r=e.parameters.length-(UB(e)?1:0);for(let i=0;i=0);const i=dD(e.parent)?S_(ps(e.parent.parent)):rJ(e.parent),o=dD(e.parent)?jt:iJ(e.parent),a=ok(r),s=$o("target",i),c=$o("propertyKey",o),l=$o("parameterIndex",a);n.decoratorSignature=mR(void 0,void 0,[s,c,l],ln);break}case 174:case 177:case 178:case 172:{const e=t;if(!__(e.parent))break;const r=$o("target",rJ(e)),i=$o("propertyKey",iJ(e)),o=cD(e)?ln:nv(ZB(e));if(!cD(t)||Av(t)){const t=$o("descriptor",nv(ZB(e)));n.decoratorSignature=mR(void 0,void 0,[r,i,t],xb([o,ln]))}else n.decoratorSignature=mR(void 0,void 0,[r,i],xb([o,ln]));break}}return n.decoratorSignature===si?void 0:n.decoratorSignature}(e):FL(e)}function PL(e){const t=Uy(!0);return t!==On?jh(t,[e=pR(lR(e))||Ot]):Ot}function AL(e){const t=Vy(!0);return t!==On?jh(t,[e=pR(lR(e))||Ot]):Ot}function IL(e,t){const n=PL(t);return n===Ot?(jo(e,cf(e)?la.A_dynamic_import_call_returns_a_Promise_Make_sure_you_have_a_declaration_for_Promise_or_include_ES2015_in_your_lib_option:la.An_async_function_or_method_must_return_a_Promise_Make_sure_you_have_a_declaration_for_Promise_or_include_ES2015_in_your_lib_option),Et):(Wy(!0)||jo(e,cf(e)?la.A_dynamic_import_call_in_ES5_requires_the_Promise_constructor_Make_sure_you_have_a_declaration_for_the_Promise_constructor_or_include_ES2015_in_your_lib_option:la.An_async_function_or_method_in_ES5_requires_the_Promise_constructor_Make_sure_you_have_a_declaration_for_the_Promise_constructor_or_include_ES2015_in_your_lib_option),n)}function OL(e,t){if(!e.body)return Et;const n=Ih(e),r=!!(2&n),i=!!(1&n);let o,a,s,c=ln;if(241!==e.body.kind)o=fj(e.body,t&&-9&t),r&&(o=lR(aR(o,!1,e,la.The_return_type_of_an_async_function_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member)));else if(i){const n=JL(e,t);n?n.length>0&&(o=xb(n,2)):c=_n;const{yieldTypes:r,nextTypes:i}=function(e,t){const n=[],r=[],i=!!(2&Ih(e));return Nf(e.body,(e=>{const o=e.expression?Lj(e.expression,t):Rt;let a;if(ce(n,jL(e,o,wt,i)),e.asteriskToken){const t=_M(o,i?19:17,e.expression);a=t&&t.nextType}else a=sA(e,void 0);a&&ce(r,a)})),{yieldTypes:n,nextTypes:r}}(e,t);a=$(r)?xb(r,2):void 0,s=$(i)?Fb(i):void 0}else{const r=JL(e,t);if(!r)return 2&n?IL(e,_n):_n;if(0===r.length){const t=RP(e,void 0),r=t&&32768&(NM(t,n)||ln).flags?jt:ln;return 2&n?IL(e,r):r}o=xb(r,2)}if(o||a||s){if(a&&Nw(e,a,3),o&&Nw(e,o,1),s&&Nw(e,s,2),o&&OC(o)||a&&OC(a)||s&&OC(s)){const t=yA(e),n=t?t===ig(e)?i?void 0:o:nA(Tg(t),e,void 0):void 0;i?(a=qC(a,n,0,r),o=qC(o,n,1,r),s=qC(s,n,2,r)):o=function(e,t,n){return e&&OC(e)&&(e=zC(e,t?n?oR(t):t:void 0)),e}(o,n,r)}a&&(a=Sw(a)),o&&(o=Sw(o)),s&&(s=Sw(s))}return i?LL(a||_n,o||c,s||jP(2,e)||Ot,r):r?PL(o||c):o||c}function LL(e,t,n,r){const i=r?gi:hi,o=i.getGlobalGeneratorType(!1);if(e=i.resolveIterationType(e,void 0)||Ot,t=i.resolveIterationType(t,void 0)||Ot,o===On){const r=i.getGlobalIterableIteratorType(!1);return r!==On?tv(r,[e,t,n]):(i.getGlobalIterableIteratorType(!0),Nn)}return tv(o,[e,t,n])}function jL(e,t,n,r){const i=e.expression||e,o=e.asteriskToken?rM(r?19:17,t,n,i):t;return r?dR(o,i,e.asteriskToken?la.Type_of_iterated_elements_of_a_yield_Asterisk_operand_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member:la.Type_of_yield_operand_in_an_async_generator_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member):o}function RL(e,t,n){let r=0;for(let i=0;i=t?n[i]:void 0;r|=void 0!==o?FB.get(o)||32768:0}return r}function ML(e){const t=aa(e);if(void 0===t.isExhaustive){t.isExhaustive=0;const n=function(e){if(221===e.expression.kind){const t=tD(e);if(!t)return!1;const n=Wp(fj(e.expression.expression)),r=RL(0,0,t);return 3&n.flags?!(556800&~r):!ED(n,(e=>PN(e,r)===r))}const t=fj(e.expression);if(!jC(t))return!1;const n=ZN(e);return!(!n.length||$(n,IC))&&(r=zD(t,nk),i=n,1048576&r.flags?!d(r.types,(e=>!T(i,e))):T(i,r));var r,i}(e);0===t.isExhaustive&&(t.isExhaustive=n)}else 0===t.isExhaustive&&(t.isExhaustive=!1);return t.isExhaustive}function BL(e){return e.endFlowNode&&LF(e.endFlowNode)}function JL(e,t){const n=Ih(e),r=[];let i=BL(e),o=!1;if(wf(e.body,(a=>{let s=a.expression;if(s){if(s=oh(s,!0),2&n&&223===s.kind&&(s=oh(s.expression,!0)),213===s.kind&&80===s.expression.kind&&fj(s.expression).symbol===ds(e.symbol)&&(!jT(e.symbol.valueDeclaration)||BF(s.expression)))return void(o=!0);let i=fj(s,t&&-9&t);2&n&&(i=lR(aR(i,!1,e,la.The_return_type_of_an_async_function_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member))),131072&i.flags&&(o=!0),ce(r,i)}else i=!0})),0!==r.length||i||!o&&!function(e){switch(e.kind){case 218:case 219:return!0;case 174:return 210===e.parent.kind;default:return!1}}(e))return!(H&&r.length&&i)||qO(e)&&r.some((t=>t.symbol===e.symbol))||ce(r,jt),r}function zL(e,t){a((function(){const n=Ih(e),r=t&&NM(t,n);if(r&&(QL(r,16384)||32769&r.flags))return;if(173===e.kind||Cd(e.body)||241!==e.body.kind||!BL(e))return;const i=1024&e.flags,o=mv(e)||e;if(r&&131072&r.flags)jo(o,la.A_function_returning_never_cannot_have_a_reachable_end_point);else if(r&&!i)jo(o,la.A_function_whose_declared_type_is_neither_undefined_void_nor_any_must_return_a_value);else if(r&&H&&!gS(jt,r))jo(o,la.Function_lacks_ending_return_statement_and_return_type_does_not_include_undefined);else if(j.noImplicitReturns){if(!r){if(!i)return;const t=Tg(ig(e));if(DM(e,t))return}jo(o,la.Not_all_code_paths_return_a_value)}}))}function qL(e,t){if(un.assert(174!==e.kind||Mf(e)),mB(e),eF(e)&&WR(e,e.name),t&&4&t&&aS(e)){if(!mv(e)&&!IT(e)){const n=vA(e);if(n&&Jw(Tg(n))){const n=aa(e);if(n.contextFreeType)return n.contextFreeType;const r=OL(e,t),i=pd(void 0,void 0,void 0,l,r,void 0,0,64),o=Bs(e.symbol,P,[i],l,l);return o.objectFlags|=262144,n.contextFreeType=o}}return Ln}return IJ(e)||218!==e.kind||BJ(e),function(e,t){const n=aa(e);if(!(64&n.flags)){const r=vA(e);if(!(64&n.flags)){n.flags|=64;const i=fe(Rf(S_(ps(e)),0));if(!i)return;if(aS(e))if(r){const n=fA(e);let o;if(t&&2&t){TL(i,r,n);const e=bL(r);e&&262144&e.flags&&(o=Vk(r,n.nonFixingMapper))}o||(o=n?Vk(r,n.mapper):r),function(e,t){if(t.typeParameters){if(e.typeParameters)return;e.typeParameters=t.typeParameters}if(t.thisParameter){const n=e.thisParameter;(!n||n.valueDeclaration&&!n.valueDeclaration.type)&&(n||(e.thisParameter=dw(t.thisParameter,void 0)),CL(e.thisParameter,S_(t.thisParameter)))}const n=e.parameters.length-(UB(e)?1:0);for(let r=0;re.parameters.length){const n=fA(e);t&&2&t&&TL(i,r,n)}if(r&&!Fg(e)&&!i.resolvedReturnType){const n=OL(e,t);i.resolvedReturnType||(i.resolvedReturnType=n)}Bj(e)}}}(e,t),S_(ps(e))}function UL(e,t,n,r=!1){if(!gS(t,yn)){const i=r&&iR(t);return Jo(e,!!i&&gS(i,yn),n),!1}return!0}function VL(e){if(!GD(e))return!1;if(!tg(e))return!1;const t=fj(e.arguments[2]);if(Uc(t,"value")){const e=Cf(t,"writable"),n=e&&S_(e);if(!n||n===Ht||n===Qt)return!0;if(e&&e.valueDeclaration&&ME(e.valueDeclaration)){const t=Lj(e.valueDeclaration.initializer);if(t===Ht||t===Qt)return!0}return!1}return!Cf(t,"set")}function WL(e){return!!(8&nx(e)||4&e.flags&&8&rx(e)||3&e.flags&&6&ZA(e)||98304&e.flags&&!(65536&e.flags)||8&e.flags||$(e.declarations,VL))}function $L(e,t,n){var r,i;if(0===n)return!1;if(WL(t)){if(4&t.flags&&kx(e)&&110===e.expression.kind){const n=Hf(e);if(!n||176!==n.kind&&!qO(n))return!0;if(t.valueDeclaration){const e=cF(t.valueDeclaration),o=n.parent===t.valueDeclaration.parent,a=n===t.valueDeclaration.parent,s=e&&(null==(r=t.parent)?void 0:r.valueDeclaration)===n.parent,c=e&&(null==(i=t.parent)?void 0:i.valueDeclaration)===n;return!(o||a||s||c)}}return!0}if(kx(e)){const t=oh(e.expression);if(80===t.kind){const e=aa(t).resolvedSymbol;if(2097152&e.flags){const t=ba(e);return!!t&&274===t.kind}}}return!1}function HL(e,t,n){const r=cA(e,7);return 80===r.kind||kx(r)?!(64&r.flags&&(jo(e,n),1)):(jo(e,t),!1)}function KL(e){let t=!1;const n=Qf(e);if(n&&uD(n))jo(e,oF(e)?la.await_expression_cannot_be_used_inside_a_class_static_block:la.await_using_statements_cannot_be_used_inside_a_class_static_block),t=!0;else if(!(65536&e.flags))if(tm(e)){const n=hd(e);if(!ZJ(n)){let r;if(!mp(n,j)){r??(r=Hp(n,e.pos));const i=oF(e)?la.await_expressions_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_this_file_has_no_imports_or_exports_Consider_adding_an_empty_export_to_make_this_file_a_module:la.await_using_statements_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_this_file_has_no_imports_or_exports_Consider_adding_an_empty_export_to_make_this_file_a_module,o=Kx(n,r.start,r.length,i);uo.add(o),t=!0}switch(M){case 100:case 199:if(1===n.impliedNodeFormat){r??(r=Hp(n,e.pos)),uo.add(Kx(n,r.start,r.length,la.The_current_file_is_a_CommonJS_module_and_cannot_use_await_at_the_top_level)),t=!0;break}case 7:case 99:case 200:case 4:if(R>=4)break;default:r??(r=Hp(n,e.pos));const i=oF(e)?la.Top_level_await_expressions_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_node16_nodenext_or_preserve_and_the_target_option_is_set_to_es2017_or_higher:la.Top_level_await_using_statements_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_node16_nodenext_or_preserve_and_the_target_option_is_set_to_es2017_or_higher;uo.add(Kx(n,r.start,r.length,i)),t=!0}}}else{const r=hd(e);if(!ZJ(r)){const i=Hp(r,e.pos),o=oF(e)?la.await_expressions_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules:la.await_using_statements_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules,a=Kx(r,i.start,i.length,o);!n||176===n.kind||2&Ih(n)||iT(a,jp(n,la.Did_you_mean_to_mark_this_function_as_async)),uo.add(a),t=!0}}return oF(e)&&LP(e)&&(jo(e,la.await_expressions_cannot_be_used_in_a_parameter_initializer),t=!0),t}function GL(e){return QL(e,2112)?YL(e,3)||QL(e,296)?yn:$t:Wt}function XL(e,t){if(QL(e,t))return!0;const n=Wp(e);return!!n&&QL(n,t)}function QL(e,t){if(e.flags&t)return!0;if(3145728&e.flags){const n=e.types;for(const e of n)if(QL(e,t))return!0}return!1}function YL(e,t,n){return!!(e.flags&t)||!(n&&114691&e.flags)&&(!!(296&t)&&gS(e,Wt)||!!(2112&t)&&gS(e,$t)||!!(402653316&t)&&gS(e,Vt)||!!(528&t)&&gS(e,sn)||!!(16384&t)&&gS(e,ln)||!!(131072&t)&&gS(e,_n)||!!(65536&t)&&gS(e,zt)||!!(32768&t)&&gS(e,jt)||!!(4096&t)&&gS(e,cn)||!!(67108864&t)&&gS(e,mn))}function ZL(e,t,n){return 1048576&e.flags?v(e.types,(e=>ZL(e,t,n))):YL(e,t,n)}function ej(e){return!!(16&mx(e))&&!!e.symbol&&tj(e.symbol)}function tj(e){return!!(128&e.flags)}function nj(e){const t=mM("hasInstance");if(ZL(e,67108864)){const n=Cf(e,t);if(n){const e=S_(n);if(e&&0!==Rf(e,0).length)return e}}}function rj(e,t,n,r,i=!1){const o=e.properties,a=o[n];if(303===a.kind||304===a.kind){const e=a.name,n=Rb(e);if(oC(n)){const e=Cf(t,aC(n));e&&(zI(e,a,i),tI(a,!1,!0,t,e))}const r=nl(a,vx(t,n,32|(bA(a)?16:0),e));return oj(304===a.kind?a:a.initializer,r)}if(305===a.kind){if(!(nJv(e,n))):uv(r),i);jo(o.operatorToken,la.A_rest_element_cannot_have_an_initializer)}}}function oj(e,t,n,r){let i;if(304===e.kind){const r=e;r.objectAssignmentInitializer&&(H&&!AN(Lj(r.objectAssignmentInitializer),16777216)&&(t=ON(t,524288)),function(e,t,n,r){const i=t.kind;if(64===i&&(210===e.kind||209===e.kind))return oj(e,Lj(n,r),r,110===n.kind);let o;o=Hv(i)?tM(e,r):Lj(e,r);lj(e,t,n,o,Lj(n,r),r,void 0)}(r.name,r.equalsToken,r.objectAssignmentInitializer,n)),i=e.name}else i=e;return 226===i.kind&&64===i.operatorToken.kind&&(pe(i,n),i=i.left,H&&(t=ON(t,524288))),210===i.kind?function(e,t,n){const r=e.properties;if(H&&0===r.length)return fI(t,e);for(let i=0;i=32&&Mo(zE(nh(n.parent.parent)),s||t,la.This_operation_can_be_simplified_This_shift_is_identical_to_0_1_2,Kd(e),Da(c),r.value%32)}return l}case 40:case 65:if(r===dn||i===dn)return dn;let h;if(YL(r,402653316)||YL(i,402653316)||(r=fI(r,e),i=fI(i,n)),YL(r,296,!0)&&YL(i,296,!0)?h=Wt:YL(r,2112,!0)&&YL(i,2112,!0)?h=$t:YL(r,402653316,!0)||YL(i,402653316,!0)?h=Vt:(Wc(r)||Wc(i))&&(h=$c(r)||$c(i)?Et:wt),h&&!d(c))return h;if(!h){const e=402655727;return m(((t,n)=>YL(t,e)&&YL(n,e))),wt}return 65===c&&p(h),h;case 30:case 32:case 33:case 34:return d(c)&&(r=MC(fI(r,e)),i=MC(fI(i,n)),f(((e,t)=>{if(Wc(e)||Wc(t))return!0;const n=gS(e,yn),r=gS(t,yn);return n&&r||!n&&!r&&vS(e,t)}))),sn;case 35:case 36:case 37:case 38:if(!(o&&64&o)){if((Il(e)||Il(n))&&(!Fm(e)||37===c||38===c)){const e=35===c||37===c;jo(s,la.This_condition_will_always_return_0_since_JavaScript_compares_objects_by_reference_not_value,e?"false":"true")}!function(e,t,n,r){const i=g(oh(n)),o=g(oh(r));if(i||o){const a=jo(e,la.This_condition_will_always_return_0,Da(37===t||35===t?97:112));if(i&&o)return;const s=38===t||36===t?Da(54):"",c=i?r:n,l=oh(c);iT(a,jp(c,la.Did_you_mean_0,`${s}Number.isNaN(${ob(l)?Lp(l):"..."})`))}}(s,c,e,n),f(((e,t)=>sj(e,t)||sj(t,e)))}return sn;case 104:return function(e,t,n,r,i){if(n===dn||r===dn)return dn;!Wc(n)&&ZL(n,402784252)&&jo(e,la.The_left_hand_side_of_an_instanceof_expression_must_be_of_type_any_an_object_type_or_a_type_parameter),un.assert(fb(e.parent));const o=zO(e.parent,void 0,i);return o===li?dn:(bS(Tg(o),sn,t,la.An_object_s_Symbol_hasInstance_method_must_return_a_boolean_value_for_it_to_be_used_on_the_right_hand_side_of_an_instanceof_expression),sn)}(e,n,r,i,o);case 103:return function(e,t,n,r){return n===dn||r===dn?dn:(qN(e)?((Re===An||!!(2097152&e.flags)&&jS(Wp(e))))&&jo(t,la.Type_0_may_represent_a_primitive_value_which_is_not_permitted_as_the_right_operand_of_the_in_operator,sc(r)),sn)}(e,n,r,i);case 56:case 77:{const e=AN(r,4194304)?xb([(_=H?r:RC(i),zD(_,ZC)),i]):r;return 77===c&&p(i),e}case 57:case 76:{const e=AN(r,8388608)?xb([rw(QC(r)),i],2):r;return 76===c&&p(i),e}case 61:case 78:{const e=AN(r,262144)?xb([rw(r),i],2):r;return 78===c&&p(i),e}case 64:const y=cF(e.parent)?eg(e.parent):0;return function(e,t){if(2===e)for(const e of gp(t)){const t=S_(e);if(t.symbol&&32&t.symbol.flags){const t=e.escapedName,n=Ue(e.valueDeclaration,t,788968,void 0,!1);(null==n?void 0:n.declarations)&&n.declarations.some(CP)&&(Zo(n,la.Duplicate_identifier_0,fc(t),e),Zo(e,la.Duplicate_identifier_0,fc(t),n))}}}(y,i),function(t){var r;switch(t){case 2:return!0;case 1:case 5:case 6:case 3:case 4:const t=gs(e),i=Wm(n);return!!i&&$D(i)&&!!(null==(r=null==t?void 0:t.exports)?void 0:r.size);default:return!1}}(y)?(524288&i.flags&&(2===y||6===y||LS(i)||EN(i)||1&mx(i))||p(i),r):(p(i),i);case 28:if(!j.allowUnreachableCode&&aj(e)&&!(217===(l=e.parent).parent.kind&&kN(l.left)&&"0"===l.left.text&&(GD(l.parent.parent)&&l.parent.parent.expression===l.parent||215===l.parent.parent.kind)&&(kx(l.right)||zN(l.right)&&"eval"===l.right.escapedText))){const t=hd(e),n=Xa(t.text,e.pos);t.parseDiagnostics.some((e=>e.code===la.JSX_expressions_must_have_one_parent_element.code&&Es(e,n)))||jo(e,la.Left_side_of_comma_operator_is_unused_and_has_no_side_effects)}return i;default:return un.fail()}var l,_;function u(e,t){return YL(e,2112)&&YL(t,2112)}function d(t){const o=XL(r,12288)?e:XL(i,12288)?n:void 0;return!o||(jo(o,la.The_0_operator_cannot_be_applied_to_type_symbol,Da(t)),!1)}function p(i){Zv(c)&&a((function(){let o=r;if(MJ(t.kind)&&211===e.kind&&(o=gI(e,void 0,!0)),HL(e,la.The_left_hand_side_of_an_assignment_expression_must_be_a_variable_or_a_property_access,la.The_left_hand_side_of_an_assignment_expression_may_not_be_an_optional_property_access)){let t;if(_e&&HD(e)&&QL(i,32768)){const n=Uc(Aj(e.expression),e.name.escapedText);QS(i,n)&&(t=la.Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_type_of_the_target)}xS(i,o,e,n,t)}}))}function f(e){return!e(r,i)&&(m(e),!0)}function m(e){let n=!1;const o=s||t;if(e){const t=pR(r),o=pR(i);n=!(t===r&&o===i)&&!(!t||!o)&&e(t,o)}let a=r,c=i;!n&&e&&([a,c]=function(e,t,n){let r=e,i=t;const o=RC(e),a=RC(t);return n(o,a)||(r=o,i=a),[r,i]}(r,i,e));const[l,_]=cc(a,c);(function(e,n,r,i){switch(t.kind){case 37:case 35:case 38:case 36:return Jo(e,n,la.This_comparison_appears_to_be_unintentional_because_the_types_0_and_1_have_no_overlap,r,i);default:return}})(o,n,l,_)||Jo(o,n,la.Operator_0_cannot_be_applied_to_types_1_and_2,Da(t.kind),l,_)}function g(e){if(zN(e)&&"NaN"===e.escapedText){const t=Wr||(Wr=wy("NaN",!1));return!!t&&t===dN(e)}return!1}}function _j(e){const t=e.parent;return ZD(t)&&_j(t)||KD(t)&&t.argumentExpression===e}function uj(e){const t=[e.head.text],n=[];for(const r of e.templateSpans){const e=Lj(r.expression);XL(e,12288)&&jo(r.expression,la.Implicit_conversion_of_a_symbol_to_a_string_will_fail_at_runtime_Consider_wrapping_this_expression_in_String),t.push(r.literal.text),n.push(gS(e,vn)?e:Vt)}const r=215!==e.parent.kind&&Ce(e).value;return r?ek(ik(r)):xj(e)||_j(e)||ED(sA(e,void 0)||Ot,dj)?Vb(t,n):Vt}function dj(e){return!!(134217856&e.flags||58982400&e.flags&&QL(qp(e)||Ot,402653316))}function pj(e,t,n,r){const i=function(e){return EE(e)&&!SE(e.parent)?e.parent.parent:e}(e);uA(i,t,!1),function(e,t){Ai[Oi]=e,Ii[Oi]=t,Oi++}(i,n);const o=Lj(e,1|r|(n?2:0));n&&n.intraExpressionInferenceSites&&(n.intraExpressionInferenceSites=void 0);const a=QL(o,2944)&&bj(o,nA(t,e,void 0))?nk(o):o;return Oi--,dA(),a}function fj(e,t){if(t)return Lj(e,t);const n=aa(e);if(!n.resolvedType){const r=xi,i=ri;xi=ki,ri=void 0,n.resolvedType=Lj(e,t),ri=i,xi=r}return n.resolvedType}function mj(e){return 216===(e=oh(e,!0)).kind||234===e.kind||oA(e)}function gj(e,t,n){const r=Um(e);if(Fm(e)){const n=YT(e);if(n)return rL(r,n,t)}const i=Ij(r)||(n?pj(r,n,void 0,t||0):fj(r,t));if(oD(VD(e)?tc(e):e)){if(206===e.name.kind&&aN(i))return function(e,t){let n;for(const r of t.elements)if(r.initializer){const t=hj(r);t&&!Cf(e,t)&&(n=ie(n,r))}if(!n)return e;const r=Hu();for(const t of gp(e))r.set(t.escapedName,t);for(const e of n){const t=Wo(16777220,hj(e));t.links.type=Bl(e,!1,!1),r.set(t.escapedName,t)}const i=Bs(e.symbol,r,l,l,Kf(e));return i.objectFlags=e.objectFlags,i}(i,e.name);if(207===e.name.kind&&UC(i))return function(e,t){if(12&e.target.combinedFlags||ey(e)>=t.elements.length)return e;const n=t.elements,r=Vv(e).slice(),i=e.target.elementFlags.slice();for(let t=ey(e);tbj(e,t)));if(58982400&t.flags){const n=qp(t)||Ot;return QL(n,4)&&QL(e,128)||QL(n,8)&&QL(e,256)||QL(n,64)&&QL(e,2048)||QL(n,4096)&&QL(e,8192)||bj(e,n)}return!!(406847616&t.flags&&QL(e,128)||256&t.flags&&QL(e,256)||2048&t.flags&&QL(e,2048)||512&t.flags&&QL(e,512)||8192&t.flags&&QL(e,8192))}return!1}function xj(e){const t=e.parent;return V_(t)&&xl(t.type)||oA(t)&&xl(aA(t))||YO(e)&&kp(sA(e,0))||(ZD(t)||WD(t)||dF(t))&&xj(t)||(ME(t)||BE(t)||SF(t))&&xj(t.parent)}function kj(e,t,n){const r=Lj(e,t,n);return xj(e)||Af(e)?nk(r):mj(e)?r:zC(r,nA(sA(e,void 0),e,void 0))}function Sj(e,t){return 167===e.name.kind&&kA(e.name),kj(e.initializer,t)}function Tj(e,t){return WJ(e),167===e.name.kind&&kA(e.name),Cj(e,qL(e,t),t)}function Cj(e,t,n){if(n&&10&n){const r=cO(t,0,!0),i=cO(t,1,!0),o=r||i;if(o&&o.typeParameters){const t=eA(e,2);if(t){const i=cO(rw(t),r?0:1,!1);if(i&&!i.typeParameters){if(8&n)return wj(e,n),Ln;const t=fA(e),r=t.signature&&Tg(t.signature),a=r&&sO(r);if(a&&!a.typeParameters&&!v(t.inferences,Nj)){const e=function(e,t){const n=[];let r,i;for(const o of t){const t=o.symbol.escapedName;if(Fj(e.inferredTypeParameters,t)||Fj(n,t)){const a=Os(Wo(262144,Ej(K(e.inferredTypeParameters,n),t)));a.target=o,r=ie(r,o),i=ie(i,a),n.push(a)}else n.push(o)}if(i){const e=Tk(r,i);for(const t of i)t.mapper=e}return n}(t,o.typeParameters),n=jg(o,e),r=E(t.inferences,(e=>jw(e.typeParameter)));if(Dw(n,i,((e,t)=>{rN(r,e,t,0,!0)})),$(r,Nj)&&(Fw(n,i,((e,t)=>{rN(r,e,t)})),!function(e,t){for(let n=0;ne&&E(e.inferences,(e=>e.typeParameter)))).slice())}}}}return t}function wj(e,t){2&t&&(fA(e).flags|=4)}function Nj(e){return!(!e.candidates&&!e.contraCandidates)}function Dj(e){return!!(e.candidates||e.contraCandidates||af(e.typeParameter))}function Fj(e,t){return $(e,(e=>e.symbol.escapedName===t))}function Ej(e,t){let n=t.length;for(;n>1&&t.charCodeAt(n-1)>=48&&t.charCodeAt(n-1)<=57;)n--;const r=t.slice(0,n);for(let t=1;;t++){const n=r+t;if(!Fj(e,n))return n}}function Pj(e){const t=aO(e);if(t&&!t.typeParameters)return Tg(t)}function Aj(e){const t=Ij(e);if(t)return t;if(268435456&e.flags&&ri){const t=ri[jB(e)];if(t)return t}const n=Ci,r=Lj(e,64);return Ci!==n&&((ri||(ri=[]))[jB(e)]=r,CT(e,268435456|e.flags)),r}function Ij(e){let t=oh(e,!0);if(oA(t)){const e=aA(t);if(!xl(e))return dk(e)}if(t=oh(e),oF(t)){const e=Ij(t.expression);return e?dR(e):void 0}return!GD(t)||108===t.expression.kind||Om(t,!0)||HO(t)?V_(t)&&!xl(t.type)?dk(t.type):Al(e)||o_(e)?Lj(e):void 0:ml(t)?function(e){const t=Lj(e.expression),n=sw(t,e.expression),r=Pj(t);return r&&aw(r,e,n!==t)}(t):Pj(cI(t.expression))}function Oj(e){const t=aa(e);if(t.contextFreeType)return t.contextFreeType;uA(e,wt,!1);const n=t.contextFreeType=Lj(e,4);return dA(),n}function Lj(i,o,s){var c,_;null==(c=Hn)||c.push(Hn.Phase.Check,"checkExpression",{kind:i.kind,pos:i.pos,end:i.end,path:i.tracingPath});const u=r;r=i,h=0;const d=function(e,r,i){const o=e.kind;if(t)switch(o){case 231:case 218:case 219:t.throwIfCancellationRequested()}switch(o){case 80:return lP(e,r);case 81:return function(e){!function(e){if(!Gf(e))return nz(e,la.Private_identifiers_are_not_allowed_outside_class_bodies);if(!IF(e.parent)){if(!vm(e))return nz(e,la.Private_identifiers_are_only_allowed_in_class_bodies_and_may_only_be_used_as_part_of_a_class_member_declaration_property_access_or_on_the_left_hand_side_of_an_in_expression);const t=cF(e.parent)&&103===e.parent.operatorToken.kind;bI(e)||t||nz(e,la.Cannot_find_name_0,mc(e))}}(e);const t=bI(e);return t&&zI(t,void 0,!1),wt}(e);case 110:return yP(e);case 108:return xP(e);case 106:return Ut;case 15:case 11:return Gw(e)?Ft:ek(ik(e.text));case 9:return oz(e),ek(ok(+e.text));case 10:return function(e){if(!(MD(e.parent)||aF(e.parent)&&MD(e.parent.parent))&&R<7&&nz(e,la.BigInt_literals_are_not_available_when_targeting_lower_than_ES2020));}(e),ek(ak({negative:!1,base10Value:pT(e.text)}));case 112:return Yt;case 97:return Ht;case 228:return uj(e);case 14:return function(e){const t=aa(e);return 1&t.flags||(t.flags|=1,a((()=>function(e){const t=hd(e);if(!ZJ(t)&&!e.isUnterminated){let r;n??(n=ms(99,!0)),n.setScriptTarget(t.languageVersion),n.setLanguageVariant(t.languageVariant),n.setOnError(((e,i,o)=>{const a=n.getTokenEnd();if(3===e.category&&r&&a===r.start&&i===r.length){const n=Vx(t.fileName,t.text,a,i,e,o);iT(r,n)}else r&&a===r.start||(r=Kx(t,a,i,e,o),uo.add(r))})),n.setText(t.text,e.pos,e.end-e.pos);try{return n.scan(),un.assert(14===n.reScanSlashToken(!0),"Expected scanner to rescan RegularExpressionLiteral"),!!r}finally{n.setText(""),n.setOnError(void 0)}}return!1}(e)))),ar}(e);case 209:return xA(e,r,i);case 210:return function(e,t=0){const n=Xg(e);!function(e,t){const n=new Map;for(const r of e.properties){if(305===r.kind){if(t){const e=oh(r.expression);if(WD(e)||$D(e))return nz(r.expression,la.A_rest_element_cannot_contain_a_binding_pattern)}continue}const e=r.name;if(167===e.kind&&RJ(e),304===r.kind&&!t&&r.objectAssignmentInitializer&&nz(r.equalsToken,la.Did_you_mean_to_use_a_Colon_An_can_only_follow_a_property_name_when_the_containing_object_literal_is_part_of_a_destructuring_pattern),81===e.kind&&nz(e,la.Private_identifiers_are_not_allowed_outside_class_bodies),rI(r)&&r.modifiers)for(const e of r.modifiers)!Yl(e)||134===e.kind&&174===r.kind||nz(e,la._0_modifier_cannot_be_used_here,Kd(e));else if(DA(r)&&r.modifiers)for(const e of r.modifiers)Yl(e)&&nz(e,la._0_modifier_cannot_be_used_here,Kd(e));let i;switch(r.kind){case 304:case 303:zJ(r.exclamationToken,la.A_definite_assignment_assertion_is_not_permitted_in_this_context),JJ(r.questionToken,la.An_object_member_cannot_be_declared_optional),9===e.kind&&oz(e),10===e.kind&&Ro(!0,jp(e,la.A_bigint_literal_cannot_be_used_as_a_property_name)),i=4;break;case 174:i=8;break;case 177:i=1;break;case 178:i=2;break;default:un.assertNever(r,"Unexpected syntax kind:"+r.kind)}if(!t){const t=cz(e);if(void 0===t)continue;const r=n.get(t);if(r)if(8&i&&8&r)nz(e,la.Duplicate_identifier_0,Kd(e));else if(4&i&&4&r)nz(e,la.An_object_literal_cannot_have_multiple_properties_with_the_same_name,Kd(e));else{if(!(3&i&&3&r))return nz(e,la.An_object_literal_cannot_have_property_and_accessor_with_the_same_name);if(3===r||i===r)return nz(e,la.An_object_literal_cannot_have_multiple_get_Slashset_accessors_with_the_same_name);n.set(t,i|r)}else n.set(t,i)}}}(e,n);const r=H?Hu():void 0;let i=Hu(),o=[],a=Nn;_A(e);const s=eA(e,void 0),c=s&&s.pattern&&(206===s.pattern.kind||210===s.pattern.kind),_=xj(e),u=_?8:0,d=Fm(e)&&!Em(e),p=d?Gc(e):void 0,f=!s&&d&&!p;let m=8192,g=!1,h=!1,y=!1,v=!1;for(const t of e.properties)t.name&&rD(t.name)&&kA(t.name);let b=0;for(const l of e.properties){let f=ps(l);const k=l.name&&167===l.name.kind?kA(l.name):void 0;if(303===l.kind||304===l.kind||Mf(l)){let i=303===l.kind?Sj(l,t):304===l.kind?kj(!n&&l.objectAssignmentInitializer?l.objectAssignmentInitializer:l.name,t):Tj(l,t);if(d){const e=fl(l);e?(bS(i,e,l),i=e):p&&p.typeExpression&&bS(i,dk(p.typeExpression),l)}m|=458752&mx(i);const o=k&&oC(k)?k:void 0,a=o?Wo(4|f.flags,aC(o),4096|u):Wo(4|f.flags,f.escapedName,u);if(o&&(a.links.nameType=o),n&&bA(l))a.flags|=16777216;else if(c&&!(512&mx(s))){const e=Cf(s,f.escapedName);e?a.flags|=16777216&e.flags:dm(s,Vt)||jo(l.name,la.Object_literal_may_only_specify_known_properties_and_0_does_not_exist_in_type_1,ic(f),sc(s))}if(a.declarations=f.declarations,a.parent=f.parent,f.valueDeclaration&&(a.valueDeclaration=f.valueDeclaration),a.links.type=i,a.links.target=f,f=a,null==r||r.set(a.escapedName,a),s&&2&t&&!(4&t)&&(303===l.kind||174===l.kind)&&aS(l)){const t=fA(e);un.assert(t),Lw(t,303===l.kind?l.initializer:l,i)}}else{if(305===l.kind){R0&&(a=Wx(a,x(),e.symbol,m,_),o=[],i=Hu(),h=!1,y=!1,v=!1);const n=yf(Lj(l.expression,2&t));if(FA(n)){const t=Ux(n,_);if(r&&LA(t,r,l),b=o.length,$c(a))continue;a=Wx(a,t,e.symbol,m,_)}else jo(l,la.Spread_types_may_only_be_created_from_object_types),a=Et;continue}un.assert(177===l.kind||178===l.kind),mB(l)}!k||8576&k.flags?i.set(f.escapedName,f):gS(k,hn)&&(gS(k,Wt)?y=!0:gS(k,cn)?v=!0:h=!0,n&&(g=!0)),o.push(f)}return dA(),$c(a)?Et:a!==Nn?(o.length>0&&(a=Wx(a,x(),e.symbol,m,_),o=[],i=Hu(),h=!1,y=!1),zD(a,(e=>e===Nn?x():e))):x();function x(){const t=[],r=xj(e);h&&t.push(CA(r,b,o,Vt)),y&&t.push(CA(r,b,o,Wt)),v&&t.push(CA(r,b,o,cn));const a=Bs(e.symbol,i,l,l,t);return a.objectFlags|=131200|m,f&&(a.objectFlags|=4096),g&&(a.objectFlags|=512),n&&(a.pattern=e),a}}(e,r);case 211:return gI(e,r);case 166:return hI(e,r);case 212:return function(e,t){return 64&e.flags?function(e,t){const n=Lj(e.expression),r=sw(n,e.expression);return aw(GI(e,fI(r,e.expression),t),e,r!==n)}(e,t):GI(e,cI(e.expression),t)}(e,r);case 213:if(102===e.expression.kind)return function(e){if(function(e){if(j.verbatimModuleSyntax&&1===M)return nz(e,la.ESM_syntax_is_not_allowed_in_a_CommonJS_module_when_verbatimModuleSyntax_is_enabled);if(5===M)return nz(e,la.Dynamic_imports_are_only_supported_when_the_module_flag_is_set_to_es2020_es2022_esnext_commonjs_amd_system_umd_node16_or_nodenext);if(e.typeArguments)return nz(e,la.This_use_of_import_is_invalid_import_calls_can_be_written_but_they_must_have_parentheses_and_cannot_have_type_arguments);const t=e.arguments;if(99!==M&&199!==M&&100!==M&&200!==M&&(PJ(t),t.length>1))return nz(t[1],la.Dynamic_imports_only_support_a_second_argument_when_the_module_option_is_set_to_esnext_node16_nodenext_or_preserve);if(0===t.length||t.length>2)return nz(e,la.Dynamic_imports_can_only_accept_a_module_specifier_and_an_optional_set_of_attributes_as_arguments);const n=b(t,dF);n&&nz(n,la.Argument_of_dynamic_import_cannot_be_spread_element)}(e),0===e.arguments.length)return IL(e,wt);const t=e.arguments[0],n=fj(t),r=e.arguments.length>1?fj(e.arguments[1]):void 0;for(let t=2;tKL(e)));const t=Lj(e.expression),n=aR(t,!0,e,la.Type_of_await_operand_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member);return n!==t||$c(n)||3&t.flags||Ro(!1,jp(e,la.await_has_no_effect_on_the_type_of_this_expression)),n}(e);case 224:return function(e){const t=Lj(e.operand);if(t===dn)return dn;switch(e.operand.kind){case 9:switch(e.operator){case 41:return ek(ok(-e.operand.text));case 40:return ek(ok(+e.operand.text))}break;case 10:if(41===e.operator)return ek(ak({negative:!0,base10Value:pT(e.operand.text)}))}switch(e.operator){case 40:case 41:case 55:return fI(t,e.operand),XL(t,12288)&&jo(e.operand,la.The_0_operator_cannot_be_applied_to_type_symbol,Da(e.operator)),40===e.operator?(XL(t,2112)&&jo(e.operand,la.Operator_0_cannot_be_applied_to_type_1,Da(e.operator),sc(RC(t))),Wt):GL(t);case 54:ZR(t,e.operand);const n=PN(t,12582912);return 4194304===n?Ht:8388608===n?Yt:sn;case 46:case 47:return UL(e.operand,fI(t,e.operand),la.An_arithmetic_operand_must_be_of_type_any_number_bigint_or_an_enum_type)&&HL(e.operand,la.The_operand_of_an_increment_or_decrement_operator_must_be_a_variable_or_a_property_access,la.The_operand_of_an_increment_or_decrement_operator_may_not_be_an_optional_property_access),GL(t)}return Et}(e);case 225:return function(e){const t=Lj(e.operand);return t===dn?dn:(UL(e.operand,fI(t,e.operand),la.An_arithmetic_operand_must_be_of_type_any_number_bigint_or_an_enum_type)&&HL(e.operand,la.The_operand_of_an_increment_or_decrement_operator_must_be_a_variable_or_a_property_access,la.The_operand_of_an_increment_or_decrement_operator_may_not_be_an_optional_property_access),GL(t))}(e);case 226:return pe(e,r);case 227:return function(e,t){const n=tM(e.condition,t);return YR(e.condition,n,e.whenTrue),xb([Lj(e.whenTrue,t),Lj(e.whenFalse,t)],2)}(e,r);case 230:return function(e,t){return RJj(e,n,void 0))));const o=i&&CM(i,r),s=o&&o.yieldType||wt,c=o&&o.nextType||wt,l=e.expression?Lj(e.expression):Rt,_=jL(e,l,c,r);if(i&&_&&xS(_,s,e.expression||e,e.expression),e.asteriskToken)return oM(r?19:17,1,l,e.expression)||wt;if(i)return TM(2,i,r)||wt;let u=jP(2,t);return u||(u=wt,a((()=>{if(ne&&!ET(e)){const t=sA(e,void 0);t&&!Wc(t)||jo(e,la.yield_expression_implicitly_results_in_an_any_type_because_its_containing_generator_lacks_a_return_type_annotation)}}))),u}(e);case 237:return function(e){return e.isSpread?vx(e.type,Wt):e.type}(e);case 294:return function(e,t){if(function(e){e.expression&&iA(e.expression)&&nz(e.expression,la.JSX_expressions_may_not_use_the_comma_operator_Did_you_mean_to_write_an_array)}(e),e.expression){const n=Lj(e.expression,t);return e.dotDotDotToken&&n!==wt&&!yC(n)&&jo(e,la.JSX_spread_child_must_be_an_array_type),n}return Et}(e,r);case 284:case 285:return function(e){return mB(e),HA(e)||wt}(e);case 288:return function(e){XA(e.openingFragment);const t=hd(e);!Wk(j)||!j.jsxFactory&&!t.pragmas.has("jsx")||j.jsxFragmentFactory||t.pragmas.has("jsxfrag")||jo(e,j.jsxFactory?la.The_jsxFragmentFactory_compiler_option_must_be_provided_to_use_JSX_fragments_with_the_jsxFactory_compiler_option:la.An_jsxFrag_pragma_is_required_when_using_an_jsx_pragma_with_JSX_fragments),OA(e);const n=HA(e);return $c(n)?wt:n}(e);case 292:return function(e,t){return IA(e.parent,t)}(e,r);case 286:un.fail("Shouldn't ever directly check a JsxOpeningElement")}return Et}(i,o,s),p=Cj(i,d,o);return ej(p)&&function(t,n){const r=211===t.parent.kind&&t.parent.expression===t||212===t.parent.kind&&t.parent.expression===t||(80===t.kind||166===t.kind)&&KB(t)||186===t.parent.kind&&t.parent.exprName===t||281===t.parent.kind;if(r||jo(t,la.const_enums_can_only_be_used_in_property_or_index_access_expressions_or_the_right_hand_side_of_an_import_declaration_or_export_assignment_or_type_query),j.isolatedModules||j.verbatimModuleSyntax&&r&&!Ue(t,ab(t),2097152,void 0,!1,!0)){un.assert(!!(128&n.symbol.flags));const r=n.symbol.valueDeclaration,i=e.getRedirectReferenceForResolutionFromSourceOfProject(hd(r).resolvedPath);!(33554432&r.flags)||yT(t)||i&&Dk(i.commandLine.options)||jo(t,la.Cannot_access_ambient_const_enums_when_0_is_enabled,Re)}}(i,p),r=u,null==(_=Hn)||_.pop(),p}function jj(e){FJ(e),e.expression&&ez(e.expression,la.Type_expected),dB(e.constraint),dB(e.default);const t=pu(ps(e));qp(t),function(e){return rf(e)!==Rn}(t)||jo(e.default,la.Type_parameter_0_has_a_circular_default,sc(t));const n=xp(t),r=of(t);n&&r&&bS(r,ld(tS(n,Fk(t,r)),r),e.default,la.Type_0_does_not_satisfy_the_constraint_1),mB(e),a((()=>OM(e.name,la.Type_parameter_name_cannot_be_0)))}function Rj(e){FJ(e),HR(e);const t=Hf(e);wv(e,31)&&(176===t.kind&&wd(t.body)||jo(e,la.A_parameter_property_is_only_allowed_in_a_constructor_implementation),176===t.kind&&zN(e.name)&&"constructor"===e.name.escapedText&&jo(e.name,la.constructor_cannot_be_used_as_a_parameter_property_name)),!e.initializer&&KT(e)&&x_(e.name)&&t.body&&jo(e,la.A_binding_pattern_parameter_cannot_be_optional_in_an_implementation_signature),e.name&&zN(e.name)&&("this"===e.name.escapedText||"new"===e.name.escapedText)&&(0!==t.parameters.indexOf(e)&&jo(e,la.A_0_parameter_must_be_the_first_parameter,e.name.escapedText),176!==t.kind&&180!==t.kind&&185!==t.kind||jo(e,la.A_constructor_cannot_have_a_this_parameter),219===t.kind&&jo(e,la.An_arrow_function_cannot_have_a_this_parameter),177!==t.kind&&178!==t.kind||jo(e,la.get_and_set_accessors_cannot_declare_this_parameters)),!e.dotDotDotToken||x_(e.name)||gS(yf(S_(e.symbol)),_r)||jo(e,la.A_rest_parameter_must_be_of_an_array_type)}function Mj(e,t,n){for(const r of e.elements){if(fF(r))continue;const e=r.name;if(80===e.kind&&e.escapedText===n)return jo(t,la.A_type_predicate_cannot_reference_element_0_in_a_binding_pattern,n),!0;if((207===e.kind||206===e.kind)&&Mj(e,t,n))return!0}}function Bj(e){181===e.kind?function(e){FJ(e)||function(e){const t=e.parameters[0];if(1!==e.parameters.length)return nz(t?t.name:e,la.An_index_signature_must_have_exactly_one_parameter);if(PJ(e.parameters,la.An_index_signature_cannot_have_a_trailing_comma),t.dotDotDotToken)return nz(t.dotDotDotToken,la.An_index_signature_cannot_have_a_rest_parameter);if(Sv(t))return nz(t.name,la.An_index_signature_parameter_cannot_have_an_accessibility_modifier);if(t.questionToken)return nz(t.questionToken,la.An_index_signature_parameter_cannot_have_a_question_mark);if(t.initializer)return nz(t.name,la.An_index_signature_parameter_cannot_have_an_initializer);if(!t.type)return nz(t.name,la.An_index_signature_parameter_must_have_a_type_annotation);const n=dk(t.type);ED(n,(e=>!!(8576&e.flags)))||cx(n)?nz(t.name,la.An_index_signature_parameter_type_cannot_be_a_literal_type_or_generic_type_Consider_using_a_mapped_object_type_instead):AD(n,Th)?e.type||nz(e,la.An_index_signature_must_have_a_type_annotation):nz(t.name,la.An_index_signature_parameter_type_must_be_string_number_symbol_or_a_template_literal_type)}(e)}(e):184!==e.kind&&262!==e.kind&&185!==e.kind&&179!==e.kind&&176!==e.kind&&180!==e.kind||IJ(e);const t=Ih(e);4&t||(!(3&~t)&&R{zN(e)&&r.add(e.escapedText),x_(e)&&i.add(t)}));if(cg(e)){const e=t.length-1,o=t[e];n&&o&&zN(o.name)&&o.typeExpression&&o.typeExpression.type&&!r.has(o.name.escapedText)&&!i.has(e)&&!yC(dk(o.typeExpression.type))&&jo(o.name,la.JSDoc_param_tag_has_name_0_but_there_is_no_parameter_with_that_name_It_would_match_arguments_if_it_had_an_array_type,mc(o.name))}else d(t,(({name:e,isNameFirst:t},o)=>{i.has(o)||zN(e)&&r.has(e.escapedText)||(nD(e)?n&&jo(e,la.Qualified_name_0_is_not_allowed_without_a_leading_param_object_1,Lp(e),Lp(e.left)):t||Mo(n,e,la.JSDoc_param_tag_has_name_0_but_there_is_no_parameter_with_that_name,mc(e)))}))}(e),d(e.parameters,Rj),e.type&&dB(e.type),a((function(){!function(e){R>=2||!Ru(e)||33554432&e.flags||Cd(e.body)||d(e.parameters,(e=>{e.name&&!x_(e.name)&&e.name.escapedText===Le.escapedName&&Oo("noEmit",e,la.Duplicate_identifier_arguments_Compiler_uses_arguments_to_initialize_rest_parameters)}))}(e);let t=mv(e),n=t;if(Fm(e)){const r=el(e);if(r&&r.typeExpression&&vD(r.typeExpression.type)){const e=aO(dk(r.typeExpression));e&&e.declaration&&(t=mv(e.declaration),n=r.typeExpression.type)}}if(ne&&!t)switch(e.kind){case 180:jo(e,la.Construct_signature_which_lacks_return_type_annotation_implicitly_has_an_any_return_type);break;case 179:jo(e,la.Call_signature_which_lacks_return_type_annotation_implicitly_has_an_any_return_type)}if(t&&n){const r=Ih(e);if(1==(5&r)){const e=dk(t);e===ln?jo(n,la.A_generator_cannot_have_a_void_type_annotation):Jj(e,r,n)}else 2==(3&r)&&function(e,t,n){const r=dk(t);if(R>=2){if($c(r))return;const e=Uy(!0);if(e!==On&&!w_(r,e))return void i(la.The_return_type_of_an_async_function_or_method_must_be_the_global_Promise_T_type_Did_you_mean_to_write_Promise_0,t,n,sc(pR(r)||ln))}else{if(CE(e,5),$c(r))return;const o=lm(t);if(void 0===o)return void i(la.Type_0_is_not_a_valid_async_function_return_type_in_ES5_because_it_does_not_refer_to_a_Promise_compatible_constructor_value,t,n,sc(r));const a=Ka(o,111551,!0),s=a?S_(a):Et;if($c(s))return void(80===o.kind&&"Promise"===o.escapedText&&N_(r)===Uy(!1)?jo(n,la.An_async_function_or_method_in_ES5_requires_the_Promise_constructor_Make_sure_you_have_a_declaration_for_the_Promise_constructor_or_include_ES2015_in_your_lib_option):i(la.Type_0_is_not_a_valid_async_function_return_type_in_ES5_because_it_does_not_refer_to_a_Promise_compatible_constructor_value,t,n,Lp(o)));const c=vr||(vr=Ay("PromiseConstructorLike",0,true))||Nn;if(c===Nn)return void i(la.Type_0_is_not_a_valid_async_function_return_type_in_ES5_because_it_does_not_refer_to_a_Promise_compatible_constructor_value,t,n,Lp(o));const l=la.Type_0_is_not_a_valid_async_function_return_type_in_ES5_because_it_does_not_refer_to_a_Promise_compatible_constructor_value;if(!bS(s,c,n,l,(()=>t===n?void 0:Yx(void 0,la.The_return_type_of_an_async_function_or_method_must_be_the_global_Promise_T_type))))return;const _=o&&ab(o),u=sa(e.locals,_.escapedText,111551);if(u)return void jo(u.valueDeclaration,la.Duplicate_identifier_0_Compiler_uses_declaration_1_to_support_async_functions,mc(_),Lp(o))}function i(e,t,n,r){t===n?jo(n,e,r):iT(jo(n,la.The_return_type_of_an_async_function_or_method_must_be_the_global_Promise_T_type),jp(t,e,r))}aR(r,!1,e,la.The_return_type_of_an_async_function_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member)}(e,t,n)}181!==e.kind&&317!==e.kind&&CR(e)}))}function Jj(e,t,n){const r=TM(0,e,!!(2&t))||wt;return bS(LL(r,TM(1,e,!!(2&t))||r,TM(2,e,!!(2&t))||Ot,!!(2&t)),e,n)}function zj(e){const t=new Map;for(const n of e.members)if(171===n.kind){let e;const r=n.name;switch(r.kind){case 11:case 9:e=r.text;break;case 80:e=mc(r);break;default:continue}t.get(e)?(jo(Tc(n.symbol.valueDeclaration),la.Duplicate_identifier_0,e),jo(n.name,la.Duplicate_identifier_0,e)):t.set(e,!0)}}function qj(e){if(264===e.kind){const t=ps(e);if(t.declarations&&t.declarations.length>0&&t.declarations[0]!==e)return}const t=eh(ps(e));if(null==t?void 0:t.declarations){const e=new Map;for(const n of t.declarations)hD(n)&&1===n.parameters.length&&n.parameters[0].type&&FD(dk(n.parameters[0].type),(t=>{const r=e.get(Kv(t));r?r.declarations.push(n):e.set(Kv(t),{type:t,declarations:[n]})}));e.forEach((e=>{if(e.declarations.length>1)for(const t of e.declarations)jo(t,la.Duplicate_index_signature_for_type_0,sc(e.type))}))}}function Uj(e){FJ(e)||function(e){if(rD(e.name)&&cF(e.name.expression)&&103===e.name.expression.operatorToken.kind)return nz(e.parent.members[0],la.A_mapped_type_may_not_declare_properties_or_methods);if(__(e.parent)){if(TN(e.name)&&"constructor"===e.name.text)return nz(e.name,la.Classes_may_not_have_a_field_named_constructor);if(VJ(e.name,la.A_computed_property_name_in_a_class_property_declaration_must_have_a_simple_literal_type_or_a_unique_symbol_type))return!0;if(R<2&&qN(e.name))return nz(e.name,la.Private_identifiers_are_only_available_when_targeting_ECMAScript_2015_and_higher);if(R<2&&d_(e))return nz(e.name,la.Properties_with_the_accessor_modifier_are_only_available_when_targeting_ECMAScript_2015_and_higher);if(d_(e)&&JJ(e.questionToken,la.An_accessor_property_cannot_be_declared_optional))return!0}else if(264===e.parent.kind){if(VJ(e.name,la.A_computed_property_name_in_an_interface_must_refer_to_an_expression_whose_type_is_a_literal_type_or_a_unique_symbol_type))return!0;if(un.assertNode(e,sD),e.initializer)return nz(e.initializer,la.An_interface_property_cannot_have_an_initializer)}else if(SD(e.parent)){if(VJ(e.name,la.A_computed_property_name_in_a_type_literal_must_refer_to_an_expression_whose_type_is_a_literal_type_or_a_unique_symbol_type))return!0;if(un.assertNode(e,sD),e.initializer)return nz(e.initializer,la.A_type_literal_property_cannot_have_an_initializer)}if(33554432&e.flags&&KJ(e),cD(e)&&e.exclamationToken&&(!__(e.parent)||!e.type||e.initializer||33554432&e.flags||Nv(e)||Ev(e))){const t=e.initializer?la.Declarations_with_initializers_cannot_also_have_definite_assignment_assertions:e.type?la.A_definite_assignment_assertion_is_not_permitted_in_this_context:la.Declarations_with_definite_assignment_assertions_must_also_have_type_annotations;return nz(e.exclamationToken,t)}}(e)||RJ(e.name),HR(e),Vj(e),wv(e,64)&&172===e.kind&&e.initializer&&jo(e,la.Property_0_cannot_have_an_initializer_because_it_is_marked_abstract,Ep(e.name))}function Vj(e){if(qN(e.name)&&(R{const t=Xj(e);t&&Gj(e,t)}));const t=aa(e).resolvedSymbol;t&&$(t.declarations,(e=>qT(e)&&!!(536870912&e.flags)))&&Vo($O(e),t.declarations,t.escapedName)}}function Zj(e,t){if(!(8388608&e.flags))return e;const n=e.objectType,r=e.indexType,i=rp(n)&&2===cp(n)?jb(n,0):qb(n,0),o=!!dm(n,Wt);if(AD(r,(e=>gS(e,i)||o&&Wf(e,Wt))))return 212===t.kind&&Xg(t)&&32&mx(n)&&1&ep(n)&&jo(t,la.Index_signature_in_type_0_only_permits_reading,sc(n)),e;if(lx(n)){const e=Xb(r,t);if(e){const r=FD(pf(n),(t=>Cf(t,e)));if(r&&6&rx(r))return jo(t,la.Private_or_protected_member_0_cannot_be_accessed_on_a_type_parameter,fc(e)),Et}}return jo(t,la.Type_0_cannot_be_used_to_index_type_1,sc(r),sc(n)),Et}function eR(e){return(Cv(e,2)||Hl(e))&&!!(33554432&e.flags)}function tR(e,t){let n=lz(e);if(264!==e.parent.kind&&263!==e.parent.kind&&231!==e.parent.kind&&33554432&e.flags){const t=Np(e);!(t&&128&t.flags)||128&n||YF(e.parent)&&QF(e.parent.parent)&&up(e.parent.parent)||(n|=32),n|=128}return n&t}function nR(e){a((()=>function(e){function t(e,t){return void 0!==t&&t.parent===e[0].parent?t:e[0]}let n,r,i,o=0,a=230,s=!1,c=!0,l=!1;const _=e.declarations,p=!!(16384&e.flags);function f(e){if(e.name&&Cd(e.name))return;let t=!1;const n=PI(e.parent,(n=>{if(t)return n;t=n===e}));if(n&&n.pos===e.end&&n.kind===e.kind){const t=n.name||n,r=n.name;if(e.name&&r&&(qN(e.name)&&qN(r)&&e.name.escapedText===r.escapedText||rD(e.name)&&rD(r)&&_S(kA(e.name),kA(r))||Jh(e.name)&&Jh(r)&&qh(e.name)===qh(r)))return void(174!==e.kind&&173!==e.kind||Nv(e)===Nv(n)||jo(t,Nv(e)?la.Function_overload_must_be_static:la.Function_overload_must_not_be_static));if(wd(n.body))return void jo(t,la.Function_implementation_name_must_be_0,Ep(e.name))}const r=e.name||e;p?jo(r,la.Constructor_implementation_is_missing):wv(e,64)?jo(r,la.All_declarations_of_an_abstract_method_must_be_consecutive):jo(r,la.Function_implementation_is_missing_or_not_immediately_following_the_declaration)}let m=!1,g=!1,h=!1;const y=[];if(_)for(const e of _){const t=e,_=33554432&t.flags,d=t.parent&&(264===t.parent.kind||187===t.parent.kind)||_;if(d&&(i=void 0),263!==t.kind&&231!==t.kind||_||(h=!0),262===t.kind||174===t.kind||173===t.kind||176===t.kind){y.push(t);const e=tR(t,230);o|=e,a&=e,s=s||Cg(t),c=c&&Cg(t);const _=wd(t.body);_&&n?p?g=!0:m=!0:(null==i?void 0:i.parent)===t.parent&&i.end!==t.pos&&f(i),_?n||(n=t):l=!0,i=t,d||(r=t)}Fm(e)&&n_(e)&&e.jsDoc&&(l=u(Jg(e))>0)}if(g&&d(y,(e=>{jo(e,la.Multiple_constructor_implementations_are_not_allowed)})),m&&d(y,(e=>{jo(Tc(e)||e,la.Duplicate_function_implementation)})),h&&!p&&16&e.flags&&_){const t=N(_,(e=>263===e.kind)).map((e=>jp(e,la.Consider_adding_a_declare_modifier_to_this_class)));d(_,(n=>{const r=263===n.kind?la.Class_declaration_cannot_implement_overload_list_for_0:262===n.kind?la.Function_with_bodies_can_only_merge_with_classes_that_are_ambient:void 0;r&&iT(jo(Tc(n)||n,r,hc(e)),...t)}))}if(!r||r.body||wv(r,64)||r.questionToken||f(r),l&&(_&&(function(e,n,r,i,o){if(i^o){const i=tR(t(e,n),r);Je(e,(e=>hd(e).fileName)).forEach((e=>{const o=tR(t(e,n),r);for(const t of e){const e=tR(t,r)^i,n=tR(t,r)^o;32&n?jo(Tc(t),la.Overload_signatures_must_all_be_exported_or_non_exported):128&n?jo(Tc(t),la.Overload_signatures_must_all_be_ambient_or_non_ambient):6&e?jo(Tc(t)||t,la.Overload_signatures_must_all_be_public_private_or_protected):64&e&&jo(Tc(t),la.Overload_signatures_must_all_be_abstract_or_non_abstract)}}))}}(_,n,230,o,a),function(e,n,r,i){if(r!==i){const r=Cg(t(e,n));d(e,(e=>{Cg(e)!==r&&jo(Tc(e),la.Overload_signatures_must_all_be_optional_or_required)}))}}(_,n,s,c)),n)){const t=pg(e),r=ig(n);for(const e of t)if(!IS(r,e)){iT(jo(e.declaration&&aP(e.declaration)?e.declaration.parent.tagName:e.declaration,la.This_overload_signature_is_not_compatible_with_its_implementation_signature),jp(n,la.The_implementation_signature_is_declared_here));break}}}(e)))}function rR(e){a((()=>function(e){let t=e.localSymbol;if(!t&&(t=ps(e),!t.exportSymbol))return;if(Wu(t,e.kind)!==e)return;let n=0,r=0,i=0;for(const e of t.declarations){const t=s(e),o=tR(e,2080);32&o?2048&o?i|=t:n|=t:r|=t}const o=n&r,a=i&(n|r);if(o||a)for(const e of t.declarations){const t=s(e),n=Tc(e);t&a?jo(n,la.Merged_declaration_0_cannot_include_a_default_export_declaration_Consider_adding_a_separate_export_default_0_declaration_instead,Ep(n)):t&o&&jo(n,la.Individual_declarations_in_merged_declaration_0_must_be_all_exported_or_all_local,Ep(n))}function s(e){let t=e;switch(t.kind){case 264:case 265:case 346:case 338:case 340:return 2;case 267:return ap(t)||0!==wM(t)?5:4;case 263:case 266:case 306:return 3;case 307:return 7;case 277:case 226:const e=t,n=pE(e)?e.expression:e.right;if(!ob(n))return 1;t=n;case 271:case 274:case 273:let r=0;return d(Ba(ps(t)).declarations,(e=>{r|=s(e)})),r;case 260:case 208:case 262:case 276:case 80:return 1;case 173:case 171:return 2;default:return un.failBadSyntaxKind(t)}}}(e)))}function iR(e,t,n,...r){const i=oR(e,t);return i&&dR(i,t,n,...r)}function oR(e,t,n){if(Wc(e))return;const r=e;if(r.promisedTypeOfPromise)return r.promisedTypeOfPromise;if(w_(e,Uy(!1)))return r.promisedTypeOfPromise=Kh(e)[0];if(ZL(Wp(e),402915324))return;const i=Uc(e,"then");if(Wc(i))return;const o=i?Rf(i,0):l;if(0===o.length)return void(t&&jo(t,la.A_promise_must_have_a_then_method));let a,s;for(const t of o){const n=yg(t);n&&n!==ln&&!zS(e,n,mo)?a=n:s=ie(s,t)}if(!s)return un.assertIsDefined(a),n&&(n.value=a),void(t&&jo(t,la.The_this_context_of_type_0_is_not_assignable_to_method_s_this_of_type_1,sc(e),sc(a)));const c=ON(xb(E(s,kL)),2097152);if(Wc(c))return;const _=Rf(c,0);if(0!==_.length)return r.promisedTypeOfPromise=xb(E(_,kL),2);t&&jo(t,la.The_first_parameter_of_the_then_method_of_a_promise_must_be_a_callback)}function aR(e,t,n,r,...i){return(t?dR(e,n,r,...i):pR(e,n,r,...i))||Et}function sR(e){if(ZL(Wp(e),402915324))return!1;const t=Uc(e,"then");return!!t&&Rf(ON(t,2097152),0).length>0}function cR(e){var t;if(16777216&e.flags){const n=ev(!1);return!!n&&e.aliasSymbol===n&&1===(null==(t=e.aliasTypeArguments)?void 0:t.length)}return!1}function lR(e){return 1048576&e.flags?zD(e,lR):cR(e)?e.aliasTypeArguments[0]:e}function uR(e){if(Wc(e)||cR(e))return!1;if(lx(e)){const t=qp(e);if(t?3&t.flags||LS(t)||ED(t,sR):QL(e,8650752))return!0}return!1}function dR(e,t,n,...r){const i=pR(e,t,n,...r);return i&&function(e){return uR(e)?function(e){const t=ev(!0);if(t)return ny(t,[lR(e)])}(e)??e:(un.assert(cR(e)||void 0===oR(e),"type provided should not be a non-generic 'promise'-like."),e)}(i)}function pR(e,t,n,...r){if(Wc(e))return e;if(cR(e))return e;const i=e;if(i.awaitedTypeOfType)return i.awaitedTypeOfType;if(1048576&e.flags){if(so.lastIndexOf(e.id)>=0)return void(t&&jo(t,la.Type_is_referenced_directly_or_indirectly_in_the_fulfillment_callback_of_its_own_then_method));const o=t?e=>pR(e,t,n,...r):pR;so.push(e.id);const a=zD(e,o);return so.pop(),i.awaitedTypeOfType=a}if(uR(e))return i.awaitedTypeOfType=e;const o={value:void 0},a=oR(e,void 0,o);if(a){if(e.id===a.id||so.lastIndexOf(a.id)>=0)return void(t&&jo(t,la.Type_is_referenced_directly_or_indirectly_in_the_fulfillment_callback_of_its_own_then_method));so.push(e.id);const o=pR(a,t,n,...r);if(so.pop(),!o)return;return i.awaitedTypeOfType=o}if(!sR(e))return i.awaitedTypeOfType=e;if(t){let i;un.assertIsDefined(n),o.value&&(i=Yx(i,la.The_this_context_of_type_0_is_not_assignable_to_method_s_this_of_type_1,sc(e),sc(o.value))),i=Yx(i,n,...r),uo.add(Bp(hd(t),t,i))}}function fR(e){!function(e){if(!ZJ(hd(e))){let t=e.expression;if(ZD(t))return!1;let n,r=!0;for(;;)if(mF(t)||yF(t))t=t.expression;else if(GD(t))r||(n=t),t.questionDotToken&&(n=t.questionDotToken),t=t.expression,r=!1;else{if(!HD(t)){zN(t)||(n=t);break}t.questionDotToken&&(n=t.questionDotToken),t=t.expression,r=!1}if(n)iT(jo(e.expression,la.Expression_must_be_enclosed_in_parentheses_to_be_used_as_a_decorator),jp(n,la.Invalid_syntax_in_decorator))}}(e);const t=zO(e);WO(t,e);const n=Tg(t);if(1&n.flags)return;const r=EL(e);if(!(null==r?void 0:r.resolvedReturnType))return;let i;const o=r.resolvedReturnType;switch(e.parent.kind){case 263:case 231:i=la.Decorator_function_return_type_0_is_not_assignable_to_type_1;break;case 172:if(!J){i=la.Decorator_function_return_type_0_is_not_assignable_to_type_1;break}case 169:i=la.Decorator_function_return_type_is_0_but_is_expected_to_be_void_or_any;break;case 174:case 177:case 178:i=la.Decorator_function_return_type_0_is_not_assignable_to_type_1;break;default:return un.failBadSyntaxKind(e.parent)}bS(n,o,e.expression,i)}function mR(e,t,n,r,i,o=n.length,a=0){return pd(XC.createFunctionTypeNode(void 0,l,XC.createKeywordTypeNode(133)),e,t,n,r,i,o,a)}function gR(e,t,n,r,i,o,a){return Yg(mR(e,t,n,r,i,o,a))}function hR(e){return gR(void 0,void 0,l,e)}function yR(e){return gR(void 0,void 0,[$o("value",e)],ln)}function vR(e){if(e)switch(e.kind){case 193:case 192:return bR(e.types);case 194:return bR([e.trueType,e.falseType]);case 196:case 202:return vR(e.type);case 183:return e.typeName}}function bR(e){let t;for(let n of e){for(;196===n.kind||202===n.kind;)n=n.type;if(146===n.kind)continue;if(!H&&(201===n.kind&&106===n.literal.kind||157===n.kind))continue;const e=vR(n);if(!e)return;if(t){if(!zN(t)||!zN(e)||t.escapedText!==e.escapedText)return}else t=e}return t}function xR(e){const t=pv(e);return Mu(e)?Df(t):t}function kR(e){if(!(iI(e)&&Ov(e)&&e.modifiers&&um(J,e,e.parent,e.parent.parent)))return;const t=b(e.modifiers,aD);if(t){J?(NJ(t,8),169===e.kind&&NJ(t,32)):Rt.kind===e.kind&&!(524288&t.flags)));e===i&&nR(r),n.parent&&nR(n)}const r=173===e.kind?void 0:e.body;if(dB(r),zL(e,Fg(e)),a((function(){mv(e)||(Cd(r)&&!eR(e)&&ww(e,wt),1&n&&wd(r)&&Tg(ig(e)))})),Fm(e)){const t=el(e);t&&t.typeExpression&&!hA(dk(t.typeExpression),e)&&jo(t.typeExpression.type,la.The_type_of_a_function_declaration_must_match_the_function_s_signature)}}function CR(e){a((function(){const t=hd(e);let n=bi.get(t.path);n||(n=[],bi.set(t.path,n)),n.push(e)}))}function wR(e,t){for(const n of e)switch(n.kind){case 263:case 231:FR(n,t),PR(n,t);break;case 307:case 267:case 241:case 269:case 248:case 249:case 250:jR(n,t);break;case 176:case 218:case 262:case 219:case 174:case 177:case 178:n.body&&jR(n,t),PR(n,t);break;case 173:case 179:case 180:case 184:case 185:case 265:case 264:PR(n,t);break;case 195:ER(n,t);break;default:un.assertNever(n,"Node should not have been registered for unused identifiers check")}}function NR(e,t,n){n(e,0,jp(Tc(e)||e,qT(e)?la._0_is_declared_but_never_used:la._0_is_declared_but_its_value_is_never_read,t))}function DR(e){return zN(e)&&95===mc(e).charCodeAt(0)}function FR(e,t){for(const n of e.members)switch(n.kind){case 174:case 172:case 177:case 178:if(178===n.kind&&32768&n.symbol.flags)break;const e=ps(n);e.isReferenced||!(Cv(n,2)||kc(n)&&qN(n.name))||33554432&n.flags||t(n,0,jp(n.name,la._0_is_declared_but_its_value_is_never_read,ic(e)));break;case 176:for(const e of n.parameters)!e.symbol.isReferenced&&wv(e,2)&&t(e,0,jp(e.name,la.Property_0_is_declared_but_its_value_is_never_read,hc(e.symbol)));break;case 181:case 240:case 175:break;default:un.fail("Unexpected class member")}}function ER(e,t){const{typeParameter:n}=e;AR(n)&&t(e,1,jp(e,la._0_is_declared_but_its_value_is_never_read,mc(n.name)))}function PR(e,t){const n=ps(e).declarations;if(!n||ve(n)!==e)return;const r=ll(e),i=new Set;for(const e of r){if(!AR(e))continue;const n=mc(e.name),{parent:r}=e;if(195!==r.kind&&r.typeParameters.every(AR)){if(q(i,r)){const i=hd(r),o=TP(r)?aT(r):sT(i,r.typeParameters),a=1===r.typeParameters.length?[la._0_is_declared_but_its_value_is_never_read,n]:[la.All_type_parameters_are_unused];t(e,1,Kx(i,o.pos,o.end-o.pos,...a))}}else t(e,1,jp(e,la._0_is_declared_but_its_value_is_never_read,n))}}function AR(e){return!(262144&ds(e.symbol).isReferenced||DR(e.name))}function IR(e,t,n,r){const i=String(r(t)),o=e.get(i);o?o[1].push(n):e.set(i,[t,[n]])}function OR(e){return tt(Qh(e),oD)}function LR(e){return VD(e)?qD(e.parent)?!(!e.propertyName||!DR(e.name)):DR(e.name):ap(e)||(VF(e)&&X_(e.parent.parent)||MR(e))&&DR(e.name)}function jR(e,t){const n=new Map,r=new Map,i=new Map;e.locals.forEach((e=>{var o;if(!(262144&e.flags?!(3&e.flags)||3&e.isReferenced:e.isReferenced||e.exportSymbol)&&e.declarations)for(const a of e.declarations)if(!LR(a))if(MR(a))IR(n,273===(o=a).kind?o:274===o.kind?o.parent:o.parent.parent,a,jB);else if(VD(a)&&qD(a.parent))a!==ve(a.parent.elements)&&ve(a.parent.elements).dotDotDotToken||IR(r,a.parent,a,jB);else if(VF(a)){const e=7&_z(a),t=Tc(a);(4===e||6===e)&&t&&DR(t)||IR(i,a.parent,a,jB)}else{const n=e.valueDeclaration&&OR(e.valueDeclaration),i=e.valueDeclaration&&Tc(e.valueDeclaration);n&&i?Ys(n,n.parent)||sv(n)||DR(i)||(VD(a)&&UD(a.parent)?IR(r,a.parent,a,jB):t(n,1,jp(i,la._0_is_declared_but_its_value_is_never_read,hc(e)))):NR(a,hc(e),t)}})),n.forEach((([e,n])=>{const r=e.parent;if((e.name?1:0)+(e.namedBindings?274===e.namedBindings.kind?1:e.namedBindings.elements.length:0)===n.length)t(r,0,1===n.length?jp(r,la._0_is_declared_but_its_value_is_never_read,mc(ge(n).name)):jp(r,la.All_imports_in_import_declaration_are_unused));else for(const e of n)NR(e,mc(e.name),t)})),r.forEach((([e,n])=>{const r=OR(e.parent)?1:0;if(e.elements.length===n.length)1===n.length&&260===e.parent.kind&&261===e.parent.parent.kind?IR(i,e.parent.parent,e.parent,jB):t(e,r,1===n.length?jp(e,la._0_is_declared_but_its_value_is_never_read,RR(ge(n).name)):jp(e,la.All_destructured_elements_are_unused));else for(const e of n)t(e,r,jp(e,la._0_is_declared_but_its_value_is_never_read,RR(e.name)))})),i.forEach((([e,n])=>{if(e.declarations.length===n.length)t(e,0,1===n.length?jp(ge(n).name,la._0_is_declared_but_its_value_is_never_read,RR(ge(n).name)):jp(243===e.parent.kind?e.parent:e,la.All_variables_are_unused));else for(const e of n)t(e,0,jp(e,la._0_is_declared_but_its_value_is_never_read,RR(e.name)))}))}function RR(e){switch(e.kind){case 80:return mc(e);case 207:case 206:return RR(nt(ge(e.elements),VD).name);default:return un.assertNever(e)}}function MR(e){return 273===e.kind||276===e.kind||274===e.kind}function BR(e){if(241===e.kind&&iz(e),c_(e)){const t=Ti;d(e.statements,dB),Ti=t}else d(e.statements,dB);e.locals&&CR(e)}function JR(e,t,n){if((null==t?void 0:t.escapedText)!==n)return!1;if(172===e.kind||171===e.kind||174===e.kind||173===e.kind||177===e.kind||178===e.kind||303===e.kind)return!1;if(33554432&e.flags)return!1;if((rE(e)||tE(e)||dE(e))&&Jl(e))return!1;const r=Qh(e);return!oD(r)||!Cd(r.parent.body)}function zR(e){_c(e,(t=>!!(4&mJ(t))&&(80!==e.kind?jo(Tc(e),la.Duplicate_identifier_this_Compiler_uses_variable_declaration_this_to_capture_this_reference):jo(e,la.Expression_resolves_to_variable_declaration_this_that_compiler_uses_to_capture_this_reference),!0)))}function qR(e){_c(e,(t=>!!(8&mJ(t))&&(80!==e.kind?jo(Tc(e),la.Duplicate_identifier_newTarget_Compiler_uses_variable_declaration_newTarget_to_capture_new_target_meta_property_reference):jo(e,la.Expression_resolves_to_variable_declaration_newTarget_that_compiler_uses_to_capture_new_target_meta_property_reference),!0)))}function UR(e){1048576&mJ(Dp(e))&&(un.assert(kc(e)&&zN(e.name)&&"string"==typeof e.name.escapedText,"The target of a WeakMap/WeakSet collision check should be an identifier"),Oo("noEmit",e,la.Compiler_reserves_name_0_when_emitting_private_identifier_downlevel,e.name.escapedText))}function VR(e){let t=!1;if(pF(e)){for(const n of e.members)if(2097152&mJ(n)){t=!0;break}}else if(eF(e))2097152&mJ(e)&&(t=!0);else{const n=Dp(e);n&&2097152&mJ(n)&&(t=!0)}t&&(un.assert(kc(e)&&zN(e.name),"The target of a Reflect collision check should be an identifier"),Oo("noEmit",e,la.Duplicate_identifier_0_Compiler_reserves_name_1_when_emitting_super_references_in_static_initializers,Ep(e.name),"Reflect"))}function WR(t,n){n&&(function(t,n){if(e.getEmitModuleFormatOfFile(hd(t))>=5)return;if(!n||!JR(t,n,"require")&&!JR(t,n,"exports"))return;if(QF(t)&&1!==wM(t))return;const r=qc(t);307===r.kind&&Qp(r)&&Oo("noEmit",n,la.Duplicate_identifier_0_Compiler_reserves_name_1_in_top_level_scope_of_a_module,Ep(n),Ep(n))}(t,n),function(e,t){if(!t||R>=4||!JR(e,t,"Promise"))return;if(QF(e)&&1!==wM(e))return;const n=qc(e);307===n.kind&&Qp(n)&&4096&n.flags&&Oo("noEmit",t,la.Duplicate_identifier_0_Compiler_reserves_name_1_in_top_level_scope_of_a_module_containing_async_functions,Ep(t),Ep(t))}(t,n),function(e,t){R<=8&&(JR(e,t,"WeakMap")||JR(e,t,"WeakSet"))&&io.push(e)}(t,n),function(e,t){t&&R>=2&&R<=8&&JR(e,t,"Reflect")&&oo.push(e)}(t,n),__(t)?(OM(n,la.Class_name_cannot_be_0),33554432&t.flags||function(t){R>=1&&"Object"===t.escapedText&&e.getEmitModuleFormatOfFile(hd(t))<5&&jo(t,la.Class_name_cannot_be_Object_when_targeting_ES5_with_module_0,fi[M])}(n)):XF(t)&&OM(n,la.Enum_name_cannot_be_0))}function $R(e){return e===Nt?wt:e===lr?cr:e}function HR(e){var t;if(kR(e),VD(e)||dB(e.type),!e.name)return;if(167===e.name.kind&&(kA(e.name),Eu(e)&&e.initializer&&fj(e.initializer)),VD(e)){if(e.propertyName&&zN(e.name)&&Xh(e)&&Cd(Hf(e).body))return void ao.push(e);qD(e.parent)&&e.dotDotDotToken&&R1&&$(n.declarations,(t=>t!==e&&Ef(t)&&!GR(t,e)))&&jo(e.name,la.All_declarations_of_0_must_have_identical_modifiers,Ep(e.name))}else{const t=$R(Ul(e));$c(r)||$c(t)||_S(r,t)||67108864&n.flags||KR(n.valueDeclaration,r,e,t),Eu(e)&&e.initializer&&xS(fj(e.initializer),t,e,e.initializer,void 0),n.valueDeclaration&&!GR(e,n.valueDeclaration)&&jo(e.name,la.All_declarations_of_0_must_have_identical_modifiers,Ep(e.name))}172!==e.kind&&171!==e.kind&&(rR(e),260!==e.kind&&208!==e.kind||function(e){if(7&_z(e)||Xh(e))return;const t=ps(e);if(1&t.flags){if(!zN(e.name))return un.fail();const n=Ue(e,e.name.escapedText,3,void 0,!1);if(n&&n!==t&&2&n.flags&&7&ZA(n)){const t=Sh(n.valueDeclaration,261),r=243===t.parent.kind&&t.parent.parent?t.parent.parent:void 0;if(!r||!(241===r.kind&&n_(r.parent)||268===r.kind||267===r.kind||307===r.kind)){const t=ic(n);jo(e,la.Cannot_initialize_outer_scoped_variable_0_in_the_same_scope_as_block_scoped_declaration_1,t,t)}}}}(e),WR(e,e.name))}function KR(e,t,n,r){const i=Tc(n),o=172===n.kind||171===n.kind?la.Subsequent_property_declarations_must_have_the_same_type_Property_0_must_be_of_type_1_but_here_has_type_2:la.Subsequent_variable_declarations_must_have_the_same_type_Variable_0_must_be_of_type_1_but_here_has_type_2,a=Ep(i),s=jo(i,o,a,sc(t),sc(r));e&&iT(s,jp(e,la._0_was_also_declared_here,a))}function GR(e,t){return 169===e.kind&&260===t.kind||260===e.kind&&169===t.kind||Cg(e)===Cg(t)&&Lv(e,1358)===Lv(t,1358)}function XR(t){var n,r;null==(n=Hn)||n.push(Hn.Phase.Check,"checkVariableDeclaration",{kind:t.kind,pos:t.pos,end:t.end,path:t.tracingPath}),function(t){const n=_z(t),r=7&n;if(x_(t.name))switch(r){case 6:return nz(t,la._0_declarations_may_not_have_binding_patterns,"await using");case 4:return nz(t,la._0_declarations_may_not_have_binding_patterns,"using")}if(249!==t.parent.parent.kind&&250!==t.parent.parent.kind)if(33554432&n)KJ(t);else if(!t.initializer){if(x_(t.name)&&!x_(t.parent))return nz(t,la.A_destructuring_declaration_must_have_an_initializer);switch(r){case 6:return nz(t,la._0_declarations_must_be_initialized,"await using");case 4:return nz(t,la._0_declarations_must_be_initialized,"using");case 2:return nz(t,la._0_declarations_must_be_initialized,"const")}}if(t.exclamationToken&&(243!==t.parent.parent.kind||!t.type||t.initializer||33554432&n)){const e=t.initializer?la.Declarations_with_initializers_cannot_also_have_definite_assignment_assertions:t.type?la.A_definite_assignment_assertion_is_not_permitted_in_this_context:la.Declarations_with_definite_assignment_assertions_must_also_have_type_annotations;return nz(t.exclamationToken,e)}e.getEmitModuleFormatOfFile(hd(t))<4&&!(33554432&t.parent.parent.flags)&&wv(t.parent.parent,32)&&GJ(t.name),r&&XJ(t.name)}(t),HR(t),null==(r=Hn)||r.pop()}function QR(e){const t=7&oc(e);(4===t||6===t)&&R=2,s=!a&&j.downlevelIteration,c=j.noUncheckedIndexedAccess&&!!(128&e);if(a||s||o){const o=_M(t,e,a?r:void 0);if(i&&o){const t=8&e?la.Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_for_of_will_always_send_0:32&e?la.Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_array_spread_will_always_send_0:64&e?la.Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_array_destructuring_will_always_send_0:16&e?la.Cannot_delegate_iteration_to_value_because_the_next_method_of_its_iterator_expects_type_1_but_the_containing_generator_will_always_send_0:void 0;t&&bS(n,o.nextType,r,t)}if(o||a)return c?UN(o&&o.yieldType):o&&o.yieldType}let l=t,_=!1;if(4&e){if(1048576&l.flags){const e=t.types,n=N(e,(e=>!(402653316&e.flags)));n!==e&&(l=xb(n,2))}else 402653316&l.flags&&(l=_n);if(_=l!==t,_&&131072&l.flags)return c?UN(Vt):Vt}if(!CC(l)){if(r){const n=!!(4&e)&&!_,[i,o]=function(n,r){var i;return r?n?[la.Type_0_is_not_an_array_type_or_a_string_type_or_does_not_have_a_Symbol_iterator_method_that_returns_an_iterator,!0]:[la.Type_0_is_not_an_array_type_or_does_not_have_a_Symbol_iterator_method_that_returns_an_iterator,!0]:oM(e,0,t,void 0)?[la.Type_0_can_only_be_iterated_through_when_using_the_downlevelIteration_flag_or_with_a_target_of_es2015_or_higher,!1]:function(e){switch(e){case"Float32Array":case"Float64Array":case"Int16Array":case"Int32Array":case"Int8Array":case"NodeList":case"Uint16Array":case"Uint32Array":case"Uint8Array":case"Uint8ClampedArray":return!0}return!1}(null==(i=t.symbol)?void 0:i.escapedName)?[la.Type_0_can_only_be_iterated_through_when_using_the_downlevelIteration_flag_or_with_a_target_of_es2015_or_higher,!0]:n?[la.Type_0_is_not_an_array_type_or_a_string_type,!0]:[la.Type_0_is_not_an_array_type,!0]}(n,s);Jo(r,o&&!!iR(l),i,sc(l))}return _?c?UN(Vt):Vt:void 0}const u=pm(l,Wt);return _&&u?402653316&u.flags&&!j.noUncheckedIndexedAccess?Vt:xb(c?[u,Vt,jt]:[u,Vt],2):128&e?UN(u):u}function oM(e,t,n,r){if(Wc(n))return;const i=_M(n,e,r);return i&&i[qB(t)]}function aM(e=_n,t=_n,n=Ot){if(67359327&e.flags&&180227&t.flags&&180227&n.flags){const r=Eh([e,t,n]);let i=di.get(r);return i||(i={yieldType:e,returnType:t,nextType:n},di.set(r,i)),i}return{yieldType:e,returnType:t,nextType:n}}function sM(e){let t,n,r;for(const i of e)if(void 0!==i&&i!==pi){if(i===mi)return mi;t=ie(t,i.yieldType),n=ie(n,i.returnType),r=ie(r,i.nextType)}return t||n||r?aM(t&&xb(t),n&&xb(n),r&&Fb(r)):pi}function cM(e,t){return e[t]}function lM(e,t,n){return e[t]=n}function _M(e,t,n){var r,i;if(Wc(e))return mi;if(!(1048576&e.flags)){const i=n?{errors:void 0,skipLogging:!0}:void 0,o=dM(e,t,n,i);if(o===pi){if(n){const r=hM(n,e,!!(2&t));(null==i?void 0:i.errors)&&iT(r,...i.errors)}return}if(null==(r=null==i?void 0:i.errors)?void 0:r.length)for(const e of i.errors)uo.add(e);return o}const o=2&t?"iterationTypesOfAsyncIterable":"iterationTypesOfIterable",a=cM(e,o);if(a)return a===pi?void 0:a;let s;for(const r of e.types){const a=n?{errors:void 0}:void 0,c=dM(r,t,n,a);if(c===pi){if(n){const r=hM(n,e,!!(2&t));(null==a?void 0:a.errors)&&iT(r,...a.errors)}return void lM(e,o,pi)}if(null==(i=null==a?void 0:a.errors)?void 0:i.length)for(const e of a.errors)uo.add(e);s=ie(s,c)}const c=s?sM(s):pi;return lM(e,o,c),c===pi?void 0:c}function uM(e,t){if(e===pi)return pi;if(e===mi)return mi;const{yieldType:n,returnType:r,nextType:i}=e;return t&&ev(!0),aM(dR(n,t)||wt,dR(r,t)||wt,i)}function dM(e,t,n,r){if(Wc(e))return mi;let i=!1;if(2&t){const r=pM(e,gi)||fM(e,gi);if(r){if(r!==pi||!n)return 8&t?uM(r,n):r;i=!0}}if(1&t){let r=pM(e,hi)||fM(e,hi);if(r)if(r===pi&&n)i=!0;else{if(!(2&t))return r;if(r!==pi)return r=uM(r,n),i?r:lM(e,"iterationTypesOfAsyncIterable",r)}}if(2&t){const t=gM(e,gi,n,r,i);if(t!==pi)return t}if(1&t){let o=gM(e,hi,n,r,i);if(o!==pi)return 2&t?(o=uM(o,n),i?o:lM(e,"iterationTypesOfAsyncIterable",o)):o}return pi}function pM(e,t){return cM(e,t.iterableCacheKey)}function fM(e,t){if(w_(e,t.getGlobalIterableType(!1))||w_(e,t.getGlobalIteratorObjectType(!1))||w_(e,t.getGlobalIterableIteratorType(!1))||w_(e,t.getGlobalGeneratorType(!1))){const[n,r,i]=Kh(e);return lM(e,t.iterableCacheKey,aM(t.resolveIterationType(n,void 0)||n,t.resolveIterationType(r,void 0)||r,i))}if(C_(e,t.getGlobalBuiltinIteratorTypes())){const[n]=Kh(e),r=Qy(),i=Ot;return lM(e,t.iterableCacheKey,aM(t.resolveIterationType(n,void 0)||n,t.resolveIterationType(r,void 0)||r,i))}}function mM(e){const t=zy(!1),n=t&&Uc(S_(t),pc(e));return n&&oC(n)?aC(n):`__@${e}`}function gM(e,t,n,r,i){const o=Cf(e,mM(t.iteratorSymbolName)),a=!o||16777216&o.flags?void 0:S_(o);if(Wc(a))return i?mi:lM(e,t.iterableCacheKey,mi);const s=a?Rf(a,0):void 0,c=N(s,(e=>0===yL(e)));if(!$(c))return n&&$(s)&&bS(e,t.getGlobalIterableType(!0),n,void 0,void 0,r),i?pi:lM(e,t.iterableCacheKey,pi);const l=yM(Fb(E(c,Tg)),t,n,r,i)??pi;return i?l:lM(e,t.iterableCacheKey,l)}function hM(e,t,n){const r=n?la.Type_0_must_have_a_Symbol_asyncIterator_method_that_returns_an_async_iterator:la.Type_0_must_have_a_Symbol_iterator_method_that_returns_an_iterator;return Jo(e,!!iR(t)||!n&&OF(e.parent)&&e.parent.expression===e&&$y(!1)!==On&&gS(t,tv($y(!1),[wt,wt,wt])),r,sc(t))}function yM(e,t,n,r,i){if(Wc(e))return mi;let o=function(e,t){return cM(e,t.iteratorCacheKey)}(e,t)||function(e,t){if(w_(e,t.getGlobalIterableIteratorType(!1))||w_(e,t.getGlobalIteratorType(!1))||w_(e,t.getGlobalIteratorObjectType(!1))||w_(e,t.getGlobalGeneratorType(!1))){const[n,r,i]=Kh(e);return lM(e,t.iteratorCacheKey,aM(n,r,i))}if(C_(e,t.getGlobalBuiltinIteratorTypes())){const[n]=Kh(e),r=Qy(),i=Ot;return lM(e,t.iteratorCacheKey,aM(n,r,i))}}(e,t);return o===pi&&n&&(o=void 0,i=!0),o??(o=function(e,t,n,r,i){const o=sM([SM(e,t,"next",n,r),SM(e,t,"return",n,r),SM(e,t,"throw",n,r)]);return i?o:lM(e,t.iteratorCacheKey,o)}(e,t,n,r,i)),o===pi?void 0:o}function vM(e,t){const n=Uc(e,"done")||Ht;return gS(0===t?Ht:Yt,n)}function xM(e){return vM(e,0)}function kM(e){return vM(e,1)}function SM(e,t,n,r,i){var o,a,s,c;const _=Cf(e,n);if(!_&&"next"!==n)return;const u=!_||"next"===n&&16777216&_.flags?void 0:"next"===n?S_(_):ON(S_(_),2097152);if(Wc(u))return mi;const d=u?Rf(u,0):l;if(0===d.length){if(r){const e="next"===n?t.mustHaveANextMethodDiagnostic:t.mustBeAMethodDiagnostic;i?(i.errors??(i.errors=[]),i.errors.push(jp(r,e,n))):jo(r,e,n)}return"next"===n?pi:void 0}if((null==u?void 0:u.symbol)&&1===d.length){const e=t.getGlobalGeneratorType(!1),r=t.getGlobalIteratorType(!1),i=(null==(a=null==(o=e.symbol)?void 0:o.members)?void 0:a.get(n))===u.symbol,l=!i&&(null==(c=null==(s=r.symbol)?void 0:s.members)?void 0:c.get(n))===u.symbol;if(i||l){const t=i?e:r,{mapper:o}=u;return aM(Ck(t.typeParameters[0],o),Ck(t.typeParameters[1],o),"next"===n?Ck(t.typeParameters[2],o):void 0)}}let p,f,m,g,h;for(const e of d)"throw"!==n&&$(e.parameters)&&(p=ie(p,pL(e,0))),f=ie(f,Tg(e));if("throw"!==n){const e=p?xb(p):Ot;"next"===n?g=e:"return"===n&&(m=ie(m,t.resolveIterationType(e,r)||wt))}const y=f?Fb(f):_n,v=function(e){if(Wc(e))return mi;const t=cM(e,"iterationTypesOfIteratorResult");if(t)return t;if(w_(e,Cr||(Cr=Ay("IteratorYieldResult",1,!1))||On))return lM(e,"iterationTypesOfIteratorResult",aM(Kh(e)[0],void 0,void 0));if(w_(e,wr||(wr=Ay("IteratorReturnResult",1,!1))||On))return lM(e,"iterationTypesOfIteratorResult",aM(void 0,Kh(e)[0],void 0));const n=OD(e,xM),r=n!==_n?Uc(n,"value"):void 0,i=OD(e,kM),o=i!==_n?Uc(i,"value"):void 0;return lM(e,"iterationTypesOfIteratorResult",r||o?aM(r,o||ln,void 0):pi)}(t.resolveIterationType(y,r)||wt);return v===pi?(r&&(i?(i.errors??(i.errors=[]),i.errors.push(jp(r,t.mustHaveAValueDiagnostic,n))):jo(r,t.mustHaveAValueDiagnostic,n)),h=wt,m=ie(m,wt)):(h=v.yieldType,m=ie(m,v.returnType)),aM(h,xb(m),g)}function TM(e,t,n){if(Wc(t))return;const r=CM(t,n);return r&&r[qB(e)]}function CM(e,t){if(Wc(e))return mi;const n=t?gi:hi;return _M(e,t?2:1,void 0)||function(e,t){return yM(e,t,void 0,void 0,!1)}(e,n)}function NM(e,t){const n=!!(2&t);if(1&t){const t=TM(1,e,n);return t?n?pR(lR(t)):t:Et}return n?pR(e)||Et:e}function DM(e,t){const n=NM(t,Ih(e));return!(!n||!(QL(n,16384)||32769&n.flags))}function FM(e,t,n){const r=Kf(e);if(0===r.length)return;for(const t of gp(e))n&&4194304&t.flags||PM(e,t,Mb(t,8576,!0),T_(t));const i=t.valueDeclaration;if(i&&__(i))for(const t of i.members)if(!Nv(t)&&!Zu(t)){const n=ps(t);PM(e,n,Aj(t.name.expression),T_(n))}if(r.length>1)for(const t of r)IM(e,t)}function PM(e,t,n,r){const i=t.valueDeclaration,o=Tc(i);if(o&&qN(o))return;const a=fm(e,n),s=2&mx(e)?Wu(e.symbol,264):void 0,c=i&&226===i.kind||o&&167===o.kind?i:void 0,l=hs(t)===e.symbol?i:void 0;for(const n of a){const i=n.declaration&&hs(ps(n.declaration))===e.symbol?n.declaration:void 0,o=l||i||(s&&!$(Z_(e),(e=>!!hp(e,t.escapedName)&&!!pm(e,n.keyType)))?s:void 0);if(o&&!gS(r,n.type)){const e=Lo(o,la.Property_0_of_type_1_is_not_assignable_to_2_index_type_3,ic(t),sc(r),sc(n.keyType),sc(n.type));c&&o!==c&&iT(e,jp(c,la._0_is_declared_here,ic(t))),uo.add(e)}}}function IM(e,t){const n=t.declaration,r=fm(e,t.keyType),i=2&mx(e)?Wu(e.symbol,264):void 0,o=n&&hs(ps(n))===e.symbol?n:void 0;for(const n of r){if(n===t)continue;const r=n.declaration&&hs(ps(n.declaration))===e.symbol?n.declaration:void 0,a=o||r||(i&&!$(Z_(e),(e=>!!dm(e,t.keyType)&&!!pm(e,n.keyType)))?i:void 0);a&&!gS(t.type,n.type)&&jo(a,la._0_index_type_1_is_not_assignable_to_2_index_type_3,sc(t.keyType),sc(t.type),sc(n.keyType),sc(n.type))}}function OM(e,t){switch(e.escapedText){case"any":case"unknown":case"never":case"number":case"bigint":case"boolean":case"string":case"symbol":case"void":case"object":case"undefined":jo(e,t,e.escapedText)}}function LM(e){let t=!1;if(e)for(let t=0;t{var i,o,a;n.default?(t=!0,i=n.default,o=e,a=r,function e(t){if(183===t.kind){const e=ky(t);if(262144&e.flags)for(let n=a;n263===e.kind||264===e.kind))}(e);if(!n||n.length<=1)return;if(!RM(n,fu(e).localTypeParameters,ll)){const t=ic(e);for(const e of n)jo(e.name,la.All_declarations_of_0_must_have_identical_type_parameters,t)}}}function RM(e,t,n){const r=u(t),i=ng(t);for(const o of e){const e=n(o),a=e.length;if(ar)return!1;for(let n=0;n1)return ez(r.types[1],la.Classes_can_only_extend_a_single_class);t=!0}else{if(un.assert(119===r.token),n)return ez(r,la.implements_clause_already_seen);n=!0}LJ(r)}})(e)||AJ(e.typeParameters,t)}(e),kR(e),WR(e,e.name),LM(ll(e)),rR(e);const t=ps(e),n=fu(t),r=ld(n),i=S_(t);jM(t),nR(t),function(e){const t=new Map,n=new Map,r=new Map;for(const o of e.members)if(176===o.kind)for(const e of o.parameters)Ys(e,o)&&!x_(e.name)&&i(t,e.name,e.name.escapedText,3);else{const e=Nv(o),a=o.name;if(!a)continue;const s=qN(a),c=s&&e?16:0,l=s?r:e?n:t,_=a&&cz(a);if(_)switch(o.kind){case 177:i(l,a,_,1|c);break;case 178:i(l,a,_,2|c);break;case 172:i(l,a,_,3|c);break;case 174:i(l,a,_,8|c)}}function i(e,t,n,r){const i=e.get(n);if(i)if((16&i)!=(16&r))jo(t,la.Duplicate_identifier_0_Static_and_instance_elements_cannot_share_the_same_private_name,Kd(t));else{const o=!!(8&i),a=!!(8&r);o||a?o!==a&&jo(t,la.Duplicate_identifier_0,Kd(t)):i&r&-17?jo(t,la.Duplicate_identifier_0,Kd(t)):e.set(n,i|r)}else e.set(n,r)}}(e),33554432&e.flags||function(e){for(const t of e.members){const n=t.name;if(Nv(t)&&n){const t=cz(n);switch(t){case"name":case"length":case"caller":case"arguments":if(U)break;case"prototype":jo(n,la.Static_property_0_conflicts_with_built_in_property_Function_0_of_constructor_function_1,t,Ic(ps(e)))}}}}(e);const o=hh(e);if(o){d(o.typeArguments,dB),R{const t=s[0],a=Q_(n),c=pf(a);if(function(e,t){const n=Rf(e,1);if(n.length){const r=n[0].declaration;r&&Cv(r,2)&&(BB(t,fx(e.symbol))||jo(t,la.Cannot_extend_a_class_0_Class_constructor_is_marked_as_private,Ha(e.symbol)))}}(c,o),dB(o.expression),$(o.typeArguments)){d(o.typeArguments,dB);for(const e of q_(c,o.typeArguments,o))if(!Gj(o,e.typeParameters))break}const l=ld(t,n.thisType);bS(r,l,void 0)?bS(i,lS(c),e.name||e,la.Class_static_side_0_incorrectly_extends_base_class_static_side_1):UM(e,r,l,la.Class_0_incorrectly_extends_base_class_1),8650752&a.flags&&(B_(i)?Rf(a,1).some((e=>4&e.flags))&&!wv(e,64)&&jo(e.name||e,la.A_mixin_class_that_extends_from_a_type_variable_containing_an_abstract_construct_signature_must_also_be_declared_abstract):jo(e.name||e,la.A_mixin_class_must_have_a_constructor_with_a_single_rest_parameter_of_type_any)),c.symbol&&32&c.symbol.flags||8650752&a.flags||d($_(c,o.typeArguments,o),(e=>!qO(e.declaration)&&!_S(Tg(e),t)))&&jo(o.expression,la.Base_constructors_must_all_have_the_same_return_type),function(e,t){var n,r,i,o,a;const s=vp(t),c=new Map;e:for(const l of s){const s=VM(l);if(4194304&s.flags)continue;const _=hp(e,s.escapedName);if(!_)continue;const u=VM(_),d=rx(s);if(un.assert(!!u,"derived should point to something, even if it is the base class' declaration."),u===s){const r=fx(e.symbol);if(64&d&&(!r||!wv(r,64))){for(const n of Z_(e)){if(n===t)continue;const e=hp(n,s.escapedName),r=e&&VM(e);if(r&&r!==s)continue e}const i=sc(t),o=sc(e),a=ic(l),_=ie(null==(n=c.get(r))?void 0:n.missedProperties,a);c.set(r,{baseTypeName:i,typeName:o,missedProperties:_})}}else{const n=rx(u);if(2&d||2&n)continue;let c;const l=98308&s.flags,_=98308&u.flags;if(l&&_){if((6&nx(s)?null==(r=s.declarations)?void 0:r.some((e=>WM(e,d))):null==(i=s.declarations)?void 0:i.every((e=>WM(e,d))))||262144&nx(s)||u.valueDeclaration&&cF(u.valueDeclaration))continue;const c=4!==l&&4===_;if(c||4===l&&4!==_){const n=c?la._0_is_defined_as_an_accessor_in_class_1_but_is_overridden_here_in_2_as_an_instance_property:la._0_is_defined_as_a_property_in_class_1_but_is_overridden_here_in_2_as_an_accessor;jo(Tc(u.valueDeclaration)||u.valueDeclaration,n,ic(s),sc(t),sc(e))}else if(U){const r=null==(o=u.declarations)?void 0:o.find((e=>172===e.kind&&!e.initializer));if(r&&!(33554432&u.flags)&&!(64&d)&&!(64&n)&&!(null==(a=u.declarations)?void 0:a.some((e=>!!(33554432&e.flags))))){const n=gC(fx(e.symbol)),i=r.name;if(r.exclamationToken||!n||!zN(i)||!H||!HM(i,e,n)){const e=la.Property_0_will_overwrite_the_base_property_in_1_If_this_is_intentional_add_an_initializer_Otherwise_add_a_declare_modifier_or_remove_the_redundant_declaration;jo(Tc(u.valueDeclaration)||u.valueDeclaration,e,ic(s),sc(t))}}}continue}if(eI(s)){if(eI(u)||4&u.flags)continue;un.assert(!!(98304&u.flags)),c=la.Class_0_defines_instance_member_function_1_but_extended_class_2_defines_it_as_instance_member_accessor}else c=98304&s.flags?la.Class_0_defines_instance_member_accessor_1_but_extended_class_2_defines_it_as_instance_member_function:la.Class_0_defines_instance_member_property_1_but_extended_class_2_defines_it_as_instance_member_function;jo(Tc(u.valueDeclaration)||u.valueDeclaration,c,sc(t),ic(s),sc(e))}}for(const[e,t]of c)if(1===u(t.missedProperties))pF(e)?jo(e,la.Non_abstract_class_expression_does_not_implement_inherited_abstract_member_0_from_class_1,ge(t.missedProperties),t.baseTypeName):jo(e,la.Non_abstract_class_0_does_not_implement_inherited_abstract_member_1_from_class_2,t.typeName,ge(t.missedProperties),t.baseTypeName);else if(u(t.missedProperties)>5){const n=E(t.missedProperties.slice(0,4),(e=>`'${e}'`)).join(", "),r=u(t.missedProperties)-4;pF(e)?jo(e,la.Non_abstract_class_expression_is_missing_implementations_for_the_following_members_of_0_Colon_1_and_2_more,t.baseTypeName,n,r):jo(e,la.Non_abstract_class_0_is_missing_implementations_for_the_following_members_of_1_Colon_2_and_3_more,t.typeName,t.baseTypeName,n,r)}else{const n=E(t.missedProperties,(e=>`'${e}'`)).join(", ");pF(e)?jo(e,la.Non_abstract_class_expression_is_missing_implementations_for_the_following_members_of_0_Colon_1,t.baseTypeName,n):jo(e,la.Non_abstract_class_0_is_missing_implementations_for_the_following_members_of_1_Colon_2,t.typeName,t.baseTypeName,n)}}(n,t)}))}!function(e,t,n,r){const i=hh(e)&&Z_(t),o=(null==i?void 0:i.length)?ld(ge(i),t.thisType):void 0,a=Q_(t);for(const i of e.members)Pv(i)||(dD(i)&&d(i.parameters,(s=>{Ys(s,i)&&zM(e,r,a,o,t,n,s,!0)})),zM(e,r,a,o,t,n,i,!1))}(e,n,r,i);const s=vh(e);if(s)for(const e of s)ob(e.expression)&&!gl(e.expression)||jo(e.expression,la.A_class_can_only_implement_an_identifier_Slashqualified_name_with_optional_type_arguments),Qj(e),a(c(e));function c(t){return()=>{const i=yf(dk(t));if(!$c(i))if(tu(i)){const t=i.symbol&&32&i.symbol.flags?la.Class_0_incorrectly_implements_class_1_Did_you_mean_to_extend_1_and_inherit_its_members_as_a_subclass:la.Class_0_incorrectly_implements_interface_1,o=ld(i,n.thisType);bS(r,o,void 0)||UM(e,r,o,t)}else jo(t,la.A_class_can_only_implement_an_object_type_or_intersection_of_object_types_with_statically_known_members)}}a((()=>{FM(n,t),FM(i,t,!0),qj(e),function(e){if(!H||!Z||33554432&e.flags)return;const t=gC(e);for(const n of e.members)if(!(128&Mv(n))&&!Nv(n)&&$M(n)){const e=n.name;if(zN(e)||qN(e)||rD(e)){const r=S_(ps(n));3&r.flags||RS(r)||t&&HM(e,r,t)||jo(n.name,la.Property_0_has_no_initializer_and_is_not_definitely_assigned_in_the_constructor,Ep(e))}}}(e)}))}function zM(e,t,n,r,i,o,a,s,c=!0){const l=a.name&&YB(a.name)||YB(a);return l?qM(e,t,n,r,i,o,Fv(a),Ev(a),Nv(a),s,l,c?a:void 0):0}function qM(e,t,n,r,i,o,a,s,c,l,_,u){const d=Fm(e),p=!!(33554432&e.flags);if(r&&(a||j.noImplicitOverride)){const e=c?n:r,i=Cf(c?t:o,_.escapedName),f=Cf(e,_.escapedName),m=sc(r);if(i&&!f&&a){if(u){const t=EI(hc(_),e);t?jo(u,d?la.This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base_class_0_Did_you_mean_1:la.This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0_Did_you_mean_1,m,ic(t)):jo(u,d?la.This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base_class_0:la.This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0,m)}return 2}if(i&&(null==f?void 0:f.declarations)&&j.noImplicitOverride&&!p){const e=$(f.declarations,Ev);if(a)return 0;if(!e)return u&&jo(u,l?d?la.This_parameter_property_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_class_0:la.This_parameter_property_must_have_an_override_modifier_because_it_overrides_a_member_in_base_class_0:d?la.This_member_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_class_0:la.This_member_must_have_an_override_modifier_because_it_overrides_a_member_in_the_base_class_0,m),1;if(s&&e)return u&&jo(u,la.This_member_must_have_an_override_modifier_because_it_overrides_an_abstract_method_that_is_declared_in_the_base_class_0,m),1}}else if(a){if(u){const e=sc(i);jo(u,d?la.This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_its_containing_class_0_does_not_extend_another_class:la.This_member_cannot_have_an_override_modifier_because_its_containing_class_0_does_not_extend_another_class,e)}return 2}return 0}function UM(e,t,n,r){let i=!1;for(const r of e.members){if(Nv(r))continue;const e=r.name&&YB(r.name)||YB(r);if(e){const o=Cf(t,e.escapedName),a=Cf(n,e.escapedName);if(o&&a){const s=()=>Yx(void 0,la.Property_0_in_type_1_is_not_assignable_to_the_same_property_in_base_type_2,ic(e),sc(t),sc(n));bS(S_(o),S_(a),r.name||r,void 0,s)||(i=!0)}}}i||bS(t,n,e.name||e,r)}function VM(e){return 1&nx(e)?e.links.target:e}function WM(e,t){return 64&t&&(!cD(e)||!e.initializer)||KF(e.parent)}function $M(e){return 172===e.kind&&!Ev(e)&&!e.exclamationToken&&!e.initializer}function HM(e,t,n){const r=rD(e)?XC.createElementAccessExpression(XC.createThis(),e.expression):XC.createPropertyAccessExpression(XC.createThis(),e);return wT(r.expression,r),wT(r,n),r.flowNode=n.returnFlowNode,!RS(JF(r,t,tw(t)))}function KM(e){const t=aa(e);if(!(1024&t.flags)){t.flags|=1024;let n,r=0;for(const t of e.members){const e=XM(t,r,n);aa(t).enumMemberValue=e,r="number"==typeof e.value?e.value+1:void 0,n=t}}}function XM(e,t,n){if(Ap(e.name))jo(e.name,la.Computed_property_names_are_not_allowed_in_enums);else{const t=Op(e.name);MT(t)&&!OT(t)&&jo(e.name,la.An_enum_member_cannot_have_a_numeric_name)}if(e.initializer)return function(e){const t=Zp(e.parent),n=e.initializer,r=Ce(n,e);return void 0!==r.value?t&&"number"==typeof r.value&&!isFinite(r.value)?jo(n,isNaN(r.value)?la.const_enum_member_initializer_was_evaluated_to_disallowed_value_NaN:la.const_enum_member_initializer_was_evaluated_to_a_non_finite_value):xk(j)&&"string"==typeof r.value&&!r.isSyntacticallyString&&jo(n,la._0_has_a_string_type_but_must_have_syntactically_recognizable_string_syntax_when_isolatedModules_is_enabled,`${mc(e.parent.name)}.${Op(e.name)}`):t?jo(n,la.const_enum_member_initializers_must_be_constant_expressions):33554432&e.parent.flags?jo(n,la.In_ambient_enum_declarations_member_initializer_must_be_constant_expression):bS(Lj(n),Wt,n,la.Type_0_is_not_assignable_to_type_1_as_required_for_computed_enum_member_values),r}(e);if(33554432&e.parent.flags&&!Zp(e.parent))return pC(void 0);if(void 0===t)return jo(e.name,la.Enum_member_must_have_initializer),pC(void 0);if(xk(j)&&(null==n?void 0:n.initializer)){const t=hJ(n);("number"!=typeof t.value||t.resolvedOtherFiles)&&jo(e.name,la.Enum_member_following_a_non_literal_numeric_member_must_have_an_initializer_when_isolatedModules_is_enabled)}return pC(t)}function QM(e,t){const n=Ka(e,111551,!0);if(!n)return pC(void 0);if(80===e.kind){const t=e;if(OT(t.escapedText)&&n===Py(t.escapedText,111551,void 0))return pC(+t.escapedText,!1)}if(8&n.flags)return t?YM(e,n,t):hJ(n.valueDeclaration);if(cE(n)){const e=n.valueDeclaration;if(e&&VF(e)&&!e.type&&e.initializer&&(!t||e!==t&&ca(e,t))){const n=Ce(e.initializer,e);return t&&hd(t)!==hd(e)?pC(n.value,!1,!0,!0):pC(n.value,n.isSyntacticallyString,n.resolvedOtherFiles,!0)}}return pC(void 0)}function YM(e,t,n){const r=t.valueDeclaration;if(!r||r===n)return jo(e,la.Property_0_is_used_before_being_assigned,ic(t)),pC(void 0);if(!ca(r,n))return jo(e,la.A_member_initializer_in_a_enum_declaration_cannot_reference_members_declared_after_it_including_members_defined_in_other_enums),pC(0);const i=hJ(r);return n.parent!==r.parent?pC(i.value,i.isSyntacticallyString,i.resolvedOtherFiles,!0):i}function ZM(e){qN(e.name)&&jo(e,la.An_enum_member_cannot_be_named_with_a_private_identifier),e.initializer&&Lj(e.initializer)}function eB(e,t){switch(e.kind){case 243:for(const n of e.declarationList.declarations)eB(n,t);break;case 277:case 278:ez(e,la.Exports_and_export_assignments_are_not_permitted_in_module_augmentations);break;case 271:if(wm(e))break;case 272:ez(e,la.Imports_are_not_permitted_in_module_augmentations_Consider_moving_them_to_the_enclosing_external_module);break;case 208:case 260:const n=e.name;if(x_(n)){for(const e of n.elements)eB(e,t);break}case 263:case 266:case 262:case 264:case 267:case 265:if(t)return}}function nB(e){const t=xg(e);if(!t||Cd(t))return!1;if(!TN(t))return jo(t,la.String_literal_expected),!1;const n=268===e.parent.kind&&ap(e.parent.parent);if(307!==e.parent.kind&&!n)return jo(t,278===e.kind?la.Export_declarations_are_not_permitted_in_a_namespace:la.Import_declarations_in_a_namespace_cannot_reference_a_module),!1;if(n&&Ts(t.text)&&!Ec(e))return jo(e,la.Import_or_export_declaration_in_an_ambient_module_declaration_cannot_reference_module_through_relative_module_name),!1;if(!tE(e)&&e.attributes){const t=118===e.attributes.token?la.Import_attribute_values_must_be_string_literal_expressions:la.Import_assertion_values_must_be_string_literal_expressions;let n=!1;for(const r of e.attributes.elements)TN(r.value)||(n=!0,jo(r.value,t));return!n}return!0}function rB(e,t=!0){void 0!==e&&11===e.kind&&(t?5!==M&&6!==M||nz(e,la.String_literal_import_and_export_names_are_not_supported_when_the_module_flag_is_set_to_es2015_or_es2020):nz(e,la.Identifier_expected))}function iB(t){var n,r,i,o;let a=ps(t);const s=Ba(a);if(s!==xt){if(a=ds(a.exportSymbol||a),Fm(t)&&!(111551&s.flags)&&!Jl(t)){const e=Rl(t)?t.propertyName||t.name:kc(t)?t.name:t;if(un.assert(280!==t.kind),281===t.kind){const o=jo(e,la.Types_cannot_appear_in_export_declarations_in_JavaScript_files),a=null==(r=null==(n=hd(t).symbol)?void 0:n.exports)?void 0:r.get(Wd(t.propertyName||t.name));if(a===s){const e=null==(i=a.declarations)?void 0:i.find(ku);e&&iT(o,jp(e,la._0_is_automatically_exported_here,fc(a.escapedName)))}}else{un.assert(260!==t.kind);const n=_c(t,en(nE,tE)),r=(n&&(null==(o=hg(n))?void 0:o.text))??"...",i=fc(zN(e)?e.escapedText:a.escapedName);jo(e,la._0_is_a_type_and_cannot_be_imported_in_JavaScript_files_Use_1_in_a_JSDoc_type_annotation,i,`import("${r}").${i}`)}return}const c=za(s);if(c&((1160127&a.flags?111551:0)|(788968&a.flags?788968:0)|(1920&a.flags?1920:0))?jo(t,281===t.kind?la.Export_declaration_conflicts_with_exported_declaration_of_0:la.Import_declaration_conflicts_with_local_declaration_of_0,ic(a)):281!==t.kind&&j.isolatedModules&&!_c(t,Jl)&&1160127&a.flags&&jo(t,la.Import_0_conflicts_with_local_value_so_must_be_declared_with_a_type_only_import_when_isolatedModules_is_enabled,ic(a),Re),xk(j)&&!Jl(t)&&!(33554432&t.flags)){const n=Wa(a),r=!(111551&c);if(r||n)switch(t.kind){case 273:case 276:case 271:if(j.verbatimModuleSyntax){un.assertIsDefined(t.name,"An ImportClause with a symbol should have a name");const e=j.verbatimModuleSyntax&&wm(t)?la.An_import_alias_cannot_resolve_to_a_type_or_type_only_declaration_when_verbatimModuleSyntax_is_enabled:r?la._0_is_a_type_and_must_be_imported_using_a_type_only_import_when_verbatimModuleSyntax_is_enabled:la._0_resolves_to_a_type_only_declaration_and_must_be_imported_using_a_type_only_import_when_verbatimModuleSyntax_is_enabled,i=Vd(276===t.kind&&t.propertyName||t.name);da(jo(t,e,i),r?void 0:n,i)}r&&271===t.kind&&Cv(t,32)&&jo(t,la.Cannot_use_export_import_on_a_type_or_type_only_namespace_when_0_is_enabled,Re);break;case 281:if(j.verbatimModuleSyntax||hd(n)!==hd(t)){const e=Vd(t.propertyName||t.name);da(r?jo(t,la.Re_exporting_a_type_when_0_is_enabled_requires_using_export_type,Re):jo(t,la._0_resolves_to_a_type_only_declaration_and_must_be_re_exported_using_a_type_only_re_export_when_1_is_enabled,e,Re),r?void 0:n,e);break}}if(j.verbatimModuleSyntax&&271!==t.kind&&!Fm(t)&&1===e.getEmitModuleFormatOfFile(hd(t))?jo(t,la.ESM_syntax_is_not_allowed_in_a_CommonJS_module_when_verbatimModuleSyntax_is_enabled):200===M&&271!==t.kind&&260!==t.kind&&1===e.getEmitModuleFormatOfFile(hd(t))&&jo(t,la.ESM_syntax_is_not_allowed_in_a_CommonJS_module_when_module_is_set_to_preserve),j.verbatimModuleSyntax&&!Jl(t)&&!(33554432&t.flags)&&128&c){const n=s.valueDeclaration,r=e.getRedirectReferenceForResolutionFromSourceOfProject(hd(n).resolvedPath);!(33554432&n.flags)||r&&Dk(r.commandLine.options)||jo(t,la.Cannot_access_ambient_const_enums_when_0_is_enabled,Re)}}if(dE(t)){const e=oB(a,t);qo(e)&&e.declarations&&Vo(t,e.declarations,e.escapedName)}}}function oB(e,t){if(!(2097152&e.flags)||qo(e)||!ba(e))return e;const n=Ba(e);if(n===xt)return n;for(;2097152&e.flags;){const r=wA(e);if(!r)break;if(r===n)break;if(r.declarations&&u(r.declarations)){if(qo(r)){Vo(t,r.declarations,r.escapedName);break}if(e===n)break;e=r}}return n}function aB(t){WR(t,t.name),iB(t),276===t.kind&&(rB(t.propertyName),$d(t.propertyName||t.name)&&kk(j)&&e.getEmitModuleFormatOfFile(hd(t))<4&&NJ(t,131072))}function sB(e){var t;const n=e.attributes;if(n){const r=Jy(!0);r!==Nn&&bS(function(e){const t=aa(e);if(!t.resolvedType){const n=Wo(4096,"__importAttributes"),r=Hu();d(e.elements,(e=>{const t=Wo(4,uC(e));t.parent=n,t.links.type=function(e){return nk(fj(e.value))}(e),t.links.target=t,r.set(t.escapedName,t)}));const i=Bs(n,r,l,l,l);i.objectFlags|=262272,t.resolvedType=i}return t.resolvedType}(n),ew(r,32768),n);const i=$U(e),o=XU(n,i?nz:void 0),a=118===e.attributes.token;if(i&&o)return;if(99!==(199===M&&e.moduleSpecifier&&Ca(e.moduleSpecifier))&&99!==M&&200!==M)return nz(n,a?199===M?la.Import_attributes_are_not_allowed_on_statements_that_compile_to_CommonJS_require_calls:la.Import_attributes_are_only_supported_when_the_module_option_is_set_to_esnext_nodenext_or_preserve:199===M?la.Import_assertions_are_not_allowed_on_statements_that_compile_to_CommonJS_require_calls:la.Import_assertions_are_only_supported_when_the_module_option_is_set_to_esnext_nodenext_or_preserve);if(PP(e)||(nE(e)?null==(t=e.importClause)?void 0:t.isTypeOnly:e.isTypeOnly))return nz(n,a?la.Import_attributes_cannot_be_used_with_type_only_imports_or_exports:la.Import_assertions_cannot_be_used_with_type_only_imports_or_exports);if(o)return nz(n,la.resolution_mode_can_only_be_set_for_type_only_imports)}}function cB(e,t){const n=307===e.parent.kind||268===e.parent.kind||267===e.parent.kind;return n||ez(e,t),!n}function lB(t){iB(t);const n=void 0!==t.parent.parent.moduleSpecifier;if(rB(t.propertyName,n),rB(t.name),Nk(j)&&jc(t.propertyName||t.name,!0),n)kk(j)&&e.getEmitModuleFormatOfFile(hd(t))<4&&$d(t.propertyName||t.name)&&NJ(t,131072);else{const e=t.propertyName||t.name;if(11===e.kind)return;const n=Ue(e,e.escapedText,2998271,void 0,!0);n&&(n===De||n===Fe||n.declarations&&Xp(qc(n.declarations[0])))?jo(e,la.Cannot_export_0_Only_local_declarations_can_be_exported_from_a_module,mc(e)):CE(t,7)}}function _B(e){const t=ps(e),n=oa(t);if(!n.exportsChecked){const e=t.exports.get("export=");if(e&&function(e){return td(e.exports,((e,t)=>"export="!==t))}(t)){const t=ba(e)||e.valueDeclaration;!t||Ec(t)||Fm(t)||jo(t,la.An_export_assignment_cannot_be_used_in_a_module_with_other_exported_elements)}const r=ls(t);r&&r.forEach((({declarations:e,flags:t},n)=>{if("__export"===n)return;if(1920&t)return;const r=w(e,Zt(AB,tn(KF)));if(!(524288&t&&r<=2)&&r>1&&!uB(e))for(const t of e)JB(t)&&uo.add(jp(t,la.Cannot_redeclare_exported_variable_0,fc(n)))})),n.exportsChecked=!0}}function uB(e){return e&&e.length>1&&e.every((e=>Fm(e)&&kx(e)&&(Qm(e.expression)||Zm(e.expression))))}function dB(n){if(n){const i=r;r=n,h=0,function(n){if(8388608&mJ(n))return;Og(n)&&d(n.jsDoc,(({comment:e,tags:t})=>{pB(e),d(t,(e=>{pB(e.comment),Fm(n)&&dB(e)}))}));const r=n.kind;if(t)switch(r){case 267:case 263:case 264:case 262:t.throwIfCancellationRequested()}switch(r>=243&&r<=259&&Ig(n)&&n.flowNode&&!LF(n.flowNode)&&Mo(!1===j.allowUnreachableCode,n,la.Unreachable_code_detected),r){case 168:return jj(n);case 169:return Rj(n);case 172:return Uj(n);case 171:return function(e){return qN(e.name)&&jo(e,la.Private_identifiers_are_not_allowed_outside_class_bodies),Uj(e)}(n);case 185:case 184:case 179:case 180:case 181:return Bj(n);case 174:case 173:return function(e){WJ(e)||RJ(e.name),_D(e)&&e.asteriskToken&&zN(e.name)&&"constructor"===mc(e.name)&&jo(e.name,la.Class_constructor_may_not_be_a_generator),TR(e),wv(e,64)&&174===e.kind&&e.body&&jo(e,la.Method_0_cannot_have_an_implementation_because_it_is_marked_abstract,Ep(e.name)),qN(e.name)&&!Gf(e)&&jo(e,la.Private_identifiers_are_not_allowed_outside_class_bodies),Vj(e)}(n);case 175:return function(e){FJ(e),PI(e,dB)}(n);case 176:return function(e){Bj(e),function(e){const t=Fm(e)?gv(e):void 0,n=e.typeParameters||t&&fe(t);if(n){const t=n.pos===n.end?n.pos:Xa(hd(e).text,n.pos);return tz(e,t,n.end-t,la.Type_parameters_cannot_appear_on_a_constructor_declaration)}}(e)||function(e){const t=e.type||mv(e);t&&nz(t,la.Type_annotation_cannot_appear_on_a_constructor_declaration)}(e),dB(e.body);const t=ps(e),n=Wu(t,e.kind);function r(e){return!!Hl(e)||172===e.kind&&!Nv(e)&&!!e.initializer}e===n&&nR(t),Cd(e.body)||a((function(){const t=e.parent;if(yh(t)){pP(e.parent,t);const n=mP(t),i=fP(e.body);if(i){if(n&&jo(i,la.A_constructor_cannot_contain_a_super_call_when_its_class_extends_null),!V&&($(e.parent.members,r)||$(e.parameters,(e=>wv(e,31)))))if(function(e,t){const n=nh(e.parent);return DF(n)&&n.parent===t}(i,e.body)){let t;for(const n of e.body.statements){if(DF(n)&&sf(cA(n.expression))){t=n;break}if(Wj(n))break}void 0===t&&jo(e,la.A_super_call_must_be_the_first_statement_in_the_constructor_to_refer_to_super_or_this_when_a_derived_class_contains_initialized_properties_parameter_properties_or_private_identifiers)}else jo(i,la.A_super_call_must_be_a_root_level_statement_within_a_constructor_of_a_derived_class_that_contains_initialized_properties_parameter_properties_or_private_identifiers)}else n||jo(e,la.Constructors_for_derived_classes_must_contain_a_super_call)}}))}(n);case 177:case 178:return $j(n);case 183:return Qj(n);case 182:return function(e){const t=function(e){switch(e.parent.kind){case 219:case 179:case 262:case 218:case 184:case 174:case 173:const t=e.parent;if(e===t.type)return t}}(e);if(!t)return void jo(e,la.A_type_predicate_is_only_allowed_in_return_type_position_for_functions_and_methods);const n=ig(t),r=vg(n);if(!r)return;dB(e.type);const{parameterName:i}=e;if(0!==r.kind&&2!==r.kind)if(r.parameterIndex>=0){if(UB(n)&&r.parameterIndex===n.parameters.length-1)jo(i,la.A_type_predicate_cannot_reference_a_rest_parameter);else if(r.type){const t=()=>Yx(void 0,la.A_type_predicate_s_type_must_be_assignable_to_its_parameter_s_type);bS(r.type,S_(n.parameters[r.parameterIndex]),e.type,void 0,t)}}else if(i){let n=!1;for(const{name:e}of t.parameters)if(x_(e)&&Mj(e,i,r.parameterName)){n=!0;break}n||jo(e.parameterName,la.Cannot_find_parameter_0,r.parameterName)}}(n);case 186:return function(e){Ty(e)}(n);case 187:return function(e){d(e.members,dB),a((function(){const t=Mx(e);FM(t,t.symbol),qj(e),zj(e)}))}(n);case 188:return function(e){dB(e.elementType)}(n);case 189:return function(e){let t=!1,n=!1;for(const r of e.elements){let e=dv(r);if(8&e){const t=dk(r.type);if(!CC(t)){jo(r,la.A_rest_element_type_must_be_an_array_type);break}(yC(t)||UC(t)&&4&t.target.combinedFlags)&&(e|=4)}if(4&e){if(n){nz(r,la.A_rest_element_cannot_follow_another_rest_element);break}n=!0}else if(2&e){if(n){nz(r,la.An_optional_element_cannot_follow_a_rest_element);break}t=!0}else if(1&e&&t){nz(r,la.A_required_element_cannot_follow_an_optional_element);break}}d(e.elements,dB),dk(e)}(n);case 192:case 193:return function(e){d(e.types,dB),dk(e)}(n);case 196:case 190:case 191:return dB(n.type);case 197:return function(e){lk(e)}(n);case 198:return function(e){!function(e){if(158===e.operator){if(155!==e.type.kind)return nz(e.type,la._0_expected,Da(155));let t=th(e.parent);if(Fm(t)&&VE(t)){const e=Ug(t);e&&(t=Pg(e)||e)}switch(t.kind){case 260:const n=t;if(80!==n.name.kind)return nz(e,la.unique_symbol_types_may_not_be_used_on_a_variable_declaration_with_a_binding_name);if(!Pf(n))return nz(e,la.unique_symbol_types_are_only_allowed_on_variables_in_a_variable_statement);if(!(2&n.parent.flags))return nz(t.name,la.A_variable_whose_type_is_a_unique_symbol_type_must_be_const);break;case 172:if(!Nv(t)||!Iv(t))return nz(t.name,la.A_property_of_a_class_whose_type_is_a_unique_symbol_type_must_be_both_static_and_readonly);break;case 171:if(!wv(t,8))return nz(t.name,la.A_property_of_an_interface_or_type_literal_whose_type_is_a_unique_symbol_type_must_be_readonly);break;default:nz(e,la.unique_symbol_types_are_not_allowed_here)}}else 148===e.operator&&188!==e.type.kind&&189!==e.type.kind&&ez(e,la.readonly_type_modifier_is_only_permitted_on_array_and_tuple_literal_types,Da(155))}(e),dB(e.type)}(n);case 194:return function(e){PI(e,dB)}(n);case 195:return function(e){_c(e,(e=>e.parent&&194===e.parent.kind&&e.parent.extendsType===e))||nz(e,la.infer_declarations_are_only_permitted_in_the_extends_clause_of_a_conditional_type),dB(e.typeParameter);const t=ps(e.typeParameter);if(t.declarations&&t.declarations.length>1){const e=oa(t);if(!e.typeParametersChecked){e.typeParametersChecked=!0;const n=pu(t),r=$u(t,168);if(!RM(r,[n],(e=>[e]))){const e=ic(t);for(const t of r)jo(t.name,la.All_declarations_of_0_must_have_identical_constraints,e)}}}CR(e)}(n);case 203:return function(e){for(const t of e.templateSpans)dB(t.type),bS(dk(t.type),vn,t.type);dk(e)}(n);case 205:return function(e){dB(e.argument),e.attributes&&XU(e.attributes,nz),Yj(e)}(n);case 202:return function(e){e.dotDotDotToken&&e.questionToken&&nz(e,la.A_tuple_member_cannot_be_both_optional_and_rest),190===e.type.kind&&nz(e.type,la.A_labeled_tuple_element_is_declared_as_optional_with_a_question_mark_after_the_name_and_before_the_colon_rather_than_after_the_type),191===e.type.kind&&nz(e.type,la.A_labeled_tuple_element_is_declared_as_rest_with_a_before_the_name_rather_than_before_the_type),dB(e.type),dk(e)}(n);case 328:return function(e){const t=qg(e);if(!t||!HF(t)&&!pF(t))return void jo(t,la.JSDoc_0_is_not_attached_to_a_class,mc(e.tagName));const n=il(t).filter(sP);un.assert(n.length>0),n.length>1&&jo(n[1],la.Class_declarations_cannot_have_more_than_one_augments_or_extends_tag);const r=SR(e.class.expression),i=yh(t);if(i){const t=SR(i.expression);t&&r.escapedText!==t.escapedText&&jo(r,la.JSDoc_0_1_does_not_match_the_extends_2_clause,mc(e.tagName),mc(r),mc(t))}}(n);case 329:return function(e){const t=qg(e);t&&(HF(t)||pF(t))||jo(t,la.JSDoc_0_is_not_attached_to_a_class,mc(e.tagName))}(n);case 346:case 338:case 340:return function(e){e.typeExpression||jo(e.name,la.JSDoc_typedef_tag_should_either_have_a_type_annotation_or_be_followed_by_property_or_member_tags),e.name&&OM(e.name,la.Type_alias_name_cannot_be_0),dB(e.typeExpression),LM(ll(e))}(n);case 345:return function(e){dB(e.constraint);for(const t of e.typeParameters)dB(t)}(n);case 344:return function(e){dB(e.typeExpression)}(n);case 324:case 325:case 326:return function(e){e.name&&QB(e.name,!0)}(n);case 341:case 348:return function(e){dB(e.typeExpression)}(n);case 317:!function(e){a((function(){e.type||wg(e)||ww(e,wt)})),Bj(e)}(n);case 315:case 314:case 312:case 313:case 322:return fB(n),void PI(n,dB);case 318:return void function(e){fB(e),dB(e.type);const{parent:t}=e;if(oD(t)&&tP(t.parent))return void(ve(t.parent.parameters)!==t&&jo(e,la.A_rest_parameter_must_be_last_in_a_parameter_list));VE(t)||jo(e,la.JSDoc_may_only_appear_in_the_last_parameter_of_a_signature);const n=e.parent.parent;if(!bP(n))return void jo(e,la.JSDoc_may_only_appear_in_the_last_parameter_of_a_signature);const r=Mg(n);if(!r)return;const i=zg(n);i&&ve(i.parameters).symbol===r||jo(e,la.A_rest_parameter_must_be_last_in_a_parameter_list)}(n);case 309:return dB(n.type);case 333:case 335:case 334:return function(e){const t=Ug(e);t&&Hl(t)&&jo(e,la.An_accessibility_modifier_cannot_be_used_with_a_private_identifier)}(n);case 350:return function(e){dB(e.typeExpression);const t=qg(e);if(t){const e=al(t,FP);if(u(e)>1)for(let t=1;t{var i;297!==e.kind||n||(void 0===t?t=e:(nz(e,la.A_default_clause_cannot_appear_more_than_once_in_a_switch_statement),n=!0)),296===e.kind&&a((i=e,()=>{const e=Lj(i.expression);sj(r,e)||ES(e,r,i.expression,void 0)})),d(e.statements,dB),j.noFallthroughCasesInSwitch&&e.fallthroughFlowNode&&LF(e.fallthroughFlowNode)&&jo(e,la.Fallthrough_case_in_switch)})),e.caseBlock.locals&&CR(e.caseBlock)}(n);case 256:return function(e){iz(e)||_c(e.parent,(t=>n_(t)?"quit":256===t.kind&&t.label.escapedText===e.label.escapedText&&(nz(e.label,la.Duplicate_label_0,Kd(e.label)),!0))),dB(e.statement)}(n);case 257:return function(e){iz(e)||zN(e.expression)&&!e.expression.escapedText&&function(e,t,...n){const r=hd(e);if(!ZJ(r)){const i=Hp(r,e.pos);uo.add(Kx(r,Ds(i),0,t,...n))}}(e,la.Line_break_not_permitted_here),e.expression&&Lj(e.expression)}(n);case 258:return function(e){iz(e),BR(e.tryBlock);const t=e.catchClause;if(t){if(t.variableDeclaration){const e=t.variableDeclaration;HR(e);const n=pv(e);if(n){const e=dk(n);!e||3&e.flags||ez(n,la.Catch_clause_variable_type_annotation_must_be_any_or_unknown_if_specified)}else if(e.initializer)ez(e.initializer,la.Catch_clause_variable_cannot_have_an_initializer);else{const e=t.block.locals;e&&nd(t.locals,(t=>{const n=e.get(t);(null==n?void 0:n.valueDeclaration)&&2&n.flags&&nz(n.valueDeclaration,la.Cannot_redeclare_identifier_0_in_catch_clause,fc(t))}))}}BR(t.block)}e.finallyBlock&&BR(e.finallyBlock)}(n);case 260:return XR(n);case 208:return function(e){return function(e){if(e.dotDotDotToken){const t=e.parent.elements;if(e!==ve(t))return nz(e,la.A_rest_element_must_be_last_in_a_destructuring_pattern);if(PJ(t,la.A_rest_parameter_or_binding_pattern_may_not_have_a_trailing_comma),e.propertyName)return nz(e.name,la.A_rest_element_cannot_have_a_property_name)}e.dotDotDotToken&&e.initializer&&tz(e,e.initializer.pos-1,1,la.A_rest_element_cannot_have_an_initializer)}(e),HR(e)}(n);case 263:return function(e){const t=b(e.modifiers,aD);J&&t&&$(e.members,(e=>Dv(e)&&Hl(e)))&&nz(t,la.Class_decorators_can_t_be_used_with_static_private_identifier_Consider_removing_the_experimental_decorator),e.name||wv(e,2048)||ez(e,la.A_class_declaration_without_the_default_modifier_must_have_a_name),JM(e),d(e.members,dB),CR(e)}(n);case 264:return function(e){FJ(e)||function(e){let t=!1;if(e.heritageClauses)for(const n of e.heritageClauses){if(96!==n.token)return un.assert(119===n.token),ez(n,la.Interface_declaration_cannot_have_implements_clause);if(t)return ez(n,la.extends_clause_already_seen);t=!0,LJ(n)}}(e),YJ(e.parent)||nz(e,la._0_declarations_can_only_be_declared_inside_a_block,"interface"),LM(e.typeParameters),a((()=>{OM(e.name,la.Interface_name_cannot_be_0),rR(e);const t=ps(e);jM(t);const n=Wu(t,264);if(e===n){const n=fu(t),r=ld(n);if(function(e,t){const n=Z_(e);if(n.length<2)return!0;const r=new Map;d(Ou(e).declaredProperties,(t=>{r.set(t.escapedName,{prop:t,containingType:e})}));let i=!0;for(const o of n){const n=vp(ld(o,e.thisType));for(const a of n){const n=r.get(a.escapedName);if(n){if(n.containingType!==e&&0===rC(n.prop,a,uS)){i=!1;const r=sc(n.containingType),s=sc(o);let c=Yx(void 0,la.Named_property_0_of_types_1_and_2_are_not_identical,ic(a),r,s);c=Yx(c,la.Interface_0_cannot_simultaneously_extend_types_1_and_2,sc(e),r,s),uo.add(Bp(hd(t),t,c))}}else r.set(a.escapedName,{prop:a,containingType:o})}}return i}(n,e.name)){for(const t of Z_(n))bS(r,ld(t,n.thisType),e.name,la.Interface_0_incorrectly_extends_interface_1);FM(n,t)}}zj(e)})),d(xh(e),(e=>{ob(e.expression)&&!gl(e.expression)||jo(e.expression,la.An_interface_can_only_extend_an_identifier_Slashqualified_name_with_optional_type_arguments),Qj(e)})),d(e.members,dB),a((()=>{qj(e),CR(e)}))}(n);case 265:return function(e){if(FJ(e),OM(e.name,la.Type_alias_name_cannot_be_0),YJ(e.parent)||nz(e,la._0_declarations_can_only_be_declared_inside_a_block,"type"),rR(e),LM(e.typeParameters),141===e.type.kind){const t=u(e.typeParameters);(0===t?"BuiltinIteratorReturn"===e.name.escapedText:1===t&&IB.has(e.name.escapedText))||jo(e.type,la.The_intrinsic_keyword_can_only_be_used_to_declare_compiler_provided_intrinsic_types)}else dB(e.type),CR(e)}(n);case 266:return function(e){a((()=>function(e){FJ(e),WR(e,e.name),rR(e),e.members.forEach(ZM),KM(e);const t=ps(e);if(e===Wu(t,e.kind)){if(t.declarations&&t.declarations.length>1){const n=Zp(e);d(t.declarations,(e=>{XF(e)&&Zp(e)!==n&&jo(Tc(e),la.Enum_declarations_must_all_be_const_or_non_const)}))}let n=!1;d(t.declarations,(e=>{if(266!==e.kind)return!1;const t=e;if(!t.members.length)return!1;const r=t.members[0];r.initializer||(n?jo(r.name,la.In_an_enum_with_multiple_declarations_only_one_declaration_can_omit_an_initializer_for_its_first_enum_element):n=!0)}))}}(e)))}(n);case 267:return function(t){t.body&&(dB(t.body),up(t)||CR(t)),a((function(){var n,r;const i=up(t),o=33554432&t.flags;i&&!o&&jo(t.name,la.Augmentations_for_the_global_scope_should_have_declare_modifier_unless_they_appear_in_already_ambient_context);const a=ap(t),s=a?la.An_ambient_module_declaration_is_only_allowed_at_the_top_level_in_a_file:la.A_namespace_declaration_is_only_allowed_at_the_top_level_of_a_namespace_or_module;if(cB(t,s))return;if(FJ(t)||o||11!==t.name.kind||nz(t.name,la.Only_ambient_modules_can_use_quoted_names),zN(t.name)&&(WR(t,t.name),!(2080&t.flags))){const e=hd(t),n=Hp(e,zd(t));po.add(Kx(e,n.start,n.length,la.A_namespace_declaration_should_not_be_declared_using_the_module_keyword_Please_use_the_namespace_keyword_instead))}rR(t);const c=ps(t);if(512&c.flags&&!o&&MB(t,Dk(j))){if(xk(j)&&!hd(t).externalModuleIndicator&&jo(t.name,la.Namespaces_are_not_allowed_in_global_script_files_when_0_is_enabled_If_this_file_is_not_intended_to_be_a_global_script_set_moduleDetection_to_force_or_add_an_empty_export_statement,Re),(null==(n=c.declarations)?void 0:n.length)>1){const e=function(e){const t=e.declarations;if(t)for(const e of t)if((263===e.kind||262===e.kind&&wd(e.body))&&!(33554432&e.flags))return e}(c);e&&(hd(t)!==hd(e)?jo(t.name,la.A_namespace_declaration_cannot_be_in_a_different_file_from_a_class_or_function_with_which_it_is_merged):t.pos95===e.kind));e&&jo(e,la.A_top_level_export_modifier_cannot_be_used_on_value_declarations_in_a_CommonJS_module_when_verbatimModuleSyntax_is_enabled)}}if(a)if(dp(t)){if((i||33554432&ps(t).flags)&&t.body)for(const e of t.body.statements)eB(e,i)}else Xp(t.parent)?i?jo(t.name,la.Augmentations_for_the_global_scope_can_only_be_directly_nested_in_external_modules_or_ambient_module_declarations):Ts(zh(t.name))&&jo(t.name,la.Ambient_module_declaration_cannot_specify_relative_module_name):jo(t.name,i?la.Augmentations_for_the_global_scope_can_only_be_directly_nested_in_external_modules_or_ambient_module_declarations:la.Ambient_modules_cannot_be_nested_in_other_modules_or_namespaces)}))}(n);case 272:return function(t){if(!cB(t,Fm(t)?la.An_import_declaration_can_only_be_used_at_the_top_level_of_a_module:la.An_import_declaration_can_only_be_used_at_the_top_level_of_a_namespace_or_module)){if(!FJ(t)&&t.modifiers&&ez(t,la.An_import_declaration_cannot_have_modifiers),nB(t)){let n;const r=t.importClause;r&&!function(e){var t;return e.isTypeOnly&&e.name&&e.namedBindings?nz(e,la.A_type_only_import_can_specify_a_default_import_or_named_bindings_but_not_both):!(!e.isTypeOnly||275!==(null==(t=e.namedBindings)?void 0:t.kind))&&az(e.namedBindings)}(r)?(r.name&&aB(r),r.namedBindings&&(274===r.namedBindings.kind?(aB(r.namedBindings),e.getEmitModuleFormatOfFile(hd(t))<4&&kk(j)&&NJ(t,65536)):(n=Qa(t,t.moduleSpecifier),n&&d(r.namedBindings.elements,aB))),wa(t.moduleSpecifier,n)&&!function(e){return!!e.attributes&&e.attributes.elements.some((e=>{var t;return"type"===zh(e.name)&&"json"===(null==(t=tt(e.value,Lu))?void 0:t.text)}))}(t)&&jo(t.moduleSpecifier,la.Importing_a_JSON_file_into_an_ECMAScript_module_requires_a_type_Colon_json_import_attribute_when_module_is_set_to_0,fi[M])):ue&&!r&&Qa(t,t.moduleSpecifier)}sB(t)}}(n);case 271:return function(e){if(!cB(e,Fm(e)?la.An_import_declaration_can_only_be_used_at_the_top_level_of_a_module:la.An_import_declaration_can_only_be_used_at_the_top_level_of_a_namespace_or_module)&&(FJ(e),wm(e)||nB(e)))if(aB(e),CE(e,6),283!==e.moduleReference.kind){const t=Ba(ps(e));if(t!==xt){const n=za(t);if(111551&n){const t=ab(e.moduleReference);1920&Ka(t,112575).flags||jo(t,la.Module_0_is_hidden_by_a_local_declaration_with_the_same_name,Ep(t))}788968&n&&OM(e.name,la.Import_name_cannot_be_0)}e.isTypeOnly&&nz(e,la.An_import_alias_cannot_use_import_type)}else!(5<=M&&M<=99)||e.isTypeOnly||33554432&e.flags||nz(e,la.Import_assignment_cannot_be_used_when_targeting_ECMAScript_modules_Consider_using_import_Asterisk_as_ns_from_mod_import_a_from_mod_import_d_from_mod_or_another_module_format_instead)}(n);case 278:return function(t){if(!cB(t,Fm(t)?la.An_export_declaration_can_only_be_used_at_the_top_level_of_a_module:la.An_export_declaration_can_only_be_used_at_the_top_level_of_a_namespace_or_module)){if(!FJ(t)&&Tv(t)&&ez(t,la.An_export_declaration_cannot_have_modifiers),function(e){var t;e.isTypeOnly&&279===(null==(t=e.exportClause)?void 0:t.kind)&&az(e.exportClause)}(t),!t.moduleSpecifier||nB(t))if(t.exportClause&&!_E(t.exportClause)){d(t.exportClause.elements,lB);const e=268===t.parent.kind&&ap(t.parent.parent),n=!e&&268===t.parent.kind&&!t.moduleSpecifier&&33554432&t.flags;307===t.parent.kind||e||n||jo(t,la.Export_declarations_are_not_permitted_in_a_namespace)}else{const n=Qa(t,t.moduleSpecifier);n&&is(n)?jo(t.moduleSpecifier,la.Module_0_uses_export_and_cannot_be_used_with_export_Asterisk,ic(n)):t.exportClause&&(iB(t.exportClause),rB(t.exportClause.name)),e.getEmitModuleFormatOfFile(hd(t))<4&&(t.exportClause?kk(j)&&NJ(t,65536):NJ(t,32768))}sB(t)}}(n);case 277:return function(t){if(cB(t,t.isExportEquals?la.An_export_assignment_must_be_at_the_top_level_of_a_file_or_module_declaration:la.A_default_export_must_be_at_the_top_level_of_a_file_or_module_declaration))return;const n=307===t.parent.kind?t.parent:t.parent.parent;if(267===n.kind&&!ap(n))return void(t.isExportEquals?jo(t,la.An_export_assignment_cannot_be_used_in_a_namespace):jo(t,la.A_default_export_can_only_be_used_in_an_ECMAScript_style_module));!FJ(t)&&Sv(t)&&ez(t,la.An_export_assignment_cannot_have_modifiers);const r=pv(t);r&&bS(fj(t.expression),dk(r),t.expression);const i=!t.isExportEquals&&!(33554432&t.flags)&&j.verbatimModuleSyntax&&1===e.getEmitModuleFormatOfFile(hd(t));if(80===t.expression.kind){const e=t.expression,n=Ss(Ka(e,-1,!0,!0,t));if(n){CE(t,3);const r=Wa(n,111551);if(111551&za(n)?(fj(e),i||33554432&t.flags||!j.verbatimModuleSyntax||!r||jo(e,t.isExportEquals?la.An_export_declaration_must_reference_a_real_value_when_verbatimModuleSyntax_is_enabled_but_0_resolves_to_a_type_only_declaration:la.An_export_default_must_reference_a_real_value_when_verbatimModuleSyntax_is_enabled_but_0_resolves_to_a_type_only_declaration,mc(e))):i||33554432&t.flags||!j.verbatimModuleSyntax||jo(e,t.isExportEquals?la.An_export_declaration_must_reference_a_value_when_verbatimModuleSyntax_is_enabled_but_0_only_refers_to_a_type:la.An_export_default_must_reference_a_value_when_verbatimModuleSyntax_is_enabled_but_0_only_refers_to_a_type,mc(e)),!i&&!(33554432&t.flags)&&xk(j)&&!(111551&n.flags)){const i=za(n,!1,!0);!(2097152&n.flags&&788968&i)||111551&i||r&&hd(r)===hd(t)?r&&hd(r)!==hd(t)&&da(jo(e,t.isExportEquals?la._0_resolves_to_a_type_only_declaration_and_must_be_marked_type_only_in_this_file_before_re_exporting_when_1_is_enabled_Consider_using_import_type_where_0_is_imported:la._0_resolves_to_a_type_only_declaration_and_must_be_marked_type_only_in_this_file_before_re_exporting_when_1_is_enabled_Consider_using_export_type_0_as_default,mc(e),Re),r,mc(e)):jo(e,t.isExportEquals?la._0_resolves_to_a_type_and_must_be_marked_type_only_in_this_file_before_re_exporting_when_1_is_enabled_Consider_using_import_type_where_0_is_imported:la._0_resolves_to_a_type_and_must_be_marked_type_only_in_this_file_before_re_exporting_when_1_is_enabled_Consider_using_export_type_0_as_default,mc(e),Re)}}else fj(e);Nk(j)&&jc(e,!0)}else fj(t.expression);i&&jo(t,la.ESM_syntax_is_not_allowed_in_a_CommonJS_module_when_verbatimModuleSyntax_is_enabled),_B(n),33554432&t.flags&&!ob(t.expression)&&nz(t.expression,la.The_expression_of_an_export_assignment_must_be_an_identifier_or_qualified_name_in_an_ambient_context),t.isExportEquals&&(M>=5&&200!==M&&(33554432&t.flags&&99===e.getImpliedNodeFormatForEmit(hd(t))||!(33554432&t.flags)&&1!==e.getImpliedNodeFormatForEmit(hd(t)))?nz(t,la.Export_assignment_cannot_be_used_when_targeting_ECMAScript_modules_Consider_using_export_default_or_another_module_format_instead):4!==M||33554432&t.flags||nz(t,la.Export_assignment_is_not_supported_when_module_flag_is_system))}(n);case 242:case 259:return void iz(n);case 282:!function(e){kR(e)}(n)}}(n),r=i}}function pB(e){Qe(e)&&d(e,(e=>{ju(e)&&dB(e)}))}function fB(e){if(!Fm(e))if(ZE(e)||YE(e)){const t=Da(ZE(e)?54:58),n=e.postfix?la._0_at_the_end_of_a_type_is_not_valid_TypeScript_syntax_Did_you_mean_to_write_1:la._0_at_the_start_of_a_type_is_not_valid_TypeScript_syntax_Did_you_mean_to_write_1,r=dk(e.type);nz(e,n,t,sc(YE(e)&&r!==_n&&r!==ln?xb(ie([r,jt],e.postfix?void 0:zt)):r))}else nz(e,la.JSDoc_types_can_only_be_used_inside_documentation_comments)}function mB(e){const t=aa(hd(e));1&t.flags?un.assert(!t.deferredNodes,"A type-checked file should have no deferred nodes."):(t.deferredNodes||(t.deferredNodes=new Set),t.deferredNodes.add(e))}function gB(e){const t=aa(e);t.deferredNodes&&t.deferredNodes.forEach(hB),t.deferredNodes=void 0}function hB(e){var t,n;null==(t=Hn)||t.push(Hn.Phase.Check,"checkDeferredNode",{kind:e.kind,pos:e.pos,end:e.end,path:e.tracingPath});const o=r;switch(r=e,h=0,e.kind){case 213:case 214:case 215:case 170:case 286:QI(e);break;case 218:case 219:case 174:case 173:!function(e){un.assert(174!==e.kind||Mf(e));const t=Ih(e),n=Fg(e);if(zL(e,n),e.body)if(mv(e)||Tg(ig(e)),241===e.body.kind)dB(e.body);else{const r=Lj(e.body),i=n&&NM(n,t);if(i){const n=gO(e.body);xS(2==(3&t)?aR(r,!1,n,la.The_return_type_of_an_async_function_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member):r,i,n,n)}}}(e);break;case 177:case 178:$j(e);break;case 231:!function(e){d(e.members,dB),CR(e)}(e);break;case 168:!function(e){var t,n;if(KF(e.parent)||__(e.parent)||GF(e.parent)){const r=pu(ps(e)),o=24576&xT(r);if(o){const a=ps(e.parent);if(!GF(e.parent)||48&mx(fu(a))){if(8192===o||16384===o){null==(t=Hn)||t.push(Hn.Phase.CheckTypes,"checkTypeParameterDeferred",{parent:Kv(fu(a)),id:Kv(r)});const s=dT(a,r,16384===o?Un:qn),c=dT(a,r,16384===o?qn:Un),l=r;i=r,bS(s,c,e,la.Type_0_is_not_assignable_to_type_1_as_implied_by_variance_annotation),i=l,null==(n=Hn)||n.pop()}}else jo(e,la.Variance_annotations_are_only_supported_in_type_aliases_for_object_function_constructor_and_mapped_types)}}}(e);break;case 285:!function(e){XA(e)}(e);break;case 284:!function(e){XA(e.openingElement),PA(e.closingElement.tagName)?RA(e.closingElement):Lj(e.closingElement.tagName),OA(e)}(e);break;case 216:case 234:case 217:!function(e){const{type:t}=eL(e),n=ZD(e)?t:e,r=aa(e);un.assertIsDefined(r.assertionExpressionType);const i=fw(RC(r.assertionExpressionType)),o=dk(t);$c(o)||a((()=>{const e=Sw(i);yS(o,e)||ES(i,o,n,la.Conversion_of_type_0_to_type_1_may_be_a_mistake_because_neither_type_sufficiently_overlaps_with_the_other_If_this_was_intentional_convert_the_expression_to_unknown_first)}))}(e);break;case 222:Lj(e.expression);break;case 226:fb(e)&&QI(e)}r=o,null==(n=Hn)||n.pop()}function yB(e,t){if(t)return!1;switch(e){case 0:return!!j.noUnusedLocals;case 1:return!!j.noUnusedParameters;default:return un.assertNever(e)}}function bB(e){return bi.get(e.path)||l}function TB(n,r,i){try{return t=r,function(t,n){if(t){CB();const e=uo.getGlobalDiagnostics(),r=e.length;DB(t,n);const i=uo.getDiagnostics(t.fileName);if(n)return i;const o=uo.getGlobalDiagnostics();return o!==e?K(re(e,o,tk),i):0===r&&o.length>0?K(o,i):i}return d(e.getSourceFiles(),(e=>DB(e))),uo.getDiagnostics()}(n,i)}finally{t=void 0}}function CB(){for(const e of o)e();o=[]}function DB(t,n){CB();const r=a;a=e=>e(),function(t,n){var r,i;null==(r=Hn)||r.push(Hn.Phase.Check,n?"checkSourceFileNodes":"checkSourceFile",{path:t.path},!0);const o=n?"beforeCheckNodes":"beforeCheck",s=n?"afterCheckNodes":"afterCheck";tr(o),n?function(t,n){const r=aa(t);if(!(1&r.flags)){if(cT(t,j,e))return;rz(t),F(no),F(ro),F(io),F(oo),F(ao),d(n,dB),gB(t),(r.potentialThisCollisions||(r.potentialThisCollisions=[])).push(...no),(r.potentialNewTargetCollisions||(r.potentialNewTargetCollisions=[])).push(...ro),(r.potentialWeakMapSetCollisions||(r.potentialWeakMapSetCollisions=[])).push(...io),(r.potentialReflectCollisions||(r.potentialReflectCollisions=[])).push(...oo),(r.potentialUnusedRenamedBindingElementsInTypes||(r.potentialUnusedRenamedBindingElementsInTypes=[])).push(...ao),r.flags|=8388608;for(const e of n)aa(e).flags|=8388608}}(t,n):function(t){const n=aa(t);if(!(1&n.flags)){if(cT(t,j,e))return;rz(t),F(no),F(ro),F(io),F(oo),F(ao),8388608&n.flags&&(no=n.potentialThisCollisions,ro=n.potentialNewTargetCollisions,io=n.potentialWeakMapSetCollisions,oo=n.potentialReflectCollisions,ao=n.potentialUnusedRenamedBindingElementsInTypes),d(t.statements,dB),dB(t.endOfFileToken),gB(t),Qp(t)&&CR(t),a((()=>{t.isDeclarationFile||!j.noUnusedLocals&&!j.noUnusedParameters||wR(bB(t),((e,t,n)=>{!gd(e)&&yB(t,!!(33554432&e.flags))&&uo.add(n)})),t.isDeclarationFile||function(){var e;for(const t of ao)if(!(null==(e=ps(t))?void 0:e.isReferenced)){const e=tc(t);un.assert(Xh(e),"Only parameter declaration should be checked here");const n=jp(t.name,la._0_is_an_unused_renaming_of_1_Did_you_intend_to_use_it_as_a_type_annotation,Ep(t.name),Ep(t.propertyName));e.type||iT(n,Kx(hd(e),e.end,0,la.We_can_only_write_a_type_for_0_by_adding_a_type_for_the_entire_parameter_here,Ep(t.propertyName))),uo.add(n)}}()})),Qp(t)&&_B(t),no.length&&(d(no,zR),F(no)),ro.length&&(d(ro,qR),F(ro)),io.length&&(d(io,UR),F(io)),oo.length&&(d(oo,VR),F(oo)),n.flags|=1}}(t),tr(s),nr("Check",o,s),null==(i=Hn)||i.pop()}(t,n),a=r}function EB(e){for(;166===e.parent.kind;)e=e.parent;return 183===e.parent.kind}function PB(e,t){let n,r=Gf(e);for(;r&&!(n=t(r));)r=Gf(r);return n}function BB(e,t){return!!PB(e,(e=>e===t))}function KB(e){return void 0!==function(e){for(;166===e.parent.kind;)e=e.parent;return 271===e.parent.kind?e.parent.moduleReference===e?e.parent:void 0:277===e.parent.kind&&e.parent.expression===e?e.parent:void 0}(e)}function GB(e){if(ch(e))return gs(e.parent);if(Fm(e)&&211===e.parent.kind&&e.parent===e.parent.parent.left&&!qN(e)&&!$E(e)&&!function(e){if(110===e.expression.kind){const t=Zf(e,!1,!1);if(n_(t)){const e=SP(t);if(e){const t=EP(e,eA(e,void 0));return t&&!Wc(t)}}}}(e.parent)){const t=function(e){switch(eg(e.parent.parent)){case 1:case 3:return gs(e.parent);case 5:if(HD(e.parent)&&Cx(e.parent)===e)return;case 4:case 2:return ps(e.parent.parent)}}(e);if(t)return t}if(277===e.parent.kind&&ob(e)){const t=Ka(e,2998271,!0);if(t&&t!==xt)return t}else if(Zl(e)&&KB(e)){const t=Sh(e,271);return un.assert(void 0!==t),$a(e,!0)}if(Zl(e)){const t=function(e){let t=e.parent;for(;nD(t);)e=t,t=t.parent;if(t&&205===t.kind&&t.qualifier===e)return t}(e);if(t){dk(t);const n=aa(e).resolvedSymbol;return n===xt?void 0:n}}for(;pb(e);)e=e.parent;if(function(e){for(;211===e.parent.kind;)e=e.parent;return 233===e.parent.kind}(e)){let t=0;233===e.parent.kind?(t=Tf(e)?788968:111551,ib(e.parent)&&(t|=111551)):t=1920,t|=2097152;const n=ob(e)?Ka(e,t,!0):void 0;if(n)return n}if(341===e.parent.kind)return Mg(e.parent);if(168===e.parent.kind&&345===e.parent.parent.kind){un.assert(!Fm(e));const t=Wg(e.parent);return t&&t.symbol}if(vm(e)){if(Cd(e))return;const t=_c(e,en(ju,WE,$E)),n=t?901119:111551;if(80===e.kind){if(ym(e)&&PA(e)){const t=RA(e.parent);return t===xt?void 0:t}const r=Ka(e,n,!0,!0,zg(e));if(!r&&t){const t=_c(e,en(__,KF));if(t)return QB(e,!0,ps(t))}if(r&&t){const t=Ug(e);if(t&&zE(t)&&t===r.valueDeclaration)return Ka(e,n,!0,!0,hd(t))||r}return r}if(qN(e))return bI(e);if(211===e.kind||166===e.kind){const n=aa(e);return n.resolvedSymbol?n.resolvedSymbol:(211===e.kind?(gI(e,0),n.resolvedSymbol||(n.resolvedSymbol=XB(fj(e.expression),Rb(e.name)))):hI(e,0),!n.resolvedSymbol&&t&&nD(e)?QB(e):n.resolvedSymbol)}if($E(e))return QB(e)}else if(Zl(e)&&EB(e)){const t=Ka(e,183===e.parent.kind?788968:1920,!1,!0);return t&&t!==xt?t:oy(e)}return 182===e.parent.kind?Ka(e,1):void 0}function XB(e,t){const n=fm(e,t);if(n.length&&e.members){const t=lh(pp(e).members);if(n===Kf(e))return t;if(t){const r=oa(t),i=E(B(n,(e=>e.declaration)),jB).join(",");if(r.filteredIndexSymbolCache||(r.filteredIndexSymbolCache=new Map),r.filteredIndexSymbolCache.has(i))return r.filteredIndexSymbolCache.get(i);{const t=Wo(131072,"__index");return t.declarations=B(n,(e=>e.declaration)),t.parent=e.aliasSymbol?e.aliasSymbol:e.symbol?e.symbol:YB(t.declarations[0].parent),r.filteredIndexSymbolCache.set(i,t),t}}}}function QB(e,t,n){if(Zl(e)){const r=901119;let i=Ka(e,r,t,!0,zg(e));if(!i&&zN(e)&&n&&(i=ds(sa(cs(n),e.escapedText,r))),i)return i}const r=zN(e)?n:QB(e.left,t,n),i=zN(e)?e.escapedText:e.right.escapedText;if(r){const e=111551&r.flags&&Cf(S_(r),"prototype");return Cf(e?S_(e):fu(r),i)}}function YB(e,t){if(qE(e))return MI(e)?ds(e.symbol):void 0;const{parent:n}=e,r=n.parent;if(!(67108864&e.flags)){if(zB(e)){const t=ps(n);return Rl(e.parent)&&e.parent.propertyName===e?wA(t):t}if(_h(e))return ps(n.parent);if(80===e.kind){if(KB(e))return GB(e);if(208===n.kind&&206===r.kind&&e===n.propertyName){const t=Cf(ZB(r),e.escapedText);if(t)return t}else if(vF(n)&&n.name===e)return 105===n.keywordToken&&"target"===mc(e)?oL(n).symbol:102===n.keywordToken&&"meta"===mc(e)?My().members.get("meta"):void 0}switch(e.kind){case 80:case 81:case 211:case 166:if(!_v(e))return GB(e);case 110:const i=Zf(e,!1,!1);if(n_(i)){const e=ig(i);if(e.thisParameter)return e.thisParameter}if(bm(e))return Lj(e).symbol;case 197:return lk(e).symbol;case 108:return Lj(e).symbol;case 137:const o=e.parent;return o&&176===o.kind?o.parent.symbol:void 0;case 11:case 15:if(Sm(e.parent.parent)&&Tm(e.parent.parent)===e||(272===e.parent.kind||278===e.parent.kind)&&e.parent.moduleSpecifier===e||Fm(e)&&PP(e.parent)&&e.parent.moduleSpecifier===e||Fm(e)&&Om(e.parent,!1)||cf(e.parent)||MD(e.parent)&&_f(e.parent.parent)&&e.parent.parent.argument===e.parent)return Qa(e,e,t);if(GD(n)&&tg(n)&&n.arguments[1]===e)return ps(n);case 9:const a=KD(n)?n.argumentExpression===e?Aj(n.expression):void 0:MD(n)&&jD(r)?dk(r.objectType):void 0;return a&&Cf(a,pc(e.text));case 90:case 100:case 39:case 86:return gs(e.parent);case 205:return _f(e)?YB(e.argument.literal,t):void 0;case 95:return pE(e.parent)?un.checkDefined(e.parent.symbol):void 0;case 102:case 105:return vF(e.parent)?iL(e.parent).symbol:void 0;case 104:if(cF(e.parent)){const t=Aj(e.parent.right),n=nj(t);return(null==n?void 0:n.symbol)??t.symbol}return;case 236:return Lj(e).symbol;case 295:if(ym(e)&&PA(e)){const t=RA(e.parent);return t===xt?void 0:t}default:return}}}function ZB(e){if(qE(e)&&!MI(e))return Et;if(67108864&e.flags)return Et;const t=tb(e),n=t&&nu(ps(t.class));if(Tf(e)){const t=dk(e);return n?ld(t,n.thisType):t}if(vm(e))return tJ(e);if(n&&!t.isImplements){const e=fe(Z_(n));return e?ld(e,n.thisType):Et}if(qT(e))return fu(ps(e));if(80===(r=e).kind&&qT(r.parent)&&Tc(r.parent)===r){const t=YB(e);return t?fu(t):Et}var r;if(VD(e))return Sl(e,!0,0)||Et;if(lu(e)){const t=ps(e);return t?S_(t):Et}if(zB(e)){const t=YB(e);return t?S_(t):Et}if(x_(e))return Sl(e.parent,!0,0)||Et;if(KB(e)){const t=YB(e);if(t){const e=fu(t);return $c(e)?S_(t):e}}return vF(e.parent)&&e.parent.keywordToken===e.kind?iL(e.parent):sE(e)?Jy(!1):Et}function eJ(e){if(un.assert(210===e.kind||209===e.kind),250===e.parent.kind)return oj(e,nM(e.parent)||Et);if(226===e.parent.kind)return oj(e,Aj(e.parent.right)||Et);if(303===e.parent.kind){const t=nt(e.parent.parent,$D);return rj(t,eJ(t)||Et,Xd(t.properties,e.parent))}const t=nt(e.parent,WD),n=eJ(t)||Et,r=rM(65,n,jt,e.parent)||Et;return ij(t,n,t.elements.indexOf(e),r)}function tJ(e){return ub(e)&&(e=e.parent),nk(Aj(e))}function rJ(e){const t=gs(e.parent);return Nv(e)?S_(t):fu(t)}function iJ(e){const t=e.name;switch(t.kind){case 80:return ik(mc(t));case 9:case 11:return ik(t.text);case 167:const e=kA(t);return YL(e,12288)?e:Vt;default:return un.fail("Unsupported property name.")}}function oJ(e){const t=Hu(vp(e=pf(e))),n=Rf(e,0).length?Qn:Rf(e,1).length?Yn:void 0;return n&&d(vp(n),(e=>{t.has(e.escapedName)||t.set(e.escapedName,e)})),js(t)}function aJ(e){return 0!==Rf(e,0).length||0!==Rf(e,1).length}function sJ(e){if(418&e.flags&&e.valueDeclaration&&!qE(e.valueDeclaration)){const t=oa(e);if(void 0===t.isDeclarationWithCollidingName){const n=Dp(e.valueDeclaration);if(bd(n)||function(e){return e.valueDeclaration&&VD(e.valueDeclaration)&&299===tc(e.valueDeclaration).parent.kind}(e))if(Ue(n.parent,e.escapedName,111551,void 0,!1))t.isDeclarationWithCollidingName=!0;else if(gJ(e.valueDeclaration,16384)){const r=gJ(e.valueDeclaration,32768),i=W_(n,!1),o=241===n.kind&&W_(n.parent,!1);t.isDeclarationWithCollidingName=!(_p(n)||r&&(i||o))}else t.isDeclarationWithCollidingName=!1}return t.isDeclarationWithCollidingName}return!1}function cJ(e){switch(un.assert(Me),e.kind){case 271:return lJ(ps(e));case 273:case 274:case 276:case 281:const t=ps(e);return!!t&&lJ(t,!0);case 278:const n=e.exportClause;return!!n&&(_E(n)||$(n.elements,cJ));case 277:return!e.expression||80!==e.expression.kind||lJ(ps(e),!0)}return!1}function lJ(e,t){if(!e)return!1;const n=hd(e.valueDeclaration);ts(n&&ps(n));const r=Ss(Ba(e));return r===xt?!t||!Wa(e):!!(111551&za(e,t,!0))&&(Dk(j)||!_J(r))}function _J(e){return tj(e)||!!e.constEnumOnlyModule}function uJ(e,t){if(un.assert(Me),xa(e)){const t=ps(e),n=t&&oa(t);if(null==n?void 0:n.referenced)return!0;const r=oa(t).aliasTarget;if(r&&32&Mv(e)&&111551&za(r)&&(Dk(j)||!_J(r)))return!0}return!!t&&!!PI(e,(e=>uJ(e,t)))}function dJ(e){if(wd(e.body)){if(wu(e)||Cu(e))return!1;const t=pg(ps(e));return t.length>1||1===t.length&&t[0].declaration!==e}return!1}function pJ(e,t){return(function(e,t){return!(!H||zm(e)||bP(e)||!e.initializer)&&(!wv(e,31)||!!t&&i_(t))}(e,t)||function(e){return H&&zm(e)&&(bP(e)||!e.initializer)&&wv(e,31)}(e))&&!function(e){const t=CJ(e);if(!t)return!1;const n=dk(t);return $c(n)||RS(n)}(e)}function fJ(e){const t=dc(e,(e=>$F(e)||VF(e)));if(!t)return!1;let n;if(VF(t)){if(t.type||!Fm(t)&&!uz(t))return!1;const e=Vm(t);if(!e||!ou(e))return!1;n=ps(e)}else n=ps(t);return!!(n&&16&n.flags|3)&&!!td(cs(n),(e=>111551&e.flags&&sC(e.valueDeclaration)))}function mJ(e){var t;const n=e.id||0;return n<0||n>=Hi.length?0:(null==(t=Hi[n])?void 0:t.flags)||0}function gJ(e,t){return function(e,t){if(!j.noCheck&&uT(hd(e),j))return;if(!(aa(e).calculatedFlags&t))switch(t){case 16:case 32:return i(e);case 128:case 256:case 2097152:return void n(e,r);case 512:case 8192:case 65536:case 262144:return function(e){n(e,o)}(e);case 536870912:return a(e);case 4096:case 32768:case 16384:return function(e){n(Dp(ch(e)?e.parent:e),s)}(e);default:return un.assertNever(t,`Unhandled node check flag calculation: ${un.formatNodeCheckFlags(t)}`)}function n(e,t){const n=t(e,e.parent);if("skip"!==n)return n||AI(e,t)}function r(e){const n=aa(e);if(n.calculatedFlags&t)return"skip";n.calculatedFlags|=2097536,i(e)}function i(e){aa(e).calculatedFlags|=48,108===e.kind&&xP(e)}function o(e){const n=aa(e);if(n.calculatedFlags&t)return"skip";n.calculatedFlags|=336384,a(e)}function a(e){const t=aa(e);if(t.calculatedFlags|=536870912,zN(e)&&(t.calculatedFlags|=49152,function(e){return vm(e)||BE(e.parent)&&(e.parent.objectAssignmentInitializer??e.parent.name)===e}(e)&&(!HD(e.parent)||e.parent.name!==e))){const t=dN(e);t&&t!==xt&&cP(e,t)}}function s(e){const n=aa(e);if(n.calculatedFlags&t)return"skip";n.calculatedFlags|=53248,function(e){a(e),rD(e)&&kA(e),qN(e)&&l_(e.parent)&&Vj(e.parent)}(e)}}(e,t),!!(mJ(e)&t)}function hJ(e){return KM(e.parent),aa(e).enumMemberValue??pC(void 0)}function yJ(e){switch(e.kind){case 306:case 211:case 212:return!0}return!1}function vJ(e){if(306===e.kind)return hJ(e).value;aa(e).resolvedSymbol||fj(e);const t=aa(e).resolvedSymbol||(ob(e)?Ka(e,111551,!0):void 0);if(t&&8&t.flags){const e=t.valueDeclaration;if(Zp(e.parent))return hJ(e).value}}function bJ(e){return!!(524288&e.flags)&&Rf(e,0).length>0}function xJ(e){const t=178===(e=dc(e,dl)).kind?177:178,n=Wu(ps(e),t);return{firstAccessor:n&&n.poshL(e)>3))||jo(e,la.This_syntax_requires_an_imported_helper_named_1_with_2_parameters_which_is_not_compatible_with_the_one_in_0_Consider_upgrading_your_version_of_0,qu,n,4):1048576&t?$(pg(i),(e=>hL(e)>4))||jo(e,la.This_syntax_requires_an_imported_helper_named_1_with_2_parameters_which_is_not_compatible_with_the_one_in_0_Consider_upgrading_your_version_of_0,qu,n,5):1024&t&&($(pg(i),(e=>hL(e)>2))||jo(e,la.This_syntax_requires_an_imported_helper_named_1_with_2_parameters_which_is_not_compatible_with_the_one_in_0_Consider_upgrading_your_version_of_0,qu,n,3)):jo(e,la.This_syntax_requires_an_imported_helper_named_1_which_does_not_exist_in_0_Consider_upgrading_your_version_of_0,qu,n)}}n.requestedExternalEmitHelpers|=t}}}}function DJ(e){switch(e){case 1:return["__extends"];case 2:return["__assign"];case 4:return["__rest"];case 8:return J?["__decorate"]:["__esDecorate","__runInitializers"];case 16:return["__metadata"];case 32:return["__param"];case 64:return["__awaiter"];case 128:return["__generator"];case 256:return["__values"];case 512:return["__read"];case 1024:return["__spreadArray"];case 2048:return["__await"];case 4096:return["__asyncGenerator"];case 8192:return["__asyncDelegator"];case 16384:return["__asyncValues"];case 32768:return["__exportStar"];case 65536:return["__importStar"];case 131072:return["__importDefault"];case 262144:return["__makeTemplateObject"];case 524288:return["__classPrivateFieldGet"];case 1048576:return["__classPrivateFieldSet"];case 2097152:return["__classPrivateFieldIn"];case 4194304:return["__setFunctionName"];case 8388608:return["__propKey"];case 16777216:return["__addDisposableResource","__disposeResources"];case 33554432:return["__rewriteRelativeImportExtension"];default:return un.fail("Unrecognized helper")}}function FJ(t){var n;const r=function(e){const t=function(e){return NA(e)?b(e.modifiers,aD):void 0}(e);return t&&ez(t,la.Decorators_are_not_valid_here)}(t)||function(e){if(!e.modifiers)return!1;const t=function(e){switch(e.kind){case 177:case 178:case 176:case 172:case 171:case 174:case 173:case 181:case 267:case 272:case 271:case 278:case 277:case 218:case 219:case 169:case 168:return;case 175:case 303:case 304:case 270:case 282:return b(e.modifiers,Yl);default:if(268===e.parent.kind||307===e.parent.kind)return;switch(e.kind){case 262:return EJ(e,134);case 263:case 185:return EJ(e,128);case 231:case 264:case 265:return b(e.modifiers,Yl);case 243:return 4&e.declarationList.flags?EJ(e,135):b(e.modifiers,Yl);case 266:return EJ(e,87);default:un.assertNever(e)}}}(e);return t&&ez(t,la.Modifiers_cannot_appear_here)}(t);if(void 0!==r)return r;if(oD(t)&&sv(t))return ez(t,la.Neither_decorators_nor_modifiers_may_be_applied_to_this_parameters);const i=wF(t)?7&t.declarationList.flags:0;let o,a,s,c,l,_=0,u=!1,d=!1;for(const r of t.modifiers)if(aD(r)){if(!um(J,t,t.parent,t.parent.parent))return 174!==t.kind||wd(t.body)?ez(t,la.Decorators_are_not_valid_here):ez(t,la.A_decorator_can_only_decorate_a_method_implementation_not_an_overload);if(J&&(177===t.kind||178===t.kind)){const e=xJ(t);if(Ov(e.firstAccessor)&&t===e.secondAccessor)return ez(t,la.Decorators_cannot_be_applied_to_multiple_get_Slashset_accessors_of_the_same_name)}if(-34849&_)return nz(r,la.Decorators_are_not_valid_here);if(d&&98303&_)return un.assertIsDefined(l),!ZJ(hd(r))&&(iT(jo(r,la.Decorators_may_not_appear_after_export_or_export_default_if_they_also_appear_before_export),jp(l,la.Decorator_used_before_export_here)),!0);_|=32768,98303&_?32&_&&(u=!0):d=!0,l??(l=r)}else{if(148!==r.kind){if(171===t.kind||173===t.kind)return nz(r,la._0_modifier_cannot_appear_on_a_type_member,Da(r.kind));if(181===t.kind&&(126!==r.kind||!__(t.parent)))return nz(r,la._0_modifier_cannot_appear_on_an_index_signature,Da(r.kind))}if(103!==r.kind&&147!==r.kind&&87!==r.kind&&168===t.kind)return nz(r,la._0_modifier_cannot_appear_on_a_type_parameter,Da(r.kind));switch(r.kind){case 87:{if(266!==t.kind&&168!==t.kind)return nz(t,la.A_class_member_cannot_have_the_0_keyword,Da(87));const e=TP(t.parent)&&qg(t.parent)||t.parent;if(168===t.kind&&!(i_(e)||__(e)||bD(e)||xD(e)||mD(e)||gD(e)||lD(e)))return nz(r,la._0_modifier_can_only_appear_on_a_type_parameter_of_a_function_method_or_class,Da(r.kind));break}case 164:if(16&_)return nz(r,la._0_modifier_already_seen,"override");if(128&_)return nz(r,la._0_modifier_cannot_be_used_with_1_modifier,"override","declare");if(8&_)return nz(r,la._0_modifier_must_precede_1_modifier,"override","readonly");if(512&_)return nz(r,la._0_modifier_must_precede_1_modifier,"override","accessor");if(1024&_)return nz(r,la._0_modifier_must_precede_1_modifier,"override","async");_|=16,c=r;break;case 125:case 124:case 123:const d=Dc($v(r.kind));if(7&_)return nz(r,la.Accessibility_modifier_already_seen);if(16&_)return nz(r,la._0_modifier_must_precede_1_modifier,d,"override");if(256&_)return nz(r,la._0_modifier_must_precede_1_modifier,d,"static");if(512&_)return nz(r,la._0_modifier_must_precede_1_modifier,d,"accessor");if(8&_)return nz(r,la._0_modifier_must_precede_1_modifier,d,"readonly");if(1024&_)return nz(r,la._0_modifier_must_precede_1_modifier,d,"async");if(268===t.parent.kind||307===t.parent.kind)return nz(r,la._0_modifier_cannot_appear_on_a_module_or_namespace_element,d);if(64&_)return 123===r.kind?nz(r,la._0_modifier_cannot_be_used_with_1_modifier,d,"abstract"):nz(r,la._0_modifier_must_precede_1_modifier,d,"abstract");if(Hl(t))return nz(r,la.An_accessibility_modifier_cannot_be_used_with_a_private_identifier);_|=$v(r.kind);break;case 126:if(256&_)return nz(r,la._0_modifier_already_seen,"static");if(8&_)return nz(r,la._0_modifier_must_precede_1_modifier,"static","readonly");if(1024&_)return nz(r,la._0_modifier_must_precede_1_modifier,"static","async");if(512&_)return nz(r,la._0_modifier_must_precede_1_modifier,"static","accessor");if(268===t.parent.kind||307===t.parent.kind)return nz(r,la._0_modifier_cannot_appear_on_a_module_or_namespace_element,"static");if(169===t.kind)return nz(r,la._0_modifier_cannot_appear_on_a_parameter,"static");if(64&_)return nz(r,la._0_modifier_cannot_be_used_with_1_modifier,"static","abstract");if(16&_)return nz(r,la._0_modifier_must_precede_1_modifier,"static","override");_|=256,o=r;break;case 129:if(512&_)return nz(r,la._0_modifier_already_seen,"accessor");if(8&_)return nz(r,la._0_modifier_cannot_be_used_with_1_modifier,"accessor","readonly");if(128&_)return nz(r,la._0_modifier_cannot_be_used_with_1_modifier,"accessor","declare");if(172!==t.kind)return nz(r,la.accessor_modifier_can_only_appear_on_a_property_declaration);_|=512;break;case 148:if(8&_)return nz(r,la._0_modifier_already_seen,"readonly");if(172!==t.kind&&171!==t.kind&&181!==t.kind&&169!==t.kind)return nz(r,la.readonly_modifier_can_only_appear_on_a_property_declaration_or_index_signature);if(512&_)return nz(r,la._0_modifier_cannot_be_used_with_1_modifier,"readonly","accessor");_|=8;break;case 95:if(j.verbatimModuleSyntax&&!(33554432&t.flags)&&265!==t.kind&&264!==t.kind&&267!==t.kind&&307===t.parent.kind&&1===e.getEmitModuleFormatOfFile(hd(t)))return nz(r,la.A_top_level_export_modifier_cannot_be_used_on_value_declarations_in_a_CommonJS_module_when_verbatimModuleSyntax_is_enabled);if(32&_)return nz(r,la._0_modifier_already_seen,"export");if(128&_)return nz(r,la._0_modifier_must_precede_1_modifier,"export","declare");if(64&_)return nz(r,la._0_modifier_must_precede_1_modifier,"export","abstract");if(1024&_)return nz(r,la._0_modifier_must_precede_1_modifier,"export","async");if(__(t.parent))return nz(r,la._0_modifier_cannot_appear_on_class_elements_of_this_kind,"export");if(169===t.kind)return nz(r,la._0_modifier_cannot_appear_on_a_parameter,"export");if(4===i)return nz(r,la._0_modifier_cannot_appear_on_a_using_declaration,"export");if(6===i)return nz(r,la._0_modifier_cannot_appear_on_an_await_using_declaration,"export");_|=32;break;case 90:const p=307===t.parent.kind?t.parent:t.parent.parent;if(267===p.kind&&!ap(p))return nz(r,la.A_default_export_can_only_be_used_in_an_ECMAScript_style_module);if(4===i)return nz(r,la._0_modifier_cannot_appear_on_a_using_declaration,"default");if(6===i)return nz(r,la._0_modifier_cannot_appear_on_an_await_using_declaration,"default");if(!(32&_))return nz(r,la._0_modifier_must_precede_1_modifier,"export","default");if(u)return nz(l,la.Decorators_are_not_valid_here);_|=2048;break;case 138:if(128&_)return nz(r,la._0_modifier_already_seen,"declare");if(1024&_)return nz(r,la._0_modifier_cannot_be_used_in_an_ambient_context,"async");if(16&_)return nz(r,la._0_modifier_cannot_be_used_in_an_ambient_context,"override");if(__(t.parent)&&!cD(t))return nz(r,la._0_modifier_cannot_appear_on_class_elements_of_this_kind,"declare");if(169===t.kind)return nz(r,la._0_modifier_cannot_appear_on_a_parameter,"declare");if(4===i)return nz(r,la._0_modifier_cannot_appear_on_a_using_declaration,"declare");if(6===i)return nz(r,la._0_modifier_cannot_appear_on_an_await_using_declaration,"declare");if(33554432&t.parent.flags&&268===t.parent.kind)return nz(r,la.A_declare_modifier_cannot_be_used_in_an_already_ambient_context);if(Hl(t))return nz(r,la._0_modifier_cannot_be_used_with_a_private_identifier,"declare");if(512&_)return nz(r,la._0_modifier_cannot_be_used_with_1_modifier,"declare","accessor");_|=128,a=r;break;case 128:if(64&_)return nz(r,la._0_modifier_already_seen,"abstract");if(263!==t.kind&&185!==t.kind){if(174!==t.kind&&172!==t.kind&&177!==t.kind&&178!==t.kind)return nz(r,la.abstract_modifier_can_only_appear_on_a_class_method_or_property_declaration);if(263!==t.parent.kind||!wv(t.parent,64))return nz(r,172===t.kind?la.Abstract_properties_can_only_appear_within_an_abstract_class:la.Abstract_methods_can_only_appear_within_an_abstract_class);if(256&_)return nz(r,la._0_modifier_cannot_be_used_with_1_modifier,"static","abstract");if(2&_)return nz(r,la._0_modifier_cannot_be_used_with_1_modifier,"private","abstract");if(1024&_&&s)return nz(s,la._0_modifier_cannot_be_used_with_1_modifier,"async","abstract");if(16&_)return nz(r,la._0_modifier_must_precede_1_modifier,"abstract","override");if(512&_)return nz(r,la._0_modifier_must_precede_1_modifier,"abstract","accessor")}if(kc(t)&&81===t.name.kind)return nz(r,la._0_modifier_cannot_be_used_with_a_private_identifier,"abstract");_|=64;break;case 134:if(1024&_)return nz(r,la._0_modifier_already_seen,"async");if(128&_||33554432&t.parent.flags)return nz(r,la._0_modifier_cannot_be_used_in_an_ambient_context,"async");if(169===t.kind)return nz(r,la._0_modifier_cannot_appear_on_a_parameter,"async");if(64&_)return nz(r,la._0_modifier_cannot_be_used_with_1_modifier,"async","abstract");_|=1024,s=r;break;case 103:case 147:{const e=103===r.kind?8192:16384,i=103===r.kind?"in":"out",o=TP(t.parent)&&(qg(t.parent)||b(null==(n=Vg(t.parent))?void 0:n.tags,CP))||t.parent;if(168!==t.kind||o&&!(KF(o)||__(o)||GF(o)||CP(o)))return nz(r,la._0_modifier_can_only_appear_on_a_type_parameter_of_a_class_interface_or_type_alias,i);if(_&e)return nz(r,la._0_modifier_already_seen,i);if(8192&e&&16384&_)return nz(r,la._0_modifier_must_precede_1_modifier,"in","out");_|=e;break}}}return 176===t.kind?256&_?nz(o,la._0_modifier_cannot_appear_on_a_constructor_declaration,"static"):16&_?nz(c,la._0_modifier_cannot_appear_on_a_constructor_declaration,"override"):!!(1024&_)&&nz(s,la._0_modifier_cannot_appear_on_a_constructor_declaration,"async"):(272===t.kind||271===t.kind)&&128&_?nz(a,la.A_0_modifier_cannot_be_used_with_an_import_declaration,"declare"):169===t.kind&&31&_&&x_(t.name)?nz(t,la.A_parameter_property_may_not_be_declared_using_a_binding_pattern):169===t.kind&&31&_&&t.dotDotDotToken?nz(t,la.A_parameter_property_cannot_be_declared_using_a_rest_parameter):!!(1024&_)&&function(e,t){switch(e.kind){case 174:case 262:case 218:case 219:return!1}return nz(t,la._0_modifier_cannot_be_used_here,"async")}(t,s)}function EJ(e,t){const n=b(e.modifiers,Yl);return n&&n.kind!==t?n:void 0}function PJ(e,t=la.Trailing_comma_not_allowed){return!(!e||!e.hasTrailingComma)&&tz(e[0],e.end-1,1,t)}function AJ(e,t){if(e&&0===e.length){const n=e.pos-1;return tz(t,n,Xa(t.text,e.end)+1-n,la.Type_parameter_list_cannot_be_empty)}return!1}function IJ(e){const t=hd(e);return FJ(e)||AJ(e.typeParameters,t)||function(e){let t=!1;const n=e.length;for(let r=0;r1||e.typeParameters.hasTrailingComma||e.typeParameters[0].constraint)&&t&&So(t.fileName,[".mts",".cts"])&&nz(e.typeParameters[0],la.This_syntax_is_reserved_in_files_with_the_mts_or_cts_extension_Add_a_trailing_comma_or_explicit_constraint);const{equalsGreaterThanToken:n}=e;return Ja(t,n.pos).line!==Ja(t,n.end).line&&nz(n,la.Line_terminator_not_permitted_before_arrow)}(e,t)||i_(e)&&function(e){if(R>=3){const t=e.body&&CF(e.body)&&tA(e.body.statements);if(t){const n=N(e.parameters,(e=>!!e.initializer||x_(e.name)||Mu(e)));if(u(n)){d(n,(e=>{iT(jo(e,la.This_parameter_is_not_allowed_with_use_strict_directive),jp(t,la.use_strict_directive_used_here))}));const e=n.map(((e,t)=>jp(e,0===t?la.Non_simple_parameter_declared_here:la.and_here)));return iT(jo(t,la.use_strict_directive_cannot_be_used_with_non_simple_parameter_list),...e),!0}}}return!1}(e)}function OJ(e,t){return PJ(t)||function(e,t){if(t&&0===t.length){const n=hd(e),r=t.pos-1;return tz(n,r,Xa(n.text,t.end)+1-r,la.Type_argument_list_cannot_be_empty)}return!1}(e,t)}function LJ(e){const t=e.types;if(PJ(t))return!0;if(t&&0===t.length){const n=Da(e.token);return tz(e,t.pos,0,la._0_list_cannot_be_empty,n)}return $(t,jJ)}function jJ(e){return mF(e)&&eD(e.expression)&&e.typeArguments?nz(e,la.This_use_of_import_is_invalid_import_calls_can_be_written_but_they_must_have_parentheses_and_cannot_have_type_arguments):OJ(e,e.typeArguments)}function RJ(e){if(167!==e.kind)return!1;const t=e;return 226===t.expression.kind&&28===t.expression.operatorToken.kind&&nz(t.expression,la.A_comma_expression_is_not_allowed_in_a_computed_property_name)}function BJ(e){if(e.asteriskToken){if(un.assert(262===e.kind||218===e.kind||174===e.kind),33554432&e.flags)return nz(e.asteriskToken,la.Generators_are_not_allowed_in_an_ambient_context);if(!e.body)return nz(e.asteriskToken,la.An_overload_signature_cannot_be_declared_as_a_generator)}}function JJ(e,t){return!!e&&nz(e,t)}function zJ(e,t){return!!e&&nz(e,t)}function qJ(e){if(iz(e))return!0;if(250===e.kind&&e.awaitModifier&&!(65536&e.flags)){const t=hd(e);if(tm(e)){if(!ZJ(t))switch(mp(t,j)||uo.add(jp(e.awaitModifier,la.for_await_loops_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_this_file_has_no_imports_or_exports_Consider_adding_an_empty_export_to_make_this_file_a_module)),M){case 100:case 199:if(1===t.impliedNodeFormat){uo.add(jp(e.awaitModifier,la.The_current_file_is_a_CommonJS_module_and_cannot_use_await_at_the_top_level));break}case 7:case 99:case 200:case 4:if(R>=4)break;default:uo.add(jp(e.awaitModifier,la.Top_level_for_await_loops_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_node16_nodenext_or_preserve_and_the_target_option_is_set_to_es2017_or_higher))}}else if(!ZJ(t)){const t=jp(e.awaitModifier,la.for_await_loops_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules),n=Hf(e);return n&&176!==n.kind&&(un.assert(!(2&Ih(n)),"Enclosing function should never be an async function."),iT(t,jp(n,la.Did_you_mean_to_mark_this_function_as_async))),uo.add(t),!0}}if(OF(e)&&!(65536&e.flags)&&zN(e.initializer)&&"async"===e.initializer.escapedText)return nz(e.initializer,la.The_left_hand_side_of_a_for_of_statement_may_not_be_async),!1;if(261===e.initializer.kind){const t=e.initializer;if(!QJ(t)){const n=t.declarations;if(!n.length)return!1;if(n.length>1){const n=249===e.kind?la.Only_a_single_variable_declaration_is_allowed_in_a_for_in_statement:la.Only_a_single_variable_declaration_is_allowed_in_a_for_of_statement;return ez(t.declarations[1],n)}const r=n[0];if(r.initializer){const t=249===e.kind?la.The_variable_declaration_of_a_for_in_statement_cannot_have_an_initializer:la.The_variable_declaration_of_a_for_of_statement_cannot_have_an_initializer;return nz(r.name,t)}if(r.type)return nz(r,249===e.kind?la.The_left_hand_side_of_a_for_in_statement_cannot_use_a_type_annotation:la.The_left_hand_side_of_a_for_of_statement_cannot_use_a_type_annotation)}}return!1}function UJ(e){if(e.parameters.length===(177===e.kind?1:2))return av(e)}function VJ(e,t){if(function(e){return Mh(e)&&!Bu(e)}(e))return nz(e,t)}function WJ(e){if(IJ(e))return!0;if(174===e.kind){if(210===e.parent.kind){if(e.modifiers&&(1!==e.modifiers.length||134!==ge(e.modifiers).kind))return ez(e,la.Modifiers_cannot_appear_here);if(JJ(e.questionToken,la.An_object_member_cannot_be_declared_optional))return!0;if(zJ(e.exclamationToken,la.A_definite_assignment_assertion_is_not_permitted_in_this_context))return!0;if(void 0===e.body)return tz(e,e.end-1,1,la._0_expected,"{")}if(BJ(e))return!0}if(__(e.parent)){if(R<2&&qN(e.name))return nz(e.name,la.Private_identifiers_are_only_available_when_targeting_ECMAScript_2015_and_higher);if(33554432&e.flags)return VJ(e.name,la.A_computed_property_name_in_an_ambient_context_must_refer_to_an_expression_whose_type_is_a_literal_type_or_a_unique_symbol_type);if(174===e.kind&&!e.body)return VJ(e.name,la.A_computed_property_name_in_a_method_overload_must_refer_to_an_expression_whose_type_is_a_literal_type_or_a_unique_symbol_type)}else{if(264===e.parent.kind)return VJ(e.name,la.A_computed_property_name_in_an_interface_must_refer_to_an_expression_whose_type_is_a_literal_type_or_a_unique_symbol_type);if(187===e.parent.kind)return VJ(e.name,la.A_computed_property_name_in_a_type_literal_must_refer_to_an_expression_whose_type_is_a_literal_type_or_a_unique_symbol_type)}}function HJ(e){return Lh(e)||224===e.kind&&41===e.operator&&9===e.operand.kind}function KJ(e){const t=e.initializer;if(t){const r=!(HJ(t)||function(e){if((HD(e)||KD(e)&&HJ(e.argumentExpression))&&ob(e.expression))return!!(1056&fj(e).flags)}(t)||112===t.kind||97===t.kind||(n=t,10===n.kind||224===n.kind&&41===n.operator&&10===n.operand.kind));if(!(ef(e)||VF(e)&&uz(e))||e.type)return nz(t,la.Initializers_are_not_allowed_in_ambient_contexts);if(r)return nz(t,la.A_const_initializer_in_an_ambient_context_must_be_a_string_or_numeric_literal_or_literal_enum_reference)}var n}function GJ(e){if(80===e.kind){if("__esModule"===mc(e))return function(e,t,n,...r){return!ZJ(hd(t))&&(Oo(e,t,n,...r),!0)}("noEmit",e,la.Identifier_expected_esModule_is_reserved_as_an_exported_marker_when_transforming_ECMAScript_modules)}else{const t=e.elements;for(const e of t)if(!fF(e))return GJ(e.name)}return!1}function XJ(e){if(80===e.kind){if("let"===e.escapedText)return nz(e,la.let_is_not_allowed_to_be_used_as_a_name_in_let_or_const_declarations)}else{const t=e.elements;for(const e of t)fF(e)||XJ(e.name)}return!1}function QJ(e){const t=e.declarations;if(PJ(e.declarations))return!0;if(!e.declarations.length)return tz(e,t.pos,t.end-t.pos,la.Variable_declaration_list_cannot_be_empty);const n=7&e.flags;return 4!==n&&6!==n||!IF(e.parent)?6===n&&KL(e):nz(e,4===n?la.The_left_hand_side_of_a_for_in_statement_cannot_be_a_using_declaration:la.The_left_hand_side_of_a_for_in_statement_cannot_be_an_await_using_declaration)}function YJ(e){switch(e.kind){case 245:case 246:case 247:case 254:case 248:case 249:case 250:return!1;case 256:return YJ(e.parent)}return!0}function ZJ(e){return e.parseDiagnostics.length>0}function ez(e,t,...n){const r=hd(e);if(!ZJ(r)){const i=Hp(r,e.pos);return uo.add(Kx(r,i.start,i.length,t,...n)),!0}return!1}function tz(e,t,n,r,...i){const o=hd(e);return!ZJ(o)&&(uo.add(Kx(o,t,n,r,...i)),!0)}function nz(e,t,...n){return!ZJ(hd(e))&&(uo.add(jp(e,t,...n)),!0)}function rz(e){return!!(33554432&e.flags)&&function(e){for(const n of e.statements)if((lu(n)||243===n.kind)&&264!==(t=n).kind&&265!==t.kind&&272!==t.kind&&271!==t.kind&&278!==t.kind&&277!==t.kind&&270!==t.kind&&!wv(t,2208)&&ez(t,la.Top_level_declarations_in_d_ts_files_must_start_with_either_a_declare_or_export_modifier))return!0;var t;return!1}(e)}function iz(e){if(33554432&e.flags){if(!aa(e).hasReportedStatementInAmbientContext&&(n_(e.parent)||u_(e.parent)))return aa(e).hasReportedStatementInAmbientContext=ez(e,la.An_implementation_cannot_be_declared_in_ambient_contexts);if(241===e.parent.kind||268===e.parent.kind||307===e.parent.kind){const t=aa(e.parent);if(!t.hasReportedStatementInAmbientContext)return t.hasReportedStatementInAmbientContext=ez(e,la.Statements_are_not_allowed_in_ambient_contexts)}}return!1}function oz(e){const t=Kd(e).includes("."),n=16&e.numericLiteralFlags;t||n||+e.text<=2**53-1||Ro(!1,jp(e,la.Numeric_literals_with_absolute_values_equal_to_2_53_or_greater_are_too_large_to_be_represented_accurately_as_integers))}function az(e){return!!d(e.elements,(e=>{if(e.isTypeOnly)return ez(e,276===e.kind?la.The_type_modifier_cannot_be_used_on_a_named_import_when_import_type_is_used_on_its_import_statement:la.The_type_modifier_cannot_be_used_on_a_named_export_when_export_type_is_used_on_its_export_statement)}))}function sz(e,t,n){if(1048576&t.flags&&2621440&e.flags){const r=wN(t,e);if(r)return r;const i=vp(e);if(i){const e=xN(i,t);if(e){const r=tT(t,E(e,(e=>[()=>S_(e),e.escapedName])),n);if(r!==t)return r}}}}function cz(e){return Bh(e)||(rD(e)?hN(Aj(e.expression)):void 0)}function lz(e){return Ae===e?qe:(Ae=e,qe=rc(e))}function _z(e){return Pe===e?ze:(Pe=e,ze=oc(e))}function uz(e){const t=7&_z(e);return 2===t||4===t||6===t}}function JB(e){return 262!==e.kind&&174!==e.kind||!!e.body}function zB(e){switch(e.parent.kind){case 276:case 281:return zN(e)||11===e.kind;default:return ch(e)}}function qB(e){switch(e){case 0:return"yieldType";case 1:return"returnType";case 2:return"nextType"}}function UB(e){return!!(1&e.flags)}function VB(e){return!!(2&e.flags)}(bB=vB||(vB={})).JSX="JSX",bB.IntrinsicElements="IntrinsicElements",bB.ElementClass="ElementClass",bB.ElementAttributesPropertyNameContainer="ElementAttributesProperty",bB.ElementChildrenAttributeNameContainer="ElementChildrenAttribute",bB.Element="Element",bB.ElementType="ElementType",bB.IntrinsicAttributes="IntrinsicAttributes",bB.IntrinsicClassAttributes="IntrinsicClassAttributes",bB.LibraryManagedAttributes="LibraryManagedAttributes",(xB||(xB={})).Fragment="Fragment";var WB=class e{constructor(t,n,r){var i;for(this.moduleResolverHost=void 0,this.inner=void 0,this.disableTrackSymbol=!1;n instanceof e;)n=n.inner;this.inner=n,this.moduleResolverHost=r,this.context=t,this.canTrackSymbol=!!(null==(i=this.inner)?void 0:i.trackSymbol)}trackSymbol(e,t,n){var r,i;if((null==(r=this.inner)?void 0:r.trackSymbol)&&!this.disableTrackSymbol){if(this.inner.trackSymbol(e,t,n))return this.onDiagnosticReported(),!0;262144&e.flags||((i=this.context).trackedSymbols??(i.trackedSymbols=[])).push([e,t,n])}return!1}reportInaccessibleThisError(){var e;(null==(e=this.inner)?void 0:e.reportInaccessibleThisError)&&(this.onDiagnosticReported(),this.inner.reportInaccessibleThisError())}reportPrivateInBaseOfClassExpression(e){var t;(null==(t=this.inner)?void 0:t.reportPrivateInBaseOfClassExpression)&&(this.onDiagnosticReported(),this.inner.reportPrivateInBaseOfClassExpression(e))}reportInaccessibleUniqueSymbolError(){var e;(null==(e=this.inner)?void 0:e.reportInaccessibleUniqueSymbolError)&&(this.onDiagnosticReported(),this.inner.reportInaccessibleUniqueSymbolError())}reportCyclicStructureError(){var e;(null==(e=this.inner)?void 0:e.reportCyclicStructureError)&&(this.onDiagnosticReported(),this.inner.reportCyclicStructureError())}reportLikelyUnsafeImportRequiredError(e){var t;(null==(t=this.inner)?void 0:t.reportLikelyUnsafeImportRequiredError)&&(this.onDiagnosticReported(),this.inner.reportLikelyUnsafeImportRequiredError(e))}reportTruncationError(){var e;(null==(e=this.inner)?void 0:e.reportTruncationError)&&(this.onDiagnosticReported(),this.inner.reportTruncationError())}reportNonlocalAugmentation(e,t,n){var r;(null==(r=this.inner)?void 0:r.reportNonlocalAugmentation)&&(this.onDiagnosticReported(),this.inner.reportNonlocalAugmentation(e,t,n))}reportNonSerializableProperty(e){var t;(null==(t=this.inner)?void 0:t.reportNonSerializableProperty)&&(this.onDiagnosticReported(),this.inner.reportNonSerializableProperty(e))}onDiagnosticReported(){this.context.reportedDiagnostic=!0}reportInferenceFallback(e){var t;(null==(t=this.inner)?void 0:t.reportInferenceFallback)&&!this.context.suppressReportInferenceFallback&&(this.onDiagnosticReported(),this.inner.reportInferenceFallback(e))}pushErrorFallbackNode(e){var t,n;return null==(n=null==(t=this.inner)?void 0:t.pushErrorFallbackNode)?void 0:n.call(t,e)}popErrorFallbackNode(){var e,t;return null==(t=null==(e=this.inner)?void 0:e.popErrorFallbackNode)?void 0:t.call(e)}};function $B(e,t,n,r){if(void 0===e)return e;const i=t(e);let o;return void 0!==i?(o=Qe(i)?(r||iJ)(i):i,un.assertNode(o,n),o):void 0}function HB(e,t,n,r,i){if(void 0===e)return e;const o=e.length;let a;(void 0===r||r<0)&&(r=0),(void 0===i||i>o-r)&&(i=o-r);let s=-1,c=-1;r>0||io-r)&&(i=o-r),GB(e,t,n,r,i)}function GB(e,t,n,r,i){let o;const a=e.length;(r>0||i=2&&(i=function(e,t){let n;for(let r=0;r{const o=rl,addSource:P,setSourceContent:A,addName:I,addMapping:O,appendSourceMap:function(e,t,n,r,i,o){un.assert(e>=k,"generatedLine cannot backtrack"),un.assert(t>=0,"generatedCharacter cannot be negative"),s();const a=[];let l;const _=pJ(n.mappings);for(const s of _){if(o&&(s.generatedLine>o.line||s.generatedLine===o.line&&s.generatedCharacter>o.character))break;if(i&&(s.generatedLineJSON.stringify(M())};function P(t){s();const n=oa(r,t,e.getCurrentDirectory(),e.getCanonicalFileName,!0);let i=u.get(n);return void 0===i&&(i=_.length,_.push(n),l.push(t),u.set(n,i)),c(),i}function A(e,t){if(s(),null!==t){for(o||(o=[]);o.length=k,"generatedLine cannot backtrack"),un.assert(t>=0,"generatedCharacter cannot be negative"),un.assert(void 0===n||n>=0,"sourceIndex cannot be negative"),un.assert(void 0===r||r>=0,"sourceLine cannot be negative"),un.assert(void 0===i||i>=0,"sourceCharacter cannot be negative"),s(),(function(e,t){return!D||k!==e||S!==t}(e,t)||function(e,t,n){return void 0!==e&&void 0!==t&&void 0!==n&&T===e&&(C>t||C===t&&w>n)}(n,r,i))&&(j(),k=e,S=t,F=!1,E=!1,D=!0),void 0!==n&&void 0!==r&&void 0!==i&&(T=n,C=r,w=i,F=!0,void 0!==o&&(N=o,E=!0)),c()}function L(e){p.push(e),p.length>=1024&&R()}function j(){if(D&&(!x||m!==k||g!==S||h!==T||y!==C||v!==w||b!==N)){if(s(),m0&&(f+=String.fromCharCode.apply(void 0,p),p.length=0)}function M(){return j(),R(),{version:3,file:t,sourceRoot:n,sources:_,names:d,mappings:f,sourcesContent:o}}function B(e){e<0?e=1+(-e<<1):e<<=1;do{let n=31&e;(e>>=5)>0&&(n|=32),L((t=n)>=0&&t<26?65+t:t>=26&&t<52?97+t-26:t>=52&&t<62?48+t-52:62===t?43:63===t?47:un.fail(`${t}: not a base64 value`))}while(e>0);var t}}var aJ=/\/\/[@#] source[M]appingURL=(.+)\r?\n?$/,sJ=/^\/\/[@#] source[M]appingURL=(.+)\r?\n?$/,cJ=/^\s*(\/\/[@#] .*)?$/;function lJ(e,t){return{getLineCount:()=>t.length,getLineText:n=>e.substring(t[n],t[n+1])}}function _J(e){for(let t=e.getLineCount()-1;t>=0;t--){const n=e.getLineText(t),r=sJ.exec(n);if(r)return r[1].trimEnd();if(!n.match(cJ))break}}function uJ(e){return"string"==typeof e||null===e}function dJ(e){try{const n=JSON.parse(e);if(null!==(t=n)&&"object"==typeof t&&3===t.version&&"string"==typeof t.file&&"string"==typeof t.mappings&&Qe(t.sources)&&v(t.sources,Ze)&&(void 0===t.sourceRoot||null===t.sourceRoot||"string"==typeof t.sourceRoot)&&(void 0===t.sourcesContent||null===t.sourcesContent||Qe(t.sourcesContent)&&v(t.sourcesContent,uJ))&&(void 0===t.names||null===t.names||Qe(t.names)&&v(t.names,Ze)))return n}catch{}var t}function pJ(e){let t,n=!1,r=0,i=0,o=0,a=0,s=0,c=0,l=0;return{get pos(){return r},get error(){return t},get state(){return _(!0,!0)},next(){for(;!n&&r=e.length)return d("Error in decoding base64VLQFormatDecode, past the mapping string"),-1;const a=(o=e.charCodeAt(r))>=65&&o<=90?o-65:o>=97&&o<=122?o-97+26:o>=48&&o<=57?o-48+52:43===o?62:47===o?63:-1;if(-1===a)return d("Invalid character in VLQ"),-1;t=!!(32&a),i|=(31&a)<>=1,i=-i):i>>=1,i}}function fJ(e,t){return e===t||e.generatedLine===t.generatedLine&&e.generatedCharacter===t.generatedCharacter&&e.sourceIndex===t.sourceIndex&&e.sourceLine===t.sourceLine&&e.sourceCharacter===t.sourceCharacter&&e.nameIndex===t.nameIndex}function mJ(e){return void 0!==e.sourceIndex&&void 0!==e.sourceLine&&void 0!==e.sourceCharacter}function gJ(e){return void 0!==e.sourceIndex&&void 0!==e.sourcePosition}function hJ(e,t){return e.generatedPosition===t.generatedPosition&&e.sourceIndex===t.sourceIndex&&e.sourcePosition===t.sourcePosition}function yJ(e,t){return un.assert(e.sourceIndex===t.sourceIndex),vt(e.sourcePosition,t.sourcePosition)}function vJ(e,t){return vt(e.generatedPosition,t.generatedPosition)}function bJ(e){return e.sourcePosition}function xJ(e){return e.generatedPosition}function kJ(e,t,n){const r=Do(n),i=t.sourceRoot?Bo(t.sourceRoot,r):r,o=Bo(t.file,r),a=e.getSourceFileLike(o),s=t.sources.map((e=>Bo(e,i))),c=new Map(s.map(((t,n)=>[e.getCanonicalFileName(t),n])));let _,u,d;return{getSourcePosition:function(e){const t=function(){if(void 0===u){const e=[];for(const t of f())e.push(t);u=ee(e,vJ,hJ)}return u}();if(!$(t))return e;let n=Ce(t,e.pos,xJ,vt);n<0&&(n=~n);const r=t[n];return void 0!==r&&gJ(r)?{fileName:s[r.sourceIndex],pos:r.sourcePosition}:e},getGeneratedPosition:function(t){const n=c.get(e.getCanonicalFileName(t.fileName));if(void 0===n)return t;const r=function(e){if(void 0===d){const e=[];for(const t of f()){if(!gJ(t))continue;let n=e[t.sourceIndex];n||(e[t.sourceIndex]=n=[]),n.push(t)}d=e.map((e=>ee(e,yJ,hJ)))}return d[e]}(n);if(!$(r))return t;let i=Ce(r,t.pos,bJ,vt);i<0&&(i=~i);const a=r[i];return void 0===a||a.sourceIndex!==n?t:{fileName:o,pos:a.generatedPosition}}};function p(n){const r=void 0!==a?Oa(a,n.generatedLine,n.generatedCharacter,!0):-1;let i,o;if(mJ(n)){const r=e.getSourceFileLike(s[n.sourceIndex]);i=t.sources[n.sourceIndex],o=void 0!==r?Oa(r,n.sourceLine,n.sourceCharacter,!0):-1}return{generatedPosition:r,source:i,sourceIndex:n.sourceIndex,sourcePosition:o,nameIndex:n.nameIndex}}function f(){if(void 0===_){const n=pJ(t.mappings),r=Oe(n,p);void 0!==n.error?(e.log&&e.log(`Encountered error while decoding sourcemap: ${n.error}`),_=l):_=r}return _}}var SJ={getSourcePosition:st,getGeneratedPosition:st};function TJ(e){return(e=lc(e))?jB(e):0}function CJ(e){return!!e&&!(!uE(e)&&!mE(e))&&$(e.elements,wJ)}function wJ(e){return $d(e.propertyName||e.name)}function NJ(e,t){return function(n){return 307===n.kind?t(n):function(n){return e.factory.createBundle(E(n.sourceFiles,t))}(n)}}function DJ(e){return!!kg(e)}function FJ(e){if(kg(e))return!0;const t=e.importClause&&e.importClause.namedBindings;if(!t)return!1;if(!uE(t))return!1;let n=0;for(const e of t.elements)wJ(e)&&n++;return n>0&&n!==t.elements.length||!!(t.elements.length-n)&&Sg(e)}function EJ(e){return!FJ(e)&&(Sg(e)||!!e.importClause&&uE(e.importClause.namedBindings)&&CJ(e.importClause.namedBindings))}function PJ(e,t){const n=e.getEmitResolver(),r=e.getCompilerOptions(),i=[],o=new LJ,a=[],s=new Map,c=new Set;let l,_,u=!1,d=!1,p=!1,f=!1;for(const n of t.statements)switch(n.kind){case 272:i.push(n),!p&&FJ(n)&&(p=!0),!f&&EJ(n)&&(f=!0);break;case 271:283===n.moduleReference.kind&&i.push(n);break;case 278:if(n.moduleSpecifier)if(n.exportClause)if(i.push(n),mE(n.exportClause))g(n),f||(f=CJ(n.exportClause));else{const e=n.exportClause.name,t=Vd(e);s.get(t)||(IJ(a,TJ(n),e),s.set(t,!0),l=ie(l,e)),p=!0}else i.push(n),d=!0;else g(n);break;case 277:n.isExportEquals&&!_&&(_=n);break;case 243:if(wv(n,32))for(const e of n.declarationList.declarations)l=AJ(e,s,l,a);break;case 262:wv(n,32)&&h(n,void 0,wv(n,2048));break;case 263:if(wv(n,32))if(wv(n,2048))u||(IJ(a,TJ(n),e.factory.getDeclarationName(n)),u=!0);else{const e=n.name;e&&!s.get(mc(e))&&(IJ(a,TJ(n),e),s.set(mc(e),!0),l=ie(l,e))}}const m=pA(e.factory,e.getEmitHelperFactory(),t,r,d,p,f);return m&&i.unshift(m),{externalImports:i,exportSpecifiers:o,exportEquals:_,hasExportStarsToExportValues:d,exportedBindings:a,exportedNames:l,exportedFunctions:c,externalHelpersImportDeclaration:m};function g(e){for(const t of nt(e.exportClause,mE).elements){const r=Vd(t.name);if(!s.get(r)){const i=t.propertyName||t.name;if(11!==i.kind){e.moduleSpecifier||o.add(i,t);const r=n.getReferencedImportDeclaration(i)||n.getReferencedValueDeclaration(i);if(r){if(262===r.kind){h(r,t.name,$d(t.name));continue}IJ(a,TJ(r),t.name)}}s.set(r,!0),l=ie(l,t.name)}}}function h(t,n,r){if(c.add(lc(t,$F)),r)u||(IJ(a,TJ(t),n??e.factory.getDeclarationName(t)),u=!0);else{n??(n=t.name);const e=Vd(n);s.get(e)||(IJ(a,TJ(t),n),s.set(e,!0))}}}function AJ(e,t,n,r){if(x_(e.name))for(const i of e.name.elements)fF(i)||(n=AJ(i,t,n,r));else if(!Vl(e.name)){const i=mc(e.name);t.get(i)||(t.set(i,!0),n=ie(n,e.name),YP(e.name)&&IJ(r,TJ(e),e.name))}return n}function IJ(e,t,n){let r=e[t];return r?r.push(n):e[t]=r=[n],r}var OJ=class e{constructor(){this._map=new Map}get size(){return this._map.size}has(t){return this._map.has(e.toKey(t))}get(t){return this._map.get(e.toKey(t))}set(t,n){return this._map.set(e.toKey(t),n),this}delete(t){var n;return(null==(n=this._map)?void 0:n.delete(e.toKey(t)))??!1}clear(){this._map.clear()}values(){return this._map.values()}static toKey(t){if(Wl(t)||Vl(t)){const n=t.emitNode.autoGenerate;if(4==(7&n.flags)){const r=$A(t),i=ul(r)&&r!==t?e.toKey(r):`(generated@${jB(r)})`;return KA(!1,n.prefix,i,n.suffix,e.toKey)}{const t=`(auto@${n.id})`;return KA(!1,n.prefix,t,n.suffix,e.toKey)}}return qN(t)?mc(t).slice(1):mc(t)}},LJ=class extends OJ{add(e,t){let n=this.get(e);return n?n.push(t):this.set(e,n=[t]),n}remove(e,t){const n=this.get(e);n&&(Vt(n,t),n.length||this.delete(e))}};function jJ(e){return Lu(e)||9===e.kind||Th(e.kind)||zN(e)}function RJ(e){return!zN(e)&&jJ(e)}function MJ(e){return e>=65&&e<=79}function BJ(e){switch(e){case 65:return 40;case 66:return 41;case 67:return 42;case 68:return 43;case 69:return 44;case 70:return 45;case 71:return 48;case 72:return 49;case 73:return 50;case 74:return 51;case 75:return 52;case 79:return 53;case 76:return 57;case 77:return 56;case 78:return 61}}function JJ(e){if(!DF(e))return;const t=oh(e.expression);return sf(t)?t:void 0}function zJ(e,t,n){for(let r=t;rfunction(e,t,n){return cD(e)&&(!!e.initializer||!t)&&Dv(e)===n}(e,t,n)))}function VJ(e){return cD(t=e)&&Dv(t)||uD(e);var t}function WJ(e){return N(e.members,VJ)}function $J(e){return 172===e.kind&&void 0!==e.initializer}function HJ(e){return!Nv(e)&&(f_(e)||d_(e))&&qN(e.name)}function KJ(e){let t;if(e){const n=e.parameters,r=n.length>0&&sv(n[0]),i=r?1:0,o=r?n.length-1:n.length;for(let e=0;e(e[e.All=0]="All",e[e.ObjectRest=1]="ObjectRest",e))(oz||{});function az(e,t,n,r,i,o){let a,s,c=e;if(rb(e))for(a=e.right;hb(e.left)||gb(e.left);){if(!rb(a))return un.checkDefined($B(a,t,U_));c=e=a,a=e.right}const l={context:n,level:r,downlevelIteration:!!n.getCompilerOptions().downlevelIteration,hoistTempVariables:!0,emitExpression:_,emitBindingOrAssignment:function(e,r,i,a){un.assertNode(e,o?zN:U_);const s=o?o(e,r,i):nI(n.factory.createAssignment(un.checkDefined($B(e,t,U_)),r),i);s.original=a,_(s)},createArrayBindingOrAssignmentPattern:e=>function(e,t){return un.assertEachNode(t,E_),e.createArrayLiteralExpression(E(t,e.converters.convertToArrayAssignmentElement))}(n.factory,e),createObjectBindingOrAssignmentPattern:e=>function(e,t){return un.assertEachNode(t,D_),e.createObjectLiteralExpression(E(t,e.converters.convertToObjectAssignmentElement))}(n.factory,e),createArrayBindingOrAssignmentElement:fz,visitor:t};if(a&&(a=$B(a,t,U_),un.assert(a),zN(a)&&sz(e,a.escapedText)||cz(e)?a=pz(l,a,!1,c):i?a=pz(l,a,!0,c):Zh(e)&&(c=a)),_z(l,e,a,c,rb(e)),a&&i){if(!$(s))return a;s.push(a)}return n.factory.inlineExpressions(s)||n.factory.createOmittedExpression();function _(e){s=ie(s,e)}}function sz(e,t){const n=yA(e);return w_(n)?function(e,t){const n=SA(e);for(const e of n)if(sz(e,t))return!0;return!1}(n,t):!!zN(n)&&n.escapedText===t}function cz(e){const t=xA(e);if(t&&rD(t)&&!Al(t.expression))return!0;const n=yA(e);return!!n&&w_(n)&&!!d(SA(n),cz)}function lz(e,t,n,r,i,o=!1,a){let s;const c=[],l=[],_={context:n,level:r,downlevelIteration:!!n.getCompilerOptions().downlevelIteration,hoistTempVariables:o,emitExpression:function(e){s=ie(s,e)},emitBindingOrAssignment:u,createArrayBindingOrAssignmentPattern:e=>function(e,t){return un.assertEachNode(t,S_),e.createArrayBindingPattern(t)}(n.factory,e),createObjectBindingOrAssignmentPattern:e=>function(e,t){return un.assertEachNode(t,VD),e.createObjectBindingPattern(t)}(n.factory,e),createArrayBindingOrAssignmentElement:e=>function(e,t){return e.createBindingElement(void 0,void 0,t)}(n.factory,e),visitor:t};if(VF(e)){let t=hA(e);t&&(zN(t)&&sz(e,t.escapedText)||cz(e))&&(t=pz(_,un.checkDefined($B(t,_.visitor,U_)),!1,t),e=n.factory.updateVariableDeclaration(e,e.name,void 0,void 0,t))}if(_z(_,e,i,e,a),s){const e=n.factory.createTempVariable(void 0);if(o){const t=n.factory.inlineExpressions(s);s=void 0,u(e,t,void 0,void 0)}else{n.hoistVariableDeclaration(e);const t=ve(c);t.pendingExpressions=ie(t.pendingExpressions,n.factory.createAssignment(e,t.value)),se(t.pendingExpressions,s),t.value=e}}for(const{pendingExpressions:e,name:t,value:r,location:i,original:o}of c){const a=n.factory.createVariableDeclaration(t,void 0,void 0,e?n.factory.inlineExpressions(ie(e,r)):r);a.original=o,nI(a,i),l.push(a)}return l;function u(e,t,r,i){un.assertNode(e,t_),s&&(t=n.factory.inlineExpressions(ie(s,t)),s=void 0),c.push({pendingExpressions:s,name:e,value:t,location:r,original:i})}}function _z(e,t,n,r,i){const o=yA(t);if(!i){const i=$B(hA(t),e.visitor,U_);i?n?(n=function(e,t,n,r){return t=pz(e,t,!0,r),e.context.factory.createConditionalExpression(e.context.factory.createTypeCheck(t,"undefined"),void 0,n,void 0,t)}(e,n,i,r),!RJ(i)&&w_(o)&&(n=pz(e,n,!0,r))):n=i:n||(n=e.context.factory.createVoidZero())}N_(o)?function(e,t,n,r,i){const o=SA(n),a=o.length;let s,c;1!==a&&(r=pz(e,r,!T_(t)||0!==a,i));for(let t=0;t=1)||98304&l.transformFlags||98304&yA(l).transformFlags||rD(t)){s&&(e.emitBindingOrAssignment(e.createObjectBindingOrAssignmentPattern(s),r,i,n),s=void 0);const o=dz(e,r,t);rD(t)&&(c=ie(c,o.argumentExpression)),_z(e,l,o,l)}else s=ie(s,$B(l,e.visitor,C_))}}s&&e.emitBindingOrAssignment(e.createObjectBindingOrAssignmentPattern(s),r,i,n)}(e,t,o,n,r):F_(o)?function(e,t,n,r,i){const o=SA(n),a=o.length;let s,c;e.level<1&&e.downlevelIteration?r=pz(e,nI(e.context.getEmitHelperFactory().createReadHelper(r,a>0&&vA(o[a-1])?void 0:a),i),!1,i):(1!==a&&(e.level<1||0===a)||v(o,fF))&&(r=pz(e,r,!T_(t)||0!==a,i));for(let t=0;t=1)if(65536&n.transformFlags||e.hasTransformedPriorElement&&!uz(n)){e.hasTransformedPriorElement=!0;const t=e.context.factory.createTempVariable(void 0);e.hoistTempVariables&&e.context.hoistVariableDeclaration(t),c=ie(c,[t,n]),s=ie(s,e.createArrayBindingOrAssignmentElement(t))}else s=ie(s,n);else{if(fF(n))continue;if(vA(n)){if(t===a-1){const i=e.context.factory.createArraySliceCall(r,t);_z(e,n,i,n)}}else{const i=e.context.factory.createElementAccessExpression(r,t);_z(e,n,i,n)}}}if(s&&e.emitBindingOrAssignment(e.createArrayBindingOrAssignmentPattern(s),r,i,n),c)for(const[t,n]of c)_z(e,n,t,n)}(e,t,o,n,r):e.emitBindingOrAssignment(o,n,r,t)}function uz(e){const t=yA(e);if(!t||fF(t))return!0;const n=xA(e);if(n&&!Jh(n))return!1;const r=hA(e);return!(r&&!RJ(r))&&(w_(t)?v(SA(t),uz):zN(t))}function dz(e,t,n){const{factory:r}=e.context;if(rD(n)){const r=pz(e,un.checkDefined($B(n.expression,e.visitor,U_)),!1,n);return e.context.factory.createElementAccessExpression(t,r)}if(Lh(n)||SN(n)){const i=r.cloneNode(n);return e.context.factory.createElementAccessExpression(t,i)}{const r=e.context.factory.createIdentifier(mc(n));return e.context.factory.createPropertyAccessExpression(t,r)}}function pz(e,t,n,r){if(zN(t)&&n)return t;{const n=e.context.factory.createTempVariable(void 0);return e.hoistTempVariables?(e.context.hoistVariableDeclaration(n),e.emitExpression(nI(e.context.factory.createAssignment(n,t),r))):e.emitBindingOrAssignment(n,t,r,void 0),n}}function fz(e){return e}function mz(e){var t;if(!uD(e)||1!==e.body.statements.length)return!1;const n=e.body.statements[0];return DF(n)&&nb(n.expression,!0)&&zN(n.expression.left)&&(null==(t=e.emitNode)?void 0:t.classThis)===n.expression.left&&110===n.expression.right.kind}function gz(e){var t;return!!(null==(t=e.emitNode)?void 0:t.classThis)&&$(e.members,mz)}function hz(e,t,n,r){if(gz(t))return t;const i=function(e,t,n=e.createThis()){const r=e.createAssignment(t,n),i=e.createExpressionStatement(r),o=e.createBlock([i],!1),a=e.createClassStaticBlockDeclaration(o);return ZC(a).classThis=t,a}(e,n,r);t.name&&sw(i.body.statements[0],t.name);const o=e.createNodeArray([i,...t.members]);nI(o,t.members);const a=HF(t)?e.updateClassDeclaration(t,t.modifiers,t.name,t.typeParameters,t.heritageClauses,o):e.updateClassExpression(t,t.modifiers,t.name,t.typeParameters,t.heritageClauses,o);return ZC(a).classThis=n,a}function yz(e,t,n){const r=lc(cA(n));return(HF(r)||$F(r))&&!r.name&&wv(r,2048)?e.createStringLiteral("default"):e.createStringLiteralFromNode(t)}function vz(e,t,n){const{factory:r}=e;if(void 0!==n)return{assignedName:r.createStringLiteral(n),name:t};if(Jh(t)||qN(t))return{assignedName:r.createStringLiteralFromNode(t),name:t};if(Jh(t.expression)&&!zN(t.expression))return{assignedName:r.createStringLiteralFromNode(t.expression),name:t};const i=r.getGeneratedNameForNode(t);e.hoistVariableDeclaration(i);const o=e.getEmitHelperFactory().createPropKeyHelper(t.expression),a=r.createAssignment(i,o);return{assignedName:i,name:r.updateComputedPropertyName(t,a)}}function bz(e){var t;if(!uD(e)||1!==e.body.statements.length)return!1;const n=e.body.statements[0];return DF(n)&&xN(n.expression,"___setFunctionName")&&n.expression.arguments.length>=2&&n.expression.arguments[1]===(null==(t=e.emitNode)?void 0:t.assignedName)}function xz(e){var t;return!!(null==(t=e.emitNode)?void 0:t.assignedName)&&$(e.members,bz)}function kz(e){return!!e.name||xz(e)}function Sz(e,t,n,r){if(xz(t))return t;const{factory:i}=e,o=function(e,t,n=e.factory.createThis()){const{factory:r}=e,i=e.getEmitHelperFactory().createSetFunctionNameHelper(n,t),o=r.createExpressionStatement(i),a=r.createBlock([o],!1),s=r.createClassStaticBlockDeclaration(a);return ZC(s).assignedName=t,s}(e,n,r);t.name&&sw(o.body.statements[0],t.name);const a=k(t.members,mz)+1,s=t.members.slice(0,a),c=t.members.slice(a),l=i.createNodeArray([...s,o,...c]);return nI(l,t.members),ZC(t=HF(t)?i.updateClassDeclaration(t,t.modifiers,t.name,t.typeParameters,t.heritageClauses,l):i.updateClassExpression(t,t.modifiers,t.name,t.typeParameters,t.heritageClauses,l)).assignedName=n,t}function Tz(e,t,n,r){if(r&&TN(n)&&hm(n))return t;const{factory:i}=e,o=cA(t),a=pF(o)?nt(Sz(e,o,n),pF):e.getEmitHelperFactory().createSetFunctionNameHelper(o,n);return i.restoreOuterExpressions(t,a)}function Cz(e,t,n,r){switch(t.kind){case 303:return function(e,t,n,r){const{factory:i}=e,{assignedName:o,name:a}=vz(e,t.name,r),s=Tz(e,t.initializer,o,n);return i.updatePropertyAssignment(t,a,s)}(e,t,n,r);case 304:return function(e,t,n,r){const{factory:i}=e,o=void 0!==r?i.createStringLiteral(r):yz(i,t.name,t.objectAssignmentInitializer),a=Tz(e,t.objectAssignmentInitializer,o,n);return i.updateShorthandPropertyAssignment(t,t.name,a)}(e,t,n,r);case 260:return function(e,t,n,r){const{factory:i}=e,o=void 0!==r?i.createStringLiteral(r):yz(i,t.name,t.initializer),a=Tz(e,t.initializer,o,n);return i.updateVariableDeclaration(t,t.name,t.exclamationToken,t.type,a)}(e,t,n,r);case 169:return function(e,t,n,r){const{factory:i}=e,o=void 0!==r?i.createStringLiteral(r):yz(i,t.name,t.initializer),a=Tz(e,t.initializer,o,n);return i.updateParameterDeclaration(t,t.modifiers,t.dotDotDotToken,t.name,t.questionToken,t.type,a)}(e,t,n,r);case 208:return function(e,t,n,r){const{factory:i}=e,o=void 0!==r?i.createStringLiteral(r):yz(i,t.name,t.initializer),a=Tz(e,t.initializer,o,n);return i.updateBindingElement(t,t.dotDotDotToken,t.propertyName,t.name,a)}(e,t,n,r);case 172:return function(e,t,n,r){const{factory:i}=e,{assignedName:o,name:a}=vz(e,t.name,r),s=Tz(e,t.initializer,o,n);return i.updatePropertyDeclaration(t,t.modifiers,a,t.questionToken??t.exclamationToken,t.type,s)}(e,t,n,r);case 226:return function(e,t,n,r){const{factory:i}=e,o=void 0!==r?i.createStringLiteral(r):yz(i,t.left,t.right),a=Tz(e,t.right,o,n);return i.updateBinaryExpression(t,t.left,t.operatorToken,a)}(e,t,n,r);case 277:return function(e,t,n,r){const{factory:i}=e,o=void 0!==r?i.createStringLiteral(r):i.createStringLiteral(t.isExportEquals?"":"default"),a=Tz(e,t.expression,o,n);return i.updateExportAssignment(t,t.modifiers,a)}(e,t,n,r)}}var wz=(e=>(e[e.LiftRestriction=0]="LiftRestriction",e[e.All=1]="All",e))(wz||{});function Nz(e,t,n,r,i,o){const a=$B(t.tag,n,U_);un.assert(a);const s=[void 0],c=[],l=[],_=t.template;if(0===o&&!py(_))return nJ(t,n,e);const{factory:u}=e;if(NN(_))c.push(Dz(u,_)),l.push(Fz(u,_,r));else{c.push(Dz(u,_.head)),l.push(Fz(u,_.head,r));for(const e of _.templateSpans)c.push(Dz(u,e.literal)),l.push(Fz(u,e.literal,r)),s.push(un.checkDefined($B(e.expression,n,U_)))}const d=e.getEmitHelperFactory().createTemplateObjectHelper(u.createArrayLiteralExpression(c),u.createArrayLiteralExpression(l));if(MI(r)){const e=u.createUniqueName("templateObject");i(e),s[0]=u.createLogicalOr(e,u.createAssignment(e,d))}else s[0]=d;return u.createCallExpression(a,void 0,s)}function Dz(e,t){return 26656&t.templateFlags?e.createVoidZero():e.createStringLiteral(t.text)}function Fz(e,t,n){let r=t.rawText;if(void 0===r){un.assertIsDefined(n,"Template literal node is missing 'rawText' and does not have a source file. Possibly bad transform."),r=qd(n,t);const e=15===t.kind||18===t.kind;r=r.substring(1,r.length-(e?1:2))}return r=r.replace(/\r\n?/g,"\n"),nI(e.createStringLiteral(r),t)}var Ez=!1;function Pz(e){const{factory:t,getEmitHelperFactory:n,startLexicalEnvironment:r,resumeLexicalEnvironment:i,endLexicalEnvironment:o,hoistVariableDeclaration:a}=e,s=e.getEmitResolver(),c=e.getCompilerOptions(),l=hk(c),_=yk(c),u=!!c.experimentalDecorators,d=c.emitDecoratorMetadata?Oz(e):void 0,p=e.onEmitNode,f=e.onSubstituteNode;let m,g,h,y,v;e.onEmitNode=function(e,t,n){const r=b,i=m;qE(t)&&(m=t),2&x&&function(e){return 267===lc(e).kind}(t)&&(b|=2),8&x&&function(e){return 266===lc(e).kind}(t)&&(b|=8),p(e,t,n),b=r,m=i},e.onSubstituteNode=function(e,n){return n=f(e,n),1===e?function(e){switch(e.kind){case 80:return function(e){return Ce(e)||e}(e);case 211:case 212:return function(e){return function(e){const n=function(e){if(!xk(c))return HD(e)||KD(e)?s.getConstantValue(e):void 0}(e);if(void 0!==n){kw(e,n);const i="string"==typeof n?t.createStringLiteral(n):n<0?t.createPrefixUnaryExpression(41,t.createNumericLiteral(-n)):t.createNumericLiteral(n);if(!c.removeComments){vw(i,3,` ${r=Kd(lc(e,kx)),r.replace(/\*\//g,"*_/")} `)}return i}var r;return e}(e)}(e)}return e}(n):BE(n)?function(e){if(2&x){const n=e.name,r=Ce(n);if(r){if(e.objectAssignmentInitializer){const i=t.createAssignment(r,e.objectAssignmentInitializer);return nI(t.createPropertyAssignment(n,i),e)}return nI(t.createPropertyAssignment(n,r),e)}}return e}(n):n},e.enableSubstitution(211),e.enableSubstitution(212);let b,x=0;return function(e){return 308===e.kind?function(e){return t.createBundle(e.sourceFiles.map(k))}(e):k(e)};function k(t){if(t.isDeclarationFile)return t;m=t;const n=S(t,R);return Tw(n,e.readEmitHelpers()),m=void 0,n}function S(e,t){const n=y,r=v;!function(e){switch(e.kind){case 307:case 269:case 268:case 241:y=e,v=void 0;break;case 263:case 262:if(wv(e,128))break;e.name?ae(e):un.assert(263===e.kind||wv(e,2048))}}(e);const i=t(e);return y!==n&&(v=r),y=n,i}function T(e){return S(e,C)}function C(e){return 1&e.transformFlags?j(e):e}function w(e){return S(e,D)}function D(n){switch(n.kind){case 272:case 271:case 277:case 278:return function(n){if(function(e){const t=dc(e);if(t===e||pE(e))return!1;if(!t||t.kind!==e.kind)return!0;switch(e.kind){case 272:if(un.assertNode(t,nE),e.importClause!==t.importClause)return!0;if(e.attributes!==t.attributes)return!0;break;case 271:if(un.assertNode(t,tE),e.name!==t.name)return!0;if(e.isTypeOnly!==t.isTypeOnly)return!0;if(e.moduleReference!==t.moduleReference&&(Zl(e.moduleReference)||Zl(t.moduleReference)))return!0;break;case 278:if(un.assertNode(t,fE),e.exportClause!==t.exportClause)return!0;if(e.attributes!==t.attributes)return!0}return!1}(n))return 1&n.transformFlags?nJ(n,T,e):n;switch(n.kind){case 272:return function(e){if(!e.importClause)return e;if(e.importClause.isTypeOnly)return;const n=$B(e.importClause,de,rE);return n?t.updateImportDeclaration(e,void 0,n,e.moduleSpecifier,e.attributes):void 0}(n);case 271:return ge(n);case 277:return function(t){return c.verbatimModuleSyntax||s.isValueAliasDeclaration(t)?nJ(t,T,e):void 0}(n);case 278:return function(e){if(e.isTypeOnly)return;if(!e.exportClause||_E(e.exportClause))return t.updateExportDeclaration(e,e.modifiers,e.isTypeOnly,e.exportClause,e.moduleSpecifier,e.attributes);const n=!!c.verbatimModuleSyntax,r=$B(e.exportClause,(e=>function(e,n){return _E(e)?function(e){return t.updateNamespaceExport(e,un.checkDefined($B(e.name,T,zN)))}(e):function(e,n){const r=HB(e.elements,me,gE);return n||$(r)?t.updateNamedExports(e,r):void 0}(e,n)}(e,n)),Cl);return r?t.updateExportDeclaration(e,void 0,e.isTypeOnly,r,e.moduleSpecifier,e.attributes):void 0}(n);default:un.fail("Unhandled ellided statement")}}(n);default:return C(n)}}function F(e){return S(e,P)}function P(e){if(278!==e.kind&&272!==e.kind&&273!==e.kind&&(271!==e.kind||283!==e.moduleReference.kind))return 1&e.transformFlags||wv(e,32)?j(e):e}function A(n){return r=>S(r,(r=>function(n,r){switch(n.kind){case 176:return function(n){if(X(n))return t.updateConstructorDeclaration(n,void 0,QB(n.parameters,T,e),function(n,r){const a=r&&N(r.parameters,(e=>Ys(e,r)));if(!$(a))return ZB(n,T,e);let s=[];i();const c=t.copyPrologue(n.statements,s,!1,T),l=qJ(n.statements,c),_=B(a,Y);l.length?Q(s,n.statements,c,l,0,_):(se(s,_),se(s,HB(n.statements,T,du,c))),s=t.mergeLexicalEnvironment(s,o());const u=t.createBlock(nI(t.createNodeArray(s),n.statements),!0);return nI(u,n),YC(u,n),u}(n.body,n))}(n);case 172:return function(e,n){const r=33554432&e.flags||wv(e,64);if(r&&(!u||!Ov(e)))return;let i=__(n)?HB(e.modifiers,r?O:T,m_):HB(e.modifiers,I,m_);return i=q(i,e,n),r?t.updatePropertyDeclaration(e,K(i,t.createModifiersFromModifierFlags(128)),un.checkDefined($B(e.name,T,e_)),void 0,void 0,void 0):t.updatePropertyDeclaration(e,i,G(e),void 0,void 0,$B(e.initializer,T,U_))}(n,r);case 177:return te(n,r);case 178:return ne(n,r);case 174:return Z(n,r);case 175:return nJ(n,T,e);case 240:return n;case 181:return;default:return un.failBadSyntaxKind(n)}}(r,n)))}function I(e){return aD(e)?void 0:T(e)}function O(e){return Yl(e)?void 0:T(e)}function L(e){if(!aD(e)&&!(28895&$v(e.kind)||g&&95===e.kind))return e}function j(n){if(du(n)&&wv(n,128))return t.createNotEmittedStatement(n);switch(n.kind){case 95:case 90:return g?void 0:n;case 125:case 123:case 124:case 128:case 164:case 87:case 138:case 148:case 103:case 147:case 188:case 189:case 190:case 191:case 187:case 182:case 168:case 133:case 159:case 136:case 154:case 150:case 146:case 116:case 155:case 185:case 184:case 186:case 183:case 192:case 193:case 194:case 196:case 197:case 198:case 199:case 200:case 201:case 181:case 270:return;case 265:case 264:return t.createNotEmittedStatement(n);case 263:return function(n){const r=function(e){let t=0;$(UJ(e,!0,!0))&&(t|=1);const n=hh(e);return n&&106!==cA(n.expression).kind&&(t|=64),mm(u,e)&&(t|=2),fm(u,e)&&(t|=4),he(e)?t|=8:function(e){return ye(e)&&wv(e,2048)}(e)?t|=32:ve(e)&&(t|=16),t}(n),i=l<=1&&!!(7&r);if(!function(e){return Ov(e)||$(e.typeParameters)||$(e.heritageClauses,M)||$(e.members,M)}(n)&&!mm(u,n)&&!he(n))return t.updateClassDeclaration(n,HB(n.modifiers,L,Yl),n.name,void 0,HB(n.heritageClauses,T,jE),HB(n.members,A(n),l_));i&&e.startLexicalEnvironment();const o=i||8&r;let a=HB(n.modifiers,o?O:T,m_);2&r&&(a=z(a,n));const s=o&&!n.name||4&r||1&r?n.name??t.getGeneratedNameForNode(n):n.name,c=t.updateClassDeclaration(n,a,s,void 0,HB(n.heritageClauses,T,jE),J(n));let _,d=Qd(n);if(1&r&&(d|=64),nw(c,d),i){const r=[c],i=jb(Xa(m.text,n.members.end),20),o=t.getInternalName(n),a=t.createPartiallyEmittedExpression(o);kT(a,i.end),nw(a,3072);const s=t.createReturnStatement(a);xT(s,i.pos),nw(s,3840),r.push(s),Ad(r,e.endLexicalEnvironment());const l=t.createImmediatelyInvokedArrowFunction(r);iw(l,1);const u=t.createVariableDeclaration(t.getLocalName(n,!1,!1),void 0,void 0,l);YC(u,n);const d=t.createVariableStatement(void 0,t.createVariableDeclarationList([u],1));YC(d,n),pw(d,n),sw(d,Ob(n)),_A(d),_=d}else _=c;if(o){if(8&r)return[_,be(n)];if(32&r)return[_,t.createExportDefault(t.getLocalName(n,!1,!0))];if(16&r)return[_,t.createExternalModuleExport(t.getDeclarationName(n,!1,!0))]}return _}(n);case 231:return function(e){let n=HB(e.modifiers,O,m_);return mm(u,e)&&(n=z(n,e)),t.updateClassExpression(e,n,e.name,void 0,HB(e.heritageClauses,T,jE),J(e))}(n);case 298:return function(t){if(119!==t.token)return nJ(t,T,e)}(n);case 233:return function(e){return t.updateExpressionWithTypeArguments(e,un.checkDefined($B(e.expression,T,R_)),void 0)}(n);case 210:return function(e){return t.updateObjectLiteralExpression(e,HB(e.properties,(n=e,e=>S(e,(e=>function(e,t){switch(e.kind){case 303:case 304:case 305:return T(e);case 177:return te(e,t);case 178:return ne(e,t);case 174:return Z(e,t);default:return un.failBadSyntaxKind(e)}}(e,n)))),y_));var n}(n);case 176:case 172:case 174:case 177:case 178:case 175:return un.fail("Class and object literal elements must be visited with their respective visitors");case 262:return function(n){if(!X(n))return t.createNotEmittedStatement(n);const r=t.updateFunctionDeclaration(n,HB(n.modifiers,L,Yl),n.asteriskToken,n.name,void 0,QB(n.parameters,T,e),void 0,ZB(n.body,T,e)||t.createBlock([]));if(he(n)){const e=[r];return function(e,t){e.push(be(t))}(e,n),e}return r}(n);case 218:return function(n){if(!X(n))return t.createOmittedExpression();return t.updateFunctionExpression(n,HB(n.modifiers,L,Yl),n.asteriskToken,n.name,void 0,QB(n.parameters,T,e),void 0,ZB(n.body,T,e)||t.createBlock([]))}(n);case 219:return function(n){return t.updateArrowFunction(n,HB(n.modifiers,L,Yl),void 0,QB(n.parameters,T,e),void 0,n.equalsGreaterThanToken,ZB(n.body,T,e))}(n);case 169:return function(e){if(sv(e))return;const n=t.updateParameterDeclaration(e,HB(e.modifiers,(e=>aD(e)?T(e):void 0),m_),e.dotDotDotToken,un.checkDefined($B(e.name,T,t_)),void 0,void 0,$B(e.initializer,T,U_));return n!==e&&(pw(n,e),nI(n,Lb(e)),sw(n,Lb(e)),nw(n.name,64)),n}(n);case 217:return function(n){const r=cA(n.expression,-23);if(V_(r)||hF(r)){const e=$B(n.expression,T,U_);return un.assert(e),t.createPartiallyEmittedExpression(e,n)}return nJ(n,T,e)}(n);case 216:case 234:return function(e){const n=$B(e.expression,T,U_);return un.assert(n),t.createPartiallyEmittedExpression(n,e)}(n);case 238:return function(e){const n=$B(e.expression,T,U_);return un.assert(n),t.createPartiallyEmittedExpression(n,e)}(n);case 213:return function(e){return t.updateCallExpression(e,un.checkDefined($B(e.expression,T,U_)),void 0,HB(e.arguments,T,U_))}(n);case 214:return function(e){return t.updateNewExpression(e,un.checkDefined($B(e.expression,T,U_)),void 0,HB(e.arguments,T,U_))}(n);case 215:return function(e){return t.updateTaggedTemplateExpression(e,un.checkDefined($B(e.tag,T,U_)),void 0,un.checkDefined($B(e.template,T,j_)))}(n);case 235:return function(e){const n=$B(e.expression,T,R_);return un.assert(n),t.createPartiallyEmittedExpression(n,e)}(n);case 266:return function(e){if(!function(e){return!Zp(e)||Dk(c)}(e))return t.createNotEmittedStatement(e);const n=[];let i=4;const a=le(n,e);a&&(4===_&&y===m||(i|=1024));const s=Se(e),l=Te(e),u=he(e)?t.getExternalModuleOrNamespaceExportName(h,e,!1,!0):t.getDeclarationName(e,!1,!0);let d=t.createLogicalOr(u,t.createAssignment(u,t.createObjectLiteralExpression()));if(he(e)){const n=t.getLocalName(e,!1,!0);d=t.createAssignment(n,d)}const p=t.createExpressionStatement(t.createCallExpression(t.createFunctionExpression(void 0,void 0,void 0,void 0,[t.createParameterDeclaration(void 0,void 0,s)],void 0,function(e,n){const i=h;h=n;const a=[];r();const s=E(e.members,oe);return Ad(a,o()),se(a,s),h=i,t.createBlock(nI(t.createNodeArray(a),e.members),!0)}(e,l)),void 0,[d]));return YC(p,e),a&&(mw(p,void 0),yw(p,void 0)),nI(p,e),rw(p,i),n.push(p),n}(n);case 243:return function(n){if(he(n)){const e=Yb(n.declarationList);if(0===e.length)return;return nI(t.createExpressionStatement(t.inlineExpressions(E(e,re))),n)}return nJ(n,T,e)}(n);case 260:return function(e){const n=t.updateVariableDeclaration(e,un.checkDefined($B(e.name,T,t_)),void 0,void 0,$B(e.initializer,T,U_));return e.type&&Pw(n.name,e.type),n}(n);case 267:return _e(n);case 271:return ge(n);case 285:return function(e){return t.updateJsxSelfClosingElement(e,un.checkDefined($B(e.tagName,T,mu)),void 0,un.checkDefined($B(e.attributes,T,EE)))}(n);case 286:return function(e){return t.updateJsxOpeningElement(e,un.checkDefined($B(e.tagName,T,mu)),void 0,un.checkDefined($B(e.attributes,T,EE)))}(n);default:return nJ(n,T,e)}}function R(n){const r=Mk(c,"alwaysStrict")&&!(MI(n)&&_>=5)&&!Yp(n);return t.updateSourceFile(n,XB(n.statements,w,e,0,r))}function M(e){return!!(8192&e.transformFlags)}function J(e){const n=HB(e.members,A(e),l_);let r;const i=rv(e),o=i&&N(i.parameters,(e=>Ys(e,i)));if(o)for(const e of o){const n=t.createPropertyDeclaration(void 0,e.name,void 0,void 0,void 0);YC(n,e),r=ie(r,n)}return r?(r=se(r,n),nI(t.createNodeArray(r),e.members)):n}function z(e,n){const r=U(n,n);if($(r)){const n=[];se(n,cn(e,VA)),se(n,N(e,aD)),se(n,r),se(n,N(ln(e,VA),Yl)),e=nI(t.createNodeArray(n),e)}return e}function q(e,n,r){if(__(r)&&gm(u,n,r)){const i=U(n,r);if($(i)){const n=[];se(n,N(e,aD)),se(n,i),se(n,N(e,Yl)),e=nI(t.createNodeArray(n),e)}}return e}function U(e,r){if(u)return Ez?function(e,r){if(d){let i;if(V(e)&&(i=ie(i,t.createPropertyAssignment("type",t.createArrowFunction(void 0,void 0,[],void 0,t.createToken(39),d.serializeTypeOfNode({currentLexicalScope:y,currentNameScope:r},e,r))))),H(e)&&(i=ie(i,t.createPropertyAssignment("paramTypes",t.createArrowFunction(void 0,void 0,[],void 0,t.createToken(39),d.serializeParameterTypesOfNode({currentLexicalScope:y,currentNameScope:r},e,r))))),W(e)&&(i=ie(i,t.createPropertyAssignment("returnType",t.createArrowFunction(void 0,void 0,[],void 0,t.createToken(39),d.serializeReturnTypeOfNode({currentLexicalScope:y,currentNameScope:r},e))))),i){const e=n().createMetadataHelper("design:typeinfo",t.createObjectLiteralExpression(i,!0));return[t.createDecorator(e)]}}}(e,r):function(e,r){if(d){let i;if(V(e)){const o=n().createMetadataHelper("design:type",d.serializeTypeOfNode({currentLexicalScope:y,currentNameScope:r},e,r));i=ie(i,t.createDecorator(o))}if(H(e)){const o=n().createMetadataHelper("design:paramtypes",d.serializeParameterTypesOfNode({currentLexicalScope:y,currentNameScope:r},e,r));i=ie(i,t.createDecorator(o))}if(W(e)){const o=n().createMetadataHelper("design:returntype",d.serializeReturnTypeOfNode({currentLexicalScope:y,currentNameScope:r},e));i=ie(i,t.createDecorator(o))}return i}}(e,r)}function V(e){const t=e.kind;return 174===t||177===t||178===t||172===t}function W(e){return 174===e.kind}function H(e){switch(e.kind){case 263:case 231:return void 0!==rv(e);case 174:case 177:case 178:return!0}return!1}function G(e){const n=e.name;if(u&&rD(n)&&Ov(e)){const e=$B(n.expression,T,U_);if(un.assert(e),!RJ(kl(e))){const r=t.getGeneratedNameForNode(n);return a(r),t.updateComputedPropertyName(n,t.createAssignment(r,e))}}return un.checkDefined($B(n,T,e_))}function X(e){return!Cd(e.body)}function Q(e,n,r,i,o,a){const s=i[o],c=n[s];if(se(e,HB(n,T,du,r,s-r)),qF(c)){const n=[];Q(n,c.tryBlock.statements,0,i,o+1,a),nI(t.createNodeArray(n),c.tryBlock.statements),e.push(t.updateTryStatement(c,t.updateBlock(c.tryBlock,n),$B(c.catchClause,T,RE),$B(c.finallyBlock,T,CF)))}else se(e,HB(n,T,du,s,1)),se(e,a);se(e,HB(n,T,du,s+1))}function Y(e){const n=e.name;if(!zN(n))return;const r=wT(nI(t.cloneNode(n),n),n.parent);nw(r,3168);const i=wT(nI(t.cloneNode(n),n),n.parent);return nw(i,3072),_A(tw(nI(YC(t.createExpressionStatement(t.createAssignment(nI(t.createPropertyAccessExpression(t.createThis(),r),e.name),i)),e),Ib(e,-1))))}function Z(n,r){if(!(1&n.transformFlags))return n;if(!X(n))return;let i=__(r)?HB(n.modifiers,T,m_):HB(n.modifiers,I,m_);return i=q(i,n,r),t.updateMethodDeclaration(n,i,n.asteriskToken,G(n),void 0,void 0,QB(n.parameters,T,e),void 0,ZB(n.body,T,e))}function ee(e){return!(Cd(e.body)&&wv(e,64))}function te(n,r){if(!(1&n.transformFlags))return n;if(!ee(n))return;let i=__(r)?HB(n.modifiers,T,m_):HB(n.modifiers,I,m_);return i=q(i,n,r),t.updateGetAccessorDeclaration(n,i,G(n),QB(n.parameters,T,e),void 0,ZB(n.body,T,e)||t.createBlock([]))}function ne(n,r){if(!(1&n.transformFlags))return n;if(!ee(n))return;let i=__(r)?HB(n.modifiers,T,m_):HB(n.modifiers,I,m_);return i=q(i,n,r),t.updateSetAccessorDeclaration(n,i,G(n),QB(n.parameters,T,e),ZB(n.body,T,e)||t.createBlock([]))}function re(n){const r=n.name;return x_(r)?az(n,T,e,0,!1,xe):nI(t.createAssignment(ke(r),un.checkDefined($B(n.initializer,T,U_))),n)}function oe(n){const r=function(e){const n=e.name;return qN(n)?t.createIdentifier(""):rD(n)?n.expression:zN(n)?t.createStringLiteral(mc(n)):t.cloneNode(n)}(n),i=s.getEnumMemberValue(n),o=function(n,r){return void 0!==r?"string"==typeof r?t.createStringLiteral(r):r<0?t.createPrefixUnaryExpression(41,t.createNumericLiteral(-r)):t.createNumericLiteral(r):(8&x||(x|=8,e.enableSubstitution(80)),n.initializer?un.checkDefined($B(n.initializer,T,U_)):t.createVoidZero())}(n,null==i?void 0:i.value),a=t.createAssignment(t.createElementAccessExpression(h,r),o),c="string"==typeof(null==i?void 0:i.value)||(null==i?void 0:i.isSyntacticallyString)?a:t.createAssignment(t.createElementAccessExpression(h,a),r);return nI(t.createExpressionStatement(nI(c,n)),n)}function ae(e){v||(v=new Map);const t=ce(e);v.has(t)||v.set(t,e)}function ce(e){return un.assertNode(e.name,zN),e.name.escapedText}function le(e,n){const r=t.createVariableDeclaration(t.getLocalName(n,!1,!0)),i=307===y.kind?0:1,o=t.createVariableStatement(HB(n.modifiers,L,Yl),t.createVariableDeclarationList([r],i));return YC(r,n),mw(r,void 0),yw(r,void 0),YC(o,n),ae(n),!!function(e){if(v){const t=ce(e);return v.get(t)===e}return!0}(n)&&(266===n.kind?sw(o.declarationList,n):sw(o,n),pw(o,n),rw(o,2048),e.push(o),!0)}function _e(n){if(!function(e){const t=dc(e,QF);return!t||MB(t,Dk(c))}(n))return t.createNotEmittedStatement(n);un.assertNode(n.name,zN,"A TypeScript namespace should have an Identifier name."),2&x||(x|=2,e.enableSubstitution(80),e.enableSubstitution(304),e.enableEmitNotification(267));const i=[];let a=4;const s=le(i,n);s&&(4===_&&y===m||(a|=1024));const l=Se(n),u=Te(n),d=he(n)?t.getExternalModuleOrNamespaceExportName(h,n,!1,!0):t.getDeclarationName(n,!1,!0);let p=t.createLogicalOr(d,t.createAssignment(d,t.createObjectLiteralExpression()));if(he(n)){const e=t.getLocalName(n,!1,!0);p=t.createAssignment(e,p)}const f=t.createExpressionStatement(t.createCallExpression(t.createFunctionExpression(void 0,void 0,void 0,void 0,[t.createParameterDeclaration(void 0,void 0,l)],void 0,function(e,n){const i=h,a=g,s=v;h=n,g=e,v=void 0;const c=[];let l,_;if(r(),e.body)if(268===e.body.kind)S(e.body,(e=>se(c,HB(e.statements,F,du)))),l=e.body.statements,_=e.body;else{const t=_e(e.body);t&&(Qe(t)?se(c,t):c.push(t)),l=Ib(ue(e).body.statements,-1)}Ad(c,o()),h=i,g=a,v=s;const u=t.createBlock(nI(t.createNodeArray(c),l),!0);return nI(u,_),e.body&&268===e.body.kind||nw(u,3072|Qd(u)),u}(n,u)),void 0,[p]));return YC(f,n),s&&(mw(f,void 0),yw(f,void 0)),nI(f,n),rw(f,a),i.push(f),i}function ue(e){if(267===e.body.kind)return ue(e.body)||e.body}function de(e){un.assert(!e.isTypeOnly);const n=we(e)?e.name:void 0,r=$B(e.namedBindings,pe,ru);return n||r?t.updateImportClause(e,!1,n,r):void 0}function pe(e){if(274===e.kind)return we(e)?e:void 0;{const n=c.verbatimModuleSyntax,r=HB(e.elements,fe,dE);return n||$(r)?t.updateNamedImports(e,r):void 0}}function fe(e){return!e.isTypeOnly&&we(e)?e:void 0}function me(e){return e.isTypeOnly||!c.verbatimModuleSyntax&&!s.isValueAliasDeclaration(e)?void 0:e}function ge(n){if(n.isTypeOnly)return;if(Sm(n)){if(!we(n))return;return nJ(n,T,e)}if(!function(e){return we(e)||!MI(m)&&s.isTopLevelValueImportEqualsWithEntityName(e)}(n))return;const r=HP(t,n.moduleReference);return nw(r,7168),ve(n)||!he(n)?YC(nI(t.createVariableStatement(HB(n.modifiers,L,Yl),t.createVariableDeclarationList([YC(t.createVariableDeclaration(n.name,void 0,void 0,r),n)])),n),n):YC((i=n.name,o=r,a=n,nI(t.createExpressionStatement(t.createAssignment(t.getNamespaceMemberName(h,i,!1,!0),o)),a)),n);var i,o,a}function he(e){return void 0!==g&&wv(e,32)}function ye(e){return void 0===g&&wv(e,32)}function ve(e){return ye(e)&&!wv(e,2048)}function be(e){const n=t.createAssignment(t.getExternalModuleOrNamespaceExportName(h,e,!1,!0),t.getLocalName(e));sw(n,Pb(e.name?e.name.pos:e.pos,e.end));const r=t.createExpressionStatement(n);return sw(r,Pb(-1,e.end)),r}function xe(e,n,r){return nI(t.createAssignment(ke(e),n),r)}function ke(e){return t.getNamespaceMemberName(h,e,!1,!0)}function Se(e){const n=t.getGeneratedNameForNode(e);return sw(n,e.name),n}function Te(e){return t.getGeneratedNameForNode(e)}function Ce(e){if(x&b&&!Vl(e)&&!YP(e)){const n=s.getReferencedExportContainer(e,!1);if(n&&307!==n.kind&&(2&b&&267===n.kind||8&b&&266===n.kind))return nI(t.createPropertyAccessExpression(t.getGeneratedNameForNode(n),e),e)}}function we(e){return c.verbatimModuleSyntax||Fm(e)||s.isReferencedAliasDeclaration(e)}}function Az(e){const{factory:t,getEmitHelperFactory:n,hoistVariableDeclaration:r,endLexicalEnvironment:i,startLexicalEnvironment:o,resumeLexicalEnvironment:a,addBlockScopedVariable:s}=e,c=e.getEmitResolver(),l=e.getCompilerOptions(),_=hk(l),u=Ak(l),d=!!l.experimentalDecorators,p=!u,f=u&&_<9,m=p||f,g=_<9,h=_<99?-1:u?0:3,y=_<9,v=y&&_>=2,x=m||g||-1===h,k=e.onSubstituteNode;e.onSubstituteNode=function(e,n){return n=k(e,n),1===e?function(e){switch(e.kind){case 80:return function(e){return function(e){if(1&P&&c.hasNodeCheckFlag(e,536870912)){const n=c.getReferencedValueDeclaration(e);if(n){const r=T[n.id];if(r){const n=t.cloneNode(r);return sw(n,e),pw(n,e),n}}}}(e)||e}(e);case 110:return function(e){if(2&P&&(null==D?void 0:D.data)&&!I.has(e)){const{facts:n,classConstructor:r,classThis:i}=D.data,o=j?i??r:r;if(o)return nI(YC(t.cloneNode(o),e),e);if(1&n&&d)return t.createParenthesizedExpression(t.createVoidZero())}return e}(e)}return e}(n):n};const S=e.onEmitNode;e.onEmitNode=function(e,t,n){const r=lc(t),i=A.get(r);if(i){const o=D,a=R;return D=i,R=j,j=!(uD(r)&&32&Yd(r)),S(e,t,n),j=R,R=a,void(D=o)}switch(t.kind){case 218:if(tF(r)||524288&Qd(t))break;case 262:case 176:case 177:case 178:case 174:case 172:{const r=D,i=R;return D=void 0,R=j,j=!1,S(e,t,n),j=R,R=i,void(D=r)}case 167:{const r=D,i=j;return D=null==D?void 0:D.previous,j=R,S(e,t,n),j=i,void(D=r)}}S(e,t,n)};let T,C,w,D,F=!1,P=0;const A=new Map,I=new Set;let O,L,j=!1,R=!1;return NJ(e,(function(t){if(t.isDeclarationFile)return t;if(D=void 0,F=!!(32&Yd(t)),!x&&!F)return t;const n=nJ(t,B,e);return Tw(n,e.readEmitHelpers()),n}));function M(e){return 129===e.kind?ee()?void 0:e:tt(e,Yl)}function B(n){if(!(16777216&n.transformFlags||134234112&n.transformFlags))return n;switch(n.kind){case 263:return function(e){return ge(e,he)}(n);case 231:return function(e){return ge(e,ye)}(n);case 175:case 172:return un.fail("Use `classElementVisitor` instead.");case 303:case 260:case 169:case 208:return function(t){return Kh(t,ue)&&(t=Cz(e,t)),nJ(t,B,e)}(n);case 243:return function(t){const n=w;w=[];const r=nJ(t,B,e),i=$(w)?[r,...w]:r;return w=n,i}(n);case 277:return function(t){return Kh(t,ue)&&(t=Cz(e,t,!0,t.isExportEquals?"":"default")),nJ(t,B,e)}(n);case 81:return function(e){return g?du(e.parent)?e:YC(t.createIdentifier(""),e):e}(n);case 211:return function(n){if(qN(n.name)){const e=je(n.name);if(e)return nI(YC(oe(e,n.expression),n),n)}if(v&&L&&om(n)&&zN(n.name)&&Iz(L)&&(null==D?void 0:D.data)){const{classConstructor:e,superClassReference:r,facts:i}=D.data;if(1&i)return Ne(n);if(e&&r){const i=t.createReflectGetCall(r,t.createStringLiteralFromNode(n.name),e);return YC(i,n.expression),nI(i,n.expression),i}}return nJ(n,B,e)}(n);case 212:return function(n){if(v&&L&&om(n)&&Iz(L)&&(null==D?void 0:D.data)){const{classConstructor:e,superClassReference:r,facts:i}=D.data;if(1&i)return Ne(n);if(e&&r){const i=t.createReflectGetCall(r,$B(n.argumentExpression,B,U_),e);return YC(i,n.expression),nI(i,n.expression),i}}return nJ(n,B,e)}(n);case 224:case 225:return ce(n,!1);case 226:return de(n,!1);case 217:return pe(n,!1);case 213:return function(n){var i;if(Kl(n.expression)&&je(n.expression.name)){const{thisArg:e,target:i}=t.createCallBinding(n.expression,r,_);return ml(n)?t.updateCallChain(n,t.createPropertyAccessChain($B(i,B,U_),n.questionDotToken,"call"),void 0,void 0,[$B(e,B,U_),...HB(n.arguments,B,U_)]):t.updateCallExpression(n,t.createPropertyAccessExpression($B(i,B,U_),"call"),void 0,[$B(e,B,U_),...HB(n.arguments,B,U_)])}if(v&&L&&om(n.expression)&&Iz(L)&&(null==(i=null==D?void 0:D.data)?void 0:i.classConstructor)){const e=t.createFunctionCallCall($B(n.expression,B,U_),D.data.classConstructor,HB(n.arguments,B,U_));return YC(e,n),nI(e,n),e}return nJ(n,B,e)}(n);case 244:return function(e){return t.updateExpressionStatement(e,$B(e.expression,z,U_))}(n);case 215:return function(n){var i;if(Kl(n.tag)&&je(n.tag.name)){const{thisArg:e,target:i}=t.createCallBinding(n.tag,r,_);return t.updateTaggedTemplateExpression(n,t.createCallExpression(t.createPropertyAccessExpression($B(i,B,U_),"bind"),void 0,[$B(e,B,U_)]),void 0,$B(n.template,B,j_))}if(v&&L&&om(n.tag)&&Iz(L)&&(null==(i=null==D?void 0:D.data)?void 0:i.classConstructor)){const e=t.createFunctionBindCall($B(n.tag,B,U_),D.data.classConstructor,[]);return YC(e,n),nI(e,n),t.updateTaggedTemplateExpression(n,e,void 0,$B(n.template,B,j_))}return nJ(n,B,e)}(n);case 248:return function(n){return t.updateForStatement(n,$B(n.initializer,z,Z_),$B(n.condition,B,U_),$B(n.incrementor,z,U_),eJ(n.statement,B,e))}(n);case 110:return function(e){if(y&&L&&uD(L)&&(null==D?void 0:D.data)){const{classThis:t,classConstructor:n}=D.data;return t??n??e}return e}(n);case 262:case 218:return Y(void 0,J,n);case 176:case 174:case 177:case 178:return Y(n,J,n);default:return J(n)}}function J(t){return nJ(t,B,e)}function z(e){switch(e.kind){case 224:case 225:return ce(e,!0);case 226:return de(e,!0);case 356:return function(e){const n=tJ(e.elements,z);return t.updateCommaListExpression(e,n)}(e);case 217:return pe(e,!0);default:return B(e)}}function q(n){switch(n.kind){case 298:return nJ(n,q,e);case 233:return function(n){var i;if(4&((null==(i=null==D?void 0:D.data)?void 0:i.facts)||0)){const e=t.createTempVariable(r,!0);return De().superClassReference=e,t.updateExpressionWithTypeArguments(n,t.createAssignment(e,$B(n.expression,B,U_)),void 0)}return nJ(n,B,e)}(n);default:return B(n)}}function U(e){switch(e.kind){case 210:case 209:return ze(e);default:return B(e)}}function V(e){switch(e.kind){case 176:return Y(e,G,e);case 177:case 178:case 174:return Y(e,Q,e);case 172:return Y(e,te,e);case 175:return Y(e,ve,e);case 167:return K(e);case 240:return e;default:return m_(e)?M(e):B(e)}}function W(e){return 167===e.kind?K(e):B(e)}function H(e){switch(e.kind){case 172:return Z(e);case 177:case 178:return V(e);default:un.assertMissingNode(e,"Expected node to either be a PropertyDeclaration, GetAccessorDeclaration, or SetAccessorDeclaration")}}function K(e){const n=$B(e.expression,B,U_);return t.updateComputedPropertyName(e,function(e){return $(C)&&(ZD(e)?(C.push(e.expression),e=t.updateParenthesizedExpression(e,t.inlineExpressions(C))):(C.push(e),e=t.inlineExpressions(C)),C=void 0),e}(n))}function G(e){return O?xe(e,O):J(e)}function X(e){return!!g||!!(Dv(e)&&32&Yd(e))}function Q(n){if(un.assert(!Ov(n)),!Hl(n)||!X(n))return nJ(n,V,e);const r=je(n.name);if(un.assert(r,"Undeclared private name for property declaration."),!r.isValid)return n;const i=function(e){un.assert(qN(e.name));const t=je(e.name);if(un.assert(t,"Undeclared private name for property declaration."),"m"===t.kind)return t.methodName;if("a"===t.kind){if(wu(e))return t.getterName;if(Cu(e))return t.setterName}}(n);i&&Ee().push(t.createAssignment(i,t.createFunctionExpression(N(n.modifiers,(e=>Yl(e)&&!GN(e)&&!YN(e))),n.asteriskToken,i,void 0,QB(n.parameters,B,e),void 0,ZB(n.body,B,e))))}function Y(e,t,n){if(e!==L){const r=L;L=e;const i=t(n);return L=r,i}return t(n)}function Z(n){return un.assert(!Ov(n),"Decorators should already have been transformed and elided."),Hl(n)?function(n){if(!X(n))return p&&!Nv(n)&&(null==D?void 0:D.data)&&16&D.data.facts?t.updatePropertyDeclaration(n,HB(n.modifiers,B,m_),n.name,void 0,void 0,void 0):(Kh(n,ue)&&(n=Cz(e,n)),t.updatePropertyDeclaration(n,HB(n.modifiers,M,Yl),$B(n.name,W,e_),void 0,void 0,$B(n.initializer,B,U_)));{const e=je(n.name);if(un.assert(e,"Undeclared private name for property declaration."),!e.isValid)return n;if(e.isStatic&&!g){const e=Te(n,t.createThis());if(e)return t.createClassStaticBlockDeclaration(t.createBlock([e],!0))}}}(n):function(e){if(!m||d_(e))return t.updatePropertyDeclaration(e,HB(e.modifiers,M,Yl),$B(e.name,W,e_),void 0,void 0,$B(e.initializer,B,U_));{const n=function(e,n){if(rD(e)){const i=YA(e),o=$B(e.expression,B,U_),a=kl(o),l=RJ(a);if(!(i||nb(a)&&Vl(a.left))&&!l&&n){const n=t.getGeneratedNameForNode(e);return c.hasNodeCheckFlag(e,32768)?s(n):r(n),t.createAssignment(n,o)}return l||zN(a)?void 0:o}}(e.name,!!e.initializer||u);if(n&&Ee().push(...eI(n)),Nv(e)&&!g){const n=Te(e,t.createThis());if(n){const r=t.createClassStaticBlockDeclaration(t.createBlock([n]));return YC(r,e),pw(r,e),pw(n,{pos:-1,end:-1}),mw(n,void 0),yw(n,void 0),r}}}}(n)}function ee(){return-1===h||3===h&&!!(null==D?void 0:D.data)&&!!(16&D.data.facts)}function te(e){return d_(e)&&(ee()||Dv(e)&&32&Yd(e))?function(e){const n=dw(e),i=aw(e),o=e.name;let a=o,s=o;if(rD(o)&&!RJ(o.expression)){const e=YA(o);if(e)a=t.updateComputedPropertyName(o,$B(o.expression,B,U_)),s=t.updateComputedPropertyName(o,e.left);else{const e=t.createTempVariable(r);sw(e,o.expression);const n=$B(o.expression,B,U_),i=t.createAssignment(e,n);sw(i,o.expression),a=t.updateComputedPropertyName(o,i),s=t.updateComputedPropertyName(o,e)}}const c=HB(e.modifiers,M,Yl),l=GA(t,e,c,e.initializer);YC(l,e),nw(l,3072),sw(l,i);const _=Nv(e)?function(){const e=De();return e.classThis??e.classConstructor??(null==O?void 0:O.name)}()??t.createThis():t.createThis(),u=XA(t,e,c,a,_);YC(u,e),pw(u,n),sw(u,i);const d=t.createModifiersFromModifierFlags(Wv(c)),p=QA(t,e,d,s,_);return YC(p,e),nw(p,3072),sw(p,i),KB([l,u,p],H,l_)}(e):Z(e)}function re(e){if(L&&Dv(L)&&u_(L)&&d_(lc(L))){const t=cA(e);110===t.kind&&I.add(t)}}function oe(e,t){return re(t=$B(t,B,U_)),ae(e,t)}function ae(e,t){switch(pw(t,Ib(t,-1)),e.kind){case"a":return n().createClassPrivateFieldGetHelper(t,e.brandCheckIdentifier,e.kind,e.getterName);case"m":return n().createClassPrivateFieldGetHelper(t,e.brandCheckIdentifier,e.kind,e.methodName);case"f":return n().createClassPrivateFieldGetHelper(t,e.brandCheckIdentifier,e.kind,e.isStatic?e.variableName:void 0);case"untransformed":return un.fail("Access helpers should not be created for untransformed private elements");default:un.assertNever(e,"Unknown private element type")}}function ce(n,i){if(46===n.operator||47===n.operator){const e=oh(n.operand);if(Kl(e)){let o;if(o=je(e.name)){const a=$B(e.expression,B,U_);re(a);const{readExpression:s,initializeExpression:c}=le(a);let l=oe(o,s);const _=aF(n)||i?void 0:t.createTempVariable(r);return l=XP(t,n,l,r,_),l=fe(o,c||s,l,64),YC(l,n),nI(l,n),_&&(l=t.createComma(l,_),nI(l,n)),l}}else if(v&&L&&om(e)&&Iz(L)&&(null==D?void 0:D.data)){const{classConstructor:o,superClassReference:a,facts:s}=D.data;if(1&s){const r=Ne(e);return aF(n)?t.updatePrefixUnaryExpression(n,r):t.updatePostfixUnaryExpression(n,r)}if(o&&a){let s,c;if(HD(e)?zN(e.name)&&(c=s=t.createStringLiteralFromNode(e.name)):RJ(e.argumentExpression)?c=s=e.argumentExpression:(c=t.createTempVariable(r),s=t.createAssignment(c,$B(e.argumentExpression,B,U_))),s&&c){let l=t.createReflectGetCall(a,c,o);nI(l,e);const _=i?void 0:t.createTempVariable(r);return l=XP(t,n,l,r,_),l=t.createReflectSetCall(a,s,l,o),YC(l,n),nI(l,n),_&&(l=t.createComma(l,_),nI(l,n)),l}}}}return nJ(n,B,e)}function le(e){const n=Zh(e)?e:t.cloneNode(e);if(110===e.kind&&I.has(e)&&I.add(n),RJ(e))return{readExpression:n,initializeExpression:void 0};const i=t.createTempVariable(r);return{readExpression:i,initializeExpression:t.createAssignment(i,n)}}function _e(e){if(D&&A.set(lc(e),D),g){if(mz(e)){const t=$B(e.body.statements[0].expression,B,U_);if(nb(t,!0)&&t.left===t.right)return;return t}if(bz(e))return $B(e.body.statements[0].expression,B,U_);o();let n=Y(e,(e=>HB(e,B,du)),e.body.statements);n=t.mergeLexicalEnvironment(n,i());const r=t.createImmediatelyInvokedArrowFunction(n);return YC(oh(r.expression),e),rw(oh(r.expression),4),YC(r,e),nI(r,e),r}}function ue(e){if(pF(e)&&!e.name){const t=WJ(e);return!$(t,bz)&&((g||!!Yd(e))&&$(t,(e=>uD(e)||Hl(e)||m&&$J(e))))}return!1}function de(i,o){if(rb(i)){const e=C;C=void 0,i=t.updateBinaryExpression(i,$B(i.left,U,U_),i.operatorToken,$B(i.right,B,U_));const n=$(C)?t.inlineExpressions(ne([...C,i])):i;return C=e,n}if(nb(i)){Kh(i,ue)&&(i=Cz(e,i),un.assertNode(i,nb));const n=cA(i.left,9);if(Kl(n)){const e=je(n.name);if(e)return nI(YC(fe(e,n.expression,i.right,i.operatorToken.kind),i),i)}else if(v&&L&&om(i.left)&&Iz(L)&&(null==D?void 0:D.data)){const{classConstructor:e,superClassReference:n,facts:a}=D.data;if(1&a)return t.updateBinaryExpression(i,Ne(i.left),i.operatorToken,$B(i.right,B,U_));if(e&&n){let a=KD(i.left)?$B(i.left.argumentExpression,B,U_):zN(i.left.name)?t.createStringLiteralFromNode(i.left.name):void 0;if(a){let s=$B(i.right,B,U_);if(MJ(i.operatorToken.kind)){let o=a;RJ(a)||(o=t.createTempVariable(r),a=t.createAssignment(o,a));const c=t.createReflectGetCall(n,o,e);YC(c,i.left),nI(c,i.left),s=t.createBinaryExpression(c,BJ(i.operatorToken.kind),s),nI(s,i)}const c=o?void 0:t.createTempVariable(r);return c&&(s=t.createAssignment(c,s),nI(c,i)),s=t.createReflectSetCall(n,a,s,e),YC(s,i),nI(s,i),c&&(s=t.createComma(s,c),nI(s,i)),s}}}}return function(e){return qN(e.left)&&103===e.operatorToken.kind}(i)?function(t){const r=je(t.left);if(r){const e=$B(t.right,B,U_);return YC(n().createClassPrivateFieldInHelper(r.brandCheckIdentifier,e),t)}return nJ(t,B,e)}(i):nJ(i,B,e)}function pe(e,n){const r=n?z:B,i=$B(e.expression,r,U_);return t.updateParenthesizedExpression(e,i)}function fe(e,r,i,o){if(r=$B(r,B,U_),i=$B(i,B,U_),re(r),MJ(o)){const{readExpression:n,initializeExpression:a}=le(r);r=a||n,i=t.createBinaryExpression(ae(e,n),BJ(o),i)}switch(pw(r,Ib(r,-1)),e.kind){case"a":return n().createClassPrivateFieldSetHelper(r,e.brandCheckIdentifier,i,e.kind,e.setterName);case"m":return n().createClassPrivateFieldSetHelper(r,e.brandCheckIdentifier,i,e.kind,void 0);case"f":return n().createClassPrivateFieldSetHelper(r,e.brandCheckIdentifier,i,e.kind,e.isStatic?e.variableName:void 0);case"untransformed":return un.fail("Access helpers should not be created for untransformed private elements");default:un.assertNever(e,"Unknown private element type")}}function me(e){return N(e.members,HJ)}function ge(n,r){var i;const o=O,a=C,s=D;O=n,C=void 0,D={previous:D,data:void 0};const l=32&Yd(n);if(g||l){const e=Tc(n);if(e&&zN(e))Fe().data.className=e;else if((null==(i=n.emitNode)?void 0:i.assignedName)&&TN(n.emitNode.assignedName))if(n.emitNode.assignedName.textSourceNode&&zN(n.emitNode.assignedName.textSourceNode))Fe().data.className=n.emitNode.assignedName.textSourceNode;else if(fs(n.emitNode.assignedName.text,_)){const e=t.createIdentifier(n.emitNode.assignedName.text);Fe().data.className=e}}if(g){const e=me(n);$(e)&&(Fe().data.weakSetName=Oe("instances",e[0].name))}const u=function(e){var t;let n=0;const r=lc(e);__(r)&&mm(d,r)&&(n|=1),g&&(gz(e)||xz(e))&&(n|=2);let i=!1,o=!1,a=!1,s=!1;for(const r of e.members)Nv(r)?(r.name&&(qN(r.name)||d_(r))&&g?n|=2:!d_(r)||-1!==h||e.name||(null==(t=e.emitNode)?void 0:t.classThis)||(n|=2),(cD(r)||uD(r))&&(y&&16384&r.transformFlags&&(n|=8,1&n||(n|=2)),v&&134217728&r.transformFlags&&(1&n||(n|=6)))):Ev(lc(r))||(d_(r)?(s=!0,a||(a=Hl(r))):Hl(r)?(a=!0,c.hasNodeCheckFlag(r,262144)&&(n|=2)):cD(r)&&(i=!0,o||(o=!!r.initializer)));return(f&&i||p&&o||g&&a||g&&s&&-1===h)&&(n|=16),n}(n);u&&(De().facts=u),8&u&&(2&P||(P|=2,e.enableSubstitution(110),e.enableEmitNotification(262),e.enableEmitNotification(218),e.enableEmitNotification(176),e.enableEmitNotification(177),e.enableEmitNotification(178),e.enableEmitNotification(174),e.enableEmitNotification(172),e.enableEmitNotification(167)));const m=r(n,u);return D=null==D?void 0:D.previous,un.assert(D===s),O=o,C=a,m}function he(e,n){var i,o;let a;if(2&n)if(g&&(null==(i=e.emitNode)?void 0:i.classThis))De().classConstructor=e.emitNode.classThis,a=t.createAssignment(e.emitNode.classThis,t.getInternalName(e));else{const n=t.createTempVariable(r,!0);De().classConstructor=t.cloneNode(n),a=t.createAssignment(n,t.getInternalName(e))}(null==(o=e.emitNode)?void 0:o.classThis)&&(De().classThis=e.emitNode.classThis);const s=c.hasNodeCheckFlag(e,262144),l=wv(e,32),_=wv(e,2048);let u=HB(e.modifiers,M,Yl);const d=HB(e.heritageClauses,q,jE),{members:f,prologue:m}=be(e),h=[];if(a&&Ee().unshift(a),$(C)&&h.push(t.createExpressionStatement(t.inlineExpressions(C))),p||g||32&Yd(e)){const n=WJ(e);$(n)&&Se(h,n,t.getInternalName(e))}h.length>0&&l&&_&&(u=HB(u,(e=>VA(e)?void 0:e),Yl),h.push(t.createExportAssignment(void 0,!1,t.getLocalName(e,!1,!0))));const y=De().classConstructor;s&&y&&(we(),T[TJ(e)]=y);const v=t.updateClassDeclaration(e,u,e.name,void 0,d,f);return h.unshift(v),m&&h.unshift(t.createExpressionStatement(m)),h}function ye(e,n){var i,o,a;const l=!!(1&n),_=WJ(e),u=c.hasNodeCheckFlag(e,262144),d=c.hasNodeCheckFlag(e,32768);let p;function f(){var n;if(g&&(null==(n=e.emitNode)?void 0:n.classThis))return De().classConstructor=e.emitNode.classThis;const i=t.createTempVariable(d?s:r,!0);return De().classConstructor=t.cloneNode(i),i}(null==(i=e.emitNode)?void 0:i.classThis)&&(De().classThis=e.emitNode.classThis),2&n&&(p??(p=f()));const h=HB(e.modifiers,M,Yl),y=HB(e.heritageClauses,q,jE),{members:v,prologue:b}=be(e),x=t.updateClassExpression(e,h,e.name,void 0,y,v),k=[];if(b&&k.push(b),(g||32&Yd(e))&&$(_,(e=>uD(e)||Hl(e)||m&&$J(e)))||$(C))if(l)un.assertIsDefined(w,"Decorated classes transformed by TypeScript are expected to be within a variable declaration."),$(C)&&se(w,E(C,t.createExpressionStatement)),$(_)&&Se(w,_,(null==(o=e.emitNode)?void 0:o.classThis)??t.getInternalName(e)),p?k.push(t.createAssignment(p,x)):g&&(null==(a=e.emitNode)?void 0:a.classThis)?k.push(t.createAssignment(e.emitNode.classThis,x)):k.push(x);else{if(p??(p=f()),u){we();const n=t.cloneNode(p);n.emitNode.autoGenerate.flags&=-9,T[TJ(e)]=n}k.push(t.createAssignment(p,x)),se(k,C),se(k,function(e,t){const n=[];for(const r of e){const e=uD(r)?Y(r,_e,r):Y(r,(()=>Ce(r,t)),void 0);e&&(_A(e),YC(e,r),rw(e,3072&Qd(r)),sw(e,Lb(r)),pw(e,r),n.push(e))}return n}(_,p)),k.push(t.cloneNode(p))}else k.push(x);return k.length>1&&(rw(x,131072),k.forEach(_A)),t.inlineExpressions(k)}function ve(t){if(!g)return nJ(t,B,e)}function be(e){const n=!!(32&Yd(e));if(g||F){for(const t of e.members)Hl(t)&&(X(t)?Ie(t,t.name,Pe):ez(Fe(),t.name,{kind:"untransformed"}));if(g&&$(me(e))&&function(){const{weakSetName:e}=Fe().data;un.assert(e,"weakSetName should be set in private identifier environment"),Ee().push(t.createAssignment(e,t.createNewExpression(t.createIdentifier("WeakSet"),void 0,[])))}(),ee())for(const r of e.members)if(d_(r)){const e=t.getGeneratedPrivateNameForNode(r.name,void 0,"_accessor_storage");g||n&&Dv(r)?Ie(r,e,Ae):ez(Fe(),e,{kind:"untransformed"})}}let i,o,a,s=HB(e.members,V,l_);if($(s,dD)||(i=xe(void 0,e)),!g&&$(C)){let e=t.createExpressionStatement(t.inlineExpressions(C));if(134234112&e.transformFlags){const n=t.createTempVariable(r),i=t.createArrowFunction(void 0,void 0,[],void 0,void 0,t.createBlock([e]));o=t.createAssignment(n,i),e=t.createExpressionStatement(t.createCallExpression(n,void 0,[]))}const n=t.createBlock([e]);a=t.createClassStaticBlockDeclaration(n),C=void 0}if(i||a){let n;const r=b(s,mz),o=b(s,bz);n=ie(n,r),n=ie(n,o),n=ie(n,i),n=ie(n,a),n=se(n,r||o?N(s,(e=>e!==r&&e!==o)):s),s=nI(t.createNodeArray(n),e.members)}return{members:s,prologue:o}}function xe(n,r){if(n=$B(n,B,dD),!((null==D?void 0:D.data)&&16&D.data.facts))return n;const o=hh(r),s=!(!o||106===cA(o.expression).kind),c=QB(n?n.parameters:void 0,B,e),l=function(n,r,o){var s;const c=UJ(n,!1,!1);let l=c;u||(l=N(l,(e=>!!e.initializer||qN(e.name)||Av(e))));const _=me(n),d=$(l)||$(_);if(!r&&!d)return ZB(void 0,B,e);a();const p=!r&&o;let f=0,m=[];const h=[],y=t.createThis();if(function(e,n,r){if(!g||!$(n))return;const{weakSetName:i}=Fe().data;un.assert(i,"weakSetName should be set in private identifier environment"),e.push(t.createExpressionStatement(function(e,t,n){return e.createCallExpression(e.createPropertyAccessExpression(n,"add"),void 0,[t])}(t,r,i)))}(h,_,y),r){const e=N(c,(e=>Ys(lc(e),r))),t=N(l,(e=>!Ys(lc(e),r)));Se(h,e,y),Se(h,t,y)}else Se(h,l,y);if(null==r?void 0:r.body){f=t.copyPrologue(r.body.statements,m,!1,B);const e=qJ(r.body.statements,f);if(e.length)ke(m,r.body.statements,f,e,0,h,r);else{for(;f=m.length?r.body.multiLine??m.length>0:m.length>0;return nI(t.createBlock(nI(t.createNodeArray(m),(null==(s=null==r?void 0:r.body)?void 0:s.statements)??n.members),v),null==r?void 0:r.body)}(r,n,s);return l?n?(un.assert(c),t.updateConstructorDeclaration(n,void 0,c,l)):_A(YC(nI(t.createConstructorDeclaration(void 0,c??[],l),n||r),n)):n}function ke(e,n,r,i,o,a,s){const c=i[o],l=n[c];if(se(e,HB(n,B,du,r,c-r)),r=c+1,qF(l)){const n=[];ke(n,l.tryBlock.statements,0,i,o+1,a,s),nI(t.createNodeArray(n),l.tryBlock.statements),e.push(t.updateTryStatement(l,t.updateBlock(l.tryBlock,n),$B(l.catchClause,B,RE),$B(l.finallyBlock,B,CF)))}else{for(se(e,HB(n,B,du,c,1));rl(e,p,t),serializeTypeOfNode:(e,t,n)=>l(e,_,t,n),serializeParameterTypesOfNode:(e,t,n)=>l(e,u,t,n),serializeReturnTypeOfNode:(e,t)=>l(e,d,t)};function l(e,t,n,r){const i=s,o=c;s=e.currentLexicalScope,c=e.currentNameScope;const a=void 0===r?t(n):t(n,r);return s=i,c=o,a}function _(e,n){switch(e.kind){case 172:case 169:return p(e.type);case 178:case 177:return p(function(e,t){const n=dv(t.members,e);return n.setAccessor&&ov(n.setAccessor)||n.getAccessor&&mv(n.getAccessor)}(e,n));case 263:case 231:case 174:return t.createIdentifier("Function");default:return t.createVoidZero()}}function u(e,n){const r=__(e)?rv(e):n_(e)&&wd(e.body)?e:void 0,i=[];if(r){const e=function(e,t){if(t&&177===e.kind){const{setAccessor:n}=dv(t.members,e);if(n)return n.parameters}return e.parameters}(r,n),t=e.length;for(let r=0;re.parent&&PD(e.parent)&&(e.parent.trueType===e||e.parent.falseType===e))))return t.createIdentifier("Object");const r=y(e.typeName),o=t.createTempVariable(n);return t.createConditionalExpression(t.createTypeCheck(t.createAssignment(o,r),"function"),void 0,o,void 0,t.createIdentifier("Object"));case 1:return v(e.typeName);case 2:return t.createVoidZero();case 4:return b("BigInt",7);case 6:return t.createIdentifier("Boolean");case 3:return t.createIdentifier("Number");case 5:return t.createIdentifier("String");case 7:return t.createIdentifier("Array");case 8:return b("Symbol",2);case 10:return t.createIdentifier("Function");case 9:return t.createIdentifier("Promise");case 11:return t.createIdentifier("Object");default:return un.assertNever(i)}}(e);case 193:return m(e.types,!0);case 192:return m(e.types,!1);case 194:return m([e.trueType,e.falseType],!1);case 198:if(148===e.operator)return p(e.type);break;case 186:case 199:case 200:case 187:case 133:case 159:case 197:case 205:case 312:case 313:case 317:case 318:case 319:break;case 314:case 315:case 316:return p(e.type);default:return un.failBadSyntaxKind(e)}return t.createIdentifier("Object")}function f(e){switch(e.kind){case 11:case 15:return t.createIdentifier("String");case 224:{const t=e.operand;switch(t.kind){case 9:case 10:return f(t);default:return un.failBadSyntaxKind(t)}}case 9:return t.createIdentifier("Number");case 10:return b("BigInt",7);case 112:case 97:return t.createIdentifier("Boolean");case 106:return t.createVoidZero();default:return un.failBadSyntaxKind(e)}}function m(e,n){let r;for(let i of e){if(i=ih(i),146===i.kind){if(n)return t.createVoidZero();continue}if(159===i.kind){if(!n)return t.createIdentifier("Object");continue}if(133===i.kind)return t.createIdentifier("Object");if(!a&&(MD(i)&&106===i.literal.kind||157===i.kind))continue;const e=p(i);if(zN(e)&&"Object"===e.escapedText)return e;if(r){if(!g(r,e))return t.createIdentifier("Object")}else r=e}return r??t.createVoidZero()}function g(e,t){return Vl(e)?Vl(t):zN(e)?zN(t)&&e.escapedText===t.escapedText:HD(e)?HD(t)&&g(e.expression,t.expression)&&g(e.name,t.name):iF(e)?iF(t)&&kN(e.expression)&&"0"===e.expression.text&&kN(t.expression)&&"0"===t.expression.text:TN(e)?TN(t)&&e.text===t.text:rF(e)?rF(t)&&g(e.expression,t.expression):ZD(e)?ZD(t)&&g(e.expression,t.expression):lF(e)?lF(t)&&g(e.condition,t.condition)&&g(e.whenTrue,t.whenTrue)&&g(e.whenFalse,t.whenFalse):!!cF(e)&&cF(t)&&e.operatorToken.kind===t.operatorToken.kind&&g(e.left,t.left)&&g(e.right,t.right)}function h(e,n){return t.createLogicalAnd(t.createStrictInequality(t.createTypeOfExpression(e),t.createStringLiteral("undefined")),n)}function y(e){if(80===e.kind){const t=v(e);return h(t,t)}if(80===e.left.kind)return h(v(e.left),v(e));const r=y(e.left),i=t.createTempVariable(n);return t.createLogicalAnd(t.createLogicalAnd(r.left,t.createStrictInequality(t.createAssignment(i,r.right),t.createVoidZero())),t.createPropertyAccessExpression(i,e.right))}function v(e){switch(e.kind){case 80:const n=wT(nI(aI.cloneNode(e),e),e.parent);return n.original=void 0,wT(n,dc(s)),n;case 166:return function(e){return t.createPropertyAccessExpression(v(e.left),e.right)}(e)}}function b(e,n){return oVA(e)||aD(e)?void 0:e),m_),f=Lb(o),m=function(n){if(i.hasNodeCheckFlag(n,262144)){c||(e.enableSubstitution(80),c=[]);const i=t.createUniqueName(n.name&&!Vl(n.name)?mc(n.name):"default");return c[TJ(n)]=i,r(i),i}}(o),h=a<2?t.getInternalName(o,!1,!0):t.getLocalName(o,!1,!0),y=HB(o.heritageClauses,_,jE);let v=HB(o.members,_,l_),b=[];({members:v,decorationStatements:b}=p(o,v));const x=a>=9&&!!m&&$(v,(e=>cD(e)&&wv(e,256)||uD(e)));x&&(v=nI(t.createNodeArray([t.createClassStaticBlockDeclaration(t.createBlock([t.createExpressionStatement(t.createAssignment(m,t.createThis()))])),...v]),v));const k=t.createClassExpression(d,s&&Vl(s)?void 0:s,void 0,y,v);YC(k,o),nI(k,f);const S=m&&!x?t.createAssignment(m,k):k,T=t.createVariableDeclaration(h,void 0,void 0,S);YC(T,o);const C=t.createVariableDeclarationList([T],1),w=t.createVariableStatement(void 0,C);YC(w,o),nI(w,f),pw(w,o);const N=[w];if(se(N,b),function(e,r){const i=function(e){const r=g(GJ(e,!0));if(!r)return;const i=c&&c[TJ(e)],o=a<2?t.getInternalName(e,!1,!0):t.getDeclarationName(e,!1,!0),s=n().createDecorateHelper(r,o),l=t.createAssignment(o,i?t.createAssignment(i,s):s);return nw(l,3072),sw(l,Lb(e)),l}(r);i&&e.push(YC(t.createExpressionStatement(i),r))}(N,o),l)if(u){const e=t.createExportDefault(h);N.push(e)}else{const e=t.createExternalModuleExport(t.getDeclarationName(o));N.push(e)}return N}(o,o.name):function(e,n){const r=HB(e.modifiers,l,Yl),i=HB(e.heritageClauses,_,jE);let o=HB(e.members,_,l_),a=[];({members:o,decorationStatements:a}=p(e,o));return se([t.updateClassDeclaration(e,r,n,void 0,i,o)],a)}(o,o.name);return ke(s)}(o);case 231:return function(e){return t.updateClassExpression(e,HB(e.modifiers,l,Yl),e.name,void 0,HB(e.heritageClauses,_,jE),HB(e.members,_,l_))}(o);case 176:return function(e){return t.updateConstructorDeclaration(e,HB(e.modifiers,l,Yl),HB(e.parameters,_,oD),$B(e.body,_,CF))}(o);case 174:return function(e){return f(t.updateMethodDeclaration(e,HB(e.modifiers,l,Yl),e.asteriskToken,un.checkDefined($B(e.name,_,e_)),void 0,void 0,HB(e.parameters,_,oD),void 0,$B(e.body,_,CF)),e)}(o);case 178:return function(e){return f(t.updateSetAccessorDeclaration(e,HB(e.modifiers,l,Yl),un.checkDefined($B(e.name,_,e_)),HB(e.parameters,_,oD),$B(e.body,_,CF)),e)}(o);case 177:return function(e){return f(t.updateGetAccessorDeclaration(e,HB(e.modifiers,l,Yl),un.checkDefined($B(e.name,_,e_)),HB(e.parameters,_,oD),void 0,$B(e.body,_,CF)),e)}(o);case 172:return function(e){if(!(33554432&e.flags||wv(e,128)))return f(t.updatePropertyDeclaration(e,HB(e.modifiers,l,Yl),un.checkDefined($B(e.name,_,e_)),void 0,void 0,$B(e.initializer,_,U_)),e)}(o);case 169:return function(e){const n=t.updateParameterDeclaration(e,WA(t,e.modifiers),e.dotDotDotToken,un.checkDefined($B(e.name,_,t_)),void 0,void 0,$B(e.initializer,_,U_));return n!==e&&(pw(n,e),nI(n,Lb(e)),sw(n,Lb(e)),nw(n.name,64)),n}(o);default:return nJ(o,_,e)}}function u(e){return!!(536870912&e.transformFlags)}function d(e){return $(e,u)}function p(e,n){let r=[];return h(r,e,!1),h(r,e,!0),function(e){for(const t of e.members){if(!iI(t))continue;const n=XJ(t,e,!0);if($(null==n?void 0:n.decorators,u))return!0;if($(null==n?void 0:n.parameters,d))return!0}return!1}(e)&&(n=nI(t.createNodeArray([...n,t.createClassStaticBlockDeclaration(t.createBlock(r,!0))]),n),r=void 0),{decorationStatements:r,members:n}}function f(e,t){return e!==t&&(pw(e,t),sw(e,Lb(t))),e}function m(e){return xN(e.expression,"___metadata")}function g(e){if(!e)return;const{false:t,true:n}=ze(e.decorators,m),r=[];return se(r,E(t,v)),se(r,O(e.parameters,b)),se(r,E(n,v)),r}function h(e,n,r){se(e,E(function(e,t){const n=function(e,t){return N(e.members,(n=>{return i=t,pm(!0,r=n,e)&&i===Nv(r);var r,i}))}(e,t);let r;for(const t of n)r=ie(r,y(e,t));return r}(n,r),(e=>t.createExpressionStatement(e))))}function y(e,r){const i=g(XJ(r,e,!0));if(!i)return;const o=function(e,n){return Nv(n)?t.getDeclarationName(e):function(e){return t.createPropertyAccessExpression(t.getDeclarationName(e),"prototype")}(e)}(e,r),a=function(e,n){const r=e.name;return qN(r)?t.createIdentifier(""):rD(r)?n&&!RJ(r.expression)?t.getGeneratedNameForNode(r):r.expression:zN(r)?t.createStringLiteral(mc(r)):t.cloneNode(r)}(r,!wv(r,128)),s=cD(r)&&!Av(r)?t.createVoidZero():t.createNull(),c=n().createDecorateHelper(i,o,a,s);return nw(c,3072),sw(c,Lb(r)),c}function v(e){return un.checkDefined($B(e.expression,_,U_))}function b(e,t){let r;if(e){r=[];for(const i of e){const e=n().createParamHelper(v(i),t);nI(e,i.expression),nw(e,3072),r.push(e)}}return r}}function jz(e){const{factory:t,getEmitHelperFactory:n,startLexicalEnvironment:r,endLexicalEnvironment:i,hoistVariableDeclaration:o}=e,a=hk(e.getCompilerOptions());let s,c,l,_,u,d;return NJ(e,(function(t){s=void 0,d=!1;const n=nJ(t,b,e);return Tw(n,e.readEmitHelpers()),d&&(ow(n,32),d=!1),n}));function p(){switch(c=void 0,l=void 0,_=void 0,null==s?void 0:s.kind){case"class":c=s.classInfo;break;case"class-element":c=s.next.classInfo,l=s.classThis,_=s.classSuper;break;case"name":const e=s.next.next.next;"class-element"===(null==e?void 0:e.kind)&&(c=e.next.classInfo,l=e.classThis,_=e.classSuper)}}function f(e){s={kind:"class",next:s,classInfo:e,savedPendingExpressions:u},u=void 0,p()}function m(){un.assert("class"===(null==s?void 0:s.kind),"Incorrect value for top.kind.",(()=>`Expected top.kind to be 'class' but got '${null==s?void 0:s.kind}' instead.`)),u=s.savedPendingExpressions,s=s.next,p()}function g(e){var t,n;un.assert("class"===(null==s?void 0:s.kind),"Incorrect value for top.kind.",(()=>`Expected top.kind to be 'class' but got '${null==s?void 0:s.kind}' instead.`)),s={kind:"class-element",next:s},(uD(e)||cD(e)&&Dv(e))&&(s.classThis=null==(t=s.next.classInfo)?void 0:t.classThis,s.classSuper=null==(n=s.next.classInfo)?void 0:n.classSuper),p()}function h(){var e;un.assert("class-element"===(null==s?void 0:s.kind),"Incorrect value for top.kind.",(()=>`Expected top.kind to be 'class-element' but got '${null==s?void 0:s.kind}' instead.`)),un.assert("class"===(null==(e=s.next)?void 0:e.kind),"Incorrect value for top.next.kind.",(()=>{var e;return`Expected top.next.kind to be 'class' but got '${null==(e=s.next)?void 0:e.kind}' instead.`})),s=s.next,p()}function y(){un.assert("class-element"===(null==s?void 0:s.kind),"Incorrect value for top.kind.",(()=>`Expected top.kind to be 'class-element' but got '${null==s?void 0:s.kind}' instead.`)),s={kind:"name",next:s},p()}function v(){un.assert("name"===(null==s?void 0:s.kind),"Incorrect value for top.kind.",(()=>`Expected top.kind to be 'name' but got '${null==s?void 0:s.kind}' instead.`)),s=s.next,p()}function b(n){if(!function(e){return!!(33554432&e.transformFlags)||!!l&&!!(16384&e.transformFlags)||!!l&&!!_&&!!(134217728&e.transformFlags)}(n))return n;switch(n.kind){case 170:return un.fail("Use `modifierVisitor` instead.");case 263:return function(n){if(D(n)){const r=[],i=lc(n,__)??n,o=i.name?t.createStringLiteralFromNode(i.name):t.createStringLiteral("default"),a=wv(n,32),s=wv(n,2048);if(n.name||(n=Sz(e,n,o)),a&&s){const e=N(n);if(n.name){const i=t.createVariableDeclaration(t.getLocalName(n),void 0,void 0,e);YC(i,n);const o=t.createVariableDeclarationList([i],1),a=t.createVariableStatement(void 0,o);r.push(a);const s=t.createExportDefault(t.getDeclarationName(n));YC(s,n),pw(s,dw(n)),sw(s,Ob(n)),r.push(s)}else{const i=t.createExportDefault(e);YC(i,n),pw(i,dw(n)),sw(i,Ob(n)),r.push(i)}}else{un.assertIsDefined(n.name,"A class declaration that is not a default export must have a name.");const e=N(n),i=a?e=>UN(e)?void 0:k(e):k,o=HB(n.modifiers,i,Yl),s=t.getLocalName(n,!1,!0),c=t.createVariableDeclaration(s,void 0,void 0,e);YC(c,n);const l=t.createVariableDeclarationList([c],1),_=t.createVariableStatement(o,l);if(YC(_,n),pw(_,dw(n)),r.push(_),a){const e=t.createExternalModuleExport(s);YC(e,n),r.push(e)}}return ke(r)}{const e=HB(n.modifiers,k,Yl),r=HB(n.heritageClauses,b,jE);f(void 0);const i=HB(n.members,S,l_);return m(),t.updateClassDeclaration(n,e,n.name,void 0,r,i)}}(n);case 231:return function(e){if(D(e)){const t=N(e);return YC(t,e),t}{const n=HB(e.modifiers,k,Yl),r=HB(e.heritageClauses,b,jE);f(void 0);const i=HB(e.members,S,l_);return m(),t.updateClassExpression(e,n,e.name,void 0,r,i)}}(n);case 176:case 172:case 175:return un.fail("Not supported outside of a class. Use 'classElementVisitor' instead.");case 169:return function(n){Kh(n,O)&&(n=Cz(e,n,L(n.initializer)));const r=t.updateParameterDeclaration(n,void 0,n.dotDotDotToken,$B(n.name,b,t_),void 0,void 0,$B(n.initializer,b,U_));return r!==n&&(pw(r,n),nI(r,Lb(n)),sw(r,Lb(n)),nw(r.name,64)),r}(n);case 226:return j(n,!1);case 303:case 260:case 208:return function(t){return Kh(t,O)&&(t=Cz(e,t,L(t.initializer))),nJ(t,b,e)}(n);case 277:return function(t){return Kh(t,O)&&(t=Cz(e,t,L(t.expression))),nJ(t,b,e)}(n);case 110:return function(e){return l??e}(n);case 248:return function(n){return t.updateForStatement(n,$B(n.initializer,T,Z_),$B(n.condition,b,U_),$B(n.incrementor,T,U_),eJ(n.statement,b,e))}(n);case 244:return function(t){return nJ(t,T,e)}(n);case 356:return M(n,!1);case 217:return H(n,!1);case 355:return function(e){const n=b,r=$B(e.expression,n,U_);return t.updatePartiallyEmittedExpression(e,r)}(n);case 213:return function(n){if(om(n.expression)&&l){const e=$B(n.expression,b,U_),r=HB(n.arguments,b,U_),i=t.createFunctionCallCall(e,l,r);return YC(i,n),nI(i,n),i}return nJ(n,b,e)}(n);case 215:return function(n){if(om(n.tag)&&l){const e=$B(n.tag,b,U_),r=t.createFunctionBindCall(e,l,[]);YC(r,n),nI(r,n);const i=$B(n.template,b,j_);return t.updateTaggedTemplateExpression(n,r,void 0,i)}return nJ(n,b,e)}(n);case 224:case 225:return R(n,!1);case 211:return function(n){if(om(n)&&zN(n.name)&&l&&_){const e=t.createStringLiteralFromNode(n.name),r=t.createReflectGetCall(_,e,l);return YC(r,n.expression),nI(r,n.expression),r}return nJ(n,b,e)}(n);case 212:return function(n){if(om(n)&&l&&_){const e=$B(n.argumentExpression,b,U_),r=t.createReflectGetCall(_,e,l);return YC(r,n.expression),nI(r,n.expression),r}return nJ(n,b,e)}(n);case 167:return J(n);case 174:case 178:case 177:case 218:case 262:{"other"===(null==s?void 0:s.kind)?(un.assert(!u),s.depth++):(s={kind:"other",next:s,depth:0,savedPendingExpressions:u},u=void 0,p());const t=nJ(n,x,e);return un.assert("other"===(null==s?void 0:s.kind),"Incorrect value for top.kind.",(()=>`Expected top.kind to be 'other' but got '${null==s?void 0:s.kind}' instead.`)),s.depth>0?(un.assert(!u),s.depth--):(u=s.savedPendingExpressions,s=s.next,p()),t}default:return nJ(n,x,e)}}function x(e){if(170!==e.kind)return b(e)}function k(e){if(170!==e.kind)return e}function S(a){switch(a.kind){case 176:return function(e){g(e);const n=HB(e.modifiers,k,Yl),r=HB(e.parameters,b,oD);let i;if(e.body&&c){const n=F(c.class,c);if(n){const r=[],o=t.copyPrologue(e.body.statements,r,!1,b),a=qJ(e.body.statements,o);a.length>0?P(r,e.body.statements,o,a,0,n):(se(r,n),se(r,HB(e.body.statements,b,du))),i=t.createBlock(r,!0),YC(i,e.body),nI(i,e.body)}}return i??(i=$B(e.body,b,CF)),h(),t.updateConstructorDeclaration(e,n,r,i)}(a);case 174:return function(e){g(e);const{modifiers:n,name:r,descriptorName:i}=I(e,c,ee);if(i)return h(),A(function(e,n,r){return e=HB(e,(e=>GN(e)?e:void 0),Yl),t.createGetAccessorDeclaration(e,n,[],void 0,t.createBlock([t.createReturnStatement(t.createPropertyAccessExpression(r,t.createIdentifier("value")))]))}(n,r,i),e);{const i=HB(e.parameters,b,oD),o=$B(e.body,b,CF);return h(),A(t.updateMethodDeclaration(e,n,e.asteriskToken,r,void 0,void 0,i,void 0,o),e)}}(a);case 177:return function(e){g(e);const{modifiers:n,name:r,descriptorName:i}=I(e,c,te);if(i)return h(),A(oe(n,r,i),e);{const i=HB(e.parameters,b,oD),o=$B(e.body,b,CF);return h(),A(t.updateGetAccessorDeclaration(e,n,r,i,void 0,o),e)}}(a);case 178:return function(e){g(e);const{modifiers:n,name:r,descriptorName:i}=I(e,c,ne);if(i)return h(),A(ae(n,r,i),e);{const i=HB(e.parameters,b,oD),o=$B(e.body,b,CF);return h(),A(t.updateSetAccessorDeclaration(e,n,r,i,o),e)}}(a);case 172:return function(a){Kh(a,O)&&(a=Cz(e,a,L(a.initializer))),g(a),un.assert(!hp(a),"Not yet implemented.");const{modifiers:s,name:l,initializersName:_,extraInitializersName:u,descriptorName:d,thisArg:p}=I(a,c,Av(a)?re:void 0);r();let f=$B(a.initializer,b,U_);_&&(f=n().createRunInitializersHelper(p??t.createThis(),_,f??t.createVoidZero())),Nv(a)&&c&&f&&(c.hasStaticInitializers=!0);const m=i();if($(m)&&(f=t.createImmediatelyInvokedArrowFunction([...m,t.createReturnStatement(f)])),c&&(Nv(a)?(f=X(c,!0,f),u&&(c.pendingStaticInitializers??(c.pendingStaticInitializers=[]),c.pendingStaticInitializers.push(n().createRunInitializersHelper(c.classThis??t.createThis(),u)))):(f=X(c,!1,f),u&&(c.pendingInstanceInitializers??(c.pendingInstanceInitializers=[]),c.pendingInstanceInitializers.push(n().createRunInitializersHelper(t.createThis(),u))))),h(),Av(a)&&d){const e=dw(a),n=aw(a),r=a.name;let i=r,c=r;if(rD(r)&&!RJ(r.expression)){const e=YA(r);if(e)i=t.updateComputedPropertyName(r,$B(r.expression,b,U_)),c=t.updateComputedPropertyName(r,e.left);else{const e=t.createTempVariable(o);sw(e,r.expression);const n=$B(r.expression,b,U_),a=t.createAssignment(e,n);sw(a,r.expression),i=t.updateComputedPropertyName(r,a),c=t.updateComputedPropertyName(r,e)}}const l=HB(s,(e=>129!==e.kind?e:void 0),Yl),_=GA(t,a,l,f);YC(_,a),nw(_,3072),sw(_,n),sw(_.name,a.name);const u=oe(l,i,d);YC(u,a),pw(u,e),sw(u,n);const p=ae(l,c,d);return YC(p,a),nw(p,3072),sw(p,n),[_,u,p]}return A(t.updatePropertyDeclaration(a,s,l,void 0,void 0,f),a)}(a);case 175:return function(n){let r;if(g(n),bz(n))r=nJ(n,b,e);else if(mz(n)){const t=l;l=void 0,r=nJ(n,b,e),l=t}else if(r=n=nJ(n,b,e),c&&(c.hasStaticInitializers=!0,$(c.pendingStaticInitializers))){const e=[];for(const n of c.pendingStaticInitializers){const r=t.createExpressionStatement(n);sw(r,aw(n)),e.push(r)}const n=t.createBlock(e,!0);r=[t.createClassStaticBlockDeclaration(n),r],c.pendingStaticInitializers=void 0}return h(),r}(a);default:return b(a)}}function T(e){switch(e.kind){case 224:case 225:return R(e,!0);case 226:return j(e,!0);case 356:return M(e,!0);case 217:return H(e,!0);default:return b(e)}}function C(e,n){return t.createUniqueName(`${function(e){let t=e.name&&zN(e.name)&&!Vl(e.name)?mc(e.name):e.name&&qN(e.name)&&!Vl(e.name)?mc(e.name).slice(1):e.name&&TN(e.name)&&fs(e.name.text,99)?e.name.text:__(e)?"class":"member";return wu(e)&&(t=`get_${t}`),Cu(e)&&(t=`set_${t}`),e.name&&qN(e.name)&&(t=`private_${t}`),Nv(e)&&(t=`static_${t}`),"_"+t}(e)}_${n}`,24)}function w(e,n){return t.createVariableStatement(void 0,t.createVariableDeclarationList([t.createVariableDeclaration(e,void 0,void 0,n)],1))}function N(o){r(),!kz(o)&&mm(!1,o)&&(o=Sz(e,o,t.createStringLiteral("")));const a=t.getLocalName(o,!1,!1,!0),s=function(e){const r=t.createUniqueName("_metadata",48);let i,o,a,s,c,l=!1,_=!1,u=!1;if(dm(!1,e)){const n=$(e.members,(e=>(Hl(e)||d_(e))&&Dv(e)));a=t.createUniqueName("_classThis",n?24:48)}for(const r of e.members){if(f_(r)&&pm(!1,r,e))if(Dv(r)){if(!o){o=t.createUniqueName("_staticExtraInitializers",48);const r=n().createRunInitializersHelper(a??t.createThis(),o);sw(r,e.name??Ob(e)),s??(s=[]),s.push(r)}}else{if(!i){i=t.createUniqueName("_instanceExtraInitializers",48);const r=n().createRunInitializersHelper(t.createThis(),i);sw(r,e.name??Ob(e)),c??(c=[]),c.push(r)}i??(i=t.createUniqueName("_instanceExtraInitializers",48))}if(uD(r)?bz(r)||(l=!0):cD(r)&&(Dv(r)?l||(l=!!r.initializer||Ov(r)):_||(_=!hp(r))),(Hl(r)||d_(r))&&Dv(r)&&(u=!0),o&&i&&l&&_&&u)break}return{class:e,classThis:a,metadataReference:r,instanceMethodExtraInitializersName:i,staticMethodExtraInitializersName:o,hasStaticInitializers:l,hasNonAmbientInstanceFields:_,hasStaticPrivateClassElements:u,pendingStaticInitializers:s,pendingInstanceInitializers:c}}(o),c=[];let l,_,p,g,h=!1;const y=Q(GJ(o,!1));y&&(s.classDecoratorsName=t.createUniqueName("_classDecorators",48),s.classDescriptorName=t.createUniqueName("_classDescriptor",48),s.classExtraInitializersName=t.createUniqueName("_classExtraInitializers",48),un.assertIsDefined(s.classThis),c.push(w(s.classDecoratorsName,t.createArrayLiteralExpression(y)),w(s.classDescriptorName),w(s.classExtraInitializersName,t.createArrayLiteralExpression()),w(s.classThis)),s.hasStaticPrivateClassElements&&(h=!0,d=!0));const v=kh(o.heritageClauses,96),x=v&&fe(v.types),k=x&&$B(x.expression,b,U_);if(k){s.classSuper=t.createUniqueName("_classSuper",48);const e=cA(k),n=pF(e)&&!e.name||eF(e)&&!e.name||tF(e)?t.createComma(t.createNumericLiteral(0),k):k;c.push(w(s.classSuper,n));const r=t.updateExpressionWithTypeArguments(x,s.classSuper,void 0),i=t.updateHeritageClause(v,[r]);g=t.createNodeArray([i])}const T=s.classThis??t.createThis();f(s),l=ie(l,function(e,n){const r=t.createVariableDeclaration(e,void 0,void 0,t.createConditionalExpression(t.createLogicalAnd(t.createTypeCheck(t.createIdentifier("Symbol"),"function"),t.createPropertyAccessExpression(t.createIdentifier("Symbol"),"metadata")),t.createToken(58),t.createCallExpression(t.createPropertyAccessExpression(t.createIdentifier("Object"),"create"),void 0,[n?ce(n):t.createNull()]),t.createToken(59),t.createVoidZero()));return t.createVariableStatement(void 0,t.createVariableDeclarationList([r],2))}(s.metadataReference,s.classSuper));let C=o.members;if(C=HB(C,(e=>dD(e)?e:S(e)),l_),C=HB(C,(e=>dD(e)?S(e):e),l_),u){let n;for(let r of u)r=$B(r,(function r(i){return 16384&i.transformFlags?110===i.kind?(n||(n=t.createUniqueName("_outerThis",16),c.unshift(w(n,t.createThis()))),n):nJ(i,r,e):i}),U_),l=ie(l,t.createExpressionStatement(r));u=void 0}if(m(),$(s.pendingInstanceInitializers)&&!rv(o)){const e=F(0,s);if(e){const n=hh(o),r=[];if(n&&106!==cA(n.expression).kind){const e=t.createSpreadElement(t.createIdentifier("arguments")),n=t.createCallExpression(t.createSuper(),void 0,[e]);r.push(t.createExpressionStatement(n))}se(r,e);const i=t.createBlock(r,!0);p=t.createConstructorDeclaration(void 0,[],i)}}if(s.staticMethodExtraInitializersName&&c.push(w(s.staticMethodExtraInitializersName,t.createArrayLiteralExpression())),s.instanceMethodExtraInitializersName&&c.push(w(s.instanceMethodExtraInitializersName,t.createArrayLiteralExpression())),s.memberInfos&&td(s.memberInfos,((e,n)=>{Nv(n)&&(c.push(w(e.memberDecoratorsName)),e.memberInitializersName&&c.push(w(e.memberInitializersName,t.createArrayLiteralExpression())),e.memberExtraInitializersName&&c.push(w(e.memberExtraInitializersName,t.createArrayLiteralExpression())),e.memberDescriptorName&&c.push(w(e.memberDescriptorName)))})),s.memberInfos&&td(s.memberInfos,((e,n)=>{Nv(n)||(c.push(w(e.memberDecoratorsName)),e.memberInitializersName&&c.push(w(e.memberInitializersName,t.createArrayLiteralExpression())),e.memberExtraInitializersName&&c.push(w(e.memberExtraInitializersName,t.createArrayLiteralExpression())),e.memberDescriptorName&&c.push(w(e.memberDescriptorName)))})),l=se(l,s.staticNonFieldDecorationStatements),l=se(l,s.nonStaticNonFieldDecorationStatements),l=se(l,s.staticFieldDecorationStatements),l=se(l,s.nonStaticFieldDecorationStatements),s.classDescriptorName&&s.classDecoratorsName&&s.classExtraInitializersName&&s.classThis){l??(l=[]);const e=t.createPropertyAssignment("value",T),r=t.createObjectLiteralExpression([e]),i=t.createAssignment(s.classDescriptorName,r),c=t.createPropertyAccessExpression(T,"name"),_=n().createESDecorateHelper(t.createNull(),i,s.classDecoratorsName,{kind:"class",name:c,metadata:s.metadataReference},t.createNull(),s.classExtraInitializersName),u=t.createExpressionStatement(_);sw(u,Ob(o)),l.push(u);const d=t.createPropertyAccessExpression(s.classDescriptorName,"value"),p=t.createAssignment(s.classThis,d),f=t.createAssignment(a,p);l.push(t.createExpressionStatement(f))}if(l.push(function(e,n){const r=t.createObjectDefinePropertyCall(e,t.createPropertyAccessExpression(t.createIdentifier("Symbol"),"metadata"),t.createPropertyDescriptor({configurable:!0,writable:!0,enumerable:!0,value:n},!0));return nw(t.createIfStatement(n,t.createExpressionStatement(r)),1)}(T,s.metadataReference)),$(s.pendingStaticInitializers)){for(const e of s.pendingStaticInitializers){const n=t.createExpressionStatement(e);sw(n,aw(e)),_=ie(_,n)}s.pendingStaticInitializers=void 0}if(s.classExtraInitializersName){const e=n().createRunInitializersHelper(T,s.classExtraInitializersName),r=t.createExpressionStatement(e);sw(r,o.name??Ob(o)),_=ie(_,r)}l&&_&&!s.hasStaticInitializers&&(se(l,_),_=void 0);const N=l&&t.createClassStaticBlockDeclaration(t.createBlock(l,!0));N&&h&&iw(N,32);const D=_&&t.createClassStaticBlockDeclaration(t.createBlock(_,!0));if(N||p||D){const e=[],n=C.findIndex(bz);N?(se(e,C,0,n+1),e.push(N),se(e,C,n+1)):se(e,C),p&&e.push(p),D&&e.push(D),C=nI(t.createNodeArray(e),C)}const E=i();let P;if(y){P=t.createClassExpression(void 0,void 0,void 0,g,C),s.classThis&&(P=hz(t,P,s.classThis));const e=t.createVariableDeclaration(a,void 0,void 0,P),n=t.createVariableDeclarationList([e]),r=s.classThis?t.createAssignment(a,s.classThis):a;c.push(t.createVariableStatement(void 0,n),t.createReturnStatement(r))}else P=t.createClassExpression(void 0,o.name,void 0,g,C),c.push(t.createReturnStatement(P));if(h){ow(P,32);for(const e of P.members)(Hl(e)||d_(e))&&Dv(e)&&ow(e,32)}return YC(P,o),t.createImmediatelyInvokedArrowFunction(t.mergeLexicalEnvironment(c,E))}function D(e){return mm(!1,e)||fm(!1,e)}function F(e,n){if($(n.pendingInstanceInitializers)){const e=[];return e.push(t.createExpressionStatement(t.inlineExpressions(n.pendingInstanceInitializers))),n.pendingInstanceInitializers=void 0,e}}function P(e,n,r,i,o,a){const s=i[o],c=n[s];if(se(e,HB(n,b,du,r,s-r)),qF(c)){const n=[];P(n,c.tryBlock.statements,0,i,o+1,a),nI(t.createNodeArray(n),c.tryBlock.statements),e.push(t.updateTryStatement(c,t.updateBlock(c.tryBlock,n),$B(c.catchClause,b,RE),$B(c.finallyBlock,b,CF)))}else se(e,HB(n,b,du,s,1)),se(e,a);se(e,HB(n,b,du,s+1))}function A(e,t){return e!==t&&(pw(e,t),sw(e,Ob(t))),e}function I(e,r,i){let a,s,c,l,_,d;if(!r){const t=HB(e.modifiers,k,Yl);return y(),s=B(e.name),v(),{modifiers:t,referencedName:a,name:s,initializersName:c,descriptorName:d,thisArg:_}}const p=Q(XJ(e,r.class,!1)),f=HB(e.modifiers,k,Yl);if(p){const m=C(e,"decorators"),g=t.createArrayLiteralExpression(p),h=t.createAssignment(m,g),x={memberDecoratorsName:m};r.memberInfos??(r.memberInfos=new Map),r.memberInfos.set(e,x),u??(u=[]),u.push(h);const k=f_(e)||d_(e)?Nv(e)?r.staticNonFieldDecorationStatements??(r.staticNonFieldDecorationStatements=[]):r.nonStaticNonFieldDecorationStatements??(r.nonStaticNonFieldDecorationStatements=[]):cD(e)&&!d_(e)?Nv(e)?r.staticFieldDecorationStatements??(r.staticFieldDecorationStatements=[]):r.nonStaticFieldDecorationStatements??(r.nonStaticFieldDecorationStatements=[]):un.fail(),S=pD(e)?"getter":fD(e)?"setter":_D(e)?"method":d_(e)?"accessor":cD(e)?"field":un.fail();let T;if(zN(e.name)||qN(e.name))T={computed:!1,name:e.name};else if(Jh(e.name))T={computed:!0,name:t.createStringLiteralFromNode(e.name)};else{const r=e.name.expression;Jh(r)&&!zN(r)?T={computed:!0,name:t.createStringLiteralFromNode(r)}:(y(),({referencedName:a,name:s}=function(e){if(Jh(e)||qN(e))return{referencedName:t.createStringLiteralFromNode(e),name:$B(e,b,e_)};if(Jh(e.expression)&&!zN(e.expression))return{referencedName:t.createStringLiteralFromNode(e.expression),name:$B(e,b,e_)};const r=t.getGeneratedNameForNode(e);o(r);const i=n().createPropKeyHelper($B(e.expression,b,U_)),a=t.createAssignment(r,i);return{referencedName:r,name:t.updateComputedPropertyName(e,G(a))}}(e.name)),T={computed:!0,name:a},v())}const w={kind:S,name:T,static:Nv(e),private:qN(e.name),access:{get:cD(e)||pD(e)||_D(e),set:cD(e)||fD(e)},metadata:r.metadataReference};if(f_(e)){const o=Nv(e)?r.staticMethodExtraInitializersName:r.instanceMethodExtraInitializersName;let a;un.assertIsDefined(o),Hl(e)&&i&&(a=i(e,HB(f,(e=>tt(e,WN)),Yl)),x.memberDescriptorName=d=C(e,"descriptor"),a=t.createAssignment(d,a));const s=n().createESDecorateHelper(t.createThis(),a??t.createNull(),m,w,t.createNull(),o),c=t.createExpressionStatement(s);sw(c,Ob(e)),k.push(c)}else if(cD(e)){let o;c=x.memberInitializersName??(x.memberInitializersName=C(e,"initializers")),l=x.memberExtraInitializersName??(x.memberExtraInitializersName=C(e,"extraInitializers")),Nv(e)&&(_=r.classThis),Hl(e)&&Av(e)&&i&&(o=i(e,void 0),x.memberDescriptorName=d=C(e,"descriptor"),o=t.createAssignment(d,o));const a=n().createESDecorateHelper(d_(e)?t.createThis():t.createNull(),o??t.createNull(),m,w,c,l),s=t.createExpressionStatement(a);sw(s,Ob(e)),k.push(s)}}return void 0===s&&(y(),s=B(e.name),v()),$(f)||!_D(e)&&!cD(e)||nw(s,1024),{modifiers:f,referencedName:a,name:s,initializersName:c,extraInitializersName:l,descriptorName:d,thisArg:_}}function O(e){return pF(e)&&!e.name&&D(e)}function L(e){const t=cA(e);return pF(t)&&!t.name&&!mm(!1,t)}function j(n,r){if(rb(n)){const e=W(n.left),r=$B(n.right,b,U_);return t.updateBinaryExpression(n,e,n.operatorToken,r)}if(nb(n)){if(Kh(n,O))return nJ(n=Cz(e,n,L(n.right)),b,e);if(om(n.left)&&l&&_){let e=KD(n.left)?$B(n.left.argumentExpression,b,U_):zN(n.left.name)?t.createStringLiteralFromNode(n.left.name):void 0;if(e){let i=$B(n.right,b,U_);if(MJ(n.operatorToken.kind)){let r=e;RJ(e)||(r=t.createTempVariable(o),e=t.createAssignment(r,e));const a=t.createReflectGetCall(_,r,l);YC(a,n.left),nI(a,n.left),i=t.createBinaryExpression(a,BJ(n.operatorToken.kind),i),nI(i,n)}const a=r?void 0:t.createTempVariable(o);return a&&(i=t.createAssignment(a,i),nI(a,n)),i=t.createReflectSetCall(_,e,i,l),YC(i,n),nI(i,n),a&&(i=t.createComma(i,a),nI(i,n)),i}}}if(28===n.operatorToken.kind){const e=$B(n.left,T,U_),i=$B(n.right,r?T:b,U_);return t.updateBinaryExpression(n,e,n.operatorToken,i)}return nJ(n,b,e)}function R(n,r){if(46===n.operator||47===n.operator){const e=oh(n.operand);if(om(e)&&l&&_){let i=KD(e)?$B(e.argumentExpression,b,U_):zN(e.name)?t.createStringLiteralFromNode(e.name):void 0;if(i){let e=i;RJ(i)||(e=t.createTempVariable(o),i=t.createAssignment(e,i));let a=t.createReflectGetCall(_,e,l);YC(a,n),nI(a,n);const s=r?void 0:t.createTempVariable(o);return a=XP(t,n,a,o,s),a=t.createReflectSetCall(_,i,a,l),YC(a,n),nI(a,n),s&&(a=t.createComma(a,s),nI(a,n)),a}}}return nJ(n,b,e)}function M(e,n){const r=n?tJ(e.elements,T):tJ(e.elements,b,T);return t.updateCommaListExpression(e,r)}function B(e){return rD(e)?J(e):$B(e,b,e_)}function J(e){let n=$B(e.expression,b,U_);return RJ(n)||(n=G(n)),t.updateComputedPropertyName(e,n)}function z(n){if($D(n)||WD(n))return W(n);if(om(n)&&l&&_){const e=KD(n)?$B(n.argumentExpression,b,U_):zN(n.name)?t.createStringLiteralFromNode(n.name):void 0;if(e){const r=t.createTempVariable(void 0),i=t.createAssignmentTargetWrapper(r,t.createReflectSetCall(_,e,r,l));return YC(i,n),nI(i,n),i}}return nJ(n,b,e)}function q(n){if(nb(n,!0)){Kh(n,O)&&(n=Cz(e,n,L(n.right)));const r=z(n.left),i=$B(n.right,b,U_);return t.updateBinaryExpression(n,r,n.operatorToken,i)}return z(n)}function U(n){return un.assertNode(n,E_),dF(n)?function(n){if(R_(n.expression)){const e=z(n.expression);return t.updateSpreadElement(n,e)}return nJ(n,b,e)}(n):fF(n)?nJ(n,b,e):q(n)}function V(n){return un.assertNode(n,D_),JE(n)?function(n){if(R_(n.expression)){const e=z(n.expression);return t.updateSpreadAssignment(n,e)}return nJ(n,b,e)}(n):BE(n)?function(t){return Kh(t,O)&&(t=Cz(e,t,L(t.objectAssignmentInitializer))),nJ(t,b,e)}(n):ME(n)?function(n){const r=$B(n.name,b,e_);if(nb(n.initializer,!0)){const e=q(n.initializer);return t.updatePropertyAssignment(n,r,e)}if(R_(n.initializer)){const e=z(n.initializer);return t.updatePropertyAssignment(n,r,e)}return nJ(n,b,e)}(n):nJ(n,b,e)}function W(e){if(WD(e)){const n=HB(e.elements,U,U_);return t.updateArrayLiteralExpression(e,n)}{const n=HB(e.properties,V,y_);return t.updateObjectLiteralExpression(e,n)}}function H(e,n){const r=n?T:b,i=$B(e.expression,r,U_);return t.updateParenthesizedExpression(e,i)}function K(e,n){return $(e)&&(n?ZD(n)?(e.push(n.expression),n=t.updateParenthesizedExpression(n,t.inlineExpressions(e))):(e.push(n),n=t.inlineExpressions(e)):n=t.inlineExpressions(e)),n}function G(e){const t=K(u,e);return un.assertIsDefined(t),t!==e&&(u=void 0),t}function X(e,t,n){const r=K(t?e.pendingStaticInitializers:e.pendingInstanceInitializers,n);return r!==n&&(t?e.pendingStaticInitializers=void 0:e.pendingInstanceInitializers=void 0),r}function Q(e){if(!e)return;const t=[];return se(t,E(e.decorators,Y)),t}function Y(e){const n=$B(e.expression,b,U_);if(nw(n,3072),kx(cA(n))){const{target:e,thisArg:r}=t.createCallBinding(n,o,a,!0);return t.restoreOuterExpressions(n,t.createFunctionBindCall(e,r,[]))}return n}function Z(e,r,i,o,a,s,c){const l=t.createFunctionExpression(i,o,void 0,void 0,s,void 0,c??t.createBlock([]));YC(l,e),sw(l,Ob(e)),nw(l,3072);const _="get"===a||"set"===a?a:void 0,u=t.createStringLiteralFromNode(r,void 0),d=n().createSetFunctionNameHelper(l,u,_),p=t.createPropertyAssignment(t.createIdentifier(a),d);return YC(p,e),sw(p,Ob(e)),nw(p,3072),p}function ee(e,n){return t.createObjectLiteralExpression([Z(e,e.name,n,e.asteriskToken,"value",HB(e.parameters,b,oD),$B(e.body,b,CF))])}function te(e,n){return t.createObjectLiteralExpression([Z(e,e.name,n,void 0,"get",[],$B(e.body,b,CF))])}function ne(e,n){return t.createObjectLiteralExpression([Z(e,e.name,n,void 0,"set",HB(e.parameters,b,oD),$B(e.body,b,CF))])}function re(e,n){return t.createObjectLiteralExpression([Z(e,e.name,n,void 0,"get",[],t.createBlock([t.createReturnStatement(t.createPropertyAccessExpression(t.createThis(),t.getGeneratedPrivateNameForNode(e.name)))])),Z(e,e.name,n,void 0,"set",[t.createParameterDeclaration(void 0,void 0,"value")],t.createBlock([t.createExpressionStatement(t.createAssignment(t.createPropertyAccessExpression(t.createThis(),t.getGeneratedPrivateNameForNode(e.name)),t.createIdentifier("value")))]))])}function oe(e,n,r){return e=HB(e,(e=>GN(e)?e:void 0),Yl),t.createGetAccessorDeclaration(e,n,[],void 0,t.createBlock([t.createReturnStatement(t.createFunctionCallCall(t.createPropertyAccessExpression(r,t.createIdentifier("get")),t.createThis(),[]))]))}function ae(e,n,r){return e=HB(e,(e=>GN(e)?e:void 0),Yl),t.createSetAccessorDeclaration(e,n,[t.createParameterDeclaration(void 0,void 0,"value")],t.createBlock([t.createReturnStatement(t.createFunctionCallCall(t.createPropertyAccessExpression(r,t.createIdentifier("set")),t.createThis(),[t.createIdentifier("value")]))]))}function ce(e){return t.createBinaryExpression(t.createElementAccessExpression(e,t.createPropertyAccessExpression(t.createIdentifier("Symbol"),"metadata")),61,t.createNull())}}function Rz(e){const{factory:t,getEmitHelperFactory:n,resumeLexicalEnvironment:r,endLexicalEnvironment:i,hoistVariableDeclaration:o}=e,a=e.getEmitResolver(),s=e.getCompilerOptions(),c=hk(s);let l,_,u,p,f=0,m=0;const g=[];let h=0;const y=e.onEmitNode,v=e.onSubstituteNode;return e.onEmitNode=function(e,t,n){if(1&f&&function(e){const t=e.kind;return 263===t||176===t||174===t||177===t||178===t}(t)){const r=(a.hasNodeCheckFlag(t,128)?128:0)|(a.hasNodeCheckFlag(t,256)?256:0);if(r!==m){const i=m;return m=r,y(e,t,n),void(m=i)}}else if(f&&g[jB(t)]){const r=m;return m=0,y(e,t,n),void(m=r)}y(e,t,n)},e.onSubstituteNode=function(e,n){return n=v(e,n),1===e&&m?function(e){switch(e.kind){case 211:return $(e);case 212:return H(e);case 213:return function(e){const n=e.expression;if(om(n)){const r=HD(n)?$(n):H(n);return t.createCallExpression(t.createPropertyAccessExpression(r,"call"),void 0,[t.createThis(),...e.arguments])}return e}(e)}return e}(n):n},NJ(e,(function(t){if(t.isDeclarationFile)return t;b(1,!1),b(2,!gp(t,s));const n=nJ(t,C,e);return Tw(n,e.readEmitHelpers()),n}));function b(e,t){h=t?h|e:h&~e}function x(e){return!!(h&e)}function k(e,t,n){const r=e&~h;if(r){b(r,!0);const e=t(n);return b(r,!1),e}return t(n)}function S(t){return nJ(t,C,e)}function T(t){switch(t.kind){case 218:case 262:case 174:case 177:case 178:case 176:return t;case 169:case 208:case 260:break;case 80:if(p&&a.isArgumentsLocalBinding(t))return p}return nJ(t,T,e)}function C(n){if(!(256&n.transformFlags))return p?T(n):n;switch(n.kind){case 134:return;case 223:return function(n){return x(1)?YC(nI(t.createYieldExpression(void 0,$B(n.expression,C,U_)),n),n):nJ(n,C,e)}(n);case 174:return k(3,D,n);case 262:return k(3,A,n);case 218:return k(3,I,n);case 219:return k(1,O,n);case 211:return _&&HD(n)&&108===n.expression.kind&&_.add(n.name.escapedText),nJ(n,C,e);case 212:return _&&108===n.expression.kind&&(u=!0),nJ(n,C,e);case 177:return k(3,F,n);case 178:return k(3,P,n);case 176:return k(3,N,n);case 263:case 231:return k(3,S,n);default:return nJ(n,C,e)}}function w(n){if(Yg(n))switch(n.kind){case 243:return function(n){if(j(n.declarationList)){const e=R(n.declarationList,!1);return e?t.createExpressionStatement(e):void 0}return nJ(n,C,e)}(n);case 248:return function(n){const r=n.initializer;return t.updateForStatement(n,j(r)?R(r,!1):$B(n.initializer,C,Z_),$B(n.condition,C,U_),$B(n.incrementor,C,U_),eJ(n.statement,w,e))}(n);case 249:return function(n){return t.updateForInStatement(n,j(n.initializer)?R(n.initializer,!0):un.checkDefined($B(n.initializer,C,Z_)),un.checkDefined($B(n.expression,C,U_)),eJ(n.statement,w,e))}(n);case 250:return function(n){return t.updateForOfStatement(n,$B(n.awaitModifier,C,HN),j(n.initializer)?R(n.initializer,!0):un.checkDefined($B(n.initializer,C,Z_)),un.checkDefined($B(n.expression,C,U_)),eJ(n.statement,w,e))}(n);case 299:return function(t){const n=new Set;let r;if(L(t.variableDeclaration,n),n.forEach(((e,t)=>{l.has(t)&&(r||(r=new Set(l)),r.delete(t))})),r){const n=l;l=r;const i=nJ(t,w,e);return l=n,i}return nJ(t,w,e)}(n);case 241:case 255:case 269:case 296:case 297:case 258:case 246:case 247:case 245:case 254:case 256:return nJ(n,w,e);default:return un.assertNever(n,"Unhandled node.")}return C(n)}function N(n){const r=p;p=void 0;const i=t.updateConstructorDeclaration(n,HB(n.modifiers,C,Yl),QB(n.parameters,C,e),z(n));return p=r,i}function D(n){let r;const i=Ih(n),o=p;p=void 0;const a=t.updateMethodDeclaration(n,HB(n.modifiers,C,m_),n.asteriskToken,n.name,void 0,void 0,r=2&i?U(n):QB(n.parameters,C,e),void 0,2&i?V(n,r):z(n));return p=o,a}function F(n){const r=p;p=void 0;const i=t.updateGetAccessorDeclaration(n,HB(n.modifiers,C,m_),n.name,QB(n.parameters,C,e),void 0,z(n));return p=r,i}function P(n){const r=p;p=void 0;const i=t.updateSetAccessorDeclaration(n,HB(n.modifiers,C,m_),n.name,QB(n.parameters,C,e),z(n));return p=r,i}function A(n){let r;const i=p;p=void 0;const o=Ih(n),a=t.updateFunctionDeclaration(n,HB(n.modifiers,C,m_),n.asteriskToken,n.name,void 0,r=2&o?U(n):QB(n.parameters,C,e),void 0,2&o?V(n,r):ZB(n.body,C,e));return p=i,a}function I(n){let r;const i=p;p=void 0;const o=Ih(n),a=t.updateFunctionExpression(n,HB(n.modifiers,C,Yl),n.asteriskToken,n.name,void 0,r=2&o?U(n):QB(n.parameters,C,e),void 0,2&o?V(n,r):ZB(n.body,C,e));return p=i,a}function O(n){let r;const i=Ih(n);return t.updateArrowFunction(n,HB(n.modifiers,C,Yl),void 0,r=2&i?U(n):QB(n.parameters,C,e),void 0,n.equalsGreaterThanToken,2&i?V(n,r):ZB(n.body,C,e))}function L({name:e},t){if(zN(e))t.add(e.escapedText);else for(const n of e.elements)fF(n)||L(n,t)}function j(e){return!!e&&WF(e)&&!(7&e.flags)&&e.declarations.some(J)}function R(e,n){!function(e){d(e.declarations,M)}(e);const r=Yb(e);return 0===r.length?n?$B(t.converters.convertToAssignmentElementTarget(e.declarations[0].name),C,U_):void 0:t.inlineExpressions(E(r,B))}function M({name:e}){if(zN(e))o(e);else for(const t of e.elements)fF(t)||M(t)}function B(e){const n=sw(t.createAssignment(t.converters.convertToAssignmentElementTarget(e.name),e.initializer),e);return un.checkDefined($B(n,C,U_))}function J({name:e}){if(zN(e))return l.has(e.escapedText);for(const t of e.elements)if(!fF(t)&&J(t))return!0;return!1}function z(n){un.assertIsDefined(n.body);const r=_,i=u;_=new Set,u=!1;let o=ZB(n.body,C,e);const s=lc(n,i_);if(c>=2&&(a.hasNodeCheckFlag(n,256)||a.hasNodeCheckFlag(n,128))&&3&~Ih(s)){if(W(),_.size){const e=Mz(t,a,n,_);g[jB(e)]=!0;const r=o.statements.slice();Ad(r,[e]),o=t.updateBlock(o,r)}u&&(a.hasNodeCheckFlag(n,256)?Sw(o,bN):a.hasNodeCheckFlag(n,128)&&Sw(o,vN))}return _=r,u=i,o}function q(){un.assert(p);const e=t.createVariableDeclaration(p,void 0,void 0,t.createIdentifier("arguments")),n=t.createVariableStatement(void 0,[e]);return _A(n),rw(n,2097152),n}function U(n){if(rz(n.parameters))return QB(n.parameters,C,e);const r=[];for(const e of n.parameters){if(e.initializer||e.dotDotDotToken){if(219===n.kind){const e=t.createParameterDeclaration(void 0,t.createToken(26),t.createUniqueName("args",8));r.push(e)}break}const i=t.createParameterDeclaration(void 0,void 0,t.getGeneratedNameForNode(e.name,8));r.push(i)}const i=t.createNodeArray(r);return nI(i,n.parameters),i}function V(o,s){const d=rz(o.parameters)?void 0:QB(o.parameters,C,e);r();const f=lc(o,n_).type,m=c<2?function(e){const t=e&&lm(e);if(t&&Zl(t)){const e=a.getTypeReferenceSerializationKind(t);if(1===e||0===e)return t}}(f):void 0,h=219===o.kind,y=p,v=a.hasNodeCheckFlag(o,512)&&!p;let b;if(v&&(p=t.createUniqueName("arguments")),d)if(h){const e=[];un.assert(s.length<=o.parameters.length);for(let n=0;n=2&&(a.hasNodeCheckFlag(o,256)||a.hasNodeCheckFlag(o,128));if(r&&(W(),_.size)){const n=Mz(t,a,o,_);g[jB(n)]=!0,Ad(e,[n])}v&&Ad(e,[q()]);const i=t.createBlock(e,!0);nI(i,o.body),r&&u&&(a.hasNodeCheckFlag(o,256)?Sw(i,bN):a.hasNodeCheckFlag(o,128)&&Sw(i,vN)),E=i}return l=k,h||(_=S,u=T,p=y),E}function W(){1&f||(f|=1,e.enableSubstitution(213),e.enableSubstitution(211),e.enableSubstitution(212),e.enableEmitNotification(263),e.enableEmitNotification(174),e.enableEmitNotification(177),e.enableEmitNotification(178),e.enableEmitNotification(176),e.enableEmitNotification(243))}function $(e){return 108===e.expression.kind?nI(t.createPropertyAccessExpression(t.createUniqueName("_super",48),e.name),e):e}function H(e){return 108===e.expression.kind?(n=e.argumentExpression,r=e,nI(256&m?t.createPropertyAccessExpression(t.createCallExpression(t.createUniqueName("_superIndex",48),void 0,[n]),"value"):t.createCallExpression(t.createUniqueName("_superIndex",48),void 0,[n]),r)):e;var n,r}}function Mz(e,t,n,r){const i=t.hasNodeCheckFlag(n,256),o=[];return r.forEach(((t,n)=>{const r=fc(n),a=[];a.push(e.createPropertyAssignment("get",e.createArrowFunction(void 0,void 0,[],void 0,void 0,nw(e.createPropertyAccessExpression(nw(e.createSuper(),8),r),8)))),i&&a.push(e.createPropertyAssignment("set",e.createArrowFunction(void 0,void 0,[e.createParameterDeclaration(void 0,void 0,"v",void 0,void 0,void 0)],void 0,void 0,e.createAssignment(nw(e.createPropertyAccessExpression(nw(e.createSuper(),8),r),8),e.createIdentifier("v"))))),o.push(e.createPropertyAssignment(r,e.createObjectLiteralExpression(a)))})),e.createVariableStatement(void 0,e.createVariableDeclarationList([e.createVariableDeclaration(e.createUniqueName("_super",48),void 0,void 0,e.createCallExpression(e.createPropertyAccessExpression(e.createIdentifier("Object"),"create"),void 0,[e.createNull(),e.createObjectLiteralExpression(o,!0)]))],2))}function Bz(e){const{factory:t,getEmitHelperFactory:n,resumeLexicalEnvironment:r,endLexicalEnvironment:i,hoistVariableDeclaration:o}=e,a=e.getEmitResolver(),s=e.getCompilerOptions(),c=hk(s),l=e.onEmitNode;e.onEmitNode=function(e,t,n){if(1&y&&function(e){const t=e.kind;return 263===t||176===t||174===t||177===t||178===t}(t)){const r=(a.hasNodeCheckFlag(t,128)?128:0)|(a.hasNodeCheckFlag(t,256)?256:0);if(r!==v){const i=v;return v=r,l(e,t,n),void(v=i)}}else if(y&&x[jB(t)]){const r=v;return v=0,l(e,t,n),void(v=r)}l(e,t,n)};const _=e.onSubstituteNode;e.onSubstituteNode=function(e,n){return n=_(e,n),1===e&&v?function(e){switch(e.kind){case 211:return Q(e);case 212:return Y(e);case 213:return function(e){const n=e.expression;if(om(n)){const r=HD(n)?Q(n):Y(n);return t.createCallExpression(t.createPropertyAccessExpression(r,"call"),void 0,[t.createThis(),...e.arguments])}return e}(e)}return e}(n):n};let u,d,p,f,m,g,h=!1,y=0,v=0,b=0;const x=[];return NJ(e,(function(n){if(n.isDeclarationFile)return n;p=n;const r=function(n){const r=k(2,gp(n,s)?0:1);h=!1;const i=nJ(n,C,e),o=K(i.statements,f&&[t.createVariableStatement(void 0,t.createVariableDeclarationList(f))]),a=t.updateSourceFile(i,nI(t.createNodeArray(o),n.statements));return S(r),a}(n);return Tw(r,e.readEmitHelpers()),p=void 0,f=void 0,r}));function k(e,t){const n=b;return b=3&(b&~e|t),n}function S(e){b=e}function T(e){f=ie(f,t.createVariableDeclaration(e))}function C(e){return E(e,!1)}function w(e){return E(e,!0)}function N(e){if(134!==e.kind)return e}function D(e,t,n,r){if(function(e,t){return b!==(b&~e|t)}(n,r)){const i=k(n,r),o=e(t);return S(i),o}return e(t)}function F(t){return nJ(t,C,e)}function E(r,i){if(!(128&r.transformFlags))return r;switch(r.kind){case 223:return function(r){return 2&u&&1&u?YC(nI(t.createYieldExpression(void 0,n().createAwaitHelper($B(r.expression,C,U_))),r),r):nJ(r,C,e)}(r);case 229:return function(r){if(2&u&&1&u){if(r.asteriskToken){const e=$B(un.checkDefined(r.expression),C,U_);return YC(nI(t.createYieldExpression(void 0,n().createAwaitHelper(t.updateYieldExpression(r,r.asteriskToken,nI(n().createAsyncDelegatorHelper(nI(n().createAsyncValuesHelper(e),e)),e)))),r),r)}return YC(nI(t.createYieldExpression(void 0,O(r.expression?$B(r.expression,C,U_):t.createVoidZero())),r),r)}return nJ(r,C,e)}(r);case 253:return function(n){return 2&u&&1&u?t.updateReturnStatement(n,O(n.expression?$B(n.expression,C,U_):t.createVoidZero())):nJ(n,C,e)}(r);case 256:return function(n){if(2&u){const e=jf(n);return 250===e.kind&&e.awaitModifier?I(e,n):t.restoreEnclosingLabel($B(e,C,du,t.liftToBlock),n)}return nJ(n,C,e)}(r);case 210:return function(r){if(65536&r.transformFlags){const e=function(e){let n;const r=[];for(const i of e)if(305===i.kind){n&&(r.push(t.createObjectLiteralExpression(n)),n=void 0);const e=i.expression;r.push($B(e,C,U_))}else n=ie(n,303===i.kind?t.createPropertyAssignment(i.name,$B(i.initializer,C,U_)):$B(i,C,y_));return n&&r.push(t.createObjectLiteralExpression(n)),r}(r.properties);e.length&&210!==e[0].kind&&e.unshift(t.createObjectLiteralExpression());let i=e[0];if(e.length>1){for(let t=1;t=2&&(a.hasNodeCheckFlag(o,256)||a.hasNodeCheckFlag(o,128));if(f){1&y||(y|=1,e.enableSubstitution(213),e.enableSubstitution(211),e.enableSubstitution(212),e.enableEmitNotification(263),e.enableEmitNotification(174),e.enableEmitNotification(177),e.enableEmitNotification(178),e.enableEmitNotification(176),e.enableEmitNotification(243));const n=Mz(t,a,o,m);x[jB(n)]=!0,Ad(u,[n])}u.push(p);const h=t.updateBlock(o.body,u);return f&&g&&(a.hasNodeCheckFlag(o,256)?Sw(h,bN):a.hasNodeCheckFlag(o,128)&&Sw(h,vN)),m=l,g=_,h}function G(e){r();let n=0;const o=[],a=$B(e.body,C,Q_)??t.createBlock([]);CF(a)&&(n=t.copyPrologue(a.statements,o,!1,C)),se(o,X(void 0,e));const s=i();if(n>0||$(o)||$(s)){const e=t.converters.convertToFunctionBlock(a,!0);return Ad(o,s),se(o,e.statements.slice(n)),t.updateBlock(e,nI(t.createNodeArray(o),e.statements))}return a}function X(n,r){let i=!1;for(const o of r.parameters)if(i){if(x_(o.name)){if(o.name.elements.length>0){const r=lz(o,C,e,0,t.getGeneratedNameForNode(o));if($(r)){const e=t.createVariableDeclarationList(r),i=t.createVariableStatement(void 0,e);nw(i,2097152),n=ie(n,i)}}else if(o.initializer){const e=t.getGeneratedNameForNode(o),r=$B(o.initializer,C,U_),i=t.createAssignment(e,r),a=t.createExpressionStatement(i);nw(a,2097152),n=ie(n,a)}}else if(o.initializer){const e=t.cloneNode(o.name);nI(e,o.name),nw(e,96);const r=$B(o.initializer,C,U_);rw(r,3168);const i=t.createAssignment(e,r);nI(i,o),nw(i,3072);const a=t.createBlock([t.createExpressionStatement(i)]);nI(a,o),nw(a,3905);const s=t.createTypeCheck(t.cloneNode(o.name),"undefined"),c=t.createIfStatement(s,a);_A(c),nI(c,o),nw(c,2101056),n=ie(n,c)}}else if(65536&o.transformFlags){i=!0;const r=lz(o,C,e,1,t.getGeneratedNameForNode(o),!1,!0);if($(r)){const e=t.createVariableDeclarationList(r),i=t.createVariableStatement(void 0,e);nw(i,2097152),n=ie(n,i)}}return n}function Q(e){return 108===e.expression.kind?nI(t.createPropertyAccessExpression(t.createUniqueName("_super",48),e.name),e):e}function Y(e){return 108===e.expression.kind?(n=e.argumentExpression,r=e,nI(256&v?t.createPropertyAccessExpression(t.createCallExpression(t.createIdentifier("_superIndex"),void 0,[n]),"value"):t.createCallExpression(t.createIdentifier("_superIndex"),void 0,[n]),r)):e;var n,r}}function Jz(e){const t=e.factory;return NJ(e,(function(t){return t.isDeclarationFile?t:nJ(t,n,e)}));function n(r){return 64&r.transformFlags?299===r.kind?function(r){return r.variableDeclaration?nJ(r,n,e):t.updateCatchClause(r,t.createVariableDeclaration(t.createTempVariable(void 0)),$B(r.block,n,CF))}(r):nJ(r,n,e):r}}function zz(e){const{factory:t,hoistVariableDeclaration:n}=e;return NJ(e,(function(t){return t.isDeclarationFile?t:nJ(t,r,e)}));function r(i){if(!(32&i.transformFlags))return i;switch(i.kind){case 213:{const e=o(i,!1);return un.assertNotNode(e,bE),e}case 211:case 212:if(gl(i)){const e=s(i,!1,!1);return un.assertNotNode(e,bE),e}return nJ(i,r,e);case 226:return 61===i.operatorToken.kind?function(e){let i=$B(e.left,r,U_),o=i;return jJ(i)||(o=t.createTempVariable(n),i=t.createAssignment(o,i)),nI(t.createConditionalExpression(c(i,o),void 0,o,void 0,$B(e.right,r,U_)),e)}(i):nJ(i,r,e);case 220:return function(e){return gl(oh(e.expression))?YC(a(e.expression,!1,!0),e):t.updateDeleteExpression(e,$B(e.expression,r,U_))}(i);default:return nJ(i,r,e)}}function i(e,n,r){const i=a(e.expression,n,r);return bE(i)?t.createSyntheticReferenceExpression(t.updateParenthesizedExpression(e,i.expression),i.thisArg):t.updateParenthesizedExpression(e,i)}function o(n,o){if(gl(n))return s(n,o,!1);if(ZD(n.expression)&&gl(oh(n.expression))){const e=i(n.expression,!0,!1),o=HB(n.arguments,r,U_);return bE(e)?nI(t.createFunctionCallCall(e.expression,e.thisArg,o),n):t.updateCallExpression(n,e,void 0,o)}return nJ(n,r,e)}function a(e,a,c){switch(e.kind){case 217:return i(e,a,c);case 211:case 212:return function(e,i,o){if(gl(e))return s(e,i,o);let a,c=$B(e.expression,r,U_);return un.assertNotNode(c,bE),i&&(jJ(c)?a=c:(a=t.createTempVariable(n),c=t.createAssignment(a,c))),c=211===e.kind?t.updatePropertyAccessExpression(e,c,$B(e.name,r,zN)):t.updateElementAccessExpression(e,c,$B(e.argumentExpression,r,U_)),a?t.createSyntheticReferenceExpression(c,a):c}(e,a,c);case 213:return o(e,a);default:return $B(e,r,U_)}}function s(e,i,o){const{expression:s,chain:l}=function(e){un.assertNotNode(e,Sl);const t=[e];for(;!e.questionDotToken&&!QD(e);)e=nt(kl(e.expression),gl),un.assertNotNode(e,Sl),t.unshift(e);return{expression:e.expression,chain:t}}(e),_=a(kl(s),ml(l[0]),!1);let u=bE(_)?_.thisArg:void 0,d=bE(_)?_.expression:_,p=t.restoreOuterExpressions(s,d,8);jJ(d)||(d=t.createTempVariable(n),p=t.createAssignment(d,p));let f,m=d;for(let e=0;ee&&se(c,HB(n.statements,_,du,e,d-e));break}d++}un.assert(dt&&(t=e)}return t}(n.caseBlock.clauses);if(r){const i=m();return g([t.updateSwitchStatement(n,$B(n.expression,_,U_),t.updateCaseBlock(n.caseBlock,n.caseBlock.clauses.map((n=>function(n,r){return 0!==Kz(n.statements)?OE(n)?t.updateCaseClause(n,$B(n.expression,_,U_),u(n.statements,0,n.statements.length,r,void 0)):t.updateDefaultClause(n,u(n.statements,0,n.statements.length,r,void 0)):nJ(n,_,e)}(n,i)))))],i,2===r)}return nJ(n,_,e)}(n);default:return nJ(n,_,e)}}function u(i,o,a,s,u){const m=[];for(let r=o;rt&&(t=e)}return t}function Gz(e){const{factory:t,getEmitHelperFactory:n}=e,r=e.getCompilerOptions();let i,o;return NJ(e,(function(n){if(n.isDeclarationFile)return n;i=n,o={},o.importSpecifier=$k(r,n);let a=nJ(n,c,e);Tw(a,e.readEmitHelpers());let s=a.statements;if(o.filenameDeclaration&&(s=Ld(s.slice(),t.createVariableStatement(void 0,t.createVariableDeclarationList([o.filenameDeclaration],2)))),o.utilizedImplicitRuntimeImports)for(const[e,r]of Oe(o.utilizedImplicitRuntimeImports.entries()))if(MI(n)){const n=t.createImportDeclaration(void 0,t.createImportClause(!1,void 0,t.createNamedImports(Oe(r.values()))),t.createStringLiteral(e),void 0);NT(n,!1),s=Ld(s.slice(),n)}else if(Qp(n)){const n=t.createVariableStatement(void 0,t.createVariableDeclarationList([t.createVariableDeclaration(t.createObjectBindingPattern(Oe(r.values(),(e=>t.createBindingElement(void 0,e.propertyName,e.name)))),void 0,void 0,t.createCallExpression(t.createIdentifier("require"),void 0,[t.createStringLiteral(e)]))],2));NT(n,!1),s=Ld(s.slice(),n)}return s!==a.statements&&(a=t.updateSourceFile(a,s)),o=void 0,a}));function a(){if(o.filenameDeclaration)return o.filenameDeclaration.name;const e=t.createVariableDeclaration(t.createUniqueName("_jsxFileName",48),void 0,void 0,t.createStringLiteral(i.fileName));return o.filenameDeclaration=e,o.filenameDeclaration.name}function s(e){var n,i;const a="createElement"===e?o.importSpecifier:Hk(o.importSpecifier,r),s=null==(i=null==(n=o.utilizedImplicitRuntimeImports)?void 0:n.get(a))?void 0:i.get(e);if(s)return s.name;o.utilizedImplicitRuntimeImports||(o.utilizedImplicitRuntimeImports=new Map);let c=o.utilizedImplicitRuntimeImports.get(a);c||(c=new Map,o.utilizedImplicitRuntimeImports.set(a,c));const l=t.createUniqueName(`_${e}`,112),_=t.createImportSpecifier(!1,t.createIdentifier(e),l);return Rw(l,_),c.set(e,_),l}function c(t){return 2&t.transformFlags?function(t){switch(t.kind){case 284:return f(t,!1);case 285:return m(t,!1);case 288:return g(t,!1);case 294:return O(t);default:return nJ(t,c,e)}}(t):t}function _(e){switch(e.kind){case 12:return function(e){const n=function(e){let t,n=0,r=-1;for(let i=0;iME(e)&&(zN(e.name)&&"__proto__"===mc(e.name)||TN(e.name)&&"__proto__"===e.name.text)))}function p(e){return void 0===o.importSpecifier||function(e){let t=!1;for(const n of e.attributes.properties)if(!PE(n)||$D(n.expression)&&!n.expression.properties.some(JE)){if(t&&FE(n)&&zN(n.name)&&"key"===n.name.escapedText)return!0}else t=!0;return!1}(e)}function f(e,t){return(p(e.openingElement)?x:y)(e.openingElement,e.children,t,e)}function m(e,t){return(p(e)?x:y)(e,void 0,t,e)}function g(e,t){return(void 0===o.importSpecifier?S:k)(e.openingFragment,e.children,t,e)}function h(e){const n=cy(e);if(1===u(n)&&!n[0].dotDotDotToken){const e=_(n[0]);return e&&t.createPropertyAssignment("children",e)}const r=B(e,_);return u(r)?t.createPropertyAssignment("children",t.createArrayLiteralExpression(r)):void 0}function y(e,n,r,i){const o=P(e),a=n&&n.length?h(n):void 0,s=b(e.attributes.properties,(e=>!!e.name&&zN(e.name)&&"key"===e.name.escapedText)),c=s?N(e.attributes.properties,(e=>e!==s)):e.attributes.properties;return v(o,u(c)?T(c,a):t.createObjectLiteralExpression(a?[a]:l),s,n||l,r,i)}function v(e,n,o,c,l,_){var d;const p=cy(c),f=u(p)>1||!!(null==(d=p[0])?void 0:d.dotDotDotToken),m=[e,n];if(o&&m.push(w(o.initializer)),5===r.jsx){const e=lc(i);if(e&&qE(e)){void 0===o&&m.push(t.createVoidZero()),m.push(f?t.createTrue():t.createFalse());const n=Ja(e,_.pos);m.push(t.createObjectLiteralExpression([t.createPropertyAssignment("fileName",a()),t.createPropertyAssignment("lineNumber",t.createNumericLiteral(n.line+1)),t.createPropertyAssignment("columnNumber",t.createNumericLiteral(n.character+1))])),m.push(t.createThis())}}const g=nI(t.createCallExpression(function(e){const t=function(e){return 5===r.jsx?"jsxDEV":e?"jsxs":"jsx"}(e);return s(t)}(f),void 0,m),_);return l&&_A(g),g}function x(n,a,c,l){const d=P(n),p=n.attributes.properties,f=u(p)?T(p):t.createNull(),m=void 0===o.importSpecifier?UP(t,e.getEmitResolver().getJsxFactoryEntity(i),r.reactNamespace,n):s("createElement"),g=VP(t,m,d,f,B(a,_),l);return c&&_A(g),g}function k(e,n,r,i){let o;if(n&&n.length){const e=function(e){const n=h(e);return n&&t.createObjectLiteralExpression([n])}(n);e&&(o=e)}return v(s("Fragment"),o||t.createObjectLiteralExpression([]),void 0,n,r,i)}function S(n,o,a,s){const c=WP(t,e.getEmitResolver().getJsxFactoryEntity(i),e.getEmitResolver().getJsxFragmentFactoryEntity(i),r.reactNamespace,B(o,_),n,s);return a&&_A(c),c}function T(e,i){const o=hk(r);return o&&o>=5?t.createObjectLiteralExpression(function(e,n){const r=I(V(e,PE,((e,n)=>I(E(e,(e=>{return n?$D((r=e).expression)&&!d(r.expression)?A(r.expression.properties,(e=>un.checkDefined($B(e,c,y_)))):t.createSpreadAssignment(un.checkDefined($B(r.expression,c,U_))):C(e);var r}))))));return n&&r.push(n),r}(e,i)):function(e,r){const i=[];let o=[];for(const t of e)if(PE(t)){if($D(t.expression)&&!d(t.expression)){for(const e of t.expression.properties)JE(e)?(a(),i.push(un.checkDefined($B(e.expression,c,U_)))):o.push(un.checkDefined($B(e,c)));continue}a(),i.push(un.checkDefined($B(t.expression,c,U_)))}else o.push(C(t));return r&&o.push(r),a(),i.length&&!$D(i[0])&&i.unshift(t.createObjectLiteralExpression()),be(i)||n().createAssignHelper(i);function a(){o.length&&(i.push(t.createObjectLiteralExpression(o)),o=[])}}(e,i)}function C(e){const n=function(e){const n=e.name;if(zN(n)){const e=mc(n);return/^[A-Z_]\w*$/i.test(e)?n:t.createStringLiteral(e)}return t.createStringLiteral(mc(n.namespace)+":"+mc(n.name))}(e),r=w(e.initializer);return t.createPropertyAssignment(n,r)}function w(e){if(void 0===e)return t.createTrue();if(11===e.kind){const n=void 0!==e.singleQuote?e.singleQuote:!zm(e,i);return nI(t.createStringLiteral(function(e){const t=F(e);return t===e?void 0:t}(e.text)||e.text,n),e)}return 294===e.kind?void 0===e.expression?t.createTrue():un.checkDefined($B(e.expression,c,U_)):kE(e)?f(e,!1):SE(e)?m(e,!1):wE(e)?g(e,!1):un.failBadSyntaxKind(e)}function D(e,t){const n=F(t);return void 0===e?n:e+" "+n}function F(e){return e.replace(/&((#((\d+)|x([\da-fA-F]+)))|(\w+));/g,((e,t,n,r,i,o,a)=>{if(i)return vs(parseInt(i,10));if(o)return vs(parseInt(o,16));{const t=Xz.get(a);return t?vs(t):e}}))}function P(e){if(284===e.kind)return P(e.openingElement);{const n=e.tagName;return zN(n)&&Fy(n.escapedText)?t.createStringLiteral(mc(n)):IE(n)?t.createStringLiteral(mc(n.namespace)+":"+mc(n.name)):HP(t,n)}}function O(e){const n=$B(e.expression,c,U_);return e.dotDotDotToken?t.createSpreadElement(n):n}}var Xz=new Map(Object.entries({quot:34,amp:38,apos:39,lt:60,gt:62,nbsp:160,iexcl:161,cent:162,pound:163,curren:164,yen:165,brvbar:166,sect:167,uml:168,copy:169,ordf:170,laquo:171,not:172,shy:173,reg:174,macr:175,deg:176,plusmn:177,sup2:178,sup3:179,acute:180,micro:181,para:182,middot:183,cedil:184,sup1:185,ordm:186,raquo:187,frac14:188,frac12:189,frac34:190,iquest:191,Agrave:192,Aacute:193,Acirc:194,Atilde:195,Auml:196,Aring:197,AElig:198,Ccedil:199,Egrave:200,Eacute:201,Ecirc:202,Euml:203,Igrave:204,Iacute:205,Icirc:206,Iuml:207,ETH:208,Ntilde:209,Ograve:210,Oacute:211,Ocirc:212,Otilde:213,Ouml:214,times:215,Oslash:216,Ugrave:217,Uacute:218,Ucirc:219,Uuml:220,Yacute:221,THORN:222,szlig:223,agrave:224,aacute:225,acirc:226,atilde:227,auml:228,aring:229,aelig:230,ccedil:231,egrave:232,eacute:233,ecirc:234,euml:235,igrave:236,iacute:237,icirc:238,iuml:239,eth:240,ntilde:241,ograve:242,oacute:243,ocirc:244,otilde:245,ouml:246,divide:247,oslash:248,ugrave:249,uacute:250,ucirc:251,uuml:252,yacute:253,thorn:254,yuml:255,OElig:338,oelig:339,Scaron:352,scaron:353,Yuml:376,fnof:402,circ:710,tilde:732,Alpha:913,Beta:914,Gamma:915,Delta:916,Epsilon:917,Zeta:918,Eta:919,Theta:920,Iota:921,Kappa:922,Lambda:923,Mu:924,Nu:925,Xi:926,Omicron:927,Pi:928,Rho:929,Sigma:931,Tau:932,Upsilon:933,Phi:934,Chi:935,Psi:936,Omega:937,alpha:945,beta:946,gamma:947,delta:948,epsilon:949,zeta:950,eta:951,theta:952,iota:953,kappa:954,lambda:955,mu:956,nu:957,xi:958,omicron:959,pi:960,rho:961,sigmaf:962,sigma:963,tau:964,upsilon:965,phi:966,chi:967,psi:968,omega:969,thetasym:977,upsih:978,piv:982,ensp:8194,emsp:8195,thinsp:8201,zwnj:8204,zwj:8205,lrm:8206,rlm:8207,ndash:8211,mdash:8212,lsquo:8216,rsquo:8217,sbquo:8218,ldquo:8220,rdquo:8221,bdquo:8222,dagger:8224,Dagger:8225,bull:8226,hellip:8230,permil:8240,prime:8242,Prime:8243,lsaquo:8249,rsaquo:8250,oline:8254,frasl:8260,euro:8364,image:8465,weierp:8472,real:8476,trade:8482,alefsym:8501,larr:8592,uarr:8593,rarr:8594,darr:8595,harr:8596,crarr:8629,lArr:8656,uArr:8657,rArr:8658,dArr:8659,hArr:8660,forall:8704,part:8706,exist:8707,empty:8709,nabla:8711,isin:8712,notin:8713,ni:8715,prod:8719,sum:8721,minus:8722,lowast:8727,radic:8730,prop:8733,infin:8734,ang:8736,and:8743,or:8744,cap:8745,cup:8746,int:8747,there4:8756,sim:8764,cong:8773,asymp:8776,ne:8800,equiv:8801,le:8804,ge:8805,sub:8834,sup:8835,nsub:8836,sube:8838,supe:8839,oplus:8853,otimes:8855,perp:8869,sdot:8901,lceil:8968,rceil:8969,lfloor:8970,rfloor:8971,lang:9001,rang:9002,loz:9674,spades:9824,clubs:9827,hearts:9829,diams:9830}));function Qz(e){const{factory:t,hoistVariableDeclaration:n}=e;return NJ(e,(function(t){return t.isDeclarationFile?t:nJ(t,r,e)}));function r(i){return 512&i.transformFlags?226===i.kind?function(i){switch(i.operatorToken.kind){case 68:return function(e){let i,o;const a=$B(e.left,r,U_),s=$B(e.right,r,U_);if(KD(a)){const e=t.createTempVariable(n),r=t.createTempVariable(n);i=nI(t.createElementAccessExpression(nI(t.createAssignment(e,a.expression),a.expression),nI(t.createAssignment(r,a.argumentExpression),a.argumentExpression)),a),o=nI(t.createElementAccessExpression(e,r),a)}else if(HD(a)){const e=t.createTempVariable(n);i=nI(t.createPropertyAccessExpression(nI(t.createAssignment(e,a.expression),a.expression),a.name),a),o=nI(t.createPropertyAccessExpression(e,a.name),a)}else i=a,o=a;return nI(t.createAssignment(i,nI(t.createGlobalMethodCall("Math","pow",[o,s]),e)),e)}(i);case 43:return function(e){const n=$B(e.left,r,U_),i=$B(e.right,r,U_);return nI(t.createGlobalMethodCall("Math","pow",[n,i]),e)}(i);default:return nJ(i,r,e)}}(i):nJ(i,r,e):i}}function Yz(e,t){return{kind:e,expression:t}}function Zz(e){const{factory:t,getEmitHelperFactory:n,startLexicalEnvironment:r,resumeLexicalEnvironment:i,endLexicalEnvironment:o,hoistVariableDeclaration:a}=e,s=e.getCompilerOptions(),c=e.getEmitResolver(),l=e.onSubstituteNode,_=e.onEmitNode;let u,d,p,f,m;function g(e){f=ie(f,t.createVariableDeclaration(e))}e.onEmitNode=function(e,t,n){if(1&h&&n_(t)){const r=y(32670,16&Qd(t)?81:65);return _(e,t,n),void b(r,0,0)}_(e,t,n)},e.onSubstituteNode=function(e,n){return n=l(e,n),1===e?function(e){switch(e.kind){case 80:return function(e){if(2&h&&!QP(e)){const n=c.getReferencedDeclarationWithCollidingName(e);if(n&&(!__(n)||!function(e,t){let n=dc(t);if(!n||n===e||n.end<=e.pos||n.pos>=e.end)return!1;const r=Dp(e);for(;n;){if(n===r||n===e)return!1;if(l_(n)&&n.parent===e)return!0;n=n.parent}return!1}(n,e)))return nI(t.getGeneratedNameForNode(Tc(n)),e)}return e}(e);case 110:return function(e){return 1&h&&16&p?nI(P(),e):e}(e)}return e}(n):zN(n)?function(e){if(2&h&&!QP(e)){const n=dc(e,zN);if(n&&function(e){switch(e.parent.kind){case 208:case 263:case 266:case 260:return e.parent.name===e&&c.isDeclarationWithCollidingName(e.parent)}return!1}(n))return nI(t.getGeneratedNameForNode(n),e)}return e}(n):n};let h=0;return NJ(e,(function(n){if(n.isDeclarationFile)return n;u=n,d=n.text;const i=function(e){const n=y(8064,64),i=[],a=[];r();const s=t.copyPrologue(e.statements,i,!1,S);return se(a,HB(e.statements,S,du,s)),f&&a.push(t.createVariableStatement(void 0,t.createVariableDeclarationList(f))),t.mergeLexicalEnvironment(i,o()),ce(i,e),b(n,0,0),t.updateSourceFile(e,nI(t.createNodeArray(K(i,a)),e.statements))}(n);return Tw(i,e.readEmitHelpers()),u=void 0,d=void 0,f=void 0,p=0,i}));function y(e,t){const n=p;return p=32767&(p&~e|t),n}function b(e,t,n){p=-32768&(p&~t|n)|e}function x(e){return!!(8192&p)&&253===e.kind&&!e.expression}function k(e){return!!(1024&e.transformFlags)||void 0!==m||8192&p&&function(e){return 4194304&e.transformFlags&&(RF(e)||FF(e)||MF(e)||BF(e)||ZF(e)||OE(e)||LE(e)||qF(e)||RE(e)||JF(e)||W_(e,!1)||CF(e))}(e)||W_(e,!1)&&qe(e)||!!(1&Yd(e))}function S(e){return k(e)?D(e,!1):e}function T(e){return k(e)?D(e,!0):e}function C(e){if(k(e)){const t=lc(e);if(cD(t)&&Dv(t)){const t=y(32670,16449),n=D(e,!1);return b(t,229376,0),n}return D(e,!1)}return e}function w(e){return 108===e.kind?lt(e,!0):S(e)}function D(n,r){switch(n.kind){case 126:return;case 263:return function(e){const n=t.createVariableDeclaration(t.getLocalName(e,!0),void 0,void 0,O(e));YC(n,e);const r=[],i=t.createVariableStatement(void 0,t.createVariableDeclarationList([n]));if(YC(i,e),nI(i,e),_A(i),r.push(i),wv(e,32)){const n=wv(e,2048)?t.createExportDefault(t.getLocalName(e)):t.createExternalModuleExport(t.getLocalName(e));YC(n,i),r.push(n)}return ke(r)}(n);case 231:return function(e){return O(e)}(n);case 169:return function(e){return e.dotDotDotToken?void 0:x_(e.name)?YC(nI(t.createParameterDeclaration(void 0,void 0,t.getGeneratedNameForNode(e),void 0,void 0,void 0),e),e):e.initializer?YC(nI(t.createParameterDeclaration(void 0,void 0,e.name,void 0,void 0,void 0),e),e):e}(n);case 262:return function(n){const r=m;m=void 0;const i=y(32670,65),o=QB(n.parameters,S,e),a=Se(n),s=32768&p?t.getLocalName(n):n.name;return b(i,229376,0),m=r,t.updateFunctionDeclaration(n,HB(n.modifiers,S,Yl),n.asteriskToken,s,void 0,o,void 0,a)}(n);case 219:return function(n){16384&n.transformFlags&&!(16384&p)&&(p|=131072);const r=m;m=void 0;const i=y(15232,66),o=t.createFunctionExpression(void 0,void 0,void 0,void 0,QB(n.parameters,S,e),void 0,Se(n));return nI(o,n),YC(o,n),nw(o,16),b(i,0,0),m=r,o}(n);case 218:return function(n){const r=524288&Qd(n)?y(32662,69):y(32670,65),i=m;m=void 0;const o=QB(n.parameters,S,e),a=Se(n),s=32768&p?t.getLocalName(n):n.name;return b(r,229376,0),m=i,t.updateFunctionExpression(n,void 0,n.asteriskToken,s,void 0,o,void 0,a)}(n);case 260:return we(n);case 80:return A(n);case 261:return function(n){if(7&n.flags||524288&n.transformFlags){7&n.flags&&_t();const e=HB(n.declarations,1&n.flags?Ce:we,VF),r=t.createVariableDeclarationList(e);return YC(r,n),nI(r,n),pw(r,n),524288&n.transformFlags&&(x_(n.declarations[0].name)||x_(ve(n.declarations).name))&&sw(r,function(e){let t=-1,n=-1;for(const r of e)t=-1===t?r.pos:-1===r.pos?t:Math.min(t,r.pos),n=Math.max(n,r.end);return Pb(t,n)}(e)),r}return nJ(n,S,e)}(n);case 255:return function(t){if(void 0!==m){const n=m.allowedNonLabeledJumps;m.allowedNonLabeledJumps|=2;const r=nJ(t,S,e);return m.allowedNonLabeledJumps=n,r}return nJ(t,S,e)}(n);case 269:return function(t){const n=y(7104,0),r=nJ(t,S,e);return b(n,0,0),r}(n);case 241:return function(t){const n=256&p?y(7104,512):y(6976,128),r=nJ(t,S,e);return b(n,0,0),r}(n);case 252:case 251:return function(n){if(m){const e=252===n.kind?2:4;if(!(n.label&&m.labels&&m.labels.get(mc(n.label))||!n.label&&m.allowedNonLabeledJumps&e)){let e;const r=n.label;r?252===n.kind?(e=`break-${r.escapedText}`,Ge(m,!0,mc(r),e)):(e=`continue-${r.escapedText}`,Ge(m,!1,mc(r),e)):252===n.kind?(m.nonLocalJumps|=2,e="break"):(m.nonLocalJumps|=4,e="continue");let i=t.createStringLiteral(e);if(m.loopOutParameters.length){const e=m.loopOutParameters;let n;for(let r=0;rwF(e)&&!!ge(e.declarationList.declarations).initializer,i=m;m=void 0;const o=HB(n.statements,C,du);m=i;const a=N(o,r),s=N(o,(e=>!r(e))),c=nt(ge(a),wF).declarationList.declarations[0],l=cA(c.initializer);let _=tt(l,nb);!_&&cF(l)&&28===l.operatorToken.kind&&(_=tt(l.left,nb));const u=nt(_?cA(_.right):l,GD),d=nt(cA(u.expression),eF),p=d.body.statements;let f=0,g=-1;const h=[];if(_){const e=tt(p[f],DF);e&&(h.push(e),f++),h.push(p[f]),f++,h.push(t.createExpressionStatement(t.createAssignment(_.left,nt(c.name,zN))))}for(;!RF(pe(p,g));)g--;se(h,p,f,g),g<-1&&se(h,p,g+1);const y=tt(pe(p,g),RF);for(const e of s)RF(e)&&(null==y?void 0:y.expression)&&!zN(y.expression)?h.push(y):h.push(e);return se(h,a,1),t.restoreOuterExpressions(e.expression,t.restoreOuterExpressions(c.initializer,t.restoreOuterExpressions(_&&_.right,t.updateCallExpression(u,t.restoreOuterExpressions(u.expression,t.updateFunctionExpression(d,void 0,void 0,void 0,void 0,d.parameters,void 0,t.updateBlock(d.body,h))),void 0,u.arguments))))}(n);const r=cA(n.expression);return 108===r.kind||om(r)||$(n.arguments,dF)?function(n){if(32768&n.transformFlags||108===n.expression.kind||om(cA(n.expression))){const{target:e,thisArg:r}=t.createCallBinding(n.expression,a);let i;if(108===n.expression.kind&&nw(r,8),i=32768&n.transformFlags?t.createFunctionApplyCall(un.checkDefined($B(e,w,U_)),108===n.expression.kind?r:un.checkDefined($B(r,S,U_)),rt(n.arguments,!0,!1,!1)):nI(t.createFunctionCallCall(un.checkDefined($B(e,w,U_)),108===n.expression.kind?r:un.checkDefined($B(r,S,U_)),HB(n.arguments,S,U_)),n),108===n.expression.kind){const e=t.createLogicalOr(i,Z());i=t.createAssignment(P(),e)}return YC(i,n)}return sf(n)&&(p|=131072),nJ(n,S,e)}(n):t.updateCallExpression(n,un.checkDefined($B(n.expression,w,U_)),void 0,HB(n.arguments,S,U_))}(n);case 214:return function(n){if($(n.arguments,dF)){const{target:e,thisArg:r}=t.createCallBinding(t.createPropertyAccessExpression(n.expression,"bind"),a);return t.createNewExpression(t.createFunctionApplyCall(un.checkDefined($B(e,S,U_)),r,rt(t.createNodeArray([t.createVoidZero(),...n.arguments]),!0,!1,!1)),void 0,[])}return nJ(n,S,e)}(n);case 217:return function(t,n){return nJ(t,n?T:S,e)}(n,r);case 226:return Te(n,r);case 356:return function(n,r){if(r)return nJ(n,T,e);let i;for(let e=0;e0&&e.push(t.createStringLiteral(r.literal.text)),n=t.createCallExpression(t.createPropertyAccessExpression(n,"concat"),void 0,e)}return nI(n,e)}(n);case 230:return function(e){return $B(e.expression,S,U_)}(n);case 108:return lt(n,!1);case 110:return function(e){return p|=65536,2&p&&!(16384&p)&&(p|=131072),m?2&p?(m.containsLexicalThis=!0,e):m.thisName||(m.thisName=t.createUniqueName("this")):e}(n);case 236:return function(e){return 105===e.keywordToken&&"target"===e.name.escapedText?(p|=32768,t.createUniqueName("_newTarget",48)):e}(n);case 174:return function(e){un.assert(!rD(e.name));const n=xe(e,Ib(e,-1),void 0,void 0);return nw(n,1024|Qd(n)),nI(t.createPropertyAssignment(e.name,n),e)}(n);case 177:case 178:return function(n){un.assert(!rD(n.name));const r=m;m=void 0;const i=y(32670,65);let o;const a=QB(n.parameters,S,e),s=Se(n);return o=177===n.kind?t.updateGetAccessorDeclaration(n,n.modifiers,n.name,a,n.type,s):t.updateSetAccessorDeclaration(n,n.modifiers,n.name,a,s),b(i,229376,0),m=r,o}(n);case 243:return function(n){const r=y(0,wv(n,32)?32:0);let i;if(!m||7&n.declarationList.flags||function(e){return 1===e.declarationList.declarations.length&&!!e.declarationList.declarations[0].initializer&&!!(1&Yd(e.declarationList.declarations[0].initializer))}(n))i=nJ(n,S,e);else{let r;for(const i of n.declarationList.declarations)if(Ve(m,i),i.initializer){let n;x_(i.name)?n=az(i,S,e,0):(n=t.createBinaryExpression(i.name,64,un.checkDefined($B(i.initializer,S,U_))),nI(n,i)),r=ie(r,n)}i=r?nI(t.createExpressionStatement(t.inlineExpressions(r)),n):void 0}return b(r,0,0),i}(n);case 253:return function(n){return m?(m.nonLocalJumps|=8,x(n)&&(n=F(n)),t.createReturnStatement(t.createObjectLiteralExpression([t.createPropertyAssignment(t.createIdentifier("value"),n.expression?un.checkDefined($B(n.expression,S,U_)):t.createVoidZero())]))):x(n)?F(n):nJ(n,S,e)}(n);default:return nJ(n,S,e)}}function F(e){return YC(t.createReturnStatement(P()),e)}function P(){return t.createUniqueName("_this",48)}function A(e){return m&&c.isArgumentsLocalBinding(e)?m.argumentsName||(m.argumentsName=t.createUniqueName("arguments")):256&e.flags?YC(nI(t.createIdentifier(fc(e.escapedText)),e),e):e}function O(a){a.name&&_t();const s=yh(a),c=t.createFunctionExpression(void 0,void 0,void 0,void 0,s?[t.createParameterDeclaration(void 0,void 0,ct())]:[],void 0,function(a,s){const c=[],l=t.getInternalName(a),_=Eh(l)?t.getGeneratedNameForNode(l):l;r(),function(e,r,i){i&&e.push(nI(t.createExpressionStatement(n().createExtendsHelper(t.getInternalName(r))),i))}(c,a,s),function(n,r,a,s){const c=m;m=void 0;const l=y(32662,73),_=rv(r),u=function(e,t){if(!e||!t)return!1;if($(e.parameters))return!1;const n=fe(e.body.statements);if(!n||!Zh(n)||244!==n.kind)return!1;const r=n.expression;if(!Zh(r)||213!==r.kind)return!1;const i=r.expression;if(!Zh(i)||108!==i.kind)return!1;const o=be(r.arguments);if(!o||!Zh(o)||230!==o.kind)return!1;const a=o.expression;return zN(a)&&"arguments"===a.escapedText}(_,void 0!==s),d=t.createFunctionDeclaration(void 0,void 0,a,void 0,function(t,n){return QB(t&&!n?t.parameters:void 0,S,e)||[]}(_,u),void 0,function(e,n,r,a){const s=!!r&&106!==cA(r.expression).kind;if(!e)return function(e,n){const r=[];i(),t.mergeLexicalEnvironment(r,o()),n&&r.push(t.createReturnStatement(t.createLogicalOr(t.createLogicalAnd(t.createStrictInequality(ct(),t.createNull()),t.createFunctionApplyCall(ct(),Z(),t.createIdentifier("arguments"))),Z())));const a=t.createNodeArray(r);nI(a,e.members);const s=t.createBlock(a,!0);return nI(s,e),nw(s,3072),s}(n,s);const c=[],l=[];i();const _=t.copyStandardPrologue(e.body.statements,c,0);(a||j(e.body))&&(p|=8192),se(l,HB(e.body.statements,S,du,_));const u=s||8192&p;ne(c,e),ae(c,e,a),_e(c,e),u?le(c,e,Z()):ce(c,e),t.mergeLexicalEnvironment(c,o()),u&&!Y(e.body)&&l.push(t.createReturnStatement(P()));const d=t.createBlock(nI(t.createNodeArray([...c,...l]),e.body.statements),!0);return nI(d,e.body),function(e,n,r){const i=e;return e=function(e){for(let n=0;n0;n--){const i=e.statements[n];if(RF(i)&&i.expression&&R(i.expression)){const i=e.statements[n-1];let o;if(DF(i)&&H(cA(i.expression)))o=i.expression;else if(r&&B(i)){const e=i.declarationList.declarations[0];G(cA(e.initializer))&&(o=t.createAssignment(P(),e.initializer))}if(!o)break;const a=t.createReturnStatement(o);YC(a,i),nI(a,i);const s=t.createNodeArray([...e.statements.slice(0,n-1),a,...e.statements.slice(n+1)]);return nI(s,e.statements),t.updateBlock(e,s)}}return e}(e,n),e!==i&&(e=function(e,n){if(16384&n.transformFlags||65536&p||131072&p)return e;for(const t of n.statements)if(134217728&t.transformFlags&&!JJ(t))return e;return t.updateBlock(e,HB(e.statements,X,du))}(e,n)),r&&(e=function(e){return t.updateBlock(e,HB(e.statements,Q,du))}(e)),e}(d,e.body,a)}(_,r,s,u));nI(d,_||r),s&&nw(d,16),n.push(d),b(l,229376,0),m=c}(c,a,_,s),function(e,t){for(const n of t.members)switch(n.kind){case 240:e.push(ue(n));break;case 174:e.push(de(ut(t,n),n,t));break;case 177:case 178:const r=dv(t.members,n);n===r.firstAccessor&&e.push(me(ut(t,n),r,t));break;case 176:case 175:break;default:un.failBadSyntaxKind(n,u&&u.fileName)}}(c,a);const f=jb(Xa(d,a.members.end),20),g=t.createPartiallyEmittedExpression(_);kT(g,f.end),nw(g,3072);const h=t.createReturnStatement(g);xT(h,f.pos),nw(h,3840),c.push(h),Ad(c,o());const v=t.createBlock(nI(t.createNodeArray(c),a.members),!0);return nw(v,3072),v}(a,s));nw(c,131072&Qd(a)|1048576);const l=t.createPartiallyEmittedExpression(c);kT(l,a.end),nw(l,3072);const _=t.createPartiallyEmittedExpression(l);kT(_,Xa(d,a.pos)),nw(_,3072);const f=t.createParenthesizedExpression(t.createCallExpression(_,void 0,s?[un.checkDefined($B(s.expression,S,U_))]:[]));return gw(f,3,"* @class "),f}function L(e){return wF(e)&&v(e.declarationList.declarations,(e=>zN(e.name)&&!e.initializer))}function j(e){if(sf(e))return!0;if(!(134217728&e.transformFlags))return!1;switch(e.kind){case 219:case 218:case 262:case 176:case 175:return!1;case 177:case 178:case 174:case 172:{const t=e;return!!rD(t.name)&&!!PI(t.name,j)}}return!!PI(e,j)}function R(e){return Vl(e)&&"_this"===mc(e)}function M(e){return Vl(e)&&"_super"===mc(e)}function B(e){return wF(e)&&1===e.declarationList.declarations.length&&function(e){return VF(e)&&R(e.name)&&!!e.initializer}(e.declarationList.declarations[0])}function J(e){return nb(e,!0)&&R(e.left)}function z(e){return GD(e)&&HD(e.expression)&&M(e.expression.expression)&&zN(e.expression.name)&&("call"===mc(e.expression.name)||"apply"===mc(e.expression.name))&&e.arguments.length>=1&&110===e.arguments[0].kind}function q(e){return cF(e)&&57===e.operatorToken.kind&&110===e.right.kind&&z(e.left)}function U(e){return cF(e)&&56===e.operatorToken.kind&&cF(e.left)&&38===e.left.operatorToken.kind&&M(e.left.left)&&106===e.left.right.kind&&z(e.right)&&"apply"===mc(e.right.expression.name)}function W(e){return cF(e)&&57===e.operatorToken.kind&&110===e.right.kind&&U(e.left)}function H(e){return J(e)&&q(e.right)}function G(e){return z(e)||q(e)||H(e)||U(e)||W(e)||function(e){return J(e)&&W(e.right)}(e)}function X(e){if(B(e)){if(110===e.declarationList.declarations[0].initializer.kind)return}else if(J(e))return t.createPartiallyEmittedExpression(e.right,e);switch(e.kind){case 219:case 218:case 262:case 176:case 175:return e;case 177:case 178:case 174:case 172:{const n=e;return rD(n.name)?t.replacePropertyName(n,nJ(n.name,X,void 0)):e}}return nJ(e,X,void 0)}function Q(e){if(z(e)&&2===e.arguments.length&&zN(e.arguments[1])&&"arguments"===mc(e.arguments[1]))return t.createLogicalAnd(t.createStrictInequality(ct(),t.createNull()),e);switch(e.kind){case 219:case 218:case 262:case 176:case 175:return e;case 177:case 178:case 174:case 172:{const n=e;return rD(n.name)?t.replacePropertyName(n,nJ(n.name,Q,void 0)):e}}return nJ(e,Q,void 0)}function Y(e){if(253===e.kind)return!0;if(245===e.kind){const t=e;if(t.elseStatement)return Y(t.thenStatement)&&Y(t.elseStatement)}else if(241===e.kind){const t=ye(e.statements);if(t&&Y(t))return!0}return!1}function Z(){return nw(t.createThis(),8)}function ee(e){return void 0!==e.initializer||x_(e.name)}function ne(e,t){if(!$(t.parameters,ee))return!1;let n=!1;for(const r of t.parameters){const{name:t,initializer:i,dotDotDotToken:o}=r;o||(x_(t)?n=re(e,r,t,i)||n:i&&(oe(e,r,t,i),n=!0))}return n}function re(n,r,i,o){return i.elements.length>0?(Ld(n,nw(t.createVariableStatement(void 0,t.createVariableDeclarationList(lz(r,S,e,0,t.getGeneratedNameForNode(r)))),2097152)),!0):!!o&&(Ld(n,nw(t.createExpressionStatement(t.createAssignment(t.getGeneratedNameForNode(r),un.checkDefined($B(o,S,U_)))),2097152)),!0)}function oe(e,n,r,i){i=un.checkDefined($B(i,S,U_));const o=t.createIfStatement(t.createTypeCheck(t.cloneNode(r),"undefined"),nw(nI(t.createBlock([t.createExpressionStatement(nw(nI(t.createAssignment(nw(wT(nI(t.cloneNode(r),r),r.parent),96),nw(i,3168|Qd(i))),n),3072))]),n),3905));_A(o),nI(o,n),nw(o,2101056),Ld(e,o)}function ae(n,r,i){const o=[],a=ye(r.parameters);if(!function(e,t){return!(!e||!e.dotDotDotToken||t)}(a,i))return!1;const s=80===a.name.kind?wT(nI(t.cloneNode(a.name),a.name),a.name.parent):t.createTempVariable(void 0);nw(s,96);const c=80===a.name.kind?t.cloneNode(a.name):s,l=r.parameters.length-1,_=t.createLoopVariable();o.push(nw(nI(t.createVariableStatement(void 0,t.createVariableDeclarationList([t.createVariableDeclaration(s,void 0,void 0,t.createArrayLiteralExpression([]))])),a),2097152));const u=t.createForStatement(nI(t.createVariableDeclarationList([t.createVariableDeclaration(_,void 0,void 0,t.createNumericLiteral(l))]),a),nI(t.createLessThan(_,t.createPropertyAccessExpression(t.createIdentifier("arguments"),"length")),a),nI(t.createPostfixIncrement(_),a),t.createBlock([_A(nI(t.createExpressionStatement(t.createAssignment(t.createElementAccessExpression(c,0===l?_:t.createSubtract(_,t.createNumericLiteral(l))),t.createElementAccessExpression(t.createIdentifier("arguments"),_))),a))]));return nw(u,2097152),_A(u),o.push(u),80!==a.name.kind&&o.push(nw(nI(t.createVariableStatement(void 0,t.createVariableDeclarationList(lz(a,S,e,0,c))),a),2097152)),Id(n,o),!0}function ce(e,n){return!!(131072&p&&219!==n.kind)&&(le(e,n,t.createThis()),!0)}function le(n,r,i){1&h||(h|=1,e.enableSubstitution(110),e.enableEmitNotification(176),e.enableEmitNotification(174),e.enableEmitNotification(177),e.enableEmitNotification(178),e.enableEmitNotification(219),e.enableEmitNotification(218),e.enableEmitNotification(262));const o=t.createVariableStatement(void 0,t.createVariableDeclarationList([t.createVariableDeclaration(P(),void 0,void 0,i)]));nw(o,2100224),sw(o,r),Ld(n,o)}function _e(e,n){if(32768&p){let r;switch(n.kind){case 219:return e;case 174:case 177:case 178:r=t.createVoidZero();break;case 176:r=t.createPropertyAccessExpression(nw(t.createThis(),8),"constructor");break;case 262:case 218:r=t.createConditionalExpression(t.createLogicalAnd(nw(t.createThis(),8),t.createBinaryExpression(nw(t.createThis(),8),104,t.getLocalName(n))),void 0,t.createPropertyAccessExpression(nw(t.createThis(),8),"constructor"),void 0,t.createVoidZero());break;default:return un.failBadSyntaxKind(n)}const i=t.createVariableStatement(void 0,t.createVariableDeclarationList([t.createVariableDeclaration(t.createUniqueName("_newTarget",48),void 0,void 0,r)]));nw(i,2100224),Ld(e,i)}return e}function ue(e){return nI(t.createEmptyStatement(),e)}function de(n,r,i){const o=dw(r),a=aw(r),s=xe(r,r,void 0,i),c=$B(r.name,S,e_);let l;if(un.assert(c),!qN(c)&&Ak(e.getCompilerOptions())){const e=rD(c)?c.expression:zN(c)?t.createStringLiteral(fc(c.escapedText)):c;l=t.createObjectDefinePropertyCall(n,e,t.createPropertyDescriptor({value:s,enumerable:!1,writable:!0,configurable:!0}))}else{const e=JP(t,n,c,r.name);l=t.createAssignment(e,s)}nw(s,3072),sw(s,a);const _=nI(t.createExpressionStatement(l),r);return YC(_,r),pw(_,o),nw(_,96),_}function me(e,n,r){const i=t.createExpressionStatement(he(e,n,r,!1));return nw(i,3072),sw(i,aw(n.firstAccessor)),i}function he(e,{firstAccessor:n,getAccessor:r,setAccessor:i},o,a){const s=wT(nI(t.cloneNode(e),e),e.parent);nw(s,3136),sw(s,n.name);const c=$B(n.name,S,e_);if(un.assert(c),qN(c))return un.failBadSyntaxKind(c,"Encountered unhandled private identifier while transforming ES2015.");const l=KP(t,c);nw(l,3104),sw(l,n.name);const _=[];if(r){const e=xe(r,void 0,void 0,o);sw(e,aw(r)),nw(e,1024);const n=t.createPropertyAssignment("get",e);pw(n,dw(r)),_.push(n)}if(i){const e=xe(i,void 0,void 0,o);sw(e,aw(i)),nw(e,1024);const n=t.createPropertyAssignment("set",e);pw(n,dw(i)),_.push(n)}_.push(t.createPropertyAssignment("enumerable",r||i?t.createFalse():t.createTrue()),t.createPropertyAssignment("configurable",t.createTrue()));const u=t.createCallExpression(t.createPropertyAccessExpression(t.createIdentifier("Object"),"defineProperty"),void 0,[s,l,t.createObjectLiteralExpression(_,!0)]);return a&&_A(u),u}function xe(n,r,i,o){const a=m;m=void 0;const s=o&&__(o)&&!Nv(n)?y(32670,73):y(32670,65),c=QB(n.parameters,S,e),l=Se(n);return 32768&p&&!i&&(262===n.kind||218===n.kind)&&(i=t.getGeneratedNameForNode(n)),b(s,229376,0),m=a,YC(nI(t.createFunctionExpression(void 0,n.asteriskToken,i,void 0,c,void 0,l),r),n)}function Se(e){let n,r,a=!1,s=!1;const c=[],l=[],_=e.body;let d;if(i(),CF(_)&&(d=t.copyStandardPrologue(_.statements,c,0,!1),d=t.copyCustomPrologue(_.statements,l,d,S,pf),d=t.copyCustomPrologue(_.statements,l,d,S,mf)),a=ne(l,e)||a,a=ae(l,e,!1)||a,CF(_))d=t.copyCustomPrologue(_.statements,l,d,S),n=_.statements,se(l,HB(_.statements,S,du,d)),!a&&_.multiLine&&(a=!0);else{un.assert(219===e.kind),n=Ab(_,-1);const i=e.equalsGreaterThanToken;Zh(i)||Zh(_)||(zb(i,_,u)?s=!0:a=!0);const o=$B(_,S,U_),c=t.createReturnStatement(o);nI(c,_),bw(c,_),nw(c,2880),l.push(c),r=_}if(t.mergeLexicalEnvironment(c,o()),_e(c,e),ce(c,e),$(c)&&(a=!0),l.unshift(...c),CF(_)&&te(l,_.statements))return _;const p=t.createBlock(nI(t.createNodeArray(l),n),a);return nI(p,e.body),!a&&s&&nw(p,1),r&&lw(p,20,r),YC(p,e.body),p}function Te(n,r){return rb(n)?az(n,S,e,0,!r):28===n.operatorToken.kind?t.updateBinaryExpression(n,un.checkDefined($B(n.left,T,U_)),n.operatorToken,un.checkDefined($B(n.right,r?T:S,U_))):nJ(n,S,e)}function Ce(n){return x_(n.name)?we(n):!n.initializer&&function(e){const t=c.hasNodeCheckFlag(e,16384),n=c.hasNodeCheckFlag(e,32768);return!(64&p||t&&n&&512&p)&&!(4096&p)&&(!c.isDeclarationWithCollidingName(e)||n&&!t&&!(6144&p))}(n)?t.updateVariableDeclaration(n,n.name,void 0,void 0,t.createVoidZero()):nJ(n,S,e)}function we(t){const n=y(32,0);let r;return r=x_(t.name)?lz(t,S,e,0,void 0,!!(32&n)):nJ(t,S,e),b(n,0,0),r}function Ne(e){m.labels.set(mc(e.label),!0)}function De(e){m.labels.set(mc(e.label),!1)}function Fe(n,i,a,s,c){const l=y(n,i),_=function(n,i,a,s){if(!qe(n)){let r;m&&(r=m.allowedNonLabeledJumps,m.allowedNonLabeledJumps=6);const o=s?s(n,i,void 0,a):t.restoreEnclosingLabel(AF(n)?function(e){return t.updateForStatement(e,$B(e.initializer,T,Z_),$B(e.condition,S,U_),$B(e.incrementor,T,U_),un.checkDefined($B(e.statement,S,du,t.liftToBlock)))}(n):nJ(n,S,e),i,m&&De);return m&&(m.allowedNonLabeledJumps=r),o}const c=function(e){let t;switch(e.kind){case 248:case 249:case 250:const n=e.initializer;n&&261===n.kind&&(t=n)}const n=[],r=[];if(t&&7&oc(t)){const i=Be(e)||Je(e)||ze(e);for(const o of t.declarations)Qe(e,o,n,r,i)}const i={loopParameters:n,loopOutParameters:r};return m&&(m.argumentsName&&(i.argumentsName=m.argumentsName),m.thisName&&(i.thisName=m.thisName),m.hoistedLocalVariables&&(i.hoistedLocalVariables=m.hoistedLocalVariables)),i}(n),l=[],_=m;m=c;const u=Be(n)?function(e,n){const r=t.createUniqueName("_loop_init"),i=!!(1048576&e.initializer.transformFlags);let o=0;n.containsLexicalThis&&(o|=16),i&&4&p&&(o|=524288);const a=[];a.push(t.createVariableStatement(void 0,e.initializer)),Ke(n.loopOutParameters,2,1,a);return{functionName:r,containsYield:i,functionDeclaration:t.createVariableStatement(void 0,nw(t.createVariableDeclarationList([t.createVariableDeclaration(r,void 0,void 0,nw(t.createFunctionExpression(void 0,i?t.createToken(42):void 0,void 0,void 0,void 0,void 0,un.checkDefined($B(t.createBlock(a,!0),S,CF))),o))]),4194304)),part:t.createVariableDeclarationList(E(n.loopOutParameters,$e))}}(n,c):void 0,d=Ue(n)?function(e,n,i){const a=t.createUniqueName("_loop");r();const s=$B(e.statement,S,du,t.liftToBlock),c=o(),l=[];(Je(e)||ze(e))&&(n.conditionVariable=t.createUniqueName("inc"),e.incrementor?l.push(t.createIfStatement(n.conditionVariable,t.createExpressionStatement(un.checkDefined($B(e.incrementor,S,U_))),t.createExpressionStatement(t.createAssignment(n.conditionVariable,t.createTrue())))):l.push(t.createIfStatement(t.createLogicalNot(n.conditionVariable),t.createExpressionStatement(t.createAssignment(n.conditionVariable,t.createTrue())))),Je(e)&&l.push(t.createIfStatement(t.createPrefixUnaryExpression(54,un.checkDefined($B(e.condition,S,U_))),un.checkDefined($B(t.createBreakStatement(),S,du))))),un.assert(s),CF(s)?se(l,s.statements):l.push(s),Ke(n.loopOutParameters,1,1,l),Ad(l,c);const _=t.createBlock(l,!0);CF(s)&&YC(_,s);const u=!!(1048576&e.statement.transformFlags);let d=1048576;n.containsLexicalThis&&(d|=16),u&&4&p&&(d|=524288);const f=t.createVariableStatement(void 0,nw(t.createVariableDeclarationList([t.createVariableDeclaration(a,void 0,void 0,nw(t.createFunctionExpression(void 0,u?t.createToken(42):void 0,void 0,void 0,n.loopParameters,void 0,_),d))]),4194304)),m=function(e,n,r,i){const o=[],a=!(-5&n.nonLocalJumps||n.labeledNonLocalBreaks||n.labeledNonLocalContinues),s=t.createCallExpression(e,void 0,E(n.loopParameters,(e=>e.name))),c=i?t.createYieldExpression(t.createToken(42),nw(s,8388608)):s;if(a)o.push(t.createExpressionStatement(c)),Ke(n.loopOutParameters,1,0,o);else{const e=t.createUniqueName("state"),i=t.createVariableStatement(void 0,t.createVariableDeclarationList([t.createVariableDeclaration(e,void 0,void 0,c)]));if(o.push(i),Ke(n.loopOutParameters,1,0,o),8&n.nonLocalJumps){let n;r?(r.nonLocalJumps|=8,n=t.createReturnStatement(e)):n=t.createReturnStatement(t.createPropertyAccessExpression(e,"value")),o.push(t.createIfStatement(t.createTypeCheck(e,"object"),n))}if(2&n.nonLocalJumps&&o.push(t.createIfStatement(t.createStrictEquality(e,t.createStringLiteral("break")),t.createBreakStatement())),n.labeledNonLocalBreaks||n.labeledNonLocalContinues){const i=[];Xe(n.labeledNonLocalBreaks,!0,e,r,i),Xe(n.labeledNonLocalContinues,!1,e,r,i),o.push(t.createSwitchStatement(e,t.createCaseBlock(i)))}}return o}(a,n,i,u);return{functionName:a,containsYield:u,functionDeclaration:f,part:m}}(n,c,_):void 0;let f;if(m=_,u&&l.push(u.functionDeclaration),d&&l.push(d.functionDeclaration),function(e,n,r){let i;if(n.argumentsName&&(r?r.argumentsName=n.argumentsName:(i||(i=[])).push(t.createVariableDeclaration(n.argumentsName,void 0,void 0,t.createIdentifier("arguments")))),n.thisName&&(r?r.thisName=n.thisName:(i||(i=[])).push(t.createVariableDeclaration(n.thisName,void 0,void 0,t.createIdentifier("this")))),n.hoistedLocalVariables)if(r)r.hoistedLocalVariables=n.hoistedLocalVariables;else{i||(i=[]);for(const e of n.hoistedLocalVariables)i.push(t.createVariableDeclaration(e))}if(n.loopOutParameters.length){i||(i=[]);for(const e of n.loopOutParameters)i.push(t.createVariableDeclaration(e.outParamName))}n.conditionVariable&&(i||(i=[]),i.push(t.createVariableDeclaration(n.conditionVariable,void 0,void 0,t.createFalse()))),i&&e.push(t.createVariableStatement(void 0,t.createVariableDeclarationList(i)))}(l,c,_),u&&l.push(function(e,n){const r=t.createCallExpression(e,void 0,[]),i=n?t.createYieldExpression(t.createToken(42),nw(r,8388608)):r;return t.createExpressionStatement(i)}(u.functionName,u.containsYield)),d)if(s)f=s(n,i,d.part,a);else{const e=We(n,u,t.createBlock(d.part,!0));f=t.restoreEnclosingLabel(e,i,m&&De)}else{const e=We(n,u,un.checkDefined($B(n.statement,S,du,t.liftToBlock)));f=t.restoreEnclosingLabel(e,i,m&&De)}return l.push(f),l}(a,s,l,c);return b(l,0,0),_}function Ee(e,t){return Fe(0,1280,e,t)}function Pe(e,t){return Fe(5056,3328,e,t)}function Ae(e,t){return Fe(3008,5376,e,t)}function Ie(e,t){return Fe(3008,5376,e,t,s.downlevelIteration?Re:je)}function Oe(n,r,i){const o=[],a=n.initializer;if(WF(a)){7&n.initializer.flags&&_t();const i=fe(a.declarations);if(i&&x_(i.name)){const a=lz(i,S,e,0,r),s=nI(t.createVariableDeclarationList(a),n.initializer);YC(s,n.initializer),sw(s,Pb(a[0].pos,ve(a).end)),o.push(t.createVariableStatement(void 0,s))}else o.push(nI(t.createVariableStatement(void 0,YC(nI(t.createVariableDeclarationList([t.createVariableDeclaration(i?i.name:t.createTempVariable(void 0),void 0,void 0,r)]),Ib(a,-1)),a)),Ab(a,-1)))}else{const e=t.createAssignment(a,r);rb(e)?o.push(t.createExpressionStatement(Te(e,!0))):(kT(e,a.end),o.push(nI(t.createExpressionStatement(un.checkDefined($B(e,S,U_))),Ab(a,-1))))}if(i)return Le(se(o,i));{const e=$B(n.statement,S,du,t.liftToBlock);return un.assert(e),CF(e)?t.updateBlock(e,nI(t.createNodeArray(K(o,e.statements)),e.statements)):(o.push(e),Le(o))}}function Le(e){return nw(t.createBlock(t.createNodeArray(e),!0),864)}function je(e,n,r){const i=$B(e.expression,S,U_);un.assert(i);const o=t.createLoopVariable(),a=zN(i)?t.getGeneratedNameForNode(i):t.createTempVariable(void 0);nw(i,96|Qd(i));const s=nI(t.createForStatement(nw(nI(t.createVariableDeclarationList([nI(t.createVariableDeclaration(o,void 0,void 0,t.createNumericLiteral(0)),Ib(e.expression,-1)),nI(t.createVariableDeclaration(a,void 0,void 0,i),e.expression)]),e.expression),4194304),nI(t.createLessThan(o,t.createPropertyAccessExpression(a,"length")),e.expression),nI(t.createPostfixIncrement(o),e.expression),Oe(e,t.createElementAccessExpression(a,o),r)),e);return nw(s,512),nI(s,e),t.restoreEnclosingLabel(s,n,m&&De)}function Re(e,r,i,o){const s=$B(e.expression,S,U_);un.assert(s);const c=zN(s)?t.getGeneratedNameForNode(s):t.createTempVariable(void 0),l=zN(s)?t.getGeneratedNameForNode(c):t.createTempVariable(void 0),_=t.createUniqueName("e"),u=t.getGeneratedNameForNode(_),d=t.createTempVariable(void 0),p=nI(n().createValuesHelper(s),e.expression),f=t.createCallExpression(t.createPropertyAccessExpression(c,"next"),void 0,[]);a(_),a(d);const g=1024&o?t.inlineExpressions([t.createAssignment(_,t.createVoidZero()),p]):p,h=nw(nI(t.createForStatement(nw(nI(t.createVariableDeclarationList([nI(t.createVariableDeclaration(c,void 0,void 0,g),e.expression),t.createVariableDeclaration(l,void 0,void 0,f)]),e.expression),4194304),t.createLogicalNot(t.createPropertyAccessExpression(l,"done")),t.createAssignment(l,f),Oe(e,t.createPropertyAccessExpression(l,"value"),i)),e),512);return t.createTryStatement(t.createBlock([t.restoreEnclosingLabel(h,r,m&&De)]),t.createCatchClause(t.createVariableDeclaration(u),nw(t.createBlock([t.createExpressionStatement(t.createAssignment(_,t.createObjectLiteralExpression([t.createPropertyAssignment("error",u)])))]),1)),t.createBlock([t.createTryStatement(t.createBlock([nw(t.createIfStatement(t.createLogicalAnd(t.createLogicalAnd(l,t.createLogicalNot(t.createPropertyAccessExpression(l,"done"))),t.createAssignment(d,t.createPropertyAccessExpression(c,"return"))),t.createExpressionStatement(t.createFunctionCallCall(d,c,[]))),1)]),void 0,nw(t.createBlock([nw(t.createIfStatement(_,t.createThrowStatement(t.createPropertyAccessExpression(_,"error"))),1)]),1))]))}function Me(e){return c.hasNodeCheckFlag(e,8192)}function Be(e){return AF(e)&&!!e.initializer&&Me(e.initializer)}function Je(e){return AF(e)&&!!e.condition&&Me(e.condition)}function ze(e){return AF(e)&&!!e.incrementor&&Me(e.incrementor)}function qe(e){return Ue(e)||Be(e)}function Ue(e){return c.hasNodeCheckFlag(e,4096)}function Ve(e,t){e.hoistedLocalVariables||(e.hoistedLocalVariables=[]),function t(n){if(80===n.kind)e.hoistedLocalVariables.push(n);else for(const e of n.elements)fF(e)||t(e.name)}(t.name)}function We(e,n,r){switch(e.kind){case 248:return function(e,n,r){const i=e.condition&&Me(e.condition),o=i||e.incrementor&&Me(e.incrementor);return t.updateForStatement(e,$B(n?n.part:e.initializer,T,Z_),$B(i?void 0:e.condition,S,U_),$B(o?void 0:e.incrementor,T,U_),r)}(e,n,r);case 249:return function(e,n){return t.updateForInStatement(e,un.checkDefined($B(e.initializer,S,Z_)),un.checkDefined($B(e.expression,S,U_)),n)}(e,r);case 250:return function(e,n){return t.updateForOfStatement(e,void 0,un.checkDefined($B(e.initializer,S,Z_)),un.checkDefined($B(e.expression,S,U_)),n)}(e,r);case 246:return function(e,n){return t.updateDoStatement(e,n,un.checkDefined($B(e.expression,S,U_)))}(e,r);case 247:return function(e,n){return t.updateWhileStatement(e,un.checkDefined($B(e.expression,S,U_)),n)}(e,r);default:return un.failBadSyntaxKind(e,"IterationStatement expected")}}function $e(e){return t.createVariableDeclaration(e.originalName,void 0,void 0,e.outParamName)}function He(e,n){const r=0===n?e.outParamName:e.originalName,i=0===n?e.originalName:e.outParamName;return t.createBinaryExpression(i,64,r)}function Ke(e,n,r,i){for(const o of e)o.flags&n&&i.push(t.createExpressionStatement(He(o,r)))}function Ge(e,t,n,r){t?(e.labeledNonLocalBreaks||(e.labeledNonLocalBreaks=new Map),e.labeledNonLocalBreaks.set(n,r)):(e.labeledNonLocalContinues||(e.labeledNonLocalContinues=new Map),e.labeledNonLocalContinues.set(n,r))}function Xe(e,n,r,i,o){e&&e.forEach(((e,a)=>{const s=[];if(!i||i.labels&&i.labels.get(a)){const e=t.createIdentifier(a);s.push(n?t.createBreakStatement(e):t.createContinueStatement(e))}else Ge(i,n,a,e),s.push(t.createReturnStatement(r));o.push(t.createCaseClause(t.createStringLiteral(e),s))}))}function Qe(e,n,r,i,o){const a=n.name;if(x_(a))for(const t of a.elements)fF(t)||Qe(e,t,r,i,o);else{r.push(t.createParameterDeclaration(void 0,void 0,a));const s=c.hasNodeCheckFlag(n,65536);if(s||o){const r=t.createUniqueName("out_"+mc(a));let o=0;s&&(o|=1),AF(e)&&(e.initializer&&c.isBindingCapturedByNode(e.initializer,n)&&(o|=2),(e.condition&&c.isBindingCapturedByNode(e.condition,n)||e.incrementor&&c.isBindingCapturedByNode(e.incrementor,n))&&(o|=1)),i.push({flags:o,originalName:a,outParamName:r})}}}function Ye(e,n,r){const i=t.createAssignment(JP(t,n,un.checkDefined($B(e.name,S,e_))),un.checkDefined($B(e.initializer,S,U_)));return nI(i,e),r&&_A(i),i}function Ze(e,n,r){const i=t.createAssignment(JP(t,n,un.checkDefined($B(e.name,S,e_))),t.cloneNode(e.name));return nI(i,e),r&&_A(i),i}function et(e,n,r,i){const o=t.createAssignment(JP(t,n,un.checkDefined($B(e.name,S,e_))),xe(e,e,void 0,r));return nI(o,e),i&&_A(o),o}function rt(e,r,i,o){const a=e.length,c=I(V(e,it,((e,t,n,r)=>t(e,i,o&&r===a))));if(1===c.length){const e=c[0];if(r&&!s.downlevelIteration||FT(e.expression)||xN(e.expression,"___spreadArray"))return e.expression}const l=n(),_=0!==c[0].kind;let u=_?t.createArrayLiteralExpression():c[0].expression;for(let e=_?0:1;e0?t.inlineExpressions(E(i,G)):void 0,$B(n.condition,M,U_),$B(n.incrementor,M,U_),eJ(n.statement,M,e))}else n=nJ(n,M,e);return m&&ce(),n}(r);case 249:return function(n){m&&ae();const r=n.initializer;if(WF(r)){for(const e of r.declarations)a(e.name);n=t.updateForInStatement(n,r.declarations[0].name,un.checkDefined($B(n.expression,M,U_)),un.checkDefined($B(n.statement,M,du,t.liftToBlock)))}else n=nJ(n,M,e);return m&&ce(),n}(r);case 252:return function(t){if(m){const e=me(t.label&&mc(t.label));if(e>0)return be(e,t)}return nJ(t,M,e)}(r);case 251:return function(t){if(m){const e=ge(t.label&&mc(t.label));if(e>0)return be(e,t)}return nJ(t,M,e)}(r);case 253:return function(e){return n=$B(e.expression,M,U_),r=e,nI(t.createReturnStatement(t.createArrayLiteralExpression(n?[ve(2),n]:[ve(2)])),r);var n,r}(r);default:return 1048576&r.transformFlags?function(r){switch(r.kind){case 226:return function(n){const r=ty(n);switch(r){case 0:return function(n){return X(n.right)?Kv(n.operatorToken.kind)?function(e){const t=ee(),n=Z();return Se(n,un.checkDefined($B(e.left,M,U_)),e.left),56===e.operatorToken.kind?Ne(t,n,e.left):Ce(t,n,e.left),Se(n,un.checkDefined($B(e.right,M,U_)),e.right),te(t),n}(n):28===n.operatorToken.kind?U(n):t.updateBinaryExpression(n,Y(un.checkDefined($B(n.left,M,U_))),n.operatorToken,un.checkDefined($B(n.right,M,U_))):nJ(n,M,e)}(n);case 1:return function(n){const{left:r,right:i}=n;if(X(i)){let e;switch(r.kind){case 211:e=t.updatePropertyAccessExpression(r,Y(un.checkDefined($B(r.expression,M,R_))),r.name);break;case 212:e=t.updateElementAccessExpression(r,Y(un.checkDefined($B(r.expression,M,R_))),Y(un.checkDefined($B(r.argumentExpression,M,U_))));break;default:e=un.checkDefined($B(r,M,U_))}const o=n.operatorToken.kind;return MJ(o)?nI(t.createAssignment(e,nI(t.createBinaryExpression(Y(e),BJ(o),un.checkDefined($B(i,M,U_))),n)),n):t.updateBinaryExpression(n,e,n.operatorToken,un.checkDefined($B(i,M,U_)))}return nJ(n,M,e)}(n);default:return un.assertNever(r)}}(r);case 356:return function(e){let n=[];for(const r of e.elements)cF(r)&&28===r.operatorToken.kind?n.push(U(r)):(X(r)&&n.length>0&&(De(1,[t.createExpressionStatement(t.inlineExpressions(n))]),n=[]),n.push(un.checkDefined($B(r,M,U_))));return t.inlineExpressions(n)}(r);case 227:return function(t){if(X(t.whenTrue)||X(t.whenFalse)){const e=ee(),n=ee(),r=Z();return Ne(e,un.checkDefined($B(t.condition,M,U_)),t.condition),Se(r,un.checkDefined($B(t.whenTrue,M,U_)),t.whenTrue),Te(n),te(e),Se(r,un.checkDefined($B(t.whenFalse,M,U_)),t.whenFalse),te(n),r}return nJ(t,M,e)}(r);case 229:return function(e){const r=ee(),i=$B(e.expression,M,U_);return e.asteriskToken?function(e,t){De(7,[e],t)}(8388608&Qd(e.expression)?i:nI(n().createValuesHelper(i),e),e):function(e,t){De(6,[e],t)}(i,e),te(r),o=e,nI(t.createCallExpression(t.createPropertyAccessExpression(C,"sent"),void 0,[]),o);var o}(r);case 209:return function(e){return V(e.elements,void 0,void 0,e.multiLine)}(r);case 210:return function(e){const n=e.properties,r=e.multiLine,i=Q(n),o=Z();Se(o,t.createObjectLiteralExpression(HB(n,M,y_,0,i),r));const a=we(n,(function(n,i){X(i)&&n.length>0&&(ke(t.createExpressionStatement(t.inlineExpressions(n))),n=[]);const a=$B(GP(t,e,i,o),M,U_);return a&&(r&&_A(a),n.push(a)),n}),[],i);return a.push(r?_A(wT(nI(t.cloneNode(o),o),o.parent)):o),t.inlineExpressions(a)}(r);case 212:return function(n){return X(n.argumentExpression)?t.updateElementAccessExpression(n,Y(un.checkDefined($B(n.expression,M,R_))),un.checkDefined($B(n.argumentExpression,M,U_))):nJ(n,M,e)}(r);case 213:return function(n){if(!cf(n)&&d(n.arguments,X)){const{target:e,thisArg:r}=t.createCallBinding(n.expression,a,c,!0);return YC(nI(t.createFunctionApplyCall(Y(un.checkDefined($B(e,M,R_))),r,V(n.arguments)),n),n)}return nJ(n,M,e)}(r);case 214:return function(n){if(d(n.arguments,X)){const{target:e,thisArg:r}=t.createCallBinding(t.createPropertyAccessExpression(n.expression,"bind"),a);return YC(nI(t.createNewExpression(t.createFunctionApplyCall(Y(un.checkDefined($B(e,M,U_))),r,V(n.arguments,t.createVoidZero())),void 0,[]),n),n)}return nJ(n,M,e)}(r);default:return nJ(r,M,e)}}(r):4196352&r.transformFlags?nJ(r,M,e):r}}function J(n){if(n.asteriskToken)n=YC(nI(t.createFunctionDeclaration(n.modifiers,void 0,n.name,void 0,QB(n.parameters,M,e),void 0,q(n.body)),n),n);else{const t=f,r=m;f=!1,m=!1,n=nJ(n,M,e),f=t,m=r}return f?void o(n):n}function z(n){if(n.asteriskToken)n=YC(nI(t.createFunctionExpression(void 0,void 0,n.name,void 0,QB(n.parameters,M,e),void 0,q(n.body)),n),n);else{const t=f,r=m;f=!1,m=!1,n=nJ(n,M,e),f=t,m=r}return n}function q(e){const o=[],a=f,s=m,c=g,l=h,_=y,u=v,d=b,p=x,E=L,B=k,J=S,z=T,q=C;f=!0,m=!1,g=void 0,h=void 0,y=void 0,v=void 0,b=void 0,x=void 0,L=1,k=void 0,S=void 0,T=void 0,C=t.createTempVariable(void 0),r();const U=t.copyPrologue(e.statements,o,!1,M);W(e.statements,U);const V=function(){j=0,R=0,w=void 0,N=!1,D=!1,F=void 0,P=void 0,A=void 0,I=void 0,O=void 0;const e=function(){if(k){for(let e=0;e0)),1048576))}();return Ad(o,i()),o.push(t.createReturnStatement(V)),f=a,m=s,g=c,h=l,y=_,v=u,b=d,x=p,L=E,k=B,S=J,T=z,C=q,nI(t.createBlock(o,e.multiLine),e)}function U(e){let n=[];return r(e.left),r(e.right),t.inlineExpressions(n);function r(e){cF(e)&&28===e.operatorToken.kind?(r(e.left),r(e.right)):(X(e)&&n.length>0&&(De(1,[t.createExpressionStatement(t.inlineExpressions(n))]),n=[]),n.push(un.checkDefined($B(e,M,U_))))}}function V(e,n,r,i){const o=Q(e);let a;if(o>0){a=Z();const r=HB(e,M,U_,0,o);Se(a,t.createArrayLiteralExpression(n?[n,...r]:r)),n=void 0}const s=we(e,(function(e,r){if(X(r)&&e.length>0){const r=void 0!==a;a||(a=Z()),Se(a,r?t.createArrayConcatCall(a,[t.createArrayLiteralExpression(e,i)]):t.createArrayLiteralExpression(n?[n,...e]:e,i)),n=void 0,e=[]}return e.push(un.checkDefined($B(r,M,U_))),e}),[],o);return a?t.createArrayConcatCall(a,[t.createArrayLiteralExpression(s,i)]):nI(t.createArrayLiteralExpression(n?[n,...s]:s,i),r)}function W(e,t=0){const n=e.length;for(let r=t;r0?Te(t,e):ke(e)}(n);case 252:return function(e){const t=me(e.label?mc(e.label):void 0);t>0?Te(t,e):ke(e)}(n);case 253:return function(e){De(8,[$B(e.expression,M,U_)],e)}(n);case 254:return function(e){X(e)?(function(e){const t=ee(),n=ee();te(t),ne({kind:1,expression:e,startLabel:t,endLabel:n})}(Y(un.checkDefined($B(e.expression,M,U_)))),$(e.statement),un.assert(1===oe()),te(re().endLabel)):ke($B(e,M,du))}(n);case 255:return function(e){if(X(e.caseBlock)){const n=e.caseBlock,r=n.clauses.length,i=function(){const e=ee();return ne({kind:2,isScript:!1,breakLabel:e}),e}(),o=Y(un.checkDefined($B(e.expression,M,U_))),a=[];let s=-1;for(let e=0;e0)break;l.push(t.createCaseClause(un.checkDefined($B(r.expression,M,U_)),[be(a[i],r.expression)]))}else e++}l.length&&(ke(t.createSwitchStatement(o,t.createCaseBlock(l))),c+=l.length,l=[]),e>0&&(c+=e,e=0)}Te(s>=0?a[s]:i);for(let e=0;e0)break;o.push(G(t))}o.length&&(ke(t.createExpressionStatement(t.inlineExpressions(o))),i+=o.length,o=[])}}function G(e){return sw(t.createAssignment(sw(t.cloneNode(e.name),e.name),un.checkDefined($B(e.initializer,M,U_))),e)}function X(e){return!!e&&!!(1048576&e.transformFlags)}function Q(e){const t=e.length;for(let n=0;n=0;n--){const t=v[n];if(!de(t))break;if(t.labelText===e)return!0}return!1}function me(e){if(v)if(e)for(let t=v.length-1;t>=0;t--){const n=v[t];if(de(n)&&n.labelText===e)return n.breakLabel;if(ue(n)&&fe(e,t-1))return n.breakLabel}else for(let e=v.length-1;e>=0;e--){const t=v[e];if(ue(t))return t.breakLabel}return 0}function ge(e){if(v)if(e)for(let t=v.length-1;t>=0;t--){const n=v[t];if(pe(n)&&fe(e,t-1))return n.continueLabel}else for(let e=v.length-1;e>=0;e--){const t=v[e];if(pe(t))return t.continueLabel}return 0}function he(e){if(void 0!==e&&e>0){void 0===x&&(x=[]);const n=t.createNumericLiteral(Number.MAX_SAFE_INTEGER);return void 0===x[e]?x[e]=[n]:x[e].push(n),n}return t.createOmittedExpression()}function ve(e){const n=t.createNumericLiteral(e);return vw(n,3,function(e){switch(e){case 2:return"return";case 3:return"break";case 4:return"yield";case 5:return"yield*";case 7:return"endfinally";default:return}}(e)),n}function be(e,n){return un.assertLessThan(0,e,"Invalid label"),nI(t.createReturnStatement(t.createArrayLiteralExpression([ve(3),he(e)])),n)}function xe(){De(0)}function ke(e){e?De(1,[e]):xe()}function Se(e,t,n){De(2,[e,t],n)}function Te(e,t){De(3,[e],t)}function Ce(e,t,n){De(4,[e,t],n)}function Ne(e,t,n){De(5,[e,t],n)}function De(e,t,n){void 0===k&&(k=[],S=[],T=[]),void 0===b&&te(ee());const r=k.length;k[r]=e,S[r]=t,T[r]=n}function Fe(e){(function(e){if(!D)return!0;if(!b||!x)return!1;for(let t=0;t=0;e--){const n=O[e];P=[t.createWithStatement(n.expression,t.createBlock(P))]}if(I){const{startLabel:e,catchLabel:n,finallyLabel:r,endLabel:i}=I;P.unshift(t.createExpressionStatement(t.createCallExpression(t.createPropertyAccessExpression(t.createPropertyAccessExpression(C,"trys"),"push"),void 0,[t.createArrayLiteralExpression([he(e),he(n),he(r),he(i)])]))),I=void 0}e&&P.push(t.createExpressionStatement(t.createAssignment(t.createPropertyAccessExpression(C,"label"),t.createNumericLiteral(R+1))))}F.push(t.createCaseClause(t.createNumericLiteral(R),P||[])),P=void 0}function Pe(e){if(b)for(let t=0;t{Lu(e.arguments[0])&&!bg(e.arguments[0].text,a)||(y=ie(y,e))}));const n=function(e){switch(e){case 2:return S;case 3:return T;default:return k}}(d)(t);return g=void 0,h=void 0,b=!1,n}));function x(){return!(AS(g.fileName)&&g.commonJsModuleIndicator&&(!g.externalModuleIndicator||!0===g.externalModuleIndicator)||h.exportEquals||!MI(g))}function k(n){r();const o=[],s=Mk(a,"alwaysStrict")||MI(g),c=t.copyPrologue(n.statements,o,s&&!Yp(n),F);if(x()&&ie(o,G()),$(h.exportedNames)){const e=50;for(let n=0;n11===n.kind?t.createAssignment(t.createElementAccessExpression(t.createIdentifier("exports"),t.createStringLiteral(n.text)),e):t.createAssignment(t.createPropertyAccessExpression(t.createIdentifier("exports"),t.createIdentifier(mc(n))),e)),t.createVoidZero())))}for(const e of h.exportedFunctions)W(o,e);ie(o,$B(h.externalHelpersImportDeclaration,F,du)),se(o,HB(n.statements,F,du,c)),D(o,!1),Ad(o,i());const l=t.updateSourceFile(n,nI(t.createNodeArray(o),n.statements));return Tw(l,e.readEmitHelpers()),l}function S(n){const r=t.createIdentifier("define"),i=gA(t,n,c,a),o=Yp(n)&&n,{aliasedModuleNames:s,unaliasedModuleNames:_,importAliasNames:u}=C(n,!0),d=t.updateSourceFile(n,nI(t.createNodeArray([t.createExpressionStatement(t.createCallExpression(r,void 0,[...i?[i]:[],t.createArrayLiteralExpression(o?l:[t.createStringLiteral("require"),t.createStringLiteral("exports"),...s,..._]),o?o.statements.length?o.statements[0].expression:t.createObjectLiteralExpression():t.createFunctionExpression(void 0,void 0,void 0,void 0,[t.createParameterDeclaration(void 0,void 0,"require"),t.createParameterDeclaration(void 0,void 0,"exports"),...u],void 0,N(n))]))]),n.statements));return Tw(d,e.readEmitHelpers()),d}function T(n){const{aliasedModuleNames:r,unaliasedModuleNames:i,importAliasNames:o}=C(n,!1),s=gA(t,n,c,a),l=t.createFunctionExpression(void 0,void 0,void 0,void 0,[t.createParameterDeclaration(void 0,void 0,"factory")],void 0,nI(t.createBlock([t.createIfStatement(t.createLogicalAnd(t.createTypeCheck(t.createIdentifier("module"),"object"),t.createTypeCheck(t.createPropertyAccessExpression(t.createIdentifier("module"),"exports"),"object")),t.createBlock([t.createVariableStatement(void 0,[t.createVariableDeclaration("v",void 0,void 0,t.createCallExpression(t.createIdentifier("factory"),void 0,[t.createIdentifier("require"),t.createIdentifier("exports")]))]),nw(t.createIfStatement(t.createStrictInequality(t.createIdentifier("v"),t.createIdentifier("undefined")),t.createExpressionStatement(t.createAssignment(t.createPropertyAccessExpression(t.createIdentifier("module"),"exports"),t.createIdentifier("v")))),1)]),t.createIfStatement(t.createLogicalAnd(t.createTypeCheck(t.createIdentifier("define"),"function"),t.createPropertyAccessExpression(t.createIdentifier("define"),"amd")),t.createBlock([t.createExpressionStatement(t.createCallExpression(t.createIdentifier("define"),void 0,[...s?[s]:[],t.createArrayLiteralExpression([t.createStringLiteral("require"),t.createStringLiteral("exports"),...r,...i]),t.createIdentifier("factory")]))])))],!0),void 0)),_=t.updateSourceFile(n,nI(t.createNodeArray([t.createExpressionStatement(t.createCallExpression(l,void 0,[t.createFunctionExpression(void 0,void 0,void 0,void 0,[t.createParameterDeclaration(void 0,void 0,"require"),t.createParameterDeclaration(void 0,void 0,"exports"),...o],void 0,N(n))]))]),n.statements));return Tw(_,e.readEmitHelpers()),_}function C(e,n){const r=[],i=[],o=[];for(const n of e.amdDependencies)n.name?(r.push(t.createStringLiteral(n.path)),o.push(t.createParameterDeclaration(void 0,void 0,n.name))):i.push(t.createStringLiteral(n.path));for(const e of h.externalImports){const l=mA(t,e,g,c,s,a),_=fA(t,e,g);l&&(n&&_?(nw(_,8),r.push(l),o.push(t.createParameterDeclaration(void 0,void 0,_))):i.push(l))}return{aliasedModuleNames:r,unaliasedModuleNames:i,importAliasNames:o}}function w(e){if(tE(e)||fE(e)||!mA(t,e,g,c,s,a))return;const n=fA(t,e,g),r=M(e,n);return r!==n?t.createExpressionStatement(t.createAssignment(n,r)):void 0}function N(e){r();const n=[],o=t.copyPrologue(e.statements,n,!0,F);x()&&ie(n,G()),$(h.exportedNames)&&ie(n,t.createExpressionStatement(we(h.exportedNames,((e,n)=>11===n.kind?t.createAssignment(t.createElementAccessExpression(t.createIdentifier("exports"),t.createStringLiteral(n.text)),e):t.createAssignment(t.createPropertyAccessExpression(t.createIdentifier("exports"),t.createIdentifier(mc(n))),e)),t.createVoidZero())));for(const e of h.exportedFunctions)W(n,e);ie(n,$B(h.externalHelpersImportDeclaration,F,du)),2===d&&se(n,B(h.externalImports,w)),se(n,HB(e.statements,F,du,o)),D(n,!0),Ad(n,i());const a=t.createBlock(n,!0);return b&&Sw(a,nq),a}function D(e,n){if(h.exportEquals){const r=$B(h.exportEquals.expression,A,U_);if(r)if(n){const n=t.createReturnStatement(r);nI(n,h.exportEquals),nw(n,3840),e.push(n)}else{const n=t.createExpressionStatement(t.createAssignment(t.createPropertyAccessExpression(t.createIdentifier("module"),"exports"),r));nI(n,h.exportEquals),nw(n,3072),e.push(n)}}}function F(e){switch(e.kind){case 272:return function(e){let n;const r=kg(e);if(2!==d){if(!e.importClause)return YC(nI(t.createExpressionStatement(J(e)),e),e);{const i=[];r&&!Sg(e)?i.push(t.createVariableDeclaration(t.cloneNode(r.name),void 0,void 0,M(e,J(e)))):(i.push(t.createVariableDeclaration(t.getGeneratedNameForNode(e),void 0,void 0,M(e,J(e)))),r&&Sg(e)&&i.push(t.createVariableDeclaration(t.cloneNode(r.name),void 0,void 0,t.getGeneratedNameForNode(e)))),n=ie(n,YC(nI(t.createVariableStatement(void 0,t.createVariableDeclarationList(i,_>=2?2:0)),e),e))}}else r&&Sg(e)&&(n=ie(n,t.createVariableStatement(void 0,t.createVariableDeclarationList([YC(nI(t.createVariableDeclaration(t.cloneNode(r.name),void 0,void 0,t.getGeneratedNameForNode(e)),e),e)],_>=2?2:0))));return n=function(e,t){if(h.exportEquals)return e;const n=t.importClause;if(!n)return e;const r=new OJ;n.name&&(e=H(e,r,n));const i=n.namedBindings;if(i)switch(i.kind){case 274:e=H(e,r,i);break;case 275:for(const t of i.elements)e=H(e,r,t,!0)}return e}(n,e),ke(n)}(e);case 271:return function(e){let n;return un.assert(Sm(e),"import= for internal module references should be handled in an earlier transformer."),2!==d?n=wv(e,32)?ie(n,YC(nI(t.createExpressionStatement(Q(e.name,J(e))),e),e)):ie(n,YC(nI(t.createVariableStatement(void 0,t.createVariableDeclarationList([t.createVariableDeclaration(t.cloneNode(e.name),void 0,void 0,J(e))],_>=2?2:0)),e),e)):wv(e,32)&&(n=ie(n,YC(nI(t.createExpressionStatement(Q(t.getExportName(e),t.getLocalName(e))),e),e))),n=function(e,t){return h.exportEquals?e:H(e,new OJ,t)}(n,e),ke(n)}(e);case 278:return function(e){if(!e.moduleSpecifier)return;const r=t.getGeneratedNameForNode(e);if(e.exportClause&&mE(e.exportClause)){const i=[];2!==d&&i.push(YC(nI(t.createVariableStatement(void 0,t.createVariableDeclarationList([t.createVariableDeclaration(r,void 0,void 0,J(e))])),e),e));for(const o of e.exportClause.elements){const s=o.propertyName||o.name,c=!kk(a)||2&Yd(e)||!$d(s)?r:n().createImportDefaultHelper(r),l=11===s.kind?t.createElementAccessExpression(c,s):t.createPropertyAccessExpression(c,s);i.push(YC(nI(t.createExpressionStatement(Q(11===o.name.kind?t.cloneNode(o.name):t.getExportName(o),l,void 0,!0)),o),o))}return ke(i)}if(e.exportClause){const i=[];return i.push(YC(nI(t.createExpressionStatement(Q(t.cloneNode(e.exportClause.name),function(e,t){return!kk(a)||2&Yd(e)?t:DJ(e)?n().createImportStarHelper(t):t}(e,2!==d?J(e):Ud(e)||11===e.exportClause.name.kind?r:t.createIdentifier(mc(e.exportClause.name))))),e),e)),ke(i)}return YC(nI(t.createExpressionStatement(n().createExportStarHelper(2!==d?J(e):r)),e),e)}(e);case 277:return function(e){if(!e.isExportEquals)return X(t.createIdentifier("default"),$B(e.expression,A,U_),e,!0)}(e);default:return E(e)}}function E(n){switch(n.kind){case 243:return function(n){let r,i,o;if(wv(n,32)){let e,a=!1;for(const r of n.declarationList.declarations)if(zN(r.name)&&YP(r.name))e||(e=HB(n.modifiers,Y,Yl)),i=r.initializer?ie(i,t.updateVariableDeclaration(r,r.name,void 0,void 0,Q(r.name,$B(r.initializer,A,U_)))):ie(i,r);else if(r.initializer)if(!x_(r.name)&&(tF(r.initializer)||eF(r.initializer)||pF(r.initializer))){const e=t.createAssignment(nI(t.createPropertyAccessExpression(t.createIdentifier("exports"),r.name),r.name),t.createIdentifier(zh(r.name)));i=ie(i,t.createVariableDeclaration(r.name,r.exclamationToken,r.type,$B(r.initializer,A,U_))),o=ie(o,e),a=!0}else o=ie(o,q(r));if(i&&(r=ie(r,t.updateVariableStatement(n,e,t.updateVariableDeclarationList(n.declarationList,i)))),o){const e=YC(nI(t.createExpressionStatement(t.inlineExpressions(o)),n),n);a&&tw(e),r=ie(r,e)}}else r=ie(r,nJ(n,A,e));return r=function(e,t){return U(e,t.declarationList,!1)}(r,n),ke(r)}(n);case 262:return function(n){let r;return r=wv(n,32)?ie(r,YC(nI(t.createFunctionDeclaration(HB(n.modifiers,Y,Yl),n.asteriskToken,t.getDeclarationName(n,!0,!0),void 0,HB(n.parameters,A,oD),void 0,nJ(n.body,A,e)),n),n)):ie(r,nJ(n,A,e)),ke(r)}(n);case 263:return function(n){let r;return r=wv(n,32)?ie(r,YC(nI(t.createClassDeclaration(HB(n.modifiers,Y,m_),t.getDeclarationName(n,!0,!0),void 0,HB(n.heritageClauses,A,jE),HB(n.members,A,l_)),n),n)):ie(r,nJ(n,A,e)),r=W(r,n),ke(r)}(n);case 248:return L(n,!0);case 249:return function(n){if(WF(n.initializer)&&!(7&n.initializer.flags)){const r=U(void 0,n.initializer,!0);if($(r)){const i=$B(n.initializer,I,Z_),o=$B(n.expression,A,U_),a=eJ(n.statement,E,e),s=CF(a)?t.updateBlock(a,[...r,...a.statements]):t.createBlock([...r,a],!0);return t.updateForInStatement(n,i,o,s)}}return t.updateForInStatement(n,$B(n.initializer,I,Z_),$B(n.expression,A,U_),eJ(n.statement,E,e))}(n);case 250:return function(n){if(WF(n.initializer)&&!(7&n.initializer.flags)){const r=U(void 0,n.initializer,!0),i=$B(n.initializer,I,Z_),o=$B(n.expression,A,U_);let a=eJ(n.statement,E,e);return $(r)&&(a=CF(a)?t.updateBlock(a,[...r,...a.statements]):t.createBlock([...r,a],!0)),t.updateForOfStatement(n,n.awaitModifier,i,o,a)}return t.updateForOfStatement(n,n.awaitModifier,$B(n.initializer,I,Z_),$B(n.expression,A,U_),eJ(n.statement,E,e))}(n);case 246:return function(n){return t.updateDoStatement(n,eJ(n.statement,E,e),$B(n.expression,A,U_))}(n);case 247:return function(n){return t.updateWhileStatement(n,$B(n.expression,A,U_),eJ(n.statement,E,e))}(n);case 256:return function(e){return t.updateLabeledStatement(e,e.label,$B(e.statement,E,du,t.liftToBlock)??nI(t.createEmptyStatement(),e.statement))}(n);case 254:return function(e){return t.updateWithStatement(e,$B(e.expression,A,U_),un.checkDefined($B(e.statement,E,du,t.liftToBlock)))}(n);case 245:return function(e){return t.updateIfStatement(e,$B(e.expression,A,U_),$B(e.thenStatement,E,du,t.liftToBlock)??t.createBlock([]),$B(e.elseStatement,E,du,t.liftToBlock))}(n);case 255:return function(e){return t.updateSwitchStatement(e,$B(e.expression,A,U_),un.checkDefined($B(e.caseBlock,E,ZF)))}(n);case 269:return function(e){return t.updateCaseBlock(e,HB(e.clauses,E,xu))}(n);case 296:return function(e){return t.updateCaseClause(e,$B(e.expression,A,U_),HB(e.statements,E,du))}(n);case 297:case 258:return function(t){return nJ(t,E,e)}(n);case 299:return function(e){return t.updateCatchClause(e,e.variableDeclaration,un.checkDefined($B(e.block,E,CF)))}(n);case 241:return function(t){return t=nJ(t,E,e)}(n);default:return A(n)}}function P(r,i){if(!(276828160&r.transformFlags||(null==y?void 0:y.length)))return r;switch(r.kind){case 248:return L(r,!1);case 244:return function(e){return t.updateExpressionStatement(e,$B(e.expression,I,U_))}(r);case 217:return function(e,n){return t.updateParenthesizedExpression(e,$B(e.expression,n?I:A,U_))}(r,i);case 355:return function(e,n){return t.updatePartiallyEmittedExpression(e,$B(e.expression,n?I:A,U_))}(r,i);case 213:const l=r===fe(y);if(l&&y.shift(),cf(r)&&c.shouldTransformImportCall(g))return function(r,i){if(0===d&&_>=7)return nJ(r,A,e);const l=mA(t,r,g,c,s,a),u=$B(fe(r.arguments),A,U_),p=!l||u&&TN(u)&&u.text===l.text?u&&i?TN(u)?iz(u,a):n().createRewriteRelativeImportExtensionsHelper(u):u:l,f=!!(16384&r.transformFlags);switch(a.module){case 2:return j(p,f);case 3:return function(e,n){if(b=!0,jJ(e)){const r=Vl(e)?e:TN(e)?t.createStringLiteralFromNode(e):nw(nI(t.cloneNode(e),e),3072);return t.createConditionalExpression(t.createIdentifier("__syncRequire"),void 0,R(e),void 0,j(r,n))}{const r=t.createTempVariable(o);return t.createComma(t.createAssignment(r,e),t.createConditionalExpression(t.createIdentifier("__syncRequire"),void 0,R(r,!0),void 0,j(r,n)))}}(p??t.createVoidZero(),f);default:return R(p)}}(r,l);if(l)return function(e){return t.updateCallExpression(e,e.expression,void 0,HB(e.arguments,(t=>t===e.arguments[0]?Lu(t)?iz(t,a):n().createRewriteRelativeImportExtensionsHelper(t):A(t)),U_))}(r);break;case 226:if(rb(r))return function(t,n){return O(t.left)?az(t,A,e,0,!n,z):nJ(t,A,e)}(r,i);break;case 224:case 225:return function(n,r){if((46===n.operator||47===n.operator)&&zN(n.operand)&&!Vl(n.operand)&&!YP(n.operand)&&!Qb(n.operand)){const e=ee(n.operand);if(e){let i,a=$B(n.operand,A,U_);aF(n)?a=t.updatePrefixUnaryExpression(n,a):(a=t.updatePostfixUnaryExpression(n,a),r||(i=t.createTempVariable(o),a=t.createAssignment(i,a),nI(a,n)),a=t.createComma(a,t.cloneNode(n.operand)),nI(a,n));for(const t of e)v[jB(a)]=!0,a=Q(t,a),nI(a,n);return i&&(v[jB(a)]=!0,a=t.createComma(a,i),nI(a,n)),a}}return nJ(n,A,e)}(r,i)}return nJ(r,A,e)}function A(e){return P(e,!1)}function I(e){return P(e,!0)}function O(e){if($D(e))for(const t of e.properties)switch(t.kind){case 303:if(O(t.initializer))return!0;break;case 304:if(O(t.name))return!0;break;case 305:if(O(t.expression))return!0;break;case 174:case 177:case 178:return!1;default:un.assertNever(t,"Unhandled object member kind")}else if(WD(e)){for(const t of e.elements)if(dF(t)){if(O(t.expression))return!0}else if(O(t))return!0}else if(zN(e))return u(ee(e))>(ZP(e)?1:0);return!1}function L(n,r){if(r&&n.initializer&&WF(n.initializer)&&!(7&n.initializer.flags)){const i=U(void 0,n.initializer,!1);if(i){const o=[],a=$B(n.initializer,I,WF),s=t.createVariableStatement(void 0,a);o.push(s),se(o,i);const c=$B(n.condition,A,U_),l=$B(n.incrementor,I,U_),_=eJ(n.statement,r?E:A,e);return o.push(t.updateForStatement(n,void 0,c,l,_)),o}}return t.updateForStatement(n,$B(n.initializer,I,Z_),$B(n.condition,A,U_),$B(n.incrementor,I,U_),eJ(n.statement,r?E:A,e))}function j(e,r){const i=t.createUniqueName("resolve"),o=t.createUniqueName("reject"),s=[t.createParameterDeclaration(void 0,void 0,i),t.createParameterDeclaration(void 0,void 0,o)],c=t.createBlock([t.createExpressionStatement(t.createCallExpression(t.createIdentifier("require"),void 0,[t.createArrayLiteralExpression([e||t.createOmittedExpression()]),i,o]))]);let l;_>=2?l=t.createArrowFunction(void 0,void 0,s,void 0,void 0,c):(l=t.createFunctionExpression(void 0,void 0,void 0,void 0,s,void 0,c),r&&nw(l,16));const u=t.createNewExpression(t.createIdentifier("Promise"),void 0,[l]);return kk(a)?t.createCallExpression(t.createPropertyAccessExpression(u,t.createIdentifier("then")),void 0,[n().createImportStarCallbackHelper()]):u}function R(e,r){const i=e&&!RJ(e)&&!r,o=t.createCallExpression(t.createPropertyAccessExpression(t.createIdentifier("Promise"),"resolve"),void 0,i?_>=2?[t.createTemplateExpression(t.createTemplateHead(""),[t.createTemplateSpan(e,t.createTemplateTail(""))])]:[t.createCallExpression(t.createPropertyAccessExpression(t.createStringLiteral(""),"concat"),void 0,[e])]:[]);let s=t.createCallExpression(t.createIdentifier("require"),void 0,i?[t.createIdentifier("s")]:e?[e]:[]);kk(a)&&(s=n().createImportStarHelper(s));const c=i?[t.createParameterDeclaration(void 0,void 0,"s")]:[];let l;return l=_>=2?t.createArrowFunction(void 0,void 0,c,void 0,void 0,s):t.createFunctionExpression(void 0,void 0,void 0,void 0,c,void 0,t.createBlock([t.createReturnStatement(s)])),t.createCallExpression(t.createPropertyAccessExpression(o,"then"),void 0,[l])}function M(e,t){return!kk(a)||2&Yd(e)?t:FJ(e)?n().createImportStarHelper(t):EJ(e)?n().createImportDefaultHelper(t):t}function J(e){const n=mA(t,e,g,c,s,a),r=[];return n&&r.push(iz(n,a)),t.createCallExpression(t.createIdentifier("require"),void 0,r)}function z(e,n,r){const i=ee(e);if(i){let o=ZP(e)?n:t.createAssignment(e,n);for(const e of i)nw(o,8),o=Q(e,o,r);return o}return t.createAssignment(e,n)}function q(n){return x_(n.name)?az($B(n,A,Zb),A,e,0,!1,z):t.createAssignment(nI(t.createPropertyAccessExpression(t.createIdentifier("exports"),n.name),n.name),n.initializer?$B(n.initializer,A,U_):t.createVoidZero())}function U(e,t,n){if(h.exportEquals)return e;for(const r of t.declarations)e=V(e,r,n);return e}function V(e,t,n){if(h.exportEquals)return e;if(x_(t.name))for(const r of t.name.elements)fF(r)||(e=V(e,r,n));else Vl(t.name)||VF(t)&&!t.initializer&&!n||(e=H(e,new OJ,t));return e}function W(e,n){if(h.exportEquals)return e;const r=new OJ;return wv(n,32)&&(e=K(e,r,wv(n,2048)?t.createIdentifier("default"):t.getDeclarationName(n),t.getLocalName(n),n)),n.name&&(e=H(e,r,n)),e}function H(e,n,r,i){const o=t.getDeclarationName(r),a=h.exportSpecifiers.get(o);if(a)for(const t of a)e=K(e,n,t.name,o,t.name,void 0,i);return e}function K(e,t,n,r,i,o,a){if(11!==n.kind){if(t.has(n))return e;t.set(n,!0)}return ie(e,X(n,r,i,o,a))}function G(){const e=t.createExpressionStatement(t.createCallExpression(t.createPropertyAccessExpression(t.createIdentifier("Object"),"defineProperty"),void 0,[t.createIdentifier("exports"),t.createStringLiteral("__esModule"),t.createObjectLiteralExpression([t.createPropertyAssignment("value",t.createTrue())])]));return nw(e,2097152),e}function X(e,n,r,i,o){const a=nI(t.createExpressionStatement(Q(e,n,void 0,o)),r);return _A(a),i||nw(a,3072),a}function Q(e,n,r,i){return nI(i?t.createCallExpression(t.createPropertyAccessExpression(t.createIdentifier("Object"),"defineProperty"),void 0,[t.createIdentifier("exports"),t.createStringLiteralFromNode(e),t.createObjectLiteralExpression([t.createPropertyAssignment("enumerable",t.createTrue()),t.createPropertyAssignment("get",t.createFunctionExpression(void 0,void 0,void 0,void 0,[],void 0,t.createBlock([t.createReturnStatement(n)])))])]):t.createAssignment(11===e.kind?t.createElementAccessExpression(t.createIdentifier("exports"),t.cloneNode(e)):t.createPropertyAccessExpression(t.createIdentifier("exports"),t.cloneNode(e)),n),r)}function Y(e){switch(e.kind){case 95:case 90:return}return e}function Z(e){var n,r;if(8192&Qd(e)){const n=uA(g);return n?t.createPropertyAccessExpression(n,e):e}if((!Vl(e)||64&e.emitNode.autoGenerate.flags)&&!YP(e)){const i=s.getReferencedExportContainer(e,ZP(e));if(i&&307===i.kind)return nI(t.createPropertyAccessExpression(t.createIdentifier("exports"),t.cloneNode(e)),e);const o=s.getReferencedImportDeclaration(e);if(o){if(rE(o))return nI(t.createPropertyAccessExpression(t.getGeneratedNameForNode(o.parent),t.createIdentifier("default")),e);if(dE(o)){const i=o.propertyName||o.name,a=t.getGeneratedNameForNode((null==(r=null==(n=o.parent)?void 0:n.parent)?void 0:r.parent)||o);return nI(11===i.kind?t.createElementAccessExpression(a,t.cloneNode(i)):t.createPropertyAccessExpression(a,t.cloneNode(i)),e)}}}return e}function ee(e){if(Vl(e)){if($l(e)){const t=null==h?void 0:h.exportSpecifiers.get(e);if(t){const e=[];for(const n of t)e.push(n.name);return e}}}else{const t=s.getReferencedImportDeclaration(e);if(t)return null==h?void 0:h.exportedBindings[TJ(t)];const n=new Set,r=s.getReferencedValueDeclarations(e);if(r){for(const e of r){const t=null==h?void 0:h.exportedBindings[TJ(e)];if(t)for(const e of t)n.add(e)}if(n.size)return Oe(n)}}}}var nq={name:"typescript:dynamicimport-sync-require",scoped:!0,text:'\n var __syncRequire = typeof module === "object" && typeof module.exports === "object";'};function rq(e){const{factory:t,startLexicalEnvironment:n,endLexicalEnvironment:r,hoistVariableDeclaration:i}=e,o=e.getCompilerOptions(),a=e.getEmitResolver(),s=e.getEmitHost(),c=e.onSubstituteNode,l=e.onEmitNode;e.onSubstituteNode=function(e,n){return function(e){return x&&e.id&&x[e.id]}(n=c(e,n))?n:1===e?function(e){switch(e.kind){case 80:return function(e){var n,r;if(8192&Qd(e)){const n=uA(m);return n?t.createPropertyAccessExpression(n,e):e}if(!Vl(e)&&!YP(e)){const i=a.getReferencedImportDeclaration(e);if(i){if(rE(i))return nI(t.createPropertyAccessExpression(t.getGeneratedNameForNode(i.parent),t.createIdentifier("default")),e);if(dE(i)){const o=i.propertyName||i.name,a=t.getGeneratedNameForNode((null==(r=null==(n=i.parent)?void 0:n.parent)?void 0:r.parent)||i);return nI(11===o.kind?t.createElementAccessExpression(a,t.cloneNode(o)):t.createPropertyAccessExpression(a,t.cloneNode(o)),e)}}}return e}(e);case 226:return function(e){if(Zv(e.operatorToken.kind)&&zN(e.left)&&(!Vl(e.left)||$l(e.left))&&!YP(e.left)){const t=H(e.left);if(t){let n=e;for(const e of t)n=R(e,K(n));return n}}return e}(e);case 236:return function(e){return lf(e)?t.createPropertyAccessExpression(y,t.createIdentifier("meta")):e}(e)}return e}(n):4===e?function(e){return 304===e.kind?function(e){var n,r;const i=e.name;if(!Vl(i)&&!YP(i)){const o=a.getReferencedImportDeclaration(i);if(o){if(rE(o))return nI(t.createPropertyAssignment(t.cloneNode(i),t.createPropertyAccessExpression(t.getGeneratedNameForNode(o.parent),t.createIdentifier("default"))),e);if(dE(o)){const a=o.propertyName||o.name,s=t.getGeneratedNameForNode((null==(r=null==(n=o.parent)?void 0:n.parent)?void 0:r.parent)||o);return nI(t.createPropertyAssignment(t.cloneNode(i),11===a.kind?t.createElementAccessExpression(s,t.cloneNode(a)):t.createPropertyAccessExpression(s,t.cloneNode(a))),e)}}}return e}(e):e}(n):n},e.onEmitNode=function(e,t,n){if(307===t.kind){const r=TJ(t);m=t,g=_[r],h=u[r],x=p[r],y=f[r],x&&delete p[r],l(e,t,n),m=void 0,g=void 0,h=void 0,y=void 0,x=void 0}else l(e,t,n)},e.enableSubstitution(80),e.enableSubstitution(304),e.enableSubstitution(226),e.enableSubstitution(236),e.enableEmitNotification(307);const _=[],u=[],p=[],f=[];let m,g,h,y,v,b,x;return NJ(e,(function(i){if(i.isDeclarationFile||!(mp(i,o)||8388608&i.transformFlags))return i;const c=TJ(i);m=i,b=i,g=_[c]=PJ(e,i),h=t.createUniqueName("exports"),u[c]=h,y=f[c]=t.createUniqueName("context");const l=function(e){const n=new Map,r=[];for(const i of e){const e=mA(t,i,m,s,a,o);if(e){const t=e.text,o=n.get(t);void 0!==o?r[o].externalImports.push(i):(n.set(t,r.length),r.push({name:e,externalImports:[i]}))}}return r}(g.externalImports),d=function(e,i){const a=[];n();const s=Mk(o,"alwaysStrict")||MI(m),c=t.copyPrologue(e.statements,a,s,T);a.push(t.createVariableStatement(void 0,t.createVariableDeclarationList([t.createVariableDeclaration("__moduleName",void 0,void 0,t.createLogicalAnd(y,t.createPropertyAccessExpression(y,"id")))]))),$B(g.externalHelpersImportDeclaration,T,du);const l=HB(e.statements,T,du,c);se(a,v),Ad(a,r());const _=function(e){if(!g.hasExportStarsToExportValues)return;if(!$(g.exportedNames)&&0===g.exportedFunctions.size&&0===g.exportSpecifiers.size){let t=!1;for(const e of g.externalImports)if(278===e.kind&&e.exportClause){t=!0;break}if(!t){const t=k(void 0);return e.push(t),t.name}}const n=[];if(g.exportedNames)for(const e of g.exportedNames)$d(e)||n.push(t.createPropertyAssignment(t.createStringLiteralFromNode(e),t.createTrue()));for(const e of g.exportedFunctions)wv(e,2048)||(un.assert(!!e.name),n.push(t.createPropertyAssignment(t.createStringLiteralFromNode(e.name),t.createTrue())));const r=t.createUniqueName("exportedNames");e.push(t.createVariableStatement(void 0,t.createVariableDeclarationList([t.createVariableDeclaration(r,void 0,void 0,t.createObjectLiteralExpression(n,!0))])));const i=k(r);return e.push(i),i.name}(a),u=2097152&e.transformFlags?t.createModifiersFromModifierFlags(1024):void 0,d=t.createObjectLiteralExpression([t.createPropertyAssignment("setters",S(_,i)),t.createPropertyAssignment("execute",t.createFunctionExpression(u,void 0,void 0,void 0,[],void 0,t.createBlock(l,!0)))],!0);return a.push(t.createReturnStatement(d)),t.createBlock(a,!0)}(i,l),C=t.createFunctionExpression(void 0,void 0,void 0,void 0,[t.createParameterDeclaration(void 0,void 0,h),t.createParameterDeclaration(void 0,void 0,y)],void 0,d),w=gA(t,i,s,o),N=t.createArrayLiteralExpression(E(l,(e=>e.name))),D=nw(t.updateSourceFile(i,nI(t.createNodeArray([t.createExpressionStatement(t.createCallExpression(t.createPropertyAccessExpression(t.createIdentifier("System"),"register"),void 0,w?[w,N,C]:[N,C]))]),i.statements)),2048);return o.outFile||Nw(D,d,(e=>!e.scoped)),x&&(p[c]=x,x=void 0),m=void 0,g=void 0,h=void 0,y=void 0,v=void 0,b=void 0,D}));function k(e){const n=t.createUniqueName("exportStar"),r=t.createIdentifier("m"),i=t.createIdentifier("n"),o=t.createIdentifier("exports");let a=t.createStrictInequality(i,t.createStringLiteral("default"));return e&&(a=t.createLogicalAnd(a,t.createLogicalNot(t.createCallExpression(t.createPropertyAccessExpression(e,"hasOwnProperty"),void 0,[i])))),t.createFunctionDeclaration(void 0,void 0,n,void 0,[t.createParameterDeclaration(void 0,void 0,r)],void 0,t.createBlock([t.createVariableStatement(void 0,t.createVariableDeclarationList([t.createVariableDeclaration(o,void 0,void 0,t.createObjectLiteralExpression([]))])),t.createForInStatement(t.createVariableDeclarationList([t.createVariableDeclaration(i)]),r,t.createBlock([nw(t.createIfStatement(a,t.createExpressionStatement(t.createAssignment(t.createElementAccessExpression(o,i),t.createElementAccessExpression(r,i)))),1)])),t.createExpressionStatement(t.createCallExpression(h,void 0,[o]))],!0))}function S(e,n){const r=[];for(const i of n){const n=d(i.externalImports,(e=>fA(t,e,m))),o=n?t.getGeneratedNameForNode(n):t.createUniqueName(""),a=[];for(const n of i.externalImports){const r=fA(t,n,m);switch(n.kind){case 272:if(!n.importClause)break;case 271:un.assert(void 0!==r),a.push(t.createExpressionStatement(t.createAssignment(r,o))),wv(n,32)&&a.push(t.createExpressionStatement(t.createCallExpression(h,void 0,[t.createStringLiteral(mc(r)),o])));break;case 278:if(un.assert(void 0!==r),n.exportClause)if(mE(n.exportClause)){const e=[];for(const r of n.exportClause.elements)e.push(t.createPropertyAssignment(t.createStringLiteral(Vd(r.name)),t.createElementAccessExpression(o,t.createStringLiteral(Vd(r.propertyName||r.name)))));a.push(t.createExpressionStatement(t.createCallExpression(h,void 0,[t.createObjectLiteralExpression(e,!0)])))}else a.push(t.createExpressionStatement(t.createCallExpression(h,void 0,[t.createStringLiteral(Vd(n.exportClause.name)),o])));else a.push(t.createExpressionStatement(t.createCallExpression(e,void 0,[o])))}}r.push(t.createFunctionExpression(void 0,void 0,void 0,void 0,[t.createParameterDeclaration(void 0,void 0,o)],void 0,t.createBlock(a,!0)))}return t.createArrayLiteralExpression(r,!0)}function T(e){switch(e.kind){case 272:return function(e){return e.importClause&&i(fA(t,e,m)),ke(function(e,t){if(g.exportEquals)return e;const n=t.importClause;if(!n)return e;n.name&&(e=O(e,n));const r=n.namedBindings;if(r)switch(r.kind){case 274:e=O(e,r);break;case 275:for(const t of r.elements)e=O(e,t)}return e}(undefined,e))}(e);case 271:return function(e){return un.assert(Sm(e),"import= for internal module references should be handled in an earlier transformer."),i(fA(t,e,m)),ke(function(e,t){return g.exportEquals?e:O(e,t)}(undefined,e))}(e);case 278:return function(e){un.assertIsDefined(e)}(e);case 277:return function(e){if(e.isExportEquals)return;const n=$B(e.expression,q,U_);return j(t.createIdentifier("default"),n,!0)}(e);default:return M(e)}}function C(e){if(x_(e.name))for(const t of e.name.elements)fF(t)||C(t);else i(t.cloneNode(e.name))}function w(e){return!(4194304&Qd(e)||307!==b.kind&&7&lc(e).flags)}function N(t,n){const r=n?D:F;return x_(t.name)?az(t,q,e,0,!1,r):t.initializer?r(t.name,$B(t.initializer,q,U_)):t.name}function D(e,t,n){return P(e,t,n,!0)}function F(e,t,n){return P(e,t,n,!1)}function P(e,n,r,o){return i(t.cloneNode(e)),o?R(e,K(nI(t.createAssignment(e,n),r))):K(nI(t.createAssignment(e,n),r))}function A(e,n,r){if(g.exportEquals)return e;if(x_(n.name))for(const t of n.name.elements)fF(t)||(e=A(e,t,r));else if(!Vl(n.name)){let i;r&&(e=L(e,n.name,t.getLocalName(n)),i=mc(n.name)),e=O(e,n,i)}return e}function I(e,n){if(g.exportEquals)return e;let r;if(wv(n,32)){const i=wv(n,2048)?t.createStringLiteral("default"):n.name;e=L(e,i,t.getLocalName(n)),r=zh(i)}return n.name&&(e=O(e,n,r)),e}function O(e,n,r){if(g.exportEquals)return e;const i=t.getDeclarationName(n),o=g.exportSpecifiers.get(i);if(o)for(const t of o)Vd(t.name)!==r&&(e=L(e,t.name,i));return e}function L(e,t,n,r){return ie(e,j(t,n,r))}function j(e,n,r){const i=t.createExpressionStatement(R(e,n));return _A(i),r||nw(i,3072),i}function R(e,n){const r=zN(e)?t.createStringLiteralFromNode(e):e;return nw(n,3072|Qd(n)),pw(t.createCallExpression(h,void 0,[r,n]),n)}function M(n){switch(n.kind){case 243:return function(e){if(!w(e.declarationList))return $B(e,q,du);let n;if(nf(e.declarationList)||tf(e.declarationList)){const r=HB(e.modifiers,W,m_),i=[];for(const n of e.declarationList.declarations)i.push(t.updateVariableDeclaration(n,t.getGeneratedNameForNode(n.name),void 0,void 0,N(n,!1)));const o=t.updateVariableDeclarationList(e.declarationList,i);n=ie(n,t.updateVariableStatement(e,r,o))}else{let r;const i=wv(e,32);for(const t of e.declarationList.declarations)t.initializer?r=ie(r,N(t,i)):C(t);r&&(n=ie(n,nI(t.createExpressionStatement(t.inlineExpressions(r)),e)))}return n=function(e,t,n){if(g.exportEquals)return e;for(const r of t.declarationList.declarations)r.initializer&&(e=A(e,r,n));return e}(n,e,!1),ke(n)}(n);case 262:return function(n){v=wv(n,32)?ie(v,t.updateFunctionDeclaration(n,HB(n.modifiers,W,m_),n.asteriskToken,t.getDeclarationName(n,!0,!0),void 0,HB(n.parameters,q,oD),void 0,$B(n.body,q,CF))):ie(v,nJ(n,q,e)),v=I(v,n)}(n);case 263:return function(e){let n;const r=t.getLocalName(e);return i(r),n=ie(n,nI(t.createExpressionStatement(t.createAssignment(r,nI(t.createClassExpression(HB(e.modifiers,W,m_),e.name,void 0,HB(e.heritageClauses,q,jE),HB(e.members,q,l_)),e))),e)),n=I(n,e),ke(n)}(n);case 248:return B(n,!0);case 249:return function(n){const r=b;return b=n,n=t.updateForInStatement(n,J(n.initializer),$B(n.expression,q,U_),eJ(n.statement,M,e)),b=r,n}(n);case 250:return function(n){const r=b;return b=n,n=t.updateForOfStatement(n,n.awaitModifier,J(n.initializer),$B(n.expression,q,U_),eJ(n.statement,M,e)),b=r,n}(n);case 246:return function(n){return t.updateDoStatement(n,eJ(n.statement,M,e),$B(n.expression,q,U_))}(n);case 247:return function(n){return t.updateWhileStatement(n,$B(n.expression,q,U_),eJ(n.statement,M,e))}(n);case 256:return function(e){return t.updateLabeledStatement(e,e.label,$B(e.statement,M,du,t.liftToBlock)??t.createExpressionStatement(t.createIdentifier("")))}(n);case 254:return function(e){return t.updateWithStatement(e,$B(e.expression,q,U_),un.checkDefined($B(e.statement,M,du,t.liftToBlock)))}(n);case 245:return function(e){return t.updateIfStatement(e,$B(e.expression,q,U_),$B(e.thenStatement,M,du,t.liftToBlock)??t.createBlock([]),$B(e.elseStatement,M,du,t.liftToBlock))}(n);case 255:return function(e){return t.updateSwitchStatement(e,$B(e.expression,q,U_),un.checkDefined($B(e.caseBlock,M,ZF)))}(n);case 269:return function(e){const n=b;return b=e,e=t.updateCaseBlock(e,HB(e.clauses,M,xu)),b=n,e}(n);case 296:return function(e){return t.updateCaseClause(e,$B(e.expression,q,U_),HB(e.statements,M,du))}(n);case 297:case 258:return function(t){return nJ(t,M,e)}(n);case 299:return function(e){const n=b;return b=e,e=t.updateCatchClause(e,e.variableDeclaration,un.checkDefined($B(e.block,M,CF))),b=n,e}(n);case 241:return function(t){const n=b;return b=t,t=nJ(t,M,e),b=n,t}(n);default:return q(n)}}function B(n,r){const i=b;return b=n,n=t.updateForStatement(n,$B(n.initializer,r?J:U,Z_),$B(n.condition,q,U_),$B(n.incrementor,U,U_),eJ(n.statement,r?M:q,e)),b=i,n}function J(e){if(function(e){return WF(e)&&w(e)}(e)){let n;for(const t of e.declarations)n=ie(n,N(t,!1)),t.initializer||C(t);return n?t.inlineExpressions(n):t.createOmittedExpression()}return $B(e,U,Z_)}function z(n,r){if(!(276828160&n.transformFlags))return n;switch(n.kind){case 248:return B(n,!1);case 244:return function(e){return t.updateExpressionStatement(e,$B(e.expression,U,U_))}(n);case 217:return function(e,n){return t.updateParenthesizedExpression(e,$B(e.expression,n?U:q,U_))}(n,r);case 355:return function(e,n){return t.updatePartiallyEmittedExpression(e,$B(e.expression,n?U:q,U_))}(n,r);case 226:if(rb(n))return function(t,n){return V(t.left)?az(t,q,e,0,!n):nJ(t,q,e)}(n,r);break;case 213:if(cf(n))return function(e){const n=mA(t,e,m,s,a,o),r=$B(fe(e.arguments),q,U_),i=!n||r&&TN(r)&&r.text===n.text?r:n;return t.createCallExpression(t.createPropertyAccessExpression(y,t.createIdentifier("import")),void 0,i?[i]:[])}(n);break;case 224:case 225:return function(n,r){if((46===n.operator||47===n.operator)&&zN(n.operand)&&!Vl(n.operand)&&!YP(n.operand)&&!Qb(n.operand)){const e=H(n.operand);if(e){let o,a=$B(n.operand,q,U_);aF(n)?a=t.updatePrefixUnaryExpression(n,a):(a=t.updatePostfixUnaryExpression(n,a),r||(o=t.createTempVariable(i),a=t.createAssignment(o,a),nI(a,n)),a=t.createComma(a,t.cloneNode(n.operand)),nI(a,n));for(const t of e)a=R(t,K(a));return o&&(a=t.createComma(a,o),nI(a,n)),a}}return nJ(n,q,e)}(n,r)}return nJ(n,q,e)}function q(e){return z(e,!1)}function U(e){return z(e,!0)}function V(e){if(nb(e,!0))return V(e.left);if(dF(e))return V(e.expression);if($D(e))return $(e.properties,V);if(WD(e))return $(e.elements,V);if(BE(e))return V(e.name);if(ME(e))return V(e.initializer);if(zN(e)){const t=a.getReferencedExportContainer(e);return void 0!==t&&307===t.kind}return!1}function W(e){switch(e.kind){case 95:case 90:return}return e}function H(e){let n;const r=function(e){if(!Vl(e)){const t=a.getReferencedImportDeclaration(e);if(t)return t;const n=a.getReferencedValueDeclaration(e);if(n&&(null==g?void 0:g.exportedBindings[TJ(n)]))return n;const r=a.getReferencedValueDeclarations(e);if(r)for(const e of r)if(e!==n&&(null==g?void 0:g.exportedBindings[TJ(e)]))return e;return n}}(e);if(r){const i=a.getReferencedExportContainer(e,!1);i&&307===i.kind&&(n=ie(n,t.getDeclarationName(r))),n=se(n,null==g?void 0:g.exportedBindings[TJ(r)])}else if(Vl(e)&&$l(e)){const t=null==g?void 0:g.exportSpecifiers.get(e);if(t){const e=[];for(const n of t)e.push(n.name);return e}}return n}function K(e){return void 0===x&&(x=[]),x[jB(e)]=!0,e}}function iq(e){const{factory:t,getEmitHelperFactory:n}=e,r=e.getEmitHost(),i=e.getEmitResolver(),o=e.getCompilerOptions(),a=hk(o),s=e.onEmitNode,c=e.onSubstituteNode;e.onEmitNode=function(e,t,n){qE(t)?((MI(t)||xk(o))&&o.importHelpers&&(u=new Map),d=t,s(e,t,n),d=void 0,u=void 0):s(e,t,n)},e.onSubstituteNode=function(e,n){return(n=c(e,n)).id&&l.has(n.id)?n:zN(n)&&8192&Qd(n)?function(e){const n=d&&uA(d);if(n)return l.add(jB(e)),t.createPropertyAccessExpression(n,e);if(u){const n=mc(e);let r=u.get(n);return r||u.set(n,r=t.createUniqueName(n,48)),r}return e}(n):n},e.enableEmitNotification(307),e.enableSubstitution(80);const l=new Set;let _,u,d,p;return NJ(e,(function(r){if(r.isDeclarationFile)return r;if(MI(r)||xk(o)){d=r,p=void 0,o.rewriteRelativeImportExtensions&&(4194304&d.flags||Fm(r))&&wC(r,!1,!1,(e=>{Lu(e.arguments[0])&&!bg(e.arguments[0].text,o)||(_=ie(_,e))}));let i=function(r){const i=pA(t,n(),r,o);if(i){const e=[],n=t.copyPrologue(r.statements,e);return se(e,KB([i],f,du)),se(e,HB(r.statements,f,du,n)),t.updateSourceFile(r,nI(t.createNodeArray(e),r.statements))}return nJ(r,f,e)}(r);return Tw(i,e.readEmitHelpers()),d=void 0,p&&(i=t.updateSourceFile(i,nI(t.createNodeArray(Id(i.statements.slice(),p)),i.statements))),!MI(r)||200===yk(o)||$(i.statements,G_)?i:t.updateSourceFile(i,nI(t.createNodeArray([...i.statements,BP(t)]),i.statements))}return r}));function f(r){switch(r.kind){case 271:return yk(o)>=100?function(e){let n;return un.assert(Sm(e),"import= for internal module references should be handled in an earlier transformer."),n=ie(n,YC(nI(t.createVariableStatement(void 0,t.createVariableDeclarationList([t.createVariableDeclaration(t.cloneNode(e.name),void 0,void 0,m(e))],a>=2?2:0)),e),e)),n=function(e,n){return wv(n,32)&&(e=ie(e,t.createExportDeclaration(void 0,n.isTypeOnly,t.createNamedExports([t.createExportSpecifier(!1,void 0,mc(n.name))])))),e}(n,e),ke(n)}(r):void 0;case 277:return function(e){return e.isExportEquals?200===yk(o)?YC(t.createExpressionStatement(t.createAssignment(t.createPropertyAccessExpression(t.createIdentifier("module"),"exports"),e.expression)),e):void 0:e}(r);case 278:return function(e){const n=iz(e.moduleSpecifier,o);if(void 0!==o.module&&o.module>5||!e.exportClause||!_E(e.exportClause)||!e.moduleSpecifier)return e.moduleSpecifier&&n!==e.moduleSpecifier?t.updateExportDeclaration(e,e.modifiers,e.isTypeOnly,e.exportClause,n,e.attributes):e;const r=e.exportClause.name,i=t.getGeneratedNameForNode(r),a=t.createImportDeclaration(void 0,t.createImportClause(!1,void 0,t.createNamespaceImport(i)),n,e.attributes);YC(a,e.exportClause);const s=Ud(e)?t.createExportDefault(i):t.createExportDeclaration(void 0,!1,t.createNamedExports([t.createExportSpecifier(!1,i,r)]));return YC(s,e),[a,s]}(r);case 272:return function(e){if(!o.rewriteRelativeImportExtensions)return e;const n=iz(e.moduleSpecifier,o);return n===e.moduleSpecifier?e:t.updateImportDeclaration(e,e.modifiers,e.importClause,n,e.attributes)}(r);case 213:if(r===(null==_?void 0:_[0]))return function(e){return t.updateCallExpression(e,e.expression,e.typeArguments,[Lu(e.arguments[0])?iz(e.arguments[0],o):n().createRewriteRelativeImportExtensionsHelper(e.arguments[0]),...e.arguments.slice(1)])}(_.shift());break;default:if((null==_?void 0:_.length)&&Gb(r,_[0]))return nJ(r,f,e)}return r}function m(e){const n=mA(t,e,un.checkDefined(d),r,i,o),s=[];if(n&&s.push(iz(n,o)),200===yk(o))return t.createCallExpression(t.createIdentifier("require"),void 0,s);if(!p){const e=t.createUniqueName("_createRequire",48),n=t.createImportDeclaration(void 0,t.createImportClause(!1,void 0,t.createNamedImports([t.createImportSpecifier(!1,t.createIdentifier("createRequire"),e)])),t.createStringLiteral("module"),void 0),r=t.createUniqueName("__require",48),i=t.createVariableStatement(void 0,t.createVariableDeclarationList([t.createVariableDeclaration(r,void 0,void 0,t.createCallExpression(t.cloneNode(e),void 0,[t.createPropertyAccessExpression(t.createMetaProperty(102,t.createIdentifier("meta")),t.createIdentifier("url"))]))],a>=2?2:0));p=[n,i]}const c=p[1].declarationList.declarations[0].name;return un.assertNode(c,zN),t.createCallExpression(t.cloneNode(c),void 0,s)}}function oq(e){const t=e.onSubstituteNode,n=e.onEmitNode,r=iq(e),i=e.onSubstituteNode,o=e.onEmitNode;e.onSubstituteNode=t,e.onEmitNode=n;const a=tq(e),s=e.onSubstituteNode,c=e.onEmitNode,l=t=>e.getEmitHost().getEmitModuleFormatOfFile(t);let _;return e.onSubstituteNode=function(e,n){return qE(n)?(_=n,t(e,n)):_?l(_)>=5?i(e,n):s(e,n):t(e,n)},e.onEmitNode=function(e,t,r){return qE(t)&&(_=t),_?l(_)>=5?o(e,t,r):c(e,t,r):n(e,t,r)},e.enableSubstitution(307),e.enableEmitNotification(307),function(t){return 307===t.kind?u(t):function(t){return e.factory.createBundle(E(t.sourceFiles,u))}(t)};function u(e){if(e.isDeclarationFile)return e;_=e;const t=(l(e)>=5?r:a)(e);return _=void 0,un.assert(qE(t)),t}}function aq(e){return VF(e)||cD(e)||sD(e)||VD(e)||Cu(e)||wu(e)||gD(e)||mD(e)||_D(e)||lD(e)||$F(e)||oD(e)||iD(e)||mF(e)||tE(e)||GF(e)||dD(e)||hD(e)||HD(e)||KD(e)||cF(e)||Ng(e)}function sq(e){return Cu(e)||wu(e)?function(t){const n=function(t){return Nv(e)?t.errorModuleName?2===t.accessibility?la.Public_static_property_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:la.Public_static_property_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:la.Public_static_property_0_of_exported_class_has_or_is_using_private_name_1:263===e.parent.kind?t.errorModuleName?2===t.accessibility?la.Public_property_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:la.Public_property_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:la.Public_property_0_of_exported_class_has_or_is_using_private_name_1:t.errorModuleName?la.Property_0_of_exported_interface_has_or_is_using_name_1_from_private_module_2:la.Property_0_of_exported_interface_has_or_is_using_private_name_1}(t);return void 0!==n?{diagnosticMessage:n,errorNode:e,typeName:e.name}:void 0}:lD(e)||_D(e)?function(t){const n=function(t){return Nv(e)?t.errorModuleName?2===t.accessibility?la.Public_static_method_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:la.Public_static_method_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:la.Public_static_method_0_of_exported_class_has_or_is_using_private_name_1:263===e.parent.kind?t.errorModuleName?2===t.accessibility?la.Public_method_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:la.Public_method_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:la.Public_method_0_of_exported_class_has_or_is_using_private_name_1:t.errorModuleName?la.Method_0_of_exported_interface_has_or_is_using_name_1_from_private_module_2:la.Method_0_of_exported_interface_has_or_is_using_private_name_1}(t);return void 0!==n?{diagnosticMessage:n,errorNode:e,typeName:e.name}:void 0}:cq(e)}function cq(e){return VF(e)||cD(e)||sD(e)||HD(e)||KD(e)||cF(e)||VD(e)||dD(e)?t:Cu(e)||wu(e)?function(t){let n;return n=178===e.kind?Nv(e)?t.errorModuleName?la.Parameter_type_of_public_static_setter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2:la.Parameter_type_of_public_static_setter_0_from_exported_class_has_or_is_using_private_name_1:t.errorModuleName?la.Parameter_type_of_public_setter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2:la.Parameter_type_of_public_setter_0_from_exported_class_has_or_is_using_private_name_1:Nv(e)?t.errorModuleName?2===t.accessibility?la.Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:la.Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2:la.Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_private_name_1:t.errorModuleName?2===t.accessibility?la.Return_type_of_public_getter_0_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:la.Return_type_of_public_getter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2:la.Return_type_of_public_getter_0_from_exported_class_has_or_is_using_private_name_1,{diagnosticMessage:n,errorNode:e.name,typeName:e.name}}:gD(e)||mD(e)||_D(e)||lD(e)||$F(e)||hD(e)?function(t){let n;switch(e.kind){case 180:n=t.errorModuleName?la.Return_type_of_constructor_signature_from_exported_interface_has_or_is_using_name_0_from_private_module_1:la.Return_type_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_0;break;case 179:n=t.errorModuleName?la.Return_type_of_call_signature_from_exported_interface_has_or_is_using_name_0_from_private_module_1:la.Return_type_of_call_signature_from_exported_interface_has_or_is_using_private_name_0;break;case 181:n=t.errorModuleName?la.Return_type_of_index_signature_from_exported_interface_has_or_is_using_name_0_from_private_module_1:la.Return_type_of_index_signature_from_exported_interface_has_or_is_using_private_name_0;break;case 174:case 173:n=Nv(e)?t.errorModuleName?2===t.accessibility?la.Return_type_of_public_static_method_from_exported_class_has_or_is_using_name_0_from_external_module_1_but_cannot_be_named:la.Return_type_of_public_static_method_from_exported_class_has_or_is_using_name_0_from_private_module_1:la.Return_type_of_public_static_method_from_exported_class_has_or_is_using_private_name_0:263===e.parent.kind?t.errorModuleName?2===t.accessibility?la.Return_type_of_public_method_from_exported_class_has_or_is_using_name_0_from_external_module_1_but_cannot_be_named:la.Return_type_of_public_method_from_exported_class_has_or_is_using_name_0_from_private_module_1:la.Return_type_of_public_method_from_exported_class_has_or_is_using_private_name_0:t.errorModuleName?la.Return_type_of_method_from_exported_interface_has_or_is_using_name_0_from_private_module_1:la.Return_type_of_method_from_exported_interface_has_or_is_using_private_name_0;break;case 262:n=t.errorModuleName?2===t.accessibility?la.Return_type_of_exported_function_has_or_is_using_name_0_from_external_module_1_but_cannot_be_named:la.Return_type_of_exported_function_has_or_is_using_name_0_from_private_module_1:la.Return_type_of_exported_function_has_or_is_using_private_name_0;break;default:return un.fail("This is unknown kind for signature: "+e.kind)}return{diagnosticMessage:n,errorNode:e.name||e}}:oD(e)?Ys(e,e.parent)&&wv(e.parent,2)?t:function(t){const n=function(t){switch(e.parent.kind){case 176:return t.errorModuleName?2===t.accessibility?la.Parameter_0_of_constructor_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:la.Parameter_0_of_constructor_from_exported_class_has_or_is_using_name_1_from_private_module_2:la.Parameter_0_of_constructor_from_exported_class_has_or_is_using_private_name_1;case 180:case 185:return t.errorModuleName?la.Parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2:la.Parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_1;case 179:return t.errorModuleName?la.Parameter_0_of_call_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2:la.Parameter_0_of_call_signature_from_exported_interface_has_or_is_using_private_name_1;case 181:return t.errorModuleName?la.Parameter_0_of_index_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2:la.Parameter_0_of_index_signature_from_exported_interface_has_or_is_using_private_name_1;case 174:case 173:return Nv(e.parent)?t.errorModuleName?2===t.accessibility?la.Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:la.Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_name_1_from_private_module_2:la.Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_private_name_1:263===e.parent.parent.kind?t.errorModuleName?2===t.accessibility?la.Parameter_0_of_public_method_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:la.Parameter_0_of_public_method_from_exported_class_has_or_is_using_name_1_from_private_module_2:la.Parameter_0_of_public_method_from_exported_class_has_or_is_using_private_name_1:t.errorModuleName?la.Parameter_0_of_method_from_exported_interface_has_or_is_using_name_1_from_private_module_2:la.Parameter_0_of_method_from_exported_interface_has_or_is_using_private_name_1;case 262:case 184:return t.errorModuleName?2===t.accessibility?la.Parameter_0_of_exported_function_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:la.Parameter_0_of_exported_function_has_or_is_using_name_1_from_private_module_2:la.Parameter_0_of_exported_function_has_or_is_using_private_name_1;case 178:case 177:return t.errorModuleName?2===t.accessibility?la.Parameter_0_of_accessor_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:la.Parameter_0_of_accessor_has_or_is_using_name_1_from_private_module_2:la.Parameter_0_of_accessor_has_or_is_using_private_name_1;default:return un.fail(`Unknown parent for parameter: ${un.formatSyntaxKind(e.parent.kind)}`)}}(t);return void 0!==n?{diagnosticMessage:n,errorNode:e,typeName:e.name}:void 0}:iD(e)?function(){let t;switch(e.parent.kind){case 263:t=la.Type_parameter_0_of_exported_class_has_or_is_using_private_name_1;break;case 264:t=la.Type_parameter_0_of_exported_interface_has_or_is_using_private_name_1;break;case 200:t=la.Type_parameter_0_of_exported_mapped_object_type_is_using_private_name_1;break;case 185:case 180:t=la.Type_parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_1;break;case 179:t=la.Type_parameter_0_of_call_signature_from_exported_interface_has_or_is_using_private_name_1;break;case 174:case 173:t=Nv(e.parent)?la.Type_parameter_0_of_public_static_method_from_exported_class_has_or_is_using_private_name_1:263===e.parent.parent.kind?la.Type_parameter_0_of_public_method_from_exported_class_has_or_is_using_private_name_1:la.Type_parameter_0_of_method_from_exported_interface_has_or_is_using_private_name_1;break;case 184:case 262:t=la.Type_parameter_0_of_exported_function_has_or_is_using_private_name_1;break;case 195:t=la.Extends_clause_for_inferred_type_0_has_or_is_using_private_name_1;break;case 265:t=la.Type_parameter_0_of_exported_type_alias_has_or_is_using_private_name_1;break;default:return un.fail("This is unknown parent for type parameter: "+e.parent.kind)}return{diagnosticMessage:t,errorNode:e,typeName:e.name}}:mF(e)?function(){let t;return t=HF(e.parent.parent)?jE(e.parent)&&119===e.parent.token?la.Implements_clause_of_exported_class_0_has_or_is_using_private_name_1:e.parent.parent.name?la.extends_clause_of_exported_class_0_has_or_is_using_private_name_1:la.extends_clause_of_exported_class_has_or_is_using_private_name_0:la.extends_clause_of_exported_interface_0_has_or_is_using_private_name_1,{diagnosticMessage:t,errorNode:e,typeName:Tc(e.parent.parent)}}:tE(e)?function(){return{diagnosticMessage:la.Import_declaration_0_is_using_private_name_1,errorNode:e,typeName:e.name}}:GF(e)||Ng(e)?function(t){return{diagnosticMessage:t.errorModuleName?la.Exported_type_alias_0_has_or_is_using_private_name_1_from_module_2:la.Exported_type_alias_0_has_or_is_using_private_name_1,errorNode:Ng(e)?un.checkDefined(e.typeExpression):e.type,typeName:Ng(e)?Tc(e):e.name}}:un.assertNever(e,`Attempted to set a declaration diagnostic context for unhandled node kind: ${un.formatSyntaxKind(e.kind)}`);function t(t){const n=function(t){return 260===e.kind||208===e.kind?t.errorModuleName?2===t.accessibility?la.Exported_variable_0_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:la.Exported_variable_0_has_or_is_using_name_1_from_private_module_2:la.Exported_variable_0_has_or_is_using_private_name_1:172===e.kind||211===e.kind||212===e.kind||226===e.kind||171===e.kind||169===e.kind&&wv(e.parent,2)?Nv(e)?t.errorModuleName?2===t.accessibility?la.Public_static_property_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:la.Public_static_property_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:la.Public_static_property_0_of_exported_class_has_or_is_using_private_name_1:263===e.parent.kind||169===e.kind?t.errorModuleName?2===t.accessibility?la.Public_property_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:la.Public_property_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:la.Public_property_0_of_exported_class_has_or_is_using_private_name_1:t.errorModuleName?la.Property_0_of_exported_interface_has_or_is_using_name_1_from_private_module_2:la.Property_0_of_exported_interface_has_or_is_using_private_name_1:void 0}(t);return void 0!==n?{diagnosticMessage:n,errorNode:e,typeName:e.name}:void 0}}function lq(e){const t={219:la.Add_a_return_type_to_the_function_expression,218:la.Add_a_return_type_to_the_function_expression,174:la.Add_a_return_type_to_the_method,177:la.Add_a_return_type_to_the_get_accessor_declaration,178:la.Add_a_type_to_parameter_of_the_set_accessor_declaration,262:la.Add_a_return_type_to_the_function_declaration,180:la.Add_a_return_type_to_the_function_declaration,169:la.Add_a_type_annotation_to_the_parameter_0,260:la.Add_a_type_annotation_to_the_variable_0,172:la.Add_a_type_annotation_to_the_property_0,171:la.Add_a_type_annotation_to_the_property_0,277:la.Move_the_expression_in_default_export_to_a_variable_and_add_a_type_annotation_to_it},n={218:la.Function_must_have_an_explicit_return_type_annotation_with_isolatedDeclarations,262:la.Function_must_have_an_explicit_return_type_annotation_with_isolatedDeclarations,219:la.Function_must_have_an_explicit_return_type_annotation_with_isolatedDeclarations,174:la.Method_must_have_an_explicit_return_type_annotation_with_isolatedDeclarations,180:la.Method_must_have_an_explicit_return_type_annotation_with_isolatedDeclarations,177:la.At_least_one_accessor_must_have_an_explicit_type_annotation_with_isolatedDeclarations,178:la.At_least_one_accessor_must_have_an_explicit_type_annotation_with_isolatedDeclarations,169:la.Parameter_must_have_an_explicit_type_annotation_with_isolatedDeclarations,260:la.Variable_must_have_an_explicit_type_annotation_with_isolatedDeclarations,172:la.Property_must_have_an_explicit_type_annotation_with_isolatedDeclarations,171:la.Property_must_have_an_explicit_type_annotation_with_isolatedDeclarations,167:la.Computed_property_names_on_class_or_object_literals_cannot_be_inferred_with_isolatedDeclarations,305:la.Objects_that_contain_spread_assignments_can_t_be_inferred_with_isolatedDeclarations,304:la.Objects_that_contain_shorthand_properties_can_t_be_inferred_with_isolatedDeclarations,209:la.Only_const_arrays_can_be_inferred_with_isolatedDeclarations,277:la.Default_exports_can_t_be_inferred_with_isolatedDeclarations,230:la.Arrays_with_spread_elements_can_t_inferred_with_isolatedDeclarations};return function(r){if(_c(r,jE))return jp(r,la.Extends_clause_can_t_contain_an_expression_with_isolatedDeclarations);if((Tf(r)||kD(r.parent))&&(Zl(r)||ob(r)))return function(e){const t=jp(e,la.Type_containing_private_name_0_can_t_be_used_with_isolatedDeclarations,Kd(e,!1));return o(e,t),t}(r);switch(un.type(r),r.kind){case 177:case 178:return i(r);case 167:case 304:case 305:return function(e){const t=jp(e,n[e.kind]);return o(e,t),t}(r);case 209:case 230:return function(e){const t=jp(e,n[e.kind]);return o(e,t),t}(r);case 174:case 180:case 218:case 219:case 262:return function(e){const r=jp(e,n[e.kind]);return o(e,r),iT(r,jp(e,t[e.kind])),r}(r);case 208:return function(e){return jp(e,la.Binding_elements_can_t_be_exported_directly_with_isolatedDeclarations)}(r);case 172:case 260:return function(e){const r=jp(e,n[e.kind]),i=Kd(e.name,!1);return iT(r,jp(e,t[e.kind],i)),r}(r);case 169:return function(r){if(Cu(r.parent))return i(r.parent);const o=e.requiresAddingImplicitUndefined(r,void 0);if(!o&&r.initializer)return a(r.initializer);const s=jp(r,o?la.Declaration_emit_for_this_parameter_requires_implicitly_adding_undefined_to_its_type_This_is_not_supported_with_isolatedDeclarations:n[r.kind]),c=Kd(r.name,!1);return iT(s,jp(r,t[r.kind],c)),s}(r);case 303:return a(r.initializer);case 231:return function(e){return a(e,la.Inference_from_class_expressions_is_not_supported_with_isolatedDeclarations)}(r);default:return a(r)}};function r(e){const t=_c(e,(e=>pE(e)||du(e)||VF(e)||cD(e)||oD(e)));if(t)return pE(t)?t:RF(t)?_c(t,(e=>i_(e)&&!dD(e))):du(t)?void 0:t}function i(e){const{getAccessor:r,setAccessor:i}=dv(e.symbol.declarations,e),o=jp((Cu(e)?e.parameters[0]:e)??e,n[e.kind]);return i&&iT(o,jp(i,t[i.kind])),r&&iT(o,jp(r,t[r.kind])),o}function o(e,n){const i=r(e);if(i){const e=pE(i)||!i.name?"":Kd(i.name,!1);iT(n,jp(i,t[i.kind],e))}return n}function a(e,i){const o=r(e);let a;if(o){const r=pE(o)||!o.name?"":Kd(o.name,!1);o===_c(e.parent,(e=>pE(e)||(du(e)?"quit":!ZD(e)&&!YD(e)&&!gF(e))))?(a=jp(e,i??n[o.kind]),iT(a,jp(o,t[o.kind],r))):(a=jp(e,i??la.Expression_type_can_t_be_inferred_with_isolatedDeclarations),iT(a,jp(o,t[o.kind],r)),iT(a,jp(e,la.Add_satisfies_and_a_type_assertion_to_this_expression_satisfies_T_as_T_to_make_the_type_explicit)))}else a=jp(e,i??la.Expression_type_can_t_be_inferred_with_isolatedDeclarations);return a}}function _q(e,t,n){const r=e.getCompilerOptions();return T(N(Ky(e,n),Pm),n)?Cq(t,e,XC,r,[n],[pq],!1).diagnostics:void 0}var uq=531469,dq=8;function pq(e){const t=()=>un.fail("Diagnostic emitted without context");let n,r,i,o,a=t,s=!0,c=!1,_=!1,p=!1,f=!1;const{factory:m}=e,g=e.getEmitHost();let h=()=>{};const y={trackSymbol:function(e,t,n){return!(262144&e.flags)&&R(w.isSymbolAccessible(e,t,n,!0))},reportInaccessibleThisError:function(){(v||b)&&e.addDiagnostic(jp(v||b,la.The_inferred_type_of_0_references_an_inaccessible_1_type_A_type_annotation_is_necessary,M(),"this"))},reportInaccessibleUniqueSymbolError:function(){(v||b)&&e.addDiagnostic(jp(v||b,la.The_inferred_type_of_0_references_an_inaccessible_1_type_A_type_annotation_is_necessary,M(),"unique symbol"))},reportCyclicStructureError:function(){(v||b)&&e.addDiagnostic(jp(v||b,la.The_inferred_type_of_0_references_a_type_with_a_cyclic_structure_which_cannot_be_trivially_serialized_A_type_annotation_is_necessary,M()))},reportPrivateInBaseOfClassExpression:function(t){(v||b)&&e.addDiagnostic(iT(jp(v||b,la.Property_0_of_exported_anonymous_class_type_may_not_be_private_or_protected,t),...VF((v||b).parent)?[jp(v||b,la.Add_a_type_annotation_to_the_variable_0,M())]:[]))},reportLikelyUnsafeImportRequiredError:function(t){(v||b)&&e.addDiagnostic(jp(v||b,la.The_inferred_type_of_0_cannot_be_named_without_a_reference_to_1_This_is_likely_not_portable_A_type_annotation_is_necessary,M(),t))},reportTruncationError:function(){(v||b)&&e.addDiagnostic(jp(v||b,la.The_inferred_type_of_this_node_exceeds_the_maximum_length_the_compiler_will_serialize_An_explicit_type_annotation_is_needed))},moduleResolverHost:g,reportNonlocalAugmentation:function(t,n,r){var i;const o=null==(i=n.declarations)?void 0:i.find((e=>hd(e)===t)),a=N(r.declarations,(e=>hd(e)!==t));if(o&&a)for(const t of a)e.addDiagnostic(iT(jp(t,la.Declaration_augments_declaration_in_another_file_This_cannot_be_serialized),jp(o,la.This_is_the_declaration_being_augmented_Consider_moving_the_augmenting_declaration_into_the_same_file)))},reportNonSerializableProperty:function(t){(v||b)&&e.addDiagnostic(jp(v||b,la.The_type_of_this_node_cannot_be_serialized_because_its_property_0_cannot_be_serialized,t))},reportInferenceFallback:j,pushErrorFallbackNode(e){const t=b,n=h;h=()=>{h=n,b=t},b=e},popErrorFallbackNode(){h()}};let v,b,x,k,S,C;const w=e.getEmitResolver(),D=e.getCompilerOptions(),F=lq(w),{stripInternal:P,isolatedDeclarations:A}=D;return function(l){if(307===l.kind&&l.isDeclarationFile)return l;if(308===l.kind){c=!0,k=[],S=[],C=[];let u=!1;const d=m.createBundle(E(l.sourceFiles,(c=>{if(c.isDeclarationFile)return;if(u=u||c.hasNoDefaultLib,x=c,n=c,r=void 0,o=!1,i=new Map,a=t,p=!1,f=!1,h(c),Qp(c)||Yp(c)){_=!1,s=!1;const t=Dm(c)?m.createNodeArray(J(c)):HB(c.statements,le,du);return m.updateSourceFile(c,[m.createModuleDeclaration([m.createModifier(138)],m.createStringLiteral(Ry(e.getEmitHost(),c)),m.createModuleBlock(nI(m.createNodeArray(ae(t)),c.statements)))],!0,[],[],!1,[])}s=!0;const l=Dm(c)?m.createNodeArray(J(c)):HB(c.statements,le,du);return m.updateSourceFile(c,ae(l),!0,[],[],!1,[])}))),y=Do(Oo(Aq(l,g,!0).declarationFilePath));return d.syntheticFileReferences=w(y),d.syntheticTypeReferences=v(),d.syntheticLibReferences=b(),d.hasNoDefaultLib=u,d}let u;if(s=!0,p=!1,f=!1,n=l,x=l,a=t,c=!1,_=!1,o=!1,r=void 0,i=new Map,k=[],S=[],C=[],h(x),Dm(x))u=m.createNodeArray(J(l));else{const e=HB(l.statements,le,du);u=nI(m.createNodeArray(ae(e)),l.statements),MI(l)&&(!_||p&&!f)&&(u=nI(m.createNodeArray([...u,BP(m)]),u))}const d=Do(Oo(Aq(l,g,!0).declarationFilePath));return m.updateSourceFile(l,u,!0,w(d),v(),l.hasNoDefaultLib,b());function h(e){k=K(k,E(e.referencedFiles,(t=>[e,t]))),S=K(S,e.typeReferenceDirectives),C=K(C,e.libReferenceDirectives)}function y(e){const t={...e};return t.pos=-1,t.end=-1,t}function v(){return B(S,(e=>{if(e.preserve)return y(e)}))}function b(){return B(C,(e=>{if(e.preserve)return y(e)}))}function w(e){return B(k,(([t,n])=>{if(!n.preserve)return;const r=g.getSourceFileFromReference(t,n);if(!r)return;let i;if(r.isDeclarationFile)i=r.fileName;else{if(c&&T(l.sourceFiles,r))return;const e=Aq(r,g,!0);i=e.declarationFilePath||e.jsFilePath||r.fileName}if(!i)return;const o=oa(e,i,g.getCurrentDirectory(),g.getCanonicalFileName,!1),a=y(n);return a.fileName=o,a}))}};function L(t){w.getPropertiesOfContainerFunction(t).forEach((t=>{if(sC(t.valueDeclaration)){const n=cF(t.valueDeclaration)?t.valueDeclaration.left:t.valueDeclaration;e.addDiagnostic(jp(n,la.Assigning_properties_to_functions_without_declaring_them_is_not_supported_with_isolatedDeclarations_Add_an_explicit_declaration_for_the_properties_assigned_to_this_function))}}))}function j(t){A&&!Dm(x)&&hd(t)===x&&(VF(t)&&w.isExpandoFunctionDeclaration(t)?L(t):e.addDiagnostic(F(t)))}function R(t){if(0===t.accessibility){if(t.aliasesToMakeVisible)if(r)for(const e of t.aliasesToMakeVisible)ce(r,e);else r=t.aliasesToMakeVisible}else if(3!==t.accessibility){const n=a(t);if(n)return n.typeName?e.addDiagnostic(jp(t.errorNode||n.errorNode,n.diagnosticMessage,Kd(n.typeName),t.errorSymbolName,t.errorModuleName)):e.addDiagnostic(jp(t.errorNode||n.errorNode,n.diagnosticMessage,t.errorSymbolName,t.errorModuleName)),!0}return!1}function M(){return v?Ep(v):b&&Tc(b)?Ep(Tc(b)):b&&pE(b)?b.isExportEquals?"export=":"default":"(Missing)"}function J(e){const t=a;a=t=>t.errorNode&&aq(t.errorNode)?cq(t.errorNode)(t):{diagnosticMessage:t.errorModuleName?la.Declaration_emit_for_this_file_requires_using_private_name_0_from_module_1_An_explicit_type_annotation_may_unblock_declaration_emit:la.Declaration_emit_for_this_file_requires_using_private_name_0_An_explicit_type_annotation_may_unblock_declaration_emit,errorNode:t.errorNode||e};const n=w.getDeclarationStatementsForSourceFile(e,uq,dq,y);return a=t,n}function z(e){return 80===e.kind?e:207===e.kind?m.updateArrayBindingPattern(e,HB(e.elements,t,S_)):m.updateObjectBindingPattern(e,HB(e.elements,t,VD));function t(e){return 232===e.kind?e:(e.propertyName&&rD(e.propertyName)&&ob(e.propertyName.expression)&&ee(e.propertyName.expression,n),m.updateBindingElement(e,e.dotDotDotToken,e.propertyName,z(e.name),void 0))}}function q(e,t){let n;o||(n=a,a=cq(e));const r=m.updateParameterDeclaration(e,function(e,t,n){return e.createModifiersFromModifierFlags(fq(t,n,void 0))}(m,e,t),e.dotDotDotToken,z(e.name),w.isOptionalParameter(e)?e.questionToken||m.createToken(58):void 0,W(e,!0),V(e));return o||(a=n),r}function U(e){return mq(e)&&!!e.initializer&&w.isLiteralConstDeclaration(dc(e))}function V(e){if(U(e))return yC(vC(e.initializer))||j(e),w.createLiteralConstValue(dc(e,mq),y)}function W(e,t){if(!t&&Cv(e,2))return;if(U(e))return;if(!pE(e)&&!VD(e)&&e.type&&(!oD(e)||!w.requiresAddingImplicitUndefined(e,n)))return $B(e.type,se,v_);const r=v;let i,s;return v=e.name,o||(i=a,aq(e)&&(a=cq(e))),bC(e)?s=w.createTypeOfDeclaration(e,n,uq,dq,y):n_(e)?s=w.createReturnTypeOfSignatureDeclaration(e,n,uq,dq,y):un.assertNever(e),v=r,o||(a=i),s??m.createKeywordTypeNode(133)}function H(e){switch((e=dc(e)).kind){case 262:case 267:case 264:case 263:case 265:case 266:return!w.isDeclarationVisible(e);case 260:return!G(e);case 271:case 272:case 278:case 277:return!1;case 175:return!0}return!1}function G(e){return!fF(e)&&(x_(e.name)?$(e.name.elements,G):w.isDeclarationVisible(e))}function X(e,t,n){if(Cv(e,2))return m.createNodeArray();const r=E(t,(e=>q(e,n)));return r?m.createNodeArray(r,t.hasTrailingComma):m.createNodeArray()}function Q(e,t){let n;if(!t){const t=av(e);t&&(n=[q(t)])}if(fD(e)){let r;if(!t){const t=iv(e);t&&(r=q(t))}r||(r=m.createParameterDeclaration(void 0,void 0,"value")),n=ie(n,r)}return m.createNodeArray(n||l)}function Y(e,t){return Cv(e,2)?void 0:HB(t,se,iD)}function Z(e){return qE(e)||GF(e)||QF(e)||HF(e)||KF(e)||n_(e)||hD(e)||RD(e)}function ee(e,t){R(w.isEntityNameVisible(e,t))}function te(e,t){return Nu(e)&&Nu(t)&&(e.jsDoc=t.jsDoc),pw(e,dw(t))}function re(t,n){if(n){if(_=_||267!==t.kind&&205!==t.kind,Lu(n)&&c){const n=By(e.getEmitHost(),w,t);if(n)return m.createStringLiteral(n)}return n}}function oe(e){const t=XU(e);return e&&void 0!==t?e:void 0}function ae(e){for(;u(r);){const e=r.shift();if(!Tp(e))return un.fail(`Late replaced statement was found which is not handled by the declaration transformer!: ${un.formatSyntaxKind(e.kind)}`);const t=s;s=e.parent&&qE(e.parent)&&!(MI(e.parent)&&c);const n=de(e);s=t,i.set(TJ(e),n)}return HB(e,(function(e){if(Tp(e)){const t=TJ(e);if(i.has(t)){const n=i.get(t);return i.delete(t),n&&((Qe(n)?$(n,K_):K_(n))&&(p=!0),qE(e.parent)&&(Qe(n)?$(n,G_):G_(n))&&(_=!0)),n}}return e}),du)}function se(t){if(fe(t))return;if(lu(t)){if(H(t))return;if(Rh(t))if(A){if(!w.isDefinitelyReferenceToGlobalSymbolObject(t.name.expression)){if(HF(t.parent)||$D(t.parent))return void e.addDiagnostic(jp(t,la.Computed_property_names_on_class_or_object_literals_cannot_be_inferred_with_isolatedDeclarations));if((KF(t.parent)||SD(t.parent))&&!ob(t.name.expression))return void e.addDiagnostic(jp(t,la.Computed_properties_must_be_number_or_string_literals_variables_or_dotted_expressions_with_isolatedDeclarations))}}else if(!w.isLateBound(dc(t))||!ob(t.name.expression))return}if(n_(t)&&w.isImplementationOfOverload(t))return;if(TF(t))return;let r;Z(t)&&(r=n,n=t);const i=a,s=aq(t),c=o;let l=(187===t.kind||200===t.kind)&&265!==t.parent.kind;if((_D(t)||lD(t))&&Cv(t,2)){if(t.symbol&&t.symbol.declarations&&t.symbol.declarations[0]!==t)return;return u(m.createPropertyDeclaration(ge(t),t.name,void 0,void 0,void 0))}if(s&&!o&&(a=cq(t)),kD(t)&&ee(t.exprName,n),l&&(o=!0),function(e){switch(e.kind){case 180:case 176:case 174:case 177:case 178:case 172:case 171:case 173:case 179:case 181:case 260:case 168:case 233:case 183:case 194:case 184:case 185:case 205:return!0}return!1}(t))switch(t.kind){case 233:{(Zl(t.expression)||ob(t.expression))&&ee(t.expression,n);const r=nJ(t,se,e);return u(m.updateExpressionWithTypeArguments(r,r.expression,r.typeArguments))}case 183:{ee(t.typeName,n);const r=nJ(t,se,e);return u(m.updateTypeReferenceNode(r,r.typeName,r.typeArguments))}case 180:return u(m.updateConstructSignature(t,Y(t,t.typeParameters),X(t,t.parameters),W(t)));case 176:return u(m.createConstructorDeclaration(ge(t),X(t,t.parameters,0),void 0));case 174:return qN(t.name)?u(void 0):u(m.createMethodDeclaration(ge(t),void 0,t.name,t.questionToken,Y(t,t.typeParameters),X(t,t.parameters),W(t),void 0));case 177:return qN(t.name)?u(void 0):u(m.updateGetAccessorDeclaration(t,ge(t),t.name,Q(t,Cv(t,2)),W(t),void 0));case 178:return qN(t.name)?u(void 0):u(m.updateSetAccessorDeclaration(t,ge(t),t.name,Q(t,Cv(t,2)),void 0));case 172:return qN(t.name)?u(void 0):u(m.updatePropertyDeclaration(t,ge(t),t.name,t.questionToken,W(t),V(t)));case 171:return qN(t.name)?u(void 0):u(m.updatePropertySignature(t,ge(t),t.name,t.questionToken,W(t)));case 173:return qN(t.name)?u(void 0):u(m.updateMethodSignature(t,ge(t),t.name,t.questionToken,Y(t,t.typeParameters),X(t,t.parameters),W(t)));case 179:return u(m.updateCallSignature(t,Y(t,t.typeParameters),X(t,t.parameters),W(t)));case 181:return u(m.updateIndexSignature(t,ge(t),X(t,t.parameters),$B(t.type,se,v_)||m.createKeywordTypeNode(133)));case 260:return x_(t.name)?pe(t.name):(l=!0,o=!0,u(m.updateVariableDeclaration(t,t.name,void 0,W(t),V(t))));case 168:return 174===(_=t).parent.kind&&Cv(_.parent,2)&&(t.default||t.constraint)?u(m.updateTypeParameterDeclaration(t,t.modifiers,t.name,void 0,void 0)):u(nJ(t,se,e));case 194:{const e=$B(t.checkType,se,v_),r=$B(t.extendsType,se,v_),i=n;n=t.trueType;const o=$B(t.trueType,se,v_);n=i;const a=$B(t.falseType,se,v_);return un.assert(e),un.assert(r),un.assert(o),un.assert(a),u(m.updateConditionalTypeNode(t,e,r,o,a))}case 184:return u(m.updateFunctionTypeNode(t,HB(t.typeParameters,se,iD),X(t,t.parameters),un.checkDefined($B(t.type,se,v_))));case 185:return u(m.updateConstructorTypeNode(t,ge(t),HB(t.typeParameters,se,iD),X(t,t.parameters),un.checkDefined($B(t.type,se,v_))));case 205:return _f(t)?u(m.updateImportTypeNode(t,m.updateLiteralTypeNode(t.argument,re(t,t.argument.literal)),t.attributes,t.qualifier,HB(t.typeArguments,se,v_),t.isTypeOf)):u(t);default:un.assertNever(t,`Attempted to process unhandled node kind: ${un.formatSyntaxKind(t.kind)}`)}var _;return CD(t)&&Ja(x,t.pos).line===Ja(x,t.end).line&&nw(t,1),u(nJ(t,se,e));function u(e){return e&&s&&Rh(t)&&function(e){let t;o||(t=a,a=sq(e)),v=e.name,un.assert(Rh(e));ee(e.name.expression,n),o||(a=t),v=void 0}(t),Z(t)&&(n=r),s&&!o&&(a=i),l&&(o=c),e===t?e:e&&YC(te(e,t),t)}}function le(e){if(!function(e){switch(e.kind){case 262:case 267:case 271:case 264:case 263:case 265:case 266:case 243:case 272:case 278:case 277:return!0}return!1}(e))return;if(fe(e))return;switch(e.kind){case 278:return qE(e.parent)&&(_=!0),f=!0,m.updateExportDeclaration(e,e.modifiers,e.isTypeOnly,e.exportClause,re(e,e.moduleSpecifier),oe(e.attributes));case 277:if(qE(e.parent)&&(_=!0),f=!0,80===e.expression.kind)return e;{const t=m.createUniqueName("_default",16);a=()=>({diagnosticMessage:la.Default_export_of_the_module_has_or_is_using_private_name_0,errorNode:e}),b=e;const n=W(e),r=m.createVariableDeclaration(t,void 0,n,void 0);b=void 0;const i=m.createVariableStatement(s?[m.createModifier(138)]:[],m.createVariableDeclarationList([r],2));return te(i,e),tw(e),[i,m.updateExportAssignment(e,e.modifiers,t)]}}const t=de(e);return i.set(TJ(e),t),e}function _e(e){if(tE(e)||Cv(e,2048)||!rI(e))return e;const t=m.createModifiersFromModifierFlags(131039&Mv(e));return m.replaceModifiers(e,t)}function ue(e,t,n,r){const i=m.updateModuleDeclaration(e,t,n,r);if(ap(i)||32&i.flags)return i;const o=m.createModuleDeclaration(i.modifiers,i.name,i.body,32|i.flags);return YC(o,i),nI(o,i),o}function de(t){if(r)for(;zt(r,t););if(fe(t))return;switch(t.kind){case 271:return function(e){if(w.isDeclarationVisible(e)){if(283===e.moduleReference.kind){const t=Tm(e);return m.updateImportEqualsDeclaration(e,e.modifiers,e.isTypeOnly,e.name,m.updateExternalModuleReference(e.moduleReference,re(e,t)))}{const t=a;return a=cq(e),ee(e.moduleReference,n),a=t,e}}}(t);case 272:return function(t){if(!t.importClause)return m.updateImportDeclaration(t,t.modifiers,t.importClause,re(t,t.moduleSpecifier),oe(t.attributes));const n=t.importClause&&t.importClause.name&&w.isDeclarationVisible(t.importClause)?t.importClause.name:void 0;if(!t.importClause.namedBindings)return n&&m.updateImportDeclaration(t,t.modifiers,m.updateImportClause(t.importClause,t.importClause.isTypeOnly,n,void 0),re(t,t.moduleSpecifier),oe(t.attributes));if(274===t.importClause.namedBindings.kind){const e=w.isDeclarationVisible(t.importClause.namedBindings)?t.importClause.namedBindings:void 0;return n||e?m.updateImportDeclaration(t,t.modifiers,m.updateImportClause(t.importClause,t.importClause.isTypeOnly,n,e),re(t,t.moduleSpecifier),oe(t.attributes)):void 0}const r=B(t.importClause.namedBindings.elements,(e=>w.isDeclarationVisible(e)?e:void 0));return r&&r.length||n?m.updateImportDeclaration(t,t.modifiers,m.updateImportClause(t.importClause,t.importClause.isTypeOnly,n,r&&r.length?m.updateNamedImports(t.importClause.namedBindings,r):void 0),re(t,t.moduleSpecifier),oe(t.attributes)):w.isImportRequiredByAugmentation(t)?(A&&e.addDiagnostic(jp(t,la.Declaration_emit_for_this_file_requires_preserving_this_import_for_augmentations_This_is_not_supported_with_isolatedDeclarations)),m.updateImportDeclaration(t,t.modifiers,void 0,re(t,t.moduleSpecifier),oe(t.attributes))):void 0}(t)}if(lu(t)&&H(t))return;if(PP(t))return;if(n_(t)&&w.isImplementationOfOverload(t))return;let o;Z(t)&&(o=n,n=t);const c=aq(t),l=a;c&&(a=cq(t));const g=s;switch(t.kind){case 265:{s=!1;const e=h(m.updateTypeAliasDeclaration(t,ge(t),t.name,HB(t.typeParameters,se,iD),un.checkDefined($B(t.type,se,v_))));return s=g,e}case 264:return h(m.updateInterfaceDeclaration(t,ge(t),t.name,Y(t,t.typeParameters),he(t.heritageClauses),HB(t.members,se,g_)));case 262:{const e=h(m.updateFunctionDeclaration(t,ge(t),void 0,t.name,Y(t,t.typeParameters),X(t,t.parameters),W(t),void 0));if(e&&w.isExpandoFunctionDeclaration(t)&&function(e){var t;if(e.body)return!0;const n=null==(t=e.symbol.declarations)?void 0:t.filter((e=>$F(e)&&!e.body));return!n||n.indexOf(e)===n.length-1}(t)){const r=w.getPropertiesOfContainerFunction(t);A&&L(t);const i=aI.createModuleDeclaration(void 0,e.name||m.createIdentifier("_default"),m.createModuleBlock([]),32);wT(i,n),i.locals=Hu(r),i.symbol=r[0].parent;const o=[];let s=B(r,(e=>{if(!sC(e.valueDeclaration))return;const t=fc(e.escapedName);if(!fs(t,99))return;a=cq(e.valueDeclaration);const n=w.createTypeOfDeclaration(e.valueDeclaration,i,uq,2|dq,y);a=l;const r=Fh(t),s=r?m.getGeneratedNameForNode(e.valueDeclaration):m.createIdentifier(t);r&&o.push([s,t]);const c=m.createVariableDeclaration(s,void 0,n,void 0);return m.createVariableStatement(r?void 0:[m.createToken(95)],m.createVariableDeclarationList([c]))}));o.length?s.push(m.createExportDeclaration(void 0,!1,m.createNamedExports(E(o,(([e,t])=>m.createExportSpecifier(!1,e,t)))))):s=B(s,(e=>m.replaceModifiers(e,0)));const c=m.createModuleDeclaration(ge(t),t.name,m.createModuleBlock(s),32);if(!Cv(e,2048))return[e,c];const u=m.createModifiersFromModifierFlags(-2081&Mv(e)|128),d=m.updateFunctionDeclaration(e,u,void 0,e.name,e.typeParameters,e.parameters,e.type,void 0),p=m.updateModuleDeclaration(c,u,c.name,c.body),g=m.createExportAssignment(void 0,!1,c.name);return qE(t.parent)&&(_=!0),f=!0,[d,p,g]}return e}case 267:{s=!1;const e=t.body;if(e&&268===e.kind){const n=p,r=f;f=!1,p=!1;let i=ae(HB(e.statements,le,du));33554432&t.flags&&(p=!1),up(t)||$(i,me)||f||(i=p?m.createNodeArray([...i,BP(m)]):HB(i,_e,du));const o=m.updateModuleBlock(e,i);s=g,p=n,f=r;const a=ge(t);return h(ue(t,a,dp(t)?re(t,t.name):t.name,o))}{s=g;const n=ge(t);s=!1,$B(e,le);const r=TJ(e),o=i.get(r);return i.delete(r),h(ue(t,n,t.name,o))}}case 263:{v=t.name,b=t;const e=m.createNodeArray(ge(t)),r=Y(t,t.typeParameters),i=rv(t);let o;if(i){const e=a;o=ne(O(i.parameters,(e=>{if(wv(e,31)&&!fe(e))return a=cq(e),80===e.name.kind?te(m.createPropertyDeclaration(ge(e),e.name,e.questionToken,W(e),V(e)),e):function t(n){let r;for(const i of n.elements)fF(i)||(x_(i.name)&&(r=K(r,t(i.name))),r=r||[],r.push(m.createPropertyDeclaration(ge(e),i.name,void 0,W(i),void 0)));return r}(e.name)}))),a=e}const c=K(K(K($(t.members,(e=>!!e.name&&qN(e.name)))?[m.createPropertyDeclaration(void 0,m.createPrivateIdentifier("#private"),void 0,void 0,void 0)]:void 0,w.createLateBoundIndexSignatures(t,n,uq,dq,y)),o),HB(t.members,se,l_)),l=m.createNodeArray(c),_=hh(t);if(_&&!ob(_.expression)&&106!==_.expression.kind){const n=t.name?fc(t.name.escapedText):"default",i=m.createUniqueName(`${n}_base`,16);a=()=>({diagnosticMessage:la.extends_clause_of_exported_class_0_has_or_is_using_private_name_1,errorNode:_,typeName:t.name});const o=m.createVariableDeclaration(i,void 0,w.createTypeOfExpression(_.expression,t,uq,dq,y),void 0),c=m.createVariableStatement(s?[m.createModifier(138)]:[],m.createVariableDeclarationList([o],2)),u=m.createNodeArray(E(t.heritageClauses,(e=>{if(96===e.token){const t=a;a=cq(e.types[0]);const n=m.updateHeritageClause(e,E(e.types,(e=>m.updateExpressionWithTypeArguments(e,i,HB(e.typeArguments,se,v_)))));return a=t,n}return m.updateHeritageClause(e,HB(m.createNodeArray(N(e.types,(e=>ob(e.expression)||106===e.expression.kind))),se,mF))})));return[c,h(m.updateClassDeclaration(t,e,t.name,r,u,l))]}{const n=he(t.heritageClauses);return h(m.updateClassDeclaration(t,e,t.name,r,n,l))}}case 243:return h(function(e){if(!d(e.declarationList.declarations,G))return;const t=HB(e.declarationList.declarations,se,VF);if(!u(t))return;const n=m.createNodeArray(ge(e));let r;return nf(e.declarationList)||tf(e.declarationList)?(r=m.createVariableDeclarationList(t,2),YC(r,e.declarationList),nI(r,e.declarationList),pw(r,e.declarationList)):r=m.updateVariableDeclarationList(e.declarationList,t),m.updateVariableStatement(e,n,r)}(t));case 266:return h(m.updateEnumDeclaration(t,m.createNodeArray(ge(t)),t.name,m.createNodeArray(B(t.members,(t=>{if(fe(t))return;const n=w.getEnumMemberValue(t),r=null==n?void 0:n.value;A&&t.initializer&&(null==n?void 0:n.hasExternalReferences)&&!rD(t.name)&&e.addDiagnostic(jp(t,la.Enum_member_initializers_must_be_computable_without_references_to_external_symbols_with_isolatedDeclarations));const i=void 0===r?void 0:"string"==typeof r?m.createStringLiteral(r):r<0?m.createPrefixUnaryExpression(41,m.createNumericLiteral(-r)):m.createNumericLiteral(r);return te(m.updateEnumMember(t,t.name,i),t)})))))}return un.assertNever(t,`Unhandled top-level node in declaration emit: ${un.formatSyntaxKind(t.kind)}`);function h(e){return Z(t)&&(n=o),c&&(a=l),267===t.kind&&(s=g),e===t?e:(b=void 0,v=void 0,e&&YC(te(e,t),t))}}function pe(e){return I(B(e.elements,(e=>function(e){if(232!==e.kind&&e.name){if(!G(e))return;return x_(e.name)?pe(e.name):m.createVariableDeclaration(e.name,void 0,W(e),void 0)}}(e))))}function fe(e){return!!P&&!!e&&Ju(e,x)}function me(e){return pE(e)||fE(e)}function ge(e){const t=Mv(e),n=function(e){let t=130030,n=s&&!function(e){return 264===e.kind}(e)?128:0;const r=307===e.parent.kind;return(!r||c&&r&&MI(e.parent))&&(t^=128,n=0),fq(e,t,n)}(e);return t===n?KB(e.modifiers,(e=>tt(e,Yl)),Yl):m.createModifiersFromModifierFlags(n)}function he(e){return m.createNodeArray(N(E(e,(e=>m.updateHeritageClause(e,HB(m.createNodeArray(N(e.types,(t=>ob(t.expression)||96===e.token&&106===t.expression.kind))),se,mF)))),(e=>e.types&&!!e.types.length)))}}function fq(e,t=131070,n=0){let r=Mv(e)&t|n;return 2048&r&&!(32&r)&&(r^=32),2048&r&&128&r&&(r^=128),r}function mq(e){switch(e.kind){case 172:case 171:return!Cv(e,2);case 169:case 260:return!0}return!1}var gq={scriptTransformers:l,declarationTransformers:l};function hq(e,t,n){return{scriptTransformers:yq(e,t,n),declarationTransformers:vq(t)}}function yq(e,t,n){if(n)return l;const r=hk(e),i=yk(e),o=Ak(e),a=[];return se(a,t&&E(t.before,xq)),a.push(Pz),e.experimentalDecorators&&a.push(Lz),Wk(e)&&a.push(Gz),r<99&&a.push(Uz),e.experimentalDecorators||!(r<99)&&o||a.push(jz),a.push(Az),r<8&&a.push(qz),r<7&&a.push(zz),r<6&&a.push(Jz),r<5&&a.push(Bz),r<4&&a.push(Rz),r<3&&a.push(Qz),r<2&&(a.push(Zz),a.push(eq)),a.push(function(e){switch(e){case 200:return iq;case 99:case 7:case 6:case 5:case 100:case 199:case 1:return oq;case 4:return rq;default:return tq}}(i)),se(a,t&&E(t.after,xq)),a}function vq(e){const t=[];return t.push(pq),se(t,e&&E(e.afterDeclarations,kq)),t}function bq(e,t){return n=>{const r=e(n);return"function"==typeof r?t(n,r):function(e){return t=>UE(t)?e.transformBundle(t):e.transformSourceFile(t)}(r)}}function xq(e){return bq(e,NJ)}function kq(e){return bq(e,((e,t)=>t))}function Sq(e,t){return t}function Tq(e,t,n){n(e,t)}function Cq(e,t,n,r,i,o,a){var s,c;const l=new Array(358);let _,u,d,p,f,m=0,g=[],h=[],y=[],v=[],b=0,x=!1,k=[],S=0,T=Sq,C=Tq,w=0;const N=[],D={factory:n,getCompilerOptions:()=>r,getEmitResolver:()=>e,getEmitHost:()=>t,getEmitHelperFactory:dt((()=>Jw(D))),startLexicalEnvironment:function(){un.assert(w>0,"Cannot modify the lexical environment during initialization."),un.assert(w<2,"Cannot modify the lexical environment after transformation has completed."),un.assert(!x,"Lexical environment is suspended."),g[b]=_,h[b]=u,y[b]=d,v[b]=m,b++,_=void 0,u=void 0,d=void 0,m=0},suspendLexicalEnvironment:function(){un.assert(w>0,"Cannot modify the lexical environment during initialization."),un.assert(w<2,"Cannot modify the lexical environment after transformation has completed."),un.assert(!x,"Lexical environment is already suspended."),x=!0},resumeLexicalEnvironment:function(){un.assert(w>0,"Cannot modify the lexical environment during initialization."),un.assert(w<2,"Cannot modify the lexical environment after transformation has completed."),un.assert(x,"Lexical environment is not suspended."),x=!1},endLexicalEnvironment:function(){let e;if(un.assert(w>0,"Cannot modify the lexical environment during initialization."),un.assert(w<2,"Cannot modify the lexical environment after transformation has completed."),un.assert(!x,"Lexical environment is suspended."),_||u||d){if(u&&(e=[...u]),_){const t=n.createVariableStatement(void 0,n.createVariableDeclarationList(_));nw(t,2097152),e?e.push(t):e=[t]}d&&(e=e?[...e,...d]:[...d])}return b--,_=g[b],u=h[b],d=y[b],m=v[b],0===b&&(g=[],h=[],y=[],v=[]),e},setLexicalEnvironmentFlags:function(e,t){m=t?m|e:m&~e},getLexicalEnvironmentFlags:function(){return m},hoistVariableDeclaration:function(e){un.assert(w>0,"Cannot modify the lexical environment during initialization."),un.assert(w<2,"Cannot modify the lexical environment after transformation has completed.");const t=nw(n.createVariableDeclaration(e),128);_?_.push(t):_=[t],1&m&&(m|=2)},hoistFunctionDeclaration:function(e){un.assert(w>0,"Cannot modify the lexical environment during initialization."),un.assert(w<2,"Cannot modify the lexical environment after transformation has completed."),nw(e,2097152),u?u.push(e):u=[e]},addInitializationStatement:function(e){un.assert(w>0,"Cannot modify the lexical environment during initialization."),un.assert(w<2,"Cannot modify the lexical environment after transformation has completed."),nw(e,2097152),d?d.push(e):d=[e]},startBlockScope:function(){un.assert(w>0,"Cannot start a block scope during initialization."),un.assert(w<2,"Cannot start a block scope after transformation has completed."),k[S]=p,S++,p=void 0},endBlockScope:function(){un.assert(w>0,"Cannot end a block scope during initialization."),un.assert(w<2,"Cannot end a block scope after transformation has completed.");const e=$(p)?[n.createVariableStatement(void 0,n.createVariableDeclarationList(p.map((e=>n.createVariableDeclaration(e))),1))]:void 0;return S--,p=k[S],0===S&&(k=[]),e},addBlockScopedVariable:function(e){un.assert(S>0,"Cannot add a block scoped variable outside of an iteration body."),(p||(p=[])).push(e)},requestEmitHelper:function e(t){if(un.assert(w>0,"Cannot modify the transformation context during initialization."),un.assert(w<2,"Cannot modify the transformation context after transformation has completed."),un.assert(!t.scoped,"Cannot request a scoped emit helper."),t.dependencies)for(const n of t.dependencies)e(n);f=ie(f,t)},readEmitHelpers:function(){un.assert(w>0,"Cannot modify the transformation context during initialization."),un.assert(w<2,"Cannot modify the transformation context after transformation has completed.");const e=f;return f=void 0,e},enableSubstitution:function(e){un.assert(w<2,"Cannot modify the transformation context after transformation has completed."),l[e]|=1},enableEmitNotification:function(e){un.assert(w<2,"Cannot modify the transformation context after transformation has completed."),l[e]|=2},isSubstitutionEnabled:I,isEmitNotificationEnabled:O,get onSubstituteNode(){return T},set onSubstituteNode(e){un.assert(w<1,"Cannot modify transformation hooks after initialization has completed."),un.assert(void 0!==e,"Value must not be 'undefined'"),T=e},get onEmitNode(){return C},set onEmitNode(e){un.assert(w<1,"Cannot modify transformation hooks after initialization has completed."),un.assert(void 0!==e,"Value must not be 'undefined'"),C=e},addDiagnostic(e){N.push(e)}};for(const e of i)ew(hd(dc(e)));tr("beforeTransform");const F=o.map((e=>e(D))),E=e=>{for(const t of F)e=t(e);return e};w=1;const P=[];for(const e of i)null==(s=Hn)||s.push(Hn.Phase.Emit,"transformNodes",307===e.kind?{path:e.path}:{kind:e.kind,pos:e.pos,end:e.end}),P.push((a?E:A)(e)),null==(c=Hn)||c.pop();return w=2,tr("afterTransform"),nr("transformTime","beforeTransform","afterTransform"),{transformed:P,substituteNode:function(e,t){return un.assert(w<3,"Cannot substitute a node after the result is disposed."),t&&I(t)&&T(e,t)||t},emitNodeWithNotification:function(e,t,n){un.assert(w<3,"Cannot invoke TransformationResult callbacks after the result is disposed."),t&&(O(t)?C(e,t,n):n(e,t))},isEmitNotificationEnabled:O,dispose:function(){if(w<3){for(const e of i)ew(hd(dc(e)));_=void 0,g=void 0,u=void 0,h=void 0,T=void 0,C=void 0,f=void 0,w=3}},diagnostics:N};function A(e){return!e||qE(e)&&e.isDeclarationFile?e:E(e)}function I(e){return!(!(1&l[e.kind])||8&Qd(e))}function O(e){return!!(2&l[e.kind])||!!(4&Qd(e))}}var wq={factory:XC,getCompilerOptions:()=>({}),getEmitResolver:ut,getEmitHost:ut,getEmitHelperFactory:ut,startLexicalEnvironment:rt,resumeLexicalEnvironment:rt,suspendLexicalEnvironment:rt,endLexicalEnvironment:at,setLexicalEnvironmentFlags:rt,getLexicalEnvironmentFlags:()=>0,hoistVariableDeclaration:rt,hoistFunctionDeclaration:rt,addInitializationStatement:rt,startBlockScope:rt,endBlockScope:at,addBlockScopedVariable:rt,requestEmitHelper:rt,readEmitHelpers:ut,enableSubstitution:rt,enableEmitNotification:rt,isSubstitutionEnabled:ut,isEmitNotificationEnabled:ut,onSubstituteNode:Sq,onEmitNode:Tq,addDiagnostic:rt},Nq=function(){const e=[];return e[1024]=["{","}"],e[2048]=["(",")"],e[4096]=["<",">"],e[8192]=["[","]"],e}();function Dq(e){return ko(e,".tsbuildinfo")}function Fq(e,t,n,r=!1,i,o){const a=Qe(n)?n:Ky(e,n,r),s=e.getCompilerOptions();if(!i)if(s.outFile){if(a.length){const n=XC.createBundle(a),i=t(Aq(n,e,r),n);if(i)return i}}else for(const n of a){const i=t(Aq(n,e,r),n);if(i)return i}if(o){const e=Eq(s);if(e)return t({buildInfoPath:e},void 0)}}function Eq(e){const t=e.configFilePath;if(!function(e){return Fk(e)||!!e.tscBuild}(e))return;if(e.tsBuildInfoFile)return e.tsBuildInfoFile;const n=e.outFile;let r;if(n)r=zS(n);else{if(!t)return;const n=zS(t);r=e.outDir?e.rootDir?Ro(e.outDir,na(e.rootDir,n,!0)):jo(e.outDir,Fo(n)):n}return r+".tsbuildinfo"}function Pq(e,t){const n=e.outFile,r=e.emitDeclarationOnly?void 0:n,i=r&&Iq(r,e),o=t||Nk(e)?zS(n)+".d.ts":void 0;return{jsFilePath:r,sourceMapFilePath:i,declarationFilePath:o,declarationMapPath:o&&Ek(e)?o+".map":void 0}}function Aq(e,t,n){const r=t.getCompilerOptions();if(308===e.kind)return Pq(r,n);{const i=zy(e.fileName,t,Oq(e.fileName,r)),o=Yp(e),a=o&&0===Yo(e.fileName,i,t.getCurrentDirectory(),!t.useCaseSensitiveFileNames()),s=r.emitDeclarationOnly||a?void 0:i,c=!s||Yp(e)?void 0:Iq(s,r),l=n||Nk(r)&&!o?qy(e.fileName,t):void 0;return{jsFilePath:s,sourceMapFilePath:c,declarationFilePath:l,declarationMapPath:l&&Ek(r)?l+".map":void 0}}}function Iq(e,t){return t.sourceMap&&!t.inlineSourceMap?e+".map":void 0}function Oq(e,t){return ko(e,".json")?".json":1===t.jsx&&So(e,[".jsx",".tsx"])?".jsx":So(e,[".mts",".mjs"])?".mjs":So(e,[".cts",".cjs"])?".cjs":".js"}function Lq(e,t,n,r){return n?Ro(n,na(r(),e,t)):e}function jq(e,t,n,r=()=>Vq(t,n)){return Rq(e,t.options,n,r)}function Rq(e,t,n,r){return VS(Lq(e,n,t.declarationDir||t.outDir,r),Vy(e))}function Mq(e,t,n,r=()=>Vq(t,n)){if(t.options.emitDeclarationOnly)return;const i=ko(e,".json"),o=Bq(e,t.options,n,r);return i&&0===Yo(e,o,un.checkDefined(t.options.configFilePath),n)?void 0:o}function Bq(e,t,n,r){return VS(Lq(e,n,t.outDir,r),Oq(e,t))}function Jq(){let e;return{addOutput:function(t){t&&(e||(e=[])).push(t)},getOutputs:function(){return e||l}}}function zq(e,t){const{jsFilePath:n,sourceMapFilePath:r,declarationFilePath:i,declarationMapPath:o}=Pq(e.options,!1);t(n),t(r),t(i),t(o)}function qq(e,t,n,r,i){if($I(t))return;const o=Mq(t,e,n,i);if(r(o),!ko(t,".json")&&(o&&e.options.sourceMap&&r(`${o}.map`),Nk(e.options))){const o=jq(t,e,n,i);r(o),e.options.declarationMap&&r(`${o}.map`)}}function Uq(e,t,n,r,i){let o;return e.rootDir?(o=Bo(e.rootDir,n),null==i||i(e.rootDir)):e.composite&&e.configFilePath?(o=Do(Oo(e.configFilePath)),null==i||i(o)):o=kU(t(),n,r),o&&o[o.length-1]!==lo&&(o+=lo),o}function Vq({options:e,fileNames:t},n){return Uq(e,(()=>N(t,(t=>!(e.noEmitForJsFiles&&So(t,TS)||$I(t))))),Do(Oo(un.checkDefined(e.configFilePath))),Wt(!n))}function Wq(e,t){const{addOutput:n,getOutputs:r}=Jq();if(e.options.outFile)zq(e,n);else{const r=dt((()=>Vq(e,t)));for(const i of e.fileNames)qq(e,i,t,n,r)}return n(Eq(e.options)),r()}function $q(e,t,n){t=Jo(t),un.assert(T(e.fileNames,t),"Expected fileName to be present in command line");const{addOutput:r,getOutputs:i}=Jq();return e.options.outFile?zq(e,r):qq(e,t,n,r),i()}function Hq(e,t){if(e.options.outFile){const{jsFilePath:t,declarationFilePath:n}=Pq(e.options,!1);return un.checkDefined(t||n,`project ${e.options.configFilePath} expected to have at least one output`)}const n=dt((()=>Vq(e,t)));for(const r of e.fileNames){if($I(r))continue;const i=Mq(r,e,t,n);if(i)return i;if(!ko(r,".json")&&Nk(e.options))return jq(r,e,t,n)}return Eq(e.options)||un.fail(`project ${e.options.configFilePath} expected to have at least one output`)}function Kq(e,t){return!!t&&!!e}function Gq(e,t,n,{scriptTransformers:r,declarationTransformers:i},o,a,c,l){var _=t.getCompilerOptions(),d=_.sourceMap||_.inlineSourceMap||Ek(_)?[]:void 0,p=_.listEmittedFiles?[]:void 0,f=ly(),m=Eb(_),g=Iy(m),{enter:h,exit:y}=$n("printTime","beforePrint","afterPrint"),v=!1;return h(),Fq(t,(function({jsFilePath:a,sourceMapFilePath:l,declarationFilePath:d,declarationMapPath:m,buildInfoPath:g},h){var y,k,S,T,C,w;null==(y=Hn)||y.push(Hn.Phase.Emit,"emitJsFileOrBundle",{jsFilePath:a}),function(n,i,a){if(!n||o||!i)return;if(t.isEmitBlocked(i)||_.noEmit)return void(v=!0);(qE(n)?[n]:N(n.sourceFiles,Pm)).forEach((t=>{var n;!_.noCheck&&uT(t,_)||(Dm(n=t)||AI(n,(t=>!tE(t)||32&Jv(t)?nE(t)?"skip":void e.markLinkedReferences(t):"skip")))}));const s=Cq(e,t,XC,_,[n],r,!1),c=rU({removeComments:_.removeComments,newLine:_.newLine,noEmitHelpers:_.noEmitHelpers,module:yk(_),moduleResolution:vk(_),target:hk(_),sourceMap:_.sourceMap,inlineSourceMap:_.inlineSourceMap,inlineSources:_.inlineSources,extendedDiagnostics:_.extendedDiagnostics},{hasGlobalName:e.hasGlobalName,onEmitNode:s.emitNodeWithNotification,isEmitNotificationEnabled:s.isEmitNotificationEnabled,substituteNode:s.substituteNode});un.assert(1===s.transformed.length,"Should only see one output from the transform"),x(i,a,s,c,_),s.dispose(),p&&(p.push(i),a&&p.push(a))}(h,a,l),null==(k=Hn)||k.pop(),null==(S=Hn)||S.push(Hn.Phase.Emit,"emitDeclarationFileOrBundle",{declarationFilePath:d}),function(n,r,a){if(!n||0===o)return;if(!r)return void((o||_.emitDeclarationOnly)&&(v=!0));const s=qE(n)?[n]:n.sourceFiles,l=c?s:N(s,Pm),d=_.outFile?[XC.createBundle(l)]:l;l.forEach((e=>{(o&&!Nk(_)||_.noCheck||Kq(o,c)||!uT(e,_))&&b(e)}));const m=Cq(e,t,XC,_,d,i,!1);if(u(m.diagnostics))for(const e of m.diagnostics)f.add(e);const g=!!m.diagnostics&&!!m.diagnostics.length||!!t.isEmitBlocked(r)||!!_.noEmit;if(v=v||g,!g||c){un.assert(1===m.transformed.length,"Should only see one output from the decl transform");const t={removeComments:_.removeComments,newLine:_.newLine,noEmitHelpers:!0,module:_.module,moduleResolution:_.moduleResolution,target:_.target,sourceMap:2!==o&&_.declarationMap,inlineSourceMap:_.inlineSourceMap,extendedDiagnostics:_.extendedDiagnostics,onlyPrintJsDocStyle:!0,omitBraceSourceMapPositions:!0},n=x(r,a,m,rU(t,{hasGlobalName:e.hasGlobalName,onEmitNode:m.emitNodeWithNotification,isEmitNotificationEnabled:m.isEmitNotificationEnabled,substituteNode:m.substituteNode}),{sourceMap:t.sourceMap,sourceRoot:_.sourceRoot,mapRoot:_.mapRoot,extendedDiagnostics:_.extendedDiagnostics});p&&(n&&p.push(r),a&&p.push(a))}m.dispose()}(h,d,m),null==(T=Hn)||T.pop(),null==(C=Hn)||C.push(Hn.Phase.Emit,"emitBuildInfo",{buildInfoPath:g}),function(e){if(!e||n)return;if(t.isEmitBlocked(e))return void(v=!0);const r=t.getBuildInfo()||{version:s};Yy(t,f,e,Xq(r),!1,void 0,{buildInfo:r}),null==p||p.push(e)}(g),null==(w=Hn)||w.pop()}),Ky(t,n,c),c,a,!n&&!l),y(),{emitSkipped:v,diagnostics:f.getDiagnostics(),emittedFiles:p,sourceMaps:d};function b(t){pE(t)?80===t.expression.kind&&e.collectLinkedAliases(t.expression,!0):gE(t)?e.collectLinkedAliases(t.propertyName||t.name,!0):PI(t,b)}function x(e,n,r,i,o){const a=r.transformed[0],s=308===a.kind?a:void 0,c=307===a.kind?a:void 0,l=s?s.sourceFiles:[c];let u,p;if(function(e,t){return(e.sourceMap||e.inlineSourceMap)&&(307!==t.kind||!ko(t.fileName,".json"))}(o,a)&&(u=oJ(t,Fo(Oo(e)),function(e){const t=Oo(e.sourceRoot||"");return t?Vo(t):t}(o),function(e,n,r){if(e.sourceRoot)return t.getCommonSourceDirectory();if(e.mapRoot){let n=Oo(e.mapRoot);return r&&(n=Do(Xy(r.fileName,t,n))),0===No(n)&&(n=jo(t.getCommonSourceDirectory(),n)),n}return Do(Jo(n))}(o,e,c),o)),s?i.writeBundle(s,g,u):i.writeFile(c,g,u),u){d&&d.push({inputSourceFileNames:u.getSources(),sourceMap:u.toJSON()});const r=function(e,n,r,i,o){if(e.inlineSourceMap){const e=n.toString();return`data:application/json;base64,${kb(so,e)}`}const a=Fo(Oo(un.checkDefined(i)));if(e.mapRoot){let n=Oo(e.mapRoot);return o&&(n=Do(Xy(o.fileName,t,n))),0===No(n)?(n=jo(t.getCommonSourceDirectory(),n),encodeURI(oa(Do(Jo(r)),jo(n,a),t.getCurrentDirectory(),t.getCanonicalFileName,!0))):encodeURI(jo(n,a))}return encodeURI(a)}(o,u,e,n,c);if(r&&(g.isAtStartOfLine()||g.rawWrite(m),p=g.getTextPos(),g.writeComment(`//# sourceMappingURL=${r}`)),n){const e=u.toString();Yy(t,f,n,e,!1,l)}}else g.writeLine();const h=g.getText(),y={sourceMapUrlPos:p,diagnostics:r.diagnostics};return Yy(t,f,e,h,!!_.emitBOM,l,y),g.clear(),!y.skippedDtsWrite}}function Xq(e){return JSON.stringify(e)}function Qq(e,t){return Tb(e,t)}var Yq={hasGlobalName:ut,getReferencedExportContainer:ut,getReferencedImportDeclaration:ut,getReferencedDeclarationWithCollidingName:ut,isDeclarationWithCollidingName:ut,isValueAliasDeclaration:ut,isReferencedAliasDeclaration:ut,isTopLevelValueImportEqualsWithEntityName:ut,hasNodeCheckFlag:ut,isDeclarationVisible:ut,isLateBound:e=>!1,collectLinkedAliases:ut,markLinkedReferences:ut,isImplementationOfOverload:ut,requiresAddingImplicitUndefined:ut,isExpandoFunctionDeclaration:ut,getPropertiesOfContainerFunction:ut,createTypeOfDeclaration:ut,createReturnTypeOfSignatureDeclaration:ut,createTypeOfExpression:ut,createLiteralConstValue:ut,isSymbolAccessible:ut,isEntityNameVisible:ut,getConstantValue:ut,getEnumMemberValue:ut,getReferencedValueDeclaration:ut,getReferencedValueDeclarations:ut,getTypeReferenceSerializationKind:ut,isOptionalParameter:ut,isArgumentsLocalBinding:ut,getExternalModuleFileFromDeclaration:ut,isLiteralConstDeclaration:ut,getJsxFactoryEntity:ut,getJsxFragmentFactoryEntity:ut,isBindingCapturedByNode:ut,getDeclarationStatementsForSourceFile:ut,isImportRequiredByAugmentation:ut,isDefinitelyReferenceToGlobalSymbolObject:ut,createLateBoundIndexSignatures:ut},Zq=dt((()=>rU({}))),eU=dt((()=>rU({removeComments:!0}))),tU=dt((()=>rU({removeComments:!0,neverAsciiEscape:!0}))),nU=dt((()=>rU({removeComments:!0,omitTrailingSemicolon:!0})));function rU(e={},t={}){var n,r,i,o,a,s,c,l,_,u,p,f,m,g,h,y,b,x,S,T,C,w,N,D,F,E,{hasGlobalName:P,onEmitNode:A=Tq,isEmitNotificationEnabled:I,substituteNode:O=Sq,onBeforeEmitNode:L,onAfterEmitNode:j,onBeforeEmitNodeArray:R,onAfterEmitNodeArray:M,onBeforeEmitToken:B,onAfterEmitToken:J}=t,z=!!e.extendedDiagnostics,q=!!e.omitBraceSourceMapPositions,U=Eb(e),V=yk(e),W=new Map,H=e.preserveSourceNewlines,K=function(e){b.write(e)},G=!0,X=-1,Q=-1,Y=-1,Z=-1,ee=-1,te=!1,ne=!!e.removeComments,{enter:re,exit:ie}=Wn(z,"commentTime","beforeComment","afterComment"),oe=XC.parenthesizer,ae={select:e=>0===e?oe.parenthesizeLeadingTypeArgument:void 0},se=function(){return UA((function(e,t){if(t){t.stackIndex++,t.preserveSourceNewlinesStack[t.stackIndex]=H,t.containerPosStack[t.stackIndex]=Y,t.containerEndStack[t.stackIndex]=Z,t.declarationListContainerEndStack[t.stackIndex]=ee;const n=t.shouldEmitCommentsStack[t.stackIndex]=Ie(e),r=t.shouldEmitSourceMapsStack[t.stackIndex]=Oe(e);null==L||L(e),n&&Hn(e),r&&mr(e),Ee(e)}else t={stackIndex:0,preserveSourceNewlinesStack:[void 0],containerPosStack:[-1],containerEndStack:[-1],declarationListContainerEndStack:[-1],shouldEmitCommentsStack:[!1],shouldEmitSourceMapsStack:[!1]};return t}),(function(t,n,r){return e(t,r,"left")}),(function(e,t,n){const r=28!==e.kind,i=Sn(n,n.left,e),o=Sn(n,e,n.right);fn(i,r),or(e.pos),ln(e,103===e.kind?Qt:Yt),sr(e.end,!0),fn(o,!0)}),(function(t,n,r){return e(t,r,"right")}),(function(e,t){if(mn(Sn(e,e.left,e.operatorToken),Sn(e,e.operatorToken,e.right)),t.stackIndex>0){const n=t.preserveSourceNewlinesStack[t.stackIndex],r=t.containerPosStack[t.stackIndex],i=t.containerEndStack[t.stackIndex],o=t.declarationListContainerEndStack[t.stackIndex],a=t.shouldEmitCommentsStack[t.stackIndex],s=t.shouldEmitSourceMapsStack[t.stackIndex];Pe(n),s&&gr(e),a&&Kn(e,r,i,o),null==j||j(e),t.stackIndex--}}),void 0);function e(e,t,n){const r="left"===n?oe.getParenthesizeLeftSideOfBinaryForOperator(t.operatorToken.kind):oe.getParenthesizeRightSideOfBinaryForOperator(t.operatorToken.kind);let i=Le(0,1,e);if(i===Je&&(un.assertIsDefined(F),i=je(1,1,e=r(nt(F,U_))),F=void 0),(i===$n||i===fr||i===Me)&&cF(e))return e;E=r,i(1,e)}}();return Te(),{printNode:function(e,t,n){switch(e){case 0:un.assert(qE(t),"Expected a SourceFile node.");break;case 2:un.assert(zN(t),"Expected an Identifier node.");break;case 1:un.assert(U_(t),"Expected an Expression node.")}switch(t.kind){case 307:return le(t);case 308:return ce(t)}return ue(e,t,n,ge()),he()},printList:function(e,t,n){return de(e,t,n,ge()),he()},printFile:le,printBundle:ce,writeNode:ue,writeList:de,writeFile:me,writeBundle:pe};function ce(e){return pe(e,ge(),void 0),he()}function le(e){return me(e,ge(),void 0),he()}function ue(e,t,n,r){const i=b;Se(r,void 0),xe(e,t,n),Te(),b=i}function de(e,t,n,r){const i=b;Se(r,void 0),n&&ke(n),Ut(void 0,t,e),Te(),b=i}function pe(e,t,n){S=!1;const r=b;var i;Se(t,n),Ft(e),Dt(e),ze(e),Ct(!!(i=e).hasNoDefaultLib,i.syntheticFileReferences||[],i.syntheticTypeReferences||[],i.syntheticLibReferences||[]);for(const t of e.sourceFiles)xe(0,t,t);Te(),b=r}function me(e,t,n){S=!0;const r=b;Se(t,n),Ft(e),Dt(e),xe(0,e,e),Te(),b=r}function ge(){return x||(x=Iy(U))}function he(){const e=x.getText();return x.clear(),e}function xe(e,t,n){n&&ke(n),Ae(e,t,void 0)}function ke(e){n=e,N=void 0,D=void 0,e&&xr(e)}function Se(t,n){t&&e.omitTrailingSemicolon&&(t=Oy(t)),T=n,G=!(b=t)||!T}function Te(){r=[],i=[],o=[],a=new Set,s=[],c=new Map,l=[],_=0,u=[],p=0,f=[],m=void 0,g=[],h=void 0,n=void 0,N=void 0,D=void 0,Se(void 0,void 0)}function Ce(){return N||(N=ja(un.checkDefined(n)))}function we(e,t){void 0!==e&&Ae(4,e,t)}function Ne(e){void 0!==e&&Ae(2,e,void 0)}function De(e,t){void 0!==e&&Ae(1,e,t)}function Fe(e){Ae(TN(e)?6:4,e)}function Ee(e){H&&4&Yd(e)&&(H=!1)}function Pe(e){H=e}function Ae(e,t,n){E=n,Le(0,e,t)(e,t),E=void 0}function Ie(e){return!ne&&!qE(e)}function Oe(e){return!G&&!qE(e)&&!Em(e)}function Le(e,t,n){switch(e){case 0:if(A!==Tq&&(!I||I(n)))return Re;case 1:if(O!==Sq&&(F=O(t,n)||n)!==n)return E&&(F=E(F)),Je;case 2:if(Ie(n))return $n;case 3:if(Oe(n))return fr;case 4:return Me;default:return un.assertNever(e)}}function je(e,t,n){return Le(e+1,t,n)}function Re(e,t){const n=je(0,e,t);A(e,t,n)}function Me(e,t){if(null==L||L(t),H){const n=H;Ee(t),Be(e,t),Pe(n)}else Be(e,t);null==j||j(t),E=void 0}function Be(e,t,r=!0){if(r){const n=Dw(t);if(n)return function(e,t,n){switch(n.kind){case 1:!function(e,t,n){rn(`\${${n.order}:`),Be(e,t,!1),rn("}")}(e,t,n);break;case 0:!function(e,t,n){un.assert(242===t.kind,`A tab stop cannot be attached to a node of kind ${un.formatSyntaxKind(t.kind)}.`),un.assert(5!==e,"A tab stop cannot be attached to an embedded statement."),rn(`$${n.order}`)}(e,t,n)}}(e,t,n)}if(0===e)return Tt(nt(t,qE));if(2===e)return Ve(nt(t,zN));if(6===e)return Ue(nt(t,TN),!0);if(3===e)return function(e){we(e.name),tn(),Qt("in"),tn(),we(e.constraint)}(nt(t,iD));if(7===e)return function(e){Gt("{"),tn(),Qt(132===e.token?"assert":"with"),Gt(":"),tn();Ut(e,e.elements,526226),tn(),Gt("}")}(nt(t,sE));if(5===e)return un.assertNode(t,NF),Ye(!0);if(4===e){switch(t.kind){case 16:case 17:case 18:return Ue(t,!1);case 80:return Ve(t);case 81:return We(t);case 166:return function(e){(function(e){80===e.kind?De(e):we(e)})(e.left),Gt("."),we(e.right)}(t);case 167:return function(e){Gt("["),De(e.expression,oe.parenthesizeExpressionOfComputedPropertyName),Gt("]")}(t);case 168:return function(e){At(e,e.modifiers),we(e.name),e.constraint&&(tn(),Qt("extends"),tn(),we(e.constraint)),e.default&&(tn(),Yt("="),tn(),we(e.default))}(t);case 169:return function(e){Pt(e,e.modifiers,!0),we(e.dotDotDotToken),Et(e.name,Zt),we(e.questionToken),e.parent&&317===e.parent.kind&&!e.name?we(e.type):It(e.type),Ot(e.initializer,e.type?e.type.end:e.questionToken?e.questionToken.end:e.name?e.name.end:e.modifiers?e.modifiers.end:e.pos,e,oe.parenthesizeExpressionForDisallowedComma)}(t);case 170:return a=t,Gt("@"),void De(a.expression,oe.parenthesizeLeftSideOfAccess);case 171:return function(e){At(e,e.modifiers),Et(e.name,nn),we(e.questionToken),It(e.type),Xt()}(t);case 172:return function(e){Pt(e,e.modifiers,!0),we(e.name),we(e.questionToken),we(e.exclamationToken),It(e.type),Ot(e.initializer,e.type?e.type.end:e.questionToken?e.questionToken.end:e.name.end,e),Xt()}(t);case 173:return function(e){At(e,e.modifiers),we(e.name),we(e.questionToken),lt(e,dt,ut)}(t);case 174:return function(e){Pt(e,e.modifiers,!0),we(e.asteriskToken),we(e.name),we(e.questionToken),lt(e,dt,_t)}(t);case 175:return function(e){Qt("static"),Dn(e),pt(e.body),Fn(e)}(t);case 176:return function(e){Pt(e,e.modifiers,!1),Qt("constructor"),lt(e,dt,_t)}(t);case 177:case 178:return function(e){const t=Pt(e,e.modifiers,!0);rt(177===e.kind?139:153,t,Qt,e),tn(),we(e.name),lt(e,dt,_t)}(t);case 179:return function(e){lt(e,dt,ut)}(t);case 180:return function(e){Qt("new"),tn(),lt(e,dt,ut)}(t);case 181:return function(e){Pt(e,e.modifiers,!1),Ut(e,e.parameters,8848),It(e.type),Xt()}(t);case 182:return function(e){e.assertsModifier&&(we(e.assertsModifier),tn()),we(e.parameterName),e.type&&(tn(),Qt("is"),tn(),we(e.type))}(t);case 183:return function(e){we(e.typeName),Mt(e,e.typeArguments)}(t);case 184:return function(e){lt(e,$e,He)}(t);case 185:return function(e){At(e,e.modifiers),Qt("new"),tn(),lt(e,$e,He)}(t);case 186:return function(e){Qt("typeof"),tn(),we(e.exprName),Mt(e,e.typeArguments)}(t);case 187:return function(e){Dn(e),d(e.members,In),Gt("{");const t=1&Qd(e)?768:32897;Ut(e,e.members,524288|t),Gt("}"),Fn(e)}(t);case 188:return function(e){we(e.elementType,oe.parenthesizeNonArrayTypeOfPostfixType),Gt("["),Gt("]")}(t);case 189:return function(e){rt(23,e.pos,Gt,e);const t=1&Qd(e)?528:657;Ut(e,e.elements,524288|t,oe.parenthesizeElementTypeOfTupleType),rt(24,e.elements.end,Gt,e)}(t);case 190:return function(e){we(e.type,oe.parenthesizeTypeOfOptionalType),Gt("?")}(t);case 192:return function(e){Ut(e,e.types,516,oe.parenthesizeConstituentTypeOfUnionType)}(t);case 193:return function(e){Ut(e,e.types,520,oe.parenthesizeConstituentTypeOfIntersectionType)}(t);case 194:return function(e){we(e.checkType,oe.parenthesizeCheckTypeOfConditionalType),tn(),Qt("extends"),tn(),we(e.extendsType,oe.parenthesizeExtendsTypeOfConditionalType),tn(),Gt("?"),tn(),we(e.trueType),tn(),Gt(":"),tn(),we(e.falseType)}(t);case 195:return function(e){Qt("infer"),tn(),we(e.typeParameter)}(t);case 196:return function(e){Gt("("),we(e.type),Gt(")")}(t);case 233:return Xe(t);case 197:return void Qt("this");case 198:return function(e){_n(e.operator,Qt),tn();const t=148===e.operator?oe.parenthesizeOperandOfReadonlyTypeOperator:oe.parenthesizeOperandOfTypeOperator;we(e.type,t)}(t);case 199:return function(e){we(e.objectType,oe.parenthesizeNonArrayTypeOfPostfixType),Gt("["),we(e.indexType),Gt("]")}(t);case 200:return function(e){const t=Qd(e);Gt("{"),1&t?tn():(on(),an()),e.readonlyToken&&(we(e.readonlyToken),148!==e.readonlyToken.kind&&Qt("readonly"),tn()),Gt("["),Ae(3,e.typeParameter),e.nameType&&(tn(),Qt("as"),tn(),we(e.nameType)),Gt("]"),e.questionToken&&(we(e.questionToken),58!==e.questionToken.kind&&Gt("?")),Gt(":"),tn(),we(e.type),Xt(),1&t?tn():(on(),sn()),Ut(e,e.members,2),Gt("}")}(t);case 201:return function(e){De(e.literal)}(t);case 202:return function(e){we(e.dotDotDotToken),we(e.name),we(e.questionToken),rt(59,e.name.end,Gt,e),tn(),we(e.type)}(t);case 203:return function(e){we(e.head),Ut(e,e.templateSpans,262144)}(t);case 204:return function(e){we(e.type),we(e.literal)}(t);case 205:return function(e){e.isTypeOf&&(Qt("typeof"),tn()),Qt("import"),Gt("("),we(e.argument),e.attributes&&(Gt(","),tn(),Ae(7,e.attributes)),Gt(")"),e.qualifier&&(Gt("."),we(e.qualifier)),Mt(e,e.typeArguments)}(t);case 206:return function(e){Gt("{"),Ut(e,e.elements,525136),Gt("}")}(t);case 207:return function(e){Gt("["),Ut(e,e.elements,524880),Gt("]")}(t);case 208:return function(e){we(e.dotDotDotToken),e.propertyName&&(we(e.propertyName),Gt(":"),tn()),we(e.name),Ot(e.initializer,e.name.end,e,oe.parenthesizeExpressionForDisallowedComma)}(t);case 239:return function(e){De(e.expression),we(e.literal)}(t);case 240:return void Xt();case 241:return function(e){Qe(e,!e.multiLine&&Tn(e))}(t);case 243:return function(e){Pt(e,e.modifiers,!1),we(e.declarationList),Xt()}(t);case 242:return Ye(!1);case 244:return function(e){De(e.expression,oe.parenthesizeExpressionOfExpressionStatement),n&&Yp(n)&&!Zh(e.expression)||Xt()}(t);case 245:return function(e){const t=rt(101,e.pos,Qt,e);tn(),rt(21,t,Gt,e),De(e.expression),rt(22,e.expression.end,Gt,e),Rt(e,e.thenStatement),e.elseStatement&&(dn(e,e.thenStatement,e.elseStatement),rt(93,e.thenStatement.end,Qt,e),245===e.elseStatement.kind?(tn(),we(e.elseStatement)):Rt(e,e.elseStatement))}(t);case 246:return function(e){rt(92,e.pos,Qt,e),Rt(e,e.statement),CF(e.statement)&&!H?tn():dn(e,e.statement,e.expression),Ze(e,e.statement.end),Xt()}(t);case 247:return function(e){Ze(e,e.pos),Rt(e,e.statement)}(t);case 248:return function(e){const t=rt(99,e.pos,Qt,e);tn();let n=rt(21,t,Gt,e);et(e.initializer),n=rt(27,e.initializer?e.initializer.end:n,Gt,e),jt(e.condition),n=rt(27,e.condition?e.condition.end:n,Gt,e),jt(e.incrementor),rt(22,e.incrementor?e.incrementor.end:n,Gt,e),Rt(e,e.statement)}(t);case 249:return function(e){const t=rt(99,e.pos,Qt,e);tn(),rt(21,t,Gt,e),et(e.initializer),tn(),rt(103,e.initializer.end,Qt,e),tn(),De(e.expression),rt(22,e.expression.end,Gt,e),Rt(e,e.statement)}(t);case 250:return function(e){const t=rt(99,e.pos,Qt,e);tn(),function(e){e&&(we(e),tn())}(e.awaitModifier),rt(21,t,Gt,e),et(e.initializer),tn(),rt(165,e.initializer.end,Qt,e),tn(),De(e.expression),rt(22,e.expression.end,Gt,e),Rt(e,e.statement)}(t);case 251:return function(e){rt(88,e.pos,Qt,e),Lt(e.label),Xt()}(t);case 252:return function(e){rt(83,e.pos,Qt,e),Lt(e.label),Xt()}(t);case 253:return function(e){rt(107,e.pos,Qt,e),jt(e.expression&&at(e.expression),at),Xt()}(t);case 254:return function(e){const t=rt(118,e.pos,Qt,e);tn(),rt(21,t,Gt,e),De(e.expression),rt(22,e.expression.end,Gt,e),Rt(e,e.statement)}(t);case 255:return function(e){const t=rt(109,e.pos,Qt,e);tn(),rt(21,t,Gt,e),De(e.expression),rt(22,e.expression.end,Gt,e),tn(),we(e.caseBlock)}(t);case 256:return function(e){we(e.label),rt(59,e.label.end,Gt,e),tn(),we(e.statement)}(t);case 257:return function(e){rt(111,e.pos,Qt,e),jt(at(e.expression),at),Xt()}(t);case 258:return function(e){rt(113,e.pos,Qt,e),tn(),we(e.tryBlock),e.catchClause&&(dn(e,e.tryBlock,e.catchClause),we(e.catchClause)),e.finallyBlock&&(dn(e,e.catchClause||e.tryBlock,e.finallyBlock),rt(98,(e.catchClause||e.tryBlock).end,Qt,e),tn(),we(e.finallyBlock))}(t);case 259:return function(e){cn(89,e.pos,Qt),Xt()}(t);case 260:return function(e){var t,n,r;we(e.name),we(e.exclamationToken),It(e.type),Ot(e.initializer,(null==(t=e.type)?void 0:t.end)??(null==(r=null==(n=e.name.emitNode)?void 0:n.typeNode)?void 0:r.end)??e.name.end,e,oe.parenthesizeExpressionForDisallowedComma)}(t);case 261:return function(e){tf(e)?(Qt("await"),tn(),Qt("using")):Qt(af(e)?"let":rf(e)?"const":nf(e)?"using":"var"),tn(),Ut(e,e.declarations,528)}(t);case 262:return function(e){ct(e)}(t);case 263:return function(e){gt(e)}(t);case 264:return function(e){Pt(e,e.modifiers,!1),Qt("interface"),tn(),we(e.name),Bt(e,e.typeParameters),Ut(e,e.heritageClauses,512),tn(),Gt("{"),Dn(e),d(e.members,In),Ut(e,e.members,129),Fn(e),Gt("}")}(t);case 265:return function(e){Pt(e,e.modifiers,!1),Qt("type"),tn(),we(e.name),Bt(e,e.typeParameters),tn(),Gt("="),tn(),we(e.type),Xt()}(t);case 266:return function(e){Pt(e,e.modifiers,!1),Qt("enum"),tn(),we(e.name),tn(),Gt("{"),Ut(e,e.members,145),Gt("}")}(t);case 267:return function(e){Pt(e,e.modifiers,!1),2048&~e.flags&&(Qt(32&e.flags?"namespace":"module"),tn()),we(e.name);let t=e.body;if(!t)return Xt();for(;t&&QF(t);)Gt("."),we(t.name),t=t.body;tn(),we(t)}(t);case 268:return function(e){Dn(e),d(e.statements,An),Qe(e,Tn(e)),Fn(e)}(t);case 269:return function(e){rt(19,e.pos,Gt,e),Ut(e,e.clauses,129),rt(20,e.clauses.end,Gt,e,!0)}(t);case 270:return function(e){let t=rt(95,e.pos,Qt,e);tn(),t=rt(130,t,Qt,e),tn(),t=rt(145,t,Qt,e),tn(),we(e.name),Xt()}(t);case 271:return function(e){Pt(e,e.modifiers,!1),rt(102,e.modifiers?e.modifiers.end:e.pos,Qt,e),tn(),e.isTypeOnly&&(rt(156,e.pos,Qt,e),tn()),we(e.name),tn(),rt(64,e.name.end,Gt,e),tn(),function(e){80===e.kind?De(e):we(e)}(e.moduleReference),Xt()}(t);case 272:return function(e){Pt(e,e.modifiers,!1),rt(102,e.modifiers?e.modifiers.end:e.pos,Qt,e),tn(),e.importClause&&(we(e.importClause),tn(),rt(161,e.importClause.end,Qt,e),tn()),De(e.moduleSpecifier),e.attributes&&Lt(e.attributes),Xt()}(t);case 273:return function(e){e.isTypeOnly&&(rt(156,e.pos,Qt,e),tn()),we(e.name),e.name&&e.namedBindings&&(rt(28,e.name.end,Gt,e),tn()),we(e.namedBindings)}(t);case 274:return function(e){const t=rt(42,e.pos,Gt,e);tn(),rt(130,t,Qt,e),tn(),we(e.name)}(t);case 280:return function(e){const t=rt(42,e.pos,Gt,e);tn(),rt(130,t,Qt,e),tn(),we(e.name)}(t);case 275:case 279:return function(e){!function(e){Gt("{"),Ut(e,e.elements,525136),Gt("}")}(e)}(t);case 276:case 281:return function(e){!function(e){e.isTypeOnly&&(Qt("type"),tn()),e.propertyName&&(we(e.propertyName),tn(),rt(130,e.propertyName.end,Qt,e),tn()),we(e.name)}(e)}(t);case 277:return function(e){const t=rt(95,e.pos,Qt,e);tn(),e.isExportEquals?rt(64,t,Yt,e):rt(90,t,Qt,e),tn(),De(e.expression,e.isExportEquals?oe.getParenthesizeRightSideOfBinaryForOperator(64):oe.parenthesizeExpressionOfExportDefault),Xt()}(t);case 278:return function(e){Pt(e,e.modifiers,!1);let t=rt(95,e.pos,Qt,e);tn(),e.isTypeOnly&&(t=rt(156,t,Qt,e),tn()),e.exportClause?we(e.exportClause):t=rt(42,t,Gt,e),e.moduleSpecifier&&(tn(),rt(161,e.exportClause?e.exportClause.end:t,Qt,e),tn(),De(e.moduleSpecifier)),e.attributes&&Lt(e.attributes),Xt()}(t);case 300:return function(e){rt(e.token,e.pos,Qt,e),tn();Ut(e,e.elements,526226)}(t);case 301:return function(e){we(e.name),Gt(":"),tn();const t=e.value;1024&Qd(t)||sr(dw(t).pos),we(t)}(t);case 282:case 319:case 330:case 331:case 333:case 334:case 335:case 336:case 353:case 354:return;case 283:return function(e){Qt("require"),Gt("("),De(e.expression),Gt(")")}(t);case 12:return function(e){b.writeLiteral(e.text)}(t);case 286:case 289:return function(e){if(Gt("<"),TE(e)){const t=bn(e.tagName,e);ht(e.tagName),Mt(e,e.typeArguments),e.attributes.properties&&e.attributes.properties.length>0&&tn(),we(e.attributes),xn(e.attributes,e),mn(t)}Gt(">")}(t);case 287:case 290:return function(e){Gt("")}(t);case 291:return function(e){we(e.name),function(e,t,n,r){n&&(t("="),r(n))}(0,Gt,e.initializer,Fe)}(t);case 292:return function(e){Ut(e,e.properties,262656)}(t);case 293:return function(e){Gt("{..."),De(e.expression),Gt("}")}(t);case 294:return function(e){var t,r;if(e.expression||!ne&&!Zh(e)&&(function(e){let t=!1;return os((null==n?void 0:n.text)||"",e+1,(()=>t=!0)),t}(r=e.pos)||function(e){let t=!1;return is((null==n?void 0:n.text)||"",e+1,(()=>t=!0)),t}(r))){const r=n&&!Zh(e)&&Ja(n,e.pos).line!==Ja(n,e.end).line;r&&b.increaseIndent();const i=rt(19,e.pos,Gt,e);we(e.dotDotDotToken),De(e.expression),rt(20,(null==(t=e.expression)?void 0:t.end)||i,Gt,e),r&&b.decreaseIndent()}}(t);case 295:return function(e){Ne(e.namespace),Gt(":"),Ne(e.name)}(t);case 296:return function(e){rt(84,e.pos,Qt,e),tn(),De(e.expression,oe.parenthesizeExpressionForDisallowedComma),yt(e,e.statements,e.expression.end)}(t);case 297:return function(e){const t=rt(90,e.pos,Qt,e);yt(e,e.statements,t)}(t);case 298:return function(e){tn(),_n(e.token,Qt),tn(),Ut(e,e.types,528)}(t);case 299:return function(e){const t=rt(85,e.pos,Qt,e);tn(),e.variableDeclaration&&(rt(21,t,Gt,e),we(e.variableDeclaration),rt(22,e.variableDeclaration.end,Gt,e),tn()),we(e.block)}(t);case 303:return function(e){we(e.name),Gt(":"),tn();const t=e.initializer;1024&Qd(t)||sr(dw(t).pos),De(t,oe.parenthesizeExpressionForDisallowedComma)}(t);case 304:return function(e){we(e.name),e.objectAssignmentInitializer&&(tn(),Gt("="),tn(),De(e.objectAssignmentInitializer,oe.parenthesizeExpressionForDisallowedComma))}(t);case 305:return function(e){e.expression&&(rt(26,e.pos,Gt,e),De(e.expression,oe.parenthesizeExpressionForDisallowedComma))}(t);case 306:return function(e){we(e.name),Ot(e.initializer,e.name.end,e,oe.parenthesizeExpressionForDisallowedComma)}(t);case 307:return Tt(t);case 308:return un.fail("Bundles should be printed using printBundle");case 309:return St(t);case 310:return function(e){tn(),Gt("{"),we(e.name),Gt("}")}(t);case 312:return Gt("*");case 313:return Gt("?");case 314:return function(e){Gt("?"),we(e.type)}(t);case 315:return function(e){Gt("!"),we(e.type)}(t);case 316:return function(e){we(e.type),Gt("=")}(t);case 317:return function(e){Qt("function"),Jt(e,e.parameters),Gt(":"),we(e.type)}(t);case 191:case 318:return function(e){Gt("..."),we(e.type)}(t);case 320:return function(e){if(K("/**"),e.comment){const t=cl(e.comment);if(t){const e=t.split(/\r\n?|\n/);for(const t of e)on(),tn(),Gt("*"),tn(),K(t)}}e.tags&&(1!==e.tags.length||344!==e.tags[0].kind||e.comment?Ut(e,e.tags,33):(tn(),we(e.tags[0]))),tn(),K("*/")}(t);case 322:return vt(t);case 323:return bt(t);case 327:case 332:case 337:return xt((o=t).tagName),void kt(o.comment);case 328:case 329:return function(e){xt(e.tagName),tn(),Gt("{"),we(e.class),Gt("}"),kt(e.comment)}(t);case 338:return function(e){xt(e.tagName),e.name&&(tn(),we(e.name)),kt(e.comment),bt(e.typeExpression)}(t);case 339:return function(e){kt(e.comment),bt(e.typeExpression)}(t);case 341:case 348:return xt((i=t).tagName),St(i.typeExpression),tn(),i.isBracketed&&Gt("["),we(i.name),i.isBracketed&&Gt("]"),void kt(i.comment);case 340:case 342:case 343:case 344:case 349:case 350:return function(e){xt(e.tagName),St(e.typeExpression),kt(e.comment)}(t);case 345:return function(e){xt(e.tagName),St(e.constraint),tn(),Ut(e,e.typeParameters,528),kt(e.comment)}(t);case 346:return function(e){xt(e.tagName),e.typeExpression&&(309===e.typeExpression.kind?St(e.typeExpression):(tn(),Gt("{"),K("Object"),e.typeExpression.isArrayType&&(Gt("["),Gt("]")),Gt("}"))),e.fullName&&(tn(),we(e.fullName)),kt(e.comment),e.typeExpression&&322===e.typeExpression.kind&&vt(e.typeExpression)}(t);case 347:return function(e){xt(e.tagName),we(e.name),kt(e.comment)}(t);case 351:return function(e){xt(e.tagName),tn(),e.importClause&&(we(e.importClause),tn(),rt(161,e.importClause.end,Qt,e),tn()),De(e.moduleSpecifier),e.attributes&&Lt(e.attributes),kt(e.comment)}(t)}if(U_(t)&&(e=1,O!==Sq)){const n=O(e,t)||t;n!==t&&(t=n,E&&(t=E(t)))}}var i,o,a;if(1===e)switch(t.kind){case 9:case 10:return function(e){Ue(e,!1)}(t);case 11:case 14:case 15:return Ue(t,!1);case 80:return Ve(t);case 81:return We(t);case 209:return function(e){Vt(e,e.elements,8914|(e.multiLine?65536:0),oe.parenthesizeExpressionForDisallowedComma)}(t);case 210:return function(e){Dn(e),d(e.properties,In);const t=131072&Qd(e);t&&an();const r=e.multiLine?65536:0,i=n&&n.languageVersion>=1&&!Yp(n)?64:0;Ut(e,e.properties,526226|i|r),t&&sn(),Fn(e)}(t);case 211:return function(e){De(e.expression,oe.parenthesizeLeftSideOfAccess);const t=e.questionDotToken||ST(XC.createToken(25),e.expression.end,e.name.pos),n=Sn(e,e.expression,t),r=Sn(e,t,e.name);fn(n,!1);29!==t.kind&&function(e){if(kN(e=kl(e))){const t=Nn(e,void 0,!0,!1);return!(448&e.numericLiteralFlags||t.includes(Da(25))||t.includes(String.fromCharCode(69))||t.includes(String.fromCharCode(101)))}if(kx(e)){const t=xw(e);return"number"==typeof t&&isFinite(t)&&t>=0&&Math.floor(t)===t}}(e.expression)&&!b.hasTrailingComment()&&!b.hasTrailingWhitespace()&&Gt("."),e.questionDotToken?we(t):rt(t.kind,e.expression.end,Gt,e),fn(r,!1),we(e.name),mn(n,r)}(t);case 212:return function(e){De(e.expression,oe.parenthesizeLeftSideOfAccess),we(e.questionDotToken),rt(23,e.expression.end,Gt,e),De(e.argumentExpression),rt(24,e.argumentExpression.end,Gt,e)}(t);case 213:return function(e){const t=16&Yd(e);t&&(Gt("("),Ht("0"),Gt(","),tn()),De(e.expression,oe.parenthesizeLeftSideOfAccess),t&&Gt(")"),we(e.questionDotToken),Mt(e,e.typeArguments),Vt(e,e.arguments,2576,oe.parenthesizeExpressionForDisallowedComma)}(t);case 214:return function(e){rt(105,e.pos,Qt,e),tn(),De(e.expression,oe.parenthesizeExpressionOfNew),Mt(e,e.typeArguments),Vt(e,e.arguments,18960,oe.parenthesizeExpressionForDisallowedComma)}(t);case 215:return function(e){const t=16&Yd(e);t&&(Gt("("),Ht("0"),Gt(","),tn()),De(e.tag,oe.parenthesizeLeftSideOfAccess),t&&Gt(")"),Mt(e,e.typeArguments),tn(),De(e.template)}(t);case 216:return function(e){Gt("<"),we(e.type),Gt(">"),De(e.expression,oe.parenthesizeOperandOfPrefixUnary)}(t);case 217:return function(e){const t=rt(21,e.pos,Gt,e),n=bn(e.expression,e);De(e.expression,void 0),xn(e.expression,e),mn(n),rt(22,e.expression?e.expression.end:t,Gt,e)}(t);case 218:return function(e){On(e.name),ct(e)}(t);case 219:return function(e){At(e,e.modifiers),lt(e,Ke,Ge)}(t);case 220:return function(e){rt(91,e.pos,Qt,e),tn(),De(e.expression,oe.parenthesizeOperandOfPrefixUnary)}(t);case 221:return function(e){rt(114,e.pos,Qt,e),tn(),De(e.expression,oe.parenthesizeOperandOfPrefixUnary)}(t);case 222:return function(e){rt(116,e.pos,Qt,e),tn(),De(e.expression,oe.parenthesizeOperandOfPrefixUnary)}(t);case 223:return function(e){rt(135,e.pos,Qt,e),tn(),De(e.expression,oe.parenthesizeOperandOfPrefixUnary)}(t);case 224:return function(e){_n(e.operator,Yt),function(e){const t=e.operand;return 224===t.kind&&(40===e.operator&&(40===t.operator||46===t.operator)||41===e.operator&&(41===t.operator||47===t.operator))}(e)&&tn(),De(e.operand,oe.parenthesizeOperandOfPrefixUnary)}(t);case 225:return function(e){De(e.operand,oe.parenthesizeOperandOfPostfixUnary),_n(e.operator,Yt)}(t);case 226:return se(t);case 227:return function(e){const t=Sn(e,e.condition,e.questionToken),n=Sn(e,e.questionToken,e.whenTrue),r=Sn(e,e.whenTrue,e.colonToken),i=Sn(e,e.colonToken,e.whenFalse);De(e.condition,oe.parenthesizeConditionOfConditionalExpression),fn(t,!0),we(e.questionToken),fn(n,!0),De(e.whenTrue,oe.parenthesizeBranchOfConditionalExpression),mn(t,n),fn(r,!0),we(e.colonToken),fn(i,!0),De(e.whenFalse,oe.parenthesizeBranchOfConditionalExpression),mn(r,i)}(t);case 228:return function(e){we(e.head),Ut(e,e.templateSpans,262144)}(t);case 229:return function(e){rt(127,e.pos,Qt,e),we(e.asteriskToken),jt(e.expression&&at(e.expression),st)}(t);case 230:return function(e){rt(26,e.pos,Gt,e),De(e.expression,oe.parenthesizeExpressionForDisallowedComma)}(t);case 231:return function(e){On(e.name),gt(e)}(t);case 232:case 282:case 353:return;case 234:return function(e){De(e.expression,void 0),e.type&&(tn(),Qt("as"),tn(),we(e.type))}(t);case 235:return function(e){De(e.expression,oe.parenthesizeLeftSideOfAccess),Yt("!")}(t);case 233:return Xe(t);case 238:return function(e){De(e.expression,void 0),e.type&&(tn(),Qt("satisfies"),tn(),we(e.type))}(t);case 236:return function(e){cn(e.keywordToken,e.pos,Gt),Gt("."),we(e.name)}(t);case 237:return un.fail("SyntheticExpression should never be printed.");case 284:return function(e){we(e.openingElement),Ut(e,e.children,262144),we(e.closingElement)}(t);case 285:return function(e){Gt("<"),ht(e.tagName),Mt(e,e.typeArguments),tn(),we(e.attributes),Gt("/>")}(t);case 288:return function(e){we(e.openingFragment),Ut(e,e.children,262144),we(e.closingFragment)}(t);case 352:return un.fail("SyntaxList should not be printed");case 355:return function(e){const t=Qd(e);1024&t||e.pos===e.expression.pos||sr(e.expression.pos),De(e.expression),2048&t||e.end===e.expression.end||or(e.expression.end)}(t);case 356:return function(e){Vt(e,e.elements,528,void 0)}(t);case 357:return un.fail("SyntheticReferenceExpression should not be printed")}return Th(t.kind)?ln(t,Qt):Dl(t.kind)?ln(t,Gt):void un.fail(`Unhandled SyntaxKind: ${un.formatSyntaxKind(t.kind)}.`)}function Je(e,t){const n=je(1,e,t);un.assertIsDefined(F),t=F,F=void 0,n(e,t)}function ze(t){let r=!1;const i=308===t.kind?t:void 0;if(i&&0===V)return;const o=i?i.sourceFiles.length:1;for(let a=0;a")}function He(e){tn(),we(e.type)}function Ke(e){Bt(e,e.typeParameters),zt(e,e.parameters),It(e.type),tn(),we(e.equalsGreaterThanToken)}function Ge(e){CF(e.body)?pt(e.body):(tn(),De(e.body,oe.parenthesizeConciseBodyOfArrowFunction))}function Xe(e){De(e.expression,oe.parenthesizeLeftSideOfAccess),Mt(e,e.typeArguments)}function Qe(e,t){rt(19,e.pos,Gt,e);const n=t||1&Qd(e)?768:129;Ut(e,e.statements,n),rt(20,e.statements.end,Gt,e,!!(1&n))}function Ye(e){e?Gt(";"):Xt()}function Ze(e,t){const n=rt(117,t,Qt,e);tn(),rt(21,n,Gt,e),De(e.expression),rt(22,e.expression.end,Gt,e)}function et(e){void 0!==e&&(261===e.kind?we(e):De(e))}function rt(e,t,r,i,o){const a=dc(i),s=a&&a.kind===i.kind,c=t;if(s&&n&&(t=Xa(n.text,t)),s&&i.pos!==c){const e=o&&n&&!Wb(c,t,n);e&&an(),or(c),e&&sn()}if(t=q||19!==e&&20!==e?_n(e,r,t):cn(e,t,r,i),s&&i.end!==t){const e=294===i.kind;sr(t,!e,e)}return t}function it(e){return 2===e.kind||!!e.hasTrailingNewLine}function ot(e){if(!n)return!1;const t=ls(n.text,e.pos);if(t){const t=dc(e);if(t&&ZD(t.parent))return!0}return!!$(t,it)||!!$(fw(e),it)||!!xF(e)&&(!(e.pos===e.expression.pos||!$(_s(n.text,e.expression.pos),it))||ot(e.expression))}function at(e){if(!ne)switch(e.kind){case 355:if(ot(e)){const t=dc(e);if(t&&ZD(t)){const n=XC.createParenthesizedExpression(e.expression);return YC(n,e),nI(n,t),n}return XC.createParenthesizedExpression(e)}return XC.updatePartiallyEmittedExpression(e,at(e.expression));case 211:return XC.updatePropertyAccessExpression(e,at(e.expression),e.name);case 212:return XC.updateElementAccessExpression(e,at(e.expression),e.argumentExpression);case 213:return XC.updateCallExpression(e,at(e.expression),e.typeArguments,e.arguments);case 215:return XC.updateTaggedTemplateExpression(e,at(e.tag),e.typeArguments,e.template);case 225:return XC.updatePostfixUnaryExpression(e,at(e.operand));case 226:return XC.updateBinaryExpression(e,at(e.left),e.operatorToken,e.right);case 227:return XC.updateConditionalExpression(e,at(e.condition),e.questionToken,e.whenTrue,e.colonToken,e.whenFalse);case 234:return XC.updateAsExpression(e,at(e.expression),e.type);case 238:return XC.updateSatisfiesExpression(e,at(e.expression),e.type);case 235:return XC.updateNonNullExpression(e,at(e.expression))}return e}function st(e){return at(oe.parenthesizeExpressionForDisallowedComma(e))}function ct(e){Pt(e,e.modifiers,!1),Qt("function"),we(e.asteriskToken),tn(),Ne(e.name),lt(e,dt,_t)}function lt(e,t,n){const r=131072&Qd(e);r&&an(),Dn(e),d(e.parameters,An),t(e),n(e),Fn(e),r&&sn()}function _t(e){const t=e.body;t?pt(t):Xt()}function ut(e){Xt()}function dt(e){Bt(e,e.typeParameters),Jt(e,e.parameters),It(e.type)}function pt(e){An(e),null==L||L(e),tn(),Gt("{"),an();const t=function(e){if(1&Qd(e))return!0;if(e.multiLine)return!1;if(!Zh(e)&&n&&!Rb(e,n))return!1;if(gn(e,fe(e.statements),2)||yn(e,ye(e.statements),2,e.statements))return!1;let t;for(const n of e.statements){if(hn(t,n,2)>0)return!1;t=n}return!0}(e)?ft:mt;Zn(e,e.statements,t),sn(),cn(20,e.statements.end,Gt,e),null==j||j(e)}function ft(e){mt(e,!0)}function mt(e,t){const n=Nt(e.statements),r=b.getTextPos();ze(e),0===n&&r===b.getTextPos()&&t?(sn(),Ut(e,e.statements,768),an()):Ut(e,e.statements,1,void 0,n)}function gt(e){Pt(e,e.modifiers,!0),rt(86,Lb(e).pos,Qt,e),e.name&&(tn(),Ne(e.name));const t=131072&Qd(e);t&&an(),Bt(e,e.typeParameters),Ut(e,e.heritageClauses,0),tn(),Gt("{"),Dn(e),d(e.members,In),Ut(e,e.members,129),Fn(e),Gt("}"),t&&sn()}function ht(e){80===e.kind?De(e):we(e)}function yt(e,t,r){let i=163969;1===t.length&&(!n||Zh(e)||Zh(t[0])||Mb(e,t[0],n))?(cn(59,r,Gt,e),tn(),i&=-130):rt(59,r,Gt,e),Ut(e,t,i)}function vt(e){Ut(e,XC.createNodeArray(e.jsDocPropertyTags),33)}function bt(e){e.typeParameters&&Ut(e,XC.createNodeArray(e.typeParameters),33),e.parameters&&Ut(e,XC.createNodeArray(e.parameters),33),e.type&&(on(),tn(),Gt("*"),tn(),we(e.type))}function xt(e){Gt("@"),we(e)}function kt(e){const t=cl(e);t&&(tn(),K(t))}function St(e){e&&(tn(),Gt("{"),we(e.type),Gt("}"))}function Tt(e){on();const t=e.statements;0===t.length||!uf(t[0])||Zh(t[0])?Zn(e,t,wt):wt(e)}function Ct(e,t,r,i){if(e&&(en('/// '),on()),n&&n.moduleName&&(en(`/// `),on()),n&&n.amdDependencies)for(const e of n.amdDependencies)e.name?en(`/// `):en(`/// `),on();function o(e,t){for(const n of t){const t=n.resolutionMode?`resolution-mode="${99===n.resolutionMode?"import":"require"}" `:"",r=n.preserve?'preserve="true" ':"";en(`/// `),on()}}o("path",t),o("types",r),o("lib",i)}function wt(e){const t=e.statements;Dn(e),d(e.statements,An),ze(e);const n=k(t,(e=>!uf(e)));!function(e){e.isDeclarationFile&&Ct(e.hasNoDefaultLib,e.referencedFiles,e.typeReferenceDirectives,e.libReferenceDirectives)}(e),Ut(e,t,1,void 0,-1===n?t.length:n),Fn(e)}function Nt(e,t,n){let r=!!t;for(let i=0;i=r.length||0===s;if(c&&32768&i)return null==R||R(r),void(null==M||M(r));15360&i&&(Gt(function(e){return Nq[15360&e][0]}(i)),c&&r&&sr(r.pos,!0)),null==R||R(r),c?!(1&i)||H&&(!t||n&&Rb(t,n))?256&i&&!(524288&i)&&tn():on():$t(e,t,r,i,o,a,s,r.hasTrailingComma,r),null==M||M(r),15360&i&&(c&&r&&or(r.end),Gt(function(e){return Nq[15360&e][1]}(i)))}function $t(e,t,n,r,i,o,a,s,c){const l=!(262144&r);let _=l;const u=gn(t,n[o],r);u?(on(u),_=!1):256&r&&tn(),128&r&&an();const d=function(e,t){return 1===e.length?iU:"object"==typeof t?oU:aU}(e,i);let p,f=!1;for(let s=0;s0?(131&r||(an(),f=!0),_&&60&r&&!KS(a.pos)&&sr(dw(a).pos,!!(512&r),!0),on(e),_=!1):p&&512&r&&tn()}_?sr(dw(a).pos):_=l,y=a.pos,d(a,e,i,s),f&&(sn(),f=!1),p=a}const m=p?Qd(p):0,g=ne||!!(2048&m),h=s&&64&r&&16&r;h&&(p&&!g?rt(28,p.end,Gt,p):Gt(",")),p&&(t?t.end:-1)!==p.end&&60&r&&!g&&or(h&&(null==c?void 0:c.end)?c.end:p.end),128&r&&sn();const v=yn(t,n[o+a-1],r,c);v?on(v):2097408&r&&tn()}function Ht(e){b.writeLiteral(e)}function Kt(e,t){b.writeSymbol(e,t)}function Gt(e){b.writePunctuation(e)}function Xt(){b.writeTrailingSemicolon(";")}function Qt(e){b.writeKeyword(e)}function Yt(e){b.writeOperator(e)}function Zt(e){b.writeParameter(e)}function en(e){b.writeComment(e)}function tn(){b.writeSpace(" ")}function nn(e){b.writeProperty(e)}function rn(e){b.nonEscapingWrite?b.nonEscapingWrite(e):b.write(e)}function on(e=1){for(let t=0;t0)}function an(){b.increaseIndent()}function sn(){b.decreaseIndent()}function cn(e,t,n,r){return G?_n(e,n,t):function(e,t,n,r,i){if(G||e&&Em(e))return i(t,n,r);const o=e&&e.emitNode,a=o&&o.flags||0,s=o&&o.tokenSourceMapRanges&&o.tokenSourceMapRanges[t],c=s&&s.source||C;return r=hr(c,s?s.pos:r),!(256&a)&&r>=0&&vr(c,r),r=i(t,n,r),s&&(r=s.end),!(512&a)&&r>=0&&vr(c,r),r}(r,e,n,t,_n)}function ln(e,t){B&&B(e),t(Da(e.kind)),J&&J(e)}function _n(e,t,n){const r=Da(e);return t(r),n<0?n:n+r.length}function dn(e,t,n){if(1&Qd(e))tn();else if(H){const r=Sn(e,t,n);r?on(r):tn()}else on()}function pn(e){const t=e.split(/\r\n?|\n/),n=Ou(t);for(const e of t){const t=n?e.slice(n):e;t.length&&(on(),K(t))}}function fn(e,t){e?(an(),on(e)):t&&tn()}function mn(e,t){e&&sn(),t&&sn()}function gn(e,t,r){if(2&r||H){if(65536&r)return 1;if(void 0===t)return!e||n&&Rb(e,n)?0:1;if(t.pos===y)return 0;if(12===t.kind)return 0;if(n&&e&&!KS(e.pos)&&!Zh(t)&&(!t.parent||lc(t.parent)===lc(e)))return H?vn((r=>Hb(t.pos,e.pos,n,r))):Mb(e,t,n)?0:1;if(kn(t,r))return 1}return 1&r?1:0}function hn(e,t,r){if(2&r||H){if(void 0===e||void 0===t)return 0;if(12===t.kind)return 0;if(n&&!Zh(e)&&!Zh(t))return H&&function(e,t){if(t.pos-1&&r.indexOf(t)===i+1}(e,t)?vn((r=>qb(e,t,n,r))):!H&&(o=t,(i=lc(i=e)).parent&&i.parent===lc(o).parent)?zb(e,t,n)?0:1:65536&r?1:0;if(kn(e,r)||kn(t,r))return 1}else if(_w(t))return 1;var i,o;return 1&r?1:0}function yn(e,t,r,i){if(2&r||H){if(65536&r)return 1;if(void 0===t)return!e||n&&Rb(e,n)?0:1;if(n&&e&&!KS(e.pos)&&!Zh(t)&&(!t.parent||t.parent===e)){if(H){const r=i&&!KS(i.end)?i.end:t.end;return vn((t=>Kb(r,e.end,n,t)))}return Bb(e,t,n)?0:1}if(kn(t,r))return 1}return 1&r&&!(131072&r)?1:0}function vn(e){un.assert(!!H);const t=e(!0);return 0===t?e(!1):t}function bn(e,t){const n=H&&gn(t,e,0);return n&&fn(n,!1),!!n}function xn(e,t){const n=H&&yn(t,e,0,void 0);n&&on(n)}function kn(e,t){if(Zh(e)){const n=_w(e);return void 0===n?!!(65536&t):n}return!!(65536&t)}function Sn(e,t,r){return 262144&Qd(e)?0:(e=Cn(e),t=Cn(t),_w(r=Cn(r))?1:!n||Zh(e)||Zh(t)||Zh(r)?0:H?vn((e=>qb(t,r,n,e))):zb(t,r,n)?0:1)}function Tn(e){return 0===e.statements.length&&(!n||zb(e,e,n))}function Cn(e){for(;217===e.kind&&Zh(e);)e=e.expression;return e}function wn(e,t){if(Vl(e)||Wl(e))return Ln(e);if(TN(e)&&e.textSourceNode)return wn(e.textSourceNode,t);const r=n,i=!!r&&!!e.parent&&!Zh(e);if(ul(e)){if(!i||hd(e)!==lc(r))return mc(e)}else if(IE(e)){if(!i||hd(e)!==lc(r))return rC(e)}else if(un.assertNode(e,Al),!i)return e.text;return qd(r,e,t)}function Nn(t,r=n,i,o){if(11===t.kind&&t.textSourceNode){const e=t.textSourceNode;if(zN(e)||qN(e)||kN(e)||IE(e)){const n=kN(e)?e.text:wn(e);return o?`"${Ny(n)}"`:i||16777216&Qd(t)?`"${by(n)}"`:`"${ky(n)}"`}return Nn(e,hd(e),i,o)}return tp(t,r,(i?1:0)|(o?2:0)|(e.terminateUnterminatedLiterals?4:0)|(e.target&&e.target>=8?8:0))}function Dn(e){l.push(_),_=0,g.push(h),e&&1048576&Qd(e)||(u.push(p),p=0,s.push(c),c=void 0,f.push(m))}function Fn(e){_=l.pop(),h=g.pop(),e&&1048576&Qd(e)||(p=u.pop(),c=s.pop(),m=f.pop())}function En(e){m&&m!==ye(f)||(m=new Set),m.add(e)}function Pn(e){h&&h!==ye(g)||(h=new Set),h.add(e)}function An(e){if(e)switch(e.kind){case 241:case 296:case 297:d(e.statements,An);break;case 256:case 254:case 246:case 247:An(e.statement);break;case 245:An(e.thenStatement),An(e.elseStatement);break;case 248:case 250:case 249:An(e.initializer),An(e.statement);break;case 255:An(e.caseBlock);break;case 269:d(e.clauses,An);break;case 258:An(e.tryBlock),An(e.catchClause),An(e.finallyBlock);break;case 299:An(e.variableDeclaration),An(e.block);break;case 243:An(e.declarationList);break;case 261:d(e.declarations,An);break;case 260:case 169:case 208:case 263:case 274:case 280:On(e.name);break;case 262:On(e.name),1048576&Qd(e)&&(d(e.parameters,An),An(e.body));break;case 206:case 207:case 275:d(e.elements,An);break;case 272:An(e.importClause);break;case 273:On(e.name),An(e.namedBindings);break;case 276:On(e.propertyName||e.name)}}function In(e){if(e)switch(e.kind){case 303:case 304:case 172:case 171:case 174:case 173:case 177:case 178:On(e.name)}}function On(e){e&&(Vl(e)||Wl(e)?Ln(e):x_(e)&&An(e))}function Ln(e){const t=e.emitNode.autoGenerate;if(4==(7&t.flags))return jn($A(e),qN(e),t.flags,t.prefix,t.suffix);{const n=t.id;return o[n]||(o[n]=function(e){const t=e.emitNode.autoGenerate,n=HA(t.prefix,Ln),r=HA(t.suffix);switch(7&t.flags){case 1:return Jn(0,!!(8&t.flags),qN(e),n,r);case 2:return un.assertNode(e,zN),Jn(268435456,!!(8&t.flags),!1,n,r);case 3:return zn(mc(e),32&t.flags?Mn:Rn,!!(16&t.flags),!!(8&t.flags),qN(e),n,r)}return un.fail(`Unsupported GeneratedIdentifierKind: ${un.formatEnum(7&t.flags,br,!0)}.`)}(e))}}function jn(e,t,n,o,a){const s=jB(e),c=t?i:r;return c[s]||(c[s]=Vn(e,t,n??0,HA(o,Ln),HA(a)))}function Rn(e,t){return Mn(e)&&!function(e,t){let n,r;if(t?(n=h,r=g):(n=m,r=f),null==n?void 0:n.has(e))return!0;for(let t=r.length-1;t>=0;t--)if(n!==r[t]&&(n=r[t],null==n?void 0:n.has(e)))return!0;return!1}(e,t)&&!a.has(e)}function Mn(e,t){return!n||Td(n,e,P)}function Bn(e,t){switch(e){case"":p=t;break;case"#":_=t;break;default:c??(c=new Map),c.set(e,t)}}function Jn(e,t,n,r,i){r.length>0&&35===r.charCodeAt(0)&&(r=r.slice(1));const o=KA(n,r,"",i);let a=function(e){switch(e){case"":return p;case"#":return _;default:return(null==c?void 0:c.get(e))??0}}(o);if(e&&!(a&e)){const s=KA(n,r,268435456===e?"_i":"_n",i);if(Rn(s,n))return a|=e,n?Pn(s):t&&En(s),Bn(o,a),s}for(;;){const e=268435455&a;if(a++,8!==e&&13!==e){const s=KA(n,r,e<26?"_"+String.fromCharCode(97+e):"_"+(e-26),i);if(Rn(s,n))return n?Pn(s):t&&En(s),Bn(o,a),s}}}function zn(e,t=Rn,n,r,i,o,s){if(e.length>0&&35===e.charCodeAt(0)&&(e=e.slice(1)),o.length>0&&35===o.charCodeAt(0)&&(o=o.slice(1)),n){const n=KA(i,o,e,s);if(t(n,i))return i?Pn(n):r?En(n):a.add(n),n}95!==e.charCodeAt(e.length-1)&&(e+="_");let c=1;for(;;){const n=KA(i,o,e+c,s);if(t(n,i))return i?Pn(n):r?En(n):a.add(n),n;c++}}function qn(e){return zn(e,Mn,!0,!1,!1,"","")}function Un(){return zn("default",Rn,!1,!1,!1,"","")}function Vn(e,t,n,r,i){switch(e.kind){case 80:case 81:return zn(wn(e),Rn,!!(16&n),!!(8&n),t,r,i);case 267:case 266:return un.assert(!r&&!i&&!t),function(e){const t=wn(e.name);return function(e,t){for(let n=t;n&&sh(n,t);n=n.nextContainer)if(au(n)&&n.locals){const t=n.locals.get(pc(e));if(t&&3257279&t.flags)return!1}return!0}(t,tt(e,au))?t:zn(t,Rn,!1,!1,!1,"","")}(e);case 272:case 278:return un.assert(!r&&!i&&!t),function(e){const t=xg(e);return zn(TN(t)?rp(t.text):"module",Rn,!1,!1,!1,"","")}(e);case 262:case 263:{un.assert(!r&&!i&&!t);const o=e.name;return o&&!Vl(o)?Vn(o,!1,n,r,i):Un()}case 277:return un.assert(!r&&!i&&!t),Un();case 231:return un.assert(!r&&!i&&!t),zn("class",Rn,!1,!1,!1,"","");case 174:case 177:case 178:return function(e,t,n,r){return zN(e.name)?jn(e.name,t):Jn(0,!1,t,n,r)}(e,t,r,i);case 167:return Jn(0,!0,t,r,i);default:return Jn(0,!1,t,r,i)}}function $n(e,t){const n=je(2,e,t),r=Y,i=Z,o=ee;Hn(t),n(e,t),Kn(t,r,i,o)}function Hn(e){const t=Qd(e),n=dw(e);!function(e,t,n,r){re(),te=!1;const i=n<0||!!(1024&t)||12===e.kind,o=r<0||!!(2048&t)||12===e.kind;(n>0||r>0)&&n!==r&&(i||er(n,353!==e.kind),(!i||n>=0&&1024&t)&&(Y=n),(!o||r>=0&&2048&t)&&(Z=r,261===e.kind&&(ee=r))),d(fw(e),Xn),ie()}(e,t,n.pos,n.end),4096&t&&(ne=!0)}function Kn(e,t,n,r){const i=Qd(e),o=dw(e);4096&i&&(ne=!1),Gn(e,i,o.pos,o.end,t,n,r);const a=Aw(e);a&&Gn(e,i,a.pos,a.end,t,n,r)}function Gn(e,t,n,r,i,o,a){re();const s=r<0||!!(2048&t)||12===e.kind;d(hw(e),Qn),(n>0||r>0)&&n!==r&&(Y=i,Z=o,ee=a,s||353===e.kind||function(e){ur(e,ar)}(r)),ie()}function Xn(e){(e.hasLeadingNewline||2===e.kind)&&b.writeLine(),Yn(e),e.hasTrailingNewLine||2===e.kind?b.writeLine():b.writeSpace(" ")}function Qn(e){b.isAtStartOfLine()||b.writeSpace(" "),Yn(e),e.hasTrailingNewLine&&b.writeLine()}function Yn(e){const t=function(e){return 3===e.kind?`/*${e.text}*/`:`//${e.text}`}(e);bv(t,3===e.kind?Ia(t):void 0,b,0,t.length,U)}function Zn(e,t,r){re();const{pos:i,end:o}=t,a=Qd(e),s=ne||o<0||!!(2048&a);i<0||!!(1024&a)||function(e){const t=n&&vv(n.text,Ce(),b,dr,e,U,ne);t&&(D?D.push(t):D=[t])}(t),ie(),4096&a&&!ne?(ne=!0,r(e),ne=!1):r(e),re(),s||(er(t.end,!0),te&&!b.isAtStartOfLine()&&b.writeLine()),ie()}function er(e,t){te=!1,t?0===e&&(null==n?void 0:n.isDeclarationFile)?_r(e,nr):_r(e,ir):0===e&&_r(e,tr)}function tr(e,t,n,r,i){pr(e,t)&&ir(e,t,n,r,i)}function nr(e,t,n,r,i){pr(e,t)||ir(e,t,n,r,i)}function rr(t,n){return!e.onlyPrintJsDocStyle||lI(t,n)||Rd(t,n)}function ir(e,t,r,i,o){n&&rr(n.text,e)&&(te||(yv(Ce(),b,o,e),te=!0),yr(e),bv(n.text,Ce(),b,e,t,U),yr(t),i?b.writeLine():3===r&&b.writeSpace(" "))}function or(e){ne||-1===e||er(e,!0)}function ar(e,t,r,i){n&&rr(n.text,e)&&(b.isAtStartOfLine()||b.writeSpace(" "),yr(e),bv(n.text,Ce(),b,e,t,U),yr(t),i&&b.writeLine())}function sr(e,t,n){ne||(re(),ur(e,t?ar:n?cr:lr),ie())}function cr(e,t,r){n&&(yr(e),bv(n.text,Ce(),b,e,t,U),yr(t),2===r&&b.writeLine())}function lr(e,t,r,i){n&&(yr(e),bv(n.text,Ce(),b,e,t,U),yr(t),i?b.writeLine():b.writeSpace(" "))}function _r(e,t){!n||-1!==Y&&e===Y||(function(e){return void 0!==D&&ve(D).nodePos===e}(e)?function(e){if(!n)return;const t=ve(D).detachedCommentEndPos;D.length-1?D.pop():D=void 0,is(n.text,t,e,t)}(t):is(n.text,e,t,e))}function ur(e,t){n&&(-1===Z||e!==Z&&e!==ee)&&os(n.text,e,t)}function dr(e,t,r,i,o,a){n&&rr(n.text,i)&&(yr(i),bv(e,t,r,i,o,a),yr(o))}function pr(e,t){return!!n&&jd(n.text,e,t)}function fr(e,t){const n=je(3,e,t);mr(t),n(e,t),gr(t)}function mr(e){const t=Qd(e),n=aw(e),r=n.source||C;353!==e.kind&&!(32&t)&&n.pos>=0&&vr(n.source||C,hr(r,n.pos)),128&t&&(G=!0)}function gr(e){const t=Qd(e),n=aw(e);128&t&&(G=!1),353!==e.kind&&!(64&t)&&n.end>=0&&vr(n.source||C,n.end)}function hr(e,t){return e.skipTrivia?e.skipTrivia(t):Xa(e.text,t)}function yr(e){if(G||KS(e)||kr(C))return;const{line:t,character:n}=Ja(C,e);T.addMapping(b.getLine(),b.getColumn(),X,t,n,void 0)}function vr(e,t){if(e!==C){const n=C,r=X;xr(e),yr(t),function(e,t){C=e,X=t}(n,r)}else yr(t)}function xr(t){G||(C=t,t!==w?kr(t)||(X=T.addSource(t.fileName),e.inlineSources&&T.setSourceContent(X,t.text),w=t,Q=X):X=Q)}function kr(e){return ko(e.fileName,".json")}}function iU(e,t,n,r){t(e)}function oU(e,t,n,r){t(e,n.select(r))}function aU(e,t,n,r){t(e,n)}function sU(e,t,n){if(!e.getDirectories||!e.readDirectory)return;const r=new Map,i=Wt(n);return{useCaseSensitiveFileNames:n,fileExists:function(t){const n=s(o(t));return n&&u(n.sortedAndCanonicalizedFiles,i(c(t)))||e.fileExists(t)},readFile:(t,n)=>e.readFile(t,n),directoryExists:e.directoryExists&&function(t){const n=o(t);return r.has(Vo(n))||e.directoryExists(t)},getDirectories:function(t){const n=_(t,o(t));return n?n.directories.slice():e.getDirectories(t)},readDirectory:function(r,i,a,s,u){const p=o(r),f=_(r,p);let m;return void 0!==f?mS(r,i,a,s,n,t,u,(function(e){const t=o(e);if(t===p)return f||g(e,t);const n=_(e,t);return void 0!==n?n||g(e,t):tT}),d):e.readDirectory(r,i,a,s,u);function g(t,n){if(m&&n===p)return m;const r={files:E(e.readDirectory(t,void 0,void 0,["*.*"]),c)||l,directories:e.getDirectories(t)||l};return n===p&&(m=r),r}},createDirectory:e.createDirectory&&function(t){const n=s(o(t));if(n){const e=c(t),r=i(e);Z(n.sortedAndCanonicalizedDirectories,r,Ct)&&n.directories.push(e)}e.createDirectory(t)},writeFile:e.writeFile&&function(t,n,r){const i=s(o(t));return i&&f(i,c(t),!0),e.writeFile(t,n,r)},addOrDeleteFileOrDirectory:function(t,n){if(void 0!==a(n))return void m();const r=s(n);if(!r)return void p(n);if(!e.directoryExists)return void m();const o=c(t),l={fileExists:e.fileExists(t),directoryExists:e.directoryExists(t)};return l.directoryExists||u(r.sortedAndCanonicalizedDirectories,i(o))?m():f(r,o,l.fileExists),l},addOrDeleteFile:function(e,t,n){if(1===n)return;const r=s(t);r?f(r,c(e),0===n):p(t)},clearCache:m,realpath:e.realpath&&d};function o(e){return qo(e,t,i)}function a(e){return r.get(Vo(e))}function s(e){const t=a(Do(e));return t?(t.sortedAndCanonicalizedFiles||(t.sortedAndCanonicalizedFiles=t.files.map(i).sort(),t.sortedAndCanonicalizedDirectories=t.directories.map(i).sort()),t):t}function c(e){return Fo(Jo(e))}function _(t,n){const i=a(n=Vo(n));if(i)return i;try{return function(t,n){var i;if(!e.realpath||Vo(o(e.realpath(t)))===n){const i={files:E(e.readDirectory(t,void 0,void 0,["*.*"]),c)||[],directories:e.getDirectories(t)||[]};return r.set(Vo(n),i),i}if(null==(i=e.directoryExists)?void 0:i.call(e,t))return r.set(n,!1),!1}(t,n)}catch{return void un.assert(!r.has(Vo(n)))}}function u(e,t){return Te(e,t,st,Ct)>=0}function d(t){return e.realpath?e.realpath(t):t}function p(e){aa(Do(e),(e=>!!r.delete(Vo(e))||void 0))}function f(e,t,n){const r=e.sortedAndCanonicalizedFiles,o=i(t);if(n)Z(r,o,Ct)&&e.files.push(t);else{const t=Te(r,o,st,Ct);if(t>=0){r.splice(t,1);const n=e.files.findIndex((e=>i(e)===o));e.files.splice(n,1)}}}function m(){r.clear()}}var cU=(e=>(e[e.Update=0]="Update",e[e.RootNamesAndUpdate=1]="RootNamesAndUpdate",e[e.Full=2]="Full",e))(cU||{});function lU(e,t,n,r,i){var o;const a=Re((null==(o=null==t?void 0:t.configFile)?void 0:o.extendedSourceFiles)||l,i);n.forEach(((t,n)=>{a.has(n)||(t.projects.delete(e),t.close())})),a.forEach(((t,i)=>{const o=n.get(i);o?o.projects.add(e):n.set(i,{projects:new Set([e]),watcher:r(t,i),close:()=>{const e=n.get(i);e&&0===e.projects.size&&(e.watcher.close(),n.delete(i))}})}))}function _U(e,t){t.forEach((t=>{t.projects.delete(e)&&t.close()}))}function uU(e,t,n){e.delete(t)&&e.forEach((({extendedResult:r},i)=>{var o;(null==(o=r.extendedSourceFiles)?void 0:o.some((e=>n(e)===t)))&&uU(e,i,n)}))}function dU(e,t,n){dx(t,e.getMissingFilePaths(),{createNewValue:n,onDeleteValue:tx})}function pU(e,t,n){function r(e,t){return{watcher:n(e,t),flags:t}}t?dx(e,new Map(Object.entries(t)),{createNewValue:r,onDeleteValue:vU,onExistingValue:function(t,n,i){t.flags!==n&&(t.watcher.close(),e.set(i,r(i,n)))}}):_x(e,vU)}function fU({watchedDirPath:e,fileOrDirectory:t,fileOrDirectoryPath:n,configFileName:r,options:i,program:o,extraFileExtensions:a,currentDirectory:s,useCaseSensitiveFileNames:c,writeLog:l,toPath:_,getScriptKind:u}){const d=wW(n);if(!d)return l(`Project: ${r} Detected ignored path: ${t}`),!0;if((n=d)===e)return!1;if(xo(n)&&!RS(t,i,a)&&!function(){if(!u)return!1;switch(u(t)){case 3:case 4:case 7:case 5:return!0;case 1:case 2:return Pk(i);case 6:return wk(i);case 0:return!1}}())return l(`Project: ${r} Detected file add/remove of non supported extension: ${t}`),!0;if(bj(t,i.configFile.configFileSpecs,Bo(Do(r),s),c,s))return l(`Project: ${r} Detected excluded file: ${t}`),!0;if(!o)return!1;if(i.outFile||i.outDir)return!1;if($I(n)){if(i.declarationDir)return!1}else if(!So(n,TS))return!1;const p=zS(n),f=Qe(o)?void 0:t$(o)?o.getProgramOrUndefined():o,m=f||Qe(o)?void 0:o;return!(!g(p+".ts")&&!g(p+".tsx")||(l(`Project: ${r} Detected output file: ${t}`),0));function g(e){return f?!!f.getSourceFileByPath(e):m?m.state.fileInfos.has(e):!!b(o,(t=>_(t)===e))}}function mU(e,t){return!!e&&e.isEmittedFile(t)}var gU=(e=>(e[e.None=0]="None",e[e.TriggerOnly=1]="TriggerOnly",e[e.Verbose=2]="Verbose",e))(gU||{});function hU(e,t,n,r){eo(2===t?n:rt);const i={watchFile:(t,n,r,i)=>e.watchFile(t,n,r,i),watchDirectory:(t,n,r,i)=>e.watchDirectory(t,n,!!(1&r),i)},o=0!==t?{watchFile:l("watchFile"),watchDirectory:l("watchDirectory")}:void 0,a=2===t?{watchFile:function(e,t,i,a,s,c){n(`FileWatcher:: Added:: ${_(e,i,a,s,c,r)}`);const l=o.watchFile(e,t,i,a,s,c);return{close:()=>{n(`FileWatcher:: Close:: ${_(e,i,a,s,c,r)}`),l.close()}}},watchDirectory:function(e,t,i,a,s,c){const l=`DirectoryWatcher:: Added:: ${_(e,i,a,s,c,r)}`;n(l);const u=Un(),d=o.watchDirectory(e,t,i,a,s,c),p=Un()-u;return n(`Elapsed:: ${p}ms ${l}`),{close:()=>{const t=`DirectoryWatcher:: Close:: ${_(e,i,a,s,c,r)}`;n(t);const o=Un();d.close();const l=Un()-o;n(`Elapsed:: ${l}ms ${t}`)}}}}:o||i,s=2===t?function(e,t,i,o,a){return n(`ExcludeWatcher:: Added:: ${_(e,t,i,o,a,r)}`),{close:()=>n(`ExcludeWatcher:: Close:: ${_(e,t,i,o,a,r)}`)}}:u$;return{watchFile:c("watchFile"),watchDirectory:c("watchDirectory")};function c(t){return(n,r,i,o,c,l)=>{var _;return kj(n,"watchFile"===t?null==o?void 0:o.excludeFiles:null==o?void 0:o.excludeDirectories,"boolean"==typeof e.useCaseSensitiveFileNames?e.useCaseSensitiveFileNames:e.useCaseSensitiveFileNames(),(null==(_=e.getCurrentDirectory)?void 0:_.call(e))||"")?s(n,i,o,c,l):a[t].call(void 0,n,r,i,o,c,l)}}function l(e){return(t,o,a,s,c,l)=>i[e].call(void 0,t,((...i)=>{const u=`${"watchFile"===e?"FileWatcher":"DirectoryWatcher"}:: Triggered with ${i[0]} ${void 0!==i[1]?i[1]:""}:: ${_(t,a,s,c,l,r)}`;n(u);const d=Un();o.call(void 0,...i);const p=Un()-d;n(`Elapsed:: ${p}ms ${u}`)}),a,s,c,l)}function _(e,t,n,r,i,o){return`WatchInfo: ${e} ${t} ${JSON.stringify(n)} ${o?o(r,i):void 0===i?r:`${r} ${i}`}`}}function yU(e){const t=null==e?void 0:e.fallbackPolling;return{watchFile:void 0!==t?t:1}}function vU(e){e.watcher.close()}function bU(e,t,n="tsconfig.json"){return aa(e,(e=>{const r=jo(e,n);return t(r)?r:void 0}))}function xU(e,t){const n=Do(t);return Jo(go(e)?e:jo(n,e))}function kU(e,t,n){let r;return d(e,(e=>{const i=Mo(e,t);if(i.pop(),!r)return void(r=i);const o=Math.min(r.length,i.length);for(let e=0;e{let o;try{tr("beforeIORead"),o=e(n),tr("afterIORead"),nr("I/O Read","beforeIORead","afterIORead")}catch(e){i&&i(e.message),o=""}return void 0!==o?LI(n,o,r,t):void 0}}function CU(e,t,n){return(r,i,o,a)=>{try{tr("beforeIOWrite"),ev(r,i,o,e,t,n),tr("afterIOWrite"),nr("I/O Write","beforeIOWrite","afterIOWrite")}catch(e){a&&a(e.message)}}}function wU(e,t,n=so){const r=new Map,i=Wt(n.useCaseSensitiveFileNames);function o(){return Do(Jo(n.getExecutingFilePath()))}const a=Eb(e),s=n.realpath&&(e=>n.realpath(e)),c={getSourceFile:TU((e=>c.readFile(e)),t),getDefaultLibLocation:o,getDefaultLibFileName:e=>jo(o(),Ns(e)),writeFile:CU(((e,t,r)=>n.writeFile(e,t,r)),(e=>(c.createDirectory||n.createDirectory)(e)),(e=>{return t=e,!!r.has(t)||!!(c.directoryExists||n.directoryExists)(t)&&(r.set(t,!0),!0);var t})),getCurrentDirectory:dt((()=>n.getCurrentDirectory())),useCaseSensitiveFileNames:()=>n.useCaseSensitiveFileNames,getCanonicalFileName:i,getNewLine:()=>a,fileExists:e=>n.fileExists(e),readFile:e=>n.readFile(e),trace:e=>n.write(e+a),directoryExists:e=>n.directoryExists(e),getEnvironmentVariable:e=>n.getEnvironmentVariable?n.getEnvironmentVariable(e):"",getDirectories:e=>n.getDirectories(e),realpath:s,readDirectory:(e,t,r,i,o)=>n.readDirectory(e,t,r,i,o),createDirectory:e=>n.createDirectory(e),createHash:We(n,n.createHash)};return c}function NU(e,t,n){const r=e.readFile,i=e.fileExists,o=e.directoryExists,a=e.createDirectory,s=e.writeFile,c=new Map,l=new Map,_=new Map,u=new Map,d=(t,n)=>{const i=r.call(e,n);return c.set(t,void 0!==i&&i),i};e.readFile=n=>{const i=t(n),o=c.get(i);return void 0!==o?!1!==o?o:void 0:ko(n,".json")||Dq(n)?d(i,n):r.call(e,n)};const p=n?(e,r,i,o)=>{const a=t(e),s="object"==typeof r?r.impliedNodeFormat:void 0,c=u.get(s),l=null==c?void 0:c.get(a);if(l)return l;const _=n(e,r,i,o);return _&&($I(e)||ko(e,".json"))&&u.set(s,(c||new Map).set(a,_)),_}:void 0;return e.fileExists=n=>{const r=t(n),o=l.get(r);if(void 0!==o)return o;const a=i.call(e,n);return l.set(r,!!a),a},s&&(e.writeFile=(n,r,...i)=>{const o=t(n);l.delete(o);const a=c.get(o);void 0!==a&&a!==r?(c.delete(o),u.forEach((e=>e.delete(o)))):p&&u.forEach((e=>{const t=e.get(o);t&&t.text!==r&&e.delete(o)})),s.call(e,n,r,...i)}),o&&(e.directoryExists=n=>{const r=t(n),i=_.get(r);if(void 0!==i)return i;const a=o.call(e,n);return _.set(r,!!a),a},a&&(e.createDirectory=n=>{const r=t(n);_.delete(r),a.call(e,n)})),{originalReadFile:r,originalFileExists:i,originalDirectoryExists:o,originalCreateDirectory:a,originalWriteFile:s,getSourceFileWithCache:p,readFileWithCache:e=>{const n=t(e),r=c.get(n);return void 0!==r?!1!==r?r:void 0:d(n,e)}}}function DU(e,t,n){let r;return r=se(r,e.getConfigFileParsingDiagnostics()),r=se(r,e.getOptionsDiagnostics(n)),r=se(r,e.getSyntacticDiagnostics(t,n)),r=se(r,e.getGlobalDiagnostics(n)),r=se(r,e.getSemanticDiagnostics(t,n)),Nk(e.getCompilerOptions())&&(r=se(r,e.getDeclarationDiagnostics(t,n))),Cs(r||l)}function FU(e,t){let n="";for(const r of e)n+=EU(r,t);return n}function EU(e,t){const n=`${ci(e)} TS${e.code}: ${UU(e.messageText,t.getNewLine())}${t.getNewLine()}`;if(e.file){const{line:r,character:i}=Ja(e.file,e.start);return`${ra(e.file.fileName,t.getCurrentDirectory(),(e=>t.getCanonicalFileName(e)))}(${r+1},${i+1}): `+n}return n}var PU=(e=>(e.Grey="",e.Red="",e.Yellow="",e.Blue="",e.Cyan="",e))(PU||{}),AU="",IU=" ",OU="",LU="...",jU=" ",RU=" ";function MU(e){switch(e){case 1:return"";case 0:return"";case 2:return un.fail("Should never get an Info diagnostic on the command line.");case 3:return""}}function BU(e,t){return t+e+OU}function JU(e,t,n,r,i,o){const{line:a,character:s}=Ja(e,t),{line:c,character:l}=Ja(e,t+n),_=Ja(e,e.text.length).line,u=c-a>=4;let d=(c+1+"").length;u&&(d=Math.max(LU.length,d));let p="";for(let t=a;t<=c;t++){p+=o.getNewLine(),u&&a+1n.getCanonicalFileName(e))):e.fileName,""),a+=":",a+=r(`${i+1}`,""),a+=":",a+=r(`${o+1}`,""),a}function qU(e,t){let n="";for(const r of e){if(r.file){const{file:e,start:i}=r;n+=zU(e,i,t),n+=" - "}if(n+=BU(ci(r),MU(r.category)),n+=BU(` TS${r.code}: `,""),n+=UU(r.messageText,t.getNewLine()),r.file&&r.code!==la.File_appears_to_be_binary.code&&(n+=t.getNewLine(),n+=JU(r.file,r.start,r.length,"",MU(r.category),t)),r.relatedInformation){n+=t.getNewLine();for(const{file:e,start:i,length:o,messageText:a}of r.relatedInformation)e&&(n+=t.getNewLine(),n+=jU+zU(e,i,t),n+=JU(e,i,o,RU,"",t)),n+=t.getNewLine(),n+=RU+UU(a,t.getNewLine())}n+=t.getNewLine()}return n}function UU(e,t,n=0){if(Ze(e))return e;if(void 0===e)return"";let r="";if(n){r+=t;for(let e=0;eHU(t,e,n)};function eV(e,t,n,r,i){return{nameAndMode:ZU,resolve:(o,a)=>bR(o,e,n,r,i,t,a)}}function tV(e){return Ze(e)?e:e.fileName}var nV={getName:tV,getMode:(e,t,n)=>VU(e,t&&TV(t,n))};function rV(e,t,n,r,i){return{nameAndMode:nV,resolve:(o,a)=>Zj(o,e,n,r,t,i,a)}}function iV(e,t,n,r,i,o,a,s){if(0===e.length)return l;const c=[],_=new Map,u=s(t,n,r,o,a);for(const t of e){const e=u.nameAndMode.getName(t),o=u.nameAndMode.getMode(t,i,(null==n?void 0:n.commandLine.options)||r),a=_R(e,o);let s=_.get(a);s||_.set(a,s=u.resolve(e,o)),c.push(s)}return c}function oV(e,t){return aV(void 0,e,((e,n)=>e&&t(e,n)))}function aV(e,t,n,r){let i;return function e(t,o,a){if(r){const e=r(t,a);if(e)return e}let s;return d(o,((e,t)=>{if(e&&(null==i?void 0:i.has(e.sourceFile.path)))return void(s??(s=new Set)).add(e);const r=n(e,a,t);if(r||!e)return r;(i||(i=new Set)).add(e.sourceFile.path)}))||d(o,(t=>t&&!(null==s?void 0:s.has(t))?e(t.commandLine.projectReferences,t.references,t):void 0))}(e,t,void 0)}var sV="__inferred type names__.ts";function cV(e,t,n){return jo(e.configFilePath?Do(e.configFilePath):t,`__lib_node_modules_lookup_${n}__.ts`)}function lV(e){const t=e.split(".");let n=t[1],r=2;for(;t[r]&&"d"!==t[r];)n+=(2===r?"/":"-")+t[r],r++;return"@typescript/lib-"+n}function _V(e){return _t(e.fileName)}function uV(e){const t=_V(e);return lO.get(t)}function dV(e){switch(null==e?void 0:e.kind){case 3:case 4:case 5:case 7:return!0;default:return!1}}function pV(e){return void 0!==e.pos}function fV(e,t){var n,r,i,o;const a=un.checkDefined(e.getSourceFileByPath(t.file)),{kind:s,index:c}=t;let l,_,u;switch(s){case 3:const t=AV(a,c);if(u=null==(r=null==(n=e.getResolvedModuleFromModuleSpecifier(t,a))?void 0:n.resolvedModule)?void 0:r.packageId,-1===t.pos)return{file:a,packageId:u,text:t.text};l=Xa(a.text,t.pos),_=t.end;break;case 4:({pos:l,end:_}=a.referencedFiles[c]);break;case 5:({pos:l,end:_}=a.typeReferenceDirectives[c]),u=null==(o=null==(i=e.getResolvedTypeReferenceDirectiveFromTypeReferenceDirective(a.typeReferenceDirectives[c],a))?void 0:i.resolvedTypeReferenceDirective)?void 0:o.packageId;break;case 7:({pos:l,end:_}=a.libReferenceDirectives[c]);break;default:return un.assertNever(s)}return{file:a,pos:l,end:_,packageId:u}}function mV(e,t,n,r,i,o,a,s,c,l){if(!e||(null==s?void 0:s()))return!1;if(!te(e.getRootFileNames(),t))return!1;let _;if(!te(e.getProjectReferences(),l,(function(t,n,r){return ad(t,n)&&f(e.getResolvedProjectReferences()[r],t)})))return!1;if(e.getSourceFiles().some((function(e){return!function(e){return e.version===r(e.resolvedPath,e.fileName)}(e)||o(e.path)})))return!1;const u=e.getMissingFilePaths();if(u&&td(u,i))return!1;const p=e.getCompilerOptions();return!(!lx(p,n)||e.resolvedLibReferences&&td(e.resolvedLibReferences,((e,t)=>a(t)))||p.configFile&&n.configFile&&p.configFile.text!==n.configFile.text);function f(e,t){if(e){if(T(_,e))return!0;const n=FV(t),r=c(n);return!!r&&e.commandLine.options.configFile===r.options.configFile&&!!te(e.commandLine.fileNames,r.fileNames)&&((_||(_=[])).push(e),!d(e.references,((t,n)=>!f(t,e.commandLine.projectReferences[n]))))}const n=FV(t);return!c(n)}}function gV(e){return e.options.configFile?[...e.options.configFile.parseDiagnostics,...e.errors]:e.errors}function hV(e,t,n,r){const i=yV(e,t,n,r);return"object"==typeof i?i.impliedNodeFormat:i}function yV(e,t,n,r){const i=vk(r),o=3<=i&&i<=99||AR(e);return So(e,[".d.mts",".mts",".mjs"])?99:So(e,[".d.cts",".cts",".cjs"])?1:o&&So(e,[".d.ts",".ts",".tsx",".js",".jsx"])?function(){const i=WR(t,n,r),o=[];i.failedLookupLocations=o,i.affectingLocations=o;const a=$R(Do(e),i);return{impliedNodeFormat:"module"===(null==a?void 0:a.contents.packageJsonContent.type)?99:1,packageJsonLocations:o,packageJsonScope:a}}():void 0}var vV=new Set([la.Cannot_redeclare_block_scoped_variable_0.code,la.A_module_cannot_have_multiple_default_exports.code,la.Another_export_default_is_here.code,la.The_first_export_default_is_here.code,la.Identifier_expected_0_is_a_reserved_word_at_the_top_level_of_a_module.code,la.Identifier_expected_0_is_a_reserved_word_in_strict_mode_Modules_are_automatically_in_strict_mode.code,la.Identifier_expected_0_is_a_reserved_word_that_cannot_be_used_here.code,la.constructor_is_a_reserved_word.code,la.delete_cannot_be_called_on_an_identifier_in_strict_mode.code,la.Code_contained_in_a_class_is_evaluated_in_JavaScript_s_strict_mode_which_does_not_allow_this_use_of_0_For_more_information_see_https_Colon_Slash_Slashdeveloper_mozilla_org_Slashen_US_Slashdocs_SlashWeb_SlashJavaScript_SlashReference_SlashStrict_mode.code,la.Invalid_use_of_0_Modules_are_automatically_in_strict_mode.code,la.Invalid_use_of_0_in_strict_mode.code,la.A_label_is_not_allowed_here.code,la.with_statements_are_not_allowed_in_strict_mode.code,la.A_break_statement_can_only_be_used_within_an_enclosing_iteration_or_switch_statement.code,la.A_break_statement_can_only_jump_to_a_label_of_an_enclosing_statement.code,la.A_class_declaration_without_the_default_modifier_must_have_a_name.code,la.A_class_member_cannot_have_the_0_keyword.code,la.A_comma_expression_is_not_allowed_in_a_computed_property_name.code,la.A_continue_statement_can_only_be_used_within_an_enclosing_iteration_statement.code,la.A_continue_statement_can_only_jump_to_a_label_of_an_enclosing_iteration_statement.code,la.A_continue_statement_can_only_jump_to_a_label_of_an_enclosing_iteration_statement.code,la.A_default_clause_cannot_appear_more_than_once_in_a_switch_statement.code,la.A_default_export_must_be_at_the_top_level_of_a_file_or_module_declaration.code,la.A_definite_assignment_assertion_is_not_permitted_in_this_context.code,la.A_destructuring_declaration_must_have_an_initializer.code,la.A_get_accessor_cannot_have_parameters.code,la.A_rest_element_cannot_contain_a_binding_pattern.code,la.A_rest_element_cannot_have_a_property_name.code,la.A_rest_element_cannot_have_an_initializer.code,la.A_rest_element_must_be_last_in_a_destructuring_pattern.code,la.A_rest_parameter_cannot_have_an_initializer.code,la.A_rest_parameter_must_be_last_in_a_parameter_list.code,la.A_rest_parameter_or_binding_pattern_may_not_have_a_trailing_comma.code,la.A_return_statement_cannot_be_used_inside_a_class_static_block.code,la.A_set_accessor_cannot_have_rest_parameter.code,la.A_set_accessor_must_have_exactly_one_parameter.code,la.An_export_declaration_can_only_be_used_at_the_top_level_of_a_module.code,la.An_export_declaration_cannot_have_modifiers.code,la.An_import_declaration_can_only_be_used_at_the_top_level_of_a_module.code,la.An_import_declaration_cannot_have_modifiers.code,la.An_object_member_cannot_be_declared_optional.code,la.Argument_of_dynamic_import_cannot_be_spread_element.code,la.Cannot_assign_to_private_method_0_Private_methods_are_not_writable.code,la.Cannot_redeclare_identifier_0_in_catch_clause.code,la.Catch_clause_variable_cannot_have_an_initializer.code,la.Class_decorators_can_t_be_used_with_static_private_identifier_Consider_removing_the_experimental_decorator.code,la.Classes_can_only_extend_a_single_class.code,la.Classes_may_not_have_a_field_named_constructor.code,la.Did_you_mean_to_use_a_Colon_An_can_only_follow_a_property_name_when_the_containing_object_literal_is_part_of_a_destructuring_pattern.code,la.Duplicate_label_0.code,la.Dynamic_imports_can_only_accept_a_module_specifier_and_an_optional_set_of_attributes_as_arguments.code,la.for_await_loops_cannot_be_used_inside_a_class_static_block.code,la.JSX_attributes_must_only_be_assigned_a_non_empty_expression.code,la.JSX_elements_cannot_have_multiple_attributes_with_the_same_name.code,la.JSX_expressions_may_not_use_the_comma_operator_Did_you_mean_to_write_an_array.code,la.JSX_property_access_expressions_cannot_include_JSX_namespace_names.code,la.Jump_target_cannot_cross_function_boundary.code,la.Line_terminator_not_permitted_before_arrow.code,la.Modifiers_cannot_appear_here.code,la.Only_a_single_variable_declaration_is_allowed_in_a_for_in_statement.code,la.Only_a_single_variable_declaration_is_allowed_in_a_for_of_statement.code,la.Private_identifiers_are_not_allowed_outside_class_bodies.code,la.Private_identifiers_are_only_allowed_in_class_bodies_and_may_only_be_used_as_part_of_a_class_member_declaration_property_access_or_on_the_left_hand_side_of_an_in_expression.code,la.Property_0_is_not_accessible_outside_class_1_because_it_has_a_private_identifier.code,la.Tagged_template_expressions_are_not_permitted_in_an_optional_chain.code,la.The_left_hand_side_of_a_for_of_statement_may_not_be_async.code,la.The_variable_declaration_of_a_for_in_statement_cannot_have_an_initializer.code,la.The_variable_declaration_of_a_for_of_statement_cannot_have_an_initializer.code,la.Trailing_comma_not_allowed.code,la.Variable_declaration_list_cannot_be_empty.code,la._0_and_1_operations_cannot_be_mixed_without_parentheses.code,la._0_expected.code,la._0_is_not_a_valid_meta_property_for_keyword_1_Did_you_mean_2.code,la._0_list_cannot_be_empty.code,la._0_modifier_already_seen.code,la._0_modifier_cannot_appear_on_a_constructor_declaration.code,la._0_modifier_cannot_appear_on_a_module_or_namespace_element.code,la._0_modifier_cannot_appear_on_a_parameter.code,la._0_modifier_cannot_appear_on_class_elements_of_this_kind.code,la._0_modifier_cannot_be_used_here.code,la._0_modifier_must_precede_1_modifier.code,la._0_declarations_can_only_be_declared_inside_a_block.code,la._0_declarations_must_be_initialized.code,la.extends_clause_already_seen.code,la.let_is_not_allowed_to_be_used_as_a_name_in_let_or_const_declarations.code,la.Class_constructor_may_not_be_a_generator.code,la.Class_constructor_may_not_be_an_accessor.code,la.await_expressions_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules.code,la.await_using_statements_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules.code,la.Private_field_0_must_be_declared_in_an_enclosing_class.code,la.This_condition_will_always_return_0_since_JavaScript_compares_objects_by_reference_not_value.code]);function bV(e,t,n,r,i){var o,s,c,_,u,p,f,g,h,y,v,x,S,C,w,D;const F=Qe(e)?function(e,t,n,r,i){return{rootNames:e,options:t,host:n,oldProgram:r,configFileParsingDiagnostics:i,typeScriptVersion:void 0}}(e,t,n,r,i):e,{rootNames:E,options:P,configFileParsingDiagnostics:A,projectReferences:L,typeScriptVersion:j}=F;let{oldProgram:R}=F;for(const e of CO)if(De(P,e.name)&&"string"==typeof P[e.name])throw new Error(`${e.name} is a string value; tsconfig JSON must be parsed with parseJsonSourceFileConfigFileContent or getParsedCommandLineOfConfigFile before passing to createProgram`);const M=dt((()=>$n("ignoreDeprecations",la.Invalid_value_for_ignoreDeprecations)));let J,z,q,U,V,W,H,G,X,Q,Y,Z,ee,ne,re,oe,ae,se,ce,le,ue,de,pe=$e();const fe="number"==typeof P.maxNodeModuleJsDepth?P.maxNodeModuleJsDepth:0;let me=0;const ge=new Map,he=new Map;null==(o=Hn)||o.push(Hn.Phase.Program,"createProgram",{configFilePath:P.configFilePath,rootDir:P.rootDir},!0),tr("beforeProgram");const ye=F.host||SU(P),ve=DV(ye);let be=P.noLib;const xe=dt((()=>ye.getDefaultLibFileName(P))),ke=ye.getDefaultLibLocation?ye.getDefaultLibLocation():Do(xe()),Se=ly();let Te=[];const Ce=ye.getCurrentDirectory(),we=ES(P),Ne=PS(P,we),Fe=new Map;let Ee,Pe,Ae,Ie;const Oe=ye.hasInvalidatedResolutions||it;let Le;if(ye.resolveModuleNameLiterals?(Ie=ye.resolveModuleNameLiterals.bind(ye),Ae=null==(s=ye.getModuleResolutionCache)?void 0:s.call(ye)):ye.resolveModuleNames?(Ie=(e,t,n,r,i,o)=>ye.resolveModuleNames(e.map(YU),t,null==o?void 0:o.map(YU),n,r,i).map((e=>e?void 0!==e.extension?{resolvedModule:e}:{resolvedModule:{...e,extension:QS(e.resolvedFileName)}}:QU)),Ae=null==(c=ye.getModuleResolutionCache)?void 0:c.call(ye)):(Ae=mR(Ce,In,P),Ie=(e,t,n,r,i)=>iV(e,t,n,r,i,ye,Ae,eV)),ye.resolveTypeReferenceDirectiveReferences)Le=ye.resolveTypeReferenceDirectiveReferences.bind(ye);else if(ye.resolveTypeReferenceDirectives)Le=(e,t,n,r,i)=>ye.resolveTypeReferenceDirectives(e.map(tV),t,n,r,null==i?void 0:i.impliedNodeFormat).map((e=>({resolvedTypeReferenceDirective:e})));else{const e=gR(Ce,In,void 0,null==Ae?void 0:Ae.getPackageJsonInfoCache(),null==Ae?void 0:Ae.optionsToRedirectsKey);Le=(t,n,r,i,o)=>iV(t,n,r,i,o,ye,e,rV)}const je=ye.hasInvalidatedLibResolutions||it;let Re;if(ye.resolveLibrary)Re=ye.resolveLibrary.bind(ye);else{const e=mR(Ce,In,P,null==Ae?void 0:Ae.getPackageJsonInfoCache());Re=(t,n,r)=>yR(t,n,r,ye,e)}const Me=new Map;let Be,Je=new Map,ze=$e();const qe=new Map;let Ue=new Map;const Ve=ye.useCaseSensitiveFileNames()?new Map:void 0;let He,Ke,Ge,Xe;const Ye=!!(null==(_=ye.useSourceOfProjectReferenceRedirect)?void 0:_.call(ye))&&!P.disableSourceOfProjectReferenceRedirect,{onProgramCreateComplete:et,fileExists:nt,directoryExists:ot}=function(e){let t;const n=e.compilerHost.fileExists,r=e.compilerHost.directoryExists,i=e.compilerHost.getDirectories,o=e.compilerHost.realpath;if(!e.useSourceOfProjectReferenceRedirect)return{onProgramCreateComplete:rt,fileExists:s};let a;return e.compilerHost.fileExists=s,r&&(a=e.compilerHost.directoryExists=n=>r.call(e.compilerHost,n)?(function(t){var n;if(!e.getResolvedProjectReferences()||PT(t))return;if(!o||!t.includes(PR))return;const r=e.getSymlinkCache(),i=Vo(e.toPath(t));if(null==(n=r.getSymlinkedDirectories())?void 0:n.has(i))return;const a=Jo(o.call(e.compilerHost,t));let s;a!==t&&(s=Vo(e.toPath(a)))!==i?r.setSymlinkedDirectory(t,{real:Vo(a),realPath:s}):r.setSymlinkedDirectory(i,!1)}(n),!0):!!e.getResolvedProjectReferences()&&(t||(t=new Set,e.forEachResolvedProjectReference((n=>{const r=n.commandLine.options.outFile;if(r)t.add(Do(e.toPath(r)));else{const r=n.commandLine.options.declarationDir||n.commandLine.options.outDir;r&&t.add(e.toPath(r))}}))),c(n,!1))),i&&(e.compilerHost.getDirectories=t=>!e.getResolvedProjectReferences()||r&&r.call(e.compilerHost,t)?i.call(e.compilerHost,t):[]),o&&(e.compilerHost.realpath=t=>{var n;return(null==(n=e.getSymlinkCache().getSymlinkedFiles())?void 0:n.get(e.toPath(t)))||o.call(e.compilerHost,t)}),{onProgramCreateComplete:function(){e.compilerHost.fileExists=n,e.compilerHost.directoryExists=r,e.compilerHost.getDirectories=i},fileExists:s,directoryExists:a};function s(t){return!!n.call(e.compilerHost,t)||!!e.getResolvedProjectReferences()&&!!$I(t)&&c(t,!0)}function c(r,i){var o;const a=i?t=>function(t){const r=e.getSourceOfProjectReferenceRedirect(e.toPath(t));return void 0!==r?!Ze(r)||n.call(e.compilerHost,r):void 0}(t):n=>function(n){const r=e.toPath(n),i=`${r}${lo}`;return nd(t,(e=>r===e||Gt(e,i)||Gt(r,`${e}/`)))}(n),s=a(r);if(void 0!==s)return s;const c=e.getSymlinkCache(),l=c.getSymlinkedDirectories();if(!l)return!1;const _=e.toPath(r);return!!_.includes(PR)&&(!(!i||!(null==(o=c.getSymlinkedFiles())?void 0:o.has(_)))||m(l.entries(),(([t,n])=>{if(!n||!Gt(_,t))return;const o=a(_.replace(t,n.realPath));if(i&&o){const i=Bo(r,e.compilerHost.getCurrentDirectory());c.setSymlinkedFile(_,`${n.real}${i.replace(new RegExp(t,"i"),"")}`)}return o}))||!1)}}({compilerHost:ye,getSymlinkCache:ir,useSourceOfProjectReferenceRedirect:Ye,toPath:Et,getResolvedProjectReferences:Bt,getSourceOfProjectReferenceRedirect:Sn,forEachResolvedProjectReference:kn}),at=ye.readFile.bind(ye);null==(u=Hn)||u.push(Hn.Phase.Program,"shouldProgramCreateNewSourceFiles",{hasOldProgram:!!R});const ct=function(e,t){return!!e&&Zu(e.getCompilerOptions(),t,bO)}(R,P);let lt;if(null==(p=Hn)||p.pop(),null==(f=Hn)||f.push(Hn.Phase.Program,"tryReuseStructureFromOldProgram",{}),lt=function(){var e;if(!R)return 0;const t=R.getCompilerOptions();if(Qu(t,P))return 0;if(!te(R.getRootFileNames(),E))return 0;if(aV(R.getProjectReferences(),R.getResolvedProjectReferences(),((e,t,n)=>{const r=Ln((t?t.commandLine.projectReferences:L)[n]);return e?!r||r.sourceFile!==e.sourceFile||!te(e.commandLine.fileNames,r.commandLine.fileNames):void 0!==r}),((e,t)=>!te(e,t?Cn(t.sourceFile.path).commandLine.projectReferences:L,ad))))return 0;L&&(He=L.map(Ln));const n=[],r=[];if(lt=2,td(R.getMissingFilePaths(),(e=>ye.fileExists(e))))return 0;const i=R.getSourceFiles();let o;var a;(a=o||(o={}))[a.Exists=0]="Exists",a[a.Modified=1]="Modified";const s=new Map;for(const t of i){const i=pn(t.fileName,Ae,ye,P);let o,a=ye.getSourceFileByPath?ye.getSourceFileByPath(t.fileName,t.resolvedPath,i,void 0,ct):ye.getSourceFile(t.fileName,i,void 0,ct);if(!a)return 0;if(a.packageJsonLocations=(null==(e=i.packageJsonLocations)?void 0:e.length)?i.packageJsonLocations:void 0,a.packageJsonScope=i.packageJsonScope,un.assert(!a.redirectInfo,"Host should not return a redirect source file from `getSourceFile`"),t.redirectInfo){if(a!==t.redirectInfo.unredirected)return 0;o=!1,a=t}else if(R.redirectTargetsMap.has(t.path)){if(a!==t)return 0;o=!1}else o=a!==t;a.path=t.path,a.originalFileName=t.originalFileName,a.resolvedPath=t.resolvedPath,a.fileName=t.fileName;const c=R.sourceFileToPackageName.get(t.path);if(void 0!==c){const e=s.get(c),t=o?1:0;if(void 0!==e&&1===t||1===e)return 0;s.set(c,t)}o?(t.impliedNodeFormat!==a.impliedNodeFormat?lt=1:te(t.libReferenceDirectives,a.libReferenceDirectives,nn)?t.hasNoDefaultLib!==a.hasNoDefaultLib?lt=1:te(t.referencedFiles,a.referencedFiles,nn)?(an(a),te(t.imports,a.imports,rn)&&te(t.moduleAugmentations,a.moduleAugmentations,rn)?(12582912&t.flags)!=(12582912&a.flags)?lt=1:te(t.typeReferenceDirectives,a.typeReferenceDirectives,nn)||(lt=1):lt=1):lt=1:lt=1,r.push(a)):Oe(t.path)&&(lt=1,r.push(a)),n.push(a)}if(2!==lt)return lt;for(const e of r){const t=PV(e),n=At(t,e);(ce??(ce=new Map)).set(e.path,n);const r=Dn(e);md(t,n,(t=>R.getResolvedModule(e,t.text,KU(e,t,r))),sd)&&(lt=1);const i=e.typeReferenceDirectives,o=It(i,e);(ue??(ue=new Map)).set(e.path,o),md(i,o,(t=>R.getResolvedTypeReferenceDirective(e,tV(t),_r(t,e))),fd)&&(lt=1)}if(2!==lt)return lt;if(Yu(t,P))return 1;if(R.resolvedLibReferences&&td(R.resolvedLibReferences,((e,t)=>Pn(t).actual!==e.actual)))return 1;if(ye.hasChangedAutomaticTypeDirectiveNames){if(ye.hasChangedAutomaticTypeDirectiveNames())return 1}else if(ne=rR(P,ye),!te(R.getAutomaticTypeDirectiveNames(),ne))return 1;Ue=R.getMissingFilePaths(),un.assert(n.length===R.getSourceFiles().length);for(const e of n)qe.set(e.path,e);return R.getFilesByNameMap().forEach(((e,t)=>{e?e.path!==t?qe.set(t,qe.get(e.path)):R.isSourceFileFromExternalLibrary(e)&&he.set(e.path,!0):qe.set(t,e)})),q=n,pe=R.getFileIncludeReasons(),ee=R.getFileProcessingDiagnostics(),ne=R.getAutomaticTypeDirectiveNames(),re=R.getAutomaticTypeDirectiveResolutions(),Je=R.sourceFileToPackageName,ze=R.redirectTargetsMap,Be=R.usesUriStyleNodeCoreModules,se=R.resolvedModules,le=R.resolvedTypeReferenceDirectiveNames,oe=R.resolvedLibReferences,de=R.getCurrentPackagesMap(),2}(),null==(g=Hn)||g.pop(),2!==lt){if(J=[],z=[],L&&(He||(He=L.map(Ln)),E.length&&(null==He||He.forEach(((e,t)=>{if(!e)return;const n=e.commandLine.options.outFile;if(Ye){if(n||0===yk(e.commandLine.options))for(const n of e.commandLine.fileNames)ln(n,{kind:1,index:t})}else if(n)ln(VS(n,".d.ts"),{kind:2,index:t});else if(0===yk(e.commandLine.options)){const n=dt((()=>Vq(e.commandLine,!ye.useCaseSensitiveFileNames())));for(const r of e.commandLine.fileNames)$I(r)||ko(r,".json")||ln(jq(r,e.commandLine,!ye.useCaseSensitiveFileNames(),n),{kind:2,index:t})}})))),null==(h=Hn)||h.push(Hn.Phase.Program,"processRootFiles",{count:E.length}),d(E,((e,t)=>tn(e,!1,!1,{kind:0,index:t}))),null==(y=Hn)||y.pop(),ne??(ne=E.length?rR(P,ye):l),re=uR(),ne.length){null==(v=Hn)||v.push(Hn.Phase.Program,"processTypeReferences",{count:ne.length});const e=jo(P.configFilePath?Do(P.configFilePath):Ce,sV),t=It(ne,e);for(let e=0;e{tn(En(e),!0,!1,{kind:6,index:t})}))}q=_e(J,(function(e,t){return vt(Ft(e),Ft(t))})).concat(z),J=void 0,z=void 0,G=void 0}if(R&&ye.onReleaseOldSourceFile){const e=R.getSourceFiles();for(const t of e){const e=Vt(t.resolvedPath);(ct||!e||e.impliedNodeFormat!==t.impliedNodeFormat||t.resolvedPath===t.path&&e.resolvedPath!==t.path)&&ye.onReleaseOldSourceFile(t,R.getCompilerOptions(),!!Vt(t.path),e)}ye.getParsedCommandLine||R.forEachResolvedProjectReference((e=>{Cn(e.sourceFile.path)||ye.onReleaseOldSourceFile(e.sourceFile,R.getCompilerOptions(),!1,void 0)}))}R&&ye.onReleaseParsedCommandLine&&aV(R.getProjectReferences(),R.getResolvedProjectReferences(),((e,t,n)=>{const r=FV((null==t?void 0:t.commandLine.projectReferences[n])||R.getProjectReferences()[n]);(null==Ke?void 0:Ke.has(Et(r)))||ye.onReleaseParsedCommandLine(r,e,R.getCompilerOptions())})),R=void 0,ae=void 0,ce=void 0,ue=void 0;const ut={getRootFileNames:()=>E,getSourceFile:Ut,getSourceFileByPath:Vt,getSourceFiles:()=>q,getMissingFilePaths:()=>Ue,getModuleResolutionCache:()=>Ae,getFilesByNameMap:()=>qe,getCompilerOptions:()=>P,getSyntacticDiagnostics:function(e,t){return Wt(e,Ht,t)},getOptionsDiagnostics:function(){return Cs(K(pt().getGlobalDiagnostics(),function(){if(!P.configFile)return l;let e=pt().getDiagnostics(P.configFile.fileName);return kn((t=>{e=K(e,pt().getDiagnostics(t.sourceFile.fileName))})),e}()))},getGlobalDiagnostics:function(){return E.length?Cs(zt().getGlobalDiagnostics().slice()):l},getSemanticDiagnostics:function(e,t,n){return Wt(e,((e,t)=>function(e,t,n){return K(NV(Qt(e,t,n),P),$t(e))}(e,t,n)),t)},getCachedSemanticDiagnostics:function(e){return null==Y?void 0:Y.get(e.path)},getSuggestionDiagnostics:function(e,t){return Kt((()=>zt().getSuggestionDiagnostics(e,t)))},getDeclarationDiagnostics:function(e,t){return Wt(e,en,t)},getBindAndCheckDiagnostics:function(e,t){return Qt(e,t,void 0)},getProgramDiagnostics:$t,getTypeChecker:zt,getClassifiableNames:function(){var e;if(!H){zt(),H=new Set;for(const t of q)null==(e=t.classifiableNames)||e.forEach((e=>H.add(e)))}return H},getCommonSourceDirectory:Pt,emit:function(e,t,n,r,i,o,a){var s,c;null==(s=Hn)||s.push(Hn.Phase.Emit,"emit",{path:null==e?void 0:e.path},!0);const l=Kt((()=>function(e,t,n,r,i,o,a,s){if(!a){const i=wV(e,t,n,r);if(i)return i}const c=zt(),l=c.getEmitResolver(P.outFile?void 0:t,r,Kq(i,a));tr("beforeEmit");const _=c.runWithCancellationToken(r,(()=>Gq(l,jt(n),t,hq(P,o,i),i,!1,a,s)));return tr("afterEmit"),nr("Emit","beforeEmit","afterEmit"),_}(ut,e,t,n,r,i,o,a)));return null==(c=Hn)||c.pop(),l},getCurrentDirectory:()=>Ce,getNodeCount:()=>zt().getNodeCount(),getIdentifierCount:()=>zt().getIdentifierCount(),getSymbolCount:()=>zt().getSymbolCount(),getTypeCount:()=>zt().getTypeCount(),getInstantiationCount:()=>zt().getInstantiationCount(),getRelationCacheSizes:()=>zt().getRelationCacheSizes(),getFileProcessingDiagnostics:()=>ee,getAutomaticTypeDirectiveNames:()=>ne,getAutomaticTypeDirectiveResolutions:()=>re,isSourceFileFromExternalLibrary:Jt,isSourceFileDefaultLibrary:function(e){if(!e.isDeclarationFile)return!1;if(e.hasNoDefaultLib)return!0;if(P.noLib)return!1;const t=ye.useCaseSensitiveFileNames()?ht:gt;return P.lib?$(P.lib,(n=>{const r=oe.get(n);return!!r&&t(e.fileName,r.actual)})):t(e.fileName,xe())},getModeForUsageLocation:or,getEmitSyntaxForUsageLocation:function(e,t){return GU(e,t,Dn(e))},getModeForResolutionAtIndex:ar,getSourceFileFromReference:function(e,t){return sn(xU(t.fileName,e.fileName),Ut)},getLibFileFromReference:function(e){var t;const n=uV(e),r=n&&(null==(t=null==oe?void 0:oe.get(n))?void 0:t.actual);return void 0!==r?Ut(r):void 0},sourceFileToPackageName:Je,redirectTargetsMap:ze,usesUriStyleNodeCoreModules:Be,resolvedModules:se,resolvedTypeReferenceDirectiveNames:le,resolvedLibReferences:oe,getResolvedModule:ft,getResolvedModuleFromModuleSpecifier:function(e,t){return t??(t=hd(e)),un.assertIsDefined(t,"`moduleSpecifier` must have a `SourceFile` ancestor. Use `program.getResolvedModule` instead to provide the containing file and resolution mode."),ft(t,e.text,or(t,e))},getResolvedTypeReferenceDirective:mt,getResolvedTypeReferenceDirectiveFromTypeReferenceDirective:function(e,t){return mt(t,e.fileName,_r(e,t))},forEachResolvedModule:yt,forEachResolvedTypeReferenceDirective:bt,getCurrentPackagesMap:()=>de,typesPackageExists:function(e){return kt().has(pM(e))},packageBundlesTypes:function(e){return!!kt().get(e)},isEmittedFile:function(e){if(P.noEmit)return!1;const t=Et(e);if(Vt(t))return!1;const n=P.outFile;if(n)return rr(t,n)||rr(t,zS(n)+".d.ts");if(P.declarationDir&&Zo(P.declarationDir,t,Ce,!ye.useCaseSensitiveFileNames()))return!0;if(P.outDir)return Zo(P.outDir,t,Ce,!ye.useCaseSensitiveFileNames());if(So(t,TS)||$I(t)){const e=zS(t);return!!Vt(e+".ts")||!!Vt(e+".tsx")}return!1},getConfigFileParsingDiagnostics:function(){return A||l},getProjectReferences:function(){return L},getResolvedProjectReferences:Bt,getProjectReferenceRedirect:hn,getResolvedProjectReferenceToRedirect:xn,getResolvedProjectReferenceByPath:Cn,forEachResolvedProjectReference:kn,isSourceOfProjectReferenceRedirect:Tn,getRedirectReferenceForResolutionFromSourceOfProject:Dt,getCompilerOptionsForFile:Dn,getDefaultResolutionModeForFile:sr,getEmitModuleFormatOfFile:cr,getImpliedNodeFormatForEmit:function(e){return SV(e,Dn(e))},shouldTransformImportCall:lr,emitBuildInfo:function(e){var t,n;null==(t=Hn)||t.push(Hn.Phase.Emit,"emitBuildInfo",{},!0),tr("beforeEmit");const r=Gq(Yq,jt(e),void 0,gq,!1,!0);return tr("afterEmit"),nr("Emit","beforeEmit","afterEmit"),null==(n=Hn)||n.pop(),r},fileExists:nt,readFile:at,directoryExists:ot,getSymlinkCache:ir,realpath:null==(w=ye.realpath)?void 0:w.bind(ye),useCaseSensitiveFileNames:()=>ye.useCaseSensitiveFileNames(),getCanonicalFileName:In,getFileIncludeReasons:()=>pe,structureIsReused:lt,writeFile:Rt,getGlobalTypingsCacheLocation:We(ye,ye.getGlobalTypingsCacheLocation)};return et(),function(){P.strictPropertyInitialization&&!Mk(P,"strictNullChecks")&&Wn(la.Option_0_cannot_be_specified_without_specifying_option_1,"strictPropertyInitialization","strictNullChecks"),P.exactOptionalPropertyTypes&&!Mk(P,"strictNullChecks")&&Wn(la.Option_0_cannot_be_specified_without_specifying_option_1,"exactOptionalPropertyTypes","strictNullChecks"),(P.isolatedModules||P.verbatimModuleSyntax)&&P.outFile&&Wn(la.Option_0_cannot_be_specified_with_option_1,"outFile",P.verbatimModuleSyntax?"verbatimModuleSyntax":"isolatedModules"),P.isolatedDeclarations&&(Pk(P)&&Wn(la.Option_0_cannot_be_specified_with_option_1,"allowJs","isolatedDeclarations"),Nk(P)||Wn(la.Option_0_cannot_be_specified_without_specifying_option_1_or_option_2,"isolatedDeclarations","declaration","composite")),P.inlineSourceMap&&(P.sourceMap&&Wn(la.Option_0_cannot_be_specified_with_option_1,"sourceMap","inlineSourceMap"),P.mapRoot&&Wn(la.Option_0_cannot_be_specified_with_option_1,"mapRoot","inlineSourceMap")),P.composite&&(!1===P.declaration&&Wn(la.Composite_projects_may_not_disable_declaration_emit,"declaration"),!1===P.incremental&&Wn(la.Composite_projects_may_not_disable_incremental_compilation,"declaration"));const e=P.outFile;if(P.tsBuildInfoFile||!P.incremental||e||P.configFilePath||Se.add(Xx(la.Option_incremental_can_only_be_specified_using_tsconfig_emitting_to_single_file_or_when_option_tsBuildInfoFile_is_specified)),jn("5.0","5.5",(function(e,t,n,r,...i){if(n){const o=Yx(void 0,la.Use_0_instead,n);Gn(!t,e,void 0,Yx(o,r,...i))}else Gn(!t,e,void 0,r,...i)}),(e=>{0===P.target&&e("target","ES3"),P.noImplicitUseStrict&&e("noImplicitUseStrict"),P.keyofStringsOnly&&e("keyofStringsOnly"),P.suppressExcessPropertyErrors&&e("suppressExcessPropertyErrors"),P.suppressImplicitAnyIndexErrors&&e("suppressImplicitAnyIndexErrors"),P.noStrictGenericChecks&&e("noStrictGenericChecks"),P.charset&&e("charset"),P.out&&e("out",void 0,"outFile"),P.importsNotUsedAsValues&&e("importsNotUsedAsValues",void 0,"verbatimModuleSyntax"),P.preserveValueImports&&e("preserveValueImports",void 0,"verbatimModuleSyntax")})),function(){const e=P.suppressOutputPathCheck?void 0:Eq(P);aV(L,He,((t,n,r)=>{const i=(n?n.commandLine.projectReferences:L)[r],o=n&&n.sourceFile;if(function(e,t,n){jn("5.0","5.5",(function(e,r,i,o,...a){Kn(t,n,o,...a)}),(t=>{e.prepend&&t("prepend")}))}(i,o,r),!t)return void Kn(o,r,la.File_0_not_found,i.path);const a=t.commandLine.options;a.composite&&!a.noEmit||(n?n.commandLine.fileNames:E).length&&(a.composite||Kn(o,r,la.Referenced_project_0_must_have_setting_composite_Colon_true,i.path),a.noEmit&&Kn(o,r,la.Referenced_project_0_may_not_disable_emit,i.path)),!n&&e&&e===Eq(a)&&(Kn(o,r,la.Cannot_write_file_0_because_it_will_overwrite_tsbuildinfo_file_generated_by_referenced_project_1,e,i.path),Fe.set(Et(e),!0))}))}(),P.composite){const e=new Set(E.map(Et));for(const t of q)Gy(t,ut)&&!e.has(t.path)&&Bn(t,la.File_0_is_not_listed_within_the_file_list_of_project_1_Projects_must_list_all_files_or_use_an_include_pattern,[t.fileName,P.configFilePath||""])}if(P.paths)for(const e in P.paths)if(De(P.paths,e))if(Kk(e)||zn(!0,e,la.Pattern_0_can_have_at_most_one_Asterisk_character,e),Qe(P.paths[e])){const t=P.paths[e].length;0===t&&zn(!1,e,la.Substitutions_for_pattern_0_shouldn_t_be_an_empty_array,e);for(let n=0;nMI(e)&&!e.isDeclarationFile));if(P.isolatedModules||P.verbatimModuleSyntax)0===P.module&&t<2&&P.isolatedModules&&Wn(la.Option_isolatedModules_can_only_be_used_when_either_option_module_is_provided_or_option_target_is_ES2015_or_higher,"isolatedModules","target"),!1===P.preserveConstEnums&&Wn(la.Option_preserveConstEnums_cannot_be_disabled_when_0_is_enabled,P.verbatimModuleSyntax?"verbatimModuleSyntax":"isolatedModules","preserveConstEnums");else if(n&&t<2&&0===P.module){const e=Gp(n,"boolean"==typeof n.externalModuleIndicator?n:n.externalModuleIndicator);Se.add(Kx(n,e.start,e.length,la.Cannot_use_imports_exports_or_module_augmentations_when_module_is_none))}if(e&&!P.emitDeclarationOnly)if(P.module&&2!==P.module&&4!==P.module)Wn(la.Only_amd_and_system_modules_are_supported_alongside_0,"outFile","module");else if(void 0===P.module&&n){const e=Gp(n,"boolean"==typeof n.externalModuleIndicator?n:n.externalModuleIndicator);Se.add(Kx(n,e.start,e.length,la.Cannot_compile_modules_using_option_0_unless_the_module_flag_is_amd_or_system,"outFile"))}if(wk(P)&&(1===vk(P)?Wn(la.Option_resolveJsonModule_cannot_be_specified_when_moduleResolution_is_set_to_classic,"resolveJsonModule"):Ok(P)||Wn(la.Option_resolveJsonModule_cannot_be_specified_when_module_is_set_to_none_system_or_umd,"resolveJsonModule","module")),P.outDir||P.rootDir||P.sourceRoot||P.mapRoot||Nk(P)&&P.declarationDir){const e=Pt();P.outDir&&""===e&&q.some((e=>No(e.fileName)>1))&&Wn(la.Cannot_find_the_common_subdirectory_path_for_the_input_files,"outDir")}P.checkJs&&!Pk(P)&&Wn(la.Option_0_cannot_be_specified_without_specifying_option_1,"checkJs","allowJs"),P.emitDeclarationOnly&&(Nk(P)||Wn(la.Option_0_cannot_be_specified_without_specifying_option_1_or_option_2,"emitDeclarationOnly","declaration","composite")),P.emitDecoratorMetadata&&!P.experimentalDecorators&&Wn(la.Option_0_cannot_be_specified_without_specifying_option_1,"emitDecoratorMetadata","experimentalDecorators"),P.jsxFactory?(P.reactNamespace&&Wn(la.Option_0_cannot_be_specified_with_option_1,"reactNamespace","jsxFactory"),4!==P.jsx&&5!==P.jsx||Wn(la.Option_0_cannot_be_specified_when_option_jsx_is_1,"jsxFactory",aO.get(""+P.jsx)),jI(P.jsxFactory,t)||$n("jsxFactory",la.Invalid_value_for_jsxFactory_0_is_not_a_valid_identifier_or_qualified_name,P.jsxFactory)):P.reactNamespace&&!fs(P.reactNamespace,t)&&$n("reactNamespace",la.Invalid_value_for_reactNamespace_0_is_not_a_valid_identifier,P.reactNamespace),P.jsxFragmentFactory&&(P.jsxFactory||Wn(la.Option_0_cannot_be_specified_without_specifying_option_1,"jsxFragmentFactory","jsxFactory"),4!==P.jsx&&5!==P.jsx||Wn(la.Option_0_cannot_be_specified_when_option_jsx_is_1,"jsxFragmentFactory",aO.get(""+P.jsx)),jI(P.jsxFragmentFactory,t)||$n("jsxFragmentFactory",la.Invalid_value_for_jsxFragmentFactory_0_is_not_a_valid_identifier_or_qualified_name,P.jsxFragmentFactory)),P.reactNamespace&&(4!==P.jsx&&5!==P.jsx||Wn(la.Option_0_cannot_be_specified_when_option_jsx_is_1,"reactNamespace",aO.get(""+P.jsx))),P.jsxImportSource&&2===P.jsx&&Wn(la.Option_0_cannot_be_specified_when_option_jsx_is_1,"jsxImportSource",aO.get(""+P.jsx));const r=yk(P);P.verbatimModuleSyntax&&(2!==r&&3!==r&&4!==r||Wn(la.Option_verbatimModuleSyntax_cannot_be_used_when_module_is_set_to_UMD_AMD_or_System,"verbatimModuleSyntax")),P.allowImportingTsExtensions&&!(P.noEmit||P.emitDeclarationOnly||P.rewriteRelativeImportExtensions)&&$n("allowImportingTsExtensions",la.Option_allowImportingTsExtensions_can_only_be_used_when_either_noEmit_or_emitDeclarationOnly_is_set);const i=vk(P);if(P.resolvePackageJsonExports&&!Rk(i)&&Wn(la.Option_0_can_only_be_used_when_moduleResolution_is_set_to_node16_nodenext_or_bundler,"resolvePackageJsonExports"),P.resolvePackageJsonImports&&!Rk(i)&&Wn(la.Option_0_can_only_be_used_when_moduleResolution_is_set_to_node16_nodenext_or_bundler,"resolvePackageJsonImports"),P.customConditions&&!Rk(i)&&Wn(la.Option_0_can_only_be_used_when_moduleResolution_is_set_to_node16_nodenext_or_bundler,"customConditions"),100!==i||Ik(r)||200===r||$n("moduleResolution",la.Option_0_can_only_be_used_when_module_is_set_to_preserve_or_to_es2015_or_later,"bundler"),fi[r]&&100<=r&&r<=199&&!(3<=i&&i<=99)){const e=fi[r];$n("moduleResolution",la.Option_moduleResolution_must_be_set_to_0_or_left_unspecified_when_option_module_is_set_to_1,e,e)}else if(li[i]&&3<=i&&i<=99&&!(100<=r&&r<=199)){const e=li[i];$n("module",la.Option_module_must_be_set_to_0_when_option_moduleResolution_is_set_to_1,e,e)}if(!P.noEmit&&!P.suppressOutputPathCheck){const e=jt(),t=new Set;Fq(e,(e=>{P.emitDeclarationOnly||o(e.jsFilePath,t),o(e.declarationFilePath,t)}))}function o(e,t){if(e){const n=Et(e);if(qe.has(n)){let t;P.configFilePath||(t=Yx(void 0,la.Adding_a_tsconfig_json_file_will_help_organize_projects_that_contain_both_TypeScript_and_JavaScript_files_Learn_more_at_https_Colon_Slash_Slashaka_ms_Slashtsconfig)),t=Yx(t,la.Cannot_write_file_0_because_it_would_overwrite_input_file,e),er(e,Qx(t))}const r=ye.useCaseSensitiveFileNames()?n:_t(n);t.has(r)?er(e,Xx(la.Cannot_write_file_0_because_it_would_be_overwritten_by_multiple_input_files,e)):t.add(r)}}}(),tr("afterProgram"),nr("Program","beforeProgram","afterProgram"),null==(D=Hn)||D.pop(),ut;function pt(){return Te&&(null==ee||ee.forEach((e=>{switch(e.kind){case 1:return Se.add(Rn(e.file&&Vt(e.file),e.fileProcessingReason,e.diagnostic,e.args||l));case 0:return Se.add(function({reason:e}){const{file:t,pos:n,end:r}=fV(ut,e),i=_V(t.libReferenceDirectives[e.index]),o=Lt(Mt(Xt(i,"lib."),".d.ts"),cO,st);return Kx(t,un.checkDefined(n),un.checkDefined(r)-n,o?la.Cannot_find_lib_definition_for_0_Did_you_mean_1:la.Cannot_find_lib_definition_for_0,i,o)}(e));case 2:return e.diagnostics.forEach((e=>Se.add(e)));default:un.assertNever(e)}})),Te.forEach((({file:e,diagnostic:t,args:n})=>Se.add(Rn(e,void 0,t,n)))),Te=void 0,X=void 0,Q=void 0),Se}function ft(e,t,n){var r;return null==(r=null==se?void 0:se.get(e.path))?void 0:r.get(t,n)}function mt(e,t,n){var r;return null==(r=null==le?void 0:le.get(e.path))?void 0:r.get(t,n)}function yt(e,t){xt(se,e,t)}function bt(e,t){xt(le,e,t)}function xt(e,t,n){var r;n?null==(r=null==e?void 0:e.get(n.path))||r.forEach(((e,r,i)=>t(e,r,i,n.path))):null==e||e.forEach(((e,n)=>e.forEach(((e,r,i)=>t(e,r,i,n)))))}function kt(){return de||(de=new Map,yt((({resolvedModule:e})=>{(null==e?void 0:e.packageId)&&de.set(e.packageId.name,".d.ts"===e.extension||!!de.get(e.packageId.name))})),de)}function St(e){var t;(null==(t=e.resolutionDiagnostics)?void 0:t.length)&&(ee??(ee=[])).push({kind:2,diagnostics:e.resolutionDiagnostics})}function Tt(e,t,n,r){if(ye.resolveModuleNameLiterals||!ye.resolveModuleNames)return St(n);if(!Ae||Ts(t))return;const i=Do(Bo(e.originalFileName,Ce)),o=Nt(e),a=Ae.getFromNonRelativeNameCache(t,r,i,o);a&&St(a)}function Ct(e,t,n){var r,i;const o=Bo(t.originalFileName,Ce),a=Nt(t);null==(r=Hn)||r.push(Hn.Phase.Program,"resolveModuleNamesWorker",{containingFileName:o}),tr("beforeResolveModule");const s=Ie(e,o,a,P,t,n);return tr("afterResolveModule"),nr("ResolveModule","beforeResolveModule","afterResolveModule"),null==(i=Hn)||i.pop(),s}function wt(e,t,n){var r,i;const o=Ze(t)?void 0:t,a=Ze(t)?t:Bo(t.originalFileName,Ce),s=o&&Nt(o);null==(r=Hn)||r.push(Hn.Phase.Program,"resolveTypeReferenceDirectiveNamesWorker",{containingFileName:a}),tr("beforeResolveTypeReference");const c=Le(e,a,s,P,o,n);return tr("afterResolveTypeReference"),nr("ResolveTypeReference","beforeResolveTypeReference","afterResolveTypeReference"),null==(i=Hn)||i.pop(),c}function Nt(e){const t=xn(e.originalFileName);if(t||!$I(e.originalFileName))return t;const n=Dt(e.path);if(n)return n;if(!ye.realpath||!P.preserveSymlinks||!e.originalFileName.includes(PR))return;const r=Et(ye.realpath(e.originalFileName));return r===e.path?void 0:Dt(r)}function Dt(e){const t=Sn(e);return Ze(t)?xn(t):t?kn((t=>{const n=t.commandLine.options.outFile;if(n)return Et(n)===e?t:void 0})):void 0}function Ft(e){if(Zo(ke,e.fileName,!1)){const t=Fo(e.fileName);if("lib.d.ts"===t||"lib.es6.d.ts"===t)return 0;const n=Mt(Xt(t,"lib."),".d.ts"),r=cO.indexOf(n);if(-1!==r)return r+1}return cO.length+2}function Et(e){return qo(e,Ce,In)}function Pt(){if(void 0===V){const e=N(q,(e=>Gy(e,ut)));V=Uq(P,(()=>B(e,(e=>e.isDeclarationFile?void 0:e.fileName))),Ce,In,(t=>function(e,t){let n=!0;const r=ye.getCanonicalFileName(Bo(t,Ce));for(const i of e)i.isDeclarationFile||0!==ye.getCanonicalFileName(Bo(i.fileName,Ce)).indexOf(r)&&(Bn(i,la.File_0_is_not_under_rootDir_1_rootDir_is_expected_to_contain_all_source_files,[i.fileName,t]),n=!1);return n}(e,t)))}return V}function At(e,t){return Ot({entries:e,containingFile:t,containingSourceFile:t,redirectedReference:Nt(t),nameAndModeGetter:ZU,resolutionWorker:Ct,getResolutionFromOldProgram:(e,n)=>null==R?void 0:R.getResolvedModule(t,e,n),getResolved:cd,canReuseResolutionsInFile:()=>t===(null==R?void 0:R.getSourceFile(t.fileName))&&!Oe(t.path),resolveToOwnAmbientModule:!0})}function It(e,t){const n=Ze(t)?void 0:t;return Ot({entries:e,containingFile:t,containingSourceFile:n,redirectedReference:n&&Nt(n),nameAndModeGetter:nV,resolutionWorker:wt,getResolutionFromOldProgram:(e,t)=>{var r;return n?null==R?void 0:R.getResolvedTypeReferenceDirective(n,e,t):null==(r=null==R?void 0:R.getAutomaticTypeDirectiveResolutions())?void 0:r.get(e,t)},getResolved:ld,canReuseResolutionsInFile:()=>n?n===(null==R?void 0:R.getSourceFile(n.fileName))&&!Oe(n.path):!Oe(Et(t))})}function Ot({entries:e,containingFile:t,containingSourceFile:n,redirectedReference:r,nameAndModeGetter:i,resolutionWorker:o,getResolutionFromOldProgram:a,getResolved:s,canReuseResolutionsInFile:c,resolveToOwnAmbientModule:_}){if(!e.length)return l;if(!(0!==lt||_&&n.ambientModuleNames.length))return o(e,t,void 0);let u,d,p,f;const m=c();for(let c=0;cp[d[t]]=e)),p):g}function jt(e){return{getCanonicalFileName:In,getCommonSourceDirectory:ut.getCommonSourceDirectory,getCompilerOptions:ut.getCompilerOptions,getCurrentDirectory:()=>Ce,getSourceFile:ut.getSourceFile,getSourceFileByPath:ut.getSourceFileByPath,getSourceFiles:ut.getSourceFiles,isSourceFileFromExternalLibrary:Jt,getResolvedProjectReferenceToRedirect:xn,getProjectReferenceRedirect:hn,isSourceOfProjectReferenceRedirect:Tn,getSymlinkCache:ir,writeFile:e||Rt,isEmitBlocked:qt,shouldTransformImportCall:lr,getEmitModuleFormatOfFile:cr,getDefaultResolutionModeForFile:sr,getModeForResolutionAtIndex:ar,readFile:e=>ye.readFile(e),fileExists:e=>{const t=Et(e);return!!Vt(t)||!Ue.has(t)&&ye.fileExists(e)},realpath:We(ye,ye.realpath),useCaseSensitiveFileNames:()=>ye.useCaseSensitiveFileNames(),getBuildInfo:()=>{var e;return null==(e=ut.getBuildInfo)?void 0:e.call(ut)},getSourceFileFromReference:(e,t)=>ut.getSourceFileFromReference(e,t),redirectTargetsMap:ze,getFileIncludeReasons:ut.getFileIncludeReasons,createHash:We(ye,ye.createHash),getModuleResolutionCache:()=>ut.getModuleResolutionCache(),trace:We(ye,ye.trace),getGlobalTypingsCacheLocation:ut.getGlobalTypingsCacheLocation}}function Rt(e,t,n,r,i,o){ye.writeFile(e,t,n,r,i,o)}function Bt(){return He}function Jt(e){return!!he.get(e.path)}function zt(){return W||(W=BB(ut))}function qt(e){return Fe.has(Et(e))}function Ut(e){return Vt(Et(e))}function Vt(e){return qe.get(e)||void 0}function Wt(e,t,n){return Cs(e?t(e,n):O(ut.getSourceFiles(),(e=>(n&&n.throwIfCancellationRequested(),t(e,n)))))}function $t(e){var t;if(cT(e,P,ut))return l;const n=pt().getDiagnostics(e.fileName);return(null==(t=e.commentDirectives)?void 0:t.length)?Zt(e,e.commentDirectives,n).diagnostics:n}function Ht(e){return Dm(e)?(e.additionalSyntacticDiagnostics||(e.additionalSyntacticDiagnostics=function(e){return Kt((()=>{const t=[];return n(e,e),AI(e,n,(function(e,n){if(NA(n)){const e=b(n.modifiers,aD);e&&t.push(i(e,la.Decorators_are_not_valid_here))}else if(iI(n)&&n.modifiers){const e=k(n.modifiers,aD);if(e>=0)if(oD(n)&&!P.experimentalDecorators)t.push(i(n.modifiers[e],la.Decorators_are_not_valid_here));else if(HF(n)){const r=k(n.modifiers,UN);if(r>=0){const o=k(n.modifiers,VN);if(e>r&&o>=0&&e=0&&e=0&&t.push(iT(i(n.modifiers[o],la.Decorators_may_not_appear_after_export_or_export_default_if_they_also_appear_before_export),i(n.modifiers[e],la.Decorator_used_before_export_here)))}}}}switch(n.kind){case 263:case 231:case 174:case 176:case 177:case 178:case 218:case 262:case 219:if(e===n.typeParameters)return t.push(r(e,la.Type_parameter_declarations_can_only_be_used_in_TypeScript_files)),"skip";case 243:if(e===n.modifiers)return function(e,n){for(const r of e)switch(r.kind){case 87:if(n)continue;case 125:case 123:case 124:case 148:case 138:case 128:case 164:case 103:case 147:t.push(i(r,la.The_0_modifier_can_only_be_used_in_TypeScript_files,Da(r.kind)))}}(n.modifiers,243===n.kind),"skip";break;case 172:if(e===n.modifiers){for(const n of e)Yl(n)&&126!==n.kind&&129!==n.kind&&t.push(i(n,la.The_0_modifier_can_only_be_used_in_TypeScript_files,Da(n.kind)));return"skip"}break;case 169:if(e===n.modifiers&&$(e,Yl))return t.push(r(e,la.Parameter_modifiers_can_only_be_used_in_TypeScript_files)),"skip";break;case 213:case 214:case 233:case 285:case 286:case 215:if(e===n.typeArguments)return t.push(r(e,la.Type_arguments_can_only_be_used_in_TypeScript_files)),"skip"}})),t;function n(e,n){switch(n.kind){case 169:case 172:case 174:if(n.questionToken===e)return t.push(i(e,la.The_0_modifier_can_only_be_used_in_TypeScript_files,"?")),"skip";case 173:case 176:case 177:case 178:case 218:case 262:case 219:case 260:if(n.type===e)return t.push(i(e,la.Type_annotations_can_only_be_used_in_TypeScript_files)),"skip"}switch(e.kind){case 273:if(e.isTypeOnly)return t.push(i(n,la._0_declarations_can_only_be_used_in_TypeScript_files,"import type")),"skip";break;case 278:if(e.isTypeOnly)return t.push(i(e,la._0_declarations_can_only_be_used_in_TypeScript_files,"export type")),"skip";break;case 276:case 281:if(e.isTypeOnly)return t.push(i(e,la._0_declarations_can_only_be_used_in_TypeScript_files,dE(e)?"import...type":"export...type")),"skip";break;case 271:return t.push(i(e,la.import_can_only_be_used_in_TypeScript_files)),"skip";case 277:if(e.isExportEquals)return t.push(i(e,la.export_can_only_be_used_in_TypeScript_files)),"skip";break;case 298:if(119===e.token)return t.push(i(e,la.implements_clauses_can_only_be_used_in_TypeScript_files)),"skip";break;case 264:const r=Da(120);return un.assertIsDefined(r),t.push(i(e,la._0_declarations_can_only_be_used_in_TypeScript_files,r)),"skip";case 267:const o=32&e.flags?Da(145):Da(144);return un.assertIsDefined(o),t.push(i(e,la._0_declarations_can_only_be_used_in_TypeScript_files,o)),"skip";case 265:return t.push(i(e,la.Type_aliases_can_only_be_used_in_TypeScript_files)),"skip";case 176:case 174:case 262:return e.body?void 0:(t.push(i(e,la.Signature_declarations_can_only_be_used_in_TypeScript_files)),"skip");case 266:const a=un.checkDefined(Da(94));return t.push(i(e,la._0_declarations_can_only_be_used_in_TypeScript_files,a)),"skip";case 235:return t.push(i(e,la.Non_null_assertions_can_only_be_used_in_TypeScript_files)),"skip";case 234:return t.push(i(e.type,la.Type_assertion_expressions_can_only_be_used_in_TypeScript_files)),"skip";case 238:return t.push(i(e.type,la.Type_satisfaction_expressions_can_only_be_used_in_TypeScript_files)),"skip";case 216:un.fail()}}function r(t,n,...r){const i=t.pos;return Kx(e,i,t.end-i,n,...r)}function i(t,n,...r){return Mp(e,t,n,...r)}}))}(e)),K(e.additionalSyntacticDiagnostics,e.parseDiagnostics)):e.parseDiagnostics}function Kt(e){try{return e()}catch(e){throw e instanceof Cr&&(W=void 0),e}}function Qt(e,t,n){if(n)return Yt(e,t,n);let r=null==Y?void 0:Y.get(e.path);return r||(Y??(Y=new Map)).set(e.path,r=Yt(e,t)),r}function Yt(e,t,n){return Kt((()=>{if(cT(e,P,ut))return l;const r=zt();un.assert(!!e.bindDiagnostics);const i=1===e.scriptKind||2===e.scriptKind,o=vd(e,P.checkJs),a=i&&eT(e,P);let s=e.bindDiagnostics,c=r.getDiagnostics(e,t,n);return o&&(s=N(s,(e=>vV.has(e.code))),c=N(c,(e=>vV.has(e.code)))),function(e,t,n,...r){var i;const o=I(r);if(!t||!(null==(i=e.commentDirectives)?void 0:i.length))return o;const{diagnostics:a,directives:s}=Zt(e,e.commentDirectives,o);if(n)return a;for(const t of s.getUnusedExpectations())a.push(Wp(e,t.range,la.Unused_ts_expect_error_directive));return a}(e,!o,!!n,s,c,a?e.jsDocDiagnostics:void 0)}))}function Zt(e,t,n){const r=Md(e,t),i=n.filter((e=>-1===function(e,t){const{file:n,start:r}=e;if(!n)return-1;const i=ja(n);let o=Ra(i,r).line-1;for(;o>=0;){if(t.markUsed(o))return o;const e=n.text.slice(i[o],i[o+1]).trim();if(""!==e&&!/^\s*\/\/.*$/.test(e))return-1;o--}return-1}(e,r)));return{diagnostics:i,directives:r}}function en(e,t){return e.isDeclarationFile?l:function(e,t){let n=null==Z?void 0:Z.get(e.path);return n||(Z??(Z=new Map)).set(e.path,n=function(e,t){return Kt((()=>{const n=zt().getEmitResolver(e,t);return _q(jt(rt),n,e)||l}))}(e,t)),n}(e,t)}function tn(e,t,n,r){cn(Jo(e),t,n,void 0,r)}function nn(e,t){return e.fileName===t.fileName}function rn(e,t){return 80===e.kind?80===t.kind&&e.escapedText===t.escapedText:11===t.kind&&e.text===t.text}function on(e,t){const n=XC.createStringLiteral(e),r=XC.createImportDeclaration(void 0,void 0,n);return ow(r,2),wT(n,r),wT(r,t),n.flags&=-17,r.flags&=-17,n}function an(e){if(e.imports)return;const t=Dm(e),n=MI(e);let r,i,o;if(t||!e.isDeclarationFile&&(xk(P)||MI(e))){P.importHelpers&&(r=[on(qu,e)]);const t=Hk($k(P,e),P);t&&(r||(r=[])).push(on(t,e))}for(const t of e.statements)a(t,!1);return(4194304&e.flags||t)&&wC(e,!0,!0,((e,t)=>{NT(e,!1),r=ie(r,t)})),e.imports=r||l,e.moduleAugmentations=i||l,void(e.ambientModuleNames=o||l);function a(t,s){if(wp(t)){const n=xg(t);!(n&&TN(n)&&n.text)||s&&Ts(n.text)||(NT(t,!1),r=ie(r,n),Be||0!==me||e.isDeclarationFile||(Gt(n.text,"node:")&&!TC.has(n.text)?Be=!0:void 0===Be&&SC.has(n.text)&&(Be=!1)))}else if(QF(t)&&ap(t)&&(s||wv(t,128)||e.isDeclarationFile)){t.name.parent=t;const r=zh(t.name);if(n||s&&!Ts(r))(i||(i=[])).push(t.name);else if(!s){e.isDeclarationFile&&(o||(o=[])).push(r);const n=t.body;if(n)for(const e of n.statements)a(e,!0)}}}}function sn(e,t,n,r){if(xo(e)){const i=ye.getCanonicalFileName(e);if(!P.allowNonTsExtensions&&!d(I(Ne),(e=>ko(i,e))))return void(n&&(AS(i)?n(la.File_0_is_a_JavaScript_file_Did_you_mean_to_enable_the_allowJs_option,e):n(la.File_0_has_an_unsupported_extension_The_only_supported_extensions_are_1,e,"'"+I(we).join("', '")+"'")));const o=t(e);if(n)if(o)dV(r)&&i===ye.getCanonicalFileName(Vt(r.file).fileName)&&n(la.A_file_cannot_have_a_reference_to_itself);else{const t=hn(e);t?n(la.Output_file_0_has_not_been_built_from_source_file_1,t,e):n(la.File_0_not_found,e)}return o}{const r=P.allowNonTsExtensions&&t(e);if(r)return r;if(n&&P.allowNonTsExtensions)return void n(la.File_0_not_found,e);const i=d(we[0],(n=>t(e+n)));return n&&!i&&n(la.Could_not_resolve_the_path_0_with_the_extensions_Colon_1,e,"'"+I(we).join("', '")+"'"),i}}function cn(e,t,n,r,i){sn(e,(e=>dn(e,t,n,i,r)),((e,...t)=>Mn(void 0,i,e,t)),i)}function ln(e,t){return cn(e,!1,!1,void 0,t)}function _n(e,t,n){!dV(n)&&$(pe.get(t.path),dV)?Mn(t,n,la.Already_included_file_name_0_differs_from_file_name_1_only_in_casing,[t.fileName,e]):Mn(t,n,la.File_name_0_differs_from_already_included_file_name_1_only_in_casing,[e,t.fileName])}function dn(e,t,n,r,i){var o,a;null==(o=Hn)||o.push(Hn.Phase.Program,"findSourceFile",{fileName:e,isDefaultLib:t||void 0,fileIncludeKind:wr[r.kind]});const s=function(e,t,n,r,i){var o;const a=Et(e);if(Ye){let o=Sn(a);if(!o&&ye.realpath&&P.preserveSymlinks&&$I(e)&&e.includes(PR)){const t=Et(ye.realpath(e));t!==a&&(o=Sn(t))}if(o){const s=Ze(o)?dn(o,t,n,r,i):void 0;return s&&mn(s,a,e,void 0),s}}const s=e;if(qe.has(a)){const n=qe.get(a),i=fn(n||void 0,r,!0);if(n&&i&&!1!==P.forceConsistentCasingInFileNames){const t=n.fileName;Et(t)!==Et(e)&&(e=hn(e)||e),zo(t,Ce)!==zo(e,Ce)&&_n(e,n,r)}return n&&he.get(n.path)&&0===me?(he.set(n.path,!1),P.noResolve||(wn(n,t),Nn(n)),P.noLib||An(n),ge.set(n.path,!1),On(n)):n&&ge.get(n.path)&&meMn(void 0,r,la.Cannot_read_file_0_Colon_1,[e,t])),ct);if(i){const t=pd(i),n=Me.get(t);if(n){const t=function(e,t,n,r,i,o,a){var s;const c=aI.createRedirectedSourceFile({redirectTarget:e,unredirected:t});return c.fileName=n,c.path=r,c.resolvedPath=i,c.originalFileName=o,c.packageJsonLocations=(null==(s=a.packageJsonLocations)?void 0:s.length)?a.packageJsonLocations:void 0,c.packageJsonScope=a.packageJsonScope,he.set(r,me>0),c}(n,_,e,a,Et(e),s,l);return ze.add(n.path,e),mn(t,a,e,c),fn(t,r,!1),Je.set(a,dd(i)),z.push(t),t}_&&(Me.set(t,_),Je.set(a,dd(i)))}if(mn(_,a,e,c),_){if(he.set(a,me>0),_.fileName=e,_.path=a,_.resolvedPath=Et(e),_.originalFileName=s,_.packageJsonLocations=(null==(o=l.packageJsonLocations)?void 0:o.length)?l.packageJsonLocations:void 0,_.packageJsonScope=l.packageJsonScope,fn(_,r,!1),ye.useCaseSensitiveFileNames()){const t=_t(a),n=Ve.get(t);n?_n(e,n,r):Ve.set(t,_)}be=be||_.hasNoDefaultLib&&!n,P.noResolve||(wn(_,t),Nn(_)),P.noLib||An(_),On(_),t?J.push(_):z.push(_),(G??(G=new Set)).add(_.path)}return _}(e,t,n,r,i);return null==(a=Hn)||a.pop(),s}function pn(e,t,n,r){const i=yV(Bo(e,Ce),null==t?void 0:t.getPackageJsonInfoCache(),n,r),o=hk(r),a=dk(r);return"object"==typeof i?{...i,languageVersion:o,setExternalModuleIndicator:a,jsDocParsingMode:n.jsDocParsingMode}:{languageVersion:o,impliedNodeFormat:i,setExternalModuleIndicator:a,jsDocParsingMode:n.jsDocParsingMode}}function fn(e,t,n){return!(!e||n&&dV(t)&&(null==G?void 0:G.has(t.file))||(pe.add(e.path,t),0))}function mn(e,t,n,r){r?(gn(n,r,e),gn(n,t,e||!1)):gn(n,t,e)}function gn(e,t,n){qe.set(t,n),void 0!==n?Ue.delete(t):Ue.set(t,e)}function hn(e){const t=yn(e);return t&&vn(t,e)}function yn(e){if(He&&He.length&&!$I(e)&&!ko(e,".json"))return xn(e)}function vn(e,t){const n=e.commandLine.options.outFile;return n?VS(n,".d.ts"):jq(t,e.commandLine,!ye.useCaseSensitiveFileNames())}function xn(e){void 0===Ge&&(Ge=new Map,kn((e=>{Et(P.configFilePath)!==e.sourceFile.path&&e.commandLine.fileNames.forEach((t=>Ge.set(Et(t),e.sourceFile.path)))})));const t=Ge.get(Et(e));return t&&Cn(t)}function kn(e){return oV(He,e)}function Sn(e){if($I(e))return void 0===Xe&&(Xe=new Map,kn((e=>{const t=e.commandLine.options.outFile;if(t){const e=VS(t,".d.ts");Xe.set(Et(e),!0)}else{const t=dt((()=>Vq(e.commandLine,!ye.useCaseSensitiveFileNames())));d(e.commandLine.fileNames,(n=>{if(!$I(n)&&!ko(n,".json")){const r=jq(n,e.commandLine,!ye.useCaseSensitiveFileNames(),t);Xe.set(Et(r),n)}}))}}))),Xe.get(e)}function Tn(e){return Ye&&!!xn(e)}function Cn(e){if(Ke)return Ke.get(e)||void 0}function wn(e,t){d(e.referencedFiles,((n,r)=>{cn(xU(n.fileName,e.fileName),t,!1,void 0,{kind:4,file:e.path,index:r})}))}function Nn(e){const t=e.typeReferenceDirectives;if(!t.length)return;const n=(null==ue?void 0:ue.get(e.path))||It(t,e),r=uR();(le??(le=new Map)).set(e.path,r);for(let i=0;i{const r=uV(t);r?tn(En(r),!0,!0,{kind:7,file:e.path,index:n}):(ee||(ee=[])).push({kind:0,reason:{kind:7,file:e.path,index:n}})}))}function In(e){return ye.getCanonicalFileName(e)}function On(e){if(an(e),e.imports.length||e.moduleAugmentations.length){const t=PV(e),n=(null==ce?void 0:ce.get(e.path))||At(t,e);un.assert(n.length===t.length);const r=Dn(e),i=uR();(se??(se=new Map)).set(e.path,i);for(let o=0;ofe,f=d&&!EV(r,a,e)&&!r.noResolve&&o{l?void 0===i?n(r,i,o,la.Option_0_has_been_removed_Please_remove_it_from_your_configuration,r):n(r,i,o,la.Option_0_1_has_been_removed_Please_remove_it_from_your_configuration,r,i):void 0===i?n(r,i,o,la.Option_0_is_deprecated_and_will_stop_functioning_in_TypeScript_1_Specify_compilerOption_ignoreDeprecations_Colon_2_to_silence_this_error,r,t,e):n(r,i,o,la.Option_0_1_is_deprecated_and_will_stop_functioning_in_TypeScript_2_Specify_compilerOption_ignoreDeprecations_Colon_3_to_silence_this_error,r,i,t,e)}))}function Rn(e,t,n,r){let i;const o=e&&pe.get(e.path);let a,s,c,_,u,d=dV(t)?t:void 0,p=e&&(null==X?void 0:X.get(e.path));p?(p.fileIncludeReasonDetails?(i=new Set(o),null==o||o.forEach(h)):null==o||o.forEach(g),_=p.redirectInfo):(null==o||o.forEach(g),_=e&&r$(e,Dn(e))),t&&g(t);const f=(null==i?void 0:i.size)!==(null==o?void 0:o.length);d&&1===(null==i?void 0:i.size)&&(i=void 0),i&&p&&(p.details&&!f?u=Yx(p.details,n,...r||l):p.fileIncludeReasonDetails&&(f?a=y()?ie(p.fileIncludeReasonDetails.next.slice(0,o.length),a[0]):[...p.fileIncludeReasonDetails.next,a[0]]:y()?a=p.fileIncludeReasonDetails.next.slice(0,o.length):c=p.fileIncludeReasonDetails)),u||(c||(c=i&&Yx(a,la.The_file_is_in_the_program_because_Colon)),u=Yx(_?c?[c,..._]:_:c,n,...r||l)),e&&(p?(!p.fileIncludeReasonDetails||!f&&c)&&(p.fileIncludeReasonDetails=c):(X??(X=new Map)).set(e.path,p={fileIncludeReasonDetails:c,redirectInfo:_}),p.details||f||(p.details=u.next));const m=d&&fV(ut,d);return m&&pV(m)?qp(m.file,m.pos,m.end-m.pos,u,s):Qx(u,s);function g(e){(null==i?void 0:i.has(e))||((i??(i=new Set)).add(e),(a??(a=[])).push(a$(ut,e)),h(e))}function h(e){!d&&dV(e)?d=e:d!==e&&(s=ie(s,function(e){let t=null==Q?void 0:Q.get(e);return void 0===t&&(Q??(Q=new Map)).set(e,t=function(e){if(dV(e)){const t=fV(ut,e);let n;switch(e.kind){case 3:n=la.File_is_included_via_import_here;break;case 4:n=la.File_is_included_via_reference_here;break;case 5:n=la.File_is_included_via_type_library_reference_here;break;case 7:n=la.File_is_included_via_library_reference_here;break;default:un.assertNever(e)}return pV(t)?Kx(t.file,t.pos,t.end-t.pos,n):void 0}if(!P.configFile)return;let t,n;switch(e.kind){case 0:if(!P.configFile.configFileSpecs)return;const i=Bo(E[e.index],Ce),o=i$(ut,i);if(o){t=Wf(P.configFile,"files",o),n=la.File_is_matched_by_files_list_specified_here;break}const a=o$(ut,i);if(!a||!Ze(a))return;t=Wf(P.configFile,"include",a),n=la.File_is_matched_by_include_pattern_specified_here;break;case 1:case 2:const s=un.checkDefined(null==He?void 0:He[e.index]),c=aV(L,He,((e,t,n)=>e===s?{sourceFile:(null==t?void 0:t.sourceFile)||P.configFile,index:n}:void 0));if(!c)return;const{sourceFile:l,index:_}=c,u=$f(l,"references",(e=>WD(e.initializer)?e.initializer:void 0));return u&&u.elements.length>_?Mp(l,u.elements[_],2===e.kind?la.File_is_output_from_referenced_project_specified_here:la.File_is_source_from_referenced_project_specified_here):void 0;case 8:if(!P.types)return;t=Vn("types",e.typeReference),n=la.File_is_entry_point_of_type_library_specified_here;break;case 6:if(void 0!==e.index){t=Vn("lib",P.lib[e.index]),n=la.File_is_library_specified_here;break}const d=Bk(hk(P));t=d?(r=d,qn("target",(e=>TN(e.initializer)&&e.initializer.text===r?e.initializer:void 0))):void 0,n=la.File_is_default_library_for_target_specified_here;break;default:un.assertNever(e)}var r;return t&&Mp(P.configFile,t,n)}(e)??!1),t||void 0}(e)))}function y(){var e;return(null==(e=p.fileIncludeReasonDetails.next)?void 0:e.length)!==(null==o?void 0:o.length)}}function Mn(e,t,n,r){(ee||(ee=[])).push({kind:1,file:e&&e.path,fileProcessingReason:t,diagnostic:n,args:r})}function Bn(e,t,n){Te.push({file:e,diagnostic:t,args:n})}function Jn(e,t,n,...r){let i=!0;Un((o=>{$D(o.initializer)&&qf(o.initializer,e,(e=>{const o=e.initializer;WD(o)&&o.elements.length>t&&(Se.add(Mp(P.configFile,o.elements[t],n,...r)),i=!1)}))})),i&&Xn(n,...r)}function zn(e,t,n,...r){let i=!0;Un((o=>{$D(o.initializer)&&Zn(o.initializer,e,t,void 0,n,...r)&&(i=!1)})),i&&Xn(n,...r)}function qn(e,t){return qf(Qn(),e,t)}function Un(e){return qn("paths",e)}function Vn(e,t){const n=Qn();return n&&Uf(n,e,t)}function Wn(e,t,n,r){Gn(!0,t,n,e,t,n,r)}function $n(e,t,...n){Gn(!1,e,void 0,t,...n)}function Kn(e,t,n,...r){const i=$f(e||P.configFile,"references",(e=>WD(e.initializer)?e.initializer:void 0));i&&i.elements.length>t?Se.add(Mp(e||P.configFile,i.elements[t],n,...r)):Se.add(Xx(n,...r))}function Gn(e,t,n,r,...i){const o=Qn();(!o||!Zn(o,e,t,n,r,...i))&&Xn(r,...i)}function Xn(e,...t){const n=Yn();n?"messageText"in e?Se.add(Bp(P.configFile,n.name,e)):Se.add(Mp(P.configFile,n.name,e,...t)):"messageText"in e?Se.add(Qx(e)):Se.add(Xx(e,...t))}function Qn(){if(void 0===Ee){const e=Yn();Ee=e&&tt(e.initializer,$D)||!1}return Ee||void 0}function Yn(){return void 0===Pe&&(Pe=qf(Vf(P.configFile),"compilerOptions",st)||!1),Pe||void 0}function Zn(e,t,n,r,i,...o){let a=!1;return qf(e,n,(e=>{"messageText"in i?Se.add(Bp(P.configFile,t?e.name:e.initializer,i)):Se.add(Mp(P.configFile,t?e.name:e.initializer,i,...o)),a=!0}),r),a}function er(e,t){Fe.set(Et(e),!0),Se.add(t)}function rr(e,t){return 0===Yo(e,t,Ce,!ye.useCaseSensitiveFileNames())}function ir(){return ye.getSymlinkCache?ye.getSymlinkCache():(U||(U=Gk(Ce,In)),q&&!U.hasProcessedResolutions()&&U.setSymlinksFromResolutions(yt,bt,re),U)}function or(e,t){return KU(e,t,Dn(e))}function ar(e,t){return or(e,AV(e,t))}function sr(e){return TV(e,Dn(e))}function cr(e){return kV(e,Dn(e))}function lr(e){return xV(e,Dn(e))}function _r(e,t){return e.resolutionMode||sr(t)}}function xV(e,t){const n=yk(t);return!(100<=n&&n<=199||200===n)&&kV(e,t)<5}function kV(e,t){return SV(e,t)??yk(t)}function SV(e,t){var n,r;const i=yk(t);return 100<=i&&i<=199?e.impliedNodeFormat:1!==e.impliedNodeFormat||"commonjs"!==(null==(n=e.packageJsonScope)?void 0:n.contents.packageJsonContent.type)&&!So(e.fileName,[".cjs",".cts"])?99!==e.impliedNodeFormat||"module"!==(null==(r=e.packageJsonScope)?void 0:r.contents.packageJsonContent.type)&&!So(e.fileName,[".mjs",".mts"])?void 0:99:1}function TV(e,t){return pk(t)?SV(e,t):void 0}var CV={diagnostics:l,sourceMaps:void 0,emittedFiles:void 0,emitSkipped:!0};function wV(e,t,n,r){const i=e.getCompilerOptions();if(i.noEmit)return t?CV:e.emitBuildInfo(n,r);if(!i.noEmitOnError)return;let o,a=[...e.getOptionsDiagnostics(r),...e.getSyntacticDiagnostics(t,r),...e.getGlobalDiagnostics(r),...e.getSemanticDiagnostics(t,r)];if(0===a.length&&Nk(e.getCompilerOptions())&&(a=e.getDeclarationDiagnostics(void 0,r)),a.length){if(!t){const t=e.emitBuildInfo(n,r);t.diagnostics&&(a=[...a,...t.diagnostics]),o=t.emittedFiles}return{diagnostics:a,sourceMaps:void 0,emittedFiles:o,emitSkipped:!0}}}function NV(e,t){return N(e,(e=>!e.skippedOn||!t[e.skippedOn]))}function DV(e,t=e){return{fileExists:e=>t.fileExists(e),readDirectory:(e,n,r,i,o)=>(un.assertIsDefined(t.readDirectory,"'CompilerHost.readDirectory' must be implemented to correctly process 'projectReferences'"),t.readDirectory(e,n,r,i,o)),readFile:e=>t.readFile(e),directoryExists:We(t,t.directoryExists),getDirectories:We(t,t.getDirectories),realpath:We(t,t.realpath),useCaseSensitiveFileNames:e.useCaseSensitiveFileNames(),getCurrentDirectory:()=>e.getCurrentDirectory(),onUnRecoverableConfigFileDiagnostic:e.onUnRecoverableConfigFileDiagnostic||at,trace:e.trace?t=>e.trace(t):void 0}}function FV(e){return E$(e.path)}function EV(e,{extension:t},{isDeclarationFile:n}){switch(t){case".ts":case".d.ts":case".mts":case".d.mts":case".cts":case".d.cts":return;case".tsx":return r();case".jsx":return r()||i();case".js":case".mjs":case".cjs":return i();case".json":return wk(e)?void 0:la.Module_0_was_resolved_to_1_but_resolveJsonModule_is_not_used;default:return n||e.allowArbitraryExtensions?void 0:la.Module_0_was_resolved_to_1_but_allowArbitraryExtensions_is_not_set}function r(){return e.jsx?void 0:la.Module_0_was_resolved_to_1_but_jsx_is_not_set}function i(){return Pk(e)||!Mk(e,"noImplicitAny")?void 0:la.Could_not_find_a_declaration_file_for_module_0_1_implicitly_has_an_any_type}}function PV({imports:e,moduleAugmentations:t}){const n=e.map((e=>e));for(const e of t)11===e.kind&&n.push(e);return n}function AV({imports:e,moduleAugmentations:t},n){if(n(e[e.ComputedDts=0]="ComputedDts",e[e.StoredSignatureAtEmit=1]="StoredSignatureAtEmit",e[e.UsedVersion=2]="UsedVersion",e))(LV||{});(e=>{function t(){return function(e,t,r){const i={getKeys:e=>t.get(e),getValues:t=>e.get(t),keys:()=>e.keys(),size:()=>e.size,deleteKey:i=>{(r||(r=new Set)).add(i);const o=e.get(i);return!!o&&(o.forEach((e=>n(t,e,i))),e.delete(i),!0)},set:(o,a)=>{null==r||r.delete(o);const s=e.get(o);return e.set(o,a),null==s||s.forEach((e=>{a.has(e)||n(t,e,o)})),a.forEach((e=>{(null==s?void 0:s.has(e))||function(e,t,n){let r=e.get(t);r||(r=new Set,e.set(t,r)),r.add(n)}(t,e,o)})),i}};return i}(new Map,new Map,void 0)}function n(e,t,n){const r=e.get(t);return!!(null==r?void 0:r.delete(n))&&(r.size||e.delete(t),!0)}function r(e,t){const n=e.getSymbolAtLocation(t);return n&&function(e){return B(e.declarations,(e=>{var t;return null==(t=hd(e))?void 0:t.resolvedPath}))}(n)}function i(e,t,n,r){return qo(e.getProjectReferenceRedirect(t)||t,n,r)}function o(e,t,n){let o;if(t.imports&&t.imports.length>0){const n=e.getTypeChecker();for(const e of t.imports){const t=r(n,e);null==t||t.forEach(c)}}const a=Do(t.resolvedPath);if(t.referencedFiles&&t.referencedFiles.length>0)for(const r of t.referencedFiles)c(i(e,r.fileName,a,n));if(e.forEachResolvedTypeReferenceDirective((({resolvedTypeReferenceDirective:t})=>{if(!t)return;const r=t.resolvedFileName;c(i(e,r,a,n))}),t),t.moduleAugmentations.length){const n=e.getTypeChecker();for(const e of t.moduleAugmentations){if(!TN(e))continue;const t=n.getSymbolAtLocation(e);t&&s(t)}}for(const t of e.getTypeChecker().getAmbientModules())t.declarations&&t.declarations.length>1&&s(t);return o;function s(e){if(e.declarations)for(const n of e.declarations){const e=hd(n);e&&e!==t&&c(e.resolvedPath)}}function c(e){(o||(o=new Set)).add(e)}}function a(e,t){return t&&!t.referencedMap==!e}function s(e){return 0===e.module||e.outFile?void 0:t()}function c(e,t,n,r,i){const o=t.getSourceFileByPath(n);return o?u(e,t,o,r,i)?(e.referencedMap?h:g)(e,t,o,r,i):[o]:l}function _(e,t,n,r,i){e.emit(t,((n,o,a,s,c,l)=>{un.assert($I(n),`File extension for signature expected to be dts: Got:: ${n}`),i(pW(e,t,o,r,l),c)}),n,2,void 0,!0)}function u(e,t,n,r,i,o=e.useFileVersionAsSignature){var a;if(null==(a=e.hasCalledUpdateShapeSignature)?void 0:a.has(n.resolvedPath))return!1;const s=e.fileInfos.get(n.resolvedPath),c=s.signature;let l;return n.isDeclarationFile||o||_(t,n,r,i,(t=>{l=t,i.storeSignatureInfo&&(e.signatureInfo??(e.signatureInfo=new Map)).set(n.resolvedPath,0)})),void 0===l&&(l=n.version,i.storeSignatureInfo&&(e.signatureInfo??(e.signatureInfo=new Map)).set(n.resolvedPath,2)),(e.oldSignatures||(e.oldSignatures=new Map)).set(n.resolvedPath,c||!1),(e.hasCalledUpdateShapeSignature||(e.hasCalledUpdateShapeSignature=new Set)).add(n.resolvedPath),s.signature=l,l!==c}function d(e,t){if(!e.allFileNames){const n=t.getSourceFiles();e.allFileNames=n===l?l:n.map((e=>e.fileName))}return e.allFileNames}function p(e,t){const n=e.referencedMap.getKeys(t);return n?Oe(n.keys()):[]}function f(e){return function(e){return $(e.moduleAugmentations,(e=>up(e.parent)))}(e)||!Qp(e)&&!Yp(e)&&!function(e){for(const t of e.statements)if(!sp(t))return!1;return!0}(e)}function m(e,t,n){if(e.allFilesExcludingDefaultLibraryFile)return e.allFilesExcludingDefaultLibraryFile;let r;n&&i(n);for(const e of t.getSourceFiles())e!==n&&i(e);return e.allFilesExcludingDefaultLibraryFile=r||l,e.allFilesExcludingDefaultLibraryFile;function i(e){t.isSourceFileDefaultLibrary(e)||(r||(r=[])).push(e)}}function g(e,t,n){const r=t.getCompilerOptions();return r&&r.outFile?[n]:m(e,t,n)}function h(e,t,n,r,i){if(f(n))return m(e,t,n);const o=t.getCompilerOptions();if(o&&(xk(o)||o.outFile))return[n];const a=new Map;a.set(n.resolvedPath,n);const s=p(e,n.resolvedPath);for(;s.length>0;){const n=s.pop();if(!a.has(n)){const o=t.getSourceFileByPath(n);a.set(n,o),o&&u(e,t,o,r,i)&&s.push(...p(e,o.resolvedPath))}}return Oe(J(a.values(),(e=>e)))}e.createManyToManyPathMap=t,e.canReuseOldState=a,e.createReferencedMap=s,e.create=function(e,t,n){var r,i;const c=new Map,l=e.getCompilerOptions(),_=s(l),u=a(_,t);e.getTypeChecker();for(const n of e.getSourceFiles()){const a=un.checkDefined(n.version,"Program intended to be used with Builder should have source files with versions set"),s=u?null==(r=t.oldSignatures)?void 0:r.get(n.resolvedPath):void 0,d=void 0===s?u?null==(i=t.fileInfos.get(n.resolvedPath))?void 0:i.signature:void 0:s||void 0;if(_){const t=o(e,n,e.getCanonicalFileName);t&&_.set(n.resolvedPath,t)}c.set(n.resolvedPath,{version:a,signature:d,affectsGlobalScope:l.outFile?void 0:f(n)||void 0,impliedFormat:n.impliedNodeFormat})}return{fileInfos:c,referencedMap:_,useFileVersionAsSignature:!n&&!u}},e.releaseCache=function(e){e.allFilesExcludingDefaultLibraryFile=void 0,e.allFileNames=void 0},e.getFilesAffectedBy=function(e,t,n,r,i){var o;const a=c(e,t,n,r,i);return null==(o=e.oldSignatures)||o.clear(),a},e.getFilesAffectedByWithOldState=c,e.updateSignatureOfFile=function(e,t,n){e.fileInfos.get(n).signature=t,(e.hasCalledUpdateShapeSignature||(e.hasCalledUpdateShapeSignature=new Set)).add(n)},e.computeDtsSignature=_,e.updateShapeSignature=u,e.getAllDependencies=function(e,t,n){if(t.getCompilerOptions().outFile)return d(e,t);if(!e.referencedMap||f(n))return d(e,t);const r=new Set,i=[n.resolvedPath];for(;i.length;){const t=i.pop();if(!r.has(t)){r.add(t);const n=e.referencedMap.getValues(t);if(n)for(const e of n.keys())i.push(e)}}return Oe(J(r.keys(),(e=>{var n;return(null==(n=t.getSourceFileByPath(e))?void 0:n.fileName)??e})))},e.getReferencedByPaths=p,e.getAllFilesExcludingDefaultLibraryFile=m})(OV||(OV={}));var jV=(e=>(e[e.None=0]="None",e[e.Js=1]="Js",e[e.JsMap=2]="JsMap",e[e.JsInlineMap=4]="JsInlineMap",e[e.DtsErrors=8]="DtsErrors",e[e.DtsEmit=16]="DtsEmit",e[e.DtsMap=32]="DtsMap",e[e.Dts=24]="Dts",e[e.AllJs=7]="AllJs",e[e.AllDtsEmit=48]="AllDtsEmit",e[e.AllDts=56]="AllDts",e[e.All=63]="All",e))(jV||{});function RV(e){return void 0!==e.program}function MV(e){let t=1;return e.sourceMap&&(t|=2),e.inlineSourceMap&&(t|=4),Nk(e)&&(t|=24),e.declarationMap&&(t|=32),e.emitDeclarationOnly&&(t&=56),t}function BV(e,t){const n=t&&(et(t)?t:MV(t)),r=et(e)?e:MV(e);if(n===r)return 0;if(!n||!r)return r;const i=n^r;let o=0;return 7&i&&(o=7&r),8&i&&(o|=8&r),48&i&&(o|=48&r),o}function JV(e,t,n){return!!e.declarationMap==!!t.declarationMap?n:Ze(n)?[n]:n[0]}function zV(e,t){return e.length?A(e,(e=>{if(Ze(e.messageText))return e;const n=qV(e.messageText,e.file,t,(e=>{var t;return null==(t=e.repopulateInfo)?void 0:t.call(e)}));return n===e.messageText?e:{...e,messageText:n}})):e}function qV(e,t,n,r){const i=r(e);if(!0===i)return{...ud(t),next:UV(e.next,t,n,r)};if(i)return{..._d(t,n,i.moduleReference,i.mode,i.packageName||i.moduleReference),next:UV(e.next,t,n,r)};const o=UV(e.next,t,n,r);return o===e.next?e:{...e,next:o}}function UV(e,t,n,r){return A(e,(e=>qV(e,t,n,r)))}function VV(e,t,n){if(!e.length)return l;let r;return e.map((e=>{const r=WV(e,t,n,i);r.reportsUnnecessary=e.reportsUnnecessary,r.reportsDeprecated=e.reportDeprecated,r.source=e.source,r.skippedOn=e.skippedOn;const{relatedInformation:o}=e;return r.relatedInformation=o?o.length?o.map((e=>WV(e,t,n,i))):[]:void 0,r}));function i(e){return r??(r=Do(Bo(Eq(n.getCompilerOptions()),n.getCurrentDirectory()))),qo(e,r,n.getCanonicalFileName)}}function WV(e,t,n,r){const{file:i}=e,o=!1!==i?n.getSourceFileByPath(i?r(i):t):void 0;return{...e,file:o,messageText:Ze(e.messageText)?e.messageText:qV(e.messageText,o,n,(e=>e.info))}}function $V(e,t){un.assert(!t||!e.affectedFiles||e.affectedFiles[e.affectedFilesIndex-1]!==t||!e.semanticDiagnosticsPerFile.has(t.resolvedPath))}function HV(e,t,n){for(var r;;){const{affectedFiles:i}=e;if(i){const o=e.seenAffectedFiles;let a=e.affectedFilesIndex;for(;a{const i=n?55&t:7&t;i?e.affectedFilesPendingEmit.set(r,i):e.affectedFilesPendingEmit.delete(r)})),e.programEmitPending)){const t=n?55&e.programEmitPending:7&e.programEmitPending;e.programEmitPending=t||void 0}}function GV(e,t,n,r){let i=BV(e,t);return n&&(i&=56),r&&(i&=8),i}function XV(e){return e?8:56}function QV(e){if(!e.cleanedDiagnosticsOfLibFiles){e.cleanedDiagnosticsOfLibFiles=!0;const t=e.program.getCompilerOptions();d(e.program.getSourceFiles(),(n=>e.program.isSourceFileDefaultLibrary(n)&&!lT(n,t,e.program)&&eW(e,n.resolvedPath)))}}function YV(e,t,n,r){if(eW(e,t.resolvedPath),e.allFilesExcludingDefaultLibraryFile===e.affectedFiles)return QV(e),void OV.updateShapeSignature(e,e.program,t,n,r);e.compilerOptions.assumeChangesOnlyAffectDirectDependencies||function(e,t,n,r){var i,o;if(!e.referencedMap||!e.changedFilesSet.has(t.resolvedPath))return;if(!tW(e,t.resolvedPath))return;if(xk(e.compilerOptions)){const i=new Map;i.set(t.resolvedPath,!0);const o=OV.getReferencedByPaths(e,t.resolvedPath);for(;o.length>0;){const t=o.pop();if(!i.has(t)){if(i.set(t,!0),nW(e,t,!1,n,r))return;if(ZV(e,t,!1,n,r),tW(e,t)){const n=e.program.getSourceFileByPath(t);o.push(...OV.getReferencedByPaths(e,n.resolvedPath))}}}}const a=new Set,s=!!(null==(i=t.symbol)?void 0:i.exports)&&!!td(t.symbol.exports,(n=>{if(128&n.flags)return!0;const r=ix(n,e.program.getTypeChecker());return r!==n&&!!(128&r.flags)&&$(r.declarations,(e=>hd(e)===t))}));null==(o=e.referencedMap.getKeys(t.resolvedPath))||o.forEach((t=>{if(nW(e,t,s,n,r))return!0;const i=e.referencedMap.getKeys(t);return i&&nd(i,(t=>rW(e,t,s,a,n,r)))}))}(e,t,n,r)}function ZV(e,t,n,r,i){if(eW(e,t),!e.changedFilesSet.has(t)){const o=e.program.getSourceFileByPath(t);o&&(OV.updateShapeSignature(e,e.program,o,r,i,!0),n?mW(e,t,MV(e.compilerOptions)):Nk(e.compilerOptions)&&mW(e,t,e.compilerOptions.declarationMap?56:24))}}function eW(e,t){return!e.semanticDiagnosticsFromOldState||(e.semanticDiagnosticsFromOldState.delete(t),e.semanticDiagnosticsPerFile.delete(t),!e.semanticDiagnosticsFromOldState.size)}function tW(e,t){const n=un.checkDefined(e.oldSignatures).get(t)||void 0;return un.checkDefined(e.fileInfos.get(t)).signature!==n}function nW(e,t,n,r,i){var o;return!!(null==(o=e.fileInfos.get(t))?void 0:o.affectsGlobalScope)&&(OV.getAllFilesExcludingDefaultLibraryFile(e,e.program,void 0).forEach((t=>ZV(e,t.resolvedPath,n,r,i))),QV(e),!0)}function rW(e,t,n,r,i,o){var a;if(q(r,t)){if(nW(e,t,n,i,o))return!0;ZV(e,t,n,i,o),null==(a=e.referencedMap.getKeys(t))||a.forEach((t=>rW(e,t,n,r,i,o)))}}function iW(e,t,n,r){return e.compilerOptions.noCheck?l:K(function(e,t,n,r){r??(r=e.semanticDiagnosticsPerFile);const i=t.resolvedPath,o=r.get(i);if(o)return NV(o,e.compilerOptions);const a=e.program.getBindAndCheckDiagnostics(t,n);return r.set(i,a),e.buildInfoEmitPending=!0,NV(a,e.compilerOptions)}(e,t,n,r),e.program.getProgramDiagnostics(t))}function oW(e){var t;return!!(null==(t=e.options)?void 0:t.outFile)}function aW(e){return!!e.fileNames}function sW(e){void 0===e.hasErrors&&(Fk(e.compilerOptions)?e.hasErrors=!$(e.program.getSourceFiles(),(t=>{var n,r;const i=e.semanticDiagnosticsPerFile.get(t.resolvedPath);return void 0===i||!!i.length||!!(null==(r=null==(n=e.emitDiagnosticsPerFile)?void 0:n.get(t.resolvedPath))?void 0:r.length)}))&&(cW(e)||$(e.program.getSourceFiles(),(t=>!!e.program.getProgramDiagnostics(t).length))):e.hasErrors=$(e.program.getSourceFiles(),(t=>{var n,r;const i=e.semanticDiagnosticsPerFile.get(t.resolvedPath);return!!(null==i?void 0:i.length)||!!(null==(r=null==(n=e.emitDiagnosticsPerFile)?void 0:n.get(t.resolvedPath))?void 0:r.length)}))||cW(e))}function cW(e){return!!(e.program.getConfigFileParsingDiagnostics().length||e.program.getSyntacticDiagnostics().length||e.program.getOptionsDiagnostics().length||e.program.getGlobalDiagnostics().length)}function lW(e){return sW(e),e.buildInfoEmitPending??(e.buildInfoEmitPending=!!e.hasErrorsFromOldState!=!!e.hasErrors)}var _W=(e=>(e[e.SemanticDiagnosticsBuilderProgram=0]="SemanticDiagnosticsBuilderProgram",e[e.EmitAndSemanticDiagnosticsBuilderProgram=1]="EmitAndSemanticDiagnosticsBuilderProgram",e))(_W||{});function uW(e,t,n,r,i,o){let a,s,c;return void 0===e?(un.assert(void 0===t),a=n,c=r,un.assert(!!c),s=c.getProgram()):Qe(e)?(c=r,s=bV({rootNames:e,options:t,host:n,oldProgram:c&&c.getProgramOrUndefined(),configFileParsingDiagnostics:i,projectReferences:o}),a=n):(s=e,a=t,c=n,i=r),{host:a,newProgram:s,oldProgram:c,configFileParsingDiagnostics:i||l}}function dW(e,t){return void 0!==(null==t?void 0:t.sourceMapUrlPos)?e.substring(0,t.sourceMapUrlPos):e}function pW(e,t,n,r,i){var o;let a;return n=dW(n,i),(null==(o=null==i?void 0:i.diagnostics)?void 0:o.length)&&(n+=i.diagnostics.map((n=>`${function(n){return n.file.resolvedPath===t.resolvedPath?`(${n.start},${n.length})`:(void 0===a&&(a=Do(t.resolvedPath)),`${Wo(na(a,n.file.resolvedPath,e.getCanonicalFileName))}(${n.start},${n.length})`)}(n)}${si[n.category]}${n.code}: ${s(n.messageText)}`)).join("\n")),(r.createHash??Ri)(n);function s(e){return Ze(e)?e:void 0===e?"":e.next?e.messageText+e.next.map(s).join("\n"):e.messageText}}function fW(e,{newProgram:t,host:n,oldProgram:r,configFileParsingDiagnostics:i}){let o=r&&r.state;if(o&&t===o.program&&i===t.getConfigFileParsingDiagnostics())return t=void 0,o=void 0,r;const a=function(e,t){var n,r;const i=OV.create(e,t,!1);i.program=e;const o=e.getCompilerOptions();i.compilerOptions=o;const a=o.outFile;i.semanticDiagnosticsPerFile=new Map,a&&o.composite&&(null==t?void 0:t.outSignature)&&a===t.compilerOptions.outFile&&(i.outSignature=t.outSignature&&JV(o,t.compilerOptions,t.outSignature)),i.changedFilesSet=new Set,i.latestChangedDtsFile=o.composite?null==t?void 0:t.latestChangedDtsFile:void 0,i.checkPending=!!i.compilerOptions.noCheck||void 0;const s=OV.canReuseOldState(i.referencedMap,t),c=s?t.compilerOptions:void 0;let l=s&&!zk(o,c);const _=o.composite&&(null==t?void 0:t.emitSignatures)&&!a&&!Uk(o,t.compilerOptions);let u=!0;s?(null==(n=t.changedFilesSet)||n.forEach((e=>i.changedFilesSet.add(e))),!a&&(null==(r=t.affectedFilesPendingEmit)?void 0:r.size)&&(i.affectedFilesPendingEmit=new Map(t.affectedFilesPendingEmit),i.seenAffectedFiles=new Set),i.programEmitPending=t.programEmitPending,a&&i.changedFilesSet.size&&(l=!1,u=!1),i.hasErrorsFromOldState=t.hasErrors):i.buildInfoEmitPending=Fk(o);const d=i.referencedMap,p=s?t.referencedMap:void 0,f=l&&!o.skipLibCheck==!c.skipLibCheck,m=f&&!o.skipDefaultLibCheck==!c.skipDefaultLibCheck;if(i.fileInfos.forEach(((n,r)=>{var a;let c,h;if(!s||!(c=t.fileInfos.get(r))||c.version!==n.version||c.impliedFormat!==n.impliedFormat||(y=h=d&&d.getValues(r))!==(v=p&&p.getValues(r))&&(void 0===y||void 0===v||y.size!==v.size||nd(y,(e=>!v.has(e))))||h&&nd(h,(e=>!i.fileInfos.has(e)&&t.fileInfos.has(e))))g(r);else{const n=e.getSourceFileByPath(r),o=u?null==(a=t.emitDiagnosticsPerFile)?void 0:a.get(r):void 0;if(o&&(i.emitDiagnosticsPerFile??(i.emitDiagnosticsPerFile=new Map)).set(r,t.hasReusableDiagnostic?VV(o,r,e):zV(o,e)),l){if(n.isDeclarationFile&&!f)return;if(n.hasNoDefaultLib&&!m)return;const o=t.semanticDiagnosticsPerFile.get(r);o&&(i.semanticDiagnosticsPerFile.set(r,t.hasReusableDiagnostic?VV(o,r,e):zV(o,e)),(i.semanticDiagnosticsFromOldState??(i.semanticDiagnosticsFromOldState=new Set)).add(r))}}var y,v;if(_){const e=t.emitSignatures.get(r);e&&(i.emitSignatures??(i.emitSignatures=new Map)).set(r,JV(o,t.compilerOptions,e))}})),s&&td(t.fileInfos,((e,t)=>!(i.fileInfos.has(t)||!e.affectsGlobalScope&&(i.buildInfoEmitPending=!0,!a)))))OV.getAllFilesExcludingDefaultLibraryFile(i,e,void 0).forEach((e=>g(e.resolvedPath)));else if(c){const t=qk(o,c)?MV(o):BV(o,c);0!==t&&(a?i.changedFilesSet.size||(i.programEmitPending=i.programEmitPending?i.programEmitPending|t:t):(e.getSourceFiles().forEach((e=>{i.changedFilesSet.has(e.resolvedPath)||mW(i,e.resolvedPath,t)})),un.assert(!i.seenAffectedFiles||!i.seenAffectedFiles.size),i.seenAffectedFiles=i.seenAffectedFiles||new Set),i.buildInfoEmitPending=!0)}return s&&i.semanticDiagnosticsPerFile.size!==i.fileInfos.size&&t.checkPending!==i.checkPending&&(i.buildInfoEmitPending=!0),i;function g(e){i.changedFilesSet.add(e),a&&(l=!1,u=!1,i.semanticDiagnosticsFromOldState=void 0,i.semanticDiagnosticsPerFile.clear(),i.emitDiagnosticsPerFile=void 0),i.buildInfoEmitPending=!0,i.programEmitPending=void 0}}(t,o);t.getBuildInfo=()=>function(e){var t,n;const r=e.program.getCurrentDirectory(),i=Do(Bo(Eq(e.compilerOptions),r)),o=e.latestChangedDtsFile?b(e.latestChangedDtsFile):void 0,a=[],c=new Map,_=new Set(e.program.getRootFileNames().map((t=>qo(t,r,e.program.getCanonicalFileName))));if(sW(e),!Fk(e.compilerOptions))return{root:Oe(_,(e=>x(e))),errors:!!e.hasErrors||void 0,checkPending:e.checkPending,version:s};const u=[];if(e.compilerOptions.outFile){const t=Oe(e.fileInfos.entries(),(([e,t])=>(T(e,k(e)),t.impliedFormat?{version:t.version,impliedFormat:t.impliedFormat,signature:void 0,affectsGlobalScope:void 0}:t.version)));return{fileNames:a,fileInfos:t,root:u,resolvedRoot:C(),options:w(e.compilerOptions),semanticDiagnosticsPerFile:e.changedFilesSet.size?void 0:D(),emitDiagnosticsPerFile:F(),changeFileSet:O(),outSignature:e.outSignature,latestChangedDtsFile:o,pendingEmit:e.programEmitPending?e.programEmitPending!==MV(e.compilerOptions)&&e.programEmitPending:void 0,errors:!!e.hasErrors||void 0,checkPending:e.checkPending,version:s}}let p,f,m;const g=Oe(e.fileInfos.entries(),(([t,n])=>{var r,i;const o=k(t);T(t,o),un.assert(a[o-1]===x(t));const s=null==(r=e.oldSignatures)?void 0:r.get(t),c=void 0!==s?s||void 0:n.signature;if(e.compilerOptions.composite){const n=e.program.getSourceFileByPath(t);if(!Yp(n)&&Gy(n,e.program)){const n=null==(i=e.emitSignatures)?void 0:i.get(t);n!==c&&(m=ie(m,void 0===n?o:[o,Ze(n)||n[0]!==c?n:l]))}}return n.version===c?n.affectsGlobalScope||n.impliedFormat?{version:n.version,signature:void 0,affectsGlobalScope:n.affectsGlobalScope,impliedFormat:n.impliedFormat}:n.version:void 0!==c?void 0===s?n:{version:n.version,signature:c,affectsGlobalScope:n.affectsGlobalScope,impliedFormat:n.impliedFormat}:{version:n.version,signature:!1,affectsGlobalScope:n.affectsGlobalScope,impliedFormat:n.impliedFormat}}));let h;(null==(t=e.referencedMap)?void 0:t.size())&&(h=Oe(e.referencedMap.keys()).sort(Ct).map((t=>[k(t),S(e.referencedMap.getValues(t))])));const y=D();let v;if(null==(n=e.affectedFilesPendingEmit)?void 0:n.size){const t=MV(e.compilerOptions),n=new Set;for(const r of Oe(e.affectedFilesPendingEmit.keys()).sort(Ct))if(q(n,r)){const n=e.program.getSourceFileByPath(r);if(!n||!Gy(n,e.program))continue;const i=k(r),o=e.affectedFilesPendingEmit.get(r);v=ie(v,o===t?i:24===o?[i]:[i,o])}}return{fileNames:a,fileIdsList:p,fileInfos:g,root:u,resolvedRoot:C(),options:w(e.compilerOptions),referencedMap:h,semanticDiagnosticsPerFile:y,emitDiagnosticsPerFile:F(),changeFileSet:O(),affectedFilesPendingEmit:v,emitSignatures:m,latestChangedDtsFile:o,errors:!!e.hasErrors||void 0,checkPending:e.checkPending,version:s};function b(e){return x(Bo(e,r))}function x(t){return Wo(na(i,t,e.program.getCanonicalFileName))}function k(e){let t=c.get(e);return void 0===t&&(a.push(x(e)),c.set(e,t=a.length)),t}function S(e){const t=Oe(e.keys(),k).sort(vt),n=t.join();let r=null==f?void 0:f.get(n);return void 0===r&&(p=ie(p,t),(f??(f=new Map)).set(n,r=p.length)),r}function T(t,n){const r=e.program.getSourceFile(t);if(!e.program.getFileIncludeReasons().get(r.path).some((e=>0===e.kind)))return;if(!u.length)return u.push(n);const i=u[u.length-1],o=Qe(i);if(o&&i[1]===n-1)return i[1]=n;if(o||1===u.length||i!==n-1)return u.push(n);const a=u[u.length-2];return et(a)&&a===i-1?(u[u.length-2]=[a,n],u.length=u.length-1):u.push(n)}function C(){let t;return _.forEach((n=>{const r=e.program.getSourceFileByPath(n);r&&n!==r.resolvedPath&&(t=ie(t,[k(r.resolvedPath),k(n)]))})),t}function w(e){let t;const{optionsNameMap:n}=PO();for(const r of Ee(e).sort(Ct)){const i=n.get(r.toLowerCase());(null==i?void 0:i.affectsBuildInfo)&&((t||(t={}))[r]=N(i,e[r]))}return t}function N(e,t){if(e)if(un.assert("listOrElement"!==e.type),"list"===e.type){const n=t;if(e.element.isFilePath&&n.length)return n.map(b)}else if(e.isFilePath)return b(t);return t}function D(){let t;return e.fileInfos.forEach(((n,r)=>{const i=e.semanticDiagnosticsPerFile.get(r);i?i.length&&(t=ie(t,[k(r),E(i,r)])):e.changedFilesSet.has(r)||(t=ie(t,k(r)))})),t}function F(){var t;let n;if(!(null==(t=e.emitDiagnosticsPerFile)?void 0:t.size))return n;for(const t of Oe(e.emitDiagnosticsPerFile.keys()).sort(Ct)){const r=e.emitDiagnosticsPerFile.get(t);n=ie(n,[k(t),E(r,t)])}return n}function E(e,t){return un.assert(!!e.length),e.map((e=>{const n=P(e,t);n.reportsUnnecessary=e.reportsUnnecessary,n.reportDeprecated=e.reportsDeprecated,n.source=e.source,n.skippedOn=e.skippedOn;const{relatedInformation:r}=e;return n.relatedInformation=r?r.length?r.map((e=>P(e,t))):[]:void 0,n}))}function P(e,t){const{file:n}=e;return{...e,file:!!n&&(n.resolvedPath===t?void 0:x(n.resolvedPath)),messageText:Ze(e.messageText)?e.messageText:A(e.messageText)}}function A(e){if(e.repopulateInfo)return{info:e.repopulateInfo(),next:I(e.next)};const t=I(e.next);return t===e.next?e:{...e,next:t}}function I(e){return e&&d(e,((t,n)=>{const r=A(t);if(t===r)return;const i=n>0?e.slice(0,n-1):[];i.push(r);for(let t=n+1;t!!a.hasChangedEmitSignature,c.getAllDependencies=e=>OV.getAllDependencies(a,un.checkDefined(a.program),e),c.getSemanticDiagnostics=function(e,t){if(un.assert(RV(a)),$V(a,e),e)return iW(a,e,t);for(;;){const e=g(t);if(!e)break;if(e.affected===a.program)return e.result}let n;for(const e of a.program.getSourceFiles())n=se(n,iW(a,e,t));return a.checkPending&&!a.compilerOptions.noCheck&&(a.checkPending=void 0,a.buildInfoEmitPending=!0),n||l},c.getDeclarationDiagnostics=function(t,n){var r;if(un.assert(RV(a)),1===e){let e,i;for($V(a,t);e=_(void 0,n,void 0,void 0,!0);)t||(i=se(i,e.result.diagnostics));return(t?null==(r=a.emitDiagnosticsPerFile)?void 0:r.get(t.resolvedPath):i)||l}{const e=a.program.getDeclarationDiagnostics(t,n);return m(t,void 0,!0,e),e}},c.emit=function(t,n,r,i,o){un.assert(RV(a)),1===e&&$V(a,t);const s=wV(c,t,n,r);if(s)return s;if(!t){if(1===e){let e,t,a=[],s=!1,c=[];for(;t=p(n,r,i,o);)s=s||t.result.emitSkipped,e=se(e,t.result.diagnostics),c=se(c,t.result.emittedFiles),a=se(a,t.result.sourceMaps);return{emitSkipped:s,diagnostics:e||l,emittedFiles:c,sourceMaps:a}}KV(a,i,!1)}const _=a.program.emit(t,f(n,o),r,i,o);return m(t,i,!1,_.diagnostics),_},c.releaseProgram=()=>function(e){OV.releaseCache(e),e.program=void 0}(a),0===e?c.getSemanticDiagnosticsOfNextAffectedFile=g:1===e?(c.getSemanticDiagnosticsOfNextAffectedFile=g,c.emitNextAffectedFile=p,c.emitBuildInfo=function(e,t){if(un.assert(RV(a)),lW(a)){const r=a.program.emitBuildInfo(e||We(n,n.writeFile),t);return a.buildInfoEmitPending=!1,r}return CV}):ut(),c;function _(e,t,r,i,o){var s,c,l,_;un.assert(RV(a));let d=HV(a,t,n);const p=MV(a.compilerOptions);let m,g=o?8:r?56&p:p;if(!d){if(a.compilerOptions.outFile){if(a.programEmitPending&&(g=GV(a.programEmitPending,a.seenProgramEmit,r,o),g&&(d=a.program)),!d&&(null==(s=a.emitDiagnosticsPerFile)?void 0:s.size)){const e=a.seenProgramEmit||0;if(!(e&XV(o))){a.seenProgramEmit=XV(o)|e;const t=[];return a.emitDiagnosticsPerFile.forEach((e=>se(t,e))),{result:{emitSkipped:!0,diagnostics:t},affected:a.program}}}}else{const e=function(e,t,n){var r;if(null==(r=e.affectedFilesPendingEmit)?void 0:r.size)return td(e.affectedFilesPendingEmit,((r,i)=>{var o;const a=e.program.getSourceFileByPath(i);if(!a||!Gy(a,e.program))return void e.affectedFilesPendingEmit.delete(i);const s=GV(r,null==(o=e.seenEmittedFiles)?void 0:o.get(a.resolvedPath),t,n);return s?{affectedFile:a,emitKind:s}:void 0}))}(a,r,o);if(e)({affectedFile:d,emitKind:g}=e);else{const e=function(e,t){var n;if(null==(n=e.emitDiagnosticsPerFile)?void 0:n.size)return td(e.emitDiagnosticsPerFile,((n,r)=>{var i;const o=e.program.getSourceFileByPath(r);if(!o||!Gy(o,e.program))return void e.emitDiagnosticsPerFile.delete(r);const a=(null==(i=e.seenEmittedFiles)?void 0:i.get(o.resolvedPath))||0;return a&XV(t)?void 0:{affectedFile:o,diagnostics:n,seenKind:a}}))}(a,o);if(e)return(a.seenEmittedFiles??(a.seenEmittedFiles=new Map)).set(e.affectedFile.resolvedPath,e.seenKind|XV(o)),{result:{emitSkipped:!0,diagnostics:e.diagnostics},affected:e.affectedFile}}}if(!d){if(o||!lW(a))return;const r=a.program,i=r.emitBuildInfo(e||We(n,n.writeFile),t);return a.buildInfoEmitPending=!1,{result:i,affected:r}}}7&g&&(m=0),56&g&&(m=void 0===m?1:void 0);const h=o?{emitSkipped:!0,diagnostics:a.program.getDeclarationDiagnostics(d===a.program?void 0:d,t)}:a.program.emit(d===a.program?void 0:d,f(e,i),t,m,i,void 0,!0);if(d!==a.program){const e=d;a.seenAffectedFiles.add(e.resolvedPath),void 0!==a.affectedFilesIndex&&a.affectedFilesIndex++,a.buildInfoEmitPending=!0;const t=(null==(c=a.seenEmittedFiles)?void 0:c.get(e.resolvedPath))||0;(a.seenEmittedFiles??(a.seenEmittedFiles=new Map)).set(e.resolvedPath,g|t);const n=BV((null==(l=a.affectedFilesPendingEmit)?void 0:l.get(e.resolvedPath))||p,g|t);n?(a.affectedFilesPendingEmit??(a.affectedFilesPendingEmit=new Map)).set(e.resolvedPath,n):null==(_=a.affectedFilesPendingEmit)||_.delete(e.resolvedPath),h.diagnostics.length&&(a.emitDiagnosticsPerFile??(a.emitDiagnosticsPerFile=new Map)).set(e.resolvedPath,h.diagnostics)}else a.changedFilesSet.clear(),a.programEmitPending=a.changedFilesSet.size?BV(p,g):a.programEmitPending?BV(a.programEmitPending,g):void 0,a.seenProgramEmit=g|(a.seenProgramEmit||0),u(h.diagnostics),a.buildInfoEmitPending=!0;return{result:h,affected:d}}function u(e){let t;e.forEach((e=>{if(!e.file)return;let n=null==t?void 0:t.get(e.file.resolvedPath);n||(t??(t=new Map)).set(e.file.resolvedPath,n=[]),n.push(e)})),t&&(a.emitDiagnosticsPerFile=t)}function p(e,t,n,r){return _(e,t,n,r,!1)}function f(e,t){return un.assert(RV(a)),Nk(a.compilerOptions)?(r,i,o,s,c,l)=>{var _,u,d;if($I(r))if(a.compilerOptions.outFile){if(a.compilerOptions.composite){const e=p(a.outSignature,void 0);if(!e)return l.skippedDtsWrite=!0;a.outSignature=e}}else{let e;if(un.assert(1===(null==c?void 0:c.length)),!t){const t=c[0],r=a.fileInfos.get(t.resolvedPath);if(r.signature===t.version){const o=pW(a.program,t,i,n,l);(null==(_=null==l?void 0:l.diagnostics)?void 0:_.length)||(e=o),o!==t.version&&(n.storeSignatureInfo&&(a.signatureInfo??(a.signatureInfo=new Map)).set(t.resolvedPath,1),a.affectedFiles?(void 0===(null==(u=a.oldSignatures)?void 0:u.get(t.resolvedPath))&&(a.oldSignatures??(a.oldSignatures=new Map)).set(t.resolvedPath,r.signature||!1),r.signature=o):r.signature=o)}}if(a.compilerOptions.composite){const t=c[0].resolvedPath;if(e=p(null==(d=a.emitSignatures)?void 0:d.get(t),e),!e)return l.skippedDtsWrite=!0;(a.emitSignatures??(a.emitSignatures=new Map)).set(t,e)}}function p(e,t){const o=!e||Ze(e)?e:e[0];if(t??(t=function(e,t,n){return(t.createHash??Ri)(dW(e,n))}(i,n,l)),t===o){if(e===o)return;l?l.differsOnlyInMap=!0:l={differsOnlyInMap:!0}}else a.hasChangedEmitSignature=!0,a.latestChangedDtsFile=r;return t}e?e(r,i,o,s,c,l):n.writeFile?n.writeFile(r,i,o,s,c,l):a.program.writeFile(r,i,o,s,c,l)}:e||We(n,n.writeFile)}function m(t,n,r,i){t||1===e||(KV(a,n,r),u(i))}function g(e,t){for(un.assert(RV(a));;){const r=HV(a,e,n);let i;if(!r)return void(a.checkPending&&!a.compilerOptions.noCheck&&(a.checkPending=void 0,a.buildInfoEmitPending=!0));if(r!==a.program){const n=r;if(t&&t(n)||(i=iW(a,n,e)),a.seenAffectedFiles.add(n.resolvedPath),a.affectedFilesIndex++,a.buildInfoEmitPending=!0,!i)continue}else{let t;const n=new Map;a.program.getSourceFiles().forEach((r=>t=se(t,iW(a,r,e,n)))),a.semanticDiagnosticsPerFile=n,i=t||l,a.changedFilesSet.clear(),a.programEmitPending=MV(a.compilerOptions),a.compilerOptions.noCheck||(a.checkPending=void 0),a.buildInfoEmitPending=!0}return{result:i,affected:r}}}}function mW(e,t,n){var r,i;const o=(null==(r=e.affectedFilesPendingEmit)?void 0:r.get(t))||0;(e.affectedFilesPendingEmit??(e.affectedFilesPendingEmit=new Map)).set(t,o|n),null==(i=e.emitDiagnosticsPerFile)||i.delete(t)}function gW(e){return Ze(e)?{version:e,signature:e,affectsGlobalScope:void 0,impliedFormat:void 0}:Ze(e.signature)?e:{version:e.version,signature:!1===e.signature?void 0:e.version,affectsGlobalScope:e.affectsGlobalScope,impliedFormat:e.impliedFormat}}function hW(e,t){return et(e)?t:e[1]||24}function yW(e,t){return e||MV(t||{})}function vW(e,t,n){var r,i,o,a;const s=Do(Bo(t,n.getCurrentDirectory())),c=Wt(n.useCaseSensitiveFileNames());let _;const u=null==(r=e.fileNames)?void 0:r.map((function(e){return qo(e,s,c)}));let d;const p=e.latestChangedDtsFile?g(e.latestChangedDtsFile):void 0,f=new Map,m=new Set(E(e.changeFileSet,h));if(oW(e))e.fileInfos.forEach(((e,t)=>{const n=h(t+1);f.set(n,Ze(e)?{version:e,signature:void 0,affectsGlobalScope:void 0,impliedFormat:void 0}:e)})),_={fileInfos:f,compilerOptions:e.options?OL(e.options,g):{},semanticDiagnosticsPerFile:y(e.semanticDiagnosticsPerFile),emitDiagnosticsPerFile:v(e.emitDiagnosticsPerFile),hasReusableDiagnostic:!0,changedFilesSet:m,latestChangedDtsFile:p,outSignature:e.outSignature,programEmitPending:void 0===e.pendingEmit?void 0:yW(e.pendingEmit,e.options),hasErrors:e.errors,checkPending:e.checkPending};else{d=null==(i=e.fileIdsList)?void 0:i.map((e=>new Set(e.map(h))));const t=(null==(o=e.options)?void 0:o.composite)&&!e.options.outFile?new Map:void 0;e.fileInfos.forEach(((e,n)=>{const r=h(n+1),i=gW(e);f.set(r,i),t&&i.signature&&t.set(r,i.signature)})),null==(a=e.emitSignatures)||a.forEach((e=>{if(et(e))t.delete(h(e));else{const n=h(e[0]);t.set(n,Ze(e[1])||e[1].length?e[1]:[t.get(n)])}}));const n=e.affectedFilesPendingEmit?MV(e.options||{}):void 0;_={fileInfos:f,compilerOptions:e.options?OL(e.options,g):{},referencedMap:function(e,t){const n=OV.createReferencedMap(t);return n&&e?(e.forEach((([e,t])=>n.set(h(e),d[t-1]))),n):n}(e.referencedMap,e.options??{}),semanticDiagnosticsPerFile:y(e.semanticDiagnosticsPerFile),emitDiagnosticsPerFile:v(e.emitDiagnosticsPerFile),hasReusableDiagnostic:!0,changedFilesSet:m,affectedFilesPendingEmit:e.affectedFilesPendingEmit&&Re(e.affectedFilesPendingEmit,(e=>h(et(e)?e:e[0])),(e=>hW(e,n))),latestChangedDtsFile:p,emitSignatures:(null==t?void 0:t.size)?t:void 0,hasErrors:e.errors,checkPending:e.checkPending}}return{state:_,getProgram:ut,getProgramOrUndefined:at,releaseProgram:rt,getCompilerOptions:()=>_.compilerOptions,getSourceFile:ut,getSourceFiles:ut,getOptionsDiagnostics:ut,getGlobalDiagnostics:ut,getConfigFileParsingDiagnostics:ut,getSyntacticDiagnostics:ut,getDeclarationDiagnostics:ut,getSemanticDiagnostics:ut,emit:ut,getAllDependencies:ut,getCurrentDirectory:ut,emitNextAffectedFile:ut,getSemanticDiagnosticsOfNextAffectedFile:ut,emitBuildInfo:ut,close:rt,hasChangedEmitSignature:it};function g(e){return Bo(e,s)}function h(e){return u[e-1]}function y(e){const t=new Map(J(f.keys(),(e=>m.has(e)?void 0:[e,l])));return null==e||e.forEach((e=>{et(e)?t.delete(h(e)):t.set(h(e[0]),e[1])})),t}function v(e){return e&&Re(e,(e=>h(e[0])),(e=>e[1]))}}function bW(e,t,n){const r=Do(Bo(t,n.getCurrentDirectory())),i=Wt(n.useCaseSensitiveFileNames()),o=new Map;let a=0;const s=new Map,c=new Map(e.resolvedRoot);return e.fileInfos.forEach(((t,n)=>{const s=qo(e.fileNames[n],r,i),c=Ze(t)?t:t.version;if(o.set(s,c),aqo(e,i,o)))}function kW(e,t){return{state:void 0,getProgram:n,getProgramOrUndefined:()=>e.program,releaseProgram:()=>e.program=void 0,getCompilerOptions:()=>e.compilerOptions,getSourceFile:e=>n().getSourceFile(e),getSourceFiles:()=>n().getSourceFiles(),getOptionsDiagnostics:e=>n().getOptionsDiagnostics(e),getGlobalDiagnostics:e=>n().getGlobalDiagnostics(e),getConfigFileParsingDiagnostics:()=>t,getSyntacticDiagnostics:(e,t)=>n().getSyntacticDiagnostics(e,t),getDeclarationDiagnostics:(e,t)=>n().getDeclarationDiagnostics(e,t),getSemanticDiagnostics:(e,t)=>n().getSemanticDiagnostics(e,t),emit:(e,t,r,i,o)=>n().emit(e,t,r,i,o),emitBuildInfo:(e,t)=>n().emitBuildInfo(e,t),getAllDependencies:ut,getCurrentDirectory:()=>n().getCurrentDirectory(),close:rt};function n(){return un.checkDefined(e.program)}}function SW(e,t,n,r,i,o){return fW(0,uW(e,t,n,r,i,o))}function TW(e,t,n,r,i,o){return fW(1,uW(e,t,n,r,i,o))}function CW(e,t,n,r,i,o){const{newProgram:a,configFileParsingDiagnostics:s}=uW(e,t,n,r,i,o);return kW({program:a,compilerOptions:a.getCompilerOptions()},s)}function wW(e){return Rt(e,"/node_modules/.staging")?Mt(e,"/.staging"):$(Qi,(t=>e.includes(t)))?void 0:e}function NW(e,t){if(t<=1)return 1;let n=1,r=0===e[0].search(/[a-z]:/i);if(e[0]!==lo&&!r&&0===e[1].search(/[a-z]\$$/i)){if(2===t)return 2;n=2,r=!0}return r&&!e[n].match(/^users$/i)?n:e[n].match(/^workspaces$/i)?n+1:n+2}function DW(e,t){return void 0===t&&(t=e.length),!(t<=2)&&t>NW(e,t)+1}function FW(e){return DW(Ao(e))}function EW(e){return AW(Do(e))}function PW(e,t){if(t.lengthi.length+1?jW(l,c,Math.max(i.length+1,_+1),d):{dir:n,dirPath:r,nonRecursive:!0}:LW(l,c,c.length-1,_,u,i,d,s)}function LW(e,t,n,r,i,o,a,s){if(-1!==i)return jW(e,t,i+1,a);let c=!0,l=n;if(!s)for(let e=0;e=n&&r+2function(e,t,n,r,i,o,a){const s=BW(e),c=bR(n,r,i,s,t,o,a);if(!e.getGlobalTypingsCacheLocation)return c;const l=e.getGlobalTypingsCacheLocation();if(!(void 0===l||Ts(n)||c.resolvedModule&&GS(c.resolvedModule.extension))){const{resolvedModule:r,failedLookupLocations:o,affectingLocations:a,resolutionDiagnostics:_}=xM(un.checkDefined(e.globalCacheResolutionModuleName)(n),e.projectName,i,s,l,t);if(r)return c.resolvedModule=r,c.failedLookupLocations=Vj(c.failedLookupLocations,o),c.affectingLocations=Vj(c.affectingLocations,a),c.resolutionDiagnostics=Vj(c.resolutionDiagnostics,_),c}return c}(r,i,o,e,n,t,a)}}function zW(e,t,n){let r,i,o;const a=new Set,s=new Set,c=new Set,_=new Map,u=new Map;let d,p,f,g,h,y=!1,v=!1;const b=dt((()=>e.getCurrentDirectory())),x=e.getCachedDirectoryStructureHost(),k=new Map,S=mR(b(),e.getCanonicalFileName,e.getCompilationSettings()),T=new Map,C=gR(b(),e.getCanonicalFileName,e.getCompilationSettings(),S.getPackageJsonInfoCache(),S.optionsToRedirectsKey),w=new Map,N=mR(b(),e.getCanonicalFileName,hR(e.getCompilationSettings()),S.getPackageJsonInfoCache()),D=new Map,F=new Map,E=MW(t,b),P=e.toPath(E),A=Ao(P),I=DW(A),O=new Map,L=new Map,j=new Map,R=new Map;return{rootDirForResolution:t,resolvedModuleNames:k,resolvedTypeReferenceDirectives:T,resolvedLibraries:w,resolvedFileToResolution:_,resolutionsWithFailedLookups:s,resolutionsWithOnlyAffectingLocations:c,directoryWatchesOfFailedLookups:D,fileWatchesOfAffectingLocations:F,packageDirWatchers:L,dirPathToSymlinkPackageRefCount:j,watchFailedLookupLocationsOfExternalModuleResolutions:V,getModuleResolutionCache:()=>S,startRecordingFilesWithChangedResolutions:function(){r=[]},finishRecordingFilesWithChangedResolutions:function(){const e=r;return r=void 0,e},startCachingPerDirectoryResolution:function(){S.isReadonly=void 0,C.isReadonly=void 0,N.isReadonly=void 0,S.getPackageJsonInfoCache().isReadonly=void 0,S.clearAllExceptPackageJsonInfoCache(),C.clearAllExceptPackageJsonInfoCache(),N.clearAllExceptPackageJsonInfoCache(),X(),O.clear()},finishCachingPerDirectoryResolution:function(t,n){o=void 0,v=!1,X(),t!==n&&(function(t){w.forEach(((n,r)=>{var i;(null==(i=null==t?void 0:t.resolvedLibReferences)?void 0:i.has(r))||(ee(n,e.toPath(cV(e.getCompilationSettings(),b(),r)),cd),w.delete(r))}))}(t),null==t||t.getSourceFiles().forEach((e=>{var t;const n=(null==(t=e.packageJsonLocations)?void 0:t.length)??0,r=u.get(e.resolvedPath)??l;for(let t=r.length;tn)for(let e=n;e{const r=null==t?void 0:t.getSourceFileByPath(n);r&&r.resolvedPath===n||(e.forEach((e=>F.get(e).files--)),u.delete(n))}))),D.forEach(J),F.forEach(z),L.forEach(B),y=!1,S.isReadonly=!0,C.isReadonly=!0,N.isReadonly=!0,S.getPackageJsonInfoCache().isReadonly=!0,O.clear()},resolveModuleNameLiterals:function(t,r,i,o,a,s){return q({entries:t,containingFile:r,containingSourceFile:a,redirectedReference:i,options:o,reusedNames:s,perFileCache:k,loader:JW(r,i,o,e,S),getResolutionWithResolvedFileName:cd,shouldRetryResolution:e=>!e.resolvedModule||!XS(e.resolvedModule.extension),logChanges:n,deferWatchingNonRelativeResolution:!0})},resolveTypeReferenceDirectiveReferences:function(t,n,r,i,o,a){return q({entries:t,containingFile:n,containingSourceFile:o,redirectedReference:r,options:i,reusedNames:a,perFileCache:T,loader:rV(n,r,i,BW(e),C),getResolutionWithResolvedFileName:ld,shouldRetryResolution:e=>void 0===e.resolvedTypeReferenceDirective,deferWatchingNonRelativeResolution:!1})},resolveLibrary:function(t,n,r,i){const o=BW(e);let a=null==w?void 0:w.get(i);if(!a||a.isInvalidated){const s=a;a=yR(t,n,r,o,N);const c=e.toPath(n);V(t,a,c,cd,!1),w.set(i,a),s&&ee(s,c,cd)}else if(Lj(r,o)){const e=cd(a);Oj(o,(null==e?void 0:e.resolvedFileName)?e.packageId?la.Reusing_resolution_of_module_0_from_1_of_old_program_it_was_successfully_resolved_to_2_with_Package_ID_3:la.Reusing_resolution_of_module_0_from_1_of_old_program_it_was_successfully_resolved_to_2:la.Reusing_resolution_of_module_0_from_1_of_old_program_it_was_not_resolved,t,n,null==e?void 0:e.resolvedFileName,(null==e?void 0:e.packageId)&&pd(e.packageId))}return a},resolveSingleModuleNameWithoutWatching:function(t,n){var r,i;const o=e.toPath(n),a=k.get(o),s=null==a?void 0:a.get(t,void 0);if(s&&!s.isInvalidated)return s;const c=null==(r=e.beforeResolveSingleModuleNameWithoutWatching)?void 0:r.call(e,S),l=BW(e),_=bR(t,n,e.getCompilationSettings(),l,S);return null==(i=e.afterResolveSingleModuleNameWithoutWatching)||i.call(e,S,t,n,_,c),_},removeResolutionsFromProjectReferenceRedirects:function(t){if(!ko(t,".json"))return;const n=e.getCurrentProgram();if(!n)return;const r=n.getResolvedProjectReferenceByPath(t);r&&r.commandLine.fileNames.forEach((t=>ie(e.toPath(t))))},removeResolutionsOfFile:ie,hasChangedAutomaticTypeDirectiveNames:()=>y,invalidateResolutionOfFile:function(t){ie(t);const n=y;oe(_.get(t),ot)&&y&&!n&&e.onChangedAutomaticTypeDirectiveNames()},invalidateResolutionsOfFailedLookupLocations:ce,setFilesWithInvalidatedNonRelativeUnresolvedImports:function(e){un.assert(o===e||void 0===o),o=e},createHasInvalidatedResolutions:function(e,t){ce();const n=i;return i=void 0,{hasInvalidatedResolutions:t=>e(t)||v||!!(null==n?void 0:n.has(t))||M(t),hasInvalidatedLibResolutions:e=>{var n;return t(e)||!!(null==(n=null==w?void 0:w.get(e))?void 0:n.isInvalidated)}}},isFileWithInvalidatedNonRelativeUnresolvedImports:M,updateTypeRootsWatch:function(){const t=e.getCompilationSettings();if(t.types)return void de();const n=Gj(t,{getCurrentDirectory:b});n?dx(R,new Set(n),{createNewValue:pe,onDeleteValue:tx}):de()},closeTypeRootsWatch:de,clear:function(){_x(D,vU),_x(F,vU),O.clear(),L.clear(),j.clear(),a.clear(),de(),k.clear(),T.clear(),_.clear(),s.clear(),c.clear(),f=void 0,g=void 0,h=void 0,p=void 0,d=void 0,v=!1,S.clear(),C.clear(),S.update(e.getCompilationSettings()),C.update(e.getCompilationSettings()),N.clear(),u.clear(),w.clear(),y=!1},onChangesAffectModuleResolution:function(){v=!0,S.clearAllExceptPackageJsonInfoCache(),C.clearAllExceptPackageJsonInfoCache(),S.update(e.getCompilationSettings()),C.update(e.getCompilationSettings())}};function M(e){if(!o)return!1;const t=o.get(e);return!!t&&!!t.length}function B(e,t){0===e.dirPathToWatcher.size&&L.delete(t)}function J(e,t){0===e.refCount&&(D.delete(t),e.watcher.close())}function z(e,t){var n;0!==e.files||0!==e.resolutions||(null==(n=e.symlinks)?void 0:n.size)||(F.delete(t),e.watcher.close())}function q({entries:t,containingFile:n,containingSourceFile:i,redirectedReference:o,options:a,perFileCache:s,reusedNames:c,loader:l,getResolutionWithResolvedFileName:_,deferWatchingNonRelativeResolution:u,shouldRetryResolution:d,logChanges:p}){const f=e.toPath(n),m=s.get(f)||s.set(f,uR()).get(f),g=[],h=p&&M(f),y=e.getCurrentProgram(),b=y&&y.getResolvedProjectReferenceToRedirect(n),x=b?!o||o.sourceFile.path!==b.sourceFile.path:!!o,S=uR();for(const c of t){const t=l.nameAndMode.getName(c),y=l.nameAndMode.getMode(c,i,(null==o?void 0:o.commandLine.options)||a);let b=m.get(t,y);if(!S.has(t,y)&&(v||x||!b||b.isInvalidated||h&&!Ts(t)&&d(b))){const n=b;b=l.resolve(t,y),e.onDiscoveredSymlink&&qW(b)&&e.onDiscoveredSymlink(),m.set(t,y,b),b!==n&&(V(t,b,f,_,u),n&&ee(n,f,_)),p&&r&&!T(n,b)&&(r.push(f),p=!1)}else{const r=BW(e);if(Lj(a,r)&&!S.has(t,y)){const e=_(b);Oj(r,s===k?(null==e?void 0:e.resolvedFileName)?e.packageId?la.Reusing_resolution_of_module_0_from_1_of_old_program_it_was_successfully_resolved_to_2_with_Package_ID_3:la.Reusing_resolution_of_module_0_from_1_of_old_program_it_was_successfully_resolved_to_2:la.Reusing_resolution_of_module_0_from_1_of_old_program_it_was_not_resolved:(null==e?void 0:e.resolvedFileName)?e.packageId?la.Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_successfully_resolved_to_2_with_Package_ID_3:la.Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_successfully_resolved_to_2:la.Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_not_resolved,t,n,null==e?void 0:e.resolvedFileName,(null==e?void 0:e.packageId)&&pd(e.packageId))}}un.assert(void 0!==b&&!b.isInvalidated),S.set(t,y,!0),g.push(b)}return null==c||c.forEach((e=>S.set(l.nameAndMode.getName(e),l.nameAndMode.getMode(e,i,(null==o?void 0:o.commandLine.options)||a),!0))),m.size()!==S.size()&&m.forEach(((e,t,n)=>{S.has(t,n)||(ee(e,f,_),m.delete(t,n))})),g;function T(e,t){if(e===t)return!0;if(!e||!t)return!1;const n=_(e),r=_(t);return n===r||!(!n||!r)&&n.resolvedFileName===r.resolvedFileName}}function U(e){return Rt(e,"/node_modules/@types")}function V(t,n,r,i,o){if((n.files??(n.files=new Set)).add(r),1!==n.files.size)return;!o||Ts(t)?H(n):a.add(n);const s=i(n);if(s&&s.resolvedFileName){const t=e.toPath(s.resolvedFileName);let r=_.get(t);r||_.set(t,r=new Set),r.add(n)}}function W(t,n){const r=OW(t,e.toPath(t),E,P,A,I,b,e.preferNonRecursiveWatch);if(r){const{dir:e,dirPath:t,nonRecursive:i,packageDir:o,packageDirPath:a}=r;t===P?(un.assert(i),un.assert(!o),n=!0):Q(e,t,o,a,i)}return n}function H(e){var t;un.assert(!!(null==(t=e.files)?void 0:t.size));const{failedLookupLocations:n,affectingLocations:r,alternateResult:i}=e;if(!(null==n?void 0:n.length)&&!(null==r?void 0:r.length)&&!i)return;((null==n?void 0:n.length)||i)&&s.add(e);let o=!1;if(n)for(const e of n)o=W(e,o);i&&(o=W(i,o)),o&&Q(E,P,void 0,void 0,!0),function(e,t){var n;un.assert(!!(null==(n=e.files)?void 0:n.size));const{affectingLocations:r}=e;if(null==r?void 0:r.length){t&&c.add(e);for(const e of r)K(e,!0)}}(e,!(null==n?void 0:n.length)&&!i)}function K(t,n){const r=F.get(t);if(r)return void(n?r.resolutions++:r.files++);let i,o=t,a=!1;e.realpath&&(o=e.realpath(t),t!==o&&(a=!0,i=F.get(o)));const s=n?1:0,c=n?0:1;if(!a||!i){const t={watcher:IW(e.toPath(o))?e.watchAffectingFileLocation(o,((t,n)=>{null==x||x.addOrDeleteFile(t,e.toPath(o),n),G(o,S.getPackageJsonInfoCache().getInternalMap()),e.scheduleInvalidateResolutionsOfFailedLookupLocations()})):_$,resolutions:a?0:s,files:a?0:c,symlinks:void 0};F.set(o,t),a&&(i=t)}if(a){un.assert(!!i);const e={watcher:{close:()=>{var e;const n=F.get(o);!(null==(e=null==n?void 0:n.symlinks)?void 0:e.delete(t))||n.symlinks.size||n.resolutions||n.files||(F.delete(o),n.watcher.close())}},resolutions:s,files:c,symlinks:void 0};F.set(t,e),(i.symlinks??(i.symlinks=new Set)).add(t)}}function G(t,n){var r;const i=F.get(t);(null==i?void 0:i.resolutions)&&(p??(p=new Set)).add(t),(null==i?void 0:i.files)&&(d??(d=new Set)).add(t),null==(r=null==i?void 0:i.symlinks)||r.forEach((e=>G(e,n))),null==n||n.delete(e.toPath(t))}function X(){a.forEach(H),a.clear()}function Q(t,n,r,i,o){i&&e.realpath?function(t,n,r,i,o){un.assert(!o);let a=O.get(i),s=L.get(i);if(void 0===a){const t=e.realpath(r);a=t!==r&&e.toPath(t)!==i,O.set(i,a),s?s.isSymlink!==a&&(s.dirPathToWatcher.forEach((e=>{te(s.isSymlink?i:n),e.watcher=l()})),s.isSymlink=a):L.set(i,s={dirPathToWatcher:new Map,isSymlink:a})}else un.assertIsDefined(s),un.assert(a===s.isSymlink);const c=s.dirPathToWatcher.get(n);function l(){return a?Y(r,i,o):Y(t,n,o)}c?c.refCount++:(s.dirPathToWatcher.set(n,{watcher:l(),refCount:1}),a&&j.set(n,(j.get(n)??0)+1))}(t,n,r,i,o):Y(t,n,o)}function Y(e,t,n){let r=D.get(t);return r?(un.assert(!!n==!!r.nonRecursive),r.refCount++):D.set(t,r={watcher:ne(e,t,n),refCount:1,nonRecursive:n}),r}function Z(t,n){const r=OW(t,e.toPath(t),E,P,A,I,b,e.preferNonRecursiveWatch);if(r){const{dirPath:t,packageDirPath:i}=r;if(t===P)n=!0;else if(i&&e.realpath){const e=L.get(i),n=e.dirPathToWatcher.get(t);if(n.refCount--,0===n.refCount&&(te(e.isSymlink?i:t),e.dirPathToWatcher.delete(t),e.isSymlink)){const e=j.get(t)-1;0===e?j.delete(t):j.set(t,e)}}else te(t)}return n}function ee(t,n,r){if(un.checkDefined(t.files).delete(n),t.files.size)return;t.files=void 0;const i=r(t);if(i&&i.resolvedFileName){const n=e.toPath(i.resolvedFileName),r=_.get(n);(null==r?void 0:r.delete(t))&&!r.size&&_.delete(n)}const{failedLookupLocations:o,affectingLocations:a,alternateResult:l}=t;if(s.delete(t)){let e=!1;if(o)for(const t of o)e=Z(t,e);l&&(e=Z(l,e)),e&&te(P)}else(null==a?void 0:a.length)&&c.delete(t);if(a)for(const e of a)F.get(e).resolutions--}function te(e){D.get(e).refCount--}function ne(t,n,r){return e.watchDirectoryOfFailedLookupLocation(t,(t=>{const r=e.toPath(t);x&&x.addOrDeleteFileOrDirectory(t,r),ae(r,n===r)}),r?0:1)}function re(e,t,n){const r=e.get(t);r&&(r.forEach((e=>ee(e,t,n))),e.delete(t))}function ie(e){re(k,e,cd),re(T,e,ld)}function oe(e,t){if(!e)return!1;let n=!1;return e.forEach((e=>{if(!e.isInvalidated&&t(e)){e.isInvalidated=n=!0;for(const t of un.checkDefined(e.files))(i??(i=new Set)).add(t),y=y||Rt(t,sV)}})),n}function ae(t,n){if(n)(h||(h=new Set)).add(t);else{const n=wW(t);if(!n)return!1;if(t=n,e.fileIsOpen(t))return!1;const r=Do(t);if(U(t)||sa(t)||U(r)||sa(r))(f||(f=new Set)).add(t),(g||(g=new Set)).add(t);else{if(mU(e.getCurrentProgram(),t))return!1;if(ko(t,".map"))return!1;(f||(f=new Set)).add(t),(g||(g=new Set)).add(t);const n=IR(t,!0);n&&(g||(g=new Set)).add(n)}}e.scheduleInvalidateResolutionsOfFailedLookupLocations()}function se(){const e=S.getPackageJsonInfoCache().getInternalMap();e&&(f||g||h)&&e.forEach(((t,n)=>_e(n)?e.delete(n):void 0))}function ce(){var t;if(v)return d=void 0,se(),(f||g||h||p)&&oe(w,le),f=void 0,g=void 0,h=void 0,p=void 0,!0;let n=!1;return d&&(null==(t=e.getCurrentProgram())||t.getSourceFiles().forEach((e=>{$(e.packageJsonLocations,(e=>d.has(e)))&&((i??(i=new Set)).add(e.path),n=!0)})),d=void 0),f||g||h||p?(n=oe(s,le)||n,se(),f=void 0,g=void 0,h=void 0,n=oe(c,ue)||n,p=void 0,n):n}function le(t){var n;return!!ue(t)||!!(f||g||h)&&((null==(n=t.failedLookupLocations)?void 0:n.some((t=>_e(e.toPath(t)))))||!!t.alternateResult&&_e(e.toPath(t.alternateResult)))}function _e(e){return(null==f?void 0:f.has(e))||m((null==g?void 0:g.keys())||[],(t=>!!Gt(e,t)||void 0))||m((null==h?void 0:h.keys())||[],(t=>!(!(e.length>t.length&&Gt(e,t))||!ho(t)&&e[t.length]!==lo)||void 0))}function ue(e){var t;return!!p&&(null==(t=e.affectingLocations)?void 0:t.some((e=>p.has(e))))}function de(){_x(R,tx)}function pe(t){return function(t){return!!e.getCompilationSettings().typeRoots||EW(e.toPath(t))}(t)?e.watchTypeRootsDirectory(t,(n=>{const r=e.toPath(n);x&&x.addOrDeleteFileOrDirectory(n,r),y=!0,e.onChangedAutomaticTypeDirectiveNames();const i=RW(t,e.toPath(t),P,A,I,b,e.preferNonRecursiveWatch,(e=>D.has(e)||j.has(e)));i&&ae(r,i===r)}),1):_$}}function qW(e){var t,n;return!(!(null==(t=e.resolvedModule)?void 0:t.originalPath)&&!(null==(n=e.resolvedTypeReferenceDirective)?void 0:n.originalPath))}var UW=so?{getCurrentDirectory:()=>so.getCurrentDirectory(),getNewLine:()=>so.newLine,getCanonicalFileName:Wt(so.useCaseSensitiveFileNames)}:void 0;function VW(e,t){const n=e===so&&UW?UW:{getCurrentDirectory:()=>e.getCurrentDirectory(),getNewLine:()=>e.newLine,getCanonicalFileName:Wt(e.useCaseSensitiveFileNames)};if(!t)return t=>e.write(EU(t,n));const r=new Array(1);return t=>{r[0]=t,e.write(qU(r,n)+n.getNewLine()),r[0]=void 0}}function WW(e,t,n){return!(!e.clearScreen||n.preserveWatchOutput||n.extendedDiagnostics||n.diagnostics||!T($W,t.code)||(e.clearScreen(),0))}var $W=[la.Starting_compilation_in_watch_mode.code,la.File_change_detected_Starting_incremental_compilation.code];function HW(e){return e.now?e.now().toLocaleTimeString("en-US",{timeZone:"UTC"}).replace(" "," "):(new Date).toLocaleTimeString()}function KW(e,t){return t?(t,n,r)=>{WW(e,t,r);let i=`[${BU(HW(e),"")}] `;i+=`${UU(t.messageText,e.newLine)}${n+n}`,e.write(i)}:(t,n,r)=>{let i="";WW(e,t,r)||(i+=n),i+=`${HW(e)} - `,i+=`${UU(t.messageText,e.newLine)}${function(e,t){return T($W,e.code)?t+t:t}(t,n)}`,e.write(i)}}function GW(e,t,n,r,i,o){const a=i;a.onUnRecoverableConfigFileDiagnostic=e=>b$(i,o,e);const s=QO(e,t,a,n,r);return a.onUnRecoverableConfigFileDiagnostic=void 0,s}function XW(e){return w(e,(e=>1===e.category))}function QW(e){return N(e,(e=>1===e.category)).map((e=>{if(void 0!==e.file)return`${e.file.fileName}`})).map((t=>{if(void 0===t)return;const n=b(e,(e=>void 0!==e.file&&e.file.fileName===t));if(void 0!==n){const{line:e}=Ja(n.file,n.start);return{fileName:t,line:e+1}}}))}function YW(e){return 1===e?la.Found_1_error_Watching_for_file_changes:la.Found_0_errors_Watching_for_file_changes}function ZW(e,t){const n=BU(":"+e.line,"");return yo(e.fileName)&&yo(t)?na(t,e.fileName,!1)+n:e.fileName+n}function e$(e,t,n,r){if(0===e)return"";const i=t.filter((e=>void 0!==e)),o=i.map((e=>`${e.fileName}:${e.line}`)).filter(((e,t,n)=>n.indexOf(e)===t)),a=i[0]&&ZW(i[0],r.getCurrentDirectory());let s;s=1===e?void 0!==t[0]?[la.Found_1_error_in_0,a]:[la.Found_1_error]:0===o.length?[la.Found_0_errors,e]:1===o.length?[la.Found_0_errors_in_the_same_file_starting_at_Colon_1,e,a]:[la.Found_0_errors_in_1_files,e,o.length];const c=Xx(...s),l=o.length>1?function(e,t){const n=e.filter(((e,t,n)=>t===n.findIndex((t=>(null==t?void 0:t.fileName)===(null==e?void 0:e.fileName)))));if(0===n.length)return"";const r=e=>Math.log(e)*Math.LOG10E+1,i=n.map((t=>[t,w(e,(e=>e.fileName===t.fileName))])),o=xt(i,0,(e=>e[1])),a=la.Errors_Files.message,s=a.split(" ")[0].length,c=Math.max(s,r(o)),l=Math.max(r(o)-s,0);let _="";return _+=" ".repeat(l)+a+"\n",i.forEach((e=>{const[n,r]=e,i=Math.log(r)*Math.LOG10E+1|0,o=ira(t,e.getCurrentDirectory(),e.getCanonicalFileName);for(const a of e.getSourceFiles())t(`${s$(a,o)}`),null==(n=i.get(a.path))||n.forEach((n=>t(` ${a$(e,n,o).messageText}`))),null==(r=r$(a,e.getCompilerOptionsForFile(a),o))||r.forEach((e=>t(` ${e.messageText}`)))}function r$(e,t,n){var r;let i;if(e.path!==e.resolvedPath&&(i??(i=[])).push(Yx(void 0,la.File_is_output_of_project_reference_source_0,s$(e.originalFileName,n))),e.redirectInfo&&(i??(i=[])).push(Yx(void 0,la.File_redirects_to_file_0,s$(e.redirectInfo.redirectTarget,n))),Qp(e))switch(SV(e,t)){case 99:e.packageJsonScope&&(i??(i=[])).push(Yx(void 0,la.File_is_ECMAScript_module_because_0_has_field_type_with_value_module,s$(ve(e.packageJsonLocations),n)));break;case 1:e.packageJsonScope?(i??(i=[])).push(Yx(void 0,e.packageJsonScope.contents.packageJsonContent.type?la.File_is_CommonJS_module_because_0_has_field_type_whose_value_is_not_module:la.File_is_CommonJS_module_because_0_does_not_have_field_type,s$(ve(e.packageJsonLocations),n))):(null==(r=e.packageJsonLocations)?void 0:r.length)&&(i??(i=[])).push(Yx(void 0,la.File_is_CommonJS_module_because_package_json_was_not_found))}return i}function i$(e,t){var n;const r=e.getCompilerOptions().configFile;if(!(null==(n=null==r?void 0:r.configFileSpecs)?void 0:n.validatedFilesSpec))return;const i=e.getCanonicalFileName(t),o=Do(Bo(r.fileName,e.getCurrentDirectory())),a=k(r.configFileSpecs.validatedFilesSpec,(t=>e.getCanonicalFileName(Bo(t,o))===i));return-1!==a?r.configFileSpecs.validatedFilesSpecBeforeSubstitution[a]:void 0}function o$(e,t){var n,r;const i=e.getCompilerOptions().configFile;if(!(null==(n=null==i?void 0:i.configFileSpecs)?void 0:n.validatedIncludeSpecs))return;if(i.configFileSpecs.isDefaultIncludeSpec)return!0;const o=ko(t,".json"),a=Do(Bo(i.fileName,e.getCurrentDirectory())),s=e.useCaseSensitiveFileNames(),c=k(null==(r=null==i?void 0:i.configFileSpecs)?void 0:r.validatedIncludeSpecs,(e=>{if(o&&!Rt(e,".json"))return!1;const n=_S(e,a,"files");return!!n&&fS(`(${n})$`,s).test(t)}));return-1!==c?i.configFileSpecs.validatedIncludeSpecsBeforeSubstitution[c]:void 0}function a$(e,t,n){var r,i;const o=e.getCompilerOptions();if(dV(t)){const r=fV(e,t),i=pV(r)?r.file.text.substring(r.pos,r.end):`"${r.text}"`;let o;switch(un.assert(pV(r)||3===t.kind,"Only synthetic references are imports"),t.kind){case 3:o=pV(r)?r.packageId?la.Imported_via_0_from_file_1_with_packageId_2:la.Imported_via_0_from_file_1:r.text===qu?r.packageId?la.Imported_via_0_from_file_1_with_packageId_2_to_import_importHelpers_as_specified_in_compilerOptions:la.Imported_via_0_from_file_1_to_import_importHelpers_as_specified_in_compilerOptions:r.packageId?la.Imported_via_0_from_file_1_with_packageId_2_to_import_jsx_and_jsxs_factory_functions:la.Imported_via_0_from_file_1_to_import_jsx_and_jsxs_factory_functions;break;case 4:un.assert(!r.packageId),o=la.Referenced_via_0_from_file_1;break;case 5:o=r.packageId?la.Type_library_referenced_via_0_from_file_1_with_packageId_2:la.Type_library_referenced_via_0_from_file_1;break;case 7:un.assert(!r.packageId),o=la.Library_referenced_via_0_from_file_1;break;default:un.assertNever(t)}return Yx(void 0,o,i,s$(r.file,n),r.packageId&&pd(r.packageId))}switch(t.kind){case 0:if(!(null==(r=o.configFile)?void 0:r.configFileSpecs))return Yx(void 0,la.Root_file_specified_for_compilation);const a=Bo(e.getRootFileNames()[t.index],e.getCurrentDirectory());if(i$(e,a))return Yx(void 0,la.Part_of_files_list_in_tsconfig_json);const s=o$(e,a);return Ze(s)?Yx(void 0,la.Matched_by_include_pattern_0_in_1,s,s$(o.configFile,n)):Yx(void 0,s?la.Matched_by_default_include_pattern_Asterisk_Asterisk_Slash_Asterisk:la.Root_file_specified_for_compilation);case 1:case 2:const c=2===t.kind,l=un.checkDefined(null==(i=e.getResolvedProjectReferences())?void 0:i[t.index]);return Yx(void 0,o.outFile?c?la.Output_from_referenced_project_0_included_because_1_specified:la.Source_from_referenced_project_0_included_because_1_specified:c?la.Output_from_referenced_project_0_included_because_module_is_specified_as_none:la.Source_from_referenced_project_0_included_because_module_is_specified_as_none,s$(l.sourceFile.fileName,n),o.outFile?"--outFile":"--out");case 8:return Yx(void 0,...o.types?t.packageId?[la.Entry_point_of_type_library_0_specified_in_compilerOptions_with_packageId_1,t.typeReference,pd(t.packageId)]:[la.Entry_point_of_type_library_0_specified_in_compilerOptions,t.typeReference]:t.packageId?[la.Entry_point_for_implicit_type_library_0_with_packageId_1,t.typeReference,pd(t.packageId)]:[la.Entry_point_for_implicit_type_library_0,t.typeReference]);case 6:{if(void 0!==t.index)return Yx(void 0,la.Library_0_specified_in_compilerOptions,o.lib[t.index]);const e=Bk(hk(o));return Yx(void 0,...e?[la.Default_library_for_target_0,e]:[la.Default_library])}default:un.assertNever(t)}}function s$(e,t){const n=Ze(e)?e:e.fileName;return t?t(n):n}function c$(e,t,n,r,i,o,a,s){const c=e.getCompilerOptions(),_=e.getConfigFileParsingDiagnostics().slice(),u=_.length;se(_,e.getSyntacticDiagnostics(void 0,o)),_.length===u&&(se(_,e.getOptionsDiagnostics(o)),c.listFilesOnly||(se(_,e.getGlobalDiagnostics(o)),_.length===u&&se(_,e.getSemanticDiagnostics(void 0,o)),c.noEmit&&Nk(c)&&_.length===u&&se(_,e.getDeclarationDiagnostics(void 0,o))));const p=c.listFilesOnly?{emitSkipped:!0,diagnostics:l}:e.emit(void 0,i,o,a,s);se(_,p.diagnostics);const f=Cs(_);if(f.forEach(t),n){const t=e.getCurrentDirectory();d(p.emittedFiles,(e=>{const r=Bo(e,t);n(`TSFILE: ${r}`)})),function(e,t){const n=e.getCompilerOptions();n.explainFiles?n$(t$(e)?e.getProgram():e,t):(n.listFiles||n.listFilesOnly)&&d(e.getSourceFiles(),(e=>{t(e.fileName)}))}(e,n)}return r&&r(XW(f),QW(f)),{emitResult:p,diagnostics:f}}function l$(e,t,n,r,i,o,a,s){const{emitResult:c,diagnostics:l}=c$(e,t,n,r,i,o,a,s);return c.emitSkipped&&l.length>0?1:l.length>0?2:0}var _$={close:rt},u$=()=>_$;function d$(e=so,t){return{onWatchStatusChange:t||KW(e),watchFile:We(e,e.watchFile)||u$,watchDirectory:We(e,e.watchDirectory)||u$,setTimeout:We(e,e.setTimeout)||rt,clearTimeout:We(e,e.clearTimeout)||rt,preferNonRecursiveWatch:e.preferNonRecursiveWatch}}var p$={ConfigFile:"Config file",ExtendedConfigFile:"Extended config file",SourceFile:"Source file",MissingFile:"Missing file",WildcardDirectory:"Wild card directory",FailedLookupLocations:"Failed Lookup Locations",AffectingFileLocation:"File location affecting resolution",TypeRoots:"Type roots",ConfigFileOfReferencedProject:"Config file of referened project",ExtendedConfigOfReferencedProject:"Extended config file of referenced project",WildcardDirectoryOfReferencedProject:"Wild card directory of referenced project",PackageJson:"package.json file",ClosedScriptInfo:"Closed Script info",ConfigFileForInferredRoot:"Config file for the inferred project root",NodeModules:"node_modules for closed script infos and package.jsons affecting module specifier cache",MissingSourceMapFile:"Missing source map file",NoopConfigFileForInferredRoot:"Noop Config file for the inferred project root",MissingGeneratedFile:"Missing generated file",NodeModulesForModuleSpecifierCache:"node_modules for module specifier cache invalidation",TypingInstallerLocationFile:"File location for typing installer",TypingInstallerLocationDirectory:"Directory location for typing installer"};function f$(e,t){const n=e.trace?t.extendedDiagnostics?2:t.diagnostics?1:0:0,r=0!==n?t=>e.trace(t):rt,i=hU(e,n,r);return i.writeLog=r,i}function m$(e,t,n=e){const r=e.useCaseSensitiveFileNames(),i={getSourceFile:TU(((t,n)=>n?e.readFile(t,n):i.readFile(t)),void 0),getDefaultLibLocation:We(e,e.getDefaultLibLocation),getDefaultLibFileName:t=>e.getDefaultLibFileName(t),writeFile:CU(((t,n,r)=>e.writeFile(t,n,r)),(t=>e.createDirectory(t)),(t=>e.directoryExists(t))),getCurrentDirectory:dt((()=>e.getCurrentDirectory())),useCaseSensitiveFileNames:()=>r,getCanonicalFileName:Wt(r),getNewLine:()=>Eb(t()),fileExists:t=>e.fileExists(t),readFile:t=>e.readFile(t),trace:We(e,e.trace),directoryExists:We(n,n.directoryExists),getDirectories:We(n,n.getDirectories),realpath:We(e,e.realpath),getEnvironmentVariable:We(e,e.getEnvironmentVariable)||(()=>""),createHash:We(e,e.createHash),readDirectory:We(e,e.readDirectory),storeSignatureInfo:e.storeSignatureInfo,jsDocParsingMode:e.jsDocParsingMode};return i}function g$(e,t){if(t.match(aJ)){let e=t.length,n=e;for(let r=e-1;r>=0;r--){const i=t.charCodeAt(r);switch(i){case 10:r&&13===t.charCodeAt(r-1)&&r--;case 13:break;default:if(i<127||!Ua(i)){n=r;continue}}const o=t.substring(n,e);if(o.match(sJ)){t=t.substring(0,n);break}if(!o.match(cJ))break;e=n}}return(e.createHash||Ri)(t)}function h$(e){const t=e.getSourceFile;e.getSourceFile=(...n)=>{const r=t.call(e,...n);return r&&(r.version=g$(e,r.text)),r}}function y$(e,t){const n=dt((()=>Do(Jo(e.getExecutingFilePath()))));return{useCaseSensitiveFileNames:()=>e.useCaseSensitiveFileNames,getNewLine:()=>e.newLine,getCurrentDirectory:dt((()=>e.getCurrentDirectory())),getDefaultLibLocation:n,getDefaultLibFileName:e=>jo(n(),Ns(e)),fileExists:t=>e.fileExists(t),readFile:(t,n)=>e.readFile(t,n),directoryExists:t=>e.directoryExists(t),getDirectories:t=>e.getDirectories(t),readDirectory:(t,n,r,i,o)=>e.readDirectory(t,n,r,i,o),realpath:We(e,e.realpath),getEnvironmentVariable:We(e,e.getEnvironmentVariable),trace:t=>e.write(t+e.newLine),createDirectory:t=>e.createDirectory(t),writeFile:(t,n,r)=>e.writeFile(t,n,r),createHash:We(e,e.createHash),createProgram:t||TW,storeSignatureInfo:e.storeSignatureInfo,now:We(e,e.now)}}function v$(e=so,t,n,r){const i=t=>e.write(t+e.newLine),o=y$(e,t);return Ve(o,d$(e,r)),o.afterProgramCreate=e=>{const t=e.getCompilerOptions(),r=Eb(t);c$(e,n,i,(e=>o.onWatchStatusChange(Xx(YW(e),e),r,t,e)))},o}function b$(e,t,n){t(n),e.exit(1)}function x$({configFileName:e,optionsToExtend:t,watchOptionsToExtend:n,extraFileExtensions:r,system:i,createProgram:o,reportDiagnostic:a,reportWatchStatus:s}){const c=a||VW(i),l=v$(i,o,c,s);return l.onUnRecoverableConfigFileDiagnostic=e=>b$(i,c,e),l.configFileName=e,l.optionsToExtend=t,l.watchOptionsToExtend=n,l.extraFileExtensions=r,l}function k$({rootFiles:e,options:t,watchOptions:n,projectReferences:r,system:i,createProgram:o,reportDiagnostic:a,reportWatchStatus:s}){const c=v$(i,o,a||VW(i),s);return c.rootFiles=e,c.options=t,c.watchOptions=n,c.projectReferences=r,c}function S$(e){const t=e.system||so,n=e.host||(e.host=C$(e.options,t)),r=w$(e),i=l$(r,e.reportDiagnostic||VW(t),(e=>n.trace&&n.trace(e)),e.reportErrorSummary||e.options.pretty?(e,r)=>t.write(e$(e,r,t.newLine,n)):void 0);return e.afterProgramEmitAndDiagnostics&&e.afterProgramEmitAndDiagnostics(r),i}function T$(e,t){const n=Eq(e);if(!n)return;let r;if(t.getBuildInfo)r=t.getBuildInfo(n,e.configFilePath);else{const e=t.readFile(n);if(!e)return;r=Qq(n,e)}return r&&r.version===s&&aW(r)?vW(r,n,t):void 0}function C$(e,t=so){const n=wU(e,void 0,t);return n.createHash=We(t,t.createHash),n.storeSignatureInfo=t.storeSignatureInfo,h$(n),NU(n,(e=>qo(e,n.getCurrentDirectory(),n.getCanonicalFileName))),n}function w$({rootNames:e,options:t,configFileParsingDiagnostics:n,projectReferences:r,host:i,createProgram:o}){return(o=o||TW)(e,t,i=i||C$(t),T$(t,i),n,r)}function N$(e,t,n,r,i,o,a,s){return Qe(e)?k$({rootFiles:e,options:t,watchOptions:s,projectReferences:a,system:n,createProgram:r,reportDiagnostic:i,reportWatchStatus:o}):x$({configFileName:e,optionsToExtend:t,watchOptionsToExtend:a,extraFileExtensions:s,system:n,createProgram:r,reportDiagnostic:i,reportWatchStatus:o})}function D$(e){let t,n,r,i,o,a,s,c,l=new Map([[void 0,void 0]]),_=e.extendedConfigCache,u=!1;const d=new Map;let p,f=!1;const m=e.useCaseSensitiveFileNames(),g=e.getCurrentDirectory(),{configFileName:h,optionsToExtend:y={},watchOptionsToExtend:v,extraFileExtensions:b,createProgram:x}=e;let k,S,{rootFiles:T,options:C,watchOptions:w,projectReferences:N}=e,D=!1,F=!1;const E=void 0===h?void 0:sU(e,g,m),P=E||e,A=DV(e,P);let I=G();h&&e.configFileParsingResult&&(ce(e.configFileParsingResult),I=G()),ee(la.Starting_compilation_in_watch_mode),h&&!e.configFileParsingResult&&(I=Eb(y),un.assert(!T),se(),I=G()),un.assert(C),un.assert(T);const{watchFile:O,watchDirectory:L,writeLog:j}=f$(e,C),R=Wt(m);let M;j(`Current directory: ${g} CaseSensitiveFileNames: ${m}`),h&&(M=O(h,(function(){un.assert(!!h),n=2,ie()}),2e3,w,p$.ConfigFile));const B=m$(e,(()=>C),P);h$(B);const J=B.getSourceFile;B.getSourceFile=(e,...t)=>Y(e,X(e),...t),B.getSourceFileByPath=Y,B.getNewLine=()=>I,B.fileExists=function(e){const t=X(e);return!Q(d.get(t))&&P.fileExists(e)},B.onReleaseOldSourceFile=function(e,t,n){const r=d.get(e.resolvedPath);void 0!==r&&(Q(r)?(p||(p=[])).push(e.path):r.sourceFile===e&&(r.fileWatcher&&r.fileWatcher.close(),d.delete(e.resolvedPath),n||z.removeResolutionsOfFile(e.path)))},B.onReleaseParsedCommandLine=function(e){var t;const n=X(e),r=null==s?void 0:s.get(n);r&&(s.delete(n),r.watchedDirectories&&_x(r.watchedDirectories,vU),null==(t=r.watcher)||t.close(),_U(n,c))},B.toPath=X,B.getCompilationSettings=()=>C,B.useSourceOfProjectReferenceRedirect=We(e,e.useSourceOfProjectReferenceRedirect),B.preferNonRecursiveWatch=e.preferNonRecursiveWatch,B.watchDirectoryOfFailedLookupLocation=(e,t,n)=>L(e,t,n,w,p$.FailedLookupLocations),B.watchAffectingFileLocation=(e,t)=>O(e,t,2e3,w,p$.AffectingFileLocation),B.watchTypeRootsDirectory=(e,t,n)=>L(e,t,n,w,p$.TypeRoots),B.getCachedDirectoryStructureHost=()=>E,B.scheduleInvalidateResolutionsOfFailedLookupLocations=function(){if(!e.setTimeout||!e.clearTimeout)return z.invalidateResolutionsOfFailedLookupLocations();const t=ne();j("Scheduling invalidateFailedLookup"+(t?", Cancelled earlier one":"")),a=e.setTimeout(re,250,"timerToInvalidateFailedLookupResolutions")},B.onInvalidatedResolution=ie,B.onChangedAutomaticTypeDirectiveNames=ie,B.fileIsOpen=it,B.getCurrentProgram=H,B.writeLog=j,B.getParsedCommandLine=le;const z=zW(B,h?Do(Bo(h,g)):g,!1);B.resolveModuleNameLiterals=We(e,e.resolveModuleNameLiterals),B.resolveModuleNames=We(e,e.resolveModuleNames),B.resolveModuleNameLiterals||B.resolveModuleNames||(B.resolveModuleNameLiterals=z.resolveModuleNameLiterals.bind(z)),B.resolveTypeReferenceDirectiveReferences=We(e,e.resolveTypeReferenceDirectiveReferences),B.resolveTypeReferenceDirectives=We(e,e.resolveTypeReferenceDirectives),B.resolveTypeReferenceDirectiveReferences||B.resolveTypeReferenceDirectives||(B.resolveTypeReferenceDirectiveReferences=z.resolveTypeReferenceDirectiveReferences.bind(z)),B.resolveLibrary=e.resolveLibrary?e.resolveLibrary.bind(e):z.resolveLibrary.bind(z),B.getModuleResolutionCache=e.resolveModuleNameLiterals||e.resolveModuleNames?We(e,e.getModuleResolutionCache):()=>z.getModuleResolutionCache();const q=e.resolveModuleNameLiterals||e.resolveTypeReferenceDirectiveReferences||e.resolveModuleNames||e.resolveTypeReferenceDirectives?We(e,e.hasInvalidatedResolutions)||ot:it,U=e.resolveLibrary?We(e,e.hasInvalidatedLibResolutions)||ot:it;return t=T$(C,B),K(),h?{getCurrentProgram:$,getProgram:ae,close:V,getResolutionCache:W}:{getCurrentProgram:$,getProgram:ae,updateRootFileNames:function(e){un.assert(!h,"Cannot update root file names with config file watch mode"),T=e,ie()},close:V,getResolutionCache:W};function V(){ne(),z.clear(),_x(d,(e=>{e&&e.fileWatcher&&(e.fileWatcher.close(),e.fileWatcher=void 0)})),M&&(M.close(),M=void 0),null==_||_.clear(),_=void 0,c&&(_x(c,vU),c=void 0),i&&(_x(i,vU),i=void 0),r&&(_x(r,tx),r=void 0),s&&(_x(s,(e=>{var t;null==(t=e.watcher)||t.close(),e.watcher=void 0,e.watchedDirectories&&_x(e.watchedDirectories,vU),e.watchedDirectories=void 0})),s=void 0),t=void 0}function W(){return z}function $(){return t}function H(){return t&&t.getProgramOrUndefined()}function K(){j("Synchronizing program"),un.assert(C),un.assert(T),ne();const n=$();f&&(I=G(),n&&Qu(n.getCompilerOptions(),C)&&z.onChangesAffectModuleResolution());const{hasInvalidatedResolutions:o,hasInvalidatedLibResolutions:a}=z.createHasInvalidatedResolutions(q,U),{originalReadFile:c,originalFileExists:_,originalDirectoryExists:y,originalCreateDirectory:v,originalWriteFile:b,readFileWithCache:D}=NU(B,X);return mV(H(),T,C,(e=>function(e,t){const n=d.get(e);if(!n)return;if(n.version)return n.version;const r=t(e);return void 0!==r?g$(B,r):void 0}(e,D)),(e=>B.fileExists(e)),o,a,te,le,N)?F&&(u&&ee(la.File_change_detected_Starting_incremental_compilation),t=x(void 0,void 0,B,t,S,N),F=!1):(u&&ee(la.File_change_detected_Starting_incremental_compilation),function(e,n){j("CreatingProgramWith::"),j(` roots: ${JSON.stringify(T)}`),j(` options: ${JSON.stringify(C)}`),N&&j(` projectReferences: ${JSON.stringify(N)}`);const i=f||!H();f=!1,F=!1,z.startCachingPerDirectoryResolution(),B.hasInvalidatedResolutions=e,B.hasInvalidatedLibResolutions=n,B.hasChangedAutomaticTypeDirectiveNames=te;const o=H();if(t=x(T,C,B,t,S,N),z.finishCachingPerDirectoryResolution(t.getProgram(),o),dU(t.getProgram(),r||(r=new Map),pe),i&&z.updateTypeRootsWatch(),p){for(const e of p)r.has(e)||d.delete(e);p=void 0}}(o,a)),u=!1,e.afterProgramCreate&&n!==t&&e.afterProgramCreate(t),B.readFile=c,B.fileExists=_,B.directoryExists=y,B.createDirectory=v,B.writeFile=b,null==l||l.forEach(((e,t)=>{if(t){const n=null==s?void 0:s.get(t);n&&function(e,t,n){var r,i,o,a;n.watcher||(n.watcher=O(e,((n,r)=>{de(e,t,r);const i=null==s?void 0:s.get(t);i&&(i.updateLevel=2),z.removeResolutionsFromProjectReferenceRedirects(t),ie()}),2e3,(null==(r=n.parsedCommandLine)?void 0:r.watchOptions)||w,p$.ConfigFileOfReferencedProject)),pU(n.watchedDirectories||(n.watchedDirectories=new Map),null==(i=n.parsedCommandLine)?void 0:i.wildcardDirectories,((r,i)=>{var o;return L(r,(n=>{const i=X(n);E&&E.addOrDeleteFileOrDirectory(n,i),Z(i);const o=null==s?void 0:s.get(t);(null==o?void 0:o.parsedCommandLine)&&(fU({watchedDirPath:X(r),fileOrDirectory:n,fileOrDirectoryPath:i,configFileName:e,options:o.parsedCommandLine.options,program:o.parsedCommandLine.fileNames,currentDirectory:g,useCaseSensitiveFileNames:m,writeLog:j,toPath:X})||2!==o.updateLevel&&(o.updateLevel=1,ie()))}),i,(null==(o=n.parsedCommandLine)?void 0:o.watchOptions)||w,p$.WildcardDirectoryOfReferencedProject)})),ge(t,null==(o=n.parsedCommandLine)?void 0:o.options,(null==(a=n.parsedCommandLine)?void 0:a.watchOptions)||w,p$.ExtendedConfigOfReferencedProject)}(e,t,n)}else pU(i||(i=new Map),k,me),h&&ge(X(h),C,w,p$.ExtendedConfigFile)})),l=void 0,t}function G(){return Eb(C||y)}function X(e){return qo(e,g,R)}function Q(e){return"boolean"==typeof e}function Y(e,t,n,r,i){const o=d.get(t);if(Q(o))return;const a="object"==typeof n?n.impliedNodeFormat:void 0;if(void 0===o||i||function(e){return"boolean"==typeof e.version}(o)||o.sourceFile.impliedNodeFormat!==a){const i=J(e,n,r);if(o)i?(o.sourceFile=i,o.version=i.version,o.fileWatcher||(o.fileWatcher=_e(t,e,ue,250,w,p$.SourceFile))):(o.fileWatcher&&o.fileWatcher.close(),d.set(t,!1));else if(i){const n=_e(t,e,ue,250,w,p$.SourceFile);d.set(t,{sourceFile:i,version:i.version,fileWatcher:n})}else d.set(t,!1);return i}return o.sourceFile}function Z(e){const t=d.get(e);void 0!==t&&(Q(t)?d.set(e,{version:!1}):t.version=!1)}function ee(t){e.onWatchStatusChange&&e.onWatchStatusChange(Xx(t),I,C||y)}function te(){return z.hasChangedAutomaticTypeDirectiveNames()}function ne(){return!!a&&(e.clearTimeout(a),a=void 0,!0)}function re(){a=void 0,z.invalidateResolutionsOfFailedLookupLocations()&&ie()}function ie(){e.setTimeout&&e.clearTimeout&&(o&&e.clearTimeout(o),j("Scheduling update"),o=e.setTimeout(oe,250,"timerToUpdateProgram"))}function oe(){o=void 0,u=!0,ae()}function ae(){switch(n){case 1:j("Reloading new file names and options"),un.assert(C),un.assert(h),n=0,T=vj(C.configFile.configFileSpecs,Bo(Do(h),g),C,A,b),ej(T,Bo(h,g),C.configFile.configFileSpecs,S,D)&&(F=!0),K();break;case 2:un.assert(h),j(`Reloading config file: ${h}`),n=0,E&&E.clearCache(),se(),f=!0,(l??(l=new Map)).set(void 0,void 0),K();break;default:K()}return $()}function se(){un.assert(h),ce(QO(h,y,A,_||(_=new Map),v,b))}function ce(e){T=e.fileNames,C=e.options,w=e.watchOptions,N=e.projectReferences,k=e.wildcardDirectories,S=gV(e).slice(),D=ZL(e.raw),F=!0}function le(t){const n=X(t);let r=null==s?void 0:s.get(n);if(r){if(!r.updateLevel)return r.parsedCommandLine;if(r.parsedCommandLine&&1===r.updateLevel&&!e.getParsedCommandLine){j("Reloading new file names and options"),un.assert(C);const e=vj(r.parsedCommandLine.options.configFile.configFileSpecs,Bo(Do(t),g),C,A);return r.parsedCommandLine={...r.parsedCommandLine,fileNames:e},r.updateLevel=void 0,r.parsedCommandLine}}j(`Loading config file: ${t}`);const i=e.getParsedCommandLine?e.getParsedCommandLine(t):function(e){const t=A.onUnRecoverableConfigFileDiagnostic;A.onUnRecoverableConfigFileDiagnostic=rt;const n=QO(e,void 0,A,_||(_=new Map),v);return A.onUnRecoverableConfigFileDiagnostic=t,n}(t);return r?(r.parsedCommandLine=i,r.updateLevel=void 0):(s||(s=new Map)).set(n,r={parsedCommandLine:i}),(l??(l=new Map)).set(n,t),i}function _e(e,t,n,r,i,o){return O(t,((t,r)=>n(t,r,e)),r,i,o)}function ue(e,t,n){de(e,n,t),2===t&&d.has(n)&&z.invalidateResolutionOfFile(n),Z(n),ie()}function de(e,t,n){E&&E.addOrDeleteFile(e,t,n)}function pe(e,t){return(null==s?void 0:s.has(e))?_$:_e(e,t,fe,500,w,p$.MissingFile)}function fe(e,t,n){de(e,n,t),0===t&&r.has(n)&&(r.get(n).close(),r.delete(n),Z(n),ie())}function me(e,t){return L(e,(t=>{un.assert(h),un.assert(C);const r=X(t);E&&E.addOrDeleteFileOrDirectory(t,r),Z(r),fU({watchedDirPath:X(e),fileOrDirectory:t,fileOrDirectoryPath:r,configFileName:h,extraFileExtensions:b,options:C,program:$()||T,currentDirectory:g,useCaseSensitiveFileNames:m,writeLog:j,toPath:X})||2!==n&&(n=1,ie())}),t,w,p$.WildcardDirectory)}function ge(e,t,r,i){lU(e,t,c||(c=new Map),((e,t)=>O(e,((r,i)=>{var o;de(e,t,i),_&&uU(_,t,X);const a=null==(o=c.get(t))?void 0:o.projects;(null==a?void 0:a.size)&&a.forEach((e=>{if(h&&X(h)===e)n=2;else{const t=null==s?void 0:s.get(e);t&&(t.updateLevel=2),z.removeResolutionsFromProjectReferenceRedirects(e)}ie()}))}),2e3,r,i)),X)}}var F$=(e=>(e[e.Unbuildable=0]="Unbuildable",e[e.UpToDate=1]="UpToDate",e[e.UpToDateWithUpstreamTypes=2]="UpToDateWithUpstreamTypes",e[e.OutputMissing=3]="OutputMissing",e[e.ErrorReadingFile=4]="ErrorReadingFile",e[e.OutOfDateWithSelf=5]="OutOfDateWithSelf",e[e.OutOfDateWithUpstream=6]="OutOfDateWithUpstream",e[e.OutOfDateBuildInfoWithPendingEmit=7]="OutOfDateBuildInfoWithPendingEmit",e[e.OutOfDateBuildInfoWithErrors=8]="OutOfDateBuildInfoWithErrors",e[e.OutOfDateOptions=9]="OutOfDateOptions",e[e.OutOfDateRoots=10]="OutOfDateRoots",e[e.UpstreamOutOfDate=11]="UpstreamOutOfDate",e[e.UpstreamBlocked=12]="UpstreamBlocked",e[e.ComputingUpstream=13]="ComputingUpstream",e[e.TsVersionOutputOfDate=14]="TsVersionOutputOfDate",e[e.UpToDateWithInputFileText=15]="UpToDateWithInputFileText",e[e.ContainerOnly=16]="ContainerOnly",e[e.ForceBuild=17]="ForceBuild",e))(F$||{});function E$(e){return ko(e,".json")?e:jo(e,"tsconfig.json")}var P$=new Date(-864e13);function A$(e,t){return function(e,t){const n=e.get(t);let r;return n||(r=new Map,e.set(t,r)),n||r}(e,t)}function I$(e){return e.now?e.now():new Date}function O$(e){return!!e&&!!e.buildOrder}function L$(e){return O$(e)?e.buildOrder:e}function j$(e,t){return n=>{let r=t?`[${BU(HW(e),"")}] `:`${HW(e)} - `;r+=`${UU(n.messageText,e.newLine)}${e.newLine+e.newLine}`,e.write(r)}}function R$(e,t,n,r){const i=y$(e,t);return i.getModifiedTime=e.getModifiedTime?t=>e.getModifiedTime(t):at,i.setModifiedTime=e.setModifiedTime?(t,n)=>e.setModifiedTime(t,n):rt,i.deleteFile=e.deleteFile?t=>e.deleteFile(t):rt,i.reportDiagnostic=n||VW(e),i.reportSolutionBuilderStatus=r||j$(e),i.now=We(e,e.now),i}function M$(e=so,t,n,r,i){const o=R$(e,t,n,r);return o.reportErrorSummary=i,o}function B$(e=so,t,n,r,i){const o=R$(e,t,n,r);return Ve(o,d$(e,i)),o}function J$(e,t,n){return PH(!1,e,t,n)}function z$(e,t,n,r){return PH(!0,e,t,n,r)}function q$(e,t){return qo(t,e.compilerHost.getCurrentDirectory(),e.compilerHost.getCanonicalFileName)}function U$(e,t){const{resolvedConfigFilePaths:n}=e,r=n.get(t);if(void 0!==r)return r;const i=q$(e,t);return n.set(t,i),i}function V$(e){return!!e.options}function W$(e,t){const n=e.configFileCache.get(t);return n&&V$(n)?n:void 0}function $$(e,t,n){const{configFileCache:r}=e,i=r.get(n);if(i)return V$(i)?i:void 0;let o;tr("SolutionBuilder::beforeConfigFileParsing");const{parseConfigFileHost:a,baseCompilerOptions:s,baseWatchOptions:c,extendedConfigCache:l,host:_}=e;let u;return _.getParsedCommandLine?(u=_.getParsedCommandLine(t),u||(o=Xx(la.File_0_not_found,t))):(a.onUnRecoverableConfigFileDiagnostic=e=>o=e,u=QO(t,s,a,l,c),a.onUnRecoverableConfigFileDiagnostic=rt),r.set(n,u||o),tr("SolutionBuilder::afterConfigFileParsing"),nr("SolutionBuilder::Config file parsing","SolutionBuilder::beforeConfigFileParsing","SolutionBuilder::afterConfigFileParsing"),u}function H$(e,t){return E$(Ro(e.compilerHost.getCurrentDirectory(),t))}function K$(e,t){const n=new Map,r=new Map,i=[];let o,a;for(const e of t)s(e);return a?{buildOrder:o||l,circularDiagnostics:a}:o||l;function s(t,c){const l=U$(e,t);if(r.has(l))return;if(n.has(l))return void(c||(a||(a=[])).push(Xx(la.Project_references_may_not_form_a_circular_graph_Cycle_detected_Colon_0,i.join("\r\n"))));n.set(l,!0),i.push(t);const _=$$(e,t,l);if(_&&_.projectReferences)for(const t of _.projectReferences)s(H$(e,t.path),c||t.circular);i.pop(),r.set(l,!0),(o||(o=[])).push(t)}}function G$(e){return e.buildOrder||function(e){const t=K$(e,e.rootNames.map((t=>H$(e,t))));e.resolvedConfigFilePaths.clear();const n=new Set(L$(t).map((t=>U$(e,t)))),r={onDeleteValue:rt};return ux(e.configFileCache,n,r),ux(e.projectStatus,n,r),ux(e.builderPrograms,n,r),ux(e.diagnostics,n,r),ux(e.projectPendingBuild,n,r),ux(e.projectErrorsReported,n,r),ux(e.buildInfoCache,n,r),ux(e.outputTimeStamps,n,r),ux(e.lastCachedPackageJsonLookups,n,r),e.watch&&(ux(e.allWatchedConfigFiles,n,{onDeleteValue:tx}),e.allWatchedExtendedConfigFiles.forEach((e=>{e.projects.forEach((t=>{n.has(t)||e.projects.delete(t)})),e.close()})),ux(e.allWatchedWildcardDirectories,n,{onDeleteValue:e=>e.forEach(vU)}),ux(e.allWatchedInputFiles,n,{onDeleteValue:e=>e.forEach(tx)}),ux(e.allWatchedPackageJsonFiles,n,{onDeleteValue:e=>e.forEach(tx)})),e.buildOrder=t}(e)}function X$(e,t,n){const r=t&&H$(e,t),i=G$(e);if(O$(i))return i;if(r){const t=U$(e,r);if(-1===k(i,(n=>U$(e,n)===t)))return}const o=r?K$(e,[r]):i;return un.assert(!O$(o)),un.assert(!n||void 0!==r),un.assert(!n||o[o.length-1]===r),n?o.slice(0,o.length-1):o}function Q$(e){e.cache&&Y$(e);const{compilerHost:t,host:n}=e,r=e.readFileWithCache,i=t.getSourceFile,{originalReadFile:o,originalFileExists:a,originalDirectoryExists:s,originalCreateDirectory:c,originalWriteFile:l,getSourceFileWithCache:_,readFileWithCache:u}=NU(n,(t=>q$(e,t)),((...e)=>i.call(t,...e)));e.readFileWithCache=u,t.getSourceFile=_,e.cache={originalReadFile:o,originalFileExists:a,originalDirectoryExists:s,originalCreateDirectory:c,originalWriteFile:l,originalReadFileWithCache:r,originalGetSourceFile:i}}function Y$(e){if(!e.cache)return;const{cache:t,host:n,compilerHost:r,extendedConfigCache:i,moduleResolutionCache:o,typeReferenceDirectiveResolutionCache:a,libraryResolutionCache:s}=e;n.readFile=t.originalReadFile,n.fileExists=t.originalFileExists,n.directoryExists=t.originalDirectoryExists,n.createDirectory=t.originalCreateDirectory,n.writeFile=t.originalWriteFile,r.getSourceFile=t.originalGetSourceFile,e.readFileWithCache=t.originalReadFileWithCache,i.clear(),null==o||o.clear(),null==a||a.clear(),null==s||s.clear(),e.cache=void 0}function Z$(e,t){e.projectStatus.delete(t),e.diagnostics.delete(t)}function eH({projectPendingBuild:e},t,n){const r=e.get(t);(void 0===r||re.projectPendingBuild.set(U$(e,t),0))),t&&t.throwIfCancellationRequested())}var nH=(e=>(e[e.Build=0]="Build",e[e.UpdateOutputFileStamps=1]="UpdateOutputFileStamps",e))(nH||{});function rH(e,t){return e.projectPendingBuild.delete(t),e.diagnostics.has(t)?1:0}function iH(e,t,n){if(!e.projectPendingBuild.size)return;if(O$(t))return;const{options:r,projectPendingBuild:i}=e;for(let o=0;oi.options,getCurrentDirectory:()=>e.compilerHost.getCurrentDirectory(),getBuilderProgram:()=>u(st),getProgram:()=>u((e=>e.getProgramOrUndefined())),getSourceFile:e=>u((t=>t.getSourceFile(e))),getSourceFiles:()=>d((e=>e.getSourceFiles())),getOptionsDiagnostics:e=>d((t=>t.getOptionsDiagnostics(e))),getGlobalDiagnostics:e=>d((t=>t.getGlobalDiagnostics(e))),getConfigFileParsingDiagnostics:()=>d((e=>e.getConfigFileParsingDiagnostics())),getSyntacticDiagnostics:(e,t)=>d((n=>n.getSyntacticDiagnostics(e,t))),getAllDependencies:e=>d((t=>t.getAllDependencies(e))),getSemanticDiagnostics:(e,t)=>d((n=>n.getSemanticDiagnostics(e,t))),getSemanticDiagnosticsOfNextAffectedFile:(e,t)=>u((n=>n.getSemanticDiagnosticsOfNextAffectedFile&&n.getSemanticDiagnosticsOfNextAffectedFile(e,t))),emit:(n,r,i,o,a)=>n||o?u((s=>{var c,l;return s.emit(n,r,i,o,a||(null==(l=(c=e.host).getCustomTransformers)?void 0:l.call(c,t)))})):(m(0,i),f(r,i,a)),done:function(t,r,i){return m(3,t,r,i),tr("SolutionBuilder::Projects built"),rH(e,n)}};function u(e){return m(0),s&&e(s)}function d(e){return u(e)||l}function p(){var r,o,a;if(un.assert(void 0===s),e.options.dry)return IH(e,la.A_non_dry_build_would_build_project_0,t),c=1,void(_=2);if(e.options.verbose&&IH(e,la.Building_project_0,t),0===i.fileNames.length)return jH(e,n,gV(i)),c=0,void(_=2);const{host:l,compilerHost:u}=e;if(e.projectCompilerOptions=i.options,null==(r=e.moduleResolutionCache)||r.update(i.options),null==(o=e.typeReferenceDirectiveResolutionCache)||o.update(i.options),s=l.createProgram(i.fileNames,i.options,u,function({options:e,builderPrograms:t,compilerHost:n},r,i){if(!e.force)return t.get(r)||T$(i.options,n)}(e,n,i),gV(i),i.projectReferences),e.watch){const t=null==(a=e.moduleResolutionCache)?void 0:a.getPackageJsonInfoCache().getInternalMap();e.lastCachedPackageJsonLookups.set(n,t&&new Set(Oe(t.values(),(t=>e.host.realpath&&(iR(t)||t.directoryExists)?e.host.realpath(jo(t.packageDirectory,"package.json")):jo(t.packageDirectory,"package.json"))))),e.builderPrograms.set(n,s)}_++}function f(r,a,l){var u,d,p;un.assertIsDefined(s),un.assert(1===_);const{host:f,compilerHost:m}=e,g=new Map,h=s.getCompilerOptions(),y=Fk(h);let v,b;const{emitResult:x,diagnostics:k}=c$(s,(e=>f.reportDiagnostic(e)),e.write,void 0,((t,i,o,a,c,l)=>{var _;const u=q$(e,t);if(g.set(q$(e,t),t),null==l?void 0:l.buildInfo){b||(b=I$(e.host));const r=null==(_=s.hasChangedEmitSignature)?void 0:_.call(s),i=uH(e,t,n);i?(i.buildInfo=l.buildInfo,i.modifiedTime=b,r&&(i.latestChangedDtsTime=b)):e.buildInfoCache.set(n,{path:q$(e,t),buildInfo:l.buildInfo,modifiedTime:b,latestChangedDtsTime:r?b:void 0})}const d=(null==l?void 0:l.differsOnlyInMap)?qi(e.host,t):void 0;(r||m.writeFile)(t,i,o,a,c,l),(null==l?void 0:l.differsOnlyInMap)?e.host.setModifiedTime(t,d):!y&&e.watch&&(v||(v=_H(e,n))).set(u,b||(b=I$(e.host)))}),a,void 0,l||(null==(d=(u=e.host).getCustomTransformers)?void 0:d.call(u,t)));return h.noEmitOnError&&k.length||!g.size&&8===o.type||gH(e,i,n,la.Updating_unchanged_output_timestamps_of_project_0,g),e.projectErrorsReported.set(n,!0),c=(null==(p=s.hasChangedEmitSignature)?void 0:p.call(s))?0:2,k.length?(e.diagnostics.set(n,k),e.projectStatus.set(n,{type:0,reason:"it had errors"}),c|=4):(e.diagnostics.delete(n),e.projectStatus.set(n,{type:1,oldestOutputFileName:me(g.values())??Hq(i,!f.useCaseSensitiveFileNames())})),function(e,t){t&&(e.host.afterProgramEmitAndDiagnostics&&e.host.afterProgramEmitAndDiagnostics(t),t.releaseProgram()),e.projectCompilerOptions=e.baseCompilerOptions}(e,s),_=2,x}function m(o,s,l,u){for(;_<=o&&_<3;){const o=_;switch(_){case 0:p();break;case 1:f(l,s,u);break;case 2:vH(e,t,n,r,i,a,un.checkDefined(c)),_++}un.assert(_>o)}}}(e,t.project,t.projectPath,t.projectIndex,t.config,t.status,n):function(e,t,n,r,i){let o=!0;return{kind:1,project:t,projectPath:n,buildOrder:i,getCompilerOptions:()=>r.options,getCurrentDirectory:()=>e.compilerHost.getCurrentDirectory(),updateOutputFileStatmps:()=>{yH(e,r,n),o=!1},done:()=>(o&&yH(e,r,n),tr("SolutionBuilder::Timestamps only updates"),rH(e,n))}}(e,t.project,t.projectPath,t.config,n)}function aH(e,t,n){const r=iH(e,t,n);return r?oH(e,r,t):r}function sH(e){return!!e.watcher}function cH(e,t){const n=q$(e,t),r=e.filesWatched.get(n);if(e.watch&&r){if(!sH(r))return r;if(r.modifiedTime)return r.modifiedTime}const i=qi(e.host,t);return e.watch&&(r?r.modifiedTime=i:e.filesWatched.set(n,i)),i}function lH(e,t,n,r,i,o,a){const s=q$(e,t),c=e.filesWatched.get(s);if(c&&sH(c))c.callbacks.push(n);else{const l=e.watchFile(t,((t,n,r)=>{const i=un.checkDefined(e.filesWatched.get(s));un.assert(sH(i)),i.modifiedTime=r,i.callbacks.forEach((e=>e(t,n,r)))}),r,i,o,a);e.filesWatched.set(s,{callbacks:[n],watcher:l,modifiedTime:c})}return{close:()=>{const t=un.checkDefined(e.filesWatched.get(s));un.assert(sH(t)),1===t.callbacks.length?(e.filesWatched.delete(s),vU(t)):Vt(t.callbacks,n)}}}function _H(e,t){if(!e.watch)return;let n=e.outputTimeStamps.get(t);return n||e.outputTimeStamps.set(t,n=new Map),n}function uH(e,t,n){const r=q$(e,t),i=e.buildInfoCache.get(n);return(null==i?void 0:i.path)===r?i:void 0}function dH(e,t,n,r){const i=q$(e,t),o=e.buildInfoCache.get(n);if(void 0!==o&&o.path===i)return o.buildInfo||void 0;const a=e.readFileWithCache(t),s=a?Qq(t,a):void 0;return e.buildInfoCache.set(n,{path:i,buildInfo:s||!1,modifiedTime:r||zi}),s}function pH(e,t,n,r){if(nS&&(b=n,S=t),C.add(r)}if(v?(w||(w=bW(v,f,p)),N=td(w.roots,((e,t)=>C.has(t)?void 0:t))):N=d(xW(y,f,p),(e=>C.has(e)?void 0:e)),N)return{type:10,buildInfoFile:f,inputFile:N};if(!m){const r=Wq(t,!p.useCaseSensitiveFileNames()),i=_H(e,n);for(const t of r){if(t===f)continue;const n=q$(e,t);let r=null==i?void 0:i.get(n);if(r||(r=qi(e.host,t),null==i||i.set(n,r)),r===zi)return{type:3,missingOutputFileName:t};if(rpH(e,t,x,k)));if(E)return E;const P=e.lastCachedPackageJsonLookups.get(n);return P&&nd(P,(t=>pH(e,t,x,k)))||{type:D?2:T?15:1,newestInputFileTime:S,newestInputFileName:b,oldestOutputFileName:k}}(e,t,n);return tr("SolutionBuilder::afterUpToDateCheck"),nr("SolutionBuilder::Up-to-date check","SolutionBuilder::beforeUpToDateCheck","SolutionBuilder::afterUpToDateCheck"),e.projectStatus.set(n,i),i}function gH(e,t,n,r,i){if(t.options.noEmit)return;let o;const a=Eq(t.options),s=Fk(t.options);if(a&&s)return(null==i?void 0:i.has(q$(e,a)))||(e.options.verbose&&IH(e,r,t.options.configFilePath),e.host.setModifiedTime(a,o=I$(e.host)),uH(e,a,n).modifiedTime=o),void e.outputTimeStamps.delete(n);const{host:c}=e,l=Wq(t,!c.useCaseSensitiveFileNames()),_=_H(e,n),u=_?new Set:void 0;if(!i||l.length!==i.size){let s=!!e.options.verbose;for(const d of l){const l=q$(e,d);(null==i?void 0:i.has(l))||(s&&(s=!1,IH(e,r,t.options.configFilePath)),c.setModifiedTime(d,o||(o=I$(e.host))),d===a?uH(e,a,n).modifiedTime=o:_&&(_.set(l,o),u.add(l)))}}null==_||_.forEach(((e,t)=>{(null==i?void 0:i.has(t))||u.has(t)||_.delete(t)}))}function hH(e,t,n){if(!t.composite)return;const r=un.checkDefined(e.buildInfoCache.get(n));if(void 0!==r.latestChangedDtsTime)return r.latestChangedDtsTime||void 0;const i=r.buildInfo&&aW(r.buildInfo)&&r.buildInfo.latestChangedDtsFile?e.host.getModifiedTime(Bo(r.buildInfo.latestChangedDtsFile,Do(r.path))):void 0;return r.latestChangedDtsTime=i||!1,i}function yH(e,t,n){if(e.options.dry)return IH(e,la.A_non_dry_build_would_update_timestamps_for_output_of_project_0,t.options.configFilePath);gH(e,t,n,la.Updating_output_timestamps_of_project_0),e.projectStatus.set(n,{type:1,oldestOutputFileName:Hq(t,!e.host.useCaseSensitiveFileNames())})}function vH(e,t,n,r,i,o,a){if(!(e.options.stopBuildOnErrors&&4&a)&&i.options.composite)for(let i=r+1;ie.diagnostics.has(U$(e,t))))?c?2:1:0}(e,t,n,r,i,o);return tr("SolutionBuilder::afterBuild"),nr("SolutionBuilder::Build","SolutionBuilder::beforeBuild","SolutionBuilder::afterBuild"),a}function xH(e,t,n){tr("SolutionBuilder::beforeClean");const r=function(e,t,n){const r=X$(e,t,n);if(!r)return 3;if(O$(r))return LH(e,r.circularDiagnostics),4;const{options:i,host:o}=e,a=i.dry?[]:void 0;for(const t of r){const n=U$(e,t),r=$$(e,t,n);if(void 0===r){RH(e,n);continue}const i=Wq(r,!o.useCaseSensitiveFileNames());if(!i.length)continue;const s=new Set(r.fileNames.map((t=>q$(e,t))));for(const t of i)s.has(q$(e,t))||o.fileExists(t)&&(a?a.push(t):(o.deleteFile(t),kH(e,n,0)))}return a&&IH(e,la.A_non_dry_build_would_delete_the_following_files_Colon_0,a.map((e=>`\r\n * ${e}`)).join("")),0}(e,t,n);return tr("SolutionBuilder::afterClean"),nr("SolutionBuilder::Clean","SolutionBuilder::beforeClean","SolutionBuilder::afterClean"),r}function kH(e,t,n){e.host.getParsedCommandLine&&1===n&&(n=2),2===n&&(e.configFileCache.delete(t),e.buildOrder=void 0),e.needsSummary=!0,Z$(e,t),eH(e,t,n),Q$(e)}function SH(e,t,n){e.reportFileChangeDetected=!0,kH(e,t,n),TH(e,250,!0)}function TH(e,t,n){const{hostWithWatch:r}=e;r.setTimeout&&r.clearTimeout&&(e.timerToBuildInvalidatedProject&&r.clearTimeout(e.timerToBuildInvalidatedProject),e.timerToBuildInvalidatedProject=r.setTimeout(CH,t,"timerToBuildInvalidatedProject",e,n))}function CH(e,t,n){tr("SolutionBuilder::beforeBuild");const r=function(e,t){e.timerToBuildInvalidatedProject=void 0,e.reportFileChangeDetected&&(e.reportFileChangeDetected=!1,e.projectErrorsReported.clear(),OH(e,la.File_change_detected_Starting_incremental_compilation));let n=0;const r=G$(e),i=aH(e,r,!1);if(i)for(i.done(),n++;e.projectPendingBuild.size;){if(e.timerToBuildInvalidatedProject)return;const i=iH(e,r,!1);if(!i)break;if(1!==i.kind&&(t||5===n))return void TH(e,100,!1);oH(e,i,r).done(),1!==i.kind&&n++}return Y$(e),r}(t,n);tr("SolutionBuilder::afterBuild"),nr("SolutionBuilder::Build","SolutionBuilder::beforeBuild","SolutionBuilder::afterBuild"),r&&MH(t,r)}function wH(e,t,n,r){e.watch&&!e.allWatchedConfigFiles.has(n)&&e.allWatchedConfigFiles.set(n,lH(e,t,(()=>SH(e,n,2)),2e3,null==r?void 0:r.watchOptions,p$.ConfigFile,t))}function NH(e,t,n){lU(t,null==n?void 0:n.options,e.allWatchedExtendedConfigFiles,((t,r)=>lH(e,t,(()=>{var t;return null==(t=e.allWatchedExtendedConfigFiles.get(r))?void 0:t.projects.forEach((t=>SH(e,t,2)))}),2e3,null==n?void 0:n.watchOptions,p$.ExtendedConfigFile)),(t=>q$(e,t)))}function DH(e,t,n,r){e.watch&&pU(A$(e.allWatchedWildcardDirectories,n),r.wildcardDirectories,((i,o)=>e.watchDirectory(i,(o=>{var a;fU({watchedDirPath:q$(e,i),fileOrDirectory:o,fileOrDirectoryPath:q$(e,o),configFileName:t,currentDirectory:e.compilerHost.getCurrentDirectory(),options:r.options,program:e.builderPrograms.get(n)||(null==(a=W$(e,n))?void 0:a.fileNames),useCaseSensitiveFileNames:e.parseConfigFileHost.useCaseSensitiveFileNames,writeLog:t=>e.writeLog(t),toPath:t=>q$(e,t)})||SH(e,n,1)}),o,null==r?void 0:r.watchOptions,p$.WildcardDirectory,t)))}function FH(e,t,n,r){e.watch&&dx(A$(e.allWatchedInputFiles,n),new Set(r.fileNames),{createNewValue:i=>lH(e,i,(()=>SH(e,n,0)),250,null==r?void 0:r.watchOptions,p$.SourceFile,t),onDeleteValue:tx})}function EH(e,t,n,r){e.watch&&e.lastCachedPackageJsonLookups&&dx(A$(e.allWatchedPackageJsonFiles,n),e.lastCachedPackageJsonLookups.get(n),{createNewValue:i=>lH(e,i,(()=>SH(e,n,0)),2e3,null==r?void 0:r.watchOptions,p$.PackageJson,t),onDeleteValue:tx})}function PH(e,t,n,r,i){const o=function(e,t,n,r,i){const o=t,a=t,s=function(e){const t={};return uO.forEach((n=>{De(e,n.name)&&(t[n.name]=e[n.name])})),t.tscBuild=!0,t}(r),c=m$(o,(()=>m.projectCompilerOptions));let l,_,u;h$(c),c.getParsedCommandLine=e=>$$(m,e,U$(m,e)),c.resolveModuleNameLiterals=We(o,o.resolveModuleNameLiterals),c.resolveTypeReferenceDirectiveReferences=We(o,o.resolveTypeReferenceDirectiveReferences),c.resolveLibrary=We(o,o.resolveLibrary),c.resolveModuleNames=We(o,o.resolveModuleNames),c.resolveTypeReferenceDirectives=We(o,o.resolveTypeReferenceDirectives),c.getModuleResolutionCache=We(o,o.getModuleResolutionCache),c.resolveModuleNameLiterals||c.resolveModuleNames||(l=mR(c.getCurrentDirectory(),c.getCanonicalFileName),c.resolveModuleNameLiterals=(e,t,n,r,i)=>iV(e,t,n,r,i,o,l,eV),c.getModuleResolutionCache=()=>l),c.resolveTypeReferenceDirectiveReferences||c.resolveTypeReferenceDirectives||(_=gR(c.getCurrentDirectory(),c.getCanonicalFileName,void 0,null==l?void 0:l.getPackageJsonInfoCache(),null==l?void 0:l.optionsToRedirectsKey),c.resolveTypeReferenceDirectiveReferences=(e,t,n,r,i)=>iV(e,t,n,r,i,o,_,rV)),c.resolveLibrary||(u=mR(c.getCurrentDirectory(),c.getCanonicalFileName,void 0,null==l?void 0:l.getPackageJsonInfoCache()),c.resolveLibrary=(e,t,n)=>yR(e,t,n,o,u)),c.getBuildInfo=(e,t)=>dH(m,e,U$(m,t),void 0);const{watchFile:d,watchDirectory:p,writeLog:f}=f$(a,r),m={host:o,hostWithWatch:a,parseConfigFileHost:DV(o),write:We(o,o.trace),options:r,baseCompilerOptions:s,rootNames:n,baseWatchOptions:i,resolvedConfigFilePaths:new Map,configFileCache:new Map,projectStatus:new Map,extendedConfigCache:new Map,buildInfoCache:new Map,outputTimeStamps:new Map,builderPrograms:new Map,diagnostics:new Map,projectPendingBuild:new Map,projectErrorsReported:new Map,compilerHost:c,moduleResolutionCache:l,typeReferenceDirectiveResolutionCache:_,libraryResolutionCache:u,buildOrder:void 0,readFileWithCache:e=>o.readFile(e),projectCompilerOptions:s,cache:void 0,allProjectBuildPending:!0,needsSummary:!0,watchAllProjectsPending:e,watch:e,allWatchedWildcardDirectories:new Map,allWatchedInputFiles:new Map,allWatchedConfigFiles:new Map,allWatchedExtendedConfigFiles:new Map,allWatchedPackageJsonFiles:new Map,filesWatched:new Map,lastCachedPackageJsonLookups:new Map,timerToBuildInvalidatedProject:void 0,reportFileChangeDetected:!1,watchFile:d,watchDirectory:p,writeLog:f};return m}(e,t,n,r,i);return{build:(e,t,n,r)=>bH(o,e,t,n,r),clean:e=>xH(o,e),buildReferences:(e,t,n,r)=>bH(o,e,t,n,r,!0),cleanReferences:e=>xH(o,e,!0),getNextInvalidatedProject:e=>(tH(o,e),aH(o,G$(o),!1)),getBuildOrder:()=>G$(o),getUpToDateStatusOfProject:e=>{const t=H$(o,e),n=U$(o,t);return mH(o,$$(o,t,n),n)},invalidateProject:(e,t)=>kH(o,e,t||0),close:()=>function(e){_x(e.allWatchedConfigFiles,tx),_x(e.allWatchedExtendedConfigFiles,vU),_x(e.allWatchedWildcardDirectories,(e=>_x(e,vU))),_x(e.allWatchedInputFiles,(e=>_x(e,tx))),_x(e.allWatchedPackageJsonFiles,(e=>_x(e,tx)))}(o)}}function AH(e,t){return ra(t,e.compilerHost.getCurrentDirectory(),e.compilerHost.getCanonicalFileName)}function IH(e,t,...n){e.host.reportSolutionBuilderStatus(Xx(t,...n))}function OH(e,t,...n){var r,i;null==(i=(r=e.hostWithWatch).onWatchStatusChange)||i.call(r,Xx(t,...n),e.host.getNewLine(),e.baseCompilerOptions)}function LH({host:e},t){t.forEach((t=>e.reportDiagnostic(t)))}function jH(e,t,n){LH(e,n),e.projectErrorsReported.set(t,!0),n.length&&e.diagnostics.set(t,n)}function RH(e,t){jH(e,t,[e.configFileCache.get(t)])}function MH(e,t){if(!e.needsSummary)return;e.needsSummary=!1;const n=e.watch||!!e.host.reportErrorSummary,{diagnostics:r}=e;let i=0,o=[];O$(t)?(BH(e,t.buildOrder),LH(e,t.circularDiagnostics),n&&(i+=XW(t.circularDiagnostics)),n&&(o=[...o,...QW(t.circularDiagnostics)])):(t.forEach((t=>{const n=U$(e,t);e.projectErrorsReported.has(n)||LH(e,r.get(n)||l)})),n&&r.forEach((e=>i+=XW(e))),n&&r.forEach((e=>[...o,...QW(e)]))),e.watch?OH(e,YW(i),i):e.host.reportErrorSummary&&e.host.reportErrorSummary(i,o)}function BH(e,t){e.options.verbose&&IH(e,la.Projects_in_this_build_Colon_0,t.map((t=>"\r\n * "+AH(e,t))).join(""))}function JH(e,t,n){e.options.verbose&&function(e,t,n){switch(n.type){case 5:return IH(e,la.Project_0_is_out_of_date_because_output_1_is_older_than_input_2,AH(e,t),AH(e,n.outOfDateOutputFileName),AH(e,n.newerInputFileName));case 6:return IH(e,la.Project_0_is_out_of_date_because_output_1_is_older_than_input_2,AH(e,t),AH(e,n.outOfDateOutputFileName),AH(e,n.newerProjectName));case 3:return IH(e,la.Project_0_is_out_of_date_because_output_file_1_does_not_exist,AH(e,t),AH(e,n.missingOutputFileName));case 4:return IH(e,la.Project_0_is_out_of_date_because_there_was_error_reading_file_1,AH(e,t),AH(e,n.fileName));case 7:return IH(e,la.Project_0_is_out_of_date_because_buildinfo_file_1_indicates_that_some_of_the_changes_were_not_emitted,AH(e,t),AH(e,n.buildInfoFile));case 8:return IH(e,la.Project_0_is_out_of_date_because_buildinfo_file_1_indicates_that_program_needs_to_report_errors,AH(e,t),AH(e,n.buildInfoFile));case 9:return IH(e,la.Project_0_is_out_of_date_because_buildinfo_file_1_indicates_there_is_change_in_compilerOptions,AH(e,t),AH(e,n.buildInfoFile));case 10:return IH(e,la.Project_0_is_out_of_date_because_buildinfo_file_1_indicates_that_file_2_was_root_file_of_compilation_but_not_any_more,AH(e,t),AH(e,n.buildInfoFile),AH(e,n.inputFile));case 1:if(void 0!==n.newestInputFileTime)return IH(e,la.Project_0_is_up_to_date_because_newest_input_1_is_older_than_output_2,AH(e,t),AH(e,n.newestInputFileName||""),AH(e,n.oldestOutputFileName||""));break;case 2:return IH(e,la.Project_0_is_up_to_date_with_d_ts_files_from_its_dependencies,AH(e,t));case 15:return IH(e,la.Project_0_is_up_to_date_but_needs_to_update_timestamps_of_output_files_that_are_older_than_input_files,AH(e,t));case 11:return IH(e,la.Project_0_is_out_of_date_because_its_dependency_1_is_out_of_date,AH(e,t),AH(e,n.upstreamProjectName));case 12:return IH(e,n.upstreamProjectBlocked?la.Project_0_can_t_be_built_because_its_dependency_1_was_not_built:la.Project_0_can_t_be_built_because_its_dependency_1_has_errors,AH(e,t),AH(e,n.upstreamProjectName));case 0:return IH(e,la.Project_0_is_out_of_date_because_1,AH(e,t),n.reason);case 14:return IH(e,la.Project_0_is_out_of_date_because_output_for_it_was_generated_with_version_1_that_differs_with_current_version_2,AH(e,t),n.version,s);case 17:IH(e,la.Project_0_is_being_forcibly_rebuilt,AH(e,t))}}(e,t,n)}var zH=(e=>(e[e.time=0]="time",e[e.count=1]="count",e[e.memory=2]="memory",e))(zH||{});function qH(e,t,n){return VH(e,n)?VW(e,!0):t}function UH(e){return!!e.writeOutputIsTTY&&e.writeOutputIsTTY()&&!e.getEnvironmentVariable("NO_COLOR")}function VH(e,t){return t&&void 0!==t.pretty?t.pretty:UH(e)}function WH(e){return e.options.all?_e(mO.concat(wO),((e,t)=>St(e.name,t.name))):N(mO.concat(wO),(e=>!!e.showInSimplifiedHelpView))}function $H(e){e.write(XO(la.Version_0,s)+e.newLine)}function HH(e){if(!UH(e))return{bold:e=>e,blue:e=>e,blueBackground:e=>e,brightWhite:e=>e};const t=e.getEnvironmentVariable("OS")&&e.getEnvironmentVariable("OS").toLowerCase().includes("windows"),n=e.getEnvironmentVariable("WT_SESSION"),r=e.getEnvironmentVariable("TERM_PROGRAM")&&"vscode"===e.getEnvironmentVariable("TERM_PROGRAM"),i="truecolor"===e.getEnvironmentVariable("COLORTERM")||"xterm-256color"===e.getEnvironmentVariable("TERM");function o(e){return`${e}`}return{bold:function(e){return`${e}`},blue:function(e){return!t||n||r?`${e}`:o(e)},brightWhite:o,blueBackground:function(e){return i?`${e}`:`${e}`}}}function KH(e){return`--${e.name}${e.shortName?`, -${e.shortName}`:""}`}function GH(e,t,n,r){var i;const o=[],a=HH(e),s=KH(t),c=function(e){if("object"!==e.type)return{valueType:function(e){switch(un.assert("listOrElement"!==e.type),e.type){case"string":case"number":case"boolean":return XO(la.type_Colon);case"list":return XO(la.one_or_more_Colon);default:return XO(la.one_of_Colon)}}(e),possibleValues:function e(t){let n;switch(t.type){case"string":case"number":case"boolean":n=t.type;break;case"list":case"listOrElement":n=e(t.element);break;case"object":n="";break;default:const r={};return t.type.forEach(((e,n)=>{var i;(null==(i=t.deprecatedKeys)?void 0:i.has(n))||(r[e]||(r[e]=[])).push(n)})),Object.entries(r).map((([,e])=>e.join("/"))).join(", ")}return n}(e)}}(t),l="object"==typeof t.defaultValueDescription?XO(t.defaultValueDescription):(_=t.defaultValueDescription,u="list"===t.type||"listOrElement"===t.type?t.element.type:t.type,void 0!==_&&"object"==typeof u?Oe(u.entries()).filter((([,e])=>e===_)).map((([e])=>e)).join("/"):String(_));var _,u;const d=(null==(i=e.getWidthOfTerminal)?void 0:i.call(e))??0;if(d>=80){let i="";t.description&&(i=XO(t.description)),o.push(...f(s,i,n,r,d,!0),e.newLine),p(c,t)&&(c&&o.push(...f(c.valueType,c.possibleValues,n,r,d,!1),e.newLine),l&&o.push(...f(XO(la.default_Colon),l,n,r,d,!1),e.newLine)),o.push(e.newLine)}else{if(o.push(a.blue(s),e.newLine),t.description){const e=XO(t.description);o.push(e)}if(o.push(e.newLine),p(c,t)){if(c&&o.push(`${c.valueType} ${c.possibleValues}`),l){c&&o.push(e.newLine);const t=XO(la.default_Colon);o.push(`${t} ${l}`)}o.push(e.newLine)}o.push(e.newLine)}return o;function p(e,t){const n=t.defaultValueDescription;return!(t.category===la.Command_line_Options||T(["string"],null==e?void 0:e.possibleValues)&&T([void 0,"false","n/a"],n))}function f(e,t,n,r,i,o){const s=[];let c=!0,l=t;const _=i-r;for(;l.length>0;){let t="";c?(t=e.padStart(n),t=t.padEnd(r),t=o?a.blue(t):t):t="".padStart(r);const i=l.substr(0,_);l=l.slice(_),s.push(`${t}${i}`),c=!1}return s}}function XH(e,t){let n=0;for(const e of t){const t=KH(e).length;n=n>t?n:t}const r=n+2,i=r+2;let o=[];for(const n of t){const t=GH(e,n,r,i);o=[...o,...t]}return o[o.length-2]!==e.newLine&&o.push(e.newLine),o}function QH(e,t,n,r,i,o){let a=[];if(a.push(HH(e).bold(t)+e.newLine+e.newLine),i&&a.push(i+e.newLine+e.newLine),!r)return a=[...a,...XH(e,n)],o&&a.push(o+e.newLine+e.newLine),a;const s=new Map;for(const e of n){if(!e.category)continue;const t=XO(e.category),n=s.get(t)??[];n.push(e),s.set(t,n)}return s.forEach(((t,n)=>{a.push(`### ${n}${e.newLine}${e.newLine}`),a=[...a,...XH(e,t)]})),o&&a.push(o+e.newLine+e.newLine),a}function YH(e,t){let n=[...ZH(e,`${XO(la.tsc_Colon_The_TypeScript_Compiler)} - ${XO(la.Version_0,s)}`)];n=[...n,...QH(e,XO(la.BUILD_OPTIONS),N(t,(e=>e!==wO)),!1,Gx(la.Using_build_b_will_make_tsc_behave_more_like_a_build_orchestrator_than_a_compiler_This_is_used_to_trigger_building_composite_projects_which_you_can_learn_more_about_at_0,"https://aka.ms/tsc-composite-builds"))];for(const t of n)e.write(t)}function ZH(e,t){var n;const r=HH(e),i=[],o=(null==(n=e.getWidthOfTerminal)?void 0:n.call(e))??0,a=r.blueBackground("".padStart(5)),s=r.blueBackground(r.brightWhite("TS ".padStart(5)));if(o>=t.length+5){const n=(o>120?120:o)-5;i.push(t.padEnd(n)+a+e.newLine),i.push("".padStart(n)+s+e.newLine)}else i.push(t+e.newLine),i.push(e.newLine);return i}function eK(e,t){t.options.all?function(e,t,n,r){let i=[...ZH(e,`${XO(la.tsc_Colon_The_TypeScript_Compiler)} - ${XO(la.Version_0,s)}`)];i=[...i,...QH(e,XO(la.ALL_COMPILER_OPTIONS),t,!0,void 0,Gx(la.You_can_learn_about_all_of_the_compiler_options_at_0,"https://aka.ms/tsc"))],i=[...i,...QH(e,XO(la.WATCH_OPTIONS),r,!1,XO(la.Including_watch_w_will_start_watching_the_current_project_for_the_file_changes_Once_set_you_can_config_watch_mode_with_Colon))],i=[...i,...QH(e,XO(la.BUILD_OPTIONS),N(n,(e=>e!==wO)),!1,Gx(la.Using_build_b_will_make_tsc_behave_more_like_a_build_orchestrator_than_a_compiler_This_is_used_to_trigger_building_composite_projects_which_you_can_learn_more_about_at_0,"https://aka.ms/tsc-composite-builds"))];for(const t of i)e.write(t)}(e,WH(t),NO,_O):function(e,t){const n=HH(e);let r=[...ZH(e,`${XO(la.tsc_Colon_The_TypeScript_Compiler)} - ${XO(la.Version_0,s)}`)];r.push(n.bold(XO(la.COMMON_COMMANDS))+e.newLine+e.newLine),a("tsc",la.Compiles_the_current_project_tsconfig_json_in_the_working_directory),a("tsc app.ts util.ts",la.Ignoring_tsconfig_json_compiles_the_specified_files_with_default_compiler_options),a("tsc -b",la.Build_a_composite_project_in_the_working_directory),a("tsc --init",la.Creates_a_tsconfig_json_with_the_recommended_settings_in_the_working_directory),a("tsc -p ./path/to/tsconfig.json",la.Compiles_the_TypeScript_project_located_at_the_specified_path),a("tsc --help --all",la.An_expanded_version_of_this_information_showing_all_possible_compiler_options),a(["tsc --noEmit","tsc --target esnext"],la.Compiles_the_current_project_with_additional_settings);const i=t.filter((e=>e.isCommandLineOnly||e.category===la.Command_line_Options)),o=t.filter((e=>!T(i,e)));r=[...r,...QH(e,XO(la.COMMAND_LINE_FLAGS),i,!1,void 0,void 0),...QH(e,XO(la.COMMON_COMPILER_OPTIONS),o,!1,void 0,Gx(la.You_can_learn_about_all_of_the_compiler_options_at_0,"https://aka.ms/tsc"))];for(const t of r)e.write(t);function a(t,i){const o="string"==typeof t?[t]:t;for(const t of o)r.push(" "+n.blue(t)+e.newLine);r.push(" "+XO(i)+e.newLine+e.newLine)}}(e,WH(t))}function tK(e,t,n){let r,i=VW(e);if(n.options.locale&&cc(n.options.locale,e,n.errors),n.errors.length>0)return n.errors.forEach(i),e.exit(1);if(n.options.init)return function(e,t,n,r){const i=Jo(jo(e.getCurrentDirectory(),"tsconfig.json"));if(e.fileExists(i))t(Xx(la.A_tsconfig_json_file_is_already_defined_at_Colon_0,i));else{e.writeFile(i,IL(n,r,e.newLine));const t=[e.newLine,...ZH(e,"Created a new tsconfig.json with:")];t.push(PL(n,e.newLine)+e.newLine+e.newLine),t.push("You can learn more at https://aka.ms/tsconfig"+e.newLine);for(const n of t)e.write(n)}}(e,i,n.options,n.fileNames),e.exit(0);if(n.options.version)return $H(e),e.exit(0);if(n.options.help||n.options.all)return eK(e,n),e.exit(0);if(n.options.watch&&n.options.listFilesOnly)return i(Xx(la.Options_0_and_1_cannot_be_combined,"watch","listFilesOnly")),e.exit(1);if(n.options.project){if(0!==n.fileNames.length)return i(Xx(la.Option_project_cannot_be_mixed_with_source_files_on_a_command_line)),e.exit(1);const t=Jo(n.options.project);if(!t||e.directoryExists(t)){if(r=jo(t,"tsconfig.json"),!e.fileExists(r))return i(Xx(la.Cannot_find_a_tsconfig_json_file_at_the_specified_directory_Colon_0,n.options.project)),e.exit(1)}else if(r=t,!e.fileExists(r))return i(Xx(la.The_specified_path_does_not_exist_Colon_0,n.options.project)),e.exit(1)}else 0===n.fileNames.length&&(r=bU(Jo(e.getCurrentDirectory()),(t=>e.fileExists(t))));if(0===n.fileNames.length&&!r)return n.options.showConfig?i(Xx(la.Cannot_find_a_tsconfig_json_file_at_the_current_directory_Colon_0,Jo(e.getCurrentDirectory()))):($H(e),eK(e,n)),e.exit(1);const o=e.getCurrentDirectory(),a=OL(n.options,(e=>Bo(e,o)));if(r){const o=new Map,s=GW(r,a,o,n.watchOptions,e,i);if(a.showConfig)return 0!==s.errors.length?(i=qH(e,i,s.options),s.errors.forEach(i),e.exit(1)):(e.write(JSON.stringify(SL(s,r,e),null,4)+e.newLine),e.exit(0));if(i=qH(e,i,s.options),ex(s.options)){if(iK(e,i))return;return function(e,t,n,r,i,o,a){const s=x$({configFileName:r.options.configFilePath,optionsToExtend:i,watchOptionsToExtend:o,system:e,reportDiagnostic:n,reportWatchStatus:pK(e,r.options)});return dK(e,t,s),s.configFileParsingResult=r,s.extendedConfigCache=a,D$(s)}(e,t,i,s,a,n.watchOptions,o)}Fk(s.options)?lK(e,t,i,s):cK(e,t,i,s)}else{if(a.showConfig)return e.write(JSON.stringify(SL(n,jo(o,"tsconfig.json"),e),null,4)+e.newLine),e.exit(0);if(i=qH(e,i,a),ex(a)){if(iK(e,i))return;return function(e,t,n,r,i,o){const a=k$({rootFiles:r,options:i,watchOptions:o,system:e,reportDiagnostic:n,reportWatchStatus:pK(e,i)});return dK(e,t,a),D$(a)}(e,t,i,n.fileNames,a,n.watchOptions)}Fk(a)?lK(e,t,i,{...n,options:a}):cK(e,t,i,{...n,options:a})}}function nK(e){if(e.length>0&&45===e[0].charCodeAt(0)){const t=e[0].slice(45===e[0].charCodeAt(1)?2:1).toLowerCase();return t===wO.name||t===wO.shortName}return!1}function rK(e,t,n){if(nK(n)){const{buildOptions:r,watchOptions:i,projects:o,errors:a}=GO(n);if(!r.generateCpuProfile||!e.enableCPUProfiler)return aK(e,t,r,i,o,a);e.enableCPUProfiler(r.generateCpuProfile,(()=>aK(e,t,r,i,o,a)))}const r=VO(n,(t=>e.readFile(t)));if(!r.options.generateCpuProfile||!e.enableCPUProfiler)return tK(e,t,r);e.enableCPUProfiler(r.options.generateCpuProfile,(()=>tK(e,t,r)))}function iK(e,t){return!(e.watchFile&&e.watchDirectory||(t(Xx(la.The_current_host_does_not_support_the_0_option,"--watch")),e.exit(1),0))}var oK=2;function aK(e,t,n,r,i,o){const a=qH(e,VW(e),n);if(n.locale&&cc(n.locale,e,o),o.length>0)return o.forEach(a),e.exit(1);if(n.help)return $H(e),YH(e,DO),e.exit(0);if(0===i.length)return $H(e),YH(e,DO),e.exit(0);if(!e.getModifiedTime||!e.setModifiedTime||n.clean&&!e.deleteFile)return a(Xx(la.The_current_host_does_not_support_the_0_option,"--build")),e.exit(1);if(n.watch){if(iK(e,a))return;const o=B$(e,void 0,a,j$(e,VH(e,n)),pK(e,n));o.jsDocParsingMode=oK;const s=fK(e,n);_K(e,t,o,s);const c=o.onWatchStatusChange;let l=!1;o.onWatchStatusChange=(e,t,n,r)=>{null==c||c(e,t,n,r),!l||e.code!==la.Found_0_errors_Watching_for_file_changes.code&&e.code!==la.Found_1_error_Watching_for_file_changes.code||mK(_,s)};const _=z$(o,i,n,r);return _.build(),mK(_,s),l=!0,_}const s=M$(e,void 0,a,j$(e,VH(e,n)),sK(e,n));s.jsDocParsingMode=oK;const c=fK(e,n);_K(e,t,s,c);const l=J$(s,i,n),_=n.clean?l.clean():l.build();return mK(l,c),pr(),e.exit(_)}function sK(e,t){return VH(e,t)?(t,n)=>e.write(e$(t,n,e.newLine,e)):void 0}function cK(e,t,n,r){const{fileNames:i,options:o,projectReferences:a}=r,s=wU(o,void 0,e);s.jsDocParsingMode=oK;const c=s.getCurrentDirectory(),l=Wt(s.useCaseSensitiveFileNames());NU(s,(e=>qo(e,c,l))),yK(e,o,!1);const _=bV({rootNames:i,options:o,projectReferences:a,host:s,configFileParsingDiagnostics:gV(r)}),u=l$(_,n,(t=>e.write(t+e.newLine)),sK(e,o));return bK(e,_,void 0),t(_),e.exit(u)}function lK(e,t,n,r){const{options:i,fileNames:o,projectReferences:a}=r;yK(e,i,!1);const s=C$(i,e);s.jsDocParsingMode=oK;const c=S$({host:s,system:e,rootNames:o,options:i,configFileParsingDiagnostics:gV(r),projectReferences:a,reportDiagnostic:n,reportErrorSummary:sK(e,i),afterProgramEmitAndDiagnostics:n=>{bK(e,n.getProgram(),void 0),t(n)}});return e.exit(c)}function _K(e,t,n,r){uK(e,n,!0),n.afterProgramEmitAndDiagnostics=n=>{bK(e,n.getProgram(),r),t(n)}}function uK(e,t,n){const r=t.createProgram;t.createProgram=(t,i,o,a,s,c)=>(un.assert(void 0!==t||void 0===i&&!!a),void 0!==i&&yK(e,i,n),r(t,i,o,a,s,c))}function dK(e,t,n){n.jsDocParsingMode=oK,uK(e,n,!1);const r=n.afterProgramCreate;n.afterProgramCreate=n=>{r(n),bK(e,n.getProgram(),void 0),t(n)}}function pK(e,t){return KW(e,VH(e,t))}function fK(e,t){if(e===so&&t.extendedDiagnostics)return _r(),function(){let e;return{addAggregateStatistic:function(t){const n=null==e?void 0:e.get(t.name);n?2===n.type?n.value=Math.max(n.value,t.value):n.value+=t.value:(e??(e=new Map)).set(t.name,t)},forEachAggregateStatistics:function(t){null==e||e.forEach(t)},clear:function(){e=void 0}}}()}function mK(e,t){if(!t)return;if(!lr())return void so.write(la.Performance_timings_for_diagnostics_or_extendedDiagnostics_are_not_available_in_this_session_A_native_implementation_of_the_Web_Performance_API_could_not_be_found.message+"\n");const n=[];function r(e){const t=rr(e);t&&n.push({name:i(e),value:t,type:1})}function i(e){return e.replace("SolutionBuilder::","")}n.push({name:"Projects in scope",value:L$(e.getBuildOrder()).length,type:1}),r("SolutionBuilder::Projects built"),r("SolutionBuilder::Timestamps only updates"),r("SolutionBuilder::Bundles updated"),t.forEachAggregateStatistics((e=>{e.name=`Aggregate ${e.name}`,n.push(e)})),or(((e,t)=>{vK(e)&&n.push({name:`${i(e)} time`,value:t,type:0})})),ur(),_r(),t.clear(),xK(so,n)}function gK(e,t){return e===so&&(t.diagnostics||t.extendedDiagnostics)}function hK(e,t){return e===so&&t.generateTrace}function yK(e,t,n){gK(e,t)&&_r(e),hK(e,t)&&dr(n?"build":"project",t.generateTrace,t.configFilePath)}function vK(e){return Gt(e,"SolutionBuilder::")}function bK(e,t,n){var r;const i=t.getCompilerOptions();let o;if(hK(e,i)&&(null==(r=Hn)||r.stopTracing()),gK(e,i)){o=[];const r=e.getMemoryUsage?e.getMemoryUsage():-1;s("Files",t.getSourceFiles().length);const l=function(e){const t=function(){const e=new Map;return e.set("Library",0),e.set("Definitions",0),e.set("TypeScript",0),e.set("JavaScript",0),e.set("JSON",0),e.set("Other",0),e}();return d(e.getSourceFiles(),(n=>{const r=function(e,t){if(e.isSourceFileDefaultLibrary(t))return"Library";if(t.isDeclarationFile)return"Definitions";const n=t.path;return So(n,xS)?"TypeScript":So(n,TS)?"JavaScript":ko(n,".json")?"JSON":"Other"}(e,n),i=ja(n).length;t.set(r,t.get(r)+i)})),t}(t);if(i.extendedDiagnostics)for(const[e,t]of l.entries())s("Lines of "+e,t);else s("Lines",g(l.values(),((e,t)=>e+t),0));s("Identifiers",t.getIdentifierCount()),s("Symbols",t.getSymbolCount()),s("Types",t.getTypeCount()),s("Instantiations",t.getInstantiationCount()),r>=0&&a({name:"Memory used",value:r,type:2},!0);const _=lr(),u=_?ir("Program"):0,p=_?ir("Bind"):0,f=_?ir("Check"):0,m=_?ir("Emit"):0;if(i.extendedDiagnostics){const e=t.getRelationCacheSizes();s("Assignability cache size",e.assignable),s("Identity cache size",e.identity),s("Subtype cache size",e.subtype),s("Strict subtype cache size",e.strictSubtype),_&&or(((e,t)=>{vK(e)||c(`${e} time`,t,!0)}))}else _&&(c("I/O read",ir("I/O Read"),!0),c("I/O write",ir("I/O Write"),!0),c("Parse time",u,!0),c("Bind time",p,!0),c("Check time",f,!0),c("Emit time",m,!0));_&&c("Total time",u+p+f+m,!1),xK(e,o),_?n?(or((e=>{vK(e)||sr(e)})),ar((e=>{vK(e)||cr(e)}))):ur():e.write(la.Performance_timings_for_diagnostics_or_extendedDiagnostics_are_not_available_in_this_session_A_native_implementation_of_the_Web_Performance_API_could_not_be_found.message+"\n")}function a(e,t){o.push(e),t&&(null==n||n.addAggregateStatistic(e))}function s(e,t){a({name:e,value:t,type:1},!0)}function c(e,t,n){a({name:e,value:t,type:0},n)}}function xK(e,t){let n=0,r=0;for(const e of t){e.name.length>n&&(n=e.name.length);const t=kK(e);t.length>r&&(r=t.length)}for(const i of t)e.write(`${i.name}:`.padEnd(n+2)+kK(i).toString().padStart(r)+e.newLine)}function kK(e){switch(e.type){case 1:return""+e.value;case 0:return(e.value/1e3).toFixed(2)+"s";case 2:return Math.round(e.value/1e3)+"K";default:un.assertNever(e.type)}}function SK(e,t=!0){return{type:e,reportFallback:t}}var TK=SK(void 0,!1),CK=SK(void 0,!1),wK=SK(void 0,!0);function NK(e,t){const n=Mk(e,"strictNullChecks");return{serializeTypeOfDeclaration:function(e,n,r){switch(e.kind){case 169:case 341:return u(e,n,r);case 260:return function(e,n,r){var i;const o=pv(e);let s=wK;return o?s=SK(a(o,r,e,n)):!e.initializer||1!==(null==(i=n.declarations)?void 0:i.length)&&1!==w(n.declarations,VF)||t.isExpandoFunctionDeclaration(e)||F(e)||(s=h(e.initializer,r,void 0,void 0,of(e))),void 0!==s.type?s.type:d(e,n,r,s.reportFallback)}(e,n,r);case 171:case 348:case 172:return function(e,n,r){const i=pv(e),o=t.requiresAddingImplicitUndefined(e,n,r.enclosingDeclaration);let s=wK;if(i)s=SK(a(i,r,e,n,o));else{const t=cD(e)?e.initializer:void 0;t&&!F(e)&&(s=h(t,r,void 0,o,ef(e)))}return void 0!==s.type?s.type:d(e,n,r,s.reportFallback)}(e,n,r);case 208:return d(e,n,r);case 277:return l(e.expression,r,void 0,!0);case 211:case 212:case 226:return function(e,t,n){const r=pv(e);let i;r&&(i=a(r,n,e,t));const o=n.suppressReportInferenceFallback;n.suppressReportInferenceFallback=!0;const s=i??d(e,t,n,!1);return n.suppressReportInferenceFallback=o,s}(e,n,r);case 303:case 304:return function(e,n,r){const i=pv(e);let a;if(i&&t.canReuseTypeNodeAnnotation(r,e,i,n)&&(a=o(i,r)),!a&&303===e.kind){const t=e.initializer,n=oA(t)?aA(t):234===t.kind||216===t.kind?t.type:void 0;n&&!xl(n)&&(a=o(n,r))}return a??d(e,n,r,!1)}(e,n,r);default:un.assertNever(e,`Node needs to be an inferrable node, found ${un.formatSyntaxKind(e.kind)}`)}},serializeReturnTypeForSignature:function(e,t,n){switch(e.kind){case 177:return c(e,t,n);case 174:case 262:case 180:case 173:case 179:case 176:case 178:case 181:case 184:case 185:case 218:case 219:case 317:case 323:return D(e,t,n);default:un.assertNever(e,`Node needs to be an inferrable node, found ${un.formatSyntaxKind(e.kind)}`)}},serializeTypeOfExpression:l,serializeTypeOfAccessor:c,tryReuseExistingTypeNode(e,n){if(t.canReuseTypeNode(e,n))return i(e,n)}};function r(e,n,r=n){return void 0===n?void 0:t.markNodeReuse(e,16&n.flags?n:XC.cloneNode(n),r??n)}function i(n,r){const{finalizeBoundary:i,startRecoveryScope:o,hadError:a,markError:s}=t.createRecoveryBoundary(n),c=$B(r,l,v_);if(i())return n.approximateLength+=r.end-r.pos,c;function l(r){if(a())return r;const i=o(),c=DC(r)?t.enterNewScope(n,r):void 0,_=function(r){var i;if(VE(r))return $B(r.type,l,v_);if(XE(r)||319===r.kind)return XC.createKeywordTypeNode(133);if(QE(r))return XC.createKeywordTypeNode(159);if(YE(r))return XC.createUnionTypeNode([$B(r.type,l,v_),XC.createLiteralTypeNode(XC.createNull())]);if(eP(r))return XC.createUnionTypeNode([$B(r.type,l,v_),XC.createKeywordTypeNode(157)]);if(ZE(r))return $B(r.type,l);if(nP(r))return XC.createArrayTypeNode($B(r.type,l,v_));if(oP(r))return XC.createTypeLiteralNode(E(r.jsDocPropertyTags,(e=>{const i=$B(zN(e.name)?e.name:e.name.right,l,zN),o=t.getJsDocPropertyOverride(n,r,e);return XC.createPropertySignature(void 0,i,e.isBracketed||e.typeExpression&&eP(e.typeExpression.type)?XC.createToken(58):void 0,o||e.typeExpression&&$B(e.typeExpression.type,l,v_)||XC.createKeywordTypeNode(133))})));if(vD(r)&&zN(r.typeName)&&""===r.typeName.escapedText)return YC(XC.createKeywordTypeNode(133),r);if((mF(r)||vD(r))&&Im(r))return XC.createTypeLiteralNode([XC.createIndexSignature(void 0,[XC.createParameterDeclaration(void 0,void 0,"x",void 0,$B(r.typeArguments[0],l,v_))],$B(r.typeArguments[1],l,v_))]);if(tP(r)){if(wg(r)){let e;return XC.createConstructorTypeNode(void 0,HB(r.typeParameters,l,iD),B(r.parameters,((r,i)=>r.name&&zN(r.name)&&"new"===r.name.escapedText?void(e=r.type):XC.createParameterDeclaration(void 0,c(r),t.markNodeReuse(n,XC.createIdentifier(_(r,i)),r),XC.cloneNode(r.questionToken),$B(r.type,l,v_),void 0))),$B(e||r.type,l,v_)||XC.createKeywordTypeNode(133))}return XC.createFunctionTypeNode(HB(r.typeParameters,l,iD),E(r.parameters,((e,r)=>XC.createParameterDeclaration(void 0,c(e),t.markNodeReuse(n,XC.createIdentifier(_(e,r)),e),XC.cloneNode(e.questionToken),$B(e.type,l,v_),void 0))),$B(r.type,l,v_)||XC.createKeywordTypeNode(133))}if(OD(r))return t.canReuseTypeNode(n,r)||s(),r;if(iD(r)){const{node:e}=t.trackExistingEntityName(n,r.name);return XC.updateTypeParameterDeclaration(r,HB(r.modifiers,l,Yl),e,$B(r.constraint,l,v_),$B(r.default,l,v_))}if(jD(r)){return u(r)||(s(),r)}if(vD(r)){return f(r)||(s(),r)}if(_f(r))return 132===(null==(i=r.attributes)?void 0:i.token)?(s(),r):t.canReuseTypeNode(n,r)?XC.updateImportTypeNode(r,XC.updateLiteralTypeNode(r.argument,function(e,r){const i=t.getModuleSpecifierOverride(n,e,r);return i?YC(XC.createStringLiteral(i),r):$B(r,l,TN)}(r,r.argument.literal)),$B(r.attributes,l,sE),$B(r.qualifier,l,Zl),HB(r.typeArguments,l,v_),r.isTypeOf):t.serializeExistingTypeNode(n,r);if(kc(r)&&167===r.name.kind&&!t.hasLateBindableName(r)){if(!Rh(r))return o(r,l);if(t.shouldRemoveDeclaration(n,r))return}if(n_(r)&&!r.type||cD(r)&&!r.type&&!r.initializer||sD(r)&&!r.type&&!r.initializer||oD(r)&&!r.type&&!r.initializer){let e=o(r,l);return e===r&&(e=t.markNodeReuse(n,XC.cloneNode(r),r)),e.type=XC.createKeywordTypeNode(133),oD(r)&&(e.modifiers=void 0),e}if(kD(r)){return p(r)||(s(),r)}if(rD(r)&&ob(r.expression)){const{node:i,introducesError:o}=t.trackExistingEntityName(n,r.expression);if(o){const i=t.serializeTypeOfExpression(n,r.expression);let o;if(MD(i))o=i.literal;else{const e=t.evaluateEntityNameExpression(r.expression),a="string"==typeof e.value?XC.createStringLiteral(e.value,void 0):"number"==typeof e.value?XC.createNumericLiteral(e.value,0):void 0;if(!a)return BD(i)&&t.trackComputedName(n,r.expression),r;o=a}return 11===o.kind&&fs(o.text,hk(e))?XC.createIdentifier(o.text):9!==o.kind||o.text.startsWith("-")?XC.updateComputedPropertyName(r,o):o}return XC.updateComputedPropertyName(r,i)}if(yD(r)){let e;if(zN(r.parameterName)){const{node:i,introducesError:o}=t.trackExistingEntityName(n,r.parameterName);o&&s(),e=i}else e=XC.cloneNode(r.parameterName);return XC.updateTypePredicateNode(r,XC.cloneNode(r.assertsModifier),e,$B(r.type,l,v_))}if(CD(r)||SD(r)||RD(r)){const e=o(r,l),i=t.markNodeReuse(n,e===r?XC.cloneNode(r):e,r);return nw(i,Qd(i)|(1024&n.flags&&SD(r)?0:1)),i}if(TN(r)&&268435456&n.flags&&!r.singleQuote){const e=XC.cloneNode(r);return e.singleQuote=!0,e}if(PD(r)){const e=$B(r.checkType,l,v_),i=t.enterNewScope(n,r),o=$B(r.extendsType,l,v_),a=$B(r.trueType,l,v_);i();const s=$B(r.falseType,l,v_);return XC.updateConditionalTypeNode(r,e,o,a,s)}if(LD(r))if(158===r.operator&&155===r.type.kind){if(!t.canReuseTypeNode(n,r))return s(),r}else if(143===r.operator){return d(r)||(s(),r)}return o(r,l);function o(e,t){return nJ(e,t,void 0,n.enclosingFile&&n.enclosingFile===hd(e)?void 0:a)}function a(e,t,n,r,i){let o=HB(e,t,n,r,i);return o&&(-1===o.pos&&-1===o.end||(o===e&&(o=XC.createNodeArray(e.slice(),e.hasTrailingComma)),ST(o,-1,-1))),o}function c(e){return e.dotDotDotToken||(e.type&&nP(e.type)?XC.createToken(26):void 0)}function _(e,t){return e.name&&zN(e.name)&&"this"===e.name.escapedText?"this":c(e)?"args":`arg${t}`}}(r);return null==c||c(),a()?v_(r)&&!yD(r)?(i(),t.serializeExistingTypeNode(n,r)):r:_?t.markNodeReuse(n,_,r):void 0}function _(e){const t=ih(e);switch(t.kind){case 183:return f(t);case 186:return p(t);case 199:return u(t);case 198:const e=t;if(143===e.operator)return d(e)}return $B(e,l,v_)}function u(e){const t=_(e.objectType);if(void 0!==t)return XC.updateIndexedAccessTypeNode(e,t,$B(e.indexType,l,v_))}function d(e){un.assertEqual(e.operator,143);const t=_(e.type);if(void 0!==t)return XC.updateTypeOperatorNode(e,t)}function p(e){const{introducesError:r,node:i}=t.trackExistingEntityName(n,e.exprName);if(!r)return XC.updateTypeQueryNode(e,i,HB(e.typeArguments,l,v_));const o=t.serializeTypeName(n,e.exprName,!0);return o?t.markNodeReuse(n,o,e.exprName):void 0}function f(e){if(t.canReuseTypeNode(n,e)){const{introducesError:r,node:i}=t.trackExistingEntityName(n,e.typeName),o=HB(e.typeArguments,l,v_);if(!r){const r=XC.updateTypeReferenceNode(e,i,o);return t.markNodeReuse(n,r,e)}{const r=t.serializeTypeName(n,e.typeName,!1,o);if(r)return t.markNodeReuse(n,r,e.typeName)}}}}function o(e,n,r){if(!e)return;let o;return r&&!N(e)||!t.canReuseTypeNode(n,e)||(o=i(n,e),void 0!==o&&(o=C(o,r,void 0,n))),o}function a(e,n,r,i,a,s=void 0!==a){if(!e)return;if(!(t.canReuseTypeNodeAnnotation(n,r,e,i,a)||a&&t.canReuseTypeNodeAnnotation(n,r,e,i,!1)))return;let c;return a&&!N(e)||(c=o(e,n,a)),void 0===c&&s?(n.tracker.reportInferenceFallback(r),t.serializeExistingTypeNode(n,e,a)??XC.createKeywordTypeNode(133)):c}function s(e,n,r,i){if(!e)return;const a=o(e,n,r);return void 0!==a?a:(n.tracker.reportInferenceFallback(i??e),t.serializeExistingTypeNode(n,e,r)??XC.createKeywordTypeNode(133))}function c(e,n,r){return function(e,n,r){const i=t.getAllAccessorDeclarations(e),o=function(e,t){let n=_(e);return n||e===t.firstAccessor||(n=_(t.firstAccessor)),!n&&t.secondAccessor&&e!==t.secondAccessor&&(n=_(t.secondAccessor)),n}(e,i);return o&&!yD(o)?m(r,e,(()=>a(o,r,e,n)??d(e,n,r))):i.getAccessor?m(r,i.getAccessor,(()=>D(i.getAccessor,void 0,r))):void 0}(e,n,r)??f(e,t.getAllAccessorDeclarations(e),r,n)}function l(e,t,n,r){const i=h(e,t,!1,n,r);return void 0!==i.type?i.type:p(e,t,i.reportFallback)}function _(e){if(e)return 177===e.kind?Fm(e)&&tl(e)||mv(e):hv(e)}function u(e,n,r){const i=e.parent;if(178===i.kind)return c(i,void 0,r);const o=pv(e),s=t.requiresAddingImplicitUndefined(e,n,r.enclosingDeclaration);let l=wK;return o?l=SK(a(o,r,e,n,s)):oD(e)&&e.initializer&&zN(e.name)&&!F(e)&&(l=h(e.initializer,r,void 0,s)),void 0!==l.type?l.type:d(e,n,r,l.reportFallback)}function d(e,n,r,i=!0){return i&&r.tracker.reportInferenceFallback(e),!0===r.noInferenceFallback?XC.createKeywordTypeNode(133):t.serializeTypeOfDeclaration(r,e,n)}function p(e,n,r=!0,i){return un.assert(!i),r&&n.tracker.reportInferenceFallback(e),!0===n.noInferenceFallback?XC.createKeywordTypeNode(133):t.serializeTypeOfExpression(n,e)??XC.createKeywordTypeNode(133)}function f(e,n,r,i,o=!0){return 177===e.kind?D(e,i,r,o):(o&&r.tracker.reportInferenceFallback(e),(n.getAccessor&&D(n.getAccessor,i,r,o))??t.serializeTypeOfDeclaration(r,e,i)??XC.createKeywordTypeNode(133))}function m(e,n,r){const i=t.enterNewScope(e,n),o=r();return i(),o}function g(e,t,n,r){return xl(t)?h(e,n,!0,r):SK(s(t,n,r))}function h(e,r,i=!1,o=!1,a=!1){switch(e.kind){case 217:return oA(e)?g(e.expression,aA(e),r,o):h(e.expression,r,i,o);case 80:if(t.isUndefinedIdentifierExpression(e))return SK(S());break;case 106:return SK(n?C(XC.createLiteralTypeNode(XC.createNull()),o,e,r):XC.createKeywordTypeNode(133));case 219:case 218:return un.type(e),m(r,e,(()=>function(e,t){const n=t.noInferenceFallback;return t.noInferenceFallback=!0,D(e,void 0,t),b(e.typeParameters,t),e.parameters.map((e=>v(e,t))),t.noInferenceFallback=n,TK}(e,r)));case 216:case 234:const s=e;return g(s.expression,s.type,r,o);case 224:const c=e;if(yC(c))return T(40===c.operator?c.operand:c,10===c.operand.kind?163:150,r,i||a,o);break;case 209:return function(e,t,n,r){if(!function(e,t,n){if(!n)return t.tracker.reportInferenceFallback(e),!1;for(const n of e.elements)if(230===n.kind)return t.tracker.reportInferenceFallback(n),!1;return!0}(e,t,n))return r||lu(nh(e).parent)?CK:SK(p(e,t,!1,r));const i=t.noInferenceFallback;t.noInferenceFallback=!0;const o=[];for(const r of e.elements)if(un.assert(230!==r.kind),232===r.kind)o.push(S());else{const e=h(r,t,n),i=void 0!==e.type?e.type:p(r,t,e.reportFallback);o.push(i)}return XC.createTupleTypeNode(o).emitNode={flags:1,autoGenerate:void 0,internalFlags:0},t.noInferenceFallback=i,TK}(e,r,i,o);case 210:return function(e,n,r,i){if(!function(e,n){let r=!0;for(const i of e.properties){if(262144&i.flags){r=!1;break}if(304===i.kind||305===i.kind)n.tracker.reportInferenceFallback(i),r=!1;else{if(262144&i.name.flags){r=!1;break}if(81===i.name.kind)r=!1;else if(167===i.name.kind){const e=i.name.expression;yC(e,!1)||t.isDefinitelyReferenceToGlobalSymbolObject(e)||(n.tracker.reportInferenceFallback(i.name),r=!1)}}}return r}(e,n))return i||lu(nh(e).parent)?CK:SK(p(e,n,!1,i));const o=n.noInferenceFallback;n.noInferenceFallback=!0;const a=[],s=n.flags;n.flags|=4194304;for(const t of e.properties){un.assert(!BE(t)&&!JE(t));const e=t.name;let i;switch(t.kind){case 174:i=m(n,t,(()=>x(t,e,n,r)));break;case 303:i=y(t,e,n,r);break;case 178:case 177:i=k(t,e,n)}i&&(pw(i,t),a.push(i))}n.flags=s;const c=XC.createTypeLiteralNode(a);return 1024&n.flags||nw(c,1),n.noInferenceFallback=o,TK}(e,r,i,o);case 231:return SK(p(e,r,!0,o));case 228:if(!i&&!a)return SK(XC.createKeywordTypeNode(154));break;default:let l,_=e;switch(e.kind){case 9:l=150;break;case 15:_=XC.createStringLiteral(e.text),l=154;break;case 11:l=154;break;case 10:l=163;break;case 112:case 97:l=136}if(l)return T(_,l,r,i||a,o)}return wK}function y(e,t,n,i){const o=i?[XC.createModifier(148)]:[],a=h(e.initializer,n,i),s=void 0!==a.type?a.type:d(e,void 0,n,a.reportFallback);return XC.createPropertySignature(o,r(n,t),void 0,s)}function v(e,n){return XC.updateParameterDeclaration(e,[],r(n,e.dotDotDotToken),t.serializeNameOfParameter(n,e),t.isOptionalParameter(e)?XC.createToken(58):void 0,u(e,void 0,n),void 0)}function b(e,t){return null==e?void 0:e.map((e=>{var n;return XC.updateTypeParameterDeclaration(e,null==(n=e.modifiers)?void 0:n.map((e=>r(t,e))),r(t,e.name),s(e.constraint,t),s(e.default,t))}))}function x(e,t,n,i){const o=D(e,void 0,n),a=b(e.typeParameters,n),s=e.parameters.map((e=>v(e,n)));return i?XC.createPropertySignature([XC.createModifier(148)],r(n,t),r(n,e.questionToken),XC.createFunctionTypeNode(a,s,o)):(zN(t)&&"new"===t.escapedText&&(t=XC.createStringLiteral("new")),XC.createMethodSignature([],r(n,t),r(n,e.questionToken),a,s,o))}function k(e,n,i){const o=t.getAllAccessorDeclarations(e),a=o.getAccessor&&_(o.getAccessor),c=o.setAccessor&&_(o.setAccessor);if(void 0!==a&&void 0!==c)return m(i,e,(()=>{const t=e.parameters.map((e=>v(e,i)));return wu(e)?XC.updateGetAccessorDeclaration(e,[],r(i,n),t,s(a,i),void 0):XC.updateSetAccessorDeclaration(e,[],r(i,n),t,void 0)}));if(o.firstAccessor===e){const t=(a?m(i,o.getAccessor,(()=>s(a,i))):c?m(i,o.setAccessor,(()=>s(c,i))):void 0)??f(e,o,i,void 0);return XC.createPropertySignature(void 0===o.setAccessor?[XC.createModifier(148)]:[],r(i,n),void 0,t)}}function S(){return n?XC.createKeywordTypeNode(157):XC.createKeywordTypeNode(133)}function T(e,t,n,i,o){let a;return i?(224===e.kind&&40===e.operator&&(a=XC.createLiteralTypeNode(r(n,e.operand))),a=XC.createLiteralTypeNode(r(n,e))):a=XC.createKeywordTypeNode(t),SK(C(a,o,e,n))}function C(e,t,r,i){const o=r&&nh(r).parent,a=o&&lu(o)&&KT(o);return n&&(t||a)?(N(e)||i.tracker.reportInferenceFallback(e),FD(e)?XC.createUnionTypeNode([...e.types,XC.createKeywordTypeNode(157)]):XC.createUnionTypeNode([e,XC.createKeywordTypeNode(157)])):e}function N(e){return!n||!(!Th(e.kind)&&201!==e.kind&&184!==e.kind&&185!==e.kind&&188!==e.kind&&189!==e.kind&&187!==e.kind&&203!==e.kind&&197!==e.kind)||(196===e.kind?N(e.type):(192===e.kind||193===e.kind)&&e.types.every(N))}function D(e,n,r,i=!0){let s=wK;const c=wg(e)?pv(e.parameters[0]):mv(e);return c?s=SK(a(c,r,e,n)):Zg(e)&&(s=function(e,t){let n;if(e&&!Cd(e.body)){if(3&Ih(e))return wK;const t=e.body;t&&CF(t)?wf(t,(e=>e.parent!==t||n?(n=void 0,!0):void(n=e.expression))):n=t}if(n){if(!F(n))return h(n,t);{const e=oA(n)?aA(n):gF(n)||YD(n)?n.type:void 0;if(e&&!xl(e))return SK(o(e,t))}}return wK}(e,r)),void 0!==s.type?s.type:function(e,n,r){return r&&n.tracker.reportInferenceFallback(e),!0===n.noInferenceFallback?XC.createKeywordTypeNode(133):t.serializeReturnTypeForSignature(n,e)??XC.createKeywordTypeNode(133)}(e,r,i&&s.reportFallback&&!c)}function F(e){return _c(e.parent,(e=>GD(e)||!i_(e)&&!!pv(e)||kE(e)||AE(e)))}}var DK={};i(DK,{NameValidationResult:()=>QK,discoverTypings:()=>GK,isTypingUpToDate:()=>WK,loadSafeList:()=>HK,loadTypesMap:()=>KK,nonRelativeModuleNameForTypingCache:()=>$K,renderPackageNameValidationFailure:()=>tG,validatePackageName:()=>ZK});var FK,EK,PK="action::set",AK="action::invalidate",IK="action::packageInstalled",OK="event::typesRegistry",LK="event::beginInstallTypes",jK="event::endInstallTypes",RK="event::initializationFailed",MK="action::watchTypingLocations";function BK(e){return so.args.includes(e)}function JK(e){const t=so.args.indexOf(e);return t>=0&&te.readFile(t)));return new Map(Object.entries(n.config))}function KK(e,t){var n;const r=YO(t,(t=>e.readFile(t)));if(null==(n=r.config)?void 0:n.simpleMap)return new Map(Object.entries(r.config.simpleMap))}function GK(e,t,n,r,i,o,a,s,c,l){if(!a||!a.enable)return{cachedTypingPaths:[],newTypingNames:[],filesToWatch:[]};const _=new Map;n=B(n,(e=>{const t=Jo(e);if(AS(t))return t}));const u=[];a.include&&y(a.include,"Explicitly included types");const p=a.exclude||[];if(!l.types){const e=new Set(n.map(Do));e.add(r),e.forEach((e=>{v(e,"bower.json","bower_components",u),v(e,"package.json","node_modules",u)}))}a.disableFilenameBasedTypeAcquisition||function(e){const n=B(e,(e=>{if(!AS(e))return;const t=Jt(zS(_t(Fo(e))));return i.get(t)}));n.length&&y(n,"Inferred typings from file names"),$(e,(e=>ko(e,".jsx")))&&(t&&t("Inferred 'react' typings due to presence of '.jsx' extension"),h("react"))}(n),s&&y(Q(s.map($K),ht,Ct),"Inferred typings from unresolved imports");for(const e of p)_.delete(e)&&t&&t(`Typing for ${e} is in exclude list, will be ignored.`);o.forEach(((e,t)=>{const n=c.get(t);!1===_.get(t)&&void 0!==n&&WK(e,n)&&_.set(t,e.typingLocation)}));const f=[],m=[];_.forEach(((e,t)=>{e?m.push(e):f.push(t)}));const g={cachedTypingPaths:m,newTypingNames:f,filesToWatch:u};return t&&t(`Finished typings discovery:${VK(g)}`),g;function h(e){_.has(e)||_.set(e,!1)}function y(e,n){t&&t(`${n}: ${JSON.stringify(e)}`),d(e,h)}function v(n,r,i,o){const a=jo(n,r);let s,c;e.fileExists(a)&&(o.push(a),s=YO(a,(t=>e.readFile(t))).config,c=O([s.dependencies,s.devDependencies,s.optionalDependencies,s.peerDependencies],Ee),y(c,`Typing names in '${a}' dependencies`));const l=jo(n,i);if(o.push(l),!e.directoryExists(l))return;const u=[],d=c?c.map((e=>jo(l,e,r))):e.readDirectory(l,[".json"],void 0,void 0,3).filter((e=>{if(Fo(e)!==r)return!1;const t=Ao(Jo(e)),n="@"===t[t.length-3][0];return n&&_t(t[t.length-4])===i||!n&&_t(t[t.length-3])===i}));t&&t(`Searching for typing names in ${l}; all files: ${JSON.stringify(d)}`);for(const n of d){const r=Jo(n),i=YO(r,(t=>e.readFile(t))).config;if(!i.name)continue;const o=i.types||i.typings;if(o){const n=Bo(o,Do(r));e.fileExists(n)?(t&&t(` Package '${i.name}' provides its own types.`),_.set(i.name,n)):t&&t(` Package '${i.name}' provides its own types but they are missing.`)}else u.push(i.name)}y(u," Found package names")}}var XK,QK=(e=>(e[e.Ok=0]="Ok",e[e.EmptyName=1]="EmptyName",e[e.NameTooLong=2]="NameTooLong",e[e.NameStartsWithDot=3]="NameStartsWithDot",e[e.NameStartsWithUnderscore=4]="NameStartsWithUnderscore",e[e.NameContainsNonURISafeCharacters=5]="NameContainsNonURISafeCharacters",e))(QK||{}),YK=214;function ZK(e){return eG(e,!0)}function eG(e,t){if(!e)return 1;if(e.length>YK)return 2;if(46===e.charCodeAt(0))return 3;if(95===e.charCodeAt(0))return 4;if(t){const t=/^@([^/]+)\/([^/]+)$/.exec(e);if(t){const e=eG(t[1],!1);if(0!==e)return{name:t[1],isScopeName:!0,result:e};const n=eG(t[2],!1);return 0!==n?{name:t[2],isScopeName:!1,result:n}:0}}return encodeURIComponent(e)!==e?5:0}function tG(e,t){return"object"==typeof e?nG(t,e.result,e.name,e.isScopeName):nG(t,e,t,!1)}function nG(e,t,n,r){const i=r?"Scope":"Package";switch(t){case 1:return`'${e}':: ${i} name '${n}' cannot be empty`;case 2:return`'${e}':: ${i} name '${n}' should be less than ${YK} characters`;case 3:return`'${e}':: ${i} name '${n}' cannot start with '.'`;case 4:return`'${e}':: ${i} name '${n}' cannot start with '_'`;case 5:return`'${e}':: ${i} name '${n}' contains non URI safe characters`;case 0:return un.fail();default:un.assertNever(t)}}(e=>{class t{constructor(e){this.text=e}getText(e,t){return 0===e&&t===this.text.length?this.text:this.text.substring(e,t)}getLength(){return this.text.length}getChangeRange(){}}e.fromString=function(e){return new t(e)}})(XK||(XK={}));var rG=(e=>(e[e.Dependencies=1]="Dependencies",e[e.DevDependencies=2]="DevDependencies",e[e.PeerDependencies=4]="PeerDependencies",e[e.OptionalDependencies=8]="OptionalDependencies",e[e.All=15]="All",e))(rG||{}),iG=(e=>(e[e.Off=0]="Off",e[e.On=1]="On",e[e.Auto=2]="Auto",e))(iG||{}),oG=(e=>(e[e.Semantic=0]="Semantic",e[e.PartialSemantic=1]="PartialSemantic",e[e.Syntactic=2]="Syntactic",e))(oG||{}),aG={},sG=(e=>(e.Original="original",e.TwentyTwenty="2020",e))(sG||{}),cG=(e=>(e.All="All",e.SortAndCombine="SortAndCombine",e.RemoveUnused="RemoveUnused",e))(cG||{}),lG=(e=>(e[e.Invoked=1]="Invoked",e[e.TriggerCharacter=2]="TriggerCharacter",e[e.TriggerForIncompleteCompletions=3]="TriggerForIncompleteCompletions",e))(lG||{}),_G=(e=>(e.Type="Type",e.Parameter="Parameter",e.Enum="Enum",e))(_G||{}),uG=(e=>(e.none="none",e.definition="definition",e.reference="reference",e.writtenReference="writtenReference",e))(uG||{}),dG=(e=>(e[e.None=0]="None",e[e.Block=1]="Block",e[e.Smart=2]="Smart",e))(dG||{}),pG=(e=>(e.Ignore="ignore",e.Insert="insert",e.Remove="remove",e))(pG||{});function fG(e){return{indentSize:4,tabSize:4,newLineCharacter:e||"\n",convertTabsToSpaces:!0,indentStyle:2,insertSpaceAfterConstructor:!1,insertSpaceAfterCommaDelimiter:!0,insertSpaceAfterSemicolonInForStatements:!0,insertSpaceBeforeAndAfterBinaryOperators:!0,insertSpaceAfterKeywordsInControlFlowStatements:!0,insertSpaceAfterFunctionKeywordForAnonymousFunctions:!1,insertSpaceAfterOpeningAndBeforeClosingNonemptyParenthesis:!1,insertSpaceAfterOpeningAndBeforeClosingNonemptyBrackets:!1,insertSpaceAfterOpeningAndBeforeClosingNonemptyBraces:!0,insertSpaceAfterOpeningAndBeforeClosingTemplateStringBraces:!1,insertSpaceAfterOpeningAndBeforeClosingJsxExpressionBraces:!1,insertSpaceBeforeFunctionParenthesis:!1,placeOpenBraceOnNewLineForFunctions:!1,placeOpenBraceOnNewLineForControlBlocks:!1,semicolons:"ignore",trimTrailingWhitespace:!0,indentSwitchCase:!0}}var mG=fG("\n"),gG=(e=>(e[e.aliasName=0]="aliasName",e[e.className=1]="className",e[e.enumName=2]="enumName",e[e.fieldName=3]="fieldName",e[e.interfaceName=4]="interfaceName",e[e.keyword=5]="keyword",e[e.lineBreak=6]="lineBreak",e[e.numericLiteral=7]="numericLiteral",e[e.stringLiteral=8]="stringLiteral",e[e.localName=9]="localName",e[e.methodName=10]="methodName",e[e.moduleName=11]="moduleName",e[e.operator=12]="operator",e[e.parameterName=13]="parameterName",e[e.propertyName=14]="propertyName",e[e.punctuation=15]="punctuation",e[e.space=16]="space",e[e.text=17]="text",e[e.typeParameterName=18]="typeParameterName",e[e.enumMemberName=19]="enumMemberName",e[e.functionName=20]="functionName",e[e.regularExpressionLiteral=21]="regularExpressionLiteral",e[e.link=22]="link",e[e.linkName=23]="linkName",e[e.linkText=24]="linkText",e))(gG||{}),hG=(e=>(e[e.None=0]="None",e[e.MayIncludeAutoImports=1]="MayIncludeAutoImports",e[e.IsImportStatementCompletion=2]="IsImportStatementCompletion",e[e.IsContinuation=4]="IsContinuation",e[e.ResolvedModuleSpecifiers=8]="ResolvedModuleSpecifiers",e[e.ResolvedModuleSpecifiersBeyondLimit=16]="ResolvedModuleSpecifiersBeyondLimit",e[e.MayIncludeMethodSnippets=32]="MayIncludeMethodSnippets",e))(hG||{}),yG=(e=>(e.Comment="comment",e.Region="region",e.Code="code",e.Imports="imports",e))(yG||{}),vG=(e=>(e[e.JavaScript=0]="JavaScript",e[e.SourceMap=1]="SourceMap",e[e.Declaration=2]="Declaration",e))(vG||{}),bG=(e=>(e[e.None=0]="None",e[e.InMultiLineCommentTrivia=1]="InMultiLineCommentTrivia",e[e.InSingleQuoteStringLiteral=2]="InSingleQuoteStringLiteral",e[e.InDoubleQuoteStringLiteral=3]="InDoubleQuoteStringLiteral",e[e.InTemplateHeadOrNoSubstitutionTemplate=4]="InTemplateHeadOrNoSubstitutionTemplate",e[e.InTemplateMiddleOrTail=5]="InTemplateMiddleOrTail",e[e.InTemplateSubstitutionPosition=6]="InTemplateSubstitutionPosition",e))(bG||{}),xG=(e=>(e[e.Punctuation=0]="Punctuation",e[e.Keyword=1]="Keyword",e[e.Operator=2]="Operator",e[e.Comment=3]="Comment",e[e.Whitespace=4]="Whitespace",e[e.Identifier=5]="Identifier",e[e.NumberLiteral=6]="NumberLiteral",e[e.BigIntLiteral=7]="BigIntLiteral",e[e.StringLiteral=8]="StringLiteral",e[e.RegExpLiteral=9]="RegExpLiteral",e))(xG||{}),kG=(e=>(e.unknown="",e.warning="warning",e.keyword="keyword",e.scriptElement="script",e.moduleElement="module",e.classElement="class",e.localClassElement="local class",e.interfaceElement="interface",e.typeElement="type",e.enumElement="enum",e.enumMemberElement="enum member",e.variableElement="var",e.localVariableElement="local var",e.variableUsingElement="using",e.variableAwaitUsingElement="await using",e.functionElement="function",e.localFunctionElement="local function",e.memberFunctionElement="method",e.memberGetAccessorElement="getter",e.memberSetAccessorElement="setter",e.memberVariableElement="property",e.memberAccessorVariableElement="accessor",e.constructorImplementationElement="constructor",e.callSignatureElement="call",e.indexSignatureElement="index",e.constructSignatureElement="construct",e.parameterElement="parameter",e.typeParameterElement="type parameter",e.primitiveType="primitive type",e.label="label",e.alias="alias",e.constElement="const",e.letElement="let",e.directory="directory",e.externalModuleName="external module name",e.jsxAttribute="JSX attribute",e.string="string",e.link="link",e.linkName="link name",e.linkText="link text",e))(kG||{}),SG=(e=>(e.none="",e.publicMemberModifier="public",e.privateMemberModifier="private",e.protectedMemberModifier="protected",e.exportedModifier="export",e.ambientModifier="declare",e.staticModifier="static",e.abstractModifier="abstract",e.optionalModifier="optional",e.deprecatedModifier="deprecated",e.dtsModifier=".d.ts",e.tsModifier=".ts",e.tsxModifier=".tsx",e.jsModifier=".js",e.jsxModifier=".jsx",e.jsonModifier=".json",e.dmtsModifier=".d.mts",e.mtsModifier=".mts",e.mjsModifier=".mjs",e.dctsModifier=".d.cts",e.ctsModifier=".cts",e.cjsModifier=".cjs",e))(SG||{}),TG=(e=>(e.comment="comment",e.identifier="identifier",e.keyword="keyword",e.numericLiteral="number",e.bigintLiteral="bigint",e.operator="operator",e.stringLiteral="string",e.whiteSpace="whitespace",e.text="text",e.punctuation="punctuation",e.className="class name",e.enumName="enum name",e.interfaceName="interface name",e.moduleName="module name",e.typeParameterName="type parameter name",e.typeAliasName="type alias name",e.parameterName="parameter name",e.docCommentTagName="doc comment tag name",e.jsxOpenTagName="jsx open tag name",e.jsxCloseTagName="jsx close tag name",e.jsxSelfClosingTagName="jsx self closing tag name",e.jsxAttribute="jsx attribute",e.jsxText="jsx text",e.jsxAttributeStringLiteralValue="jsx attribute string literal value",e))(TG||{}),CG=(e=>(e[e.comment=1]="comment",e[e.identifier=2]="identifier",e[e.keyword=3]="keyword",e[e.numericLiteral=4]="numericLiteral",e[e.operator=5]="operator",e[e.stringLiteral=6]="stringLiteral",e[e.regularExpressionLiteral=7]="regularExpressionLiteral",e[e.whiteSpace=8]="whiteSpace",e[e.text=9]="text",e[e.punctuation=10]="punctuation",e[e.className=11]="className",e[e.enumName=12]="enumName",e[e.interfaceName=13]="interfaceName",e[e.moduleName=14]="moduleName",e[e.typeParameterName=15]="typeParameterName",e[e.typeAliasName=16]="typeAliasName",e[e.parameterName=17]="parameterName",e[e.docCommentTagName=18]="docCommentTagName",e[e.jsxOpenTagName=19]="jsxOpenTagName",e[e.jsxCloseTagName=20]="jsxCloseTagName",e[e.jsxSelfClosingTagName=21]="jsxSelfClosingTagName",e[e.jsxAttribute=22]="jsxAttribute",e[e.jsxText=23]="jsxText",e[e.jsxAttributeStringLiteralValue=24]="jsxAttributeStringLiteralValue",e[e.bigintLiteral=25]="bigintLiteral",e))(CG||{}),wG=ms(99,!0),NG=(e=>(e[e.None=0]="None",e[e.Value=1]="Value",e[e.Type=2]="Type",e[e.Namespace=4]="Namespace",e[e.All=7]="All",e))(NG||{});function DG(e){switch(e.kind){case 260:return Fm(e)&&Gc(e)?7:1;case 169:case 208:case 172:case 171:case 303:case 304:case 174:case 173:case 176:case 177:case 178:case 262:case 218:case 219:case 299:case 291:return 1;case 168:case 264:case 265:case 187:return 2;case 346:return void 0===e.name?3:2;case 306:case 263:return 3;case 267:return ap(e)||1===wM(e)?5:4;case 266:case 275:case 276:case 271:case 272:case 277:case 278:return 7;case 307:return 5}return 7}function FG(e){const t=(e=NX(e)).parent;return 307===e.kind?1:pE(t)||gE(t)||xE(t)||dE(t)||rE(t)||tE(t)&&e===t.name?7:EG(e)?function(e){const t=166===e.kind?e:nD(e.parent)&&e.parent.right===e?e.parent:void 0;return t&&271===t.parent.kind?7:4}(e):ch(e)?DG(t):Zl(e)&&_c(e,en(WE,ju,$E))?7:function(e){switch(ub(e)&&(e=e.parent),e.kind){case 110:return!vm(e);case 197:return!0}switch(e.parent.kind){case 183:return!0;case 205:return!e.parent.isTypeOf;case 233:return Tf(e.parent)}return!1}(e)?2:function(e){return function(e){let t=e,n=!0;if(166===t.parent.kind){for(;t.parent&&166===t.parent.kind;)t=t.parent;n=t.right===e}return 183===t.parent.kind&&!n}(e)||function(e){let t=e,n=!0;if(211===t.parent.kind){for(;t.parent&&211===t.parent.kind;)t=t.parent;n=t.name===e}if(!n&&233===t.parent.kind&&298===t.parent.parent.kind){const e=t.parent.parent.parent;return 263===e.kind&&119===t.parent.parent.token||264===e.kind&&96===t.parent.parent.token}return!1}(e)}(e)?4:iD(t)?(un.assert(TP(t.parent)),2):MD(t)?3:1}function EG(e){for(;166===e.parent.kind;)e=e.parent;return wm(e.parent)&&e.parent.moduleReference===e}function PG(e,t=!1,n=!1){return JG(e,GD,RG,t,n)}function AG(e,t=!1,n=!1){return JG(e,XD,RG,t,n)}function IG(e,t=!1,n=!1){return JG(e,L_,RG,t,n)}function OG(e,t=!1,n=!1){return JG(e,QD,MG,t,n)}function LG(e,t=!1,n=!1){return JG(e,aD,RG,t,n)}function jG(e,t=!1,n=!1){return JG(e,vu,BG,t,n)}function RG(e){return e.expression}function MG(e){return e.tag}function BG(e){return e.tagName}function JG(e,t,n,r,i){let o=r?function(e){return GG(e)||XG(e)?e.parent:e}(e):zG(e);return i&&(o=cA(o)),!!o&&!!o.parent&&t(o.parent)&&n(o.parent)===o}function zG(e){return GG(e)?e.parent:e}function qG(e,t){for(;e;){if(256===e.kind&&e.label.escapedText===t)return e.label;e=e.parent}}function UG(e,t){return!!HD(e.expression)&&e.expression.name.text===t}function VG(e){var t;return zN(e)&&(null==(t=tt(e.parent,Tl))?void 0:t.label)===e}function WG(e){var t;return zN(e)&&(null==(t=tt(e.parent,JF))?void 0:t.label)===e}function $G(e){return WG(e)||VG(e)}function HG(e){var t;return(null==(t=tt(e.parent,Tu))?void 0:t.tagName)===e}function KG(e){var t;return(null==(t=tt(e.parent,nD))?void 0:t.right)===e}function GG(e){var t;return(null==(t=tt(e.parent,HD))?void 0:t.name)===e}function XG(e){var t;return(null==(t=tt(e.parent,KD))?void 0:t.argumentExpression)===e}function QG(e){var t;return(null==(t=tt(e.parent,QF))?void 0:t.name)===e}function YG(e){var t;return zN(e)&&(null==(t=tt(e.parent,n_))?void 0:t.name)===e}function ZG(e){switch(e.parent.kind){case 172:case 171:case 303:case 306:case 174:case 173:case 177:case 178:case 267:return Tc(e.parent)===e;case 212:return e.parent.argumentExpression===e;case 167:return!0;case 201:return 199===e.parent.parent.kind;default:return!1}}function eX(e){return Sm(e.parent.parent)&&Tm(e.parent.parent)===e}function tX(e){for(Ng(e)&&(e=e.parent.parent);;){if(!(e=e.parent))return;switch(e.kind){case 307:case 174:case 173:case 262:case 218:case 177:case 178:case 263:case 264:case 266:case 267:return e}}}function nX(e){switch(e.kind){case 307:return MI(e)?"module":"script";case 267:return"module";case 263:case 231:return"class";case 264:return"interface";case 265:case 338:case 346:return"type";case 266:return"enum";case 260:return t(e);case 208:return t(Qh(e));case 219:case 262:case 218:return"function";case 177:return"getter";case 178:return"setter";case 174:case 173:return"method";case 303:const{initializer:n}=e;return n_(n)?"method":"property";case 172:case 171:case 304:case 305:return"property";case 181:return"index";case 180:return"construct";case 179:return"call";case 176:case 175:return"constructor";case 168:return"type parameter";case 306:return"enum member";case 169:return wv(e,31)?"property":"parameter";case 271:case 276:case 281:case 274:case 280:return"alias";case 226:const r=eg(e),{right:i}=e;switch(r){case 7:case 8:case 9:case 0:default:return"";case 1:case 2:const e=nX(i);return""===e?"const":e;case 3:case 5:return eF(i)?"method":"property";case 4:return"property";case 6:return"local class"}case 80:return rE(e.parent)?"alias":"";case 277:const o=nX(e.expression);return""===o?"const":o;default:return""}function t(e){return rf(e)?"const":af(e)?"let":"var"}}function rX(e){switch(e.kind){case 110:return!0;case 80:return uv(e)&&169===e.parent.kind;default:return!1}}var iX=/^\/\/\/\s*=n}function _X(e,t,n){return dX(e.pos,e.end,t,n)}function uX(e,t,n,r){return dX(e.getStart(t),e.end,n,r)}function dX(e,t,n,r){return Math.max(e,n)e.kind===t))}function vX(e){const t=b(e.parent.getChildren(),(t=>AP(t)&&Gb(t,e)));return un.assert(!t||T(t.getChildren(),e)),t}function bX(e){return 90===e.kind}function xX(e){return 86===e.kind}function kX(e){return 100===e.kind}function SX(e,t){if(16777216&e.flags)return;const n=eZ(e,t);if(n)return n;const r=function(e){let t;return _c(e,(e=>(v_(e)&&(t=e),!nD(e.parent)&&!v_(e.parent)&&!g_(e.parent)))),t}(e);return r&&t.getTypeAtLocation(r)}function TX(e,t){if(e.importClause){if(e.importClause.name&&e.importClause.namedBindings)return;if(e.importClause.name)return e.importClause.name;if(e.importClause.namedBindings){if(uE(e.importClause.namedBindings)){const t=be(e.importClause.namedBindings.elements);if(!t)return;return t.name}if(lE(e.importClause.namedBindings))return e.importClause.namedBindings.name}}if(!t)return e.moduleSpecifier}function CX(e,t){if(e.exportClause){if(mE(e.exportClause)){if(!be(e.exportClause.elements))return;return e.exportClause.elements[0].name}if(_E(e.exportClause))return e.exportClause.name}if(!t)return e.moduleSpecifier}function wX(e,t){const{parent:n}=e;if(Yl(e)&&(t||90!==e.kind)?rI(n)&&T(n.modifiers,e):86===e.kind?HF(n)||pF(e):100===e.kind?$F(n)||eF(e):120===e.kind?KF(n):94===e.kind?XF(n):156===e.kind?GF(n):145===e.kind||144===e.kind?QF(n):102===e.kind?tE(n):139===e.kind?pD(n):153===e.kind&&fD(n)){const e=function(e,t){if(!t)switch(e.kind){case 263:case 231:return function(e){if(kc(e))return e.name;if(HF(e)){const t=e.modifiers&&b(e.modifiers,bX);if(t)return t}if(pF(e)){const t=b(e.getChildren(),xX);if(t)return t}}(e);case 262:case 218:return function(e){if(kc(e))return e.name;if($F(e)){const t=b(e.modifiers,bX);if(t)return t}if(eF(e)){const t=b(e.getChildren(),kX);if(t)return t}}(e);case 176:return e}if(kc(e))return e.name}(n,t);if(e)return e}if((115===e.kind||87===e.kind||121===e.kind)&&WF(n)&&1===n.declarations.length){const e=n.declarations[0];if(zN(e.name))return e.name}if(156===e.kind){if(rE(n)&&n.isTypeOnly){const e=TX(n.parent,t);if(e)return e}if(fE(n)&&n.isTypeOnly){const e=CX(n,t);if(e)return e}}if(130===e.kind){if(dE(n)&&n.propertyName||gE(n)&&n.propertyName||lE(n)||_E(n))return n.name;if(fE(n)&&n.exportClause&&_E(n.exportClause))return n.exportClause.name}if(102===e.kind&&nE(n)){const e=TX(n,t);if(e)return e}if(95===e.kind){if(fE(n)){const e=CX(n,t);if(e)return e}if(pE(n))return cA(n.expression)}if(149===e.kind&&xE(n))return n.expression;if(161===e.kind&&(nE(n)||fE(n))&&n.moduleSpecifier)return n.moduleSpecifier;if((96===e.kind||119===e.kind)&&jE(n)&&n.token===e.kind){const e=function(e){if(1===e.types.length)return e.types[0].expression}(n);if(e)return e}if(96===e.kind){if(iD(n)&&n.constraint&&vD(n.constraint))return n.constraint.typeName;if(PD(n)&&vD(n.extendsType))return n.extendsType.typeName}if(140===e.kind&&AD(n))return n.typeParameter.name;if(103===e.kind&&iD(n)&&RD(n.parent))return n.name;if(143===e.kind&&LD(n)&&143===n.operator&&vD(n.type))return n.type.typeName;if(148===e.kind&&LD(n)&&148===n.operator&&TD(n.type)&&vD(n.type.elementType))return n.type.elementType.typeName;if(!t){if((105===e.kind&&XD(n)||116===e.kind&&iF(n)||114===e.kind&&rF(n)||135===e.kind&&oF(n)||127===e.kind&&uF(n)||91===e.kind&&nF(n))&&n.expression)return cA(n.expression);if((103===e.kind||104===e.kind)&&cF(n)&&n.operatorToken===e)return cA(n.right);if(130===e.kind&&gF(n)&&vD(n.type))return n.type.typeName;if(103===e.kind&&IF(n)||165===e.kind&&OF(n))return cA(n.expression)}return e}function NX(e){return wX(e,!1)}function DX(e){return wX(e,!0)}function FX(e,t){return EX(e,t,(e=>Jh(e)||Th(e.kind)||qN(e)))}function EX(e,t,n){return AX(e,t,!1,n,!1)}function PX(e,t){return AX(e,t,!0,void 0,!1)}function AX(e,t,n,r,i){let o,a=e;for(;;){const i=a.getChildren(e),c=Ce(i,t,((e,t)=>t),((o,a)=>{const c=i[o].getEnd();if(ct?1:s(i[o],l,c)?i[o-1]&&s(i[o-1])?1:0:r&&l===t&&i[o-1]&&i[o-1].getEnd()===t&&s(i[o-1])?1:-1}));if(o)return o;if(!(c>=0&&i[c]))return a;a=i[c]}function s(a,s,c){if(c??(c=a.getEnd()),ct)return!1;if(tn.getStart(e)&&t(r.pos<=e.pos&&r.end>e.end||r.pos===e.end)&&YX(r,n)?t(r):void 0))}(t)}function jX(e,t,n,r){const i=function i(o){if(RX(o)&&1!==o.kind)return o;const a=o.getChildren(t),s=Ce(a,e,((e,t)=>t),((t,n)=>e=a[t-1].end?0:1:-1));if(s>=0&&a[s]){const n=a[s];if(e=e||!YX(n,t)||qX(n)){const e=BX(a,s,t,o.kind);return e?!r&&Su(e)&&e.getChildren(t).length?i(e):MX(e,t):void 0}return i(n)}}un.assert(void 0!==n||307===o.kind||1===o.kind||Su(o));const c=BX(a,a.length,t,o.kind);return c&&MX(c,t)}(n||t);return un.assert(!(i&&qX(i))),i}function RX(e){return Fl(e)&&!qX(e)}function MX(e,t){if(RX(e))return e;const n=e.getChildren(t);if(0===n.length)return e;const r=BX(n,n.length,t,e.kind);return r&&MX(r,t)}function BX(e,t,n,r){for(let i=t-1;i>=0;i--)if(qX(e[i]))0!==i||12!==r&&285!==r||un.fail("`JsxText` tokens should not be the first child of `JsxElement | JsxSelfClosingElement`");else if(YX(e[i],n))return e[i]}function JX(e,t,n=jX(t,e)){if(n&&ql(n)){const r=n.getStart(e),i=n.getEnd();if(rn.getStart(e)}function VX(e,t){const n=PX(e,t);return!!CN(n)||!(19!==n.kind||!AE(n.parent)||!kE(n.parent.parent))||!(30!==n.kind||!vu(n.parent)||!kE(n.parent.parent))}function WX(e,t){return function(n){for(;n;)if(n.kind>=285&&n.kind<=294||12===n.kind||30===n.kind||32===n.kind||80===n.kind||20===n.kind||19===n.kind||44===n.kind)n=n.parent;else{if(284!==n.kind)return!1;if(t>n.getStart(e))return!0;n=n.parent}return!1}(PX(e,t))}function $X(e,t,n){const r=Da(e.kind),i=Da(t),o=e.getFullStart(),a=n.text.lastIndexOf(i,o);if(-1===a)return;if(n.text.lastIndexOf(r,o-1)!!e.typeParameters&&e.typeParameters.length>=t))}function GX(e,t){if(-1===t.text.lastIndexOf("<",e?e.pos:t.text.length))return;let n=e,r=0,i=0;for(;n;){switch(n.kind){case 30:if(n=jX(n.getFullStart(),t),n&&29===n.kind&&(n=jX(n.getFullStart(),t)),!n||!zN(n))return;if(!r)return ch(n)?void 0:{called:n,nTypeArguments:i};r--;break;case 50:r=3;break;case 49:r=2;break;case 32:r++;break;case 20:if(n=$X(n,19,t),!n)return;break;case 22:if(n=$X(n,21,t),!n)return;break;case 24:if(n=$X(n,23,t),!n)return;break;case 28:i++;break;case 39:case 80:case 11:case 9:case 10:case 112:case 97:case 114:case 96:case 143:case 25:case 52:case 58:case 59:break;default:if(v_(n))break;return}n=jX(n.getFullStart(),t)}}function XX(e,t,n){return Zue.getRangeOfEnclosingComment(e,t,void 0,n)}function QX(e,t){return!!_c(PX(e,t),iP)}function YX(e,t){return 1===e.kind?!!e.jsDoc:0!==e.getWidth(t)}function ZX(e,t=0){const n=[],r=lu(e)?ic(e)&~t:0;return 2&r&&n.push("private"),4&r&&n.push("protected"),1&r&&n.push("public"),(256&r||uD(e))&&n.push("static"),64&r&&n.push("abstract"),32&r&&n.push("export"),65536&r&&n.push("deprecated"),33554432&e.flags&&n.push("declare"),277===e.kind&&n.push("export"),n.length>0?n.join(","):""}function eQ(e){return 183===e.kind||213===e.kind?e.typeArguments:n_(e)||263===e.kind||264===e.kind?e.typeParameters:void 0}function tQ(e){return 2===e||3===e}function nQ(e){return!(11!==e&&14!==e&&!Ol(e))}function rQ(e,t,n){return!!(4&t.flags)&&e.isEmptyAnonymousObjectType(n)}function iQ(e){if(!e.isIntersection())return!1;const{types:t,checker:n}=e;return 2===t.length&&(rQ(n,t[0],t[1])||rQ(n,t[1],t[0]))}function oQ(e,t,n){return Ol(e.kind)&&e.getStart(n){const n=jB(t);return!e[n]&&(e[n]=!0)}}function CQ(e){return e.getText(0,e.getLength())}function wQ(e,t){let n="";for(let r=0;r!(t.isDeclarationFile||e.isSourceFileFromExternalLibrary(t)||!t.externalModuleIndicator&&!t.commonJsModuleIndicator)))}function EQ(e){return e.getSourceFiles().some((t=>!t.isDeclarationFile&&!e.isSourceFileFromExternalLibrary(t)&&!!t.externalModuleIndicator))}function PQ(e){return!!e.module||hk(e)>=2||!!e.noEmit}function AQ(e,t){return{fileExists:t=>e.fileExists(t),getCurrentDirectory:()=>t.getCurrentDirectory(),readFile:We(t,t.readFile),useCaseSensitiveFileNames:We(t,t.useCaseSensitiveFileNames)||e.useCaseSensitiveFileNames,getSymlinkCache:We(t,t.getSymlinkCache)||e.getSymlinkCache,getModuleSpecifierCache:We(t,t.getModuleSpecifierCache),getPackageJsonInfoCache:()=>{var t;return null==(t=e.getModuleResolutionCache())?void 0:t.getPackageJsonInfoCache()},getGlobalTypingsCacheLocation:We(t,t.getGlobalTypingsCacheLocation),redirectTargetsMap:e.redirectTargetsMap,getProjectReferenceRedirect:t=>e.getProjectReferenceRedirect(t),isSourceOfProjectReferenceRedirect:t=>e.isSourceOfProjectReferenceRedirect(t),getNearestAncestorDirectoryWithPackageJson:We(t,t.getNearestAncestorDirectoryWithPackageJson),getFileIncludeReasons:()=>e.getFileIncludeReasons(),getCommonSourceDirectory:()=>e.getCommonSourceDirectory(),getDefaultResolutionModeForFile:t=>e.getDefaultResolutionModeForFile(t),getModeForResolutionAtIndex:(t,n)=>e.getModeForResolutionAtIndex(t,n)}}function IQ(e,t){return{...AQ(e,t),getCommonSourceDirectory:()=>e.getCommonSourceDirectory()}}function OQ(e){return 2===e||e>=3&&e<=99||100===e}function LQ(e,t,n,r,i){return XC.createImportDeclaration(void 0,e||t?XC.createImportClause(!!i,e,t&&t.length?XC.createNamedImports(t):void 0):void 0,"string"==typeof n?jQ(n,r):n,void 0)}function jQ(e,t){return XC.createStringLiteral(e,0===t)}var RQ=(e=>(e[e.Single=0]="Single",e[e.Double=1]="Double",e))(RQ||{});function MQ(e,t){return zm(e,t)?1:0}function BQ(e,t){if(t.quotePreference&&"auto"!==t.quotePreference)return"single"===t.quotePreference?0:1;{const t=Nm(e)&&e.imports&&b(e.imports,(e=>TN(e)&&!Zh(e.parent)));return t?MQ(t,e):1}}function JQ(e){switch(e){case 0:return"'";case 1:return'"';default:return un.assertNever(e)}}function zQ(e){const t=qQ(e);return void 0===t?void 0:fc(t)}function qQ(e){return"default"!==e.escapedName?e.escapedName:f(e.declarations,(e=>{const t=Tc(e);return t&&80===t.kind?t.escapedText:void 0}))}function UQ(e){return Lu(e)&&(xE(e.parent)||nE(e.parent)||PP(e.parent)||Om(e.parent,!1)&&e.parent.arguments[0]===e||cf(e.parent)&&e.parent.arguments[0]===e)}function VQ(e){return VD(e)&&qD(e.parent)&&zN(e.name)&&!e.propertyName}function WQ(e,t){const n=e.getTypeAtLocation(t.parent);return n&&e.getPropertyOfType(n,t.name.text)}function $Q(e,t,n){if(e)for(;e.parent;){if(qE(e.parent)||!HQ(n,e.parent,t))return e;e=e.parent}}function HQ(e,t,n){return Es(e,t.getStart(n))&&t.getEnd()<=Ds(e)}function KQ(e,t){return rI(e)?b(e.modifiers,(e=>e.kind===t)):void 0}function GQ(e,t,n,r,i){var o;const a=243===(Qe(n)?n[0]:n).kind?Bm:xp,s=N(t.statements,a),{comparer:c,isSorted:l}=Jle.getOrganizeImportsStringComparerWithDetection(s,i),_=Qe(n)?_e(n,((e,t)=>Jle.compareImportsOrRequireStatements(e,t,c))):[n];if(null==s?void 0:s.length)if(un.assert(Nm(t)),s&&l)for(const n of _){const r=Jle.getImportDeclarationInsertionIndex(s,n,c);if(0===r){const r=s[0]===t.statements[0]?{leadingTriviaOption:Tue.LeadingTriviaOption.Exclude}:{};e.insertNodeBefore(t,s[0],n,!1,r)}else{const i=s[r-1];e.insertNodeAfter(t,i,n)}}else{const n=ye(s);n?e.insertNodesAfter(t,n,_):e.insertNodesAtTopOfFile(t,_,r)}else if(Nm(t))e.insertNodesAtTopOfFile(t,_,r);else for(const n of _)e.insertStatementsInNewFile(t.fileName,[n],null==(o=lc(n))?void 0:o.getSourceFile())}function XQ(e,t){return un.assert(e.isTypeOnly),nt(e.getChildAt(0,t),kQ)}function QQ(e,t){return!!e&&!!t&&e.start===t.start&&e.length===t.length}function YQ(e,t,n){return(n?ht:gt)(e.fileName,t.fileName)&&QQ(e.textSpan,t.textSpan)}function ZQ(e){return(t,n)=>YQ(t,n,e)}function eY(e,t){if(e)for(let n=0;n!!oD(e)||!(VD(e)||qD(e)||UD(e))&&"quit"))}var aY=function(){const e=10*Uu;let t,n,r,i;c();const o=e=>s(e,17);return{displayParts:()=>{const n=t.length&&t[t.length-1].text;return i>e&&n&&"..."!==n&&(za(n.charCodeAt(n.length-1))||t.push(sY(" ",16)),t.push(sY("...",15))),t},writeKeyword:e=>s(e,5),writeOperator:e=>s(e,12),writePunctuation:e=>s(e,15),writeTrailingSemicolon:e=>s(e,15),writeSpace:e=>s(e,16),writeStringLiteral:e=>s(e,8),writeParameter:e=>s(e,13),writeProperty:e=>s(e,14),writeLiteral:e=>s(e,8),writeSymbol:function(n,r){i>e||(a(),i+=n.length,t.push(function(e,t){return sY(e,function(e){const t=e.flags;return 3&t?oY(e)?13:9:4&t||32768&t||65536&t?14:8&t?19:16&t?20:32&t?1:64&t?4:384&t?2:1536&t?11:8192&t?10:262144&t?18:524288&t||2097152&t?0:17}(t))}(n,r)))},writeLine:function(){i>e||(i+=1,t.push(SY()),n=!0)},write:o,writeComment:o,getText:()=>"",getTextPos:()=>0,getColumn:()=>0,getLine:()=>0,isAtStartOfLine:()=>!1,hasTrailingWhitespace:()=>!1,hasTrailingComment:()=>!1,rawWrite:ut,getIndent:()=>r,increaseIndent:()=>{r++},decreaseIndent:()=>{r--},clear:c};function a(){if(!(i>e)&&n){const e=Py(r);e&&(i+=e.length,t.push(sY(e,16))),n=!1}}function s(n,r){i>e||(a(),i+=n.length,t.push(sY(n,r)))}function c(){t=[],n=!0,r=0,i=0}}();function sY(e,t){return{text:e,kind:gG[t]}}function cY(){return sY(" ",16)}function lY(e){return sY(Da(e),5)}function _Y(e){return sY(Da(e),15)}function uY(e){return sY(Da(e),12)}function dY(e){return sY(e,13)}function pY(e){return sY(e,14)}function fY(e){const t=Fa(e);return void 0===t?mY(e):lY(t)}function mY(e){return sY(e,17)}function gY(e){return sY(e,0)}function hY(e){return sY(e,18)}function yY(e){return sY(e,24)}function vY(e){return sY(e,22)}function bY(e,t){var n;const r=[vY(`{@${HE(e)?"link":KE(e)?"linkcode":"linkplain"} `)];if(e.name){const i=null==t?void 0:t.getSymbolAtLocation(e.name),o=i&&t?EY(i,t):void 0,a=function(e){let t=e.indexOf("://");if(0===t){for(;t"===e[n]&&t--,n++,!t)return n}return 0}(e.text),s=Kd(e.name)+e.text.slice(0,a),c=function(e){let t=0;if(124===e.charCodeAt(t++)){for(;t{e.writeType(t,n,17408|r,i)}))}function wY(e,t,n,r,i=0){return TY((o=>{e.writeSymbol(t,n,r,8|i,o)}))}function NY(e,t,n,r=0){return r|=25632,TY((i=>{e.writeSignature(t,n,r,void 0,i)}))}function DY(e){return!!e.parent&&Rl(e.parent)&&e.parent.propertyName===e}function FY(e,t){return yS(e,t.getScriptKind&&t.getScriptKind(e))}function EY(e,t){let n=e;for(;PY(n)||Ku(n)&&n.links.target;)n=Ku(n)&&n.links.target?n.links.target:ix(n,t);return n}function PY(e){return!!(2097152&e.flags)}function AY(e,t){return RB(ix(e,t))}function IY(e,t){for(;za(e.charCodeAt(t));)t+=1;return t}function OY(e,t){for(;t>-1&&qa(e.charCodeAt(t));)t-=1;return t+1}function LY(e,t=!0){const n=e&&RY(e);return n&&!t&&JY(n),NT(n,!1)}function jY(e,t,n){let r=n(e);return r?YC(r,e):r=RY(e,n),r&&!t&&JY(r),r}function RY(e,t){const n=t?e=>jY(e,!0,t):LY,r=nJ(e,n,void 0,t?e=>e&&BY(e,!0,t):e=>e&&MY(e),n);return r===e?nI(TN(e)?YC(XC.createStringLiteralFromNode(e),e):kN(e)?YC(XC.createNumericLiteral(e.text,e.numericLiteralFlags),e):XC.cloneNode(e),e):(r.parent=void 0,r)}function MY(e,t=!0){if(e){const n=XC.createNodeArray(e.map((e=>LY(e,t))),e.hasTrailingComma);return nI(n,e),n}return e}function BY(e,t,n){return XC.createNodeArray(e.map((e=>jY(e,t,n))),e.hasTrailingComma)}function JY(e){zY(e),qY(e)}function zY(e){VY(e,1024,WY)}function qY(e){VY(e,2048,yx)}function UY(e,t){const n=e.getSourceFile();!function(e,t){const n=e.getFullStart(),r=e.getStart();for(let e=n;ee))}function $Y(e,t){let n=e;for(let r=1;!Td(t,n);r++)n=`${e}_${r}`;return n}function HY(e,t,n,r){let i=0,o=-1;for(const{fileName:a,textChanges:s}of e){un.assert(a===t);for(const e of s){const{span:t,newText:a}=e,s=YY(a,by(n));if(-1!==s&&(o=t.start+i+s,!r))return o;i+=a.length-t.length}}return un.assert(r),un.assert(o>=0),o}function KY(e,t,n,r,i){is(n.text,e.pos,QY(t,n,r,i,gw))}function GY(e,t,n,r,i){os(n.text,e.end,QY(t,n,r,i,vw))}function XY(e,t,n,r,i){os(n.text,e.pos,QY(t,n,r,i,gw))}function QY(e,t,n,r,i){return(o,a,s,c)=>{3===s?(o+=2,a-=2):o+=2,i(e,n||s,t.text.slice(o,a),void 0!==r?r:c)}}function YY(e,t){if(Gt(e,t))return 0;let n=e.indexOf(" "+t);return-1===n&&(n=e.indexOf("."+t)),-1===n&&(n=e.indexOf('"'+t)),-1===n?-1:n+1}function ZY(e){return cF(e)&&28===e.operatorToken.kind||$D(e)||(gF(e)||hF(e))&&$D(e.expression)}function eZ(e,t,n){const r=nh(e.parent);switch(r.kind){case 214:return t.getContextualType(r,n);case 226:{const{left:i,operatorToken:o,right:a}=r;return nZ(o.kind)?t.getTypeAtLocation(e===a?i:a):t.getContextualType(e,n)}case 296:return oZ(r,t);default:return t.getContextualType(e,n)}}function tZ(e,t,n){const r=BQ(e,t),i=JSON.stringify(n);return 0===r?`'${Dy(i).replace(/'/g,(()=>"\\'")).replace(/\\"/g,'"')}'`:i}function nZ(e){switch(e){case 37:case 35:case 38:case 36:return!0;default:return!1}}function rZ(e){switch(e.kind){case 11:case 15:case 228:case 215:return!0;default:return!1}}function iZ(e){return!!e.getStringIndexType()||!!e.getNumberIndexType()}function oZ(e,t){return t.getTypeAtLocation(e.parent.parent.expression)}var aZ="anonymous function";function sZ(e,t,n,r){const i=n.getTypeChecker();let o=!0;const a=()=>o=!1,s=i.typeToTypeNode(e,t,1,8,{trackSymbol:(e,t,n)=>(o=o&&0===i.isSymbolAccessible(e,t,n,!1).accessibility,!o),reportInaccessibleThisError:a,reportPrivateInBaseOfClassExpression:a,reportInaccessibleUniqueSymbolError:a,moduleResolverHost:IQ(n,r)});return o?s:void 0}function cZ(e){return 179===e||180===e||181===e||171===e||173===e}function lZ(e){return 262===e||176===e||174===e||177===e||178===e}function _Z(e){return 267===e}function uZ(e){return 243===e||244===e||246===e||251===e||252===e||253===e||257===e||259===e||172===e||265===e||272===e||271===e||278===e||270===e||277===e}var dZ=en(cZ,lZ,_Z,uZ);function pZ(e,t,n){const r=_c(t,(t=>t.end!==e?"quit":dZ(t.kind)));return!!r&&function(e,t){const n=e.getLastToken(t);if(n&&27===n.kind)return!1;if(cZ(e.kind)){if(n&&28===n.kind)return!1}else if(_Z(e.kind)){const n=ve(e.getChildren(t));if(n&&YF(n))return!1}else if(lZ(e.kind)){const n=ve(e.getChildren(t));if(n&&Rf(n))return!1}else if(!uZ(e.kind))return!1;if(246===e.kind)return!0;const r=LX(e,_c(e,(e=>!e.parent)),t);return!r||20===r.kind||t.getLineAndCharacterOfPosition(e.getEnd()).line!==t.getLineAndCharacterOfPosition(r.getStart(t)).line}(r,n)}function fZ(e){let t=0,n=0;return PI(e,(function r(i){if(uZ(i.kind)){const r=i.getLastToken(e);27===(null==r?void 0:r.kind)?t++:n++}else if(cZ(i.kind)){const r=i.getLastToken(e);27===(null==r?void 0:r.kind)?t++:r&&28!==r.kind&&Ja(e,r.getStart(e)).line!==Ja(e,Hp(e,r.end).start).line&&n++}return t+n>=5||PI(i,r)})),0===t&&n<=1||t/n>.2}function mZ(e,t){return bZ(e,e.getDirectories,t)||[]}function gZ(e,t,n,r,i){return bZ(e,e.readDirectory,t,n,r,i)||l}function hZ(e,t){return bZ(e,e.fileExists,t)}function yZ(e,t){return vZ((()=>Nb(t,e)))||!1}function vZ(e){try{return e()}catch{return}}function bZ(e,t,...n){return vZ((()=>t&&t.apply(e,n)))}function xZ(e,t){const n=[];return sM(t,e,(e=>{const r=jo(e,"package.json");hZ(t,r)&&n.push(r)})),n}function kZ(e,t){let n;return sM(t,e,(e=>"node_modules"===e||(n=bU(e,(e=>hZ(t,e)),"package.json"),!!n||void 0))),n}function SZ(e,t){if(!t.readFile)return;const n=["dependencies","devDependencies","optionalDependencies","peerDependencies"],r=wb(t.readFile(e)||""),i={};if(r)for(const e of n){const t=r[e];if(!t)continue;const n=new Map;for(const e in t)n.set(e,t[e]);i[e]=n}const o=[[1,i.dependencies],[2,i.devDependencies],[8,i.optionalDependencies],[4,i.peerDependencies]];return{...i,parseable:!!r,fileName:e,get:a,has:(e,t)=>!!a(e,t)};function a(e,t=15){for(const[n,r]of o)if(r&&t&n){const t=r.get(e);if(void 0!==t)return t}}}function TZ(e,t,n){const r=(n.getPackageJsonsVisibleToFile&&n.getPackageJsonsVisibleToFile(e.fileName)||function(e,t){if(!t.fileExists)return[];const n=[];return sM(t,Do(e),(e=>{const r=jo(e,"package.json");if(t.fileExists(r)){const e=SZ(r,t);e&&n.push(e)}})),n}(e.fileName,n)).filter((e=>e.parseable));let i,o,a;return{allowsImportingAmbientModule:function(e,t){if(!r.length||!e.valueDeclaration)return!0;if(o){const t=o.get(e);if(void 0!==t)return t}else o=new Map;const n=Dy(e.getName());if(c(n))return o.set(e,!0),!0;const i=l(e.valueDeclaration.getSourceFile().fileName,t);if(void 0===i)return o.set(e,!0),!0;const a=s(i)||s(n);return o.set(e,a),a},getSourceFileInfo:function(e,t){if(!r.length)return{importable:!0,packageName:void 0};if(a){const t=a.get(e);if(void 0!==t)return t}else a=new Map;const n=l(e.fileName,t);if(!n){const t={importable:!0,packageName:n};return a.set(e,t),t}const i={importable:s(n),packageName:n};return a.set(e,i),i},allowsImportingSpecifier:function(e){return!(r.length&&!c(e))||(!(!vo(e)&&!go(e))||s(e))}};function s(e){const t=_(e);for(const e of r)if(e.has(t)||e.has(pM(t)))return!0;return!1}function c(t){return!!(Nm(e)&&Dm(e)&&CC.has(t)&&(void 0===i&&(i=CZ(e)),i))}function l(r,i){if(!r.includes("node_modules"))return;const o=BM.getNodeModulesPackageName(n.getCompilationSettings(),e,r,i,t);return o?vo(o)||go(o)?void 0:_(o):void 0}function _(e){const t=Ao(mM(e)).slice(1);return Gt(t[0],"@")?`${t[0]}/${t[1]}`:t[0]}}function CZ(e){return $(e.imports,(({text:e})=>CC.has(e)))}function wZ(e){return T(Ao(e),"node_modules")}function NZ(e){return void 0!==e.file&&void 0!==e.start&&void 0!==e.length}function DZ(e,t){const n=Ce(t,pQ(e),st,bt);if(n>=0){const r=t[n];return un.assertEqual(r.file,e.getSourceFile(),"Diagnostics proided to 'findDiagnosticForNode' must be from a single SourceFile"),nt(r,NZ)}}function FZ(e,t){var n;let r=Ce(t,e.start,(e=>e.start),vt);for(r<0&&(r=~r);(null==(n=t[r-1])?void 0:n.start)===e.start;)r--;const i=[],o=Ds(e);for(;;){const n=tt(t[r],NZ);if(!n||n.start>o)break;As(e,n)&&i.push(n),r++}return i}function EZ({startPosition:e,endPosition:t}){return Ws(e,void 0===t?e:t)}function PZ(e,t){return _c(PX(e,t.start),(n=>n.getStart(e)Ds(t)?"quit":U_(n)&&QQ(t,pQ(n,e))))}function AZ(e,t,n=st){return e?Qe(e)?n(E(e,t)):t(e,0):void 0}function IZ(e){return Qe(e)?ge(e):e}function OZ(e,t,n){return"export="===e.escapedName||"default"===e.escapedName?LZ(e)||jZ(function(e){var t;return un.checkDefined(e.parent,`Symbol parent was undefined. Flags: ${un.formatSymbolFlags(e.flags)}. Declarations: ${null==(t=e.declarations)?void 0:t.map((e=>{const t=un.formatSyntaxKind(e.kind),n=Fm(e),{expression:r}=e;return(n?"[JS]":"")+t+(r?` (expression: ${un.formatSyntaxKind(r.kind)})`:"")})).join(", ")}.`)}(e),t,!!n):e.name}function LZ(e){return f(e.declarations,(t=>{var n,r,i;if(pE(t))return null==(n=tt(cA(t.expression),zN))?void 0:n.text;if(gE(t)&&2097152===t.symbol.flags)return null==(r=tt(t.propertyName,zN))?void 0:r.text;return(null==(i=tt(Tc(t),zN))?void 0:i.text)||(e.parent&&!Gu(e.parent)?e.parent.getName():void 0)}))}function jZ(e,t,n){return RZ(zS(Dy(e.name)),t,n)}function RZ(e,t,n){const r=Fo(Mt(e,"/index"));let i="",o=!0;const a=r.charCodeAt(0);ds(a,t)?(i+=String.fromCharCode(a),n&&(i=i.toUpperCase())):o=!1;for(let e=1;ee.length)return!1;for(let i=0;i(e[e.Named=0]="Named",e[e.Default=1]="Default",e[e.Namespace=2]="Namespace",e[e.CommonJS=3]="CommonJS",e))(QZ||{}),YZ=(e=>(e[e.Named=0]="Named",e[e.Default=1]="Default",e[e.ExportEquals=2]="ExportEquals",e[e.UMD=3]="UMD",e[e.Module=4]="Module",e))(YZ||{});function ZZ(e){let t=1;const n=$e(),r=new Map,i=new Map;let o;const a={isUsableByFile:e=>e===o,isEmpty:()=>!n.size,clear:()=>{n.clear(),r.clear(),o=void 0},add:(e,s,c,l,_,u,d,p)=>{let f;if(e!==o&&(a.clear(),o=e),_){const t=zT(_.fileName);if(t){const{topLevelNodeModulesIndex:n,topLevelPackageNameIndex:r,packageRootIndex:o}=t;if(f=gM(mM(_.fileName.substring(r+1,o))),Gt(e,_.path.substring(0,n))){const e=i.get(f),t=_.fileName.substring(0,r+1);e?n>e.indexOf(PR)&&i.set(f,t):i.set(f,t)}}}const m=1===u&&yb(s)||s,g=0===u||Gu(m)?fc(c):function(e,t){let n;return _0(e,t,void 0,((e,t)=>(n=t?[e,t]:e,!0))),un.checkDefined(n)}(m,p),h="string"==typeof g?g:g[0],y="string"==typeof g?void 0:g[1],v=Dy(l.name),b=t++,x=ix(s,p),k=33554432&s.flags?void 0:s,S=33554432&l.flags?void 0:l;k&&S||r.set(b,[s,l]),n.add(function(e,t,n,r){const i=n||"";return`${e.length} ${RB(ix(t,r))} ${e} ${i}`}(h,s,Ts(v)?void 0:v,p),{id:b,symbolTableKey:c,symbolName:h,capitalizedSymbolName:y,moduleName:v,moduleFile:_,moduleFileName:null==_?void 0:_.fileName,packageName:f,exportKind:u,targetFlags:x.flags,isFromPackageJson:d,symbol:k,moduleSymbol:S})},get:(e,t)=>{if(e!==o)return;const r=n.get(t);return null==r?void 0:r.map(s)},search:(t,r,a,c)=>{if(t===o)return td(n,((t,n)=>{const{symbolName:o,ambientModuleName:l}=function(e){const t=e.indexOf(" "),n=e.indexOf(" ",t+1),r=parseInt(e.substring(0,t),10),i=e.substring(n+1),o=i.substring(0,r),a=i.substring(r+1);return{symbolName:o,ambientModuleName:""===a?void 0:a}}(n),_=r&&t[0].capitalizedSymbolName||o;if(a(_,t[0].targetFlags)){const r=t.map(s).filter(((n,r)=>function(t,n){if(!n||!t.moduleFileName)return!0;const r=e.getGlobalTypingsCacheLocation();if(r&&Gt(t.moduleFileName,r))return!0;const o=i.get(n);return!o||Gt(t.moduleFileName,o)}(n,t[r].packageName)));if(r.length){const e=c(r,_,!!l,n);if(void 0!==e)return e}}}))},releaseSymbols:()=>{r.clear()},onFileChanged:(e,t,n)=>!(c(e)&&c(t)||(o&&o!==t.path||n&&CZ(e)!==CZ(t)||!te(e.moduleAugmentations,t.moduleAugmentations)||!function(e,t){if(!te(e.ambientModuleNames,t.ambientModuleNames))return!1;let n=-1,r=-1;for(const i of t.ambientModuleNames){const o=e=>cp(e)&&e.name.text===i;if(n=k(e.statements,o,n+1),r=k(t.statements,o,r+1),e.statements[n]!==t.statements[r])return!1}return!0}(e,t)?(a.clear(),0):(o=t.path,1)))};return un.isDebugging&&Object.defineProperty(a,"__cache",{value:n}),a;function s(t){if(t.symbol&&t.moduleSymbol)return t;const{id:n,exportKind:i,targetFlags:o,isFromPackageJson:a,moduleFileName:s}=t,[c,_]=r.get(n)||l;if(c&&_)return{symbol:c,moduleSymbol:_,moduleFileName:s,exportKind:i,targetFlags:o,isFromPackageJson:a};const u=(a?e.getPackageJsonAutoImportProvider():e.getCurrentProgram()).getTypeChecker(),d=t.moduleSymbol||_||un.checkDefined(t.moduleFile?u.getMergedSymbol(t.moduleFile.symbol):u.tryFindAmbientModule(t.moduleName)),p=t.symbol||c||un.checkDefined(2===i?u.resolveExternalModuleSymbol(d):u.tryGetMemberInModuleExportsAndProperties(fc(t.symbolTableKey),d),`Could not find symbol '${t.symbolName}' by key '${t.symbolTableKey}' in module ${d.name}`);return r.set(n,[p,d]),{symbol:p,moduleSymbol:d,moduleFileName:s,exportKind:i,targetFlags:o,isFromPackageJson:a}}function c(e){return!(e.commonJsModuleIndicator||e.externalModuleIndicator||e.moduleAugmentations||e.ambientModuleNames)}}function e0(e,t,n,r,i,o,a,s){var c;if(!n){let n;const i=Dy(r.name);return CC.has(i)&&void 0!==(n=zZ(t,e))?n===Gt(i,"node:"):!o||o.allowsImportingAmbientModule(r,a)||t0(t,i)}if(un.assertIsDefined(n),t===n)return!1;const l=null==s?void 0:s.get(t.path,n.path,i,{});if(void 0!==(null==l?void 0:l.isBlockedByPackageJsonDependencies))return!l.isBlockedByPackageJsonDependencies||!!l.packageName&&t0(t,l.packageName);const _=jy(a),u=null==(c=a.getGlobalTypingsCacheLocation)?void 0:c.call(a),d=!!BM.forEachFileNameOfModule(t.fileName,n.fileName,a,!1,(r=>{const i=e.getSourceFile(r);return(i===n||!i)&&function(e,t,n,r,i){const o=sM(i,t,(e=>"node_modules"===Fo(e)?e:void 0)),a=o&&Do(n(o));return void 0===a||Gt(n(e),a)||!!r&&Gt(n(r),a)}(t.fileName,r,_,u,a)}));if(o){const e=d?o.getSourceFileInfo(n,a):void 0;return null==s||s.setBlockedByPackageJsonDependencies(t.path,n.path,i,{},null==e?void 0:e.packageName,!(null==e?void 0:e.importable)),!!(null==e?void 0:e.importable)||d&&!!(null==e?void 0:e.packageName)&&t0(t,e.packageName)}return d}function t0(e,t){return e.imports&&e.imports.some((e=>e.text===t||e.text.startsWith(t+"/")))}function n0(e,t,n,r,i){var o,a;const s=Ly(t),c=n.autoImportFileExcludePatterns&&r0(n,s);i0(e.getTypeChecker(),e.getSourceFiles(),c,t,((t,n)=>i(t,n,e,!1)));const l=r&&(null==(o=t.getPackageJsonAutoImportProvider)?void 0:o.call(t));if(l){const n=Un(),r=e.getTypeChecker();i0(l.getTypeChecker(),l.getSourceFiles(),c,t,((t,n)=>{(n&&!e.getSourceFile(n.fileName)||!n&&!r.resolveName(t.name,void 0,1536,!1))&&i(t,n,l,!0)})),null==(a=t.log)||a.call(t,"forEachExternalModuleToImportFrom autoImportProvider: "+(Un()-n))}}function r0(e,t){return B(e.autoImportFileExcludePatterns,(e=>{const n=uS(e,"","exclude");return n?fS(n,t):void 0}))}function i0(e,t,n,r,i){var o;const a=n&&o0(n,r);for(const t of e.getAmbientModules())t.name.includes("*")||n&&(null==(o=t.declarations)?void 0:o.every((e=>a(e.getSourceFile()))))||i(t,void 0);for(const n of t)Qp(n)&&!(null==a?void 0:a(n))&&i(e.getMergedSymbol(n.symbol),n)}function o0(e,t){var n;const r=null==(n=t.getSymlinkCache)?void 0:n.call(t).getSymlinkedDirectoriesByRealpath();return({fileName:n,path:i})=>{if(e.some((e=>e.test(n))))return!0;if((null==r?void 0:r.size)&&AR(n)){let o=Do(n);return sM(t,Do(i),(t=>{const i=r.get(Vo(t));if(i)return i.some((t=>e.some((e=>e.test(n.replace(o,t))))));o=Do(o)}))??!1}return!1}}function a0(e,t){return t.autoImportFileExcludePatterns?o0(r0(t,Ly(e)),e):()=>!1}function s0(e,t,n,r,i){var o,a,s,c,l;const _=Un();null==(o=t.getPackageJsonAutoImportProvider)||o.call(t);const u=(null==(a=t.getCachedExportInfoMap)?void 0:a.call(t))||ZZ({getCurrentProgram:()=>n,getPackageJsonAutoImportProvider:()=>{var e;return null==(e=t.getPackageJsonAutoImportProvider)?void 0:e.call(t)},getGlobalTypingsCacheLocation:()=>{var e;return null==(e=t.getGlobalTypingsCacheLocation)?void 0:e.call(t)}});if(u.isUsableByFile(e.path))return null==(s=t.log)||s.call(t,"getExportInfoMap: cache hit"),u;null==(c=t.log)||c.call(t,"getExportInfoMap: cache miss or empty; calculating new results");let d=0;try{n0(n,t,r,!0,((t,n,r,o)=>{++d%100==0&&(null==i||i.throwIfCancellationRequested());const a=new Set,s=r.getTypeChecker(),c=c0(t,s);c&&l0(c.symbol,s)&&u.add(e.path,c.symbol,1===c.exportKind?"default":"export=",t,n,c.exportKind,o,s),s.forEachExportAndPropertyOfModule(t,((r,i)=>{r!==(null==c?void 0:c.symbol)&&l0(r,s)&&vx(a,i)&&u.add(e.path,r,i,t,n,0,o,s)}))}))}catch(e){throw u.clear(),e}return null==(l=t.log)||l.call(t,`getExportInfoMap: done in ${Un()-_} ms`),u}function c0(e,t){const n=t.resolveExternalModuleSymbol(e);if(n!==e){const e=t.tryGetMemberInModuleExports("default",n);return e?{symbol:e,exportKind:1}:{symbol:n,exportKind:2}}const r=t.tryGetMemberInModuleExports("default",e);if(r)return{symbol:r,exportKind:1}}function l0(e,t){return!(t.isUndefinedSymbol(e)||t.isUnknownSymbol(e)||Vh(e)||Wh(e))}function _0(e,t,n,r){let i,o=e;const a=new Set;for(;o;){const e=LZ(o);if(e){const t=r(e);if(t)return t}if("default"!==o.escapedName&&"export="!==o.escapedName){const e=r(o.name);if(e)return e}if(i=ie(i,o),!vx(a,o))break;o=2097152&o.flags?t.getImmediateAliasedSymbol(o):void 0}for(const e of i??l)if(e.parent&&Gu(e.parent)){const t=r(jZ(e.parent,n,!1),jZ(e.parent,n,!0));if(t)return t}}function u0(){const e=ms(99,!1);function t(t,n,r){let i=0,o=0;const a=[],{prefix:s,pushTemplate:c}=function(e){switch(e){case 3:return{prefix:'"\\\n'};case 2:return{prefix:"'\\\n"};case 1:return{prefix:"/*\n"};case 4:return{prefix:"`\n"};case 5:return{prefix:"}\n",pushTemplate:!0};case 6:return{prefix:"",pushTemplate:!0};case 0:return{prefix:""};default:return un.assertNever(e)}}(n);t=s+t;const l=s.length;c&&a.push(16),e.setText(t);let _=0;const u=[];let d=0;do{i=e.scan(),Ph(i)||(p(),o=i);const n=e.getTokenEnd();if(m0(e.getTokenStart(),n,l,h0(i),u),n>=t.length){const t=f0(e,i,ye(a));void 0!==t&&(_=t)}}while(1!==i);function p(){switch(i){case 44:case 69:p0[o]||14!==e.reScanSlashToken()||(i=14);break;case 30:80===o&&d++;break;case 32:d>0&&d--;break;case 133:case 154:case 150:case 136:case 155:d>0&&!r&&(i=80);break;case 16:a.push(i);break;case 19:a.length>0&&a.push(i);break;case 20:if(a.length>0){const t=ye(a);16===t?(i=e.reScanTemplateToken(!1),18===i?a.pop():un.assertEqual(i,17,"Should have been a template middle.")):(un.assertEqual(t,19,"Should have been an open brace"),a.pop())}break;default:if(!Th(i))break;(25===o||Th(o)&&Th(i)&&!function(e,t){if(!aQ(e))return!0;switch(t){case 139:case 153:case 137:case 126:case 129:return!0;default:return!1}}(o,i))&&(i=80)}}return{endOfLineState:_,spans:u}}return{getClassificationsForLine:function(e,n,r){return function(e,t){const n=[],r=e.spans;let i=0;for(let e=0;e=0){const e=t-i;e>0&&n.push({length:e,classification:4})}n.push({length:o,classification:g0(a)}),i=t+o}const o=t.length-i;return o>0&&n.push({length:o,classification:4}),{entries:n,finalLexState:e.endOfLineState}}(t(e,n,r),e)},getEncodedLexicalClassifications:t}}var d0,p0=Me([80,11,9,10,14,110,46,47,22,24,20,112,97],(e=>e),(()=>!0));function f0(e,t,n){switch(t){case 11:{if(!e.isUnterminated())return;const t=e.getTokenText(),n=t.length-1;let r=0;for(;92===t.charCodeAt(n-r);)r++;if(!(1&r))return;return 34===t.charCodeAt(0)?3:2}case 3:return e.isUnterminated()?1:void 0;default:if(Ol(t)){if(!e.isUnterminated())return;switch(t){case 18:return 5;case 15:return 4;default:return un.fail("Only 'NoSubstitutionTemplateLiteral's and 'TemplateTail's can be unterminated; got SyntaxKind #"+t)}}return 16===n?6:void 0}}function m0(e,t,n,r,i){if(8===r)return;0===e&&n>0&&(e+=n);const o=t-e;o>0&&i.push(e-n,o,r)}function g0(e){switch(e){case 1:return 3;case 3:return 1;case 4:return 6;case 25:return 7;case 5:return 2;case 6:return 8;case 8:return 4;case 10:return 0;case 2:case 11:case 12:case 13:case 14:case 15:case 16:case 9:case 17:return 5;default:return}}function h0(e){if(Th(e))return 3;if(function(e){switch(e){case 42:case 44:case 45:case 40:case 41:case 48:case 49:case 50:case 30:case 32:case 33:case 34:case 104:case 103:case 130:case 152:case 35:case 36:case 37:case 38:case 51:case 53:case 52:case 56:case 57:case 75:case 74:case 79:case 71:case 72:case 73:case 65:case 66:case 67:case 69:case 70:case 64:case 28:case 61:case 76:case 77:case 78:return!0;default:return!1}}(e)||function(e){switch(e){case 40:case 41:case 55:case 54:case 46:case 47:return!0;default:return!1}}(e))return 5;if(e>=19&&e<=79)return 10;switch(e){case 9:return 4;case 10:return 25;case 11:return 6;case 14:return 7;case 7:case 3:case 2:return 1;case 5:case 4:return 8;default:return Ol(e)?6:2}}function y0(e,t,n,r,i){return S0(b0(e,t,n,r,i))}function v0(e,t){switch(t){case 267:case 263:case 264:case 262:case 231:case 218:case 219:e.throwIfCancellationRequested()}}function b0(e,t,n,r,i){const o=[];return n.forEachChild((function a(s){if(s&&Ms(i,s.pos,s.getFullWidth())){if(v0(t,s.kind),zN(s)&&!Cd(s)&&r.has(s.escapedText)){const t=e.getSymbolAtLocation(s),r=t&&x0(t,FG(s),e);r&&function(e,t,n){const r=t-e;un.assert(r>0,`Classification had non-positive length of ${r}`),o.push(e),o.push(r),o.push(n)}(s.getStart(n),s.getEnd(),r)}s.forEachChild(a)}})),{spans:o,endOfLineState:0}}function x0(e,t,n){const r=e.getFlags();return 2885600&r?32&r?11:384&r?12:524288&r?16:1536&r?4&t||1&t&&function(e){return $(e.declarations,(e=>QF(e)&&1===wM(e)))}(e)?14:void 0:2097152&r?x0(n.getAliasedSymbol(e),t,n):2&t?64&r?13:262144&r?15:void 0:void 0:void 0}function k0(e){switch(e){case 1:return"comment";case 2:return"identifier";case 3:return"keyword";case 4:return"number";case 25:return"bigint";case 5:return"operator";case 6:return"string";case 8:return"whitespace";case 9:return"text";case 10:return"punctuation";case 11:return"class name";case 12:return"enum name";case 13:return"interface name";case 14:return"module name";case 15:return"type parameter name";case 16:return"type alias name";case 17:return"parameter name";case 18:return"doc comment tag name";case 19:return"jsx open tag name";case 20:return"jsx close tag name";case 21:return"jsx self closing tag name";case 22:return"jsx attribute";case 23:return"jsx text";case 24:return"jsx attribute string literal value";default:return}}function S0(e){un.assert(e.spans.length%3==0);const t=e.spans,n=[];for(let e=0;e])*)(\/>)?)?/m.exec(i);if(!o)return!1;if(!o[3]||!(o[3]in Li))return!1;let a=e;_(a,o[1].length),a+=o[1].length,c(a,o[2].length,10),a+=o[2].length,c(a,o[3].length,21),a+=o[3].length;const s=o[4];let l=a;for(;;){const e=r.exec(s);if(!e)break;const t=a+e.index+e[1].length;t>l&&(_(l,t-l),l=t),c(l,e[2].length,22),l+=e[2].length,e[3].length&&(_(l,e[3].length),l+=e[3].length),c(l,e[4].length,5),l+=e[4].length,e[5].length&&(_(l,e[5].length),l+=e[5].length),c(l,e[6].length,24),l+=e[6].length}a+=o[4].length,a>l&&_(l,a-l),o[5]&&(c(a,o[5].length,10),a+=o[5].length);const u=e+n;return a=0),i>0){const t=n||m(e.kind,e);t&&c(r,i,t)}return!0}function m(e,t){if(Th(e))return 3;if((30===e||32===e)&&t&&eQ(t.parent))return 10;if(Ch(e)){if(t){const n=t.parent;if(64===e&&(260===n.kind||172===n.kind||169===n.kind||291===n.kind))return 5;if(226===n.kind||224===n.kind||225===n.kind||227===n.kind)return 5}return 10}if(9===e)return 4;if(10===e)return 25;if(11===e)return t&&291===t.parent.kind?24:6;if(14===e)return 6;if(Ol(e))return 6;if(12===e)return 23;if(80===e){if(t){switch(t.parent.kind){case 263:return t.parent.name===t?11:void 0;case 168:return t.parent.name===t?15:void 0;case 264:return t.parent.name===t?13:void 0;case 266:return t.parent.name===t?12:void 0;case 267:return t.parent.name===t?14:void 0;case 169:return t.parent.name===t?cv(t)?3:17:void 0}if(xl(t.parent))return 3}return 2}}function g(n){if(n&&Bs(r,i,n.pos,n.getFullWidth())){v0(e,n.kind);for(const e of n.getChildren(t))f(e)||g(e)}}}function w0(e){return!!e.sourceFile}function N0(e,t,n){return D0(e,t,n)}function D0(e,t="",n,r){const i=new Map,o=Wt(!!e);function a(e){return"function"==typeof e.getCompilationSettings?e.getCompilationSettings():e}function s(e,t,n,r,i,o,a,s){return _(e,t,n,r,i,o,!0,a,s)}function c(e,t,n,r,i,o,s,c){return _(e,t,a(n),r,i,o,!1,s,c)}function l(e,t){const n=w0(e)?e:e.get(un.checkDefined(t,"If there are more than one scriptKind's for same document the scriptKind should be provided"));return un.assert(void 0===t||!n||n.sourceFile.scriptKind===t,`Script kind should match provided ScriptKind:${t} and sourceFile.scriptKind: ${null==n?void 0:n.sourceFile.scriptKind}, !entry: ${!n}`),n}function _(e,t,o,s,c,_,u,d,p){var f,m,g,h;d=yS(e,d);const y=a(o),v=o===y?void 0:o,b=6===d?100:hk(y),x="object"==typeof p?p:{languageVersion:b,impliedNodeFormat:v&&hV(t,null==(h=null==(g=null==(m=null==(f=v.getCompilerHost)?void 0:f.call(v))?void 0:m.getModuleResolutionCache)?void 0:g.call(m))?void 0:h.getPackageJsonInfoCache(),v,y),setExternalModuleIndicator:dk(y),jsDocParsingMode:n};x.languageVersion=b,un.assertEqual(n,x.jsDocParsingMode);const k=i.size,S=E0(s,x.impliedNodeFormat),T=z(i,S,(()=>new Map));if(Hn){i.size>k&&Hn.instant(Hn.Phase.Session,"createdDocumentRegistryBucket",{configFilePath:y.configFilePath,key:S});const e=!$I(t)&&td(i,((e,n)=>n!==S&&e.has(t)&&n));e&&Hn.instant(Hn.Phase.Session,"documentRegistryBucketOverlap",{path:t,key1:e,key2:S})}const C=T.get(t);let w=C&&l(C,d);if(!w&&r){const e=r.getDocument(S,t);e&&e.scriptKind===d&&e.text===CQ(c)&&(un.assert(u),w={sourceFile:e,languageServiceRefCount:0},N())}if(w)w.sourceFile.version!==_&&(w.sourceFile=O8(w.sourceFile,c,_,c.getChangeRange(w.sourceFile.scriptSnapshot)),r&&r.setDocument(S,t,w.sourceFile)),u&&w.languageServiceRefCount++;else{const n=I8(e,c,x,_,!1,d);r&&r.setDocument(S,t,n),w={sourceFile:n,languageServiceRefCount:1},N()}return un.assert(0!==w.languageServiceRefCount),w.sourceFile;function N(){if(C)if(w0(C)){const e=new Map;e.set(C.sourceFile.scriptKind,C),e.set(d,w),T.set(t,e)}else C.set(d,w);else T.set(t,w)}}function u(e,t,n,r){const o=un.checkDefined(i.get(E0(t,r))),a=o.get(e),s=l(a,n);s.languageServiceRefCount--,un.assert(s.languageServiceRefCount>=0),0===s.languageServiceRefCount&&(w0(a)?o.delete(e):(a.delete(n),1===a.size&&o.set(e,m(a.values(),st))))}return{acquireDocument:function(e,n,r,i,c,l){return s(e,qo(e,t,o),n,F0(a(n)),r,i,c,l)},acquireDocumentWithKey:s,updateDocument:function(e,n,r,i,s,l){return c(e,qo(e,t,o),n,F0(a(n)),r,i,s,l)},updateDocumentWithKey:c,releaseDocument:function(e,n,r,i){return u(qo(e,t,o),F0(n),r,i)},releaseDocumentWithKey:u,getKeyForCompilationSettings:F0,getDocumentRegistryBucketKeyWithMode:E0,reportStats:function(){const e=Oe(i.keys()).filter((e=>e&&"_"===e.charAt(0))).map((e=>{const t=i.get(e),n=[];return t.forEach(((e,t)=>{w0(e)?n.push({name:t,scriptKind:e.sourceFile.scriptKind,refCount:e.languageServiceRefCount}):e.forEach(((e,r)=>n.push({name:t,scriptKind:r,refCount:e.languageServiceRefCount})))})),n.sort(((e,t)=>t.refCount-e.refCount)),{bucket:e,sourceFiles:n}}));return JSON.stringify(e,void 0,2)},getBuckets:()=>i}}function F0(e){return sR(e,bO)}function E0(e,t){return t?`${e}|${t}`:e}function P0(e,t,n,r,i,o,a){const s=Ly(r),c=Wt(s),l=A0(t,n,c,a),_=A0(n,t,c,a);return Tue.ChangeTracker.with({host:r,formatContext:i,preferences:o},(i=>{!function(e,t,n,r,i,o,a){const{configFile:s}=e.getCompilerOptions();if(!s)return;const c=Do(s.fileName),l=Vf(s);function _(e){const t=WD(e.initializer)?e.initializer.elements:[e.initializer];let n=!1;for(const e of t)n=u(e)||n;return n}function u(e){if(!TN(e))return!1;const r=I0(c,e.text),i=n(r);return void 0!==i&&(t.replaceRangeWithText(s,R0(e,s),d(i)),!0)}function d(e){return na(c,e,!a)}l&&M0(l,((e,n)=>{switch(n){case"files":case"include":case"exclude":{if(_(e)||"include"!==n||!WD(e.initializer))return;const l=B(e.initializer.elements,(e=>TN(e)?e.text:void 0));if(0===l.length)return;const u=pS(c,[],l,a,o);return void(fS(un.checkDefined(u.includeFilePattern),a).test(r)&&!fS(un.checkDefined(u.includeFilePattern),a).test(i)&&t.insertNodeAfter(s,ve(e.initializer.elements),XC.createStringLiteral(d(i))))}case"compilerOptions":return void M0(e.initializer,((e,t)=>{const n=WO(t);un.assert("listOrElement"!==(null==n?void 0:n.type)),n&&(n.isFilePath||"list"===n.type&&n.element.isFilePath)?_(e):"paths"===t&&M0(e.initializer,(e=>{if(WD(e.initializer))for(const t of e.initializer.elements)u(t)}))}))}}))}(e,i,l,t,n,r.getCurrentDirectory(),s),function(e,t,n,r,i,o){const a=e.getSourceFiles();for(const s of a){const c=n(s.fileName),l=c??s.fileName,_=Do(l),u=r(s.fileName),d=u||s.fileName,p=Do(d),f=void 0!==c||void 0!==u;j0(s,t,(e=>{if(!vo(e))return;const t=I0(p,e),r=n(t);return void 0===r?void 0:Wo(na(_,r,o))}),(t=>{const r=e.getTypeChecker().getSymbolAtLocation(t);if((null==r?void 0:r.declarations)&&r.declarations.some((e=>ap(e))))return;const o=void 0!==u?L0(t,bR(t.text,d,e.getCompilerOptions(),i),n,a):O0(r,t,s,e,i,n);return void 0!==o&&(o.updated||f&&vo(t.text))?BM.updateModuleSpecifier(e.getCompilerOptions(),s,l,o.newFileName,AQ(e,i),t.text):void 0}))}}(e,i,l,_,r,c)}))}function A0(e,t,n,r){const i=n(e);return e=>{const o=r&&r.tryGetSourcePosition({fileName:e,pos:0}),a=function(e){if(n(e)===i)return t;const r=Qk(e,i,n);return void 0===r?void 0:t+"/"+r}(o?o.fileName:e);return o?void 0===a?void 0:function(e,t,n,r){const i=ia(e,t,r);return I0(Do(n),i)}(o.fileName,a,e,n):a}}function I0(e,t){return Wo(function(e,t){return Jo(jo(e,t))}(e,t))}function O0(e,t,n,r,i,o){if(e){const t=b(e.declarations,qE).fileName,n=o(t);return void 0===n?{newFileName:t,updated:!1}:{newFileName:n,updated:!0}}{const e=r.getModeForUsageLocation(n,t);return L0(t,i.resolveModuleNameLiterals||!i.resolveModuleNames?r.getResolvedModuleFromModuleSpecifier(t,n):i.getResolvedModuleWithFailedLookupLocationsFromCache&&i.getResolvedModuleWithFailedLookupLocationsFromCache(t.text,n.fileName,e),o,r.getSourceFiles())}}function L0(e,t,n,r){if(!t)return;if(t.resolvedModule){const e=o(t.resolvedModule.resolvedFileName);if(e)return e}return d(t.failedLookupLocations,(function(e){const t=n(e);return t&&b(r,(e=>e.fileName===t))?i(e):void 0}))||vo(e.text)&&d(t.failedLookupLocations,i)||t.resolvedModule&&{newFileName:t.resolvedModule.resolvedFileName,updated:!1};function i(e){return Rt(e,"/package.json")?void 0:o(e)}function o(e){const t=n(e);return t&&{newFileName:t,updated:!0}}}function j0(e,t,n,r){for(const r of e.referencedFiles||l){const i=n(r.fileName);void 0!==i&&i!==e.text.slice(r.pos,r.end)&&t.replaceRangeWithText(e,r,i)}for(const n of e.imports){const i=r(n);void 0!==i&&i!==n.text&&t.replaceRangeWithText(e,R0(n,e),i)}}function R0(e,t){return Pb(e.getStart(t)+1,e.end-1)}function M0(e,t){if($D(e))for(const n of e.properties)ME(n)&&TN(n.name)&&t(n,n.name.text)}(e=>{function t(e,t){return{fileName:t.fileName,textSpan:pQ(e,t),kind:"none"}}function n(e){return zF(e)?[e]:qF(e)?K(e.catchClause?n(e.catchClause):e.tryBlock&&n(e.tryBlock),e.finallyBlock&&n(e.finallyBlock)):n_(e)?void 0:i(e,n)}function r(e){return Tl(e)?[e]:n_(e)?void 0:i(e,r)}function i(e,t){const n=[];return e.forEachChild((e=>{const r=t(e);void 0!==r&&n.push(...Ye(r))})),n}function o(e,t){const n=a(t);return!!n&&n===e}function a(e){return _c(e,(t=>{switch(t.kind){case 255:if(251===e.kind)return!1;case 248:case 249:case 250:case 247:case 246:return!e.label||function(e,t){return!!_c(e.parent,(e=>JF(e)?e.label.escapedText===t:"quit"))}(t,e.label.escapedText);default:return n_(t)&&"quit"}}))}function s(e,t,...n){return!(!t||!T(n,t.kind)||(e.push(t),0))}function c(e){const t=[];if(s(t,e.getFirstToken(),99,117,92)&&246===e.kind){const n=e.getChildren();for(let e=n.length-1;e>=0&&!s(t,n[e],117);e--);}return d(r(e.statement),(n=>{o(e,n)&&s(t,n.getFirstToken(),83,88)})),t}function l(e){const t=a(e);if(t)switch(t.kind){case 248:case 249:case 250:case 246:case 247:return c(t);case 255:return _(t)}}function _(e){const t=[];return s(t,e.getFirstToken(),109),d(e.caseBlock.clauses,(n=>{s(t,n.getFirstToken(),84,90),d(r(n),(n=>{o(e,n)&&s(t,n.getFirstToken(),83)}))})),t}function u(e,t){const n=[];return s(n,e.getFirstToken(),113),e.catchClause&&s(n,e.catchClause.getFirstToken(),85),e.finallyBlock&&s(n,yX(e,98,t),98),n}function p(e,t){const r=function(e){let t=e;for(;t.parent;){const e=t.parent;if(Rf(e)||307===e.kind)return e;if(qF(e)&&e.tryBlock===t&&e.catchClause)return t;t=e}}(e);if(!r)return;const i=[];return d(n(r),(e=>{i.push(yX(e,111,t))})),Rf(r)&&wf(r,(e=>{i.push(yX(e,107,t))})),i}function f(e,t){const r=Hf(e);if(!r)return;const i=[];return wf(nt(r.body,CF),(e=>{i.push(yX(e,107,t))})),d(n(r.body),(e=>{i.push(yX(e,111,t))})),i}function m(e){const t=Hf(e);if(!t)return;const n=[];return t.modifiers&&t.modifiers.forEach((e=>{s(n,e,134)})),PI(t,(e=>{g(e,(e=>{oF(e)&&s(n,e.getFirstToken(),135)}))})),n}function g(e,t){t(e),n_(e)||__(e)||KF(e)||QF(e)||GF(e)||v_(e)||PI(e,(e=>g(e,t)))}e.getDocumentHighlights=function(e,n,r,i,o){const a=FX(r,i);if(a.parent&&(TE(a.parent)&&a.parent.tagName===a||CE(a.parent))){const{openingElement:e,closingElement:n}=a.parent.parent,i=[e,n].map((({tagName:e})=>t(e,r)));return[{fileName:r.fileName,highlightSpans:i}]}return function(e,t,n,r,i){const o=new Set(i.map((e=>e.fileName))),a=ice.getReferenceEntriesForNode(e,t,n,i,r,void 0,o);if(!a)return;const s=Be(a.map(ice.toHighlightSpan),(e=>e.fileName),(e=>e.span)),c=Wt(n.useCaseSensitiveFileNames());return Oe(J(s.entries(),(([e,t])=>{if(!o.has(e)){if(!n.redirectTargetsMap.has(qo(e,n.getCurrentDirectory(),c)))return;const t=n.getSourceFile(e);e=b(i,(e=>!!e.redirectInfo&&e.redirectInfo.redirectTarget===t)).fileName,un.assert(o.has(e))}return{fileName:e,highlightSpans:t}})))}(i,a,e,n,o)||function(e,n){const r=function(e,n){switch(e.kind){case 101:case 93:return FF(e.parent)?function(e,n){const r=function(e,t){const n=[];for(;FF(e.parent)&&e.parent.elseStatement===e;)e=e.parent;for(;;){const r=e.getChildren(t);s(n,r[0],101);for(let e=r.length-1;e>=0&&!s(n,r[e],93);e--);if(!e.elseStatement||!FF(e.elseStatement))break;e=e.elseStatement}return n}(e,n),i=[];for(let e=0;e=t.end;e--)if(!qa(n.text.charCodeAt(e))){a=!1;break}if(a){i.push({fileName:n.fileName,textSpan:Ws(t.getStart(),o.end),kind:"reference"}),e++;continue}}i.push(t(r[e],n))}return i}(e.parent,n):void 0;case 107:return o(e.parent,RF,f);case 111:return o(e.parent,zF,p);case 113:case 85:case 98:return o(85===e.kind?e.parent.parent:e.parent,qF,u);case 109:return o(e.parent,BF,_);case 84:case 90:return LE(e.parent)||OE(e.parent)?o(e.parent.parent.parent,BF,_):void 0;case 83:case 88:return o(e.parent,Tl,l);case 99:case 117:case 92:return o(e.parent,(e=>W_(e,!0)),c);case 137:return i(dD,[137]);case 139:case 153:return i(u_,[139,153]);case 135:return o(e.parent,oF,m);case 134:return a(m(e));case 127:return a(function(e){const t=Hf(e);if(!t)return;const n=[];return PI(t,(e=>{g(e,(e=>{uF(e)&&s(n,e.getFirstToken(),127)}))})),n}(e));case 103:case 147:return;default:return Gl(e.kind)&&(lu(e.parent)||wF(e.parent))?a((r=e.kind,B(function(e,t){const n=e.parent;switch(n.kind){case 268:case 307:case 241:case 296:case 297:return 64&t&&HF(e)?[...e.members,e]:n.statements;case 176:case 174:case 262:return[...n.parameters,...__(n.parent)?n.parent.members:[]];case 263:case 231:case 264:case 187:const r=n.members;if(15&t){const e=b(n.members,dD);if(e)return[...r,...e.parameters]}else if(64&t)return[...r,n];return r;default:return}}(e.parent,$v(r)),(e=>KQ(e,r))))):void 0}var r;function i(t,r){return o(e.parent,t,(e=>{var i;return B(null==(i=tt(e,ou))?void 0:i.symbol.declarations,(e=>t(e)?b(e.getChildren(n),(e=>T(r,e.kind))):void 0))}))}function o(e,t,r){return t(e)?a(r(e,n)):void 0}function a(e){return e&&e.map((e=>t(e,n)))}}(e,n);return r&&[{fileName:n.fileName,highlightSpans:r}]}(a,r)}})(d0||(d0={}));var B0=(e=>(e[e.exact=0]="exact",e[e.prefix=1]="prefix",e[e.substring=2]="substring",e[e.camelCase=3]="camelCase",e))(B0||{});function J0(e,t){return{kind:e,isCaseSensitive:t}}function z0(e){const t=new Map,n=e.trim().split(".").map((e=>{return{totalTextChunk:e1(t=e.trim()),subWordTextChunks:Z0(t)};var t}));return 1===n.length&&""===n[0].totalTextChunk.text?{getMatchForLastSegmentOfPattern:()=>J0(2,!0),getFullMatch:()=>J0(2,!0),patternContainsDots:!1}:n.some((e=>!e.subWordTextChunks.length))?void 0:{getFullMatch:(e,r)=>function(e,t,n,r){if(!V0(t,ve(n),r))return;if(n.length-1>e.length)return;let i;for(let t=n.length-2,o=e.length-1;t>=0;t-=1,o-=1)i=W0(i,V0(e[o],n[t],r));return i}(e,r,n,t),getMatchForLastSegmentOfPattern:e=>V0(e,ve(n),t),patternContainsDots:n.length>1}}function q0(e,t){let n=t.get(e);return n||t.set(e,n=n1(e)),n}function U0(e,t,n){const r=function(e,t){const n=e.length-t.length;for(let r=0;r<=n;r++)if(l1(t,((t,n)=>Q0(e.charCodeAt(n+r))===t)))return r;return-1}(e,t.textLowerCase);if(0===r)return J0(t.text.length===e.length?0:1,Gt(e,t.text));if(t.isLowerCase){if(-1===r)return;const i=q0(e,n);for(const n of i)if(H0(e,n,t.text,!0))return J0(2,H0(e,n,t.text,!1));if(t.text.length0)return J0(2,!0);if(t.characterSpans.length>0){const r=q0(e,n),i=!!K0(e,r,t,!1)||!K0(e,r,t,!0)&&void 0;if(void 0!==i)return J0(3,i)}}}function V0(e,t,n){if(l1(t.totalTextChunk.text,(e=>32!==e&&42!==e))){const r=U0(e,t.totalTextChunk,n);if(r)return r}const r=t.subWordTextChunks;let i;for(const t of r)i=W0(i,U0(e,t,n));return i}function W0(e,t){return kt([e,t],$0)}function $0(e,t){return void 0===e?1:void 0===t?-1:vt(e.kind,t.kind)||Ot(!e.isCaseSensitive,!t.isCaseSensitive)}function H0(e,t,n,r,i={start:0,length:n.length}){return i.length<=t.length&&c1(0,i.length,(o=>function(e,t,n){return n?Q0(e)===Q0(t):e===t}(n.charCodeAt(i.start+o),e.charCodeAt(t.start+o),r)))}function K0(e,t,n,r){const i=n.characterSpans;let o,a,s=0,c=0;for(;;){if(c===i.length)return!0;if(s===t.length)return!1;let l=t[s],_=!1;for(;c=65&&e<=90)return!0;if(e<127||!Ca(e,99))return!1;const t=String.fromCharCode(e);return t===t.toUpperCase()}function X0(e){if(e>=97&&e<=122)return!0;if(e<127||!Ca(e,99))return!1;const t=String.fromCharCode(e);return t===t.toLowerCase()}function Q0(e){return e>=65&&e<=90?e-65+97:e<127?e:String.fromCharCode(e).toLowerCase().charCodeAt(0)}function Y0(e){return e>=48&&e<=57}function Z0(e){const t=[];let n=0,r=0;for(let o=0;o0&&(t.push(e1(e.substr(n,r))),r=0);var i;return r>0&&t.push(e1(e.substr(n,r))),t}function e1(e){const t=e.toLowerCase();return{text:e,textLowerCase:t,isLowerCase:e===t,characterSpans:t1(e)}}function t1(e){return r1(e,!1)}function n1(e){return r1(e,!0)}function r1(e,t){const n=[];let r=0;for(let i=1;ii1(e)&&95!==e),t,n)}function a1(e,t,n){return t!==n&&t+1t(e.charCodeAt(n),n)))}function _1(e,t=!0,n=!1){const r={languageVersion:1,pragmas:void 0,checkJsDirective:void 0,referencedFiles:[],typeReferenceDirectives:[],libReferenceDirectives:[],amdDependencies:[],hasNoDefaultLib:void 0,moduleName:void 0},i=[];let o,a,s,c=0,l=!1;function _(){return a=s,s=wG.scan(),19===s?c++:20===s&&c--,s}function d(){const e=wG.getTokenValue(),t=wG.getTokenStart();return{fileName:e,pos:t,end:t+e.length}}function p(){i.push(d()),f()}function f(){0===c&&(l=!0)}function m(){let e=wG.getToken();return 138===e&&(e=_(),144===e&&(e=_(),11===e&&(o||(o=[]),o.push({ref:d(),depth:c}))),!0)}function g(){if(25===a)return!1;let e=wG.getToken();if(102===e){if(e=_(),21===e){if(e=_(),11===e||15===e)return p(),!0}else{if(11===e)return p(),!0;if(156===e&&wG.lookAhead((()=>{const e=wG.scan();return 161!==e&&(42===e||19===e||80===e||Th(e))}))&&(e=_()),80===e||Th(e))if(e=_(),161===e){if(e=_(),11===e)return p(),!0}else if(64===e){if(y(!0))return!0}else{if(28!==e)return!0;e=_()}if(19===e){for(e=_();20!==e&&1!==e;)e=_();20===e&&(e=_(),161===e&&(e=_(),11===e&&p()))}else 42===e&&(e=_(),130===e&&(e=_(),(80===e||Th(e))&&(e=_(),161===e&&(e=_(),11===e&&p()))))}return!0}return!1}function h(){let e=wG.getToken();if(95===e){if(f(),e=_(),156===e&&wG.lookAhead((()=>{const e=wG.scan();return 42===e||19===e}))&&(e=_()),19===e){for(e=_();20!==e&&1!==e;)e=_();20===e&&(e=_(),161===e&&(e=_(),11===e&&p()))}else if(42===e)e=_(),161===e&&(e=_(),11===e&&p());else if(102===e&&(e=_(),156===e&&wG.lookAhead((()=>{const e=wG.scan();return 80===e||Th(e)}))&&(e=_()),(80===e||Th(e))&&(e=_(),64===e&&y(!0))))return!0;return!0}return!1}function y(e,t=!1){let n=e?_():wG.getToken();return 149===n&&(n=_(),21===n&&(n=_(),(11===n||t&&15===n)&&p()),!0)}function v(){let e=wG.getToken();if(80===e&&"define"===wG.getTokenValue()){if(e=_(),21!==e)return!0;if(e=_(),11===e||15===e){if(e=_(),28!==e)return!0;e=_()}if(23!==e)return!0;for(e=_();24!==e&&1!==e;)11!==e&&15!==e||p(),e=_();return!0}return!1}if(t&&function(){for(wG.setText(e),_();1!==wG.getToken();){if(16===wG.getToken()){const e=[wG.getToken()];e:for(;u(e);){const t=wG.scan();switch(t){case 1:break e;case 102:g();break;case 16:e.push(t);break;case 19:u(e)&&e.push(t);break;case 20:u(e)&&(16===ye(e)?18===wG.reScanTemplateToken(!1)&&e.pop():e.pop())}}_()}m()||g()||h()||n&&(y(!1,!0)||v())||_()}wG.setText(void 0)}(),KI(r,e),GI(r,rt),l){if(o)for(const e of o)i.push(e.ref);return{referencedFiles:r.referencedFiles,typeReferenceDirectives:r.typeReferenceDirectives,libReferenceDirectives:r.libReferenceDirectives,importedFiles:i,isLibFile:!!r.hasNoDefaultLib,ambientExternalModules:void 0}}{let e;if(o)for(const t of o)0===t.depth?(e||(e=[]),e.push(t.ref.fileName)):i.push(t.ref);return{referencedFiles:r.referencedFiles,typeReferenceDirectives:r.typeReferenceDirectives,libReferenceDirectives:r.libReferenceDirectives,importedFiles:i,isLibFile:!!r.hasNoDefaultLib,ambientExternalModules:e}}}var u1=/^data:(?:application\/json;charset=[uU][tT][fF]-8;base64,([A-Za-z0-9+/=]+)$)?/;function d1(e){const t=Wt(e.useCaseSensitiveFileNames()),n=e.getCurrentDirectory(),r=new Map,i=new Map;return{tryGetSourcePosition:function e(t){if(!$I(t.fileName))return;if(!s(t.fileName))return;const n=a(t.fileName).getSourcePosition(t);return n&&n!==t?e(n)||n:void 0},tryGetGeneratedPosition:function(t){if($I(t.fileName))return;const n=s(t.fileName);if(!n)return;const r=e.getProgram();if(r.isSourceOfProjectReferenceRedirect(n.fileName))return;const i=r.getCompilerOptions().outFile,o=i?zS(i)+".d.ts":Uy(t.fileName,r.getCompilerOptions(),r);if(void 0===o)return;const c=a(o,t.fileName).getGeneratedPosition(t);return c===t?void 0:c},toLineColumnOffset:function(e,t){return c(e).getLineAndCharacterOfPosition(t)},clearCache:function(){r.clear(),i.clear()},documentPositionMappers:i};function o(e){return qo(e,n,t)}function a(n,r){const a=o(n),s=i.get(a);if(s)return s;let l;if(e.getDocumentPositionMapper)l=e.getDocumentPositionMapper(n,r);else if(e.readFile){const r=c(n);l=r&&p1({getSourceFileLike:c,getCanonicalFileName:t,log:t=>e.log(t)},n,lJ(r.text,ja(r)),(t=>!e.fileExists||e.fileExists(t)?e.readFile(t):void 0))}return i.set(a,l||SJ),l||SJ}function s(t){const n=e.getProgram();if(!n)return;const r=o(t),i=n.getSourceFileByPath(r);return i&&i.resolvedPath===r?i:void 0}function c(t){return e.getSourceFileLike?e.getSourceFileLike(t):s(t)||function(t){const n=o(t),i=r.get(n);if(void 0!==i)return i||void 0;if(!e.readFile||e.fileExists&&!e.fileExists(t))return void r.set(n,!1);const a=e.readFile(t),s=!!a&&function(e){return{text:e,lineMap:void 0,getLineAndCharacterOfPosition(e){return Ra(ja(this),e)}}}(a);return r.set(n,s),s||void 0}(t)}}function p1(e,t,n,r){let i=_J(n);if(i){const n=u1.exec(i);if(n){if(n[1]){const r=n[1];return f1(e,Sb(so,r),t)}i=void 0}}const o=[];i&&o.push(i),o.push(t+".map");const a=i&&Bo(i,Do(t));for(const n of o){const i=Bo(n,Do(t)),o=r(i,a);if(Ze(o))return f1(e,o,i);if(void 0!==o)return o||void 0}}function f1(e,t,n){const r=dJ(t);if(r&&r.sources&&r.file&&r.mappings&&(!r.sourcesContent||!r.sourcesContent.some(Ze)))return kJ(e,r,n)}var m1=new Map;function g1(e,t,n){var r;t.getSemanticDiagnostics(e,n);const i=[],o=t.getTypeChecker();var a;1!==t.getImpliedNodeFormatForEmit(e)&&!So(e.fileName,[".cts",".cjs"])&&e.commonJsModuleIndicator&&(EQ(t)||PQ(t.getCompilerOptions()))&&function(e){return e.statements.some((e=>{switch(e.kind){case 243:return e.declarationList.declarations.some((e=>!!e.initializer&&Om(h1(e.initializer),!0)));case 244:{const{expression:t}=e;if(!cF(t))return Om(t,!0);const n=eg(t);return 1===n||2===n}default:return!1}}))}(e)&&i.push(jp(cF(a=e.commonJsModuleIndicator)?a.left:a,la.File_is_a_CommonJS_module_it_may_be_converted_to_an_ES_module));const s=Dm(e);if(m1.clear(),function t(n){if(s)(function(e,t){var n,r,i,o;if(eF(e)){if(VF(e.parent)&&(null==(n=e.symbol.members)?void 0:n.size))return!0;const o=t.getSymbolOfExpando(e,!1);return!(!o||!(null==(r=o.exports)?void 0:r.size)&&!(null==(i=o.members)?void 0:i.size))}return!!$F(e)&&!!(null==(o=e.symbol.members)?void 0:o.size)})(n,o)&&i.push(jp(VF(n.parent)?n.parent.name:n,la.This_constructor_function_may_be_converted_to_a_class_declaration));else{if(wF(n)&&n.parent===e&&2&n.declarationList.flags&&1===n.declarationList.declarations.length){const e=n.declarationList.declarations[0].initializer;e&&Om(e,!0)&&i.push(jp(e,la.require_call_may_be_converted_to_an_import))}const t=f7.getJSDocTypedefNodes(n);for(const e of t)i.push(jp(e,la.JSDoc_typedef_may_be_converted_to_TypeScript_type));f7.parameterShouldGetTypeFromJSDoc(n)&&i.push(jp(n.name||n,la.JSDoc_types_may_be_moved_to_TypeScript_types))}w1(n)&&function(e,t,n){(function(e,t){return!Oh(e)&&e.body&&CF(e.body)&&function(e,t){return!!wf(e,(e=>b1(e,t)))}(e.body,t)&&v1(e,t)})(e,t)&&!m1.has(C1(e))&&n.push(jp(!e.name&&VF(e.parent)&&zN(e.parent.name)?e.parent.name:e,la.This_may_be_converted_to_an_async_function))}(n,o,i),n.forEachChild(t)}(e),Sk(t.getCompilerOptions()))for(const n of e.imports){const o=y1(yg(n));if(!o)continue;const a=null==(r=t.getResolvedModuleFromModuleSpecifier(n,e))?void 0:r.resolvedModule,s=a&&t.getSourceFile(a.resolvedFileName);s&&s.externalModuleIndicator&&!0!==s.externalModuleIndicator&&pE(s.externalModuleIndicator)&&s.externalModuleIndicator.isExportEquals&&i.push(jp(o,la.Import_may_be_converted_to_a_default_import))}return se(i,e.bindSuggestionDiagnostics),se(i,t.getSuggestionDiagnostics(e,n)),i.sort(((e,t)=>e.start-t.start)),i}function h1(e){return HD(e)?h1(e.expression):e}function y1(e){switch(e.kind){case 272:const{importClause:t,moduleSpecifier:n}=e;return t&&!t.name&&t.namedBindings&&274===t.namedBindings.kind&&TN(n)?t.namedBindings.name:void 0;case 271:return e.name;default:return}}function v1(e,t){const n=t.getSignatureFromDeclaration(e),r=n?t.getReturnTypeOfSignature(n):void 0;return!!r&&!!t.getPromisedTypeOfPromise(r)}function b1(e,t){return RF(e)&&!!e.expression&&x1(e.expression,t)}function x1(e,t){if(!k1(e)||!S1(e)||!e.arguments.every((e=>T1(e,t))))return!1;let n=e.expression.expression;for(;k1(n)||HD(n);)if(GD(n)){if(!S1(n)||!n.arguments.every((e=>T1(e,t))))return!1;n=n.expression.expression}else n=n.expression;return!0}function k1(e){return GD(e)&&(UG(e,"then")||UG(e,"catch")||UG(e,"finally"))}function S1(e){const t=e.expression.name.text,n="then"===t?2:"catch"===t||"finally"===t?1:0;return!(e.arguments.length>n)&&(e.arguments.length106===e.kind||zN(e)&&"undefined"===e.text)))}function T1(e,t){switch(e.kind){case 262:case 218:if(1&Ih(e))return!1;case 219:m1.set(C1(e),!0);case 106:return!0;case 80:case 211:{const n=t.getSymbolAtLocation(e);return!!n&&(t.isUndefinedSymbol(n)||$(ix(n,t).declarations,(e=>n_(e)||Fu(e)&&!!e.initializer&&n_(e.initializer))))}default:return!1}}function C1(e){return`${e.pos.toString()}:${e.end.toString()}`}function w1(e){switch(e.kind){case 262:case 174:case 218:case 219:return!0;default:return!1}}var N1=new Set(["isolatedModules"]);function D1(e,t){return O1(e,t,!1)}function F1(e,t){return O1(e,t,!0)}var E1,P1,A1='/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number {}\ninterface Object {}\ninterface RegExp {}\ninterface String {}\ninterface Array { length: number; [n: number]: T; }\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}',I1="lib.d.ts";function O1(e,t,n){E1??(E1=LI(I1,A1,{languageVersion:99}));const r=[],i=t.compilerOptions?j1(t.compilerOptions,r):{},o={target:1,jsx:1};for(const e in o)De(o,e)&&void 0===i[e]&&(i[e]=o[e]);for(const e of kO)i.verbatimModuleSyntax&&N1.has(e.name)||(i[e.name]=e.transpileOptionValue);i.suppressOutputPathCheck=!0,i.allowNonTsExtensions=!0,n?(i.declaration=!0,i.emitDeclarationOnly=!0,i.isolatedDeclarations=!0):(i.declaration=!1,i.declarationMap=!1);const a=Eb(i),s={getSourceFile:e=>e===Jo(c)?l:e===Jo(I1)?E1:void 0,writeFile:(e,t)=>{ko(e,".map")?(un.assertEqual(u,void 0,"Unexpected multiple source map outputs, file:",e),u=t):(un.assertEqual(_,void 0,"Unexpected multiple outputs, file:",e),_=t)},getDefaultLibFileName:()=>I1,useCaseSensitiveFileNames:()=>!1,getCanonicalFileName:e=>e,getCurrentDirectory:()=>"",getNewLine:()=>a,fileExists:e=>e===c||!!n&&e===I1,readFile:()=>"",directoryExists:()=>!0,getDirectories:()=>[]},c=t.fileName||(t.compilerOptions&&t.compilerOptions.jsx?"module.tsx":"module.ts"),l=LI(c,e,{languageVersion:hk(i),impliedNodeFormat:hV(qo(c,"",s.getCanonicalFileName),void 0,s,i),setExternalModuleIndicator:dk(i),jsDocParsingMode:t.jsDocParsingMode??0});let _,u;t.moduleName&&(l.moduleName=t.moduleName),t.renamedDependencies&&(l.renamedDependencies=new Map(Object.entries(t.renamedDependencies)));const d=bV(n?[c,I1]:[c],i,s);return t.reportDiagnostics&&(se(r,d.getSyntacticDiagnostics(l)),se(r,d.getOptionsDiagnostics())),se(r,d.emit(void 0,void 0,void 0,n,t.transformers,n).diagnostics),void 0===_?un.fail("Output generation failed"):{outputText:_,diagnostics:r,sourceMapText:u}}function L1(e,t,n,r,i){const o=D1(e,{compilerOptions:t,fileName:n,reportDiagnostics:!!r,moduleName:i});return se(r,o.diagnostics),o.outputText}function j1(e,t){P1=P1||N(mO,(e=>"object"==typeof e.type&&!td(e.type,(e=>"number"!=typeof e)))),e=sQ(e);for(const n of P1){if(!De(e,n.name))continue;const r=e[n.name];Ze(r)?e[n.name]=jO(n,r,t):td(n.type,(e=>e===r))||t.push(OO(n))}return e}var R1={};function M1(e,t,n,r,i,o,a){const s=z0(r);if(!s)return l;const c=[],_=1===e.length?e[0]:void 0;for(const r of e)n.throwIfCancellationRequested(),o&&r.isDeclarationFile||B1(r,!!a,_)||r.getNamedDeclarations().forEach(((e,n)=>{J1(s,n,e,t,r.fileName,!!a,_,c)}));return c.sort($1),(void 0===i?c:c.slice(0,i)).map(H1)}function B1(e,t,n){return e!==n&&t&&(wZ(e.path)||e.hasNoDefaultLib)}function J1(e,t,n,r,i,o,a,s){const c=e.getMatchForLastSegmentOfPattern(t);if(c)for(const l of n)if(z1(l,r,o,a))if(e.patternContainsDots){const n=e.getFullMatch(W1(l),t);n&&s.push({name:t,fileName:i,matchKind:n.kind,isCaseSensitive:n.isCaseSensitive,declaration:l})}else s.push({name:t,fileName:i,matchKind:c.kind,isCaseSensitive:c.isCaseSensitive,declaration:l})}function z1(e,t,n,r){var i;switch(e.kind){case 273:case 276:case 271:const o=t.getSymbolAtLocation(e.name),a=t.getAliasedSymbol(o);return o.escapedName!==a.escapedName&&!(null==(i=a.declarations)?void 0:i.every((e=>B1(e.getSourceFile(),n,r))));default:return!0}}function q1(e,t){const n=Tc(e);return!!n&&(V1(n,t)||167===n.kind&&U1(n.expression,t))}function U1(e,t){return V1(e,t)||HD(e)&&(t.push(e.name.text),!0)&&U1(e.expression,t)}function V1(e,t){return Jh(e)&&(t.push(zh(e)),!0)}function W1(e){const t=[],n=Tc(e);if(n&&167===n.kind&&!U1(n.expression,t))return l;t.shift();let r=tX(e);for(;r;){if(!q1(r,t))return l;r=tX(r)}return t.reverse(),t}function $1(e,t){return vt(e.matchKind,t.matchKind)||At(e.name,t.name)}function H1(e){const t=e.declaration,n=tX(t),r=n&&Tc(n);return{name:e.name,kind:nX(t),kindModifiers:ZX(t),matchKind:B0[e.matchKind],isCaseSensitive:e.isCaseSensitive,fileName:e.fileName,textSpan:pQ(t),containerName:r?r.text:"",containerKind:r?nX(n):""}}i(R1,{getNavigateToItems:()=>M1});var K1={};i(K1,{getNavigationBarItems:()=>i2,getNavigationTree:()=>o2});var G1,X1,Q1,Y1,Z1=/\s+/g,e2=150,t2=[],n2=[],r2=[];function i2(e,t){G1=t,X1=e;try{return E(function(e){const t=[];return function e(n){if(function(e){if(e.children)return!0;switch(c2(e)){case 263:case 231:case 266:case 264:case 267:case 307:case 265:case 346:case 338:return!0;case 219:case 262:case 218:return t(e);default:return!1}function t(e){if(!e.node.body)return!1;switch(c2(e.parent)){case 268:case 307:case 174:case 176:return!0;default:return!1}}}(n)&&(t.push(n),n.children))for(const t of n.children)e(t)}(e),t}(_2(e)),I2)}finally{a2()}}function o2(e,t){G1=t,X1=e;try{return A2(_2(e))}finally{a2()}}function a2(){X1=void 0,G1=void 0,t2=[],Q1=void 0,r2=[]}function s2(e){return U2(e.getText(X1))}function c2(e){return e.node.kind}function l2(e,t){e.children?e.children.push(t):e.children=[t]}function _2(e){un.assert(!t2.length);const t={node:e,name:void 0,additionalNodes:void 0,parent:void 0,children:void 0,indent:0};Q1=t;for(const t of e.statements)x2(t);return h2(),un.assert(!Q1&&!t2.length),t}function u2(e,t){l2(Q1,d2(e,t))}function d2(e,t){return{node:e,name:t||(lu(e)||U_(e)?Tc(e):void 0),additionalNodes:void 0,parent:Q1,children:void 0,indent:Q1.indent+1}}function p2(e){Y1||(Y1=new Map),Y1.set(e,!0)}function f2(e){for(let t=0;t0;t--)g2(e,n[t]);return[n.length-1,n[0]]}function g2(e,t){const n=d2(e,t);l2(Q1,n),t2.push(Q1),n2.push(Y1),Y1=void 0,Q1=n}function h2(){Q1.children&&(k2(Q1.children,Q1),D2(Q1.children)),Q1=t2.pop(),Y1=n2.pop()}function y2(e,t,n){g2(e,n),x2(t),h2()}function v2(e){e.initializer&&function(e){switch(e.kind){case 219:case 218:case 231:return!0;default:return!1}}(e.initializer)?(g2(e),PI(e.initializer,x2),h2()):y2(e,e.initializer)}function b2(e){const t=Tc(e);if(void 0===t)return!1;if(rD(t)){const e=t.expression;return ob(e)||kN(e)||Lh(e)}return!!t}function x2(e){if(G1.throwIfCancellationRequested(),e&&!Fl(e))switch(e.kind){case 176:const t=e;y2(t,t.body);for(const e of t.parameters)Ys(e,t)&&u2(e);break;case 174:case 177:case 178:case 173:b2(e)&&y2(e,e.body);break;case 172:b2(e)&&v2(e);break;case 171:b2(e)&&u2(e);break;case 273:const n=e;n.name&&u2(n.name);const{namedBindings:r}=n;if(r)if(274===r.kind)u2(r);else for(const e of r.elements)u2(e);break;case 304:y2(e,e.name);break;case 305:const{expression:i}=e;zN(i)?u2(e,i):u2(e);break;case 208:case 303:case 260:{const t=e;x_(t.name)?x2(t.name):v2(t);break}case 262:const o=e.name;o&&zN(o)&&p2(o.text),y2(e,e.body);break;case 219:case 218:y2(e,e.body);break;case 266:g2(e);for(const t of e.members)M2(t)||u2(t);h2();break;case 263:case 231:case 264:g2(e);for(const t of e.members)x2(t);h2();break;case 267:y2(e,R2(e).body);break;case 277:{const t=e.expression,n=$D(t)||GD(t)?t:tF(t)||eF(t)?t.body:void 0;n?(g2(e),x2(n),h2()):u2(e);break}case 281:case 271:case 181:case 179:case 180:case 265:u2(e);break;case 213:case 226:{const t=eg(e);switch(t){case 1:case 2:return void y2(e,e.right);case 6:case 3:{const n=e,r=n.left,i=3===t?r.expression:r;let o,a=0;return zN(i.expression)?(p2(i.expression.text),o=i.expression):[a,o]=m2(n,i.expression),6===t?$D(n.right)&&n.right.properties.length>0&&(g2(n,o),PI(n.right,x2),h2()):eF(n.right)||tF(n.right)?y2(e,n.right,o):(g2(n,o),y2(e,n.right,r.name),h2()),void f2(a)}case 7:case 9:{const n=e,r=7===t?n.arguments[0]:n.arguments[0].expression,i=n.arguments[1],[o,a]=m2(e,r);return g2(e,a),g2(e,nI(XC.createIdentifier(i.text),i)),x2(e.arguments[2]),h2(),h2(),void f2(o)}case 5:{const t=e,n=t.left,r=n.expression;if(zN(r)&&"prototype"!==lg(n)&&Y1&&Y1.has(r.text))return void(eF(t.right)||tF(t.right)?y2(e,t.right,r):ig(n)&&(g2(t,r),y2(t.left,t.right,sg(n)),h2()));break}case 4:case 0:case 8:break;default:un.assertNever(t)}}default:Nu(e)&&d(e.jsDoc,(e=>{d(e.tags,(e=>{Ng(e)&&u2(e)}))})),PI(e,x2)}}function k2(e,t){const n=new Map;D(e,((e,r)=>{const i=e.name||Tc(e.node),o=i&&s2(i);if(!o)return!0;const a=n.get(o);if(!a)return n.set(o,e),!0;if(a instanceof Array){for(const n of a)if(T2(n,e,r,t))return!1;return a.push(e),!0}{const i=a;return!T2(i,e,r,t)&&(n.set(o,[i,e]),!0)}}))}var S2={5:!0,3:!0,7:!0,9:!0,0:!1,1:!1,2:!1,8:!1,6:!0,4:!1};function T2(e,t,n,r){return!!function(e,t,n,r){function i(e){return eF(e)||$F(e)||VF(e)}const o=cF(t.node)||GD(t.node)?eg(t.node):0,a=cF(e.node)||GD(e.node)?eg(e.node):0;if(S2[o]&&S2[a]||i(e.node)&&S2[o]||i(t.node)&&S2[a]||HF(e.node)&&C2(e.node)&&S2[o]||HF(t.node)&&S2[a]||HF(e.node)&&C2(e.node)&&i(t.node)||HF(t.node)&&i(e.node)&&C2(e.node)){let o=e.additionalNodes&&ye(e.additionalNodes)||e.node;if(!HF(e.node)&&!HF(t.node)||i(e.node)||i(t.node)){const n=i(e.node)?e.node:i(t.node)?t.node:void 0;if(void 0!==n){const r=d2(nI(XC.createConstructorDeclaration(void 0,[],void 0),n));r.indent=e.indent+1,r.children=e.node===n?e.children:t.children,e.children=e.node===n?K([r],t.children||[t]):K(e.children||[{...e}],[r])}else(e.children||t.children)&&(e.children=K(e.children||[{...e}],t.children||[t]),e.children&&(k2(e.children,e),D2(e.children)));o=e.node=nI(XC.createClassDeclaration(void 0,e.name||XC.createIdentifier("__class__"),void 0,void 0,[]),e.node)}else e.children=K(e.children,t.children),e.children&&k2(e.children,e);const a=t.node;return r.children[n-1].node.end===o.end?nI(o,{pos:o.pos,end:a.end}):(e.additionalNodes||(e.additionalNodes=[]),e.additionalNodes.push(nI(XC.createClassDeclaration(void 0,e.name||XC.createIdentifier("__class__"),void 0,void 0,[]),t.node))),!0}return 0!==o}(e,t,n,r)||!!function(e,t,n){if(e.kind!==t.kind||e.parent!==t.parent&&(!w2(e,n)||!w2(t,n)))return!1;switch(e.kind){case 172:case 174:case 177:case 178:return Nv(e)===Nv(t);case 267:return N2(e,t)&&j2(e)===j2(t);default:return!0}}(e.node,t.node,r)&&(o=t,(i=e).additionalNodes=i.additionalNodes||[],i.additionalNodes.push(o.node),o.additionalNodes&&i.additionalNodes.push(...o.additionalNodes),i.children=K(i.children,o.children),i.children&&(k2(i.children,i),D2(i.children)),!0);var i,o}function C2(e){return!!(16&e.flags)}function w2(e,t){if(void 0===e.parent)return!1;const n=YF(e.parent)?e.parent.parent:e.parent;return n===t.node||T(t.additionalNodes,n)}function N2(e,t){return e.body&&t.body?e.body.kind===t.body.kind&&(267!==e.body.kind||N2(e.body,t.body)):e.body===t.body}function D2(e){e.sort(F2)}function F2(e,t){return At(E2(e.node),E2(t.node))||vt(c2(e),c2(t))}function E2(e){if(267===e.kind)return L2(e);const t=Tc(e);if(t&&e_(t)){const e=Bh(t);return e&&fc(e)}switch(e.kind){case 218:case 219:case 231:return z2(e);default:return}}function P2(e,t){if(267===e.kind)return U2(L2(e));if(t){const e=zN(t)?t.text:KD(t)?`[${s2(t.argumentExpression)}]`:s2(t);if(e.length>0)return U2(e)}switch(e.kind){case 307:const t=e;return MI(t)?`"${by(Fo(zS(Jo(t.fileName))))}"`:"";case 277:return pE(e)&&e.isExportEquals?"export=":"default";case 219:case 262:case 218:case 263:case 231:return 2048&Jv(e)?"default":z2(e);case 176:return"constructor";case 180:return"new()";case 179:return"()";case 181:return"[]";default:return""}}function A2(e){return{text:P2(e.node,e.name),kind:nX(e.node),kindModifiers:J2(e.node),spans:O2(e),nameSpan:e.name&&B2(e.name),childItems:E(e.children,A2)}}function I2(e){return{text:P2(e.node,e.name),kind:nX(e.node),kindModifiers:J2(e.node),spans:O2(e),childItems:E(e.children,(function(e){return{text:P2(e.node,e.name),kind:nX(e.node),kindModifiers:ZX(e.node),spans:O2(e),childItems:r2,indent:0,bolded:!1,grayed:!1}}))||r2,indent:e.indent,bolded:!1,grayed:!1}}function O2(e){const t=[B2(e.node)];if(e.additionalNodes)for(const n of e.additionalNodes)t.push(B2(n));return t}function L2(e){return ap(e)?Kd(e.name):j2(e)}function j2(e){const t=[zh(e.name)];for(;e.body&&267===e.body.kind;)e=e.body,t.push(zh(e.name));return t.join(".")}function R2(e){return e.body&&QF(e.body)?R2(e.body):e}function M2(e){return!e.name||167===e.name.kind}function B2(e){return 307===e.kind?gQ(e):pQ(e,X1)}function J2(e){return e.parent&&260===e.parent.kind&&(e=e.parent),ZX(e)}function z2(e){const{parent:t}=e;if(e.name&&od(e.name)>0)return U2(Ep(e.name));if(VF(t))return U2(Ep(t.name));if(cF(t)&&64===t.operatorToken.kind)return s2(t.left).replace(Z1,"");if(ME(t))return s2(t.name);if(2048&Jv(e))return"default";if(__(e))return"";if(GD(t)){let e=q2(t.expression);if(void 0!==e)return e=U2(e),e.length>e2?`${e} callback`:`${e}(${U2(B(t.arguments,(e=>Lu(e)||j_(e)?e.getText(X1):void 0)).join(", "))}) callback`}return""}function q2(e){if(zN(e))return e.text;if(HD(e)){const t=q2(e.expression),n=e.name.text;return void 0===t?n:`${t}.${n}`}}function U2(e){return(e=e.length>e2?e.substring(0,e2)+"...":e).replace(/\\?(?:\r?\n|[\r\u2028\u2029])/g,"")}var V2={};i(V2,{addExportsInOldFile:()=>S6,addImportsForMovedSymbols:()=>F6,addNewFileToTsconfig:()=>k6,addOrRemoveBracesToArrowFunction:()=>f3,addTargetFileImports:()=>n3,containsJsx:()=>z6,convertArrowFunctionOrFunctionExpression:()=>C3,convertParamsToDestructuredObject:()=>L3,convertStringOrTemplateLiteral:()=>e4,convertToOptionalChainExpression:()=>f4,createNewFileName:()=>B6,doChangeNamedToNamespaceOrDefault:()=>a6,extractSymbol:()=>w4,generateGetAccessorAndSetAccessor:()=>W4,getApplicableRefactors:()=>H2,getEditsForRefactor:()=>K2,getExistingLocals:()=>Y6,getIdentifierForNode:()=>t3,getNewStatementsAndRemoveFromOldFile:()=>x6,getStatementsToMove:()=>J6,getUsageInfo:()=>U6,inferFunctionReturnType:()=>G4,isInImport:()=>$6,isRefactorErrorInfo:()=>Z6,refactorKindBeginsWith:()=>e3,registerRefactor:()=>$2});var W2=new Map;function $2(e,t){W2.set(e,t)}function H2(e,t){return Oe(j(W2.values(),(n=>{var r;return e.cancellationToken&&e.cancellationToken.isCancellationRequested()||!(null==(r=n.kinds)?void 0:r.some((t=>e3(t,e.kind))))?void 0:n.getAvailableActions(e,t)})))}function K2(e,t,n,r){const i=W2.get(t);return i&&i.getEditsForAction(e,n,r)}var G2="Convert export",X2={name:"Convert default export to named export",description:Ux(la.Convert_default_export_to_named_export),kind:"refactor.rewrite.export.named"},Q2={name:"Convert named export to default export",description:Ux(la.Convert_named_export_to_default_export),kind:"refactor.rewrite.export.default"};function Y2(e,t=!0){const{file:n,program:r}=e,i=EZ(e),o=PX(n,i.start),a=o.parent&&32&Jv(o.parent)&&t?o.parent:$Q(o,n,i);if(!a||!(qE(a.parent)||YF(a.parent)&&ap(a.parent.parent)))return{error:Ux(la.Could_not_find_export_statement)};const s=r.getTypeChecker(),c=function(e,t){if(qE(e))return e.symbol;const n=e.parent.symbol;return n.valueDeclaration&&dp(n.valueDeclaration)?t.getMergedSymbol(n):n}(a.parent,s),l=Jv(a)||(pE(a)&&!a.isExportEquals?2080:0),_=!!(2048&l);if(!(32&l)||!_&&c.exports.has("default"))return{error:Ux(la.This_file_already_has_a_default_export)};const u=e=>zN(e)&&s.getSymbolAtLocation(e)?void 0:{error:Ux(la.Can_only_convert_named_export)};switch(a.kind){case 262:case 263:case 264:case 266:case 265:case 267:{const e=a;if(!e.name)return;return u(e.name)||{exportNode:e,exportName:e.name,wasDefault:_,exportingModuleSymbol:c}}case 243:{const e=a;if(!(2&e.declarationList.flags)||1!==e.declarationList.declarations.length)return;const t=ge(e.declarationList.declarations);if(!t.initializer)return;return un.assert(!_,"Can't have a default flag here"),u(t.name)||{exportNode:e,exportName:t.name,wasDefault:_,exportingModuleSymbol:c}}case 277:{const e=a;if(e.isExportEquals)return;return u(e.expression)||{exportNode:e,exportName:e.expression,wasDefault:_,exportingModuleSymbol:c}}default:return}}function Z2(e,t){return XC.createImportSpecifier(!1,e===t?void 0:XC.createIdentifier(e),XC.createIdentifier(t))}function e6(e,t){return XC.createExportSpecifier(!1,e===t?void 0:XC.createIdentifier(e),XC.createIdentifier(t))}$2(G2,{kinds:[X2.kind,Q2.kind],getAvailableActions:function(e){const t=Y2(e,"invoked"===e.triggerReason);if(!t)return l;if(!Z6(t)){const e=t.wasDefault?X2:Q2;return[{name:G2,description:e.description,actions:[e]}]}return e.preferences.provideRefactorNotApplicableReason?[{name:G2,description:Ux(la.Convert_default_export_to_named_export),actions:[{...X2,notApplicableReason:t.error},{...Q2,notApplicableReason:t.error}]}]:l},getEditsForAction:function(e,t){un.assert(t===X2.name||t===Q2.name,"Unexpected action name");const n=Y2(e);un.assert(n&&!Z6(n),"Expected applicable refactor info");const r=Tue.ChangeTracker.with(e,(t=>function(e,t,n,r,i){(function(e,{wasDefault:t,exportNode:n,exportName:r},i,o){if(t)if(pE(n)&&!n.isExportEquals){const t=n.expression,r=e6(t.text,t.text);i.replaceNode(e,n,XC.createExportDeclaration(void 0,!1,XC.createNamedExports([r])))}else i.delete(e,un.checkDefined(KQ(n,90),"Should find a default keyword in modifier list"));else{const t=un.checkDefined(KQ(n,95),"Should find an export keyword in modifier list");switch(n.kind){case 262:case 263:case 264:i.insertNodeAfter(e,t,XC.createToken(90));break;case 243:const a=ge(n.declarationList.declarations);if(!ice.Core.isSymbolReferencedInFile(r,o,e)&&!a.type){i.replaceNode(e,n,XC.createExportDefault(un.checkDefined(a.initializer,"Initializer was previously known to be present")));break}case 266:case 265:case 267:i.deleteModifier(e,t),i.insertNodeAfter(e,n,XC.createExportDefault(XC.createIdentifier(r.text)));break;default:un.fail(`Unexpected exportNode kind ${n.kind}`)}}})(e,n,r,t.getTypeChecker()),function(e,{wasDefault:t,exportName:n,exportingModuleSymbol:r},i,o){const a=e.getTypeChecker(),s=un.checkDefined(a.getSymbolAtLocation(n),"Export name should resolve to a symbol");ice.Core.eachExportReference(e.getSourceFiles(),a,o,s,r,n.text,t,(e=>{if(n===e)return;const r=e.getSourceFile();t?function(e,t,n,r){const{parent:i}=t;switch(i.kind){case 211:n.replaceNode(e,t,XC.createIdentifier(r));break;case 276:case 281:{const t=i;n.replaceNode(e,t,Z2(r,t.name.text));break}case 273:{const o=i;un.assert(o.name===t,"Import clause name should match provided ref");const a=Z2(r,t.text),{namedBindings:s}=o;if(s)if(274===s.kind){n.deleteRange(e,{pos:t.getStart(e),end:s.getStart(e)});const i=TN(o.parent.moduleSpecifier)?MQ(o.parent.moduleSpecifier,e):1,a=LQ(void 0,[Z2(r,t.text)],o.parent.moduleSpecifier,i);n.insertNodeAfter(e,o.parent,a)}else n.delete(e,t),n.insertNodeAtEndOfList(e,s.elements,a);else n.replaceNode(e,t,XC.createNamedImports([a]));break}case 205:const o=i;n.replaceNode(e,i,XC.createImportTypeNode(o.argument,o.attributes,XC.createIdentifier(r),o.typeArguments,o.isTypeOf));break;default:un.failBadSyntaxKind(i)}}(r,e,i,n.text):function(e,t,n){const r=t.parent;switch(r.kind){case 211:n.replaceNode(e,t,XC.createIdentifier("default"));break;case 276:{const t=XC.createIdentifier(r.name.text);1===r.parent.elements.length?n.replaceNode(e,r.parent,t):(n.delete(e,r),n.insertNodeBefore(e,r.parent,t));break}case 281:n.replaceNode(e,r,e6("default",r.name.text));break;default:un.assertNever(r,`Unexpected parent kind ${r.kind}`)}}(r,e,i)}))}(t,n,r,i)}(e.file,e.program,n,t,e.cancellationToken)));return{edits:r,renameFilename:void 0,renameLocation:void 0}}});var t6="Convert import",n6={0:{name:"Convert namespace import to named imports",description:Ux(la.Convert_namespace_import_to_named_imports),kind:"refactor.rewrite.import.named"},2:{name:"Convert named imports to namespace import",description:Ux(la.Convert_named_imports_to_namespace_import),kind:"refactor.rewrite.import.namespace"},1:{name:"Convert named imports to default import",description:Ux(la.Convert_named_imports_to_default_import),kind:"refactor.rewrite.import.default"}};function r6(e,t=!0){const{file:n}=e,r=EZ(e),i=PX(n,r.start),o=t?_c(i,en(nE,PP)):$Q(i,n,r);if(void 0===o||!nE(o)&&!PP(o))return{error:"Selection is not an import declaration."};const a=r.start+r.length,s=LX(o,o.parent,n);if(s&&a>s.getStart())return;const{importClause:c}=o;return c?c.namedBindings?274===c.namedBindings.kind?{convertTo:0,import:c.namedBindings}:i6(e.program,c)?{convertTo:1,import:c.namedBindings}:{convertTo:2,import:c.namedBindings}:{error:Ux(la.Could_not_find_namespace_import_or_named_imports)}:{error:Ux(la.Could_not_find_import_clause)}}function i6(e,t){return Sk(e.getCompilerOptions())&&function(e,t){const n=t.resolveExternalModuleName(e);if(!n)return!1;return n!==t.resolveExternalModuleSymbol(n)}(t.parent.moduleSpecifier,e.getTypeChecker())}function o6(e){return HD(e)?e.name:e.right}function a6(e,t,n,r,i=i6(t,r.parent)){const o=t.getTypeChecker(),a=r.parent.parent,{moduleSpecifier:s}=a,c=new Set;r.elements.forEach((e=>{const t=o.getSymbolAtLocation(e.name);t&&c.add(t)}));const l=s&&TN(s)?RZ(s.text,99):"module",_=r.elements.some((function(t){return!!ice.Core.eachSymbolReferenceInFile(t.name,o,e,(e=>{const t=o.resolveName(l,e,-1,!0);return!!t&&(!c.has(t)||gE(e.parent))}))}))?$Y(l,e):l,u=new Set;for(const t of r.elements){const r=t.propertyName||t.name;ice.Core.eachSymbolReferenceInFile(t.name,o,e,(i=>{const o=11===r.kind?XC.createElementAccessExpression(XC.createIdentifier(_),XC.cloneNode(r)):XC.createPropertyAccessExpression(XC.createIdentifier(_),XC.cloneNode(r));BE(i.parent)?n.replaceNode(e,i.parent,XC.createPropertyAssignment(i.text,o)):gE(i.parent)?u.add(t):n.replaceNode(e,i,o)}))}if(n.replaceNode(e,r,i?XC.createIdentifier(_):XC.createNamespaceImport(XC.createIdentifier(_))),u.size&&nE(a)){const t=Oe(u.values(),(e=>XC.createImportSpecifier(e.isTypeOnly,e.propertyName&&XC.cloneNode(e.propertyName),XC.cloneNode(e.name))));n.insertNodeAfter(e,r.parent.parent,s6(a,void 0,t))}}function s6(e,t,n){return XC.createImportDeclaration(void 0,c6(t,n),e.moduleSpecifier,void 0)}function c6(e,t){return XC.createImportClause(!1,e,t&&t.length?XC.createNamedImports(t):void 0)}$2(t6,{kinds:Ae(n6).map((e=>e.kind)),getAvailableActions:function(e){const t=r6(e,"invoked"===e.triggerReason);if(!t)return l;if(!Z6(t)){const e=n6[t.convertTo];return[{name:t6,description:e.description,actions:[e]}]}return e.preferences.provideRefactorNotApplicableReason?Ae(n6).map((e=>({name:t6,description:e.description,actions:[{...e,notApplicableReason:t.error}]}))):l},getEditsForAction:function(e,t){un.assert($(Ae(n6),(e=>e.name===t)),"Unexpected action name");const n=r6(e);un.assert(n&&!Z6(n),"Expected applicable refactor info");const r=Tue.ChangeTracker.with(e,(t=>function(e,t,n,r){const i=t.getTypeChecker();0===r.convertTo?function(e,t,n,r,i){let o=!1;const a=[],s=new Map;ice.Core.eachSymbolReferenceInFile(r.name,t,e,(e=>{if(A_(e.parent)){const r=o6(e.parent).text;t.resolveName(r,e,-1,!0)&&s.set(r,!0),un.assert((HD(n=e.parent)?n.expression:n.left)===e,"Parent expression should match id"),a.push(e.parent)}else o=!0;var n}));const c=new Map;for(const t of a){const r=o6(t).text;let i=c.get(r);void 0===i&&c.set(r,i=s.has(r)?$Y(r,e):r),n.replaceNode(e,t,XC.createIdentifier(i))}const l=[];c.forEach(((e,t)=>{l.push(XC.createImportSpecifier(!1,e===t?void 0:XC.createIdentifier(t),XC.createIdentifier(e)))}));const _=r.parent.parent;if(o&&!i&&nE(_))n.insertNodeAfter(e,_,s6(_,void 0,l));else{const t=o?XC.createIdentifier(r.name.text):void 0;n.replaceNode(e,r.parent,c6(t,l))}}(e,i,n,r.import,Sk(t.getCompilerOptions())):a6(e,t,n,r.import,1===r.convertTo)}(e.file,e.program,t,n)));return{edits:r,renameFilename:void 0,renameLocation:void 0}}});var l6="Extract type",_6={name:"Extract to type alias",description:Ux(la.Extract_to_type_alias),kind:"refactor.extract.type"},u6={name:"Extract to interface",description:Ux(la.Extract_to_interface),kind:"refactor.extract.interface"},d6={name:"Extract to typedef",description:Ux(la.Extract_to_typedef),kind:"refactor.extract.typedef"};function p6(e,t=!0){const{file:n,startPosition:r}=e,i=Dm(n),o=hQ(EZ(e)),a=o.pos===o.end&&t,s=function(e,t,n,r){const i=[()=>PX(e,t),()=>EX(e,t,(()=>!0))];for(const t of i){const i=t(),o=uX(i,e,n.pos,n.end),a=_c(i,(t=>t.parent&&v_(t)&&!m6(n,t.parent,e)&&(r||o)));if(a)return a}}(n,r,o,a);if(!s||!v_(s))return{info:{error:Ux(la.Selection_is_not_a_valid_type_node)},affectedTextRange:void 0};const c=e.program.getTypeChecker(),_=function(e,t){return _c(e,du)||(t?_c(e,iP):void 0)}(s,i);if(void 0===_)return{info:{error:Ux(la.No_type_could_be_extracted_from_this_type_node)},affectedTextRange:void 0};const u=function(e,t){return _c(e,(e=>e===t?"quit":!(!FD(e.parent)&&!ED(e.parent))))??e}(s,_);if(!v_(u))return{info:{error:Ux(la.Selection_is_not_a_valid_type_node)},affectedTextRange:void 0};const d=[];(FD(u.parent)||ED(u.parent))&&o.end>s.end&&se(d,u.parent.types.filter((e=>uX(e,n,o.pos,o.end))));const p=d.length>1?d:u,{typeParameters:f,affectedTextRange:m}=function(e,t,n,r){const i=[],o=Ye(t),a={pos:o[0].getStart(r),end:o[o.length-1].end};for(const e of o)if(s(e))return{typeParameters:void 0,affectedTextRange:void 0};return{typeParameters:i,affectedTextRange:a};function s(t){if(vD(t)){if(zN(t.typeName)){const o=t.typeName,s=e.resolveName(o.text,o,262144,!0);for(const e of(null==s?void 0:s.declarations)||l)if(iD(e)&&e.getSourceFile()===r){if(e.name.escapedText===o.escapedText&&m6(e,a,r))return!0;if(m6(n,e,r)&&!m6(a,e,r)){ce(i,e);break}}}}else if(AD(t)){const e=_c(t,(e=>PD(e)&&m6(e.extendsType,t,r)));if(!e||!m6(a,e,r))return!0}else if(yD(t)||OD(t)){const e=_c(t.parent,n_);if(e&&e.type&&m6(e.type,t,r)&&!m6(a,e,r))return!0}else if(kD(t))if(zN(t.exprName)){const i=e.resolveName(t.exprName.text,t.exprName,111551,!1);if((null==i?void 0:i.valueDeclaration)&&m6(n,i.valueDeclaration,r)&&!m6(a,i.valueDeclaration,r))return!0}else if(cv(t.exprName.left)&&!m6(a,t.parent,r))return!0;return r&&CD(t)&&Ja(r,t.pos).line===Ja(r,t.end).line&&nw(t,1),PI(t,s)}}(c,p,_,n);return f?{info:{isJS:i,selection:p,enclosingNode:_,typeParameters:f,typeElements:f6(c,p)},affectedTextRange:m}:{info:{error:Ux(la.No_type_could_be_extracted_from_this_type_node)},affectedTextRange:void 0}}function f6(e,t){if(t){if(Qe(t)){const n=[];for(const r of t){const t=f6(e,r);if(!t)return;se(n,t)}return n}if(ED(t)){const n=[],r=new Set;for(const i of t.types){const t=f6(e,i);if(!t||!t.every((e=>e.name&&vx(r,DQ(e.name)))))return;se(n,t)}return n}return ID(t)?f6(e,t.type):SD(t)?t.members:void 0}}function m6(e,t,n){return lX(e,Xa(n.text,t.pos),t.end)}function g6(e){return Qe(e.selection)?{firstTypeNode:e.selection[0],lastTypeNode:e.selection[e.selection.length-1],newTypeNode:FD(e.selection[0].parent)?XC.createUnionTypeNode(e.selection):XC.createIntersectionTypeNode(e.selection)}:{firstTypeNode:e.selection,lastTypeNode:e.selection,newTypeNode:e.selection}}$2(l6,{kinds:[_6.kind,u6.kind,d6.kind],getAvailableActions:function(e){const{info:t,affectedTextRange:n}=p6(e,"invoked"===e.triggerReason);return t?Z6(t)?e.preferences.provideRefactorNotApplicableReason?[{name:l6,description:Ux(la.Extract_type),actions:[{...d6,notApplicableReason:t.error},{..._6,notApplicableReason:t.error},{...u6,notApplicableReason:t.error}]}]:l:[{name:l6,description:Ux(la.Extract_type),actions:t.isJS?[d6]:ie([_6],t.typeElements&&u6)}].map((t=>({...t,actions:t.actions.map((t=>({...t,range:n?{start:{line:Ja(e.file,n.pos).line,offset:Ja(e.file,n.pos).character},end:{line:Ja(e.file,n.end).line,offset:Ja(e.file,n.end).character}}:void 0})))}))):l},getEditsForAction:function(e,t){const{file:n}=e,{info:r}=p6(e);un.assert(r&&!Z6(r),"Expected to find a range to extract");const i=$Y("NewType",n),o=Tue.ChangeTracker.with(e,(o=>{switch(t){case _6.name:return un.assert(!r.isJS,"Invalid actionName/JS combo"),function(e,t,n,r){const{enclosingNode:i,typeParameters:o}=r,{firstTypeNode:a,lastTypeNode:s,newTypeNode:c}=g6(r),l=XC.createTypeAliasDeclaration(void 0,n,o.map((e=>XC.updateTypeParameterDeclaration(e,e.modifiers,e.name,e.constraint,void 0))),c);e.insertNodeBefore(t,i,Ew(l),!0),e.replaceNodeRange(t,a,s,XC.createTypeReferenceNode(n,o.map((e=>XC.createTypeReferenceNode(e.name,void 0)))),{leadingTriviaOption:Tue.LeadingTriviaOption.Exclude,trailingTriviaOption:Tue.TrailingTriviaOption.ExcludeWhitespace})}(o,n,i,r);case d6.name:return un.assert(r.isJS,"Invalid actionName/JS combo"),function(e,t,n,r,i){var o;Ye(i.selection).forEach((e=>{nw(e,7168)}));const{enclosingNode:a,typeParameters:s}=i,{firstTypeNode:c,lastTypeNode:l,newTypeNode:_}=g6(i),u=XC.createJSDocTypedefTag(XC.createIdentifier("typedef"),XC.createJSDocTypeExpression(_),XC.createIdentifier(r)),p=[];d(s,(e=>{const t=_l(e),n=XC.createTypeParameterDeclaration(void 0,e.name),r=XC.createJSDocTemplateTag(XC.createIdentifier("template"),t&&nt(t,VE),[n]);p.push(r)}));const f=XC.createJSDocComment(void 0,XC.createNodeArray(K(p,[u])));if(iP(a)){const r=a.getStart(n),i=kY(t.host,null==(o=t.formatContext)?void 0:o.options);e.insertNodeAt(n,a.getStart(n),f,{suffix:i+i+n.text.slice(OY(n.text,r-1),r)})}else e.insertNodeBefore(n,a,f,!0);e.replaceNodeRange(n,c,l,XC.createTypeReferenceNode(r,s.map((e=>XC.createTypeReferenceNode(e.name,void 0)))))}(o,e,n,i,r);case u6.name:return un.assert(!r.isJS&&!!r.typeElements,"Invalid actionName/JS combo"),function(e,t,n,r){var i;const{enclosingNode:o,typeParameters:a,typeElements:s}=r,c=XC.createInterfaceDeclaration(void 0,n,a,void 0,s);nI(c,null==(i=s[0])?void 0:i.parent),e.insertNodeBefore(t,o,Ew(c),!0);const{firstTypeNode:l,lastTypeNode:_}=g6(r);e.replaceNodeRange(t,l,_,XC.createTypeReferenceNode(n,a.map((e=>XC.createTypeReferenceNode(e.name,void 0)))),{leadingTriviaOption:Tue.LeadingTriviaOption.Exclude,trailingTriviaOption:Tue.TrailingTriviaOption.ExcludeWhitespace})}(o,n,i,r);default:un.fail("Unexpected action name")}})),a=n.fileName;return{edits:o,renameFilename:a,renameLocation:HY(o,a,i,!1)}}});var h6="Move to file",y6=Ux(la.Move_to_file),v6={name:"Move to file",description:y6,kind:"refactor.move.file"};function b6(e){return{edits:[],renameFilename:void 0,renameLocation:void 0,notApplicableReason:e}}function x6(e,t,n,r,i,o,a,s,c,l){const _=o.getTypeChecker(),d=cn(e.statements,uf),p=!KZ(t.fileName,o,a,!!e.commonJsModuleIndicator),m=BQ(e,s);F6(n.oldFileImportsFromTargetFile,t.fileName,l,o),function(e,t,n,r){for(const i of e.statements)T(t,i)||N6(i,(e=>{D6(e,(e=>{n.has(e.symbol)&&r.removeExistingImport(e)}))}))}(e,i.all,n.unusedImportsFromOldFile,l),l.writeFixes(r,m),function(e,t,n){for(const{first:r,afterLast:i}of t)n.deleteNodeRangeExcludingEnd(e,r,i)}(e,i.ranges,r),function(e,t,n,r,i,o,a){const s=t.getTypeChecker();for(const c of t.getSourceFiles())if(c!==r)for(const l of c.statements)N6(l,(_=>{if(s.getSymbolAtLocation(272===(u=_).kind?u.moduleSpecifier:271===u.kind?u.moduleReference.expression:u.initializer.arguments[0])!==r.symbol)return;var u;const d=e=>{const t=VD(e.parent)?WQ(s,e.parent):ix(s.getSymbolAtLocation(e),s);return!!t&&i.has(t)};P6(c,_,e,d);const p=Ro(Do(Bo(r.fileName,t.getCurrentDirectory())),o);if(0===wt(!t.useCaseSensitiveFileNames())(p,c.fileName))return;const f=BM.getModuleSpecifier(t.getCompilerOptions(),c,c.fileName,p,AQ(t,n)),m=j6(_,jQ(f,a),d);m&&e.insertNodeAfter(c,l,m);const g=T6(_);g&&C6(e,c,s,i,f,g,_,a)}))}(r,o,a,e,n.movedSymbols,t.fileName,m),S6(e,n.targetFileImportsFromOldFile,r,p),n3(e,n.oldImportsNeededByTargetFile,n.targetFileImportsFromOldFile,_,o,c),!Nm(t)&&d.length&&r.insertStatementsInNewFile(t.fileName,d,e),c.writeFixes(r,m);const g=function(e,t,n,r){return O(t,(t=>{if(A6(t)&&!E6(e,t,r)&&W6(t,(e=>{var t;return n.includes(un.checkDefined(null==(t=tt(e,ou))?void 0:t.symbol))}))){const e=function(e,t){return t?[I6(e)]:function(e){return[e,...L6(e).map(O6)]}(e)}(LY(t),r);if(e)return e}return LY(t)}))}(e,i.all,Oe(n.oldFileImportsFromTargetFile.keys()),p);Nm(t)&&t.statements.length>0?function(e,t,n,r,i){var o;const a=new Set,s=null==(o=r.symbol)?void 0:o.exports;if(s){const n=t.getTypeChecker(),o=new Map;for(const e of i.all)A6(e)&&wv(e,32)&&W6(e,(e=>{var t;const n=f(ou(e)?null==(t=s.get(e.symbol.escapedName))?void 0:t.declarations:void 0,(e=>fE(e)?e:gE(e)?tt(e.parent.parent,fE):void 0));n&&n.moduleSpecifier&&o.set(n,(o.get(n)||new Set).add(e))}));for(const[t,i]of Oe(o))if(t.exportClause&&mE(t.exportClause)&&u(t.exportClause.elements)){const o=t.exportClause.elements,s=N(o,(e=>void 0===b(ix(e.symbol,n).declarations,(e=>K6(e)&&i.has(e)))));if(0===u(s)){e.deleteNode(r,t),a.add(t);continue}u(s)fE(e)&&!!e.moduleSpecifier&&!a.has(e)));c?e.insertNodesBefore(r,c,n,!0):e.insertNodesAfter(r,r.statements[r.statements.length-1],n)}(r,o,g,t,i):Nm(t)?r.insertNodesAtEndOfFile(t,g,!1):r.insertStatementsInNewFile(t.fileName,c.hasFixes()?[4,...g]:g,e)}function k6(e,t,n,r,i){const o=e.getCompilerOptions().configFile;if(!o)return;const a=Jo(jo(n,"..",r)),s=ia(o.fileName,a,i),c=o.statements[0]&&tt(o.statements[0].expression,$D),l=c&&b(c.properties,(e=>ME(e)&&TN(e.name)&&"files"===e.name.text));l&&WD(l.initializer)&&t.insertNodeInListAfter(o,ve(l.initializer.elements),XC.createStringLiteral(s),l.initializer.elements)}function S6(e,t,n,r){const i=TQ();t.forEach(((t,o)=>{var a;if(o.declarations)for(const t of o.declarations){if(!K6(t))continue;const o=DF(a=t)?tt(a.expression.left.name,zN):tt(a.name,zN);if(!o)continue;const s=R6(t);i(s)&&M6(e,s,o,n,r)}}))}function T6(e){switch(e.kind){case 272:return e.importClause&&e.importClause.namedBindings&&274===e.importClause.namedBindings.kind?e.importClause.namedBindings.name:void 0;case 271:return e.name;case 260:return tt(e.name,zN);default:return un.assertNever(e,`Unexpected node kind ${e.kind}`)}}function C6(e,t,n,r,i,o,a,s){const c=RZ(i,99);let l=!1;const _=[];if(ice.Core.eachSymbolReferenceInFile(o,n,t,(e=>{HD(e.parent)&&(l=l||!!n.resolveName(c,e,-1,!0),r.has(n.getSymbolAtLocation(e.parent.name))&&_.push(e))})),_.length){const n=l?$Y(c,t):c;for(const r of _)e.replaceNode(t,r,XC.createIdentifier(n));e.insertNodeAfter(t,a,function(e,t,n,r){const i=XC.createIdentifier(t),o=jQ(n,r);switch(e.kind){case 272:return XC.createImportDeclaration(void 0,XC.createImportClause(!1,void 0,XC.createNamespaceImport(i)),o,void 0);case 271:return XC.createImportEqualsDeclaration(void 0,!1,i,XC.createExternalModuleReference(o));case 260:return XC.createVariableDeclaration(i,void 0,void 0,w6(o));default:return un.assertNever(e,`Unexpected node kind ${e.kind}`)}}(a,c,i,s))}}function w6(e){return XC.createCallExpression(XC.createIdentifier("require"),void 0,[e])}function N6(e,t){if(nE(e))TN(e.moduleSpecifier)&&t(e);else if(tE(e))xE(e.moduleReference)&&Lu(e.moduleReference.expression)&&t(e);else if(wF(e))for(const n of e.declarationList.declarations)n.initializer&&Om(n.initializer,!0)&&t(n)}function D6(e,t){var n,r,i,o,a;if(272===e.kind){if((null==(n=e.importClause)?void 0:n.name)&&t(e.importClause),274===(null==(i=null==(r=e.importClause)?void 0:r.namedBindings)?void 0:i.kind)&&t(e.importClause.namedBindings),275===(null==(a=null==(o=e.importClause)?void 0:o.namedBindings)?void 0:a.kind))for(const n of e.importClause.namedBindings.elements)t(n)}else if(271===e.kind)t(e);else if(260===e.kind)if(80===e.name.kind)t(e);else if(206===e.name.kind)for(const n of e.name.elements)zN(n.name)&&t(n)}function F6(e,t,n,r){for(const[i,o]of e){const e=OZ(i,hk(r.getCompilerOptions())),a="default"===i.name&&i.parent?1:0;n.addImportForNonExistentExport(e,t,a,i.flags,o)}}function E6(e,t,n,r){var i;return n?!DF(t)&&wv(t,32)||!!(r&&e.symbol&&(null==(i=e.symbol.exports)?void 0:i.has(r.escapedText))):!!e.symbol&&!!e.symbol.exports&&L6(t).some((t=>e.symbol.exports.has(pc(t))))}function P6(e,t,n,r){if(272===t.kind&&t.importClause){const{name:i,namedBindings:o}=t.importClause;if((!i||r(i))&&(!o||275===o.kind&&0!==o.elements.length&&o.elements.every((e=>r(e.name)))))return n.delete(e,t)}D6(t,(t=>{t.name&&zN(t.name)&&r(t.name)&&n.delete(e,t)}))}function A6(e){return un.assert(qE(e.parent),"Node parent should be a SourceFile"),X6(e)||wF(e)}function I6(e){const t=rI(e)?K([XC.createModifier(95)],Nc(e)):void 0;switch(e.kind){case 262:return XC.updateFunctionDeclaration(e,t,e.asteriskToken,e.name,e.typeParameters,e.parameters,e.type,e.body);case 263:const n=iI(e)?wc(e):void 0;return XC.updateClassDeclaration(e,K(n,t),e.name,e.typeParameters,e.heritageClauses,e.members);case 243:return XC.updateVariableStatement(e,t,e.declarationList);case 267:return XC.updateModuleDeclaration(e,t,e.name,e.body);case 266:return XC.updateEnumDeclaration(e,t,e.name,e.members);case 265:return XC.updateTypeAliasDeclaration(e,t,e.name,e.typeParameters,e.type);case 264:return XC.updateInterfaceDeclaration(e,t,e.name,e.typeParameters,e.heritageClauses,e.members);case 271:return XC.updateImportEqualsDeclaration(e,t,e.isTypeOnly,e.name,e.moduleReference);case 244:return un.fail();default:return un.assertNever(e,`Unexpected declaration kind ${e.kind}`)}}function O6(e){return XC.createExpressionStatement(XC.createBinaryExpression(XC.createPropertyAccessExpression(XC.createIdentifier("exports"),XC.createIdentifier(e)),64,XC.createIdentifier(e)))}function L6(e){switch(e.kind){case 262:case 263:return[e.name.text];case 243:return B(e.declarationList.declarations,(e=>zN(e.name)?e.name.text:void 0));case 267:case 266:case 265:case 264:case 271:return l;case 244:return un.fail("Can't export an ExpressionStatement");default:return un.assertNever(e,`Unexpected decl kind ${e.kind}`)}}function j6(e,t,n){switch(e.kind){case 272:{const r=e.importClause;if(!r)return;const i=r.name&&n(r.name)?r.name:void 0,o=r.namedBindings&&function(e,t){if(274===e.kind)return t(e.name)?e:void 0;{const n=e.elements.filter((e=>t(e.name)));return n.length?XC.createNamedImports(n):void 0}}(r.namedBindings,n);return i||o?XC.createImportDeclaration(void 0,XC.createImportClause(r.isTypeOnly,i,o),LY(t),void 0):void 0}case 271:return n(e.name)?e:void 0;case 260:{const r=function(e,t){switch(e.kind){case 80:return t(e)?e:void 0;case 207:return e;case 206:{const n=e.elements.filter((e=>e.propertyName||!zN(e.name)||t(e.name)));return n.length?XC.createObjectBindingPattern(n):void 0}}}(e.name,n);return r?function(e,t,n,r=2){return XC.createVariableStatement(void 0,XC.createVariableDeclarationList([XC.createVariableDeclaration(e,void 0,t,n)],r))}(r,e.type,w6(t),e.parent.flags):void 0}default:return un.assertNever(e,`Unexpected import kind ${e.kind}`)}}function R6(e){switch(e.kind){case 260:return e.parent.parent;case 208:return R6(nt(e.parent.parent,(e=>VF(e)||VD(e))));default:return e}}function M6(e,t,n,r,i){if(!E6(e,t,i,n))if(i)DF(t)||r.insertExportModifier(e,t);else{const n=L6(t);0!==n.length&&r.insertNodesAfter(e,t,n.map(O6))}}function B6(e,t,n,r){const i=t.getTypeChecker();if(r){const t=U6(e,r.all,i),s=Do(e.fileName),c=QS(e.fileName),l=jo(s,function(e,t,n,r){let i=e;for(let o=1;;o++){const a=jo(n,i+t);if(!r.fileExists(a))return i;i=`${e}.${o}`}}((o=t.oldFileImportsFromTargetFile,a=t.movedSymbols,nd(o,zQ)||nd(a,zQ)||"newFile"),c,s,n))+c;return l}var o,a;return""}function J6(e){const t=function(e){const{file:t}=e,n=hQ(EZ(e)),{statements:r}=t;let i=k(r,(e=>e.end>n.pos));if(-1===i)return;const o=Q6(t,r[i]);o&&(i=o.start);let a=k(r,(e=>e.end>=n.end),i);-1!==a&&n.end<=r[a].getStart()&&a--;const s=Q6(t,r[a]);return s&&(a=s.end),{toMove:r.slice(i,-1===a?r.length:a+1),afterLast:-1===a?void 0:r[a+1]}}(e);if(void 0===t)return;const n=[],r=[],{toMove:i,afterLast:o}=t;return H(i,q6,((e,t)=>{for(let r=e;r!!(2&e.transformFlags)))}function q6(e){return!function(e){switch(e.kind){case 272:return!0;case 271:return!wv(e,32);case 243:return e.declarationList.declarations.every((e=>!!e.initializer&&Om(e.initializer,!0)));default:return!1}}(e)&&!uf(e)}function U6(e,t,n,r=new Set,i){var o;const a=new Set,s=new Map,c=new Map,l=function(e){if(void 0===e)return;const t=n.getJsxNamespace(e),r=n.resolveName(t,e,1920,!0);return r&&$(r.declarations,$6)?r:void 0}(z6(t));l&&s.set(l,[!1,tt(null==(o=l.declarations)?void 0:o[0],(e=>dE(e)||rE(e)||lE(e)||tE(e)||VD(e)||VF(e)))]);for(const e of t)W6(e,(e=>{a.add(un.checkDefined(DF(e)?n.getSymbolAtLocation(e.expression.left):e.symbol,"Need a symbol here"))}));const _=new Set;for(const o of t)V6(o,n,i,((t,i)=>{if(!t.declarations)return;if(r.has(ix(t,n)))return void _.add(t);const o=b(t.declarations,$6);if(o){const e=s.get(t);s.set(t,[(void 0===e||e)&&i,tt(o,(e=>dE(e)||rE(e)||lE(e)||tE(e)||VD(e)||VF(e)))])}else!a.has(t)&&v(t.declarations,(t=>{return K6(t)&&(VF(n=t)?n.parent.parent.parent:n.parent)===e;var n}))&&c.set(t,i)}));for(const e of s.keys())_.add(e);const u=new Map;for(const r of e.statements)T(t,r)||(l&&2&r.transformFlags&&_.delete(l),V6(r,n,i,((e,t)=>{a.has(e)&&u.set(e,t),_.delete(e)})));return{movedSymbols:a,targetFileImportsFromOldFile:c,oldFileImportsFromTargetFile:u,oldImportsNeededByTargetFile:s,unusedImportsFromOldFile:_}}function V6(e,t,n,r){e.forEachChild((function e(i){if(zN(i)&&!ch(i)){if(n&&!Gb(n,i))return;const e=t.getSymbolAtLocation(i);e&&r(e,yT(i))}else i.forEachChild(e)}))}function W6(e,t){switch(e.kind){case 262:case 263:case 267:case 266:case 265:case 264:case 271:return t(e);case 243:return f(e.declarationList.declarations,(e=>G6(e.name,t)));case 244:{const{expression:n}=e;return cF(n)&&1===eg(n)?t(e):void 0}}}function $6(e){switch(e.kind){case 271:case 276:case 273:case 274:return!0;case 260:return H6(e);case 208:return VF(e.parent.parent)&&H6(e.parent.parent);default:return!1}}function H6(e){return qE(e.parent.parent.parent)&&!!e.initializer&&Om(e.initializer,!0)}function K6(e){return X6(e)&&qE(e.parent)||VF(e)&&qE(e.parent.parent.parent)}function G6(e,t){switch(e.kind){case 80:return t(nt(e.parent,(e=>VF(e)||VD(e))));case 207:case 206:return f(e.elements,(e=>fF(e)?void 0:G6(e.name,t)));default:return un.assertNever(e,`Unexpected name kind ${e.kind}`)}}function X6(e){switch(e.kind){case 262:case 263:case 267:case 266:case 265:case 264:case 271:return!0;default:return!1}}function Q6(e,t){if(i_(t)){const n=t.symbol.declarations;if(void 0===n||u(n)<=1||!T(n,t))return;const r=n[0],i=n[u(n)-1],o=B(n,(t=>hd(t)===e&&du(t)?t:void 0)),a=k(e.statements,(e=>e.end>=i.end));return{toMove:o,start:k(e.statements,(e=>e.end>=r.end)),end:a}}}function Y6(e,t,n){const r=new Set;for(const t of e.imports){const e=yg(t);if(nE(e)&&e.importClause&&e.importClause.namedBindings&&uE(e.importClause.namedBindings))for(const t of e.importClause.namedBindings.elements){const e=n.getSymbolAtLocation(t.propertyName||t.name);e&&r.add(ix(e,n))}if(Lm(e.parent)&&qD(e.parent.name))for(const t of e.parent.name.elements){const e=n.getSymbolAtLocation(t.propertyName||t.name);e&&r.add(ix(e,n))}}for(const i of t)V6(i,n,void 0,(t=>{const i=ix(t,n);i.valueDeclaration&&hd(i.valueDeclaration).path===e.path&&r.add(i)}));return r}function Z6(e){return void 0!==e.error}function e3(e,t){return!t||e.substr(0,t.length)===t}function t3(e,t,n,r){return!HD(e)||__(t)||n.resolveName(e.name.text,e,111551,!1)||qN(e.name)||gc(e.name)?$Y(__(t)?"newProperty":"newLocal",r):e.name.text}function n3(e,t,n,r,i,o){t.forEach((([e,t],n)=>{var i;const a=ix(n,r);r.isUnknownSymbol(a)?o.addVerbatimImport(un.checkDefined(t??_c(null==(i=n.declarations)?void 0:i[0],Sp))):void 0===a.parent?(un.assert(void 0!==t,"expected module symbol to have a declaration"),o.addImportForModuleSymbol(n,e,t)):o.addImportFromExportedSymbol(a,e,t)})),F6(n,e.fileName,o,i)}$2(h6,{kinds:[v6.kind],getAvailableActions:function(e,t){const n=e.file,r=J6(e);if(!t)return l;if("implicit"===e.triggerReason&&void 0!==e.endPosition){const t=_c(PX(n,e.startPosition),GZ),r=_c(PX(n,e.endPosition),GZ);if(t&&!qE(t)&&r&&!qE(r))return l}if(e.preferences.allowTextChangesInNewFiles&&r){const e={start:{line:Ja(n,r.all[0].getStart(n)).line,offset:Ja(n,r.all[0].getStart(n)).character},end:{line:Ja(n,ve(r.all).end).line,offset:Ja(n,ve(r.all).end).character}};return[{name:h6,description:y6,actions:[{...v6,range:e}]}]}return e.preferences.provideRefactorNotApplicableReason?[{name:h6,description:y6,actions:[{...v6,notApplicableReason:Ux(la.Selection_is_not_a_valid_statement_or_statements)}]}]:l},getEditsForAction:function(e,t,n){un.assert(t===h6,"Wrong refactor invoked");const r=un.checkDefined(J6(e)),{host:i,program:o}=e;un.assert(n,"No interactive refactor arguments available");const a=n.targetFile;if(AS(a)||IS(a)){if(i.fileExists(a)&&void 0===o.getSourceFile(a))return b6(Ux(la.Cannot_move_statements_to_the_selected_file));const t=Tue.ChangeTracker.with(e,(t=>function(e,t,n,r,i,o,a,s){const c=r.getTypeChecker(),l=!a.fileExists(n),_=l?XZ(n,t.externalModuleIndicator?99:t.commonJsModuleIndicator?1:void 0,r,a):un.checkDefined(r.getSourceFile(n)),u=f7.createImportAdder(t,e.program,e.preferences,e.host),d=f7.createImportAdder(_,e.program,e.preferences,e.host);x6(t,_,U6(t,i.all,c,l?void 0:Y6(_,i.all,c)),o,i,r,a,s,d,u),l&&k6(r,o,t.fileName,n,jy(a))}(e,e.file,n.targetFile,e.program,r,t,e.host,e.preferences)));return{edits:t,renameFilename:void 0,renameLocation:void 0}}return b6(Ux(la.Cannot_move_to_file_selected_file_is_invalid))}});var r3="Inline variable",i3=Ux(la.Inline_variable),o3={name:r3,description:i3,kind:"refactor.inline.variable"};function a3(e,t,n,r){var i,o;const a=r.getTypeChecker(),s=FX(e,t),c=s.parent;if(zN(s)){if(Zb(c)&&Pf(c)&&zN(c.name)){if(1!==(null==(i=a.getMergedSymbol(c.symbol).declarations)?void 0:i.length))return{error:Ux(la.Variables_with_multiple_declarations_cannot_be_inlined)};if(s3(c))return;const t=c3(c,a,e);return t&&{references:t,declaration:c,replacement:c.initializer}}if(n){let t=a.resolveName(s.text,s,111551,!1);if(t=t&&a.getMergedSymbol(t),1!==(null==(o=null==t?void 0:t.declarations)?void 0:o.length))return{error:Ux(la.Variables_with_multiple_declarations_cannot_be_inlined)};const n=t.declarations[0];if(!Zb(n)||!Pf(n)||!zN(n.name))return;if(s3(n))return;const r=c3(n,a,e);return r&&{references:r,declaration:n,replacement:n.initializer}}return{error:Ux(la.Could_not_find_variable_to_inline)}}}function s3(e){return $(nt(e.parent.parent,wF).modifiers,UN)}function c3(e,t,n){const r=[],i=ice.Core.eachSymbolReferenceInFile(e.name,t,n,(t=>!(!ice.isWriteAccessForReference(t)||BE(t.parent))||!(!gE(t.parent)&&!pE(t.parent))||!!kD(t.parent)||!!Ps(e,t.pos)||void r.push(t)));return 0===r.length||i?void 0:r}function l3(e,t){t=LY(t);const{parent:n}=e;return U_(n)&&(ry(t){for(const t of a){const r=TN(c)&&zN(t)&&nh(t.parent);r&&SF(r)&&!QD(r.parent.parent)?_3(e,n,r,c):e.replaceNode(n,t,l3(t,c))}e.delete(n,s)}))}}});var u3="Move to a new file",d3=Ux(la.Move_to_a_new_file),p3={name:u3,description:d3,kind:"refactor.move.newFile"};$2(u3,{kinds:[p3.kind],getAvailableActions:function(e){const t=J6(e),n=e.file;if("implicit"===e.triggerReason&&void 0!==e.endPosition){const t=_c(PX(n,e.startPosition),GZ),r=_c(PX(n,e.endPosition),GZ);if(t&&!qE(t)&&r&&!qE(r))return l}if(e.preferences.allowTextChangesInNewFiles&&t){const n=e.file,r={start:{line:Ja(n,t.all[0].getStart(n)).line,offset:Ja(n,t.all[0].getStart(n)).character},end:{line:Ja(n,ve(t.all).end).line,offset:Ja(n,ve(t.all).end).character}};return[{name:u3,description:d3,actions:[{...p3,range:r}]}]}return e.preferences.provideRefactorNotApplicableReason?[{name:u3,description:d3,actions:[{...p3,notApplicableReason:Ux(la.Selection_is_not_a_valid_statement_or_statements)}]}]:l},getEditsForAction:function(e,t){un.assert(t===u3,"Wrong refactor invoked");const n=un.checkDefined(J6(e)),r=Tue.ChangeTracker.with(e,(t=>function(e,t,n,r,i,o,a){const s=t.getTypeChecker(),c=U6(e,n.all,s),l=B6(e,t,i,n),_=XZ(l,e.externalModuleIndicator?99:e.commonJsModuleIndicator?1:void 0,t,i),u=f7.createImportAdder(e,o.program,o.preferences,o.host);x6(e,_,c,r,n,t,i,a,f7.createImportAdder(_,o.program,o.preferences,o.host),u),k6(t,r,e.fileName,l,jy(i))}(e.file,e.program,n,t,e.host,e,e.preferences)));return{edits:r,renameFilename:void 0,renameLocation:void 0}}});var f3={},m3="Convert overload list to single signature",g3=Ux(la.Convert_overload_list_to_single_signature),h3={name:m3,description:g3,kind:"refactor.rewrite.function.overloadList"};function y3(e){switch(e.kind){case 173:case 174:case 179:case 176:case 180:case 262:return!0}return!1}function v3(e,t,n){const r=_c(PX(e,t),y3);if(!r)return;if(i_(r)&&r.body&&sX(r.body,t))return;const i=n.getTypeChecker(),o=r.symbol;if(!o)return;const a=o.declarations;if(u(a)<=1)return;if(!v(a,(t=>hd(t)===e)))return;if(!y3(a[0]))return;const s=a[0].kind;if(!v(a,(e=>e.kind===s)))return;const c=a;if($(c,(e=>!!e.typeParameters||$(e.parameters,(e=>!!e.modifiers||!zN(e.name))))))return;const l=B(c,(e=>i.getSignatureFromDeclaration(e)));if(u(l)!==u(a))return;const _=i.getReturnTypeOfSignature(l[0]);return v(l,(e=>i.getReturnTypeOfSignature(e)===_))?c:void 0}$2(m3,{kinds:[h3.kind],getEditsForAction:function(e){const{file:t,startPosition:n,program:r}=e,i=v3(t,n,r);if(!i)return;const o=r.getTypeChecker(),a=i[i.length-1];let s=a;switch(a.kind){case 173:s=XC.updateMethodSignature(a,a.modifiers,a.name,a.questionToken,a.typeParameters,c(i),a.type);break;case 174:s=XC.updateMethodDeclaration(a,a.modifiers,a.asteriskToken,a.name,a.questionToken,a.typeParameters,c(i),a.type,a.body);break;case 179:s=XC.updateCallSignature(a,a.typeParameters,c(i),a.type);break;case 176:s=XC.updateConstructorDeclaration(a,a.modifiers,c(i),a.body);break;case 180:s=XC.updateConstructSignature(a,a.typeParameters,c(i),a.type);break;case 262:s=XC.updateFunctionDeclaration(a,a.modifiers,a.asteriskToken,a.name,a.typeParameters,c(i),a.type,a.body);break;default:return un.failBadSyntaxKind(a,"Unhandled signature kind in overload list conversion refactoring")}if(s!==a)return{renameFilename:void 0,renameLocation:void 0,edits:Tue.ChangeTracker.with(e,(e=>{e.replaceNodeRange(t,i[0],i[i.length-1],s)}))};function c(e){const t=e[e.length-1];return i_(t)&&t.body&&(e=e.slice(0,e.length-1)),XC.createNodeArray([XC.createParameterDeclaration(void 0,XC.createToken(26),"args",void 0,XC.createUnionTypeNode(E(e,l)))])}function l(e){const t=E(e.parameters,_);return nw(XC.createTupleTypeNode(t),$(t,(e=>!!u(fw(e))))?0:1)}function _(e){un.assert(zN(e.name));const t=nI(XC.createNamedTupleMember(e.dotDotDotToken,e.name,e.questionToken,e.type||XC.createKeywordTypeNode(133)),e),n=e.symbol&&e.symbol.getDocumentationComment(o);if(n){const e=D8(n);e.length&&mw(t,[{text:`*\n${e.split("\n").map((e=>` * ${e}`)).join("\n")}\n `,kind:3,pos:-1,end:-1,hasTrailingNewLine:!0,hasLeadingNewline:!0}])}return t}},getAvailableActions:function(e){const{file:t,startPosition:n,program:r}=e;return v3(t,n,r)?[{name:m3,description:g3,actions:[h3]}]:l}});var b3="Add or remove braces in an arrow function",x3=Ux(la.Add_or_remove_braces_in_an_arrow_function),k3={name:"Add braces to arrow function",description:Ux(la.Add_braces_to_arrow_function),kind:"refactor.rewrite.arrow.braces.add"},S3={name:"Remove braces from arrow function",description:Ux(la.Remove_braces_from_arrow_function),kind:"refactor.rewrite.arrow.braces.remove"};function T3(e,t,n=!0,r){const i=PX(e,t),o=Hf(i);if(!o)return{error:Ux(la.Could_not_find_a_containing_arrow_function)};if(!tF(o))return{error:Ux(la.Containing_function_is_not_an_arrow_function)};if(Gb(o,i)&&(!Gb(o.body,i)||n)){if(e3(k3.kind,r)&&U_(o.body))return{func:o,addBraces:!0,expression:o.body};if(e3(S3.kind,r)&&CF(o.body)&&1===o.body.statements.length){const e=ge(o.body.statements);if(RF(e))return{func:o,addBraces:!1,expression:e.expression&&$D(Nx(e.expression,!1))?XC.createParenthesizedExpression(e.expression):e.expression,returnStatement:e}}}}$2(b3,{kinds:[S3.kind],getEditsForAction:function(e,t){const{file:n,startPosition:r}=e,i=T3(n,r);un.assert(i&&!Z6(i),"Expected applicable refactor info");const{expression:o,returnStatement:a,func:s}=i;let c;if(t===k3.name){const e=XC.createReturnStatement(o);c=XC.createBlock([e],!0),KY(o,e,n,3,!0)}else if(t===S3.name&&a){const e=o||XC.createVoidZero();c=ZY(e)?XC.createParenthesizedExpression(e):e,XY(a,c,n,3,!1),KY(a,c,n,3,!1),GY(a,c,n,3,!1)}else un.fail("invalid action");return{renameFilename:void 0,renameLocation:void 0,edits:Tue.ChangeTracker.with(e,(e=>{e.replaceNode(n,s.body,c)}))}},getAvailableActions:function(e){const{file:t,startPosition:n,triggerReason:r}=e,i=T3(t,n,"invoked"===r);return i?Z6(i)?e.preferences.provideRefactorNotApplicableReason?[{name:b3,description:x3,actions:[{...k3,notApplicableReason:i.error},{...S3,notApplicableReason:i.error}]}]:l:[{name:b3,description:x3,actions:[i.addBraces?k3:S3]}]:l}});var C3={},w3="Convert arrow function or function expression",N3=Ux(la.Convert_arrow_function_or_function_expression),D3={name:"Convert to anonymous function",description:Ux(la.Convert_to_anonymous_function),kind:"refactor.rewrite.function.anonymous"},F3={name:"Convert to named function",description:Ux(la.Convert_to_named_function),kind:"refactor.rewrite.function.named"},E3={name:"Convert to arrow function",description:Ux(la.Convert_to_arrow_function),kind:"refactor.rewrite.function.arrow"};function P3(e){let t=!1;return e.forEachChild((function e(n){rX(n)?t=!0:__(n)||$F(n)||eF(n)||PI(n,e)})),t}function A3(e,t,n){const r=PX(e,t),i=n.getTypeChecker(),o=function(e,t,n){if(!function(e){return VF(e)||WF(e)&&1===e.declarations.length}(n))return;const r=(VF(n)?n:ge(n.declarations)).initializer;return r&&(tF(r)||eF(r)&&!O3(e,t,r))?r:void 0}(e,i,r.parent);if(o&&!P3(o.body)&&!i.containsArgumentsReference(o))return{selectedVariableDeclaration:!0,func:o};const a=Hf(r);if(a&&(eF(a)||tF(a))&&!Gb(a.body,r)&&!P3(a.body)&&!i.containsArgumentsReference(a)){if(eF(a)&&O3(e,i,a))return;return{selectedVariableDeclaration:!1,func:a}}}function I3(e){if(U_(e)){const t=XC.createReturnStatement(e),n=e.getSourceFile();return nI(t,e),JY(t),XY(e,t,n,void 0,!0),XC.createBlock([t],!0)}return e}function O3(e,t,n){return!!n.name&&ice.Core.isSymbolReferencedInFile(n.name,t,e)}$2(w3,{kinds:[D3.kind,F3.kind,E3.kind],getEditsForAction:function(e,t){const{file:n,startPosition:r,program:i}=e,o=A3(n,r,i);if(!o)return;const{func:a}=o,s=[];switch(t){case D3.name:s.push(...function(e,t){const{file:n}=e,r=I3(t.body),i=XC.createFunctionExpression(t.modifiers,t.asteriskToken,void 0,t.typeParameters,t.parameters,t.type,r);return Tue.ChangeTracker.with(e,(e=>e.replaceNode(n,t,i)))}(e,a));break;case F3.name:const t=function(e){const t=e.parent;if(!VF(t)||!Pf(t))return;const n=t.parent,r=n.parent;return WF(n)&&wF(r)&&zN(t.name)?{variableDeclaration:t,variableDeclarationList:n,statement:r,name:t.name}:void 0}(a);if(!t)return;s.push(...function(e,t,n){const{file:r}=e,i=I3(t.body),{variableDeclaration:o,variableDeclarationList:a,statement:s,name:c}=n;zY(s);const l=32&rc(o)|Mv(t),_=XC.createModifiersFromModifierFlags(l),d=XC.createFunctionDeclaration(u(_)?_:void 0,t.asteriskToken,c,t.typeParameters,t.parameters,t.type,i);return 1===a.declarations.length?Tue.ChangeTracker.with(e,(e=>e.replaceNode(r,s,d))):Tue.ChangeTracker.with(e,(e=>{e.delete(r,o),e.insertNodeAfter(r,s,d)}))}(e,a,t));break;case E3.name:if(!eF(a))return;s.push(...function(e,t){const{file:n}=e,r=t.body.statements[0];let i;!function(e,t){return 1===e.statements.length&&RF(t)&&!!t.expression}(t.body,r)?i=t.body:(i=r.expression,JY(i),UY(r,i));const o=XC.createArrowFunction(t.modifiers,t.typeParameters,t.parameters,t.type,XC.createToken(39),i);return Tue.ChangeTracker.with(e,(e=>e.replaceNode(n,t,o)))}(e,a));break;default:return un.fail("invalid action")}return{renameFilename:void 0,renameLocation:void 0,edits:s}},getAvailableActions:function(e){const{file:t,startPosition:n,program:r,kind:i}=e,o=A3(t,n,r);if(!o)return l;const{selectedVariableDeclaration:a,func:s}=o,c=[],_=[];if(e3(F3.kind,i)){const e=a||tF(s)&&VF(s.parent)?void 0:Ux(la.Could_not_convert_to_named_function);e?_.push({...F3,notApplicableReason:e}):c.push(F3)}if(e3(D3.kind,i)){const e=!a&&tF(s)?void 0:Ux(la.Could_not_convert_to_anonymous_function);e?_.push({...D3,notApplicableReason:e}):c.push(D3)}if(e3(E3.kind,i)){const e=eF(s)?void 0:Ux(la.Could_not_convert_to_arrow_function);e?_.push({...E3,notApplicableReason:e}):c.push(E3)}return[{name:w3,description:N3,actions:0===c.length&&e.preferences.provideRefactorNotApplicableReason?_:c}]}});var L3={},j3="Convert parameters to destructured object",R3=Ux(la.Convert_parameters_to_destructured_object),M3={name:j3,description:R3,kind:"refactor.rewrite.parameters.toDestructured"};function B3(e,t){const n=q8(e);if(n){const e=t.getContextualTypeForObjectLiteralElement(n),r=null==e?void 0:e.getSymbol();if(r&&!(6&nx(r)))return r}}function J3(e){const t=e.node;return dE(t.parent)||rE(t.parent)||tE(t.parent)||lE(t.parent)||gE(t.parent)||pE(t.parent)?t:void 0}function z3(e){if(lu(e.node.parent))return e.node}function q3(e){if(e.node.parent){const t=e.node,n=t.parent;switch(n.kind){case 213:case 214:const e=tt(n,L_);if(e&&e.expression===t)return e;break;case 211:const r=tt(n,HD);if(r&&r.parent&&r.name===t){const e=tt(r.parent,L_);if(e&&e.expression===r)return e}break;case 212:const i=tt(n,KD);if(i&&i.parent&&i.argumentExpression===t){const e=tt(i.parent,L_);if(e&&e.expression===i)return e}}}}function U3(e){if(e.node.parent){const t=e.node,n=t.parent;switch(n.kind){case 211:const e=tt(n,HD);if(e&&e.expression===t)return e;break;case 212:const r=tt(n,KD);if(r&&r.expression===t)return r}}}function V3(e){const t=e.node;if(2===FG(t)||ib(t.parent))return t}function W3(e,t,n){const r=EX(e,t),i=Kf(r);if(!function(e){const t=_c(e,ku);if(t){const e=_c(t,(e=>!ku(e)));return!!e&&i_(e)}return!1}(r))return!(i&&function(e,t){var n;if(!function(e,t){return function(e){return G3(e)?e.length-1:e.length}(e)>=1&&v(e,(e=>function(e,t){if(Mu(e)){const n=t.getTypeAtLocation(e);if(!t.isArrayType(n)&&!t.isTupleType(n))return!1}return!e.modifiers&&zN(e.name)}(e,t)))}(e.parameters,t))return!1;switch(e.kind){case 262:return H3(e)&&$3(e,t);case 174:if($D(e.parent)){const r=B3(e.name,t);return 1===(null==(n=null==r?void 0:r.declarations)?void 0:n.length)&&$3(e,t)}return $3(e,t);case 176:return HF(e.parent)?H3(e.parent)&&$3(e,t):K3(e.parent.parent)&&$3(e,t);case 218:case 219:return K3(e.parent)}return!1}(i,n)&&Gb(i,r))||i.body&&Gb(i.body,r)?void 0:i}function $3(e,t){return!!e.body&&!t.isImplementationOfOverload(e)}function H3(e){return!!e.name||!!KQ(e,90)}function K3(e){return VF(e)&&rf(e)&&zN(e.name)&&!e.type}function G3(e){return e.length>0&&rX(e[0].name)}function X3(e){return G3(e)&&(e=XC.createNodeArray(e.slice(1),e.hasTrailingComma)),e}function Q3(e,t){const n=X3(e.parameters),r=Mu(ve(n)),i=E(r?t.slice(0,n.length-1):t,((e,t)=>{const r=(i=Z3(n[t]),zN(o=e)&&zh(o)===i?XC.createShorthandPropertyAssignment(i):XC.createPropertyAssignment(i,o));var i,o;return JY(r.name),ME(r)&&JY(r.initializer),UY(e,r),r}));if(r&&t.length>=n.length){const e=t.slice(n.length-1),r=XC.createPropertyAssignment(Z3(ve(n)),XC.createArrayLiteralExpression(e));i.push(r)}return XC.createObjectLiteralExpression(i,!1)}function Y3(e,t,n){const r=t.getTypeChecker(),i=X3(e.parameters),o=E(i,(function(e){const t=XC.createBindingElement(void 0,void 0,Z3(e),Mu(e)&&u(e)?XC.createArrayLiteralExpression():e.initializer);return JY(t),e.initializer&&t.initializer&&UY(e.initializer,t.initializer),t})),a=XC.createObjectBindingPattern(o),s=function(e){const t=E(e,_);return rw(XC.createTypeLiteralNode(t),1)}(i);let c;v(i,u)&&(c=XC.createObjectLiteralExpression());const l=XC.createParameterDeclaration(void 0,void 0,a,void 0,s,c);if(G3(e.parameters)){const t=e.parameters[0],n=XC.createParameterDeclaration(void 0,void 0,t.name,void 0,t.type);return JY(n.name),UY(t.name,n.name),t.type&&(JY(n.type),UY(t.type,n.type)),XC.createNodeArray([n,l])}return XC.createNodeArray([l]);function _(e){let i=e.type;var o;i||!e.initializer&&!Mu(e)||(o=e,i=sZ(r.getTypeAtLocation(o),o,t,n));const a=XC.createPropertySignature(void 0,Z3(e),u(e)?XC.createToken(58):e.questionToken,i);return JY(a),UY(e.name,a.name),e.type&&a.type&&UY(e.type,a.type),a}function u(e){if(Mu(e)){const t=r.getTypeAtLocation(e);return!r.isTupleType(t)}return r.isOptionalParameter(e)}}function Z3(e){return zh(e.name)}$2(j3,{kinds:[M3.kind],getEditsForAction:function(e,t){un.assert(t===j3,"Unexpected action name");const{file:n,startPosition:r,program:i,cancellationToken:o,host:a}=e,s=W3(n,r,i.getTypeChecker());if(!s||!o)return;const c=function(e,t,n){const r=function(e){switch(e.kind){case 262:return e.name?[e.name]:[un.checkDefined(KQ(e,90),"Nameless function declaration should be a default export")];case 174:return[e.name];case 176:const t=un.checkDefined(yX(e,137,e.getSourceFile()),"Constructor declaration should have constructor keyword");return 231===e.parent.kind?[e.parent.parent.name,t]:[t];case 219:return[e.parent.name];case 218:return e.name?[e.name,e.parent.name]:[e.parent.name];default:return un.assertNever(e,`Unexpected function declaration kind ${e.kind}`)}}(e),i=dD(e)?function(e){switch(e.parent.kind){case 263:const t=e.parent;return t.name?[t.name]:[un.checkDefined(KQ(t,90),"Nameless class declaration should be a default export")];case 231:const n=e.parent,r=e.parent.parent,i=n.name;return i?[i,r.name]:[r.name]}}(e):[],o=Q([...r,...i],mt),a=t.getTypeChecker(),s=function(t){const n={accessExpressions:[],typeUsages:[]},o={functionCalls:[],declarations:[],classReferences:n,valid:!0},s=E(r,c),l=E(i,c),_=dD(e),u=E(r,(e=>B3(e,a)));for(const r of t){if(r.kind===ice.EntryKind.Span){o.valid=!1;continue}if(T(u,c(r.node))){if(lD(d=r.node.parent)&&(KF(d.parent)||SD(d.parent))){o.signature=r.node.parent;continue}const e=q3(r);if(e){o.functionCalls.push(e);continue}}const t=B3(r.node,a);if(t&&T(u,t)){const e=z3(r);if(e){o.declarations.push(e);continue}}if(T(s,c(r.node))||AG(r.node)){if(J3(r))continue;const e=z3(r);if(e){o.declarations.push(e);continue}const t=q3(r);if(t){o.functionCalls.push(t);continue}}if(_&&T(l,c(r.node))){if(J3(r))continue;const t=z3(r);if(t){o.declarations.push(t);continue}const i=U3(r);if(i){n.accessExpressions.push(i);continue}if(HF(e.parent)){const e=V3(r);if(e){n.typeUsages.push(e);continue}}}o.valid=!1}var d;return o}(O(o,(e=>ice.getReferenceEntriesForNode(-1,e,t,t.getSourceFiles(),n))));return v(s.declarations,(e=>T(o,e)))||(s.valid=!1),s;function c(e){const t=a.getSymbolAtLocation(e);return t&&EY(t,a)}}(s,i,o);if(c.valid){const t=Tue.ChangeTracker.with(e,(e=>function(e,t,n,r,i,o){const a=o.signature,s=E(Y3(i,t,n),(e=>LY(e)));a&&l(a,E(Y3(a,t,n),(e=>LY(e)))),l(i,s);const c=ee(o.functionCalls,((e,t)=>vt(e.pos,t.pos)));for(const e of c)if(e.arguments&&e.arguments.length){const t=LY(Q3(i,e.arguments),!0);r.replaceNodeRange(hd(e),ge(e.arguments),ve(e.arguments),t,{leadingTriviaOption:Tue.LeadingTriviaOption.IncludeAll,trailingTriviaOption:Tue.TrailingTriviaOption.Include})}function l(t,n){r.replaceNodeRangeWithNodes(e,ge(t.parameters),ve(t.parameters),n,{joiner:", ",indentation:0,leadingTriviaOption:Tue.LeadingTriviaOption.IncludeAll,trailingTriviaOption:Tue.TrailingTriviaOption.Include})}}(n,i,a,e,s,c)));return{renameFilename:void 0,renameLocation:void 0,edits:t}}return{edits:[]}},getAvailableActions:function(e){const{file:t,startPosition:n}=e;return Dm(t)?l:W3(t,n,e.program.getTypeChecker())?[{name:j3,description:R3,actions:[M3]}]:l}});var e4={},t4="Convert to template string",n4=Ux(la.Convert_to_template_string),r4={name:t4,description:n4,kind:"refactor.rewrite.string"};function i4(e,t){const n=PX(e,t),r=a4(n);return!s4(r).isValidConcatenation&&ZD(r.parent)&&cF(r.parent.parent)?r.parent.parent:n}function o4(e,t){const n=a4(t),r=e.file,i=function({nodes:e,operators:t},n){const r=c4(t,n),i=l4(e,n,r),[o,a,s,c]=u4(0,e);if(o===e.length){const e=XC.createNoSubstitutionTemplateLiteral(a,s);return i(c,e),e}const l=[],_=XC.createTemplateHead(a,s);i(c,_);for(let t=o;t{d4(e);const r=t===n.templateSpans.length-1,i=e.literal.text+(r?a:""),o=_4(e.literal)+(r?s:"");return XC.createTemplateSpan(e.expression,_&&r?XC.createTemplateTail(i,o):XC.createTemplateMiddle(i,o))}));l.push(...e)}else{const e=_?XC.createTemplateTail(a,s):XC.createTemplateMiddle(a,s);i(c,e),l.push(XC.createTemplateSpan(n,e))}}return XC.createTemplateExpression(_,l)}(s4(n),r),o=_s(r.text,n.end);if(o){const t=o[o.length-1],a={pos:o[0].pos,end:t.end};return Tue.ChangeTracker.with(e,(e=>{e.deleteRange(r,a),e.replaceNode(r,n,i)}))}return Tue.ChangeTracker.with(e,(e=>e.replaceNode(r,n,i)))}function a4(e){return _c(e.parent,(e=>{switch(e.kind){case 211:case 212:return!1;case 228:case 226:return!(cF(e.parent)&&(t=e.parent,64!==t.operatorToken.kind&&65!==t.operatorToken.kind));default:return"quit"}var t}))||e}function s4(e){const t=e=>{if(!cF(e))return{nodes:[e],operators:[],validOperators:!0,hasString:TN(e)||NN(e)};const{nodes:n,operators:r,hasString:i,validOperators:o}=t(e.left);if(!(i||TN(e.right)||_F(e.right)))return{nodes:[e],operators:[],hasString:!1,validOperators:!0};const a=40===e.operatorToken.kind,s=o&&a;return n.push(e.right),r.push(e.operatorToken),{nodes:n,operators:r,hasString:!0,validOperators:s}},{nodes:n,operators:r,validOperators:i,hasString:o}=t(e);return{nodes:n,operators:r,isValidConcatenation:i&&o}}$2(t4,{kinds:[r4.kind],getEditsForAction:function(e,t){const{file:n,startPosition:r}=e,i=i4(n,r);return t===n4?{edits:o4(e,i)}:un.fail("invalid action")},getAvailableActions:function(e){const{file:t,startPosition:n}=e,r=a4(i4(t,n)),i=TN(r),o={name:t4,description:n4,actions:[]};return i&&"invoked"!==e.triggerReason?l:vm(r)&&(i||cF(r)&&s4(r).isValidConcatenation)?(o.actions.push(r4),[o]):e.preferences.provideRefactorNotApplicableReason?(o.actions.push({...r4,notApplicableReason:Ux(la.Can_only_convert_string_concatenations_and_string_literals)}),[o]):l}});var c4=(e,t)=>(n,r)=>{n(r,i)=>{for(;r.length>0;){const o=r.shift();GY(e[o],i,t,3,!1),n(o,i)}};function _4(e){const t=DN(e)||FN(e)?-2:-1;return Kd(e).slice(1,t)}function u4(e,t){const n=[];let r="",i="";for(;e"\\"===e[0]?e:"\\"+e)),n.push(e),e++}return[e,r,i,n]}function d4(e){const t=e.getSourceFile();GY(e,e.expression,t,3,!1),XY(e.expression,e.expression,t,3,!1)}function p4(e){return ZD(e)&&(d4(e),e=e.expression),e}var f4={},m4="Convert to optional chain expression",g4=Ux(la.Convert_to_optional_chain_expression),h4={name:m4,description:g4,kind:"refactor.rewrite.expression.optionalChain"};function y4(e){return cF(e)||lF(e)}function v4(e){return y4(e)||function(e){return DF(e)||RF(e)||wF(e)}(e)}function b4(e,t=!0){const{file:n,program:r}=e,i=EZ(e),o=0===i.length;if(o&&!t)return;const a=PX(n,i.start),s=OX(n,i.start+i.length),c=Ws(a.pos,s&&s.end>=a.pos?s.getEnd():a.getEnd()),l=o?function(e){for(;e.parent;){if(v4(e)&&!v4(e.parent))return e;e=e.parent}}(a):function(e,t){for(;e.parent;){if(v4(e)&&0!==t.length&&e.end>=t.start+t.length)return e;e=e.parent}}(a,c),_=l&&v4(l)?function(e){if(y4(e))return e;if(wF(e)){const t=Pg(e),n=null==t?void 0:t.initializer;return n&&y4(n)?n:void 0}return e.expression&&y4(e.expression)?e.expression:void 0}(l):void 0;if(!_)return{error:Ux(la.Could_not_find_convertible_access_expression)};const u=r.getTypeChecker();return lF(_)?function(e,t){const n=e.condition,r=T4(e.whenTrue);if(!r||t.isNullableType(t.getTypeAtLocation(r)))return{error:Ux(la.Could_not_find_convertible_access_expression)};if((HD(n)||zN(n))&&k4(n,r.expression))return{finalExpression:r,occurrences:[n],expression:e};if(cF(n)){const t=x4(r.expression,n);return t?{finalExpression:r,occurrences:t,expression:e}:{error:Ux(la.Could_not_find_matching_access_expressions)}}}(_,u):function(e){if(56!==e.operatorToken.kind)return{error:Ux(la.Can_only_convert_logical_AND_access_chains)};const t=T4(e.right);if(!t)return{error:Ux(la.Could_not_find_convertible_access_expression)};const n=x4(t.expression,e.left);return n?{finalExpression:t,occurrences:n,expression:e}:{error:Ux(la.Could_not_find_matching_access_expressions)}}(_)}function x4(e,t){const n=[];for(;cF(t)&&56===t.operatorToken.kind;){const r=k4(oh(e),oh(t.right));if(!r)break;n.push(r),e=r,t=t.left}const r=k4(e,t);return r&&n.push(r),n.length>0?n:void 0}function k4(e,t){if(zN(t)||HD(t)||KD(t))return function(e,t){for(;(GD(e)||HD(e)||KD(e))&&S4(e)!==S4(t);)e=e.expression;for(;HD(e)&&HD(t)||KD(e)&&KD(t);){if(S4(e)!==S4(t))return!1;e=e.expression,t=t.expression}return zN(e)&&zN(t)&&e.getText()===t.getText()}(e,t)?t:void 0}function S4(e){return zN(e)||Lh(e)?e.getText():HD(e)?S4(e.name):KD(e)?S4(e.argumentExpression):void 0}function T4(e){return cF(e=oh(e))?T4(e.left):(HD(e)||KD(e)||GD(e))&&!gl(e)?e:void 0}function C4(e,t,n){if(HD(t)||KD(t)||GD(t)){const r=C4(e,t.expression,n),i=n.length>0?n[n.length-1]:void 0,o=(null==i?void 0:i.getText())===t.expression.getText();if(o&&n.pop(),GD(t))return o?XC.createCallChain(r,XC.createToken(29),t.typeArguments,t.arguments):XC.createCallChain(r,t.questionDotToken,t.typeArguments,t.arguments);if(HD(t))return o?XC.createPropertyAccessChain(r,XC.createToken(29),t.name):XC.createPropertyAccessChain(r,t.questionDotToken,t.name);if(KD(t))return o?XC.createElementAccessChain(r,XC.createToken(29),t.argumentExpression):XC.createElementAccessChain(r,t.questionDotToken,t.argumentExpression)}return t}$2(m4,{kinds:[h4.kind],getEditsForAction:function(e,t){const n=b4(e);return un.assert(n&&!Z6(n),"Expected applicable refactor info"),{edits:Tue.ChangeTracker.with(e,(t=>function(e,t,n,r){const{finalExpression:i,occurrences:o,expression:a}=r,s=o[o.length-1],c=C4(t,i,o);c&&(HD(c)||KD(c)||GD(c))&&(cF(a)?n.replaceNodeRange(e,s,i,c):lF(a)&&n.replaceNode(e,a,XC.createBinaryExpression(c,XC.createToken(61),a.whenFalse)))}(e.file,e.program.getTypeChecker(),t,n))),renameFilename:void 0,renameLocation:void 0}},getAvailableActions:function(e){const t=b4(e,"invoked"===e.triggerReason);return t?Z6(t)?e.preferences.provideRefactorNotApplicableReason?[{name:m4,description:g4,actions:[{...h4,notApplicableReason:t.error}]}]:l:[{name:m4,description:g4,actions:[h4]}]:l}});var w4={};i(w4,{Messages:()=>N4,RangeFacts:()=>I4,getRangeToExtract:()=>O4,getRefactorActionsToExtractSymbol:()=>P4,getRefactorEditsToExtractSymbol:()=>A4});var N4,D4="Extract Symbol",F4={name:"Extract Constant",description:Ux(la.Extract_constant),kind:"refactor.extract.constant"},E4={name:"Extract Function",description:Ux(la.Extract_function),kind:"refactor.extract.function"};function P4(e){const t=e.kind,n=O4(e.file,EZ(e),"invoked"===e.triggerReason),r=n.targetRange;if(void 0===r){if(!n.errors||0===n.errors.length||!e.preferences.provideRefactorNotApplicableReason)return l;const r=[];return e3(E4.kind,t)&&r.push({name:D4,description:E4.description,actions:[{...E4,notApplicableReason:m(n.errors)}]}),e3(F4.kind,t)&&r.push({name:D4,description:F4.description,actions:[{...F4,notApplicableReason:m(n.errors)}]}),r}const{affectedTextRange:i,extractions:o}=function(e,t){const{scopes:n,affectedTextRange:r,readsAndWrites:{functionErrorsPerScope:i,constantErrorsPerScope:o}}=R4(e,t),a=n.map(((e,t)=>{const n=function(e){return i_(e)?"inner function":__(e)?"method":"function"}(e),r=function(e){return __(e)?"readonly field":"constant"}(e),a=i_(e)?function(e){switch(e.kind){case 176:return"constructor";case 218:case 262:return e.name?`function '${e.name.text}'`:aZ;case 219:return"arrow function";case 174:return`method '${e.name.getText()}'`;case 177:return`'get ${e.name.getText()}'`;case 178:return`'set ${e.name.getText()}'`;default:un.assertNever(e,`Unexpected scope kind ${e.kind}`)}}(e):__(e)?function(e){return 263===e.kind?e.name?`class '${e.name.text}'`:"anonymous class declaration":e.name?`class expression '${e.name.text}'`:"anonymous class expression"}(e):function(e){return 268===e.kind?`namespace '${e.parent.name.getText()}'`:e.externalModuleIndicator?0:1}(e);let s,c;return 1===a?(s=Jx(Ux(la.Extract_to_0_in_1_scope),[n,"global"]),c=Jx(Ux(la.Extract_to_0_in_1_scope),[r,"global"])):0===a?(s=Jx(Ux(la.Extract_to_0_in_1_scope),[n,"module"]),c=Jx(Ux(la.Extract_to_0_in_1_scope),[r,"module"])):(s=Jx(Ux(la.Extract_to_0_in_1),[n,a]),c=Jx(Ux(la.Extract_to_0_in_1),[r,a])),0!==t||__(e)||(c=Jx(Ux(la.Extract_to_0_in_enclosing_scope),[r])),{functionExtraction:{description:s,errors:i[t]},constantExtraction:{description:c,errors:o[t]}}}));return{affectedTextRange:r,extractions:a}}(r,e);if(void 0===o)return l;const a=[],s=new Map;let c;const _=[],u=new Map;let d,p=0;for(const{functionExtraction:n,constantExtraction:r}of o){if(e3(E4.kind,t)){const t=n.description;0===n.errors.length?s.has(t)||(s.set(t,!0),a.push({description:t,name:`function_scope_${p}`,kind:E4.kind,range:{start:{line:Ja(e.file,i.pos).line,offset:Ja(e.file,i.pos).character},end:{line:Ja(e.file,i.end).line,offset:Ja(e.file,i.end).character}}})):c||(c={description:t,name:`function_scope_${p}`,notApplicableReason:m(n.errors),kind:E4.kind})}if(e3(F4.kind,t)){const t=r.description;0===r.errors.length?u.has(t)||(u.set(t,!0),_.push({description:t,name:`constant_scope_${p}`,kind:F4.kind,range:{start:{line:Ja(e.file,i.pos).line,offset:Ja(e.file,i.pos).character},end:{line:Ja(e.file,i.end).line,offset:Ja(e.file,i.end).character}}})):d||(d={description:t,name:`constant_scope_${p}`,notApplicableReason:m(r.errors),kind:F4.kind})}p++}const f=[];return a.length?f.push({name:D4,description:Ux(la.Extract_function),actions:a}):e.preferences.provideRefactorNotApplicableReason&&c&&f.push({name:D4,description:Ux(la.Extract_function),actions:[c]}),_.length?f.push({name:D4,description:Ux(la.Extract_constant),actions:_}):e.preferences.provideRefactorNotApplicableReason&&d&&f.push({name:D4,description:Ux(la.Extract_constant),actions:[d]}),f.length?f:l;function m(e){let t=e[0].messageText;return"string"!=typeof t&&(t=t.messageText),t}}function A4(e,t){const n=O4(e.file,EZ(e)).targetRange,r=/^function_scope_(\d+)$/.exec(t);if(r){const t=+r[1];return un.assert(isFinite(t),"Expected to parse a finite number from the function scope index"),function(e,t,n){const{scopes:r,readsAndWrites:{target:i,usagesPerScope:o,functionErrorsPerScope:a,exposedVariableDeclarations:s}}=R4(e,t);return un.assert(!a[n].length,"The extraction went missing? How?"),t.cancellationToken.throwIfCancellationRequested(),function(e,t,{usages:n,typeParameterUsages:r,substitutions:i},o,a,s){const c=s.program.getTypeChecker(),_=hk(s.program.getCompilerOptions()),u=f7.createImportAdder(s.file,s.program,s.preferences,s.host),d=t.getSourceFile(),p=$Y(__(t)?"newMethod":"newFunction",d),f=Fm(t),m=XC.createIdentifier(p);let g;const h=[],y=[];let v;n.forEach(((e,n)=>{let r;if(!f){let n=c.getTypeOfSymbolAtLocation(e.symbol,e.node);n=c.getBaseTypeOfLiteralType(n),r=f7.typeToAutoImportableTypeNode(c,u,n,t,_,1,8)}const i=XC.createParameterDeclaration(void 0,void 0,n,void 0,r);h.push(i),2===e.usage&&(v||(v=[])).push(e),y.push(XC.createIdentifier(n))}));const x=Oe(r.values(),(e=>({type:e,declaration:M4(e,s.startPosition)})));x.sort(B4);const k=0===x.length?void 0:B(x,(({declaration:e})=>e)),S=void 0!==k?k.map((e=>XC.createTypeReferenceNode(e.name,void 0))):void 0;if(U_(e)&&!f){const n=c.getContextualType(e);g=c.typeToTypeNode(n,t,1,8)}const{body:T,returnValueProperty:C}=function(e,t,n,r,i){const o=void 0!==n||t.length>0;if(CF(e)&&!o&&0===r.size)return{body:XC.createBlock(e.statements,!0),returnValueProperty:void 0};let a,s=!1;const c=XC.createNodeArray(CF(e)?e.statements.slice(0):[du(e)?e:XC.createReturnStatement(oh(e))]);if(o||r.size){const l=HB(c,(function e(i){if(!s&&RF(i)&&o){const r=J4(t,n);return i.expression&&(a||(a="__return"),r.unshift(XC.createPropertyAssignment(a,$B(i.expression,e,U_)))),1===r.length?XC.createReturnStatement(r[0].name):XC.createReturnStatement(XC.createObjectLiteralExpression(r))}{const t=s;s=s||i_(i)||__(i);const n=r.get(jB(i).toString()),o=n?LY(n):nJ(i,e,void 0);return s=t,o}}),du).slice();if(o&&!i&&du(e)){const e=J4(t,n);1===e.length?l.push(XC.createReturnStatement(e[0].name)):l.push(XC.createReturnStatement(XC.createObjectLiteralExpression(e)))}return{body:XC.createBlock(l,!0),returnValueProperty:a}}return{body:XC.createBlock(c,!0),returnValueProperty:void 0}}(e,o,v,i,!!(1&a.facts));let w;JY(T);const N=!!(16&a.facts);if(__(t)){const e=f?[]:[XC.createModifier(123)];32&a.facts&&e.push(XC.createModifier(126)),4&a.facts&&e.push(XC.createModifier(134)),w=XC.createMethodDeclaration(e.length?e:void 0,2&a.facts?XC.createToken(42):void 0,m,void 0,k,h,g,T)}else N&&h.unshift(XC.createParameterDeclaration(void 0,void 0,"this",void 0,c.typeToTypeNode(c.getTypeAtLocation(a.thisNode),t,1,8),void 0)),w=XC.createFunctionDeclaration(4&a.facts?[XC.createToken(134)]:void 0,2&a.facts?XC.createToken(42):void 0,m,k,h,g,T);const D=Tue.ChangeTracker.fromContext(s),F=function(e,t){return b(function(e){if(i_(e)){const t=e.body;if(CF(t))return t.statements}else{if(YF(e)||qE(e))return e.statements;if(__(e))return e.members}return l}(t),(t=>t.pos>=e&&i_(t)&&!dD(t)))}((z4(a.range)?ve(a.range):a.range).end,t);F?D.insertNodeBefore(s.file,F,w,!0):D.insertNodeAtEndOfScope(s.file,t,w),u.writeFixes(D);const E=[],P=function(e,t,n){const r=XC.createIdentifier(n);if(__(e)){const n=32&t.facts?XC.createIdentifier(e.name.text):XC.createThis();return XC.createPropertyAccessExpression(n,r)}return r}(t,a,p);N&&y.unshift(XC.createIdentifier("this"));let A=XC.createCallExpression(N?XC.createPropertyAccessExpression(P,"call"):P,S,y);if(2&a.facts&&(A=XC.createYieldExpression(XC.createToken(42),A)),4&a.facts&&(A=XC.createAwaitExpression(A)),U4(e)&&(A=XC.createJsxExpression(void 0,A)),o.length&&!v)if(un.assert(!C,"Expected no returnValueProperty"),un.assert(!(1&a.facts),"Expected RangeFacts.HasReturn flag to be unset"),1===o.length){const e=o[0];E.push(XC.createVariableStatement(void 0,XC.createVariableDeclarationList([XC.createVariableDeclaration(LY(e.name),void 0,LY(e.type),A)],e.parent.flags)))}else{const e=[],n=[];let r=o[0].parent.flags,i=!1;for(const a of o){e.push(XC.createBindingElement(void 0,void 0,LY(a.name)));const o=c.typeToTypeNode(c.getBaseTypeOfLiteralType(c.getTypeAtLocation(a)),t,1,8);n.push(XC.createPropertySignature(void 0,a.symbol.name,void 0,o)),i=i||void 0!==a.type,r&=a.parent.flags}const a=i?XC.createTypeLiteralNode(n):void 0;a&&nw(a,1),E.push(XC.createVariableStatement(void 0,XC.createVariableDeclarationList([XC.createVariableDeclaration(XC.createObjectBindingPattern(e),void 0,a,A)],r)))}else if(o.length||v){if(o.length)for(const e of o){let t=e.parent.flags;2&t&&(t=-3&t|1),E.push(XC.createVariableStatement(void 0,XC.createVariableDeclarationList([XC.createVariableDeclaration(e.symbol.name,void 0,L(e.type))],t)))}C&&E.push(XC.createVariableStatement(void 0,XC.createVariableDeclarationList([XC.createVariableDeclaration(C,void 0,L(g))],1)));const e=J4(o,v);C&&e.unshift(XC.createShorthandPropertyAssignment(C)),1===e.length?(un.assert(!C,"Shouldn't have returnValueProperty here"),E.push(XC.createExpressionStatement(XC.createAssignment(e[0].name,A))),1&a.facts&&E.push(XC.createReturnStatement())):(E.push(XC.createExpressionStatement(XC.createAssignment(XC.createObjectLiteralExpression(e),A))),C&&E.push(XC.createReturnStatement(XC.createIdentifier(C))))}else 1&a.facts?E.push(XC.createReturnStatement(A)):z4(a.range)?E.push(XC.createExpressionStatement(A)):E.push(A);z4(a.range)?D.replaceNodeRangeWithNodes(s.file,ge(a.range),ve(a.range),E):D.replaceNodeWithNodes(s.file,a.range,E);const I=D.getChanges(),O=(z4(a.range)?ge(a.range):a.range).getSourceFile().fileName;return{renameFilename:O,renameLocation:HY(I,O,p,!1),edits:I};function L(e){if(void 0===e)return;const t=LY(e);let n=t;for(;ID(n);)n=n.type;return FD(n)&&b(n.types,(e=>157===e.kind))?t:XC.createUnionTypeNode([t,XC.createKeywordTypeNode(157)])}}(i,r[n],o[n],s,e,t)}(n,e,t)}const i=/^constant_scope_(\d+)$/.exec(t);if(i){const t=+i[1];return un.assert(isFinite(t),"Expected to parse a finite number from the constant scope index"),function(e,t,n){const{scopes:r,readsAndWrites:{target:i,usagesPerScope:o,constantErrorsPerScope:a,exposedVariableDeclarations:s}}=R4(e,t);return un.assert(!a[n].length,"The extraction went missing? How?"),un.assert(0===s.length,"Extract constant accepted a range containing a variable declaration?"),t.cancellationToken.throwIfCancellationRequested(),function(e,t,{substitutions:n},r,i){const o=i.program.getTypeChecker(),a=t.getSourceFile(),s=t3(e,t,o,a),c=Fm(t);let l=c||!o.isContextSensitive(e)?void 0:o.typeToTypeNode(o.getContextualType(e),t,1,8),_=function(e,t){return t.size?function e(n){const r=t.get(jB(n).toString());return r?LY(r):nJ(n,e,void 0)}(e):e}(oh(e),n);({variableType:l,initializer:_}=function(n,r){if(void 0===n)return{variableType:n,initializer:r};if(!eF(r)&&!tF(r)||r.typeParameters)return{variableType:n,initializer:r};const i=o.getTypeAtLocation(e),a=be(o.getSignaturesOfType(i,0));if(!a)return{variableType:n,initializer:r};if(a.getTypeParameters())return{variableType:n,initializer:r};const s=[];let c=!1;for(const e of r.parameters)if(e.type)s.push(e);else{const n=o.getTypeAtLocation(e);n===o.getAnyType()&&(c=!0),s.push(XC.updateParameterDeclaration(e,e.modifiers,e.dotDotDotToken,e.name,e.questionToken,e.type||o.typeToTypeNode(n,t,1,8),e.initializer))}if(c)return{variableType:n,initializer:r};if(n=void 0,tF(r))r=XC.updateArrowFunction(r,rI(e)?Nc(e):void 0,r.typeParameters,s,r.type||o.typeToTypeNode(a.getReturnType(),t,1,8),r.equalsGreaterThanToken,r.body);else{if(a&&a.thisParameter){const n=fe(s);if(!n||zN(n.name)&&"this"!==n.name.escapedText){const n=o.getTypeOfSymbolAtLocation(a.thisParameter,e);s.splice(0,0,XC.createParameterDeclaration(void 0,void 0,"this",void 0,o.typeToTypeNode(n,t,1,8)))}}r=XC.updateFunctionExpression(r,rI(e)?Nc(e):void 0,r.asteriskToken,r.name,r.typeParameters,s,r.type||o.typeToTypeNode(a.getReturnType(),t,1),r.body)}return{variableType:n,initializer:r}}(l,_)),JY(_);const u=Tue.ChangeTracker.fromContext(i);if(__(t)){un.assert(!c,"Cannot extract to a JS class");const n=[];n.push(XC.createModifier(123)),32&r&&n.push(XC.createModifier(126)),n.push(XC.createModifier(148));const o=XC.createPropertyDeclaration(n,s,void 0,l,_);let a=XC.createPropertyAccessExpression(32&r?XC.createIdentifier(t.name.getText()):XC.createThis(),XC.createIdentifier(s));U4(e)&&(a=XC.createJsxExpression(void 0,a));const d=function(e,t){const n=t.members;let r;un.assert(n.length>0,"Found no members");let i=!0;for(const t of n){if(t.pos>e)return r||n[0];if(i&&!cD(t)){if(void 0!==r)return t;i=!1}r=t}return void 0===r?un.fail():r}(e.pos,t);u.insertNodeBefore(i.file,d,o,!0),u.replaceNode(i.file,e,a)}else{const n=XC.createVariableDeclaration(s,void 0,l,_),r=function(e,t){let n;for(;void 0!==e&&e!==t;){if(VF(e)&&e.initializer===n&&WF(e.parent)&&e.parent.declarations.length>1)return e;n=e,e=e.parent}}(e,t);if(r){u.insertNodeBefore(i.file,r,n);const t=XC.createIdentifier(s);u.replaceNode(i.file,e,t)}else if(244===e.parent.kind&&t===_c(e,j4)){const t=XC.createVariableStatement(void 0,XC.createVariableDeclarationList([n],2));u.replaceNode(i.file,e.parent,t)}else{const r=XC.createVariableStatement(void 0,XC.createVariableDeclarationList([n],2)),o=function(e,t){let n;un.assert(!__(t));for(let r=e;r!==t;r=r.parent)j4(r)&&(n=r);for(let r=(n||e).parent;;r=r.parent){if(GZ(r)){let t;for(const n of r.statements){if(n.pos>e.pos)break;t=n}return!t&&OE(r)?(un.assert(BF(r.parent.parent),"Grandparent isn't a switch statement"),r.parent.parent):un.checkDefined(t,"prevStatement failed to get set")}un.assert(r!==t,"Didn't encounter a block-like before encountering scope")}}(e,t);if(0===o.pos?u.insertNodeAtTopOfFile(i.file,r,!1):u.insertNodeBefore(i.file,o,r,!1),244===e.parent.kind)u.delete(i.file,e.parent);else{let t=XC.createIdentifier(s);U4(e)&&(t=XC.createJsxExpression(void 0,t)),u.replaceNode(i.file,e,t)}}}const d=u.getChanges(),p=e.getSourceFile().fileName;return{renameFilename:p,renameLocation:HY(d,p,s,!0),edits:d}}(U_(i)?i:i.statements[0].expression,r[n],o[n],e.facts,t)}(n,e,t)}un.fail("Unrecognized action name")}$2(D4,{kinds:[F4.kind,E4.kind],getEditsForAction:A4,getAvailableActions:P4}),(e=>{function t(e){return{message:e,code:0,category:3,key:e}}e.cannotExtractRange=t("Cannot extract range."),e.cannotExtractImport=t("Cannot extract import statement."),e.cannotExtractSuper=t("Cannot extract super call."),e.cannotExtractJSDoc=t("Cannot extract JSDoc."),e.cannotExtractEmpty=t("Cannot extract empty range."),e.expressionExpected=t("expression expected."),e.uselessConstantType=t("No reason to extract constant of type."),e.statementOrExpressionExpected=t("Statement or expression expected."),e.cannotExtractRangeContainingConditionalBreakOrContinueStatements=t("Cannot extract range containing conditional break or continue statements."),e.cannotExtractRangeContainingConditionalReturnStatement=t("Cannot extract range containing conditional return statement."),e.cannotExtractRangeContainingLabeledBreakOrContinueStatementWithTargetOutsideOfTheRange=t("Cannot extract range containing labeled break or continue with target outside of the range."),e.cannotExtractRangeThatContainsWritesToReferencesLocatedOutsideOfTheTargetRangeInGenerators=t("Cannot extract range containing writes to references located outside of the target range in generators."),e.typeWillNotBeVisibleInTheNewScope=t("Type will not visible in the new scope."),e.functionWillNotBeVisibleInTheNewScope=t("Function will not visible in the new scope."),e.cannotExtractIdentifier=t("Select more than a single identifier."),e.cannotExtractExportedEntity=t("Cannot extract exported declaration"),e.cannotWriteInExpression=t("Cannot write back side-effects when extracting an expression"),e.cannotExtractReadonlyPropertyInitializerOutsideConstructor=t("Cannot move initialization of read-only class property outside of the constructor"),e.cannotExtractAmbientBlock=t("Cannot extract code from ambient contexts"),e.cannotAccessVariablesFromNestedScopes=t("Cannot access variables from nested scopes"),e.cannotExtractToJSClass=t("Cannot extract constant to a class scope in JS"),e.cannotExtractToExpressionArrowFunction=t("Cannot extract constant to an arrow function without a block"),e.cannotExtractFunctionsContainingThisToMethod=t("Cannot extract functions containing this to method")})(N4||(N4={}));var I4=(e=>(e[e.None=0]="None",e[e.HasReturn=1]="HasReturn",e[e.IsGenerator=2]="IsGenerator",e[e.IsAsyncFunction=4]="IsAsyncFunction",e[e.UsesThis=8]="UsesThis",e[e.UsesThisInFunction=16]="UsesThisInFunction",e[e.InStaticRegion=32]="InStaticRegion",e))(I4||{});function O4(e,t,n=!0){const{length:r}=t;if(0===r&&!n)return{errors:[Kx(e,t.start,r,N4.cannotExtractEmpty)]};const i=0===r&&n,o=IX(e,t.start),a=OX(e,Ds(t)),s=o&&a&&n?function(e,t,n){const r=e.getStart(n);let i=t.getEnd();return 59===n.text.charCodeAt(i)&&i++,{start:r,length:i-r}}(o,a,e):t,c=i?function(e){return _c(e,(e=>e.parent&&q4(e)&&!cF(e.parent)))}(o):$Q(o,e,s),l=i?c:$Q(a,e,s);let _,u=0;if(!c||!l)return{errors:[Kx(e,t.start,r,N4.cannotExtractRange)]};if(16777216&c.flags)return{errors:[Kx(e,t.start,r,N4.cannotExtractJSDoc)]};if(c.parent!==l.parent)return{errors:[Kx(e,t.start,r,N4.cannotExtractRange)]};if(c!==l){if(!GZ(c.parent))return{errors:[Kx(e,t.start,r,N4.cannotExtractRange)]};const n=[];for(const e of c.parent.statements){if(e===c||n.length){const t=f(e);if(t)return{errors:t};n.push(e)}if(e===l)break}return n.length?{targetRange:{range:n,facts:u,thisNode:_}}:{errors:[Kx(e,t.start,r,N4.cannotExtractRange)]}}if(RF(c)&&!c.expression)return{errors:[Kx(e,t.start,r,N4.cannotExtractRange)]};const d=function(e){if(RF(e)){if(e.expression)return e.expression}else if(wF(e)||WF(e)){const t=wF(e)?e.declarationList.declarations:e.declarations;let n,r=0;for(const e of t)e.initializer&&(r++,n=e.initializer);if(1===r)return n}else if(VF(e)&&e.initializer)return e.initializer;return e}(c),p=function(e){if(zN(DF(e)?e.expression:e))return[jp(e,N4.cannotExtractIdentifier)]}(d)||f(d);return p?{errors:p}:{targetRange:{range:L4(d),facts:u,thisNode:_}};function f(e){let n;var r;if((r=n||(n={}))[r.None=0]="None",r[r.Break=1]="Break",r[r.Continue=2]="Continue",r[r.Return=4]="Return",un.assert(e.pos<=e.end,"This failure could trigger https://github.com/Microsoft/TypeScript/issues/20809 (1)"),un.assert(!KS(e.pos),"This failure could trigger https://github.com/Microsoft/TypeScript/issues/20809 (2)"),!(du(e)||vm(e)&&q4(e)||V4(e)))return[jp(e,N4.statementOrExpressionExpected)];if(33554432&e.flags)return[jp(e,N4.cannotExtractAmbientBlock)];const i=Gf(e);let o;i&&function(e,t){let n=e;for(;n!==t;){if(172===n.kind){Nv(n)&&(u|=32);break}if(169===n.kind){176===Hf(n).kind&&(u|=32);break}174===n.kind&&Nv(n)&&(u|=32),n=n.parent}}(e,i);let a,s=4;if(function e(n){if(o)return!0;if(lu(n)&&wv(260===n.kind?n.parent.parent:n,32))return(o||(o=[])).push(jp(n,N4.cannotExtractExportedEntity)),!0;switch(n.kind){case 272:return(o||(o=[])).push(jp(n,N4.cannotExtractImport)),!0;case 277:return(o||(o=[])).push(jp(n,N4.cannotExtractExportedEntity)),!0;case 108:if(213===n.parent.kind){const e=Gf(n);if(void 0===e||e.pos=t.start+t.length)return(o||(o=[])).push(jp(n,N4.cannotExtractSuper)),!0}else u|=8,_=n;break;case 219:PI(n,(function e(t){if(rX(t))u|=8,_=n;else{if(__(t)||n_(t)&&!tF(t))return!1;PI(t,e)}}));case 263:case 262:qE(n.parent)&&void 0===n.parent.externalModuleIndicator&&(o||(o=[])).push(jp(n,N4.functionWillNotBeVisibleInTheNewScope));case 231:case 218:case 174:case 176:case 177:case 178:return!1}const r=s;switch(n.kind){case 245:s&=-5;break;case 258:s=0;break;case 241:n.parent&&258===n.parent.kind&&n.parent.finallyBlock===n&&(s=4);break;case 297:case 296:s|=1;break;default:W_(n,!1)&&(s|=3)}switch(n.kind){case 197:case 110:u|=8,_=n;break;case 256:{const t=n.label;(a||(a=[])).push(t.escapedText),PI(n,e),a.pop();break}case 252:case 251:{const e=n.label;e?T(a,e.escapedText)||(o||(o=[])).push(jp(n,N4.cannotExtractRangeContainingLabeledBreakOrContinueStatementWithTargetOutsideOfTheRange)):s&(252===n.kind?1:2)||(o||(o=[])).push(jp(n,N4.cannotExtractRangeContainingConditionalBreakOrContinueStatements));break}case 223:u|=4;break;case 229:u|=2;break;case 253:4&s?u|=1:(o||(o=[])).push(jp(n,N4.cannotExtractRangeContainingConditionalReturnStatement));break;default:PI(n,e)}s=r}(e),8&u){const t=Zf(e,!1,!1);(262===t.kind||174===t.kind&&210===t.parent.kind||218===t.kind)&&(u|=16)}return o}}function L4(e){return du(e)?[e]:vm(e)?DF(e.parent)?[e.parent]:e:V4(e)?e:void 0}function j4(e){return tF(e)?Y_(e.body):i_(e)||qE(e)||YF(e)||__(e)}function R4(e,t){const{file:n}=t,r=function(e){let t=z4(e.range)?ge(e.range):e.range;if(8&e.facts&&!(16&e.facts)){const e=Gf(t);if(e){const n=_c(t,i_);return n?[n,e]:[e]}}const n=[];for(;;)if(t=t.parent,169===t.kind&&(t=_c(t,(e=>i_(e))).parent),j4(t)&&(n.push(t),307===t.kind))return n}(e),i=function(e,t){return z4(e.range)?{pos:ge(e.range).getStart(t),end:ve(e.range).getEnd()}:e.range}(e,n),o=function(e,t,n,r,i,o){const a=new Map,s=[],c=[],l=[],_=[],u=[],d=new Map,p=[];let f;const m=z4(e.range)?1===e.range.length&&DF(e.range[0])?e.range[0].expression:void 0:e.range;let g;if(void 0===m){const t=e.range,n=ge(t).getStart(),i=ve(t).end;g=Kx(r,n,i-n,N4.expressionExpected)}else 147456&i.getTypeAtLocation(m).flags&&(g=jp(m,N4.uselessConstantType));for(const e of t){s.push({usages:new Map,typeParameterUsages:new Map,substitutions:new Map}),c.push(new Map),l.push([]);const t=[];g&&t.push(g),__(e)&&Fm(e)&&t.push(jp(e,N4.cannotExtractToJSClass)),tF(e)&&!CF(e.body)&&t.push(jp(e,N4.cannotExtractToExpressionArrowFunction)),_.push(t)}const h=new Map,y=z4(e.range)?XC.createBlock(e.range):e.range,v=z4(e.range)?ge(e.range):e.range,x=!!_c(v,(e=>vp(e)&&0!==ll(e).length));if(function o(a,d=1){x&&k(i.getTypeAtLocation(a));if(lu(a)&&a.symbol&&u.push(a),nb(a))o(a.left,2),o(a.right);else if(z_(a))o(a.operand,2);else if(HD(a)||KD(a))PI(a,o);else if(zN(a)){if(!a.parent)return;if(nD(a.parent)&&a!==a.parent.left)return;if(HD(a.parent)&&a!==a.parent.expression)return;!function(o,a,u){const d=function(o,a,u){const d=S(o);if(!d)return;const p=RB(d).toString(),f=h.get(p);if(f&&f>=a)return p;if(h.set(p,a),f){for(const e of s)e.usages.get(o.text)&&e.usages.set(o.text,{usage:a,symbol:d,node:o});return p}const m=d.getDeclarations(),g=m&&b(m,(e=>e.getSourceFile()===r));if(g&&!lX(n,g.getStart(),g.end)){if(2&e.facts&&2===a){const e=jp(o,N4.cannotExtractRangeThatContainsWritesToReferencesLocatedOutsideOfTheTargetRangeInGenerators);for(const t of l)t.push(e);for(const t of _)t.push(e)}for(let e=0;e0){const e=new Map;let n=0;for(let r=v;void 0!==r&&n{s[n].typeParameterUsages.set(t,e)})),n++),vp(r))for(const t of ll(r)){const n=i.getTypeAtLocation(t);a.has(n.id.toString())&&e.set(n.id.toString(),n)}un.assert(n===t.length,"Should have iterated all scopes")}u.length&&PI(yp(t[0],t[0].parent)?t[0]:Dp(t[0]),(function t(n){if(n===e.range||z4(e.range)&&e.range.includes(n))return;const r=zN(n)?S(n):i.getSymbolAtLocation(n);if(r){const e=b(u,(e=>e.symbol===r));if(e)if(VF(e)){const t=e.symbol.id.toString();d.has(t)||(p.push(e),d.set(t,!0))}else f=f||e}PI(n,t)}));for(let n=0;n0&&(r.usages.size>0||r.typeParameterUsages.size>0)){const t=z4(e.range)?e.range[0]:e.range;_[n].push(jp(t,N4.cannotAccessVariablesFromNestedScopes))}16&e.facts&&__(t[n])&&l[n].push(jp(e.thisNode,N4.cannotExtractFunctionsContainingThisToMethod));let i,o=!1;if(s[n].usages.forEach((e=>{2===e.usage&&(o=!0,106500&e.symbol.flags&&e.symbol.valueDeclaration&&Cv(e.symbol.valueDeclaration,8)&&(i=e.symbol.valueDeclaration))})),un.assert(z4(e.range)||0===p.length,"No variable declarations expected if something was extracted"),o&&!z4(e.range)){const t=jp(e.range,N4.cannotWriteInExpression);l[n].push(t),_[n].push(t)}else if(i&&n>0){const e=jp(i,N4.cannotExtractReadonlyPropertyInitializerOutsideConstructor);l[n].push(e),_[n].push(e)}else if(f){const e=jp(f,N4.cannotExtractExportedEntity);l[n].push(e),_[n].push(e)}}return{target:y,usagesPerScope:s,functionErrorsPerScope:l,constantErrorsPerScope:_,exposedVariableDeclarations:p};function k(e){const t=i.getSymbolWalker((()=>(o.throwIfCancellationRequested(),!0))),{visitedTypes:n}=t.walkType(e);for(const e of n)e.isTypeParameter()&&a.set(e.id.toString(),e)}function S(e){return e.parent&&BE(e.parent)&&e.parent.name===e?i.getShorthandAssignmentValueSymbol(e.parent):i.getSymbolAtLocation(e)}function T(e,t,n){if(!e)return;const r=e.getDeclarations();if(r&&r.some((e=>e.parent===t)))return XC.createIdentifier(e.name);const i=T(e.parent,t,n);return void 0!==i?n?XC.createQualifiedName(i,XC.createIdentifier(e.name)):XC.createPropertyAccessExpression(i,e.name):void 0}}(e,r,i,n,t.program.getTypeChecker(),t.cancellationToken);return{scopes:r,affectedTextRange:i,readsAndWrites:o}}function M4(e,t){let n;const r=e.symbol;if(r&&r.declarations)for(const e of r.declarations)(void 0===n||e.posXC.createShorthandPropertyAssignment(e.symbol.name))),r=E(t,(e=>XC.createShorthandPropertyAssignment(e.symbol.name)));return void 0===n?r:void 0===r?n:n.concat(r)}function z4(e){return Qe(e)}function q4(e){const{parent:t}=e;if(306===t.kind)return!1;switch(e.kind){case 11:return 272!==t.kind&&276!==t.kind;case 230:case 206:case 208:return!1;case 80:return 208!==t.kind&&276!==t.kind&&281!==t.kind}return!0}function U4(e){return V4(e)||(kE(e)||SE(e)||wE(e))&&(kE(e.parent)||wE(e.parent))}function V4(e){return TN(e)&&e.parent&&FE(e.parent)}var W4={},$4="Generate 'get' and 'set' accessors",H4=Ux(la.Generate_get_and_set_accessors),K4={name:$4,description:H4,kind:"refactor.rewrite.property.generateAccessors"};$2($4,{kinds:[K4.kind],getEditsForAction:function(e,t){if(!e.endPosition)return;const n=f7.getAccessorConvertiblePropertyAtPosition(e.file,e.program,e.startPosition,e.endPosition);un.assert(n&&!Z6(n),"Expected applicable refactor info");const r=f7.generateAccessorFromProperty(e.file,e.program,e.startPosition,e.endPosition,e,t);if(!r)return;const i=e.file.fileName,o=n.renameAccessor?n.accessorName:n.fieldName;return{renameFilename:i,renameLocation:(zN(o)?0:-1)+HY(r,i,o.text,oD(n.declaration)),edits:r}},getAvailableActions(e){if(!e.endPosition)return l;const t=f7.getAccessorConvertiblePropertyAtPosition(e.file,e.program,e.startPosition,e.endPosition,"invoked"===e.triggerReason);return t?Z6(t)?e.preferences.provideRefactorNotApplicableReason?[{name:$4,description:H4,actions:[{...K4,notApplicableReason:t.error}]}]:l:[{name:$4,description:H4,actions:[K4]}]:l}});var G4={},X4="Infer function return type",Q4=Ux(la.Infer_function_return_type),Y4={name:X4,description:Q4,kind:"refactor.rewrite.function.returnType"};function Z4(e){if(Fm(e.file)||!e3(Y4.kind,e.kind))return;const t=_c(FX(e.file,e.startPosition),(e=>CF(e)||e.parent&&tF(e.parent)&&(39===e.kind||e.parent.body===e)?"quit":function(e){switch(e.kind){case 262:case 218:case 219:case 174:return!0;default:return!1}}(e)));if(!t||!t.body||t.type)return{error:Ux(la.Return_type_must_be_inferred_from_a_function)};const n=e.program.getTypeChecker();let r;if(n.isImplementationOfOverload(t)){const e=n.getTypeAtLocation(t).getCallSignatures();e.length>1&&(r=n.getUnionType(B(e,(e=>e.getReturnType()))))}if(!r){const e=n.getSignatureFromDeclaration(t);if(e){const i=n.getTypePredicateOfSignature(e);if(i&&i.type){const e=n.typePredicateToTypePredicateNode(i,t,1,8);if(e)return{declaration:t,returnTypeNode:e}}else r=n.getReturnTypeOfSignature(e)}}if(!r)return{error:Ux(la.Could_not_determine_function_return_type)};const i=n.typeToTypeNode(r,t,1,8);return i?{declaration:t,returnTypeNode:i}:void 0}$2(X4,{kinds:[Y4.kind],getEditsForAction:function(e){const t=Z4(e);if(t&&!Z6(t))return{renameFilename:void 0,renameLocation:void 0,edits:Tue.ChangeTracker.with(e,(n=>function(e,t,n,r){const i=yX(n,22,e),o=tF(n)&&void 0===i,a=o?ge(n.parameters):i;a&&(o&&(t.insertNodeBefore(e,a,XC.createToken(21)),t.insertNodeAfter(e,a,XC.createToken(22))),t.insertNodeAt(e,a.end,r,{prefix:": "}))}(e.file,n,t.declaration,t.returnTypeNode)))}},getAvailableActions:function(e){const t=Z4(e);return t?Z6(t)?e.preferences.provideRefactorNotApplicableReason?[{name:X4,description:Q4,actions:[{...Y4,notApplicableReason:t.error}]}]:l:[{name:X4,description:Q4,actions:[Y4]}]:l}});var e8=(e=>(e[e.typeOffset=8]="typeOffset",e[e.modifierMask=255]="modifierMask",e))(e8||{}),t8=(e=>(e[e.class=0]="class",e[e.enum=1]="enum",e[e.interface=2]="interface",e[e.namespace=3]="namespace",e[e.typeParameter=4]="typeParameter",e[e.type=5]="type",e[e.parameter=6]="parameter",e[e.variable=7]="variable",e[e.enumMember=8]="enumMember",e[e.property=9]="property",e[e.function=10]="function",e[e.member=11]="member",e))(t8||{}),n8=(e=>(e[e.declaration=0]="declaration",e[e.static=1]="static",e[e.async=2]="async",e[e.readonly=3]="readonly",e[e.defaultLibrary=4]="defaultLibrary",e[e.local=5]="local",e))(n8||{});function r8(e,t,n,r){const i=i8(e,t,n,r);un.assert(i.spans.length%3==0);const o=i.spans,a=[];for(let e=0;ee(r)||r.isUnion()&&r.types.some(e);if(6!==n&&e((e=>e.getConstructSignatures().length>0)))return 0;if(e((e=>e.getCallSignatures().length>0))&&!e((e=>e.getProperties().length>0))||function(e){for(;s8(e);)e=e.parent;return GD(e.parent)&&e.parent.expression===e}(t))return 9===n?11:10}}return n}(o,c,i);const s=n.valueDeclaration;if(s){const r=rc(s),o=oc(s);256&r&&(a|=2),1024&r&&(a|=4),0!==i&&2!==i&&(8&r||2&o||8&n.getFlags())&&(a|=8),7!==i&&10!==i||!function(e,t){return VD(e)&&(e=a8(e)),VF(e)?(!qE(e.parent.parent.parent)||RE(e.parent))&&e.getSourceFile()===t:!!$F(e)&&(!qE(e.parent)&&e.getSourceFile()===t)}(s,t)||(a|=32),e.isSourceFileDefaultLibrary(s.getSourceFile())&&(a|=16)}else n.declarations&&n.declarations.some((t=>e.isSourceFileDefaultLibrary(t.getSourceFile())))&&(a|=16);r(c,i,a)}}}PI(c,s),a=l}(t)}(e,t,n,((e,n,r)=>{i.push(e.getStart(t),e.getWidth(t),(n+1<<8)+r)}),r),i}function a8(e){for(;;){if(!VD(e.parent.parent))return e.parent.parent;e=e.parent.parent}}function s8(e){return nD(e.parent)&&e.parent.right===e||HD(e.parent)&&e.parent.name===e}var c8=new Map([[260,7],[169,6],[172,9],[267,3],[266,1],[306,8],[263,0],[174,11],[262,10],[218,10],[173,11],[177,9],[178,9],[171,9],[264,2],[265,5],[168,4],[303,9],[304,9]]),l8="0.8";function _8(e,t,n,r){const i=Nl(e)?new u8(e,t,n):80===e?new g8(80,t,n):81===e?new h8(81,t,n):new m8(e,t,n);return i.parent=r,i.flags=101441536&r.flags,i}var u8=class{constructor(e,t,n){this.pos=t,this.end=n,this.kind=e,this.id=0,this.flags=0,this.modifierFlagsCache=0,this.transformFlags=0,this.parent=void 0,this.original=void 0,this.emitNode=void 0}assertHasRealPosition(e){un.assert(!KS(this.pos)&&!KS(this.end),e||"Node must have a real position for this operation")}getSourceFile(){return hd(this)}getStart(e,t){return this.assertHasRealPosition(),Bd(this,e,t)}getFullStart(){return this.assertHasRealPosition(),this.pos}getEnd(){return this.assertHasRealPosition(),this.end}getWidth(e){return this.assertHasRealPosition(),this.getEnd()-this.getStart(e)}getFullWidth(){return this.assertHasRealPosition(),this.end-this.pos}getLeadingTriviaWidth(e){return this.assertHasRealPosition(),this.getStart(e)-this.pos}getFullText(e){return this.assertHasRealPosition(),(e||this.getSourceFile()).text.substring(this.pos,this.end)}getText(e){return this.assertHasRealPosition(),e||(e=this.getSourceFile()),e.text.substring(this.getStart(e),this.getEnd())}getChildCount(e){return this.getChildren(e).length}getChildAt(e,t){return this.getChildren(t)[e]}getChildren(e=hd(this)){return this.assertHasRealPosition("Node without a real position cannot be scanned and thus has no token nodes - use forEachChild and collect the result if that's fine"),LP(this,e)??jP(this,e,function(e,t){const n=[];if(Su(e))return e.forEachChild((e=>{n.push(e)})),n;wG.setText((t||e.getSourceFile()).text);let r=e.pos;const i=t=>{d8(n,r,t.pos,e),n.push(t),r=t.end};return d(e.jsDoc,i),r=e.pos,e.forEachChild(i,(t=>{d8(n,r,t.pos,e),n.push(function(e,t){const n=_8(352,e.pos,e.end,t),r=[];let i=e.pos;for(const n of e)d8(r,i,n.pos,t),r.push(n),i=n.end;return d8(r,i,e.end,t),n._children=r,n}(t,e)),r=t.end})),d8(n,r,e.end,e),wG.setText(void 0),n}(this,e))}getFirstToken(e){this.assertHasRealPosition();const t=this.getChildren(e);if(!t.length)return;const n=b(t,(e=>e.kind<309||e.kind>351));return n.kind<166?n:n.getFirstToken(e)}getLastToken(e){this.assertHasRealPosition();const t=ye(this.getChildren(e));if(t)return t.kind<166?t:t.getLastToken(e)}forEachChild(e,t){return PI(this,e,t)}};function d8(e,t,n,r){for(wG.resetTokenState(t);t"inheritDoc"===e.tagName.text||"inheritdoc"===e.tagName.text))}function x8(e,t){if(!e)return l;let n=fle.getJsDocTagsFromDeclarations(e,t);if(t&&(0===n.length||e.some(b8))){const r=new Set;for(const i of e){const e=S8(t,i,(e=>{var n;if(!r.has(e))return r.add(e),177===i.kind||178===i.kind?e.getContextualJsDocTags(i,t):1===(null==(n=e.declarations)?void 0:n.length)?e.getJsDocTags(t):void 0}));e&&(n=[...e,...n])}}return n}function k8(e,t){if(!e)return l;let n=fle.getJsDocCommentsFromDeclarations(e,t);if(t&&(0===n.length||e.some(b8))){const r=new Set;for(const i of e){const e=S8(t,i,(e=>{if(!r.has(e))return r.add(e),177===i.kind||178===i.kind?e.getContextualDocumentationComment(i,t):e.getDocumentationComment(t)}));e&&(n=0===n.length?e.slice():e.concat(SY(),n))}}return n}function S8(e,t,n){var r;const i=176===(null==(r=t.parent)?void 0:r.kind)?t.parent.parent:t.parent;if(!i)return;const o=Dv(t);return f(bh(i),(r=>{const i=e.getTypeAtLocation(r),a=o&&i.symbol?e.getTypeOfSymbol(i.symbol):i,s=e.getPropertyOfType(a,t.symbol.name);return s?n(s):void 0}))}var T8=class extends u8{constructor(e,t,n){super(e,t,n)}update(e,t){return BI(this,e,t)}getLineAndCharacterOfPosition(e){return Ja(this,e)}getLineStarts(){return ja(this)}getPositionOfLineAndCharacter(e,t,n){return La(ja(this),e,t,this.text,n)}getLineEndOfPosition(e){const{line:t}=this.getLineAndCharacterOfPosition(e),n=this.getLineStarts();let r;t+1>=n.length&&(r=this.getEnd()),r||(r=n[t+1]-1);const i=this.getFullText();return"\n"===i[r]&&"\r"===i[r-1]?r-1:r}getNamedDeclarations(){return this.namedDeclarations||(this.namedDeclarations=this.computeNamedDeclarations()),this.namedDeclarations}computeNamedDeclarations(){const e=$e();return this.forEachChild((function r(i){switch(i.kind){case 262:case 218:case 174:case 173:const o=i,a=n(o);if(a){const t=function(t){let n=e.get(t);return n||e.set(t,n=[]),n}(a),n=ye(t);n&&o.parent===n.parent&&o.symbol===n.symbol?o.body&&!n.body&&(t[t.length-1]=o):t.push(o)}PI(i,r);break;case 263:case 231:case 264:case 265:case 266:case 267:case 271:case 281:case 276:case 273:case 274:case 177:case 178:case 187:t(i),PI(i,r);break;case 169:if(!wv(i,31))break;case 260:case 208:{const e=i;if(x_(e.name)){PI(e.name,r);break}e.initializer&&r(e.initializer)}case 306:case 172:case 171:t(i);break;case 278:const s=i;s.exportClause&&(mE(s.exportClause)?d(s.exportClause.elements,r):r(s.exportClause.name));break;case 272:const c=i.importClause;c&&(c.name&&t(c.name),c.namedBindings&&(274===c.namedBindings.kind?t(c.namedBindings):d(c.namedBindings.elements,r)));break;case 226:0!==eg(i)&&t(i);default:PI(i,r)}})),e;function t(t){const r=n(t);r&&e.add(r,t)}function n(e){const t=Sc(e);return t&&(rD(t)&&HD(t.expression)?t.expression.name.text:e_(t)?DQ(t):void 0)}}},C8=class{constructor(e,t,n){this.fileName=e,this.text=t,this.skipTrivia=n||(e=>e)}getLineAndCharacterOfPosition(e){return Ja(this,e)}};function w8(e){let t=!0;for(const n in e)if(De(e,n)&&!N8(n)){t=!1;break}if(t)return e;const n={};for(const t in e)De(e,t)&&(n[N8(t)?t:t.charAt(0).toLowerCase()+t.substr(1)]=e[t]);return n}function N8(e){return!e.length||e.charAt(0)===e.charAt(0).toLowerCase()}function D8(e){return e?E(e,(e=>e.text)).join(""):""}function F8(){return{target:1,jsx:1}}function E8(){return f7.getSupportedErrorCodes()}var P8=class{constructor(e){this.host=e}getCurrentSourceFile(e){var t,n,r,i,o,a,s,c;const l=this.host.getScriptSnapshot(e);if(!l)throw new Error("Could not find file: '"+e+"'.");const _=FY(e,this.host),u=this.host.getScriptVersion(e);let d;if(this.currentFileName!==e)d=I8(e,l,{languageVersion:99,impliedNodeFormat:hV(qo(e,this.host.getCurrentDirectory(),(null==(r=null==(n=(t=this.host).getCompilerHost)?void 0:n.call(t))?void 0:r.getCanonicalFileName)||jy(this.host)),null==(c=null==(s=null==(a=null==(o=(i=this.host).getCompilerHost)?void 0:o.call(i))?void 0:a.getModuleResolutionCache)?void 0:s.call(a))?void 0:c.getPackageJsonInfoCache(),this.host,this.host.getCompilationSettings()),setExternalModuleIndicator:dk(this.host.getCompilationSettings()),jsDocParsingMode:0},u,!0,_);else if(this.currentFileVersion!==u){const e=l.getChangeRange(this.currentFileScriptSnapshot);d=O8(this.currentSourceFile,l,u,e)}return d&&(this.currentFileVersion=u,this.currentFileName=e,this.currentFileScriptSnapshot=l,this.currentSourceFile=d),this.currentSourceFile}};function A8(e,t,n){e.version=n,e.scriptSnapshot=t}function I8(e,t,n,r,i,o){const a=LI(e,CQ(t),n,i,o);return A8(a,t,r),a}function O8(e,t,n,r,i){if(r&&n!==e.version){let o;const a=0!==r.span.start?e.text.substr(0,r.span.start):"",s=Ds(r.span)!==e.text.length?e.text.substr(Ds(r.span)):"";if(0===r.newLength)o=a&&s?a+s:a||s;else{const e=t.getText(r.span.start,r.span.start+r.newLength);o=a&&s?a+e+s:a?a+e:e+s}const c=BI(e,o,r,i);return A8(c,t,n),c.nameTable=void 0,e!==c&&e.scriptSnapshot&&(e.scriptSnapshot.dispose&&e.scriptSnapshot.dispose(),e.scriptSnapshot=void 0),c}const o={languageVersion:e.languageVersion,impliedNodeFormat:e.impliedNodeFormat,setExternalModuleIndicator:e.setExternalModuleIndicator,jsDocParsingMode:e.jsDocParsingMode};return I8(e.fileName,t,o,n,!0,e.scriptKind)}var L8={isCancellationRequested:it,throwIfCancellationRequested:rt},j8=class{constructor(e){this.cancellationToken=e}isCancellationRequested(){return this.cancellationToken.isCancellationRequested()}throwIfCancellationRequested(){var e;if(this.isCancellationRequested())throw null==(e=Hn)||e.instant(Hn.Phase.Session,"cancellationThrown",{kind:"CancellationTokenObject"}),new Cr}},R8=class{constructor(e,t=20){this.hostCancellationToken=e,this.throttleWaitMilliseconds=t,this.lastCancellationCheckTime=0}isCancellationRequested(){const e=Un();return Math.abs(e-this.lastCancellationCheckTime)>=this.throttleWaitMilliseconds&&(this.lastCancellationCheckTime=e,this.hostCancellationToken.isCancellationRequested())}throwIfCancellationRequested(){var e;if(this.isCancellationRequested())throw null==(e=Hn)||e.instant(Hn.Phase.Session,"cancellationThrown",{kind:"ThrottledCancellationToken"}),new Cr}},M8=["getSemanticDiagnostics","getSuggestionDiagnostics","getCompilerOptionsDiagnostics","getSemanticClassifications","getEncodedSemanticClassifications","getCodeFixesAtPosition","getCombinedCodeFix","applyCodeActionCommand","organizeImports","getEditsForFileRename","getEmitOutput","getApplicableRefactors","getEditsForRefactor","prepareCallHierarchy","provideCallHierarchyIncomingCalls","provideCallHierarchyOutgoingCalls","provideInlayHints","getSupportedCodeFixes","getPasteEdits"],B8=[...M8,"getCompletionsAtPosition","getCompletionEntryDetails","getCompletionEntrySymbol","getSignatureHelpItems","getQuickInfoAtPosition","getDefinitionAtPosition","getDefinitionAndBoundSpan","getImplementationAtPosition","getTypeDefinitionAtPosition","getReferencesAtPosition","findReferences","getDocumentHighlights","getNavigateToItems","getRenameInfo","findRenameLocations","getApplicableRefactors","preparePasteEditsForFile"];function J8(e,t=N0(e.useCaseSensitiveFileNames&&e.useCaseSensitiveFileNames(),e.getCurrentDirectory(),e.jsDocParsingMode),n){var r;let i;i=void 0===n?0:"boolean"==typeof n?n?2:0:n;const o=new P8(e);let a,s,c=0;const _=e.getCancellationToken?new j8(e.getCancellationToken()):L8,u=e.getCurrentDirectory();function p(t){e.log&&e.log(t)}qx(null==(r=e.getLocalizedDiagnosticMessages)?void 0:r.bind(e));const f=Ly(e),m=Wt(f),g=d1({useCaseSensitiveFileNames:()=>f,getCurrentDirectory:()=>u,getProgram:v,fileExists:We(e,e.fileExists),readFile:We(e,e.readFile),getDocumentPositionMapper:We(e,e.getDocumentPositionMapper),getSourceFileLike:We(e,e.getSourceFileLike),log:p});function h(e){const t=a.getSourceFile(e);if(!t){const t=new Error(`Could not find source file: '${e}'.`);throw t.ProgramFiles=a.getSourceFiles().map((e=>e.fileName)),t}return t}function y(){e.updateFromProject&&!e.updateFromProjectInProgress?e.updateFromProject():function(){var n,r,o;if(un.assert(2!==i),e.getProjectVersion){const t=e.getProjectVersion();if(t){if(s===t&&!(null==(n=e.hasChangedAutomaticTypeDirectiveNames)?void 0:n.call(e)))return;s=t}}const l=e.getTypeRootsVersion?e.getTypeRootsVersion():0;c!==l&&(p("TypeRoots version has changed; provide new program"),a=void 0,c=l);const d=e.getScriptFileNames().slice(),h=e.getCompilationSettings()||{target:1,jsx:1},y=e.hasInvalidatedResolutions||it,v=We(e,e.hasInvalidatedLibResolutions)||it,b=We(e,e.hasChangedAutomaticTypeDirectiveNames),x=null==(r=e.getProjectReferences)?void 0:r.call(e);let k,S={getSourceFile:P,getSourceFileByPath:A,getCancellationToken:()=>_,getCanonicalFileName:m,useCaseSensitiveFileNames:()=>f,getNewLine:()=>Eb(h),getDefaultLibFileName:t=>e.getDefaultLibFileName(t),writeFile:rt,getCurrentDirectory:()=>u,fileExists:t=>e.fileExists(t),readFile:t=>e.readFile&&e.readFile(t),getSymlinkCache:We(e,e.getSymlinkCache),realpath:We(e,e.realpath),directoryExists:t=>Nb(t,e),getDirectories:t=>e.getDirectories?e.getDirectories(t):[],readDirectory:(t,n,r,i,o)=>(un.checkDefined(e.readDirectory,"'LanguageServiceHost.readDirectory' must be implemented to correctly process 'projectReferences'"),e.readDirectory(t,n,r,i,o)),onReleaseOldSourceFile:function(t,n,r,i){var o;E(t,n),null==(o=e.onReleaseOldSourceFile)||o.call(e,t,n,r,i)},onReleaseParsedCommandLine:function(t,n,r){var i;e.getParsedCommandLine?null==(i=e.onReleaseParsedCommandLine)||i.call(e,t,n,r):n&&E(n.sourceFile,r)},hasInvalidatedResolutions:y,hasInvalidatedLibResolutions:v,hasChangedAutomaticTypeDirectiveNames:b,trace:We(e,e.trace),resolveModuleNames:We(e,e.resolveModuleNames),getModuleResolutionCache:We(e,e.getModuleResolutionCache),createHash:We(e,e.createHash),resolveTypeReferenceDirectives:We(e,e.resolveTypeReferenceDirectives),resolveModuleNameLiterals:We(e,e.resolveModuleNameLiterals),resolveTypeReferenceDirectiveReferences:We(e,e.resolveTypeReferenceDirectiveReferences),resolveLibrary:We(e,e.resolveLibrary),useSourceOfProjectReferenceRedirect:We(e,e.useSourceOfProjectReferenceRedirect),getParsedCommandLine:F,jsDocParsingMode:e.jsDocParsingMode,getGlobalTypingsCacheLocation:We(e,e.getGlobalTypingsCacheLocation)};const T=S.getSourceFile,{getSourceFileWithCache:C}=NU(S,(e=>qo(e,u,m)),((...e)=>T.call(S,...e)));S.getSourceFile=C,null==(o=e.setCompilerHost)||o.call(e,S);const w={useCaseSensitiveFileNames:f,fileExists:e=>S.fileExists(e),readFile:e=>S.readFile(e),directoryExists:e=>S.directoryExists(e),getDirectories:e=>S.getDirectories(e),realpath:S.realpath,readDirectory:(...e)=>S.readDirectory(...e),trace:S.trace,getCurrentDirectory:S.getCurrentDirectory,onUnRecoverableConfigFileDiagnostic:rt},N=t.getKeyForCompilationSettings(h);let D=new Set;return mV(a,d,h,((t,n)=>e.getScriptVersion(n)),(e=>S.fileExists(e)),y,v,b,F,x)?(S=void 0,k=void 0,void(D=void 0)):(a=bV({rootNames:d,options:h,host:S,oldProgram:a,projectReferences:x}),S=void 0,k=void 0,D=void 0,g.clearCache(),void a.getTypeChecker());function F(t){const n=qo(t,u,m),r=null==k?void 0:k.get(n);if(void 0!==r)return r||void 0;const i=e.getParsedCommandLine?e.getParsedCommandLine(t):function(e){const t=P(e,100);if(t)return t.path=qo(e,u,m),t.resolvedPath=t.path,t.originalFileName=t.fileName,RL(t,w,Bo(Do(e),u),void 0,Bo(e,u))}(t);return(k||(k=new Map)).set(n,i||!1),i}function E(e,n){const r=t.getKeyForCompilationSettings(n);t.releaseDocumentWithKey(e.resolvedPath,r,e.scriptKind,e.impliedNodeFormat)}function P(e,t,n,r){return A(e,qo(e,u,m),t,0,r)}function A(n,r,i,o,s){un.assert(S,"getOrCreateSourceFileByPath called after typical CompilerHost lifetime, check the callstack something with a reference to an old host.");const c=e.getScriptSnapshot(n);if(!c)return;const l=FY(n,e),_=e.getScriptVersion(n);if(!s){const o=a&&a.getSourceFileByPath(r);if(o){if(l===o.scriptKind||D.has(o.resolvedPath))return t.updateDocumentWithKey(n,r,e,N,c,_,l,i);t.releaseDocumentWithKey(o.resolvedPath,t.getKeyForCompilationSettings(a.getCompilerOptions()),o.scriptKind,o.impliedNodeFormat),D.add(o.resolvedPath)}}return t.acquireDocumentWithKey(n,r,e,N,c,_,l,i)}}()}function v(){if(2!==i)return y(),a;un.assert(void 0===a)}function b(){if(a){const e=t.getKeyForCompilationSettings(a.getCompilerOptions());d(a.getSourceFiles(),(n=>t.releaseDocumentWithKey(n.resolvedPath,e,n.scriptKind,n.impliedNodeFormat))),a=void 0}}function x(e,t){if(Is(t,e))return;const n=_c(OX(e,Ds(t))||e,(e=>Os(e,t))),r=[];return k(t,n,r),e.end===t.start+t.length&&r.push(e.endOfFileToken),$(r,qE)?void 0:r}function k(e,t,n){return!!function(e,t){const n=t.start+t.length;return e.post.start}(t,e)&&(Is(e,t)?(S(t,n),!0):GZ(t)?function(e,t,n){const r=[];return t.statements.filter((t=>k(e,t,r))).length===t.statements.length?(S(t,n),!0):(n.push(...r),!1)}(e,t,n):__(t)?function(e,t,n){var r,i,o;const a=t=>zs(t,e);if((null==(r=t.modifiers)?void 0:r.some(a))||t.name&&a(t.name)||(null==(i=t.typeParameters)?void 0:i.some(a))||(null==(o=t.heritageClauses)?void 0:o.some(a)))return S(t,n),!0;const s=[];return t.members.filter((t=>k(e,t,s))).length===t.members.length?(S(t,n),!0):(n.push(...s),!1)}(e,t,n):(S(t,n),!0))}function S(e,t){for(;e.parent&&!dC(e);)e=e.parent;t.push(e)}function T(e,t,n,r){y();const i=n&&n.use===ice.FindReferencesUse.Rename?a.getSourceFiles().filter((e=>!a.isSourceFileDefaultLibrary(e))):a.getSourceFiles();return ice.findReferenceOrRenameEntries(a,_,i,e,t,n,r)}const C=new Map(Object.entries({19:20,21:22,23:24,32:30}));function w(t){return un.assertEqual(t.type,"install package"),e.installPackage?e.installPackage({fileName:(n=t.file,qo(n,u,m)),packageName:t.packageName}):Promise.reject("Host does not implement `installPackage`");var n}function N(e,t){return{lineStarts:e.getLineStarts(),firstLine:e.getLineAndCharacterOfPosition(t.pos).line,lastLine:e.getLineAndCharacterOfPosition(t.end).line}}function D(e,t,n){const r=o.getCurrentSourceFile(e),i=[],{lineStarts:a,firstLine:s,lastLine:c}=N(r,t);let l=n||!1,_=Number.MAX_VALUE;const u=new Map,d=new RegExp(/\S/),p=WX(r,a[s]),f=p?"{/*":"//";for(let e=s;e<=c;e++){const t=r.text.substring(a[e],r.getLineEndOfPosition(a[e])),i=d.exec(t);i&&(_=Math.min(_,i.index),u.set(e.toString(),i.index),t.substr(i.index,f.length)!==f&&(l=void 0===n||n))}for(let n=s;n<=c;n++){if(s!==c&&a[n]===t.end)continue;const o=u.get(n.toString());void 0!==o&&(p?i.push(...F(e,{pos:a[n]+_,end:r.getLineEndOfPosition(a[n])},l,p)):l?i.push({newText:f,span:{length:0,start:a[n]+_}}):r.text.substr(a[n]+o,f.length)===f&&i.push({newText:"",span:{length:f.length,start:a[n]+o}}))}return i}function F(e,t,n,r){var i;const a=o.getCurrentSourceFile(e),s=[],{text:c}=a;let l=!1,_=n||!1;const u=[];let{pos:d}=t;const p=void 0!==r?r:WX(a,d),f=p?"{/*":"/*",m=p?"*/}":"*/",g=p?"\\{\\/\\*":"\\/\\*",h=p?"\\*\\/\\}":"\\*\\/";for(;d<=t.end;){const e=XX(a,d+(c.substr(d,f.length)===f?f.length:0));if(e)p&&(e.pos--,e.end++),u.push(e.pos),3===e.kind&&u.push(e.end),l=!0,d=e.end+1;else{const e=c.substring(d,t.end).search(`(${g})|(${h})`);_=void 0!==n?n:_||!tY(c,d,-1===e?t.end:d+e),d=-1===e?t.end+1:d+e+m.length}}if(_||!l){2!==(null==(i=XX(a,t.pos))?void 0:i.kind)&&Z(u,t.pos,vt),Z(u,t.end,vt);const e=u[0];c.substr(e,f.length)!==f&&s.push({newText:f,span:{length:0,start:e}});for(let e=1;e0?e-m.length:0,n=c.substr(t,m.length)===m?m.length:0;s.push({newText:"",span:{length:f.length,start:e-n}})}return s}function P({openingElement:e,closingElement:t,parent:n}){return!nO(e.tagName,t.tagName)||kE(n)&&nO(e.tagName,n.openingElement.tagName)&&P(n)}function A({closingFragment:e,parent:t}){return!!(262144&e.flags)||wE(t)&&A(t)}function I(t,n,r,i,o,a){const[s,c]="number"==typeof n?[n,void 0]:[n.pos,n.end];return{file:t,startPosition:s,endPosition:c,program:v(),host:e,formatContext:Zue.getFormatContext(i,e),cancellationToken:_,preferences:r,triggerReason:o,kind:a}}C.forEach(((e,t)=>C.set(e.toString(),Number(t))));const L={dispose:function(){b(),e=void 0},cleanupSemanticCache:b,getSyntacticDiagnostics:function(e){return y(),a.getSyntacticDiagnostics(h(e),_).slice()},getSemanticDiagnostics:function(e){y();const t=h(e),n=a.getSemanticDiagnostics(t,_);if(!Nk(a.getCompilerOptions()))return n.slice();const r=a.getDeclarationDiagnostics(t,_);return[...n,...r]},getRegionSemanticDiagnostics:function(e,t){y();const n=h(e),r=a.getCompilerOptions();if(cT(n,r,a)||!uT(n,r)||a.getCachedSemanticDiagnostics(n))return;const i=function(e,t){const n=[],r=Us(t.map((e=>gQ(e))));for(const t of r){const r=x(e,t);if(!r)return;n.push(...r)}if(n.length)return n}(n,t);if(!i)return;const o=Us(i.map((e=>Ws(e.getFullStart(),e.getEnd()))));return{diagnostics:a.getSemanticDiagnostics(n,_,i).slice(),spans:o}},getSuggestionDiagnostics:function(e){return y(),g1(h(e),a,_)},getCompilerOptionsDiagnostics:function(){return y(),[...a.getOptionsDiagnostics(_),...a.getGlobalDiagnostics(_)]},getSyntacticClassifications:function(e,t){return T0(_,o.getCurrentSourceFile(e),t)},getSemanticClassifications:function(e,t,n){return y(),"2020"===(n||"original")?r8(a,_,h(e),t):y0(a.getTypeChecker(),_,h(e),a.getClassifiableNames(),t)},getEncodedSyntacticClassifications:function(e,t){return C0(_,o.getCurrentSourceFile(e),t)},getEncodedSemanticClassifications:function(e,t,n){return y(),"original"===(n||"original")?b0(a.getTypeChecker(),_,h(e),a.getClassifiableNames(),t):i8(a,_,h(e),t)},getCompletionsAtPosition:function(t,n,r=aG,i){const o={...r,includeCompletionsForModuleExports:r.includeCompletionsForModuleExports||r.includeExternalModuleExports,includeCompletionsWithInsertText:r.includeCompletionsWithInsertText||r.includeInsertTextCompletions};return y(),oae.getCompletionsAtPosition(e,a,p,h(t),n,o,r.triggerCharacter,r.triggerKind,_,i&&Zue.getFormatContext(i,e),r.includeSymbol)},getCompletionEntryDetails:function(t,n,r,i,o,s=aG,c){return y(),oae.getCompletionEntryDetails(a,p,h(t),n,{name:r,source:o,data:c},e,i&&Zue.getFormatContext(i,e),s,_)},getCompletionEntrySymbol:function(t,n,r,i,o=aG){return y(),oae.getCompletionEntrySymbol(a,p,h(t),n,{name:r,source:i},e,o)},getSignatureHelpItems:function(e,t,{triggerReason:n}=aG){y();const r=h(e);return I_e.getSignatureHelpItems(a,r,t,n,_)},getQuickInfoAtPosition:function(e,t){y();const n=h(e),r=FX(n,t);if(r===n)return;const i=a.getTypeChecker(),o=function(e){return XD(e.parent)&&e.pos===e.parent.pos?e.parent.expression:wD(e.parent)&&e.pos===e.parent.pos||lf(e.parent)&&e.parent.name===e||IE(e.parent)?e.parent:e}(r),s=function(e,t){const n=q8(e);if(n){const e=t.getContextualType(n.parent),r=e&&U8(n,t,e,!1);if(r&&1===r.length)return ge(r)}return t.getSymbolAtLocation(e)}(o,i);if(!s||i.isUnknownSymbol(s)){const e=function(e,t,n){switch(t.kind){case 80:return!(16777216&t.flags&&!Fm(t)&&(171===t.parent.kind&&t.parent.name===t||_c(t,(e=>169===e.kind)))||$G(t)||HG(t)||xl(t.parent));case 211:case 166:return!XX(e,n);case 110:case 197:case 108:case 202:return!0;case 236:return lf(t);default:return!1}}(n,o,t)?i.getTypeAtLocation(o):void 0;return e&&{kind:"",kindModifiers:"",textSpan:pQ(o,n),displayParts:i.runWithCancellationToken(_,(t=>CY(t,e,tX(o)))),documentation:e.symbol?e.symbol.getDocumentationComment(i):void 0,tags:e.symbol?e.symbol.getJsDocTags(i):void 0}}const{symbolKind:c,displayParts:l,documentation:u,tags:d}=i.runWithCancellationToken(_,(e=>mue.getSymbolDisplayPartsDocumentationAndSymbolKind(e,s,n,tX(o),o)));return{kind:c,kindModifiers:mue.getSymbolModifiers(i,s),textSpan:pQ(o,n),displayParts:l,documentation:u,tags:d}},getDefinitionAtPosition:function(e,t,n,r){return y(),Wce.getDefinitionAtPosition(a,h(e),t,n,r)},getDefinitionAndBoundSpan:function(e,t){return y(),Wce.getDefinitionAndBoundSpan(a,h(e),t)},getImplementationAtPosition:function(e,t){return y(),ice.getImplementationsAtPosition(a,_,a.getSourceFiles(),h(e),t)},getTypeDefinitionAtPosition:function(e,t){return y(),Wce.getTypeDefinitionAtPosition(a.getTypeChecker(),h(e),t)},getReferencesAtPosition:function(e,t){return y(),T(FX(h(e),t),t,{use:ice.FindReferencesUse.References},ice.toReferenceEntry)},findReferences:function(e,t){return y(),ice.findReferencedSymbols(a,_,a.getSourceFiles(),h(e),t)},getFileReferences:function(e){return y(),ice.Core.getReferencesForFileName(e,a,a.getSourceFiles()).map(ice.toReferenceEntry)},getDocumentHighlights:function(e,t,n){const r=Jo(e);un.assert(n.some((e=>Jo(e)===r))),y();const i=B(n,(e=>a.getSourceFile(e))),o=h(e);return d0.getDocumentHighlights(a,_,o,t,i)},getNameOrDottedNameSpan:function(e,t,n){const r=o.getCurrentSourceFile(e),i=FX(r,t);if(i===r)return;switch(i.kind){case 211:case 166:case 11:case 97:case 112:case 106:case 108:case 110:case 197:case 80:break;default:return}let a=i;for(;;)if(GG(a)||KG(a))a=a.parent;else{if(!QG(a))break;if(267!==a.parent.parent.kind||a.parent.parent.body!==a.parent)break;a=a.parent.parent.name}return Ws(a.getStart(),i.getEnd())},getBreakpointStatementAtPosition:function(e,t){const n=o.getCurrentSourceFile(e);return $8.spanInSourceFileAtLocation(n,t)},getNavigateToItems:function(e,t,n,r=!1,i=!1){return y(),M1(n?[h(n)]:a.getSourceFiles(),a.getTypeChecker(),_,e,t,r,i)},getRenameInfo:function(e,t,n){return y(),w_e.getRenameInfo(a,h(e),t,n||{})},getSmartSelectionRange:function(e,t){return iue.getSmartSelectionRange(t,o.getCurrentSourceFile(e))},findRenameLocations:function(e,t,n,r,i){y();const o=h(e),a=DX(FX(o,t));if(w_e.nodeIsEligibleForRename(a)){if(zN(a)&&(TE(a.parent)||CE(a.parent))&&Fy(a.escapedText)){const{openingElement:e,closingElement:t}=a.parent.parent;return[e,t].map((e=>{const t=pQ(e.tagName,o);return{fileName:o.fileName,textSpan:t,...ice.toContextSpan(t,o,e.parent)}}))}{const e=BQ(o,i??aG),s="boolean"==typeof i?i:null==i?void 0:i.providePrefixAndSuffixTextForRename;return T(a,t,{findInStrings:n,findInComments:r,providePrefixAndSuffixTextForRename:s,use:ice.FindReferencesUse.Rename},((t,n,r)=>ice.toRenameLocation(t,n,r,s||!1,e)))}}},getNavigationBarItems:function(e){return i2(o.getCurrentSourceFile(e),_)},getNavigationTree:function(e){return o2(o.getCurrentSourceFile(e),_)},getOutliningSpans:function(e){const t=o.getCurrentSourceFile(e);return h_e.collectElements(t,_)},getTodoComments:function(e,t){y();const n=h(e);_.throwIfCancellationRequested();const r=n.text,i=[];if(t.length>0&&!n.fileName.includes("/node_modules/")){const e=function(){const e="("+/(?:^(?:\s|\*)*)/.source+"|"+/(?:\/{2,}\s*)/.source+"|"+/(?:\/\*+\s*)/.source+")",n="(?:"+E(t,(e=>"("+e.text.replace(/[-[\]/{}()*+?.\\^$|]/g,"\\$&")+")")).join("|")+")";return new RegExp(e+"("+n+/(?:.*?)/.source+")"+/(?:$|\*\/)/.source,"gim")}();let a;for(;a=e.exec(r);){_.throwIfCancellationRequested();const e=3;un.assert(a.length===t.length+e);const s=a[1],c=a.index+s.length;if(!XX(n,c))continue;let l;for(let n=0;n=97&&o<=122||o>=65&&o<=90||o>=48&&o<=57)continue;const u=a[2];i.push({descriptor:l,message:u,position:c})}}var o;return i},getBraceMatchingAtPosition:function(e,t){const n=o.getCurrentSourceFile(e),r=EX(n,t),i=r.getStart(n)===t?C.get(r.kind.toString()):void 0,a=i&&yX(r.parent,i,n);return a?[pQ(r,n),pQ(a,n)].sort(((e,t)=>e.start-t.start)):l},getIndentationAtPosition:function(e,t,n){let r=Un();const i=w8(n),a=o.getCurrentSourceFile(e);p("getIndentationAtPosition: getCurrentSourceFile: "+(Un()-r)),r=Un();const s=Zue.SmartIndenter.getIndentation(t,a,i);return p("getIndentationAtPosition: computeIndentation : "+(Un()-r)),s},getFormattingEditsForRange:function(t,n,r,i){const a=o.getCurrentSourceFile(t);return Zue.formatSelection(n,r,a,Zue.getFormatContext(w8(i),e))},getFormattingEditsForDocument:function(t,n){return Zue.formatDocument(o.getCurrentSourceFile(t),Zue.getFormatContext(w8(n),e))},getFormattingEditsAfterKeystroke:function(t,n,r,i){const a=o.getCurrentSourceFile(t),s=Zue.getFormatContext(w8(i),e);if(!XX(a,n))switch(r){case"{":return Zue.formatOnOpeningCurly(n,a,s);case"}":return Zue.formatOnClosingCurly(n,a,s);case";":return Zue.formatOnSemicolon(n,a,s);case"\n":return Zue.formatOnEnter(n,a,s)}return[]},getDocCommentTemplateAtPosition:function(t,n,r,i){const a=i?Zue.getFormatContext(i,e).options:void 0;return fle.getDocCommentTemplateAtPosition(kY(e,a),o.getCurrentSourceFile(t),n,r)},isValidBraceCompletionAtPosition:function(e,t,n){if(60===n)return!1;const r=o.getCurrentSourceFile(e);if(JX(r,t))return!1;if(zX(r,t))return 123===n;if(UX(r,t))return!1;switch(n){case 39:case 34:case 96:return!XX(r,t)}return!0},getJsxClosingTagAtPosition:function(e,t){const n=o.getCurrentSourceFile(e),r=jX(t,n);if(!r)return;const i=32===r.kind&&TE(r.parent)?r.parent.parent:CN(r)&&kE(r.parent)?r.parent:void 0;if(i&&P(i))return{newText:``};const a=32===r.kind&&NE(r.parent)?r.parent.parent:CN(r)&&wE(r.parent)?r.parent:void 0;return a&&A(a)?{newText:""}:void 0},getLinkedEditingRangeAtPosition:function(e,t){const n=o.getCurrentSourceFile(e),r=jX(t,n);if(!r||307===r.parent.kind)return;const i="[a-zA-Z0-9:\\-\\._$]*";if(wE(r.parent.parent)){const e=r.parent.parent.openingFragment,o=r.parent.parent.closingFragment;if(gd(e)||gd(o))return;const a=e.getStart(n)+1,s=o.getStart(n)+2;if(t!==a&&t!==s)return;return{ranges:[{start:a,length:0},{start:s,length:0}],wordPattern:i}}{const e=_c(r.parent,(e=>!(!TE(e)&&!CE(e))));if(!e)return;un.assert(TE(e)||CE(e),"tag should be opening or closing element");const o=e.parent.openingElement,a=e.parent.closingElement,s=o.tagName.getStart(n),c=o.tagName.end,l=a.tagName.getStart(n),_=a.tagName.end;if(s===o.getStart(n)||l===a.getStart(n)||c===o.getEnd()||_===a.getEnd())return;if(!(s<=t&&t<=c||l<=t&&t<=_))return;if(o.tagName.getText(n)!==a.tagName.getText(n))return;return{ranges:[{start:s,length:c-s},{start:l,length:_-l}],wordPattern:i}}},getSpanOfEnclosingComment:function(e,t,n){const r=o.getCurrentSourceFile(e),i=Zue.getRangeOfEnclosingComment(r,t);return!i||n&&3!==i.kind?void 0:gQ(i)},getCodeFixesAtPosition:function(t,n,r,i,o,s=aG){y();const c=h(t),l=Ws(n,r),u=Zue.getFormatContext(o,e);return O(Q(i,mt,vt),(t=>(_.throwIfCancellationRequested(),f7.getFixes({errorCode:t,sourceFile:c,span:l,program:a,host:e,cancellationToken:_,formatContext:u,preferences:s}))))},getCombinedCodeFix:function(t,n,r,i=aG){y(),un.assert("file"===t.type);const o=h(t.fileName),s=Zue.getFormatContext(r,e);return f7.getAllFixes({fixId:n,sourceFile:o,program:a,host:e,cancellationToken:_,formatContext:s,preferences:i})},applyCodeActionCommand:function(e,t){const n="string"==typeof e?t:e;return Qe(n)?Promise.all(n.map((e=>w(e)))):w(n)},organizeImports:function(t,n,r=aG){y(),un.assert("file"===t.type);const i=h(t.fileName);if(gd(i))return l;const o=Zue.getFormatContext(n,e),s=t.mode??(t.skipDestructiveCodeActions?"SortAndCombine":"All");return Jle.organizeImports(i,o,e,a,r,s)},getEditsForFileRename:function(t,n,r,i=aG){return P0(v(),t,n,e,Zue.getFormatContext(r,e),i,g)},getEmitOutput:function(t,n,r){y();const i=h(t),o=e.getCustomTransformers&&e.getCustomTransformers();return IV(a,i,!!n,_,o,r)},getNonBoundSourceFile:function(e){return o.getCurrentSourceFile(e)},getProgram:v,getCurrentProgram:()=>a,getAutoImportProvider:function(){var t;return null==(t=e.getPackageJsonAutoImportProvider)?void 0:t.call(e)},updateIsDefinitionOfReferencedSymbols:function(t,n){const r=a.getTypeChecker(),i=function(){for(const i of t)for(const t of i.references){if(n.has(t)){const e=o(t);return un.assertIsDefined(e),r.getSymbolAtLocation(e)}const i=rY(t,g,We(e,e.fileExists));if(i&&n.has(i)){const e=o(i);if(e)return r.getSymbolAtLocation(e)}}}();if(!i)return!1;for(const r of t)for(const t of r.references){const r=o(t);if(un.assertIsDefined(r),n.has(t)||ice.isDeclarationOfSymbol(r,i)){n.add(t),t.isDefinition=!0;const r=rY(t,g,We(e,e.fileExists));r&&n.add(r)}else t.isDefinition=!1}return!0;function o(e){const t=a.getSourceFile(e.fileName);if(!t)return;const n=FX(t,e.textSpan.start);return ice.Core.getAdjustedNode(n,{use:ice.FindReferencesUse.References})}},getApplicableRefactors:function(e,t,n=aG,r,i,o){y();const a=h(e);return V2.getApplicableRefactors(I(a,t,n,aG,r,i),o)},getEditsForRefactor:function(e,t,n,r,i,o=aG,a){y();const s=h(e);return V2.getEditsForRefactor(I(s,n,o,t),r,i,a)},getMoveToRefactoringFileSuggestions:function(t,n,r=aG){y();const i=h(t),o=un.checkDefined(a.getSourceFiles()),s=QS(t),c=J6(I(i,n,r,aG)),l=z6(null==c?void 0:c.all),_=B(o,(e=>{const t=QS(e.fileName);return(null==a?void 0:a.isSourceFileFromExternalLibrary(i))||i===h(e.fileName)||".ts"===s&&".d.ts"===t||".d.ts"===s&&Gt(Fo(e.fileName),"lib.")&&".d.ts"===t||s!==t&&(!(".tsx"===s&&".ts"===t||".jsx"===s&&".js"===t)||l)?void 0:e.fileName}));return{newFileName:B6(i,a,e,c),files:_}},toLineColumnOffset:function(e,t){return 0===t?{line:0,character:0}:g.toLineColumnOffset(e,t)},getSourceMapper:()=>g,clearSourceMapperCache:()=>g.clearCache(),prepareCallHierarchy:function(e,t){y();const n=K8.resolveCallHierarchyDeclaration(a,FX(h(e),t));return n&&AZ(n,(e=>K8.createCallHierarchyItem(a,e)))},provideCallHierarchyIncomingCalls:function(e,t){y();const n=h(e),r=IZ(K8.resolveCallHierarchyDeclaration(a,0===t?n:FX(n,t)));return r?K8.getIncomingCalls(a,r,_):[]},provideCallHierarchyOutgoingCalls:function(e,t){y();const n=h(e),r=IZ(K8.resolveCallHierarchyDeclaration(a,0===t?n:FX(n,t)));return r?K8.getOutgoingCalls(a,r):[]},toggleLineComment:D,toggleMultilineComment:F,commentSelection:function(e,t){const n=o.getCurrentSourceFile(e),{firstLine:r,lastLine:i}=N(n,t);return r===i&&t.pos!==t.end?F(e,t,!0):D(e,t,!0)},uncommentSelection:function(e,t){const n=o.getCurrentSourceFile(e),r=[],{pos:i}=t;let{end:a}=t;i===a&&(a+=WX(n,i)?2:1);for(let t=i;t<=a;t++){const i=XX(n,t);if(i){switch(i.kind){case 2:r.push(...D(e,{end:i.end,pos:i.pos+1},!1));break;case 3:r.push(...F(e,{end:i.end,pos:i.pos+1},!1))}t=i.end+1}}return r},provideInlayHints:function(t,n,r=aG){y();const i=h(t);return lle.provideInlayHints(function(t,n,r){return{file:t,program:v(),host:e,span:n,preferences:r,cancellationToken:_}}(i,n,r))},getSupportedCodeFixes:E8,preparePasteEditsForFile:function(e,t){return y(),Ype.preparePasteEdits(h(e),t,a.getTypeChecker())},getPasteEdits:function(t,n){return y(),efe.pasteEditsProvider(h(t.targetFile),t.pastedText,t.pasteLocations,t.copiedFrom?{file:h(t.copiedFrom.file),range:t.copiedFrom.range}:void 0,e,t.preferences,Zue.getFormatContext(n,e),_)},mapCode:function(t,n,r,i,a){return Ole.mapCode(o.getCurrentSourceFile(t),n,r,e,Zue.getFormatContext(i,e),a)}};switch(i){case 0:break;case 1:M8.forEach((e=>L[e]=()=>{throw new Error(`LanguageService Operation: ${e} not allowed in LanguageServiceMode.PartialSemantic`)}));break;case 2:B8.forEach((e=>L[e]=()=>{throw new Error(`LanguageService Operation: ${e} not allowed in LanguageServiceMode.Syntactic`)}));break;default:un.assertNever(i)}return L}function z8(e){return e.nameTable||function(e){const t=e.nameTable=new Map;e.forEachChild((function e(n){if(zN(n)&&!HG(n)&&n.escapedText||Lh(n)&&function(e){return ch(e)||283===e.parent.kind||function(e){return e&&e.parent&&212===e.parent.kind&&e.parent.argumentExpression===e}(e)||_h(e)}(n)){const e=qh(n);t.set(e,void 0===t.get(e)?n.pos:-1)}else if(qN(n)){const e=n.escapedText;t.set(e,void 0===t.get(e)?n.pos:-1)}if(PI(n,e),Nu(n))for(const t of n.jsDoc)PI(t,e)}))}(e),e.nameTable}function q8(e){const t=function(e){switch(e.kind){case 11:case 15:case 9:if(167===e.parent.kind)return Pu(e.parent.parent)?e.parent.parent:void 0;case 80:return!Pu(e.parent)||210!==e.parent.parent.kind&&292!==e.parent.parent.kind||e.parent.name!==e?void 0:e.parent}}(e);return t&&($D(t.parent)||EE(t.parent))?t:void 0}function U8(e,t,n,r){const i=DQ(e.name);if(!i)return l;if(!n.isUnion()){const e=n.getProperty(i);return e?[e]:l}const o=$D(e.parent)||EE(e.parent)?N(n.types,(n=>!t.isTypeInvalidDueToUnionDiscriminant(n,e.parent))):n.types,a=B(o,(e=>e.getProperty(i)));if(r&&(0===a.length||a.length===n.types.length)){const e=n.getProperty(i);if(e)return[e]}return o.length||a.length?Q(a,mt):B(n.types,(e=>e.getProperty(i)))}function V8(e){if(so)return jo(Do(Jo(so.getExecutingFilePath())),Ns(e));throw new Error("getDefaultLibFilePath is only supported when consumed as a node module. ")}function W8(e,t,n){const r=[];n=j1(n,r);const i=Qe(e)?e:[e],o=Cq(void 0,void 0,XC,n,i,t,!0);return o.diagnostics=K(o.diagnostics,r),o}Bx({getNodeConstructor:()=>u8,getTokenConstructor:()=>m8,getIdentifierConstructor:()=>g8,getPrivateIdentifierConstructor:()=>h8,getSourceFileConstructor:()=>T8,getSymbolConstructor:()=>f8,getTypeConstructor:()=>y8,getSignatureConstructor:()=>v8,getSourceMapSourceConstructor:()=>C8});var $8={};function H8(e,t){if(e.isDeclarationFile)return;let n=PX(e,t);const r=e.getLineAndCharacterOfPosition(t).line;if(e.getLineAndCharacterOfPosition(n.getStart(e)).line>r){const t=jX(n.pos,e);if(!t||e.getLineAndCharacterOfPosition(t.getEnd()).line!==r)return;n=t}if(!(33554432&n.flags))return l(n);function i(t,n){const r=iI(t)?x(t.modifiers,aD):void 0;return Ws(r?Xa(e.text,r.end):t.getStart(e),(n||t).getEnd())}function o(t,n){return i(t,LX(n,n.parent,e))}function a(t,n){return t&&r===e.getLineAndCharacterOfPosition(t.getStart(e)).line?l(t):l(n)}function s(t){return l(jX(t.pos,e))}function c(t){return l(LX(t,t.parent,e))}function l(t){if(t){const{parent:_}=t;switch(t.kind){case 243:return u(t.declarationList.declarations[0]);case 260:case 172:case 171:return u(t);case 169:return function e(t){if(x_(t.name))return g(t.name);if(function(e){return!!e.initializer||void 0!==e.dotDotDotToken||wv(e,3)}(t))return i(t);{const n=t.parent,r=n.parameters.indexOf(t);return un.assert(-1!==r),0!==r?e(n.parameters[r-1]):l(n.body)}}(t);case 262:case 174:case 173:case 177:case 178:case 176:case 218:case 219:return function(e){if(e.body)return p(e)?i(e):l(e.body)}(t);case 241:if(Rf(t))return function(e){const t=e.statements.length?e.statements[0]:e.getLastToken();return p(e.parent)?a(e.parent,t):l(t)}(t);case 268:return f(t);case 299:return f(t.block);case 244:return i(t.expression);case 253:return i(t.getChildAt(0),t.expression);case 247:return o(t,t.expression);case 246:return l(t.statement);case 259:return i(t.getChildAt(0));case 245:return o(t,t.expression);case 256:return l(t.statement);case 252:case 251:return i(t.getChildAt(0),t.label);case 248:return(r=t).initializer?m(r):r.condition?i(r.condition):r.incrementor?i(r.incrementor):void 0;case 249:return o(t,t.expression);case 250:return m(t);case 255:return o(t,t.expression);case 296:case 297:return l(t.statements[0]);case 258:return f(t.tryBlock);case 257:case 277:return i(t,t.expression);case 271:return i(t,t.moduleReference);case 272:case 278:return i(t,t.moduleSpecifier);case 267:if(1!==wM(t))return;case 263:case 266:case 306:case 208:return i(t);case 254:return l(t.statement);case 170:return function(t,n,r){if(t){const i=t.indexOf(n);if(i>=0){let n=i,o=i+1;for(;n>0&&r(t[n-1]);)n--;for(;o0)return l(t.declarations[0])}}function g(e){const t=d(e.elements,(e=>232!==e.kind?e:void 0));return t?l(t):208===e.parent.kind?i(e.parent):_(e.parent)}function h(e){un.assert(207!==e.kind&&206!==e.kind);const t=d(209===e.kind?e.elements:e.properties,(e=>232!==e.kind?e:void 0));return t?l(t):i(226===e.parent.kind?e.parent:e)}}}i($8,{spanInSourceFileAtLocation:()=>H8});var K8={};function G8(e){return cD(e)||VF(e)}function X8(e){return(eF(e)||tF(e)||pF(e))&&G8(e.parent)&&e===e.parent.initializer&&zN(e.parent.name)&&(!!(2&oc(e.parent))||cD(e.parent))}function Q8(e){return qE(e)||QF(e)||$F(e)||eF(e)||HF(e)||pF(e)||uD(e)||_D(e)||lD(e)||pD(e)||fD(e)}function Y8(e){return qE(e)||QF(e)&&zN(e.name)||$F(e)||HF(e)||uD(e)||_D(e)||lD(e)||pD(e)||fD(e)||function(e){return(eF(e)||pF(e))&&kc(e)}(e)||X8(e)}function Z8(e){return qE(e)?e:kc(e)?e.name:X8(e)?e.parent.name:un.checkDefined(e.modifiers&&b(e.modifiers,e7))}function e7(e){return 90===e.kind}function t7(e,t){const n=Z8(t);return n&&e.getSymbolAtLocation(n)}function n7(e,t){if(t.body)return t;if(dD(t))return rv(t.parent);if($F(t)||_D(t)){const n=t7(e,t);return n&&n.valueDeclaration&&i_(n.valueDeclaration)&&n.valueDeclaration.body?n.valueDeclaration:void 0}return t}function r7(e,t){const n=t7(e,t);let r;if(n&&n.declarations){const e=X(n.declarations),t=E(n.declarations,(e=>({file:e.getSourceFile().fileName,pos:e.pos})));e.sort(((e,n)=>Ct(t[e].file,t[n].file)||t[e].pos-t[n].pos));const i=E(e,(e=>n.declarations[e]));let o;for(const e of i)Y8(e)&&(o&&o.parent===e.parent&&o.end===e.pos||(r=ie(r,e)),o=e)}return r}function i7(e,t){return uD(t)?t:i_(t)?n7(e,t)??r7(e,t)??t:r7(e,t)??t}function o7(e,t){const n=e.getTypeChecker();let r=!1;for(;;){if(Y8(t))return i7(n,t);if(Q8(t)){const e=_c(t,Y8);return e&&i7(n,e)}if(ch(t)){if(Y8(t.parent))return i7(n,t.parent);if(Q8(t.parent)){const e=_c(t.parent,Y8);return e&&i7(n,e)}return G8(t.parent)&&t.parent.initializer&&X8(t.parent.initializer)?t.parent.initializer:void 0}if(dD(t))return Y8(t.parent)?t.parent:void 0;if(126!==t.kind||!uD(t.parent)){if(VF(t)&&t.initializer&&X8(t.initializer))return t.initializer;if(!r){let e=n.getSymbolAtLocation(t);if(e&&(2097152&e.flags&&(e=n.getAliasedSymbol(e)),e.valueDeclaration)){r=!0,t=e.valueDeclaration;continue}}return}t=t.parent}}function a7(e,t){const n=t.getSourceFile(),r=function(e,t){if(qE(t))return{text:t.fileName,pos:0,end:0};if(($F(t)||HF(t))&&!kc(t)){const e=t.modifiers&&b(t.modifiers,e7);if(e)return{text:"default",pos:e.getStart(),end:e.getEnd()}}if(uD(t)){const n=Xa(t.getSourceFile().text,Lb(t).pos),r=n+6,i=e.getTypeChecker(),o=i.getSymbolAtLocation(t.parent);return{text:(o?`${i.symbolToString(o,t.parent)} `:"")+"static {}",pos:n,end:r}}const n=X8(t)?t.parent.name:un.checkDefined(Tc(t),"Expected call hierarchy item to have a name");let r=zN(n)?mc(n):Lh(n)?n.text:rD(n)&&Lh(n.expression)?n.expression.text:void 0;if(void 0===r){const i=e.getTypeChecker(),o=i.getSymbolAtLocation(n);o&&(r=i.symbolToString(o,t))}if(void 0===r){const e=nU();r=id((n=>e.writeNode(4,t,t.getSourceFile(),n)))}return{text:r,pos:n.getStart(),end:n.getEnd()}}(e,t),i=function(e){var t,n,r,i;if(X8(e))return cD(e.parent)&&__(e.parent.parent)?pF(e.parent.parent)?null==(t=Cc(e.parent.parent))?void 0:t.getText():null==(n=e.parent.parent.name)?void 0:n.getText():YF(e.parent.parent.parent.parent)&&zN(e.parent.parent.parent.parent.parent.name)?e.parent.parent.parent.parent.parent.name.getText():void 0;switch(e.kind){case 177:case 178:case 174:return 210===e.parent.kind?null==(r=Cc(e.parent))?void 0:r.getText():null==(i=Tc(e.parent))?void 0:i.getText();case 262:case 263:case 267:if(YF(e.parent)&&zN(e.parent.parent.name))return e.parent.parent.name.getText()}}(t),o=nX(t),a=ZX(t),s=Ws(Xa(n.text,t.getFullStart(),!1,!0),t.getEnd()),c=Ws(r.pos,r.end);return{file:n.fileName,kind:o,kindModifiers:a,name:r.text,containerName:i,span:s,selectionSpan:c}}function s7(e){return void 0!==e}function c7(e){if(e.kind===ice.EntryKind.Node){const{node:t}=e;if(IG(t,!0,!0)||OG(t,!0,!0)||LG(t,!0,!0)||jG(t,!0,!0)||GG(t)||XG(t)){const e=t.getSourceFile();return{declaration:_c(t,Y8)||e,range:mQ(t,e)}}}}function l7(e){return jB(e.declaration)}function _7(e,t,n){if(qE(t)||QF(t)||uD(t))return[];const r=Z8(t),i=N(ice.findReferenceOrRenameEntries(e,n,e.getSourceFiles(),r,0,{use:ice.FindReferencesUse.References},c7),s7);return i?Je(i,l7,(t=>function(e,t){return{from:a7(e,t[0].declaration),fromSpans:E(t,(e=>gQ(e.range)))}}(e,t))):[]}function u7(e,t){return 33554432&t.flags||lD(t)?[]:Je(function(e,t){const n=[],r=function(e,t){function n(n){const r=QD(n)?n.tag:vu(n)?n.tagName:kx(n)||uD(n)?n:n.expression,i=o7(e,r);if(i){const e=mQ(r,n.getSourceFile());if(Qe(i))for(const n of i)t.push({declaration:n,range:e});else t.push({declaration:i,range:e})}}return function e(t){if(t&&!(33554432&t.flags))if(Y8(t)){if(__(t))for(const n of t.members)n.name&&rD(n.name)&&e(n.name.expression)}else{switch(t.kind){case 80:case 271:case 272:case 278:case 264:case 265:return;case 175:return void n(t);case 216:case 234:case 238:return void e(t.expression);case 260:case 169:return e(t.name),void e(t.initializer);case 213:case 214:return n(t),e(t.expression),void d(t.arguments,e);case 215:return n(t),e(t.tag),void e(t.template);case 286:case 285:return n(t),e(t.tagName),void e(t.attributes);case 170:return n(t),void e(t.expression);case 211:case 212:n(t),PI(t,e)}Tf(t)||PI(t,e)}}}(e,n);switch(t.kind){case 307:!function(e,t){d(e.statements,t)}(t,r);break;case 267:!function(e,t){!wv(e,128)&&e.body&&YF(e.body)&&d(e.body.statements,t)}(t,r);break;case 262:case 218:case 219:case 174:case 177:case 178:!function(e,t,n){const r=n7(e,t);r&&(d(r.parameters,n),n(r.body))}(e.getTypeChecker(),t,r);break;case 263:case 231:!function(e,t){d(e.modifiers,t);const n=yh(e);n&&t(n.expression);for(const n of e.members)rI(n)&&d(n.modifiers,t),cD(n)?t(n.initializer):dD(n)&&n.body?(d(n.parameters,t),t(n.body)):uD(n)&&t(n)}(t,r);break;case 175:!function(e,t){t(e.body)}(t,r);break;default:un.assertNever(t)}return n}(e,t),l7,(t=>function(e,t){return{to:a7(e,t[0].declaration),fromSpans:E(t,(e=>gQ(e.range)))}}(e,t)))}i(K8,{createCallHierarchyItem:()=>a7,getIncomingCalls:()=>_7,getOutgoingCalls:()=>u7,resolveCallHierarchyDeclaration:()=>o7});var d7={};i(d7,{v2020:()=>p7});var p7={};i(p7,{TokenEncodingConsts:()=>e8,TokenModifier:()=>n8,TokenType:()=>t8,getEncodedSemanticClassifications:()=>i8,getSemanticClassifications:()=>r8});var f7={};i(f7,{PreserveOptionalFlags:()=>Sie,addNewNodeForMemberSymbol:()=>Tie,codeFixAll:()=>D7,createCodeFixAction:()=>v7,createCodeFixActionMaybeFixAll:()=>b7,createCodeFixActionWithoutFixAll:()=>y7,createCombinedCodeActions:()=>w7,createFileTextChanges:()=>N7,createImportAdder:()=>Z9,createImportSpecifierResolver:()=>tee,createMissingMemberNodes:()=>xie,createSignatureDeclarationFromCallExpression:()=>wie,createSignatureDeclarationFromSignature:()=>Cie,createStubbedBody:()=>Rie,eachDiagnostic:()=>F7,findAncestorMatchingSpan:()=>Wie,generateAccessorFromProperty:()=>$ie,getAccessorConvertiblePropertyAtPosition:()=>Xie,getAllFixes:()=>C7,getAllSupers:()=>Zie,getFixes:()=>T7,getImportCompletionAction:()=>nee,getImportKind:()=>yee,getJSDocTypedefNodes:()=>J9,getNoopSymbolTrackerWithResolver:()=>kie,getPromoteTypeOnlyCompletionAction:()=>ree,getSupportedErrorCodes:()=>S7,importFixName:()=>X9,importSymbols:()=>Vie,parameterShouldGetTypeFromJSDoc:()=>v5,registerCodeFix:()=>k7,setJsonCompilerOptionValue:()=>Bie,setJsonCompilerOptionValues:()=>Mie,tryGetAutoImportableReferenceFromTypeNode:()=>qie,typeNodeToAutoImportableTypeNode:()=>Fie,typePredicateToAutoImportableTypeNode:()=>Pie,typeToAutoImportableTypeNode:()=>Die,typeToMinimizedReferenceType:()=>Eie});var m7,g7=$e(),h7=new Map;function y7(e,t,n){return x7(e,UZ(n),t,void 0,void 0)}function v7(e,t,n,r,i,o){return x7(e,UZ(n),t,r,UZ(i),o)}function b7(e,t,n,r,i,o){return x7(e,UZ(n),t,r,i&&UZ(i),o)}function x7(e,t,n,r,i,o){return{fixName:e,description:t,changes:n,fixId:r,fixAllDescription:i,commands:o?[o]:void 0}}function k7(e){for(const t of e.errorCodes)m7=void 0,g7.add(String(t),e);if(e.fixIds)for(const t of e.fixIds)un.assert(!h7.has(t)),h7.set(t,e)}function S7(){return m7??(m7=Oe(g7.keys()))}function T7(e){const t=E7(e);return O(g7.get(String(e.errorCode)),(n=>E(n.getCodeActions(e),function(e,t){const{errorCodes:n}=e;let r=0;for(const e of t)if(T(n,e.code)&&r++,r>1)break;const i=r<2;return({fixId:e,fixAllDescription:t,...n})=>i?n:{...n,fixId:e,fixAllDescription:t}}(n,t))))}function C7(e){return h7.get(nt(e.fixId,Ze)).getAllCodeActions(e)}function w7(e,t){return{changes:e,commands:t}}function N7(e,t){return{fileName:e,textChanges:t}}function D7(e,t,n){const r=[];return w7(Tue.ChangeTracker.with(e,(i=>F7(e,t,(e=>n(i,e,r))))),0===r.length?void 0:r)}function F7(e,t,n){for(const r of E7(e))T(t,r.code)&&n(r)}function E7({program:e,sourceFile:t,cancellationToken:n}){const r=[...e.getSemanticDiagnostics(t,n),...e.getSyntacticDiagnostics(t,n),...g1(t,e,n)];return Nk(e.getCompilerOptions())&&r.push(...e.getDeclarationDiagnostics(t,n)),r}var P7="addConvertToUnknownForNonOverlappingTypes",A7=[la.Conversion_of_type_0_to_type_1_may_be_a_mistake_because_neither_type_sufficiently_overlaps_with_the_other_If_this_was_intentional_convert_the_expression_to_unknown_first.code];function I7(e,t,n){const r=gF(n)?XC.createAsExpression(n.expression,XC.createKeywordTypeNode(159)):XC.createTypeAssertion(XC.createKeywordTypeNode(159),n.expression);e.replaceNode(t,n.expression,r)}function O7(e,t){if(!Fm(e))return _c(PX(e,t),(e=>gF(e)||YD(e)))}k7({errorCodes:A7,getCodeActions:function(e){const t=O7(e.sourceFile,e.span.start);if(void 0===t)return;const n=Tue.ChangeTracker.with(e,(n=>I7(n,e.sourceFile,t)));return[v7(P7,n,la.Add_unknown_conversion_for_non_overlapping_types,P7,la.Add_unknown_to_all_conversions_of_non_overlapping_types)]},fixIds:[P7],getAllCodeActions:e=>D7(e,A7,((e,t)=>{const n=O7(t.file,t.start);n&&I7(e,t.file,n)}))}),k7({errorCodes:[la.await_expressions_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_this_file_has_no_imports_or_exports_Consider_adding_an_empty_export_to_make_this_file_a_module.code,la.await_using_statements_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_this_file_has_no_imports_or_exports_Consider_adding_an_empty_export_to_make_this_file_a_module.code,la.for_await_loops_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_this_file_has_no_imports_or_exports_Consider_adding_an_empty_export_to_make_this_file_a_module.code],getCodeActions:function(e){const{sourceFile:t}=e;return[y7("addEmptyExportDeclaration",Tue.ChangeTracker.with(e,(e=>{const n=XC.createExportDeclaration(void 0,!1,XC.createNamedExports([]),void 0);e.insertNodeAtEndOfScope(t,t,n)})),la.Add_export_to_make_this_file_into_a_module)]}});var L7="addMissingAsync",j7=[la.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1.code,la.Type_0_is_not_assignable_to_type_1.code,la.Type_0_is_not_comparable_to_type_1.code];function R7(e,t,n,r){const i=n((n=>function(e,t,n,r){if(r&&r.has(jB(n)))return;null==r||r.add(jB(n));const i=XC.replaceModifiers(LY(n,!0),XC.createNodeArray(XC.createModifiersFromModifierFlags(1024|Jv(n))));e.replaceNode(t,n,i)}(n,e.sourceFile,t,r)));return v7(L7,i,la.Add_async_modifier_to_containing_function,L7,la.Add_all_missing_async_modifiers)}function M7(e,t){if(t)return _c(PX(e,t.start),(n=>n.getStart(e)Ds(t)?"quit":(tF(n)||_D(n)||eF(n)||$F(n))&&QQ(t,pQ(n,e))))}k7({fixIds:[L7],errorCodes:j7,getCodeActions:function(e){const{sourceFile:t,errorCode:n,cancellationToken:r,program:i,span:o}=e,a=b(i.getTypeChecker().getDiagnostics(t,r),function(e,t){return({start:n,length:r,relatedInformation:i,code:o})=>et(n)&&et(r)&&QQ({start:n,length:r},e)&&o===t&&!!i&&$(i,(e=>e.code===la.Did_you_mean_to_mark_this_function_as_async.code))}(o,n)),s=M7(t,a&&a.relatedInformation&&b(a.relatedInformation,(e=>e.code===la.Did_you_mean_to_mark_this_function_as_async.code)));if(s)return[R7(e,s,(t=>Tue.ChangeTracker.with(e,t)))]},getAllCodeActions:e=>{const{sourceFile:t}=e,n=new Set;return D7(e,j7,((r,i)=>{const o=i.relatedInformation&&b(i.relatedInformation,(e=>e.code===la.Did_you_mean_to_mark_this_function_as_async.code)),a=M7(t,o);if(a)return R7(e,a,(e=>(e(r),[])),n)}))}});var B7="addMissingAwait",J7=la.Property_0_does_not_exist_on_type_1.code,z7=[la.This_expression_is_not_callable.code,la.This_expression_is_not_constructable.code],q7=[la.An_arithmetic_operand_must_be_of_type_any_number_bigint_or_an_enum_type.code,la.The_left_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type.code,la.The_right_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type.code,la.Operator_0_cannot_be_applied_to_type_1.code,la.Operator_0_cannot_be_applied_to_types_1_and_2.code,la.This_comparison_appears_to_be_unintentional_because_the_types_0_and_1_have_no_overlap.code,la.This_condition_will_always_return_true_since_this_0_is_always_defined.code,la.Type_0_is_not_an_array_type.code,la.Type_0_is_not_an_array_type_or_a_string_type.code,la.Type_0_can_only_be_iterated_through_when_using_the_downlevelIteration_flag_or_with_a_target_of_es2015_or_higher.code,la.Type_0_is_not_an_array_type_or_a_string_type_or_does_not_have_a_Symbol_iterator_method_that_returns_an_iterator.code,la.Type_0_is_not_an_array_type_or_does_not_have_a_Symbol_iterator_method_that_returns_an_iterator.code,la.Type_0_must_have_a_Symbol_iterator_method_that_returns_an_iterator.code,la.Type_0_must_have_a_Symbol_asyncIterator_method_that_returns_an_async_iterator.code,la.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1.code,J7,...z7];function U7(e,t,n,r,i){const o=PZ(e,n);return o&&function(e,t,n,r,i){return $(i.getTypeChecker().getDiagnostics(e,r),(({start:e,length:r,relatedInformation:i,code:o})=>et(e)&&et(r)&&QQ({start:e,length:r},n)&&o===t&&!!i&&$(i,(e=>e.code===la.Did_you_forget_to_use_await.code))))}(e,t,n,r,i)&&H7(o)?o:void 0}function V7(e,t,n,r,i,o){const{sourceFile:a,program:s,cancellationToken:c}=e,l=function(e,t,n,r,i){const o=function(e,t){if(HD(e.parent)&&zN(e.parent.expression))return{identifiers:[e.parent.expression],isCompleteFix:!0};if(zN(e))return{identifiers:[e],isCompleteFix:!0};if(cF(e)){let n,r=!0;for(const i of[e.left,e.right]){const e=t.getTypeAtLocation(i);if(t.getPromisedTypeOfPromise(e)){if(!zN(i)){r=!1;continue}(n||(n=[])).push(i)}}return n&&{identifiers:n,isCompleteFix:r}}}(e,i);if(!o)return;let a,s=o.isCompleteFix;for(const e of o.identifiers){const o=i.getSymbolAtLocation(e);if(!o)continue;const c=tt(o.valueDeclaration,VF),l=c&&tt(c.name,zN),_=Sh(c,243);if(!c||!_||c.type||!c.initializer||_.getSourceFile()!==t||wv(_,32)||!l||!H7(c.initializer)){s=!1;continue}const u=r.getSemanticDiagnostics(t,n);ice.Core.eachSymbolReferenceInFile(l,i,t,(n=>e!==n&&!$7(n,u,t,i)))?s=!1:(a||(a=[])).push({expression:c.initializer,declarationSymbol:o})}return a&&{initializers:a,needsSecondPassForFixAll:!s}}(t,a,c,s,r);if(l)return y7("addMissingAwaitToInitializer",i((e=>{d(l.initializers,(({expression:t})=>K7(e,n,a,r,t,o))),o&&l.needsSecondPassForFixAll&&K7(e,n,a,r,t,o)})),1===l.initializers.length?[la.Add_await_to_initializer_for_0,l.initializers[0].declarationSymbol.name]:la.Add_await_to_initializers)}function W7(e,t,n,r,i,o){const a=i((i=>K7(i,n,e.sourceFile,r,t,o)));return v7(B7,a,la.Add_await,B7,la.Fix_all_expressions_possibly_missing_await)}function $7(e,t,n,r){const i=HD(e.parent)?e.parent.name:cF(e.parent)?e.parent:e,o=b(t,(e=>e.start===i.getStart(n)&&e.start+e.length===i.getEnd()));return o&&T(q7,o.code)||1&r.getTypeAtLocation(i).flags}function H7(e){return 65536&e.flags||!!_c(e,(e=>e.parent&&tF(e.parent)&&e.parent.body===e||CF(e)&&(262===e.parent.kind||218===e.parent.kind||219===e.parent.kind||174===e.parent.kind)))}function K7(e,t,n,r,i,o){if(OF(i.parent)&&!i.parent.awaitModifier){const t=r.getTypeAtLocation(i),o=r.getAnyAsyncIterableType();if(o&&r.isTypeAssignableTo(t,o)){const t=i.parent;return void e.replaceNode(n,t,XC.updateForOfStatement(t,XC.createToken(135),t.initializer,t.expression,t.statement))}}if(cF(i))for(const t of[i.left,i.right]){if(o&&zN(t)){const e=r.getSymbolAtLocation(t);if(e&&o.has(RB(e)))continue}const i=r.getTypeAtLocation(t),a=r.getPromisedTypeOfPromise(i)?XC.createAwaitExpression(t):t;e.replaceNode(n,t,a)}else if(t===J7&&HD(i.parent)){if(o&&zN(i.parent.expression)){const e=r.getSymbolAtLocation(i.parent.expression);if(e&&o.has(RB(e)))return}e.replaceNode(n,i.parent.expression,XC.createParenthesizedExpression(XC.createAwaitExpression(i.parent.expression))),G7(e,i.parent.expression,n)}else if(T(z7,t)&&L_(i.parent)){if(o&&zN(i)){const e=r.getSymbolAtLocation(i);if(e&&o.has(RB(e)))return}e.replaceNode(n,i,XC.createParenthesizedExpression(XC.createAwaitExpression(i))),G7(e,i,n)}else{if(o&&VF(i.parent)&&zN(i.parent.name)){const e=r.getSymbolAtLocation(i.parent.name);if(e&&!q(o,RB(e)))return}e.replaceNode(n,i,XC.createAwaitExpression(i))}}function G7(e,t,n){const r=jX(t.pos,n);r&&pZ(r.end,r.parent,n)&&e.insertText(n,t.getStart(n),";")}k7({fixIds:[B7],errorCodes:q7,getCodeActions:function(e){const{sourceFile:t,errorCode:n,span:r,cancellationToken:i,program:o}=e,a=U7(t,n,r,i,o);if(!a)return;const s=e.program.getTypeChecker(),c=t=>Tue.ChangeTracker.with(e,t);return ne([V7(e,a,n,s,c),W7(e,a,n,s,c)])},getAllCodeActions:e=>{const{sourceFile:t,program:n,cancellationToken:r}=e,i=e.program.getTypeChecker(),o=new Set;return D7(e,q7,((a,s)=>{const c=U7(t,s.code,s,r,n);if(!c)return;const l=e=>(e(a),[]);return V7(e,c,s.code,i,l,o)||W7(e,c,s.code,i,l,o)}))}});var X7="addMissingConst",Q7=[la.Cannot_find_name_0.code,la.No_value_exists_in_scope_for_the_shorthand_property_0_Either_declare_one_or_provide_an_initializer.code];function Y7(e,t,n,r,i){const o=PX(t,n),a=_c(o,(e=>X_(e.parent)?e.parent.initializer===e:!function(e){switch(e.kind){case 80:case 209:case 210:case 303:case 304:return!0;default:return!1}}(e)&&"quit"));if(a)return Z7(e,a,t,i);const s=o.parent;if(cF(s)&&64===s.operatorToken.kind&&DF(s.parent))return Z7(e,o,t,i);if(WD(s)){const n=r.getTypeChecker();if(!v(s.elements,(e=>function(e,t){const n=zN(e)?e:nb(e,!0)&&zN(e.left)?e.left:void 0;return!!n&&!t.getSymbolAtLocation(n)}(e,n))))return;return Z7(e,s,t,i)}const c=_c(o,(e=>!!DF(e.parent)||!function(e){switch(e.kind){case 80:case 226:case 28:return!0;default:return!1}}(e)&&"quit"));if(c){if(!e5(c,r.getTypeChecker()))return;return Z7(e,c,t,i)}}function Z7(e,t,n,r){r&&!q(r,t)||e.insertModifierBefore(n,87,t)}function e5(e,t){return!!cF(e)&&(28===e.operatorToken.kind?v([e.left,e.right],(e=>e5(e,t))):64===e.operatorToken.kind&&zN(e.left)&&!t.getSymbolAtLocation(e.left))}k7({errorCodes:Q7,getCodeActions:function(e){const t=Tue.ChangeTracker.with(e,(t=>Y7(t,e.sourceFile,e.span.start,e.program)));if(t.length>0)return[v7(X7,t,la.Add_const_to_unresolved_variable,X7,la.Add_const_to_all_unresolved_variables)]},fixIds:[X7],getAllCodeActions:e=>{const t=new Set;return D7(e,Q7,((n,r)=>Y7(n,r.file,r.start,e.program,t)))}});var t5="addMissingDeclareProperty",n5=[la.Property_0_will_overwrite_the_base_property_in_1_If_this_is_intentional_add_an_initializer_Otherwise_add_a_declare_modifier_or_remove_the_redundant_declaration.code];function r5(e,t,n,r){const i=PX(t,n);if(!zN(i))return;const o=i.parent;172!==o.kind||r&&!q(r,o)||e.insertModifierBefore(t,138,o)}k7({errorCodes:n5,getCodeActions:function(e){const t=Tue.ChangeTracker.with(e,(t=>r5(t,e.sourceFile,e.span.start)));if(t.length>0)return[v7(t5,t,la.Prefix_with_declare,t5,la.Prefix_all_incorrect_property_declarations_with_declare)]},fixIds:[t5],getAllCodeActions:e=>{const t=new Set;return D7(e,n5,((e,n)=>r5(e,n.file,n.start,t)))}});var i5="addMissingInvocationForDecorator",o5=[la._0_accepts_too_few_arguments_to_be_used_as_a_decorator_here_Did_you_mean_to_call_it_first_and_write_0.code];function a5(e,t,n){const r=_c(PX(t,n),aD);un.assert(!!r,"Expected position to be owned by a decorator.");const i=XC.createCallExpression(r.expression,void 0,void 0);e.replaceNode(t,r.expression,i)}k7({errorCodes:o5,getCodeActions:function(e){const t=Tue.ChangeTracker.with(e,(t=>a5(t,e.sourceFile,e.span.start)));return[v7(i5,t,la.Call_decorator_expression,i5,la.Add_to_all_uncalled_decorators)]},fixIds:[i5],getAllCodeActions:e=>D7(e,o5,((e,t)=>a5(e,t.file,t.start)))});var s5="addMissingResolutionModeImportAttribute",c5=[la.Type_only_import_of_an_ECMAScript_module_from_a_CommonJS_module_must_have_a_resolution_mode_attribute.code,la.Type_import_of_an_ECMAScript_module_from_a_CommonJS_module_must_have_a_resolution_mode_attribute.code];function l5(e,t,n,r,i,o){var a,s,c;const l=_c(PX(t,n),en(nE,BD));un.assert(!!l,"Expected position to be owned by an ImportDeclaration or ImportType.");const _=0===BQ(t,o),u=hg(l),d=!u||(null==(a=bR(u.text,t.fileName,r.getCompilerOptions(),i,r.getModuleResolutionCache(),void 0,99).resolvedModule)?void 0:a.resolvedFileName)===(null==(c=null==(s=r.getResolvedModuleFromModuleSpecifier(u,t))?void 0:s.resolvedModule)?void 0:c.resolvedFileName),p=l.attributes?XC.updateImportAttributes(l.attributes,XC.createNodeArray([...l.attributes.elements,XC.createImportAttribute(XC.createStringLiteral("resolution-mode",_),XC.createStringLiteral(d?"import":"require",_))],l.attributes.elements.hasTrailingComma),l.attributes.multiLine):XC.createImportAttributes(XC.createNodeArray([XC.createImportAttribute(XC.createStringLiteral("resolution-mode",_),XC.createStringLiteral(d?"import":"require",_))]));272===l.kind?e.replaceNode(t,l,XC.updateImportDeclaration(l,l.modifiers,l.importClause,l.moduleSpecifier,p)):e.replaceNode(t,l,XC.updateImportTypeNode(l,l.argument,p,l.qualifier,l.typeArguments))}k7({errorCodes:c5,getCodeActions:function(e){const t=Tue.ChangeTracker.with(e,(t=>l5(t,e.sourceFile,e.span.start,e.program,e.host,e.preferences)));return[v7(s5,t,la.Add_resolution_mode_import_attribute,s5,la.Add_resolution_mode_import_attribute_to_all_type_only_imports_that_need_it)]},fixIds:[s5],getAllCodeActions:e=>D7(e,c5,((t,n)=>l5(t,n.file,n.start,e.program,e.host,e.preferences)))});var _5="addNameToNamelessParameter",u5=[la.Parameter_has_a_name_but_no_type_Did_you_mean_0_Colon_1.code];function d5(e,t,n){const r=PX(t,n),i=r.parent;if(!oD(i))return un.fail("Tried to add a parameter name to a non-parameter: "+un.formatSyntaxKind(r.kind));const o=i.parent.parameters.indexOf(i);un.assert(!i.type,"Tried to add a parameter name to a parameter that already had one."),un.assert(o>-1,"Parameter not found in parent parameter list.");let a=i.name.getEnd(),s=XC.createTypeReferenceNode(i.name,void 0),c=p5(t,i);for(;c;)s=XC.createArrayTypeNode(s),a=c.getEnd(),c=p5(t,c);const l=XC.createParameterDeclaration(i.modifiers,i.dotDotDotToken,"arg"+o,i.questionToken,i.dotDotDotToken&&!TD(s)?XC.createArrayTypeNode(s):s,i.initializer);e.replaceRange(t,Pb(i.getStart(t),a),l)}function p5(e,t){const n=LX(t.name,t.parent,e);if(n&&23===n.kind&&UD(n.parent)&&oD(n.parent.parent))return n.parent.parent}k7({errorCodes:u5,getCodeActions:function(e){const t=Tue.ChangeTracker.with(e,(t=>d5(t,e.sourceFile,e.span.start)));return[v7(_5,t,la.Add_parameter_name,_5,la.Add_names_to_all_parameters_without_names)]},fixIds:[_5],getAllCodeActions:e=>D7(e,u5,((e,t)=>d5(e,t.file,t.start)))});var f5="addOptionalPropertyUndefined";function m5(e,t){var n;if(e){if(cF(e.parent)&&64===e.parent.operatorToken.kind)return{source:e.parent.right,target:e.parent.left};if(VF(e.parent)&&e.parent.initializer)return{source:e.parent.initializer,target:e.parent.name};if(GD(e.parent)){const n=t.getSymbolAtLocation(e.parent.expression);if(!(null==n?void 0:n.valueDeclaration)||!s_(n.valueDeclaration.kind))return;if(!U_(e))return;const r=e.parent.arguments.indexOf(e);if(-1===r)return;const i=n.valueDeclaration.parameters[r].name;if(zN(i))return{source:e,target:i}}else if(ME(e.parent)&&zN(e.parent.name)||BE(e.parent)){const r=m5(e.parent.parent,t);if(!r)return;const i=t.getPropertyOfType(t.getTypeAtLocation(r.target),e.parent.name.text),o=null==(n=null==i?void 0:i.declarations)?void 0:n[0];if(!o)return;return{source:ME(e.parent)?e.parent.initializer:e.parent.name,target:o}}}}k7({errorCodes:[la.Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_type_of_the_target.code,la.Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_types_of_the_target_s_properties.code,la.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_types_of_the_target_s_properties.code],getCodeActions(e){const t=e.program.getTypeChecker(),n=function(e,t,n){var r,i;const o=m5(PZ(e,t),n);if(!o)return l;const{source:a,target:s}=o,c=function(e,t,n){return HD(t)&&!!n.getExactOptionalProperties(n.getTypeAtLocation(t.expression)).length&&n.getTypeAtLocation(e)===n.getUndefinedType()}(a,s,n)?n.getTypeAtLocation(s.expression):n.getTypeAtLocation(s);return(null==(i=null==(r=c.symbol)?void 0:r.declarations)?void 0:i.some((e=>hd(e).fileName.match(/\.d\.ts$/))))?l:n.getExactOptionalProperties(c)}(e.sourceFile,e.span,t);if(!n.length)return;const r=Tue.ChangeTracker.with(e,(e=>function(e,t){for(const n of t){const t=n.valueDeclaration;if(t&&(sD(t)||cD(t))&&t.type){const n=XC.createUnionTypeNode([...192===t.type.kind?t.type.types:[t.type],XC.createTypeReferenceNode("undefined")]);e.replaceNode(t.getSourceFile(),t.type,n)}}}(e,n)));return[y7(f5,r,la.Add_undefined_to_optional_property_type)]},fixIds:[f5]});var g5="annotateWithTypeFromJSDoc",h5=[la.JSDoc_types_may_be_moved_to_TypeScript_types.code];function y5(e,t){const n=PX(e,t);return tt(oD(n.parent)?n.parent.parent:n.parent,v5)}function v5(e){return function(e){return i_(e)||260===e.kind||171===e.kind||172===e.kind}(e)&&b5(e)}function b5(e){return i_(e)?e.parameters.some(b5)||!e.type&&!!nl(e):!e.type&&!!tl(e)}function x5(e,t,n){if(i_(n)&&(nl(n)||n.parameters.some((e=>!!tl(e))))){if(!n.typeParameters){const r=gv(n);r.length&&e.insertTypeParameters(t,n,r)}const r=tF(n)&&!yX(n,21,t);r&&e.insertNodeBefore(t,ge(n.parameters),XC.createToken(21));for(const r of n.parameters)if(!r.type){const n=tl(r);n&&e.tryInsertTypeAnnotation(t,r,$B(n,k5,v_))}if(r&&e.insertNodeAfter(t,ve(n.parameters),XC.createToken(22)),!n.type){const r=nl(n);r&&e.tryInsertTypeAnnotation(t,n,$B(r,k5,v_))}}else{const r=un.checkDefined(tl(n),"A JSDocType for this declaration should exist");un.assert(!n.type,"The JSDocType decl should have a type"),e.tryInsertTypeAnnotation(t,n,$B(r,k5,v_))}}function k5(e){switch(e.kind){case 312:case 313:return XC.createTypeReferenceNode("any",l);case 316:return function(e){return XC.createUnionTypeNode([$B(e.type,k5,v_),XC.createTypeReferenceNode("undefined",l)])}(e);case 315:return k5(e.type);case 314:return function(e){return XC.createUnionTypeNode([$B(e.type,k5,v_),XC.createTypeReferenceNode("null",l)])}(e);case 318:return function(e){return XC.createArrayTypeNode($B(e.type,k5,v_))}(e);case 317:return function(e){return XC.createFunctionTypeNode(l,e.parameters.map(S5),e.type??XC.createKeywordTypeNode(133))}(e);case 183:return function(e){let t=e.typeName,n=e.typeArguments;if(zN(e.typeName)){if(Im(e))return function(e){const t=XC.createParameterDeclaration(void 0,void 0,150===e.typeArguments[0].kind?"n":"s",void 0,XC.createTypeReferenceNode(150===e.typeArguments[0].kind?"number":"string",[]),void 0),n=XC.createTypeLiteralNode([XC.createIndexSignature(void 0,[t],e.typeArguments[1])]);return nw(n,1),n}(e);let r=e.typeName.text;switch(e.typeName.text){case"String":case"Boolean":case"Object":case"Number":r=r.toLowerCase();break;case"array":case"date":case"promise":r=r[0].toUpperCase()+r.slice(1)}t=XC.createIdentifier(r),n="Array"!==r&&"Promise"!==r||e.typeArguments?HB(e.typeArguments,k5,v_):XC.createNodeArray([XC.createTypeReferenceNode("any",l)])}return XC.createTypeReferenceNode(t,n)}(e);case 322:return function(e){const t=XC.createTypeLiteralNode(E(e.jsDocPropertyTags,(e=>XC.createPropertySignature(void 0,zN(e.name)?e.name:e.name.right,VT(e)?XC.createToken(58):void 0,e.typeExpression&&$B(e.typeExpression.type,k5,v_)||XC.createKeywordTypeNode(133)))));return nw(t,1),t}(e);default:const t=nJ(e,k5,void 0);return nw(t,1),t}}function S5(e){const t=e.parent.parameters.indexOf(e),n=318===e.type.kind&&t===e.parent.parameters.length-1,r=e.name||(n?"rest":"arg"+t),i=n?XC.createToken(26):e.dotDotDotToken;return XC.createParameterDeclaration(e.modifiers,i,r,e.questionToken,$B(e.type,k5,v_),e.initializer)}k7({errorCodes:h5,getCodeActions(e){const t=y5(e.sourceFile,e.span.start);if(!t)return;const n=Tue.ChangeTracker.with(e,(n=>x5(n,e.sourceFile,t)));return[v7(g5,n,la.Annotate_with_type_from_JSDoc,g5,la.Annotate_everything_with_types_from_JSDoc)]},fixIds:[g5],getAllCodeActions:e=>D7(e,h5,((e,t)=>{const n=y5(t.file,t.start);n&&x5(e,t.file,n)}))});var T5="convertFunctionToEs6Class",C5=[la.This_constructor_function_may_be_converted_to_a_class_declaration.code];function w5(e,t,n,r,i,o){const a=r.getSymbolAtLocation(PX(t,n));if(!(a&&a.valueDeclaration&&19&a.flags))return;const s=a.valueDeclaration;if($F(s)||eF(s))e.replaceNode(t,s,function(e){const t=c(a);e.body&&t.unshift(XC.createConstructorDeclaration(void 0,e.parameters,e.body));const n=N5(e,95);return XC.createClassDeclaration(n,e.name,void 0,void 0,t)}(s));else if(VF(s)){const n=function(e){const t=e.initializer;if(!t||!eF(t)||!zN(e.name))return;const n=c(e.symbol);t.body&&n.unshift(XC.createConstructorDeclaration(void 0,t.parameters,t.body));const r=N5(e.parent.parent,95);return XC.createClassDeclaration(r,e.name,void 0,void 0,n)}(s);if(!n)return;const r=s.parent.parent;WF(s.parent)&&s.parent.declarations.length>1?(e.delete(t,s),e.insertNodeAfter(t,r,n)):e.replaceNode(t,r,n)}function c(n){const r=[];return n.exports&&n.exports.forEach((e=>{if("prototype"===e.name&&e.declarations){const t=e.declarations[0];1===e.declarations.length&&HD(t)&&cF(t.parent)&&64===t.parent.operatorToken.kind&&$D(t.parent.right)&&a(t.parent.right.symbol,void 0,r)}else a(e,[XC.createToken(126)],r)})),n.members&&n.members.forEach(((i,o)=>{var s,c,l,_;if("constructor"===o&&i.valueDeclaration){const r=null==(_=null==(l=null==(c=null==(s=n.exports)?void 0:s.get("prototype"))?void 0:c.declarations)?void 0:l[0])?void 0:_.parent;r&&cF(r)&&$D(r.right)&&$(r.right.properties,D5)||e.delete(t,i.valueDeclaration.parent)}else a(i,void 0,r)})),r;function a(n,r,a){if(!(8192&n.flags||4096&n.flags))return;const s=n.valueDeclaration,c=s.parent,l=c.right;if(u=l,!(kx(_=s)?HD(_)&&D5(_)||n_(u):v(_.properties,(e=>!!(_D(e)||dl(e)||ME(e)&&eF(e.initializer)&&e.name||D5(e))))))return;var _,u;if($(a,(e=>{const t=Tc(e);return!(!t||!zN(t)||mc(t)!==hc(n))})))return;const p=c.parent&&244===c.parent.kind?c.parent:c;if(e.delete(t,p),l)if(kx(s)&&(eF(l)||tF(l))){const e=BQ(t,i),n=function(e,t,n){if(HD(e))return e.name;const r=e.argumentExpression;return kN(r)?r:Lu(r)?fs(r.text,hk(t))?XC.createIdentifier(r.text):NN(r)?XC.createStringLiteral(r.text,0===n):r:void 0}(s,o,e);n&&f(a,l,n)}else{if(!$D(l)){if(Dm(t))return;if(!HD(s))return;const e=XC.createPropertyDeclaration(r,s.name,void 0,void 0,l);return KY(c.parent,e,t),void a.push(e)}d(l.properties,(e=>{(_D(e)||dl(e))&&a.push(e),ME(e)&&eF(e.initializer)&&f(a,e.initializer,e.name),D5(e)}))}else a.push(XC.createPropertyDeclaration(r,n.name,void 0,void 0,void 0));function f(e,n,i){return eF(n)?function(e,n,i){const o=K(r,N5(n,134)),a=XC.createMethodDeclaration(o,void 0,i,void 0,void 0,n.parameters,void 0,n.body);return KY(c,a,t),void e.push(a)}(e,n,i):function(e,n,i){const o=n.body;let a;a=241===o.kind?o:XC.createBlock([XC.createReturnStatement(o)]);const s=K(r,N5(n,134)),l=XC.createMethodDeclaration(s,void 0,i,void 0,void 0,n.parameters,void 0,a);KY(c,l,t),e.push(l)}(e,n,i)}}}}function N5(e,t){return rI(e)?N(e.modifiers,(e=>e.kind===t)):void 0}function D5(e){return!!e.name&&!(!zN(e.name)||"constructor"!==e.name.text)}k7({errorCodes:C5,getCodeActions(e){const t=Tue.ChangeTracker.with(e,(t=>w5(t,e.sourceFile,e.span.start,e.program.getTypeChecker(),e.preferences,e.program.getCompilerOptions())));return[v7(T5,t,la.Convert_function_to_an_ES2015_class,T5,la.Convert_all_constructor_functions_to_classes)]},fixIds:[T5],getAllCodeActions:e=>D7(e,C5,((t,n)=>w5(t,n.file,n.start,e.program.getTypeChecker(),e.preferences,e.program.getCompilerOptions())))});var F5="convertToAsyncFunction",E5=[la.This_may_be_converted_to_an_async_function.code],P5=!0;function A5(e,t,n,r){const i=PX(t,n);let o;if(o=zN(i)&&VF(i.parent)&&i.parent.initializer&&i_(i.parent.initializer)?i.parent.initializer:tt(Hf(PX(t,n)),w1),!o)return;const a=new Map,s=Fm(o),c=function(e,t){if(!e.body)return new Set;const n=new Set;return PI(e.body,(function e(r){I5(r,t,"then")?(n.add(jB(r)),d(r.arguments,e)):I5(r,t,"catch")||I5(r,t,"finally")?(n.add(jB(r)),PI(r,e)):j5(r,t)?n.add(jB(r)):PI(r,e)})),n}(o,r),_=function(e,t,n){const r=new Map,i=$e();return PI(e,(function e(o){if(!zN(o))return void PI(o,e);const a=t.getSymbolAtLocation(o);if(a){const e=G5(t.getTypeAtLocation(o),t),s=RB(a).toString();if(!e||oD(o.parent)||i_(o.parent)||n.has(s)){if(o.parent&&(oD(o.parent)||VF(o.parent)||VD(o.parent))){const e=o.text,t=i.get(e);if(t&&t.some((e=>e!==a))){const t=R5(o,i);r.set(s,t.identifier),n.set(s,t),i.add(e,a)}else{const t=LY(o);n.set(s,Z5(t)),i.add(e,a)}}}else{const t=fe(e.parameters),r=(null==t?void 0:t.valueDeclaration)&&oD(t.valueDeclaration)&&tt(t.valueDeclaration.name,zN)||XC.createUniqueName("result",16),o=R5(r,i);n.set(s,o),i.add(r.text,a)}}})),jY(e,!0,(e=>{if(VD(e)&&zN(e.name)&&qD(e.parent)){const n=t.getSymbolAtLocation(e.name),i=n&&r.get(String(RB(n)));if(i&&i.text!==(e.name||e.propertyName).getText())return XC.createBindingElement(e.dotDotDotToken,e.propertyName||e.name,i,e.initializer)}else if(zN(e)){const n=t.getSymbolAtLocation(e),i=n&&r.get(String(RB(n)));if(i)return XC.createIdentifier(i.text)}}))}(o,r,a);if(!v1(_,r))return;const u=_.body&&CF(_.body)?function(e,t){const n=[];return wf(e,(e=>{b1(e,t)&&n.push(e)})),n}(_.body,r):l,p={checker:r,synthNamesMap:a,setOfExpressionsToReturn:c,isInJSFile:s};if(!u.length)return;const f=Xa(t.text,Lb(o).pos);e.insertModifierAt(t,f,134,{suffix:" "});for(const n of u)if(PI(n,(function r(i){if(GD(i)){const r=J5(i,i,p,!1);if(M5())return!0;e.replaceNodeWithNodes(t,n,r)}else if(!n_(i)&&(PI(i,r),M5()))return!0})),M5())return}function I5(e,t,n){if(!GD(e))return!1;const r=UG(e,n)&&t.getTypeAtLocation(e);return!(!r||!t.getPromisedTypeOfPromise(r))}function O5(e,t){return!!(4&mx(e))&&e.target===t}function L5(e,t,n){if("finally"===e.expression.name.escapedText)return;const r=n.getTypeAtLocation(e.expression.expression);if(O5(r,n.getPromiseType())||O5(r,n.getPromiseLikeType())){if("then"!==e.expression.name.escapedText)return pe(e.typeArguments,0);if(t===pe(e.arguments,0))return pe(e.typeArguments,0);if(t===pe(e.arguments,1))return pe(e.typeArguments,1)}}function j5(e,t){return!!U_(e)&&!!t.getPromisedTypeOfPromise(t.getTypeAtLocation(e))}function R5(e,t){const n=(t.get(e.text)||l).length;return Z5(0===n?e:XC.createIdentifier(e.text+"_"+n))}function M5(){return!P5}function B5(){return P5=!1,l}function J5(e,t,n,r,i){if(I5(t,n.checker,"then"))return function(e,t,n,r,i,o){if(!t||z5(r,t))return V5(e,n,r,i,o);if(n&&!z5(r,n))return B5();const a=Q5(t,r),s=J5(e.expression.expression,e.expression.expression,r,!0,a);if(M5())return B5();const c=H5(t,i,o,a,e,r);return M5()?B5():K(s,c)}(t,pe(t.arguments,0),pe(t.arguments,1),n,r,i);if(I5(t,n.checker,"catch"))return V5(t,pe(t.arguments,0),n,r,i);if(I5(t,n.checker,"finally"))return function(e,t,n,r,i){if(!t||z5(n,t))return J5(e,e.expression.expression,n,r,i);const o=q5(e,n,i),a=J5(e,e.expression.expression,n,!0,o);if(M5())return B5();const s=H5(t,r,void 0,void 0,e,n);if(M5())return B5();const c=XC.createBlock(a),l=XC.createBlock(s);return U5(e,n,XC.createTryStatement(c,void 0,l),o,i)}(t,pe(t.arguments,0),n,r,i);if(HD(t))return J5(e,t.expression,n,r,i);const o=n.checker.getTypeAtLocation(t);return o&&n.checker.getPromisedTypeOfPromise(o)?(un.assertNode(lc(t).parent,HD),function(e,t,n,r,i){if(o9(e,n)){let e=LY(t);return r&&(e=XC.createAwaitExpression(e)),[XC.createReturnStatement(e)]}return W5(i,XC.createAwaitExpression(t),void 0)}(e,t,n,r,i)):B5()}function z5({checker:e},t){if(106===t.kind)return!0;if(zN(t)&&!Vl(t)&&"undefined"===mc(t)){const n=e.getSymbolAtLocation(t);return!n||e.isUndefinedSymbol(n)}return!1}function q5(e,t,n){let r;return n&&!o9(e,t)&&(i9(n)?(r=n,t.synthNamesMap.forEach(((e,r)=>{if(e.identifier.text===n.identifier.text){const e=(i=n,Z5(XC.createUniqueName(i.identifier.text,16)));t.synthNamesMap.set(r,e)}var i}))):r=Z5(XC.createUniqueName("result",16),n.types),r9(r)),r}function U5(e,t,n,r,i){const o=[];let a;if(r&&!o9(e,t)){a=LY(r9(r));const e=r.types,n=t.checker.getUnionType(e,2),i=t.isInJSFile?void 0:t.checker.typeToTypeNode(n,void 0,void 0),s=[XC.createVariableDeclaration(a,void 0,i)],c=XC.createVariableStatement(void 0,XC.createVariableDeclarationList(s,1));o.push(c)}return o.push(n),i&&a&&1===i.kind&&o.push(XC.createVariableStatement(void 0,XC.createVariableDeclarationList([XC.createVariableDeclaration(LY(n9(i)),void 0,void 0,a)],2))),o}function V5(e,t,n,r,i){if(!t||z5(n,t))return J5(e,e.expression.expression,n,r,i);const o=Q5(t,n),a=q5(e,n,i),s=J5(e,e.expression.expression,n,!0,a);if(M5())return B5();const c=H5(t,r,a,o,e,n);if(M5())return B5();const l=XC.createBlock(s),_=XC.createCatchClause(o&&LY(t9(o)),XC.createBlock(c));return U5(e,n,XC.createTryStatement(l,_,void 0),a,i)}function W5(e,t,n){return!e||Y5(e)?[XC.createExpressionStatement(t)]:i9(e)&&e.hasBeenDeclared?[XC.createExpressionStatement(XC.createAssignment(LY(e9(e)),t))]:[XC.createVariableStatement(void 0,XC.createVariableDeclarationList([XC.createVariableDeclaration(LY(t9(e)),void 0,n,t)],2))]}function $5(e,t){if(t&&e){const n=XC.createUniqueName("result",16);return[...W5(Z5(n),e,t),XC.createReturnStatement(n)]}return[XC.createReturnStatement(e)]}function H5(e,t,n,r,i,o){var a;switch(e.kind){case 106:break;case 211:case 80:if(!r)break;const s=XC.createCallExpression(LY(e),void 0,i9(r)?[e9(r)]:[]);if(o9(i,o))return $5(s,L5(i,e,o.checker));const c=o.checker.getTypeAtLocation(e),_=o.checker.getSignaturesOfType(c,0);if(!_.length)return B5();const u=_[0].getReturnType(),d=W5(n,XC.createAwaitExpression(s),L5(i,e,o.checker));return n&&n.types.push(o.checker.getAwaitedType(u)||u),d;case 218:case 219:{const r=e.body,s=null==(a=G5(o.checker.getTypeAtLocation(e),o.checker))?void 0:a.getReturnType();if(CF(r)){let a=[],c=!1;for(const l of r.statements)if(RF(l))if(c=!0,b1(l,o.checker))a=a.concat(X5(o,l,t,n));else{const t=s&&l.expression?K5(o.checker,s,l.expression):l.expression;a.push(...$5(t,L5(i,e,o.checker)))}else{if(t&&wf(l,ot))return B5();a.push(l)}return o9(i,o)?a.map((e=>LY(e))):function(e,t,n,r){const i=[];for(const r of e)if(RF(r)){if(r.expression){const e=j5(r.expression,n.checker)?XC.createAwaitExpression(r.expression):r.expression;void 0===t?i.push(XC.createExpressionStatement(e)):i9(t)&&t.hasBeenDeclared?i.push(XC.createExpressionStatement(XC.createAssignment(e9(t),e))):i.push(XC.createVariableStatement(void 0,XC.createVariableDeclarationList([XC.createVariableDeclaration(t9(t),void 0,void 0,e)],2)))}}else i.push(LY(r));return r||void 0===t||i.push(XC.createVariableStatement(void 0,XC.createVariableDeclarationList([XC.createVariableDeclaration(t9(t),void 0,void 0,XC.createIdentifier("undefined"))],2))),i}(a,n,o,c)}{const a=x1(r,o.checker)?X5(o,XC.createReturnStatement(r),t,n):l;if(a.length>0)return a;if(s){const t=K5(o.checker,s,r);if(o9(i,o))return $5(t,L5(i,e,o.checker));{const e=W5(n,t,void 0);return n&&n.types.push(o.checker.getAwaitedType(s)||s),e}}return B5()}}default:return B5()}return l}function K5(e,t,n){const r=LY(n);return e.getPromisedTypeOfPromise(t)?XC.createAwaitExpression(r):r}function G5(e,t){return ye(t.getSignaturesOfType(e,0))}function X5(e,t,n,r){let i=[];return PI(t,(function t(o){if(GD(o)){const t=J5(o,o,e,n,r);if(i=i.concat(t),i.length>0)return}else n_(o)||PI(o,t)})),i}function Q5(e,t){const n=[];let r;if(i_(e)?e.parameters.length>0&&(r=function e(t){if(zN(t))return i(t);return function(e,t=l,n=[]){return{kind:1,bindingPattern:e,elements:t,types:n}}(t,O(t.elements,(t=>fF(t)?[]:[e(t.name)])))}(e.parameters[0].name)):zN(e)?r=i(e):HD(e)&&zN(e.name)&&(r=i(e.name)),r&&(!("identifier"in r)||"undefined"!==r.identifier.text))return r;function i(e){var r;const i=function(e){var n;return(null==(n=tt(e,ou))?void 0:n.symbol)??t.checker.getSymbolAtLocation(e)}((r=e).original?r.original:r);return i&&t.synthNamesMap.get(RB(i).toString())||Z5(e,n)}}function Y5(e){return!e||(i9(e)?!e.identifier.text:v(e.elements,Y5))}function Z5(e,t=[]){return{kind:0,identifier:e,types:t,hasBeenDeclared:!1,hasBeenReferenced:!1}}function e9(e){return e.hasBeenReferenced=!0,e.identifier}function t9(e){return i9(e)?r9(e):n9(e)}function n9(e){for(const t of e.elements)t9(t);return e.bindingPattern}function r9(e){return e.hasBeenDeclared=!0,e.identifier}function i9(e){return 0===e.kind}function o9(e,t){return!!e.original&&t.setOfExpressionsToReturn.has(jB(e.original))}function a9(e,t,n,r,i){var o;for(const a of e.imports){const s=null==(o=n.getResolvedModuleFromModuleSpecifier(a,e))?void 0:o.resolvedModule;if(!s||s.resolvedFileName!==t.fileName)continue;const c=yg(a);switch(c.kind){case 271:r.replaceNode(e,c,LQ(c.name,void 0,a,i));break;case 213:Om(c,!1)&&r.replaceNode(e,c,XC.createPropertyAccessExpression(LY(c),"default"))}}}function s9(e,t){e.forEachChild((function n(r){if(HD(r)&&LM(e,r.expression)&&zN(r.name)){const{parent:e}=r;t(r,cF(e)&&e.left===r&&64===e.operatorToken.kind)}r.forEachChild(n)}))}function c9(e,t,n,r,i,o,a,s,c){switch(t.kind){case 243:return l9(e,t,r,n,i,o,c),!1;case 244:{const{expression:i}=t;switch(i.kind){case 213:return Om(i,!0)&&r.replaceNode(e,t,LQ(void 0,void 0,i.arguments[0],c)),!1;case 226:{const{operatorToken:t}=i;return 64===t.kind&&function(e,t,n,r,i,o){const{left:a,right:s}=n;if(!HD(a))return!1;if(LM(e,a)){if(!LM(e,s)){const i=$D(s)?function(e,t){const n=M(e.properties,(e=>{switch(e.kind){case 177:case 178:case 304:case 305:return;case 303:return zN(e.name)?function(e,t,n){const r=[XC.createToken(95)];switch(t.kind){case 218:{const{name:n}=t;if(n&&n.text!==e)return i()}case 219:return g9(e,r,t,n);case 231:return function(e,t,n,r){return XC.createClassDeclaration(K(t,MY(n.modifiers)),e,MY(n.typeParameters),MY(n.heritageClauses),d9(n.members,r))}(e,r,t,n);default:return i()}function i(){return v9(r,XC.createIdentifier(e),d9(t,n))}}(e.name.text,e.initializer,t):void 0;case 174:return zN(e.name)?g9(e.name.text,[XC.createToken(95)],e,t):void 0;default:un.assertNever(e,`Convert to ES6 got invalid prop kind ${e.kind}`)}}));return n&&[n,!1]}(s,o):Om(s,!0)?function(e,t){const n=e.text,r=t.getSymbolAtLocation(e),i=r?r.exports:_;return i.has("export=")?[[u9(n)],!0]:i.has("default")?i.size>1?[[_9(n),u9(n)],!0]:[[u9(n)],!0]:[[_9(n)],!1]}(s.arguments[0],t):void 0;return i?(r.replaceNodeWithNodes(e,n.parent,i[0]),i[1]):(r.replaceRangeWithText(e,Pb(a.getStart(e),s.pos),"export default"),!0)}r.delete(e,n.parent)}else LM(e,a.expression)&&function(e,t,n,r){const{text:i}=t.left.name,o=r.get(i);if(void 0!==o){const r=[v9(void 0,o,t.right),b9([XC.createExportSpecifier(!1,o,i)])];n.replaceNodeWithNodes(e,t.parent,r)}else!function({left:e,right:t,parent:n},r,i){const o=e.name.text;if(!(eF(t)||tF(t)||pF(t))||t.name&&t.name.text!==o)i.replaceNodeRangeWithNodes(r,e.expression,yX(e,25,r),[XC.createToken(95),XC.createToken(87)],{joiner:" ",suffix:" "});else{i.replaceRange(r,{pos:e.getStart(r),end:t.getStart(r)},XC.createToken(95),{suffix:" "}),t.name||i.insertName(r,t,o);const a=yX(n,27,r);a&&i.delete(r,a)}}(t,e,n)}(e,n,r,i);return!1}(e,n,i,r,a,s)}}}default:return!1}}function l9(e,t,n,r,i,o,a){const{declarationList:s}=t;let c=!1;const l=E(s.declarations,(t=>{const{name:n,initializer:l}=t;if(l){if(LM(e,l))return c=!0,x9([]);if(Om(l,!0))return c=!0,function(e,t,n,r,i,o){switch(e.kind){case 206:{const n=M(e.elements,(e=>e.dotDotDotToken||e.initializer||e.propertyName&&!zN(e.propertyName)||!zN(e.name)?void 0:y9(e.propertyName&&e.propertyName.text,e.name.text)));if(n)return x9([LQ(void 0,n,t,o)])}case 207:{const n=p9(RZ(t.text,i),r);return x9([LQ(XC.createIdentifier(n),void 0,t,o),v9(void 0,LY(e),XC.createIdentifier(n))])}case 80:return function(e,t,n,r,i){const o=n.getSymbolAtLocation(e),a=new Map;let s,c=!1;for(const t of r.original.get(e.text)){if(n.getSymbolAtLocation(t)!==o||t===e)continue;const{parent:i}=t;if(HD(i)){const{name:{text:e}}=i;if("default"===e){c=!0;const e=t.getText();(s??(s=new Map)).set(i,XC.createIdentifier(e))}else{un.assert(i.expression===t,"Didn't expect expression === use");let n=a.get(e);void 0===n&&(n=p9(e,r),a.set(e,n)),(s??(s=new Map)).set(i,XC.createIdentifier(n))}}else c=!0}const l=0===a.size?void 0:Oe(P(a.entries(),(([e,t])=>XC.createImportSpecifier(!1,e===t?void 0:XC.createIdentifier(e),XC.createIdentifier(t)))));return l||(c=!0),x9([LQ(c?LY(e):void 0,l,t,i)],s)}(e,t,n,r,o);default:return un.assertNever(e,`Convert to ES module got invalid name kind ${e.kind}`)}}(n,l.arguments[0],r,i,o,a);if(HD(l)&&Om(l.expression,!0))return c=!0,function(e,t,n,r,i){switch(e.kind){case 206:case 207:{const o=p9(t,r);return x9([h9(o,t,n,i),v9(void 0,e,XC.createIdentifier(o))])}case 80:return x9([h9(e.text,t,n,i)]);default:return un.assertNever(e,`Convert to ES module got invalid syntax form ${e.kind}`)}}(n,l.name.text,l.expression.arguments[0],i,a)}return x9([XC.createVariableStatement(void 0,XC.createVariableDeclarationList([t],s.flags))])}));if(c){let r;return n.replaceNodeWithNodes(e,t,O(l,(e=>e.newImports))),d(l,(e=>{e.useSitesToUnqualify&&rd(e.useSitesToUnqualify,r??(r=new Map))})),r}}function _9(e){return b9(void 0,e)}function u9(e){return b9([XC.createExportSpecifier(!1,void 0,"default")],e)}function d9(e,t){return t&&$(Oe(t.keys()),(t=>Gb(e,t)))?Qe(e)?BY(e,!0,n):jY(e,!0,n):e;function n(e){if(211===e.kind){const n=t.get(e);return t.delete(e),n}}}function p9(e,t){for(;t.original.has(e)||t.additional.has(e);)e=`_${e}`;return t.additional.add(e),e}function f9(e){const t=$e();return m9(e,(e=>t.add(e.text,e))),t}function m9(e,t){zN(e)&&function(e){const{parent:t}=e;switch(t.kind){case 211:return t.name!==e;case 208:case 276:return t.propertyName!==e;default:return!0}}(e)&&t(e),e.forEachChild((e=>m9(e,t)))}function g9(e,t,n,r){return XC.createFunctionDeclaration(K(t,MY(n.modifiers)),LY(n.asteriskToken),e,MY(n.typeParameters),MY(n.parameters),LY(n.type),XC.converters.convertToFunctionBlock(d9(n.body,r)))}function h9(e,t,n,r){return"default"===t?LQ(XC.createIdentifier(e),void 0,n,r):LQ(void 0,[y9(t,e)],n,r)}function y9(e,t){return XC.createImportSpecifier(!1,void 0!==e&&e!==t?XC.createIdentifier(e):void 0,XC.createIdentifier(t))}function v9(e,t,n){return XC.createVariableStatement(e,XC.createVariableDeclarationList([XC.createVariableDeclaration(t,void 0,void 0,n)],2))}function b9(e,t){return XC.createExportDeclaration(void 0,!1,e&&XC.createNamedExports(e),void 0===t?void 0:XC.createStringLiteral(t))}function x9(e,t){return{newImports:e,useSitesToUnqualify:t}}k7({errorCodes:E5,getCodeActions(e){P5=!0;const t=Tue.ChangeTracker.with(e,(t=>A5(t,e.sourceFile,e.span.start,e.program.getTypeChecker())));return P5?[v7(F5,t,la.Convert_to_async_function,F5,la.Convert_all_to_async_functions)]:[]},fixIds:[F5],getAllCodeActions:e=>D7(e,E5,((t,n)=>A5(t,n.file,n.start,e.program.getTypeChecker())))}),k7({errorCodes:[la.File_is_a_CommonJS_module_it_may_be_converted_to_an_ES_module.code],getCodeActions(e){const{sourceFile:t,program:n,preferences:r}=e;return[y7("convertToEsModule",Tue.ChangeTracker.with(e,(e=>{const i=function(e,t,n,r,i){const o={original:f9(e),additional:new Set},a=function(e,t,n){const r=new Map;return s9(e,(e=>{const{text:i}=e.name;r.has(i)||!Eh(e.name)&&!t.resolveName(i,e,111551,!0)||r.set(i,p9(`_${i}`,n))})),r}(e,t,o);!function(e,t,n){s9(e,((r,i)=>{if(i)return;const{text:o}=r.name;n.replaceNode(e,r,XC.createIdentifier(t.get(o)||o))}))}(e,a,n);let s,c=!1;for(const a of N(e.statements,wF)){const c=l9(e,a,n,t,o,r,i);c&&rd(c,s??(s=new Map))}for(const l of N(e.statements,(e=>!wF(e)))){const _=c9(e,l,t,n,o,r,a,s,i);c=c||_}return null==s||s.forEach(((t,r)=>{n.replaceNode(e,r,t)})),c}(t,n.getTypeChecker(),e,hk(n.getCompilerOptions()),BQ(t,r));if(i)for(const i of n.getSourceFiles())a9(i,t,n,e,BQ(i,r))})),la.Convert_to_ES_module)]}});var k9="correctQualifiedNameToIndexedAccessType",S9=[la.Cannot_access_0_1_because_0_is_a_type_but_not_a_namespace_Did_you_mean_to_retrieve_the_type_of_the_property_1_in_0_with_0_1.code];function T9(e,t){const n=_c(PX(e,t),nD);return un.assert(!!n,"Expected position to be owned by a qualified name."),zN(n.left)?n:void 0}function C9(e,t,n){const r=n.right.text,i=XC.createIndexedAccessTypeNode(XC.createTypeReferenceNode(n.left,void 0),XC.createLiteralTypeNode(XC.createStringLiteral(r)));e.replaceNode(t,n,i)}k7({errorCodes:S9,getCodeActions(e){const t=T9(e.sourceFile,e.span.start);if(!t)return;const n=Tue.ChangeTracker.with(e,(n=>C9(n,e.sourceFile,t))),r=`${t.left.text}["${t.right.text}"]`;return[v7(k9,n,[la.Rewrite_as_the_indexed_access_type_0,r],k9,la.Rewrite_all_as_indexed_access_types)]},fixIds:[k9],getAllCodeActions:e=>D7(e,S9,((e,t)=>{const n=T9(t.file,t.start);n&&C9(e,t.file,n)}))});var w9=[la.Re_exporting_a_type_when_0_is_enabled_requires_using_export_type.code],N9="convertToTypeOnlyExport";function D9(e,t){return tt(PX(t,e.start).parent,gE)}function F9(e,t,n){if(!t)return;const r=t.parent,i=r.parent,o=function(e,t){const n=e.parent;if(1===n.elements.length)return n.elements;const r=FZ(pQ(n),t.program.getSemanticDiagnostics(t.sourceFile,t.cancellationToken));return N(n.elements,(t=>{var n;return t===e||(null==(n=DZ(t,r))?void 0:n.code)===w9[0]}))}(t,n);if(o.length===r.elements.length)e.insertModifierBefore(n.sourceFile,156,r);else{const t=XC.updateExportDeclaration(i,i.modifiers,!1,XC.updateNamedExports(r,N(r.elements,(e=>!T(o,e)))),i.moduleSpecifier,void 0),a=XC.createExportDeclaration(void 0,!0,XC.createNamedExports(o),i.moduleSpecifier,void 0);e.replaceNode(n.sourceFile,i,t,{leadingTriviaOption:Tue.LeadingTriviaOption.IncludeAll,trailingTriviaOption:Tue.TrailingTriviaOption.Exclude}),e.insertNodeAfter(n.sourceFile,i,a)}}k7({errorCodes:w9,getCodeActions:function(e){const t=Tue.ChangeTracker.with(e,(t=>F9(t,D9(e.span,e.sourceFile),e)));if(t.length)return[v7(N9,t,la.Convert_to_type_only_export,N9,la.Convert_all_re_exported_types_to_type_only_exports)]},fixIds:[N9],getAllCodeActions:function(e){const t=new Set;return D7(e,w9,((n,r)=>{const i=D9(r,e.sourceFile);i&&vx(t,jB(i.parent.parent))&&F9(n,i,e)}))}});var E9=[la._0_is_a_type_and_must_be_imported_using_a_type_only_import_when_verbatimModuleSyntax_is_enabled.code,la._0_resolves_to_a_type_only_declaration_and_must_be_imported_using_a_type_only_import_when_verbatimModuleSyntax_is_enabled.code],P9="convertToTypeOnlyImport";function A9(e,t){const{parent:n}=PX(e,t);return dE(n)||nE(n)&&n.importClause?n:void 0}function I9(e,t,n){if(e.parent.parent.name)return!1;const r=e.parent.elements.filter((e=>!e.isTypeOnly));if(1===r.length)return!0;const i=n.getTypeChecker();for(const e of r)if(ice.Core.eachSymbolReferenceInFile(e.name,i,t,(e=>{const t=i.getSymbolAtLocation(e);return!!t&&i.symbolIsValue(t)||!yT(e)})))return!1;return!0}function O9(e,t,n){var r;if(dE(n))e.replaceNode(t,n,XC.updateImportSpecifier(n,!0,n.propertyName,n.name));else{const i=n.importClause;if(i.name&&i.namedBindings)e.replaceNodeWithNodes(t,n,[XC.createImportDeclaration(MY(n.modifiers,!0),XC.createImportClause(!0,LY(i.name,!0),void 0),LY(n.moduleSpecifier,!0),LY(n.attributes,!0)),XC.createImportDeclaration(MY(n.modifiers,!0),XC.createImportClause(!0,void 0,LY(i.namedBindings,!0)),LY(n.moduleSpecifier,!0),LY(n.attributes,!0))]);else{const o=275===(null==(r=i.namedBindings)?void 0:r.kind)?XC.updateNamedImports(i.namedBindings,A(i.namedBindings.elements,(e=>XC.updateImportSpecifier(e,!1,e.propertyName,e.name)))):i.namedBindings,a=XC.updateImportDeclaration(n,n.modifiers,XC.updateImportClause(i,!0,i.name,o),n.moduleSpecifier,n.attributes);e.replaceNode(t,n,a)}}}k7({errorCodes:E9,getCodeActions:function(e){var t;const n=A9(e.sourceFile,e.span.start);if(n){const r=Tue.ChangeTracker.with(e,(t=>O9(t,e.sourceFile,n))),i=276===n.kind&&nE(n.parent.parent.parent)&&I9(n,e.sourceFile,e.program)?Tue.ChangeTracker.with(e,(t=>O9(t,e.sourceFile,n.parent.parent.parent))):void 0,o=v7(P9,r,276===n.kind?[la.Use_type_0,(null==(t=n.propertyName)?void 0:t.text)??n.name.text]:la.Use_import_type,P9,la.Fix_all_with_type_only_imports);return $(i)?[y7(P9,i,la.Use_import_type),o]:[o]}},fixIds:[P9],getAllCodeActions:function(e){const t=new Set;return D7(e,E9,((n,r)=>{const i=A9(r.file,r.start);272!==(null==i?void 0:i.kind)||t.has(i)?276===(null==i?void 0:i.kind)&&nE(i.parent.parent.parent)&&!t.has(i.parent.parent.parent)&&I9(i,r.file,e.program)?(O9(n,r.file,i.parent.parent.parent),t.add(i.parent.parent.parent)):276===(null==i?void 0:i.kind)&&O9(n,r.file,i):(O9(n,r.file,i),t.add(i))}))}});var L9="convertTypedefToType",j9=[la.JSDoc_typedef_may_be_converted_to_TypeScript_type.code];function R9(e,t,n,r,i=!1){if(!CP(t))return;const o=function(e){var t;const{typeExpression:n}=e;if(!n)return;const r=null==(t=e.name)?void 0:t.getText();return r?322===n.kind?function(e,t){const n=B9(t);if($(n))return XC.createInterfaceDeclaration(void 0,e,void 0,void 0,n)}(r,n):309===n.kind?function(e,t){const n=LY(t.type);if(n)return XC.createTypeAliasDeclaration(void 0,XC.createIdentifier(e),void 0,n)}(r,n):void 0:void 0}(t);if(!o)return;const a=t.parent,{leftSibling:s,rightSibling:c}=function(e){const t=e.parent,n=t.getChildCount()-1,r=t.getChildren().findIndex((t=>t.getStart()===e.getStart()&&t.getEnd()===e.getEnd()));return{leftSibling:r>0?t.getChildAt(r-1):void 0,rightSibling:r0;e--)if(!/[*/\s]/.test(r.substring(e-1,e)))return t+e;return n}function B9(e){const t=e.jsDocPropertyTags;if($(t))return B(t,(e=>{var t;const n=function(e){return 80===e.name.kind?e.name.text:e.name.right.text}(e),r=null==(t=e.typeExpression)?void 0:t.type,i=e.isBracketed;let o;if(r&&oP(r)){const e=B9(r);o=XC.createTypeLiteralNode(e)}else r&&(o=LY(r));if(o&&n){const e=i?XC.createToken(58):void 0;return XC.createPropertySignature(void 0,n,e,o)}}))}function J9(e){return Nu(e)?O(e.jsDoc,(e=>{var t;return null==(t=e.tags)?void 0:t.filter((e=>CP(e)))})):[]}k7({fixIds:[L9],errorCodes:j9,getCodeActions(e){const t=kY(e.host,e.formatContext.options),n=PX(e.sourceFile,e.span.start);if(!n)return;const r=Tue.ChangeTracker.with(e,(r=>R9(r,n,e.sourceFile,t)));return r.length>0?[v7(L9,r,la.Convert_typedef_to_TypeScript_type,L9,la.Convert_all_typedef_to_TypeScript_types)]:void 0},getAllCodeActions:e=>D7(e,j9,((t,n)=>{const r=kY(e.host,e.formatContext.options),i=PX(n.file,n.start);i&&R9(t,i,n.file,r,!0)}))});var z9="convertLiteralTypeToMappedType",q9=[la._0_only_refers_to_a_type_but_is_being_used_as_a_value_here_Did_you_mean_to_use_1_in_0.code];function U9(e,t){const n=PX(e,t);if(zN(n)){const t=nt(n.parent.parent,sD),r=n.getText(e);return{container:nt(t.parent,SD),typeNode:t.type,constraint:r,name:"K"===r?"P":"K"}}}function V9(e,t,{container:n,typeNode:r,constraint:i,name:o}){e.replaceNode(t,n,XC.createMappedTypeNode(void 0,XC.createTypeParameterDeclaration(void 0,o,XC.createTypeReferenceNode(i)),void 0,void 0,r,void 0))}k7({errorCodes:q9,getCodeActions:function(e){const{sourceFile:t,span:n}=e,r=U9(t,n.start);if(!r)return;const{name:i,constraint:o}=r,a=Tue.ChangeTracker.with(e,(e=>V9(e,t,r)));return[v7(z9,a,[la.Convert_0_to_1_in_0,o,i],z9,la.Convert_all_type_literals_to_mapped_type)]},fixIds:[z9],getAllCodeActions:e=>D7(e,q9,((e,t)=>{const n=U9(t.file,t.start);n&&V9(e,t.file,n)}))});var W9=[la.Class_0_incorrectly_implements_interface_1.code,la.Class_0_incorrectly_implements_class_1_Did_you_mean_to_extend_1_and_inherit_its_members_as_a_subclass.code],$9="fixClassIncorrectlyImplementsInterface";function H9(e,t){return un.checkDefined(Gf(PX(e,t)),"There should be a containing class")}function K9(e){return!(e.valueDeclaration&&2&Mv(e.valueDeclaration))}function G9(e,t,n,r,i,o){const a=e.program.getTypeChecker(),s=function(e,t){const n=hh(e);if(!n)return Hu();const r=t.getTypeAtLocation(n);return Hu(t.getPropertiesOfType(r).filter(K9))}(r,a),c=a.getTypeAtLocation(t),l=a.getPropertiesOfType(c).filter(Zt(K9,(e=>!s.has(e.escapedName)))),_=a.getTypeAtLocation(r),u=b(r.members,(e=>dD(e)));_.getNumberIndexType()||p(c,1),_.getStringIndexType()||p(c,0);const d=Z9(n,e.program,o,e.host);function p(t,i){const o=a.getIndexInfoOfType(t,i);o&&f(n,r,a.indexInfoToIndexSignatureDeclaration(o,r,void 0,void 0,kie(e)))}function f(e,t,n){u?i.insertNodeAfter(e,u,n):i.insertMemberAtStart(e,t,n)}xie(r,l,n,e,o,d,(e=>f(n,r,e))),d.writeFixes(i)}k7({errorCodes:W9,getCodeActions(e){const{sourceFile:t,span:n}=e,r=H9(t,n.start);return B(vh(r),(n=>{const i=Tue.ChangeTracker.with(e,(i=>G9(e,n,t,r,i,e.preferences)));return 0===i.length?void 0:v7($9,i,[la.Implement_interface_0,n.getText(t)],$9,la.Implement_all_unimplemented_interfaces)}))},fixIds:[$9],getAllCodeActions(e){const t=new Set;return D7(e,W9,((n,r)=>{const i=H9(r.file,r.start);if(vx(t,jB(i)))for(const t of vh(i))G9(e,t,r.file,i,n,e.preferences)}))}});var X9="import",Q9="fixMissingImport",Y9=[la.Cannot_find_name_0.code,la.Cannot_find_name_0_Did_you_mean_1.code,la.Cannot_find_name_0_Did_you_mean_the_instance_member_this_0.code,la.Cannot_find_name_0_Did_you_mean_the_static_member_1_0.code,la.Cannot_find_namespace_0.code,la._0_refers_to_a_UMD_global_but_the_current_file_is_a_module_Consider_adding_an_import_instead.code,la._0_only_refers_to_a_type_but_is_being_used_as_a_value_here.code,la.No_value_exists_in_scope_for_the_shorthand_property_0_Either_declare_one_or_provide_an_initializer.code,la._0_cannot_be_used_as_a_value_because_it_was_imported_using_import_type.code,la.Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_jQuery_Try_npm_i_save_dev_types_Slashjquery.code,la.Cannot_find_name_0_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_1_or_later.code,la.Cannot_find_name_0_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_include_dom.code,la.Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_a_test_runner_Try_npm_i_save_dev_types_Slashjest_or_npm_i_save_dev_types_Slashmocha_and_then_add_jest_or_mocha_to_the_types_field_in_your_tsconfig.code,la.Cannot_find_name_0_Did_you_mean_to_write_this_in_an_async_function.code,la.Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_jQuery_Try_npm_i_save_dev_types_Slashjquery_and_then_add_jquery_to_the_types_field_in_your_tsconfig.code,la.Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_a_test_runner_Try_npm_i_save_dev_types_Slashjest_or_npm_i_save_dev_types_Slashmocha.code,la.Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_node_Try_npm_i_save_dev_types_Slashnode.code,la.Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_node_Try_npm_i_save_dev_types_Slashnode_and_then_add_node_to_the_types_field_in_your_tsconfig.code,la.Cannot_find_namespace_0_Did_you_mean_1.code,la.This_JSX_tag_requires_0_to_be_in_scope_but_it_could_not_be_found.code];function Z9(e,t,n,r,i){return eee(e,t,!1,n,r,i)}function eee(e,t,n,r,i,o){const a=t.getCompilerOptions(),s=[],c=[],l=new Map,_=new Set,u=new Set,d=new Map;return{addImportFromDiagnostic:function(e,t){const r=pee(t,e.code,e.start,n);r&&r.length&&p(ge(r))},addImportFromExportedSymbol:function(n,s,c){var l,_;const u=un.checkDefined(n.parent,"Expected exported symbol to have module symbol as parent"),d=OZ(n,hk(a)),f=t.getTypeChecker(),m=f.getMergedSymbol(ix(n,f)),g=aee(e,m,d,u,!1,t,i,r,o);if(!g)return void un.assert(null==(l=r.autoImportFileExcludePatterns)?void 0:l.length);const h=uee(e,t);let y=iee(e,g,t,void 0,!!s,h,i,r);if(y){const e=(null==(_=tt(null==c?void 0:c.name,zN))?void 0:_.text)??d;let t,r;c&&Ml(c)&&(3===y.kind||2===y.kind)&&1===y.addAsTypeOnly&&(t=2),n.name!==e&&(r=n.name),y={...y,...void 0===t?{}:{addAsTypeOnly:t},...void 0===r?{}:{propertyName:r}},p({fix:y,symbolName:e??d,errorIdentifierText:void 0})}},addImportForModuleSymbol:function(n,o,s){var c,l,_;const u=t.getTypeChecker(),d=u.getAliasedSymbol(n);un.assert(1536&d.flags,"Expected symbol to be a module");const f=AQ(t,i),m=BM.getModuleSpecifiersWithCacheInfo(d,u,a,e,f,r,void 0,!0),g=uee(e,t);let h=lee(o,0,void 0,n.flags,t.getTypeChecker(),a);h=1===h&&Ml(s)?2:1;const y=nE(s)?Sg(s)?1:2:dE(s)?0:rE(s)&&s.name?1:2,v=[{symbol:n,moduleSymbol:d,moduleFileName:null==(_=null==(l=null==(c=d.declarations)?void 0:c[0])?void 0:l.getSourceFile())?void 0:_.fileName,exportKind:4,targetFlags:n.flags,isFromPackageJson:!1}],b=iee(e,v,t,void 0,!!o,g,i,r);let x;x=b&&2!==y?{...b,addAsTypeOnly:h,importKind:y}:{kind:3,moduleSpecifierKind:void 0!==b?b.moduleSpecifierKind:m.kind,moduleSpecifier:void 0!==b?b.moduleSpecifier:ge(m.moduleSpecifiers),importKind:y,addAsTypeOnly:h,useRequire:g},p({fix:x,symbolName:n.name,errorIdentifierText:void 0})},writeFixes:function(t,n){var i,o;let p,f,m;p=void 0!==e.imports&&0===e.imports.length&&void 0!==n?n:BQ(e,r);for(const n of s)Cee(t,e,n);for(const n of c)wee(t,e,n,p);if(_.size){un.assert(Nm(e),"Cannot remove imports from a future source file");const n=new Set(B([..._],(e=>_c(e,nE)))),r=new Set(B([..._],(e=>_c(e,Lm)))),a=[...n].filter((e=>{var t,n,r;return!l.has(e.importClause)&&(!(null==(t=e.importClause)?void 0:t.name)||_.has(e.importClause))&&(!tt(null==(n=e.importClause)?void 0:n.namedBindings,lE)||_.has(e.importClause.namedBindings))&&(!tt(null==(r=e.importClause)?void 0:r.namedBindings,uE)||v(e.importClause.namedBindings.elements,(e=>_.has(e))))})),s=[...r].filter((e=>(206!==e.name.kind||!l.has(e.name))&&(206!==e.name.kind||v(e.name.elements,(e=>_.has(e)))))),c=[...n].filter((e=>{var t,n;return(null==(t=e.importClause)?void 0:t.namedBindings)&&-1===a.indexOf(e)&&!(null==(n=l.get(e.importClause))?void 0:n.namedImports)&&(274===e.importClause.namedBindings.kind||v(e.importClause.namedBindings.elements,(e=>_.has(e))))}));for(const n of[...a,...s])t.delete(e,n);for(const n of c)t.replaceNode(e,n.importClause,XC.updateImportClause(n.importClause,n.importClause.isTypeOnly,n.importClause.name,void 0));for(const n of _){const r=_c(n,nE);r&&-1===a.indexOf(r)&&-1===c.indexOf(r)?273===n.kind?t.delete(e,n.name):(un.assert(276===n.kind,"NamespaceImport should have been handled earlier"),(null==(i=l.get(r.importClause))?void 0:i.namedImports)?(f??(f=new Set)).add(n):t.delete(e,n)):208===n.kind?(null==(o=l.get(n.parent))?void 0:o.namedImports)?(f??(f=new Set)).add(n):t.delete(e,n):271===n.kind&&t.delete(e,n)}}l.forEach((({importClauseOrBindingPattern:n,defaultImport:i,namedImports:o})=>{Tee(t,e,n,i,Oe(o.entries(),(([e,{addAsTypeOnly:t,propertyName:n}])=>({addAsTypeOnly:t,propertyName:n,name:e}))),f,r)})),d.forEach((({useRequire:e,defaultImport:t,namedImports:n,namespaceLikeImport:i},o)=>{const s=(e?Pee:Eee)(o.slice(2),p,t,n&&Oe(n.entries(),(([e,[t,n]])=>({addAsTypeOnly:t,propertyName:n,name:e}))),i,a,r);m=oe(m,s)})),m=oe(m,function(){if(!u.size)return;const e=new Set(B([...u],(e=>_c(e,nE)))),t=new Set(B([...u],(e=>_c(e,Bm))));return[...B([...u],(e=>271===e.kind?LY(e,!0):void 0)),...[...e].map((e=>{var t;return u.has(e)?LY(e,!0):LY(XC.updateImportDeclaration(e,e.modifiers,e.importClause&&XC.updateImportClause(e.importClause,e.importClause.isTypeOnly,u.has(e.importClause)?e.importClause.name:void 0,u.has(e.importClause.namedBindings)?e.importClause.namedBindings:(null==(t=tt(e.importClause.namedBindings,uE))?void 0:t.elements.some((e=>u.has(e))))?XC.updateNamedImports(e.importClause.namedBindings,e.importClause.namedBindings.elements.filter((e=>u.has(e)))):void 0),e.moduleSpecifier,e.attributes),!0)})),...[...t].map((e=>u.has(e)?LY(e,!0):LY(XC.updateVariableStatement(e,e.modifiers,XC.updateVariableDeclarationList(e.declarationList,B(e.declarationList.declarations,(e=>u.has(e)?e:XC.updateVariableDeclaration(e,206===e.name.kind?XC.updateObjectBindingPattern(e.name,e.name.elements.filter((e=>u.has(e)))):e.name,e.exclamationToken,e.type,e.initializer))))),!0)))]}()),m&&GQ(t,e,m,!0,r)},hasFixes:function(){return s.length>0||c.length>0||l.size>0||d.size>0||u.size>0||_.size>0},addImportForUnresolvedIdentifier:function(e,t,n){const r=function(e,t,n){const r=vee(e,t,n),i=TZ(e.sourceFile,e.preferences,e.host);return r&&fee(r,e.sourceFile,e.program,i,e.host,e.preferences)}(e,t,n);r&&r.length&&p(ge(r))},addImportForNonExistentExport:function(n,o,s,c,l){const _=t.getSourceFile(o),u=uee(e,t);if(_&&_.symbol){const{fixes:a}=cee([{exportKind:s,isFromPackageJson:!1,moduleFileName:o,moduleSymbol:_.symbol,targetFlags:c}],void 0,l,u,t,e,i,r);a.length&&p({fix:a[0],symbolName:n,errorIdentifierText:n})}else{const _=XZ(o,99,t,i);p({fix:{kind:3,moduleSpecifierKind:"relative",moduleSpecifier:BM.getLocalModuleSpecifierBetweenFileNames(e,o,a,AQ(t,i),r),importKind:yee(_,s,t),addAsTypeOnly:lee(l,0,void 0,c,t.getTypeChecker(),a),useRequire:u},symbolName:n,errorIdentifierText:n})}},removeExistingImport:function(e){273===e.kind&&un.assertIsDefined(e.name,"ImportClause should have a name if it's being removed"),_.add(e)},addVerbatimImport:function(e){u.add(e)}};function p(e){var t,n,r;const{fix:i,symbolName:o}=e;switch(i.kind){case 0:s.push(i);break;case 1:c.push(i);break;case 2:{const{importClauseOrBindingPattern:e,importKind:r,addAsTypeOnly:a,propertyName:s}=i;let c=l.get(e);if(c||l.set(e,c={importClauseOrBindingPattern:e,defaultImport:void 0,namedImports:new Map}),0===r){const e=null==(t=null==c?void 0:c.namedImports.get(o))?void 0:t.addAsTypeOnly;c.namedImports.set(o,{addAsTypeOnly:_(e,a),propertyName:s})}else un.assert(void 0===c.defaultImport||c.defaultImport.name===o,"(Add to Existing) Default import should be missing or match symbolName"),c.defaultImport={name:o,addAsTypeOnly:_(null==(n=c.defaultImport)?void 0:n.addAsTypeOnly,a)};break}case 3:{const{moduleSpecifier:e,importKind:t,useRequire:n,addAsTypeOnly:s,propertyName:c}=i,l=function(e,t,n,r){const i=u(e,!0),o=u(e,!1),a=d.get(i),s=d.get(o),c={defaultImport:void 0,namedImports:void 0,namespaceLikeImport:void 0,useRequire:n};return 1===t&&2===r?a||(d.set(i,c),c):1===r&&(a||s)?a||s:s||(d.set(o,c),c)}(e,t,n,s);switch(un.assert(l.useRequire===n,"(Add new) Tried to add an `import` and a `require` for the same module"),t){case 1:un.assert(void 0===l.defaultImport||l.defaultImport.name===o,"(Add new) Default import should be missing or match symbolName"),l.defaultImport={name:o,addAsTypeOnly:_(null==(r=l.defaultImport)?void 0:r.addAsTypeOnly,s)};break;case 0:const e=(l.namedImports||(l.namedImports=new Map)).get(o);l.namedImports.set(o,[_(e,s),c]);break;case 3:if(a.verbatimModuleSyntax){const e=(l.namedImports||(l.namedImports=new Map)).get(o);l.namedImports.set(o,[_(e,s),c])}else un.assert(void 0===l.namespaceLikeImport||l.namespaceLikeImport.name===o,"Namespacelike import shoudl be missing or match symbolName"),l.namespaceLikeImport={importKind:t,name:o,addAsTypeOnly:s};break;case 2:un.assert(void 0===l.namespaceLikeImport||l.namespaceLikeImport.name===o,"Namespacelike import shoudl be missing or match symbolName"),l.namespaceLikeImport={importKind:t,name:o,addAsTypeOnly:s}}break}case 4:break;default:un.assertNever(i,`fix wasn't never - got kind ${i.kind}`)}function _(e,t){return Math.max(e??0,t)}function u(e,t){return`${t?1:0}|${e}`}}}function tee(e,t,n,r){const i=TZ(e,r,n),o=_ee(e,t);return{getModuleSpecifierForBestExportInfo:function(a,s,c,l){const{fixes:_,computedWithoutCacheCount:u}=cee(a,s,c,!1,t,e,n,r,o,l),d=mee(_,e,t,i,n,r);return d&&{...d,computedWithoutCacheCount:u}}}}function nee(e,t,n,r,i,o,a,s,c,l,_,u){let d;n?(d=s0(r,a,s,_,u).get(r.path,n),un.assertIsDefined(d,"Some exportInfo should match the specified exportMapKey")):(d=bo(Dy(t.name))?[see(e,i,t,s,a)]:aee(r,e,i,t,o,s,a,_,u),un.assertIsDefined(d,"Some exportInfo should match the specified symbol / moduleSymbol"));const p=uee(r,s),f=yT(PX(r,l)),m=un.checkDefined(iee(r,d,s,l,f,p,a,_));return{moduleSpecifier:m.moduleSpecifier,codeAction:oee(kee({host:a,formatContext:c,preferences:_},r,i,m,!1,s,_))}}function ree(e,t,n,r,i,o){const a=n.getCompilerOptions(),s=xe(xee(e,n.getTypeChecker(),t,a)),c=bee(e,t,s,n),l=s!==t.text;return c&&oee(kee({host:r,formatContext:i,preferences:o},e,s,c,l,n,o))}function iee(e,t,n,r,i,o,a,s){const c=TZ(e,s,a);return mee(cee(t,r,i,o,n,e,a,s).fixes,e,n,c,a,s)}function oee({description:e,changes:t,commands:n}){return{description:e,changes:t,commands:n}}function aee(e,t,n,r,i,o,a,s,c){const l=dee(o,a),_=s.autoImportFileExcludePatterns&&a0(a,s),u=o.getTypeChecker().getMergedSymbol(r),d=_&&u.declarations&&Wu(u,307),p=d&&_(d);return s0(e,a,o,s,c).search(e.path,i,(e=>e===n),(e=>{const n=l(e[0].isFromPackageJson);if(n.getMergedSymbol(ix(e[0].symbol,n))===t&&(p||e.some((e=>n.getMergedSymbol(e.moduleSymbol)===r||e.symbol.parent===r))))return e}))}function see(e,t,n,r,i){var o,a;const s=l(r.getTypeChecker(),!1);if(s)return s;const c=null==(a=null==(o=i.getPackageJsonAutoImportProvider)?void 0:o.call(i))?void 0:a.getTypeChecker();return un.checkDefined(c&&l(c,!0),"Could not find symbol in specified module for code actions");function l(r,i){const o=c0(n,r);if(o&&ix(o.symbol,r)===e)return{symbol:o.symbol,moduleSymbol:n,moduleFileName:void 0,exportKind:o.exportKind,targetFlags:ix(e,r).flags,isFromPackageJson:i};const a=r.tryGetMemberInModuleExportsAndProperties(t,n);return a&&ix(a,r)===e?{symbol:a,moduleSymbol:n,moduleFileName:void 0,exportKind:0,targetFlags:ix(e,r).flags,isFromPackageJson:i}:void 0}}function cee(e,t,n,r,i,o,a,s,c=(Nm(o)?_ee(o,i):void 0),_){const u=i.getTypeChecker(),d=c?O(e,c.getImportsForExportInfo):l,p=void 0!==t&&function(e,t){return f(e,(({declaration:e,importKind:n})=>{var r;if(0!==n)return;const i=function(e){var t,n,r;switch(e.kind){case 260:return null==(t=tt(e.name,zN))?void 0:t.text;case 271:return e.name.text;case 351:case 272:return null==(r=tt(null==(n=e.importClause)?void 0:n.namedBindings,lE))?void 0:r.name.text;default:return un.assertNever(e)}}(e),o=i&&(null==(r=hg(e))?void 0:r.text);return o?{kind:0,namespacePrefix:i,usagePosition:t,moduleSpecifierKind:void 0,moduleSpecifier:o}:void 0}))}(d,t),m=function(e,t,n,r){let i;for(const t of e){const e=o(t);if(!e)continue;const n=Ml(e.importClauseOrBindingPattern);if(4!==e.addAsTypeOnly&&n||4===e.addAsTypeOnly&&!n)return e;i??(i=e)}return i;function o({declaration:e,importKind:i,symbol:o,targetFlags:a}){if(3===i||2===i||271===e.kind)return;if(260===e.kind)return 0!==i&&1!==i||206!==e.name.kind?void 0:{kind:2,importClauseOrBindingPattern:e.name,importKind:i,moduleSpecifierKind:void 0,moduleSpecifier:e.initializer.arguments[0].text,addAsTypeOnly:4};const{importClause:s}=e;if(!s||!Lu(e.moduleSpecifier))return;const{name:c,namedBindings:l}=s;if(s.isTypeOnly&&(0!==i||!l))return;const _=lee(t,0,o,a,n,r);return 1===i&&(c||2===_&&l)||0===i&&274===(null==l?void 0:l.kind)?void 0:{kind:2,importClauseOrBindingPattern:s,importKind:i,moduleSpecifierKind:void 0,moduleSpecifier:e.moduleSpecifier.text,addAsTypeOnly:_}}}(d,n,u,i.getCompilerOptions());if(m)return{computedWithoutCacheCount:0,fixes:[...p?[p]:l,m]};const{fixes:g,computedWithoutCacheCount:h=0}=function(e,t,n,r,i,o,a,s,c,l){const _=f(t,(e=>function({declaration:e,importKind:t,symbol:n,targetFlags:r},i,o,a,s){var c;const l=null==(c=hg(e))?void 0:c.text;if(l)return{kind:3,moduleSpecifierKind:void 0,moduleSpecifier:l,importKind:t,addAsTypeOnly:o?4:lee(i,0,n,r,a,s),useRequire:o}}(e,o,a,n.getTypeChecker(),n.getCompilerOptions())));return _?{fixes:[_]}:function(e,t,n,r,i,o,a,s,c){const l=AS(t.fileName),_=e.getCompilerOptions(),u=AQ(e,a),d=dee(e,a),p=OQ(vk(_)),f=c?e=>BM.tryGetModuleSpecifiersFromCache(e.moduleSymbol,t,u,s):(e,n)=>BM.getModuleSpecifiersWithCacheInfo(e.moduleSymbol,n,_,t,u,s,void 0,!0);let m=0;const g=O(o,((o,a)=>{const s=d(o.isFromPackageJson),{computedWithoutCache:c,moduleSpecifiers:u,kind:g}=f(o,s)??{},h=!!(111551&o.targetFlags),y=lee(r,0,o.symbol,o.targetFlags,s,_);return m+=c?1:0,B(u,(r=>{if(p&&AR(r))return;if(!h&&l&&void 0!==n)return{kind:1,moduleSpecifierKind:g,moduleSpecifier:r,usagePosition:n,exportInfo:o,isReExport:a>0};const c=yee(t,o.exportKind,e);let u;if(void 0!==n&&3===c&&0===o.exportKind){const e=s.resolveExternalModuleSymbol(o.moduleSymbol);let t;e!==o.moduleSymbol&&(t=_0(e,s,hk(_),st)),t||(t=jZ(o.moduleSymbol,hk(_),!1)),u={namespacePrefix:t,usagePosition:n}}return{kind:3,moduleSpecifierKind:g,moduleSpecifier:r,importKind:c,useRequire:i,addAsTypeOnly:y,exportInfo:o,isReExport:a>0,qualification:u}}))}));return{computedWithoutCacheCount:m,fixes:g}}(n,r,i,o,a,e,s,c,l)}(e,d,i,o,t,n,r,a,s,_);return{computedWithoutCacheCount:h,fixes:[...p?[p]:l,...g]}}function lee(e,t,n,r,i,o){return e?!n||!o.verbatimModuleSyntax||111551&r&&!i.getTypeOnlyAliasDeclaration(n)?1:2:4}function _ee(e,t){const n=t.getTypeChecker();let r;for(const t of e.imports){const e=yg(t);if(Lm(e.parent)){const i=n.resolveExternalModuleName(t);i&&(r||(r=$e())).add(RB(i),e.parent)}else if(272===e.kind||271===e.kind||351===e.kind){const i=n.getSymbolAtLocation(t);i&&(r||(r=$e())).add(RB(i),e)}}return{getImportsForExportInfo:({moduleSymbol:n,exportKind:i,targetFlags:o,symbol:a})=>{const s=null==r?void 0:r.get(RB(n));if(!s)return l;if(Dm(e)&&!(111551&o)&&!v(s,PP))return l;const c=yee(e,i,t);return s.map((e=>({declaration:e,importKind:c,symbol:a,targetFlags:o})))}}}function uee(e,t){if(!AS(e.fileName))return!1;if(e.commonJsModuleIndicator&&!e.externalModuleIndicator)return!0;if(e.externalModuleIndicator&&!e.commonJsModuleIndicator)return!1;const n=t.getCompilerOptions();if(n.configFile)return yk(n)<5;if(1===Oee(e,t))return!0;if(99===Oee(e,t))return!1;for(const n of t.getSourceFiles())if(n!==e&&Dm(n)&&!t.isSourceFileFromExternalLibrary(n)){if(n.commonJsModuleIndicator&&!n.externalModuleIndicator)return!0;if(n.externalModuleIndicator&&!n.commonJsModuleIndicator)return!1}return!0}function dee(e,t){return pt((n=>n?t.getPackageJsonAutoImportProvider().getTypeChecker():e.getTypeChecker()))}function pee(e,t,n,r){const i=PX(e.sourceFile,n);let o;if(t===la._0_refers_to_a_UMD_global_but_the_current_file_is_a_module_Consider_adding_an_import_instead.code)o=function({sourceFile:e,program:t,host:n,preferences:r},i){const o=t.getTypeChecker(),a=function(e,t){const n=zN(e)?t.getSymbolAtLocation(e):void 0;if(gx(n))return n;const{parent:r}=e;if(vu(r)&&r.tagName===e||NE(r)){const n=t.resolveName(t.getJsxNamespace(r),vu(r)?e:r,111551,!1);if(gx(n))return n}}(i,o);if(!a)return;const s=o.getAliasedSymbol(a),c=a.name;return cee([{symbol:a,moduleSymbol:s,moduleFileName:void 0,exportKind:3,targetFlags:s.flags,isFromPackageJson:!1}],void 0,!1,uee(e,t),t,e,n,r).fixes.map((e=>{var t;return{fix:e,symbolName:c,errorIdentifierText:null==(t=tt(i,zN))?void 0:t.text}}))}(e,i);else{if(!zN(i))return;if(t===la._0_cannot_be_used_as_a_value_because_it_was_imported_using_import_type.code){const t=xe(xee(e.sourceFile,e.program.getTypeChecker(),i,e.program.getCompilerOptions())),n=bee(e.sourceFile,i,t,e.program);return n&&[{fix:n,symbolName:t,errorIdentifierText:i.text}]}o=vee(e,i,r)}const a=TZ(e.sourceFile,e.preferences,e.host);return o&&fee(o,e.sourceFile,e.program,a,e.host,e.preferences)}function fee(e,t,n,r,i,o){const a=e=>qo(e,i.getCurrentDirectory(),jy(i));return _e(e,((e,i)=>Ot(!!e.isJsxNamespaceFix,!!i.isJsxNamespaceFix)||vt(e.fix.kind,i.fix.kind)||gee(e.fix,i.fix,t,n,o,r.allowsImportingSpecifier,a)))}function mee(e,t,n,r,i,o){if($(e))return 0===e[0].kind||2===e[0].kind?e[0]:e.reduce(((e,a)=>-1===gee(a,e,t,n,o,r.allowsImportingSpecifier,(e=>qo(e,i.getCurrentDirectory(),jy(i))))?a:e))}function gee(e,t,n,r,i,o,a){return 0!==e.kind&&0!==t.kind?Ot("node_modules"!==t.moduleSpecifierKind||o(t.moduleSpecifier),"node_modules"!==e.moduleSpecifierKind||o(e.moduleSpecifier))||function(e,t,n){return"non-relative"===n.importModuleSpecifierPreference||"project-relative"===n.importModuleSpecifierPreference?Ot("relative"===e.moduleSpecifierKind,"relative"===t.moduleSpecifierKind):0}(e,t,i)||function(e,t,n,r){return Gt(e,"node:")&&!Gt(t,"node:")?zZ(n,r)?-1:1:Gt(t,"node:")&&!Gt(e,"node:")?zZ(n,r)?1:-1:0}(e.moduleSpecifier,t.moduleSpecifier,n,r)||Ot(hee(e,n.path,a),hee(t,n.path,a))||BS(e.moduleSpecifier,t.moduleSpecifier):0}function hee(e,t,n){var r;return!(!e.isReExport||!(null==(r=e.exportInfo)?void 0:r.moduleFileName)||"index"!==Fo(e.exportInfo.moduleFileName,[".js",".jsx",".d.ts",".ts",".tsx"],!0))&&Gt(t,n(Do(e.exportInfo.moduleFileName)))}function yee(e,t,n,r){if(n.getCompilerOptions().verbatimModuleSyntax&&1===function(e,t){return Nm(e)?t.getEmitModuleFormatOfFile(e):kV(e,t.getCompilerOptions())}(e,n))return 3;switch(t){case 0:return 0;case 1:return 1;case 2:return function(e,t,n){const r=Sk(t),i=AS(e.fileName);if(!i&&yk(t)>=5)return r?1:2;if(i)return e.externalModuleIndicator||n?r?1:2:3;for(const t of e.statements??l)if(tE(t)&&!Cd(t.moduleReference))return 3;return r?1:3}(e,n.getCompilerOptions(),!!r);case 3:return function(e,t,n){if(Sk(t.getCompilerOptions()))return 1;const r=yk(t.getCompilerOptions());switch(r){case 2:case 1:case 3:return AS(e.fileName)&&(e.externalModuleIndicator||n)?2:3;case 4:case 5:case 6:case 7:case 99:case 0:case 200:return 2;case 100:case 199:return 99===Oee(e,t)?2:3;default:return un.assertNever(r,`Unexpected moduleKind ${r}`)}}(e,n,!!r);case 4:return 2;default:return un.assertNever(t)}}function vee({sourceFile:e,program:t,cancellationToken:n,host:r,preferences:i},o,a){const s=t.getTypeChecker(),c=t.getCompilerOptions();return O(xee(e,s,o,c),(s=>{if("default"===s)return;const c=yT(o),l=uee(e,t),_=function(e,t,n,r,i,o,a,s,c){var l;const _=$e(),u=TZ(i,c,s),d=null==(l=s.getModuleSpecifierCache)?void 0:l.call(s),p=pt((e=>AQ(e?s.getPackageJsonAutoImportProvider():o,s)));function f(e,t,n,r,o,a){const s=p(a);if(e0(o,i,t,e,c,u,s,d)){const i=o.getTypeChecker();_.add(AY(n,i).toString(),{symbol:n,moduleSymbol:e,moduleFileName:null==t?void 0:t.fileName,exportKind:r,targetFlags:ix(n,i).flags,isFromPackageJson:a})}}return n0(o,s,c,a,((i,o,a,s)=>{const c=a.getTypeChecker();r.throwIfCancellationRequested();const l=a.getCompilerOptions(),_=c0(i,c);_&&Iee(c.getSymbolFlags(_.symbol),n)&&_0(_.symbol,c,hk(l),((n,r)=>(t?r??n:n)===e))&&f(i,o,_.symbol,_.exportKind,a,s);const u=c.tryGetMemberInModuleExportsAndProperties(e,i);u&&Iee(c.getSymbolFlags(u),n)&&f(i,o,u,0,a,s)})),_}(s,ym(o),FG(o),n,e,t,a,r,i);return Oe(j(_.values(),(n=>cee(n,o.getStart(e),c,l,t,e,r,i).fixes)),(e=>({fix:e,symbolName:s,errorIdentifierText:o.text,isJsxNamespaceFix:s!==o.text})))}))}function bee(e,t,n,r){const i=r.getTypeChecker(),o=i.resolveName(n,t,111551,!0);if(!o)return;const a=i.getTypeOnlyAliasDeclaration(o);return a&&hd(a)===e?{kind:4,typeOnlyAliasDeclaration:a}:void 0}function xee(e,t,n,r){const i=n.parent;if((vu(i)||CE(i))&&i.tagName===n&&WZ(r.jsx)){const r=t.getJsxNamespace(e);if(function(e,t,n){if(Fy(t.text))return!0;const r=n.resolveName(e,t,111551,!0);return!r||$(r.declarations,Jl)&&!(111551&r.flags)}(r,n,t))return Fy(n.text)||t.resolveName(n.text,n,111551,!1)?[r]:[n.text,r]}return[n.text]}function kee(e,t,n,r,i,o,a){let s;const c=Tue.ChangeTracker.with(e,(e=>{s=function(e,t,n,r,i,o,a){const s=BQ(t,a);switch(r.kind){case 0:return Cee(e,t,r),[la.Change_0_to_1,n,`${r.namespacePrefix}.${n}`];case 1:return wee(e,t,r,s),[la.Change_0_to_1,n,Nee(r.moduleSpecifier,s)+n];case 2:{const{importClauseOrBindingPattern:o,importKind:s,addAsTypeOnly:c,moduleSpecifier:_}=r;Tee(e,t,o,1===s?{name:n,addAsTypeOnly:c}:void 0,0===s?[{name:n,addAsTypeOnly:c}]:l,void 0,a);const u=Dy(_);return i?[la.Import_0_from_1,n,u]:[la.Update_import_from_0,u]}case 3:{const{importKind:c,moduleSpecifier:l,addAsTypeOnly:_,useRequire:u,qualification:d}=r;return GQ(e,t,(u?Pee:Eee)(l,s,1===c?{name:n,addAsTypeOnly:_}:void 0,0===c?[{name:n,addAsTypeOnly:_}]:void 0,2===c||3===c?{importKind:c,name:(null==d?void 0:d.namespacePrefix)||n,addAsTypeOnly:_}:void 0,o.getCompilerOptions(),a),!0,a),d&&Cee(e,t,d),i?[la.Import_0_from_1,n,l]:[la.Add_import_from_0,l]}case 4:{const{typeOnlyAliasDeclaration:i}=r,s=function(e,t,n,r,i){const o=n.getCompilerOptions(),a=o.verbatimModuleSyntax;switch(t.kind){case 276:if(t.isTypeOnly){if(t.parent.elements.length>1){const n=XC.updateImportSpecifier(t,!1,t.propertyName,t.name),{specifierComparer:o}=Jle.getNamedImportSpecifierComparerWithDetection(t.parent.parent.parent,i,r),a=Jle.getImportSpecifierInsertionIndex(t.parent.elements,n,o);if(a!==t.parent.elements.indexOf(t))return e.delete(r,t),e.insertImportSpecifierAtIndex(r,n,t.parent,a),t}return e.deleteRange(r,{pos:Bd(t.getFirstToken()),end:Bd(t.propertyName??t.name)}),t}return un.assert(t.parent.parent.isTypeOnly),s(t.parent.parent),t.parent.parent;case 273:return s(t),t;case 274:return s(t.parent),t.parent;case 271:return e.deleteRange(r,t.getChildAt(1)),t;default:un.failBadSyntaxKind(t)}function s(s){var c;if(e.delete(r,XQ(s,r)),!o.allowImportingTsExtensions){const t=hg(s.parent),i=t&&(null==(c=n.getResolvedModuleFromModuleSpecifier(t,r))?void 0:c.resolvedModule);if(null==i?void 0:i.resolvedUsingTsExtension){const n=$o(t.text,Oq(t.text,o));e.replaceNode(r,t,XC.createStringLiteral(n))}}if(a){const n=tt(s.namedBindings,uE);if(n&&n.elements.length>1){!1!==Jle.getNamedImportSpecifierComparerWithDetection(s.parent,i,r).isSorted&&276===t.kind&&0!==n.elements.indexOf(t)&&(e.delete(r,t),e.insertImportSpecifierAtIndex(r,t,n,0));for(const i of n.elements)i===t||i.isTypeOnly||e.insertModifierBefore(r,156,i)}}}}(e,i,o,t,a);return 276===s.kind?[la.Remove_type_from_import_of_0_from_1,n,See(s.parent.parent)]:[la.Remove_type_from_import_declaration_from_0,See(s)]}default:return un.assertNever(r,`Unexpected fix kind ${r.kind}`)}}(e,t,n,r,i,o,a)}));return v7(X9,c,s,Q9,la.Add_all_missing_imports)}function See(e){var t,n;return 271===e.kind?(null==(n=tt(null==(t=tt(e.moduleReference,xE))?void 0:t.expression,Lu))?void 0:n.text)||e.moduleReference.getText():nt(e.parent.moduleSpecifier,TN).text}function Tee(e,t,n,r,i,o,a){var s;if(206===n.kind){if(o&&n.elements.some((e=>o.has(e))))return void e.replaceNode(t,n,XC.createObjectBindingPattern([...n.elements.filter((e=>!o.has(e))),...r?[XC.createBindingElement(void 0,"default",r.name)]:l,...i.map((e=>XC.createBindingElement(void 0,e.propertyName,e.name)))]));r&&u(n,r.name,"default");for(const e of i)u(n,e.name,e.propertyName);return}const c=n.isTypeOnly&&$([r,...i],(e=>4===(null==e?void 0:e.addAsTypeOnly))),_=n.namedBindings&&(null==(s=tt(n.namedBindings,uE))?void 0:s.elements);if(r&&(un.assert(!n.name,"Cannot add a default import to an import clause that already has one"),e.insertNodeAt(t,n.getStart(t),XC.createIdentifier(r.name),{suffix:", "})),i.length){const{specifierComparer:r,isSorted:s}=Jle.getNamedImportSpecifierComparerWithDetection(n.parent,a,t),l=_e(i.map((e=>XC.createImportSpecifier((!n.isTypeOnly||c)&&Fee(e,a),void 0===e.propertyName?void 0:XC.createIdentifier(e.propertyName),XC.createIdentifier(e.name)))),r);if(o)e.replaceNode(t,n.namedBindings,XC.updateNamedImports(n.namedBindings,_e([..._.filter((e=>!o.has(e))),...l],r)));else if((null==_?void 0:_.length)&&!1!==s){const i=c&&_?XC.updateNamedImports(n.namedBindings,A(_,(e=>XC.updateImportSpecifier(e,!0,e.propertyName,e.name)))).elements:_;for(const o of l){const a=Jle.getImportSpecifierInsertionIndex(i,o,r);e.insertImportSpecifierAtIndex(t,o,n.namedBindings,a)}}else if(null==_?void 0:_.length)for(const n of l)e.insertNodeInListAfter(t,ve(_),n,_);else if(l.length){const r=XC.createNamedImports(l);n.namedBindings?e.replaceNode(t,n.namedBindings,r):e.insertNodeAfter(t,un.checkDefined(n.name,"Import clause must have either named imports or a default import"),r)}}if(c&&(e.delete(t,XQ(n,t)),_))for(const n of _)e.insertModifierBefore(t,156,n);function u(n,r,i){const o=XC.createBindingElement(void 0,i,r);n.elements.length?e.insertNodeInListAfter(t,ve(n.elements),o):e.replaceNode(t,n,XC.createObjectBindingPattern([o]))}}function Cee(e,t,{namespacePrefix:n,usagePosition:r}){e.insertText(t,r,n+".")}function wee(e,t,{moduleSpecifier:n,usagePosition:r},i){e.insertText(t,r,Nee(n,i))}function Nee(e,t){const n=JQ(t);return`import(${n}${e}${n}).`}function Dee({addAsTypeOnly:e}){return 2===e}function Fee(e,t){return Dee(e)||!!t.preferTypeOnlyAutoImports&&4!==e.addAsTypeOnly}function Eee(e,t,n,r,i,o,a){const s=jQ(e,t);let c;if(void 0!==n||(null==r?void 0:r.length)){const i=(!n||Dee(n))&&v(r,Dee)||(o.verbatimModuleSyntax||a.preferTypeOnlyAutoImports)&&4!==(null==n?void 0:n.addAsTypeOnly)&&!$(r,(e=>4===e.addAsTypeOnly));c=oe(c,LQ(n&&XC.createIdentifier(n.name),null==r?void 0:r.map((e=>XC.createImportSpecifier(!i&&Fee(e,a),void 0===e.propertyName?void 0:XC.createIdentifier(e.propertyName),XC.createIdentifier(e.name)))),e,t,i))}return i&&(c=oe(c,3===i.importKind?XC.createImportEqualsDeclaration(void 0,Fee(i,a),XC.createIdentifier(i.name),XC.createExternalModuleReference(s)):XC.createImportDeclaration(void 0,XC.createImportClause(Fee(i,a),void 0,XC.createNamespaceImport(XC.createIdentifier(i.name))),s,void 0))),un.checkDefined(c)}function Pee(e,t,n,r,i){const o=jQ(e,t);let a;if(n||(null==r?void 0:r.length)){const e=(null==r?void 0:r.map((({name:e,propertyName:t})=>XC.createBindingElement(void 0,t,e))))||[];n&&e.unshift(XC.createBindingElement(void 0,"default",n.name)),a=oe(a,Aee(XC.createObjectBindingPattern(e),o))}return i&&(a=oe(a,Aee(i.name,o))),un.checkDefined(a)}function Aee(e,t){return XC.createVariableStatement(void 0,XC.createVariableDeclarationList([XC.createVariableDeclaration("string"==typeof e?XC.createIdentifier(e):e,void 0,void 0,XC.createCallExpression(XC.createIdentifier("require"),void 0,[t]))],2))}function Iee(e,t){return!!(7===t||(1&t?111551&e:2&t?788968&e:4&t&&1920&e))}function Oee(e,t){return Nm(e)?t.getImpliedNodeFormatForEmit(e):SV(e,t.getCompilerOptions())}k7({errorCodes:Y9,getCodeActions(e){const{errorCode:t,preferences:n,sourceFile:r,span:i,program:o}=e,a=pee(e,t,i.start,!0);if(a)return a.map((({fix:t,symbolName:i,errorIdentifierText:a})=>kee(e,r,i,t,i!==a,o,n)))},fixIds:[Q9],getAllCodeActions:e=>{const{sourceFile:t,program:n,preferences:r,host:i,cancellationToken:o}=e,a=eee(t,n,!0,r,i,o);return F7(e,Y9,(t=>a.addImportFromDiagnostic(t,e))),w7(Tue.ChangeTracker.with(e,a.writeFixes))}});var Lee="addMissingConstraint",jee=[la.Type_0_is_not_comparable_to_type_1.code,la.Type_0_is_not_assignable_to_type_1_Two_different_types_with_this_name_exist_but_they_are_unrelated.code,la.Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_types_of_the_target_s_properties.code,la.Type_0_is_not_assignable_to_type_1.code,la.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_types_of_the_target_s_properties.code,la.Property_0_is_incompatible_with_index_signature.code,la.Property_0_in_type_1_is_not_assignable_to_type_2.code,la.Type_0_does_not_satisfy_the_constraint_1.code];function Ree(e,t,n){const r=b(e.getSemanticDiagnostics(t),(e=>e.start===n.start&&e.length===n.length));if(void 0===r||void 0===r.relatedInformation)return;const i=b(r.relatedInformation,(e=>e.code===la.This_type_parameter_might_need_an_extends_0_constraint.code));if(void 0===i||void 0===i.file||void 0===i.start||void 0===i.length)return;let o=Wie(i.file,Vs(i.start,i.length));if(void 0!==o&&(zN(o)&&iD(o.parent)&&(o=o.parent),iD(o))){if(RD(o.parent))return;const r=PX(t,n.start);return{constraint:function(e,t){if(v_(t.parent))return e.getTypeArgumentConstraint(t.parent);return(U_(t)?e.getContextualType(t):void 0)||e.getTypeAtLocation(t)}(e.getTypeChecker(),r)||function(e){const[,t]=UU(e,"\n",0).match(/`extends (.*)`/)||[];return t}(i.messageText),declaration:o,token:r}}}function Mee(e,t,n,r,i,o){const{declaration:a,constraint:s}=o,c=t.getTypeChecker();if(Ze(s))e.insertText(i,a.name.end,` extends ${s}`);else{const o=hk(t.getCompilerOptions()),l=kie({program:t,host:r}),_=Z9(i,t,n,r),u=Die(c,_,s,void 0,o,void 0,void 0,l);u&&(e.replaceNode(i,a,XC.updateTypeParameterDeclaration(a,void 0,a.name,u,a.default)),_.writeFixes(e))}}k7({errorCodes:jee,getCodeActions(e){const{sourceFile:t,span:n,program:r,preferences:i,host:o}=e,a=Ree(r,t,n);if(void 0===a)return;const s=Tue.ChangeTracker.with(e,(e=>Mee(e,r,i,o,t,a)));return[v7(Lee,s,la.Add_extends_constraint,Lee,la.Add_extends_constraint_to_all_type_parameters)]},fixIds:[Lee],getAllCodeActions:e=>{const{program:t,preferences:n,host:r}=e,i=new Set;return w7(Tue.ChangeTracker.with(e,(o=>{F7(e,jee,(e=>{const a=Ree(t,e.file,Vs(e.start,e.length));if(a&&vx(i,jB(a.declaration)))return Mee(o,t,n,r,e.file,a)}))})))}});var Bee="fixOverrideModifier",Jee="fixAddOverrideModifier",zee="fixRemoveOverrideModifier",qee=[la.This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0.code,la.This_member_cannot_have_an_override_modifier_because_its_containing_class_0_does_not_extend_another_class.code,la.This_member_must_have_an_override_modifier_because_it_overrides_an_abstract_method_that_is_declared_in_the_base_class_0.code,la.This_member_must_have_an_override_modifier_because_it_overrides_a_member_in_the_base_class_0.code,la.This_parameter_property_must_have_an_override_modifier_because_it_overrides_a_member_in_base_class_0.code,la.This_member_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_class_0.code,la.This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_its_containing_class_0_does_not_extend_another_class.code,la.This_parameter_property_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_class_0.code,la.This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base_class_0.code],Uee={[la.This_member_must_have_an_override_modifier_because_it_overrides_a_member_in_the_base_class_0.code]:{descriptions:la.Add_override_modifier,fixId:Jee,fixAllDescriptions:la.Add_all_missing_override_modifiers},[la.This_member_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_class_0.code]:{descriptions:la.Add_override_modifier,fixId:Jee,fixAllDescriptions:la.Add_all_missing_override_modifiers},[la.This_member_cannot_have_an_override_modifier_because_its_containing_class_0_does_not_extend_another_class.code]:{descriptions:la.Remove_override_modifier,fixId:zee,fixAllDescriptions:la.Remove_all_unnecessary_override_modifiers},[la.This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_its_containing_class_0_does_not_extend_another_class.code]:{descriptions:la.Remove_override_modifier,fixId:zee,fixAllDescriptions:la.Remove_override_modifier},[la.This_parameter_property_must_have_an_override_modifier_because_it_overrides_a_member_in_base_class_0.code]:{descriptions:la.Add_override_modifier,fixId:Jee,fixAllDescriptions:la.Add_all_missing_override_modifiers},[la.This_parameter_property_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_class_0.code]:{descriptions:la.Add_override_modifier,fixId:Jee,fixAllDescriptions:la.Add_all_missing_override_modifiers},[la.This_member_must_have_an_override_modifier_because_it_overrides_an_abstract_method_that_is_declared_in_the_base_class_0.code]:{descriptions:la.Add_override_modifier,fixId:Jee,fixAllDescriptions:la.Remove_all_unnecessary_override_modifiers},[la.This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0.code]:{descriptions:la.Remove_override_modifier,fixId:zee,fixAllDescriptions:la.Remove_all_unnecessary_override_modifiers},[la.This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base_class_0.code]:{descriptions:la.Remove_override_modifier,fixId:zee,fixAllDescriptions:la.Remove_all_unnecessary_override_modifiers}};function Vee(e,t,n,r){switch(n){case la.This_member_must_have_an_override_modifier_because_it_overrides_a_member_in_the_base_class_0.code:case la.This_member_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_class_0.code:case la.This_member_must_have_an_override_modifier_because_it_overrides_an_abstract_method_that_is_declared_in_the_base_class_0.code:case la.This_parameter_property_must_have_an_override_modifier_because_it_overrides_a_member_in_base_class_0.code:case la.This_parameter_property_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_class_0.code:return function(e,t,n){const r=$ee(t,n);if(Dm(t))return void e.addJSDocTags(t,r,[XC.createJSDocOverrideTag(XC.createIdentifier("override"))]);const i=r.modifiers||l,o=b(i,GN),a=b(i,XN),s=b(i,(e=>aQ(e.kind))),c=x(i,aD),_=a?a.end:o?o.end:s?s.end:c?Xa(t.text,c.end):r.getStart(t),u=s||o||a?{prefix:" "}:{suffix:" "};e.insertModifierAt(t,_,164,u)}(e,t.sourceFile,r);case la.This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0.code:case la.This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base_class_0.code:case la.This_member_cannot_have_an_override_modifier_because_its_containing_class_0_does_not_extend_another_class.code:case la.This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_its_containing_class_0_does_not_extend_another_class.code:return function(e,t,n){const r=$ee(t,n);if(Dm(t))return void e.filterJSDocTags(t,r,tn(mP));const i=b(r.modifiers,QN);un.assertIsDefined(i),e.deleteModifier(t,i)}(e,t.sourceFile,r);default:un.fail("Unexpected error code: "+n)}}function Wee(e){switch(e.kind){case 176:case 172:case 174:case 177:case 178:return!0;case 169:return Ys(e,e.parent);default:return!1}}function $ee(e,t){const n=_c(PX(e,t),(e=>__(e)?"quit":Wee(e)));return un.assert(n&&Wee(n)),n}k7({errorCodes:qee,getCodeActions:function(e){const{errorCode:t,span:n}=e,r=Uee[t];if(!r)return l;const{descriptions:i,fixId:o,fixAllDescriptions:a}=r,s=Tue.ChangeTracker.with(e,(r=>Vee(r,e,t,n.start)));return[b7(Bee,s,i,o,a)]},fixIds:[Bee,Jee,zee],getAllCodeActions:e=>D7(e,qee,((t,n)=>{const{code:r,start:i}=n,o=Uee[r];o&&o.fixId===e.fixId&&Vee(t,e,r,i)}))});var Hee="fixNoPropertyAccessFromIndexSignature",Kee=[la.Property_0_comes_from_an_index_signature_so_it_must_be_accessed_with_0.code];function Gee(e,t,n,r){const i=BQ(t,r),o=XC.createStringLiteral(n.name.text,0===i);e.replaceNode(t,n,pl(n)?XC.createElementAccessChain(n.expression,n.questionDotToken,o):XC.createElementAccessExpression(n.expression,o))}function Xee(e,t){return nt(PX(e,t).parent,HD)}k7({errorCodes:Kee,fixIds:[Hee],getCodeActions(e){const{sourceFile:t,span:n,preferences:r}=e,i=Xee(t,n.start),o=Tue.ChangeTracker.with(e,(t=>Gee(t,e.sourceFile,i,r)));return[v7(Hee,o,[la.Use_element_access_for_0,i.name.text],Hee,la.Use_element_access_for_all_undeclared_properties)]},getAllCodeActions:e=>D7(e,Kee,((t,n)=>Gee(t,n.file,Xee(n.file,n.start),e.preferences)))});var Qee="fixImplicitThis",Yee=[la.this_implicitly_has_type_any_because_it_does_not_have_a_type_annotation.code];function Zee(e,t,n,r){const i=PX(t,n);if(!rX(i))return;const o=Zf(i,!1,!1);if(($F(o)||eF(o))&&!qE(Zf(o,!1,!1))){const n=un.checkDefined(yX(o,100,t)),{name:i}=o,a=un.checkDefined(o.body);if(eF(o)){if(i&&ice.Core.isSymbolReferencedInFile(i,r,t,a))return;return e.delete(t,n),i&&e.delete(t,i),e.insertText(t,a.pos," =>"),[la.Convert_function_expression_0_to_arrow_function,i?i.text:aZ]}return e.replaceNode(t,n,XC.createToken(87)),e.insertText(t,i.end," = "),e.insertText(t,a.pos," =>"),[la.Convert_function_declaration_0_to_arrow_function,i.text]}}k7({errorCodes:Yee,getCodeActions:function(e){const{sourceFile:t,program:n,span:r}=e;let i;const o=Tue.ChangeTracker.with(e,(e=>{i=Zee(e,t,r.start,n.getTypeChecker())}));return i?[v7(Qee,o,i,Qee,la.Fix_all_implicit_this_errors)]:l},fixIds:[Qee],getAllCodeActions:e=>D7(e,Yee,((t,n)=>{Zee(t,n.file,n.start,e.program.getTypeChecker())}))});var ete="fixImportNonExportedMember",tte=[la.Module_0_declares_1_locally_but_it_is_not_exported.code];function nte(e,t,n){var r,i;const o=PX(e,t);if(zN(o)){const t=_c(o,nE);if(void 0===t)return;const a=TN(t.moduleSpecifier)?t.moduleSpecifier:void 0;if(void 0===a)return;const s=null==(r=n.getResolvedModuleFromModuleSpecifier(a,e))?void 0:r.resolvedModule;if(void 0===s)return;const c=n.getSourceFile(s.resolvedFileName);if(void 0===c||$Z(n,c))return;const l=null==(i=tt(c.symbol.valueDeclaration,au))?void 0:i.locals;if(void 0===l)return;const _=l.get(o.escapedText);if(void 0===_)return;const d=function(e){if(void 0===e.valueDeclaration)return fe(e.declarations);const t=e.valueDeclaration,n=VF(t)?tt(t.parent.parent,wF):void 0;return n&&1===u(n.declarationList.declarations)?n:t}(_);if(void 0===d)return;return{exportName:{node:o,isTypeOnly:qT(d)},node:d,moduleSourceFile:c,moduleSpecifier:a.text}}}function rte(e,t,n,r,i){u(r)&&(i?ote(e,t,n,i,r):ate(e,t,n,r))}function ite(e,t){return x(e.statements,(e=>fE(e)&&(t&&e.isTypeOnly||!e.isTypeOnly)))}function ote(e,t,n,r,i){const o=r.exportClause&&mE(r.exportClause)?r.exportClause.elements:XC.createNodeArray([]),a=!(r.isTypeOnly||!xk(t.getCompilerOptions())&&!b(o,(e=>e.isTypeOnly)));e.replaceNode(n,r,XC.updateExportDeclaration(r,r.modifiers,r.isTypeOnly,XC.createNamedExports(XC.createNodeArray([...o,...ste(i,a)],o.hasTrailingComma)),r.moduleSpecifier,r.attributes))}function ate(e,t,n,r){e.insertNodeAtEndOfScope(n,n,XC.createExportDeclaration(void 0,!1,XC.createNamedExports(ste(r,xk(t.getCompilerOptions()))),void 0,void 0))}function ste(e,t){return XC.createNodeArray(E(e,(e=>XC.createExportSpecifier(t&&e.isTypeOnly,void 0,e.node))))}k7({errorCodes:tte,fixIds:[ete],getCodeActions(e){const{sourceFile:t,span:n,program:r}=e,i=nte(t,n.start,r);if(void 0===i)return;const o=Tue.ChangeTracker.with(e,(e=>function(e,t,{exportName:n,node:r,moduleSourceFile:i}){const o=ite(i,n.isTypeOnly);o?ote(e,t,i,o,[n]):UT(r)?e.insertExportModifier(i,r):ate(e,t,i,[n])}(e,r,i)));return[v7(ete,o,[la.Export_0_from_module_1,i.exportName.node.text,i.moduleSpecifier],ete,la.Export_all_referenced_locals)]},getAllCodeActions(e){const{program:t}=e;return w7(Tue.ChangeTracker.with(e,(n=>{const r=new Map;F7(e,tte,(e=>{const i=nte(e.file,e.start,t);if(void 0===i)return;const{exportName:o,node:a,moduleSourceFile:s}=i;if(void 0===ite(s,o.isTypeOnly)&&UT(a))n.insertExportModifier(s,a);else{const e=r.get(s)||{typeOnlyExports:[],exports:[]};o.isTypeOnly?e.typeOnlyExports.push(o):e.exports.push(o),r.set(s,e)}})),r.forEach(((e,r)=>{const i=ite(r,!0);i&&i.isTypeOnly?(rte(n,t,r,e.typeOnlyExports,i),rte(n,t,r,e.exports,ite(r,!1))):rte(n,t,r,[...e.exports,...e.typeOnlyExports],i)}))})))}});var cte="fixIncorrectNamedTupleSyntax";k7({errorCodes:[la.A_labeled_tuple_element_is_declared_as_optional_with_a_question_mark_after_the_name_and_before_the_colon_rather_than_after_the_type.code,la.A_labeled_tuple_element_is_declared_as_rest_with_a_before_the_name_rather_than_before_the_type.code],getCodeActions:function(e){const{sourceFile:t,span:n}=e,r=function(e,t){return _c(PX(e,t),(e=>202===e.kind))}(t,n.start),i=Tue.ChangeTracker.with(e,(e=>function(e,t,n){if(!n)return;let r=n.type,i=!1,o=!1;for(;190===r.kind||191===r.kind||196===r.kind;)190===r.kind?i=!0:191===r.kind&&(o=!0),r=r.type;const a=XC.updateNamedTupleMember(n,n.dotDotDotToken||(o?XC.createToken(26):void 0),n.name,n.questionToken||(i?XC.createToken(58):void 0),r);a!==n&&e.replaceNode(t,n,a)}(e,t,r)));return[v7(cte,i,la.Move_labeled_tuple_element_modifiers_to_labels,cte,la.Move_labeled_tuple_element_modifiers_to_labels)]},fixIds:[cte]});var lte="fixSpelling",_te=[la.Property_0_does_not_exist_on_type_1_Did_you_mean_2.code,la.Property_0_may_not_exist_on_type_1_Did_you_mean_2.code,la.Cannot_find_name_0_Did_you_mean_1.code,la.Could_not_find_name_0_Did_you_mean_1.code,la.Cannot_find_namespace_0_Did_you_mean_1.code,la.Cannot_find_name_0_Did_you_mean_the_instance_member_this_0.code,la.Cannot_find_name_0_Did_you_mean_the_static_member_1_0.code,la._0_has_no_exported_member_named_1_Did_you_mean_2.code,la.This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0_Did_you_mean_1.code,la.This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base_class_0_Did_you_mean_1.code,la.No_overload_matches_this_call.code,la.Type_0_is_not_assignable_to_type_1.code];function ute(e,t,n,r){const i=PX(e,t),o=i.parent;if((r===la.No_overload_matches_this_call.code||r===la.Type_0_is_not_assignable_to_type_1.code)&&!FE(o))return;const a=n.program.getTypeChecker();let s;if(HD(o)&&o.name===i){un.assert(ul(i),"Expected an identifier for spelling (property access)");let e=a.getTypeAtLocation(o.expression);64&o.flags&&(e=a.getNonNullableType(e)),s=a.getSuggestedSymbolForNonexistentProperty(i,e)}else if(cF(o)&&103===o.operatorToken.kind&&o.left===i&&qN(i)){const e=a.getTypeAtLocation(o.right);s=a.getSuggestedSymbolForNonexistentProperty(i,e)}else if(nD(o)&&o.right===i){const e=a.getSymbolAtLocation(o.left);e&&1536&e.flags&&(s=a.getSuggestedSymbolForNonexistentModule(o.right,e))}else if(dE(o)&&o.name===i){un.assertNode(i,zN,"Expected an identifier for spelling (import)");const t=function(e,t,n){var r;if(!t||!Lu(t.moduleSpecifier))return;const i=null==(r=e.program.getResolvedModuleFromModuleSpecifier(t.moduleSpecifier,n))?void 0:r.resolvedModule;return i?e.program.getSourceFile(i.resolvedFileName):void 0}(n,_c(i,nE),e);t&&t.symbol&&(s=a.getSuggestedSymbolForNonexistentModule(i,t.symbol))}else if(FE(o)&&o.name===i){un.assertNode(i,zN,"Expected an identifier for JSX attribute");const e=_c(i,vu),t=a.getContextualTypeForArgumentAtIndex(e,0);s=a.getSuggestedSymbolForNonexistentJSXAttribute(i,t)}else if(Fv(o)&&l_(o)&&o.name===i){const e=_c(i,__),t=e?hh(e):void 0,n=t?a.getTypeAtLocation(t):void 0;n&&(s=a.getSuggestedSymbolForNonexistentClassMember(Kd(i),n))}else{const e=FG(i),t=Kd(i);un.assert(void 0!==t,"name should be defined"),s=a.getSuggestedSymbolForNonexistentSymbol(i,t,function(e){let t=0;return 4&e&&(t|=1920),2&e&&(t|=788968),1&e&&(t|=111551),t}(e))}return void 0===s?void 0:{node:i,suggestedSymbol:s}}function dte(e,t,n,r,i){const o=hc(r);if(!fs(o,i)&&HD(n.parent)){const i=r.valueDeclaration;i&&kc(i)&&qN(i.name)?e.replaceNode(t,n,XC.createIdentifier(o)):e.replaceNode(t,n.parent,XC.createElementAccessExpression(n.parent.expression,XC.createStringLiteral(o)))}else e.replaceNode(t,n,XC.createIdentifier(o))}k7({errorCodes:_te,getCodeActions(e){const{sourceFile:t,errorCode:n}=e,r=ute(t,e.span.start,e,n);if(!r)return;const{node:i,suggestedSymbol:o}=r,a=hk(e.host.getCompilationSettings());return[v7("spelling",Tue.ChangeTracker.with(e,(e=>dte(e,t,i,o,a))),[la.Change_spelling_to_0,hc(o)],lte,la.Fix_all_detected_spelling_errors)]},fixIds:[lte],getAllCodeActions:e=>D7(e,_te,((t,n)=>{const r=ute(n.file,n.start,e,n.code),i=hk(e.host.getCompilationSettings());r&&dte(t,e.sourceFile,r.node,r.suggestedSymbol,i)}))});var pte="returnValueCorrect",fte="fixAddReturnStatement",mte="fixRemoveBracesFromArrowFunctionBody",gte="fixWrapTheBlockWithParen",hte=[la.A_function_whose_declared_type_is_neither_undefined_void_nor_any_must_return_a_value.code,la.Type_0_is_not_assignable_to_type_1.code,la.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1.code];function yte(e,t,n){const r=e.createSymbol(4,t.escapedText);r.links.type=e.getTypeAtLocation(n);const i=Hu([r]);return e.createAnonymousType(void 0,i,[],[],[])}function vte(e,t,n,r){if(!t.body||!CF(t.body)||1!==u(t.body.statements))return;const i=ge(t.body.statements);if(DF(i)&&bte(e,t,e.getTypeAtLocation(i.expression),n,r))return{declaration:t,kind:0,expression:i.expression,statement:i,commentSource:i.expression};if(JF(i)&&DF(i.statement)){const o=XC.createObjectLiteralExpression([XC.createPropertyAssignment(i.label,i.statement.expression)]);if(bte(e,t,yte(e,i.label,i.statement.expression),n,r))return tF(t)?{declaration:t,kind:1,expression:o,statement:i,commentSource:i.statement.expression}:{declaration:t,kind:0,expression:o,statement:i,commentSource:i.statement.expression}}else if(CF(i)&&1===u(i.statements)){const o=ge(i.statements);if(JF(o)&&DF(o.statement)){const a=XC.createObjectLiteralExpression([XC.createPropertyAssignment(o.label,o.statement.expression)]);if(bte(e,t,yte(e,o.label,o.statement.expression),n,r))return{declaration:t,kind:0,expression:a,statement:i,commentSource:o}}}}function bte(e,t,n,r,i){if(i){const r=e.getSignatureFromDeclaration(t);if(r){wv(t,1024)&&(n=e.createPromiseType(n));const i=e.createSignature(t,r.typeParameters,r.thisParameter,r.parameters,n,void 0,r.minArgumentCount,r.flags);n=e.createAnonymousType(void 0,Hu(),[i],[],[])}else n=e.getAnyType()}return e.isTypeAssignableTo(n,r)}function xte(e,t,n,r){const i=PX(t,n);if(!i.parent)return;const o=_c(i.parent,i_);switch(r){case la.A_function_whose_declared_type_is_neither_undefined_void_nor_any_must_return_a_value.code:if(!(o&&o.body&&o.type&&Gb(o.type,i)))return;return vte(e,o,e.getTypeFromTypeNode(o.type),!1);case la.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1.code:if(!o||!GD(o.parent)||!o.body)return;const t=o.parent.arguments.indexOf(o);if(-1===t)return;const n=e.getContextualTypeForArgumentAtIndex(o.parent,t);if(!n)return;return vte(e,o,n,!0);case la.Type_0_is_not_assignable_to_type_1.code:if(!ch(i)||!Ef(i.parent)&&!FE(i.parent))return;const r=function(e){switch(e.kind){case 260:case 169:case 208:case 172:case 303:return e.initializer;case 291:return e.initializer&&(AE(e.initializer)?e.initializer.expression:void 0);case 304:case 171:case 306:case 348:case 341:return}}(i.parent);if(!r||!i_(r)||!r.body)return;return vte(e,r,e.getTypeAtLocation(i.parent),!0)}}function kte(e,t,n,r){JY(n);const i=fZ(t);e.replaceNode(t,r,XC.createReturnStatement(n),{leadingTriviaOption:Tue.LeadingTriviaOption.Exclude,trailingTriviaOption:Tue.TrailingTriviaOption.Exclude,suffix:i?";":void 0})}function Ste(e,t,n,r,i,o){const a=o||ZY(r)?XC.createParenthesizedExpression(r):r;JY(i),UY(i,a),e.replaceNode(t,n.body,a)}function Tte(e,t,n,r){e.replaceNode(t,n.body,XC.createParenthesizedExpression(r))}function Cte(e,t,n){const r=Tue.ChangeTracker.with(e,(r=>kte(r,e.sourceFile,t,n)));return v7(pte,r,la.Add_a_return_statement,fte,la.Add_all_missing_return_statement)}function wte(e,t,n){const r=Tue.ChangeTracker.with(e,(r=>Tte(r,e.sourceFile,t,n)));return v7(pte,r,la.Wrap_the_following_body_with_parentheses_which_should_be_an_object_literal,gte,la.Wrap_all_object_literal_with_parentheses)}k7({errorCodes:hte,fixIds:[fte,mte,gte],getCodeActions:function(e){const{program:t,sourceFile:n,span:{start:r},errorCode:i}=e,o=xte(t.getTypeChecker(),n,r,i);if(o)return 0===o.kind?ie([Cte(e,o.expression,o.statement)],tF(o.declaration)?function(e,t,n,r){const i=Tue.ChangeTracker.with(e,(i=>Ste(i,e.sourceFile,t,n,r,!1)));return v7(pte,i,la.Remove_braces_from_arrow_function_body,mte,la.Remove_braces_from_all_arrow_function_bodies_with_relevant_issues)}(e,o.declaration,o.expression,o.commentSource):void 0):[wte(e,o.declaration,o.expression)]},getAllCodeActions:e=>D7(e,hte,((t,n)=>{const r=xte(e.program.getTypeChecker(),n.file,n.start,n.code);if(r)switch(e.fixId){case fte:kte(t,n.file,r.expression,r.statement);break;case mte:if(!tF(r.declaration))return;Ste(t,n.file,r.declaration,r.expression,r.commentSource,!1);break;case gte:if(!tF(r.declaration))return;Tte(t,n.file,r.declaration,r.expression);break;default:un.fail(JSON.stringify(e.fixId))}}))});var Nte="fixMissingMember",Dte="fixMissingProperties",Fte="fixMissingAttributes",Ete="fixMissingFunctionDeclaration",Pte=[la.Property_0_does_not_exist_on_type_1.code,la.Property_0_does_not_exist_on_type_1_Did_you_mean_2.code,la.Property_0_is_missing_in_type_1_but_required_in_type_2.code,la.Type_0_is_missing_the_following_properties_from_type_1_Colon_2.code,la.Type_0_is_missing_the_following_properties_from_type_1_Colon_2_and_3_more.code,la.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1.code,la.Cannot_find_name_0.code];function Ate(e,t,n,r,i){var o,a,s;const c=PX(e,t),_=c.parent;if(n===la.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1.code){if(19!==c.kind||!$D(_)||!GD(_.parent))return;const e=k(_.parent.arguments,(e=>e===_));if(e<0)return;const t=r.getResolvedSignature(_.parent);if(!(t&&t.declaration&&t.parameters[e]))return;const n=t.parameters[e].valueDeclaration;if(!(n&&oD(n)&&zN(n.name)))return;const i=Oe(r.getUnmatchedProperties(r.getTypeAtLocation(_),r.getParameterType(t,e).getNonNullableType(),!1,!1));if(!u(i))return;return{kind:3,token:n.name,identifier:n.name.text,properties:i,parentDeclaration:_}}if(19===c.kind&&$D(_)){const e=null==(o=r.getContextualType(_)||r.getTypeAtLocation(_))?void 0:o.getNonNullableType(),t=Oe(r.getUnmatchedProperties(r.getTypeAtLocation(_),e,!1,!1));if(!u(t))return;return{kind:3,token:_,identifier:"",properties:t,parentDeclaration:_}}if(!ul(c))return;if(zN(c)&&Fu(_)&&_.initializer&&$D(_.initializer)){const e=null==(a=r.getContextualType(c)||r.getTypeAtLocation(c))?void 0:a.getNonNullableType(),t=Oe(r.getUnmatchedProperties(r.getTypeAtLocation(_.initializer),e,!1,!1));if(!u(t))return;return{kind:3,token:c,identifier:c.text,properties:t,parentDeclaration:_.initializer}}if(zN(c)&&vu(c.parent)){const e=function(e,t,n){const r=e.getContextualType(n.attributes);if(void 0===r)return l;const i=r.getProperties();if(!u(i))return l;const o=new Set;for(const t of n.attributes.properties)if(FE(t)&&o.add(ZT(t.name)),PE(t)){const n=e.getTypeAtLocation(t.expression);for(const e of n.getProperties())o.add(e.escapedName)}return N(i,(e=>fs(e.name,t,1)&&!(16777216&e.flags||48&nx(e)||o.has(e.escapedName))))}(r,hk(i.getCompilerOptions()),c.parent);if(!u(e))return;return{kind:4,token:c,attributes:e,parentDeclaration:c.parent}}if(zN(c)){const t=null==(s=r.getContextualType(c))?void 0:s.getNonNullableType();if(t&&16&mx(t)){const n=fe(r.getSignaturesOfType(t,0));if(void 0===n)return;return{kind:5,token:c,signature:n,sourceFile:e,parentDeclaration:Wte(c)}}if(GD(_)&&_.expression===c)return{kind:2,token:c,call:_,sourceFile:e,modifierFlags:0,parentDeclaration:Wte(c)}}if(!HD(_))return;const d=NQ(r.getTypeAtLocation(_.expression)),p=d.symbol;if(!p||!p.declarations)return;if(zN(c)&&GD(_.parent)){const t=b(p.declarations,QF),n=null==t?void 0:t.getSourceFile();if(t&&n&&!$Z(i,n))return{kind:2,token:c,call:_.parent,sourceFile:n,modifierFlags:32,parentDeclaration:t};const r=b(p.declarations,qE);if(e.commonJsModuleIndicator)return;if(r&&!$Z(i,r))return{kind:2,token:c,call:_.parent,sourceFile:r,modifierFlags:32,parentDeclaration:r}}const f=b(p.declarations,__);if(!f&&qN(c))return;const m=f||b(p.declarations,(e=>KF(e)||SD(e)));if(m&&!$Z(i,m.getSourceFile())){const e=!SD(m)&&(d.target||d)!==r.getDeclaredTypeOfSymbol(p);if(e&&(qN(c)||KF(m)))return;const t=m.getSourceFile(),n=SD(m)?0:(e?256:0)|(BZ(c.text)?2:0),i=Dm(t);return{kind:0,token:c,call:tt(_.parent,GD),modifierFlags:n,parentDeclaration:m,declSourceFile:t,isJSFile:i}}const g=b(p.declarations,XF);return!g||1056&d.flags||qN(c)||$Z(i,g.getSourceFile())?void 0:{kind:1,token:c,parentDeclaration:g}}function Ite(e,t,n,r,i){const o=r.text;if(i){if(231===n.kind)return;const r=n.name.getText(),i=Ote(XC.createIdentifier(r),o);e.insertNodeAfter(t,n,i)}else if(qN(r)){const r=XC.createPropertyDeclaration(void 0,o,void 0,void 0,void 0),i=Rte(n);i?e.insertNodeAfter(t,i,r):e.insertMemberAtStart(t,n,r)}else{const r=rv(n);if(!r)return;const i=Ote(XC.createThis(),o);e.insertNodeAtConstructorEnd(t,r,i)}}function Ote(e,t){return XC.createExpressionStatement(XC.createAssignment(XC.createPropertyAccessExpression(e,t),Vte()))}function Lte(e,t,n){let r;if(226===n.parent.parent.kind){const i=n.parent.parent,o=n.parent===i.left?i.right:i.left,a=e.getWidenedType(e.getBaseTypeOfLiteralType(e.getTypeAtLocation(o)));r=e.typeToTypeNode(a,t,1,8)}else{const t=e.getContextualType(n.parent);r=t?e.typeToTypeNode(t,void 0,1,8):void 0}return r||XC.createKeywordTypeNode(133)}function jte(e,t,n,r,i,o){const a=o?XC.createNodeArray(XC.createModifiersFromModifierFlags(o)):void 0,s=__(n)?XC.createPropertyDeclaration(a,r,void 0,i,void 0):XC.createPropertySignature(void 0,r,void 0,i),c=Rte(n);c?e.insertNodeAfter(t,c,s):e.insertMemberAtStart(t,n,s)}function Rte(e){let t;for(const n of e.members){if(!cD(n))break;t=n}return t}function Mte(e,t,n,r,i,o,a){const s=Z9(a,e.program,e.preferences,e.host),c=wie(__(o)?174:173,e,s,n,r,i,o),l=function(e,t){if(SD(e))return;const n=_c(t,(e=>_D(e)||dD(e)));return n&&n.parent===e?n:void 0}(o,n);l?t.insertNodeAfter(a,l,c):t.insertMemberAtStart(a,o,c),s.writeFixes(t)}function Bte(e,t,{token:n,parentDeclaration:r}){const i=$(r.members,(e=>{const n=t.getTypeAtLocation(e);return!!(n&&402653316&n.flags)})),o=r.getSourceFile(),a=XC.createEnumMember(n,i?XC.createStringLiteral(n.text):void 0),s=ye(r.members);s?e.insertNodeInListAfter(o,s,a,r.members):e.insertMemberAtStart(o,r,a)}function Jte(e,t,n){const r=BQ(t.sourceFile,t.preferences),i=Z9(t.sourceFile,t.program,t.preferences,t.host),o=2===n.kind?wie(262,t,i,n.call,mc(n.token),n.modifierFlags,n.parentDeclaration):Cie(262,t,r,n.signature,Rie(la.Function_not_implemented.message,r),n.token,void 0,void 0,void 0,i);void 0===o&&un.fail("fixMissingFunctionDeclaration codefix got unexpected error."),RF(n.parentDeclaration)?e.insertNodeBefore(n.sourceFile,n.parentDeclaration,o,!0):e.insertNodeAtEndOfScope(n.sourceFile,n.parentDeclaration,o),i.writeFixes(e)}function zte(e,t,n){const r=Z9(t.sourceFile,t.program,t.preferences,t.host),i=BQ(t.sourceFile,t.preferences),o=t.program.getTypeChecker(),a=n.parentDeclaration.attributes,s=$(a.properties,PE),c=E(n.attributes,(e=>{const a=Ute(t,o,r,i,o.getTypeOfSymbol(e),n.parentDeclaration),s=XC.createIdentifier(e.name),c=XC.createJsxAttribute(s,XC.createJsxExpression(void 0,a));return wT(s,c),c})),l=XC.createJsxAttributes(s?[...c,...a.properties]:[...a.properties,...c]),_={prefix:a.pos===a.end?" ":void 0};e.replaceNode(t.sourceFile,a,l,_),r.writeFixes(e)}function qte(e,t,n){const r=Z9(t.sourceFile,t.program,t.preferences,t.host),i=BQ(t.sourceFile,t.preferences),o=hk(t.program.getCompilerOptions()),a=t.program.getTypeChecker(),s=E(n.properties,(e=>{const s=Ute(t,a,r,i,a.getTypeOfSymbol(e),n.parentDeclaration);return XC.createPropertyAssignment(function(e,t,n,r){if(Ku(e)){const t=r.symbolToNode(e,111551,void 0,void 0,1);if(t&&rD(t))return t}return BT(e.name,t,0===n,!1,!1)}(e,o,i,a),s)})),c={leadingTriviaOption:Tue.LeadingTriviaOption.Exclude,trailingTriviaOption:Tue.TrailingTriviaOption.Exclude,indentation:n.indentation};e.replaceNode(t.sourceFile,n.parentDeclaration,XC.createObjectLiteralExpression([...n.parentDeclaration.properties,...s],!0),c),r.writeFixes(e)}function Ute(e,t,n,r,i,o){if(3&i.flags)return Vte();if(134217732&i.flags)return XC.createStringLiteral("",0===r);if(8&i.flags)return XC.createNumericLiteral(0);if(64&i.flags)return XC.createBigIntLiteral("0n");if(16&i.flags)return XC.createFalse();if(1056&i.flags){const e=i.symbol.exports?me(i.symbol.exports.values()):i.symbol,n=i.symbol.parent&&256&i.symbol.parent.flags?i.symbol.parent:i.symbol,r=t.symbolToExpression(n,111551,void 0,64);return void 0===e||void 0===r?XC.createNumericLiteral(0):XC.createPropertyAccessExpression(r,t.symbolToString(e))}if(256&i.flags)return XC.createNumericLiteral(i.value);if(2048&i.flags)return XC.createBigIntLiteral(i.value);if(128&i.flags)return XC.createStringLiteral(i.value,0===r);if(512&i.flags)return i===t.getFalseType()||i===t.getFalseType(!0)?XC.createFalse():XC.createTrue();if(65536&i.flags)return XC.createNull();if(1048576&i.flags)return f(i.types,(i=>Ute(e,t,n,r,i,o)))??Vte();if(t.isArrayLikeType(i))return XC.createArrayLiteralExpression();if(function(e){return 524288&e.flags&&(128&mx(e)||e.symbol&&tt(be(e.symbol.declarations),SD))}(i)){const a=E(t.getPropertiesOfType(i),(i=>{const a=Ute(e,t,n,r,t.getTypeOfSymbol(i),o);return XC.createPropertyAssignment(i.name,a)}));return XC.createObjectLiteralExpression(a,!0)}if(16&mx(i)){if(void 0===b(i.symbol.declarations||l,en(bD,lD,_D)))return Vte();const a=t.getSignaturesOfType(i,0);return void 0===a?Vte():Cie(218,e,r,a[0],Rie(la.Function_not_implemented.message,r),void 0,void 0,void 0,o,n)??Vte()}if(1&mx(i)){const e=fx(i.symbol);if(void 0===e||Ev(e))return Vte();const t=rv(e);return t&&u(t.parameters)?Vte():XC.createNewExpression(XC.createIdentifier(i.symbol.name),void 0,void 0)}return Vte()}function Vte(){return XC.createIdentifier("undefined")}function Wte(e){if(_c(e,AE)){const t=_c(e.parent,RF);if(t)return t}return hd(e)}k7({errorCodes:Pte,getCodeActions(e){const t=e.program.getTypeChecker(),n=Ate(e.sourceFile,e.span.start,e.errorCode,t,e.program);if(n){if(3===n.kind){const t=Tue.ChangeTracker.with(e,(t=>qte(t,e,n)));return[v7(Dte,t,la.Add_missing_properties,Dte,la.Add_all_missing_properties)]}if(4===n.kind){const t=Tue.ChangeTracker.with(e,(t=>zte(t,e,n)));return[v7(Fte,t,la.Add_missing_attributes,Fte,la.Add_all_missing_attributes)]}if(2===n.kind||5===n.kind){const t=Tue.ChangeTracker.with(e,(t=>Jte(t,e,n)));return[v7(Ete,t,[la.Add_missing_function_declaration_0,n.token.text],Ete,la.Add_all_missing_function_declarations)]}if(1===n.kind){const t=Tue.ChangeTracker.with(e,(t=>Bte(t,e.program.getTypeChecker(),n)));return[v7(Nte,t,[la.Add_missing_enum_member_0,n.token.text],Nte,la.Add_all_missing_members)]}return K(function(e,t){const{parentDeclaration:n,declSourceFile:r,modifierFlags:i,token:o,call:a}=t;if(void 0===a)return;const s=o.text,c=t=>Tue.ChangeTracker.with(e,(i=>Mte(e,i,a,o,t,n,r))),l=[v7(Nte,c(256&i),[256&i?la.Declare_static_method_0:la.Declare_method_0,s],Nte,la.Add_all_missing_members)];return 2&i&&l.unshift(y7(Nte,c(2),[la.Declare_private_method_0,s])),l}(e,n),function(e,t){return t.isJSFile?rn(function(e,{parentDeclaration:t,declSourceFile:n,modifierFlags:r,token:i}){if(KF(t)||SD(t))return;const o=Tue.ChangeTracker.with(e,(e=>Ite(e,n,t,i,!!(256&r))));if(0===o.length)return;const a=256&r?la.Initialize_static_property_0:qN(i)?la.Declare_a_private_field_named_0:la.Initialize_property_0_in_the_constructor;return v7(Nte,o,[a,i.text],Nte,la.Add_all_missing_members)}(e,t)):function(e,{parentDeclaration:t,declSourceFile:n,modifierFlags:r,token:i}){const o=i.text,a=256&r,s=Lte(e.program.getTypeChecker(),t,i),c=r=>Tue.ChangeTracker.with(e,(e=>jte(e,n,t,o,s,r))),l=[v7(Nte,c(256&r),[a?la.Declare_static_property_0:la.Declare_property_0,o],Nte,la.Add_all_missing_members)];return a||qN(i)||(2&r&&l.unshift(y7(Nte,c(2),[la.Declare_private_property_0,o])),l.push(function(e,t,n,r,i){const o=XC.createKeywordTypeNode(154),a=XC.createParameterDeclaration(void 0,void 0,"x",void 0,o,void 0),s=XC.createIndexSignature(void 0,[a],i),c=Tue.ChangeTracker.with(e,(e=>e.insertMemberAtStart(t,n,s)));return y7(Nte,c,[la.Add_index_signature_for_property_0,r])}(e,n,t,i.text,s))),l}(e,t)}(e,n))}},fixIds:[Nte,Ete,Dte,Fte],getAllCodeActions:e=>{const{program:t,fixId:n}=e,r=t.getTypeChecker(),i=new Set,o=new Map;return w7(Tue.ChangeTracker.with(e,(t=>{F7(e,Pte,(a=>{const s=Ate(a.file,a.start,a.code,r,e.program);if(s&&vx(i,jB(s.parentDeclaration)+"#"+(3===s.kind?s.identifier:s.token.text)))if(n!==Ete||2!==s.kind&&5!==s.kind){if(n===Dte&&3===s.kind)qte(t,e,s);else if(n===Fte&&4===s.kind)zte(t,e,s);else if(1===s.kind&&Bte(t,r,s),0===s.kind){const{parentDeclaration:e,token:t}=s,n=z(o,e,(()=>[]));n.some((e=>e.token.text===t.text))||n.push(s)}}else Jte(t,e,s)})),o.forEach(((n,i)=>{const a=SD(i)?void 0:Zie(i,r);for(const i of n){if(null==a?void 0:a.some((e=>{const t=o.get(e);return!!t&&t.some((({token:e})=>e.text===i.token.text))})))continue;const{parentDeclaration:n,declSourceFile:s,modifierFlags:c,token:l,call:_,isJSFile:u}=i;if(_&&!qN(l))Mte(e,t,_,l,256&c,n,s);else if(!u||KF(n)||SD(n)){const e=Lte(r,n,l);jte(t,s,n,l.text,e,256&c)}else Ite(t,s,n,l,!!(256&c))}}))})))}});var $te="addMissingNewOperator",Hte=[la.Value_of_type_0_is_not_callable_Did_you_mean_to_include_new.code];function Kte(e,t,n){const r=nt(function(e,t){let n=PX(e,t.start);const r=Ds(t);for(;n.endKte(e,t,n)));return[v7($te,r,la.Add_missing_new_operator_to_call,$te,la.Add_missing_new_operator_to_all_calls)]},fixIds:[$te],getAllCodeActions:e=>D7(e,Hte,((t,n)=>Kte(t,e.sourceFile,n)))});var Gte="addMissingParam",Xte="addOptionalParam",Qte=[la.Expected_0_arguments_but_got_1.code];function Yte(e,t,n){const r=_c(PX(e,n),GD);if(void 0===r||0===u(r.arguments))return;const i=t.getTypeChecker(),o=N(i.getTypeAtLocation(r.expression).symbol.declarations,tne);if(void 0===o)return;const a=ye(o);if(void 0===a||void 0===a.body||$Z(t,a.getSourceFile()))return;const s=function(e){const t=Tc(e);return t||(VF(e.parent)&&zN(e.parent.name)||cD(e.parent)||oD(e.parent)?e.parent.name:void 0)}(a);if(void 0===s)return;const c=[],l=[],_=u(a.parameters),d=u(r.arguments);if(_>d)return;const p=[a,...rne(a,o)];for(let e=0,t=0,n=0;e{const s=hd(i),c=Z9(s,t,n,r);u(i.parameters)?e.replaceNodeRangeWithNodes(s,ge(i.parameters),ve(i.parameters),nne(c,a,i,o),{joiner:", ",indentation:0,leadingTriviaOption:Tue.LeadingTriviaOption.IncludeAll,trailingTriviaOption:Tue.TrailingTriviaOption.Include}):d(nne(c,a,i,o),((t,n)=>{0===u(i.parameters)&&0===n?e.insertNodeAt(s,i.parameters.end,t):e.insertNodeAtEndOfList(s,i.parameters,t)})),c.writeFixes(e)}))}function tne(e){switch(e.kind){case 262:case 218:case 174:case 219:return!0;default:return!1}}function nne(e,t,n,r){const i=E(n.parameters,(e=>XC.createParameterDeclaration(e.modifiers,e.dotDotDotToken,e.name,e.questionToken,e.type,e.initializer)));for(const{pos:n,declaration:o}of r){const r=n>0?i[n-1]:void 0;i.splice(n,0,XC.updateParameterDeclaration(o,o.modifiers,o.dotDotDotToken,o.name,r&&r.questionToken?XC.createToken(58):o.questionToken,sne(e,o.type,t),o.initializer))}return i}function rne(e,t){const n=[];for(const r of t)if(ine(r)){if(u(r.parameters)===u(e.parameters)){n.push(r);continue}if(u(r.parameters)>u(e.parameters))return[]}return n}function ine(e){return tne(e)&&void 0===e.body}function one(e,t,n){return XC.createParameterDeclaration(void 0,void 0,e,n,t,void 0)}function ane(e,t){return u(e)&&$(e,(e=>tene(t,e.program,e.preferences,e.host,r,i))),[u(i)>1?la.Add_missing_parameters_to_0:la.Add_missing_parameter_to_0,n],Gte,la.Add_all_missing_parameters)),u(o)&&ie(a,v7(Xte,Tue.ChangeTracker.with(e,(t=>ene(t,e.program,e.preferences,e.host,r,o))),[u(o)>1?la.Add_optional_parameters_to_0:la.Add_optional_parameter_to_0,n],Xte,la.Add_all_optional_parameters)),a},getAllCodeActions:e=>D7(e,Qte,((t,n)=>{const r=Yte(e.sourceFile,e.program,n.start);if(r){const{declarations:n,newParameters:i,newOptionalParameters:o}=r;e.fixId===Gte&&ene(t,e.program,e.preferences,e.host,n,i),e.fixId===Xte&&ene(t,e.program,e.preferences,e.host,n,o)}}))});var cne="installTypesPackage",lne=la.Cannot_find_module_0_or_its_corresponding_type_declarations.code,_ne=la.This_JSX_tag_requires_the_module_path_0_to_exist_but_none_could_be_found_Make_sure_you_have_types_for_the_appropriate_package_installed.code,une=[lne,la.Could_not_find_a_declaration_file_for_module_0_1_implicitly_has_an_any_type.code,_ne];function dne(e,t){return{type:"install package",file:e,packageName:t}}function pne(e,t){const n=tt(PX(e,t),TN);if(!n)return;const r=n.text,{packageName:i}=YR(r);return Ts(i)?void 0:i}function fne(e,t,n){var r;return n===lne?CC.has(e)?"@types/node":void 0:(null==(r=t.isKnownTypesPackageName)?void 0:r.call(t,e))?pM(e):void 0}k7({errorCodes:une,getCodeActions:function(e){const{host:t,sourceFile:n,span:{start:r},errorCode:i}=e,o=i===_ne?$k(e.program.getCompilerOptions(),n):pne(n,r);if(void 0===o)return;const a=fne(o,t,i);return void 0===a?[]:[v7("fixCannotFindModule",[],[la.Install_0,a],cne,la.Install_all_missing_types_packages,dne(n.fileName,a))]},fixIds:[cne],getAllCodeActions:e=>D7(e,une,((t,n,r)=>{const i=pne(n.file,n.start);if(void 0!==i)switch(e.fixId){case cne:{const t=fne(i,e.host,n.code);t&&r.push(dne(n.file.fileName,t));break}default:un.fail(`Bad fixId: ${e.fixId}`)}}))});var mne=[la.Non_abstract_class_0_does_not_implement_inherited_abstract_member_1_from_class_2.code,la.Non_abstract_class_0_is_missing_implementations_for_the_following_members_of_1_Colon_2.code,la.Non_abstract_class_0_is_missing_implementations_for_the_following_members_of_1_Colon_2_and_3_more.code,la.Non_abstract_class_expression_does_not_implement_inherited_abstract_member_0_from_class_1.code,la.Non_abstract_class_expression_is_missing_implementations_for_the_following_members_of_0_Colon_1.code,la.Non_abstract_class_expression_is_missing_implementations_for_the_following_members_of_0_Colon_1_and_2_more.code],gne="fixClassDoesntImplementInheritedAbstractMember";function hne(e,t){return nt(PX(e,t).parent,__)}function yne(e,t,n,r,i){const o=hh(e),a=n.program.getTypeChecker(),s=a.getTypeAtLocation(o),c=a.getPropertiesOfType(s).filter(vne),l=Z9(t,n.program,i,n.host);xie(e,c,t,n,i,l,(n=>r.insertMemberAtStart(t,e,n))),l.writeFixes(r)}function vne(e){const t=Jv(ge(e.getDeclarations()));return!(2&t||!(64&t))}k7({errorCodes:mne,getCodeActions:function(e){const{sourceFile:t,span:n}=e,r=Tue.ChangeTracker.with(e,(r=>yne(hne(t,n.start),t,e,r,e.preferences)));return 0===r.length?void 0:[v7(gne,r,la.Implement_inherited_abstract_class,gne,la.Implement_all_inherited_abstract_classes)]},fixIds:[gne],getAllCodeActions:function(e){const t=new Set;return D7(e,mne,((n,r)=>{const i=hne(r.file,r.start);vx(t,jB(i))&&yne(i,e.sourceFile,e,n,e.preferences)}))}});var bne="classSuperMustPrecedeThisAccess",xne=[la.super_must_be_called_before_accessing_this_in_the_constructor_of_a_derived_class.code];function kne(e,t,n,r){e.insertNodeAtConstructorStart(t,n,r),e.delete(t,r)}function Sne(e,t){const n=PX(e,t);if(110!==n.kind)return;const r=Hf(n),i=Tne(r.body);return i&&!i.expression.arguments.some((e=>HD(e)&&e.expression===n))?{constructor:r,superCall:i}:void 0}function Tne(e){return DF(e)&&sf(e.expression)?e:n_(e)?void 0:PI(e,Tne)}k7({errorCodes:xne,getCodeActions(e){const{sourceFile:t,span:n}=e,r=Sne(t,n.start);if(!r)return;const{constructor:i,superCall:o}=r,a=Tue.ChangeTracker.with(e,(e=>kne(e,t,i,o)));return[v7(bne,a,la.Make_super_call_the_first_statement_in_the_constructor,bne,la.Make_all_super_calls_the_first_statement_in_their_constructor)]},fixIds:[bne],getAllCodeActions(e){const{sourceFile:t}=e,n=new Set;return D7(e,xne,((e,r)=>{const i=Sne(r.file,r.start);if(!i)return;const{constructor:o,superCall:a}=i;vx(n,jB(o.parent))&&kne(e,t,o,a)}))}});var Cne="constructorForDerivedNeedSuperCall",wne=[la.Constructors_for_derived_classes_must_contain_a_super_call.code];function Nne(e,t){const n=PX(e,t);return un.assert(dD(n.parent),"token should be at the constructor declaration"),n.parent}function Dne(e,t,n){const r=XC.createExpressionStatement(XC.createCallExpression(XC.createSuper(),void 0,l));e.insertNodeAtConstructorStart(t,n,r)}k7({errorCodes:wne,getCodeActions(e){const{sourceFile:t,span:n}=e,r=Nne(t,n.start),i=Tue.ChangeTracker.with(e,(e=>Dne(e,t,r)));return[v7(Cne,i,la.Add_missing_super_call,Cne,la.Add_all_missing_super_calls)]},fixIds:[Cne],getAllCodeActions:e=>D7(e,wne,((t,n)=>Dne(t,e.sourceFile,Nne(n.file,n.start))))});var Fne="fixEnableJsxFlag",Ene=[la.Cannot_use_JSX_unless_the_jsx_flag_is_provided.code];function Pne(e,t){Bie(e,t,"jsx",XC.createStringLiteral("react"))}k7({errorCodes:Ene,getCodeActions:function(e){const{configFile:t}=e.program.getCompilerOptions();if(void 0===t)return;const n=Tue.ChangeTracker.with(e,(e=>Pne(e,t)));return[y7(Fne,n,la.Enable_the_jsx_flag_in_your_configuration_file)]},fixIds:[Fne],getAllCodeActions:e=>D7(e,Ene,(t=>{const{configFile:n}=e.program.getCompilerOptions();void 0!==n&&Pne(t,n)}))});var Ane="fixNaNEquality",Ine=[la.This_condition_will_always_return_0.code];function One(e,t,n){const r=b(e.getSemanticDiagnostics(t),(e=>e.start===n.start&&e.length===n.length));if(void 0===r||void 0===r.relatedInformation)return;const i=b(r.relatedInformation,(e=>e.code===la.Did_you_mean_0.code));if(void 0===i||void 0===i.file||void 0===i.start||void 0===i.length)return;const o=Wie(i.file,Vs(i.start,i.length));return void 0!==o&&U_(o)&&cF(o.parent)?{suggestion:jne(i.messageText),expression:o.parent,arg:o}:void 0}function Lne(e,t,n,r){const i=XC.createCallExpression(XC.createPropertyAccessExpression(XC.createIdentifier("Number"),XC.createIdentifier("isNaN")),void 0,[n]),o=r.operatorToken.kind;e.replaceNode(t,r,38===o||36===o?XC.createPrefixUnaryExpression(54,i):i)}function jne(e){const[,t]=UU(e,"\n",0).match(/'(.*)'/)||[];return t}k7({errorCodes:Ine,getCodeActions(e){const{sourceFile:t,span:n,program:r}=e,i=One(r,t,n);if(void 0===i)return;const{suggestion:o,expression:a,arg:s}=i,c=Tue.ChangeTracker.with(e,(e=>Lne(e,t,s,a)));return[v7(Ane,c,[la.Use_0,o],Ane,la.Use_Number_isNaN_in_all_conditions)]},fixIds:[Ane],getAllCodeActions:e=>D7(e,Ine,((t,n)=>{const r=One(e.program,n.file,Vs(n.start,n.length));r&&Lne(t,n.file,r.arg,r.expression)}))}),k7({errorCodes:[la.Top_level_await_expressions_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_node16_nodenext_or_preserve_and_the_target_option_is_set_to_es2017_or_higher.code,la.Top_level_await_using_statements_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_node16_nodenext_or_preserve_and_the_target_option_is_set_to_es2017_or_higher.code,la.Top_level_for_await_loops_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_node16_nodenext_or_preserve_and_the_target_option_is_set_to_es2017_or_higher.code],getCodeActions:function(e){const t=e.program.getCompilerOptions(),{configFile:n}=t;if(void 0===n)return;const r=[],i=yk(t);if(i>=5&&i<99){const t=Tue.ChangeTracker.with(e,(e=>{Bie(e,n,"module",XC.createStringLiteral("esnext"))}));r.push(y7("fixModuleOption",t,[la.Set_the_module_option_in_your_configuration_file_to_0,"esnext"]))}const o=hk(t);if(o<4||o>99){const t=Tue.ChangeTracker.with(e,(e=>{if(!Vf(n))return;const t=[["target",XC.createStringLiteral("es2017")]];1===i&&t.push(["module",XC.createStringLiteral("commonjs")]),Mie(e,n,t)}));r.push(y7("fixTargetOption",t,[la.Set_the_target_option_in_your_configuration_file_to_0,"es2017"]))}return r.length?r:void 0}});var Rne="fixPropertyAssignment",Mne=[la.Did_you_mean_to_use_a_Colon_An_can_only_follow_a_property_name_when_the_containing_object_literal_is_part_of_a_destructuring_pattern.code];function Bne(e,t,n){e.replaceNode(t,n,XC.createPropertyAssignment(n.name,n.objectAssignmentInitializer))}function Jne(e,t){return nt(PX(e,t).parent,BE)}k7({errorCodes:Mne,fixIds:[Rne],getCodeActions(e){const{sourceFile:t,span:n}=e,r=Jne(t,n.start),i=Tue.ChangeTracker.with(e,(t=>Bne(t,e.sourceFile,r)));return[v7(Rne,i,[la.Change_0_to_1,"=",":"],Rne,[la.Switch_each_misused_0_to_1,"=",":"])]},getAllCodeActions:e=>D7(e,Mne,((e,t)=>Bne(e,t.file,Jne(t.file,t.start))))});var zne="extendsInterfaceBecomesImplements",qne=[la.Cannot_extend_an_interface_0_Did_you_mean_implements.code];function Une(e,t){const n=Gf(PX(e,t)).heritageClauses,r=n[0].getFirstToken();return 96===r.kind?{extendsToken:r,heritageClauses:n}:void 0}function Vne(e,t,n,r){if(e.replaceNode(t,n,XC.createToken(119)),2===r.length&&96===r[0].token&&119===r[1].token){const n=r[1].getFirstToken(),i=n.getFullStart();e.replaceRange(t,{pos:i,end:i},XC.createToken(28));const o=t.text;let a=n.end;for(;aVne(e,t,r,i)));return[v7(zne,o,la.Change_extends_to_implements,zne,la.Change_all_extended_interfaces_to_implements)]},fixIds:[zne],getAllCodeActions:e=>D7(e,qne,((e,t)=>{const n=Une(t.file,t.start);n&&Vne(e,t.file,n.extendsToken,n.heritageClauses)}))});var Wne="forgottenThisPropertyAccess",$ne=la.Cannot_find_name_0_Did_you_mean_the_static_member_1_0.code,Hne=[la.Cannot_find_name_0_Did_you_mean_the_instance_member_this_0.code,la.Private_identifiers_are_only_allowed_in_class_bodies_and_may_only_be_used_as_part_of_a_class_member_declaration_property_access_or_on_the_left_hand_side_of_an_in_expression.code,$ne];function Kne(e,t,n){const r=PX(e,t);if(zN(r)||qN(r))return{node:r,className:n===$ne?Gf(r).name.text:void 0}}function Gne(e,t,{node:n,className:r}){JY(n),e.replaceNode(t,n,XC.createPropertyAccessExpression(r?XC.createIdentifier(r):XC.createThis(),n))}k7({errorCodes:Hne,getCodeActions(e){const{sourceFile:t}=e,n=Kne(t,e.span.start,e.errorCode);if(!n)return;const r=Tue.ChangeTracker.with(e,(e=>Gne(e,t,n)));return[v7(Wne,r,[la.Add_0_to_unresolved_variable,n.className||"this"],Wne,la.Add_qualifier_to_all_unresolved_variables_matching_a_member_name)]},fixIds:[Wne],getAllCodeActions:e=>D7(e,Hne,((t,n)=>{const r=Kne(n.file,n.start,n.code);r&&Gne(t,e.sourceFile,r)}))});var Xne="fixInvalidJsxCharacters_expression",Qne="fixInvalidJsxCharacters_htmlEntity",Yne=[la.Unexpected_token_Did_you_mean_or_gt.code,la.Unexpected_token_Did_you_mean_or_rbrace.code];k7({errorCodes:Yne,fixIds:[Xne,Qne],getCodeActions(e){const{sourceFile:t,preferences:n,span:r}=e,i=Tue.ChangeTracker.with(e,(e=>ere(e,n,t,r.start,!1))),o=Tue.ChangeTracker.with(e,(e=>ere(e,n,t,r.start,!0)));return[v7(Xne,i,la.Wrap_invalid_character_in_an_expression_container,Xne,la.Wrap_all_invalid_characters_in_an_expression_container),v7(Qne,o,la.Convert_invalid_character_to_its_html_entity_code,Qne,la.Convert_all_invalid_characters_to_HTML_entity_code)]},getAllCodeActions:e=>D7(e,Yne,((t,n)=>ere(t,e.preferences,n.file,n.start,e.fixId===Qne)))});var Zne={">":">","}":"}"};function ere(e,t,n,r,i){const o=n.getText()[r];if(!function(e){return De(Zne,e)}(o))return;const a=i?Zne[o]:`{${tZ(n,t,o)}}`;e.replaceRangeWithText(n,{pos:r,end:r+1},a)}var tre="deleteUnmatchedParameter",nre="renameUnmatchedParameter",rre=[la.JSDoc_param_tag_has_name_0_but_there_is_no_parameter_with_that_name.code];function ire(e,t){const n=PX(e,t);if(n.parent&&bP(n.parent)&&zN(n.parent.name)){const e=n.parent,t=Ug(e),r=zg(e);if(t&&r)return{jsDocHost:t,signature:r,name:n.parent.name,jsDocParameterTag:e}}}k7({fixIds:[tre,nre],errorCodes:rre,getCodeActions:function(e){const{sourceFile:t,span:n}=e,r=[],i=ire(t,n.start);if(i)return ie(r,function(e,{name:t,jsDocHost:n,jsDocParameterTag:r}){const i=Tue.ChangeTracker.with(e,(t=>t.filterJSDocTags(e.sourceFile,n,(e=>e!==r))));return v7(tre,i,[la.Delete_unused_param_tag_0,t.getText(e.sourceFile)],tre,la.Delete_all_unused_param_tags)}(e,i)),ie(r,function(e,{name:t,jsDocHost:n,signature:r,jsDocParameterTag:i}){if(!u(r.parameters))return;const o=e.sourceFile,a=il(r),s=new Set;for(const e of a)bP(e)&&zN(e.name)&&s.add(e.name.escapedText);const c=f(r.parameters,(e=>zN(e.name)&&!s.has(e.name.escapedText)?e.name.getText(o):void 0));if(void 0===c)return;const l=XC.updateJSDocParameterTag(i,i.tagName,XC.createIdentifier(c),i.isBracketed,i.typeExpression,i.isNameFirst,i.comment),_=Tue.ChangeTracker.with(e,(e=>e.replaceJSDocComment(o,n,E(a,(e=>e===i?l:e)))));return y7(nre,_,[la.Rename_param_tag_name_0_to_1,t.getText(o),c])}(e,i)),r},getAllCodeActions:function(e){const t=new Map;return w7(Tue.ChangeTracker.with(e,(n=>{F7(e,rre,(({file:e,start:n})=>{const r=ire(e,n);r&&t.set(r.signature,ie(t.get(r.signature),r.jsDocParameterTag))})),t.forEach(((t,r)=>{if(e.fixId===tre){const e=new Set(t);n.filterJSDocTags(r.getSourceFile(),r,(t=>!e.has(t)))}}))})))}});var ore="fixUnreferenceableDecoratorMetadata";k7({errorCodes:[la.A_type_referenced_in_a_decorated_signature_must_be_imported_with_import_type_or_a_namespace_import_when_isolatedModules_and_emitDecoratorMetadata_are_enabled.code],getCodeActions:e=>{const t=function(e,t,n){const r=tt(PX(e,n),zN);if(!r||183!==r.parent.kind)return;const i=t.getTypeChecker().getSymbolAtLocation(r);return b((null==i?void 0:i.declarations)||l,en(rE,dE,tE))}(e.sourceFile,e.program,e.span.start);if(!t)return;const n=Tue.ChangeTracker.with(e,(n=>276===t.kind&&function(e,t,n,r){V2.doChangeNamedToNamespaceOrDefault(t,r,e,n.parent)}(n,e.sourceFile,t,e.program))),r=Tue.ChangeTracker.with(e,(n=>function(e,t,n,r){if(271===n.kind)return void e.insertModifierBefore(t,156,n.name);const i=273===n.kind?n:n.parent.parent;if(i.name&&i.namedBindings)return;const o=r.getTypeChecker();Tg(i,(e=>{if(111551&ix(e.symbol,o).flags)return!0}))||e.insertModifierBefore(t,156,i)}(n,e.sourceFile,t,e.program)));let i;return n.length&&(i=ie(i,y7(ore,n,la.Convert_named_imports_to_namespace_import))),r.length&&(i=ie(i,y7(ore,r,la.Use_import_type))),i},fixIds:[ore]});var are="unusedIdentifier",sre="unusedIdentifier_prefix",cre="unusedIdentifier_delete",lre="unusedIdentifier_deleteImports",_re="unusedIdentifier_infer",ure=[la._0_is_declared_but_its_value_is_never_read.code,la._0_is_declared_but_never_used.code,la.Property_0_is_declared_but_its_value_is_never_read.code,la.All_imports_in_import_declaration_are_unused.code,la.All_destructured_elements_are_unused.code,la.All_variables_are_unused.code,la.All_type_parameters_are_unused.code];function dre(e,t,n){e.replaceNode(t,n.parent,XC.createKeywordTypeNode(159))}function pre(e,t){return v7(are,e,t,cre,la.Delete_all_unused_declarations)}function fre(e,t,n){e.delete(t,un.checkDefined(nt(n.parent,bp).typeParameters,"The type parameter to delete should exist"))}function mre(e){return 102===e.kind||80===e.kind&&(276===e.parent.kind||273===e.parent.kind)}function gre(e){return 102===e.kind?tt(e.parent,nE):void 0}function hre(e,t){return WF(t.parent)&&ge(t.parent.getChildren(e))===t}function yre(e,t,n){e.delete(t,243===n.parent.kind?n.parent:n)}function vre(e,t,n,r){t!==la.Property_0_is_declared_but_its_value_is_never_read.code&&(140===r.kind&&(r=nt(r.parent,AD).typeParameter.name),zN(r)&&function(e){switch(e.parent.kind){case 169:case 168:return!0;case 260:switch(e.parent.parent.parent.kind){case 250:case 249:return!0}}return!1}(r)&&(e.replaceNode(n,r,XC.createIdentifier(`_${r.text}`)),oD(r.parent)&&Fc(r.parent).forEach((t=>{zN(t.name)&&e.replaceNode(n,t.name,XC.createIdentifier(`_${t.name.text}`))}))))}function bre(e,t,n,r,i,o,a,s){!function(e,t,n,r,i,o,a,s){const{parent:c}=e;if(oD(c))!function(e,t,n,r,i,o,a,s=!1){if(function(e,t,n,r,i,o,a){const{parent:s}=n;switch(s.kind){case 174:case 176:const c=s.parameters.indexOf(n),l=_D(s)?s.name:s,_=ice.Core.getReferencedSymbolsForNode(s.pos,l,i,r,o);if(_)for(const e of _)for(const t of e.references)if(t.kind===ice.EntryKind.Node){const e=ZN(t.node)&&GD(t.node.parent)&&t.node.parent.arguments.length>c,r=HD(t.node.parent)&&ZN(t.node.parent.expression)&&GD(t.node.parent.parent)&&t.node.parent.parent.arguments.length>c,i=(_D(t.node.parent)||lD(t.node.parent))&&t.node.parent!==n.parent&&t.node.parent.parameters.length>c;if(e||r||i)return!1}return!0;case 262:return!s.name||!function(e,t,n){return!!ice.Core.eachSymbolReferenceInFile(n,e,t,(e=>zN(e)&&GD(e.parent)&&e.parent.arguments.includes(e)))}(e,t,s.name)||kre(s,n,a);case 218:case 219:return kre(s,n,a);case 178:return!1;case 177:return!0;default:return un.failBadSyntaxKind(s)}}(r,t,n,i,o,a,s))if(n.modifiers&&n.modifiers.length>0&&(!zN(n.name)||ice.Core.isSymbolReferencedInFile(n.name,r,t)))for(const r of n.modifiers)Yl(r)&&e.deleteModifier(t,r);else!n.initializer&&xre(n,r,i)&&e.delete(t,n)}(t,n,c,r,i,o,a,s);else if(!(s&&zN(e)&&ice.Core.isSymbolReferencedInFile(e,r,n))){const r=rE(c)?e:rD(c)?c.parent:c;un.assert(r!==n,"should not delete whole source file"),t.delete(n,r)}}(t,n,e,r,i,o,a,s),zN(t)&&ice.Core.eachSymbolReferenceInFile(t,r,e,(t=>{var r;HD(t.parent)&&t.parent.name===t&&(t=t.parent),!s&&(cF((r=t).parent)&&r.parent.left===r||(sF(r.parent)||aF(r.parent))&&r.parent.operand===r)&&DF(r.parent.parent)&&n.delete(e,t.parent.parent)}))}function xre(e,t,n){const r=e.parent.parameters.indexOf(e);return!ice.Core.someSignatureUsage(e.parent,n,t,((e,t)=>!t||t.arguments.length>r))}function kre(e,t,n){const r=e.parameters,i=r.indexOf(t);return un.assert(-1!==i,"The parameter should already be in the list"),n?r.slice(i+1).every((e=>zN(e.name)&&!e.symbol.isReferenced)):i===r.length-1}k7({errorCodes:ure,getCodeActions(e){const{errorCode:t,sourceFile:n,program:r,cancellationToken:i}=e,o=r.getTypeChecker(),a=r.getSourceFiles(),s=PX(n,e.span.start);if(TP(s))return[pre(Tue.ChangeTracker.with(e,(e=>e.delete(n,s))),la.Remove_template_tag)];if(30===s.kind)return[pre(Tue.ChangeTracker.with(e,(e=>fre(e,n,s))),la.Remove_type_parameters)];const c=gre(s);if(c){const t=Tue.ChangeTracker.with(e,(e=>e.delete(n,c)));return[v7(are,t,[la.Remove_import_from_0,hx(c)],lre,la.Delete_all_unused_imports)]}if(mre(s)){const t=Tue.ChangeTracker.with(e,(e=>bre(n,s,e,o,a,r,i,!1)));if(t.length)return[v7(are,t,[la.Remove_unused_declaration_for_Colon_0,s.getText(n)],lre,la.Delete_all_unused_imports)]}if(qD(s.parent)||UD(s.parent)){if(oD(s.parent.parent)){const t=s.parent.elements,r=[t.length>1?la.Remove_unused_declarations_for_Colon_0:la.Remove_unused_declaration_for_Colon_0,E(t,(e=>e.getText(n))).join(", ")];return[pre(Tue.ChangeTracker.with(e,(e=>function(e,t,n){d(n.elements,(n=>e.delete(t,n)))}(e,n,s.parent))),r)]}return[pre(Tue.ChangeTracker.with(e,(t=>function(e,t,n,{parent:r}){if(VF(r)&&r.initializer&&O_(r.initializer))if(WF(r.parent)&&u(r.parent.declarations)>1){const i=r.parent.parent,o=i.getStart(n),a=i.end;t.delete(n,r),t.insertNodeAt(n,a,r.initializer,{prefix:kY(e.host,e.formatContext.options)+n.text.slice(OY(n.text,o-1),o),suffix:fZ(n)?";":""})}else t.replaceNode(n,r.parent,r.initializer);else t.delete(n,r)}(e,t,n,s.parent))),la.Remove_unused_destructuring_declaration)]}if(hre(n,s))return[pre(Tue.ChangeTracker.with(e,(e=>yre(e,n,s.parent))),la.Remove_variable_statement)];if(zN(s)&&$F(s.parent))return[pre(Tue.ChangeTracker.with(e,(e=>function(e,t,n){const r=n.symbol.declarations;if(r)for(const n of r)e.delete(t,n)}(e,n,s.parent))),[la.Remove_unused_declaration_for_Colon_0,s.getText(n)])];const l=[];if(140===s.kind){const t=Tue.ChangeTracker.with(e,(e=>dre(e,n,s))),r=nt(s.parent,AD).typeParameter.name.text;l.push(v7(are,t,[la.Replace_infer_0_with_unknown,r],_re,la.Replace_all_unused_infer_with_unknown))}else{const t=Tue.ChangeTracker.with(e,(e=>bre(n,s,e,o,a,r,i,!1)));if(t.length){const e=rD(s.parent)?s.parent:s;l.push(pre(t,[la.Remove_unused_declaration_for_Colon_0,e.getText(n)]))}}const _=Tue.ChangeTracker.with(e,(e=>vre(e,t,n,s)));return _.length&&l.push(v7(are,_,[la.Prefix_0_with_an_underscore,s.getText(n)],sre,la.Prefix_all_unused_declarations_with_where_possible)),l},fixIds:[sre,cre,lre,_re],getAllCodeActions:e=>{const{sourceFile:t,program:n,cancellationToken:r}=e,i=n.getTypeChecker(),o=n.getSourceFiles();return D7(e,ure,((a,s)=>{const c=PX(t,s.start);switch(e.fixId){case sre:vre(a,s.code,t,c);break;case lre:{const e=gre(c);e?a.delete(t,e):mre(c)&&bre(t,c,a,i,o,n,r,!0);break}case cre:if(140===c.kind||mre(c))break;if(TP(c))a.delete(t,c);else if(30===c.kind)fre(a,t,c);else if(qD(c.parent)){if(c.parent.parent.initializer)break;oD(c.parent.parent)&&!xre(c.parent.parent,i,o)||a.delete(t,c.parent.parent)}else{if(UD(c.parent.parent)&&c.parent.parent.parent.initializer)break;hre(t,c)?yre(a,t,c.parent):bre(t,c,a,i,o,n,r,!0)}break;case _re:140===c.kind&&dre(a,t,c);break;default:un.fail(JSON.stringify(e.fixId))}}))}});var Sre="fixUnreachableCode",Tre=[la.Unreachable_code_detected.code];function Cre(e,t,n,r,i){const o=PX(t,n),a=_c(o,du);if(a.getStart(t)!==o.getStart(t)){const e=JSON.stringify({statementKind:un.formatSyntaxKind(a.kind),tokenKind:un.formatSyntaxKind(o.kind),errorCode:i,start:n,length:r});un.fail("Token and statement should start at the same point. "+e)}const s=(CF(a.parent)?a.parent:a).parent;if(!CF(a.parent)||a===ge(a.parent.statements))switch(s.kind){case 245:if(s.elseStatement){if(CF(a.parent))break;return void e.replaceNode(t,a,XC.createBlock(l))}case 247:case 248:return void e.delete(t,s)}if(CF(a.parent)){const i=n+r,o=un.checkDefined(function(e){let t;for(const n of e){if(!(n.posCre(t,e.sourceFile,e.span.start,e.span.length,e.errorCode)));return[v7(Sre,t,la.Remove_unreachable_code,Sre,la.Remove_all_unreachable_code)]},fixIds:[Sre],getAllCodeActions:e=>D7(e,Tre,((e,t)=>Cre(e,t.file,t.start,t.length,t.code)))});var wre="fixUnusedLabel",Nre=[la.Unused_label.code];function Dre(e,t,n){const r=PX(t,n),i=nt(r.parent,JF),o=r.getStart(t),a=i.statement.getStart(t),s=Wb(o,a,t)?a:Xa(t.text,yX(i,59,t).end,!0);e.deleteRange(t,{pos:o,end:s})}k7({errorCodes:Nre,getCodeActions(e){const t=Tue.ChangeTracker.with(e,(t=>Dre(t,e.sourceFile,e.span.start)));return[v7(wre,t,la.Remove_unused_label,wre,la.Remove_all_unused_labels)]},fixIds:[wre],getAllCodeActions:e=>D7(e,Nre,((e,t)=>Dre(e,t.file,t.start)))});var Fre="fixJSDocTypes_plain",Ere="fixJSDocTypes_nullable",Pre=[la.JSDoc_types_can_only_be_used_inside_documentation_comments.code,la._0_at_the_end_of_a_type_is_not_valid_TypeScript_syntax_Did_you_mean_to_write_1.code,la._0_at_the_start_of_a_type_is_not_valid_TypeScript_syntax_Did_you_mean_to_write_1.code];function Are(e,t,n,r,i){e.replaceNode(t,n,i.typeToTypeNode(r,n,void 0))}function Ire(e,t,n){const r=_c(PX(e,t),Ore),i=r&&r.type;return i&&{typeNode:i,type:Lre(n,i)}}function Ore(e){switch(e.kind){case 234:case 179:case 180:case 262:case 177:case 181:case 200:case 174:case 173:case 169:case 172:case 171:case 178:case 265:case 216:case 260:return!0;default:return!1}}function Lre(e,t){if(YE(t)){const n=e.getTypeFromTypeNode(t.type);return n===e.getNeverType()||n===e.getVoidType()?n:e.getUnionType(ie([n,e.getUndefinedType()],t.postfix?void 0:e.getNullType()))}return e.getTypeFromTypeNode(t)}k7({errorCodes:Pre,getCodeActions(e){const{sourceFile:t}=e,n=e.program.getTypeChecker(),r=Ire(t,e.span.start,n);if(!r)return;const{typeNode:i,type:o}=r,a=i.getText(t),s=[c(o,Fre,la.Change_all_jsdoc_style_types_to_TypeScript)];return 314===i.kind&&s.push(c(o,Ere,la.Change_all_jsdoc_style_types_to_TypeScript_and_add_undefined_to_nullable_types)),s;function c(r,o,s){return v7("jdocTypes",Tue.ChangeTracker.with(e,(e=>Are(e,t,i,r,n))),[la.Change_0_to_1,a,n.typeToString(r)],o,s)}},fixIds:[Fre,Ere],getAllCodeActions(e){const{fixId:t,program:n,sourceFile:r}=e,i=n.getTypeChecker();return D7(e,Pre,((e,n)=>{const o=Ire(n.file,n.start,i);if(!o)return;const{typeNode:a,type:s}=o,c=314===a.kind&&t===Ere?i.getNullableType(s,32768):s;Are(e,r,a,c,i)}))}});var jre="fixMissingCallParentheses",Rre=[la.This_condition_will_always_return_true_since_this_function_is_always_defined_Did_you_mean_to_call_it_instead.code];function Mre(e,t,n){e.replaceNodeWithText(t,n,`${n.text}()`)}function Bre(e,t){const n=PX(e,t);if(HD(n.parent)){let e=n.parent;for(;HD(e.parent);)e=e.parent;return e.name}if(zN(n))return n}k7({errorCodes:Rre,fixIds:[jre],getCodeActions(e){const{sourceFile:t,span:n}=e,r=Bre(t,n.start);if(!r)return;const i=Tue.ChangeTracker.with(e,(t=>Mre(t,e.sourceFile,r)));return[v7(jre,i,la.Add_missing_call_parentheses,jre,la.Add_all_missing_call_parentheses)]},getAllCodeActions:e=>D7(e,Rre,((e,t)=>{const n=Bre(t.file,t.start);n&&Mre(e,t.file,n)}))});var Jre="fixMissingTypeAnnotationOnExports",zre="add-annotation",qre="add-type-assertion",Ure=[la.Function_must_have_an_explicit_return_type_annotation_with_isolatedDeclarations.code,la.Method_must_have_an_explicit_return_type_annotation_with_isolatedDeclarations.code,la.At_least_one_accessor_must_have_an_explicit_type_annotation_with_isolatedDeclarations.code,la.Variable_must_have_an_explicit_type_annotation_with_isolatedDeclarations.code,la.Parameter_must_have_an_explicit_type_annotation_with_isolatedDeclarations.code,la.Property_must_have_an_explicit_type_annotation_with_isolatedDeclarations.code,la.Expression_type_can_t_be_inferred_with_isolatedDeclarations.code,la.Binding_elements_can_t_be_exported_directly_with_isolatedDeclarations.code,la.Computed_property_names_on_class_or_object_literals_cannot_be_inferred_with_isolatedDeclarations.code,la.Computed_properties_must_be_number_or_string_literals_variables_or_dotted_expressions_with_isolatedDeclarations.code,la.Enum_member_initializers_must_be_computable_without_references_to_external_symbols_with_isolatedDeclarations.code,la.Extends_clause_can_t_contain_an_expression_with_isolatedDeclarations.code,la.Objects_that_contain_shorthand_properties_can_t_be_inferred_with_isolatedDeclarations.code,la.Objects_that_contain_spread_assignments_can_t_be_inferred_with_isolatedDeclarations.code,la.Arrays_with_spread_elements_can_t_inferred_with_isolatedDeclarations.code,la.Default_exports_can_t_be_inferred_with_isolatedDeclarations.code,la.Only_const_arrays_can_be_inferred_with_isolatedDeclarations.code,la.Assigning_properties_to_functions_without_declaring_them_is_not_supported_with_isolatedDeclarations_Add_an_explicit_declaration_for_the_properties_assigned_to_this_function.code,la.Declaration_emit_for_this_parameter_requires_implicitly_adding_undefined_to_its_type_This_is_not_supported_with_isolatedDeclarations.code,la.Type_containing_private_name_0_can_t_be_used_with_isolatedDeclarations.code,la.Add_satisfies_and_a_type_assertion_to_this_expression_satisfies_T_as_T_to_make_the_type_explicit.code],Vre=new Set([177,174,172,262,218,219,260,169,277,263,206,207]),Wre=531469;function $re(e,t,n,r,i){const o=Hre(n,r,i);o.result&&o.textChanges.length&&t.push(v7(e,o.textChanges,o.result,Jre,la.Add_all_missing_type_annotations))}function Hre(e,t,n){const r={typeNode:void 0,mutatedTarget:!1},i=Tue.ChangeTracker.fromContext(e),o=e.sourceFile,a=e.program,s=a.getTypeChecker(),c=hk(a.getCompilerOptions()),l=Z9(e.sourceFile,e.program,e.preferences,e.host),_=new Set,u=new Set,d=rU({preserveSourceNewlines:!1}),p=n({addTypeAnnotation:function(t){e.cancellationToken.throwIfCancellationRequested();const n=PX(o,t.start),r=g(n);if(r)return $F(r)?function(e){var t;if(null==u?void 0:u.has(e))return;null==u||u.add(e);const n=s.getTypeAtLocation(e),r=s.getPropertiesOfType(n);if(!e.name||0===r.length)return;const c=[];for(const t of r)fs(t.name,hk(a.getCompilerOptions()))&&(t.valueDeclaration&&VF(t.valueDeclaration)||c.push(XC.createVariableStatement([XC.createModifier(95)],XC.createVariableDeclarationList([XC.createVariableDeclaration(t.name,void 0,w(s.getTypeOfSymbol(t),e),void 0)]))));if(0===c.length)return;const l=[];(null==(t=e.modifiers)?void 0:t.some((e=>95===e.kind)))&&l.push(XC.createModifier(95)),l.push(XC.createModifier(138));const _=XC.createModuleDeclaration(l,e.name,XC.createModuleBlock(c),101441696);return i.insertNodeAfter(o,e,_),[la.Annotate_types_of_properties_expando_function_in_a_namespace]}(r):h(r);const c=_c(n,(e=>Vre.has(e.kind)&&(!qD(e)&&!UD(e)||VF(e.parent))));return c?h(c):void 0},addInlineAssertion:function(t){e.cancellationToken.throwIfCancellationRequested();const n=PX(o,t.start);if(g(n))return;const r=F(n,t);if(!r||Zg(r)||Zg(r.parent))return;const a=U_(r),c=BE(r);if(!c&&lu(r))return;if(_c(r,x_))return;if(_c(r,zE))return;if(a&&(_c(r,jE)||_c(r,v_)))return;if(dF(r))return;const l=_c(r,VF),_=l&&s.getTypeAtLocation(l);if(_&&8192&_.flags)return;if(!a&&!c)return;const{typeNode:u,mutatedTarget:d}=x(r,_);return u&&!d?(c?i.insertNodeAt(o,r.end,m(LY(r.name),u),{prefix:": "}):a?i.replaceNode(o,r,function(e,t){return f(e)&&(e=XC.createParenthesizedExpression(e)),XC.createAsExpression(XC.createSatisfiesExpression(e,LY(t)),t)}(LY(r),u)):un.assertNever(r),[la.Add_satisfies_and_an_inline_type_assertion_with_0,D(u)]):void 0},extractAsVariable:function(t){e.cancellationToken.throwIfCancellationRequested();const n=F(PX(o,t.start),t);if(!n||Zg(n)||Zg(n.parent))return;if(!U_(n))return;if(WD(n))return i.replaceNode(o,n,m(n,XC.createTypeReferenceNode("const"))),[la.Mark_array_literal_as_const];const r=_c(n,ME);if(r){if(r===n.parent&&ob(n))return;const e=XC.createUniqueName(t3(n,o,s,o),16);let t=n,a=n;if(dF(t)&&(t=nh(t.parent),a=T(t.parent)?t=t.parent:m(t,XC.createTypeReferenceNode("const"))),ob(t))return;const c=XC.createVariableStatement(void 0,XC.createVariableDeclarationList([XC.createVariableDeclaration(e,void 0,void 0,a)],2)),l=_c(n,du);return i.insertNodeBefore(o,l,c),i.replaceNode(o,t,XC.createAsExpression(XC.cloneNode(e),XC.createTypeQueryNode(XC.cloneNode(e)))),[la.Extract_to_variable_and_replace_with_0_as_typeof_0,D(e)]}}});return l.writeFixes(i),{result:p,textChanges:i.getChanges()};function f(e){return!(ob(e)||GD(e)||$D(e)||WD(e))}function m(e,t){return f(e)&&(e=XC.createParenthesizedExpression(e)),XC.createAsExpression(e,t)}function g(e){const t=_c(e,(e=>du(e)?"quit":sC(e)));if(t&&sC(t)){let e=t;if(cF(e)&&(e=e.left,!sC(e)))return;const n=s.getTypeAtLocation(e.expression);if(!n)return;if($(s.getPropertiesOfType(n),(e=>e.valueDeclaration===t||e.valueDeclaration===t.parent))){const e=n.symbol.valueDeclaration;if(e){if(jT(e)&&VF(e.parent))return e.parent;if($F(e))return e}}}}function h(e){if(!(null==_?void 0:_.has(e)))switch(null==_||_.add(e),e.kind){case 169:case 172:case 260:return function(e){const{typeNode:t}=x(e);if(t)return e.type?i.replaceNode(hd(e),e.type,t):i.tryInsertTypeAnnotation(hd(e),e,t),[la.Add_annotation_of_type_0,D(t)]}(e);case 219:case 218:case 262:case 174:case 177:return function(e,t){if(e.type)return;const{typeNode:n}=x(e);return n?(i.tryInsertTypeAnnotation(t,e,n),[la.Add_return_type_0,D(n)]):void 0}(e,o);case 277:return function(e){if(e.isExportEquals)return;const{typeNode:t}=x(e.expression);if(!t)return;const n=XC.createUniqueName("_default");return i.replaceNodeWithNodes(o,e,[XC.createVariableStatement(void 0,XC.createVariableDeclarationList([XC.createVariableDeclaration(n,void 0,t,e.expression)],2)),XC.updateExportAssignment(e,null==e?void 0:e.modifiers,n)]),[la.Extract_default_export_to_variable]}(e);case 263:return function(e){var t,n;const r=null==(t=e.heritageClauses)?void 0:t.find((e=>96===e.token)),a=null==r?void 0:r.types[0];if(!a)return;const{typeNode:s}=x(a.expression);if(!s)return;const c=XC.createUniqueName(e.name?e.name.text+"Base":"Anonymous",16),l=XC.createVariableStatement(void 0,XC.createVariableDeclarationList([XC.createVariableDeclaration(c,void 0,s,a.expression)],2));i.insertNodeBefore(o,e,l);const _=_s(o.text,a.end),u=(null==(n=null==_?void 0:_[_.length-1])?void 0:n.end)??a.end;return i.replaceRange(o,{pos:a.getFullStart(),end:u},c,{prefix:" "}),[la.Extract_base_class_to_variable]}(e);case 206:case 207:return function(e){var t;const n=e.parent,r=e.parent.parent.parent;if(!n.initializer)return;let a;const s=[];if(zN(n.initializer))a={expression:{kind:3,identifier:n.initializer}};else{const e=XC.createUniqueName("dest",16);a={expression:{kind:3,identifier:e}},s.push(XC.createVariableStatement(void 0,XC.createVariableDeclarationList([XC.createVariableDeclaration(e,void 0,void 0,n.initializer)],2)))}const c=[];UD(e)?y(e,c,a):v(e,c,a);const l=new Map;for(const e of c){if(e.element.propertyName&&rD(e.element.propertyName)){const t=e.element.propertyName.expression,n=XC.getGeneratedNameForNode(t),r=XC.createVariableDeclaration(n,void 0,void 0,t),i=XC.createVariableDeclarationList([r],2),o=XC.createVariableStatement(void 0,i);s.push(o),l.set(t,n)}const n=e.element.name;if(UD(n))y(n,c,e);else if(qD(n))v(n,c,e);else{const{typeNode:i}=x(n);let o=b(e,l);if(e.element.initializer){const n=null==(t=e.element)?void 0:t.propertyName,r=XC.createUniqueName(n&&zN(n)?n.text:"temp",16);s.push(XC.createVariableStatement(void 0,XC.createVariableDeclarationList([XC.createVariableDeclaration(r,void 0,void 0,o)],2))),o=XC.createConditionalExpression(XC.createBinaryExpression(r,XC.createToken(37),XC.createIdentifier("undefined")),XC.createToken(58),e.element.initializer,XC.createToken(59),o)}const a=wv(r,32)?[XC.createToken(95)]:void 0;s.push(XC.createVariableStatement(a,XC.createVariableDeclarationList([XC.createVariableDeclaration(n,void 0,i,o)],2)))}}return r.declarationList.declarations.length>1&&s.push(XC.updateVariableStatement(r,r.modifiers,XC.updateVariableDeclarationList(r.declarationList,r.declarationList.declarations.filter((t=>t!==e.parent))))),i.replaceNodeWithNodes(o,r,s),[la.Extract_binding_expressions_to_variable]}(e);default:throw new Error(`Cannot find a fix for the given node ${e.kind}`)}}function y(e,t,n){for(let r=0;r=0;--e){const i=n[e].expression;0===i.kind?r=XC.createPropertyAccessChain(r,void 0,XC.createIdentifier(i.text)):1===i.kind?r=XC.createElementAccessExpression(r,t.get(i.computed)):2===i.kind&&(r=XC.createElementAccessExpression(r,i.arrayIndex))}return r}function x(e,n){if(1===t)return C(e);let i;if(Zg(e)){const t=s.getSignatureFromDeclaration(e);if(t){const n=s.getTypePredicateOfSignature(t);if(n)return n.type?{typeNode:N(n,_c(e,lu)??o,c(n.type)),mutatedTarget:!1}:r;i=s.getReturnTypeOfSignature(t)}}else i=s.getTypeAtLocation(e);if(!i)return r;if(2===t){n&&(i=n);const e=s.getWidenedLiteralType(i);if(s.isTypeAssignableTo(e,i))return r;i=e}const a=_c(e,lu)??o;return oD(e)&&s.requiresAddingImplicitUndefined(e,a)&&(i=s.getUnionType([s.getUndefinedType(),i],0)),{typeNode:w(i,a,c(i)),mutatedTarget:!1};function c(t){return(VF(e)||cD(e)&&wv(e,264))&&8192&t.flags?1048576:0}}function k(e){return XC.createTypeQueryNode(LY(e))}function S(e,t,n,a,s,c,l,_){const u=[],d=[];let p;const f=_c(e,du);for(const t of a(e))s(t)?(g(),ob(t.expression)?(u.push(k(t.expression)),d.push(t)):m(t.expression)):(p??(p=[])).push(t);return 0===d.length?r:(g(),i.replaceNode(o,e,l(d)),{typeNode:_(u),mutatedTarget:!0});function m(e){const r=XC.createUniqueName(t+"_Part"+(d.length+1),16),a=n?XC.createAsExpression(e,XC.createTypeReferenceNode("const")):e,s=XC.createVariableStatement(void 0,XC.createVariableDeclarationList([XC.createVariableDeclaration(r,void 0,void 0,a)],2));i.insertNodeBefore(o,f,s),u.push(k(r)),d.push(c(r))}function g(){p&&(m(l(p)),p=void 0)}}function T(e){return V_(e)&&xl(e.type)}function C(e){if(oD(e))return r;if(BE(e))return{typeNode:k(e.name),mutatedTarget:!1};if(ob(e))return{typeNode:k(e),mutatedTarget:!1};if(T(e))return C(e.expression);if(WD(e)){const t=_c(e,VF);return function(e,t="temp"){const n=!!_c(e,T);return n?S(e,t,n,(e=>e.elements),dF,XC.createSpreadElement,(e=>XC.createArrayLiteralExpression(e,!0)),(e=>XC.createTupleTypeNode(e.map(XC.createRestTypeNode)))):r}(e,t&&zN(t.name)?t.name.text:void 0)}if($D(e)){const t=_c(e,VF);return function(e,t="temp"){return S(e,t,!!_c(e,T),(e=>e.properties),JE,XC.createSpreadAssignment,(e=>XC.createObjectLiteralExpression(e,!0)),XC.createIntersectionTypeNode)}(e,t&&zN(t.name)?t.name.text:void 0)}if(VF(e)&&e.initializer)return C(e.initializer);if(lF(e)){const{typeNode:t,mutatedTarget:n}=C(e.whenTrue);if(!t)return r;const{typeNode:i,mutatedTarget:o}=C(e.whenFalse);return i?{typeNode:XC.createUnionTypeNode([t,i]),mutatedTarget:n||o}:r}return r}function w(e,t,n=0){let r=!1;const i=Eie(s,e,t,Wre|n,1,{moduleResolverHost:a,trackSymbol:()=>!0,reportTruncationError(){r=!0}});if(!i)return;const o=Fie(i,l,c);return r?XC.createKeywordTypeNode(133):o}function N(e,t,n=0){let r=!1;const i=Pie(s,l,e,t,c,Wre|n,1,{moduleResolverHost:a,trackSymbol:()=>!0,reportTruncationError(){r=!0}});return r?XC.createKeywordTypeNode(133):i}function D(e){nw(e,1);const t=d.printNode(4,e,o);return t.length>Uu?t.substring(0,Uu-3)+"...":(nw(e,0),t)}function F(e,t){for(;e&&e.endt.addTypeAnnotation(e.span))),$re(zre,t,e,1,(t=>t.addTypeAnnotation(e.span))),$re(zre,t,e,2,(t=>t.addTypeAnnotation(e.span))),$re(qre,t,e,0,(t=>t.addInlineAssertion(e.span))),$re(qre,t,e,1,(t=>t.addInlineAssertion(e.span))),$re(qre,t,e,2,(t=>t.addInlineAssertion(e.span))),$re("extract-expression",t,e,0,(t=>t.extractAsVariable(e.span))),t},getAllCodeActions:e=>w7(Hre(e,0,(t=>{F7(e,Ure,(e=>{t.addTypeAnnotation(e)}))})).textChanges)});var Kre="fixAwaitInSyncFunction",Gre=[la.await_expressions_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules.code,la.await_using_statements_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules.code,la.for_await_loops_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules.code,la.Cannot_find_name_0_Did_you_mean_to_write_this_in_an_async_function.code];function Xre(e,t){const n=Hf(PX(e,t));if(!n)return;let r;switch(n.kind){case 174:r=n.name;break;case 262:case 218:r=yX(n,100,e);break;case 219:r=yX(n,n.typeParameters?30:21,e)||ge(n.parameters);break;default:return}return r&&{insertBefore:r,returnType:(i=n,i.type?i.type:VF(i.parent)&&i.parent.type&&bD(i.parent.type)?i.parent.type.type:void 0)};var i}function Qre(e,t,{insertBefore:n,returnType:r}){if(r){const n=lm(r);n&&80===n.kind&&"Promise"===n.text||e.replaceNode(t,r,XC.createTypeReferenceNode("Promise",XC.createNodeArray([r])))}e.insertModifierBefore(t,134,n)}k7({errorCodes:Gre,getCodeActions(e){const{sourceFile:t,span:n}=e,r=Xre(t,n.start);if(!r)return;const i=Tue.ChangeTracker.with(e,(e=>Qre(e,t,r)));return[v7(Kre,i,la.Add_async_modifier_to_containing_function,Kre,la.Add_all_missing_async_modifiers)]},fixIds:[Kre],getAllCodeActions:function(e){const t=new Set;return D7(e,Gre,((n,r)=>{const i=Xre(r.file,r.start);i&&vx(t,jB(i.insertBefore))&&Qre(n,e.sourceFile,i)}))}});var Yre=[la._0_is_defined_as_an_accessor_in_class_1_but_is_overridden_here_in_2_as_an_instance_property.code,la._0_is_defined_as_a_property_in_class_1_but_is_overridden_here_in_2_as_an_accessor.code],Zre="fixPropertyOverrideAccessor";function eie(e,t,n,r,i){let o,a;if(r===la._0_is_defined_as_an_accessor_in_class_1_but_is_overridden_here_in_2_as_an_instance_property.code)o=t,a=t+n;else if(r===la._0_is_defined_as_a_property_in_class_1_but_is_overridden_here_in_2_as_an_accessor.code){const n=i.program.getTypeChecker(),r=PX(e,t).parent;un.assert(u_(r),"error span of fixPropertyOverrideAccessor should only be on an accessor");const s=r.parent;un.assert(__(s),"erroneous accessors should only be inside classes");const c=be(Zie(s,n));if(!c)return[];const l=fc(Op(r.name)),_=n.getPropertyOfType(n.getTypeAtLocation(c),l);if(!_||!_.valueDeclaration)return[];o=_.valueDeclaration.pos,a=_.valueDeclaration.end,e=hd(_.valueDeclaration)}else un.fail("fixPropertyOverrideAccessor codefix got unexpected error code "+r);return $ie(e,i.program,o,a,i,la.Generate_get_and_set_accessors.message)}k7({errorCodes:Yre,getCodeActions(e){const t=eie(e.sourceFile,e.span.start,e.span.length,e.errorCode,e);if(t)return[v7(Zre,t,la.Generate_get_and_set_accessors,Zre,la.Generate_get_and_set_accessors_for_all_overriding_properties)]},fixIds:[Zre],getAllCodeActions:e=>D7(e,Yre,((t,n)=>{const r=eie(n.file,n.start,n.length,n.code,e);if(r)for(const n of r)t.pushRaw(e.sourceFile,n)}))});var tie="inferFromUsage",nie=[la.Variable_0_implicitly_has_type_1_in_some_locations_where_its_type_cannot_be_determined.code,la.Variable_0_implicitly_has_an_1_type.code,la.Parameter_0_implicitly_has_an_1_type.code,la.Rest_parameter_0_implicitly_has_an_any_type.code,la.Property_0_implicitly_has_type_any_because_its_get_accessor_lacks_a_return_type_annotation.code,la._0_which_lacks_return_type_annotation_implicitly_has_an_1_return_type.code,la.Property_0_implicitly_has_type_any_because_its_set_accessor_lacks_a_parameter_type_annotation.code,la.Member_0_implicitly_has_an_1_type.code,la.Variable_0_implicitly_has_type_1_in_some_locations_but_a_better_type_may_be_inferred_from_usage.code,la.Variable_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage.code,la.Parameter_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage.code,la.Rest_parameter_0_implicitly_has_an_any_type_but_a_better_type_may_be_inferred_from_usage.code,la.Property_0_implicitly_has_type_any_but_a_better_type_for_its_get_accessor_may_be_inferred_from_usage.code,la._0_implicitly_has_an_1_return_type_but_a_better_type_may_be_inferred_from_usage.code,la.Property_0_implicitly_has_type_any_but_a_better_type_for_its_set_accessor_may_be_inferred_from_usage.code,la.Member_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage.code,la.this_implicitly_has_type_any_because_it_does_not_have_a_type_annotation.code];function rie(e,t){switch(e){case la.Parameter_0_implicitly_has_an_1_type.code:case la.Parameter_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage.code:return fD(Hf(t))?la.Infer_type_of_0_from_usage:la.Infer_parameter_types_from_usage;case la.Rest_parameter_0_implicitly_has_an_any_type.code:case la.Rest_parameter_0_implicitly_has_an_any_type_but_a_better_type_may_be_inferred_from_usage.code:return la.Infer_parameter_types_from_usage;case la.this_implicitly_has_type_any_because_it_does_not_have_a_type_annotation.code:return la.Infer_this_type_of_0_from_usage;default:return la.Infer_type_of_0_from_usage}}function iie(e,t,n,r,i,o,a,s,c){if(!Xl(n.kind)&&80!==n.kind&&26!==n.kind&&110!==n.kind)return;const{parent:l}=n,_=Z9(t,i,c,s);switch(r=function(e){switch(e){case la.Variable_0_implicitly_has_type_1_in_some_locations_but_a_better_type_may_be_inferred_from_usage.code:return la.Variable_0_implicitly_has_type_1_in_some_locations_where_its_type_cannot_be_determined.code;case la.Variable_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage.code:return la.Variable_0_implicitly_has_an_1_type.code;case la.Parameter_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage.code:return la.Parameter_0_implicitly_has_an_1_type.code;case la.Rest_parameter_0_implicitly_has_an_any_type_but_a_better_type_may_be_inferred_from_usage.code:return la.Rest_parameter_0_implicitly_has_an_any_type.code;case la.Property_0_implicitly_has_type_any_but_a_better_type_for_its_get_accessor_may_be_inferred_from_usage.code:return la.Property_0_implicitly_has_type_any_because_its_get_accessor_lacks_a_return_type_annotation.code;case la._0_implicitly_has_an_1_return_type_but_a_better_type_may_be_inferred_from_usage.code:return la._0_which_lacks_return_type_annotation_implicitly_has_an_1_return_type.code;case la.Property_0_implicitly_has_type_any_but_a_better_type_for_its_set_accessor_may_be_inferred_from_usage.code:return la.Property_0_implicitly_has_type_any_because_its_set_accessor_lacks_a_parameter_type_annotation.code;case la.Member_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage.code:return la.Member_0_implicitly_has_an_1_type.code}return e}(r)){case la.Member_0_implicitly_has_an_1_type.code:case la.Variable_0_implicitly_has_type_1_in_some_locations_where_its_type_cannot_be_determined.code:if(VF(l)&&a(l)||cD(l)||sD(l))return oie(e,_,t,l,i,s,o),_.writeFixes(e),l;if(HD(l)){const n=sZ(_ie(l.name,i,o),l,i,s);if(n){const r=XC.createJSDocTypeTag(void 0,XC.createJSDocTypeExpression(n),void 0);e.addJSDocTags(t,nt(l.parent.parent,DF),[r])}return _.writeFixes(e),l}return;case la.Variable_0_implicitly_has_an_1_type.code:{const t=i.getTypeChecker().getSymbolAtLocation(n);return t&&t.valueDeclaration&&VF(t.valueDeclaration)&&a(t.valueDeclaration)?(oie(e,_,hd(t.valueDeclaration),t.valueDeclaration,i,s,o),_.writeFixes(e),t.valueDeclaration):void 0}}const u=Hf(n);if(void 0===u)return;let d;switch(r){case la.Parameter_0_implicitly_has_an_1_type.code:if(fD(u)){aie(e,_,t,u,i,s,o),d=u;break}case la.Rest_parameter_0_implicitly_has_an_any_type.code:if(a(u)){const n=nt(l,oD);!function(e,t,n,r,i,o,a,s){if(!zN(r.name))return;const c=function(e,t,n,r){const i=uie(e,t,n,r);return i&&die(n,i,r).parameters(e)||e.parameters.map((e=>({declaration:e,type:zN(e.name)?_ie(e.name,n,r):n.getTypeChecker().getAnyType()})))}(i,n,o,s);if(un.assert(i.parameters.length===c.length,"Parameter count and inference count should match"),Fm(i))cie(e,n,c,o,a);else{const r=tF(i)&&!yX(i,21,n);r&&e.insertNodeBefore(n,ge(i.parameters),XC.createToken(21));for(const{declaration:r,type:i}of c)!r||r.type||r.initializer||sie(e,t,n,r,i,o,a);r&&e.insertNodeAfter(n,ve(i.parameters),XC.createToken(22))}}(e,_,t,n,u,i,s,o),d=n}break;case la.Property_0_implicitly_has_type_any_because_its_get_accessor_lacks_a_return_type_annotation.code:case la._0_which_lacks_return_type_annotation_implicitly_has_an_1_return_type.code:pD(u)&&zN(u.name)&&(sie(e,_,t,u,_ie(u.name,i,o),i,s),d=u);break;case la.Property_0_implicitly_has_type_any_because_its_set_accessor_lacks_a_parameter_type_annotation.code:fD(u)&&(aie(e,_,t,u,i,s,o),d=u);break;case la.this_implicitly_has_type_any_because_it_does_not_have_a_type_annotation.code:Tue.isThisTypeAnnotatable(u)&&a(u)&&(function(e,t,n,r,i,o){const a=uie(n,t,r,o);if(!a||!a.length)return;const s=sZ(die(r,a,o).thisParameter(),n,r,i);s&&(Fm(n)?function(e,t,n,r){e.addJSDocTags(t,n,[XC.createJSDocThisTag(void 0,XC.createJSDocTypeExpression(r))])}(e,t,n,s):e.tryInsertThisTypeAnnotation(t,n,s))}(e,t,u,i,s,o),d=u);break;default:return un.fail(String(r))}return _.writeFixes(e),d}function oie(e,t,n,r,i,o,a){zN(r.name)&&sie(e,t,n,r,_ie(r.name,i,a),i,o)}function aie(e,t,n,r,i,o,a){const s=fe(r.parameters);if(s&&zN(r.name)&&zN(s.name)){let c=_ie(r.name,i,a);c===i.getTypeChecker().getAnyType()&&(c=_ie(s.name,i,a)),Fm(r)?cie(e,n,[{declaration:s,type:c}],i,o):sie(e,t,n,s,c,i,o)}}function sie(e,t,n,r,i,o,a){const s=sZ(i,r,o,a);if(s)if(Fm(n)&&171!==r.kind){const t=VF(r)?tt(r.parent.parent,wF):r;if(!t)return;const i=XC.createJSDocTypeExpression(s),o=pD(r)?XC.createJSDocReturnTag(void 0,i,void 0):XC.createJSDocTypeTag(void 0,i,void 0);e.addJSDocTags(n,t,[o])}else(function(e,t,n,r,i,o){const a=qie(e,o);return!(!a||!r.tryInsertTypeAnnotation(n,t,a.typeNode))&&(d(a.symbols,(e=>i.addImportFromExportedSymbol(e,!0))),!0)})(s,r,n,e,t,hk(o.getCompilerOptions()))||e.tryInsertTypeAnnotation(n,r,s)}function cie(e,t,n,r,i){const o=n.length&&n[0].declaration.parent;if(!o)return;const a=B(n,(e=>{const t=e.declaration;if(t.initializer||tl(t)||!zN(t.name))return;const n=e.type&&sZ(e.type,t,r,i);return n?(nw(XC.cloneNode(t.name),7168),{name:XC.cloneNode(t.name),param:t,isOptional:!!e.isOptional,typeNode:n}):void 0}));if(a.length)if(tF(o)||eF(o)){const n=tF(o)&&!yX(o,21,t);n&&e.insertNodeBefore(t,ge(o.parameters),XC.createToken(21)),d(a,(({typeNode:n,param:r})=>{const i=XC.createJSDocTypeTag(void 0,XC.createJSDocTypeExpression(n)),o=XC.createJSDocComment(void 0,[i]);e.insertNodeAt(t,r.getStart(t),o,{suffix:" "})})),n&&e.insertNodeAfter(t,ve(o.parameters),XC.createToken(22))}else{const n=E(a,(({name:e,typeNode:t,isOptional:n})=>XC.createJSDocParameterTag(void 0,e,!!n,XC.createJSDocTypeExpression(t),!1,void 0)));e.addJSDocTags(t,o,n)}}function lie(e,t,n){return B(ice.getReferenceEntriesForNode(-1,e,t,t.getSourceFiles(),n),(e=>e.kind!==ice.EntryKind.Span?tt(e.node,zN):void 0))}function _ie(e,t,n){return die(t,lie(e,t,n),n).single()}function uie(e,t,n,r){let i;switch(e.kind){case 176:i=yX(e,137,t);break;case 219:case 218:const n=e.parent;i=(VF(n)||cD(n))&&zN(n.name)?n.name:e.name;break;case 262:case 174:case 173:i=e.name}if(i)return lie(i,n,r)}function die(e,t,n){const r=e.getTypeChecker(),i={string:()=>r.getStringType(),number:()=>r.getNumberType(),Array:e=>r.createArrayType(e),Promise:e=>r.createPromiseType(e)},o=[r.getStringType(),r.getNumberType(),r.createArrayType(r.getAnyType()),r.createPromiseType(r.getAnyType())];return{single:function(){return f(s(t))},parameters:function(i){if(0===t.length||!i.parameters)return;const o={isNumber:void 0,isString:void 0,isNumberOrString:void 0,candidateTypes:void 0,properties:void 0,calls:void 0,constructs:void 0,numberIndex:void 0,stringIndex:void 0,candidateThisTypes:void 0,inferredTypes:void 0};for(const e of t)n.throwIfCancellationRequested(),c(e,o);const a=[...o.constructs||[],...o.calls||[]];return i.parameters.map(((t,o)=>{const c=[],l=Mu(t);let _=!1;for(const e of a)if(e.argumentTypes.length<=o)_=Fm(i),c.push(r.getUndefinedType());else if(l)for(let t=o;t{t.has(n)||t.set(n,[]),t.get(n).push(e)}));const n=new Map;return t.forEach(((e,t)=>{n.set(t,a(e))})),{isNumber:e.some((e=>e.isNumber)),isString:e.some((e=>e.isString)),isNumberOrString:e.some((e=>e.isNumberOrString)),candidateTypes:O(e,(e=>e.candidateTypes)),properties:n,calls:O(e,(e=>e.calls)),constructs:O(e,(e=>e.constructs)),numberIndex:d(e,(e=>e.numberIndex)),stringIndex:d(e,(e=>e.stringIndex)),candidateThisTypes:O(e,(e=>e.candidateThisTypes)),inferredTypes:void 0}}function s(e){const t={isNumber:void 0,isString:void 0,isNumberOrString:void 0,candidateTypes:void 0,properties:void 0,calls:void 0,constructs:void 0,numberIndex:void 0,stringIndex:void 0,candidateThisTypes:void 0,inferredTypes:void 0};for(const r of e)n.throwIfCancellationRequested(),c(r,t);return m(t)}function c(e,t){for(;ub(e);)e=e.parent;switch(e.parent.kind){case 244:!function(e,t){v(t,GD(e)?r.getVoidType():r.getAnyType())}(e,t);break;case 225:t.isNumber=!0;break;case 224:!function(e,t){switch(e.operator){case 46:case 47:case 41:case 55:t.isNumber=!0;break;case 40:t.isNumberOrString=!0}}(e.parent,t);break;case 226:!function(e,t,n){switch(t.operatorToken.kind){case 43:case 42:case 44:case 45:case 48:case 49:case 50:case 51:case 52:case 53:case 66:case 68:case 67:case 69:case 70:case 74:case 75:case 79:case 71:case 73:case 72:case 41:case 30:case 33:case 32:case 34:const i=r.getTypeAtLocation(t.left===e?t.right:t.left);1056&i.flags?v(n,i):n.isNumber=!0;break;case 65:case 40:const o=r.getTypeAtLocation(t.left===e?t.right:t.left);1056&o.flags?v(n,o):296&o.flags?n.isNumber=!0:402653316&o.flags?n.isString=!0:1&o.flags||(n.isNumberOrString=!0);break;case 64:case 35:case 37:case 38:case 36:case 77:case 78:case 76:v(n,r.getTypeAtLocation(t.left===e?t.right:t.left));break;case 103:e===t.left&&(n.isString=!0);break;case 57:case 61:e!==t.left||260!==e.parent.parent.kind&&!nb(e.parent.parent,!0)||v(n,r.getTypeAtLocation(t.right))}}(e,e.parent,t);break;case 296:case 297:!function(e,t){v(t,r.getTypeAtLocation(e.parent.parent.expression))}(e.parent,t);break;case 213:case 214:e.parent.expression===e?function(e,t){const n={argumentTypes:[],return_:{isNumber:void 0,isString:void 0,isNumberOrString:void 0,candidateTypes:void 0,properties:void 0,calls:void 0,constructs:void 0,numberIndex:void 0,stringIndex:void 0,candidateThisTypes:void 0,inferredTypes:void 0}};if(e.arguments)for(const t of e.arguments)n.argumentTypes.push(r.getTypeAtLocation(t));c(e,n.return_),213===e.kind?(t.calls||(t.calls=[])).push(n):(t.constructs||(t.constructs=[])).push(n)}(e.parent,t):_(e,t);break;case 211:!function(e,t){const n=pc(e.name.text);t.properties||(t.properties=new Map);const r=t.properties.get(n)||{isNumber:void 0,isString:void 0,isNumberOrString:void 0,candidateTypes:void 0,properties:void 0,calls:void 0,constructs:void 0,numberIndex:void 0,stringIndex:void 0,candidateThisTypes:void 0,inferredTypes:void 0};c(e,r),t.properties.set(n,r)}(e.parent,t);break;case 212:!function(e,t,n){if(t!==e.argumentExpression){const t=r.getTypeAtLocation(e.argumentExpression),i={isNumber:void 0,isString:void 0,isNumberOrString:void 0,candidateTypes:void 0,properties:void 0,calls:void 0,constructs:void 0,numberIndex:void 0,stringIndex:void 0,candidateThisTypes:void 0,inferredTypes:void 0};c(e,i),296&t.flags?n.numberIndex=i:n.stringIndex=i}else n.isNumberOrString=!0}(e.parent,e,t);break;case 303:case 304:!function(e,t){const n=VF(e.parent.parent)?e.parent.parent:e.parent;b(t,r.getTypeAtLocation(n))}(e.parent,t);break;case 172:!function(e,t){b(t,r.getTypeAtLocation(e.parent))}(e.parent,t);break;case 260:{const{name:n,initializer:i}=e.parent;if(e===n){i&&v(t,r.getTypeAtLocation(i));break}}default:return _(e,t)}}function _(e,t){vm(e)&&v(t,r.getContextualType(e))}function p(e){return f(m(e))}function f(e){if(!e.length)return r.getAnyType();const t=r.getUnionType([r.getStringType(),r.getNumberType()]);let n=function(e,t){const n=[];for(const r of e)for(const{high:e,low:i}of t)e(r)&&(un.assert(!i(r),"Priority can't have both low and high"),n.push(i));return e.filter((e=>n.every((t=>!t(e)))))}(e,[{high:e=>e===r.getStringType()||e===r.getNumberType(),low:e=>e===t},{high:e=>!(16385&e.flags),low:e=>!!(16385&e.flags)},{high:e=>!(114689&e.flags||16&mx(e)),low:e=>!!(16&mx(e))}]);const i=n.filter((e=>16&mx(e)));return i.length&&(n=n.filter((e=>!(16&mx(e)))),n.push(function(e){if(1===e.length)return e[0];const t=[],n=[],i=[],o=[];let a=!1,s=!1;const c=$e();for(const l of e){for(const e of r.getPropertiesOfType(l))c.add(e.escapedName,e.valueDeclaration?r.getTypeOfSymbolAtLocation(e,e.valueDeclaration):r.getAnyType());t.push(...r.getSignaturesOfType(l,0)),n.push(...r.getSignaturesOfType(l,1));const e=r.getIndexInfoOfType(l,0);e&&(i.push(e.type),a=a||e.isReadonly);const _=r.getIndexInfoOfType(l,1);_&&(o.push(_.type),s=s||_.isReadonly)}const l=W(c,((t,n)=>{const i=n.lengthr.getBaseTypeOfLiteralType(e))),_=(null==(a=e.calls)?void 0:a.length)?g(e):void 0;return _&&c?s.push(r.getUnionType([_,...c],2)):(_&&s.push(_),u(c)&&s.push(...c)),s.push(...function(e){if(!e.properties||!e.properties.size)return[];const t=o.filter((t=>function(e,t){return!!t.properties&&!td(t.properties,((t,n)=>{const i=r.getTypeOfPropertyOfType(e,n);return!i||(t.calls?!r.getSignaturesOfType(i,0).length||!r.isTypeAssignableTo(i,(o=t.calls,r.createAnonymousType(void 0,Hu(),[y(o)],l,l))):!r.isTypeAssignableTo(i,p(t)));var o}))}(t,e)));return 0function(e,t){if(!(4&mx(e)&&t.properties))return e;const n=e.target,o=be(n.typeParameters);if(!o)return e;const a=[];return t.properties.forEach(((e,t)=>{const i=r.getTypeOfPropertyOfType(n,t);un.assert(!!i,"generic should have all the properties of its reference."),a.push(...h(i,p(e),o))})),i[e.symbol.escapedName](f(a))}(t,e))):[]}(e)),s}function g(e){const t=new Map;e.properties&&e.properties.forEach(((e,n)=>{const i=r.createSymbol(4,n);i.links.type=p(e),t.set(n,i)}));const n=e.calls?[y(e.calls)]:[],i=e.constructs?[y(e.constructs)]:[],o=e.stringIndex?[r.createIndexInfo(r.getStringType(),p(e.stringIndex),!1)]:[];return r.createAnonymousType(void 0,t,n,i,o)}function h(e,t,n){if(e===n)return[t];if(3145728&e.flags)return O(e.types,(e=>h(e,t,n)));if(4&mx(e)&&4&mx(t)){const i=r.getTypeArguments(e),o=r.getTypeArguments(t),a=[];if(i&&o)for(let e=0;ee.argumentTypes.length)));for(let i=0;ie.argumentTypes[i]||r.getUndefinedType()))),e.some((e=>void 0===e.argumentTypes[i]))&&(n.flags|=16777216),t.push(n)}const i=p(a(e.map((e=>e.return_))));return r.createSignature(void 0,void 0,void 0,t,i,void 0,n,0)}function v(e,t){!t||1&t.flags||131072&t.flags||(e.candidateTypes||(e.candidateTypes=[])).push(t)}function b(e,t){!t||1&t.flags||131072&t.flags||(e.candidateThisTypes||(e.candidateThisTypes=[])).push(t)}}k7({errorCodes:nie,getCodeActions(e){const{sourceFile:t,program:n,span:{start:r},errorCode:i,cancellationToken:o,host:a,preferences:s}=e,c=PX(t,r);let l;const _=Tue.ChangeTracker.with(e,(e=>{l=iie(e,t,c,i,n,o,ot,a,s)})),u=l&&Tc(l);return u&&0!==_.length?[v7(tie,_,[rie(i,c),Kd(u)],tie,la.Infer_all_types_from_usage)]:void 0},fixIds:[tie],getAllCodeActions(e){const{sourceFile:t,program:n,cancellationToken:r,host:i,preferences:o}=e,a=TQ();return D7(e,nie,((e,s)=>{iie(e,t,PX(s.file,s.start),s.code,n,r,a,i,o)}))}});var pie="fixReturnTypeInAsyncFunction",fie=[la.The_return_type_of_an_async_function_or_method_must_be_the_global_Promise_T_type_Did_you_mean_to_write_Promise_0.code];function mie(e,t,n){if(Fm(e))return;const r=_c(PX(e,n),i_),i=null==r?void 0:r.type;if(!i)return;const o=t.getTypeFromTypeNode(i),a=t.getAwaitedType(o)||t.getVoidType(),s=t.typeToTypeNode(a,i,void 0);return s?{returnTypeNode:i,returnType:o,promisedTypeNode:s,promisedType:a}:void 0}function gie(e,t,n,r){e.replaceNode(t,n,XC.createTypeReferenceNode("Promise",[r]))}k7({errorCodes:fie,fixIds:[pie],getCodeActions:function(e){const{sourceFile:t,program:n,span:r}=e,i=n.getTypeChecker(),o=mie(t,n.getTypeChecker(),r.start);if(!o)return;const{returnTypeNode:a,returnType:s,promisedTypeNode:c,promisedType:l}=o,_=Tue.ChangeTracker.with(e,(e=>gie(e,t,a,c)));return[v7(pie,_,[la.Replace_0_with_Promise_1,i.typeToString(s),i.typeToString(l)],pie,la.Fix_all_incorrect_return_type_of_an_async_functions)]},getAllCodeActions:e=>D7(e,fie,((t,n)=>{const r=mie(n.file,e.program.getTypeChecker(),n.start);r&&gie(t,n.file,r.returnTypeNode,r.promisedTypeNode)}))});var hie="disableJsDiagnostics",yie="disableJsDiagnostics",vie=B(Object.keys(la),(e=>{const t=la[e];return 1===t.category?t.code:void 0}));function bie(e,t,n,r){const{line:i}=Ja(t,n);r&&!q(r,i)||e.insertCommentBeforeLine(t,i,n," @ts-ignore")}function xie(e,t,n,r,i,o,a){const s=e.symbol.members;for(const c of t)s.has(c.escapedName)||Tie(c,e,n,r,i,o,a,void 0)}function kie(e){return{trackSymbol:()=>!1,moduleResolverHost:IQ(e.program,e.host)}}k7({errorCodes:vie,getCodeActions:function(e){const{sourceFile:t,program:n,span:r,host:i,formatContext:o}=e;if(!Fm(t)||!eT(t,n.getCompilerOptions()))return;const a=t.checkJsDirective?"":kY(i,o.options),s=[y7(hie,[N7(t.fileName,[vQ(t.checkJsDirective?Ws(t.checkJsDirective.pos,t.checkJsDirective.end):Vs(0,0),`// @ts-nocheck${a}`)])],la.Disable_checking_for_this_file)];return Tue.isValidLocationToAddComment(t,r.start)&&s.unshift(v7(hie,Tue.ChangeTracker.with(e,(e=>bie(e,t,r.start))),la.Ignore_this_error_message,yie,la.Add_ts_ignore_to_all_error_messages)),s},fixIds:[yie],getAllCodeActions:e=>{const t=new Set;return D7(e,vie,((e,n)=>{Tue.isValidLocationToAddComment(n.file,n.start)&&bie(e,n.file,n.start,t)}))}});var Sie=(e=>(e[e.Method=1]="Method",e[e.Property=2]="Property",e[e.All=3]="All",e))(Sie||{});function Tie(e,t,n,r,i,o,a,s,c=3,_=!1){const d=e.getDeclarations(),p=fe(d),f=r.program.getTypeChecker(),m=hk(r.program.getCompilerOptions()),g=(null==p?void 0:p.kind)??171,h=function(e,t){if(262144&nx(e)){const t=e.links.nameType;if(t&&oC(t))return XC.createIdentifier(fc(aC(t)))}return LY(Tc(t),!1)}(e,p),y=p?Mv(p):0;let v=256&y;v|=1&y?1:4&y?4:0,p&&d_(p)&&(v|=512);const b=function(){let e;return v&&(e=oe(e,XC.createModifiersFromModifierFlags(v))),r.program.getCompilerOptions().noImplicitOverride&&p&&Ev(p)&&(e=ie(e,XC.createToken(164))),e&&XC.createNodeArray(e)}(),x=f.getWidenedType(f.getTypeOfSymbolAtLocation(e,t)),k=!!(16777216&e.flags),S=!!(33554432&t.flags)||_,T=BQ(n,i),C=1|(0===T?268435456:0);switch(g){case 171:case 172:let n=f.typeToTypeNode(x,t,C,8,kie(r));if(o){const e=qie(n,m);e&&(n=e.typeNode,Vie(o,e.symbols))}a(XC.createPropertyDeclaration(b,p?N(h):e.getName(),k&&2&c?XC.createToken(58):void 0,n,void 0));break;case 177:case 178:{un.assertIsDefined(d);let e=f.typeToTypeNode(x,t,C,void 0,kie(r));const n=dv(d,p),i=n.secondAccessor?[n.firstAccessor,n.secondAccessor]:[n.firstAccessor];if(o){const t=qie(e,m);t&&(e=t.typeNode,Vie(o,t.symbols))}for(const t of i)if(pD(t))a(XC.createGetAccessorDeclaration(b,N(h),l,F(e),D(s,T,S)));else{un.assertNode(t,fD,"The counterpart to a getter should be a setter");const n=iv(t),r=n&&zN(n.name)?mc(n.name):void 0;a(XC.createSetAccessorDeclaration(b,N(h),Lie(1,[r],[F(e)],1,!1),D(s,T,S)))}break}case 173:case 174:un.assertIsDefined(d);const i=x.isUnion()?O(x.types,(e=>e.getCallSignatures())):x.getCallSignatures();if(!$(i))break;if(1===d.length){un.assert(1===i.length,"One declaration implies one signature");const e=i[0];w(T,e,b,N(h),D(s,T,S));break}for(const e of i)e.declaration&&33554432&e.declaration.flags||w(T,e,b,N(h));if(!S)if(d.length>i.length){const e=f.getSignatureFromDeclaration(d[d.length-1]);w(T,e,b,N(h),D(s,T))}else un.assert(d.length===i.length,"Declarations and signatures should match count"),a(function(e,t,n,r,i,o,a,s,c){let l=r[0],_=r[0].minArgumentCount,d=!1;for(const e of r)_=Math.min(e.minArgumentCount,_),UB(e)&&(d=!0),e.parameters.length>=l.parameters.length&&(!UB(e)||UB(l))&&(l=e);const p=l.parameters.length-(UB(l)?1:0),f=l.parameters.map((e=>e.name)),m=Lie(p,f,void 0,_,!1);if(d){const e=XC.createParameterDeclaration(void 0,XC.createToken(26),f[p]||"rest",p>=_?XC.createToken(58):void 0,XC.createArrayTypeNode(XC.createKeywordTypeNode(159)),void 0);m.push(e)}return function(e,t,n,r,i,o,a,s){return XC.createMethodDeclaration(e,void 0,t,n?XC.createToken(58):void 0,void 0,i,o,s||jie(a))}(a,i,o,0,m,function(e,t,n,r){if(u(e)){const i=t.getUnionType(E(e,t.getReturnTypeOfSignature));return t.typeToTypeNode(i,r,1,8,kie(n))}}(r,e,t,n),s,c)}(f,r,t,i,N(h),k&&!!(1&c),b,T,s))}function w(e,n,i,s,l){const _=Cie(174,r,e,n,l,s,i,k&&!!(1&c),t,o);_&&a(_)}function N(e){return zN(e)&&"constructor"===e.escapedText?XC.createComputedPropertyName(XC.createStringLiteral(mc(e),0===T)):LY(e,!1)}function D(e,t,n){return n?void 0:LY(e,!1)||jie(t)}function F(e){return LY(e,!1)}}function Cie(e,t,n,r,i,o,a,s,c,l){const _=t.program,u=_.getTypeChecker(),d=hk(_.getCompilerOptions()),p=Fm(c),f=524545|(0===n?268435456:0),m=u.signatureToSignatureDeclaration(r,e,c,f,8,kie(t));if(!m)return;let g=p?void 0:m.typeParameters,h=m.parameters,y=p?void 0:LY(m.type);if(l){if(g){const e=A(g,(e=>{let t=e.constraint,n=e.default;if(t){const e=qie(t,d);e&&(t=e.typeNode,Vie(l,e.symbols))}if(n){const e=qie(n,d);e&&(n=e.typeNode,Vie(l,e.symbols))}return XC.updateTypeParameterDeclaration(e,e.modifiers,e.name,t,n)}));g!==e&&(g=nI(XC.createNodeArray(e,g.hasTrailingComma),g))}const e=A(h,(e=>{let t=p?void 0:e.type;if(t){const e=qie(t,d);e&&(t=e.typeNode,Vie(l,e.symbols))}return XC.updateParameterDeclaration(e,e.modifiers,e.dotDotDotToken,e.name,p?void 0:e.questionToken,t,e.initializer)}));if(h!==e&&(h=nI(XC.createNodeArray(e,h.hasTrailingComma),h)),y){const e=qie(y,d);e&&(y=e.typeNode,Vie(l,e.symbols))}}const v=s?XC.createToken(58):void 0,b=m.asteriskToken;return eF(m)?XC.updateFunctionExpression(m,a,m.asteriskToken,tt(o,zN),g,h,y,i??m.body):tF(m)?XC.updateArrowFunction(m,a,g,h,y,m.equalsGreaterThanToken,i??m.body):_D(m)?XC.updateMethodDeclaration(m,a,b,o??XC.createIdentifier(""),v,g,h,y,i):$F(m)?XC.updateFunctionDeclaration(m,a,m.asteriskToken,tt(o,zN),g,h,y,i??m.body):void 0}function wie(e,t,n,r,i,o,a){const s=BQ(t.sourceFile,t.preferences),c=hk(t.program.getCompilerOptions()),l=kie(t),_=t.program.getTypeChecker(),u=Fm(a),{typeArguments:d,arguments:p,parent:f}=r,m=u?void 0:_.getContextualType(r),g=E(p,(e=>zN(e)?e.text:HD(e)&&zN(e.name)?e.name.text:void 0)),h=u?[]:E(p,(e=>_.getTypeAtLocation(e))),{argumentTypeNodes:y,argumentTypeParameters:v}=function(e,t,n,r,i,o,a,s){const c=[],l=new Map;for(let o=0;oe[0]))),i=new Map(t);if(n){const i=n.filter((n=>!t.some((t=>{var r;return e.getTypeAtLocation(n)===(null==(r=t[1])?void 0:r.argumentType)})))),o=r.size+i.length;for(let e=0;r.size{var t;return XC.createTypeParameterDeclaration(void 0,e,null==(t=i.get(e))?void 0:t.constraint)}))}(_,v,d),S=Lie(p.length,g,y,void 0,u),T=u||void 0===m?void 0:_.typeToTypeNode(m,a,void 0,void 0,l);switch(e){case 174:return XC.createMethodDeclaration(b,x,i,void 0,k,S,T,jie(s));case 173:return XC.createMethodSignature(b,i,void 0,k,S,void 0===T?XC.createKeywordTypeNode(159):T);case 262:return un.assert("string"==typeof i||zN(i),"Unexpected name"),XC.createFunctionDeclaration(b,x,i,k,S,T,Rie(la.Function_not_implemented.message,s));default:un.fail("Unexpected kind")}}function Nie(e){return 84+e<=90?String.fromCharCode(84+e):`T${e}`}function Die(e,t,n,r,i,o,a,s){const c=e.typeToTypeNode(n,r,o,a,s);if(c)return Fie(c,t,i)}function Fie(e,t,n){if(e&&BD(e)){const r=qie(e,n);r&&(Vie(t,r.symbols),e=r.typeNode)}return LY(e)}function Eie(e,t,n,r,i,o){let a=e.typeToTypeNode(t,n,r,i,o);if(a){if(vD(a)){const n=t;if(n.typeArguments&&a.typeArguments){const t=function(e,t){un.assert(t.typeArguments);const n=t.typeArguments,r=t.target;for(let t=0;te===n[t])))return t}return n.length}(e,n);if(t=r?XC.createToken(58):void 0,i?void 0:(null==n?void 0:n[s])||XC.createKeywordTypeNode(159),void 0);o.push(l)}return o}function jie(e){return Rie(la.Method_not_implemented.message,e)}function Rie(e,t){return XC.createBlock([XC.createThrowStatement(XC.createNewExpression(XC.createIdentifier("Error"),void 0,[XC.createStringLiteral(e,0===t)]))],!0)}function Mie(e,t,n){const r=Vf(t);if(!r)return;const i=zie(r,"compilerOptions");if(void 0===i)return void e.insertNodeAtObjectStart(t,r,Jie("compilerOptions",XC.createObjectLiteralExpression(n.map((([e,t])=>Jie(e,t))),!0)));const o=i.initializer;if($D(o))for(const[r,i]of n){const n=zie(o,r);void 0===n?e.insertNodeAtObjectStart(t,o,Jie(r,i)):e.replaceNode(t,n.initializer,i)}}function Bie(e,t,n,r){Mie(e,t,[[n,r]])}function Jie(e,t){return XC.createPropertyAssignment(XC.createStringLiteral(e),t)}function zie(e,t){return b(e.properties,(e=>ME(e)&&!!e.name&&TN(e.name)&&e.name.text===t))}function qie(e,t){let n;const r=$B(e,(function e(r){if(_f(r)&&r.qualifier){const i=ab(r.qualifier);if(!i.symbol)return nJ(r,e,void 0);const o=OZ(i.symbol,t),a=o!==i.text?Uie(r.qualifier,XC.createIdentifier(o)):r.qualifier;n=ie(n,i.symbol);const s=HB(r.typeArguments,e,v_);return XC.createTypeReferenceNode(a,s)}return nJ(r,e,void 0)}),v_);if(n&&r)return{typeNode:r,symbols:n}}function Uie(e,t){return 80===e.kind?t:XC.createQualifiedName(Uie(e.left,t),e.right)}function Vie(e,t){t.forEach((t=>e.addImportFromExportedSymbol(t,!0)))}function Wie(e,t){const n=Ds(t);let r=PX(e,t.start);for(;r.ende.replaceNode(t,n,r)));return y7(eoe,i,[la.Replace_import_with_0,i[0].textChanges[0].newText])}function noe(e,t){const n=e.program.getTypeChecker().getTypeAtLocation(t);if(!(n.symbol&&Ku(n.symbol)&&n.symbol.links.originatingImport))return[];const r=[],i=n.symbol.links.originatingImport;if(cf(i)||se(r,function(e,t){const n=hd(t),r=kg(t),i=e.program.getCompilerOptions(),o=[];return o.push(toe(e,n,t,LQ(r.name,void 0,t.moduleSpecifier,BQ(n,e.preferences)))),1===yk(i)&&o.push(toe(e,n,t,XC.createImportEqualsDeclaration(void 0,!1,r.name,XC.createExternalModuleReference(t.moduleSpecifier)))),o}(e,i)),U_(t)&&(!kc(t.parent)||t.parent.name!==t)){const n=e.sourceFile,i=Tue.ChangeTracker.with(e,(e=>e.replaceNode(n,t,XC.createPropertyAccessExpression(t,"default"),{})));r.push(y7(eoe,i,la.Use_synthetic_default_member))}return r}k7({errorCodes:[la.This_expression_is_not_callable.code,la.This_expression_is_not_constructable.code],getCodeActions:function(e){const t=e.sourceFile,n=la.This_expression_is_not_callable.code===e.errorCode?213:214,r=_c(PX(t,e.span.start),(e=>e.kind===n));if(!r)return[];return noe(e,r.expression)}}),k7({errorCodes:[la.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1.code,la.Type_0_does_not_satisfy_the_constraint_1.code,la.Type_0_is_not_assignable_to_type_1.code,la.Type_0_is_not_assignable_to_type_1_Two_different_types_with_this_name_exist_but_they_are_unrelated.code,la.Type_predicate_0_is_not_assignable_to_1.code,la.Property_0_of_type_1_is_not_assignable_to_2_index_type_3.code,la._0_index_type_1_is_not_assignable_to_2_index_type_3.code,la.Property_0_in_type_1_is_not_assignable_to_the_same_property_in_base_type_2.code,la.Property_0_in_type_1_is_not_assignable_to_type_2.code,la.Property_0_of_JSX_spread_attribute_is_not_assignable_to_target_property.code,la.The_this_context_of_type_0_is_not_assignable_to_method_s_this_of_type_1.code],getCodeActions:function(e){const t=_c(PX(e.sourceFile,e.span.start),(t=>t.getStart()===e.span.start&&t.getEnd()===e.span.start+e.span.length));return t?noe(e,t):[]}});var roe="strictClassInitialization",ioe="addMissingPropertyDefiniteAssignmentAssertions",ooe="addMissingPropertyUndefinedType",aoe="addMissingPropertyInitializer",soe=[la.Property_0_has_no_initializer_and_is_not_definitely_assigned_in_the_constructor.code];function coe(e,t){const n=PX(e,t);if(zN(n)&&cD(n.parent)){const e=pv(n.parent);if(e)return{type:e,prop:n.parent,isJs:Fm(n.parent)}}}function loe(e,t,n){JY(n);const r=XC.updatePropertyDeclaration(n,n.modifiers,n.name,XC.createToken(54),n.type,n.initializer);e.replaceNode(t,n,r)}function _oe(e,t,n){const r=XC.createKeywordTypeNode(157),i=FD(n.type)?n.type.types.concat(r):[n.type,r],o=XC.createUnionTypeNode(i);n.isJs?e.addJSDocTags(t,n.prop,[XC.createJSDocTypeTag(void 0,XC.createJSDocTypeExpression(o))]):e.replaceNode(t,n.type,o)}function uoe(e,t,n,r){JY(n);const i=XC.updatePropertyDeclaration(n,n.modifiers,n.name,n.questionToken,n.type,r);e.replaceNode(t,n,i)}function doe(e,t){return poe(e,e.getTypeFromTypeNode(t.type))}function poe(e,t){if(512&t.flags)return t===e.getFalseType()||t===e.getFalseType(!0)?XC.createFalse():XC.createTrue();if(t.isStringLiteral())return XC.createStringLiteral(t.value);if(t.isNumberLiteral())return XC.createNumericLiteral(t.value);if(2048&t.flags)return XC.createBigIntLiteral(t.value);if(t.isUnion())return f(t.types,(t=>poe(e,t)));if(t.isClass()){const e=fx(t.symbol);if(!e||wv(e,64))return;const n=rv(e);if(n&&n.parameters.length)return;return XC.createNewExpression(XC.createIdentifier(t.symbol.name),void 0,void 0)}return e.isArrayLikeType(t)?XC.createArrayLiteralExpression():void 0}k7({errorCodes:soe,getCodeActions:function(e){const t=coe(e.sourceFile,e.span.start);if(!t)return;const n=[];return ie(n,function(e,t){const n=Tue.ChangeTracker.with(e,(n=>_oe(n,e.sourceFile,t)));return v7(roe,n,[la.Add_undefined_type_to_property_0,t.prop.name.getText()],ooe,la.Add_undefined_type_to_all_uninitialized_properties)}(e,t)),ie(n,function(e,t){if(t.isJs)return;const n=Tue.ChangeTracker.with(e,(n=>loe(n,e.sourceFile,t.prop)));return v7(roe,n,[la.Add_definite_assignment_assertion_to_property_0,t.prop.getText()],ioe,la.Add_definite_assignment_assertions_to_all_uninitialized_properties)}(e,t)),ie(n,function(e,t){if(t.isJs)return;const n=doe(e.program.getTypeChecker(),t.prop);if(!n)return;const r=Tue.ChangeTracker.with(e,(r=>uoe(r,e.sourceFile,t.prop,n)));return v7(roe,r,[la.Add_initializer_to_property_0,t.prop.name.getText()],aoe,la.Add_initializers_to_all_uninitialized_properties)}(e,t)),n},fixIds:[ioe,ooe,aoe],getAllCodeActions:e=>D7(e,soe,((t,n)=>{const r=coe(n.file,n.start);if(r)switch(e.fixId){case ioe:loe(t,n.file,r.prop);break;case ooe:_oe(t,n.file,r);break;case aoe:const i=doe(e.program.getTypeChecker(),r.prop);if(!i)return;uoe(t,n.file,r.prop,i);break;default:un.fail(JSON.stringify(e.fixId))}}))});var foe="requireInTs",moe=[la.require_call_may_be_converted_to_an_import.code];function goe(e,t,n){const{allowSyntheticDefaults:r,defaultImportName:i,namedImports:o,statement:a,moduleSpecifier:s}=n;e.replaceNode(t,a,i&&!r?XC.createImportEqualsDeclaration(void 0,!1,i,XC.createExternalModuleReference(s)):XC.createImportDeclaration(void 0,XC.createImportClause(!1,i,o),s,void 0))}function hoe(e,t,n,r){const{parent:i}=PX(e,n);Om(i,!0)||un.failBadSyntaxKind(i);const o=nt(i.parent,VF),a=BQ(e,r),s=tt(o.name,zN),c=qD(o.name)?function(e){const t=[];for(const n of e.elements){if(!zN(n.name)||n.initializer)return;t.push(XC.createImportSpecifier(!1,tt(n.propertyName,zN),n.name))}if(t.length)return XC.createNamedImports(t)}(o.name):void 0;if(s||c){const e=ge(i.arguments);return{allowSyntheticDefaults:Sk(t.getCompilerOptions()),defaultImportName:s,namedImports:c,statement:nt(o.parent.parent,wF),moduleSpecifier:NN(e)?XC.createStringLiteral(e.text,0===a):e}}}k7({errorCodes:moe,getCodeActions(e){const t=hoe(e.sourceFile,e.program,e.span.start,e.preferences);if(!t)return;const n=Tue.ChangeTracker.with(e,(n=>goe(n,e.sourceFile,t)));return[v7(foe,n,la.Convert_require_to_import,foe,la.Convert_all_require_to_import)]},fixIds:[foe],getAllCodeActions:e=>D7(e,moe,((t,n)=>{const r=hoe(n.file,e.program,n.start,e.preferences);r&&goe(t,e.sourceFile,r)}))});var yoe="useDefaultImport",voe=[la.Import_may_be_converted_to_a_default_import.code];function boe(e,t){const n=PX(e,t);if(!zN(n))return;const{parent:r}=n;if(tE(r)&&xE(r.moduleReference))return{importNode:r,name:n,moduleSpecifier:r.moduleReference.expression};if(lE(r)&&nE(r.parent.parent)){const e=r.parent.parent;return{importNode:e,name:n,moduleSpecifier:e.moduleSpecifier}}}function xoe(e,t,n,r){e.replaceNode(t,n.importNode,LQ(n.name,void 0,n.moduleSpecifier,BQ(t,r)))}k7({errorCodes:voe,getCodeActions(e){const{sourceFile:t,span:{start:n}}=e,r=boe(t,n);if(!r)return;const i=Tue.ChangeTracker.with(e,(n=>xoe(n,t,r,e.preferences)));return[v7(yoe,i,la.Convert_to_default_import,yoe,la.Convert_all_to_default_imports)]},fixIds:[yoe],getAllCodeActions:e=>D7(e,voe,((t,n)=>{const r=boe(n.file,n.start);r&&xoe(t,n.file,r,e.preferences)}))});var koe="useBigintLiteral",Soe=[la.Numeric_literals_with_absolute_values_equal_to_2_53_or_greater_are_too_large_to_be_represented_accurately_as_integers.code];function Toe(e,t,n){const r=tt(PX(t,n.start),kN);if(!r)return;const i=r.getText(t)+"n";e.replaceNode(t,r,XC.createBigIntLiteral(i))}k7({errorCodes:Soe,getCodeActions:function(e){const t=Tue.ChangeTracker.with(e,(t=>Toe(t,e.sourceFile,e.span)));if(t.length>0)return[v7(koe,t,la.Convert_to_a_bigint_numeric_literal,koe,la.Convert_all_to_bigint_numeric_literals)]},fixIds:[koe],getAllCodeActions:e=>D7(e,Soe,((e,t)=>Toe(e,t.file,t)))});var Coe="fixAddModuleReferTypeMissingTypeof",woe=[la.Module_0_does_not_refer_to_a_type_but_is_used_as_a_type_here_Did_you_mean_typeof_import_0.code];function Noe(e,t){const n=PX(e,t);return un.assert(102===n.kind,"This token should be an ImportKeyword"),un.assert(205===n.parent.kind,"Token parent should be an ImportType"),n.parent}function Doe(e,t,n){const r=XC.updateImportTypeNode(n,n.argument,n.attributes,n.qualifier,n.typeArguments,!0);e.replaceNode(t,n,r)}k7({errorCodes:woe,getCodeActions:function(e){const{sourceFile:t,span:n}=e,r=Noe(t,n.start),i=Tue.ChangeTracker.with(e,(e=>Doe(e,t,r)));return[v7(Coe,i,la.Add_missing_typeof,Coe,la.Add_missing_typeof)]},fixIds:[Coe],getAllCodeActions:e=>D7(e,woe,((t,n)=>Doe(t,e.sourceFile,Noe(n.file,n.start))))});var Foe="wrapJsxInFragment",Eoe=[la.JSX_expressions_must_have_one_parent_element.code];function Poe(e,t){let n=PX(e,t).parent.parent;if((cF(n)||(n=n.parent,cF(n)))&&Cd(n.operatorToken))return n}function Aoe(e,t,n){const r=function(e){const t=[];let n=e;for(;;){if(cF(n)&&Cd(n.operatorToken)&&28===n.operatorToken.kind){if(t.push(n.left),gu(n.right))return t.push(n.right),t;if(cF(n.right)){n=n.right;continue}return}return}}(n);r&&e.replaceNode(t,n,XC.createJsxFragment(XC.createJsxOpeningFragment(),r,XC.createJsxJsxClosingFragment()))}k7({errorCodes:Eoe,getCodeActions:function(e){const{sourceFile:t,span:n}=e,r=Poe(t,n.start);if(!r)return;const i=Tue.ChangeTracker.with(e,(e=>Aoe(e,t,r)));return[v7(Foe,i,la.Wrap_in_JSX_fragment,Foe,la.Wrap_all_unparented_JSX_in_JSX_fragment)]},fixIds:[Foe],getAllCodeActions:e=>D7(e,Eoe,((t,n)=>{const r=Poe(e.sourceFile,n.start);r&&Aoe(t,e.sourceFile,r)}))});var Ioe="wrapDecoratorInParentheses",Ooe=[la.Expression_must_be_enclosed_in_parentheses_to_be_used_as_a_decorator.code];function Loe(e,t,n){const r=_c(PX(t,n),aD);un.assert(!!r,"Expected position to be owned by a decorator.");const i=XC.createParenthesizedExpression(r.expression);e.replaceNode(t,r.expression,i)}k7({errorCodes:Ooe,getCodeActions:function(e){const t=Tue.ChangeTracker.with(e,(t=>Loe(t,e.sourceFile,e.span.start)));return[v7(Ioe,t,la.Wrap_in_parentheses,Ioe,la.Wrap_all_invalid_decorator_expressions_in_parentheses)]},fixIds:[Ioe],getAllCodeActions:e=>D7(e,Ooe,((e,t)=>Loe(e,t.file,t.start)))});var joe="fixConvertToMappedObjectType",Roe=[la.An_index_signature_parameter_type_cannot_be_a_literal_type_or_generic_type_Consider_using_a_mapped_object_type_instead.code];function Moe(e,t){const n=tt(PX(e,t).parent.parent,hD);if(!n)return;const r=KF(n.parent)?n.parent:tt(n.parent.parent,GF);return r?{indexSignature:n,container:r}:void 0}function Boe(e,t,{indexSignature:n,container:r}){const i=(KF(r)?r.members:r.type.members).filter((e=>!hD(e))),o=ge(n.parameters),a=XC.createTypeParameterDeclaration(void 0,nt(o.name,zN),o.type),s=XC.createMappedTypeNode(Iv(n)?XC.createModifier(148):void 0,a,void 0,n.questionToken,n.type,void 0),c=XC.createIntersectionTypeNode([...bh(r),s,...i.length?[XC.createTypeLiteralNode(i)]:l]);var _,u;e.replaceNode(t,r,(_=r,u=c,XC.createTypeAliasDeclaration(_.modifiers,_.name,_.typeParameters,u)))}k7({errorCodes:Roe,getCodeActions:function(e){const{sourceFile:t,span:n}=e,r=Moe(t,n.start);if(!r)return;const i=Tue.ChangeTracker.with(e,(e=>Boe(e,t,r))),o=mc(r.container.name);return[v7(joe,i,[la.Convert_0_to_mapped_object_type,o],joe,[la.Convert_0_to_mapped_object_type,o])]},fixIds:[joe],getAllCodeActions:e=>D7(e,Roe,((e,t)=>{const n=Moe(t.file,t.start);n&&Boe(e,t.file,n)}))});var Joe="removeAccidentalCallParentheses";k7({errorCodes:[la.This_expression_is_not_callable_because_it_is_a_get_accessor_Did_you_mean_to_use_it_without.code],getCodeActions(e){const t=_c(PX(e.sourceFile,e.span.start),GD);if(!t)return;const n=Tue.ChangeTracker.with(e,(n=>{n.deleteRange(e.sourceFile,{pos:t.expression.end,end:t.end})}));return[y7(Joe,n,la.Remove_parentheses)]},fixIds:[Joe]});var zoe="removeUnnecessaryAwait",qoe=[la.await_has_no_effect_on_the_type_of_this_expression.code];function Uoe(e,t,n){const r=tt(PX(t,n.start),(e=>135===e.kind)),i=r&&tt(r.parent,oF);if(!i)return;let o=i;if(ZD(i.parent)&&zN(Nx(i.expression,!1))){const e=jX(i.parent.pos,t);e&&105!==e.kind&&(o=i.parent)}e.replaceNode(t,o,i.expression)}k7({errorCodes:qoe,getCodeActions:function(e){const t=Tue.ChangeTracker.with(e,(t=>Uoe(t,e.sourceFile,e.span)));if(t.length>0)return[v7(zoe,t,la.Remove_unnecessary_await,zoe,la.Remove_all_unnecessary_uses_of_await)]},fixIds:[zoe],getAllCodeActions:e=>D7(e,qoe,((e,t)=>Uoe(e,t.file,t)))});var Voe=[la.A_type_only_import_can_specify_a_default_import_or_named_bindings_but_not_both.code],Woe="splitTypeOnlyImport";function $oe(e,t){return _c(PX(e,t.start),nE)}function Hoe(e,t,n){if(!t)return;const r=un.checkDefined(t.importClause);e.replaceNode(n.sourceFile,t,XC.updateImportDeclaration(t,t.modifiers,XC.updateImportClause(r,r.isTypeOnly,r.name,void 0),t.moduleSpecifier,t.attributes)),e.insertNodeAfter(n.sourceFile,t,XC.createImportDeclaration(void 0,XC.updateImportClause(r,r.isTypeOnly,void 0,r.namedBindings),t.moduleSpecifier,t.attributes))}k7({errorCodes:Voe,fixIds:[Woe],getCodeActions:function(e){const t=Tue.ChangeTracker.with(e,(t=>Hoe(t,$oe(e.sourceFile,e.span),e)));if(t.length)return[v7(Woe,t,la.Split_into_two_separate_import_declarations,Woe,la.Split_all_invalid_type_only_imports)]},getAllCodeActions:e=>D7(e,Voe,((t,n)=>{Hoe(t,$oe(e.sourceFile,n),e)}))});var Koe="fixConvertConstToLet",Goe=[la.Cannot_assign_to_0_because_it_is_a_constant.code];function Xoe(e,t,n){var r;const i=n.getTypeChecker().getSymbolAtLocation(PX(e,t));if(void 0===i)return;const o=tt(null==(r=null==i?void 0:i.valueDeclaration)?void 0:r.parent,WF);if(void 0===o)return;const a=yX(o,87,e);return void 0!==a?{symbol:i,token:a}:void 0}function Qoe(e,t,n){e.replaceNode(t,n,XC.createToken(121))}k7({errorCodes:Goe,getCodeActions:function(e){const{sourceFile:t,span:n,program:r}=e,i=Xoe(t,n.start,r);if(void 0===i)return;const o=Tue.ChangeTracker.with(e,(e=>Qoe(e,t,i.token)));return[b7(Koe,o,la.Convert_const_to_let,Koe,la.Convert_all_const_to_let)]},getAllCodeActions:e=>{const{program:t}=e,n=new Set;return w7(Tue.ChangeTracker.with(e,(r=>{F7(e,Goe,(e=>{const i=Xoe(e.file,e.start,t);if(i&&vx(n,RB(i.symbol)))return Qoe(r,e.file,i.token)}))})))},fixIds:[Koe]});var Yoe="fixExpectedComma",Zoe=[la._0_expected.code];function eae(e,t,n){const r=PX(e,t);return 27===r.kind&&r.parent&&($D(r.parent)||WD(r.parent))?{node:r}:void 0}function tae(e,t,{node:n}){const r=XC.createToken(28);e.replaceNode(t,n,r)}k7({errorCodes:Zoe,getCodeActions(e){const{sourceFile:t}=e,n=eae(t,e.span.start,e.errorCode);if(!n)return;const r=Tue.ChangeTracker.with(e,(e=>tae(e,t,n)));return[v7(Yoe,r,[la.Change_0_to_1,";",","],Yoe,[la.Change_0_to_1,";",","])]},fixIds:[Yoe],getAllCodeActions:e=>D7(e,Zoe,((t,n)=>{const r=eae(n.file,n.start,n.code);r&&tae(t,e.sourceFile,r)}))});var nae="addVoidToPromise",rae=[la.Expected_1_argument_but_got_0_new_Promise_needs_a_JSDoc_hint_to_produce_a_resolve_that_can_be_called_without_arguments.code,la.Expected_0_arguments_but_got_1_Did_you_forget_to_include_void_in_your_type_argument_to_Promise.code];function iae(e,t,n,r,i){const o=PX(t,n.start);if(!zN(o)||!GD(o.parent)||o.parent.expression!==o||0!==o.parent.arguments.length)return;const a=r.getTypeChecker(),s=a.getSymbolAtLocation(o),c=null==s?void 0:s.valueDeclaration;if(!c||!oD(c)||!XD(c.parent.parent))return;if(null==i?void 0:i.has(c))return;null==i||i.add(c);const l=function(e){var t;if(!Fm(e))return e.typeArguments;if(ZD(e.parent)){const n=null==(t=el(e.parent))?void 0:t.typeExpression.type;if(n&&vD(n)&&zN(n.typeName)&&"Promise"===mc(n.typeName))return n.typeArguments}}(c.parent.parent);if($(l)){const n=l[0],r=!FD(n)&&!ID(n)&&ID(XC.createUnionTypeNode([n,XC.createKeywordTypeNode(116)]).types[0]);r&&e.insertText(t,n.pos,"("),e.insertText(t,n.end,r?") | void":" | void")}else{const n=a.getResolvedSignature(o.parent),r=null==n?void 0:n.parameters[0],i=r&&a.getTypeOfSymbolAtLocation(r,c.parent.parent);Fm(c)?(!i||3&i.flags)&&(e.insertText(t,c.parent.parent.end,")"),e.insertText(t,Xa(t.text,c.parent.parent.pos),"/** @type {Promise} */(")):(!i||2&i.flags)&&e.insertText(t,c.parent.parent.expression.end,"")}}k7({errorCodes:rae,fixIds:[nae],getCodeActions(e){const t=Tue.ChangeTracker.with(e,(t=>iae(t,e.sourceFile,e.span,e.program)));if(t.length>0)return[v7("addVoidToPromise",t,la.Add_void_to_Promise_resolved_without_a_value,nae,la.Add_void_to_all_Promises_resolved_without_a_value)]},getAllCodeActions:e=>D7(e,rae,((t,n)=>iae(t,n.file,n,e.program,new Set)))});var oae={};i(oae,{CompletionKind:()=>Yae,CompletionSource:()=>uae,SortText:()=>cae,StringCompletions:()=>Dse,SymbolOriginInfoKind:()=>dae,createCompletionDetails:()=>Xae,createCompletionDetailsForSymbol:()=>Gae,getCompletionEntriesFromSymbols:()=>Wae,getCompletionEntryDetails:()=>Hae,getCompletionEntrySymbol:()=>Qae,getCompletionsAtPosition:()=>xae,getDefaultCommitCharacters:()=>bae,getPropertiesForObjectExpression:()=>dse,moduleSpecifierResolutionCacheAttemptLimit:()=>sae,moduleSpecifierResolutionLimit:()=>aae});var aae=100,sae=1e3,cae={LocalDeclarationPriority:"10",LocationPriority:"11",OptionalMember:"12",MemberDeclaredBySpreadAssignment:"13",SuggestedClassMembers:"14",GlobalsOrKeywords:"15",AutoImportSuggestions:"16",ClassMemberSnippets:"17",JavascriptIdentifiers:"18",Deprecated:e=>"z"+e,ObjectLiteralProperty:(e,t)=>`${e}\0${t}\0`,SortBelow:e=>e+"1"},lae=[".",",",";"],_ae=[".",";"],uae=(e=>(e.ThisProperty="ThisProperty/",e.ClassMemberSnippet="ClassMemberSnippet/",e.TypeOnlyAlias="TypeOnlyAlias/",e.ObjectLiteralMethodSnippet="ObjectLiteralMethodSnippet/",e.SwitchCases="SwitchCases/",e.ObjectLiteralMemberWithComma="ObjectLiteralMemberWithComma/",e))(uae||{}),dae=(e=>(e[e.ThisType=1]="ThisType",e[e.SymbolMember=2]="SymbolMember",e[e.Export=4]="Export",e[e.Promise=8]="Promise",e[e.Nullable=16]="Nullable",e[e.ResolvedExport=32]="ResolvedExport",e[e.TypeOnlyAlias=64]="TypeOnlyAlias",e[e.ObjectLiteralMethod=128]="ObjectLiteralMethod",e[e.Ignore=256]="Ignore",e[e.ComputedPropertyName=512]="ComputedPropertyName",e[e.SymbolMemberNoExport=2]="SymbolMemberNoExport",e[e.SymbolMemberExport=6]="SymbolMemberExport",e))(dae||{});function pae(e){return!!(e&&4&e.kind)}function fae(e){return!(!e||32!==e.kind)}function mae(e){return(pae(e)||fae(e))&&!!e.isFromPackageJson}function gae(e){return!!(e&&64&e.kind)}function hae(e){return!!(e&&128&e.kind)}function yae(e){return!!(e&&512&e.kind)}function vae(e,t,n,r,i,o,a,s,c){var l,_,u,d;const p=Un(),f=a||Tk(r.getCompilerOptions())||(null==(l=o.autoImportSpecifierExcludeRegexes)?void 0:l.length);let m=!1,g=0,h=0,y=0,v=0;const b=c({tryResolve:function(e,t){if(t){const t=n.getModuleSpecifierForBestExportInfo(e,i,s);return t&&g++,t||"failed"}const r=f||o.allowIncompleteCompletions&&hm,resolvedAny:()=>h>0,resolvedBeyondLimit:()=>h>aae}),x=v?` (${(y/v*100).toFixed(1)}% hit rate)`:"";return null==(_=t.log)||_.call(t,`${e}: resolved ${h} module specifiers, plus ${g} ambient and ${y} from cache${x}`),null==(u=t.log)||u.call(t,`${e}: response is ${m?"incomplete":"complete"}`),null==(d=t.log)||d.call(t,`${e}: ${Un()-p}`),b}function bae(e){return e?[]:lae}function xae(e,t,n,r,i,o,a,s,c,l,_=!1){var u;const{previousToken:d}=tse(i,r);if(a&&!JX(r,i,d)&&!function(e,t,n,r){switch(t){case".":case"@":return!0;case'"':case"'":case"`":return!!n&&rZ(n)&&r===n.getStart(e)+1;case"#":return!!n&&qN(n)&&!!Gf(n);case"<":return!!n&&30===n.kind&&(!cF(n.parent)||hse(n.parent));case"/":return!!n&&(Lu(n)?!!vg(n):44===n.kind&&CE(n.parent));case" ":return!!n&&eD(n)&&307===n.parent.kind;default:return un.assertNever(t)}}(r,a,d,i))return;if(" "===a)return o.includeCompletionsForImportStatements&&o.includeCompletionsWithInsertText?{isGlobalCompletion:!0,isMemberCompletion:!1,isNewIdentifierLocation:!0,isIncomplete:!0,entries:[],defaultCommitCharacters:bae(!0)}:void 0;const p=t.getCompilerOptions(),f=t.getTypeChecker(),m=o.allowIncompleteCompletions?null==(u=e.getIncompleteCompletionsCache)?void 0:u.call(e):void 0;if(m&&3===s&&d&&zN(d)){const n=function(e,t,n,r,i,o,a,s){const c=e.get();if(!c)return;const l=FX(t,s),_=n.text.toLowerCase(),u=s0(t,i,r,o,a),d=vae("continuePreviousIncompleteResponse",i,f7.createImportSpecifierResolver(t,r,i,o),r,n.getStart(),o,!1,yT(n),(e=>{const n=B(c.entries,(n=>{var o;if(!n.hasAction||!n.source||!n.data||Sae(n.data))return n;if(!Nse(n.name,_))return;const{origin:a}=un.checkDefined(nse(n.name,n.data,r,i)),s=u.get(t.path,n.data.exportMapKey),c=s&&e.tryResolve(s,!Ts(Dy(a.moduleSymbol.name)));if("skipped"===c)return n;if(!c||"failed"===c)return void(null==(o=i.log)||o.call(i,`Unexpected failure resolving auto import for '${n.name}' from '${n.source}'`));const l={...a,kind:32,moduleSpecifier:c.moduleSpecifier};return n.data=Jae(l),n.source=Vae(l),n.sourceDisplay=[mY(l.moduleSpecifier)],n}));return e.skippedAny()||(c.isIncomplete=void 0),n}));return c.entries=d,c.flags=4|(c.flags||0),c.optionalReplacementSpan=Fae(l),c}(m,r,d,t,e,o,c,i);if(n)return n}else null==m||m.clear();const g=Dse.getStringLiteralCompletions(r,i,d,p,e,t,n,o,_);if(g)return g;if(d&&Tl(d.parent)&&(83===d.kind||88===d.kind||80===d.kind))return function(e){const t=function(e){const t=[],n=new Map;let r=e;for(;r&&!n_(r);){if(JF(r)){const e=r.label.text;n.has(e)||(n.set(e,!0),t.push({name:e,kindModifiers:"",kind:"label",sortText:cae.LocationPriority}))}r=r.parent}return t}(e);if(t.length)return{isGlobalCompletion:!1,isMemberCompletion:!1,isNewIdentifierLocation:!1,entries:t,defaultCommitCharacters:bae(!1)}}(d.parent);const h=ese(t,n,r,p,i,o,void 0,e,l,c);var y,v;if(h)switch(h.kind){case 0:const a=function(e,t,n,r,i,o,a,s,c,l){const{symbols:_,contextToken:u,completionKind:d,isInSnippetScope:p,isNewIdentifierLocation:f,location:m,propertyAccessToConvert:g,keywordFilters:h,symbolToOriginInfoMap:y,recommendedCompletion:v,isJsxInitializer:b,isTypeOnlyLocation:x,isJsxIdentifierExpected:k,isRightOfOpenTag:S,isRightOfDotOrQuestionDot:T,importStatementCompletion:C,insideJsDocTagTypeExpression:w,symbolToSortTextMap:N,hasUnresolvedAutoImports:D,defaultCommitCharacters:F}=o;let E=o.literals;const P=n.getTypeChecker();if(1===ck(e.scriptKind)){const t=function(e,t){const n=_c(e,(e=>{switch(e.kind){case 287:return!0;case 44:case 32:case 80:case 211:return!1;default:return"quit"}}));if(n){const e=!!yX(n,32,t),r=n.parent.openingElement.tagName.getText(t)+(e?"":">");return{isGlobalCompletion:!1,isMemberCompletion:!0,isNewIdentifierLocation:!1,optionalReplacementSpan:pQ(n.tagName),entries:[{name:r,kind:"class",kindModifiers:void 0,sortText:cae.LocationPriority}],defaultCommitCharacters:bae(!1)}}}(m,e);if(t)return t}const A=_c(u,OE);if(A&&(tD(u)||sh(u,A.expression))){const e=HZ(P,A.parent.clauses);E=E.filter((t=>!e.hasValue(t))),_.forEach(((t,n)=>{if(t.valueDeclaration&&zE(t.valueDeclaration)){const r=P.getConstantValue(t.valueDeclaration);void 0!==r&&e.hasValue(r)&&(y[n]={kind:256})}}))}const I=[],O=Eae(e,r);if(O&&!f&&(!_||0===_.length)&&0===h)return;const L=Wae(_,I,void 0,u,m,c,e,t,n,hk(r),i,d,a,r,s,x,g,k,b,C,v,y,N,k,S,l);if(0!==h)for(const t of ase(h,!w&&Dm(e)))(x&&xQ(Fa(t.name))||!x&&("abstract"===(j=t.name)||"async"===j||"await"===j||"declare"===j||"module"===j||"namespace"===j||"type"===j||"satisfies"===j||"as"===j)||!L.has(t.name))&&(L.add(t.name),Z(I,t,kae,void 0,!0));var j;for(const e of function(e,t){const n=[];if(e){const r=e.getSourceFile(),i=e.parent,o=r.getLineAndCharacterOfPosition(e.end).line,a=r.getLineAndCharacterOfPosition(t).line;(nE(i)||fE(i)&&i.moduleSpecifier)&&e===i.moduleSpecifier&&o===a&&n.push({name:Da(132),kind:"keyword",kindModifiers:"",sortText:cae.GlobalsOrKeywords})}return n}(u,c))L.has(e.name)||(L.add(e.name),Z(I,e,kae,void 0,!0));for(const t of E){const n=jae(e,a,t);L.add(n.name),Z(I,n,kae,void 0,!0)}let R;if(O||function(e,t,n,r,i){z8(e).forEach(((e,o)=>{if(e===t)return;const a=fc(o);!n.has(a)&&fs(a,r)&&(n.add(a),Z(i,{name:a,kind:"warning",kindModifiers:"",sortText:cae.JavascriptIdentifiers,isFromUncheckedFile:!0,commitCharacters:[]},kae))}))}(e,m.pos,L,hk(r),I),a.includeCompletionsWithInsertText&&u&&!S&&!T&&(R=_c(u,ZF))){const i=Pae(R,e,a,r,t,n,s);i&&I.push(i.entry)}return{flags:o.flags,isGlobalCompletion:p,isIncomplete:!(!a.allowIncompleteCompletions||!D)||void 0,isMemberCompletion:Oae(d),isNewIdentifierLocation:f,optionalReplacementSpan:Fae(m),entries:I,defaultCommitCharacters:F??bae(f)}}(r,e,t,p,n,h,o,l,i,_);return(null==a?void 0:a.isIncomplete)&&(null==m||m.set(a)),a;case 1:return Tae([...fle.getJSDocTagNameCompletions(),...Cae(r,i,f,p,o,!0)]);case 2:return Tae([...fle.getJSDocTagCompletions(),...Cae(r,i,f,p,o,!1)]);case 3:return Tae(fle.getJSDocParameterNameCompletions(h.tag));case 4:return y=h.keywordCompletions,{isGlobalCompletion:!1,isMemberCompletion:!1,isNewIdentifierLocation:v=h.isNewIdentifierLocation,entries:y.slice(),defaultCommitCharacters:bae(v)};default:return un.assertNever(h)}}function kae(e,t){var n,r;let i=At(e.sortText,t.sortText);return 0===i&&(i=At(e.name,t.name)),0===i&&(null==(n=e.data)?void 0:n.moduleSpecifier)&&(null==(r=t.data)?void 0:r.moduleSpecifier)&&(i=BS(e.data.moduleSpecifier,t.data.moduleSpecifier)),0===i?-1:i}function Sae(e){return!!(null==e?void 0:e.moduleSpecifier)}function Tae(e){return{isGlobalCompletion:!1,isMemberCompletion:!1,isNewIdentifierLocation:!1,entries:e,defaultCommitCharacters:bae(!1)}}function Cae(e,t,n,r,i,o){const a=PX(e,t);if(!Tu(a)&&!iP(a))return[];const s=iP(a)?a:a.parent;if(!iP(s))return[];const c=s.parent;if(!n_(c))return[];const l=Dm(e),_=i.includeCompletionsWithSnippetText||void 0,u=w(s.tags,(e=>bP(e)&&e.getEnd()<=t));return B(c.parameters,(e=>{if(!Fc(e).length){if(zN(e.name)){const t={tabstop:1},a=e.name.text;let s=Nae(a,e.initializer,e.dotDotDotToken,l,!1,!1,n,r,i),c=_?Nae(a,e.initializer,e.dotDotDotToken,l,!1,!0,n,r,i,t):void 0;return o&&(s=s.slice(1),c&&(c=c.slice(1))),{name:s,kind:"parameter",sortText:cae.LocationPriority,insertText:_?c:void 0,isSnippet:_}}if(e.parent.parameters.indexOf(e)===u){const t=`param${u}`,a=wae(t,e.name,e.initializer,e.dotDotDotToken,l,!1,n,r,i),s=_?wae(t,e.name,e.initializer,e.dotDotDotToken,l,!0,n,r,i):void 0;let c=a.join(Eb(r)+"* "),d=null==s?void 0:s.join(Eb(r)+"* ");return o&&(c=c.slice(1),d&&(d=d.slice(1))),{name:c,kind:"parameter",sortText:cae.LocationPriority,insertText:_?d:void 0,isSnippet:_}}}}))}function wae(e,t,n,r,i,o,a,s,c){return i?l(e,t,n,r,{tabstop:1}):[Nae(e,n,r,i,!1,o,a,s,c,{tabstop:1})];function l(e,t,n,r,l){if(qD(t)&&!r){const u={tabstop:l.tabstop},d=Nae(e,n,r,i,!0,o,a,s,c,u);let p=[];for(const n of t.elements){const t=_(e,n,u);if(!t){p=void 0;break}p.push(...t)}if(p)return l.tabstop=u.tabstop,[d,...p]}return[Nae(e,n,r,i,!1,o,a,s,c,l)]}function _(e,t,n){if(!t.propertyName&&zN(t.name)||zN(t.name)){const r=t.propertyName?Ip(t.propertyName):t.name.text;if(!r)return;return[Nae(`${e}.${r}`,t.initializer,t.dotDotDotToken,i,!1,o,a,s,c,n)]}if(t.propertyName){const r=Ip(t.propertyName);return r&&l(`${e}.${r}`,t.name,t.initializer,t.dotDotDotToken,n)}}}function Nae(e,t,n,r,i,o,a,s,c,l){if(o&&un.assertIsDefined(l),t&&(e=function(e,t){const n=t.getText().trim();return n.includes("\n")||n.length>80?`[${e}]`:`[${e}=${n}]`}(e,t)),o&&(e=RT(e)),r){let r="*";if(i)un.assert(!n,"Cannot annotate a rest parameter with type 'Object'."),r="Object";else{if(t){const e=a.getTypeAtLocation(t.parent);if(!(16385&e.flags)){const n=t.getSourceFile(),i=0===BQ(n,c)?268435456:0,l=a.typeToTypeNode(e,_c(t,n_),i);if(l){const e=o?Bae({removeComments:!0,module:s.module,moduleResolution:s.moduleResolution,target:s.target}):rU({removeComments:!0,module:s.module,moduleResolution:s.moduleResolution,target:s.target});nw(l,1),r=e.printNode(4,l,n)}}}o&&"*"===r&&(r=`\${${l.tabstop++}:${r}}`)}return`@param {${!i&&n?"...":""}${r}} ${e} ${o?`\${${l.tabstop++}}`:""}`}return`@param ${e} ${o?`\${${l.tabstop++}}`:""}`}function Dae(e,t,n){return{kind:4,keywordCompletions:ase(e,t),isNewIdentifierLocation:n}}function Fae(e){return 80===(null==e?void 0:e.kind)?pQ(e):void 0}function Eae(e,t){return!Dm(e)||!!eT(e,t)}function Pae(e,t,n,r,i,o,a){const s=e.clauses,c=o.getTypeChecker(),l=c.getTypeAtLocation(e.parent.expression);if(l&&l.isUnion()&&v(l.types,(e=>e.isLiteral()))){const _=HZ(c,s),u=hk(r),d=BQ(t,n),p=f7.createImportAdder(t,o,n,i),f=[];for(const t of l.types)if(1024&t.flags){un.assert(t.symbol,"An enum member type should have a symbol"),un.assert(t.symbol.parent,"An enum member type should have a parent symbol (the enum symbol)");const n=t.symbol.valueDeclaration&&c.getConstantValue(t.symbol.valueDeclaration);if(void 0!==n){if(_.hasValue(n))continue;_.addValue(n)}const r=f7.typeToAutoImportableTypeNode(c,p,t,e,u);if(!r)return;const i=Aae(r,u,d);if(!i)return;f.push(i)}else if(!_.hasValue(t.value))switch(typeof t.value){case"object":f.push(t.value.negative?XC.createPrefixUnaryExpression(41,XC.createBigIntLiteral({negative:!1,base10Value:t.value.base10Value})):XC.createBigIntLiteral(t.value));break;case"number":f.push(t.value<0?XC.createPrefixUnaryExpression(41,XC.createNumericLiteral(-t.value)):XC.createNumericLiteral(t.value));break;case"string":f.push(XC.createStringLiteral(t.value,0===d))}if(0===f.length)return;const m=E(f,(e=>XC.createCaseClause(e,[]))),g=kY(i,null==a?void 0:a.options),h=Bae({removeComments:!0,module:r.module,moduleResolution:r.moduleResolution,target:r.target,newLine:qZ(g)}),y=a?e=>h.printAndFormatNode(4,e,t,a):e=>h.printNode(4,e,t),v=E(m,((e,t)=>n.includeCompletionsWithSnippetText?`${y(e)}$${t+1}`:`${y(e)}`)).join(g);return{entry:{name:`${h.printNode(4,m[0],t)} ...`,kind:"",sortText:cae.GlobalsOrKeywords,insertText:v,hasAction:p.hasFixes()||void 0,source:"SwitchCases/",isSnippet:!!n.includeCompletionsWithSnippetText||void 0},importAdder:p}}}function Aae(e,t,n){switch(e.kind){case 183:return Iae(e.typeName,t,n);case 199:const r=Aae(e.objectType,t,n),i=Aae(e.indexType,t,n);return r&&i&&XC.createElementAccessExpression(r,i);case 201:const o=e.literal;switch(o.kind){case 11:return XC.createStringLiteral(o.text,0===n);case 9:return XC.createNumericLiteral(o.text,o.numericLiteralFlags)}return;case 196:const a=Aae(e.type,t,n);return a&&(zN(a)?a:XC.createParenthesizedExpression(a));case 186:return Iae(e.exprName,t,n);case 205:un.fail("We should not get an import type after calling 'codefix.typeToAutoImportableTypeNode'.")}}function Iae(e,t,n){if(zN(e))return e;const r=fc(e.right.escapedText);return WT(r,t)?XC.createPropertyAccessExpression(Iae(e.left,t,n),r):XC.createElementAccessExpression(Iae(e.left,t,n),XC.createStringLiteral(r,0===n))}function Oae(e){switch(e){case 0:case 3:case 2:return!0;default:return!1}}function Lae(e,t,n){return"object"==typeof n?fT(n)+"n":Ze(n)?tZ(e,t,n):JSON.stringify(n)}function jae(e,t,n){return{name:Lae(e,t,n),kind:"string",kindModifiers:"",sortText:cae.LocationPriority,commitCharacters:[]}}function Rae(e,t,n,r,i,o,a,s,c,l,_,u,d,p,f,m,g,h,y,x,k,S,T,C){var w,N;let D,F,E,P,A,I,O,L=dQ(n,o),j=Vae(u);const R=c.getTypeChecker(),M=u&&function(e){return!!(16&e.kind)}(u),B=u&&function(e){return!!(2&e.kind)}(u)||_;if(u&&function(e){return!!(1&e.kind)}(u))D=_?`this${M?"?.":""}[${qae(a,y,l)}]`:`this${M?"?.":"."}${l}`;else if((B||M)&&p){D=B?_?`[${qae(a,y,l)}]`:`[${l}]`:l,(M||p.questionDotToken)&&(D=`?.${D}`);const e=yX(p,25,a)||yX(p,29,a);if(!e)return;const t=Gt(l,p.name.text)?p.name.end:e.end;L=Ws(e.getStart(a),t)}if(f&&(void 0===D&&(D=l),D=`{${D}}`,"boolean"!=typeof f&&(L=pQ(f,a))),u&&function(e){return!!(8&e.kind)}(u)&&p){void 0===D&&(D=l);const e=jX(p.pos,a);let t="";e&&pZ(e.end,e.parent,a)&&(t=";"),t+=`(await ${p.expression.getText()})`,D=_?`${t}${D}`:`${t}${M?"?.":"."}${D}`,L=Ws((tt(p.parent,oF)?p.parent:p.expression).getStart(a),p.end)}if(fae(u)&&(A=[mY(u.moduleSpecifier)],m&&(({insertText:D,replacementSpan:L}=function(e,t,n,r,i,o,a){const s=t.replacementSpan,c=RT(tZ(i,a,n.moduleSpecifier)),l=n.isDefaultExport?1:"export="===n.exportName?2:0,_=a.includeCompletionsWithSnippetText?"$1":"",u=f7.getImportKind(i,l,o,!0),d=t.couldBeTypeOnlyImportSpecifier,p=t.isTopLevelTypeOnly?` ${Da(156)} `:" ",f=d?`${Da(156)} `:"",m=r?";":"";switch(u){case 3:return{replacementSpan:s,insertText:`import${p}${RT(e)}${_} = require(${c})${m}`};case 1:return{replacementSpan:s,insertText:`import${p}${RT(e)}${_} from ${c}${m}`};case 2:return{replacementSpan:s,insertText:`import${p}* as ${RT(e)} from ${c}${m}`};case 0:return{replacementSpan:s,insertText:`import${p}{ ${f}${RT(e)}${_} } from ${c}${m}`}}}(l,m,u,g,a,c,y)),P=!!y.includeCompletionsWithSnippetText||void 0)),64===(null==u?void 0:u.kind)&&(I=!0),0===x&&r&&28!==(null==(w=jX(r.pos,a,r))?void 0:w.kind)&&(_D(r.parent.parent)||pD(r.parent.parent)||fD(r.parent.parent)||JE(r.parent)||(null==(N=_c(r.parent,ME))?void 0:N.getLastToken(a))===r||BE(r.parent)&&Ja(a,r.getEnd()).line!==Ja(a,o).line)&&(j="ObjectLiteralMemberWithComma/",I=!0),y.includeCompletionsWithClassMemberSnippets&&y.includeCompletionsWithInsertText&&3===x&&function(e,t,n){if(Fm(t))return!1;return!!(106500&e.flags)&&(__(t)||t.parent&&t.parent.parent&&l_(t.parent)&&t===t.parent.name&&t.parent.getLastToken(n)===t.parent.name&&__(t.parent.parent)||t.parent&&AP(t)&&__(t.parent))}(e,i,a)){let t;const n=Mae(s,c,h,y,l,e,i,o,r,k);if(!n)return;({insertText:D,filterText:F,isSnippet:P,importAdder:t}=n),((null==t?void 0:t.hasFixes())||n.eraseRange)&&(I=!0,j="ClassMemberSnippet/")}if(u&&hae(u)&&(({insertText:D,isSnippet:P,labelDetails:O}=u),y.useLabelDetailsInCompletionEntries||(l+=O.detail,O=void 0),j="ObjectLiteralMethodSnippet/",t=cae.SortBelow(t)),S&&!T&&y.includeCompletionsWithSnippetText&&y.jsxAttributeCompletionStyle&&"none"!==y.jsxAttributeCompletionStyle&&(!FE(i.parent)||!i.parent.initializer)){let t="braces"===y.jsxAttributeCompletionStyle;const n=R.getTypeOfSymbolAtLocation(e,i);"auto"!==y.jsxAttributeCompletionStyle||528&n.flags||1048576&n.flags&&b(n.types,(e=>!!(528&e.flags)))||(402653316&n.flags||1048576&n.flags&&v(n.types,(e=>!!(402686084&e.flags||iQ(e))))?(D=`${RT(l)}=${tZ(a,y,"$1")}`,P=!0):t=!0),t&&(D=`${RT(l)}={$1}`,P=!0)}if(void 0!==D&&!y.includeCompletionsWithInsertText)return;(pae(u)||fae(u))&&(E=Jae(u),I=!m);const J=_c(i,Tx);if(J){const e=hk(s.getCompilationSettings());if(fs(l,e)){if(275===J.kind){const e=Fa(l);e&&(135===e||Dh(e))&&(D=`${l} as ${l}_`)}}else D=qae(a,y,l),275===J.kind&&(wG.setText(a.text),wG.resetTokenState(o),130===wG.scan()&&80===wG.scan()||(D+=" as "+function(e,t){let n,r=!1,i="";for(let o=0;o=65536?2:1)n=e.codePointAt(o),void 0!==n&&(0===o?ds(n,t):ps(n,t))?(r&&(i+="_"),i+=String.fromCodePoint(n),r=!1):r=!0;return r&&(i+="_"),i||"_"}(l,e)))}const z=mue.getSymbolKind(R,e,i),q="warning"===z||"string"===z?[]:void 0;return{name:l,kind:z,kindModifiers:mue.getSymbolModifiers(R,e),sortText:t,source:j,hasAction:!!I||void 0,isRecommended:Uae(e,d,R)||void 0,insertText:D,filterText:F,replacementSpan:L,sourceDisplay:A,labelDetails:O,isSnippet:P,isPackageJsonImport:mae(u)||void 0,isImportStatementCompletion:!!m||void 0,data:E,commitCharacters:q,...C?{symbol:e}:void 0}}function Mae(e,t,n,r,i,o,a,s,c,l){const _=_c(a,__);if(!_)return;let u,d=i;const p=i,f=t.getTypeChecker(),m=a.getSourceFile(),g=Bae({removeComments:!0,module:n.module,moduleResolution:n.moduleResolution,target:n.target,omitTrailingSemicolon:!1,newLine:qZ(kY(e,null==l?void 0:l.options))}),h=f7.createImportAdder(m,t,r,e);let y;if(r.includeCompletionsWithSnippetText){u=!0;const e=XC.createEmptyStatement();y=XC.createBlock([e],!0),Fw(e,{kind:0,order:0})}else y=XC.createBlock([],!0);let v=0;const{modifiers:b,range:x,decorators:k}=function(e,t,n){if(!e||Ja(t,n).line>Ja(t,e.getEnd()).line)return{modifiers:0};let r,i,o=0;const a={pos:n,end:n};if(cD(e.parent)&&(i=function(e){if(Yl(e))return e.kind;if(zN(e)){const t=gc(e);if(t&&Gl(t))return t}}(e))){e.parent.modifiers&&(o|=98303&Wv(e.parent.modifiers),r=e.parent.modifiers.filter(aD)||[],a.pos=Math.min(...e.parent.modifiers.map((e=>e.getStart(t)))));const n=$v(i);o&n||(o|=n,a.pos=Math.min(a.pos,e.getStart(t))),e.parent.name!==e&&(a.end=e.parent.name.getStart(t))}return{modifiers:o,decorators:r,range:a.pos{let t=0;S&&(t|=64),l_(e)&&1===f.getMemberOverrideModifierStatus(_,e,o)&&(t|=16),T.length||(v=e.modifierFlagsCache|t),e=XC.replaceModifiers(e,v),T.push(e)}),y,f7.PreserveOptionalFlags.Property,!!S),T.length){const e=8192&o.flags;let t=17|v;t|=e?1024:136;const n=b&t;if(b&~t)return;if(4&v&&1&n&&(v&=-5),0===n||1&n||(v&=-2),v|=n,T=T.map((e=>XC.replaceModifiers(e,v))),null==k?void 0:k.length){const e=T[T.length-1];iI(e)&&(T[T.length-1]=XC.replaceDecoratorsAndModifiers(e,k.concat(Nc(e)||[])))}const r=131073;d=l?g.printAndFormatSnippetList(r,XC.createNodeArray(T),m,l):g.printSnippetList(r,XC.createNodeArray(T),m)}return{insertText:d,filterText:p,isSnippet:u,importAdder:h,eraseRange:x}}function Bae(e){let t;const n=Tue.createWriter(Eb(e)),r=rU(e,n),i={...n,write:e=>o(e,(()=>n.write(e))),nonEscapingWrite:n.write,writeLiteral:e=>o(e,(()=>n.writeLiteral(e))),writeStringLiteral:e=>o(e,(()=>n.writeStringLiteral(e))),writeSymbol:(e,t)=>o(e,(()=>n.writeSymbol(e,t))),writeParameter:e=>o(e,(()=>n.writeParameter(e))),writeComment:e=>o(e,(()=>n.writeComment(e))),writeProperty:e=>o(e,(()=>n.writeProperty(e)))};return{printSnippetList:function(e,n,r){const i=a(e,n,r);return t?Tue.applyChanges(i,t):i},printAndFormatSnippetList:function(e,n,r,i){const o={text:a(e,n,r),getLineAndCharacterOfPosition(e){return Ja(this,e)}},s=VZ(i,r),c=O(n,(e=>{const t=Tue.assignPositionsToNode(e);return Zue.formatNodeGivenIndentation(t,o,r.languageVariant,0,0,{...i,options:s})})),l=t?_e(K(c,t),((e,t)=>bt(e.span,t.span))):c;return Tue.applyChanges(o.text,l)},printNode:function(e,n,r){const i=s(e,n,r);return t?Tue.applyChanges(i,t):i},printAndFormatNode:function(e,n,r,i){const o={text:s(e,n,r),getLineAndCharacterOfPosition(e){return Ja(this,e)}},a=VZ(i,r),c=Tue.assignPositionsToNode(n),l=Zue.formatNodeGivenIndentation(c,o,r.languageVariant,0,0,{...i,options:a}),_=t?_e(K(l,t),((e,t)=>bt(e.span,t.span))):l;return Tue.applyChanges(o.text,_)}};function o(e,r){const i=RT(e);if(i!==e){const e=n.getTextPos();r();const o=n.getTextPos();t=ie(t||(t=[]),{newText:i,span:{start:e,length:o-e}})}else r()}function a(e,n,o){return t=void 0,i.clear(),r.writeList(e,n,o,i),i.getText()}function s(e,n,o){return t=void 0,i.clear(),r.writeNode(e,n,o,i),i.getText()}}function Jae(e){const t=e.fileName?void 0:Dy(e.moduleSymbol.name),n=!!e.isFromPackageJson||void 0;return fae(e)?{exportName:e.exportName,exportMapKey:e.exportMapKey,moduleSpecifier:e.moduleSpecifier,ambientModuleName:t,fileName:e.fileName,isPackageJsonImport:n}:{exportName:e.exportName,exportMapKey:e.exportMapKey,fileName:e.fileName,ambientModuleName:e.fileName?void 0:Dy(e.moduleSymbol.name),isPackageJsonImport:!!e.isFromPackageJson||void 0}}function zae(e,t,n){const r="default"===e.exportName,i=!!e.isPackageJsonImport;return Sae(e)?{kind:32,exportName:e.exportName,exportMapKey:e.exportMapKey,moduleSpecifier:e.moduleSpecifier,symbolName:t,fileName:e.fileName,moduleSymbol:n,isDefaultExport:r,isFromPackageJson:i}:{kind:4,exportName:e.exportName,exportMapKey:e.exportMapKey,symbolName:t,fileName:e.fileName,moduleSymbol:n,isDefaultExport:r,isFromPackageJson:i}}function qae(e,t,n){return/^\d+$/.test(n)?n:tZ(e,t,n)}function Uae(e,t,n){return e===t||!!(1048576&e.flags)&&n.getExportSymbolOfSymbol(e)===t}function Vae(e){return pae(e)?Dy(e.moduleSymbol.name):fae(e)?e.moduleSpecifier:1===(null==e?void 0:e.kind)?"ThisProperty/":64===(null==e?void 0:e.kind)?"TypeOnlyAlias/":void 0}function Wae(e,t,n,r,i,o,a,s,c,l,_,u,d,p,f,m,g,h,y,v,b,x,k,S,T,C=!1){const w=Un(),N=function(e,t){if(!e)return;let n=_c(e,(e=>Rf(e)||Tse(e)||x_(e)?"quit":(oD(e)||iD(e))&&!hD(e.parent)));return n||(n=_c(t,(e=>Rf(e)||Tse(e)||x_(e)?"quit":VF(e)))),n}(r,i),D=fZ(a),F=c.getTypeChecker(),E=new Map;for(let _=0;_e.getSourceFile()===i.getSourceFile())));E.set(O,M),Z(t,R,kae,void 0,!0)}return _("getCompletionsAtPosition: getCompletionEntriesFromSymbols: "+(Un()-w)),{has:e=>E.has(e),add:e=>E.set(e,!0)};function P(e,t){var n;let o=e.flags;if(!qE(i)){if(pE(i.parent))return!0;if(tt(N,VF)&&e.valueDeclaration===N)return!1;const s=e.valueDeclaration??(null==(n=e.declarations)?void 0:n[0]);if(N&&s)if(oD(N)&&oD(s)){const e=N.parent.parameters;if(s.pos>=N.pos&&s.pos=N.pos&&s.posLae(n,a,e)===i.name));return void 0!==v?{type:"literal",literal:v}:f(l,((e,t)=>{const n=p[t],r=rse(e,hk(s),n,d,c.isJsxIdentifierExpected);return r&&r.name===i.name&&("ClassMemberSnippet/"===i.source&&106500&e.flags||"ObjectLiteralMethodSnippet/"===i.source&&8196&e.flags||Vae(n)===i.source||"ObjectLiteralMemberWithComma/"===i.source)?{type:"symbol",symbol:e,location:u,origin:n,contextToken:m,previousToken:g,isJsxInitializer:h,isTypeOnlyLocation:y}:void 0}))||{type:"none"}}function Hae(e,t,n,r,i,o,a,s,c){const l=e.getTypeChecker(),_=e.getCompilerOptions(),{name:u,source:d,data:p}=i,{previousToken:f,contextToken:m}=tse(r,n);if(JX(n,r,f))return Dse.getStringLiteralCompletionDetails(u,n,r,f,e,o,c,s);const g=$ae(e,t,n,r,i,o,s);switch(g.type){case"request":{const{request:e}=g;switch(e.kind){case 1:return fle.getJSDocTagNameCompletionDetails(u);case 2:return fle.getJSDocTagCompletionDetails(u);case 3:return fle.getJSDocParameterNameCompletionDetails(u);case 4:return $(e.keywordCompletions,(e=>e.name===u))?Kae(u,"keyword",5):void 0;default:return un.assertNever(e)}}case"symbol":{const{symbol:t,location:i,contextToken:f,origin:m,previousToken:h}=g,{codeActions:y,sourceDisplay:v}=function(e,t,n,r,i,o,a,s,c,l,_,u,d,p,f,m){if((null==p?void 0:p.moduleSpecifier)&&_&&yse(n||_,c).replacementSpan)return{codeActions:void 0,sourceDisplay:[mY(p.moduleSpecifier)]};if("ClassMemberSnippet/"===f){const{importAdder:r,eraseRange:_}=Mae(a,o,s,d,e,i,t,l,n,u);if((null==r?void 0:r.hasFixes())||_)return{sourceDisplay:void 0,codeActions:[{changes:Tue.ChangeTracker.with({host:a,formatContext:u,preferences:d},(e=>{r&&r.writeFixes(e),_&&e.deleteRange(c,_)})),description:(null==r?void 0:r.hasFixes())?UZ([la.Includes_imports_of_types_referenced_by_0,e]):UZ([la.Update_modifiers_of_0,e])}]}}if(gae(r)){const e=f7.getPromoteTypeOnlyCompletionAction(c,r.declaration.name,o,a,u,d);return un.assertIsDefined(e,"Expected to have a code action for promoting type-only alias"),{codeActions:[e],sourceDisplay:void 0}}if("ObjectLiteralMemberWithComma/"===f&&n){const t=Tue.ChangeTracker.with({host:a,formatContext:u,preferences:d},(e=>e.insertText(c,n.end,",")));if(t)return{sourceDisplay:void 0,codeActions:[{changes:t,description:UZ([la.Add_missing_comma_for_object_member_completion_0,e])}]}}if(!r||!pae(r)&&!fae(r))return{codeActions:void 0,sourceDisplay:void 0};const g=r.isFromPackageJson?a.getPackageJsonAutoImportProvider().getTypeChecker():o.getTypeChecker(),{moduleSymbol:h}=r,y=g.getMergedSymbol(ix(i.exportSymbol||i,g)),v=30===(null==n?void 0:n.kind)&&vu(n.parent),{moduleSpecifier:b,codeAction:x}=f7.getImportCompletionAction(y,h,null==p?void 0:p.exportMapKey,c,e,v,a,o,u,_&&zN(_)?_.getStart(c):l,d,m);return un.assert(!(null==p?void 0:p.moduleSpecifier)||b===p.moduleSpecifier),{sourceDisplay:[mY(b)],codeActions:[x]}}(u,i,f,m,t,e,o,_,n,r,h,a,s,p,d,c);return Gae(t,yae(m)?m.symbolName:t.name,l,n,i,c,y,v)}case"literal":{const{literal:e}=g;return Kae(Lae(n,s,e),"string","string"==typeof e?8:7)}case"cases":{const t=Pae(m.parent,n,s,e.getCompilerOptions(),o,e,void 0);if(null==t?void 0:t.importAdder.hasFixes()){const{entry:e,importAdder:n}=t,r=Tue.ChangeTracker.with({host:o,formatContext:a,preferences:s},n.writeFixes);return{name:e.name,kind:"",kindModifiers:"",displayParts:[],sourceDisplay:void 0,codeActions:[{changes:r,description:UZ([la.Includes_imports_of_types_referenced_by_0,u])}]}}return{name:u,kind:"",kindModifiers:"",displayParts:[],sourceDisplay:void 0}}case"none":return ose().some((e=>e.name===u))?Kae(u,"keyword",5):void 0;default:un.assertNever(g)}}function Kae(e,t,n){return Xae(e,"",t,[sY(e,n)])}function Gae(e,t,n,r,i,o,a,s){const{displayParts:c,documentation:l,symbolKind:_,tags:u}=n.runWithCancellationToken(o,(t=>mue.getSymbolDisplayPartsDocumentationAndSymbolKind(t,e,r,i,i,7)));return Xae(t,mue.getSymbolModifiers(n,e),_,c,l,u,a,s)}function Xae(e,t,n,r,i,o,a,s){return{name:e,kindModifiers:t,kind:n,displayParts:r,documentation:i,tags:o,codeActions:a,source:s,sourceDisplay:s}}function Qae(e,t,n,r,i,o,a){const s=$ae(e,t,n,r,i,o,a);return"symbol"===s.type?s.symbol:void 0}var Yae=(e=>(e[e.ObjectPropertyDeclaration=0]="ObjectPropertyDeclaration",e[e.Global=1]="Global",e[e.PropertyAccess=2]="PropertyAccess",e[e.MemberLike=3]="MemberLike",e[e.String=4]="String",e[e.None=5]="None",e))(Yae||{});function Zae(e,t,n){const r=n.getAccessibleSymbolChain(e,t,-1,!1);return r?ge(r):e.parent&&(function(e){var t;return!!(null==(t=e.declarations)?void 0:t.some((e=>307===e.kind)))}(e.parent)?e:Zae(e.parent,t,n))}function ese(e,t,n,r,i,o,a,s,c,l){const _=e.getTypeChecker(),u=Eae(n,r);let p=Un(),m=PX(n,i);t("getCompletionData: Get current token: "+(Un()-p)),p=Un();const g=XX(n,i,m);t("getCompletionData: Is inside comment: "+(Un()-p));let h=!1,y=!1,v=!1;if(g){if(QX(n,i)){if(64===n.text.charCodeAt(i-1))return{kind:1};{const e=oX(i,n);if(!/[^*|\s(/)]/.test(n.text.substring(e,i)))return{kind:2}}}const e=function(e,t){return _c(e,(e=>!(!Tu(e)||!sX(e,t))||!!iP(e)&&"quit"))}(m,i);if(e){if(e.tagName.pos<=i&&i<=e.tagName.end)return{kind:1};if(PP(e))y=!0;else{const t=function(e){if(function(e){switch(e.kind){case 341:case 348:case 342:case 344:case 346:case 349:case 350:return!0;case 345:return!!e.constraint;default:return!1}}(e)){const t=TP(e)?e.constraint:e.typeExpression;return t&&309===t.kind?t:void 0}if(sP(e)||DP(e))return e.class}(e);if(t&&(m=PX(n,i),m&&(ch(m)||348===m.parent.kind&&m.parent.name===m)||(h=he(t))),!h&&bP(e)&&(Cd(e.name)||e.name.pos<=i&&i<=e.name.end))return{kind:3,tag:e}}}if(!h&&!y)return void t("Returning an empty list because completion was inside a regular comment or plain text part of a JsDoc comment.")}p=Un();const x=!h&&!y&&Dm(n),k=tse(i,n),S=k.previousToken;let T=k.contextToken;t("getCompletionData: Get previous token: "+(Un()-p));let C,w,D,F=m,E=!1,P=!1,A=!1,I=!1,L=!1,j=!1,R=FX(n,i),M=0,J=!1,z=0;if(T){const e=yse(T,n);if(e.keywordCompletion){if(e.isKeywordOnlyCompletion)return{kind:4,keywordCompletions:[(q=e.keywordCompletion,{name:Da(q),kind:"keyword",kindModifiers:"",sortText:cae.GlobalsOrKeywords})],isNewIdentifierLocation:e.isNewIdentifierLocation};M=function(e){if(156===e)return 8;un.fail("Unknown mapping from SyntaxKind to KeywordCompletionFilters")}(e.keywordCompletion)}if(e.replacementSpan&&o.includeCompletionsForImportStatements&&o.includeCompletionsWithInsertText&&(z|=2,w=e,J=e.isNewIdentifierLocation),!e.replacementSpan&&function(e){const r=Un(),o=function(e){return(wN(e)||ql(e))&&(cX(e,i)||i===e.end&&(!!e.isUnterminated||wN(e)))}(e)||function(e){const t=e.parent,r=t.kind;switch(e.kind){case 28:return 260===r||261===(o=e).parent.kind&&!HX(o,n,_)||243===r||266===r||pe(r)||264===r||207===r||265===r||__(t)&&!!t.typeParameters&&t.typeParameters.end>=e.pos;case 25:case 23:return 207===r;case 59:return 208===r;case 21:return 299===r||pe(r);case 19:return 266===r;case 30:return 263===r||231===r||264===r||265===r||s_(r);case 126:return 172===r&&!__(t.parent);case 26:return 169===r||!!t.parent&&207===t.parent.kind;case 125:case 123:case 124:return 169===r&&!dD(t.parent);case 130:return 276===r||281===r||274===r;case 139:case 153:return!gse(e);case 80:if((276===r||281===r)&&e===t.name&&"type"===e.text)return!1;if(_c(e.parent,VF)&&function(e,t){return n.getLineEndOfPosition(e.getEnd())S.end))}(e)||function(e){if(9===e.kind){const t=e.getFullText();return"."===t.charAt(t.length-1)}return!1}(e)||function(e){if(12===e.kind)return!0;if(32===e.kind&&e.parent){if(R===e.parent&&(286===R.kind||285===R.kind))return!1;if(286===e.parent.kind)return 286!==R.parent.kind;if(287===e.parent.kind||285===e.parent.kind)return!!e.parent.parent&&284===e.parent.parent.kind}return!1}(e)||SN(e);return t("getCompletionsAtPosition: isCompletionListBlocker: "+(Un()-r)),o}(T))return t("Returning an empty list because completion was requested in an invalid position."),M?Dae(M,x,_e().isNewIdentifierLocation):void 0;let r=T.parent;if(25===T.kind||29===T.kind)switch(E=25===T.kind,P=29===T.kind,r.kind){case 211:if(C=r,F=C.expression,Cd(Cx(C))||(GD(F)||n_(F))&&F.end===T.pos&&F.getChildCount(n)&&22!==ve(F.getChildren(n)).kind)return;break;case 166:F=r.left;break;case 267:F=r.name;break;case 205:F=r;break;case 236:F=r.getFirstToken(n),un.assert(102===F.kind||105===F.kind);break;default:return}else if(!w){if(r&&211===r.kind&&(T=r,r=r.parent),m.parent===R)switch(m.kind){case 32:284!==m.parent.kind&&286!==m.parent.kind||(R=m);break;case 44:285===m.parent.kind&&(R=m)}switch(r.kind){case 287:44===T.kind&&(I=!0,R=T);break;case 226:if(!hse(r))break;case 285:case 284:case 286:j=!0,30===T.kind&&(A=!0,R=T);break;case 294:case 293:(20===S.kind||80===S.kind&&291===S.parent.kind)&&(j=!0);break;case 291:if(r.initializer===S&&S.endAQ(t?s.getPackageJsonAutoImportProvider():e,s)));if(E||P)!function(){W=2;const e=_f(F),t=e&&!F.isTypeOf||Tf(F.parent)||HX(T,n,_),r=EG(F);if(Zl(F)||e||HD(F)){const n=QF(F.parent);n&&(J=!0,D=[]);let i=_.getSymbolAtLocation(F);if(i&&(i=ix(i,_),1920&i.flags)){const a=_.getExportsOfModule(i);un.assertEachIsDefined(a,"getExportsOfModule() should all be defined");const s=t=>_.isValidPropertyAccess(e?F:F.parent,t.name),c=e=>Cse(e,_),l=n?e=>{var t;return!!(1920&e.flags)&&!(null==(t=e.declarations)?void 0:t.every((e=>e.parent===F.parent)))}:r?e=>c(e)||s(e):t||h?c:s;for(const e of a)l(e)&&G.push(e);if(!t&&!h&&i.declarations&&i.declarations.some((e=>307!==e.kind&&267!==e.kind&&266!==e.kind))){let e=_.getTypeOfSymbolAtLocation(i,F).getNonOptionalType(),t=!1;if(e.isNullableType()){const n=E&&!P&&!1!==o.includeAutomaticOptionalChainCompletions;(n||P)&&(e=e.getNonNullableType(),n&&(t=!0))}oe(e,!!(65536&F.flags),t)}return}}if(!t||lv(F)){_.tryGetThisTypeAt(F,!1);let e=_.getTypeAtLocation(F).getNonOptionalType();if(t)oe(e.getNonNullableType(),!1,!1);else{let t=!1;if(e.isNullableType()){const n=E&&!P&&!1!==o.includeAutomaticOptionalChainCompletions;(n||P)&&(e=e.getNonNullableType(),n&&(t=!0))}oe(e,!!(65536&F.flags),t)}}}();else if(A)G=_.getJsxIntrinsicTagNamesAt(R),un.assertEachIsDefined(G,"getJsxIntrinsicTagNames() should all be defined"),ce(),W=1,M=0;else if(I){const e=T.parent.parent.openingElement.tagName,t=_.getSymbolAtLocation(e);t&&(G=[t]),W=1,M=0}else if(!ce())return M?Dae(M,x,J):void 0;t("getCompletionData: Semantic work: "+(Un()-U));const ne=S&&function(e,t,n,r){const{parent:i}=e;switch(e.kind){case 80:return eZ(e,r);case 64:switch(i.kind){case 260:return r.getContextualType(i.initializer);case 226:return r.getTypeAtLocation(i.left);case 291:return r.getContextualTypeForJsxAttribute(i);default:return}case 105:return r.getContextualType(i);case 84:const o=tt(i,OE);return o?oZ(o,r):void 0;case 19:return!AE(i)||kE(i.parent)||wE(i.parent)?void 0:r.getContextualTypeForJsxAttribute(i.parent);default:const a=I_e.getArgumentInfoForCompletions(e,t,n,r);return a?r.getContextualTypeForArgumentAtIndex(a.invocation,a.argumentIndex):nZ(e.kind)&&cF(i)&&nZ(i.operatorToken.kind)?r.getTypeAtLocation(i.left):r.getContextualType(e,4)||r.getContextualType(e)}}(S,i,n,_),re=tt(S,Lu)||j?[]:B(ne&&(ne.isUnion()?ne.types:[ne]),(e=>!e.isLiteral()||1024&e.flags?void 0:e.value)),ie=S&&ne&&function(e,t,n){return f(t&&(t.isUnion()?t.types:[t]),(t=>{const r=t&&t.symbol;return r&&424&r.flags&&!px(r)?Zae(r,e,n):void 0}))}(S,ne,_);return{kind:0,symbols:G,completionKind:W,isInSnippetScope:v,propertyAccessToConvert:C,isNewIdentifierLocation:J,location:R,keywordFilters:M,literals:re,symbolToOriginInfoMap:X,recommendedCompletion:ie,previousToken:S,contextToken:T,isJsxInitializer:L,insideJsDocTagTypeExpression:h,symbolToSortTextMap:Q,isTypeOnlyLocation:Z,isJsxIdentifierExpected:j,isRightOfOpenTag:A,isRightOfDotOrQuestionDot:E||P,importStatementCompletion:w,hasUnresolvedAutoImports:H,flags:z,defaultCommitCharacters:D};function oe(e,t,n){e.getStringIndexType()&&(J=!0,D=[]),P&&$(e.getCallSignatures())&&(J=!0,D??(D=lae));const r=205===F.kind?F:F.parent;if(u)for(const t of e.getApparentProperties())_.isValidPropertyAccessForCompletions(r,e,t)&&ae(t,!1,n);else G.push(...N(fse(e,_),(t=>_.isValidPropertyAccessForCompletions(r,e,t))));if(t&&o.includeCompletionsWithInsertText){const t=_.getPromisedTypeOfPromise(e);if(t)for(const e of t.getApparentProperties())_.isValidPropertyAccessForCompletions(r,t,e)&&ae(e,!0,n)}}function ae(t,r,a){var c;const l=f(t.declarations,(e=>tt(Tc(e),rD)));if(l){const r=se(l.expression),a=r&&_.getSymbolAtLocation(r),f=a&&Zae(a,T,_),m=f&&RB(f);if(m&&vx(Y,m)){const t=G.length;G.push(f);const r=f.parent;if(r&&Gu(r)&&_.tryGetMemberInModuleExportsAndProperties(f.name,r)===f){const a=Ts(Dy(r.name))?null==(c=yd(r))?void 0:c.fileName:void 0,{moduleSpecifier:l}=(V||(V=f7.createImportSpecifierResolver(n,e,s,o))).getModuleSpecifierForBestExportInfo([{exportKind:0,moduleFileName:a,isFromPackageJson:!1,moduleSymbol:r,symbol:f,targetFlags:ix(f,_).flags}],i,yT(R))||{};if(l){const e={kind:p(6),moduleSymbol:r,isDefaultExport:!1,symbolName:f.name,exportName:f.name,fileName:a,moduleSpecifier:l};X[t]=e}}else X[t]={kind:p(2)}}else if(o.includeCompletionsWithInsertText){if(m&&Y.has(m))return;d(t),u(t),G.push(t)}}else d(t),u(t),G.push(t);function u(e){(function(e){return!!(e.valueDeclaration&&256&Mv(e.valueDeclaration)&&__(e.valueDeclaration.parent))})(e)&&(Q[RB(e)]=cae.LocalDeclarationPriority)}function d(e){o.includeCompletionsWithInsertText&&(r&&vx(Y,RB(e))?X[G.length]={kind:p(8)}:a&&(X[G.length]={kind:16}))}function p(e){return a?16|e:e}}function se(e){return zN(e)?e:HD(e)?se(e.expression):void 0}function ce(){const t=function(){const e=function(e){if(!e)return;const t=e.parent;switch(e.kind){case 19:if(SD(t))return t;break;case 27:case 28:case 80:if(171===t.kind&&SD(t.parent))return t.parent}}(T);if(!e)return 0;const t=(ED(e.parent)?e.parent:void 0)||e,n=mse(t,_);if(!n)return 0;const r=_.getTypeFromTypeNode(t),i=fse(n,_),o=fse(r,_),a=new Set;return o.forEach((e=>a.add(e.escapedName))),G=K(G,N(i,(e=>!a.has(e.escapedName)))),W=0,J=!0,1}()||function(){if(26===(null==T?void 0:T.kind))return 0;const t=G.length,a=function(e,t,n){var r;if(e){const{parent:i}=e;switch(e.kind){case 19:case 28:if($D(i)||qD(i))return i;break;case 42:return _D(i)?tt(i.parent,$D):void 0;case 134:return tt(i.parent,$D);case 80:if("async"===e.text&&BE(e.parent))return e.parent.parent;{if($D(e.parent.parent)&&(JE(e.parent)||BE(e.parent)&&Ja(n,e.getEnd()).line!==Ja(n,t).line))return e.parent.parent;const r=_c(i,ME);if((null==r?void 0:r.getLastToken(n))===e&&$D(r.parent))return r.parent}break;default:if((null==(r=i.parent)?void 0:r.parent)&&(_D(i.parent)||pD(i.parent)||fD(i.parent))&&$D(i.parent.parent))return i.parent.parent;if(JE(i)&&$D(i.parent))return i.parent;const o=_c(i,ME);if(59!==e.kind&&(null==o?void 0:o.getLastToken(n))===e&&$D(o.parent))return o.parent}}}(T,i,n);if(!a)return 0;let l,u;if(W=0,210===a.kind){const e=function(e,t){const n=t.getContextualType(e);if(n)return n;const r=nh(e.parent);return cF(r)&&64===r.operatorToken.kind&&e===r.left?t.getTypeAtLocation(r):U_(r)?t.getContextualType(r):void 0}(a,_);if(void 0===e)return 67108864&a.flags?2:0;const t=_.getContextualType(a,4),n=(t||e).getStringIndexType(),r=(t||e).getNumberIndexType();if(J=!!n||!!r,l=dse(e,t,a,_),u=a.properties,0===l.length&&!r)return 0}else{un.assert(206===a.kind),J=!1;const e=Qh(a.parent);if(!Ef(e))return un.fail("Root declaration is not variable-like.");let t=Fu(e)||!!pv(e)||250===e.parent.parent.kind;if(t||169!==e.kind||(U_(e.parent)?t=!!_.getContextualType(e.parent):174!==e.parent.kind&&178!==e.parent.kind||(t=U_(e.parent.parent)&&!!_.getContextualType(e.parent.parent))),t){const e=_.getTypeAtLocation(a);if(!e)return 2;l=_.getPropertiesOfType(e).filter((t=>_.isPropertyAccessible(a,!1,!1,e,t))),u=a.elements}}if(l&&l.length>0){const n=function(e,t){if(0===t.length)return e;const n=new Set,r=new Set;for(const e of t){if(303!==e.kind&&304!==e.kind&&208!==e.kind&&174!==e.kind&&177!==e.kind&&178!==e.kind&&305!==e.kind)continue;if(he(e))continue;let t;if(JE(e))fe(e,n);else if(VD(e)&&e.propertyName)80===e.propertyName.kind&&(t=e.propertyName.escapedText);else{const n=Tc(e);t=n&&Jh(n)?qh(n):void 0}void 0!==t&&r.add(t)}const i=e.filter((e=>!r.has(e.escapedName)));return ge(n,i),i}(l,un.checkDefined(u));G=K(G,n),me(),210===a.kind&&o.includeCompletionsWithObjectLiteralMethodSnippets&&o.includeCompletionsWithInsertText&&(function(e){for(let t=e;t{if(!(8196&t.flags))return;const n=rse(t,hk(r),void 0,0,!1);if(!n)return;const{name:i}=n,a=function(e,t,n,r,i,o,a,s){const c=a.includeCompletionsWithSnippetText||void 0;let l=t;const _=n.getSourceFile(),u=function(e,t,n,r,i,o){const a=e.getDeclarations();if(!a||!a.length)return;const s=r.getTypeChecker(),c=a[0],l=LY(Tc(c),!1),_=s.getWidenedType(s.getTypeOfSymbolAtLocation(e,t)),u=33554432|(0===BQ(n,o)?268435456:0);switch(c.kind){case 171:case 172:case 173:case 174:{let e=1048576&_.flags&&_.types.length<10?s.getUnionType(_.types,2):_;if(1048576&e.flags){const t=N(e.types,(e=>s.getSignaturesOfType(e,0).length>0));if(1!==t.length)return;e=t[0]}if(1!==s.getSignaturesOfType(e,0).length)return;const n=s.typeToTypeNode(e,t,u,void 0,f7.getNoopSymbolTrackerWithResolver({program:r,host:i}));if(!n||!bD(n))return;let a;if(o.includeCompletionsWithSnippetText){const e=XC.createEmptyStatement();a=XC.createBlock([e],!0),Fw(e,{kind:0,order:0})}else a=XC.createBlock([],!0);const c=n.parameters.map((e=>XC.createParameterDeclaration(void 0,e.dotDotDotToken,e.name,void 0,void 0,e.initializer)));return XC.createMethodDeclaration(void 0,void 0,l,void 0,void 0,c,void 0,a)}default:return}}(e,n,_,r,i,a);if(!u)return;const d=Bae({removeComments:!0,module:o.module,moduleResolution:o.moduleResolution,target:o.target,omitTrailingSemicolon:!1,newLine:qZ(kY(i,null==s?void 0:s.options))});l=s?d.printAndFormatSnippetList(80,XC.createNodeArray([u],!0),_,s):d.printSnippetList(80,XC.createNodeArray([u],!0),_);const p=rU({removeComments:!0,module:o.module,moduleResolution:o.moduleResolution,target:o.target,omitTrailingSemicolon:!0}),f=XC.createMethodSignature(void 0,"",u.questionToken,u.typeParameters,u.parameters,u.type);return{isSnippet:c,insertText:l,labelDetails:{detail:p.printNode(4,f,_)}}}(t,i,p,e,s,r,o,c);if(!a)return;const l={kind:128,...a};z|=32,X[G.length]=l,G.push(t)})))}var d,p;return 1}()||(w?(J=!0,le(),1):0)||function(){if(!T)return 0;const e=19===T.kind||28===T.kind?tt(T.parent,Tx):SQ(T)?tt(T.parent.parent,Tx):void 0;if(!e)return 0;SQ(T)||(M=8);const{moduleSpecifier:t}=275===e.kind?e.parent.parent:e.parent;if(!t)return J=!0,275===e.kind?2:0;const n=_.getSymbolAtLocation(t);if(!n)return J=!0,2;W=3,J=!1;const r=_.getExportsAndPropertiesOfModule(n),i=new Set(e.elements.filter((e=>!he(e))).map((e=>Wd(e.propertyName||e.name)))),o=r.filter((e=>"default"!==e.escapedName&&!i.has(e.escapedName)));return G=K(G,o),o.length||(M=0),1}()||function(){if(void 0===T)return 0;const e=19===T.kind||28===T.kind?tt(T.parent,sE):59===T.kind?tt(T.parent.parent,sE):void 0;if(void 0===e)return 0;const t=new Set(e.elements.map(uC));return G=N(_.getTypeAtLocation(e).getApparentProperties(),(e=>!t.has(e.escapedName))),1}()||function(){var e;const t=!T||19!==T.kind&&28!==T.kind?void 0:tt(T.parent,mE);if(!t)return 0;const n=_c(t,en(qE,QF));return W=5,J=!1,null==(e=n.locals)||e.forEach(((e,t)=>{var r,i;G.push(e),(null==(i=null==(r=n.symbol)?void 0:r.exports)?void 0:i.has(t))&&(Q[RB(e)]=cae.OptionalMember)})),1}()||(function(e){if(e){const t=e.parent;switch(e.kind){case 21:case 28:return dD(e.parent)?e.parent:void 0;default:if(ue(e))return t.parent}}}(T)?(W=5,J=!0,M=4,1):0)||function(){const e=function(e,t,n,r){switch(n.kind){case 352:return tt(n.parent,bx);case 1:const t=tt(ye(nt(n.parent,qE).statements),bx);if(t&&!yX(t,20,e))return t;break;case 81:if(tt(n.parent,cD))return _c(n,__);break;case 80:if(gc(n))return;if(cD(n.parent)&&n.parent.initializer===n)return;if(gse(n))return _c(n,bx)}if(t){if(137===n.kind||zN(t)&&cD(t.parent)&&__(n))return _c(t,__);switch(t.kind){case 64:return;case 27:case 20:return gse(n)&&n.parent.name===n?n.parent.parent:tt(n,bx);case 19:case 28:return tt(t.parent,bx);default:if(bx(n)){if(Ja(e,t.getEnd()).line!==Ja(e,r).line)return n;const i=__(t.parent.parent)?lse:cse;return i(t.kind)||42===t.kind||zN(t)&&i(gc(t)??0)?t.parent.parent:void 0}return}}}(n,T,R,i);if(!e)return 0;if(W=3,J=!0,M=42===T.kind?0:__(e)?2:3,!__(e))return 1;const t=27===T.kind?T.parent.parent:T.parent;let r=l_(t)?Mv(t):0;if(80===T.kind&&!he(T))switch(T.getText()){case"private":r|=2;break;case"static":r|=256;break;case"override":r|=16}if(uD(t)&&(r|=256),!(2&r)){const t=O(__(e)&&16&r?rn(hh(e)):bh(e),(t=>{const n=_.getTypeAtLocation(t);return 256&r?(null==n?void 0:n.symbol)&&_.getPropertiesOfType(_.getTypeOfSymbolAtLocation(n.symbol,e)):n&&_.getPropertiesOfType(n)}));G=K(G,function(e,t,n){const r=new Set;for(const e of t){if(172!==e.kind&&174!==e.kind&&177!==e.kind&&178!==e.kind)continue;if(he(e))continue;if(Cv(e,2))continue;if(Nv(e)!==!!(256&n))continue;const t=Bh(e.name);t&&r.add(t)}return e.filter((e=>!(r.has(e.escapedName)||!e.declarations||2&rx(e)||e.valueDeclaration&&Hl(e.valueDeclaration))))}(t,e.members,r)),d(G,((e,t)=>{const n=null==e?void 0:e.valueDeclaration;if(n&&l_(n)&&n.name&&rD(n.name)){const n={kind:512,symbolName:_.symbolToString(e)};X[t]=n}}))}return 1}()||function(){const e=function(e){if(e){const t=e.parent;switch(e.kind){case 32:case 31:case 44:case 80:case 211:case 292:case 291:case 293:if(t&&(285===t.kind||286===t.kind)){if(32===e.kind){const r=jX(e.pos,n,void 0);if(!t.typeArguments||r&&44===r.kind)break}return t}if(291===t.kind)return t.parent.parent;break;case 11:if(t&&(291===t.kind||293===t.kind))return t.parent.parent;break;case 20:if(t&&294===t.kind&&t.parent&&291===t.parent.kind)return t.parent.parent.parent;if(t&&293===t.kind)return t.parent.parent}}}(T),t=e&&_.getContextualType(e.attributes);if(!t)return 0;const r=e&&_.getContextualType(e.attributes,4);return G=K(G,function(e,t){const n=new Set,r=new Set;for(const e of t)he(e)||(291===e.kind?n.add(ZT(e.name)):PE(e)&&fe(e,r));const i=e.filter((e=>!n.has(e.escapedName)));return ge(r,i),i}(dse(t,r,e.attributes,_),e.attributes.properties)),me(),W=3,J=!1,1}()||(function(){M=function(e){if(e){let t;const n=_c(e.parent,(e=>__(e)?"quit":!(!i_(e)||t!==e.body)||(t=e,!1)));return n&&n}}(T)?5:1,W=1,({isNewIdentifierLocation:J,defaultCommitCharacters:D}=_e()),S!==T&&un.assert(!!S,"Expected 'contextToken' to be defined when different from 'previousToken'.");const e=S!==T?S.getStart():i,t=function(e,t,n){let r=e;for(;r&&!pX(r,t,n);)r=r.parent;return r}(T,e,n)||n;v=function(e){switch(e.kind){case 307:case 228:case 294:case 241:return!0;default:return du(e)}}(t);const r=2887656|(Z?0:111551),a=S&&!yT(S);G=K(G,_.getSymbolsInScope(t,r)),un.assertEachIsDefined(G,"getSymbolsInScope() should all be defined");for(let e=0;ee.getSourceFile()===n))||(Q[RB(t)]=cae.GlobalsOrKeywords),a&&!(111551&t.flags)){const n=t.declarations&&b(t.declarations,Ml);if(n){const t={kind:64,declaration:n};X[e]=t}}}if(o.includeCompletionsWithInsertText&&307!==t.kind){const e=_.tryGetThisTypeAt(t,!1,__(t.parent)?t:void 0);if(e&&!function(e,t,n){const r=n.resolveName("self",void 0,111551,!1);if(r&&n.getTypeOfSymbolAtLocation(r,t)===e)return!0;const i=n.resolveName("global",void 0,111551,!1);if(i&&n.getTypeOfSymbolAtLocation(i,t)===e)return!0;const o=n.resolveName("globalThis",void 0,111551,!1);return!(!o||n.getTypeOfSymbolAtLocation(o,t)!==e)}(e,n,_))for(const t of fse(e,_))X[G.length]={kind:1},G.push(t),Q[RB(t)]=cae.SuggestedClassMembers}le(),Z&&(M=T&&V_(T.parent)?6:7)}(),1);return 1===t}function le(){var t,r;if(!function(){var t;return!!w||!!o.includeCompletionsForModuleExports&&(!(!n.externalModuleIndicator&&!n.commonJsModuleIndicator)||!!PQ(e.getCompilerOptions())||(null==(t=e.getSymlinkCache)?void 0:t.call(e).hasAnySymlinks())||!!e.getCompilerOptions().paths||FQ(e))}())return;if(un.assert(!(null==a?void 0:a.data),"Should not run 'collectAutoImports' when faster path is available via `data`"),a&&!a.source)return;z|=1;const c=S===T&&w?"":S&&zN(S)?S.text.toLowerCase():"",_=null==(t=s.getModuleSpecifierCache)?void 0:t.call(s),u=s0(n,s,e,o,l),d=null==(r=s.getPackageJsonAutoImportProvider)?void 0:r.call(s),p=a?void 0:TZ(n,o,s);function f(t){return e0(t.isFromPackageJson?d:e,n,tt(t.moduleSymbol.valueDeclaration,qE),t.moduleSymbol,o,p,te(t.isFromPackageJson),_)}vae("collectAutoImports",s,V||(V=f7.createImportSpecifierResolver(n,e,s,o)),e,i,o,!!w,yT(R),(e=>{u.search(n.path,A,((e,t)=>{if(!fs(e,hk(s.getCompilationSettings())))return!1;if(!a&&Fh(e))return!1;if(!(Z||w||111551&t))return!1;if(Z&&!(790504&t))return!1;const n=e.charCodeAt(0);return(!A||!(n<65||n>90))&&(!!a||Nse(e,c))}),((t,n,r,i)=>{if(a&&!$(t,(e=>a.source===Dy(e.moduleSymbol.name))))return;if(!(t=N(t,f)).length)return;const o=e.tryResolve(t,r)||{};if("failed"===o)return;let s,c=t[0];"skipped"!==o&&({exportInfo:c=t[0],moduleSpecifier:s}=o);const l=1===c.exportKind;!function(e,t){const n=RB(e);Q[n]!==cae.GlobalsOrKeywords&&(X[G.length]=t,Q[n]=w?cae.LocationPriority:cae.AutoImportSuggestions,G.push(e))}(l&&yb(un.checkDefined(c.symbol))||un.checkDefined(c.symbol),{kind:s?32:4,moduleSpecifier:s,symbolName:n,exportMapKey:i,exportName:2===c.exportKind?"export=":un.checkDefined(c.symbol).name,fileName:c.moduleFileName,isDefaultExport:l,moduleSymbol:c.moduleSymbol,isFromPackageJson:c.isFromPackageJson})})),H=e.skippedAny(),z|=e.resolvedAny()?8:0,z|=e.resolvedBeyondLimit()?16:0}))}function _e(){if(T){const e=T.parent.kind,t=use(T);switch(t){case 28:switch(e){case 213:case 214:{const e=T.parent.expression;return Ja(n,e.end).line!==Ja(n,i).line?{defaultCommitCharacters:_ae,isNewIdentifierLocation:!0}:{defaultCommitCharacters:lae,isNewIdentifierLocation:!0}}case 226:return{defaultCommitCharacters:_ae,isNewIdentifierLocation:!0};case 176:case 184:case 210:return{defaultCommitCharacters:[],isNewIdentifierLocation:!0};case 209:return{defaultCommitCharacters:lae,isNewIdentifierLocation:!0};default:return{defaultCommitCharacters:lae,isNewIdentifierLocation:!1}}case 21:switch(e){case 213:case 214:{const e=T.parent.expression;return Ja(n,e.end).line!==Ja(n,i).line?{defaultCommitCharacters:_ae,isNewIdentifierLocation:!0}:{defaultCommitCharacters:lae,isNewIdentifierLocation:!0}}case 217:return{defaultCommitCharacters:_ae,isNewIdentifierLocation:!0};case 176:case 196:return{defaultCommitCharacters:[],isNewIdentifierLocation:!0};default:return{defaultCommitCharacters:lae,isNewIdentifierLocation:!1}}case 23:switch(e){case 209:case 181:case 189:case 167:return{defaultCommitCharacters:lae,isNewIdentifierLocation:!0};default:return{defaultCommitCharacters:lae,isNewIdentifierLocation:!1}}case 144:case 145:case 102:return{defaultCommitCharacters:[],isNewIdentifierLocation:!0};case 25:return 267===e?{defaultCommitCharacters:[],isNewIdentifierLocation:!0}:{defaultCommitCharacters:lae,isNewIdentifierLocation:!1};case 19:switch(e){case 263:case 210:return{defaultCommitCharacters:[],isNewIdentifierLocation:!0};default:return{defaultCommitCharacters:lae,isNewIdentifierLocation:!1}}case 64:switch(e){case 260:case 226:return{defaultCommitCharacters:lae,isNewIdentifierLocation:!0};default:return{defaultCommitCharacters:lae,isNewIdentifierLocation:!1}}case 16:return{defaultCommitCharacters:lae,isNewIdentifierLocation:228===e};case 17:return{defaultCommitCharacters:lae,isNewIdentifierLocation:239===e};case 134:return 174===e||304===e?{defaultCommitCharacters:[],isNewIdentifierLocation:!0}:{defaultCommitCharacters:lae,isNewIdentifierLocation:!1};case 42:return 174===e?{defaultCommitCharacters:[],isNewIdentifierLocation:!0}:{defaultCommitCharacters:lae,isNewIdentifierLocation:!1}}if(lse(t))return{defaultCommitCharacters:[],isNewIdentifierLocation:!0}}return{defaultCommitCharacters:lae,isNewIdentifierLocation:!1}}function ue(e){return!!e.parent&&oD(e.parent)&&dD(e.parent.parent)&&(Xl(e.kind)||ch(e))}function de(e,t){return 64!==e.kind&&(27===e.kind||!Wb(e.end,t,n))}function pe(e){return s_(e)&&176!==e}function fe(e,t){const n=e.expression,r=_.getSymbolAtLocation(n),i=r&&_.getTypeOfSymbolAtLocation(r,n),o=i&&i.properties;o&&o.forEach((e=>{t.add(e.name)}))}function me(){G.forEach((e=>{if(16777216&e.flags){const t=RB(e);Q[t]=Q[t]??cae.OptionalMember}}))}function ge(e,t){if(0!==e.size)for(const n of t)e.has(n.name)&&(Q[RB(n)]=cae.MemberDeclaredBySpreadAssignment)}function he(e){return e.getStart(n)<=i&&i<=e.getEnd()}}function tse(e,t){const n=jX(e,t);return n&&e<=n.end&&(ul(n)||Th(n.kind))?{contextToken:jX(n.getFullStart(),t,void 0),previousToken:n}:{contextToken:n,previousToken:n}}function nse(e,t,n,r){const i=t.isPackageJsonImport?r.getPackageJsonAutoImportProvider():n,o=i.getTypeChecker(),a=t.ambientModuleName?o.tryFindAmbientModule(t.ambientModuleName):t.fileName?o.getMergedSymbol(un.checkDefined(i.getSourceFile(t.fileName)).symbol):void 0;if(!a)return;let s="export="===t.exportName?o.resolveExternalModuleSymbol(a):o.tryGetMemberInModuleExportsAndProperties(t.exportName,a);return s?(s="default"===t.exportName&&yb(s)||s,{symbol:s,origin:zae(t,e,a)}):void 0}function rse(e,t,n,r,i){if(function(e){return!!(e&&256&e.kind)}(n))return;const o=function(e){return pae(e)||fae(e)||yae(e)}(n)?n.symbolName:e.name;if(void 0===o||1536&e.flags&&Jm(o.charCodeAt(0))||Vh(e))return;const a={name:o,needsConvertPropertyAccess:!1};if(fs(o,t,i?1:0)||e.valueDeclaration&&Hl(e.valueDeclaration))return a;if(2097152&e.flags)return{name:o,needsConvertPropertyAccess:!0};switch(r){case 3:return yae(n)?{name:n.symbolName,needsConvertPropertyAccess:!1}:void 0;case 0:return{name:JSON.stringify(o),needsConvertPropertyAccess:!1};case 2:case 1:return 32===o.charCodeAt(0)?void 0:{name:o,needsConvertPropertyAccess:!0};case 5:case 4:return a;default:un.assertNever(r)}}var ise=[],ose=dt((()=>{const e=[];for(let t=83;t<=165;t++)e.push({name:Da(t),kind:"keyword",kindModifiers:"",sortText:cae.GlobalsOrKeywords});return e}));function ase(e,t){if(!t)return sse(e);const n=e+8+1;return ise[n]||(ise[n]=sse(e).filter((e=>!function(e){switch(e){case 128:case 133:case 163:case 136:case 138:case 94:case 162:case 119:case 140:case 120:case 142:case 143:case 144:case 145:case 146:case 150:case 151:case 164:case 123:case 124:case 125:case 148:case 154:case 155:case 156:case 158:case 159:return!0;default:return!1}}(Fa(e.name)))))}function sse(e){return ise[e]||(ise[e]=ose().filter((t=>{const n=Fa(t.name);switch(e){case 0:return!1;case 1:return _se(n)||138===n||144===n||156===n||145===n||128===n||xQ(n)&&157!==n;case 5:return _se(n);case 2:return lse(n);case 3:return cse(n);case 4:return Xl(n);case 6:return xQ(n)||87===n;case 7:return xQ(n);case 8:return 156===n;default:return un.assertNever(e)}})))}function cse(e){return 148===e}function lse(e){switch(e){case 128:case 129:case 137:case 139:case 153:case 134:case 138:case 164:return!0;default:return Ql(e)}}function _se(e){return 134===e||135===e||160===e||130===e||152===e||156===e||!Nh(e)&&!lse(e)}function use(e){return zN(e)?gc(e)??0:e.kind}function dse(e,t,n,r){const i=t&&t!==e,o=r.getUnionType(N(1048576&e.flags?e.types:[e],(e=>!r.getPromisedTypeOfPromise(e)))),a=!i||3&t.flags?o:r.getUnionType([o,t]),s=function(e,t,n){return e.isUnion()?n.getAllPossiblePropertiesOfTypes(N(e.types,(e=>!(402784252&e.flags||n.isArrayLikeType(e)||n.isTypeInvalidDueToUnionDiscriminant(e,t)||n.typeHasCallOrConstructSignatures(e)||e.isClass()&&pse(e.getApparentProperties()))))):e.getApparentProperties()}(a,n,r);return a.isClass()&&pse(s)?[]:i?N(s,(function(e){return!u(e.declarations)||$(e.declarations,(e=>e.parent!==n))})):s}function pse(e){return $(e,(e=>!!(6&rx(e))))}function fse(e,t){return e.isUnion()?un.checkEachDefined(t.getAllPossiblePropertiesOfTypes(e.types),"getAllPossiblePropertiesOfTypes() should all be defined"):un.checkEachDefined(e.getApparentProperties(),"getApparentProperties() should all be defined")}function mse(e,t){if(!e)return;if(v_(e)&&Au(e.parent))return t.getTypeArgumentConstraint(e);const n=mse(e.parent,t);if(n)switch(e.kind){case 171:return t.getTypeOfPropertyOfContextualType(n,e.symbol.escapedName);case 193:case 187:case 192:return n}}function gse(e){return e.parent&&h_(e.parent)&&bx(e.parent.parent)}function hse({left:e}){return Cd(e)}function yse(e,t){var n,r,i;let o,a=!1;const s=function(){const n=e.parent;if(tE(n)){const r=n.getLastToken(t);return zN(e)&&r!==e?(o=161,void(a=!0)):(o=156===e.kind?void 0:156,Sse(n.moduleReference)?n:void 0)}if(xse(n,e)&&kse(n.parent))return n;if(!uE(n)&&!lE(n))return fE(n)&&42===e.kind||mE(n)&&20===e.kind?(a=!0,void(o=161)):eD(e)&&qE(n)?(o=156,e):eD(e)&&nE(n)?(o=156,Sse(n.moduleSpecifier)?n:void 0):void 0;if(n.parent.isTypeOnly||19!==e.kind&&102!==e.kind&&28!==e.kind||(o=156),kse(n)){if(20!==e.kind&&80!==e.kind)return n.parent.parent;a=!0,o=161}}();return{isKeywordOnlyCompletion:a,keywordCompletion:o,isNewIdentifierLocation:!(!s&&156!==o),isTopLevelTypeOnly:!!(null==(r=null==(n=tt(s,nE))?void 0:n.importClause)?void 0:r.isTypeOnly)||!!(null==(i=tt(s,tE))?void 0:i.isTypeOnly),couldBeTypeOnlyImportSpecifier:!!s&&xse(s,e),replacementSpan:vse(s)}}function vse(e){var t;if(!e)return;const n=_c(e,en(nE,tE,PP))??e,r=n.getSourceFile();if(Rb(n,r))return pQ(n,r);un.assert(102!==n.kind&&276!==n.kind);const i=272===n.kind||351===n.kind?bse(null==(t=n.importClause)?void 0:t.namedBindings)??n.moduleSpecifier:n.moduleReference,o={pos:n.getFirstToken().getStart(),end:i.pos};return Rb(o,r)?gQ(o):void 0}function bse(e){var t;return b(null==(t=tt(e,uE))?void 0:t.elements,(t=>{var n;return!t.propertyName&&Fh(t.name.text)&&28!==(null==(n=jX(t.name.pos,e.getSourceFile(),e))?void 0:n.kind)}))}function xse(e,t){return dE(e)&&(e.isTypeOnly||t===e.name&&SQ(t))}function kse(e){if(!Sse(e.parent.parent.moduleSpecifier)||e.parent.name)return!1;if(uE(e)){const t=bse(e);return(t?e.elements.indexOf(t):e.elements.length)<2}return!0}function Sse(e){var t;return!!Cd(e)||!(null==(t=tt(xE(e)?e.expression:e,Lu))?void 0:t.text)}function Tse(e){return e.parent&&tF(e.parent)&&(e.parent.body===e||39===e.kind)}function Cse(e,t,n=new Set){return r(e)||r(ix(e.exportSymbol||e,t));function r(e){return!!(788968&e.flags)||t.isUnknownSymbol(e)||!!(1536&e.flags)&&vx(n,e)&&t.getExportsOfModule(e).some((e=>Cse(e,t,n)))}}function wse(e,t){const n=ix(e,t).declarations;return!!u(n)&&v(n,JZ)}function Nse(e,t){if(0===t.length)return!0;let n,r=!1,i=0;const o=e.length;for(let s=0;sAse,getStringLiteralCompletions:()=>Pse});var Fse={directory:0,script:1,"external module name":2};function Ese(){const e=new Map;return{add:function(t){const n=e.get(t.name);(!n||Fse[n.kind]t>=e.pos&&t<=e.end));if(!c)return;const l=e.text.slice(c.pos,t),_=tce.exec(l);if(!_)return;const[,u,d,p]=_,f=Do(e.path),m="path"===d?Wse(p,f,Use(o,0,e),n,r,i,!0,e.path):"types"===d?ece(n,r,i,f,Xse(p),Use(o,1,e)):un.fail();return zse(p,c.pos+u.length,Oe(m.values()))}(e,t,o,i,AQ(o,i));return n&&Ise(n)}if(JX(e,t,n)){if(!n||!Lu(n))return;return function(e,t,n,r,i,o,a,s,c,l){if(void 0===e)return;const _=fQ(t,c);switch(e.kind){case 0:return Ise(e.paths);case 1:{const u=[];return Wae(e.symbols,u,t,t,n,c,n,r,i,99,o,4,s,a,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,l),{isGlobalCompletion:!1,isMemberCompletion:!0,isNewIdentifierLocation:e.hasIndexSignature,optionalReplacementSpan:_,entries:u,defaultCommitCharacters:bae(e.hasIndexSignature)}}case 2:{const n=15===t.kind?96:Gt(Kd(t),"'")?39:34,r=e.types.map((e=>({name:by(e.value,n),kindModifiers:"",kind:"string",sortText:cae.LocationPriority,replacementSpan:dQ(t,c),commitCharacters:[]})));return{isGlobalCompletion:!1,isMemberCompletion:!1,isNewIdentifierLocation:e.isNewIdentifier,optionalReplacementSpan:_,entries:r,defaultCommitCharacters:bae(e.isNewIdentifier)}}default:return un.assertNever(e)}}(Lse(e,n,t,o,i,s),n,e,i,o,a,r,s,t,c)}}function Ase(e,t,n,r,i,o,a,s){if(!r||!Lu(r))return;const c=Lse(t,r,n,i,o,s);return c&&function(e,t,n,r,i,o){switch(n.kind){case 0:{const t=b(n.paths,(t=>t.name===e));return t&&Xae(e,Ose(t.extension),t.kind,[mY(e)])}case 1:{const a=b(n.symbols,(t=>t.name===e));return a&&Gae(a,a.name,i,r,t,o)}case 2:return b(n.types,(t=>t.value===e))?Xae(e,"","string",[mY(e)]):void 0;default:return un.assertNever(n)}}(e,r,c,t,i.getTypeChecker(),a)}function Ise(e){const t=!0;return{isGlobalCompletion:!1,isMemberCompletion:!1,isNewIdentifierLocation:t,entries:e.map((({name:e,kind:t,span:n,extension:r})=>({name:e,kind:t,kindModifiers:Ose(r),sortText:cae.LocationPriority,replacementSpan:n}))),defaultCommitCharacters:bae(t)}}function Ose(e){switch(e){case".d.ts":return".d.ts";case".js":return".js";case".json":return".json";case".jsx":return".jsx";case".ts":return".ts";case".tsx":return".tsx";case".d.mts":return".d.mts";case".mjs":return".mjs";case".mts":return".mts";case".d.cts":return".d.cts";case".cjs":return".cjs";case".cts":return".cts";case".tsbuildinfo":return un.fail("Extension .tsbuildinfo is unsupported.");case void 0:return"";default:return un.assertNever(e)}}function Lse(e,t,n,r,i,o){const a=r.getTypeChecker(),s=jse(t.parent);switch(s.kind){case 201:{const c=jse(s.parent);return 205===c.kind?{kind:0,paths:qse(e,t,r,i,o)}:function e(t){switch(t.kind){case 233:case 183:{const e=_c(s,(e=>e.parent===t));return e?{kind:2,types:Mse(a.getTypeArgumentConstraint(e)),isNewIdentifier:!1}:void 0}case 199:const{indexType:i,objectType:o}=t;if(!sX(i,n))return;return Rse(a.getTypeFromTypeNode(o));case 192:{const n=e(jse(t.parent));if(!n)return;const i=(r=s,B(t.types,(e=>e!==r&&MD(e)&&TN(e.literal)?e.literal.text:void 0)));return 1===n.kind?{kind:1,symbols:n.symbols.filter((e=>!T(i,e.name))),hasIndexSignature:n.hasIndexSignature}:{kind:2,types:n.types.filter((e=>!T(i,e.value))),isNewIdentifier:!1}}default:return}var r}(c)}case 303:return $D(s.parent)&&s.name===t?function(e,t){const n=e.getContextualType(t);if(!n)return;return{kind:1,symbols:dse(n,e.getContextualType(t,4),t,e),hasIndexSignature:iZ(n)}}(a,s.parent):c()||c(0);case 212:{const{expression:e,argumentExpression:n}=s;return t===oh(n)?Rse(a.getTypeAtLocation(e)):void 0}case 213:case 214:case 291:if(!function(e){return GD(e.parent)&&fe(e.parent.arguments)===e&&zN(e.parent.expression)&&"require"===e.parent.expression.escapedText}(t)&&!cf(s)){const r=I_e.getArgumentInfoForCompletions(291===s.kind?s.parent:t,n,e,a);return r&&function(e,t,n,r){let i=!1;const o=new Set,a=vu(e)?un.checkDefined(_c(t.parent,FE)):t,s=O(r.getCandidateSignaturesForStringLiteralCompletions(e,a),(t=>{if(!UB(t)&&n.argumentCount>t.parameters.length)return;let s=t.getTypeParameterAtPosition(n.argumentIndex);if(vu(e)){const e=r.getTypeOfPropertyOfType(s,eC(a.name));e&&(s=e)}return i=i||!!(4&s.flags),Mse(s,o)}));return u(s)?{kind:2,types:s,isNewIdentifier:i}:void 0}(r.invocation,t,r,a)||c(0)}case 272:case 278:case 283:case 351:return{kind:0,paths:qse(e,t,r,i,o)};case 296:const l=HZ(a,s.parent.clauses),_=c();if(!_)return;return{kind:2,types:_.types.filter((e=>!l.hasValue(e.value))),isNewIdentifier:!1};case 276:case 281:const d=s;if(d.propertyName&&t!==d.propertyName)return;const p=d.parent,{moduleSpecifier:f}=275===p.kind?p.parent.parent:p.parent;if(!f)return;const m=a.getSymbolAtLocation(f);if(!m)return;const g=a.getExportsAndPropertiesOfModule(m),h=new Set(p.elements.map((e=>Wd(e.propertyName||e.name))));return{kind:1,symbols:g.filter((e=>"default"!==e.escapedName&&!h.has(e.escapedName))),hasIndexSignature:!1};default:return c()||c(0)}function c(e=4){const n=Mse(eZ(t,a,e));if(n.length)return{kind:2,types:n,isNewIdentifier:!1}}}function jse(e){switch(e.kind){case 196:return th(e);case 217:return nh(e);default:return e}}function Rse(e){return e&&{kind:1,symbols:N(e.getApparentProperties(),(e=>!(e.valueDeclaration&&Hl(e.valueDeclaration)))),hasIndexSignature:iZ(e)}}function Mse(e,t=new Set){return e?(e=NQ(e)).isUnion()?O(e.types,(e=>Mse(e,t))):!e.isStringLiteral()||1024&e.flags||!vx(t,e.value)?l:[e]:l}function Bse(e,t,n){return{name:e,kind:t,extension:n}}function Jse(e){return Bse(e,"directory",void 0)}function zse(e,t,n){const r=function(e,t){const n=Math.max(e.lastIndexOf(lo),e.lastIndexOf(_o)),r=-1!==n?n+1:0,i=e.length-r;return 0===i||fs(e.substr(r,i),99)?void 0:Vs(t+r,i)}(e,t),i=0===e.length?void 0:Vs(t,e.length);return n.map((({name:e,kind:t,extension:n})=>e.includes(lo)||e.includes(_o)?{name:e,kind:t,extension:n,span:i}:{name:e,kind:t,extension:n,span:r}))}function qse(e,t,n,r,i){return zse(t.text,t.getStart(e)+1,function(e,t,n,r,i){const o=Oo(t.text),a=Lu(t)?n.getModeForUsageLocation(e,t):void 0,s=e.path,c=Do(s),_=n.getCompilerOptions(),u=n.getTypeChecker(),d=AQ(n,r),p=Use(_,1,e,u,i,a);return function(e){if(e&&e.length>=2&&46===e.charCodeAt(0)){const t=e.length>=3&&46===e.charCodeAt(1)?2:1,n=e.charCodeAt(t);return 47===n||92===n}return!1}(o)||!_.baseUrl&&!_.paths&&(go(o)||mo(o))?function(e,t,n,r,i,o,a){const s=n.getCompilerOptions();return s.rootDirs?function(e,t,n,r,i,o,a,s){const c=function(e,t,n,r){const i=f(e=e.map((e=>Vo(Jo(go(e)?e:jo(t,e))))),(e=>Zo(e,n,t,r)?n.substr(e.length):void 0));return Q([...e.map((e=>jo(e,i))),n].map((e=>Uo(e))),ht,Ct)}(e,i.getCompilerOptions().project||o.getCurrentDirectory(),n,!(o.useCaseSensitiveFileNames&&o.useCaseSensitiveFileNames()));return Q(O(c,(e=>Oe(Wse(t,e,r,i,o,a,!0,s).values()))),((e,t)=>e.name===t.name&&e.kind===t.kind&&e.extension===t.extension))}(s.rootDirs,e,t,a,n,r,i,o):Oe(Wse(e,t,a,n,r,i,!0,o).values())}(o,c,n,r,d,s,p):function(e,t,n,r,i,o,a){const s=r.getTypeChecker(),c=r.getCompilerOptions(),{baseUrl:_,paths:u}=c,d=Ese(),p=vk(c);if(_){const t=Jo(jo(i.getCurrentDirectory(),_));Wse(e,t,a,r,i,o,!1,void 0,d)}if(u){const t=Hy(c,i);Hse(d,e,t,a,r,i,o,u)}const f=Xse(e);for(const t of function(e,t,n){const r=n.getAmbientModules().map((e=>Dy(e.name))).filter((t=>Gt(t,e)&&!t.includes("*")));if(void 0!==t){const e=Vo(t);return r.map((t=>Xt(t,e)))}return r}(e,f,s))d.add(Bse(t,"external module name",void 0));if(ece(r,i,o,t,f,a,d),OQ(p)){let n=!1;if(void 0===f)for(const e of function(e,t){if(!e.readFile||!e.fileExists)return l;const n=[];for(const r of xZ(t,e)){const t=Cb(r,e);for(const e of nce){const r=t[e];if(r)for(const e in r)De(r,e)&&!Gt(e,"@types/")&&n.push(e)}}return n}(i,t)){const t=Bse(e,"external module name",void 0);d.has(t.name)||(n=!0,d.add(t))}if(!n){const n=Tk(c),s=Ck(c);let l=!1;const _=t=>{if(s&&!l){const n=jo(t,"package.json");(l=hZ(i,n))&&m(Cb(n,i).imports,e,t,!1,!0)}};let u=t=>{const n=jo(t,"node_modules");yZ(i,n)&&Wse(e,n,a,r,i,o,!1,void 0,d),_(t)};if(f&&n){const t=u;u=n=>{const r=Ao(e);r.shift();let o=r.shift();if(!o)return t(n);if(Gt(o,"@")){const e=r.shift();if(!e)return t(n);o=jo(o,e)}if(s&&Gt(o,"#"))return _(n);const a=jo(n,"node_modules",o),c=jo(a,"package.json");if(!hZ(i,c))return t(n);{const t=Cb(c,i),n=r.join("/")+(r.length&&To(e)?"/":"");m(t.exports,n,a,!0,!1)}}}sM(i,t,u)}}return Oe(d.values());function m(e,t,s,l,_){if("object"!=typeof e||null===e)return;const u=Ee(e),p=tR(c,n);Kse(d,l,_,t,s,a,r,i,o,u,(t=>{const n=Gse(e[t],p);if(void 0!==n)return rn(Rt(t,"/")&&Rt(n,"/")?n+"*":n)}),tM)}}(o,c,a,n,r,d,p)}(e,t,n,r,i))}function Use(e,t,n,r,i,o){return{extensionsToSearch:I(Vse(e,r)),referenceKind:t,importingSourceFile:n,endingPreference:null==i?void 0:i.importModuleSpecifierEnding,resolutionMode:o}}function Vse(e,t){const n=t?B(t.getAmbientModules(),(e=>{const t=e.name.slice(1,-1);if(t.startsWith("*.")&&!t.includes("/"))return t.slice(1)})):[],r=[...ES(e),n];return OQ(vk(e))?PS(e,r):r}function Wse(e,t,n,r,i,o,a,s,c=Ese()){var l;void 0===e&&(e=""),To(e=Oo(e))||(e=Do(e)),""===e&&(e="."+lo);const _=Ro(t,e=Vo(e)),u=To(_)?_:Do(_);if(!a){const e=kZ(u,i);if(e){const t=Cb(e,i).typesVersions;if("object"==typeof t){const a=null==(l=Kj(t))?void 0:l.paths;if(a){const t=Do(e);if(Hse(c,_.slice(Vo(t).length),t,n,r,i,o,a))return c}}}}const d=!(i.useCaseSensitiveFileNames&&i.useCaseSensitiveFileNames());if(!yZ(i,u))return c;const p=gZ(i,u,n.extensionsToSearch,void 0,["./*"]);if(p)for(let e of p){if(e=Jo(e),s&&0===Yo(e,s,t,d))continue;const{name:i,extension:o}=$se(Fo(e),r,n,!1);c.add(Bse(i,"script",o))}const f=mZ(i,u);if(f)for(const e of f){const t=Fo(Jo(e));"@types"!==t&&c.add(Jse(t))}return c}function $se(e,t,n,r){const i=BM.tryGetRealFileNameForNonJsDeclarationFileName(e);if(i)return{name:i,extension:ZS(i)};if(0===n.referenceKind)return{name:e,extension:ZS(e)};let o=BM.getModuleSpecifierPreferences({importModuleSpecifierEnding:n.endingPreference},t,t.getCompilerOptions(),n.importingSourceFile).getAllowedEndingsInPreferredOrder(n.resolutionMode);if(r&&(o=o.filter((e=>0!==e&&1!==e))),3===o[0]){if(So(e,DS))return{name:e,extension:ZS(e)};const n=BM.tryGetJSExtensionForFile(e,t.getCompilerOptions());return n?{name:VS(e,n),extension:n}:{name:e,extension:ZS(e)}}if(!r&&(0===o[0]||1===o[0])&&So(e,[".js",".jsx",".ts",".tsx",".d.ts"]))return{name:zS(e),extension:ZS(e)};const a=BM.tryGetJSExtensionForFile(e,t.getCompilerOptions());return a?{name:VS(e,a),extension:a}:{name:e,extension:ZS(e)}}function Hse(e,t,n,r,i,o,a,s){return Kse(e,!1,!1,t,n,r,i,o,a,Ee(s),(e=>s[e]),((e,t)=>{const n=WS(e),r=WS(t),i="object"==typeof n?n.prefix.length:e.length;return vt("object"==typeof r?r.prefix.length:t.length,i)}))}function Kse(e,t,n,r,i,o,a,s,c,l,_,u){let d,p=[];for(const e of l){if("."===e)continue;const l=e.replace(/^\.\//,"")+((t||n)&&Rt(e,"/")?"*":""),f=_(e);if(f){const e=WS(l);if(!e)continue;const _="object"==typeof e&&Yt(e,r);_&&(void 0===d||-1===u(l,d))&&(d=l,p=p.filter((e=>!e.matchedPattern))),"string"!=typeof e&&void 0!==d&&1===u(l,d)||p.push({matchedPattern:_,results:Qse(l,f,r,i,o,t,n,a,s,c).map((({name:e,kind:t,extension:n})=>Bse(e,t,n)))})}}return p.forEach((t=>t.results.forEach((t=>e.add(t))))),void 0!==d}function Gse(e,t){if("string"==typeof e)return e;if(e&&"object"==typeof e&&!Qe(e))for(const n in e)if("default"===n||t.includes(n)||iM(t,n))return Gse(e[n],t)}function Xse(e){return rce(e)?To(e)?e:Do(e):void 0}function Qse(e,t,n,r,i,o,a,s,c,_){const u=WS(e);if(!u)return l;if("string"==typeof u)return p(e,"script");const d=Qt(n,u.prefix);return void 0===d?Rt(e,"/*")?p(u.prefix,"directory"):O(t,(e=>{var t;return null==(t=Yse("",r,e,i,o,a,s,c,_))?void 0:t.map((({name:e,...t})=>({name:u.prefix+e+u.suffix,...t})))})):O(t,(e=>Yse(d,r,e,i,o,a,s,c,_)));function p(e,t){return Gt(e,n)?[{name:Uo(e),kind:t,extension:void 0}]:l}}function Yse(e,t,n,r,i,o,a,s,c){if(!s.readDirectory)return;const l=WS(n);if(void 0===l||Ze(l))return;const _=Ro(l.prefix),u=To(l.prefix)?_:Do(_),d=To(l.prefix)?"":Fo(_),p=rce(e),m=p?To(e)?e:Do(e):void 0,g=()=>c.getCommonSourceDirectory(),h=!Ly(c),y=a.getCompilerOptions().outDir,v=a.getCompilerOptions().declarationDir,b=p?jo(u,d+m):u,x=Jo(jo(t,b)),k=o&&y&&$y(x,h,y,g),S=o&&v&&$y(x,h,v,g),T=Jo(l.suffix),C=T&&Vy("_"+T),w=T?Wy("_"+T):void 0,N=[C&&VS(T,C),...w?w.map((e=>VS(T,e))):[],T].filter(Ze),D=T?N.map((e=>"**/*"+e)):["./*"],F=(i||o)&&Rt(n,"/*");let E=P(x);return k&&(E=K(E,P(k))),S&&(E=K(E,P(S))),T||(E=K(E,A(x)),k&&(E=K(E,A(k))),S&&(E=K(E,A(S)))),E;function P(e){const t=p?e:Vo(e)+d;return B(gZ(s,e,r.extensionsToSearch,void 0,D),(e=>{const n=(i=e,o=t,f(N,(e=>{const t=(a=e,Gt(n=Jo(i),r=o)&&Rt(n,a)?n.slice(r.length,n.length-a.length):void 0);var n,r,a;return void 0===t?void 0:Zse(t)})));var i,o;if(n){if(rce(n))return Jse(Ao(Zse(n))[1]);const{name:e,extension:t}=$se(n,a,r,F);return Bse(e,"script",t)}}))}function A(e){return B(mZ(s,e),(e=>"node_modules"===e?void 0:Jse(e)))}}function Zse(e){return e[0]===lo?e.slice(1):e}function ece(e,t,n,r,i,o,a=Ese()){const s=e.getCompilerOptions(),c=new Map,_=vZ((()=>Gj(s,t)))||l;for(const e of _)u(e);for(const e of xZ(r,t))u(jo(Do(e),"node_modules/@types"));return a;function u(r){if(yZ(t,r))for(const l of mZ(t,r)){const _=gM(l);if(!s.types||T(s.types,_))if(void 0===i)c.has(_)||(a.add(Bse(_,"external module name",void 0)),c.set(_,!0));else{const s=jo(r,l),c=Qk(i,_,jy(t));void 0!==c&&Wse(c,s,o,e,t,n,!1,void 0,a)}}}}var tce=/^(\/\/\/\s*{const i=t.getSymbolAtLocation(n);if(i){const t=RB(i).toString();let n=r.get(t);n||r.set(t,n=[]),n.push(e)}}));return r}(e,n,r);return(o,a,s)=>{const{directImports:c,indirectUsers:l}=function(e,t,n,{exportingModuleSymbol:r,exportKind:i},o,a){const s=TQ(),c=TQ(),l=[],_=!!r.globalExports,u=_?void 0:[];return function e(t){const n=m(t);if(n)for(const t of n)if(s(t))switch(a&&a.throwIfCancellationRequested(),t.kind){case 213:if(cf(t)){f(_c(r=t,gce)||r.getSourceFile(),!!d(r,!0));break}if(!_){const e=t.parent;if(2===i&&260===e.kind){const{name:t}=e;if(80===t.kind){l.push(t);break}}}break;case 80:break;case 271:p(t,t.name,wv(t,32),!1);break;case 272:case 351:l.push(t);const n=t.importClause&&t.importClause.namedBindings;n&&274===n.kind?p(t,n.name,!1,!0):!_&&Sg(t)&&f(mce(t));break;case 278:t.exportClause?280===t.exportClause.kind?f(mce(t),!0):l.push(t):e(fce(t,o));break;case 205:!_&&t.isTypeOf&&!t.qualifier&&d(t)&&f(t.getSourceFile(),!0),l.push(t);break;default:un.failBadSyntaxKind(t,"Unexpected import kind.")}var r}(r),{directImports:l,indirectUsers:function(){if(_)return e;if(r.declarations)for(const e of r.declarations)dp(e)&&t.has(e.getSourceFile().fileName)&&f(e);return u.map(hd)}()};function d(e,t=!1){return _c(e,(e=>t&&gce(e)?"quit":rI(e)&&$(e.modifiers,UN)))}function p(e,t,n,r){if(2===i)r||l.push(e);else if(!_){const r=mce(e);un.assert(307===r.kind||267===r.kind),n||function(e,t,n){const r=n.getSymbolAtLocation(t);return!!_ce(e,(e=>{if(!fE(e))return;const{exportClause:t,moduleSpecifier:i}=e;return!i&&t&&mE(t)&&t.elements.some((e=>n.getExportSpecifierLocalTargetSymbol(e)===r))}))}(r,t,o)?f(r,!0):f(r)}}function f(e,t=!1){if(un.assert(!_),!c(e))return;if(u.push(e),!t)return;const n=o.getMergedSymbol(e.symbol);if(!n)return;un.assert(!!(1536&n.flags));const r=m(n);if(r)for(const e of r)BD(e)||f(mce(e),!0)}function m(e){return n.get(RB(e).toString())}}(e,t,i,a,n,r);return{indirectUsers:l,...cce(c,o,a.exportKind,n,s)}}}i(ice,{Core:()=>Cce,DefinitionKind:()=>yce,EntryKind:()=>vce,ExportKind:()=>ace,FindReferencesUse:()=>wce,ImportExport:()=>sce,createImportTracker:()=>oce,findModuleReferences:()=>lce,findReferenceOrRenameEntries:()=>Ece,findReferencedSymbols:()=>Nce,getContextNode:()=>Sce,getExportInfo:()=>pce,getImplementationsAtPosition:()=>Dce,getImportOrExportSymbol:()=>dce,getReferenceEntriesForNode:()=>Pce,isContextWithStartAndEndNode:()=>xce,isDeclarationOfSymbol:()=>Vce,isWriteAccessForReference:()=>Uce,toContextSpan:()=>Tce,toHighlightSpan:()=>Jce,toReferenceEntry:()=>jce,toRenameLocation:()=>Lce});var ace=(e=>(e[e.Named=0]="Named",e[e.Default=1]="Default",e[e.ExportEquals=2]="ExportEquals",e))(ace||{}),sce=(e=>(e[e.Import=0]="Import",e[e.Export=1]="Export",e))(sce||{});function cce(e,t,n,r,i){const o=[],a=[];function s(e,t){o.push([e,t])}if(e)for(const t of e)c(t);return{importSearches:o,singleReferences:a};function c(e){if(271===e.kind)return void(hce(e)&&l(e.name));if(80===e.kind)return void l(e);if(205===e.kind){if(e.qualifier){const n=ab(e.qualifier);n.escapedText===hc(t)&&a.push(n)}else 2===n&&a.push(e.argument.literal);return}if(11!==e.moduleSpecifier.kind)return;if(278===e.kind)return void(e.exportClause&&mE(e.exportClause)&&_(e.exportClause));const{name:o,namedBindings:c}=e.importClause||{name:void 0,namedBindings:void 0};if(c)switch(c.kind){case 274:l(c.name);break;case 275:0!==n&&1!==n||_(c);break;default:un.assertNever(c)}!o||1!==n&&2!==n||i&&o.escapedText!==qQ(t)||s(o,r.getSymbolAtLocation(o))}function l(e){2!==n||i&&!u(e.escapedText)||s(e,r.getSymbolAtLocation(e))}function _(e){if(e)for(const n of e.elements){const{name:e,propertyName:o}=n;u(Wd(o||e))&&(o?(a.push(o),i&&Wd(e)!==t.escapedName||s(e,r.getSymbolAtLocation(e))):s(e,281===n.kind&&n.propertyName?r.getExportSpecifierLocalTargetSymbol(n):r.getSymbolAtLocation(e)))}}function u(e){return e===t.escapedName||0!==n&&"default"===e}}function lce(e,t,n){var r;const i=[],o=e.getTypeChecker();for(const a of t){const t=n.valueDeclaration;if(307===(null==t?void 0:t.kind)){for(const n of a.referencedFiles)e.getSourceFileFromReference(a,n)===t&&i.push({kind:"reference",referencingFile:a,ref:n});for(const n of a.typeReferenceDirectives){const o=null==(r=e.getResolvedTypeReferenceDirectiveFromTypeReferenceDirective(n,a))?void 0:r.resolvedTypeReferenceDirective;void 0!==o&&o.resolvedFileName===t.fileName&&i.push({kind:"reference",referencingFile:a,ref:n})}}uce(a,((e,t)=>{o.getSymbolAtLocation(t)===n&&i.push(Zh(e)?{kind:"implicit",literal:t,referencingFile:a}:{kind:"import",literal:t})}))}return i}function _ce(e,t){return d(307===e.kind?e.statements:e.body.statements,(e=>t(e)||gce(e)&&d(e.body&&e.body.statements,t)))}function uce(e,t){if(e.externalModuleIndicator||void 0!==e.imports)for(const n of e.imports)t(yg(n),n);else _ce(e,(e=>{switch(e.kind){case 278:case 272:{const n=e;n.moduleSpecifier&&TN(n.moduleSpecifier)&&t(n,n.moduleSpecifier);break}case 271:{const n=e;hce(n)&&t(n,n.moduleReference.expression);break}}}))}function dce(e,t,n,r){return r?i():i()||function(){if(!function(e){const{parent:t}=e;switch(t.kind){case 271:return t.name===e&&hce(t);case 276:return!t.propertyName;case 273:case 274:return un.assert(t.name===e),!0;case 208:return Fm(e)&&jm(t.parent.parent);default:return!1}}(e))return;let r=n.getImmediateAliasedSymbol(t);if(!r)return;if(r=function(e,t){if(e.declarations)for(const n of e.declarations){if(gE(n)&&!n.propertyName&&!n.parent.parent.moduleSpecifier)return t.getExportSpecifierLocalTargetSymbol(n)||e;if(HD(n)&&Zm(n.expression)&&!qN(n.name))return t.getSymbolAtLocation(n);if(BE(n)&&cF(n.parent.parent)&&2===eg(n.parent.parent))return t.getExportSpecifierLocalTargetSymbol(n.name)}return e}(r,n),"export="===r.escapedName&&(r=function(e,t){var n,r;if(2097152&e.flags)return t.getImmediateAliasedSymbol(e);const i=un.checkDefined(e.valueDeclaration);return pE(i)?null==(n=tt(i.expression,ou))?void 0:n.symbol:cF(i)?null==(r=tt(i.right,ou))?void 0:r.symbol:qE(i)?i.symbol:void 0}(r,n),void 0===r))return;const i=qQ(r);return void 0===i||"default"===i||i===t.escapedName?{kind:0,symbol:r}:void 0}();function i(){var i;const{parent:s}=e,c=s.parent;if(t.exportSymbol)return 211===s.kind?(null==(i=t.declarations)?void 0:i.some((e=>e===s)))&&cF(c)?_(c,!1):void 0:o(t.exportSymbol,a(s));{const i=function(e,t){const n=VF(e)?e:VD(e)?tc(e):void 0;return n?e.name!==t||RE(n.parent)?void 0:wF(n.parent.parent)?n.parent.parent:void 0:e}(s,e);if(i&&wv(i,32)){if(tE(i)&&i.moduleReference===e){if(r)return;return{kind:0,symbol:n.getSymbolAtLocation(i.name)}}return o(t,a(i))}if(_E(s))return o(t,0);if(pE(s))return l(s);if(pE(c))return l(c);if(cF(s))return _(s,!0);if(cF(c))return _(c,!0);if(CP(s)||_P(s))return o(t,0)}function l(e){if(!e.symbol.parent)return;const n=e.isExportEquals?2:1;return{kind:1,symbol:t,exportInfo:{exportingModuleSymbol:e.symbol.parent,exportKind:n}}}function _(e,r){let i;switch(eg(e)){case 1:i=0;break;case 2:i=2;break;default:return}const a=r?n.getSymbolAtLocation(Sx(nt(e.left,kx))):t;return a&&o(a,i)}}function o(e,t){const r=pce(e,t,n);return r&&{kind:1,symbol:e,exportInfo:r}}function a(e){return wv(e,2048)?1:0}}function pce(e,t,n){const r=e.parent;if(!r)return;const i=n.getMergedSymbol(r);return Gu(i)?{exportingModuleSymbol:i,exportKind:t}:void 0}function fce(e,t){return t.getMergedSymbol(mce(e).symbol)}function mce(e){if(213===e.kind||351===e.kind)return e.getSourceFile();const{parent:t}=e;return 307===t.kind?t:(un.assert(268===t.kind),nt(t.parent,gce))}function gce(e){return 267===e.kind&&11===e.name.kind}function hce(e){return 283===e.moduleReference.kind&&11===e.moduleReference.expression.kind}var yce=(e=>(e[e.Symbol=0]="Symbol",e[e.Label=1]="Label",e[e.Keyword=2]="Keyword",e[e.This=3]="This",e[e.String=4]="String",e[e.TripleSlashReference=5]="TripleSlashReference",e))(yce||{}),vce=(e=>(e[e.Span=0]="Span",e[e.Node=1]="Node",e[e.StringLiteral=2]="StringLiteral",e[e.SearchedLocalFoundProperty=3]="SearchedLocalFoundProperty",e[e.SearchedPropertyFoundLocal=4]="SearchedPropertyFoundLocal",e))(vce||{});function bce(e,t=1){return{kind:t,node:e.name||e,context:kce(e)}}function xce(e){return e&&void 0===e.kind}function kce(e){if(lu(e))return Sce(e);if(e.parent){if(!lu(e.parent)&&!pE(e.parent)){if(Fm(e)){const t=cF(e.parent)?e.parent:kx(e.parent)&&cF(e.parent.parent)&&e.parent.parent.left===e.parent?e.parent.parent:void 0;if(t&&0!==eg(t))return Sce(t)}if(TE(e.parent)||CE(e.parent))return e.parent.parent;if(SE(e.parent)||JF(e.parent)||Tl(e.parent))return e.parent;if(Lu(e)){const t=vg(e);if(t){const e=_c(t,(e=>lu(e)||du(e)||Tu(e)));return lu(e)?Sce(e):e}}const t=_c(e,rD);return t?Sce(t.parent):void 0}return e.parent.name===e||dD(e.parent)||pE(e.parent)||(Rl(e.parent)||VD(e.parent))&&e.parent.propertyName===e||90===e.kind&&wv(e.parent,2080)?Sce(e.parent):void 0}}function Sce(e){if(e)switch(e.kind){case 260:return WF(e.parent)&&1===e.parent.declarations.length?wF(e.parent.parent)?e.parent.parent:X_(e.parent.parent)?Sce(e.parent.parent):e.parent:e;case 208:return Sce(e.parent.parent);case 276:return e.parent.parent.parent;case 281:case 274:return e.parent.parent;case 273:case 280:return e.parent;case 226:return DF(e.parent)?e.parent:e;case 250:case 249:return{start:e.initializer,end:e.expression};case 303:case 304:return cQ(e.parent)?Sce(_c(e.parent,(e=>cF(e)||X_(e)))):e;case 255:return{start:b(e.getChildren(e.getSourceFile()),(e=>109===e.kind)),end:e.caseBlock};default:return e}}function Tce(e,t,n){if(!n)return;const r=xce(n)?zce(n.start,t,n.end):zce(n,t);return r.start!==e.start||r.length!==e.length?{contextSpan:r}:void 0}var Cce,wce=(e=>(e[e.Other=0]="Other",e[e.References=1]="References",e[e.Rename=2]="Rename",e))(wce||{});function Nce(e,t,n,r,i){const o=FX(r,i),a={use:1},s=Cce.getReferencedSymbolsForNode(i,o,e,n,t,a),c=e.getTypeChecker(),l=Cce.getAdjustedNode(o,a),_=function(e){return 90===e.kind||!!lh(e)||_h(e)||137===e.kind&&dD(e.parent)}(l)?c.getSymbolAtLocation(l):void 0;return s&&s.length?B(s,(({definition:e,references:n})=>e&&{definition:c.runWithCancellationToken(t,(t=>function(e,t,n){const r=(()=>{switch(e.type){case 0:{const{symbol:r}=e,{displayParts:i,kind:o}=Oce(r,t,n),a=i.map((e=>e.text)).join(""),s=r.declarations&&fe(r.declarations);return{...Ice(s?Tc(s)||s:n),name:a,kind:o,displayParts:i,context:Sce(s)}}case 1:{const{node:t}=e;return{...Ice(t),name:t.text,kind:"label",displayParts:[sY(t.text,17)]}}case 2:{const{node:t}=e,n=Da(t.kind);return{...Ice(t),name:n,kind:"keyword",displayParts:[{text:n,kind:"keyword"}]}}case 3:{const{node:n}=e,r=t.getSymbolAtLocation(n),i=r&&mue.getSymbolDisplayPartsDocumentationAndSymbolKind(t,r,n.getSourceFile(),tX(n),n).displayParts||[mY("this")];return{...Ice(n),name:"this",kind:"var",displayParts:i}}case 4:{const{node:t}=e;return{...Ice(t),name:t.text,kind:"var",displayParts:[sY(Kd(t),8)]}}case 5:return{textSpan:gQ(e.reference),sourceFile:e.file,name:e.reference.fileName,kind:"string",displayParts:[sY(`"${e.reference.fileName}"`,8)]};default:return un.assertNever(e)}})(),{sourceFile:i,textSpan:o,name:a,kind:s,displayParts:c,context:l}=r;return{containerKind:"",containerName:"",fileName:i.fileName,kind:s,name:a,textSpan:o,displayParts:c,...Tce(o,i,l)}}(e,t,o))),references:n.map((e=>function(e,t){const n=jce(e);return t?{...n,isDefinition:0!==e.kind&&Vce(e.node,t)}:n}(e,_)))})):void 0}function Dce(e,t,n,r,i){const o=FX(r,i);let a;const s=Fce(e,t,n,o,i);if(211===o.parent.kind||208===o.parent.kind||212===o.parent.kind||108===o.kind)a=s&&[...s];else if(s){const r=Ge(s),i=new Set;for(;!r.isEmpty();){const o=r.dequeue();if(!vx(i,jB(o.node)))continue;a=ie(a,o);const s=Fce(e,t,n,o.node,o.node.pos);s&&r.enqueue(...s)}}const c=e.getTypeChecker();return E(a,(e=>function(e,t){const n=Rce(e);if(0!==e.kind){const{node:r}=e;return{...n,...Bce(r,t)}}return{...n,kind:"",displayParts:[]}}(e,c)))}function Fce(e,t,n,r,i){if(307===r.kind)return;const o=e.getTypeChecker();if(304===r.parent.kind){const e=[];return Cce.getReferenceEntriesForShorthandPropertyAssignment(r,o,(t=>e.push(bce(t)))),e}if(108===r.kind||om(r.parent)){const e=o.getSymbolAtLocation(r);return e.valueDeclaration&&[bce(e.valueDeclaration)]}return Pce(i,r,e,n,t,{implementations:!0,use:1})}function Ece(e,t,n,r,i,o,a){return E(Ace(Cce.getReferencedSymbolsForNode(i,r,e,n,t,o)),(t=>a(t,r,e.getTypeChecker())))}function Pce(e,t,n,r,i,o={},a=new Set(r.map((e=>e.fileName)))){return Ace(Cce.getReferencedSymbolsForNode(e,t,n,r,i,o,a))}function Ace(e){return e&&O(e,(e=>e.references))}function Ice(e){const t=e.getSourceFile();return{sourceFile:t,textSpan:zce(rD(e)?e.expression:e,t)}}function Oce(e,t,n){const r=Cce.getIntersectingMeaningFromDeclarations(n,e),i=e.declarations&&fe(e.declarations)||n,{displayParts:o,symbolKind:a}=mue.getSymbolDisplayPartsDocumentationAndSymbolKind(t,e,i.getSourceFile(),i,i,r);return{displayParts:o,kind:a}}function Lce(e,t,n,r,i){return{...Rce(e),...r&&Mce(e,t,n,i)}}function jce(e){const t=Rce(e);if(0===e.kind)return{...t,isWriteAccess:!1};const{kind:n,node:r}=e;return{...t,isWriteAccess:Uce(r),isInString:2===n||void 0}}function Rce(e){if(0===e.kind)return{textSpan:e.textSpan,fileName:e.fileName};{const t=e.node.getSourceFile(),n=zce(e.node,t);return{textSpan:n,fileName:t.fileName,...Tce(n,t,e.context)}}}function Mce(e,t,n,r){if(0!==e.kind&&(zN(t)||Lu(t))){const{node:r,kind:i}=e,o=r.parent,a=t.text,s=BE(o);if(s||VQ(o)&&o.name===r&&void 0===o.dotDotDotToken){const e={prefixText:a+": "},t={suffixText:": "+a};if(3===i)return e;if(4===i)return t;if(s){const n=o.parent;return $D(n)&&cF(n.parent)&&Zm(n.parent.left)?e:t}return e}if(dE(o)&&!o.propertyName)return T((gE(t.parent)?n.getExportSpecifierLocalTargetSymbol(t.parent):n.getSymbolAtLocation(t)).declarations,o)?{prefixText:a+" as "}:aG;if(gE(o)&&!o.propertyName)return t===e.node||n.getSymbolAtLocation(t)===n.getSymbolAtLocation(e.node)?{prefixText:a+" as "}:{suffixText:" as "+a}}if(0!==e.kind&&kN(e.node)&&kx(e.node.parent)){const e=JQ(r);return{prefixText:e,suffixText:e}}return aG}function Bce(e,t){const n=t.getSymbolAtLocation(lu(e)&&e.name?e.name:e);return n?Oce(n,t,e):210===e.kind?{kind:"interface",displayParts:[_Y(21),mY("object literal"),_Y(22)]}:231===e.kind?{kind:"local class",displayParts:[_Y(21),mY("anonymous local class"),_Y(22)]}:{kind:nX(e),displayParts:[]}}function Jce(e){const t=Rce(e);if(0===e.kind)return{fileName:t.fileName,span:{textSpan:t.textSpan,kind:"reference"}};const n=Uce(e.node),r={textSpan:t.textSpan,kind:n?"writtenReference":"reference",isInString:2===e.kind||void 0,...t.contextSpan&&{contextSpan:t.contextSpan}};return{fileName:t.fileName,span:r}}function zce(e,t,n){let r=e.getStart(t),i=(n||e).getEnd();return Lu(e)&&i-r>2&&(un.assert(void 0===n),r+=1,i-=1),269===(null==n?void 0:n.kind)&&(i=n.getFullStart()),Ws(r,i)}function qce(e){return 0===e.kind?e.textSpan:zce(e.node,e.node.getSourceFile())}function Uce(e){const t=lh(e);return!!t&&function(e){if(33554432&e.flags)return!0;switch(e.kind){case 226:case 208:case 263:case 231:case 90:case 266:case 306:case 281:case 273:case 271:case 276:case 264:case 338:case 346:case 291:case 267:case 270:case 274:case 280:case 169:case 304:case 265:case 168:return!0;case 303:return!cQ(e.parent);case 262:case 218:case 176:case 174:case 177:case 178:return!!e.body;case 260:case 172:return!!e.initializer||RE(e.parent);case 173:case 171:case 348:case 341:return!1;default:return un.failBadSyntaxKind(e)}}(t)||90===e.kind||sx(e)}function Vce(e,t){var n;if(!t)return!1;const r=lh(e)||(90===e.kind?e.parent:_h(e)||137===e.kind&&dD(e.parent)?e.parent.parent:void 0),i=r&&cF(r)?r.left:void 0;return!(!r||!(null==(n=t.declarations)?void 0:n.some((e=>e===r||e===i))))}(e=>{function t(e,t){return 1===t.use?e=NX(e):2===t.use&&(e=DX(e)),e}function n(e,t,n){let r;const i=t.get(e.path)||l;for(const e of i)if(dV(e)){const t=n.getSourceFileByPath(e.file),i=fV(n,e);pV(i)&&(r=ie(r,{kind:0,fileName:t.fileName,textSpan:gQ(i)}))}return r}function r(e,t,n){if(e.parent&&eE(e.parent)){const e=n.getAliasedSymbol(t),r=n.getMergedSymbol(e);if(e!==r)return r}}function i(e,t,n,r,i,a){const c=1536&e.flags&&e.declarations&&b(e.declarations,qE);if(!c)return;const l=e.exports.get("export="),u=s(t,e,!!l,n,a);if(!l||!a.has(c.fileName))return u;const d=t.getTypeChecker();return o(t,u,_(e=ix(l,d),void 0,n,a,d,r,i))}function o(e,...t){let n;for(const r of t)if(r&&r.length)if(n)for(const t of r){if(!t.definition||0!==t.definition.type){n.push(t);continue}const r=t.definition.symbol,i=k(n,(e=>!!e.definition&&0===e.definition.type&&e.definition.symbol===r));if(-1===i){n.push(t);continue}const o=n[i];n[i]={definition:o.definition,references:o.references.concat(t.references).sort(((t,n)=>{const r=a(e,t),i=a(e,n);if(r!==i)return vt(r,i);const o=qce(t),s=qce(n);return o.start!==s.start?vt(o.start,s.start):vt(o.length,s.length)}))}}else n=r;return n}function a(e,t){const n=0===t.kind?e.getSourceFile(t.fileName):t.node.getSourceFile();return e.getSourceFiles().indexOf(n)}function s(e,t,n,r,i){un.assert(!!t.valueDeclaration);const o=B(lce(e,r,t),(e=>{if("import"===e.kind){const t=e.literal.parent;if(MD(t)){const e=nt(t.parent,BD);if(n&&!e.qualifier)return}return bce(e.literal)}return"implicit"===e.kind?bce(e.literal.text!==qu&&AI(e.referencingFile,(e=>2&e.transformFlags?kE(e)||SE(e)||wE(e)?e:void 0:"skip"))||e.referencingFile.statements[0]||e.referencingFile):{kind:0,fileName:e.referencingFile.fileName,textSpan:gQ(e.ref)}}));if(t.declarations)for(const e of t.declarations)switch(e.kind){case 307:break;case 267:i.has(e.getSourceFile().fileName)&&o.push(bce(e.name));break;default:un.assert(!!(33554432&t.flags),"Expected a module symbol to be declared by a SourceFile or ModuleDeclaration.")}const a=t.exports.get("export=");if(null==a?void 0:a.declarations)for(const e of a.declarations){const t=e.getSourceFile();if(i.has(t.fileName)){const n=cF(e)&&HD(e.left)?e.left.expression:pE(e)?un.checkDefined(yX(e,95,t)):Tc(e)||e;o.push(bce(n))}}return o.length?[{definition:{type:0,symbol:t},references:o}]:l}function c(e){return 148===e.kind&&LD(e.parent)&&148===e.parent.operator}function _(e,t,n,r,i,o,a){const s=t&&function(e,t,n,r){const{parent:i}=t;return gE(i)&&r?R(t,e,i,n):f(e.declarations,(r=>{if(!r.parent){if(33554432&e.flags)return;un.fail(`Unexpected symbol at ${un.formatSyntaxKind(t.kind)}: ${un.formatSymbol(e)}`)}return SD(r.parent)&&FD(r.parent.parent)?n.getPropertyOfType(n.getTypeFromTypeNode(r.parent.parent),e.name):void 0}))}(e,t,i,!Z(a))||e,c=t?X(t,s):7,l=[],_=new y(n,r,t?function(e){switch(e.kind){case 176:case 137:return 1;case 80:if(__(e.parent))return un.assert(e.parent.name===e),2;default:return 0}}(t):0,i,o,c,a,l),u=Z(a)&&s.declarations?b(s.declarations,gE):void 0;if(u)j(u.name,s,u,_.createSearch(t,e,void 0),_,!0,!0);else if(t&&90===t.kind&&"default"===s.escapedName&&s.parent)M(t,s,_),v(t,s,{exportingModuleSymbol:s.parent,exportKind:1},_);else{const e=_.createSearch(t,s,void 0,{allSearchSymbols:t?H(s,t,i,2===a.use,!!a.providePrefixAndSuffixTextForRename,!!a.implementations):[s]});p(s,_,e)}return l}function p(e,t,n){const r=function(e){const{declarations:t,flags:n,parent:r,valueDeclaration:i}=e;if(i&&(218===i.kind||231===i.kind))return i;if(!t)return;if(8196&n){const e=b(t,(e=>Cv(e,2)||Hl(e)));return e?Sh(e,263):void 0}if(t.some(VQ))return;const o=r&&!(262144&e.flags);if(o&&(!Gu(r)||r.globalExports))return;let a;for(const e of t){const t=tX(e);if(a&&a!==t)return;if(!t||307===t.kind&&!Qp(t))return;if(a=t,eF(a)){let e;for(;e=Rg(a);)a=e}}return o?a.getSourceFile():a}(e);if(r)A(r,r.getSourceFile(),n,t,!(qE(r)&&!T(t.sourceFiles,r)));else for(const e of t.sourceFiles)t.cancellationToken.throwIfCancellationRequested(),C(e,n,t)}let m;var g;function h(e){if(!(33555968&e.flags))return;const t=e.declarations&&b(e.declarations,(e=>!qE(e)&&!QF(e)));return t&&t.symbol}e.getReferencedSymbolsForNode=function(e,a,u,d,p,m={},g=new Set(d.map((e=>e.fileName)))){var h,y;if(qE(a=t(a,m))){const t=Wce.getReferenceAtPosition(a,e,u);if(!(null==t?void 0:t.file))return;const r=u.getTypeChecker().getMergedSymbol(t.file.symbol);if(r)return s(u,r,!1,d,g);const i=u.getFileIncludeReasons();if(!i)return;return[{definition:{type:5,reference:t.reference,file:a},references:n(t.file,i,u)||l}]}if(!m.implementations){const e=function(e,t,n){if(xQ(e.kind)){if(116===e.kind&&iF(e.parent))return;if(148===e.kind&&!c(e))return;return function(e,t,n,r){const i=O(e,(e=>(n.throwIfCancellationRequested(),B(D(e,Da(t),e),(e=>{if(e.kind===t&&(!r||r(e)))return bce(e)})))));return i.length?[{definition:{type:2,node:i[0].node},references:i}]:void 0}(t,e.kind,n,148===e.kind?c:void 0)}if(lf(e.parent)&&e.parent.name===e)return function(e,t){const n=O(e,(e=>(t.throwIfCancellationRequested(),B(D(e,"meta",e),(e=>{const t=e.parent;if(lf(t))return bce(t)})))));return n.length?[{definition:{type:2,node:n[0].node},references:n}]:void 0}(t,n);if(GN(e)&&uD(e.parent))return[{definition:{type:2,node:e},references:[bce(e)]}];if(VG(e)){const t=qG(e.parent,e.text);return t&&E(t.parent,t)}return WG(e)?E(e.parent,e):rX(e)?function(e,t,n){let r=Zf(e,!1,!1),i=256;switch(r.kind){case 174:case 173:if(Mf(r)){i&=Jv(r),r=r.parent;break}case 172:case 171:case 176:case 177:case 178:i&=Jv(r),r=r.parent;break;case 307:if(MI(r)||W(e))return;case 262:case 218:break;default:return}const o=O(307===r.kind?t:[r.getSourceFile()],(e=>(n.throwIfCancellationRequested(),D(e,"this",qE(r)?e:r).filter((e=>{if(!rX(e))return!1;const t=Zf(e,!1,!1);if(!ou(t))return!1;switch(r.kind){case 218:case 262:return r.symbol===t.symbol;case 174:case 173:return Mf(r)&&r.symbol===t.symbol;case 231:case 263:case 210:return t.parent&&ou(t.parent)&&r.symbol===t.parent.symbol&&Nv(t)===!!i;case 307:return 307===t.kind&&!MI(t)&&!W(e)}}))))).map((e=>bce(e)));return[{definition:{type:3,node:f(o,(e=>oD(e.node.parent)?e.node:void 0))||e},references:o}]}(e,t,n):108===e.kind?function(e){let t=rm(e,!1);if(!t)return;let n=256;switch(t.kind){case 172:case 171:case 174:case 173:case 176:case 177:case 178:n&=Jv(t),t=t.parent;break;default:return}const r=B(D(t.getSourceFile(),"super",t),(e=>{if(108!==e.kind)return;const r=rm(e,!1);return r&&Nv(r)===!!n&&r.parent.symbol===t.symbol?bce(e):void 0}));return[{definition:{type:0,symbol:t.symbol},references:r}]}(e):void 0}(a,d,p);if(e)return e}const v=u.getTypeChecker(),b=v.getSymbolAtLocation(dD(a)&&a.parent.name||a);if(!b){if(!m.implementations&&Lu(a)){if(UQ(a)){const e=u.getFileIncludeReasons(),t=null==(y=null==(h=u.getResolvedModuleFromModuleSpecifier(a))?void 0:h.resolvedModule)?void 0:y.resolvedFileName,r=t?u.getSourceFile(t):void 0;if(r)return[{definition:{type:4,node:a},references:n(r,e,u)||l}]}return function(e,t,n,r){const i=SX(e,n),o=O(t,(t=>(r.throwIfCancellationRequested(),B(D(t,e.text),(r=>{if(Lu(r)&&r.text===e.text){if(!i)return NN(r)&&!Rb(r,t)?void 0:bce(r,2);{const e=SX(r,n);if(i!==n.getStringType()&&(i===e||function(e,t){if(sD(e.parent))return t.getPropertyOfType(t.getTypeAtLocation(e.parent.parent),e.text)}(r,n)))return bce(r,2)}}})))));return[{definition:{type:4,node:e},references:o}]}(a,d,v,p)}return}if("export="===b.escapedName)return s(u,b.parent,!1,d,g);const x=i(b,u,d,p,m,g);if(x&&!(33554432&b.flags))return x;const k=r(a,b,v),S=k&&i(k,u,d,p,m,g);return o(u,x,_(b,a,d,g,v,p,m),S)},e.getAdjustedNode=t,e.getReferencesForFileName=function(e,t,r,i=new Set(r.map((e=>e.fileName)))){var o,a;const c=null==(o=t.getSourceFile(e))?void 0:o.symbol;if(c)return(null==(a=s(t,c,!1,r,i)[0])?void 0:a.references)||l;const _=t.getFileIncludeReasons(),u=t.getSourceFile(e);return u&&_&&n(u,_,t)||l},(g=m||(m={}))[g.None=0]="None",g[g.Constructor=1]="Constructor",g[g.Class=2]="Class";class y{constructor(e,t,n,r,i,o,a,s){this.sourceFiles=e,this.sourceFilesSet=t,this.specialSearchKind=n,this.checker=r,this.cancellationToken=i,this.searchMeaning=o,this.options=a,this.result=s,this.inheritsFromCache=new Map,this.markSeenContainingTypeReference=TQ(),this.markSeenReExportRHS=TQ(),this.symbolIdToReferences=[],this.sourceFileToSeenSymbols=[]}includesSourceFile(e){return this.sourceFilesSet.has(e.fileName)}getImportSearches(e,t){return this.importTracker||(this.importTracker=oce(this.sourceFiles,this.sourceFilesSet,this.checker,this.cancellationToken)),this.importTracker(e,t,2===this.options.use)}createSearch(e,t,n,r={}){const{text:i=Dy(hc(yb(t)||h(t)||t)),allSearchSymbols:o=[t]}=r,a=pc(i),s=this.options.implementations&&e?function(e,t,n){const r=GG(e)?e.parent:void 0,i=r&&n.getTypeAtLocation(r.expression),o=B(i&&(i.isUnionOrIntersection()?i.types:i.symbol===t.parent?void 0:[i]),(e=>e.symbol&&96&e.symbol.flags?e.symbol:void 0));return 0===o.length?void 0:o}(e,t,this.checker):void 0;return{symbol:t,comingFrom:n,text:i,escapedText:a,parents:s,allSearchSymbols:o,includes:e=>T(o,e)}}referenceAdder(e){const t=RB(e);let n=this.symbolIdToReferences[t];return n||(n=this.symbolIdToReferences[t]=[],this.result.push({definition:{type:0,symbol:e},references:n})),(e,t)=>n.push(bce(e,t))}addStringOrCommentReference(e,t){this.result.push({definition:void 0,references:[{kind:0,fileName:e,textSpan:t}]})}markSearchedSymbols(e,t){const n=jB(e),r=this.sourceFileToSeenSymbols[n]||(this.sourceFileToSeenSymbols[n]=new Set);let i=!1;for(const e of t)i=q(r,RB(e))||i;return i}}function v(e,t,n,r){const{importSearches:i,singleReferences:o,indirectUsers:a}=r.getImportSearches(t,n);if(o.length){const e=r.referenceAdder(t);for(const t of o)x(t,r)&&e(t)}for(const[e,t]of i)P(e.getSourceFile(),r.createSearch(e,t,1),r);if(a.length){let i;switch(n.exportKind){case 0:i=r.createSearch(e,t,1);break;case 1:i=2===r.options.use?void 0:r.createSearch(e,t,1,{text:"default"})}if(i)for(const e of a)C(e,i,r)}}function x(e,t){return!(!I(e,t)||2===t.options.use&&(!zN(e)&&!Rl(e.parent)||Rl(e.parent)&&$d(e)))}function S(e,t){if(e.declarations)for(const n of e.declarations){const r=n.getSourceFile();P(r,t.createSearch(n,e,0),t,t.includesSourceFile(r))}}function C(e,t,n){void 0!==z8(e).get(t.escapedText)&&P(e,t,n)}function w(e,t,n,r,i=n){const o=Ys(e.parent,e.parent.parent)?ge(t.getSymbolsOfParameterPropertyDeclaration(e.parent,e.text)):t.getSymbolAtLocation(e);if(o)for(const a of D(n,o.name,i)){if(!zN(a)||a===e||a.escapedText!==e.escapedText)continue;const n=t.getSymbolAtLocation(a);if(n===o||t.getShorthandAssignmentValueSymbol(a.parent)===o||gE(a.parent)&&R(a,n,a.parent,t)===o){const e=r(a);if(e)return e}}}function D(e,t,n=e){return B(F(e,t,n),(t=>{const n=FX(e,t);return n===e?void 0:n}))}function F(e,t,n=e){const r=[];if(!t||!t.length)return r;const i=e.text,o=i.length,a=t.length;let s=i.indexOf(t,n.pos);for(;s>=0&&!(s>n.end);){const e=s+a;0!==s&&ps(i.charCodeAt(s-1),99)||e!==o&&ps(i.charCodeAt(e),99)||r.push(s),s=i.indexOf(t,s+a+1)}return r}function E(e,t){const n=e.getSourceFile(),r=t.text,i=B(D(n,r,e),(e=>e===t||VG(e)&&qG(e,r)===t?bce(e):void 0));return[{definition:{type:1,node:t},references:i}]}function P(e,t,n,r=!0){return n.cancellationToken.throwIfCancellationRequested(),A(e,e,t,n,r)}function A(e,t,n,r,i){if(r.markSearchedSymbols(t,n.allSearchSymbols))for(const o of F(t,n.text,e))L(t,o,n,r,i)}function I(e,t){return!!(FG(e)&t.searchMeaning)}function L(e,t,n,r,i){const o=FX(e,t);if(!function(e,t){switch(e.kind){case 81:if($E(e.parent))return!0;case 80:return e.text.length===t.length;case 15:case 11:{const n=e;return n.text.length===t.length&&(ZG(n)||QG(e)||eX(e)||GD(e.parent)&&tg(e.parent)&&e.parent.arguments[1]===e||Rl(e.parent))}case 9:return ZG(e)&&e.text.length===t.length;case 90:return 7===t.length;default:return!1}}(o,n.text))return void(!r.options.implementations&&(r.options.findInStrings&&JX(e,t)||r.options.findInComments&&_Q(e,t))&&r.addStringOrCommentReference(e.fileName,Vs(t,n.text.length)));if(!I(o,r))return;let a=r.checker.getSymbolAtLocation(o);if(!a)return;const s=o.parent;if(dE(s)&&s.propertyName===o)return;if(gE(s))return un.assert(80===o.kind||11===o.kind),void j(o,a,s,n,r,i);if(wl(s)&&s.isNameFirst&&s.typeExpression&&oP(s.typeExpression.type)&&s.typeExpression.type.jsDocPropertyTags&&u(s.typeExpression.type.jsDocPropertyTags))return void function(e,t,n,r){const i=r.referenceAdder(n.symbol);M(t,n.symbol,r),d(e,(e=>{nD(e.name)&&i(e.name.left)}))}(s.typeExpression.type.jsDocPropertyTags,o,n,r);const c=function(e,t,n,r){const{checker:i}=r;return K(t,n,i,!1,2!==r.options.use||!!r.options.providePrefixAndSuffixTextForRename,((n,r,i,o)=>(i&&G(t)!==G(i)&&(i=void 0),e.includes(i||r||n)?{symbol:!r||6&nx(n)?n:r,kind:o}:void 0)),(t=>!(e.parents&&!e.parents.some((e=>V(t.parent,e,r.inheritsFromCache,i))))))}(n,a,o,r);if(c){switch(r.specialSearchKind){case 0:i&&M(o,c,r);break;case 1:!function(e,t,n,r){AG(e)&&M(e,n.symbol,r);const i=()=>r.referenceAdder(n.symbol);if(__(e.parent))un.assert(90===e.kind||e.parent.name===e),function(e,t,n){const r=J(e);if(r&&r.declarations)for(const e of r.declarations){const r=yX(e,137,t);un.assert(176===e.kind&&!!r),n(r)}e.exports&&e.exports.forEach((e=>{const t=e.valueDeclaration;if(t&&174===t.kind){const e=t.body;e&&Y(e,110,(e=>{AG(e)&&n(e)}))}}))}(n.symbol,t,i());else{const t=eb(zG(e).parent);t&&(function(e,t){const n=J(e.symbol);if(n&&n.declarations)for(const e of n.declarations){un.assert(176===e.kind);const n=e.body;n&&Y(n,108,(e=>{PG(e)&&t(e)}))}}(t,i()),function(e,t){if(function(e){return!!J(e.symbol)}(e))return;const n=e.symbol,r=t.createSearch(void 0,n,void 0);p(n,t,r)}(t,r))}}(o,e,n,r);break;case 2:!function(e,t,n){M(e,t.symbol,n);const r=e.parent;if(2===n.options.use||!__(r))return;un.assert(r.name===e);const i=n.referenceAdder(t.symbol);for(const e of r.members)f_(e)&&Nv(e)&&e.body&&e.body.forEachChild((function e(t){110===t.kind?i(t):n_(t)||__(t)||t.forEachChild(e)}))}(o,n,r);break;default:un.assertNever(r.specialSearchKind)}Fm(o)&&VD(o.parent)&&jm(o.parent.parent.parent)&&(a=o.parent.symbol,!a)||function(e,t,n,r){const i=dce(e,t,r.checker,1===n.comingFrom);if(!i)return;const{symbol:o}=i;0===i.kind?Z(r.options)||S(o,r):v(e,o,i.exportInfo,r)}(o,a,n,r)}else!function({flags:e,valueDeclaration:t},n,r){const i=r.checker.getShorthandAssignmentValueSymbol(t),o=t&&Tc(t);33554432&e||!o||!n.includes(i)||M(o,i,r)}(a,n,r)}function j(e,t,n,r,i,o,a){un.assert(!a||!!i.options.providePrefixAndSuffixTextForRename,"If alwaysGetReferences is true, then prefix/suffix text must be enabled");const{parent:s,propertyName:c,name:l}=n,_=s.parent,u=R(e,t,n,i.checker);if(a||r.includes(u)){if(c?e===c?(_.moduleSpecifier||d(),o&&2!==i.options.use&&i.markSeenReExportRHS(l)&&M(l,un.checkDefined(n.symbol),i)):i.markSeenReExportRHS(e)&&d():2===i.options.use&&$d(l)||d(),!Z(i.options)||a){const t=$d(e)||$d(n.name)?1:0,r=un.checkDefined(n.symbol),o=pce(r,t,i.checker);o&&v(e,r,o,i)}if(1!==r.comingFrom&&_.moduleSpecifier&&!c&&!Z(i.options)){const e=i.checker.getExportSpecifierLocalTargetSymbol(n);e&&S(e,i)}}function d(){o&&M(e,u,i)}}function R(e,t,n,r){return function(e,t){const{parent:n,propertyName:r,name:i}=t;return un.assert(r===e||i===e),r?r===e:!n.parent.moduleSpecifier}(e,n)&&r.getExportSpecifierLocalTargetSymbol(n)||t}function M(e,t,n){const{kind:r,symbol:i}="kind"in t?t:{kind:void 0,symbol:t};if(2===n.options.use&&90===e.kind)return;const o=n.referenceAdder(i);n.options.implementations?function(e,t,n){if(ch(e)&&(33554432&(r=e.parent).flags?!KF(r)&&!GF(r):Ef(r)?Fu(r):i_(r)?r.body:__(r)||iu(r)))return void t(e);var r;if(80!==e.kind)return;304===e.parent.kind&&Q(e,n.checker,t);const i=z(e);if(i)return void t(i);const o=_c(e,(e=>!nD(e.parent)&&!v_(e.parent)&&!g_(e.parent))),a=o.parent;if(Du(a)&&a.type===o&&n.markSeenContainingTypeReference(a))if(Fu(a))s(a.initializer);else if(n_(a)&&a.body){const e=a.body;241===e.kind?wf(e,(e=>{e.expression&&s(e.expression)})):s(e)}else V_(a)&&s(a.expression);function s(e){U(e)&&t(e)}}(e,o,n):o(e,r)}function J(e){return e.members&&e.members.get("__constructor")}function z(e){return zN(e)||HD(e)?z(e.parent):mF(e)?tt(e.parent.parent,en(__,KF)):void 0}function U(e){switch(e.kind){case 217:return U(e.expression);case 219:case 218:case 210:case 231:case 209:return!0;default:return!1}}function V(e,t,n,r){if(e===t)return!0;const i=RB(e)+","+RB(t),o=n.get(i);if(void 0!==o)return o;n.set(i,!1);const a=!!e.declarations&&e.declarations.some((e=>bh(e).some((e=>{const i=r.getTypeAtLocation(e);return!!i&&!!i.symbol&&V(i.symbol,t,n,r)}))));return n.set(i,a),a}function W(e){return 80===e.kind&&169===e.parent.kind&&e.parent.name===e}function H(e,t,n,r,i,o){const a=[];return K(e,t,n,r,!(r&&i),((t,n,r)=>{r&&G(e)!==G(r)&&(r=void 0),a.push(r||n||t)}),(()=>!o)),a}function K(e,t,n,i,o,a,s){const c=q8(t);if(c){const e=n.getShorthandAssignmentValueSymbol(t.parent);if(e&&i)return a(e,void 0,void 0,3);const r=n.getContextualType(c.parent),o=r&&f(U8(c,n,r,!0),(e=>d(e,4)));if(o)return o;const s=function(e,t){return cQ(e.parent.parent)?t.getPropertySymbolOfDestructuringAssignment(e):void 0}(t,n),l=s&&a(s,void 0,void 0,4);if(l)return l;const _=e&&a(e,void 0,void 0,3);if(_)return _}const l=r(t,e,n);if(l){const e=a(l,void 0,void 0,1);if(e)return e}const _=d(e);if(_)return _;if(e.valueDeclaration&&Ys(e.valueDeclaration,e.valueDeclaration.parent)){const t=n.getSymbolsOfParameterPropertyDeclaration(nt(e.valueDeclaration,oD),e.name);return un.assert(2===t.length&&!!(1&t[0].flags)&&!!(4&t[1].flags)),d(1&e.flags?t[1]:t[0])}const u=Wu(e,281);if(!i||u&&!u.propertyName){const e=u&&n.getExportSpecifierLocalTargetSymbol(u);if(e){const t=a(e,void 0,void 0,1);if(t)return t}}if(!i){let r;return r=o?VQ(t.parent)?WQ(n,t.parent):void 0:p(e,n),r&&d(r,4)}if(un.assert(i),o){const t=p(e,n);return t&&d(t,4)}function d(e,t){return f(n.getRootSymbols(e),(r=>a(e,r,void 0,t)||(r.parent&&96&r.parent.flags&&s(r)?function(e,t,n,r){const i=new Set;return function e(o){if(96&o.flags&&vx(i,o))return f(o.declarations,(i=>f(bh(i),(i=>{const o=n.getTypeAtLocation(i),a=o&&o.symbol&&n.getPropertyOfType(o,t);return o&&a&&(f(n.getRootSymbols(a),r)||e(o.symbol))}))))}(e)}(r.parent,r.name,n,(n=>a(e,r,n,t))):void 0)))}function p(e,t){const n=Wu(e,208);if(n&&VQ(n))return WQ(t,n)}}function G(e){return!!e.valueDeclaration&&!!(256&Mv(e.valueDeclaration))}function X(e,t){let n=FG(e);const{declarations:r}=t;if(r){let e;do{e=n;for(const e of r){const t=DG(e);t&n&&(n|=t)}}while(n!==e)}return n}function Q(e,t,n){const r=t.getSymbolAtLocation(e),i=t.getShorthandAssignmentValueSymbol(r.valueDeclaration);if(i)for(const e of i.getDeclarations())1&DG(e)&&n(e)}function Y(e,t,n){PI(e,(e=>{e.kind===t&&n(e),Y(e,t,n)}))}function Z(e){return 2===e.use&&e.providePrefixAndSuffixTextForRename}e.eachExportReference=function(e,t,n,r,i,o,a,s){const c=oce(e,new Set(e.map((e=>e.fileName))),t,n),{importSearches:l,indirectUsers:_,singleReferences:u}=c(r,{exportKind:a?1:0,exportingModuleSymbol:i},!1);for(const[e]of l)s(e);for(const e of u)zN(e)&&BD(e.parent)&&s(e);for(const e of _)for(const n of D(e,a?"default":o)){const e=t.getSymbolAtLocation(n),i=$(null==e?void 0:e.declarations,(e=>!!tt(e,pE)));!zN(n)||Rl(n.parent)||e!==r&&!i||s(n)}},e.isSymbolReferencedInFile=function(e,t,n,r=n){return w(e,t,n,(()=>!0),r)||!1},e.eachSymbolReferenceInFile=w,e.getTopMostDeclarationNamesInFile=function(e,t){return N(D(t,e),(e=>!!lh(e))).reduce(((e,t)=>{const n=function(e){let t=0;for(;e;)e=tX(e),t++;return t}(t);return $(e.declarationNames)&&n!==e.depth?ne===i))&&r(t,a))return!0}return!1},e.getIntersectingMeaningFromDeclarations=X,e.getReferenceEntriesForShorthandPropertyAssignment=Q})(Cce||(Cce={}));var Wce={};function $ce(e,t,n,r,i){var o;const a=Kce(t,n,e),s=a&&[(c=a.reference.fileName,_=a.fileName,u=a.unverified,{fileName:_,textSpan:Ws(0,0),kind:"script",name:c,containerName:void 0,containerKind:void 0,unverified:u})]||l;var c,_,u;if(null==a?void 0:a.file)return s;const p=FX(t,n);if(p===t)return;const{parent:f}=p,m=e.getTypeChecker();if(164===p.kind||zN(p)&&mP(f)&&f.tagName===p)return function(e,t){const n=_c(t,l_);if(!n||!n.name)return;const r=_c(n,__);if(!r)return;const i=hh(r);if(!i)return;const o=oh(i.expression),a=pF(o)?o.symbol:e.getSymbolAtLocation(o);if(!a)return;const s=fc(Op(n.name)),c=Dv(n)?e.getPropertyOfType(e.getTypeOfSymbol(a),s):e.getPropertyOfType(e.getDeclaredTypeOfSymbol(a),s);return c?nle(e,c,t):void 0}(m,p)||l;if(VG(p)){const e=qG(p.parent,p.text);return e?[ile(m,e,"label",p.text,void 0)]:void 0}switch(p.kind){case 107:const e=_c(p.parent,(e=>uD(e)?"quit":i_(e)));return e?[sle(m,e)]:void 0;case 90:if(!LE(p.parent))break;case 84:const n=_c(p.parent,BF);if(n)return[ole(n,t)]}if(135===p.kind){const e=_c(p,(e=>i_(e)));return e&&$(e.modifiers,(e=>134===e.kind))?[sle(m,e)]:void 0}if(127===p.kind){const e=_c(p,(e=>i_(e)));return e&&e.asteriskToken?[sle(m,e)]:void 0}if(GN(p)&&uD(p.parent)){const e=p.parent.parent,{symbol:t,failedAliasResolution:n}=tle(e,m,i),r=N(e.members,uD),o=t?m.symbolToString(t,e):"",a=p.getSourceFile();return E(r,(e=>{let{pos:t}=Lb(e);return t=Xa(a.text,t),ile(m,e,"constructor","static {}",o,!1,n,{start:t,length:6})}))}let{symbol:g,failedAliasResolution:h}=tle(p,m,i),y=p;if(r&&h){const e=d([p,...(null==g?void 0:g.declarations)||l],(e=>_c(e,kp))),t=e&&hg(e);t&&(({symbol:g,failedAliasResolution:h}=tle(t,m,i)),y=t)}if(!g&&UQ(y)){const n=null==(o=e.getResolvedModuleFromModuleSpecifier(y,t))?void 0:o.resolvedModule;if(n)return[{name:y.text,fileName:n.resolvedFileName,containerName:void 0,containerKind:void 0,kind:"script",textSpan:Vs(0,0),failedAliasResolution:h,isAmbient:$I(n.resolvedFileName),unverified:y!==p}]}if(!g)return K(s,function(e,t){return B(t.getIndexInfosAtLocation(e),(e=>e.declaration&&sle(t,e.declaration)))}(p,m));if(r&&v(g.declarations,(e=>e.getSourceFile().fileName===t.fileName)))return;const b=function(e,t){const n=function(e){const t=_c(e,(e=>!GG(e))),n=null==t?void 0:t.parent;return n&&O_(n)&&_m(n)===t?n:void 0}(t),r=n&&e.getResolvedSignature(n);return tt(r&&r.declaration,(e=>n_(e)&&!bD(e)))}(m,p);if(b&&(!vu(p.parent)||!function(e){switch(e.kind){case 176:case 185:case 179:case 180:return!0;default:return!1}}(b))){const e=sle(m,b,h);let t=e=>e!==b;if(m.getRootSymbols(g).some((e=>function(e,t){var n;return e===t.symbol||e===t.symbol.parent||nb(t.parent)||!O_(t.parent)&&e===(null==(n=tt(t.parent,ou))?void 0:n.symbol)}(e,b)))){if(!dD(b))return[e];t=e=>e!==b&&(HF(e)||pF(e))}const n=nle(m,g,p,h,t)||l;return 108===p.kind?[e,...n]:[...n,e]}if(304===p.parent.kind){const e=m.getShorthandAssignmentValueSymbol(g.valueDeclaration);return K((null==e?void 0:e.declarations)?e.declarations.map((t=>rle(t,m,e,p,!1,h))):l,Hce(m,p))}if(e_(p)&&VD(f)&&qD(f.parent)&&p===(f.propertyName||f.name)){const e=DQ(p),t=m.getTypeAtLocation(f.parent);return void 0===e?l:O(t.isUnion()?t.types:[t],(t=>{const n=t.getProperty(e);return n&&nle(m,n,p)}))}const x=Hce(m,p);return K(s,x.length?x:nle(m,g,p,h))}function Hce(e,t){const n=q8(t);if(n){const r=n&&e.getContextualType(n.parent);if(r)return O(U8(n,e,r,!1),(n=>nle(e,n,t)))}return l}function Kce(e,t,n){var r,i;const o=cle(e.referencedFiles,t);if(o){const t=n.getSourceFileFromReference(e,o);return t&&{reference:o,fileName:t.fileName,file:t,unverified:!1}}const a=cle(e.typeReferenceDirectives,t);if(a){const t=null==(r=n.getResolvedTypeReferenceDirectiveFromTypeReferenceDirective(a,e))?void 0:r.resolvedTypeReferenceDirective,i=t&&n.getSourceFile(t.resolvedFileName);return i&&{reference:a,fileName:i.fileName,file:i,unverified:!1}}const s=cle(e.libReferenceDirectives,t);if(s){const e=n.getLibFileFromReference(s);return e&&{reference:s,fileName:e.fileName,file:e,unverified:!1}}if(e.imports.length||e.moduleAugmentations.length){const r=EX(e,t);let o;if(UQ(r)&&Ts(r.text)&&(o=n.getResolvedModuleFromModuleSpecifier(r,e))){const t=null==(i=o.resolvedModule)?void 0:i.resolvedFileName,a=t||Ro(Do(e.fileName),r.text);return{file:n.getSourceFile(a),fileName:a,reference:{pos:r.getStart(),end:r.getEnd(),fileName:r.text},unverified:!t}}}}i(Wce,{createDefinitionInfo:()=>rle,getDefinitionAndBoundSpan:()=>ele,getDefinitionAtPosition:()=>$ce,getReferenceAtPosition:()=>Kce,getTypeDefinitionAtPosition:()=>Yce});var Gce=new Set(["Array","ArrayLike","ReadonlyArray","Promise","PromiseLike","Iterable","IterableIterator","AsyncIterable","Set","WeakSet","ReadonlySet","Map","WeakMap","ReadonlyMap","Partial","Required","Readonly","Pick","Omit"]);function Xce(e,t){if(!t.aliasSymbol)return!1;const n=t.aliasSymbol.name;if(!Gce.has(n))return!1;const r=e.resolveName(n,void 0,788968,!1);return!!r&&r===t.aliasSymbol}function Qce(e,t,n,r){var i,o;if(4&mx(t)&&function(e,t){const n=t.symbol.name;if(!Gce.has(n))return!1;const r=e.resolveName(n,void 0,788968,!1);return!!r&&r===t.target.symbol}(e,t))return Zce(e.getTypeArguments(t)[0],e,n,r);if(Xce(e,t)&&t.aliasTypeArguments)return Zce(t.aliasTypeArguments[0],e,n,r);if(32&mx(t)&&t.target&&Xce(e,t.target)){const a=null==(o=null==(i=t.aliasSymbol)?void 0:i.declarations)?void 0:o[0];if(a&&GF(a)&&vD(a.type)&&a.type.typeArguments)return Zce(e.getTypeAtLocation(a.type.typeArguments[0]),e,n,r)}return[]}function Yce(e,t,n){const r=FX(t,n);if(r===t)return;if(lf(r.parent)&&r.parent.name===r)return Zce(e.getTypeAtLocation(r.parent),e,r.parent,!1);const{symbol:i,failedAliasResolution:o}=tle(r,e,!1);if(!i)return;const a=e.getTypeOfSymbolAtLocation(i,r),s=function(e,t,n){if(t.symbol===e||e.valueDeclaration&&t.symbol&&VF(e.valueDeclaration)&&e.valueDeclaration.initializer===t.symbol.valueDeclaration){const e=t.getCallSignatures();if(1===e.length)return n.getReturnTypeOfSignature(ge(e))}}(i,a,e),c=s&&Zce(s,e,r,o),[l,_]=c&&0!==c.length?[s,c]:[a,Zce(a,e,r,o)];return _.length?[...Qce(e,l,r,o),..._]:!(111551&i.flags)&&788968&i.flags?nle(e,ix(i,e),r,o):void 0}function Zce(e,t,n,r){return O(!e.isUnion()||32&e.flags?[e]:e.types,(e=>e.symbol&&nle(t,e.symbol,n,r)))}function ele(e,t,n){const r=$ce(e,t,n);if(!r||0===r.length)return;const i=cle(t.referencedFiles,n)||cle(t.typeReferenceDirectives,n)||cle(t.libReferenceDirectives,n);if(i)return{definitions:r,textSpan:gQ(i)};const o=FX(t,n);return{definitions:r,textSpan:Vs(o.getStart(),o.getWidth())}}function tle(e,t,n){const r=t.getSymbolAtLocation(e);let i=!1;if((null==r?void 0:r.declarations)&&2097152&r.flags&&!n&&function(e,t){return!!(80===e.kind||11===e.kind&&Rl(e.parent))&&(e.parent===t||274!==t.kind)}(e,r.declarations[0])){const e=t.getAliasedSymbol(r);if(e.declarations)return{symbol:e};i=!0}return{symbol:r,failedAliasResolution:i}}function nle(e,t,n,r,i){const o=void 0!==i?N(t.declarations,i):t.declarations,a=!i&&(function(){if(32&t.flags&&!(19&t.flags)&&(AG(n)||137===n.kind)){const e=b(o,__);return e&&c(e.members,!0)}}()||(IG(n)||YG(n)?c(o,!1):void 0));if(a)return a;const s=N(o,(e=>!function(e){if(!qm(e))return!1;const t=_c(e,(e=>!!nb(e)||!qm(e)&&"quit"));return!!t&&5===eg(t)}(e)));return E($(s)?s:o,(i=>rle(i,e,t,n,!1,r)));function c(i,o){if(!i)return;const a=i.filter(o?dD:n_),s=a.filter((e=>!!e.body));return a.length?0!==s.length?s.map((r=>rle(r,e,t,n))):[rle(ve(a),e,t,n,!1,r)]:void 0}}function rle(e,t,n,r,i,o){const a=t.symbolToString(n),s=mue.getSymbolKind(t,n,r),c=n.parent?t.symbolToString(n.parent,r):"";return ile(t,e,s,a,c,i,o)}function ile(e,t,n,r,i,o,a,s){const c=t.getSourceFile();return s||(s=pQ(Tc(t)||t,c)),{fileName:c.fileName,textSpan:s,kind:n,name:r,containerKind:void 0,containerName:i,...ice.toContextSpan(s,c,ice.getContextNode(t)),isLocal:!ale(e,t),isAmbient:!!(33554432&t.flags),unverified:o,failedAliasResolution:a}}function ole(e,t){const n=ice.getContextNode(e),r=pQ(xce(n)?n.start:n,t);return{fileName:t.fileName,textSpan:r,kind:"keyword",name:"switch",containerKind:void 0,containerName:"",...ice.toContextSpan(r,t,n),isLocal:!0,isAmbient:!1,unverified:!1,failedAliasResolution:void 0}}function ale(e,t){if(e.isDeclarationVisible(t))return!0;if(!t.parent)return!1;if(Fu(t.parent)&&t.parent.initializer===t)return ale(e,t.parent);switch(t.kind){case 172:case 177:case 178:case 174:if(Cv(t,2))return!1;case 176:case 303:case 304:case 210:case 231:case 219:case 218:return ale(e,t.parent);default:return!1}}function sle(e,t,n){return rle(t,e,t.symbol,t,!1,n)}function cle(e,t){return b(e,(e=>Ps(e,t)))}var lle={};i(lle,{provideInlayHints:()=>ple});var _le=e=>new RegExp(`^\\s?/\\*\\*?\\s?${e}\\s?\\*\\/\\s?$`);function ule(e){return"literals"===e.includeInlayParameterNameHints}function dle(e){return!0===e.interactiveInlayHints}function ple(e){const{file:t,program:n,span:r,cancellationToken:i,preferences:o}=e,a=t.text,s=n.getCompilerOptions(),c=BQ(t,o),l=n.getTypeChecker(),_=[];return function e(n){if(n&&0!==n.getFullWidth()){switch(n.kind){case 267:case 263:case 264:case 262:case 231:case 218:case 174:case 219:i.throwIfCancellationRequested()}if(Ms(r,n.pos,n.getFullWidth())&&(!v_(n)||mF(n)))return o.includeInlayVariableTypeHints&&VF(n)||o.includeInlayPropertyDeclarationTypeHints&&cD(n)?function(e){if(void 0===e.initializer&&(!cD(e)||1&l.getTypeAtLocation(e).flags)||x_(e.name)||VF(e)&&!x(e))return;if(pv(e))return;const t=l.getTypeAtLocation(e);if(p(t))return;const n=v(t);if(n){const t="string"==typeof n?n:n.map((e=>e.text)).join("");if(!1===o.includeInlayVariableTypeHintsWhenTypeMatchesName&>(e.name.getText(),t))return;d(n,e.name.end)}}(n):o.includeInlayEnumMemberValueHints&&zE(n)?function(e){if(e.initializer)return;const t=l.getConstantValue(e);var n,r;void 0!==t&&(n=t.toString(),r=e.end,_.push({text:`= ${n}`,position:r,kind:"Enum",whitespaceBefore:!0}))}(n):function(e){return"literals"===e.includeInlayParameterNameHints||"all"===e.includeInlayParameterNameHints}(o)&&(GD(n)||XD(n))?function(e){const t=e.arguments;if(!t||!t.length)return;const n=l.getResolvedSignature(e);if(void 0===n)return;let r=0;for(const e of t){const t=oh(e);if(ule(o)&&!g(t)){r++;continue}let i=0;if(dF(t)){const e=l.getTypeAtLocation(t.expression);if(l.isTupleType(e)){const{elementFlags:t,fixedLength:n}=e.target;if(0===n)continue;const r=k(t,(e=>!(1&e)));(r<0?n:r)>0&&(i=r<0?n:r)}}const a=l.getParameterIdentifierInfoAtPosition(n,r);if(r+=i||1,a){const{parameter:n,parameterName:r,isRestParameter:i}=a;if(!o.includeInlayParameterNameHintsWhenArgumentMatchesName&&f(t,r)&&!i)continue;const s=fc(r);if(m(t,s))continue;u(s,n,e.getStart(),i)}}}(n):(o.includeInlayFunctionParameterTypeHints&&i_(n)&&IT(n)&&function(e){const t=l.getSignatureFromDeclaration(e);if(t)for(let n=0;n{const i=l.typePredicateToTypePredicateNode(e,void 0,71286784);un.assertIsDefined(i,"should always get typePredicateNode"),n.writeNode(4,i,t,r)}))}(e);const n=l.typePredicateToTypePredicateNode(e,void 0,71286784);return un.assertIsDefined(n,"should always get typenode"),b(n)}(r);if(n)return void d(n,h(e))}const i=l.getReturnTypeOfSignature(n);if(p(i))return;const a=v(i);a&&d(a,h(e))}(n)),PI(n,e)}}(t),_;function u(e,t,n,r){let i,a=`${r?"...":""}${e}`;dle(o)?(i=[S(a,t),{text:":"}],a=""):a+=":",_.push({text:a,position:n,kind:"Parameter",whitespaceAfter:!0,displayParts:i})}function d(e,t){_.push({text:"string"==typeof e?`: ${e}`:"",displayParts:"string"==typeof e?void 0:[{text:": "},...e],position:t,kind:"Type",whitespaceBefore:!0})}function p(e){return e.symbol&&1536&e.symbol.flags}function f(e,t){return zN(e)?e.text===t:!!HD(e)&&e.name.text===t}function m(e,n){if(!fs(n,hk(s),ck(t.scriptKind)))return!1;const r=ls(a,e.pos);if(!(null==r?void 0:r.length))return!1;const i=_le(n);return $(r,(e=>i.test(a.substring(e.pos,e.end))))}function g(e){switch(e.kind){case 224:{const t=e.operand;return Al(t)||zN(t)&&OT(t.escapedText)}case 112:case 97:case 106:case 15:case 228:return!0;case 80:{const t=e.escapedText;return function(e){return"undefined"===e}(t)||OT(t)}}return Al(e)}function h(e){const n=yX(e,22,t);return n?n.end:e.parameters.end}function y(e){const t=e.valueDeclaration;if(!t||!oD(t))return;const n=l.getTypeOfSymbolAtLocation(e,t);return p(n)?void 0:v(n)}function v(e){if(!dle(o))return function(e){const n=eU();return id((r=>{const i=l.typeToTypeNode(e,void 0,71286784);un.assertIsDefined(i,"should always get typenode"),n.writeNode(4,i,t,r)}))}(e);const n=l.typeToTypeNode(e,void 0,71286784);return un.assertIsDefined(n,"should always get typeNode"),b(n)}function b(e){const t=[];return n(e),t;function n(e){var a,s;if(!e)return;const c=Da(e.kind);if(c)t.push({text:c});else if(Al(e))t.push({text:o(e)});else switch(e.kind){case 80:un.assertNode(e,zN);const c=mc(e),l=e.symbol&&e.symbol.declarations&&e.symbol.declarations.length&&Tc(e.symbol.declarations[0]);l?t.push(S(c,l)):t.push({text:c});break;case 166:un.assertNode(e,nD),n(e.left),t.push({text:"."}),n(e.right);break;case 182:un.assertNode(e,yD),e.assertsModifier&&t.push({text:"asserts "}),n(e.parameterName),e.type&&(t.push({text:" is "}),n(e.type));break;case 183:un.assertNode(e,vD),n(e.typeName),e.typeArguments&&(t.push({text:"<"}),i(e.typeArguments,", "),t.push({text:">"}));break;case 168:un.assertNode(e,iD),e.modifiers&&i(e.modifiers," "),n(e.name),e.constraint&&(t.push({text:" extends "}),n(e.constraint)),e.default&&(t.push({text:" = "}),n(e.default));break;case 169:un.assertNode(e,oD),e.modifiers&&i(e.modifiers," "),e.dotDotDotToken&&t.push({text:"..."}),n(e.name),e.questionToken&&t.push({text:"?"}),e.type&&(t.push({text:": "}),n(e.type));break;case 185:un.assertNode(e,xD),t.push({text:"new "}),r(e),t.push({text:" => "}),n(e.type);break;case 186:un.assertNode(e,kD),t.push({text:"typeof "}),n(e.exprName),e.typeArguments&&(t.push({text:"<"}),i(e.typeArguments,", "),t.push({text:">"}));break;case 187:un.assertNode(e,SD),t.push({text:"{"}),e.members.length&&(t.push({text:" "}),i(e.members,"; "),t.push({text:" "})),t.push({text:"}"});break;case 188:un.assertNode(e,TD),n(e.elementType),t.push({text:"[]"});break;case 189:un.assertNode(e,CD),t.push({text:"["}),i(e.elements,", "),t.push({text:"]"});break;case 202:un.assertNode(e,wD),e.dotDotDotToken&&t.push({text:"..."}),n(e.name),e.questionToken&&t.push({text:"?"}),t.push({text:": "}),n(e.type);break;case 190:un.assertNode(e,ND),n(e.type),t.push({text:"?"});break;case 191:un.assertNode(e,DD),t.push({text:"..."}),n(e.type);break;case 192:un.assertNode(e,FD),i(e.types," | ");break;case 193:un.assertNode(e,ED),i(e.types," & ");break;case 194:un.assertNode(e,PD),n(e.checkType),t.push({text:" extends "}),n(e.extendsType),t.push({text:" ? "}),n(e.trueType),t.push({text:" : "}),n(e.falseType);break;case 195:un.assertNode(e,AD),t.push({text:"infer "}),n(e.typeParameter);break;case 196:un.assertNode(e,ID),t.push({text:"("}),n(e.type),t.push({text:")"});break;case 198:un.assertNode(e,LD),t.push({text:`${Da(e.operator)} `}),n(e.type);break;case 199:un.assertNode(e,jD),n(e.objectType),t.push({text:"["}),n(e.indexType),t.push({text:"]"});break;case 200:un.assertNode(e,RD),t.push({text:"{ "}),e.readonlyToken&&(40===e.readonlyToken.kind?t.push({text:"+"}):41===e.readonlyToken.kind&&t.push({text:"-"}),t.push({text:"readonly "})),t.push({text:"["}),n(e.typeParameter),e.nameType&&(t.push({text:" as "}),n(e.nameType)),t.push({text:"]"}),e.questionToken&&(40===e.questionToken.kind?t.push({text:"+"}):41===e.questionToken.kind&&t.push({text:"-"}),t.push({text:"?"})),t.push({text:": "}),e.type&&n(e.type),t.push({text:"; }"});break;case 201:un.assertNode(e,MD),n(e.literal);break;case 184:un.assertNode(e,bD),r(e),t.push({text:" => "}),n(e.type);break;case 205:un.assertNode(e,BD),e.isTypeOf&&t.push({text:"typeof "}),t.push({text:"import("}),n(e.argument),e.assertions&&(t.push({text:", { assert: "}),i(e.assertions.assertClause.elements,", "),t.push({text:" }"})),t.push({text:")"}),e.qualifier&&(t.push({text:"."}),n(e.qualifier)),e.typeArguments&&(t.push({text:"<"}),i(e.typeArguments,", "),t.push({text:">"}));break;case 171:un.assertNode(e,sD),(null==(a=e.modifiers)?void 0:a.length)&&(i(e.modifiers," "),t.push({text:" "})),n(e.name),e.questionToken&&t.push({text:"?"}),e.type&&(t.push({text:": "}),n(e.type));break;case 181:un.assertNode(e,hD),t.push({text:"["}),i(e.parameters,", "),t.push({text:"]"}),e.type&&(t.push({text:": "}),n(e.type));break;case 173:un.assertNode(e,lD),(null==(s=e.modifiers)?void 0:s.length)&&(i(e.modifiers," "),t.push({text:" "})),n(e.name),e.questionToken&&t.push({text:"?"}),r(e),e.type&&(t.push({text:": "}),n(e.type));break;case 179:un.assertNode(e,mD),r(e),e.type&&(t.push({text:": "}),n(e.type));break;case 207:un.assertNode(e,UD),t.push({text:"["}),i(e.elements,", "),t.push({text:"]"});break;case 206:un.assertNode(e,qD),t.push({text:"{"}),e.elements.length&&(t.push({text:" "}),i(e.elements,", "),t.push({text:" "})),t.push({text:"}"});break;case 208:un.assertNode(e,VD),n(e.name);break;case 224:un.assertNode(e,aF),t.push({text:Da(e.operator)}),n(e.operand);break;case 203:un.assertNode(e,zD),n(e.head),e.templateSpans.forEach(n);break;case 16:un.assertNode(e,DN),t.push({text:o(e)});break;case 204:un.assertNode(e,JD),n(e.type),n(e.literal);break;case 17:un.assertNode(e,FN),t.push({text:o(e)});break;case 18:un.assertNode(e,EN),t.push({text:o(e)});break;case 197:un.assertNode(e,OD),t.push({text:"this"});break;default:un.failBadSyntaxKind(e)}}function r(e){e.typeParameters&&(t.push({text:"<"}),i(e.typeParameters,", "),t.push({text:">"})),t.push({text:"("}),i(e.parameters,", "),t.push({text:")"})}function i(e,r){e.forEach(((e,i)=>{i>0&&t.push({text:r}),n(e)}))}function o(e){switch(e.kind){case 11:return 0===c?`'${by(e.text,39)}'`:`"${by(e.text,34)}"`;case 16:case 17:case 18:{const t=e.rawText??uy(by(e.text,96));switch(e.kind){case 16:return"`"+t+"${";case 17:return"}"+t+"${";case 18:return"}"+t+"`"}}}return e.text}}function x(e){if((Xh(e)||VF(e)&&rf(e))&&e.initializer){const t=oh(e.initializer);return!(g(t)||XD(t)||$D(t)||V_(t))}return!0}function S(e,t){const n=t.getSourceFile();return{text:e,span:pQ(t,n),file:n.fileName}}}var fle={};i(fle,{getDocCommentTemplateAtPosition:()=>Ple,getJSDocParameterNameCompletionDetails:()=>Ele,getJSDocParameterNameCompletions:()=>Fle,getJSDocTagCompletionDetails:()=>Dle,getJSDocTagCompletions:()=>Nle,getJSDocTagNameCompletionDetails:()=>wle,getJSDocTagNameCompletions:()=>Cle,getJsDocCommentsFromDeclarations:()=>yle,getJsDocTagsFromDeclarations:()=>ble});var mle,gle,hle=["abstract","access","alias","argument","async","augments","author","borrows","callback","class","classdesc","constant","constructor","constructs","copyright","default","deprecated","description","emits","enum","event","example","exports","extends","external","field","file","fileoverview","fires","function","generator","global","hideconstructor","host","ignore","implements","import","inheritdoc","inner","instance","interface","kind","lends","license","link","linkcode","linkplain","listens","member","memberof","method","mixes","module","name","namespace","overload","override","package","param","private","prop","property","protected","public","readonly","requires","returns","satisfies","see","since","static","summary","template","this","throws","todo","tutorial","type","typedef","var","variation","version","virtual","yields"];function yle(e,t){const n=[];return eY(e,(e=>{for(const r of function(e){switch(e.kind){case 341:case 348:return[e];case 338:case 346:return[e,e.parent];case 323:if(gP(e.parent))return[e.parent.parent];default:return Lg(e)}}(e)){const i=iP(r)&&r.tags&&b(r.tags,(e=>327===e.kind&&("inheritDoc"===e.tagName.escapedText||"inheritdoc"===e.tagName.escapedText)));if(void 0===r.comment&&!i||iP(r)&&346!==e.kind&&338!==e.kind&&r.tags&&r.tags.some((e=>346===e.kind||338===e.kind))&&!r.tags.some((e=>341===e.kind||342===e.kind)))continue;let o=r.comment?Sle(r.comment,t):[];i&&i.comment&&(o=o.concat(Sle(i.comment,t))),T(n,o,vle)||n.push(o)}})),I(y(n,[SY()]))}function vle(e,t){return te(e,t,((e,t)=>e.kind===t.kind&&e.text===t.text))}function ble(e,t){const n=[];return eY(e,(e=>{const r=il(e);if(!r.some((e=>346===e.kind||338===e.kind))||r.some((e=>341===e.kind||342===e.kind)))for(const e of r)n.push({name:e.tagName.text,text:Tle(e,t)}),n.push(...xle(kle(e),t))})),n}function xle(e,t){return O(e,(e=>K([{name:e.tagName.text,text:Tle(e,t)}],xle(kle(e),t))))}function kle(e){return wl(e)&&e.isNameFirst&&e.typeExpression&&oP(e.typeExpression.type)?e.typeExpression.type.jsDocPropertyTags:void 0}function Sle(e,t){return"string"==typeof e?[mY(e)]:O(e,(e=>321===e.kind?[mY(e.text)]:bY(e,t)))}function Tle(e,t){const{comment:n,kind:r}=e,i=function(e){switch(e){case 341:return dY;case 348:return pY;case 345:return hY;case 346:case 338:return gY;default:return mY}}(r);switch(r){case 349:const r=e.typeExpression;return r?o(r):void 0===n?void 0:Sle(n,t);case 329:case 328:return o(e.class);case 345:const a=e,s=[];if(a.constraint&&s.push(mY(a.constraint.getText())),u(a.typeParameters)){u(s)&&s.push(cY());const e=a.typeParameters[a.typeParameters.length-1];d(a.typeParameters,(t=>{s.push(i(t.getText())),e!==t&&s.push(_Y(28),cY())}))}return n&&s.push(cY(),...Sle(n,t)),s;case 344:case 350:return o(e.typeExpression);case 346:case 338:case 348:case 341:case 347:const{name:c}=e;return c?o(c):void 0===n?void 0:Sle(n,t);default:return void 0===n?void 0:Sle(n,t)}function o(e){return r=e.getText(),n?r.match(/^https?$/)?[mY(r),...Sle(n,t)]:[i(r),cY(),...Sle(n,t)]:[mY(r)];var r}}function Cle(){return mle||(mle=E(hle,(e=>({name:e,kind:"keyword",kindModifiers:"",sortText:oae.SortText.LocationPriority}))))}var wle=Dle;function Nle(){return gle||(gle=E(hle,(e=>({name:`@${e}`,kind:"keyword",kindModifiers:"",sortText:oae.SortText.LocationPriority}))))}function Dle(e){return{name:e,kind:"",kindModifiers:"",displayParts:[mY(e)],documentation:l,tags:void 0,codeActions:void 0}}function Fle(e){if(!zN(e.name))return l;const t=e.name.text,n=e.parent,r=n.parent;return n_(r)?B(r.parameters,(r=>{if(!zN(r.name))return;const i=r.name.text;return n.tags.some((t=>t!==e&&bP(t)&&zN(t.name)&&t.name.escapedText===i))||void 0!==t&&!Gt(i,t)?void 0:{name:i,kind:"parameter",kindModifiers:"",sortText:oae.SortText.LocationPriority}})):[]}function Ele(e){return{name:e,kind:"parameter",kindModifiers:"",displayParts:[mY(e)],documentation:l,tags:void 0,codeActions:void 0}}function Ple(e,t,n,r){const i=PX(t,n),o=_c(i,iP);if(o&&(void 0!==o.comment||u(o.tags)))return;const a=i.getStart(t);if(!o&&aAle(e,t)))}(i,r);if(!s)return;const{commentOwner:c,parameters:l,hasReturn:_}=s,d=ye(Nu(c)&&c.jsDoc?c.jsDoc:void 0);if(c.getStart(t){const a=80===e.kind?e.text:"param"+o;return`${n} * @param ${t?i?"{...any} ":"{any} ":""}${a}${r}`})).join("")}(l||[],f,p,e):"")+(_?function(e,t){return`${e} * @returns${t}`}(p,e):""),g=u(il(c))>0;if(m&&!g){const t="/**"+e+p+" * ";return{newText:t+e+m+p+" */"+(a===n?e+p:""),caretOffset:t.length}}return{newText:"/** */",caretOffset:3}}function Ale(e,t){switch(e.kind){case 262:case 218:case 174:case 176:case 173:case 219:const n=e;return{commentOwner:e,parameters:n.parameters,hasReturn:Ile(n,t)};case 303:return Ale(e.initializer,t);case 263:case 264:case 266:case 306:case 265:return{commentOwner:e};case 171:{const n=e;return n.type&&bD(n.type)?{commentOwner:e,parameters:n.type.parameters,hasReturn:Ile(n.type,t)}:{commentOwner:e}}case 243:{const n=e.declarationList.declarations,r=1===n.length&&n[0].initializer?function(e){for(;217===e.kind;)e=e.expression;switch(e.kind){case 218:case 219:return e;case 231:return b(e.members,dD)}}(n[0].initializer):void 0;return r?{commentOwner:e,parameters:r.parameters,hasReturn:Ile(r,t)}:{commentOwner:e}}case 307:return"quit";case 267:return 267===e.parent.kind?void 0:{commentOwner:e};case 244:return Ale(e.expression,t);case 226:{const n=e;return 0===eg(n)?"quit":n_(n.right)?{commentOwner:e,parameters:n.right.parameters,hasReturn:Ile(n.right,t)}:{commentOwner:e}}case 172:const r=e.initializer;if(r&&(eF(r)||tF(r)))return{commentOwner:e,parameters:r.parameters,hasReturn:Ile(r,t)}}}function Ile(e,t){return!!(null==t?void 0:t.generateReturnInDocTemplate)&&(bD(e)||tF(e)&&U_(e.body)||i_(e)&&e.body&&CF(e.body)&&!!wf(e.body,(e=>e)))}var Ole={};function Lle(e,t,n,r,i,o){return Tue.ChangeTracker.with({host:r,formatContext:i,preferences:o},(r=>{const i=t.map((t=>function(e,t){const n=[{parse:()=>LI("__mapcode_content_nodes.ts",t,e.languageVersion,!0,e.scriptKind),body:e=>e.statements},{parse:()=>LI("__mapcode_class_content_nodes.ts",`class __class {\n${t}\n}`,e.languageVersion,!0,e.scriptKind),body:e=>e.statements[0].members}],r=[];for(const{parse:e,body:t}of n){const n=e(),i=t(n);if(i.length&&0===n.parseDiagnostics.length)return i;i.length&&r.push({sourceFile:n,body:i})}r.sort(((e,t)=>e.sourceFile.parseDiagnostics.length-t.sourceFile.parseDiagnostics.length));const{body:i}=r[0];return i}(e,t))),o=n&&I(n);for(const t of i)jle(e,r,t,o)}))}function jle(e,t,n,r){l_(n[0])||g_(n[0])?function(e,t,n,r){let i;if(i=r&&r.length?d(r,(t=>_c(PX(e,t.start),en(__,KF)))):b(e.statements,en(__,KF)),!i)return;const o=i.members.find((e=>n.some((t=>Rle(t,e)))));if(o){const r=x(i.members,(e=>n.some((t=>Rle(t,e)))));return d(n,Mle),void t.replaceNodeRangeWithNodes(e,o,r,n)}d(n,Mle),t.insertNodesAfter(e,i.members[i.members.length-1],n)}(e,t,n,r):function(e,t,n,r){if(!(null==r?void 0:r.length))return void t.insertNodesAtEndOfFile(e,n,!1);for(const i of r){const r=_c(PX(e,i.start),(e=>en(CF,qE)(e)&&$(e.statements,(e=>n.some((t=>Rle(t,e)))))));if(r){const i=r.statements.find((e=>n.some((t=>Rle(t,e)))));if(i){const o=x(r.statements,(e=>n.some((t=>Rle(t,e)))));return d(n,Mle),void t.replaceNodeRangeWithNodes(e,i,o,n)}}}let i=e.statements;for(const t of r){const n=_c(PX(e,t.start),CF);if(n){i=n.statements;break}}d(n,Mle),t.insertNodesAfter(e,i[i.length-1],n)}(e,t,n,r)}function Rle(e,t){var n,r,i,o,a,s;return e.kind===t.kind&&(176===e.kind?e.kind===t.kind:kc(e)&&kc(t)?e.name.getText()===t.name.getText():FF(e)&&FF(t)||PF(e)&&PF(t)?e.expression.getText()===t.expression.getText():AF(e)&&AF(t)?(null==(n=e.initializer)?void 0:n.getText())===(null==(r=t.initializer)?void 0:r.getText())&&(null==(i=e.incrementor)?void 0:i.getText())===(null==(o=t.incrementor)?void 0:o.getText())&&(null==(a=e.condition)?void 0:a.getText())===(null==(s=t.condition)?void 0:s.getText()):X_(e)&&X_(t)?e.expression.getText()===t.expression.getText()&&e.initializer.getText()===t.initializer.getText():JF(e)&&JF(t)?e.label.getText()===t.label.getText():e.getText()===t.getText())}function Mle(e){Ble(e),e.parent=void 0}function Ble(e){e.pos=-1,e.end=-1,e.forEachChild(Ble)}i(Ole,{mapCode:()=>Lle});var Jle={};function zle(e,t,n,r,i,o){const a=Tue.ChangeTracker.fromContext({host:n,formatContext:t,preferences:i}),s="SortAndCombine"===o||"All"===o,c=s,l="RemoveUnused"===o||"All"===o,_=e.statements.filter(nE),d=Ule(e,_),{comparersToTest:p,typeOrdersToTest:f}=qle(i),m=p[0],g={moduleSpecifierComparer:"boolean"==typeof i.organizeImportsIgnoreCase?m:void 0,namedImportComparer:"boolean"==typeof i.organizeImportsIgnoreCase?m:void 0,typeOrder:i.organizeImportsTypeOrder};if("boolean"!=typeof i.organizeImportsIgnoreCase&&({comparer:g.moduleSpecifierComparer}=t_e(d,p)),!g.typeOrder||"boolean"!=typeof i.organizeImportsIgnoreCase){const e=n_e(_,p,f);if(e){const{namedImportComparer:t,typeOrder:n}=e;g.namedImportComparer=g.namedImportComparer??t,g.typeOrder=g.typeOrder??n}}d.forEach((e=>y(e,g))),"RemoveUnused"!==o&&function(e){const t=[],n=e.statements,r=u(n);let i=0,o=0;for(;iUle(e,t)))}(e).forEach((e=>v(e,g.namedImportComparer)));for(const t of e.statements.filter(ap))t.body&&(Ule(e,t.body.statements.filter(nE)).forEach((e=>y(e,g))),"RemoveUnused"!==o&&v(t.body.statements.filter(fE),g.namedImportComparer));return a.getChanges();function h(r,i){if(0===u(r))return;nw(r[0],1024);const o=c?Je(r,(e=>Wle(e.moduleSpecifier))):[r],l=O(s?_e(o,((e,t)=>Qle(e[0].moduleSpecifier,t[0].moduleSpecifier,g.moduleSpecifierComparer??m))):o,(e=>Wle(e[0].moduleSpecifier)||void 0===e[0].moduleSpecifier?i(e):e));if(0===l.length)a.deleteNodes(e,r,{leadingTriviaOption:Tue.LeadingTriviaOption.Exclude,trailingTriviaOption:Tue.TrailingTriviaOption.Include},!0);else{const i={leadingTriviaOption:Tue.LeadingTriviaOption.Exclude,trailingTriviaOption:Tue.TrailingTriviaOption.Include,suffix:kY(n,t.options)};a.replaceNodeWithNodes(e,r[0],l,i);const o=a.nodeHasTrailingComment(e,r[0],i);a.deleteNodes(e,r.slice(1),{trailingTriviaOption:Tue.TrailingTriviaOption.Include},o)}}function y(t,n){const i=n.moduleSpecifierComparer??m,o=n.namedImportComparer??m,a=l_e({organizeImportsTypeOrder:n.typeOrder??"last"},o);h(t,(t=>(l&&(t=function(e,t,n){const r=n.getTypeChecker(),i=n.getCompilerOptions(),o=r.getJsxNamespace(t),a=r.getJsxFragmentFactory(t),s=!!(2&t.transformFlags),c=[];for(const n of e){const{importClause:e,moduleSpecifier:r}=n;if(!e){c.push(n);continue}let{name:i,namedBindings:o}=e;if(i&&!l(i)&&(i=void 0),o)if(lE(o))l(o.name)||(o=void 0);else{const e=o.elements.filter((e=>l(e.name)));e.lengthp_e(e,t,i)))),t)))}function v(e,t){const n=l_e(i,t);h(e,(e=>Kle(e,n)))}}function qle(e){return{comparersToTest:"boolean"==typeof e.organizeImportsIgnoreCase?[s_e(e,e.organizeImportsIgnoreCase)]:[s_e(e,!0),s_e(e,!1)],typeOrdersToTest:e.organizeImportsTypeOrder?[e.organizeImportsTypeOrder]:["last","inline","first"]}}function Ule(e,t){const n=ms(e.languageVersion,!1,e.languageVariant),r=[];let i=0;for(const o of t)r[i]&&Vle(e,o,n)&&i++,r[i]||(r[i]=[]),r[i].push(o);return r}function Vle(e,t,n){const r=t.getFullStart(),i=t.getStart();n.setText(e.text,r,i-r);let o=0;for(;n.getTokenStart()=2))return!0;return!1}function Wle(e){return void 0!==e&&Lu(e)?e.text:void 0}function $le(e){let t;const n={defaultImports:[],namespaceImports:[],namedImports:[]},r={defaultImports:[],namespaceImports:[],namedImports:[]};for(const i of e){if(void 0===i.importClause){t=t||i;continue}const e=i.importClause.isTypeOnly?n:r,{name:o,namedBindings:a}=i.importClause;o&&e.defaultImports.push(i),a&&(lE(a)?e.namespaceImports.push(i):e.namedImports.push(i))}return{importWithoutClause:t,typeOnlyImports:n,regularImports:r}}function Hle(e,t,n,r){if(0===e.length)return e;const i=ze(e,(e=>{if(e.attributes){let t=e.attributes.token+" ";for(const n of _e(e.attributes.elements,((e,t)=>Ct(e.name.text,t.name.text))))t+=n.name.text+":",t+=Lu(n.value)?`"${n.value.text}"`:n.value.getText()+" ";return t}return""})),o=[];for(const e in i){const a=i[e],{importWithoutClause:s,typeOnlyImports:c,regularImports:_}=$le(a);s&&o.push(s);for(const e of[_,c]){const i=e===c,{defaultImports:a,namespaceImports:s,namedImports:_}=e;if(!i&&1===a.length&&1===s.length&&0===_.length){const e=a[0];o.push(Gle(e,e.importClause.name,s[0].importClause.namedBindings));continue}const u=_e(s,((e,n)=>t(e.importClause.namedBindings.name.text,n.importClause.namedBindings.name.text)));for(const e of u)o.push(Gle(e,void 0,e.importClause.namedBindings));const d=fe(a),p=fe(_),f=d??p;if(!f)continue;let m;const g=[];if(1===a.length)m=a[0].importClause.name;else for(const e of a)g.push(XC.createImportSpecifier(!1,XC.createIdentifier("default"),e.importClause.name));g.push(...e_e(_));const h=XC.createNodeArray(_e(g,n),null==p?void 0:p.importClause.namedBindings.elements.hasTrailingComma),y=0===h.length?m?void 0:XC.createNamedImports(l):p?XC.updateNamedImports(p.importClause.namedBindings,h):XC.createNamedImports(h);r&&y&&(null==p?void 0:p.importClause.namedBindings)&&!Rb(p.importClause.namedBindings,r)&&nw(y,2),i&&m&&y?(o.push(Gle(f,m,void 0)),o.push(Gle(p??f,void 0,y))):o.push(Gle(f,m,y))}}return o}function Kle(e,t){if(0===e.length)return e;const{exportWithoutClause:n,namedExports:r,typeOnlyExports:i}=function(e){let t;const n=[],r=[];for(const i of e)void 0===i.exportClause?t=t||i:i.isTypeOnly?r.push(i):n.push(i);return{exportWithoutClause:t,namedExports:n,typeOnlyExports:r}}(e),o=[];n&&o.push(n);for(const e of[r,i]){if(0===e.length)continue;const n=[];n.push(...O(e,(e=>e.exportClause&&mE(e.exportClause)?e.exportClause.elements:l)));const r=_e(n,t),i=e[0];o.push(XC.updateExportDeclaration(i,i.modifiers,i.isTypeOnly,i.exportClause&&(mE(i.exportClause)?XC.updateNamedExports(i.exportClause,r):XC.updateNamespaceExport(i.exportClause,i.exportClause.name)),i.moduleSpecifier,i.attributes))}return o}function Gle(e,t,n){return XC.updateImportDeclaration(e,e.modifiers,XC.updateImportClause(e.importClause,e.importClause.isTypeOnly,t,n),e.moduleSpecifier,e.attributes)}function Xle(e,t,n,r){switch(null==r?void 0:r.organizeImportsTypeOrder){case"first":return Ot(t.isTypeOnly,e.isTypeOnly)||n(e.name.text,t.name.text);case"inline":return n(e.name.text,t.name.text);default:return Ot(e.isTypeOnly,t.isTypeOnly)||n(e.name.text,t.name.text)}}function Qle(e,t,n){const r=void 0===e?void 0:Wle(e),i=void 0===t?void 0:Wle(t);return Ot(void 0===r,void 0===i)||Ot(Ts(r),Ts(i))||n(r,i)}function Yle(e){var t;switch(e.kind){case 271:return null==(t=tt(e.moduleReference,xE))?void 0:t.expression;case 272:return e.moduleSpecifier;case 243:return e.declarationList.declarations[0].initializer.arguments[0]}}function Zle(e,t){const n=TN(t)&&t.text;return Ze(n)&&$(e.moduleAugmentations,(e=>TN(e)&&e.text===n))}function e_e(e){return O(e,(e=>E(function(e){var t;return(null==(t=e.importClause)?void 0:t.namedBindings)&&uE(e.importClause.namedBindings)?e.importClause.namedBindings.elements:void 0}(e),(e=>e.name&&e.propertyName&&Wd(e.name)===Wd(e.propertyName)?XC.updateImportSpecifier(e,e.isTypeOnly,void 0,e.name):e))))}function t_e(e,t){const n=[];return e.forEach((e=>{n.push(e.map((e=>Wle(Yle(e))||"")))})),i_e(n,t)}function n_e(e,t,n){let r=!1;const i=e.filter((e=>{var t,n;const i=null==(n=tt(null==(t=e.importClause)?void 0:t.namedBindings,uE))?void 0:n.elements;return!!(null==i?void 0:i.length)&&(!r&&i.some((e=>e.isTypeOnly))&&i.some((e=>!e.isTypeOnly))&&(r=!0),!0)}));if(0===i.length)return;const o=i.map((e=>{var t,n;return null==(n=tt(null==(t=e.importClause)?void 0:t.namedBindings,uE))?void 0:n.elements})).filter((e=>void 0!==e));if(!r||0===n.length){const e=i_e(o.map((e=>e.map((e=>e.name.text)))),t);return{namedImportComparer:e.comparer,typeOrder:1===n.length?n[0]:void 0,isSorted:e.isSorted}}const a={first:1/0,last:1/0,inline:1/0},s={first:t[0],last:t[0],inline:t[0]};for(const e of t){const t={first:0,last:0,inline:0};for(const r of o)for(const i of n)t[i]=(t[i]??0)+r_e(r,((t,n)=>Xle(t,n,e,{organizeImportsTypeOrder:i})));for(const r of n){const n=r;t[n]0&&n++;return n}function i_e(e,t){let n,r=1/0;for(const i of t){let t=0;for(const n of e)n.length<=1||(t+=r_e(n,i));tXle(t,r,n,e)}function __e(e,t,n){const{comparersToTest:r,typeOrdersToTest:i}=qle(t),o=n_e([e],r,i);let a,s=l_e(t,r[0]);if("boolean"!=typeof t.organizeImportsIgnoreCase||!t.organizeImportsTypeOrder)if(o){const{namedImportComparer:e,typeOrder:t,isSorted:n}=o;a=n,s=l_e({organizeImportsTypeOrder:t},e)}else if(n){const e=n_e(n.statements.filter(nE),r,i);if(e){const{namedImportComparer:t,typeOrder:n,isSorted:r}=e;a=r,s=l_e({organizeImportsTypeOrder:n},t)}}return{specifierComparer:s,isSorted:a}}function u_e(e,t,n){const r=Te(e,t,st,((e,t)=>p_e(e,t,n)));return r<0?~r:r}function d_e(e,t,n){const r=Te(e,t,st,n);return r<0?~r:r}function p_e(e,t,n){return Qle(Yle(e),Yle(t),n)||function(e,t){return vt(o_e(e),o_e(t))}(e,t)}function f_e(e,t,n,r){const i=a_e(t);return Hle(e,i,l_e({organizeImportsTypeOrder:null==r?void 0:r.organizeImportsTypeOrder},i),n)}function m_e(e,t,n){return Kle(e,((e,r)=>Xle(e,r,a_e(t),{organizeImportsTypeOrder:(null==n?void 0:n.organizeImportsTypeOrder)??"last"})))}function g_e(e,t,n){return Qle(e,t,a_e(!!n))}i(Jle,{compareImportsOrRequireStatements:()=>p_e,compareModuleSpecifiers:()=>g_e,getImportDeclarationInsertionIndex:()=>u_e,getImportSpecifierInsertionIndex:()=>d_e,getNamedImportSpecifierComparerWithDetection:()=>__e,getOrganizeImportsStringComparerWithDetection:()=>c_e,organizeImports:()=>zle,testCoalesceExports:()=>m_e,testCoalesceImports:()=>f_e});var h_e={};function y_e(e,t){const n=[];return function(e,t,n){let r=40,i=0;const o=[...e.statements,e.endOfFileToken],a=o.length;for(;i...")}(e);case 288:return function(e){const n=Ws(e.openingFragment.getStart(t),e.closingFragment.getEnd());return C_e(n,"code",n,!1,"<>...")}(e);case 285:case 286:return function(e){if(0!==e.properties.length)return S_e(e.getStart(t),e.getEnd(),"code")}(e.attributes);case 228:case 15:return function(e){if(15!==e.kind||0!==e.text.length)return S_e(e.getStart(t),e.getEnd(),"code")}(e);case 207:return i(e,!1,!VD(e.parent),23);case 219:return function(e){if(CF(e.body)||ZD(e.body)||Wb(e.body.getFullStart(),e.body.getEnd(),t))return;return C_e(Ws(e.body.getFullStart(),e.body.getEnd()),"code",pQ(e))}(e);case 213:return function(e){if(!e.arguments.length)return;const n=yX(e,21,t),r=yX(e,22,t);return n&&r&&!Wb(n.pos,r.pos,t)?T_e(n,r,e,t,!1,!0):void 0}(e);case 217:return function(e){if(Wb(e.getStart(),e.getEnd(),t))return;return C_e(Ws(e.getStart(),e.getEnd()),"code",pQ(e))}(e);case 275:case 279:case 300:return function(e){if(!e.elements.length)return;const n=yX(e,19,t),r=yX(e,20,t);return n&&r&&!Wb(n.pos,r.pos,t)?T_e(n,r,e,t,!1,!1):void 0}(e)}var n;function r(e,t=19){return i(e,!1,!WD(e.parent)&&!GD(e.parent),t)}function i(n,r=!1,i=!0,o=19,a=(19===o?20:24)){const s=yX(e,o,t),c=yX(e,a,t);return s&&c&&T_e(s,c,n,t,r,i)}}(i,e);a&&n.push(a),r--,GD(i)?(r++,s(i.expression),r--,i.arguments.forEach(s),null==(o=i.typeArguments)||o.forEach(s)):FF(i)&&i.elseStatement&&FF(i.elseStatement)?(s(i.expression),s(i.thenStatement),r++,s(i.elseStatement),r--):i.forEachChild(s),r++}}(e,t,n),function(e,t){const n=[],r=e.getLineStarts();for(const i of r){const r=e.getLineEndOfPosition(i),o=b_e(e.text.substring(i,r));if(o&&!XX(e,i))if(o.isStart){const t=Ws(e.text.indexOf("//",i),r);n.push(C_e(t,"region",t,!1,o.name||"#region"))}else{const e=n.pop();e&&(e.textSpan.length=r-e.textSpan.start,e.hintSpan.length=r-e.textSpan.start,t.push(e))}}}(e,n),n.sort(((e,t)=>e.textSpan.start-t.textSpan.start)),n}i(h_e,{collectElements:()=>y_e});var v_e=/^#(end)?region(.*)\r?$/;function b_e(e){if(!Gt(e=e.trimStart(),"//"))return null;e=e.slice(2).trim();const t=v_e.exec(e);return t?{isStart:!t[1],name:t[2].trim()}:void 0}function x_e(e,t,n,r){const i=ls(t.text,e);if(!i)return;let o=-1,a=-1,s=0;const c=t.getFullText();for(const{kind:e,pos:t,end:_}of i)switch(n.throwIfCancellationRequested(),e){case 2:if(b_e(c.slice(t,_))){l(),s=0;break}0===s&&(o=t),a=_,s++;break;case 3:l(),r.push(S_e(t,_,"comment")),s=0;break;default:un.assertNever(e)}function l(){s>1&&r.push(S_e(o,a,"comment"))}l()}function k_e(e,t,n,r){CN(e)||x_e(e.pos,t,n,r)}function S_e(e,t,n){return C_e(Ws(e,t),n)}function T_e(e,t,n,r,i=!1,o=!0){return C_e(Ws(o?e.getFullStart():e.getStart(r),t.getEnd()),"code",pQ(n,r),i)}function C_e(e,t,n=e,r=!1,i="..."){return{textSpan:e,kind:t,hintSpan:n,bannerText:i,autoCollapse:r}}var w_e={};function N_e(e,t,n,r){const i=DX(FX(t,n));if(A_e(i)){const n=function(e,t,n,r,i){const o=t.getSymbolAtLocation(e);if(!o){if(Lu(e)){const r=SX(e,t);if(r&&(128&r.flags||1048576&r.flags&&v(r.types,(e=>!!(128&e.flags)))))return F_e(e.text,e.text,"string","",e,n)}else if($G(e)){const t=Kd(e);return F_e(t,t,"label","",e,n)}return}const{declarations:a}=o;if(!a||0===a.length)return;if(a.some((e=>function(e,t){const n=t.getSourceFile();return e.isSourceFileDefaultLibrary(n)&&ko(n.fileName,".d.ts")}(r,e))))return E_e(la.You_cannot_rename_elements_that_are_defined_in_the_standard_TypeScript_library);if(zN(e)&&"default"===e.escapedText&&o.parent&&1536&o.parent.flags)return;if(Lu(e)&&vg(e))return i.allowRenameOfImportPath?function(e,t,n){if(!Ts(e.text))return E_e(la.You_cannot_rename_a_module_via_a_global_import);const r=n.declarations&&b(n.declarations,qE);if(!r)return;const i=Rt(e.text,"/index")||Rt(e.text,"/index.js")?void 0:Bt(zS(r.fileName),"/index"),o=void 0===i?r.fileName:i,a=void 0===i?"module":"directory",s=e.text.lastIndexOf("/")+1,c=Vs(e.getStart(t)+1+s,e.text.length-s);return{canRename:!0,fileToRename:o,kind:a,displayName:o,fullDisplayName:e.text,kindModifiers:"",triggerSpan:c}}(e,n,o):void 0;const s=function(e,t,n,r){if(!r.providePrefixAndSuffixTextForRename&&2097152&t.flags){const e=t.declarations&&b(t.declarations,(e=>dE(e)));e&&!e.propertyName&&(t=n.getAliasedSymbol(t))}const{declarations:i}=t;if(!i)return;const o=D_e(e.path);if(void 0===o)return $(i,(e=>wZ(e.getSourceFile().path)))?la.You_cannot_rename_elements_that_are_defined_in_a_node_modules_folder:void 0;for(const e of i){const t=D_e(e.getSourceFile().path);if(t){const e=Math.min(o.length,t.length);for(let n=0;n<=e;n++)if(0!==Ct(o[n],t[n]))return la.You_cannot_rename_elements_that_are_defined_in_another_node_modules_folder}}}(n,o,t,i);if(s)return E_e(s);const c=mue.getSymbolKind(t,o,e),l=DY(e)||Lh(e)&&167===e.parent.kind?Dy(zh(e)):void 0;return F_e(l||t.symbolToString(o),l||t.getFullyQualifiedName(o),c,mue.getSymbolModifiers(t,o),e,n)}(i,e.getTypeChecker(),t,e,r);if(n)return n}return E_e(la.You_cannot_rename_this_element)}function D_e(e){const t=Ao(e),n=t.lastIndexOf("node_modules");if(-1!==n)return t.slice(0,n+2)}function F_e(e,t,n,r,i,o){return{canRename:!0,fileToRename:void 0,kind:n,displayName:e,fullDisplayName:t,kindModifiers:r,triggerSpan:P_e(i,o)}}function E_e(e){return{canRename:!1,localizedErrorMessage:Ux(e)}}function P_e(e,t){let n=e.getStart(t),r=e.getWidth(t);return Lu(e)&&(n+=1,r-=2),Vs(n,r)}function A_e(e){switch(e.kind){case 80:case 81:case 11:case 15:case 110:return!0;case 9:return ZG(e);default:return!1}}i(w_e,{getRenameInfo:()=>N_e,nodeIsEligibleForRename:()=>A_e});var I_e={};function O_e(e,t,n,r,i){const o=e.getTypeChecker(),a=OX(t,n);if(!a)return;const s=!!r&&"characterTyped"===r.kind;if(s&&(JX(t,n,a)||XX(t,n)))return;const c=!!r&&"invoked"===r.kind,l=function(e,t,n,r,i){for(let o=e;!qE(o)&&(i||!CF(o));o=o.parent){un.assert(Gb(o.parent,o),"Not a subspan",(()=>`Child: ${un.formatSyntaxKind(o.kind)}, parent: ${un.formatSyntaxKind(o.parent.kind)}`));const e=B_e(o,t,n,r);if(e)return e}}(a,n,t,o,c);if(!l)return;i.throwIfCancellationRequested();const _=function({invocation:e,argumentCount:t},n,r,i,o){switch(e.kind){case 0:{if(o&&!function(e,t,n){if(!L_(t))return!1;const r=t.getChildren(n);switch(e.kind){case 21:return T(r,e);case 28:{const t=vX(e);return!!t&&T(r,t)}case 30:return L_e(e,n,t.expression);default:return!1}}(i,e.node,r))return;const a=[],s=n.getResolvedSignatureForSignatureHelp(e.node,a,t);return 0===a.length?void 0:{kind:0,candidates:a,resolvedSignature:s}}case 1:{const{called:a}=e;if(o&&!L_e(i,r,zN(a)?a.parent:a))return;const s=KX(a,t,n);if(0!==s.length)return{kind:0,candidates:s,resolvedSignature:ge(s)};const c=n.getSymbolAtLocation(a);return c&&{kind:1,symbol:c}}case 2:return{kind:0,candidates:[e.signature],resolvedSignature:e.signature};default:return un.assertNever(e)}}(l,o,t,a,s);return i.throwIfCancellationRequested(),_?o.runWithCancellationToken(i,(e=>0===_.kind?Q_e(_.candidates,_.resolvedSignature,l,t,e):function(e,{argumentCount:t,argumentsSpan:n,invocation:r,argumentIndex:i},o,a){const s=a.getLocalTypeParametersOfClassOrInterfaceOrTypeAlias(e);if(!s)return;return{items:[Y_e(e,s,a,G_e(r),o)],applicableSpan:n,selectedItemIndex:0,argumentIndex:i,argumentCount:t}}(_.symbol,l,t,e))):Dm(t)?function(e,t,n){if(2===e.invocation.kind)return;const r=K_e(e.invocation),i=HD(r)?r.name.text:void 0,o=t.getTypeChecker();return void 0===i?void 0:f(t.getSourceFiles(),(t=>f(t.getNamedDeclarations().get(i),(r=>{const i=r.symbol&&o.getTypeOfSymbolAtLocation(r.symbol,r),a=i&&i.getCallSignatures();if(a&&a.length)return o.runWithCancellationToken(n,(n=>Q_e(a,a[0],e,t,n,!0)))}))))}(l,e,i):void 0}function L_e(e,t,n){const r=e.getFullStart();let i=e.parent;for(;i;){const e=jX(r,t,i,!0);if(e)return Gb(n,e);i=i.parent}return un.fail("Could not find preceding token")}function j_e(e,t,n,r){const i=M_e(e,t,n,r);return!i||i.isTypeParameterList||0!==i.invocation.kind?void 0:{invocation:i.invocation.node,argumentCount:i.argumentCount,argumentIndex:i.argumentIndex}}function R_e(e,t,n,r){const i=function(e,t,n){if(30===e.kind||21===e.kind)return{list:H_e(e.parent,e,t),argumentIndex:0};{const t=vX(e);return t&&{list:t,argumentIndex:U_e(n,t,e)}}}(e,n,r);if(!i)return;const{list:o,argumentIndex:a}=i,s=function(e,t){return V_e(e,t,void 0)}(r,o),c=function(e,t){const n=e.getFullStart();return Vs(n,Xa(t.text,e.getEnd(),!1)-n)}(o,n);return{list:o,argumentIndex:a,argumentCount:s,argumentsSpan:c}}function M_e(e,t,n,r){const{parent:i}=e;if(L_(i)){const t=i,o=R_e(e,0,n,r);if(!o)return;const{list:a,argumentIndex:s,argumentCount:c,argumentsSpan:l}=o;return{isTypeParameterList:!!i.typeArguments&&i.typeArguments.pos===a.pos,invocation:{kind:0,node:t},argumentsSpan:l,argumentIndex:s,argumentCount:c}}if(NN(e)&&QD(i))return oQ(e,t,n)?W_e(i,0,n):void 0;if(DN(e)&&215===i.parent.kind){const r=i,o=r.parent;return un.assert(228===r.kind),W_e(o,oQ(e,t,n)?0:1,n)}if(SF(i)&&QD(i.parent.parent)){const r=i,o=i.parent.parent;if(EN(e)&&!oQ(e,t,n))return;const a=function(e,t,n,r){return un.assert(n>=t.getStart(),"Assumed 'position' could not occur before node."),Ll(t)?oQ(t,n,r)?0:e+2:e+1}(r.parent.templateSpans.indexOf(r),e,t,n);return W_e(o,a,n)}if(vu(i)){const e=i.attributes.pos;return{isTypeParameterList:!1,invocation:{kind:0,node:i},argumentsSpan:Vs(e,Xa(n.text,i.attributes.end,!1)-e),argumentIndex:0,argumentCount:1}}{const t=GX(e,n);if(t){const{called:r,nTypeArguments:i}=t;return{isTypeParameterList:!0,invocation:{kind:1,called:r},argumentsSpan:Ws(r.getStart(n),e.end),argumentIndex:i,argumentCount:i+1}}return}}function B_e(e,t,n,r){return function(e,t,n,r){const i=function(e){switch(e.kind){case 21:case 28:return e;default:return _c(e.parent,(e=>!!oD(e)||!(VD(e)||qD(e)||UD(e))&&"quit"))}}(e);if(void 0===i)return;const o=function(e,t,n,r){const{parent:i}=e;switch(i.kind){case 217:case 174:case 218:case 219:const n=R_e(e,0,t,r);if(!n)return;const{argumentIndex:o,argumentCount:a,argumentsSpan:s}=n,c=_D(i)?r.getContextualTypeForObjectLiteralElement(i):r.getContextualType(i);return c&&{contextualType:c,argumentIndex:o,argumentCount:a,argumentsSpan:s};case 226:{const t=J_e(i),n=r.getContextualType(t),o=21===e.kind?0:z_e(i)-1,a=z_e(t);return n&&{contextualType:n,argumentIndex:o,argumentCount:a,argumentsSpan:pQ(i)}}default:return}}(i,n,0,r);if(void 0===o)return;const{contextualType:a,argumentIndex:s,argumentCount:c,argumentsSpan:l}=o,_=a.getNonNullableType(),u=_.symbol;if(void 0===u)return;const d=ye(_.getCallSignatures());var p;return void 0!==d?{isTypeParameterList:!1,invocation:{kind:2,signature:d,node:e,symbol:(p=u,"__type"===p.name&&f(p.declarations,(e=>{var t;return bD(e)?null==(t=tt(e.parent,ou))?void 0:t.symbol:void 0}))||p)},argumentsSpan:l,argumentIndex:s,argumentCount:c}:void 0}(e,0,n,r)||M_e(e,t,n,r)}function J_e(e){return cF(e.parent)?J_e(e.parent):e}function z_e(e){return cF(e.left)?z_e(e.left)+1:2}function q_e(e,t){const n=t.getTypeAtLocation(e.expression);if(t.isTupleType(n)){const{elementFlags:e,fixedLength:t}=n.target;if(0===t)return 0;const r=k(e,(e=>!(1&e)));return r<0?t:r}return 0}function U_e(e,t,n){return V_e(e,t,n)}function V_e(e,t,n){const r=t.getChildren();let i=0,o=!1;for(const t of r){if(n&&t===n)return o||28!==t.kind||i++,i;dF(t)?(i+=q_e(t,e),o=!0):28===t.kind?o?o=!1:i++:(i++,o=!0)}return n?i:r.length&&28===ve(r).kind?i+1:i}function W_e(e,t,n){const r=NN(e.template)?1:e.template.templateSpans.length+1;return 0!==t&&un.assertLessThan(t,r),{isTypeParameterList:!1,invocation:{kind:0,node:e},argumentsSpan:$_e(e,n),argumentIndex:t,argumentCount:r}}function $_e(e,t){const n=e.template,r=n.getStart();let i=n.getEnd();return 228===n.kind&&0===ve(n.templateSpans).literal.getFullWidth()&&(i=Xa(t.text,i,!1)),Vs(r,i-r)}function H_e(e,t,n){const r=e.getChildren(n),i=r.indexOf(t);return un.assert(i>=0&&r.length>i+1),r[i+1]}function K_e(e){return 0===e.kind?_m(e.node):e.called}function G_e(e){return 0===e.kind?e.node:1===e.kind?e.called:e.node}i(I_e,{getArgumentInfoForCompletions:()=>j_e,getSignatureHelpItems:()=>O_e});var X_e=70246400;function Q_e(e,t,{isTypeParameterList:n,argumentCount:r,argumentsSpan:i,invocation:o,argumentIndex:a},s,c,_){var u;const d=G_e(o),p=2===o.kind?o.symbol:c.getSymbolAtLocation(K_e(o))||_&&(null==(u=t.declaration)?void 0:u.symbol),f=p?wY(c,p,_?s:void 0,void 0):l,m=E(e,(e=>function(e,t,n,r,i,o){return E((n?tue:nue)(e,r,i,o),(({isVariadic:n,parameters:o,prefix:a,suffix:s})=>{const c=[...t,...a],l=[...s,...eue(e,i,r)],_=e.getDocumentationComment(r),u=e.getJsDocTags();return{isVariadic:n,prefixDisplayParts:c,suffixDisplayParts:l,separatorDisplayParts:Z_e,parameters:o,documentation:_,tags:u}}))}(e,f,n,c,d,s)));let g=0,h=0;for(let n=0;n1)){let e=0;for(const t of i){if(t.isVariadic||t.parameters.length>=r){g=h+e;break}e++}}h+=i.length}un.assert(-1!==g);const y={items:L(m,st),applicableSpan:i,selectedItemIndex:g,argumentIndex:a,argumentCount:r},v=y.items[g];if(v.isVariadic){const e=k(v.parameters,(e=>!!e.isRest));-1rue(e,n,r,i,a))),c=e.getDocumentationComment(n),l=e.getJsDocTags(n);return{isVariadic:!1,prefixDisplayParts:[...o,_Y(30)],suffixDisplayParts:[_Y(32)],separatorDisplayParts:Z_e,parameters:s,documentation:c,tags:l}}var Z_e=[_Y(28),cY()];function eue(e,t,n){return TY((r=>{r.writePunctuation(":"),r.writeSpace(" ");const i=n.getTypePredicateOfSignature(e);i?n.writeTypePredicate(i,t,void 0,r):n.writeType(n.getReturnTypeOfSignature(e),t,void 0,r)}))}function tue(e,t,n,r){const i=(e.target||e).typeParameters,o=eU(),a=(i||l).map((e=>rue(e,t,n,r,o))),s=e.thisParameter?[t.symbolToParameterDeclaration(e.thisParameter,n,X_e)]:[];return t.getExpandedParameters(e).map((e=>{const i=XC.createNodeArray([...s,...E(e,(e=>t.symbolToParameterDeclaration(e,n,X_e)))]),c=TY((e=>{o.writeList(2576,i,r,e)}));return{isVariadic:!1,parameters:a,prefix:[_Y(30)],suffix:[_Y(32),...c]}}))}function nue(e,t,n,r){const i=eU(),o=TY((o=>{if(e.typeParameters&&e.typeParameters.length){const a=XC.createNodeArray(e.typeParameters.map((e=>t.typeParameterToDeclaration(e,n,X_e))));i.writeList(53776,a,r,o)}})),a=t.getExpandedParameters(e),s=t.hasEffectiveRestParameter(e)?1===a.length?e=>!0:e=>{var t;return!!(e.length&&32768&(null==(t=tt(e[e.length-1],Ku))?void 0:t.links.checkFlags))}:e=>!1;return a.map((e=>({isVariadic:s(e),parameters:e.map((e=>function(e,t,n,r,i){const o=TY((o=>{const a=t.symbolToParameterDeclaration(e,n,X_e);i.writeNode(4,a,r,o)})),a=t.isOptionalParameter(e.valueDeclaration),s=Ku(e)&&!!(32768&e.links.checkFlags);return{name:e.name,documentation:e.getDocumentationComment(t),displayParts:o,isOptional:a,isRest:s}}(e,t,n,r,i))),prefix:[...o,_Y(21)],suffix:[_Y(22)]})))}function rue(e,t,n,r,i){const o=TY((o=>{const a=t.typeParameterToDeclaration(e,n,X_e);i.writeNode(4,a,r,o)}));return{name:e.symbol.name,documentation:e.symbol.getDocumentationComment(t),displayParts:o,isOptional:!1,isRest:!1}}var iue={};function oue(e,t){var n,r;let i={textSpan:Ws(t.getFullStart(),t.getEnd())},o=t;e:for(;;){const i=cue(o);if(!i.length)break;for(let c=0;ce)break e;const d=be(_s(t.text,_.end));if(d&&2===d.kind&&s(d.pos,d.end),aue(t,e,_)){if(Y_(_)&&i_(o)&&!Wb(_.getStart(t),_.getEnd(),t)&&a(_.getStart(t),_.getEnd()),CF(_)||SF(_)||DN(_)||EN(_)||l&&DN(l)||WF(_)&&wF(o)||AP(_)&&WF(o)||VF(_)&&AP(o)&&1===i.length||VE(_)||aP(_)||oP(_)){o=_;break}SF(o)&&u&&jl(u)&&a(_.getFullStart()-2,u.getStart()+1);const e=AP(_)&&due(l)&&pue(u)&&!Wb(l.getStart(),u.getStart(),t);let s=e?l.getEnd():_.getStart();const c=e?u.getStart():fue(t,_);if(Nu(_)&&(null==(n=_.jsDoc)?void 0:n.length)&&a(ge(_.jsDoc).getStart(),c),AP(_)){const e=_.getChildren()[0];e&&Nu(e)&&(null==(r=e.jsDoc)?void 0:r.length)&&e.getStart()!==_.pos&&(s=Math.min(s,ge(e.jsDoc).getStart()))}a(s,c),(TN(_)||j_(_))&&a(s+1,c-1),o=_;break}if(c===i.length-1)break e}}return i;function a(t,n){if(t!==n){const r=Ws(t,n);(!i||!QQ(r,i.textSpan)&&Js(r,e))&&(i={textSpan:r,...i&&{parent:i}})}}function s(e,n){a(e,n);let r=e;for(;47===t.text.charCodeAt(r);)r++;a(r,n)}}function aue(e,t,n){return un.assert(n.pos<=t),toue});var sue=en(nE,tE);function cue(e){var t;if(qE(e))return lue(e.getChildAt(0).getChildren(),sue);if(RD(e)){const[t,...n]=e.getChildren(),r=un.checkDefined(n.pop());un.assertEqual(t.kind,19),un.assertEqual(r.kind,20);const i=lue(n,(t=>t===e.readonlyToken||148===t.kind||t===e.questionToken||58===t.kind));return[t,uue(_ue(lue(i,(({kind:e})=>23===e||168===e||24===e)),(({kind:e})=>59===e))),r]}if(sD(e)){const n=lue(e.getChildren(),(t=>t===e.name||T(e.modifiers,t))),r=320===(null==(t=n[0])?void 0:t.kind)?n[0]:void 0,i=_ue(r?n.slice(1):n,(({kind:e})=>59===e));return r?[r,uue(i)]:i}if(oD(e)){const t=lue(e.getChildren(),(t=>t===e.dotDotDotToken||t===e.name));return _ue(lue(t,(n=>n===t[0]||n===e.questionToken)),(({kind:e})=>64===e))}return VD(e)?_ue(e.getChildren(),(({kind:e})=>64===e)):e.getChildren()}function lue(e,t){const n=[];let r;for(const i of e)t(i)?(r=r||[],r.push(i)):(r&&(n.push(uue(r)),r=void 0),n.push(i));return r&&n.push(uue(r)),n}function _ue(e,t,n=!0){if(e.length<2)return e;const r=k(e,t);if(-1===r)return e;const i=e.slice(0,r),o=e[r],a=ve(e),s=n&&27===a.kind,c=e.slice(r+1,s?e.length-1:void 0),l=ne([i.length?uue(i):void 0,o,c.length?uue(c):void 0]);return s?l.concat(a):l}function uue(e){return un.assertGreaterThanOrEqual(e.length,1),ST(aI.createSyntaxList(e),e[0].pos,ve(e).end)}function due(e){const t=e&&e.kind;return 19===t||23===t||21===t||286===t}function pue(e){const t=e&&e.kind;return 20===t||24===t||22===t||287===t}function fue(e,t){switch(t.kind){case 341:case 338:case 348:case 346:case 343:return e.getLineEndOfPosition(t.getStart());default:return t.getEnd()}}var mue={};i(mue,{getSymbolDisplayPartsDocumentationAndSymbolKind:()=>kue,getSymbolKind:()=>hue,getSymbolModifiers:()=>bue});var gue=70246400;function hue(e,t,n){const r=yue(e,t,n);if(""!==r)return r;const i=ox(t);return 32&i?Wu(t,231)?"local class":"class":384&i?"enum":524288&i?"type":64&i?"interface":262144&i?"type parameter":8&i?"enum member":2097152&i?"alias":1536&i?"module":r}function yue(e,t,n){const r=e.getRootSymbols(t);if(1===r.length&&8192&ge(r).flags&&0!==e.getTypeOfSymbolAtLocation(t,n).getNonNullableType().getCallSignatures().length)return"method";if(e.isUndefinedSymbol(t))return"var";if(e.isArgumentsSymbol(t))return"local var";if(110===n.kind&&U_(n)||_v(n))return"parameter";const i=ox(t);if(3&i)return oY(t)?"parameter":t.valueDeclaration&&rf(t.valueDeclaration)?"const":t.valueDeclaration&&nf(t.valueDeclaration)?"using":t.valueDeclaration&&tf(t.valueDeclaration)?"await using":d(t.declarations,af)?"let":Sue(t)?"local var":"var";if(16&i)return Sue(t)?"local function":"function";if(32768&i)return"getter";if(65536&i)return"setter";if(8192&i)return"method";if(16384&i)return"constructor";if(131072&i)return"index";if(4&i){if(33554432&i&&6&t.links.checkFlags){const r=d(e.getRootSymbols(t),(e=>{if(98311&e.getFlags())return"property"}));return r||(e.getTypeOfSymbolAtLocation(t,n).getCallSignatures().length?"method":"property")}return"property"}return""}function vue(e){if(e.declarations&&e.declarations.length){const[t,...n]=e.declarations,r=ZX(t,u(n)&&JZ(t)&&$(n,(e=>!JZ(e)))?65536:0);if(r)return r.split(",")}return[]}function bue(e,t){if(!t)return"";const n=new Set(vue(t));if(2097152&t.flags){const r=e.getAliasedSymbol(t);r!==t&&d(vue(r),(e=>{n.add(e)}))}return 16777216&t.flags&&n.add("optional"),n.size>0?Oe(n.values()).join(","):""}function xue(e,t,n,r,i,o,a,s){var c;const _=[];let u=[],p=[];const m=ox(t);let g=1&a?yue(e,t,i):"",h=!1;const y=110===i.kind&&bm(i)||_v(i);let v,x,k=!1;if(110===i.kind&&!y)return{displayParts:[lY(110)],documentation:[],symbolKind:"primitive type",tags:void 0};if(""!==g||32&m||2097152&m){if("getter"===g||"setter"===g){const e=b(t.declarations,(e=>e.name===i));if(e)switch(e.kind){case 177:g="getter";break;case 178:g="setter";break;case 172:g="accessor";break;default:un.assertNever(e)}else g="property"}let n,a;if(o??(o=y?e.getTypeAtLocation(i):e.getTypeOfSymbolAtLocation(t,i)),i.parent&&211===i.parent.kind){const e=i.parent.name;(e===i||e&&0===e.getFullWidth())&&(i=i.parent)}if(L_(i)?a=i:(PG(i)||AG(i)||i.parent&&(vu(i.parent)||QD(i.parent))&&n_(t.valueDeclaration))&&(a=i.parent),a){n=e.getResolvedSignature(a);const i=214===a.kind||GD(a)&&108===a.expression.kind,s=i?o.getConstructSignatures():o.getCallSignatures();if(!n||T(s,n.target)||T(s,n)||(n=s.length?s[0]:void 0),n){switch(i&&32&m?(g="constructor",F(o.symbol,g)):2097152&m?(g="alias",E(g),_.push(cY()),i&&(4&n.flags&&(_.push(lY(128)),_.push(cY())),_.push(lY(105)),_.push(cY())),D(t)):F(t,g),g){case"JSX attribute":case"property":case"var":case"const":case"let":case"parameter":case"local var":_.push(_Y(59)),_.push(cY()),16&mx(o)||!o.symbol||(se(_,wY(e,o.symbol,r,void 0,5)),_.push(SY())),i&&(4&n.flags&&(_.push(lY(128)),_.push(cY())),_.push(lY(105)),_.push(cY())),P(n,s,262144);break;default:P(n,s)}h=!0,k=s.length>1}}else if(YG(i)&&!(98304&m)||137===i.kind&&176===i.parent.kind){const r=i.parent;if(t.declarations&&b(t.declarations,(e=>e===(137===i.kind?r.parent:r)))){const i=176===r.kind?o.getNonNullableType().getConstructSignatures():o.getNonNullableType().getCallSignatures();n=e.isImplementationOfOverload(r)?i[0]:e.getSignatureFromDeclaration(r),176===r.kind?(g="constructor",F(o.symbol,g)):F(179!==r.kind||2048&o.symbol.flags||4096&o.symbol.flags?t:o.symbol,g),n&&P(n,i),h=!0,k=i.length>1}}}if(32&m&&!h&&!y&&(w(),Wu(t,231)?E("local class"):_.push(lY(86)),_.push(cY()),D(t),A(t,n)),64&m&&2&a&&(C(),_.push(lY(120)),_.push(cY()),D(t),A(t,n)),524288&m&&2&a&&(C(),_.push(lY(156)),_.push(cY()),D(t),A(t,n),_.push(cY()),_.push(uY(64)),_.push(cY()),se(_,CY(e,i.parent&&xl(i.parent)?e.getTypeAtLocation(i.parent):e.getDeclaredTypeOfSymbol(t),r,8388608))),384&m&&(C(),$(t.declarations,(e=>XF(e)&&Zp(e)))&&(_.push(lY(87)),_.push(cY())),_.push(lY(94)),_.push(cY()),D(t)),1536&m&&!y){C();const e=Wu(t,267),n=e&&e.name&&80===e.name.kind;_.push(lY(n?145:144)),_.push(cY()),D(t)}if(262144&m&&2&a)if(C(),_.push(_Y(21)),_.push(mY("type parameter")),_.push(_Y(22)),_.push(cY()),D(t),t.parent)N(),D(t.parent,r),A(t.parent,r);else{const r=Wu(t,168);if(void 0===r)return un.fail();const i=r.parent;if(i)if(n_(i)){N();const t=e.getSignatureFromDeclaration(i);180===i.kind?(_.push(lY(105)),_.push(cY())):179!==i.kind&&i.name&&D(i.symbol),se(_,NY(e,t,n,32))}else GF(i)&&(N(),_.push(lY(156)),_.push(cY()),D(i.symbol),A(i.symbol,n))}if(8&m){g="enum member",F(t,"enum member");const n=null==(c=t.declarations)?void 0:c[0];if(306===(null==n?void 0:n.kind)){const t=e.getConstantValue(n);void 0!==t&&(_.push(cY()),_.push(uY(64)),_.push(cY()),_.push(sY(np(t),"number"==typeof t?7:8)))}}if(2097152&t.flags){if(C(),!h||0===u.length&&0===p.length){const n=e.getAliasedSymbol(t);if(n!==t&&n.declarations&&n.declarations.length>0){const i=n.declarations[0],s=Tc(i);if(s&&!h){const c=sp(i)&&wv(i,128),l="default"!==t.name&&!c,u=xue(e,n,hd(i),r,s,o,a,l?t:n);_.push(...u.displayParts),_.push(SY()),v=u.documentation,x=u.tags}else v=n.getContextualDocumentationComment(i,e),x=n.getJsDocTags(e)}}if(t.declarations)switch(t.declarations[0].kind){case 270:_.push(lY(95)),_.push(cY()),_.push(lY(145));break;case 277:_.push(lY(95)),_.push(cY()),_.push(lY(t.declarations[0].isExportEquals?64:90));break;case 281:_.push(lY(95));break;default:_.push(lY(102))}_.push(cY()),D(t),d(t.declarations,(t=>{if(271===t.kind){const n=t;if(Sm(n))_.push(cY()),_.push(uY(64)),_.push(cY()),_.push(lY(149)),_.push(_Y(21)),_.push(sY(Kd(Tm(n)),8)),_.push(_Y(22));else{const t=e.getSymbolAtLocation(n.moduleReference);t&&(_.push(cY()),_.push(uY(64)),_.push(cY()),D(t,r))}return!0}}))}if(!h)if(""!==g){if(o)if(y?(C(),_.push(lY(110))):F(t,g),"property"===g||"accessor"===g||"getter"===g||"setter"===g||"JSX attribute"===g||3&m||"local var"===g||"index"===g||"using"===g||"await using"===g||y){if(_.push(_Y(59)),_.push(cY()),o.symbol&&262144&o.symbol.flags&&"index"!==g){const t=TY((t=>{const n=e.typeParameterToDeclaration(o,r,gue);S().writeNode(4,n,hd(dc(r)),t)}));se(_,t)}else se(_,CY(e,o,r));if(Ku(t)&&t.links.target&&Ku(t.links.target)&&t.links.target.links.tupleLabelDeclaration){const e=t.links.target.links.tupleLabelDeclaration;un.assertNode(e.name,zN),_.push(cY()),_.push(_Y(21)),_.push(mY(mc(e.name))),_.push(_Y(22))}}else if(16&m||8192&m||16384&m||131072&m||98304&m||"method"===g){const e=o.getNonNullableType().getCallSignatures();e.length&&(P(e[0],e),k=e.length>1)}}else g=hue(e,t,i);if(0!==u.length||k||(u=t.getContextualDocumentationComment(r,e)),0===u.length&&4&m&&t.parent&&t.declarations&&d(t.parent.declarations,(e=>307===e.kind)))for(const n of t.declarations){if(!n.parent||226!==n.parent.kind)continue;const t=e.getSymbolAtLocation(n.parent.right);if(t&&(u=t.getDocumentationComment(e),p=t.getJsDocTags(e),u.length>0))break}if(0===u.length&&zN(i)&&t.valueDeclaration&&VD(t.valueDeclaration)){const n=t.valueDeclaration,r=n.parent,i=n.propertyName||n.name;if(zN(i)&&qD(r)){const t=zh(i),n=e.getTypeAtLocation(r);u=f(n.isUnion()?n.types:[n],(n=>{const r=n.getProperty(t);return r?r.getDocumentationComment(e):void 0}))||l}}return 0!==p.length||k||(p=t.getContextualJsDocTags(r,e)),0===u.length&&v&&(u=v),0===p.length&&x&&(p=x),{displayParts:_,documentation:u,symbolKind:g,tags:0===p.length?void 0:p};function S(){return eU()}function C(){_.length&&_.push(SY()),w()}function w(){s&&(E("alias"),_.push(cY()))}function N(){_.push(cY()),_.push(lY(103)),_.push(cY())}function D(r,i){let o;s&&r===t&&(r=s),"index"===g&&(o=e.getIndexInfosOfIndexSymbol(r));let a=[];131072&r.flags&&o?(r.parent&&(a=wY(e,r.parent)),a.push(_Y(23)),o.forEach(((t,n)=>{a.push(...CY(e,t.keyType)),n!==o.length-1&&(a.push(cY()),a.push(_Y(52)),a.push(cY()))})),a.push(_Y(24))):a=wY(e,r,i||n,void 0,7),se(_,a),16777216&t.flags&&_.push(_Y(58))}function F(e,t){C(),t&&(E(t),e&&!$(e.declarations,(e=>tF(e)||(eF(e)||pF(e))&&!e.name))&&(_.push(cY()),D(e)))}function E(e){switch(e){case"var":case"function":case"let":case"const":case"constructor":case"using":case"await using":return void _.push(fY(e));default:return _.push(_Y(21)),_.push(fY(e)),void _.push(_Y(22))}}function P(t,n,i=0){se(_,NY(e,t,r,32|i)),n.length>1&&(_.push(cY()),_.push(_Y(21)),_.push(uY(40)),_.push(sY((n.length-1).toString(),7)),_.push(cY()),_.push(mY(2===n.length?"overload":"overloads")),_.push(_Y(22))),u=t.getDocumentationComment(e),p=t.getJsDocTags(),n.length>1&&0===u.length&&0===p.length&&(u=n[0].getDocumentationComment(e),p=n[0].getJsDocTags().filter((e=>"deprecated"!==e.name)))}function A(t,n){const r=TY((r=>{const i=e.symbolToTypeParameterDeclarations(t,n,gue);S().writeList(53776,i,hd(dc(n)),r)}));se(_,r)}}function kue(e,t,n,r,i,o=FG(i),a){return xue(e,t,n,r,i,void 0,o,a)}function Sue(e){return!e.parent&&d(e.declarations,(e=>{if(218===e.kind)return!0;if(260!==e.kind&&262!==e.kind)return!1;for(let t=e.parent;!Rf(t);t=t.parent)if(307===t.kind||268===t.kind)return!1;return!0}))}var Tue={};function Cue(e){const t=e.__pos;return un.assert("number"==typeof t),t}function wue(e,t){un.assert("number"==typeof t),e.__pos=t}function Nue(e){const t=e.__end;return un.assert("number"==typeof t),t}function Due(e,t){un.assert("number"==typeof t),e.__end=t}i(Tue,{ChangeTracker:()=>Jue,LeadingTriviaOption:()=>Fue,TrailingTriviaOption:()=>Eue,applyChanges:()=>Vue,assignPositionsToNode:()=>Hue,createWriter:()=>Gue,deleteNode:()=>Que,getAdjustedEndPosition:()=>jue,isThisTypeAnnotatable:()=>Mue,isValidLocationToAddComment:()=>Xue});var Fue=(e=>(e[e.Exclude=0]="Exclude",e[e.IncludeAll=1]="IncludeAll",e[e.JSDoc=2]="JSDoc",e[e.StartLine=3]="StartLine",e))(Fue||{}),Eue=(e=>(e[e.Exclude=0]="Exclude",e[e.ExcludeWhitespace=1]="ExcludeWhitespace",e[e.Include=2]="Include",e))(Eue||{});function Pue(e,t){return Xa(e,t,!1,!0)}var Aue={leadingTriviaOption:0,trailingTriviaOption:0};function Iue(e,t,n,r){return{pos:Oue(e,t,r),end:jue(e,n,r)}}function Oue(e,t,n,r=!1){var i,o;const{leadingTriviaOption:a}=n;if(0===a)return t.getStart(e);if(3===a){const n=t.getStart(e),r=oX(n,e);return sX(t,r)?r:n}if(2===a){const n=hf(t,e.text);if(null==n?void 0:n.length)return oX(n[0].pos,e)}const s=t.getFullStart(),c=t.getStart(e);if(s===c)return c;const l=oX(s,e);if(oX(c,e)===l)return 1===a?s:c;if(r){const t=(null==(i=ls(e.text,s))?void 0:i[0])||(null==(o=_s(e.text,s))?void 0:o[0]);if(t)return Xa(e.text,t.end,!0,!0)}const _=s>0?1:0;let u=xd(tv(e,l)+_,e);return u=Pue(e.text,u),xd(tv(e,u),e)}function Lue(e,t,n){const{end:r}=t,{trailingTriviaOption:i}=n;if(2===i){const n=_s(e.text,r);if(n){const r=tv(e,t.end);for(const t of n){if(2===t.kind||tv(e,t.pos)>r)break;if(tv(e,t.end)>r)return Xa(e.text,t.end,!0,!0)}}}}function jue(e,t,n){var r;const{end:i}=t,{trailingTriviaOption:o}=n;if(0===o)return i;if(1===o){const t=K(_s(e.text,i),ls(e.text,i));return(null==(r=null==t?void 0:t[t.length-1])?void 0:r.end)||i}const a=Lue(e,t,n);if(a)return a;const s=Xa(e.text,i,!0);return s===i||2!==o&&!Ua(e.text.charCodeAt(s-1))?i:s}function Rue(e,t){return!!t&&!!e.parent&&(28===t.kind||27===t.kind&&210===e.parent.kind)}function Mue(e){return eF(e)||$F(e)}var Bue,Jue=class e{constructor(e,t){this.newLineCharacter=e,this.formatContext=t,this.changes=[],this.classesWithNodesInsertedAtStart=new Map,this.deletedNodes=[]}static fromContext(t){return new e(kY(t.host,t.formatContext.options),t.formatContext)}static with(t,n){const r=e.fromContext(t);return n(r),r.getChanges()}pushRaw(e,t){un.assertEqual(e.fileName,t.fileName);for(const n of t.textChanges)this.changes.push({kind:3,sourceFile:e,text:n.newText,range:hQ(n.span)})}deleteRange(e,t){this.changes.push({kind:0,sourceFile:e,range:t})}delete(e,t){this.deletedNodes.push({sourceFile:e,node:t})}deleteNode(e,t,n={leadingTriviaOption:1}){this.deleteRange(e,Iue(e,t,t,n))}deleteNodes(e,t,n={leadingTriviaOption:1},r){for(const i of t){const t=Oue(e,i,n,r),o=jue(e,i,n);this.deleteRange(e,{pos:t,end:o}),r=!!Lue(e,i,n)}}deleteModifier(e,t){this.deleteRange(e,{pos:t.getStart(e),end:Xa(e.text,t.end,!0)})}deleteNodeRange(e,t,n,r={leadingTriviaOption:1}){const i=Oue(e,t,r),o=jue(e,n,r);this.deleteRange(e,{pos:i,end:o})}deleteNodeRangeExcludingEnd(e,t,n,r={leadingTriviaOption:1}){const i=Oue(e,t,r),o=void 0===n?e.text.length:Oue(e,n,r);this.deleteRange(e,{pos:i,end:o})}replaceRange(e,t,n,r={}){this.changes.push({kind:1,sourceFile:e,range:t,options:r,node:n})}replaceNode(e,t,n,r=Aue){this.replaceRange(e,Iue(e,t,t,r),n,r)}replaceNodeRange(e,t,n,r,i=Aue){this.replaceRange(e,Iue(e,t,n,i),r,i)}replaceRangeWithNodes(e,t,n,r={}){this.changes.push({kind:2,sourceFile:e,range:t,options:r,nodes:n})}replaceNodeWithNodes(e,t,n,r=Aue){this.replaceRangeWithNodes(e,Iue(e,t,t,r),n,r)}replaceNodeWithText(e,t,n){this.replaceRangeWithText(e,Iue(e,t,t,Aue),n)}replaceNodeRangeWithNodes(e,t,n,r,i=Aue){this.replaceRangeWithNodes(e,Iue(e,t,n,i),r,i)}nodeHasTrailingComment(e,t,n=Aue){return!!Lue(e,t,n)}nextCommaToken(e,t){const n=LX(t,t.parent,e);return n&&28===n.kind?n:void 0}replacePropertyAssignment(e,t,n){const r=this.nextCommaToken(e,t)?"":","+this.newLineCharacter;this.replaceNode(e,t,n,{suffix:r})}insertNodeAt(e,t,n,r={}){this.replaceRange(e,Pb(t),n,r)}insertNodesAt(e,t,n,r={}){this.replaceRangeWithNodes(e,Pb(t),n,r)}insertNodeAtTopOfFile(e,t,n){this.insertAtTopOfFile(e,t,n)}insertNodesAtTopOfFile(e,t,n){this.insertAtTopOfFile(e,t,n)}insertAtTopOfFile(e,t,n){const r=function(e){let t;for(const n of e.statements){if(!uf(n))break;t=n}let n=0;const r=e.text;if(t)return n=t.end,c(),n;const i=us(r);void 0!==i&&(n=i.length,c());const o=ls(r,n);if(!o)return n;let a,s;for(const t of o){if(3===t.kind){if(Rd(r,t.pos)){a={range:t,pinnedOrTripleSlash:!0};continue}}else if(jd(r,t.pos,t.end)){a={range:t,pinnedOrTripleSlash:!0};continue}if(a){if(a.pinnedOrTripleSlash)break;if(e.getLineAndCharacterOfPosition(t.pos).line>=e.getLineAndCharacterOfPosition(a.range.end).line+2)break}if(e.statements.length&&(void 0===s&&(s=e.getLineAndCharacterOfPosition(e.statements[0].getStart()).line),sZe(e.comment)?XC.createJSDocText(e.comment):e.comment)),r=be(t.jsDoc);return r&&Wb(r.pos,r.end,e)&&0===u(n)?void 0:XC.createNodeArray(y(n,XC.createJSDocText("\n")))}replaceJSDocComment(e,t,n){this.insertJsdocCommentBefore(e,function(e){if(219!==e.kind)return e;const t=172===e.parent.kind?e.parent:e.parent.parent;return t.jsDoc=e.jsDoc,t}(t),XC.createJSDocComment(this.createJSDocText(e,t),XC.createNodeArray(n)))}addJSDocTags(e,t,n){const r=L(t.jsDoc,(e=>e.tags)),i=n.filter((e=>!r.some(((t,n)=>{const i=function(e,t){if(e.kind===t.kind)switch(e.kind){case 341:{const n=e,r=t;return zN(n.name)&&zN(r.name)&&n.name.escapedText===r.name.escapedText?XC.createJSDocParameterTag(void 0,r.name,!1,r.typeExpression,r.isNameFirst,n.comment):void 0}case 342:return XC.createJSDocReturnTag(void 0,t.typeExpression,e.comment);case 344:return XC.createJSDocTypeTag(void 0,t.typeExpression,e.comment)}}(t,e);return i&&(r[n]=i),!!i}))));this.replaceJSDocComment(e,t,[...r,...i])}filterJSDocTags(e,t,n){this.replaceJSDocComment(e,t,N(L(t.jsDoc,(e=>e.tags)),n))}replaceRangeWithText(e,t,n){this.changes.push({kind:3,sourceFile:e,range:t,text:n})}insertText(e,t,n){this.replaceRangeWithText(e,Pb(t),n)}tryInsertTypeAnnotation(e,t,n){let r;if(n_(t)){if(r=yX(t,22,e),!r){if(!tF(t))return!1;r=ge(t.parameters)}}else r=(260===t.kind?t.exclamationToken:t.questionToken)??t.name;return this.insertNodeAt(e,r.end,n,{prefix:": "}),!0}tryInsertThisTypeAnnotation(e,t,n){const r=yX(t,21,e).getStart(e)+1,i=t.parameters.length?", ":"";this.insertNodeAt(e,r,n,{prefix:"this: ",suffix:i})}insertTypeParameters(e,t,n){const r=(yX(t,21,e)||ge(t.parameters)).getStart(e);this.insertNodesAt(e,r,n,{prefix:"<",suffix:">",joiner:", "})}getOptionsForInsertNodeBefore(e,t,n){return du(e)||l_(e)?{suffix:n?this.newLineCharacter+this.newLineCharacter:this.newLineCharacter}:VF(e)?{suffix:", "}:oD(e)?oD(t)?{suffix:", "}:{}:TN(e)&&nE(e.parent)||uE(e)?{suffix:", "}:dE(e)?{suffix:","+(n?this.newLineCharacter:" ")}:un.failBadSyntaxKind(e)}insertNodeAtConstructorStart(e,t,n){const r=fe(t.body.statements);r&&t.body.multiLine?this.insertNodeBefore(e,r,n):this.replaceConstructorBody(e,t,[n,...t.body.statements])}insertNodeAtConstructorStartAfterSuperCall(e,t,n){const r=b(t.body.statements,(e=>DF(e)&&sf(e.expression)));r&&t.body.multiLine?this.insertNodeAfter(e,r,n):this.replaceConstructorBody(e,t,[...t.body.statements,n])}insertNodeAtConstructorEnd(e,t,n){const r=ye(t.body.statements);r&&t.body.multiLine?this.insertNodeAfter(e,r,n):this.replaceConstructorBody(e,t,[...t.body.statements,n])}replaceConstructorBody(e,t,n){this.replaceNode(e,t.body,XC.createBlock(n,!0))}insertNodeAtEndOfScope(e,t,n){const r=Oue(e,t.getLastToken(),{});this.insertNodeAt(e,r,n,{prefix:Ua(e.text.charCodeAt(t.getLastToken().pos))?this.newLineCharacter:this.newLineCharacter+this.newLineCharacter,suffix:this.newLineCharacter})}insertMemberAtStart(e,t,n){this.insertNodeAtStartWorker(e,t,n)}insertNodeAtObjectStart(e,t,n){this.insertNodeAtStartWorker(e,t,n)}insertNodeAtStartWorker(e,t,n){const r=this.guessIndentationFromExistingMembers(e,t)??this.computeIndentationForNewMember(e,t);this.insertNodeAt(e,Uue(t).pos,n,this.getInsertNodeAtStartInsertOptions(e,t,r))}guessIndentationFromExistingMembers(e,t){let n,r=t;for(const i of Uue(t)){if(Mb(r,i,e))return;const t=i.getStart(e),o=Zue.SmartIndenter.findFirstNonWhitespaceColumn(oX(t,e),t,e,this.formatContext.options);if(void 0===n)n=o;else if(o!==n)return;r=i}return n}computeIndentationForNewMember(e,t){const n=t.getStart(e);return Zue.SmartIndenter.findFirstNonWhitespaceColumn(oX(n,e),n,e,this.formatContext.options)+(this.formatContext.options.indentSize??4)}getInsertNodeAtStartInsertOptions(e,t,n){const r=0===Uue(t).length,i=!this.classesWithNodesInsertedAtStart.has(jB(t));i&&this.classesWithNodesInsertedAtStart.set(jB(t),{node:t,sourceFile:e});const o=$D(t)&&(!Yp(e)||!r);return{indentation:n,prefix:($D(t)&&Yp(e)&&r&&!i?",":"")+this.newLineCharacter,suffix:o?",":KF(t)&&r?";":""}}insertNodeAfterComma(e,t,n){const r=this.insertNodeAfterWorker(e,this.nextCommaToken(e,t)||t,n);this.insertNodeAt(e,r,n,this.getInsertNodeAfterOptions(e,t))}insertNodeAfter(e,t,n){const r=this.insertNodeAfterWorker(e,t,n);this.insertNodeAt(e,r,n,this.getInsertNodeAfterOptions(e,t))}insertNodeAtEndOfList(e,t,n){this.insertNodeAt(e,t.end,n,{prefix:", "})}insertNodesAfter(e,t,n){const r=this.insertNodeAfterWorker(e,t,ge(n));this.insertNodesAt(e,r,n,this.getInsertNodeAfterOptions(e,t))}insertNodeAfterWorker(e,t,n){var r,i;return i=n,((sD(r=t)||cD(r))&&h_(i)&&167===i.name.kind||uu(r)&&uu(i))&&59!==e.text.charCodeAt(t.end-1)&&this.replaceRange(e,Pb(t.end),XC.createToken(27)),jue(e,t,{})}getInsertNodeAfterOptions(e,t){const n=this.getInsertNodeAfterOptionsWorker(t);return{...n,prefix:t.end===e.end&&du(t)?n.prefix?`\n${n.prefix}`:"\n":n.prefix}}getInsertNodeAfterOptionsWorker(e){switch(e.kind){case 263:case 267:return{prefix:this.newLineCharacter,suffix:this.newLineCharacter};case 260:case 11:case 80:return{prefix:", "};case 303:return{suffix:","+this.newLineCharacter};case 95:return{prefix:" "};case 169:return{};default:return un.assert(du(e)||h_(e)),{suffix:this.newLineCharacter}}}insertName(e,t,n){if(un.assert(!t.name),219===t.kind){const r=yX(t,39,e),i=yX(t,21,e);i?(this.insertNodesAt(e,i.getStart(e),[XC.createToken(100),XC.createIdentifier(n)],{joiner:" "}),Que(this,e,r)):(this.insertText(e,ge(t.parameters).getStart(e),`function ${n}(`),this.replaceRange(e,r,XC.createToken(22))),241!==t.body.kind&&(this.insertNodesAt(e,t.body.getStart(e),[XC.createToken(19),XC.createToken(107)],{joiner:" ",suffix:" "}),this.insertNodesAt(e,t.body.end,[XC.createToken(27),XC.createToken(20)],{joiner:" "}))}else{const r=yX(t,218===t.kind?100:86,e).end;this.insertNodeAt(e,r,XC.createIdentifier(n),{prefix:" "})}}insertExportModifier(e,t){this.insertText(e,t.getStart(e),"export ")}insertImportSpecifierAtIndex(e,t,n,r){const i=n.elements[r-1];i?this.insertNodeInListAfter(e,i,t):this.insertNodeBefore(e,n.elements[0],t,!Wb(n.elements[0].getStart(),n.parent.parent.getStart(),e))}insertNodeInListAfter(e,t,n,r=Zue.SmartIndenter.getContainingList(t,e)){if(!r)return void un.fail("node is not a list element");const i=Xd(r,t);if(i<0)return;const o=t.getEnd();if(i!==r.length-1){const o=PX(e,t.end);if(o&&Rue(t,o)){const t=r[i+1],a=Pue(e.text,t.getFullStart()),s=`${Da(o.kind)}${e.text.substring(o.end,a)}`;this.insertNodesAt(e,a,[n],{suffix:s})}}else{const a=t.getStart(e),s=oX(a,e);let c,l=!1;if(1===r.length)c=28;else{const n=jX(t.pos,e);c=Rue(t,n)?n.kind:28,l=oX(r[i-1].getStart(e),e)!==s}if(!function(e,t){let n=t;for(;n{const[n,r]=function(e,t){const n=yX(e,19,t),r=yX(e,20,t);return[null==n?void 0:n.end,null==r?void 0:r.end]}(e,t);if(void 0!==n&&void 0!==r){const i=0===Uue(e).length,o=Wb(n,r,t);i&&o&&n!==r-1&&this.deleteRange(t,Pb(n,r-1)),o&&this.insertText(t,r-1,this.newLineCharacter)}}))}finishDeleteDeclarations(){const e=new Set;for(const{sourceFile:t,node:n}of this.deletedNodes)this.deletedNodes.some((e=>e.sourceFile===t&&aX(e.node,n)))||(Qe(n)?this.deleteRange(t,sT(t,n)):Wue.deleteDeclaration(this,e,t,n));e.forEach((t=>{const n=t.getSourceFile(),r=Zue.SmartIndenter.getContainingList(t,n);if(t!==ve(r))return;const i=S(r,(t=>!e.has(t)),r.length-2);-1!==i&&this.deleteRange(n,{pos:r[i].end,end:zue(n,r[i+1])})}))}getChanges(e){this.finishDeleteDeclarations(),this.finishClassesWithNodesInsertedAtStart();const t=Bue.getTextChangesFromChanges(this.changes,this.newLineCharacter,this.formatContext,e);return this.newFileChanges&&this.newFileChanges.forEach(((e,n)=>{t.push(Bue.newFileChanges(n,e,this.newLineCharacter,this.formatContext))})),t}createNewFile(e,t,n){this.insertStatementsInNewFile(t,n,e)}};function zue(e,t){return Xa(e.text,Oue(e,t,{leadingTriviaOption:1}),!1,!0)}function que(e,t,n,r){const i=zue(e,r);if(void 0===n||Wb(jue(e,t,{}),i,e))return i;const o=jX(r.getStart(e),e);if(Rue(t,o)){const r=jX(t.getStart(e),e);if(Rue(n,r)){const t=Xa(e.text,o.getEnd(),!0,!0);if(Wb(r.getStart(e),o.getStart(e),e))return Ua(e.text.charCodeAt(t-1))?t-1:t;if(Ua(e.text.charCodeAt(t)))return t}}return i}function Uue(e){return $D(e)?e.properties:e.members}function Vue(e,t){for(let n=t.length-1;n>=0;n--){const{span:r,newText:i}=t[n];e=`${e.substring(0,r.start)}${i}${e.substring(Ds(r))}`}return e}(e=>{function t(e,t,r,i){const o=O(t,(e=>e.statements.map((t=>4===t?"":n(t,e.oldFile,r).text)))).join(r),a=LI("any file name",o,{languageVersion:99,jsDocParsingMode:1},!0,e);return Vue(o,Zue.formatDocument(a,i))+r}function n(e,t,n){const r=Gue(n);return rU({newLine:qZ(n),neverAsciiEscape:!0,preserveSourceNewlines:!0,terminateUnterminatedLiterals:!0},r).writeNode(4,e,t,r),{text:r.getText(),node:Hue(e)}}e.getTextChangesFromChanges=function(e,t,r,i){return B(Je(e,(e=>e.sourceFile.path)),(e=>{const o=e[0].sourceFile,a=_e(e,((e,t)=>e.range.pos-t.range.pos||e.range.end-t.range.end));for(let e=0;e`${JSON.stringify(a[e].range)} and ${JSON.stringify(a[e+1].range)}`));const s=B(a,(e=>{const a=gQ(e.range),s=1===e.kind?hd(lc(e.node))??e.sourceFile:2===e.kind?hd(lc(e.nodes[0]))??e.sourceFile:e.sourceFile,c=function(e,t,r,i,o,a){var s;if(0===e.kind)return"";if(3===e.kind)return e.text;const{options:c={},range:{pos:l}}=e,_=e=>function(e,t,r,i,{indentation:o,prefix:a,delta:s},c,l,_){const{node:u,text:d}=n(e,t,c);_&&_(u,d);const p=VZ(l,t),f=void 0!==o?o:Zue.SmartIndenter.getIndentation(i,r,p,a===c||oX(i,t)===i);void 0===s&&(s=Zue.SmartIndenter.shouldIndentChildNode(p,e)&&p.indentSize||0);const m={text:d,getLineAndCharacterOfPosition(e){return Ja(this,e)}};return Vue(d,Zue.formatNodeGivenIndentation(u,m,t.languageVariant,f,s,{...l,options:p}))}(e,t,r,l,c,i,o,a),u=2===e.kind?e.nodes.map((e=>Mt(_(e),i))).join((null==(s=e.options)?void 0:s.joiner)||i):_(e.node),d=void 0!==c.indentation||oX(l,t)===l?u:u.replace(/^\s+/,"");return(c.prefix||"")+d+(!c.suffix||Rt(d,c.suffix)?"":c.suffix)}(e,s,o,t,r,i);if(a.length!==c.length||!MZ(s.text,c,a.start))return vQ(a,c)}));return s.length>0?{fileName:o.fileName,textChanges:s}:void 0}))},e.newFileChanges=function(e,n,r,i){const o=t(vS(e),n,r,i);return{fileName:e,textChanges:[vQ(Vs(0,0),o)],isNewFile:!0}},e.newFileChangesWorker=t,e.getNonformattedText=n})(Bue||(Bue={}));var Wue,$ue={...wq,factory:BC(1|wq.factory.flags,wq.factory.baseFactory)};function Hue(e){const t=nJ(e,Hue,$ue,Kue,Hue),n=Zh(t)?t:Object.create(t);return ST(n,Cue(e),Nue(e)),n}function Kue(e,t,n,r,i){const o=HB(e,t,n,r,i);if(!o)return o;un.assert(e);const a=o===e?XC.createNodeArray(o.slice(0)):o;return ST(a,Cue(e),Nue(e)),a}function Gue(e){let t=0;const n=Iy(e);function r(e,r){if(r||!function(e){return Xa(e,0)===e.length}(e)){t=n.getTextPos();let r=0;for(;za(e.charCodeAt(e.length-r-1));)r++;t-=r}}return{onBeforeEmitNode:e=>{e&&wue(e,t)},onAfterEmitNode:e=>{e&&Due(e,t)},onBeforeEmitNodeArray:e=>{e&&wue(e,t)},onAfterEmitNodeArray:e=>{e&&Due(e,t)},onBeforeEmitToken:e=>{e&&wue(e,t)},onAfterEmitToken:e=>{e&&Due(e,t)},write:function(e){n.write(e),r(e,!1)},writeComment:function(e){n.writeComment(e)},writeKeyword:function(e){n.writeKeyword(e),r(e,!1)},writeOperator:function(e){n.writeOperator(e),r(e,!1)},writePunctuation:function(e){n.writePunctuation(e),r(e,!1)},writeTrailingSemicolon:function(e){n.writeTrailingSemicolon(e),r(e,!1)},writeParameter:function(e){n.writeParameter(e),r(e,!1)},writeProperty:function(e){n.writeProperty(e),r(e,!1)},writeSpace:function(e){n.writeSpace(e),r(e,!1)},writeStringLiteral:function(e){n.writeStringLiteral(e),r(e,!1)},writeSymbol:function(e,t){n.writeSymbol(e,t),r(e,!1)},writeLine:function(e){n.writeLine(e)},increaseIndent:function(){n.increaseIndent()},decreaseIndent:function(){n.decreaseIndent()},getText:function(){return n.getText()},rawWrite:function(e){n.rawWrite(e),r(e,!1)},writeLiteral:function(e){n.writeLiteral(e),r(e,!0)},getTextPos:function(){return n.getTextPos()},getLine:function(){return n.getLine()},getColumn:function(){return n.getColumn()},getIndent:function(){return n.getIndent()},isAtStartOfLine:function(){return n.isAtStartOfLine()},hasTrailingComment:()=>n.hasTrailingComment(),hasTrailingWhitespace:()=>n.hasTrailingWhitespace(),clear:function(){n.clear(),t=0}}}function Xue(e,t){return!(XX(e,t)||JX(e,t)||UX(e,t)||VX(e,t))}function Que(e,t,n,r={leadingTriviaOption:1}){const i=Oue(t,n,r),o=jue(t,n,r);e.deleteRange(t,{pos:i,end:o})}function Yue(e,t,n,r){const i=un.checkDefined(Zue.SmartIndenter.getContainingList(r,n)),o=Xd(i,r);un.assert(-1!==o),1!==i.length?(un.assert(!t.has(r),"Deleting a node twice"),t.add(r),e.deleteRange(n,{pos:zue(n,r),end:o===i.length-1?jue(n,r,{}):que(n,r,i[o-1],i[o+1])})):Que(e,n,r)}(e=>{function t(e,t,n){if(n.parent.name){const r=un.checkDefined(PX(t,n.pos-1));e.deleteRange(t,{pos:r.getStart(t),end:n.end})}else Que(e,t,Sh(n,272))}e.deleteDeclaration=function(e,n,r,i){switch(i.kind){case 169:{const t=i.parent;tF(t)&&1===t.parameters.length&&!yX(t,21,r)?e.replaceNodeWithText(r,i,"()"):Yue(e,n,r,i);break}case 272:case 271:Que(e,r,i,{leadingTriviaOption:r.imports.length&&i===ge(r.imports).parent||i===b(r.statements,xp)?0:Nu(i)?2:3});break;case 208:const o=i.parent;207===o.kind&&i!==ve(o.elements)?Que(e,r,i):Yue(e,n,r,i);break;case 260:!function(e,t,n,r){const{parent:i}=r;if(299===i.kind)return void e.deleteNodeRange(n,yX(i,21,n),yX(i,22,n));if(1!==i.declarations.length)return void Yue(e,t,n,r);const o=i.parent;switch(o.kind){case 250:case 249:e.replaceNode(n,r,XC.createObjectLiteralExpression());break;case 248:Que(e,n,i);break;case 243:Que(e,n,o,{leadingTriviaOption:Nu(o)?2:3});break;default:un.assertNever(o)}}(e,n,r,i);break;case 168:Yue(e,n,r,i);break;case 276:const a=i.parent;1===a.elements.length?t(e,r,a):Yue(e,n,r,i);break;case 274:t(e,r,i);break;case 27:Que(e,r,i,{trailingTriviaOption:0});break;case 100:Que(e,r,i,{leadingTriviaOption:0});break;case 263:case 262:Que(e,r,i,{leadingTriviaOption:Nu(i)?2:3});break;default:i.parent?rE(i.parent)&&i.parent.name===i?function(e,t,n){if(n.namedBindings){const r=n.name.getStart(t),i=PX(t,n.name.end);if(i&&28===i.kind){const n=Xa(t.text,i.end,!1,!0);e.deleteRange(t,{pos:r,end:n})}else Que(e,t,n.name)}else Que(e,t,n.parent)}(e,r,i.parent):GD(i.parent)&&T(i.parent.arguments,i)?Yue(e,n,r,i):Que(e,r,i):Que(e,r,i)}}})(Wue||(Wue={}));var Zue={};i(Zue,{FormattingContext:()=>tde,FormattingRequestKind:()=>ede,RuleAction:()=>sde,RuleFlags:()=>cde,SmartIndenter:()=>Epe,anyContext:()=>ade,createTextRangeWithKind:()=>jpe,formatDocument:()=>zpe,formatNodeGivenIndentation:()=>$pe,formatOnClosingCurly:()=>Jpe,formatOnEnter:()=>Rpe,formatOnOpeningCurly:()=>Bpe,formatOnSemicolon:()=>Mpe,formatSelection:()=>qpe,getAllRules:()=>lde,getFormatContext:()=>Spe,getFormattingScanner:()=>ide,getIndentationString:()=>Qpe,getRangeOfEnclosingComment:()=>Xpe});var ede=(e=>(e[e.FormatDocument=0]="FormatDocument",e[e.FormatSelection=1]="FormatSelection",e[e.FormatOnEnter=2]="FormatOnEnter",e[e.FormatOnSemicolon=3]="FormatOnSemicolon",e[e.FormatOnOpeningCurlyBrace=4]="FormatOnOpeningCurlyBrace",e[e.FormatOnClosingCurlyBrace=5]="FormatOnClosingCurlyBrace",e))(ede||{}),tde=class{constructor(e,t,n){this.sourceFile=e,this.formattingRequestKind=t,this.options=n}updateContext(e,t,n,r,i){this.currentTokenSpan=un.checkDefined(e),this.currentTokenParent=un.checkDefined(t),this.nextTokenSpan=un.checkDefined(n),this.nextTokenParent=un.checkDefined(r),this.contextNode=un.checkDefined(i),this.contextNodeAllOnSameLine=void 0,this.nextNodeAllOnSameLine=void 0,this.tokensAreOnSameLine=void 0,this.contextNodeBlockIsOnOneLine=void 0,this.nextNodeBlockIsOnOneLine=void 0}ContextNodeAllOnSameLine(){return void 0===this.contextNodeAllOnSameLine&&(this.contextNodeAllOnSameLine=this.NodeIsOnOneLine(this.contextNode)),this.contextNodeAllOnSameLine}NextNodeAllOnSameLine(){return void 0===this.nextNodeAllOnSameLine&&(this.nextNodeAllOnSameLine=this.NodeIsOnOneLine(this.nextTokenParent)),this.nextNodeAllOnSameLine}TokensAreOnSameLine(){if(void 0===this.tokensAreOnSameLine){const e=this.sourceFile.getLineAndCharacterOfPosition(this.currentTokenSpan.pos).line,t=this.sourceFile.getLineAndCharacterOfPosition(this.nextTokenSpan.pos).line;this.tokensAreOnSameLine=e===t}return this.tokensAreOnSameLine}ContextNodeBlockIsOnOneLine(){return void 0===this.contextNodeBlockIsOnOneLine&&(this.contextNodeBlockIsOnOneLine=this.BlockIsOnOneLine(this.contextNode)),this.contextNodeBlockIsOnOneLine}NextNodeBlockIsOnOneLine(){return void 0===this.nextNodeBlockIsOnOneLine&&(this.nextNodeBlockIsOnOneLine=this.BlockIsOnOneLine(this.nextTokenParent)),this.nextNodeBlockIsOnOneLine}NodeIsOnOneLine(e){return this.sourceFile.getLineAndCharacterOfPosition(e.getStart(this.sourceFile)).line===this.sourceFile.getLineAndCharacterOfPosition(e.getEnd()).line}BlockIsOnOneLine(e){const t=yX(e,19,this.sourceFile),n=yX(e,20,this.sourceFile);return!(!t||!n)&&this.sourceFile.getLineAndCharacterOfPosition(t.getEnd()).line===this.sourceFile.getLineAndCharacterOfPosition(n.getStart(this.sourceFile)).line}},nde=ms(99,!1,0),rde=ms(99,!1,1);function ide(e,t,n,r,i){const o=1===t?rde:nde;o.setText(e),o.resetTokenState(n);let a,s,c,l,_,u=!0;const d=i({advance:function(){_=void 0,o.getTokenFullStart()!==n?u=!!s&&4===ve(s).kind:o.scan(),a=void 0,s=void 0;let e=o.getTokenFullStart();for(;ea,lastTrailingTriviaWasNewLine:()=>u,skipToEndOf:function(e){o.resetTokenState(e.end),c=o.getTokenFullStart(),l=void 0,_=void 0,u=!1,a=void 0,s=void 0},skipToStartOf:function(e){o.resetTokenState(e.pos),c=o.getTokenFullStart(),l=void 0,_=void 0,u=!1,a=void 0,s=void 0},getTokenFullStart:()=>(null==_?void 0:_.token.pos)??o.getTokenStart(),getStartPos:()=>(null==_?void 0:_.token.pos)??o.getTokenStart()});return _=void 0,o.setText(void 0),d;function p(){const e=_?_.token.kind:o.getToken();return 1!==e&&!Ph(e)}function f(){return 1===(_?_.token.kind:o.getToken())}function m(e,t){return Fl(t)&&e.token.kind!==t.kind&&(e.token.kind=t.kind),e}}var ode,ade=l,sde=(e=>(e[e.None=0]="None",e[e.StopProcessingSpaceActions=1]="StopProcessingSpaceActions",e[e.StopProcessingTokenActions=2]="StopProcessingTokenActions",e[e.InsertSpace=4]="InsertSpace",e[e.InsertNewLine=8]="InsertNewLine",e[e.DeleteSpace=16]="DeleteSpace",e[e.DeleteToken=32]="DeleteToken",e[e.InsertTrailingSemicolon=64]="InsertTrailingSemicolon",e[e.StopAction=3]="StopAction",e[e.ModifySpaceAction=28]="ModifySpaceAction",e[e.ModifyTokenAction=96]="ModifyTokenAction",e))(sde||{}),cde=(e=>(e[e.None=0]="None",e[e.CanDeleteNewLines=1]="CanDeleteNewLines",e))(cde||{});function lde(){const e=[];for(let t=0;t<=165;t++)1!==t&&e.push(t);function t(...t){return{tokens:e.filter((e=>!t.some((t=>t===e)))),isSpecific:!1}}const n={tokens:e,isSpecific:!1},r=ude([...e,3]),i=ude([...e,1]),o=pde(83,165),a=pde(30,79),s=[103,104,165,130,142,152],c=[80,...bQ],l=r,_=ude([80,32,3,86,95,102]),u=ude([22,3,92,113,98,93,85]);return[_de("IgnoreBeforeComment",n,[2,3],ade,1),_de("IgnoreAfterLineComment",2,n,ade,1),_de("NotSpaceBeforeColon",n,59,[Gde,Sde,Tde],16),_de("SpaceAfterColon",59,n,[Gde,Sde,tpe],4),_de("NoSpaceBeforeQuestionMark",n,58,[Gde,Sde,Tde],16),_de("SpaceAfterQuestionMarkInConditionalOperator",58,n,[Gde,Nde],4),_de("NoSpaceAfterQuestionMark",58,n,[Gde,wde],16),_de("NoSpaceBeforeDot",n,[25,29],[Gde,kpe],16),_de("NoSpaceAfterDot",[25,29],n,[Gde],16),_de("NoSpaceBetweenImportParenInImportType",102,21,[Gde,Kde],16),_de("NoSpaceAfterUnaryPrefixOperator",[46,47,55,54],[9,10,80,21,23,19,110,105],[Gde,Sde],16),_de("NoSpaceAfterUnaryPreincrementOperator",46,[80,21,110,105],[Gde],16),_de("NoSpaceAfterUnaryPredecrementOperator",47,[80,21,110,105],[Gde],16),_de("NoSpaceBeforeUnaryPostincrementOperator",[80,22,24,105],46,[Gde,vpe],16),_de("NoSpaceBeforeUnaryPostdecrementOperator",[80,22,24,105],47,[Gde,vpe],16),_de("SpaceAfterPostincrementWhenFollowedByAdd",46,40,[Gde,kde],4),_de("SpaceAfterAddWhenFollowedByUnaryPlus",40,40,[Gde,kde],4),_de("SpaceAfterAddWhenFollowedByPreincrement",40,46,[Gde,kde],4),_de("SpaceAfterPostdecrementWhenFollowedBySubtract",47,41,[Gde,kde],4),_de("SpaceAfterSubtractWhenFollowedByUnaryMinus",41,41,[Gde,kde],4),_de("SpaceAfterSubtractWhenFollowedByPredecrement",41,47,[Gde,kde],4),_de("NoSpaceAfterCloseBrace",20,[28,27],[Gde],16),_de("NewLineBeforeCloseBraceInBlockContext",r,20,[Pde],8),_de("SpaceAfterCloseBrace",20,t(22),[Gde,Jde],4),_de("SpaceBetweenCloseBraceAndElse",20,93,[Gde],4),_de("SpaceBetweenCloseBraceAndWhile",20,117,[Gde],4),_de("NoSpaceBetweenEmptyBraceBrackets",19,20,[Gde,qde],16),_de("SpaceAfterConditionalClosingParen",22,23,[zde],4),_de("NoSpaceBetweenFunctionKeywordAndStar",100,42,[Rde],16),_de("SpaceAfterStarInGeneratorDeclaration",42,80,[Rde],4),_de("SpaceAfterFunctionInFuncDecl",100,n,[Lde],4),_de("NewLineAfterOpenBraceInBlockContext",19,n,[Pde],8),_de("SpaceAfterGetSetInMember",[139,153],80,[Lde],4),_de("NoSpaceBetweenYieldKeywordAndStar",127,42,[Gde,hpe],16),_de("SpaceBetweenYieldOrYieldStarAndOperand",[127,42],n,[Gde,hpe],4),_de("NoSpaceBetweenReturnAndSemicolon",107,27,[Gde],16),_de("SpaceAfterCertainKeywords",[115,111,105,91,107,114,135],n,[Gde],4),_de("SpaceAfterLetConstInVariableDeclaration",[121,87],n,[Gde,spe],4),_de("NoSpaceBeforeOpenParenInFuncCall",n,21,[Gde,Ude,Vde],16),_de("SpaceBeforeBinaryKeywordOperator",n,s,[Gde,kde],4),_de("SpaceAfterBinaryKeywordOperator",s,n,[Gde,kde],4),_de("SpaceAfterVoidOperator",116,n,[Gde,gpe],4),_de("SpaceBetweenAsyncAndOpenParen",134,21,[Hde,Gde],4),_de("SpaceBetweenAsyncAndFunctionKeyword",134,[100,80],[Gde],4),_de("NoSpaceBetweenTagAndTemplateString",[80,22],[15,16],[Gde],16),_de("SpaceBeforeJsxAttribute",n,80,[Zde,Gde],4),_de("SpaceBeforeSlashInJsxOpeningElement",n,44,[rpe,Gde],4),_de("NoSpaceBeforeGreaterThanTokenInJsxOpeningElement",44,32,[rpe,Gde],16),_de("NoSpaceBeforeEqualInJsxAttribute",n,64,[epe,Gde],16),_de("NoSpaceAfterEqualInJsxAttribute",64,n,[epe,Gde],16),_de("NoSpaceBeforeJsxNamespaceColon",80,59,[npe],16),_de("NoSpaceAfterJsxNamespaceColon",59,80,[npe],16),_de("NoSpaceAfterModuleImport",[144,149],21,[Gde],16),_de("SpaceAfterCertainTypeScriptKeywords",[128,129,86,138,90,94,95,96,139,119,102,120,144,145,123,125,124,148,153,126,156,161,143,140],n,[Gde],4),_de("SpaceBeforeCertainTypeScriptKeywords",n,[96,119,161],[Gde],4),_de("SpaceAfterModuleName",11,19,[lpe],4),_de("SpaceBeforeArrow",n,39,[Gde],4),_de("SpaceAfterArrow",39,n,[Gde],4),_de("NoSpaceAfterEllipsis",26,80,[Gde],16),_de("NoSpaceAfterOptionalParameters",58,[22,28],[Gde,Sde],16),_de("NoSpaceBetweenEmptyInterfaceBraceBrackets",19,20,[Gde,_pe],16),_de("NoSpaceBeforeOpenAngularBracket",c,30,[Gde,ppe],16),_de("NoSpaceBetweenCloseParenAndAngularBracket",22,30,[Gde,ppe],16),_de("NoSpaceAfterOpenAngularBracket",30,n,[Gde,ppe],16),_de("NoSpaceBeforeCloseAngularBracket",n,32,[Gde,ppe],16),_de("NoSpaceAfterCloseAngularBracket",32,[21,23,32,28],[Gde,ppe,jde,mpe],16),_de("SpaceBeforeAt",[22,80],60,[Gde],4),_de("NoSpaceAfterAt",60,n,[Gde],16),_de("SpaceAfterDecorator",n,[128,80,95,90,86,126,125,123,124,139,153,23,42],[ope],4),_de("NoSpaceBeforeNonNullAssertionOperator",n,54,[Gde,ype],16),_de("NoSpaceAfterNewKeywordOnConstructorSignature",105,21,[Gde,upe],16),_de("SpaceLessThanAndNonJSXTypeAnnotation",30,30,[Gde],4),_de("SpaceAfterConstructor",137,21,[mde("insertSpaceAfterConstructor"),Gde],4),_de("NoSpaceAfterConstructor",137,21,[hde("insertSpaceAfterConstructor"),Gde],16),_de("SpaceAfterComma",28,n,[mde("insertSpaceAfterCommaDelimiter"),Gde,Qde,Wde,$de],4),_de("NoSpaceAfterComma",28,n,[hde("insertSpaceAfterCommaDelimiter"),Gde,Qde],16),_de("SpaceAfterAnonymousFunctionKeyword",[100,42],21,[mde("insertSpaceAfterFunctionKeywordForAnonymousFunctions"),Lde],4),_de("NoSpaceAfterAnonymousFunctionKeyword",[100,42],21,[hde("insertSpaceAfterFunctionKeywordForAnonymousFunctions"),Lde],16),_de("SpaceAfterKeywordInControl",o,21,[mde("insertSpaceAfterKeywordsInControlFlowStatements"),zde],4),_de("NoSpaceAfterKeywordInControl",o,21,[hde("insertSpaceAfterKeywordsInControlFlowStatements"),zde],16),_de("SpaceAfterOpenParen",21,n,[mde("insertSpaceAfterOpeningAndBeforeClosingNonemptyParenthesis"),Gde],4),_de("SpaceBeforeCloseParen",n,22,[mde("insertSpaceAfterOpeningAndBeforeClosingNonemptyParenthesis"),Gde],4),_de("SpaceBetweenOpenParens",21,21,[mde("insertSpaceAfterOpeningAndBeforeClosingNonemptyParenthesis"),Gde],4),_de("NoSpaceBetweenParens",21,22,[Gde],16),_de("NoSpaceAfterOpenParen",21,n,[hde("insertSpaceAfterOpeningAndBeforeClosingNonemptyParenthesis"),Gde],16),_de("NoSpaceBeforeCloseParen",n,22,[hde("insertSpaceAfterOpeningAndBeforeClosingNonemptyParenthesis"),Gde],16),_de("SpaceAfterOpenBracket",23,n,[mde("insertSpaceAfterOpeningAndBeforeClosingNonemptyBrackets"),Gde],4),_de("SpaceBeforeCloseBracket",n,24,[mde("insertSpaceAfterOpeningAndBeforeClosingNonemptyBrackets"),Gde],4),_de("NoSpaceBetweenBrackets",23,24,[Gde],16),_de("NoSpaceAfterOpenBracket",23,n,[hde("insertSpaceAfterOpeningAndBeforeClosingNonemptyBrackets"),Gde],16),_de("NoSpaceBeforeCloseBracket",n,24,[hde("insertSpaceAfterOpeningAndBeforeClosingNonemptyBrackets"),Gde],16),_de("SpaceAfterOpenBrace",19,n,[vde("insertSpaceAfterOpeningAndBeforeClosingNonemptyBraces"),Fde],4),_de("SpaceBeforeCloseBrace",n,20,[vde("insertSpaceAfterOpeningAndBeforeClosingNonemptyBraces"),Fde],4),_de("NoSpaceBetweenEmptyBraceBrackets",19,20,[Gde,qde],16),_de("NoSpaceAfterOpenBrace",19,n,[gde("insertSpaceAfterOpeningAndBeforeClosingNonemptyBraces"),Gde],16),_de("NoSpaceBeforeCloseBrace",n,20,[gde("insertSpaceAfterOpeningAndBeforeClosingNonemptyBraces"),Gde],16),_de("SpaceBetweenEmptyBraceBrackets",19,20,[mde("insertSpaceAfterOpeningAndBeforeClosingEmptyBraces")],4),_de("NoSpaceBetweenEmptyBraceBrackets",19,20,[gde("insertSpaceAfterOpeningAndBeforeClosingEmptyBraces"),Gde],16),_de("SpaceAfterTemplateHeadAndMiddle",[16,17],n,[mde("insertSpaceAfterOpeningAndBeforeClosingTemplateStringBraces"),Xde],4,1),_de("SpaceBeforeTemplateMiddleAndTail",n,[17,18],[mde("insertSpaceAfterOpeningAndBeforeClosingTemplateStringBraces"),Gde],4),_de("NoSpaceAfterTemplateHeadAndMiddle",[16,17],n,[hde("insertSpaceAfterOpeningAndBeforeClosingTemplateStringBraces"),Xde],16,1),_de("NoSpaceBeforeTemplateMiddleAndTail",n,[17,18],[hde("insertSpaceAfterOpeningAndBeforeClosingTemplateStringBraces"),Gde],16),_de("SpaceAfterOpenBraceInJsxExpression",19,n,[mde("insertSpaceAfterOpeningAndBeforeClosingJsxExpressionBraces"),Gde,Yde],4),_de("SpaceBeforeCloseBraceInJsxExpression",n,20,[mde("insertSpaceAfterOpeningAndBeforeClosingJsxExpressionBraces"),Gde,Yde],4),_de("NoSpaceAfterOpenBraceInJsxExpression",19,n,[hde("insertSpaceAfterOpeningAndBeforeClosingJsxExpressionBraces"),Gde,Yde],16),_de("NoSpaceBeforeCloseBraceInJsxExpression",n,20,[hde("insertSpaceAfterOpeningAndBeforeClosingJsxExpressionBraces"),Gde,Yde],16),_de("SpaceAfterSemicolonInFor",27,n,[mde("insertSpaceAfterSemicolonInForStatements"),Gde,bde],4),_de("NoSpaceAfterSemicolonInFor",27,n,[hde("insertSpaceAfterSemicolonInForStatements"),Gde,bde],16),_de("SpaceBeforeBinaryOperator",n,a,[mde("insertSpaceBeforeAndAfterBinaryOperators"),Gde,kde],4),_de("SpaceAfterBinaryOperator",a,n,[mde("insertSpaceBeforeAndAfterBinaryOperators"),Gde,kde],4),_de("NoSpaceBeforeBinaryOperator",n,a,[hde("insertSpaceBeforeAndAfterBinaryOperators"),Gde,kde],16),_de("NoSpaceAfterBinaryOperator",a,n,[hde("insertSpaceBeforeAndAfterBinaryOperators"),Gde,kde],16),_de("SpaceBeforeOpenParenInFuncDecl",n,21,[mde("insertSpaceBeforeFunctionParenthesis"),Gde,Lde],4),_de("NoSpaceBeforeOpenParenInFuncDecl",n,21,[hde("insertSpaceBeforeFunctionParenthesis"),Gde,Lde],16),_de("NewLineBeforeOpenBraceInControl",u,19,[mde("placeOpenBraceOnNewLineForControlBlocks"),zde,Ede],8,1),_de("NewLineBeforeOpenBraceInFunction",l,19,[mde("placeOpenBraceOnNewLineForFunctions"),Lde,Ede],8,1),_de("NewLineBeforeOpenBraceInTypeScriptDeclWithBlock",_,19,[mde("placeOpenBraceOnNewLineForFunctions"),Mde,Ede],8,1),_de("SpaceAfterTypeAssertion",32,n,[mde("insertSpaceAfterTypeAssertion"),Gde,fpe],4),_de("NoSpaceAfterTypeAssertion",32,n,[hde("insertSpaceAfterTypeAssertion"),Gde,fpe],16),_de("SpaceBeforeTypeAnnotation",n,[58,59],[mde("insertSpaceBeforeTypeAnnotation"),Gde,Cde],4),_de("NoSpaceBeforeTypeAnnotation",n,[58,59],[hde("insertSpaceBeforeTypeAnnotation"),Gde,Cde],16),_de("NoOptionalSemicolon",27,i,[fde("semicolons","remove"),bpe],32),_de("OptionalSemicolon",n,i,[fde("semicolons","insert"),xpe],64),_de("NoSpaceBeforeSemicolon",n,27,[Gde],16),_de("SpaceBeforeOpenBraceInControl",u,19,[yde("placeOpenBraceOnNewLineForControlBlocks"),zde,cpe,Dde],4,1),_de("SpaceBeforeOpenBraceInFunction",l,19,[yde("placeOpenBraceOnNewLineForFunctions"),Lde,Ide,cpe,Dde],4,1),_de("SpaceBeforeOpenBraceInTypeScriptDeclWithBlock",_,19,[yde("placeOpenBraceOnNewLineForFunctions"),Mde,cpe,Dde],4,1),_de("NoSpaceBeforeComma",n,28,[Gde],16),_de("NoSpaceBeforeOpenBracket",t(134,84),23,[Gde],16),_de("NoSpaceAfterCloseBracket",24,n,[Gde,ipe],16),_de("SpaceAfterSemicolon",27,n,[Gde],4),_de("SpaceBetweenForAndAwaitKeyword",99,135,[Gde],4),_de("SpaceBetweenDotDotDotAndTypeName",26,c,[Gde],16),_de("SpaceBetweenStatements",[22,92,93,84],n,[Gde,Qde,xde],4),_de("SpaceAfterTryCatchFinally",[113,85,98],19,[Gde],4)]}function _de(e,t,n,r,i,o=0){return{leftTokenRange:dde(t),rightTokenRange:dde(n),rule:{debugName:e,context:r,action:i,flags:o}}}function ude(e){return{tokens:e,isSpecific:!0}}function dde(e){return"number"==typeof e?ude([e]):Qe(e)?ude(e):e}function pde(e,t,n=[]){const r=[];for(let i=e;i<=t;i++)T(n,i)||r.push(i);return ude(r)}function fde(e,t){return n=>n.options&&n.options[e]===t}function mde(e){return t=>t.options&&De(t.options,e)&&!!t.options[e]}function gde(e){return t=>t.options&&De(t.options,e)&&!t.options[e]}function hde(e){return t=>!t.options||!De(t.options,e)||!t.options[e]}function yde(e){return t=>!t.options||!De(t.options,e)||!t.options[e]||t.TokensAreOnSameLine()}function vde(e){return t=>!t.options||!De(t.options,e)||!!t.options[e]}function bde(e){return 248===e.contextNode.kind}function xde(e){return!bde(e)}function kde(e){switch(e.contextNode.kind){case 226:return 28!==e.contextNode.operatorToken.kind;case 227:case 194:case 234:case 281:case 276:case 182:case 192:case 193:case 238:return!0;case 208:case 265:case 271:case 277:case 260:case 169:case 306:case 172:case 171:return 64===e.currentTokenSpan.kind||64===e.nextTokenSpan.kind;case 249:case 168:return 103===e.currentTokenSpan.kind||103===e.nextTokenSpan.kind||64===e.currentTokenSpan.kind||64===e.nextTokenSpan.kind;case 250:return 165===e.currentTokenSpan.kind||165===e.nextTokenSpan.kind}return!1}function Sde(e){return!kde(e)}function Tde(e){return!Cde(e)}function Cde(e){const t=e.contextNode.kind;return 172===t||171===t||169===t||260===t||s_(t)}function wde(e){return!function(e){return cD(e.contextNode)&&e.contextNode.questionToken}(e)}function Nde(e){return 227===e.contextNode.kind||194===e.contextNode.kind}function Dde(e){return e.TokensAreOnSameLine()||Ide(e)}function Fde(e){return 206===e.contextNode.kind||200===e.contextNode.kind||function(e){return Ade(e)&&(e.ContextNodeAllOnSameLine()||e.ContextNodeBlockIsOnOneLine())}(e)}function Ede(e){return Ide(e)&&!(e.NextNodeAllOnSameLine()||e.NextNodeBlockIsOnOneLine())}function Pde(e){return Ade(e)&&!(e.ContextNodeAllOnSameLine()||e.ContextNodeBlockIsOnOneLine())}function Ade(e){return Ode(e.contextNode)}function Ide(e){return Ode(e.nextTokenParent)}function Ode(e){if(Bde(e))return!0;switch(e.kind){case 241:case 269:case 210:case 268:return!0}return!1}function Lde(e){switch(e.contextNode.kind){case 262:case 174:case 173:case 177:case 178:case 179:case 218:case 176:case 219:case 264:return!0}return!1}function jde(e){return!Lde(e)}function Rde(e){return 262===e.contextNode.kind||218===e.contextNode.kind}function Mde(e){return Bde(e.contextNode)}function Bde(e){switch(e.kind){case 263:case 231:case 264:case 266:case 187:case 267:case 278:case 279:case 272:case 275:return!0}return!1}function Jde(e){switch(e.currentTokenParent.kind){case 263:case 267:case 266:case 299:case 268:case 255:return!0;case 241:{const t=e.currentTokenParent.parent;if(!t||219!==t.kind&&218!==t.kind)return!0}}return!1}function zde(e){switch(e.contextNode.kind){case 245:case 255:case 248:case 249:case 250:case 247:case 258:case 246:case 254:case 299:return!0;default:return!1}}function qde(e){return 210===e.contextNode.kind}function Ude(e){return function(e){return 213===e.contextNode.kind}(e)||function(e){return 214===e.contextNode.kind}(e)}function Vde(e){return 28!==e.currentTokenSpan.kind}function Wde(e){return 24!==e.nextTokenSpan.kind}function $de(e){return 22!==e.nextTokenSpan.kind}function Hde(e){return 219===e.contextNode.kind}function Kde(e){return 205===e.contextNode.kind}function Gde(e){return e.TokensAreOnSameLine()&&12!==e.contextNode.kind}function Xde(e){return 12!==e.contextNode.kind}function Qde(e){return 284!==e.contextNode.kind&&288!==e.contextNode.kind}function Yde(e){return 294===e.contextNode.kind||293===e.contextNode.kind}function Zde(e){return 291===e.nextTokenParent.kind||295===e.nextTokenParent.kind&&291===e.nextTokenParent.parent.kind}function epe(e){return 291===e.contextNode.kind}function tpe(e){return 295!==e.nextTokenParent.kind}function npe(e){return 295===e.nextTokenParent.kind}function rpe(e){return 285===e.contextNode.kind}function ipe(e){return!Lde(e)&&!Ide(e)}function ope(e){return e.TokensAreOnSameLine()&&Ov(e.contextNode)&&ape(e.currentTokenParent)&&!ape(e.nextTokenParent)}function ape(e){for(;e&&U_(e);)e=e.parent;return e&&170===e.kind}function spe(e){return 261===e.currentTokenParent.kind&&e.currentTokenParent.getStart(e.sourceFile)===e.currentTokenSpan.pos}function cpe(e){return 2!==e.formattingRequestKind}function lpe(e){return 267===e.contextNode.kind}function _pe(e){return 187===e.contextNode.kind}function upe(e){return 180===e.contextNode.kind}function dpe(e,t){if(30!==e.kind&&32!==e.kind)return!1;switch(t.kind){case 183:case 216:case 265:case 263:case 231:case 264:case 262:case 218:case 219:case 174:case 173:case 179:case 180:case 213:case 214:case 233:return!0;default:return!1}}function ppe(e){return dpe(e.currentTokenSpan,e.currentTokenParent)||dpe(e.nextTokenSpan,e.nextTokenParent)}function fpe(e){return 216===e.contextNode.kind}function mpe(e){return!fpe(e)}function gpe(e){return 116===e.currentTokenSpan.kind&&222===e.currentTokenParent.kind}function hpe(e){return 229===e.contextNode.kind&&void 0!==e.contextNode.expression}function ype(e){return 235===e.contextNode.kind}function vpe(e){return!function(e){switch(e.contextNode.kind){case 245:case 248:case 249:case 250:case 246:case 247:return!0;default:return!1}}(e)}function bpe(e){let t=e.nextTokenSpan.kind,n=e.nextTokenSpan.pos;if(Ph(t)){const r=e.nextTokenParent===e.currentTokenParent?LX(e.currentTokenParent,_c(e.currentTokenParent,(e=>!e.parent)),e.sourceFile):e.nextTokenParent.getFirstToken(e.sourceFile);if(!r)return!0;t=r.kind,n=r.getStart(e.sourceFile)}return e.sourceFile.getLineAndCharacterOfPosition(e.currentTokenSpan.pos).line===e.sourceFile.getLineAndCharacterOfPosition(n).line?20===t||1===t:27===t&&27===e.currentTokenSpan.kind||240!==t&&27!==t&&(264===e.contextNode.kind||265===e.contextNode.kind?!sD(e.currentTokenParent)||!!e.currentTokenParent.type||21!==t:cD(e.currentTokenParent)?!e.currentTokenParent.initializer:248!==e.currentTokenParent.kind&&242!==e.currentTokenParent.kind&&240!==e.currentTokenParent.kind&&23!==t&&21!==t&&40!==t&&41!==t&&44!==t&&14!==t&&28!==t&&228!==t&&16!==t&&15!==t&&25!==t)}function xpe(e){return pZ(e.currentTokenSpan.end,e.currentTokenParent,e.sourceFile)}function kpe(e){return!HD(e.contextNode)||!kN(e.contextNode.expression)||e.contextNode.expression.getText().includes(".")}function Spe(e,t){return{options:e,getRules:(void 0===ode&&(ode=function(e){const t=function(e){const t=new Array(Ipe*Ipe),n=new Array(t.length);for(const r of e){const e=r.leftTokenRange.isSpecific&&r.rightTokenRange.isSpecific;for(const i of r.leftTokenRange.tokens)for(const o of r.rightTokenRange.tokens){const a=Cpe(i,o);let s=t[a];void 0===s&&(s=t[a]=[]),Lpe(s,r.rule,e,n,a)}}return t}(e);return e=>{const n=t[Cpe(e.currentTokenSpan.kind,e.nextTokenSpan.kind)];if(n){const t=[];let r=0;for(const i of n){const n=~Tpe(r);i.action&n&&v(i.context,(t=>t(e)))&&(t.push(i),r|=i.action)}if(t.length)return t}}}(lde())),ode),host:t}}function Tpe(e){let t=0;return 1&e&&(t|=28),2&e&&(t|=96),28&e&&(t|=28),96&e&&(t|=96),t}function Cpe(e,t){return un.assert(e<=165&&t<=165,"Must compute formatting context from tokens"),e*Ipe+t}var wpe,Npe,Dpe,Fpe,Epe,Ppe=5,Ape=31,Ipe=166,Ope=((wpe=Ope||{})[wpe.StopRulesSpecific=0]="StopRulesSpecific",wpe[wpe.StopRulesAny=1*Ppe]="StopRulesAny",wpe[wpe.ContextRulesSpecific=2*Ppe]="ContextRulesSpecific",wpe[wpe.ContextRulesAny=3*Ppe]="ContextRulesAny",wpe[wpe.NoContextRulesSpecific=4*Ppe]="NoContextRulesSpecific",wpe[wpe.NoContextRulesAny=5*Ppe]="NoContextRulesAny",wpe);function Lpe(e,t,n,r,i){const o=3&t.action?n?0:Ope.StopRulesAny:t.context!==ade?n?Ope.ContextRulesSpecific:Ope.ContextRulesAny:n?Ope.NoContextRulesSpecific:Ope.NoContextRulesAny,a=r[i]||0;e.splice(function(e,t){let n=0;for(let r=0;r<=t;r+=Ppe)n+=e&Ape,e>>=Ppe;return n}(a,o),0,t),r[i]=function(e,t){const n=1+(e>>t&Ape);return un.assert((n&Ape)===n,"Adding more rules into the sub-bucket than allowed. Maximum allowed is 32 rules."),e&~(Ape<un.formatSyntaxKind(n)}),r}function Rpe(e,t,n){const r=t.getLineAndCharacterOfPosition(e).line;if(0===r)return[];let i=Sd(r,t);for(;qa(t.text.charCodeAt(i));)i--;return Ua(t.text.charCodeAt(i))&&i--,Kpe({pos:xd(r-1,t),end:i+1},t,n,2)}function Mpe(e,t,n){return Hpe(Vpe(Upe(e,27,t)),t,n,3)}function Bpe(e,t,n){const r=Upe(e,19,t);return r?Kpe({pos:oX(Vpe(r.parent).getStart(t),t),end:e},t,n,4):[]}function Jpe(e,t,n){return Hpe(Vpe(Upe(e,20,t)),t,n,5)}function zpe(e,t){return Kpe({pos:0,end:e.text.length},e,t,0)}function qpe(e,t,n,r){return Kpe({pos:oX(e,n),end:t},n,r,1)}function Upe(e,t,n){const r=jX(e,n);return r&&r.kind===t&&e===r.getEnd()?r:void 0}function Vpe(e){let t=e;for(;t&&t.parent&&t.parent.end===e.end&&!Wpe(t.parent,t);)t=t.parent;return t}function Wpe(e,t){switch(e.kind){case 263:case 264:return Gb(e.members,t);case 267:const n=e.body;return!!n&&268===n.kind&&Gb(n.statements,t);case 307:case 241:case 268:return Gb(e.statements,t);case 299:return Gb(e.block.statements,t)}return!1}function $pe(e,t,n,r,i,o){const a={pos:e.pos,end:e.end};return ide(t.text,n,a.pos,a.end,(n=>Gpe(a,e,r,i,n,o,1,(e=>!1),t)))}function Hpe(e,t,n,r){return e?Kpe({pos:oX(e.getStart(t),t),end:e.end},t,n,r):[]}function Kpe(e,t,n,r){const i=function(e,t){return function n(r){const i=PI(r,(n=>Xb(n.getStart(t),n.end,e)&&n));if(i){const e=n(i);if(e)return e}return r}(t)}(e,t);return ide(t.text,t.languageVariant,function(e,t,n){const r=e.getStart(n);if(r===t.pos&&e.end===t.end)return r;const i=jX(t.pos,n);return i?i.end>=t.pos?e.pos:i.end:e.pos}(i,e,t),e.end,(o=>Gpe(e,i,Epe.getIndentationForNode(i,e,t,n.options),function(e,t,n){let r,i=-1;for(;e;){const o=n.getLineAndCharacterOfPosition(e.getStart(n)).line;if(-1!==i&&o!==i)break;if(Epe.shouldIndentChildNode(t,e,r,n))return t.indentSize;i=o,r=e,e=e.parent}return 0}(i,n.options,t),o,n,r,function(e,t){if(!e.length)return i;const n=e.filter((e=>_X(t,e.start,e.start+e.length))).sort(((e,t)=>e.start-t.start));if(!n.length)return i;let r=0;return e=>{for(;;){if(r>=n.length)return!1;const t=n[r];if(e.end<=t.start)return!1;if(dX(e.pos,e.end,t.start,t.start+t.length))return!0;r++}};function i(){return!1}}(t.parseDiagnostics,e),t)))}function Gpe(e,t,n,r,i,{options:o,getRules:a,host:s},c,l,_){var u;const d=new tde(_,c,o);let f,m,g,h,y,v=-1;const x=[];if(i.advance(),i.isOnToken()){const a=_.getLineAndCharacterOfPosition(t.getStart(_)).line;let s=a;Ov(t)&&(s=_.getLineAndCharacterOfPosition(Jd(t,_)).line),function t(n,r,a,s,c,u){if(!_X(e,n.getStart(_),n.getEnd()))return;const d=T(n,a,c,u);let p=r;for(PI(n,(e=>{g(e,-1,n,d,a,s,!1)}),(t=>{!function(t,r,a,s){un.assert(El(t)),un.assert(!Zh(t));const c=function(e,t){switch(e.kind){case 176:case 262:case 218:case 174:case 173:case 219:case 179:case 180:case 184:case 185:case 177:case 178:if(e.typeParameters===t)return 30;if(e.parameters===t)return 21;break;case 213:case 214:if(e.typeArguments===t)return 30;if(e.arguments===t)return 21;break;case 263:case 231:case 264:case 265:if(e.typeParameters===t)return 30;break;case 183:case 215:case 186:case 233:case 205:if(e.typeArguments===t)return 30;break;case 187:return 19}return 0}(r,t);let l=s,u=a;if(!_X(e,t.pos,t.end))return void(t.endt.pos)break;if(e.token.kind===c){let t;if(u=_.getLineAndCharacterOfPosition(e.token.pos).line,h(e,r,s,r),-1!==v)t=v;else{const n=oX(e.token.pos,_);t=Epe.findFirstNonWhitespaceColumn(n,e.token.pos,_,o)}l=T(r,a,t,o.indentSize)}else h(e,r,s,r)}let d=-1;for(let e=0;eMath.min(n.end,e.end))break;h(t,n,d,n)}function g(r,a,s,c,l,u,d,f){if(un.assert(!Zh(r)),Cd(r)||Nd(s,r))return a;const m=r.getStart(_),g=_.getLineAndCharacterOfPosition(m).line;let b=g;Ov(r)&&(b=_.getLineAndCharacterOfPosition(Jd(r,_)).line);let x=-1;if(d&&Gb(e,s)&&(x=function(e,t,n,r,i){if(_X(r,e,t)||lX(r,e,t)){if(-1!==i)return i}else{const t=_.getLineAndCharacterOfPosition(e).line,r=oX(e,_),i=Epe.findFirstNonWhitespaceColumn(r,e,_,o);if(t!==n||e===i){const e=Epe.getBaseIndentation(o);return e>i?e:i}}return-1}(m,r.end,l,e,a),-1!==x&&(a=x)),!_X(e,r.pos,r.end))return r.ende.end)return a;if(t.token.end>m){t.token.pos>m&&i.skipToStartOf(r);break}h(t,n,c,n)}if(!i.isOnToken()||i.getTokenFullStart()>=e.end)return a;if(Fl(r)){const e=i.readTokenInfo(r);if(12!==r.kind)return un.assert(e.token.end===r.end,"Token end is child end"),h(e,n,c,r),a}const k=170===r.kind?g:u,S=function(e,t,n,r,i,a){const s=Epe.shouldIndentChildNode(o,e)?o.indentSize:0;return a===t?{indentation:t===y?v:i.getIndentation(),delta:Math.min(o.indentSize,i.getDelta(e)+s)}:-1===n?21===e.kind&&t===y?{indentation:v,delta:i.getDelta(e)}:Epe.childStartsOnTheSameLineWithElseInIfStatement(r,e,t,_)||Epe.childIsUnindentedBranchOfConditionalExpression(r,e,t,_)||Epe.argumentStartsOnSameLineAsPreviousArgument(r,e,t,_)?{indentation:i.getIndentation(),delta:s}:{indentation:i.getIndentation()+i.getDelta(e),delta:s}:{indentation:n,delta:s}}(r,g,x,n,c,k);return t(r,p,g,b,S.indentation,S.delta),p=n,f&&209===s.kind&&-1===a&&(a=S.indentation),a}function h(t,n,r,o,a){un.assert(Gb(n,t.token));const s=i.lastTrailingTriviaWasNewLine();let c=!1;t.leadingTrivia&&w(t.leadingTrivia,n,p,r);let u=0;const d=Gb(e,t.token),g=_.getLineAndCharacterOfPosition(t.token.pos);if(d){const e=l(t.token),i=m;if(u=N(t.token,g,n,p,r),!e)if(0===u){const e=i&&_.getLineAndCharacterOfPosition(i.end).line;c=s&&g.line!==e}else c=1===u}if(t.trailingTrivia&&(f=ve(t.trailingTrivia).end,w(t.trailingTrivia,n,p,r)),c){const e=d&&!l(t.token)?r.getIndentationForToken(g.line,t.token.kind,o,!!a):-1;let n=!0;if(t.leadingTrivia){const i=r.getIndentationForComment(t.token.kind,e,o);n=C(t.leadingTrivia,i,n,(e=>F(e.pos,i,!1)))}-1!==e&&n&&(F(t.token.pos,e,1===u),y=g.line,v=e)}i.advance(),p=n}}(t,t,a,s,n,r)}const S=i.getCurrentLeadingTrivia();if(S){const r=Epe.nodeWillIndentChild(o,t,void 0,_,!1)?n+o.indentSize:n;C(S,r,!0,(e=>{N(e,_.getLineAndCharacterOfPosition(e.pos),t,t,void 0),F(e.pos,r,!1)})),!1!==o.trimTrailingWhitespace&&function(t){let n=m?m.end:e.pos;for(const e of t)tQ(e.kind)&&(n=e.end){const e=i.isOnEOF()?i.readEOFTokenRange():i.isOnToken()?i.readTokenInfo(t).token:void 0;if(e&&e.pos===f){const n=(null==(u=jX(e.end,_,t))?void 0:u.parent)||g;D(e,_.getLineAndCharacterOfPosition(e.pos).line,n,m,h,g,n,void 0)}}return x;function T(e,t,n,r){return{getIndentationForComment:(e,t,r)=>{switch(e){case 20:case 24:case 22:return n+i(r)}return-1!==t?t:n},getIndentationForToken:(r,o,a,s)=>!s&&function(n,r,i){switch(r){case 19:case 20:case 22:case 93:case 117:case 60:return!1;case 44:case 32:switch(i.kind){case 286:case 287:case 285:return!1}break;case 23:case 24:if(200!==i.kind)return!1}return t!==n&&!(Ov(e)&&r===function(e){if(rI(e)){const t=b(e.modifiers,Yl,k(e.modifiers,aD));if(t)return t.kind}switch(e.kind){case 263:return 86;case 264:return 120;case 262:return 100;case 266:return 266;case 177:return 139;case 178:return 153;case 174:if(e.asteriskToken)return 42;case 172:case 169:const t=Tc(e);if(t)return t.kind}}(e))}(r,o,a)?n+i(a):n,getIndentation:()=>n,getDelta:i,recomputeIndentation:(t,i)=>{Epe.shouldIndentChildNode(o,i,e,_)&&(n+=t?o.indentSize:-o.indentSize,r=Epe.shouldIndentChildNode(o,e)?o.indentSize:0)}};function i(t){return Epe.nodeWillIndentChild(o,e,t,_,!0)?r:0}}function C(t,n,r,i){for(const o of t){const t=Gb(e,o);switch(o.kind){case 3:t&&E(o,n,!r),r=!1;break;case 2:r&&t&&i(o),r=!1;break;case 4:r=!0}}return r}function w(t,n,r,i){for(const o of t)tQ(o.kind)&&Gb(e,o)&&N(o,_.getLineAndCharacterOfPosition(o.pos),n,r,i)}function N(t,n,r,i,o){let a=0;return l(t)||(m?a=D(t,n.line,r,m,h,g,i,o):P(_.getLineAndCharacterOfPosition(e.pos).line,n.line)),m=t,f=t.end,g=r,h=n.line,a}function D(e,t,n,r,i,c,l,u){d.updateContext(r,c,e,n,l);const f=a(d);let m=!1!==d.options.trimTrailingWhitespace,g=0;return f?p(f,(a=>{if(g=function(e,t,n,r,i){const a=i!==n;switch(e.action){case 1:return 0;case 16:if(t.end!==r.pos)return O(t.end,r.pos-t.end),a?2:0;break;case 32:O(t.pos,t.end-t.pos);break;case 8:if(1!==e.flags&&n!==i)return 0;if(1!=i-n)return L(t.end,r.pos-t.end,kY(s,o)),a?0:1;break;case 4:if(1!==e.flags&&n!==i)return 0;if(1!=r.pos-t.end||32!==_.text.charCodeAt(t.end))return L(t.end,r.pos-t.end," "),a?2:0;break;case 64:c=t.end,";"&&x.push(yQ(c,0,";"))}var c;return 0}(a,r,i,e,t),u)switch(g){case 2:n.getStart(_)===e.pos&&u.recomputeIndentation(!1,l);break;case 1:n.getStart(_)===e.pos&&u.recomputeIndentation(!0,l);break;default:un.assert(0===g)}m=m&&!(16&a.action)&&1!==a.flags})):m=m&&1!==e.kind,t!==i&&m&&P(i,t,r),g}function F(e,t,n){const r=Qpe(t,o);if(n)L(e,0,r);else{const n=_.getLineAndCharacterOfPosition(e),i=xd(n.line,_);(t!==function(e,t){let n=0;for(let r=0;r0){const e=Qpe(r,o);L(t,n.character,e)}else O(t,n.character)}}function P(e,t,n){for(let r=e;rt)continue;const i=A(e,t);-1!==i&&(un.assert(i===e||!qa(_.text.charCodeAt(i-1))),O(i,t+1-i))}}function A(e,t){let n=t;for(;n>=e&&qa(_.text.charCodeAt(n));)n--;return n!==t?n+1:-1}function I(e,t,n){P(_.getLineAndCharacterOfPosition(e).line,_.getLineAndCharacterOfPosition(t).line+1,n)}function O(e,t){t&&x.push(yQ(e,t,""))}function L(e,t,n){(t||n)&&x.push(yQ(e,t,n))}}function Xpe(e,t,n,r=PX(e,t)){const i=_c(r,iP);if(i&&(r=i.parent),r.getStart(e)<=t&&tcX(n,t)||t===n.end&&(2===n.kind||t===e.getFullWidth())))}function Qpe(e,t){if((!Npe||Npe.tabSize!==t.tabSize||Npe.indentSize!==t.indentSize)&&(Npe={tabSize:t.tabSize,indentSize:t.indentSize},Dpe=Fpe=void 0),t.convertTabsToSpaces){let n;const r=Math.floor(e/t.indentSize),i=e%t.indentSize;return Fpe||(Fpe=[]),void 0===Fpe[r]?(n=wQ(" ",t.indentSize*r),Fpe[r]=n):n=Fpe[r],i?n+wQ(" ",i):n}{const n=Math.floor(e/t.tabSize),r=e-n*t.tabSize;let i;return Dpe||(Dpe=[]),void 0===Dpe[n]?Dpe[n]=i=wQ("\t",n):i=Dpe[n],r?i+wQ(" ",r):i}}(e=>{let t;var n;function r(e){return e.baseIndentSize||0}function i(e,t,n,i,s,c,l){var f;let m=e.parent;for(;m;){let r=!0;if(n){const t=e.getStart(s);r=tn.end}const h=o(m,e,s),y=h.line===t.line||d(m,e,t.line,s);if(r){const n=null==(f=p(e,s))?void 0:f[0];let r=g(e,s,l,!!n&&_(n,s).line>h.line);if(-1!==r)return r+i;if(r=a(e,m,t,y,s,l),-1!==r)return r+i}S(l,m,e,s,c)&&!y&&(i+=l.indentSize);const v=u(m,e,t.line,s);m=(e=m).parent,t=v?s.getLineAndCharacterOfPosition(e.getStart(s)):h}return i+r(l)}function o(e,t,n){const r=p(t,n),i=r?r.pos:e.getStart(n);return n.getLineAndCharacterOfPosition(i)}function a(e,t,n,r,i,o){return!lu(e)&&!uu(e)||307!==t.kind&&r?-1:y(n,i,o)}let s;var c;function l(e,t,n,r){const i=LX(e,t,r);return i?19===i.kind?1:20===i.kind&&n===_(i,r).line?2:0:0}function _(e,t){return t.getLineAndCharacterOfPosition(e.getStart(t))}function u(e,t,n,r){return!(!GD(e)||!T(e.arguments,t))&&Ja(r,e.expression.getEnd()).line===n}function d(e,t,n,r){if(245===e.kind&&e.elseStatement===t){const t=yX(e,93,r);return un.assert(void 0!==t),_(t,r).line===n}return!1}function p(e,t){return e.parent&&f(e.getStart(t),e.getEnd(),e.parent,t)}function f(e,t,n,r){switch(n.kind){case 183:return i(n.typeArguments);case 210:return i(n.properties);case 209:case 275:case 279:case 206:case 207:return i(n.elements);case 187:return i(n.members);case 262:case 218:case 219:case 174:case 173:case 179:case 176:case 185:case 180:return i(n.typeParameters)||i(n.parameters);case 177:return i(n.parameters);case 263:case 231:case 264:case 265:case 345:return i(n.typeParameters);case 214:case 213:return i(n.typeArguments)||i(n.arguments);case 261:return i(n.declarations)}function i(i){return i&&lX(function(e,t,n){const r=e.getChildren(n);for(let e=1;e=0&&t=0;o--)if(28!==e[o].kind){if(n.getLineAndCharacterOfPosition(e[o].end).line!==i.line)return y(i,n,r);i=_(e[o],n)}return-1}function y(e,t,n){const r=t.getPositionOfLineAndCharacter(e.line,0);return x(r,r+e.character,t,n)}function v(e,t,n,r){let i=0,o=0;for(let a=e;at.text.length)return r(n);if(0===n.indentStyle)return 0;const a=jX(e,t,void 0,!0),s=Xpe(t,e,a||null);if(s&&3===s.kind)return function(e,t,n,r){const i=Ja(e,t).line-1,o=Ja(e,r.pos).line;if(un.assert(o>=0),i<=o)return x(xd(o,e),t,e,n);const a=xd(i,e),{column:s,character:c}=v(a,t,e,n);if(0===s)return s;return 42===e.text.charCodeAt(a+c)?s-1:s}(t,e,n,s);if(!a)return r(n);if(nQ(a.kind)&&a.getStart(t)<=e&&e0&&za(e.text.charCodeAt(r));)r--;return x(oX(r,e),r,e,n)}(t,e,n);if(28===a.kind&&226!==a.parent.kind){const e=function(e,t,n){const r=gX(e);return r&&r.listItemIndex>0?h(r.list.getChildren(),r.listItemIndex-1,t,n):-1}(a,t,n);if(-1!==e)return e}const p=function(e,t,n){return t&&f(e,e,t,n)}(e,a.parent,t);if(p&&!Gb(p,a)){const e=[218,219].includes(u.parent.kind)?0:n.indentSize;return m(p,t,n)+e}return function(e,t,n,o,a,s){let c,u=n;for(;u;){if(pX(u,t,e)&&S(s,u,c,e,!0)){const t=_(u,e),r=l(n,u,o,e);return i(u,t,void 0,0!==r?a&&2===r?s.indentSize:0:o!==t.line?s.indentSize:0,e,!0,s)}const r=g(u,e,s,!0);if(-1!==r)return r;c=u,u=u.parent}return r(s)}(t,e,a,c,o,n)},e.getIndentationForNode=function(e,t,n,r){const o=n.getLineAndCharacterOfPosition(e.getStart(n));return i(e,o,t,0,n,!1,r)},e.getBaseIndentation=r,(c=s||(s={}))[c.Unknown=0]="Unknown",c[c.OpenBrace=1]="OpenBrace",c[c.CloseBrace=2]="CloseBrace",e.isArgumentAndStartLineOverlapsExpressionBeingCalled=u,e.childStartsOnTheSameLineWithElseInIfStatement=d,e.childIsUnindentedBranchOfConditionalExpression=function(e,t,n,r){if(lF(e)&&(t===e.whenTrue||t===e.whenFalse)){const i=Ja(r,e.condition.end).line;if(t===e.whenTrue)return n===i;{const t=_(e.whenTrue,r).line,o=Ja(r,e.whenTrue.end).line;return i===t&&o===n}}return!1},e.argumentStartsOnSameLineAsPreviousArgument=function(e,t,n,r){if(L_(e)){if(!e.arguments)return!1;const i=b(e.arguments,(e=>e.pos===t.pos));if(!i)return!1;const o=e.arguments.indexOf(i);if(0===o)return!1;if(n===Ja(r,e.arguments[o-1].getEnd()).line)return!0}return!1},e.getContainingList=p,e.findFirstNonWhitespaceCharacterAndColumn=v,e.findFirstNonWhitespaceColumn=x,e.nodeWillIndentChild=k,e.shouldIndentChildNode=S})(Epe||(Epe={}));var Ype={};function Zpe(e,t,n){let r=!1;return t.forEach((t=>{const i=_c(PX(e,t.pos),(e=>Gb(e,t)));i&&PI(i,(function i(o){var a;if(!r){if(zN(o)&&sX(t,o.getStart(e))){const t=n.resolveName(o.text,o,-1,!1);if(t&&t.declarations)for(const n of t.declarations)if($6(n)||o.text&&e.symbol&&(null==(a=e.symbol.exports)?void 0:a.has(o.escapedText)))return void(r=!0)}o.forEachChild(i)}}))})),r}i(Ype,{preparePasteEdits:()=>Zpe});var efe={};i(efe,{pasteEditsProvider:()=>nfe});var tfe="providePostPasteEdits";function nfe(e,t,n,r,i,o,a,s){const c=Tue.ChangeTracker.with({host:i,formatContext:a,preferences:o},(c=>function(e,t,n,r,i,o,a,s,c){let l;t.length!==n.length&&(l=1===t.length?t[0]:t.join(kY(a.host,a.options)));const _=[];let u,d=e.text;for(let e=n.length-1;e>=0;e--){const{pos:r,end:i}=n[e];d=l?d.slice(0,r)+l+d.slice(i):d.slice(0,r)+t[e]+d.slice(i)}un.checkDefined(i.runWithTemporaryFileUpdate).call(i,e.fileName,d,((d,p,f)=>{if(u=f7.createImportAdder(f,d,o,i),null==r?void 0:r.range){un.assert(r.range.length===t.length),r.range.forEach((e=>{const t=r.file.statements,n=k(t,(t=>t.end>e.pos));if(-1===n)return;let i=k(t,(t=>t.end>=e.end),n);-1!==i&&e.end<=t[i].getStart()&&i--,_.push(...t.slice(n,-1===i?t.length:i+1))})),un.assertIsDefined(p,"no original program found");const n=p.getTypeChecker(),o=function({file:e,range:t}){const n=t[0].pos,r=t[t.length-1].end,i=PX(e,n),o=OX(e,n)??PX(e,r);return{pos:zN(i)&&n<=i.getStart(e)?i.getFullStart():n,end:zN(o)&&r===o.getEnd()?Tue.getAdjustedEndPosition(e,o,{}):r}}(r),a=U6(r.file,_,n,Y6(f,_,n),o),s=!KZ(e.fileName,p,i,!!r.file.commonJsModuleIndicator);S6(r.file,a.targetFileImportsFromOldFile,c,s),n3(r.file,a.oldImportsNeededByTargetFile,a.targetFileImportsFromOldFile,n,d,u)}else{const e={sourceFile:f,program:p,cancellationToken:s,host:i,preferences:o,formatContext:a};let r=0;n.forEach(((n,i)=>{const o=n.end-n.pos,a=l??t[i],s=n.pos+r,c={pos:s,end:s+a.length};r+=a.length-o;const _=_c(PX(e.sourceFile,c.pos),(e=>Gb(e,c)));_&&PI(_,(function t(n){if(zN(n)&&sX(c,n.getStart(f))&&!(null==d?void 0:d.getTypeChecker().resolveName(n.text,n,-1,!1)))return u.addImportForUnresolvedIdentifier(e,n,!0);n.forEachChild(t)}))}))}u.writeFixes(c,BQ(r?r.file:e,o))})),u.hasFixes()&&n.forEach(((n,r)=>{c.replaceRangeWithText(e,{pos:n.pos,end:n.end},l??t[r])}))}(e,t,n,r,i,o,a,s,c)));return{edits:c,fixId:tfe}}var rfe={};i(rfe,{ANONYMOUS:()=>aZ,AccessFlags:()=>Xr,AssertionLevel:()=>ft,AssignmentDeclarationKind:()=>ai,AssignmentKind:()=>Hg,Associativity:()=>ey,BreakpointResolver:()=>$8,BuilderFileEmit:()=>jV,BuilderProgramKind:()=>_W,BuilderState:()=>OV,CallHierarchy:()=>K8,CharacterCodes:()=>ki,CheckFlags:()=>Ur,CheckMode:()=>EB,ClassificationType:()=>CG,ClassificationTypeNames:()=>TG,CommentDirectiveType:()=>Tr,Comparison:()=>c,CompletionInfoFlags:()=>hG,CompletionTriggerKind:()=>lG,Completions:()=>oae,ContainerFlags:()=>FM,ContextFlags:()=>Or,Debug:()=>un,DiagnosticCategory:()=>si,Diagnostics:()=>la,DocumentHighlights:()=>d0,ElementFlags:()=>Gr,EmitFlags:()=>wi,EmitHint:()=>Ei,EmitOnly:()=>Dr,EndOfLineState:()=>bG,ExitStatus:()=>Er,ExportKind:()=>YZ,Extension:()=>Si,ExternalEmitHelpers:()=>Fi,FileIncludeKind:()=>wr,FilePreprocessingDiagnosticsKind:()=>Nr,FileSystemEntryKind:()=>no,FileWatcherEventKind:()=>Bi,FindAllReferences:()=>ice,FlattenLevel:()=>oz,FlowFlags:()=>Sr,ForegroundColorEscapeSequences:()=>PU,FunctionFlags:()=>Ah,GeneratedIdentifierFlags:()=>br,GetLiteralTextFlags:()=>ep,GoToDefinition:()=>Wce,HighlightSpanKind:()=>uG,IdentifierNameMap:()=>OJ,ImportKind:()=>QZ,ImportsNotUsedAsValues:()=>gi,IndentStyle:()=>dG,IndexFlags:()=>Qr,IndexKind:()=>ti,InferenceFlags:()=>ii,InferencePriority:()=>ri,InlayHintKind:()=>_G,InlayHints:()=>lle,InternalEmitFlags:()=>Ni,InternalNodeBuilderFlags:()=>jr,InternalSymbolName:()=>Vr,IntersectionFlags:()=>Ir,InvalidatedProjectKind:()=>nH,JSDocParsingMode:()=>ji,JsDoc:()=>fle,JsTyping:()=>DK,JsxEmit:()=>mi,JsxFlags:()=>hr,JsxReferenceKind:()=>Yr,LanguageFeatureMinimumTarget:()=>Di,LanguageServiceMode:()=>oG,LanguageVariant:()=>bi,LexicalEnvironmentFlags:()=>Ai,ListFormat:()=>Ii,LogLevel:()=>dn,MapCode:()=>Ole,MemberOverrideStatus:()=>Pr,ModifierFlags:()=>gr,ModuleDetectionKind:()=>_i,ModuleInstanceState:()=>CM,ModuleKind:()=>fi,ModuleResolutionKind:()=>li,ModuleSpecifierEnding:()=>LS,NavigateTo:()=>R1,NavigationBar:()=>K1,NewLineKind:()=>hi,NodeBuilderFlags:()=>Lr,NodeCheckFlags:()=>Wr,NodeFactoryFlags:()=>jC,NodeFlags:()=>mr,NodeResolutionFeatures:()=>SR,ObjectFlags:()=>Hr,OperationCanceledException:()=>Cr,OperatorPrecedence:()=>oy,OrganizeImports:()=>Jle,OrganizeImportsMode:()=>cG,OuterExpressionKinds:()=>Pi,OutliningElementsCollector:()=>h_e,OutliningSpanKind:()=>yG,OutputFileType:()=>vG,PackageJsonAutoImportPreference:()=>iG,PackageJsonDependencyGroup:()=>rG,PatternMatchKind:()=>B0,PollingInterval:()=>Ji,PollingWatchKind:()=>pi,PragmaKindFlags:()=>Oi,PredicateSemantics:()=>vr,PreparePasteEdits:()=>Ype,PrivateIdentifierKind:()=>Bw,ProcessLevel:()=>wz,ProgramUpdateLevel:()=>cU,QuotePreference:()=>RQ,RegularExpressionFlags:()=>xr,RelationComparisonResult:()=>yr,Rename:()=>w_e,ScriptElementKind:()=>kG,ScriptElementKindModifier:()=>SG,ScriptKind:()=>yi,ScriptSnapshot:()=>XK,ScriptTarget:()=>vi,SemanticClassificationFormat:()=>sG,SemanticMeaning:()=>NG,SemicolonPreference:()=>pG,SignatureCheckMode:()=>PB,SignatureFlags:()=>ei,SignatureHelp:()=>I_e,SignatureInfo:()=>LV,SignatureKind:()=>Zr,SmartSelectionRange:()=>iue,SnippetKind:()=>Ci,StatisticType:()=>zH,StructureIsReused:()=>Fr,SymbolAccessibility:()=>Br,SymbolDisplay:()=>mue,SymbolDisplayPartKind:()=>gG,SymbolFlags:()=>qr,SymbolFormatFlags:()=>Mr,SyntaxKind:()=>fr,Ternary:()=>oi,ThrottledCancellationToken:()=>R8,TokenClass:()=>xG,TokenFlags:()=>kr,TransformFlags:()=>Ti,TypeFacts:()=>DB,TypeFlags:()=>$r,TypeFormatFlags:()=>Rr,TypeMapKind:()=>ni,TypePredicateKind:()=>Jr,TypeReferenceSerializationKind:()=>zr,UnionReduction:()=>Ar,UpToDateStatusType:()=>F$,VarianceFlags:()=>Kr,Version:()=>bn,VersionRange:()=>kn,WatchDirectoryFlags:()=>xi,WatchDirectoryKind:()=>di,WatchFileKind:()=>ui,WatchLogLevel:()=>gU,WatchType:()=>p$,accessPrivateIdentifier:()=>tz,addEmitFlags:()=>rw,addEmitHelper:()=>Sw,addEmitHelpers:()=>Tw,addInternalEmitFlags:()=>ow,addNodeFactoryPatcher:()=>MC,addObjectAllocatorPatcher:()=>Mx,addRange:()=>se,addRelatedInfo:()=>iT,addSyntheticLeadingComment:()=>gw,addSyntheticTrailingComment:()=>vw,addToSeen:()=>vx,advancedAsyncSuperHelper:()=>bN,affectsDeclarationPathOptionDeclarations:()=>yO,affectsEmitOptionDeclarations:()=>hO,allKeysStartWithDot:()=>ZR,altDirectorySeparator:()=>_o,and:()=>Zt,append:()=>ie,appendIfUnique:()=>le,arrayFrom:()=>Oe,arrayIsEqualTo:()=>te,arrayIsHomogeneous:()=>bT,arrayOf:()=>Ie,arrayReverseIterator:()=>ue,arrayToMap:()=>Re,arrayToMultiMap:()=>Be,arrayToNumericMap:()=>Me,assertType:()=>nn,assign:()=>Le,asyncSuperHelper:()=>vN,attachFileToDiagnostics:()=>Hx,base64decode:()=>Sb,base64encode:()=>kb,binarySearch:()=>Te,binarySearchKey:()=>Ce,bindSourceFile:()=>AM,breakIntoCharacterSpans:()=>t1,breakIntoWordSpans:()=>n1,buildLinkParts:()=>bY,buildOpts:()=>DO,buildOverload:()=>lfe,bundlerModuleNameResolver:()=>TR,canBeConvertedToAsync:()=>w1,canHaveDecorators:()=>iI,canHaveExportModifier:()=>UT,canHaveFlowNode:()=>Ig,canHaveIllegalDecorators:()=>NA,canHaveIllegalModifiers:()=>DA,canHaveIllegalType:()=>CA,canHaveIllegalTypeParameters:()=>wA,canHaveJSDoc:()=>Og,canHaveLocals:()=>au,canHaveModifiers:()=>rI,canHaveModuleSpecifier:()=>gg,canHaveSymbol:()=>ou,canIncludeBindAndCheckDiagnostics:()=>uT,canJsonReportNoInputFiles:()=>ZL,canProduceDiagnostics:()=>aq,canUsePropertyAccess:()=>WT,canWatchAffectingLocation:()=>IW,canWatchAtTypes:()=>EW,canWatchDirectoryOrFile:()=>DW,canWatchDirectoryOrFilePath:()=>FW,cartesianProduct:()=>an,cast:()=>nt,chainBundle:()=>NJ,chainDiagnosticMessages:()=>Yx,changeAnyExtension:()=>$o,changeCompilerHostLikeToUseCache:()=>NU,changeExtension:()=>VS,changeFullExtension:()=>Ho,changesAffectModuleResolution:()=>Qu,changesAffectingProgramStructure:()=>Yu,characterCodeToRegularExpressionFlag:()=>Aa,childIsDecorated:()=>fm,classElementOrClassElementParameterIsDecorated:()=>gm,classHasClassThisAssignment:()=>gz,classHasDeclaredOrExplicitlyAssignedName:()=>kz,classHasExplicitlyAssignedName:()=>xz,classOrConstructorParameterIsDecorated:()=>mm,classicNameResolver:()=>yM,classifier:()=>d7,cleanExtendedConfigCache:()=>uU,clear:()=>F,clearMap:()=>_x,clearSharedExtendedConfigFileWatcher:()=>_U,climbPastPropertyAccess:()=>zG,clone:()=>qe,cloneCompilerOptions:()=>sQ,closeFileWatcher:()=>tx,closeFileWatcherOf:()=>vU,codefix:()=>f7,collapseTextChangeRangesAcrossMultipleVersions:()=>Xs,collectExternalModuleInfo:()=>PJ,combine:()=>oe,combinePaths:()=>jo,commandLineOptionOfCustomType:()=>CO,commentPragmas:()=>Li,commonOptionsWithBuild:()=>uO,compact:()=>ne,compareBooleans:()=>Ot,compareDataObjects:()=>lx,compareDiagnostics:()=>tk,compareEmitHelpers:()=>zw,compareNumberOfDirectorySeparators:()=>BS,comparePaths:()=>Yo,comparePathsCaseInsensitive:()=>Qo,comparePathsCaseSensitive:()=>Xo,comparePatternKeys:()=>tM,compareProperties:()=>It,compareStringsCaseInsensitive:()=>St,compareStringsCaseInsensitiveEslintCompatible:()=>Tt,compareStringsCaseSensitive:()=>Ct,compareStringsCaseSensitiveUI:()=>At,compareTextSpans:()=>bt,compareValues:()=>vt,compilerOptionsAffectDeclarationPath:()=>Uk,compilerOptionsAffectEmit:()=>qk,compilerOptionsAffectSemanticDiagnostics:()=>zk,compilerOptionsDidYouMeanDiagnostics:()=>UO,compilerOptionsIndicateEsModules:()=>PQ,computeCommonSourceDirectoryOfFilenames:()=>kU,computeLineAndCharacterOfPosition:()=>Ra,computeLineOfPosition:()=>Ma,computeLineStarts:()=>Ia,computePositionOfLineAndCharacter:()=>La,computeSignatureWithDiagnostics:()=>pW,computeSuggestionDiagnostics:()=>g1,computedOptions:()=>mk,concatenate:()=>K,concatenateDiagnosticMessageChains:()=>Zx,consumesNodeCoreModules:()=>CZ,contains:()=>T,containsIgnoredPath:()=>PT,containsObjectRestOrSpread:()=>tI,containsParseError:()=>gd,containsPath:()=>Zo,convertCompilerOptionsForTelemetry:()=>Pj,convertCompilerOptionsFromJson:()=>ij,convertJsonOption:()=>dj,convertToBase64:()=>xb,convertToJson:()=>bL,convertToObject:()=>vL,convertToOptionsWithAbsolutePaths:()=>OL,convertToRelativePath:()=>ra,convertToTSConfig:()=>SL,convertTypeAcquisitionFromJson:()=>oj,copyComments:()=>UY,copyEntries:()=>rd,copyLeadingComments:()=>KY,copyProperties:()=>Ve,copyTrailingAsLeadingComments:()=>XY,copyTrailingComments:()=>GY,couldStartTrivia:()=>Ga,countWhere:()=>w,createAbstractBuilder:()=>CW,createAccessorPropertyBackingField:()=>GA,createAccessorPropertyGetRedirector:()=>XA,createAccessorPropertySetRedirector:()=>QA,createBaseNodeFactory:()=>FC,createBinaryExpressionTrampoline:()=>UA,createBuilderProgram:()=>fW,createBuilderProgramUsingIncrementalBuildInfo:()=>vW,createBuilderStatusReporter:()=>j$,createCacheableExportInfoMap:()=>ZZ,createCachedDirectoryStructureHost:()=>sU,createClassifier:()=>u0,createCommentDirectivesMap:()=>Md,createCompilerDiagnostic:()=>Xx,createCompilerDiagnosticForInvalidCustomType:()=>OO,createCompilerDiagnosticFromMessageChain:()=>Qx,createCompilerHost:()=>SU,createCompilerHostFromProgramHost:()=>m$,createCompilerHostWorker:()=>wU,createDetachedDiagnostic:()=>Vx,createDiagnosticCollection:()=>ly,createDiagnosticForFileFromMessageChain:()=>Up,createDiagnosticForNode:()=>jp,createDiagnosticForNodeArray:()=>Rp,createDiagnosticForNodeArrayFromMessageChain:()=>Jp,createDiagnosticForNodeFromMessageChain:()=>Bp,createDiagnosticForNodeInSourceFile:()=>Mp,createDiagnosticForRange:()=>Wp,createDiagnosticMessageChainFromDiagnostic:()=>Vp,createDiagnosticReporter:()=>VW,createDocumentPositionMapper:()=>kJ,createDocumentRegistry:()=>N0,createDocumentRegistryInternal:()=>D0,createEmitAndSemanticDiagnosticsBuilderProgram:()=>TW,createEmitHelperFactory:()=>Jw,createEmptyExports:()=>BP,createEvaluator:()=>fC,createExpressionForJsxElement:()=>VP,createExpressionForJsxFragment:()=>WP,createExpressionForObjectLiteralElementLike:()=>GP,createExpressionForPropertyName:()=>KP,createExpressionFromEntityName:()=>HP,createExternalHelpersImportDeclarationIfNeeded:()=>pA,createFileDiagnostic:()=>Kx,createFileDiagnosticFromMessageChain:()=>qp,createFlowNode:()=>EM,createForOfBindingStatement:()=>$P,createFutureSourceFile:()=>XZ,createGetCanonicalFileName:()=>Wt,createGetIsolatedDeclarationErrors:()=>lq,createGetSourceFile:()=>TU,createGetSymbolAccessibilityDiagnosticForNode:()=>cq,createGetSymbolAccessibilityDiagnosticForNodeName:()=>sq,createGetSymbolWalker:()=>MM,createIncrementalCompilerHost:()=>C$,createIncrementalProgram:()=>w$,createJsxFactoryExpression:()=>UP,createLanguageService:()=>J8,createLanguageServiceSourceFile:()=>I8,createMemberAccessForPropertyName:()=>JP,createModeAwareCache:()=>uR,createModeAwareCacheKey:()=>_R,createModeMismatchDetails:()=>ud,createModuleNotFoundChain:()=>_d,createModuleResolutionCache:()=>mR,createModuleResolutionLoader:()=>eV,createModuleResolutionLoaderUsingGlobalCache:()=>JW,createModuleSpecifierResolutionHost:()=>AQ,createMultiMap:()=>$e,createNameResolver:()=>hC,createNodeConverters:()=>AC,createNodeFactory:()=>BC,createOptionNameMap:()=>EO,createOverload:()=>cfe,createPackageJsonImportFilter:()=>TZ,createPackageJsonInfo:()=>SZ,createParenthesizerRules:()=>EC,createPatternMatcher:()=>z0,createPrinter:()=>rU,createPrinterWithDefaults:()=>Zq,createPrinterWithRemoveComments:()=>eU,createPrinterWithRemoveCommentsNeverAsciiEscape:()=>tU,createPrinterWithRemoveCommentsOmitTrailingSemicolon:()=>nU,createProgram:()=>bV,createProgramHost:()=>y$,createPropertyNameNodeForIdentifierOrLiteral:()=>BT,createQueue:()=>Ge,createRange:()=>Pb,createRedirectedBuilderProgram:()=>kW,createResolutionCache:()=>zW,createRuntimeTypeSerializer:()=>Oz,createScanner:()=>ms,createSemanticDiagnosticsBuilderProgram:()=>SW,createSet:()=>Xe,createSolutionBuilder:()=>J$,createSolutionBuilderHost:()=>M$,createSolutionBuilderWithWatch:()=>z$,createSolutionBuilderWithWatchHost:()=>B$,createSortedArray:()=>Y,createSourceFile:()=>LI,createSourceMapGenerator:()=>oJ,createSourceMapSource:()=>QC,createSuperAccessVariableStatement:()=>Mz,createSymbolTable:()=>Hu,createSymlinkCache:()=>Gk,createSyntacticTypeNodeBuilder:()=>NK,createSystemWatchFunctions:()=>oo,createTextChange:()=>vQ,createTextChangeFromStartLength:()=>yQ,createTextChangeRange:()=>Ks,createTextRangeFromNode:()=>mQ,createTextRangeFromSpan:()=>hQ,createTextSpan:()=>Vs,createTextSpanFromBounds:()=>Ws,createTextSpanFromNode:()=>pQ,createTextSpanFromRange:()=>gQ,createTextSpanFromStringLiteralLikeContent:()=>fQ,createTextWriter:()=>Iy,createTokenRange:()=>jb,createTypeChecker:()=>BB,createTypeReferenceDirectiveResolutionCache:()=>gR,createTypeReferenceResolutionLoader:()=>rV,createWatchCompilerHost:()=>N$,createWatchCompilerHostOfConfigFile:()=>x$,createWatchCompilerHostOfFilesAndCompilerOptions:()=>k$,createWatchFactory:()=>f$,createWatchHost:()=>d$,createWatchProgram:()=>D$,createWatchStatusReporter:()=>KW,createWriteFileMeasuringIO:()=>CU,declarationNameToString:()=>Ep,decodeMappings:()=>pJ,decodedTextSpanIntersectsWith:()=>Bs,deduplicate:()=>Q,defaultInitCompilerOptions:()=>IO,defaultMaximumTruncationLength:()=>Uu,diagnosticCategoryName:()=>ci,diagnosticToString:()=>UZ,diagnosticsEqualityComparer:()=>ok,directoryProbablyExists:()=>Nb,directorySeparator:()=>lo,displayPart:()=>sY,displayPartsToString:()=>D8,disposeEmitNodes:()=>ew,documentSpansEqual:()=>YQ,dumpTracingLegend:()=>pr,elementAt:()=>pe,elideNodes:()=>WA,emitDetachedComments:()=>vv,emitFiles:()=>Gq,emitFilesAndReportErrors:()=>c$,emitFilesAndReportErrorsAndGetExitStatus:()=>l$,emitModuleKindIsNonNodeESM:()=>Ik,emitNewLineBeforeLeadingCommentOfPosition:()=>yv,emitResolverSkipsTypeChecking:()=>Kq,emitSkippedWithNoDiagnostics:()=>CV,emptyArray:()=>l,emptyFileSystemEntries:()=>tT,emptyMap:()=>_,emptyOptions:()=>aG,endsWith:()=>Rt,ensurePathIsNonModuleName:()=>Wo,ensureScriptKind:()=>yS,ensureTrailingDirectorySeparator:()=>Vo,entityNameToString:()=>Lp,enumerateInsertsAndDeletes:()=>on,equalOwnProperties:()=>je,equateStringsCaseInsensitive:()=>gt,equateStringsCaseSensitive:()=>ht,equateValues:()=>mt,escapeJsxAttributeString:()=>Ny,escapeLeadingUnderscores:()=>pc,escapeNonAsciiString:()=>ky,escapeSnippetText:()=>RT,escapeString:()=>by,escapeTemplateSubstitution:()=>uy,evaluatorResult:()=>pC,every:()=>v,exclusivelyPrefixedNodeCoreModules:()=>TC,executeCommandLine:()=>rK,expandPreOrPostfixIncrementOrDecrementExpression:()=>XP,explainFiles:()=>n$,explainIfFileIsRedirectAndImpliedFormat:()=>r$,exportAssignmentIsAlias:()=>fh,expressionResultIsUnused:()=>ET,extend:()=>Ue,extensionFromPath:()=>QS,extensionIsTS:()=>GS,extensionsNotSupportingExtensionlessResolution:()=>FS,externalHelpersModuleNameText:()=>qu,factory:()=>XC,fileExtensionIs:()=>ko,fileExtensionIsOneOf:()=>So,fileIncludeReasonToDiagnostics:()=>a$,fileShouldUseJavaScriptRequire:()=>KZ,filter:()=>N,filterMutate:()=>D,filterSemanticDiagnostics:()=>NV,find:()=>b,findAncestor:()=>_c,findBestPatternMatch:()=>Kt,findChildOfKind:()=>yX,findComputedPropertyNameCacheAssignment:()=>YA,findConfigFile:()=>bU,findConstructorDeclaration:()=>gC,findContainingList:()=>vX,findDiagnosticForNode:()=>DZ,findFirstNonJsxWhitespaceToken:()=>IX,findIndex:()=>k,findLast:()=>x,findLastIndex:()=>S,findListItemInfo:()=>gX,findModifier:()=>KQ,findNextToken:()=>LX,findPackageJson:()=>kZ,findPackageJsons:()=>xZ,findPrecedingMatchingToken:()=>$X,findPrecedingToken:()=>jX,findSuperStatementIndexPath:()=>qJ,findTokenOnLeftOfPosition:()=>OX,findUseStrictPrologue:()=>tA,first:()=>ge,firstDefined:()=>f,firstDefinedIterator:()=>m,firstIterator:()=>he,firstOrOnly:()=>IZ,firstOrUndefined:()=>fe,firstOrUndefinedIterator:()=>me,fixupCompilerOptions:()=>j1,flatMap:()=>O,flatMapIterator:()=>j,flatMapToMutable:()=>L,flatten:()=>I,flattenCommaList:()=>eI,flattenDestructuringAssignment:()=>az,flattenDestructuringBinding:()=>lz,flattenDiagnosticMessageText:()=>UU,forEach:()=>d,forEachAncestor:()=>ed,forEachAncestorDirectory:()=>aa,forEachAncestorDirectoryStoppingAtGlobalCache:()=>sM,forEachChild:()=>PI,forEachChildRecursively:()=>AI,forEachDynamicImportOrRequireCall:()=>wC,forEachEmittedFile:()=>Fq,forEachEnclosingBlockScopeContainer:()=>Fp,forEachEntry:()=>td,forEachExternalModuleToImportFrom:()=>n0,forEachImportClauseDeclaration:()=>Tg,forEachKey:()=>nd,forEachLeadingCommentRange:()=>is,forEachNameInAccessChainWalkingLeft:()=>wx,forEachNameOfDefaultExport:()=>_0,forEachPropertyAssignment:()=>qf,forEachResolvedProjectReference:()=>oV,forEachReturnStatement:()=>wf,forEachRight:()=>p,forEachTrailingCommentRange:()=>os,forEachTsConfigPropArray:()=>$f,forEachUnique:()=>eY,forEachYieldExpression:()=>Nf,formatColorAndReset:()=>BU,formatDiagnostic:()=>EU,formatDiagnostics:()=>FU,formatDiagnosticsWithColorAndContext:()=>qU,formatGeneratedName:()=>KA,formatGeneratedNamePart:()=>HA,formatLocation:()=>zU,formatMessage:()=>Gx,formatStringFromArgs:()=>Jx,formatting:()=>Zue,generateDjb2Hash:()=>Ri,generateTSConfig:()=>IL,getAdjustedReferenceLocation:()=>NX,getAdjustedRenameLocation:()=>DX,getAliasDeclarationFromName:()=>dh,getAllAccessorDeclarations:()=>dv,getAllDecoratorsOfClass:()=>GJ,getAllDecoratorsOfClassElement:()=>XJ,getAllJSDocTags:()=>al,getAllJSDocTagsOfKind:()=>sl,getAllKeys:()=>Pe,getAllProjectOutputs:()=>Wq,getAllSuperTypeNodes:()=>bh,getAllowImportingTsExtensions:()=>gk,getAllowJSCompilerOption:()=>Pk,getAllowSyntheticDefaultImports:()=>Sk,getAncestor:()=>Sh,getAnyExtensionFromPath:()=>Po,getAreDeclarationMapsEnabled:()=>Ek,getAssignedExpandoInitializer:()=>Wm,getAssignedName:()=>Cc,getAssignmentDeclarationKind:()=>eg,getAssignmentDeclarationPropertyAccessKind:()=>_g,getAssignmentTargetKind:()=>Gg,getAutomaticTypeDirectiveNames:()=>rR,getBaseFileName:()=>Fo,getBinaryOperatorPrecedence:()=>sy,getBuildInfo:()=>Qq,getBuildInfoFileVersionMap:()=>bW,getBuildInfoText:()=>Xq,getBuildOrderFromAnyBuildOrder:()=>L$,getBuilderCreationParameters:()=>uW,getBuilderFileEmit:()=>MV,getCanonicalDiagnostic:()=>$p,getCheckFlags:()=>nx,getClassExtendsHeritageElement:()=>yh,getClassLikeDeclarationOfSymbol:()=>fx,getCombinedLocalAndExportSymbolFlags:()=>ox,getCombinedModifierFlags:()=>rc,getCombinedNodeFlags:()=>oc,getCombinedNodeFlagsAlwaysIncludeJSDoc:()=>ic,getCommentRange:()=>dw,getCommonSourceDirectory:()=>Uq,getCommonSourceDirectoryOfConfig:()=>Vq,getCompilerOptionValue:()=>Vk,getCompilerOptionsDiffValue:()=>PL,getConditions:()=>tR,getConfigFileParsingDiagnostics:()=>gV,getConstantValue:()=>xw,getContainerFlags:()=>jM,getContainerNode:()=>tX,getContainingClass:()=>Gf,getContainingClassExcludingClassDecorators:()=>Yf,getContainingClassStaticBlock:()=>Xf,getContainingFunction:()=>Hf,getContainingFunctionDeclaration:()=>Kf,getContainingFunctionOrClassStaticBlock:()=>Qf,getContainingNodeArray:()=>AT,getContainingObjectLiteralElement:()=>q8,getContextualTypeFromParent:()=>eZ,getContextualTypeFromParentOrAncestorTypeNode:()=>SX,getDeclarationDiagnostics:()=>_q,getDeclarationEmitExtensionForPath:()=>Vy,getDeclarationEmitOutputFilePath:()=>qy,getDeclarationEmitOutputFilePathWorker:()=>Uy,getDeclarationFileExtension:()=>HI,getDeclarationFromName:()=>lh,getDeclarationModifierFlagsFromSymbol:()=>rx,getDeclarationOfKind:()=>Wu,getDeclarationsOfKind:()=>$u,getDeclaredExpandoInitializer:()=>Vm,getDecorators:()=>wc,getDefaultCompilerOptions:()=>F8,getDefaultFormatCodeSettings:()=>fG,getDefaultLibFileName:()=>Ns,getDefaultLibFilePath:()=>V8,getDefaultLikeExportInfo:()=>c0,getDefaultLikeExportNameFromDeclaration:()=>LZ,getDefaultResolutionModeForFileWorker:()=>TV,getDiagnosticText:()=>XO,getDiagnosticsWithinSpan:()=>FZ,getDirectoryPath:()=>Do,getDirectoryToWatchFailedLookupLocation:()=>OW,getDirectoryToWatchFailedLookupLocationFromTypeRoot:()=>RW,getDocumentPositionMapper:()=>p1,getDocumentSpansEqualityComparer:()=>ZQ,getESModuleInterop:()=>kk,getEditsForFileRename:()=>P0,getEffectiveBaseTypeNode:()=>hh,getEffectiveConstraintOfTypeParameter:()=>_l,getEffectiveContainerForJSDocTemplateTag:()=>Bg,getEffectiveImplementsTypeNodes:()=>vh,getEffectiveInitializer:()=>Um,getEffectiveJSDocHost:()=>qg,getEffectiveModifierFlags:()=>Mv,getEffectiveModifierFlagsAlwaysIncludeJSDoc:()=>Bv,getEffectiveModifierFlagsNoCache:()=>Uv,getEffectiveReturnTypeNode:()=>mv,getEffectiveSetAccessorTypeAnnotationNode:()=>hv,getEffectiveTypeAnnotationNode:()=>pv,getEffectiveTypeParameterDeclarations:()=>ll,getEffectiveTypeRoots:()=>Gj,getElementOrPropertyAccessArgumentExpressionOrName:()=>cg,getElementOrPropertyAccessName:()=>lg,getElementsOfBindingOrAssignmentPattern:()=>SA,getEmitDeclarations:()=>Nk,getEmitFlags:()=>Qd,getEmitHelpers:()=>ww,getEmitModuleDetectionKind:()=>bk,getEmitModuleFormatOfFileWorker:()=>kV,getEmitModuleKind:()=>yk,getEmitModuleResolutionKind:()=>vk,getEmitScriptTarget:()=>hk,getEmitStandardClassFields:()=>Jk,getEnclosingBlockScopeContainer:()=>Dp,getEnclosingContainer:()=>Np,getEncodedSemanticClassifications:()=>b0,getEncodedSyntacticClassifications:()=>C0,getEndLinePosition:()=>Sd,getEntityNameFromTypeNode:()=>lm,getEntrypointsFromPackageJsonInfo:()=>UR,getErrorCountForSummary:()=>XW,getErrorSpanForNode:()=>Gp,getErrorSummaryText:()=>e$,getEscapedTextOfIdentifierOrLiteral:()=>qh,getEscapedTextOfJsxAttributeName:()=>ZT,getEscapedTextOfJsxNamespacedName:()=>nC,getExpandoInitializer:()=>$m,getExportAssignmentExpression:()=>mh,getExportInfoMap:()=>s0,getExportNeedsImportStarHelper:()=>DJ,getExpressionAssociativity:()=>ty,getExpressionPrecedence:()=>ry,getExternalHelpersModuleName:()=>uA,getExternalModuleImportEqualsDeclarationExpression:()=>Tm,getExternalModuleName:()=>xg,getExternalModuleNameFromDeclaration:()=>By,getExternalModuleNameFromPath:()=>Jy,getExternalModuleNameLiteral:()=>mA,getExternalModuleRequireArgument:()=>Cm,getFallbackOptions:()=>yU,getFileEmitOutput:()=>IV,getFileMatcherPatterns:()=>pS,getFileNamesFromConfigSpecs:()=>vj,getFileWatcherEventKind:()=>Xi,getFilesInErrorForSummary:()=>QW,getFirstConstructorWithBody:()=>rv,getFirstIdentifier:()=>ab,getFirstNonSpaceCharacterPosition:()=>IY,getFirstProjectOutput:()=>Hq,getFixableErrorSpanExpression:()=>PZ,getFormatCodeSettingsForWriting:()=>VZ,getFullWidth:()=>od,getFunctionFlags:()=>Ih,getHeritageClause:()=>kh,getHostSignatureFromJSDoc:()=>zg,getIdentifierAutoGenerate:()=>jw,getIdentifierGeneratedImportReference:()=>Mw,getIdentifierTypeArguments:()=>Ow,getImmediatelyInvokedFunctionExpression:()=>im,getImpliedNodeFormatForEmitWorker:()=>SV,getImpliedNodeFormatForFile:()=>hV,getImpliedNodeFormatForFileWorker:()=>yV,getImportNeedsImportDefaultHelper:()=>EJ,getImportNeedsImportStarHelper:()=>FJ,getIndentString:()=>Py,getInferredLibraryNameResolveFrom:()=>cV,getInitializedVariables:()=>Yb,getInitializerOfBinaryExpression:()=>ug,getInitializerOfBindingOrAssignmentElement:()=>hA,getInterfaceBaseTypeNodes:()=>xh,getInternalEmitFlags:()=>Yd,getInvokedExpression:()=>_m,getIsFileExcluded:()=>a0,getIsolatedModules:()=>xk,getJSDocAugmentsTag:()=>Lc,getJSDocClassTag:()=>Rc,getJSDocCommentRanges:()=>hf,getJSDocCommentsAndTags:()=>Lg,getJSDocDeprecatedTag:()=>Hc,getJSDocDeprecatedTagNoCache:()=>Kc,getJSDocEnumTag:()=>Gc,getJSDocHost:()=>Ug,getJSDocImplementsTags:()=>jc,getJSDocOverloadTags:()=>Jg,getJSDocOverrideTagNoCache:()=>$c,getJSDocParameterTags:()=>Fc,getJSDocParameterTagsNoCache:()=>Ec,getJSDocPrivateTag:()=>Jc,getJSDocPrivateTagNoCache:()=>zc,getJSDocProtectedTag:()=>qc,getJSDocProtectedTagNoCache:()=>Uc,getJSDocPublicTag:()=>Mc,getJSDocPublicTagNoCache:()=>Bc,getJSDocReadonlyTag:()=>Vc,getJSDocReadonlyTagNoCache:()=>Wc,getJSDocReturnTag:()=>Qc,getJSDocReturnType:()=>nl,getJSDocRoot:()=>Vg,getJSDocSatisfiesExpressionType:()=>QT,getJSDocSatisfiesTag:()=>Zc,getJSDocTags:()=>il,getJSDocTemplateTag:()=>Yc,getJSDocThisTag:()=>Xc,getJSDocType:()=>tl,getJSDocTypeAliasName:()=>TA,getJSDocTypeAssertionType:()=>aA,getJSDocTypeParameterDeclarations:()=>gv,getJSDocTypeParameterTags:()=>Ac,getJSDocTypeParameterTagsNoCache:()=>Ic,getJSDocTypeTag:()=>el,getJSXImplicitImportBase:()=>$k,getJSXRuntimeImport:()=>Hk,getJSXTransformEnabled:()=>Wk,getKeyForCompilerOptions:()=>sR,getLanguageVariant:()=>ck,getLastChild:()=>yx,getLeadingCommentRanges:()=>ls,getLeadingCommentRangesOfNode:()=>gf,getLeftmostAccessExpression:()=>Cx,getLeftmostExpression:()=>Nx,getLibraryNameFromLibFileName:()=>lV,getLineAndCharacterOfPosition:()=>Ja,getLineInfo:()=>lJ,getLineOfLocalPosition:()=>tv,getLineStartPositionForPosition:()=>oX,getLineStarts:()=>ja,getLinesBetweenPositionAndNextNonWhitespaceCharacter:()=>Kb,getLinesBetweenPositionAndPrecedingNonWhitespaceCharacter:()=>Hb,getLinesBetweenPositions:()=>Ba,getLinesBetweenRangeEndAndRangeStart:()=>qb,getLinesBetweenRangeEndPositions:()=>Ub,getLiteralText:()=>tp,getLocalNameForExternalImport:()=>fA,getLocalSymbolForExportDefault:()=>yb,getLocaleSpecificMessage:()=>Ux,getLocaleTimeString:()=>HW,getMappedContextSpan:()=>iY,getMappedDocumentSpan:()=>rY,getMappedLocation:()=>nY,getMatchedFileSpec:()=>i$,getMatchedIncludeSpec:()=>o$,getMeaningFromDeclaration:()=>DG,getMeaningFromLocation:()=>FG,getMembersOfDeclaration:()=>Ff,getModeForFileReference:()=>VU,getModeForResolutionAtIndex:()=>WU,getModeForUsageLocation:()=>HU,getModifiedTime:()=>qi,getModifiers:()=>Nc,getModuleInstanceState:()=>wM,getModuleNameStringLiteralAt:()=>AV,getModuleSpecifierEndingPreference:()=>jS,getModuleSpecifierResolverHost:()=>IQ,getNameForExportedSymbol:()=>OZ,getNameFromImportAttribute:()=>uC,getNameFromIndexInfo:()=>Pp,getNameFromPropertyName:()=>DQ,getNameOfAccessExpression:()=>Sx,getNameOfCompilerOptionValue:()=>DL,getNameOfDeclaration:()=>Tc,getNameOfExpando:()=>Km,getNameOfJSDocTypedef:()=>xc,getNameOfScriptTarget:()=>Bk,getNameOrArgument:()=>sg,getNameTable:()=>z8,getNamespaceDeclarationNode:()=>kg,getNewLineCharacter:()=>Eb,getNewLineKind:()=>qZ,getNewLineOrDefaultFromHost:()=>kY,getNewTargetContainer:()=>nm,getNextJSDocCommentLocation:()=>Rg,getNodeChildren:()=>LP,getNodeForGeneratedName:()=>$A,getNodeId:()=>jB,getNodeKind:()=>nX,getNodeModifiers:()=>ZX,getNodeModulePathParts:()=>zT,getNonAssignedNameOfDeclaration:()=>Sc,getNonAssignmentOperatorForCompoundAssignment:()=>BJ,getNonAugmentationDeclaration:()=>fp,getNonDecoratorTokenPosOfNode:()=>Jd,getNonIncrementalBuildInfoRoots:()=>xW,getNonModifierTokenPosOfNode:()=>zd,getNormalizedAbsolutePath:()=>Bo,getNormalizedAbsolutePathWithoutRoot:()=>zo,getNormalizedPathComponents:()=>Mo,getObjectFlags:()=>mx,getOperatorAssociativity:()=>ny,getOperatorPrecedence:()=>ay,getOptionFromName:()=>WO,getOptionsForLibraryResolution:()=>hR,getOptionsNameMap:()=>PO,getOrCreateEmitNode:()=>ZC,getOrUpdate:()=>z,getOriginalNode:()=>lc,getOriginalNodeId:()=>TJ,getOutputDeclarationFileName:()=>jq,getOutputDeclarationFileNameWorker:()=>Rq,getOutputExtension:()=>Oq,getOutputFileNames:()=>$q,getOutputJSFileNameWorker:()=>Bq,getOutputPathsFor:()=>Aq,getOwnEmitOutputFilePath:()=>zy,getOwnKeys:()=>Ee,getOwnValues:()=>Ae,getPackageJsonTypesVersionsPaths:()=>Kj,getPackageNameFromTypesPackageName:()=>mM,getPackageScopeForPath:()=>$R,getParameterSymbolFromJSDoc:()=>Mg,getParentNodeInSpan:()=>$Q,getParseTreeNode:()=>dc,getParsedCommandLineOfConfigFile:()=>QO,getPathComponents:()=>Ao,getPathFromPathComponents:()=>Io,getPathUpdater:()=>A0,getPathsBasePath:()=>Hy,getPatternFromSpec:()=>_S,getPendingEmitKindWithSeen:()=>GV,getPositionOfLineAndCharacter:()=>Oa,getPossibleGenericSignatures:()=>KX,getPossibleOriginalInputExtensionForExtension:()=>Wy,getPossibleOriginalInputPathWithoutChangingExt:()=>$y,getPossibleTypeArgumentsInfo:()=>GX,getPreEmitDiagnostics:()=>DU,getPrecedingNonSpaceCharacterPosition:()=>OY,getPrivateIdentifier:()=>ZJ,getProperties:()=>UJ,getProperty:()=>Fe,getPropertyArrayElementValue:()=>Uf,getPropertyAssignmentAliasLikeExpression:()=>gh,getPropertyNameForPropertyNameNode:()=>Bh,getPropertyNameFromType:()=>aC,getPropertyNameOfBindingOrAssignmentElement:()=>bA,getPropertySymbolFromBindingElement:()=>WQ,getPropertySymbolsFromContextualType:()=>U8,getQuoteFromPreference:()=>JQ,getQuotePreference:()=>BQ,getRangesWhere:()=>H,getRefactorContextSpan:()=>EZ,getReferencedFileLocation:()=>fV,getRegexFromPattern:()=>fS,getRegularExpressionForWildcard:()=>sS,getRegularExpressionsForWildcards:()=>cS,getRelativePathFromDirectory:()=>na,getRelativePathFromFile:()=>ia,getRelativePathToDirectoryOrUrl:()=>oa,getRenameLocation:()=>HY,getReplacementSpanForContextToken:()=>dQ,getResolutionDiagnostic:()=>EV,getResolutionModeOverride:()=>XU,getResolveJsonModule:()=>wk,getResolvePackageJsonExports:()=>Tk,getResolvePackageJsonImports:()=>Ck,getResolvedExternalModuleName:()=>Ry,getResolvedModuleFromResolution:()=>cd,getResolvedTypeReferenceDirectiveFromResolution:()=>ld,getRestIndicatorOfBindingOrAssignmentElement:()=>vA,getRestParameterElementType:()=>Df,getRightMostAssignedExpression:()=>Xm,getRootDeclaration:()=>Qh,getRootDirectoryOfResolutionCache:()=>MW,getRootLength:()=>No,getScriptKind:()=>FY,getScriptKindFromFileName:()=>vS,getScriptTargetFeatures:()=>Zd,getSelectedEffectiveModifierFlags:()=>Lv,getSelectedSyntacticModifierFlags:()=>jv,getSemanticClassifications:()=>y0,getSemanticJsxChildren:()=>cy,getSetAccessorTypeAnnotationNode:()=>ov,getSetAccessorValueParameter:()=>iv,getSetExternalModuleIndicator:()=>dk,getShebang:()=>us,getSingleVariableOfVariableStatement:()=>Pg,getSnapshotText:()=>CQ,getSnippetElement:()=>Dw,getSourceFileOfModule:()=>yd,getSourceFileOfNode:()=>hd,getSourceFilePathInNewDir:()=>Xy,getSourceFileVersionAsHashFromText:()=>g$,getSourceFilesToEmit:()=>Ky,getSourceMapRange:()=>aw,getSourceMapper:()=>d1,getSourceTextOfNodeFromSourceFile:()=>qd,getSpanOfTokenAtPosition:()=>Hp,getSpellingSuggestion:()=>Lt,getStartPositionOfLine:()=>xd,getStartPositionOfRange:()=>$b,getStartsOnNewLine:()=>_w,getStaticPropertiesAndClassStaticBlock:()=>WJ,getStrictOptionValue:()=>Mk,getStringComparer:()=>wt,getSubPatternFromSpec:()=>uS,getSuperCallFromStatement:()=>JJ,getSuperContainer:()=>rm,getSupportedCodeFixes:()=>E8,getSupportedExtensions:()=>ES,getSupportedExtensionsWithJsonIfResolveJsonModule:()=>PS,getSwitchedType:()=>oZ,getSymbolId:()=>RB,getSymbolNameForPrivateIdentifier:()=>Uh,getSymbolTarget:()=>EY,getSyntacticClassifications:()=>T0,getSyntacticModifierFlags:()=>Jv,getSyntacticModifierFlagsNoCache:()=>Vv,getSynthesizedDeepClone:()=>LY,getSynthesizedDeepCloneWithReplacements:()=>jY,getSynthesizedDeepClones:()=>MY,getSynthesizedDeepClonesWithReplacements:()=>BY,getSyntheticLeadingComments:()=>fw,getSyntheticTrailingComments:()=>hw,getTargetLabel:()=>qG,getTargetOfBindingOrAssignmentElement:()=>yA,getTemporaryModuleResolutionState:()=>WR,getTextOfConstantValue:()=>np,getTextOfIdentifierOrLiteral:()=>zh,getTextOfJSDocComment:()=>cl,getTextOfJsxAttributeName:()=>eC,getTextOfJsxNamespacedName:()=>rC,getTextOfNode:()=>Kd,getTextOfNodeFromSourceText:()=>Hd,getTextOfPropertyName:()=>Op,getThisContainer:()=>Zf,getThisParameter:()=>av,getTokenAtPosition:()=>PX,getTokenPosOfNode:()=>Bd,getTokenSourceMapRange:()=>cw,getTouchingPropertyName:()=>FX,getTouchingToken:()=>EX,getTrailingCommentRanges:()=>_s,getTrailingSemicolonDeferringWriter:()=>Oy,getTransformers:()=>hq,getTsBuildInfoEmitOutputFilePath:()=>Eq,getTsConfigObjectLiteralExpression:()=>Vf,getTsConfigPropArrayElementValue:()=>Wf,getTypeAnnotationNode:()=>fv,getTypeArgumentOrTypeParameterList:()=>eQ,getTypeKeywordOfTypeOnlyImport:()=>XQ,getTypeNode:()=>Aw,getTypeNodeIfAccessible:()=>sZ,getTypeParameterFromJsDoc:()=>Wg,getTypeParameterOwner:()=>Qs,getTypesPackageName:()=>pM,getUILocale:()=>Et,getUniqueName:()=>$Y,getUniqueSymbolId:()=>AY,getUseDefineForClassFields:()=>Ak,getWatchErrorSummaryDiagnosticMessage:()=>YW,getWatchFactory:()=>hU,group:()=>Je,groupBy:()=>ze,guessIndentation:()=>Ou,handleNoEmitOptions:()=>wV,handleWatchOptionsConfigDirTemplateSubstitution:()=>UL,hasAbstractModifier:()=>Ev,hasAccessorModifier:()=>Av,hasAmbientModifier:()=>Pv,hasChangesInResolutions:()=>md,hasContextSensitiveParameters:()=>IT,hasDecorators:()=>Ov,hasDocComment:()=>QX,hasDynamicName:()=>Rh,hasEffectiveModifier:()=>Cv,hasEffectiveModifiers:()=>Sv,hasEffectiveReadonlyModifier:()=>Iv,hasExtension:()=>xo,hasImplementationTSFileExtension:()=>OS,hasIndexSignature:()=>iZ,hasInferredType:()=>bC,hasInitializer:()=>Fu,hasInvalidEscape:()=>py,hasJSDocNodes:()=>Nu,hasJSDocParameterTags:()=>Oc,hasJSFileExtension:()=>AS,hasJsonModuleEmitEnabled:()=>Ok,hasOnlyExpressionInitializer:()=>Eu,hasOverrideModifier:()=>Fv,hasPossibleExternalModuleReference:()=>Cp,hasProperty:()=>De,hasPropertyAccessExpressionWithName:()=>UG,hasQuestionToken:()=>Cg,hasRecordedExternalHelpers:()=>dA,hasResolutionModeOverride:()=>cC,hasRestParameter:()=>Ru,hasScopeMarker:()=>H_,hasStaticModifier:()=>Dv,hasSyntacticModifier:()=>wv,hasSyntacticModifiers:()=>Tv,hasTSFileExtension:()=>IS,hasTabstop:()=>$T,hasTrailingDirectorySeparator:()=>To,hasType:()=>Du,hasTypeArguments:()=>$g,hasZeroOrOneAsteriskCharacter:()=>Kk,hostGetCanonicalFileName:()=>jy,hostUsesCaseSensitiveFileNames:()=>Ly,idText:()=>mc,identifierIsThisKeyword:()=>uv,identifierToKeywordKind:()=>gc,identity:()=>st,identitySourceMapConsumer:()=>SJ,ignoreSourceNewlines:()=>Ew,ignoredPaths:()=>Qi,importFromModuleSpecifier:()=>yg,importSyntaxAffectsModuleResolution:()=>pk,indexOfAnyCharCode:()=>C,indexOfNode:()=>Xd,indicesOf:()=>X,inferredTypesContainingFile:()=>sV,injectClassNamedEvaluationHelperBlockIfMissing:()=>Sz,injectClassThisAssignmentIfMissing:()=>hz,insertImports:()=>GQ,insertSorted:()=>Z,insertStatementAfterCustomPrologue:()=>Ld,insertStatementAfterStandardPrologue:()=>Od,insertStatementsAfterCustomPrologue:()=>Id,insertStatementsAfterStandardPrologue:()=>Ad,intersperse:()=>y,intrinsicTagNameToString:()=>iC,introducesArgumentsExoticObject:()=>Lf,inverseJsxOptionMap:()=>aO,isAbstractConstructorSymbol:()=>px,isAbstractModifier:()=>XN,isAccessExpression:()=>kx,isAccessibilityModifier:()=>aQ,isAccessor:()=>u_,isAccessorModifier:()=>YN,isAliasableExpression:()=>ph,isAmbientModule:()=>ap,isAmbientPropertyDeclaration:()=>hp,isAnyDirectorySeparator:()=>fo,isAnyImportOrBareOrAccessedRequire:()=>kp,isAnyImportOrReExport:()=>wp,isAnyImportOrRequireStatement:()=>Sp,isAnyImportSyntax:()=>xp,isAnySupportedFileExtension:()=>YS,isApplicableVersionedTypesKey:()=>iM,isArgumentExpressionOfElementAccess:()=>XG,isArray:()=>Qe,isArrayBindingElement:()=>S_,isArrayBindingOrAssignmentElement:()=>E_,isArrayBindingOrAssignmentPattern:()=>F_,isArrayBindingPattern:()=>UD,isArrayLiteralExpression:()=>WD,isArrayLiteralOrObjectLiteralDestructuringPattern:()=>cQ,isArrayTypeNode:()=>TD,isArrowFunction:()=>tF,isAsExpression:()=>gF,isAssertClause:()=>oE,isAssertEntry:()=>aE,isAssertionExpression:()=>V_,isAssertsKeyword:()=>$N,isAssignmentDeclaration:()=>qm,isAssignmentExpression:()=>nb,isAssignmentOperator:()=>Zv,isAssignmentPattern:()=>k_,isAssignmentTarget:()=>Xg,isAsteriskToken:()=>LN,isAsyncFunction:()=>Oh,isAsyncModifier:()=>WN,isAutoAccessorPropertyDeclaration:()=>d_,isAwaitExpression:()=>oF,isAwaitKeyword:()=>HN,isBigIntLiteral:()=>SN,isBinaryExpression:()=>cF,isBinaryLogicalOperator:()=>Hv,isBinaryOperatorToken:()=>jA,isBindableObjectDefinePropertyCall:()=>tg,isBindableStaticAccessExpression:()=>ig,isBindableStaticElementAccessExpression:()=>og,isBindableStaticNameExpression:()=>ag,isBindingElement:()=>VD,isBindingElementOfBareOrAccessedRequire:()=>Rm,isBindingName:()=>t_,isBindingOrAssignmentElement:()=>C_,isBindingOrAssignmentPattern:()=>w_,isBindingPattern:()=>x_,isBlock:()=>CF,isBlockLike:()=>GZ,isBlockOrCatchScoped:()=>ip,isBlockScope:()=>yp,isBlockScopedContainerTopLevel:()=>_p,isBooleanLiteral:()=>o_,isBreakOrContinueStatement:()=>Tl,isBreakStatement:()=>jF,isBuildCommand:()=>nK,isBuildInfoFile:()=>Dq,isBuilderProgram:()=>t$,isBundle:()=>UE,isCallChain:()=>ml,isCallExpression:()=>GD,isCallExpressionTarget:()=>PG,isCallLikeExpression:()=>O_,isCallLikeOrFunctionLikeExpression:()=>I_,isCallOrNewExpression:()=>L_,isCallOrNewExpressionTarget:()=>IG,isCallSignatureDeclaration:()=>mD,isCallToHelper:()=>xN,isCaseBlock:()=>ZF,isCaseClause:()=>OE,isCaseKeyword:()=>tD,isCaseOrDefaultClause:()=>xu,isCatchClause:()=>RE,isCatchClauseVariableDeclaration:()=>LT,isCatchClauseVariableDeclarationOrBindingElement:()=>op,isCheckJsEnabledForFile:()=>eT,isCircularBuildOrder:()=>O$,isClassDeclaration:()=>HF,isClassElement:()=>l_,isClassExpression:()=>pF,isClassInstanceProperty:()=>p_,isClassLike:()=>__,isClassMemberModifier:()=>Ql,isClassNamedEvaluationHelperBlock:()=>bz,isClassOrTypeElement:()=>h_,isClassStaticBlockDeclaration:()=>uD,isClassThisAssignmentBlock:()=>mz,isColonToken:()=>MN,isCommaExpression:()=>rA,isCommaListExpression:()=>kF,isCommaSequence:()=>iA,isCommaToken:()=>AN,isComment:()=>tQ,isCommonJsExportPropertyAssignment:()=>If,isCommonJsExportedExpression:()=>Af,isCompoundAssignment:()=>MJ,isComputedNonLiteralName:()=>Ap,isComputedPropertyName:()=>rD,isConciseBody:()=>Q_,isConditionalExpression:()=>lF,isConditionalTypeNode:()=>PD,isConstAssertion:()=>mC,isConstTypeReference:()=>xl,isConstructSignatureDeclaration:()=>gD,isConstructorDeclaration:()=>dD,isConstructorTypeNode:()=>xD,isContextualKeyword:()=>Nh,isContinueStatement:()=>LF,isCustomPrologue:()=>df,isDebuggerStatement:()=>UF,isDeclaration:()=>lu,isDeclarationBindingElement:()=>T_,isDeclarationFileName:()=>$I,isDeclarationName:()=>ch,isDeclarationNameOfEnumOrNamespace:()=>Qb,isDeclarationReadonly:()=>ef,isDeclarationStatement:()=>_u,isDeclarationWithTypeParameterChildren:()=>bp,isDeclarationWithTypeParameters:()=>vp,isDecorator:()=>aD,isDecoratorTarget:()=>LG,isDefaultClause:()=>LE,isDefaultImport:()=>Sg,isDefaultModifier:()=>VN,isDefaultedExpandoInitializer:()=>Hm,isDeleteExpression:()=>nF,isDeleteTarget:()=>ah,isDeprecatedDeclaration:()=>JZ,isDestructuringAssignment:()=>rb,isDiskPathRoot:()=>ho,isDoStatement:()=>EF,isDocumentRegistryEntry:()=>w0,isDotDotDotToken:()=>PN,isDottedName:()=>sb,isDynamicName:()=>Mh,isEffectiveExternalModule:()=>mp,isEffectiveStrictModeSourceFile:()=>gp,isElementAccessChain:()=>fl,isElementAccessExpression:()=>KD,isEmittedFileOfProgram:()=>mU,isEmptyArrayLiteral:()=>hb,isEmptyBindingElement:()=>ec,isEmptyBindingPattern:()=>Zs,isEmptyObjectLiteral:()=>gb,isEmptyStatement:()=>NF,isEmptyStringLiteral:()=>hm,isEntityName:()=>Zl,isEntityNameExpression:()=>ob,isEnumConst:()=>Zp,isEnumDeclaration:()=>XF,isEnumMember:()=>zE,isEqualityOperatorKind:()=>nZ,isEqualsGreaterThanToken:()=>JN,isExclamationToken:()=>jN,isExcludedFile:()=>bj,isExclusivelyTypeOnlyImportOrExport:()=>$U,isExpandoPropertyDeclaration:()=>sC,isExportAssignment:()=>pE,isExportDeclaration:()=>fE,isExportModifier:()=>UN,isExportName:()=>ZP,isExportNamespaceAsDefaultDeclaration:()=>Ud,isExportOrDefaultModifier:()=>VA,isExportSpecifier:()=>gE,isExportsIdentifier:()=>Qm,isExportsOrModuleExportsOrAlias:()=>LM,isExpression:()=>U_,isExpressionNode:()=>vm,isExpressionOfExternalModuleImportEqualsDeclaration:()=>eX,isExpressionOfOptionalChainRoot:()=>yl,isExpressionStatement:()=>DF,isExpressionWithTypeArguments:()=>mF,isExpressionWithTypeArgumentsInClassExtendsClause:()=>ib,isExternalModule:()=>MI,isExternalModuleAugmentation:()=>dp,isExternalModuleImportEqualsDeclaration:()=>Sm,isExternalModuleIndicator:()=>G_,isExternalModuleNameRelative:()=>Ts,isExternalModuleReference:()=>xE,isExternalModuleSymbol:()=>Gu,isExternalOrCommonJsModule:()=>Qp,isFileLevelReservedGeneratedIdentifier:()=>$l,isFileLevelUniqueName:()=>Td,isFileProbablyExternalModule:()=>_I,isFirstDeclarationOfSymbolParameter:()=>oY,isFixablePromiseHandler:()=>x1,isForInOrOfStatement:()=>X_,isForInStatement:()=>IF,isForInitializer:()=>Z_,isForOfStatement:()=>OF,isForStatement:()=>AF,isFullSourceFile:()=>Nm,isFunctionBlock:()=>Rf,isFunctionBody:()=>Y_,isFunctionDeclaration:()=>$F,isFunctionExpression:()=>eF,isFunctionExpressionOrArrowFunction:()=>jT,isFunctionLike:()=>n_,isFunctionLikeDeclaration:()=>i_,isFunctionLikeKind:()=>s_,isFunctionLikeOrClassStaticBlockDeclaration:()=>r_,isFunctionOrConstructorTypeNode:()=>b_,isFunctionOrModuleBlock:()=>c_,isFunctionSymbol:()=>mg,isFunctionTypeNode:()=>bD,isGeneratedIdentifier:()=>Vl,isGeneratedPrivateIdentifier:()=>Wl,isGetAccessor:()=>wu,isGetAccessorDeclaration:()=>pD,isGetOrSetAccessorDeclaration:()=>dl,isGlobalScopeAugmentation:()=>up,isGlobalSourceFile:()=>Xp,isGrammarError:()=>Nd,isHeritageClause:()=>jE,isHoistedFunction:()=>pf,isHoistedVariableStatement:()=>mf,isIdentifier:()=>zN,isIdentifierANonContextualKeyword:()=>Eh,isIdentifierName:()=>uh,isIdentifierOrThisTypeNode:()=>EA,isIdentifierPart:()=>ps,isIdentifierStart:()=>ds,isIdentifierText:()=>fs,isIdentifierTypePredicate:()=>Jf,isIdentifierTypeReference:()=>vT,isIfStatement:()=>FF,isIgnoredFileFromWildCardWatching:()=>fU,isImplicitGlob:()=>lS,isImportAttribute:()=>cE,isImportAttributeName:()=>Ul,isImportAttributes:()=>sE,isImportCall:()=>cf,isImportClause:()=>rE,isImportDeclaration:()=>nE,isImportEqualsDeclaration:()=>tE,isImportKeyword:()=>eD,isImportMeta:()=>lf,isImportOrExportSpecifier:()=>Rl,isImportOrExportSpecifierName:()=>DY,isImportSpecifier:()=>dE,isImportTypeAssertionContainer:()=>iE,isImportTypeNode:()=>BD,isImportable:()=>e0,isInComment:()=>XX,isInCompoundLikeAssignment:()=>Qg,isInExpressionContext:()=>bm,isInJSDoc:()=>Am,isInJSFile:()=>Fm,isInJSXText:()=>VX,isInJsonFile:()=>Em,isInNonReferenceComment:()=>_Q,isInReferenceComment:()=>lQ,isInRightSideOfInternalImportEqualsDeclaration:()=>EG,isInString:()=>JX,isInTemplateString:()=>UX,isInTopLevelContext:()=>tm,isInTypeQuery:()=>lv,isIncrementalBuildInfo:()=>aW,isIncrementalBundleEmitBuildInfo:()=>oW,isIncrementalCompilation:()=>Fk,isIndexSignatureDeclaration:()=>hD,isIndexedAccessTypeNode:()=>jD,isInferTypeNode:()=>AD,isInfinityOrNaNString:()=>OT,isInitializedProperty:()=>$J,isInitializedVariable:()=>Zb,isInsideJsxElement:()=>WX,isInsideJsxElementOrAttribute:()=>zX,isInsideNodeModules:()=>wZ,isInsideTemplateLiteral:()=>oQ,isInstanceOfExpression:()=>fb,isInstantiatedModule:()=>MB,isInterfaceDeclaration:()=>KF,isInternalDeclaration:()=>Ju,isInternalModuleImportEqualsDeclaration:()=>wm,isInternalName:()=>QP,isIntersectionTypeNode:()=>ED,isIntrinsicJsxName:()=>Fy,isIterationStatement:()=>W_,isJSDoc:()=>iP,isJSDocAllType:()=>XE,isJSDocAugmentsTag:()=>sP,isJSDocAuthorTag:()=>cP,isJSDocCallbackTag:()=>_P,isJSDocClassTag:()=>lP,isJSDocCommentContainingNode:()=>Su,isJSDocConstructSignature:()=>wg,isJSDocDeprecatedTag:()=>hP,isJSDocEnumTag:()=>vP,isJSDocFunctionType:()=>tP,isJSDocImplementsTag:()=>DP,isJSDocImportTag:()=>PP,isJSDocIndexSignature:()=>Im,isJSDocLikeText:()=>lI,isJSDocLink:()=>HE,isJSDocLinkCode:()=>KE,isJSDocLinkLike:()=>ju,isJSDocLinkPlain:()=>GE,isJSDocMemberName:()=>$E,isJSDocNameReference:()=>WE,isJSDocNamepathType:()=>rP,isJSDocNamespaceBody:()=>nu,isJSDocNode:()=>ku,isJSDocNonNullableType:()=>ZE,isJSDocNullableType:()=>YE,isJSDocOptionalParameter:()=>HT,isJSDocOptionalType:()=>eP,isJSDocOverloadTag:()=>gP,isJSDocOverrideTag:()=>mP,isJSDocParameterTag:()=>bP,isJSDocPrivateTag:()=>dP,isJSDocPropertyLikeTag:()=>wl,isJSDocPropertyTag:()=>NP,isJSDocProtectedTag:()=>pP,isJSDocPublicTag:()=>uP,isJSDocReadonlyTag:()=>fP,isJSDocReturnTag:()=>xP,isJSDocSatisfiesExpression:()=>XT,isJSDocSatisfiesTag:()=>FP,isJSDocSeeTag:()=>yP,isJSDocSignature:()=>aP,isJSDocTag:()=>Tu,isJSDocTemplateTag:()=>TP,isJSDocThisTag:()=>kP,isJSDocThrowsTag:()=>EP,isJSDocTypeAlias:()=>Ng,isJSDocTypeAssertion:()=>oA,isJSDocTypeExpression:()=>VE,isJSDocTypeLiteral:()=>oP,isJSDocTypeTag:()=>SP,isJSDocTypedefTag:()=>CP,isJSDocUnknownTag:()=>wP,isJSDocUnknownType:()=>QE,isJSDocVariadicType:()=>nP,isJSXTagName:()=>ym,isJsonEqual:()=>dT,isJsonSourceFile:()=>Yp,isJsxAttribute:()=>FE,isJsxAttributeLike:()=>hu,isJsxAttributeName:()=>tC,isJsxAttributes:()=>EE,isJsxCallLike:()=>bu,isJsxChild:()=>gu,isJsxClosingElement:()=>CE,isJsxClosingFragment:()=>DE,isJsxElement:()=>kE,isJsxExpression:()=>AE,isJsxFragment:()=>wE,isJsxNamespacedName:()=>IE,isJsxOpeningElement:()=>TE,isJsxOpeningFragment:()=>NE,isJsxOpeningLikeElement:()=>vu,isJsxOpeningLikeElementTagName:()=>jG,isJsxSelfClosingElement:()=>SE,isJsxSpreadAttribute:()=>PE,isJsxTagNameExpression:()=>mu,isJsxText:()=>CN,isJumpStatementTarget:()=>VG,isKeyword:()=>Th,isKeywordOrPunctuation:()=>wh,isKnownSymbol:()=>Vh,isLabelName:()=>$G,isLabelOfLabeledStatement:()=>WG,isLabeledStatement:()=>JF,isLateVisibilityPaintedStatement:()=>Tp,isLeftHandSideExpression:()=>R_,isLet:()=>af,isLineBreak:()=>Ua,isLiteralComputedPropertyDeclarationName:()=>_h,isLiteralExpression:()=>Al,isLiteralExpressionOfObject:()=>Il,isLiteralImportTypeNode:()=>_f,isLiteralKind:()=>Pl,isLiteralNameOfPropertyDeclarationOrIndexAccess:()=>ZG,isLiteralTypeLiteral:()=>q_,isLiteralTypeNode:()=>MD,isLocalName:()=>YP,isLogicalOperator:()=>Kv,isLogicalOrCoalescingAssignmentExpression:()=>Xv,isLogicalOrCoalescingAssignmentOperator:()=>Gv,isLogicalOrCoalescingBinaryExpression:()=>Yv,isLogicalOrCoalescingBinaryOperator:()=>Qv,isMappedTypeNode:()=>RD,isMemberName:()=>ul,isMetaProperty:()=>vF,isMethodDeclaration:()=>_D,isMethodOrAccessor:()=>f_,isMethodSignature:()=>lD,isMinusToken:()=>ON,isMissingDeclaration:()=>yE,isMissingPackageJsonInfo:()=>oR,isModifier:()=>Yl,isModifierKind:()=>Gl,isModifierLike:()=>m_,isModuleAugmentationExternal:()=>pp,isModuleBlock:()=>YF,isModuleBody:()=>eu,isModuleDeclaration:()=>QF,isModuleExportName:()=>hE,isModuleExportsAccessExpression:()=>Zm,isModuleIdentifier:()=>Ym,isModuleName:()=>IA,isModuleOrEnumDeclaration:()=>iu,isModuleReference:()=>fu,isModuleSpecifierLike:()=>UQ,isModuleWithStringLiteralName:()=>sp,isNameOfFunctionDeclaration:()=>YG,isNameOfModuleDeclaration:()=>QG,isNamedDeclaration:()=>kc,isNamedEvaluation:()=>Kh,isNamedEvaluationSource:()=>Hh,isNamedExportBindings:()=>Cl,isNamedExports:()=>mE,isNamedImportBindings:()=>ru,isNamedImports:()=>uE,isNamedImportsOrExports:()=>Tx,isNamedTupleMember:()=>wD,isNamespaceBody:()=>tu,isNamespaceExport:()=>_E,isNamespaceExportDeclaration:()=>eE,isNamespaceImport:()=>lE,isNamespaceReexportDeclaration:()=>km,isNewExpression:()=>XD,isNewExpressionTarget:()=>AG,isNewScopeNode:()=>DC,isNoSubstitutionTemplateLiteral:()=>NN,isNodeArray:()=>El,isNodeArrayMultiLine:()=>Vb,isNodeDescendantOf:()=>sh,isNodeKind:()=>Nl,isNodeLikeSystem:()=>_n,isNodeModulesDirectory:()=>sa,isNodeWithPossibleHoistedDeclaration:()=>Yg,isNonContextualKeyword:()=>Dh,isNonGlobalAmbientModule:()=>cp,isNonNullAccess:()=>GT,isNonNullChain:()=>Sl,isNonNullExpression:()=>yF,isNonStaticMethodOrAccessorWithPrivateName:()=>HJ,isNotEmittedStatement:()=>vE,isNullishCoalesce:()=>bl,isNumber:()=>et,isNumericLiteral:()=>kN,isNumericLiteralName:()=>MT,isObjectBindingElementWithoutPropertyName:()=>VQ,isObjectBindingOrAssignmentElement:()=>D_,isObjectBindingOrAssignmentPattern:()=>N_,isObjectBindingPattern:()=>qD,isObjectLiteralElement:()=>Pu,isObjectLiteralElementLike:()=>y_,isObjectLiteralExpression:()=>$D,isObjectLiteralMethod:()=>Mf,isObjectLiteralOrClassExpressionMethodOrAccessor:()=>Bf,isObjectTypeDeclaration:()=>bx,isOmittedExpression:()=>fF,isOptionalChain:()=>gl,isOptionalChainRoot:()=>hl,isOptionalDeclaration:()=>KT,isOptionalJSDocPropertyLikeTag:()=>VT,isOptionalTypeNode:()=>ND,isOuterExpression:()=>sA,isOutermostOptionalChain:()=>vl,isOverrideModifier:()=>QN,isPackageJsonInfo:()=>iR,isPackedArrayLiteral:()=>FT,isParameter:()=>oD,isParameterPropertyDeclaration:()=>Ys,isParameterPropertyModifier:()=>Xl,isParenthesizedExpression:()=>ZD,isParenthesizedTypeNode:()=>ID,isParseTreeNode:()=>uc,isPartOfParameterDeclaration:()=>Xh,isPartOfTypeNode:()=>Tf,isPartOfTypeOnlyImportOrExportDeclaration:()=>zl,isPartOfTypeQuery:()=>xm,isPartiallyEmittedExpression:()=>xF,isPatternMatch:()=>Yt,isPinnedComment:()=>Rd,isPlainJsFile:()=>vd,isPlusToken:()=>IN,isPossiblyTypeArgumentPosition:()=>HX,isPostfixUnaryExpression:()=>sF,isPrefixUnaryExpression:()=>aF,isPrimitiveLiteralValue:()=>yC,isPrivateIdentifier:()=>qN,isPrivateIdentifierClassElementDeclaration:()=>Hl,isPrivateIdentifierPropertyAccessExpression:()=>Kl,isPrivateIdentifierSymbol:()=>Wh,isProgramUptoDate:()=>mV,isPrologueDirective:()=>uf,isPropertyAccessChain:()=>pl,isPropertyAccessEntityNameExpression:()=>cb,isPropertyAccessExpression:()=>HD,isPropertyAccessOrQualifiedName:()=>A_,isPropertyAccessOrQualifiedNameOrImportTypeNode:()=>P_,isPropertyAssignment:()=>ME,isPropertyDeclaration:()=>cD,isPropertyName:()=>e_,isPropertyNameLiteral:()=>Jh,isPropertySignature:()=>sD,isPrototypeAccess:()=>_b,isPrototypePropertyAssignment:()=>dg,isPunctuation:()=>Ch,isPushOrUnshiftIdentifier:()=>Gh,isQualifiedName:()=>nD,isQuestionDotToken:()=>BN,isQuestionOrExclamationToken:()=>FA,isQuestionOrPlusOrMinusToken:()=>AA,isQuestionToken:()=>RN,isReadonlyKeyword:()=>KN,isReadonlyKeywordOrPlusOrMinusToken:()=>PA,isRecognizedTripleSlashComment:()=>jd,isReferenceFileLocation:()=>pV,isReferencedFile:()=>dV,isRegularExpressionLiteral:()=>wN,isRequireCall:()=>Om,isRequireVariableStatement:()=>Bm,isRestParameter:()=>Mu,isRestTypeNode:()=>DD,isReturnStatement:()=>RF,isReturnStatementWithFixablePromiseHandler:()=>b1,isRightSideOfAccessExpression:()=>db,isRightSideOfInstanceofExpression:()=>mb,isRightSideOfPropertyAccess:()=>GG,isRightSideOfQualifiedName:()=>KG,isRightSideOfQualifiedNameOrPropertyAccess:()=>ub,isRightSideOfQualifiedNameOrPropertyAccessOrJSDocMemberName:()=>pb,isRootedDiskPath:()=>go,isSameEntityName:()=>Gm,isSatisfiesExpression:()=>hF,isSemicolonClassElement:()=>TF,isSetAccessor:()=>Cu,isSetAccessorDeclaration:()=>fD,isShiftOperatorOrHigher:()=>OA,isShorthandAmbientModuleSymbol:()=>lp,isShorthandPropertyAssignment:()=>BE,isSideEffectImport:()=>xC,isSignedNumericLiteral:()=>jh,isSimpleCopiableExpression:()=>jJ,isSimpleInlineableExpression:()=>RJ,isSimpleParameterList:()=>rz,isSingleOrDoubleQuote:()=>Jm,isSolutionConfig:()=>YL,isSourceElement:()=>dC,isSourceFile:()=>qE,isSourceFileFromLibrary:()=>$Z,isSourceFileJS:()=>Dm,isSourceFileNotJson:()=>Pm,isSourceMapping:()=>mJ,isSpecialPropertyDeclaration:()=>pg,isSpreadAssignment:()=>JE,isSpreadElement:()=>dF,isStatement:()=>du,isStatementButNotDeclaration:()=>uu,isStatementOrBlock:()=>pu,isStatementWithLocals:()=>bd,isStatic:()=>Nv,isStaticModifier:()=>GN,isString:()=>Ze,isStringANonContextualKeyword:()=>Fh,isStringAndEmptyAnonymousObjectIntersection:()=>iQ,isStringDoubleQuoted:()=>zm,isStringLiteral:()=>TN,isStringLiteralLike:()=>Lu,isStringLiteralOrJsxExpression:()=>yu,isStringLiteralOrTemplate:()=>rZ,isStringOrNumericLiteralLike:()=>Lh,isStringOrRegularExpressionOrTemplateLiteral:()=>nQ,isStringTextContainingNode:()=>ql,isSuperCall:()=>sf,isSuperKeyword:()=>ZN,isSuperProperty:()=>om,isSupportedSourceFileName:()=>RS,isSwitchStatement:()=>BF,isSyntaxList:()=>AP,isSyntheticExpression:()=>bF,isSyntheticReference:()=>bE,isTagName:()=>HG,isTaggedTemplateExpression:()=>QD,isTaggedTemplateTag:()=>OG,isTemplateExpression:()=>_F,isTemplateHead:()=>DN,isTemplateLiteral:()=>j_,isTemplateLiteralKind:()=>Ol,isTemplateLiteralToken:()=>Ll,isTemplateLiteralTypeNode:()=>zD,isTemplateLiteralTypeSpan:()=>JD,isTemplateMiddle:()=>FN,isTemplateMiddleOrTemplateTail:()=>jl,isTemplateSpan:()=>SF,isTemplateTail:()=>EN,isTextWhiteSpaceLike:()=>tY,isThis:()=>rX,isThisContainerOrFunctionBlock:()=>em,isThisIdentifier:()=>cv,isThisInTypeQuery:()=>_v,isThisInitializedDeclaration:()=>sm,isThisInitializedObjectBindingExpression:()=>cm,isThisProperty:()=>am,isThisTypeNode:()=>OD,isThisTypeParameter:()=>JT,isThisTypePredicate:()=>zf,isThrowStatement:()=>zF,isToken:()=>Fl,isTokenKind:()=>Dl,isTraceEnabled:()=>Lj,isTransientSymbol:()=>Ku,isTrivia:()=>Ph,isTryStatement:()=>qF,isTupleTypeNode:()=>CD,isTypeAlias:()=>Dg,isTypeAliasDeclaration:()=>GF,isTypeAssertionExpression:()=>YD,isTypeDeclaration:()=>qT,isTypeElement:()=>g_,isTypeKeyword:()=>xQ,isTypeKeywordTokenOrIdentifier:()=>SQ,isTypeLiteralNode:()=>SD,isTypeNode:()=>v_,isTypeNodeKind:()=>xx,isTypeOfExpression:()=>rF,isTypeOnlyExportDeclaration:()=>Bl,isTypeOnlyImportDeclaration:()=>Ml,isTypeOnlyImportOrExportDeclaration:()=>Jl,isTypeOperatorNode:()=>LD,isTypeParameterDeclaration:()=>iD,isTypePredicateNode:()=>yD,isTypeQueryNode:()=>kD,isTypeReferenceNode:()=>vD,isTypeReferenceType:()=>Au,isTypeUsableAsPropertyName:()=>oC,isUMDExportSymbol:()=>gx,isUnaryExpression:()=>B_,isUnaryExpressionWithWrite:()=>z_,isUnicodeIdentifierStart:()=>Ca,isUnionTypeNode:()=>FD,isUrl:()=>mo,isValidBigIntString:()=>hT,isValidESSymbolDeclaration:()=>Of,isValidTypeOnlyAliasUseSite:()=>yT,isValueSignatureDeclaration:()=>Zg,isVarAwaitUsing:()=>tf,isVarConst:()=>rf,isVarConstLike:()=>of,isVarUsing:()=>nf,isVariableDeclaration:()=>VF,isVariableDeclarationInVariableStatement:()=>Pf,isVariableDeclarationInitializedToBareOrAccessedRequire:()=>jm,isVariableDeclarationInitializedToRequire:()=>Lm,isVariableDeclarationList:()=>WF,isVariableLike:()=>Ef,isVariableStatement:()=>wF,isVoidExpression:()=>iF,isWatchSet:()=>ex,isWhileStatement:()=>PF,isWhiteSpaceLike:()=>za,isWhiteSpaceSingleLine:()=>qa,isWithStatement:()=>MF,isWriteAccess:()=>sx,isWriteOnlyAccess:()=>ax,isYieldExpression:()=>uF,jsxModeNeedsExplicitImport:()=>WZ,keywordPart:()=>lY,last:()=>ve,lastOrUndefined:()=>ye,length:()=>u,libMap:()=>lO,libs:()=>cO,lineBreakPart:()=>SY,loadModuleFromGlobalCache:()=>xM,loadWithModeAwareCache:()=>iV,makeIdentifierFromModuleName:()=>rp,makeImport:()=>LQ,makeStringLiteral:()=>jQ,mangleScopedPackageName:()=>fM,map:()=>E,mapAllOrFail:()=>M,mapDefined:()=>B,mapDefinedIterator:()=>J,mapEntries:()=>W,mapIterator:()=>P,mapOneOrMany:()=>AZ,mapToDisplayParts:()=>TY,matchFiles:()=>mS,matchPatternOrExact:()=>nT,matchedText:()=>Ht,matchesExclude:()=>kj,matchesExcludeWorker:()=>Sj,maxBy:()=>xt,maybeBind:()=>We,maybeSetLocalizedDiagnosticMessages:()=>qx,memoize:()=>dt,memoizeOne:()=>pt,min:()=>kt,minAndMax:()=>oT,missingFileModifiedTime:()=>zi,modifierToFlag:()=>$v,modifiersToFlags:()=>Wv,moduleExportNameIsDefault:()=>$d,moduleExportNameTextEscaped:()=>Wd,moduleExportNameTextUnescaped:()=>Vd,moduleOptionDeclaration:()=>pO,moduleResolutionIsEqualTo:()=>sd,moduleResolutionNameAndModeGetter:()=>ZU,moduleResolutionOptionDeclarations:()=>vO,moduleResolutionSupportsPackageJsonExportsAndImports:()=>Rk,moduleResolutionUsesNodeModules:()=>OQ,moduleSpecifierToValidIdentifier:()=>RZ,moduleSpecifiers:()=>BM,moduleSymbolToValidIdentifier:()=>jZ,moveEmitHelpers:()=>Nw,moveRangeEnd:()=>Ab,moveRangePastDecorators:()=>Ob,moveRangePastModifiers:()=>Lb,moveRangePos:()=>Ib,moveSyntheticComments:()=>bw,mutateMap:()=>dx,mutateMapSkippingNewValues:()=>ux,needsParentheses:()=>ZY,needsScopeMarker:()=>K_,newCaseClauseTracker:()=>HZ,newPrivateEnvironment:()=>YJ,noEmitNotification:()=>Tq,noEmitSubstitution:()=>Sq,noTransformers:()=>gq,noTruncationMaximumTruncationLength:()=>Vu,nodeCanBeDecorated:()=>um,nodeCoreModules:()=>CC,nodeHasName:()=>bc,nodeIsDecorated:()=>dm,nodeIsMissing:()=>Cd,nodeIsPresent:()=>wd,nodeIsSynthesized:()=>Zh,nodeModuleNameResolver:()=>CR,nodeModulesPathPart:()=>PR,nodeNextJsonConfigResolver:()=>wR,nodeOrChildIsDecorated:()=>pm,nodeOverlapsWithStartEnd:()=>uX,nodePosToString:()=>kd,nodeSeenTracker:()=>TQ,nodeStartsNewLexicalEnvironment:()=>Yh,noop:()=>rt,noopFileWatcher:()=>_$,normalizePath:()=>Jo,normalizeSlashes:()=>Oo,normalizeSpans:()=>Us,not:()=>tn,notImplemented:()=>ut,notImplementedResolver:()=>Yq,nullNodeConverters:()=>OC,nullParenthesizerRules:()=>PC,nullTransformationContext:()=>wq,objectAllocator:()=>jx,operatorPart:()=>uY,optionDeclarations:()=>mO,optionMapToObject:()=>CL,optionsAffectingProgramStructure:()=>xO,optionsForBuild:()=>NO,optionsForWatch:()=>_O,optionsHaveChanges:()=>Zu,or:()=>en,orderedRemoveItem:()=>zt,orderedRemoveItemAt:()=>qt,packageIdToPackageName:()=>dd,packageIdToString:()=>pd,parameterIsThisKeyword:()=>sv,parameterNamePart:()=>dY,parseBaseNodeFactory:()=>oI,parseBigInt:()=>mT,parseBuildCommand:()=>GO,parseCommandLine:()=>VO,parseCommandLineWorker:()=>JO,parseConfigFileTextToJson:()=>ZO,parseConfigFileWithSystem:()=>GW,parseConfigHostFromCompilerHostLike:()=>DV,parseCustomTypeOption:()=>jO,parseIsolatedEntityName:()=>jI,parseIsolatedJSDocComment:()=>JI,parseJSDocTypeExpressionForTests:()=>zI,parseJsonConfigFileContent:()=>jL,parseJsonSourceFileConfigFileContent:()=>RL,parseJsonText:()=>RI,parseListTypeOption:()=>RO,parseNodeFactory:()=>aI,parseNodeModuleFromPath:()=>IR,parsePackageName:()=>YR,parsePseudoBigInt:()=>pT,parseValidBigInt:()=>gT,pasteEdits:()=>efe,patchWriteFileEnsuringDirectory:()=>ao,pathContainsNodeModules:()=>AR,pathIsAbsolute:()=>yo,pathIsBareSpecifier:()=>bo,pathIsRelative:()=>vo,patternText:()=>$t,performIncrementalCompilation:()=>S$,performance:()=>Vn,positionBelongsToNode:()=>pX,positionIsASICandidate:()=>pZ,positionIsSynthesized:()=>KS,positionsAreOnSameLine:()=>Wb,preProcessFile:()=>_1,probablyUsesSemicolons:()=>fZ,processCommentPragmas:()=>KI,processPragmasIntoFields:()=>GI,processTaggedTemplateExpression:()=>Nz,programContainsEsModules:()=>EQ,programContainsModules:()=>FQ,projectReferenceIsEqualTo:()=>ad,propertyNamePart:()=>pY,pseudoBigIntToString:()=>fT,punctuationPart:()=>_Y,pushIfUnique:()=>ce,quote:()=>tZ,quotePreferenceFromString:()=>MQ,rangeContainsPosition:()=>sX,rangeContainsPositionExclusive:()=>cX,rangeContainsRange:()=>Gb,rangeContainsRangeExclusive:()=>aX,rangeContainsStartEnd:()=>lX,rangeEndIsOnSameLineAsRangeStart:()=>zb,rangeEndPositionsAreOnSameLine:()=>Bb,rangeEquals:()=>de,rangeIsOnSingleLine:()=>Rb,rangeOfNode:()=>aT,rangeOfTypeParameters:()=>sT,rangeOverlapsWithStartEnd:()=>_X,rangeStartIsOnSameLineAsRangeEnd:()=>Jb,rangeStartPositionsAreOnSameLine:()=>Mb,readBuilderProgram:()=>T$,readConfigFile:()=>YO,readJson:()=>Cb,readJsonConfigFile:()=>eL,readJsonOrUndefined:()=>Tb,reduceEachLeadingCommentRange:()=>as,reduceEachTrailingCommentRange:()=>ss,reduceLeft:()=>we,reduceLeftIterator:()=>g,reducePathComponents:()=>Lo,refactor:()=>V2,regExpEscape:()=>Zk,regularExpressionFlagToCharacterCode:()=>Pa,relativeComplement:()=>re,removeAllComments:()=>tw,removeEmitHelper:()=>Cw,removeExtension:()=>US,removeFileExtension:()=>zS,removeIgnoredPath:()=>wW,removeMinAndVersionNumbers:()=>Jt,removePrefix:()=>Xt,removeSuffix:()=>Mt,removeTrailingDirectorySeparator:()=>Uo,repeatString:()=>wQ,replaceElement:()=>Se,replaceFirstStar:()=>_C,resolutionExtensionIsTSOrJson:()=>XS,resolveConfigFileProjectName:()=>E$,resolveJSModule:()=>kR,resolveLibrary:()=>yR,resolveModuleName:()=>bR,resolveModuleNameFromCache:()=>vR,resolvePackageNameToPackageJson:()=>nR,resolvePath:()=>Ro,resolveProjectReferencePath:()=>FV,resolveTripleslashReference:()=>xU,resolveTypeReferenceDirective:()=>Zj,resolvingEmptyArray:()=>zu,returnFalse:()=>it,returnNoopFileWatcher:()=>u$,returnTrue:()=>ot,returnUndefined:()=>at,returnsPromise:()=>v1,rewriteModuleSpecifier:()=>iz,sameFlatMap:()=>R,sameMap:()=>A,sameMapping:()=>fJ,scanTokenAtPosition:()=>Kp,scanner:()=>wG,semanticDiagnosticsOptionDeclarations:()=>gO,serializeCompilerOptions:()=>FL,server:()=>_fe,servicesVersion:()=>l8,setCommentRange:()=>pw,setConfigFileInOptions:()=>ML,setConstantValue:()=>kw,setEmitFlags:()=>nw,setGetSourceFileAsHashVersioned:()=>h$,setIdentifierAutoGenerate:()=>Lw,setIdentifierGeneratedImportReference:()=>Rw,setIdentifierTypeArguments:()=>Iw,setInternalEmitFlags:()=>iw,setLocalizedDiagnosticMessages:()=>zx,setNodeChildren:()=>jP,setNodeFlags:()=>CT,setObjectAllocator:()=>Bx,setOriginalNode:()=>YC,setParent:()=>wT,setParentRecursive:()=>NT,setPrivateIdentifier:()=>ez,setSnippetElement:()=>Fw,setSourceMapRange:()=>sw,setStackTraceLimit:()=>Mi,setStartsOnNewLine:()=>uw,setSyntheticLeadingComments:()=>mw,setSyntheticTrailingComments:()=>yw,setSys:()=>co,setSysLog:()=>eo,setTextRange:()=>nI,setTextRangeEnd:()=>kT,setTextRangePos:()=>xT,setTextRangePosEnd:()=>ST,setTextRangePosWidth:()=>TT,setTokenSourceMapRange:()=>lw,setTypeNode:()=>Pw,setUILocale:()=>Pt,setValueDeclaration:()=>fg,shouldAllowImportingTsExtension:()=>bM,shouldPreserveConstEnums:()=>Dk,shouldRewriteModuleSpecifier:()=>bg,shouldUseUriStyleNodeCoreModules:()=>zZ,showModuleSpecifier:()=>hx,signatureHasRestParameter:()=>UB,signatureToDisplayParts:()=>NY,single:()=>xe,singleElementArray:()=>rn,singleIterator:()=>U,singleOrMany:()=>ke,singleOrUndefined:()=>be,skipAlias:()=>ix,skipConstraint:()=>NQ,skipOuterExpressions:()=>cA,skipParentheses:()=>oh,skipPartiallyEmittedExpressions:()=>kl,skipTrivia:()=>Xa,skipTypeChecking:()=>cT,skipTypeCheckingIgnoringNoCheck:()=>lT,skipTypeParentheses:()=>ih,skipWhile:()=>ln,sliceAfter:()=>rT,some:()=>$,sortAndDeduplicate:()=>ee,sortAndDeduplicateDiagnostics:()=>Cs,sourceFileAffectingCompilerOptions:()=>bO,sourceFileMayBeEmitted:()=>Gy,sourceMapCommentRegExp:()=>sJ,sourceMapCommentRegExpDontCareLineStart:()=>aJ,spacePart:()=>cY,spanMap:()=>V,startEndContainsRange:()=>Xb,startEndOverlapsWithStartEnd:()=>dX,startOnNewLine:()=>_A,startTracing:()=>dr,startsWith:()=>Gt,startsWithDirectory:()=>ea,startsWithUnderscore:()=>BZ,startsWithUseStrict:()=>nA,stringContainsAt:()=>MZ,stringToToken:()=>Fa,stripQuotes:()=>Dy,supportedDeclarationExtensions:()=>NS,supportedJSExtensionsFlat:()=>TS,supportedLocaleDirectories:()=>sc,supportedTSExtensionsFlat:()=>xS,supportedTSImplementationExtensions:()=>DS,suppressLeadingAndTrailingTrivia:()=>JY,suppressLeadingTrivia:()=>zY,suppressTrailingTrivia:()=>qY,symbolEscapedNameNoDefault:()=>qQ,symbolName:()=>hc,symbolNameNoDefault:()=>zQ,symbolToDisplayParts:()=>wY,sys:()=>so,sysLog:()=>Zi,tagNamesAreEquivalent:()=>nO,takeWhile:()=>cn,targetOptionDeclaration:()=>dO,targetToLibMap:()=>ws,testFormatSettings:()=>mG,textChangeRangeIsUnchanged:()=>Hs,textChangeRangeNewSpan:()=>$s,textChanges:()=>Tue,textOrKeywordPart:()=>fY,textPart:()=>mY,textRangeContainsPositionInclusive:()=>Ps,textRangeContainsTextSpan:()=>Os,textRangeIntersectsWithTextSpan:()=>zs,textSpanContainsPosition:()=>Es,textSpanContainsTextRange:()=>Is,textSpanContainsTextSpan:()=>As,textSpanEnd:()=>Ds,textSpanIntersection:()=>qs,textSpanIntersectsWith:()=>Ms,textSpanIntersectsWithPosition:()=>Js,textSpanIntersectsWithTextSpan:()=>Rs,textSpanIsEmpty:()=>Fs,textSpanOverlap:()=>js,textSpanOverlapsWith:()=>Ls,textSpansEqual:()=>QQ,textToKeywordObj:()=>da,timestamp:()=>Un,toArray:()=>Ye,toBuilderFileEmit:()=>hW,toBuilderStateFileInfoForMultiEmit:()=>gW,toEditorSettings:()=>w8,toFileNameLowerCase:()=>_t,toPath:()=>qo,toProgramEmitPending:()=>yW,toSorted:()=>_e,tokenIsIdentifierOrKeyword:()=>_a,tokenIsIdentifierOrKeywordOrGreaterThan:()=>ua,tokenToString:()=>Da,trace:()=>Oj,tracing:()=>Hn,tracingEnabled:()=>Kn,transferSourceFileChildren:()=>MP,transform:()=>W8,transformClassFields:()=>Az,transformDeclarations:()=>pq,transformECMAScriptModule:()=>iq,transformES2015:()=>Zz,transformES2016:()=>Qz,transformES2017:()=>Rz,transformES2018:()=>Bz,transformES2019:()=>Jz,transformES2020:()=>zz,transformES2021:()=>qz,transformESDecorators:()=>jz,transformESNext:()=>Uz,transformGenerators:()=>eq,transformImpliedNodeFormatDependentModule:()=>oq,transformJsx:()=>Gz,transformLegacyDecorators:()=>Lz,transformModule:()=>tq,transformNamedEvaluation:()=>Cz,transformNodes:()=>Cq,transformSystemModule:()=>rq,transformTypeScript:()=>Pz,transpile:()=>L1,transpileDeclaration:()=>F1,transpileModule:()=>D1,transpileOptionValueCompilerOptions:()=>kO,tryAddToSet:()=>q,tryAndIgnoreErrors:()=>vZ,tryCast:()=>tt,tryDirectoryExists:()=>yZ,tryExtractTSExtension:()=>vb,tryFileExists:()=>hZ,tryGetClassExtendingExpressionWithTypeArguments:()=>eb,tryGetClassImplementingOrExtendingExpressionWithTypeArguments:()=>tb,tryGetDirectories:()=>mZ,tryGetExtensionFromPath:()=>ZS,tryGetImportFromModuleSpecifier:()=>vg,tryGetJSDocSatisfiesTypeNode:()=>YT,tryGetModuleNameFromFile:()=>gA,tryGetModuleSpecifierFromDeclaration:()=>hg,tryGetNativePerformanceHooks:()=>Jn,tryGetPropertyAccessOrIdentifierToString:()=>lb,tryGetPropertyNameOfBindingOrAssignmentElement:()=>xA,tryGetSourceMappingURL:()=>_J,tryGetTextOfPropertyName:()=>Ip,tryParseJson:()=>wb,tryParsePattern:()=>WS,tryParsePatterns:()=>HS,tryParseRawSourceMap:()=>dJ,tryReadDirectory:()=>gZ,tryReadFile:()=>tL,tryRemoveDirectoryPrefix:()=>Qk,tryRemoveExtension:()=>qS,tryRemovePrefix:()=>Qt,tryRemoveSuffix:()=>Bt,tscBuildOption:()=>wO,typeAcquisitionDeclarations:()=>FO,typeAliasNamePart:()=>gY,typeDirectiveIsEqualTo:()=>fd,typeKeywords:()=>bQ,typeParameterNamePart:()=>hY,typeToDisplayParts:()=>CY,unchangedPollThresholds:()=>$i,unchangedTextChangeRange:()=>Gs,unescapeLeadingUnderscores:()=>fc,unmangleScopedPackageName:()=>gM,unorderedRemoveItem:()=>Vt,unprefixedNodeCoreModules:()=>SC,unreachableCodeIsError:()=>Lk,unsetNodeChildren:()=>RP,unusedLabelIsError:()=>jk,unwrapInnermostStatementOfLabel:()=>jf,unwrapParenthesizedExpression:()=>vC,updateErrorForNoInputFiles:()=>ej,updateLanguageServiceSourceFile:()=>O8,updateMissingFilePathsWatch:()=>dU,updateResolutionField:()=>Vj,updateSharedExtendedConfigFileWatcher:()=>lU,updateSourceFile:()=>BI,updateWatchingWildcardDirectories:()=>pU,usingSingleLineStringWriter:()=>id,utf16EncodeAsString:()=>vs,validateLocaleAndSetLanguage:()=>cc,version:()=>s,versionMajorMinor:()=>a,visitArray:()=>KB,visitCommaListElements:()=>tJ,visitEachChild:()=>nJ,visitFunctionBody:()=>ZB,visitIterationBody:()=>eJ,visitLexicalEnvironment:()=>XB,visitNode:()=>$B,visitNodes:()=>HB,visitParameterList:()=>QB,walkUpBindingElementsAndPatterns:()=>tc,walkUpOuterExpressions:()=>lA,walkUpParenthesizedExpressions:()=>nh,walkUpParenthesizedTypes:()=>th,walkUpParenthesizedTypesAndGetParentAndChild:()=>rh,whitespaceOrMapCommentRegExp:()=>cJ,writeCommentRange:()=>bv,writeFile:()=>Yy,writeFileEnsuringDirectories:()=>ev,zipWith:()=>h});var ife,ofe=!0;function afe(e,t,n,r,i){let o=t?"DeprecationError: ":"DeprecationWarning: ";return o+=`'${e}' `,o+=r?`has been deprecated since v${r}`:"is deprecated",o+=t?" and can no longer be used.":n?` and will no longer be usable after v${n}.`:".",o+=i?` ${Jx(i,[e])}`:"",o}function sfe(e,t={}){const n="string"==typeof t.typeScriptVersion?new bn(t.typeScriptVersion):t.typeScriptVersion??ife??(ife=new bn(s)),r="string"==typeof t.errorAfter?new bn(t.errorAfter):t.errorAfter,i="string"==typeof t.warnAfter?new bn(t.warnAfter):t.warnAfter,o="string"==typeof t.since?new bn(t.since):t.since??i,a=t.error||r&&n.compareTo(r)>=0,c=!i||n.compareTo(i)>=0;return a?function(e,t,n,r){const i=afe(e,!0,t,n,r);return()=>{throw new TypeError(i)}}(e,r,o,t.message):c?function(e,t,n,r){let i=!1;return()=>{ofe&&!i&&(un.log.warn(afe(e,!1,t,n,r)),i=!0)}}(e,r,o,t.message):rt}function cfe(e,t,n,r){if(Object.defineProperty(s,"name",{...Object.getOwnPropertyDescriptor(s,"name"),value:e}),r)for(const n of Object.keys(r)){const a=+n;!isNaN(a)&&De(t,`${a}`)&&(t[a]=(i=t[a],function(e,t){return function(){return e(),t.apply(this,arguments)}}(sfe((null==(o={...r[a],name:e})?void 0:o.name)??un.getFunctionName(i),o),i)))}var i,o;const a=function(e,t){return n=>{for(let r=0;De(e,`${r}`)&&De(t,`${r}`);r++)if((0,t[r])(n))return r}}(t,n);return s;function s(...e){const n=a(e),r=void 0!==n?t[n]:void 0;if("function"==typeof r)return r(...e);throw new TypeError("Invalid arguments")}}function lfe(e){return{overload:t=>({bind:n=>({finish:()=>cfe(e,t,n),deprecate:r=>({finish:()=>cfe(e,t,n,r)})})})}}var _fe={};i(_fe,{ActionInvalidate:()=>AK,ActionPackageInstalled:()=>IK,ActionSet:()=>PK,ActionWatchTypingLocations:()=>MK,Arguments:()=>FK,AutoImportProviderProject:()=>lme,AuxiliaryProject:()=>sme,CharRangeSection:()=>ehe,CloseFileWatcherEvent:()=>Fme,CommandNames:()=>Dge,ConfigFileDiagEvent:()=>Sme,ConfiguredProject:()=>_me,ConfiguredProjectLoadKind:()=>Qme,CreateDirectoryWatcherEvent:()=>Dme,CreateFileWatcherEvent:()=>Nme,Errors:()=>yfe,EventBeginInstallTypes:()=>LK,EventEndInstallTypes:()=>jK,EventInitializationFailed:()=>RK,EventTypesRegistry:()=>OK,ExternalProject:()=>ume,GcTimer:()=>Ofe,InferredProject:()=>ame,LargeFileReferencedEvent:()=>kme,LineIndex:()=>ahe,LineLeaf:()=>che,LineNode:()=>she,LogLevel:()=>bfe,Msg:()=>kfe,OpenFileInfoTelemetryEvent:()=>wme,Project:()=>ome,ProjectInfoTelemetryEvent:()=>Cme,ProjectKind:()=>Yfe,ProjectLanguageServiceStateEvent:()=>Tme,ProjectLoadingFinishEvent:()=>xme,ProjectLoadingStartEvent:()=>bme,ProjectService:()=>hge,ProjectsUpdatedInBackgroundEvent:()=>vme,ScriptInfo:()=>Gfe,ScriptVersionCache:()=>ihe,Session:()=>$ge,TextStorage:()=>Hfe,ThrottledOperations:()=>Ife,TypingsInstallerAdapter:()=>_he,allFilesAreJsOrDts:()=>tme,allRootFilesAreJsOrDts:()=>eme,asNormalizedPath:()=>wfe,convertCompilerOptions:()=>Rme,convertFormatOptions:()=>jme,convertScriptKindName:()=>zme,convertTypeAcquisition:()=>Bme,convertUserPreferences:()=>qme,convertWatchOptions:()=>Mme,countEachFileTypes:()=>Zfe,createInstallTypingsRequest:()=>Sfe,createModuleSpecifierCache:()=>bge,createNormalizedPathMap:()=>Nfe,createPackageJsonCache:()=>xge,createSortedArray:()=>Afe,emptyArray:()=>xfe,findArgument:()=>JK,formatDiagnosticToProtocol:()=>Nge,formatMessage:()=>Fge,getBaseConfigFileName:()=>Lfe,getDetailWatchInfo:()=>oge,getLocationInNewDocument:()=>Qge,hasArgument:()=>BK,hasNoTypeScriptSource:()=>nme,indent:()=>UK,isBackgroundProject:()=>mme,isConfigFile:()=>yge,isConfiguredProject:()=>pme,isDynamicFileName:()=>Kfe,isExternalProject:()=>fme,isInferredProject:()=>dme,isInferredProjectName:()=>Dfe,isProjectDeferredClose:()=>gme,makeAutoImportProviderProjectName:()=>Efe,makeAuxiliaryProjectName:()=>Pfe,makeInferredProjectName:()=>Ffe,maxFileSize:()=>yme,maxProgramSizeForNonTsFiles:()=>hme,normalizedPathToPath:()=>Cfe,nowString:()=>zK,nullCancellationToken:()=>kge,nullTypingsInstaller:()=>$me,protocol:()=>jfe,scriptInfoIsContainedByBackgroundProject:()=>Xfe,scriptInfoIsContainedByDeferredClosedProject:()=>Qfe,stringifyIndented:()=>VK,toEvent:()=>Pge,toNormalizedPath:()=>Tfe,tryConvertScriptKindName:()=>Jme,typingsInstaller:()=>ufe,updateProjectIfDirty:()=>sge});var ufe={};i(ufe,{TypingsInstaller:()=>gfe,getNpmCommandForInstallation:()=>mfe,installNpmPackages:()=>ffe,typingsName:()=>hfe});var dfe={isEnabled:()=>!1,writeLine:rt};function pfe(e,t,n,r){try{const r=bR(t,jo(e,"index.d.ts"),{moduleResolution:2},n);return r.resolvedModule&&r.resolvedModule.resolvedFileName}catch(n){return void(r.isEnabled()&&r.writeLine(`Failed to resolve ${t} in folder '${e}': ${n.message}`))}}function ffe(e,t,n,r){let i=!1;for(let o=n.length;o>0;){const a=mfe(e,t,n,o);o=a.remaining,i=r(a.command)||i}return i}function mfe(e,t,n,r){const i=n.length-r;let o,a=r;for(;o=`${e} install --ignore-scripts ${(a===n.length?n:n.slice(i,i+a)).join(" ")} --save-dev --user-agent="typesInstaller/${t}"`,!(o.length<8e3);)a-=Math.floor(a/2);return{command:o,remaining:r-a}}var gfe=class{constructor(e,t,n,r,i,o=dfe){this.installTypingHost=e,this.globalCachePath=t,this.safeListPath=n,this.typesMapLocation=r,this.throttleLimit=i,this.log=o,this.packageNameToTypingLocation=new Map,this.missingTypingsSet=new Set,this.knownCachesSet=new Set,this.projectWatchers=new Map,this.pendingRunRequests=[],this.installRunCount=1,this.inFlightRequestCount=0,this.latestDistTag="latest",this.log.isEnabled()&&this.log.writeLine(`Global cache location '${t}', safe file path '${n}', types map path ${r}`),this.processCacheLocation(this.globalCachePath)}handleRequest(e){switch(e.kind){case"discover":this.install(e);break;case"closeProject":this.closeProject(e);break;case"typesRegistry":{const e={};this.typesRegistry.forEach(((t,n)=>{e[n]=t}));const t={kind:OK,typesRegistry:e};this.sendResponse(t);break}case"installPackage":this.installPackage(e);break;default:un.assertNever(e)}}closeProject(e){this.closeWatchers(e.projectName)}closeWatchers(e){this.log.isEnabled()&&this.log.writeLine(`Closing file watchers for project '${e}'`),this.projectWatchers.get(e)?(this.projectWatchers.delete(e),this.sendResponse({kind:MK,projectName:e,files:[]}),this.log.isEnabled()&&this.log.writeLine(`Closing file watchers for project '${e}' - done.`)):this.log.isEnabled()&&this.log.writeLine(`No watchers are registered for project '${e}'`)}install(e){this.log.isEnabled()&&this.log.writeLine(`Got install request${VK(e)}`),e.cachePath&&(this.log.isEnabled()&&this.log.writeLine(`Request specifies cache path '${e.cachePath}', loading cached information...`),this.processCacheLocation(e.cachePath)),void 0===this.safeList&&this.initializeSafeList();const t=DK.discoverTypings(this.installTypingHost,this.log.isEnabled()?e=>this.log.writeLine(e):void 0,e.fileNames,e.projectRootPath,this.safeList,this.packageNameToTypingLocation,e.typeAcquisition,e.unresolvedImports,this.typesRegistry,e.compilerOptions);this.watchFiles(e.projectName,t.filesToWatch),t.newTypingNames.length?this.installTypings(e,e.cachePath||this.globalCachePath,t.cachedTypingPaths,t.newTypingNames):(this.sendResponse(this.createSetTypings(e,t.cachedTypingPaths)),this.log.isEnabled()&&this.log.writeLine("No new typings were requested as a result of typings discovery"))}installPackage(e){const{fileName:t,packageName:n,projectName:r,projectRootPath:i,id:o}=e,a=aa(Do(t),(e=>{if(this.installTypingHost.fileExists(jo(e,"package.json")))return e}))||i;if(a)this.installWorker(-1,[n],a,(e=>{const t={kind:IK,projectName:r,id:o,success:e,message:e?`Package ${n} installed.`:`There was an error installing ${n}.`};this.sendResponse(t)}));else{const e={kind:IK,projectName:r,id:o,success:!1,message:"Could not determine a project root path."};this.sendResponse(e)}}initializeSafeList(){if(this.typesMapLocation){const e=DK.loadTypesMap(this.installTypingHost,this.typesMapLocation);if(e)return this.log.writeLine(`Loaded safelist from types map file '${this.typesMapLocation}'`),void(this.safeList=e);this.log.writeLine(`Failed to load safelist from types map file '${this.typesMapLocation}'`)}this.safeList=DK.loadSafeList(this.installTypingHost,this.safeListPath)}processCacheLocation(e){if(this.log.isEnabled()&&this.log.writeLine(`Processing cache location '${e}'`),this.knownCachesSet.has(e))return void(this.log.isEnabled()&&this.log.writeLine("Cache location was already processed..."));const t=jo(e,"package.json"),n=jo(e,"package-lock.json");if(this.log.isEnabled()&&this.log.writeLine(`Trying to find '${t}'...`),this.installTypingHost.fileExists(t)&&this.installTypingHost.fileExists(n)){const r=JSON.parse(this.installTypingHost.readFile(t)),i=JSON.parse(this.installTypingHost.readFile(n));if(this.log.isEnabled()&&(this.log.writeLine(`Loaded content of '${t}':${VK(r)}`),this.log.writeLine(`Loaded content of '${n}':${VK(i)}`)),r.devDependencies&&i.dependencies)for(const t in r.devDependencies){if(!De(i.dependencies,t))continue;const n=Fo(t);if(!n)continue;const r=pfe(e,n,this.installTypingHost,this.log);if(!r){this.missingTypingsSet.add(n);continue}const o=this.packageNameToTypingLocation.get(n);if(o){if(o.typingLocation===r)continue;this.log.isEnabled()&&this.log.writeLine(`New typing for package ${n} from '${r}' conflicts with existing typing file '${o}'`)}this.log.isEnabled()&&this.log.writeLine(`Adding entry into typings cache: '${n}' => '${r}'`);const a=Fe(i.dependencies,t),s=a&&a.version;if(!s)continue;const c={typingLocation:r,version:new bn(s)};this.packageNameToTypingLocation.set(n,c)}}this.log.isEnabled()&&this.log.writeLine(`Finished processing cache location '${e}'`),this.knownCachesSet.add(e)}filterTypings(e){return B(e,(e=>{const t=fM(e);if(this.missingTypingsSet.has(t))return void(this.log.isEnabled()&&this.log.writeLine(`'${e}':: '${t}' is in missingTypingsSet - skipping...`));const n=DK.validatePackageName(e);if(n!==DK.NameValidationResult.Ok)return this.missingTypingsSet.add(t),void(this.log.isEnabled()&&this.log.writeLine(DK.renderPackageNameValidationFailure(n,e)));if(this.typesRegistry.has(t)){if(!this.packageNameToTypingLocation.get(t)||!DK.isTypingUpToDate(this.packageNameToTypingLocation.get(t),this.typesRegistry.get(t)))return t;this.log.isEnabled()&&this.log.writeLine(`'${e}':: '${t}' already has an up-to-date typing - skipping...`)}else this.log.isEnabled()&&this.log.writeLine(`'${e}':: Entry for package '${t}' does not exist in local types registry - skipping...`)}))}ensurePackageDirectoryExists(e){const t=jo(e,"package.json");this.log.isEnabled()&&this.log.writeLine(`Npm config file: ${t}`),this.installTypingHost.fileExists(t)||(this.log.isEnabled()&&this.log.writeLine(`Npm config file: '${t}' is missing, creating new one...`),this.ensureDirectoryExists(e,this.installTypingHost),this.installTypingHost.writeFile(t,'{ "private": true }'))}installTypings(e,t,n,r){this.log.isEnabled()&&this.log.writeLine(`Installing typings ${JSON.stringify(r)}`);const i=this.filterTypings(r);if(0===i.length)return this.log.isEnabled()&&this.log.writeLine("All typings are known to be missing or invalid - no need to install more typings"),void this.sendResponse(this.createSetTypings(e,n));this.ensurePackageDirectoryExists(t);const o=this.installRunCount;this.installRunCount++,this.sendResponse({kind:LK,eventId:o,typingsInstallerVersion:s,projectName:e.projectName});const c=i.map(hfe);this.installTypingsAsync(o,c,t,(r=>{try{if(!r){this.log.isEnabled()&&this.log.writeLine(`install request failed, marking packages as missing to prevent repeated requests: ${JSON.stringify(i)}`);for(const e of i)this.missingTypingsSet.add(e);return}this.log.isEnabled()&&this.log.writeLine(`Installed typings ${JSON.stringify(c)}`);const o=[];for(const e of i){const n=pfe(t,e,this.installTypingHost,this.log);if(!n){this.missingTypingsSet.add(e);continue}const r=this.typesRegistry.get(e),i={typingLocation:n,version:new bn(r[`ts${a}`]||r[this.latestDistTag])};this.packageNameToTypingLocation.set(e,i),o.push(n)}this.log.isEnabled()&&this.log.writeLine(`Installed typing files ${JSON.stringify(o)}`),this.sendResponse(this.createSetTypings(e,n.concat(o)))}finally{const t={kind:jK,eventId:o,projectName:e.projectName,packagesToInstall:c,installSuccess:r,typingsInstallerVersion:s};this.sendResponse(t)}}))}ensureDirectoryExists(e,t){const n=Do(e);t.directoryExists(n)||this.ensureDirectoryExists(n,t),t.directoryExists(e)||t.createDirectory(e)}watchFiles(e,t){if(!t.length)return void this.closeWatchers(e);const n=this.projectWatchers.get(e),r=new Set(t);!n||nd(r,(e=>!n.has(e)))||nd(n,(e=>!r.has(e)))?(this.projectWatchers.set(e,r),this.sendResponse({kind:MK,projectName:e,files:t})):this.sendResponse({kind:MK,projectName:e,files:void 0})}createSetTypings(e,t){return{projectName:e.projectName,typeAcquisition:e.typeAcquisition,compilerOptions:e.compilerOptions,typings:t,unresolvedImports:e.unresolvedImports,kind:PK}}installTypingsAsync(e,t,n,r){this.pendingRunRequests.unshift({requestId:e,packageNames:t,cwd:n,onRequestCompleted:r}),this.executeWithThrottling()}executeWithThrottling(){for(;this.inFlightRequestCount{this.inFlightRequestCount--,e.onRequestCompleted(t),this.executeWithThrottling()}))}}};function hfe(e){return`@types/${e}@ts${a}`}var yfe,vfe,bfe=(e=>(e[e.terse=0]="terse",e[e.normal=1]="normal",e[e.requestTime=2]="requestTime",e[e.verbose=3]="verbose",e))(bfe||{}),xfe=[],kfe=(e=>(e.Err="Err",e.Info="Info",e.Perf="Perf",e))(kfe||{});function Sfe(e,t,n,r){return{projectName:e.getProjectName(),fileNames:e.getFileNames(!0,!0).concat(e.getExcludedFiles()),compilerOptions:e.getCompilationSettings(),typeAcquisition:t,unresolvedImports:n,projectRootPath:e.getCurrentDirectory(),cachePath:r,kind:"discover"}}function Tfe(e){return Jo(e)}function Cfe(e,t,n){return n(go(e)?e:Bo(e,t))}function wfe(e){return e}function Nfe(){const e=new Map;return{get:t=>e.get(t),set(t,n){e.set(t,n)},contains:t=>e.has(t),remove(t){e.delete(t)}}}function Dfe(e){return/dev\/null\/inferredProject\d+\*/.test(e)}function Ffe(e){return`/dev/null/inferredProject${e}*`}function Efe(e){return`/dev/null/autoImportProviderProject${e}*`}function Pfe(e){return`/dev/null/auxiliaryProject${e}*`}function Afe(){return[]}(vfe=yfe||(yfe={})).ThrowNoProject=function(){throw new Error("No Project.")},vfe.ThrowProjectLanguageServiceDisabled=function(){throw new Error("The project's language service is disabled.")},vfe.ThrowProjectDoesNotContainDocument=function(e,t){throw new Error(`Project '${t.getProjectName()}' does not contain document '${e}'`)};var Ife=class e{constructor(e,t){this.host=e,this.pendingTimeouts=new Map,this.logger=t.hasLevel(3)?t:void 0}schedule(t,n,r){const i=this.pendingTimeouts.get(t);i&&this.host.clearTimeout(i),this.pendingTimeouts.set(t,this.host.setTimeout(e.run,n,t,this,r)),this.logger&&this.logger.info(`Scheduled: ${t}${i?", Cancelled earlier one":""}`)}cancel(e){const t=this.pendingTimeouts.get(e);return!!t&&(this.host.clearTimeout(t),this.pendingTimeouts.delete(e))}static run(e,t,n){t.pendingTimeouts.delete(e),t.logger&&t.logger.info(`Running: ${e}`),n()}},Ofe=class e{constructor(e,t,n){this.host=e,this.delay=t,this.logger=n}scheduleCollect(){this.host.gc&&void 0===this.timerId&&(this.timerId=this.host.setTimeout(e.run,this.delay,this))}static run(e){e.timerId=void 0;const t=e.logger.hasLevel(2),n=t&&e.host.getMemoryUsage();if(e.host.gc(),t){const t=e.host.getMemoryUsage();e.logger.perftrc(`GC::before ${n}, after ${t}`)}}};function Lfe(e){const t=Fo(e);return"tsconfig.json"===t||"jsconfig.json"===t?t:void 0}var jfe={};i(jfe,{ClassificationType:()=>CG,CommandTypes:()=>Rfe,CompletionTriggerKind:()=>lG,IndentStyle:()=>zfe,JsxEmit:()=>qfe,ModuleKind:()=>Ufe,ModuleResolutionKind:()=>Vfe,NewLineKind:()=>Wfe,OrganizeImportsMode:()=>cG,PollingWatchKind:()=>Jfe,ScriptTarget:()=>$fe,SemicolonPreference:()=>pG,WatchDirectoryKind:()=>Bfe,WatchFileKind:()=>Mfe});var Rfe=(e=>(e.JsxClosingTag="jsxClosingTag",e.LinkedEditingRange="linkedEditingRange",e.Brace="brace",e.BraceFull="brace-full",e.BraceCompletion="braceCompletion",e.GetSpanOfEnclosingComment="getSpanOfEnclosingComment",e.Change="change",e.Close="close",e.Completions="completions",e.CompletionInfo="completionInfo",e.CompletionsFull="completions-full",e.CompletionDetails="completionEntryDetails",e.CompletionDetailsFull="completionEntryDetails-full",e.CompileOnSaveAffectedFileList="compileOnSaveAffectedFileList",e.CompileOnSaveEmitFile="compileOnSaveEmitFile",e.Configure="configure",e.Definition="definition",e.DefinitionFull="definition-full",e.DefinitionAndBoundSpan="definitionAndBoundSpan",e.DefinitionAndBoundSpanFull="definitionAndBoundSpan-full",e.Implementation="implementation",e.ImplementationFull="implementation-full",e.EmitOutput="emit-output",e.Exit="exit",e.FileReferences="fileReferences",e.FileReferencesFull="fileReferences-full",e.Format="format",e.Formatonkey="formatonkey",e.FormatFull="format-full",e.FormatonkeyFull="formatonkey-full",e.FormatRangeFull="formatRange-full",e.Geterr="geterr",e.GeterrForProject="geterrForProject",e.SemanticDiagnosticsSync="semanticDiagnosticsSync",e.SyntacticDiagnosticsSync="syntacticDiagnosticsSync",e.SuggestionDiagnosticsSync="suggestionDiagnosticsSync",e.NavBar="navbar",e.NavBarFull="navbar-full",e.Navto="navto",e.NavtoFull="navto-full",e.NavTree="navtree",e.NavTreeFull="navtree-full",e.DocumentHighlights="documentHighlights",e.DocumentHighlightsFull="documentHighlights-full",e.Open="open",e.Quickinfo="quickinfo",e.QuickinfoFull="quickinfo-full",e.References="references",e.ReferencesFull="references-full",e.Reload="reload",e.Rename="rename",e.RenameInfoFull="rename-full",e.RenameLocationsFull="renameLocations-full",e.Saveto="saveto",e.SignatureHelp="signatureHelp",e.SignatureHelpFull="signatureHelp-full",e.FindSourceDefinition="findSourceDefinition",e.Status="status",e.TypeDefinition="typeDefinition",e.ProjectInfo="projectInfo",e.ReloadProjects="reloadProjects",e.Unknown="unknown",e.OpenExternalProject="openExternalProject",e.OpenExternalProjects="openExternalProjects",e.CloseExternalProject="closeExternalProject",e.SynchronizeProjectList="synchronizeProjectList",e.ApplyChangedToOpenFiles="applyChangedToOpenFiles",e.UpdateOpen="updateOpen",e.EncodedSyntacticClassificationsFull="encodedSyntacticClassifications-full",e.EncodedSemanticClassificationsFull="encodedSemanticClassifications-full",e.Cleanup="cleanup",e.GetOutliningSpans="getOutliningSpans",e.GetOutliningSpansFull="outliningSpans",e.TodoComments="todoComments",e.Indentation="indentation",e.DocCommentTemplate="docCommentTemplate",e.CompilerOptionsDiagnosticsFull="compilerOptionsDiagnostics-full",e.NameOrDottedNameSpan="nameOrDottedNameSpan",e.BreakpointStatement="breakpointStatement",e.CompilerOptionsForInferredProjects="compilerOptionsForInferredProjects",e.GetCodeFixes="getCodeFixes",e.GetCodeFixesFull="getCodeFixes-full",e.GetCombinedCodeFix="getCombinedCodeFix",e.GetCombinedCodeFixFull="getCombinedCodeFix-full",e.ApplyCodeActionCommand="applyCodeActionCommand",e.GetSupportedCodeFixes="getSupportedCodeFixes",e.GetApplicableRefactors="getApplicableRefactors",e.GetEditsForRefactor="getEditsForRefactor",e.GetMoveToRefactoringFileSuggestions="getMoveToRefactoringFileSuggestions",e.PreparePasteEdits="preparePasteEdits",e.GetPasteEdits="getPasteEdits",e.GetEditsForRefactorFull="getEditsForRefactor-full",e.OrganizeImports="organizeImports",e.OrganizeImportsFull="organizeImports-full",e.GetEditsForFileRename="getEditsForFileRename",e.GetEditsForFileRenameFull="getEditsForFileRename-full",e.ConfigurePlugin="configurePlugin",e.SelectionRange="selectionRange",e.SelectionRangeFull="selectionRange-full",e.ToggleLineComment="toggleLineComment",e.ToggleLineCommentFull="toggleLineComment-full",e.ToggleMultilineComment="toggleMultilineComment",e.ToggleMultilineCommentFull="toggleMultilineComment-full",e.CommentSelection="commentSelection",e.CommentSelectionFull="commentSelection-full",e.UncommentSelection="uncommentSelection",e.UncommentSelectionFull="uncommentSelection-full",e.PrepareCallHierarchy="prepareCallHierarchy",e.ProvideCallHierarchyIncomingCalls="provideCallHierarchyIncomingCalls",e.ProvideCallHierarchyOutgoingCalls="provideCallHierarchyOutgoingCalls",e.ProvideInlayHints="provideInlayHints",e.WatchChange="watchChange",e.MapCode="mapCode",e.CopilotRelated="copilotRelated",e))(Rfe||{}),Mfe=(e=>(e.FixedPollingInterval="FixedPollingInterval",e.PriorityPollingInterval="PriorityPollingInterval",e.DynamicPriorityPolling="DynamicPriorityPolling",e.FixedChunkSizePolling="FixedChunkSizePolling",e.UseFsEvents="UseFsEvents",e.UseFsEventsOnParentDirectory="UseFsEventsOnParentDirectory",e))(Mfe||{}),Bfe=(e=>(e.UseFsEvents="UseFsEvents",e.FixedPollingInterval="FixedPollingInterval",e.DynamicPriorityPolling="DynamicPriorityPolling",e.FixedChunkSizePolling="FixedChunkSizePolling",e))(Bfe||{}),Jfe=(e=>(e.FixedInterval="FixedInterval",e.PriorityInterval="PriorityInterval",e.DynamicPriority="DynamicPriority",e.FixedChunkSize="FixedChunkSize",e))(Jfe||{}),zfe=(e=>(e.None="None",e.Block="Block",e.Smart="Smart",e))(zfe||{}),qfe=(e=>(e.None="none",e.Preserve="preserve",e.ReactNative="react-native",e.React="react",e.ReactJSX="react-jsx",e.ReactJSXDev="react-jsxdev",e))(qfe||{}),Ufe=(e=>(e.None="none",e.CommonJS="commonjs",e.AMD="amd",e.UMD="umd",e.System="system",e.ES6="es6",e.ES2015="es2015",e.ES2020="es2020",e.ES2022="es2022",e.ESNext="esnext",e.Node16="node16",e.NodeNext="nodenext",e.Preserve="preserve",e))(Ufe||{}),Vfe=(e=>(e.Classic="classic",e.Node="node",e.NodeJs="node",e.Node10="node10",e.Node16="node16",e.NodeNext="nodenext",e.Bundler="bundler",e))(Vfe||{}),Wfe=(e=>(e.Crlf="Crlf",e.Lf="Lf",e))(Wfe||{}),$fe=(e=>(e.ES3="es3",e.ES5="es5",e.ES6="es6",e.ES2015="es2015",e.ES2016="es2016",e.ES2017="es2017",e.ES2018="es2018",e.ES2019="es2019",e.ES2020="es2020",e.ES2021="es2021",e.ES2022="es2022",e.ES2023="es2023",e.ES2024="es2024",e.ESNext="esnext",e.JSON="json",e.Latest="esnext",e))($fe||{}),Hfe=class{constructor(e,t,n){this.host=e,this.info=t,this.isOpen=!1,this.ownFileText=!1,this.pendingReloadFromDisk=!1,this.version=n||0}getVersion(){return this.svc?`SVC-${this.version}-${this.svc.getSnapshotVersion()}`:`Text-${this.version}`}hasScriptVersionCache_TestOnly(){return void 0!==this.svc}resetSourceMapInfo(){this.info.sourceFileLike=void 0,this.info.closeSourceMapFileWatcher(),this.info.sourceMapFilePath=void 0,this.info.declarationInfoPath=void 0,this.info.sourceInfos=void 0,this.info.documentPositionMapper=void 0}useText(e){this.svc=void 0,this.text=e,this.textSnapshot=void 0,this.lineMap=void 0,this.fileSize=void 0,this.resetSourceMapInfo(),this.version++}edit(e,t,n){this.switchToScriptVersionCache().edit(e,t-e,n),this.ownFileText=!1,this.text=void 0,this.textSnapshot=void 0,this.lineMap=void 0,this.fileSize=void 0,this.resetSourceMapInfo()}reload(e){return un.assert(void 0!==e),this.pendingReloadFromDisk=!1,!this.text&&this.svc&&(this.text=CQ(this.svc.getSnapshot())),this.text!==e&&(this.useText(e),this.ownFileText=!1,!0)}reloadWithFileText(e){const{text:t,fileSize:n}=e||!this.info.isDynamicOrHasMixedContent()?this.getFileTextAndSize(e):{text:"",fileSize:void 0},r=this.reload(t);return this.fileSize=n,this.ownFileText=!e||e===this.info.fileName,this.ownFileText&&this.info.mTime===zi.getTime()&&(this.info.mTime=(this.host.getModifiedTime(this.info.fileName)||zi).getTime()),r}scheduleReloadIfNeeded(){return!this.pendingReloadFromDisk&&!this.ownFileText&&(this.pendingReloadFromDisk=!0)}delayReloadFromFileIntoText(){this.pendingReloadFromDisk=!0}getTelemetryFileSize(){return this.fileSize?this.fileSize:this.text?this.text.length:this.svc?this.svc.getSnapshot().getLength():this.getSnapshot().getLength()}getSnapshot(){var e;return(null==(e=this.tryUseScriptVersionCache())?void 0:e.getSnapshot())||(this.textSnapshot??(this.textSnapshot=XK.fromString(un.checkDefined(this.text))))}getAbsolutePositionAndLineText(e){const t=this.tryUseScriptVersionCache();if(t)return t.getAbsolutePositionAndLineText(e);const n=this.getLineMap();return e<=n.length?{absolutePosition:n[e-1],lineText:this.text.substring(n[e-1],n[e])}:{absolutePosition:this.text.length,lineText:void 0}}lineToTextSpan(e){const t=this.tryUseScriptVersionCache();if(t)return t.lineToTextSpan(e);const n=this.getLineMap();return Ws(n[e],e+1void 0===t?t=this.host.readFile(n)||"":t;if(!IS(this.info.fileName)){const e=this.host.getFileSize?this.host.getFileSize(n):r().length;if(e>yme)return un.assert(!!this.info.containingProjects.length),this.info.containingProjects[0].projectService.logger.info(`Skipped loading contents of large file ${n} for info ${this.info.fileName}: fileSize: ${e}`),this.info.containingProjects[0].projectService.sendLargeFileReferencedEvent(n,e),{text:"",fileSize:e}}return{text:r()}}switchToScriptVersionCache(){return this.svc&&!this.pendingReloadFromDisk||(this.svc=ihe.fromString(this.getOrLoadText()),this.textSnapshot=void 0,this.version++),this.svc}tryUseScriptVersionCache(){return this.svc&&!this.pendingReloadFromDisk||this.getOrLoadText(),this.isOpen?(this.svc||this.textSnapshot||(this.svc=ihe.fromString(un.checkDefined(this.text)),this.textSnapshot=void 0),this.svc):this.svc}getOrLoadText(){return(void 0===this.text||this.pendingReloadFromDisk)&&(un.assert(!this.svc||this.pendingReloadFromDisk,"ScriptVersionCache should not be set when reloading from disk"),this.reloadWithFileText()),this.text}getLineMap(){return un.assert(!this.svc,"ScriptVersionCache should not be set"),this.lineMap||(this.lineMap=Ia(un.checkDefined(this.text)))}getLineInfo(){const e=this.tryUseScriptVersionCache();if(e)return{getLineCount:()=>e.getLineCount(),getLineText:t=>e.getAbsolutePositionAndLineText(t+1).lineText};const t=this.getLineMap();return lJ(this.text,t)}};function Kfe(e){return"^"===e[0]||(e.includes("walkThroughSnippet:/")||e.includes("untitled:/"))&&"^"===Fo(e)[0]||e.includes(":^")&&!e.includes(lo)}var Gfe=class{constructor(e,t,n,r,i,o){this.host=e,this.fileName=t,this.scriptKind=n,this.hasMixedContent=r,this.path=i,this.containingProjects=[],this.isDynamic=Kfe(t),this.textStorage=new Hfe(e,this,o),(r||this.isDynamic)&&(this.realpath=this.path),this.scriptKind=n||vS(t)}isDynamicOrHasMixedContent(){return this.hasMixedContent||this.isDynamic}isScriptOpen(){return this.textStorage.isOpen}open(e){this.textStorage.isOpen=!0,void 0!==e&&this.textStorage.reload(e)&&this.markContainingProjectsAsDirty()}close(e=!0){this.textStorage.isOpen=!1,e&&this.textStorage.scheduleReloadIfNeeded()&&this.markContainingProjectsAsDirty()}getSnapshot(){return this.textStorage.getSnapshot()}ensureRealPath(){if(void 0===this.realpath&&(this.realpath=this.path,this.host.realpath)){un.assert(!!this.containingProjects.length);const e=this.containingProjects[0],t=this.host.realpath(this.path);t&&(this.realpath=e.toPath(t),this.realpath!==this.path&&e.projectService.realpathToScriptInfos.add(this.realpath,this))}}getRealpathIfDifferent(){return this.realpath&&this.realpath!==this.path?this.realpath:void 0}isSymlink(){return this.realpath&&this.realpath!==this.path}getFormatCodeSettings(){return this.formatSettings}getPreferences(){return this.preferences}attachToProject(e){const t=!this.isAttached(e);return t&&(this.containingProjects.push(e),e.getCompilerOptions().preserveSymlinks||this.ensureRealPath(),e.onFileAddedOrRemoved(this.isSymlink())),t}isAttached(e){switch(this.containingProjects.length){case 0:return!1;case 1:return this.containingProjects[0]===e;case 2:return this.containingProjects[0]===e||this.containingProjects[1]===e;default:return T(this.containingProjects,e)}}detachFromProject(e){switch(this.containingProjects.length){case 0:return;case 1:this.containingProjects[0]===e&&(e.onFileAddedOrRemoved(this.isSymlink()),this.containingProjects.pop());break;case 2:this.containingProjects[0]===e?(e.onFileAddedOrRemoved(this.isSymlink()),this.containingProjects[0]=this.containingProjects.pop()):this.containingProjects[1]===e&&(e.onFileAddedOrRemoved(this.isSymlink()),this.containingProjects.pop());break;default:zt(this.containingProjects,e)&&e.onFileAddedOrRemoved(this.isSymlink())}}detachAllProjects(){for(const e of this.containingProjects){pme(e)&&e.getCachedDirectoryStructureHost().addOrDeleteFile(this.fileName,this.path,2);const t=e.getRootFilesMap().get(this.path);e.removeFile(this,!1,!1),e.onFileAddedOrRemoved(this.isSymlink()),t&&!dme(e)&&e.addMissingFileRoot(t.fileName)}F(this.containingProjects)}getDefaultProject(){switch(this.containingProjects.length){case 0:return yfe.ThrowNoProject();case 1:return gme(this.containingProjects[0])||mme(this.containingProjects[0])?yfe.ThrowNoProject():this.containingProjects[0];default:let e,t,n,r;for(let i=0;i!e.isOrphan()))}lineToTextSpan(e){return this.textStorage.lineToTextSpan(e)}lineOffsetToPosition(e,t,n){return this.textStorage.lineOffsetToPosition(e,t,n)}positionToLineOffset(e){!function(e){un.assert("number"==typeof e,`Expected position ${e} to be a number.`),un.assert(e>=0,"Expected position to be non-negative.")}(e);const t=this.textStorage.positionToLineOffset(e);return function(e){un.assert("number"==typeof e.line,`Expected line ${e.line} to be a number.`),un.assert("number"==typeof e.offset,`Expected offset ${e.offset} to be a number.`),un.assert(e.line>0,"Expected line to be non-"+(0===e.line?"zero":"negative")),un.assert(e.offset>0,"Expected offset to be non-"+(0===e.offset?"zero":"negative"))}(t),t}isJavaScript(){return 1===this.scriptKind||2===this.scriptKind}closeSourceMapFileWatcher(){this.sourceMapFilePath&&!Ze(this.sourceMapFilePath)&&(vU(this.sourceMapFilePath),this.sourceMapFilePath=void 0)}};function Xfe(e){return $(e.containingProjects,mme)}function Qfe(e){return $(e.containingProjects,gme)}var Yfe=(e=>(e[e.Inferred=0]="Inferred",e[e.Configured=1]="Configured",e[e.External=2]="External",e[e.AutoImportProvider=3]="AutoImportProvider",e[e.Auxiliary=4]="Auxiliary",e))(Yfe||{});function Zfe(e,t=!1){const n={js:0,jsSize:0,jsx:0,jsxSize:0,ts:0,tsSize:0,tsx:0,tsxSize:0,dts:0,dtsSize:0,deferred:0,deferredSize:0};for(const r of e){const e=t?r.textStorage.getTelemetryFileSize():0;switch(r.scriptKind){case 1:n.js+=1,n.jsSize+=e;break;case 2:n.jsx+=1,n.jsxSize+=e;break;case 3:$I(r.fileName)?(n.dts+=1,n.dtsSize+=e):(n.ts+=1,n.tsSize+=e);break;case 4:n.tsx+=1,n.tsxSize+=e;break;case 7:n.deferred+=1,n.deferredSize+=e}}return n}function eme(e){const t=Zfe(e.getRootScriptInfos());return 0===t.ts&&0===t.tsx}function tme(e){const t=Zfe(e.getScriptInfos());return 0===t.ts&&0===t.tsx}function nme(e){return!e.some((e=>ko(e,".ts")&&!$I(e)||ko(e,".tsx")))}function rme(e){return void 0!==e.generatedFilePath}function ime(e,t){if(e===t)return!0;if(0===(e||xfe).length&&0===(t||xfe).length)return!0;const n=new Map;let r=0;for(const t of e)!0!==n.get(t)&&(n.set(t,!0),r++);for(const e of t){const t=n.get(e);if(void 0===t)return!1;!0===t&&(n.set(e,!1),r--)}return 0===r}var ome=class e{constructor(e,t,n,r,i,o,a,s,c,l){switch(this.projectKind=t,this.projectService=n,this.compilerOptions=o,this.compileOnSaveEnabled=a,this.watchOptions=s,this.rootFilesMap=new Map,this.plugins=[],this.cachedUnresolvedImportsPerFile=new Map,this.hasAddedorRemovedFiles=!1,this.hasAddedOrRemovedSymlinks=!1,this.lastReportedVersion=0,this.projectProgramVersion=0,this.projectStateVersion=0,this.initialLoadPending=!1,this.dirty=!1,this.typingFiles=xfe,this.moduleSpecifierCache=bge(this),this.createHash=We(this.projectService.host,this.projectService.host.createHash),this.globalCacheResolutionModuleName=DK.nonRelativeModuleNameForTypingCache,this.updateFromProjectInProgress=!1,n.logger.info(`Creating ${Yfe[t]}Project: ${e}, currentDirectory: ${l}`),this.projectName=e,this.directoryStructureHost=c,this.currentDirectory=this.projectService.getNormalizedAbsolutePath(l),this.getCanonicalFileName=this.projectService.toCanonicalFileName,this.jsDocParsingMode=this.projectService.jsDocParsingMode,this.cancellationToken=new R8(this.projectService.cancellationToken,this.projectService.throttleWaitMilliseconds),this.compilerOptions?(r||Pk(this.compilerOptions)||this.projectService.hasDeferredExtension())&&(this.compilerOptions.allowNonTsExtensions=!0):(this.compilerOptions={target:1,jsx:1},this.compilerOptions.allowNonTsExtensions=!0,this.compilerOptions.allowJs=!0),n.serverMode){case 0:this.languageServiceEnabled=!0;break;case 1:this.languageServiceEnabled=!0,this.compilerOptions.noResolve=!0,this.compilerOptions.types=[];break;case 2:this.languageServiceEnabled=!1,this.compilerOptions.noResolve=!0,this.compilerOptions.types=[];break;default:un.assertNever(n.serverMode)}this.setInternalCompilerOptionsForEmittingJsFiles();const _=this.projectService.host;this.projectService.logger.loggingEnabled()?this.trace=e=>this.writeLog(e):_.trace&&(this.trace=e=>_.trace(e)),this.realpath=We(_,_.realpath),this.preferNonRecursiveWatch=this.projectService.canUseWatchEvents||_.preferNonRecursiveWatch,this.resolutionCache=zW(this,this.currentDirectory,!0),this.languageService=J8(this,this.projectService.documentRegistry,this.projectService.serverMode),i&&this.disableLanguageService(i),this.markAsDirty(),mme(this)||(this.projectService.pendingEnsureProjectForOpenFiles=!0),this.projectService.onProjectCreation(this)}getResolvedProjectReferenceToRedirect(e){}isNonTsProject(){return sge(this),tme(this)}isJsOnlyProject(){return sge(this),function(e){const t=Zfe(e.getScriptInfos());return t.js>0&&0===t.ts&&0===t.tsx}(this)}static resolveModule(t,n,r,i){return e.importServicePluginSync({name:t},[n],r,i).resolvedModule}static importServicePluginSync(e,t,n,r){let i,o;un.assertIsDefined(n.require);for(const a of t){const t=Oo(n.resolvePath(jo(a,"node_modules")));r(`Loading ${e.name} from ${a} (resolved to ${t})`);const s=n.require(t,e.name);if(!s.error){o=s.module;break}const c=s.error.stack||s.error.message||JSON.stringify(s.error);(i??(i=[])).push(`Failed to load module '${e.name}' from ${t}: ${c}`)}return{pluginConfigEntry:e,resolvedModule:o,errorLogs:i}}static async importServicePluginAsync(e,t,n,r){let i,o;un.assertIsDefined(n.importPlugin);for(const a of t){const t=jo(a,"node_modules");let s;r(`Dynamically importing ${e.name} from ${a} (resolved to ${t})`);try{s=await n.importPlugin(t,e.name)}catch(e){s={module:void 0,error:e}}if(!s.error){o=s.module;break}const c=s.error.stack||s.error.message||JSON.stringify(s.error);(i??(i=[])).push(`Failed to dynamically import module '${e.name}' from ${t}: ${c}`)}return{pluginConfigEntry:e,resolvedModule:o,errorLogs:i}}isKnownTypesPackageName(e){return this.projectService.typingsInstaller.isKnownTypesPackageName(e)}installPackage(e){return this.projectService.typingsInstaller.installPackage({...e,projectName:this.projectName,projectRootPath:this.toPath(this.currentDirectory)})}getGlobalTypingsCacheLocation(){return this.getTypeAcquisition().enable?this.projectService.typingsInstaller.globalTypingsCacheLocation:void 0}getSymlinkCache(){return this.symlinks||(this.symlinks=Gk(this.getCurrentDirectory(),this.getCanonicalFileName)),this.program&&!this.symlinks.hasProcessedResolutions()&&this.symlinks.setSymlinksFromResolutions(this.program.forEachResolvedModule,this.program.forEachResolvedTypeReferenceDirective,this.program.getAutomaticTypeDirectiveResolutions()),this.symlinks}getCompilationSettings(){return this.compilerOptions}getCompilerOptions(){return this.getCompilationSettings()}getNewLine(){return this.projectService.host.newLine}getProjectVersion(){return this.projectStateVersion.toString()}getProjectReferences(){}getScriptFileNames(){if(!this.rootFilesMap.size)return l;let e;return this.rootFilesMap.forEach((t=>{(this.languageServiceEnabled||t.info&&t.info.isScriptOpen())&&(e||(e=[])).push(t.fileName)})),se(e,this.typingFiles)||l}getOrCreateScriptInfoAndAttachToProject(e){const t=this.projectService.getOrCreateScriptInfoNotOpenedByClient(e,this.currentDirectory,this.directoryStructureHost,!1);if(t){const e=this.rootFilesMap.get(t.path);e&&e.info!==t&&(e.info=t),t.attachToProject(this)}return t}getScriptKind(e){const t=this.projectService.getScriptInfoForPath(this.toPath(e));return t&&t.scriptKind}getScriptVersion(e){const t=this.projectService.getOrCreateScriptInfoNotOpenedByClient(e,this.currentDirectory,this.directoryStructureHost,!1);return t&&t.getLatestVersion()}getScriptSnapshot(e){const t=this.getOrCreateScriptInfoAndAttachToProject(e);if(t)return t.getSnapshot()}getCancellationToken(){return this.cancellationToken}getCurrentDirectory(){return this.currentDirectory}getDefaultLibFileName(){return jo(Do(Jo(this.projectService.getExecutingFilePath())),Ns(this.compilerOptions))}useCaseSensitiveFileNames(){return this.projectService.host.useCaseSensitiveFileNames}readDirectory(e,t,n,r,i){return this.directoryStructureHost.readDirectory(e,t,n,r,i)}readFile(e){return this.projectService.host.readFile(e)}writeFile(e,t){return this.projectService.host.writeFile(e,t)}fileExists(e){const t=this.toPath(e);return!!this.projectService.getScriptInfoForPath(t)||!this.isWatchedMissingFile(t)&&this.directoryStructureHost.fileExists(e)}resolveModuleNameLiterals(e,t,n,r,i,o){return this.resolutionCache.resolveModuleNameLiterals(e,t,n,r,i,o)}getModuleResolutionCache(){return this.resolutionCache.getModuleResolutionCache()}resolveTypeReferenceDirectiveReferences(e,t,n,r,i,o){return this.resolutionCache.resolveTypeReferenceDirectiveReferences(e,t,n,r,i,o)}resolveLibrary(e,t,n,r){return this.resolutionCache.resolveLibrary(e,t,n,r)}directoryExists(e){return this.directoryStructureHost.directoryExists(e)}getDirectories(e){return this.directoryStructureHost.getDirectories(e)}getCachedDirectoryStructureHost(){}toPath(e){return qo(e,this.currentDirectory,this.projectService.toCanonicalFileName)}watchDirectoryOfFailedLookupLocation(e,t,n){return this.projectService.watchFactory.watchDirectory(e,t,n,this.projectService.getWatchOptions(this),p$.FailedLookupLocations,this)}watchAffectingFileLocation(e,t){return this.projectService.watchFactory.watchFile(e,t,2e3,this.projectService.getWatchOptions(this),p$.AffectingFileLocation,this)}clearInvalidateResolutionOfFailedLookupTimer(){return this.projectService.throttledOperations.cancel(`${this.getProjectName()}FailedLookupInvalidation`)}scheduleInvalidateResolutionsOfFailedLookupLocations(){this.projectService.throttledOperations.schedule(`${this.getProjectName()}FailedLookupInvalidation`,1e3,(()=>{this.resolutionCache.invalidateResolutionsOfFailedLookupLocations()&&this.projectService.delayUpdateProjectGraphAndEnsureProjectStructureForOpenFiles(this)}))}invalidateResolutionsOfFailedLookupLocations(){this.clearInvalidateResolutionOfFailedLookupTimer()&&this.resolutionCache.invalidateResolutionsOfFailedLookupLocations()&&(this.markAsDirty(),this.projectService.delayEnsureProjectForOpenFiles())}onInvalidatedResolution(){this.projectService.delayUpdateProjectGraphAndEnsureProjectStructureForOpenFiles(this)}watchTypeRootsDirectory(e,t,n){return this.projectService.watchFactory.watchDirectory(e,t,n,this.projectService.getWatchOptions(this),p$.TypeRoots,this)}hasChangedAutomaticTypeDirectiveNames(){return this.resolutionCache.hasChangedAutomaticTypeDirectiveNames()}onChangedAutomaticTypeDirectiveNames(){this.projectService.delayUpdateProjectGraphAndEnsureProjectStructureForOpenFiles(this)}fileIsOpen(e){return this.projectService.openFiles.has(e)}writeLog(e){this.projectService.logger.info(e)}log(e){this.writeLog(e)}error(e){this.projectService.logger.msg(e,"Err")}setInternalCompilerOptionsForEmittingJsFiles(){0!==this.projectKind&&2!==this.projectKind||(this.compilerOptions.noEmitForJsFiles=!0)}getGlobalProjectErrors(){return N(this.projectErrors,(e=>!e.file))||xfe}getAllProjectErrors(){return this.projectErrors||xfe}setProjectErrors(e){this.projectErrors=e}getLanguageService(e=!0){return e&&sge(this),this.languageService}getSourceMapper(){return this.getLanguageService().getSourceMapper()}clearSourceMapperCache(){this.languageService.clearSourceMapperCache()}getDocumentPositionMapper(e,t){return this.projectService.getDocumentPositionMapper(this,e,t)}getSourceFileLike(e){return this.projectService.getSourceFileLike(e,this)}shouldEmitFile(e){return e&&!e.isDynamicOrHasMixedContent()&&!this.program.isSourceOfProjectReferenceRedirect(e.path)}getCompileOnSaveAffectedFileList(e){return this.languageServiceEnabled?(sge(this),this.builderState=OV.create(this.program,this.builderState,!0),B(OV.getFilesAffectedBy(this.builderState,this.program,e.path,this.cancellationToken,this.projectService.host),(e=>this.shouldEmitFile(this.projectService.getScriptInfoForPath(e.path))?e.fileName:void 0))):[]}emitFile(e,t){if(!this.languageServiceEnabled||!this.shouldEmitFile(e))return{emitSkipped:!0,diagnostics:xfe};const{emitSkipped:n,diagnostics:r,outputFiles:i}=this.getLanguageService().getEmitOutput(e.fileName);if(!n){for(const e of i)t(Bo(e.name,this.currentDirectory),e.text,e.writeByteOrderMark);if(this.builderState&&Nk(this.compilerOptions)){const t=i.filter((e=>$I(e.name)));if(1===t.length){const n=this.program.getSourceFile(e.fileName),r=this.projectService.host.createHash?this.projectService.host.createHash(t[0].text):Ri(t[0].text);OV.updateSignatureOfFile(this.builderState,r,n.resolvedPath)}}}return{emitSkipped:n,diagnostics:r}}enableLanguageService(){this.languageServiceEnabled||2===this.projectService.serverMode||(this.languageServiceEnabled=!0,this.lastFileExceededProgramSize=void 0,this.projectService.onUpdateLanguageServiceStateForProject(this,!0))}cleanupProgram(){if(this.program){for(const e of this.program.getSourceFiles())this.detachScriptInfoIfNotRoot(e.fileName);this.program.forEachResolvedProjectReference((e=>this.detachScriptInfoFromProject(e.sourceFile.fileName))),this.program=void 0}}disableLanguageService(e){this.languageServiceEnabled&&(un.assert(2!==this.projectService.serverMode),this.languageService.cleanupSemanticCache(),this.languageServiceEnabled=!1,this.cleanupProgram(),this.lastFileExceededProgramSize=e,this.builderState=void 0,this.autoImportProviderHost&&this.autoImportProviderHost.close(),this.autoImportProviderHost=void 0,this.resolutionCache.closeTypeRootsWatch(),this.clearGeneratedFileWatch(),this.projectService.verifyDocumentRegistry(),this.projectService.onUpdateLanguageServiceStateForProject(this,!1))}getProjectName(){return this.projectName}removeLocalTypingsFromTypeAcquisition(e){return e.enable&&e.include?{...e,include:this.removeExistingTypings(e.include)}:e}getExternalFiles(e){return _e(O(this.plugins,(t=>{if("function"==typeof t.module.getExternalFiles)try{return t.module.getExternalFiles(this,e||0)}catch(e){this.projectService.logger.info(`A plugin threw an exception in getExternalFiles: ${e}`),e.stack&&this.projectService.logger.info(e.stack)}})))}getSourceFile(e){if(this.program)return this.program.getSourceFileByPath(e)}getSourceFileOrConfigFile(e){const t=this.program.getCompilerOptions();return e===t.configFilePath?t.configFile:this.getSourceFile(e)}close(){var e;this.typingsCache&&this.projectService.typingsInstaller.onProjectClosed(this),this.typingsCache=void 0,this.closeWatchingTypingLocations(),this.cleanupProgram(),d(this.externalFiles,(e=>this.detachScriptInfoIfNotRoot(e))),this.rootFilesMap.forEach((e=>{var t;return null==(t=e.info)?void 0:t.detachFromProject(this)})),this.projectService.pendingEnsureProjectForOpenFiles=!0,this.rootFilesMap=void 0,this.externalFiles=void 0,this.program=void 0,this.builderState=void 0,this.resolutionCache.clear(),this.resolutionCache=void 0,this.cachedUnresolvedImportsPerFile=void 0,null==(e=this.packageJsonWatches)||e.forEach((e=>{e.projects.delete(this),e.close()})),this.packageJsonWatches=void 0,this.moduleSpecifierCache.clear(),this.moduleSpecifierCache=void 0,this.directoryStructureHost=void 0,this.exportMapCache=void 0,this.projectErrors=void 0,this.plugins.length=0,this.missingFilesMap&&(_x(this.missingFilesMap,tx),this.missingFilesMap=void 0),this.clearGeneratedFileWatch(),this.clearInvalidateResolutionOfFailedLookupTimer(),this.autoImportProviderHost&&this.autoImportProviderHost.close(),this.autoImportProviderHost=void 0,this.noDtsResolutionProject&&this.noDtsResolutionProject.close(),this.noDtsResolutionProject=void 0,this.languageService.dispose(),this.languageService=void 0}detachScriptInfoIfNotRoot(e){const t=this.projectService.getScriptInfo(e);t&&!this.isRoot(t)&&t.detachFromProject(this)}isClosed(){return void 0===this.rootFilesMap}hasRoots(){var e;return!!(null==(e=this.rootFilesMap)?void 0:e.size)}isOrphan(){return!1}getRootFiles(){return this.rootFilesMap&&Oe(J(this.rootFilesMap.values(),(e=>{var t;return null==(t=e.info)?void 0:t.fileName})))}getRootFilesMap(){return this.rootFilesMap}getRootScriptInfos(){return Oe(J(this.rootFilesMap.values(),(e=>e.info)))}getScriptInfos(){return this.languageServiceEnabled?E(this.program.getSourceFiles(),(e=>{const t=this.projectService.getScriptInfoForPath(e.resolvedPath);return un.assert(!!t,"getScriptInfo",(()=>`scriptInfo for a file '${e.fileName}' Path: '${e.path}' / '${e.resolvedPath}' is missing.`)),t})):this.getRootScriptInfos()}getExcludedFiles(){return xfe}getFileNames(e,t){if(!this.program)return[];if(!this.languageServiceEnabled){let e=this.getRootFiles();if(this.compilerOptions){const t=V8(this.compilerOptions);t&&(e||(e=[])).push(t)}return e}const n=[];for(const t of this.program.getSourceFiles())e&&this.program.isSourceFileFromExternalLibrary(t)||n.push(t.fileName);if(!t){const e=this.program.getCompilerOptions().configFile;if(e&&(n.push(e.fileName),e.extendedSourceFiles))for(const t of e.extendedSourceFiles)n.push(t)}return n}getFileNamesWithRedirectInfo(e){return this.getFileNames().map((t=>({fileName:t,isSourceOfProjectReferenceRedirect:e&&this.isSourceOfProjectReferenceRedirect(t)})))}hasConfigFile(e){if(this.program&&this.languageServiceEnabled){const t=this.program.getCompilerOptions().configFile;if(t){if(e===t.fileName)return!0;if(t.extendedSourceFiles)for(const n of t.extendedSourceFiles)if(e===n)return!0}}return!1}containsScriptInfo(e){if(this.isRoot(e))return!0;if(!this.program)return!1;const t=this.program.getSourceFileByPath(e.path);return!!t&&t.resolvedPath===e.path}containsFile(e,t){const n=this.projectService.getScriptInfoForNormalizedPath(e);return!(!n||!n.isScriptOpen()&&t)&&this.containsScriptInfo(n)}isRoot(e){var t,n;return(null==(n=null==(t=this.rootFilesMap)?void 0:t.get(e.path))?void 0:n.info)===e}addRoot(e,t){un.assert(!this.isRoot(e)),this.rootFilesMap.set(e.path,{fileName:t||e.fileName,info:e}),e.attachToProject(this),this.markAsDirty()}addMissingFileRoot(e){const t=this.projectService.toPath(e);this.rootFilesMap.set(t,{fileName:e}),this.markAsDirty()}removeFile(e,t,n){this.isRoot(e)&&this.removeRoot(e),t?this.resolutionCache.removeResolutionsOfFile(e.path):this.resolutionCache.invalidateResolutionOfFile(e.path),this.cachedUnresolvedImportsPerFile.delete(e.path),n&&e.detachFromProject(this),this.markAsDirty()}registerFileUpdate(e){(this.updatedFileNames||(this.updatedFileNames=new Set)).add(e)}markFileAsDirty(e){this.markAsDirty(),this.exportMapCache&&!this.exportMapCache.isEmpty()&&(this.changedFilesForExportMapCache||(this.changedFilesForExportMapCache=new Set)).add(e)}markAsDirty(){this.dirty||(this.projectStateVersion++,this.dirty=!0)}markAutoImportProviderAsDirty(){var e;this.autoImportProviderHost||(this.autoImportProviderHost=void 0),null==(e=this.autoImportProviderHost)||e.markAsDirty()}onAutoImportProviderSettingsChanged(){this.markAutoImportProviderAsDirty()}onPackageJsonChange(){this.moduleSpecifierCache.clear(),this.markAutoImportProviderAsDirty()}onFileAddedOrRemoved(e){this.hasAddedorRemovedFiles=!0,e&&(this.hasAddedOrRemovedSymlinks=!0)}onDiscoveredSymlink(){this.hasAddedOrRemovedSymlinks=!0}onReleaseOldSourceFile(e,t,n,r){(!r||e.resolvedPath===e.path&&r.resolvedPath!==e.path)&&this.detachScriptInfoFromProject(e.fileName,n)}updateFromProject(){sge(this)}updateGraph(){var e,t;null==(e=Hn)||e.push(Hn.Phase.Session,"updateGraph",{name:this.projectName,kind:Yfe[this.projectKind]}),this.resolutionCache.startRecordingFilesWithChangedResolutions();const n=this.updateGraphWorker(),r=this.hasAddedorRemovedFiles;this.hasAddedorRemovedFiles=!1,this.hasAddedOrRemovedSymlinks=!1;const i=this.resolutionCache.finishRecordingFilesWithChangedResolutions()||xfe;for(const e of i)this.cachedUnresolvedImportsPerFile.delete(e);this.languageServiceEnabled&&0===this.projectService.serverMode&&!this.isOrphan()?((n||i.length)&&(this.lastCachedUnresolvedImportsList=function(e,t){var n,r;const i=e.getSourceFiles();null==(n=Hn)||n.push(Hn.Phase.Session,"getUnresolvedImports",{count:i.length});const o=e.getTypeChecker().getAmbientModules().map((e=>Dy(e.getName()))),a=ee(O(i,(n=>function(e,t,n,r){return z(r,t.path,(()=>{let r;return e.forEachResolvedModule((({resolvedModule:e},t)=>{e&&XS(e.extension)||Ts(t)||n.some((e=>e===t))||(r=ie(r,YR(t).packageName))}),t),r||xfe}))}(e,n,o,t))));return null==(r=Hn)||r.pop(),a}(this.program,this.cachedUnresolvedImportsPerFile)),this.enqueueInstallTypingsForProject(r)):this.lastCachedUnresolvedImportsList=void 0;const o=0===this.projectProgramVersion&&n;return n&&this.projectProgramVersion++,r&&this.markAutoImportProviderAsDirty(),o&&this.getPackageJsonAutoImportProvider(),null==(t=Hn)||t.pop(),!n}enqueueInstallTypingsForProject(e){const t=this.getTypeAcquisition();if(!t||!t.enable||this.projectService.typingsInstaller===$me)return;const n=this.typingsCache;var r,i,o,a;!e&&n&&(o=t,a=n.typeAcquisition,o.enable===a.enable&&ime(o.include,a.include)&&ime(o.exclude,a.exclude))&&!function(e,t){return Pk(e)!==Pk(t)}(this.getCompilationSettings(),n.compilerOptions)&&((r=this.lastCachedUnresolvedImportsList)===(i=n.unresolvedImports)||te(r,i))||(this.typingsCache={compilerOptions:this.getCompilationSettings(),typeAcquisition:t,unresolvedImports:this.lastCachedUnresolvedImportsList},this.projectService.typingsInstaller.enqueueInstallTypingsRequest(this,t,this.lastCachedUnresolvedImportsList))}updateTypingFiles(e,t,n,r){this.typingsCache={compilerOptions:e,typeAcquisition:t,unresolvedImports:n};const i=t&&t.enable?_e(r):xfe;on(i,this.typingFiles,wt(!this.useCaseSensitiveFileNames()),rt,(e=>this.detachScriptInfoFromProject(e)))&&(this.typingFiles=i,this.resolutionCache.setFilesWithInvalidatedNonRelativeUnresolvedImports(this.cachedUnresolvedImportsPerFile),this.projectService.delayUpdateProjectGraphAndEnsureProjectStructureForOpenFiles(this))}closeWatchingTypingLocations(){this.typingWatchers&&_x(this.typingWatchers,tx),this.typingWatchers=void 0}onTypingInstallerWatchInvoke(){this.typingWatchers.isInvoked=!0,this.projectService.updateTypingsForProject({projectName:this.getProjectName(),kind:AK})}watchTypingLocations(e){if(!e)return void(this.typingWatchers.isInvoked=!1);if(!e.length)return void this.closeWatchingTypingLocations();const t=new Map(this.typingWatchers);this.typingWatchers||(this.typingWatchers=new Map),this.typingWatchers.isInvoked=!1;const n=(e,n)=>{const r=this.toPath(e);if(t.delete(r),!this.typingWatchers.has(r)){const t="FileWatcher"===n?p$.TypingInstallerLocationFile:p$.TypingInstallerLocationDirectory;this.typingWatchers.set(r,FW(r)?"FileWatcher"===n?this.projectService.watchFactory.watchFile(e,(()=>this.typingWatchers.isInvoked?this.writeLog("TypingWatchers already invoked"):this.onTypingInstallerWatchInvoke()),2e3,this.projectService.getWatchOptions(this),t,this):this.projectService.watchFactory.watchDirectory(e,(e=>this.typingWatchers.isInvoked?this.writeLog("TypingWatchers already invoked"):ko(e,".json")?Yo(e,jo(this.projectService.typingsInstaller.globalTypingsCacheLocation,"package.json"),!this.useCaseSensitiveFileNames())?this.writeLog("Ignoring package.json change at global typings location"):void this.onTypingInstallerWatchInvoke():this.writeLog("Ignoring files that are not *.json")),1,this.projectService.getWatchOptions(this),t,this):(this.writeLog(`Skipping watcher creation at ${e}:: ${oge(t,this)}`),_$))}};for(const t of e){const e=Fo(t);if("package.json"!==e&&"bower.json"!==e)if(Zo(this.currentDirectory,t,this.currentDirectory,!this.useCaseSensitiveFileNames())){const e=t.indexOf(lo,this.currentDirectory.length+1);n(-1!==e?t.substr(0,e):t,"DirectoryWatcher")}else Zo(this.projectService.typingsInstaller.globalTypingsCacheLocation,t,this.currentDirectory,!this.useCaseSensitiveFileNames())?n(this.projectService.typingsInstaller.globalTypingsCacheLocation,"DirectoryWatcher"):n(t,"DirectoryWatcher");else n(t,"FileWatcher")}t.forEach(((e,t)=>{e.close(),this.typingWatchers.delete(t)}))}getCurrentProgram(){return this.program}removeExistingTypings(e){if(!e.length)return e;const t=rR(this.getCompilerOptions(),this);return N(e,(e=>!t.includes(e)))}updateGraphWorker(){var e,t;const n=this.languageService.getCurrentProgram();un.assert(n===this.program),un.assert(!this.isClosed(),"Called update graph worker of closed project"),this.writeLog(`Starting updateGraphWorker: Project: ${this.getProjectName()}`);const r=Un(),{hasInvalidatedResolutions:i,hasInvalidatedLibResolutions:o}=this.resolutionCache.createHasInvalidatedResolutions(it,it);this.hasInvalidatedResolutions=i,this.hasInvalidatedLibResolutions=o,this.resolutionCache.startCachingPerDirectoryResolution(),this.dirty=!1,this.updateFromProjectInProgress=!0,this.program=this.languageService.getProgram(),this.updateFromProjectInProgress=!1,null==(e=Hn)||e.push(Hn.Phase.Session,"finishCachingPerDirectoryResolution"),this.resolutionCache.finishCachingPerDirectoryResolution(this.program,n),null==(t=Hn)||t.pop(),un.assert(void 0===n||void 0!==this.program);let a=!1;if(this.program&&(!n||this.program!==n&&2!==this.program.structureIsReused)){if(a=!0,this.rootFilesMap.forEach(((e,t)=>{var n;const r=this.program.getSourceFileByPath(t),i=e.info;r&&(null==(n=e.info)?void 0:n.path)!==r.resolvedPath&&(e.info=this.projectService.getScriptInfo(r.fileName),un.assert(e.info.isAttached(this)),null==i||i.detachFromProject(this))})),dU(this.program,this.missingFilesMap||(this.missingFilesMap=new Map),((e,t)=>this.addMissingFileWatcher(e,t))),this.generatedFilesMap){const e=this.compilerOptions.outFile;rme(this.generatedFilesMap)?e&&this.isValidGeneratedFileWatcher(zS(e)+".d.ts",this.generatedFilesMap)||this.clearGeneratedFileWatch():e?this.clearGeneratedFileWatch():this.generatedFilesMap.forEach(((e,t)=>{const n=this.program.getSourceFileByPath(t);n&&n.resolvedPath===t&&this.isValidGeneratedFileWatcher(Uy(n.fileName,this.compilerOptions,this.program),e)||(vU(e),this.generatedFilesMap.delete(t))}))}this.languageServiceEnabled&&0===this.projectService.serverMode&&this.resolutionCache.updateTypeRootsWatch()}this.projectService.verifyProgram(this),this.exportMapCache&&!this.exportMapCache.isEmpty()&&(this.exportMapCache.releaseSymbols(),this.hasAddedorRemovedFiles||n&&!this.program.structureIsReused?this.exportMapCache.clear():this.changedFilesForExportMapCache&&n&&this.program&&nd(this.changedFilesForExportMapCache,(e=>{const t=n.getSourceFileByPath(e),r=this.program.getSourceFileByPath(e);return t&&r?this.exportMapCache.onFileChanged(t,r,!!this.getTypeAcquisition().enable):(this.exportMapCache.clear(),!0)}))),this.changedFilesForExportMapCache&&this.changedFilesForExportMapCache.clear(),(this.hasAddedOrRemovedSymlinks||this.program&&!this.program.structureIsReused&&this.getCompilerOptions().preserveSymlinks)&&(this.symlinks=void 0,this.moduleSpecifierCache.clear());const s=this.externalFiles||xfe;this.externalFiles=this.getExternalFiles(),on(this.externalFiles,s,wt(!this.useCaseSensitiveFileNames()),(e=>{const t=this.projectService.getOrCreateScriptInfoNotOpenedByClient(e,this.currentDirectory,this.directoryStructureHost,!1);null==t||t.attachToProject(this)}),(e=>this.detachScriptInfoFromProject(e)));const c=Un()-r;return this.sendPerformanceEvent("UpdateGraph",c),this.writeLog(`Finishing updateGraphWorker: Project: ${this.getProjectName()} projectStateVersion: ${this.projectStateVersion} projectProgramVersion: ${this.projectProgramVersion} structureChanged: ${a}${this.program?` structureIsReused:: ${Fr[this.program.structureIsReused]}`:""} Elapsed: ${c}ms`),this.projectService.logger.isTestLogger?this.program!==n?this.print(!0,this.hasAddedorRemovedFiles,!0):this.writeLog("Same program as before"):this.hasAddedorRemovedFiles?this.print(!0,!0,!1):this.program!==n&&this.writeLog("Different program with same set of files"),this.projectService.verifyDocumentRegistry(),a}sendPerformanceEvent(e,t){this.projectService.sendPerformanceEvent(e,t)}detachScriptInfoFromProject(e,t){const n=this.projectService.getScriptInfo(e);n&&(n.detachFromProject(this),t||this.resolutionCache.removeResolutionsOfFile(n.path))}addMissingFileWatcher(e,t){var n;if(pme(this)){const t=this.projectService.configFileExistenceInfoCache.get(e);if(null==(n=null==t?void 0:t.config)?void 0:n.projects.has(this.canonicalConfigFilePath))return _$}const r=this.projectService.watchFactory.watchFile(Bo(t,this.currentDirectory),((t,n)=>{pme(this)&&this.getCachedDirectoryStructureHost().addOrDeleteFile(t,e,n),0===n&&this.missingFilesMap.has(e)&&(this.missingFilesMap.delete(e),r.close(),this.projectService.delayUpdateProjectGraphAndEnsureProjectStructureForOpenFiles(this))}),500,this.projectService.getWatchOptions(this),p$.MissingFile,this);return r}isWatchedMissingFile(e){return!!this.missingFilesMap&&this.missingFilesMap.has(e)}addGeneratedFileWatch(e,t){if(this.compilerOptions.outFile)this.generatedFilesMap||(this.generatedFilesMap=this.createGeneratedFileWatcher(e));else{const n=this.toPath(t);if(this.generatedFilesMap){if(rme(this.generatedFilesMap))return void un.fail(`${this.projectName} Expected to not have --out watcher for generated file with options: ${JSON.stringify(this.compilerOptions)}`);if(this.generatedFilesMap.has(n))return}else this.generatedFilesMap=new Map;this.generatedFilesMap.set(n,this.createGeneratedFileWatcher(e))}}createGeneratedFileWatcher(e){return{generatedFilePath:this.toPath(e),watcher:this.projectService.watchFactory.watchFile(e,(()=>{this.clearSourceMapperCache(),this.projectService.delayUpdateProjectGraphAndEnsureProjectStructureForOpenFiles(this)}),2e3,this.projectService.getWatchOptions(this),p$.MissingGeneratedFile,this)}}isValidGeneratedFileWatcher(e,t){return this.toPath(e)===t.generatedFilePath}clearGeneratedFileWatch(){this.generatedFilesMap&&(rme(this.generatedFilesMap)?vU(this.generatedFilesMap):_x(this.generatedFilesMap,vU),this.generatedFilesMap=void 0)}getScriptInfoForNormalizedPath(e){const t=this.projectService.getScriptInfoForPath(this.toPath(e));return t&&!t.isAttached(this)?yfe.ThrowProjectDoesNotContainDocument(e,this):t}getScriptInfo(e){return this.projectService.getScriptInfo(e)}filesToString(e){return this.filesToStringWorker(e,!0,!1)}filesToStringWorker(e,t,n){if(this.initialLoadPending)return"\tFiles (0) InitialLoadPending\n";if(!this.program)return"\tFiles (0) NoProgram\n";const r=this.program.getSourceFiles();let i=`\tFiles (${r.length})\n`;if(e){for(const e of r)i+=`\t${e.fileName}${n?` ${e.version} ${JSON.stringify(e.text)}`:""}\n`;t&&(i+="\n\n",n$(this.program,(e=>i+=`\t${e}\n`)))}return i}print(e,t,n){var r;this.writeLog(`Project '${this.projectName}' (${Yfe[this.projectKind]})`),this.writeLog(this.filesToStringWorker(e&&this.projectService.logger.hasLevel(3),t&&this.projectService.logger.hasLevel(3),n&&this.projectService.logger.hasLevel(3))),this.writeLog("-----------------------------------------------"),this.autoImportProviderHost&&this.autoImportProviderHost.print(!1,!1,!1),null==(r=this.noDtsResolutionProject)||r.print(!1,!1,!1)}setCompilerOptions(e){var t;if(e){e.allowNonTsExtensions=!0;const n=this.compilerOptions;this.compilerOptions=e,this.setInternalCompilerOptionsForEmittingJsFiles(),null==(t=this.noDtsResolutionProject)||t.setCompilerOptions(this.getCompilerOptionsForNoDtsResolutionProject()),Qu(n,e)&&(this.cachedUnresolvedImportsPerFile.clear(),this.lastCachedUnresolvedImportsList=void 0,this.resolutionCache.onChangesAffectModuleResolution(),this.moduleSpecifierCache.clear()),this.markAsDirty()}}setWatchOptions(e){this.watchOptions=e}getWatchOptions(){return this.watchOptions}setTypeAcquisition(e){e&&(this.typeAcquisition=this.removeLocalTypingsFromTypeAcquisition(e))}getTypeAcquisition(){return this.typeAcquisition||{}}getChangesSinceVersion(e,t){var n,r;const i=t?e=>Oe(e.entries(),(([e,t])=>({fileName:e,isSourceOfProjectReferenceRedirect:t}))):e=>Oe(e.keys());this.initialLoadPending||sge(this);const o={projectName:this.getProjectName(),version:this.projectProgramVersion,isInferred:dme(this),options:this.getCompilationSettings(),languageServiceDisabled:!this.languageServiceEnabled,lastFileExceededProgramSize:this.lastFileExceededProgramSize},a=this.updatedFileNames;if(this.updatedFileNames=void 0,this.lastReportedFileNames&&e===this.lastReportedVersion){if(this.projectProgramVersion===this.lastReportedVersion&&!a)return{info:o,projectErrors:this.getGlobalProjectErrors()};const e=this.lastReportedFileNames,r=(null==(n=this.externalFiles)?void 0:n.map((e=>({fileName:Tfe(e),isSourceOfProjectReferenceRedirect:!1}))))||xfe,s=Re(this.getFileNamesWithRedirectInfo(!!t).concat(r),(e=>e.fileName),(e=>e.isSourceOfProjectReferenceRedirect)),c=new Map,l=new Map,_=a?Oe(a.keys()):[],u=[];return td(s,((n,r)=>{e.has(r)?t&&n!==e.get(r)&&u.push({fileName:r,isSourceOfProjectReferenceRedirect:n}):c.set(r,n)})),td(e,((e,t)=>{s.has(t)||l.set(t,e)})),this.lastReportedFileNames=s,this.lastReportedVersion=this.projectProgramVersion,{info:o,changes:{added:i(c),removed:i(l),updated:t?_.map((e=>({fileName:e,isSourceOfProjectReferenceRedirect:this.isSourceOfProjectReferenceRedirect(e)}))):_,updatedRedirects:t?u:void 0},projectErrors:this.getGlobalProjectErrors()}}{const e=this.getFileNamesWithRedirectInfo(!!t),n=(null==(r=this.externalFiles)?void 0:r.map((e=>({fileName:Tfe(e),isSourceOfProjectReferenceRedirect:!1}))))||xfe,i=e.concat(n);return this.lastReportedFileNames=Re(i,(e=>e.fileName),(e=>e.isSourceOfProjectReferenceRedirect)),this.lastReportedVersion=this.projectProgramVersion,{info:o,files:t?i:i.map((e=>e.fileName)),projectErrors:this.getGlobalProjectErrors()}}}removeRoot(e){this.rootFilesMap.delete(e.path)}isSourceOfProjectReferenceRedirect(e){return!!this.program&&this.program.isSourceOfProjectReferenceRedirect(e)}getGlobalPluginSearchPaths(){return[...this.projectService.pluginProbeLocations,jo(this.projectService.getExecutingFilePath(),"../../..")]}enableGlobalPlugins(e){if(!this.projectService.globalPlugins.length)return;const t=this.projectService.host;if(!t.require&&!t.importPlugin)return void this.projectService.logger.info("Plugins were requested but not running in environment that supports 'require'. Nothing will be loaded");const n=this.getGlobalPluginSearchPaths();for(const t of this.projectService.globalPlugins)t&&(e.plugins&&e.plugins.some((e=>e.name===t))||(this.projectService.logger.info(`Loading global plugin ${t}`),this.enablePlugin({name:t,global:!0},n)))}enablePlugin(e,t){this.projectService.requestEnablePlugin(this,e,t)}enableProxy(e,t){try{if("function"!=typeof e)return void this.projectService.logger.info(`Skipped loading plugin ${t.name} because it did not expose a proper factory function`);const n={config:t,project:this,languageService:this.languageService,languageServiceHost:this,serverHost:this.projectService.host,session:this.projectService.session},r=e({typescript:rfe}),i=r.create(n);for(const e of Object.keys(this.languageService))e in i||(this.projectService.logger.info(`Plugin activation warning: Missing proxied method ${e} in created LS. Patching.`),i[e]=this.languageService[e]);this.projectService.logger.info("Plugin validation succeeded"),this.languageService=i,this.plugins.push({name:t.name,module:r})}catch(e){this.projectService.logger.info(`Plugin activation failed: ${e}`)}}onPluginConfigurationChanged(e,t){this.plugins.filter((t=>t.name===e)).forEach((e=>{e.module.onConfigurationChanged&&e.module.onConfigurationChanged(t)}))}refreshDiagnostics(){this.projectService.sendProjectsUpdatedInBackgroundEvent()}getPackageJsonsVisibleToFile(e,t){return 0!==this.projectService.serverMode?xfe:this.projectService.getPackageJsonsVisibleToFile(e,this,t)}getNearestAncestorDirectoryWithPackageJson(e){return this.projectService.getNearestAncestorDirectoryWithPackageJson(e,this)}getPackageJsonsForAutoImport(e){return this.getPackageJsonsVisibleToFile(jo(this.currentDirectory,sV),e)}getPackageJsonCache(){return this.projectService.packageJsonCache}getCachedExportInfoMap(){return this.exportMapCache||(this.exportMapCache=ZZ(this))}clearCachedExportInfoMap(){var e;null==(e=this.exportMapCache)||e.clear()}getModuleSpecifierCache(){return this.moduleSpecifierCache}includePackageJsonAutoImports(){return 0!==this.projectService.includePackageJsonAutoImports()&&this.languageServiceEnabled&&!wZ(this.currentDirectory)&&this.isDefaultProjectForOpenFiles()?this.projectService.includePackageJsonAutoImports():0}getHostForAutoImportProvider(){var e,t;return this.program?{fileExists:this.program.fileExists,directoryExists:this.program.directoryExists,realpath:this.program.realpath||(null==(e=this.projectService.host.realpath)?void 0:e.bind(this.projectService.host)),getCurrentDirectory:this.getCurrentDirectory.bind(this),readFile:this.projectService.host.readFile.bind(this.projectService.host),getDirectories:this.projectService.host.getDirectories.bind(this.projectService.host),trace:null==(t=this.projectService.host.trace)?void 0:t.bind(this.projectService.host),useCaseSensitiveFileNames:this.program.useCaseSensitiveFileNames(),readDirectory:this.projectService.host.readDirectory.bind(this.projectService.host)}:this.projectService.host}getPackageJsonAutoImportProvider(){var e,t,n;if(!1===this.autoImportProviderHost)return;if(0!==this.projectService.serverMode)return void(this.autoImportProviderHost=!1);if(this.autoImportProviderHost)return sge(this.autoImportProviderHost),this.autoImportProviderHost.isEmpty()?(this.autoImportProviderHost.close(),void(this.autoImportProviderHost=void 0)):this.autoImportProviderHost.getCurrentProgram();const r=this.includePackageJsonAutoImports();if(r){null==(e=Hn)||e.push(Hn.Phase.Session,"getPackageJsonAutoImportProvider");const i=Un();if(this.autoImportProviderHost=lme.create(r,this,this.getHostForAutoImportProvider())??!1,this.autoImportProviderHost)return sge(this.autoImportProviderHost),this.sendPerformanceEvent("CreatePackageJsonAutoImportProvider",Un()-i),null==(t=Hn)||t.pop(),this.autoImportProviderHost.getCurrentProgram();null==(n=Hn)||n.pop()}}isDefaultProjectForOpenFiles(){return!!td(this.projectService.openFiles,((e,t)=>this.projectService.tryGetDefaultProjectForFile(this.projectService.getScriptInfoForPath(t))===this))}watchNodeModulesForPackageJsonChanges(e){return this.projectService.watchPackageJsonsInNodeModules(e,this)}getIncompleteCompletionsCache(){return this.projectService.getIncompleteCompletionsCache()}getNoDtsResolutionProject(e){return un.assert(0===this.projectService.serverMode),this.noDtsResolutionProject??(this.noDtsResolutionProject=new sme(this)),this.noDtsResolutionProject.rootFile!==e&&(this.projectService.setFileNamesOfAutoImportProviderOrAuxillaryProject(this.noDtsResolutionProject,[e]),this.noDtsResolutionProject.rootFile=e),this.noDtsResolutionProject}runWithTemporaryFileUpdate(e,t,n){var r,i,o,a;const s=this.program,c=un.checkDefined(null==(r=this.program)?void 0:r.getSourceFile(e),"Expected file to be part of program"),l=un.checkDefined(c.getFullText());null==(i=this.getScriptInfo(e))||i.editContent(0,l.length,t),this.updateGraph();try{n(this.program,s,null==(o=this.program)?void 0:o.getSourceFile(e))}finally{null==(a=this.getScriptInfo(e))||a.editContent(0,t.length,l)}}getCompilerOptionsForNoDtsResolutionProject(){return{...this.getCompilerOptions(),noDtsResolution:!0,allowJs:!0,maxNodeModuleJsDepth:3,diagnostics:!1,skipLibCheck:!0,sourceMap:!1,types:l,lib:l,noLib:!0}}},ame=class extends ome{constructor(e,t,n,r,i,o){super(e.newInferredProjectName(),0,e,!1,void 0,t,!1,n,e.host,i),this._isJsInferredProject=!1,this.typeAcquisition=o,this.projectRootPath=r&&e.toCanonicalFileName(r),r||e.useSingleInferredProject||(this.canonicalCurrentDirectory=e.toCanonicalFileName(this.currentDirectory)),this.enableGlobalPlugins(this.getCompilerOptions())}toggleJsInferredProject(e){e!==this._isJsInferredProject&&(this._isJsInferredProject=e,this.setCompilerOptions())}setCompilerOptions(e){if(!e&&!this.getCompilationSettings())return;const t=sQ(e||this.getCompilationSettings());this._isJsInferredProject&&"number"!=typeof t.maxNodeModuleJsDepth?t.maxNodeModuleJsDepth=2:this._isJsInferredProject||(t.maxNodeModuleJsDepth=void 0),t.allowJs=!0,super.setCompilerOptions(t)}addRoot(e){un.assert(e.isScriptOpen()),this.projectService.startWatchingConfigFilesForInferredProjectRoot(e),!this._isJsInferredProject&&e.isJavaScript()?this.toggleJsInferredProject(!0):this.isOrphan()&&this._isJsInferredProject&&!e.isJavaScript()&&this.toggleJsInferredProject(!1),super.addRoot(e)}removeRoot(e){this.projectService.stopWatchingConfigFilesForScriptInfo(e),super.removeRoot(e),!this.isOrphan()&&this._isJsInferredProject&&e.isJavaScript()&&v(this.getRootScriptInfos(),(e=>!e.isJavaScript()))&&this.toggleJsInferredProject(!1)}isOrphan(){return!this.hasRoots()}isProjectWithSingleRoot(){return!this.projectRootPath&&!this.projectService.useSingleInferredProject||1===this.getRootScriptInfos().length}close(){d(this.getRootScriptInfos(),(e=>this.projectService.stopWatchingConfigFilesForScriptInfo(e))),super.close()}getTypeAcquisition(){return this.typeAcquisition||{enable:eme(this),include:l,exclude:l}}},sme=class extends ome{constructor(e){super(e.projectService.newAuxiliaryProjectName(),4,e.projectService,!1,void 0,e.getCompilerOptionsForNoDtsResolutionProject(),!1,void 0,e.projectService.host,e.currentDirectory)}isOrphan(){return!0}scheduleInvalidateResolutionsOfFailedLookupLocations(){}},cme=class e extends ome{constructor(e,t,n){super(e.projectService.newAutoImportProviderProjectName(),3,e.projectService,!1,void 0,n,!1,e.getWatchOptions(),e.projectService.host,e.currentDirectory),this.hostProject=e,this.rootFileNames=t,this.useSourceOfProjectReferenceRedirect=We(this.hostProject,this.hostProject.useSourceOfProjectReferenceRedirect),this.getParsedCommandLine=We(this.hostProject,this.hostProject.getParsedCommandLine)}static getRootFileNames(e,t,n,r){var i,o;if(!e)return l;const a=t.getCurrentProgram();if(!a)return l;const s=Un();let c,_;const u=jo(t.currentDirectory,sV),p=t.getPackageJsonsForAutoImport(jo(t.currentDirectory,u));for(const e of p)null==(i=e.dependencies)||i.forEach(((e,t)=>y(t))),null==(o=e.peerDependencies)||o.forEach(((e,t)=>y(t)));let f=0;if(c){const i=t.getSymlinkCache();for(const o of Oe(c.keys())){if(2===e&&f>=this.maxDependencies)return t.log(`AutoImportProviderProject: attempted to add more than ${this.maxDependencies} dependencies. Aborting.`),l;const s=nR(o,t.currentDirectory,r,n,a.getModuleResolutionCache());if(s){const e=v(s,a,i);if(e){f+=h(e);continue}}if(!d([t.currentDirectory,t.getGlobalTypingsCacheLocation()],(e=>{if(e){const t=nR(`@types/${o}`,e,r,n,a.getModuleResolutionCache());if(t){const e=v(t,a,i);return f+=h(e),!0}}}))&&s&&r.allowJs&&r.maxNodeModuleJsDepth){const e=v(s,a,i,!0);f+=h(e)}}}const m=a.getResolvedProjectReferences();let g=0;return(null==m?void 0:m.length)&&t.projectService.getHostPreferences().includeCompletionsForModuleExports&&m.forEach((e=>{if(null==e?void 0:e.commandLine.options.outFile)g+=h(b([VS(e.commandLine.options.outFile,".d.ts")]));else if(e){const n=dt((()=>Vq(e.commandLine,!t.useCaseSensitiveFileNames())));g+=h(b(B(e.commandLine.fileNames,(r=>$I(r)||ko(r,".json")||a.getSourceFile(r)?void 0:jq(r,e.commandLine,!t.useCaseSensitiveFileNames(),n)))))}})),(null==_?void 0:_.size)&&t.log(`AutoImportProviderProject: found ${_.size} root files in ${f} dependencies ${g} referenced projects in ${Un()-s} ms`),_?Oe(_.values()):l;function h(e){return(null==e?void 0:e.length)?(_??(_=new Set),e.forEach((e=>_.add(e))),1):0}function y(e){Gt(e,"@types/")||(c||(c=new Set)).add(e)}function v(e,i,o,a){var s;const c=UR(e,r,n,i.getModuleResolutionCache(),a);if(c){const r=null==(s=n.realpath)?void 0:s.call(n,e.packageDirectory),i=r?t.toPath(r):void 0,a=i&&i!==t.toPath(e.packageDirectory);return a&&o.setSymlinkedDirectory(e.packageDirectory,{real:Vo(r),realPath:Vo(i)}),b(c,a?t=>t.replace(e.packageDirectory,r):void 0)}}function b(e,t){return B(e,(e=>{const n=t?t(e):e;if(!(a.getSourceFile(n)||t&&a.getSourceFile(e)))return n}))}}static create(t,n,r){if(0===t)return;const i={...n.getCompilerOptions(),...this.compilerOptionsOverrides},o=this.getRootFileNames(t,n,r,i);return o.length?new e(n,o,i):void 0}isEmpty(){return!$(this.rootFileNames)}isOrphan(){return!0}updateGraph(){let t=this.rootFileNames;t||(t=e.getRootFileNames(this.hostProject.includePackageJsonAutoImports(),this.hostProject,this.hostProject.getHostForAutoImportProvider(),this.getCompilationSettings())),this.projectService.setFileNamesOfAutoImportProviderOrAuxillaryProject(this,t),this.rootFileNames=t;const n=this.getCurrentProgram(),r=super.updateGraph();return n&&n!==this.getCurrentProgram()&&this.hostProject.clearCachedExportInfoMap(),r}scheduleInvalidateResolutionsOfFailedLookupLocations(){}hasRoots(){var e;return!!(null==(e=this.rootFileNames)?void 0:e.length)}markAsDirty(){this.rootFileNames=void 0,super.markAsDirty()}getScriptFileNames(){return this.rootFileNames||l}getLanguageService(){throw new Error("AutoImportProviderProject language service should never be used. To get the program, use `project.getCurrentProgram()`.")}onAutoImportProviderSettingsChanged(){throw new Error("AutoImportProviderProject is an auto import provider; use `markAsDirty()` instead.")}onPackageJsonChange(){throw new Error("package.json changes should be notified on an AutoImportProvider's host project")}getHostForAutoImportProvider(){throw new Error("AutoImportProviderProject cannot provide its own host; use `hostProject.getModuleResolutionHostForAutomImportProvider()` instead.")}getProjectReferences(){return this.hostProject.getProjectReferences()}includePackageJsonAutoImports(){return 0}getSymlinkCache(){return this.hostProject.getSymlinkCache()}getModuleResolutionCache(){var e;return null==(e=this.hostProject.getCurrentProgram())?void 0:e.getModuleResolutionCache()}};cme.maxDependencies=10,cme.compilerOptionsOverrides={diagnostics:!1,skipLibCheck:!0,sourceMap:!1,types:l,lib:l,noLib:!0};var lme=cme,_me=class extends ome{constructor(e,t,n,r,i){super(e,1,n,!1,void 0,{},!1,void 0,r,Do(e)),this.canonicalConfigFilePath=t,this.openFileWatchTriggered=new Map,this.initialLoadPending=!0,this.sendLoadingProjectFinish=!1,this.pendingUpdateLevel=2,this.pendingUpdateReason=i}setCompilerHost(e){this.compilerHost=e}getCompilerHost(){return this.compilerHost}useSourceOfProjectReferenceRedirect(){return this.languageServiceEnabled}getParsedCommandLine(e){const t=Tfe(e),n=this.projectService.toCanonicalFileName(t);let r=this.projectService.configFileExistenceInfoCache.get(n);return r||this.projectService.configFileExistenceInfoCache.set(n,r={exists:this.projectService.host.fileExists(t)}),this.projectService.ensureParsedConfigUptoDate(t,n,r,this),this.languageServiceEnabled&&0===this.projectService.serverMode&&this.projectService.watchWildcards(t,r,this),r.exists?r.config.parsedCommandLine:void 0}onReleaseParsedCommandLine(e){this.releaseParsedConfig(this.projectService.toCanonicalFileName(Tfe(e)))}releaseParsedConfig(e){this.projectService.stopWatchingWildCards(e,this),this.projectService.releaseParsedConfig(e,this)}updateGraph(){if(this.deferredClose)return!1;const e=this.dirty;this.initialLoadPending=!1;const t=this.pendingUpdateLevel;let n;switch(this.pendingUpdateLevel=0,t){case 1:this.openFileWatchTriggered.clear(),n=this.projectService.reloadFileNamesOfConfiguredProject(this);break;case 2:this.openFileWatchTriggered.clear();const e=un.checkDefined(this.pendingUpdateReason);this.projectService.reloadConfiguredProject(this,e),n=!0;break;default:n=super.updateGraph()}return this.compilerHost=void 0,this.projectService.sendProjectLoadingFinishEvent(this),this.projectService.sendProjectTelemetry(this),2!==t&&(!n||e&&this.triggerFileForConfigFileDiag&&2!==this.getCurrentProgram().structureIsReused)?this.triggerFileForConfigFileDiag||this.projectService.sendConfigFileDiagEvent(this,void 0,!1):this.triggerFileForConfigFileDiag=void 0,n}getCachedDirectoryStructureHost(){return this.directoryStructureHost}getConfigFilePath(){return this.getProjectName()}getProjectReferences(){return this.projectReferences}updateReferences(e){this.projectReferences=e,this.potentialProjectReferences=void 0}setPotentialProjectReference(e){un.assert(this.initialLoadPending),(this.potentialProjectReferences||(this.potentialProjectReferences=new Set)).add(e)}getResolvedProjectReferenceToRedirect(e){const t=this.getCurrentProgram();return t&&t.getResolvedProjectReferenceToRedirect(e)}forEachResolvedProjectReference(e){var t;return null==(t=this.getCurrentProgram())?void 0:t.forEachResolvedProjectReference(e)}enablePluginsWithOptions(e){var t;if(this.plugins.length=0,!(null==(t=e.plugins)?void 0:t.length)&&!this.projectService.globalPlugins.length)return;const n=this.projectService.host;if(!n.require&&!n.importPlugin)return void this.projectService.logger.info("Plugins were requested but not running in environment that supports 'require'. Nothing will be loaded");const r=this.getGlobalPluginSearchPaths();if(this.projectService.allowLocalPluginLoads){const e=Do(this.canonicalConfigFilePath);this.projectService.logger.info(`Local plugin loading enabled; adding ${e} to search paths`),r.unshift(e)}if(e.plugins)for(const t of e.plugins)this.enablePlugin(t,r);return this.enableGlobalPlugins(e)}getGlobalProjectErrors(){return N(this.projectErrors,(e=>!e.file))||xfe}getAllProjectErrors(){return this.projectErrors||xfe}setProjectErrors(e){this.projectErrors=e}close(){this.projectService.configFileExistenceInfoCache.forEach(((e,t)=>this.releaseParsedConfig(t))),this.projectErrors=void 0,this.openFileWatchTriggered.clear(),this.compilerHost=void 0,super.close()}markAsDirty(){this.deferredClose||super.markAsDirty()}isOrphan(){return!!this.deferredClose}getEffectiveTypeRoots(){return Gj(this.getCompilationSettings(),this)||[]}updateErrorOnNoInputFiles(e){this.parsedCommandLine=e,ej(e.fileNames,this.getConfigFilePath(),this.getCompilerOptions().configFile.configFileSpecs,this.projectErrors,ZL(e.raw))}},ume=class extends ome{constructor(e,t,n,r,i,o,a){super(e,2,t,!0,r,n,i,a,t.host,Do(o||Oo(e))),this.externalProjectName=e,this.compileOnSaveEnabled=i,this.excludedFiles=[],this.enableGlobalPlugins(this.getCompilerOptions())}updateGraph(){const e=super.updateGraph();return this.projectService.sendProjectTelemetry(this),e}getExcludedFiles(){return this.excludedFiles}};function dme(e){return 0===e.projectKind}function pme(e){return 1===e.projectKind}function fme(e){return 2===e.projectKind}function mme(e){return 3===e.projectKind||4===e.projectKind}function gme(e){return pme(e)&&!!e.deferredClose}var hme=20971520,yme=4194304,vme="projectsUpdatedInBackground",bme="projectLoadingStart",xme="projectLoadingFinish",kme="largeFileReferenced",Sme="configFileDiag",Tme="projectLanguageServiceState",Cme="projectInfo",wme="openFileInfo",Nme="createFileWatcher",Dme="createDirectoryWatcher",Fme="closeFileWatcher",Eme="*ensureProjectForOpenFiles*";function Pme(e){const t=new Map;for(const n of e)if("object"==typeof n.type){const e=n.type;e.forEach((e=>{un.assert("number"==typeof e)})),t.set(n.name,e)}return t}var Ame=Pme(mO),Ime=Pme(_O),Ome=new Map(Object.entries({none:0,block:1,smart:2})),Lme={jquery:{match:/jquery(-[\d.]+)?(\.intellisense)?(\.min)?\.js$/i,types:["jquery"]},WinJS:{match:/^(.*\/winjs-[.\d]+)\/js\/base\.js$/i,exclude:[["^",1,"/.*"]],types:["winjs"]},Kendo:{match:/^(.*\/kendo(-ui)?)\/kendo\.all(\.min)?\.js$/i,exclude:[["^",1,"/.*"]],types:["kendo-ui"]},"Office Nuget":{match:/^(.*\/office\/1)\/excel-\d+\.debug\.js$/i,exclude:[["^",1,"/.*"]],types:["office"]},References:{match:/^(.*\/_references\.js)$/i,exclude:[["^",1,"$"]]}};function jme(e){return Ze(e.indentStyle)&&(e.indentStyle=Ome.get(e.indentStyle.toLowerCase()),un.assert(void 0!==e.indentStyle)),e}function Rme(e){return Ame.forEach(((t,n)=>{const r=e[n];Ze(r)&&(e[n]=t.get(r.toLowerCase()))})),e}function Mme(e,t){let n,r;return _O.forEach((i=>{const o=e[i.name];if(void 0===o)return;const a=Ime.get(i.name);(n||(n={}))[i.name]=a?Ze(o)?a.get(o.toLowerCase()):o:dj(i,o,t||"",r||(r=[]))})),n&&{watchOptions:n,errors:r}}function Bme(e){let t;return FO.forEach((n=>{const r=e[n.name];void 0!==r&&((t||(t={}))[n.name]=r)})),t}function Jme(e){return Ze(e)?zme(e):e}function zme(e){switch(e){case"JS":return 1;case"JSX":return 2;case"TS":return 3;case"TSX":return 4;default:return 0}}function qme(e){const{lazyConfiguredProjectsFromExternalProject:t,...n}=e;return n}var Ume={getFileName:e=>e,getScriptKind:(e,t)=>{let n;if(t){const r=Po(e);r&&$(t,(e=>e.extension===r&&(n=e.scriptKind,!0)))}return n},hasMixedContent:(e,t)=>$(t,(t=>t.isMixedContent&&ko(e,t.extension)))},Vme={getFileName:e=>e.fileName,getScriptKind:e=>Jme(e.scriptKind),hasMixedContent:e=>!!e.hasMixedContent};function Wme(e,t){for(const n of t)if(n.getProjectName()===e)return n}var $me={isKnownTypesPackageName:it,installPackage:ut,enqueueInstallTypingsRequest:rt,attach:rt,onProjectClosed:rt,globalTypingsCacheLocation:void 0},Hme={close:rt};function Kme(e,t){if(!t)return;const n=t.get(e.path);return void 0!==n?Xme(e)?n&&!Ze(n)?n.get(e.fileName):void 0:Ze(n)||!n?n:n.get(!1):void 0}function Gme(e){return!!e.containingProjects}function Xme(e){return!!e.configFileInfo}var Qme=(e=>(e[e.FindOptimized=0]="FindOptimized",e[e.Find=1]="Find",e[e.CreateReplayOptimized=2]="CreateReplayOptimized",e[e.CreateReplay=3]="CreateReplay",e[e.CreateOptimized=4]="CreateOptimized",e[e.Create=5]="Create",e[e.ReloadOptimized=6]="ReloadOptimized",e[e.Reload=7]="Reload",e))(Qme||{});function Yme(e){return e-1}function Zme(e,t,n,r,i,o,a,s,c){for(var l;;){if(t.parsedCommandLine&&(s&&!t.parsedCommandLine.options.composite||t.parsedCommandLine.options.disableSolutionSearching))return;const _=t.projectService.getConfigFileNameForFile({fileName:t.getConfigFilePath(),path:e.path,configFileInfo:!0,isForDefaultProject:!s},r<=3);if(!_)return;const u=t.projectService.findCreateOrReloadConfiguredProject(_,r,i,o,s?void 0:e.fileName,a,s,c);if(!u)return;!u.project.parsedCommandLine&&(null==(l=t.parsedCommandLine)?void 0:l.options.composite)&&u.project.setPotentialProjectReference(t.canonicalConfigFilePath);const d=n(u);if(d)return d;t=u.project}}function ege(e,t,n,r,i,o,a,s){const c=t.options.disableReferencedProjectLoad?0:r;let l;return d(t.projectReferences,(t=>{var _;const u=Tfe(FV(t)),d=e.projectService.toCanonicalFileName(u),p=null==s?void 0:s.get(d);if(void 0!==p&&p>=c)return;const f=e.projectService.configFileExistenceInfoCache.get(d);let m=0===c?(null==f?void 0:f.exists)||(null==(_=e.resolvedChildConfigs)?void 0:_.has(d))?f.config.parsedCommandLine:void 0:e.getParsedCommandLine(u);if(m&&c!==r&&c>2&&(m=e.getParsedCommandLine(u)),!m)return;const g=e.projectService.findConfiguredProjectByProjectName(u,o);if(2!==c||f||g){switch(c){case 6:g&&g.projectService.reloadConfiguredProjectOptimized(g,i,a);case 4:(e.resolvedChildConfigs??(e.resolvedChildConfigs=new Set)).add(d);case 2:case 0:if(g||0!==c){const t=n(f??e.projectService.configFileExistenceInfoCache.get(d),g,u,i,e,d);if(t)return t}break;default:un.assertNever(c)}(s??(s=new Map)).set(d,c),(l??(l=[])).push(m)}}))||d(l,(t=>t.projectReferences&&ege(e,t,n,c,i,o,a,s)))}function tge(e,t,n,r,i){let o,a=!1;switch(t){case 2:case 3:_ge(e)&&(o=e.projectService.configFileExistenceInfoCache.get(e.canonicalConfigFilePath));break;case 4:if(o=lge(e),o)break;case 5:a=function(e,t){if(t){if(cge(e,t,!1))return!0}else sge(e);return!1}(e,n);break;case 6:if(e.projectService.reloadConfiguredProjectOptimized(e,r,i),o=lge(e),o)break;case 7:a=e.projectService.reloadConfiguredProjectClearingSemanticCache(e,r,i);break;case 0:case 1:break;default:un.assertNever(t)}return{project:e,sentConfigFileDiag:a,configFileExistenceInfo:o,reason:r}}function nge(e,t){return e.initialLoadPending?(e.potentialProjectReferences&&nd(e.potentialProjectReferences,t))??(e.resolvedChildConfigs&&nd(e.resolvedChildConfigs,t)):void 0}function rge(e,t,n){const r=n&&e.projectService.configuredProjects.get(n);return r&&t(r)}function ige(e,t){return function(e,t,n,r){return e.getCurrentProgram()?e.forEachResolvedProjectReference(t):e.initialLoadPending?nge(e,r):d(e.getProjectReferences(),n)}(e,(n=>rge(e,t,n.sourceFile.path)),(n=>rge(e,t,e.toPath(FV(n)))),(n=>rge(e,t,n)))}function oge(e,t){return`${Ze(t)?`Config: ${t} `:t?`Project: ${t.getProjectName()} `:""}WatchType: ${e}`}function age(e){return!e.isScriptOpen()&&void 0!==e.mTime}function sge(e){return e.invalidateResolutionsOfFailedLookupLocations(),e.dirty&&!e.updateGraph()}function cge(e,t,n){if(!n&&(e.invalidateResolutionsOfFailedLookupLocations(),!e.dirty))return!1;e.triggerFileForConfigFileDiag=t;const r=e.pendingUpdateLevel;if(e.updateGraph(),!e.triggerFileForConfigFileDiag&&!n)return 2===r;const i=e.projectService.sendConfigFileDiagEvent(e,t,n);return e.triggerFileForConfigFileDiag=void 0,i}function lge(e){const t=Tfe(e.getConfigFilePath()),n=e.projectService.ensureParsedConfigUptoDate(t,e.canonicalConfigFilePath,e.projectService.configFileExistenceInfoCache.get(e.canonicalConfigFilePath),e),r=n.config.parsedCommandLine;if(e.parsedCommandLine=r,e.resolvedChildConfigs=void 0,e.updateReferences(r.projectReferences),_ge(e))return n}function _ge(e){return!(!e.parsedCommandLine||!e.parsedCommandLine.options.composite&&!YL(e.parsedCommandLine))}function uge(e){return`User requested reload projects: ${e}`}function dge(e){pme(e)&&(e.projectOptions=!0)}function pge(e){let t=1;return()=>e(t++)}function fge(){return{idToCallbacks:new Map,pathToId:new Map}}function mge(e,t){return!!t&&!!e.eventHandler&&!!e.session}var gge=class e{constructor(e){var t;this.filenameToScriptInfo=new Map,this.nodeModulesWatchers=new Map,this.filenameToScriptInfoVersion=new Map,this.allJsFilesForOpenFileTelemetry=new Set,this.externalProjectToConfiguredProjectMap=new Map,this.externalProjects=[],this.inferredProjects=[],this.configuredProjects=new Map,this.newInferredProjectName=pge(Ffe),this.newAutoImportProviderProjectName=pge(Efe),this.newAuxiliaryProjectName=pge(Pfe),this.openFiles=new Map,this.configFileForOpenFiles=new Map,this.rootOfInferredProjects=new Set,this.openFilesWithNonRootedDiskPath=new Map,this.compilerOptionsForInferredProjectsPerProjectRoot=new Map,this.watchOptionsForInferredProjectsPerProjectRoot=new Map,this.typeAcquisitionForInferredProjectsPerProjectRoot=new Map,this.projectToSizeMap=new Map,this.configFileExistenceInfoCache=new Map,this.safelist=Lme,this.legacySafelist=new Map,this.pendingProjectUpdates=new Map,this.pendingEnsureProjectForOpenFiles=!1,this.seenProjects=new Map,this.sharedExtendedConfigFileWatchers=new Map,this.extendedConfigCache=new Map,this.baseline=rt,this.verifyDocumentRegistry=rt,this.verifyProgram=rt,this.onProjectCreation=rt,this.host=e.host,this.logger=e.logger,this.cancellationToken=e.cancellationToken,this.useSingleInferredProject=e.useSingleInferredProject,this.useInferredProjectPerProjectRoot=e.useInferredProjectPerProjectRoot,this.typingsInstaller=e.typingsInstaller||$me,this.throttleWaitMilliseconds=e.throttleWaitMilliseconds,this.eventHandler=e.eventHandler,this.suppressDiagnosticEvents=e.suppressDiagnosticEvents,this.globalPlugins=e.globalPlugins||xfe,this.pluginProbeLocations=e.pluginProbeLocations||xfe,this.allowLocalPluginLoads=!!e.allowLocalPluginLoads,this.typesMapLocation=void 0===e.typesMapLocation?jo(Do(this.getExecutingFilePath()),"typesMap.json"):e.typesMapLocation,this.session=e.session,this.jsDocParsingMode=e.jsDocParsingMode,void 0!==e.serverMode?this.serverMode=e.serverMode:this.serverMode=0,this.host.realpath&&(this.realpathToScriptInfos=$e()),this.currentDirectory=Tfe(this.host.getCurrentDirectory()),this.toCanonicalFileName=Wt(this.host.useCaseSensitiveFileNames),this.globalCacheLocationDirectoryPath=this.typingsInstaller.globalTypingsCacheLocation?Vo(this.toPath(this.typingsInstaller.globalTypingsCacheLocation)):void 0,this.throttledOperations=new Ife(this.host,this.logger),this.logger.info(`currentDirectory:: ${this.host.getCurrentDirectory()} useCaseSensitiveFileNames:: ${this.host.useCaseSensitiveFileNames}`),this.logger.info(`libs Location:: ${Do(this.host.getExecutingFilePath())}`),this.logger.info(`globalTypingsCacheLocation:: ${this.typingsInstaller.globalTypingsCacheLocation}`),this.typesMapLocation?this.loadTypesMap():this.logger.info("No types map provided; using the default"),this.typingsInstaller.attach(this),this.hostConfiguration={formatCodeOptions:fG(this.host.newLine),preferences:aG,hostInfo:"Unknown host",extraFileExtensions:[]},this.documentRegistry=D0(this.host.useCaseSensitiveFileNames,this.currentDirectory,this.jsDocParsingMode,this);const n=this.logger.hasLevel(3)?2:this.logger.loggingEnabled()?1:0,r=0!==n?e=>this.logger.info(e):rt;this.packageJsonCache=xge(this),this.watchFactory=0!==this.serverMode?{watchFile:u$,watchDirectory:u$}:hU(function(e,t){if(!mge(e,t))return;const n=fge(),r=fge(),i=fge();let o=1;return e.session.addProtocolHandler("watchChange",(e=>{var t;return Qe(t=e.arguments)?t.forEach(s):s(t),{responseRequired:!1}})),{watchFile:function(e,t){return a(n,e,t,(t=>({eventName:Nme,data:{id:t,path:e}})))},watchDirectory:function(e,t,n){return a(n?i:r,e,t,(t=>({eventName:Dme,data:{id:t,path:e,recursive:!!n,ignoreUpdate:!e.endsWith("/node_modules")||void 0}})))},getCurrentDirectory:()=>e.host.getCurrentDirectory(),useCaseSensitiveFileNames:e.host.useCaseSensitiveFileNames};function a({pathToId:t,idToCallbacks:n},r,i,a){const s=e.toPath(r);let c=t.get(s);c||t.set(s,c=o++);let l=n.get(c);return l||(n.set(c,l=new Set),e.eventHandler(a(c))),l.add(i),{close(){const r=n.get(c);(null==r?void 0:r.delete(i))&&(r.size||(n.delete(c),t.delete(s),e.eventHandler({eventName:Fme,data:{id:c}})))}}}function s({id:e,created:t,deleted:n,updated:r}){c(e,t,0),c(e,n,2),c(e,r,1)}function c(e,t,o){(null==t?void 0:t.length)&&(l(n,e,t,((e,t)=>e(t,o))),l(r,e,t,((e,t)=>e(t))),l(i,e,t,((e,t)=>e(t))))}function l(e,t,n,r){var i;null==(i=e.idToCallbacks.get(t))||i.forEach((e=>{n.forEach((t=>r(e,Oo(t))))}))}}(this,e.canUseWatchEvents)||this.host,n,r,oge),this.canUseWatchEvents=mge(this,e.canUseWatchEvents),null==(t=e.incrementalVerifier)||t.call(e,this)}toPath(e){return qo(e,this.currentDirectory,this.toCanonicalFileName)}getExecutingFilePath(){return this.getNormalizedAbsolutePath(this.host.getExecutingFilePath())}getNormalizedAbsolutePath(e){return Bo(e,this.host.getCurrentDirectory())}setDocument(e,t,n){un.checkDefined(this.getScriptInfoForPath(t)).cacheSourceFile={key:e,sourceFile:n}}getDocument(e,t){const n=this.getScriptInfoForPath(t);return n&&n.cacheSourceFile&&n.cacheSourceFile.key===e?n.cacheSourceFile.sourceFile:void 0}ensureInferredProjectsUpToDate_TestOnly(){this.ensureProjectStructuresUptoDate()}getCompilerOptionsForInferredProjects(){return this.compilerOptionsForInferredProjects}onUpdateLanguageServiceStateForProject(e,t){if(!this.eventHandler)return;const n={eventName:Tme,data:{project:e,languageServiceEnabled:t}};this.eventHandler(n)}loadTypesMap(){try{const e=this.host.readFile(this.typesMapLocation);if(void 0===e)return void this.logger.info(`Provided types map file "${this.typesMapLocation}" doesn't exist`);const t=JSON.parse(e);for(const e of Object.keys(t.typesMap))t.typesMap[e].match=new RegExp(t.typesMap[e].match,"i");this.safelist=t.typesMap;for(const e in t.simpleMap)De(t.simpleMap,e)&&this.legacySafelist.set(e,t.simpleMap[e].toLowerCase())}catch(e){this.logger.info(`Error loading types map: ${e}`),this.safelist=Lme,this.legacySafelist.clear()}}updateTypingsForProject(e){const t=this.findProject(e.projectName);if(t)switch(e.kind){case PK:return void t.updateTypingFiles(e.compilerOptions,e.typeAcquisition,e.unresolvedImports,e.typings);case AK:return void t.enqueueInstallTypingsForProject(!0)}}watchTypingLocations(e){var t;null==(t=this.findProject(e.projectName))||t.watchTypingLocations(e.files)}delayEnsureProjectForOpenFiles(){this.openFiles.size&&(this.pendingEnsureProjectForOpenFiles=!0,this.throttledOperations.schedule(Eme,2500,(()=>{0!==this.pendingProjectUpdates.size?this.delayEnsureProjectForOpenFiles():this.pendingEnsureProjectForOpenFiles&&(this.ensureProjectForOpenFiles(),this.sendProjectsUpdatedInBackgroundEvent())})))}delayUpdateProjectGraph(e){if(gme(e))return;if(e.markAsDirty(),mme(e))return;const t=e.getProjectName();this.pendingProjectUpdates.set(t,e),this.throttledOperations.schedule(t,250,(()=>{this.pendingProjectUpdates.delete(t)&&sge(e)}))}hasPendingProjectUpdate(e){return this.pendingProjectUpdates.has(e.getProjectName())}sendProjectsUpdatedInBackgroundEvent(){if(!this.eventHandler)return;const e={eventName:vme,data:{openFiles:Oe(this.openFiles.keys(),(e=>this.getScriptInfoForPath(e).fileName))}};this.eventHandler(e)}sendLargeFileReferencedEvent(e,t){if(!this.eventHandler)return;const n={eventName:kme,data:{file:e,fileSize:t,maxFileSize:yme}};this.eventHandler(n)}sendProjectLoadingStartEvent(e,t){if(!this.eventHandler)return;e.sendLoadingProjectFinish=!0;const n={eventName:bme,data:{project:e,reason:t}};this.eventHandler(n)}sendProjectLoadingFinishEvent(e){if(!this.eventHandler||!e.sendLoadingProjectFinish)return;e.sendLoadingProjectFinish=!1;const t={eventName:xme,data:{project:e}};this.eventHandler(t)}sendPerformanceEvent(e,t){this.performanceEventHandler&&this.performanceEventHandler({kind:e,durationMs:t})}delayUpdateProjectGraphAndEnsureProjectStructureForOpenFiles(e){this.delayUpdateProjectGraph(e),this.delayEnsureProjectForOpenFiles()}delayUpdateProjectGraphs(e,t){if(e.length){for(const n of e)t&&n.clearSourceMapperCache(),this.delayUpdateProjectGraph(n);this.delayEnsureProjectForOpenFiles()}}setCompilerOptionsForInferredProjects(e,t){un.assert(void 0===t||this.useInferredProjectPerProjectRoot,"Setting compiler options per project root path is only supported when useInferredProjectPerProjectRoot is enabled");const n=Rme(e),r=Mme(e,t),i=Bme(e);n.allowNonTsExtensions=!0;const o=t&&this.toCanonicalFileName(t);o?(this.compilerOptionsForInferredProjectsPerProjectRoot.set(o,n),this.watchOptionsForInferredProjectsPerProjectRoot.set(o,r||!1),this.typeAcquisitionForInferredProjectsPerProjectRoot.set(o,i)):(this.compilerOptionsForInferredProjects=n,this.watchOptionsForInferredProjects=r,this.typeAcquisitionForInferredProjects=i);for(const e of this.inferredProjects)(o?e.projectRootPath!==o:e.projectRootPath&&this.compilerOptionsForInferredProjectsPerProjectRoot.has(e.projectRootPath))||(e.setCompilerOptions(n),e.setTypeAcquisition(i),e.setWatchOptions(null==r?void 0:r.watchOptions),e.setProjectErrors(null==r?void 0:r.errors),e.compileOnSaveEnabled=n.compileOnSave,e.markAsDirty(),this.delayUpdateProjectGraph(e));this.delayEnsureProjectForOpenFiles()}findProject(e){if(void 0!==e)return Dfe(e)?Wme(e,this.inferredProjects):this.findExternalProjectByProjectName(e)||this.findConfiguredProjectByProjectName(Tfe(e))}forEachProject(e){this.externalProjects.forEach(e),this.configuredProjects.forEach(e),this.inferredProjects.forEach(e)}forEachEnabledProject(e){this.forEachProject((t=>{!t.isOrphan()&&t.languageServiceEnabled&&e(t)}))}getDefaultProjectForFile(e,t){return t?this.ensureDefaultProjectForFile(e):this.tryGetDefaultProjectForFile(e)}tryGetDefaultProjectForFile(e){const t=Ze(e)?this.getScriptInfoForNormalizedPath(e):e;return t&&!t.isOrphan()?t.getDefaultProject():void 0}tryGetDefaultProjectForEnsuringConfiguredProjectForFile(e){var t;const n=Ze(e)?this.getScriptInfoForNormalizedPath(e):e;if(n)return(null==(t=this.pendingOpenFileProjectUpdates)?void 0:t.delete(n.path))&&(this.tryFindDefaultConfiguredProjectAndLoadAncestorsForOpenScriptInfo(n,5),n.isOrphan()&&this.assignOrphanScriptInfoToInferredProject(n,this.openFiles.get(n.path))),this.tryGetDefaultProjectForFile(n)}ensureDefaultProjectForFile(e){return this.tryGetDefaultProjectForEnsuringConfiguredProjectForFile(e)||this.doEnsureDefaultProjectForFile(e)}doEnsureDefaultProjectForFile(e){this.ensureProjectStructuresUptoDate();const t=Ze(e)?this.getScriptInfoForNormalizedPath(e):e;return t?t.getDefaultProject():(this.logErrorForScriptInfoNotFound(Ze(e)?e:e.fileName),yfe.ThrowNoProject())}getScriptInfoEnsuringProjectsUptoDate(e){return this.ensureProjectStructuresUptoDate(),this.getScriptInfo(e)}ensureProjectStructuresUptoDate(){let e=this.pendingEnsureProjectForOpenFiles;this.pendingProjectUpdates.clear();const t=t=>{e=sge(t)||e};this.externalProjects.forEach(t),this.configuredProjects.forEach(t),this.inferredProjects.forEach(t),e&&this.ensureProjectForOpenFiles()}getFormatCodeOptions(e){const t=this.getScriptInfoForNormalizedPath(e);return t&&t.getFormatCodeSettings()||this.hostConfiguration.formatCodeOptions}getPreferences(e){const t=this.getScriptInfoForNormalizedPath(e);return{...this.hostConfiguration.preferences,...t&&t.getPreferences()}}getHostFormatCodeOptions(){return this.hostConfiguration.formatCodeOptions}getHostPreferences(){return this.hostConfiguration.preferences}onSourceFileChanged(e,t){un.assert(!e.isScriptOpen()),2===t?this.handleDeletedFile(e,!0):(e.deferredDelete&&(e.deferredDelete=void 0),e.delayReloadNonMixedContentFile(),this.delayUpdateProjectGraphs(e.containingProjects,!1),this.handleSourceMapProjects(e))}handleSourceMapProjects(e){if(e.sourceMapFilePath)if(Ze(e.sourceMapFilePath)){const t=this.getScriptInfoForPath(e.sourceMapFilePath);this.delayUpdateSourceInfoProjects(null==t?void 0:t.sourceInfos)}else this.delayUpdateSourceInfoProjects(e.sourceMapFilePath.sourceInfos);this.delayUpdateSourceInfoProjects(e.sourceInfos),e.declarationInfoPath&&this.delayUpdateProjectsOfScriptInfoPath(e.declarationInfoPath)}delayUpdateSourceInfoProjects(e){e&&e.forEach(((e,t)=>this.delayUpdateProjectsOfScriptInfoPath(t)))}delayUpdateProjectsOfScriptInfoPath(e){const t=this.getScriptInfoForPath(e);t&&this.delayUpdateProjectGraphs(t.containingProjects,!0)}handleDeletedFile(e,t){un.assert(!e.isScriptOpen()),this.delayUpdateProjectGraphs(e.containingProjects,!1),this.handleSourceMapProjects(e),e.detachAllProjects(),t?(e.delayReloadNonMixedContentFile(),e.deferredDelete=!0):this.deleteScriptInfo(e)}watchWildcardDirectory(e,t,n,r){let i=this.watchFactory.watchDirectory(e,(t=>this.onWildCardDirectoryWatcherInvoke(e,n,r,o,t)),t,this.getWatchOptionsFromProjectWatchOptions(r.parsedCommandLine.watchOptions,Do(n)),p$.WildcardDirectory,n);const o={packageJsonWatches:void 0,close(){var e;i&&(i.close(),i=void 0,null==(e=o.packageJsonWatches)||e.forEach((e=>{e.projects.delete(o),e.close()})),o.packageJsonWatches=void 0)}};return o}onWildCardDirectoryWatcherInvoke(e,t,n,r,i){const o=this.toPath(i),a=n.cachedDirectoryStructureHost.addOrDeleteFileOrDirectory(i,o);if("package.json"===Fo(o)&&!wZ(o)&&(a&&a.fileExists||!a&&this.host.fileExists(i))){const e=this.getNormalizedAbsolutePath(i);this.logger.info(`Config: ${t} Detected new package.json: ${e}`),this.packageJsonCache.addOrUpdate(e,o),this.watchPackageJsonFile(e,o,r)}(null==a?void 0:a.fileExists)||this.sendSourceFileChange(o);const s=this.findConfiguredProjectByProjectName(t);fU({watchedDirPath:this.toPath(e),fileOrDirectory:i,fileOrDirectoryPath:o,configFileName:t,extraFileExtensions:this.hostConfiguration.extraFileExtensions,currentDirectory:this.currentDirectory,options:n.parsedCommandLine.options,program:(null==s?void 0:s.getCurrentProgram())||n.parsedCommandLine.fileNames,useCaseSensitiveFileNames:this.host.useCaseSensitiveFileNames,writeLog:e=>this.logger.info(e),toPath:e=>this.toPath(e),getScriptKind:s?e=>s.getScriptKind(e):void 0})||(2!==n.updateLevel&&(n.updateLevel=1),n.projects.forEach(((e,n)=>{var r;if(!e)return;const i=this.getConfiguredProjectByCanonicalConfigFilePath(n);if(!i)return;if(s!==i&&this.getHostPreferences().includeCompletionsForModuleExports){const e=this.toPath(t);b(null==(r=i.getCurrentProgram())?void 0:r.getResolvedProjectReferences(),(t=>(null==t?void 0:t.sourceFile.path)===e))&&i.markAutoImportProviderAsDirty()}const a=s===i?1:0;if(!(i.pendingUpdateLevel>a))if(this.openFiles.has(o))if(un.checkDefined(this.getScriptInfoForPath(o)).isAttached(i)){const e=Math.max(a,i.openFileWatchTriggered.get(o)||0);i.openFileWatchTriggered.set(o,e)}else i.pendingUpdateLevel=a,this.delayUpdateProjectGraphAndEnsureProjectStructureForOpenFiles(i);else i.pendingUpdateLevel=a,this.delayUpdateProjectGraphAndEnsureProjectStructureForOpenFiles(i)})))}delayUpdateProjectsFromParsedConfigOnConfigFileChange(e,t){const n=this.configFileExistenceInfoCache.get(e);if(!(null==n?void 0:n.config))return!1;let r=!1;return n.config.updateLevel=2,n.config.cachedDirectoryStructureHost.clearCache(),n.config.projects.forEach(((n,i)=>{var o,a,s;const c=this.getConfiguredProjectByCanonicalConfigFilePath(i);if(c)if(r=!0,i===e){if(c.initialLoadPending)return;c.pendingUpdateLevel=2,c.pendingUpdateReason=t,this.delayUpdateProjectGraph(c),c.markAutoImportProviderAsDirty()}else{if(c.initialLoadPending)return void(null==(a=null==(o=this.configFileExistenceInfoCache.get(i))?void 0:o.openFilesImpactedByConfigFile)||a.forEach((e=>{var t;(null==(t=this.pendingOpenFileProjectUpdates)?void 0:t.has(e))||(this.pendingOpenFileProjectUpdates??(this.pendingOpenFileProjectUpdates=new Map)).set(e,this.configFileForOpenFiles.get(e))})));const t=this.toPath(e);c.resolutionCache.removeResolutionsFromProjectReferenceRedirects(t),this.delayUpdateProjectGraph(c),this.getHostPreferences().includeCompletionsForModuleExports&&b(null==(s=c.getCurrentProgram())?void 0:s.getResolvedProjectReferences(),(e=>(null==e?void 0:e.sourceFile.path)===t))&&c.markAutoImportProviderAsDirty()}})),r}onConfigFileChanged(e,t,n){const r=this.configFileExistenceInfoCache.get(t),i=this.getConfiguredProjectByCanonicalConfigFilePath(t),o=null==i?void 0:i.deferredClose;2===n?(r.exists=!1,i&&(i.deferredClose=!0)):(r.exists=!0,o&&(i.deferredClose=void 0,i.markAsDirty())),this.delayUpdateProjectsFromParsedConfigOnConfigFileChange(t,"Change in config file detected"),this.openFiles.forEach(((e,t)=>{var n,i;const o=this.configFileForOpenFiles.get(t);if(!(null==(n=r.openFilesImpactedByConfigFile)?void 0:n.has(t)))return;this.configFileForOpenFiles.delete(t);const a=this.getScriptInfoForPath(t);this.getConfigFileNameForFile(a,!1)&&((null==(i=this.pendingOpenFileProjectUpdates)?void 0:i.has(t))||(this.pendingOpenFileProjectUpdates??(this.pendingOpenFileProjectUpdates=new Map)).set(t,o))})),this.delayEnsureProjectForOpenFiles()}removeProject(e){switch(this.logger.info("`remove Project::"),e.print(!0,!0,!1),e.close(),un.shouldAssert(1)&&this.filenameToScriptInfo.forEach((t=>un.assert(!t.isAttached(e),"Found script Info still attached to project",(()=>`${e.projectName}: ScriptInfos still attached: ${JSON.stringify(Oe(J(this.filenameToScriptInfo.values(),(t=>t.isAttached(e)?{fileName:t.fileName,projects:t.containingProjects.map((e=>e.projectName)),hasMixedContent:t.hasMixedContent}:void 0))),void 0," ")}`)))),this.pendingProjectUpdates.delete(e.getProjectName()),e.projectKind){case 2:Vt(this.externalProjects,e),this.projectToSizeMap.delete(e.getProjectName());break;case 1:this.configuredProjects.delete(e.canonicalConfigFilePath),this.projectToSizeMap.delete(e.canonicalConfigFilePath);break;case 0:Vt(this.inferredProjects,e)}}assignOrphanScriptInfoToInferredProject(e,t){un.assert(e.isOrphan());const n=this.getOrCreateInferredProjectForProjectRootPathIfEnabled(e,t)||this.getOrCreateSingleInferredProjectIfEnabled()||this.getOrCreateSingleInferredWithoutProjectRoot(e.isDynamic?t||this.currentDirectory:Do(go(e.fileName)?e.fileName:Bo(e.fileName,t?this.getNormalizedAbsolutePath(t):this.currentDirectory)));if(n.addRoot(e),e.containingProjects[0]!==n&&(zt(e.containingProjects,n),e.containingProjects.unshift(n)),n.updateGraph(),!this.useSingleInferredProject&&!n.projectRootPath)for(const e of this.inferredProjects){if(e===n||e.isOrphan())continue;const t=e.getRootScriptInfos();un.assert(1===t.length||!!e.projectRootPath),1===t.length&&d(t[0].containingProjects,(e=>e!==t[0].containingProjects[0]&&!e.isOrphan()))&&e.removeFile(t[0],!0,!0)}return n}assignOrphanScriptInfosToInferredProject(){this.openFiles.forEach(((e,t)=>{const n=this.getScriptInfoForPath(t);n.isOrphan()&&this.assignOrphanScriptInfoToInferredProject(n,e)}))}closeOpenFile(e,t){var n;const r=!e.isDynamic&&this.host.fileExists(e.fileName);e.close(r),this.stopWatchingConfigFilesForScriptInfo(e);const i=this.toCanonicalFileName(e.fileName);this.openFilesWithNonRootedDiskPath.get(i)===e&&this.openFilesWithNonRootedDiskPath.delete(i);let o=!1;for(const t of e.containingProjects){if(pme(t)){e.hasMixedContent&&e.registerFileUpdate();const n=t.openFileWatchTriggered.get(e.path);void 0!==n&&(t.openFileWatchTriggered.delete(e.path),t.pendingUpdateLevelthis.onConfigFileChanged(e,t,r)),2e3,this.getWatchOptionsFromProjectWatchOptions(null==(i=null==(r=null==o?void 0:o.config)?void 0:r.parsedCommandLine)?void 0:i.watchOptions,Do(e)),p$.ConfigFile,n)),this.ensureConfigFileWatcherForProject(o,n)}ensureConfigFileWatcherForProject(e,t){const n=e.config.projects;n.set(t.canonicalConfigFilePath,n.get(t.canonicalConfigFilePath)||!1)}releaseParsedConfig(e,t){var n,r,i;const o=this.configFileExistenceInfoCache.get(e);(null==(n=o.config)?void 0:n.projects.delete(t.canonicalConfigFilePath))&&((null==(r=o.config)?void 0:r.projects.size)||(o.config=void 0,_U(e,this.sharedExtendedConfigFileWatchers),un.checkDefined(o.watcher),(null==(i=o.openFilesImpactedByConfigFile)?void 0:i.size)?o.inferredProjectRoots?FW(Do(e))||(o.watcher.close(),o.watcher=Hme):(o.watcher.close(),o.watcher=void 0):(o.watcher.close(),this.configFileExistenceInfoCache.delete(e))))}stopWatchingConfigFilesForScriptInfo(e){if(0!==this.serverMode)return;const t=this.rootOfInferredProjects.delete(e),n=e.isScriptOpen();n&&!t||this.forEachConfigFileLocation(e,(r=>{var i,o,a;const s=this.configFileExistenceInfoCache.get(r);if(s){if(n){if(!(null==(i=null==s?void 0:s.openFilesImpactedByConfigFile)?void 0:i.has(e.path)))return}else if(!(null==(o=s.openFilesImpactedByConfigFile)?void 0:o.delete(e.path)))return;t&&(s.inferredProjectRoots--,!s.watcher||s.config||s.inferredProjectRoots||(s.watcher.close(),s.watcher=void 0)),(null==(a=s.openFilesImpactedByConfigFile)?void 0:a.size)||s.config||(un.assert(!s.watcher),this.configFileExistenceInfoCache.delete(r))}}))}startWatchingConfigFilesForInferredProjectRoot(e){0===this.serverMode&&(un.assert(e.isScriptOpen()),this.rootOfInferredProjects.add(e),this.forEachConfigFileLocation(e,((t,n)=>{let r=this.configFileExistenceInfoCache.get(t);r?r.inferredProjectRoots=(r.inferredProjectRoots??0)+1:(r={exists:this.host.fileExists(n),inferredProjectRoots:1},this.configFileExistenceInfoCache.set(t,r)),(r.openFilesImpactedByConfigFile??(r.openFilesImpactedByConfigFile=new Set)).add(e.path),r.watcher||(r.watcher=FW(Do(t))?this.watchFactory.watchFile(n,((e,r)=>this.onConfigFileChanged(n,t,r)),2e3,this.hostConfiguration.watchOptions,p$.ConfigFileForInferredRoot):Hme)})))}forEachConfigFileLocation(e,t){if(0!==this.serverMode)return;un.assert(!Gme(e)||this.openFiles.has(e.path));const n=this.openFiles.get(e.path);if(un.checkDefined(this.getScriptInfo(e.path)).isDynamic)return;let r=Do(e.fileName);const i=()=>Zo(n,r,this.currentDirectory,!this.host.useCaseSensitiveFileNames),o=!n||!i();let a=!0,s=!0;Xme(e)&&(a=!Rt(e.fileName,"tsconfig.json")&&(s=!1));do{const e=Cfe(r,this.currentDirectory,this.toCanonicalFileName);if(a){const n=jo(r,"tsconfig.json");if(t(jo(e,"tsconfig.json"),n))return n}if(s){const n=jo(r,"jsconfig.json");if(t(jo(e,"jsconfig.json"),n))return n}if(sa(e))break;const n=Do(r);if(n===r)break;r=n,a=s=!0}while(o||i())}findDefaultConfiguredProject(e){var t;return null==(t=this.findDefaultConfiguredProjectWorker(e,1))?void 0:t.defaultProject}findDefaultConfiguredProjectWorker(e,t){return e.isScriptOpen()?this.tryFindDefaultConfiguredProjectForOpenScriptInfo(e,t):void 0}getConfigFileNameForFileFromCache(e,t){if(t){const t=Kme(e,this.pendingOpenFileProjectUpdates);if(void 0!==t)return t}return Kme(e,this.configFileForOpenFiles)}setConfigFileNameForFileInCache(e,t){if(!this.openFiles.has(e.path))return;const n=t||!1;if(Xme(e)){let t=this.configFileForOpenFiles.get(e.path);t&&!Ze(t)||this.configFileForOpenFiles.set(e.path,t=(new Map).set(!1,t)),t.set(e.fileName,n)}else this.configFileForOpenFiles.set(e.path,n)}getConfigFileNameForFile(e,t){const n=this.getConfigFileNameForFileFromCache(e,t);if(void 0!==n)return n||void 0;if(t)return;const r=this.forEachConfigFileLocation(e,((t,n)=>this.configFileExists(n,t,e)));return this.logger.info(`getConfigFileNameForFile:: File: ${e.fileName} ProjectRootPath: ${this.openFiles.get(e.path)}:: Result: ${r}`),this.setConfigFileNameForFileInCache(e,r),r}printProjects(){this.logger.hasLevel(1)&&(this.logger.startGroup(),this.externalProjects.forEach(vge),this.configuredProjects.forEach(vge),this.inferredProjects.forEach(vge),this.logger.info("Open files: "),this.openFiles.forEach(((e,t)=>{const n=this.getScriptInfoForPath(t);this.logger.info(`\tFileName: ${n.fileName} ProjectRootPath: ${e}`),this.logger.info(`\t\tProjects: ${n.containingProjects.map((e=>e.getProjectName()))}`)})),this.logger.endGroup())}findConfiguredProjectByProjectName(e,t){const n=this.toCanonicalFileName(e),r=this.getConfiguredProjectByCanonicalConfigFilePath(n);return t?r:(null==r?void 0:r.deferredClose)?void 0:r}getConfiguredProjectByCanonicalConfigFilePath(e){return this.configuredProjects.get(e)}findExternalProjectByProjectName(e){return Wme(e,this.externalProjects)}getFilenameForExceededTotalSizeLimitForNonTsFiles(e,t,n,r){if(t&&t.disableSizeLimit||!this.host.getFileSize)return;let i=hme;this.projectToSizeMap.set(e,0),this.projectToSizeMap.forEach((e=>i-=e||0));let o=0;for(const e of n){const t=r.getFileName(e);if(!IS(t)&&(o+=this.host.getFileSize(t),o>hme||o>i)){const e=n.map((e=>r.getFileName(e))).filter((e=>!IS(e))).map((e=>({name:e,size:this.host.getFileSize(e)}))).sort(((e,t)=>t.size-e.size)).slice(0,5);return this.logger.info(`Non TS file size exceeded limit (${o}). Largest files: ${e.map((e=>`${e.name}:${e.size}`)).join(", ")}`),t}}this.projectToSizeMap.set(e,o)}createExternalProject(e,t,n,r,i){const o=Rme(n),a=Mme(n,Do(Oo(e))),s=new ume(e,this,o,this.getFilenameForExceededTotalSizeLimitForNonTsFiles(e,o,t,Vme),void 0===n.compileOnSave||n.compileOnSave,void 0,null==a?void 0:a.watchOptions);return s.setProjectErrors(null==a?void 0:a.errors),s.excludedFiles=i,this.addFilesToNonInferredProject(s,t,Vme,r),this.externalProjects.push(s),s}sendProjectTelemetry(e){if(this.seenProjects.has(e.projectName))return void dge(e);if(this.seenProjects.set(e.projectName,!0),!this.eventHandler||!this.host.createSHA256Hash)return void dge(e);const t=pme(e)?e.projectOptions:void 0;dge(e);const n={projectId:this.host.createSHA256Hash(e.projectName),fileStats:Zfe(e.getScriptInfos(),!0),compilerOptions:Pj(e.getCompilationSettings()),typeAcquisition:function({enable:e,include:t,exclude:n}){return{enable:e,include:void 0!==t&&0!==t.length,exclude:void 0!==n&&0!==n.length}}(e.getTypeAcquisition()),extends:t&&t.configHasExtendsProperty,files:t&&t.configHasFilesProperty,include:t&&t.configHasIncludeProperty,exclude:t&&t.configHasExcludeProperty,compileOnSave:e.compileOnSaveEnabled,configFileName:pme(e)&&Lfe(e.getConfigFilePath())||"other",projectType:e instanceof ume?"external":"configured",languageServiceEnabled:e.languageServiceEnabled,version:s};this.eventHandler({eventName:Cme,data:n})}addFilesToNonInferredProject(e,t,n,r){this.updateNonInferredProjectFiles(e,t,n),e.setTypeAcquisition(r),e.markAsDirty()}createConfiguredProject(e,t){var n;null==(n=Hn)||n.instant(Hn.Phase.Session,"createConfiguredProject",{configFilePath:e});const r=this.toCanonicalFileName(e);let i=this.configFileExistenceInfoCache.get(r);i?i.exists=!0:this.configFileExistenceInfoCache.set(r,i={exists:!0}),i.config||(i.config={cachedDirectoryStructureHost:sU(this.host,this.host.getCurrentDirectory(),this.host.useCaseSensitiveFileNames),projects:new Map,updateLevel:2});const o=new _me(e,r,this,i.config.cachedDirectoryStructureHost,t);return un.assert(!this.configuredProjects.has(r)),this.configuredProjects.set(r,o),this.createConfigFileWatcherForParsedConfig(e,r,o),o}loadConfiguredProject(e,t){var n,r;null==(n=Hn)||n.push(Hn.Phase.Session,"loadConfiguredProject",{configFilePath:e.canonicalConfigFilePath}),this.sendProjectLoadingStartEvent(e,t);const i=Tfe(e.getConfigFilePath()),o=this.ensureParsedConfigUptoDate(i,e.canonicalConfigFilePath,this.configFileExistenceInfoCache.get(e.canonicalConfigFilePath),e),a=o.config.parsedCommandLine;un.assert(!!a.fileNames);const s=a.options;e.projectOptions||(e.projectOptions={configHasExtendsProperty:void 0!==a.raw.extends,configHasFilesProperty:void 0!==a.raw.files,configHasIncludeProperty:void 0!==a.raw.include,configHasExcludeProperty:void 0!==a.raw.exclude}),e.parsedCommandLine=a,e.setProjectErrors(a.options.configFile.parseDiagnostics),e.updateReferences(a.projectReferences);const c=this.getFilenameForExceededTotalSizeLimitForNonTsFiles(e.canonicalConfigFilePath,s,a.fileNames,Ume);c?(e.disableLanguageService(c),this.configFileExistenceInfoCache.forEach(((t,n)=>this.stopWatchingWildCards(n,e)))):(e.setCompilerOptions(s),e.setWatchOptions(a.watchOptions),e.enableLanguageService(),this.watchWildcards(i,o,e)),e.enablePluginsWithOptions(s);const l=a.fileNames.concat(e.getExternalFiles(2));this.updateRootAndOptionsOfNonInferredProject(e,l,Ume,s,a.typeAcquisition,a.compileOnSave,a.watchOptions),null==(r=Hn)||r.pop()}ensureParsedConfigUptoDate(e,t,n,r){var i,o,a;if(n.config&&(1===n.config.updateLevel&&this.reloadFileNamesOfParsedConfig(e,n.config),!n.config.updateLevel))return this.ensureConfigFileWatcherForProject(n,r),n;if(!n.exists&&n.config)return n.config.updateLevel=void 0,this.ensureConfigFileWatcherForProject(n,r),n;const s=(null==(i=n.config)?void 0:i.cachedDirectoryStructureHost)||sU(this.host,this.host.getCurrentDirectory(),this.host.useCaseSensitiveFileNames),c=tL(e,(e=>this.host.readFile(e))),l=RI(e,Ze(c)?c:""),_=l.parseDiagnostics;Ze(c)||_.push(c);const u=Do(e),d=RL(l,s,u,void 0,e,void 0,this.hostConfiguration.extraFileExtensions,this.extendedConfigCache);d.errors.length&&_.push(...d.errors),this.logger.info(`Config: ${e} : ${JSON.stringify({rootNames:d.fileNames,options:d.options,watchOptions:d.watchOptions,projectReferences:d.projectReferences},void 0," ")}`);const p=null==(o=n.config)?void 0:o.parsedCommandLine;return n.config?(n.config.parsedCommandLine=d,n.config.watchedDirectoriesStale=!0,n.config.updateLevel=void 0):n.config={parsedCommandLine:d,cachedDirectoryStructureHost:s,projects:new Map},p||dT(this.getWatchOptionsFromProjectWatchOptions(void 0,u),this.getWatchOptionsFromProjectWatchOptions(d.watchOptions,u))||(null==(a=n.watcher)||a.close(),n.watcher=void 0),this.createConfigFileWatcherForParsedConfig(e,t,r),lU(t,d.options,this.sharedExtendedConfigFileWatchers,((t,n)=>this.watchFactory.watchFile(t,(()=>{var e;uU(this.extendedConfigCache,n,(e=>this.toPath(e)));let r=!1;null==(e=this.sharedExtendedConfigFileWatchers.get(n))||e.projects.forEach((e=>{r=this.delayUpdateProjectsFromParsedConfigOnConfigFileChange(e,`Change in extended config file ${t} detected`)||r})),r&&this.delayEnsureProjectForOpenFiles()}),2e3,this.hostConfiguration.watchOptions,p$.ExtendedConfigFile,e)),(e=>this.toPath(e))),n}watchWildcards(e,{exists:t,config:n},r){if(n.projects.set(r.canonicalConfigFilePath,!0),t){if(n.watchedDirectories&&!n.watchedDirectoriesStale)return;n.watchedDirectoriesStale=!1,pU(n.watchedDirectories||(n.watchedDirectories=new Map),n.parsedCommandLine.wildcardDirectories,((t,r)=>this.watchWildcardDirectory(t,r,e,n)))}else{if(n.watchedDirectoriesStale=!1,!n.watchedDirectories)return;_x(n.watchedDirectories,vU),n.watchedDirectories=void 0}}stopWatchingWildCards(e,t){const n=this.configFileExistenceInfoCache.get(e);n.config&&n.config.projects.get(t.canonicalConfigFilePath)&&(n.config.projects.set(t.canonicalConfigFilePath,!1),td(n.config.projects,st)||(n.config.watchedDirectories&&(_x(n.config.watchedDirectories,vU),n.config.watchedDirectories=void 0),n.config.watchedDirectoriesStale=void 0))}updateNonInferredProjectFiles(e,t,n){var r;const i=e.getRootFilesMap(),o=new Map;for(const a of t){const t=n.getFileName(a),s=Tfe(t);let c;if(Kfe(s)||e.fileExists(t)){const t=n.getScriptKind(a,this.hostConfiguration.extraFileExtensions),r=n.hasMixedContent(a,this.hostConfiguration.extraFileExtensions),o=un.checkDefined(this.getOrCreateScriptInfoNotOpenedByClientForNormalizedPath(s,e.currentDirectory,t,r,e.directoryStructureHost,!1));c=o.path;const l=i.get(c);l&&l.info===o?l.fileName=s:(e.addRoot(o,s),o.isScriptOpen()&&this.removeRootOfInferredProjectIfNowPartOfOtherProject(o))}else{c=Cfe(s,this.currentDirectory,this.toCanonicalFileName);const t=i.get(c);t?((null==(r=t.info)?void 0:r.path)===c&&(e.removeFile(t.info,!1,!0),t.info=void 0),t.fileName=s):i.set(c,{fileName:s})}o.set(c,!0)}i.size>o.size&&i.forEach(((t,n)=>{o.has(n)||(t.info?e.removeFile(t.info,e.fileExists(t.info.fileName),!0):i.delete(n))}))}updateRootAndOptionsOfNonInferredProject(e,t,n,r,i,o,a){e.setCompilerOptions(r),e.setWatchOptions(a),void 0!==o&&(e.compileOnSaveEnabled=o),this.addFilesToNonInferredProject(e,t,n,i)}reloadFileNamesOfConfiguredProject(e){const t=this.reloadFileNamesOfParsedConfig(e.getConfigFilePath(),this.configFileExistenceInfoCache.get(e.canonicalConfigFilePath).config);return e.updateErrorOnNoInputFiles(t),this.updateNonInferredProjectFiles(e,t.fileNames.concat(e.getExternalFiles(1)),Ume),e.markAsDirty(),e.updateGraph()}reloadFileNamesOfParsedConfig(e,t){if(void 0===t.updateLevel)return t.parsedCommandLine;un.assert(1===t.updateLevel);const n=vj(t.parsedCommandLine.options.configFile.configFileSpecs,Do(e),t.parsedCommandLine.options,t.cachedDirectoryStructureHost,this.hostConfiguration.extraFileExtensions);return t.parsedCommandLine={...t.parsedCommandLine,fileNames:n},t.updateLevel=void 0,t.parsedCommandLine}setFileNamesOfAutoImportProviderOrAuxillaryProject(e,t){this.updateNonInferredProjectFiles(e,t,Ume)}reloadConfiguredProjectOptimized(e,t,n){n.has(e)||(n.set(e,6),e.initialLoadPending||this.setProjectForReload(e,2,t))}reloadConfiguredProjectClearingSemanticCache(e,t,n){return 7!==n.get(e)&&(n.set(e,7),this.clearSemanticCache(e),this.reloadConfiguredProject(e,uge(t)),!0)}setProjectForReload(e,t,n){2===t&&this.clearSemanticCache(e),e.pendingUpdateReason=n&&uge(n),e.pendingUpdateLevel=t}reloadConfiguredProject(e,t){e.initialLoadPending=!1,this.setProjectForReload(e,0),this.loadConfiguredProject(e,t),cge(e,e.triggerFileForConfigFileDiag??e.getConfigFilePath(),!0)}clearSemanticCache(e){e.originalConfiguredProjects=void 0,e.resolutionCache.clear(),e.getLanguageService(!1).cleanupSemanticCache(),e.cleanupProgram(),e.markAsDirty()}sendConfigFileDiagEvent(e,t,n){if(!this.eventHandler||this.suppressDiagnosticEvents)return!1;const r=e.getLanguageService().getCompilerOptionsDiagnostics();return r.push(...e.getAllProjectErrors()),!(!n&&r.length===(e.configDiagDiagnosticsReported??0)||(e.configDiagDiagnosticsReported=r.length,this.eventHandler({eventName:Sme,data:{configFileName:e.getConfigFilePath(),diagnostics:r,triggerFile:t??e.getConfigFilePath()}}),0))}getOrCreateInferredProjectForProjectRootPathIfEnabled(e,t){if(!this.useInferredProjectPerProjectRoot||e.isDynamic&&void 0===t)return;if(t){const e=this.toCanonicalFileName(t);for(const t of this.inferredProjects)if(t.projectRootPath===e)return t;return this.createInferredProject(t,!1,t)}let n;for(const t of this.inferredProjects)t.projectRootPath&&Zo(t.projectRootPath,e.path,this.host.getCurrentDirectory(),!this.host.useCaseSensitiveFileNames)&&(n&&n.projectRootPath.length>t.projectRootPath.length||(n=t));return n}getOrCreateSingleInferredProjectIfEnabled(){if(this.useSingleInferredProject)return this.inferredProjects.length>0&&void 0===this.inferredProjects[0].projectRootPath?this.inferredProjects[0]:this.createInferredProject(this.currentDirectory,!0,void 0)}getOrCreateSingleInferredWithoutProjectRoot(e){un.assert(!this.useSingleInferredProject);const t=this.toCanonicalFileName(this.getNormalizedAbsolutePath(e));for(const e of this.inferredProjects)if(!e.projectRootPath&&e.isOrphan()&&e.canonicalCurrentDirectory===t)return e;return this.createInferredProject(e,!1,void 0)}createInferredProject(e,t,n){const r=n&&this.compilerOptionsForInferredProjectsPerProjectRoot.get(n)||this.compilerOptionsForInferredProjects;let i,o;n&&(i=this.watchOptionsForInferredProjectsPerProjectRoot.get(n),o=this.typeAcquisitionForInferredProjectsPerProjectRoot.get(n)),void 0===i&&(i=this.watchOptionsForInferredProjects),void 0===o&&(o=this.typeAcquisitionForInferredProjects),i=i||void 0;const a=new ame(this,r,null==i?void 0:i.watchOptions,n,e,o);return a.setProjectErrors(null==i?void 0:i.errors),t?this.inferredProjects.unshift(a):this.inferredProjects.push(a),a}getOrCreateScriptInfoNotOpenedByClient(e,t,n,r){return this.getOrCreateScriptInfoNotOpenedByClientForNormalizedPath(Tfe(e),t,void 0,void 0,n,r)}getScriptInfo(e){return this.getScriptInfoForNormalizedPath(Tfe(e))}getScriptInfoOrConfig(e){const t=Tfe(e),n=this.getScriptInfoForNormalizedPath(t);if(n)return n;const r=this.configuredProjects.get(this.toPath(e));return r&&r.getCompilerOptions().configFile}logErrorForScriptInfoNotFound(e){const t=Oe(J(this.filenameToScriptInfo.entries(),(e=>e[1].deferredDelete?void 0:e)),(([e,t])=>({path:e,fileName:t.fileName})));this.logger.msg(`Could not find file ${JSON.stringify(e)}.\nAll files are: ${JSON.stringify(t)}`,"Err")}getSymlinkedProjects(e){let t;if(this.realpathToScriptInfos){const t=e.getRealpathIfDifferent();t&&d(this.realpathToScriptInfos.get(t),n),d(this.realpathToScriptInfos.get(e.path),n)}return t;function n(n){if(n!==e)for(const r of n.containingProjects)!r.languageServiceEnabled||r.isOrphan()||r.getCompilerOptions().preserveSymlinks||e.isAttached(r)||(t?td(t,((e,t)=>t!==n.path&&T(e,r)))||t.add(n.path,r):(t=$e(),t.add(n.path,r)))}}watchClosedScriptInfo(e){if(un.assert(!e.fileWatcher),!(e.isDynamicOrHasMixedContent()||this.globalCacheLocationDirectoryPath&&Gt(e.path,this.globalCacheLocationDirectoryPath))){const t=e.fileName.indexOf("/node_modules/");this.host.getModifiedTime&&-1!==t?(e.mTime=this.getModifiedTime(e),e.fileWatcher=this.watchClosedScriptInfoInNodeModules(e.fileName.substring(0,t))):e.fileWatcher=this.watchFactory.watchFile(e.fileName,((t,n)=>this.onSourceFileChanged(e,n)),500,this.hostConfiguration.watchOptions,p$.ClosedScriptInfo)}}createNodeModulesWatcher(e,t){let n=this.watchFactory.watchDirectory(e,(e=>{var n;const i=wW(this.toPath(e));if(!i)return;const o=Fo(i);if(!(null==(n=r.affectedModuleSpecifierCacheProjects)?void 0:n.size)||"package.json"!==o&&"node_modules"!==o||r.affectedModuleSpecifierCacheProjects.forEach((e=>{var t;null==(t=e.getModuleSpecifierCache())||t.clear()})),r.refreshScriptInfoRefCount)if(t===i)this.refreshScriptInfosInDirectory(t);else{const e=this.filenameToScriptInfo.get(i);e?age(e)&&this.refreshScriptInfo(e):xo(i)||this.refreshScriptInfosInDirectory(i)}}),1,this.hostConfiguration.watchOptions,p$.NodeModules);const r={refreshScriptInfoRefCount:0,affectedModuleSpecifierCacheProjects:void 0,close:()=>{var e;!n||r.refreshScriptInfoRefCount||(null==(e=r.affectedModuleSpecifierCacheProjects)?void 0:e.size)||(n.close(),n=void 0,this.nodeModulesWatchers.delete(t))}};return this.nodeModulesWatchers.set(t,r),r}watchPackageJsonsInNodeModules(e,t){var n;const r=this.toPath(e),i=this.nodeModulesWatchers.get(r)||this.createNodeModulesWatcher(e,r);return un.assert(!(null==(n=i.affectedModuleSpecifierCacheProjects)?void 0:n.has(t))),(i.affectedModuleSpecifierCacheProjects||(i.affectedModuleSpecifierCacheProjects=new Set)).add(t),{close:()=>{var e;null==(e=i.affectedModuleSpecifierCacheProjects)||e.delete(t),i.close()}}}watchClosedScriptInfoInNodeModules(e){const t=e+"/node_modules",n=this.toPath(t),r=this.nodeModulesWatchers.get(n)||this.createNodeModulesWatcher(t,n);return r.refreshScriptInfoRefCount++,{close:()=>{r.refreshScriptInfoRefCount--,r.close()}}}getModifiedTime(e){return(this.host.getModifiedTime(e.fileName)||zi).getTime()}refreshScriptInfo(e){const t=this.getModifiedTime(e);if(t!==e.mTime){const n=Xi(e.mTime,t);e.mTime=t,this.onSourceFileChanged(e,n)}}refreshScriptInfosInDirectory(e){e+=lo,this.filenameToScriptInfo.forEach((t=>{age(t)&&Gt(t.path,e)&&this.refreshScriptInfo(t)}))}stopWatchingScriptInfo(e){e.fileWatcher&&(e.fileWatcher.close(),e.fileWatcher=void 0)}getOrCreateScriptInfoNotOpenedByClientForNormalizedPath(e,t,n,r,i,o){if(go(e)||Kfe(e))return this.getOrCreateScriptInfoWorker(e,t,!1,void 0,n,!!r,i,o);return this.openFilesWithNonRootedDiskPath.get(this.toCanonicalFileName(e))||void 0}getOrCreateScriptInfoForNormalizedPath(e,t,n,r,i,o){return this.getOrCreateScriptInfoWorker(e,this.currentDirectory,t,n,r,!!i,o,!1)}getOrCreateScriptInfoWorker(e,t,n,r,i,o,a,s){un.assert(void 0===r||n,"ScriptInfo needs to be opened by client to be able to set its user defined content");const c=Cfe(e,t,this.toCanonicalFileName);let l=this.filenameToScriptInfo.get(c);if(l){if(l.deferredDelete){if(un.assert(!l.isDynamic),!n&&!(a||this.host).fileExists(e))return s?l:void 0;l.deferredDelete=void 0}}else{const r=Kfe(e);if(un.assert(go(e)||r||n,"",(()=>`${JSON.stringify({fileName:e,currentDirectory:t,hostCurrentDirectory:this.currentDirectory,openKeys:Oe(this.openFilesWithNonRootedDiskPath.keys())})}\nScript info with non-dynamic relative file name can only be open script info or in context of host currentDirectory`)),un.assert(!go(e)||this.currentDirectory===t||!this.openFilesWithNonRootedDiskPath.has(this.toCanonicalFileName(e)),"",(()=>`${JSON.stringify({fileName:e,currentDirectory:t,hostCurrentDirectory:this.currentDirectory,openKeys:Oe(this.openFilesWithNonRootedDiskPath.keys())})}\nOpen script files with non rooted disk path opened with current directory context cannot have same canonical names`)),un.assert(!r||this.currentDirectory===t||this.useInferredProjectPerProjectRoot,"",(()=>`${JSON.stringify({fileName:e,currentDirectory:t,hostCurrentDirectory:this.currentDirectory,openKeys:Oe(this.openFilesWithNonRootedDiskPath.keys())})}\nDynamic files must always be opened with service's current directory or service should support inferred project per projectRootPath.`)),!n&&!r&&!(a||this.host).fileExists(e))return;l=new Gfe(this.host,e,i,o,c,this.filenameToScriptInfoVersion.get(c)),this.filenameToScriptInfo.set(l.path,l),this.filenameToScriptInfoVersion.delete(l.path),n?go(e)||r&&this.currentDirectory===t||this.openFilesWithNonRootedDiskPath.set(this.toCanonicalFileName(e),l):this.watchClosedScriptInfo(l)}return n&&(this.stopWatchingScriptInfo(l),l.open(r),o&&l.registerFileUpdate()),l}getScriptInfoForNormalizedPath(e){return!go(e)&&this.openFilesWithNonRootedDiskPath.get(this.toCanonicalFileName(e))||this.getScriptInfoForPath(Cfe(e,this.currentDirectory,this.toCanonicalFileName))}getScriptInfoForPath(e){const t=this.filenameToScriptInfo.get(e);return t&&t.deferredDelete?void 0:t}getDocumentPositionMapper(e,t,n){const r=this.getOrCreateScriptInfoNotOpenedByClient(t,e.currentDirectory,this.host,!1);if(!r)return void(n&&e.addGeneratedFileWatch(t,n));if(r.getSnapshot(),Ze(r.sourceMapFilePath)){const t=this.getScriptInfoForPath(r.sourceMapFilePath);if(t&&(t.getSnapshot(),void 0!==t.documentPositionMapper))return t.sourceInfos=this.addSourceInfoToSourceMap(n,e,t.sourceInfos),t.documentPositionMapper?t.documentPositionMapper:void 0;r.sourceMapFilePath=void 0}else{if(r.sourceMapFilePath)return void(r.sourceMapFilePath.sourceInfos=this.addSourceInfoToSourceMap(n,e,r.sourceMapFilePath.sourceInfos));if(void 0!==r.sourceMapFilePath)return}let i,o=(t,n)=>{const r=this.getOrCreateScriptInfoNotOpenedByClient(t,e.currentDirectory,this.host,!0);if(i=r||n,!r||r.deferredDelete)return;const o=r.getSnapshot();return void 0!==r.documentPositionMapper?r.documentPositionMapper:CQ(o)};const a=e.projectName,s=p1({getCanonicalFileName:this.toCanonicalFileName,log:e=>this.logger.info(e),getSourceFileLike:e=>this.getSourceFileLike(e,a,r)},r.fileName,r.textStorage.getLineInfo(),o);return o=void 0,i?Ze(i)?r.sourceMapFilePath={watcher:this.addMissingSourceMapFile(e.currentDirectory===this.currentDirectory?i:Bo(i,e.currentDirectory),r.path),sourceInfos:this.addSourceInfoToSourceMap(n,e)}:(r.sourceMapFilePath=i.path,i.declarationInfoPath=r.path,i.deferredDelete||(i.documentPositionMapper=s||!1),i.sourceInfos=this.addSourceInfoToSourceMap(n,e,i.sourceInfos)):r.sourceMapFilePath=!1,s}addSourceInfoToSourceMap(e,t,n){if(e){const r=this.getOrCreateScriptInfoNotOpenedByClient(e,t.currentDirectory,t.directoryStructureHost,!1);(n||(n=new Set)).add(r.path)}return n}addMissingSourceMapFile(e,t){return this.watchFactory.watchFile(e,(()=>{const e=this.getScriptInfoForPath(t);e&&e.sourceMapFilePath&&!Ze(e.sourceMapFilePath)&&(this.delayUpdateProjectGraphs(e.containingProjects,!0),this.delayUpdateSourceInfoProjects(e.sourceMapFilePath.sourceInfos),e.closeSourceMapFileWatcher())}),2e3,this.hostConfiguration.watchOptions,p$.MissingSourceMapFile)}getSourceFileLike(e,t,n){const r=t.projectName?t:this.findProject(t);if(r){const t=r.toPath(e),n=r.getSourceFile(t);if(n&&n.resolvedPath===t)return n}const i=this.getOrCreateScriptInfoNotOpenedByClient(e,(r||this).currentDirectory,r?r.directoryStructureHost:this.host,!1);if(i){if(n&&Ze(n.sourceMapFilePath)&&i!==n){const e=this.getScriptInfoForPath(n.sourceMapFilePath);e&&(e.sourceInfos??(e.sourceInfos=new Set)).add(i.path)}return i.cacheSourceFile?i.cacheSourceFile.sourceFile:(i.sourceFileLike||(i.sourceFileLike={get text(){return un.fail("shouldnt need text"),""},getLineAndCharacterOfPosition:e=>{const t=i.positionToLineOffset(e);return{line:t.line-1,character:t.offset-1}},getPositionOfLineAndCharacter:(e,t,n)=>i.lineOffsetToPosition(e+1,t+1,n)}),i.sourceFileLike)}}setPerformanceEventHandler(e){this.performanceEventHandler=e}setHostConfiguration(e){var t;if(e.file){const t=this.getScriptInfoForNormalizedPath(Tfe(e.file));t&&(t.setOptions(jme(e.formatOptions),e.preferences),this.logger.info(`Host configuration update for file ${e.file}`))}else{if(void 0!==e.hostInfo&&(this.hostConfiguration.hostInfo=e.hostInfo,this.logger.info(`Host information ${e.hostInfo}`)),e.formatOptions&&(this.hostConfiguration.formatCodeOptions={...this.hostConfiguration.formatCodeOptions,...jme(e.formatOptions)},this.logger.info("Format host information updated")),e.preferences){const{lazyConfiguredProjectsFromExternalProject:t,includePackageJsonAutoImports:n,includeCompletionsForModuleExports:r}=this.hostConfiguration.preferences;this.hostConfiguration.preferences={...this.hostConfiguration.preferences,...e.preferences},t&&!this.hostConfiguration.preferences.lazyConfiguredProjectsFromExternalProject&&this.externalProjectToConfiguredProjectMap.forEach((e=>e.forEach((e=>{e.deferredClose||e.isClosed()||2!==e.pendingUpdateLevel||this.hasPendingProjectUpdate(e)||e.updateGraph()})))),n===e.preferences.includePackageJsonAutoImports&&!!r==!!e.preferences.includeCompletionsForModuleExports||this.forEachProject((e=>{e.onAutoImportProviderSettingsChanged()}))}if(e.extraFileExtensions&&(this.hostConfiguration.extraFileExtensions=e.extraFileExtensions,this.reloadProjects(),this.logger.info("Host file extension mappings updated")),e.watchOptions){const n=null==(t=Mme(e.watchOptions))?void 0:t.watchOptions,r=UL(n,this.currentDirectory);this.hostConfiguration.watchOptions=r,this.hostConfiguration.beforeSubstitution=r===n?void 0:n,this.logger.info(`Host watch options changed to ${JSON.stringify(this.hostConfiguration.watchOptions)}, it will be take effect for next watches.`)}}}getWatchOptions(e){return this.getWatchOptionsFromProjectWatchOptions(e.getWatchOptions(),e.getCurrentDirectory())}getWatchOptionsFromProjectWatchOptions(e,t){const n=this.hostConfiguration.beforeSubstitution?UL(this.hostConfiguration.beforeSubstitution,t):this.hostConfiguration.watchOptions;return e&&n?{...n,...e}:e||n}closeLog(){this.logger.close()}sendSourceFileChange(e){this.filenameToScriptInfo.forEach((t=>{if(this.openFiles.has(t.path))return;if(!t.fileWatcher)return;const n=dt((()=>this.host.fileExists(t.fileName)?t.deferredDelete?0:1:2));if(e){if(age(t)||!t.path.startsWith(e))return;if(2===n()&&t.deferredDelete)return;this.logger.info(`Invoking sourceFileChange on ${t.fileName}:: ${n()}`)}this.onSourceFileChanged(t,n())}))}reloadProjects(){this.logger.info("reload projects."),this.sendSourceFileChange(void 0),this.pendingProjectUpdates.forEach(((e,t)=>{this.throttledOperations.cancel(t),this.pendingProjectUpdates.delete(t)})),this.throttledOperations.cancel(Eme),this.pendingOpenFileProjectUpdates=void 0,this.pendingEnsureProjectForOpenFiles=!1,this.configFileExistenceInfoCache.forEach((e=>{e.config&&(e.config.updateLevel=2,e.config.cachedDirectoryStructureHost.clearCache())})),this.configFileForOpenFiles.clear(),this.externalProjects.forEach((e=>{this.clearSemanticCache(e),e.updateGraph()}));const e=new Map,t=new Set;this.externalProjectToConfiguredProjectMap.forEach(((t,n)=>{const r=`Reloading configured project in external project: ${n}`;t.forEach((t=>{this.getHostPreferences().lazyConfiguredProjectsFromExternalProject?this.reloadConfiguredProjectOptimized(t,r,e):this.reloadConfiguredProjectClearingSemanticCache(t,r,e)}))})),this.openFiles.forEach(((n,r)=>{const i=this.getScriptInfoForPath(r);b(i.containingProjects,fme)||this.tryFindDefaultConfiguredProjectAndLoadAncestorsForOpenScriptInfo(i,7,e,t)})),t.forEach((t=>e.set(t,7))),this.inferredProjects.forEach((e=>this.clearSemanticCache(e))),this.ensureProjectForOpenFiles(),this.cleanupProjectsAndScriptInfos(e,new Set(this.openFiles.keys()),new Set(this.externalProjectToConfiguredProjectMap.keys())),this.logger.info("After reloading projects.."),this.printProjects()}removeRootOfInferredProjectIfNowPartOfOtherProject(e){un.assert(e.containingProjects.length>0);const t=e.containingProjects[0];!t.isOrphan()&&dme(t)&&t.isRoot(e)&&d(e.containingProjects,(e=>e!==t&&!e.isOrphan()))&&t.removeFile(e,!0,!0)}ensureProjectForOpenFiles(){this.logger.info("Before ensureProjectForOpenFiles:"),this.printProjects();const e=this.pendingOpenFileProjectUpdates;this.pendingOpenFileProjectUpdates=void 0,null==e||e.forEach(((e,t)=>this.tryFindDefaultConfiguredProjectAndLoadAncestorsForOpenScriptInfo(this.getScriptInfoForPath(t),5))),this.openFiles.forEach(((e,t)=>{const n=this.getScriptInfoForPath(t);n.isOrphan()?this.assignOrphanScriptInfoToInferredProject(n,e):this.removeRootOfInferredProjectIfNowPartOfOtherProject(n)})),this.pendingEnsureProjectForOpenFiles=!1,this.inferredProjects.forEach(sge),this.logger.info("After ensureProjectForOpenFiles:"),this.printProjects()}openClientFile(e,t,n,r){return this.openClientFileWithNormalizedPath(Tfe(e),t,n,!1,r?Tfe(r):void 0)}getOriginalLocationEnsuringConfiguredProject(e,t){const n=e.isSourceOfProjectReferenceRedirect(t.fileName),r=n?t:e.getSourceMapper().tryGetSourcePosition(t);if(!r)return;const{fileName:i}=r,o=this.getScriptInfo(i);if(!o&&!this.host.fileExists(i))return;const a={fileName:Tfe(i),path:this.toPath(i)},s=this.getConfigFileNameForFile(a,!1);if(!s)return;let c=this.findConfiguredProjectByProjectName(s);if(!c){if(e.getCompilerOptions().disableReferencedProjectLoad)return n?t:(null==o?void 0:o.containingProjects.length)?r:t;c=this.createConfiguredProject(s,`Creating project for original file: ${a.fileName}${t!==r?" for location: "+t.fileName:""}`)}const l=this.tryFindDefaultConfiguredProjectForOpenScriptInfoOrClosedFileInfo(a,5,tge(c,4),(e=>`Creating project referenced in solution ${e.projectName} to find possible configured project for original file: ${a.fileName}${t!==r?" for location: "+t.fileName:""}`));if(!l.defaultProject)return;if(l.defaultProject===e)return r;u(l.defaultProject);const _=this.getScriptInfo(i);if(_&&_.containingProjects.length)return _.containingProjects.forEach((e=>{pme(e)&&u(e)})),r;function u(t){(e.originalConfiguredProjects??(e.originalConfiguredProjects=new Set)).add(t.canonicalConfigFilePath)}}fileExists(e){return!!this.getScriptInfoForNormalizedPath(e)||this.host.fileExists(e)}findExternalProjectContainingOpenScriptInfo(e){return b(this.externalProjects,(t=>(sge(t),t.containsScriptInfo(e))))}getOrCreateOpenScriptInfo(e,t,n,r,i){const o=this.getOrCreateScriptInfoWorker(e,i?this.getNormalizedAbsolutePath(i):this.currentDirectory,!0,t,n,!!r,void 0,!0);return this.openFiles.set(o.path,i),o}assignProjectToOpenedScriptInfo(e){let t,n,r,i;if(!this.findExternalProjectContainingOpenScriptInfo(e)&&0===this.serverMode){const o=this.tryFindDefaultConfiguredProjectAndLoadAncestorsForOpenScriptInfo(e,5);o&&(r=o.seenProjects,i=o.sentConfigDiag,o.defaultProject&&(t=o.defaultProject.getConfigFilePath(),n=o.defaultProject.getAllProjectErrors()))}return e.containingProjects.forEach(sge),e.isOrphan()&&(null==r||r.forEach(((t,n)=>{4===t||i.has(n)||this.sendConfigFileDiagEvent(n,e.fileName,!0)})),un.assert(this.openFiles.has(e.path)),this.assignOrphanScriptInfoToInferredProject(e,this.openFiles.get(e.path))),un.assert(!e.isOrphan()),{configFileName:t,configFileErrors:n,retainProjects:r}}findCreateOrReloadConfiguredProject(e,t,n,r,i,o,a,s,c){let l,_=c??this.findConfiguredProjectByProjectName(e,r),u=!1;switch(t){case 0:case 1:case 3:if(!_)return;break;case 2:if(!_)return;l=function(e){return _ge(e)?e.projectService.configFileExistenceInfoCache.get(e.canonicalConfigFilePath):void 0}(_);break;case 4:case 5:_??(_=this.createConfiguredProject(e,n)),a||({sentConfigFileDiag:u,configFileExistenceInfo:l}=tge(_,t,i));break;case 6:if(_??(_=this.createConfiguredProject(e,uge(n))),_.projectService.reloadConfiguredProjectOptimized(_,n,o),l=lge(_),l)break;case 7:_??(_=this.createConfiguredProject(e,uge(n))),u=!s&&this.reloadConfiguredProjectClearingSemanticCache(_,n,o),!s||s.has(_)||o.has(_)||(this.setProjectForReload(_,2,n),s.add(_));break;default:un.assertNever(t)}return{project:_,sentConfigFileDiag:u,configFileExistenceInfo:l,reason:n}}tryFindDefaultConfiguredProjectForOpenScriptInfo(e,t,n,r){const i=this.getConfigFileNameForFile(e,t<=3);if(!i)return;const o=Yme(t),a=this.findCreateOrReloadConfiguredProject(i,o,function(e){return`Creating possible configured project for ${e.fileName} to open`}(e),n,e.fileName,r);return a&&this.tryFindDefaultConfiguredProjectForOpenScriptInfoOrClosedFileInfo(e,t,a,(t=>`Creating project referenced in solution ${t.projectName} to find possible configured project for ${e.fileName} to open`),n,r)}isMatchedByConfig(e,t,n){if(t.fileNames.some((e=>this.toPath(e)===n.path)))return!0;if(RS(n.fileName,t.options,this.hostConfiguration.extraFileExtensions))return!1;const{validatedFilesSpec:r,validatedIncludeSpecs:i,validatedExcludeSpecs:o}=t.options.configFile.configFileSpecs,a=Tfe(Bo(Do(e),this.currentDirectory));return!!(null==r?void 0:r.some((e=>this.toPath(Bo(e,a))===n.path)))||!!(null==i?void 0:i.length)&&!Sj(n.fileName,o,this.host.useCaseSensitiveFileNames,this.currentDirectory,a)&&(null==i?void 0:i.some((e=>{const t=_S(e,a,"files");return!!t&&fS(`(${t})$`,this.host.useCaseSensitiveFileNames).test(n.fileName)})))}tryFindDefaultConfiguredProjectForOpenScriptInfoOrClosedFileInfo(e,t,n,r,i,o){const a=Gme(e),s=Yme(t),c=new Map;let l;const _=new Set;let u,d,p,f;return function t(n){return function(e,t){return e.sentConfigFileDiag&&_.add(e.project),e.configFileExistenceInfo?m(e.configFileExistenceInfo,e.project,Tfe(e.project.getConfigFilePath()),e.reason,e.project,e.project.canonicalConfigFilePath):g(e.project,t)}(n,n.project)??((c=n.project).parsedCommandLine&&ege(c,c.parsedCommandLine,m,s,r(c),i,o))??function(n){return a?Zme(e,n,t,s,`Creating possible configured project for ${e.fileName} to open`,i,o,!1):void 0}(n.project);var c}(n),{defaultProject:u??d,tsconfigProject:p??f,sentConfigDiag:_,seenProjects:c,seenConfigs:l};function m(n,r,a,u,d,p){if(r){if(c.has(r))return;c.set(r,s)}else{if(null==l?void 0:l.has(p))return;(l??(l=new Set)).add(p)}if(!d.projectService.isMatchedByConfig(a,n.config.parsedCommandLine,e))return void(d.languageServiceEnabled&&d.projectService.watchWildcards(a,n,d));const f=r?tge(r,t,e.fileName,u,o):d.projectService.findCreateOrReloadConfiguredProject(a,t,u,i,e.fileName,o);if(f)return c.set(f.project,s),f.sentConfigFileDiag&&_.add(f.project),g(f.project,d);un.assert(3===t)}function g(n,r){if(c.get(n)===t)return;c.set(n,t);const i=a?e:n.projectService.getScriptInfo(e.fileName),o=i&&n.containsScriptInfo(i);if(o&&!n.isSourceOfProjectReferenceRedirect(i.path))return p=r,u=n;!d&&a&&o&&(f=r,d=n)}}tryFindDefaultConfiguredProjectAndLoadAncestorsForOpenScriptInfo(e,t,n,r){const i=1===t,o=this.tryFindDefaultConfiguredProjectForOpenScriptInfo(e,t,i,n);if(!o)return;const{defaultProject:a,tsconfigProject:s,seenProjects:c}=o;return a&&Zme(e,s,(e=>{c.set(e.project,t)}),t,`Creating project possibly referencing default composite project ${a.getProjectName()} of open file ${e.fileName}`,i,n,!0,r),o}loadAncestorProjectTree(e){e??(e=new Set(J(this.configuredProjects.entries(),(([e,t])=>t.initialLoadPending?void 0:e))));const t=new Set,n=Oe(this.configuredProjects.values());for(const r of n)nge(r,(t=>e.has(t)))&&sge(r),this.ensureProjectChildren(r,e,t)}ensureProjectChildren(e,t,n){var r;if(!q(n,e.canonicalConfigFilePath))return;if(e.getCompilerOptions().disableReferencedProjectLoad)return;const i=null==(r=e.getCurrentProgram())?void 0:r.getResolvedProjectReferences();if(i)for(const r of i){if(!r)continue;const i=oV(r.references,(e=>t.has(e.sourceFile.path)?e:void 0));if(!i)continue;const o=Tfe(r.sourceFile.fileName),a=this.findConfiguredProjectByProjectName(o)??this.createConfiguredProject(o,`Creating project referenced by : ${e.projectName} as it references project ${i.sourceFile.fileName}`);sge(a),this.ensureProjectChildren(a,t,n)}}cleanupConfiguredProjects(e,t,n){this.getOrphanConfiguredProjects(e,n,t).forEach((e=>this.removeProject(e)))}cleanupProjectsAndScriptInfos(e,t,n){this.cleanupConfiguredProjects(e,n,t);for(const e of this.inferredProjects.slice())e.isOrphan()&&this.removeProject(e);this.removeOrphanScriptInfos()}tryInvokeWildCardDirectories(e){this.configFileExistenceInfoCache.forEach(((t,n)=>{var r,i;(null==(r=t.config)?void 0:r.parsedCommandLine)&&!T(t.config.parsedCommandLine.fileNames,e.fileName,this.host.useCaseSensitiveFileNames?ht:gt)&&(null==(i=t.config.watchedDirectories)||i.forEach(((r,i)=>{Zo(i,e.fileName,!this.host.useCaseSensitiveFileNames)&&(this.logger.info(`Invoking ${n}:: wildcard for open scriptInfo:: ${e.fileName}`),this.onWildCardDirectoryWatcherInvoke(i,n,t.config,r.watcher,e.fileName))})))}))}openClientFileWithNormalizedPath(e,t,n,r,i){const o=this.getScriptInfoForPath(Cfe(e,i?this.getNormalizedAbsolutePath(i):this.currentDirectory,this.toCanonicalFileName)),a=this.getOrCreateOpenScriptInfo(e,t,n,r,i);o||!a||a.isDynamic||this.tryInvokeWildCardDirectories(a);const{retainProjects:s,...c}=this.assignProjectToOpenedScriptInfo(a);return this.cleanupProjectsAndScriptInfos(s,new Set([a.path]),void 0),this.telemetryOnOpenFile(a),this.printProjects(),c}getOrphanConfiguredProjects(e,t,n){const r=new Set(this.configuredProjects.values()),i=e=>{!e.originalConfiguredProjects||!pme(e)&&e.isOrphan()||e.originalConfiguredProjects.forEach(((e,t)=>{const n=this.getConfiguredProjectByCanonicalConfigFilePath(t);return n&&s(n)}))};return null==e||e.forEach(((e,t)=>s(t))),r.size?(this.inferredProjects.forEach(i),this.externalProjects.forEach(i),this.externalProjectToConfiguredProjectMap.forEach(((e,t)=>{(null==n?void 0:n.has(t))||e.forEach(s)})),r.size?(td(this.openFiles,((e,n)=>{if(null==t?void 0:t.has(n))return;const i=this.getScriptInfoForPath(n);if(b(i.containingProjects,fme))return;const o=this.tryFindDefaultConfiguredProjectAndLoadAncestorsForOpenScriptInfo(i,1);return(null==o?void 0:o.defaultProject)&&(null==o||o.seenProjects.forEach(((e,t)=>s(t))),!r.size)?r:void 0})),r.size?(td(this.configuredProjects,(e=>{if(r.has(e)&&(a(e)||ige(e,o))&&(s(e),!r.size))return r})),r):r):r):r;function o(e){return!r.has(e)||a(e)}function a(e){var t,n;return(e.deferredClose||e.projectService.hasPendingProjectUpdate(e))&&!!(null==(n=null==(t=e.projectService.configFileExistenceInfoCache.get(e.canonicalConfigFilePath))?void 0:t.openFilesImpactedByConfigFile)?void 0:n.size)}function s(e){r.delete(e)&&(i(e),ige(e,s))}}removeOrphanScriptInfos(){const e=new Map(this.filenameToScriptInfo);this.filenameToScriptInfo.forEach((t=>{if(!t.deferredDelete){if(!t.isScriptOpen()&&t.isOrphan()&&!Qfe(t)&&!Xfe(t)){if(!t.sourceMapFilePath)return;let e;if(Ze(t.sourceMapFilePath)){const n=this.filenameToScriptInfo.get(t.sourceMapFilePath);e=null==n?void 0:n.sourceInfos}else e=t.sourceMapFilePath.sourceInfos;if(!e)return;if(!nd(e,(e=>{const t=this.getScriptInfoForPath(e);return!!t&&(t.isScriptOpen()||!t.isOrphan())})))return}if(e.delete(t.path),t.sourceMapFilePath){let n;if(Ze(t.sourceMapFilePath)){const r=this.filenameToScriptInfo.get(t.sourceMapFilePath);(null==r?void 0:r.deferredDelete)?t.sourceMapFilePath={watcher:this.addMissingSourceMapFile(r.fileName,t.path),sourceInfos:r.sourceInfos}:e.delete(t.sourceMapFilePath),n=null==r?void 0:r.sourceInfos}else n=t.sourceMapFilePath.sourceInfos;n&&n.forEach(((t,n)=>e.delete(n)))}}})),e.forEach((e=>this.deleteScriptInfo(e)))}telemetryOnOpenFile(e){if(0!==this.serverMode||!this.eventHandler||!e.isJavaScript()||!vx(this.allJsFilesForOpenFileTelemetry,e.path))return;const t=this.ensureDefaultProjectForFile(e);if(!t.languageServiceEnabled)return;const n=t.getSourceFile(e.path),r=!!n&&!!n.checkJsDirective;this.eventHandler({eventName:wme,data:{info:{checkJs:r}}})}closeClientFile(e,t){const n=this.getScriptInfoForNormalizedPath(Tfe(e)),r=!!n&&this.closeOpenFile(n,t);return t||this.printProjects(),r}collectChanges(e,t,n,r){for(const i of t){const t=b(e,(e=>e.projectName===i.getProjectName()));r.push(i.getChangesSinceVersion(t&&t.version,n))}}synchronizeProjectList(e,t){const n=[];return this.collectChanges(e,this.externalProjects,t,n),this.collectChanges(e,J(this.configuredProjects.values(),(e=>e.deferredClose?void 0:e)),t,n),this.collectChanges(e,this.inferredProjects,t,n),n}applyChangesInOpenFiles(e,t,n){let r,i,o,a=!1;if(e)for(const t of e){(r??(r=[])).push(this.getScriptInfoForPath(Cfe(Tfe(t.fileName),t.projectRootPath?this.getNormalizedAbsolutePath(t.projectRootPath):this.currentDirectory,this.toCanonicalFileName)));const e=this.getOrCreateOpenScriptInfo(Tfe(t.fileName),t.content,Jme(t.scriptKind),t.hasMixedContent,t.projectRootPath?Tfe(t.projectRootPath):void 0);(i||(i=[])).push(e)}if(t)for(const e of t){const t=this.getScriptInfo(e.fileName);un.assert(!!t),this.applyChangesToFile(t,e.changes)}if(n)for(const e of n)a=this.closeClientFile(e,!0)||a;d(r,((e,t)=>e||!i[t]||i[t].isDynamic?void 0:this.tryInvokeWildCardDirectories(i[t]))),null==i||i.forEach((e=>{var t;return null==(t=this.assignProjectToOpenedScriptInfo(e).retainProjects)?void 0:t.forEach(((e,t)=>(o??(o=new Map)).set(t,e)))})),a&&this.assignOrphanScriptInfosToInferredProject(),i?(this.cleanupProjectsAndScriptInfos(o,new Set(i.map((e=>e.path))),void 0),i.forEach((e=>this.telemetryOnOpenFile(e))),this.printProjects()):u(n)&&this.printProjects()}applyChangesToFile(e,t){for(const n of t)e.editContent(n.span.start,n.span.start+n.span.length,n.newText)}closeExternalProject(e,t){const n=Tfe(e);if(this.externalProjectToConfiguredProjectMap.get(n))this.externalProjectToConfiguredProjectMap.delete(n);else{const t=this.findExternalProjectByProjectName(e);t&&this.removeProject(t)}t&&(this.cleanupConfiguredProjects(),this.printProjects())}openExternalProjects(e){const t=new Set(this.externalProjects.map((e=>e.getProjectName())));this.externalProjectToConfiguredProjectMap.forEach(((e,n)=>t.add(n)));for(const n of e)this.openExternalProject(n,!1),t.delete(n.projectFileName);t.forEach((e=>this.closeExternalProject(e,!1))),this.cleanupConfiguredProjects(),this.printProjects()}static escapeFilenameForRegex(e){return e.replace(this.filenameEscapeRegexp,"\\$&")}resetSafeList(){this.safelist=Lme}applySafeList(e){const t=e.typeAcquisition;un.assert(!!t,"proj.typeAcquisition should be set by now");const n=this.applySafeListWorker(e,e.rootFiles,t);return(null==n?void 0:n.excludedFiles)??[]}applySafeListWorker(t,n,r){if(!1===r.enable||r.disableFilenameBasedTypeAcquisition)return;const i=r.include||(r.include=[]),o=[],a=n.map((e=>Oo(e.fileName)));for(const t of Object.keys(this.safelist)){const n=this.safelist[t];for(const r of a)if(n.match.test(r)){if(this.logger.info(`Excluding files based on rule ${t} matching file '${r}'`),n.types)for(const e of n.types)i.includes(e)||i.push(e);if(n.exclude)for(const i of n.exclude){const a=r.replace(n.match,((...n)=>i.map((r=>"number"==typeof r?Ze(n[r])?e.escapeFilenameForRegex(n[r]):(this.logger.info(`Incorrect RegExp specification in safelist rule ${t} - not enough groups`),"\\*"):r)).join("")));o.includes(a)||o.push(a)}else{const t=e.escapeFilenameForRegex(r);o.includes(t)||o.push(t)}}}const s=o.map((e=>new RegExp(e,"i")));let c,l;for(let e=0;et.test(a[e]))))_(e);else{if(r.enable){const t=Fo(_t(a[e]));if(ko(t,"js")){const n=Jt(zS(t)),r=this.legacySafelist.get(n);if(void 0!==r){this.logger.info(`Excluded '${a[e]}' because it matched ${n} from the legacy safelist`),_(e),i.includes(r)||i.push(r);continue}}}/^.+[.-]min\.js$/.test(a[e])?_(e):null==c||c.push(n[e])}return l?{rootFiles:c,excludedFiles:l}:void 0;function _(e){l||(un.assert(!c),c=n.slice(0,e),l=[]),l.push(a[e])}}openExternalProject(e,t){const n=this.findExternalProjectByProjectName(e.projectFileName);let r,i=[];for(const t of e.rootFiles){const n=Tfe(t.fileName);if(Lfe(n)){if(0===this.serverMode&&this.host.fileExists(n)){let t=this.findConfiguredProjectByProjectName(n);t||(t=this.createConfiguredProject(n,`Creating configured project in external project: ${e.projectFileName}`),this.getHostPreferences().lazyConfiguredProjectsFromExternalProject||t.updateGraph()),(r??(r=new Set)).add(t),un.assert(!t.isClosed())}}else i.push(t)}if(r)this.externalProjectToConfiguredProjectMap.set(e.projectFileName,r),n&&this.removeProject(n);else{this.externalProjectToConfiguredProjectMap.delete(e.projectFileName);const t=e.typeAcquisition||{};t.include=t.include||[],t.exclude=t.exclude||[],void 0===t.enable&&(t.enable=nme(i.map((e=>e.fileName))));const r=this.applySafeListWorker(e,i,t),o=(null==r?void 0:r.excludedFiles)??[];if(i=(null==r?void 0:r.rootFiles)??i,n){n.excludedFiles=o;const r=Rme(e.options),a=Mme(e.options,n.getCurrentDirectory()),s=this.getFilenameForExceededTotalSizeLimitForNonTsFiles(e.projectFileName,r,i,Vme);s?n.disableLanguageService(s):n.enableLanguageService(),n.setProjectErrors(null==a?void 0:a.errors),this.updateRootAndOptionsOfNonInferredProject(n,i,Vme,r,t,e.options.compileOnSave,null==a?void 0:a.watchOptions),n.updateGraph()}else this.createExternalProject(e.projectFileName,i,e.options,t,o).updateGraph()}t&&(this.cleanupConfiguredProjects(r,new Set([e.projectFileName])),this.printProjects())}hasDeferredExtension(){for(const e of this.hostConfiguration.extraFileExtensions)if(7===e.scriptKind)return!0;return!1}requestEnablePlugin(e,t,n){if(this.host.importPlugin||this.host.require)if(this.logger.info(`Enabling plugin ${t.name} from candidate paths: ${n.join(",")}`),!t.name||Ts(t.name)||/[\\/]\.\.?(?:$|[\\/])/.test(t.name))this.logger.info(`Skipped loading plugin ${t.name||JSON.stringify(t)} because only package name is allowed plugin name`);else{if(this.host.importPlugin){const r=ome.importServicePluginAsync(t,n,this.host,(e=>this.logger.info(e)));this.pendingPluginEnablements??(this.pendingPluginEnablements=new Map);let i=this.pendingPluginEnablements.get(e);return i||this.pendingPluginEnablements.set(e,i=[]),void i.push(r)}this.endEnablePlugin(e,ome.importServicePluginSync(t,n,this.host,(e=>this.logger.info(e))))}else this.logger.info("Plugins were requested but not running in environment that supports 'require'. Nothing will be loaded")}endEnablePlugin(e,{pluginConfigEntry:t,resolvedModule:n,errorLogs:r}){var i;if(n){const r=null==(i=this.currentPluginConfigOverrides)?void 0:i.get(t.name);if(r){const e=t.name;(t=r).name=e}e.enableProxy(n,t)}else d(r,(e=>this.logger.info(e))),this.logger.info(`Couldn't find ${t.name}`)}hasNewPluginEnablementRequests(){return!!this.pendingPluginEnablements}hasPendingPluginEnablements(){return!!this.currentPluginEnablementPromise}async waitForPendingPlugins(){for(;this.currentPluginEnablementPromise;)await this.currentPluginEnablementPromise}enableRequestedPlugins(){this.pendingPluginEnablements&&this.enableRequestedPluginsAsync()}async enableRequestedPluginsAsync(){if(this.currentPluginEnablementPromise&&await this.waitForPendingPlugins(),!this.pendingPluginEnablements)return;const e=Oe(this.pendingPluginEnablements.entries());this.pendingPluginEnablements=void 0,this.currentPluginEnablementPromise=this.enableRequestedPluginsWorker(e),await this.currentPluginEnablementPromise}async enableRequestedPluginsWorker(e){un.assert(void 0===this.currentPluginEnablementPromise);let t=!1;await Promise.all(E(e,(async([e,n])=>{const r=await Promise.all(n);if(e.isClosed()||gme(e))this.logger.info(`Cancelling plugin enabling for ${e.getProjectName()} as it is ${e.isClosed()?"closed":"deferred close"}`);else{t=!0;for(const t of r)this.endEnablePlugin(e,t);this.delayUpdateProjectGraph(e)}}))),this.currentPluginEnablementPromise=void 0,t&&this.sendProjectsUpdatedInBackgroundEvent()}configurePlugin(e){this.forEachEnabledProject((t=>t.onPluginConfigurationChanged(e.pluginName,e.configuration))),this.currentPluginConfigOverrides=this.currentPluginConfigOverrides||new Map,this.currentPluginConfigOverrides.set(e.pluginName,e.configuration)}getPackageJsonsVisibleToFile(e,t,n){const r=this.packageJsonCache,i=n&&this.toPath(n),o=[],a=e=>{switch(r.directoryHasPackageJson(e)){case 3:return r.searchDirectoryAndAncestors(e,t),a(e);case-1:const n=jo(e,"package.json");this.watchPackageJsonFile(n,this.toPath(n),t);const i=r.getInDirectory(e);i&&o.push(i)}if(i&&i===e)return!0};return sM(t,Do(e),a),o}getNearestAncestorDirectoryWithPackageJson(e,t){return sM(t,e,(e=>{switch(this.packageJsonCache.directoryHasPackageJson(e)){case-1:return e;case 0:return;case 3:return this.host.fileExists(jo(e,"package.json"))?e:void 0}}))}watchPackageJsonFile(e,t,n){un.assert(void 0!==n);let r=(this.packageJsonFilesMap??(this.packageJsonFilesMap=new Map)).get(t);if(!r){let n=this.watchFactory.watchFile(e,((e,n)=>{switch(n){case 0:case 1:this.packageJsonCache.addOrUpdate(e,t),this.onPackageJsonChange(r);break;case 2:this.packageJsonCache.delete(t),this.onPackageJsonChange(r),r.projects.clear(),r.close()}}),250,this.hostConfiguration.watchOptions,p$.PackageJson);r={projects:new Set,close:()=>{var e;!r.projects.size&&n&&(n.close(),n=void 0,null==(e=this.packageJsonFilesMap)||e.delete(t),this.packageJsonCache.invalidate(t))}},this.packageJsonFilesMap.set(t,r)}r.projects.add(n),(n.packageJsonWatches??(n.packageJsonWatches=new Set)).add(r)}onPackageJsonChange(e){e.projects.forEach((e=>{var t;return null==(t=e.onPackageJsonChange)?void 0:t.call(e)}))}includePackageJsonAutoImports(){switch(this.hostConfiguration.preferences.includePackageJsonAutoImports){case"on":return 1;case"off":return 0;default:return 2}}getIncompleteCompletionsCache(){return this.incompleteCompletionsCache||(this.incompleteCompletionsCache=function(){let e;return{get:()=>e,set(t){e=t},clear(){e=void 0}}}())}};gge.filenameEscapeRegexp=/[-/\\^$*+?.()|[\]{}]/g;var hge=gge;function yge(e){return void 0!==e.kind}function vge(e){e.print(!1,!1,!1)}function bge(e){let t,n,r;const i={get(e,t,i,o){if(n&&r===a(e,i,o))return n.get(t)},set(n,r,i,a,c,l,_){if(o(n,i,a).set(r,s(c,l,_,void 0,!1)),_)for(const n of l)if(n.isInNodeModules){const r=n.path.substring(0,n.path.indexOf(PR)+PR.length-1),i=e.toPath(r);(null==t?void 0:t.has(i))||(t||(t=new Map)).set(i,e.watchNodeModulesForPackageJsonChanges(r))}},setModulePaths(e,t,n,r,i){const a=o(e,n,r),c=a.get(t);c?c.modulePaths=i:a.set(t,s(void 0,i,void 0,void 0,void 0))},setBlockedByPackageJsonDependencies(e,t,n,r,i,a){const c=o(e,n,r),l=c.get(t);l?(l.isBlockedByPackageJsonDependencies=a,l.packageName=i):c.set(t,s(void 0,void 0,void 0,i,a))},clear(){null==t||t.forEach(tx),null==n||n.clear(),null==t||t.clear(),r=void 0},count:()=>n?n.size:0};return un.isDebugging&&Object.defineProperty(i,"__cache",{get:()=>n}),i;function o(e,t,o){const s=a(e,t,o);return n&&r!==s&&i.clear(),r=s,n||(n=new Map)}function a(e,t,n){return`${e},${t.importModuleSpecifierEnding},${t.importModuleSpecifierPreference},${n.overrideImportMode}`}function s(e,t,n,r,i){return{kind:e,modulePaths:t,moduleSpecifiers:n,packageName:r,isBlockedByPackageJsonDependencies:i}}}function xge(e){const t=new Map,n=new Map;return{addOrUpdate:r,invalidate:function(e){t.delete(e),n.delete(Do(e))},delete:e=>{t.delete(e),n.set(Do(e),!0)},getInDirectory:n=>t.get(e.toPath(jo(n,"package.json")))||void 0,directoryHasPackageJson:t=>i(e.toPath(t)),searchDirectoryAndAncestors:(t,o)=>{sM(o,t,(t=>{const o=e.toPath(t);if(3!==i(o))return!0;const a=jo(t,"package.json");hZ(e,a)?r(a,jo(o,"package.json")):n.set(o,!0)}))}};function r(r,i){const o=un.checkDefined(SZ(r,e.host));t.set(i,o),n.delete(Do(i))}function i(e){return t.has(jo(e,"package.json"))?-1:n.has(e)?0:3}}var kge={isCancellationRequested:()=>!1,setRequest:()=>{},resetRequest:()=>{}};function Sge(e,t){if((dme(e)||fme(e))&&e.isJsOnlyProject()){const n=e.getScriptInfoForNormalizedPath(t);return n&&!n.isJavaScript()}return!1}function Tge(e,t,n){const r=t.getScriptInfoForNormalizedPath(e);return{start:r.positionToLineOffset(n.start),end:r.positionToLineOffset(n.start+n.length),text:UU(n.messageText,"\n"),code:n.code,category:ci(n),reportsUnnecessary:n.reportsUnnecessary,reportsDeprecated:n.reportsDeprecated,source:n.source,relatedInformation:E(n.relatedInformation,Cge)}}function Cge(e){return e.file?{span:{start:wge(Ja(e.file,e.start)),end:wge(Ja(e.file,e.start+e.length)),file:e.file.fileName},message:UU(e.messageText,"\n"),category:ci(e),code:e.code}:{message:UU(e.messageText,"\n"),category:ci(e),code:e.code}}function wge(e){return{line:e.line+1,offset:e.character+1}}function Nge(e,t){const n=e.file&&wge(Ja(e.file,e.start)),r=e.file&&wge(Ja(e.file,e.start+e.length)),i=UU(e.messageText,"\n"),{code:o,source:a}=e,s={start:n,end:r,text:i,code:o,category:ci(e),reportsUnnecessary:e.reportsUnnecessary,reportsDeprecated:e.reportsDeprecated,source:a,relatedInformation:E(e.relatedInformation,Cge)};return t?{...s,fileName:e.file&&e.file.fileName}:s}var Dge=Rfe;function Fge(e,t,n,r){const i=t.hasLevel(3),o=JSON.stringify(e);return i&&t.info(`${e.type}:${VK(e)}`),`Content-Length: ${1+n(o,"utf8")}\r\n\r\n${o}${r}`}var Ege=class{constructor(e){this.operationHost=e}startNew(e){this.complete(),this.requestId=this.operationHost.getCurrentRequestId(),this.executeAction(e)}complete(){void 0!==this.requestId&&(this.operationHost.sendRequestCompletedEvent(this.requestId,this.performanceData),this.requestId=void 0),this.setTimerHandle(void 0),this.setImmediateId(void 0),this.performanceData=void 0}immediate(e,t){const n=this.requestId;un.assert(n===this.operationHost.getCurrentRequestId(),"immediate: incorrect request id"),this.setImmediateId(this.operationHost.getServerHost().setImmediate((()=>{this.immediateId=void 0,this.operationHost.executeWithRequestId(n,(()=>this.executeAction(t)),this.performanceData)}),e))}delay(e,t,n){const r=this.requestId;un.assert(r===this.operationHost.getCurrentRequestId(),"delay: incorrect request id"),this.setTimerHandle(this.operationHost.getServerHost().setTimeout((()=>{this.timerHandle=void 0,this.operationHost.executeWithRequestId(r,(()=>this.executeAction(n)),this.performanceData)}),t,e))}executeAction(e){var t,n,r,i,o,a;let s=!1;try{this.operationHost.isCancellationRequested()?(s=!0,null==(t=Hn)||t.instant(Hn.Phase.Session,"stepCanceled",{seq:this.requestId,early:!0})):(null==(n=Hn)||n.push(Hn.Phase.Session,"stepAction",{seq:this.requestId}),e(this),null==(r=Hn)||r.pop())}catch(e){null==(i=Hn)||i.popAll(),s=!0,e instanceof Cr?null==(o=Hn)||o.instant(Hn.Phase.Session,"stepCanceled",{seq:this.requestId}):(null==(a=Hn)||a.instant(Hn.Phase.Session,"stepError",{seq:this.requestId,message:e.message}),this.operationHost.logError(e,`delayed processing of request ${this.requestId}`))}this.performanceData=this.operationHost.getPerformanceData(),!s&&this.hasPendingWork()||this.complete()}setTimerHandle(e){void 0!==this.timerHandle&&this.operationHost.getServerHost().clearTimeout(this.timerHandle),this.timerHandle=e}setImmediateId(e){void 0!==this.immediateId&&this.operationHost.getServerHost().clearImmediate(this.immediateId),this.immediateId=e}hasPendingWork(){return!!this.timerHandle||!!this.immediateId}};function Pge(e,t){return{seq:0,type:"event",event:e,body:t}}function Age(e){return Xe((({textSpan:e})=>e.start+100003*e.length),ZQ(e))}function Ige(e,t,n){const r=e.getLanguageService().getDefinitionAtPosition(t.fileName,t.pos,!1,n),i=r&&fe(r);return i&&!i.isLocal?{fileName:i.fileName,pos:i.textSpan.start}:void 0}function Oge(e,t,n){for(const r of Qe(e)?e:e.projects)n(r,t);!Qe(e)&&e.symLinkedProjects&&e.symLinkedProjects.forEach(((e,t)=>{for(const r of e)n(r,t)}))}function Lge(e,t,n,r,i,o,a){const s=new Map,c=Ge();c.enqueue({project:t,location:n}),Oge(e,n.fileName,((e,t)=>{const r={fileName:t,pos:n.pos};c.enqueue({project:e,location:r})}));const l=t.projectService,_=t.getCancellationToken(),u=dt((()=>t.isSourceOfProjectReferenceRedirect(r.fileName)?r:t.getLanguageService().getSourceMapper().tryGetGeneratedPosition(r))),d=dt((()=>t.isSourceOfProjectReferenceRedirect(r.fileName)?r:t.getLanguageService().getSourceMapper().tryGetSourcePosition(r))),p=new Set;e:for(;!c.isEmpty();){for(;!c.isEmpty();){if(_.isCancellationRequested())break e;const{project:e,location:t}=c.dequeue();if(s.has(e))continue;if(Mge(e,t))continue;if(sge(e),!e.containsFile(Tfe(t.fileName)))continue;const n=f(e,t);s.set(e,n??xfe),p.add(Bge(e))}r&&(l.loadAncestorProjectTree(p),l.forEachEnabledProject((e=>{if(_.isCancellationRequested())return;if(s.has(e))return;const t=i(r,e,u,d);t&&c.enqueue({project:e,location:t})})))}return 1===s.size?he(s.values()):s;function f(e,t){const n=o(e,t);if(!n||!a)return n;for(const t of n)a(t,(t=>{const n=l.getOriginalLocationEnsuringConfiguredProject(e,t);if(!n)return;const r=l.getScriptInfo(n.fileName);for(const e of r.containingProjects)e.isOrphan()||s.has(e)||c.enqueue({project:e,location:n});const i=l.getSymlinkedProjects(r);i&&i.forEach(((e,t)=>{for(const r of e)r.isOrphan()||s.has(r)||c.enqueue({project:r,location:{fileName:t,pos:n.pos}})}))}));return n}}function jge(e,t){if(t.containsFile(Tfe(e.fileName))&&!Mge(t,e))return e}function Rge(e,t,n,r){const i=jge(e,t);if(i)return i;const o=n();if(o&&t.containsFile(Tfe(o.fileName)))return o;const a=r();return a&&t.containsFile(Tfe(a.fileName))?a:void 0}function Mge(e,t){if(!t)return!1;const n=e.getLanguageService().getProgram();if(!n)return!1;const r=n.getSourceFile(t.fileName);return!!r&&r.resolvedPath!==r.path&&r.resolvedPath!==e.toPath(t.fileName)}function Bge(e){return pme(e)?e.canonicalConfigFilePath:e.getProjectName()}function Jge({fileName:e,textSpan:t}){return{fileName:e,pos:t.start}}function zge(e,t){return nY(e,t.getSourceMapper(),(e=>t.projectService.fileExists(e)))}function qge(e,t){return rY(e,t.getSourceMapper(),(e=>t.projectService.fileExists(e)))}function Uge(e,t){return iY(e,t.getSourceMapper(),(e=>t.projectService.fileExists(e)))}var Vge=["openExternalProject","openExternalProjects","closeExternalProject","synchronizeProjectList","emit-output","compileOnSaveAffectedFileList","compileOnSaveEmitFile","compilerOptionsDiagnostics-full","encodedSemanticClassifications-full","semanticDiagnosticsSync","suggestionDiagnosticsSync","geterrForProject","reload","reloadProjects","getCodeFixes","getCodeFixes-full","getCombinedCodeFix","getCombinedCodeFix-full","applyCodeActionCommand","getSupportedCodeFixes","getApplicableRefactors","getMoveToRefactoringFileSuggestions","getEditsForRefactor","getEditsForRefactor-full","organizeImports","organizeImports-full","getEditsForFileRename","getEditsForFileRename-full","prepareCallHierarchy","provideCallHierarchyIncomingCalls","provideCallHierarchyOutgoingCalls","getPasteEdits","copilotRelated"],Wge=[...Vge,"definition","definition-full","definitionAndBoundSpan","definitionAndBoundSpan-full","typeDefinition","implementation","implementation-full","references","references-full","rename","renameLocations-full","rename-full","quickinfo","quickinfo-full","completionInfo","completions","completions-full","completionEntryDetails","completionEntryDetails-full","signatureHelp","signatureHelp-full","navto","navto-full","documentHighlights","documentHighlights-full","preparePasteEdits"],$ge=class e{constructor(e){this.changeSeq=0,this.regionDiagLineCountThreshold=500,this.handlers=new Map(Object.entries({status:()=>{const e={version:s};return this.requiredResponse(e)},openExternalProject:e=>(this.projectService.openExternalProject(e.arguments,!0),this.requiredResponse(!0)),openExternalProjects:e=>(this.projectService.openExternalProjects(e.arguments.projects),this.requiredResponse(!0)),closeExternalProject:e=>(this.projectService.closeExternalProject(e.arguments.projectFileName,!0),this.requiredResponse(!0)),synchronizeProjectList:e=>{const t=this.projectService.synchronizeProjectList(e.arguments.knownProjects,e.arguments.includeProjectReferenceRedirectInfo);if(!t.some((e=>e.projectErrors&&0!==e.projectErrors.length)))return this.requiredResponse(t);const n=E(t,(e=>e.projectErrors&&0!==e.projectErrors.length?{info:e.info,changes:e.changes,files:e.files,projectErrors:this.convertToDiagnosticsWithLinePosition(e.projectErrors,void 0)}:e));return this.requiredResponse(n)},updateOpen:e=>(this.changeSeq++,this.projectService.applyChangesInOpenFiles(e.arguments.openFiles&&P(e.arguments.openFiles,(e=>({fileName:e.file,content:e.fileContent,scriptKind:e.scriptKindName,projectRootPath:e.projectRootPath}))),e.arguments.changedFiles&&P(e.arguments.changedFiles,(e=>({fileName:e.fileName,changes:J(ue(e.textChanges),(t=>{const n=un.checkDefined(this.projectService.getScriptInfo(e.fileName)),r=n.lineOffsetToPosition(t.start.line,t.start.offset),i=n.lineOffsetToPosition(t.end.line,t.end.offset);return r>=0?{span:{start:r,length:i-r},newText:t.newText}:void 0}))}))),e.arguments.closedFiles),this.requiredResponse(!0)),applyChangedToOpenFiles:e=>(this.changeSeq++,this.projectService.applyChangesInOpenFiles(e.arguments.openFiles,e.arguments.changedFiles&&P(e.arguments.changedFiles,(e=>({fileName:e.fileName,changes:ue(e.changes)}))),e.arguments.closedFiles),this.requiredResponse(!0)),exit:()=>(this.exit(),this.notRequired(void 0)),definition:e=>this.requiredResponse(this.getDefinition(e.arguments,!0)),"definition-full":e=>this.requiredResponse(this.getDefinition(e.arguments,!1)),definitionAndBoundSpan:e=>this.requiredResponse(this.getDefinitionAndBoundSpan(e.arguments,!0)),"definitionAndBoundSpan-full":e=>this.requiredResponse(this.getDefinitionAndBoundSpan(e.arguments,!1)),findSourceDefinition:e=>this.requiredResponse(this.findSourceDefinition(e.arguments)),"emit-output":e=>this.requiredResponse(this.getEmitOutput(e.arguments)),typeDefinition:e=>this.requiredResponse(this.getTypeDefinition(e.arguments)),implementation:e=>this.requiredResponse(this.getImplementation(e.arguments,!0)),"implementation-full":e=>this.requiredResponse(this.getImplementation(e.arguments,!1)),references:e=>this.requiredResponse(this.getReferences(e.arguments,!0)),"references-full":e=>this.requiredResponse(this.getReferences(e.arguments,!1)),rename:e=>this.requiredResponse(this.getRenameLocations(e.arguments,!0)),"renameLocations-full":e=>this.requiredResponse(this.getRenameLocations(e.arguments,!1)),"rename-full":e=>this.requiredResponse(this.getRenameInfo(e.arguments)),open:e=>(this.openClientFile(Tfe(e.arguments.file),e.arguments.fileContent,zme(e.arguments.scriptKindName),e.arguments.projectRootPath?Tfe(e.arguments.projectRootPath):void 0),this.notRequired(e)),quickinfo:e=>this.requiredResponse(this.getQuickInfoWorker(e.arguments,!0)),"quickinfo-full":e=>this.requiredResponse(this.getQuickInfoWorker(e.arguments,!1)),getOutliningSpans:e=>this.requiredResponse(this.getOutliningSpans(e.arguments,!0)),outliningSpans:e=>this.requiredResponse(this.getOutliningSpans(e.arguments,!1)),todoComments:e=>this.requiredResponse(this.getTodoComments(e.arguments)),indentation:e=>this.requiredResponse(this.getIndentation(e.arguments)),nameOrDottedNameSpan:e=>this.requiredResponse(this.getNameOrDottedNameSpan(e.arguments)),breakpointStatement:e=>this.requiredResponse(this.getBreakpointStatement(e.arguments)),braceCompletion:e=>this.requiredResponse(this.isValidBraceCompletion(e.arguments)),docCommentTemplate:e=>this.requiredResponse(this.getDocCommentTemplate(e.arguments)),getSpanOfEnclosingComment:e=>this.requiredResponse(this.getSpanOfEnclosingComment(e.arguments)),fileReferences:e=>this.requiredResponse(this.getFileReferences(e.arguments,!0)),"fileReferences-full":e=>this.requiredResponse(this.getFileReferences(e.arguments,!1)),format:e=>this.requiredResponse(this.getFormattingEditsForRange(e.arguments)),formatonkey:e=>this.requiredResponse(this.getFormattingEditsAfterKeystroke(e.arguments)),"format-full":e=>this.requiredResponse(this.getFormattingEditsForDocumentFull(e.arguments)),"formatonkey-full":e=>this.requiredResponse(this.getFormattingEditsAfterKeystrokeFull(e.arguments)),"formatRange-full":e=>this.requiredResponse(this.getFormattingEditsForRangeFull(e.arguments)),completionInfo:e=>this.requiredResponse(this.getCompletions(e.arguments,"completionInfo")),completions:e=>this.requiredResponse(this.getCompletions(e.arguments,"completions")),"completions-full":e=>this.requiredResponse(this.getCompletions(e.arguments,"completions-full")),completionEntryDetails:e=>this.requiredResponse(this.getCompletionEntryDetails(e.arguments,!1)),"completionEntryDetails-full":e=>this.requiredResponse(this.getCompletionEntryDetails(e.arguments,!0)),compileOnSaveAffectedFileList:e=>this.requiredResponse(this.getCompileOnSaveAffectedFileList(e.arguments)),compileOnSaveEmitFile:e=>this.requiredResponse(this.emitFile(e.arguments)),signatureHelp:e=>this.requiredResponse(this.getSignatureHelpItems(e.arguments,!0)),"signatureHelp-full":e=>this.requiredResponse(this.getSignatureHelpItems(e.arguments,!1)),"compilerOptionsDiagnostics-full":e=>this.requiredResponse(this.getCompilerOptionsDiagnostics(e.arguments)),"encodedSyntacticClassifications-full":e=>this.requiredResponse(this.getEncodedSyntacticClassifications(e.arguments)),"encodedSemanticClassifications-full":e=>this.requiredResponse(this.getEncodedSemanticClassifications(e.arguments)),cleanup:()=>(this.cleanup(),this.requiredResponse(!0)),semanticDiagnosticsSync:e=>this.requiredResponse(this.getSemanticDiagnosticsSync(e.arguments)),syntacticDiagnosticsSync:e=>this.requiredResponse(this.getSyntacticDiagnosticsSync(e.arguments)),suggestionDiagnosticsSync:e=>this.requiredResponse(this.getSuggestionDiagnosticsSync(e.arguments)),geterr:e=>(this.errorCheck.startNew((t=>this.getDiagnostics(t,e.arguments.delay,e.arguments.files))),this.notRequired(void 0)),geterrForProject:e=>(this.errorCheck.startNew((t=>this.getDiagnosticsForProject(t,e.arguments.delay,e.arguments.file))),this.notRequired(void 0)),change:e=>(this.change(e.arguments),this.notRequired(e)),configure:e=>(this.projectService.setHostConfiguration(e.arguments),this.notRequired(e)),reload:e=>(this.reload(e.arguments),this.requiredResponse({reloadFinished:!0})),saveto:e=>{const t=e.arguments;return this.saveToTmp(t.file,t.tmpfile),this.notRequired(e)},close:e=>{const t=e.arguments;return this.closeClientFile(t.file),this.notRequired(e)},navto:e=>this.requiredResponse(this.getNavigateToItems(e.arguments,!0)),"navto-full":e=>this.requiredResponse(this.getNavigateToItems(e.arguments,!1)),brace:e=>this.requiredResponse(this.getBraceMatching(e.arguments,!0)),"brace-full":e=>this.requiredResponse(this.getBraceMatching(e.arguments,!1)),navbar:e=>this.requiredResponse(this.getNavigationBarItems(e.arguments,!0)),"navbar-full":e=>this.requiredResponse(this.getNavigationBarItems(e.arguments,!1)),navtree:e=>this.requiredResponse(this.getNavigationTree(e.arguments,!0)),"navtree-full":e=>this.requiredResponse(this.getNavigationTree(e.arguments,!1)),documentHighlights:e=>this.requiredResponse(this.getDocumentHighlights(e.arguments,!0)),"documentHighlights-full":e=>this.requiredResponse(this.getDocumentHighlights(e.arguments,!1)),compilerOptionsForInferredProjects:e=>(this.setCompilerOptionsForInferredProjects(e.arguments),this.requiredResponse(!0)),projectInfo:e=>this.requiredResponse(this.getProjectInfo(e.arguments)),reloadProjects:e=>(this.projectService.reloadProjects(),this.notRequired(e)),jsxClosingTag:e=>this.requiredResponse(this.getJsxClosingTag(e.arguments)),linkedEditingRange:e=>this.requiredResponse(this.getLinkedEditingRange(e.arguments)),getCodeFixes:e=>this.requiredResponse(this.getCodeFixes(e.arguments,!0)),"getCodeFixes-full":e=>this.requiredResponse(this.getCodeFixes(e.arguments,!1)),getCombinedCodeFix:e=>this.requiredResponse(this.getCombinedCodeFix(e.arguments,!0)),"getCombinedCodeFix-full":e=>this.requiredResponse(this.getCombinedCodeFix(e.arguments,!1)),applyCodeActionCommand:e=>this.requiredResponse(this.applyCodeActionCommand(e.arguments)),getSupportedCodeFixes:e=>this.requiredResponse(this.getSupportedCodeFixes(e.arguments)),getApplicableRefactors:e=>this.requiredResponse(this.getApplicableRefactors(e.arguments)),getEditsForRefactor:e=>this.requiredResponse(this.getEditsForRefactor(e.arguments,!0)),getMoveToRefactoringFileSuggestions:e=>this.requiredResponse(this.getMoveToRefactoringFileSuggestions(e.arguments)),preparePasteEdits:e=>this.requiredResponse(this.preparePasteEdits(e.arguments)),getPasteEdits:e=>this.requiredResponse(this.getPasteEdits(e.arguments)),"getEditsForRefactor-full":e=>this.requiredResponse(this.getEditsForRefactor(e.arguments,!1)),organizeImports:e=>this.requiredResponse(this.organizeImports(e.arguments,!0)),"organizeImports-full":e=>this.requiredResponse(this.organizeImports(e.arguments,!1)),getEditsForFileRename:e=>this.requiredResponse(this.getEditsForFileRename(e.arguments,!0)),"getEditsForFileRename-full":e=>this.requiredResponse(this.getEditsForFileRename(e.arguments,!1)),configurePlugin:e=>(this.configurePlugin(e.arguments),this.notRequired(e)),selectionRange:e=>this.requiredResponse(this.getSmartSelectionRange(e.arguments,!0)),"selectionRange-full":e=>this.requiredResponse(this.getSmartSelectionRange(e.arguments,!1)),prepareCallHierarchy:e=>this.requiredResponse(this.prepareCallHierarchy(e.arguments)),provideCallHierarchyIncomingCalls:e=>this.requiredResponse(this.provideCallHierarchyIncomingCalls(e.arguments)),provideCallHierarchyOutgoingCalls:e=>this.requiredResponse(this.provideCallHierarchyOutgoingCalls(e.arguments)),toggleLineComment:e=>this.requiredResponse(this.toggleLineComment(e.arguments,!0)),"toggleLineComment-full":e=>this.requiredResponse(this.toggleLineComment(e.arguments,!1)),toggleMultilineComment:e=>this.requiredResponse(this.toggleMultilineComment(e.arguments,!0)),"toggleMultilineComment-full":e=>this.requiredResponse(this.toggleMultilineComment(e.arguments,!1)),commentSelection:e=>this.requiredResponse(this.commentSelection(e.arguments,!0)),"commentSelection-full":e=>this.requiredResponse(this.commentSelection(e.arguments,!1)),uncommentSelection:e=>this.requiredResponse(this.uncommentSelection(e.arguments,!0)),"uncommentSelection-full":e=>this.requiredResponse(this.uncommentSelection(e.arguments,!1)),provideInlayHints:e=>this.requiredResponse(this.provideInlayHints(e.arguments)),mapCode:e=>this.requiredResponse(this.mapCode(e.arguments)),copilotRelated:()=>this.requiredResponse(this.getCopilotRelatedInfo())})),this.host=e.host,this.cancellationToken=e.cancellationToken,this.typingsInstaller=e.typingsInstaller||$me,this.byteLength=e.byteLength,this.hrtime=e.hrtime,this.logger=e.logger,this.canUseEvents=e.canUseEvents,this.suppressDiagnosticEvents=e.suppressDiagnosticEvents,this.noGetErrOnBackgroundUpdate=e.noGetErrOnBackgroundUpdate;const{throttleWaitMilliseconds:t}=e;this.eventHandler=this.canUseEvents?e.eventHandler||(e=>this.defaultEventHandler(e)):void 0;const n={executeWithRequestId:(e,t,n)=>this.executeWithRequestId(e,t,n),getCurrentRequestId:()=>this.currentRequestId,getPerformanceData:()=>this.performanceData,getServerHost:()=>this.host,logError:(e,t)=>this.logError(e,t),sendRequestCompletedEvent:(e,t)=>this.sendRequestCompletedEvent(e,t),isCancellationRequested:()=>this.cancellationToken.isCancellationRequested()};this.errorCheck=new Ege(n);const r={host:this.host,logger:this.logger,cancellationToken:this.cancellationToken,useSingleInferredProject:e.useSingleInferredProject,useInferredProjectPerProjectRoot:e.useInferredProjectPerProjectRoot,typingsInstaller:this.typingsInstaller,throttleWaitMilliseconds:t,eventHandler:this.eventHandler,suppressDiagnosticEvents:this.suppressDiagnosticEvents,globalPlugins:e.globalPlugins,pluginProbeLocations:e.pluginProbeLocations,allowLocalPluginLoads:e.allowLocalPluginLoads,typesMapLocation:e.typesMapLocation,serverMode:e.serverMode,session:this,canUseWatchEvents:e.canUseWatchEvents,incrementalVerifier:e.incrementalVerifier};switch(this.projectService=new hge(r),this.projectService.setPerformanceEventHandler(this.performanceEventHandler.bind(this)),this.gcTimer=new Ofe(this.host,7e3,this.logger),this.projectService.serverMode){case 0:break;case 1:Vge.forEach((e=>this.handlers.set(e,(e=>{throw new Error(`Request: ${e.command} not allowed in LanguageServiceMode.PartialSemantic`)}))));break;case 2:Wge.forEach((e=>this.handlers.set(e,(e=>{throw new Error(`Request: ${e.command} not allowed in LanguageServiceMode.Syntactic`)}))));break;default:un.assertNever(this.projectService.serverMode)}}sendRequestCompletedEvent(e,t){this.event({request_seq:e,performanceData:t&&Hge(t)},"requestCompleted")}addPerformanceData(e,t){this.performanceData||(this.performanceData={}),this.performanceData[e]=(this.performanceData[e]??0)+t}addDiagnosticsPerformanceData(e,t,n){var r,i;this.performanceData||(this.performanceData={});let o=null==(r=this.performanceData.diagnosticsDuration)?void 0:r.get(e);o||((i=this.performanceData).diagnosticsDuration??(i.diagnosticsDuration=new Map)).set(e,o={}),o[t]=n}performanceEventHandler(e){switch(e.kind){case"UpdateGraph":this.addPerformanceData("updateGraphDurationMs",e.durationMs);break;case"CreatePackageJsonAutoImportProvider":this.addPerformanceData("createAutoImportProviderProgramDurationMs",e.durationMs)}}defaultEventHandler(e){switch(e.eventName){case vme:this.projectsUpdatedInBackgroundEvent(e.data.openFiles);break;case bme:this.event({projectName:e.data.project.getProjectName(),reason:e.data.reason},e.eventName);break;case xme:this.event({projectName:e.data.project.getProjectName()},e.eventName);break;case kme:case Nme:case Dme:case Fme:this.event(e.data,e.eventName);break;case Sme:this.event({triggerFile:e.data.triggerFile,configFile:e.data.configFileName,diagnostics:E(e.data.diagnostics,(e=>Nge(e,!0)))},e.eventName);break;case Tme:this.event({projectName:e.data.project.getProjectName(),languageServiceEnabled:e.data.languageServiceEnabled},e.eventName);break;case Cme:{const t="telemetry";this.event({telemetryEventName:e.eventName,payload:e.data},t);break}}}projectsUpdatedInBackgroundEvent(e){this.projectService.logger.info(`got projects updated in background ${e}`),e.length&&(this.suppressDiagnosticEvents||this.noGetErrOnBackgroundUpdate||(this.projectService.logger.info(`Queueing diagnostics update for ${e}`),this.errorCheck.startNew((t=>this.updateErrorCheck(t,e,100,!0)))),this.event({openFiles:e},vme))}logError(e,t){this.logErrorWorker(e,t)}logErrorWorker(e,t,n){let r="Exception on executing command "+t;if(e.message&&(r+=":\n"+UK(e.message),e.stack&&(r+="\n"+UK(e.stack))),this.logger.hasLevel(3)){if(n)try{const{file:e,project:t}=this.getFileAndProject(n),i=t.getScriptInfoForNormalizedPath(e);if(i){const e=CQ(i.getSnapshot());r+=`\n\nFile text of ${n.file}:${UK(e)}\n`}}catch{}if(e.ProgramFiles){r+=`\n\nProgram files: ${JSON.stringify(e.ProgramFiles)}\n`,r+="\n\nProjects::\n";let t=0;const n=e=>{r+=`\nProject '${e.projectName}' (${Yfe[e.projectKind]}) ${t}\n`,r+=e.filesToString(!0),r+="\n-----------------------------------------------\n",t++};this.projectService.externalProjects.forEach(n),this.projectService.configuredProjects.forEach(n),this.projectService.inferredProjects.forEach(n)}}this.logger.msg(r,"Err")}send(e){"event"!==e.type||this.canUseEvents?this.writeMessage(e):this.logger.hasLevel(3)&&this.logger.info(`Session does not support events: ignored event: ${VK(e)}`)}writeMessage(e){const t=Fge(e,this.logger,this.byteLength,this.host.newLine);this.host.write(t)}event(e,t){this.send(Pge(t,e))}doOutput(e,t,n,r,i,o){const a={seq:0,type:"response",command:t,request_seq:n,success:r,performanceData:i&&Hge(i)};if(r){let t;if(Qe(e))a.body=e,t=e.metadata,delete e.metadata;else if("object"==typeof e)if(e.metadata){const{metadata:n,...r}=e;a.body=r,t=n}else a.body=e;else a.body=e;t&&(a.metadata=t)}else un.assert(void 0===e);o&&(a.message=o),this.send(a)}semanticCheck(e,t){var n,r;const i=Un();null==(n=Hn)||n.push(Hn.Phase.Session,"semanticCheck",{file:e,configFilePath:t.canonicalConfigFilePath});const o=Sge(t,e)?xfe:t.getLanguageService().getSemanticDiagnostics(e).filter((e=>!!e.file));this.sendDiagnosticsEvent(e,t,o,"semanticDiag",i),null==(r=Hn)||r.pop()}syntacticCheck(e,t){var n,r;const i=Un();null==(n=Hn)||n.push(Hn.Phase.Session,"syntacticCheck",{file:e,configFilePath:t.canonicalConfigFilePath}),this.sendDiagnosticsEvent(e,t,t.getLanguageService().getSyntacticDiagnostics(e),"syntaxDiag",i),null==(r=Hn)||r.pop()}suggestionCheck(e,t){var n,r;const i=Un();null==(n=Hn)||n.push(Hn.Phase.Session,"suggestionCheck",{file:e,configFilePath:t.canonicalConfigFilePath}),this.sendDiagnosticsEvent(e,t,t.getLanguageService().getSuggestionDiagnostics(e),"suggestionDiag",i),null==(r=Hn)||r.pop()}regionSemanticCheck(e,t,n){var r,i,o;const a=Un();let s;null==(r=Hn)||r.push(Hn.Phase.Session,"regionSemanticCheck",{file:e,configFilePath:t.canonicalConfigFilePath}),this.shouldDoRegionCheck(e)&&(s=t.getLanguageService().getRegionSemanticDiagnostics(e,n))?(this.sendDiagnosticsEvent(e,t,s.diagnostics,"regionSemanticDiag",a,s.spans),null==(o=Hn)||o.pop()):null==(i=Hn)||i.pop()}shouldDoRegionCheck(e){var t;const n=null==(t=this.projectService.getScriptInfoForNormalizedPath(e))?void 0:t.textStorage.getLineInfo().getLineCount();return!!(n&&n>=this.regionDiagLineCountThreshold)}sendDiagnosticsEvent(e,t,n,r,i,o){try{const a=un.checkDefined(t.getScriptInfo(e)),s=Un()-i,c={file:e,diagnostics:n.map((n=>Tge(e,t,n))),spans:null==o?void 0:o.map((e=>Kge(e,a)))};this.event(c,r),this.addDiagnosticsPerformanceData(e,r,s)}catch(e){this.logError(e,r)}}updateErrorCheck(e,t,n,r=!0){if(0===t.length)return;un.assert(!this.suppressDiagnosticEvents);const i=this.changeSeq,o=Math.min(n,200);let a=0;const s=()=>{if(a++,t.length>a)return e.delay("checkOne",o,l)},c=(t,n)=>{if(this.semanticCheck(t,n),this.changeSeq===i)return this.getPreferences(t).disableSuggestions?s():void e.immediate("suggestionCheck",(()=>{this.suggestionCheck(t,n),s()}))},l=()=>{if(this.changeSeq!==i)return;let n,o=t[a];if(Ze(o)?o=this.toPendingErrorCheck(o):"ranges"in o&&(n=o.ranges,o=this.toPendingErrorCheck(o.file)),!o)return s();const{fileName:l,project:_}=o;return sge(_),_.containsFile(l,r)&&(this.syntacticCheck(l,_),this.changeSeq===i)?0!==_.projectService.serverMode?s():n?e.immediate("regionSemanticCheck",(()=>{const t=this.projectService.getScriptInfoForNormalizedPath(l);t&&this.regionSemanticCheck(l,_,n.map((e=>this.getRange({file:l,...e},t)))),this.changeSeq===i&&e.immediate("semanticCheck",(()=>c(l,_)))})):void e.immediate("semanticCheck",(()=>c(l,_))):void 0};t.length>a&&this.changeSeq===i&&e.delay("checkOne",n,l)}cleanProjects(e,t){if(t){this.logger.info(`cleaning ${e}`);for(const e of t)e.getLanguageService(!1).cleanupSemanticCache(),e.cleanupProgram()}}cleanup(){this.cleanProjects("inferred projects",this.projectService.inferredProjects),this.cleanProjects("configured projects",Oe(this.projectService.configuredProjects.values())),this.cleanProjects("external projects",this.projectService.externalProjects),this.host.gc&&(this.logger.info("host.gc()"),this.host.gc())}getEncodedSyntacticClassifications(e){const{file:t,languageService:n}=this.getFileAndLanguageServiceForSyntacticOperation(e);return n.getEncodedSyntacticClassifications(t,e)}getEncodedSemanticClassifications(e){const{file:t,project:n}=this.getFileAndProject(e),r="2020"===e.format?"2020":"original";return n.getLanguageService().getEncodedSemanticClassifications(t,e,r)}getProject(e){return void 0===e?void 0:this.projectService.findProject(e)}getConfigFileAndProject(e){const t=this.getProject(e.projectFileName),n=Tfe(e.file);return{configFile:t&&t.hasConfigFile(n)?n:void 0,project:t}}getConfigFileDiagnostics(e,t,n){const r=N(K(t.getAllProjectErrors(),t.getLanguageService().getCompilerOptionsDiagnostics()),(t=>!!t.file&&t.file.fileName===e));return n?this.convertToDiagnosticsWithLinePositionFromDiagnosticFile(r):E(r,(e=>Nge(e,!1)))}convertToDiagnosticsWithLinePositionFromDiagnosticFile(e){return e.map((e=>({message:UU(e.messageText,this.host.newLine),start:e.start,length:e.length,category:ci(e),code:e.code,source:e.source,startLocation:e.file&&wge(Ja(e.file,e.start)),endLocation:e.file&&wge(Ja(e.file,e.start+e.length)),reportsUnnecessary:e.reportsUnnecessary,reportsDeprecated:e.reportsDeprecated,relatedInformation:E(e.relatedInformation,Cge)})))}getCompilerOptionsDiagnostics(e){const t=this.getProject(e.projectFileName);return this.convertToDiagnosticsWithLinePosition(N(t.getLanguageService().getCompilerOptionsDiagnostics(),(e=>!e.file)),void 0)}convertToDiagnosticsWithLinePosition(e,t){return e.map((e=>({message:UU(e.messageText,this.host.newLine),start:e.start,length:e.length,category:ci(e),code:e.code,source:e.source,startLocation:t&&t.positionToLineOffset(e.start),endLocation:t&&t.positionToLineOffset(e.start+e.length),reportsUnnecessary:e.reportsUnnecessary,reportsDeprecated:e.reportsDeprecated,relatedInformation:E(e.relatedInformation,Cge)})))}getDiagnosticsWorker(e,t,n,r){const{project:i,file:o}=this.getFileAndProject(e);if(t&&Sge(i,o))return xfe;const a=i.getScriptInfoForNormalizedPath(o),s=n(i,o);return r?this.convertToDiagnosticsWithLinePosition(s,a):s.map((e=>Tge(o,i,e)))}getDefinition(t,n){const{file:r,project:i}=this.getFileAndProject(t),o=this.getPositionInFile(t,r),a=this.mapDefinitionInfoLocations(i.getLanguageService().getDefinitionAtPosition(r,o)||xfe,i);return n?this.mapDefinitionInfo(a,i):a.map(e.mapToOriginalLocation)}mapDefinitionInfoLocations(e,t){return e.map((e=>{const n=qge(e,t);return n?{...n,containerKind:e.containerKind,containerName:e.containerName,kind:e.kind,name:e.name,failedAliasResolution:e.failedAliasResolution,...e.unverified&&{unverified:e.unverified}}:e}))}getDefinitionAndBoundSpan(t,n){const{file:r,project:i}=this.getFileAndProject(t),o=this.getPositionInFile(t,r),a=un.checkDefined(i.getScriptInfo(r)),s=i.getLanguageService().getDefinitionAndBoundSpan(r,o);if(!s||!s.definitions)return{definitions:xfe,textSpan:void 0};const c=this.mapDefinitionInfoLocations(s.definitions,i),{textSpan:l}=s;return n?{definitions:this.mapDefinitionInfo(c,i),textSpan:Kge(l,a)}:{definitions:c.map(e.mapToOriginalLocation),textSpan:l}}findSourceDefinition(e){var t;const{file:n,project:r}=this.getFileAndProject(e),i=this.getPositionInFile(e,n),o=r.getLanguageService().getDefinitionAtPosition(n,i);let a=this.mapDefinitionInfoLocations(o||xfe,r).slice();if(0===this.projectService.serverMode&&(!$(a,(e=>Tfe(e.fileName)!==n&&!e.isAmbient))||$(a,(e=>!!e.failedAliasResolution)))){const e=Xe((e=>e.textSpan.start),ZQ(this.host.useCaseSensitiveFileNames));null==a||a.forEach((t=>e.add(t)));const o=r.getNoDtsResolutionProject(n),_=o.getLanguageService(),u=null==(t=_.getDefinitionAtPosition(n,i,!0,!1))?void 0:t.filter((e=>Tfe(e.fileName)!==n));if($(u))for(const t of u){if(t.unverified){const n=c(t,r.getLanguageService().getProgram(),_.getProgram());if($(n)){for(const t of n)e.add(t);continue}}e.add(t)}else{const t=a.filter((e=>Tfe(e.fileName)!==n&&e.isAmbient));for(const a of $(t)?t:function(){const e=r.getLanguageService(),t=FX(e.getProgram().getSourceFile(n),i);return(Lu(t)||zN(t))&&kx(t.parent)&&wx(t,(r=>{var i;if(r===t)return;const o=null==(i=e.getDefinitionAtPosition(n,r.getStart(),!0,!1))?void 0:i.filter((e=>Tfe(e.fileName)!==n&&e.isAmbient)).map((e=>({fileName:e.fileName,name:zh(t)})));return $(o)?o:void 0}))||xfe}()){const t=s(a.fileName,n,o);if(!t)continue;const r=this.projectService.getOrCreateScriptInfoNotOpenedByClient(t,o.currentDirectory,o.directoryStructureHost,!1);if(!r)continue;o.containsScriptInfo(r)||(o.addRoot(r),o.updateGraph());const i=_.getProgram(),c=un.checkDefined(i.getSourceFile(t));for(const t of l(a.name,c,i))e.add(t)}}a=Oe(e.values())}return a=a.filter((e=>!e.isAmbient&&!e.failedAliasResolution)),this.mapDefinitionInfo(a,r);function s(e,t,n){var i,o,a;const s=zT(e);if(s&&e.lastIndexOf(PR)===s.topLevelNodeModulesIndex){const c=e.substring(0,s.packageRootIndex),l=null==(i=r.getModuleResolutionCache())?void 0:i.getPackageJsonInfoCache(),_=r.getCompilationSettings(),u=$R(Bo(c,r.getCurrentDirectory()),WR(l,r,_));if(!u)return;const d=UR(u,{moduleResolution:2},r,r.getModuleResolutionCache()),p=mM(gM(e.substring(s.topLevelPackageNameIndex+1,s.packageRootIndex))),f=r.toPath(e);if(d&&$(d,(e=>r.toPath(e)===f)))return null==(o=n.resolutionCache.resolveSingleModuleNameWithoutWatching(p,t).resolvedModule)?void 0:o.resolvedFileName;{const r=`${p}/${zS(e.substring(s.packageRootIndex+1))}`;return null==(a=n.resolutionCache.resolveSingleModuleNameWithoutWatching(r,t).resolvedModule)?void 0:a.resolvedFileName}}}function c(e,t,r){var o;const a=r.getSourceFile(e.fileName);if(!a)return;const s=FX(t.getSourceFile(n),i),c=t.getTypeChecker().getSymbolAtLocation(s),_=c&&Wu(c,276);return _?l((null==(o=_.propertyName)?void 0:o.text)||_.name.text,a,r):void 0}function l(e,t,n){return B(ice.Core.getTopMostDeclarationNamesInFile(e,t),(e=>{const t=n.getTypeChecker().getSymbolAtLocation(e),r=lh(e);if(t&&r)return Wce.createDefinitionInfo(r,n.getTypeChecker(),t,r,!0)}))}}getEmitOutput(e){const{file:t,project:n}=this.getFileAndProject(e);if(!n.shouldEmitFile(n.getScriptInfo(t)))return{emitSkipped:!0,outputFiles:[],diagnostics:[]};const r=n.getLanguageService().getEmitOutput(t);return e.richResponse?{...r,diagnostics:e.includeLinePosition?this.convertToDiagnosticsWithLinePositionFromDiagnosticFile(r.diagnostics):r.diagnostics.map((e=>Nge(e,!0)))}:r}mapJSDocTagInfo(e,t,n){return e?e.map((e=>{var r;return{...e,text:n?this.mapDisplayParts(e.text,t):null==(r=e.text)?void 0:r.map((e=>e.text)).join("")}})):[]}mapDisplayParts(e,t){return e?e.map((e=>"linkName"!==e.kind?e:{...e,target:this.toFileSpan(e.target.fileName,e.target.textSpan,t)})):[]}mapSignatureHelpItems(e,t,n){return e.map((e=>({...e,documentation:this.mapDisplayParts(e.documentation,t),parameters:e.parameters.map((e=>({...e,documentation:this.mapDisplayParts(e.documentation,t)}))),tags:this.mapJSDocTagInfo(e.tags,t,n)})))}mapDefinitionInfo(e,t){return e.map((e=>({...this.toFileSpanWithContext(e.fileName,e.textSpan,e.contextSpan,t),...e.unverified&&{unverified:e.unverified}})))}static mapToOriginalLocation(e){return e.originalFileName?(un.assert(void 0!==e.originalTextSpan,"originalTextSpan should be present if originalFileName is"),{...e,fileName:e.originalFileName,textSpan:e.originalTextSpan,targetFileName:e.fileName,targetTextSpan:e.textSpan,contextSpan:e.originalContextSpan,targetContextSpan:e.contextSpan}):e}toFileSpan(e,t,n){const r=n.getLanguageService(),i=r.toLineColumnOffset(e,t.start),o=r.toLineColumnOffset(e,Ds(t));return{file:e,start:{line:i.line+1,offset:i.character+1},end:{line:o.line+1,offset:o.character+1}}}toFileSpanWithContext(e,t,n,r){const i=this.toFileSpan(e,t,r),o=n&&this.toFileSpan(e,n,r);return o?{...i,contextStart:o.start,contextEnd:o.end}:i}getTypeDefinition(e){const{file:t,project:n}=this.getFileAndProject(e),r=this.getPositionInFile(e,t),i=this.mapDefinitionInfoLocations(n.getLanguageService().getTypeDefinitionAtPosition(t,r)||xfe,n);return this.mapDefinitionInfo(i,n)}mapImplementationLocations(e,t){return e.map((e=>{const n=qge(e,t);return n?{...n,kind:e.kind,displayParts:e.displayParts}:e}))}getImplementation(t,n){const{file:r,project:i}=this.getFileAndProject(t),o=this.getPositionInFile(t,r),a=this.mapImplementationLocations(i.getLanguageService().getImplementationAtPosition(r,o)||xfe,i);return n?a.map((({fileName:e,textSpan:t,contextSpan:n})=>this.toFileSpanWithContext(e,t,n,i))):a.map(e.mapToOriginalLocation)}getSyntacticDiagnosticsSync(e){const{configFile:t}=this.getConfigFileAndProject(e);return t?xfe:this.getDiagnosticsWorker(e,!1,((e,t)=>e.getLanguageService().getSyntacticDiagnostics(t)),!!e.includeLinePosition)}getSemanticDiagnosticsSync(e){const{configFile:t,project:n}=this.getConfigFileAndProject(e);return t?this.getConfigFileDiagnostics(t,n,!!e.includeLinePosition):this.getDiagnosticsWorker(e,!0,((e,t)=>e.getLanguageService().getSemanticDiagnostics(t).filter((e=>!!e.file))),!!e.includeLinePosition)}getSuggestionDiagnosticsSync(e){const{configFile:t}=this.getConfigFileAndProject(e);return t?xfe:this.getDiagnosticsWorker(e,!0,((e,t)=>e.getLanguageService().getSuggestionDiagnostics(t)),!!e.includeLinePosition)}getJsxClosingTag(e){const{file:t,languageService:n}=this.getFileAndLanguageServiceForSyntacticOperation(e),r=this.getPositionInFile(e,t),i=n.getJsxClosingTagAtPosition(t,r);return void 0===i?void 0:{newText:i.newText,caretOffset:0}}getLinkedEditingRange(e){const{file:t,languageService:n}=this.getFileAndLanguageServiceForSyntacticOperation(e),r=this.getPositionInFile(e,t),i=n.getLinkedEditingRangeAtPosition(t,r),o=this.projectService.getScriptInfoForNormalizedPath(t);if(void 0!==o&&void 0!==i)return function(e,t){const n=e.ranges.map((e=>({start:t.positionToLineOffset(e.start),end:t.positionToLineOffset(e.start+e.length)})));return e.wordPattern?{ranges:n,wordPattern:e.wordPattern}:{ranges:n}}(i,o)}getDocumentHighlights(e,t){const{file:n,project:r}=this.getFileAndProject(e),i=this.getPositionInFile(e,n),o=r.getLanguageService().getDocumentHighlights(n,i,e.filesToSearch);return o?t?o.map((({fileName:e,highlightSpans:t})=>{const n=r.getScriptInfo(e);return{file:e,highlightSpans:t.map((({textSpan:e,kind:t,contextSpan:r})=>({...Gge(e,r,n),kind:t})))}})):o:xfe}provideInlayHints(e){const{file:t,project:n}=this.getFileAndProject(e),r=this.projectService.getScriptInfoForNormalizedPath(t);return n.getLanguageService().provideInlayHints(t,e,this.getPreferences(t)).map((e=>{const{position:t,displayParts:n}=e;return{...e,position:r.positionToLineOffset(t),displayParts:null==n?void 0:n.map((({text:e,span:t,file:n})=>{if(t){un.assertIsDefined(n,"Target file should be defined together with its span.");const r=this.projectService.getScriptInfo(n);return{text:e,span:{start:r.positionToLineOffset(t.start),end:r.positionToLineOffset(t.start+t.length),file:n}}}return{text:e}}))}}))}mapCode(e){var t;const n=this.getHostFormatOptions(),r=this.getHostPreferences(),{file:i,languageService:o}=this.getFileAndLanguageServiceForSyntacticOperation(e),a=this.projectService.getScriptInfoForNormalizedPath(i),s=null==(t=e.mapping.focusLocations)?void 0:t.map((e=>e.map((e=>{const t=a.lineOffsetToPosition(e.start.line,e.start.offset);return{start:t,length:a.lineOffsetToPosition(e.end.line,e.end.offset)-t}})))),c=o.mapCode(i,e.mapping.contents,s,n,r);return this.mapTextChangesToCodeEdits(c)}getCopilotRelatedInfo(){return{relatedFiles:[]}}setCompilerOptionsForInferredProjects(e){this.projectService.setCompilerOptionsForInferredProjects(e.options,e.projectRootPath)}getProjectInfo(e){return this.getProjectInfoWorker(e.file,e.projectFileName,e.needFileNameList,e.needDefaultConfiguredProjectInfo,!1)}getProjectInfoWorker(e,t,n,r,i){const{project:o}=this.getFileAndProjectWorker(e,t);return sge(o),{configFileName:o.getProjectName(),languageServiceDisabled:!o.languageServiceEnabled,fileNames:n?o.getFileNames(!1,i):void 0,configuredProjectInfo:r?this.getDefaultConfiguredProjectInfo(e):void 0}}getDefaultConfiguredProjectInfo(e){var t;const n=this.projectService.getScriptInfo(e);if(!n)return;const r=this.projectService.findDefaultConfiguredProjectWorker(n,3);if(!r)return;let i,o;return r.seenProjects.forEach(((e,t)=>{t!==r.defaultProject&&(3!==e?(i??(i=[])).push(Tfe(t.getConfigFilePath())):(o??(o=[])).push(Tfe(t.getConfigFilePath())))})),null==(t=r.seenConfigs)||t.forEach((e=>(i??(i=[])).push(e))),{notMatchedByConfig:i,notInProject:o,defaultProject:r.defaultProject&&Tfe(r.defaultProject.getConfigFilePath())}}getRenameInfo(e){const{file:t,project:n}=this.getFileAndProject(e),r=this.getPositionInFile(e,t),i=this.getPreferences(t);return n.getLanguageService().getRenameInfo(t,r,i)}getProjects(e,t,n){let r,i;if(e.projectFileName){const t=this.getProject(e.projectFileName);t&&(r=[t])}else{const o=t?this.projectService.getScriptInfoEnsuringProjectsUptoDate(e.file):this.projectService.getScriptInfo(e.file);if(!o)return n?xfe:(this.projectService.logErrorForScriptInfoNotFound(e.file),yfe.ThrowNoProject());t||this.projectService.ensureDefaultProjectForFile(o),r=o.containingProjects,i=this.projectService.getSymlinkedProjects(o)}return r=N(r,(e=>e.languageServiceEnabled&&!e.isOrphan())),n||r&&r.length||i?i?{projects:r,symLinkedProjects:i}:r:(this.projectService.logErrorForScriptInfoNotFound(e.file??e.projectFileName),yfe.ThrowNoProject())}getDefaultProject(e){if(e.projectFileName){const t=this.getProject(e.projectFileName);if(t)return t;if(!e.file)return yfe.ThrowNoProject()}return this.projectService.getScriptInfo(e.file).getDefaultProject()}getRenameLocations(e,t){const n=Tfe(e.file),r=this.getPositionInFile(e,n),i=this.getProjects(e),o=this.getDefaultProject(e),a=this.getPreferences(n),s=this.mapRenameInfo(o.getLanguageService().getRenameInfo(n,r,a),un.checkDefined(this.projectService.getScriptInfo(n)));if(!s.canRename)return t?{info:s,locs:[]}:[];const c=function(e,t,n,r,i,o,a){const s=Lge(e,t,n,Ige(t,n,!0),Rge,((e,t)=>e.getLanguageService().findRenameLocations(t.fileName,t.pos,r,i,o)),((e,t)=>t(Jge(e))));if(Qe(s))return s;const c=[],l=Age(a);return s.forEach(((e,t)=>{for(const n of e)l.has(n)||zge(Jge(n),t)||(c.push(n),l.add(n))})),c}(i,o,{fileName:e.file,pos:r},!!e.findInStrings,!!e.findInComments,a,this.host.useCaseSensitiveFileNames);return t?{info:s,locs:this.toSpanGroups(c)}:c}mapRenameInfo(e,t){if(e.canRename){const{canRename:n,fileToRename:r,displayName:i,fullDisplayName:o,kind:a,kindModifiers:s,triggerSpan:c}=e;return{canRename:n,fileToRename:r,displayName:i,fullDisplayName:o,kind:a,kindModifiers:s,triggerSpan:Kge(c,t)}}return e}toSpanGroups(e){const t=new Map;for(const{fileName:n,textSpan:r,contextSpan:i,originalContextSpan:o,originalTextSpan:a,originalFileName:s,...c}of e){let e=t.get(n);e||t.set(n,e={file:n,locs:[]});const o=un.checkDefined(this.projectService.getScriptInfo(n));e.locs.push({...Gge(r,i,o),...c})}return Oe(t.values())}getReferences(e,t){const n=Tfe(e.file),r=this.getProjects(e),i=this.getPositionInFile(e,n),o=function(e,t,n,r,i){var o,a;const s=Lge(e,t,n,Ige(t,n,!1),Rge,((e,t)=>(i.info(`Finding references to ${t.fileName} position ${t.pos} in project ${e.getProjectName()}`),e.getLanguageService().findReferences(t.fileName,t.pos))),((e,t)=>{t(Jge(e.definition));for(const n of e.references)t(Jge(n))}));if(Qe(s))return s;const c=s.get(t);if(void 0===(null==(a=null==(o=null==c?void 0:c[0])?void 0:o.references[0])?void 0:a.isDefinition))s.forEach((e=>{for(const t of e)for(const e of t.references)delete e.isDefinition}));else{const e=Age(r);for(const t of c)for(const n of t.references)if(n.isDefinition){e.add(n);break}const t=new Set;for(;;){let n=!1;if(s.forEach(((r,i)=>{t.has(i)||i.getLanguageService().updateIsDefinitionOfReferencedSymbols(r,e)&&(t.add(i),n=!0)})),!n)break}s.forEach(((e,n)=>{if(!t.has(n))for(const t of e)for(const e of t.references)e.isDefinition=!1}))}const l=[],_=Age(r);return s.forEach(((e,t)=>{for(const n of e){const e=zge(Jge(n.definition),t),i=void 0===e?n.definition:{...n.definition,textSpan:Vs(e.pos,n.definition.textSpan.length),fileName:e.fileName,contextSpan:Uge(n.definition,t)};let o=b(l,(e=>YQ(e.definition,i,r)));o||(o={definition:i,references:[]},l.push(o));for(const e of n.references)_.has(e)||zge(Jge(e),t)||(_.add(e),o.references.push(e))}})),l.filter((e=>0!==e.references.length))}(r,this.getDefaultProject(e),{fileName:e.file,pos:i},this.host.useCaseSensitiveFileNames,this.logger);if(!t)return o;const a=this.getPreferences(n),s=this.getDefaultProject(e),c=s.getScriptInfoForNormalizedPath(n),l=s.getLanguageService().getQuickInfoAtPosition(n,i),_=l?D8(l.displayParts):"",u=l&&l.textSpan,d=u?c.positionToLineOffset(u.start).offset:0,p=u?c.getSnapshot().getText(u.start,Ds(u)):"";return{refs:O(o,(e=>e.references.map((e=>Yge(this.projectService,e,a))))),symbolName:p,symbolStartOffset:d,symbolDisplayString:_}}getFileReferences(e,t){const n=this.getProjects(e),r=Tfe(e.file),i=this.getPreferences(r),o={fileName:r,pos:0},a=Lge(n,this.getDefaultProject(e),o,o,jge,(e=>(this.logger.info(`Finding references to file ${r} in project ${e.getProjectName()}`),e.getLanguageService().getFileReferences(r))));let s;if(Qe(a))s=a;else{s=[];const e=Age(this.host.useCaseSensitiveFileNames);a.forEach((t=>{for(const n of t)e.has(n)||(s.push(n),e.add(n))}))}return t?{refs:s.map((e=>Yge(this.projectService,e,i))),symbolName:`"${e.file}"`}:s}openClientFile(e,t,n,r){this.projectService.openClientFileWithNormalizedPath(e,t,n,!1,r)}getPosition(e,t){return void 0!==e.position?e.position:t.lineOffsetToPosition(e.line,e.offset)}getPositionInFile(e,t){const n=this.projectService.getScriptInfoForNormalizedPath(t);return this.getPosition(e,n)}getFileAndProject(e){return this.getFileAndProjectWorker(e.file,e.projectFileName)}getFileAndLanguageServiceForSyntacticOperation(e){const{file:t,project:n}=this.getFileAndProject(e);return{file:t,languageService:n.getLanguageService(!1)}}getFileAndProjectWorker(e,t){const n=Tfe(e);return{file:n,project:this.getProject(t)||this.projectService.ensureDefaultProjectForFile(n)}}getOutliningSpans(e,t){const{file:n,languageService:r}=this.getFileAndLanguageServiceForSyntacticOperation(e),i=r.getOutliningSpans(n);if(t){const e=this.projectService.getScriptInfoForNormalizedPath(n);return i.map((t=>({textSpan:Kge(t.textSpan,e),hintSpan:Kge(t.hintSpan,e),bannerText:t.bannerText,autoCollapse:t.autoCollapse,kind:t.kind})))}return i}getTodoComments(e){const{file:t,project:n}=this.getFileAndProject(e);return n.getLanguageService().getTodoComments(t,e.descriptors)}getDocCommentTemplate(e){const{file:t,languageService:n}=this.getFileAndLanguageServiceForSyntacticOperation(e),r=this.getPositionInFile(e,t);return n.getDocCommentTemplateAtPosition(t,r,this.getPreferences(t),this.getFormatOptions(t))}getSpanOfEnclosingComment(e){const{file:t,languageService:n}=this.getFileAndLanguageServiceForSyntacticOperation(e),r=e.onlyMultiLine,i=this.getPositionInFile(e,t);return n.getSpanOfEnclosingComment(t,i,r)}getIndentation(e){const{file:t,languageService:n}=this.getFileAndLanguageServiceForSyntacticOperation(e),r=this.getPositionInFile(e,t),i=e.options?jme(e.options):this.getFormatOptions(t);return{position:r,indentation:n.getIndentationAtPosition(t,r,i)}}getBreakpointStatement(e){const{file:t,languageService:n}=this.getFileAndLanguageServiceForSyntacticOperation(e),r=this.getPositionInFile(e,t);return n.getBreakpointStatementAtPosition(t,r)}getNameOrDottedNameSpan(e){const{file:t,languageService:n}=this.getFileAndLanguageServiceForSyntacticOperation(e),r=this.getPositionInFile(e,t);return n.getNameOrDottedNameSpan(t,r,r)}isValidBraceCompletion(e){const{file:t,languageService:n}=this.getFileAndLanguageServiceForSyntacticOperation(e),r=this.getPositionInFile(e,t);return n.isValidBraceCompletionAtPosition(t,r,e.openingBrace.charCodeAt(0))}getQuickInfoWorker(e,t){const{file:n,project:r}=this.getFileAndProject(e),i=this.projectService.getScriptInfoForNormalizedPath(n),o=r.getLanguageService().getQuickInfoAtPosition(n,this.getPosition(e,i));if(!o)return;const a=!!this.getPreferences(n).displayPartsForJSDoc;if(t){const e=D8(o.displayParts);return{kind:o.kind,kindModifiers:o.kindModifiers,start:i.positionToLineOffset(o.textSpan.start),end:i.positionToLineOffset(Ds(o.textSpan)),displayString:e,documentation:a?this.mapDisplayParts(o.documentation,r):D8(o.documentation),tags:this.mapJSDocTagInfo(o.tags,r,a)}}return a?o:{...o,tags:this.mapJSDocTagInfo(o.tags,r,!1)}}getFormattingEditsForRange(e){const{file:t,languageService:n}=this.getFileAndLanguageServiceForSyntacticOperation(e),r=this.projectService.getScriptInfoForNormalizedPath(t),i=r.lineOffsetToPosition(e.line,e.offset),o=r.lineOffsetToPosition(e.endLine,e.endOffset),a=n.getFormattingEditsForRange(t,i,o,this.getFormatOptions(t));if(a)return a.map((e=>this.convertTextChangeToCodeEdit(e,r)))}getFormattingEditsForRangeFull(e){const{file:t,languageService:n}=this.getFileAndLanguageServiceForSyntacticOperation(e),r=e.options?jme(e.options):this.getFormatOptions(t);return n.getFormattingEditsForRange(t,e.position,e.endPosition,r)}getFormattingEditsForDocumentFull(e){const{file:t,languageService:n}=this.getFileAndLanguageServiceForSyntacticOperation(e),r=e.options?jme(e.options):this.getFormatOptions(t);return n.getFormattingEditsForDocument(t,r)}getFormattingEditsAfterKeystrokeFull(e){const{file:t,languageService:n}=this.getFileAndLanguageServiceForSyntacticOperation(e),r=e.options?jme(e.options):this.getFormatOptions(t);return n.getFormattingEditsAfterKeystroke(t,e.position,e.key,r)}getFormattingEditsAfterKeystroke(e){const{file:t,languageService:n}=this.getFileAndLanguageServiceForSyntacticOperation(e),r=this.projectService.getScriptInfoForNormalizedPath(t),i=r.lineOffsetToPosition(e.line,e.offset),o=this.getFormatOptions(t),a=n.getFormattingEditsAfterKeystroke(t,i,e.key,o);if("\n"===e.key&&(!a||0===a.length||function(e,t){return e.every((e=>Ds(e.span)({start:r.positionToLineOffset(e.span.start),end:r.positionToLineOffset(Ds(e.span)),newText:e.newText?e.newText:""})))}getCompletions(e,t){const{file:n,project:r}=this.getFileAndProject(e),i=this.projectService.getScriptInfoForNormalizedPath(n),o=this.getPosition(e,i),a=r.getLanguageService().getCompletionsAtPosition(n,o,{...qme(this.getPreferences(n)),triggerCharacter:e.triggerCharacter,triggerKind:e.triggerKind,includeExternalModuleExports:e.includeExternalModuleExports,includeInsertTextCompletions:e.includeInsertTextCompletions},r.projectService.getFormatCodeOptions(n));if(void 0===a)return;if("completions-full"===t)return a;const s=e.prefix||"",c=B(a.entries,(e=>{if(a.isMemberCompletion||Gt(e.name.toLowerCase(),s.toLowerCase())){const t=e.replacementSpan?Kge(e.replacementSpan,i):void 0;return{...e,replacementSpan:t,hasAction:e.hasAction||void 0,symbol:void 0}}}));return"completions"===t?(a.metadata&&(c.metadata=a.metadata),c):{...a,optionalReplacementSpan:a.optionalReplacementSpan&&Kge(a.optionalReplacementSpan,i),entries:c}}getCompletionEntryDetails(e,t){const{file:n,project:r}=this.getFileAndProject(e),i=this.projectService.getScriptInfoForNormalizedPath(n),o=this.getPosition(e,i),a=r.projectService.getFormatCodeOptions(n),s=!!this.getPreferences(n).displayPartsForJSDoc,c=B(e.entryNames,(e=>{const{name:t,source:i,data:s}="string"==typeof e?{name:e,source:void 0,data:void 0}:e;return r.getLanguageService().getCompletionEntryDetails(n,o,t,a,i,this.getPreferences(n),s?nt(s,Zge):void 0)}));return t?s?c:c.map((e=>({...e,tags:this.mapJSDocTagInfo(e.tags,r,!1)}))):c.map((e=>({...e,codeActions:E(e.codeActions,(e=>this.mapCodeAction(e))),documentation:this.mapDisplayParts(e.documentation,r),tags:this.mapJSDocTagInfo(e.tags,r,s)})))}getCompileOnSaveAffectedFileList(e){const t=this.getProjects(e,!0,!0),n=this.projectService.getScriptInfo(e.file);return n?function(e,t,n,r){const i=L(Qe(n)?n:n.projects,(t=>r(t,e)));return!Qe(n)&&n.symLinkedProjects&&n.symLinkedProjects.forEach(((e,n)=>{const o=t(n);i.push(...O(e,(e=>r(e,o))))})),Q(i,mt)}(n,(e=>this.projectService.getScriptInfoForPath(e)),t,((e,t)=>{if(!e.compileOnSaveEnabled||!e.languageServiceEnabled||e.isOrphan())return;const n=e.getCompilationSettings();return n.noEmit||$I(t.fileName)&&!function(e){return Nk(e)||!!e.emitDecoratorMetadata}(n)?void 0:{projectFileName:e.getProjectName(),fileNames:e.getCompileOnSaveAffectedFileList(t),projectUsesOutFile:!!n.outFile}})):xfe}emitFile(e){const{file:t,project:n}=this.getFileAndProject(e);if(n||yfe.ThrowNoProject(),!n.languageServiceEnabled)return!!e.richResponse&&{emitSkipped:!0,diagnostics:[]};const r=n.getScriptInfo(t),{emitSkipped:i,diagnostics:o}=n.emitFile(r,((e,t,n)=>this.host.writeFile(e,t,n)));return e.richResponse?{emitSkipped:i,diagnostics:e.includeLinePosition?this.convertToDiagnosticsWithLinePositionFromDiagnosticFile(o):o.map((e=>Nge(e,!0)))}:!i}getSignatureHelpItems(e,t){const{file:n,project:r}=this.getFileAndProject(e),i=this.projectService.getScriptInfoForNormalizedPath(n),o=this.getPosition(e,i),a=r.getLanguageService().getSignatureHelpItems(n,o,e),s=!!this.getPreferences(n).displayPartsForJSDoc;if(a&&t){const e=a.applicableSpan;return{...a,applicableSpan:{start:i.positionToLineOffset(e.start),end:i.positionToLineOffset(e.start+e.length)},items:this.mapSignatureHelpItems(a.items,r,s)}}return s||!a?a:{...a,items:a.items.map((e=>({...e,tags:this.mapJSDocTagInfo(e.tags,r,!1)})))}}toPendingErrorCheck(e){const t=Tfe(e),n=this.projectService.tryGetDefaultProjectForFile(t);return n&&{fileName:t,project:n}}getDiagnostics(e,t,n){this.suppressDiagnosticEvents||n.length>0&&this.updateErrorCheck(e,n,t)}change(e){const t=this.projectService.getScriptInfo(e.file);un.assert(!!t),t.textStorage.switchToScriptVersionCache();const n=t.lineOffsetToPosition(e.line,e.offset),r=t.lineOffsetToPosition(e.endLine,e.endOffset);n>=0&&(this.changeSeq++,this.projectService.applyChangesToFile(t,U({span:{start:n,length:r-n},newText:e.insertString})))}reload(e){const t=Tfe(e.file),n=void 0===e.tmpfile?void 0:Tfe(e.tmpfile),r=this.projectService.getScriptInfoForNormalizedPath(t);r&&(this.changeSeq++,r.reloadFromFile(n))}saveToTmp(e,t){const n=this.projectService.getScriptInfo(e);n&&n.saveTo(t)}closeClientFile(e){if(!e)return;const t=Jo(e);this.projectService.closeClientFile(t)}mapLocationNavigationBarItems(e,t){return E(e,(e=>({text:e.text,kind:e.kind,kindModifiers:e.kindModifiers,spans:e.spans.map((e=>Kge(e,t))),childItems:this.mapLocationNavigationBarItems(e.childItems,t),indent:e.indent})))}getNavigationBarItems(e,t){const{file:n,languageService:r}=this.getFileAndLanguageServiceForSyntacticOperation(e),i=r.getNavigationBarItems(n);return i?t?this.mapLocationNavigationBarItems(i,this.projectService.getScriptInfoForNormalizedPath(n)):i:void 0}toLocationNavigationTree(e,t){return{text:e.text,kind:e.kind,kindModifiers:e.kindModifiers,spans:e.spans.map((e=>Kge(e,t))),nameSpan:e.nameSpan&&Kge(e.nameSpan,t),childItems:E(e.childItems,(e=>this.toLocationNavigationTree(e,t)))}}getNavigationTree(e,t){const{file:n,languageService:r}=this.getFileAndLanguageServiceForSyntacticOperation(e),i=r.getNavigationTree(n);return i?t?this.toLocationNavigationTree(i,this.projectService.getScriptInfoForNormalizedPath(n)):i:void 0}getNavigateToItems(e,t){return O(this.getFullNavigateToItems(e),t?({project:e,navigateToItems:t})=>t.map((t=>{const n=e.getScriptInfo(t.fileName),r={name:t.name,kind:t.kind,kindModifiers:t.kindModifiers,isCaseSensitive:t.isCaseSensitive,matchKind:t.matchKind,file:t.fileName,start:n.positionToLineOffset(t.textSpan.start),end:n.positionToLineOffset(Ds(t.textSpan))};return t.kindModifiers&&""!==t.kindModifiers&&(r.kindModifiers=t.kindModifiers),t.containerName&&t.containerName.length>0&&(r.containerName=t.containerName),t.containerKind&&t.containerKind.length>0&&(r.containerKind=t.containerKind),r})):({navigateToItems:e})=>e)}getFullNavigateToItems(e){const{currentFileOnly:t,searchValue:n,maxResultCount:r,projectFileName:i}=e;if(t){un.assertIsDefined(e.file);const{file:t,project:i}=this.getFileAndProject(e);return[{project:i,navigateToItems:i.getLanguageService().getNavigateToItems(n,r,t)}]}const o=this.getHostPreferences(),a=[],s=new Map;return e.file||i?Oge(this.getProjects(e),void 0,(e=>c(e))):(this.projectService.loadAncestorProjectTree(),this.projectService.forEachEnabledProject((e=>c(e)))),a;function c(e){const t=N(e.getLanguageService().getNavigateToItems(n,r,void 0,e.isNonTsProject(),o.excludeLibrarySymbolsInNavTo),(t=>function(e){const t=e.name;if(!s.has(t))return s.set(t,[e]),!0;const n=s.get(t);for(const t of n)if((r=t)===(i=e)||r&&i&&r.containerKind===i.containerKind&&r.containerName===i.containerName&&r.fileName===i.fileName&&r.isCaseSensitive===i.isCaseSensitive&&r.kind===i.kind&&r.kindModifiers===i.kindModifiers&&r.matchKind===i.matchKind&&r.name===i.name&&r.textSpan.start===i.textSpan.start&&r.textSpan.length===i.textSpan.length)return!1;var r,i;return n.push(e),!0}(t)&&!zge(Jge(t),e)));t.length&&a.push({project:e,navigateToItems:t})}}getSupportedCodeFixes(e){if(!e)return E8();if(e.file){const{file:t,project:n}=this.getFileAndProject(e);return n.getLanguageService().getSupportedCodeFixes(t)}const t=this.getProject(e.projectFileName);return t||yfe.ThrowNoProject(),t.getLanguageService().getSupportedCodeFixes()}isLocation(e){return void 0!==e.line}extractPositionOrRange(e,t){let n,r;var i;return this.isLocation(e)?n=void 0!==(i=e).position?i.position:t.lineOffsetToPosition(i.line,i.offset):r=this.getRange(e,t),un.checkDefined(void 0===n?r:n)}getRange(e,t){const{startPosition:n,endPosition:r}=this.getStartAndEndPosition(e,t);return{pos:n,end:r}}getApplicableRefactors(e){const{file:t,project:n}=this.getFileAndProject(e),r=n.getScriptInfoForNormalizedPath(t);return n.getLanguageService().getApplicableRefactors(t,this.extractPositionOrRange(e,r),this.getPreferences(t),e.triggerReason,e.kind,e.includeInteractiveActions).map((e=>({...e,actions:e.actions.map((e=>({...e,range:e.range?{start:wge({line:e.range.start.line,character:e.range.start.offset}),end:wge({line:e.range.end.line,character:e.range.end.offset})}:void 0})))})))}getEditsForRefactor(e,t){const{file:n,project:r}=this.getFileAndProject(e),i=r.getScriptInfoForNormalizedPath(n),o=r.getLanguageService().getEditsForRefactor(n,this.getFormatOptions(n),this.extractPositionOrRange(e,i),e.refactor,e.action,this.getPreferences(n),e.interactiveRefactorArguments);if(void 0===o)return{edits:[]};if(t){const{renameFilename:e,renameLocation:t,edits:n}=o;let i;return void 0!==e&&void 0!==t&&(i=Qge(CQ(r.getScriptInfoForNormalizedPath(Tfe(e)).getSnapshot()),e,t,n)),{renameLocation:i,renameFilename:e,edits:this.mapTextChangesToCodeEdits(n),notApplicableReason:o.notApplicableReason}}return o}getMoveToRefactoringFileSuggestions(e){const{file:t,project:n}=this.getFileAndProject(e),r=n.getScriptInfoForNormalizedPath(t);return n.getLanguageService().getMoveToRefactoringFileSuggestions(t,this.extractPositionOrRange(e,r),this.getPreferences(t))}preparePasteEdits(e){const{file:t,project:n}=this.getFileAndProject(e);return n.getLanguageService().preparePasteEditsForFile(t,e.copiedTextSpan.map((e=>this.getRange({file:t,startLine:e.start.line,startOffset:e.start.offset,endLine:e.end.line,endOffset:e.end.offset},this.projectService.getScriptInfoForNormalizedPath(t)))))}getPasteEdits(e){const{file:t,project:n}=this.getFileAndProject(e);if(Kfe(t))return;const r=e.copiedFrom?{file:e.copiedFrom.file,range:e.copiedFrom.spans.map((t=>this.getRange({file:e.copiedFrom.file,startLine:t.start.line,startOffset:t.start.offset,endLine:t.end.line,endOffset:t.end.offset},n.getScriptInfoForNormalizedPath(Tfe(e.copiedFrom.file)))))}:void 0,i=n.getLanguageService().getPasteEdits({targetFile:t,pastedText:e.pastedText,pasteLocations:e.pasteLocations.map((e=>this.getRange({file:t,startLine:e.start.line,startOffset:e.start.offset,endLine:e.end.line,endOffset:e.end.offset},n.getScriptInfoForNormalizedPath(t)))),copiedFrom:r,preferences:this.getPreferences(t)},this.getFormatOptions(t));return i&&this.mapPasteEditsAction(i)}organizeImports(e,t){un.assert("file"===e.scope.type);const{file:n,project:r}=this.getFileAndProject(e.scope.args),i=r.getLanguageService().organizeImports({fileName:n,mode:e.mode??(e.skipDestructiveCodeActions?"SortAndCombine":void 0),type:"file"},this.getFormatOptions(n),this.getPreferences(n));return t?this.mapTextChangesToCodeEdits(i):i}getEditsForFileRename(e,t){const n=Tfe(e.oldFilePath),r=Tfe(e.newFilePath),i=this.getHostFormatOptions(),o=this.getHostPreferences(),a=new Set,s=[];return this.projectService.loadAncestorProjectTree(),this.projectService.forEachEnabledProject((e=>{const t=e.getLanguageService().getEditsForFileRename(n,r,i,o),c=[];for(const e of t)a.has(e.fileName)||(s.push(e),c.push(e.fileName));for(const e of c)a.add(e)})),t?s.map((e=>this.mapTextChangeToCodeEdit(e))):s}getCodeFixes(e,t){const{file:n,project:r}=this.getFileAndProject(e),i=r.getScriptInfoForNormalizedPath(n),{startPosition:o,endPosition:a}=this.getStartAndEndPosition(e,i);let s;try{s=r.getLanguageService().getCodeFixesAtPosition(n,o,a,e.errorCodes,this.getFormatOptions(n),this.getPreferences(n))}catch(t){const i=r.getLanguageService(),s=[...i.getSyntacticDiagnostics(n),...i.getSemanticDiagnostics(n),...i.getSuggestionDiagnostics(n)].map((e=>Bs(o,a-o,e.start,e.length)&&e.code)),c=e.errorCodes.find((e=>!s.includes(e)));throw void 0!==c&&(t.message=`BADCLIENT: Bad error code, ${c} not found in range ${o}..${a} (found: ${s.join(", ")}); could have caused this error:\n${t.message}`),t}return t?s.map((e=>this.mapCodeFixAction(e))):s}getCombinedCodeFix({scope:e,fixId:t},n){un.assert("file"===e.type);const{file:r,project:i}=this.getFileAndProject(e.args),o=i.getLanguageService().getCombinedCodeFix({type:"file",fileName:r},t,this.getFormatOptions(r),this.getPreferences(r));return n?{changes:this.mapTextChangesToCodeEdits(o.changes),commands:o.commands}:o}applyCodeActionCommand(e){const t=e.command;for(const e of Ye(t)){const{file:t,project:n}=this.getFileAndProject(e);n.getLanguageService().applyCodeActionCommand(e,this.getFormatOptions(t)).then((e=>{}),(e=>{}))}return{}}getStartAndEndPosition(e,t){let n,r;return void 0!==e.startPosition?n=e.startPosition:(n=t.lineOffsetToPosition(e.startLine,e.startOffset),e.startPosition=n),void 0!==e.endPosition?r=e.endPosition:(r=t.lineOffsetToPosition(e.endLine,e.endOffset),e.endPosition=r),{startPosition:n,endPosition:r}}mapCodeAction({description:e,changes:t,commands:n}){return{description:e,changes:this.mapTextChangesToCodeEdits(t),commands:n}}mapCodeFixAction({fixName:e,description:t,changes:n,commands:r,fixId:i,fixAllDescription:o}){return{fixName:e,description:t,changes:this.mapTextChangesToCodeEdits(n),commands:r,fixId:i,fixAllDescription:o}}mapPasteEditsAction({edits:e,fixId:t}){return{edits:this.mapTextChangesToCodeEdits(e),fixId:t}}mapTextChangesToCodeEdits(e){return e.map((e=>this.mapTextChangeToCodeEdit(e)))}mapTextChangeToCodeEdit(e){const t=this.projectService.getScriptInfoOrConfig(e.fileName);return!!e.isNewFile==!!t&&(t||this.projectService.logErrorForScriptInfoNotFound(e.fileName),un.fail("Expected isNewFile for (only) new files. "+JSON.stringify({isNewFile:!!e.isNewFile,hasScriptInfo:!!t}))),t?{fileName:e.fileName,textChanges:e.textChanges.map((e=>function(e,t){return{start:Xge(t,e.span.start),end:Xge(t,Ds(e.span)),newText:e.newText}}(e,t)))}:function(e){un.assert(1===e.textChanges.length);const t=ge(e.textChanges);return un.assert(0===t.span.start&&0===t.span.length),{fileName:e.fileName,textChanges:[{start:{line:0,offset:0},end:{line:0,offset:0},newText:t.newText}]}}(e)}convertTextChangeToCodeEdit(e,t){return{start:t.positionToLineOffset(e.span.start),end:t.positionToLineOffset(e.span.start+e.span.length),newText:e.newText?e.newText:""}}getBraceMatching(e,t){const{file:n,languageService:r}=this.getFileAndLanguageServiceForSyntacticOperation(e),i=this.projectService.getScriptInfoForNormalizedPath(n),o=this.getPosition(e,i),a=r.getBraceMatchingAtPosition(n,o);return a?t?a.map((e=>Kge(e,i))):a:void 0}getDiagnosticsForProject(e,t,n){if(this.suppressDiagnosticEvents)return;const{fileNames:r,languageServiceDisabled:i}=this.getProjectInfoWorker(n,void 0,!0,void 0,!0);if(i)return;const o=r.filter((e=>!e.includes("lib.d.ts")));if(0===o.length)return;const a=[],s=[],c=[],l=[],_=Tfe(n),u=this.projectService.ensureDefaultProjectForFile(_);for(const e of o)this.getCanonicalFileName(e)===this.getCanonicalFileName(n)?a.push(e):this.projectService.getScriptInfo(e).isScriptOpen()?s.push(e):$I(e)?l.push(e):c.push(e);const d=[...a,...s,...c,...l].map((e=>({fileName:e,project:u})));this.updateErrorCheck(e,d,t,!1)}configurePlugin(e){this.projectService.configurePlugin(e)}getSmartSelectionRange(e,t){const{locations:n}=e,{file:r,languageService:i}=this.getFileAndLanguageServiceForSyntacticOperation(e),o=un.checkDefined(this.projectService.getScriptInfo(r));return E(n,(e=>{const n=this.getPosition(e,o),a=i.getSmartSelectionRange(r,n);return t?this.mapSelectionRange(a,o):a}))}toggleLineComment(e,t){const{file:n,languageService:r}=this.getFileAndLanguageServiceForSyntacticOperation(e),i=this.projectService.getScriptInfo(n),o=this.getRange(e,i),a=r.toggleLineComment(n,o);if(t){const e=this.projectService.getScriptInfoForNormalizedPath(n);return a.map((t=>this.convertTextChangeToCodeEdit(t,e)))}return a}toggleMultilineComment(e,t){const{file:n,languageService:r}=this.getFileAndLanguageServiceForSyntacticOperation(e),i=this.projectService.getScriptInfoForNormalizedPath(n),o=this.getRange(e,i),a=r.toggleMultilineComment(n,o);if(t){const e=this.projectService.getScriptInfoForNormalizedPath(n);return a.map((t=>this.convertTextChangeToCodeEdit(t,e)))}return a}commentSelection(e,t){const{file:n,languageService:r}=this.getFileAndLanguageServiceForSyntacticOperation(e),i=this.projectService.getScriptInfoForNormalizedPath(n),o=this.getRange(e,i),a=r.commentSelection(n,o);if(t){const e=this.projectService.getScriptInfoForNormalizedPath(n);return a.map((t=>this.convertTextChangeToCodeEdit(t,e)))}return a}uncommentSelection(e,t){const{file:n,languageService:r}=this.getFileAndLanguageServiceForSyntacticOperation(e),i=this.projectService.getScriptInfoForNormalizedPath(n),o=this.getRange(e,i),a=r.uncommentSelection(n,o);if(t){const e=this.projectService.getScriptInfoForNormalizedPath(n);return a.map((t=>this.convertTextChangeToCodeEdit(t,e)))}return a}mapSelectionRange(e,t){const n={textSpan:Kge(e.textSpan,t)};return e.parent&&(n.parent=this.mapSelectionRange(e.parent,t)),n}getScriptInfoFromProjectService(e){const t=Tfe(e);return this.projectService.getScriptInfoForNormalizedPath(t)||(this.projectService.logErrorForScriptInfoNotFound(t),yfe.ThrowNoProject())}toProtocolCallHierarchyItem(e){const t=this.getScriptInfoFromProjectService(e.file);return{name:e.name,kind:e.kind,kindModifiers:e.kindModifiers,file:e.file,containerName:e.containerName,span:Kge(e.span,t),selectionSpan:Kge(e.selectionSpan,t)}}toProtocolCallHierarchyIncomingCall(e){const t=this.getScriptInfoFromProjectService(e.from.file);return{from:this.toProtocolCallHierarchyItem(e.from),fromSpans:e.fromSpans.map((e=>Kge(e,t)))}}toProtocolCallHierarchyOutgoingCall(e,t){return{to:this.toProtocolCallHierarchyItem(e.to),fromSpans:e.fromSpans.map((e=>Kge(e,t)))}}prepareCallHierarchy(e){const{file:t,project:n}=this.getFileAndProject(e),r=this.projectService.getScriptInfoForNormalizedPath(t);if(r){const i=this.getPosition(e,r),o=n.getLanguageService().prepareCallHierarchy(t,i);return o&&AZ(o,(e=>this.toProtocolCallHierarchyItem(e)))}}provideCallHierarchyIncomingCalls(e){const{file:t,project:n}=this.getFileAndProject(e),r=this.getScriptInfoFromProjectService(t);return n.getLanguageService().provideCallHierarchyIncomingCalls(t,this.getPosition(e,r)).map((e=>this.toProtocolCallHierarchyIncomingCall(e)))}provideCallHierarchyOutgoingCalls(e){const{file:t,project:n}=this.getFileAndProject(e),r=this.getScriptInfoFromProjectService(t);return n.getLanguageService().provideCallHierarchyOutgoingCalls(t,this.getPosition(e,r)).map((e=>this.toProtocolCallHierarchyOutgoingCall(e,r)))}getCanonicalFileName(e){return Jo(this.host.useCaseSensitiveFileNames?e:_t(e))}exit(){}notRequired(e){return e&&this.doOutput(void 0,e.command,e.seq,!0,this.performanceData),{responseRequired:!1,performanceData:this.performanceData}}requiredResponse(e){return{response:e,responseRequired:!0,performanceData:this.performanceData}}addProtocolHandler(e,t){if(this.handlers.has(e))throw new Error(`Protocol handler already exists for command "${e}"`);this.handlers.set(e,t)}setCurrentRequest(e){un.assert(void 0===this.currentRequestId),this.currentRequestId=e,this.cancellationToken.setRequest(e)}resetCurrentRequest(e){un.assert(this.currentRequestId===e),this.currentRequestId=void 0,this.cancellationToken.resetRequest(e)}executeWithRequestId(e,t,n){const r=this.performanceData;try{return this.performanceData=n,this.setCurrentRequest(e),t()}finally{this.resetCurrentRequest(e),this.performanceData=r}}executeCommand(e){const t=this.handlers.get(e.command);if(t){const n=this.executeWithRequestId(e.seq,(()=>t(e)),void 0);return this.projectService.enableRequestedPlugins(),n}return this.logger.msg(`Unrecognized JSON command:${VK(e)}`,"Err"),this.doOutput(void 0,"unknown",e.seq,!1,void 0,`Unrecognized JSON command: ${e.command}`),{responseRequired:!1}}onMessage(e){var t,n,r,i,o,a,s;let c;this.gcTimer.scheduleCollect();const l=this.performanceData;let _,u;this.logger.hasLevel(2)&&(c=this.hrtime(),this.logger.hasLevel(3)&&this.logger.info(`request:${UK(this.toStringMessage(e))}`));try{_=this.parseMessage(e),u=_.arguments&&_.arguments.file?_.arguments:void 0,null==(t=Hn)||t.instant(Hn.Phase.Session,"request",{seq:_.seq,command:_.command}),null==(n=Hn)||n.push(Hn.Phase.Session,"executeCommand",{seq:_.seq,command:_.command},!0);const{response:o,responseRequired:a,performanceData:s}=this.executeCommand(_);if(null==(r=Hn)||r.pop(),this.logger.hasLevel(2)){const e=(d=this.hrtime(c),(1e9*d[0]+d[1])/1e6).toFixed(4);a?this.logger.perftrc(`${_.seq}::${_.command}: elapsed time (in milliseconds) ${e}`):this.logger.perftrc(`${_.seq}::${_.command}: async elapsed time (in milliseconds) ${e}`)}null==(i=Hn)||i.instant(Hn.Phase.Session,"response",{seq:_.seq,command:_.command,success:!!o}),o?this.doOutput(o,_.command,_.seq,!0,s):a&&this.doOutput(void 0,_.command,_.seq,!1,s,"No content available.")}catch(t){if(null==(o=Hn)||o.popAll(),t instanceof Cr)return null==(a=Hn)||a.instant(Hn.Phase.Session,"commandCanceled",{seq:null==_?void 0:_.seq,command:null==_?void 0:_.command}),void this.doOutput({canceled:!0},_.command,_.seq,!0,this.performanceData);this.logErrorWorker(t,this.toStringMessage(e),u),null==(s=Hn)||s.instant(Hn.Phase.Session,"commandError",{seq:null==_?void 0:_.seq,command:null==_?void 0:_.command,message:t.message}),this.doOutput(void 0,_?_.command:"unknown",_?_.seq:0,!1,this.performanceData,"Error processing request. "+t.message+"\n"+t.stack)}finally{this.performanceData=l}var d}parseMessage(e){return JSON.parse(e)}toStringMessage(e){return e}getFormatOptions(e){return this.projectService.getFormatCodeOptions(e)}getPreferences(e){return this.projectService.getPreferences(e)}getHostFormatOptions(){return this.projectService.getHostFormatCodeOptions()}getHostPreferences(){return this.projectService.getHostPreferences()}};function Hge(e){const t=e.diagnosticsDuration&&Oe(e.diagnosticsDuration,(([e,t])=>({...t,file:e})));return{...e,diagnosticsDuration:t}}function Kge(e,t){return{start:t.positionToLineOffset(e.start),end:t.positionToLineOffset(Ds(e))}}function Gge(e,t,n){const r=Kge(e,n),i=t&&Kge(t,n);return i?{...r,contextStart:i.start,contextEnd:i.end}:r}function Xge(e,t){return yge(e)?{line:(n=e.getLineAndCharacterOfPosition(t)).line+1,offset:n.character+1}:e.positionToLineOffset(t);var n}function Qge(e,t,n,r){const i=function(e,t,n){for(const{fileName:r,textChanges:i}of n)if(r===t)for(let t=i.length-1;t>=0;t--){const{newText:n,span:{start:r,length:o}}=i[t];e=e.slice(0,r)+n+e.slice(r+o)}return e}(e,t,r),{line:o,character:a}=Ra(Ia(i),n);return{line:o+1,offset:a+1}}function Yge(e,{fileName:t,textSpan:n,contextSpan:r,isWriteAccess:i,isDefinition:o},{disableLineTextInReferences:a}){const s=un.checkDefined(e.getScriptInfo(t)),c=Gge(n,r,s),l=a?void 0:function(e,t){const n=e.lineToTextSpan(t.start.line-1);return e.getSnapshot().getText(n.start,Ds(n)).replace(/\r|\n/g,"")}(s,c);return{file:t,...c,lineText:l,isWriteAccess:i,isDefinition:o}}function Zge(e){return void 0===e||e&&"object"==typeof e&&"string"==typeof e.exportName&&(void 0===e.fileName||"string"==typeof e.fileName)&&(void 0===e.ambientModuleName||"string"==typeof e.ambientModuleName&&(void 0===e.isPackageJsonImport||"boolean"==typeof e.isPackageJsonImport))}var ehe=(e=>(e[e.PreStart=0]="PreStart",e[e.Start=1]="Start",e[e.Entire=2]="Entire",e[e.Mid=3]="Mid",e[e.End=4]="End",e[e.PostEnd=5]="PostEnd",e))(ehe||{}),the=class{constructor(){this.goSubtree=!0,this.lineIndex=new ahe,this.endBranch=[],this.state=2,this.initialText="",this.trailingText="",this.lineIndex.root=new she,this.startPath=[this.lineIndex.root],this.stack=[this.lineIndex.root]}get done(){return!1}insertLines(e,t){t&&(this.trailingText=""),e=e?this.initialText+e+this.trailingText:this.initialText+this.trailingText;const n=ahe.linesFromText(e).lines;let r,i;n.length>1&&""===n[n.length-1]&&n.pop();for(let e=this.endBranch.length-1;e>=0;e--)this.endBranch[e].updateCounts(),0===this.endBranch[e].charCount()&&(i=this.endBranch[e],r=e>0?this.endBranch[e-1]:this.branchNode);i&&r.remove(i);const o=this.startPath[this.startPath.length-1];if(n.length>0)if(o.text=n[0],n.length>1){let e=new Array(n.length-1),t=o;for(let t=1;t=0;){const n=this.startPath[r];e=n.insertAt(t,e),r--,t=n}let i=e.length;for(;i>0;){const t=new she;t.add(this.lineIndex.root),e=t.insertAt(this.lineIndex.root,e),i=e.length,this.lineIndex.root=t}this.lineIndex.root.updateCounts()}else for(let e=this.startPath.length-2;e>=0;e--)this.startPath[e].updateCounts();else{this.startPath[this.startPath.length-2].remove(o);for(let e=this.startPath.length-2;e>=0;e--)this.startPath[e].updateCounts()}return this.lineIndex}post(e,t,n){n===this.lineCollectionAtBranch&&(this.state=4),this.stack.pop()}pre(e,t,n,r,i){const o=this.stack[this.stack.length-1];let a;function s(e){return e.isLeaf()?new che(""):new she}switch(2===this.state&&1===i&&(this.state=1,this.branchNode=o,this.lineCollectionAtBranch=n),i){case 0:this.goSubtree=!1,4!==this.state&&o.add(n);break;case 1:4===this.state?this.goSubtree=!1:(a=s(n),o.add(a),this.startPath.push(a));break;case 2:4!==this.state?(a=s(n),o.add(a),this.startPath.push(a)):n.isLeaf()||(a=s(n),o.add(a),this.endBranch.push(a));break;case 3:this.goSubtree=!1;break;case 4:4!==this.state?this.goSubtree=!1:n.isLeaf()||(a=s(n),o.add(a),this.endBranch.push(a));break;case 5:this.goSubtree=!1,1!==this.state&&o.add(n)}this.goSubtree&&this.stack.push(a)}leaf(e,t,n){1===this.state?this.initialText=n.text.substring(0,e):2===this.state?(this.initialText=n.text.substring(0,e),this.trailingText=n.text.substring(e+t)):this.trailingText=n.text.substring(e+t)}},nhe=class{constructor(e,t,n){this.pos=e,this.deleteLen=t,this.insertedText=n}getTextChangeRange(){return Ks(Vs(this.pos,this.deleteLen),this.insertedText?this.insertedText.length:0)}},rhe=class e{constructor(){this.changes=[],this.versions=new Array(e.maxVersions),this.minVersion=0,this.currentVersion=0}versionToIndex(t){if(!(tthis.currentVersion))return t%e.maxVersions}currentVersionToIndex(){return this.currentVersion%e.maxVersions}edit(t,n,r){this.changes.push(new nhe(t,n,r)),(this.changes.length>e.changeNumberThreshold||n>e.changeLengthThreshold||r&&r.length>e.changeLengthThreshold)&&this.getSnapshot()}getSnapshot(){return this._getSnapshot()}_getSnapshot(){let t=this.versions[this.currentVersionToIndex()];if(this.changes.length>0){let n=t.index;for(const e of this.changes)n=n.edit(e.pos,e.deleteLen,e.insertedText);t=new ohe(this.currentVersion+1,this,n,this.changes),this.currentVersion=t.version,this.versions[this.currentVersionToIndex()]=t,this.changes=[],this.currentVersion-this.minVersion>=e.maxVersions&&(this.minVersion=this.currentVersion-e.maxVersions+1)}return t}getSnapshotVersion(){return this._getSnapshot().version}getAbsolutePositionAndLineText(e){return this._getSnapshot().index.lineNumberToInfo(e)}lineOffsetToPosition(e,t){return this._getSnapshot().index.absolutePositionOfStartOfLine(e)+(t-1)}positionToLineOffset(e){return this._getSnapshot().index.positionToLineOffset(e)}lineToTextSpan(e){const t=this._getSnapshot().index,{lineText:n,absolutePosition:r}=t.lineNumberToInfo(e+1);return Vs(r,void 0!==n?n.length:t.absolutePositionOfStartOfLine(e+2)-r)}getTextChangesBetweenVersions(e,t){if(!(e=this.minVersion){const n=[];for(let r=e+1;r<=t;r++){const e=this.versions[this.versionToIndex(r)];for(const t of e.changesSincePreviousVersion)n.push(t.getTextChangeRange())}return Xs(n)}}getLineCount(){return this._getSnapshot().index.getLineCount()}static fromString(t){const n=new e,r=new ohe(0,n,new ahe);n.versions[n.currentVersion]=r;const i=ahe.linesFromText(t);return r.index.load(i.lines),n}};rhe.changeNumberThreshold=8,rhe.changeLengthThreshold=256,rhe.maxVersions=8;var ihe=rhe,ohe=class e{constructor(e,t,n,r=xfe){this.version=e,this.cache=t,this.index=n,this.changesSincePreviousVersion=r}getText(e,t){return this.index.getText(e,t-e)}getLength(){return this.index.getLength()}getChangeRange(t){if(t instanceof e&&this.cache===t.cache)return this.version<=t.version?Gs:this.cache.getTextChangesBetweenVersions(t.version,this.version)}},ahe=class e{constructor(){this.checkEdits=!1}absolutePositionOfStartOfLine(e){return this.lineNumberToInfo(e).absolutePosition}positionToLineOffset(e){const{oneBasedLine:t,zeroBasedColumn:n}=this.root.charOffsetToLineInfo(1,e);return{line:t,offset:n+1}}positionToColumnAndLineText(e){return this.root.charOffsetToLineInfo(1,e)}getLineCount(){return this.root.lineCount()}lineNumberToInfo(e){if(e<=this.getLineCount()){const{position:t,leaf:n}=this.root.lineNumberToInfo(e,0);return{absolutePosition:t,lineText:n&&n.text}}return{absolutePosition:this.root.charCount(),lineText:void 0}}load(t){if(t.length>0){const n=[];for(let e=0;e0&&e{n=n.concat(r.text.substring(e,e+t))}}),n}getLength(){return this.root.charCount()}every(e,t,n){n||(n=this.root.charCount());const r={goSubtree:!0,done:!1,leaf(t,n,r){e(r,t,n)||(this.done=!0)}};return this.walk(t,n-t,r),!r.done}edit(t,n,r){if(0===this.root.charCount())return un.assert(0===n),void 0!==r?(this.load(e.linesFromText(r).lines),this):void 0;{let e;if(this.checkEdits){const i=this.getText(0,this.root.charCount());e=i.slice(0,t)+r+i.slice(t+n)}const i=new the;let o=!1;if(t>=this.root.charCount()){t=this.root.charCount()-1;const e=this.getText(t,1);r=r?e+r:e,n=0,o=!0}else if(n>0){const e=t+n,{zeroBasedColumn:i,lineText:o}=this.positionToColumnAndLineText(e);0===i&&(n+=o.length,r=r?r+o:o)}if(this.root.walk(t,n,i),i.insertLines(r,o),this.checkEdits){const t=i.lineIndex.getText(0,i.lineIndex.getLength());un.assert(e===t,"buffer edit mismatch")}return i.lineIndex}}static buildTreeFromBottom(e){if(e.length<4)return new she(e);const t=new Array(Math.ceil(e.length/4));let n=0;for(let r=0;r0?n[r]=i:n.pop(),{lines:n,lineMap:t}}},she=class e{constructor(e=[]){this.children=e,this.totalChars=0,this.totalLines=0,e.length&&this.updateCounts()}isLeaf(){return!1}updateCounts(){this.totalChars=0,this.totalLines=0;for(const e of this.children)this.totalChars+=e.charCount(),this.totalLines+=e.lineCount()}execWalk(e,t,n,r,i){return n.pre&&n.pre(e,t,this.children[r],this,i),n.goSubtree?(this.children[r].walk(e,t,n),n.post&&n.post(e,t,this.children[r],this,i)):n.goSubtree=!0,n.done}skipChild(e,t,n,r,i){r.pre&&!r.done&&(r.pre(e,t,this.children[n],this,i),r.goSubtree=!0)}walk(e,t,n){if(0===this.children.length)return;let r=0,i=this.children[r].charCount(),o=e;for(;o>=i;)this.skipChild(o,t,r,n,0),o-=i,r++,i=this.children[r].charCount();if(o+t<=i){if(this.execWalk(o,t,n,r,2))return}else{if(this.execWalk(o,i-o,n,r,1))return;let e=t-(i-o);for(r++,i=this.children[r].charCount();e>i;){if(this.execWalk(0,i,n,r,3))return;e-=i,r++,i=this.children[r].charCount()}if(e>0&&this.execWalk(0,e,n,r,4))return}if(n.pre){const e=this.children.length;if(rt)return n.isLeaf()?{oneBasedLine:e,zeroBasedColumn:t,lineText:n.text}:n.charOffsetToLineInfo(e,t);t-=n.charCount(),e+=n.lineCount()}const n=this.lineCount();return 0===n?{oneBasedLine:1,zeroBasedColumn:0,lineText:void 0}:{oneBasedLine:n,zeroBasedColumn:un.checkDefined(this.lineNumberToInfo(n,0).leaf).charCount(),lineText:void 0}}lineNumberToInfo(e,t){for(const n of this.children){const r=n.lineCount();if(r>=e)return n.isLeaf()?{position:t,leaf:n}:n.lineNumberToInfo(e,t);e-=r,t+=n.charCount()}return{position:t,leaf:void 0}}splitAfter(t){let n;const r=this.children.length,i=++t;if(t=0;e--)0===a[e].children.length&&a.pop()}t&&a.push(t),this.updateCounts();for(let e=0;e{(this.packageInstalledPromise??(this.packageInstalledPromise=new Map)).set(this.packageInstallId,{resolve:e,reject:t})}));return this.installer.send(t),n}attach(e){this.projectService=e,this.installer=this.createInstallerProcess()}onProjectClosed(e){this.installer.send({projectName:e.getProjectName(),kind:"closeProject"})}enqueueInstallTypingsRequest(e,t,n){const r=Sfe(e,t,n);this.logger.hasLevel(3)&&this.logger.info(`TIAdapter:: Scheduling throttled operation:${VK(r)}`),this.activeRequestCount0?this.activeRequestCount--:un.fail("TIAdapter:: Received too many responses");!this.requestQueue.isEmpty();){const e=this.requestQueue.dequeue();if(this.requestMap.get(e.projectName)===e){this.requestMap.delete(e.projectName),this.scheduleRequest(e);break}this.logger.hasLevel(3)&&this.logger.info(`TIAdapter:: Skipping defunct request for: ${e.projectName}`)}this.projectService.updateTypingsForProject(e),this.event(e,"setTypings");break;case MK:this.projectService.watchTypingLocations(e)}}scheduleRequest(t){this.logger.hasLevel(3)&&this.logger.info(`TIAdapter:: Scheduling request for: ${t.projectName}`),this.activeRequestCount++,this.host.setTimeout((()=>{this.logger.hasLevel(3)&&this.logger.info(`TIAdapter:: Sending request:${VK(t)}`),this.installer.send(t)}),e.requestDelayMillis,`${t.projectName}::${t.kind}`)}};lhe.requestDelayMillis=100;var _he=lhe,uhe={};i(uhe,{ActionInvalidate:()=>AK,ActionPackageInstalled:()=>IK,ActionSet:()=>PK,ActionWatchTypingLocations:()=>MK,Arguments:()=>FK,AutoImportProviderProject:()=>lme,AuxiliaryProject:()=>sme,CharRangeSection:()=>ehe,CloseFileWatcherEvent:()=>Fme,CommandNames:()=>Dge,ConfigFileDiagEvent:()=>Sme,ConfiguredProject:()=>_me,ConfiguredProjectLoadKind:()=>Qme,CreateDirectoryWatcherEvent:()=>Dme,CreateFileWatcherEvent:()=>Nme,Errors:()=>yfe,EventBeginInstallTypes:()=>LK,EventEndInstallTypes:()=>jK,EventInitializationFailed:()=>RK,EventTypesRegistry:()=>OK,ExternalProject:()=>ume,GcTimer:()=>Ofe,InferredProject:()=>ame,LargeFileReferencedEvent:()=>kme,LineIndex:()=>ahe,LineLeaf:()=>che,LineNode:()=>she,LogLevel:()=>bfe,Msg:()=>kfe,OpenFileInfoTelemetryEvent:()=>wme,Project:()=>ome,ProjectInfoTelemetryEvent:()=>Cme,ProjectKind:()=>Yfe,ProjectLanguageServiceStateEvent:()=>Tme,ProjectLoadingFinishEvent:()=>xme,ProjectLoadingStartEvent:()=>bme,ProjectService:()=>hge,ProjectsUpdatedInBackgroundEvent:()=>vme,ScriptInfo:()=>Gfe,ScriptVersionCache:()=>ihe,Session:()=>$ge,TextStorage:()=>Hfe,ThrottledOperations:()=>Ife,TypingsInstallerAdapter:()=>_he,allFilesAreJsOrDts:()=>tme,allRootFilesAreJsOrDts:()=>eme,asNormalizedPath:()=>wfe,convertCompilerOptions:()=>Rme,convertFormatOptions:()=>jme,convertScriptKindName:()=>zme,convertTypeAcquisition:()=>Bme,convertUserPreferences:()=>qme,convertWatchOptions:()=>Mme,countEachFileTypes:()=>Zfe,createInstallTypingsRequest:()=>Sfe,createModuleSpecifierCache:()=>bge,createNormalizedPathMap:()=>Nfe,createPackageJsonCache:()=>xge,createSortedArray:()=>Afe,emptyArray:()=>xfe,findArgument:()=>JK,formatDiagnosticToProtocol:()=>Nge,formatMessage:()=>Fge,getBaseConfigFileName:()=>Lfe,getDetailWatchInfo:()=>oge,getLocationInNewDocument:()=>Qge,hasArgument:()=>BK,hasNoTypeScriptSource:()=>nme,indent:()=>UK,isBackgroundProject:()=>mme,isConfigFile:()=>yge,isConfiguredProject:()=>pme,isDynamicFileName:()=>Kfe,isExternalProject:()=>fme,isInferredProject:()=>dme,isInferredProjectName:()=>Dfe,isProjectDeferredClose:()=>gme,makeAutoImportProviderProjectName:()=>Efe,makeAuxiliaryProjectName:()=>Pfe,makeInferredProjectName:()=>Ffe,maxFileSize:()=>yme,maxProgramSizeForNonTsFiles:()=>hme,normalizedPathToPath:()=>Cfe,nowString:()=>zK,nullCancellationToken:()=>kge,nullTypingsInstaller:()=>$me,protocol:()=>jfe,scriptInfoIsContainedByBackgroundProject:()=>Xfe,scriptInfoIsContainedByDeferredClosedProject:()=>Qfe,stringifyIndented:()=>VK,toEvent:()=>Pge,toNormalizedPath:()=>Tfe,tryConvertScriptKindName:()=>Jme,typingsInstaller:()=>ufe,updateProjectIfDirty:()=>sge}),"undefined"!=typeof console&&(un.loggingHost={log(e,t){switch(e){case 1:return console.error(t);case 2:return console.warn(t);case 3:case 4:return console.log(t)}}})})({get exports(){return i},set exports(t){i=t,e.exports&&(e.exports=t)}})},992:e=>{function t(e){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}t.keys=()=>[],t.resolve=t,t.id=992,e.exports=t},728:()=>{},714:()=>{},178:()=>{},965:()=>{},98:()=>{},31:()=>{},791:()=>{}},t={};function n(r){var i=t[r];if(void 0!==i)return i.exports;var o=t[r]={exports:{}};return e[r].call(o.exports,o,o.exports,n),o.exports}n.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t);var r=n(421);guts=r})(); \ No newline at end of file + })(name => super[name], (name, value) => super[name] = value);`};function JN(e,t){return fF(e)&&aD(e.expression)&&!!(8192&Zd(e.expression))&&e.expression.escapedText===t}function zN(e){return 9===e.kind}function qN(e){return 10===e.kind}function UN(e){return 11===e.kind}function VN(e){return 12===e.kind}function WN(e){return 14===e.kind}function $N(e){return 15===e.kind}function HN(e){return 16===e.kind}function KN(e){return 17===e.kind}function GN(e){return 18===e.kind}function XN(e){return 26===e.kind}function QN(e){return 28===e.kind}function YN(e){return 40===e.kind}function ZN(e){return 41===e.kind}function eD(e){return 42===e.kind}function tD(e){return 54===e.kind}function nD(e){return 58===e.kind}function rD(e){return 59===e.kind}function iD(e){return 29===e.kind}function oD(e){return 39===e.kind}function aD(e){return 80===e.kind}function sD(e){return 81===e.kind}function cD(e){return 95===e.kind}function lD(e){return 90===e.kind}function _D(e){return 134===e.kind}function uD(e){return 131===e.kind}function dD(e){return 135===e.kind}function pD(e){return 148===e.kind}function fD(e){return 126===e.kind}function mD(e){return 128===e.kind}function gD(e){return 164===e.kind}function hD(e){return 129===e.kind}function yD(e){return 108===e.kind}function vD(e){return 102===e.kind}function bD(e){return 84===e.kind}function xD(e){return 167===e.kind}function kD(e){return 168===e.kind}function SD(e){return 169===e.kind}function TD(e){return 170===e.kind}function CD(e){return 171===e.kind}function wD(e){return 172===e.kind}function ND(e){return 173===e.kind}function DD(e){return 174===e.kind}function FD(e){return 175===e.kind}function ED(e){return 176===e.kind}function PD(e){return 177===e.kind}function AD(e){return 178===e.kind}function ID(e){return 179===e.kind}function OD(e){return 180===e.kind}function LD(e){return 181===e.kind}function jD(e){return 182===e.kind}function MD(e){return 183===e.kind}function RD(e){return 184===e.kind}function BD(e){return 185===e.kind}function JD(e){return 186===e.kind}function zD(e){return 187===e.kind}function qD(e){return 188===e.kind}function UD(e){return 189===e.kind}function VD(e){return 190===e.kind}function WD(e){return 203===e.kind}function $D(e){return 191===e.kind}function HD(e){return 192===e.kind}function KD(e){return 193===e.kind}function GD(e){return 194===e.kind}function XD(e){return 195===e.kind}function QD(e){return 196===e.kind}function YD(e){return 197===e.kind}function ZD(e){return 198===e.kind}function eF(e){return 199===e.kind}function tF(e){return 200===e.kind}function nF(e){return 201===e.kind}function rF(e){return 202===e.kind}function iF(e){return 206===e.kind}function oF(e){return 205===e.kind}function aF(e){return 204===e.kind}function sF(e){return 207===e.kind}function cF(e){return 208===e.kind}function lF(e){return 209===e.kind}function _F(e){return 210===e.kind}function uF(e){return 211===e.kind}function dF(e){return 212===e.kind}function pF(e){return 213===e.kind}function fF(e){return 214===e.kind}function mF(e){return 215===e.kind}function gF(e){return 216===e.kind}function hF(e){return 217===e.kind}function yF(e){return 218===e.kind}function vF(e){return 219===e.kind}function bF(e){return 220===e.kind}function xF(e){return 221===e.kind}function kF(e){return 222===e.kind}function SF(e){return 223===e.kind}function TF(e){return 224===e.kind}function CF(e){return 225===e.kind}function wF(e){return 226===e.kind}function NF(e){return 227===e.kind}function DF(e){return 228===e.kind}function FF(e){return 229===e.kind}function EF(e){return 230===e.kind}function PF(e){return 231===e.kind}function AF(e){return 232===e.kind}function IF(e){return 233===e.kind}function OF(e){return 234===e.kind}function LF(e){return 235===e.kind}function jF(e){return 239===e.kind}function MF(e){return 236===e.kind}function RF(e){return 237===e.kind}function BF(e){return 238===e.kind}function JF(e){return 356===e.kind}function zF(e){return 357===e.kind}function qF(e){return 240===e.kind}function UF(e){return 241===e.kind}function VF(e){return 242===e.kind}function WF(e){return 244===e.kind}function $F(e){return 243===e.kind}function HF(e){return 245===e.kind}function KF(e){return 246===e.kind}function GF(e){return 247===e.kind}function XF(e){return 248===e.kind}function QF(e){return 249===e.kind}function YF(e){return 250===e.kind}function ZF(e){return 251===e.kind}function eE(e){return 252===e.kind}function tE(e){return 253===e.kind}function nE(e){return 254===e.kind}function rE(e){return 255===e.kind}function iE(e){return 256===e.kind}function oE(e){return 257===e.kind}function aE(e){return 258===e.kind}function sE(e){return 259===e.kind}function cE(e){return 260===e.kind}function lE(e){return 261===e.kind}function _E(e){return 262===e.kind}function uE(e){return 263===e.kind}function dE(e){return 264===e.kind}function pE(e){return 265===e.kind}function fE(e){return 266===e.kind}function mE(e){return 267===e.kind}function gE(e){return 268===e.kind}function hE(e){return 269===e.kind}function yE(e){return 270===e.kind}function vE(e){return 271===e.kind}function bE(e){return 272===e.kind}function xE(e){return 273===e.kind}function kE(e){return 274===e.kind}function SE(e){return 303===e.kind}function TE(e){return 301===e.kind}function CE(e){return 302===e.kind}function wE(e){return 301===e.kind}function NE(e){return 302===e.kind}function DE(e){return 275===e.kind}function FE(e){return 281===e.kind}function EE(e){return 276===e.kind}function PE(e){return 277===e.kind}function AE(e){return 278===e.kind}function IE(e){return 279===e.kind}function OE(e){return 280===e.kind}function LE(e){return 282===e.kind}function jE(e){return 80===e.kind||11===e.kind}function ME(e){return 283===e.kind}function RE(e){return 354===e.kind}function BE(e){return 358===e.kind}function JE(e){return 284===e.kind}function zE(e){return 285===e.kind}function qE(e){return 286===e.kind}function UE(e){return 287===e.kind}function VE(e){return 288===e.kind}function WE(e){return 289===e.kind}function $E(e){return 290===e.kind}function HE(e){return 291===e.kind}function KE(e){return 292===e.kind}function GE(e){return 293===e.kind}function XE(e){return 294===e.kind}function QE(e){return 295===e.kind}function YE(e){return 296===e.kind}function ZE(e){return 297===e.kind}function eP(e){return 298===e.kind}function tP(e){return 299===e.kind}function nP(e){return 300===e.kind}function rP(e){return 304===e.kind}function iP(e){return 305===e.kind}function oP(e){return 306===e.kind}function aP(e){return 307===e.kind}function sP(e){return 308===e.kind}function cP(e){return 309===e.kind}function lP(e){return 310===e.kind}function _P(e){return 311===e.kind}function uP(e){return 312===e.kind}function dP(e){return 325===e.kind}function pP(e){return 326===e.kind}function fP(e){return 327===e.kind}function mP(e){return 313===e.kind}function gP(e){return 314===e.kind}function hP(e){return 315===e.kind}function yP(e){return 316===e.kind}function vP(e){return 317===e.kind}function bP(e){return 318===e.kind}function xP(e){return 319===e.kind}function kP(e){return 320===e.kind}function SP(e){return 321===e.kind}function TP(e){return 323===e.kind}function CP(e){return 324===e.kind}function wP(e){return 329===e.kind}function NP(e){return 331===e.kind}function DP(e){return 333===e.kind}function FP(e){return 339===e.kind}function EP(e){return 334===e.kind}function PP(e){return 335===e.kind}function AP(e){return 336===e.kind}function IP(e){return 337===e.kind}function OP(e){return 338===e.kind}function LP(e){return 340===e.kind}function jP(e){return 332===e.kind}function MP(e){return 348===e.kind}function RP(e){return 341===e.kind}function BP(e){return 342===e.kind}function JP(e){return 343===e.kind}function zP(e){return 344===e.kind}function qP(e){return 345===e.kind}function UP(e){return 346===e.kind}function VP(e){return 347===e.kind}function WP(e){return 328===e.kind}function $P(e){return 349===e.kind}function HP(e){return 330===e.kind}function KP(e){return 351===e.kind}function GP(e){return 350===e.kind}function XP(e){return 352===e.kind}function QP(e){return 353===e.kind}var YP,ZP=new WeakMap;function eA(e,t){var n;const r=e.kind;return Dl(r)?353===r?e._children:null==(n=ZP.get(t))?void 0:n.get(e):l}function tA(e,t,n){353===e.kind&&un.fail("Should not need to re-set the children of a SyntaxList.");let r=ZP.get(t);return void 0===r&&(r=new WeakMap,ZP.set(t,r)),r.set(e,n),n}function nA(e,t){var n;353===e.kind&&un.fail("Did not expect to unset the children of a SyntaxList."),null==(n=ZP.get(t))||n.delete(e)}function rA(e,t){const n=ZP.get(e);void 0!==n&&(ZP.delete(e),ZP.set(t,n))}function iA(e){return e.createExportDeclaration(void 0,!1,e.createNamedExports([]),void 0)}function oA(e,t,n,r){if(kD(n))return xI(e.createElementAccessExpression(t,n.expression),r);{const r=xI(dl(n)?e.createPropertyAccessExpression(t,n):e.createElementAccessExpression(t,n),n);return kw(r,128),r}}function aA(e,t){const n=CI.createIdentifier(e||"React");return DT(n,pc(t)),n}function sA(e,t,n){if(xD(t)){const r=sA(e,t.left,n),i=e.createIdentifier(gc(t.right));return i.escapedText=t.right.escapedText,e.createPropertyAccessExpression(r,i)}return aA(gc(t),n)}function cA(e,t,n,r){return t?sA(e,t,r):e.createPropertyAccessExpression(aA(n,r),"createElement")}function lA(e,t,n,r,i,o){const a=[n];if(r&&a.push(r),i&&i.length>0)if(r||a.push(e.createNull()),i.length>1)for(const e of i)FA(e),a.push(e);else a.push(i[0]);return xI(e.createCallExpression(t,void 0,a),o)}function _A(e,t,n,r,i,o,a){const s=function(e,t,n,r){return t?sA(e,t,r):e.createPropertyAccessExpression(aA(n,r),"Fragment")}(e,n,r,o),c=[s,e.createNull()];if(i&&i.length>0)if(i.length>1)for(const e of i)FA(e),c.push(e);else c.push(i[0]);return xI(e.createCallExpression(cA(e,t,r,o),void 0,c),a)}function uA(e,t,n){if(_E(t)){const r=ge(t.declarations),i=e.updateVariableDeclaration(r,r.name,void 0,void 0,n);return xI(e.createVariableStatement(void 0,e.updateVariableDeclarationList(t,[i])),t)}{const r=xI(e.createAssignment(t,n),t);return xI(e.createExpressionStatement(r),t)}}function dA(e,t){if(xD(t)){const n=dA(e,t.left),r=DT(xI(e.cloneNode(t.right),t.right),t.right.parent);return xI(e.createPropertyAccessExpression(n,r),t)}return DT(xI(e.cloneNode(t),t),t.parent)}function pA(e,t){return aD(t)?e.createStringLiteralFromNode(t):kD(t)?DT(xI(e.cloneNode(t.expression),t.expression),t.expression.parent):DT(xI(e.cloneNode(t),t),t.parent)}function fA(e,t,n,r){switch(n.name&&sD(n.name)&&un.failBadSyntaxKind(n.name,"Private identifiers are not allowed in object literals."),n.kind){case 178:case 179:return function(e,t,n,r,i){const{firstAccessor:o,getAccessor:a,setAccessor:s}=pv(t,n);if(n===o)return xI(e.createObjectDefinePropertyCall(r,pA(e,n.name),e.createPropertyDescriptor({enumerable:e.createFalse(),configurable:!0,get:a&&xI(hw(e.createFunctionExpression(Dc(a),void 0,void 0,void 0,a.parameters,void 0,a.body),a),a),set:s&&xI(hw(e.createFunctionExpression(Dc(s),void 0,void 0,void 0,s.parameters,void 0,s.body),s),s)},!i)),o)}(e,t.properties,n,r,!!t.multiLine);case 304:return function(e,t,n){return hw(xI(e.createAssignment(oA(e,n,t.name,t.name),t.initializer),t),t)}(e,n,r);case 305:return function(e,t,n){return hw(xI(e.createAssignment(oA(e,n,t.name,t.name),e.cloneNode(t.name)),t),t)}(e,n,r);case 175:return function(e,t,n){return hw(xI(e.createAssignment(oA(e,n,t.name,t.name),hw(xI(e.createFunctionExpression(Dc(t),t.asteriskToken,void 0,void 0,t.parameters,void 0,t.body),t),t)),t),t)}(e,n,r)}}function mA(e,t,n,r,i){const o=t.operator;un.assert(46===o||47===o,"Expected 'node' to be a pre- or post-increment or pre- or post-decrement expression");const a=e.createTempVariable(r);xI(n=e.createAssignment(a,n),t.operand);let s=CF(t)?e.createPrefixUnaryExpression(o,a):e.createPostfixUnaryExpression(a,o);return xI(s,t),i&&(s=e.createAssignment(i,s),xI(s,t)),xI(n=e.createComma(n,s),t),wF(t)&&xI(n=e.createComma(n,a),t),n}function gA(e){return!!(65536&Zd(e))}function hA(e){return!!(32768&Zd(e))}function yA(e){return!!(16384&Zd(e))}function vA(e){return UN(e.expression)&&"use strict"===e.expression.text}function bA(e){for(const t of e){if(!pf(t))break;if(vA(t))return t}}function xA(e){const t=fe(e);return void 0!==t&&pf(t)&&vA(t)}function kA(e){return 227===e.kind&&28===e.operatorToken.kind}function SA(e){return kA(e)||zF(e)}function TA(e){return yF(e)&&Em(e)&&!!tl(e)}function CA(e){const t=nl(e);return un.assertIsDefined(t),t}function wA(e,t=63){switch(e.kind){case 218:return!(-2147483648&t&&TA(e)||!(1&t));case 217:case 235:return!!(2&t);case 239:return!!(34&t);case 234:return!!(16&t);case 236:return!!(4&t);case 356:return!!(8&t)}return!1}function NA(e,t=63){for(;wA(e,t);)e=e.expression;return e}function DA(e,t=63){let n=e.parent;for(;wA(n,t);)n=n.parent,un.assert(n);return n}function FA(e){return Ew(e,!0)}function EA(e){const t=_c(e,sP),n=t&&t.emitNode;return n&&n.externalHelpersModuleName}function PA(e){const t=_c(e,sP),n=t&&t.emitNode;return!(!n||!n.externalHelpersModuleName&&!n.externalHelpers)}function AA(e,t,n,r,i,o,a){if(r.importHelpers&&hp(n,r)){const s=vk(r),c=RV(n,r),l=function(e){return N(Ww(e),e=>!e.scoped)}(n);if(1!==c&&(s>=5&&s<=99||99===c||void 0===c&&200===s)){if(l){const r=[];for(const e of l){const t=e.importName;t&&ce(r,t)}if($(r)){r.sort(Ct);const i=e.createNamedImports(E(r,r=>wd(n,r)?e.createImportSpecifier(!1,void 0,e.createIdentifier(r)):e.createImportSpecifier(!1,e.createIdentifier(r),t.getUnscopedHelperName(r))));yw(_c(n,sP)).externalHelpers=!0;const o=e.createImportDeclaration(void 0,e.createImportClause(void 0,void 0,i),e.createStringLiteral(Uu),void 0);return Tw(o,2),o}}}else{const t=function(e,t,n,r,i,o){const a=EA(t);if(a)return a;if($(r)||(i||Sk(n)&&o)&&MV(t,n)<4){const n=yw(_c(t,sP));return n.externalHelpersModuleName||(n.externalHelpersModuleName=e.createUniqueName(Uu))}}(e,n,r,l,i,o||a);if(t){const n=e.createImportEqualsDeclaration(void 0,!1,t,e.createExternalModuleReference(e.createStringLiteral(Uu)));return Tw(n,2),n}}}}function IA(e,t,n){const r=Sg(t);if(r&&!Tg(t)&&!Wd(t)){const i=r.name;return 11===i.kind?e.getGeneratedNameForNode(t):Wl(i)?i:e.createIdentifier(Vd(n,i)||gc(i))}return 273===t.kind&&t.importClause||279===t.kind&&t.moduleSpecifier?e.getGeneratedNameForNode(t):void 0}function OA(e,t,n,r,i,o){const a=kg(t);if(a&&UN(a))return function(e,t,n,r,i){return LA(n,r.getExternalModuleFileFromDeclaration(e),t,i)}(t,r,e,i,o)||function(e,t,n){const r=n.renamedDependencies&&n.renamedDependencies.get(t.text);return r?e.createStringLiteral(r):void 0}(e,a,n)||e.cloneNode(a)}function LA(e,t,n,r){if(t)return t.moduleName?e.createStringLiteral(t.moduleName):!t.isDeclarationFile&&r.outFile?e.createStringLiteral(zy(n,t.fileName)):void 0}function jA(e){if(C_(e))return e.initializer;if(rP(e)){const t=e.initializer;return rb(t,!0)?t.right:void 0}return iP(e)?e.objectAssignmentInitializer:rb(e,!0)?e.right:PF(e)?jA(e.expression):void 0}function MA(e){if(C_(e))return e.name;if(!v_(e))return rb(e,!0)?MA(e.left):PF(e)?MA(e.expression):e;switch(e.kind){case 304:return MA(e.initializer);case 305:return e.name;case 306:return MA(e.expression)}}function RA(e){switch(e.kind){case 170:case 209:return e.dotDotDotToken;case 231:case 306:return e}}function BA(e){const t=JA(e);return un.assert(!!t||oP(e),"Invalid property name for binding element."),t}function JA(e){switch(e.kind){case 209:if(e.propertyName){const t=e.propertyName;return sD(t)?un.failBadSyntaxKind(t):kD(t)&&zA(t.expression)?t.expression:t}break;case 304:if(e.name){const t=e.name;return sD(t)?un.failBadSyntaxKind(t):kD(t)&&zA(t.expression)?t.expression:t}break;case 306:return e.name&&sD(e.name)?un.failBadSyntaxKind(e.name):e.name}const t=MA(e);if(t&&t_(t))return t}function zA(e){const t=e.kind;return 11===t||9===t}function qA(e){switch(e.kind){case 207:case 208:case 210:return e.elements;case 211:return e.properties}}function UA(e){if(e){let t=e;for(;;){if(aD(t)||!t.body)return aD(t)?t:t.name;t=t.body}}}function VA(e){const t=e.kind;return 177===t||179===t}function WA(e){const t=e.kind;return 177===t||178===t||179===t}function $A(e){const t=e.kind;return 304===t||305===t||263===t||177===t||182===t||176===t||283===t||244===t||265===t||266===t||267===t||268===t||272===t||273===t||271===t||279===t||278===t}function HA(e){const t=e.kind;return 176===t||304===t||305===t||283===t||271===t}function KA(e){return nD(e)||tD(e)}function GA(e){return aD(e)||ZD(e)}function XA(e){return pD(e)||YN(e)||ZN(e)}function QA(e){return nD(e)||YN(e)||ZN(e)}function YA(e){return aD(e)||UN(e)}function ZA(e){return function(e){return 48===e||49===e||50===e}(e)||function(e){return function(e){return 40===e||41===e}(e)||function(e){return function(e){return 43===e}(e)||function(e){return 42===e||44===e||45===e}(e)}(e)}(e)}function eI(e){return function(e){return 56===e||57===e}(e)||function(e){return function(e){return 51===e||52===e||53===e}(e)||function(e){return function(e){return 35===e||37===e||36===e||38===e}(e)||function(e){return function(e){return 30===e||33===e||32===e||34===e||104===e||103===e}(e)||ZA(e)}(e)}(e)}(e)}function tI(e){return function(e){return 61===e||eI(e)||eb(e)}(t=e.kind)||28===t;var t}(e=>{function t(e,n,r,i,o,a,c){const l=n>0?o[n-1]:void 0;return un.assertEqual(r[n],t),o[n]=e.onEnter(i[n],l,c),r[n]=s(e,t),n}function n(e,t,r,i,o,a,_){un.assertEqual(r[t],n),un.assertIsDefined(e.onLeft),r[t]=s(e,n);const u=e.onLeft(i[t].left,o[t],i[t]);return u?(l(t,i,u),c(t,r,i,o,u)):t}function r(e,t,n,i,o,a,c){return un.assertEqual(n[t],r),un.assertIsDefined(e.onOperator),n[t]=s(e,r),e.onOperator(i[t].operatorToken,o[t],i[t]),t}function i(e,t,n,r,o,a,_){un.assertEqual(n[t],i),un.assertIsDefined(e.onRight),n[t]=s(e,i);const u=e.onRight(r[t].right,o[t],r[t]);return u?(l(t,r,u),c(t,n,r,o,u)):t}function o(e,t,n,r,i,a,c){un.assertEqual(n[t],o),n[t]=s(e,o);const l=e.onExit(r[t],i[t]);if(t>0){if(t--,e.foldState){const r=n[t]===o?"right":"left";i[t]=e.foldState(i[t],l,r)}}else a.value=l;return t}function a(e,t,n,r,i,o,s){return un.assertEqual(n[t],a),t}function s(e,s){switch(s){case t:if(e.onLeft)return n;case n:if(e.onOperator)return r;case r:if(e.onRight)return i;case i:return o;case o:case a:return a;default:un.fail("Invalid state")}}function c(e,n,r,i,o){return n[++e]=t,r[e]=o,i[e]=void 0,e}function l(e,t,n){if(un.shouldAssert(2))for(;e>=0;)un.assert(t[e]!==n,"Circular traversal detected."),e--}e.enter=t,e.left=n,e.operator=r,e.right=i,e.exit=o,e.done=a,e.nextState=s})(YP||(YP={}));var nI,rI,iI,oI,aI,sI=class{constructor(e,t,n,r,i,o){this.onEnter=e,this.onLeft=t,this.onOperator=n,this.onRight=r,this.onExit=i,this.foldState=o}};function cI(e,t,n,r,i,o){const a=new sI(e,t,n,r,i,o);return function(e,t){const n={value:void 0},r=[YP.enter],i=[e],o=[void 0];let s=0;for(;r[s]!==YP.done;)s=r[s](a,s,r,i,o,n,t);return un.assertEqual(s,0),n.value}}function lI(e){return 95===(t=e.kind)||90===t;var t}function _I(e,t){if(void 0!==t)return 0===t.length?t:xI(e.createNodeArray([],t.hasTrailingComma),t)}function uI(e){var t;const n=e.emitNode.autoGenerate;if(4&n.flags){const r=n.id;let i=e,o=i.original;for(;o;){i=o;const e=null==(t=i.emitNode)?void 0:t.autoGenerate;if(dl(i)&&(void 0===e||4&e.flags&&e.id!==r))break;o=i.original}return i}return e}function dI(e,t){return"object"==typeof e?pI(!1,e.prefix,e.node,e.suffix,t):"string"==typeof e?e.length>0&&35===e.charCodeAt(0)?e.slice(1):e:""}function pI(e,t,n,r,i){return t=dI(t,i),r=dI(r,i),`${e?"#":""}${t}${n=function(e,t){return"string"==typeof e?e:function(e,t){return $l(e)?t(e).slice(1):Wl(e)?t(e):sD(e)?e.escapedText.slice(1):gc(e)}(e,un.checkDefined(t))}(n,i)}${r}`}function fI(e,t,n,r){return e.updatePropertyDeclaration(t,n,e.getGeneratedPrivateNameForNode(t.name,void 0,"_accessor_storage"),void 0,void 0,r)}function mI(e,t,n,r,i=e.createThis()){return e.createGetAccessorDeclaration(n,r,[],void 0,e.createBlock([e.createReturnStatement(e.createPropertyAccessExpression(i,e.getGeneratedPrivateNameForNode(t.name,void 0,"_accessor_storage")))]))}function gI(e,t,n,r,i=e.createThis()){return e.createSetAccessorDeclaration(n,r,[e.createParameterDeclaration(void 0,void 0,"value")],e.createBlock([e.createExpressionStatement(e.createAssignment(e.createPropertyAccessExpression(i,e.getGeneratedPrivateNameForNode(t.name,void 0,"_accessor_storage")),e.createIdentifier("value")))]))}function hI(e){let t=e.expression;for(;;)if(t=NA(t),zF(t))t=ve(t.elements);else{if(!kA(t)){if(rb(t,!0)&&Wl(t.left))return t;break}t=t.right}}function yI(e,t){if(function(e){return yF(e)&&ey(e)&&!e.emitNode}(e))yI(e.expression,t);else if(kA(e))yI(e.left,t),yI(e.right,t);else if(zF(e))for(const n of e.elements)yI(n,t);else t.push(e)}function vI(e){const t=[];return yI(e,t),t}function bI(e){if(65536&e.transformFlags)return!0;if(128&e.transformFlags)for(const t of qA(e)){const e=MA(t);if(e&&S_(e)){if(65536&e.transformFlags)return!0;if(128&e.transformFlags&&bI(e))return!0}}return!1}function xI(e,t){return t?CT(e,t.pos,t.end):e}function kI(e){const t=e.kind;return 169===t||170===t||172===t||173===t||174===t||175===t||177===t||178===t||179===t||182===t||186===t||219===t||220===t||232===t||244===t||263===t||264===t||265===t||266===t||267===t||268===t||272===t||273===t||278===t||279===t}function SI(e){const t=e.kind;return 170===t||173===t||175===t||178===t||179===t||232===t||264===t}var TI={createBaseSourceFileNode:e=>new(aI||(aI=Mx.getSourceFileConstructor()))(e,-1,-1),createBaseIdentifierNode:e=>new(iI||(iI=Mx.getIdentifierConstructor()))(e,-1,-1),createBasePrivateIdentifierNode:e=>new(oI||(oI=Mx.getPrivateIdentifierConstructor()))(e,-1,-1),createBaseTokenNode:e=>new(rI||(rI=Mx.getTokenConstructor()))(e,-1,-1),createBaseNode:e=>new(nI||(nI=Mx.getNodeConstructor()))(e,-1,-1)},CI=iw(1,TI);function wI(e,t){return t&&e(t)}function NI(e,t,n){if(n){if(t)return t(n);for(const t of n){const n=e(t);if(n)return n}}}function DI(e,t){return 42===e.charCodeAt(t+1)&&42===e.charCodeAt(t+2)&&47!==e.charCodeAt(t+3)}function FI(e){return d(e.statements,EI)||function(e){return 8388608&e.flags?PI(e):void 0}(e)}function EI(e){return kI(e)&&function(e){return $(e.modifiers,e=>95===e.kind)}(e)||bE(e)&&JE(e.moduleReference)||xE(e)||AE(e)||IE(e)?e:void 0}function PI(e){return function(e){return RF(e)&&102===e.keywordToken&&"meta"===e.name.escapedText}(e)?e:XI(e,PI)}var AI,II={167:function(e,t,n){return wI(t,e.left)||wI(t,e.right)},169:function(e,t,n){return NI(t,n,e.modifiers)||wI(t,e.name)||wI(t,e.constraint)||wI(t,e.default)||wI(t,e.expression)},305:function(e,t,n){return NI(t,n,e.modifiers)||wI(t,e.name)||wI(t,e.questionToken)||wI(t,e.exclamationToken)||wI(t,e.equalsToken)||wI(t,e.objectAssignmentInitializer)},306:function(e,t,n){return wI(t,e.expression)},170:function(e,t,n){return NI(t,n,e.modifiers)||wI(t,e.dotDotDotToken)||wI(t,e.name)||wI(t,e.questionToken)||wI(t,e.type)||wI(t,e.initializer)},173:function(e,t,n){return NI(t,n,e.modifiers)||wI(t,e.name)||wI(t,e.questionToken)||wI(t,e.exclamationToken)||wI(t,e.type)||wI(t,e.initializer)},172:function(e,t,n){return NI(t,n,e.modifiers)||wI(t,e.name)||wI(t,e.questionToken)||wI(t,e.type)||wI(t,e.initializer)},304:function(e,t,n){return NI(t,n,e.modifiers)||wI(t,e.name)||wI(t,e.questionToken)||wI(t,e.exclamationToken)||wI(t,e.initializer)},261:function(e,t,n){return wI(t,e.name)||wI(t,e.exclamationToken)||wI(t,e.type)||wI(t,e.initializer)},209:function(e,t,n){return wI(t,e.dotDotDotToken)||wI(t,e.propertyName)||wI(t,e.name)||wI(t,e.initializer)},182:function(e,t,n){return NI(t,n,e.modifiers)||NI(t,n,e.typeParameters)||NI(t,n,e.parameters)||wI(t,e.type)},186:function(e,t,n){return NI(t,n,e.modifiers)||NI(t,n,e.typeParameters)||NI(t,n,e.parameters)||wI(t,e.type)},185:function(e,t,n){return NI(t,n,e.modifiers)||NI(t,n,e.typeParameters)||NI(t,n,e.parameters)||wI(t,e.type)},180:OI,181:OI,175:function(e,t,n){return NI(t,n,e.modifiers)||wI(t,e.asteriskToken)||wI(t,e.name)||wI(t,e.questionToken)||wI(t,e.exclamationToken)||NI(t,n,e.typeParameters)||NI(t,n,e.parameters)||wI(t,e.type)||wI(t,e.body)},174:function(e,t,n){return NI(t,n,e.modifiers)||wI(t,e.name)||wI(t,e.questionToken)||NI(t,n,e.typeParameters)||NI(t,n,e.parameters)||wI(t,e.type)},177:function(e,t,n){return NI(t,n,e.modifiers)||wI(t,e.name)||NI(t,n,e.typeParameters)||NI(t,n,e.parameters)||wI(t,e.type)||wI(t,e.body)},178:function(e,t,n){return NI(t,n,e.modifiers)||wI(t,e.name)||NI(t,n,e.typeParameters)||NI(t,n,e.parameters)||wI(t,e.type)||wI(t,e.body)},179:function(e,t,n){return NI(t,n,e.modifiers)||wI(t,e.name)||NI(t,n,e.typeParameters)||NI(t,n,e.parameters)||wI(t,e.type)||wI(t,e.body)},263:function(e,t,n){return NI(t,n,e.modifiers)||wI(t,e.asteriskToken)||wI(t,e.name)||NI(t,n,e.typeParameters)||NI(t,n,e.parameters)||wI(t,e.type)||wI(t,e.body)},219:function(e,t,n){return NI(t,n,e.modifiers)||wI(t,e.asteriskToken)||wI(t,e.name)||NI(t,n,e.typeParameters)||NI(t,n,e.parameters)||wI(t,e.type)||wI(t,e.body)},220:function(e,t,n){return NI(t,n,e.modifiers)||NI(t,n,e.typeParameters)||NI(t,n,e.parameters)||wI(t,e.type)||wI(t,e.equalsGreaterThanToken)||wI(t,e.body)},176:function(e,t,n){return NI(t,n,e.modifiers)||wI(t,e.body)},184:function(e,t,n){return wI(t,e.typeName)||NI(t,n,e.typeArguments)},183:function(e,t,n){return wI(t,e.assertsModifier)||wI(t,e.parameterName)||wI(t,e.type)},187:function(e,t,n){return wI(t,e.exprName)||NI(t,n,e.typeArguments)},188:function(e,t,n){return NI(t,n,e.members)},189:function(e,t,n){return wI(t,e.elementType)},190:function(e,t,n){return NI(t,n,e.elements)},193:LI,194:LI,195:function(e,t,n){return wI(t,e.checkType)||wI(t,e.extendsType)||wI(t,e.trueType)||wI(t,e.falseType)},196:function(e,t,n){return wI(t,e.typeParameter)},206:function(e,t,n){return wI(t,e.argument)||wI(t,e.attributes)||wI(t,e.qualifier)||NI(t,n,e.typeArguments)},303:function(e,t,n){return wI(t,e.assertClause)},197:jI,199:jI,200:function(e,t,n){return wI(t,e.objectType)||wI(t,e.indexType)},201:function(e,t,n){return wI(t,e.readonlyToken)||wI(t,e.typeParameter)||wI(t,e.nameType)||wI(t,e.questionToken)||wI(t,e.type)||NI(t,n,e.members)},202:function(e,t,n){return wI(t,e.literal)},203:function(e,t,n){return wI(t,e.dotDotDotToken)||wI(t,e.name)||wI(t,e.questionToken)||wI(t,e.type)},207:MI,208:MI,210:function(e,t,n){return NI(t,n,e.elements)},211:function(e,t,n){return NI(t,n,e.properties)},212:function(e,t,n){return wI(t,e.expression)||wI(t,e.questionDotToken)||wI(t,e.name)},213:function(e,t,n){return wI(t,e.expression)||wI(t,e.questionDotToken)||wI(t,e.argumentExpression)},214:RI,215:RI,216:function(e,t,n){return wI(t,e.tag)||wI(t,e.questionDotToken)||NI(t,n,e.typeArguments)||wI(t,e.template)},217:function(e,t,n){return wI(t,e.type)||wI(t,e.expression)},218:function(e,t,n){return wI(t,e.expression)},221:function(e,t,n){return wI(t,e.expression)},222:function(e,t,n){return wI(t,e.expression)},223:function(e,t,n){return wI(t,e.expression)},225:function(e,t,n){return wI(t,e.operand)},230:function(e,t,n){return wI(t,e.asteriskToken)||wI(t,e.expression)},224:function(e,t,n){return wI(t,e.expression)},226:function(e,t,n){return wI(t,e.operand)},227:function(e,t,n){return wI(t,e.left)||wI(t,e.operatorToken)||wI(t,e.right)},235:function(e,t,n){return wI(t,e.expression)||wI(t,e.type)},236:function(e,t,n){return wI(t,e.expression)},239:function(e,t,n){return wI(t,e.expression)||wI(t,e.type)},237:function(e,t,n){return wI(t,e.name)},228:function(e,t,n){return wI(t,e.condition)||wI(t,e.questionToken)||wI(t,e.whenTrue)||wI(t,e.colonToken)||wI(t,e.whenFalse)},231:function(e,t,n){return wI(t,e.expression)},242:BI,269:BI,308:function(e,t,n){return NI(t,n,e.statements)||wI(t,e.endOfFileToken)},244:function(e,t,n){return NI(t,n,e.modifiers)||wI(t,e.declarationList)},262:function(e,t,n){return NI(t,n,e.declarations)},245:function(e,t,n){return wI(t,e.expression)},246:function(e,t,n){return wI(t,e.expression)||wI(t,e.thenStatement)||wI(t,e.elseStatement)},247:function(e,t,n){return wI(t,e.statement)||wI(t,e.expression)},248:function(e,t,n){return wI(t,e.expression)||wI(t,e.statement)},249:function(e,t,n){return wI(t,e.initializer)||wI(t,e.condition)||wI(t,e.incrementor)||wI(t,e.statement)},250:function(e,t,n){return wI(t,e.initializer)||wI(t,e.expression)||wI(t,e.statement)},251:function(e,t,n){return wI(t,e.awaitModifier)||wI(t,e.initializer)||wI(t,e.expression)||wI(t,e.statement)},252:JI,253:JI,254:function(e,t,n){return wI(t,e.expression)},255:function(e,t,n){return wI(t,e.expression)||wI(t,e.statement)},256:function(e,t,n){return wI(t,e.expression)||wI(t,e.caseBlock)},270:function(e,t,n){return NI(t,n,e.clauses)},297:function(e,t,n){return wI(t,e.expression)||NI(t,n,e.statements)},298:function(e,t,n){return NI(t,n,e.statements)},257:function(e,t,n){return wI(t,e.label)||wI(t,e.statement)},258:function(e,t,n){return wI(t,e.expression)},259:function(e,t,n){return wI(t,e.tryBlock)||wI(t,e.catchClause)||wI(t,e.finallyBlock)},300:function(e,t,n){return wI(t,e.variableDeclaration)||wI(t,e.block)},171:function(e,t,n){return wI(t,e.expression)},264:zI,232:zI,265:function(e,t,n){return NI(t,n,e.modifiers)||wI(t,e.name)||NI(t,n,e.typeParameters)||NI(t,n,e.heritageClauses)||NI(t,n,e.members)},266:function(e,t,n){return NI(t,n,e.modifiers)||wI(t,e.name)||NI(t,n,e.typeParameters)||wI(t,e.type)},267:function(e,t,n){return NI(t,n,e.modifiers)||wI(t,e.name)||NI(t,n,e.members)},307:function(e,t,n){return wI(t,e.name)||wI(t,e.initializer)},268:function(e,t,n){return NI(t,n,e.modifiers)||wI(t,e.name)||wI(t,e.body)},272:function(e,t,n){return NI(t,n,e.modifiers)||wI(t,e.name)||wI(t,e.moduleReference)},273:function(e,t,n){return NI(t,n,e.modifiers)||wI(t,e.importClause)||wI(t,e.moduleSpecifier)||wI(t,e.attributes)},274:function(e,t,n){return wI(t,e.name)||wI(t,e.namedBindings)},301:function(e,t,n){return NI(t,n,e.elements)},302:function(e,t,n){return wI(t,e.name)||wI(t,e.value)},271:function(e,t,n){return NI(t,n,e.modifiers)||wI(t,e.name)},275:function(e,t,n){return wI(t,e.name)},281:function(e,t,n){return wI(t,e.name)},276:qI,280:qI,279:function(e,t,n){return NI(t,n,e.modifiers)||wI(t,e.exportClause)||wI(t,e.moduleSpecifier)||wI(t,e.attributes)},277:UI,282:UI,278:function(e,t,n){return NI(t,n,e.modifiers)||wI(t,e.expression)},229:function(e,t,n){return wI(t,e.head)||NI(t,n,e.templateSpans)},240:function(e,t,n){return wI(t,e.expression)||wI(t,e.literal)},204:function(e,t,n){return wI(t,e.head)||NI(t,n,e.templateSpans)},205:function(e,t,n){return wI(t,e.type)||wI(t,e.literal)},168:function(e,t,n){return wI(t,e.expression)},299:function(e,t,n){return NI(t,n,e.types)},234:function(e,t,n){return wI(t,e.expression)||NI(t,n,e.typeArguments)},284:function(e,t,n){return wI(t,e.expression)},283:function(e,t,n){return NI(t,n,e.modifiers)},357:function(e,t,n){return NI(t,n,e.elements)},285:function(e,t,n){return wI(t,e.openingElement)||NI(t,n,e.children)||wI(t,e.closingElement)},289:function(e,t,n){return wI(t,e.openingFragment)||NI(t,n,e.children)||wI(t,e.closingFragment)},286:VI,287:VI,293:function(e,t,n){return NI(t,n,e.properties)},292:function(e,t,n){return wI(t,e.name)||wI(t,e.initializer)},294:function(e,t,n){return wI(t,e.expression)},295:function(e,t,n){return wI(t,e.dotDotDotToken)||wI(t,e.expression)},288:function(e,t,n){return wI(t,e.tagName)},296:function(e,t,n){return wI(t,e.namespace)||wI(t,e.name)},191:WI,192:WI,310:WI,316:WI,315:WI,317:WI,319:WI,318:function(e,t,n){return NI(t,n,e.parameters)||wI(t,e.type)},321:function(e,t,n){return("string"==typeof e.comment?void 0:NI(t,n,e.comment))||NI(t,n,e.tags)},348:function(e,t,n){return wI(t,e.tagName)||wI(t,e.name)||("string"==typeof e.comment?void 0:NI(t,n,e.comment))},311:function(e,t,n){return wI(t,e.name)},312:function(e,t,n){return wI(t,e.left)||wI(t,e.right)},342:$I,349:$I,331:function(e,t,n){return wI(t,e.tagName)||("string"==typeof e.comment?void 0:NI(t,n,e.comment))},330:function(e,t,n){return wI(t,e.tagName)||wI(t,e.class)||("string"==typeof e.comment?void 0:NI(t,n,e.comment))},329:function(e,t,n){return wI(t,e.tagName)||wI(t,e.class)||("string"==typeof e.comment?void 0:NI(t,n,e.comment))},346:function(e,t,n){return wI(t,e.tagName)||wI(t,e.constraint)||NI(t,n,e.typeParameters)||("string"==typeof e.comment?void 0:NI(t,n,e.comment))},347:function(e,t,n){return wI(t,e.tagName)||(e.typeExpression&&310===e.typeExpression.kind?wI(t,e.typeExpression)||wI(t,e.fullName)||("string"==typeof e.comment?void 0:NI(t,n,e.comment)):wI(t,e.fullName)||wI(t,e.typeExpression)||("string"==typeof e.comment?void 0:NI(t,n,e.comment)))},339:function(e,t,n){return wI(t,e.tagName)||wI(t,e.fullName)||wI(t,e.typeExpression)||("string"==typeof e.comment?void 0:NI(t,n,e.comment))},343:HI,345:HI,344:HI,341:HI,351:HI,350:HI,340:HI,324:function(e,t,n){return d(e.typeParameters,t)||d(e.parameters,t)||wI(t,e.type)},325:KI,326:KI,327:KI,323:function(e,t,n){return d(e.jsDocPropertyTags,t)},328:GI,333:GI,334:GI,335:GI,336:GI,337:GI,332:GI,338:GI,352:function(e,t,n){return wI(t,e.tagName)||wI(t,e.importClause)||wI(t,e.moduleSpecifier)||wI(t,e.attributes)||("string"==typeof e.comment?void 0:NI(t,n,e.comment))},356:function(e,t,n){return wI(t,e.expression)}};function OI(e,t,n){return NI(t,n,e.typeParameters)||NI(t,n,e.parameters)||wI(t,e.type)}function LI(e,t,n){return NI(t,n,e.types)}function jI(e,t,n){return wI(t,e.type)}function MI(e,t,n){return NI(t,n,e.elements)}function RI(e,t,n){return wI(t,e.expression)||wI(t,e.questionDotToken)||NI(t,n,e.typeArguments)||NI(t,n,e.arguments)}function BI(e,t,n){return NI(t,n,e.statements)}function JI(e,t,n){return wI(t,e.label)}function zI(e,t,n){return NI(t,n,e.modifiers)||wI(t,e.name)||NI(t,n,e.typeParameters)||NI(t,n,e.heritageClauses)||NI(t,n,e.members)}function qI(e,t,n){return NI(t,n,e.elements)}function UI(e,t,n){return wI(t,e.propertyName)||wI(t,e.name)}function VI(e,t,n){return wI(t,e.tagName)||NI(t,n,e.typeArguments)||wI(t,e.attributes)}function WI(e,t,n){return wI(t,e.type)}function $I(e,t,n){return wI(t,e.tagName)||(e.isNameFirst?wI(t,e.name)||wI(t,e.typeExpression):wI(t,e.typeExpression)||wI(t,e.name))||("string"==typeof e.comment?void 0:NI(t,n,e.comment))}function HI(e,t,n){return wI(t,e.tagName)||wI(t,e.typeExpression)||("string"==typeof e.comment?void 0:NI(t,n,e.comment))}function KI(e,t,n){return wI(t,e.name)}function GI(e,t,n){return wI(t,e.tagName)||("string"==typeof e.comment?void 0:NI(t,n,e.comment))}function XI(e,t,n){if(void 0===e||e.kind<=166)return;const r=II[e.kind];return void 0===r?void 0:r(e,t,n)}function QI(e,t,n){const r=YI(e),i=[];for(;i.length=0;--t)r.push(e[t]),i.push(o)}else{const n=t(e,o);if(n){if("skip"===n)continue;return n}if(e.kind>=167)for(const t of YI(e))r.push(t),i.push(e)}}}function YI(e){const t=[];return XI(e,n,n),t;function n(e){t.unshift(e)}}function ZI(e){e.externalModuleIndicator=FI(e)}function eO(e,t,n,r=!1,i){var o,a;let s;null==(o=Hn)||o.push(Hn.Phase.Parse,"createSourceFile",{path:e},!0),tr("beforeParse");const{languageVersion:c,setExternalModuleIndicator:l,impliedNodeFormat:_,jsDocParsingMode:u}="object"==typeof n?n:{languageVersion:n};if(100===c)s=AI.parseSourceFile(e,t,c,void 0,r,6,rt,u);else{const n=void 0===_?l:e=>(e.impliedNodeFormat=_,(l||ZI)(e));s=AI.parseSourceFile(e,t,c,void 0,r,i,n,u)}return tr("afterParse"),nr("Parse","beforeParse","afterParse"),null==(a=Hn)||a.pop(),s}function tO(e,t){return AI.parseIsolatedEntityName(e,t)}function nO(e,t){return AI.parseJsonText(e,t)}function rO(e){return void 0!==e.externalModuleIndicator}function iO(e,t,n,r=!1){const i=sO.updateSourceFile(e,t,n,r);return i.flags|=12582912&e.flags,i}function oO(e,t,n){const r=AI.JSDocParser.parseIsolatedJSDocComment(e,t,n);return r&&r.jsDoc&&AI.fixupParentReferences(r.jsDoc),r}function aO(e,t,n){return AI.JSDocParser.parseJSDocTypeExpressionForTests(e,t,n)}(e=>{var t,n,r,i,o,a=gs(99,!0);function s(e){return b++,e}var c,u,d,p,f,m,g,h,y,v,b,x,S,T,C,w,N=iw(11,{createBaseSourceFileNode:e=>s(new o(e,0,0)),createBaseIdentifierNode:e=>s(new r(e,0,0)),createBasePrivateIdentifierNode:e=>s(new i(e,0,0)),createBaseTokenNode:e=>s(new n(e,0,0)),createBaseNode:e=>s(new t(e,0,0))}),{createNodeArray:D,createNumericLiteral:F,createStringLiteral:E,createLiteralLikeNode:P,createIdentifier:A,createPrivateIdentifier:I,createToken:O,createArrayLiteralExpression:L,createObjectLiteralExpression:j,createPropertyAccessExpression:M,createPropertyAccessChain:R,createElementAccessExpression:J,createElementAccessChain:z,createCallExpression:q,createCallChain:U,createNewExpression:V,createParenthesizedExpression:W,createBlock:H,createVariableStatement:G,createExpressionStatement:X,createIfStatement:Q,createWhileStatement:Y,createForStatement:Z,createForOfStatement:ee,createVariableDeclaration:te,createVariableDeclarationList:ne}=N,re=!0,oe=!1;function ae(e,t,n=2,r,i=!1){ce(e,t,n,r,6,0),u=w,Ve();const o=Be();let a,s;if(1===ze())a=bt([],o,o),s=gt();else{let e;for(;1!==ze();){let t;switch(ze()){case 23:t=ai();break;case 112:case 97:case 106:t=gt();break;case 41:t=tt(()=>9===Ve()&&59!==Ve())?Or():ci();break;case 9:case 11:if(tt(()=>59!==Ve())){t=fn();break}default:t=ci()}e&&Qe(e)?e.push(t):e?e=[e,t]:(e=t,1!==ze()&&Oe(_a.Unexpected_token))}const t=Qe(e)?xt(L(e),o):un.checkDefined(e),n=X(t);xt(n,o),a=bt([n],o),s=mt(1,_a.Unexpected_token)}const c=pe(e,2,6,!1,a,s,u,rt);i&&de(c),c.nodeCount=b,c.identifierCount=S,c.identifiers=x,c.parseDiagnostics=Kx(g,c),h&&(c.jsDocDiagnostics=Kx(h,c));const l=c;return le(),l}function ce(e,s,l,_,h,v){switch(t=Mx.getNodeConstructor(),n=Mx.getTokenConstructor(),r=Mx.getIdentifierConstructor(),i=Mx.getPrivateIdentifierConstructor(),o=Mx.getSourceFileConstructor(),c=Jo(e),d=s,p=l,y=_,f=h,m=lk(h),g=[],T=0,x=new Map,S=0,b=0,u=0,re=!0,f){case 1:case 2:w=524288;break;case 6:w=134742016;break;default:w=0}oe=!1,a.setText(d),a.setOnError(Re),a.setScriptTarget(p),a.setLanguageVariant(m),a.setScriptKind(f),a.setJSDocParsingMode(v)}function le(){a.clearCommentDirectives(),a.setText(""),a.setOnError(void 0),a.setScriptKind(0),a.setJSDocParsingMode(0),d=void 0,p=void 0,y=void 0,f=void 0,m=void 0,u=0,g=void 0,h=void 0,T=0,x=void 0,C=void 0,re=!0}e.parseSourceFile=function(e,t,n,r,i=!1,o,s,p=0){var f;if(6===(o=bS(e,o))){const o=ae(e,t,n,r,i);return BL(o,null==(f=o.statements[0])?void 0:f.expression,o.parseDiagnostics,!1,void 0),o.referencedFiles=l,o.typeReferenceDirectives=l,o.libReferenceDirectives=l,o.amdDependencies=l,o.hasNoDefaultLib=!1,o.pragmas=_,o}ce(e,t,n,r,o,p);const m=function(e,t,n,r,i){const o=uO(c);o&&(w|=33554432),u=w,Ve();const s=Xt(0,Fi);un.assert(1===ze());const l=Je(),_=ue(gt(),l),p=pe(c,e,n,o,s,_,u,r);return pO(p,d),fO(p,function(e,t,n){g.push(Wx(c,d,e,t,n))}),p.commentDirectives=a.getCommentDirectives(),p.nodeCount=b,p.identifierCount=S,p.identifiers=x,p.parseDiagnostics=Kx(g,p),p.jsDocParsingMode=i,h&&(p.jsDocDiagnostics=Kx(h,p)),t&&de(p),p}(n,i,o,s||ZI,p);return le(),m},e.parseIsolatedEntityName=function(e,t){ce("",e,t,void 0,1,0),Ve();const n=an(!0),r=1===ze()&&!g.length;return le(),r?n:void 0},e.parseJsonText=ae;let _e=!1;function ue(e,t){if(!t)return e;un.assert(!e.jsDoc);const n=B(vf(e,d),t=>Oo.parseJSDocComment(e,t.pos,t.end-t.pos));return n.length&&(e.jsDoc=n),_e&&(_e=!1,e.flags|=536870912),e}function de(e){FT(e,!0)}function pe(e,t,n,r,i,o,s,c){let l=N.createSourceFile(i,o,s);if(wT(l,0,d.length),_(l),!r&&rO(l)&&67108864&l.transformFlags){const e=l;l=function(e){const t=y,n=sO.createSyntaxCursor(e);y={currentNode:function(e){const t=n.currentNode(e);return re&&t&&c(t)&&_O(t),t}};const r=[],i=g;g=[];let o=0,s=l(e.statements,0);for(;-1!==s;){const t=e.statements[o],n=e.statements[s];se(r,e.statements,o,s),o=_(e.statements,s);const c=k(i,e=>e.start>=t.pos),u=c>=0?k(i,e=>e.start>=n.pos,c):-1;c>=0&&se(g,i,c,u>=0?u:void 0),et(()=>{const t=w;for(w|=65536,a.resetTokenState(n.pos),Ve();1!==ze();){const t=a.getTokenFullStart(),n=Qt(0,Fi);if(r.push(n),t===a.getTokenFullStart()&&Ve(),o>=0){const t=e.statements[o];if(n.end===t.pos)break;n.end>t.pos&&(o=_(e.statements,o+1))}}w=t},2),s=o>=0?l(e.statements,o):-1}if(o>=0){const t=e.statements[o];se(r,e.statements,o);const n=k(i,e=>e.start>=t.pos);n>=0&&se(g,i,n)}return y=t,N.updateSourceFile(e,xI(D(r),e.statements));function c(e){return!(65536&e.flags||!(67108864&e.transformFlags))}function l(e,t){for(let n=t;n118}function ot(){return 80===ze()||(127!==ze()||!Fe())&&(135!==ze()||!Ie())&&ze()>118}function at(e,t,n=!0){return ze()===e?(n&&Ve(),!0):(t?Oe(t):Oe(_a._0_expected,Fa(e)),!1)}e.fixupParentReferences=de;const ct=Object.keys(pa).filter(e=>e.length>2);function lt(e){if(gF(e))return void je(Qa(d,e.template.pos),e.template.end,_a.Module_declaration_names_may_only_use_or_quoted_strings);const t=aD(e)?gc(e):void 0;if(!t||!ms(t,p))return void Oe(_a._0_expected,Fa(27));const n=Qa(d,e.pos);switch(t){case"const":case"let":case"var":return void je(n,e.end,_a.Variable_declaration_not_allowed_at_this_location);case"declare":return;case"interface":return void _t(_a.Interface_name_cannot_be_0,_a.Interface_must_be_given_a_name,19);case"is":return void je(n,a.getTokenStart(),_a.A_type_predicate_is_only_allowed_in_return_type_position_for_functions_and_methods);case"module":case"namespace":return void _t(_a.Namespace_name_cannot_be_0,_a.Namespace_must_be_given_a_name,19);case"type":return void _t(_a.Type_alias_name_cannot_be_0,_a.Type_alias_must_be_given_a_name,64)}const r=Lt(t,ct,st)??function(e){for(const t of ct)if(e.length>t.length+2&&Gt(e,t))return`${t} ${e.slice(t.length)}`}(t);r?je(n,e.end,_a.Unknown_keyword_or_identifier_Did_you_mean_0,r):0!==ze()&&je(n,e.end,_a.Unexpected_keyword_or_identifier)}function _t(e,t,n){ze()===n?Oe(t):Oe(e,a.getTokenValue())}function ut(e){return ze()===e?(We(),!0):(un.assert(Nh(e)),Oe(_a._0_expected,Fa(e)),!1)}function dt(e,t,n,r){if(ze()===t)return void Ve();const i=Oe(_a._0_expected,Fa(t));n&&i&&aT(i,Wx(c,d,r,1,_a.The_parser_expected_to_find_a_1_to_match_the_0_token_here,Fa(e),Fa(t)))}function pt(e){return ze()===e&&(Ve(),!0)}function ft(e){if(ze()===e)return gt()}function mt(e,t,n){return ft(e)||kt(e,!1,t||_a._0_expected,n||Fa(e))}function gt(){const e=Be(),t=ze();return Ve(),xt(O(t),e)}function ht(){return 27===ze()||20===ze()||1===ze()||a.hasPrecedingLineBreak()}function yt(){return!!ht()&&(27===ze()&&Ve(),!0)}function vt(){return yt()||at(27)}function bt(e,t,n,r){const i=D(e,r);return CT(i,t,n??a.getTokenFullStart()),i}function xt(e,t,n){return CT(e,t,n??a.getTokenFullStart()),w&&(e.flags|=w),oe&&(oe=!1,e.flags|=262144),e}function kt(e,t,n,...r){t?Le(a.getTokenFullStart(),0,n,...r):n&&Oe(n,...r);const i=Be();return xt(80===e?A("",void 0):Ll(e)?N.createTemplateLiteralLikeNode(e,"","",void 0):9===e?F("",void 0):11===e?E("",void 0):283===e?N.createMissingDeclaration():O(e),i)}function St(e){let t=x.get(e);return void 0===t&&x.set(e,t=e),t}function Tt(e,t,n){if(e){S++;const e=a.hasPrecedingJSDocLeadingAsterisks()?a.getTokenStart():Be(),t=ze(),n=St(a.getTokenValue()),r=a.hasExtendedUnicodeEscape();return qe(),xt(A(n,t,r),e)}if(81===ze())return Oe(n||_a.Private_identifiers_are_not_allowed_outside_class_bodies),Tt(!0);if(0===ze()&&a.tryScan(()=>80===a.reScanInvalidIdentifier()))return Tt(!0);S++;const r=1===ze(),i=a.isReservedWord(),o=a.getTokenText(),s=i?_a.Identifier_expected_0_is_a_reserved_word_that_cannot_be_used_here:_a.Identifier_expected;return kt(80,r,t||s,o)}function Ct(e){return Tt(it(),void 0,e)}function wt(e,t){return Tt(ot(),e,t)}function Nt(e){return Tt(ua(ze()),e)}function Dt(){return(a.hasUnicodeEscape()||a.hasExtendedUnicodeEscape())&&Oe(_a.Unicode_escape_sequence_cannot_appear_here),Tt(ua(ze()))}function Ft(){return ua(ze())||11===ze()||9===ze()||10===ze()}function Et(){return function(e){if(11===ze()||9===ze()||10===ze()){const e=fn();return e.text=St(e.text),e}return e&&23===ze()?function(){const e=Be();at(23);const t=Se(yr);return at(24),xt(N.createComputedPropertyName(t),e)}():81===ze()?Pt():Nt()}(!0)}function Pt(){const e=Be(),t=I(St(a.getTokenValue()));return Ve(),xt(t,e)}function At(e){return ze()===e&&nt(Ot)}function It(){return Ve(),!a.hasPrecedingLineBreak()&&Rt()}function Ot(){switch(ze()){case 87:return 94===Ve();case 95:return Ve(),90===ze()?tt(Bt):156===ze()?tt(Mt):jt();case 90:return Bt();case 126:return Ve(),Rt();case 139:case 153:return Ve(),23===ze()||Ft();default:return It()}}function jt(){return 60===ze()||42!==ze()&&130!==ze()&&19!==ze()&&Rt()}function Mt(){return Ve(),jt()}function Rt(){return 23===ze()||19===ze()||42===ze()||26===ze()||Ft()}function Bt(){return Ve(),86===ze()||100===ze()||120===ze()||60===ze()||128===ze()&&tt(gi)||134===ze()&&tt(hi)}function Jt(e,t){if(Yt(e))return!0;switch(e){case 0:case 1:case 3:return!(27===ze()&&t)&&xi();case 2:return 84===ze()||90===ze();case 4:return tt(Mn);case 5:return tt(Qi)||27===ze()&&!t;case 6:return 23===ze()||Ft();case 12:switch(ze()){case 23:case 42:case 26:case 25:return!0;default:return Ft()}case 18:return Ft();case 9:return 23===ze()||26===ze()||Ft();case 24:return ua(ze())||11===ze();case 7:return 19===ze()?tt(zt):t?ot()&&!Wt():gr()&&!Wt();case 8:return Bi();case 10:return 28===ze()||26===ze()||Bi();case 19:return 103===ze()||87===ze()||ot();case 15:switch(ze()){case 28:case 25:return!0}case 11:return 26===ze()||hr();case 16:return wn(!1);case 17:return wn(!0);case 20:case 21:return 28===ze()||tr();case 22:return _o();case 23:return(161!==ze()||!tt(Ii))&&(11===ze()||ua(ze()));case 13:return ua(ze())||19===ze();case 14:case 25:return!0;case 26:return un.fail("ParsingContext.Count used as a context");default:un.assertNever(e,"Non-exhaustive case in 'isListElement'.")}}function zt(){if(un.assert(19===ze()),20===Ve()){const e=Ve();return 28===e||19===e||96===e||119===e}return!0}function qt(){return Ve(),ot()}function Ut(){return Ve(),ua(ze())}function Vt(){return Ve(),da(ze())}function Wt(){return(119===ze()||96===ze())&&tt($t)}function $t(){return Ve(),hr()}function Ht(){return Ve(),tr()}function Kt(e){if(1===ze())return!0;switch(e){case 1:case 2:case 4:case 5:case 6:case 12:case 9:case 23:case 24:return 20===ze();case 3:return 20===ze()||84===ze()||90===ze();case 7:return 19===ze()||96===ze()||119===ze();case 8:return!!ht()||!!Dr(ze())||39===ze();case 19:return 32===ze()||21===ze()||19===ze()||96===ze()||119===ze();case 11:return 22===ze()||27===ze();case 15:case 21:case 10:return 24===ze();case 17:case 16:case 18:return 22===ze()||24===ze();case 20:return 28!==ze();case 22:return 19===ze()||20===ze();case 13:return 32===ze()||44===ze();case 14:return 30===ze()&&tt(yo);default:return!1}}function Xt(e,t){const n=T;T|=1<=0)}function nn(e){return 6===e?_a.An_enum_member_name_must_be_followed_by_a_or:void 0}function rn(){const e=bt([],Be());return e.isMissingList=!0,e}function on(e,t,n,r){if(at(n)){const n=tn(e,t);return at(r),n}return rn()}function an(e,t){const n=Be();let r=e?Nt(t):wt(t);for(;pt(25)&&30!==ze();)r=xt(N.createQualifiedName(r,cn(e,!1,!0)),n);return r}function sn(e,t){return xt(N.createQualifiedName(e,t),e.pos)}function cn(e,t,n){if(a.hasPrecedingLineBreak()&&ua(ze())&&tt(mi))return kt(80,!0,_a.Identifier_expected);if(81===ze()){const e=Pt();return t?e:kt(80,!0,_a.Identifier_expected)}return e?n?Nt():Dt():wt()}function ln(e){const t=Be();return xt(N.createTemplateExpression(mn(e),function(e){const t=Be(),n=[];let r;do{r=pn(e),n.push(r)}while(17===r.literal.kind);return bt(n,t)}(e)),t)}function _n(){const e=Be();return xt(N.createTemplateLiteralTypeSpan(fr(),dn(!1)),e)}function dn(e){return 20===ze()?(Ke(e),function(){const e=gn(ze());return un.assert(17===e.kind||18===e.kind,"Template fragment has wrong token kind"),e}()):mt(18,_a._0_expected,Fa(20))}function pn(e){const t=Be();return xt(N.createTemplateSpan(Se(yr),dn(e)),t)}function fn(){return gn(ze())}function mn(e){!e&&26656&a.getTokenFlags()&&Ke(!1);const t=gn(ze());return un.assert(16===t.kind,"Template head has wrong token kind"),t}function gn(e){const t=Be(),n=Ll(e)?N.createTemplateLiteralLikeNode(e,a.getTokenValue(),function(e){const t=15===e||18===e,n=a.getTokenText();return n.substring(1,n.length-(a.isUnterminated()?0:t?1:2))}(e),7176&a.getTokenFlags()):9===e?F(a.getTokenValue(),a.getNumericLiteralFlags()):11===e?E(a.getTokenValue(),void 0,a.hasExtendedUnicodeEscape()):Al(e)?P(e,a.getTokenValue()):un.fail();return a.hasExtendedUnicodeEscape()&&(n.hasExtendedUnicodeEscape=!0),a.isUnterminated()&&(n.isUnterminated=!0),Ve(),xt(n,t)}function hn(){return an(!0,_a.Type_expected)}function yn(){if(!a.hasPrecedingLineBreak()&&30===Ge())return on(20,fr,30,32)}function vn(){const e=Be();return xt(N.createTypeReferenceNode(hn(),yn()),e)}function bn(e){switch(e.kind){case 184:return Nd(e.typeName);case 185:case 186:{const{parameters:t,type:n}=e;return!!t.isMissingList||bn(n)}case 197:return bn(e.type);default:return!1}}function xn(){const e=Be();return Ve(),xt(N.createThisTypeNode(),e)}function kn(){const e=Be();let t;return 110!==ze()&&105!==ze()||(t=Nt(),at(59)),xt(N.createParameterDeclaration(void 0,void 0,t,void 0,Sn(),void 0),e)}function Sn(){a.setSkipJsDocLeadingAsterisks(!0);const e=Be();if(pt(144)){const t=N.createJSDocNamepathType(void 0);e:for(;;)switch(ze()){case 20:case 1:case 28:case 5:break e;default:We()}return a.setSkipJsDocLeadingAsterisks(!1),xt(t,e)}const t=pt(26);let n=dr();return a.setSkipJsDocLeadingAsterisks(!1),t&&(n=xt(N.createJSDocVariadicType(n),e)),64===ze()?(Ve(),xt(N.createJSDocOptionalType(n),e)):n}function Tn(){const e=Be(),t=to(!1,!0),n=wt();let r,i;pt(96)&&(tr()||!hr()?r=fr():i=Lr());const o=pt(64)?fr():void 0,a=N.createTypeParameterDeclaration(t,n,r,o);return a.expression=i,xt(a,e)}function Cn(){if(30===ze())return on(19,Tn,30,32)}function wn(e){return 26===ze()||Bi()||Xl(ze())||60===ze()||tr(!e)}function Nn(e){return Dn(e)}function Dn(e,t=!0){const n=Be(),r=Je(),i=e?we(()=>to(!0)):Ne(()=>to(!0));if(110===ze()){const e=N.createParameterDeclaration(i,void 0,Tt(!0),void 0,mr(),void 0),t=fe(i);return t&&Me(t,_a.Neither_decorators_nor_modifiers_may_be_applied_to_this_parameters),ue(xt(e,n),r)}const o=re;re=!1;const a=ft(26);if(!t&&!it()&&23!==ze()&&19!==ze())return;const s=ue(xt(N.createParameterDeclaration(i,a,function(e){const t=Ji(_a.Private_identifiers_cannot_be_used_as_parameters);return 0===sd(t)&&!$(e)&&Xl(ze())&&Ve(),t}(i),ft(58),mr(),vr()),n),r);return re=o,s}function Fn(e,t){if(function(e,t){return 39===e?(at(e),!0):!!pt(59)||!(!t||39!==ze())&&(Oe(_a._0_expected,Fa(59)),Ve(),!0)}(e,t))return Te(dr)}function En(e,t){const n=Fe(),r=Ie();he(!!(1&e)),be(!!(2&e));const i=32&e?tn(17,kn):tn(16,()=>t?Nn(r):Dn(r,!1));return he(n),be(r),i}function Pn(e){if(!at(21))return rn();const t=En(e,!0);return at(22),t}function An(){pt(28)||vt()}function In(e){const t=Be(),n=Je();181===e&&at(105);const r=Cn(),i=Pn(4),o=Fn(59,!0);return An(),ue(xt(180===e?N.createCallSignature(r,i,o):N.createConstructSignature(r,i,o),t),n)}function On(){return 23===ze()&&tt(Ln)}function Ln(){if(Ve(),26===ze()||24===ze())return!0;if(Xl(ze())){if(Ve(),ot())return!0}else{if(!ot())return!1;Ve()}return 59===ze()||28===ze()||58===ze()&&(Ve(),59===ze()||28===ze()||24===ze())}function jn(e,t,n){const r=on(16,()=>Nn(!1),23,24),i=mr();return An(),ue(xt(N.createIndexSignature(n,r,i),e),t)}function Mn(){if(21===ze()||30===ze()||139===ze()||153===ze())return!0;let e=!1;for(;Xl(ze());)e=!0,Ve();return 23===ze()||(Ft()&&(e=!0,Ve()),!!e&&(21===ze()||30===ze()||58===ze()||59===ze()||28===ze()||ht()))}function Rn(){if(21===ze()||30===ze())return In(180);if(105===ze()&&tt(Bn))return In(181);const e=Be(),t=Je(),n=to(!1);return At(139)?Xi(e,t,n,178,4):At(153)?Xi(e,t,n,179,4):On()?jn(e,t,n):function(e,t,n){const r=Et(),i=ft(58);let o;if(21===ze()||30===ze()){const e=Cn(),t=Pn(4),a=Fn(59,!0);o=N.createMethodSignature(n,r,i,e,t,a)}else{const e=mr();o=N.createPropertySignature(n,r,i,e),64===ze()&&(o.initializer=vr())}return An(),ue(xt(o,e),t)}(e,t,n)}function Bn(){return Ve(),21===ze()||30===ze()}function Jn(){return 25===Ve()}function zn(){switch(Ve()){case 21:case 30:case 25:return!0}return!1}function qn(){let e;return at(19)?(e=Xt(4,Rn),at(20)):e=rn(),e}function Un(){return Ve(),40===ze()||41===ze()?148===Ve():(148===ze()&&Ve(),23===ze()&&qt()&&103===Ve())}function Vn(){const e=Be();if(pt(26))return xt(N.createRestTypeNode(fr()),e);const t=fr();if(hP(t)&&t.pos===t.type.pos){const e=N.createOptionalTypeNode(t.type);return xI(e,t),e.flags=t.flags,e}return t}function Wn(){return 59===Ve()||58===ze()&&59===Ve()}function $n(){return 26===ze()?ua(Ve())&&Wn():ua(ze())&&Wn()}function Hn(){if(tt($n)){const e=Be(),t=Je(),n=ft(26),r=Nt(),i=ft(58);at(59);const o=Vn();return ue(xt(N.createNamedTupleMember(n,r,i,o),e),t)}return Vn()}function Kn(){const e=Be(),t=Je(),n=function(){let e;if(128===ze()){const t=Be();Ve(),e=bt([xt(O(128),t)],t)}return e}(),r=pt(105);un.assert(!n||r,"Per isStartOfFunctionOrConstructorType, a function type cannot have modifiers.");const i=Cn(),o=Pn(4),a=Fn(39,!1);return ue(xt(r?N.createConstructorTypeNode(n,i,o,a):N.createFunctionTypeNode(i,o,a),e),t)}function Gn(){const e=gt();return 25===ze()?void 0:e}function Xn(e){const t=Be();e&&Ve();let n=112===ze()||97===ze()||106===ze()?gt():gn(ze());return e&&(n=xt(N.createPrefixUnaryExpression(41,n),t)),xt(N.createLiteralTypeNode(n),t)}function Qn(){return Ve(),102===ze()}function Yn(){u|=4194304;const e=Be(),t=pt(114);at(102),at(21);const n=fr();let r;if(pt(28)){const e=a.getTokenStart();at(19);const t=ze();if(118===t||132===t?Ve():Oe(_a._0_expected,Fa(118)),at(59),r=ko(t,!0),pt(28),!at(20)){const t=ye(g);t&&t.code===_a._0_expected.code&&aT(t,Wx(c,d,e,1,_a.The_parser_expected_to_find_a_1_to_match_the_0_token_here,"{","}"))}}at(22);const i=pt(25)?hn():void 0,o=yn();return xt(N.createImportTypeNode(n,r,i,o,t),e)}function Zn(){return Ve(),9===ze()||10===ze()}function er(){switch(ze()){case 133:case 159:case 154:case 150:case 163:case 155:case 136:case 157:case 146:case 151:return nt(Gn)||vn();case 67:a.reScanAsteriskEqualsToken();case 42:return function(){const e=Be();return Ve(),xt(N.createJSDocAllType(),e)}();case 61:a.reScanQuestionToken();case 58:return function(){const e=Be();return Ve(),28===ze()||20===ze()||22===ze()||32===ze()||64===ze()||52===ze()?xt(N.createJSDocUnknownType(),e):xt(N.createJSDocNullableType(fr(),!1),e)}();case 100:return function(){const e=Be(),t=Je();if(nt(go)){const n=Pn(36),r=Fn(59,!1);return ue(xt(N.createJSDocFunctionType(n,r),e),t)}return xt(N.createTypeReferenceNode(Nt(),void 0),e)}();case 54:return function(){const e=Be();return Ve(),xt(N.createJSDocNonNullableType(er(),!1),e)}();case 15:case 11:case 9:case 10:case 112:case 97:case 106:return Xn();case 41:return tt(Zn)?Xn(!0):vn();case 116:return gt();case 110:{const t=xn();return 142!==ze()||a.hasPrecedingLineBreak()?t:(e=t,Ve(),xt(N.createTypePredicateNode(void 0,e,fr()),e.pos))}case 114:return tt(Qn)?Yn():function(){const e=Be();at(114);const t=an(!0),n=a.hasPrecedingLineBreak()?void 0:lo();return xt(N.createTypeQueryNode(t,n),e)}();case 19:return tt(Un)?function(){const e=Be();let t;at(19),148!==ze()&&40!==ze()&&41!==ze()||(t=gt(),148!==t.kind&&at(148)),at(23);const n=function(){const e=Be(),t=Nt();at(103);const n=fr();return xt(N.createTypeParameterDeclaration(void 0,t,n,void 0),e)}(),r=pt(130)?fr():void 0;let i;at(24),58!==ze()&&40!==ze()&&41!==ze()||(i=gt(),58!==i.kind&&at(58));const o=mr();vt();const a=Xt(4,Rn);return at(20),xt(N.createMappedTypeNode(t,n,r,i,o,a),e)}():function(){const e=Be();return xt(N.createTypeLiteralNode(qn()),e)}();case 23:return function(){const e=Be();return xt(N.createTupleTypeNode(on(21,Hn,23,24)),e)}();case 21:return function(){const e=Be();at(21);const t=fr();return at(22),xt(N.createParenthesizedType(t),e)}();case 102:return Yn();case 131:return tt(mi)?function(){const e=Be(),t=mt(131),n=110===ze()?xn():wt(),r=pt(142)?fr():void 0;return xt(N.createTypePredicateNode(t,n,r),e)}():vn();case 16:return function(){const e=Be();return xt(N.createTemplateLiteralType(mn(!1),function(){const e=Be(),t=[];let n;do{n=_n(),t.push(n)}while(17===n.literal.kind);return bt(t,e)}()),e)}();default:return vn()}var e}function tr(e){switch(ze()){case 133:case 159:case 154:case 150:case 163:case 136:case 148:case 155:case 158:case 116:case 157:case 106:case 110:case 114:case 146:case 19:case 23:case 30:case 52:case 51:case 105:case 11:case 9:case 10:case 112:case 97:case 151:case 42:case 58:case 54:case 26:case 140:case 102:case 131:case 15:case 16:return!0;case 100:return!e;case 41:return!e&&tt(Zn);case 21:return!e&&tt(nr);default:return ot()}}function nr(){return Ve(),22===ze()||wn(!1)||tr()}function rr(){const e=Be();let t=er();for(;!a.hasPrecedingLineBreak();)switch(ze()){case 54:Ve(),t=xt(N.createJSDocNonNullableType(t,!0),e);break;case 58:if(tt(Ht))return t;Ve(),t=xt(N.createJSDocNullableType(t,!0),e);break;case 23:if(at(23),tr()){const n=fr();at(24),t=xt(N.createIndexedAccessTypeNode(t,n),e)}else at(24),t=xt(N.createArrayTypeNode(t),e);break;default:return t}return t}function ir(){if(pt(96)){const e=Ce(fr);if(Pe()||58!==ze())return e}}function or(){const e=ze();switch(e){case 143:case 158:case 148:return function(e){const t=Be();return at(e),xt(N.createTypeOperatorNode(e,or()),t)}(e);case 140:return function(){const e=Be();return at(140),xt(N.createInferTypeNode(function(){const e=Be(),t=wt(),n=nt(ir);return xt(N.createTypeParameterDeclaration(void 0,t,n),e)}()),e)}()}return Te(rr)}function ar(e){if(_r()){const t=Kn();let n;return n=BD(t)?e?_a.Function_type_notation_must_be_parenthesized_when_used_in_a_union_type:_a.Function_type_notation_must_be_parenthesized_when_used_in_an_intersection_type:e?_a.Constructor_type_notation_must_be_parenthesized_when_used_in_a_union_type:_a.Constructor_type_notation_must_be_parenthesized_when_used_in_an_intersection_type,Me(t,n),t}}function sr(e,t,n){const r=Be(),i=52===e,o=pt(e);let a=o&&ar(i)||t();if(ze()===e||o){const o=[a];for(;pt(e);)o.push(ar(i)||t());a=xt(n(bt(o,r)),r)}return a}function cr(){return sr(51,or,N.createIntersectionTypeNode)}function lr(){return Ve(),105===ze()}function _r(){return 30===ze()||!(21!==ze()||!tt(ur))||105===ze()||128===ze()&&tt(lr)}function ur(){if(Ve(),22===ze()||26===ze())return!0;if(function(){if(Xl(ze())&&to(!1),ot()||110===ze())return Ve(),!0;if(23===ze()||19===ze()){const e=g.length;return Ji(),e===g.length}return!1}()){if(59===ze()||28===ze()||58===ze()||64===ze())return!0;if(22===ze()&&(Ve(),39===ze()))return!0}return!1}function dr(){const e=Be(),t=ot()&&nt(pr),n=fr();return t?xt(N.createTypePredicateNode(void 0,t,n),e):n}function pr(){const e=wt();if(142===ze()&&!a.hasPrecedingLineBreak())return Ve(),e}function fr(){if(81920&w)return xe(81920,fr);if(_r())return Kn();const e=Be(),t=sr(52,cr,N.createUnionTypeNode);if(!Pe()&&!a.hasPrecedingLineBreak()&&pt(96)){const n=Ce(fr);at(58);const r=Te(fr);at(59);const i=Te(fr);return xt(N.createConditionalTypeNode(t,n,r,i),e)}return t}function mr(){return pt(59)?fr():void 0}function gr(){switch(ze()){case 110:case 108:case 106:case 112:case 97:case 9:case 10:case 11:case 15:case 16:case 21:case 23:case 19:case 100:case 86:case 105:case 44:case 69:case 80:return!0;case 102:return tt(zn);default:return ot()}}function hr(){if(gr())return!0;switch(ze()){case 40:case 41:case 55:case 54:case 91:case 114:case 116:case 46:case 47:case 30:case 135:case 127:case 81:case 60:return!0;default:return!!Er()||ot()}}function yr(){const e=Ae();e&&ve(!1);const t=Be();let n,r=br(!0);for(;n=ft(28);)r=Ar(r,n,br(!0),t);return e&&ve(!0),r}function vr(){return pt(64)?br(!0):void 0}function br(e){if(127===ze()&&(Fe()||tt(yi)))return function(){const e=Be();return Ve(),a.hasPrecedingLineBreak()||42!==ze()&&!hr()?xt(N.createYieldExpression(void 0,void 0),e):xt(N.createYieldExpression(ft(42),br(!0)),e)}();const t=function(e){const t=21===ze()||30===ze()||134===ze()?tt(Sr):39===ze()?1:0;if(0!==t)return 1===t?Cr(!0,!0):nt(()=>function(e){const t=a.getTokenStart();if(null==C?void 0:C.has(t))return;const n=Cr(!1,e);return n||(C||(C=new Set)).add(t),n}(e))}(e)||function(e){if(134===ze()&&1===tt(Tr)){const t=Be(),n=Je(),r=no();return kr(t,Nr(0),e,n,r)}}(e);if(t)return t;const n=Be(),r=Je(),i=Nr(0);return 80===i.kind&&39===ze()?kr(n,i,e,r,void 0):R_(i)&&eb(He())?Ar(i,gt(),br(e),n):function(e,t,n){const r=ft(58);if(!r)return e;let i;return xt(N.createConditionalExpression(e,r,xe(40960,()=>br(!1)),i=mt(59),Dd(i)?br(n):kt(80,!1,_a._0_expected,Fa(59))),t)}(i,n,e)}function xr(){return Ve(),!a.hasPrecedingLineBreak()&&ot()}function kr(e,t,n,r,i){un.assert(39===ze(),"parseSimpleArrowFunctionExpression should only have been called if we had a =>");const o=N.createParameterDeclaration(void 0,void 0,t,void 0,void 0,void 0);xt(o,t.pos);const a=bt([o],o.pos,o.end),s=mt(39),c=wr(!!i,n);return ue(xt(N.createArrowFunction(i,void 0,a,void 0,s,c),e),r)}function Sr(){if(134===ze()){if(Ve(),a.hasPrecedingLineBreak())return 0;if(21!==ze()&&30!==ze())return 0}const e=ze(),t=Ve();if(21===e){if(22===t)switch(Ve()){case 39:case 59:case 19:return 1;default:return 0}if(23===t||19===t)return 2;if(26===t)return 1;if(Xl(t)&&134!==t&&tt(qt))return 130===Ve()?0:1;if(!ot()&&110!==t)return 0;switch(Ve()){case 59:return 1;case 58:return Ve(),59===ze()||28===ze()||64===ze()||22===ze()?1:0;case 28:case 64:case 22:return 2}return 0}return un.assert(30===e),ot()||87===ze()?1===m?tt(()=>{pt(87);const e=Ve();if(96===e)switch(Ve()){case 64:case 32:case 44:return!1;default:return!0}else if(28===e||64===e)return!0;return!1})?1:0:2:0}function Tr(){if(134===ze()){if(Ve(),a.hasPrecedingLineBreak()||39===ze())return 0;const e=Nr(0);if(!a.hasPrecedingLineBreak()&&80===e.kind&&39===ze())return 1}return 0}function Cr(e,t){const n=Be(),r=Je(),i=no(),o=$(i,_D)?2:0,a=Cn();let s;if(at(21)){if(e)s=En(o,e);else{const t=En(o,e);if(!t)return;s=t}if(!at(22)&&!e)return}else{if(!e)return;s=rn()}const c=59===ze(),l=Fn(59,!1);if(l&&!e&&bn(l))return;let _=l;for(;197===(null==_?void 0:_.kind);)_=_.type;const u=_&&bP(_);if(!e&&39!==ze()&&(u||19!==ze()))return;const d=ze(),p=mt(39),f=39===d||19===d?wr($(i,_D),t):wt();return t||!c||59===ze()?ue(xt(N.createArrowFunction(i,a,s,l,p,f),n),r):void 0}function wr(e,t){if(19===ze())return di(e?2:0);if(27!==ze()&&100!==ze()&&86!==ze()&&xi()&&(19===ze()||100===ze()||86===ze()||60===ze()||!hr()))return di(16|(e?2:0));const n=Fe();he(!1);const r=re;re=!1;const i=e?we(()=>br(t)):Ne(()=>br(t));return re=r,he(n),i}function Nr(e){const t=Be();return Fr(e,Lr(),t)}function Dr(e){return 103===e||165===e}function Fr(e,t,n){for(;;){He();const r=cy(ze());if(!(43===ze()?r>=e:r>e))break;if(103===ze()&&Ee())break;if(130===ze()||152===ze()){if(a.hasPrecedingLineBreak())break;{const e=ze();Ve(),t=152===e?Pr(t,fr()):Ir(t,fr())}}else t=Ar(t,gt(),Nr(r),n)}return t}function Er(){return(!Ee()||103!==ze())&&cy(ze())>0}function Pr(e,t){return xt(N.createSatisfiesExpression(e,t),e.pos)}function Ar(e,t,n,r){return xt(N.createBinaryExpression(e,t,n),r)}function Ir(e,t){return xt(N.createAsExpression(e,t),e.pos)}function Or(){const e=Be();return xt(N.createPrefixUnaryExpression(ze(),Ue(jr)),e)}function Lr(){if(function(){switch(ze()){case 40:case 41:case 55:case 54:case 91:case 114:case 116:case 135:return!1;case 30:if(1!==m)return!1;default:return!0}}()){const e=Be(),t=Mr();return 43===ze()?Fr(cy(ze()),t,e):t}const e=ze(),t=jr();if(43===ze()){const n=Qa(d,t.pos),{end:r}=t;217===t.kind?je(n,r,_a.A_type_assertion_expression_is_not_allowed_in_the_left_hand_side_of_an_exponentiation_expression_Consider_enclosing_the_expression_in_parentheses):(un.assert(Nh(e)),je(n,r,_a.An_unary_expression_with_the_0_operator_is_not_allowed_in_the_left_hand_side_of_an_exponentiation_expression_Consider_enclosing_the_expression_in_parentheses,Fa(e)))}return t}function jr(){switch(ze()){case 40:case 41:case 55:case 54:return Or();case 91:return function(){const e=Be();return xt(N.createDeleteExpression(Ue(jr)),e)}();case 114:return function(){const e=Be();return xt(N.createTypeOfExpression(Ue(jr)),e)}();case 116:return function(){const e=Be();return xt(N.createVoidExpression(Ue(jr)),e)}();case 30:return 1===m?Jr(!0,void 0,void 0,!0):function(){un.assert(1!==m,"Type assertions should never be parsed in JSX; they should be parsed as comparisons or JSX elements/fragments.");const e=Be();at(30);const t=fr();at(32);const n=jr();return xt(N.createTypeAssertion(t,n),e)}();case 135:if(135===ze()&&(Ie()||tt(yi)))return function(){const e=Be();return xt(N.createAwaitExpression(Ue(jr)),e)}();default:return Mr()}}function Mr(){if(46===ze()||47===ze()){const e=Be();return xt(N.createPrefixUnaryExpression(ze(),Ue(Rr)),e)}if(1===m&&30===ze()&&tt(Vt))return Jr(!0);const e=Rr();if(un.assert(R_(e)),(46===ze()||47===ze())&&!a.hasPrecedingLineBreak()){const t=ze();return Ve(),xt(N.createPostfixUnaryExpression(e,t),e.pos)}return e}function Rr(){const e=Be();let t;return 102===ze()?tt(Bn)?(u|=4194304,t=gt()):tt(Jn)?(Ve(),Ve(),t=xt(N.createMetaProperty(102,Nt()),e),"defer"===t.name.escapedText?21!==ze()&&30!==ze()||(u|=4194304):u|=8388608):t=Br():t=108===ze()?function(){const e=Be();let t=gt();if(30===ze()){const e=Be(),n=nt(ni);void 0!==n&&(je(e,Be(),_a.super_may_not_use_type_arguments),Yr()||(t=N.createExpressionWithTypeArguments(t,n)))}return 21===ze()||25===ze()||23===ze()?t:(mt(25,_a.super_must_be_followed_by_an_argument_list_or_member_access),xt(M(t,cn(!0,!0,!0)),e))}():Br(),ei(e,t)}function Br(){return Qr(Be(),ri(),!0)}function Jr(e,t,n,r=!1){const i=Be(),o=function(e){const t=Be();if(at(30),32===ze())return Ze(),xt(N.createJsxOpeningFragment(),t);const n=Ur(),r=524288&w?void 0:lo(),i=function(){const e=Be();return xt(N.createJsxAttributes(Xt(13,Wr)),e)}();let o;return 32===ze()?(Ze(),o=N.createJsxOpeningElement(n,r,i)):(at(44),at(32,void 0,!1)&&(e?Ve():Ze()),o=N.createJsxSelfClosingElement(n,r,i)),xt(o,t)}(e);let a;if(287===o.kind){let t,r=qr(o);const s=r[r.length-1];if(285===(null==s?void 0:s.kind)&&!xO(s.openingElement.tagName,s.closingElement.tagName)&&xO(o.tagName,s.closingElement.tagName)){const e=s.children.end,n=xt(N.createJsxElement(s.openingElement,s.children,xt(N.createJsxClosingElement(xt(A(""),e,e)),e,e)),s.openingElement.pos,e);r=bt([...r.slice(0,r.length-1),n],r.pos,e),t=s.closingElement}else t=function(e,t){const n=Be();at(31);const r=Ur();return at(32,void 0,!1)&&(t||!xO(e.tagName,r)?Ve():Ze()),xt(N.createJsxClosingElement(r),n)}(o,e),xO(o.tagName,t.tagName)||(n&&UE(n)&&xO(t.tagName,n.tagName)?Me(o.tagName,_a.JSX_element_0_has_no_corresponding_closing_tag,Gd(d,o.tagName)):Me(t.tagName,_a.Expected_corresponding_JSX_closing_tag_for_0,Gd(d,o.tagName)));a=xt(N.createJsxElement(o,r,t),i)}else 290===o.kind?a=xt(N.createJsxFragment(o,qr(o),function(e){const t=Be();return at(31),at(32,_a.Expected_corresponding_closing_tag_for_JSX_fragment,!1)&&(e?Ve():Ze()),xt(N.createJsxJsxClosingFragment(),t)}(e)),i):(un.assert(286===o.kind),a=o);if(!r&&e&&30===ze()){const e=void 0===t?a.pos:t,n=nt(()=>Jr(!0,e));if(n){const t=kt(28,!1);return wT(t,n.pos,0),je(Qa(d,e),n.end,_a.JSX_expressions_must_have_one_parent_element),xt(N.createBinaryExpression(a,t,n),i)}}return a}function zr(e,t){switch(t){case 1:if($E(e))Me(e,_a.JSX_fragment_has_no_corresponding_closing_tag);else{const t=e.tagName;je(Math.min(Qa(d,t.pos),t.end),t.end,_a.JSX_element_0_has_no_corresponding_closing_tag,Gd(d,e.tagName))}return;case 31:case 7:return;case 12:case 13:return function(){const e=Be(),t=N.createJsxText(a.getTokenValue(),13===v);return v=a.scanJsxToken(),xt(t,e)}();case 19:return Vr(!1);case 30:return Jr(!1,void 0,e);default:return un.assertNever(t)}}function qr(e){const t=[],n=Be(),r=T;for(T|=16384;;){const n=zr(e,v=a.reScanJsxToken());if(!n)break;if(t.push(n),UE(e)&&285===(null==n?void 0:n.kind)&&!xO(n.openingElement.tagName,n.closingElement.tagName)&&xO(e.tagName,n.closingElement.tagName))break}return T=r,bt(t,n)}function Ur(){const e=Be(),t=function(){const e=Be();Ye();const t=110===ze(),n=Dt();return pt(59)?(Ye(),xt(N.createJsxNamespacedName(n,Dt()),e)):t?xt(N.createToken(110),e):n}();if(YE(t))return t;let n=t;for(;pt(25);)n=xt(M(n,cn(!0,!1,!1)),e);return n}function Vr(e){const t=Be();if(!at(19))return;let n,r;return 20!==ze()&&(e||(n=ft(26)),r=yr()),e?at(20):at(20,void 0,!1)&&Ze(),xt(N.createJsxExpression(n,r),t)}function Wr(){if(19===ze())return function(){const e=Be();at(19),at(26);const t=yr();return at(20),xt(N.createJsxSpreadAttribute(t),e)}();const e=Be();return xt(N.createJsxAttribute(function(){const e=Be();Ye();const t=Dt();return pt(59)?(Ye(),xt(N.createJsxNamespacedName(t,Dt()),e)):t}(),function(){if(64===ze()){if(11===(v=a.scanJsxAttributeValue()))return fn();if(19===ze())return Vr(!0);if(30===ze())return Jr(!0);Oe(_a.or_JSX_element_expected)}}()),e)}function $r(){return Ve(),ua(ze())||23===ze()||Yr()}function Hr(){return 29===ze()&&tt($r)}function Kr(e){if(64&e.flags)return!0;if(MF(e)){let t=e.expression;for(;MF(t)&&!(64&t.flags);)t=t.expression;if(64&t.flags){for(;MF(e);)e.flags|=64,e=e.expression;return!0}}return!1}function Gr(e,t,n){const r=cn(!0,!0,!0),i=n||Kr(t),o=i?R(t,n,r):M(t,r);return i&&sD(o.name)&&Me(o.name,_a.An_optional_chain_cannot_contain_private_identifiers),OF(t)&&t.typeArguments&&je(t.typeArguments.pos-1,Qa(d,t.typeArguments.end)+1,_a.An_instantiation_expression_cannot_be_followed_by_a_property_access),xt(o,e)}function Xr(e,t,n){let r;if(24===ze())r=kt(80,!0,_a.An_element_access_expression_should_take_an_argument);else{const e=Se(yr);jh(e)&&(e.text=St(e.text)),r=e}return at(24),xt(n||Kr(t)?z(t,n,r):J(t,r),e)}function Qr(e,t,n){for(;;){let r,i=!1;if(n&&Hr()?(r=mt(29),i=ua(ze())):i=pt(25),i)t=Gr(e,t,r);else if(!r&&Ae()||!pt(23)){if(!Yr()){if(!r){if(54===ze()&&!a.hasPrecedingLineBreak()){Ve(),t=xt(N.createNonNullExpression(t),e);continue}const n=nt(ni);if(n){t=xt(N.createExpressionWithTypeArguments(t,n),e);continue}}return t}t=r||234!==t.kind?Zr(e,t,r,void 0):Zr(e,t.expression,r,t.typeArguments)}else t=Xr(e,t,r)}}function Yr(){return 15===ze()||16===ze()}function Zr(e,t,n,r){const i=N.createTaggedTemplateExpression(t,r,15===ze()?(Ke(!0),fn()):ln(!0));return(n||64&t.flags)&&(i.flags|=64),i.questionDotToken=n,xt(i,e)}function ei(e,t){for(;;){let n;t=Qr(e,t,!0);const r=ft(29);if(!r||(n=nt(ni),!Yr())){if(n||21===ze()){r||234!==t.kind||(n=t.typeArguments,t=t.expression);const i=ti();t=xt(r||Kr(t)?U(t,r,n,i):q(t,n,i),e);continue}if(r){const n=kt(80,!1,_a.Identifier_expected);t=xt(R(t,r,n),e)}break}t=Zr(e,t,r,n)}return t}function ti(){at(21);const e=tn(11,oi);return at(22),e}function ni(){if(524288&w)return;if(30!==Ge())return;Ve();const e=tn(20,fr);return 32===He()?(Ve(),e&&function(){switch(ze()){case 21:case 15:case 16:return!0;case 30:case 32:case 40:case 41:return!1}return a.hasPrecedingLineBreak()||Er()||!hr()}()?e:void 0):void 0}function ri(){switch(ze()){case 15:26656&a.getTokenFlags()&&Ke(!1);case 9:case 10:case 11:return fn();case 110:case 108:case 106:case 112:case 97:return gt();case 21:return function(){const e=Be(),t=Je();at(21);const n=Se(yr);return at(22),ue(xt(W(n),e),t)}();case 23:return ai();case 19:return ci();case 134:if(!tt(hi))break;return li();case 60:return function(){const e=Be(),t=Je(),n=to(!0);if(86===ze())return oo(e,t,n,232);const r=kt(283,!0,_a.Expression_expected);return ST(r,e),r.modifiers=n,r}();case 86:return oo(Be(),Je(),void 0,232);case 100:return li();case 105:return function(){const e=Be();if(at(105),pt(25)){const t=Nt();return xt(N.createMetaProperty(105,t),e)}let t,n=Qr(Be(),ri(),!1);234===n.kind&&(t=n.typeArguments,n=n.expression),29===ze()&&Oe(_a.Invalid_optional_chain_from_new_expression_Did_you_mean_to_call_0,Gd(d,n));const r=21===ze()?ti():void 0;return xt(V(n,t,r),e)}();case 44:case 69:if(14===(v=a.reScanSlashToken()))return fn();break;case 16:return ln(!1);case 81:return Pt()}return wt(_a.Expression_expected)}function ii(){return 26===ze()?function(){const e=Be();at(26);const t=br(!0);return xt(N.createSpreadElement(t),e)}():28===ze()?xt(N.createOmittedExpression(),Be()):br(!0)}function oi(){return xe(40960,ii)}function ai(){const e=Be(),t=a.getTokenStart(),n=at(23),r=a.hasPrecedingLineBreak(),i=tn(15,ii);return dt(23,24,n,t),xt(L(i,r),e)}function si(){const e=Be(),t=Je();if(ft(26)){const n=br(!0);return ue(xt(N.createSpreadAssignment(n),e),t)}const n=to(!0);if(At(139))return Xi(e,t,n,178,0);if(At(153))return Xi(e,t,n,179,0);const r=ft(42),i=ot(),o=Et(),a=ft(58),s=ft(54);if(r||21===ze()||30===ze())return Hi(e,t,n,r,o,a,s);let c;if(i&&59!==ze()){const e=ft(64),t=e?Se(()=>br(!0)):void 0;c=N.createShorthandPropertyAssignment(o,t),c.equalsToken=e}else{at(59);const e=Se(()=>br(!0));c=N.createPropertyAssignment(o,e)}return c.modifiers=n,c.questionToken=a,c.exclamationToken=s,ue(xt(c,e),t)}function ci(){const e=Be(),t=a.getTokenStart(),n=at(19),r=a.hasPrecedingLineBreak(),i=tn(12,si,!0);return dt(19,20,n,t),xt(j(i,r),e)}function li(){const e=Ae();ve(!1);const t=Be(),n=Je(),r=to(!1);at(100);const i=ft(42),o=i?1:0,a=$(r,_D)?2:0,s=o&&a?ke(81920,_i):o?ke(16384,_i):a?we(_i):_i();const c=Cn(),l=Pn(o|a),_=Fn(59,!1),u=di(o|a);return ve(e),ue(xt(N.createFunctionExpression(r,i,s,c,l,_,u),t),n)}function _i(){return it()?Ct():void 0}function ui(e,t){const n=Be(),r=Je(),i=a.getTokenStart(),o=at(19,t);if(o||e){const e=a.hasPrecedingLineBreak(),t=Xt(1,Fi);dt(19,20,o,i);const s=ue(xt(H(t,e),n),r);return 64===ze()&&(Oe(_a.Declaration_or_statement_expected_This_follows_a_block_of_statements_so_if_you_intended_to_write_a_destructuring_assignment_you_might_need_to_wrap_the_whole_assignment_in_parentheses),Ve()),s}{const e=rn();return ue(xt(H(e,void 0),n),r)}}function di(e,t){const n=Fe();he(!!(1&e));const r=Ie();be(!!(2&e));const i=re;re=!1;const o=Ae();o&&ve(!1);const a=ui(!!(16&e),t);return o&&ve(!0),re=i,he(n),be(r),a}function pi(e){const t=Be(),n=Je();at(253===e?83:88);const r=ht()?void 0:wt();return vt(),ue(xt(253===e?N.createBreakStatement(r):N.createContinueStatement(r),t),n)}function fi(){return 84===ze()?function(){const e=Be(),t=Je();at(84);const n=Se(yr);at(59);const r=Xt(3,Fi);return ue(xt(N.createCaseClause(n,r),e),t)}():function(){const e=Be();at(90),at(59);const t=Xt(3,Fi);return xt(N.createDefaultClause(t),e)}()}function mi(){return Ve(),ua(ze())&&!a.hasPrecedingLineBreak()}function gi(){return Ve(),86===ze()&&!a.hasPrecedingLineBreak()}function hi(){return Ve(),100===ze()&&!a.hasPrecedingLineBreak()}function yi(){return Ve(),(ua(ze())||9===ze()||10===ze()||11===ze())&&!a.hasPrecedingLineBreak()}function vi(){for(;;)switch(ze()){case 115:case 121:case 87:case 100:case 86:case 94:return!0;case 160:return wi();case 135:return Di();case 120:case 156:case 166:return xr();case 144:case 145:return Li();case 128:case 129:case 134:case 138:case 123:case 124:case 125:case 148:const e=ze();if(Ve(),a.hasPrecedingLineBreak())return!1;if(138===e&&156===ze())return!0;continue;case 162:return Ve(),19===ze()||80===ze()||95===ze();case 102:return Ve(),166===ze()||11===ze()||42===ze()||19===ze()||ua(ze());case 95:let t=Ve();if(156===t&&(t=tt(Ve)),64===t||42===t||19===t||90===t||130===t||60===t)return!0;continue;case 126:Ve();continue;default:return!1}}function bi(){return tt(vi)}function xi(){switch(ze()){case 60:case 27:case 19:case 115:case 121:case 160:case 100:case 86:case 94:case 101:case 92:case 117:case 99:case 88:case 83:case 107:case 118:case 109:case 111:case 113:case 89:case 85:case 98:case 134:case 138:case 120:case 144:case 145:case 156:case 162:case 166:return!0;case 102:return bi()||tt(zn);case 87:case 95:return bi();case 129:case 125:case 123:case 124:case 126:case 148:return bi()||!tt(mi);default:return hr()}}function ki(){return Ve(),it()||19===ze()||23===ze()}function Si(){return Ci(!0)}function Ti(){return Ve(),64===ze()||27===ze()||59===ze()}function Ci(e){return Ve(),e&&165===ze()?tt(Ti):(it()||19===ze())&&!a.hasPrecedingLineBreak()}function wi(){return tt(Ci)}function Ni(e){return 160===Ve()&&Ci(e)}function Di(){return tt(Ni)}function Fi(){switch(ze()){case 27:return function(){const e=Be(),t=Je();return at(27),ue(xt(N.createEmptyStatement(),e),t)}();case 19:return ui(!1);case 115:return Wi(Be(),Je(),void 0);case 121:if(tt(ki))return Wi(Be(),Je(),void 0);break;case 135:if(Di())return Wi(Be(),Je(),void 0);break;case 160:if(wi())return Wi(Be(),Je(),void 0);break;case 100:return $i(Be(),Je(),void 0);case 86:return io(Be(),Je(),void 0);case 101:return function(){const e=Be(),t=Je();at(101);const n=a.getTokenStart(),r=at(21),i=Se(yr);dt(21,22,r,n);const o=Fi(),s=pt(93)?Fi():void 0;return ue(xt(Q(i,o,s),e),t)}();case 92:return function(){const e=Be(),t=Je();at(92);const n=Fi();at(117);const r=a.getTokenStart(),i=at(21),o=Se(yr);return dt(21,22,i,r),pt(27),ue(xt(N.createDoStatement(n,o),e),t)}();case 117:return function(){const e=Be(),t=Je();at(117);const n=a.getTokenStart(),r=at(21),i=Se(yr);dt(21,22,r,n);const o=Fi();return ue(xt(Y(i,o),e),t)}();case 99:return function(){const e=Be(),t=Je();at(99);const n=ft(135);let r,i;if(at(21),27!==ze()&&(r=115===ze()||121===ze()||87===ze()||160===ze()&&tt(Si)||135===ze()&&tt(Ni)?Ui(!0):ke(8192,yr)),n?at(165):pt(165)){const e=Se(()=>br(!0));at(22),i=ee(n,r,e,Fi())}else if(pt(103)){const e=Se(yr);at(22),i=N.createForInStatement(r,e,Fi())}else{at(27);const e=27!==ze()&&22!==ze()?Se(yr):void 0;at(27);const t=22!==ze()?Se(yr):void 0;at(22),i=Z(r,e,t,Fi())}return ue(xt(i,e),t)}();case 88:return pi(252);case 83:return pi(253);case 107:return function(){const e=Be(),t=Je();at(107);const n=ht()?void 0:Se(yr);return vt(),ue(xt(N.createReturnStatement(n),e),t)}();case 118:return function(){const e=Be(),t=Je();at(118);const n=a.getTokenStart(),r=at(21),i=Se(yr);dt(21,22,r,n);const o=ke(67108864,Fi);return ue(xt(N.createWithStatement(i,o),e),t)}();case 109:return function(){const e=Be(),t=Je();at(109),at(21);const n=Se(yr);at(22);const r=function(){const e=Be();at(19);const t=Xt(2,fi);return at(20),xt(N.createCaseBlock(t),e)}();return ue(xt(N.createSwitchStatement(n,r),e),t)}();case 111:return function(){const e=Be(),t=Je();at(111);let n=a.hasPrecedingLineBreak()?void 0:Se(yr);return void 0===n&&(S++,n=xt(A(""),Be())),yt()||lt(n),ue(xt(N.createThrowStatement(n),e),t)}();case 113:case 85:case 98:return function(){const e=Be(),t=Je();at(113);const n=ui(!1),r=85===ze()?function(){const e=Be();let t;at(85),pt(21)?(t=qi(),at(22)):t=void 0;const n=ui(!1);return xt(N.createCatchClause(t,n),e)}():void 0;let i;return r&&98!==ze()||(at(98,_a.catch_or_finally_expected),i=ui(!1)),ue(xt(N.createTryStatement(n,r,i),e),t)}();case 89:return function(){const e=Be(),t=Je();return at(89),vt(),ue(xt(N.createDebuggerStatement(),e),t)}();case 60:return Pi();case 134:case 120:case 156:case 144:case 145:case 138:case 87:case 94:case 95:case 102:case 123:case 124:case 125:case 128:case 129:case 126:case 148:case 162:if(bi())return Pi()}return function(){const e=Be();let t,n=Je();const r=21===ze(),i=Se(yr);return aD(i)&&pt(59)?t=N.createLabeledStatement(i,Fi()):(yt()||lt(i),t=X(i),r&&(n=!1)),ue(xt(t,e),n)}()}function Ei(e){return 138===e.kind}function Pi(){const e=Be(),t=Je(),n=to(!0);if($(n,Ei)){const r=function(e){return ke(33554432,()=>{const t=Yt(T,e);if(t)return Zt(t)})}(e);if(r)return r;for(const e of n)e.flags|=33554432;return ke(33554432,()=>Ai(e,t,n))}return Ai(e,t,n)}function Ai(e,t,n){switch(ze()){case 115:case 121:case 87:case 160:case 135:return Wi(e,t,n);case 100:return $i(e,t,n);case 86:return io(e,t,n);case 120:return function(e,t,n){at(120);const r=wt(),i=Cn(),o=ao(),a=qn();return ue(xt(N.createInterfaceDeclaration(n,r,i,o,a),e),t)}(e,t,n);case 156:return function(e,t,n){at(156),a.hasPrecedingLineBreak()&&Oe(_a.Line_break_not_permitted_here);const r=wt(),i=Cn();at(64);const o=141===ze()&&nt(Gn)||fr();return vt(),ue(xt(N.createTypeAliasDeclaration(n,r,i,o),e),t)}(e,t,n);case 94:return function(e,t,n){at(94);const r=wt();let i;return at(19)?(i=xe(81920,()=>tn(6,uo)),at(20)):i=rn(),ue(xt(N.createEnumDeclaration(n,r,i),e),t)}(e,t,n);case 162:case 144:case 145:return function(e,t,n){let r=0;if(162===ze())return mo(e,t,n);if(pt(145))r|=32;else if(at(144),11===ze())return mo(e,t,n);return fo(e,t,n,r)}(e,t,n);case 102:return function(e,t,n){at(102);const r=a.getTokenFullStart();let i,o;if(ot()&&(i=wt()),"type"===(null==i?void 0:i.escapedText)&&(161!==ze()||ot()&&tt(Oi))&&(ot()||42===ze()||19===ze())?(o=156,i=ot()?wt():void 0):"defer"!==(null==i?void 0:i.escapedText)||(161===ze()?tt(Ii):28===ze()||64===ze())||(o=166,i=ot()?wt():void 0),i&&28!==ze()&&161!==ze()&&166!==o)return function(e,t,n,r,i){at(64);const o=149===ze()&&tt(go)?function(){const e=Be();at(149),at(21);const t=So();return at(22),xt(N.createExternalModuleReference(t),e)}():an(!1);vt();return ue(xt(N.createImportEqualsDeclaration(n,i,r,o),e),t)}(e,t,n,i,156===o);const s=vo(i,r,o,void 0),c=So(),l=bo();return vt(),ue(xt(N.createImportDeclaration(n,s,c,l),e),t)}(e,t,n);case 95:switch(Ve(),ze()){case 90:case 64:return function(e,t,n){const r=Ie();let i;be(!0),pt(64)?i=!0:at(90);const o=br(!0);return vt(),be(r),ue(xt(N.createExportAssignment(n,i,o),e),t)}(e,t,n);case 130:return function(e,t,n){at(130),at(145);const r=wt();vt();const i=N.createNamespaceExportDeclaration(r);return i.modifiers=n,ue(xt(i,e),t)}(e,t,n);default:return function(e,t,n){const r=Ie();let i,o,s;be(!0);const c=pt(156),l=Be();pt(42)?(pt(130)&&(i=function(e){return xt(N.createNamespaceExport(Co(Nt)),e)}(l)),at(161),o=So()):(i=wo(280),(161===ze()||11===ze()&&!a.hasPrecedingLineBreak())&&(at(161),o=So()));const _=ze();return!o||118!==_&&132!==_||a.hasPrecedingLineBreak()||(s=ko(_)),vt(),be(r),ue(xt(N.createExportDeclaration(n,c,i,o,s),e),t)}(e,t,n)}default:if(n){const t=kt(283,!0,_a.Declaration_expected);return ST(t,e),t.modifiers=n,t}return}}function Ii(){return 11===Ve()}function Oi(){return Ve(),161===ze()||64===ze()}function Li(){return Ve(),!a.hasPrecedingLineBreak()&&(ot()||11===ze())}function ji(e,t){if(19!==ze()){if(4&e)return void An();if(ht())return void vt()}return di(e,t)}function Mi(){const e=Be();if(28===ze())return xt(N.createOmittedExpression(),e);const t=ft(26),n=Ji(),r=vr();return xt(N.createBindingElement(t,void 0,n,r),e)}function Ri(){const e=Be(),t=ft(26),n=it();let r,i=Et();n&&59!==ze()?(r=i,i=void 0):(at(59),r=Ji());const o=vr();return xt(N.createBindingElement(t,i,r,o),e)}function Bi(){return 19===ze()||23===ze()||81===ze()||it()}function Ji(e){return 23===ze()?function(){const e=Be();at(23);const t=Se(()=>tn(10,Mi));return at(24),xt(N.createArrayBindingPattern(t),e)}():19===ze()?function(){const e=Be();at(19);const t=Se(()=>tn(9,Ri));return at(20),xt(N.createObjectBindingPattern(t),e)}():Ct(e)}function zi(){return qi(!0)}function qi(e){const t=Be(),n=Je(),r=Ji(_a.Private_identifiers_are_not_allowed_in_variable_declarations);let i;e&&80===r.kind&&54===ze()&&!a.hasPrecedingLineBreak()&&(i=gt());const o=mr(),s=Dr(ze())?void 0:vr();return ue(xt(te(r,i,o,s),t),n)}function Ui(e){const t=Be();let n,r=0;switch(ze()){case 115:break;case 121:r|=1;break;case 87:r|=2;break;case 160:r|=4;break;case 135:un.assert(Di()),r|=6,Ve();break;default:un.fail()}if(Ve(),165===ze()&&tt(Vi))n=rn();else{const t=Ee();ge(e),n=tn(8,e?qi:zi),ge(t)}return xt(ne(n,r),t)}function Vi(){return qt()&&22===Ve()}function Wi(e,t,n){const r=Ui(!1);return vt(),ue(xt(G(n,r),e),t)}function $i(e,t,n){const r=Ie(),i=$v(n);at(100);const o=ft(42),a=2048&i?_i():Ct(),s=o?1:0,c=1024&i?2:0,l=Cn();32&i&&be(!0);const _=Pn(s|c),u=Fn(59,!1),d=ji(s|c,_a.or_expected);return be(r),ue(xt(N.createFunctionDeclaration(n,o,a,l,_,u,d),e),t)}function Hi(e,t,n,r,i,o,a,s){const c=r?1:0,l=$(n,_D)?2:0,_=Cn(),u=Pn(c|l),d=Fn(59,!1),p=ji(c|l,s),f=N.createMethodDeclaration(n,r,i,o,_,u,d,p);return f.exclamationToken=a,ue(xt(f,e),t)}function Ki(e,t,n,r,i){const o=i||a.hasPrecedingLineBreak()?void 0:ft(54),s=mr(),c=xe(90112,vr);return function(e,t,n){if(60!==ze()||a.hasPrecedingLineBreak())return 21===ze()?(Oe(_a.Cannot_start_a_function_call_in_a_type_annotation),void Ve()):void(!t||ht()?yt()||(n?Oe(_a._0_expected,Fa(27)):lt(e)):n?Oe(_a._0_expected,Fa(27)):Oe(_a.Expected_for_property_initializer));Oe(_a.Decorators_must_precede_the_name_and_all_keywords_of_property_declarations)}(r,s,c),ue(xt(N.createPropertyDeclaration(n,r,i||o,s,c),e),t)}function Gi(e,t,n){const r=ft(42),i=Et(),o=ft(58);return r||21===ze()||30===ze()?Hi(e,t,n,r,i,o,void 0,_a.or_expected):Ki(e,t,n,i,o)}function Xi(e,t,n,r,i){const o=Et(),a=Cn(),s=Pn(0),c=Fn(59,!1),l=ji(i),_=178===r?N.createGetAccessorDeclaration(n,o,s,c,l):N.createSetAccessorDeclaration(n,o,s,l);return _.typeParameters=a,ID(_)&&(_.type=c),ue(xt(_,e),t)}function Qi(){let e;if(60===ze())return!0;for(;Xl(ze());){if(e=ze(),Yl(e))return!0;Ve()}if(42===ze())return!0;if(Ft()&&(e=ze(),Ve()),23===ze())return!0;if(void 0!==e){if(!Ch(e)||153===e||139===e)return!0;switch(ze()){case 21:case 30:case 54:case 59:case 64:case 58:return!0;default:return ht()}}return!1}function Yi(){if(Ie()&&135===ze()){const e=Be(),t=wt(_a.Expression_expected);return Ve(),ei(e,Qr(e,t,!0))}return Rr()}function Zi(){const e=Be();if(!pt(60))return;const t=ke(32768,Yi);return xt(N.createDecorator(t),e)}function eo(e,t,n){const r=Be(),i=ze();if(87===ze()&&t){if(!nt(It))return}else{if(n&&126===ze()&&tt(ho))return;if(e&&126===ze())return;if(!Xl(ze())||!nt(Ot))return}return xt(O(i),r)}function to(e,t,n){const r=Be();let i,o,a,s=!1,c=!1,l=!1;if(e&&60===ze())for(;o=Zi();)i=ie(i,o);for(;a=eo(s,t,n);)126===a.kind&&(s=!0),i=ie(i,a),c=!0;if(c&&e&&60===ze())for(;o=Zi();)i=ie(i,o),l=!0;if(l)for(;a=eo(s,t,n);)126===a.kind&&(s=!0),i=ie(i,a);return i&&bt(i,r)}function no(){let e;if(134===ze()){const t=Be();Ve(),e=bt([xt(O(134),t)],t)}return e}function ro(){const e=Be(),t=Je();if(27===ze())return Ve(),ue(xt(N.createSemicolonClassElement(),e),t);const n=to(!0,!0,!0);if(126===ze()&&tt(ho))return function(e,t,n){mt(126);const r=function(){const e=Fe(),t=Ie();he(!1),be(!0);const n=ui(!1);return he(e),be(t),n}(),i=ue(xt(N.createClassStaticBlockDeclaration(r),e),t);return i.modifiers=n,i}(e,t,n);if(At(139))return Xi(e,t,n,178,0);if(At(153))return Xi(e,t,n,179,0);if(137===ze()||11===ze()){const r=function(e,t,n){return nt(()=>{if(137===ze()?at(137):11===ze()&&21===tt(Ve)?nt(()=>{const e=fn();return"constructor"===e.text?e:void 0}):void 0){const r=Cn(),i=Pn(0),o=Fn(59,!1),a=ji(0,_a.or_expected),s=N.createConstructorDeclaration(n,i,a);return s.typeParameters=r,s.type=o,ue(xt(s,e),t)}})}(e,t,n);if(r)return r}if(On())return jn(e,t,n);if(ua(ze())||11===ze()||9===ze()||10===ze()||42===ze()||23===ze()){if($(n,Ei)){for(const e of n)e.flags|=33554432;return ke(33554432,()=>Gi(e,t,n))}return Gi(e,t,n)}if(n){const r=kt(80,!0,_a.Declaration_expected);return Ki(e,t,n,r,void 0)}return un.fail("Should not have attempted to parse class member declaration.")}function io(e,t,n){return oo(e,t,n,264)}function oo(e,t,n,r){const i=Ie();at(86);const o=!it()||119===ze()&&tt(Ut)?void 0:Tt(it()),a=Cn();$(n,cD)&&be(!0);const s=ao();let c;return at(19)?(c=Xt(5,ro),at(20)):c=rn(),be(i),ue(xt(264===r?N.createClassDeclaration(n,o,a,s,c):N.createClassExpression(n,o,a,s,c),e),t)}function ao(){if(_o())return Xt(22,so)}function so(){const e=Be(),t=ze();un.assert(96===t||119===t),Ve();const n=tn(7,co);return xt(N.createHeritageClause(t,n),e)}function co(){const e=Be(),t=Rr();if(234===t.kind)return t;const n=lo();return xt(N.createExpressionWithTypeArguments(t,n),e)}function lo(){return 30===ze()?on(20,fr,30,32):void 0}function _o(){return 96===ze()||119===ze()}function uo(){const e=Be(),t=Je(),n=Et(),r=Se(vr);return ue(xt(N.createEnumMember(n,r),e),t)}function po(){const e=Be();let t;return at(19)?(t=Xt(1,Fi),at(20)):t=rn(),xt(N.createModuleBlock(t),e)}function fo(e,t,n,r){const i=32&r,o=8&r?Nt():wt(),a=pt(25)?fo(Be(),!1,void 0,8|i):po();return ue(xt(N.createModuleDeclaration(n,o,a,r),e),t)}function mo(e,t,n){let r,i,o=0;return 162===ze()?(r=wt(),o|=2048):(r=fn(),r.text=St(r.text)),19===ze()?i=po():vt(),ue(xt(N.createModuleDeclaration(n,r,i,o),e),t)}function go(){return 21===Ve()}function ho(){return 19===Ve()}function yo(){return 44===Ve()}function vo(e,t,n,r=!1){let i;return(e||42===ze()||19===ze())&&(i=function(e,t,n,r){let i;return e&&!pt(28)||(r&&a.setSkipJsDocLeadingAsterisks(!0),i=42===ze()?function(){const e=Be();at(42),at(130);const t=wt();return xt(N.createNamespaceImport(t),e)}():wo(276),r&&a.setSkipJsDocLeadingAsterisks(!1)),xt(N.createImportClause(n,e,i),t)}(e,t,n,r),at(161)),i}function bo(){const e=ze();if((118===e||132===e)&&!a.hasPrecedingLineBreak())return ko(e)}function xo(){const e=Be(),t=ua(ze())?Nt():gn(11);at(59);const n=br(!0);return xt(N.createImportAttribute(t,n),e)}function ko(e,t){const n=Be();t||at(e);const r=a.getTokenStart();if(at(19)){const t=a.hasPrecedingLineBreak(),i=tn(24,xo,!0);if(!at(20)){const e=ye(g);e&&e.code===_a._0_expected.code&&aT(e,Wx(c,d,r,1,_a.The_parser_expected_to_find_a_1_to_match_the_0_token_here,"{","}"))}return xt(N.createImportAttributes(i,t,e),n)}{const t=bt([],Be(),void 0,!1);return xt(N.createImportAttributes(t,!1,e),n)}}function So(){if(11===ze()){const e=fn();return e.text=St(e.text),e}return yr()}function To(){return ua(ze())||11===ze()}function Co(e){return 11===ze()?fn():e()}function wo(e){const t=Be();return xt(276===e?N.createNamedImports(on(23,Do,19,20)):N.createNamedExports(on(23,No,19,20)),t)}function No(){const e=Je();return ue(Fo(282),e)}function Do(){return Fo(277)}function Fo(e){const t=Be();let n,r=Ch(ze())&&!ot(),i=a.getTokenStart(),o=a.getTokenEnd(),s=!1,c=!0,l=Co(Nt);if(80===l.kind&&"type"===l.escapedText)if(130===ze()){const e=Nt();if(130===ze()){const t=Nt();To()?(s=!0,n=e,l=Co(_),c=!1):(n=l,l=t,c=!1)}else To()?(n=l,c=!1,l=Co(_)):(s=!0,l=e)}else To()&&(s=!0,l=Co(_));return c&&130===ze()&&(n=l,at(130),l=Co(_)),277===e&&(80!==l.kind?(je(Qa(d,l.pos),l.end,_a.Identifier_expected),l=CT(kt(80,!1),l.pos,l.pos)):r&&je(i,o,_a.Identifier_expected)),xt(277===e?N.createImportSpecifier(s,n,l):N.createExportSpecifier(s,n,l),t);function _(){return r=Ch(ze())&&!ot(),i=a.getTokenStart(),o=a.getTokenEnd(),Nt()}}let Eo;var Po;let Ao;var Io;let Oo;(Po=Eo||(Eo={}))[Po.SourceElements=0]="SourceElements",Po[Po.BlockStatements=1]="BlockStatements",Po[Po.SwitchClauses=2]="SwitchClauses",Po[Po.SwitchClauseStatements=3]="SwitchClauseStatements",Po[Po.TypeMembers=4]="TypeMembers",Po[Po.ClassMembers=5]="ClassMembers",Po[Po.EnumMembers=6]="EnumMembers",Po[Po.HeritageClauseElement=7]="HeritageClauseElement",Po[Po.VariableDeclarations=8]="VariableDeclarations",Po[Po.ObjectBindingElements=9]="ObjectBindingElements",Po[Po.ArrayBindingElements=10]="ArrayBindingElements",Po[Po.ArgumentExpressions=11]="ArgumentExpressions",Po[Po.ObjectLiteralMembers=12]="ObjectLiteralMembers",Po[Po.JsxAttributes=13]="JsxAttributes",Po[Po.JsxChildren=14]="JsxChildren",Po[Po.ArrayLiteralMembers=15]="ArrayLiteralMembers",Po[Po.Parameters=16]="Parameters",Po[Po.JSDocParameters=17]="JSDocParameters",Po[Po.RestProperties=18]="RestProperties",Po[Po.TypeParameters=19]="TypeParameters",Po[Po.TypeArguments=20]="TypeArguments",Po[Po.TupleElementTypes=21]="TupleElementTypes",Po[Po.HeritageClauses=22]="HeritageClauses",Po[Po.ImportOrExportSpecifiers=23]="ImportOrExportSpecifiers",Po[Po.ImportAttributes=24]="ImportAttributes",Po[Po.JSDocComment=25]="JSDocComment",Po[Po.Count=26]="Count",(Io=Ao||(Ao={}))[Io.False=0]="False",Io[Io.True=1]="True",Io[Io.Unknown=2]="Unknown",(e=>{function t(e){const t=Be(),n=(e?pt:at)(19),r=ke(16777216,Sn);e&&!n||ut(20);const i=N.createJSDocTypeExpression(r);return de(i),xt(i,t)}function n(){const e=Be(),t=pt(19),n=Be();let r=an(!1);for(;81===ze();)Xe(),We(),r=xt(N.createJSDocMemberName(r,wt()),n);t&&ut(20);const i=N.createJSDocNameReference(r);return de(i),xt(i,e)}let r;var i;let o;var s;function l(e=0,r){const i=d,o=void 0===r?i.length:e+r;if(r=o-e,un.assert(e>=0),un.assert(e<=o),un.assert(o<=i.length),!DI(i,e))return;let s,l,_,u,p,f=[];const m=[],g=T;T|=1<<25;const h=a.scanRange(e+3,r-5,function(){let t,n=1,r=e-(i.lastIndexOf("\n",e)+1)+4;function c(e){t||(t=r),f.push(e),r+=e.length}for(We();ee(5););ee(4)&&(n=0,r=0);e:for(;;){switch(ze()){case 60:v(f),p||(p=Be()),I(C(r)),n=0,t=void 0;break;case 4:f.push(a.getTokenText()),n=0,r=0;break;case 42:const i=a.getTokenText();1===n?(n=2,c(i)):(un.assert(0===n),n=1,r+=i.length);break;case 5:un.assert(2!==n,"whitespace shouldn't come from the scanner while saving top-level comment text");const o=a.getTokenText();void 0!==t&&r+o.length>t&&f.push(o.slice(t-r)),r+=o.length;break;case 1:break e;case 82:n=2,c(a.getTokenValue());break;case 19:n=2;const s=a.getTokenFullStart(),l=F(a.getTokenEnd()-1);if(l){u||y(f),m.push(xt(N.createJSDocText(f.join("")),u??e,s)),m.push(l),f=[],u=a.getTokenEnd();break}default:n=2,c(a.getTokenText())}2===n?$e(!1):We()}const d=f.join("").trimEnd();m.length&&d.length&&m.push(xt(N.createJSDocText(d),u??e,p)),m.length&&s&&un.assertIsDefined(p,"having parsed tags implies that the end of the comment span should be set");const g=s&&bt(s,l,_);return xt(N.createJSDocComment(m.length?bt(m,e,p):d.length?d:void 0,g),e,o)});return T=g,h;function y(e){for(;e.length&&("\n"===e[0]||"\r"===e[0]);)e.shift()}function v(e){for(;e.length;){const t=e[e.length-1].trimEnd();if(""!==t){if(t.lengthG(n)))&&346!==t.kind;)if(s=!0,345===t.kind){if(r){const e=Oe(_a.A_JSDoc_typedef_comment_may_not_contain_multiple_type_tags);e&&aT(e,Wx(c,d,0,0,_a.The_tag_was_first_specified_here));break}r=t}else o=ie(o,t);if(s){const t=i&&189===i.type.kind,n=N.createJSDocTypeLiteral(o,t);i=r&&r.typeExpression&&!R(r.typeExpression.type)?r.typeExpression:xt(n,e),a=i.end}}a=a||void 0!==s?Be():(o??i??t).end,s||(s=w(e,a,n,r));return xt(N.createJSDocTypedefTag(t,i,o,s),e,a)}(r,i,e,o);break;case"callback":l=function(e,t,n,r){const i=V();x();let o=D(n);const a=W(e,n);o||(o=w(e,Be(),n,r));const s=void 0!==o?Be():a.end;return xt(N.createJSDocCallbackTag(t,a,i,o),e,s)}(r,i,e,o);break;case"overload":l=function(e,t,n,r){x();let i=D(n);const o=W(e,n);i||(i=w(e,Be(),n,r));const a=void 0!==i?Be():o.end;return xt(N.createJSDocOverloadTag(t,o,i),e,a)}(r,i,e,o);break;case"satisfies":l=function(e,n,r,i){const o=t(!1),a=void 0!==r&&void 0!==i?w(e,Be(),r,i):void 0;return xt(N.createJSDocSatisfiesTag(n,o,a),e)}(r,i,e,o);break;case"see":l=function(e,t,r,i){const o=23===ze()||tt(()=>60===We()&&ua(We())&&P(a.getTokenValue()))?void 0:n(),s=void 0!==r&&void 0!==i?w(e,Be(),r,i):void 0;return xt(N.createJSDocSeeTag(t,o,s),e)}(r,i,e,o);break;case"exception":case"throws":l=function(e,t,n,r){const i=L(),o=w(e,Be(),n,r);return xt(N.createJSDocThrowsTag(t,i,o),e)}(r,i,e,o);break;case"import":l=function(e,t,n,r){const i=a.getTokenFullStart();let o;ot()&&(o=wt());const s=vo(o,i,156,!0),c=So(),l=bo(),_=void 0!==n&&void 0!==r?w(e,Be(),n,r):void 0;return xt(N.createJSDocImportTag(t,s,c,l,_),e)}(r,i,e,o);break;default:l=function(e,t,n,r){return xt(N.createJSDocUnknownTag(t,w(e,Be(),n,r)),e)}(r,i,e,o)}return l}function w(e,t,n,r){return r||(n+=t-e),D(n,r.slice(n))}function D(e,t){const n=Be();let r=[];const i=[];let o,s,c=0;function l(t){s||(s=e),r.push(t),e+=t.length}void 0!==t&&(""!==t&&l(t),c=1);let _=ze();e:for(;;){switch(_){case 4:c=0,r.push(a.getTokenText()),e=0;break;case 60:a.resetTokenState(a.getTokenEnd()-1);break e;case 1:break e;case 5:un.assert(2!==c&&3!==c,"whitespace shouldn't come from the scanner while saving comment text");const t=a.getTokenText();void 0!==s&&e+t.length>s&&(r.push(t.slice(s-e)),c=2),e+=t.length;break;case 19:c=2;const _=a.getTokenFullStart(),u=F(a.getTokenEnd()-1);u?(i.push(xt(N.createJSDocText(r.join("")),o??n,_)),i.push(u),r=[],o=a.getTokenEnd()):l(a.getTokenText());break;case 62:c=3===c?2:3,l(a.getTokenText());break;case 82:3!==c&&(c=2),l(a.getTokenValue());break;case 42:if(0===c){c=1,e+=1;break}default:3!==c&&(c=2),l(a.getTokenText())}_=2===c||3===c?$e(3===c):We()}y(r);const u=r.join("").trimEnd();return i.length?(u.length&&i.push(xt(N.createJSDocText(u),o??n)),bt(i,n,a.getTokenEnd())):u.length?u:void 0}function F(e){const t=nt(E);if(!t)return;We(),x();const n=function(){if(ua(ze())){const e=Be();let t=Nt();for(;pt(25);)t=xt(N.createQualifiedName(t,81===ze()?kt(80,!1):Nt()),e);for(;81===ze();)Xe(),We(),t=xt(N.createJSDocMemberName(t,wt()),e);return t}}(),r=[];for(;20!==ze()&&4!==ze()&&1!==ze();)r.push(a.getTokenText()),We();return xt(("link"===t?N.createJSDocLink:"linkcode"===t?N.createJSDocLinkCode:N.createJSDocLinkPlain)(n,r.join("")),e,a.getTokenEnd())}function E(){if(k(),19===ze()&&60===We()&&ua(We())){const e=a.getTokenValue();if(P(e))return e}}function P(e){return"link"===e||"linkcode"===e||"linkplain"===e}function I(e){e&&(s?s.push(e):(s=[e],l=e.pos),_=e.end)}function L(){return k(),19===ze()?t():void 0}function j(){const e=ee(23);e&&x();const t=ee(62),n=function(){let e=te();for(pt(23)&&at(24);pt(25);){const t=te();pt(23)&&at(24),e=sn(e,t)}return e}();return t&&(function(e){if(ze()===e)return function(){const e=Be(),t=ze();return We(),xt(O(t),e)}()}(62)||(un.assert(Nh(62)),kt(62,!1,_a._0_expected,Fa(62)))),e&&(x(),ft(64)&&yr(),at(24)),{name:n,isBracketed:e}}function R(e){switch(e.kind){case 151:return!0;case 189:return R(e.elementType);default:return RD(e)&&aD(e.typeName)&&"Object"===e.typeName.escapedText&&!e.typeArguments}}function B(e,t,n,r){let i=L(),o=!i;k();const{name:a,isBracketed:s}=j(),c=k();o&&!tt(E)&&(i=L());const l=w(e,Be(),r,c),_=function(e,t,n,r){if(e&&R(e.type)){const i=Be();let o,a;for(;o=nt(()=>X(n,r,t));)342===o.kind||349===o.kind?a=ie(a,o):346===o.kind&&Me(o.tagName,_a.A_JSDoc_template_tag_may_not_follow_a_typedef_callback_or_overload_tag);if(a){const t=xt(N.createJSDocTypeLiteral(a,189===e.type.kind),i);return xt(N.createJSDocTypeExpression(t),i)}}}(i,a,n,r);return _&&(i=_,o=!0),xt(1===n?N.createJSDocPropertyTag(t,a,s,i,o,l):N.createJSDocParameterTag(t,a,s,i,o,l),e)}function J(e,n,r,i){$(s,qP)&&je(n.pos,a.getTokenStart(),_a._0_tag_already_specified,mc(n.escapedText));const o=t(!0),c=void 0!==r&&void 0!==i?w(e,Be(),r,i):void 0;return xt(N.createJSDocTypeTag(n,o,c),e)}function z(){const e=pt(19),t=Be(),n=function(){const e=Be();let t=te();for(;pt(25);){const n=te();t=xt(M(t,n),e)}return t}();a.setSkipJsDocLeadingAsterisks(!0);const r=lo();a.setSkipJsDocLeadingAsterisks(!1);const i=xt(N.createExpressionWithTypeArguments(n,r),t);return e&&(x(),at(20)),i}function q(e,t,n,r,i){return xt(t(n,w(e,Be(),r,i)),e)}function U(e,n,r,i){const o=t(!0);return x(),xt(N.createJSDocThisTag(n,o,w(e,Be(),r,i)),e)}function V(e){const t=a.getTokenStart();if(!ua(ze()))return;const n=te();if(pt(25)){const r=V(!0);return xt(N.createModuleDeclaration(void 0,n,r,e?8:void 0),t)}return e&&(n.flags|=4096),n}function W(e,t){const n=function(e){const t=Be();let n,r;for(;n=nt(()=>X(4,e));){if(346===n.kind){Me(n.tagName,_a.A_JSDoc_template_tag_may_not_follow_a_typedef_callback_or_overload_tag);break}r=ie(r,n)}return bt(r||[],t)}(t),r=nt(()=>{if(ee(60)){const e=C(t);if(e&&343===e.kind)return e}});return xt(N.createJSDocSignature(void 0,n,r),e)}function H(e,t){for(;!aD(e)||!aD(t);){if(aD(e)||aD(t)||e.right.escapedText!==t.right.escapedText)return!1;e=e.left,t=t.left}return e.escapedText===t.escapedText}function G(e){return X(1,e)}function X(e,t,n){let r=!0,i=!1;for(;;)switch(We()){case 60:if(r){const r=Q(e,t);return!(r&&(342===r.kind||349===r.kind)&&n&&(aD(r.name)||!H(n,r.name.left)))&&r}i=!1;break;case 4:r=!0,i=!1;break;case 42:i&&(r=!1),i=!0;break;case 80:r=!1;break;case 1:return!1}}function Q(e,t){un.assert(60===ze());const n=a.getTokenFullStart();We();const r=te(),i=k();let o;switch(r.escapedText){case"type":return 1===e&&J(n,r);case"prop":case"property":o=1;break;case"arg":case"argument":case"param":o=6;break;case"template":return Z(n,r,t,i);case"this":return U(n,r,t,i);default:return!1}return!!(e&o)&&B(n,r,e,t)}function Y(){const e=Be(),t=ee(23);t&&x();const n=to(!1,!0),r=te(_a.Unexpected_token_A_type_parameter_name_was_expected_without_curly_braces);let i;if(t&&(x(),at(64),i=ke(16777216,Sn),at(24)),!Nd(r))return xt(N.createTypeParameterDeclaration(n,r,void 0,i),e)}function Z(e,n,r,i){const o=19===ze()?t():void 0,a=function(){const e=Be(),t=[];do{x();const e=Y();void 0!==e&&t.push(e),k()}while(ee(28));return bt(t,e)}();return xt(N.createJSDocTemplateTag(n,o,a,w(e,Be(),r,i)),e)}function ee(e){return ze()===e&&(We(),!0)}function te(e){if(!ua(ze()))return kt(80,!e,e||_a.Identifier_expected);S++;const t=a.getTokenStart(),n=a.getTokenEnd(),r=ze(),i=St(a.getTokenValue()),o=xt(A(i,r),t,n);return We(),o}}e.parseJSDocTypeExpressionForTests=function(e,n,r){ce("file.js",e,99,void 0,1,0),a.setText(e,n,r),v=a.scan();const i=t(),o=pe("file.js",99,1,!1,[],O(1),0,rt),s=Kx(g,o);return h&&(o.jsDocDiagnostics=Kx(h,o)),le(),i?{jsDocTypeExpression:i,diagnostics:s}:void 0},e.parseJSDocTypeExpression=t,e.parseJSDocNameReference=n,e.parseIsolatedJSDocComment=function(e,t,n){ce("",e,99,void 0,1,0);const r=ke(16777216,()=>l(t,n)),i=Kx(g,{languageVariant:0,text:e});return le(),r?{jsDoc:r,diagnostics:i}:void 0},e.parseJSDocComment=function(e,t,n){const r=v,i=g.length,o=oe,a=ke(16777216,()=>l(t,n));return DT(a,e),524288&w&&(h||(h=[]),se(h,g,i)),v=r,g.length=i,oe=o,a},(i=r||(r={}))[i.BeginningOfLine=0]="BeginningOfLine",i[i.SawAsterisk=1]="SawAsterisk",i[i.SavingComments=2]="SavingComments",i[i.SavingBackticks=3]="SavingBackticks",(s=o||(o={}))[s.Property=1]="Property",s[s.Parameter=2]="Parameter",s[s.CallbackParameter=4]="CallbackParameter"})(Oo=e.JSDocParser||(e.JSDocParser={}))})(AI||(AI={}));var sO,cO=new WeakSet,lO=new WeakSet;function _O(e){lO.add(e)}function uO(e){return void 0!==dO(e)}function dO(e){const t=Po(e,FS,!1);if(t)return t;if(ko(e,".ts")){const t=Fo(e),n=t.lastIndexOf(".d.");if(n>=0)return t.substring(n)}}function pO(e,t){const n=[];for(const e of _s(t,0)||l)vO(n,e,t.substring(e.pos,e.end));e.pragmas=new Map;for(const t of n){if(e.pragmas.has(t.name)){const n=e.pragmas.get(t.name);n instanceof Array?n.push(t.args):e.pragmas.set(t.name,[n,t.args]);continue}e.pragmas.set(t.name,t.args)}}function fO(e,t){e.checkJsDirective=void 0,e.referencedFiles=[],e.typeReferenceDirectives=[],e.libReferenceDirectives=[],e.amdDependencies=[],e.hasNoDefaultLib=!1,e.pragmas.forEach((n,r)=>{switch(r){case"reference":{const r=e.referencedFiles,i=e.typeReferenceDirectives,o=e.libReferenceDirectives;d(Ye(n),n=>{const{types:a,lib:s,path:c,"resolution-mode":l,preserve:_}=n.arguments,u="true"===_||void 0;if("true"===n.arguments["no-default-lib"])e.hasNoDefaultLib=!0;else if(a){const e=function(e,t,n,r){if(e)return"import"===e?99:"require"===e?1:void r(t,n-t,_a.resolution_mode_should_be_either_require_or_import)}(l,a.pos,a.end,t);i.push({pos:a.pos,end:a.end,fileName:a.value,...e?{resolutionMode:e}:{},...u?{preserve:u}:{}})}else s?o.push({pos:s.pos,end:s.end,fileName:s.value,...u?{preserve:u}:{}}):c?r.push({pos:c.pos,end:c.end,fileName:c.value,...u?{preserve:u}:{}}):t(n.range.pos,n.range.end-n.range.pos,_a.Invalid_reference_directive_syntax)});break}case"amd-dependency":e.amdDependencies=E(Ye(n),e=>({name:e.arguments.name,path:e.arguments.path}));break;case"amd-module":if(n instanceof Array)for(const r of n)e.moduleName&&t(r.range.pos,r.range.end-r.range.pos,_a.An_AMD_module_cannot_have_multiple_name_assignments),e.moduleName=r.arguments.name;else e.moduleName=n.arguments.name;break;case"ts-nocheck":case"ts-check":d(Ye(n),t=>{(!e.checkJsDirective||t.range.pos>e.checkJsDirective.pos)&&(e.checkJsDirective={enabled:"ts-check"===r,end:t.range.end,pos:t.range.pos})});break;case"jsx":case"jsxfrag":case"jsximportsource":case"jsxruntime":return;default:un.fail("Unhandled pragma kind")}})}(e=>{function t(e,t,r,o,a,s,c){return void(r?_(e):l(e));function l(e){let r="";if(c&&n(e)&&(r=a.substring(e.pos,e.end)),nA(e,t),CT(e,e.pos+o,e.end+o),c&&n(e)&&un.assert(r===s.substring(e.pos,e.end)),XI(e,l,_),Du(e))for(const t of e.jsDoc)l(t);i(e,c)}function _(e){CT(e,e.pos+o,e.end+o);for(const t of e)l(t)}}function n(e){switch(e.kind){case 11:case 9:case 80:return!0}return!1}function r(e,t,n,r,i){un.assert(e.end>=t,"Adjusting an element that was entirely before the change range"),un.assert(e.pos<=n,"Adjusting an element that was entirely after the change range"),un.assert(e.pos<=e.end);const o=Math.min(e.pos,r),a=e.end>=n?e.end+i:Math.min(e.end,r);if(un.assert(o<=a),e.parent){const t=e.parent;un.assertGreaterThanOrEqual(o,t.pos),un.assertLessThanOrEqual(a,t.end)}CT(e,o,a)}function i(e,t){if(t){let t=e.pos;const n=e=>{un.assert(e.pos>=t),t=e.end};if(Du(e))for(const t of e.jsDoc)n(t);XI(e,n),un.assert(t<=e.end)}}function o(e,t){let n,r=e;if(XI(e,function e(i){if(!Nd(i))return i.pos<=t?(i.pos>=r.pos&&(r=i),tt),!0)}),n){const e=function(e){for(;;){const t=vx(e);if(!t)return e;e=t}}(n);e.pos>r.pos&&(r=e)}return r}function a(e,t,n,r){const i=e.text;if(n&&(un.assert(i.length-n.span.length+n.newLength===t.length),r||un.shouldAssert(3))){const e=i.substr(0,n.span.start),r=t.substr(0,n.span.start);un.assert(e===r);const o=i.substring(Fs(n.span),i.length),a=t.substring(Fs(Hs(n)),t.length);un.assert(o===a)}}function s(e){let t=e.statements,n=0;un.assert(n(o!==i&&(r&&r.end===o&&n=e.pos&&i=e.pos&&i0&&t<=1;t++){const t=o(e,n);un.assert(t.pos<=n);const r=t.pos;n=Math.max(0,r-1)}return Gs($s(n,Fs(t.span)),t.newLength+(t.span.start-n))}(e,c);a(e,n,d,l),un.assert(d.span.start<=c.span.start),un.assert(Fs(d.span)===Fs(c.span)),un.assert(Fs(Hs(d))===Fs(Hs(c)));const p=Hs(d).length-d.span.length;!function(e,n,o,a,s,c,l,_){return void u(e);function u(p){if(un.assert(p.pos<=p.end),p.pos>o)return void t(p,e,!1,s,c,l,_);const f=p.end;if(f>=n){if(_O(p),nA(p,e),r(p,n,o,a,s),XI(p,u,d),Du(p))for(const e of p.jsDoc)u(e);i(p,_)}else un.assert(fo)return void t(i,e,!0,s,c,l,_);const d=i.end;if(d>=n){_O(i),r(i,n,o,a,s);for(const e of i)u(e)}else un.assert(dr){_();const t={range:{pos:e.pos+i,end:e.end+i},type:l};c=ie(c,t),s&&un.assert(o.substring(e.pos,e.end)===a.substring(t.range.pos,t.range.end))}}return _(),c;function _(){l||(l=!0,c?t&&c.push(...t):c=t)}}(e.commentDirectives,f.commentDirectives,d.span.start,Fs(d.span),p,_,n,l),f.impliedNodeFormat=e.impliedNodeFormat,rA(e,f),f},e.createSyntaxCursor=s,(l=c||(c={}))[l.Value=-1]="Value"})(sO||(sO={}));var mO=new Map;function gO(e){if(mO.has(e))return mO.get(e);const t=new RegExp(`(\\s${e}\\s*=\\s*)(?:(?:'([^']*)')|(?:"([^"]*)"))`,"im");return mO.set(e,t),t}var hO=/^\/\/\/\s*<(\S+)\s.*?\/>/m,yO=/^\/\/\/?\s*@([^\s:]+)((?:[^\S\r\n]|:).*)?$/m;function vO(e,t,n){const r=2===t.kind&&hO.exec(n);if(r){const i=r[1].toLowerCase(),o=Li[i];if(!(o&&1&o.kind))return;if(o.args){const r={};for(const e of o.args){const i=gO(e.name).exec(n);if(!i&&!e.optional)return;if(i){const n=i[2]||i[3];if(e.captureSpan){const o=t.pos+i.index+i[1].length+1;r[e.name]={value:n,pos:o,end:o+n.length}}else r[e.name]=n}}e.push({name:i,args:{arguments:r,range:t}})}else e.push({name:i,args:{arguments:{},range:t}});return}const i=2===t.kind&&yO.exec(n);if(i)return bO(e,t,2,i);if(3===t.kind){const r=/@(\S+)(\s+(?:\S.*)?)?$/gm;let i;for(;i=r.exec(n);)bO(e,t,4,i)}}function bO(e,t,n,r){if(!r)return;const i=r[1].toLowerCase(),o=Li[i];if(!(o&&o.kind&n))return;const a=function(e,t){if(!t)return{};if(!e.args)return{};const n=t.trim().split(/\s+/),r={};for(let t=0;t[""+t,e])),wO=[["es5","lib.es5.d.ts"],["es6","lib.es2015.d.ts"],["es2015","lib.es2015.d.ts"],["es7","lib.es2016.d.ts"],["es2016","lib.es2016.d.ts"],["es2017","lib.es2017.d.ts"],["es2018","lib.es2018.d.ts"],["es2019","lib.es2019.d.ts"],["es2020","lib.es2020.d.ts"],["es2021","lib.es2021.d.ts"],["es2022","lib.es2022.d.ts"],["es2023","lib.es2023.d.ts"],["es2024","lib.es2024.d.ts"],["esnext","lib.esnext.d.ts"],["dom","lib.dom.d.ts"],["dom.iterable","lib.dom.iterable.d.ts"],["dom.asynciterable","lib.dom.asynciterable.d.ts"],["webworker","lib.webworker.d.ts"],["webworker.importscripts","lib.webworker.importscripts.d.ts"],["webworker.iterable","lib.webworker.iterable.d.ts"],["webworker.asynciterable","lib.webworker.asynciterable.d.ts"],["scripthost","lib.scripthost.d.ts"],["es2015.core","lib.es2015.core.d.ts"],["es2015.collection","lib.es2015.collection.d.ts"],["es2015.generator","lib.es2015.generator.d.ts"],["es2015.iterable","lib.es2015.iterable.d.ts"],["es2015.promise","lib.es2015.promise.d.ts"],["es2015.proxy","lib.es2015.proxy.d.ts"],["es2015.reflect","lib.es2015.reflect.d.ts"],["es2015.symbol","lib.es2015.symbol.d.ts"],["es2015.symbol.wellknown","lib.es2015.symbol.wellknown.d.ts"],["es2016.array.include","lib.es2016.array.include.d.ts"],["es2016.intl","lib.es2016.intl.d.ts"],["es2017.arraybuffer","lib.es2017.arraybuffer.d.ts"],["es2017.date","lib.es2017.date.d.ts"],["es2017.object","lib.es2017.object.d.ts"],["es2017.sharedmemory","lib.es2017.sharedmemory.d.ts"],["es2017.string","lib.es2017.string.d.ts"],["es2017.intl","lib.es2017.intl.d.ts"],["es2017.typedarrays","lib.es2017.typedarrays.d.ts"],["es2018.asyncgenerator","lib.es2018.asyncgenerator.d.ts"],["es2018.asynciterable","lib.es2018.asynciterable.d.ts"],["es2018.intl","lib.es2018.intl.d.ts"],["es2018.promise","lib.es2018.promise.d.ts"],["es2018.regexp","lib.es2018.regexp.d.ts"],["es2019.array","lib.es2019.array.d.ts"],["es2019.object","lib.es2019.object.d.ts"],["es2019.string","lib.es2019.string.d.ts"],["es2019.symbol","lib.es2019.symbol.d.ts"],["es2019.intl","lib.es2019.intl.d.ts"],["es2020.bigint","lib.es2020.bigint.d.ts"],["es2020.date","lib.es2020.date.d.ts"],["es2020.promise","lib.es2020.promise.d.ts"],["es2020.sharedmemory","lib.es2020.sharedmemory.d.ts"],["es2020.string","lib.es2020.string.d.ts"],["es2020.symbol.wellknown","lib.es2020.symbol.wellknown.d.ts"],["es2020.intl","lib.es2020.intl.d.ts"],["es2020.number","lib.es2020.number.d.ts"],["es2021.promise","lib.es2021.promise.d.ts"],["es2021.string","lib.es2021.string.d.ts"],["es2021.weakref","lib.es2021.weakref.d.ts"],["es2021.intl","lib.es2021.intl.d.ts"],["es2022.array","lib.es2022.array.d.ts"],["es2022.error","lib.es2022.error.d.ts"],["es2022.intl","lib.es2022.intl.d.ts"],["es2022.object","lib.es2022.object.d.ts"],["es2022.string","lib.es2022.string.d.ts"],["es2022.regexp","lib.es2022.regexp.d.ts"],["es2023.array","lib.es2023.array.d.ts"],["es2023.collection","lib.es2023.collection.d.ts"],["es2023.intl","lib.es2023.intl.d.ts"],["es2024.arraybuffer","lib.es2024.arraybuffer.d.ts"],["es2024.collection","lib.es2024.collection.d.ts"],["es2024.object","lib.es2024.object.d.ts"],["es2024.promise","lib.es2024.promise.d.ts"],["es2024.regexp","lib.es2024.regexp.d.ts"],["es2024.sharedmemory","lib.es2024.sharedmemory.d.ts"],["es2024.string","lib.es2024.string.d.ts"],["esnext.array","lib.es2023.array.d.ts"],["esnext.collection","lib.esnext.collection.d.ts"],["esnext.symbol","lib.es2019.symbol.d.ts"],["esnext.asynciterable","lib.es2018.asynciterable.d.ts"],["esnext.intl","lib.esnext.intl.d.ts"],["esnext.disposable","lib.esnext.disposable.d.ts"],["esnext.bigint","lib.es2020.bigint.d.ts"],["esnext.string","lib.es2022.string.d.ts"],["esnext.promise","lib.es2024.promise.d.ts"],["esnext.weakref","lib.es2021.weakref.d.ts"],["esnext.decorators","lib.esnext.decorators.d.ts"],["esnext.object","lib.es2024.object.d.ts"],["esnext.array","lib.esnext.array.d.ts"],["esnext.regexp","lib.es2024.regexp.d.ts"],["esnext.string","lib.es2024.string.d.ts"],["esnext.iterator","lib.esnext.iterator.d.ts"],["esnext.promise","lib.esnext.promise.d.ts"],["esnext.float16","lib.esnext.float16.d.ts"],["esnext.error","lib.esnext.error.d.ts"],["esnext.sharedmemory","lib.esnext.sharedmemory.d.ts"],["decorators","lib.decorators.d.ts"],["decorators.legacy","lib.decorators.legacy.d.ts"]],NO=wO.map(e=>e[0]),DO=new Map(wO),FO=[{name:"watchFile",type:new Map(Object.entries({fixedpollinginterval:0,prioritypollinginterval:1,dynamicprioritypolling:2,fixedchunksizepolling:3,usefsevents:4,usefseventsonparentdirectory:5})),category:_a.Watch_and_Build_Modes,description:_a.Specify_how_the_TypeScript_watch_mode_works,defaultValueDescription:4},{name:"watchDirectory",type:new Map(Object.entries({usefsevents:0,fixedpollinginterval:1,dynamicprioritypolling:2,fixedchunksizepolling:3})),category:_a.Watch_and_Build_Modes,description:_a.Specify_how_directories_are_watched_on_systems_that_lack_recursive_file_watching_functionality,defaultValueDescription:0},{name:"fallbackPolling",type:new Map(Object.entries({fixedinterval:0,priorityinterval:1,dynamicpriority:2,fixedchunksize:3})),category:_a.Watch_and_Build_Modes,description:_a.Specify_what_approach_the_watcher_should_use_if_the_system_runs_out_of_native_file_watchers,defaultValueDescription:1},{name:"synchronousWatchDirectory",type:"boolean",category:_a.Watch_and_Build_Modes,description:_a.Synchronously_call_callbacks_and_update_the_state_of_directory_watchers_on_platforms_that_don_t_support_recursive_watching_natively,defaultValueDescription:!1},{name:"excludeDirectories",type:"list",element:{name:"excludeDirectory",type:"string",isFilePath:!0,extraValidation:qj},allowConfigDirTemplateSubstitution:!0,category:_a.Watch_and_Build_Modes,description:_a.Remove_a_list_of_directories_from_the_watch_process},{name:"excludeFiles",type:"list",element:{name:"excludeFile",type:"string",isFilePath:!0,extraValidation:qj},allowConfigDirTemplateSubstitution:!0,category:_a.Watch_and_Build_Modes,description:_a.Remove_a_list_of_files_from_the_watch_mode_s_processing}],EO=[{name:"help",shortName:"h",type:"boolean",showInSimplifiedHelpView:!0,isCommandLineOnly:!0,category:_a.Command_line_Options,description:_a.Print_this_message,defaultValueDescription:!1},{name:"help",shortName:"?",type:"boolean",isCommandLineOnly:!0,category:_a.Command_line_Options,defaultValueDescription:!1},{name:"watch",shortName:"w",type:"boolean",showInSimplifiedHelpView:!0,isCommandLineOnly:!0,category:_a.Command_line_Options,description:_a.Watch_input_files,defaultValueDescription:!1},{name:"preserveWatchOutput",type:"boolean",showInSimplifiedHelpView:!1,category:_a.Output_Formatting,description:_a.Disable_wiping_the_console_in_watch_mode,defaultValueDescription:!1},{name:"listFiles",type:"boolean",category:_a.Compiler_Diagnostics,description:_a.Print_all_of_the_files_read_during_the_compilation,defaultValueDescription:!1},{name:"explainFiles",type:"boolean",category:_a.Compiler_Diagnostics,description:_a.Print_files_read_during_the_compilation_including_why_it_was_included,defaultValueDescription:!1},{name:"listEmittedFiles",type:"boolean",category:_a.Compiler_Diagnostics,description:_a.Print_the_names_of_emitted_files_after_a_compilation,defaultValueDescription:!1},{name:"pretty",type:"boolean",showInSimplifiedHelpView:!0,category:_a.Output_Formatting,description:_a.Enable_color_and_formatting_in_TypeScript_s_output_to_make_compiler_errors_easier_to_read,defaultValueDescription:!0},{name:"traceResolution",type:"boolean",category:_a.Compiler_Diagnostics,description:_a.Log_paths_used_during_the_moduleResolution_process,defaultValueDescription:!1},{name:"diagnostics",type:"boolean",category:_a.Compiler_Diagnostics,description:_a.Output_compiler_performance_information_after_building,defaultValueDescription:!1},{name:"extendedDiagnostics",type:"boolean",category:_a.Compiler_Diagnostics,description:_a.Output_more_detailed_compiler_performance_information_after_building,defaultValueDescription:!1},{name:"generateCpuProfile",type:"string",isFilePath:!0,paramType:_a.FILE_OR_DIRECTORY,category:_a.Compiler_Diagnostics,description:_a.Emit_a_v8_CPU_profile_of_the_compiler_run_for_debugging,defaultValueDescription:"profile.cpuprofile"},{name:"generateTrace",type:"string",isFilePath:!0,paramType:_a.DIRECTORY,category:_a.Compiler_Diagnostics,description:_a.Generates_an_event_trace_and_a_list_of_types},{name:"incremental",shortName:"i",type:"boolean",category:_a.Projects,description:_a.Save_tsbuildinfo_files_to_allow_for_incremental_compilation_of_projects,transpileOptionValue:void 0,defaultValueDescription:_a.false_unless_composite_is_set},{name:"declaration",shortName:"d",type:"boolean",affectsBuildInfo:!0,showInSimplifiedHelpView:!0,category:_a.Emit,transpileOptionValue:void 0,description:_a.Generate_d_ts_files_from_TypeScript_and_JavaScript_files_in_your_project,defaultValueDescription:_a.false_unless_composite_is_set},{name:"declarationMap",type:"boolean",affectsBuildInfo:!0,showInSimplifiedHelpView:!0,category:_a.Emit,defaultValueDescription:!1,description:_a.Create_sourcemaps_for_d_ts_files},{name:"emitDeclarationOnly",type:"boolean",affectsBuildInfo:!0,showInSimplifiedHelpView:!0,category:_a.Emit,description:_a.Only_output_d_ts_files_and_not_JavaScript_files,transpileOptionValue:void 0,defaultValueDescription:!1},{name:"sourceMap",type:"boolean",affectsBuildInfo:!0,showInSimplifiedHelpView:!0,category:_a.Emit,defaultValueDescription:!1,description:_a.Create_source_map_files_for_emitted_JavaScript_files},{name:"inlineSourceMap",type:"boolean",affectsBuildInfo:!0,category:_a.Emit,description:_a.Include_sourcemap_files_inside_the_emitted_JavaScript,defaultValueDescription:!1},{name:"noCheck",type:"boolean",showInSimplifiedHelpView:!1,category:_a.Compiler_Diagnostics,description:_a.Disable_full_type_checking_only_critical_parse_and_emit_errors_will_be_reported,transpileOptionValue:!0,defaultValueDescription:!1},{name:"noEmit",type:"boolean",showInSimplifiedHelpView:!0,category:_a.Emit,description:_a.Disable_emitting_files_from_a_compilation,transpileOptionValue:void 0,defaultValueDescription:!1},{name:"assumeChangesOnlyAffectDirectDependencies",type:"boolean",affectsSemanticDiagnostics:!0,affectsEmit:!0,affectsBuildInfo:!0,category:_a.Watch_and_Build_Modes,description:_a.Have_recompiles_in_projects_that_use_incremental_and_watch_mode_assume_that_changes_within_a_file_will_only_affect_files_directly_depending_on_it,defaultValueDescription:!1},{name:"locale",type:"string",category:_a.Command_line_Options,isCommandLineOnly:!0,description:_a.Set_the_language_of_the_messaging_from_TypeScript_This_does_not_affect_emit,defaultValueDescription:_a.Platform_specific}],PO={name:"target",shortName:"t",type:new Map(Object.entries({es3:0,es5:1,es6:2,es2015:2,es2016:3,es2017:4,es2018:5,es2019:6,es2020:7,es2021:8,es2022:9,es2023:10,es2024:11,esnext:99})),affectsSourceFile:!0,affectsModuleResolution:!0,affectsEmit:!0,affectsBuildInfo:!0,deprecatedKeys:new Set(["es3"]),paramType:_a.VERSION,showInSimplifiedHelpView:!0,category:_a.Language_and_Environment,description:_a.Set_the_JavaScript_language_version_for_emitted_JavaScript_and_include_compatible_library_declarations,defaultValueDescription:1},AO={name:"module",shortName:"m",type:new Map(Object.entries({none:0,commonjs:1,amd:2,system:4,umd:3,es6:5,es2015:5,es2020:6,es2022:7,esnext:99,node16:100,node18:101,node20:102,nodenext:199,preserve:200})),affectsSourceFile:!0,affectsModuleResolution:!0,affectsEmit:!0,affectsBuildInfo:!0,paramType:_a.KIND,showInSimplifiedHelpView:!0,category:_a.Modules,description:_a.Specify_what_module_code_is_generated,defaultValueDescription:void 0},IO=[{name:"all",type:"boolean",showInSimplifiedHelpView:!0,category:_a.Command_line_Options,description:_a.Show_all_compiler_options,defaultValueDescription:!1},{name:"version",shortName:"v",type:"boolean",showInSimplifiedHelpView:!0,category:_a.Command_line_Options,description:_a.Print_the_compiler_s_version,defaultValueDescription:!1},{name:"init",type:"boolean",showInSimplifiedHelpView:!0,category:_a.Command_line_Options,description:_a.Initializes_a_TypeScript_project_and_creates_a_tsconfig_json_file,defaultValueDescription:!1},{name:"project",shortName:"p",type:"string",isFilePath:!0,showInSimplifiedHelpView:!0,category:_a.Command_line_Options,paramType:_a.FILE_OR_DIRECTORY,description:_a.Compile_the_project_given_the_path_to_its_configuration_file_or_to_a_folder_with_a_tsconfig_json},{name:"showConfig",type:"boolean",showInSimplifiedHelpView:!0,category:_a.Command_line_Options,isCommandLineOnly:!0,description:_a.Print_the_final_configuration_instead_of_building,defaultValueDescription:!1},{name:"listFilesOnly",type:"boolean",category:_a.Command_line_Options,isCommandLineOnly:!0,description:_a.Print_names_of_files_that_are_part_of_the_compilation_and_then_stop_processing,defaultValueDescription:!1},PO,AO,{name:"lib",type:"list",element:{name:"lib",type:DO,defaultValueDescription:void 0},affectsProgramStructure:!0,showInSimplifiedHelpView:!0,category:_a.Language_and_Environment,description:_a.Specify_a_set_of_bundled_library_declaration_files_that_describe_the_target_runtime_environment,transpileOptionValue:void 0},{name:"allowJs",type:"boolean",allowJsFlag:!0,affectsBuildInfo:!0,showInSimplifiedHelpView:!0,category:_a.JavaScript_Support,description:_a.Allow_JavaScript_files_to_be_a_part_of_your_program_Use_the_checkJs_option_to_get_errors_from_these_files,defaultValueDescription:!1},{name:"checkJs",type:"boolean",affectsModuleResolution:!0,affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,showInSimplifiedHelpView:!0,category:_a.JavaScript_Support,description:_a.Enable_error_reporting_in_type_checked_JavaScript_files,defaultValueDescription:!1},{name:"jsx",type:TO,affectsSourceFile:!0,affectsEmit:!0,affectsBuildInfo:!0,affectsModuleResolution:!0,affectsSemanticDiagnostics:!0,paramType:_a.KIND,showInSimplifiedHelpView:!0,category:_a.Language_and_Environment,description:_a.Specify_what_JSX_code_is_generated,defaultValueDescription:void 0},{name:"outFile",type:"string",affectsEmit:!0,affectsBuildInfo:!0,affectsDeclarationPath:!0,isFilePath:!0,paramType:_a.FILE,showInSimplifiedHelpView:!0,category:_a.Emit,description:_a.Specify_a_file_that_bundles_all_outputs_into_one_JavaScript_file_If_declaration_is_true_also_designates_a_file_that_bundles_all_d_ts_output,transpileOptionValue:void 0},{name:"outDir",type:"string",affectsEmit:!0,affectsBuildInfo:!0,affectsDeclarationPath:!0,isFilePath:!0,paramType:_a.DIRECTORY,showInSimplifiedHelpView:!0,category:_a.Emit,description:_a.Specify_an_output_folder_for_all_emitted_files},{name:"rootDir",type:"string",affectsEmit:!0,affectsBuildInfo:!0,affectsDeclarationPath:!0,isFilePath:!0,paramType:_a.LOCATION,category:_a.Modules,description:_a.Specify_the_root_folder_within_your_source_files,defaultValueDescription:_a.Computed_from_the_list_of_input_files},{name:"composite",type:"boolean",affectsBuildInfo:!0,isTSConfigOnly:!0,category:_a.Projects,transpileOptionValue:void 0,defaultValueDescription:!1,description:_a.Enable_constraints_that_allow_a_TypeScript_project_to_be_used_with_project_references},{name:"tsBuildInfoFile",type:"string",affectsEmit:!0,affectsBuildInfo:!0,isFilePath:!0,paramType:_a.FILE,category:_a.Projects,transpileOptionValue:void 0,defaultValueDescription:".tsbuildinfo",description:_a.Specify_the_path_to_tsbuildinfo_incremental_compilation_file},{name:"removeComments",type:"boolean",affectsEmit:!0,affectsBuildInfo:!0,showInSimplifiedHelpView:!0,category:_a.Emit,defaultValueDescription:!1,description:_a.Disable_emitting_comments},{name:"importHelpers",type:"boolean",affectsEmit:!0,affectsBuildInfo:!0,affectsSourceFile:!0,category:_a.Emit,description:_a.Allow_importing_helper_functions_from_tslib_once_per_project_instead_of_including_them_per_file,defaultValueDescription:!1},{name:"importsNotUsedAsValues",type:new Map(Object.entries({remove:0,preserve:1,error:2})),affectsEmit:!0,affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:_a.Backwards_Compatibility,description:_a.Specify_emit_Slashchecking_behavior_for_imports_that_are_only_used_for_types,defaultValueDescription:0},{name:"downlevelIteration",type:"boolean",affectsEmit:!0,affectsBuildInfo:!0,category:_a.Emit,description:_a.Emit_more_compliant_but_verbose_and_less_performant_JavaScript_for_iteration,defaultValueDescription:!1},{name:"isolatedModules",type:"boolean",category:_a.Interop_Constraints,description:_a.Ensure_that_each_file_can_be_safely_transpiled_without_relying_on_other_imports,transpileOptionValue:!0,defaultValueDescription:!1},{name:"verbatimModuleSyntax",type:"boolean",affectsEmit:!0,affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:_a.Interop_Constraints,description:_a.Do_not_transform_or_elide_any_imports_or_exports_not_marked_as_type_only_ensuring_they_are_written_in_the_output_file_s_format_based_on_the_module_setting,defaultValueDescription:!1},{name:"isolatedDeclarations",type:"boolean",category:_a.Interop_Constraints,description:_a.Require_sufficient_annotation_on_exports_so_other_tools_can_trivially_generate_declaration_files,defaultValueDescription:!1,affectsBuildInfo:!0,affectsSemanticDiagnostics:!0},{name:"erasableSyntaxOnly",type:"boolean",category:_a.Interop_Constraints,description:_a.Do_not_allow_runtime_constructs_that_are_not_part_of_ECMAScript,defaultValueDescription:!1,affectsBuildInfo:!0,affectsSemanticDiagnostics:!0},{name:"libReplacement",type:"boolean",affectsProgramStructure:!0,category:_a.Language_and_Environment,description:_a.Enable_lib_replacement,defaultValueDescription:!0},{name:"strict",type:"boolean",affectsBuildInfo:!0,showInSimplifiedHelpView:!0,category:_a.Type_Checking,description:_a.Enable_all_strict_type_checking_options,defaultValueDescription:!1},{name:"noImplicitAny",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,strictFlag:!0,category:_a.Type_Checking,description:_a.Enable_error_reporting_for_expressions_and_declarations_with_an_implied_any_type,defaultValueDescription:_a.false_unless_strict_is_set},{name:"strictNullChecks",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,strictFlag:!0,category:_a.Type_Checking,description:_a.When_type_checking_take_into_account_null_and_undefined,defaultValueDescription:_a.false_unless_strict_is_set},{name:"strictFunctionTypes",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,strictFlag:!0,category:_a.Type_Checking,description:_a.When_assigning_functions_check_to_ensure_parameters_and_the_return_values_are_subtype_compatible,defaultValueDescription:_a.false_unless_strict_is_set},{name:"strictBindCallApply",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,strictFlag:!0,category:_a.Type_Checking,description:_a.Check_that_the_arguments_for_bind_call_and_apply_methods_match_the_original_function,defaultValueDescription:_a.false_unless_strict_is_set},{name:"strictPropertyInitialization",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,strictFlag:!0,category:_a.Type_Checking,description:_a.Check_for_class_properties_that_are_declared_but_not_set_in_the_constructor,defaultValueDescription:_a.false_unless_strict_is_set},{name:"strictBuiltinIteratorReturn",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,strictFlag:!0,category:_a.Type_Checking,description:_a.Built_in_iterators_are_instantiated_with_a_TReturn_type_of_undefined_instead_of_any,defaultValueDescription:_a.false_unless_strict_is_set},{name:"noImplicitThis",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,strictFlag:!0,category:_a.Type_Checking,description:_a.Enable_error_reporting_when_this_is_given_the_type_any,defaultValueDescription:_a.false_unless_strict_is_set},{name:"useUnknownInCatchVariables",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,strictFlag:!0,category:_a.Type_Checking,description:_a.Default_catch_clause_variables_as_unknown_instead_of_any,defaultValueDescription:_a.false_unless_strict_is_set},{name:"alwaysStrict",type:"boolean",affectsSourceFile:!0,affectsEmit:!0,affectsBuildInfo:!0,strictFlag:!0,category:_a.Type_Checking,description:_a.Ensure_use_strict_is_always_emitted,defaultValueDescription:_a.false_unless_strict_is_set},{name:"noUnusedLocals",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:_a.Type_Checking,description:_a.Enable_error_reporting_when_local_variables_aren_t_read,defaultValueDescription:!1},{name:"noUnusedParameters",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:_a.Type_Checking,description:_a.Raise_an_error_when_a_function_parameter_isn_t_read,defaultValueDescription:!1},{name:"exactOptionalPropertyTypes",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:_a.Type_Checking,description:_a.Interpret_optional_property_types_as_written_rather_than_adding_undefined,defaultValueDescription:!1},{name:"noImplicitReturns",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:_a.Type_Checking,description:_a.Enable_error_reporting_for_codepaths_that_do_not_explicitly_return_in_a_function,defaultValueDescription:!1},{name:"noFallthroughCasesInSwitch",type:"boolean",affectsBindDiagnostics:!0,affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:_a.Type_Checking,description:_a.Enable_error_reporting_for_fallthrough_cases_in_switch_statements,defaultValueDescription:!1},{name:"noUncheckedIndexedAccess",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:_a.Type_Checking,description:_a.Add_undefined_to_a_type_when_accessed_using_an_index,defaultValueDescription:!1},{name:"noImplicitOverride",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:_a.Type_Checking,description:_a.Ensure_overriding_members_in_derived_classes_are_marked_with_an_override_modifier,defaultValueDescription:!1},{name:"noPropertyAccessFromIndexSignature",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,showInSimplifiedHelpView:!1,category:_a.Type_Checking,description:_a.Enforces_using_indexed_accessors_for_keys_declared_using_an_indexed_type,defaultValueDescription:!1},{name:"moduleResolution",type:new Map(Object.entries({node10:2,node:2,classic:1,node16:3,nodenext:99,bundler:100})),deprecatedKeys:new Set(["node"]),affectsSourceFile:!0,affectsModuleResolution:!0,paramType:_a.STRATEGY,category:_a.Modules,description:_a.Specify_how_TypeScript_looks_up_a_file_from_a_given_module_specifier,defaultValueDescription:_a.module_AMD_or_UMD_or_System_or_ES6_then_Classic_Otherwise_Node},{name:"baseUrl",type:"string",affectsModuleResolution:!0,isFilePath:!0,category:_a.Modules,description:_a.Specify_the_base_directory_to_resolve_non_relative_module_names},{name:"paths",type:"object",affectsModuleResolution:!0,allowConfigDirTemplateSubstitution:!0,isTSConfigOnly:!0,category:_a.Modules,description:_a.Specify_a_set_of_entries_that_re_map_imports_to_additional_lookup_locations,transpileOptionValue:void 0},{name:"rootDirs",type:"list",isTSConfigOnly:!0,element:{name:"rootDirs",type:"string",isFilePath:!0},affectsModuleResolution:!0,allowConfigDirTemplateSubstitution:!0,category:_a.Modules,description:_a.Allow_multiple_folders_to_be_treated_as_one_when_resolving_modules,transpileOptionValue:void 0,defaultValueDescription:_a.Computed_from_the_list_of_input_files},{name:"typeRoots",type:"list",element:{name:"typeRoots",type:"string",isFilePath:!0},affectsModuleResolution:!0,allowConfigDirTemplateSubstitution:!0,category:_a.Modules,description:_a.Specify_multiple_folders_that_act_like_Slashnode_modules_Slash_types},{name:"types",type:"list",element:{name:"types",type:"string"},affectsProgramStructure:!0,showInSimplifiedHelpView:!0,category:_a.Modules,description:_a.Specify_type_package_names_to_be_included_without_being_referenced_in_a_source_file,transpileOptionValue:void 0},{name:"allowSyntheticDefaultImports",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:_a.Interop_Constraints,description:_a.Allow_import_x_from_y_when_a_module_doesn_t_have_a_default_export,defaultValueDescription:_a.module_system_or_esModuleInterop},{name:"esModuleInterop",type:"boolean",affectsSemanticDiagnostics:!0,affectsEmit:!0,affectsBuildInfo:!0,showInSimplifiedHelpView:!0,category:_a.Interop_Constraints,description:_a.Emit_additional_JavaScript_to_ease_support_for_importing_CommonJS_modules_This_enables_allowSyntheticDefaultImports_for_type_compatibility,defaultValueDescription:!1},{name:"preserveSymlinks",type:"boolean",category:_a.Interop_Constraints,description:_a.Disable_resolving_symlinks_to_their_realpath_This_correlates_to_the_same_flag_in_node,defaultValueDescription:!1},{name:"allowUmdGlobalAccess",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:_a.Modules,description:_a.Allow_accessing_UMD_globals_from_modules,defaultValueDescription:!1},{name:"moduleSuffixes",type:"list",element:{name:"suffix",type:"string"},listPreserveFalsyValues:!0,affectsModuleResolution:!0,category:_a.Modules,description:_a.List_of_file_name_suffixes_to_search_when_resolving_a_module},{name:"allowImportingTsExtensions",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:_a.Modules,description:_a.Allow_imports_to_include_TypeScript_file_extensions_Requires_moduleResolution_bundler_and_either_noEmit_or_emitDeclarationOnly_to_be_set,defaultValueDescription:!1,transpileOptionValue:void 0},{name:"rewriteRelativeImportExtensions",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:_a.Modules,description:_a.Rewrite_ts_tsx_mts_and_cts_file_extensions_in_relative_import_paths_to_their_JavaScript_equivalent_in_output_files,defaultValueDescription:!1},{name:"resolvePackageJsonExports",type:"boolean",affectsModuleResolution:!0,category:_a.Modules,description:_a.Use_the_package_json_exports_field_when_resolving_package_imports,defaultValueDescription:_a.true_when_moduleResolution_is_node16_nodenext_or_bundler_otherwise_false},{name:"resolvePackageJsonImports",type:"boolean",affectsModuleResolution:!0,category:_a.Modules,description:_a.Use_the_package_json_imports_field_when_resolving_imports,defaultValueDescription:_a.true_when_moduleResolution_is_node16_nodenext_or_bundler_otherwise_false},{name:"customConditions",type:"list",element:{name:"condition",type:"string"},affectsModuleResolution:!0,category:_a.Modules,description:_a.Conditions_to_set_in_addition_to_the_resolver_specific_defaults_when_resolving_imports},{name:"noUncheckedSideEffectImports",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:_a.Modules,description:_a.Check_side_effect_imports,defaultValueDescription:!1},{name:"sourceRoot",type:"string",affectsEmit:!0,affectsBuildInfo:!0,paramType:_a.LOCATION,category:_a.Emit,description:_a.Specify_the_root_path_for_debuggers_to_find_the_reference_source_code},{name:"mapRoot",type:"string",affectsEmit:!0,affectsBuildInfo:!0,paramType:_a.LOCATION,category:_a.Emit,description:_a.Specify_the_location_where_debugger_should_locate_map_files_instead_of_generated_locations},{name:"inlineSources",type:"boolean",affectsEmit:!0,affectsBuildInfo:!0,category:_a.Emit,description:_a.Include_source_code_in_the_sourcemaps_inside_the_emitted_JavaScript,defaultValueDescription:!1},{name:"experimentalDecorators",type:"boolean",affectsEmit:!0,affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:_a.Language_and_Environment,description:_a.Enable_experimental_support_for_legacy_experimental_decorators,defaultValueDescription:!1},{name:"emitDecoratorMetadata",type:"boolean",affectsSemanticDiagnostics:!0,affectsEmit:!0,affectsBuildInfo:!0,category:_a.Language_and_Environment,description:_a.Emit_design_type_metadata_for_decorated_declarations_in_source_files,defaultValueDescription:!1},{name:"jsxFactory",type:"string",category:_a.Language_and_Environment,description:_a.Specify_the_JSX_factory_function_used_when_targeting_React_JSX_emit_e_g_React_createElement_or_h,defaultValueDescription:"`React.createElement`"},{name:"jsxFragmentFactory",type:"string",category:_a.Language_and_Environment,description:_a.Specify_the_JSX_Fragment_reference_used_for_fragments_when_targeting_React_JSX_emit_e_g_React_Fragment_or_Fragment,defaultValueDescription:"React.Fragment"},{name:"jsxImportSource",type:"string",affectsSemanticDiagnostics:!0,affectsEmit:!0,affectsBuildInfo:!0,affectsModuleResolution:!0,affectsSourceFile:!0,category:_a.Language_and_Environment,description:_a.Specify_module_specifier_used_to_import_the_JSX_factory_functions_when_using_jsx_Colon_react_jsx_Asterisk,defaultValueDescription:"react"},{name:"resolveJsonModule",type:"boolean",affectsModuleResolution:!0,category:_a.Modules,description:_a.Enable_importing_json_files,defaultValueDescription:!1},{name:"allowArbitraryExtensions",type:"boolean",affectsProgramStructure:!0,category:_a.Modules,description:_a.Enable_importing_files_with_any_extension_provided_a_declaration_file_is_present,defaultValueDescription:!1},{name:"out",type:"string",affectsEmit:!0,affectsBuildInfo:!0,affectsDeclarationPath:!0,isFilePath:!1,category:_a.Backwards_Compatibility,paramType:_a.FILE,transpileOptionValue:void 0,description:_a.Deprecated_setting_Use_outFile_instead},{name:"reactNamespace",type:"string",affectsEmit:!0,affectsBuildInfo:!0,category:_a.Language_and_Environment,description:_a.Specify_the_object_invoked_for_createElement_This_only_applies_when_targeting_react_JSX_emit,defaultValueDescription:"`React`"},{name:"skipDefaultLibCheck",type:"boolean",affectsBuildInfo:!0,category:_a.Completeness,description:_a.Skip_type_checking_d_ts_files_that_are_included_with_TypeScript,defaultValueDescription:!1},{name:"charset",type:"string",category:_a.Backwards_Compatibility,description:_a.No_longer_supported_In_early_versions_manually_set_the_text_encoding_for_reading_files,defaultValueDescription:"utf8"},{name:"emitBOM",type:"boolean",affectsEmit:!0,affectsBuildInfo:!0,category:_a.Emit,description:_a.Emit_a_UTF_8_Byte_Order_Mark_BOM_in_the_beginning_of_output_files,defaultValueDescription:!1},{name:"newLine",type:new Map(Object.entries({crlf:0,lf:1})),affectsEmit:!0,affectsBuildInfo:!0,paramType:_a.NEWLINE,category:_a.Emit,description:_a.Set_the_newline_character_for_emitting_files,defaultValueDescription:"lf"},{name:"noErrorTruncation",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:_a.Output_Formatting,description:_a.Disable_truncating_types_in_error_messages,defaultValueDescription:!1},{name:"noLib",type:"boolean",category:_a.Language_and_Environment,affectsProgramStructure:!0,description:_a.Disable_including_any_library_files_including_the_default_lib_d_ts,transpileOptionValue:!0,defaultValueDescription:!1},{name:"noResolve",type:"boolean",affectsModuleResolution:!0,category:_a.Modules,description:_a.Disallow_import_s_require_s_or_reference_s_from_expanding_the_number_of_files_TypeScript_should_add_to_a_project,transpileOptionValue:!0,defaultValueDescription:!1},{name:"stripInternal",type:"boolean",affectsEmit:!0,affectsBuildInfo:!0,category:_a.Emit,description:_a.Disable_emitting_declarations_that_have_internal_in_their_JSDoc_comments,defaultValueDescription:!1},{name:"disableSizeLimit",type:"boolean",affectsProgramStructure:!0,category:_a.Editor_Support,description:_a.Remove_the_20mb_cap_on_total_source_code_size_for_JavaScript_files_in_the_TypeScript_language_server,defaultValueDescription:!1},{name:"disableSourceOfProjectReferenceRedirect",type:"boolean",isTSConfigOnly:!0,category:_a.Projects,description:_a.Disable_preferring_source_files_instead_of_declaration_files_when_referencing_composite_projects,defaultValueDescription:!1},{name:"disableSolutionSearching",type:"boolean",isTSConfigOnly:!0,category:_a.Projects,description:_a.Opt_a_project_out_of_multi_project_reference_checking_when_editing,defaultValueDescription:!1},{name:"disableReferencedProjectLoad",type:"boolean",isTSConfigOnly:!0,category:_a.Projects,description:_a.Reduce_the_number_of_projects_loaded_automatically_by_TypeScript,defaultValueDescription:!1},{name:"noImplicitUseStrict",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:_a.Backwards_Compatibility,description:_a.Disable_adding_use_strict_directives_in_emitted_JavaScript_files,defaultValueDescription:!1},{name:"noEmitHelpers",type:"boolean",affectsEmit:!0,affectsBuildInfo:!0,category:_a.Emit,description:_a.Disable_generating_custom_helper_functions_like_extends_in_compiled_output,defaultValueDescription:!1},{name:"noEmitOnError",type:"boolean",affectsEmit:!0,affectsBuildInfo:!0,category:_a.Emit,transpileOptionValue:void 0,description:_a.Disable_emitting_files_if_any_type_checking_errors_are_reported,defaultValueDescription:!1},{name:"preserveConstEnums",type:"boolean",affectsEmit:!0,affectsBuildInfo:!0,category:_a.Emit,description:_a.Disable_erasing_const_enum_declarations_in_generated_code,defaultValueDescription:!1},{name:"declarationDir",type:"string",affectsEmit:!0,affectsBuildInfo:!0,affectsDeclarationPath:!0,isFilePath:!0,paramType:_a.DIRECTORY,category:_a.Emit,transpileOptionValue:void 0,description:_a.Specify_the_output_directory_for_generated_declaration_files},{name:"skipLibCheck",type:"boolean",affectsBuildInfo:!0,category:_a.Completeness,description:_a.Skip_type_checking_all_d_ts_files,defaultValueDescription:!1},{name:"allowUnusedLabels",type:"boolean",affectsBindDiagnostics:!0,affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:_a.Type_Checking,description:_a.Disable_error_reporting_for_unused_labels,defaultValueDescription:void 0},{name:"allowUnreachableCode",type:"boolean",affectsBindDiagnostics:!0,affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:_a.Type_Checking,description:_a.Disable_error_reporting_for_unreachable_code,defaultValueDescription:void 0},{name:"suppressExcessPropertyErrors",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:_a.Backwards_Compatibility,description:_a.Disable_reporting_of_excess_property_errors_during_the_creation_of_object_literals,defaultValueDescription:!1},{name:"suppressImplicitAnyIndexErrors",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:_a.Backwards_Compatibility,description:_a.Suppress_noImplicitAny_errors_when_indexing_objects_that_lack_index_signatures,defaultValueDescription:!1},{name:"forceConsistentCasingInFileNames",type:"boolean",affectsModuleResolution:!0,category:_a.Interop_Constraints,description:_a.Ensure_that_casing_is_correct_in_imports,defaultValueDescription:!0},{name:"maxNodeModuleJsDepth",type:"number",affectsModuleResolution:!0,category:_a.JavaScript_Support,description:_a.Specify_the_maximum_folder_depth_used_for_checking_JavaScript_files_from_node_modules_Only_applicable_with_allowJs,defaultValueDescription:0},{name:"noStrictGenericChecks",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:_a.Backwards_Compatibility,description:_a.Disable_strict_checking_of_generic_signatures_in_function_types,defaultValueDescription:!1},{name:"useDefineForClassFields",type:"boolean",affectsSemanticDiagnostics:!0,affectsEmit:!0,affectsBuildInfo:!0,category:_a.Language_and_Environment,description:_a.Emit_ECMAScript_standard_compliant_class_fields,defaultValueDescription:_a.true_for_ES2022_and_above_including_ESNext},{name:"preserveValueImports",type:"boolean",affectsEmit:!0,affectsBuildInfo:!0,category:_a.Backwards_Compatibility,description:_a.Preserve_unused_imported_values_in_the_JavaScript_output_that_would_otherwise_be_removed,defaultValueDescription:!1},{name:"keyofStringsOnly",type:"boolean",category:_a.Backwards_Compatibility,description:_a.Make_keyof_only_return_strings_instead_of_string_numbers_or_symbols_Legacy_option,defaultValueDescription:!1},{name:"plugins",type:"list",isTSConfigOnly:!0,element:{name:"plugin",type:"object"},description:_a.Specify_a_list_of_language_service_plugins_to_include,category:_a.Editor_Support},{name:"moduleDetection",type:new Map(Object.entries({auto:2,legacy:1,force:3})),affectsSourceFile:!0,affectsModuleResolution:!0,description:_a.Control_what_method_is_used_to_detect_module_format_JS_files,category:_a.Language_and_Environment,defaultValueDescription:_a.auto_Colon_Treat_files_with_imports_exports_import_meta_jsx_with_jsx_Colon_react_jsx_or_esm_format_with_module_Colon_node16_as_modules},{name:"ignoreDeprecations",type:"string",defaultValueDescription:void 0}],OO=[...EO,...IO],LO=OO.filter(e=>!!e.affectsSemanticDiagnostics),jO=OO.filter(e=>!!e.affectsEmit),MO=OO.filter(e=>!!e.affectsDeclarationPath),RO=OO.filter(e=>!!e.affectsModuleResolution),BO=OO.filter(e=>!!e.affectsSourceFile||!!e.affectsBindDiagnostics),JO=OO.filter(e=>!!e.affectsProgramStructure),zO=OO.filter(e=>De(e,"transpileOptionValue")),qO=OO.filter(e=>e.allowConfigDirTemplateSubstitution||!e.isCommandLineOnly&&e.isFilePath),UO=FO.filter(e=>e.allowConfigDirTemplateSubstitution||!e.isCommandLineOnly&&e.isFilePath),VO=OO.filter(function(e){return!Ze(e.type)}),WO={name:"build",type:"boolean",shortName:"b",showInSimplifiedHelpView:!0,category:_a.Command_line_Options,description:_a.Build_one_or_more_projects_and_their_dependencies_if_out_of_date,defaultValueDescription:!1},$O=[WO,{name:"verbose",shortName:"v",category:_a.Command_line_Options,description:_a.Enable_verbose_logging,type:"boolean",defaultValueDescription:!1},{name:"dry",shortName:"d",category:_a.Command_line_Options,description:_a.Show_what_would_be_built_or_deleted_if_specified_with_clean,type:"boolean",defaultValueDescription:!1},{name:"force",shortName:"f",category:_a.Command_line_Options,description:_a.Build_all_projects_including_those_that_appear_to_be_up_to_date,type:"boolean",defaultValueDescription:!1},{name:"clean",category:_a.Command_line_Options,description:_a.Delete_the_outputs_of_all_projects,type:"boolean",defaultValueDescription:!1},{name:"stopBuildOnErrors",category:_a.Command_line_Options,description:_a.Skip_building_downstream_projects_on_error_in_upstream_project,type:"boolean",defaultValueDescription:!1}],HO=[...EO,...$O],KO=[{name:"enable",type:"boolean",defaultValueDescription:!1},{name:"include",type:"list",element:{name:"include",type:"string"}},{name:"exclude",type:"list",element:{name:"exclude",type:"string"}},{name:"disableFilenameBasedTypeAcquisition",type:"boolean",defaultValueDescription:!1}];function GO(e){const t=new Map,n=new Map;return d(e,e=>{t.set(e.name.toLowerCase(),e),e.shortName&&n.set(e.shortName,e.name)}),{optionsNameMap:t,shortOptionNames:n}}function XO(){return kO||(kO=GO(OO))}var QO={diagnostic:_a.Compiler_option_0_may_only_be_used_with_build,getOptionsNameMap:dL},YO={module:1,target:3,strict:!0,esModuleInterop:!0,forceConsistentCasingInFileNames:!0,skipLibCheck:!0};function ZO(e){return eL(e,Qx)}function eL(e,t){const n=Oe(e.type.keys()),r=(e.deprecatedKeys?n.filter(t=>!e.deprecatedKeys.has(t)):n).map(e=>`'${e}'`).join(", ");return t(_a.Argument_for_0_option_must_be_Colon_1,`--${e.name}`,r)}function tL(e,t,n){return Pj(e,(t??"").trim(),n)}function nL(e,t="",n){if(Gt(t=t.trim(),"-"))return;if("listOrElement"===e.type&&!t.includes(","))return Ej(e,t,n);if(""===t)return[];const r=t.split(",");switch(e.element.type){case"number":return B(r,t=>Ej(e.element,parseInt(t),n));case"string":return B(r,t=>Ej(e.element,t||"",n));case"boolean":case"object":return un.fail(`List of ${e.element.type} is not yet supported.`);default:return B(r,t=>tL(e.element,t,n))}}function rL(e){return e.name}function iL(e,t,n,r,i){var o;const a=null==(o=t.alternateMode)?void 0:o.getOptionsNameMap().optionsNameMap.get(e.toLowerCase());if(a)return Dj(i,r,a!==WO?t.alternateMode.diagnostic:_a.Option_build_must_be_the_first_command_line_argument,e);const s=Lt(e,t.optionDeclarations,rL);return s?Dj(i,r,t.unknownDidYouMeanDiagnostic,n||e,s.name):Dj(i,r,t.unknownOptionDiagnostic,n||e)}function oL(e,t,n){const r={};let i;const o=[],a=[];return s(t),{options:r,watchOptions:i,fileNames:o,errors:a};function s(t){let n=0;for(;nso.readFile(e)));if(!Ze(t))return void a.push(t);const r=[];let i=0;for(;;){for(;i=t.length)break;const n=i;if(34===t.charCodeAt(n)){for(i++;i32;)i++;r.push(t.substring(n,i))}}s(r)}}function aL(e,t,n,r,i,o){if(r.isTSConfigOnly){const n=e[t];"null"===n?(i[r.name]=void 0,t++):"boolean"===r.type?"false"===n?(i[r.name]=Ej(r,!1,o),t++):("true"===n&&t++,o.push(Qx(_a.Option_0_can_only_be_specified_in_tsconfig_json_file_or_set_to_false_or_null_on_command_line,r.name))):(o.push(Qx(_a.Option_0_can_only_be_specified_in_tsconfig_json_file_or_set_to_null_on_command_line,r.name)),n&&!Gt(n,"-")&&t++)}else if(e[t]||"boolean"===r.type||o.push(Qx(n.optionTypeMismatchDiagnostic,r.name,JL(r))),"null"!==e[t])switch(r.type){case"number":i[r.name]=Ej(r,parseInt(e[t]),o),t++;break;case"boolean":const n=e[t];i[r.name]=Ej(r,"false"!==n,o),"false"!==n&&"true"!==n||t++;break;case"string":i[r.name]=Ej(r,e[t]||"",o),t++;break;case"list":const a=nL(r,e[t],o);i[r.name]=a||[],a&&t++;break;case"listOrElement":un.fail("listOrElement not supported here");break;default:i[r.name]=tL(r,e[t],o),t++}else i[r.name]=void 0,t++;return t}var sL,cL={alternateMode:QO,getOptionsNameMap:XO,optionDeclarations:OO,unknownOptionDiagnostic:_a.Unknown_compiler_option_0,unknownDidYouMeanDiagnostic:_a.Unknown_compiler_option_0_Did_you_mean_1,optionTypeMismatchDiagnostic:_a.Compiler_option_0_expects_an_argument};function lL(e,t){return oL(cL,e,t)}function _L(e,t){return uL(XO,e,t)}function uL(e,t,n=!1){t=t.toLowerCase();const{optionsNameMap:r,shortOptionNames:i}=e();if(n){const e=i.get(t);void 0!==e&&(t=e)}return r.get(t)}function dL(){return sL||(sL=GO(HO))}var pL={alternateMode:{diagnostic:_a.Compiler_option_0_may_not_be_used_with_build,getOptionsNameMap:XO},getOptionsNameMap:dL,optionDeclarations:HO,unknownOptionDiagnostic:_a.Unknown_build_option_0,unknownDidYouMeanDiagnostic:_a.Unknown_build_option_0_Did_you_mean_1,optionTypeMismatchDiagnostic:_a.Build_option_0_requires_a_value_of_type_1};function fL(e){const{options:t,watchOptions:n,fileNames:r,errors:i}=oL(pL,e),o=t;return 0===r.length&&r.push("."),o.clean&&o.force&&i.push(Qx(_a.Options_0_and_1_cannot_be_combined,"clean","force")),o.clean&&o.verbose&&i.push(Qx(_a.Options_0_and_1_cannot_be_combined,"clean","verbose")),o.clean&&o.watch&&i.push(Qx(_a.Options_0_and_1_cannot_be_combined,"clean","watch")),o.watch&&o.dry&&i.push(Qx(_a.Options_0_and_1_cannot_be_combined,"watch","dry")),{buildOptions:o,watchOptions:n,projects:r,errors:i}}function mL(e,...t){return nt(Qx(e,...t).messageText,Ze)}function gL(e,t,n,r,i,o){const a=bL(e,e=>n.readFile(e));if(!Ze(a))return void n.onUnRecoverableConfigFileDiagnostic(a);const s=nO(e,a),c=n.getCurrentDirectory();return s.path=Uo(e,c,Wt(n.useCaseSensitiveFileNames)),s.resolvedPath=s.path,s.originalFileName=s.fileName,ej(s,n,Bo(Do(e),c),t,Bo(e,c),void 0,o,r,i)}function hL(e,t){const n=bL(e,t);return Ze(n)?yL(e,n):{config:{},error:n}}function yL(e,t){const n=nO(e,t);return{config:ML(n,n.parseDiagnostics,void 0),error:n.parseDiagnostics.length?n.parseDiagnostics[0]:void 0}}function vL(e,t){const n=bL(e,t);return Ze(n)?nO(e,n):{fileName:e,parseDiagnostics:[n]}}function bL(e,t){let n;try{n=t(e)}catch(t){return Qx(_a.Cannot_read_file_0_Colon_1,e,t.message)}return void 0===n?Qx(_a.Cannot_read_file_0,e):n}function xL(e){return Me(e,rL)}var kL,SL={optionDeclarations:KO,unknownOptionDiagnostic:_a.Unknown_type_acquisition_option_0,unknownDidYouMeanDiagnostic:_a.Unknown_type_acquisition_option_0_Did_you_mean_1};function TL(){return kL||(kL=GO(FO))}var CL,wL,NL,DL={getOptionsNameMap:TL,optionDeclarations:FO,unknownOptionDiagnostic:_a.Unknown_watch_option_0,unknownDidYouMeanDiagnostic:_a.Unknown_watch_option_0_Did_you_mean_1,optionTypeMismatchDiagnostic:_a.Watch_option_0_requires_a_value_of_type_1};function FL(){return CL||(CL=xL(OO))}function EL(){return wL||(wL=xL(FO))}function PL(){return NL||(NL=xL(KO))}var AL,IL={name:"extends",type:"listOrElement",element:{name:"extends",type:"string"},category:_a.File_Management,disallowNullOrUndefined:!0},OL={name:"compilerOptions",type:"object",elementOptions:FL(),extraKeyDiagnostics:cL},LL={name:"watchOptions",type:"object",elementOptions:EL(),extraKeyDiagnostics:DL},jL={name:"typeAcquisition",type:"object",elementOptions:PL(),extraKeyDiagnostics:SL};function ML(e,t,n){var r;const i=null==(r=e.statements[0])?void 0:r.expression;if(i&&211!==i.kind){if(t.push(Jp(e,i,_a.The_root_value_of_a_0_file_must_be_an_object,"jsconfig.json"===Fo(e.fileName)?"jsconfig.json":"tsconfig.json")),_F(i)){const r=b(i.elements,uF);if(r)return BL(e,r,t,!0,n)}return{}}return BL(e,i,t,!0,n)}function RL(e,t){var n;return BL(e,null==(n=e.statements[0])?void 0:n.expression,t,!0,void 0)}function BL(e,t,n,r,i){return t?function t(a,s){switch(a.kind){case 112:return!0;case 97:return!1;case 106:return null;case 11:return o(a)||n.push(Jp(e,a,_a.String_literal_with_double_quotes_expected)),a.text;case 9:return Number(a.text);case 225:if(41!==a.operator||9!==a.operand.kind)break;return-Number(a.operand.text);case 211:return function(a,s){var c;const l=r?{}:void 0;for(const _ of a.properties){if(304!==_.kind){n.push(Jp(e,_,_a.Property_assignment_expected));continue}_.questionToken&&n.push(Jp(e,_.questionToken,_a.The_0_modifier_can_only_be_used_in_TypeScript_files,"?")),o(_.name)||n.push(Jp(e,_.name,_a.String_literal_with_double_quotes_expected));const a=Op(_.name)?void 0:jp(_.name),u=a&&mc(a),d=u?null==(c=null==s?void 0:s.elementOptions)?void 0:c.get(u):void 0,p=t(_.initializer,d);void 0!==u&&(r&&(l[u]=p),null==i||i.onPropertySet(u,p,_,s,d))}return l}(a,s);case 210:return function(e,n){if(r)return N(e.map(e=>t(e,n)),e=>void 0!==e);e.forEach(e=>t(e,n))}(a.elements,s&&s.element)}s?n.push(Jp(e,a,_a.Compiler_option_0_requires_a_value_of_type_1,s.name,JL(s))):n.push(Jp(e,a,_a.Property_value_can_only_be_string_literal_numeric_literal_true_false_null_object_literal_or_array_literal))}(t,null==i?void 0:i.rootOptions):r?{}:void 0;function o(t){return UN(t)&&qm(t,e)}}function JL(e){return"listOrElement"===e.type?`${JL(e.element)} or Array`:"list"===e.type?"Array":Ze(e.type)?e.type:"string"}function zL(e,t){return!!e&&(nj(t)?!e.disallowNullOrUndefined:"list"===e.type?Qe(t):"listOrElement"===e.type?Qe(t)||zL(e.element,t):typeof t===(Ze(e.type)?e.type:"string"))}function qL(e,t,n){var r,i,o;const a=Wt(n.useCaseSensitiveFileNames),s=E(N(e.fileNames,(null==(i=null==(r=e.options.configFile)?void 0:r.configFileSpecs)?void 0:i.validatedIncludeSpecs)?function(e,t,n,r){if(!t)return ot;const i=mS(e,n,t,r.useCaseSensitiveFileNames,r.getCurrentDirectory()),o=i.excludePattern&&gS(i.excludePattern,r.useCaseSensitiveFileNames),a=i.includeFilePattern&&gS(i.includeFilePattern,r.useCaseSensitiveFileNames);return a?o?e=>!(a.test(e)&&!o.test(e)):e=>!a.test(e):o?e=>o.test(e):ot}(t,e.options.configFile.configFileSpecs.validatedIncludeSpecs,e.options.configFile.configFileSpecs.validatedExcludeSpecs,n):ot),e=>oa(Bo(t,n.getCurrentDirectory()),Bo(e,n.getCurrentDirectory()),a)),c={configFilePath:Bo(t,n.getCurrentDirectory()),useCaseSensitiveFileNames:n.useCaseSensitiveFileNames},l=KL(e.options,c),_=e.watchOptions&&GL(e.watchOptions,TL()),d={compilerOptions:{...VL(l),showConfig:void 0,configFile:void 0,configFilePath:void 0,help:void 0,init:void 0,listFiles:void 0,listEmittedFiles:void 0,project:void 0,build:void 0,version:void 0},watchOptions:_&&VL(_),references:E(e.projectReferences,e=>({...e,path:e.originalPath?e.originalPath:"",originalPath:void 0})),files:u(s)?s:void 0,...(null==(o=e.options.configFile)?void 0:o.configFileSpecs)?{include:WL(e.options.configFile.configFileSpecs.validatedIncludeSpecs),exclude:e.options.configFile.configFileSpecs.validatedExcludeSpecs}:{},compileOnSave:!!e.compileOnSave||void 0},p=new Set(l.keys()),f={};for(const t in gk)!p.has(t)&&UL(t,p)&&gk[t].computeValue(e.options)!==gk[t].computeValue({})&&(f[t]=gk[t].computeValue(e.options));return Le(d.compilerOptions,VL(KL(f,c))),d}function UL(e,t){const n=new Set;return function e(r){var i;return!!bx(n,r)&&$(null==(i=gk[r])?void 0:i.dependencies,n=>t.has(n)||e(n))}(e)}function VL(e){return Object.fromEntries(e)}function WL(e){if(u(e)){if(1!==u(e))return e;if(e[0]!==ij)return e}}function $L(e){switch(e.type){case"string":case"number":case"boolean":case"object":return;case"list":case"listOrElement":return $L(e.element);default:return e.type}}function HL(e,t){return rd(t,(t,n)=>{if(t===e)return n})}function KL(e,t){return GL(e,XO(),t)}function GL(e,{optionsNameMap:t},n){const r=new Map,i=n&&Wt(n.useCaseSensitiveFileNames);for(const o in e)if(De(e,o)){if(t.has(o)&&(t.get(o).category===_a.Command_line_Options||t.get(o).category===_a.Output_Formatting))continue;const a=e[o],s=t.get(o.toLowerCase());if(s){un.assert("listOrElement"!==s.type);const e=$L(s);e?"list"===s.type?r.set(o,a.map(t=>HL(t,e))):r.set(o,HL(a,e)):n&&s.isFilePath?r.set(o,oa(n.configFilePath,Bo(a,Do(n.configFilePath)),i)):n&&"list"===s.type&&s.element.isFilePath?r.set(o,a.map(e=>oa(n.configFilePath,Bo(e,Do(n.configFilePath)),i))):r.set(o,a)}}return r}function XL(e,t){const n=" ",r=[],i=Object.keys(e).filter(e=>"init"!==e&&"help"!==e&&"watch"!==e);if(r.push("{"),r.push(`${n}// ${Vx(_a.Visit_https_Colon_Slash_Slashaka_ms_Slashtsconfig_to_read_more_about_this_file)}`),r.push(`${n}"compilerOptions": {`),a(_a.File_Layout),s("rootDir","./src","optional"),s("outDir","./dist","optional"),o(),a(_a.Environment_Settings),a(_a.See_also_https_Colon_Slash_Slashaka_ms_Slashtsconfig_Slashmodule),s("module",199),s("target",99),s("types",[]),e.lib&&s("lib",e.lib),a(_a.For_nodejs_Colon),r.push(`${n}${n}// "lib": ["esnext"],`),r.push(`${n}${n}// "types": ["node"],`),a(_a.and_npm_install_D_types_Slashnode),o(),a(_a.Other_Outputs),s("sourceMap",!0),s("declaration",!0),s("declarationMap",!0),o(),a(_a.Stricter_Typechecking_Options),s("noUncheckedIndexedAccess",!0),s("exactOptionalPropertyTypes",!0),o(),a(_a.Style_Options),s("noImplicitReturns",!0,"optional"),s("noImplicitOverride",!0,"optional"),s("noUnusedLocals",!0,"optional"),s("noUnusedParameters",!0,"optional"),s("noFallthroughCasesInSwitch",!0,"optional"),s("noPropertyAccessFromIndexSignature",!0,"optional"),o(),a(_a.Recommended_Options),s("strict",!0),s("jsx",4),s("verbatimModuleSyntax",!0),s("isolatedModules",!0),s("noUncheckedSideEffectImports",!0),s("moduleDetection",3),s("skipLibCheck",!0),i.length>0)for(o();i.length>0;)s(i[0],e[i[0]]);function o(){r.push("")}function a(e){r.push(`${n}${n}// ${Vx(e)}`)}function s(t,o,a="never"){const s=i.indexOf(t);let l;s>=0&&i.splice(s,1),l="always"===a||"never"!==a&&!De(e,t);const _=e[t]??o;l?r.push(`${n}${n}// "${t}": ${c(t,_)},`):r.push(`${n}${n}"${t}": ${c(t,_)},`)}function c(e,t){const n=OO.filter(t=>t.name===e)[0];n||un.fail(`No option named ${e}?`);const r=n.type instanceof Map?n.type:void 0;if(Qe(t)){const e="element"in n&&n.element.type instanceof Map?n.element.type:void 0;return`[${t.map(t=>l(t,e)).join(", ")}]`}return l(t,r)}function l(e,t){return t&&(e=HL(e,t)??un.fail(`No matching value of ${e}`)),JSON.stringify(e)}return r.push(`${n}}`),r.push("}"),r.push(""),r.join(t)}function QL(e,t){const n={},r=XO().optionsNameMap;for(const i in e)De(e,i)&&(n[i]=YL(r.get(i.toLowerCase()),e[i],t));return n.configFilePath&&(n.configFilePath=t(n.configFilePath)),n}function YL(e,t,n){if(e&&!nj(t)){if("list"===e.type){const r=t;if(e.element.isFilePath&&r.length)return r.map(n)}else if(e.isFilePath)return n(t);un.assert("listOrElement"!==e.type)}return t}function ZL(e,t,n,r,i,o,a,s,c){return oj(e,void 0,t,n,r,c,i,o,a,s)}function ej(e,t,n,r,i,o,a,s,c){var l,_;null==(l=Hn)||l.push(Hn.Phase.Parse,"parseJsonSourceFileConfigFileContent",{path:e.fileName});const u=oj(void 0,e,t,n,r,c,i,o,a,s);return null==(_=Hn)||_.pop(),u}function tj(e,t){t&&Object.defineProperty(e,"configFile",{enumerable:!1,writable:!1,value:t})}function nj(e){return null==e}function rj(e,t){return Do(Bo(e,t))}var ij="**/*";function oj(e,t,n,r,i={},o,a,s=[],c=[],l){un.assert(void 0===e&&void 0!==t||void 0!==e&&void 0===t);const _=[],u=yj(e,t,n,r,a,s,_,l),{raw:d}=u,p=sj(Ue(i,u.options||{}),qO,r),f=aj(o&&u.watchOptions?Ue(o,u.watchOptions):u.watchOptions||o,r);p.configFilePath=a&&Oo(a);const m=Jo(a?rj(a,r):r),g=function(){const e=b("references",e=>"object"==typeof e,"object"),n=h(y("files"));if(n){const r="no-prop"===e||Qe(e)&&0===e.length,i=De(d,"extends");if(0===n.length&&r&&!i)if(t){const e=a||"tsconfig.json",n=_a.The_files_list_in_config_file_0_is_empty,r=Hf(t,"files",e=>e.initializer),i=Dj(t,r,n,e);_.push(i)}else x(_a.The_files_list_in_config_file_0_is_empty,a||"tsconfig.json")}let r=h(y("include"));const i=y("exclude");let o,s,c,l,u=!1,f=h(i);if("no-prop"===i){const e=p.outDir,t=p.declarationDir;(e||t)&&(f=N([e,t],e=>!!e))}void 0===n&&void 0===r&&(r=[ij],u=!0),r&&(o=zj(r,_,!0,t,"include"),c=uj(o,m)||o),f&&(s=zj(f,_,!1,t,"exclude"),l=uj(s,m)||s);const g=N(n,Ze);return{filesSpecs:n,includeSpecs:r,excludeSpecs:f,validatedFilesSpec:uj(g,m)||g,validatedIncludeSpecs:c,validatedExcludeSpecs:l,validatedFilesSpecBeforeSubstitution:g,validatedIncludeSpecsBeforeSubstitution:o,validatedExcludeSpecsBeforeSubstitution:s,isDefaultIncludeSpec:u}}();return t&&(t.configFileSpecs=g),tj(p,t),{options:p,watchOptions:f,fileNames:function(e){const t=jj(g,e,p,n,c);return fj(t,gj(d),s)&&_.push(pj(g,a)),t}(m),projectReferences:function(e){let t;const n=b("references",e=>"object"==typeof e,"object");if(Qe(n))for(const r of n)"string"!=typeof r.path?x(_a.Compiler_option_0_requires_a_value_of_type_1,"reference.path","string"):(t||(t=[])).push({path:Bo(r.path,e),originalPath:r.path,prepend:r.prepend,circular:r.circular});return t}(m),typeAcquisition:u.typeAcquisition||Cj(),raw:d,errors:_,wildcardDirectories:Uj(g,m,n.useCaseSensitiveFileNames),compileOnSave:!!d.compileOnSave};function h(e){return Qe(e)?e:void 0}function y(e){return b(e,Ze,"string")}function b(e,n,r){if(De(d,e)&&!nj(d[e])){if(Qe(d[e])){const i=d[e];return t||v(i,n)||_.push(Qx(_a.Compiler_option_0_requires_a_value_of_type_1,e,r)),i}return x(_a.Compiler_option_0_requires_a_value_of_type_1,e,"Array"),"not-array"}return"no-prop"}function x(e,...n){t||_.push(Qx(e,...n))}}function aj(e,t){return sj(e,UO,t)}function sj(e,t,n){if(!e)return e;let r;for(const r of t)if(void 0!==e[r.name]){const t=e[r.name];switch(r.type){case"string":un.assert(r.isFilePath),lj(t)&&i(r,_j(t,n));break;case"list":un.assert(r.element.isFilePath);const e=uj(t,n);e&&i(r,e);break;case"object":un.assert("paths"===r.name);const o=dj(t,n);o&&i(r,o);break;default:un.fail("option type not supported")}}return r||e;function i(t,n){(r??(r=Le({},e)))[t.name]=n}}var cj="${configDir}";function lj(e){return Ze(e)&&Gt(e,cj,!0)}function _j(e,t){return Bo(e.replace(cj,"./"),t)}function uj(e,t){if(!e)return e;let n;return e.forEach((r,i)=>{lj(r)&&((n??(n=e.slice()))[i]=_j(r,t))}),n}function dj(e,t){let n;return Ee(e).forEach(r=>{if(!Qe(e[r]))return;const i=uj(e[r],t);i&&((n??(n=Le({},e)))[r]=i)}),n}function pj({includeSpecs:e,excludeSpecs:t},n){return Qx(_a.No_inputs_were_found_in_config_file_0_Specified_include_paths_were_1_and_exclude_paths_were_2,n||"tsconfig.json",JSON.stringify(e||[]),JSON.stringify(t||[]))}function fj(e,t,n){return 0===e.length&&t&&(!n||0===n.length)}function mj(e){return!e.fileNames.length&&De(e.raw,"references")}function gj(e){return!De(e,"files")&&!De(e,"references")}function hj(e,t,n,r,i){const o=r.length;return fj(e,i)?r.push(pj(n,t)):D(r,e=>!function(e){return e.code===_a.No_inputs_were_found_in_config_file_0_Specified_include_paths_were_1_and_exclude_paths_were_2.code}(e)),o!==r.length}function yj(e,t,n,r,i,o,a,s){var c;const l=Bo(i||"",r=Oo(r));if(o.includes(l))return a.push(Qx(_a.Circularity_detected_while_resolving_configuration_Colon_0,[...o,l].join(" -> "))),{raw:e||RL(t,a)};const _=e?function(e,t,n,r,i){De(e,"excludes")&&i.push(Qx(_a.Unknown_option_excludes_Did_you_mean_exclude));const o=Tj(e.compilerOptions,n,i,r),a=wj(e.typeAcquisition,n,i,r),s=function(e,t,n){return Nj(EL(),e,t,void 0,DL,n)}(e.watchOptions,n,i);e.compileOnSave=function(e,t,n){if(!De(e,SO.name))return!1;const r=Fj(SO,e.compileOnSave,t,n);return"boolean"==typeof r&&r}(e,n,i);return{raw:e,options:o,watchOptions:s,typeAcquisition:a,extendedConfigPath:e.extends||""===e.extends?vj(e.extends,t,n,r,i):void 0}}(e,n,r,i,a):function(e,t,n,r,i){const o=Sj(r);let a,s,c,l;const _=(void 0===AL&&(AL={name:void 0,type:"object",elementOptions:xL([OL,LL,jL,IL,{name:"references",type:"list",element:{name:"references",type:"object"},category:_a.Projects},{name:"files",type:"list",element:{name:"files",type:"string"},category:_a.File_Management},{name:"include",type:"list",element:{name:"include",type:"string"},category:_a.File_Management,defaultValueDescription:_a.if_files_is_specified_otherwise_Asterisk_Asterisk_Slash_Asterisk},{name:"exclude",type:"list",element:{name:"exclude",type:"string"},category:_a.File_Management,defaultValueDescription:_a.node_modules_bower_components_jspm_packages_plus_the_value_of_outDir_if_one_is_specified},SO])}),AL),u=ML(e,i,{rootOptions:_,onPropertySet:function(u,d,p,f,m){if(m&&m!==IL&&(d=Fj(m,d,n,i,p,p.initializer,e)),null==f?void 0:f.name)if(m){let e;f===OL?e=o:f===LL?e=s??(s={}):f===jL?e=a??(a=Cj(r)):un.fail("Unknown option"),e[m.name]=d}else u&&(null==f?void 0:f.extraKeyDiagnostics)&&(f.elementOptions?i.push(iL(u,f.extraKeyDiagnostics,void 0,p.name,e)):i.push(Jp(e,p.name,f.extraKeyDiagnostics.unknownOptionDiagnostic,u)));else f===_&&(m===IL?c=vj(d,t,n,r,i,p,p.initializer,e):m||("excludes"===u&&i.push(Jp(e,p.name,_a.Unknown_option_excludes_Did_you_mean_exclude)),b(IO,e=>e.name===u)&&(l=ie(l,p.name))))}});return a||(a=Cj(r)),l&&u&&void 0===u.compilerOptions&&i.push(Jp(e,l[0],_a._0_should_be_set_inside_the_compilerOptions_object_of_the_config_json_file,jp(l[0]))),{raw:u,options:o,watchOptions:s,typeAcquisition:a,extendedConfigPath:c}}(t,n,r,i,a);if((null==(c=_.options)?void 0:c.paths)&&(_.options.pathsBasePath=r),_.extendedConfigPath){o=o.concat([l]);const e={options:{}};Ze(_.extendedConfigPath)?u(e,_.extendedConfigPath):_.extendedConfigPath.forEach(t=>u(e,t)),e.include&&(_.raw.include=e.include),e.exclude&&(_.raw.exclude=e.exclude),e.files&&(_.raw.files=e.files),void 0===_.raw.compileOnSave&&e.compileOnSave&&(_.raw.compileOnSave=e.compileOnSave),t&&e.extendedSourceFiles&&(t.extendedSourceFiles=Oe(e.extendedSourceFiles.keys())),_.options=Le(e.options,_.options),_.watchOptions=_.watchOptions&&e.watchOptions?d(e,_.watchOptions):_.watchOptions||e.watchOptions}return _;function u(e,i){const c=function(e,t,n,r,i,o,a){const s=n.useCaseSensitiveFileNames?t:_t(t);let c,l,_;if(o&&(c=o.get(s))?({extendedResult:l,extendedConfig:_}=c):(l=vL(t,e=>n.readFile(e)),l.parseDiagnostics.length||(_=yj(void 0,l,n,Do(t),Fo(t),r,i,o)),o&&o.set(s,{extendedResult:l,extendedConfig:_})),e&&((a.extendedSourceFiles??(a.extendedSourceFiles=new Set)).add(l.fileName),l.extendedSourceFiles))for(const e of l.extendedSourceFiles)a.extendedSourceFiles.add(e);if(!l.parseDiagnostics.length)return _;i.push(...l.parseDiagnostics)}(t,i,n,o,a,s,e);if(c&&c.options){const t=c.raw;let o;const a=a=>{_.raw[a]||t[a]&&(e[a]=E(t[a],e=>lj(e)||go(e)?e:jo(o||(o=ia(Do(i),r,Wt(n.useCaseSensitiveFileNames))),e)))};a("include"),a("exclude"),a("files"),void 0!==t.compileOnSave&&(e.compileOnSave=t.compileOnSave),Le(e.options,c.options),e.watchOptions=e.watchOptions&&c.watchOptions?d(e,c.watchOptions):e.watchOptions||c.watchOptions}}function d(e,t){return e.watchOptionsCopied?Le(e.watchOptions,t):(e.watchOptionsCopied=!0,Le({},e.watchOptions,t))}}function vj(e,t,n,r,i,o,a,s){let c;const l=r?rj(r,n):n;if(Ze(e))c=bj(e,t,l,i,a,s);else if(Qe(e)){c=[];for(let r=0;rDj(i,r,e,...t)))}function Aj(e,t,n,r,i,o,a){return N(E(t,(t,s)=>Fj(e.element,t,n,r,i,null==o?void 0:o.elements[s],a)),t=>!!e.listPreserveFalsyValues||!!t)}var Ij,Oj=/(?:^|\/)\*\*\/?$/,Lj=/^[^*?]*(?=\/[^/]*[*?])/;function jj(e,t,n,r,i=l){t=Jo(t);const o=Wt(r.useCaseSensitiveFileNames),a=new Map,s=new Map,c=new Map,{validatedFilesSpec:_,validatedIncludeSpecs:u,validatedExcludeSpecs:d}=e,p=AS(n,i),f=IS(n,p);if(_)for(const e of _){const n=Bo(e,t);a.set(o(n),n)}let m;if(u&&u.length>0)for(const e of r.readDirectory(t,I(f),d,u,void 0)){if(ko(e,".json")){if(!m){const e=E(_S(u.filter(e=>Mt(e,".json")),t,"files"),e=>`^${e}$`);m=e?e.map(e=>gS(e,r.useCaseSensitiveFileNames)):l}if(-1!==k(m,t=>t.test(e))){const t=o(e);a.has(t)||c.has(t)||c.set(t,e)}continue}if($j(e,a,s,p,o))continue;Hj(e,s,p,o);const n=o(e);a.has(n)||s.has(n)||s.set(n,e)}const g=Oe(a.values()),h=Oe(s.values());return g.concat(h,Oe(c.values()))}function Mj(e,t,n,r,i){const{validatedFilesSpec:o,validatedIncludeSpecs:a,validatedExcludeSpecs:s}=t;if(!u(a)||!u(s))return!1;n=Jo(n);const c=Wt(r);if(o)for(const t of o)if(c(Bo(t,n))===e)return!1;return Jj(e,s,r,i,n)}function Rj(e){const t=Gt(e,"**/")?0:e.indexOf("/**/");return-1!==t&&(Mt(e,"/..")?e.length:e.lastIndexOf("/../"))>t}function Bj(e,t,n,r){return Jj(e,N(t,e=>!Rj(e)),n,r)}function Jj(e,t,n,r,i){const o=lS(t,jo(Jo(r),i),"exclude"),a=o&&gS(o,n);return!!a&&(!!a.test(e)||!xo(e)&&a.test(Wo(e)))}function zj(e,t,n,r,i){return e.filter(e=>{if(!Ze(e))return!1;const o=qj(e,n);return void 0!==o&&t.push(function(e,t){const n=$f(r,i,t);return Dj(r,n,e,t)}(...o)),void 0===o})}function qj(e,t){return un.assert("string"==typeof e),t&&Oj.test(e)?[_a.File_specification_cannot_end_in_a_recursive_directory_wildcard_Asterisk_Asterisk_Colon_0,e]:Rj(e)?[_a.File_specification_cannot_contain_a_parent_directory_that_appears_after_a_recursive_directory_wildcard_Asterisk_Asterisk_Colon_0,e]:void 0}function Uj({validatedIncludeSpecs:e,validatedExcludeSpecs:t},n,r){const i=lS(t,n,"exclude"),o=i&&new RegExp(i,r?"":"i"),a={},s=new Map;if(void 0!==e){const t=[];for(const i of e){const e=Jo(jo(n,i));if(o&&o.test(e))continue;const c=Wj(e,r);if(c){const{key:e,path:n,flags:r}=c,i=s.get(e),o=void 0!==i?a[i]:void 0;(void 0===o||oSo(e,t)?t:void 0);if(!o)return!1;for(const r of o){if(ko(e,r)&&(".ts"!==r||!ko(e,".d.ts")))return!1;const o=i($S(e,r));if(t.has(o)||n.has(o)){if(".d.ts"===r&&(ko(e,".js")||ko(e,".jsx")))continue;return!0}}return!1}function Hj(e,t,n,r){const i=d(n,t=>So(e,t)?t:void 0);if(i)for(let n=i.length-1;n>=0;n--){const o=i[n];if(ko(e,o))return;const a=r($S(e,o));t.delete(a)}}function Kj(e){const t={};for(const n in e)if(De(e,n)){const r=_L(n);void 0!==r&&(t[n]=Gj(e[n],r))}return t}function Gj(e,t){if(void 0===e)return e;switch(t.type){case"object":case"string":return"";case"number":return"number"==typeof e?e:"";case"boolean":return"boolean"==typeof e?e:"";case"listOrElement":if(!Qe(e))return Gj(e,t.element);case"list":const n=t.element;return Qe(e)?B(e,e=>Gj(e,n)):"";default:return rd(t.type,(t,n)=>{if(t===e)return n})}}function Xj(e,t,...n){e.trace(Xx(t,...n))}function Qj(e,t){return!!e.traceResolution&&void 0!==t.trace}function Yj(e,t,n){let r;if(t&&e){const i=e.contents.packageJsonContent;"string"==typeof i.name&&"string"==typeof i.version&&(r={name:i.name,subModuleName:t.path.slice(e.packageDirectory.length+lo.length),version:i.version,peerDependencies:uR(e,n)})}return t&&{path:t.path,extension:t.ext,packageId:r,resolvedUsingTsExtension:t.resolvedUsingTsExtension}}function Zj(e){return Yj(void 0,e,void 0)}function eM(e){if(e)return un.assert(void 0===e.packageId),{path:e.path,ext:e.extension,resolvedUsingTsExtension:e.resolvedUsingTsExtension}}function tM(e){const t=[];return 1&e&&t.push("TypeScript"),2&e&&t.push("JavaScript"),4&e&&t.push("Declaration"),8&e&&t.push("JSON"),t.join(", ")}function nM(e){if(e)return un.assert(QS(e.extension)),{fileName:e.path,packageId:e.packageId}}function rM(e,t,n,r,i,o,a,s,c){if(!a.resultFromCache&&!a.compilerOptions.preserveSymlinks&&t&&n&&!t.originalPath&&!Cs(e)){const{resolvedFileName:e,originalPath:n}=fM(t.path,a.host,a.traceEnabled);n&&(t={...t,path:e,originalPath:n})}return iM(t,n,r,i,o,a.resultFromCache,s,c)}function iM(e,t,n,r,i,o,a,s){return o?(null==a?void 0:a.isReadonly)?{...o,failedLookupLocations:sM(o.failedLookupLocations,n),affectingLocations:sM(o.affectingLocations,r),resolutionDiagnostics:sM(o.resolutionDiagnostics,i)}:(o.failedLookupLocations=aM(o.failedLookupLocations,n),o.affectingLocations=aM(o.affectingLocations,r),o.resolutionDiagnostics=aM(o.resolutionDiagnostics,i),o):{resolvedModule:e&&{resolvedFileName:e.path,originalPath:!0===e.originalPath?void 0:e.originalPath,extension:e.extension,isExternalLibraryImport:t,packageId:e.packageId,resolvedUsingTsExtension:!!e.resolvedUsingTsExtension},failedLookupLocations:oM(n),affectingLocations:oM(r),resolutionDiagnostics:oM(i),alternateResult:s}}function oM(e){return e.length?e:void 0}function aM(e,t){return(null==t?void 0:t.length)?(null==e?void 0:e.length)?(e.push(...t),e):t:e}function sM(e,t){return(null==e?void 0:e.length)?t.length?[...e,...t]:e.slice():oM(t)}function cM(e,t,n,r){if(!De(e,t))return void(r.traceEnabled&&Xj(r.host,_a.package_json_does_not_have_a_0_field,t));const i=e[t];if(typeof i===n&&null!==i)return i;r.traceEnabled&&Xj(r.host,_a.Expected_type_of_0_field_in_package_json_to_be_1_got_2,t,n,null===i?"null":typeof i)}function lM(e,t,n,r){const i=cM(e,t,"string",r);if(void 0===i)return;if(!i)return void(r.traceEnabled&&Xj(r.host,_a.package_json_had_a_falsy_0_field,t));const o=Jo(jo(n,i));return r.traceEnabled&&Xj(r.host,_a.package_json_has_0_field_1_that_references_2,t,i,o),o}function _M(e){Ij||(Ij=new bn(s));for(const t in e){if(!De(e,t))continue;const n=kn.tryParse(t);if(void 0!==n&&n.test(Ij))return{version:t,paths:e[t]}}}function uM(e,t){if(e.typeRoots)return e.typeRoots;let n;return e.configFilePath?n=Do(e.configFilePath):t.getCurrentDirectory&&(n=t.getCurrentDirectory()),void 0!==n?function(e){let t;return sa(Jo(e),e=>{const n=jo(e,dM);(t??(t=[])).push(n)}),t}(n):void 0}var dM=jo("node_modules","@types");function pM(e,t,n){return 0===Zo(e,t,!("function"==typeof n.useCaseSensitiveFileNames?n.useCaseSensitiveFileNames():n.useCaseSensitiveFileNames))}function fM(e,t,n){const r=$M(e,t,n),i=pM(e,r,t);return{resolvedFileName:i?e:r,originalPath:i?void 0:e}}function mM(e,t,n){return jo(e,Mt(e,"/node_modules/@types")||Mt(e,"/node_modules/@types/")?FR(t,n):t)}function gM(e,t,n,r,i,o,a){un.assert("string"==typeof e,"Non-string value passed to `ts.resolveTypeReferenceDirective`, likely by a wrapping package working with an outdated `resolveTypeReferenceDirectives` signature. This is probably not a problem in TS itself.");const s=Qj(n,r);i&&(n=i.commandLine.options);const c=t?Do(t):void 0;let l=c?null==o?void 0:o.getFromDirectoryCache(e,a,c,i):void 0;if(l||!c||Cs(e)||(l=null==o?void 0:o.getFromNonRelativeNameCache(e,a,c,i)),l)return s&&(Xj(r,_a.Resolving_type_reference_directive_0_containing_file_1,e,t),i&&Xj(r,_a.Using_compiler_options_of_project_reference_redirect_0,i.sourceFile.fileName),Xj(r,_a.Resolution_for_type_reference_directive_0_was_found_in_cache_from_location_1,e,c),k(l)),l;const _=uM(n,r);s&&(void 0===t?void 0===_?Xj(r,_a.Resolving_type_reference_directive_0_containing_file_not_set_root_directory_not_set,e):Xj(r,_a.Resolving_type_reference_directive_0_containing_file_not_set_root_directory_1,e,_):void 0===_?Xj(r,_a.Resolving_type_reference_directive_0_containing_file_1_root_directory_not_set,e,t):Xj(r,_a.Resolving_type_reference_directive_0_containing_file_1_root_directory_2,e,t,_),i&&Xj(r,_a.Using_compiler_options_of_project_reference_redirect_0,i.sourceFile.fileName));const u=[],d=[];let p=hM(n);void 0!==a&&(p|=30);const m=bk(n);99===a&&3<=m&&m<=99&&(p|=32);const g=8&p?yM(n,a):[],h=[],y={compilerOptions:n,host:r,traceEnabled:s,failedLookupLocations:u,affectingLocations:d,packageJsonInfoCache:o,features:p,conditions:g,requestContainingDirectory:c,reportDiagnostic:e=>{h.push(e)},isConfigLookup:!1,candidateIsFromPackageJsonField:!1,resolvedPackageDirectory:!1};let v,b=function(){if(_&&_.length)return s&&Xj(r,_a.Resolving_with_primary_search_path_0,_.join(", ")),f(_,t=>{const i=mM(t,e,y),o=Db(t,r);if(!o&&s&&Xj(r,_a.Directory_0_does_not_exist_skipping_all_lookups_in_it,t),n.typeRoots){const e=ZM(4,i,!o,y);if(e){const t=XM(e.path);return nM(Yj(t?dR(t,!1,y):void 0,e,y))}}return nM(oR(4,i,!o,y))});s&&Xj(r,_a.Root_directory_cannot_be_determined_skipping_primary_search_paths)}(),x=!0;if(b||(b=function(){const i=t&&Do(t);if(void 0!==i){let o;if(n.typeRoots&&Mt(t,TV))s&&Xj(r,_a.Resolving_type_reference_directive_for_program_that_specifies_custom_typeRoots_skipping_lookup_in_node_modules_folder);else if(s&&Xj(r,_a.Looking_up_in_node_modules_folder_initial_location_0,i),Cs(e)){const{path:t}=WM(i,e);o=HM(4,t,!1,y,!0)}else{const t=kR(4,e,i,y,void 0,void 0);o=t&&t.value}return nM(o)}s&&Xj(r,_a.Containing_file_is_not_specified_and_root_directory_cannot_be_determined_skipping_lookup_in_node_modules_folder)}(),x=!1),b){const{fileName:e,packageId:t}=b;let i,o=e;n.preserveSymlinks||({resolvedFileName:o,originalPath:i}=fM(e,r,s)),v={primary:x,resolvedFileName:o,originalPath:i,packageId:t,isExternalLibraryImport:GM(e)}}return l={resolvedTypeReferenceDirective:v,failedLookupLocations:oM(u),affectingLocations:oM(d),resolutionDiagnostics:oM(h)},c&&o&&!o.isReadonly&&(o.getOrCreateCacheForDirectory(c,i).set(e,a,l),Cs(e)||o.getOrCreateCacheForNonRelativeName(e,a,i).set(c,l)),s&&k(l),l;function k(t){var n;(null==(n=t.resolvedTypeReferenceDirective)?void 0:n.resolvedFileName)?t.resolvedTypeReferenceDirective.packageId?Xj(r,_a.Type_reference_directive_0_was_successfully_resolved_to_1_with_Package_ID_2_primary_Colon_3,e,t.resolvedTypeReferenceDirective.resolvedFileName,md(t.resolvedTypeReferenceDirective.packageId),t.resolvedTypeReferenceDirective.primary):Xj(r,_a.Type_reference_directive_0_was_successfully_resolved_to_1_primary_Colon_2,e,t.resolvedTypeReferenceDirective.resolvedFileName,t.resolvedTypeReferenceDirective.primary):Xj(r,_a.Type_reference_directive_0_was_not_resolved,e)}}function hM(e){let t=0;switch(bk(e)){case 3:case 99:case 100:t=30}return e.resolvePackageJsonExports?t|=8:!1===e.resolvePackageJsonExports&&(t&=-9),e.resolvePackageJsonImports?t|=2:!1===e.resolvePackageJsonImports&&(t&=-3),t}function yM(e,t){const n=bk(e);if(void 0===t)if(100===n)t=99;else if(2===n)return[];const r=99===t?["import"]:["require"];return e.noDtsResolution||r.push("types"),100!==n&&r.push("node"),K(r,e.customConditions)}function vM(e,t,n,r,i){const o=cR(null==i?void 0:i.getPackageJsonInfoCache(),r,n);return TR(r,t,t=>{if("node_modules"!==Fo(t)){const n=jo(t,"node_modules");return dR(jo(n,e),!1,o)}})}function bM(e,t){if(e.types)return e.types;const n=[];if(t.directoryExists&&t.getDirectories){const r=uM(e,t);if(r)for(const e of r)if(t.directoryExists(e))for(const r of t.getDirectories(e)){const i=Jo(r),o=jo(e,i,"package.json");if(!t.fileExists(o)||null!==wb(o,t).typings){const e=Fo(i);46!==e.charCodeAt(0)&&n.push(e)}}}return n}function xM(e){return!!(null==e?void 0:e.contents)}function kM(e){return!!e&&!e.contents}function SM(e){var t;if(null===e||"object"!=typeof e)return""+e;if(Qe(e))return`[${null==(t=e.map(e=>SM(e)))?void 0:t.join(",")}]`;let n="{";for(const t in e)De(e,t)&&(n+=`${t}: ${SM(e[t])}`);return n+"}"}function TM(e,t){return t.map(t=>SM($k(e,t))).join("|")+`|${e.pathsBasePath}`}function CM(e,t){const n=new Map,r=new Map;let i=new Map;return e&&n.set(e,i),{getMapOfCacheRedirects:function(e){return e?o(e.commandLine.options,!1):i},getOrCreateMapOfCacheRedirects:function(e){return e?o(e.commandLine.options,!0):i},update:function(t){e!==t&&(e?i=o(t,!0):n.set(t,i),e=t)},clear:function(){const o=e&&t.get(e);i.clear(),n.clear(),t.clear(),r.clear(),e&&(o&&t.set(e,o),n.set(e,i))},getOwnMap:()=>i};function o(t,o){let s=n.get(t);if(s)return s;const c=a(t);if(s=r.get(c),!s){if(e){const t=a(e);t===c?s=i:r.has(t)||r.set(t,i)}o&&(s??(s=new Map)),s&&r.set(c,s)}return s&&n.set(t,s),s}function a(e){let n=t.get(e);return n||t.set(e,n=TM(e,RO)),n}}function wM(e,t,n,r){const i=e.getOrCreateMapOfCacheRedirects(t);let o=i.get(n);return o||(o=r(),i.set(n,o)),o}function NM(e,t){return void 0===t?e:`${t}|${e}`}function DM(){const e=new Map,t=new Map,n={get:(t,n)=>e.get(r(t,n)),set:(t,i,o)=>(e.set(r(t,i),o),n),delete:(t,i)=>(e.delete(r(t,i)),n),has:(t,n)=>e.has(r(t,n)),forEach:n=>e.forEach((e,r)=>{const[i,o]=t.get(r);return n(e,i,o)}),size:()=>e.size};return n;function r(e,n){const r=NM(e,n);return t.set(r,[e,n]),r}}function FM(e){return e.resolvedModule&&(e.resolvedModule.originalPath||e.resolvedModule.resolvedFileName)}function EM(e){return e.resolvedTypeReferenceDirective&&(e.resolvedTypeReferenceDirective.originalPath||e.resolvedTypeReferenceDirective.resolvedFileName)}function PM(e,t,n,r,i,o){o??(o=new Map);const a=function(e,t,n,r){const i=CM(n,r);return{getFromDirectoryCache:function(n,r,o,a){var s,c;const l=Uo(o,e,t);return null==(c=null==(s=i.getMapOfCacheRedirects(a))?void 0:s.get(l))?void 0:c.get(n,r)},getOrCreateCacheForDirectory:function(n,r){const o=Uo(n,e,t);return wM(i,r,o,()=>DM())},clear:function(){i.clear()},update:function(e){i.update(e)},directoryToModuleNameMap:i}}(e,t,n,o),s=function(e,t,n,r,i){const o=CM(n,i);return{getFromNonRelativeNameCache:function(e,t,n,r){var i,a;return un.assert(!Cs(e)),null==(a=null==(i=o.getMapOfCacheRedirects(r))?void 0:i.get(NM(e,t)))?void 0:a.get(n)},getOrCreateCacheForNonRelativeName:function(e,t,n){return un.assert(!Cs(e)),wM(o,n,NM(e,t),a)},clear:function(){o.clear()},update:function(e){o.update(e)}};function a(){const n=new Map;return{get:function(r){return n.get(Uo(r,e,t))},set:function(i,o){const a=Uo(i,e,t);if(n.has(a))return;n.set(a,o);const s=r(o),c=s&&function(n,r){const i=Uo(Do(r),e,t);let o=0;const a=Math.min(n.length,i.length);for(;or,clearAllExceptPackageJsonInfoCache:c,optionsToRedirectsKey:o};function c(){a.clear(),s.clear()}}function AM(e,t,n,r,i){const o=PM(e,t,n,r,FM,i);return o.getOrCreateCacheForModuleName=(e,t,n)=>o.getOrCreateCacheForNonRelativeName(e,t,n),o}function IM(e,t,n,r,i){return PM(e,t,n,r,EM,i)}function OM(e){return{moduleResolution:2,traceResolution:e.traceResolution}}function LM(e,t,n,r,i){return MM(e,t,OM(n),r,i)}function jM(e,t,n,r){const i=Do(t);return n.getFromDirectoryCache(e,r,i,void 0)}function MM(e,t,n,r,i,o,a){const s=Qj(n,r);o&&(n=o.commandLine.options),s&&(Xj(r,_a.Resolving_module_0_from_1,e,t),o&&Xj(r,_a.Using_compiler_options_of_project_reference_redirect_0,o.sourceFile.fileName));const c=Do(t);let l=null==i?void 0:i.getFromDirectoryCache(e,a,c,o);if(l)s&&Xj(r,_a.Resolution_for_module_0_was_found_in_cache_from_location_1,e,c);else{let _=n.moduleResolution;switch(void 0===_?(_=bk(n),s&&Xj(r,_a.Module_resolution_kind_is_not_specified_using_0,li[_])):s&&Xj(r,_a.Explicitly_specified_module_resolution_kind_Colon_0,li[_]),_){case 3:case 99:l=function(e,t,n,r,i,o,a){return function(e,t,n,r,i,o,a,s,c){const l=Do(n),_=99===s?32:0;let u=r.noDtsResolution?3:7;return Nk(r)&&(u|=8),VM(e|_,t,l,r,i,o,u,!1,a,c)}(30,e,t,n,r,i,o,a)}(e,t,n,r,i,o,a);break;case 2:l=qM(e,t,n,r,i,o,a?yM(n,a):void 0);break;case 1:l=LR(e,t,n,r,i,o);break;case 100:l=zM(e,t,n,r,i,o,a?yM(n,a):void 0);break;default:return un.fail(`Unexpected moduleResolution: ${_}`)}i&&!i.isReadonly&&(i.getOrCreateCacheForDirectory(c,o).set(e,a,l),Cs(e)||i.getOrCreateCacheForNonRelativeName(e,a,o).set(c,l))}return s&&(l.resolvedModule?l.resolvedModule.packageId?Xj(r,_a.Module_name_0_was_successfully_resolved_to_1_with_Package_ID_2,e,l.resolvedModule.resolvedFileName,md(l.resolvedModule.packageId)):Xj(r,_a.Module_name_0_was_successfully_resolved_to_1,e,l.resolvedModule.resolvedFileName):Xj(r,_a.Module_name_0_was_not_resolved,e)),l}function RM(e,t,n,r,i){const o=function(e,t,n,r){const{baseUrl:i,paths:o}=r.compilerOptions;if(o&&!vo(t))return r.traceEnabled&&(i&&Xj(r.host,_a.baseUrl_option_is_set_to_0_using_this_value_to_resolve_non_relative_module_name_1,i,t),Xj(r.host,_a.paths_option_is_specified_looking_for_a_pattern_to_match_module_name_0,t)),NR(e,t,Ky(r.compilerOptions,r.host),o,GS(o),n,!1,r)}(e,t,r,i);return o?o.value:Cs(t)?function(e,t,n,r,i){if(!i.compilerOptions.rootDirs)return;i.traceEnabled&&Xj(i.host,_a.rootDirs_option_is_set_using_it_to_resolve_relative_module_name_0,t);const o=Jo(jo(n,t));let a,s;for(const e of i.compilerOptions.rootDirs){let t=Jo(e);Mt(t,lo)||(t+=lo);const n=Gt(o,t)&&(void 0===s||s.length(e[e.None=0]="None",e[e.Imports=2]="Imports",e[e.SelfName=4]="SelfName",e[e.Exports=8]="Exports",e[e.ExportsPatternTrailers=16]="ExportsPatternTrailers",e[e.AllFeatures=30]="AllFeatures",e[e.Node16Default=30]="Node16Default",e[e.NodeNextDefault=30]="NodeNextDefault",e[e.BundlerDefault=30]="BundlerDefault",e[e.EsmMode=32]="EsmMode",e))(JM||{});function zM(e,t,n,r,i,o,a){const s=Do(t);let c=n.noDtsResolution?3:7;return Nk(n)&&(c|=8),VM(hM(n),e,s,n,r,i,c,!1,o,a)}function qM(e,t,n,r,i,o,a,s){let c;return s?c=8:n.noDtsResolution?(c=3,Nk(n)&&(c|=8)):c=Nk(n)?15:7,VM(a?30:0,e,Do(t),n,r,i,c,!!s,o,a)}function UM(e,t,n){return VM(30,e,Do(t),{moduleResolution:99},n,void 0,8,!0,void 0,void 0)}function VM(e,t,n,r,i,o,a,s,c,_){var d,p,f,m,g;const h=Qj(r,i),y=[],b=[],x=bk(r);_??(_=yM(r,100===x||2===x?void 0:32&e?99:1));const k=[],S={compilerOptions:r,host:i,traceEnabled:h,failedLookupLocations:y,affectingLocations:b,packageJsonInfoCache:o,features:e,conditions:_??l,requestContainingDirectory:n,reportDiagnostic:e=>{k.push(e)},isConfigLookup:s,candidateIsFromPackageJsonField:!1,resolvedPackageDirectory:!1};let C,w;if(h&&Rk(x)&&Xj(i,_a.Resolving_in_0_mode_with_conditions_1,32&e?"ESM":"CJS",S.conditions.map(e=>`'${e}'`).join(", ")),2===x){const e=5&a,t=-6&a;C=e&&N(e,S)||t&&N(t,S)||void 0}else C=N(a,S);if(S.resolvedPackageDirectory&&!s&&!Cs(t)){const t=(null==C?void 0:C.value)&&5&a&&!fR(5,C.value.resolved.extension);if((null==(d=null==C?void 0:C.value)?void 0:d.isExternalLibraryImport)&&t&&8&e&&(null==_?void 0:_.includes("import"))){JR(S,_a.Resolution_of_non_relative_name_failed_trying_with_modern_Node_resolution_features_disabled_to_see_if_npm_library_needs_configuration_update);const e=N(5&a,{...S,features:-9&S.features,reportDiagnostic:rt});(null==(p=null==e?void 0:e.value)?void 0:p.isExternalLibraryImport)&&(w=e.value.resolved.path)}else if((!(null==C?void 0:C.value)||t)&&2===x){JR(S,_a.Resolution_of_non_relative_name_failed_trying_with_moduleResolution_bundler_to_see_if_project_may_need_configuration_update);const e={...S.compilerOptions,moduleResolution:100},t=N(5&a,{...S,compilerOptions:e,features:30,conditions:yM(e),reportDiagnostic:rt});(null==(f=null==t?void 0:t.value)?void 0:f.isExternalLibraryImport)&&(w=t.value.resolved.path)}}return rM(t,null==(m=null==C?void 0:C.value)?void 0:m.resolved,null==(g=null==C?void 0:C.value)?void 0:g.isExternalLibraryImport,y,b,k,S,o,w);function N(r,a){const s=RM(r,t,n,(e,t,n,r)=>HM(e,t,n,r,!0),a);if(s)return BR({resolved:s,isExternalLibraryImport:GM(s.path)});if(Cs(t)){const{path:e,parts:i}=WM(n,t),o=HM(r,e,!1,a,!0);return o&&BR({resolved:o,isExternalLibraryImport:T(i,"node_modules")})}{if(2&e&&Gt(t,"#")){const e=function(e,t,n,r,i,o){var a,s;if("#"===t||Gt(t,"#/"))return r.traceEnabled&&Xj(r.host,_a.Invalid_import_specifier_0_has_no_possible_resolutions,t),BR(void 0);const c=Bo(n,null==(s=(a=r.host).getCurrentDirectory)?void 0:s.call(a)),l=lR(c,r);if(!l)return r.traceEnabled&&Xj(r.host,_a.Directory_0_has_no_containing_package_json_scope_Imports_will_not_resolve,c),BR(void 0);if(!l.contents.packageJsonContent.imports)return r.traceEnabled&&Xj(r.host,_a.package_json_scope_0_has_no_imports_defined,l.packageDirectory),BR(void 0);const _=vR(e,r,i,o,t,l.contents.packageJsonContent.imports,l,!0);return _||(r.traceEnabled&&Xj(r.host,_a.Import_specifier_0_does_not_exist_in_package_json_scope_at_path_1,t,l.packageDirectory),BR(void 0))}(r,t,n,a,o,c);if(e)return e.value&&{value:{resolved:e.value,isExternalLibraryImport:!1}}}if(4&e){const e=function(e,t,n,r,i,o){var a,s;const c=lR(Bo(n,null==(s=(a=r.host).getCurrentDirectory)?void 0:s.call(a)),r);if(!c||!c.contents.packageJsonContent.exports)return;if("string"!=typeof c.contents.packageJsonContent.name)return;const l=Ao(t),_=Ao(c.contents.packageJsonContent.name);if(!v(_,(e,t)=>l[t]===e))return;const d=l.slice(_.length),p=u(d)?`.${lo}${d.join(lo)}`:".";if(Ak(r.compilerOptions)&&!GM(n))return hR(c,e,p,r,i,o);const f=-6&e;return hR(c,5&e,p,r,i,o)||hR(c,f,p,r,i,o)}(r,t,n,a,o,c);if(e)return e.value&&{value:{resolved:e.value,isExternalLibraryImport:!1}}}if(t.includes(":"))return void(h&&Xj(i,_a.Skipping_module_0_that_looks_like_an_absolute_URI_target_file_types_Colon_1,t,tM(r)));h&&Xj(i,_a.Loading_module_0_from_node_modules_folder_target_file_types_Colon_1,t,tM(r));let s=kR(r,t,n,a,o,c);return 4&r&&(s??(s=jR(t,a))),s&&{value:s.value&&{resolved:s.value,isExternalLibraryImport:!0}}}}}function WM(e,t){const n=jo(e,t),r=Ao(n),i=ye(r);return{path:"."===i||".."===i?Wo(Jo(n)):Jo(n),parts:r}}function $M(e,t,n){if(!t.realpath)return e;const r=Jo(t.realpath(e));return n&&Xj(t,_a.Resolving_real_path_for_0_result_1,e,r),r}function HM(e,t,n,r,i){if(r.traceEnabled&&Xj(r.host,_a.Loading_module_as_file_Slash_folder_candidate_module_location_0_target_file_types_Colon_1,t,tM(e)),!To(t)){if(!n){const e=Do(t);Db(e,r.host)||(r.traceEnabled&&Xj(r.host,_a.Directory_0_does_not_exist_skipping_all_lookups_in_it,e),n=!0)}const o=ZM(e,t,n,r);if(o){const e=i?XM(o.path):void 0;return Yj(e?dR(e,!1,r):void 0,o,r)}}if(n||Db(t,r.host)||(r.traceEnabled&&Xj(r.host,_a.Directory_0_does_not_exist_skipping_all_lookups_in_it,t),n=!0),!(32&r.features))return oR(e,t,n,r,i)}var KM="/node_modules/";function GM(e){return e.includes(KM)}function XM(e,t){const n=Jo(e),r=n.lastIndexOf(KM);if(-1===r)return;const i=r+KM.length;let o=QM(n,i,t);return 64===n.charCodeAt(i)&&(o=QM(n,o,t)),n.slice(0,o)}function QM(e,t,n){const r=e.indexOf(lo,t+1);return-1===r?n?e.length:t:r}function YM(e,t,n,r){return Zj(ZM(e,t,n,r))}function ZM(e,t,n,r){const i=eR(e,t,n,r);if(i)return i;if(!(32&r.features)){const i=nR(t,e,"",n,r);if(i)return i}}function eR(e,t,n,r){if(!Fo(t).includes("."))return;let i=US(t);i===t&&(i=t.substring(0,t.lastIndexOf(".")));const o=t.substring(i.length);return r.traceEnabled&&Xj(r.host,_a.File_name_0_has_a_1_extension_stripping_it,t,o),nR(i,e,o,n,r)}function tR(e,t,n,r,i){if(1&e&&So(t,ES)||4&e&&So(t,FS)){const e=rR(t,r,i),o=bb(t);return void 0!==e?{path:t,ext:o,resolvedUsingTsExtension:n?!Mt(n,o):void 0}:void 0}return i.isConfigLookup&&8===e&&ko(t,".json")?void 0!==rR(t,r,i)?{path:t,ext:".json",resolvedUsingTsExtension:void 0}:void 0:eR(e,t,r,i)}function nR(e,t,n,r,i){if(!r){const t=Do(e);t&&(r=!Db(t,i.host))}switch(n){case".mjs":case".mts":case".d.mts":return 1&t&&o(".mts",".mts"===n||".d.mts"===n)||4&t&&o(".d.mts",".mts"===n||".d.mts"===n)||2&t&&o(".mjs")||void 0;case".cjs":case".cts":case".d.cts":return 1&t&&o(".cts",".cts"===n||".d.cts"===n)||4&t&&o(".d.cts",".cts"===n||".d.cts"===n)||2&t&&o(".cjs")||void 0;case".json":return 4&t&&o(".d.json.ts")||8&t&&o(".json")||void 0;case".tsx":case".jsx":return 1&t&&(o(".tsx",".tsx"===n)||o(".ts",".tsx"===n))||4&t&&o(".d.ts",".tsx"===n)||2&t&&(o(".jsx")||o(".js"))||void 0;case".ts":case".d.ts":case".js":case"":return 1&t&&(o(".ts",".ts"===n||".d.ts"===n)||o(".tsx",".ts"===n||".d.ts"===n))||4&t&&o(".d.ts",".ts"===n||".d.ts"===n)||2&t&&(o(".js")||o(".jsx"))||i.isConfigLookup&&o(".json")||void 0;default:return 4&t&&!uO(e+n)&&o(`.d${n}.ts`)||void 0}function o(t,n){const o=rR(e+t,r,i);return void 0===o?void 0:{path:o,ext:t,resolvedUsingTsExtension:!i.candidateIsFromPackageJsonField&&n}}}function rR(e,t,n){var r;if(!(null==(r=n.compilerOptions.moduleSuffixes)?void 0:r.length))return iR(e,t,n);const i=tT(e)??"",o=i?WS(e,i):e;return d(n.compilerOptions.moduleSuffixes,e=>iR(o+e+i,t,n))}function iR(e,t,n){var r;if(!t){if(n.host.fileExists(e))return n.traceEnabled&&Xj(n.host,_a.File_0_exists_use_it_as_a_name_resolution_result,e),e;n.traceEnabled&&Xj(n.host,_a.File_0_does_not_exist,e)}null==(r=n.failedLookupLocations)||r.push(e)}function oR(e,t,n,r,i=!0){const o=i?dR(t,n,r):void 0;return Yj(o,pR(e,t,n,r,o),r)}function aR(e,t,n,r,i){if(!i&&void 0!==e.contents.resolvedEntrypoints)return e.contents.resolvedEntrypoints;let o;const a=5|(i?2:0),s=hM(t),c=cR(null==r?void 0:r.getPackageJsonInfoCache(),n,t);c.conditions=yM(t),c.requestContainingDirectory=e.packageDirectory;const l=pR(a,e.packageDirectory,!1,c,e);if(o=ie(o,null==l?void 0:l.path),8&s&&e.contents.packageJsonContent.exports){const r=Q([yM(t,99),yM(t,1)],te);for(const t of r){const r={...c,failedLookupLocations:[],conditions:t,host:n},i=sR(e,e.contents.packageJsonContent.exports,r,a);if(i)for(const e of i)o=le(o,e.path)}}return e.contents.resolvedEntrypoints=o||!1}function sR(e,t,n,r){let i;if(Qe(t))for(const e of t)o(e);else if("object"==typeof t&&null!==t&&gR(t))for(const e in t)o(t[e]);else o(t);return i;function o(t){var a,s;if("string"==typeof t&&Gt(t,"./"))if(t.includes("*")&&n.host.readDirectory){if(t.indexOf("*")!==t.lastIndexOf("*"))return!1;n.host.readDirectory(e.packageDirectory,function(e){const t=[];return 1&e&&t.push(...ES),2&e&&t.push(...wS),4&e&&t.push(...FS),8&e&&t.push(".json"),t}(r),void 0,[Ko(dC(t,"**/*"),".*")]).forEach(e=>{i=le(i,{path:e,ext:Po(e),resolvedUsingTsExtension:void 0})})}else{const o=Ao(t).slice(2);if(o.includes("..")||o.includes(".")||o.includes("node_modules"))return!1;const c=Bo(jo(e.packageDirectory,t),null==(s=(a=n.host).getCurrentDirectory)?void 0:s.call(a)),l=tR(r,c,t,!1,n);if(l)return i=le(i,l,(e,t)=>e.path===t.path),!0}else if(Array.isArray(t)){for(const e of t)if(o(e))return!0}else if("object"==typeof t&&null!==t)return d(Ee(t),e=>{if("default"===e||T(n.conditions,e)||xR(n.conditions,e))return o(t[e]),!0})}}function cR(e,t,n){return{host:t,compilerOptions:n,traceEnabled:Qj(n,t),failedLookupLocations:void 0,affectingLocations:void 0,packageJsonInfoCache:e,features:0,conditions:l,requestContainingDirectory:void 0,reportDiagnostic:rt,isConfigLookup:!1,candidateIsFromPackageJsonField:!1,resolvedPackageDirectory:!1}}function lR(e,t){return TR(t.host,e,e=>dR(e,!1,t))}function _R(e,t){return void 0===e.contents.versionPaths&&(e.contents.versionPaths=function(e,t){const n=function(e,t){const n=cM(e,"typesVersions","object",t);if(void 0!==n)return t.traceEnabled&&Xj(t.host,_a.package_json_has_a_typesVersions_field_with_version_specific_path_mappings),n}(e,t);if(void 0===n)return;if(t.traceEnabled)for(const e in n)De(n,e)&&!kn.tryParse(e)&&Xj(t.host,_a.package_json_has_a_typesVersions_entry_0_that_is_not_a_valid_semver_range,e);const r=_M(n);if(!r)return void(t.traceEnabled&&Xj(t.host,_a.package_json_does_not_have_a_typesVersions_entry_that_matches_version_0,a));const{version:i,paths:o}=r;if("object"==typeof o)return r;t.traceEnabled&&Xj(t.host,_a.Expected_type_of_0_field_in_package_json_to_be_1_got_2,`typesVersions['${i}']`,"object",typeof o)}(e.contents.packageJsonContent,t)||!1),e.contents.versionPaths||void 0}function uR(e,t){return void 0===e.contents.peerDependencies&&(e.contents.peerDependencies=function(e,t){const n=cM(e.contents.packageJsonContent,"peerDependencies","object",t);if(void 0===n)return;t.traceEnabled&&Xj(t.host,_a.package_json_has_a_peerDependencies_field);const r=$M(e.packageDirectory,t.host,t.traceEnabled),i=r.substring(0,r.lastIndexOf("node_modules")+12)+lo;let o="";for(const e in n)if(De(n,e)){const n=dR(i+e,!1,t);if(n){const r=n.contents.packageJsonContent.version;o+=`+${e}@${r}`,t.traceEnabled&&Xj(t.host,_a.Found_peerDependency_0_with_1_version,e,r)}else t.traceEnabled&&Xj(t.host,_a.Failed_to_find_peerDependency_0,e)}return o}(e,t)||!1),e.contents.peerDependencies||void 0}function dR(e,t,n){var r,i,o,a,s,c;const{host:l,traceEnabled:_}=n,u=jo(e,"package.json");if(t)return void(null==(r=n.failedLookupLocations)||r.push(u));const d=null==(i=n.packageJsonInfoCache)?void 0:i.getPackageJsonInfo(u);if(void 0!==d)return xM(d)?(_&&Xj(l,_a.File_0_exists_according_to_earlier_cached_lookups,u),null==(o=n.affectingLocations)||o.push(u),d.packageDirectory===e?d:{packageDirectory:e,contents:d.contents}):(d.directoryExists&&_&&Xj(l,_a.File_0_does_not_exist_according_to_earlier_cached_lookups,u),void(null==(a=n.failedLookupLocations)||a.push(u)));const p=Db(e,l);if(p&&l.fileExists(u)){const t=wb(u,l);_&&Xj(l,_a.Found_package_json_at_0,u);const r={packageDirectory:e,contents:{packageJsonContent:t,versionPaths:void 0,resolvedEntrypoints:void 0,peerDependencies:void 0}};return n.packageJsonInfoCache&&!n.packageJsonInfoCache.isReadonly&&n.packageJsonInfoCache.setPackageJsonInfo(u,r),null==(s=n.affectingLocations)||s.push(u),r}p&&_&&Xj(l,_a.File_0_does_not_exist,u),n.packageJsonInfoCache&&!n.packageJsonInfoCache.isReadonly&&n.packageJsonInfoCache.setPackageJsonInfo(u,{packageDirectory:e,directoryExists:p}),null==(c=n.failedLookupLocations)||c.push(u)}function pR(e,t,n,r,i){const o=i&&_R(i,r);let a;i&&pM(null==i?void 0:i.packageDirectory,t,r.host)&&(a=r.isConfigLookup?function(e,t,n){return lM(e,"tsconfig",t,n)}(i.contents.packageJsonContent,i.packageDirectory,r):4&e&&function(e,t,n){return lM(e,"typings",t,n)||lM(e,"types",t,n)}(i.contents.packageJsonContent,i.packageDirectory,r)||7&e&&function(e,t,n){return lM(e,"main",t,n)}(i.contents.packageJsonContent,i.packageDirectory,r)||void 0);const c=(e,t,n,r)=>{const o=tR(e,t,void 0,n,r);if(o)return Zj(o);const a=4===e?5:e,s=r.features,c=r.candidateIsFromPackageJsonField;r.candidateIsFromPackageJsonField=!0,"module"!==(null==i?void 0:i.contents.packageJsonContent.type)&&(r.features&=-33);const l=HM(a,t,n,r,!1);return r.features=s,r.candidateIsFromPackageJsonField=c,l},l=a?!Db(Do(a),r.host):void 0,_=n||!Db(t,r.host),u=jo(t,r.isConfigLookup?"tsconfig":"index");if(o&&(!a||ea(t,a))){const n=ra(t,a||u,!1);r.traceEnabled&&Xj(r.host,_a.package_json_has_a_typesVersions_entry_0_that_matches_compiler_version_1_looking_for_a_pattern_to_match_module_name_2,o.version,s,n);const i=GS(o.paths),d=NR(e,n,t,o.paths,i,c,l||_,r);if(d)return eM(d.value)}return a&&eM(c(e,a,l,r))||(32&r.features?void 0:ZM(e,u,_,r))}function fR(e,t){return 2&e&&(".js"===t||".jsx"===t||".mjs"===t||".cjs"===t)||1&e&&(".ts"===t||".tsx"===t||".mts"===t||".cts"===t)||4&e&&(".d.ts"===t||".d.mts"===t||".d.cts"===t)||8&e&&".json"===t||!1}function mR(e){let t=e.indexOf(lo);return"@"===e[0]&&(t=e.indexOf(lo,t+1)),-1===t?{packageName:e,rest:""}:{packageName:e.slice(0,t),rest:e.slice(t+1)}}function gR(e){return v(Ee(e),e=>Gt(e,"."))}function hR(e,t,n,r,i,o){if(e.contents.packageJsonContent.exports){if("."===n){let a;if("string"==typeof e.contents.packageJsonContent.exports||Array.isArray(e.contents.packageJsonContent.exports)||"object"==typeof e.contents.packageJsonContent.exports&&!$(Ee(e.contents.packageJsonContent.exports),e=>Gt(e,"."))?a=e.contents.packageJsonContent.exports:De(e.contents.packageJsonContent.exports,".")&&(a=e.contents.packageJsonContent.exports["."]),a)return bR(t,r,i,o,n,e,!1)(a,"",!1,".")}else if(gR(e.contents.packageJsonContent.exports)){if("object"!=typeof e.contents.packageJsonContent.exports)return r.traceEnabled&&Xj(r.host,_a.Export_specifier_0_does_not_exist_in_package_json_scope_at_path_1,n,e.packageDirectory),BR(void 0);const a=vR(t,r,i,o,n,e.contents.packageJsonContent.exports,e,!1);if(a)return a}return r.traceEnabled&&Xj(r.host,_a.Export_specifier_0_does_not_exist_in_package_json_scope_at_path_1,n,e.packageDirectory),BR(void 0)}}function yR(e,t){const n=e.indexOf("*"),r=t.indexOf("*"),i=-1===n?e.length:n+1,o=-1===r?t.length:r+1;return i>o?-1:o>i||-1===n?1:-1===r||e.length>t.length?-1:t.length>e.length?1:0}function vR(e,t,n,r,i,o,a,s){const c=bR(e,t,n,r,i,a,s);if(!Mt(i,lo)&&!i.includes("*")&&De(o,i))return c(o[i],"",!1,i);const l=_e(N(Ee(o),e=>function(e){const t=e.indexOf("*");return-1!==t&&t===e.lastIndexOf("*")}(e)||Mt(e,"/")),yR);for(const e of l){if(16&t.features&&_(e,i)){const t=o[e],n=e.indexOf("*");return c(t,i.substring(e.substring(0,n).length,i.length-(e.length-1-n)),!0,e)}if(Mt(e,"*")&&Gt(i,e.substring(0,e.length-1)))return c(o[e],i.substring(e.length-1),!0,e);if(Gt(i,e))return c(o[e],i.substring(e.length),!1,e)}function _(e,t){if(Mt(e,"*"))return!1;const n=e.indexOf("*");return-1!==n&&Gt(t,e.substring(0,n))&&Mt(t,e.substring(n+1))}}function bR(e,t,n,r,i,o,a){return function s(c,_,d,p){var f,m;if("string"==typeof c){if(!d&&_.length>0&&!Mt(c,"/"))return t.traceEnabled&&Xj(t.host,_a.package_json_scope_0_has_invalid_type_for_target_of_specifier_1,o.packageDirectory,i),BR(void 0);if(!Gt(c,"./")){if(a&&!Gt(c,"../")&&!Gt(c,"/")&&!go(c)){const i=d?c.replace(/\*/g,_):c+_;JR(t,_a.Using_0_subpath_1_with_target_2,"imports",p,i),JR(t,_a.Resolving_module_0_from_1,i,o.packageDirectory+"/");const a=VM(t.features,i,o.packageDirectory+"/",t.compilerOptions,t.host,n,e,!1,r,t.conditions);return null==(f=t.failedLookupLocations)||f.push(...a.failedLookupLocations??l),null==(m=t.affectingLocations)||m.push(...a.affectingLocations??l),BR(a.resolvedModule?{path:a.resolvedModule.resolvedFileName,extension:a.resolvedModule.extension,packageId:a.resolvedModule.packageId,originalPath:a.resolvedModule.originalPath,resolvedUsingTsExtension:a.resolvedModule.resolvedUsingTsExtension}:void 0)}return t.traceEnabled&&Xj(t.host,_a.package_json_scope_0_has_invalid_type_for_target_of_specifier_1,o.packageDirectory,i),BR(void 0)}const s=(vo(c)?Ao(c).slice(1):Ao(c)).slice(1);if(s.includes("..")||s.includes(".")||s.includes("node_modules"))return t.traceEnabled&&Xj(t.host,_a.package_json_scope_0_has_invalid_type_for_target_of_specifier_1,o.packageDirectory,i),BR(void 0);const u=jo(o.packageDirectory,c),y=Ao(_);if(y.includes("..")||y.includes(".")||y.includes("node_modules"))return t.traceEnabled&&Xj(t.host,_a.package_json_scope_0_has_invalid_type_for_target_of_specifier_1,o.packageDirectory,i),BR(void 0);t.traceEnabled&&Xj(t.host,_a.Using_0_subpath_1_with_target_2,a?"imports":"exports",p,d?c.replace(/\*/g,_):c+_);const v=g(d?u.replace(/\*/g,_):u+_),b=function(n,r,i,a){var s,c,l,_;if(!t.isConfigLookup&&(t.compilerOptions.declarationDir||t.compilerOptions.outDir)&&!n.includes("/node_modules/")&&(!t.compilerOptions.configFile||ea(o.packageDirectory,g(t.compilerOptions.configFile.fileName),!zR(t)))){const d=My({useCaseSensitiveFileNames:()=>zR(t)}),p=[];if(t.compilerOptions.rootDir||t.compilerOptions.composite&&t.compilerOptions.configFilePath){const e=g(cU(t.compilerOptions,()=>[],(null==(c=(s=t.host).getCurrentDirectory)?void 0:c.call(s))||"",d));p.push(e)}else if(t.requestContainingDirectory){const e=g(jo(t.requestContainingDirectory,"index.ts")),n=g(cU(t.compilerOptions,()=>[e,g(i)],(null==(_=(l=t.host).getCurrentDirectory)?void 0:_.call(l))||"",d));p.push(n);let r=Wo(n);for(;r&&r.length>1;){const e=Ao(r);e.pop();const t=Io(e);p.unshift(t),r=Wo(t)}}p.length>1&&t.reportDiagnostic(Qx(a?_a.The_project_root_is_ambiguous_but_is_required_to_resolve_import_map_entry_0_in_file_1_Supply_the_rootDir_compiler_option_to_disambiguate:_a.The_project_root_is_ambiguous_but_is_required_to_resolve_export_map_entry_0_in_file_1_Supply_the_rootDir_compiler_option_to_disambiguate,""===r?".":r,i));for(const r of p){const i=u(r);for(const a of i)if(ea(a,n,!zR(t))){const i=jo(r,n.slice(a.length+1)),s=[".mjs",".cjs",".js",".json",".d.mts",".d.cts",".d.ts"];for(const n of s)if(ko(i,n)){const r=$y(i);for(const a of r){if(!fR(e,a))continue;const r=Ho(i,a,n,!zR(t));if(t.host.fileExists(r))return BR(Yj(o,tR(e,r,void 0,!1,t),t))}}}}}return;function u(e){var n,r;const i=t.compilerOptions.configFile?(null==(r=(n=t.host).getCurrentDirectory)?void 0:r.call(n))||"":e,o=[];return t.compilerOptions.declarationDir&&o.push(g(h(i,t.compilerOptions.declarationDir))),t.compilerOptions.outDir&&t.compilerOptions.outDir!==t.compilerOptions.declarationDir&&o.push(g(h(i,t.compilerOptions.outDir))),o}}(v,_,jo(o.packageDirectory,"package.json"),a);return b||BR(Yj(o,tR(e,v,c,!1,t),t))}if("object"==typeof c&&null!==c){if(!Array.isArray(c)){JR(t,_a.Entering_conditional_exports);for(const e of Ee(c))if("default"===e||t.conditions.includes(e)||xR(t.conditions,e)){JR(t,_a.Matched_0_condition_1,a?"imports":"exports",e);const n=s(c[e],_,d,p);if(n)return JR(t,_a.Resolved_under_condition_0,e),JR(t,_a.Exiting_conditional_exports),n;JR(t,_a.Failed_to_resolve_under_condition_0,e)}else JR(t,_a.Saw_non_matching_condition_0,e);return void JR(t,_a.Exiting_conditional_exports)}if(!u(c))return t.traceEnabled&&Xj(t.host,_a.package_json_scope_0_has_invalid_type_for_target_of_specifier_1,o.packageDirectory,i),BR(void 0);for(const e of c){const t=s(e,_,d,p);if(t)return t}}else if(null===c)return t.traceEnabled&&Xj(t.host,_a.package_json_scope_0_explicitly_maps_specifier_1_to_null,o.packageDirectory,i),BR(void 0);return t.traceEnabled&&Xj(t.host,_a.package_json_scope_0_has_invalid_type_for_target_of_specifier_1,o.packageDirectory,i),BR(void 0);function g(e){var n,r;return void 0===e?e:Bo(e,null==(r=(n=t.host).getCurrentDirectory)?void 0:r.call(n))}function h(e,t){return Wo(jo(e,t))}}}function xR(e,t){if(!e.includes("types"))return!1;if(!Gt(t,"types@"))return!1;const n=kn.tryParse(t.substring(6));return!!n&&n.test(s)}function kR(e,t,n,r,i,o){return SR(e,t,n,r,!1,i,o)}function SR(e,t,n,r,i,o,a){const s=0===r.features?void 0:32&r.features||r.conditions.includes("import")?99:1,c=5&e,l=-6&e;if(c){JR(r,_a.Searching_all_ancestor_node_modules_directories_for_preferred_extensions_Colon_0,tM(c));const e=_(c);if(e)return e}if(l&&!i)return JR(r,_a.Searching_all_ancestor_node_modules_directories_for_fallback_extensions_Colon_0,tM(l)),_(l);function _(e){return TR(r.host,Oo(n),n=>{if("node_modules"!==Fo(n)){return OR(o,t,s,n,a,r)||BR(CR(e,t,n,r,i,o,a))}})}}function TR(e,t,n){var r;const i=null==(r=null==e?void 0:e.getGlobalTypingsCacheLocation)?void 0:r.call(e);return sa(t,e=>{const t=n(e);return void 0!==t?t:e!==i&&void 0})||void 0}function CR(e,t,n,r,i,o,a){const s=jo(n,"node_modules"),c=Db(s,r.host);if(!c&&r.traceEnabled&&Xj(r.host,_a.Directory_0_does_not_exist_skipping_all_lookups_in_it,s),!i){const n=wR(e,t,s,c,r,o,a);if(n)return n}if(4&e){const e=jo(s,"@types");let n=c;return c&&!Db(e,r.host)&&(r.traceEnabled&&Xj(r.host,_a.Directory_0_does_not_exist_skipping_all_lookups_in_it,e),n=!1),wR(4,FR(t,r),e,n,r,o,a)}}function wR(e,t,n,r,i,o,a){var c,_;const u=Jo(jo(n,t)),{packageName:d,rest:p}=mR(t),f=jo(n,d);let m,g=dR(u,!r,i);if(""!==p&&g&&(!(8&i.features)||!De((null==(c=m=dR(f,!r,i))?void 0:c.contents.packageJsonContent)??l,"exports"))){const t=ZM(e,u,!r,i);if(t)return Zj(t);const n=pR(e,u,!r,i,g);return Yj(g,n,i)}const h=(e,t,n,r)=>{let i=(p||!(32&r.features))&&ZM(e,t,n,r)||pR(e,t,n,r,g);return!i&&!p&&g&&(void 0===g.contents.packageJsonContent.exports||null===g.contents.packageJsonContent.exports)&&32&r.features&&(i=ZM(e,jo(t,"index.js"),n,r)),Yj(g,i,r)};if(""!==p&&(g=m??dR(f,!r,i)),g&&(i.resolvedPackageDirectory=!0),g&&g.contents.packageJsonContent.exports&&8&i.features)return null==(_=hR(g,e,jo(".",p),i,o,a))?void 0:_.value;const y=""!==p&&g?_R(g,i):void 0;if(y){i.traceEnabled&&Xj(i.host,_a.package_json_has_a_typesVersions_entry_0_that_matches_compiler_version_1_looking_for_a_pattern_to_match_module_name_2,y.version,s,p);const t=r&&Db(f,i.host),n=GS(y.paths),o=NR(e,p,f,y.paths,n,h,!t,i);if(o)return o.value}return h(e,u,!r,i)}function NR(e,t,n,r,i,o,a,s){const c=iT(i,t);if(c){const i=Ze(c)?void 0:Ht(c,t),l=Ze(c)?c:$t(c);return s.traceEnabled&&Xj(s.host,_a.Module_name_0_matched_pattern_1,t,l),{value:d(r[l],t=>{const r=i?dC(t,i):t,c=Jo(jo(n,r));s.traceEnabled&&Xj(s.host,_a.Trying_substitution_0_candidate_module_location_Colon_1,t,r);const l=tT(t);if(void 0!==l){const e=rR(c,a,s);if(void 0!==e)return Zj({path:e,ext:l,resolvedUsingTsExtension:void 0})}return o(e,c,a||!Db(Do(c),s.host),s)})}}}var DR="__";function FR(e,t){const n=PR(e);return t.traceEnabled&&n!==e&&Xj(t.host,_a.Scoped_package_detected_looking_in_0,n),n}function ER(e){return`@types/${PR(e)}`}function PR(e){if(Gt(e,"@")){const t=e.replace(lo,DR);if(t!==e)return t.slice(1)}return e}function AR(e){const t=Xt(e,"@types/");return t!==e?IR(t):e}function IR(e){return e.includes(DR)?"@"+e.replace(DR,lo):e}function OR(e,t,n,r,i,o){const a=e&&e.getFromNonRelativeNameCache(t,n,r,i);if(a)return o.traceEnabled&&Xj(o.host,_a.Resolution_for_module_0_was_found_in_cache_from_location_1,t,r),o.resultFromCache=a,{value:a.resolvedModule&&{path:a.resolvedModule.resolvedFileName,originalPath:a.resolvedModule.originalPath||!0,extension:a.resolvedModule.extension,packageId:a.resolvedModule.packageId,resolvedUsingTsExtension:a.resolvedModule.resolvedUsingTsExtension}}}function LR(e,t,n,r,i,o){const a=Qj(n,r),s=[],c=[],l=Do(t),_=[],u={compilerOptions:n,host:r,traceEnabled:a,failedLookupLocations:s,affectingLocations:c,packageJsonInfoCache:i,features:0,conditions:[],requestContainingDirectory:l,reportDiagnostic:e=>{_.push(e)},isConfigLookup:!1,candidateIsFromPackageJsonField:!1,resolvedPackageDirectory:!1},d=p(5)||p(2|(n.resolveJsonModule?8:0));return rM(e,d&&d.value,(null==d?void 0:d.value)&&GM(d.value.path),s,c,_,u,i);function p(t){const n=RM(t,e,l,YM,u);if(n)return{value:n};if(Cs(e)){const n=Jo(jo(l,e));return BR(YM(t,n,!1,u))}{const n=TR(u.host,l,n=>{const r=OR(i,e,void 0,n,o,u);if(r)return r;const a=Jo(jo(n,e));return BR(YM(t,a,!1,u))});if(n)return n;if(5&t){let n=function(e,t,n){return SR(4,e,t,n,!0,void 0,void 0)}(e,l,u);return 4&t&&(n??(n=jR(e,u))),n}}}}function jR(e,t){if(t.compilerOptions.typeRoots)for(const n of t.compilerOptions.typeRoots){const r=mM(n,e,t),i=Db(n,t.host);!i&&t.traceEnabled&&Xj(t.host,_a.Directory_0_does_not_exist_skipping_all_lookups_in_it,n);const o=ZM(4,r,!i,t);if(o){const e=XM(o.path);return BR(Yj(e?dR(e,!1,t):void 0,o,t))}const a=oR(4,r,!i,t);if(a)return BR(a)}}function MR(e,t){return hk(e)||!!t&&uO(t)}function RR(e,t,n,r,i,o){const a=Qj(n,r);a&&Xj(r,_a.Auto_discovery_for_typings_is_enabled_in_project_0_Running_extra_resolution_pass_for_module_1_using_cache_location_2,t,e,i);const s=[],c=[],l=[],_={compilerOptions:n,host:r,traceEnabled:a,failedLookupLocations:s,affectingLocations:c,packageJsonInfoCache:o,features:0,conditions:[],requestContainingDirectory:void 0,reportDiagnostic:e=>{l.push(e)},isConfigLookup:!1,candidateIsFromPackageJsonField:!1,resolvedPackageDirectory:!1};return iM(CR(4,e,i,_,!1,void 0,void 0),!0,s,c,l,_.resultFromCache,void 0)}function BR(e){return void 0!==e?{value:e}:void 0}function JR(e,t,...n){e.traceEnabled&&Xj(e.host,t,...n)}function zR(e){return!e.host.useCaseSensitiveFileNames||("boolean"==typeof e.host.useCaseSensitiveFileNames?e.host.useCaseSensitiveFileNames:e.host.useCaseSensitiveFileNames())}var qR=(e=>(e[e.NonInstantiated=0]="NonInstantiated",e[e.Instantiated=1]="Instantiated",e[e.ConstEnumOnly=2]="ConstEnumOnly",e))(qR||{});function UR(e,t){return e.body&&!e.body.parent&&(DT(e.body,e),FT(e.body,!1)),e.body?VR(e.body,t):1}function VR(e,t=new Map){const n=ZB(e);if(t.has(n))return t.get(n)||0;t.set(n,void 0);const r=function(e,t){switch(e.kind){case 265:case 266:return 0;case 267:if(tf(e))return 2;break;case 273:case 272:if(!Nv(e,32))return 0;break;case 279:const n=e;if(!n.moduleSpecifier&&n.exportClause&&280===n.exportClause.kind){let e=0;for(const r of n.exportClause.elements){const n=WR(r,t);if(n>e&&(e=n),1===e)return e}return e}break;case 269:{let n=0;return XI(e,e=>{const r=VR(e,t);switch(r){case 0:return;case 2:return void(n=2);case 1:return n=1,!0;default:un.assertNever(r)}}),n}case 268:return UR(e,t);case 80:if(4096&e.flags)return 0}return 1}(e,t);return t.set(n,r),r}function WR(e,t){const n=e.propertyName||e.name;if(80!==n.kind)return 1;let r=e.parent;for(;r;){if(VF(r)||hE(r)||sP(r)){const e=r.statements;let i;for(const o of e)if(xc(o,n)){o.parent||(DT(o,r),FT(o,!1));const e=VR(o,t);if((void 0===i||e>i)&&(i=e),1===i)return i;272===o.kind&&(i=1)}if(void 0!==i)return i}r=r.parent}return 1}var $R=(e=>(e[e.None=0]="None",e[e.IsContainer=1]="IsContainer",e[e.IsBlockScopedContainer=2]="IsBlockScopedContainer",e[e.IsControlFlowContainer=4]="IsControlFlowContainer",e[e.IsFunctionLike=8]="IsFunctionLike",e[e.IsFunctionExpression=16]="IsFunctionExpression",e[e.HasLocals=32]="HasLocals",e[e.IsInterface=64]="IsInterface",e[e.IsObjectLiteralOrClassExpressionMethodOrAccessor=128]="IsObjectLiteralOrClassExpressionMethodOrAccessor",e))($R||{});function HR(e,t,n){return un.attachFlowNodeDebugInfo({flags:e,id:0,node:t,antecedent:n})}var KR=XR();function GR(e,t){tr("beforeBind"),KR(e,t),tr("afterBind"),nr("Bind","beforeBind","afterBind")}function XR(){var e,t,n,r,i,o,a,s,c,l,_,p,f,m,g,h,y,b,x,k,S,C,w,N,D,F,E,P=!1,A=0,I=HR(1,void 0,void 0),O=HR(1,void 0,void 0),L=function(){return cI(function(e,t){if(t){t.stackIndex++,DT(e,r);const n=D;Ue(e);const i=r;r=e,t.skip=!1,t.inStrictModeStack[t.stackIndex]=n,t.parentStack[t.stackIndex]=i}else t={stackIndex:0,skip:!1,inStrictModeStack:[void 0],parentStack:[void 0]};const n=e.operatorToken.kind;if(Yv(n)||Xv(n)){if(fe(e)){const t=te(),n=p,r=w;w=!1,Se(e,t,t),p=w?de(t):n,w||(w=r)}else Se(e,h,y);t.skip=!0}return t},function(t,n,r){if(!n.skip){const n=e(t);return 28===r.operatorToken.kind&&be(t),n}},function(e,t,n){t.skip||Be(e)},function(t,n,r){if(!n.skip){const n=e(t);return 28===r.operatorToken.kind&&be(t),n}},function(e,t){if(!t.skip){const t=e.operatorToken.kind;eb(t)&&!Qg(e)&&(ke(e.left),64===t&&213===e.left.kind)&&ee(e.left.expression)&&(p=_e(256,p,e))}const n=t.inStrictModeStack[t.stackIndex],i=t.parentStack[t.stackIndex];void 0!==n&&(D=n),void 0!==i&&(r=i),t.skip=!1,t.stackIndex--},void 0);function e(e){if(e&&NF(e)&&!ib(e))return e;Be(e)}}();return function(u,d){var v,x;e=u,n=yk(t=d),D=function(e,t){return!(!Jk(t,"alwaysStrict")||e.isDeclarationFile)||!!e.externalModuleIndicator}(e,d),E=new Set,A=0,F=Mx.getSymbolConstructor(),un.attachFlowNodeDebugInfo(I),un.attachFlowNodeDebugInfo(O),e.locals||(null==(v=Hn)||v.push(Hn.Phase.Bind,"bindSourceFile",{path:e.path},!0),Be(e),null==(x=Hn)||x.pop(),e.symbolCount=A,e.classifiableNames=E,function(){if(!c)return;const t=i,n=s,o=a,l=r,_=p;for(const t of c){const n=t.parent.parent;i=Fp(n)||e,a=Ep(n)||e,p=HR(2,void 0,void 0),r=t,Be(t.typeExpression);const o=Cc(t);if((RP(t)||!t.fullName)&&o&&lb(o.parent)){const n=it(o.parent);if(n){et(e.symbol,o.parent,n,!!uc(o,e=>dF(e)&&"prototype"===e.name.escapedText),!1);const r=i;switch(ug(o.parent)){case 1:case 2:i=Zp(e)?e:void 0;break;case 4:i=o.parent.expression;break;case 3:i=o.parent.expression.name;break;case 5:i=YR(e,o.parent.expression)?e:dF(o.parent.expression)?o.parent.expression.name:o.parent.expression;break;case 0:return un.fail("Shouldn't have detected typedef or enum on non-assignment declaration")}i&&q(t,524288,788968),i=r}}else RP(t)||!t.fullName||80===t.fullName.kind?(r=t.parent,Oe(t,524288,788968)):Be(t.fullName)}i=t,s=n,a=o,r=l,p=_}(),function(){if(void 0===_)return;const t=i,n=s,o=a,c=r,l=p;for(const t of _){const n=Vg(t),o=n?Fp(n):void 0,s=n?Ep(n):void 0;i=o||e,a=s||e,p=HR(2,void 0,void 0),r=t,Be(t.importClause)}i=t,s=n,a=o,r=c,p=l}()),e=void 0,t=void 0,n=void 0,r=void 0,i=void 0,o=void 0,a=void 0,s=void 0,c=void 0,_=void 0,l=!1,p=void 0,f=void 0,m=void 0,g=void 0,h=void 0,y=void 0,b=void 0,k=void 0,S=!1,C=!1,w=!1,P=!1,N=0};function j(t,n,...r){return Jp(vd(t)||e,t,n,...r)}function M(e,t){return A++,new F(e,t)}function R(e,t,n){e.flags|=n,t.symbol=e,e.declarations=le(e.declarations,t),1955&n&&!e.exports&&(e.exports=Gu()),6240&n&&!e.members&&(e.members=Gu()),e.constEnumOnlyModule&&304&e.flags&&(e.constEnumOnlyModule=!1),111551&n&&mg(e,t)}function B(e){if(278===e.kind)return e.isExportEquals?"export=":"default";const t=Cc(e);if(t){if(cp(e)){const n=qh(t);return pp(e)?"__global":`"${n}"`}if(168===t.kind){const e=t.expression;if(jh(e))return fc(e.text);if(Mh(e))return Fa(e.operator)+e.operand.text;un.fail("Only computed properties with literal names have declaration names")}if(sD(t)){const n=Xf(e);if(!n)return;return Vh(n.symbol,t.escapedText)}return YE(t)?iC(t):zh(t)?Uh(t):void 0}switch(e.kind){case 177:return"__constructor";case 185:case 180:case 324:return"__call";case 186:case 181:return"__new";case 182:return"__index";case 279:return"__export";case 308:return"export=";case 227:if(2===tg(e))return"export=";un.fail("Unknown binary declaration kind");break;case 318:return Ng(e)?"__new":"__call";case 170:return un.assert(318===e.parent.kind,"Impossible parameter parent kind",()=>`parent is: ${un.formatSyntaxKind(e.parent.kind)}, expected JSDocFunctionType`),"arg"+e.parent.parameters.indexOf(e)}}function J(e){return Sc(e)?Ap(e.name):mc(un.checkDefined(B(e)))}function z(t,n,r,i,o,a,s){un.assert(s||!Rh(r));const c=Nv(r,2048)||LE(r)&&Kd(r.name),l=s?"__computed":c&&n?"default":B(r);let _;if(void 0===l)_=M(0,"__missing");else if(_=t.get(l),2885600&i&&E.add(l),_){if(a&&!_.isReplaceableByMethod)return _;if(_.flags&o)if(_.isReplaceableByMethod)t.set(l,_=M(0,l));else if(!(3&i&&67108864&_.flags)){Sc(r)&&DT(r.name,r);let t=2&_.flags?_a.Cannot_redeclare_block_scoped_variable_0:_a.Duplicate_identifier_0,n=!0;(384&_.flags||384&i)&&(t=_a.Enum_declarations_can_only_merge_with_namespace_or_other_enum_declarations,n=!1);let o=!1;u(_.declarations)&&(c||_.declarations&&_.declarations.length&&278===r.kind&&!r.isExportEquals)&&(t=_a.A_module_cannot_have_multiple_default_exports,n=!1,o=!0);const a=[];fE(r)&&Nd(r.type)&&Nv(r,32)&&2887656&_.flags&&a.push(j(r,_a.Did_you_mean_0,`export type { ${mc(r.name.escapedText)} }`));const s=Cc(r)||r;d(_.declarations,(r,i)=>{const c=Cc(r)||r,l=n?j(c,t,J(r)):j(c,t);e.bindDiagnostics.push(o?aT(l,j(s,0===i?_a.Another_export_default_is_here:_a.and_here)):l),o&&a.push(j(c,_a.The_first_export_default_is_here))});const p=n?j(s,t,J(r)):j(s,t);e.bindDiagnostics.push(aT(p,...a)),_=M(0,l)}}else t.set(l,_=M(0,l)),a&&(_.isReplaceableByMethod=!0);return R(_,r,i),_.parent?un.assert(_.parent===n,"Existing symbol parent should match new one"):_.parent=n,_}function q(e,t,n){const r=!!(32&ic(e))||function(e){if(e.parent&&gE(e)&&(e=e.parent),!Dg(e))return!1;if(!RP(e)&&e.fullName)return!0;const t=Cc(e);return!!(t&&(lb(t.parent)&&it(t.parent)||_u(t.parent)&&32&ic(t.parent)))}(e);if(2097152&t)return 282===e.kind||272===e.kind&&r?z(i.symbol.exports,i.symbol,e,t,n):(un.assertNode(i,su),z(i.locals,void 0,e,t,n));if(Dg(e)&&un.assert(Em(e)),!cp(e)&&(r||128&i.flags)){if(!su(i)||!i.locals||Nv(e,2048)&&!B(e))return z(i.symbol.exports,i.symbol,e,t,n);const r=111551&t?1048576:0,o=z(i.locals,void 0,e,r,n);return o.exportSymbol=z(i.symbol.exports,i.symbol,e,t,n),e.localSymbol=o,o}return un.assertNode(i,su),z(i.locals,void 0,e,t,n)}function U(e){V(e,e=>263===e.kind?Be(e):void 0),V(e,e=>263!==e.kind?Be(e):void 0)}function V(e,t=Be){void 0!==e&&d(e,t)}function W(e){XI(e,Be,V)}function G(e){const n=P;if(P=!1,function(e){if(!(1&p.flags))return!1;if(p===I){const n=du(e)&&243!==e.kind||264===e.kind||QR(e,t)||268===e.kind&&function(e){const n=UR(e);return 1===n||2===n&&Fk(t)}(e);if(n&&(p=O,!t.allowUnreachableCode)){const n=jk(t)&&!(33554432&e.flags)&&(!WF(e)||!!(7&ac(e.declarationList))||e.declarationList.declarations.some(e=>!!e.initializer));!function(e,t,n){if(pu(e)&&r(e)&&VF(e.parent)){const{statements:t}=e.parent,i=oT(t,e);H(i,r,(e,t)=>n(i[e],i[t-1]))}else n(e,e);function r(e){return!(uE(e)||function(e){switch(e.kind){case 265:case 266:return!0;case 268:return 1!==UR(e);case 267:return!QR(e,t);default:return!1}}(e)||WF(e)&&!(7&ac(e))&&e.declarationList.declarations.some(e=>!e.initializer))}}(e,t,(e,t)=>Re(n,e,t,_a.Unreachable_code_detected))}}return!0}(e))return Og(e)&&e.flowNode&&(e.flowNode=void 0),W(e),Je(e),void(P=n);switch(e.kind>=244&&e.kind<=260&&(!t.allowUnreachableCode||254===e.kind)&&(e.flowNode=p),e.kind){case 248:!function(e){const t=ye(e,ne()),n=te(),r=te();ae(t,p),p=t,ge(e.expression,n,r),p=de(n),he(e.statement,r,t),ae(t,p),p=de(r)}(e);break;case 247:!function(e){const t=ne(),n=ye(e,te()),r=te();ae(t,p),p=t,he(e.statement,r,n),ae(n,p),p=de(n),ge(e.expression,t,r),p=de(r)}(e);break;case 249:!function(e){const t=ye(e,ne()),n=te(),r=te(),i=te();Be(e.initializer),ae(t,p),p=t,ge(e.condition,n,i),p=de(n),he(e.statement,i,r),ae(r,p),p=de(r),Be(e.incrementor),ae(t,p),p=de(i)}(e);break;case 250:case 251:!function(e){const t=ye(e,ne()),n=te();Be(e.expression),ae(t,p),p=t,251===e.kind&&Be(e.awaitModifier),ae(n,p),Be(e.initializer),262!==e.initializer.kind&&ke(e.initializer),he(e.statement,n,t),ae(t,p),p=de(n)}(e);break;case 246:!function(e){const t=te(),n=te(),r=te();ge(e.expression,t,n),p=de(t),Be(e.thenStatement),ae(r,p),p=de(n),Be(e.elseStatement),ae(r,p),p=de(r)}(e);break;case 254:case 258:!function(e){const t=C;C=!0,Be(e.expression),C=t,254===e.kind&&(S=!0,g&&ae(g,p)),p=I,w=!0}(e);break;case 253:case 252:!function(e){if(Be(e.label),e.label){const t=function(e){for(let t=k;t;t=t.next)if(t.name===e)return t}(e.label.escapedText);t&&(t.referenced=!0,ve(e,t.breakTarget,t.continueTarget))}else ve(e,f,m)}(e);break;case 259:!function(e){const t=g,n=b,r=te(),i=te();let o=te();if(e.finallyBlock&&(g=i),ae(o,p),b=o,Be(e.tryBlock),ae(r,p),e.catchClause&&(p=de(o),o=te(),ae(o,p),b=o,Be(e.catchClause),ae(r,p)),g=t,b=n,e.finallyBlock){const t=te();t.antecedent=K(K(r.antecedent,o.antecedent),i.antecedent),p=t,Be(e.finallyBlock),1&p.flags?p=I:(g&&i.antecedent&&ae(g,re(t,i.antecedent,p)),b&&o.antecedent&&ae(b,re(t,o.antecedent,p)),p=r.antecedent?re(t,r.antecedent,p):I)}else p=de(r)}(e);break;case 256:!function(e){const t=te();Be(e.expression);const n=f,r=x;f=t,x=p,Be(e.caseBlock),ae(t,p);const i=d(e.caseBlock.clauses,e=>298===e.kind);e.possiblyExhaustive=!i&&!t.antecedent,i||ae(t,ce(x,e,0,0)),f=n,x=r,p=de(t)}(e);break;case 270:!function(e){const n=e.clauses,r=112===e.parent.expression.kind||X(e.parent.expression);let i=I;for(let o=0;oIE(e)||AE(e))}(e)?e.flags|=128:e.flags&=-129}function Ae(e){const t=UR(e),n=0!==t;return Ee(e,n?512:1024,n?110735:0),t}function Ie(e,t,n){const r=M(t,n);return 106508&t&&(r.parent=i.symbol),R(r,e,t),r}function Oe(e,t,n){switch(a.kind){case 268:q(e,t,n);break;case 308:if(Zp(i)){q(e,t,n);break}default:un.assertNode(a,su),a.locals||(a.locals=Gu(),Fe(a)),z(a.locals,void 0,e,t,n)}}function Le(t,n){if(n&&80===n.kind){const i=n;if(aD(r=i)&&("eval"===r.escapedText||"arguments"===r.escapedText)){const r=Qp(e,n);e.bindDiagnostics.push(Gx(e,r.start,r.length,function(t){return Xf(t)?_a.Code_contained_in_a_class_is_evaluated_in_JavaScript_s_strict_mode_which_does_not_allow_this_use_of_0_For_more_information_see_https_Colon_Slash_Slashdeveloper_mozilla_org_Slashen_US_Slashdocs_SlashWeb_SlashJavaScript_SlashReference_SlashStrict_mode:e.externalModuleIndicator?_a.Invalid_use_of_0_Modules_are_automatically_in_strict_mode:_a.Invalid_use_of_0_in_strict_mode}(t),gc(i)))}}var r}function je(e){!D||33554432&e.flags||Le(e,e.name)}function Me(t,n,...r){const i=Gp(e,t.pos);e.bindDiagnostics.push(Gx(e,i.start,i.length,n,...r))}function Re(t,n,r,i){!function(t,n,r){const i=Gx(e,n.pos,n.end-n.pos,r);t?e.bindDiagnostics.push(i):e.bindSuggestionDiagnostics=ie(e.bindSuggestionDiagnostics,{...i,category:2})}(t,{pos:zd(n,e),end:r.end},i)}function Be(t){if(!t)return;DT(t,r),Hn&&(t.tracingPath=e.path);const n=D;if(Ue(t),t.kind>166){const e=r;r=t;const n=ZR(t);0===n?G(t):function(e,t){const n=i,r=o,s=a,c=C;if(220===e.kind&&242!==e.body.kind&&(C=!0),1&t?(220!==e.kind&&(o=i),i=a=e,32&t&&(i.locals=Gu(),Fe(i))):2&t&&(a=e,32&t&&(a.locals=void 0)),4&t){const n=p,r=f,i=m,o=g,a=b,s=k,c=S,l=16&t&&!Nv(e,1024)&&!e.asteriskToken&&!!om(e)||176===e.kind;l||(p=HR(2,void 0,void 0),144&t&&(p.node=e)),g=l||177===e.kind||Em(e)&&(263===e.kind||219===e.kind)?te():void 0,b=void 0,f=void 0,m=void 0,k=void 0,S=!1,G(e),e.flags&=-5633,!(1&p.flags)&&8&t&&Dd(e.body)&&(e.flags|=512,S&&(e.flags|=1024),e.endFlowNode=p),308===e.kind&&(e.flags|=N,e.endFlowNode=p),g&&(ae(g,p),p=de(g),(177===e.kind||176===e.kind||Em(e)&&(263===e.kind||219===e.kind))&&(e.returnFlowNode=p)),l||(p=n),f=r,m=i,g=o,b=a,k=s,S=c}else 64&t?(l=!1,G(e),un.assertNotNode(e,aD),e.flags=l?256|e.flags:-257&e.flags):G(e);C=c,i=n,o=r,a=s}(t,n),r=e}else{const e=r;1===t.kind&&(r=t),Je(t),r=e}D=n}function Je(e){if(Du(e))if(Em(e))for(const t of e.jsDoc)Be(t);else for(const t of e.jsDoc)DT(t,e),FT(t,!1)}function ze(e){if(!D)for(const t of e){if(!pf(t))return;if(qe(t))return void(D=!0)}}function qe(t){const n=Vd(e,t.expression);return'"use strict"'===n||"'use strict'"===n}function Ue(o){switch(o.kind){case 80:if(4096&o.flags){let e=o.parent;for(;e&&!Dg(e);)e=e.parent;Oe(e,524288,788968);break}case 110:return p&&(V_(o)||305===r.kind)&&(o.flowNode=p),function(t){if(!(e.parseDiagnostics.length||33554432&t.flags||16777216&t.flags||dh(t))){const n=hc(t);if(void 0===n)return;D&&n>=119&&n<=127?e.bindDiagnostics.push(j(t,function(t){return Xf(t)?_a.Identifier_expected_0_is_a_reserved_word_in_strict_mode_Class_definitions_are_automatically_in_strict_mode:e.externalModuleIndicator?_a.Identifier_expected_0_is_a_reserved_word_in_strict_mode_Modules_are_automatically_in_strict_mode:_a.Identifier_expected_0_is_a_reserved_word_in_strict_mode}(t),Ap(t))):135===n?rO(e)&&nm(t)?e.bindDiagnostics.push(j(t,_a.Identifier_expected_0_is_a_reserved_word_at_the_top_level_of_a_module,Ap(t))):65536&t.flags&&e.bindDiagnostics.push(j(t,_a.Identifier_expected_0_is_a_reserved_word_that_cannot_be_used_here,Ap(t))):127===n&&16384&t.flags&&e.bindDiagnostics.push(j(t,_a.Identifier_expected_0_is_a_reserved_word_that_cannot_be_used_here,Ap(t)))}}(o);case 167:p&&km(o)&&(o.flowNode=p);break;case 237:case 108:o.flowNode=p;break;case 81:return function(t){"#constructor"===t.escapedText&&(e.parseDiagnostics.length||e.bindDiagnostics.push(j(t,_a.constructor_is_a_reserved_word,Ap(t))))}(o);case 212:case 213:const s=o;p&&Q(s)&&(s.flowNode=p),fg(s)&&function(e){110===e.expression.kind?Ke(e):og(e)&&308===e.parent.parent.kind&&(ub(e.expression)?Qe(e,e.parent):Ye(e))}(s),Em(s)&&e.commonJsModuleIndicator&&eg(s)&&!eB(a,"module")&&z(e.locals,void 0,s.expression,134217729,111550);break;case 227:switch(tg(o)){case 1:$e(o);break;case 2:!function(t){if(!We(t))return;const n=Qm(t.right);if(hb(n)||i===e&&YR(e,n))return;if(uF(n)&&v(n.properties,iP))return void d(n.properties,He);const r=mh(t)?2097152:1049092;mg(z(e.symbol.exports,e.symbol,t,67108864|r,0),t)}(o);break;case 3:Qe(o.left,o);break;case 6:!function(e){DT(e.left,e),DT(e.right,e),ot(e.left.expression,e.left,!1,!0)}(o);break;case 4:Ke(o);break;case 5:const t=o.left.expression;if(Em(o)&&aD(t)){const e=eB(a,t.escapedText);if(cm(null==e?void 0:e.valueDeclaration)){Ke(o);break}}!function(t){var n;const r=at(t.left.expression,a)||at(t.left.expression,i);if(!Em(t)&&!gg(r))return;const o=wx(t.left);aD(o)&&2097152&(null==(n=eB(i,o.escapedText))?void 0:n.flags)||(DT(t.left,t),DT(t.right,t),aD(t.left.expression)&&i===e&&YR(e,t.left.expression)?$e(t):Rh(t)?(Ie(t,67108868,"__computed"),Xe(t,et(r,t.left.expression,it(t.left),!1,!1))):Ye(nt(t.left,sg)))}(o);break;case 0:break;default:un.fail("Unknown binary expression special property assignment kind")}return function(e){D&&R_(e.left)&&eb(e.operatorToken.kind)&&Le(e,e.left)}(o);case 300:return function(e){D&&e.variableDeclaration&&Le(e,e.variableDeclaration.name)}(o);case 221:return function(t){if(D&&80===t.expression.kind){const n=Qp(e,t.expression);e.bindDiagnostics.push(Gx(e,n.start,n.length,_a.delete_cannot_be_called_on_an_identifier_in_strict_mode))}}(o);case 226:return function(e){D&&Le(e,e.operand)}(o);case 225:return function(e){D&&(46!==e.operator&&47!==e.operator||Le(e,e.operand))}(o);case 255:return function(e){D&&Me(e,_a.with_statements_are_not_allowed_in_strict_mode)}(o);case 257:return function(e){D&&yk(t)>=2&&(uu(e.statement)||WF(e.statement))&&Me(e.label,_a.A_label_is_not_allowed_here)}(o);case 198:return void(l=!0);case 183:break;case 169:return function(e){if(UP(e.parent)){const t=Jg(e.parent);t?(un.assertNode(t,su),t.locals??(t.locals=Gu()),z(t.locals,void 0,e,262144,526824)):Ee(e,262144,526824)}else if(196===e.parent.kind){const t=function(e){const t=uc(e,e=>e.parent&&XD(e.parent)&&e.parent.extendsType===e);return t&&t.parent}(e.parent);t?(un.assertNode(t,su),t.locals??(t.locals=Gu()),z(t.locals,void 0,e,262144,526824)):Ie(e,262144,B(e))}else Ee(e,262144,526824)}(o);case 170:return lt(o);case 261:return ct(o);case 209:return o.flowNode=p,ct(o);case 173:case 172:return function(e){const t=p_(e),n=t?13247:0;return _t(e,(t?98304:4)|(e.questionToken?16777216:0),n)}(o);case 304:case 305:return _t(o,4,0);case 307:return _t(o,8,900095);case 180:case 181:case 182:return Ee(o,131072,0);case 175:case 174:return _t(o,8192|(o.questionToken?16777216:0),Jf(o)?0:103359);case 263:return function(t){e.isDeclarationFile||33554432&t.flags||Lh(t)&&(N|=4096),je(t),D?(function(t){if(n<2&&308!==a.kind&&268!==a.kind&&!i_(a)){const n=Qp(e,t);e.bindDiagnostics.push(Gx(e,n.start,n.length,function(t){return Xf(t)?_a.Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES5_Class_definitions_are_automatically_in_strict_mode:e.externalModuleIndicator?_a.Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES5_Modules_are_automatically_in_strict_mode:_a.Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES5}(t)))}}(t),Oe(t,16,110991)):Ee(t,16,110991)}(o);case 177:return Ee(o,16384,0);case 178:return _t(o,32768,46015);case 179:return _t(o,65536,78783);case 185:case 318:case 324:case 186:return function(e){const t=M(131072,B(e));R(t,e,131072);const n=M(2048,"__type");R(n,e,2048),n.members=Gu(),n.members.set(t.escapedName,t)}(o);case 188:case 323:case 201:return function(e){return Ie(e,2048,"__type")}(o);case 333:return function(e){W(e);const t=qg(e);t&&175!==t.kind&&R(t.symbol,t,32)}(o);case 211:return function(e){return Ie(e,4096,"__object")}(o);case 219:case 220:return function(t){e.isDeclarationFile||33554432&t.flags||Lh(t)&&(N|=4096),p&&(t.flowNode=p),je(t);return Ie(t,16,t.name?t.name.escapedText:"__function")}(o);case 214:switch(tg(o)){case 7:return function(e){let t=at(e.arguments[0]);const n=308===e.parent.parent.kind;t=et(t,e.arguments[0],n,!1,!1),rt(e,t,!1)}(o);case 8:return function(e){if(!We(e))return;const t=st(e.arguments[0],void 0,(e,t)=>(t&&R(t,e,67110400),t));if(t){const n=1048580;z(t.exports,t,e,n,0)}}(o);case 9:return function(e){const t=at(e.arguments[0].expression);t&&t.valueDeclaration&&R(t,t.valueDeclaration,32),rt(e,t,!0)}(o);case 0:break;default:return un.fail("Unknown call expression assignment declaration kind")}Em(o)&&function(t){!e.commonJsModuleIndicator&&Lm(t,!1)&&We(t)}(o);break;case 232:case 264:return D=!0,function(t){264===t.kind?Oe(t,32,899503):(Ie(t,32,t.name?t.name.escapedText:"__class"),t.name&&E.add(t.name.escapedText));const{symbol:n}=t,r=M(4194308,"prototype"),i=n.exports.get(r.escapedName);i&&(t.name&&DT(t.name,t),e.bindDiagnostics.push(j(i.declarations[0],_a.Duplicate_identifier_0,yc(r)))),n.exports.set(r.escapedName,r),r.parent=n}(o);case 265:return Oe(o,64,788872);case 266:return Oe(o,524288,788968);case 267:return function(e){return tf(e)?Oe(e,128,899967):Oe(e,256,899327)}(o);case 268:return function(t){if(Pe(t),cp(t))if(Nv(t,32)&&Me(t,_a.export_modifier_cannot_be_applied_to_ambient_modules_and_module_augmentations_since_they_are_always_visible),mp(t))Ae(t);else{let n;if(11===t.name.kind){const{text:e}=t.name;n=HS(e),void 0===n&&Me(t.name,_a.Pattern_0_can_have_at_most_one_Asterisk_character,e)}const r=Ee(t,512,110735);e.patternAmbientModules=ie(e.patternAmbientModules,n&&!Ze(n)?{pattern:n,symbol:r}:void 0)}else{const e=Ae(t);if(0!==e){const{symbol:n}=t;n.constEnumOnlyModule=!(304&n.flags)&&2===e&&!1!==n.constEnumOnlyModule}}}(o);case 293:return function(e){return Ie(e,4096,"__jsxAttributes")}(o);case 292:return function(e){return Ee(e,4,0)}(o);case 272:case 275:case 277:case 282:return Ee(o,2097152,2097152);case 271:return function(t){$(t.modifiers)&&e.bindDiagnostics.push(j(t,_a.Modifiers_cannot_appear_here));const n=sP(t.parent)?rO(t.parent)?t.parent.isDeclarationFile?void 0:_a.Global_module_exports_may_only_appear_in_declaration_files:_a.Global_module_exports_may_only_appear_in_module_files:_a.Global_module_exports_may_only_appear_at_top_level;n?e.bindDiagnostics.push(j(t,n)):(e.symbol.globalExports=e.symbol.globalExports||Gu(),z(e.symbol.globalExports,e.symbol,t,2097152,2097152))}(o);case 274:return function(e){e.name&&Ee(e,2097152,2097152)}(o);case 279:return function(e){i.symbol&&i.symbol.exports?e.exportClause?FE(e.exportClause)&&(DT(e.exportClause,e),z(i.symbol.exports,i.symbol,e.exportClause,2097152,2097152)):z(i.symbol.exports,i.symbol,e,8388608,0):Ie(e,8388608,B(e))}(o);case 278:return function(e){if(i.symbol&&i.symbol.exports){const t=mh(e)?2097152:4,n=z(i.symbol.exports,i.symbol,e,t,-1);e.isExportEquals&&mg(n,e)}else Ie(e,111551,B(e))}(o);case 308:return ze(o.statements),function(){if(Pe(e),rO(e))Ve();else if(ef(e)){Ve();const t=e.symbol;z(e.symbol.exports,e.symbol,e,4,-1),e.symbol=t}}();case 242:if(!i_(o.parent))return;case 269:return ze(o.statements);case 342:if(324===o.parent.kind)return lt(o);if(323!==o.parent.kind)break;case 349:const u=o;return Ee(u,u.isBracketed||u.typeExpression&&317===u.typeExpression.type.kind?16777220:4,0);case 347:case 339:case 341:return(c||(c=[])).push(o);case 340:return Be(o.typeExpression);case 352:return(_||(_=[])).push(o)}}function Ve(){Ie(e,512,`"${US(e.fileName)}"`)}function We(t){return!(e.externalModuleIndicator&&!0!==e.externalModuleIndicator||(e.commonJsModuleIndicator||(e.commonJsModuleIndicator=t,e.externalModuleIndicator||Ve()),0))}function $e(e){if(!We(e))return;const t=st(e.left.expression,void 0,(e,t)=>(t&&R(t,e,67110400),t));if(t){const n=fh(e.right)&&(Ym(e.left.expression)||eg(e.left.expression))?2097152:1048580;DT(e.left,e),z(t.exports,t,e.left,n,0)}}function He(t){z(e.symbol.exports,e.symbol,t,69206016,0)}function Ke(e){if(un.assert(Em(e)),NF(e)&&dF(e.left)&&sD(e.left.name)||dF(e)&&sD(e.name))return;const t=em(e,!1,!1);switch(t.kind){case 263:case 219:let n=t.symbol;if(NF(t.parent)&&64===t.parent.operatorToken.kind){const e=t.parent.left;og(e)&&ub(e.expression)&&(n=at(e.expression.expression,o))}n&&n.valueDeclaration&&(n.members=n.members||Gu(),Rh(e)?Ge(e,n,n.members):z(n.members,n,e,67108868,0),R(n,n.valueDeclaration,32));break;case 177:case 173:case 175:case 178:case 179:case 176:const r=t.parent,i=Dv(t)?r.symbol.exports:r.symbol.members;Rh(e)?Ge(e,r.symbol,i):z(i,r.symbol,e,67108868,0,!0);break;case 308:if(Rh(e))break;t.commonJsModuleIndicator?z(t.symbol.exports,t.symbol,e,1048580,0):Ee(e,1,111550);break;case 268:break;default:un.failBadSyntaxKind(t)}}function Ge(e,t,n){z(n,t,e,4,0,!0,!0),Xe(e,t)}function Xe(e,t){t&&(t.assignmentDeclarationMembers||(t.assignmentDeclarationMembers=new Map)).set(ZB(e),e)}function Qe(e,t){const n=e.expression,r=n.expression;DT(r,n),DT(n,e),DT(e,t),ot(r,e,!0,!0)}function Ye(e){un.assert(!aD(e)),DT(e.expression,e),ot(e.expression,e,!1,!1)}function et(t,n,r,i,o){if(2097152&(null==t?void 0:t.flags))return t;if(r&&!i){const r=67110400,i=110735;t=st(n,t,(t,n,o)=>n?(R(n,t,r),n):z(o?o.exports:e.jsGlobalAugmentations||(e.jsGlobalAugmentations=Gu()),o,t,r,i))}return o&&t&&t.valueDeclaration&&R(t,t.valueDeclaration,32),t}function rt(e,t,n){if(!t||!function(e){if(1072&e.flags)return!0;const t=e.valueDeclaration;if(t&&fF(t))return!!$m(t);let n=t?lE(t)?t.initializer:NF(t)?t.right:dF(t)&&NF(t.parent)?t.parent.right:void 0:void 0;if(n=n&&Qm(n),n){const e=ub(lE(t)?t.name:NF(t)?t.left:t);return!!Hm(!NF(n)||57!==n.operatorToken.kind&&61!==n.operatorToken.kind?n:n.right,e)}return!1}(t))return;const r=n?t.members||(t.members=Gu()):t.exports||(t.exports=Gu());let i=0,o=0;o_($m(e))?(i=8192,o=103359):fF(e)&&ng(e)&&($(e.arguments[2].properties,e=>{const t=Cc(e);return!!t&&aD(t)&&"set"===gc(t)})&&(i|=65540,o|=78783),$(e.arguments[2].properties,e=>{const t=Cc(e);return!!t&&aD(t)&&"get"===gc(t)})&&(i|=32772,o|=46015)),0===i&&(i=4,o=0),z(r,t,e,67108864|i,-67108865&o)}function it(e){return NF(e.parent)?308===function(e){for(;NF(e.parent);)e=e.parent;return e.parent}(e.parent).parent.kind:308===e.parent.parent.kind}function ot(e,t,n,r){let o=at(e,a)||at(e,i);const s=it(t);o=et(o,t.expression,s,n,r),rt(t,o,n)}function at(e,t=i){if(aD(e))return eB(t,e.escapedText);{const t=at(e.expression);return t&&t.exports&&t.exports.get(_g(e))}}function st(t,n,r){if(YR(e,t))return e.symbol;if(aD(t))return r(t,at(t),n);{const e=st(t.expression,n,r),i=cg(t);return sD(i)&&un.fail("unexpected PrivateIdentifier"),r(i,e&&e.exports&&e.exports.get(_g(t)),e)}}function ct(e){if(D&&Le(e,e.name),!k_(e.name)){const t=261===e.kind?e:e.parent.parent;!Em(e)||!Mm(t)||tl(e)||32&ic(e)?ap(e)?Oe(e,2,111551):Qh(e)?Ee(e,1,111551):Ee(e,1,111550):Ee(e,2097152,2097152)}}function lt(e){if((342!==e.kind||324===i.kind)&&(!D||33554432&e.flags||Le(e,e.name),k_(e.name)?Ie(e,1,"__"+e.parent.parameters.indexOf(e)):Ee(e,1,111551),Zs(e,e.parent))){const t=e.parent.parent;z(t.symbol.members,t.symbol,e,4|(e.questionToken?16777216:0),0)}}function _t(t,n,r){return e.isDeclarationFile||33554432&t.flags||!Lh(t)||(N|=4096),p&&zf(t)&&(t.flowNode=p),Rh(t)?Ie(t,n,"__computed"):Ee(t,n,r)}}function QR(e,t){return 267===e.kind&&(!tf(e)||Fk(t))}function YR(e,t){let n=0;const r=Ge();for(r.enqueue(t);!r.isEmpty()&&n<100;){if(n++,Ym(t=r.dequeue())||eg(t))return!0;if(aD(t)){const n=eB(e,t.escapedText);if(n&&n.valueDeclaration&&lE(n.valueDeclaration)&&n.valueDeclaration.initializer){const e=n.valueDeclaration.initializer;r.enqueue(e),rb(e,!0)&&(r.enqueue(e.left),r.enqueue(e.right))}}}return!1}function ZR(e){switch(e.kind){case 232:case 264:case 267:case 211:case 188:case 323:case 293:return 1;case 265:return 65;case 268:case 266:case 201:case 182:return 33;case 308:return 37;case 178:case 179:case 175:if(zf(e))return 173;case 177:case 263:case 174:case 180:case 324:case 318:case 185:case 181:case 186:case 176:return 45;case 352:return 37;case 219:case 220:return 61;case 269:return 4;case 173:return e.initializer?4:0;case 300:case 249:case 250:case 251:case 270:return 34;case 242:return r_(e.parent)||ED(e.parent)?0:34}return 0}function eB(e,t){var n,r,i,o;const a=null==(r=null==(n=tt(e,su))?void 0:n.locals)?void 0:r.get(t);return a?a.exportSymbol??a:sP(e)&&e.jsGlobalAugmentations&&e.jsGlobalAugmentations.has(t)?e.jsGlobalAugmentations.get(t):au(e)?null==(o=null==(i=e.symbol)?void 0:i.exports)?void 0:o.get(t):void 0}function tB(e,t,n,r,i,o,a,s,c,l){return function(_=()=>!0){const u=[],p=[];return{walkType:e=>{try{return f(e),{visitedTypes:Ae(u),visitedSymbols:Ae(p)}}finally{F(u),F(p)}},walkSymbol:e=>{try{return h(e),{visitedTypes:Ae(u),visitedSymbols:Ae(p)}}finally{F(u),F(p)}}};function f(e){if(e&&!u[e.id]&&(u[e.id]=e,!h(e.symbol))){if(524288&e.flags){const n=e,i=n.objectFlags;4&i&&function(e){f(e.target),d(l(e),f)}(e),32&i&&function(e){f(e.typeParameter),f(e.constraintType),f(e.templateType),f(e.modifiersType)}(e),3&i&&(g(t=e),d(t.typeParameters,f),d(r(t),f),f(t.thisType)),24&i&&g(n)}var t;262144&e.flags&&function(e){f(s(e))}(e),3145728&e.flags&&function(e){d(e.types,f)}(e),4194304&e.flags&&function(e){f(e.type)}(e),8388608&e.flags&&function(e){f(e.objectType),f(e.indexType),f(e.constraint)}(e)}}function m(r){const i=t(r);i&&f(i.type),d(r.typeParameters,f);for(const e of r.parameters)h(e);f(e(r)),f(n(r))}function g(e){const t=i(e);for(const e of t.indexInfos)f(e.keyType),f(e.type);for(const e of t.callSignatures)m(e);for(const e of t.constructSignatures)m(e);for(const e of t.properties)h(e)}function h(e){if(!e)return!1;const t=eJ(e);return!p[t]&&(p[t]=e,!_(e)||(f(o(e)),e.exports&&e.exports.forEach(h),d(e.declarations,e=>{if(e.type&&187===e.type.kind){const t=e.type;h(a(c(t.exprName)))}}),!1))}}}var nB={};i(nB,{RelativePreference:()=>iB,countPathComponents:()=>yB,forEachFileNameOfModule:()=>xB,getLocalModuleSpecifierBetweenFileNames:()=>fB,getModuleSpecifier:()=>sB,getModuleSpecifierPreferences:()=>oB,getModuleSpecifiers:()=>dB,getModuleSpecifiersWithCacheInfo:()=>pB,getNodeModulesPackageName:()=>cB,tryGetJSExtensionForFile:()=>AB,tryGetModuleSpecifiersFromCache:()=>_B,tryGetRealFileNameForNonJsDeclarationFileName:()=>EB,updateModuleSpecifier:()=>aB});var rB=pt(e=>{try{let t=e.indexOf("/");if(0!==t)return new RegExp(e);const n=e.lastIndexOf("/");if(t===n)return new RegExp(e);for(;(t=e.indexOf("/",t+1))!==n;)if("\\"!==e[t-1])return new RegExp(e);const r=e.substring(n+1).replace(/[^iu]/g,"");return e=e.substring(1,n),new RegExp(e,r)}catch{return}}),iB=(e=>(e[e.Relative=0]="Relative",e[e.NonRelative=1]="NonRelative",e[e.Shortest=2]="Shortest",e[e.ExternalNonRelative=3]="ExternalNonRelative",e))(iB||{});function oB({importModuleSpecifierPreference:e,importModuleSpecifierEnding:t,autoImportSpecifierExcludeRegexes:n},r,i,o,a){const s=c();return{excludeRegexes:n,relativePreference:void 0!==a?Cs(a)?0:1:"relative"===e?0:"non-relative"===e?1:"project-relative"===e?3:2,getAllowedEndingsInPreferredOrder:e=>{const t=LB(o,r,i),n=e!==t?c(e):s,a=bk(i);if(99===(e??t)&&3<=a&&a<=99)return MR(i,o.fileName)?[3,2]:[2];if(1===bk(i))return 2===n?[2,1]:[1,2];const l=MR(i,o.fileName);switch(n){case 2:return l?[2,3,0,1]:[2,0,1];case 3:return[3,0,2,1];case 1:return l?[1,0,3,2]:[1,0,2];case 0:return l?[0,1,3,2]:[0,1,2];default:un.assertNever(n)}}};function c(e){if(void 0!==a){if(OS(a))return 2;if(Mt(a,"/index"))return 1}return RS(t,e??LB(o,r,i),i,Dm(o)?o:void 0)}}function aB(e,t,n,r,i,o,a={}){const s=lB(e,t,n,r,i,oB({},i,e,t,o),{},a);if(s!==o)return s}function sB(e,t,n,r,i,o={}){return lB(e,t,n,r,i,oB({},i,e,t),{},o)}function cB(e,t,n,r,i,o={}){const a=gB(t.fileName,r);return f(kB(a,n,r,i,e,o),n=>NB(n,a,t,r,e,i,!0,o.overrideImportMode))}function lB(e,t,n,r,i,o,a,s={}){const c=gB(n,i);return f(kB(c,r,i,a,e,s),n=>NB(n,c,t,i,e,a,void 0,s.overrideImportMode))||hB(r,c,e,i,s.overrideImportMode||LB(t,i,e),o)}function _B(e,t,n,r,i={}){const o=uB(e,t,n,r,i);return o[1]&&{kind:o[0],moduleSpecifiers:o[1],computedWithoutCache:!1}}function uB(e,t,n,r,i={}){var o;const a=bd(e);if(!a)return l;const s=null==(o=n.getModuleSpecifierCache)?void 0:o.call(n),c=null==s?void 0:s.get(t.path,a.path,r,i);return[null==c?void 0:c.kind,null==c?void 0:c.moduleSpecifiers,a,null==c?void 0:c.modulePaths,s]}function dB(e,t,n,r,i,o,a={}){return pB(e,t,n,r,i,o,a,!1).moduleSpecifiers}function pB(e,t,n,r,i,o,a={},s){let c=!1;const _=function(e,t){var n;const r=null==(n=e.declarations)?void 0:n.find(e=>_p(e)&&(!fp(e)||!Cs(qh(e.name))));if(r)return r.name.text;const i=B(e.declarations,e=>{var n,r,i,o;if(!gE(e))return;const a=function(e){for(;8&e.flags;)e=e.parent;return e}(e);if(!((null==(n=null==a?void 0:a.parent)?void 0:n.parent)&&hE(a.parent)&&cp(a.parent.parent)&&sP(a.parent.parent.parent)))return;const s=null==(o=null==(i=null==(r=a.parent.parent.symbol.exports)?void 0:r.get("export="))?void 0:i.valueDeclaration)?void 0:o.expression;if(!s)return;const c=t.getSymbolAtLocation(s);if(c&&(2097152&(null==c?void 0:c.flags)?t.getAliasedSymbol(c):c)===e.symbol)return a.parent.parent})[0];return i?i.name.text:void 0}(e,t);if(_)return{kind:"ambient",moduleSpecifiers:s&&mB(_,o.autoImportSpecifierExcludeRegexes)?l:[_],computedWithoutCache:c};let[u,p,f,m,g]=uB(e,r,i,o,a);if(p)return{kind:u,moduleSpecifiers:p,computedWithoutCache:c};if(!f)return{kind:void 0,moduleSpecifiers:l,computedWithoutCache:c};c=!0,m||(m=TB(gB(r.fileName,i),f.originalFileName,i,n,a));const h=function(e,t,n,r,i,o={},a){const s=gB(n.fileName,r),c=oB(i,r,t,n),_=Dm(n)&&d(e,e=>d(r.getFileIncludeReasons().get(Uo(e.path,r.getCurrentDirectory(),s.getCanonicalFileName)),e=>{if(3!==e.kind||e.file!==n.path)return;const t=r.getModeForResolutionAtIndex(n,e.index),i=o.overrideImportMode??r.getDefaultResolutionModeForFile(n);if(t!==i&&void 0!==t&&void 0!==i)return;const a=HV(n,e.index).text;return 1===c.relativePreference&&vo(a)?void 0:a}));if(_)return{kind:void 0,moduleSpecifiers:[_],computedWithoutCache:!0};const u=$(e,e=>e.isInNodeModules);let p,f,m,g;for(const l of e){const e=l.isInNodeModules?NB(l,s,n,r,t,i,void 0,o.overrideImportMode):void 0;if(e&&(!a||!mB(e,c.excludeRegexes))&&(p=ie(p,e),l.isRedirect))return{kind:"node_modules",moduleSpecifiers:p,computedWithoutCache:!0};const _=hB(l.path,s,t,r,o.overrideImportMode||n.impliedNodeFormat,c,l.isRedirect||!!e);!_||a&&mB(_,c.excludeRegexes)||(l.isRedirect?m=ie(m,_):bo(_)?GM(_)?g=ie(g,_):f=ie(f,_):(a||!u||l.isInNodeModules)&&(g=ie(g,_)))}return(null==f?void 0:f.length)?{kind:"paths",moduleSpecifiers:f,computedWithoutCache:!0}:(null==m?void 0:m.length)?{kind:"redirect",moduleSpecifiers:m,computedWithoutCache:!0}:(null==p?void 0:p.length)?{kind:"node_modules",moduleSpecifiers:p,computedWithoutCache:!0}:{kind:"relative",moduleSpecifiers:g??l,computedWithoutCache:!0}}(m,n,r,i,o,a,s);return null==g||g.set(r.path,f.path,o,a,h.kind,m,h.moduleSpecifiers),h}function fB(e,t,n,r,i,o={}){return hB(t,gB(e.fileName,r),n,r,o.overrideImportMode??e.impliedNodeFormat,oB(i,r,n,e))}function mB(e,t){return $(t,t=>{var n;return!!(null==(n=rB(t))?void 0:n.test(e))})}function gB(e,t){e=Bo(e,t.getCurrentDirectory());const n=Wt(!t.useCaseSensitiveFileNames||t.useCaseSensitiveFileNames()),r=Do(e);return{getCanonicalFileName:n,importingSourceFileName:e,sourceDirectory:r,canonicalSourceDirectory:n(r)}}function hB(e,t,n,r,i,{getAllowedEndingsInPreferredOrder:o,relativePreference:a,excludeRegexes:s},c){const{baseUrl:l,paths:_,rootDirs:u}=n;if(c&&!_)return;const{sourceDirectory:p,canonicalSourceDirectory:f,getCanonicalFileName:m}=t,g=o(i),h=u&&function(e,t,n,r,i,o){const a=DB(t,e,r);if(void 0===a)return;const s=kt(O(DB(n,e,r),e=>E(a,t=>$o(ra(e,t,r)))),zS);return s?FB(s,i,o):void 0}(u,e,p,m,g,n)||FB($o(ra(p,e,m)),g,n);if(!l&&!_&&!wk(n)||0===a)return c?void 0:h;const y=Bo(Ky(n,r)||l,r.getCurrentDirectory()),v=IB(e,y,m);if(!v)return c?void 0:h;const b=c?void 0:function(e,t,n,r,i,o){var a,s,c;if(!r.readFile||!wk(n))return;const l=bB(r,t);if(!l)return;const _=jo(l,"package.json"),u=null==(s=null==(a=r.getPackageJsonInfoCache)?void 0:a.call(r))?void 0:s.getPackageJsonInfo(_);if(kM(u)||!r.fileExists(_))return;const p=(null==u?void 0:u.contents.packageJsonContent)||Nb(r.readFile(_)),f=null==p?void 0:p.imports;if(!f)return;const m=yM(n,i);return null==(c=d(Ee(f),t=>{if(!Gt(t,"#")||"#"===t||Gt(t,"#/"))return;const i=Mt(t,"/")?1:t.includes("*")?2:0;return wB(n,r,e,l,t,f[t],m,i,!0,o)}))?void 0:c.moduleFileToTry}(e,p,n,r,i,function(e){const t=e.indexOf(3);return t>-1&&te.fileExists(jo(t,"package.json"))?t:void 0)}function xB(e,t,n,r,i){var o,a;const s=My(n),c=n.getCurrentDirectory(),_=n.isSourceOfProjectReferenceRedirect(t)?null==(o=n.getRedirectFromSourceFile(t))?void 0:o.outputDts:void 0,u=Uo(t,c,s),p=n.redirectTargetsMap.get(u)||l,f=[..._?[_]:l,t,...p].map(e=>Bo(e,c));let m=!v(f,IT);if(!r){const e=d(f,e=>!(m&&IT(e))&&i(e,_===e));if(e)return e}const g=null==(a=n.getSymlinkCache)?void 0:a.call(n).getSymlinkedDirectoriesByRealpath(),h=Bo(t,c);return g&&TR(n,Do(h),t=>{const n=g.get(Wo(Uo(t,c,s)));if(n)return!ta(e,t,s)&&d(f,e=>{if(!ta(e,t,s))return;const r=ra(t,e,s);for(const t of n){const n=Mo(t,r),o=i(n,e===_);if(m=!0,o)return o}})})||(r?d(f,e=>m&&IT(e)?void 0:i(e,e===_)):void 0)}function kB(e,t,n,r,i,o={}){var a;const s=Uo(e.importingSourceFileName,n.getCurrentDirectory(),My(n)),c=Uo(t,n.getCurrentDirectory(),My(n)),l=null==(a=n.getModuleSpecifierCache)?void 0:a.call(n);if(l){const e=l.get(s,c,r,o);if(null==e?void 0:e.modulePaths)return e.modulePaths}const _=TB(e,t,n,i,o);return l&&l.setModulePaths(s,c,r,o,_),_}var SB=["dependencies","peerDependencies","optionalDependencies"];function TB(e,t,n,r,i){var o,a;const s=null==(o=n.getModuleResolutionCache)?void 0:o.call(n),c=null==(a=n.getSymlinkCache)?void 0:a.call(n);if(s&&c&&n.readFile&&!GM(e.importingSourceFileName)){un.type(n);const t=cR(s.getPackageJsonInfoCache(),n,{}),o=lR(Do(e.importingSourceFileName),t);if(o){const e=function(e){let t;for(const n of SB){const r=e[n];r&&"object"==typeof r&&(t=K(t,Ee(r)))}return t}(o.contents.packageJsonContent);for(const t of e||l){const e=MM(t,jo(o.packageDirectory,"package.json"),r,n,s,void 0,i.overrideImportMode);c.setSymlinksFromResolution(e.resolvedModule)}}}const _=new Map;let u=!1;xB(e.importingSourceFileName,t,n,!0,(t,n)=>{const r=GM(t);_.set(t,{path:e.getCanonicalFileName(t),isRedirect:n,isInNodeModules:r}),u=u||r});const d=[];for(let t=e.canonicalSourceDirectory;0!==_.size;){const e=Wo(t);let n;_.forEach(({path:t,isRedirect:r,isInNodeModules:i},o)=>{Gt(t,e)&&((n||(n=[])).push({path:o,isRedirect:r,isInNodeModules:i}),_.delete(o))}),n&&(n.length>1&&n.sort(vB),d.push(...n));const r=Do(t);if(r===t)break;t=r}if(_.size){const e=Oe(_.entries(),([e,{isRedirect:t,isInNodeModules:n}])=>({path:e,isRedirect:t,isInNodeModules:n}));e.length>1&&e.sort(vB),d.push(...e)}return d}function CB(e,t,n,r,i,o,a){for(const o in t)for(const c of t[o]){const t=Jo(c),l=IB(t,r,i)??t,_=l.indexOf("*"),u=n.map(t=>({ending:t,value:FB(e,[t],a)}));if(tT(l)&&u.push({ending:void 0,value:e}),-1!==_){const e=l.substring(0,_),t=l.substring(_+1);for(const{ending:n,value:r}of u)if(r.length>=e.length+t.length&&Gt(r,e)&&Mt(r,t)&&s({ending:n,value:r})){const n=r.substring(e.length,r.length-t.length);if(!vo(n))return dC(o,n)}}else if($(u,e=>0!==e.ending&&l===e.value)||$(u,e=>0===e.ending&&l===e.value&&s(e)))return o}function s({ending:t,value:n}){return 0!==t||n===FB(e,[t],a,o)}}function wB(e,t,n,r,i,o,a,s,c,l){if("string"==typeof o){const a=!jy(t),_=()=>t.getCommonSourceDirectory(),u=c&&iU(n,e,a,_),d=c&&nU(n,e,a,_),p=Bo(jo(r,o),void 0),f=LS(n)?US(n)+AB(n,e):void 0,m=l&&jS(n);switch(s){case 0:if(f&&0===Zo(f,p,a)||0===Zo(n,p,a)||u&&0===Zo(u,p,a)||d&&0===Zo(d,p,a))return{moduleFileToTry:i};break;case 1:if(m&&ea(n,p,a)){const e=ra(p,n,!1);return{moduleFileToTry:Bo(jo(jo(i,o),e),void 0)}}if(f&&ea(p,f,a)){const e=ra(p,f,!1);return{moduleFileToTry:Bo(jo(jo(i,o),e),void 0)}}if(!m&&ea(p,n,a)){const e=ra(p,n,!1);return{moduleFileToTry:Bo(jo(jo(i,o),e),void 0)}}if(u&&ea(p,u,a)){const e=ra(p,u,!1);return{moduleFileToTry:jo(i,e)}}if(d&&ea(p,d,a)){const t=Ko(ra(p,d,!1),PB(d,e));return{moduleFileToTry:jo(i,t)}}break;case 2:const t=p.indexOf("*"),r=p.slice(0,t),s=p.slice(t+1);if(m&&Gt(n,r,a)&&Mt(n,s,a)){const e=n.slice(r.length,n.length-s.length);return{moduleFileToTry:dC(i,e)}}if(f&&Gt(f,r,a)&&Mt(f,s,a)){const e=f.slice(r.length,f.length-s.length);return{moduleFileToTry:dC(i,e)}}if(!m&&Gt(n,r,a)&&Mt(n,s,a)){const e=n.slice(r.length,n.length-s.length);return{moduleFileToTry:dC(i,e)}}if(u&&Gt(u,r,a)&&Mt(u,s,a)){const e=u.slice(r.length,u.length-s.length);return{moduleFileToTry:dC(i,e)}}if(d&&Gt(d,r,a)&&Mt(d,s,a)){const t=d.slice(r.length,d.length-s.length),n=dC(i,t),o=AB(d,e);return o?{moduleFileToTry:Ko(n,o)}:void 0}}}else{if(Array.isArray(o))return d(o,o=>wB(e,t,n,r,i,o,a,s,c,l));if("object"==typeof o&&null!==o)for(const _ of Ee(o))if("default"===_||a.indexOf(_)>=0||xR(a,_)){const u=o[_],d=wB(e,t,n,r,i,u,a,s,c,l);if(d)return d}}}function NB({path:e,isRedirect:t},{getCanonicalFileName:n,canonicalSourceDirectory:r},i,o,a,s,c,l){if(!o.fileExists||!o.readFile)return;const _=UT(e);if(!_)return;const u=oB(s,o,a,i).getAllowedEndingsInPreferredOrder();let p=e,f=!1;if(!c){let t,n=_.packageRootIndex;for(;;){const{moduleFileToTry:r,packageRootPath:i,blockedByExports:s,verbatimFromExports:c}=v(n);if(1!==bk(a)){if(s)return;if(c)return r}if(i){p=i,f=!0;break}if(t||(t=r),n=e.indexOf(lo,n+1),-1===n){p=FB(t,u,a,o);break}}}if(t&&!f)return;const m=o.getGlobalTypingsCacheLocation&&o.getGlobalTypingsCacheLocation(),g=n(p.substring(0,_.topLevelNodeModulesIndex));if(!(Gt(r,g)||m&&Gt(n(m),g)))return;const h=p.substring(_.topLevelPackageNameIndex+1),y=AR(h);return 1===bk(a)&&y===h?void 0:y;function v(t){var r,s;const c=e.substring(0,t),p=jo(c,"package.json");let f=e,m=!1;const g=null==(s=null==(r=o.getPackageJsonInfoCache)?void 0:r.call(o))?void 0:s.getPackageJsonInfo(p);if(xM(g)||void 0===g&&o.fileExists(p)){const t=(null==g?void 0:g.contents.packageJsonContent)||Nb(o.readFile(p)),r=l||LB(i,o,a);if(Ck(a)){const n=AR(c.substring(_.topLevelPackageNameIndex+1)),i=yM(a,r),s=(null==t?void 0:t.exports)?function(e,t,n,r,i,o,a){return"object"==typeof o&&null!==o&&!Array.isArray(o)&&gR(o)?d(Ee(o),s=>{const c=Bo(jo(i,s),void 0),l=Mt(s,"/")?1:s.includes("*")?2:0;return wB(e,t,n,r,c,o[s],a,l,!1,!1)}):wB(e,t,n,r,i,o,a,0,!1,!1)}(a,o,e,c,n,t.exports,i):void 0;if(s)return{...s,verbatimFromExports:!0};if(null==t?void 0:t.exports)return{moduleFileToTry:e,blockedByExports:!0}}const s=(null==t?void 0:t.typesVersions)?_M(t.typesVersions):void 0;if(s){const t=CB(e.slice(c.length+1),s.paths,u,c,n,o,a);void 0===t?m=!0:f=jo(c,t)}const h=(null==t?void 0:t.typings)||(null==t?void 0:t.types)||(null==t?void 0:t.main)||"index.js";if(Ze(h)&&(!m||!iT(GS(s.paths),h))){const e=Uo(h,c,n),r=n(f);if(US(e)===US(r))return{packageRootPath:c,moduleFileToTry:f};if("module"!==(null==t?void 0:t.type)&&!So(r,PS)&&Gt(r,e)&&Do(r)===Vo(e)&&"index"===US(Fo(r)))return{packageRootPath:c,moduleFileToTry:f}}}else{const e=n(f.substring(_.packageRootIndex+1));if("index.d.ts"===e||"index.js"===e||"index.ts"===e||"index.tsx"===e)return{moduleFileToTry:f,packageRootPath:c}}return{moduleFileToTry:f}}}function DB(e,t,n){return B(t,t=>{const r=IB(e,t,n);return void 0!==r&&OB(r)?void 0:r})}function FB(e,t,n,r){if(So(e,[".json",".mjs",".cjs"]))return e;const i=US(e);if(e===i)return e;const o=t.indexOf(2),a=t.indexOf(3);if(So(e,[".mts",".cts"])&&-1!==a&&a0===e||1===e);return-1!==r&&r(e[e.None=0]="None",e[e.TypeofEQString=1]="TypeofEQString",e[e.TypeofEQNumber=2]="TypeofEQNumber",e[e.TypeofEQBigInt=4]="TypeofEQBigInt",e[e.TypeofEQBoolean=8]="TypeofEQBoolean",e[e.TypeofEQSymbol=16]="TypeofEQSymbol",e[e.TypeofEQObject=32]="TypeofEQObject",e[e.TypeofEQFunction=64]="TypeofEQFunction",e[e.TypeofEQHostObject=128]="TypeofEQHostObject",e[e.TypeofNEString=256]="TypeofNEString",e[e.TypeofNENumber=512]="TypeofNENumber",e[e.TypeofNEBigInt=1024]="TypeofNEBigInt",e[e.TypeofNEBoolean=2048]="TypeofNEBoolean",e[e.TypeofNESymbol=4096]="TypeofNESymbol",e[e.TypeofNEObject=8192]="TypeofNEObject",e[e.TypeofNEFunction=16384]="TypeofNEFunction",e[e.TypeofNEHostObject=32768]="TypeofNEHostObject",e[e.EQUndefined=65536]="EQUndefined",e[e.EQNull=131072]="EQNull",e[e.EQUndefinedOrNull=262144]="EQUndefinedOrNull",e[e.NEUndefined=524288]="NEUndefined",e[e.NENull=1048576]="NENull",e[e.NEUndefinedOrNull=2097152]="NEUndefinedOrNull",e[e.Truthy=4194304]="Truthy",e[e.Falsy=8388608]="Falsy",e[e.IsUndefined=16777216]="IsUndefined",e[e.IsNull=33554432]="IsNull",e[e.IsUndefinedOrNull=50331648]="IsUndefinedOrNull",e[e.All=134217727]="All",e[e.BaseStringStrictFacts=3735041]="BaseStringStrictFacts",e[e.BaseStringFacts=12582401]="BaseStringFacts",e[e.StringStrictFacts=16317953]="StringStrictFacts",e[e.StringFacts=16776705]="StringFacts",e[e.EmptyStringStrictFacts=12123649]="EmptyStringStrictFacts",e[e.EmptyStringFacts=12582401]="EmptyStringFacts",e[e.NonEmptyStringStrictFacts=7929345]="NonEmptyStringStrictFacts",e[e.NonEmptyStringFacts=16776705]="NonEmptyStringFacts",e[e.BaseNumberStrictFacts=3734786]="BaseNumberStrictFacts",e[e.BaseNumberFacts=12582146]="BaseNumberFacts",e[e.NumberStrictFacts=16317698]="NumberStrictFacts",e[e.NumberFacts=16776450]="NumberFacts",e[e.ZeroNumberStrictFacts=12123394]="ZeroNumberStrictFacts",e[e.ZeroNumberFacts=12582146]="ZeroNumberFacts",e[e.NonZeroNumberStrictFacts=7929090]="NonZeroNumberStrictFacts",e[e.NonZeroNumberFacts=16776450]="NonZeroNumberFacts",e[e.BaseBigIntStrictFacts=3734276]="BaseBigIntStrictFacts",e[e.BaseBigIntFacts=12581636]="BaseBigIntFacts",e[e.BigIntStrictFacts=16317188]="BigIntStrictFacts",e[e.BigIntFacts=16775940]="BigIntFacts",e[e.ZeroBigIntStrictFacts=12122884]="ZeroBigIntStrictFacts",e[e.ZeroBigIntFacts=12581636]="ZeroBigIntFacts",e[e.NonZeroBigIntStrictFacts=7928580]="NonZeroBigIntStrictFacts",e[e.NonZeroBigIntFacts=16775940]="NonZeroBigIntFacts",e[e.BaseBooleanStrictFacts=3733256]="BaseBooleanStrictFacts",e[e.BaseBooleanFacts=12580616]="BaseBooleanFacts",e[e.BooleanStrictFacts=16316168]="BooleanStrictFacts",e[e.BooleanFacts=16774920]="BooleanFacts",e[e.FalseStrictFacts=12121864]="FalseStrictFacts",e[e.FalseFacts=12580616]="FalseFacts",e[e.TrueStrictFacts=7927560]="TrueStrictFacts",e[e.TrueFacts=16774920]="TrueFacts",e[e.SymbolStrictFacts=7925520]="SymbolStrictFacts",e[e.SymbolFacts=16772880]="SymbolFacts",e[e.ObjectStrictFacts=7888800]="ObjectStrictFacts",e[e.ObjectFacts=16736160]="ObjectFacts",e[e.FunctionStrictFacts=7880640]="FunctionStrictFacts",e[e.FunctionFacts=16728e3]="FunctionFacts",e[e.VoidFacts=9830144]="VoidFacts",e[e.UndefinedFacts=26607360]="UndefinedFacts",e[e.NullFacts=42917664]="NullFacts",e[e.EmptyObjectStrictFacts=83427327]="EmptyObjectStrictFacts",e[e.EmptyObjectFacts=83886079]="EmptyObjectFacts",e[e.UnknownFacts=83886079]="UnknownFacts",e[e.AllTypeofNE=556800]="AllTypeofNE",e[e.OrFactsMask=8256]="OrFactsMask",e[e.AndFactsMask=134209471]="AndFactsMask",e))(WB||{}),$B=new Map(Object.entries({string:256,number:512,bigint:1024,boolean:2048,symbol:4096,undefined:524288,object:8192,function:16384})),HB=(e=>(e[e.Normal=0]="Normal",e[e.Contextual=1]="Contextual",e[e.Inferential=2]="Inferential",e[e.SkipContextSensitive=4]="SkipContextSensitive",e[e.SkipGenericFunctions=8]="SkipGenericFunctions",e[e.IsForSignatureHelp=16]="IsForSignatureHelp",e[e.RestBindingElement=32]="RestBindingElement",e[e.TypeOnly=64]="TypeOnly",e))(HB||{}),KB=(e=>(e[e.None=0]="None",e[e.BivariantCallback=1]="BivariantCallback",e[e.StrictCallback=2]="StrictCallback",e[e.IgnoreReturnTypes=4]="IgnoreReturnTypes",e[e.StrictArity=8]="StrictArity",e[e.StrictTopSignature=16]="StrictTopSignature",e[e.Callback=3]="Callback",e))(KB||{}),GB=Zt(rJ,function(e){return!d_(e)}),XB=new Map(Object.entries({Uppercase:0,Lowercase:1,Capitalize:2,Uncapitalize:3,NoInfer:4})),QB=class{};function YB(){this.flags=0}function ZB(e){return e.id||(e.id=qB,qB++),e.id}function eJ(e){return e.id||(e.id=zB,zB++),e.id}function tJ(e,t){const n=UR(e);return 1===n||t&&2===n}function nJ(e){var t,n,r,i,o=[],a=e=>{o.push(e)},s=Mx.getSymbolConstructor(),c=Mx.getTypeConstructor(),_=Mx.getSignatureConstructor(),p=0,m=0,g=0,h=0,y=0,C=0,D=!1,P=Gu(),L=[1],j=e.getCompilerOptions(),M=yk(j),R=vk(j),J=!!j.experimentalDecorators,U=Ik(j),V=qk(j),W=Tk(j),H=Jk(j,"strictNullChecks"),G=Jk(j,"strictFunctionTypes"),Y=Jk(j,"strictBindCallApply"),Z=Jk(j,"strictPropertyInitialization"),ee=Jk(j,"strictBuiltinIteratorReturn"),ne=Jk(j,"noImplicitAny"),oe=Jk(j,"noImplicitThis"),ae=Jk(j,"useUnknownInCatchVariables"),_e=j.exactOptionalPropertyTypes,ue=!!j.noUncheckedSideEffectImports,pe=function(){const e=cI(function(e,t,r){return t?(t.stackIndex++,t.skip=!1,n(t,void 0),i(t,void 0)):t={checkMode:r,skip:!1,stackIndex:0,typeStack:[void 0,void 0]},Em(e)&&$m(e)?(t.skip=!0,i(t,eM(e.right,r)),t):(function(e){if(61===e.operatorToken.kind){if(NF(e.parent)){const{left:t,operatorToken:n}=e.parent;NF(t)&&57===n.kind&&kz(t,_a._0_and_1_operations_cannot_be_mixed_without_parentheses,Fa(61),Fa(n.kind))}else if(NF(e.left)){const{operatorToken:t}=e.left;57!==t.kind&&56!==t.kind||kz(e.left,_a._0_and_1_operations_cannot_be_mixed_without_parentheses,Fa(t.kind),Fa(61))}else if(NF(e.right)){const{operatorToken:t}=e.right;56===t.kind&&kz(e.right,_a._0_and_1_operations_cannot_be_mixed_without_parentheses,Fa(61),Fa(t.kind))}(function(e){const t=NA(e.left,63),n=Nj(t);3!==n&&zo(t,1===n?_a.This_expression_is_always_nullish:_a.Right_operand_of_is_unreachable_because_the_left_operand_is_never_nullish)})(e),function(e){const t=NA(e.right,63),n=Nj(t);(function(e){return!NF(e.parent)||61!==e.parent.operatorToken.kind})(e)||(1===n?zo(t,_a.This_expression_is_always_nullish):2===n&&zo(t,_a.This_expression_is_never_nullish))}(e)}}(e),64!==e.operatorToken.kind||211!==e.left.kind&&210!==e.left.kind||(t.skip=!0,i(t,Tj(e.left,eM(e.right,r),r,110===e.right.kind))),t)},function(e,n,r){if(!n.skip)return t(n,e)},function(e,t,o){if(!t.skip){const a=r(t);un.assertIsDefined(a),n(t,a),i(t,void 0);const s=e.kind;if(Yv(s)){let e=o.parent;for(;218===e.kind||Zv(e);)e=e.parent;(56===s||KF(e))&&yR(o.left,a,KF(e)?e.thenStatement:void 0),Kv(s)&&vR(a,o.left)}}},function(e,n,r){if(!n.skip)return t(n,e)},function(e,t){let o;if(t.skip)o=r(t);else{const n=function(e){return e.typeStack[e.stackIndex]}(t);un.assertIsDefined(n);const i=r(t);un.assertIsDefined(i),o=Dj(e.left,e.operatorToken,e.right,n,i,t.checkMode,e)}return t.skip=!1,n(t,void 0),i(t,void 0),t.stackIndex--,o},function(e,t,n){return i(e,t),e});return(t,n)=>{const r=e(t,n);return un.assertIsDefined(r),r};function t(e,t){if(NF(t))return t;i(e,eM(t,e.checkMode))}function n(e,t){e.typeStack[e.stackIndex]=t}function r(e){return e.typeStack[e.stackIndex+1]}function i(e,t){e.typeStack[e.stackIndex+1]=t}}(),be={getReferencedExportContainer:function(e,t){var n;const r=pc(e,aD);if(r){let e=qJ(r,function(e){return ou(e.parent)&&e===e.parent.name}(r));if(e){if(1048576&e.flags){const n=xs(e.exportSymbol);if(!t&&944&n.flags&&!(3&n.flags))return;e=n}const i=Ts(e);if(i){if(512&i.flags&&308===(null==(n=i.valueDeclaration)?void 0:n.kind)){const e=i.valueDeclaration;return e!==vd(r)?void 0:e}return uc(r.parent,e=>ou(e)&&ks(e)===i)}}}},getReferencedImportDeclaration:function(e){const t=rN(e);if(t)return t;const n=pc(e,aD);if(n){const e=function(e){const t=da(e).resolvedSymbol;return t&&t!==xt?t:Ue(e,e.escapedText,3257279,void 0,!0,void 0)}(n);if(Wa(e,111551)&&!Ya(e,111551))return Ca(e)}},getReferencedDeclarationWithCollidingName:function(e){if(!Wl(e)){const t=pc(e,aD);if(t){const e=qJ(t);if(e&&NJ(e))return e.valueDeclaration}}},isDeclarationWithCollidingName:function(e){const t=pc(e,_u);if(t){const e=ks(t);if(e)return NJ(e)}return!1},isValueAliasDeclaration:e=>{const t=pc(e);return!t||!Re||DJ(t)},hasGlobalName:function(e){return Ne.has(fc(e))},isReferencedAliasDeclaration:(e,t)=>{const n=pc(e);return!n||!Re||PJ(n,t)},hasNodeCheckFlag:(e,t)=>{const n=pc(e);return!!n&&jJ(n,t)},isTopLevelValueImportEqualsWithEntityName:function(e){const t=pc(e,bE);return!(void 0===t||308!==t.parent.kind||!Nm(t))&&(FJ(ks(t))&&t.moduleReference&&!Nd(t.moduleReference))},isDeclarationVisible:Vc,isImplementationOfOverload:AJ,requiresAddingImplicitUndefined:IJ,isExpandoFunctionDeclaration:OJ,getPropertiesOfContainerFunction:function(e){const t=pc(e,uE);if(!t)return l;const n=ks(t);return n&&Up(P_(n))||l},createTypeOfDeclaration:function(e,t,n,r,i){const o=pc(e,kC);if(!o)return mw.createToken(133);const a=ks(o);return xe.serializeTypeForDeclaration(o,a,t,1024|n,r,i)},createReturnTypeOfSignatureDeclaration:function(e,t,n,r,i){const o=pc(e,r_);return o?xe.serializeReturnTypeForSignature(o,t,1024|n,r,i):mw.createToken(133)},createTypeOfExpression:function(e,t,n,r,i){const o=pc(e,V_);return o?xe.serializeTypeForExpression(o,t,1024|n,r,i):mw.createToken(133)},createLiteralConstValue:function(e,t){return function(e,t,n){const r=1056&e.flags?xe.symbolToExpression(e.symbol,111551,t,void 0,void 0,n):e===Yt?mw.createTrue():e===Ht&&mw.createFalse();if(r)return r;const i=e.value;return"object"==typeof i?mw.createBigIntLiteral(i):"string"==typeof i?mw.createStringLiteral(i):i<0?mw.createPrefixUnaryExpression(41,mw.createNumericLiteral(-i)):mw.createNumericLiteral(i)}(P_(ks(e)),e,t)},isSymbolAccessible:tc,isEntityNameVisible:vc,getConstantValue:e=>{const t=pc(e,RJ);return t?BJ(t):void 0},getEnumMemberValue:e=>{const t=pc(e,aP);return t?MJ(t):void 0},collectLinkedAliases:Wc,markLinkedReferences:e=>{const t=pc(e);return t&&RE(t,0)},getReferencedValueDeclaration:function(e){if(!Wl(e)){const t=pc(e,aD);if(t){const e=qJ(t);if(e)return Os(e).valueDeclaration}}},getReferencedValueDeclarations:function(e){if(!Wl(e)){const t=pc(e,aD);if(t){const e=qJ(t);if(e)return N(Os(e).declarations,e=>{switch(e.kind){case 261:case 170:case 209:case 173:case 304:case 305:case 307:case 211:case 263:case 219:case 220:case 264:case 232:case 267:case 175:case 178:case 179:case 268:return!0}return!1})}}},getTypeReferenceSerializationKind:function(e,t){var n;const r=pc(e,e_);if(!r)return 0;if(t&&!(t=pc(t)))return 0;let i=!1;if(xD(r)){const e=ts(sb(r),111551,!0,!0,t);i=!!(null==(n=null==e?void 0:e.declarations)?void 0:n.every(zl))}const o=ts(r,111551,!0,!0,t),a=o&&2097152&o.flags?Ha(o):o;i||(i=!(!o||!Ya(o,111551)));const s=ts(r,788968,!0,!0,t),c=s&&2097152&s.flags?Ha(s):s;if(o||i||(i=!(!s||!Ya(s,788968))),a&&a===c){const e=nv(!1);if(e&&a===e)return 9;const t=P_(a);if(t&&tu(t))return i?10:1}if(!c)return i?11:0;const l=Au(c);return al(l)?i?11:0:3&l.flags?11:hj(l,245760)?2:hj(l,528)?6:hj(l,296)?3:hj(l,2112)?4:hj(l,402653316)?5:rw(l)?7:hj(l,12288)?8:JJ(l)?10:OC(l)?7:11},isOptionalParameter:vg,isArgumentsLocalBinding:function(e){if(Wl(e))return!1;const t=pc(e,aD);if(!t)return!1;const n=t.parent;return!!n&&(!((dF(n)||rP(n))&&n.name===t)&&qJ(t)===Le)},getExternalModuleFileFromDeclaration:e=>{const t=pc(e,Np);return t&&$J(t)},isLiteralConstDeclaration:function(e){return!!(nf(e)||lE(e)&&Az(e))&&pk(P_(ks(e)))},isLateBound:e=>{const t=pc(e,_u),n=t&&ks(t);return!!(n&&4096&rx(n))},getJsxFactoryEntity:UJ,getJsxFragmentFactoryEntity:VJ,isBindingCapturedByNode:(e,t)=>{const n=pc(e),r=pc(t);return!!n&&!!r&&(lE(r)||lF(r))&&function(e,t){const n=da(e);return!!n&&T(n.capturedBlockScopeBindings,ks(t))}(n,r)},getDeclarationStatementsForSourceFile:(e,t,n,r)=>{const i=pc(e);un.assert(i&&308===i.kind,"Non-sourcefile node passed into getDeclarationsForSourceFile");const o=ks(e);return o?(ss(o),o.exports?xe.symbolTableToDeclarationStatements(o.exports,e,t,n,r):[]):e.locals?xe.symbolTableToDeclarationStatements(e.locals,e,t,n,r):[]},isImportRequiredByAugmentation:function(e){const t=vd(e);if(!t.symbol)return!1;const n=$J(e);if(!n)return!1;if(n===t)return!1;const r=ys(t.symbol);for(const e of Oe(r.values()))if(e.mergeId){const t=xs(e);if(t.declarations)for(const e of t.declarations)if(vd(e)===n)return!0}return!1},isDefinitelyReferenceToGlobalSymbolObject:Io,createLateBoundIndexSignatures:(e,t,n,r,i)=>{const o=e.symbol,a=Jm(P_(o)),s=Fh(o),c=s&&Lh(s,Oe(Td(o).values()));let l;for(const e of[a,c])if(u(e)){l||(l=[]);for(const o of e){if(o.declaration)continue;if(o===di)continue;if(o.components&&v(o.components,e=>{var n;return!!(e.name&&kD(e.name)&&ab(e.name.expression)&&t&&0===(null==(n=vc(e.name.expression,t,!1))?void 0:n.accessibility))})){const s=N(o.components,e=>!_d(e));l.push(...E(s,s=>{_(s.name.expression);const c=e===a?[mw.createModifier(126)]:void 0;return mw.createPropertyDeclaration(ie(c,o.isReadonly?mw.createModifier(148):void 0),s.name,(wD(s)||ND(s)||DD(s)||FD(s)||Nu(s)||wu(s))&&s.questionToken?mw.createToken(58):void 0,xe.typeToTypeNode(P_(s.symbol),t,n,r,i),void 0)}));continue}const s=xe.indexInfoToIndexSignatureDeclaration(o,t,n,r,i);s&&e===a&&(s.modifiers||(s.modifiers=mw.createNodeArray())).unshift(mw.createModifier(126)),s&&l.push(s)}}return l;function _(e){if(!i.trackSymbol)return;const n=sb(e),r=Ue(n,n.escapedText,1160127,void 0,!0);r&&i.trackSymbol(r,t,111551)}},symbolToDeclarations:(e,t,n,r,i,o)=>xe.symbolToDeclarations(e,t,n,r,i,o)},xe=function(){return{syntacticBuilderResolver:{evaluateEntityNameExpression:vB,isExpandoFunctionDeclaration:OJ,hasLateBindableName:_d,shouldRemoveDeclaration:(e,t)=>!(8&e.internalFlags&&ab(t.name.expression)&&1&BA(t.name).flags),createRecoveryBoundary:e=>function(e){t&&t.throwIfCancellationRequested&&t.throwIfCancellationRequested();let n,r,i=!1;const o=e.tracker,a=e.trackedSymbols;e.trackedSymbols=void 0;const s=e.encounteredError;return e.tracker=new cJ(e,{...o.inner,reportCyclicStructureError(){c(()=>o.reportCyclicStructureError())},reportInaccessibleThisError(){c(()=>o.reportInaccessibleThisError())},reportInaccessibleUniqueSymbolError(){c(()=>o.reportInaccessibleUniqueSymbolError())},reportLikelyUnsafeImportRequiredError(e){c(()=>o.reportLikelyUnsafeImportRequiredError(e))},reportNonSerializableProperty(e){c(()=>o.reportNonSerializableProperty(e))},reportPrivateInBaseOfClassExpression(e){c(()=>o.reportPrivateInBaseOfClassExpression(e))},trackSymbol:(e,t,r)=>((n??(n=[])).push([e,t,r]),!1),moduleResolverHost:e.tracker.moduleResolverHost},e.tracker.moduleResolverHost),{startRecoveryScope:function(){const e=(null==n?void 0:n.length)??0,t=(null==r?void 0:r.length)??0;return()=>{i=!1,n&&(n.length=e),r&&(r.length=t)}},finalizeBoundary:function(){return e.tracker=o,e.trackedSymbols=a,e.encounteredError=s,null==r||r.forEach(e=>e()),!i&&(null==n||n.forEach(([t,n,r])=>e.tracker.trackSymbol(t,n,r)),!0)},markError:c,hadError:()=>i};function c(e){i=!0,e&&(r??(r=[])).push(e)}}(e),isDefinitelyReferenceToGlobalSymbolObject:Io,getAllAccessorDeclarations:zJ,requiresAddingImplicitUndefined(e,t,n){var r;switch(e.kind){case 173:case 172:case 349:t??(t=ks(e));const i=P_(t);return!!(4&t.flags&&16777216&t.flags&&XT(e)&&(null==(r=t.links)?void 0:r.mappedType)&&function(e){const t=1048576&e.flags?e.types[0]:e;return!!(32768&t.flags)&&t!==Rt}(i));case 170:case 342:return IJ(e,n);default:un.assertNever(e)}},isOptionalParameter:vg,isUndefinedIdentifierExpression:e=>yJ(e)===De,isEntityNameVisible:(e,t,n)=>vc(t,e.enclosingDeclaration,n),serializeExistingTypeNode:(e,t,r)=>function(e,t,r){const i=n(e,t);if(r&&!UD(i,e=>!!(32768&e.flags))&&Se(e,t)){const n=ke.tryReuseExistingTypeNode(e,t);if(n)return mw.createUnionTypeNode([n,mw.createKeywordTypeNode(157)])}return y(i,e)}(e,t,!!r),serializeReturnTypeForSignature(e,t,n){const r=e,i=Eg(t);n??(n=ks(t));const o=r.enclosingSymbolTypes.get(eJ(n))??fS(Gg(i),r.mapper);return be(r,i,o)},serializeTypeOfExpression(e,t){const n=e;return y(fS(jw(kJ(t)),n.mapper),n)},serializeTypeOfDeclaration(e,t,n){var r;const i=e;n??(n=ks(t));let o=null==(r=i.enclosingSymbolTypes)?void 0:r.get(eJ(n));return void 0===o&&(o=98304&n.flags&&179===t.kind?fS(E_(n),i.mapper):!n||133120&n.flags?Et:fS(ZC(P_(n)),i.mapper)),t&&(TD(t)||BP(t))&&IJ(t,i.enclosingDeclaration)&&(o=pw(o)),he(n,i,o)},serializeNameOfParameter:(e,t)=>V(ks(t),t,e),serializeEntityName(e,t){const n=e,r=yJ(t,!0);if(r&&Qs(r,n.enclosingDeclaration))return ce(r,n,1160127)},serializeTypeName:(e,t,n,r)=>function(e,t,n,r){const i=n?111551:788968,o=ts(t,i,!0);if(!o)return;const a=2097152&o.flags?Ha(o):o;return 0!==tc(o,e.enclosingDeclaration,i,!1).accessibility?void 0:re(a,e,i,r)}(e,t,n,r),getJsDocPropertyOverride(e,t,r){const i=e,o=aD(r.name)?r.name:r.name.right,a=el(n(i,t),o.escapedText);return a&&r.typeExpression&&n(i,r.typeExpression.type)!==a?y(a,i):void 0},enterNewScope(e,t){if(r_(t)||CP(t)){const n=Eg(t);return L(e,t,n.parameters,n.typeParameters)}return L(e,t,void 0,XD(t)?Vx(t):[Cu(ks(t.typeParameter))])},markNodeReuse:(e,t,n)=>r(e,t,n),trackExistingEntityName:(e,t)=>xe(t,e),trackComputedName(e,t){H(t,e.enclosingDeclaration,e)},getModuleSpecifierOverride(e,t,n){const r=e;if(r.bundled||r.enclosingFile!==vd(n)){let e=n.text;const i=e,o=da(t).resolvedSymbol,a=t.isTypeOf?111551:788968,s=o&&0===tc(o,r.enclosingDeclaration,a,!1).accessibility&&G(o,r,a,!0)[0];if(s&&Qu(s))e=te(s,r);else{const n=$J(t);n&&(e=te(n.symbol,r))}if(e.includes("/node_modules/")&&(r.encounteredError=!0,r.tracker.reportLikelyUnsafeImportRequiredError&&r.tracker.reportLikelyUnsafeImportRequiredError(e)),e!==i)return e}},canReuseTypeNode:(e,t)=>Se(e,t),canReuseTypeNodeAnnotation(e,t,n,r,i){var o;const a=e;if(void 0===a.enclosingDeclaration)return!1;r??(r=ks(t));let s=null==(o=a.enclosingSymbolTypes)?void 0:o.get(eJ(r));void 0===s&&(s=98304&r.flags?179===t.kind?E_(r):x_(r):eh(t)?Gg(Eg(t)):P_(r));let c=Oc(n);return!!al(c)||(i&&c&&(c=Pl(c,!TD(t))),!!c&&function(e,t,n){return n===t||!!e&&(((wD(e)||ND(e))&&e.questionToken||!(!TD(e)||!gg(e)))&&XN(t,524288)===n)}(t,s,c)&&me(n,s))}},typeToTypeNode:(e,t,n,r,i,o,a,c)=>s(t,n,r,i,o,a,t=>y(e,t),c),typePredicateToTypePredicateNode:(e,t,n,r,i)=>s(t,n,r,i,void 0,void 0,t=>z(e,t)),serializeTypeForDeclaration:(e,t,n,r,i,o)=>s(n,r,i,o,void 0,void 0,n=>ke.serializeTypeOfDeclaration(e,t,n)),serializeReturnTypeForSignature:(e,t,n,r,i)=>s(t,n,r,i,void 0,void 0,t=>ke.serializeReturnTypeForSignature(e,ks(e),t)),serializeTypeForExpression:(e,t,n,r,i)=>s(t,n,r,i,void 0,void 0,t=>ke.serializeTypeOfExpression(e,t)),indexInfoToIndexSignatureDeclaration:(e,t,n,r,i)=>s(t,n,r,i,void 0,void 0,t=>P(e,t,void 0)),signatureToSignatureDeclaration:(e,t,n,r,i,o,a,c,l)=>s(n,r,i,o,a,c,n=>I(e,t,n),l),symbolToEntityName:(e,t,n,r,i,o)=>s(n,r,i,o,void 0,void 0,n=>se(e,n,t,!1)),symbolToExpression:(e,t,n,r,i,o)=>s(n,r,i,o,void 0,void 0,n=>ce(e,n,t)),symbolToTypeParameterDeclarations:(e,t,n,r,i)=>s(t,n,r,i,void 0,void 0,t=>Y(e,t)),symbolToParameterDeclaration:(e,t,n,r,i)=>s(t,n,r,i,void 0,void 0,t=>U(e,t)),typeParameterToDeclaration:(e,t,n,r,i,o,a,c)=>s(t,n,r,i,o,a,t=>J(e,t),c),symbolTableToDeclarationStatements:(e,t,n,r,i)=>s(t,n,r,i,void 0,void 0,t=>Te(e,t)),symbolToNode:(e,t,n,r,i,a)=>s(n,r,i,a,void 0,void 0,n=>o(e,n,t)),symbolToDeclarations:function(e,t,n,r,i,o){return B(s(void 0,n,void 0,void 0,r,i,t=>function(e,t){const n=Au(e);t.typeStack.push(n.id),t.typeStack.push(-1);const r=Te(Gu([e]),t);return t.typeStack.pop(),t.typeStack.pop(),r}(e,t),o),n=>{switch(n.kind){case 264:return function(e,t){const n=N(t.declarations,u_),r=n&&n.length>0?n[0]:e,i=-161&Bv(r);return AF(r)&&(e=mw.updateClassDeclaration(e,e.modifiers,void 0,e.typeParameters,e.heritageClauses,e.members)),mw.replaceModifiers(e,i)}(n,e);case 267:return a(n,mE,e);case 265:return function(e,t,n){if(64&n)return a(e,pE,t)}(n,e,t);case 268:return a(n,gE,e);default:return}})}};function n(e,t,n){const r=Oc(t);if(!e.mapper)return r;const i=fS(r,e.mapper);return n&&i!==r?void 0:i}function r(e,t,n){if(ey(t)&&16&t.flags&&e.enclosingFile&&e.enclosingFile===vd(_c(t))||(t=mw.cloneNode(t)),t===n)return t;if(!n)return t;let r=t.original;for(;r&&r!==n;)r=r.original;return r||hw(t,n),e.enclosingFile&&e.enclosingFile===vd(_c(n))?xI(t,n):t}function o(e,t,n){if(1&t.internalFlags){if(e.valueDeclaration){const t=Cc(e.valueDeclaration);if(t&&kD(t))return t}const r=ua(e).nameType;if(r&&9216&r.flags)return t.enclosingDeclaration=r.symbol.valueDeclaration,mw.createComputedPropertyName(ce(r.symbol,t,n))}return ce(e,t,n)}function a(e,t,n){const r=N(n.declarations,t),i=-161&Bv(r&&r.length>0?r[0]:e);return mw.replaceModifiers(e,i)}function s(t,n,r,i,o,a,s,c){const l=(null==i?void 0:i.trackSymbol)?i.moduleResolverHost:4&(r||0)?function(e){return{getCommonSourceDirectory:e.getCommonSourceDirectory?()=>e.getCommonSourceDirectory():()=>"",getCurrentDirectory:()=>e.getCurrentDirectory(),getSymlinkCache:We(e,e.getSymlinkCache),getPackageJsonInfoCache:()=>{var t;return null==(t=e.getPackageJsonInfoCache)?void 0:t.call(e)},useCaseSensitiveFileNames:()=>e.useCaseSensitiveFileNames(),redirectTargetsMap:e.redirectTargetsMap,getRedirectFromSourceFile:t=>e.getRedirectFromSourceFile(t),isSourceOfProjectReferenceRedirect:t=>e.isSourceOfProjectReferenceRedirect(t),fileExists:t=>e.fileExists(t),getFileIncludeReasons:()=>e.getFileIncludeReasons(),readFile:e.readFile?t=>e.readFile(t):void 0,getDefaultResolutionModeForFile:t=>e.getDefaultResolutionModeForFile(t),getModeForResolutionAtIndex:(t,n)=>e.getModeForResolutionAtIndex(t,n),getGlobalTypingsCacheLocation:We(e,e.getGlobalTypingsCacheLocation)}}(e):void 0;n=n||0;const _=o||(1&n?Wu:Vu),u={enclosingDeclaration:t,enclosingFile:t&&vd(t),flags:n,internalFlags:r||0,tracker:void 0,maxTruncationLength:_,maxExpansionDepth:a??-1,encounteredError:!1,suppressReportInferenceFallback:!1,reportedDiagnostic:!1,visitedTypes:void 0,symbolDepth:void 0,inferTypeParameters:void 0,approximateLength:0,trackedSymbols:void 0,bundled:!!j.outFile&&!!t&&Zp(vd(t)),truncating:!1,usedSymbolNames:void 0,remappedSymbolNames:void 0,remappedSymbolReferences:void 0,reverseMappedStack:void 0,mustCreateTypeParameterSymbolList:!0,typeParameterSymbolList:void 0,mustCreateTypeParametersNamesLookups:!0,typeParameterNames:void 0,typeParameterNamesByText:void 0,typeParameterNamesByTextNextNameCount:void 0,enclosingSymbolTypes:new Map,mapper:void 0,depth:0,typeStack:[],out:{canIncreaseExpansionDepth:!1,truncated:!1}};u.tracker=new cJ(u,i,l);const d=s(u);return u.truncating&&1&u.flags&&u.tracker.reportTruncationError(),c&&(c.canIncreaseExpansionDepth=u.out.canIncreaseExpansionDepth,c.truncated=u.out.truncated),u.encounteredError?void 0:d}function c(e,t,n){const r=eJ(t),i=e.enclosingSymbolTypes.get(r);return e.enclosingSymbolTypes.set(r,n),function(){i?e.enclosingSymbolTypes.set(r,i):e.enclosingSymbolTypes.delete(r)}}function _(e){const t=e.flags,n=e.internalFlags,r=e.depth;return function(){e.flags=t,e.internalFlags=n,e.depth=r}}function p(e){return e.maxExpansionDepth>=0&&m(e)}function m(e){return e.truncating?e.truncating:e.truncating=e.approximateLength>e.maxTruncationLength}function g(e,t){for(let n=0;n0?1048576&e.flags?mw.createUnionTypeNode(n):mw.createIntersectionTypeNode(n):void(o.encounteredError||262144&o.flags||(o.encounteredError=!0))}if(48&f)return un.assert(!!(524288&e.flags)),S(e);if(4194304&e.flags){const t=e.type;o.approximateLength+=6;const n=y(t,o);return mw.createTypeOperatorNode(143,n)}if(134217728&e.flags){const t=e.texts,n=e.types,r=mw.createTemplateHead(t[0]),i=mw.createNodeArray(E(n,(e,r)=>mw.createTemplateLiteralTypeSpan(y(e,o),(rfunction(e){const t=y(e.checkType,o);if(o.approximateLength+=15,4&o.flags&&e.root.isDistributive&&!(262144&e.checkType.flags)){const r=zs(Xo(262144,"T")),i=ae(r,o),a=mw.createTypeReferenceNode(i);o.approximateLength+=37;const s=nS(e.root.checkType,r,e.mapper),c=o.inferTypeParameters;o.inferTypeParameters=e.root.inferTypeParameters;const l=y(fS(e.root.extendsType,s),o);o.inferTypeParameters=c;const _=g(fS(n(o,e.root.node.trueType),s)),u=g(fS(n(o,e.root.node.falseType),s));return mw.createConditionalTypeNode(t,mw.createInferTypeNode(mw.createTypeParameterDeclaration(void 0,mw.cloneNode(a.typeName))),mw.createConditionalTypeNode(mw.createTypeReferenceNode(mw.cloneNode(i)),y(e.checkType,o),mw.createConditionalTypeNode(a,l,_,u),mw.createKeywordTypeNode(146)),mw.createKeywordTypeNode(146))}const r=o.inferTypeParameters;o.inferTypeParameters=e.root.inferTypeParameters;const i=y(e.extendsType,o);o.inferTypeParameters=r;const a=g(qx(e)),s=g(Ux(e));return mw.createConditionalTypeNode(t,i,a,s)}(e));if(33554432&e.flags){const t=y(e.baseType,o),n=Sy(e)&&qy("NoInfer",!1);return n?re(n,o,788968,[t]):t}return un.fail("Should be unreachable.");function g(e){var t,n,r;return 1048576&e.flags?(null==(t=o.visitedTypes)?void 0:t.has(kb(e)))?(131072&o.flags||(o.encounteredError=!0,null==(r=null==(n=o.tracker)?void 0:n.reportCyclicStructureError)||r.call(n)),x(o)):D(e,e=>y(e,o)):y(e,o)}function b(e){return!!lS(e)}function k(e){return!!e.target&&b(e.target)&&!b(e)}function S(e,t=!1,r=!1){var i,a;const s=e.id,c=e.symbol;if(c){if(8388608&gx(e)){const t=e.node;if(zD(t)&&n(o,t)===e){const e=ke.tryReuseExistingTypeNode(o,t);if(e)return e}return(null==(i=o.visitedTypes)?void 0:i.has(s))?x(o):D(e,O)}const l=Ic(e)?788968:111551;if(sL(c.valueDeclaration))return re(c,o,l);if(!r&&(32&c.flags&&!t&&!C_(c)&&(!(c.valueDeclaration&&u_(c.valueDeclaration)&&2048&o.flags)||dE(c.valueDeclaration)&&0===tc(c,o.enclosingDeclaration,l,!1).accessibility)||896&c.flags||function(){var e;const t=!!(8192&c.flags)&&$(c.declarations,e=>Dv(e)&&!sd(Cc(e))),n=!!(16&c.flags)&&(c.parent||d(c.declarations,e=>308===e.parent.kind||269===e.parent.kind));if(t||n)return(!!(4096&o.flags)||(null==(e=o.visitedTypes)?void 0:e.has(s)))&&(!(8&o.flags)||Qs(c,o.enclosingDeclaration))}())){if(!h(e,o))return re(c,o,l);o.depth+=1}if(null==(a=o.visitedTypes)?void 0:a.has(s)){const t=function(e){if(e.symbol&&2048&e.symbol.flags&&e.symbol.declarations){const t=nh(e.symbol.declarations[0].parent);if(fE(t))return ks(t)}}(e);return t?re(t,o,788968):x(o)}return D(e,O)}return O(e)}function D(e,t){var n,i,a;const s=e.id,c=16&gx(e)&&e.symbol&&32&e.symbol.flags,l=4&gx(e)&&e.node?"N"+ZB(e.node):16777216&e.flags?"N"+ZB(e.root.node):e.symbol?(c?"+":"")+eJ(e.symbol):void 0;o.visitedTypes||(o.visitedTypes=new Set),l&&!o.symbolDepth&&(o.symbolDepth=new Map);const _=o.maxExpansionDepth>=0?void 0:o.enclosingDeclaration&&da(o.enclosingDeclaration),u=`${kb(e)}|${o.flags}|${o.internalFlags}`;_&&(_.serializedTypes||(_.serializedTypes=new Map));const d=null==(n=null==_?void 0:_.serializedTypes)?void 0:n.get(u);if(d)return null==(i=d.trackedSymbols)||i.forEach(([e,t,n])=>o.tracker.trackSymbol(e,t,n)),d.truncating&&(o.truncating=!0),o.approximateLength+=d.addedLength,function e(t){return ey(t)||pc(t)!==t?r(o,mw.cloneNode(vJ(t,e,void 0,y,e)),t):t}(d.node);let p;if(l){if(p=o.symbolDepth.get(l)||0,p>10)return x(o);o.symbolDepth.set(l,p+1)}o.visitedTypes.add(s);const f=o.trackedSymbols;o.trackedSymbols=void 0;const m=o.approximateLength,g=t(e),h=o.approximateLength-m;return o.reportedDiagnostic||o.encounteredError||null==(a=null==_?void 0:_.serializedTypes)||a.set(u,{node:g,truncating:o.truncating,addedLength:h,trackedSymbols:o.trackedSymbols}),o.visitedTypes.delete(s),l&&o.symbolDepth.set(l,p),o.trackedSymbols=f,g;function y(e,t,n,r,i){return e&&0===e.length?xI(mw.createNodeArray(void 0,e.hasTrailingComma),e):_J(e,t,n,r,i)}}function O(e){if(Sp(e)||e.containsError)return function(e){var t;un.assert(!!(524288&e.flags));const r=e.declaration.readonlyToken?mw.createToken(e.declaration.readonlyToken.kind):void 0,i=e.declaration.questionToken?mw.createToken(e.declaration.questionToken.kind):void 0;let a,s,c=_p(e);const l=rp(e),_=!yp(e)&&!(2&vp(e).flags)&&4&o.flags&&!(262144&ip(e).flags&&4194304&(null==(t=Hp(ip(e)))?void 0:t.flags));if(yp(e)){if(k(e)&&4&o.flags){const t=zs(Xo(262144,"T")),n=ae(t,o),r=e.target;s=mw.createTypeReferenceNode(n),c=fS(_p(r),$k([rp(r),vp(r)],[l,t]))}a=mw.createTypeOperatorNode(143,s||y(vp(e),o))}else if(_){const e=ae(zs(Xo(262144,"T")),o);s=mw.createTypeReferenceNode(e),a=s}else a=y(ip(e),o);const u=R(l,o,a),d=L(o,e.declaration,void 0,[Cu(ks(e.declaration.typeParameter))]),p=e.declaration.nameType?y(op(e),o):void 0,f=y(kw(c,!!(4&bp(e))),o);d();const m=mw.createMappedTypeNode(r,u,p,i,f,void 0);o.approximateLength+=10;const g=xw(m,1);if(k(e)&&4&o.flags){const t=fS(Hp(n(o,e.declaration.typeParameter.constraint.type))||Ot,e.mapper);return mw.createConditionalTypeNode(y(vp(e),o),mw.createInferTypeNode(mw.createTypeParameterDeclaration(void 0,mw.cloneNode(s.typeName),2&t.flags?void 0:y(t,o))),g,mw.createKeywordTypeNode(146))}return _?mw.createConditionalTypeNode(y(ip(e),o),mw.createInferTypeNode(mw.createTypeParameterDeclaration(void 0,mw.cloneNode(s.typeName),mw.createTypeOperatorNode(143,y(vp(e),o)))),g,mw.createKeywordTypeNode(146)):g}(e);const t=Cp(e);if(!t.properties.length&&!t.indexInfos.length){if(!t.callSignatures.length&&!t.constructSignatures.length)return o.approximateLength+=2,xw(mw.createTypeLiteralNode(void 0),1);if(1===t.callSignatures.length&&!t.constructSignatures.length)return I(t.callSignatures[0],185,o);if(1===t.constructSignatures.length&&!t.callSignatures.length)return I(t.constructSignatures[0],186,o)}const r=N(t.constructSignatures,e=>!!(4&e.flags));if($(r)){const e=E(r,Dh);return t.callSignatures.length+(t.constructSignatures.length-r.length)+t.indexInfos.length+(2048&o.flags?w(t.properties,e=>!(4194304&e.flags)):u(t.properties))&&e.push(function(e){if(0===e.constructSignatures.length)return e;if(e.objectTypeWithoutAbstractConstructSignatures)return e.objectTypeWithoutAbstractConstructSignatures;const t=N(e.constructSignatures,e=>!(4&e.flags));if(e.constructSignatures===t)return e;const n=$s(e.symbol,e.members,e.callSignatures,$(t)?t:l,e.indexInfos);return e.objectTypeWithoutAbstractConstructSignatures=n,n.objectTypeWithoutAbstractConstructSignatures=n,n}(t)),y(Bb(e),o)}const i=_(o);o.flags|=4194304;const a=function(e){if(m(o))return o.out.truncated=!0,1&o.flags?[Rw(mw.createNotEmittedTypeElement(),3,"elided")]:[mw.createPropertySignature(void 0,"...",void 0,void 0)];o.typeStack.push(-1);const t=[];for(const n of e.callSignatures)t.push(I(n,180,o));for(const n of e.constructSignatures)4&n.flags||t.push(I(n,181,o));for(const n of e.indexInfos)t.push(...J(n,o,1024&e.objectFlags?x(o):void 0));const n=e.properties;if(!n)return o.typeStack.pop(),t;let r=0;for(const e of n)if(!(Ce(o)&&4194304&e.flags)){if(r++,2048&o.flags){if(4194304&e.flags)continue;6&ix(e)&&o.tracker.reportPrivateInBaseOfClassExpression&&o.tracker.reportPrivateInBaseOfClassExpression(mc(e.escapedName))}if(m(o)&&r+20){let n=0;if(e.target.typeParameters&&(n=Math.min(e.target.typeParameters.length,t.length),(J_(e,dv(!1))||J_(e,pv(!1))||J_(e,rv(!1))||J_(e,av(!1)))&&(!e.node||!RD(e.node)||!e.node.typeArguments||e.node.typeArguments.length0;){const r=t[n-1],i=yf(e.target.typeParameters[n-1]);if(!i||!SS(r,i))break;n--}i=F(t.slice(a,n),o)}const s=_(o);o.flags|=16;const c=re(e.symbol,o,788968,i);return s(),r?M(r,c):c}}if(t=A(t,(t,n)=>kw(t,!!(2&e.target.elementFlags[n]))),t.length>0){const n=dy(e),r=F(t.slice(0,n),o);if(r){const{labeledElementDeclarations:t}=e.target;for(let n=0;n{var n;return!!(e.name&&kD(e.name)&&ab(e.name.expression)&&t.enclosingDeclaration&&0===(null==(n=vc(e.name.expression,t.enclosingDeclaration,!1))?void 0:n.accessibility))})?E(N(e.components,e=>!_d(e)),i=>(H(i.name.expression,t.enclosingDeclaration,t),r(t,mw.createPropertySignature(e.isReadonly?[mw.createModifier(148)]:void 0,i.name,(wD(i)||ND(i)||DD(i)||FD(i)||Nu(i)||wu(i))&&i.questionToken?mw.createToken(58):void 0,n||y(P_(i.symbol),t)),i))):[P(e,t,n)]}}(e,o);return e&&o.typeStack.pop(),a(),s}function x(e){return e.approximateLength+=3,1&e.flags?Lw(mw.createKeywordTypeNode(133),3,"elided"):mw.createTypeReferenceNode(mw.createIdentifier("..."),void 0)}function S(e,t){var n;return!!(8192&rx(e))&&(T(t.reverseMappedStack,e)||(null==(n=t.reverseMappedStack)?void 0:n[0])&&!(16&gx(ve(t.reverseMappedStack).links.propertyType))||function(){var n;if(((null==(n=t.reverseMappedStack)?void 0:n.length)??0)<3)return!1;for(let n=0;n<3;n++)if(t.reverseMappedStack[t.reverseMappedStack.length-1-n].links.mappedType.symbol!==e.links.mappedType.symbol)return!1;return!0}())}function C(e,t,n){var r;const i=!!(8192&rx(e)),o=S(e,t)?wt:M_(e),a=t.enclosingDeclaration;if(t.enclosingDeclaration=void 0,t.tracker.canTrackSymbol&&ld(e.escapedName))if(e.declarations){const n=ge(e.declarations);if(_d(n))if(NF(n)){const e=Cc(n);e&&pF(e)&&lb(e.argumentExpression)&&H(e.argumentExpression,a,t)}else H(n.name.expression,a,t)}else t.tracker.reportNonSerializableProperty(bc(e));t.enclosingDeclaration=e.valueDeclaration||(null==(r=e.declarations)?void 0:r[0])||a;const s=ue(e,t);if(t.enclosingDeclaration=a,t.approximateLength+=yc(e).length+1,98304&e.flags){const r=E_(e);if(!al(o)&&!al(r)){const i=ua(e).mapper,a=Hu(e,173);if(o!==r||32&e.parent.flags&&!a){const r=Hu(e,178);if(r){const e=Eg(r);n.push(D(t,I(i?aS(e,i):e,178,t,{name:s}),r))}const o=Hu(e,179);if(o){const e=Eg(o);n.push(D(t,I(i?aS(e,i):e,179,t,{name:s}),o))}return}if(32&e.parent.flags&&a&&b(a.modifiers,hD)){const e=Ed(void 0,void 0,void 0,l,o,void 0,0,0);n.push(D(t,I(e,178,t,{name:s}),a));const i=Xo(1,"arg");i.links.type=r;const c=Ed(void 0,void 0,void 0,[i],ln,void 0,0,0);return void n.push(I(c,179,t,{name:s}))}}}const c=16777216&e.flags?mw.createToken(58):void 0;if(8208&e.flags&&!Dp(o).length&&!_j(e)){const r=mm(GD(o,e=>!(32768&e.flags)),0);for(const i of r){const r=I(i,174,t,{name:s,questionToken:c});n.push(p(r,i.declaration||e.valueDeclaration))}if(r.length||!c)return}let _;S(e,t)?_=x(t):(i&&(t.reverseMappedStack||(t.reverseMappedStack=[]),t.reverseMappedStack.push(e)),_=o?ye(t,void 0,o,e):mw.createKeywordTypeNode(133),i&&t.reverseMappedStack.pop());const u=_j(e)?[mw.createToken(148)]:void 0;u&&(t.approximateLength+=9);const d=mw.createPropertySignature(u,s,c,_);function p(n,r){var i;const o=null==(i=e.declarations)?void 0:i.find(e=>349===e.kind);if(o){const e=ll(o.comment);e&&Ow(n,[{kind:3,text:"*\n * "+e.replace(/\n/g,"\n * ")+"\n ",pos:-1,end:-1,hasTrailingNewLine:!0}])}else r&&D(t,n,r);return n}n.push(p(d,e.valueDeclaration))}function D(e,t,n){return e.enclosingFile&&e.enclosingFile===vd(n)?Aw(t,n):t}function F(e,t,n){if($(e)){if(m(t)){if(t.out.truncated=!0,!n)return[1&t.flags?Lw(mw.createKeywordTypeNode(133),3,"elided"):mw.createTypeReferenceNode("...",void 0)];if(e.length>2)return[y(e[0],t),1&t.flags?Lw(mw.createKeywordTypeNode(133),3,`... ${e.length-2} more elided ...`):mw.createTypeReferenceNode(`... ${e.length-2} more ...`,void 0),y(e[e.length-1],t)]}const r=64&t.flags?void 0:$e(),i=[];let o=0;for(const n of e){if(o++,m(t)&&o+2{if(!kT(e,([e],[t])=>function(e,t){return e===t||!!e.symbol&&e.symbol===t.symbol||!!e.aliasSymbol&&e.aliasSymbol===t.aliasSymbol}(e,t)))for(const[n,r]of e)i[r]=y(n,t)}),e()}return i}}function P(e,t,n){const r=Ip(e)||"x",i=y(e.keyType,t),o=mw.createParameterDeclaration(void 0,void 0,r,void 0,i,void 0);return n||(n=y(e.type||wt,t)),e.type||2097152&t.flags||(t.encounteredError=!0),t.approximateLength+=r.length+4,mw.createIndexSignature(e.isReadonly?[mw.createToken(148)]:void 0,[o],n)}function I(e,t,r,i){var o;let a,s;const l=Od(e,!0)[0],u=L(r,e.declaration,l,e.typeParameters,e.parameters,e.mapper);r.approximateLength+=3,32&r.flags&&e.target&&e.mapper&&e.target.typeParameters?s=e.target.typeParameters.map(t=>y(fS(t,e.mapper),r)):a=e.typeParameters&&e.typeParameters.map(e=>J(e,r));const d=_(r);r.flags&=-257;const p=($(l,e=>e!==l[l.length-1]&&!!(32768&rx(e)))?e.parameters:l).map(e=>U(e,r,177===t)),f=33554432&r.flags?void 0:function(e,t){if(e.thisParameter)return U(e.thisParameter,t);if(e.declaration&&Em(e.declaration)){const r=Qc(e.declaration);if(r&&r.typeExpression)return mw.createParameterDeclaration(void 0,void 0,"this",void 0,y(n(t,r.typeExpression),t))}}(e,r);f&&p.unshift(f),d();const m=function(e,t){const n=256&e.flags,r=_(e);let i;n&&(e.flags&=-257);const o=Gg(t);if(!n||!il(o)){if(t.declaration&&!ey(t.declaration)&&!g(o,e)){const n=ks(t.declaration),r=c(e,n,o);i=ke.serializeReturnTypeForSignature(t.declaration,n,e),r()}i||(i=be(e,t,o))}return i||n||(i=mw.createKeywordTypeNode(133)),r(),i}(r,e);let h=null==i?void 0:i.modifiers;if(186===t&&4&e.flags){const e=$v(h);h=mw.createModifiersFromModifierFlags(64|e)}const v=180===t?mw.createCallSignature(a,p,m):181===t?mw.createConstructSignature(a,p,m):174===t?mw.createMethodSignature(h,(null==i?void 0:i.name)??mw.createIdentifier(""),null==i?void 0:i.questionToken,a,p,m):175===t?mw.createMethodDeclaration(h,void 0,(null==i?void 0:i.name)??mw.createIdentifier(""),void 0,a,p,m,void 0):177===t?mw.createConstructorDeclaration(h,p,void 0):178===t?mw.createGetAccessorDeclaration(h,(null==i?void 0:i.name)??mw.createIdentifier(""),p,m,void 0):179===t?mw.createSetAccessorDeclaration(h,(null==i?void 0:i.name)??mw.createIdentifier(""),p,void 0):182===t?mw.createIndexSignature(h,p,m):318===t?mw.createJSDocFunctionType(p,m):185===t?mw.createFunctionTypeNode(a,p,m??mw.createTypeReferenceNode(mw.createIdentifier(""))):186===t?mw.createConstructorTypeNode(h,a,p,m??mw.createTypeReferenceNode(mw.createIdentifier(""))):263===t?mw.createFunctionDeclaration(h,void 0,(null==i?void 0:i.name)?nt(i.name,aD):mw.createIdentifier(""),a,p,m,void 0):219===t?mw.createFunctionExpression(h,void 0,(null==i?void 0:i.name)?nt(i.name,aD):mw.createIdentifier(""),a,p,m,mw.createBlock([])):220===t?mw.createArrowFunction(h,a,p,m,void 0,mw.createBlock([])):un.assertNever(t);return s&&(v.typeArguments=mw.createNodeArray(s)),324===(null==(o=e.declaration)?void 0:o.kind)&&340===e.declaration.parent.kind&&Lw(v,3,Xd(e.declaration.parent.parent,!0).slice(2,-2).split(/\r\n|\n|\r/).map(e=>e.replace(/^\s+/," ")).join("\n"),!0),null==u||u(),v}function L(e,t,n,r,i,o){const a=pe(e);let s,c;const _=e.enclosingDeclaration,u=e.mapper;if(o&&(e.mapper=o),e.enclosingDeclaration&&t){let t=function(t,n){let r;un.assert(e.enclosingDeclaration),da(e.enclosingDeclaration).fakeScopeForSignatureDeclaration===t?r=e.enclosingDeclaration:e.enclosingDeclaration.parent&&da(e.enclosingDeclaration.parent).fakeScopeForSignatureDeclaration===t&&(r=e.enclosingDeclaration.parent),un.assertOptionalNode(r,VF);const i=(null==r?void 0:r.locals)??Gu();let o,a;if(n((e,t)=>{if(r){const t=i.get(e);t?a=ie(a,{name:e,oldSymbol:t}):o=ie(o,e)}i.set(e,t)}),r)return function(){d(o,e=>i.delete(e)),d(a,e=>i.set(e.name,e.oldSymbol))};{const n=mw.createBlock(l);da(n).fakeScopeForSignatureDeclaration=t,n.locals=i,DT(n,e.enclosingDeclaration),e.enclosingDeclaration=n}};s=$(n)?t("params",e=>{if(n)for(let t=0;tTD(t)&&k_(t.name)?(function t(n){d(n.elements,n=>{switch(n.kind){case 233:return;case 209:return function(n){if(k_(n.name))return t(n.name);const r=ks(n);e(r.escapedName,r)}(n);default:return un.assertNever(n)}})}(t.name),!0):void 0)||e(r.escapedName,r)}}):void 0,4&e.flags&&$(r)&&(c=t("typeParams",t=>{for(const n of r??l)t(ae(n,e).escapedText,n.symbol)}))}return()=>{null==s||s(),null==c||c(),a(),e.enclosingDeclaration=_,e.mapper=u}}function R(e,t,n){const r=_(t);t.flags&=-513;const i=mw.createModifiersFromModifierFlags(rC(e)),o=ae(e,t),a=yf(e),s=a&&y(a,t);return r(),mw.createTypeParameterDeclaration(i,o,n,s)}function J(e,t,r=Hp(e)){const i=r&&function(e,t,r){return!g(e,r)&&t&&n(r,t)===e&&ke.tryReuseExistingTypeNode(r,t)||y(e,r)}(r,$h(e),t);return R(e,t,i)}function z(e,t){const n=2===e.kind||3===e.kind?mw.createToken(131):void 0,r=1===e.kind||3===e.kind?xw(mw.createIdentifier(e.parameterName),16777216):mw.createThisTypeNode(),i=e.type&&y(e.type,t);return mw.createTypePredicateNode(n,r,i)}function q(e){return Hu(e,170)||(Xu(e)?void 0:Hu(e,342))}function U(e,t,n){const r=q(e),i=ye(t,r,P_(e),e),o=!(8192&t.flags)&&n&&r&&kI(r)?E(Dc(r),mw.cloneNode):void 0,a=r&&Bu(r)||32768&rx(e)?mw.createToken(26):void 0,s=V(e,r,t),c=r&&vg(r)||16384&rx(e)?mw.createToken(58):void 0,l=mw.createParameterDeclaration(o,a,s,c,i,void 0);return t.approximateLength+=yc(e).length+3,l}function V(e,t,n){return t&&t.name?80===t.name.kind?xw(mw.cloneNode(t.name),16777216):167===t.name.kind?xw(mw.cloneNode(t.name.right),16777216):function e(t){n.tracker.canTrackSymbol&&kD(t)&&nd(t)&&H(t.expression,n.enclosingDeclaration,n);let r=vJ(t,e,void 0,void 0,e);return lF(r)&&(r=mw.updateBindingElement(r,r.dotDotDotToken,r.propertyName,r.name,void 0)),ey(r)||(r=mw.cloneNode(r)),xw(r,16777217)}(t.name):yc(e)}function H(e,t,n){if(!n.tracker.canTrackSymbol)return;const r=sb(e),i=Ue(t,r.escapedText,1160127,void 0,!0);if(i)n.tracker.trackSymbol(i,t,111551);else{const e=Ue(r,r.escapedText,1160127,void 0,!0);e&&n.tracker.trackSymbol(e,t,111551)}}function G(e,t,n,r){return t.tracker.trackSymbol(e,t.enclosingDeclaration,n),Q(e,t,n,r)}function Q(e,t,n,r){let i;return 262144&e.flags||!(t.enclosingDeclaration||64&t.flags)||4&t.internalFlags?i=[e]:(i=un.checkDefined(function e(n,i,o){let a,s=Gs(n,t.enclosingDeclaration,i,!!(128&t.flags));if(!s||Xs(s[0],t.enclosingDeclaration,1===s.length?i:Ks(i))){const r=Ns(s?s[0]:n,t.enclosingDeclaration,i);if(u(r)){a=r.map(e=>$(e.declarations,cc)?te(e,t):void 0);const o=r.map((e,t)=>t);o.sort(function(e,t){const n=a[e],r=a[t];if(n&&r){const e=vo(r);return vo(n)===e?yB(n)-yB(r):e?-1:1}return 0});const c=o.map(e=>r[e]);for(const t of c){const r=e(t,Ks(i),!1);if(r){if(t.exports&&t.exports.get("export=")&&Is(t.exports.get("export="),n)){s=r;break}s=r.concat(s||[Es(t,n)||n]);break}}}}if(s)return s;if(o||!(6144&n.flags)){if(!o&&!r&&d(n.declarations,cc))return;return[n]}}(e,n,!0)),un.assert(i&&i.length>0)),i}function Y(e,t){let n;return 524384&uB(e).flags&&(n=mw.createNodeArray(E(Z_(e),e=>J(e,t)))),n}function Z(e,t,n){var r;un.assert(e&&0<=t&&tVk(e,o.links.mapper)),n)}else a=Y(i,n)}return a}function ee(e){return tF(e.objectType)?ee(e.objectType):e}function te(t,n,r){let i=Hu(t,308);if(!i){const e=f(t.declarations,e=>Ds(e,t));e&&(i=Hu(e,308))}if(i&&void 0!==i.moduleName)return i.moduleName;if(!i&&BB.test(t.escapedName))return t.escapedName.substring(1,t.escapedName.length-1);if(!n.enclosingFile||!n.tracker.moduleResolverHost)return BB.test(t.escapedName)?t.escapedName.substring(1,t.escapedName.length-1):vd(gp(t)).fileName;const o=_c(n.enclosingDeclaration),a=hg(o)?yg(o):void 0,s=n.enclosingFile,c=r||a&&e.getModeForUsageLocation(s,a)||s&&e.getDefaultResolutionModeForFile(s),l=NM(s.path,c),_=ua(t);let u=_.specifierCache&&_.specifierCache.get(l);if(!u){const e=!!j.outFile,{moduleResolverHost:i}=n.tracker,o=e?{...j,baseUrl:i.getCommonSourceDirectory()}:j;u=ge(dB(t,He,o,s,i,{importModuleSpecifierPreference:e?"non-relative":"project-relative",importModuleSpecifierEnding:e?"minimal":99===c?"js":void 0},{overrideImportMode:r})),_.specifierCache??(_.specifierCache=new Map),_.specifierCache.set(l,u)}return u}function ne(e){const t=mw.createIdentifier(mc(e.escapedName));return e.parent?mw.createQualifiedName(ne(e.parent),t):t}function re(e,t,n,r){const i=G(e,t,n,!(16384&t.flags)),o=111551===n;if($(i[0].declarations,cc)){const e=i.length>1?s(i,i.length-1,1):void 0,n=r||Z(i,0,t),a=vd(_c(t.enclosingDeclaration)),c=bd(i[0]);let l,_;if(3!==bk(j)&&99!==bk(j)||99===(null==c?void 0:c.impliedNodeFormat)&&c.impliedNodeFormat!==(null==a?void 0:a.impliedNodeFormat)&&(l=te(i[0],t,99),_=mw.createImportAttributes(mw.createNodeArray([mw.createImportAttribute(mw.createStringLiteral("resolution-mode"),mw.createStringLiteral("import"))]))),l||(l=te(i[0],t)),!(67108864&t.flags)&&1!==bk(j)&&l.includes("/node_modules/")){const e=l;if(3===bk(j)||99===bk(j)){const n=99===(null==a?void 0:a.impliedNodeFormat)?1:99;l=te(i[0],t,n),l.includes("/node_modules/")?l=e:_=mw.createImportAttributes(mw.createNodeArray([mw.createImportAttribute(mw.createStringLiteral("resolution-mode"),mw.createStringLiteral(99===n?"import":"require"))]))}_||(t.encounteredError=!0,t.tracker.reportLikelyUnsafeImportRequiredError&&t.tracker.reportLikelyUnsafeImportRequiredError(e))}const u=mw.createLiteralTypeNode(mw.createStringLiteral(l));if(t.approximateLength+=l.length+10,!e||e_(e))return e&&Yw(aD(e)?e:e.right,void 0),mw.createImportTypeNode(u,_,e,n,o);{const t=ee(e),r=t.objectType.typeName;return mw.createIndexedAccessTypeNode(mw.createImportTypeNode(u,_,r,n,o),t.indexType)}}const a=s(i,i.length-1,0);if(tF(a))return a;if(o)return mw.createTypeQueryNode(a);{const e=aD(a)?a:a.right,t=Zw(e);return Yw(e,void 0),mw.createTypeReferenceNode(a,t)}function s(e,n,i){const o=n===e.length-1?r:Z(e,n,t),a=e[n],c=e[n-1];let l;if(0===n?(t.flags|=16777216,l=Uc(a,t),t.approximateLength+=(l?l.length:0)+1,t.flags^=16777216):c&&hs(c)&&rd(hs(c),(e,t)=>{if(Is(e,a)&&!ld(t)&&"export="!==t)return l=mc(t),!0}),void 0===l){const r=f(a.declarations,Cc);if(r&&kD(r)&&e_(r.expression)){const t=s(e,n-1,i);return e_(t)?mw.createIndexedAccessTypeNode(mw.createParenthesizedType(mw.createTypeQueryNode(t)),mw.createTypeQueryNode(r.expression)):t}l=Uc(a,t)}if(t.approximateLength+=l.length+1,!(16&t.flags)&&c&&Td(c)&&Td(c).get(a.escapedName)&&Is(Td(c).get(a.escapedName),a)){const t=s(e,n-1,i);return tF(t)?mw.createIndexedAccessTypeNode(t,mw.createLiteralTypeNode(mw.createStringLiteral(l))):mw.createIndexedAccessTypeNode(mw.createTypeReferenceNode(t,o),mw.createLiteralTypeNode(mw.createStringLiteral(l)))}const _=xw(mw.createIdentifier(l),16777216);if(o&&Yw(_,mw.createNodeArray(o)),_.symbol=a,n>i){const t=s(e,n-1,i);return e_(t)?mw.createQualifiedName(t,_):un.fail("Impossible construct - an export of an indexed access cannot be reachable")}return _}}function oe(e,t,n){const r=Ue(t.enclosingDeclaration,e,788968,void 0,!1);return!!(r&&262144&r.flags)&&r!==n.symbol}function ae(e,t){var n,i,o,a;if(4&t.flags&&t.typeParameterNames){const n=t.typeParameterNames.get(kb(e));if(n)return n}let s=se(e.symbol,t,788968,!0);if(!(80&s.kind))return mw.createIdentifier("(Missing type parameter)");const c=null==(i=null==(n=e.symbol)?void 0:n.declarations)?void 0:i[0];if(c&&SD(c)&&(s=r(t,s,c.name)),4&t.flags){const n=s.escapedText;let r=(null==(o=t.typeParameterNamesByTextNextNameCount)?void 0:o.get(n))||0,i=n;for(;(null==(a=t.typeParameterNamesByText)?void 0:a.has(i))||oe(i,t,e);)r++,i=`${n}_${r}`;if(i!==n){const e=Zw(s);s=mw.createIdentifier(i),Yw(s,e)}t.mustCreateTypeParametersNamesLookups&&(t.mustCreateTypeParametersNamesLookups=!1,t.typeParameterNames=new Map(t.typeParameterNames),t.typeParameterNamesByTextNextNameCount=new Map(t.typeParameterNamesByTextNextNameCount),t.typeParameterNamesByText=new Set(t.typeParameterNamesByText)),t.typeParameterNamesByTextNextNameCount.set(n,r),t.typeParameterNames.set(kb(e),s),t.typeParameterNamesByText.add(i)}return s}function se(e,t,n,r){const i=G(e,t,n);return!r||1===i.length||t.encounteredError||65536&t.flags||(t.encounteredError=!0),function e(n,r){const i=Z(n,r,t),o=n[r];0===r&&(t.flags|=16777216);const a=Uc(o,t);0===r&&(t.flags^=16777216);const s=xw(mw.createIdentifier(a),16777216);return i&&Yw(s,mw.createNodeArray(i)),s.symbol=o,r>0?mw.createQualifiedName(e(n,r-1),s):s}(i,i.length-1)}function ce(e,t,n){const r=G(e,t,n);return function e(n,r){const i=Z(n,r,t),o=n[r];0===r&&(t.flags|=16777216);let a=Uc(o,t);0===r&&(t.flags^=16777216);let s=a.charCodeAt(0);if(zm(s)&&$(o.declarations,cc)){const e=te(o,t);return t.approximateLength+=2+e.length,mw.createStringLiteral(e)}if(0===r||HT(a,M)){const s=xw(mw.createIdentifier(a),16777216);return i&&Yw(s,mw.createNodeArray(i)),s.symbol=o,t.approximateLength+=1+a.length,r>0?mw.createPropertyAccessExpression(e(n,r-1),s):s}{let c;if(91===s&&(a=a.substring(1,a.length-1),s=a.charCodeAt(0)),!zm(s)||8&o.flags)""+ +a===a&&(t.approximateLength+=a.length,c=mw.createNumericLiteral(+a));else{const e=Fy(a).replace(/\\./g,e=>e.substring(1));t.approximateLength+=e.length+2,c=mw.createStringLiteral(e,39===s)}if(!c){const e=xw(mw.createIdentifier(a),16777216);i&&Yw(e,mw.createNodeArray(i)),e.symbol=o,t.approximateLength+=a.length,c=e}return t.approximateLength+=2,mw.createElementAccessExpression(e(n,r-1),c)}}(r,r.length-1)}function le(e){const t=Cc(e);return!!t&&(kD(t)?!!(402653316&eM(t.expression).flags):pF(t)?!!(402653316&eM(t.argumentExpression).flags):UN(t))}function _e(e){const t=Cc(e);return!!(t&&UN(t)&&(t.singleQuote||!ey(t)&&Gt(Xd(t,!1),"'")))}function ue(e,t){const n=function(e){if(e.valueDeclaration&&Sc(e.valueDeclaration)&&sD(e.valueDeclaration.name))return mw.cloneNode(e.valueDeclaration.name)}(e);if(n)return n;const r=!!u(e.declarations)&&v(e.declarations,le),i=!!u(e.declarations)&&v(e.declarations,_e),o=!!(8192&e.flags),a=function(e,t,n,r,i){const o=ua(e).nameType;if(o){if(384&o.flags){const e=""+o.value;return ms(e,yk(j))||!r&&JT(e)?JT(e)&&Gt(e,"-")?mw.createComputedPropertyName(mw.createPrefixUnaryExpression(41,mw.createNumericLiteral(-e))):zT(e,yk(j),n,r,i):mw.createStringLiteral(e,!!n)}if(8192&o.flags)return mw.createComputedPropertyName(ce(o.symbol,t,111551))}}(e,t,i,r,o);return a||zT(mc(e.escapedName),yk(j),i,r,o)}function pe(e){const t=e.mustCreateTypeParameterSymbolList,n=e.mustCreateTypeParametersNamesLookups;e.mustCreateTypeParameterSymbolList=!0,e.mustCreateTypeParametersNamesLookups=!0;const r=e.typeParameterNames,i=e.typeParameterNamesByText,o=e.typeParameterNamesByTextNextNameCount,a=e.typeParameterSymbolList;return()=>{e.typeParameterNames=r,e.typeParameterNamesByText=i,e.typeParameterNamesByTextNextNameCount=o,e.typeParameterSymbolList=a,e.mustCreateTypeParameterSymbolList=t,e.mustCreateTypeParametersNamesLookups=n}}function fe(e,t){return e.declarations&&b(e.declarations,e=>!(!WJ(e)||t&&!uc(e,e=>e===t)))}function me(e,t){if(!(4&gx(t)))return!0;if(!RD(e))return!0;jy(e);const n=da(e).resolvedSymbol,r=n&&Au(n);return!r||r!==t.target||u(e.typeArguments)>=Tg(t.target.typeParameters)}function he(e,t,n){return 8192&n.flags&&n.symbol===e&&(!t.enclosingDeclaration||$(e.declarations,e=>vd(e)===t.enclosingFile))&&(t.flags|=1048576),y(n,t)}function ye(e,t,n,r){var i;let o;const a=t&&(TD(t)||BP(t))&&IJ(t,e.enclosingDeclaration),s=t??r.valueDeclaration??fe(r)??(null==(i=r.declarations)?void 0:i[0]);if(!g(n,e)&&s){const t=c(e,r,n);d_(s)?o=ke.serializeTypeOfAccessor(s,r,e):!kC(s)||ey(s)||196608&gx(n)||(o=ke.serializeTypeOfDeclaration(s,r,e)),t()}return o||(a&&(n=pw(n)),o=he(r,e,n)),o??mw.createKeywordTypeNode(133)}function be(e,t,n){const r=e.suppressReportInferenceFallback;e.suppressReportInferenceFallback=!0;const i=Hg(t),o=i?z(e.mapper?oS(i,e.mapper):i,e):y(n,e);return e.suppressReportInferenceFallback=r,o}function xe(e,t,n=t.enclosingDeclaration){let i=!1;const o=sb(e);if(Em(e)&&(Ym(o)||eg(o.parent)||xD(o.parent)&&Zm(o.parent.left)&&Ym(o.parent.right)))return i=!0,{introducesError:i,node:e};const a=dc(e);let s;if(lv(o))return s=ks(em(o,!1,!1)),0!==tc(s,o,a,!1).accessibility&&(i=!0,t.tracker.reportInaccessibleThisError()),{introducesError:i,node:c(e)};if(s=ts(o,a,!0,!0),t.enclosingDeclaration&&!(s&&262144&s.flags)){s=Os(s);const n=ts(o,a,!0,!0,t.enclosingDeclaration);if(n===xt||void 0===n&&void 0!==s||n&&s&&!Is(Os(n),s))return n!==xt&&t.tracker.reportInferenceFallback(e),i=!0,{introducesError:i,node:e,sym:s};s=n}return s?(1&s.flags&&s.valueDeclaration&&(Qh(s.valueDeclaration)||BP(s.valueDeclaration))||(262144&s.flags||lh(e)||0===tc(s,n,a,!1).accessibility?t.tracker.trackSymbol(s,n,a):(t.tracker.reportInferenceFallback(e),i=!0)),{introducesError:i,node:c(e)}):{introducesError:i,node:e};function c(e){if(e===o){const n=Au(s),i=262144&s.flags?ae(n,t):mw.cloneNode(e);return i.symbol=s,r(t,xw(i,16777216),e)}const n=vJ(e,e=>c(e),void 0);return r(t,n,e)}}function Se(e,t){const r=n(e,t,!0);if(!r)return!1;if(Em(t)&&df(t)){Hx(t);const e=da(t).resolvedSymbol;return!e||!!((t.isTypeOf||788968&e.flags)&&u(t.typeArguments)>=Tg(Z_(e)))}if(RD(t)){if(kl(t))return!1;const n=da(t).resolvedSymbol;if(!n)return!1;if(262144&n.flags){const t=Au(n);return!(e.mapper&&Vk(t,e.mapper)!==t)}if(Im(t))return me(t,r)&&!Iy(t)&&!!(788968&n.flags)}if(eF(t)&&158===t.operator&&155===t.type.kind){const n=e.enclosingDeclaration&&function(e){for(;da(e).fakeScopeForSignatureDeclaration;)e=e.parent;return e}(e.enclosingDeclaration);return!!uc(t,e=>e===n)}return!0}function Te(e,t){var i;const a=_e(mw.createPropertyDeclaration,175,!0),s=_e((e,t,n,r)=>mw.createPropertySignature(e,t,n,r),174,!1),c=t.enclosingDeclaration;let m=[];const g=new Set,h=[],x=t;t={...x,usedSymbolNames:new Set(x.usedSymbolNames),remappedSymbolNames:new Map,remappedSymbolReferences:new Map(null==(i=x.remappedSymbolReferences)?void 0:i.entries()),tracker:void 0};const S={...x.tracker.inner,trackSymbol:(e,n,r)=>{var i,o;if(null==(i=t.remappedSymbolNames)?void 0:i.has(eJ(e)))return!1;if(0===tc(e,n,r,!1).accessibility){const n=Q(e,t,r);if(!(4&e.flags)){const e=n[0],t=vd(x.enclosingDeclaration);$(e.declarations,e=>vd(e)===t)&&z(e)}}else if(null==(o=x.tracker.inner)?void 0:o.trackSymbol)return x.tracker.inner.trackSymbol(e,n,r);return!1}};t.tracker=new cJ(t,S,x.tracker.moduleResolverHost),rd(e,(e,t)=>{Ne(e,mc(t))});let T=!t.bundled;const C=e.get("export=");return C&&e.size>1&&2098688&C.flags&&(e=Gu()).set("export=",C),L(e),w=function(e){const t=k(e,e=>IE(e)&&!e.moduleSpecifier&&!e.attributes&&!!e.exportClause&&OE(e.exportClause));if(t>=0){const n=e[t],r=B(n.exportClause.elements,t=>{if(!t.propertyName&&11!==t.name.kind){const n=t.name,r=N(X(e),t=>xc(e[t],n));if(u(r)&&v(r,t=>WT(e[t]))){for(const t of r)e[t]=F(e[t]);return}}return t});u(r)?e[t]=mw.updateExportDeclaration(n,n.modifiers,n.isTypeOnly,mw.updateNamedExports(n.exportClause,r),n.moduleSpecifier,n.attributes):qt(e,t)}return e}(w=function(e){const t=N(e,e=>IE(e)&&!e.moduleSpecifier&&!!e.exportClause&&OE(e.exportClause));u(t)>1&&(e=[...N(e,e=>!IE(e)||!!e.moduleSpecifier||!e.exportClause),mw.createExportDeclaration(void 0,!1,mw.createNamedExports(O(t,e=>nt(e.exportClause,OE).elements)),void 0)]);const n=N(e,e=>IE(e)&&!!e.moduleSpecifier&&!!e.exportClause&&OE(e.exportClause));if(u(n)>1){const t=Je(n,e=>UN(e.moduleSpecifier)?">"+e.moduleSpecifier.text:">");if(t.length!==n.length)for(const n of t)n.length>1&&(e=[...N(e,e=>!n.includes(e)),mw.createExportDeclaration(void 0,!1,mw.createNamedExports(O(n,e=>nt(e.exportClause,OE).elements)),n[0].moduleSpecifier)])}return e}(w=function(e){const t=b(e,AE),n=k(e,gE);let r=-1!==n?e[n]:void 0;if(r&&t&&t.isExportEquals&&aD(t.expression)&&aD(r.name)&&gc(r.name)===gc(t.expression)&&r.body&&hE(r.body)){const i=N(e,e=>!!(32&Bv(e))),o=r.name;let a=r.body;if(u(i)&&(r=mw.updateModuleDeclaration(r,r.modifiers,r.name,a=mw.updateModuleBlock(a,mw.createNodeArray([...r.body.statements,mw.createExportDeclaration(void 0,!1,mw.createNamedExports(E(O(i,e=>{return WF(t=e)?N(E(t.declarationList.declarations,Cc),D):N([Cc(t)],D);var t}),e=>mw.createExportSpecifier(!1,void 0,e))),void 0)]))),e=[...e.slice(0,n),r,...e.slice(n+1)]),!b(e,e=>e!==r&&xc(e,o))){m=[];const n=!$(a.statements,e=>Nv(e,32)||AE(e)||IE(e));d(a.statements,e=>{U(e,n?32:0)}),e=[...N(e,e=>e!==r&&e!==t),...m]}}return e}(w=m))),c&&(sP(c)&&Zp(c)||gE(c))&&(!$(w,X_)||!K_(w)&&$(w,G_))&&w.push(iA(mw)),w;var w;function D(e){return!!e&&80===e.kind}function F(e){const t=-129&Bv(e)|32;return mw.replaceModifiers(e,t)}function A(e){const t=-33&Bv(e);return mw.replaceModifiers(e,t)}function L(e,n,r){n||h.push(new Map);let i=0;const o=Array.from(e.values());for(const n of o){if(i++,p(t)&&i+2{j(e,!0,!!r)}),h.pop())}function j(e,n,r){Up(P_(e));const i=xs(e);if(!g.has(eJ(i))&&(g.add(eJ(i)),!n||u(e.declarations)&&$(e.declarations,e=>!!uc(e,e=>e===c)))){const i=pe(t);t.tracker.pushErrorFallbackNode(b(e.declarations,e=>vd(e)===t.enclosingFile)),R(e,n,r),t.tracker.popErrorFallbackNode(),i()}}function R(e,i,a,s=e.escapedName){var c,f,m,g,h,x,k;const S=mc(s),T="default"===s;if(i&&!(131072&t.flags)&&Eh(S)&&!T)return void(t.encounteredError=!0);let C=T&&!!(-113&e.flags||16&e.flags&&u(Up(P_(e))))&&!(2097152&e.flags),w=!C&&!i&&Eh(S)&&!T;(C||w)&&(i=!0);const D=(i?0:32)|(T&&!C?2048:0),F=1536&e.flags&&7&e.flags&&"export="!==s,P=F&&le(P_(e),e);if((8208&e.flags||P)&&Y(P_(e),e,Ne(e,S),D),524288&e.flags&&function(e,n,r){var i;const o=gu(e),a=E(ua(e).typeParameters,e=>J(e,t)),s=null==(i=e.declarations)?void 0:i.find(Dg),c=ll(s?s.comment||s.parent.comment:void 0),l=_(t);t.flags|=8388608;const u=t.enclosingDeclaration;t.enclosingDeclaration=s;const d=s&&s.typeExpression&&lP(s.typeExpression)&&ke.tryReuseExistingTypeNode(t,s.typeExpression.type)||y(o,t),p=Ne(e,n);t.approximateLength+=8+((null==c?void 0:c.length)??0)+p.length,U(Ow(mw.createTypeAliasDeclaration(void 0,p,a,d),c?[{kind:3,text:"*\n * "+c.replace(/\n/g,"\n * ")+"\n ",pos:-1,end:-1,hasTrailingNewLine:!0}]:[]),r),l(),t.enclosingDeclaration=u}(e,S,D),98311&e.flags&&"export="!==s&&!(4194304&e.flags)&&!(32&e.flags)&&!(8192&e.flags)&&!P)if(a)ae(e)&&(w=!1,C=!1);else{const n=P_(e),o=Ne(e,S);if(n.symbol&&n.symbol!==e&&16&n.symbol.flags&&$(n.symbol.declarations,RT)&&((null==(c=n.symbol.members)?void 0:c.size)||(null==(f=n.symbol.exports)?void 0:f.size)))t.remappedSymbolReferences||(t.remappedSymbolReferences=new Map),t.remappedSymbolReferences.set(eJ(n.symbol),e),R(n.symbol,i,a,s),t.remappedSymbolReferences.delete(eJ(n.symbol));else if(16&e.flags||!le(n,e)){const a=2&e.flags?TE(e)?2:1:(null==(m=e.parent)?void 0:m.valueDeclaration)&&sP(null==(g=e.parent)?void 0:g.valueDeclaration)?2:void 0,s=!C&&4&e.flags?Se(o,e):o;let c=e.declarations&&b(e.declarations,e=>lE(e));c&&_E(c.parent)&&1===c.parent.declarations.length&&(c=c.parent.parent);const l=null==(h=e.declarations)?void 0:h.find(dF);if(l&&NF(l.parent)&&aD(l.parent.right)&&(null==(x=n.symbol)?void 0:x.valueDeclaration)&&sP(n.symbol.valueDeclaration)){const e=o===l.parent.right.escapedText?void 0:l.parent.right;t.approximateLength+=12+((null==(k=null==e?void 0:e.escapedText)?void 0:k.length)??0),U(mw.createExportDeclaration(void 0,!1,mw.createNamedExports([mw.createExportSpecifier(!1,e,o)])),0),t.tracker.trackSymbol(n.symbol,t.enclosingDeclaration,111551)}else{const l=r(t,mw.createVariableStatement(void 0,mw.createVariableDeclarationList([mw.createVariableDeclaration(s,void 0,ye(t,void 0,n,e))],a)),c);t.approximateLength+=7+s.length,U(l,s!==o?-33&D:D),s===o||i||(t.approximateLength+=16+s.length+o.length,U(mw.createExportDeclaration(void 0,!1,mw.createNamedExports([mw.createExportSpecifier(!1,s,o)])),0),w=!1,C=!1)}}else Y(n,e,o,D)}if(384&e.flags&&function(e,n,r){const i=Ne(e,n);t.approximateLength+=9+i.length;const o=[],a=N(Up(P_(e)),e=>!!(8&e.flags));let s=0;for(const e of a){if(s++,p(t)&&s+2J(e,t));d(p,e=>t.approximateLength+=yc(e.symbol).length);const m=wd(mu(e)),g=uu(m),h=c&&bh(c),v=h&&function(e){const r=B(e,e=>{const r=t.enclosingDeclaration;t.enclosingDeclaration=e;let i=e.expression;if(ab(i)){if(aD(i)&&""===gc(i))return o(void 0);let e;if(({introducesError:e,node:i}=xe(i,t)),e)return o(void 0)}return o(mw.createExpressionWithTypeArguments(i,E(e.typeArguments,e=>ke.tryReuseExistingTypeNode(t,e)||y(n(t,e),t))));function o(e){return t.enclosingDeclaration=r,e}});if(r.length===e.length)return r}(h)||B(function(e){let t=l;if(e.symbol.declarations)for(const n of e.symbol.declarations){const e=bh(n);if(e)for(const n of e){const e=Pk(n);al(e)||(t===l?t=[e]:t.push(e))}}return t}(m),be),b=P_(e),x=!!(null==(s=b.symbol)?void 0:s.valueDeclaration)&&u_(b.symbol.valueDeclaration),k=x?cu(b):wt;t.approximateLength+=(u(g)?8:0)+(u(v)?11:0);const S=[...u(g)?[mw.createHeritageClause(96,E(g,e=>function(e,n,r){const i=ve(e,111551);if(i)return i;const o=Se(`${r}_base`);return U(mw.createVariableStatement(void 0,mw.createVariableDeclarationList([mw.createVariableDeclaration(o,void 0,y(n,t))],2)),0),mw.createExpressionWithTypeArguments(mw.createIdentifier(o),void 0)}(e,k,i)))]:[],...u(v)?[mw.createHeritageClause(119,v)]:[]],T=function(e,t,n){if(!u(t))return n;const r=new Map;d(n,e=>{r.set(e.escapedName,e)});for(const n of t){const t=Up(wd(n,e.thisType));for(const e of t){const t=r.get(e.escapedName);t&&e.parent===t.parent&&r.delete(e.escapedName)}}return Oe(r.values())}(m,g,Up(m)),C=N(T,e=>!we(e)),w=$(T,we),D=w?Ce(t)?H(N(T,we),!0,g[0],!1):[mw.createPropertyDeclaration(void 0,mw.createPrivateIdentifier("#private"),void 0,void 0,void 0)]:l;w&&!Ce(t)&&(t.approximateLength+=9);const F=H(C,!0,g[0],!1),P=H(N(Up(b),e=>!(4194304&e.flags||"prototype"===e.escapedName||re(e))),!0,k,!0),A=!x&&!!e.valueDeclaration&&Em(e.valueDeclaration)&&!$(mm(b,1));A&&(t.approximateLength+=21);const I=A?[mw.createConstructorDeclaration(mw.createModifiersFromModifierFlags(2),[],void 0)]:ge(1,b,k,177),O=he(m,g[0]);t.enclosingDeclaration=_,U(r(t,mw.createClassDeclaration(void 0,i,f,S,[...O,...P,...I,...F,...D]),e.declarations&&N(e.declarations,e=>dE(e)||AF(e))[0]),o)}(e,Ne(e,S),D)),(1536&e.flags&&(!F||function(e){return v(G(e),e=>!(111551&Ka($a(e))))}(e))||P)&&function(e,n,r){const i=G(e),a=Ce(t),s=Be(i,t=>t.parent&&t.parent===e||a?"real":"merged"),c=s.get("real")||l,_=s.get("merged")||l;if(u(c)||a){let i;if(a){const n=t.flags;t.flags|=514,i=o(e,t,-1),t.flags=n}else{const r=Ne(e,n);i=mw.createIdentifier(r),t.approximateLength+=r.length}ne(c,i,r,!!(67108880&e.flags))}if(u(_)){const r=vd(t.enclosingDeclaration),i=Ne(e,n),o=mw.createModuleBlock([mw.createExportDeclaration(void 0,!1,mw.createNamedExports(B(N(_,e=>"export="!==e.escapedName),n=>{var i,o;const a=mc(n.escapedName),s=Ne(n,a),c=n.declarations&&Ca(n);if(r&&(c?r!==vd(c):!$(n.declarations,e=>vd(e)===r)))return void(null==(o=null==(i=t.tracker)?void 0:i.reportNonlocalAugmentation)||o.call(i,r,e,n));const l=c&&Ua(c,!0);z(l||n);const _=l?Ne(l,mc(l.escapedName)):s;return mw.createExportSpecifier(!1,a===_?void 0:_,a)})))]);U(mw.createModuleDeclaration(void 0,mw.createIdentifier(i),o,32),0)}}(e,S,D),64&e.flags&&!(32&e.flags)&&function(e,n,r){const i=Ne(e,n);t.approximateLength+=14+i.length;const o=mu(e),a=E(Z_(e),e=>J(e,t)),s=uu(o),c=u(s)?Bb(s):void 0,l=H(Up(o),!1,c),_=ge(0,o,c,180),d=ge(1,o,c,181),p=he(o,c),f=u(s)?[mw.createHeritageClause(96,B(s,e=>ve(e,111551)))]:void 0;U(mw.createInterfaceDeclaration(void 0,i,a,f,[...p,...d,..._,...l]),r)}(e,S,D),2097152&e.flags&&ie(e,Ne(e,S),D),4&e.flags&&"export="===e.escapedName&&ae(e),8388608&e.flags&&e.declarations)for(const n of e.declarations){const e=rs(n,n.moduleSpecifier);if(!e)continue;const r=n.isTypeOnly,i=te(e,t);t.approximateLength+=17+i.length,U(mw.createExportDeclaration(void 0,r,void 0,mw.createStringLiteral(i)),0)}if(C){const n=Ne(e,S);t.approximateLength+=16+n.length,U(mw.createExportAssignment(void 0,!1,mw.createIdentifier(n)),0)}else if(w){const n=Ne(e,S);t.approximateLength+=22+S.length+n.length,U(mw.createExportDeclaration(void 0,!1,mw.createNamedExports([mw.createExportSpecifier(!1,n,S)])),0)}}function z(e){if($(e.declarations,Qh))return;un.assertIsDefined(h[h.length-1]),Se(mc(e.escapedName),e);const t=!!(2097152&e.flags)&&!$(e.declarations,e=>!!uc(e,IE)||FE(e)||bE(e)&&!JE(e.moduleReference));h[t?0:h.length-1].set(eJ(e),e)}function U(e,n){if(kI(e)){const r=Bv(e);let i=0;const o=t.enclosingDeclaration&&(Dg(t.enclosingDeclaration)?vd(t.enclosingDeclaration):t.enclosingDeclaration);32&n&&o&&(function(e){return sP(e)&&(Zp(e)||ef(e))||cp(e)&&!pp(e)}(o)||gE(o))&&WT(e)&&(i|=32),!T||32&i||o&&33554432&o.flags||!(mE(e)||WF(e)||uE(e)||dE(e)||gE(e))||(i|=128),2048&n&&(dE(e)||pE(e)||uE(e))&&(i|=2048),i&&(e=mw.replaceModifiers(e,i|r)),t.approximateLength+=de(i|r)}m.push(e)}function H(e,n,r,i){const o=[];let s=0;for(const c of e){if(s++,p(t)&&s+2re(e)&&ms(e.escapedName,99))}function Y(e,n,i,o){const a=mm(e,0);for(const e of a){t.approximateLength+=1;const n=I(e,263,t,{name:mw.createIdentifier(i)});U(r(t,n,ee(e)),o)}if(!(1536&n.flags&&n.exports&&n.exports.size)){const n=N(Up(e),re);t.approximateLength+=i.length,ne(n,mw.createIdentifier(i),o,!0)}}function Z(e){return 1&t.flags?Lw(mw.createEmptyStatement(),3,e):mw.createExpressionStatement(mw.createIdentifier(e))}function ee(e){if(e.declaration&&e.declaration.parent){if(NF(e.declaration.parent)&&5===tg(e.declaration.parent))return e.declaration.parent;if(lE(e.declaration.parent)&&e.declaration.parent.parent)return e.declaration.parent.parent}return e.declaration}function ne(e,n,r,i){const o=aD(n)?32:0,a=Ce(t);if(u(e)){t.approximateLength+=14;const s=Be(e,e=>!u(e.declarations)||$(e.declarations,e=>vd(e)===vd(t.enclosingDeclaration))||a?"local":"remote").get("local")||l;let _=CI.createModuleDeclaration(void 0,n,mw.createModuleBlock([]),o);DT(_,c),_.locals=Gu(e),_.symbol=e[0].parent;const d=m;m=[];const p=T;T=!1;const f={...t,enclosingDeclaration:_},g=t;t=f,L(Gu(s),i,!0),t=g,T=p;const h=m;m=d;const y=E(h,e=>AE(e)&&!e.isExportEquals&&aD(e.expression)?mw.createExportDeclaration(void 0,!1,mw.createNamedExports([mw.createExportSpecifier(!1,e.expression,mw.createIdentifier("default"))])):e),b=v(y,e=>Nv(e,32))?E(y,A):y;_=mw.updateModuleDeclaration(_,_.modifiers,_.name,mw.createModuleBlock(b)),U(_,r)}else a&&(t.approximateLength+=14,U(mw.createModuleDeclaration(void 0,n,mw.createModuleBlock([]),o),r))}function re(e){return!!(2887656&e.flags)||!(4194304&e.flags||"prototype"===e.escapedName||e.valueDeclaration&&Dv(e.valueDeclaration)&&u_(e.valueDeclaration.parent))}function ie(e,n,r){var i,o,a,s,c;const l=Ca(e);if(!l)return un.fail();const _=xs(Ua(l,!0));if(!_)return;let u=up(_)&&f(e.declarations,e=>{if(PE(e)||LE(e))return $d(e.propertyName||e.name);if(NF(e)||AE(e)){const t=AE(e)?e.expression:e.right;if(dF(t))return gc(t.name)}if(wa(e)){const t=Cc(e);if(t&&aD(t))return gc(t)}})||mc(_.escapedName);"export="===u&&W&&(u="default");const d=Ne(_,u);switch(z(_),l.kind){case 209:if(261===(null==(o=null==(i=l.parent)?void 0:i.parent)?void 0:o.kind)){const e=te(_.parent||_,t),{propertyName:r}=l,i=r&&aD(r)?gc(r):void 0;t.approximateLength+=24+n.length+e.length+((null==i?void 0:i.length)??0),U(mw.createImportDeclaration(void 0,mw.createImportClause(void 0,void 0,mw.createNamedImports([mw.createImportSpecifier(!1,i?mw.createIdentifier(i):void 0,mw.createIdentifier(n))])),mw.createStringLiteral(e),void 0),0);break}un.failBadSyntaxKind((null==(a=l.parent)?void 0:a.parent)||l,"Unhandled binding element grandparent kind in declaration serialization");break;case 305:227===(null==(c=null==(s=l.parent)?void 0:s.parent)?void 0:c.kind)&&oe(mc(e.escapedName),d);break;case 261:if(dF(l.initializer)){const e=l.initializer,i=mw.createUniqueName(n),o=te(_.parent||_,t);t.approximateLength+=22+o.length+gc(i).length,U(mw.createImportEqualsDeclaration(void 0,!1,i,mw.createExternalModuleReference(mw.createStringLiteral(o))),0),t.approximateLength+=12+n.length+gc(i).length+gc(e.name).length,U(mw.createImportEqualsDeclaration(void 0,!1,mw.createIdentifier(n),mw.createQualifiedName(i,e.name)),r);break}case 272:if("export="===_.escapedName&&$(_.declarations,e=>sP(e)&&ef(e))){ae(e);break}const p=!(512&_.flags||lE(l));t.approximateLength+=11+n.length+mc(_.escapedName).length,U(mw.createImportEqualsDeclaration(void 0,!1,mw.createIdentifier(n),p?se(_,t,-1,!1):mw.createExternalModuleReference(mw.createStringLiteral(te(_,t)))),p?r:0);break;case 271:U(mw.createNamespaceExportDeclaration(gc(l.name)),0);break;case 274:{const e=te(_.parent||_,t),r=t.bundled?mw.createStringLiteral(e):l.parent.moduleSpecifier,i=xE(l.parent)?l.parent.attributes:void 0,o=XP(l.parent);t.approximateLength+=14+n.length+3+(o?4:0),U(mw.createImportDeclaration(void 0,mw.createImportClause(o?156:void 0,mw.createIdentifier(n),void 0),r,i),0);break}case 275:{const e=te(_.parent||_,t),r=t.bundled?mw.createStringLiteral(e):l.parent.parent.moduleSpecifier,i=XP(l.parent.parent);t.approximateLength+=19+n.length+3+(i?4:0),U(mw.createImportDeclaration(void 0,mw.createImportClause(i?156:void 0,void 0,mw.createNamespaceImport(mw.createIdentifier(n))),r,l.parent.attributes),0);break}case 281:t.approximateLength+=19+n.length+3,U(mw.createExportDeclaration(void 0,!1,mw.createNamespaceExport(mw.createIdentifier(n)),mw.createStringLiteral(te(_,t))),0);break;case 277:{const e=te(_.parent||_,t),r=t.bundled?mw.createStringLiteral(e):l.parent.parent.parent.moduleSpecifier,i=XP(l.parent.parent.parent);t.approximateLength+=19+n.length+3+(i?4:0),U(mw.createImportDeclaration(void 0,mw.createImportClause(i?156:void 0,void 0,mw.createNamedImports([mw.createImportSpecifier(!1,n!==u?mw.createIdentifier(u):void 0,mw.createIdentifier(n))])),r,l.parent.parent.parent.attributes),0);break}case 282:const f=l.parent.parent.moduleSpecifier;if(f){const e=l.propertyName;e&&Kd(e)&&(u="default")}oe(mc(e.escapedName),f?u:d,f&&ju(f)?mw.createStringLiteral(f.text):void 0);break;case 278:ae(e);break;case 227:case 212:case 213:"default"===e.escapedName||"export="===e.escapedName?ae(e):oe(n,d);break;default:return un.failBadSyntaxKind(l,"Unhandled alias declaration kind in symbol serializer!")}}function oe(e,n,r){t.approximateLength+=16+e.length+(e!==n?n.length:0),U(mw.createExportDeclaration(void 0,!1,mw.createNamedExports([mw.createExportSpecifier(!1,e!==n?n:void 0,e)]),r),0)}function ae(e){var n;if(4194304&e.flags)return!1;const r=mc(e.escapedName),i="export="===r,o=i||"default"===r,a=e.declarations&&Ca(e),s=a&&Ua(a,!0);if(s&&u(s.declarations)&&$(s.declarations,e=>vd(e)===vd(c))){const n=a&&(AE(a)||NF(a)?gh(a):hh(a)),l=n&&ab(n)?function(e){switch(e.kind){case 80:return e;case 167:do{e=e.left}while(80!==e.kind);return e;case 212:do{if(eg(e.expression)&&!sD(e.name))return e.name;e=e.expression}while(80!==e.kind);return e}}(n):void 0,_=l&&ts(l,-1,!0,!0,c);(_||s)&&z(_||s);const u=t.tracker.disableTrackSymbol;if(t.tracker.disableTrackSymbol=!0,o)t.approximateLength+=10,m.push(mw.createExportAssignment(void 0,i,ce(s,t,-1)));else if(l===n&&l)oe(r,gc(l));else if(n&&AF(n))oe(r,Ne(s,yc(s)));else{const n=Se(r,e);t.approximateLength+=n.length+10,U(mw.createImportEqualsDeclaration(void 0,!1,mw.createIdentifier(n),se(s,t,-1,!1)),0),oe(r,n)}return t.tracker.disableTrackSymbol=u,!0}{const a=Se(r,e),c=jw(P_(xs(e)));if(le(c,e))Y(c,e,a,o?0:32);else{const i=268!==(null==(n=t.enclosingDeclaration)?void 0:n.kind)||98304&e.flags&&!(65536&e.flags)?2:1;t.approximateLength+=a.length+5,U(mw.createVariableStatement(void 0,mw.createVariableDeclarationList([mw.createVariableDeclaration(a,void 0,ye(t,void 0,c,e))],i)),s&&4&s.flags&&"export="===s.escapedName?128:r===a?32:0)}return o?(t.approximateLength+=a.length+10,m.push(mw.createExportAssignment(void 0,i,mw.createIdentifier(a))),!0):r!==a&&(oe(r,a),!0)}}function le(e,n){var r;const i=vd(t.enclosingDeclaration);return 48&gx(e)&&!$(null==(r=e.symbol)?void 0:r.declarations,b_)&&!u(Jm(e))&&!Ic(e)&&!(!u(N(Up(e),re))&&!u(mm(e,0)))&&!u(mm(e,1))&&!fe(n,c)&&!(e.symbol&&$(e.symbol.declarations,e=>vd(e)!==i))&&!$(Up(e),e=>ld(e.escapedName))&&!$(Up(e),e=>$(e.declarations,e=>vd(e)!==i))&&v(Up(e),e=>!(!ms(yc(e),M)||98304&e.flags&&M_(e)!==E_(e)))}function _e(e,n,i){return function(o,a,s){var c,l,_,u,p,f;const m=ix(o),g=!!(2&m)&&!Ce(t);if(a&&2887656&o.flags)return[];if(4194304&o.flags||"constructor"===o.escapedName||s&&pm(s,o.escapedName)&&_j(pm(s,o.escapedName))===_j(o)&&(16777216&o.flags)==(16777216&pm(s,o.escapedName).flags)&&SS(P_(o),el(s,o.escapedName)))return[];const h=-1025&m|(a?256:0),y=ue(o,t),v=null==(c=o.declarations)?void 0:c.find(en(ND,d_,lE,wD,NF,dF));if(98304&o.flags&&i){const e=[];if(65536&o.flags){const n=o.declarations&&d(o.declarations,e=>179===e.kind?e:fF(e)&&ng(e)?d(e.arguments[2].properties,e=>{const t=Cc(e);if(t&&aD(t)&&"set"===gc(t))return e}):void 0);un.assert(!!n);const i=o_(n)?Eg(n).parameters[0]:void 0,a=null==(l=o.declarations)?void 0:l.find(wu);t.approximateLength+=de(h)+7+(i?yc(i).length:5)+(g?0:2),e.push(r(t,mw.createSetAccessorDeclaration(mw.createModifiersFromModifierFlags(h),y,[mw.createParameterDeclaration(void 0,void 0,i?V(i,q(i),t):"value",void 0,g?void 0:ye(t,a,E_(o),o))],void 0),a??v))}if(32768&o.flags){const n=null==(_=o.declarations)?void 0:_.find(Nu);t.approximateLength+=de(h)+8+(g?0:2),e.push(r(t,mw.createGetAccessorDeclaration(mw.createModifiersFromModifierFlags(h),y,[],g?void 0:ye(t,n,P_(o),o),void 0),n??v))}return e}if(98311&o.flags){const n=(_j(o)?8:0)|h;return t.approximateLength+=2+(g?0:2)+de(n),r(t,e(mw.createModifiersFromModifierFlags(n),y,16777216&o.flags?mw.createToken(58):void 0,g?void 0:ye(t,null==(u=o.declarations)?void 0:u.find(ID),E_(o),o),void 0),(null==(p=o.declarations)?void 0:p.find(en(ND,lE)))||v)}if(8208&o.flags){const i=mm(P_(o),0);if(g){const n=(_j(o)?8:0)|h;return t.approximateLength+=1+de(n),r(t,e(mw.createModifiersFromModifierFlags(n),y,16777216&o.flags?mw.createToken(58):void 0,void 0,void 0),(null==(f=o.declarations)?void 0:f.find(o_))||i[0]&&i[0].declaration||o.declarations&&o.declarations[0])}const a=[];for(const e of i){t.approximateLength+=1;const i=I(e,n,t,{name:y,questionToken:16777216&o.flags?mw.createToken(58):void 0,modifiers:h?mw.createModifiersFromModifierFlags(h):void 0}),s=e.declaration&&pg(e.declaration.parent)?e.declaration.parent:e.declaration;a.push(r(t,i,s))}return a}return un.fail(`Unhandled class member kind! ${o.__debugFlags||o.flags}`)}}function de(e){let t=0;return 32&e&&(t+=7),128&e&&(t+=8),2048&e&&(t+=8),4096&e&&(t+=6),1&e&&(t+=7),2&e&&(t+=8),4&e&&(t+=10),64&e&&(t+=9),256&e&&(t+=7),16&e&&(t+=9),8&e&&(t+=9),512&e&&(t+=9),1024&e&&(t+=6),8192&e&&(t+=3),16384&e&&(t+=4),t}function me(e,t){return s(e,!1,t)}function ge(e,n,i,o){const a=mm(n,e);if(1===e){if(!i&&v(a,e=>0===u(e.parameters)))return[];if(i){const e=mm(i,1);if(!u(e)&&v(a,e=>0===u(e.parameters)))return[];if(e.length===a.length){let t=!1;for(let n=0;ny(e,t)),i=ce(e.target.symbol,t,788968)):e.symbol&&Ys(e.symbol,c,n)&&(i=ce(e.symbol,t,788968)),i)return mw.createExpressionWithTypeArguments(i,r)}function be(e){return ve(e,788968)||(e.symbol?mw.createExpressionWithTypeArguments(ce(e.symbol,t,788968),void 0):void 0)}function Se(e,n){var r,i;const o=n?eJ(n):void 0;if(o&&t.remappedSymbolNames.has(o))return t.remappedSymbolNames.get(o);n&&(e=Te(n,e));let a=0;const s=e;for(;null==(r=t.usedSymbolNames)?void 0:r.has(e);)a++,e=`${s}_${a}`;return null==(i=t.usedSymbolNames)||i.add(e),o&&t.remappedSymbolNames.set(o,e),e}function Te(e,n){if("default"===n||"__class"===n||"__function"===n){const r=_(t);t.flags|=16777216;const i=Uc(e,t);r(),n=i.length>0&&zm(i.charCodeAt(0))?Fy(i):i}return"default"===n?n="_default":"export="===n&&(n="_exports"),ms(n,M)&&!Eh(n)?n:"_"+n.replace(/[^a-z0-9]/gi,"_")}function Ne(e,n){const r=eJ(e);return t.remappedSymbolNames.has(r)?t.remappedSymbolNames.get(r):(n=Te(e,n),t.remappedSymbolNames.set(r,n),n)}}function Ce(e){return-1!==e.maxExpansionDepth}function we(e){return!!e.valueDeclaration&&Sc(e.valueDeclaration)&&sD(e.valueDeclaration.name)}}(),ke=UK(j,xe.syntacticBuilderResolver),Ce=gC({evaluateElementAccessExpression:function(e,t){const n=e.expression;if(ab(n)&&ju(e.argumentExpression)){const r=ts(n,111551,!0);if(r&&384&r.flags){const n=fc(e.argumentExpression.text),i=r.exports.get(n);if(i)return un.assert(vd(i.valueDeclaration)===vd(r.valueDeclaration)),t?bB(e,i,t):MJ(i.valueDeclaration)}}return mC(void 0)},evaluateEntityNameExpression:vB}),Ne=Gu(),De=Xo(4,"undefined");De.declarations=[];var Fe=Xo(1536,"globalThis",8);Fe.exports=Ne,Fe.declarations=[],Ne.set(Fe.escapedName,Fe);var Ee,Pe,Ae,Le=Xo(4,"arguments"),je=Xo(4,"require"),Me=j.verbatimModuleSyntax?"verbatimModuleSyntax":"isolatedModules",Re=!j.verbatimModuleSyntax,ze=0,qe=0,Ue=vC({compilerOptions:j,requireSymbol:je,argumentsSymbol:Le,globals:Ne,getSymbolOfDeclaration:ks,error:zo,getRequiresScopeChangeCache:ma,setRequiresScopeChangeCache:ga,lookup:pa,onPropertyWithInvalidInitializer:function(e,t,n,r){return!V&&(e&&!r&&va(e,t,t)||zo(e,e&&n.type&&As(n.type,e.pos)?_a.Type_of_instance_member_variable_0_cannot_reference_identifier_1_declared_in_the_constructor:_a.Initializer_of_instance_member_variable_0_cannot_reference_identifier_1_declared_in_the_constructor,Ap(n.name),ya(t)),!0)},onFailedToResolveSymbol:function(e,t,n,r){const i=Ze(t)?t:t.escapedText;a(()=>{if(!e||!(325===e.parent.kind||va(e,i,t)||ba(e)||function(e,t,n){const r=1920|(Em(e)?111551:0);if(n===r){const n=$a(Ue(e,t,788968&~r,void 0,!1)),i=e.parent;if(n){if(xD(i)){un.assert(i.left===e,"Should only be resolving left side of qualified name as a namespace");const r=i.right.escapedText;if(pm(Au(n),r))return zo(i,_a.Cannot_access_0_1_because_0_is_a_type_but_not_a_namespace_Did_you_mean_to_retrieve_the_type_of_the_property_1_in_0_with_0_1,mc(t),mc(r)),!0}return zo(e,_a._0_only_refers_to_a_type_but_is_being_used_as_a_namespace_here,mc(t)),!0}}return!1}(e,i,n)||function(e,t){return!(!ka(t)||282!==e.parent.kind)&&(zo(e,_a.Cannot_export_0_Only_local_declarations_can_be_exported_from_a_module,t),!0)}(e,i)||function(e,t,n){if(111127&n){if($a(Ue(e,t,1024,void 0,!1)))return zo(e,_a.Cannot_use_namespace_0_as_a_value,mc(t)),!0}else if(788544&n&&$a(Ue(e,t,1536,void 0,!1)))return zo(e,_a.Cannot_use_namespace_0_as_a_type,mc(t)),!0;return!1}(e,i,n)||function(e,t,n){if(111551&n){if(ka(t)){const n=e.parent.parent;if(n&&n.parent&&tP(n)){const r=n.token;265===n.parent.kind&&96===r?zo(e,_a.An_interface_cannot_extend_a_primitive_type_like_0_It_can_only_extend_other_named_object_types,mc(t)):u_(n.parent)&&96===r?zo(e,_a.A_class_cannot_extend_a_primitive_type_like_0_Classes_can_only_extend_constructable_values,mc(t)):u_(n.parent)&&119===r&&zo(e,_a.A_class_cannot_implement_a_primitive_type_like_0_It_can_only_implement_other_named_object_types,mc(t))}else zo(e,_a._0_only_refers_to_a_type_but_is_being_used_as_a_value_here,mc(t));return!0}const n=$a(Ue(e,t,788544,void 0,!1)),r=n&&Ka(n);if(n&&void 0!==r&&!(111551&r)){const r=mc(t);return function(e){switch(e){case"Promise":case"Symbol":case"Map":case"WeakMap":case"Set":case"WeakSet":return!0}return!1}(t)?zo(e,_a._0_only_refers_to_a_type_but_is_being_used_as_a_value_here_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_es2015_or_later,r):function(e,t){const n=uc(e.parent,e=>!kD(e)&&!wD(e)&&(qD(e)||"quit"));if(n&&1===n.members.length){const e=Au(t);return!!(1048576&e.flags)&&yj(e,384,!0)}return!1}(e,n)?zo(e,_a._0_only_refers_to_a_type_but_is_being_used_as_a_value_here_Did_you_mean_to_use_1_in_0,r,"K"===r?"P":"K"):zo(e,_a._0_only_refers_to_a_type_but_is_being_used_as_a_value_here,r),!0}}return!1}(e,i,n)||function(e,t,n){if(788584&n){const n=$a(Ue(e,t,111127,void 0,!1));if(n&&!(1920&n.flags))return zo(e,_a._0_refers_to_a_value_but_is_being_used_as_a_type_here_Did_you_mean_typeof_0,mc(t)),!0}return!1}(e,i,n))){let o,a;if(t&&(a=function(e){const t=ya(e),n=tp().get(t);return n&&he(n.keys())}(t),a&&zo(e,r,ya(t),a)),!a&&Ki{var a;const s=t.escapedName,c=r&&sP(r)&&Zp(r);if(e&&(2&n||(32&n||384&n)&&!(111551&~n))){const n=Os(t);(2&n.flags||32&n.flags||384&n.flags)&&function(e,t){var n;if(un.assert(!!(2&e.flags||32&e.flags||384&e.flags)),67108881&e.flags&&32&e.flags)return;const r=null==(n=e.declarations)?void 0:n.find(e=>ap(e)||u_(e)||267===e.kind);if(void 0===r)return un.fail("checkResolvedBlockScopedVariable could not find block-scoped declaration");if(!(33554432&r.flags||fa(r,t))){let n;const i=Ap(Cc(r));2&e.flags?n=zo(t,_a.Block_scoped_variable_0_used_before_its_declaration,i):32&e.flags?n=zo(t,_a.Class_0_used_before_its_declaration,i):256&e.flags?n=zo(t,_a.Enum_0_used_before_its_declaration,i):(un.assert(!!(128&e.flags)),kk(j)&&(n=zo(t,_a.Enum_0_used_before_its_declaration,i))),n&&aT(n,Rp(r,_a._0_is_declared_here,i))}}(n,e)}if(c&&!(111551&~n)&&!(16777216&e.flags)){const n=xs(t);u(n.declarations)&&v(n.declarations,e=>vE(e)||sP(e)&&!!e.symbol.globalExports)&&Vo(!j.allowUmdGlobalAccess,e,_a._0_refers_to_a_UMD_global_but_the_current_file_is_a_module_Consider_adding_an_import_instead,mc(s))}if(i&&!o&&!(111551&~n)){const r=xs(Cd(t)),o=Yh(i);r===ks(i)?zo(e,_a.Parameter_0_cannot_reference_itself,Ap(i.name)):r.valueDeclaration&&r.valueDeclaration.pos>i.pos&&o.parent.locals&&pa(o.parent.locals,r.escapedName,n)===r&&zo(e,_a.Parameter_0_cannot_reference_identifier_1_declared_after_it,Ap(i.name),Ap(e))}if(e&&111551&n&&2097152&t.flags&&!(111551&t.flags)&&!bT(e)){const n=Ya(t,111551);if(n){const t=282===n.kind||279===n.kind||281===n.kind?_a._0_cannot_be_used_as_a_value_because_it_was_exported_using_export_type:_a._0_cannot_be_used_as_a_value_because_it_was_imported_using_import_type,r=mc(s);ha(zo(e,t,r),n,r)}}if(j.isolatedModules&&t&&c&&!(111551&~n)){const e=pa(Ne,s,n)===t&&sP(r)&&r.locals&&pa(r.locals,s,-111552);if(e){const t=null==(a=e.declarations)?void 0:a.find(e=>277===e.kind||274===e.kind||275===e.kind||272===e.kind);t&&!Bl(t)&&zo(t,_a.Import_0_conflicts_with_global_value_used_in_this_file_so_must_be_declared_with_a_type_only_import_when_isolatedModules_is_enabled,mc(s))}}})}}),Ve=vC({compilerOptions:j,requireSymbol:je,argumentsSymbol:Le,globals:Ne,getSymbolOfDeclaration:ks,error:zo,getRequiresScopeChangeCache:ma,setRequiresScopeChangeCache:ga,lookup:function(e,t,n){const r=pa(e,t,n);if(r)return r;let i;return i=e===Ne?B(["string","number","boolean","object","bigint","symbol"],t=>e.has(t.charAt(0).toUpperCase()+t.slice(1))?Xo(524288,t):void 0).concat(Oe(e.values())):Oe(e.values()),iO(mc(t),i,n)}});const He={getNodeCount:()=>we(e.getSourceFiles(),(e,t)=>e+t.nodeCount,0),getIdentifierCount:()=>we(e.getSourceFiles(),(e,t)=>e+t.identifierCount,0),getSymbolCount:()=>we(e.getSourceFiles(),(e,t)=>e+t.symbolCount,m),getTypeCount:()=>p,getInstantiationCount:()=>g,getRelationCacheSizes:()=>({assignable:wo.size,identity:Fo.size,subtype:To.size,strictSubtype:Co.size}),isUndefinedSymbol:e=>e===De,isArgumentsSymbol:e=>e===Le,isUnknownSymbol:e=>e===xt,getMergedSymbol:xs,symbolIsValue:Ls,getDiagnostics:HB,getGlobalDiagnostics:function(){return KB(),ho.getGlobalDiagnostics()},getRecursionIdentity:DC,getUnmatchedProperties:sN,getTypeOfSymbolAtLocation:(e,t)=>{const n=pc(t);return n?function(e,t){if(e=Os(e),(80===t.kind||81===t.kind)&&(db(t)&&(t=t.parent),bm(t)&&(!Qg(t)||cx(t)))){const n=yw(cx(t)&&212===t.kind?OI(t,void 0,!0):Qj(t));if(Os(da(t).resolvedSymbol)===e)return n}return lh(t)&&wu(t.parent)&&h_(t.parent)?T_(t.parent.symbol):pb(t)&&cx(t.parent)?E_(e):M_(e)}(e,n):Et},getTypeOfSymbol:P_,getSymbolsOfParameterPropertyDeclaration:(e,t)=>{const n=pc(e,TD);return void 0===n?un.fail("Cannot get symbols of a synthetic parameter that cannot be resolved to a parse-tree node."):(un.assert(Zs(n,n.parent)),function(e,t){const n=e.parent,r=e.parent.parent,i=pa(n.locals,t,111551),o=pa(Td(r.symbol),t,111551);return i&&o?[i,o]:un.fail("There should exist two symbols, one as property declaration and one as parameter declaration")}(n,fc(t)))},getDeclaredTypeOfSymbol:Au,getPropertiesOfType:Up,getPropertyOfType:(e,t)=>pm(e,fc(t)),getPrivateIdentifierPropertyOfType:(e,t,n)=>{const r=pc(n);if(!r)return;const i=MI(fc(t),r);return i?BI(e,i):void 0},getTypeOfPropertyOfType:(e,t)=>el(e,fc(t)),getIndexInfoOfType:(e,t)=>qm(e,0===t?Vt:Wt),getIndexInfosOfType:Jm,getIndexInfosOfIndexSymbol:Lh,getSignaturesOfType:mm,getIndexTypeOfType:(e,t)=>Qm(e,0===t?Vt:Wt),getIndexType:e=>Yb(e),getBaseTypes:uu,getBaseTypeOfLiteralType:QC,getWidenedType:jw,getWidenedLiteralType:ZC,fillMissingTypeArguments:Cg,getTypeFromTypeNode:e=>{const t=pc(e,b_);return t?Pk(t):Et},getParameterType:AL,getParameterIdentifierInfoAtPosition:function(e,t){var n;if(318===(null==(n=e.declaration)?void 0:n.kind))return;const r=e.parameters.length-(aJ(e)?1:0);if(tPM(e),getReturnTypeOfSignature:Gg,isNullableType:NI,getNullableType:dw,getNonNullableType:fw,getNonOptionalType:yw,getTypeArguments:uy,typeToTypeNode:xe.typeToTypeNode,typePredicateToTypePredicateNode:xe.typePredicateToTypePredicateNode,indexInfoToIndexSignatureDeclaration:xe.indexInfoToIndexSignatureDeclaration,signatureToSignatureDeclaration:xe.signatureToSignatureDeclaration,symbolToEntityName:xe.symbolToEntityName,symbolToExpression:xe.symbolToExpression,symbolToNode:xe.symbolToNode,symbolToTypeParameterDeclarations:xe.symbolToTypeParameterDeclarations,symbolToParameterDeclaration:xe.symbolToParameterDeclaration,typeParameterToDeclaration:xe.typeParameterToDeclaration,getSymbolsInScope:(e,t)=>{const n=pc(e);return n?function(e,t){if(67108864&e.flags)return[];const n=Gu();let r=!1;return function(){for(;e;){switch(su(e)&&e.locals&&!Yp(e)&&o(e.locals,t),e.kind){case 308:if(!rO(e))break;case 268:a(ks(e).exports,2623475&t);break;case 267:o(ks(e).exports,8&t);break;case 232:e.name&&i(e.symbol,t);case 264:case 265:r||o(Td(ks(e)),788968&t);break;case 219:e.name&&i(e.symbol,t)}Mf(e)&&i(Le,t),r=Dv(e),e=e.parent}o(Ne,t)}(),n.delete("this"),lg(n);function i(e,t){if(ax(e)&t){const t=e.escapedName;n.has(t)||n.set(t,e)}}function o(e,t){t&&e.forEach(e=>{i(e,t)})}function a(e,t){t&&e.forEach(e=>{Hu(e,282)||Hu(e,281)||"default"===e.escapedName||i(e,t)})}}(n,t):[]},getSymbolAtLocation:e=>{const t=pc(e);return t?yJ(t,!0):void 0},getIndexInfosAtLocation:e=>{const t=pc(e);return t?function(e){if(aD(e)&&dF(e.parent)&&e.parent.name===e){const t=Hb(e),n=Qj(e.parent.expression);return O(1048576&n.flags?n.types:[n],e=>N(Jm(e),e=>jm(t,e.keyType)))}}(t):void 0},getShorthandAssignmentValueSymbol:e=>{const t=pc(e);return t?function(e){if(e&&305===e.kind)return ts(e.name,2208703,!0)}(t):void 0},getExportSpecifierLocalTargetSymbol:e=>{const t=pc(e,LE);return t?function(e){if(LE(e)){const t=e.propertyName||e.name;return e.parent.parent.moduleSpecifier?Ma(e.parent.parent,e):11===t.kind?void 0:ts(t,2998271,!0)}return ts(e,2998271,!0)}(t):void 0},getExportSymbolOfSymbol:e=>xs(e.exportSymbol||e),getTypeAtLocation:e=>{const t=pc(e);return t?bJ(t):Et},getTypeOfAssignmentPattern:e=>{const t=pc(e,S_);return t&&xJ(t)||Et},getPropertySymbolOfDestructuringAssignment:e=>{const t=pc(e,aD);return t?function(e){const t=xJ(nt(e.parent.parent,S_));return t&&pm(t,e.escapedText)}(t):void 0},signatureToString:(e,t,n,r)=>kc(e,pc(t),n,r),typeToString:(e,t,n)=>Tc(e,pc(t),n),symbolToString:(e,t,n,r)=>bc(e,pc(t),n,r),typePredicateToString:(e,t,n)=>Mc(e,pc(t),n),writeSignature:(e,t,n,r,i,o,a,s)=>kc(e,pc(t),n,r,i,o,a,s),writeType:(e,t,n,r,i,o,a)=>Tc(e,pc(t),n,r,i,o,a),writeSymbol:(e,t,n,r,i)=>bc(e,pc(t),n,r,i),writeTypePredicate:(e,t,n,r)=>Mc(e,pc(t),n,r),getAugmentedPropertiesOfType:CJ,getRootSymbols:function e(t){const n=function(e){if(6&rx(e))return B(ua(e).containingType.types,t=>pm(t,e.escapedName));if(33554432&e.flags){const{links:{leftSpread:t,rightSpread:n,syntheticOrigin:r}}=e;return t?[t,n]:r?[r]:rn(function(e){let t,n=e;for(;n=ua(n).target;)t=n;return t}(e))}}(t);return n?O(n,e):[t]},getSymbolOfExpando:lL,getContextualType:(e,t)=>{const n=pc(e,V_);if(n)return 4&t?Ge(n,()=>xA(n,t)):xA(n,t)},getContextualTypeForObjectLiteralElement:e=>{const t=pc(e,v_);return t?pA(t,void 0):void 0},getContextualTypeForArgumentAtIndex:(e,t)=>{const n=pc(e,L_);return n&&nA(n,t)},getContextualTypeForJsxAttribute:e=>{const t=pc(e,yu);return t&&mA(t,void 0)},isContextSensitive:vS,getTypeOfPropertyOfContextualType:sA,getFullyQualifiedName:es,getResolvedSignature:(e,t,n)=>Xe(e,t,n,0),getCandidateSignaturesForStringLiteralCompletions:function(e,t){const n=new Set,r=[];Ge(t,()=>Xe(e,r,void 0,0));for(const e of r)n.add(e);r.length=0,Ke(t,()=>Xe(e,r,void 0,0));for(const e of r)n.add(e);return Oe(n)},getResolvedSignatureForSignatureHelp:(e,t,n)=>Ke(e,()=>Xe(e,t,n,16)),getExpandedParameters:Od,hasEffectiveRestParameter:RL,containsArgumentsReference:Ig,getConstantValue:e=>{const t=pc(e,RJ);return t?BJ(t):void 0},isValidPropertyAccess:(e,t)=>{const n=pc(e,A_);return!!n&&function(e,t){switch(e.kind){case 212:return cO(e,108===e.expression.kind,t,jw(eM(e.expression)));case 167:return cO(e,!1,t,jw(eM(e.left)));case 206:return cO(e,!1,t,Pk(e))}}(n,fc(t))},isValidPropertyAccessForCompletions:(e,t,n)=>{const r=pc(e,dF);return!!r&&sO(r,t,n)},getSignatureFromDeclaration:e=>{const t=pc(e,r_);return t?Eg(t):void 0},isImplementationOfOverload:e=>{const t=pc(e,r_);return t?AJ(t):void 0},getImmediateAliasedSymbol:VA,getAliasedSymbol:Ha,getEmitResolver:function(e,t,n){return n||HB(e,t),be},requiresAddingImplicitUndefined:IJ,getExportsOfModule:ds,getExportsAndPropertiesOfModule:function(e){const t=ds(e),n=ss(e);if(n!==e){const e=P_(n);fs(e)&&se(t,Up(e))}return t},forEachExportAndPropertyOfModule:function(e,t){ys(e).forEach((e,n)=>{qs(n)||t(e,n)});const n=ss(e);if(n!==e){const e=P_(n);fs(e)&&function(e){3670016&(e=Tf(e)).flags&&Cp(e).members.forEach((e,n)=>{Vs(e,n)&&((e,n)=>{t(e,n)})(e,n)})}(e)}},getSymbolWalker:tB(function(e){return _h(e)||wt},Hg,Gg,uu,Cp,P_,NN,Hp,sb,uy),getAmbientModules:function(){return Wn||(Wn=[],Ne.forEach((e,t)=>{BB.test(t)&&Wn.push(e)})),Wn},getJsxIntrinsicTagNamesAt:function(e){const t=eI(jB.IntrinsicElements,e);return t?Up(t):l},isOptionalParameter:e=>{const t=pc(e,TD);return!!t&&vg(t)},tryGetMemberInModuleExports:(e,t)=>ps(fc(e),t),tryGetMemberInModuleExportsAndProperties:(e,t)=>function(e,t){const n=ps(e,t);if(n)return n;const r=ss(t);if(r===t)return;const i=P_(r);return fs(i)?pm(i,e):void 0}(fc(e),t),tryFindAmbientModule:e=>fg(e,!0),getApparentType:Sf,getUnionType:Pb,isTypeAssignableTo:FS,createAnonymousType:$s,createSignature:Ed,createSymbol:Xo,createIndexInfo:Ah,getAnyType:()=>wt,getStringType:()=>Vt,getStringLiteralType:fk,getNumberType:()=>Wt,getNumberLiteralType:mk,getBigIntType:()=>$t,getBigIntLiteralType:gk,getUnknownType:()=>Ot,createPromiseType:XL,createArrayType:Rv,getElementTypeOfArrayType:BC,getBooleanType:()=>sn,getFalseType:e=>e?Ht:Qt,getTrueType:e=>e?Yt:nn,getVoidType:()=>ln,getUndefinedType:()=>jt,getNullType:()=>zt,getESSymbolType:()=>cn,getNeverType:()=>_n,getNonPrimitiveType:()=>mn,getOptionalType:()=>Jt,getPromiseType:()=>ev(!1),getPromiseLikeType:()=>tv(!1),getAnyAsyncIterableType:()=>{const e=rv(!1);if(e!==On)return ay(e,[wt,wt,wt])},isSymbolAccessible:tc,isArrayType:OC,isTupleType:rw,isArrayLikeType:JC,isEmptyAnonymousObjectType:XS,isTypeInvalidDueToUnionDiscriminant:function(e,t){return t.properties.some(t=>{const n=t.name&&(YE(t.name)?fk(nC(t.name)):Hb(t.name)),r=n&&sC(n)?cC(n):void 0,i=void 0===r?void 0:el(e,r);return!!i&&XC(i)&&!FS(bJ(t),i)})},getExactOptionalProperties:function(e){return Up(e).filter(e=>Sw(P_(e)))},getAllPossiblePropertiesOfTypes:function(e){const t=Pb(e);if(!(1048576&t.flags))return CJ(t);const n=Gu();for(const r of e)for(const{escapedName:e}of CJ(r))if(!n.has(e)){const r=Cf(t,e);r&&n.set(e,r)}return Oe(n.values())},getSuggestedSymbolForNonexistentProperty:GI,getSuggestedSymbolForNonexistentJSXAttribute:YI,getSuggestedSymbolForNonexistentSymbol:(e,t,n)=>eO(e,fc(t),n),getSuggestedSymbolForNonexistentModule:nO,getSuggestedSymbolForNonexistentClassMember:KI,getBaseConstraintOfType:pf,getDefaultFromTypeParameter:e=>e&&262144&e.flags?yf(e):void 0,resolveName:(e,t,n,r)=>Ue(t,fc(e),n,void 0,!1,r),getJsxNamespace:e=>mc(jo(e)),getJsxFragmentFactory:e=>{const t=VJ(e);return t&&mc(sb(t).escapedText)},getAccessibleSymbolChain:Gs,getTypePredicateOfSignature:Hg,resolveExternalModuleName:e=>{const t=pc(e,V_);return t&&rs(t,t,!0)},resolveExternalModuleSymbol:ss,tryGetThisTypeAt:(e,t,n)=>{const r=pc(e);return r&&jP(r,t,n)},getTypeArgumentConstraint:e=>{const t=pc(e,b_);return t&&function(e){const t=tt(e.parent,Iu);if(!t)return;const n=mM(t);if(!n)return;const r=Hp(n[t.typeArguments.indexOf(e)]);return r&&fS(r,Uk(n,pM(t,n)))}(t)},getSuggestionDiagnostics:(n,r)=>{const i=pc(n,sP)||un.fail("Could not determine parsed source file.");if(_T(i,j,e))return l;let o;try{return t=r,nJ(i),un.assert(!!(1&da(i).flags)),o=se(o,yo.getDiagnostics(i.fileName)),WM(WB(i),(e,t,n)=>{yd(e)||qB(t,!!(33554432&e.flags))||(o||(o=[])).push({...n,category:2})}),o||l}finally{t=void 0}},runWithCancellationToken:(e,n)=>{try{return t=e,n(He)}finally{t=void 0}},getLocalTypeParametersOfClassOrInterfaceOrTypeAlias:Z_,isDeclarationVisible:Vc,isPropertyAccessible:lO,getTypeOnlyAliasDeclaration:Ya,getMemberOverrideModifierStatus:function(e,t,n){if(!t.name)return 0;const r=ks(e),i=Au(r),o=wd(i),a=P_(r),s=yh(e)&&uu(i),c=(null==s?void 0:s.length)?wd(ge(s),i.thisType):void 0;return lB(e,a,cu(i),c,i,o,t.parent?Ev(t):Nv(t,16),Pv(t),Dv(t),!1,n)},isTypeParameterPossiblyReferenced:cS,typeHasCallOrConstructSignatures:wJ,getSymbolFlags:Ka,getTypeArgumentsForResolvedSignature:function(e){return void 0===e.mapper?void 0:Mk((e.target||e).typeParameters,e.mapper)},isLibType:jc};function Ke(e,t){if(e=uc(e,O_)){const n=[],r=[];for(;e;){const t=da(e);if(n.push([t,t.resolvedSignature]),t.resolvedSignature=void 0,RT(e)){const t=ua(ks(e)),n=t.type;r.push([t,n]),t.type=void 0}e=uc(e.parent,O_)}const i=t();for(const[e,t]of n)e.resolvedSignature=t;for(const[e,t]of r)e.type=t;return i}return t()}function Ge(e,t){const n=uc(e,L_);if(n){let t=e;do{da(t).skipDirectInference=!0,t=t.parent}while(t&&t!==n)}D=!0;const r=Ke(e,t);if(D=!1,n){let t=e;do{da(t).skipDirectInference=void 0,t=t.parent}while(t&&t!==n)}return r}function Xe(e,t,n,r){const i=pc(e,L_);Ee=n;const o=i?aL(i,t,r):void 0;return Ee=void 0,o}var Ye=new Map,et=new Map,rt=new Map,it=new Map,ot=new Map,at=new Map,st=new Map,ct=new Map,lt=new Map,_t=new Map,ut=new Map,dt=new Map,pt=new Map,ft=new Map,gt=new Map,ht=[],yt=new Map,bt=new Set,xt=Xo(4,"unknown"),kt=Xo(0,"__resolving__"),St=new Map,Tt=new Map,Ct=new Set,wt=Bs(1,"any"),Nt=Bs(1,"any",262144,"auto"),Dt=Bs(1,"any",void 0,"wildcard"),Ft=Bs(1,"any",void 0,"blocked string"),Et=Bs(1,"error"),Pt=Bs(1,"unresolved"),At=Bs(1,"any",65536,"non-inferrable"),It=Bs(1,"intrinsic"),Ot=Bs(2,"unknown"),jt=Bs(32768,"undefined"),Mt=H?jt:Bs(32768,"undefined",65536,"widening"),Rt=Bs(32768,"undefined",void 0,"missing"),Bt=_e?Rt:jt,Jt=Bs(32768,"undefined",void 0,"optional"),zt=Bs(65536,"null"),Ut=H?zt:Bs(65536,"null",65536,"widening"),Vt=Bs(4,"string"),Wt=Bs(8,"number"),$t=Bs(64,"bigint"),Ht=Bs(512,"false",void 0,"fresh"),Qt=Bs(512,"false"),Yt=Bs(512,"true",void 0,"fresh"),nn=Bs(512,"true");Yt.regularType=nn,Yt.freshType=Yt,nn.regularType=nn,nn.freshType=Yt,Ht.regularType=Qt,Ht.freshType=Ht,Qt.regularType=Qt,Qt.freshType=Ht;var on,sn=Pb([Qt,nn]),cn=Bs(4096,"symbol"),ln=Bs(16384,"void"),_n=Bs(131072,"never"),dn=Bs(131072,"never",262144,"silent"),pn=Bs(131072,"never",void 0,"implicit"),fn=Bs(131072,"never",void 0,"unreachable"),mn=Bs(67108864,"object"),gn=Pb([Vt,Wt]),hn=Pb([Vt,Wt,cn]),yn=Pb([Wt,$t]),vn=Pb([Vt,Wt,sn,$t,zt,jt]),bn=ex(["",""],[Wt]),xn=Xk(e=>{return 262144&e.flags?!(t=e).constraint&&!$h(t)||t.constraint===jn?t:t.restrictiveInstantiation||(t.restrictiveInstantiation=zs(t.symbol),t.restrictiveInstantiation.constraint=jn,t.restrictiveInstantiation):e;var t},()=>"(restrictive mapper)"),kn=Xk(e=>262144&e.flags?Dt:e,()=>"(permissive mapper)"),Sn=Bs(131072,"never",void 0,"unique literal"),Tn=Xk(e=>262144&e.flags?Sn:e,()=>"(unique literal mapper)"),Cn=Xk(e=>(!on||e!==Bn&&e!==Jn&&e!==zn||on(!0),e),()=>"(unmeasurable reporter)"),wn=Xk(e=>(!on||e!==Bn&&e!==Jn&&e!==zn||on(!1),e),()=>"(unreliable reporter)"),Nn=$s(void 0,P,l,l,l),Dn=$s(void 0,P,l,l,l);Dn.objectFlags|=2048;var Fn=$s(void 0,P,l,l,l);Fn.objectFlags|=141440;var En=Xo(2048,"__type");En.members=Gu();var Pn=$s(En,P,l,l,l),An=$s(void 0,P,l,l,l),In=H?Pb([jt,zt,An]):Ot,On=$s(void 0,P,l,l,l);On.instantiations=new Map;var Ln=$s(void 0,P,l,l,l);Ln.objectFlags|=262144;var jn=$s(void 0,P,l,l,l),Mn=$s(void 0,P,l,l,l),Rn=$s(void 0,P,l,l,l),Bn=zs(),Jn=zs();Jn.constraint=Bn;var zn=zs(),qn=zs(),Un=zs();Un.constraint=qn;var Vn,Wn,$n,Kn,Gn,Xn,Qn,Yn,Zn,er,rr,ir,or,ar,sr,cr,lr,_r,ur,dr,pr,fr,mr,gr,hr,yr,vr,br,xr,kr,Sr,Tr,Cr,wr,Nr,Dr,Fr,Er,Pr,Ar,Ir,Or,Lr,jr,Mr,Rr,Br,Jr,zr,qr,Ur,Vr,Wr,$r,Hr,Kr,Gr,Xr,Qr,Yr,Zr,ei,ti,ni,ri,ii,oi,ai=bg(1,"<>",0,wt),si=Ed(void 0,void 0,void 0,l,wt,void 0,0,0),ci=Ed(void 0,void 0,void 0,l,Et,void 0,0,0),li=Ed(void 0,void 0,void 0,l,wt,void 0,0,0),_i=Ed(void 0,void 0,void 0,l,dn,void 0,0,0),ui=Ah(Wt,Vt,!0),di=Ah(Vt,wt,!1),pi=new Map,mi={get yieldType(){return un.fail("Not supported")},get returnType(){return un.fail("Not supported")},get nextType(){return un.fail("Not supported")}},gi=wR(wt,wt,wt),hi=wR(dn,dn,dn),yi={iterableCacheKey:"iterationTypesOfAsyncIterable",iteratorCacheKey:"iterationTypesOfAsyncIterator",iteratorSymbolName:"asyncIterator",getGlobalIteratorType:function(e){return Dr||(Dr=Wy("AsyncIterator",3,e))||On},getGlobalIterableType:rv,getGlobalIterableIteratorType:av,getGlobalIteratorObjectType:function(e){return Ar||(Ar=Wy("AsyncIteratorObject",3,e))||On},getGlobalGeneratorType:function(e){return Ir||(Ir=Wy("AsyncGenerator",3,e))||On},getGlobalBuiltinIteratorTypes:function(){return Pr??(Pr=$y(["ReadableStreamAsyncIterator"],1))},resolveIterationType:(e,t)=>PM(e,t,_a.Type_of_await_operand_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member),mustHaveANextMethodDiagnostic:_a.An_async_iterator_must_have_a_next_method,mustBeAMethodDiagnostic:_a.The_0_property_of_an_async_iterator_must_be_a_method,mustHaveAValueDiagnostic:_a.The_type_returned_by_the_0_method_of_an_async_iterator_must_be_a_promise_for_a_type_with_a_value_property},vi={iterableCacheKey:"iterationTypesOfIterable",iteratorCacheKey:"iterationTypesOfIterator",iteratorSymbolName:"iterator",getGlobalIteratorType:function(e){return xr||(xr=Wy("Iterator",3,e))||On},getGlobalIterableType:dv,getGlobalIterableIteratorType:pv,getGlobalIteratorObjectType:function(e){return Sr||(Sr=Wy("IteratorObject",3,e))||On},getGlobalGeneratorType:function(e){return Tr||(Tr=Wy("Generator",3,e))||On},getGlobalBuiltinIteratorTypes:function(){return Er??(Er=$y(["ArrayIterator","MapIterator","SetIterator","StringIterator"],1))},resolveIterationType:(e,t)=>e,mustHaveANextMethodDiagnostic:_a.An_iterator_must_have_a_next_method,mustBeAMethodDiagnostic:_a.The_0_property_of_an_iterator_must_be_a_method,mustHaveAValueDiagnostic:_a.The_type_returned_by_the_0_method_of_an_iterator_must_have_a_value_property},bi=new Map,xi=new Map,ki=new Map,Si=0,Ti=0,Ci=0,wi=!1,Ni=0,Fi=[],Ei=[],Pi=[],Ai=0,Ii=[],Oi=[],Li=[],ji=0,Mi=[],Ri=[],Bi=0,Ji=fk(""),zi=mk(0),qi=gk({negative:!1,base10Value:"0"}),Ui=[],Vi=[],Wi=[],$i=0,Hi=!1,Ki=0,Gi=10,Xi=[],Qi=[],Yi=[],Zi=[],eo=[],to=[],no=[],ro=[],io=[],oo=[],ao=[],so=[],co=[],lo=[],_o=[],uo=[],po=[],fo=[],mo=[],go=0,ho=_y(),yo=_y(),bo=Pb(Oe($B.keys(),fk)),To=new Map,Co=new Map,wo=new Map,No=new Map,Fo=new Map,Eo=new Map,Ao=[[".mts",".mjs"],[".ts",".js"],[".cts",".cjs"],[".mjs",".mjs"],[".js",".js"],[".cjs",".cjs"],[".tsx",1===j.jsx?".jsx":".js"],[".jsx",".jsx"],[".json",".json"]];return function(){for(const t of e.getSourceFiles())GR(t,j);let t;Vn=new Map;for(const n of e.getSourceFiles())if(!n.redirectInfo){if(!Zp(n)){const e=n.locals.get("globalThis");if(null==e?void 0:e.declarations)for(const t of e.declarations)ho.add(Rp(t,_a.Declaration_name_conflicts_with_built_in_global_identifier_0,"globalThis"));ca(Ne,n.locals)}n.jsGlobalAugmentations&&ca(Ne,n.jsGlobalAugmentations),n.patternAmbientModules&&n.patternAmbientModules.length&&($n=K($n,n.patternAmbientModules)),n.moduleAugmentations.length&&(t||(t=[])).push(n.moduleAugmentations),n.symbol&&n.symbol.globalExports&&n.symbol.globalExports.forEach((e,t)=>{Ne.has(t)||Ne.set(t,e)})}if(t)for(const e of t)for(const t of e)pp(t.parent)&&la(t);if(function(){const e=De.escapedName,t=Ne.get(e);t?d(t.declarations,t=>{VT(t)||ho.add(Rp(t,_a.Declaration_name_conflicts_with_built_in_global_identifier_0,mc(e)))}):Ne.set(e,De)}(),ua(De).type=Mt,ua(Le).type=Wy("IArguments",0,!0),ua(xt).type=Et,ua(Fe).type=Js(16,Fe),Zn=Wy("Array",1,!0),Gn=Wy("Object",0,!0),Xn=Wy("Function",0,!0),Qn=Y&&Wy("CallableFunction",0,!0)||Xn,Yn=Y&&Wy("NewableFunction",0,!0)||Xn,rr=Wy("String",0,!0),ir=Wy("Number",0,!0),or=Wy("Boolean",0,!0),ar=Wy("RegExp",0,!0),cr=Rv(wt),(lr=Rv(Nt))===Nn&&(lr=$s(void 0,P,l,l,l)),er=bv("ReadonlyArray",1)||Zn,_r=er?kv(er,[wt]):cr,sr=bv("ThisType",1),t)for(const e of t)for(const t of e)pp(t.parent)||la(t);Vn.forEach(({firstFile:e,secondFile:t,conflictingSymbols:n})=>{if(n.size<8)n.forEach(({isBlockScoped:e,firstFileLocations:t,secondFileLocations:n},r)=>{const i=e?_a.Cannot_redeclare_block_scoped_variable_0:_a.Duplicate_identifier_0;for(const e of t)sa(e,i,r,n);for(const e of n)sa(e,i,r,t)});else{const r=Oe(n.keys()).join(", ");ho.add(aT(Rp(e,_a.Definitions_of_the_following_identifiers_conflict_with_those_in_another_file_Colon_0,r),Rp(t,_a.Conflicts_are_in_this_file))),ho.add(aT(Rp(t,_a.Definitions_of_the_following_identifiers_conflict_with_those_in_another_file_Colon_0,r),Rp(e,_a.Conflicts_are_in_this_file)))}}),Vn=void 0}(),He;function Io(e){return!(!dF(e)||!aD(e.name)||!dF(e.expression)&&!aD(e.expression)||(aD(e.expression)?"Symbol"!==gc(e.expression)||NN(e.expression)!==(Vy("Symbol",1160127,void 0)||xt):!aD(e.expression.expression)||"Symbol"!==gc(e.expression.name)||"globalThis"!==gc(e.expression.expression)||NN(e.expression.expression)!==Fe))}function Oo(e){return e?gt.get(e):void 0}function Lo(e,t){return e&>.set(e,t),t}function jo(e){if(e){const t=vd(e);if(t)if($E(e)){if(t.localJsxFragmentNamespace)return t.localJsxFragmentNamespace;const n=t.pragmas.get("jsxfrag");if(n){const e=Qe(n)?n[0]:n;if(t.localJsxFragmentFactory=tO(e.arguments.factory,M),lJ(t.localJsxFragmentFactory,Mo,e_),t.localJsxFragmentFactory)return t.localJsxFragmentNamespace=sb(t.localJsxFragmentFactory).escapedText}const r=VJ(e);if(r)return t.localJsxFragmentFactory=r,t.localJsxFragmentNamespace=sb(r).escapedText}else{const e=function(e){if(e.localJsxNamespace)return e.localJsxNamespace;const t=e.pragmas.get("jsx");if(t){const n=Qe(t)?t[0]:t;if(e.localJsxFactory=tO(n.arguments.factory,M),lJ(e.localJsxFactory,Mo,e_),e.localJsxFactory)return e.localJsxNamespace=sb(e.localJsxFactory).escapedText}}(t);if(e)return t.localJsxNamespace=e}}return ii||(ii="React",j.jsxFactory?(lJ(oi=tO(j.jsxFactory,M),Mo),oi&&(ii=sb(oi).escapedText)):j.reactNamespace&&(ii=fc(j.reactNamespace))),oi||(oi=mw.createQualifiedName(mw.createIdentifier(mc(ii)),"createElement")),ii}function Mo(e){return CT(e,-1,-1),vJ(e,Mo,void 0)}function Ro(e,t,n,...r){const i=zo(t,n,...r);return i.skippedOn=e,i}function Jo(e,t,...n){return e?Rp(e,t,...n):Qx(t,...n)}function zo(e,t,...n){const r=Jo(e,t,...n);return ho.add(r),r}function qo(e){return So(vd(e).fileName,[".cts",".cjs"])?_a.ECMAScript_imports_and_exports_cannot_be_written_in_a_CommonJS_file_under_verbatimModuleSyntax:_a.ECMAScript_imports_and_exports_cannot_be_written_in_a_CommonJS_file_under_verbatimModuleSyntax_Adjust_the_type_field_in_the_nearest_package_json_to_make_this_file_an_ECMAScript_module_or_adjust_your_verbatimModuleSyntax_module_and_moduleResolution_settings_in_TypeScript}function Uo(e,t){e?ho.add(t):yo.add({...t,category:2})}function Vo(e,t,n,...r){if(t.pos<0||t.end<0){if(!e)return;const i=vd(t);return void Uo(e,"message"in n?Gx(i,0,0,n,...r):Wp(i,n))}Uo(e,"message"in n?Rp(t,n,...r):zp(vd(t),t,n))}function Wo(e,t,n,...r){const i=zo(e,n,...r);return t&&aT(i,Rp(e,_a.Did_you_forget_to_use_await)),i}function $o(e,t){const n=Array.isArray(e)?d(e,Kc):Kc(e);return n&&aT(t,Rp(n,_a.The_declaration_was_marked_as_deprecated_here)),yo.add(t),t}function Ho(e){const t=Ts(e);return t&&u(e.declarations)>1?64&t.flags?$(e.declarations,Ko):v(e.declarations,Ko):!!e.valueDeclaration&&Ko(e.valueDeclaration)||u(e.declarations)&&v(e.declarations,Ko)}function Ko(e){return!!(536870912&Pz(e))}function Go(e,t,n){return $o(t,Rp(e,_a._0_is_deprecated,n))}function Xo(e,t,n){m++;const r=new s(33554432|e,t);return r.links=new QB,r.links.checkFlags=n||0,r}function Qo(e,t){const n=Xo(1,e);return n.links.type=t,n}function Yo(e,t){const n=Xo(4,e);return n.links.type=t,n}function ea(e){let t=0;return 2&e&&(t|=111551),1&e&&(t|=111550),4&e&&(t|=0),8&e&&(t|=900095),16&e&&(t|=110991),32&e&&(t|=899503),64&e&&(t|=788872),256&e&&(t|=899327),128&e&&(t|=899967),512&e&&(t|=110735),8192&e&&(t|=103359),32768&e&&(t|=46015),65536&e&&(t|=78783),262144&e&&(t|=526824),524288&e&&(t|=788968),2097152&e&&(t|=2097152),t}function ta(e,t){t.mergeId||(t.mergeId=UB,UB++),Xi[t.mergeId]=e}function na(e){const t=Xo(e.flags,e.escapedName);return t.declarations=e.declarations?e.declarations.slice():[],t.parent=e.parent,e.valueDeclaration&&(t.valueDeclaration=e.valueDeclaration),e.constEnumOnlyModule&&(t.constEnumOnlyModule=!0),e.members&&(t.members=new Map(e.members)),e.exports&&(t.exports=new Map(e.exports)),ta(t,e),t}function ia(e,t,n=!1){if(!(e.flags&ea(t.flags))||67108864&(t.flags|e.flags)){if(t===e)return e;if(!(33554432&e.flags)){const n=$a(e);if(n===xt)return t;if(n.flags&ea(t.flags)&&!(67108864&(t.flags|n.flags)))return r(e,t),t;e=na(n)}512&t.flags&&512&e.flags&&e.constEnumOnlyModule&&!t.constEnumOnlyModule&&(e.constEnumOnlyModule=!1),e.flags|=t.flags,t.valueDeclaration&&mg(e,t.valueDeclaration),se(e.declarations,t.declarations),t.members&&(e.members||(e.members=Gu()),ca(e.members,t.members,n)),t.exports&&(e.exports||(e.exports=Gu()),ca(e.exports,t.exports,n,e)),n||ta(e,t)}else 1024&e.flags?e!==Fe&&zo(t.declarations&&Cc(t.declarations[0]),_a.Cannot_augment_module_0_with_value_exports_because_it_resolves_to_a_non_module_entity,bc(e)):r(e,t);return e;function r(e,t){const n=!!(384&e.flags||384&t.flags),r=!!(2&e.flags||2&t.flags),o=n?_a.Enum_declarations_can_only_merge_with_namespace_or_other_enum_declarations:r?_a.Cannot_redeclare_block_scoped_variable_0:_a.Duplicate_identifier_0,a=t.declarations&&vd(t.declarations[0]),s=e.declarations&&vd(e.declarations[0]),c=xd(a,j.checkJs),l=xd(s,j.checkJs),_=bc(t);if(a&&s&&Vn&&!n&&a!==s){const n=-1===Zo(a.path,s.path)?a:s,o=n===a?s:a,u=z(Vn,`${n.path}|${o.path}`,()=>({firstFile:n,secondFile:o,conflictingSymbols:new Map})),d=z(u.conflictingSymbols,_,()=>({isBlockScoped:r,firstFileLocations:[],secondFileLocations:[]}));c||i(d.firstFileLocations,t),l||i(d.secondFileLocations,e)}else c||aa(t,o,_,e),l||aa(e,o,_,t)}function i(e,t){if(t.declarations)for(const n of t.declarations)ce(e,n)}}function aa(e,t,n,r){d(e.declarations,e=>{sa(e,t,n,r.declarations)})}function sa(e,t,n,r){const i=(Hm(e,!1)?Gm(e):Cc(e))||e,o=function(e,t,...n){const r=e?Rp(e,t,...n):Qx(t,...n);return ho.lookup(r)||(ho.add(r),r)}(i,t,n);for(const e of r||l){const t=(Hm(e,!1)?Gm(e):Cc(e))||e;if(t===i)continue;o.relatedInformation=o.relatedInformation||[];const r=Rp(t,_a._0_was_also_declared_here,n),a=Rp(t,_a.and_here);u(o.relatedInformation)>=5||$(o.relatedInformation,e=>0===nk(e,a)||0===nk(e,r))||aT(o,u(o.relatedInformation)?a:r)}}function ca(e,t,n=!1,r){t.forEach((t,i)=>{const o=e.get(i),a=o?ia(o,t,n):xs(t);r&&o&&(a.parent=r),e.set(i,a)})}function la(e){var t,n,r;const i=e.parent;if((null==(t=i.symbol.declarations)?void 0:t[0])===i)if(pp(i))ca(Ne,i.symbol.exports);else{let t=is(e,e,33554432&e.parent.parent.flags?void 0:_a.Invalid_module_name_in_augmentation_module_0_cannot_be_found,!1,!0);if(!t)return;if(t=ss(t),1920&t.flags)if($($n,e=>t===e.symbol)){const n=ia(i.symbol,t,!0);Kn||(Kn=new Map),Kn.set(e.text,n)}else{if((null==(n=t.exports)?void 0:n.get("__export"))&&(null==(r=i.symbol.exports)?void 0:r.size)){const e=Sd(t,"resolvedExports");for(const[n,r]of Oe(i.symbol.exports.entries()))e.has(n)&&!t.exports.has(n)&&ia(e.get(n),r)}ia(t,i.symbol)}else zo(e,_a.Cannot_augment_module_0_because_it_resolves_to_a_non_module_entity,e.text)}else un.assert(i.symbol.declarations.length>1)}function ua(e){if(33554432&e.flags)return e.links;const t=eJ(e);return Qi[t]??(Qi[t]=new QB)}function da(e){const t=ZB(e);return Yi[t]||(Yi[t]=new YB)}function pa(e,t,n){if(n){const r=xs(e.get(t));if(r){if(r.flags&n)return r;if(2097152&r.flags&&Ka(r)&n)return r}}}function fa(t,n){const r=vd(t),i=vd(n),o=Ep(t);if(r!==i){if(R&&(r.externalModuleIndicator||i.externalModuleIndicator)||!j.outFile||_v(n)||33554432&t.flags)return!0;if(a(n,t))return!0;const o=e.getSourceFiles();return o.indexOf(r)<=o.indexOf(i)}if(16777216&n.flags||_v(n)||DN(n))return!0;if(t.pos<=n.pos&&(!ND(t)||!sm(n.parent)||t.initializer||t.exclamationToken)){if(209===t.kind){const e=Th(n,209);return e?uc(e,lF)!==uc(t,lF)||t.pose===t?"quit":kD(e)?e.parent.parent===t:!J&&CD(e)&&(e.parent===t||FD(e.parent)&&e.parent.parent===t||pl(e.parent)&&e.parent.parent===t||ND(e.parent)&&e.parent.parent===t||TD(e.parent)&&e.parent.parent.parent===t));return!e||!(J||!CD(e))&&!!uc(n,t=>t===e?"quit":r_(t)&&!om(t))}return ND(t)?!c(t,n,!1):!Zs(t,t.parent)||!(V&&Xf(t)===Xf(n)&&a(n,t))}return!(!(282===n.parent.kind||278===n.parent.kind&&n.parent.isExportEquals)&&(278!==n.kind||!n.isExportEquals)&&(!a(n,t)||V&&Xf(t)&&(ND(t)||Zs(t,t.parent))&&c(t,n,!0)));function a(e,t){return s(e,t)}function s(e,t){return!!uc(e,n=>{if(n===o)return"quit";if(r_(n))return!om(n);if(ED(n))return t.pos=r&&o.pos<=i){const n=mw.createPropertyAccessExpression(mw.createThis(),e);if(DT(n.expression,n),DT(n,o),n.flowNode=o.returnFlowNode,!QS(rE(n,t,pw(t))))return!0}return!1}(e,P_(ks(t)),N(t.parent.members,ED),t.parent.pos,n.pos))return!0}}else if(173!==t.kind||Dv(t)||Xf(e)!==Xf(t))return!0;const i=tt(n.parent,CD);if(i&&i.expression===n){if(TD(i.parent))return!!s(i.parent.parent.parent,t)||"quit";if(FD(i.parent))return!!s(i.parent.parent,t)||"quit"}return!1})}function c(e,t,n){return!(t.end>e.end)&&void 0===uc(t,t=>{if(t===e)return"quit";switch(t.kind){case 220:return!0;case 173:return!n||!(ND(e)&&t.parent===e.parent||Zs(e,e.parent)&&t.parent===e.parent.parent)||"quit";case 242:switch(t.parent.kind){case 178:case 175:case 179:return!0;default:return!1}default:return!1}})}}function ma(e){return da(e).declarationRequiresScopeChange}function ga(e,t){da(e).declarationRequiresScopeChange=t}function ha(e,t,n){return t?aT(e,Rp(t,282===t.kind||279===t.kind||281===t.kind?_a._0_was_exported_here:_a._0_was_imported_here,n)):e}function ya(e){return Ze(e)?mc(e):Ap(e)}function va(e,t,n){if(!aD(e)||e.escapedText!==t||uJ(e)||_v(e))return!1;const r=em(e,!1,!1);let i=r;for(;i;){if(u_(i.parent)){const o=ks(i.parent);if(!o)break;if(pm(P_(o),t))return zo(e,_a.Cannot_find_name_0_Did_you_mean_the_static_member_1_0,ya(n),bc(o)),!0;if(i===r&&!Dv(i)&&pm(Au(o).thisType,t))return zo(e,_a.Cannot_find_name_0_Did_you_mean_the_instance_member_this_0,ya(n)),!0}i=i.parent}return!1}function ba(e){const t=xa(e);return!(!t||!ts(t,64,!0)||(zo(e,_a.Cannot_extend_an_interface_0_Did_you_mean_implements,Xd(t)),0))}function xa(e){switch(e.kind){case 80:case 212:return e.parent?xa(e.parent):void 0;case 234:if(ab(e.expression))return e.expression;default:return}}function ka(e){return"any"===e||"string"===e||"number"===e||"boolean"===e||"never"===e||"unknown"===e}function Sa(e,t,n){return!!t&&!!uc(e,e=>e===t||!!(e===n||r_(e)&&(!om(e)||3&Oh(e)))&&"quit")}function Ta(e){switch(e.kind){case 272:return e;case 274:return e.parent;case 275:return e.parent.parent;case 277:return e.parent.parent.parent;default:return}}function Ca(e){return e.declarations&&x(e.declarations,wa)}function wa(e){return 272===e.kind||271===e.kind||274===e.kind&&!!e.name||275===e.kind||281===e.kind||277===e.kind||282===e.kind||278===e.kind&&mh(e)||NF(e)&&2===tg(e)&&mh(e)||Sx(e)&&NF(e.parent)&&e.parent.left===e&&64===e.parent.operatorToken.kind&&Na(e.parent.right)||305===e.kind||304===e.kind&&Na(e.initializer)||261===e.kind&&Mm(e)||209===e.kind&&Mm(e.parent.parent)}function Na(e){return fh(e)||vF(e)&&sL(e)}function Da(e,t,n,r){const i=e.exports.get("export="),o=i?pm(P_(i),t,!0):e.exports.get(t),a=$a(o,r);return Ga(n,o,a,!1),a}function Ea(e){return AE(e)&&!e.isExportEquals||Nv(e,2048)||LE(e)||FE(e)}function Pa(t){return ju(t)?e.getEmitSyntaxForUsageLocation(vd(t),t):void 0}function Aa(e,t){if(100<=R&&R<=199&&99===Pa(e)){t??(t=rs(e,e,!0));const n=t&&bd(t);return n&&(ef(n)||".d.json.ts"===dO(n.fileName))}return!1}function Ia(t,n,r,i){const o=t&&Pa(i);if(t&&void 0!==o){const n=e.getImpliedNodeFormatForEmit(t);if(99===o&&1===n&&100<=R&&R<=199)return!0;if(99===o&&99===n)return!1}if(!W)return!1;if(!t||t.isDeclarationFile){const e=Da(n,"default",void 0,!0);return!(e&&$(e.declarations,Ea)||Da(n,fc("__esModule"),void 0,r))}return Fm(t)?"object"!=typeof t.externalModuleIndicator&&!Da(n,fc("__esModule"),void 0,r):us(n)}function Oa(t,n,r){var i;const o=null==(i=t.declarations)?void 0:i.find(sP),a=La(n);let s,c;if(up(t))s=t;else{if(o&&a&&102<=R&&R<=199&&1===Pa(a)&&99===e.getImpliedNodeFormatForEmit(o)&&(c=Da(t,"module.exports",n,r)))return Sk(j)?(Ga(n,c,void 0,!1),c):void zo(n.name,_a.Module_0_can_only_be_default_imported_using_the_1_flag,bc(t),"esModuleInterop");s=Da(t,"default",n,r)}if(!a)return s;const l=Aa(a,t),_=Ia(o,t,r,a);if(s||_||l){if(_||l){const e=ss(t,r)||$a(t,r);return Ga(n,t,e,!1),e}}else if(us(t)&&!W){const e=R>=5?"allowSyntheticDefaultImports":"esModuleInterop",r=t.exports.get("export=").valueDeclaration,i=zo(n.name,_a.Module_0_can_only_be_default_imported_using_the_1_flag,bc(t),e);r&&aT(i,Rp(r,_a.This_module_is_declared_with_export_and_can_only_be_used_with_a_default_import_when_using_the_0_flag,e))}else kE(n)?function(e,t){var n,r,i;if(null==(n=e.exports)?void 0:n.has(t.symbol.escapedName))zo(t.name,_a.Module_0_has_no_default_export_Did_you_mean_to_use_import_1_from_0_instead,bc(e),bc(t.symbol));else{const n=zo(t.name,_a.Module_0_has_no_default_export,bc(e)),o=null==(r=e.exports)?void 0:r.get("__export");if(o){const e=null==(i=o.declarations)?void 0:i.find(e=>{var t,n;return!!(IE(e)&&e.moduleSpecifier&&(null==(n=null==(t=rs(e,e.moduleSpecifier))?void 0:t.exports)?void 0:n.has("default")))});e&&aT(n,Rp(e,_a.export_Asterisk_does_not_re_export_a_default))}}}(t,n):Ra(t,t,n,Rl(n)&&n.propertyName||n.name);return Ga(n,s,void 0,!1),s}function La(e){switch(e.kind){case 274:return e.parent.moduleSpecifier;case 272:return JE(e.moduleReference)?e.moduleReference.expression:void 0;case 275:case 282:return e.parent.parent.moduleSpecifier;case 277:return e.parent.parent.parent.moduleSpecifier;default:return un.assertNever(e)}}function ja(e,t,n,r){var i;if(1536&e.flags){const o=hs(e).get(t),a=$a(o,r);return Ga(n,o,a,!1,null==(i=ua(e).typeOnlyExportStarMap)?void 0:i.get(t),t),a}}function Ma(e,t,n=!1){var r;const i=wm(e)||e.moduleSpecifier,o=rs(e,i),a=!dF(t)&&t.propertyName||t.name;if(!aD(a)&&11!==a.kind)return;const s=Hd(a),c=cs(o,i,!1,"default"===s&&W);if(c&&(s||11===a.kind)){if(up(o))return o;let l;l=o&&o.exports&&o.exports.get("export=")?pm(P_(c),s,!0):function(e,t){if(3&e.flags){const n=e.valueDeclaration.type;if(n)return $a(pm(Pk(n),t))}}(c,s),l=$a(l,n);let _=ja(c,s,t,n);if(void 0===_&&"default"===s){const e=null==(r=o.declarations)?void 0:r.find(sP);(Aa(i,o)||Ia(e,o,n,i))&&(_=ss(o,n)||$a(o,n))}const u=_&&l&&_!==l?function(e,t){if(e===xt&&t===xt)return xt;if(790504&e.flags)return e;const n=Xo(e.flags|t.flags,e.escapedName);return un.assert(e.declarations||t.declarations),n.declarations=Q(K(e.declarations,t.declarations),mt),n.parent=e.parent||t.parent,e.valueDeclaration&&(n.valueDeclaration=e.valueDeclaration),t.members&&(n.members=new Map(t.members)),e.exports&&(n.exports=new Map(e.exports)),n}(l,_):_||l;return Rl(t)&&Aa(i,o)&&"default"!==s?zo(a,_a.Named_imports_from_a_JSON_file_into_an_ECMAScript_module_are_not_allowed_when_module_is_set_to_0,fi[R]):u||Ra(o,c,e,a),u}}function Ra(e,t,n,r){var i;const o=es(e,n),a=Ap(r),s=aD(r)?nO(r,t):void 0;if(void 0!==s){const e=bc(s),t=zo(r,_a._0_has_no_exported_member_named_1_Did_you_mean_2,o,a,e);s.valueDeclaration&&aT(t,Rp(s.valueDeclaration,_a._0_is_declared_here,e))}else(null==(i=e.exports)?void 0:i.has("default"))?zo(r,_a.Module_0_has_no_exported_member_1_Did_you_mean_to_use_import_1_from_0_instead,o,a):function(e,t,n,r,i){var o,a;const s=null==(a=null==(o=tt(r.valueDeclaration,su))?void 0:o.locals)?void 0:a.get(Hd(t)),c=r.exports;if(s){const r=null==c?void 0:c.get("export=");if(r)Is(r,s)?function(e,t,n,r){R>=5?zo(t,Sk(j)?_a._0_can_only_be_imported_by_using_a_default_import:_a._0_can_only_be_imported_by_turning_on_the_esModuleInterop_flag_and_using_a_default_import,n):Em(e)?zo(t,Sk(j)?_a._0_can_only_be_imported_by_using_a_require_call_or_by_using_a_default_import:_a._0_can_only_be_imported_by_using_a_require_call_or_by_turning_on_the_esModuleInterop_flag_and_using_a_default_import,n):zo(t,Sk(j)?_a._0_can_only_be_imported_by_using_import_1_require_2_or_a_default_import:_a._0_can_only_be_imported_by_using_import_1_require_2_or_by_turning_on_the_esModuleInterop_flag_and_using_a_default_import,n,n,r)}(e,t,n,i):zo(t,_a.Module_0_has_no_exported_member_1,i,n);else{const e=c?b(lg(c),e=>!!Is(e,s)):void 0,r=e?zo(t,_a.Module_0_declares_1_locally_but_it_is_exported_as_2,i,n,bc(e)):zo(t,_a.Module_0_declares_1_locally_but_it_is_not_exported,i,n);s.declarations&&aT(r,...E(s.declarations,(e,t)=>Rp(e,0===t?_a._0_is_declared_here:_a.and_here,n)))}}else zo(t,_a.Module_0_has_no_exported_member_1,i,n)}(n,r,a,e,o)}function Ba(e){if(lE(e)&&e.initializer&&dF(e.initializer))return e.initializer}function Ja(e,t,n){const r=e.propertyName||e.name;if(Kd(r)){const t=La(e),r=t&&rs(e,t);if(r)return Oa(r,e,!!n)}const i=e.parent.parent.moduleSpecifier?Ma(e.parent.parent,e,n):11===r.kind?void 0:ts(r,t,!1,n);return Ga(e,void 0,i,!1),i}function qa(e,t){if(AF(e))return Ij(e).symbol;if(!e_(e)&&!ab(e))return;return ts(e,901119,!0,t)||(Ij(e),da(e).resolvedSymbol)}function Ua(e,t=!1){switch(e.kind){case 272:case 261:return function(e,t){const n=Ba(e);if(n){const e=wx(n.expression).arguments[0];return aD(n.name)?$a(pm(Mg(e),n.name.escapedText)):void 0}if(lE(e)||284===e.moduleReference.kind){const n=rs(e,wm(e)||Cm(e)),r=ss(n);if(r&&102<=R&&R<=199){const n=ja(r,"module.exports",e,t);if(n)return n}return Ga(e,n,r,!1),r}const r=Za(e.moduleReference,t);return function(e,t){if(Ga(e,void 0,t,!1)&&!e.isTypeOnly){const t=Ya(ks(e)),n=282===t.kind||279===t.kind,r=n?_a.An_import_alias_cannot_reference_a_declaration_that_was_exported_using_export_type:_a.An_import_alias_cannot_reference_a_declaration_that_was_imported_using_import_type,i=n?_a._0_was_exported_here:_a._0_was_imported_here,o=279===t.kind?"*":$d(t.name);aT(zo(e.moduleReference,r),Rp(t,i,o))}}(e,r),r}(e,t);case 274:return function(e,t){const n=rs(e,e.parent.moduleSpecifier);if(n)return Oa(n,e,t)}(e,t);case 275:return function(e,t){const n=e.parent.parent.moduleSpecifier,r=rs(e,n),i=cs(r,n,t,!1);return Ga(e,r,i,!1),i}(e,t);case 281:return function(e,t){const n=e.parent.moduleSpecifier,r=n&&rs(e,n),i=n&&cs(r,n,t,!1);return Ga(e,r,i,!1),i}(e,t);case 277:case 209:return function(e,t){if(PE(e)&&Kd(e.propertyName||e.name)){const n=La(e),r=n&&rs(e,n);if(r)return Oa(r,e,t)}const n=lF(e)?Yh(e):e.parent.parent.parent,r=Ba(n),i=Ma(n,r||e,t),o=e.propertyName||e.name;return r&&i&&aD(o)?$a(pm(P_(i),o.escapedText),t):(Ga(e,void 0,i,!1),i)}(e,t);case 282:return Ja(e,901119,t);case 278:case 227:return function(e,t){const n=qa(AE(e)?e.expression:e.right,t);return Ga(e,void 0,n,!1),n}(e,t);case 271:return function(e,t){if(au(e.parent)){const n=ss(e.parent.symbol,t);return Ga(e,void 0,n,!1),n}}(e,t);case 305:return ts(e.name,901119,!0,t);case 304:return qa(e.initializer,t);case 213:case 212:return function(e,t){if(NF(e.parent)&&e.parent.left===e&&64===e.parent.operatorToken.kind)return qa(e.parent.right,t)}(e,t);default:return un.fail()}}function Wa(e,t=901119){return!(!e||2097152!=(e.flags&(2097152|t))&&!(2097152&e.flags&&67108864&e.flags))}function $a(e,t){return!t&&Wa(e)?Ha(e):e}function Ha(e){un.assert(!!(2097152&e.flags),"Should only get Alias here.");const t=ua(e);if(t.aliasTarget)t.aliasTarget===kt&&(t.aliasTarget=xt);else{t.aliasTarget=kt;const n=Ca(e);if(!n)return un.fail();const r=Ua(n);t.aliasTarget===kt?t.aliasTarget=r||xt:zo(n,_a.Circular_definition_of_import_alias_0,bc(e))}return t.aliasTarget}function Ka(e,t,n){const r=t&&Ya(e),i=r&&IE(r),o=r&&(i?rs(r.moduleSpecifier,r.moduleSpecifier,!0):Ha(r.symbol)),a=i&&o?ys(o):void 0;let s,c=n?0:e.flags;for(;2097152&e.flags;){const t=Os(Ha(e));if(!i&&t===o||(null==a?void 0:a.get(t.escapedName))===t)break;if(t===xt)return-1;if(t===e||(null==s?void 0:s.has(t)))break;2097152&t.flags&&(s?s.add(t):s=new Set([e,t])),c|=t.flags,e=t}return c}function Ga(e,t,n,r,i,o){if(!e||dF(e))return!1;const a=ks(e);if(zl(e))return ua(a).typeOnlyDeclaration=e,!0;if(i){const e=ua(a);return e.typeOnlyDeclaration=i,a.escapedName!==o&&(e.typeOnlyExportStarName=o),!0}const s=ua(a);return Xa(s,t,r)||Xa(s,n,r)}function Xa(e,t,n){var r;if(t&&(void 0===e.typeOnlyDeclaration||n&&!1===e.typeOnlyDeclaration)){const n=(null==(r=t.exports)?void 0:r.get("export="))??t,i=n.declarations&&b(n.declarations,zl);e.typeOnlyDeclaration=i??ua(n).typeOnlyDeclaration??!1}return!!e.typeOnlyDeclaration}function Ya(e,t){var n;if(!(2097152&e.flags))return;const r=ua(e);if(void 0===r.typeOnlyDeclaration){r.typeOnlyDeclaration=!1;const t=$a(e);Ga(null==(n=e.declarations)?void 0:n[0],Ca(e)&&VA(e),t,!0)}return void 0===t?r.typeOnlyDeclaration||void 0:r.typeOnlyDeclaration&&Ka(279===r.typeOnlyDeclaration.kind?$a(ys(r.typeOnlyDeclaration.symbol.parent).get(r.typeOnlyExportStarName||e.escapedName)):Ha(r.typeOnlyDeclaration.symbol))&t?r.typeOnlyDeclaration:void 0}function Za(e,t){return 80===e.kind&&db(e)&&(e=e.parent),80===e.kind||167===e.parent.kind?ts(e,1920,!1,t):(un.assert(272===e.parent.kind),ts(e,901119,!1,t))}function es(e,t){return e.parent?es(e.parent,t)+"."+bc(e):bc(e,t,void 0,36)}function ts(e,t,n,r,i){if(Nd(e))return;const o=1920|(Em(e)?111551&t:0);let a;if(80===e.kind){const r=t===o||ey(e)?_a.Cannot_find_namespace_0:wN(sb(e)),s=Em(e)&&!ey(e)?function(e,t){if(Py(e.parent)){const n=function(e){if(uc(e,e=>Su(e)||16777216&e.flags?Dg(e):"quit"))return;const t=Vg(e);if(t&&HF(t)&&pg(t.expression)){const e=ks(t.expression.left);if(e)return ns(e)}if(t&&vF(t)&&pg(t.parent)&&HF(t.parent.parent)){const e=ks(t.parent.left);if(e)return ns(e)}if(t&&(Jf(t)||rP(t))&&NF(t.parent.parent)&&6===tg(t.parent.parent)){const e=ks(t.parent.parent.left);if(e)return ns(e)}const n=Ug(e);if(n&&r_(n)){const e=ks(n);return e&&e.valueDeclaration}}(e.parent);if(n)return Ue(n,e,t,void 0,!0)}}(e,t):void 0;if(a=xs(Ue(i||e,e,t,n||s?void 0:r,!0,!1)),!a)return xs(s)}else if(167===e.kind||212===e.kind){const r=167===e.kind?e.left:e.expression,s=167===e.kind?e.right:e.name;let c=ts(r,o,n,!1,i);if(!c||Nd(s))return;if(c===xt)return c;if(c.valueDeclaration&&Em(c.valueDeclaration)&&100!==bk(j)&&lE(c.valueDeclaration)&&c.valueDeclaration.initializer&&gL(c.valueDeclaration.initializer)){const e=c.valueDeclaration.initializer.arguments[0],t=rs(e,e);if(t){const e=ss(t);e&&(c=e)}}if(a=xs(pa(hs(c),s.escapedText,t)),!a&&2097152&c.flags&&(a=xs(pa(hs(Ha(c)),s.escapedText,t))),!a){if(!n){const n=es(c),r=Ap(s),i=nO(s,c);if(i)return void zo(s,_a._0_has_no_exported_member_named_1_Did_you_mean_2,n,r,bc(i));const o=xD(e)&&function(e){for(;xD(e.parent);)e=e.parent;return e}(e),a=Gn&&788968&t&&o&&!kF(o.parent)&&function(e){let t=sb(e),n=Ue(t,t,111551,void 0,!0);if(n){for(;xD(t.parent);){if(n=pm(P_(n),t.parent.right.escapedText),!n)return;t=t.parent}return n}}(o);if(a)return void zo(o,_a._0_refers_to_a_value_but_is_being_used_as_a_type_here_Did_you_mean_typeof_0,Mp(o));if(1920&t&&xD(e.parent)){const t=xs(pa(hs(c),s.escapedText,788968));if(t)return void zo(e.parent.right,_a.Cannot_access_0_1_because_0_is_a_type_but_not_a_namespace_Did_you_mean_to_retrieve_the_type_of_the_property_1_in_0_with_0_1,bc(t),mc(e.parent.right.escapedText))}zo(s,_a.Namespace_0_has_no_exported_member_1,n,r)}return}}else un.assertNever(e,"Unknown entity name kind.");return!ey(e)&&e_(e)&&(2097152&a.flags||278===e.parent.kind)&&Ga(ph(e),a,void 0,!0),a.flags&t||r?a:Ha(a)}function ns(e){const t=e.parent.valueDeclaration;if(t)return(Um(t)?$m(t):Pu(t)?Wm(t):void 0)||t}function rs(e,t,n){const r=1===bk(j)?_a.Cannot_find_module_0_Did_you_mean_to_set_the_moduleResolution_option_to_nodenext_or_to_add_aliases_to_the_paths_option:_a.Cannot_find_module_0_or_its_corresponding_type_declarations;return is(e,t,n?void 0:r,n)}function is(e,t,n,r=!1,i=!1){return ju(t)?os(e,t.text,n,r?void 0:t,i):void 0}function os(t,n,r,i,o=!1){var a,s,c,l,_,u,d,p,f,m,g,h;i&&Gt(n,"@types/")&&zo(i,_a.Cannot_import_type_declaration_files_Consider_importing_0_instead_of_1,Xt(n,"@types/"),n);const y=fg(n,!0);if(y)return y;const v=vd(t),b=ju(t)?t:(null==(a=gE(t)?t:t.parent&&gE(t.parent)&&t.parent.name===t?t.parent:void 0)?void 0:a.name)||(null==(s=df(t)?t:void 0)?void 0:s.argument.literal)||(lE(t)&&t.initializer&&Lm(t.initializer,!0)?t.initializer.arguments[0]:void 0)||(null==(c=uc(t,_f))?void 0:c.arguments[0])||(null==(l=uc(t,en(xE,XP,IE)))?void 0:l.moduleSpecifier)||(null==(_=uc(t,Tm))?void 0:_.moduleReference.expression),x=b&&ju(b)?e.getModeForUsageLocation(v,b):e.getDefaultResolutionModeForFile(v),k=bk(j),S=null==(u=e.getResolvedModule(v,n,x))?void 0:u.resolvedModule,T=i&&S&&WV(j,S,v),C=S&&(!T||T===_a.Module_0_was_resolved_to_1_but_jsx_is_not_set)&&e.getSourceFile(S.resolvedFileName);if(C){if(T&&zo(i,T,n,S.resolvedFileName),S.resolvedUsingTsExtension&&uO(n)){const e=(null==(d=uc(t,xE))?void 0:d.importClause)||uc(t,en(bE,IE));(i&&e&&!e.isTypeOnly||uc(t,_f))&&zo(i,_a.A_declaration_file_cannot_be_imported_without_import_type_Did_you_mean_to_import_an_implementation_file_0_instead,function(e){const t=WS(n,e);if(Ok(R)||99===x){const r=uO(n)&&MR(j);return t+(".mts"===e||".d.mts"===e?r?".mts":".mjs":".cts"===e||".d.mts"===e?r?".cts":".cjs":r?".ts":".js")}return t}(un.checkDefined(bb(n))))}else if(S.resolvedUsingTsExtension&&!MR(j,v.fileName)){const e=(null==(p=uc(t,xE))?void 0:p.importClause)||uc(t,en(bE,IE));if(i&&!(null==e?void 0:e.isTypeOnly)&&!uc(t,iF)){const e=un.checkDefined(bb(n));zo(i,_a.An_import_path_can_only_end_with_a_0_extension_when_allowImportingTsExtensions_is_enabled,e)}}else if(j.rewriteRelativeImportExtensions&&!(33554432&t.flags)&&!uO(n)&&!df(t)&&!ql(t)){const t=xg(n,j);if(!S.resolvedUsingTsExtension&&t)zo(i,_a.This_relative_import_path_is_unsafe_to_rewrite_because_it_looks_like_a_file_name_but_actually_resolves_to_0,oa(Bo(v.fileName,e.getCurrentDirectory()),S.resolvedFileName,My(e)));else if(S.resolvedUsingTsExtension&&!t&&Xy(C,e))zo(i,_a.This_import_uses_a_0_extension_to_resolve_to_an_input_TypeScript_file_but_will_not_be_rewritten_during_emit_because_it_is_not_a_relative_path,Po(n));else if(S.resolvedUsingTsExtension&&t){const t=null==(f=e.getRedirectFromSourceFile(C.path))?void 0:f.resolvedRef;if(t){const n=!e.useCaseSensitiveFileNames(),r=e.getCommonSourceDirectory(),o=lU(t.commandLine,n);ra(r,o,n)!==ra(j.outDir||r,t.commandLine.options.outDir||o,n)&&zo(i,_a.This_import_path_is_unsafe_to_rewrite_because_it_resolves_to_another_project_and_the_relative_path_between_the_projects_output_files_is_not_the_same_as_the_relative_path_between_its_input_files)}}}if(C.symbol){if(i&&S.isExternalLibraryImport&&!YS(S.extension)&&as(!1,i,v,x,S,n),i&&(100===R||101===R)){const e=1===v.impliedNodeFormat&&!uc(t,_f)||!!uc(t,bE),r=uc(t,e=>iF(e)||IE(e)||xE(e)||XP(e));if(e&&99===C.impliedNodeFormat&&!_C(r))if(uc(t,bE))zo(i,_a.Module_0_cannot_be_imported_using_this_construct_The_specifier_only_resolves_to_an_ES_module_which_cannot_be_imported_with_require_Use_an_ECMAScript_import_instead,n);else{let e;const t=tT(v.fileName);".ts"!==t&&".js"!==t&&".tsx"!==t&&".jsx"!==t||(e=pd(v));const o=273===(null==r?void 0:r.kind)&&(null==(m=r.importClause)?void 0:m.isTypeOnly)?_a.Type_only_import_of_an_ECMAScript_module_from_a_CommonJS_module_must_have_a_resolution_mode_attribute:206===(null==r?void 0:r.kind)?_a.Type_import_of_an_ECMAScript_module_from_a_CommonJS_module_must_have_a_resolution_mode_attribute:_a.The_current_file_is_a_CommonJS_module_whose_imports_will_produce_require_calls_however_the_referenced_file_is_an_ECMAScript_module_and_cannot_be_imported_with_require_Consider_writing_a_dynamic_import_0_call_instead;ho.add(zp(vd(i),i,Zx(e,o,n)))}}return xs(C.symbol)}i&&r&&!SC(i)&&zo(i,_a.File_0_is_not_a_module,C.fileName)}else{if($n){const e=Kt($n,e=>e.pattern,n);if(e){const t=Kn&&Kn.get(n);return xs(t||e.symbol)}}if(i){if((!S||YS(S.extension)||void 0!==T)&&T!==_a.Could_not_find_a_declaration_file_for_module_0_1_implicitly_has_an_any_type){if(r){if(S){const t=e.getRedirectFromSourceFile(S.resolvedFileName);if(null==t?void 0:t.outputDts)return void zo(i,_a.Output_file_0_has_not_been_built_from_source_file_1,t.outputDts,S.resolvedFileName)}if(T)zo(i,T,n,S.resolvedFileName);else{const t=vo(n)&&!xo(n),o=3===k||99===k;if(!Nk(j)&&ko(n,".json")&&1!==k&&Lk(j))zo(i,_a.Cannot_find_module_0_Consider_using_resolveJsonModule_to_import_module_with_json_extension,n);else if(99===x&&o&&t){const t=Bo(n,Do(v.path)),r=null==(g=Ao.find(([n,r])=>e.fileExists(t+n)))?void 0:g[1];r?zo(i,_a.Relative_import_paths_need_explicit_file_extensions_in_ECMAScript_imports_when_moduleResolution_is_node16_or_nodenext_Did_you_mean_0,n+r):zo(i,_a.Relative_import_paths_need_explicit_file_extensions_in_ECMAScript_imports_when_moduleResolution_is_node16_or_nodenext_Consider_adding_an_extension_to_the_import_path)}else(null==(h=e.getResolvedModule(v,n,x))?void 0:h.alternateResult)?Vo(!0,i,Zx(dd(v,e,n,x,n),r,n)):zo(i,r,n)}}return}o?zo(i,_a.Invalid_module_name_in_augmentation_Module_0_resolves_to_an_untyped_module_at_1_which_cannot_be_augmented,n,S.resolvedFileName):as(ne&&!!r,i,v,x,S,n)}}}function as(t,n,r,i,{packageId:o,resolvedFileName:a},s){if(SC(n))return;let c;!Cs(s)&&o&&(c=dd(r,e,s,i,o.name)),Vo(t,n,Zx(c,_a.Could_not_find_a_declaration_file_for_module_0_1_implicitly_has_an_any_type,s,a))}function ss(e,t){if(null==e?void 0:e.exports){const n=function(e,t){if(!e||e===xt||e===t||1===t.exports.size||2097152&e.flags)return e;const n=ua(e);if(n.cjsExportMerged)return n.cjsExportMerged;const r=33554432&e.flags?e:na(e);return r.flags=512|r.flags,void 0===r.exports&&(r.exports=Gu()),t.exports.forEach((e,t)=>{"export="!==t&&r.exports.set(t,r.exports.has(t)?ia(r.exports.get(t),e):e)}),r===e&&(ua(r).resolvedExports=void 0,ua(r).resolvedMembers=void 0),ua(r).cjsExportMerged=r,n.cjsExportMerged=r}(xs($a(e.exports.get("export="),t)),xs(e));return xs(n)||e}}function cs(t,n,r,i){var o;const a=ss(t,r);if(!r&&a){if(!(i||1539&a.flags||Hu(a,308))){const e=R>=5?"allowSyntheticDefaultImports":"esModuleInterop";return zo(n,_a.This_module_can_only_be_referenced_with_ECMAScript_imports_Slashexports_by_turning_on_the_0_flag_and_referencing_its_default_export,e),a}const s=n.parent,c=xE(s)&&Sg(s);if(c||_f(s)){const l=_f(s)?s.arguments[0]:s.moduleSpecifier,_=P_(a),u=fL(_,a,t,l);if(u)return _s(a,u,s);const d=null==(o=null==t?void 0:t.declarations)?void 0:o.find(sP),p=Pa(l);let f;if(c&&d&&102<=R&&R<=199&&1===p&&99===e.getImpliedNodeFormatForEmit(d)&&(f=Da(a,"module.exports",c,r)))return i||1539&a.flags||zo(n,_a.This_module_can_only_be_referenced_with_ECMAScript_imports_Slashexports_by_turning_on_the_0_flag_and_referencing_its_default_export,"esModuleInterop"),Sk(j)&&ls(_)?_s(f,_,s):f;const m=d&&function(e,t){return 99===e&&1===t}(p,e.getImpliedNodeFormatForEmit(d));if((Sk(j)||m)&&(ls(_)||pm(_,"default",!0)||m))return _s(a,3670016&_.flags?mL(_,a,t,l):pL(a,a.parent),s)}}return a}function ls(e){return $(fm(e,0))||$(fm(e,1))}function _s(e,t,n){const r=Xo(e.flags,e.escapedName);r.declarations=e.declarations?e.declarations.slice():[],r.parent=e.parent,r.links.target=e,r.links.originatingImport=n,e.valueDeclaration&&(r.valueDeclaration=e.valueDeclaration),e.constEnumOnlyModule&&(r.constEnumOnlyModule=!0),e.members&&(r.members=new Map(e.members)),e.exports&&(r.exports=new Map(e.exports));const i=Cp(t);return r.links.type=$s(r,i.members,l,l,i.indexInfos),r}function us(e){return void 0!==e.exports.get("export=")}function ds(e){return lg(ys(e))}function ps(e,t){const n=ys(t);if(n)return n.get(e)}function fs(e){return!(402784252&e.flags||1&gx(e)||OC(e)||rw(e))}function hs(e){return 6256&e.flags?Sd(e,"resolvedExports"):1536&e.flags?ys(e):e.exports||P}function ys(e){const t=ua(e);if(!t.resolvedExports){const{exports:n,typeOnlyExportStarMap:r}=bs(e);t.resolvedExports=n,t.typeOnlyExportStarMap=r}return t.resolvedExports}function vs(e,t,n,r){t&&t.forEach((t,i)=>{if("default"===i)return;const o=e.get(i);if(o){if(n&&r&&o&&$a(o)!==$a(t)){const e=n.get(i);e.exportsWithDuplicate?e.exportsWithDuplicate.push(r):e.exportsWithDuplicate=[r]}}else e.set(i,t),n&&r&&n.set(i,{specifierText:Xd(r.moduleSpecifier)})})}function bs(e){const t=[];let n;const r=new Set,i=function e(i,o,a){if(!a&&(null==i?void 0:i.exports)&&i.exports.forEach((e,t)=>r.add(t)),!(i&&i.exports&&ce(t,i)))return;const s=new Map(i.exports),c=i.exports.get("__export");if(c){const t=Gu(),n=new Map;if(c.declarations)for(const r of c.declarations){vs(t,e(rs(r,r.moduleSpecifier),r,a||r.isTypeOnly),n,r)}n.forEach(({exportsWithDuplicate:e},t)=>{if("export="!==t&&e&&e.length&&!s.has(t))for(const r of e)ho.add(Rp(r,_a.Module_0_has_already_exported_a_member_named_1_Consider_explicitly_re_exporting_to_resolve_the_ambiguity,n.get(t).specifierText,mc(t)))}),vs(s,t)}return(null==o?void 0:o.isTypeOnly)&&(n??(n=new Map),s.forEach((e,t)=>n.set(t,o))),s}(e=ss(e))||P;return n&&r.forEach(e=>n.delete(e)),{exports:i,typeOnlyExportStarMap:n}}function xs(e){let t;return e&&e.mergeId&&(t=Xi[e.mergeId])?t:e}function ks(e){return xs(e.symbol&&Cd(e.symbol))}function Ss(e){return au(e)?ks(e):void 0}function Ts(e){return xs(e.parent&&Cd(e.parent))}function ws(e){var t,n;return(220===(null==(t=e.valueDeclaration)?void 0:t.kind)||219===(null==(n=e.valueDeclaration)?void 0:n.kind))&&Ss(e.valueDeclaration.parent)||e}function Ns(t,n,r){const i=Ts(t);if(i&&!(262144&t.flags))return _(i);const o=B(t.declarations,e=>{if(!cp(e)&&e.parent){if(cc(e.parent))return ks(e.parent);if(hE(e.parent)&&e.parent.parent&&ss(ks(e.parent.parent))===t)return ks(e.parent.parent)}if(AF(e)&&NF(e.parent)&&64===e.parent.operatorToken.kind&&Sx(e.parent.left)&&ab(e.parent.left.expression))return eg(e.parent.left)||Ym(e.parent.left.expression)?ks(vd(e)):(Ij(e.parent.left.expression),da(e.parent.left.expression).resolvedSymbol)});if(!u(o))return;const a=B(o,e=>Es(e,t)?e:void 0);let s=[],c=[];for(const e of a){const[t,...n]=_(e);s=ie(s,t),c=se(c,n)}return K(s,c);function _(i){const o=B(i.declarations,d),a=n&&function(t,n){const r=vd(n),i=ZB(r),o=ua(t);let a;if(o.extendedContainersByFile&&(a=o.extendedContainersByFile.get(i)))return a;if(r&&r.imports){for(const e of r.imports){if(ey(e))continue;const r=rs(n,e,!0);r&&Es(r,t)&&(a=ie(a,r))}if(u(a))return(o.extendedContainersByFile||(o.extendedContainersByFile=new Map)).set(i,a),a}if(o.extendedContainers)return o.extendedContainers;const s=e.getSourceFiles();for(const e of s){if(!rO(e))continue;const n=ks(e);Es(n,t)&&(a=ie(a,n))}return o.extendedContainers=a||l}(t,n),s=function(e,t){const n=!!u(e.declarations)&&ge(e.declarations);if(111551&t&&n&&n.parent&&lE(n.parent)&&(uF(n)&&n===n.parent.initializer||qD(n)&&n===n.parent.type))return ks(n.parent)}(i,r);if(n&&i.flags&Ks(r)&&Gs(i,n,1920,!1))return ie(K(K([i],o),a),s);const c=!(i.flags&Ks(r))&&788968&i.flags&&524288&Au(i).flags&&111551===r?Hs(n,e=>rd(e,e=>{if(e.flags&Ks(r)&&P_(e)===Au(i))return e})):void 0;let _=c?[c,...o,i]:[...o,i];return _=ie(_,s),_=se(_,a),_}function d(e){return i&&Ds(e,i)}}function Ds(e,t){const n=oc(e),r=n&&n.exports&&n.exports.get("export=");return r&&Is(r,t)?n:void 0}function Es(e,t){if(e===Ts(t))return t;const n=e.exports&&e.exports.get("export=");if(n&&Is(n,t))return e;const r=hs(e),i=r.get(t.escapedName);return i&&Is(i,t)?i:rd(r,e=>{if(Is(e,t))return e})}function Is(e,t){if(xs($a(xs(e)))===xs($a(xs(t))))return e}function Os(e){return xs(e&&!!(1048576&e.flags)&&e.exportSymbol||e)}function Ls(e,t){return!!(111551&e.flags||2097152&e.flags&&111551&Ka(e,!t))}function js(e){var t;const n=new c(He,e);return p++,n.id=p,null==(t=Hn)||t.recordType(n),n}function Ms(e,t){const n=js(e);return n.symbol=t,n}function Rs(e){return new c(He,e)}function Bs(e,t,n=0,r){!function(e,t){const n=`${e},${t??""}`;Ct.has(n)&&un.fail(`Duplicate intrinsic type name ${e}${t?` (${t})`:""}; you may need to pass a name to createIntrinsicType.`),Ct.add(n)}(t,r);const i=js(e);return i.intrinsicName=t,i.debugIntrinsicName=r,i.objectFlags=52953088|n,i}function Js(e,t){const n=Ms(524288,t);return n.objectFlags=e,n.members=void 0,n.properties=void 0,n.callSignatures=void 0,n.constructSignatures=void 0,n.indexInfos=void 0,n}function zs(e){return Ms(262144,e)}function qs(e){return 95===e.charCodeAt(0)&&95===e.charCodeAt(1)&&95!==e.charCodeAt(2)&&64!==e.charCodeAt(2)&&35!==e.charCodeAt(2)}function Us(e){let t;return e.forEach((e,n)=>{Vs(e,n)&&(t||(t=[])).push(e)}),t||l}function Vs(e,t){return!qs(t)&&Ls(e)}function Ws(e,t,n,r,i){const o=e;return o.members=t,o.properties=l,o.callSignatures=n,o.constructSignatures=r,o.indexInfos=i,t!==P&&(o.properties=Us(t)),o}function $s(e,t,n,r,i){return Ws(Js(16,e),t,n,r,i)}function Hs(e,t){let n;for(let r=e;r;r=r.parent){if(su(r)&&r.locals&&!Yp(r)&&(n=t(r.locals,void 0,!0,r)))return n;switch(r.kind){case 308:if(!Zp(r))break;case 268:const e=ks(r);if(n=t((null==e?void 0:e.exports)||P,void 0,!0,r))return n;break;case 264:case 232:case 265:let i;if((ks(r).members||P).forEach((e,t)=>{788968&e.flags&&(i||(i=Gu())).set(t,e)}),i&&(n=t(i,void 0,!1,r)))return n}}return t(Ne,void 0,!0)}function Ks(e){return 111551===e?111551:1920}function Gs(e,t,n,r,i=new Map){if(!e||function(e){if(e.declarations&&e.declarations.length){for(const t of e.declarations)switch(t.kind){case 173:case 175:case 178:case 179:continue;default:return!1}return!0}return!1}(e))return;const o=ua(e),a=o.accessibleChainCache||(o.accessibleChainCache=new Map),s=Hs(t,(e,t,n,r)=>r),c=`${r?0:1}|${s?ZB(s):0}|${n}`;if(a.has(c))return a.get(c);const l=eJ(e);let _=i.get(l);_||i.set(l,_=[]);const u=Hs(t,d);return a.set(c,u),u;function d(n,i,o){if(!ce(_,n))return;const a=function(n,i,o){if(f(n.get(e.escapedName),void 0,i))return[e];return rd(n,n=>{if(2097152&n.flags&&"export="!==n.escapedName&&"default"!==n.escapedName&&!(hx(n)&&t&&rO(vd(t)))&&(!r||$(n.declarations,Tm))&&(!o||!$(n.declarations,Sm))&&(i||!Hu(n,282))){const e=m(n,Ha(n),i);if(e)return e}if(n.escapedName===e.escapedName&&n.exportSymbol&&f(xs(n.exportSymbol),void 0,i))return[e]})||(n===Ne?m(Fe,Fe,i):void 0)}(n,i,o);return _.pop(),a}function p(e,n){return!Xs(e,t,n)||!!Gs(e.parent,t,Ks(n),r,i)}function f(t,r,i){return(e===(r||t)||xs(e)===xs(r||t))&&!$(t.declarations,cc)&&(i||p(xs(t),n))}function m(e,t,r){if(f(e,t,r))return[e];const i=hs(t),o=i&&d(i,!0);return o&&p(e,Ks(n))?[e].concat(o):void 0}}function Xs(e,t,n){let r=!1;return Hs(t,t=>{let i=xs(t.get(e.escapedName));if(!i)return!1;if(i===e)return!0;const o=2097152&i.flags&&!Hu(i,282);return i=o?Ha(i):i,!!((o?Ka(i):i.flags)&n)&&(r=!0,!0)}),r}function Qs(e,t){return 0===rc(e,t,111551,!1,!0).accessibility}function Ys(e,t,n){return 0===rc(e,t,n,!1,!1).accessibility}function ec(e,t,n,r,i,o){if(!u(e))return;let a,s=!1;for(const c of e){const e=Gs(c,t,r,!1);if(e){a=c;const t=lc(e[0],i);if(t)return t}if(o&&$(c.declarations,cc)){if(i){s=!0;continue}return{accessibility:0}}const l=ec(Ns(c,t,r),t,n,n===c?Ks(r):r,i,o);if(l)return l}return s?{accessibility:0}:a?{accessibility:1,errorSymbolName:bc(n,t,r),errorModuleName:a!==n?bc(a,t,1920):void 0}:void 0}function tc(e,t,n,r){return rc(e,t,n,r,!0)}function rc(e,t,n,r,i){if(e&&t){const o=ec([e],t,e,n,r,i);if(o)return o;const a=d(e.declarations,oc);return a&&a!==oc(t)?{accessibility:2,errorSymbolName:bc(e,t,n),errorModuleName:bc(a),errorNode:Em(t)?t:void 0}:{accessibility:1,errorSymbolName:bc(e,t,n)}}return{accessibility:0}}function oc(e){const t=uc(e,sc);return t&&ks(t)}function sc(e){return cp(e)||308===e.kind&&Zp(e)}function cc(e){return lp(e)||308===e.kind&&Zp(e)}function lc(e,t){let n;if(v(N(e.declarations,e=>80!==e.kind),function(t){var n,i;if(!Vc(t)){const o=Ta(t);if(o&&!Nv(o,32)&&Vc(o.parent))return r(t,o);if(lE(t)&&WF(t.parent.parent)&&!Nv(t.parent.parent,32)&&Vc(t.parent.parent.parent))return r(t,t.parent.parent);if(wp(t)&&!Nv(t,32)&&Vc(t.parent))return r(t,t);if(lF(t)){if(2097152&e.flags&&Em(t)&&(null==(n=t.parent)?void 0:n.parent)&&lE(t.parent.parent)&&(null==(i=t.parent.parent.parent)?void 0:i.parent)&&WF(t.parent.parent.parent.parent)&&!Nv(t.parent.parent.parent.parent,32)&&t.parent.parent.parent.parent.parent&&Vc(t.parent.parent.parent.parent.parent))return r(t,t.parent.parent.parent.parent);if(2&e.flags){const e=nc(t);if(170===e.kind)return!1;const n=e.parent.parent;return 244===n.kind&&(!!Nv(n,32)||!!Vc(n.parent)&&r(t,n))}}return!1}return!0}))return{accessibility:0,aliasesToMakeVisible:n};function r(e,r){return t&&(da(e).isVisible=!0,n=le(n,r)),!0}}function dc(e){let t;return t=187===e.parent.kind||234===e.parent.kind&&!wf(e.parent)||168===e.parent.kind||183===e.parent.kind&&e.parent.parameterName===e?1160127:167===e.kind||212===e.kind||272===e.parent.kind||167===e.parent.kind&&e.parent.left===e||212===e.parent.kind&&e.parent.expression===e||213===e.parent.kind&&e.parent.expression===e?1920:788968,t}function vc(e,t,n=!0){const r=dc(e),i=sb(e),o=Ue(t,i.escapedText,r,void 0,!1);return o&&262144&o.flags&&788968&r||!o&&lv(i)&&0===tc(ks(em(i,!1,!1)),i,r,!1).accessibility?{accessibility:0}:o?lc(o,n)||{accessibility:1,errorSymbolName:Xd(i),errorNode:i}:{accessibility:3,errorSymbolName:Xd(i),errorNode:i}}function bc(e,t,n,r=4,i){let o=70221824,a=0;2&r&&(o|=128),1&r&&(o|=512),8&r&&(o|=16384),32&r&&(a|=4),16&r&&(a|=1);const s=4&r?xe.symbolToNode:xe.symbolToEntityName;return i?c(i).getText():ad(c);function c(r){const i=s(e,n,t,o,a),c=308===(null==t?void 0:t.kind)?bU():vU(),l=t&&vd(t);return c.writeNode(4,i,l,r),r}}function kc(e,t,n=0,r,i,o,a,s){return i?c(i).getText():ad(c);function c(i){let c;c=262144&n?1===r?186:185:1===r?181:180;const l=xe.signatureToSignatureDeclaration(e,c,t,70222336|Ac(n),void 0,void 0,o,a,s),_=xU(),u=t&&vd(t);return _.writeNode(4,l,u,Ly(i)),i}}function Tc(e,t,n=1064960,r=Oy(""),i,o,a){const s=!i&&j.noErrorTruncation||1&n,c=xe.typeToTypeNode(e,t,70221824|Ac(n)|(s?1:0),void 0,void 0,i,o,a);if(void 0===c)return un.fail("should always get typenode");const l=e!==Pt?vU():yU(),_=t&&vd(t);l.writeNode(4,c,_,r);const u=r.getText(),d=i||(s?2*Wu:2*Vu);return d&&u&&u.length>=d?u.substr(0,d-3)+"...":u}function wc(e,t){let n=Pc(e.symbol)?Tc(e,e.symbol.valueDeclaration):Tc(e),r=Pc(t.symbol)?Tc(t,t.symbol.valueDeclaration):Tc(t);return n===r&&(n=Fc(e),r=Fc(t)),[n,r]}function Fc(e){return Tc(e,void 0,64)}function Pc(e){return e&&!!e.valueDeclaration&&V_(e.valueDeclaration)&&!vS(e.valueDeclaration)}function Ac(e=0){return 848330095&e}function Ic(e){return!!(e.symbol&&32&e.symbol.flags&&(e===mu(e.symbol)||524288&e.flags&&16777216&gx(e)))}function Oc(e){return Pk(e)}function jc(t){var n;const r=4&gx(t)?t.target.symbol:t.symbol;return rw(t)||!!(null==(n=null==r?void 0:r.declarations)?void 0:n.some(t=>e.isSourceFileDefaultLibrary(vd(t))))}function Mc(e,t,n=16384,r){return r?i(r).getText():ad(i);function i(r){const i=70222336|Ac(n),o=xe.typePredicateToTypePredicateNode(e,t,i),a=vU(),s=t&&vd(t);return a.writeNode(4,o,s,r),r}}function Bc(e){return 2===e?"private":4===e?"protected":"public"}function Jc(e){return e&&e.parent&&269===e.parent.kind&&fp(e.parent.parent)}function zc(e){return 308===e.kind||cp(e)}function qc(e,t){const n=ua(e).nameType;if(n){if(384&n.flags){const e=""+n.value;return ms(e,yk(j))||JT(e)?JT(e)&&Gt(e,"-")?`[${e}]`:e:`"${xy(e,34)}"`}if(8192&n.flags)return`[${Uc(n.symbol,t)}]`}}function Uc(e,t){var n;if((null==(n=null==t?void 0:t.remappedSymbolReferences)?void 0:n.has(eJ(e)))&&(e=t.remappedSymbolReferences.get(eJ(e))),t&&"default"===e.escapedName&&!(16384&t.flags)&&(!(16777216&t.flags)||!e.declarations||t.enclosingDeclaration&&uc(e.declarations[0],zc)!==uc(t.enclosingDeclaration,zc)))return"default";if(e.declarations&&e.declarations.length){let n=f(e.declarations,e=>Cc(e)?e:void 0);const r=n&&Cc(n);if(n&&r){if(fF(n)&&ng(n))return yc(e);if(kD(r)&&!(4096&rx(e))){const n=ua(e).nameType;if(n&&384&n.flags){const n=qc(e,t);if(void 0!==n)return n}}return Ap(r)}if(n||(n=e.declarations[0]),n.parent&&261===n.parent.kind)return Ap(n.parent.name);switch(n.kind){case 232:case 219:case 220:return!t||t.encounteredError||131072&t.flags||(t.encounteredError=!0),232===n.kind?"(Anonymous class)":"(Anonymous function)"}}const r=qc(e,t);return void 0!==r?r:yc(e)}function Vc(e){if(e){const t=da(e);return void 0===t.isVisible&&(t.isVisible=!!function(){switch(e.kind){case 339:case 347:case 341:return!!(e.parent&&e.parent.parent&&e.parent.parent.parent&&sP(e.parent.parent.parent));case 209:return Vc(e.parent.parent);case 261:if(k_(e.name)&&!e.name.elements.length)return!1;case 268:case 264:case 265:case 266:case 263:case 267:case 272:if(fp(e))return!0;const t=Zc(e);return 32&Ez(e)||272!==e.kind&&308!==t.kind&&33554432&t.flags?Vc(t):Yp(t);case 173:case 172:case 178:case 179:case 175:case 174:if(wv(e,6))return!1;case 177:case 181:case 180:case 182:case 170:case 269:case 185:case 186:case 188:case 184:case 189:case 190:case 193:case 194:case 197:case 203:return Vc(e.parent);case 274:case 275:case 277:return!1;case 169:case 308:case 271:return!0;default:return!1}}()),t.isVisible}return!1}function Wc(e,t){let n,r,i;return 11!==e.kind&&e.parent&&278===e.parent.kind?n=Ue(e,e,2998271,void 0,!1):282===e.parent.kind&&(n=Ja(e.parent,2998271)),n&&(i=new Set,i.add(eJ(n)),function e(n){d(n,n=>{const o=Ta(n)||n;if(t?da(n).isVisible=!0:(r=r||[],ce(r,o)),Nm(n)){const t=sb(n.moduleReference),r=Ue(n,t.escapedText,901119,void 0,!1);r&&i&&q(i,eJ(r))&&e(r.declarations)}})}(n.declarations)),r}function $c(e,t){const n=Hc(e,t);if(n>=0){const{length:e}=Ui;for(let t=n;t=$i;n--){if(Gc(Ui[n],Wi[n]))return-1;if(Ui[n]===e&&Wi[n]===t)return n}return-1}function Gc(e,t){switch(t){case 0:return!!ua(e).type;case 2:return!!ua(e).declaredType;case 1:return!!e.resolvedBaseConstructorType;case 3:return!!e.resolvedReturnType;case 4:return!!e.immediateBaseConstraint;case 5:return!!e.resolvedTypeArguments;case 6:return!!e.baseTypesResolved;case 7:return!!ua(e).writeType;case 8:return void 0!==da(e).parameterInitializerContainsUndefined}return un.assertNever(t)}function Yc(){return Ui.pop(),Wi.pop(),Vi.pop()}function Zc(e){return uc(Yh(e),e=>{switch(e.kind){case 261:case 262:case 277:case 276:case 275:case 274:return!1;default:return!0}}).parent}function el(e,t){const n=pm(e,t);return n?P_(n):void 0}function rl(e,t){var n;let r;return el(e,t)||(r=null==(n=og(e,t))?void 0:n.type)&&Pl(r,!0,!0)}function il(e){return e&&!!(1&e.flags)}function al(e){return e===Et||!!(1&e.flags&&e.aliasSymbol)}function cl(e,t){if(0!==t)return Al(e,!1,t);const n=ks(e);return n&&ua(n).type||Al(e,!1,t)}function dl(e,t,n){if(131072&(e=GD(e,e=>!(98304&e.flags))).flags)return Nn;if(1048576&e.flags)return nF(e,e=>dl(e,t,n));let r=Pb(E(t,Hb));const i=[],o=[];for(const t of Up(e)){const e=Kb(t,8576);FS(e,r)||6&ix(t)||!ck(t)?o.push(e):i.push(t)}if(Tx(e)||Cx(r)){if(o.length&&(r=Pb([r,...o])),131072&r.flags)return e;const t=(qr||(qr=Uy("Omit",2,!0)||xt),qr===xt?void 0:qr);return t?fy(t,[e,r]):Et}const a=Gu();for(const e of i)a.set(e.escapedName,lk(e,!1));const s=$s(n,a,l,l,Jm(e));return s.objectFlags|=4194304,s}function fl(e){return!!(465829888&e.flags)&&gj(pf(e)||Ot,32768)}function ml(e){return XN(UD(e,fl)?nF(e,e=>465829888&e.flags?ff(e):e):e,524288)}function xl(e,t){const n=Sl(e);return n?rE(n,t):t}function Sl(e){const t=function(e){const t=e.parent.parent;switch(t.kind){case 209:case 304:return Sl(t);case 210:return Sl(e.parent);case 261:return t.initializer;case 227:return t.right}}(e);if(t&&Og(t)&&t.flowNode){const n=Tl(e);if(n){const r=xI(CI.createStringLiteral(n),e),i=R_(t)?t:CI.createParenthesizedExpression(t),o=xI(CI.createElementAccessExpression(i,r),e);return DT(r,o),DT(o,e),i!==t&&DT(i,o),o.flowNode=t.flowNode,o}}}function Tl(e){const t=e.parent;return 209===e.kind&&207===t.kind?Cl(e.propertyName||e.name):304===e.kind||305===e.kind?Cl(e.name):""+t.elements.indexOf(e)}function Cl(e){const t=Hb(e);return 384&t.flags?""+t.value:void 0}function wl(e){const t=e.dotDotDotToken?32:0,n=cl(e.parent.parent,t);return n&&Dl(e,n,!1)}function Dl(e,t,n){if(il(t))return t;const r=e.parent;H&&33554432&e.flags&&Qh(e)?t=fw(t):H&&r.parent.initializer&&!KN(_D(r.parent.initializer),65536)&&(t=XN(t,524288));const i=32|(n||MA(e)?16:0);let o;if(207===r.kind)if(e.dotDotDotToken){if(2&(t=Bf(t)).flags||!WA(t))return zo(e,_a.Rest_types_may_only_be_created_from_object_types),Et;const n=[];for(const e of r.elements)e.dotDotDotToken||n.push(e.propertyName||e.name);o=dl(t,n,e.symbol)}else{const n=e.propertyName||e.name;o=xl(e,Ax(t,Hb(n),i,n))}else{const n=SR(65|(e.dotDotDotToken?0:128),t,jt,r),a=r.elements.indexOf(e);if(e.dotDotDotToken){const e=nF(t,e=>58982400&e.flags?ff(e):e);o=KD(e,rw)?nF(e,e=>ib(e,a)):Rv(n)}else o=JC(t)?xl(e,Ox(t,mk(a),i,e.name)||Et):n}return e.initializer?fv(nc(e))?H&&!KN(Lj(e,0),16777216)?ml(o):o:Mj(e,Pb([ml(o),Lj(e,0)],2)):o}function Fl(e){const t=nl(e);if(t)return Pk(t)}function El(e){const t=ah(e,!0);return 210===t.kind&&0===t.elements.length}function Pl(e,t=!1,n=!0){return H&&n?pw(e,t):e}function Al(e,t,n){if(lE(e)&&250===e.parent.parent.kind){const t=Yb(DI(eM(e.parent.parent.expression,n)));return 4456448&t.flags?Zb(t):Vt}if(lE(e)&&251===e.parent.parent.kind)return kR(e.parent.parent)||wt;if(k_(e.parent))return wl(e);const r=ND(e)&&!Iv(e)||wD(e)||$P(e),i=t&&XT(e),o=g_(e);if(sp(e))return o?il(o)||o===Ot?o:Et:ae?Ot:wt;if(o)return Pl(o,r,i);if((ne||Em(e))&&lE(e)&&!k_(e.name)&&!(32&Ez(e))&&!(33554432&e.flags)){if(!(6&Pz(e))&&(!e.initializer||function(e){const t=ah(e,!0);return 106===t.kind||80===t.kind&&NN(t)===De}(e.initializer)))return Nt;if(e.initializer&&El(e.initializer))return lr}if(TD(e)){if(!e.symbol)return;const t=e.parent;if(179===t.kind&&fd(t)){const n=Hu(ks(e.parent),178);if(n){const r=Eg(n),i=lz(t);return i&&e===i?(un.assert(!i.type),P_(r.thisParameter)):Gg(r)}}const n=function(e,t){const n=Pg(e);if(!n)return;const r=e.parameters.indexOf(t);return t.dotDotDotToken?OL(n,r):AL(n,r)}(t,e);if(n)return n;const r="this"===e.symbol.escapedName?HP(t):GP(e);if(r)return Pl(r,!1,i)}if(Pu(e)&&e.initializer){if(Em(e)&&!TD(e)){const t=$l(e,ks(e),Wm(e));if(t)return t}return Pl(Mj(e,Lj(e,n)),r,i)}if(ND(e)&&(ne||Em(e))){if(Fv(e)){const t=N(e.parent.members,ED),n=t.length?function(e,t){const n=Gt(e.escapedName,"__#")?mw.createPrivateIdentifier(e.escapedName.split("@")[1]):mc(e.escapedName);for(const r of t){const t=mw.createPropertyAccessExpression(mw.createThis(),n);DT(t.expression,t),DT(t,r),t.flowNode=r.returnFlowNode;const i=Ul(t,e);if(!ne||i!==Nt&&i!==lr||zo(e.valueDeclaration,_a.Member_0_implicitly_has_an_1_type,bc(e),Tc(i)),!KD(i,NI))return dR(i)}}(e.symbol,t):128&Bv(e)?xC(e.symbol):void 0;return n&&Pl(n,!0,i)}{const t=yC(e.parent),n=t?Jl(e.symbol,t):128&Bv(e)?xC(e.symbol):void 0;return n&&Pl(n,!0,i)}}return KE(e)?Yt:k_(e.name)?n_(e.name,!1,!0):void 0}function Ll(e){if(e.valueDeclaration&&NF(e.valueDeclaration)){const t=ua(e);return void 0===t.isConstructorDeclaredProperty&&(t.isConstructorDeclaredProperty=!1,t.isConstructorDeclaredProperty=!!Ml(e)&&v(e.declarations,t=>NF(t)&&rA(t)&&(213!==t.left.kind||jh(t.left.argumentExpression))&&!Hl(void 0,t,e,t))),t.isConstructorDeclaredProperty}return!1}function jl(e){const t=e.valueDeclaration;return t&&ND(t)&&!fv(t)&&!t.initializer&&(ne||Em(t))}function Ml(e){if(e.declarations)for(const t of e.declarations){const e=em(t,!1,!1);if(e&&(177===e.kind||sL(e)))return e}}function Jl(e,t){const n=Gt(e.escapedName,"__#")?mw.createPrivateIdentifier(e.escapedName.split("@")[1]):mc(e.escapedName),r=mw.createPropertyAccessExpression(mw.createThis(),n);DT(r.expression,r),DT(r,t),r.flowNode=t.returnFlowNode;const i=Ul(r,e);return!ne||i!==Nt&&i!==lr||zo(e.valueDeclaration,_a.Member_0_implicitly_has_an_1_type,bc(e),Tc(i)),KD(i,NI)?void 0:dR(i)}function Ul(e,t){const n=(null==t?void 0:t.valueDeclaration)&&(!jl(t)||128&Bv(t.valueDeclaration))&&xC(t)||jt;return rE(e,Nt,n)}function Vl(e,t){const n=$m(e.valueDeclaration);if(n){const t=Em(n)?tl(n):void 0;return t&&t.typeExpression?Pk(t.typeExpression):e.valueDeclaration&&$l(e.valueDeclaration,e,n)||ZC(Ij(n))}let r,i=!1,o=!1;if(Ll(e)&&(r=Jl(e,Ml(e))),!r){let n;if(e.declarations){let a;for(const r of e.declarations){const s=NF(r)||fF(r)?r:Sx(r)?NF(r.parent)?r.parent:r:void 0;if(!s)continue;const c=Sx(s)?ug(s):tg(s);(4===c||NF(s)&&rA(s,c))&&(Ql(s)?i=!0:o=!0),fF(s)||(a=Hl(a,s,e,r)),a||(n||(n=[])).push(NF(s)||fF(s)?Xl(e,t,s,c):_n)}r=a}if(!r){if(!u(n))return Et;let t=i&&e.declarations?function(e,t){return un.assert(e.length===t.length),e.filter((e,n)=>{const r=t[n],i=NF(r)?r:NF(r.parent)?r.parent:void 0;return i&&Ql(i)})}(n,e.declarations):void 0;if(o){const n=xC(e);n&&((t||(t=[])).push(n),i=!0)}r=Pb($(t,e=>!!(-98305&e.flags))?t:n)}}const a=jw(Pl(r,!1,o&&!i));return e.valueDeclaration&&Em(e.valueDeclaration)&&GD(a,e=>!!(-98305&e.flags))===_n?(Jw(e.valueDeclaration,wt),wt):a}function $l(e,t,n){var r,i;if(!Em(e)||!n||!uF(n)||n.properties.length)return;const o=Gu();for(;NF(e)||dF(e);){const t=Ss(e);(null==(r=null==t?void 0:t.exports)?void 0:r.size)&&ca(o,t.exports),e=NF(e)?e.parent:e.parent.parent}const a=Ss(e);(null==(i=null==a?void 0:a.exports)?void 0:i.size)&&ca(o,a.exports);const s=$s(t,o,l,l,l);return s.objectFlags|=4096,s}function Hl(e,t,n,r){var i;const o=fv(t.parent);if(o){const t=jw(Pk(o));if(!e)return t;al(e)||al(t)||SS(e,t)||fR(void 0,e,r,t)}if(null==(i=n.parent)?void 0:i.valueDeclaration){const e=ws(n.parent);if(e.valueDeclaration){const t=fv(e.valueDeclaration);if(t){const e=pm(Pk(t),n.escapedName);if(e)return M_(e)}}}return e}function Xl(e,t,n,r){if(fF(n)){if(t)return P_(t);const e=Ij(n.arguments[2]),r=el(e,"value");if(r)return r;const i=el(e,"get");if(i){const e=CO(i);if(e)return Gg(e)}const o=el(e,"set");if(o){const e=CO(o);if(e)return zL(e)}return wt}if(function(e,t){return dF(e)&&110===e.expression.kind&&QI(t,t=>EN(e,t))}(n.left,n.right))return wt;const i=1===r&&(dF(n.left)||pF(n.left))&&(eg(n.left.expression)||aD(n.left.expression)&&Ym(n.left.expression)),o=t?P_(t):i?dk(Ij(n.right)):ZC(Ij(n.right));if(524288&o.flags&&2===r&&"export="===e.escapedName){const n=Cp(o),r=Gu();od(n.members,r);const i=r.size;t&&!t.exports&&(t.exports=Gu()),(t||e).exports.forEach((e,t)=>{var n;const i=r.get(t);if(!i||i===e||2097152&e.flags)r.set(t,e);else if(111551&e.flags&&111551&i.flags){if(e.valueDeclaration&&i.valueDeclaration&&vd(e.valueDeclaration)!==vd(i.valueDeclaration)){const t=mc(e.escapedName),r=(null==(n=tt(i.valueDeclaration,Sc))?void 0:n.name)||i.valueDeclaration;aT(zo(e.valueDeclaration,_a.Duplicate_identifier_0,t),Rp(r,_a._0_was_also_declared_here,t)),aT(zo(r,_a.Duplicate_identifier_0,t),Rp(e.valueDeclaration,_a._0_was_also_declared_here,t))}const o=Xo(e.flags|i.flags,t);o.links.type=Pb([P_(e),P_(i)]),o.valueDeclaration=i.valueDeclaration,o.declarations=K(i.declarations,e.declarations),r.set(t,o)}else r.set(t,ia(e,i))});const a=$s(i!==r.size?void 0:n.symbol,r,n.callSignatures,n.constructSignatures,n.indexInfos);if(i===r.size&&(o.aliasSymbol&&(a.aliasSymbol=o.aliasSymbol,a.aliasTypeArguments=o.aliasTypeArguments),4&gx(o))){a.aliasSymbol=o.symbol;const e=uy(o);a.aliasTypeArguments=u(e)?e:void 0}return a.objectFlags|=iy([o])|20608&gx(o),a.symbol&&32&a.symbol.flags&&o===mu(a.symbol)&&(a.objectFlags|=16777216),a}return VC(o)?(Jw(n,cr),cr):o}function Ql(e){const t=em(e,!1,!1);return 177===t.kind||263===t.kind||219===t.kind&&!pg(t.parent)}function Yl(e,t,n){return e.initializer?Pl(Rj(e,Lj(e,0,k_(e.name)?n_(e.name,!0,!1):Ot))):k_(e.name)?n_(e.name,t,n):(n&&!m_(e)&&Jw(e,wt),t?At:wt)}function n_(e,t=!1,n=!1){t&&Ii.push(e);const r=207===e.kind?function(e,t,n){const r=Gu();let i,o=131200;d(e.elements,e=>{const a=e.propertyName||e.name;if(e.dotDotDotToken)return void(i=Ah(Vt,wt,!1));const s=Hb(a);if(!sC(s))return void(o|=512);const c=cC(s),l=Xo(4|(e.initializer?16777216:0),c);l.links.type=Yl(e,t,n),r.set(l.escapedName,l)});const a=$s(void 0,r,l,l,i?[i]:l);return a.objectFlags|=o,t&&(a.pattern=e,a.objectFlags|=131072),a}(e,t,n):function(e,t,n){const r=e.elements,i=ye(r),o=i&&209===i.kind&&i.dotDotDotToken?i:void 0;if(0===r.length||1===r.length&&o)return M>=2?Mv(wt):cr;const a=E(r,e=>IF(e)?wt:Yl(e,t,n)),s=S(r,e=>!(e===o||IF(e)||MA(e)),r.length-1)+1;let c=Gv(a,E(r,(e,t)=>e===o?4:t>=s?2:1));return t&&(c=sy(c),c.pattern=e,c.objectFlags|=131072),c}(e,t,n);return t&&Ii.pop(),r}function s_(e,t){return c_(Al(e,!0,0),e,t)}function c_(e,t,n){return e?(4096&e.flags&&function(e){const t=Ss(e),n=pr||(pr=qy("SymbolConstructor",!1));return n&&t&&t===n}(t.parent)&&(e=xk(t)),n&&zw(t,e),8192&e.flags&&(lF(t)||!g_(t))&&e.symbol!==ks(t)&&(e=cn),jw(e)):(e=TD(t)&&t.dotDotDotToken?cr:wt,n&&(m_(t)||Jw(t,e)),e)}function m_(e){const t=Yh(e);return vM(170===t.kind?t.parent:t)}function g_(e){const t=fv(e);if(t)return Pk(t)}function h_(e){if(e)switch(e.kind){case 178:return gv(e);case 179:return yv(e);case 173:return un.assert(Iv(e)),fv(e)}}function y_(e){const t=h_(e);return t&&Pk(t)}function x_(e){const t=ua(e);if(!t.type){if(!$c(e,0))return Et;const n=Hu(e,178),r=Hu(e,179),i=tt(Hu(e,173),p_);let o=n&&Em(n)&&Fl(n)||y_(n)||y_(r)||y_(i)||n&&n.body&&ZL(n)||i&&s_(i,!0);o||(r&&!vM(r)?Vo(ne,r,_a.Property_0_implicitly_has_type_any_because_its_set_accessor_lacks_a_parameter_type_annotation,bc(e)):n&&!vM(n)?Vo(ne,n,_a.Property_0_implicitly_has_type_any_because_its_get_accessor_lacks_a_return_type_annotation,bc(e)):i&&!vM(i)&&Vo(ne,i,_a.Member_0_implicitly_has_an_1_type,bc(e),"any"),o=wt),Yc()||(h_(n)?zo(n,_a._0_is_referenced_directly_or_indirectly_in_its_own_type_annotation,bc(e)):h_(r)||h_(i)?zo(r,_a._0_is_referenced_directly_or_indirectly_in_its_own_type_annotation,bc(e)):n&&ne&&zo(n,_a._0_implicitly_has_return_type_any_because_it_does_not_have_a_return_type_annotation_and_is_referenced_directly_or_indirectly_in_one_of_its_return_expressions,bc(e)),o=wt),t.type??(t.type=o)}return t.type}function T_(e){const t=ua(e);if(!t.writeType){if(!$c(e,7))return Et;const n=Hu(e,179)??tt(Hu(e,173),p_);let r=y_(n);Yc()||(h_(n)&&zo(n,_a._0_is_referenced_directly_or_indirectly_in_its_own_type_annotation,bc(e)),r=wt),t.writeType??(t.writeType=r||x_(e))}return t.writeType}function C_(e){const t=cu(mu(e));return 8650752&t.flags?t:2097152&t.flags?b(t.types,e=>!!(8650752&e.flags)):void 0}function w_(e){let t=ua(e);const n=t;if(!t.type){const r=e.valueDeclaration&&lL(e.valueDeclaration,!1);if(r){const n=cL(e,r);n&&(e=n,t=n.links)}n.type=t.type=function(e){const t=e.valueDeclaration;if(1536&e.flags&&up(e))return wt;if(t&&(227===t.kind||Sx(t)&&227===t.parent.kind))return Vl(e);if(512&e.flags&&t&&sP(t)&&t.commonJsModuleIndicator){const t=ss(e);if(t!==e){if(!$c(e,0))return Et;const n=xs(e.exports.get("export=")),r=Vl(n,n===t?void 0:t);return Yc()?r:D_(e)}}const n=Js(16,e);if(32&e.flags){const t=C_(e);return t?Bb([n,t]):n}return H&&16777216&e.flags?pw(n,!0):n}(e)}return t.type}function N_(e){const t=ua(e);return t.type||(t.type=Tu(e))}function D_(e){const t=e.valueDeclaration;if(t){if(fv(t))return zo(e.valueDeclaration,_a._0_is_referenced_directly_or_indirectly_in_its_own_type_annotation,bc(e)),Et;ne&&(170!==t.kind||t.initializer)&&zo(e.valueDeclaration,_a._0_implicitly_has_type_any_because_it_does_not_have_a_type_annotation_and_is_referenced_directly_or_indirectly_in_its_own_initializer,bc(e))}else if(2097152&e.flags){const t=Ca(e);t&&zo(t,_a.Circular_definition_of_import_alias_0,bc(e))}return wt}function F_(e){const t=ua(e);return t.type||(un.assertIsDefined(t.deferralParent),un.assertIsDefined(t.deferralConstituents),t.type=1048576&t.deferralParent.flags?Pb(t.deferralConstituents):Bb(t.deferralConstituents)),t.type}function E_(e){const t=rx(e);return 2&t?65536&t?function(e){const t=ua(e);return!t.writeType&&t.deferralWriteConstituents&&(un.assertIsDefined(t.deferralParent),un.assertIsDefined(t.deferralConstituents),t.writeType=1048576&t.deferralParent.flags?Pb(t.deferralWriteConstituents):Bb(t.deferralWriteConstituents)),t.writeType}(e)||F_(e):e.links.writeType||e.links.type:4&e.flags?kw(P_(e),!!(16777216&e.flags)):98304&e.flags?1&t?function(e){const t=ua(e);return t.writeType||(t.writeType=fS(E_(t.target),t.mapper))}(e):T_(e):P_(e)}function P_(e){const t=rx(e);return 65536&t?F_(e):1&t?function(e){const t=ua(e);return t.type||(t.type=fS(P_(t.target),t.mapper))}(e):262144&t?function(e){var t;if(!e.links.type){const n=e.links.mappedType;if(!$c(e,0))return n.containsError=!0,Et;const i=fS(_p(n.target||n),rS(n.mapper,rp(n),e.links.keyType));let o=H&&16777216&e.flags&&!gj(i,49152)?pw(i,!0):524288&e.links.checkFlags?Tw(i):i;Yc()||(zo(r,_a.Type_of_property_0_circularly_references_itself_in_mapped_type_1,bc(e),Tc(n)),o=Et),(t=e.links).type??(t.type=o)}return e.links.type}(e):8192&t?function(e){const t=ua(e);return t.type||(t.type=aN(e.links.propertyType,e.links.mappedType,e.links.constraintType)||Ot),t.type}(e):7&e.flags?function(e){const t=ua(e);if(!t.type){const n=function(e){if(4194304&e.flags)return function(e){const t=Au(Ts(e));return t.typeParameters?ay(t,E(t.typeParameters,e=>wt)):t}(e);if(e===je)return wt;if(134217728&e.flags&&e.valueDeclaration){const t=ks(vd(e.valueDeclaration)),n=Xo(t.flags,"exports");n.declarations=t.declarations?t.declarations.slice():[],n.parent=e,n.links.target=t,t.valueDeclaration&&(n.valueDeclaration=t.valueDeclaration),t.members&&(n.members=new Map(t.members)),t.exports&&(n.exports=new Map(t.exports));const r=Gu();return r.set("exports",n),$s(e,r,l,l,l)}un.assertIsDefined(e.valueDeclaration);const t=e.valueDeclaration;if(sP(t)&&ef(t))return t.statements.length?jw(ZC(eM(t.statements[0].expression))):Nn;if(d_(t))return x_(e);if(!$c(e,0))return 512&e.flags&&!(67108864&e.flags)?w_(e):D_(e);let n;if(278===t.kind)n=c_(g_(t)||Ij(t.expression),t);else if(NF(t)||Em(t)&&(fF(t)||(dF(t)||ag(t))&&NF(t.parent)))n=Vl(e);else if(dF(t)||pF(t)||aD(t)||ju(t)||zN(t)||dE(t)||uE(t)||FD(t)&&!Jf(t)||DD(t)||sP(t)){if(9136&e.flags)return w_(e);n=NF(t.parent)?Vl(e):g_(t)||wt}else if(rP(t))n=g_(t)||qj(t);else if(KE(t))n=g_(t)||XA(t);else if(iP(t))n=g_(t)||zj(t.name,0);else if(Jf(t))n=g_(t)||Uj(t,0);else if(TD(t)||ND(t)||wD(t)||lE(t)||lF(t)||Nl(t))n=s_(t,!0);else if(mE(t))n=w_(e);else{if(!aP(t))return un.fail("Unhandled declaration kind! "+un.formatSyntaxKind(t.kind)+" for "+un.formatSymbol(e));n=N_(e)}return Yc()?n:512&e.flags&&!(67108864&e.flags)?w_(e):D_(e)}(e);return t.type||function(e){let t=e.valueDeclaration;return!!t&&(lF(t)&&(t=nc(t)),!!TD(t)&&xS(t.parent))}(e)||(t.type=n),n}return t.type}(e):9136&e.flags?w_(e):8&e.flags?N_(e):98304&e.flags?x_(e):2097152&e.flags?function(e){const t=ua(e);if(!t.type){if(!$c(e,0))return Et;const n=Ha(e),r=e.declarations&&Ua(Ca(e),!0),i=f(null==r?void 0:r.declarations,e=>AE(e)?g_(e):void 0);if(t.type??(t.type=(null==r?void 0:r.declarations)&&PB(r.declarations)&&e.declarations.length?function(e){const t=vd(e.declarations[0]),n=mc(e.escapedName),r=e.declarations.every(e=>Em(e)&&Sx(e)&&eg(e.expression)),i=r?mw.createPropertyAccessExpression(mw.createPropertyAccessExpression(mw.createIdentifier("module"),mw.createIdentifier("exports")),n):mw.createPropertyAccessExpression(mw.createIdentifier("exports"),n);return r&&DT(i.expression.expression,i.expression),DT(i.expression,i),DT(i,t),i.flowNode=t.endFlowNode,rE(i,Nt,jt)}(r):PB(e.declarations)?Nt:i||(111551&Ka(n)?P_(n):Et)),!Yc())return D_(r??e),t.type??(t.type=Et)}return t.type}(e):Et}function M_(e){return kw(P_(e),!!(16777216&e.flags))}function B_(e,t){if(void 0===e||!(4&gx(e)))return!1;for(const n of t)if(e.target===n)return!0;return!1}function J_(e,t){return void 0!==e&&void 0!==t&&!!(4&gx(e))&&e.target===t}function z_(e){return 4&gx(e)?e.target:e}function q_(e,t){return function e(n){if(7&gx(n)){const r=z_(n);return r===t||$(uu(r),e)}return!!(2097152&n.flags)&&$(n.types,e)}(e)}function U_(e,t){for(const n of t)e=le(e,Cu(ks(n)));return e}function H_(e,t){for(;;){if((e=e.parent)&&NF(e)){const t=tg(e);if(6===t||3===t){const t=ks(e.left);t&&t.parent&&!uc(t.parent.valueDeclaration,t=>e===t)&&(e=t.parent.valueDeclaration)}}if(!e)return;const n=e.kind;switch(n){case 264:case 232:case 265:case 180:case 181:case 174:case 185:case 186:case 318:case 263:case 175:case 219:case 220:case 266:case 346:case 347:case 341:case 339:case 201:case 195:{const r=H_(e,t);if((219===n||220===n||Jf(e))&&vS(e)){const t=fe(mm(P_(ks(e)),0));if(t&&t.typeParameters)return[...r||l,...t.typeParameters]}if(201===n)return ie(r,Cu(ks(e.typeParameter)));if(195===n)return K(r,Vx(e));const i=U_(r,_l(e)),o=t&&(264===n||232===n||265===n||sL(e))&&mu(ks(e)).thisType;return o?ie(i,o):i}case 342:const r=Bg(e);r&&(e=r.valueDeclaration);break;case 321:{const n=H_(e,t);return e.tags?U_(n,O(e.tags,e=>UP(e)?e.typeParameters:void 0)):n}}}}function Y_(e){var t;const n=32&e.flags||16&e.flags?e.valueDeclaration:null==(t=e.declarations)?void 0:t.find(e=>{if(265===e.kind)return!0;if(261!==e.kind)return!1;const t=e.initializer;return!!t&&(219===t.kind||220===t.kind)});return un.assert(!!n,"Class was missing valueDeclaration -OR- non-class had no interface declarations"),H_(n)}function Z_(e){if(!e.declarations)return;let t;for(const n of e.declarations)(265===n.kind||264===n.kind||232===n.kind||sL(n)||Fg(n))&&(t=U_(t,_l(n)));return t}function eu(e){const t=mm(e,1);if(1===t.length){const e=t[0];if(!e.typeParameters&&1===e.parameters.length&&aJ(e)){const t=CL(e.parameters[0]);return il(t)||BC(t)===wt}}return!1}function tu(e){if(mm(e,1).length>0)return!0;if(8650752&e.flags){const t=pf(e);return!!t&&eu(t)}return!1}function nu(e){const t=mx(e.symbol);return t&&yh(t)}function ru(e,t,n){const r=u(t),i=Em(n);return N(mm(e,1),e=>(i||r>=Tg(e.typeParameters))&&r<=u(e.typeParameters))}function iu(e,t,n){const r=ru(e,t,n),i=E(t,Pk);return A(r,e=>$(e.typeParameters)?dh(e,i,Em(n)):e)}function cu(e){if(!e.resolvedBaseConstructorType){const t=mx(e.symbol),n=t&&yh(t),r=nu(e);if(!r)return e.resolvedBaseConstructorType=jt;if(!$c(e,1))return Et;const i=eM(r.expression);if(n&&r!==n&&(un.assert(!n.typeArguments),eM(n.expression)),2621440&i.flags&&Cp(i),!Yc())return zo(e.symbol.valueDeclaration,_a._0_is_referenced_directly_or_indirectly_in_its_own_base_expression,bc(e.symbol)),e.resolvedBaseConstructorType??(e.resolvedBaseConstructorType=Et);if(!(1&i.flags||i===Ut||tu(i))){const t=zo(r.expression,_a.Type_0_is_not_a_constructor_function_type,Tc(i));if(262144&i.flags){const e=Gh(i);let n=Ot;if(e){const t=mm(e,1);t[0]&&(n=Gg(t[0]))}i.symbol.declarations&&aT(t,Rp(i.symbol.declarations[0],_a.Did_you_mean_for_0_to_be_constrained_to_type_new_args_Colon_any_1,bc(i.symbol),Tc(n)))}return e.resolvedBaseConstructorType??(e.resolvedBaseConstructorType=Et)}e.resolvedBaseConstructorType??(e.resolvedBaseConstructorType=i)}return e.resolvedBaseConstructorType}function lu(e,t){zo(e,_a.Type_0_recursively_references_itself_as_a_base_type,Tc(t,void 0,2))}function uu(e){if(!e.baseTypesResolved){if($c(e,6)&&(8&e.objectFlags?e.resolvedBaseTypes=[du(e)]:96&e.symbol.flags?(32&e.symbol.flags&&function(e){e.resolvedBaseTypes=qu;const t=Sf(cu(e));if(!(2621441&t.flags))return e.resolvedBaseTypes=l;const n=nu(e);let r;const i=t.symbol?Au(t.symbol):void 0;if(t.symbol&&32&t.symbol.flags&&function(e){const t=e.outerTypeParameters;if(t){const n=t.length-1,r=uy(e);return t[n].symbol!==r[n].symbol}return!0}(i))r=py(n,t.symbol);else if(1&t.flags)r=t;else{const i=iu(t,n.typeArguments,n);if(!i.length)return zo(n.expression,_a.No_base_constructor_has_the_specified_number_of_type_arguments),e.resolvedBaseTypes=l;r=Gg(i[0])}if(al(r))return e.resolvedBaseTypes=l;const o=Bf(r);if(!fu(o)){const t=Zx(Gf(void 0,r),_a.Base_constructor_return_type_0_is_not_an_object_type_or_intersection_of_object_types_with_statically_known_members,Tc(o));return ho.add(zp(vd(n.expression),n.expression,t)),e.resolvedBaseTypes=l}if(e===o||q_(o,e))return zo(e.symbol.valueDeclaration,_a.Type_0_recursively_references_itself_as_a_base_type,Tc(e,void 0,2)),e.resolvedBaseTypes=l;e.resolvedBaseTypes===qu&&(e.members=void 0),e.resolvedBaseTypes=[o]}(e),64&e.symbol.flags&&function(e){if(e.resolvedBaseTypes=e.resolvedBaseTypes||l,e.symbol.declarations)for(const t of e.symbol.declarations)if(265===t.kind&&kh(t))for(const n of kh(t)){const r=Bf(Pk(n));al(r)||(fu(r)?e===r||q_(r,e)?lu(t,e):e.resolvedBaseTypes===l?e.resolvedBaseTypes=[r]:e.resolvedBaseTypes.push(r):zo(n,_a.An_interface_can_only_extend_an_object_type_or_intersection_of_object_types_with_statically_known_members))}}(e)):un.fail("type must be class or interface"),!Yc()&&e.symbol.declarations))for(const t of e.symbol.declarations)264!==t.kind&&265!==t.kind||lu(t,e);e.baseTypesResolved=!0}return e.resolvedBaseTypes}function du(e){return Rv(Pb(A(e.typeParameters,(t,n)=>8&e.elementFlags[n]?Ax(t,Wt):t)||l),e.readonly)}function fu(e){if(262144&e.flags){const t=pf(e);if(t)return fu(t)}return!!(67633153&e.flags&&!Sp(e)||2097152&e.flags&&v(e.types,fu))}function mu(e){let t=ua(e);const n=t;if(!t.declaredType){const r=32&e.flags?1:2,i=cL(e,e.valueDeclaration&&function(e){var t;const n=e&&lL(e,!0),r=null==(t=null==n?void 0:n.exports)?void 0:t.get("prototype"),i=(null==r?void 0:r.valueDeclaration)&&function(e){if(!e.parent)return!1;let t=e.parent;for(;t&&212===t.kind;)t=t.parent;if(t&&NF(t)&&ub(t.left)&&64===t.operatorToken.kind){const e=dg(t);return uF(e)&&e}}(r.valueDeclaration);return i?ks(i):void 0}(e.valueDeclaration));i&&(e=i,t=i.links);const o=n.declaredType=t.declaredType=Js(r,e),a=Y_(e),s=Z_(e);(a||s||1===r||!function(e){if(!e.declarations)return!0;for(const t of e.declarations)if(265===t.kind){if(256&t.flags)return!1;const e=kh(t);if(e)for(const t of e)if(ab(t.expression)){const e=ts(t.expression,788968,!0);if(!e||!(64&e.flags)||mu(e).thisType)return!1}}return!0}(e))&&(o.objectFlags|=4,o.typeParameters=K(a,s),o.outerTypeParameters=a,o.localTypeParameters=s,o.instantiations=new Map,o.instantiations.set(ny(o.typeParameters),o),o.target=o,o.resolvedTypeArguments=o.typeParameters,o.thisType=zs(e),o.thisType.isThisType=!0,o.thisType.constraint=o)}return t.declaredType}function gu(e){var t;const n=ua(e);if(!n.declaredType){if(!$c(e,2))return Et;const r=un.checkDefined(null==(t=e.declarations)?void 0:t.find(Fg),"Type alias symbol with no valid declaration found"),i=Dg(r)?r.typeExpression:r.type;let o=i?Pk(i):Et;if(Yc()){const t=Z_(e);t&&(n.typeParameters=t,n.instantiations=new Map,n.instantiations.set(ny(t),o)),o===It&&"BuiltinIteratorReturn"===e.escapedName&&(o=mv())}else o=Et,341===r.kind?zo(r.typeExpression.type,_a.Type_alias_0_circularly_references_itself,bc(e)):zo(Sc(r)&&r.name||r,_a.Type_alias_0_circularly_references_itself,bc(e));n.declaredType??(n.declaredType=o)}return n.declaredType}function hu(e){return 1056&e.flags&&8&e.symbol.flags?Au(Ts(e.symbol)):e}function vu(e){const t=ua(e);if(!t.declaredType){const n=[];if(e.declarations)for(const t of e.declarations)if(267===t.kind)for(const r of t.members)if(fd(r)){const t=ks(r),i=MJ(r).value,o=uk(void 0!==i?hk(i,eJ(e),t):ku(t));ua(t).declaredType=o,n.push(dk(o))}const r=n.length?Pb(n,1,e,void 0):ku(e);1048576&r.flags&&(r.flags|=1024,r.symbol=e),t.declaredType=r}return t.declaredType}function ku(e){const t=Ms(32,e),n=Ms(32,e);return t.regularType=t,t.freshType=n,n.regularType=t,n.freshType=n,t}function Tu(e){const t=ua(e);if(!t.declaredType){const n=vu(Ts(e));t.declaredType||(t.declaredType=n)}return t.declaredType}function Cu(e){const t=ua(e);return t.declaredType||(t.declaredType=zs(e))}function Au(e){return Ou(e)||Et}function Ou(e){return 96&e.flags?mu(e):524288&e.flags?gu(e):262144&e.flags?Cu(e):384&e.flags?vu(e):8&e.flags?Tu(e):2097152&e.flags?function(e){const t=ua(e);return t.declaredType||(t.declaredType=Au(Ha(e)))}(e):void 0}function Lu(e){switch(e.kind){case 133:case 159:case 154:case 150:case 163:case 136:case 155:case 151:case 116:case 157:case 146:case 202:return!0;case 189:return Lu(e.elementType);case 184:return!e.typeArguments||e.typeArguments.every(Lu)}return!1}function Ju(e){const t=ul(e);return!t||Lu(t)}function zu(e){const t=fv(e);return t?Lu(t):!Eu(e)}function $u(e){if(e.declarations&&1===e.declarations.length){const t=e.declarations[0];if(t)switch(t.kind){case 173:case 172:return zu(t);case 175:case 174:case 177:case 178:case 179:return function(e){const t=gv(e),n=_l(e);return(177===e.kind||!!t&&Lu(t))&&e.parameters.every(zu)&&n.every(Ju)}(t)}}return!1}function Yu(e,t,n){const r=Gu();for(const i of e)r.set(i.escapedName,n&&$u(i)?i:sS(i,t));return r}function Zu(e,t){for(const n of t){if(ed(n))continue;const t=e.get(n.escapedName);(!t||t.valueDeclaration&&NF(t.valueDeclaration)&&!Ll(t)&&!Qf(t.valueDeclaration))&&(e.set(n.escapedName,n),e.set(n.escapedName,n))}}function ed(e){return!!e.valueDeclaration&&Kl(e.valueDeclaration)&&Dv(e.valueDeclaration)}function td(e){if(!e.declaredProperties){const t=e.symbol,n=Td(t);e.declaredProperties=Us(n),e.declaredCallSignatures=l,e.declaredConstructSignatures=l,e.declaredIndexInfos=l,e.declaredCallSignatures=jg(n.get("__call")),e.declaredConstructSignatures=jg(n.get("__new")),e.declaredIndexInfos=Ih(t)}return e}function nd(e){return cd(e)&&sC(kD(e)?BA(e):Ij(e.argumentExpression))}function sd(e){return cd(e)&&FS(kD(e)?BA(e):Ij(e.argumentExpression),hn)}function cd(e){return!(!kD(e)&&!pF(e))&&ab(kD(e)?e.expression:e.argumentExpression)}function ld(e){return 95===e.charCodeAt(0)&&95===e.charCodeAt(1)&&64===e.charCodeAt(2)}function _d(e){const t=Cc(e);return!!t&&nd(t)}function ud(e){const t=Cc(e);return!!t&&sd(t)}function fd(e){return!Rh(e)||_d(e)}function md(e){return Bh(e)&&!nd(e)}function gd(e,t,n,r){un.assert(!!r.symbol,"The member is expected to have a symbol.");const i=da(r);if(!i.resolvedSymbol){i.resolvedSymbol=r.symbol;const o=NF(r)?r.left:r.name,a=pF(o)?Ij(o.argumentExpression):BA(o);if(sC(a)){const s=cC(a),c=r.symbol.flags;let l=n.get(s);l||n.set(s,l=Xo(0,s,4096));const _=t&&t.get(s);if(!(32&e.flags)&&l.flags&ea(c)){const e=_?K(_.declarations,l.declarations):l.declarations,t=!(8192&a.flags)&&mc(s)||Ap(o);d(e,e=>zo(Cc(e)||e,_a.Property_0_was_also_declared_here,t)),zo(o||r,_a.Duplicate_property_0,t),l=Xo(0,s,4096)}return l.links.nameType=a,function(e,t,n){un.assert(!!(4096&rx(e)),"Expected a late-bound symbol."),e.flags|=n,ua(t.symbol).lateSymbol=e,e.declarations?t.symbol.isReplaceableByMethod||e.declarations.push(t):e.declarations=[t],111551&n&&mg(e,t)}(l,r,c),l.parent?un.assert(l.parent===e,"Existing symbol parent should match new one"):l.parent=e,i.resolvedSymbol=l}}return i.resolvedSymbol}function hd(e,t,n,r){let i=n.get("__index");if(!i){const e=null==t?void 0:t.get("__index");e?(i=na(e),i.links.checkFlags|=4096):i=Xo(0,"__index",4096),n.set("__index",i)}i.declarations?r.symbol.isReplaceableByMethod||i.declarations.push(r):i.declarations=[r]}function Sd(e,t){const n=ua(e);if(!n[t]){const r="resolvedExports"===t,i=r?1536&e.flags?bs(e).exports:e.exports:e.members;n[t]=i||P;const o=Gu();for(const t of e.declarations||l){const n=Pf(t);if(n)for(const t of n)r===Fv(t)&&(_d(t)?gd(e,i,o,t):ud(t)&&hd(0,i,o,t))}const a=ws(e).assignmentDeclarationMembers;if(a){const t=Oe(a.values());for(const n of t){const t=tg(n);r===!(3===t||NF(n)&&rA(n,t)||9===t||6===t)&&_d(n)&&gd(e,i,o,n)}}let s=function(e,t){if(!(null==e?void 0:e.size))return t;if(!(null==t?void 0:t.size))return e;const n=Gu();return ca(n,e),ca(n,t),n}(i,o);if(33554432&e.flags&&n.cjsExportMerged&&e.declarations)for(const n of e.declarations){const e=ua(n.symbol)[t];s?e&&e.forEach((e,t)=>{const n=s.get(t);if(n){if(n===e)return;s.set(t,ia(n,e))}else s.set(t,e)}):s=e}n[t]=s||P}return n[t]}function Td(e){return 6256&e.flags?Sd(e,"resolvedMembers"):e.members||P}function Cd(e){if(106500&e.flags&&"__computed"===e.escapedName){const t=ua(e);if(!t.lateSymbol&&$(e.declarations,_d)){const t=xs(e.parent);$(e.declarations,Fv)?hs(t):Td(t)}return t.lateSymbol||(t.lateSymbol=e)}return e}function wd(e,t,n){if(4&gx(e)){const n=e.target,r=uy(e);return u(n.typeParameters)===u(r)?ay(n,K(r,[t||n.thisType])):e}if(2097152&e.flags){const r=A(e.types,e=>wd(e,t,n));return r!==e.types?Bb(r):e}return n?Sf(e):e}function Fd(e,t,n,r){let i,o,a,s,c;de(n,r,0,n.length)?(o=t.symbol?Td(t.symbol):Gu(t.declaredProperties),a=t.declaredCallSignatures,s=t.declaredConstructSignatures,c=t.declaredIndexInfos):(i=Uk(n,r),o=Yu(t.declaredProperties,i,1===n.length),a=Rk(t.declaredCallSignatures,i),s=Rk(t.declaredConstructSignatures,i),c=zk(t.declaredIndexInfos,i));const l=uu(t);if(l.length){if(t.symbol&&o===Td(t.symbol)){const e=Gu(t.declaredProperties),n=Fh(t.symbol);n&&e.set("__index",n),o=e}Ws(e,o,a,s,c);const n=ye(r);for(const e of l){const t=n?wd(fS(e,i),n):e;Zu(o,Up(t)),a=K(a,mm(t,0)),s=K(s,mm(t,1));const r=t!==wt?Jm(t):[di];c=K(c,N(r,e=>!Dm(c,e.keyType)))}}Ws(e,o,a,s,c)}function Ed(e,t,n,r,i,o,a,s){const c=new _(He,s);return c.declaration=e,c.typeParameters=t,c.parameters=r,c.thisParameter=n,c.resolvedReturnType=i,c.resolvedTypePredicate=o,c.minArgumentCount=a,c.resolvedMinArgumentCount=void 0,c.target=void 0,c.mapper=void 0,c.compositeSignatures=void 0,c.compositeKind=void 0,c}function Pd(e){const t=Ed(e.declaration,e.typeParameters,e.thisParameter,e.parameters,void 0,void 0,e.minArgumentCount,167&e.flags);return t.target=e.target,t.mapper=e.mapper,t.compositeSignatures=e.compositeSignatures,t.compositeKind=e.compositeKind,t}function Ad(e,t){const n=Pd(e);return n.compositeSignatures=t,n.compositeKind=1048576,n.target=void 0,n.mapper=void 0,n}function Id(e,t){if((24&e.flags)===t)return e;e.optionalCallSignatureCache||(e.optionalCallSignatureCache={});const n=8===t?"inner":"outer";return e.optionalCallSignatureCache[n]||(e.optionalCallSignatureCache[n]=function(e,t){un.assert(8===t||16===t,"An optional call signature can either be for an inner call chain or an outer call chain, but not both.");const n=Pd(e);return n.flags|=t,n}(e,t))}function Od(e,t){if(aJ(e)){const r=e.parameters.length-1,i=e.parameters[r],o=P_(i);if(rw(o))return[n(o,r,i)];if(!t&&1048576&o.flags&&v(o.types,rw))return E(o.types,e=>n(e,r,i))}return[e.parameters];function n(t,n,r){const i=uy(t),o=function(e,t){const n=E(e.target.labeledElementDeclarations,(n,r)=>NL(n,r,e.target.elementFlags[r],t));if(n){const e=[],t=new Set;for(let r=0;r{const a=o&&o[i]?o[i]:DL(e,n+i,t),s=t.target.elementFlags[i],c=Xo(1,a,12&s?32768:2&s?16384:0);return c.links.type=4&s?Rv(r):r,c});return K(e.parameters.slice(0,n),a)}}function Ld(e,t,n,r,i){for(const o of e)if(PC(o,t,n,r,i,n?wS:TS))return o}function jd(e,t,n){if(t.typeParameters){if(n>0)return;for(let n=1;n1&&(n=void 0===n?r:-1);for(const n of e[r])if(!t||!Ld(t,n,!1,!1,!0)){const i=jd(e,n,r);if(i){let e=n;if(i.length>1){let t=n.thisParameter;const r=d(i,e=>e.thisParameter);r&&(t=ww(r,Bb(B(i,e=>e.thisParameter&&P_(e.thisParameter))))),e=Ad(n,i),e.thisParameter=t}(t||(t=[])).push(e)}}}if(!u(t)&&-1!==n){const r=e[void 0!==n?n:0];let i=r.slice();for(const t of e)if(t!==r){const e=t[0];if(un.assert(!!e,"getUnionSignatures bails early on empty signature lists and should not have empty lists on second pass"),i=e.typeParameters&&$(i,t=>!!t.typeParameters&&!Rd(e.typeParameters,t.typeParameters))?void 0:E(i,t=>Bd(t,e)),!i)break}t=i}return t||l}function Rd(e,t){if(u(e)!==u(t))return!1;if(!e||!t)return!0;const n=Uk(t,e);for(let r=0;r=i?e:t,a=o===e?t:e,s=o===e?r:i,c=RL(e)||RL(t),l=c&&!RL(o),_=new Array(s+(l?1:0));for(let u=0;u=ML(o)&&u>=ML(a),h=u>=r?void 0:DL(e,u),y=u>=i?void 0:DL(t,u),v=Xo(1|(g&&!m?16777216:0),(h===y?h:h?y?void 0:h:y)||`arg${u}`,m?32768:g?16384:0);v.links.type=m?Rv(f):f,_[u]=v}if(l){const e=Xo(1,"args",32768);e.links.type=Rv(AL(a,s)),a===t&&(e.links.type=fS(e.links.type,n)),_[s]=e}return _}(e,t,r),s=ye(a);s&&32768&rx(s)&&(i|=1);const c=function(e,t,n){return e&&t?ww(e,Bb([P_(e),fS(P_(t),n)])):e||t}(e.thisParameter,t.thisParameter,r),l=Ed(o,n,c,a,void 0,void 0,Math.max(e.minArgumentCount,t.minArgumentCount),i);return l.compositeKind=1048576,l.compositeSignatures=K(2097152!==e.compositeKind&&e.compositeSignatures||[e],[t]),r?l.mapper=2097152!==e.compositeKind&&e.mapper&&e.compositeSignatures?eS(e.mapper,r):r:2097152!==e.compositeKind&&e.mapper&&e.compositeSignatures&&(l.mapper=e.mapper),l}function Jd(e){const t=Jm(e[0]);if(t){const n=[];for(const r of t){const t=r.keyType;v(e,e=>!!qm(e,t))&&n.push(Ah(t,Pb(E(e,e=>Qm(e,t))),$(e,e=>qm(e,t).isReadonly)))}return n}return l}function zd(e,t){return e?t?Bb([e,t]):e:t}function qd(e){const t=w(e,e=>mm(e,1).length>0),n=E(e,eu);if(t>0&&t===w(n,e=>e)){const e=n.indexOf(!0);n[e]=!1}return n}function Vd(e,t,n,r){const i=[];for(let o=0;o!PC(e,n,!1,!1,!1,TS))||(e=ie(e,n));return e}function Gd(e,t,n){if(e)for(let r=0;r0===n||kp(e)===t)?t:0}return 0}function Sp(e){if(32&gx(e)){const t=ip(e);if(Cx(t))return!0;const n=op(e);if(n&&Cx(fS(n,Wk(rp(e),t))))return!0}return!1}function Tp(e){const t=op(e);return t?FS(t,rp(e))?1:2:0}function Cp(e){return e.members||(524288&e.flags?4&e.objectFlags?function(e){const t=td(e.target),n=K(t.typeParameters,[t.thisType]),r=uy(e);Fd(e,t,n,r.length===n.length?r:K(r,[e]))}(e):3&e.objectFlags?function(e){Fd(e,td(e),l,l)}(e):1024&e.objectFlags?function(e){const t=qm(e.source,Vt),n=bp(e.mappedType),r=!(1&n),i=4&n?0:16777216,o=t?[Ah(Vt,aN(t.type,e.mappedType,e.constraintType)||Ot,r&&t.isReadonly)]:l,a=Gu(),s=function(e){const t=ip(e.mappedType);if(!(1048576&t.flags||2097152&t.flags))return;const n=1048576&t.flags?t.origin:t;if(!(n&&2097152&n.flags))return;const r=Bb(n.types.filter(t=>t!==e.constraintType));return r!==_n?r:void 0}(e);for(const t of Up(e.source)){if(s&&!FS(Kb(t,8576),s))continue;const n=8192|(r&&_j(t)?8:0),o=Xo(4|t.flags&i,t.escapedName,n);if(o.declarations=t.declarations,o.links.nameType=ua(t).nameType,o.links.propertyType=P_(t),8388608&e.constraintType.type.flags&&262144&e.constraintType.type.objectType.flags&&262144&e.constraintType.type.indexType.flags){const t=e.constraintType.type.objectType,n=Qd(e.mappedType,e.constraintType.type,t);o.links.mappedType=n,o.links.constraintType=Yb(t)}else o.links.mappedType=e.mappedType,o.links.constraintType=e.constraintType;a.set(t.escapedName,o)}Ws(e,a,l,l,o)}(e):16&e.objectFlags?function(e){if(e.target)return Ws(e,P,l,l,l),void Ws(e,Yu(Dp(e.target),e.mapper,!1),Rk(mm(e.target,0),e.mapper),Rk(mm(e.target,1),e.mapper),zk(Jm(e.target),e.mapper));const t=xs(e.symbol);if(2048&t.flags){Ws(e,P,l,l,l);const n=Td(t),r=jg(n.get("__call")),i=jg(n.get("__new"));return void Ws(e,n,r,i,Ih(t))}let n,r,i=hs(t);if(t===Fe){const e=new Map;i.forEach(t=>{var n;418&t.flags||512&t.flags&&(null==(n=t.declarations)?void 0:n.length)&&v(t.declarations,cp)||e.set(t.escapedName,t)}),i=e}if(Ws(e,i,l,l,l),32&t.flags){const e=cu(mu(t));11272192&e.flags?(i=Gu(function(e){const t=Us(e),n=Ph(e);return n?K(t,[n]):t}(i)),Zu(i,Up(e))):e===wt&&(r=di)}const o=Ph(i);if(o?n=Lh(o,Oe(i.values())):(r&&(n=ie(n,r)),384&t.flags&&(32&Au(t).flags||$(e.properties,e=>!!(296&P_(e).flags)))&&(n=ie(n,ui))),Ws(e,i,l,l,n||l),8208&t.flags&&(e.callSignatures=jg(t)),32&t.flags){const n=mu(t);let r=t.members?jg(t.members.get("__constructor")):l;16&t.flags&&(r=se(r.slice(),B(e.callSignatures,e=>sL(e.declaration)?Ed(e.declaration,e.typeParameters,e.thisParameter,e.parameters,n,void 0,e.minArgumentCount,167&e.flags):void 0))),r.length||(r=function(e){const t=mm(cu(e),1),n=mx(e.symbol),r=!!n&&Nv(n,64);if(0===t.length)return[Ed(void 0,e.localTypeParameters,void 0,l,e,void 0,0,r?4:0)];const i=nu(e),o=Em(i),a=Ry(i),s=u(a),c=[];for(const n of t){const t=Tg(n.typeParameters),i=u(n.typeParameters);if(o||s>=t&&s<=i){const s=i?Sh(n,Cg(a,n.typeParameters,t,o)):Pd(n);s.typeParameters=e.localTypeParameters,s.resolvedReturnType=e,s.flags=r?4|s.flags:-5&s.flags,c.push(s)}}return c}(n)),e.constructSignatures=r}}(e):32&e.objectFlags?function(e){const t=Gu();let n;Ws(e,P,l,l,l);const r=rp(e),i=ip(e),o=e.target||e,a=op(o),s=2!==Tp(o),c=_p(o),_=Sf(vp(e)),u=bp(e);function d(i){bD(a?fS(a,rS(e.mapper,r,i)):i,o=>function(i,o){if(sC(o)){const n=cC(o),r=t.get(n);if(r)r.links.nameType=Pb([r.links.nameType,o]),r.links.keyType=Pb([r.links.keyType,i]);else{const r=sC(i)?pm(_,cC(i)):void 0,a=!!(4&u||!(8&u)&&r&&16777216&r.flags),c=!!(1&u||!(2&u)&&r&&_j(r)),l=H&&!a&&r&&16777216&r.flags,d=Xo(4|(a?16777216:0),n,262144|(r?ep(r):0)|(c?8:0)|(l?524288:0));d.links.mappedType=e,d.links.nameType=o,d.links.keyType=i,r&&(d.links.syntheticOrigin=r,d.declarations=s?r.declarations:void 0),t.set(n,d)}}else if(Mh(o)||33&o.flags){const t=5&o.flags?Vt:40&o.flags?Wt:o,a=fS(c,rS(e.mapper,r,i)),s=ig(_,o),l=Ah(t,a,!!(1&u||!(2&u)&&(null==s?void 0:s.isReadonly)));n=Gd(n,l,!0)}}(i,o))}yp(e)?np(_,8576,!1,d):bD(Zd(i),d),Ws(e,t,l,l,n||l)}(e):un.fail("Unhandled object type "+un.formatObjectFlags(e.objectFlags)):1048576&e.flags?function(e){const t=Md(E(e.types,e=>e===Xn?[ci]:mm(e,0))),n=Md(E(e.types,e=>mm(e,1))),r=Jd(e.types);Ws(e,P,t,n,r)}(e):2097152&e.flags?function(e){let t,n,r;const i=e.types,o=qd(i),a=w(o,e=>e);for(let s=0;s0&&(e=E(e,e=>{const t=Pd(e);return t.resolvedReturnType=Vd(Gg(e),i,o,s),t})),n=Wd(n,e)}t=Wd(t,mm(c,0)),r=we(Jm(c),(e,t)=>Gd(e,t,!1),r)}Ws(e,P,t||l,n||l,r||l)}(e):un.fail("Unhandled type "+un.formatTypeFlags(e.flags))),e}function Dp(e){return 524288&e.flags?Cp(e).properties:l}function Lp(e,t){if(524288&e.flags){const n=Cp(e).members.get(t);if(n&&Ls(n))return n}}function Jp(e){if(!e.resolvedProperties){const t=Gu();for(const n of e.types){for(const r of Up(n))if(!t.has(r.escapedName)){const n=Rf(e,r.escapedName,!!(2097152&e.flags));n&&t.set(r.escapedName,n)}if(1048576&e.flags&&0===Jm(n).length)break}e.resolvedProperties=Us(t)}return e.resolvedProperties}function Up(e){return 3145728&(e=Tf(e)).flags?Jp(e):Dp(e)}function Vp(e){return 262144&e.flags?Hp(e):8388608&e.flags?function(e){return mf(e)?function(e){if(kf(e))return Px(e.objectType,e.indexType);const t=of(e.indexType);if(t&&t!==e.indexType){const n=Ox(e.objectType,t,e.accessFlags);if(n)return n}const n=of(e.objectType);return n&&n!==e.objectType?Ox(n,e.indexType,e.accessFlags):void 0}(e):void 0}(e):16777216&e.flags?uf(e):pf(e)}function Hp(e){return mf(e)?Gh(e):void 0}function rf(e,t=0){var n;return t<5&&!(!e||!(262144&e.flags&&$(null==(n=e.symbol)?void 0:n.declarations,e=>Nv(e,4096))||3145728&e.flags&&$(e.types,e=>rf(e,t))||8388608&e.flags&&rf(e.objectType,t+1)||16777216&e.flags&&rf(uf(e),t+1)||33554432&e.flags&&rf(e.baseType,t)||32&gx(e)&&function(e,t){const n=lS(e);return!!n&&rf(n,t)}(e,t)||iw(e)&&k(xb(e),(n,r)=>!!(8&e.target.elementFlags[r])&&rf(n,t))>=0))}function of(e){const t=Dx(e,!1);return t!==e?t:Vp(e)}function af(e){if(!e.resolvedDefaultConstraint){const t=function(e){return e.resolvedInferredTrueType||(e.resolvedInferredTrueType=e.combinedMapper?fS(Pk(e.root.node.trueType),e.combinedMapper):qx(e))}(e),n=Ux(e);e.resolvedDefaultConstraint=il(t)?n:il(n)?t:Pb([t,n])}return e.resolvedDefaultConstraint}function sf(e){if(void 0!==e.resolvedConstraintOfDistributive)return e.resolvedConstraintOfDistributive||void 0;if(e.root.isDistributive&&e.restrictiveInstantiation!==e){const t=Dx(e.checkType,!1),n=t===e.checkType?Vp(t):t;if(n&&n!==e.checkType){const t=pS(e,nS(e.root.checkType,n,e.mapper),!0);if(!(131072&t.flags))return e.resolvedConstraintOfDistributive=t,t}}e.resolvedConstraintOfDistributive=!1}function cf(e){return sf(e)||af(e)}function uf(e){return mf(e)?cf(e):void 0}function pf(e){if(464781312&e.flags||iw(e)){const t=gf(e);return t!==jn&&t!==Mn?t:void 0}return 4194304&e.flags?hn:void 0}function ff(e){return pf(e)||e}function mf(e){return gf(e)!==Mn}function gf(e){if(e.resolvedBaseConstraint)return e.resolvedBaseConstraint;const t=[];return e.resolvedBaseConstraint=n(e);function n(e){if(!e.immediateBaseConstraint){if(!$c(e,4))return Mn;let n;const o=DC(e);if((t.length<10||t.length<50&&!T(t,o))&&(t.push(o),n=function(e){if(262144&e.flags){const t=Gh(e);return e.isThisType||!t?t:i(t)}if(3145728&e.flags){const t=e.types,n=[];let r=!1;for(const e of t){const t=i(e);t?(t!==e&&(r=!0),n.push(t)):r=!0}return r?1048576&e.flags&&n.length===t.length?Pb(n):2097152&e.flags&&n.length?Bb(n):void 0:e}if(4194304&e.flags)return hn;if(134217728&e.flags){const t=e.types,n=B(t,i);return n.length===t.length?ex(e.texts,n):Vt}if(268435456&e.flags){const t=i(e.type);return t&&t!==e.type?nx(e.symbol,t):Vt}if(8388608&e.flags){if(kf(e))return i(Px(e.objectType,e.indexType));const t=i(e.objectType),n=i(e.indexType),r=t&&n&&Ox(t,n,e.accessFlags);return r&&i(r)}if(16777216&e.flags){const t=cf(e);return t&&i(t)}return 33554432&e.flags?i(wy(e)):iw(e)?Gv(E(xb(e),(t,n)=>{const r=262144&t.flags&&8&e.target.elementFlags[n]&&i(t)||t;return r!==t&&KD(r,e=>jC(e)&&!iw(e))?r:t}),e.target.elementFlags,e.target.readonly,e.target.labeledElementDeclarations):e}(Dx(e,!1)),t.pop()),!Yc()){if(262144&e.flags){const t=$h(e);if(t){const n=zo(t,_a.Type_parameter_0_has_a_circular_constraint,Tc(e));!r||ch(t,r)||ch(r,t)||aT(n,Rp(r,_a.Circularity_originates_in_type_at_this_location))}}n=Mn}e.immediateBaseConstraint??(e.immediateBaseConstraint=n||jn)}return e.immediateBaseConstraint}function i(e){const t=n(e);return t!==jn&&t!==Mn?t:void 0}}function hf(e){if(e.default)e.default===Rn&&(e.default=Mn);else if(e.target){const t=hf(e.target);e.default=t?fS(t,e.mapper):jn}else{e.default=Rn;const t=e.symbol&&d(e.symbol.declarations,e=>SD(e)&&e.default),n=t?Pk(t):jn;e.default===Rn&&(e.default=n)}return e.default}function yf(e){const t=hf(e);return t!==jn&&t!==Mn?t:void 0}function vf(e){return!(!e.symbol||!d(e.symbol.declarations,e=>SD(e)&&e.default))}function bf(e){return e.resolvedApparentType||(e.resolvedApparentType=function(e){const t=e.target??e,n=lS(t);if(n&&!t.declaration.nameType){const r=vp(e),i=Sp(r)?bf(r):pf(r);if(i&&KD(i,e=>jC(e)||xf(e)))return fS(t,nS(n,i,e.mapper))}return e}(e))}function xf(e){return!!(2097152&e.flags)&&v(e.types,jC)}function kf(e){let t;return!(!(8388608&e.flags&&32&gx(t=e.objectType)&&!Sp(t)&&Cx(e.indexType))||8&bp(t)||t.declaration.nameType)}function Sf(e){const t=465829888&e.flags?pf(e)||Ot:e,n=gx(t);return 32&n?bf(t):4&n&&t!==e?wd(t,e):2097152&t.flags?function(e,t){if(e===t)return e.resolvedApparentType||(e.resolvedApparentType=wd(e,t,!0));const n=`I${kb(e)},${kb(t)}`;return Oo(n)??Lo(n,wd(e,t,!0))}(t,e):402653316&t.flags?rr:296&t.flags?ir:2112&t.flags?Vr||(Vr=Wy("BigInt",0,!1))||Nn:528&t.flags?or:12288&t.flags?Zy():67108864&t.flags?Nn:4194304&t.flags?hn:2&t.flags&&!H?Nn:t}function Tf(e){return Bf(Sf(Bf(e)))}function Cf(e,t,n){var r,i,o;let a,s,c,l=0;const _=1048576&e.flags;let d,p=4,f=_?0:8,m=!1;for(const r of e.types){const e=Sf(r);if(!(al(e)||131072&e.flags)){const r=pm(e,t,n),i=r?ix(r):0;if(r){if(106500&r.flags&&(d??(d=_?0:16777216),_?d|=16777216&r.flags:d&=r.flags),a){if(r!==a){if((uB(r)||r)===(uB(a)||a)&&-1===EC(a,r,(e,t)=>e===t?-1:0))m=!!a.parent&&!!u(Z_(a.parent));else{s||(s=new Map,s.set(eJ(a),a));const e=eJ(r);s.has(e)||s.set(e,r)}98304&l&&(98304&r.flags)!=(98304&l)&&(l=-98305&l|4)}}else a=r,l=98304&r.flags||4;_&&_j(r)?f|=8:_||_j(r)||(f&=-9),f|=(6&i?0:256)|(4&i?512:0)|(2&i?1024:0)|(256&i?2048:0),yI(r)||(p=2)}else if(_){const n=!ld(t)&&og(e,t);n?(l=-98305&l|4,f|=32|(n.isReadonly?8:0),c=ie(c,rw(e)?aw(e)||jt:n.type)):!xN(e)||2097152&gx(e)?f|=16:(f|=32,c=ie(c,jt))}}}if(!a||_&&(s||48&f)&&1536&f&&(!s||!function(e){let t;for(const n of e){if(!n.declarations)return;if(t){if(t.forEach(e=>{T(n.declarations,e)||t.delete(e)}),0===t.size)return}else t=new Set(n.declarations)}return t}(s.values())))return;if(!(s||16&f||c)){if(m){const t=null==(r=tt(a,Xu))?void 0:r.links,n=ww(a,null==t?void 0:t.type);return n.parent=null==(o=null==(i=a.valueDeclaration)?void 0:i.symbol)?void 0:o.parent,n.links.containingType=e,n.links.mapper=null==t?void 0:t.mapper,n.links.writeType=E_(a),n}return a}const g=s?Oe(s.values()):[a];let h,y,v;const b=[];let x,k,S=!1;for(const e of g){k?e.valueDeclaration&&e.valueDeclaration!==k&&(S=!0):k=e.valueDeclaration,h=se(h,e.declarations);const t=P_(e);y||(y=t,v=ua(e).nameType);const n=E_(e);(x||n!==t)&&(x=ie(x||b.slice(),n)),t!==y&&(f|=64),(XC(t)||vx(t))&&(f|=128),131072&t.flags&&t!==Sn&&(f|=131072),b.push(t)}se(b,c);const C=Xo(l|(d??0),t,p|f);return C.links.containingType=e,!S&&k&&(C.valueDeclaration=k,k.symbol.parent&&(C.parent=k.symbol.parent)),C.declarations=h,C.links.nameType=v,b.length>2?(C.links.checkFlags|=65536,C.links.deferralParent=e,C.links.deferralConstituents=b,C.links.deferralWriteConstituents=x):(C.links.type=_?Pb(b):Bb(b),x&&(C.links.writeType=_?Pb(x):Bb(x))),C}function Nf(e,t,n){var r,i,o;let a=n?null==(r=e.propertyCacheWithoutObjectFunctionPropertyAugment)?void 0:r.get(t):null==(i=e.propertyCache)?void 0:i.get(t);return!a&&(a=Cf(e,t,n),a)&&((n?e.propertyCacheWithoutObjectFunctionPropertyAugment||(e.propertyCacheWithoutObjectFunctionPropertyAugment=Gu()):e.propertyCache||(e.propertyCache=Gu())).set(t,a),!n||48&rx(a)||(null==(o=e.propertyCache)?void 0:o.get(t))||(e.propertyCache||(e.propertyCache=Gu())).set(t,a)),a}function Rf(e,t,n){const r=Nf(e,t,n);return!r||16&rx(r)?void 0:r}function Bf(e){return 1048576&e.flags&&16777216&e.objectFlags?e.resolvedReducedType||(e.resolvedReducedType=function(e){const t=A(e.types,Bf);if(t===e.types)return e;const n=Pb(t);return 1048576&n.flags&&(n.resolvedReducedType=n),n}(e)):2097152&e.flags?(16777216&e.objectFlags||(e.objectFlags|=16777216|($(Jp(e),Vf)?33554432:0)),33554432&e.objectFlags?_n:e):e}function Vf(e){return Wf(e)||$f(e)}function Wf(e){return!(16777216&e.flags||192!=(131264&rx(e))||!(131072&P_(e).flags))}function $f(e){return!e.valueDeclaration&&!!(1024&rx(e))}function Hf(e){return!!(1048576&e.flags&&16777216&e.objectFlags&&$(e.types,Hf)||2097152&e.flags&&function(e){const t=e.uniqueLiteralFilledInstantiation||(e.uniqueLiteralFilledInstantiation=fS(e,Tn));return Bf(t)!==t}(e))}function Gf(e,t){if(2097152&t.flags&&33554432&gx(t)){const n=b(Jp(t),Wf);if(n)return Zx(e,_a.The_intersection_0_was_reduced_to_never_because_property_1_has_conflicting_types_in_some_constituents,Tc(t,void 0,536870912),bc(n));const r=b(Jp(t),$f);if(r)return Zx(e,_a.The_intersection_0_was_reduced_to_never_because_property_1_exists_in_multiple_constituents_and_is_private_in_some,Tc(t,void 0,536870912),bc(r))}return e}function pm(e,t,n,r){var i,o;if(524288&(e=Tf(e)).flags){const a=Cp(e),s=a.members.get(t);if(s&&!r&&512&(null==(i=e.symbol)?void 0:i.flags)&&(null==(o=ua(e.symbol).typeOnlyExportStarMap)?void 0:o.has(t)))return;if(s&&Ls(s,r))return s;if(n)return;const c=a===Ln?Xn:a.callSignatures.length?Qn:a.constructSignatures.length?Yn:void 0;if(c){const e=Lp(c,t);if(e)return e}return Lp(Gn,t)}if(2097152&e.flags){return Rf(e,t,!0)||(n?void 0:Rf(e,t,n))}if(1048576&e.flags)return Rf(e,t,n)}function fm(e,t){if(3670016&e.flags){const n=Cp(e);return 0===t?n.callSignatures:n.constructSignatures}return l}function mm(e,t){const n=fm(Tf(e),t);if(0===t&&!u(n)&&1048576&e.flags){if(e.arrayFallbackSignatures)return e.arrayFallbackSignatures;let r;if(KD(e,e=>{var t,n;return!(!(null==(t=e.symbol)?void 0:t.parent)||(n=e.symbol.parent,!(n&&Zn.symbol&&er.symbol)||!Is(n,Zn.symbol)&&!Is(n,er.symbol))||(r?r!==e.symbol.escapedName:(r=e.symbol.escapedName,0)))})){const n=Rv(nF(e,e=>Vk((ym(e.symbol.parent)?er:Zn).typeParameters[0],e.mapper)),UD(e,e=>ym(e.symbol.parent)));return e.arrayFallbackSignatures=mm(el(n,r),t)}e.arrayFallbackSignatures=n}return n}function ym(e){return!(!e||!er.symbol||!Is(e,er.symbol))}function Dm(e,t){return b(e,e=>e.keyType===t)}function Am(e,t){let n,r,i;for(const o of e)o.keyType===Vt?n=o:jm(t,o.keyType)&&(r?(i||(i=[r])).push(o):r=o);return i?Ah(Ot,Bb(E(i,e=>e.type)),we(i,(e,t)=>e&&t.isReadonly,!0)):r||(n&&jm(t,Vt)?n:void 0)}function jm(e,t){return FS(e,t)||t===Vt&&FS(e,Wt)||t===Wt&&(e===bn||!!(128&e.flags)&&JT(e.value))}function Bm(e){return 3670016&e.flags?Cp(e).indexInfos:l}function Jm(e){return Bm(Tf(e))}function qm(e,t){return Dm(Jm(e),t)}function Qm(e,t){var n;return null==(n=qm(e,t))?void 0:n.type}function rg(e,t){return Jm(e).filter(e=>jm(t,e.keyType))}function ig(e,t){return Am(Jm(e),t)}function og(e,t){return ig(e,ld(t)?cn:fk(mc(t)))}function cg(e){var t;let n;for(const t of _l(e))n=le(n,Cu(t.symbol));return(null==n?void 0:n.length)?n:uE(e)?null==(t=Pg(e))?void 0:t.typeParameters:void 0}function lg(e){const t=[];return e.forEach((e,n)=>{qs(n)||t.push(e)}),t}function fg(e,t){if(Cs(e))return;const n=pa(Ne,'"'+e+'"',512);return n&&t?xs(n):n}function gg(e){return wg(e)||$T(e)||TD(e)&>(e)}function vg(e){if(gg(e))return!0;if(!TD(e))return!1;if(e.initializer){const t=Eg(e.parent),n=e.parent.parameters.indexOf(e);return un.assert(n>=0),n>=ML(t,3)}const t=om(e.parent);return!!t&&!e.type&&!e.dotDotDotToken&&e.parent.parameters.indexOf(e)>=BO(t).length}function bg(e,t,n,r){return{kind:e,parameterName:t,parameterIndex:n,type:r}}function Tg(e){let t=0;if(e)for(let n=0;n=n&&o<=i){const n=e?e.slice():[];for(let e=o;e!!nl(e))&&!nl(e)&&!LA(e)&&(i|=32);for(let t=l?1:0;tc.arguments.length&&!u||(o=n.length)}if((178===e.kind||179===e.kind)&&fd(e)&&(!s||!r)){const t=178===e.kind?179:178,n=Hu(ks(e),t);n&&(r=function(e){const t=lz(e);return t&&t.symbol}(n))}a&&a.typeExpression&&(r=ww(Xo(1,"this"),Pk(a.typeExpression)));const _=CP(e)?Ug(e):e,u=_&&PD(_)?mu(xs(_.parent.symbol)):void 0,d=u?u.localTypeParameters:cg(e);(Ru(e)||Em(e)&&function(e,t){if(CP(e)||!Ig(e))return!1;const n=ye(e.parameters),r=f(n?Ec(n):ol(e).filter(BP),e=>e.typeExpression&&xP(e.typeExpression.type)?e.typeExpression.type:void 0),i=Xo(3,"args",32768);return r?i.links.type=Rv(Pk(r.type)):(i.links.checkFlags|=65536,i.links.deferralParent=_n,i.links.deferralConstituents=[cr],i.links.deferralWriteConstituents=[cr]),r&&t.pop(),t.push(i),!0}(e,n))&&(i|=1),(JD(e)&&Nv(e,64)||PD(e)&&Nv(e.parent,64))&&(i|=4),t.resolvedSignature=Ed(e,d,r,n,void 0,void 0,o,i)}return t.resolvedSignature}function Pg(e){if(!Em(e)||!o_(e))return;const t=tl(e);return(null==t?void 0:t.typeExpression)&&CO(Pk(t.typeExpression))}function Ig(e){const t=da(e);return void 0===t.containsArgumentsReference&&(512&t.flags?t.containsArgumentsReference=!0:t.containsArgumentsReference=function e(t){if(!t)return!1;switch(t.kind){case 80:return t.escapedText===Le.escapedName&&qJ(t)===Le;case 173:case 175:case 178:case 179:return 168===t.name.kind&&e(t.name);case 212:case 213:return e(t.expression);case 304:return e(t.initializer);default:return!Zh(t)&&!wf(t)&&!!XI(t,e)}}(e.body)),t.containsArgumentsReference}function jg(e){if(!e||!e.declarations)return l;const t=[];for(let n=0;n0&&r.body){const t=e.declarations[n-1];if(r.parent===t.parent&&r.kind===t.kind&&r.pos===t.end)continue}if(Em(r)&&r.jsDoc){const e=zg(r);if(u(e)){for(const n of e){const e=n.typeExpression;void 0!==e.type||PD(r)||Jw(e,wt),t.push(Eg(e))}continue}}t.push(!RT(r)&&!Jf(r)&&Pg(r)||Eg(r))}}return t}function Mg(e){const t=rs(e,e);if(t){const e=ss(t);if(e)return P_(e)}return wt}function Rg(e){if(e.thisParameter)return P_(e.thisParameter)}function Hg(e){if(!e.resolvedTypePredicate){if(e.target){const t=Hg(e.target);e.resolvedTypePredicate=t?oS(t,e.mapper):ai}else if(e.compositeSignatures)e.resolvedTypePredicate=function(e,t){let n;const r=[];for(const i of e){const e=Hg(i);if(e){if(0!==e.kind&&1!==e.kind||n&&!Ib(n,e))return;n=e,r.push(e.type)}else{const e=2097152!==t?Gg(i):void 0;if(e!==Ht&&e!==Qt)return}}if(!n)return;const i=Kg(r,t);return bg(n.kind,n.parameterName,n.parameterIndex,i)}(e.compositeSignatures,e.compositeKind)||ai;else{const t=e.declaration&&gv(e.declaration);let n;if(!t){const t=Pg(e.declaration);t&&e!==t&&(n=Hg(t))}if(t||n)e.resolvedTypePredicate=t&&MD(t)?function(e,t){const n=e.parameterName,r=e.type&&Pk(e.type);return 198===n.kind?bg(e.assertsModifier?2:0,void 0,void 0,r):bg(e.assertsModifier?3:1,n.escapedText,k(t.parameters,e=>e.escapedName===n.escapedText),r)}(t,e):n||ai;else if(e.declaration&&o_(e.declaration)&&(!e.resolvedReturnType||16&e.resolvedReturnType.flags)&&jL(e)>0){const{declaration:t}=e;e.resolvedTypePredicate=ai,e.resolvedTypePredicate=function(e){switch(e.kind){case 177:case 178:case 179:return}if(0!==Oh(e))return;let t;if(e.body&&242!==e.body.kind)t=e.body;else if(Df(e.body,e=>{if(t||!e.expression)return!0;t=e.expression})||!t||ij(e))return;return function(e,t){return 16&Ij(t=ah(t,!0)).flags?d(e.parameters,(n,r)=>{const i=P_(n.symbol);if(!i||16&i.flags||!aD(n.name)||oE(n.symbol)||Bu(n))return;const o=function(e,t,n,r){const i=Og(t)&&t.flowNode||254===t.parent.kind&&t.parent.flowNode||HR(2,void 0,void 0),o=HR(32,t,i),a=rE(n.name,r,r,e,o);if(a===r)return;const s=HR(64,t,i);return 131072&Bf(rE(n.name,r,a,e,s)).flags?a:void 0}(e,t,n,i);return o?bg(1,mc(n.name.escapedText),r,o):void 0}):void 0}(e,t)}(t)||ai}else e.resolvedTypePredicate=ai}un.assert(!!e.resolvedTypePredicate)}return e.resolvedTypePredicate===ai?void 0:e.resolvedTypePredicate}function Kg(e,t,n){return 2097152!==t?Pb(e,n):Bb(e)}function Gg(e){if(!e.resolvedReturnType){if(!$c(e,3))return Et;let t=e.target?fS(Gg(e.target),e.mapper):e.compositeSignatures?fS(Kg(E(e.compositeSignatures,Gg),e.compositeKind,2),e.mapper):Zg(e.declaration)||(Nd(e.declaration.body)?wt:ZL(e.declaration));if(8&e.flags?t=gw(t):16&e.flags&&(t=pw(t)),!Yc()){if(e.declaration){const t=gv(e.declaration);if(t)zo(t,_a.Return_type_annotation_circularly_references_itself);else if(ne){const t=e.declaration,n=Cc(t);n?zo(n,_a._0_implicitly_has_return_type_any_because_it_does_not_have_a_return_type_annotation_and_is_referenced_directly_or_indirectly_in_one_of_its_return_expressions,Ap(n)):zo(t,_a.Function_implicitly_has_return_type_any_because_it_does_not_have_a_return_type_annotation_and_is_referenced_directly_or_indirectly_in_one_of_its_return_expressions)}}t=wt}e.resolvedReturnType??(e.resolvedReturnType=t)}return e.resolvedReturnType}function Zg(e){if(177===e.kind)return mu(xs(e.parent.symbol));const t=gv(e);if(CP(e)){const n=Wg(e);if(n&&PD(n.parent)&&!t)return mu(xs(n.parent.parent.symbol))}if(Ng(e))return Pk(e.parameters[0].type);if(t)return Pk(t);if(178===e.kind&&fd(e)){const t=Em(e)&&Fl(e);if(t)return t;const n=y_(Hu(ks(e),179));if(n)return n}return function(e){const t=Pg(e);return t&&Gg(t)}(e)}function th(e){return e.compositeSignatures&&$(e.compositeSignatures,th)||!e.resolvedReturnType&&Hc(e,3)>=0}function _h(e){if(aJ(e)){const t=P_(e.parameters[e.parameters.length-1]),n=rw(t)?aw(t):t;return n&&Qm(n,Wt)}}function dh(e,t,n,r){const i=xh(e,Cg(t,e.typeParameters,Tg(e.typeParameters),n));if(r){const e=wO(Gg(i));if(e){const t=Pd(e);t.typeParameters=r;const n=Dh(t);n.mapper=i.mapper;const o=Pd(i);return o.resolvedReturnType=n,o}}return i}function xh(e,t){const n=e.instantiations||(e.instantiations=new Map),r=ny(t);let i=n.get(r);return i||n.set(r,i=Sh(e,t)),i}function Sh(e,t){return aS(e,function(e,t){return Uk(Ch(e),t)}(e,t),!0)}function Ch(e){return A(e.typeParameters,e=>e.mapper?fS(e,e.mapper):e)}function wh(e){return e.typeParameters?e.erasedSignatureCache||(e.erasedSignatureCache=function(e){return aS(e,Zk(e.typeParameters),!0)}(e)):e}function Nh(e){const t=e.typeParameters;if(t){if(e.baseSignatureCache)return e.baseSignatureCache;const n=Zk(t),r=Uk(t,E(t,e=>Hp(e)||Ot));let i=E(t,e=>fS(e,r)||Ot);for(let e=0;e{Mh(e)&&!Dm(n,e)&&n.push(Ah(e,t.type?Pk(t.type):wt,wv(t,8),t))})}}else if(ud(t)){const e=NF(t)?t.left:t.name,_=pF(e)?Ij(e.argumentExpression):BA(e);if(Dm(n,_))continue;FS(_,hn)&&(FS(_,Wt)?(r=!0,Ov(t)||(i=!1)):FS(_,cn)?(o=!0,Ov(t)||(a=!1)):(s=!0,Ov(t)||(c=!1)),l.push(t.symbol))}const _=K(l,N(t,t=>t!==e));return s&&!Dm(n,Vt)&&n.push(UA(c,0,_,Vt)),r&&!Dm(n,Wt)&&n.push(UA(i,0,_,Wt)),o&&!Dm(n,cn)&&n.push(UA(a,0,_,cn)),n}return l}function Mh(e){return!!(4108&e.flags)||vx(e)||!!(2097152&e.flags)&&!xx(e)&&$(e.types,Mh)}function $h(e){return B(N(e.symbol&&e.symbol.declarations,SD),ul)[0]}function Hh(e,t){var n;let r;if(null==(n=e.symbol)?void 0:n.declarations)for(const n of e.symbol.declarations)if(196===n.parent.kind){const[i=n.parent,o]=ih(n.parent.parent);if(184!==o.kind||t){if(170===o.kind&&o.dotDotDotToken||192===o.kind||203===o.kind&&o.dotDotDotToken)r=ie(r,Rv(Ot));else if(205===o.kind)r=ie(r,Vt);else if(169===o.kind&&201===o.parent.kind)r=ie(r,hn);else if(201===o.kind&&o.type&&ah(o.type)===n.parent&&195===o.parent.kind&&o.parent.extendsType===o&&201===o.parent.checkType.kind&&o.parent.checkType.type){const e=o.parent.checkType;r=ie(r,fS(Pk(e.type),Wk(Cu(ks(e.typeParameter)),e.typeParameter.constraint?Pk(e.typeParameter.constraint):hn)))}}else{const t=o,n=mM(t);if(n){const o=t.typeArguments.indexOf(i);if(o()=>dM(t,n,r))));o!==e&&(r=ie(r,o))}}}}}return r&&Bb(r)}function Gh(e){if(!e.constraint)if(e.target){const t=Hp(e.target);e.constraint=t?fS(t,e.mapper):jn}else{const t=$h(e);if(t){let n=Pk(t);1&n.flags&&!al(n)&&(n=201===t.parent.parent.kind?hn:Ot),e.constraint=n}else e.constraint=Hh(e)||jn}return e.constraint===jn?void 0:e.constraint}function ty(e){const t=Hu(e.symbol,169),n=UP(t.parent)?Jg(t.parent):t.parent;return n&&Ss(n)}function ny(e){let t="";if(e){const n=e.length;let r=0;for(;r1&&(t+=":"+o),r+=o}}return t}function ry(e,t){return e?`@${eJ(e)}`+(t?`:${ny(t)}`:""):""}function iy(e,t){let n=0;for(const r of e)void 0!==t&&r.flags&t||(n|=gx(r));return 458752&n}function oy(e,t){return $(t)&&e===On?Ot:ay(e,t)}function ay(e,t){const n=ny(t);let r=e.instantiations.get(n);return r||(r=Js(4,e.symbol),e.instantiations.set(n,r),r.objectFlags|=t?iy(t):0,r.target=e,r.resolvedTypeArguments=t),r}function sy(e){const t=Ms(e.flags,e.symbol);return t.objectFlags=e.objectFlags,t.target=e.target,t.resolvedTypeArguments=e.resolvedTypeArguments,t}function cy(e,t,n,r,i){if(!r){const e=rk(r=tk(t));i=n?Mk(e,n):e}const o=Js(4,e.symbol);return o.target=e,o.node=t,o.mapper=n,o.aliasSymbol=r,o.aliasTypeArguments=i,o}function uy(e){var t,n;if(!e.resolvedTypeArguments){if(!$c(e,5))return K(e.target.outerTypeParameters,null==(t=e.target.localTypeParameters)?void 0:t.map(()=>Et))||l;const i=e.node,o=i?184===i.kind?K(e.target.outerTypeParameters,pM(i,e.target.localTypeParameters)):189===i.kind?[Pk(i.elementType)]:E(i.elements,Pk):l;Yc()?e.resolvedTypeArguments??(e.resolvedTypeArguments=e.mapper?Mk(o,e.mapper):o):(e.resolvedTypeArguments??(e.resolvedTypeArguments=K(e.target.outerTypeParameters,(null==(n=e.target.localTypeParameters)?void 0:n.map(()=>Et))||l)),zo(e.node||r,e.target.symbol?_a.Type_arguments_for_0_circularly_reference_themselves:_a.Tuple_type_arguments_circularly_reference_themselves,e.target.symbol&&bc(e.target.symbol)))}return e.resolvedTypeArguments}function dy(e){return u(e.target.typeParameters)}function py(e,t){const n=Au(xs(t)),r=n.localTypeParameters;if(r){const t=u(e.typeArguments),i=Tg(r),o=Em(e);if((ne||!o)&&(tr.length)){const t=o&&OF(e)&&!wP(e.parent);if(zo(e,i===r.length?t?_a.Expected_0_type_arguments_provide_these_with_an_extends_tag:_a.Generic_type_0_requires_1_type_argument_s:t?_a.Expected_0_1_type_arguments_provide_these_with_an_extends_tag:_a.Generic_type_0_requires_between_1_and_2_type_arguments,Tc(n,void 0,2),i,r.length),!o)return Et}return 184===e.kind&&Uv(e,u(e.typeArguments)!==r.length)?cy(n,e,void 0):ay(n,K(n.outerTypeParameters,Cg(Ry(e),r,i,o)))}return Ay(e,t)?n:Et}function fy(e,t,n,r){const i=Au(e);if(i===It){const n=XB.get(e.escapedName);if(void 0!==n&&t&&1===t.length)return 4===n?by(t[0]):nx(e,t[0])}const o=ua(e),a=o.typeParameters,s=ny(t)+ry(n,r);let c=o.instantiations.get(s);return c||o.instantiations.set(s,c=mS(i,Uk(a,Cg(t,a,Tg(a),Em(e.valueDeclaration))),n,r)),c}function my(e){var t;const n=null==(t=e.declarations)?void 0:t.find(Fg);return!(!n||!Kf(n))}function gy(e){return e.parent?`${gy(e.parent)}.${e.escapedName}`:e.escapedName}function hy(e){const t=(167===e.kind?e.right:212===e.kind?e.name:e).escapedText;if(t){const n=167===e.kind?hy(e.left):212===e.kind?hy(e.expression):void 0,r=n?`${gy(n)}.${t}`:t;let i=St.get(r);return i||(St.set(r,i=Xo(524288,t,1048576)),i.parent=n,i.links.declaredType=Pt),i}return xt}function yy(e,t,n){const r=function(e){switch(e.kind){case 184:return e.typeName;case 234:const t=e.expression;if(ab(t))return t}}(e);if(!r)return xt;const i=ts(r,t,n);return i&&i!==xt?i:n?xt:hy(r)}function vy(e,t){if(t===xt)return Et;if(96&(t=function(e){const t=e.valueDeclaration;if(!t||!Em(t)||524288&e.flags||Hm(t,!1))return;const n=lE(t)?Wm(t):$m(t);if(n){const t=Ss(n);if(t)return cL(t,e)}}(t)||t).flags)return py(e,t);if(524288&t.flags)return function(e,t){if(1048576&rx(t)){const n=Ry(e),r=ry(t,n);let i=Tt.get(r);return i||(i=Bs(1,"error",void 0,`alias ${r}`),i.aliasSymbol=t,i.aliasTypeArguments=n,Tt.set(r,i)),i}const n=Au(t),r=ua(t).typeParameters;if(r){const n=u(e.typeArguments),i=Tg(r);if(nr.length)return zo(e,i===r.length?_a.Generic_type_0_requires_1_type_argument_s:_a.Generic_type_0_requires_between_1_and_2_type_arguments,bc(t),i,r.length),Et;const o=tk(e);let a,s=!o||!my(t)&&my(o)?void 0:o;if(s)a=rk(s);else if(Iu(e)){const t=yy(e,2097152,!0);if(t&&t!==xt){const n=Ha(t);n&&524288&n.flags&&(s=n,a=Ry(e)||(r?[]:void 0))}}return fy(t,Ry(e),s,a)}return Ay(e,t)?n:Et}(e,t);const n=Ou(t);if(n)return Ay(e,t)?dk(n):Et;if(111551&t.flags&&Py(e)){const n=function(e,t){const n=da(e);if(!n.resolvedJSDocType){const r=P_(t);let i=r;if(t.valueDeclaration){const n=206===e.kind&&e.qualifier;r.symbol&&r.symbol!==t&&n&&(i=vy(e,r.symbol))}n.resolvedJSDocType=i}return n.resolvedJSDocType}(e,t);return n||(yy(e,788968),P_(t))}return Et}function by(e){return ky(e)?Cy(e,Ot):e}function ky(e){return!!(3145728&e.flags&&$(e.types,ky)||33554432&e.flags&&!Sy(e)&&ky(e.baseType)||524288&e.flags&&!XS(e)||432275456&e.flags&&!vx(e))}function Sy(e){return!!(33554432&e.flags&&2&e.constraint.flags)}function Ty(e,t){return 3&t.flags||t===e||1&e.flags?e:Cy(e,t)}function Cy(e,t){const n=`${kb(e)}>${kb(t)}`,r=dt.get(n);if(r)return r;const i=js(33554432);return i.baseType=e,i.constraint=t,dt.set(n,i),i}function wy(e){return Sy(e)?e.baseType:Bb([e.constraint,e.baseType])}function Ny(e){return 190===e.kind&&1===e.elements.length}function Dy(e,t,n){return Ny(t)&&Ny(n)?Dy(e,t.elements[0],n.elements[0]):Rx(Pk(t))===Rx(e)?Pk(n):void 0}function Py(e){return!!(16777216&e.flags)&&(184===e.kind||206===e.kind)}function Ay(e,t){return!e.typeArguments||(zo(e,_a.Type_0_is_not_generic,t?bc(t):e.typeName?Ap(e.typeName):JB),!1)}function Iy(e){if(aD(e.typeName)){const t=e.typeArguments;switch(e.typeName.escapedText){case"String":return Ay(e),Vt;case"Number":return Ay(e),Wt;case"BigInt":return Ay(e),$t;case"Boolean":return Ay(e),sn;case"Void":return Ay(e),ln;case"Undefined":return Ay(e),jt;case"Null":return Ay(e),zt;case"Function":case"function":return Ay(e),Xn;case"array":return t&&t.length||ne?void 0:cr;case"promise":return t&&t.length||ne?void 0:XL(wt);case"Object":if(t&&2===t.length){if(Om(e)){const e=Pk(t[0]),n=Pk(t[1]),r=e===Vt||e===Wt?[Ah(e,n,!1)]:l;return $s(void 0,P,l,l,r)}return wt}return Ay(e),ne?void 0:wt}}}function jy(e){const t=da(e);if(!t.resolvedType){if(kl(e)&&W_(e.parent))return t.resolvedSymbol=xt,t.resolvedType=Ij(e.parent.expression);let n,r;const i=788968;Py(e)&&(r=Iy(e),r||(n=yy(e,i,!0),n===xt?n=yy(e,111551|i):yy(e,i),r=vy(e,n))),r||(n=yy(e,i),r=vy(e,n)),t.resolvedSymbol=n,t.resolvedType=r}return t.resolvedType}function Ry(e){return E(e.typeArguments,Pk)}function By(e){const t=da(e);if(!t.resolvedType){const n=bL(e);t.resolvedType=dk(jw(n))}return t.resolvedType}function Jy(e,t){function n(e){const t=e.declarations;if(t)for(const e of t)switch(e.kind){case 264:case 265:case 267:return e}}if(!e)return t?On:Nn;const r=Au(e);return 524288&r.flags?u(r.typeParameters)!==t?(zo(n(e),_a.Global_type_0_must_have_1_type_parameter_s,yc(e),t),t?On:Nn):r:(zo(n(e),_a.Global_type_0_must_be_a_class_or_interface_type,yc(e)),t?On:Nn)}function zy(e,t){return Vy(e,111551,t?_a.Cannot_find_global_value_0:void 0)}function qy(e,t){return Vy(e,788968,t?_a.Cannot_find_global_type_0:void 0)}function Uy(e,t,n){const r=Vy(e,788968,n?_a.Cannot_find_global_type_0:void 0);if(!r||(Au(r),u(ua(r).typeParameters)===t))return r;zo(r.declarations&&b(r.declarations,fE),_a.Global_type_0_must_have_1_type_parameter_s,yc(r),t)}function Vy(e,t,n){return Ue(void 0,e,t,n,!1,!1)}function Wy(e,t,n){const r=qy(e,n);return r||n?Jy(r,t):void 0}function $y(e,t){let n;for(const r of e)n=ie(n,Wy(r,t,!1));return n??l}function Hy(){return Lr||(Lr=Wy("ImportMeta",0,!0)||Nn)}function Ky(){if(!jr){const e=Xo(0,"ImportMetaExpression"),t=Hy(),n=Xo(4,"meta",8);n.parent=e,n.links.type=t;const r=Gu([n]);e.members=r,jr=$s(e,r,l,l,l)}return jr}function Gy(e){return Mr||(Mr=Wy("ImportCallOptions",0,e))||Nn}function Qy(e){return Rr||(Rr=Wy("ImportAttributes",0,e))||Nn}function Yy(e){return dr||(dr=zy("Symbol",e))}function Zy(){return fr||(fr=Wy("Symbol",0,!1))||Nn}function ev(e){return gr||(gr=Wy("Promise",1,e))||On}function tv(e){return hr||(hr=Wy("PromiseLike",1,e))||On}function nv(e){return yr||(yr=zy("Promise",e))}function rv(e){return Nr||(Nr=Wy("AsyncIterable",3,e))||On}function av(e){return Fr||(Fr=Wy("AsyncIterableIterator",3,e))||On}function dv(e){return br||(br=Wy("Iterable",3,e))||On}function pv(e){return kr||(kr=Wy("IterableIterator",3,e))||On}function mv(){return ee?jt:wt}function vv(e){return Br||(Br=Wy("Disposable",0,e))||Nn}function bv(e,t=0){const n=Vy(e,788968,void 0);return n&&Jy(n,t)}function xv(e){return Ur||(Ur=Uy("Awaited",1,e)||(e?xt:void 0)),Ur===xt?void 0:Ur}function kv(e,t){return e!==On?ay(e,t):Nn}function Sv(e){return kv(mr||(mr=Wy("TypedPropertyDescriptor",1,!0)||On),[e])}function Mv(e){return kv(dv(!0),[e,ln,jt])}function Rv(e,t){return kv(t?er:Zn,[e])}function Jv(e){switch(e.kind){case 191:return 2;case 192:return zv(e);case 203:return e.questionToken?2:e.dotDotDotToken?zv(e):1;default:return 1}}function zv(e){return Ek(e.type)?4:8}function qv(e){return WD(e)||TD(e)?e:void 0}function Uv(e,t){return!!tk(e)||Vv(e)&&(189===e.kind?Wv(e.elementType):190===e.kind?$(e.elements,Wv):t||$(e.typeArguments,Wv))}function Vv(e){const t=e.parent;switch(t.kind){case 197:case 203:case 184:case 193:case 194:case 200:case 195:case 199:case 189:case 190:return Vv(t);case 266:return!0}return!1}function Wv(e){switch(e.kind){case 184:return Py(e)||!!(524288&yy(e,788968).flags);case 187:return!0;case 199:return 158!==e.operator&&Wv(e.type);case 197:case 191:case 203:case 317:case 315:case 316:case 310:return Wv(e.type);case 192:return 189!==e.type.kind||Wv(e.type.elementType);case 193:case 194:return $(e.types,Wv);case 200:return Wv(e.objectType)||Wv(e.indexType);case 195:return Wv(e.checkType)||Wv(e.extendsType)||Wv(e.trueType)||Wv(e.falseType)}return!1}function Gv(e,t,n=!1,r=[]){const i=Xv(t||E(e,e=>1),n,r);return i===On?Nn:e.length?Qv(i,e):i}function Xv(e,t,n){if(1===e.length&&4&e[0])return t?er:Zn;const r=E(e,e=>1&e?"#":2&e?"?":4&e?".":"*").join()+(t?"R":"")+($(n,e=>!!e)?","+E(n,e=>e?ZB(e):"_").join(","):"");let i=Ye.get(r);return i||Ye.set(r,i=function(e,t,n){const r=e.length,i=w(e,e=>!!(9&e));let o;const a=[];let s=0;if(r){o=new Array(r);for(let i=0;i!!(8&e.elementFlags[n]&&1179648&t.flags));if(n>=0)return zb(E(t,(t,n)=>8&e.elementFlags[n]?t:Ot))?nF(t[n],r=>tb(e,Se(t,n,r))):Et}const s=[],c=[],l=[];let _=-1,u=-1,p=-1;for(let c=0;c=1e4)return zo(r,wf(r)?_a.Type_produces_a_tuple_type_that_is_too_large_to_represent:_a.Expression_produces_a_tuple_type_that_is_too_large_to_represent),Et;d(e,(e,t)=>{var n;return m(e,l.target.elementFlags[t],null==(n=l.target.labeledElementDeclarations)?void 0:n[t])})}else m(JC(l)&&Qm(l,Wt)||Et,4,null==(o=e.labeledElementDeclarations)?void 0:o[c]);else m(l,_,null==(a=e.labeledElementDeclarations)?void 0:a[c])}for(let e=0;e<_;e++)2&c[e]&&(c[e]=1);u>=0&&u8&c[u+t]?Ax(e,Wt):e)),s.splice(u+1,p-u),c.splice(u+1,p-u),l.splice(u+1,p-u));const f=Xv(c,e.readonly,l);return f===On?Nn:c.length?ay(f,s):f;function m(e,t,n){1&t&&(_=c.length),4&t&&u<0&&(u=c.length),6&t&&(p=c.length),s.push(2&t?Pl(e,!0):e),c.push(t),l.push(n)}}function ib(e,t,n=0){const r=e.target,i=dy(e)-n;return t>r.fixedLength?function(e){const t=aw(e);return t&&Rv(t)}(e)||Gv(l):Gv(uy(e).slice(t,i),r.elementFlags.slice(t,i),!1,r.labeledElementDeclarations&&r.labeledElementDeclarations.slice(t,i))}function hb(e){return Pb(ie(Ie(e.target.fixedLength,e=>fk(""+e)),Yb(e.target.readonly?er:Zn)))}function yb(e,t){return e.elementFlags.length-S(e.elementFlags,e=>!(e&t))-1}function vb(e){return e.fixedLength+yb(e,3)}function xb(e){const t=uy(e),n=dy(e);return t.length===n?t:t.slice(0,n)}function kb(e){return e.id}function Sb(e,t){return Te(e,t,kb,vt)>=0}function Tb(e,t){const n=Te(e,t,kb,vt);return n<0&&(e.splice(~n,0,t),!0)}function Cb(e,t,n){const r=n.flags;if(!(131072&r))if(t|=473694207&r,465829888&r&&(t|=33554432),2097152&r&&67108864&gx(n)&&(t|=536870912),n===Dt&&(t|=8388608),al(n)&&(t|=1073741824),!H&&98304&r)65536&gx(n)||(t|=4194304);else{const t=e.length,r=t&&n.id>e[t-1].id?~t:Te(e,n,kb,vt);r<0&&e.splice(~r,0,n)}return t}function wb(e,t,n){let r;for(const i of n)i!==r&&(t=1048576&i.flags?wb(e,t|(Db(i)?1048576:0),i.types):Cb(e,t,i),r=i);return t}function Nb(e,t){return 134217728&t.flags?gN(e,t):pN(e,t)}function Db(e){return!!(1048576&e.flags&&(e.aliasSymbol||e.origin))}function Fb(e,t){for(const n of t)if(1048576&n.flags){const t=n.origin;n.aliasSymbol||t&&!(1048576&t.flags)?ce(e,n):t&&1048576&t.flags&&Fb(e,t.types)}}function Eb(e,t){const n=Rs(e);return n.types=t,n}function Pb(e,t=1,n,r,i){if(0===e.length)return _n;if(1===e.length)return e[0];if(2===e.length&&!i&&(1048576&e[0].flags||1048576&e[1].flags)){const i=0===t?"N":2===t?"S":"L",o=e[0].id=2&&a[0]===jt&&a[1]===Rt&&qt(a,1),(402664352&s||16384&s&&32768&s)&&function(e,t,n){let r=e.length;for(;r>0;){r--;const i=e[r],o=i.flags;(402653312&o&&4&t||256&o&&8&t||2048&o&&64&t||8192&o&&4096&t||n&&32768&o&&16384&t||pk(i)&&Sb(e,i.regularType))&&qt(e,r)}}(a,s,!!(2&t)),128&s&&402653184&s&&function(e){const t=N(e,vx);if(t.length){let n=e.length;for(;n>0;){n--;const r=e[n];128&r.flags&&$(t,e=>Nb(r,e))&&qt(e,n)}}}(a),536870912&s&&function(e){const t=[];for(const n of e)if(2097152&n.flags&&67108864&gx(n)){const e=8650752&n.types[0].flags?0:1;ce(t,n.types[e])}for(const n of t){const t=[];for(const r of e)if(2097152&r.flags&&67108864&gx(r)){const e=8650752&r.types[0].flags?0:1;r.types[e]===n&&Tb(t,r.types[1-e])}if(KD(pf(n),e=>Sb(t,e))){let r=e.length;for(;r>0;){r--;const i=e[r];if(2097152&i.flags&&67108864&gx(i)){const o=8650752&i.types[0].flags?0:1;i.types[o]===n&&Sb(t,i.types[1-o])&&qt(e,r)}}Tb(e,n)}}}(a),2===t&&(a=function(e,t){var n;if(e.length<2)return e;const i=ny(e),o=pt.get(i);if(o)return o;const a=t&&$(e,e=>!!(524288&e.flags)&&!Sp(e)&&KS(Cp(e))),s=e.length;let c=s,l=0;for(;c>0;){c--;const t=e[c];if(a||469499904&t.flags){if(262144&t.flags&&1048576&ff(t).flags){iT(t,Pb(E(e,e=>e===t?_n:e)),Co)&&qt(e,c);continue}const i=61603840&t.flags?b(Up(t),e=>KC(P_(e))):void 0,o=i&&dk(P_(i));for(const a of e)if(t!==a){if(1e5===l&&l/(s-c)*s>1e6)return null==(n=Hn)||n.instant(Hn.Phase.CheckTypes,"removeSubtypes_DepthLimit",{typeIds:e.map(e=>e.id)}),void zo(r,_a.Expression_produces_a_union_type_that_is_too_complex_to_represent);if(l++,i&&61603840&a.flags){const e=el(a,i.escapedName);if(e&&KC(e)&&dk(e)!==o)continue}if(iT(t,a,Co)&&(!(1&gx(z_(t)))||!(1&gx(z_(a)))||ES(t,a))){qt(e,c);break}}}}return pt.set(i,e),e}(a,!!(524288&s)),!a))return Et;if(0===a.length)return 65536&s?4194304&s?zt:Ut:32768&s?4194304&s?jt:Mt:_n}if(!o&&1048576&s){const t=[];Fb(t,e);const r=[];for(const e of a)$(t,t=>Sb(t.types,e))||r.push(e);if(!n&&1===t.length&&0===r.length)return t[0];if(we(t,(e,t)=>e+t.types.length,0)+r.length===a.length){for(const e of t)Tb(r,e);o=Eb(1048576,r)}}return Ob(a,(36323331&s?0:32768)|(2097152&s?16777216:0),n,i,o)}function Ib(e,t){return e.kind===t.kind&&e.parameterIndex===t.parameterIndex}function Ob(e,t,n,r,i){if(0===e.length)return _n;if(1===e.length)return e[0];const o=(i?1048576&i.flags?`|${ny(i.types)}`:2097152&i.flags?`&${ny(i.types)}`:`#${i.type.id}|${ny(e)}`:ny(e))+ry(n,r);let a=et.get(o);return a||(a=js(1048576),a.objectFlags=t|iy(e,98304),a.types=e,a.origin=i,a.aliasSymbol=n,a.aliasTypeArguments=r,2===e.length&&512&e[0].flags&&512&e[1].flags&&(a.flags|=16,a.intrinsicName="boolean"),et.set(o,a)),a}function Lb(e,t,n){const r=n.flags;return 2097152&r?jb(e,t,n.types):(XS(n)?16777216&t||(t|=16777216,e.set(n.id.toString(),n)):(3&r?(n===Dt&&(t|=8388608),al(n)&&(t|=1073741824)):!H&&98304&r||(n===Rt&&(t|=262144,n=jt),e.has(n.id.toString())||(109472&n.flags&&109472&t&&(t|=67108864),e.set(n.id.toString(),n))),t|=473694207&r),t)}function jb(e,t,n){for(const r of n)t=Lb(e,t,dk(r));return t}function Mb(e,t){for(const n of e)if(!Sb(n.types,t)){if(t===Rt)return Sb(n.types,jt);if(t===jt)return Sb(n.types,Rt);const e=128&t.flags?Vt:288&t.flags?Wt:2048&t.flags?$t:8192&t.flags?cn:void 0;if(!e||!Sb(n.types,e))return!1}return!0}function Rb(e,t){for(let n=0;n!(e.flags&t))}function Bb(e,t=0,n,r){const i=new Map,o=jb(i,0,e),a=Oe(i.values());let s=0;if(131072&o)return T(a,dn)?dn:_n;if(H&&98304&o&&84410368&o||67108864&o&&402783228&o||402653316&o&&67238776&o||296&o&&469891796&o||2112&o&&469889980&o||12288&o&&469879804&o||49152&o&&469842940&o)return _n;if(402653184&o&&128&o&&function(e){let t=e.length;const n=N(e,e=>!!(128&e.flags));for(;t>0;){t--;const r=e[t];if(402653184&r.flags)for(const i of n){if(NS(i,r)){qt(e,t);break}if(vx(r))return!0}}return!1}(a))return _n;if(1&o)return 8388608&o?Dt:1073741824&o?Et:wt;if(!H&&98304&o)return 16777216&o?_n:32768&o?jt:zt;if((4&o&&402653312&o||8&o&&256&o||64&o&&2048&o||4096&o&&8192&o||16384&o&&32768&o||16777216&o&&470302716&o)&&(1&t||function(e,t){let n=e.length;for(;n>0;){n--;const r=e[n];(4&r.flags&&402653312&t||8&r.flags&&256&t||64&r.flags&&2048&t||4096&r.flags&&8192&t||16384&r.flags&&32768&t||XS(r)&&470302716&t)&&qt(e,n)}}(a,o)),262144&o&&(a[a.indexOf(jt)]=Rt),0===a.length)return Ot;if(1===a.length)return a[0];if(2===a.length&&!(2&t)){const e=8650752&a[0].flags?0:1,t=a[e],n=a[1-e];if(8650752&t.flags&&(469893116&n.flags&&!bx(n)||16777216&o)){const e=pf(t);if(e&&KD(e,e=>!!(469893116&e.flags)||XS(e))){if(DS(e,n))return t;if(!(1048576&e.flags&&UD(e,e=>DS(e,n))||DS(n,e)))return _n;s=67108864}}}const c=ny(a)+(2&t?"*":ry(n,r));let l=it.get(c);if(!l){if(1048576&o)if(function(e){let t;const n=k(e,e=>!!(32768&gx(e)));if(n<0)return!1;let r=n+1;for(;r!!(1048576&e.flags&&32768&e.types[0].flags))){const e=$(a,Sw)?Rt:jt;Rb(a,32768),l=Pb([Bb(a,t),e],1,n,r)}else if(v(a,e=>!!(1048576&e.flags&&(65536&e.types[0].flags||65536&e.types[1].flags))))Rb(a,65536),l=Pb([Bb(a,t),zt],1,n,r);else if(a.length>=3&&e.length>2){const e=Math.floor(a.length/2);l=Bb([Bb(a.slice(0,e),t),Bb(a.slice(e),t)],t,n,r)}else{if(!zb(a))return Et;const e=function(e,t){const n=Jb(e),r=[];for(let i=0;i=0;t--)if(1048576&e[t].flags){const r=e[t].types,i=r.length;n[t]=r[o%i],o=Math.floor(o/i)}const a=Bb(n,t);131072&a.flags||r.push(a)}return r}(a,t);l=Pb(e,1,n,r,$(e,e=>!!(2097152&e.flags))&&Ub(e)>Ub(a)?Eb(2097152,a):void 0)}else l=function(e,t,n,r){const i=js(2097152);return i.objectFlags=t|iy(e,98304),i.types=e,i.aliasSymbol=n,i.aliasTypeArguments=r,i}(a,s,n,r);it.set(c,l)}return l}function Jb(e){return we(e,(e,t)=>1048576&t.flags?e*t.types.length:131072&t.flags?0:e,1)}function zb(e){var t;const n=Jb(e);return!(n>=1e5&&(null==(t=Hn)||t.instant(Hn.Phase.CheckTypes,"checkCrossProductUnion_DepthLimit",{typeIds:e.map(e=>e.id),size:n}),zo(r,_a.Expression_produces_a_union_type_that_is_too_complex_to_represent),1))}function qb(e){return 3145728&e.flags&&!e.aliasSymbol?1048576&e.flags&&e.origin?qb(e.origin):Ub(e.types):1}function Ub(e){return we(e,(e,t)=>e+qb(t),0)}function Vb(e,t){const n=js(4194304);return n.type=e,n.indexFlags=t,n}function Wb(e,t){return 1&t?e.resolvedStringIndexType||(e.resolvedStringIndexType=Vb(e,1)):e.resolvedIndexType||(e.resolvedIndexType=Vb(e,0))}function $b(e,t){const n=rp(e),r=ip(e),i=op(e.target||e);if(!(i||2&t))return r;const o=[];if(Cx(r)){if(yp(e))return Wb(e,t);bD(r,s)}else yp(e)?np(Sf(vp(e)),8576,!!(1&t),s):bD(Zd(r),s);const a=2&t?GD(Pb(o),e=>!(5&e.flags)):Pb(o);return 1048576&a.flags&&1048576&r.flags&&ny(a.types)===ny(r.types)?r:a;function s(t){const r=i?fS(i,rS(e.mapper,n,t)):t;o.push(r===Vt?gn:r)}}function Hb(e){if(sD(e))return _n;if(zN(e))return dk(eM(e));if(kD(e))return dk(BA(e));const t=Jh(e);return void 0!==t?fk(mc(t)):V_(e)?dk(eM(e)):_n}function Kb(e,t,n){if(n||!(6&ix(e))){let n=ua(Cd(e)).nameType;if(!n){const t=Cc(e.valueDeclaration);n="default"===e.escapedName?fk("default"):t&&Hb(t)||(Wh(e)?void 0:fk(yc(e)))}if(n&&n.flags&t)return n}return _n}function Gb(e,t){return!!(e.flags&t||2097152&e.flags&&$(e.types,e=>Gb(e,t)))}function Xb(e,t,n){const r=n&&(7&gx(e)||e.aliasSymbol)?function(e){const t=Rs(4194304);return t.type=e,t}(e):void 0;return Pb(K(E(Up(e),e=>Kb(e,t)),E(Jm(e),e=>e!==ui&&Gb(e.keyType,t)?e.keyType===Vt&&8&t?gn:e.keyType:_n)),1,void 0,void 0,r)}function Qb(e,t=0){return!!(58982400&e.flags||iw(e)||Sp(e)&&(!function(e){const t=rp(e);return function e(n){return!!(470810623&n.flags)||(16777216&n.flags?n.root.isDistributive&&n.checkType===t:137363456&n.flags?v(n.types,e):8388608&n.flags?e(n.objectType)&&e(n.indexType):33554432&n.flags?e(n.baseType)&&e(n.constraint):!!(268435456&n.flags)&&e(n.type))}(op(e)||t)}(e)||2===Tp(e))||1048576&e.flags&&!(4&t)&&Hf(e)||2097152&e.flags&&gj(e,465829888)&&$(e.types,XS))}function Yb(e,t=0){return Sy(e=Bf(e))?by(Yb(e.baseType,t)):Qb(e,t)?Wb(e,t):1048576&e.flags?Bb(E(e.types,e=>Yb(e,t))):2097152&e.flags?Pb(E(e.types,e=>Yb(e,t))):32&gx(e)?$b(e,t):e===Dt?Dt:2&e.flags?_n:131073&e.flags?hn:Xb(e,(2&t?128:402653316)|(1&t?0:12584),0===t)}function Zb(e){const t=(zr||(zr=Uy("Extract",2,!0)||xt),zr===xt?void 0:zr);return t?fy(t,[e,Vt]):Vt}function ex(e,t){const n=k(t,e=>!!(1179648&e.flags));if(n>=0)return zb(t)?nF(t[n],r=>ex(e,Se(t,n,r))):Et;if(T(t,Dt))return Dt;const r=[],i=[];let o=e[0];if(!function e(t,n){for(let a=0;a""===e)){if(v(r,e=>!!(4&e.flags)))return Vt;if(1===r.length&&vx(r[0]))return r[0]}const a=`${ny(r)}|${E(i,e=>e.length).join(",")}|${i.join("")}`;let s=_t.get(a);return s||_t.set(a,s=function(e,t){const n=js(134217728);return n.texts=e,n.types=t,n}(i,r)),s}function tx(e){return 128&e.flags?e.value:256&e.flags?""+e.value:2048&e.flags?gT(e.value):98816&e.flags?e.intrinsicName:void 0}function nx(e,t){return 1179648&t.flags?nF(t,t=>nx(e,t)):128&t.flags?fk(ox(e,t.value)):134217728&t.flags?ex(...function(e,t,n){switch(XB.get(e.escapedName)){case 0:return[t.map(e=>e.toUpperCase()),n.map(t=>nx(e,t))];case 1:return[t.map(e=>e.toLowerCase()),n.map(t=>nx(e,t))];case 2:return[""===t[0]?t:[t[0].charAt(0).toUpperCase()+t[0].slice(1),...t.slice(1)],""===t[0]?[nx(e,n[0]),...n.slice(1)]:n];case 3:return[""===t[0]?t:[t[0].charAt(0).toLowerCase()+t[0].slice(1),...t.slice(1)],""===t[0]?[nx(e,n[0]),...n.slice(1)]:n]}return[t,n]}(e,t.texts,t.types)):268435456&t.flags&&e===t.symbol?t:268435461&t.flags||Cx(t)?lx(e,t):yx(t)?lx(e,ex(["",""],[t])):t}function ox(e,t){switch(XB.get(e.escapedName)){case 0:return t.toUpperCase();case 1:return t.toLowerCase();case 2:return t.charAt(0).toUpperCase()+t.slice(1);case 3:return t.charAt(0).toLowerCase()+t.slice(1)}return t}function lx(e,t){const n=`${eJ(e)},${kb(t)}`;let r=ut.get(n);return r||ut.set(n,r=function(e,t){const n=Ms(268435456,e);return n.type=t,n}(e,t)),r}function _x(e){if(ne)return!1;if(4096&gx(e))return!0;if(1048576&e.flags)return v(e.types,_x);if(2097152&e.flags)return $(e.types,_x);if(465829888&e.flags){const t=gf(e);return t!==e&&_x(t)}return!1}function ux(e,t){return sC(e)?cC(e):t&&t_(t)?Jh(t):void 0}function dx(e,t){if(8208&t.flags){const n=uc(e.parent,e=>!Sx(e))||e.parent;return L_(n)?j_(n)&&aD(e)&&VN(n,e):v(t.declarations,e=>!r_(e)||Ko(e))}return!0}function px(e,t,n,r,i,o){const a=i&&213===i.kind?i:void 0,s=i&&sD(i)?void 0:ux(n,i);if(void 0!==s){if(256&o)return sA(t,s)||wt;const e=pm(t,s);if(e){if(64&o&&i&&e.declarations&&Ho(e)&&dx(i,e)&&Go((null==a?void 0:a.argumentExpression)??(tF(i)?i.indexType:i),e.declarations,s),a){if(oO(e,a,aO(a.expression,t.symbol)),uj(a,e,Xg(a)))return void zo(a.argumentExpression,_a.Cannot_assign_to_0_because_it_is_a_read_only_property,bc(e));if(8&o&&(da(i).resolvedSymbol=e),JI(a,e))return Nt}const n=4&o?E_(e):P_(e);return a&&1!==Xg(a)?rE(a,n):i&&tF(i)&&Sw(n)?Pb([n,jt]):n}if(KD(t,rw)&&JT(s)){const e=+s;if(i&&KD(t,e=>!(12&e.target.combinedFlags))&&!(16&o)){const n=fx(i);if(rw(t)){if(e<0)return zo(n,_a.A_tuple_type_cannot_be_indexed_with_a_negative_value),jt;zo(n,_a.Tuple_type_0_of_length_1_has_no_element_at_index_2,Tc(t),dy(t),mc(s))}else zo(n,_a.Property_0_does_not_exist_on_type_1,mc(s),Tc(t))}if(e>=0)return c(qm(t,Wt)),sw(t,e,1&o?Rt:void 0)}}if(!(98304&n.flags)&&hj(n,402665900)){if(131073&t.flags)return t;const l=ig(t,n)||qm(t,Vt);if(l)return 2&o&&l.keyType!==Wt?void(a&&(4&o?zo(a,_a.Type_0_is_generic_and_can_only_be_indexed_for_reading,Tc(e)):zo(a,_a.Type_0_cannot_be_used_to_index_type_1,Tc(n),Tc(e)))):i&&l.keyType===Vt&&!hj(n,12)?(zo(fx(i),_a.Type_0_cannot_be_used_as_an_index_type,Tc(n)),1&o?Pb([l.type,Rt]):l.type):(c(l),1&o&&!(t.symbol&&384&t.symbol.flags&&n.symbol&&1024&n.flags&&Ts(n.symbol)===t.symbol)?Pb([l.type,Rt]):l.type);if(131072&n.flags)return _n;if(_x(t))return wt;if(a&&!vj(t)){if(xN(t)){if(ne&&384&n.flags)return ho.add(Rp(a,_a.Property_0_does_not_exist_on_type_1,n.value,Tc(t))),jt;if(12&n.flags)return Pb(ie(E(t.properties,e=>P_(e)),jt))}if(t.symbol===Fe&&void 0!==s&&Fe.exports.has(s)&&418&Fe.exports.get(s).flags)zo(a,_a.Property_0_does_not_exist_on_type_1,mc(s),Tc(t));else if(ne&&!(128&o))if(void 0!==s&&HI(s,t)){const e=Tc(t);zo(a,_a.Property_0_does_not_exist_on_type_1_Did_you_mean_to_access_the_static_member_2_instead,s,e,e+"["+Xd(a.argumentExpression)+"]")}else if(Qm(t,Wt))zo(a.argumentExpression,_a.Element_implicitly_has_an_any_type_because_index_expression_is_not_of_type_number);else{let e;if(void 0!==s&&(e=ZI(s,t)))void 0!==e&&zo(a.argumentExpression,_a.Property_0_does_not_exist_on_type_1_Did_you_mean_2,s,Tc(t),e);else{const e=function(e,t,n){const r=Qg(t)?"set":"get";if(!function(t){const r=Lp(e,t);if(r){const e=CO(P_(r));return!!e&&ML(e)>=1&&FS(n,AL(e,0))}return!1}(r))return;let i=_b(t.expression);return void 0===i?i=r:i+="."+r,i}(t,a,n);if(void 0!==e)zo(a,_a.Element_implicitly_has_an_any_type_because_type_0_has_no_index_signature_Did_you_mean_to_call_1,Tc(t),e);else{let e;if(1024&n.flags)e=Zx(void 0,_a.Property_0_does_not_exist_on_type_1,"["+Tc(n)+"]",Tc(t));else if(8192&n.flags){const r=es(n.symbol,a);e=Zx(void 0,_a.Property_0_does_not_exist_on_type_1,"["+r+"]",Tc(t))}else 128&n.flags||256&n.flags?e=Zx(void 0,_a.Property_0_does_not_exist_on_type_1,n.value,Tc(t)):12&n.flags&&(e=Zx(void 0,_a.No_index_signature_with_a_parameter_of_type_0_was_found_on_type_1,Tc(n),Tc(t)));e=Zx(e,_a.Element_implicitly_has_an_any_type_because_expression_of_type_0_can_t_be_used_to_index_type_1,Tc(r),Tc(t)),ho.add(zp(vd(a),a,e))}}}return}}if(16&o&&xN(t))return jt;if(_x(t))return wt;if(i){const e=fx(i);if(10!==e.kind&&384&n.flags)zo(e,_a.Property_0_does_not_exist_on_type_1,""+n.value,Tc(t));else if(12&n.flags)zo(e,_a.Type_0_has_no_matching_index_signature_for_type_1,Tc(t),Tc(n));else{const t=10===e.kind?"bigint":Tc(n);zo(e,_a.Type_0_cannot_be_used_as_an_index_type,t)}}return il(n)?n:void 0;function c(e){e&&e.isReadonly&&a&&(Qg(a)||sh(a))&&zo(a,_a.Index_signature_in_type_0_only_permits_reading,Tc(t))}}function fx(e){return 213===e.kind?e.argumentExpression:200===e.kind?e.indexType:168===e.kind?e.expression:e}function yx(e){if(2097152&e.flags){let t=!1;for(const n of e.types)if(101248&n.flags||yx(n))t=!0;else if(!(524288&n.flags))return!1;return t}return!!(77&e.flags)||vx(e)}function vx(e){return!!(134217728&e.flags)&&v(e.types,yx)||!!(268435456&e.flags)&&yx(e.type)}function bx(e){return!!(402653184&e.flags)&&!vx(e)}function xx(e){return!!Nx(e)}function Tx(e){return!!(4194304&Nx(e))}function Cx(e){return!!(8388608&Nx(e))}function Nx(e){return 3145728&e.flags?(2097152&e.objectFlags||(e.objectFlags|=2097152|we(e.types,(e,t)=>e|Nx(t),0)),12582912&e.objectFlags):33554432&e.flags?(2097152&e.objectFlags||(e.objectFlags|=2097152|Nx(e.baseType)|Nx(e.constraint)),12582912&e.objectFlags):(58982400&e.flags||Sp(e)||iw(e)?4194304:0)|(63176704&e.flags||bx(e)?8388608:0)}function Dx(e,t){return 8388608&e.flags?function(e,t){const n=t?"simplifiedForWriting":"simplifiedForReading";if(e[n])return e[n]===Mn?e:e[n];e[n]=Mn;const r=Dx(e.objectType,t),i=Dx(e.indexType,t),o=function(e,t,n){if(1048576&t.flags){const r=E(t.types,t=>Dx(Ax(e,t),n));return n?Bb(r):Pb(r)}}(r,i,t);if(o)return e[n]=o;if(!(465829888&i.flags)){const o=Fx(r,i,t);if(o)return e[n]=o}if(iw(r)&&296&i.flags){const o=cw(r,8&i.flags?0:r.target.fixedLength,0,t);if(o)return e[n]=o}return Sp(r)&&2!==Tp(r)?e[n]=nF(Px(r,e.indexType),e=>Dx(e,t)):e[n]=e}(e,t):16777216&e.flags?function(e,t){const n=e.checkType,r=e.extendsType,i=qx(e),o=Ux(e);if(131072&o.flags&&Rx(i)===Rx(n)){if(1&n.flags||FS(hS(n),hS(r)))return Dx(i,t);if(Ex(n,r))return _n}else if(131072&i.flags&&Rx(o)===Rx(n)){if(!(1&n.flags)&&FS(hS(n),hS(r)))return _n;if(1&n.flags||Ex(n,r))return Dx(o,t)}return e}(e,t):e}function Fx(e,t,n){if(1048576&e.flags||2097152&e.flags&&!Qb(e)){const r=E(e.types,e=>Dx(Ax(e,t),n));return 2097152&e.flags||n?Bb(r):Pb(r)}}function Ex(e,t){return!!(131072&Pb([zd(e,t),_n]).flags)}function Px(e,t){const n=Uk([rp(e)],[t]),r=eS(e.mapper,n),i=fS(_p(e.target||e),r),o=xp(e)>0||(xx(e)?kp(vp(e))>0:function(e,t){const n=pf(t);return!!n&&$(Up(e),e=>!!(16777216&e.flags)&&FS(Kb(e,8576),n))}(e,t));return Pl(i,!0,o)}function Ax(e,t,n=0,r,i,o){return Ox(e,t,n,r,i,o)||(r?Et:Ot)}function Ix(e,t){return KD(e,e=>{if(384&e.flags){const n=cC(e);if(JT(n)){const e=+n;return e>=0&&e0&&!$(e.elements,e=>$D(e)||HD(e)||WD(e)&&!(!e.questionToken&&!e.dotDotDotToken))}function Jx(e,t){return xx(e)||t&&rw(e)&&$(xb(e),xx)}function zx(e,t,n,i,o){let a,s,c=0;for(;;){if(1e3===c)return zo(r,_a.Type_instantiation_is_excessively_deep_and_possibly_infinite),Et;const _=fS(Rx(e.checkType),t),d=fS(e.extendsType,t);if(_===Et||d===Et)return Et;if(_===Dt||d===Dt)return Dt;const p=oh(e.node.checkType),f=oh(e.node.extendsType),m=Bx(p)&&Bx(f)&&u(p.elements)===u(f.elements),g=Jx(_,m);let h;if(e.inferTypeParameters){const n=Vw(e.inferTypeParameters,void 0,0);t&&(n.nonFixingMapper=eS(n.nonFixingMapper,t)),g||yN(n.inferences,_,d,1536),h=t?eS(n.mapper,t):n.mapper}const y=h?fS(e.extendsType,h):d;if(!g&&!Jx(y,m)){if(!(3&y.flags)&&(1&_.flags||!FS(gS(_),gS(y)))){(1&_.flags||n&&!(131072&y.flags)&&UD(gS(y),e=>FS(e,gS(_))))&&(s||(s=[])).push(fS(Pk(e.node.trueType),h||t));const r=Pk(e.node.falseType);if(16777216&r.flags){const n=r.root;if(n.node.parent===e.node&&(!n.isDistributive||n.checkType===e.checkType)){e=n;continue}if(l(r,t))continue}a=fS(r,t);break}if(3&y.flags||FS(hS(_),hS(y))){const n=Pk(e.node.trueType),r=h||t;if(l(n,r))continue;a=fS(n,r);break}}a=js(16777216),a.root=e,a.checkType=fS(e.checkType,t),a.extendsType=fS(e.extendsType,t),a.mapper=t,a.combinedMapper=h,a.aliasSymbol=i||e.aliasSymbol,a.aliasTypeArguments=i?o:Mk(e.aliasTypeArguments,t);break}return s?Pb(ie(s,a)):a;function l(n,r){if(16777216&n.flags&&r){const a=n.root;if(a.outerTypeParameters){const s=eS(n.mapper,r),l=E(a.outerTypeParameters,e=>Vk(e,s)),_=Uk(a.outerTypeParameters,l),u=a.isDistributive?Vk(a.checkType,_):void 0;if(!(u&&u!==a.checkType&&1179648&u.flags))return e=a,t=_,i=void 0,o=void 0,a.aliasSymbol&&c++,!0}}return!1}}function qx(e){return e.resolvedTrueType||(e.resolvedTrueType=fS(Pk(e.root.node.trueType),e.mapper))}function Ux(e){return e.resolvedFalseType||(e.resolvedFalseType=fS(Pk(e.root.node.falseType),e.mapper))}function Vx(e){let t;return e.locals&&e.locals.forEach(e=>{262144&e.flags&&(t=ie(t,Au(e)))}),t}function $x(e){return aD(e)?[e]:ie($x(e.left),e.right)}function Hx(e){var t;const n=da(e);if(!n.resolvedType){if(!df(e))return zo(e.argument,_a.String_literal_expected),n.resolvedSymbol=xt,n.resolvedType=Et;const r=e.isTypeOf?111551:16777216&e.flags?900095:788968,i=rs(e,e.argument.literal);if(!i)return n.resolvedSymbol=xt,n.resolvedType=Et;const o=!!(null==(t=i.exports)?void 0:t.get("export=")),a=ss(i,!1);if(Nd(e.qualifier))a.flags&r?n.resolvedType=Kx(e,n,a,r):(zo(e,111551===r?_a.Module_0_does_not_refer_to_a_value_but_is_used_as_a_value_here:_a.Module_0_does_not_refer_to_a_type_but_is_used_as_a_type_here_Did_you_mean_typeof_import_0,e.argument.literal.text),n.resolvedSymbol=xt,n.resolvedType=Et);else{const t=$x(e.qualifier);let i,s=a;for(;i=t.shift();){const a=t.length?1920:r,c=xs($a(s)),l=e.isTypeOf||Em(e)&&o?pm(P_(c),i.escapedText,!1,!0):void 0,_=(e.isTypeOf?void 0:pa(hs(c),i.escapedText,a))??l;if(!_)return zo(i,_a.Namespace_0_has_no_exported_member_1,es(s),Ap(i)),n.resolvedType=Et;da(i).resolvedSymbol=_,da(i.parent).resolvedSymbol=_,s=_}n.resolvedType=Kx(e,n,s,r)}}return n.resolvedType}function Kx(e,t,n,r){const i=$a(n);return t.resolvedSymbol=i,111551===r?xL(P_(n),e):vy(e,i)}function Yx(e){const t=da(e);if(!t.resolvedType){const n=tk(e);if(!e.symbol||0===Td(e.symbol).size&&!n)t.resolvedType=Pn;else{let r=Js(16,e.symbol);r.aliasSymbol=n,r.aliasTypeArguments=rk(n),TP(e)&&e.isArrayType&&(r=Rv(r)),t.resolvedType=r}}return t.resolvedType}function tk(e){let t=e.parent;for(;YD(t)||lP(t)||eF(t)&&148===t.operator;)t=t.parent;return Fg(t)?ks(t):void 0}function rk(e){return e?Z_(e):void 0}function ik(e){return!!(524288&e.flags)&&!Sp(e)}function ok(e){return GS(e)||!!(474058748&e.flags)}function ak(e,t){if(!(1048576&e.flags))return e;if(v(e.types,ok))return b(e.types,GS)||Nn;const n=b(e.types,e=>!ok(e));return n?b(e.types,e=>e!==n&&!ok(e))?e:function(e){const n=Gu();for(const r of Up(e))if(6&ix(r));else if(ck(r)){const e=65536&r.flags&&!(32768&r.flags),i=Xo(16777220,r.escapedName,ep(r)|(t?8:0));i.links.type=e?jt:Pl(P_(r),!0),i.declarations=r.declarations,i.links.nameType=ua(r).nameType,i.links.syntheticOrigin=r,n.set(r.escapedName,i)}const r=$s(e.symbol,n,l,l,Jm(e));return r.objectFlags|=131200,r}(n):e}function sk(e,t,n,r,i){if(1&e.flags||1&t.flags)return wt;if(2&e.flags||2&t.flags)return Ot;if(131072&e.flags)return t;if(131072&t.flags)return e;if(1048576&(e=ak(e,i)).flags)return zb([e,t])?nF(e,e=>sk(e,t,n,r,i)):Et;if(1048576&(t=ak(t,i)).flags)return zb([e,t])?nF(t,t=>sk(e,t,n,r,i)):Et;if(473960444&t.flags)return e;if(Tx(e)||Tx(t)){if(GS(e))return t;if(2097152&e.flags){const o=e.types,a=o[o.length-1];if(ik(a)&&ik(t))return Bb(K(o.slice(0,o.length-1),[sk(a,t,n,r,i)]))}return Bb([e,t])}const o=Gu(),a=new Set,s=e===Nn?Jm(t):Jd([e,t]);for(const e of Up(t))6&ix(e)?a.add(e.escapedName):ck(e)&&o.set(e.escapedName,lk(e,i));for(const t of Up(e))if(!a.has(t.escapedName)&&ck(t))if(o.has(t.escapedName)){const e=o.get(t.escapedName),n=P_(e);if(16777216&e.flags){const r=K(t.declarations,e.declarations),i=Xo(4|16777216&t.flags,t.escapedName),a=P_(t),s=Tw(a),c=Tw(n);i.links.type=s===c?a:Pb([a,c],2),i.links.leftSpread=t,i.links.rightSpread=e,i.declarations=r,i.links.nameType=ua(t).nameType,o.set(t.escapedName,i)}}else o.set(t.escapedName,lk(t,i));const c=$s(n,o,l,l,A(s,e=>function(e,t){return e.isReadonly!==t?Ah(e.keyType,e.type,t,e.declaration,e.components):e}(e,i)));return c.objectFlags|=2228352|r,c}function ck(e){var t;return!($(e.declarations,Kl)||106496&e.flags&&(null==(t=e.declarations)?void 0:t.some(e=>u_(e.parent))))}function lk(e,t){const n=65536&e.flags&&!(32768&e.flags);if(!n&&t===_j(e))return e;const r=Xo(4|16777216&e.flags,e.escapedName,ep(e)|(t?8:0));return r.links.type=n?jt:P_(e),r.declarations=e.declarations,r.links.nameType=ua(e).nameType,r.links.syntheticOrigin=e,r}function _k(e,t,n,r){const i=Ms(e,n);return i.value=t,i.regularType=r||i,i}function uk(e){if(2976&e.flags){if(!e.freshType){const t=_k(e.flags,e.value,e.symbol,e);t.freshType=t,e.freshType=t}return e.freshType}return e}function dk(e){return 2976&e.flags?e.regularType:1048576&e.flags?e.regularType||(e.regularType=nF(e,dk)):e}function pk(e){return!!(2976&e.flags)&&e.freshType===e}function fk(e){let t;return ot.get(e)||(ot.set(e,t=_k(128,e)),t)}function mk(e){let t;return at.get(e)||(at.set(e,t=_k(256,e)),t)}function gk(e){let t;const n=gT(e);return st.get(n)||(st.set(n,t=_k(2048,e)),t)}function hk(e,t,n){let r;const i=`${t}${"string"==typeof e?"@":"#"}${e}`,o=1024|("string"==typeof e?128:256);return ct.get(i)||(ct.set(i,r=_k(o,e,n)),r)}function xk(e){if(Em(e)&&lP(e)){const t=Vg(e);t&&(e=Ag(t)||t)}if(jf(e)){const t=Lf(e)?Ss(e.left):Ss(e);if(t){const e=ua(t);return e.uniqueESSymbolType||(e.uniqueESSymbolType=function(e){const t=Ms(8192,e);return t.escapedName=`__@${t.symbol.escapedName}@${eJ(t.symbol)}`,t}(t))}}return cn}function Ck(e){const t=da(e);return t.resolvedType||(t.resolvedType=function(e){const t=em(e,!1,!1),n=t&&t.parent;if(n&&(u_(n)||265===n.kind)&&!Dv(t)&&(!PD(t)||ch(e,t.body)))return mu(ks(n)).thisType;if(n&&uF(n)&&NF(n.parent)&&6===tg(n.parent))return mu(Ss(n.parent.left).parent).thisType;const r=16777216&e.flags?qg(e):void 0;return r&&vF(r)&&NF(r.parent)&&3===tg(r.parent)?mu(Ss(r.parent.left).parent).thisType:sL(t)&&ch(e,t.body)?mu(ks(t)).thisType:(zo(e,_a.A_this_type_is_available_only_in_a_non_static_member_of_a_class_or_interface),Et)}(e)),t.resolvedType}function wk(e){return Pk(Ek(e.type)||e.type)}function Ek(e){switch(e.kind){case 197:return Ek(e.type);case 190:if(1===e.elements.length&&(192===(e=e.elements[0]).kind||203===e.kind&&e.dotDotDotToken))return Ek(e.type);break;case 189:return e.elementType}}function Pk(e){return function(e,t){let n,r=!0;for(;t&&!pu(t)&&321!==t.kind;){const i=t.parent;if(170===i.kind&&(r=!r),(r||8650752&e.flags)&&195===i.kind&&t===i.trueType){const t=Dy(e,i.checkType,i.extendsType);t&&(n=ie(n,t))}else if(262144&e.flags&&201===i.kind&&!i.nameType&&t===i.type){const t=Pk(i);if(rp(t)===Rx(e)){const e=lS(t);if(e){const t=Hp(e);t&&KD(t,jC)&&(n=ie(n,Pb([Wt,bn])))}}}t=i}return n?Ty(e,Bb(n)):e}(Ak(e),e)}function Ak(e){switch(e.kind){case 133:case 313:case 314:return wt;case 159:return Ot;case 154:return Vt;case 150:return Wt;case 163:return $t;case 136:return sn;case 155:return cn;case 116:return ln;case 157:return jt;case 106:return zt;case 146:return _n;case 151:return 524288&e.flags&&!ne?wt:mn;case 141:return It;case 198:case 110:return Ck(e);case 202:return function(e){if(106===e.literal.kind)return zt;const t=da(e);return t.resolvedType||(t.resolvedType=dk(eM(e.literal))),t.resolvedType}(e);case 184:case 234:return jy(e);case 183:return e.assertsModifier?ln:sn;case 187:return By(e);case 189:case 190:return function(e){const t=da(e);if(!t.resolvedType){const n=function(e){const t=function(e){return eF(e)&&148===e.operator}(e.parent);return Ek(e)?t?er:Zn:Xv(E(e.elements,Jv),t,E(e.elements,qv))}(e);if(n===On)t.resolvedType=Nn;else if(190===e.kind&&$(e.elements,e=>!!(8&Jv(e)))||!Uv(e)){const r=189===e.kind?[Pk(e.elementType)]:E(e.elements,Pk);t.resolvedType=Qv(n,r)}else t.resolvedType=190===e.kind&&0===e.elements.length?n:cy(n,e,void 0)}return t.resolvedType}(e);case 191:return function(e){return Pl(Pk(e.type),!0)}(e);case 193:return function(e){const t=da(e);if(!t.resolvedType){const n=tk(e);t.resolvedType=Pb(E(e.types,Pk),1,n,rk(n))}return t.resolvedType}(e);case 194:return function(e){const t=da(e);if(!t.resolvedType){const n=tk(e),r=E(e.types,Pk),i=2===r.length?r.indexOf(Pn):-1,o=i>=0?r[1-i]:Ot,a=!!(76&o.flags||134217728&o.flags&&vx(o));t.resolvedType=Bb(r,a?1:0,n,rk(n))}return t.resolvedType}(e);case 315:return function(e){const t=Pk(e.type);return H?dw(t,65536):t}(e);case 317:return Pl(Pk(e.type));case 203:return function(e){const t=da(e);return t.resolvedType||(t.resolvedType=e.dotDotDotToken?wk(e):Pl(Pk(e.type),!0,!!e.questionToken))}(e);case 197:case 316:case 310:return Pk(e.type);case 192:return wk(e);case 319:return function(e){const t=Pk(e.type),{parent:n}=e,r=e.parent.parent;if(lP(e.parent)&&BP(r)){const e=qg(r),n=FP(r.parent.parent);if(e||n){const i=ye(n?r.parent.parent.typeExpression.parameters:e.parameters),o=Bg(r);if(!i||o&&i.symbol===o&&Bu(i))return Rv(t)}}return TD(n)&&bP(n.parent)?Rv(t):Pl(t)}(e);case 185:case 186:case 188:case 323:case 318:case 324:return Yx(e);case 199:return function(e){const t=da(e);if(!t.resolvedType)switch(e.operator){case 143:t.resolvedType=Yb(Pk(e.type));break;case 158:t.resolvedType=155===e.type.kind?xk(nh(e.parent)):Et;break;case 148:t.resolvedType=Pk(e.type);break;default:un.assertNever(e.operator)}return t.resolvedType}(e);case 200:return Lx(e);case 201:return jx(e);case 195:return function(e){const t=da(e);if(!t.resolvedType){const n=Pk(e.checkType),r=tk(e),i=rk(r),o=H_(e,!0),a=i?o:N(o,t=>cS(t,e)),s={node:e,checkType:n,extendsType:Pk(e.extendsType),isDistributive:!!(262144&n.flags),inferTypeParameters:Vx(e),outerTypeParameters:a,instantiations:void 0,aliasSymbol:r,aliasTypeArguments:i};t.resolvedType=zx(s,void 0,!1),a&&(s.instantiations=new Map,s.instantiations.set(ny(a),t.resolvedType))}return t.resolvedType}(e);case 196:return function(e){const t=da(e);return t.resolvedType||(t.resolvedType=Cu(ks(e.typeParameter))),t.resolvedType}(e);case 204:return function(e){const t=da(e);return t.resolvedType||(t.resolvedType=ex([e.head.text,...E(e.templateSpans,e=>e.literal.text)],E(e.templateSpans,e=>Pk(e.type)))),t.resolvedType}(e);case 206:return Hx(e);case 80:case 167:case 212:const t=yJ(e);return t?Au(t):Et;default:return Et}}function jk(e,t,n){if(e&&e.length)for(let r=0;rch(e,a))||$(t.typeArguments,n)}return!0;case 175:case 174:return!t.type&&!!t.body||$(t.typeParameters,n)||$(t.parameters,n)||!!t.type&&n(t.type)}return!!XI(t,n)}}function lS(e){const t=ip(e);if(4194304&t.flags){const e=Rx(t.type);if(262144&e.flags)return e}}function _S(e,t){return!!(1&t)||!(2&t)&&e}function uS(e,t,n,r){const i=rS(r,rp(e),t),o=fS(_p(e.target||e),i),a=bp(e);return H&&4&a&&!gj(o,49152)?pw(o,!0):H&&8&a&&n?XN(o,524288):o}function dS(e,t,n,r){un.assert(e.symbol,"anonymous type must have symbol to be instantiated");const i=Js(-1572865&e.objectFlags|64,e.symbol);if(32&e.objectFlags){i.declaration=e.declaration;const n=rp(e),r=iS(n);i.typeParameter=r,t=eS(Wk(n,r),t),r.mapper=t}return 8388608&e.objectFlags&&(i.node=e.node),i.target=e,i.mapper=t,i.aliasSymbol=n||e.aliasSymbol,i.aliasTypeArguments=n?r:Mk(e.aliasTypeArguments,t),i.objectFlags|=i.aliasTypeArguments?iy(i.aliasTypeArguments):0,i}function pS(e,t,n,r,i){const o=e.root;if(o.outerTypeParameters){const e=E(o.outerTypeParameters,e=>Vk(e,t)),a=(n?"C":"")+ny(e)+ry(r,i);let s=o.instantiations.get(a);if(!s){const t=Uk(o.outerTypeParameters,e),c=o.checkType,l=o.isDistributive?Bf(Vk(c,t)):void 0;s=l&&c!==l&&1179648&l.flags?oF(l,e=>zx(o,nS(c,e,t),n),r,i):zx(o,t,n,r,i),o.instantiations.set(a,s)}return s}return e}function fS(e,t){return e&&t?mS(e,t,void 0,void 0):e}function mS(e,t,n,i){var o;if(!eN(e))return e;if(100===y||h>=5e6)return null==(o=Hn)||o.instant(Hn.Phase.CheckTypes,"instantiateType_DepthLimit",{typeId:e.id,instantiationDepth:y,instantiationCount:h}),zo(r,_a.Type_instantiation_is_excessively_deep_and_possibly_infinite),Et;const a=function(e){for(let t=Bi-1;t>=0;t--)if(e===Mi[t])return t;return-1}(t);-1===a&&function(e){Mi[Bi]=e,Ri[Bi]??(Ri[Bi]=new Map),Bi++}(t);const s=e.id+ry(n,i),c=Ri[-1!==a?a:Bi-1],_=c.get(s);if(_)return _;g++,h++,y++;const u=function(e,t,n,r){const i=e.flags;if(262144&i)return Vk(e,t);if(524288&i){const i=e.objectFlags;if(52&i){if(4&i&&!e.node){const n=e.resolvedTypeArguments,r=Mk(n,t);return r!==n?Qv(e.target,r):e}return 1024&i?function(e,t){const n=fS(e.mappedType,t);if(!(32&gx(n)))return e;const r=fS(e.constraintType,t);if(!(4194304&r.flags))return e;const i=iN(fS(e.source,t),n,r);return i||e}(e,t):function(e,t,n,r){const i=4&e.objectFlags||8388608&e.objectFlags?e.node:e.symbol.declarations[0],o=da(i),a=4&e.objectFlags?o.resolvedType:64&e.objectFlags?e.target:e;let s=o.outerTypeParameters;if(!s){let t=H_(i,!0);sL(i)&&(t=se(t,cg(i))),s=t||l;const n=8388612&e.objectFlags?[i]:e.symbol.declarations;s=(8388612&a.objectFlags||8192&a.symbol.flags||2048&a.symbol.flags)&&!a.aliasTypeArguments?N(s,e=>$(n,t=>cS(e,t))):s,o.outerTypeParameters=s}if(s.length){const i=eS(e.mapper,t),o=E(s,e=>Vk(e,i)),c=n||e.aliasSymbol,l=n?r:Mk(e.aliasTypeArguments,t),_=ny(o)+ry(c,l);a.instantiations||(a.instantiations=new Map,a.instantiations.set(ny(s)+ry(a.aliasSymbol,a.aliasTypeArguments),a));let u=a.instantiations.get(_);if(!u){let n=Uk(s,o);134217728&a.objectFlags&&t&&(n=eS(n,t)),u=4&a.objectFlags?cy(e.target,e.node,n,c,l):32&a.objectFlags?function(e,t,n,r){const i=lS(e);if(i){const o=fS(i,t);if(i!==o)return oF(Bf(o),function n(r){if(61603843&r.flags&&r!==Dt&&!al(r)){if(!e.declaration.nameType){let o;if(OC(r)||1&r.flags&&Hc(i,4)<0&&(o=Hp(i))&&KD(o,jC))return function(e,t,n){const r=uS(t,Wt,!0,n);return al(r)?Et:Rv(r,_S(LC(e),bp(t)))}(r,e,nS(i,r,t));if(rw(r))return function(e,t,n,r){const i=e.target.elementFlags,o=e.target.fixedLength,a=o?nS(n,e,r):r,s=E(xb(e),(e,s)=>{const c=i[s];return s1&e?2:e):8&c?E(i,e=>2&e?1:e):i,_=_S(e.target.readonly,bp(t));return T(s,Et)?Et:Gv(s,l,_,e.target.labeledElementDeclarations)}(r,e,i,t);if(xf(r))return Bb(E(r.types,n))}return dS(e,nS(i,r,t))}return r},n,r)}return fS(ip(e),t)===Dt?Dt:dS(e,t,n,r)}(a,n,c,l):dS(a,n,c,l),a.instantiations.set(_,u);const r=gx(u);if(3899393&u.flags&&!(524288&r)){const e=$(o,eN);524288&gx(u)||(u.objectFlags|=52&r?524288|(e?1048576:0):e?0:524288)}}return u}return e}(e,t,n,r)}return e}if(3145728&i){const o=1048576&e.flags?e.origin:void 0,a=o&&3145728&o.flags?o.types:e.types,s=Mk(a,t);if(s===a&&n===e.aliasSymbol)return e;const c=n||e.aliasSymbol,l=n?r:Mk(e.aliasTypeArguments,t);return 2097152&i||o&&2097152&o.flags?Bb(s,0,c,l):Pb(s,1,c,l)}if(4194304&i)return Yb(fS(e.type,t));if(134217728&i)return ex(e.texts,Mk(e.types,t));if(268435456&i)return nx(e.symbol,fS(e.type,t));if(8388608&i){const i=n||e.aliasSymbol,o=n?r:Mk(e.aliasTypeArguments,t);return Ax(fS(e.objectType,t),fS(e.indexType,t),e.accessFlags,void 0,i,o)}if(16777216&i)return pS(e,eS(e.mapper,t),!1,n,r);if(33554432&i){const n=fS(e.baseType,t);if(Sy(e))return by(n);const r=fS(e.constraint,t);return 8650752&n.flags&&xx(r)?Ty(n,r):3&r.flags||FS(hS(n),hS(r))?n:8650752&n.flags?Ty(n,r):Bb([r,n])}return e}(e,t,n,i);return-1===a?(Bi--,Mi[Bi]=void 0,Ri[Bi].clear()):c.set(s,u),y--,u}function gS(e){return 402915327&e.flags?e:e.permissiveInstantiation||(e.permissiveInstantiation=fS(e,kn))}function hS(e){return 402915327&e.flags?e:(e.restrictiveInstantiation||(e.restrictiveInstantiation=fS(e,xn),e.restrictiveInstantiation.restrictiveInstantiation=e.restrictiveInstantiation),e.restrictiveInstantiation)}function yS(e,t){return Ah(e.keyType,fS(e.type,t),e.isReadonly,e.declaration,e.components)}function vS(e){switch(un.assert(175!==e.kind||Jf(e)),e.kind){case 219:case 220:case 175:case 263:return bS(e);case 211:return $(e.properties,vS);case 210:return $(e.elements,vS);case 228:return vS(e.whenTrue)||vS(e.whenFalse);case 227:return(57===e.operatorToken.kind||61===e.operatorToken.kind)&&(vS(e.left)||vS(e.right));case 304:return vS(e.initializer);case 218:return vS(e.expression);case 293:return $(e.properties,vS)||UE(e.parent)&&$(e.parent.parent.children,vS);case 292:{const{initializer:t}=e;return!!t&&vS(t)}case 295:{const{expression:t}=e;return!!t&&vS(t)}}return!1}function bS(e){return LT(e)||function(e){return!(e.typeParameters||gv(e)||!e.body)&&(242!==e.body.kind?vS(e.body):!!Df(e.body,e=>!!e.expression&&vS(e.expression)))}(e)}function xS(e){return(RT(e)||Jf(e))&&bS(e)}function kS(e){if(524288&e.flags){const t=Cp(e);if(t.constructSignatures.length||t.callSignatures.length){const n=Js(16,e.symbol);return n.members=t.members,n.properties=t.properties,n.callSignatures=l,n.constructSignatures=l,n.indexInfos=l,n}}else if(2097152&e.flags)return Bb(E(e.types,kS));return e}function SS(e,t){return iT(e,t,Fo)}function TS(e,t){return iT(e,t,Fo)?-1:0}function CS(e,t){return iT(e,t,wo)?-1:0}function wS(e,t){return iT(e,t,To)?-1:0}function NS(e,t){return iT(e,t,To)}function DS(e,t){return iT(e,t,Co)}function FS(e,t){return iT(e,t,wo)}function ES(e,t){return 1048576&e.flags?v(e.types,e=>ES(e,t)):1048576&t.flags?$(t.types,t=>ES(e,t)):2097152&e.flags?$(e.types,e=>ES(e,t)):58982400&e.flags?ES(pf(e)||Ot,t):XS(t)?!!(67633152&e.flags):t===Gn?!!(67633152&e.flags)&&!XS(e):t===Xn?!!(524288&e.flags)&&$N(e):q_(e,z_(t))||OC(t)&&!LC(t)&&ES(e,er)}function PS(e,t){return iT(e,t,No)}function AS(e,t){return PS(e,t)||PS(t,e)}function IS(e,t,n,r,i,o){return hT(e,t,wo,n,r,i,o)}function OS(e,t,n,r,i,o){return LS(e,t,wo,n,r,i,o,void 0)}function LS(e,t,n,r,i,o,a,s){return!!iT(e,t,n)||(!r||!MS(i,e,t,n,o,a,s))&&hT(e,t,n,r,o,a,s)}function jS(e){return!!(16777216&e.flags||2097152&e.flags&&$(e.types,jS))}function MS(e,t,n,r,i,o,a){if(!e||jS(n))return!1;if(!hT(t,n,r,void 0)&&function(e,t,n,r,i,o,a){const s=mm(t,0),c=mm(t,1);for(const l of[c,s])if($(l,e=>{const t=Gg(e);return!(131073&t.flags)&&hT(t,n,r,void 0)})){const r=a||{};return IS(t,n,e,i,o,r),aT(r.errors[r.errors.length-1],Rp(e,l===c?_a.Did_you_mean_to_use_new_with_this_expression:_a.Did_you_mean_to_call_this_expression)),!0}return!1}(e,t,n,r,i,o,a))return!0;switch(e.kind){case 235:if(!hC(e))break;case 295:case 218:return MS(e.expression,t,n,r,i,o,a);case 227:switch(e.operatorToken.kind){case 64:case 28:return MS(e.right,t,n,r,i,o,a)}break;case 211:return function(e,t,n,r,i,o){return!(402915324&n.flags)&&JS(function*(e){if(u(e.properties))for(const t of e.properties){if(oP(t))continue;const e=Kb(ks(t),8576);if(e&&!(131072&e.flags))switch(t.kind){case 179:case 178:case 175:case 305:yield{errorNode:t.name,innerExpression:void 0,nameType:e};break;case 304:yield{errorNode:t.name,innerExpression:t.initializer,nameType:e,errorMessage:Op(t.name)?_a.Type_of_computed_property_s_value_is_0_which_is_not_assignable_to_type_1:void 0};break;default:un.assertNever(t)}}}(e),t,n,r,i,o)}(e,t,n,r,o,a);case 210:return function(e,t,n,r,i,o){if(402915324&n.flags)return!1;if(WC(t))return JS(qS(e,n),t,n,r,i,o);wA(e,n,!1);const a=RA(e,1,!0);return FA(),!!WC(a)&&JS(qS(e,n),a,n,r,i,o)}(e,t,n,r,o,a);case 293:return function(e,t,n,r,i,o){let a,s=JS(function*(e){if(u(e.properties))for(const t of e.properties)XE(t)||KA(nC(t.name))||(yield{errorNode:t.name,innerExpression:t.initializer,nameType:fk(nC(t.name))})}(e),t,n,r,i,o);if(UE(e.parent)&&zE(e.parent.parent)){const a=e.parent.parent,l=oI(rI(e)),_=void 0===l?"children":mc(l),d=fk(_),p=Ax(n,d),f=ly(a.children);if(!u(f))return s;const m=u(f)>1;let g,h;if(dv(!1)!==On){const e=Mv(wt);g=GD(p,t=>FS(t,e)),h=GD(p,t=>!FS(t,e))}else g=GD(p,$C),h=GD(p,e=>!$C(e));if(m){if(g!==_n){const e=Gv(YA(a,0)),t=function*(e,t){if(!u(e.children))return;let n=0;for(let r=0;r!$C(e)),c=s!==_n?CR(13,0,s,void 0):void 0;let l=!1;for(let n=e.next();!n.done;n=e.next()){const{errorNode:e,innerExpression:s,nameType:_,errorMessage:u}=n.value;let d=c;const p=a!==_n?RS(t,a,_):void 0;if(!p||8388608&p.flags||(d=c?Pb([c,p]):p),!d)continue;let f=Ox(t,_);if(!f)continue;const m=ux(_,void 0);if(!hT(f,d,r,void 0)&&(l=!0,!s||!MS(s,f,d,r,void 0,i,o))){const n=o||{},c=s?BS(s,f):f;if(_e&&wT(c,d)){const t=Rp(e,_a.Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_type_of_the_target,Tc(c),Tc(d));ho.add(t),n.errors=[t]}else{const o=!!(m&&16777216&(pm(a,m)||xt).flags),s=!!(m&&16777216&(pm(t,m)||xt).flags);d=kw(d,o),f=kw(f,o&&s),hT(c,d,r,e,u,i,n)&&c!==f&&hT(f,d,r,e,u,i,n)}}}return l}(t,e,g,r,i,o)||s}else if(!iT(Ax(t,d),p,r)){s=!0;const e=zo(a.openingElement.tagName,_a.This_JSX_tag_s_0_prop_expects_a_single_child_of_type_1_but_multiple_children_were_provided,_,Tc(p));o&&o.skipLogging&&(o.errors||(o.errors=[])).push(e)}}else if(h!==_n){const e=zS(f[0],d,c);e&&(s=JS(function*(){yield e}(),t,n,r,i,o)||s)}else if(!iT(Ax(t,d),p,r)){s=!0;const e=zo(a.openingElement.tagName,_a.This_JSX_tag_s_0_prop_expects_type_1_which_requires_multiple_children_but_only_a_single_child_was_provided,_,Tc(p));o&&o.skipLogging&&(o.errors||(o.errors=[])).push(e)}}return s;function c(){if(!a){const t=Xd(e.parent.tagName),r=oI(rI(e)),i=void 0===r?"children":mc(r),o=Ax(n,fk(i)),s=_a._0_components_don_t_accept_text_as_child_elements_Text_in_JSX_has_the_type_string_but_the_expected_type_of_1_is_2;a={...s,key:"!!ALREADY FORMATTED!!",message:Xx(s,t,i,Tc(o))}}return a}}(e,t,n,r,o,a);case 220:return function(e,t,n,r,i,o){if(VF(e.body))return!1;if($(e.parameters,Fu))return!1;const a=CO(t);if(!a)return!1;const s=mm(n,0);if(!u(s))return!1;const c=e.body,l=Gg(a),_=Pb(E(s,Gg));if(!hT(l,_,r,void 0)){const t=c&&MS(c,l,_,r,void 0,i,o);if(t)return t;const a=o||{};if(hT(l,_,r,c,void 0,i,a),a.errors)return n.symbol&&u(n.symbol.declarations)&&aT(a.errors[a.errors.length-1],Rp(n.symbol.declarations[0],_a.The_expected_type_comes_from_the_return_type_of_this_signature)),2&Oh(e)||el(l,"then")||!hT(XL(l),_,r,void 0)||aT(a.errors[a.errors.length-1],Rp(e,_a.Did_you_mean_to_mark_this_function_as_async)),!0}return!1}(e,t,n,r,o,a)}return!1}function RS(e,t,n){const r=Ox(t,n);if(r)return r;if(1048576&t.flags){const r=FT(e,t);if(r)return Ox(r,n)}}function BS(e,t){wA(e,t,!1);const n=zj(e,1);return FA(),n}function JS(e,t,n,r,i,o){let a=!1;for(const s of e){const{errorNode:e,innerExpression:c,nameType:l,errorMessage:_}=s;let d=RS(t,n,l);if(!d||8388608&d.flags)continue;let p=Ox(t,l);if(!p)continue;const f=ux(l,void 0);if(!hT(p,d,r,void 0)&&(a=!0,!c||!MS(c,p,d,r,void 0,i,o))){const a=o||{},s=c?BS(c,p):p;if(_e&&wT(s,d)){const t=Rp(e,_a.Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_type_of_the_target,Tc(s),Tc(d));ho.add(t),a.errors=[t]}else{const o=!!(f&&16777216&(pm(n,f)||xt).flags),c=!!(f&&16777216&(pm(t,f)||xt).flags);d=kw(d,o),p=kw(p,o&&c),hT(s,d,r,e,_,i,a)&&s!==p&&hT(p,d,r,e,_,i,a)}if(a.errors){const e=a.errors[a.errors.length-1],t=sC(l)?cC(l):void 0,r=void 0!==t?pm(n,t):void 0;let i=!1;if(!r){const t=ig(n,l);t&&t.declaration&&!vd(t.declaration).hasNoDefaultLib&&(i=!0,aT(e,Rp(t.declaration,_a.The_expected_type_comes_from_this_index_signature)))}if(!i&&(r&&u(r.declarations)||n.symbol&&u(n.symbol.declarations))){const i=r&&u(r.declarations)?r.declarations[0]:n.symbol.declarations[0];vd(i).hasNoDefaultLib||aT(e,Rp(i,_a.The_expected_type_comes_from_property_0_which_is_declared_here_on_type_1,!t||8192&l.flags?Tc(l):mc(t),Tc(n)))}}}}return a}function zS(e,t,n){switch(e.kind){case 295:return{errorNode:e,innerExpression:e.expression,nameType:t};case 12:if(e.containsOnlyTriviaWhiteSpaces)break;return{errorNode:e,innerExpression:void 0,nameType:t,errorMessage:n()};case 285:case 286:case 289:return{errorNode:e,innerExpression:e,nameType:t};default:return un.assertNever(e,"Found invalid jsx child")}}function*qS(e,t){const n=u(e.elements);if(n)for(let r=0;rc:ML(e)>c))return!r||8&n||i(_a.Target_signature_provides_too_few_arguments_Expected_0_or_more_but_got_1,ML(e),c),0;var l;e.typeParameters&&e.typeParameters!==t.typeParameters&&(e=DO(e,t=(l=t).typeParameters?l.canonicalSignatureCache||(l.canonicalSignatureCache=function(e){return dh(e,E(e.typeParameters,e=>e.target&&!Hp(e.target)?e.target:e),Em(e.declaration))}(l)):l,void 0,a));const _=jL(e),u=JL(e),d=JL(t);(u||d)&&fS(u||d,s);const p=t.declaration?t.declaration.kind:0,f=!(3&n)&&G&&175!==p&&174!==p&&177!==p;let m=-1;const g=Rg(e);if(g&&g!==ln){const e=Rg(t);if(e){const t=!f&&a(g,e,!1)||a(e,g,r);if(!t)return r&&i(_a.The_this_types_of_each_signature_are_incompatible),0;m&=t}}const h=u||d?Math.min(_,c):Math.max(_,c),y=u||d?h-1:-1;for(let c=0;c=ML(e)&&c=3&&32768&t[0].flags&&65536&t[1].flags&&$(t,XS)?67108864:0)}return!!(67108864&e.objectFlags)}return!1}(t))return!0}return!1}function iT(e,t,n){if(pk(e)&&(e=e.regularType),pk(t)&&(t=t.regularType),e===t)return!0;if(n!==Fo){if(n===No&&!(131072&t.flags)&&rT(t,e,n)||rT(e,t,n))return!0}else if(!(61865984&(e.flags|t.flags))){if(e.flags!==t.flags)return!1;if(67358815&e.flags)return!0}if(524288&e.flags&&524288&t.flags){const r=n.get(dC(e,t,0,n,!1));if(void 0!==r)return!!(1&r)}return!!(469499904&e.flags||469499904&t.flags)&&hT(e,t,n,void 0)}function oT(e,t){return 2048&gx(e)&&KA(t.escapedName)}function uT(e,t){for(;;){const n=pk(e)?e.regularType:iw(e)?fT(e,t):4&gx(e)?e.node?ay(e.target,uy(e)):qC(e)||e:3145728&e.flags?dT(e,t):33554432&e.flags?t?e.baseType:wy(e):25165824&e.flags?Dx(e,t):e;if(n===e)return n;e=n}}function dT(e,t){const n=Bf(e);if(n!==e)return n;if(2097152&e.flags&&function(e){let t=!1,n=!1;for(const r of e.types)if(t||(t=!!(465829888&r.flags)),n||(n=!!(98304&r.flags)||XS(r)),t&&n)return!0;return!1}(e)){const n=A(e.types,e=>uT(e,t));if(n!==e.types)return Bb(n)}return e}function fT(e,t){const n=xb(e),r=A(n,e=>25165824&e.flags?Dx(e,t):e);return n!==r?tb(e.target,r):e}function hT(e,t,n,i,o,a,s){var c;let _,d,p,f,m,g,h,y,v=0,b=0,x=0,S=0,C=!1,w=0,N=0,D=16e6-n.size>>3;un.assert(n!==Fo||!i,"no error reporting in identity checking");const F=U(e,t,3,!!i,o);if(y&&L(),C){const o=dC(e,t,0,n,!1);n.set(o,2|(D<=0?32:64)),null==(c=Hn)||c.instant(Hn.Phase.CheckTypes,"checkTypeRelatedTo_DepthLimit",{sourceId:e.id,targetId:t.id,depth:b,targetDepth:x});const a=D<=0?_a.Excessive_complexity_comparing_types_0_and_1:_a.Excessive_stack_depth_comparing_types_0_and_1,l=zo(i||r,a,Tc(e),Tc(t));s&&(s.errors||(s.errors=[])).push(l)}else if(_){if(a){const e=a();e&&(ek(e,_),_=e)}let r;if(o&&i&&!F&&e.symbol){const i=ua(e.symbol);i.originatingImport&&!_f(i.originatingImport)&&hT(P_(i.target),t,n,void 0)&&(r=ie(r,Rp(i.originatingImport,_a.Type_originates_at_this_import_A_namespace_style_import_cannot_be_called_or_constructed_and_will_cause_a_failure_at_runtime_Consider_using_a_default_import_or_import_require_here_instead)))}const c=zp(vd(i),i,_,r);d&&aT(c,...d),s&&(s.errors||(s.errors=[])).push(c),s&&s.skipLogging||ho.add(c)}return i&&s&&s.skipLogging&&0===F&&un.assert(!!s.errors,"missed opportunity to interact with error."),0!==F;function P(e){_=e.errorInfo,h=e.lastSkippedInfo,y=e.incompatibleStack,w=e.overrideNextErrorInfo,N=e.skipParentCounter,d=e.relatedInfo}function I(){return{errorInfo:_,lastSkippedInfo:h,incompatibleStack:null==y?void 0:y.slice(),overrideNextErrorInfo:w,skipParentCounter:N,relatedInfo:null==d?void 0:d.slice()}}function O(e,...t){w++,h=void 0,(y||(y=[])).push([e,...t])}function L(){const e=y||[];y=void 0;const t=h;if(h=void 0,1===e.length)return M(...e[0]),void(t&&J(void 0,...t));let n="";const r=[];for(;e.length;){const[t,...i]=e.pop();switch(t.code){case _a.Types_of_property_0_are_incompatible.code:{0===n.indexOf("new ")&&(n=`(${n})`);const e=""+i[0];n=0===n.length?`${e}`:ms(e,yk(j))?`${n}.${e}`:"["===e[0]&&"]"===e[e.length-1]?`${n}${e}`:`${n}[${e}]`;break}case _a.Call_signature_return_types_0_and_1_are_incompatible.code:case _a.Construct_signature_return_types_0_and_1_are_incompatible.code:case _a.Call_signatures_with_no_arguments_have_incompatible_return_types_0_and_1.code:case _a.Construct_signatures_with_no_arguments_have_incompatible_return_types_0_and_1.code:if(0===n.length){let e=t;t.code===_a.Call_signatures_with_no_arguments_have_incompatible_return_types_0_and_1.code?e=_a.Call_signature_return_types_0_and_1_are_incompatible:t.code===_a.Construct_signatures_with_no_arguments_have_incompatible_return_types_0_and_1.code&&(e=_a.Construct_signature_return_types_0_and_1_are_incompatible),r.unshift([e,i[0],i[1]])}else n=`${t.code===_a.Construct_signature_return_types_0_and_1_are_incompatible.code||t.code===_a.Construct_signatures_with_no_arguments_have_incompatible_return_types_0_and_1.code?"new ":""}${n}(${t.code===_a.Call_signatures_with_no_arguments_have_incompatible_return_types_0_and_1.code||t.code===_a.Construct_signatures_with_no_arguments_have_incompatible_return_types_0_and_1.code?"":"..."})`;break;case _a.Type_at_position_0_in_source_is_not_compatible_with_type_at_position_1_in_target.code:r.unshift([_a.Type_at_position_0_in_source_is_not_compatible_with_type_at_position_1_in_target,i[0],i[1]]);break;case _a.Type_at_positions_0_through_1_in_source_is_not_compatible_with_type_at_position_2_in_target.code:r.unshift([_a.Type_at_positions_0_through_1_in_source_is_not_compatible_with_type_at_position_2_in_target,i[0],i[1],i[2]]);break;default:return un.fail(`Unhandled Diagnostic: ${t.code}`)}}n?M(")"===n[n.length-1]?_a.The_types_returned_by_0_are_incompatible_between_these_types:_a.The_types_of_0_are_incompatible_between_these_types,n):r.shift();for(const[e,...t]of r){const n=e.elidedInCompatabilityPyramid;e.elidedInCompatabilityPyramid=!1,M(e,...t),e.elidedInCompatabilityPyramid=n}t&&J(void 0,...t)}function M(e,...t){un.assert(!!i),y&&L(),e.elidedInCompatabilityPyramid||(0===N?_=Zx(_,e,...t):N--)}function R(e,...t){M(e,...t),N++}function B(e){un.assert(!!_),d?d.push(e):d=[e]}function J(e,t,r){y&&L();const[i,o]=wc(t,r);let a=t,s=i;if(131072&r.flags||!XC(t)||ST(r)||(a=QC(t),un.assert(!FS(a,r),"generalized source shouldn't be assignable"),s=Fc(a)),262144&(8388608&r.flags&&!(8388608&t.flags)?r.objectType.flags:r.flags)&&r!==qn&&r!==Un){const e=pf(r);let n;e&&(FS(a,e)||(n=FS(t,e)))?M(_a._0_is_assignable_to_the_constraint_of_type_1_but_1_could_be_instantiated_with_a_different_subtype_of_constraint_2,n?i:s,o,Tc(e)):(_=void 0,M(_a._0_could_be_instantiated_with_an_arbitrary_type_which_could_be_unrelated_to_1,o,s))}if(e)e===_a.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1&&_e&&TT(t,r).length&&(e=_a.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_types_of_the_target_s_properties);else if(n===No)e=_a.Type_0_is_not_comparable_to_type_1;else if(i===o)e=_a.Type_0_is_not_assignable_to_type_1_Two_different_types_with_this_name_exist_but_they_are_unrelated;else if(_e&&TT(t,r).length)e=_a.Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_types_of_the_target_s_properties;else{if(128&t.flags&&1048576&r.flags){const e=function(e,t){const n=t.types.filter(e=>!!(128&e.flags));return Lt(e.value,n,e=>e.value)}(t,r);if(e)return void M(_a.Type_0_is_not_assignable_to_type_1_Did_you_mean_2,s,o,Tc(e))}e=_a.Type_0_is_not_assignable_to_type_1}M(e,s,o)}function z(e,t,n){return rw(e)?e.target.readonly&&MC(t)?(n&&M(_a.The_type_0_is_readonly_and_cannot_be_assigned_to_the_mutable_type_1,Tc(e),Tc(t)),!1):jC(t):LC(e)&&MC(t)?(n&&M(_a.The_type_0_is_readonly_and_cannot_be_assigned_to_the_mutable_type_1,Tc(e),Tc(t)),!1):!rw(t)||OC(e)}function q(e,t,n){return U(e,t,3,n)}function U(e,t,r=3,o=!1,a,s=0){if(e===t)return-1;if(524288&e.flags&&402784252&t.flags)return n===No&&!(131072&t.flags)&&rT(t,e,n)||rT(e,t,n,o?M:void 0)?-1:(o&&V(e,t,e,t,a),0);const c=uT(e,!1);let l=uT(t,!0);if(c===l)return-1;if(n===Fo)return c.flags!==l.flags?0:67358815&c.flags?-1:(W(c,l),ee(c,l,!1,0,r));if(262144&c.flags&&Vp(c)===l)return-1;if(470302716&c.flags&&1048576&l.flags){const e=l.types,t=2===e.length&&98304&e[0].flags?e[1]:3===e.length&&98304&e[0].flags&&98304&e[1].flags?e[2]:void 0;if(t&&!(98304&t.flags)&&(l=uT(t,!0),c===l))return-1}if(n===No&&!(131072&l.flags)&&rT(l,c,n)||rT(c,l,n,o?M:void 0))return-1;if(469499904&c.flags||469499904&l.flags){if(!(2&s)&&xN(c)&&8192&gx(c)&&function(e,t,r){var o;if(!gI(t)||!ne&&4096&gx(t))return!1;const a=!!(2048&gx(e));if((n===wo||n===No)&&(yD(Gn,t)||!a&&GS(t)))return!1;let s,c=t;1048576&t.flags&&(c=Dz(e,t,U)||function(e){if(gj(e,67108864)){const t=GD(e,e=>!(402784252&e.flags));if(!(131072&t.flags))return t}return e}(t),s=1048576&c.flags?c.types:[c]);for(const t of Up(e))if(G(t,e.symbol)&&!oT(e,t)){if(!mI(c,t.escapedName,a)){if(r){const n=GD(c,gI);if(!i)return un.fail();if(GE(i)||bu(i)||bu(i.parent)){t.valueDeclaration&&KE(t.valueDeclaration)&&vd(i)===vd(t.valueDeclaration.name)&&(i=t.valueDeclaration.name);const e=bc(t),r=YI(e,n),o=r?bc(r):void 0;o?M(_a.Property_0_does_not_exist_on_type_1_Did_you_mean_2,e,Tc(n),o):M(_a.Property_0_does_not_exist_on_type_1,e,Tc(n))}else{const r=(null==(o=e.symbol)?void 0:o.declarations)&&fe(e.symbol.declarations);let a;if(t.valueDeclaration&&uc(t.valueDeclaration,e=>e===r)&&vd(r)===vd(i)){const e=t.valueDeclaration;un.assertNode(e,v_);const r=e.name;i=r,aD(r)&&(a=ZI(r,n))}void 0!==a?R(_a.Object_literal_may_only_specify_known_properties_but_0_does_not_exist_in_type_1_Did_you_mean_to_write_2,bc(t),Tc(n),a):R(_a.Object_literal_may_only_specify_known_properties_and_0_does_not_exist_in_type_1,bc(t),Tc(n))}}return!0}if(s&&!U(P_(t),K(s,t.escapedName),3,r))return r&&O(_a.Types_of_property_0_are_incompatible,bc(t)),!0}return!1}(c,l,o))return o&&J(a,c,t.aliasSymbol?t:l),0;const _=(n!==No||KC(c))&&!(2&s)&&405405692&c.flags&&c!==Gn&&2621440&l.flags&&PT(l)&&(Up(c).length>0||wJ(c)),u=!!(2048&gx(c));if(_&&!function(e,t,n){for(const r of Up(e))if(mI(t,r.escapedName,n))return!0;return!1}(c,l,u)){if(o){const n=Tc(e.aliasSymbol?e:c),r=Tc(t.aliasSymbol?t:l),i=mm(c,0),o=mm(c,1);i.length>0&&U(Gg(i[0]),l,1,!1)||o.length>0&&U(Gg(o[0]),l,1,!1)?M(_a.Value_of_type_0_has_no_properties_in_common_with_type_1_Did_you_mean_to_call_it,n,r):M(_a.Type_0_has_no_properties_in_common_with_type_1,n,r)}return 0}W(c,l);const d=1048576&c.flags&&c.types.length<4&&!(1048576&l.flags)||1048576&l.flags&&l.types.length<4&&!(469499904&c.flags)?X(c,l,o,s):ee(c,l,o,s,r);if(d)return d}return o&&V(e,t,c,l,a),0}function V(e,t,n,r,o){var a,s;const c=!!qC(e),l=!!qC(t);n=e.aliasSymbol||c?e:n,r=t.aliasSymbol||l?t:r;let u=w>0;if(u&&w--,524288&n.flags&&524288&r.flags){const e=_;z(n,r,!0),_!==e&&(u=!!_)}if(524288&n.flags&&402784252&r.flags)!function(e,t){const n=Pc(e.symbol)?Tc(e,e.symbol.valueDeclaration):Tc(e),r=Pc(t.symbol)?Tc(t,t.symbol.valueDeclaration):Tc(t);(rr===e&&Vt===t||ir===e&&Wt===t||or===e&&sn===t||Zy()===e&&cn===t)&&M(_a._0_is_a_primitive_but_1_is_a_wrapper_object_Prefer_using_0_when_possible,r,n)}(n,r);else if(n.symbol&&524288&n.flags&&Gn===n)M(_a.The_Object_type_is_assignable_to_very_few_other_types_Did_you_mean_to_use_the_any_type_instead);else if(2048&gx(n)&&2097152&r.flags){const e=r.types,t=eI(jB.IntrinsicAttributes,i),n=eI(jB.IntrinsicClassAttributes,i);if(!al(t)&&!al(n)&&(T(e,t)||T(e,n)))return}else _=Gf(_,t);if(!o&&u){const e=I();let t;return J(o,n,r),_&&_!==e.errorInfo&&(t={code:_.code,messageText:_.messageText}),P(e),t&&_&&(_.canonicalHead=t),void(h=[n,r])}if(J(o,n,r),262144&n.flags&&(null==(s=null==(a=n.symbol)?void 0:a.declarations)?void 0:s[0])&&!Vp(n)){const e=iS(n);if(e.constraint=fS(r,Wk(n,e)),mf(e)){const e=Tc(r,n.symbol.declarations[0]);B(Rp(n.symbol.declarations[0],_a.This_type_parameter_might_need_an_extends_0_constraint,e))}}}function W(e,t){if(Hn&&3145728&e.flags&&3145728&t.flags){const n=e,r=t;if(n.objectFlags&r.objectFlags&32768)return;const o=n.types.length,a=r.types.length;o*a>1e6&&Hn.instant(Hn.Phase.CheckTypes,"traceUnionsOrIntersectionsTooLarge_DepthLimit",{sourceId:e.id,sourceSize:o,targetId:t.id,targetSize:a,pos:null==i?void 0:i.pos,end:null==i?void 0:i.end})}}function K(e,t){return Pb(we(e,(e,n)=>{var r;const i=3145728&(n=Sf(n)).flags?Rf(n,t):Lp(n,t);return ie(e,i&&P_(i)||(null==(r=og(n,t))?void 0:r.type)||jt)},void 0)||l)}function G(e,t){return e.valueDeclaration&&t.valueDeclaration&&e.valueDeclaration.parent===t.valueDeclaration}function X(e,t,r,i){if(1048576&e.flags){if(1048576&t.flags){const n=e.origin;if(n&&2097152&n.flags&&t.aliasSymbol&&T(n.types,t))return-1;const r=t.origin;if(r&&1048576&r.flags&&e.aliasSymbol&&T(r.types,e))return-1}return n===No?Z(e,t,r&&!(402784252&e.flags),i):function(e,t,n,r){let i=-1;const o=e.types,a=function(e,t){return 1048576&e.flags&&1048576&t.flags&&!(32768&e.types[0].flags)&&32768&t.types[0].flags?aF(t,-32769):t}(e,t);for(let e=0;e=a.types.length&&o.length%a.types.length===0){const t=U(s,a.types[e%a.types.length],3,!1,void 0,r);if(t){i&=t;continue}}const c=U(s,t,1,n,void 0,r);if(!c)return 0;i&=c}return i}(e,t,r&&!(402784252&e.flags),i)}if(1048576&t.flags)return Y(Nw(e),t,r&&!(402784252&e.flags)&&!(402784252&t.flags),i);if(2097152&t.flags)return function(e,t,n){let r=-1;const i=t.types;for(const t of i){const i=U(e,t,2,n,void 0,2);if(!i)return 0;r&=i}return r}(e,t,r);if(n===No&&402784252&t.flags){const n=A(e.types,e=>465829888&e.flags?pf(e)||Ot:e);if(n!==e.types){if(131072&(e=Bb(n)).flags)return 0;if(!(2097152&e.flags))return U(e,t,1,!1)||U(t,e,1,!1)}}return Z(e,t,!1,1)}function Q(e,t){let n=-1;const r=e.types;for(const e of r){const r=Y(e,t,!1,0);if(!r)return 0;n&=r}return n}function Y(e,t,r,i){const o=t.types;if(1048576&t.flags){if(Sb(o,e))return-1;if(n!==No&&32768&gx(t)&&!(1024&e.flags)&&(2688&e.flags||(n===To||n===Co)&&256&e.flags)){const t=e===e.regularType?e.freshType:e.regularType,n=128&e.flags?Vt:256&e.flags?Wt:2048&e.flags?$t:void 0;return n&&Sb(o,n)||t&&Sb(o,t)?-1:0}const r=BN(t,e);if(r){const t=U(e,r,2,!1,void 0,i);if(t)return t}}for(const t of o){const n=U(e,t,2,!1,void 0,i);if(n)return n}if(r){const n=FT(e,t,U);n&&U(e,n,2,!0,void 0,i)}return 0}function Z(e,t,n,r){const i=e.types;if(1048576&e.flags&&Sb(i,t))return-1;const o=i.length;for(let e=0;e(N|=e?16:8,k(e))),3===S?(null==(a=Hn)||a.instant(Hn.Phase.CheckTypes,"recursiveTypeRelatedTo_DepthLimit",{sourceId:e.id,sourceIdStack:m.map(e=>e.id),targetId:t.id,targetIdStack:g.map(e=>e.id),depth:b,targetDepth:x}),T=3):(null==(s=Hn)||s.push(Hn.Phase.CheckTypes,"structuredTypeRelatedTo",{sourceId:e.id,targetId:t.id}),T=function(e,t,r,i){const o=I();let a=function(e,t,r,i,o){let a,s,c=!1,u=e.flags;const d=t.flags;if(n===Fo){if(3145728&u){let n=Q(e,t);return n&&(n&=Q(t,e)),n}if(4194304&u)return U(e.type,t.type,3,!1);if(8388608&u&&(a=U(e.objectType,t.objectType,3,!1))&&(a&=U(e.indexType,t.indexType,3,!1)))return a;if(16777216&u&&e.root.isDistributive===t.root.isDistributive&&(a=U(e.checkType,t.checkType,3,!1))&&(a&=U(e.extendsType,t.extendsType,3,!1))&&(a&=U(qx(e),qx(t),3,!1))&&(a&=U(Ux(e),Ux(t),3,!1)))return a;if(33554432&u&&(a=U(e.baseType,t.baseType,3,!1))&&(a&=U(e.constraint,t.constraint,3,!1)))return a;if(134217728&u&&te(e.texts,t.texts)){const n=e.types,r=t.types;a=-1;for(let e=0;e!!(262144&e.flags));){if(a=U(n,t,1,!1))return a;n=Hp(n)}return 0}}else if(4194304&d){const n=t.type;if(4194304&u&&(a=U(n,e.type,3,!1)))return a;if(rw(n)){if(a=U(e,hb(n),2,r))return a}else{const i=of(n);if(i){if(-1===U(e,Yb(i,4|t.indexFlags),2,r))return-1}else if(Sp(n)){const t=op(n),i=ip(n);let o;if(o=t&&yp(n)?Pb([re(t,n),t]):t||i,-1===U(e,o,2,r))return-1}}}else if(8388608&d){if(8388608&u){if((a=U(e.objectType,t.objectType,3,r))&&(a&=U(e.indexType,t.indexType,3,r)),a)return a;r&&(s=_)}if(n===wo||n===No){const n=t.objectType,c=t.indexType,l=pf(n)||n,u=pf(c)||c;if(!Tx(l)&&!Cx(u)){const t=Ox(l,u,4|(l!==n?2:0));if(t){if(r&&s&&P(o),a=U(e,t,2,r,void 0,i))return a;r&&s&&_&&(_=h([s])<=h([_])?s:_)}}}r&&(s=void 0)}else if(Sp(t)&&n!==Fo){const n=!!t.declaration.nameType,i=_p(t),c=bp(t);if(!(8&c)){if(!n&&8388608&i.flags&&i.objectType===e&&i.indexType===rp(t))return-1;if(!Sp(e)){const i=n?op(t):ip(t),l=Yb(e,2),u=4&c,d=u?zd(i,l):void 0;if(u?!(131072&d.flags):U(i,l,3)){const o=_p(t),s=rp(t),c=aF(o,-98305);if(!n&&8388608&c.flags&&c.indexType===s){if(a=U(e,c.objectType,2,r))return a}else{const t=Ax(e,n?d||i:d?Bb([d,s]):s);if(a=U(t,o,3,r))return a}}s=_,P(o)}}}else if(16777216&d){if(CC(t,g,x,10))return 3;const n=t;if(!(n.root.inferTypeParameters||(p=n.root,p.isDistributive&&(cS(p.checkType,p.node.trueType)||cS(p.checkType,p.node.falseType)))||16777216&e.flags&&e.root===n.root)){const t=!FS(gS(n.checkType),gS(n.extendsType)),r=!t&&FS(hS(n.checkType),hS(n.extendsType));if((a=t?-1:U(e,qx(n),2,!1,void 0,i))&&(a&=r?-1:U(e,Ux(n),2,!1,void 0,i),a))return a}}else if(134217728&d){if(134217728&u){if(n===No)return function(e,t){const n=e.texts[0],r=t.texts[0],i=e.texts[e.texts.length-1],o=t.texts[t.texts.length-1],a=Math.min(n.length,r.length),s=Math.min(i.length,o.length);return n.slice(0,a)!==r.slice(0,a)||i.slice(i.length-s)!==o.slice(o.length-s)}(e,t)?0:-1;fS(e,Cn)}if(gN(e,t))return-1}else if(268435456&t.flags&&!(268435456&e.flags)&&pN(e,t))return-1;var p,f;if(8650752&u){if(!(8388608&u&&8388608&d)){const n=Vp(e)||Ot;if(a=U(n,t,1,!1,void 0,i))return a;if(a=U(wd(n,e),t,1,r&&n!==Ot&&!(d&u&262144),void 0,i))return a;if(kf(e)){const n=Vp(e.indexType);if(n&&(a=U(Ax(e.objectType,n),t,1,r)))return a}}}else if(4194304&u){const n=Qb(e.type,e.indexFlags)&&32&gx(e.type);if(a=U(hn,t,1,r&&!n))return a;if(n){const n=e.type,i=op(n),o=i&&yp(n)?re(i,n):i||ip(n);if(a=U(o,t,1,r))return a}}else if(134217728&u&&!(524288&d)){if(!(134217728&d)){const n=pf(e);if(n&&n!==e&&(a=U(n,t,1,r)))return a}}else if(268435456&u)if(268435456&d){if(e.symbol!==t.symbol)return 0;if(a=U(e.type,t.type,3,r))return a}else{const n=pf(e);if(n&&(a=U(n,t,1,r)))return a}else if(16777216&u){if(CC(e,m,b,10))return 3;if(16777216&d){const n=e.root.inferTypeParameters;let i,o=e.extendsType;if(n){const e=Vw(n,void 0,0,q);yN(e.inferences,t.extendsType,o,1536),o=fS(o,e.mapper),i=e.mapper}if(SS(o,t.extendsType)&&(U(e.checkType,t.checkType,3)||U(t.checkType,e.checkType,3))&&((a=U(fS(qx(e),i),qx(t),3,r))&&(a&=U(Ux(e),Ux(t),3,r)),a))return a}const n=af(e);if(n&&(a=U(n,t,1,r)))return a;const i=16777216&d||!mf(e)?void 0:sf(e);if(i&&(P(o),a=U(i,t,1,r)))return a}else{if(n!==To&&n!==Co&&32&gx(f=t)&&4&bp(f)&&GS(e))return-1;if(Sp(t))return Sp(e)&&(a=function(e,t,r){if(n===No||(n===Fo?bp(e)===bp(t):kp(e)<=kp(t))){let n;if(n=U(ip(t),fS(ip(e),kp(e)<0?wn:Cn),3,r)){const i=Uk([rp(e)],[rp(t)]);if(fS(op(e),i)===fS(op(t),i))return n&U(fS(_p(e),i),_p(t),3,r)}}return 0}(e,t,r))?a:0;const p=!!(402784252&u);if(n!==Fo)u=(e=Sf(e)).flags;else if(Sp(e))return 0;if(4&gx(e)&&4&gx(t)&&e.target===t.target&&!rw(e)&&!KT(e)&&!KT(t)){if(VC(e))return-1;const n=IT(e.target);if(n===l)return 1;const r=y(uy(e),uy(t),n,i);if(void 0!==r)return r}else{if(LC(t)?KD(e,jC):OC(t)&&KD(e,e=>rw(e)&&!e.target.readonly))return n!==Fo?U(Qm(e,Wt)||wt,Qm(t,Wt)||wt,3,r):0;if(iw(e)&&rw(t)&&!iw(t)){const n=ff(e);if(n!==e)return U(n,t,1,r)}else if((n===To||n===Co)&&GS(t)&&8192&gx(t)&&!GS(e))return 0}if(2621440&u&&524288&d){const n=r&&_===o.errorInfo&&!p;if(a=se(e,t,n,void 0,!1,i),a&&(a&=le(e,t,0,n,i),a&&(a&=le(e,t,1,n,i),a&&(a&=he(e,t,p,n,i)))),c&&a)_=s||_||o.errorInfo;else if(a)return a}if(2621440&u&&1048576&d){const r=aF(t,36175872);if(1048576&r.flags){const t=function(e,t){var r;const i=jN(Up(e),t);if(!i)return 0;let o=1;for(const n of i)if(o*=ZD(M_(n)),o>25)return null==(r=Hn)||r.instant(Hn.Phase.CheckTypes,"typeRelatedToDiscriminatedType_DepthLimit",{sourceId:e.id,targetId:t.id,numCombinations:o}),0;const a=new Array(i.length),s=new Set;for(let e=0;er[o],!1,0,H||n===No))continue e}ce(l,a,mt),o=!0}if(!o)return 0}let _=-1;for(const t of l)if(_&=se(e,t,!1,s,!1,0),_&&(_&=le(e,t,0,!1,0),_&&(_&=le(e,t,1,!1,0),!_||rw(e)&&rw(t)||(_&=he(e,t,!1,!1,0)))),!_)return _;return _}(e,r);if(t)return t}}}return 0;function h(e){return e?we(e,(e,t)=>e+1+h(t.next),0):0}function y(e,t,i,u){if(a=function(e=l,t=l,r=l,i,o){if(e.length!==t.length&&n===Fo)return 0;const a=e.length<=t.length?e.length:t.length;let s=-1;for(let c=0;c!!(24&e)))return s=void 0,void P(o);const d=t&&function(e,t){for(let n=0;n!(7&e))))return 0;s=_,P(o)}}}(e,t,r,i,o);if(n!==Fo){if(!a&&(2097152&e.flags||262144&e.flags&&1048576&t.flags)){const n=function(e,t){let n,r=!1;for(const i of e)if(465829888&i.flags){let e=Vp(i);for(;e&&21233664&e.flags;)e=Vp(e);e&&(n=ie(n,e),t&&(n=ie(n,i)))}else(469892092&i.flags||XS(i))&&(r=!0);if(n&&(t||r)){if(r)for(const t of e)(469892092&t.flags||XS(t))&&(n=ie(n,t));return uT(Bb(n,2),!1)}}(2097152&e.flags?e.types:[e],!!(1048576&t.flags));n&&KD(n,t=>t!==e)&&(a=U(n,t,1,!1,void 0,i))}a&&!(2&i)&&2097152&t.flags&&!Tx(t)&&2621440&e.flags?(a&=se(e,t,r,void 0,!1,0),a&&xN(e)&&8192&gx(e)&&(a&=he(e,t,!1,r,0))):a&&ik(t)&&!jC(t)&&2097152&e.flags&&3670016&Sf(e).flags&&!$(e.types,e=>e===t||!!(262144&gx(e)))&&(a&=se(e,t,r,void 0,!0,i))}return a&&P(o),a}(e,t,r,i),null==(c=Hn)||c.pop()),on&&(on=k),1&o&&b--,2&o&&x--,S=y,T?(-1===T||0===b&&0===x)&&F(-1===T||3===T):(n.set(u,2|N),D--,F(!1)),T;function F(e){for(let t=h;t{r.push(fS(e,rS(t.mapper,rp(t),n)))}),Pb(r)}function oe(e,t){if(!t||0===e.length)return e;let n;for(let r=0;r{return!!(4&ix(t))&&(n=e,r=bC(t),!fC(n,e=>{const t=bC(e);return!!t&&q_(t,r)}));var n,r})}(r,i))return a&&M(_a.Property_0_is_protected_but_type_1_is_not_a_class_derived_from_2,bc(i),Tc(bC(r)||e),Tc(bC(i)||t)),0}else if(4&l)return a&&M(_a.Property_0_is_protected_in_type_1_but_public_in_type_2,bc(i),Tc(e),Tc(t)),0;if(n===Co&&_j(r)&&!_j(i))return 0;const u=function(e,t,r,i,o){const a=H&&!!(48&rx(t)),s=Pl(M_(t),!1,a);return s.flags&(n===Co?1:3)?-1:U(r(e),s,3,i,void 0,o)}(r,i,o,a,s);return u?!c&&16777216&r.flags&&106500&i.flags&&!(16777216&i.flags)?(a&&M(_a.Property_0_is_optional_in_type_1_but_required_in_type_2,bc(i),Tc(e),Tc(t)),0):u:(a&&O(_a.Types_of_property_0_are_incompatible,bc(i)),0)}function se(e,t,r,i,a,s){if(n===Fo)return function(e,t,n){if(!(524288&e.flags&&524288&t.flags))return 0;const r=oe(Dp(e),n),i=oe(Dp(t),n);if(r.length!==i.length)return 0;let o=-1;for(const e of r){const n=Lp(t,e.escapedName);if(!n)return 0;const r=EC(e,n,U);if(!r)return 0;o&=r}return o}(e,t,i);let c=-1;if(rw(t)){if(jC(e)){if(!t.target.readonly&&(LC(e)||rw(e)&&e.target.readonly))return 0;const n=dy(e),o=dy(t),a=rw(e)?4&e.target.combinedFlags:4,l=!!(12&t.target.combinedFlags),_=rw(e)?e.target.minLength:0,u=t.target.minLength;if(!a&&n!(11&e));return t>=0?t:e.elementFlags.length}(t.target),m=yb(t.target,11);let g=!!i;for(let a=0;a=f?o-1-Math.min(u,m):a,y=t.target.elementFlags[h];if(8&y&&!(8&_))return r&&M(_a.Source_provides_no_match_for_variadic_element_at_position_0_in_target,h),0;if(8&_&&!(12&y))return r&&M(_a.Variadic_element_at_position_0_in_source_does_not_match_element_at_position_1_in_target,a,h),0;if(1&y&&!(1&_))return r&&M(_a.Source_provides_no_match_for_required_element_at_position_0_in_target,h),0;if(g&&((12&_||12&y)&&(g=!1),g&&(null==i?void 0:i.has(""+a))))continue;const v=kw(d[a],!!(_&y&2)),b=p[h],x=U(v,8&_&&4&y?Rv(b):kw(b,!!(2&y)),3,r,void 0,s);if(!x)return r&&(o>1||n>1)&&(l&&a>=f&&u>=m&&f!==n-m-1?O(_a.Type_at_positions_0_through_1_in_source_is_not_compatible_with_type_at_position_2_in_target,f,n-m-1,h):O(_a.Type_at_position_0_in_source_is_not_compatible_with_type_at_position_1_in_target,a,h)),0;c&=x}return c}if(12&t.target.combinedFlags)return 0}const l=!(n!==To&&n!==Co||xN(e)||VC(e)||rw(e)),d=cN(e,t,l,!1);if(d)return r&&function(e,t){const n=fm(e,0),r=fm(e,1),i=Dp(e);return!((n.length||r.length)&&!i.length)||!!(mm(t,0).length&&n.length||mm(t,1).length&&r.length)}(e,t)&&function(e,t,n,r){let i=!1;if(n.valueDeclaration&&Sc(n.valueDeclaration)&&sD(n.valueDeclaration.name)&&e.symbol&&32&e.symbol.flags){const r=n.valueDeclaration.name.escapedText,i=Vh(e.symbol,r);if(i&&pm(e,i)){const n=mw.getDeclarationName(e.symbol.valueDeclaration),i=mw.getDeclarationName(t.symbol.valueDeclaration);return void M(_a.Property_0_in_type_1_refers_to_a_different_member_that_cannot_be_accessed_from_within_type_2,ya(r),ya(""===n.escapedText?JB:n),ya(""===i.escapedText?JB:i))}}const a=Oe(sN(e,t,r,!1));if((!o||o.code!==_a.Class_0_incorrectly_implements_interface_1.code&&o.code!==_a.Class_0_incorrectly_implements_class_1_Did_you_mean_to_extend_1_and_inherit_its_members_as_a_subclass.code)&&(i=!0),1===a.length){const r=bc(n,void 0,0,20);M(_a.Property_0_is_missing_in_type_1_but_required_in_type_2,r,...wc(e,t)),u(n.declarations)&&B(Rp(n.declarations[0],_a._0_is_declared_here,r)),i&&_&&w++}else z(e,t,!1)&&(a.length>5?M(_a.Type_0_is_missing_the_following_properties_from_type_1_Colon_2_and_3_more,Tc(e),Tc(t),E(a.slice(0,4),e=>bc(e)).join(", "),a.length-4):M(_a.Type_0_is_missing_the_following_properties_from_type_1_Colon_2,Tc(e),Tc(t),E(a,e=>bc(e)).join(", ")),i&&_&&w++)}(e,t,d,l),0;if(xN(t))for(const n of oe(Up(e),i))if(!(Lp(t,n.escapedName)||32768&P_(n).flags))return r&&M(_a.Property_0_does_not_exist_on_type_1,bc(n),Tc(t)),0;const p=Up(t),f=rw(e)&&rw(t);for(const o of oe(p,i)){const i=o.escapedName;if(!(4194304&o.flags)&&(!f||JT(i)||"length"===i)&&(!a||16777216&o.flags)){const a=pm(e,i);if(a&&a!==o){const i=ae(e,t,a,o,M_,r,s,n===No);if(!i)return 0;c&=i}}}return c}function le(e,t,r,i,o){var a,s;if(n===Fo)return function(e,t,n){const r=mm(e,n),i=mm(t,n);if(r.length!==i.length)return 0;let o=-1;for(let e=0;ekc(e,void 0,262144,r);return M(_a.Type_0_is_not_assignable_to_type_1,e(t),e(c)),M(_a.Types_of_construct_signatures_are_incompatible),d}}else e:for(const t of u){const n=I();let a=i;for(const e of _){const r=pe(e,t,!0,a,o,p(e,t));if(r){d&=r,P(n);continue e}a=!1}return a&&M(_a.Type_0_provides_no_match_for_the_signature_1,Tc(e),kc(t,void 0,void 0,r)),0}return d}function ue(e,t){return 0===e.parameters.length&&0===t.parameters.length?(e,t)=>O(_a.Call_signatures_with_no_arguments_have_incompatible_return_types_0_and_1,Tc(e),Tc(t)):(e,t)=>O(_a.Call_signature_return_types_0_and_1_are_incompatible,Tc(e),Tc(t))}function de(e,t){return 0===e.parameters.length&&0===t.parameters.length?(e,t)=>O(_a.Construct_signatures_with_no_arguments_have_incompatible_return_types_0_and_1,Tc(e),Tc(t)):(e,t)=>O(_a.Construct_signature_return_types_0_and_1_are_incompatible,Tc(e),Tc(t))}function pe(e,t,r,i,o,a){const s=n===To?16:n===Co?24:0;return $S(r?wh(e):e,r?wh(t):t,s,i,M,a,function(e,t,n){return U(e,t,3,n,void 0,o)},Cn)}function me(e,t,n,r){const i=U(e.type,t.type,3,n,void 0,r);return!i&&n&&(e.keyType===t.keyType?M(_a._0_index_signatures_are_incompatible,Tc(e.keyType)):M(_a._0_and_1_index_signatures_are_incompatible,Tc(e.keyType),Tc(t.keyType))),i}function he(e,t,r,i,o){if(n===Fo)return function(e,t){const n=Jm(e),r=Jm(t);if(n.length!==r.length)return 0;for(const t of r){const n=qm(e,t.keyType);if(!n||!U(n.type,t.type,3)||n.isReadonly!==t.isReadonly)return 0}return-1}(e,t);const a=Jm(t),s=$(a,e=>e.keyType===Vt);let c=-1;for(const t of a){const a=n!==Co&&!r&&s&&1&t.type.flags?-1:Sp(e)&&s?U(_p(e),t.type,3,i):ye(e,t,i,o);if(!a)return 0;c&=a}return c}function ye(e,t,r,i){const o=ig(e,t.keyType);return o?me(o,t,r,i):1&i||!(n!==Co||8192&gx(e))||!Cw(e)?(r&&M(_a.Index_signature_for_type_0_is_missing_in_type_1,Tc(t.keyType),Tc(e)),0):function(e,t,n,r){let i=-1;const o=t.keyType,a=2097152&e.flags?Jp(e):Dp(e);for(const s of a)if(!oT(e,s)&&jm(Kb(s,8576),o)){const e=M_(s),a=U(_e||32768&e.flags||o===Wt||!(16777216&s.flags)?e:XN(e,524288),t.type,3,n,void 0,r);if(!a)return n&&M(_a.Property_0_is_incompatible_with_index_signature,bc(s)),0;i&=a}for(const a of Jm(e))if(jm(a.keyType,o)){const e=me(a,t,n,r);if(!e)return 0;i&=e}return i}(e,t,r,i)}}function ST(e){if(16&e.flags)return!1;if(3145728&e.flags)return!!d(e.types,ST);if(465829888&e.flags){const t=Vp(e);if(t&&t!==e)return ST(t)}return KC(e)||!!(134217728&e.flags)||!!(268435456&e.flags)}function TT(e,t){return rw(e)&&rw(t)?l:Up(t).filter(t=>wT(el(e,t.escapedName),P_(t)))}function wT(e,t){return!!e&&!!t&&gj(e,32768)&&!!Sw(t)}function FT(e,t,n=CS){return Dz(e,t,n)||function(e,t){const n=gx(e);if(20&n&&1048576&t.flags)return b(t.types,t=>{if(524288&t.flags){const r=n&gx(t);if(4&r)return e.target===t.target;if(16&r)return!!e.aliasSymbol&&e.aliasSymbol===t.aliasSymbol}return!1})}(e,t)||function(e,t){if(128&gx(e)&&UD(t,JC))return b(t.types,e=>!JC(e))}(e,t)||function(e,t){let n=0;if(mm(e,n).length>0||(n=1,mm(e,n).length>0))return b(t.types,e=>mm(e,n).length>0)}(e,t)||function(e,t){let n;if(!(406978556&e.flags)){let r=0;for(const i of t.types)if(!(406978556&i.flags)){const t=Bb([Yb(e),Yb(i)]);if(4194304&t.flags)return i;if(KC(t)||1048576&t.flags){const e=1048576&t.flags?w(t.types,KC):1;e>=r&&(n=i,r=e)}}}return n}(e,t)}function ET(e,t,n){const r=e.types,i=r.map(e=>402784252&e.flags?0:-1);for(const[e,o]of t){let t=!1;for(let a=0;a!!n(e,s))?t=!0:i[a]=3)}for(let e=0;ei[t]),0):e;return 131072&o.flags?e:o}function PT(e){if(524288&e.flags){const t=Cp(e);return 0===t.callSignatures.length&&0===t.constructSignatures.length&&0===t.indexInfos.length&&t.properties.length>0&&v(t.properties,e=>!!(16777216&e.flags))}return 33554432&e.flags?PT(e.baseType):!!(2097152&e.flags)&&v(e.types,PT)}function IT(e){return e===Zn||e===er||8&e.objectFlags?L:BT(e.symbol,e.typeParameters)}function OT(e){return BT(e,ua(e).typeParameters)}function BT(e,t=l){var n,r;const i=ua(e);if(!i.variances){null==(n=Hn)||n.push(Hn.Phase.CheckTypes,"getVariancesWorker",{arity:t.length,id:kb(Au(e))});const o=Hi,a=$i;Hi||(Hi=!0,$i=Ui.length),i.variances=l;const s=[];for(const n of t){const t=rC(n);let r=16384&t?8192&t?0:1:8192&t?2:void 0;if(void 0===r){let t=!1,i=!1;const o=on;on=e=>e?i=!0:t=!0;const a=UT(e,n,Bn),s=UT(e,n,Jn);r=(FS(s,a)?1:0)|(FS(a,s)?2:0),3===r&&FS(UT(e,n,zn),a)&&(r=4),on=o,(t||i)&&(t&&(r|=8),i&&(r|=16))}s.push(r)}o||(Hi=!1,$i=a),i.variances=s,null==(r=Hn)||r.pop({variances:s.map(un.formatVariance)})}return i.variances}function UT(e,t,n){const r=Wk(t,n),i=Au(e);if(al(i))return i;const o=524288&e.flags?fy(e,Mk(ua(e).typeParameters,r)):ay(i,Mk(i.typeParameters,r));return bt.add(kb(o)),o}function KT(e){return bt.has(kb(e))}function rC(e){var t;return 28672&we(null==(t=e.symbol)?void 0:t.declarations,(e,t)=>e|Bv(t),0)}function oC(e){return 262144&e.flags&&!Hp(e)}function uC(e){return function(e){return!!(4&gx(e))&&!e.node}(e)&&$(uy(e),e=>!!(262144&e.flags)||uC(e))}function dC(e,t,n,r,i){if(r===Fo&&e.id>t.id){const n=e;e=t,t=n}const o=n?":"+n:"";return uC(e)&&uC(t)?function(e,t,n,r){const i=[];let o="";const a=c(e,0),s=c(t,0);return`${o}${a},${s}${n}`;function c(e,t=0){let n=""+e.target.id;for(const a of uy(e)){if(262144&a.flags){if(r||oC(a)){let e=i.indexOf(a);e<0&&(e=i.length,i.push(a)),n+="="+e;continue}o="*"}else if(t<4&&uC(a)){n+="<"+c(a,t+1)+">";continue}n+="-"+a.id}return n}}(e,t,o,i):`${e.id},${t.id}${o}`}function fC(e,t){if(!(6&rx(e)))return t(e);for(const n of e.links.containingType.types){const r=pm(n,e.escapedName),i=r&&fC(r,t);if(i)return i}}function bC(e){return e.parent&&32&e.parent.flags?Au(Ts(e)):void 0}function xC(e){const t=bC(e),n=t&&uu(t)[0];return n&&el(n,e.escapedName)}function TC(e,t,n){return fC(t,t=>!!(4&ix(t,n))&&!q_(e,bC(t)))?void 0:e}function CC(e,t,n,r=3){if(n>=r){if(96&~gx(e)||(e=wC(e)),2097152&e.flags)return $(e.types,e=>CC(e,t,n,r));const i=DC(e);let o=0,a=0;for(let e=0;e=a&&(o++,o>=r))return!0;a=n.id}}}return!1}function wC(e){let t;for(;!(96&~gx(e))&&(t=vp(e))&&(t.symbol||2097152&t.flags&&$(t.types,e=>!!e.symbol));)e=t;return e}function NC(e,t){return 96&~gx(e)||(e=wC(e)),2097152&e.flags?$(e.types,e=>NC(e,t)):DC(e)===t}function DC(e){if(524288&e.flags&&!kN(e)){if(4&gx(e)&&e.node)return e.node;if(e.symbol&&!(16&gx(e)&&32&e.symbol.flags))return e.symbol;if(rw(e))return e.target}if(262144&e.flags)return e.symbol;if(8388608&e.flags){do{e=e.objectType}while(8388608&e.flags);return e}return 16777216&e.flags?e.root:e}function FC(e,t){return 0!==EC(e,t,TS)}function EC(e,t,n){if(e===t)return-1;const r=6&ix(e);if(r!==(6&ix(t)))return 0;if(r){if(uB(e)!==uB(t))return 0}else if((16777216&e.flags)!=(16777216&t.flags))return 0;return _j(e)!==_j(t)?0:n(P_(e),P_(t))}function PC(e,t,n,r,i,o){if(e===t)return-1;if(!function(e,t,n){const r=jL(e),i=jL(t),o=ML(e),a=ML(t),s=RL(e),c=RL(t);return r===i&&o===a&&s===c||!!(n&&o<=a)}(e,t,n))return 0;if(u(e.typeParameters)!==u(t.typeParameters))return 0;if(t.typeParameters){const n=Uk(e.typeParameters,t.typeParameters);for(let r=0;re|(1048576&t.flags?AC(t.types):t.flags),0)}function IC(e){if(1===e.length)return e[0];const t=H?A(e,e=>GD(e,e=>!(98304&e.flags))):e,n=function(e){let t;for(const n of e)if(!(131072&n.flags)){const e=QC(n);if(t??(t=e),e===n||e!==t)return!1}return!0}(t)?Pb(t):function(e){const t=we(e,(e,t)=>DS(e,t)?t:e);return v(e,e=>e===t||DS(e,t))?t:we(e,(e,t)=>NS(e,t)?t:e)}(t);return t===e?n:dw(n,98304&AC(e))}function OC(e){return!!(4&gx(e))&&(e.target===Zn||e.target===er)}function LC(e){return!!(4&gx(e))&&e.target===er}function jC(e){return OC(e)||rw(e)}function MC(e){return OC(e)&&!LC(e)||rw(e)&&!e.target.readonly}function BC(e){return OC(e)?uy(e)[0]:void 0}function JC(e){return OC(e)||!(98304&e.flags)&&FS(e,_r)}function zC(e){return MC(e)||!(98305&e.flags)&&FS(e,cr)}function qC(e){if(!(4&gx(e)&&3&gx(e.target)))return;if(33554432&gx(e))return 67108864&gx(e)?e.cachedEquivalentBaseType:void 0;e.objectFlags|=33554432;const t=e.target;if(1&gx(t)){const e=nu(t);if(e&&80!==e.expression.kind&&212!==e.expression.kind)return}const n=uu(t);if(1!==n.length)return;if(Td(e.symbol).size)return;let r=u(t.typeParameters)?fS(n[0],Uk(t.typeParameters,uy(e).slice(0,t.typeParameters.length))):n[0];return u(uy(e))>u(t.typeParameters)&&(r=wd(r,ve(uy(e)))),e.objectFlags|=67108864,e.cachedEquivalentBaseType=r}function UC(e){return H?e===pn:e===Mt}function VC(e){const t=BC(e);return!!t&&UC(t)}function WC(e){let t;return rw(e)||!!pm(e,"0")||JC(e)&&!!(t=el(e,"length"))&&KD(t,e=>!!(256&e.flags))}function $C(e){return JC(e)||WC(e)}function HC(e){return!(240544&e.flags)}function KC(e){return!!(109472&e.flags)}function GC(e){const t=ff(e);return 2097152&t.flags?$(t.types,KC):KC(t)}function XC(e){return!!(16&e.flags)||(1048576&e.flags?!!(1024&e.flags)||v(e.types,KC):KC(e))}function QC(e){return 1056&e.flags?hu(e):402653312&e.flags?Vt:256&e.flags?Wt:2048&e.flags?$t:512&e.flags?sn:1048576&e.flags?function(e){const t=`B${kb(e)}`;return Oo(t)??Lo(t,nF(e,QC))}(e):e}function YC(e){return 402653312&e.flags?Vt:288&e.flags?Wt:2048&e.flags?$t:512&e.flags?sn:1048576&e.flags?nF(e,YC):e}function ZC(e){return 1056&e.flags&&pk(e)?hu(e):128&e.flags&&pk(e)?Vt:256&e.flags&&pk(e)?Wt:2048&e.flags&&pk(e)?$t:512&e.flags&&pk(e)?sn:1048576&e.flags?nF(e,ZC):e}function ew(e){return 8192&e.flags?cn:1048576&e.flags?nF(e,ew):e}function tw(e,t){return Bj(e,t)||(e=ew(ZC(e))),dk(e)}function nw(e,t,n,r){return e&&KC(e)&&(e=tw(e,t?WR(n,t,r):void 0)),e}function rw(e){return!!(4&gx(e)&&8&e.target.objectFlags)}function iw(e){return rw(e)&&!!(8&e.target.combinedFlags)}function ow(e){return iw(e)&&1===e.target.elementFlags.length}function aw(e){return cw(e,e.target.fixedLength)}function sw(e,t,n){return nF(e,e=>{const r=e,i=aw(r);return i?n&&t>=vb(r.target)?Pb([i,n]):i:jt})}function cw(e,t,n=0,r=!1,i=!1){const o=dy(e)-n;if(tKN(e,4194304))}function uw(e){return 4&e.flags?Ji:8&e.flags?zi:64&e.flags?qi:e===Qt||e===Ht||114691&e.flags||128&e.flags&&""===e.value||256&e.flags&&0===e.value||2048&e.flags&&lw(e)?e:_n}function dw(e,t){const n=t&~e.flags&98304;return 0===n?e:Pb(32768===n?[e,jt]:65536===n?[e,zt]:[e,jt,zt])}function pw(e,t=!1){un.assert(H);const n=t?Bt:jt;return e===n||1048576&e.flags&&e.types[0]===n?e:Pb([e,n])}function fw(e){return H?QN(e,2097152):e}function gw(e){return H?Pb([e,Jt]):e}function yw(e){return H?QD(e,Jt):e}function vw(e,t,n){return n?bl(t)?pw(e):gw(e):e}function bw(e,t){return vl(t)?fw(e):hl(t)?yw(e):e}function kw(e,t){return _e&&t?QD(e,Rt):e}function Sw(e){return e===Rt||!!(1048576&e.flags)&&e.types[0]===Rt}function Tw(e){return _e?QD(e,Rt):XN(e,524288)}function Cw(e){const t=gx(e);return 2097152&e.flags?v(e.types,Cw):!(!(e.symbol&&7040&e.symbol.flags)||32&e.symbol.flags||wJ(e))||!!(4194304&t)||!!(1024&t&&Cw(e.source))}function ww(e,t){const n=Xo(e.flags,e.escapedName,8&rx(e));n.declarations=e.declarations,n.parent=e.parent,n.links.type=t,n.links.target=e,e.valueDeclaration&&(n.valueDeclaration=e.valueDeclaration);const r=ua(e).nameType;return r&&(n.links.nameType=r),n}function Nw(e){if(!(xN(e)&&8192&gx(e)))return e;const t=e.regularType;if(t)return t;const n=e,r=function(e,t){const n=Gu();for(const r of Dp(e)){const e=P_(r),i=t(e);n.set(r.escapedName,i===e?r:ww(r,i))}return n}(e,Nw),i=$s(n.symbol,r,n.callSignatures,n.constructSignatures,n.indexInfos);return i.flags=n.flags,i.objectFlags|=-8193&n.objectFlags,e.regularType=i,i}function Dw(e,t,n){return{parent:e,propertyName:t,siblings:n,resolvedProperties:void 0}}function Fw(e){if(!e.siblings){const t=[];for(const n of Fw(e.parent))if(xN(n)){const r=Lp(n,e.propertyName);r&&bD(P_(r),e=>{t.push(e)})}e.siblings=t}return e.siblings}function Ew(e){if(!e.resolvedProperties){const t=new Map;for(const n of Fw(e))if(xN(n)&&!(2097152&gx(n)))for(const e of Up(n))t.set(e.escapedName,e);e.resolvedProperties=Oe(t.values())}return e.resolvedProperties}function Pw(e,t){if(!(4&e.flags))return e;const n=P_(e),r=Mw(n,t&&Dw(t,e.escapedName,void 0));return r===n?e:ww(e,r)}function Iw(e){const t=yt.get(e.escapedName);if(t)return t;const n=ww(e,Bt);return n.flags|=16777216,yt.set(e.escapedName,n),n}function jw(e){return Mw(e,void 0)}function Mw(e,t){if(196608&gx(e)){if(void 0===t&&e.widened)return e.widened;let n;if(98305&e.flags)n=wt;else if(xN(e))n=function(e,t){const n=Gu();for(const r of Dp(e))n.set(r.escapedName,Pw(r,t));if(t)for(const e of Ew(t))n.has(e.escapedName)||n.set(e.escapedName,Iw(e));const r=$s(e.symbol,n,l,l,A(Jm(e),e=>Ah(e.keyType,jw(e.type),e.isReadonly,e.declaration,e.components)));return r.objectFlags|=266240&gx(e),r}(e,t);else if(1048576&e.flags){const r=t||Dw(void 0,void 0,e.types),i=A(e.types,e=>98304&e.flags?e:Mw(e,r));n=Pb(i,$(i,GS)?2:1)}else 2097152&e.flags?n=Bb(A(e.types,jw)):jC(e)&&(n=ay(e.target,A(uy(e),jw)));return n&&void 0===t&&(e.widened=n),n||e}return e}function Bw(e){var t;let n=!1;if(65536&gx(e))if(1048576&e.flags)if($(e.types,GS))n=!0;else for(const t of e.types)n||(n=Bw(t));else if(jC(e))for(const t of uy(e))n||(n=Bw(t));else if(xN(e))for(const r of Dp(e)){const i=P_(r);if(65536&gx(i)&&(n=Bw(i),!n)){const o=null==(t=r.declarations)?void 0:t.find(t=>{var n;return(null==(n=t.symbol.valueDeclaration)?void 0:n.parent)===e.symbol.valueDeclaration});o&&(zo(o,_a.Object_literal_s_property_0_implicitly_has_an_1_type,bc(r),Tc(jw(i))),n=!0)}}return n}function Jw(e,t,n){const r=Tc(jw(t));if(Em(e)&&!nT(vd(e),j))return;let i;switch(e.kind){case 227:case 173:case 172:i=ne?_a.Member_0_implicitly_has_an_1_type:_a.Member_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage;break;case 170:const t=e;if(aD(t.name)){const n=hc(t.name);if((OD(t.parent)||DD(t.parent)||BD(t.parent))&&t.parent.parameters.includes(t)&&(Ue(t,t.name.escapedText,788968,void 0,!0)||n&&kx(n))){const n="arg"+t.parent.parameters.indexOf(t),r=Ap(t.name)+(t.dotDotDotToken?"[]":"");return void Vo(ne,e,_a.Parameter_has_a_name_but_no_type_Did_you_mean_0_Colon_1,n,r)}}i=e.dotDotDotToken?ne?_a.Rest_parameter_0_implicitly_has_an_any_type:_a.Rest_parameter_0_implicitly_has_an_any_type_but_a_better_type_may_be_inferred_from_usage:ne?_a.Parameter_0_implicitly_has_an_1_type:_a.Parameter_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage;break;case 209:if(i=_a.Binding_element_0_implicitly_has_an_1_type,!ne)return;break;case 318:return void zo(e,_a.Function_type_which_lacks_return_type_annotation_implicitly_has_an_0_return_type,r);case 324:return void(ne&&LP(e.parent)&&zo(e.parent.tagName,_a.This_overload_implicitly_returns_the_type_0_because_it_lacks_a_return_type_annotation,r));case 263:case 175:case 174:case 178:case 179:case 219:case 220:if(ne&&!e.name)return void zo(e,3===n?_a.Generator_implicitly_has_yield_type_0_Consider_supplying_a_return_type_annotation:_a.Function_expression_which_lacks_return_type_annotation_implicitly_has_an_0_return_type,r);i=ne?3===n?_a._0_which_lacks_return_type_annotation_implicitly_has_an_1_yield_type:_a._0_which_lacks_return_type_annotation_implicitly_has_an_1_return_type:_a._0_implicitly_has_an_1_return_type_but_a_better_type_may_be_inferred_from_usage;break;case 201:return void(ne&&zo(e,_a.Mapped_object_type_implicitly_has_an_any_template_type));default:i=ne?_a.Variable_0_implicitly_has_an_1_type:_a.Variable_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage}Vo(ne,e,i,Ap(Cc(e)),r)}function zw(e,t,n){a(()=>{ne&&65536&gx(t)&&(!n||o_(e)&&function(e,t){const n=LA(e);if(!n)return!0;let r=Gg(n);const i=Oh(e);switch(t){case 1:return 1&i?r=WR(1,r,!!(2&i))??r:2&i&&(r=AM(r)??r),xx(r);case 3:const e=WR(0,r,!!(2&i));return!!e&&xx(e);case 2:const t=WR(2,r,!!(2&i));return!!t&&xx(t)}return!1}(e,n))&&(Bw(t)||Jw(e,t,n))})}function qw(e,t,n){const r=jL(e),i=jL(t),o=BL(e),a=BL(t),s=a?i-1:i,c=o?s:Math.min(r,s),l=Rg(e);if(l){const e=Rg(t);e&&n(l,e)}for(let r=0;re.typeParameter),E(e.inferences,(t,n)=>()=>(t.isFixed||(function(e){if(e.intraExpressionInferenceSites){for(const{node:t,type:n}of e.intraExpressionInferenceSites){const r=175===t.kind?dA(t,2):xA(t,2);r&&yN(e.inferences,n,r)}e.intraExpressionInferenceSites=void 0}}(e),Hw(e.inferences),t.isFixed=!0),SN(e,n))))}(i),i.nonFixingMapper=function(e){return Qk(E(e.inferences,e=>e.typeParameter),E(e.inferences,(t,n)=>()=>SN(e,n)))}(i),i}function Hw(e){for(const t of e)t.isFixed||(t.inferredType=void 0)}function Kw(e,t,n){(e.intraExpressionInferenceSites??(e.intraExpressionInferenceSites=[])).push({node:t,type:n})}function Gw(e){return{typeParameter:e,candidates:void 0,contraCandidates:void 0,inferredType:void 0,priority:void 0,topLevel:!0,isFixed:!1,impliedArity:void 0}}function Xw(e){return{typeParameter:e.typeParameter,candidates:e.candidates&&e.candidates.slice(),contraCandidates:e.contraCandidates&&e.contraCandidates.slice(),inferredType:e.inferredType,priority:e.priority,topLevel:e.topLevel,isFixed:e.isFixed,impliedArity:e.impliedArity}}function Qw(e){return e&&e.mapper}function eN(e){const t=gx(e);if(524288&t)return!!(1048576&t);const n=!!(465829888&e.flags||524288&e.flags&&!tN(e)&&(4&t&&(e.node||$(uy(e),eN))||16&t&&e.symbol&&14384&e.symbol.flags&&e.symbol.declarations||12583968&t)||3145728&e.flags&&!(1024&e.flags)&&!tN(e)&&$(e.types,eN));return 3899393&e.flags&&(e.objectFlags|=524288|(n?1048576:0)),n}function tN(e){if(e.aliasSymbol&&!e.aliasTypeArguments){const t=Hu(e.aliasSymbol,266);return!(!t||!uc(t.parent,e=>308===e.kind||268!==e.kind&&"quit"))}return!1}function nN(e,t,n=0){return!!(e===t||3145728&e.flags&&$(e.types,e=>nN(e,t,n))||n<3&&16777216&e.flags&&(nN(qx(e),t,n+1)||nN(Ux(e),t,n+1)))}function iN(e,t,n){const r=e.id+","+t.id+","+n.id;if(xi.has(r))return xi.get(r);const i=function(e,t,n){if(!(qm(e,Vt)||0!==Up(e).length&&oN(e)))return;if(OC(e)){const r=aN(uy(e)[0],t,n);if(!r)return;return Rv(r,LC(e))}if(rw(e)){const r=E(xb(e),e=>aN(e,t,n));if(!v(r,e=>!!e))return;return Gv(r,4&bp(t)?A(e.target.elementFlags,e=>2&e?1:e):e.target.elementFlags,e.target.readonly,e.target.labeledElementDeclarations)}const r=Js(1040,void 0);return r.source=e,r.mappedType=t,r.constraintType=n,r}(e,t,n);return xi.set(r,i),i}function oN(e){return!(262144&gx(e))||xN(e)&&$(Up(e),e=>oN(P_(e)))||rw(e)&&$(xb(e),oN)}function aN(e,t,n){const r=e.id+","+t.id+","+n.id;if(bi.has(r))return bi.get(r)||Ot;fo.push(e),mo.push(t);const i=go;let o;return CC(e,fo,fo.length,2)&&(go|=1),CC(t,mo,mo.length,2)&&(go|=2),3!==go&&(o=function(e,t,n){const r=Ax(n.type,rp(t)),i=_p(t),o=Gw(r);return yN([o],e,i),lN(o)||Ot}(e,t,n)),fo.pop(),mo.pop(),go=i,bi.set(r,o),o}function*sN(e,t,n,r){const i=Up(t);for(const t of i)if(!ed(t)&&(n||!(16777216&t.flags||48&rx(t)))){const n=pm(e,t.escapedName);if(n){if(r){const e=P_(t);if(109472&e.flags){const r=P_(n);1&r.flags||dk(r)===dk(e)||(yield t)}}}else yield t}}function cN(e,t,n,r){return me(sN(e,t,n,r))}function lN(e){return e.candidates?Pb(e.candidates,2):e.contraCandidates?Bb(e.contraCandidates):void 0}function _N(e){return!!da(e).skipDirectInference}function uN(e){return!(!e.symbol||!$(e.symbol.declarations,_N))}function dN(e,t){if(""===e)return!1;const n=+e;return isFinite(n)&&(!t||""+n===e)}function pN(e,t){if(1&t.flags)return!0;if(134217732&t.flags)return FS(e,t);if(268435456&t.flags){const n=[];for(;268435456&t.flags;)n.unshift(t.symbol),t=t.type;return we(n,(e,t)=>nx(t,e),e)===e&&pN(e,t)}return!1}function fN(e,t){if(2097152&t.flags)return v(t.types,t=>t===Pn||fN(e,t));if(4&t.flags||FS(e,t))return!0;if(128&e.flags){const n=e.value;return!!(8&t.flags&&dN(n,!1)||64&t.flags&&vT(n,!1)||98816&t.flags&&n===t.intrinsicName||268435456&t.flags&&pN(e,t)||134217728&t.flags&&gN(e,t))}if(134217728&e.flags){const n=e.texts;return 2===n.length&&""===n[0]&&""===n[1]&&FS(e.types[0],t)}return!1}function mN(e,t){return 128&e.flags?hN([e.value],l,t):134217728&e.flags?te(e.texts,t.texts)?E(e.types,(e,n)=>{return FS(ff(e),ff(t.types[n]))?e:402653317&(r=e).flags?r:ex(["",""],[r]);var r}):hN(e.texts,e.types,t):void 0}function gN(e,t){const n=mN(e,t);return!!n&&v(n,(e,n)=>fN(e,t.types[n]))}function hN(e,t,n){const r=e.length-1,i=e[0],o=e[r],a=n.texts,s=a.length-1,c=a[0],l=a[s];if(0===r&&i.length0){let t=d,r=p;for(;r=f(t).indexOf(n,r),!(r>=0);){if(t++,t===e.length)return;r=0}m(t,r),p+=n.length}else if(p{if(!(128&e.flags))return;const n=fc(e.value),r=Xo(4,n);r.links.type=wt,e.symbol&&(r.declarations=e.symbol.declarations,r.valueDeclaration=e.symbol.valueDeclaration),t.set(n,r)});const n=4&e.flags?[Ah(Vt,Nn,!1)]:l;return $s(void 0,t,l,l,n)}(t),a.type);else if(8388608&t.flags&&8388608&a.flags)p(t.objectType,a.objectType),p(t.indexType,a.indexType);else if(268435456&t.flags&&268435456&a.flags)t.symbol===a.symbol&&p(t.type,a.type);else if(33554432&t.flags)p(t.baseType,a),f(wy(t),a,4);else if(16777216&a.flags)m(t,a,w);else if(3145728&a.flags)S(t,a.types,a.flags);else if(1048576&t.flags){const e=t.types;for(const t of e)p(t,a)}else if(134217728&a.flags)!function(e,t){const n=mN(e,t),r=t.types;if(n||v(t.texts,e=>0===e.length))for(let e=0;ee|t.flags,0);if(!(4&r)){const n=t.value;296&r&&!dN(n,!0)&&(r&=-297),2112&r&&!vT(n,!0)&&(r&=-2113);const o=we(e,(e,i)=>i.flags&r?4&e.flags?e:4&i.flags?t:134217728&e.flags?e:134217728&i.flags&&gN(t,i)?t:268435456&e.flags?e:268435456&i.flags&&n===ox(i.symbol,n)?t:128&e.flags?e:128&i.flags&&i.value===n?i:8&e.flags?e:8&i.flags?mk(+n):32&e.flags?e:32&i.flags?mk(+n):256&e.flags?e:256&i.flags&&i.value===+n?i:64&e.flags?e:64&i.flags?gk(yT(n)):2048&e.flags?e:2048&i.flags&&gT(i.value)===n?i:16&e.flags?e:16&i.flags?"true"===n?Yt:"false"===n?Ht:sn:512&e.flags?e:512&i.flags&&i.intrinsicName===n?i:32768&e.flags?e:32768&i.flags&&i.intrinsicName===n?i:65536&e.flags?e:65536&i.flags&&i.intrinsicName===n?i:e:e,_n);if(!(131072&o.flags)){p(o,i);continue}}}}p(t,i)}}(t,a);else{if(Sp(t=Bf(t))&&Sp(a)&&m(t,a,D),!(512&r&&467927040&t.flags)){const e=Sf(t);if(e!==t&&!(2621440&e.flags))return p(e,a);t=e}2621440&t.flags&&m(t,a,F)}else h(uy(t),uy(a),IT(t.target))}}}function f(e,t,n){const i=r;r|=n,p(e,t),r=i}function m(e,t,n){const r=e.id+","+t.id,i=a&&a.get(r);if(void 0!==i)return void(u=Math.min(u,i));(a||(a=new Map)).set(r,-1);const o=u;u=2048;const l=d;(s??(s=[])).push(e),(c??(c=[])).push(t),CC(e,s,s.length,2)&&(d|=1),CC(t,c,c.length,2)&&(d|=2),3!==d?n(e,t):u=-1,c.pop(),s.pop(),d=l,a.set(r,u),u=Math.min(u,o)}function g(e,t,n){let r,i;for(const o of t)for(const t of e)n(t,o)&&(p(t,o),r=le(r,t),i=le(i,o));return[r?N(e,e=>!T(r,e)):e,i?N(t,e=>!T(i,e)):t]}function h(e,t,n){const r=e.length!!k(e));if(!e||t&&e!==t)return;t=e}return t}(t);return void(n&&f(e,n,1))}if(1===i&&!s){const e=O(o,(e,t)=>a[t]?void 0:e);if(e.length)return void p(Pb(e),n)}}else for(const n of t)k(n)?i++:p(e,n);if(2097152&n?1===i:i>0)for(const n of t)k(n)&&f(e,n,1)}function C(e,t,n){if(1048576&n.flags||2097152&n.flags){let r=!1;for(const i of n.types)r=C(e,t,i)||r;return r}if(4194304&n.flags){const r=k(n.type);if(r&&!r.isFixed&&!uN(e)){const i=iN(e,t,n);i&&f(i,r.typeParameter,262144&gx(e)?16:8)}return!0}if(262144&n.flags){f(Yb(e,e.pattern?2:0),n,32);const r=Vp(n);return r&&C(e,t,r)||p(Pb(K(E(Up(e),P_),E(Jm(e),e=>e!==ui?e.type:_n))),_p(t)),!0}return!1}function w(e,t){16777216&e.flags?(p(e.checkType,t.checkType),p(e.extendsType,t.extendsType),p(qx(e),qx(t)),p(Ux(e),Ux(t))):function(e,t,n,i){const o=r;r|=i,S(e,t,n),r=o}(e,[qx(t),Ux(t)],t.flags,i?64:0)}function D(e,t){p(ip(e),ip(t)),p(_p(e),_p(t));const n=op(e),r=op(t);n&&r&&p(n,r)}function F(e,t){var n,r;if(4&gx(e)&&4&gx(t)&&(e.target===t.target||OC(e)&&OC(t)))h(uy(e),uy(t),IT(e.target));else{if(Sp(e)&&Sp(t)&&D(e,t),32&gx(t)&&!t.declaration.nameType&&C(e,t,ip(t)))return;if(!function(e,t){return rw(e)&&rw(t)?function(e,t){return!(8&t.target.combinedFlags)&&t.target.minLength>e.target.minLength||!(12&t.target.combinedFlags)&&(!!(12&e.target.combinedFlags)||t.target.fixedLength(12&e)==(12&o.target.elementFlags[t])))){for(let t=0;t0){const e=mm(t,n),o=e.length;for(let t=0;t1){const t=N(e,kN);if(t.length){const n=Pb(t,2);return K(N(e,e=>!kN(e)),[n])}}return e}(e.candidates),r=function(e){const t=Hp(e);return!!t&&gj(16777216&t.flags?af(t):t,406978556)}(e.typeParameter)||rf(e.typeParameter),i=!r&&e.topLevel&&(e.isFixed||!function(e,t){const n=Hg(e);return n?!!n.type&&nN(n.type,t):nN(Gg(e),t)}(t,e.typeParameter)),o=r?A(n,dk):i?A(n,ZC):n;return jw(416&e.priority?Pb(o,2):IC(o))}(n,e.signature):void 0,a=n.contraCandidates?function(e){return 416&e.priority?Bb(e.contraCandidates):we(e.contraCandidates,(e,t)=>NS(t,e)?t:e)}(n):void 0;if(o||a){const t=o&&(!a||!(131073&o.flags)&&$(n.contraCandidates,e=>FS(o,e))&&v(e.inferences,e=>e!==n&&Hp(e.typeParameter)!==n.typeParameter||v(e.candidates,e=>FS(e,o))));r=t?o:a,i=t?a:o}else if(1&e.flags)r=dn;else{const i=yf(n.typeParameter);i&&(r=fS(i,tS(function(e,t){const n=e.inferences.slice(t);return Uk(E(n,e=>e.typeParameter),E(n,()=>Ot))}(e,t),e.nonFixingMapper)))}}else r=lN(n);n.inferredType=r||TN(!!(2&e.flags));const o=Hp(n.typeParameter);if(o){const t=fS(o,e.nonFixingMapper);r&&e.compareTypes(r,wd(t,r))||(n.inferredType=i&&e.compareTypes(i,wd(t,i))?i:t)}!function(){for(let e=Bi-1;e>=0;e--)Ri[e].clear()}()}return n.inferredType}function TN(e){return e?wt:Ot}function CN(e){const t=[];for(let n=0;npE(e)||fE(e)||qD(e)))}function FN(e,t,n,r){switch(e.kind){case 80:if(!uv(e)){const i=NN(e);return i!==xt?`${r?ZB(r):"-1"}|${kb(t)}|${kb(n)}|${eJ(i)}`:void 0}case 110:return`0|${r?ZB(r):"-1"}|${kb(t)}|${kb(n)}`;case 236:case 218:return FN(e.expression,t,n,r);case 167:const i=FN(e.left,t,n,r);return i&&`${i}.${e.right.escapedText}`;case 212:case 213:const o=PN(e);if(void 0!==o){const i=FN(e.expression,t,n,r);return i&&`${i}.${o}`}if(pF(e)&&aD(e.argumentExpression)){const i=NN(e.argumentExpression);if(TE(i)||CE(i)&&!oE(i)){const o=FN(e.expression,t,n,r);return o&&`${o}.@${eJ(i)}`}}break;case 207:case 208:case 263:case 219:case 220:case 175:return`${ZB(e)}#${kb(t)}`}}function EN(e,t){switch(t.kind){case 218:case 236:return EN(e,t.expression);case 227:return rb(t)&&EN(e,t.left)||NF(t)&&28===t.operatorToken.kind&&EN(e,t.right)}switch(e.kind){case 237:return 237===t.kind&&e.keywordToken===t.keywordToken&&e.name.escapedText===t.name.escapedText;case 80:case 81:return uv(e)?110===t.kind:80===t.kind&&NN(e)===NN(t)||(lE(t)||lF(t))&&Os(NN(e))===ks(t);case 110:return 110===t.kind;case 108:return 108===t.kind;case 236:case 218:case 239:return EN(e.expression,t);case 212:case 213:const n=PN(e);if(void 0!==n){const r=Sx(t)?PN(t):void 0;if(void 0!==r)return r===n&&EN(e.expression,t.expression)}if(pF(e)&&pF(t)&&aD(e.argumentExpression)&&aD(t.argumentExpression)){const n=NN(e.argumentExpression);if(n===NN(t.argumentExpression)&&(TE(n)||CE(n)&&!oE(n)))return EN(e.expression,t.expression)}break;case 167:return Sx(t)&&e.right.escapedText===PN(t)&&EN(e.left,t.expression);case 227:return NF(e)&&28===e.operatorToken.kind&&EN(e.right,t)}return!1}function PN(e){if(dF(e))return e.name.escapedText;if(pF(e))return jh((t=e).argumentExpression)?fc(t.argumentExpression.text):ab(t.argumentExpression)?function(e){const t=ts(e,111551,!0);if(!t||!(TE(t)||8&t.flags))return;const n=t.valueDeclaration;if(void 0===n)return;const r=g_(n);if(r){const e=AN(r);if(void 0!==e)return e}if(Pu(n)&&fa(n,e)){const e=Vm(n);if(e){const t=k_(n.parent)?wl(n):Qj(e);return t&&AN(t)}if(aP(n))return jp(n.name)}}(t.argumentExpression):void 0;var t;if(lF(e)){const t=Tl(e);return t?fc(t):void 0}return TD(e)?""+e.parent.parameters.indexOf(e):void 0}function AN(e){return 8192&e.flags?e.escapedName:384&e.flags?fc(""+e.value):void 0}function IN(e,t){for(;Sx(e);)if(EN(e=e.expression,t))return!0;return!1}function ON(e,t){for(;hl(e);)if(EN(e=e.expression,t))return!0;return!1}function LN(e,t){if(e&&1048576&e.flags){const n=Nf(e,t);if(n&&2&rx(n))return void 0===n.links.isDiscriminantProperty&&(n.links.isDiscriminantProperty=!(192&~n.links.checkFlags||xx(P_(n)))),!!n.links.isDiscriminantProperty}return!1}function jN(e,t){let n;for(const r of e)if(LN(t,r.escapedName)){if(n){n.push(r);continue}n=[r]}return n}function MN(e){const t=e.types;if(!(t.length<10||32768&gx(e)||w(t,e=>!!(59506688&e.flags))<10)){if(void 0===e.keyPropertyName){const n=d(t,e=>59506688&e.flags?d(Up(e),e=>KC(P_(e))?e.escapedName:void 0):void 0),r=n&&function(e,t){const n=new Map;let r=0;for(const i of e)if(61603840&i.flags){const e=el(i,t);if(e){if(!XC(e))return;let t=!1;bD(e,e=>{const r=kb(dk(e)),o=n.get(r);o?o!==Ot&&(n.set(r,Ot),t=!0):n.set(r,i)}),t||r++}}return r>=10&&2*r>=e.length?n:void 0}(t,n);e.keyPropertyName=r?n:"",e.constituentMap=r}return e.keyPropertyName.length?e.keyPropertyName:void 0}}function RN(e,t){var n;const r=null==(n=e.constituentMap)?void 0:n.get(kb(dk(t)));return r!==Ot?r:void 0}function BN(e,t){const n=MN(e),r=n&&el(t,n);return r&&RN(e,r)}function JN(e,t){return EN(e,t)||IN(e,t)}function VN(e,t){if(e.arguments)for(const n of e.arguments)if(JN(t,n)||ON(n,t))return!0;return!(212!==e.expression.kind||!JN(t,e.expression.expression))}function WN(e){return e.id<=0&&(e.id=VB,VB++),e.id}function $N(e){if(256&gx(e))return!1;const t=Cp(e);return!!(t.callSignatures.length||t.constructSignatures.length||t.members.get("bind")&&NS(e,Xn))}function HN(e,t){return GN(e,t)&t}function KN(e,t){return 0!==HN(e,t)}function GN(e,t){467927040&e.flags&&(e=pf(e)||Ot);const n=e.flags;if(268435460&n)return H?16317953:16776705;if(134217856&n){const t=128&n&&""===e.value;return H?t?12123649:7929345:t?12582401:16776705}if(40&n)return H?16317698:16776450;if(256&n){const t=0===e.value;return H?t?12123394:7929090:t?12582146:16776450}if(64&n)return H?16317188:16775940;if(2048&n){const t=lw(e);return H?t?12122884:7928580:t?12581636:16775940}return 16&n?H?16316168:16774920:528&n?H?e===Ht||e===Qt?12121864:7927560:e===Ht||e===Qt?12580616:16774920:524288&n?t&(H?83427327:83886079)?16&gx(e)&&GS(e)?H?83427327:83886079:$N(e)?H?7880640:16728e3:H?7888800:16736160:0:16384&n?9830144:32768&n?26607360:65536&n?42917664:12288&n?H?7925520:16772880:67108864&n?H?7888800:16736160:131072&n?0:1048576&n?we(e.types,(e,n)=>e|GN(n,t),0):2097152&n?function(e,t){const n=gj(e,402784252);let r=0,i=134217727;for(const o of e.types)if(!(n&&524288&o.flags)){const e=GN(o,t);r|=e,i&=e}return 8256&r|134209471&i}(e,t):83886079}function XN(e,t){return GD(e,e=>KN(e,t))}function QN(e,t){const n=ZN(XN(H&&2&e.flags?In:e,t));if(H)switch(t){case 524288:return YN(n,65536,131072,33554432,zt);case 1048576:return YN(n,131072,65536,16777216,jt);case 2097152:case 4194304:return nF(n,e=>KN(e,262144)?function(e){return ur||(ur=Vy("NonNullable",524288,void 0)||xt),ur!==xt?fy(ur,[e]):Bb([e,Nn])}(e):e)}return n}function YN(e,t,n,r,i){const o=HN(e,50528256);if(!(o&t))return e;const a=Pb([Nn,i]);return nF(e,e=>KN(e,t)?Bb([e,o&r||!KN(e,n)?Nn:a]):e)}function ZN(e){return e===In?Ot:e}function eD(e,t){return t?Pb([ml(e),Qj(t)]):e}function tD(e,t){var n;const r=Hb(t);if(!sC(r))return Et;const i=cC(r);return el(e,i)||rD(null==(n=og(e,i))?void 0:n.type)||Et}function nD(e,t){return KD(e,WC)&&function(e,t){return el(e,""+t)||(KD(e,rw)?sw(e,t,j.noUncheckedIndexedAccess?jt:void 0):void 0)}(e,t)||rD(SR(65,e,jt,void 0))||Et}function rD(e){return e&&j.noUncheckedIndexedAccess?Pb([e,Rt]):e}function iD(e){return Rv(SR(65,e,jt,void 0)||Et)}function oD(e){return 227===e.parent.kind&&e.parent.left===e||251===e.parent.kind&&e.parent.initializer===e}function cD(e){return tD(lD(e.parent),e.name)}function lD(e){const{parent:t}=e;switch(t.kind){case 250:return Vt;case 251:return kR(t)||Et;case 227:return function(e){return 210===e.parent.kind&&oD(e.parent)||304===e.parent.kind&&oD(e.parent.parent)?eD(lD(e),e.right):Qj(e.right)}(t);case 221:return jt;case 210:return function(e,t){return nD(lD(e),e.elements.indexOf(t))}(t,e);case 231:return function(e){return iD(lD(e.parent))}(t);case 304:return cD(t);case 305:return function(e){return eD(cD(e),e.objectAssignmentInitializer)}(t)}return Et}function _D(e){return da(e).resolvedType||Qj(e)}function uD(e){return 261===e.kind?function(e){return e.initializer?_D(e.initializer):250===e.parent.parent.kind?Vt:251===e.parent.parent.kind&&kR(e.parent.parent)||Et}(e):function(e){const t=e.parent,n=uD(t.parent);return eD(207===t.kind?tD(n,e.propertyName||e.name):e.dotDotDotToken?iD(n):nD(n,t.elements.indexOf(e)),e.initializer)}(e)}function dD(e){switch(e.kind){case 218:return dD(e.expression);case 227:switch(e.operatorToken.kind){case 64:case 76:case 77:case 78:return dD(e.left);case 28:return dD(e.right)}}return e}function pD(e){const{parent:t}=e;return 218===t.kind||227===t.kind&&64===t.operatorToken.kind&&t.left===e||227===t.kind&&28===t.operatorToken.kind&&t.right===e?pD(t):e}function fD(e){return 297===e.kind?dk(Qj(e.expression)):_n}function mD(e){const t=da(e);if(!t.switchTypes){t.switchTypes=[];for(const n of e.caseBlock.clauses)t.switchTypes.push(fD(n))}return t.switchTypes}function gD(e){if($(e.caseBlock.clauses,e=>297===e.kind&&!ju(e.expression)))return;const t=[];for(const n of e.caseBlock.clauses){const e=297===n.kind?n.expression.text:void 0;t.push(e&&!T(t,e)?e:void 0)}return t}function yD(e,t){return!!(e===t||131072&e.flags||1048576&t.flags&&function(e,t){if(1048576&e.flags){for(const n of e.types)if(!Sb(t.types,n))return!1;return!0}return!!(1056&e.flags&&hu(e)===t)||Sb(t.types,e)}(e,t))}function bD(e,t){return 1048576&e.flags?d(e.types,t):t(e)}function UD(e,t){return 1048576&e.flags?$(e.types,t):t(e)}function KD(e,t){return 1048576&e.flags?v(e.types,t):t(e)}function GD(e,t){if(1048576&e.flags){const n=e.types,r=N(n,t);if(r===n)return e;const i=e.origin;let o;if(i&&1048576&i.flags){const e=i.types,a=N(e,e=>!!(1048576&e.flags)||t(e));if(e.length-a.length===n.length-r.length){if(1===a.length)return a[0];o=Eb(1048576,a)}}return Ob(r,16809984&e.objectFlags,void 0,void 0,o)}return 131072&e.flags||t(e)?e:_n}function QD(e,t){return GD(e,e=>e!==t)}function ZD(e){return 1048576&e.flags?e.types.length:1}function nF(e,t,n){if(131072&e.flags)return e;if(!(1048576&e.flags))return t(e);const r=e.origin,i=r&&1048576&r.flags?r.types:e.types;let o,a=!1;for(const e of i){const r=1048576&e.flags?nF(e,t,n):t(e);a||(a=e!==r),r&&(o?o.push(r):o=[r])}return a?o&&Pb(o,n?0:1):e}function oF(e,t,n,r){return 1048576&e.flags&&n?Pb(E(e.types,t),1,n,r):nF(e,t)}function aF(e,t){return GD(e,e=>0!==(e.flags&t))}function hF(e,t){return gj(e,134217804)&&gj(t,402655616)?nF(e,e=>4&e.flags?aF(t,402653316):vx(e)&&!gj(t,402653188)?aF(t,128):8&e.flags?aF(t,264):64&e.flags?aF(t,2112):e):e}function xF(e){return 0===e.flags}function SF(e){return 0===e.flags?e.type:e}function wF(e,t){return t?{flags:0,type:131072&e.flags?dn:e}:e}function FF(e){return ht[e.id]||(ht[e.id]=function(e){const t=Js(256);return t.elementType=e,t}(e))}function EF(e,t){const n=Nw(QC(Zj(t)));return yD(n,e.elementType)?e:FF(Pb([e.elementType,n]))}function LF(e){return 256&gx(e)?(t=e).finalArrayType||(t.finalArrayType=131072&(n=t.elementType).flags?lr:Rv(1048576&n.flags?Pb(n.types,2):n)):e;var t,n}function jF(e){return 256&gx(e)?e.elementType:_n}function BF(e){const t=pD(e),n=t.parent,r=dF(n)&&("length"===n.name.escapedText||214===n.parent.kind&&aD(n.name)&&Xh(n.name)),i=213===n.kind&&n.expression===t&&227===n.parent.kind&&64===n.parent.operatorToken.kind&&n.parent.left===n&&!Qg(n.parent)&&hj(Qj(n.argumentExpression),296);return r||i}function JF(e,t){if(8752&(e=$a(e)).flags)return P_(e);if(7&e.flags){if(262144&rx(e)){const t=e.links.syntheticOrigin;if(t&&JF(t))return P_(e)}const r=e.valueDeclaration;if(r){if((lE(n=r)||ND(n)||wD(n)||TD(n))&&(fv(n)||Em(n)&&Eu(n)&&n.initializer&&RT(n.initializer)&&gv(n.initializer)))return P_(e);if(lE(r)&&251===r.parent.parent.kind){const e=r.parent.parent,t=zF(e.expression,void 0);if(t)return SR(e.awaitModifier?15:13,t,jt,void 0)}t&&aT(t,Rp(r,_a._0_needs_an_explicit_type_annotation,bc(e)))}}var n}function zF(e,t){if(!(67108864&e.flags))switch(e.kind){case 80:return JF(Os(NN(e)),t);case 110:return function(e){const t=em(e,!1,!1);if(r_(t)){const e=Eg(t);if(e.thisParameter)return JF(e.thisParameter)}if(u_(t.parent)){const e=ks(t.parent);return Dv(t)?P_(e):Au(e).thisType}}(e);case 108:return MP(e);case 212:{const n=zF(e.expression,t);if(n){const r=e.name;let i;if(sD(r)){if(!n.symbol)return;i=pm(n,Vh(n.symbol,r.escapedText))}else i=pm(n,r.escapedText);return i&&JF(i,t)}return}case 218:return zF(e.expression,t)}}function UF(e){const t=da(e);let n=t.effectsSignature;if(void 0===n){let r;NF(e)?r=xj(wI(e.right)):245===e.parent.kind?r=zF(e.expression,void 0):108!==e.expression.kind&&(r=hl(e)?AI(bw(eM(e.expression),e.expression),e.expression):wI(e.expression));const i=mm(r&&Sf(r)||Ot,0),o=1!==i.length||i[0].typeParameters?$(i,$F)?aL(e):void 0:i[0];n=t.effectsSignature=o&&$F(o)?o:ci}return n===ci?void 0:n}function $F(e){return!!(Hg(e)||e.declaration&&131072&(Zg(e.declaration)||Ot).flags)}function GF(e){const t=eE(e,!1);return ti=e,ni=t,t}function XF(e){const t=ah(e,!0);return 97===t.kind||227===t.kind&&(56===t.operatorToken.kind&&(XF(t.left)||XF(t.right))||57===t.operatorToken.kind&&XF(t.left)&&XF(t.right))}function eE(e,t){for(;;){if(e===ti)return ni;const n=e.flags;if(4096&n){if(!t){const t=WN(e),n=oo[t];return void 0!==n?n:oo[t]=eE(e,!0)}t=!1}if(368&n)e=e.antecedent;else if(512&n){const t=UF(e.node);if(t){const n=Hg(t);if(n&&3===n.kind&&!n.type){const t=e.node.arguments[n.parameterIndex];if(t&&XF(t))return!1}if(131072&Gg(t).flags)return!1}e=e.antecedent}else{if(4&n)return $(e.antecedent,e=>eE(e,!1));if(8&n){const t=e.antecedent;if(void 0===t||0===t.length)return!1;e=t[0]}else{if(!(128&n)){if(1024&n){ti=void 0;const t=e.node.target,n=t.antecedent;t.antecedent=e.node.antecedents;const r=eE(e.antecedent,!1);return t.antecedent=n,r}return!(1&n)}{const t=e.node;if(t.clauseStart===t.clauseEnd&&rj(t.switchStatement))return!1;e=e.antecedent}}}}}function tE(e,t){for(;;){const n=e.flags;if(4096&n){if(!t){const t=WN(e),n=ao[t];return void 0!==n?n:ao[t]=tE(e,!0)}t=!1}if(496&n)e=e.antecedent;else if(512&n){if(108===e.node.expression.kind)return!0;e=e.antecedent}else{if(4&n)return v(e.antecedent,e=>tE(e,!1));if(!(8&n)){if(1024&n){const t=e.node.target,n=t.antecedent;t.antecedent=e.node.antecedents;const r=tE(e.antecedent,!1);return t.antecedent=n,r}return!!(1&n)}e=e.antecedent[0]}}}function nE(e){switch(e.kind){case 110:return!0;case 80:if(!uv(e)){const t=NN(e);return TE(t)||CE(t)&&!oE(t)||!!t.valueDeclaration&&vF(t.valueDeclaration)}break;case 212:case 213:return nE(e.expression)&&_j(da(e).resolvedSymbol||xt);case 207:case 208:const t=Yh(e.parent);return TD(t)||MT(t)?!sE(t):lE(t)&&Az(t)}return!1}function rE(e,t,n=t,r,i=(t=>null==(t=tt(e,Og))?void 0:t.flowNode)()){let o,a=!1,s=0;if(wi)return Et;if(!i)return t;Ni++;const c=Ci,l=SF(d(i));Ci=c;const _=256&gx(l)&&BF(e)?lr:LF(l);return _===fn||e.parent&&236===e.parent.kind&&!(131072&_.flags)&&131072&XN(_,2097152).flags?t:_;function u(){return a?o:(a=!0,o=FN(e,t,n,r))}function d(i){var o;if(2e3===s)return null==(o=Hn)||o.instant(Hn.Phase.CheckTypes,"getTypeAtFlowNode_DepthLimit",{flowId:i.id}),wi=!0,function(e){const t=uc(e,l_),n=vd(e),r=Gp(n,t.statements.pos);ho.add(Gx(n,r.start,r.length,_a.The_containing_function_or_module_body_is_too_large_for_control_flow_analysis))}(e),Et;let a;for(s++;;){const o=i.flags;if(4096&o){for(let e=c;efunction(e,t){if(!(1048576&e.flags))return FS(e,t);for(const n of e.types)if(FS(n,t))return!0;return!1}(t,e)),r=512&t.flags&&pk(t)?nF(n,uk):n;return FS(t,r)?r:e}(e,t))}(e,p(n)):e}if(IN(e,r)){if(!GF(n))return fn;if(lE(r)&&(Em(r)||Az(r))){const e=Wm(r);if(e&&(219===e.kind||220===e.kind))return d(n.antecedent)}return t}if(lE(r)&&250===r.parent.parent.kind&&(EN(e,r.parent.parent.expression)||ON(r.parent.parent.expression,e)))return DI(LF(SF(d(n.antecedent))))}function m(e,t){const n=ah(t,!0);if(97===n.kind)return fn;if(227===n.kind){if(56===n.operatorToken.kind)return m(m(e,n.left),n.right);if(57===n.operatorToken.kind)return Pb([m(e,n.left),m(e,n.right)])}return Q(e,n,!0)}function g(e){const t=UF(e.node);if(t){const n=Hg(t);if(n&&(2===n.kind||3===n.kind)){const t=d(e.antecedent),r=LF(SF(t)),i=n.type?X(r,n,e.node,!0):3===n.kind&&n.parameterIndex>=0&&n.parameterIndex298===e.kind);if(n===r||o>=n&&oHN(e,t)===t)}return Pb(E(i.slice(n,r),t=>t?U(e,t):_n))}(i,t.node);else if(112===n.kind)i=function(e,{switchStatement:t,clauseStart:n,clauseEnd:r}){const i=k(t.caseBlock.clauses,e=>298===e.kind),o=n===r||i>=n&&i297===t.kind?Q(e,t.expression,!0):_n))}(i,t.node);else{H&&(ON(n,e)?i=z(i,t.node,e=>!(163840&e.flags)):222===n.kind&&ON(n.expression,e)&&(i=z(i,t.node,e=>!(131072&e.flags||128&e.flags&&"undefined"===e.value))));const r=D(n,i);r&&(i=function(e,t,n){if(n.clauseStartRN(e,t)||Ot));if(t!==Ot)return t}return F(e,t,e=>q(e,n))}(i,r,t.node))}return wF(i,xF(r))}function S(e){const r=[];let i,o=!1,a=!1;for(const s of e.antecedent){if(!i&&128&s.flags&&s.node.clauseStart===s.node.clauseEnd){i=s;continue}const e=d(s),c=SF(e);if(c===t&&t===n)return c;ce(r,c),yD(c,n)||(o=!0),xF(e)&&(a=!0)}if(i){const e=d(i),s=SF(e);if(!(131072&s.flags||T(r,s)||rj(i.node.switchStatement))){if(s===t&&t===n)return s;r.push(s),yD(s,n)||(o=!0),xF(e)&&(a=!0)}}return wF(N(r,o?2:1),a)}function w(e){const r=WN(e),i=Zi[r]||(Zi[r]=new Map),o=u();if(!o)return t;const a=i.get(o);if(a)return a;for(let t=Si;t{const t=rl(e,r)||Ot;return!(131072&t.flags)&&!(131072&s.flags)&&AS(s,t)})}function P(e,t,n,r,i){if((37===n||38===n)&&1048576&e.flags){const o=MN(e);if(o&&o===PN(t)){const t=RN(e,Qj(r));if(t)return n===(i?37:38)?t:KC(el(t,o)||Ot)?QD(e,t):e}}return F(e,t,e=>R(e,n,r,i))}function I(t,n,r){if(EN(e,n))return QN(t,r?4194304:8388608);H&&r&&ON(n,e)&&(t=QN(t,2097152));const i=D(n,t);return i?F(t,i,e=>XN(e,r?4194304:8388608)):t}function O(e,t,n){const r=pm(e,t);return r?!!(16777216&r.flags||48&rx(r))||n:!!og(e,t)||!n}function L(e,t,n,r,i){return Q(e,t,i=i!==(112===n.kind)!=(38!==r&&36!==r))}function j(t,n,r){switch(n.operatorToken.kind){case 64:case 76:case 77:case 78:return I(Q(t,n.right,r),n.left,r);case 35:case 36:case 37:case 38:const i=n.operatorToken.kind,o=dD(n.left),a=dD(n.right);if(222===o.kind&&ju(a))return B(t,o,i,a,r);if(222===a.kind&&ju(o))return B(t,a,i,o,r);if(EN(e,o))return R(t,i,a,r);if(EN(e,a))return R(t,i,o,r);H&&(ON(o,e)?t=M(t,i,a,r):ON(a,e)&&(t=M(t,i,o,r)));const s=D(o,t);if(s)return P(t,s,i,a,r);const c=D(a,t);if(c)return P(t,c,i,o,r);if(W(o))return $(t,i,a,r);if(W(a))return $(t,i,o,r);if(a_(a)&&!Sx(o))return L(t,o,a,i,r);if(a_(o)&&!Sx(a))return L(t,a,o,i,r);break;case 104:return function(t,n,r){const i=dD(n.left);if(!EN(e,i))return r&&H&&ON(i,e)?QN(t,2097152):t;const o=Qj(n.right);if(!ES(o,Gn))return t;const a=UF(n),s=a&&Hg(a);if(s&&1===s.kind&&0===s.parameterIndex)return G(t,s.type,r,!0);if(!ES(o,Xn))return t;const c=nF(o,K);return(!il(t)||c!==Gn&&c!==Xn)&&(r||524288&c.flags&&!XS(c))?G(t,c,r,!0):t}(t,n,r);case 103:if(sD(n.left))return function(t,n,r){const i=dD(n.right);if(!EN(e,i))return t;un.assertNode(n.left,sD);const o=RI(n.left);if(void 0===o)return t;const a=o.parent;return G(t,Fv(un.checkDefined(o.valueDeclaration,"should always have a declaration"))?P_(a):Au(a),r,!0)}(t,n,r);const l=dD(n.right);if(Sw(t)&&Sx(e)&&EN(e.expression,l)){const i=Qj(n.left);if(sC(i)&&PN(e)===cC(i))return XN(t,r?524288:65536)}if(EN(e,l)){const e=Qj(n.left);if(sC(e))return function(e,t,n){const r=cC(t);if(UD(e,e=>O(e,r,!0)))return GD(e,e=>O(e,r,n));if(n){const n=($r||($r=Uy("Record",2,!0)||xt),$r===xt?void 0:$r);if(n)return Bb([e,fy(n,[t,Ot])])}return e}(t,e,r)}break;case 28:return Q(t,n.right,r);case 56:return r?Q(Q(t,n.left,!0),n.right,!0):Pb([Q(t,n.left,!1),Q(t,n.right,!1)]);case 57:return r?Pb([Q(t,n.left,!0),Q(t,n.right,!0)]):Q(Q(t,n.left,!1),n.right,!1)}return t}function M(e,t,n,r){const i=35===t||37===t,o=35===t||36===t?98304:32768,a=Qj(n);return i!==r&&KD(a,e=>!!(e.flags&o))||i===r&&KD(a,e=>!(e.flags&(3|o)))?QN(e,2097152):e}function R(e,t,n,r){if(1&e.flags)return e;36!==t&&38!==t||(r=!r);const i=Qj(n),o=35===t||36===t;if(98304&i.flags)return H?QN(e,o?r?262144:2097152:65536&i.flags?r?131072:1048576:r?65536:524288):e;if(r){if(!o&&(2&e.flags||UD(e,XS))){if(469893116&i.flags||XS(i))return i;if(524288&i.flags)return mn}return hF(GD(e,e=>{return AS(e,i)||o&&(t=i,!!(524&e.flags)&&!!(28&t.flags));var t}),i)}return KC(i)?GD(e,e=>!(GC(e)&&AS(e,i))):e}function B(t,n,r,i,o){36!==r&&38!==r||(o=!o);const a=dD(n.expression);if(!EN(e,a)){H&&ON(a,e)&&o===("undefined"!==i.text)&&(t=QN(t,2097152));const n=D(a,t);return n?F(t,n,e=>J(e,i,o)):t}return J(t,i,o)}function J(e,t,n){return n?U(e,t.text):QN(e,$B.get(t.text)||32768)}function z(e,{switchStatement:t,clauseStart:n,clauseEnd:r},i){return n!==r&&v(mD(t).slice(n,r),i)?XN(e,2097152):e}function q(e,{switchStatement:t,clauseStart:n,clauseEnd:r}){const i=mD(t);if(!i.length)return e;const o=i.slice(n,r),a=n===r||T(o,_n);if(2&e.flags&&!a){let t;for(let n=0;nAS(s,e)),s);if(!a)return c;const l=GD(e,e=>!(GC(e)&&T(i,32768&e.flags?jt:dk(function(e){return 2097152&e.flags&&b(e.types,KC)||e}(e)))));return 131072&c.flags?l:Pb([c,l])}function U(e,t){switch(t){case"string":return V(e,Vt,1);case"number":return V(e,Wt,2);case"bigint":return V(e,$t,4);case"boolean":return V(e,sn,8);case"symbol":return V(e,cn,16);case"object":return 1&e.flags?e:Pb([V(e,mn,32),V(e,zt,131072)]);case"function":return 1&e.flags?e:V(e,Xn,64);case"undefined":return V(e,jt,65536)}return V(e,mn,128)}function V(e,t,n){return nF(e,e=>iT(e,t,Co)?KN(e,n)?e:_n:NS(t,e)?t:KN(e,n)?Bb([e,t]):_n)}function W(t){return(dF(t)&&"constructor"===gc(t.name)||pF(t)&&ju(t.argumentExpression)&&"constructor"===t.argumentExpression.text)&&EN(e,t.expression)}function $(e,t,n,r){if(r?35!==t&&37!==t:36!==t&&38!==t)return e;const i=Qj(n);if(!JJ(i)&&!tu(i))return e;const o=pm(i,"prototype");if(!o)return e;const a=P_(o),s=il(a)?void 0:a;return s&&s!==Gn&&s!==Xn?il(e)?s:GD(e,e=>{return n=s,524288&(t=e).flags&&1&gx(t)||524288&n.flags&&1&gx(n)?t.symbol===n.symbol:NS(t,n);var t,n}):e}function K(e){const t=el(e,"prototype");if(t&&!il(t))return t;const n=mm(e,1);return n.length?Pb(E(n,e=>Gg(wh(e)))):Nn}function G(e,t,n,r){const i=1048576&e.flags?`N${kb(e)},${kb(t)},${(n?1:0)|(r?2:0)}`:void 0;return Oo(i)??Lo(i,function(e,t,n,r){if(!n){if(e===t)return _n;if(r)return GD(e,e=>!ES(e,t));const n=G(e=2&e.flags?In:e,t,!0,!1);return ZN(GD(e,e=>!yD(e,n)))}if(3&e.flags)return t;if(e===t)return t;const i=r?ES:NS,o=1048576&e.flags?MN(e):void 0,a=nF(t,t=>{const n=o&&el(t,o),a=nF(n&&RN(e,n)||e,r?e=>ES(e,t)?e:ES(t,e)?t:_n:e=>DS(e,t)?e:DS(t,e)?t:NS(e,t)?e:NS(t,e)?t:_n);return 131072&a.flags?nF(e,e=>gj(e,465829888)&&i(t,pf(e)||Ot)?Bb([e,t]):_n):a});return 131072&a.flags?NS(t,e)?t:FS(e,t)?e:FS(t,e)?t:Bb([e,t]):a}(e,t,n,r))}function X(t,n,r,i){if(n.type&&(!il(t)||n.type!==Gn&&n.type!==Xn)){const o=function(e,t){if(1===e.kind||3===e.kind)return t.arguments[e.parameterIndex];const n=ah(t.expression);return Sx(n)?ah(n.expression):void 0}(n,r);if(o){if(EN(e,o))return G(t,n.type,i,!1);H&&ON(o,e)&&(i&&!KN(n.type,65536)||!i&&KD(n.type,NI))&&(t=QN(t,2097152));const r=D(o,t);if(r)return F(t,r,e=>G(e,n.type,i,!1))}}return t}function Q(t,n,r){if(vl(n)||NF(n.parent)&&(61===n.parent.operatorToken.kind||78===n.parent.operatorToken.kind)&&n.parent.left===n)return function(t,n,r){if(EN(e,n))return QN(t,r?2097152:262144);const i=D(n,t);return i?F(t,i,e=>XN(e,r?2097152:262144)):t}(t,n,r);switch(n.kind){case 80:if(!EN(e,n)&&C<5){const i=NN(n);if(TE(i)){const n=i.valueDeclaration;if(n&&lE(n)&&!n.type&&n.initializer&&nE(e)){C++;const e=Q(t,n.initializer,r);return C--,e}}}case 110:case 108:case 212:case 213:return I(t,n,r);case 214:return function(t,n,r){if(VN(n,e)){const e=r||!gl(n)?UF(n):void 0,i=e&&Hg(e);if(i&&(0===i.kind||1===i.kind))return X(t,i,n,r)}if(Sw(t)&&Sx(e)&&dF(n.expression)){const i=n.expression;if(EN(e.expression,dD(i.expression))&&aD(i.name)&&"hasOwnProperty"===i.name.escapedText&&1===n.arguments.length){const i=n.arguments[0];if(ju(i)&&PN(e)===fc(i.text))return XN(t,r?524288:65536)}}return t}(t,n,r);case 218:case 236:case 239:return Q(t,n.expression,r);case 227:return j(t,n,r);case 225:if(54===n.operator)return Q(t,n.operand,!r)}return t}}function iE(e){return uc(e.parent,e=>r_(e)&&!om(e)||269===e.kind||308===e.kind||173===e.kind)}function oE(e){return!aE(e,void 0)}function aE(e,t){const n=uc(e.valueDeclaration,yE);if(!n)return!1;const r=da(n);return 131072&r.flags||(r.flags|=131072,uc(n.parent,e=>yE(e)&&!!(131072&da(e).flags))||SE(n)),!e.lastAssignmentPos||t&&Math.abs(e.lastAssignmentPos)233!==e.kind&&cE(e.name))}function yE(e){return o_(e)||sP(e)}function SE(e){switch(e.kind){case 80:const t=Xg(e);if(0!==t){const n=NN(e),r=1===t||void 0!==n.lastAssignmentPos&&n.lastAssignmentPos<0;if(CE(n)){if(void 0===n.lastAssignmentPos||Math.abs(n.lastAssignmentPos)!==Number.MAX_VALUE){const t=uc(e,yE),r=uc(n.valueDeclaration,yE);n.lastAssignmentPos=t===r?function(e,t){let n=e.pos;for(;e&&e.pos>t.pos;){switch(e.kind){case 244:case 245:case 246:case 247:case 248:case 249:case 250:case 251:case 255:case 256:case 259:case 264:n=e.end}e=e.parent}return n}(e,n.valueDeclaration):Number.MAX_VALUE}r&&n.lastAssignmentPos>0&&(n.lastAssignmentPos*=-1)}}return;case 282:const n=e.parent.parent,r=e.propertyName||e.name;if(!e.isTypeOnly&&!n.isTypeOnly&&!n.moduleSpecifier&&11!==r.kind){const e=ts(r,111551,!0,!0);if(e&&CE(e)){const t=void 0!==e.lastAssignmentPos&&e.lastAssignmentPos<0?-1:1;e.lastAssignmentPos=t*Number.MAX_VALUE}}return;case 265:case 266:case 267:return}b_(e)||XI(e,SE)}function TE(e){return 3&e.flags&&!!(6&hI(e))}function CE(e){const t=e.valueDeclaration&&Yh(e.valueDeclaration);return!!t&&(TD(t)||lE(t)&&(nP(t.parent)||NE(t)))}function NE(e){return!!(1&e.parent.flags)&&!(32&ic(e)||244===e.parent.parent.kind&&Yp(e.parent.parent.parent))}function DE(e){return 2097152&e.flags?$(e.types,DE):!!(465829888&e.flags&&1146880&ff(e).flags)}function EE(e){return 2097152&e.flags?$(e.types,EE):!(!(465829888&e.flags)||gj(ff(e),98304))}function jE(e,t,n){Sy(e)&&(e=e.baseType);const r=!(n&&2&n)&&UD(e,DE)&&(function(e,t){const n=t.parent;return 212===n.kind||167===n.kind||214===n.kind&&n.expression===t||215===n.kind&&n.expression===t||213===n.kind&&n.expression===t&&!(UD(e,EE)&&Cx(Qj(n.argumentExpression)))}(e,t)||function(e,t){const n=(aD(e)||dF(e)||pF(e))&&!((UE(e.parent)||qE(e.parent))&&e.parent.tagName===e)&&xA(e,t&&32&t?8:void 0);return n&&!xx(n)}(t,n));return r?nF(e,ff):e}function ME(e){return!!uc(e,e=>{const t=e.parent;return void 0===t?"quit":AE(t)?t.expression===e&&ab(e):!!LE(t)&&(t.name===e||t.propertyName===e)})}function RE(e,t,n,r){if(Re&&(!(33554432&e.flags)||wD(e)||ND(e)))switch(t){case 1:return BE(e);case 2:return VE(e,n,r);case 3:return HE(e);case 4:return QE(e);case 5:return ZE(e);case 6:return eP(e);case 7:return cP(e);case 8:return dP(e);case 0:if(aD(e)&&(bm(e)||iP(e.parent)||bE(e.parent)&&e.parent.moduleReference===e)&&NP(e)){if(I_(e.parent)&&(dF(e.parent)?e.parent.expression:e.parent.left)!==e)return;return void BE(e)}if(I_(e)){let t=e;for(;I_(t);){if(wf(t))return;t=t.parent}return VE(e)}if(AE(e))return HE(e);if(bu(e)||$E(e))return QE(e);if(bE(e))return Nm(e)||kB(e)?eP(e):void 0;if(LE(e))return cP(e);if((o_(e)||DD(e))&&ZE(e),!j.emitDecoratorMetadata)return;if(!(SI(e)&&Lv(e)&&e.modifiers&&dm(J,e,e.parent,e.parent.parent)))return;return dP(e);default:un.assertNever(t,`Unhandled reference hint: ${t}`)}}function BE(e){const t=NN(e);t&&t!==Le&&t!==xt&&!uv(e)&&pP(t,e)}function VE(e,t,n){const r=dF(e)?e.expression:e.left;if(lv(r)||!aD(r))return;const i=NN(r);if(!i||i===xt)return;if(kk(j)||Fk(j)&&ME(e))return void pP(i,e);const o=n||Ij(r);if(il(o)||o===dn)return void pP(i,e);let a=t;if(!a&&!n){const t=dF(e)?e.name:e.right,n=sD(t)&&MI(t.escapedText,t),r=Sf(0!==Xg(e)||jI(e)?jw(o):o);a=sD(t)?n&&BI(r,n)||void 0:pm(r,t.escapedText)}a&&(EJ(a)||8&a.flags&&307===e.parent.kind)||pP(i,e)}function HE(e){if(aD(e.expression)){const t=e.expression,n=Os(ts(t,-1,!0,!0,e));n&&pP(n,t)}}function QE(e){if(!nI(e)){const t=ho&&2===j.jsx?_a.This_JSX_tag_requires_0_to_be_in_scope_but_it_could_not_be_found:void 0,n=jo(e),r=bu(e)?e.tagName:e,i=1!==j.jsx&&3!==j.jsx;let o;if($E(e)&&"null"===n||(o=Ue(r,n,i?111551:111167,t,!0)),o&&(o.isReferenced=-1,Re&&2097152&o.flags&&!Ya(o)&&fP(o)),$E(e)){const n=UJ(vd(e));if(n){const e=sb(n).escapedText;Ue(r,e,i?111551:111167,t,!0)}}}}function ZE(e){if(M<2&&2&Oh(e)){gP((t=gv(e))&&_m(t),!1)}var t}function eP(e){Nv(e,32)&&mP(e)}function cP(e){if(!e.parent.parent.moduleSpecifier&&!e.isTypeOnly&&!e.parent.parent.isTypeOnly){const t=e.propertyName||e.name;if(11===t.kind)return;const n=Ue(t,t.escapedText,2998271,void 0,!0);if(n&&(n===De||n===Fe||n.declarations&&Yp(Zc(n.declarations[0]))));else{const r=n&&(2097152&n.flags?Ha(n):n);(!r||111551&Ka(r))&&(mP(e),BE(t))}return}}function dP(e){if(j.emitDecoratorMetadata){const t=b(e.modifiers,CD);if(!t)return;switch(HJ(t,16),e.kind){case 264:const t=iv(e);if(t)for(const e of t.parameters)vP(JM(e));break;case 178:case 179:const n=178===e.kind?179:178,r=Hu(ks(e),n);vP(h_(e)||r&&h_(r));break;case 175:for(const t of e.parameters)vP(JM(t));vP(gv(e));break;case 173:vP(fv(e));break;case 170:vP(JM(e));const i=e.parent;for(const e of i.parameters)vP(JM(e));vP(gv(i))}}}function pP(e,t){if(Re&&Wa(e,111551)&&!_v(t)){const n=Ha(e);1160127&Ka(e,!0)&&(kk(j)||Fk(j)&&ME(t)||!EJ(Os(n)))&&fP(e)}}function fP(e){un.assert(Re);const t=ua(e);if(!t.referenced){t.referenced=!0;const n=Ca(e);if(!n)return un.fail();Nm(n)&&111551&Ka($a(e))&&BE(sb(n.moduleReference))}}function mP(e){const t=ks(e),n=Ha(t);n&&(n===xt||111551&Ka(t,!0)&&!EJ(n))&&fP(t)}function gP(e,t){if(!e)return;const n=sb(e),r=2097152|(80===e.kind?788968:1920),i=Ue(n,n.escapedText,r,void 0,!0);if(i&&2097152&i.flags)if(Re&&Ls(i)&&!EJ(Ha(i))&&!Ya(i))fP(i);else if(t&&kk(j)&&vk(j)>=5&&!Ls(i)&&!$(i.declarations,zl)){const t=zo(e,_a.A_type_referenced_in_a_decorated_signature_must_be_imported_with_import_type_or_a_namespace_import_when_isolatedModules_and_emitDecoratorMetadata_are_enabled),r=b(i.declarations||l,wa);r&&aT(t,Rp(r,_a._0_was_imported_here,gc(n)))}}function vP(e){const t=RM(e);t&&e_(t)&&gP(t,!0)}function kP(e,t){if(uv(e))return;if(t===Le){if(VI(e,!0))return void zo(e,_a.arguments_cannot_be_referenced_in_property_initializers_or_class_static_initialization_blocks);let t=Kf(e);if(t)for(M<2&&(220===t.kind?zo(e,_a.The_arguments_object_cannot_be_referenced_in_an_arrow_function_in_ES5_Consider_using_a_standard_function_expression):Nv(t,1024)&&zo(e,_a.The_arguments_object_cannot_be_referenced_in_an_async_function_or_method_in_ES5_Consider_using_a_standard_function_or_method)),da(t).flags|=512;t&&bF(t);)t=Kf(t),t&&(da(t).flags|=512);return}const n=Os(t),r=CB(n,e);Ho(r)&&dx(e,r)&&r.declarations&&Go(e,r.declarations,e.escapedText);const i=n.valueDeclaration;if(i&&32&n.flags&&u_(i)&&i.name!==e){let t=em(e,!1,!1);for(;308!==t.kind&&t.parent!==i;)t=em(t,!1,!1);308!==t.kind&&(da(i).flags|=262144,da(t).flags|=262144,da(e).flags|=536870912)}!function(e,t){if(M>=2||!(34&t.flags)||!t.valueDeclaration||sP(t.valueDeclaration)||300===t.valueDeclaration.parent.kind)return;const n=Ep(t.valueDeclaration),r=function(e,t){return!!uc(e,e=>e===t?"quit":r_(e)||e.parent&&ND(e.parent)&&!Fv(e.parent)&&e.parent.initializer===e)}(e,n),i=DP(n);if(i){if(r){let r=!0;if(QF(n)){const i=Th(t.valueDeclaration,262);if(i&&i.parent===n){const i=function(e,t){return uc(e,e=>e===t?"quit":e===t.initializer||e===t.condition||e===t.incrementor||e===t.statement)}(e.parent,n);if(i){const e=da(i);e.flags|=8192,ce(e.capturedBlockScopeBindings||(e.capturedBlockScopeBindings=[]),t),i===n.initializer&&(r=!1)}}}r&&(da(i).flags|=4096)}if(QF(n)){const r=Th(t.valueDeclaration,262);r&&r.parent===n&&function(e,t){let n=e;for(;218===n.parent.kind;)n=n.parent;let r=!1;if(Qg(n))r=!0;else if(225===n.parent.kind||226===n.parent.kind){const e=n.parent;r=46===e.operator||47===e.operator}return!!r&&!!uc(n,e=>e===t?"quit":e===t.statement)}(e,n)&&(da(t.valueDeclaration).flags|=65536)}da(t.valueDeclaration).flags|=32768}r&&(da(t.valueDeclaration).flags|=16384)}(e,t)}function SP(e,t){if(uv(e))return OP(e);const n=NN(e);if(n===xt)return Et;if(kP(e,n),n===Le)return VI(e)?Et:P_(n);NP(e)&&RE(e,1);const r=Os(n);let i=r.valueDeclaration;const o=i;if(i&&209===i.kind&&T(Ii,i.parent)&&uc(e,e=>e===i.parent))return At;let a=function(e,t){var n;const r=P_(e),i=e.valueDeclaration;if(i){if(lF(i)&&!i.initializer&&!i.dotDotDotToken&&i.parent.elements.length>=2){const e=i.parent.parent,n=Yh(e);if(261===n.kind&&6&Pz(n)||170===n.kind){const r=da(e);if(!(4194304&r.flags)){r.flags|=4194304;const o=cl(e,0),a=o&&nF(o,ff);if(r.flags&=-4194305,a&&1048576&a.flags&&(170!==n.kind||!sE(n))){const e=rE(i.parent,a,a,void 0,t.flowNode);return 131072&e.flags?_n:Dl(i,e,!0)}}}}if(TD(i)&&!i.type&&!i.initializer&&!i.dotDotDotToken){const e=i.parent;if(e.parameters.length>=2&&xS(e)){const r=jA(e);if(r&&1===r.parameters.length&&aJ(r)){const o=Tf(fS(P_(r.parameters[0]),null==(n=PA(e))?void 0:n.nonFixingMapper));if(1048576&o.flags&&KD(o,rw)&&!$(e.parameters,sE))return Ax(rE(e,o,o,void 0,t.flowNode),mk(e.parameters.indexOf(i)-(sv(e)?1:0)))}}}}return r}(r,e);const s=Xg(e);if(s){if(!(3&r.flags||Em(e)&&512&r.flags))return zo(e,384&r.flags?_a.Cannot_assign_to_0_because_it_is_an_enum:32&r.flags?_a.Cannot_assign_to_0_because_it_is_a_class:1536&r.flags?_a.Cannot_assign_to_0_because_it_is_a_namespace:16&r.flags?_a.Cannot_assign_to_0_because_it_is_a_function:2097152&r.flags?_a.Cannot_assign_to_0_because_it_is_an_import:_a.Cannot_assign_to_0_because_it_is_not_a_variable,bc(n)),Et;if(_j(r))return 3&r.flags?zo(e,_a.Cannot_assign_to_0_because_it_is_a_constant,bc(n)):zo(e,_a.Cannot_assign_to_0_because_it_is_a_read_only_property,bc(n)),Et}const c=2097152&r.flags;if(3&r.flags){if(1===s)return Yg(e)?QC(a):a}else{if(!c)return a;i=Ca(n)}if(!i)return a;a=jE(a,e,t);const l=170===Yh(i).kind,_=iE(i);let u=iE(e);const d=u!==_,p=e.parent&&e.parent.parent&&oP(e.parent)&&oD(e.parent.parent),f=134217728&n.flags,m=a===Nt||a===lr,g=m&&236===e.parent.kind;for(;u!==_&&(219===u.kind||220===u.kind||zf(u))&&(TE(r)&&a!==lr||CE(r)&&aE(r,e));)u=iE(u);const h=o&&lE(o)&&!o.initializer&&!o.exclamationToken&&NE(o)&&!function(e){return(void 0!==e.lastAssignmentPos||oE(e)&&void 0!==e.lastAssignmentPos)&&e.lastAssignmentPos<0}(n),y=l||c||d&&!h||p||f||function(e,t){if(lF(t)){const n=uc(e,lF);return n&&Yh(n)===Yh(t)}}(e,i)||a!==Nt&&a!==lr&&(!H||!!(16387&a.flags)||_v(e)||DN(e)||282===e.parent.kind)||236===e.parent.kind||261===i.kind&&i.exclamationToken||33554432&i.flags,v=g?jt:y?l?function(e,t){const n=H&&170===t.kind&&t.initializer&&KN(e,16777216)&&!function(e){const t=da(e);if(void 0===t.parameterInitializerContainsUndefined){if(!$c(e,8))return D_(e.symbol),!0;const n=!!KN(Lj(e,0),16777216);if(!Yc())return D_(e.symbol),!0;t.parameterInitializerContainsUndefined??(t.parameterInitializerContainsUndefined=n)}return t.parameterInitializerContainsUndefined}(t);return n?XN(e,524288):e}(a,i):a:m?jt:pw(a),b=g?fw(rE(e,a,v,u)):rE(e,a,v,u);if(BF(e)||a!==Nt&&a!==lr){if(!y&&!QS(a)&&QS(b))return zo(e,_a.Variable_0_is_used_before_being_assigned,bc(n)),a}else if(b===Nt||b===lr)return ne&&(zo(Cc(i),_a.Variable_0_implicitly_has_type_1_in_some_locations_where_its_type_cannot_be_determined,bc(n),Tc(b)),zo(e,_a.Variable_0_implicitly_has_an_1_type,bc(n),Tc(b))),dR(b);return s?QC(b):b}function NP(e){var t;const n=e.parent;if(n){if(dF(n)&&n.expression===e)return!1;if(LE(n)&&n.isTypeOnly)return!1;const r=null==(t=n.parent)?void 0:t.parent;if(r&&IE(r)&&r.isTypeOnly)return!1}return!0}function DP(e){return uc(e,e=>!e||Zh(e)?"quit":$_(e,!1))}function EP(e,t){da(e).flags|=2,173===t.kind||177===t.kind?da(t.parent).flags|=4:da(t).flags|=4}function PP(e){return lf(e)?e:r_(e)?void 0:XI(e,PP)}function AP(e){return cu(Au(ks(e)))===Ut}function IP(e,t,n){const r=t.parent;vh(r)&&!AP(r)&&Og(e)&&e.flowNode&&!tE(e.flowNode,!1)&&zo(e,n)}function OP(e){const t=_v(e);let n=em(e,!0,!0),r=!1,i=!1;for(177===n.kind&&IP(e,n,_a.super_must_be_called_before_accessing_this_in_the_constructor_of_a_derived_class);220===n.kind&&(n=em(n,!1,!i),r=!0),168===n.kind;)n=em(n,!r,!1),i=!0;if(function(e,t){ND(t)&&Fv(t)&&J&&t.initializer&&As(t.initializer,e.pos)&&Lv(t.parent)&&zo(e,_a.Cannot_use_this_in_a_static_property_initializer_of_a_decorated_class)}(e,n),i)zo(e,_a.this_cannot_be_referenced_in_a_computed_property_name);else switch(n.kind){case 268:zo(e,_a.this_cannot_be_referenced_in_a_module_or_namespace_body);break;case 267:zo(e,_a.this_cannot_be_referenced_in_current_location)}!t&&r&&M<2&&EP(e,n);const o=jP(e,!0,n);if(oe){const t=P_(Fe);if(o===t&&r)zo(e,_a.The_containing_arrow_function_captures_the_global_value_of_this);else if(!o){const r=zo(e,_a.this_implicitly_has_type_any_because_it_does_not_have_a_type_annotation);if(!sP(n)){const e=jP(n);e&&e!==t&&aT(r,Rp(n,_a.An_outer_value_of_this_is_shadowed_by_this_container))}}}return o||wt}function jP(e,t=!0,n=em(e,!1,!1)){const r=Em(e);if(r_(n)&&(!YP(e)||sv(n))){let t=Rg(Eg(n))||r&&function(e){const t=Qc(e);if(t&&t.typeExpression)return Pk(t.typeExpression);const n=Pg(e);return n?Rg(n):void 0}(n);if(!t){const e=function(e){return 219===e.kind&&NF(e.parent)&&3===tg(e.parent)?e.parent.left.expression.expression:175===e.kind&&211===e.parent.kind&&NF(e.parent.parent)&&6===tg(e.parent.parent)?e.parent.parent.left.expression:219===e.kind&&304===e.parent.kind&&211===e.parent.parent.kind&&NF(e.parent.parent.parent)&&6===tg(e.parent.parent.parent)?e.parent.parent.parent.left.expression:219===e.kind&&rP(e.parent)&&aD(e.parent.name)&&("value"===e.parent.name.escapedText||"get"===e.parent.name.escapedText||"set"===e.parent.name.escapedText)&&uF(e.parent.parent)&&fF(e.parent.parent.parent)&&e.parent.parent.parent.arguments[2]===e.parent.parent&&9===tg(e.parent.parent.parent)?e.parent.parent.parent.arguments[0].expression:FD(e)&&aD(e.name)&&("value"===e.name.escapedText||"get"===e.name.escapedText||"set"===e.name.escapedText)&&uF(e.parent)&&fF(e.parent.parent)&&e.parent.parent.arguments[2]===e.parent&&9===tg(e.parent.parent)?e.parent.parent.arguments[0].expression:void 0}(n);if(r&&e){const n=eM(e).symbol;n&&n.members&&16&n.flags&&(t=Au(n).thisType)}else sL(n)&&(t=Au(xs(n.symbol)).thisType);t||(t=HP(n))}if(t)return rE(e,t)}if(u_(n.parent)){const t=ks(n.parent);return rE(e,Dv(n)?P_(t):Au(t).thisType)}if(sP(n)){if(n.commonJsModuleIndicator){const e=ks(n);return e&&P_(e)}if(n.externalModuleIndicator)return jt;if(t)return P_(Fe)}}function MP(e){const t=214===e.parent.kind&&e.parent.expression===e,n=im(e,!0);let r=n,i=!1,o=!1;if(!t){for(;r&&220===r.kind;)Nv(r,1024)&&(o=!0),r=im(r,!0),i=M<2;r&&Nv(r,1024)&&(o=!0)}let a=0;if(!r||(s=r,!(t?177===s.kind:(u_(s.parent)||211===s.parent.kind)&&(Dv(s)?175===s.kind||174===s.kind||178===s.kind||179===s.kind||173===s.kind||176===s.kind:175===s.kind||174===s.kind||178===s.kind||179===s.kind||173===s.kind||172===s.kind||177===s.kind)))){const n=uc(e,e=>e===r?"quit":168===e.kind);return n&&168===n.kind?zo(e,_a.super_cannot_be_referenced_in_a_computed_property_name):t?zo(e,_a.Super_calls_are_not_permitted_outside_constructors_or_in_nested_functions_inside_constructors):r&&r.parent&&(u_(r.parent)||211===r.parent.kind)?zo(e,_a.super_property_access_is_permitted_only_in_a_constructor_member_function_or_member_accessor_of_a_derived_class):zo(e,_a.super_can_only_be_referenced_in_members_of_derived_classes_or_object_literal_expressions),Et}var s;if(t||177!==n.kind||IP(e,r,_a.super_must_be_called_before_accessing_a_property_of_super_in_the_constructor_of_a_derived_class),Dv(r)||t?(a=32,!t&&M>=2&&M<=8&&(ND(r)||ED(r))&&Pp(e.parent,e=>{sP(e)&&!Zp(e)||(da(e).flags|=2097152)})):a=16,da(e).flags|=a,175===r.kind&&o&&(am(e.parent)&&Qg(e.parent)?da(r).flags|=256:da(r).flags|=128),i&&EP(e.parent,r),211===r.parent.kind)return M<2?(zo(e,_a.super_is_only_allowed_in_members_of_object_literal_expressions_when_option_target_is_ES2015_or_higher),Et):wt;const c=r.parent;if(!vh(c))return zo(e,_a.super_can_only_be_referenced_in_a_derived_class),Et;if(AP(c))return t?Et:Ut;const l=Au(ks(c)),_=l&&uu(l)[0];return _?177===r.kind&&function(e,t){return!!uc(e,e=>o_(e)?"quit":170===e.kind&&e.parent===t)}(e,r)?(zo(e,_a.super_cannot_be_referenced_in_constructor_arguments),Et):32===a?cu(l):wd(_,l.thisType):Et}function RP(e){return 175!==e.kind&&178!==e.kind&&179!==e.kind||211!==e.parent.kind?219===e.kind&&304===e.parent.kind?e.parent.parent:void 0:e.parent}function JP(e){return 4&gx(e)&&e.target===sr?uy(e)[0]:void 0}function qP(e){return nF(e,e=>2097152&e.flags?d(e.types,JP):JP(e))}function WP(e,t){let n=e,r=t;for(;r;){const e=qP(r);if(e)return e;if(304!==n.parent.kind)break;n=n.parent.parent,r=hA(n,void 0)}}function HP(e){if(220===e.kind)return;if(xS(e)){const t=jA(e);if(t){const e=t.thisParameter;if(e)return P_(e)}}const t=Em(e);if(oe||t){const n=RP(e);if(n){const e=hA(n,void 0),t=WP(n,e);return t?fS(t,Qw(PA(n))):jw(e?fw(e):Ij(n))}const r=rh(e.parent);if(rb(r)){const e=r.left;if(Sx(e)){const{expression:n}=e;if(t&&aD(n)){const e=vd(r);if(e.commonJsModuleIndicator&&NN(n)===e.symbol)return}return jw(Ij(n))}}}}function GP(e){const t=e.parent;if(!xS(t))return;const n=om(t);if(n&&n.arguments){const r=BO(n),i=t.parameters.indexOf(e);if(e.dotDotDotToken)return AO(r,i,r.length,wt,void 0,0);const o=da(n),a=o.resolvedSignature;o.resolvedSignature=si;const s=i!!(58998787&e.flags)||oM(e,n,void 0)):2&n?GD(t,e=>!!(58998787&e.flags)||!!SM(e)):t}const i=om(e);return i?xA(i,t):void 0}function tA(e,t){const n=BO(e).indexOf(t);return-1===n?void 0:nA(e,n)}function nA(e,t){if(_f(e))return 0===t?Vt:1===t?Gy(!1):wt;const n=da(e).resolvedSignature===li?li:aL(e);if(bu(e)&&0===t)return AA(n,e);const r=n.parameters.length-1;return aJ(n)&&t>=r?Ax(P_(n.parameters[r]),mk(t-r),256):AL(n,t)}function rA(e,t=tg(e)){if(4===t)return!0;if(!Em(e)||5!==t||!aD(e.left.expression))return!1;const n=e.left.expression.escapedText,r=Ue(e.left,n,111551,void 0,!0,!0);return cm(null==r?void 0:r.valueDeclaration)}function oA(e){if(!e.symbol)return Qj(e.left);if(e.symbol.valueDeclaration){const t=fv(e.symbol.valueDeclaration);if(t){const e=Pk(t);if(e)return e}}const t=nt(e.left,Sx);if(!Jf(em(t.expression,!1,!1)))return;const n=OP(t.expression),r=_g(t);return void 0!==r&&sA(n,r)||void 0}function aA(e,t){if(16777216&e.flags){const n=e;return!!(131072&Bf(qx(n)).flags)&&Rx(Ux(n))===Rx(n.checkType)&&FS(t,n.extendsType)}return!!(2097152&e.flags)&&$(e.types,e=>aA(e,t))}function sA(e,t,n){return nF(e,e=>{if(2097152&e.flags){let r,i,o=!1;for(const a of e.types){if(!(524288&a.flags))continue;if(Sp(a)&&2!==Tp(a)){r=cA(r,lA(a,t,n));continue}const e=_A(a,t);e?(o=!0,i=void 0,r=cA(r,e)):o||(i=ie(i,a))}if(i)for(const e of i)r=cA(r,uA(e,t,n));if(!r)return;return 1===r.length?r[0]:Bb(r)}if(524288&e.flags)return Sp(e)&&2!==Tp(e)?lA(e,t,n):_A(e,t)??uA(e,t,n)},!0)}function cA(e,t){return t?ie(e,1&t.flags?Ot:t):e}function lA(e,t,n){const r=n||fk(mc(t)),i=ip(e);if(!(e.nameType&&aA(e.nameType,r)||aA(i,r)))return FS(r,pf(i)||i)?Px(e,r):void 0}function _A(e,t){const n=pm(e,t);var r;if(n&&!(262144&rx(r=n)&&!r.links.type&&Hc(r,0)>=0))return kw(P_(n),!!(16777216&n.flags))}function uA(e,t,n){var r;if(rw(e)&&JT(t)&&+t>=0){const t=cw(e,e.target.fixedLength,0,!1,!0);if(t)return t}return null==(r=Am(Bm(e),n||fk(mc(t))))?void 0:r.type}function dA(e,t){if(un.assert(Jf(e)),!(67108864&e.flags))return pA(e,t)}function pA(e,t){const n=e.parent,r=rP(e)&&QP(e,t);if(r)return r;const i=hA(n,t);if(i){if(fd(e)){const t=ks(e);return sA(i,t.escapedName,ua(t).nameType)}if(Rh(e)){const t=Cc(e);if(t&&kD(t)){const e=eM(t.expression),n=sC(e)&&sA(i,cC(e));if(n)return n}}if(e.name){const t=Hb(e.name);return nF(i,e=>{var n;return null==(n=Am(Bm(e),t))?void 0:n.type},!0)}}}function fA(e,t,n,r,i){return e&&nF(e,e=>{if(rw(e)){if((void 0===r||ti)?n-t:0,a=o>0&&12&e.target.combinedFlags?yb(e.target,3):0;return o>0&&o<=a?uy(e)[dy(e)-o]:cw(e,void 0===r?e.target.fixedLength:Math.min(e.target.fixedLength,r),void 0===n||void 0===i?a:Math.min(a,n-i),!1,!0)}return(!r||t32&gx(e)?e:Sf(e),!0);return 1048576&t.flags&&uF(e)?function(e,t){const n=`D${ZB(e)},${kb(t)}`;return Oo(n)??Lo(n,function(e,t){const n=MN(e),r=n&&b(t.properties,e=>e.symbol&&304===e.kind&&e.symbol.escapedName===n&&gA(e.initializer)),i=r&&Zj(r.initializer);return i&&RN(e,i)}(t,e)??ET(t,K(E(N(e.properties,e=>!!e.symbol&&(304===e.kind?gA(e.initializer)&&LN(t,e.symbol.escapedName):305===e.kind&&LN(t,e.symbol.escapedName))),e=>[()=>Zj(304===e.kind?e.initializer:e.name),e.symbol.escapedName]),E(N(Up(t),n=>{var r;return!!(16777216&n.flags)&&!!(null==(r=null==e?void 0:e.symbol)?void 0:r.members)&&!e.symbol.members.has(n.escapedName)&&LN(t,n.escapedName)}),e=>[()=>jt,e.escapedName])),FS))}(e,t):1048576&t.flags&&GE(e)?function(e,t){const n=`D${ZB(e)},${kb(t)}`,r=Oo(n);if(r)return r;const i=oI(rI(e));return Lo(n,ET(t,K(E(N(e.properties,e=>!!e.symbol&&292===e.kind&&LN(t,e.symbol.escapedName)&&(!e.initializer||gA(e.initializer))),e=>[e.initializer?()=>Zj(e.initializer):()=>Yt,e.symbol.escapedName]),E(N(Up(t),n=>{var r;if(!(16777216&n.flags&&(null==(r=null==e?void 0:e.symbol)?void 0:r.members)))return!1;const o=e.parent.parent;return(n.escapedName!==i||!zE(o)||!ly(o.children).length)&&!e.symbol.members.has(n.escapedName)&&LN(t,n.escapedName)}),e=>[()=>jt,e.escapedName])),FS))}(e,t):t}}function yA(e,t,n){if(e&&gj(e,465829888)){const r=PA(t);if(r&&1&n&&$(r.inferences,Hj))return vA(e,r.nonFixingMapper);if(null==r?void 0:r.returnMapper){const t=vA(e,r.returnMapper);return 1048576&t.flags&&Sb(t.types,Qt)&&Sb(t.types,nn)?GD(t,e=>e!==Qt&&e!==nn):t}}return e}function vA(e,t){return 465829888&e.flags?fS(e,t):1048576&e.flags?Pb(E(e.types,e=>vA(e,t)),0):2097152&e.flags?Bb(E(e.types,e=>vA(e,t))):e}function xA(e,t){var n;if(67108864&e.flags)return;const r=EA(e,!t);if(r>=0)return Ei[r];const{parent:i}=e;switch(i.kind){case 261:case 170:case 173:case 172:case 209:return function(e,t){const n=e.parent;if(Eu(n)&&e===n.initializer){const e=QP(n,t);if(e)return e;if(!(8&t)&&k_(n.name)&&n.name.elements.length>0)return n_(n.name,!0,!1)}}(e,t);case 220:case 254:return function(e,t){const n=Kf(e);if(n){let e=eA(n,t);if(e){const t=Oh(n);if(1&t){const n=!!(2&t);1048576&e.flags&&(e=GD(e,e=>!!WR(1,e,n)));const r=WR(1,e,!!(2&t));if(!r)return;e=r}if(2&t){const t=nF(e,AM);return t&&Pb([t,QL(t)])}return e}}}(e,t);case 230:return function(e,t){const n=Kf(e);if(n){const r=Oh(n);let i=eA(n,t);if(i){const n=!!(2&r);if(!e.asteriskToken&&1048576&i.flags&&(i=GD(i,e=>!!WR(1,e,n))),e.asteriskToken){const r=$R(i,n),o=(null==r?void 0:r.yieldType)??dn,a=xA(e,t)??dn,s=(null==r?void 0:r.nextType)??Ot,c=ej(o,a,s,!1);return n?Pb([c,ej(o,a,s,!0)]):c}return WR(0,i,n)}}}(i,t);case 224:return function(e,t){const n=xA(e,t);if(n){const e=AM(n);return e&&Pb([e,QL(e)])}}(i,t);case 214:case 215:return tA(i,e);case 171:return function(e){const t=GL(e);return t?Dh(t):void 0}(i);case 217:case 235:return kl(i.type)?xA(i,t):Pk(i.type);case 227:return function(e,t){const n=e.parent,{left:r,operatorToken:i,right:o}=n;switch(i.kind){case 64:case 77:case 76:case 78:return e===o?function(e){var t,n;const r=tg(e);switch(r){case 0:case 4:const i=function(e){if(au(e)&&e.symbol)return e.symbol;if(aD(e))return NN(e);if(dF(e)){const t=Qj(e.expression);return sD(e.name)?function(e,t){const n=MI(t.escapedText,t);return n&&BI(e,n)}(t,e.name):pm(t,e.name.escapedText)}if(pF(e)){const t=Ij(e.argumentExpression);if(!sC(t))return;return pm(Qj(e.expression),cC(t))}}(e.left),o=i&&i.valueDeclaration;if(o&&(ND(o)||wD(o))){const t=fv(o);return t&&fS(Pk(t),ua(i).mapper)||(ND(o)?o.initializer&&Qj(e.left):void 0)}return 0===r?Qj(e.left):oA(e);case 5:if(rA(e,r))return oA(e);if(au(e.left)&&e.left.symbol){const t=e.left.symbol.valueDeclaration;if(!t)return;const n=nt(e.left,Sx),r=fv(t);if(r)return Pk(r);if(aD(n.expression)){const e=n.expression,t=Ue(e,e.escapedText,111551,void 0,!0);if(t){const e=t.valueDeclaration&&fv(t.valueDeclaration);if(e){const t=_g(n);if(void 0!==t)return sA(Pk(e),t)}return}}return Em(t)||t===e.left?void 0:Qj(e.left)}return Qj(e.left);case 1:case 6:case 3:case 2:let a;2!==r&&(a=au(e.left)?null==(t=e.left.symbol)?void 0:t.valueDeclaration:void 0),a||(a=null==(n=e.symbol)?void 0:n.valueDeclaration);const s=a&&fv(a);return s?Pk(s):void 0;case 7:case 8:case 9:return un.fail("Does not apply");default:return un.assertNever(r)}}(n):void 0;case 57:case 61:const i=xA(n,t);return e===o&&(i&&i.pattern||!i&&!Km(n))?Qj(r):i;case 56:case 28:return e===o?xA(n,t):void 0;default:return}}(e,t);case 304:case 305:return pA(i,t);case 306:return xA(i.parent,t);case 210:{const r=i,o=hA(r,t),a=Yd(r.elements,e),s=(n=da(r)).spreadIndices??(n.spreadIndices=function(e){let t,n;for(let r=0;rJC(e)?Ax(e,mk(a)):e,!0))}(n,e,t):void 0}(i,t);case 292:case 294:return mA(i,t);case 287:case 286:return function(e,t){if(UE(e)&&4!==t){const n=EA(e.parent,!t);if(n>=0)return Ei[n]}return nA(e,0)}(i,t);case 302:return function(e){return sA(Qy(!1),pC(e))}(i)}}function kA(e){wA(e,xA(e,void 0),!0)}function wA(e,t,n){Fi[Ai]=e,Ei[Ai]=t,Pi[Ai]=n,Ai++}function FA(){Ai--,Fi[Ai]=void 0,Ei[Ai]=void 0,Pi[Ai]=void 0}function EA(e,t){for(let n=Ai-1;n>=0;n--)if(e===Fi[n]&&(t||!Pi[n]))return n;return-1}function PA(e){for(let t=ji-1;t>=0;t--)if(ch(e,Oi[t]))return Li[t]}function AA(e,t){return $E(t)||0!==OO(t)?function(e,t){let n=qL(e,Ot);n=IA(t,rI(t),n);const r=eI(jB.IntrinsicAttributes,t);return al(r)||(n=zd(r,n)),n}(e,t):function(e,t){const n=rI(t),r=(i=n,iI(jB.ElementAttributesPropertyNameContainer,i));var i;let o=void 0===r?qL(e,Ot):""===r?Gg(e):function(e,t){if(e.compositeSignatures){const n=[];for(const r of e.compositeSignatures){const e=Gg(r);if(il(e))return e;const i=el(e,t);if(!i)return;n.push(i)}return Bb(n)}const n=Gg(e);return il(n)?n:el(n,t)}(e,r);if(!o)return r&&u(t.attributes.properties)&&zo(t,_a.JSX_element_class_does_not_support_attributes_because_it_does_not_have_a_0_property,mc(r)),Ot;if(o=IA(t,n,o),il(o))return o;{let n=o;const r=eI(jB.IntrinsicClassAttributes,t);if(!al(r)){const i=Z_(r.symbol),o=Gg(e);let a;a=i?fS(r,Uk(i,Cg([o],i,Tg(i),Em(t)))):r,n=zd(a,n)}const i=eI(jB.IntrinsicAttributes,t);return al(i)||(n=zd(i,n)),n}}(e,t)}function IA(e,t,n){const r=(i=t)&&pa(i.exports,jB.LibraryManagedAttributes,788968);var i;if(r){const t=function(e){if($E(e))return rL(e);if(GA(e.tagName))return Dh(nL(e,lI(e)));const t=Ij(e.tagName);if(128&t.flags){const n=sI(t,e);return n?Dh(nL(e,n)):Et}return t}(e),i=pI(r,Em(e),t,n);if(i)return i}return n}function OA(e,t){const n=N(mm(e,0),e=>!function(e,t){let n=0;for(;ne!==t&&e?Rd(e.typeParameters,t.typeParameters)?function(e,t){const n=e.typeParameters||t.typeParameters;let r;e.typeParameters&&t.typeParameters&&(r=Uk(t.typeParameters,e.typeParameters));let i=166&(e.flags|t.flags);const o=e.declaration,a=function(e,t,n){const r=jL(e),i=jL(t),o=r>=i?e:t,a=o===e?t:e,s=o===e?r:i,c=RL(e)||RL(t),l=c&&!RL(o),_=new Array(s+(l?1:0));for(let u=0;u=ML(o)&&u>=ML(a),h=u>=r?void 0:DL(e,u),y=u>=i?void 0:DL(t,u),v=Xo(1|(g&&!m?16777216:0),(h===y?h:h?y?void 0:h:y)||`arg${u}`,m?32768:g?16384:0);v.links.type=m?Rv(f):f,_[u]=v}if(l){const e=Xo(1,"args",32768);e.links.type=Rv(AL(a,s)),a===t&&(e.links.type=fS(e.links.type,n)),_[s]=e}return _}(e,t,r),s=ye(a);s&&32768&rx(s)&&(i|=1);const c=function(e,t,n){return e&&t?ww(e,Pb([P_(e),fS(P_(t),n)])):e||t}(e.thisParameter,t.thisParameter,r),l=Ed(o,n,c,a,void 0,void 0,Math.max(e.minArgumentCount,t.minArgumentCount),i);return l.compositeKind=2097152,l.compositeSignatures=K(2097152===e.compositeKind&&e.compositeSignatures||[e],[t]),r&&(l.mapper=2097152===e.compositeKind&&e.mapper&&e.compositeSignatures?eS(e.mapper,r):r),l}(e,t):void 0:e):void 0);var r}function LA(e){return RT(e)||Jf(e)?jA(e):void 0}function jA(e){un.assert(175!==e.kind||Jf(e));const t=Pg(e);if(t)return t;const n=hA(e,1);if(!n)return;if(!(1048576&n.flags))return OA(n,e);let r;const i=n.types;for(const t of i){const n=OA(t,e);if(n)if(r){if(!PC(r[0],n,!1,!0,!0,TS))return;r.push(n)}else r=[n]}return r?1===r.length?r[0]:Ad(r[0],r):void 0}function MA(e){return 209===e.kind&&!!e.initializer||304===e.kind&&MA(e.initializer)||305===e.kind&&!!e.objectAssignmentInitializer||227===e.kind&&64===e.operatorToken.kind}function RA(e,t,n){const r=e.elements,i=r.length,o=[],a=[];kA(e);const s=Qg(e),c=Jj(e),l=hA(e,void 0),_=function(e){const t=rh(e.parent);return PF(t)&&j_(t.parent)}(e)||!!l&&UD(l,e=>WC(e)||Sp(e)&&!e.nameType&&!!lS(e.target||e));let u=!1;for(let c=0;c8&a[t]?Ox(e,Wt)||wt:e),2):H?pn:Mt,c))}function BA(e){const t=da(e.expression);if(!t.resolvedType){if((qD(e.parent.parent)||u_(e.parent.parent)||pE(e.parent.parent))&&NF(e.expression)&&103===e.expression.operatorToken.kind&&178!==e.parent.kind&&179!==e.parent.kind)return t.resolvedType=Et;if(t.resolvedType=eM(e.expression),ND(e.parent)&&!Fv(e.parent)&&AF(e.parent.parent)){const t=DP(Ep(e.parent.parent));t&&(da(t).flags|=4096,da(e).flags|=32768,da(e.parent.parent).flags|=32768)}(98304&t.resolvedType.flags||!hj(t.resolvedType,402665900)&&!FS(t.resolvedType,hn))&&zo(e,_a.A_computed_property_name_must_be_of_type_string_number_symbol_or_any)}return t.resolvedType}function JA(e){var t;const n=null==(t=e.declarations)?void 0:t[0];return JT(e.escapedName)||n&&Sc(n)&&function(e){switch(e.kind){case 168:return function(e){return hj(BA(e),296)}(e);case 80:return JT(e.escapedText);case 9:case 11:return JT(e.text);default:return!1}}(n.name)}function zA(e){var t;const n=null==(t=e.declarations)?void 0:t[0];return Wh(e)||n&&Sc(n)&&kD(n.name)&&hj(BA(n.name),4096)}function qA(e){var t;const n=null==(t=e.declarations)?void 0:t[0];return n&&Sc(n)&&kD(n.name)}function UA(e,t,n,r){var i;const o=[];let a;for(let e=t;e0&&(o=sk(o,f(),l.symbol,c,!1),i=Gu());const s=Bf(eM(e.expression,2&t));il(s)&&(a=!0),WA(s)?(o=sk(o,s,l.symbol,c,!1),n&&ZA(s,n,e)):(zo(e.expression,_a.Spread_types_may_only_be_created_from_object_types),r=r?Bb([r,s]):s)}}a||i.size>0&&(o=sk(o,f(),l.symbol,c,!1))}const p=e.parent;if((zE(p)&&p.openingElement===e||WE(p)&&p.openingFragment===e)&&ly(p.children).length>0){const n=YA(p,t);if(!a&&_&&""!==_){s&&zo(d,_a._0_are_specified_twice_The_attribute_named_0_will_be_overwritten,mc(_));const t=UE(e)?hA(e.attributes,void 0):void 0,r=t&&sA(t,_),i=Xo(4,_);i.links.type=1===n.length?n[0]:r&&UD(r,WC)?Gv(n):Rv(Pb(n)),i.valueDeclaration=mw.createPropertySignature(void 0,mc(_),void 0,void 0),DT(i.valueDeclaration,d),i.valueDeclaration.symbol=i;const a=Gu();a.set(_,i),o=sk(o,$s(u,a,l,l,l),u,c,!1)}}return a?wt:r&&o!==Dn?Bb([r,o]):r||(o===Dn?f():o);function f(){return c|=8192,function(e,t,n){const r=$s(t,n,l,l,l);return r.objectFlags|=139392|e,r}(c,u,i)}}function YA(e,t){const n=[];for(const r of e.children)if(12===r.kind)r.containsOnlyTriviaWhiteSpaces||n.push(Vt);else{if(295===r.kind&&!r.expression)continue;n.push(zj(r,t))}return n}function ZA(e,t,n){for(const r of Up(e))if(!(16777216&r.flags)){const e=t.get(r.escapedName);e&&aT(zo(e.valueDeclaration,_a._0_is_specified_more_than_once_so_this_usage_will_be_overwritten,mc(e.escapedName)),Rp(n,_a.This_spread_always_overwrites_this_property))}}function eI(e,t){const n=rI(t),r=n&&hs(n),i=r&&pa(r,e,788968);return i?Au(i):Et}function tI(e){const t=da(e);if(!t.resolvedSymbol){const n=eI(jB.IntrinsicElements,e);if(al(n))return ne&&zo(e,_a.JSX_element_implicitly_has_type_any_because_no_interface_JSX_0_exists,mc(jB.IntrinsicElements)),t.resolvedSymbol=xt;{if(!aD(e.tagName)&&!YE(e.tagName))return un.fail();const r=YE(e.tagName)?iC(e.tagName):e.tagName.escapedText,i=pm(n,r);if(i)return t.jsxFlags|=1,t.resolvedSymbol=i;const o=gJ(n,fk(mc(r)));return o?(t.jsxFlags|=2,t.resolvedSymbol=o):rl(n,r)?(t.jsxFlags|=2,t.resolvedSymbol=n.symbol):(zo(e,_a.Property_0_does_not_exist_on_type_1,aC(e.tagName),"JSX."+jB.IntrinsicElements),t.resolvedSymbol=xt)}}return t.resolvedSymbol}function nI(e){const t=e&&vd(e),n=t&&da(t);if(n&&!1===n.jsxImplicitImportContainer)return;if(n&&n.jsxImplicitImportContainer)return n.jsxImplicitImportContainer;const r=Gk(Kk(j,t),j);if(!r)return;const i=1===bk(j)?_a.Cannot_find_module_0_Did_you_mean_to_set_the_moduleResolution_option_to_nodenext_or_to_add_aliases_to_the_paths_option:_a.This_JSX_tag_requires_the_module_path_0_to_exist_but_none_could_be_found_Make_sure_you_have_types_for_the_appropriate_package_installed,o=function(e,t){const n=j.importHelpers?1:0,r=null==e?void 0:e.imports[n];return r&&un.assert(ey(r)&&r.text===t,`Expected sourceFile.imports[${n}] to be the synthesized JSX runtime import`),r}(t,r),a=os(o||e,r,i,e),s=a&&a!==xt?xs($a(a)):void 0;return n&&(n.jsxImplicitImportContainer=s||!1),s}function rI(e){const t=e&&da(e);if(t&&t.jsxNamespace)return t.jsxNamespace;if(!t||!1!==t.jsxNamespace){let n=nI(e);if(!n||n===xt){const t=jo(e);n=Ue(e,t,1920,void 0,!1)}if(n){const e=$a(pa(hs($a(n)),jB.JSX,1920));if(e&&e!==xt)return t&&(t.jsxNamespace=e),e}t&&(t.jsxNamespace=!1)}const n=$a(Vy(jB.JSX,1920,void 0));return n!==xt?n:void 0}function iI(e,t){const n=t&&pa(t.exports,e,788968),r=n&&Au(n),i=r&&Up(r);if(i){if(0===i.length)return"";if(1===i.length)return i[0].escapedName;i.length>1&&n.declarations&&zo(n.declarations[0],_a.The_global_type_JSX_0_may_not_have_more_than_one_property,mc(e))}}function oI(e){return 4===j.jsx||5===j.jsx?"children":iI(jB.ElementChildrenAttributeNameContainer,e)}function aI(e,t){if(4&e.flags)return[si];if(128&e.flags){const n=sI(e,t);return n?[nL(t,n)]:(zo(t,_a.Property_0_does_not_exist_on_type_1,e.value,"JSX."+jB.IntrinsicElements),l)}const n=Sf(e);let r=mm(n,1);return 0===r.length&&(r=mm(n,0)),0===r.length&&1048576&n.flags&&(r=Md(E(n.types,e=>aI(e,t)))),r}function sI(e,t){const n=eI(jB.IntrinsicElements,t);if(!al(n)){const t=pm(n,fc(e.value));if(t)return P_(t);return Qm(n,Vt)||void 0}return wt}function lI(e){var t;un.assert(GA(e.tagName));const n=da(e);if(!n.resolvedJsxElementAttributesType){const r=tI(e);if(1&n.jsxFlags)return n.resolvedJsxElementAttributesType=P_(r)||Et;if(2&n.jsxFlags){const r=YE(e.tagName)?iC(e.tagName):e.tagName.escapedText;return n.resolvedJsxElementAttributesType=(null==(t=og(eI(jB.IntrinsicElements,e),r))?void 0:t.type)||Et}return n.resolvedJsxElementAttributesType=Et}return n.resolvedJsxElementAttributesType}function _I(e){const t=eI(jB.ElementClass,e);if(!al(t))return t}function uI(e){return eI(jB.Element,e)}function dI(e){const t=uI(e);if(t)return Pb([t,zt])}function pI(e,t,...n){const r=Au(e);if(524288&e.flags){const i=ua(e).typeParameters;if(u(i)>=n.length){const o=Cg(n,i,n.length,t);return 0===u(o)?r:fy(e,o)}}if(u(r.typeParameters)>=n.length)return ay(r,Cg(n,r.typeParameters,n.length,t))}function fI(e){const t=bu(e);var n;t&&function(e){(function(e){if(dF(e)&&YE(e.expression))return kz(e.expression,_a.JSX_property_access_expressions_cannot_include_JSX_namespace_names);YE(e)&&Hk(j)&&!Ey(e.namespace.escapedText)&&kz(e,_a.React_components_cannot_include_JSX_namespace_names)})(e.tagName),ez(e,e.typeArguments);const t=new Map;for(const n of e.attributes.properties){if(294===n.kind)continue;const{name:e,initializer:r}=n,i=tC(e);if(t.get(i))return kz(e,_a.JSX_elements_cannot_have_multiple_attributes_with_the_same_name);if(t.set(i,!0),r&&295===r.kind&&!r.expression)return kz(r,_a.JSX_attributes_must_only_be_assigned_a_non_empty_expression)}}(e),n=e,0===(j.jsx||0)&&zo(n,_a.Cannot_use_JSX_unless_the_jsx_flag_is_provided),void 0===uI(n)&&ne&&zo(n,_a.JSX_element_implicitly_has_type_any_because_the_global_type_JSX_Element_does_not_exist),QE(e);const r=aL(e);if(_L(r,e),t){const t=e,n=function(e){const t=rI(e);if(!t)return;const n=(r=t)&&pa(r.exports,jB.ElementType,788968);var r;if(!n)return;const i=pI(n,Em(e));return i&&!al(i)?i:void 0}(t);if(void 0!==n){const e=t.tagName;hT(GA(e)?fk(aC(e)):eM(e),n,wo,e,_a.Its_type_0_is_not_a_valid_JSX_element_type,()=>{const t=Xd(e);return Zx(void 0,_a._0_cannot_be_used_as_a_JSX_component,t)})}else!function(e,t,n){if(1===e){const e=dI(n);e&&hT(t,e,wo,n.tagName,_a.Its_return_type_0_is_not_a_valid_JSX_element,r)}else if(0===e){const e=_I(n);e&&hT(t,e,wo,n.tagName,_a.Its_instance_type_0_is_not_a_valid_JSX_element,r)}else{const e=dI(n),i=_I(n);if(!e||!i)return;hT(t,Pb([e,i]),wo,n.tagName,_a.Its_element_type_0_is_not_a_valid_JSX_element,r)}function r(){const e=Xd(n.tagName);return Zx(void 0,_a._0_cannot_be_used_as_a_JSX_component,e)}}(OO(t),Gg(r),t)}}function mI(e,t,n){if(524288&e.flags&&(Lp(e,t)||og(e,t)||ld(t)&&qm(e,Vt)||n&&KA(t)))return!0;if(33554432&e.flags)return mI(e.baseType,t,n);if(3145728&e.flags&&gI(e))for(const r of e.types)if(mI(r,t,n))return!0;return!1}function gI(e){return!!(524288&e.flags&&!(512&gx(e))||67108864&e.flags||33554432&e.flags&&gI(e.baseType)||1048576&e.flags&&$(e.types,gI)||2097152&e.flags&&v(e.types,gI))}function hI(e){return e.valueDeclaration?Pz(e.valueDeclaration):0}function yI(e){if(8192&e.flags||4&rx(e))return!0;if(Em(e.valueDeclaration)){const t=e.valueDeclaration.parent;return t&&NF(t)&&3===tg(t)}}function vI(e,t,n,r,i,o=!0){return bI(e,t,n,r,i,o?167===e.kind?e.right:206===e.kind?e:209===e.kind&&e.propertyName?e.propertyName:e.name:void 0)}function bI(e,t,n,r,i,o){var a;const s=ix(i,n);if(t){if(M<2&&TI(i))return o&&zo(o,_a.Only_public_and_protected_methods_of_the_base_class_are_accessible_via_the_super_keyword),!1;if(64&s)return o&&zo(o,_a.Abstract_method_0_in_class_1_cannot_be_accessed_via_super_expression,bc(i),Tc(bC(i))),!1;if(!(256&s)&&(null==(a=i.declarations)?void 0:a.some(f_)))return o&&zo(o,_a.Class_field_0_defined_by_the_parent_class_is_not_accessible_in_the_child_class_via_super,bc(i)),!1}if(64&s&&TI(i)&&(sm(e)||lm(e)||sF(e.parent)&&cm(e.parent.parent))){const t=mx(Ts(i));if(t&&uc(e,e=>!!(PD(e)&&Dd(e.body)||ND(e))||!(!u_(e)&&!o_(e))&&"quit"))return o&&zo(o,_a.Abstract_property_0_in_class_1_cannot_be_accessed_in_the_constructor,bc(i),qh(t.name)),!1}if(!(6&s))return!0;if(2&s)return!!pJ(e,mx(Ts(i)))||(o&&zo(o,_a.Property_0_is_private_and_only_accessible_within_class_1,bc(i),Tc(bC(i))),!1);if(t)return!0;let c=dJ(e,e=>TC(Au(ks(e)),i,n));return!c&&(c=function(e){const t=function(e){const t=em(e,!1,!1);return t&&r_(t)?sv(t):void 0}(e);let n=(null==t?void 0:t.type)&&Pk(t.type);if(n)262144&n.flags&&(n=Hp(n));else{const t=em(e,!1,!1);r_(t)&&(n=HP(t))}if(n&&7&gx(n))return z_(n)}(e),c=c&&TC(c,i,n),256&s||!c)?(o&&zo(o,_a.Property_0_is_protected_and_only_accessible_within_class_1_and_its_subclasses,bc(i),Tc(bC(i)||r)),!1):!!(256&s)||(262144&r.flags&&(r=r.isThisType?Hp(r):pf(r)),!(!r||!q_(r,c))||(o&&zo(o,_a.Property_0_is_protected_and_only_accessible_through_an_instance_of_class_1_This_is_an_instance_of_class_2,bc(i),Tc(c),Tc(r)),!1))}function TI(e){return!!fC(e,e=>!(8192&e.flags))}function wI(e){return AI(eM(e),e)}function NI(e){return KN(e,50331648)}function DI(e){return NI(e)?fw(e):e}function FI(e,t){const n=ab(e)?Mp(e):void 0;if(106!==e.kind)if(void 0!==n&&n.length<100){if(aD(e)&&"undefined"===n)return void zo(e,_a.The_value_0_cannot_be_used_here,"undefined");zo(e,16777216&t?33554432&t?_a._0_is_possibly_null_or_undefined:_a._0_is_possibly_undefined:_a._0_is_possibly_null,n)}else zo(e,16777216&t?33554432&t?_a.Object_is_possibly_null_or_undefined:_a.Object_is_possibly_undefined:_a.Object_is_possibly_null);else zo(e,_a.The_value_0_cannot_be_used_here,"null")}function EI(e,t){zo(e,16777216&t?33554432&t?_a.Cannot_invoke_an_object_which_is_possibly_null_or_undefined:_a.Cannot_invoke_an_object_which_is_possibly_undefined:_a.Cannot_invoke_an_object_which_is_possibly_null)}function PI(e,t,n){if(H&&2&e.flags){if(ab(t)){const e=Mp(t);if(e.length<100)return zo(t,_a._0_is_of_type_unknown,e),Et}return zo(t,_a.Object_is_of_type_unknown),Et}const r=HN(e,50331648);if(50331648&r){n(t,r);const i=fw(e);return 229376&i.flags?Et:i}return e}function AI(e,t){return PI(e,t,FI)}function II(e,t){const n=AI(e,t);if(16384&n.flags){if(ab(t)){const e=Mp(t);if(aD(t)&&"undefined"===e)return zo(t,_a.The_value_0_cannot_be_used_here,e),n;if(e.length<100)return zo(t,_a._0_is_possibly_undefined,e),n}zo(t,_a.Object_is_possibly_undefined)}return n}function OI(e,t,n){return 64&e.flags?function(e,t){const n=eM(e.expression),r=bw(n,e.expression);return vw(zI(e,e.expression,AI(r,e.expression),e.name,t),e,r!==n)}(e,t):zI(e,e.expression,wI(e.expression),e.name,t,n)}function LI(e,t){const n=km(e)&&lv(e.left)?AI(OP(e.left),e.left):wI(e.left);return zI(e,e.left,n,e.right,t)}function jI(e){for(;218===e.parent.kind;)e=e.parent;return j_(e.parent)&&e.parent.expression===e}function MI(e,t){for(let n=Zf(t);n;n=Xf(n)){const{symbol:t}=n,r=Vh(t,e),i=t.members&&t.members.get(r)||t.exports&&t.exports.get(r);if(i)return i}}function RI(e){if(!bm(e))return;const t=da(e);return void 0===t.resolvedSymbol&&(t.resolvedSymbol=MI(e.escapedText,e)),t.resolvedSymbol}function BI(e,t){return pm(e,t.escapedName)}function JI(e,t){return(Ll(t)||sm(e)&&jl(t))&&em(e,!0,!1)===Ml(t)}function zI(e,t,n,r,i,o){const a=da(t).resolvedSymbol,s=Xg(e),c=Sf(0!==s||jI(e)?jw(n):n),l=il(c)||c===dn;let _,u;if(sD(r)){(M{const n=e.valueDeclaration;if(n&&Sc(n)&&sD(n.name)&&n.name.escapedText===t.escapedText)return r=e,!0});const o=ya(t);if(r){const i=un.checkDefined(r.valueDeclaration),a=un.checkDefined(Xf(i));if(null==n?void 0:n.valueDeclaration){const r=n.valueDeclaration,s=Xf(r);if(un.assert(!!s),uc(s,e=>a===e))return aT(zo(t,_a.The_property_0_cannot_be_accessed_on_type_1_within_this_class_because_it_is_shadowed_by_another_private_identifier_with_the_same_spelling,o,Tc(e)),Rp(r,_a.The_shadowing_declaration_of_0_is_defined_here,o),Rp(i,_a.The_declaration_of_0_that_you_probably_intended_to_use_is_defined_here,o)),!0}return zo(t,_a.Property_0_is_not_accessible_outside_class_1_because_it_has_a_private_identifier,o,ya(a.name||JB)),!0}return!1}(n,r,t))return Et;const e=Zf(r);e&&xd(vd(e),j.checkJs)&&kz(r,_a.Private_field_0_must_be_declared_in_an_enclosing_class,gc(r))}else 65536&_.flags&&!(32768&_.flags)&&1!==s&&zo(e,_a.Private_accessor_was_defined_without_a_getter)}else{if(l)return aD(t)&&a&&RE(e,2,void 0,n),al(c)?Et:c;_=pm(c,r.escapedText,vj(c),167===e.kind)}if(RE(e,2,_,n),_){const n=CB(_,r);if(Ho(n)&&dx(e,n)&&n.declarations&&Go(r,n.declarations,r.escapedText),function(e,t,n){const{valueDeclaration:r}=e;if(!r||vd(t).isDeclarationFile)return;let i;const o=gc(n);!VI(t)||function(e){return ND(e)&&!Iv(e)&&e.questionToken}(r)||Sx(t)&&Sx(t.expression)||fa(r,n)||FD(r)&&256&Ez(r)||!U&&function(e){if(!(32&e.parent.flags))return!1;let t=P_(e.parent);for(;;){if(t=t.symbol&&WI(t),!t)return!1;const n=pm(t,e.escapedName);if(n&&n.valueDeclaration)return!0}}(e)?264!==r.kind||184===t.parent.kind||33554432&r.flags||fa(r,n)||(i=zo(n,_a.Class_0_used_before_its_declaration,o)):i=zo(n,_a.Property_0_is_used_before_its_initialization,o),i&&aT(i,Rp(r,_a._0_is_declared_here,o))}(_,e,r),oO(_,e,aO(t,a)),da(e).resolvedSymbol=_,vI(e,108===t.kind,cx(e),c,_),uj(e,_,s))return zo(r,_a.Cannot_assign_to_0_because_it_is_a_read_only_property,gc(r)),Et;u=JI(e,_)?Nt:o||sx(e)?E_(_):P_(_)}else{const t=sD(r)||0!==s&&Tx(n)&&!qT(n)?void 0:og(c,r.escapedText);if(!t||!t.type){const t=qI(e,n.symbol,!0);return!t&&_x(n)?wt:n.symbol===Fe?(Fe.exports.has(r.escapedText)&&418&Fe.exports.get(r.escapedText).flags?zo(r,_a.Property_0_does_not_exist_on_type_1,mc(r.escapedText),Tc(n)):ne&&zo(r,_a.Element_implicitly_has_an_any_type_because_type_0_has_no_index_signature,Tc(n)),wt):(r.escapedText&&!ba(e)&&$I(r,qT(n)?c:n,t),Et)}t.isReadonly&&(Qg(e)||sh(e))&&zo(e,_a.Index_signature_in_type_0_only_permits_reading,Tc(c)),u=t.type,j.noUncheckedIndexedAccess&&1!==Xg(e)&&(u=Pb([u,Rt])),j.noPropertyAccessFromIndexSignature&&dF(e)&&zo(r,_a.Property_0_comes_from_an_index_signature_so_it_must_be_accessed_with_0,mc(r.escapedText)),t.declaration&&Ko(t.declaration)&&Go(r,[t.declaration],r.escapedText)}return UI(e,_,u,r,i)}function qI(e,t,n){var r;const i=vd(e);if(i&&void 0===j.checkJs&&void 0===i.checkJsDirective&&(1===i.scriptKind||2===i.scriptKind)){const o=d(null==t?void 0:t.declarations,vd),a=!(null==t?void 0:t.valueDeclaration)||!u_(t.valueDeclaration)||(null==(r=t.valueDeclaration.heritageClauses)?void 0:r.length)||gm(!1,t.valueDeclaration);return!(i!==o&&o&&Yp(o)||n&&t&&32&t.flags&&a||e&&n&&dF(e)&&110===e.expression.kind&&a)}return!1}function UI(e,t,n,r,i){const o=Xg(e);if(1===o)return kw(n,!!(t&&16777216&t.flags));if(t&&!(98311&t.flags)&&!(8192&t.flags&&1048576&n.flags)&&!PB(t.declarations))return n;if(n===Nt)return Ul(e,t);n=jE(n,e,i);let a=!1;if(H&&Z&&Sx(e)&&110===e.expression.kind){const n=t&&t.valueDeclaration;if(n&&fB(n)&&!Dv(n)){const t=iE(e);177!==t.kind||t.parent!==n.parent||33554432&n.flags||(a=!0)}}else H&&t&&t.valueDeclaration&&dF(t.valueDeclaration)&&ug(t.valueDeclaration)&&iE(e)===iE(t.valueDeclaration)&&(a=!0);const s=rE(e,n,a?pw(n):n);return a&&!QS(n)&&QS(s)?(zo(r,_a.Property_0_is_used_before_being_assigned,bc(t)),n):o?QC(s):s}function VI(e,t){return!!uc(e,e=>{switch(e.kind){case 173:case 176:return!0;case 187:case 288:return"quit";case 220:return!t&&"quit";case 242:return!(!o_(e.parent)||220===e.parent.kind)&&"quit";default:return!1}})}function WI(e){const t=uu(e);if(0!==t.length)return Bb(t)}function $I(e,t,n){const r=da(e),i=r.nonExistentPropCheckCache||(r.nonExistentPropCheckCache=new Set),o=`${kb(t)}|${n}`;if(i.has(o))return;let a,s;if(i.add(o),!sD(e)&&1048576&t.flags&&!(402784252&t.flags))for(const n of t.types)if(!pm(n,e.escapedText)&&!og(n,e.escapedText)){a=Zx(a,_a.Property_0_does_not_exist_on_type_1,Ap(e),Tc(n));break}if(HI(e.escapedText,t)){const n=Ap(e),r=Tc(t);a=Zx(a,_a.Property_0_does_not_exist_on_type_1_Did_you_mean_to_access_the_static_member_2_instead,n,r,r+"."+n)}else{const r=TM(t);if(r&&pm(r,e.escapedText))a=Zx(a,_a.Property_0_does_not_exist_on_type_1,Ap(e),Tc(t)),s=Rp(e,_a.Did_you_forget_to_use_await);else{const r=Ap(e),i=Tc(t),o=function(e,t){const n=Sf(t).symbol;if(!n)return;const r=yc(n),i=tp().get(r);if(i)for(const[t,n]of i)if(T(n,e))return t}(r,t);if(void 0!==o)a=Zx(a,_a.Property_0_does_not_exist_on_type_1_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_2_or_later,r,i,o);else{const o=GI(e,t);if(void 0!==o){const e=yc(o);a=Zx(a,n?_a.Property_0_may_not_exist_on_type_1_Did_you_mean_2:_a.Property_0_does_not_exist_on_type_1_Did_you_mean_2,r,i,e),s=o.valueDeclaration&&Rp(o.valueDeclaration,_a._0_is_declared_here,e)}else{const e=function(e){return j.lib&&!j.lib.includes("lib.dom.d.ts")&&(n=e=>e.symbol&&/^(?:EventTarget|Node|(?:HTML[a-zA-Z]*)?Element)$/.test(mc(e.symbol.escapedName)),3145728&(t=e).flags?v(t.types,n):n(t))&&GS(e);var t,n}(t)?_a.Property_0_does_not_exist_on_type_1_Try_changing_the_lib_compiler_option_to_include_dom:_a.Property_0_does_not_exist_on_type_1;a=Zx(Gf(a,t),e,r,i)}}}}const c=zp(vd(e),e,a);s&&aT(c,s),Uo(!n||a.code!==_a.Property_0_may_not_exist_on_type_1_Did_you_mean_2.code,c)}function HI(e,t){const n=t.symbol&&pm(P_(t.symbol),e);return void 0!==n&&!!n.valueDeclaration&&Dv(n.valueDeclaration)}function KI(e,t){return iO(e,Up(t),106500)}function GI(e,t){let n=Up(t);if("string"!=typeof e){const r=e.parent;dF(r)&&(n=N(n,e=>sO(r,t,e))),e=gc(e)}return iO(e,n,111551)}function YI(e,t){const n=Ze(e)?e:gc(e),r=Up(t);return("for"===n?b(r,e=>"htmlFor"===yc(e)):"class"===n?b(r,e=>"className"===yc(e)):void 0)??iO(n,r,111551)}function ZI(e,t){const n=GI(e,t);return n&&yc(n)}function eO(e,t,n){return un.assert(void 0!==t,"outername should always be defined"),Ve(e,t,n,void 0,!1,!1)}function nO(e,t){return t.exports&&iO(gc(e),ds(t),2623475)}function iO(e,t,n){return Lt(e,t,function(e){const t=yc(e);if(!Gt(t,'"')){if(e.flags&n)return t;if(2097152&e.flags){const r=function(e){if(ua(e).aliasTarget!==kt)return Ha(e)}(e);if(r&&r.flags&n)return t}}})}function oO(e,t,n){const r=e&&106500&e.flags&&e.valueDeclaration;if(!r)return;const i=wv(r,2),o=e.valueDeclaration&&Sc(e.valueDeclaration)&&sD(e.valueDeclaration.name);if((i||o)&&(!t||!sx(t)||65536&e.flags)){if(n){const n=uc(t,o_);if(n&&n.symbol===e)return}(1&rx(e)?ua(e).target:e).isReferenced=-1}}function aO(e,t){return 110===e.kind||!!t&&ab(e)&&t===NN(sb(e))}function sO(e,t,n){return lO(e,212===e.kind&&108===e.expression.kind,!1,t,n)}function cO(e,t,n,r){if(il(r))return!0;const i=pm(r,n);return!!i&&lO(e,t,!1,r,i)}function lO(e,t,n,r,i){if(il(r))return!0;if(i.valueDeclaration&&Kl(i.valueDeclaration)){const t=Xf(i.valueDeclaration);return!hl(e)&&!!uc(e,e=>e===t)}return bI(e,t,n,r,i)}function _O(e){const t=e.initializer;if(262===t.kind){const e=t.declarations[0];if(e&&!k_(e.name))return ks(e)}else if(80===t.kind)return NN(t)}function pO(e){return 1===Jm(e).length&&!!qm(e,Wt)}function fO(e,t,n){const r=0!==Xg(e)||jI(e)?jw(t):t,i=e.argumentExpression,o=eM(i);if(al(r)||r===dn)return r;if(vj(r)&&!ju(i))return zo(i,_a.A_const_enum_member_can_only_be_accessed_using_a_string_literal),Et;const a=function(e){const t=ah(e);if(80===t.kind){const n=NN(t);if(3&n.flags){let t=e,r=e.parent;for(;r;){if(250===r.kind&&t===r.statement&&_O(r)===n&&pO(Qj(r.expression)))return!0;t=r,r=r.parent}}}return!1}(i)?Wt:o,s=Xg(e);let c;0===s?c=32:(c=4|(Tx(r)&&!qT(r)?2:0),2===s&&(c|=32));const l=Ox(r,a,c,e)||Et;return yM(UI(e,da(e).resolvedSymbol,l,i,n),e)}function mO(e){return j_(e)||gF(e)||bu(e)}function gO(e){return mO(e)&&d(e.typeArguments,AB),216===e.kind?eM(e.template):bu(e)?eM(e.attributes):NF(e)?eM(e.left):j_(e)&&d(e.arguments,e=>{eM(e)}),si}function hO(e){return gO(e),ci}function yO(e){return!!e&&(231===e.kind||238===e.kind&&e.isSpread)}function vO(e){return k(e,yO)}function bO(e){return!!(16384&e.flags)}function xO(e){return!!(49155&e.flags)}function kO(e,t,n,r=!1){if($E(e))return!0;let i,o=!1,a=jL(n),s=ML(n);if(216===e.kind)if(i=t.length,229===e.template.kind){const t=ve(e.template.templateSpans);o=Nd(t.literal)||!!t.literal.isUnterminated}else{const t=e.template;un.assert(15===t.kind),o=!!t.isUnterminated}else if(171===e.kind)i=JO(e,n);else if(227===e.kind)i=1;else if(bu(e)){if(o=e.attributes.end===e.end,o)return!0;i=0===s?t.length:1,a=0===t.length?a:1,s=Math.min(s,1)}else{if(!e.arguments)return un.assert(215===e.kind),0===ML(n);{i=r?t.length+1:t.length,o=e.arguments.end===e.end;const a=vO(t);if(a>=0)return a>=ML(n)&&(RL(n)||aa)return!1;if(o||i>=s)return!0;for(let t=i;t=r&&t.length<=n}function TO(e,t){let n;return!!(e.target&&(n=IL(e.target,t))&&xx(n))}function CO(e){return NO(e,0,!1)}function wO(e){return NO(e,0,!1)||NO(e,1,!1)}function NO(e,t,n){if(524288&e.flags){const r=Cp(e);if(n||0===r.properties.length&&0===r.indexInfos.length){if(0===t&&1===r.callSignatures.length&&0===r.constructSignatures.length)return r.callSignatures[0];if(1===t&&1===r.constructSignatures.length&&0===r.callSignatures.length)return r.constructSignatures[0]}}}function DO(e,t,n,r){const i=Vw(Ch(e),e,0,r),o=BL(t),a=n&&(o&&262144&o.flags?n.nonFixingMapper:n.mapper);return qw(a?aS(t,a):t,e,(e,t)=>{yN(i.inferences,e,t)}),n||Uw(t,e,(e,t)=>{yN(i.inferences,e,t,128)}),dh(e,CN(i),Em(t.declaration))}function FO(e){if(!e)return ln;const t=eM(e);return gb(e)?t:yl(e.parent)?fw(t):hl(e.parent)?yw(t):t}function EO(e,t,n,r,i){if(bu(e))return function(e,t,n,r){const i=AA(t,e),o=Aj(e.attributes,i,r,n);return yN(r.inferences,o,i),CN(r)}(e,t,r,i);if(171!==e.kind&&227!==e.kind){const n=v(t.typeParameters,e=>!!yf(e)),r=xA(e,n?8:0);if(r){const o=Gg(t);if(eN(o)){const a=PA(e);if(n||xA(e,8)===r){const e=fS(r,Qw(Ww(a,1))),t=CO(e),n=t&&t.typeParameters?Dh(xh(t,t.typeParameters)):e;yN(i.inferences,n,o,128)}const s=Vw(t.typeParameters,t,i.flags),c=fS(r,a&&function(e){return e.outerReturnMapper??(e.outerReturnMapper=tS(e.returnMapper,Ww(e).mapper))}(a));yN(s.inferences,c,o),i.returnMapper=$(s.inferences,$j)?Qw(function(e){const t=N(e.inferences,$j);return t.length?$w(E(t,Xw),e.signature,e.flags,e.compareTypes):void 0}(s)):void 0}}}const o=JL(t),a=o?Math.min(jL(t)-1,n.length):n.length;if(o&&262144&o.flags){const e=b(i.inferences,e=>e.typeParameter===o);e&&(e.impliedArity=k(n,yO,a)<0?n.length-a:void 0)}const s=Rg(t);if(s&&eN(s)){const t=MO(e);yN(i.inferences,FO(t),s)}for(let e=0;e=n-1){const t=e[n-1];if(yO(t)){const e=238===t.kind?t.type:Aj(t.expression,r,i,o);return JC(e)?PO(e):Rv(SR(33,e,jt,231===t.kind?t.expression:t),a)}}const s=[],c=[],l=[];for(let _=t;_Zx(void 0,_a.Type_0_does_not_satisfy_the_constraint_1):void 0,l=r||_a.Type_0_does_not_satisfy_the_constraint_1;s||(s=Uk(o,a));const _=a[e];if(!IS(_,wd(fS(i,s),_),n?t[e]:void 0,l,c))return}}return a}function OO(e){if(GA(e.tagName))return 2;const t=Sf(eM(e.tagName));return u(mm(t,1))?0:u(mm(t,0))?1:2}function LO(e){return NA(e,Em(e)?-2147483615:33)}function jO(e,t,n,r,i,o,a){const s={errors:void 0,skipLogging:!0};if(xu(e))return function(e,t,n,r,i,o,a){const s=AA(t,e),c=$E(e)?QA(e):Aj(e.attributes,s,void 0,r),l=4&r?Nw(c):c;return function(){var t;if(nI(e))return!0;const n=!UE(e)&&!qE(e)||GA(e.tagName)||YE(e.tagName)?void 0:eM(e.tagName);if(!n)return!0;const r=mm(n,0);if(!u(r))return!0;const o=UJ(e);if(!o)return!0;const s=ts(o,111551,!0,!1,e);if(!s)return!0;const c=mm(P_(s),0);if(!u(c))return!0;let l=!1,_=0;for(const e of c){const t=mm(AL(e,0),0);if(u(t))for(const e of t){if(l=!0,RL(e))return!0;const t=jL(e);t>_&&(_=t)}}if(!l)return!0;let d=1/0;for(const e of r){const t=ML(e);t{n.push(e.expression)}),n}if(171===e.kind)return function(e){const t=e.expression,n=GL(e);if(n){const e=[];for(const r of n.parameters){const n=P_(r);e.push(RO(t,n))}return e}return un.fail()}(e);if(227===e.kind)return[e.left];if(bu(e))return e.attributes.properties.length>0||UE(e)&&e.parent.children.length>0?[e.attributes]:l;const t=e.arguments||l,n=vO(t);if(n>=0){const e=t.slice(0,n);for(let r=n;r{var o;const a=i.target.elementFlags[r],s=RO(n,4&a?Rv(t):t,!!(12&a),null==(o=i.target.labeledElementDeclarations)?void 0:o[r]);e.push(s)}):e.push(n)}return e}return t}function JO(e,t){return j.experimentalDecorators?function(e,t){switch(e.parent.kind){case 264:case 232:return 1;case 173:return Iv(e.parent)?3:2;case 175:case 178:case 179:return t.parameters.length<=2?2:3;case 170:return 3;default:return un.fail()}}(e,t):Math.min(Math.max(jL(t),1),2)}function zO(e){const t=vd(e),{start:n,length:r}=Qp(t,dF(e.expression)?e.expression.name:e.expression);return{start:n,length:r,sourceFile:t}}function qO(e,t,...n){if(fF(e)){const{sourceFile:r,start:i,length:o}=zO(e);return"message"in t?Gx(r,i,o,t,...n):Wp(r,t)}return"message"in t?Rp(e,t,...n):zp(vd(e),e,t)}function UO(e,t,n,r){var i;const o=vO(n);if(o>-1)return Rp(n[o],_a.A_spread_argument_must_either_have_a_tuple_type_or_be_passed_to_a_rest_parameter);let a,s=Number.POSITIVE_INFINITY,c=Number.NEGATIVE_INFINITY,l=Number.NEGATIVE_INFINITY,_=Number.POSITIVE_INFINITY;for(const e of t){const t=ML(e),r=jL(e);tl&&(l=t),n.length1&&(y=L(S,To,C,w)),y||(y=L(S,wo,C,w));const F=da(e);if(F.resolvedSignature!==li&&!n)return un.assert(F.resolvedSignature),F.resolvedSignature;if(y)return y;if(y=function(e,t,n,r,i){return un.assert(t.length>0),LB(e),r||1===t.length||t.some(e=>!!e.typeParameters)?function(e,t,n,r){const i=function(e,t){let n=-1,r=-1;for(let i=0;i=t)return i;a>r&&(r=a,n=i)}return n}(t,void 0===Ee?n.length:Ee),o=t[i],{typeParameters:a}=o;if(!a)return o;const s=mO(e)?e.typeArguments:void 0,c=s?Sh(o,function(e,t,n){const r=e.map(bJ);for(;r.length>t.length;)r.pop();for(;r.lengthe.thisParameter);let n;t.length&&(n=$O(t,t.map(CL)));const{min:r,max:i}=sT(e,WO),o=[];for(let t=0;taJ(e)?tIL(e,t))))}const a=B(e,e=>aJ(e)?ve(e.parameters):void 0);let s=128;if(0!==a.length){const t=Rv(Pb(B(e,_h),2));o.push(HO(a,t)),s|=1}return e.some(sJ)&&(s|=2),Ed(e[0].declaration,void 0,n,o,Bb(e.map(Gg)),void 0,r,s)}(t)}(e,S,T,!!n,r),F.resolvedSignature=y,f)if(!o&&p&&(o=_a.The_left_hand_side_of_an_instanceof_expression_must_be_assignable_to_the_first_argument_of_the_right_hand_side_s_Symbol_hasInstance_method),m)if(1===m.length||m.length>3){const t=m[m.length-1];let n;m.length>3&&(n=Zx(n,_a.The_last_overload_gave_the_following_error),n=Zx(n,_a.No_overload_matches_this_call)),o&&(n=Zx(n,o));const r=jO(e,T,t,wo,0,!0,()=>n);if(r)for(const e of r)t.declaration&&m.length>3&&aT(e,Rp(t.declaration,_a.The_last_overload_is_declared_here)),A(t,e),ho.add(e);else un.fail("No error for last overload signature")}else{const t=[];let n=0,r=Number.MAX_VALUE,i=0,a=0;for(const o of m){const s=jO(e,T,o,wo,0,!0,()=>Zx(void 0,_a.Overload_0_of_1_2_gave_the_following_error,a+1,S.length,kc(o)));s?(s.length<=r&&(r=s.length,i=a),n=Math.max(n,s.length),t.push(s)):un.fail("No error for 3 or fewer overload signatures"),a++}const s=n>1?t[i]:I(t);un.assert(s.length>0,"No errors reported for 3 or fewer overload signatures");let c=Zx(E(s,$p),_a.No_overload_matches_this_call);o&&(c=Zx(c,o));const l=[...O(s,e=>e.relatedInformation)];let _;if(v(s,e=>e.start===s[0].start&&e.length===s[0].length&&e.file===s[0].file)){const{file:e,start:t,length:n}=s[0];_={file:e,start:t,length:n,code:c.code,category:c.category,messageText:c,relatedInformation:l}}else _=zp(vd(e),j_(P=e)?dF(P.expression)?P.expression.name:P.expression:gF(P)?dF(P.tag)?P.tag.name:P.tag:bu(P)?P.tagName:P,c,l);A(m[0],_),ho.add(_)}else if(g)ho.add(UO(e,[g],T,o));else if(h)IO(h,e.typeArguments,!0,o);else if(!_){const n=N(t,e=>SO(e,x));0===n.length?ho.add(function(e,t,n,r){const i=n.length;if(1===t.length){const o=t[0],a=Tg(o.typeParameters),s=u(o.typeParameters);if(r){let t=Zx(void 0,_a.Expected_0_type_arguments_but_got_1,ai?a=Math.min(a,t):n1?b(s,e=>o_(e)&&Dd(e.body)):void 0;if(c){const e=Eg(c),n=!e.typeParameters;L([e],wo,n)&&aT(t,Rp(c,_a.The_call_would_have_succeeded_against_this_implementation_but_implementation_signatures_of_overloads_are_not_externally_visible))}m=i,g=o,h=a}function L(t,n,r,i=!1){if(m=void 0,g=void 0,h=void 0,r){const r=t[0];if($(x)||!kO(e,T,r,i))return;return jO(e,T,r,n,0,!1,void 0)?void(m=[r]):r}for(let r=0;r!!(4&e.flags)))return zo(e,_a.Cannot_create_an_instance_of_an_abstract_class),hO(e);const o=r.symbol&&mx(r.symbol);return o&&Nv(o,64)?(zo(e,_a.Cannot_create_an_instance_of_an_abstract_class),hO(e)):VO(e,i,t,n,0)}const o=mm(r,0);if(o.length){const r=VO(e,o,t,n,0);return ne||(r.declaration&&!sL(r.declaration)&&Gg(r)!==ln&&zo(e,_a.Only_a_void_function_can_be_called_with_the_new_keyword),Rg(r)===ln&&zo(e,_a.A_function_that_is_called_with_the_new_keyword_cannot_have_a_this_type_that_is_void)),r}return eL(e.expression,r,1),hO(e)}function QO(e,t){return Qe(e)?$(e,e=>QO(e,t)):1048576===e.compositeKind?$(e.compositeSignatures,t):t(e)}function YO(e,t){const n=uu(t);if(!u(n))return!1;const r=n[0];if(2097152&r.flags){const t=qd(r.types);let n=0;for(const i of r.types){if(!t[n]&&3&gx(i)){if(i.symbol===e)return!0;if(YO(e,i))return!0}n++}return!1}return r.symbol===e||YO(e,r)}function ZO(e,t,n){let r;const i=0===n,o=PM(t),a=o&&mm(o,n).length>0;if(1048576&t.flags){const e=t.types;let o=!1;for(const a of e)if(0!==mm(a,n).length){if(o=!0,r)break}else if(r||(r=Zx(r,i?_a.Type_0_has_no_call_signatures:_a.Type_0_has_no_construct_signatures,Tc(a)),r=Zx(r,i?_a.Not_all_constituents_of_type_0_are_callable:_a.Not_all_constituents_of_type_0_are_constructable,Tc(t))),o)break;o||(r=Zx(void 0,i?_a.No_constituent_of_type_0_is_callable:_a.No_constituent_of_type_0_is_constructable,Tc(t))),r||(r=Zx(r,i?_a.Each_member_of_the_union_type_0_has_signatures_but_none_of_those_signatures_are_compatible_with_each_other:_a.Each_member_of_the_union_type_0_has_construct_signatures_but_none_of_those_signatures_are_compatible_with_each_other,Tc(t)))}else r=Zx(r,i?_a.Type_0_has_no_call_signatures:_a.Type_0_has_no_construct_signatures,Tc(t));let s=i?_a.This_expression_is_not_callable:_a.This_expression_is_not_constructable;if(fF(e.parent)&&0===e.parent.arguments.length){const{resolvedSymbol:t}=da(e);t&&32768&t.flags&&(s=_a.This_expression_is_not_callable_because_it_is_a_get_accessor_Did_you_mean_to_use_it_without)}return{messageChain:Zx(r,s),relatedMessage:a?_a.Did_you_forget_to_use_await:void 0}}function eL(e,t,n,r){const{messageChain:i,relatedMessage:o}=ZO(e,t,n),a=zp(vd(e),e,i);if(o&&aT(a,Rp(e,o)),fF(e.parent)){const{start:t,length:n}=zO(e.parent);a.start=t,a.length=n}ho.add(a),tL(t,n,r?aT(a,r):a)}function tL(e,t,n){if(!e.symbol)return;const r=ua(e.symbol).originatingImport;if(r&&!_f(r)){const i=mm(P_(ua(e.symbol).target),t);if(!i||!i.length)return;aT(n,Rp(r,_a.Type_originates_at_this_import_A_namespace_style_import_cannot_be_called_or_constructed_and_will_cause_a_failure_at_runtime_Consider_using_a_default_import_or_import_require_here_instead))}}function nL(e,t){const n=rI(e),r=n&&hs(n),i=r&&pa(r,jB.Element,788968),o=i&&xe.symbolToEntityName(i,788968,e),a=mw.createFunctionTypeNode(void 0,[mw.createParameterDeclaration(void 0,void 0,"props",void 0,xe.typeToTypeNode(t,e))],o?mw.createTypeReferenceNode(o,void 0):mw.createKeywordTypeNode(133)),s=Xo(1,"props");return s.links.type=t,Ed(a,void 0,void 0,[s],i?Au(i):Et,void 0,1,0)}function rL(e){const t=da(vd(e));if(void 0!==t.jsxFragmentType)return t.jsxFragmentType;const n=jo(e);if(2!==j.jsx&&void 0===j.jsxFragmentFactory||"null"===n)return t.jsxFragmentType=wt;const r=1!==j.jsx&&3!==j.jsx,i=ho?_a.Using_JSX_fragments_requires_fragment_factory_0_to_be_in_scope_but_it_could_not_be_found:void 0,o=nI(e)??Ue(e,n,r?111551:111167,i,!0);if(void 0===o)return t.jsxFragmentType=Et;if(o.escapedName===RB.Fragment)return t.jsxFragmentType=P_(o);const a=2097152&o.flags?Ha(o):o,s=o&&hs(a),c=s&&pa(s,RB.Fragment,2),l=c&&P_(c);return t.jsxFragmentType=void 0===l?Et:l}function iL(e,t,n){const r=$E(e);let i;if(r)i=rL(e);else{if(GA(e.tagName)){const t=lI(e),n=nL(e,t);return OS(Aj(e.attributes,AA(n,e),void 0,0),t,e.tagName,e.attributes),u(e.typeArguments)&&(d(e.typeArguments,AB),ho.add(Bp(vd(e),e.typeArguments,_a.Expected_0_type_arguments_but_got_1,0,u(e.typeArguments)))),n}i=eM(e.tagName)}const o=Sf(i);if(al(o))return hO(e);const a=aI(i,e);return GO(i,o,a.length,0)?gO(e):0===a.length?(r?zo(e,_a.JSX_element_type_0_does_not_have_any_construct_or_call_signatures,Xd(e)):zo(e.tagName,_a.JSX_element_type_0_does_not_have_any_construct_or_call_signatures,Xd(e.tagName)),hO(e)):VO(e,a,t,n,0)}function oL(e,t,n){switch(e.kind){case 214:return function(e,t,n){if(108===e.expression.kind){const r=MP(e.expression);if(il(r)){for(const t of e.arguments)eM(t);return si}if(!al(r)){const i=yh(Xf(e));if(i)return VO(e,iu(r,i.typeArguments,i),t,n,0)}return gO(e)}let r,i=eM(e.expression);if(gl(e)){const t=bw(i,e.expression);r=t===i?0:bl(e)?16:8,i=t}else r=0;if(i=PI(i,e.expression,EI),i===dn)return _i;const o=Sf(i);if(al(o))return hO(e);const a=mm(o,0),s=mm(o,1).length;if(GO(i,o,a.length,s))return!al(i)&&e.typeArguments&&zo(e,_a.Untyped_function_calls_may_not_accept_type_arguments),gO(e);if(!a.length){if(s)zo(e,_a.Value_of_type_0_is_not_callable_Did_you_mean_to_include_new,Tc(i));else{let t;if(1===e.arguments.length){const n=vd(e).text;Va(n.charCodeAt(Qa(n,e.expression.end,!0)-1))&&(t=Rp(e.expression,_a.Are_you_missing_a_semicolon))}eL(e.expression,o,0,t)}return hO(e)}return 8&n&&!e.typeArguments&&a.some(KO)?(Wj(e,n),li):a.some(e=>Em(e.declaration)&&!!Rc(e.declaration))?(zo(e,_a.Value_of_type_0_is_not_callable_Did_you_mean_to_include_new,Tc(i)),hO(e)):VO(e,a,t,n,r)}(e,t,n);case 215:return XO(e,t,n);case 216:return function(e,t,n){const r=eM(e.tag),i=Sf(r);if(al(i))return hO(e);const o=mm(i,0),a=mm(i,1).length;if(GO(r,i,o.length,a))return gO(e);if(!o.length){if(_F(e.parent)){const t=Rp(e.tag,_a.It_is_likely_that_you_are_missing_a_comma_to_separate_these_two_template_expressions_They_form_a_tagged_template_expression_which_cannot_be_invoked);return ho.add(t),hO(e)}return eL(e.tag,i,0),hO(e)}return VO(e,o,t,n,0)}(e,t,n);case 171:return function(e,t,n){const r=eM(e.expression),i=Sf(r);if(al(i))return hO(e);const o=mm(i,0),a=mm(i,1).length;if(GO(r,i,o.length,a))return gO(e);if(s=e,(c=o).length&&v(c,e=>0===e.minArgumentCount&&!aJ(e)&&e.parameters.length!!e.typeParameters&&SO(e,n)),e=>{const t=IO(e,n,!0);return t?dh(e,t,Em(e.declaration)):e})}}function kL(e,t,n){const r=eM(e,n),i=Pk(t);return al(i)?i:(OS(r,i,uc(t.parent,e=>239===e.kind||351===e.kind),e,_a.Type_0_does_not_satisfy_the_expected_type_1),r)}function SL(e){switch(e.keywordToken){case 102:return Ky();case 105:const t=TL(e);return al(t)?Et:function(e){const t=Xo(0,"NewTargetExpression"),n=Xo(4,"target",8);n.parent=t,n.links.type=e;const r=Gu([n]);return t.members=r,$s(t,r,l,l,l)}(t);default:un.assertNever(e.keywordToken)}}function TL(e){const t=rm(e);return t?177===t.kind?P_(ks(t.parent)):P_(ks(t)):(zo(e,_a.Meta_property_0_is_only_allowed_in_the_body_of_a_function_declaration_function_expression_or_constructor,"new.target"),Et)}function CL(e){const t=e.valueDeclaration;return Pl(P_(e),!1,!!t&&(Eu(t)||XT(t)))}function wL(e,t,n){switch(e.name.kind){case 80:{const r=e.name.escapedText;return e.dotDotDotToken?12&n?r:`${r}_${t}`:3&n?r:`${r}_n`}case 208:if(e.dotDotDotToken){const r=e.name.elements,i=tt(ye(r),lF),o=r.length-((null==i?void 0:i.dotDotDotToken)?1:0);if(t=r-1)return t===r-1?o:Rv(Ax(o,Wt));const a=[],s=[],c=[];for(let n=t;n!(1&e)),i=r<0?n.target.fixedLength:r;i>0&&(t=e.parameters.length-1+i)}}if(void 0===t){if(!n&&32&e.flags)return 0;t=e.minArgumentCount}if(r)return t;for(let n=t-1;n>=0&&!(131072&GD(AL(e,n),bO).flags);n--)t=n;e.resolvedMinArgumentCount=t}return e.resolvedMinArgumentCount}function RL(e){if(aJ(e)){const t=P_(e.parameters[e.parameters.length-1]);return!rw(t)||!!(12&t.target.combinedFlags)}return!1}function BL(e){if(aJ(e)){const t=P_(e.parameters[e.parameters.length-1]);if(!rw(t))return il(t)?cr:t;if(12&t.target.combinedFlags)return ib(t,t.target.fixedLength)}}function JL(e){const t=BL(e);return!t||OC(t)||il(t)?void 0:t}function zL(e){return qL(e,_n)}function qL(e,t){return e.parameters.length>0?AL(e,0):t}function UL(e,t,n){const r=e.parameters.length-(aJ(e)?1:0);for(let i=0;i=0);const i=PD(e.parent)?P_(ks(e.parent.parent)):SJ(e.parent),o=PD(e.parent)?jt:TJ(e.parent),a=mk(r),s=Qo("target",i),c=Qo("propertyKey",o),l=Qo("parameterIndex",a);n.decoratorSignature=OM(void 0,void 0,[s,c,l],ln);break}case 175:case 178:case 179:case 173:{const e=t;if(!u_(e.parent))break;const r=Qo("target",SJ(e)),i=Qo("propertyKey",TJ(e)),o=ND(e)?ln:Sv(bJ(e));if(!ND(t)||Iv(t)){const t=Qo("descriptor",Sv(bJ(e)));n.decoratorSignature=OM(void 0,void 0,[r,i,t],Pb([o,ln]))}else n.decoratorSignature=OM(void 0,void 0,[r,i],Pb([o,ln]));break}}return n.decoratorSignature===si?void 0:n.decoratorSignature}(e):KL(e)}function XL(e){const t=ev(!0);return t!==On?ay(t,[e=AM(FM(e))||Ot]):Ot}function QL(e){const t=tv(!0);return t!==On?ay(t,[e=AM(FM(e))||Ot]):Ot}function YL(e,t){const n=XL(t);return n===Ot?(zo(e,_f(e)?_a.A_dynamic_import_call_returns_a_Promise_Make_sure_you_have_a_declaration_for_Promise_or_include_ES2015_in_your_lib_option:_a.An_async_function_or_method_must_return_a_Promise_Make_sure_you_have_a_declaration_for_Promise_or_include_ES2015_in_your_lib_option),Et):(nv(!0)||zo(e,_f(e)?_a.A_dynamic_import_call_in_ES5_requires_the_Promise_constructor_Make_sure_you_have_a_declaration_for_the_Promise_constructor_or_include_ES2015_in_your_lib_option:_a.An_async_function_or_method_in_ES5_requires_the_Promise_constructor_Make_sure_you_have_a_declaration_for_the_Promise_constructor_or_include_ES2015_in_your_lib_option),n)}function ZL(e,t){if(!e.body)return Et;const n=Oh(e),r=!!(2&n),i=!!(1&n);let o,a,s,c=ln;if(242!==e.body.kind)o=Ij(e.body,t&&-9&t),r&&(o=FM(CM(o,!1,e,_a.The_return_type_of_an_async_function_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member)));else if(i){const n=oj(e,t);n?n.length>0&&(o=Pb(n,2)):c=_n;const{yieldTypes:r,nextTypes:i}=function(e,t){const n=[],r=[],i=!!(2&Oh(e));return Ff(e.body,e=>{const o=e.expression?eM(e.expression,t):Mt;let a;if(ce(n,tj(e,o,wt,i)),e.asteriskToken){const t=ER(o,i?19:17,e.expression);a=t&&t.nextType}else a=xA(e,void 0);a&&ce(r,a)}),{yieldTypes:n,nextTypes:r}}(e,t);a=$(r)?Pb(r,2):void 0,s=$(i)?Bb(i):void 0}else{const r=oj(e,t);if(!r)return 2&n?YL(e,_n):_n;if(0===r.length){const t=eA(e,void 0),r=t&&32768&(KR(t,n)||ln).flags?jt:ln;return 2&n?YL(e,r):r}o=Pb(r,2)}if(o||a||s){if(a&&zw(e,a,3),o&&zw(e,o,1),s&&zw(e,s,2),o&&KC(o)||a&&KC(a)||s&&KC(s)){const t=LA(e),n=t?t===Eg(e)?i?void 0:o:yA(Gg(t),e,void 0):void 0;i?(a=nw(a,n,0,r),o=nw(o,n,1,r),s=nw(s,n,2,r)):o=function(e,t,n){return e&&KC(e)&&(e=tw(e,t?n?TM(t):t:void 0)),e}(o,n,r)}a&&(a=jw(a)),o&&(o=jw(o)),s&&(s=jw(s))}return i?ej(a||_n,o||c,s||ZP(2,e)||Ot,r):r?XL(o||c):o||c}function ej(e,t,n,r){const i=r?yi:vi,o=i.getGlobalGeneratorType(!1);if(e=i.resolveIterationType(e,void 0)||Ot,t=i.resolveIterationType(t,void 0)||Ot,o===On){const r=i.getGlobalIterableIteratorType(!1);return r!==On?kv(r,[e,t,n]):(i.getGlobalIterableIteratorType(!0),Nn)}return kv(o,[e,t,n])}function tj(e,t,n,r){if(t===dn)return dn;const i=e.expression||e,o=e.asteriskToken?SR(r?19:17,t,n,i):t;return r?PM(o,i,e.asteriskToken?_a.Type_of_iterated_elements_of_a_yield_Asterisk_operand_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member:_a.Type_of_yield_operand_in_an_async_generator_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member):o}function nj(e,t,n){let r=0;for(let i=0;i=t?n[i]:void 0;r|=void 0!==o?$B.get(o)||32768:0}return r}function rj(e){const t=da(e);if(void 0===t.isExhaustive){t.isExhaustive=0;const n=function(e){if(222===e.expression.kind){const t=gD(e);if(!t)return!1;const n=ff(Ij(e.expression.expression)),r=nj(0,0,t);return 3&n.flags?!(556800&~r):!UD(n,e=>HN(e,r)===r)}const t=ff(Ij(e.expression));if(!XC(t))return!1;const n=mD(e);return!(!n.length||$(n,HC))&&(r=nF(t,dk),i=n,1048576&r.flags?!d(r.types,e=>!T(i,e)):T(i,r));var r,i}(e);0===t.isExhaustive&&(t.isExhaustive=n)}else 0===t.isExhaustive&&(t.isExhaustive=!1);return t.isExhaustive}function ij(e){return e.endFlowNode&&GF(e.endFlowNode)}function oj(e,t){const n=Oh(e),r=[];let i=ij(e),o=!1;if(Df(e.body,a=>{let s=a.expression;if(s){if(s=ah(s,!0),2&n&&224===s.kind&&(s=ah(s.expression,!0)),214===s.kind&&80===s.expression.kind&&Ij(s.expression).symbol===xs(e.symbol)&&(!RT(e.symbol.valueDeclaration)||nE(s.expression)))return void(o=!0);let i=Ij(s,t&&-9&t);2&n&&(i=FM(CM(i,!1,e,_a.The_return_type_of_an_async_function_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member))),131072&i.flags&&(o=!0),ce(r,i)}else i=!0}),0!==r.length||i||!o&&!function(e){switch(e.kind){case 219:case 220:return!0;case 175:return 211===e.parent.kind;default:return!1}}(e))return!(H&&r.length&&i)||sL(e)&&r.some(t=>t.symbol===e.symbol)||ce(r,jt),r}function aj(e,t){a(function(){const n=Oh(e),r=t&&KR(t,n);if(r&&(gj(r,16384)||32769&r.flags))return;if(174===e.kind||Nd(e.body)||242!==e.body.kind||!ij(e))return;const i=1024&e.flags,o=gv(e)||e;if(r&&131072&r.flags)zo(o,_a.A_function_returning_never_cannot_have_a_reachable_end_point);else if(r&&!i)zo(o,_a.A_function_whose_declared_type_is_neither_undefined_void_nor_any_must_return_a_value);else if(r&&H&&!FS(jt,r))zo(o,_a.Function_lacks_ending_return_statement_and_return_type_does_not_include_undefined);else if(j.noImplicitReturns){if(!r){if(!i)return;const t=Gg(Eg(e));if(XR(e,t))return}zo(o,_a.Not_all_code_paths_return_a_value)}})}function sj(e,t){if(un.assert(175!==e.kind||Jf(e)),LB(e),vF(e)&&uR(e,e.name),t&&4&t&&vS(e)){if(!gv(e)&&!LT(e)){const n=jA(e);if(n&&eN(Gg(n))){const n=da(e);if(n.contextFreeType)return n.contextFreeType;const r=ZL(e,t),i=Ed(void 0,void 0,void 0,l,r,void 0,0,64),o=$s(e.symbol,P,[i],l,l);return o.objectFlags|=262144,n.contextFreeType=o}}return Ln}return ZJ(e)||219!==e.kind||oz(e),function(e,t){const n=da(e);if(!(64&n.flags)){const r=jA(e);if(!(64&n.flags)){n.flags|=64;const i=fe(mm(P_(ks(e)),0));if(!i)return;if(vS(e))if(r){const n=PA(e);let o;if(t&&2&t){UL(i,r,n);const e=BL(r);e&&262144&e.flags&&(o=aS(r,n.nonFixingMapper))}o||(o=n?aS(r,n.mapper):r),function(e,t){if(t.typeParameters){if(e.typeParameters)return;e.typeParameters=t.typeParameters}if(t.thisParameter){const n=e.thisParameter;(!n||n.valueDeclaration&&!n.valueDeclaration.type)&&(n||(e.thisParameter=ww(t.thisParameter,void 0)),VL(e.thisParameter,P_(t.thisParameter)))}const n=e.parameters.length-(aJ(e)?1:0);for(let r=0;re.parameters.length){const n=PA(e);t&&2&t&&UL(i,r,n)}if(r&&!Zg(e)&&!i.resolvedReturnType){const n=ZL(e,t);i.resolvedReturnType||(i.resolvedReturnType=n)}iM(e)}}}(e,t),P_(ks(e))}function cj(e,t,n,r=!1){if(!FS(t,yn)){const i=r&&SM(t);return Wo(e,!!i&&FS(i,yn),n),!1}return!0}function lj(e){if(!fF(e))return!1;if(!ng(e))return!1;const t=Ij(e.arguments[2]);if(el(t,"value")){const e=pm(t,"writable"),n=e&&P_(e);if(!n||n===Ht||n===Qt)return!0;if(e&&e.valueDeclaration&&rP(e.valueDeclaration)){const t=eM(e.valueDeclaration.initializer);if(t===Ht||t===Qt)return!0}return!1}return!pm(t,"set")}function _j(e){return!!(8&rx(e)||4&e.flags&&8&ix(e)||3&e.flags&&6&hI(e)||98304&e.flags&&!(65536&e.flags)||8&e.flags||$(e.declarations,lj))}function uj(e,t,n){var r,i;if(0===n)return!1;if(_j(t)){if(4&t.flags&&Sx(e)&&110===e.expression.kind){const n=iE(e);if(!n||177!==n.kind&&!sL(n))return!0;if(t.valueDeclaration){const e=NF(t.valueDeclaration),o=n.parent===t.valueDeclaration.parent,a=n===t.valueDeclaration.parent,s=e&&(null==(r=t.parent)?void 0:r.valueDeclaration)===n.parent,c=e&&(null==(i=t.parent)?void 0:i.valueDeclaration)===n;return!(o||a||s||c)}}return!0}if(Sx(e)){const t=ah(e.expression);if(80===t.kind){const e=da(t).resolvedSymbol;if(2097152&e.flags){const t=Ca(e);return!!t&&275===t.kind}}}return!1}function dj(e,t,n){const r=NA(e,39);return 80===r.kind||Sx(r)?!(64&r.flags&&(zo(e,n),1)):(zo(e,t),!1)}function pj(e){let t=!1;const n=Yf(e);if(n&&ED(n))zo(e,TF(e)?_a.await_expression_cannot_be_used_inside_a_class_static_block:_a.await_using_statements_cannot_be_used_inside_a_class_static_block),t=!0;else if(!(65536&e.flags))if(nm(e)){const n=vd(e);if(!vz(n)){let r;if(!hp(n,j)){r??(r=Gp(n,e.pos));const i=TF(e)?_a.await_expressions_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_this_file_has_no_imports_or_exports_Consider_adding_an_empty_export_to_make_this_file_a_module:_a.await_using_statements_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_this_file_has_no_imports_or_exports_Consider_adding_an_empty_export_to_make_this_file_a_module,o=Gx(n,r.start,r.length,i);ho.add(o),t=!0}switch(R){case 100:case 101:case 102:case 199:if(1===n.impliedNodeFormat){r??(r=Gp(n,e.pos)),ho.add(Gx(n,r.start,r.length,_a.The_current_file_is_a_CommonJS_module_and_cannot_use_await_at_the_top_level)),t=!0;break}case 7:case 99:case 200:case 4:if(M>=4)break;default:r??(r=Gp(n,e.pos));const i=TF(e)?_a.Top_level_await_expressions_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_node16_node18_node20_nodenext_or_preserve_and_the_target_option_is_set_to_es2017_or_higher:_a.Top_level_await_using_statements_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_node16_node18_node20_nodenext_or_preserve_and_the_target_option_is_set_to_es2017_or_higher;ho.add(Gx(n,r.start,r.length,i)),t=!0}}}else{const r=vd(e);if(!vz(r)){const i=Gp(r,e.pos),o=TF(e)?_a.await_expressions_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules:_a.await_using_statements_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules,a=Gx(r,i.start,i.length,o);!n||177===n.kind||2&Oh(n)||aT(a,Rp(n,_a.Did_you_mean_to_mark_this_function_as_async)),ho.add(a),t=!0}}return TF(e)&&YP(e)&&(zo(e,_a.await_expressions_cannot_be_used_in_a_parameter_initializer),t=!0),t}function fj(e){return gj(e,2112)?hj(e,3)||gj(e,296)?yn:$t:Wt}function mj(e,t){if(gj(e,t))return!0;const n=ff(e);return!!n&&gj(n,t)}function gj(e,t){if(e.flags&t)return!0;if(3145728&e.flags){const n=e.types;for(const e of n)if(gj(e,t))return!0}return!1}function hj(e,t,n){return!!(e.flags&t)||!(n&&114691&e.flags)&&(!!(296&t)&&FS(e,Wt)||!!(2112&t)&&FS(e,$t)||!!(402653316&t)&&FS(e,Vt)||!!(528&t)&&FS(e,sn)||!!(16384&t)&&FS(e,ln)||!!(131072&t)&&FS(e,_n)||!!(65536&t)&&FS(e,zt)||!!(32768&t)&&FS(e,jt)||!!(4096&t)&&FS(e,cn)||!!(67108864&t)&&FS(e,mn))}function yj(e,t,n){return 1048576&e.flags?v(e.types,e=>yj(e,t,n)):hj(e,t,n)}function vj(e){return!!(16&gx(e))&&!!e.symbol&&bj(e.symbol)}function bj(e){return!!(128&e.flags)}function xj(e){const t=LR("hasInstance");if(yj(e,67108864)){const n=pm(e,t);if(n){const e=P_(n);if(e&&0!==mm(e,0).length)return e}}}function kj(e,t,n,r,i=!1){const o=e.properties,a=o[n];if(304===a.kind||305===a.kind){const e=a.name,n=Hb(e);if(sC(n)){const e=pm(t,cC(n));e&&(oO(e,a,i),vI(a,!1,!0,t,e))}const r=xl(a,Ax(t,n,32|(MA(a)?16:0),e));return Tj(305===a.kind?a:a.initializer,r)}if(306===a.kind){if(!(nib(e,n)):Rv(r),i);zo(o.operatorToken,_a.A_rest_element_cannot_have_an_initializer)}}}function Tj(e,t,n,r){let i;if(305===e.kind){const r=e;r.objectAssignmentInitializer&&(H&&!KN(eM(r.objectAssignmentInitializer),16777216)&&(t=XN(t,524288)),function(e,t,n,r){const i=t.kind;if(64===i&&(211===e.kind||210===e.kind))return Tj(e,eM(n,r),r,110===n.kind);let o;o=Kv(i)?xR(e,r):eM(e,r);Dj(e,t,n,o,eM(n,r),r,void 0)}(r.name,r.equalsToken,r.objectAssignmentInitializer,n)),i=e.name}else i=e;return 227===i.kind&&64===i.operatorToken.kind&&(pe(i,n),i=i.left,H&&(t=XN(t,524288))),211===i.kind?function(e,t,n){const r=e.properties;if(H&&0===r.length)return AI(t,e);for(let i=0;i=32&&Vo(aP(rh(n.parent.parent)),s||t,_a.This_operation_can_be_simplified_This_shift_is_identical_to_0_1_2,Xd(e),Fa(c),r.value%32)}return l}case 40:case 65:if(r===dn||i===dn)return dn;let h;if(hj(r,402653316)||hj(i,402653316)||(r=AI(r,e),i=AI(i,n)),hj(r,296,!0)&&hj(i,296,!0)?h=Wt:hj(r,2112,!0)&&hj(i,2112,!0)?h=$t:hj(r,402653316,!0)||hj(i,402653316,!0)?h=Vt:(il(r)||il(i))&&(h=al(r)||al(i)?Et:wt),h&&!d(c))return h;if(!h){const e=402655727;return m((t,n)=>hj(t,e)&&hj(n,e)),wt}return 65===c&&p(h),h;case 30:case 32:case 33:case 34:return d(c)&&(r=YC(AI(r,e)),i=YC(AI(i,n)),f((e,t)=>{if(il(e)||il(t))return!0;const n=FS(e,yn),r=FS(t,yn);return n&&r||!n&&!r&&AS(e,t)})),sn;case 35:case 36:case 37:case 38:if(!(o&&64&o)){if((Ol(e)||Ol(n))&&(!Em(e)||37===c||38===c)){const e=35===c||37===c;zo(s,_a.This_condition_will_always_return_0_since_JavaScript_compares_objects_by_reference_not_value,e?"false":"true")}!function(e,t,n,r){const i=g(ah(n)),o=g(ah(r));if(i||o){const a=zo(e,_a.This_condition_will_always_return_0,Fa(37===t||35===t?97:112));if(i&&o)return;const s=38===t||36===t?Fa(54):"",c=i?r:n,l=ah(c);aT(a,Rp(c,_a.Did_you_mean_0,`${s}Number.isNaN(${ab(l)?Mp(l):"..."})`))}}(s,c,e,n),f((e,t)=>wj(e,t)||wj(t,e))}return sn;case 104:return function(e,t,n,r,i){if(n===dn||r===dn)return dn;!il(n)&&yj(n,402784252)&&zo(e,_a.The_left_hand_side_of_an_instanceof_expression_must_be_of_type_any_an_object_type_or_a_type_parameter),un.assert(mb(e.parent));const o=aL(e.parent,void 0,i);return o===li?dn:(IS(Gg(o),sn,t,_a.An_object_s_Symbol_hasInstance_method_must_return_a_boolean_value_for_it_to_be_used_on_the_right_hand_side_of_an_instanceof_expression),sn)}(e,n,r,i,o);case 103:return function(e,t,n,r){return n===dn||r===dn?dn:(sD(e)?((Me===An||!!(2097152&e.flags)&&XS(ff(e)))&&zo(t,_a.Type_0_may_represent_a_primitive_value_which_is_not_permitted_as_the_right_operand_of_the_in_operator,Tc(r)),sn)}(e,n,r,i);case 56:case 77:{const e=KN(r,4194304)?Pb([(_=H?r:QC(i),nF(_,uw)),i]):r;return 77===c&&p(i),e}case 57:case 76:{const e=KN(r,8388608)?Pb([fw(_w(r)),i],2):r;return 76===c&&p(i),e}case 61:case 78:{const e=KN(r,262144)?Pb([fw(r),i],2):r;return 78===c&&p(i),e}case 64:const y=NF(e.parent)?tg(e.parent):0;return function(e,t){if(2===e)for(const e of Dp(t)){const t=P_(e);if(t.symbol&&32&t.symbol.flags){const t=e.escapedName,n=Ue(e.valueDeclaration,t,788968,void 0,!1);(null==n?void 0:n.declarations)&&n.declarations.some(VP)&&(aa(n,_a.Duplicate_identifier_0,mc(t),e),aa(e,_a.Duplicate_identifier_0,mc(t),n))}}}(y,i),function(t){var r;switch(t){case 2:return!0;case 1:case 5:case 6:case 3:case 4:const t=Ss(e),i=$m(n);return!!i&&uF(i)&&!!(null==(r=null==t?void 0:t.exports)?void 0:r.size);default:return!1}}(y)?(524288&i.flags&&(2===y||6===y||GS(i)||$N(i)||1&gx(i))||p(i),r):(p(i),i);case 28:if(!j.allowUnreachableCode&&Cj(e)&&!(218===(l=e.parent).parent.kind&&zN(l.left)&&"0"===l.left.text&&(fF(l.parent.parent)&&l.parent.parent.expression===l.parent||216===l.parent.parent.kind)&&(Sx(l.right)||aD(l.right)&&"eval"===l.right.escapedText))){const t=vd(e),n=Qa(t.text,e.pos);t.parseDiagnostics.some(e=>e.code===_a.JSX_expressions_must_have_one_parent_element.code&&Ps(e,n))||zo(e,_a.Left_side_of_comma_operator_is_unused_and_has_no_side_effects)}return i;default:return un.fail()}var l,_;function u(e,t){return hj(e,2112)&&hj(t,2112)}function d(t){const o=mj(r,12288)?e:mj(i,12288)?n:void 0;return!o||(zo(o,_a.The_0_operator_cannot_be_applied_to_type_symbol,Fa(t)),!1)}function p(i){eb(c)&&a(function(){let o=r;if(rz(t.kind)&&212===e.kind&&(o=OI(e,void 0,!0)),dj(e,_a.The_left_hand_side_of_an_assignment_expression_must_be_a_variable_or_a_property_access,_a.The_left_hand_side_of_an_assignment_expression_may_not_be_an_optional_property_access)){let t;if(_e&&dF(e)&&gj(i,32768)){const n=el(Qj(e.expression),e.name.escapedText);wT(i,n)&&(t=_a.Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_type_of_the_target)}OS(i,o,e,n,t)}})}function f(e){return!e(r,i)&&(m(e),!0)}function m(e){let n=!1;const o=s||t;if(e){const t=AM(r),o=AM(i);n=!(t===r&&o===i)&&!(!t||!o)&&e(t,o)}let a=r,c=i;!n&&e&&([a,c]=function(e,t,n){let r=e,i=t;const o=QC(e),a=QC(t);return n(o,a)||(r=o,i=a),[r,i]}(r,i,e));const[l,_]=wc(a,c);(function(e,n,r,i){switch(t.kind){case 37:case 35:case 38:case 36:return Wo(e,n,_a.This_comparison_appears_to_be_unintentional_because_the_types_0_and_1_have_no_overlap,r,i);default:return}})(o,n,l,_)||Wo(o,n,_a.Operator_0_cannot_be_applied_to_types_1_and_2,Fa(t.kind),l,_)}function g(e){if(aD(e)&&"NaN"===e.escapedText){const t=Wr||(Wr=zy("NaN",!1));return!!t&&t===NN(e)}return!1}}function Fj(e){const t=e.parent;return yF(t)&&Fj(t)||pF(t)&&t.argumentExpression===e}function Ej(e){const t=[e.head.text],n=[];for(const r of e.templateSpans){const e=eM(r.expression);mj(e,12288)&&zo(r.expression,_a.Implicit_conversion_of_a_symbol_to_a_string_will_fail_at_runtime_Consider_wrapping_this_expression_in_String),t.push(r.literal.text),n.push(FS(e,vn)?e:Vt)}const r=216!==e.parent.kind&&Ce(e).value;return r?uk(fk(r)):Jj(e)||Fj(e)||UD(xA(e,void 0)||Ot,Pj)?ex(t,n):Vt}function Pj(e){return!!(134217856&e.flags||58982400&e.flags&&gj(pf(e)||Ot,402653316))}function Aj(e,t,n,r){const i=function(e){return GE(e)&&!qE(e.parent)?e.parent.parent:e}(e);wA(i,t,!1),function(e,t){Oi[ji]=e,Li[ji]=t,ji++}(i,n);const o=eM(e,1|r|(n?2:0));n&&n.intraExpressionInferenceSites&&(n.intraExpressionInferenceSites=void 0);const a=gj(o,2944)&&Bj(o,yA(t,e,void 0))?dk(o):o;return ji--,Oi[ji]=void 0,Li[ji]=void 0,FA(),a}function Ij(e,t){if(t)return eM(e,t);const n=da(e);if(!n.resolvedType){const r=Si,i=ri;Si=Ti,ri=void 0,n.resolvedType=eM(e,t),ri=i,Si=r}return n.resolvedType}function Oj(e){return 217===(e=ah(e,!0)).kind||235===e.kind||TA(e)}function Lj(e,t,n){const r=Vm(e);if(Em(e)){const n=eC(e);if(n)return kL(r,n,t)}const i=Yj(r)||(n?Aj(r,n,void 0,t||0):Ij(r,t));if(TD(lF(e)?nc(e):e)){if(207===e.name.kind&&xN(i))return function(e,t){let n;for(const r of t.elements)if(r.initializer){const t=jj(r);t&&!pm(e,t)&&(n=ie(n,r))}if(!n)return e;const r=Gu();for(const t of Dp(e))r.set(t.escapedName,t);for(const e of n){const t=Xo(16777220,jj(e));t.links.type=Yl(e,!1,!1),r.set(t.escapedName,t)}const i=$s(e.symbol,r,l,l,Jm(e));return i.objectFlags=e.objectFlags,i}(i,e.name);if(208===e.name.kind&&rw(i))return function(e,t){if(12&e.target.combinedFlags||dy(e)>=t.elements.length)return e;const n=t.elements,r=xb(e).slice(),i=e.target.elementFlags.slice();for(let t=dy(e);tBj(e,t));if(58982400&t.flags){const n=pf(t)||Ot;return gj(n,4)&&gj(e,128)||gj(n,8)&&gj(e,256)||gj(n,64)&&gj(e,2048)||gj(n,4096)&&gj(e,8192)||Bj(e,n)}return!!(406847616&t.flags&&gj(e,128)||256&t.flags&&gj(e,256)||2048&t.flags&&gj(e,2048)||512&t.flags&&gj(e,512)||8192&t.flags&&gj(e,8192))}return!1}function Jj(e){const t=e.parent;return W_(t)&&kl(t.type)||TA(t)&&kl(CA(t))||hL(e)&&rf(xA(e,0))||(yF(t)||_F(t)||PF(t))&&Jj(t)||(rP(t)||iP(t)||qF(t))&&Jj(t.parent)}function zj(e,t,n){const r=eM(e,t,n);return Jj(e)||Of(e)?dk(r):Oj(e)?r:tw(r,yA(xA(e,void 0),e,void 0))}function qj(e,t){return 168===e.name.kind&&BA(e.name),zj(e.initializer,t)}function Uj(e,t){return dz(e),168===e.name.kind&&BA(e.name),Vj(e,sj(e,t),t)}function Vj(e,t,n){if(n&&10&n){const r=NO(t,0,!0),i=NO(t,1,!0),o=r||i;if(o&&o.typeParameters){const t=hA(e,2);if(t){const i=NO(fw(t),r?0:1,!1);if(i&&!i.typeParameters){if(8&n)return Wj(e,n),Ln;const t=PA(e),r=t.signature&&Gg(t.signature),a=r&&wO(r);if(a&&!a.typeParameters&&!v(t.inferences,$j)){const e=function(e,t){const n=[];let r,i;for(const o of t){const t=o.symbol.escapedName;if(Kj(e.inferredTypeParameters,t)||Kj(n,t)){const a=zs(Xo(262144,Gj(K(e.inferredTypeParameters,n),t)));a.target=o,r=ie(r,o),i=ie(i,a),n.push(a)}else n.push(o)}if(i){const e=Uk(r,i);for(const t of i)t.mapper=e}return n}(t,o.typeParameters),n=xh(o,e),r=E(t.inferences,e=>Gw(e.typeParameter));if(qw(n,i,(e,t)=>{yN(r,e,t,0,!0)}),$(r,$j)&&(Uw(n,i,(e,t)=>{yN(r,e,t)}),!function(e,t){for(let n=0;ne.symbol.escapedName===t)}function Gj(e,t){let n=t.length;for(;n>1&&t.charCodeAt(n-1)>=48&&t.charCodeAt(n-1)<=57;)n--;const r=t.slice(0,n);for(let t=1;;t++){const n=r+t;if(!Kj(e,n))return n}}function Xj(e){const t=CO(e);if(t&&!t.typeParameters)return Gg(t)}function Qj(e){const t=Yj(e);if(t)return t;if(268435456&e.flags&&ri){const t=ri[ZB(e)];if(t)return t}const n=Ni,r=eM(e,64);return Ni!==n&&((ri||(ri=[]))[ZB(e)]=r,NT(e,268435456|e.flags)),r}function Yj(e){let t=ah(e,!0);if(TA(t)){const e=CA(t);if(!kl(e))return Pk(e)}if(t=ah(e),TF(t)){const e=Yj(t.expression);return e?PM(e):void 0}return!fF(t)||108===t.expression.kind||Lm(t,!0)||dL(t)||_f(t)?W_(t)&&!kl(t.type)?Pk(t.type):Il(e)||a_(e)?eM(e):void 0:gl(t)?function(e){const t=eM(e.expression),n=bw(t,e.expression),r=Xj(t);return r&&vw(r,e,n!==t)}(t):Xj(wI(t.expression))}function Zj(e){const t=da(e);if(t.contextFreeType)return t.contextFreeType;wA(e,wt,!1);const n=t.contextFreeType=eM(e,4);return FA(),n}function eM(i,o,s){var c,_;null==(c=Hn)||c.push(Hn.Phase.Check,"checkExpression",{kind:i.kind,pos:i.pos,end:i.end,path:i.tracingPath});const u=r;r=i,h=0;const d=function(e,r,i){const o=e.kind;if(t)switch(o){case 232:case 219:case 220:t.throwIfCancellationRequested()}switch(o){case 80:return SP(e,r);case 81:return function(e){!function(e){if(!Xf(e))return kz(e,_a.Private_identifiers_are_not_allowed_outside_class_bodies);if(!YF(e.parent)){if(!bm(e))return kz(e,_a.Private_identifiers_are_only_allowed_in_class_bodies_and_may_only_be_used_as_part_of_a_class_member_declaration_property_access_or_on_the_left_hand_side_of_an_in_expression);const t=NF(e.parent)&&103===e.parent.operatorToken.kind;RI(e)||t||kz(e,_a.Cannot_find_name_0,gc(e))}}(e);const t=RI(e);return t&&oO(t,void 0,!1),wt}(e);case 110:return OP(e);case 108:return MP(e);case 106:return Ut;case 15:case 11:return _N(e)?Ft:uk(fk(e.text));case 9:return wz(e),uk(mk(+e.text));case 10:return function(e){if(!(rF(e.parent)||CF(e.parent)&&rF(e.parent.parent))&&!(33554432&e.flags)&&M<7&&kz(e,_a.BigInt_literals_are_not_available_when_targeting_lower_than_ES2020));}(e),uk(gk({negative:!1,base10Value:mT(e.text)}));case 112:return Yt;case 97:return Ht;case 229:return Ej(e);case 14:return function(e){const t=da(e);return 1&t.flags||(t.flags|=1,a(()=>function(e){const t=vd(e);if(!vz(t)&&!e.isUnterminated){let r;n??(n=gs(99,!0)),n.setScriptTarget(t.languageVersion),n.setLanguageVariant(t.languageVariant),n.setOnError((e,i,o)=>{const a=n.getTokenEnd();if(3===e.category&&r&&a===r.start&&i===r.length){const n=Wx(t.fileName,t.text,a,i,e,o);aT(r,n)}else r&&a===r.start||(r=Gx(t,a,i,e,o),ho.add(r))}),n.setText(t.text,e.pos,e.end-e.pos);try{return n.scan(),un.assert(14===n.reScanSlashToken(!0),"Expected scanner to rescan RegularExpressionLiteral"),!!r}finally{n.setText(""),n.setOnError(void 0)}}return!1}(e))),ar}(e);case 210:return RA(e,r,i);case 211:return function(e,t=0){const n=Qg(e);!function(e,t){const n=new Map;for(const r of e.properties){if(306===r.kind){if(t){const e=ah(r.expression);if(_F(e)||uF(e))return kz(r.expression,_a.A_rest_element_cannot_contain_a_binding_pattern)}continue}const e=r.name;if(168===e.kind&&iz(e),305===r.kind&&!t&&r.objectAssignmentInitializer&&kz(r.equalsToken,_a.Did_you_mean_to_use_a_Colon_An_can_only_follow_a_property_name_when_the_containing_object_literal_is_part_of_a_destructuring_pattern),81===e.kind&&kz(e,_a.Private_identifiers_are_not_allowed_outside_class_bodies),kI(r)&&r.modifiers)for(const e of r.modifiers)!Zl(e)||134===e.kind&&175===r.kind||kz(e,_a._0_modifier_cannot_be_used_here,Xd(e));else if(HA(r)&&r.modifiers)for(const e of r.modifiers)Zl(e)&&kz(e,_a._0_modifier_cannot_be_used_here,Xd(e));let i;switch(r.kind){case 305:case 304:sz(r.exclamationToken,_a.A_definite_assignment_assertion_is_not_permitted_in_this_context),az(r.questionToken,_a.An_object_member_cannot_be_declared_optional),9===e.kind&&wz(e),10===e.kind&&Uo(!0,Rp(e,_a.A_bigint_literal_cannot_be_used_as_a_property_name)),i=4;break;case 175:i=8;break;case 178:i=1;break;case 179:i=2;break;default:un.assertNever(r,"Unexpected syntax kind:"+r.kind)}if(!t){const t=Fz(e);if(void 0===t)continue;const r=n.get(t);if(r)if(8&i&&8&r)kz(e,_a.Duplicate_identifier_0,Xd(e));else if(4&i&&4&r)kz(e,_a.An_object_literal_cannot_have_multiple_properties_with_the_same_name,Xd(e));else{if(!(3&i&&3&r))return kz(e,_a.An_object_literal_cannot_have_property_and_accessor_with_the_same_name);if(3===r||i===r)return kz(e,_a.An_object_literal_cannot_have_multiple_get_Slashset_accessors_with_the_same_name);n.set(t,i|r)}else n.set(t,i)}}}(e,n);const r=H?Gu():void 0;let i=Gu(),o=[],a=Nn;kA(e);const s=hA(e,void 0),c=s&&s.pattern&&(207===s.pattern.kind||211===s.pattern.kind),_=Jj(e),u=_?8:0,d=Em(e)&&!Pm(e),p=d?Xc(e):void 0,f=!s&&d&&!p;let m=8192,g=!1,h=!1,y=!1,v=!1;for(const t of e.properties)t.name&&kD(t.name)&&BA(t.name);let b=0;for(const l of e.properties){let f=ks(l);const k=l.name&&168===l.name.kind?BA(l.name):void 0;if(304===l.kind||305===l.kind||Jf(l)){let i=304===l.kind?qj(l,t):305===l.kind?zj(!n&&l.objectAssignmentInitializer?l.objectAssignmentInitializer:l.name,t):Uj(l,t);if(d){const e=Fl(l);e?(IS(i,e,l),i=e):p&&p.typeExpression&&IS(i,Pk(p.typeExpression),l)}m|=458752&gx(i);const o=k&&sC(k)?k:void 0,a=o?Xo(4|f.flags,cC(o),4096|u):Xo(4|f.flags,f.escapedName,u);if(o&&(a.links.nameType=o),n&&MA(l))a.flags|=16777216;else if(c&&!(512&gx(s))){const e=pm(s,f.escapedName);e?a.flags|=16777216&e.flags:qm(s,Vt)||zo(l.name,_a.Object_literal_may_only_specify_known_properties_and_0_does_not_exist_in_type_1,bc(f),Tc(s))}if(a.declarations=f.declarations,a.parent=f.parent,f.valueDeclaration&&(a.valueDeclaration=f.valueDeclaration),a.links.type=i,a.links.target=f,f=a,null==r||r.set(a.escapedName,a),s&&2&t&&!(4&t)&&(304===l.kind||175===l.kind)&&vS(l)){const t=PA(e);un.assert(t),Kw(t,304===l.kind?l.initializer:l,i)}}else{if(306===l.kind){M0&&(a=sk(a,x(),e.symbol,m,_),o=[],i=Gu(),h=!1,y=!1,v=!1);const n=Bf(eM(l.expression,2&t));if(WA(n)){const t=ak(n,_);if(r&&ZA(t,r,l),b=o.length,al(a))continue;a=sk(a,t,e.symbol,m,_)}else zo(l,_a.Spread_types_may_only_be_created_from_object_types),a=Et;continue}un.assert(178===l.kind||179===l.kind),LB(l)}!k||8576&k.flags?i.set(f.escapedName,f):FS(k,hn)&&(FS(k,Wt)?y=!0:FS(k,cn)?v=!0:h=!0,n&&(g=!0)),o.push(f)}return FA(),al(a)?Et:a!==Nn?(o.length>0&&(a=sk(a,x(),e.symbol,m,_),o=[],i=Gu(),h=!1,y=!1),nF(a,e=>e===Nn?x():e)):x();function x(){const t=[],r=Jj(e);h&&t.push(UA(r,b,o,Vt)),y&&t.push(UA(r,b,o,Wt)),v&&t.push(UA(r,b,o,cn));const a=$s(e.symbol,i,l,l,t);return a.objectFlags|=131200|m,f&&(a.objectFlags|=4096),g&&(a.objectFlags|=512),n&&(a.pattern=e),a}}(e,r);case 212:return OI(e,r);case 167:return LI(e,r);case 213:return function(e,t){return 64&e.flags?function(e,t){const n=eM(e.expression),r=bw(n,e.expression);return vw(fO(e,AI(r,e.expression),t),e,r!==n)}(e,t):fO(e,wI(e.expression),t)}(e,r);case 214:if(_f(e))return function(e){if(function(e){if(j.verbatimModuleSyntax&&1===R)return kz(e,qo(e));if(237===e.expression.kind){if(99!==R&&200!==R)return kz(e,_a.Deferred_imports_are_only_supported_when_the_module_flag_is_set_to_esnext_or_preserve)}else if(5===R)return kz(e,_a.Dynamic_imports_are_only_supported_when_the_module_flag_is_set_to_es2020_es2022_esnext_commonjs_amd_system_umd_node16_node18_node20_or_nodenext);if(e.typeArguments)return kz(e,_a.This_use_of_import_is_invalid_import_calls_can_be_written_but_they_must_have_parentheses_and_cannot_have_type_arguments);const t=e.arguments;if(!(100<=R&&R<=199)&&99!==R&&200!==R&&(QJ(t),t.length>1))return kz(t[1],_a.Dynamic_imports_only_support_a_second_argument_when_the_module_option_is_set_to_esnext_node16_node18_node20_nodenext_or_preserve);if(0===t.length||t.length>2)return kz(e,_a.Dynamic_imports_can_only_accept_a_module_specifier_and_an_optional_set_of_attributes_as_arguments);const n=b(t,PF);n&&kz(n,_a.Argument_of_dynamic_import_cannot_be_spread_element)}(e),0===e.arguments.length)return YL(e,wt);const t=e.arguments[0],n=Ij(t),r=e.arguments.length>1?Ij(e.arguments[1]):void 0;for(let t=2;tpj(e));const t=eM(e.expression),n=CM(t,!0,e,_a.Type_of_await_operand_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member);return n!==t||al(n)||3&t.flags||Uo(!1,Rp(e,_a.await_has_no_effect_on_the_type_of_this_expression)),n}(e);case 225:return function(e){const t=eM(e.operand);if(t===dn)return dn;switch(e.operand.kind){case 9:switch(e.operator){case 41:return uk(mk(-e.operand.text));case 40:return uk(mk(+e.operand.text))}break;case 10:if(41===e.operator)return uk(gk({negative:!0,base10Value:mT(e.operand.text)}))}switch(e.operator){case 40:case 41:case 55:return AI(t,e.operand),mj(t,12288)&&zo(e.operand,_a.The_0_operator_cannot_be_applied_to_type_symbol,Fa(e.operator)),40===e.operator?(mj(t,2112)&&zo(e.operand,_a.Operator_0_cannot_be_applied_to_type_1,Fa(e.operator),Tc(QC(t))),Wt):fj(t);case 54:vR(t,e.operand);const n=HN(t,12582912);return 4194304===n?Ht:8388608===n?Yt:sn;case 46:case 47:return cj(e.operand,AI(t,e.operand),_a.An_arithmetic_operand_must_be_of_type_any_number_bigint_or_an_enum_type)&&dj(e.operand,_a.The_operand_of_an_increment_or_decrement_operator_must_be_a_variable_or_a_property_access,_a.The_operand_of_an_increment_or_decrement_operator_may_not_be_an_optional_property_access),fj(t)}return Et}(e);case 226:return function(e){const t=eM(e.operand);return t===dn?dn:(cj(e.operand,AI(t,e.operand),_a.An_arithmetic_operand_must_be_of_type_any_number_bigint_or_an_enum_type)&&dj(e.operand,_a.The_operand_of_an_increment_or_decrement_operator_must_be_a_variable_or_a_property_access,_a.The_operand_of_an_increment_or_decrement_operator_may_not_be_an_optional_property_access),fj(t))}(e);case 227:return pe(e,r);case 228:return function(e,t){const n=xR(e.condition,t);return yR(e.condition,n,e.whenTrue),Pb([eM(e.whenTrue,t),eM(e.whenFalse,t)],2)}(e,r);case 231:return function(e,t){return MoM(e,n,void 0)));const o=i&&$R(i,r),s=o&&o.yieldType||wt,c=o&&o.nextType||wt,l=e.expression?eM(e.expression):Mt,_=tj(e,l,c,r);if(i&&_&&OS(_,s,e.expression||e,e.expression),e.asteriskToken)return CR(r?19:17,1,l,e.expression)||wt;if(i)return WR(2,i,r)||wt;let u=ZP(2,t);return u||(u=wt,a(()=>{if(ne&&!AT(e)){const t=xA(e,void 0);t&&!il(t)||zo(e,_a.yield_expression_implicitly_results_in_an_any_type_because_its_containing_generator_lacks_a_return_type_annotation)}})),u}(e);case 238:return function(e){return e.isSpread?Ax(e.type,Wt):e.type}(e);case 295:return function(e,t){if(function(e){e.expression&&SA(e.expression)&&kz(e.expression,_a.JSX_expressions_may_not_use_the_comma_operator_Did_you_mean_to_write_an_array)}(e),e.expression){const n=eM(e.expression,t);return e.dotDotDotToken&&n!==wt&&!OC(n)&&zo(e,_a.JSX_spread_child_must_be_an_array_type),n}return Et}(e,r);case 285:case 286:return function(e){return LB(e),uI(e)||wt}(e);case 289:return function(e){fI(e.openingFragment);const t=vd(e);!Hk(j)||!j.jsxFactory&&!t.pragmas.has("jsx")||j.jsxFragmentFactory||t.pragmas.has("jsxfrag")||zo(e,j.jsxFactory?_a.The_jsxFragmentFactory_compiler_option_must_be_provided_to_use_JSX_fragments_with_the_jsxFactory_compiler_option:_a.An_jsxFrag_pragma_is_required_when_using_an_jsx_pragma_with_JSX_fragments),YA(e);const n=uI(e);return al(n)?wt:n}(e);case 293:return function(e,t){return QA(e.parent,t)}(e,r);case 287:un.fail("Shouldn't ever directly check a JsxOpeningElement")}return Et}(i,o,s),p=Vj(i,d,o);return vj(p)&&function(t,n){var r;const i=212===t.parent.kind&&t.parent.expression===t||213===t.parent.kind&&t.parent.expression===t||(80===t.kind||167===t.kind)&&fJ(t)||187===t.parent.kind&&t.parent.exprName===t||282===t.parent.kind;if(i||zo(t,_a.const_enums_can_only_be_used_in_property_or_index_access_expressions_or_the_right_hand_side_of_an_import_declaration_or_export_assignment_or_type_query),j.isolatedModules||j.verbatimModuleSyntax&&i&&!Ue(t,sb(t),2097152,void 0,!1,!0)){un.assert(!!(128&n.symbol.flags));const i=n.symbol.valueDeclaration,o=null==(r=e.getRedirectFromOutput(vd(i).resolvedPath))?void 0:r.resolvedRef;!(33554432&i.flags)||bT(t)||o&&Fk(o.commandLine.options)||zo(t,_a.Cannot_access_ambient_const_enums_when_0_is_enabled,Me)}}(i,p),r=u,null==(_=Hn)||_.pop(),p}function tM(e){GJ(e),e.expression&&bz(e.expression,_a.Type_expected),AB(e.constraint),AB(e.default);const t=Cu(ks(e));pf(t),function(e){return hf(e)!==Mn}(t)||zo(e.default,_a.Type_parameter_0_has_a_circular_default,Tc(t));const n=Hp(t),r=yf(t);n&&r&&IS(r,wd(fS(n,Wk(t,r)),r),e.default,_a.Type_0_does_not_satisfy_the_constraint_1),LB(e),a(()=>nB(e.name,_a.Type_parameter_name_cannot_be_0))}function nM(e){GJ(e),pR(e);const t=Kf(e);Nv(e,31)&&(j.erasableSyntaxOnly&&zo(e,_a.This_syntax_is_not_allowed_when_erasableSyntaxOnly_is_enabled),177===t.kind&&Dd(t.body)||zo(e,_a.A_parameter_property_is_only_allowed_in_a_constructor_implementation),177===t.kind&&aD(e.name)&&"constructor"===e.name.escapedText&&zo(e.name,_a.constructor_cannot_be_used_as_a_parameter_property_name)),!e.initializer&&XT(e)&&k_(e.name)&&t.body&&zo(e,_a.A_binding_pattern_parameter_cannot_be_optional_in_an_implementation_signature),e.name&&aD(e.name)&&("this"===e.name.escapedText||"new"===e.name.escapedText)&&(0!==t.parameters.indexOf(e)&&zo(e,_a.A_0_parameter_must_be_the_first_parameter,e.name.escapedText),177!==t.kind&&181!==t.kind&&186!==t.kind||zo(e,_a.A_constructor_cannot_have_a_this_parameter),220===t.kind&&zo(e,_a.An_arrow_function_cannot_have_a_this_parameter),178!==t.kind&&179!==t.kind||zo(e,_a.get_and_set_accessors_cannot_declare_this_parameters)),!e.dotDotDotToken||k_(e.name)||FS(Bf(P_(e.symbol)),_r)||zo(e,_a.A_rest_parameter_must_be_of_an_array_type)}function rM(e,t,n){for(const r of e.elements){if(IF(r))continue;const e=r.name;if(80===e.kind&&e.escapedText===n)return zo(t,_a.A_type_predicate_cannot_reference_element_0_in_a_binding_pattern,n),!0;if((208===e.kind||207===e.kind)&&rM(e,t,n))return!0}}function iM(e){182===e.kind?function(e){GJ(e)||function(e){const t=e.parameters[0];if(1!==e.parameters.length)return kz(t?t.name:e,_a.An_index_signature_must_have_exactly_one_parameter);if(QJ(e.parameters,_a.An_index_signature_cannot_have_a_trailing_comma),t.dotDotDotToken)return kz(t.dotDotDotToken,_a.An_index_signature_cannot_have_a_rest_parameter);if(Tv(t))return kz(t.name,_a.An_index_signature_parameter_cannot_have_an_accessibility_modifier);if(t.questionToken)return kz(t.questionToken,_a.An_index_signature_parameter_cannot_have_a_question_mark);if(t.initializer)return kz(t.name,_a.An_index_signature_parameter_cannot_have_an_initializer);if(!t.type)return kz(t.name,_a.An_index_signature_parameter_must_have_a_type_annotation);const n=Pk(t.type);UD(n,e=>!!(8576&e.flags))||xx(n)?kz(t.name,_a.An_index_signature_parameter_type_cannot_be_a_literal_type_or_generic_type_Consider_using_a_mapped_object_type_instead):KD(n,Mh)?e.type||kz(e,_a.An_index_signature_must_have_a_type_annotation):kz(t.name,_a.An_index_signature_parameter_type_must_be_string_number_symbol_or_a_template_literal_type)}(e)}(e):185!==e.kind&&263!==e.kind&&186!==e.kind&&180!==e.kind&&177!==e.kind&&181!==e.kind||ZJ(e);const t=Oh(e);4&t||(!(3&~t)&&M{aD(e)&&r.add(e.escapedText),k_(e)&&i.add(t)});if(Ig(e)){const e=t.length-1,o=t[e];n&&o&&aD(o.name)&&o.typeExpression&&o.typeExpression.type&&!r.has(o.name.escapedText)&&!i.has(e)&&!OC(Pk(o.typeExpression.type))&&zo(o.name,_a.JSDoc_param_tag_has_name_0_but_there_is_no_parameter_with_that_name_It_would_match_arguments_if_it_had_an_array_type,gc(o.name))}else d(t,({name:e,isNameFirst:t},o)=>{i.has(o)||aD(e)&&r.has(e.escapedText)||(xD(e)?n&&zo(e,_a.Qualified_name_0_is_not_allowed_without_a_leading_param_object_1,Mp(e),Mp(e.left)):t||Vo(n,e,_a.JSDoc_param_tag_has_name_0_but_there_is_no_parameter_with_that_name,gc(e)))})}(e),d(e.parameters,nM),e.type&&AB(e.type),a(function(){!function(e){M>=2||!Ru(e)||33554432&e.flags||Nd(e.body)||d(e.parameters,e=>{e.name&&!k_(e.name)&&e.name.escapedText===Le.escapedName&&Ro("noEmit",e,_a.Duplicate_identifier_arguments_Compiler_uses_arguments_to_initialize_rest_parameters)})}(e);let t=gv(e),n=t;if(Em(e)){const r=tl(e);if(r&&r.typeExpression&&RD(r.typeExpression.type)){const e=CO(Pk(r.typeExpression));e&&e.declaration&&(t=gv(e.declaration),n=r.typeExpression.type)}}if(ne&&!t)switch(e.kind){case 181:zo(e,_a.Construct_signature_which_lacks_return_type_annotation_implicitly_has_an_any_return_type);break;case 180:zo(e,_a.Call_signature_which_lacks_return_type_annotation_implicitly_has_an_any_return_type)}if(t&&n){const r=Oh(e);if(1==(5&r)){const e=Pk(t);e===ln?zo(n,_a.A_generator_cannot_have_a_void_type_annotation):oM(e,r,n)}else 2==(3&r)&&function(e,t,n){const r=Pk(t);if(M>=2){if(al(r))return;const e=ev(!0);if(e!==On&&!J_(r,e))return void i(_a.The_return_type_of_an_async_function_or_method_must_be_the_global_Promise_T_type_Did_you_mean_to_write_Promise_0,t,n,Tc(AM(r)||ln))}else{if(RE(e,5),al(r))return;const o=_m(t);if(void 0===o)return void i(_a.Type_0_is_not_a_valid_async_function_return_type_in_ES5_because_it_does_not_refer_to_a_Promise_compatible_constructor_value,t,n,Tc(r));const a=ts(o,111551,!0),s=a?P_(a):Et;if(al(s))return void(80===o.kind&&"Promise"===o.escapedText&&z_(r)===ev(!1)?zo(n,_a.An_async_function_or_method_in_ES5_requires_the_Promise_constructor_Make_sure_you_have_a_declaration_for_the_Promise_constructor_or_include_ES2015_in_your_lib_option):i(_a.Type_0_is_not_a_valid_async_function_return_type_in_ES5_because_it_does_not_refer_to_a_Promise_compatible_constructor_value,t,n,Mp(o)));const c=vr||(vr=Wy("PromiseConstructorLike",0,true))||Nn;if(c===Nn)return void i(_a.Type_0_is_not_a_valid_async_function_return_type_in_ES5_because_it_does_not_refer_to_a_Promise_compatible_constructor_value,t,n,Mp(o));const l=_a.Type_0_is_not_a_valid_async_function_return_type_in_ES5_because_it_does_not_refer_to_a_Promise_compatible_constructor_value;if(!IS(s,c,n,l,()=>t===n?void 0:Zx(void 0,_a.The_return_type_of_an_async_function_or_method_must_be_the_global_Promise_T_type)))return;const _=o&&sb(o),u=pa(e.locals,_.escapedText,111551);if(u)return void zo(u.valueDeclaration,_a.Duplicate_identifier_0_Compiler_uses_declaration_1_to_support_async_functions,gc(_),Mp(o))}function i(e,t,n,r){t===n?zo(n,e,r):aT(zo(n,_a.The_return_type_of_an_async_function_or_method_must_be_the_global_Promise_T_type),Rp(t,e,r))}CM(r,!1,e,_a.The_return_type_of_an_async_function_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member)}(e,t,n)}182!==e.kind&&318!==e.kind&&VM(e)})}function oM(e,t,n){const r=WR(0,e,!!(2&t))||wt;return IS(ej(r,WR(1,e,!!(2&t))||r,WR(2,e,!!(2&t))||Ot,!!(2&t)),e,n)}function aM(e){const t=new Map;for(const n of e.members)if(172===n.kind){let e;const r=n.name;switch(r.kind){case 11:case 9:e=r.text;break;case 80:e=gc(r);break;default:continue}t.get(e)?(zo(Cc(n.symbol.valueDeclaration),_a.Duplicate_identifier_0,e),zo(n.name,_a.Duplicate_identifier_0,e)):t.set(e,!0)}}function sM(e){if(265===e.kind){const t=ks(e);if(t.declarations&&t.declarations.length>0&&t.declarations[0]!==e)return}const t=Fh(ks(e));if(null==t?void 0:t.declarations){const e=new Map;for(const n of t.declarations)jD(n)&&1===n.parameters.length&&n.parameters[0].type&&bD(Pk(n.parameters[0].type),t=>{const r=e.get(kb(t));r?r.declarations.push(n):e.set(kb(t),{type:t,declarations:[n]})});e.forEach(e=>{if(e.declarations.length>1)for(const t of e.declarations)zo(t,_a.Duplicate_index_signature_for_type_0,Tc(e.type))})}}function cM(e){GJ(e)||function(e){if(kD(e.name)&&NF(e.name.expression)&&103===e.name.expression.operatorToken.kind)return kz(e.parent.members[0],_a.A_mapped_type_may_not_declare_properties_or_methods);if(u_(e.parent)){if(UN(e.name)&&"constructor"===e.name.text)return kz(e.name,_a.Classes_may_not_have_a_field_named_constructor);if(_z(e.name,_a.A_computed_property_name_in_a_class_property_declaration_must_have_a_simple_literal_type_or_a_unique_symbol_type))return!0;if(M<2&&sD(e.name))return kz(e.name,_a.Private_identifiers_are_only_available_when_targeting_ECMAScript_2015_and_higher);if(M<2&&p_(e)&&!(33554432&e.flags))return kz(e.name,_a.Properties_with_the_accessor_modifier_are_only_available_when_targeting_ECMAScript_2015_and_higher);if(p_(e)&&az(e.questionToken,_a.An_accessor_property_cannot_be_declared_optional))return!0}else if(265===e.parent.kind){if(_z(e.name,_a.A_computed_property_name_in_an_interface_must_refer_to_an_expression_whose_type_is_a_literal_type_or_a_unique_symbol_type))return!0;if(un.assertNode(e,wD),e.initializer)return kz(e.initializer,_a.An_interface_property_cannot_have_an_initializer)}else if(qD(e.parent)){if(_z(e.name,_a.A_computed_property_name_in_a_type_literal_must_refer_to_an_expression_whose_type_is_a_literal_type_or_a_unique_symbol_type))return!0;if(un.assertNode(e,wD),e.initializer)return kz(e.initializer,_a.A_type_literal_property_cannot_have_an_initializer)}if(33554432&e.flags&&fz(e),ND(e)&&e.exclamationToken&&(!u_(e.parent)||!e.type||e.initializer||33554432&e.flags||Dv(e)||Pv(e))){const t=e.initializer?_a.Declarations_with_initializers_cannot_also_have_definite_assignment_assertions:e.type?_a.A_definite_assignment_assertion_is_not_permitted_in_this_context:_a.Declarations_with_definite_assignment_assertions_must_also_have_type_annotations;return kz(e.exclamationToken,t)}}(e)||iz(e.name),pR(e),lM(e),Nv(e,64)&&173===e.kind&&e.initializer&&zo(e,_a.Property_0_cannot_have_an_initializer_because_it_is_marked_abstract,Ap(e.name))}function lM(e){if(sD(e.name)&&(M{const t=mM(e);t&&fM(e,t)});const t=da(e).resolvedSymbol;t&&$(t.declarations,e=>VT(e)&&!!(536870912&e.flags))&&Go(uL(e),t.declarations,t.escapedName)}}function yM(e,t){if(!(8388608&e.flags))return e;const n=e.objectType,r=e.indexType,i=Sp(n)&&2===Tp(n)?$b(n,0):Yb(n,0),o=!!qm(n,Wt);if(KD(r,e=>FS(e,i)||o&&jm(e,Wt)))return 213===t.kind&&Qg(t)&&32&gx(n)&&1&bp(n)&&zo(t,_a.Index_signature_in_type_0_only_permits_reading,Tc(n)),e;if(Tx(n)){const e=ux(r,t);if(e){const r=bD(Sf(n),t=>pm(t,e));if(r&&6&ix(r))return zo(t,_a.Private_or_protected_member_0_cannot_be_accessed_on_a_type_parameter,mc(e)),Et}}return zo(t,_a.Type_0_cannot_be_used_to_index_type_1,Tc(r),Tc(n)),Et}function vM(e){return(wv(e,2)||Kl(e))&&!!(33554432&e.flags)}function bM(e,t){let n=Ez(e);if(265!==e.parent.kind&&264!==e.parent.kind&&232!==e.parent.kind&&33554432&e.flags){const t=Fp(e);!(t&&128&t.flags)||128&n||hE(e.parent)&&gE(e.parent.parent)&&pp(e.parent.parent)||(n|=32),n|=128}return n&t}function xM(e){a(()=>function(e){function t(e,t){return void 0!==t&&t.parent===e[0].parent?t:e[0]}let n,r,i,o=0,a=230,s=!1,c=!0,l=!1;const _=e.declarations,p=!!(16384&e.flags);function f(e){if(e.name&&Nd(e.name))return;let t=!1;const n=XI(e.parent,n=>{if(t)return n;t=n===e});if(n&&n.pos===e.end&&n.kind===e.kind){const t=n.name||n,r=n.name;if(e.name&&r&&(sD(e.name)&&sD(r)&&e.name.escapedText===r.escapedText||kD(e.name)&&kD(r)&&SS(BA(e.name),BA(r))||zh(e.name)&&zh(r)&&Uh(e.name)===Uh(r)))return void(175!==e.kind&&174!==e.kind||Dv(e)===Dv(n)||zo(t,Dv(e)?_a.Function_overload_must_be_static:_a.Function_overload_must_not_be_static));if(Dd(n.body))return void zo(t,_a.Function_implementation_name_must_be_0,Ap(e.name))}const r=e.name||e;p?zo(r,_a.Constructor_implementation_is_missing):Nv(e,64)?zo(r,_a.All_declarations_of_an_abstract_method_must_be_consecutive):zo(r,_a.Function_implementation_is_missing_or_not_immediately_following_the_declaration)}let m=!1,g=!1,h=!1;const y=[];if(_)for(const e of _){const t=e,_=33554432&t.flags,d=t.parent&&(265===t.parent.kind||188===t.parent.kind)||_;if(d&&(i=void 0),264!==t.kind&&232!==t.kind||_||(h=!0),263===t.kind||175===t.kind||174===t.kind||177===t.kind){y.push(t);const e=bM(t,230);o|=e,a&=e,s=s||wg(t),c=c&&wg(t);const _=Dd(t.body);_&&n?p?g=!0:m=!0:(null==i?void 0:i.parent)===t.parent&&i.end!==t.pos&&f(i),_?n||(n=t):l=!0,i=t,d||(r=t)}Em(e)&&r_(e)&&e.jsDoc&&(l=u(zg(e))>0)}if(g&&d(y,e=>{zo(e,_a.Multiple_constructor_implementations_are_not_allowed)}),m&&d(y,e=>{zo(Cc(e)||e,_a.Duplicate_function_implementation)}),h&&!p&&16&e.flags&&_){const t=N(_,e=>264===e.kind).map(e=>Rp(e,_a.Consider_adding_a_declare_modifier_to_this_class));d(_,n=>{const r=264===n.kind?_a.Class_declaration_cannot_implement_overload_list_for_0:263===n.kind?_a.Function_with_bodies_can_only_merge_with_classes_that_are_ambient:void 0;r&&aT(zo(Cc(n)||n,r,yc(e)),...t)})}if(!r||r.body||Nv(r,64)||r.questionToken||f(r),l&&(_&&(function(e,n,r,i,o){if(0!==(i^o)){const i=bM(t(e,n),r);Je(e,e=>vd(e).fileName).forEach(e=>{const o=bM(t(e,n),r);for(const t of e){const e=bM(t,r)^i,n=bM(t,r)^o;32&n?zo(Cc(t),_a.Overload_signatures_must_all_be_exported_or_non_exported):128&n?zo(Cc(t),_a.Overload_signatures_must_all_be_ambient_or_non_ambient):6&e?zo(Cc(t)||t,_a.Overload_signatures_must_all_be_public_private_or_protected):64&e&&zo(Cc(t),_a.Overload_signatures_must_all_be_abstract_or_non_abstract)}})}}(_,n,230,o,a),function(e,n,r,i){if(r!==i){const r=wg(t(e,n));d(e,e=>{wg(e)!==r&&zo(Cc(e),_a.Overload_signatures_must_all_be_optional_or_required)})}}(_,n,s,c)),n)){const t=jg(e),r=Eg(n);for(const e of t)if(!HS(r,e)){aT(zo(e.declaration&&CP(e.declaration)?e.declaration.parent.tagName:e.declaration,_a.This_overload_signature_is_not_compatible_with_its_implementation_signature),Rp(n,_a.The_implementation_signature_is_declared_here));break}}}(e))}function kM(e){a(()=>function(e){let t=e.localSymbol;if(!t&&(t=ks(e),!t.exportSymbol))return;if(Hu(t,e.kind)!==e)return;let n=0,r=0,i=0;for(const e of t.declarations){const t=s(e),o=bM(e,2080);32&o?2048&o?i|=t:n|=t:r|=t}const o=n&r,a=i&(n|r);if(o||a)for(const e of t.declarations){const t=s(e),n=Cc(e);t&a?zo(n,_a.Merged_declaration_0_cannot_include_a_default_export_declaration_Consider_adding_a_separate_export_default_0_declaration_instead,Ap(n)):t&o&&zo(n,_a.Individual_declarations_in_merged_declaration_0_must_be_all_exported_or_all_local,Ap(n))}function s(e){let t=e;switch(t.kind){case 265:case 266:case 347:case 339:case 341:return 2;case 268:return cp(t)||0!==UR(t)?5:4;case 264:case 267:case 307:return 3;case 308:return 7;case 278:case 227:const e=t,n=AE(e)?e.expression:e.right;if(!ab(n))return 1;t=n;case 272:case 275:case 274:let r=0;return d(Ha(ks(t)).declarations,e=>{r|=s(e)}),r;case 261:case 209:case 263:case 277:case 80:return 1;case 174:case 172:return 2;default:return un.failBadSyntaxKind(t)}}}(e))}function SM(e,t,n,...r){const i=TM(e,t);return i&&PM(i,t,n,...r)}function TM(e,t,n){if(il(e))return;const r=e;if(r.promisedTypeOfPromise)return r.promisedTypeOfPromise;if(J_(e,ev(!1)))return r.promisedTypeOfPromise=uy(e)[0];if(yj(ff(e),402915324))return;const i=el(e,"then");if(il(i))return;const o=i?mm(i,0):l;if(0===o.length)return void(t&&zo(t,_a.A_promise_must_have_a_then_method));let a,s;for(const t of o){const n=Rg(t);n&&n!==ln&&!iT(e,n,To)?a=n:s=ie(s,t)}if(!s)return un.assertIsDefined(a),n&&(n.value=a),void(t&&zo(t,_a.The_this_context_of_type_0_is_not_assignable_to_method_s_this_of_type_1,Tc(e),Tc(a)));const c=XN(Pb(E(s,zL)),2097152);if(il(c))return;const _=mm(c,0);if(0!==_.length)return r.promisedTypeOfPromise=Pb(E(_,zL),2);t&&zo(t,_a.The_first_parameter_of_the_then_method_of_a_promise_must_be_a_callback)}function CM(e,t,n,r,...i){return(t?PM(e,n,r,...i):AM(e,n,r,...i))||Et}function wM(e){if(yj(ff(e),402915324))return!1;const t=el(e,"then");return!!t&&mm(XN(t,2097152),0).length>0}function DM(e){var t;if(16777216&e.flags){const n=xv(!1);return!!n&&e.aliasSymbol===n&&1===(null==(t=e.aliasTypeArguments)?void 0:t.length)}return!1}function FM(e){return 1048576&e.flags?nF(e,FM):DM(e)?e.aliasTypeArguments[0]:e}function EM(e){if(il(e)||DM(e))return!1;if(Tx(e)){const t=pf(e);if(t?3&t.flags||GS(t)||UD(t,wM):gj(e,8650752))return!0}return!1}function PM(e,t,n,...r){const i=AM(e,t,n,...r);return i&&function(e){return EM(e)?function(e){const t=xv(!0);if(t)return fy(t,[FM(e)])}(e)??e:(un.assert(DM(e)||void 0===TM(e),"type provided should not be a non-generic 'promise'-like."),e)}(i)}function AM(e,t,n,...r){if(il(e))return e;if(DM(e))return e;const i=e;if(i.awaitedTypeOfType)return i.awaitedTypeOfType;if(1048576&e.flags){if(po.lastIndexOf(e.id)>=0)return void(t&&zo(t,_a.Type_is_referenced_directly_or_indirectly_in_the_fulfillment_callback_of_its_own_then_method));const o=t?e=>AM(e,t,n,...r):AM;po.push(e.id);const a=nF(e,o);return po.pop(),i.awaitedTypeOfType=a}if(EM(e))return i.awaitedTypeOfType=e;const o={value:void 0},a=TM(e,void 0,o);if(a){if(e.id===a.id||po.lastIndexOf(a.id)>=0)return void(t&&zo(t,_a.Type_is_referenced_directly_or_indirectly_in_the_fulfillment_callback_of_its_own_then_method));po.push(e.id);const o=AM(a,t,n,...r);if(po.pop(),!o)return;return i.awaitedTypeOfType=o}if(!wM(e))return i.awaitedTypeOfType=e;if(t){let i;un.assertIsDefined(n),o.value&&(i=Zx(i,_a.The_this_context_of_type_0_is_not_assignable_to_method_s_this_of_type_1,Tc(e),Tc(o.value))),i=Zx(i,n,...r),ho.add(zp(vd(t),t,i))}}function IM(e){!function(e){if(!vz(vd(e))){let t=e.expression;if(yF(t))return!1;let n,r=!0;for(;;)if(OF(t)||MF(t))t=t.expression;else if(fF(t))r||(n=t),t.questionDotToken&&(n=t.questionDotToken),t=t.expression,r=!1;else{if(!dF(t)){aD(t)||(n=t);break}t.questionDotToken&&(n=t.questionDotToken),t=t.expression,r=!1}if(n)aT(zo(e.expression,_a.Expression_must_be_enclosed_in_parentheses_to_be_used_as_a_decorator),Rp(n,_a.Invalid_syntax_in_decorator))}}(e);const t=aL(e);_L(t,e);const n=Gg(t);if(1&n.flags)return;const r=GL(e);if(!(null==r?void 0:r.resolvedReturnType))return;let i;const o=r.resolvedReturnType;switch(e.parent.kind){case 264:case 232:i=_a.Decorator_function_return_type_0_is_not_assignable_to_type_1;break;case 173:if(!J){i=_a.Decorator_function_return_type_0_is_not_assignable_to_type_1;break}case 170:i=_a.Decorator_function_return_type_is_0_but_is_expected_to_be_void_or_any;break;case 175:case 178:case 179:i=_a.Decorator_function_return_type_0_is_not_assignable_to_type_1;break;default:return un.failBadSyntaxKind(e.parent)}IS(n,o,e.expression,i)}function OM(e,t,n,r,i,o=n.length,a=0){return Ed(mw.createFunctionTypeNode(void 0,l,mw.createKeywordTypeNode(133)),e,t,n,r,i,o,a)}function LM(e,t,n,r,i,o,a){return Dh(OM(e,t,n,r,i,o,a))}function jM(e){return LM(void 0,void 0,l,e)}function MM(e){return LM(void 0,void 0,[Qo("value",e)],ln)}function RM(e){if(e)switch(e.kind){case 194:case 193:return BM(e.types);case 195:return BM([e.trueType,e.falseType]);case 197:case 203:return RM(e.type);case 184:return e.typeName}}function BM(e){let t;for(let n of e){for(;197===n.kind||203===n.kind;)n=n.type;if(146===n.kind)continue;if(!H&&(202===n.kind&&106===n.literal.kind||157===n.kind))continue;const e=RM(n);if(!e)return;if(t){if(!aD(t)||!aD(e)||t.escapedText!==e.escapedText)return}else t=e}return t}function JM(e){const t=fv(e);return Bu(e)?Ef(t):t}function zM(e){if(!(SI(e)&&Lv(e)&&e.modifiers&&dm(J,e,e.parent,e.parent.parent)))return;const t=b(e.modifiers,CD);if(t){J?(HJ(t,8),170===e.kind&&HJ(t,32)):Mt.kind===e.kind&&!(524288&t.flags));e===i&&xM(r),n.parent&&xM(n)}const r=174===e.kind?void 0:e.body;if(AB(r),aj(e,Zg(e)),a(function(){gv(e)||(Nd(r)&&!vM(e)&&Jw(e,wt),1&n&&Dd(r)&&Gg(Eg(e)))}),Em(e)){const t=tl(e);t&&t.typeExpression&&!OA(Pk(t.typeExpression),e)&&zo(t.typeExpression.type,_a.The_type_of_a_function_declaration_must_match_the_function_s_signature)}}function VM(e){a(function(){const t=vd(e);let n=ki.get(t.path);n||(n=[],ki.set(t.path,n)),n.push(e)})}function WM(e,t){for(const n of e)switch(n.kind){case 264:case 232:KM(n,t),XM(n,t);break;case 308:case 268:case 242:case 270:case 249:case 250:case 251:tR(n,t);break;case 177:case 219:case 263:case 220:case 175:case 178:case 179:n.body&&tR(n,t),XM(n,t);break;case 174:case 180:case 181:case 185:case 186:case 266:case 265:XM(n,t);break;case 196:GM(n,t);break;default:un.assertNever(n,"Node should not have been registered for unused identifiers check")}}function $M(e,t,n){n(e,0,Rp(Cc(e)||e,VT(e)?_a._0_is_declared_but_never_used:_a._0_is_declared_but_its_value_is_never_read,t))}function HM(e){return aD(e)&&95===gc(e).charCodeAt(0)}function KM(e,t){for(const n of e.members)switch(n.kind){case 175:case 173:case 178:case 179:if(179===n.kind&&32768&n.symbol.flags)break;const e=ks(n);e.isReferenced||!(wv(n,2)||Sc(n)&&sD(n.name))||33554432&n.flags||t(n,0,Rp(n.name,_a._0_is_declared_but_its_value_is_never_read,bc(e)));break;case 177:for(const e of n.parameters)!e.symbol.isReferenced&&Nv(e,2)&&t(e,0,Rp(e.name,_a.Property_0_is_declared_but_its_value_is_never_read,yc(e.symbol)));break;case 182:case 241:case 176:break;default:un.fail("Unexpected class member")}}function GM(e,t){const{typeParameter:n}=e;QM(n)&&t(e,1,Rp(e,_a._0_is_declared_but_its_value_is_never_read,gc(n.name)))}function XM(e,t){const n=ks(e).declarations;if(!n||ve(n)!==e)return;const r=_l(e),i=new Set;for(const e of r){if(!QM(e))continue;const n=gc(e.name),{parent:r}=e;if(196!==r.kind&&r.typeParameters.every(QM)){if(q(i,r)){const i=vd(r),o=UP(r)?cT(r):lT(i,r.typeParameters),a=1===r.typeParameters.length?[_a._0_is_declared_but_its_value_is_never_read,n]:[_a.All_type_parameters_are_unused];t(e,1,Gx(i,o.pos,o.end-o.pos,...a))}}else t(e,1,Rp(e,_a._0_is_declared_but_its_value_is_never_read,n))}}function QM(e){return!(262144&xs(e.symbol).isReferenced||HM(e.name))}function YM(e,t,n,r){const i=String(r(t)),o=e.get(i);o?o[1].push(n):e.set(i,[t,[n]])}function ZM(e){return tt(Yh(e),TD)}function eR(e){return lF(e)?sF(e.parent)?!(!e.propertyName||!HM(e.name)):HM(e.name):cp(e)||(lE(e)&&Q_(e.parent.parent)||rR(e))&&HM(e.name)}function tR(e,t){const n=new Map,r=new Map,i=new Map;e.locals.forEach(e=>{if(!(262144&e.flags?!(3&e.flags)||3&e.isReferenced:e.isReferenced||e.exportSymbol)&&e.declarations)for(const o of e.declarations)if(!eR(o))if(rR(o))YM(n,iR(o),o,ZB);else if(lF(o)&&sF(o.parent))o!==ve(o.parent.elements)&&ve(o.parent.elements).dotDotDotToken||YM(r,o.parent,o,ZB);else if(lE(o)){const e=7&Pz(o),t=Cc(o);(4===e||6===e)&&t&&HM(t)||YM(i,o.parent,o,ZB)}else{const n=e.valueDeclaration&&ZM(e.valueDeclaration),i=e.valueDeclaration&&Cc(e.valueDeclaration);n&&i?Zs(n,n.parent)||cv(n)||HM(i)||(lF(o)&&cF(o.parent)?YM(r,o.parent,o,ZB):t(n,1,Rp(i,_a._0_is_declared_but_its_value_is_never_read,yc(e)))):$M(o,yc(e),t)}}),n.forEach(([e,n])=>{const r=e.parent;if((e.name?1:0)+(e.namedBindings?275===e.namedBindings.kind?1:e.namedBindings.elements.length:0)===n.length)t(r,0,1===n.length?Rp(r,_a._0_is_declared_but_its_value_is_never_read,gc(ge(n).name)):Rp(r,_a.All_imports_in_import_declaration_are_unused));else for(const e of n)$M(e,gc(e.name),t)}),r.forEach(([e,n])=>{const r=ZM(e.parent)?1:0;if(e.elements.length===n.length)1===n.length&&261===e.parent.kind&&262===e.parent.parent.kind?YM(i,e.parent.parent,e.parent,ZB):t(e,r,1===n.length?Rp(e,_a._0_is_declared_but_its_value_is_never_read,nR(ge(n).name)):Rp(e,_a.All_destructured_elements_are_unused));else for(const e of n)t(e,r,Rp(e,_a._0_is_declared_but_its_value_is_never_read,nR(e.name)))}),i.forEach(([e,n])=>{if(e.declarations.length===n.length)t(e,0,1===n.length?Rp(ge(n).name,_a._0_is_declared_but_its_value_is_never_read,nR(ge(n).name)):Rp(244===e.parent.kind?e.parent:e,_a.All_variables_are_unused));else for(const e of n)t(e,0,Rp(e,_a._0_is_declared_but_its_value_is_never_read,nR(e.name)))})}function nR(e){switch(e.kind){case 80:return gc(e);case 208:case 207:return nR(nt(ge(e.elements),lF).name);default:return un.assertNever(e)}}function rR(e){return 274===e.kind||277===e.kind||275===e.kind}function iR(e){return 274===e.kind?e:275===e.kind?e.parent:e.parent.parent}function oR(e){if(242===e.kind&&Cz(e),l_(e)){const t=wi;d(e.statements,AB),wi=t}else d(e.statements,AB);e.locals&&VM(e)}function aR(e,t,n){if((null==t?void 0:t.escapedText)!==n)return!1;if(173===e.kind||172===e.kind||175===e.kind||174===e.kind||178===e.kind||179===e.kind||304===e.kind)return!1;if(33554432&e.flags)return!1;if((kE(e)||bE(e)||PE(e))&&zl(e))return!1;const r=Yh(e);return!TD(r)||!Nd(r.parent.body)}function sR(e){uc(e,t=>!!(4&LJ(t))&&(80!==e.kind?zo(Cc(e),_a.Duplicate_identifier_this_Compiler_uses_variable_declaration_this_to_capture_this_reference):zo(e,_a.Expression_resolves_to_variable_declaration_this_that_compiler_uses_to_capture_this_reference),!0))}function cR(e){uc(e,t=>!!(8&LJ(t))&&(80!==e.kind?zo(Cc(e),_a.Duplicate_identifier_newTarget_Compiler_uses_variable_declaration_newTarget_to_capture_new_target_meta_property_reference):zo(e,_a.Expression_resolves_to_variable_declaration_newTarget_that_compiler_uses_to_capture_new_target_meta_property_reference),!0))}function lR(e){1048576&LJ(Ep(e))&&(un.assert(Sc(e)&&aD(e.name)&&"string"==typeof e.name.escapedText,"The target of a WeakMap/WeakSet collision check should be an identifier"),Ro("noEmit",e,_a.Compiler_reserves_name_0_when_emitting_private_identifier_downlevel,e.name.escapedText))}function _R(e){let t=!1;if(AF(e)){for(const n of e.members)if(2097152&LJ(n)){t=!0;break}}else if(vF(e))2097152&LJ(e)&&(t=!0);else{const n=Ep(e);n&&2097152&LJ(n)&&(t=!0)}t&&(un.assert(Sc(e)&&aD(e.name),"The target of a Reflect collision check should be an identifier"),Ro("noEmit",e,_a.Duplicate_identifier_0_Compiler_reserves_name_1_when_emitting_super_references_in_static_initializers,Ap(e.name),"Reflect"))}function uR(t,n){n&&(function(t,n){if(e.getEmitModuleFormatOfFile(vd(t))>=5)return;if(!n||!aR(t,n,"require")&&!aR(t,n,"exports"))return;if(gE(t)&&1!==UR(t))return;const r=Zc(t);308===r.kind&&Zp(r)&&Ro("noEmit",n,_a.Duplicate_identifier_0_Compiler_reserves_name_1_in_top_level_scope_of_a_module,Ap(n),Ap(n))}(t,n),function(e,t){if(!t||M>=4||!aR(e,t,"Promise"))return;if(gE(e)&&1!==UR(e))return;const n=Zc(e);308===n.kind&&Zp(n)&&4096&n.flags&&Ro("noEmit",t,_a.Duplicate_identifier_0_Compiler_reserves_name_1_in_top_level_scope_of_a_module_containing_async_functions,Ap(t),Ap(t))}(t,n),function(e,t){M<=8&&(aR(e,t,"WeakMap")||aR(e,t,"WeakSet"))&&lo.push(e)}(t,n),function(e,t){t&&M>=2&&M<=8&&aR(e,t,"Reflect")&&_o.push(e)}(t,n),u_(t)?(nB(n,_a.Class_name_cannot_be_0),33554432&t.flags||function(t){M>=1&&"Object"===t.escapedText&&e.getEmitModuleFormatOfFile(vd(t))<5&&zo(t,_a.Class_name_cannot_be_Object_when_targeting_ES5_and_above_with_module_0,fi[R])}(n)):mE(t)&&nB(n,_a.Enum_name_cannot_be_0))}function dR(e){return e===Nt?wt:e===lr?cr:e}function pR(e){var t;if(zM(e),lF(e)||AB(e.type),!e.name)return;if(168===e.name.kind&&(BA(e.name),Pu(e)&&e.initializer&&Ij(e.initializer)),lF(e)){if(e.propertyName&&aD(e.name)&&Qh(e)&&Nd(Kf(e).body))return void uo.push(e);sF(e.parent)&&e.dotDotDotToken&&M1&&$(n.declarations,t=>t!==e&&Af(t)&&!mR(t,e))&&zo(e.name,_a.All_declarations_of_0_must_have_identical_modifiers,Ap(e.name))}else{const t=dR(s_(e));al(r)||al(t)||SS(r,t)||67108864&n.flags||fR(n.valueDeclaration,r,e,t),Pu(e)&&e.initializer&&OS(Ij(e.initializer),t,e,e.initializer,void 0),n.valueDeclaration&&!mR(e,n.valueDeclaration)&&zo(e.name,_a.All_declarations_of_0_must_have_identical_modifiers,Ap(e.name))}173!==e.kind&&172!==e.kind&&(kM(e),261!==e.kind&&209!==e.kind||function(e){if(7&Pz(e)||Qh(e))return;const t=ks(e);if(1&t.flags){if(!aD(e.name))return un.fail();const n=Ue(e,e.name.escapedText,3,void 0,!1);if(n&&n!==t&&2&n.flags&&7&hI(n)){const t=Th(n.valueDeclaration,262),r=244===t.parent.kind&&t.parent.parent?t.parent.parent:void 0;if(!r||!(242===r.kind&&r_(r.parent)||269===r.kind||268===r.kind||308===r.kind)){const t=bc(n);zo(e,_a.Cannot_initialize_outer_scoped_variable_0_in_the_same_scope_as_block_scoped_declaration_1,t,t)}}}}(e),uR(e,e.name))}function fR(e,t,n,r){const i=Cc(n),o=173===n.kind||172===n.kind?_a.Subsequent_property_declarations_must_have_the_same_type_Property_0_must_be_of_type_1_but_here_has_type_2:_a.Subsequent_variable_declarations_must_have_the_same_type_Variable_0_must_be_of_type_1_but_here_has_type_2,a=Ap(i),s=zo(i,o,a,Tc(t),Tc(r));e&&aT(s,Rp(e,_a._0_was_also_declared_here,a))}function mR(e,t){return 170===e.kind&&261===t.kind||261===e.kind&&170===t.kind||wg(e)===wg(t)&&jv(e,1358)===jv(t,1358)}function gR(t){var n,r;null==(n=Hn)||n.push(Hn.Phase.Check,"checkVariableDeclaration",{kind:t.kind,pos:t.pos,end:t.end,path:t.tracingPath}),function(t){const n=Pz(t),r=7&n;if(k_(t.name))switch(r){case 6:return kz(t,_a._0_declarations_may_not_have_binding_patterns,"await using");case 4:return kz(t,_a._0_declarations_may_not_have_binding_patterns,"using")}if(250!==t.parent.parent.kind&&251!==t.parent.parent.kind)if(33554432&n)fz(t);else if(!t.initializer){if(k_(t.name)&&!k_(t.parent))return kz(t,_a.A_destructuring_declaration_must_have_an_initializer);switch(r){case 6:return kz(t,_a._0_declarations_must_be_initialized,"await using");case 4:return kz(t,_a._0_declarations_must_be_initialized,"using");case 2:return kz(t,_a._0_declarations_must_be_initialized,"const")}}if(t.exclamationToken&&(244!==t.parent.parent.kind||!t.type||t.initializer||33554432&n)){const e=t.initializer?_a.Declarations_with_initializers_cannot_also_have_definite_assignment_assertions:t.type?_a.A_definite_assignment_assertion_is_not_permitted_in_this_context:_a.Declarations_with_definite_assignment_assertions_must_also_have_type_annotations;return kz(t.exclamationToken,e)}e.getEmitModuleFormatOfFile(vd(t))<4&&!(33554432&t.parent.parent.flags)&&Nv(t.parent.parent,32)&&mz(t.name),r&&gz(t.name)}(t),pR(t),null==(r=Hn)||r.pop()}function hR(e){const t=7&ac(e);(4===t||6===t)&&M=2,s=!a&&j.downlevelIteration,c=j.noUncheckedIndexedAccess&&!!(128&e);if(a||s||o){const o=ER(t,e,a?r:void 0);if(i&&o){const t=8&e?_a.Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_for_of_will_always_send_0:32&e?_a.Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_array_spread_will_always_send_0:64&e?_a.Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_array_destructuring_will_always_send_0:16&e?_a.Cannot_delegate_iteration_to_value_because_the_next_method_of_its_iterator_expects_type_1_but_the_containing_generator_will_always_send_0:void 0;t&&IS(n,o.nextType,r,t)}if(o||a)return c?rD(o&&o.yieldType):o&&o.yieldType}let l=t,_=!1;if(4&e){if(1048576&l.flags){const e=t.types,n=N(e,e=>!(402653316&e.flags));n!==e&&(l=Pb(n,2))}else 402653316&l.flags&&(l=_n);if(_=l!==t,_&&131072&l.flags)return c?rD(Vt):Vt}if(!JC(l)){if(r){const n=!!(4&e)&&!_,[i,o]=function(n,r){var i;return r?n?[_a.Type_0_is_not_an_array_type_or_a_string_type_or_does_not_have_a_Symbol_iterator_method_that_returns_an_iterator,!0]:[_a.Type_0_is_not_an_array_type_or_does_not_have_a_Symbol_iterator_method_that_returns_an_iterator,!0]:CR(e,0,t,void 0)?[_a.Type_0_can_only_be_iterated_through_when_using_the_downlevelIteration_flag_or_with_a_target_of_es2015_or_higher,!1]:function(e){switch(e){case"Float32Array":case"Float64Array":case"Int16Array":case"Int32Array":case"Int8Array":case"NodeList":case"Uint16Array":case"Uint32Array":case"Uint8Array":case"Uint8ClampedArray":return!0}return!1}(null==(i=t.symbol)?void 0:i.escapedName)?[_a.Type_0_can_only_be_iterated_through_when_using_the_downlevelIteration_flag_or_with_a_target_of_es2015_or_higher,!0]:n?[_a.Type_0_is_not_an_array_type_or_a_string_type,!0]:[_a.Type_0_is_not_an_array_type,!0]}(n,s);Wo(r,o&&!!SM(l),i,Tc(l))}return _?c?rD(Vt):Vt:void 0}const u=Qm(l,Wt);return _&&u?402653316&u.flags&&!j.noUncheckedIndexedAccess?Vt:Pb(c?[u,Vt,jt]:[u,Vt],2):128&e?rD(u):u}function CR(e,t,n,r){if(il(n))return;const i=ER(n,e,r);return i&&i[oJ(t)]}function wR(e=_n,t=_n,n=Ot){if(67359327&e.flags&&180227&t.flags&&180227&n.flags){const r=ny([e,t,n]);let i=pi.get(r);return i||(i={yieldType:e,returnType:t,nextType:n},pi.set(r,i)),i}return{yieldType:e,returnType:t,nextType:n}}function NR(e){let t,n,r;for(const i of e)if(void 0!==i&&i!==mi){if(i===gi)return gi;t=ie(t,i.yieldType),n=ie(n,i.returnType),r=ie(r,i.nextType)}return t||n||r?wR(t&&Pb(t),n&&Pb(n),r&&Bb(r)):mi}function DR(e,t){return e[t]}function FR(e,t,n){return e[t]=n}function ER(e,t,n){var r,i;if(e===dn)return hi;if(il(e))return gi;if(!(1048576&e.flags)){const i=n?{errors:void 0,skipLogging:!0}:void 0,o=AR(e,t,n,i);if(o===mi){if(n){const r=RR(n,e,!!(2&t));(null==i?void 0:i.errors)&&aT(r,...i.errors)}return}if(null==(r=null==i?void 0:i.errors)?void 0:r.length)for(const e of i.errors)ho.add(e);return o}const o=2&t?"iterationTypesOfAsyncIterable":"iterationTypesOfIterable",a=DR(e,o);if(a)return a===mi?void 0:a;let s;for(const r of e.types){const a=n?{errors:void 0}:void 0,c=AR(r,t,n,a);if(c===mi){if(n){const r=RR(n,e,!!(2&t));(null==a?void 0:a.errors)&&aT(r,...a.errors)}return void FR(e,o,mi)}if(null==(i=null==a?void 0:a.errors)?void 0:i.length)for(const e of a.errors)ho.add(e);s=ie(s,c)}const c=s?NR(s):mi;return FR(e,o,c),c===mi?void 0:c}function PR(e,t){if(e===mi)return mi;if(e===gi)return gi;const{yieldType:n,returnType:r,nextType:i}=e;return t&&xv(!0),wR(PM(n,t)||wt,PM(r,t)||wt,i)}function AR(e,t,n,r){if(il(e))return gi;let i=!1;if(2&t){const r=IR(e,yi)||OR(e,yi);if(r){if(r!==mi||!n)return 8&t?PR(r,n):r;i=!0}}if(1&t){let r=IR(e,vi)||OR(e,vi);if(r)if(r===mi&&n)i=!0;else{if(!(2&t))return r;if(r!==mi)return r=PR(r,n),i?r:FR(e,"iterationTypesOfAsyncIterable",r)}}if(2&t){const t=jR(e,yi,n,r,i);if(t!==mi)return t}if(1&t){let o=jR(e,vi,n,r,i);if(o!==mi)return 2&t?(o=PR(o,n),i?o:FR(e,"iterationTypesOfAsyncIterable",o)):o}return mi}function IR(e,t){return DR(e,t.iterableCacheKey)}function OR(e,t){if(J_(e,t.getGlobalIterableType(!1))||J_(e,t.getGlobalIteratorObjectType(!1))||J_(e,t.getGlobalIterableIteratorType(!1))||J_(e,t.getGlobalGeneratorType(!1))){const[n,r,i]=uy(e);return FR(e,t.iterableCacheKey,wR(t.resolveIterationType(n,void 0)||n,t.resolveIterationType(r,void 0)||r,i))}if(B_(e,t.getGlobalBuiltinIteratorTypes())){const[n]=uy(e),r=mv(),i=Ot;return FR(e,t.iterableCacheKey,wR(t.resolveIterationType(n,void 0)||n,t.resolveIterationType(r,void 0)||r,i))}}function LR(e){const t=Yy(!1),n=t&&el(P_(t),fc(e));return n&&sC(n)?cC(n):`__@${e}`}function jR(e,t,n,r,i){const o=pm(e,LR(t.iteratorSymbolName)),a=!o||16777216&o.flags?void 0:P_(o);if(il(a))return i?gi:FR(e,t.iterableCacheKey,gi);const s=a?mm(a,0):void 0,c=N(s,e=>0===ML(e));if(!$(c))return n&&$(s)&&IS(e,t.getGlobalIterableType(!0),n,void 0,void 0,r),i?mi:FR(e,t.iterableCacheKey,mi);const l=BR(Bb(E(c,Gg)),t,n,r,i)??mi;return i?l:FR(e,t.iterableCacheKey,l)}function RR(e,t,n){const r=n?_a.Type_0_must_have_a_Symbol_asyncIterator_method_that_returns_an_async_iterator:_a.Type_0_must_have_a_Symbol_iterator_method_that_returns_an_iterator;return Wo(e,!!SM(t)||!n&&ZF(e.parent)&&e.parent.expression===e&&rv(!1)!==On&&FS(t,kv(rv(!1),[wt,wt,wt])),r,Tc(t))}function BR(e,t,n,r,i){if(il(e))return gi;let o=function(e,t){return DR(e,t.iteratorCacheKey)}(e,t)||function(e,t){if(J_(e,t.getGlobalIterableIteratorType(!1))||J_(e,t.getGlobalIteratorType(!1))||J_(e,t.getGlobalIteratorObjectType(!1))||J_(e,t.getGlobalGeneratorType(!1))){const[n,r,i]=uy(e);return FR(e,t.iteratorCacheKey,wR(n,r,i))}if(B_(e,t.getGlobalBuiltinIteratorTypes())){const[n]=uy(e),r=mv(),i=Ot;return FR(e,t.iteratorCacheKey,wR(n,r,i))}}(e,t);return o===mi&&n&&(o=void 0,i=!0),o??(o=function(e,t,n,r,i){const o=NR([VR(e,t,"next",n,r),VR(e,t,"return",n,r),VR(e,t,"throw",n,r)]);return i?o:FR(e,t.iteratorCacheKey,o)}(e,t,n,r,i)),o===mi?void 0:o}function JR(e,t){const n=el(e,"done")||Ht;return FS(0===t?Ht:Yt,n)}function zR(e){return JR(e,0)}function qR(e){return JR(e,1)}function VR(e,t,n,r,i){var o,a,s,c;const _=pm(e,n);if(!_&&"next"!==n)return;const u=!_||"next"===n&&16777216&_.flags?void 0:"next"===n?P_(_):XN(P_(_),2097152);if(il(u))return gi;const d=u?mm(u,0):l;if(0===d.length){if(r){const e="next"===n?t.mustHaveANextMethodDiagnostic:t.mustBeAMethodDiagnostic;i?(i.errors??(i.errors=[]),i.errors.push(Rp(r,e,n))):zo(r,e,n)}return"next"===n?mi:void 0}if((null==u?void 0:u.symbol)&&1===d.length){const e=t.getGlobalGeneratorType(!1),r=t.getGlobalIteratorType(!1),i=(null==(a=null==(o=e.symbol)?void 0:o.members)?void 0:a.get(n))===u.symbol,l=!i&&(null==(c=null==(s=r.symbol)?void 0:s.members)?void 0:c.get(n))===u.symbol;if(i||l){const t=i?e:r,{mapper:o}=u;return wR(Vk(t.typeParameters[0],o),Vk(t.typeParameters[1],o),"next"===n?Vk(t.typeParameters[2],o):void 0)}}let p,f,m,g,h;for(const e of d)"throw"!==n&&$(e.parameters)&&(p=ie(p,AL(e,0))),f=ie(f,Gg(e));if("throw"!==n){const e=p?Pb(p):Ot;"next"===n?g=e:"return"===n&&(m=ie(m,t.resolveIterationType(e,r)||wt))}const y=f?Bb(f):_n,v=function(e){if(il(e))return gi;const t=DR(e,"iterationTypesOfIteratorResult");if(t)return t;if(J_(e,Cr||(Cr=Wy("IteratorYieldResult",1,!1))||On))return FR(e,"iterationTypesOfIteratorResult",wR(uy(e)[0],void 0,void 0));if(J_(e,wr||(wr=Wy("IteratorReturnResult",1,!1))||On))return FR(e,"iterationTypesOfIteratorResult",wR(void 0,uy(e)[0],void 0));const n=GD(e,zR),r=n!==_n?el(n,"value"):void 0,i=GD(e,qR),o=i!==_n?el(i,"value"):void 0;return FR(e,"iterationTypesOfIteratorResult",r||o?wR(r,o||ln,void 0):mi)}(t.resolveIterationType(y,r)||wt);return v===mi?(r&&(i?(i.errors??(i.errors=[]),i.errors.push(Rp(r,t.mustHaveAValueDiagnostic,n))):zo(r,t.mustHaveAValueDiagnostic,n)),h=wt,m=ie(m,wt)):(h=v.yieldType,m=ie(m,v.returnType)),wR(h,Pb(m),g)}function WR(e,t,n){if(il(t))return;const r=$R(t,n);return r&&r[oJ(e)]}function $R(e,t){if(il(e))return gi;const n=t?yi:vi;return ER(e,t?2:1,void 0)||function(e,t){return BR(e,t,void 0,void 0,!1)}(e,n)}function KR(e,t){const n=!!(2&t);if(1&t){const t=WR(1,e,n);return t?n?AM(FM(t)):t:Et}return n?AM(e)||Et:e}function XR(e,t){const n=KR(t,Oh(e));return!(!n||!(gj(n,16384)||32769&n.flags))}function QR(e,t,n,r,i,o=!1){const a=Em(n),s=Oh(e);if(r){const i=ah(r,a);if(DF(i))return QR(e,t,n,i.whenTrue,eM(i.whenTrue),!0),void QR(e,t,n,i.whenFalse,eM(i.whenFalse),!0)}const c=254===n.kind,l=2&s?CM(i,!1,n,_a.The_return_type_of_an_async_function_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member):i,_=r&&LO(r);OS(l,t,c&&!o?n:_,_)}function YR(e,t,n){const r=Jm(e);if(0===r.length)return;for(const t of Dp(e))n&&4194304&t.flags||ZR(e,t,Kb(t,8576,!0),M_(t));const i=t.valueDeclaration;if(i&&u_(i))for(const t of i.members)if((!n&&!Dv(t)||n&&Dv(t))&&!fd(t)){const n=ks(t);ZR(e,n,Qj(t.name.expression),M_(n))}if(r.length>1)for(const t of r)eB(e,t)}function ZR(e,t,n,r){const i=t.valueDeclaration,o=Cc(i);if(o&&sD(o))return;const a=rg(e,n),s=2&gx(e)?Hu(e.symbol,265):void 0,c=i&&227===i.kind||o&&168===o.kind?i:void 0,l=Ts(t)===e.symbol?i:void 0;for(const n of a){const i=n.declaration&&Ts(ks(n.declaration))===e.symbol?n.declaration:void 0,o=l||i||(s&&!$(uu(e),e=>!!Lp(e,t.escapedName)&&!!Qm(e,n.keyType))?s:void 0);if(o&&!FS(r,n.type)){const e=Jo(o,_a.Property_0_of_type_1_is_not_assignable_to_2_index_type_3,bc(t),Tc(r),Tc(n.keyType),Tc(n.type));c&&o!==c&&aT(e,Rp(c,_a._0_is_declared_here,bc(t))),ho.add(e)}}}function eB(e,t){const n=t.declaration,r=rg(e,t.keyType),i=2&gx(e)?Hu(e.symbol,265):void 0,o=n&&Ts(ks(n))===e.symbol?n:void 0;for(const n of r){if(n===t)continue;const r=n.declaration&&Ts(ks(n.declaration))===e.symbol?n.declaration:void 0,a=o||r||(i&&!$(uu(e),e=>!!qm(e,t.keyType)&&!!Qm(e,n.keyType))?i:void 0);a&&!FS(t.type,n.type)&&zo(a,_a._0_index_type_1_is_not_assignable_to_2_index_type_3,Tc(t.keyType),Tc(t.type),Tc(n.keyType),Tc(n.type))}}function nB(e,t){switch(e.escapedText){case"any":case"unknown":case"never":case"number":case"bigint":case"boolean":case"string":case"symbol":case"void":case"object":case"undefined":zo(e,t,e.escapedText)}}function rB(e){let t=!1;if(e)for(let t=0;t{var i,o,a;n.default?(t=!0,i=n.default,o=e,a=r,function e(t){if(184===t.kind){const e=jy(t);if(262144&e.flags)for(let n=a;n264===e.kind||265===e.kind)}(e);if(!n||n.length<=1)return;if(!oB(n,Au(e).localTypeParameters,_l)){const t=bc(e);for(const e of n)zo(e.name,_a.All_declarations_of_0_must_have_identical_type_parameters,t)}}}function oB(e,t,n){const r=u(t),i=Tg(t);for(const o of e){const e=n(o),a=e.length;if(ar)return!1;for(let n=0;n1)return bz(r.types[1],_a.Classes_can_only_extend_a_single_class);t=!0}else{if(un.assert(119===r.token),n)return bz(r,_a.implements_clause_already_seen);n=!0}tz(r)}})(e)||YJ(e.typeParameters,t)}(e),zM(e),uR(e,e.name),rB(_l(e)),kM(e);const t=ks(e),n=Au(t),r=wd(n),i=P_(t);iB(t),xM(t),function(e){const t=new Map,n=new Map,r=new Map;for(const o of e.members)if(177===o.kind)for(const e of o.parameters)Zs(e,o)&&!k_(e.name)&&i(t,e.name,e.name.escapedText,3);else{const e=Dv(o),a=o.name;if(!a)continue;const s=sD(a),c=s&&e?16:0,l=s?r:e?n:t,_=a&&Fz(a);if(_)switch(o.kind){case 178:i(l,a,_,1|c);break;case 179:i(l,a,_,2|c);break;case 173:i(l,a,_,3|c);break;case 175:i(l,a,_,8|c)}}function i(e,t,n,r){const i=e.get(n);if(i)if((16&i)!=(16&r))zo(t,_a.Duplicate_identifier_0_Static_and_instance_elements_cannot_share_the_same_private_name,Xd(t));else{const o=!!(8&i),a=!!(8&r);o||a?o!==a&&zo(t,_a.Duplicate_identifier_0,Xd(t)):i&r&-17?zo(t,_a.Duplicate_identifier_0,Xd(t)):e.set(n,i|r)}else e.set(n,r)}}(e),33554432&e.flags||function(e){for(const t of e.members){const n=t.name;if(Dv(t)&&n){const t=Fz(n);switch(t){case"name":case"length":case"caller":case"arguments":if(U)break;case"prototype":zo(n,_a.Static_property_0_conflicts_with_built_in_property_Function_0_of_constructor_function_1,t,Uc(ks(e)))}}}}(e);const o=yh(e);if(o){d(o.typeArguments,AB),M{const t=s[0],a=cu(n),c=Sf(a);if(function(e,t){const n=mm(e,1);if(n.length){const r=n[0].declaration;r&&wv(r,2)&&(pJ(t,mx(e.symbol))||zo(t,_a.Cannot_extend_a_class_0_Class_constructor_is_marked_as_private,es(e.symbol)))}}(c,o),AB(o.expression),$(o.typeArguments)){d(o.typeArguments,AB);for(const e of ru(c,o.typeArguments,o))if(!fM(o,e.typeParameters))break}const l=wd(t,n.thisType);IS(r,l,void 0)?IS(i,kS(c),e.name||e,_a.Class_static_side_0_incorrectly_extends_base_class_static_side_1):_B(e,r,l,_a.Class_0_incorrectly_extends_base_class_1),8650752&a.flags&&(eu(i)?mm(a,1).some(e=>4&e.flags)&&!Nv(e,64)&&zo(e.name||e,_a.A_mixin_class_that_extends_from_a_type_variable_containing_an_abstract_construct_signature_must_also_be_declared_abstract):zo(e.name||e,_a.A_mixin_class_must_have_a_constructor_with_a_single_rest_parameter_of_type_any)),c.symbol&&32&c.symbol.flags||8650752&a.flags||d(iu(c,o.typeArguments,o),e=>!sL(e.declaration)&&!SS(Gg(e),t))&&zo(o.expression,_a.Base_constructors_must_all_have_the_same_return_type),function(e,t){var n,r,i,o,a;const s=Up(t),c=new Map;e:for(const l of s){const s=uB(l);if(4194304&s.flags)continue;const _=Lp(e,s.escapedName);if(!_)continue;const u=uB(_),d=ix(s);if(un.assert(!!u,"derived should point to something, even if it is the base class' declaration."),u===s){const r=mx(e.symbol);if(64&d&&(!r||!Nv(r,64))){for(const n of uu(e)){if(n===t)continue;const e=Lp(n,s.escapedName),r=e&&uB(e);if(r&&r!==s)continue e}const i=Tc(t),o=Tc(e),a=bc(l),_=ie(null==(n=c.get(r))?void 0:n.missedProperties,a);c.set(r,{baseTypeName:i,typeName:o,missedProperties:_})}}else{const n=ix(u);if(2&d||2&n)continue;let c;const l=98308&s.flags,_=98308&u.flags;if(l&&_){if((6&rx(s)?null==(r=s.declarations)?void 0:r.some(e=>pB(e,d)):null==(i=s.declarations)?void 0:i.every(e=>pB(e,d)))||262144&rx(s)||u.valueDeclaration&&NF(u.valueDeclaration))continue;const c=4!==l&&4===_;if(c||4===l&&4!==_){const n=c?_a._0_is_defined_as_an_accessor_in_class_1_but_is_overridden_here_in_2_as_an_instance_property:_a._0_is_defined_as_a_property_in_class_1_but_is_overridden_here_in_2_as_an_accessor;zo(Cc(u.valueDeclaration)||u.valueDeclaration,n,bc(s),Tc(t),Tc(e))}else if(U){const r=null==(o=u.declarations)?void 0:o.find(e=>173===e.kind&&!e.initializer);if(r&&!(33554432&u.flags)&&!(64&d)&&!(64&n)&&!(null==(a=u.declarations)?void 0:a.some(e=>!!(33554432&e.flags)))){const n=yC(mx(e.symbol)),i=r.name;if(r.exclamationToken||!n||!aD(i)||!H||!mB(i,e,n)){const e=_a.Property_0_will_overwrite_the_base_property_in_1_If_this_is_intentional_add_an_initializer_Otherwise_add_a_declare_modifier_or_remove_the_redundant_declaration;zo(Cc(u.valueDeclaration)||u.valueDeclaration,e,bc(s),Tc(t))}}}continue}if(yI(s)){if(yI(u)||4&u.flags)continue;un.assert(!!(98304&u.flags)),c=_a.Class_0_defines_instance_member_function_1_but_extended_class_2_defines_it_as_instance_member_accessor}else c=98304&s.flags?_a.Class_0_defines_instance_member_accessor_1_but_extended_class_2_defines_it_as_instance_member_function:_a.Class_0_defines_instance_member_property_1_but_extended_class_2_defines_it_as_instance_member_function;zo(Cc(u.valueDeclaration)||u.valueDeclaration,c,Tc(t),bc(s),Tc(e))}}for(const[e,t]of c)if(1===u(t.missedProperties))AF(e)?zo(e,_a.Non_abstract_class_expression_does_not_implement_inherited_abstract_member_0_from_class_1,ge(t.missedProperties),t.baseTypeName):zo(e,_a.Non_abstract_class_0_does_not_implement_inherited_abstract_member_1_from_class_2,t.typeName,ge(t.missedProperties),t.baseTypeName);else if(u(t.missedProperties)>5){const n=E(t.missedProperties.slice(0,4),e=>`'${e}'`).join(", "),r=u(t.missedProperties)-4;AF(e)?zo(e,_a.Non_abstract_class_expression_is_missing_implementations_for_the_following_members_of_0_Colon_1_and_2_more,t.baseTypeName,n,r):zo(e,_a.Non_abstract_class_0_is_missing_implementations_for_the_following_members_of_1_Colon_2_and_3_more,t.typeName,t.baseTypeName,n,r)}else{const n=E(t.missedProperties,e=>`'${e}'`).join(", ");AF(e)?zo(e,_a.Non_abstract_class_expression_is_missing_implementations_for_the_following_members_of_0_Colon_1,t.baseTypeName,n):zo(e,_a.Non_abstract_class_0_is_missing_implementations_for_the_following_members_of_1_Colon_2,t.typeName,t.baseTypeName,n)}}(n,t)})}!function(e,t,n,r){const i=yh(e)&&uu(t),o=(null==i?void 0:i.length)?wd(ge(i),t.thisType):void 0,a=cu(t);for(const i of e.members)Av(i)||(PD(i)&&d(i.parameters,s=>{Zs(s,i)&&cB(e,r,a,o,t,n,s,!0)}),cB(e,r,a,o,t,n,i,!1))}(e,n,r,i);const s=bh(e);if(s)for(const e of s)ab(e.expression)&&!hl(e.expression)||zo(e.expression,_a.A_class_can_only_implement_an_identifier_Slashqualified_name_with_optional_type_arguments),gM(e),a(c(e));function c(t){return()=>{const i=Bf(Pk(t));if(!al(i))if(fu(i)){const t=i.symbol&&32&i.symbol.flags?_a.Class_0_incorrectly_implements_class_1_Did_you_mean_to_extend_1_and_inherit_its_members_as_a_subclass:_a.Class_0_incorrectly_implements_interface_1,o=wd(i,n.thisType);IS(r,o,void 0)||_B(e,r,o,t)}else zo(t,_a.A_class_can_only_implement_an_object_type_or_intersection_of_object_types_with_statically_known_members)}}a(()=>{YR(n,t),YR(i,t,!0),sM(e),function(e){if(!H||!Z||33554432&e.flags)return;const t=yC(e);for(const n of e.members)if(!(128&Bv(n))&&!Dv(n)&&fB(n)){const e=n.name;if(aD(e)||sD(e)||kD(e)){const r=P_(ks(n));3&r.flags||QS(r)||t&&mB(e,r,t)||zo(n.name,_a.Property_0_has_no_initializer_and_is_not_definitely_assigned_in_the_constructor,Ap(e))}}}(e)})}function cB(e,t,n,r,i,o,a,s,c=!0){const l=a.name&&yJ(a.name)||yJ(a);return l?lB(e,t,n,r,i,o,Ev(a),Pv(a),Dv(a),s,l,c?a:void 0):0}function lB(e,t,n,r,i,o,a,s,c,l,_,u){const d=Em(e),p=!!(33554432&e.flags);if(a&&(null==_?void 0:_.valueDeclaration)&&__(_.valueDeclaration)&&_.valueDeclaration.name&&md(_.valueDeclaration.name))return zo(u,d?_a.This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_its_name_is_dynamic:_a.This_member_cannot_have_an_override_modifier_because_its_name_is_dynamic),2;if(r&&(a||j.noImplicitOverride)){const e=c?n:r,i=pm(c?t:o,_.escapedName),f=pm(e,_.escapedName),m=Tc(r);if(i&&!f&&a){if(u){const t=KI(yc(_),e);t?zo(u,d?_a.This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base_class_0_Did_you_mean_1:_a.This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0_Did_you_mean_1,m,bc(t)):zo(u,d?_a.This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base_class_0:_a.This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0,m)}return 2}if(i&&(null==f?void 0:f.declarations)&&j.noImplicitOverride&&!p){const e=$(f.declarations,Pv);if(a)return 0;if(!e)return u&&zo(u,l?d?_a.This_parameter_property_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_class_0:_a.This_parameter_property_must_have_an_override_modifier_because_it_overrides_a_member_in_base_class_0:d?_a.This_member_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_class_0:_a.This_member_must_have_an_override_modifier_because_it_overrides_a_member_in_the_base_class_0,m),1;if(s&&e)return u&&zo(u,_a.This_member_must_have_an_override_modifier_because_it_overrides_an_abstract_method_that_is_declared_in_the_base_class_0,m),1}}else if(a){if(u){const e=Tc(i);zo(u,d?_a.This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_its_containing_class_0_does_not_extend_another_class:_a.This_member_cannot_have_an_override_modifier_because_its_containing_class_0_does_not_extend_another_class,e)}return 2}return 0}function _B(e,t,n,r){let i=!1;for(const r of e.members){if(Dv(r))continue;const e=r.name&&yJ(r.name)||yJ(r);if(e){const o=pm(t,e.escapedName),a=pm(n,e.escapedName);if(o&&a){const s=()=>Zx(void 0,_a.Property_0_in_type_1_is_not_assignable_to_the_same_property_in_base_type_2,bc(e),Tc(t),Tc(n));IS(P_(o),P_(a),r.name||r,void 0,s)||(i=!0)}}}i||IS(t,n,e.name||e,r)}function uB(e){return 1&rx(e)?e.links.target:e}function pB(e,t){return 64&t&&(!ND(e)||!e.initializer)||pE(e.parent)}function fB(e){return 173===e.kind&&!Pv(e)&&!e.exclamationToken&&!e.initializer}function mB(e,t,n){const r=kD(e)?mw.createElementAccessExpression(mw.createThis(),e.expression):mw.createPropertyAccessExpression(mw.createThis(),e);return DT(r.expression,r),DT(r,n),r.flowNode=n.returnFlowNode,!QS(rE(r,t,pw(t)))}function gB(e){const t=da(e);if(!(1024&t.flags)){t.flags|=1024;let n,r=0;for(const t of e.members){const e=hB(t,r,n);da(t).enumMemberValue=e,r="number"==typeof e.value?e.value+1:void 0,n=t}}}function hB(e,t,n){if(Op(e.name))zo(e.name,_a.Computed_property_names_are_not_allowed_in_enums);else if(qN(e.name))zo(e.name,_a.An_enum_member_cannot_have_a_numeric_name);else{const t=jp(e.name);JT(t)&&!jT(t)&&zo(e.name,_a.An_enum_member_cannot_have_a_numeric_name)}if(e.initializer)return function(e){const t=tf(e.parent),n=e.initializer,r=Ce(n,e);return void 0!==r.value?t&&"number"==typeof r.value&&!isFinite(r.value)?zo(n,isNaN(r.value)?_a.const_enum_member_initializer_was_evaluated_to_disallowed_value_NaN:_a.const_enum_member_initializer_was_evaluated_to_a_non_finite_value):kk(j)&&"string"==typeof r.value&&!r.isSyntacticallyString&&zo(n,_a._0_has_a_string_type_but_must_have_syntactically_recognizable_string_syntax_when_isolatedModules_is_enabled,`${gc(e.parent.name)}.${jp(e.name)}`):t?zo(n,_a.const_enum_member_initializers_must_be_constant_expressions):33554432&e.parent.flags?zo(n,_a.In_ambient_enum_declarations_member_initializer_must_be_constant_expression):IS(eM(n),Wt,n,_a.Type_0_is_not_assignable_to_type_1_as_required_for_computed_enum_member_values),r}(e);if(33554432&e.parent.flags&&!tf(e.parent))return mC(void 0);if(void 0===t)return zo(e.name,_a.Enum_member_must_have_initializer),mC(void 0);if(kk(j)&&(null==n?void 0:n.initializer)){const t=MJ(n);("number"!=typeof t.value||t.resolvedOtherFiles)&&zo(e.name,_a.Enum_member_following_a_non_literal_numeric_member_must_have_an_initializer_when_isolatedModules_is_enabled)}return mC(t)}function vB(e,t){const n=ts(e,111551,!0);if(!n)return mC(void 0);if(80===e.kind){const t=e;if(jT(t.escapedText)&&n===Vy(t.escapedText,111551,void 0))return mC(+t.escapedText,!1)}if(8&n.flags)return t?bB(e,n,t):MJ(n.valueDeclaration);if(TE(n)){const e=n.valueDeclaration;if(e&&lE(e)&&!e.type&&e.initializer&&(!t||e!==t&&fa(e,t))){const n=Ce(e.initializer,e);return t&&vd(t)!==vd(e)?mC(n.value,!1,!0,!0):mC(n.value,n.isSyntacticallyString,n.resolvedOtherFiles,!0)}}return mC(void 0)}function bB(e,t,n){const r=t.valueDeclaration;if(!r||r===n)return zo(e,_a.Property_0_is_used_before_being_assigned,bc(t)),mC(void 0);if(!fa(r,n))return zo(e,_a.A_member_initializer_in_a_enum_declaration_cannot_reference_members_declared_after_it_including_members_defined_in_other_enums),mC(0);const i=MJ(r);return n.parent!==r.parent?mC(i.value,i.isSyntacticallyString,i.resolvedOtherFiles,!0):i}function xB(e,t){switch(e.kind){case 244:for(const n of e.declarationList.declarations)xB(n,t);break;case 278:case 279:bz(e,_a.Exports_and_export_assignments_are_not_permitted_in_module_augmentations);break;case 272:if(Nm(e))break;case 273:bz(e,_a.Imports_are_not_permitted_in_module_augmentations_Consider_moving_them_to_the_enclosing_external_module);break;case 209:case 261:const n=e.name;if(k_(n)){for(const e of n.elements)xB(e,t);break}case 264:case 267:case 263:case 265:case 268:case 266:if(t)return}}function kB(e){const t=kg(e);if(!t||Nd(t))return!1;if(!UN(t))return zo(t,_a.String_literal_expected),!1;const n=269===e.parent.kind&&cp(e.parent.parent);if(308!==e.parent.kind&&!n)return zo(t,279===e.kind?_a.Export_declarations_are_not_permitted_in_a_namespace:_a.Import_declarations_in_a_namespace_cannot_reference_a_module),!1;if(n&&Cs(t.text)&&!Jc(e))return zo(e,_a.Import_or_export_declaration_in_an_ambient_module_declaration_cannot_reference_module_through_relative_module_name),!1;if(!bE(e)&&e.attributes){const t=118===e.attributes.token?_a.Import_attribute_values_must_be_string_literal_expressions:_a.Import_assertion_values_must_be_string_literal_expressions;let n=!1;for(const r of e.attributes.elements)UN(r.value)||(n=!0,zo(r.value,t));return!n}return!0}function SB(e,t=!0){void 0!==e&&11===e.kind&&(t?5!==R&&6!==R||kz(e,_a.String_literal_import_and_export_names_are_not_supported_when_the_module_flag_is_set_to_es2015_or_es2020):kz(e,_a.Identifier_expected))}function TB(t){var n,r,i,o,a;let s=ks(t);const c=Ha(s);if(c!==xt){if(s=xs(s.exportSymbol||s),Em(t)&&!(111551&c.flags)&&!zl(t)){const e=Rl(t)?t.propertyName||t.name:Sc(t)?t.name:t;if(un.assert(281!==t.kind),282===t.kind){const o=zo(e,_a.Types_cannot_appear_in_export_declarations_in_JavaScript_files),a=null==(r=null==(n=vd(t).symbol)?void 0:n.exports)?void 0:r.get(Hd(t.propertyName||t.name));if(a===c){const e=null==(i=a.declarations)?void 0:i.find(Su);e&&aT(o,Rp(e,_a._0_is_automatically_exported_here,mc(a.escapedName)))}}else{un.assert(261!==t.kind);const n=uc(t,en(xE,bE)),r=(n&&(null==(o=yg(n))?void 0:o.text))??"...",i=mc(aD(e)?e.escapedText:s.escapedName);zo(e,_a._0_is_a_type_and_cannot_be_imported_in_JavaScript_files_Use_1_in_a_JSDoc_type_annotation,i,`import("${r}").${i}`)}return}const l=Ka(c);if(l&((1160127&s.flags?111551:0)|(788968&s.flags?788968:0)|(1920&s.flags?1920:0))?zo(t,282===t.kind?_a.Export_declaration_conflicts_with_exported_declaration_of_0:_a.Import_declaration_conflicts_with_local_declaration_of_0,bc(s)):282!==t.kind&&j.isolatedModules&&!uc(t,zl)&&1160127&s.flags&&zo(t,_a.Import_0_conflicts_with_local_value_so_must_be_declared_with_a_type_only_import_when_isolatedModules_is_enabled,bc(s),Me),kk(j)&&!zl(t)&&!(33554432&t.flags)){const n=Ya(s),r=!(111551&l);if(r||n)switch(t.kind){case 274:case 277:case 272:if(j.verbatimModuleSyntax){un.assertIsDefined(t.name,"An ImportClause with a symbol should have a name");const e=j.verbatimModuleSyntax&&Nm(t)?_a.An_import_alias_cannot_resolve_to_a_type_or_type_only_declaration_when_verbatimModuleSyntax_is_enabled:r?_a._0_is_a_type_and_must_be_imported_using_a_type_only_import_when_verbatimModuleSyntax_is_enabled:_a._0_resolves_to_a_type_only_declaration_and_must_be_imported_using_a_type_only_import_when_verbatimModuleSyntax_is_enabled,i=$d(277===t.kind&&t.propertyName||t.name);ha(zo(t,e,i),r?void 0:n,i)}r&&272===t.kind&&wv(t,32)&&zo(t,_a.Cannot_use_export_import_on_a_type_or_type_only_namespace_when_0_is_enabled,Me);break;case 282:if(j.verbatimModuleSyntax||vd(n)!==vd(t)){const e=$d(t.propertyName||t.name);ha(r?zo(t,_a.Re_exporting_a_type_when_0_is_enabled_requires_using_export_type,Me):zo(t,_a._0_resolves_to_a_type_only_declaration_and_must_be_re_exported_using_a_type_only_re_export_when_1_is_enabled,e,Me),r?void 0:n,e);break}}if(j.verbatimModuleSyntax&&272!==t.kind&&!Em(t)&&1===e.getEmitModuleFormatOfFile(vd(t))?zo(t,qo(t)):200===R&&272!==t.kind&&261!==t.kind&&1===e.getEmitModuleFormatOfFile(vd(t))&&zo(t,_a.ECMAScript_module_syntax_is_not_allowed_in_a_CommonJS_module_when_module_is_set_to_preserve),j.verbatimModuleSyntax&&!zl(t)&&!(33554432&t.flags)&&128&l){const n=c.valueDeclaration,r=null==(a=e.getRedirectFromOutput(vd(n).resolvedPath))?void 0:a.resolvedRef;!(33554432&n.flags)||r&&Fk(r.commandLine.options)||zo(t,_a.Cannot_access_ambient_const_enums_when_0_is_enabled,Me)}}if(PE(t)){const e=CB(s,t);Ho(e)&&e.declarations&&Go(t,e.declarations,e.escapedName)}}}function CB(e,t){if(!(2097152&e.flags)||Ho(e)||!Ca(e))return e;const n=Ha(e);if(n===xt)return n;for(;2097152&e.flags;){const r=VA(e);if(!r)break;if(r===n)break;if(r.declarations&&u(r.declarations)){if(Ho(r)){Go(t,r.declarations,r.escapedName);break}if(e===n)break;e=r}}return n}function wB(t){uR(t,t.name),TB(t),277===t.kind&&(SB(t.propertyName),Kd(t.propertyName||t.name)&&Sk(j)&&e.getEmitModuleFormatOfFile(vd(t))<4&&HJ(t,131072))}function NB(e){var t;const n=e.attributes;if(n){const r=Qy(!0);r!==Nn&&IS(function(e){const t=da(e);if(!t.resolvedType){const n=Xo(4096,"__importAttributes"),r=Gu();d(e.elements,e=>{const t=Xo(4,pC(e));t.parent=n,t.links.type=function(e){return dk(Ij(e.value))}(e),t.links.target=t,r.set(t.escapedName,t)});const i=$s(n,r,l,l,l);i.objectFlags|=262272,t.resolvedType=i}return t.resolvedType}(n),dw(r,32768),n);const i=uV(e),o=mV(n,i?kz:void 0),a=118===e.attributes.token;if(i&&o)return;if(!Bk(R))return kz(n,a?_a.Import_attributes_are_only_supported_when_the_module_option_is_set_to_esnext_node18_node20_nodenext_or_preserve:_a.Import_assertions_are_only_supported_when_the_module_option_is_set_to_esnext_node18_node20_nodenext_or_preserve);if(102<=R&&R<=199&&!a)return bz(n,_a.Import_assertions_have_been_replaced_by_import_attributes_Use_with_instead_of_assert);if(e.moduleSpecifier&&1===Pa(e.moduleSpecifier))return kz(n,a?_a.Import_attributes_are_not_allowed_on_statements_that_compile_to_CommonJS_require_calls:_a.Import_assertions_are_not_allowed_on_statements_that_compile_to_CommonJS_require_calls);if(XP(e)||(xE(e)?null==(t=e.importClause)?void 0:t.isTypeOnly:e.isTypeOnly))return kz(n,a?_a.Import_attributes_cannot_be_used_with_type_only_imports_or_exports:_a.Import_assertions_cannot_be_used_with_type_only_imports_or_exports);if(o)return kz(n,_a.resolution_mode_can_only_be_set_for_type_only_imports)}}function DB(e,t){const n=308===e.parent.kind||269===e.parent.kind||268===e.parent.kind;return n||bz(e,t),!n}function FB(t){TB(t);const n=void 0!==t.parent.parent.moduleSpecifier;if(SB(t.propertyName,n),SB(t.name),Dk(j)&&Wc(t.propertyName||t.name,!0),n)Sk(j)&&e.getEmitModuleFormatOfFile(vd(t))<4&&Kd(t.propertyName||t.name)&&HJ(t,131072);else{const e=t.propertyName||t.name;if(11===e.kind)return;const n=Ue(e,e.escapedText,2998271,void 0,!0);n&&(n===De||n===Fe||n.declarations&&Yp(Zc(n.declarations[0])))?zo(e,_a.Cannot_export_0_Only_local_declarations_can_be_exported_from_a_module,gc(e)):RE(t,7)}}function EB(e){const t=ks(e),n=ua(t);if(!n.exportsChecked){const e=t.exports.get("export=");if(e&&function(e){return rd(e.exports,(e,t)=>"export="!==t)}(t)){const t=Ca(e)||e.valueDeclaration;!t||Jc(t)||Em(t)||zo(t,_a.An_export_assignment_cannot_be_used_in_a_module_with_other_exported_elements)}const r=ys(t);r&&r.forEach(({declarations:e,flags:t},n)=>{if("__export"===n)return;if(1920&t)return;const r=w(e,Zt(GB,tn(pE)));if(!(524288&t&&r<=2)&&r>1&&!PB(e))for(const t of e)rJ(t)&&ho.add(Rp(t,_a.Cannot_redeclare_exported_variable_0,mc(n)))}),n.exportsChecked=!0}}function PB(e){return e&&e.length>1&&e.every(e=>Em(e)&&Sx(e)&&(Ym(e.expression)||eg(e.expression)))}function AB(n){if(n){const i=r;r=n,h=0,function(n){if(8388608&LJ(n))return;Lg(n)&&d(n.jsDoc,({comment:e,tags:t})=>{IB(e),d(t,e=>{IB(e.comment),Em(n)&&AB(e)})});const r=n.kind;if(t)switch(r){case 268:case 264:case 265:case 263:t.throwIfCancellationRequested()}switch(r>=244&&r<=260&&Og(n)&&n.flowNode&&!GF(n.flowNode)&&Vo(!1===j.allowUnreachableCode,n,_a.Unreachable_code_detected),r){case 169:return tM(n);case 170:return nM(n);case 173:return cM(n);case 172:return function(e){return sD(e.name)&&zo(e,_a.Private_identifiers_are_not_allowed_outside_class_bodies),cM(e)}(n);case 186:case 185:case 180:case 181:case 182:return iM(n);case 175:case 174:return function(e){dz(e)||iz(e.name),FD(e)&&e.asteriskToken&&aD(e.name)&&"constructor"===gc(e.name)&&zo(e.name,_a.Class_constructor_may_not_be_a_generator),UM(e),Nv(e,64)&&175===e.kind&&e.body&&zo(e,_a.Method_0_cannot_have_an_implementation_because_it_is_marked_abstract,Ap(e.name)),sD(e.name)&&!Xf(e)&&zo(e,_a.Private_identifiers_are_not_allowed_outside_class_bodies),lM(e)}(n);case 176:return function(e){GJ(e),XI(e,AB)}(n);case 177:return function(e){iM(e),function(e){const t=Em(e)?hv(e):void 0,n=e.typeParameters||t&&fe(t);if(n){const t=n.pos===n.end?n.pos:Qa(vd(e).text,n.pos);return xz(e,t,n.end-t,_a.Type_parameters_cannot_appear_on_a_constructor_declaration)}}(e)||function(e){const t=e.type||gv(e);t&&kz(t,_a.Type_annotation_cannot_appear_on_a_constructor_declaration)}(e),AB(e.body);const t=ks(e),n=Hu(t,e.kind);function r(e){return!!Kl(e)||173===e.kind&&!Dv(e)&&!!e.initializer}e===n&&xM(t),Nd(e.body)||a(function(){const t=e.parent;if(vh(t)){EP(e.parent,t);const n=AP(t),i=PP(e.body);if(i){if(n&&zo(i,_a.A_constructor_cannot_contain_a_super_call_when_its_class_extends_null),!V&&($(e.parent.members,r)||$(e.parameters,e=>Nv(e,31))))if(function(e,t){const n=rh(e.parent);return HF(n)&&n.parent===t}(i,e.body)){let t;for(const n of e.body.statements){if(HF(n)&&lf(NA(n.expression))){t=n;break}if(_M(n))break}void 0===t&&zo(e,_a.A_super_call_must_be_the_first_statement_in_the_constructor_to_refer_to_super_or_this_when_a_derived_class_contains_initialized_properties_parameter_properties_or_private_identifiers)}else zo(i,_a.A_super_call_must_be_a_root_level_statement_within_a_constructor_of_a_derived_class_that_contains_initialized_properties_parameter_properties_or_private_identifiers)}else n||zo(e,_a.Constructors_for_derived_classes_must_contain_a_super_call)}})}(n);case 178:case 179:return uM(n);case 184:return gM(n);case 183:return function(e){const t=function(e){switch(e.parent.kind){case 220:case 180:case 263:case 219:case 185:case 175:case 174:const t=e.parent;if(e===t.type)return t}}(e);if(!t)return void zo(e,_a.A_type_predicate_is_only_allowed_in_return_type_position_for_functions_and_methods);const n=Eg(t),r=Hg(n);if(!r)return;AB(e.type);const{parameterName:i}=e;if(0!==r.kind&&2!==r.kind)if(r.parameterIndex>=0){if(aJ(n)&&r.parameterIndex===n.parameters.length-1)zo(i,_a.A_type_predicate_cannot_reference_a_rest_parameter);else if(r.type){const t=()=>Zx(void 0,_a.A_type_predicate_s_type_must_be_assignable_to_its_parameter_s_type);IS(r.type,P_(n.parameters[r.parameterIndex]),e.type,void 0,t)}}else if(i){let n=!1;for(const{name:e}of t.parameters)if(k_(e)&&rM(e,i,r.parameterName)){n=!0;break}n||zo(e.parameterName,_a.Cannot_find_parameter_0,r.parameterName)}}(n);case 187:return function(e){By(e)}(n);case 188:return function(e){d(e.members,AB),a(function(){const t=Yx(e);YR(t,t.symbol),sM(e),aM(e)})}(n);case 189:return function(e){AB(e.elementType)}(n);case 190:return function(e){let t=!1,n=!1;for(const r of e.elements){let e=Jv(r);if(8&e){const t=Pk(r.type);if(!JC(t)){zo(r,_a.A_rest_element_type_must_be_an_array_type);break}(OC(t)||rw(t)&&4&t.target.combinedFlags)&&(e|=4)}if(4&e){if(n){kz(r,_a.A_rest_element_cannot_follow_another_rest_element);break}n=!0}else if(2&e){if(n){kz(r,_a.An_optional_element_cannot_follow_a_rest_element);break}t=!0}else if(1&e&&t){kz(r,_a.A_required_element_cannot_follow_an_optional_element);break}}d(e.elements,AB),Pk(e)}(n);case 193:case 194:return function(e){d(e.types,AB),Pk(e)}(n);case 197:case 191:case 192:return AB(n.type);case 198:return function(e){Ck(e)}(n);case 199:return function(e){!function(e){if(158===e.operator){if(155!==e.type.kind)return kz(e.type,_a._0_expected,Fa(155));let t=nh(e.parent);if(Em(t)&&lP(t)){const e=Vg(t);e&&(t=Ag(e)||e)}switch(t.kind){case 261:const n=t;if(80!==n.name.kind)return kz(e,_a.unique_symbol_types_may_not_be_used_on_a_variable_declaration_with_a_binding_name);if(!If(n))return kz(e,_a.unique_symbol_types_are_only_allowed_on_variables_in_a_variable_statement);if(!(2&n.parent.flags))return kz(t.name,_a.A_variable_whose_type_is_a_unique_symbol_type_must_be_const);break;case 173:if(!Dv(t)||!Ov(t))return kz(t.name,_a.A_property_of_a_class_whose_type_is_a_unique_symbol_type_must_be_both_static_and_readonly);break;case 172:if(!Nv(t,8))return kz(t.name,_a.A_property_of_an_interface_or_type_literal_whose_type_is_a_unique_symbol_type_must_be_readonly);break;default:kz(e,_a.unique_symbol_types_are_not_allowed_here)}}else 148===e.operator&&189!==e.type.kind&&190!==e.type.kind&&bz(e,_a.readonly_type_modifier_is_only_permitted_on_array_and_tuple_literal_types,Fa(155))}(e),AB(e.type)}(n);case 195:return function(e){XI(e,AB)}(n);case 196:return function(e){uc(e,e=>e.parent&&195===e.parent.kind&&e.parent.extendsType===e)||kz(e,_a.infer_declarations_are_only_permitted_in_the_extends_clause_of_a_conditional_type),AB(e.typeParameter);const t=ks(e.typeParameter);if(t.declarations&&t.declarations.length>1){const e=ua(t);if(!e.typeParametersChecked){e.typeParametersChecked=!0;const n=Cu(t),r=Ku(t,169);if(!oB(r,[n],e=>[e])){const e=bc(t);for(const t of r)zo(t.name,_a.All_declarations_of_0_must_have_identical_constraints,e)}}}VM(e)}(n);case 204:return function(e){for(const t of e.templateSpans)AB(t.type),IS(Pk(t.type),vn,t.type);Pk(e)}(n);case 206:return function(e){AB(e.argument),e.attributes&&mV(e.attributes,kz),hM(e)}(n);case 203:return function(e){e.dotDotDotToken&&e.questionToken&&kz(e,_a.A_tuple_member_cannot_be_both_optional_and_rest),191===e.type.kind&&kz(e.type,_a.A_labeled_tuple_element_is_declared_as_optional_with_a_question_mark_after_the_name_and_before_the_colon_rather_than_after_the_type),192===e.type.kind&&kz(e.type,_a.A_labeled_tuple_element_is_declared_as_rest_with_a_before_the_name_rather_than_before_the_type),AB(e.type),Pk(e)}(n);case 329:return function(e){const t=Ug(e);if(!t||!dE(t)&&!AF(t))return void zo(t,_a.JSDoc_0_is_not_attached_to_a_class,gc(e.tagName));const n=ol(t).filter(wP);un.assert(n.length>0),n.length>1&&zo(n[1],_a.Class_declarations_cannot_have_more_than_one_augments_or_extends_tag);const r=qM(e.class.expression),i=vh(t);if(i){const t=qM(i.expression);t&&r.escapedText!==t.escapedText&&zo(r,_a.JSDoc_0_1_does_not_match_the_extends_2_clause,gc(e.tagName),gc(r),gc(t))}}(n);case 330:return function(e){const t=Ug(e);t&&(dE(t)||AF(t))||zo(t,_a.JSDoc_0_is_not_attached_to_a_class,gc(e.tagName))}(n);case 347:case 339:case 341:return function(e){e.typeExpression||zo(e.name,_a.JSDoc_typedef_tag_should_either_have_a_type_annotation_or_be_followed_by_property_or_member_tags),e.name&&nB(e.name,_a.Type_alias_name_cannot_be_0),AB(e.typeExpression),rB(_l(e))}(n);case 346:return function(e){AB(e.constraint);for(const t of e.typeParameters)AB(t)}(n);case 345:return function(e){AB(e.typeExpression)}(n);case 325:case 326:case 327:return function(e){e.name&&hJ(e.name,!0)}(n);case 342:case 349:return function(e){AB(e.typeExpression)}(n);case 318:!function(e){a(function(){e.type||Ng(e)||Jw(e,wt)}),iM(e)}(n);case 316:case 315:case 313:case 314:case 323:return OB(n),void XI(n,AB);case 319:return void function(e){OB(e),AB(e.type);const{parent:t}=e;if(TD(t)&&bP(t.parent))return void(ve(t.parent.parameters)!==t&&zo(e,_a.A_rest_parameter_must_be_last_in_a_parameter_list));lP(t)||zo(e,_a.JSDoc_may_only_appear_in_the_last_parameter_of_a_signature);const n=e.parent.parent;if(!BP(n))return void zo(e,_a.JSDoc_may_only_appear_in_the_last_parameter_of_a_signature);const r=Bg(n);if(!r)return;const i=qg(n);i&&ve(i.parameters).symbol===r||zo(e,_a.A_rest_parameter_must_be_last_in_a_parameter_list)}(n);case 310:return AB(n.type);case 334:case 336:case 335:return function(e){const t=Vg(e);t&&Kl(t)&&zo(e,_a.An_accessibility_modifier_cannot_be_used_with_a_private_identifier)}(n);case 351:return function(e){AB(e.typeExpression);const t=Ug(e);if(t){const e=sl(t,KP);if(u(e)>1)for(let t=1;t{var i;298!==e.kind||n||(void 0===t?t=e:(kz(e,_a.A_default_clause_cannot_appear_more_than_once_in_a_switch_statement),n=!0)),297===e.kind&&a((i=e,()=>{const e=eM(i.expression);wj(r,e)||US(e,r,i.expression,void 0)})),d(e.statements,AB),j.noFallthroughCasesInSwitch&&e.fallthroughFlowNode&&GF(e.fallthroughFlowNode)&&zo(e,_a.Fallthrough_case_in_switch)}),e.caseBlock.locals&&VM(e.caseBlock)}(n);case 257:return function(e){Cz(e)||uc(e.parent,t=>r_(t)?"quit":257===t.kind&&t.label.escapedText===e.label.escapedText&&(kz(e.label,_a.Duplicate_label_0,Xd(e.label)),!0)),AB(e.statement)}(n);case 258:return function(e){Cz(e)||aD(e.expression)&&!e.expression.escapedText&&function(e,t,...n){const r=vd(e);if(!vz(r)){const i=Gp(r,e.pos);ho.add(Gx(r,Fs(i),0,t,...n))}}(e,_a.Line_break_not_permitted_here),e.expression&&eM(e.expression)}(n);case 259:return function(e){Cz(e),oR(e.tryBlock);const t=e.catchClause;if(t){if(t.variableDeclaration){const e=t.variableDeclaration;pR(e);const n=fv(e);if(n){const e=Pk(n);!e||3&e.flags||bz(n,_a.Catch_clause_variable_type_annotation_must_be_any_or_unknown_if_specified)}else if(e.initializer)bz(e.initializer,_a.Catch_clause_variable_cannot_have_an_initializer);else{const e=t.block.locals;e&&id(t.locals,t=>{const n=e.get(t);(null==n?void 0:n.valueDeclaration)&&2&n.flags&&kz(n.valueDeclaration,_a.Cannot_redeclare_identifier_0_in_catch_clause,mc(t))})}}oR(t.block)}e.finallyBlock&&oR(e.finallyBlock)}(n);case 261:return gR(n);case 209:return function(e){return function(e){if(e.dotDotDotToken){const t=e.parent.elements;if(e!==ve(t))return kz(e,_a.A_rest_element_must_be_last_in_a_destructuring_pattern);if(QJ(t,_a.A_rest_parameter_or_binding_pattern_may_not_have_a_trailing_comma),e.propertyName)return kz(e.name,_a.A_rest_element_cannot_have_a_property_name)}e.dotDotDotToken&&e.initializer&&xz(e,e.initializer.pos-1,1,_a.A_rest_element_cannot_have_an_initializer)}(e),pR(e)}(n);case 264:return function(e){const t=b(e.modifiers,CD);J&&t&&$(e.members,e=>Fv(e)&&Kl(e))&&kz(t,_a.Class_decorators_can_t_be_used_with_static_private_identifier_Consider_removing_the_experimental_decorator),e.name||Nv(e,2048)||bz(e,_a.A_class_declaration_without_the_default_modifier_must_have_a_name),sB(e),d(e.members,AB),VM(e)}(n);case 265:return function(e){GJ(e)||function(e){let t=!1;if(e.heritageClauses)for(const n of e.heritageClauses){if(96!==n.token)return un.assert(119===n.token),bz(n,_a.Interface_declaration_cannot_have_implements_clause);if(t)return bz(n,_a.extends_clause_already_seen);t=!0,tz(n)}}(e),yz(e.parent)||kz(e,_a._0_declarations_can_only_be_declared_inside_a_block,"interface"),rB(e.typeParameters),a(()=>{nB(e.name,_a.Interface_name_cannot_be_0),kM(e);const t=ks(e);iB(t);const n=Hu(t,265);if(e===n){const n=Au(t),r=wd(n);if(function(e,t){const n=uu(e);if(n.length<2)return!0;const r=new Map;d(td(e).declaredProperties,t=>{r.set(t.escapedName,{prop:t,containingType:e})});let i=!0;for(const o of n){const n=Up(wd(o,e.thisType));for(const a of n){const n=r.get(a.escapedName);if(n){if(n.containingType!==e&&!FC(n.prop,a)){i=!1;const r=Tc(n.containingType),s=Tc(o);let c=Zx(void 0,_a.Named_property_0_of_types_1_and_2_are_not_identical,bc(a),r,s);c=Zx(c,_a.Interface_0_cannot_simultaneously_extend_types_1_and_2,Tc(e),r,s),ho.add(zp(vd(t),t,c))}}else r.set(a.escapedName,{prop:a,containingType:o})}}return i}(n,e.name)){for(const t of uu(n))IS(r,wd(t,n.thisType),e.name,_a.Interface_0_incorrectly_extends_interface_1);YR(n,t)}}aM(e)}),d(kh(e),e=>{ab(e.expression)&&!hl(e.expression)||zo(e.expression,_a.An_interface_can_only_extend_an_identifier_Slashqualified_name_with_optional_type_arguments),gM(e)}),d(e.members,AB),a(()=>{sM(e),VM(e)})}(n);case 266:return function(e){if(GJ(e),nB(e.name,_a.Type_alias_name_cannot_be_0),yz(e.parent)||kz(e,_a._0_declarations_can_only_be_declared_inside_a_block,"type"),kM(e),rB(e.typeParameters),141===e.type.kind){const t=u(e.typeParameters);(0===t?"BuiltinIteratorReturn"===e.name.escapedText:1===t&&XB.has(e.name.escapedText))||zo(e.type,_a.The_intrinsic_keyword_can_only_be_used_to_declare_compiler_provided_intrinsic_types)}else AB(e.type),VM(e)}(n);case 267:return function(e){a(()=>function(e){GJ(e),uR(e,e.name),kM(e),e.members.forEach(AB),!j.erasableSyntaxOnly||33554432&e.flags||zo(e,_a.This_syntax_is_not_allowed_when_erasableSyntaxOnly_is_enabled),gB(e);const t=ks(e);if(e===Hu(t,e.kind)){if(t.declarations&&t.declarations.length>1){const n=tf(e);d(t.declarations,e=>{mE(e)&&tf(e)!==n&&zo(Cc(e),_a.Enum_declarations_must_all_be_const_or_non_const)})}let n=!1;d(t.declarations,e=>{if(267!==e.kind)return!1;const t=e;if(!t.members.length)return!1;const r=t.members[0];r.initializer||(n?zo(r.name,_a.In_an_enum_with_multiple_declarations_only_one_declaration_can_omit_an_initializer_for_its_first_enum_element):n=!0)})}}(e))}(n);case 307:return function(e){sD(e.name)&&zo(e,_a.An_enum_member_cannot_be_named_with_a_private_identifier),e.initializer&&eM(e.initializer)}(n);case 268:return function(t){t.body&&(AB(t.body),pp(t)||VM(t)),a(function(){var n,r;const i=pp(t),o=33554432&t.flags;i&&!o&&zo(t.name,_a.Augmentations_for_the_global_scope_should_have_declare_modifier_unless_they_appear_in_already_ambient_context);const a=cp(t),s=a?_a.An_ambient_module_declaration_is_only_allowed_at_the_top_level_in_a_file:_a.A_namespace_declaration_is_only_allowed_at_the_top_level_of_a_namespace_or_module;if(DB(t,s))return;if(GJ(t)||o||11!==t.name.kind||kz(t.name,_a.Only_ambient_modules_can_use_quoted_names),aD(t.name)&&(uR(t,t.name),!(2080&t.flags))){const e=vd(t),n=Gp(e,Ud(t));yo.add(Gx(e,n.start,n.length,_a.A_namespace_declaration_should_not_be_declared_using_the_module_keyword_Please_use_the_namespace_keyword_instead))}kM(t);const c=ks(t);if(512&c.flags&&!o&&tJ(t,Fk(j))){if(j.erasableSyntaxOnly&&zo(t.name,_a.This_syntax_is_not_allowed_when_erasableSyntaxOnly_is_enabled),kk(j)&&!vd(t).externalModuleIndicator&&zo(t.name,_a.Namespaces_are_not_allowed_in_global_script_files_when_0_is_enabled_If_this_file_is_not_intended_to_be_a_global_script_set_moduleDetection_to_force_or_add_an_empty_export_statement,Me),(null==(n=c.declarations)?void 0:n.length)>1){const e=function(e){const t=e.declarations;if(t)for(const e of t)if((264===e.kind||263===e.kind&&Dd(e.body))&&!(33554432&e.flags))return e}(c);e&&(vd(t)!==vd(e)?zo(t.name,_a.A_namespace_declaration_cannot_be_in_a_different_file_from_a_class_or_function_with_which_it_is_merged):t.pos95===e.kind);e&&zo(e,_a.A_top_level_export_modifier_cannot_be_used_on_value_declarations_in_a_CommonJS_module_when_verbatimModuleSyntax_is_enabled)}}if(a)if(fp(t)){if((i||33554432&ks(t).flags)&&t.body)for(const e of t.body.statements)xB(e,i)}else Yp(t.parent)?i?zo(t.name,_a.Augmentations_for_the_global_scope_can_only_be_directly_nested_in_external_modules_or_ambient_module_declarations):Cs(qh(t.name))&&zo(t.name,_a.Ambient_module_declaration_cannot_specify_relative_module_name):zo(t.name,i?_a.Augmentations_for_the_global_scope_can_only_be_directly_nested_in_external_modules_or_ambient_module_declarations:_a.Ambient_modules_cannot_be_nested_in_other_modules_or_namespaces)})}(n);case 273:return function(t){if(!DB(t,Em(t)?_a.An_import_declaration_can_only_be_used_at_the_top_level_of_a_module:_a.An_import_declaration_can_only_be_used_at_the_top_level_of_a_namespace_or_module)){if(!GJ(t)&&t.modifiers&&bz(t,_a.An_import_declaration_cannot_have_modifiers),kB(t)){let n;const r=t.importClause;r&&!function(e){var t,n;if(156===e.phaseModifier){if(e.name&&e.namedBindings)return kz(e,_a.A_type_only_import_can_specify_a_default_import_or_named_bindings_but_not_both);if(276===(null==(t=e.namedBindings)?void 0:t.kind))return Nz(e.namedBindings)}else if(166===e.phaseModifier){if(e.name)return kz(e,_a.Default_imports_are_not_allowed_in_a_deferred_import);if(276===(null==(n=e.namedBindings)?void 0:n.kind))return kz(e,_a.Named_imports_are_not_allowed_in_a_deferred_import);if(99!==R&&200!==R)return kz(e,_a.Deferred_imports_are_only_supported_when_the_module_flag_is_set_to_esnext_or_preserve)}return!1}(r)?(r.name&&wB(r),r.namedBindings&&(275===r.namedBindings.kind?(wB(r.namedBindings),e.getEmitModuleFormatOfFile(vd(t))<4&&Sk(j)&&HJ(t,65536)):(n=rs(t,t.moduleSpecifier),n&&d(r.namedBindings.elements,wB))),!r.isTypeOnly&&101<=R&&R<=199&&Aa(t.moduleSpecifier,n)&&!function(e){return!!e.attributes&&e.attributes.elements.some(e=>{var t;return"type"===qh(e.name)&&"json"===(null==(t=tt(e.value,ju))?void 0:t.text)})}(t)&&zo(t.moduleSpecifier,_a.Importing_a_JSON_file_into_an_ECMAScript_module_requires_a_type_Colon_json_import_attribute_when_module_is_set_to_0,fi[R])):ue&&!r&&rs(t,t.moduleSpecifier)}NB(t)}}(n);case 272:return function(e){if(!DB(e,Em(e)?_a.An_import_declaration_can_only_be_used_at_the_top_level_of_a_module:_a.An_import_declaration_can_only_be_used_at_the_top_level_of_a_namespace_or_module)&&(GJ(e),!j.erasableSyntaxOnly||33554432&e.flags||zo(e,_a.This_syntax_is_not_allowed_when_erasableSyntaxOnly_is_enabled),Nm(e)||kB(e)))if(wB(e),RE(e,6),284!==e.moduleReference.kind){const t=Ha(ks(e));if(t!==xt){const n=Ka(t);if(111551&n){const t=sb(e.moduleReference);1920&ts(t,112575).flags||zo(t,_a.Module_0_is_hidden_by_a_local_declaration_with_the_same_name,Ap(t))}788968&n&&nB(e.name,_a.Import_name_cannot_be_0)}e.isTypeOnly&&kz(e,_a.An_import_alias_cannot_use_import_type)}else!(5<=R&&R<=99)||e.isTypeOnly||33554432&e.flags||kz(e,_a.Import_assignment_cannot_be_used_when_targeting_ECMAScript_modules_Consider_using_import_Asterisk_as_ns_from_mod_import_a_from_mod_import_d_from_mod_or_another_module_format_instead)}(n);case 279:return function(t){if(!DB(t,Em(t)?_a.An_export_declaration_can_only_be_used_at_the_top_level_of_a_module:_a.An_export_declaration_can_only_be_used_at_the_top_level_of_a_namespace_or_module)){if(!GJ(t)&&Cv(t)&&bz(t,_a.An_export_declaration_cannot_have_modifiers),function(e){var t;e.isTypeOnly&&280===(null==(t=e.exportClause)?void 0:t.kind)&&Nz(e.exportClause)}(t),!t.moduleSpecifier||kB(t))if(t.exportClause&&!FE(t.exportClause)){d(t.exportClause.elements,FB);const e=269===t.parent.kind&&cp(t.parent.parent),n=!e&&269===t.parent.kind&&!t.moduleSpecifier&&33554432&t.flags;308===t.parent.kind||e||n||zo(t,_a.Export_declarations_are_not_permitted_in_a_namespace)}else{const n=rs(t,t.moduleSpecifier);n&&us(n)?zo(t.moduleSpecifier,_a.Module_0_uses_export_and_cannot_be_used_with_export_Asterisk,bc(n)):t.exportClause&&(TB(t.exportClause),SB(t.exportClause.name)),e.getEmitModuleFormatOfFile(vd(t))<4&&(t.exportClause?Sk(j)&&HJ(t,65536):HJ(t,32768))}NB(t)}}(n);case 278:return function(t){if(DB(t,t.isExportEquals?_a.An_export_assignment_must_be_at_the_top_level_of_a_file_or_module_declaration:_a.A_default_export_must_be_at_the_top_level_of_a_file_or_module_declaration))return;!j.erasableSyntaxOnly||!t.isExportEquals||33554432&t.flags||zo(t,_a.This_syntax_is_not_allowed_when_erasableSyntaxOnly_is_enabled);const n=308===t.parent.kind?t.parent:t.parent.parent;if(268===n.kind&&!cp(n))return void(t.isExportEquals?zo(t,_a.An_export_assignment_cannot_be_used_in_a_namespace):zo(t,_a.A_default_export_can_only_be_used_in_an_ECMAScript_style_module));!GJ(t)&&Tv(t)&&bz(t,_a.An_export_assignment_cannot_have_modifiers);const r=fv(t);r&&IS(Ij(t.expression),Pk(r),t.expression);const i=!t.isExportEquals&&!(33554432&t.flags)&&j.verbatimModuleSyntax&&1===e.getEmitModuleFormatOfFile(vd(t));if(80===t.expression.kind){const e=t.expression,n=Os(ts(e,-1,!0,!0,t));if(n){RE(t,3);const r=Ya(n,111551);if(111551&Ka(n)?(Ij(e),i||33554432&t.flags||!j.verbatimModuleSyntax||!r||zo(e,t.isExportEquals?_a.An_export_declaration_must_reference_a_real_value_when_verbatimModuleSyntax_is_enabled_but_0_resolves_to_a_type_only_declaration:_a.An_export_default_must_reference_a_real_value_when_verbatimModuleSyntax_is_enabled_but_0_resolves_to_a_type_only_declaration,gc(e))):i||33554432&t.flags||!j.verbatimModuleSyntax||zo(e,t.isExportEquals?_a.An_export_declaration_must_reference_a_value_when_verbatimModuleSyntax_is_enabled_but_0_only_refers_to_a_type:_a.An_export_default_must_reference_a_value_when_verbatimModuleSyntax_is_enabled_but_0_only_refers_to_a_type,gc(e)),!i&&!(33554432&t.flags)&&kk(j)&&!(111551&n.flags)){const i=Ka(n,!1,!0);!(2097152&n.flags&&788968&i)||111551&i||r&&vd(r)===vd(t)?r&&vd(r)!==vd(t)&&ha(zo(e,t.isExportEquals?_a._0_resolves_to_a_type_only_declaration_and_must_be_marked_type_only_in_this_file_before_re_exporting_when_1_is_enabled_Consider_using_import_type_where_0_is_imported:_a._0_resolves_to_a_type_only_declaration_and_must_be_marked_type_only_in_this_file_before_re_exporting_when_1_is_enabled_Consider_using_export_type_0_as_default,gc(e),Me),r,gc(e)):zo(e,t.isExportEquals?_a._0_resolves_to_a_type_and_must_be_marked_type_only_in_this_file_before_re_exporting_when_1_is_enabled_Consider_using_import_type_where_0_is_imported:_a._0_resolves_to_a_type_and_must_be_marked_type_only_in_this_file_before_re_exporting_when_1_is_enabled_Consider_using_export_type_0_as_default,gc(e),Me)}}else Ij(e);Dk(j)&&Wc(e,!0)}else Ij(t.expression);i&&zo(t,qo(t)),EB(n),33554432&t.flags&&!ab(t.expression)&&kz(t.expression,_a.The_expression_of_an_export_assignment_must_be_an_identifier_or_qualified_name_in_an_ambient_context),t.isExportEquals&&(R>=5&&200!==R&&(33554432&t.flags&&99===e.getImpliedNodeFormatForEmit(vd(t))||!(33554432&t.flags)&&1!==e.getImpliedNodeFormatForEmit(vd(t)))?kz(t,_a.Export_assignment_cannot_be_used_when_targeting_ECMAScript_modules_Consider_using_export_default_or_another_module_format_instead):4!==R||33554432&t.flags||kz(t,_a.Export_assignment_is_not_supported_when_module_flag_is_system))}(n);case 243:case 260:return void Cz(n);case 283:!function(e){zM(e)}(n)}}(n),r=i}}function IB(e){Qe(e)&&d(e,e=>{Mu(e)&&AB(e)})}function OB(e){if(!Em(e))if(yP(e)||hP(e)){const t=Fa(yP(e)?54:58),n=e.postfix?_a._0_at_the_end_of_a_type_is_not_valid_TypeScript_syntax_Did_you_mean_to_write_1:_a._0_at_the_start_of_a_type_is_not_valid_TypeScript_syntax_Did_you_mean_to_write_1,r=Pk(e.type);kz(e,n,t,Tc(hP(e)&&r!==_n&&r!==ln?Pb(ie([r,jt],e.postfix?void 0:zt)):r))}else kz(e,_a.JSDoc_types_can_only_be_used_inside_documentation_comments)}function LB(e){const t=da(vd(e));1&t.flags?un.assert(!t.deferredNodes,"A type-checked file should have no deferred nodes."):(t.deferredNodes||(t.deferredNodes=new Set),t.deferredNodes.add(e))}function MB(e){const t=da(e);t.deferredNodes&&t.deferredNodes.forEach(zB),t.deferredNodes=void 0}function zB(e){var t,n;null==(t=Hn)||t.push(Hn.Phase.Check,"checkDeferredNode",{kind:e.kind,pos:e.pos,end:e.end,path:e.tracingPath});const o=r;switch(r=e,h=0,e.kind){case 214:case 215:case 216:case 171:case 287:gO(e);break;case 219:case 220:case 175:case 174:!function(e){un.assert(175!==e.kind||Jf(e));const t=Oh(e),n=Zg(e);if(aj(e,n),e.body)if(gv(e)||Gg(Eg(e)),242===e.body.kind)AB(e.body);else{const r=eM(e.body),i=n&&KR(n,t);i&&QR(e,i,e.body,e.body,r)}}(e);break;case 178:case 179:uM(e);break;case 232:!function(e){d(e.members,AB),VM(e)}(e);break;case 169:!function(e){var t,n;if(pE(e.parent)||u_(e.parent)||fE(e.parent)){const r=Cu(ks(e)),o=24576&rC(r);if(o){const a=ks(e.parent);if(!fE(e.parent)||48&gx(Au(a))){if(8192===o||16384===o){null==(t=Hn)||t.push(Hn.Phase.CheckTypes,"checkTypeParameterDeferred",{parent:kb(Au(a)),id:kb(r)});const s=UT(a,r,16384===o?Un:qn),c=UT(a,r,16384===o?qn:Un),l=r;i=r,IS(s,c,e,_a.Type_0_is_not_assignable_to_type_1_as_implied_by_variance_annotation),i=l,null==(n=Hn)||n.pop()}}else zo(e,_a.Variance_annotations_are_only_supported_in_type_aliases_for_object_function_constructor_and_mapped_types)}}}(e);break;case 286:!function(e){fI(e)}(e);break;case 285:!function(e){fI(e.openingElement),GA(e.closingElement.tagName)?tI(e.closingElement):eM(e.closingElement.tagName),YA(e)}(e);break;case 217:case 235:case 218:!function(e){const{type:t}=vL(e),n=yF(e)?t:e,r=da(e);un.assertIsDefined(r.assertionExpressionType);const i=Nw(QC(r.assertionExpressionType)),o=Pk(t);al(o)||a(()=>{const e=jw(i);PS(o,e)||US(i,o,n,_a.Conversion_of_type_0_to_type_1_may_be_a_mistake_because_neither_type_sufficiently_overlaps_with_the_other_If_this_was_intentional_convert_the_expression_to_unknown_first)})}(e);break;case 223:eM(e.expression);break;case 227:mb(e)&&gO(e)}r=o,null==(n=Hn)||n.pop()}function qB(e,t){if(t)return!1;switch(e){case 0:return!!j.noUnusedLocals;case 1:return!!j.noUnusedParameters;default:return un.assertNever(e)}}function WB(e){return ki.get(e.path)||l}function HB(n,r,i){try{return t=r,function(t,n){if(t){KB();const e=ho.getGlobalDiagnostics(),r=e.length;nJ(t,n);const i=ho.getDiagnostics(t.fileName);if(n)return i;const o=ho.getGlobalDiagnostics();return o!==e?K(re(e,o,nk),i):0===r&&o.length>0?K(o,i):i}return d(e.getSourceFiles(),e=>nJ(e)),ho.getDiagnostics()}(n,i)}finally{t=void 0}}function KB(){for(const e of o)e();o=[]}function nJ(t,n){KB();const r=a;a=e=>e(),function(t,n){var r,i;null==(r=Hn)||r.push(Hn.Phase.Check,n?"checkSourceFileNodes":"checkSourceFile",{path:t.path},!0);const o=n?"beforeCheckNodes":"beforeCheck",s=n?"afterCheckNodes":"afterCheck";tr(o),n?function(t,n){const r=da(t);if(!(1&r.flags)){if(_T(t,j,e))return;Tz(t),F(so),F(co),F(lo),F(_o),F(uo),d(n,AB),MB(t),(r.potentialThisCollisions||(r.potentialThisCollisions=[])).push(...so),(r.potentialNewTargetCollisions||(r.potentialNewTargetCollisions=[])).push(...co),(r.potentialWeakMapSetCollisions||(r.potentialWeakMapSetCollisions=[])).push(...lo),(r.potentialReflectCollisions||(r.potentialReflectCollisions=[])).push(..._o),(r.potentialUnusedRenamedBindingElementsInTypes||(r.potentialUnusedRenamedBindingElementsInTypes=[])).push(...uo),r.flags|=8388608;for(const e of n)da(e).flags|=8388608}}(t,n):function(t){const n=da(t);if(!(1&n.flags)){if(_T(t,j,e))return;Tz(t),F(so),F(co),F(lo),F(_o),F(uo),8388608&n.flags&&(so=n.potentialThisCollisions,co=n.potentialNewTargetCollisions,lo=n.potentialWeakMapSetCollisions,_o=n.potentialReflectCollisions,uo=n.potentialUnusedRenamedBindingElementsInTypes),d(t.statements,AB),AB(t.endOfFileToken),MB(t),Zp(t)&&VM(t),a(()=>{t.isDeclarationFile||!j.noUnusedLocals&&!j.noUnusedParameters||WM(WB(t),(e,t,n)=>{!yd(e)&&qB(t,!!(33554432&e.flags))&&ho.add(n)}),t.isDeclarationFile||function(){var e;for(const t of uo)if(!(null==(e=ks(t))?void 0:e.isReferenced)){const e=nc(t);un.assert(Qh(e),"Only parameter declaration should be checked here");const n=Rp(t.name,_a._0_is_an_unused_renaming_of_1_Did_you_intend_to_use_it_as_a_type_annotation,Ap(t.name),Ap(t.propertyName));e.type||aT(n,Gx(vd(e),e.end,0,_a.We_can_only_write_a_type_for_0_by_adding_a_type_for_the_entire_parameter_here,Ap(t.propertyName))),ho.add(n)}}()}),Zp(t)&&EB(t),so.length&&(d(so,sR),F(so)),co.length&&(d(co,cR),F(co)),lo.length&&(d(lo,lR),F(lo)),_o.length&&(d(_o,_R),F(_o)),n.flags|=1}}(t),tr(s),nr("Check",o,s),null==(i=Hn)||i.pop()}(t,n),a=r}function uJ(e){for(;167===e.parent.kind;)e=e.parent;return 184===e.parent.kind}function dJ(e,t){let n,r=Xf(e);for(;r&&!(n=t(r));)r=Xf(r);return n}function pJ(e,t){return!!dJ(e,e=>e===t)}function fJ(e){return void 0!==function(e){for(;167===e.parent.kind;)e=e.parent;return 272===e.parent.kind?e.parent.moduleReference===e?e.parent:void 0:278===e.parent.kind&&e.parent.expression===e?e.parent:void 0}(e)}function mJ(e){if(lh(e))return Ss(e.parent);if(Em(e)&&212===e.parent.kind&&e.parent===e.parent.parent.left&&!sD(e)&&!uP(e)&&!function(e){if(110===e.expression.kind){const t=em(e,!1,!1);if(r_(t)){const e=RP(t);if(e){const t=WP(e,hA(e,void 0));return t&&!il(t)}}}}(e.parent)){const t=function(e){switch(tg(e.parent.parent)){case 1:case 3:return Ss(e.parent);case 5:if(dF(e.parent)&&wx(e.parent)===e)return;case 4:case 2:return ks(e.parent.parent)}}(e);if(t)return t}if(278===e.parent.kind&&ab(e)){const t=ts(e,2998271,!0);if(t&&t!==xt)return t}else if(e_(e)&&fJ(e)){const t=Th(e,272);return un.assert(void 0!==t),Za(e,!0)}if(e_(e)){const t=function(e){let t=e.parent;for(;xD(t);)e=t,t=t.parent;if(t&&206===t.kind&&t.qualifier===e)return t}(e);if(t){Pk(t);const n=da(e).resolvedSymbol;return n===xt?void 0:n}}for(;fb(e);)e=e.parent;if(function(e){for(;212===e.parent.kind;)e=e.parent;return 234===e.parent.kind}(e)){let t=0;234===e.parent.kind?(t=wf(e)?788968:111551,ob(e.parent)&&(t|=111551)):t=1920,t|=2097152;const n=ab(e)?ts(e,t,!0):void 0;if(n)return n}if(342===e.parent.kind)return Bg(e.parent);if(169===e.parent.kind&&346===e.parent.parent.kind){un.assert(!Em(e));const t=$g(e.parent);return t&&t.symbol}if(bm(e)){if(Nd(e))return;const t=uc(e,en(Mu,_P,uP)),n=t?901119:111551;if(80===e.kind){if(vm(e)&&GA(e)){const t=tI(e.parent);return t===xt?void 0:t}const r=ts(e,n,!0,!0,qg(e));if(!r&&t){const t=uc(e,en(u_,pE));if(t)return hJ(e,!0,ks(t))}if(r&&t){const t=Vg(e);if(t&&aP(t)&&t===r.valueDeclaration)return ts(e,n,!0,!0,vd(t))||r}return r}if(sD(e))return RI(e);if(212===e.kind||167===e.kind){const n=da(e);return n.resolvedSymbol?n.resolvedSymbol:(212===e.kind?(OI(e,0),n.resolvedSymbol||(n.resolvedSymbol=gJ(Ij(e.expression),Hb(e.name)))):LI(e,0),!n.resolvedSymbol&&t&&xD(e)?hJ(e):n.resolvedSymbol)}if(uP(e))return hJ(e)}else if(e_(e)&&uJ(e)){const t=ts(e,184===e.parent.kind?788968:1920,!0,!0);return t&&t!==xt?t:hy(e)}return 183===e.parent.kind?ts(e,1,!0):void 0}function gJ(e,t){const n=rg(e,t);if(n.length&&e.members){const t=Ph(Cp(e).members);if(n===Jm(e))return t;if(t){const r=ua(t),i=E(B(n,e=>e.declaration),ZB).join(",");if(r.filteredIndexSymbolCache||(r.filteredIndexSymbolCache=new Map),r.filteredIndexSymbolCache.has(i))return r.filteredIndexSymbolCache.get(i);{const t=Xo(131072,"__index");return t.declarations=B(n,e=>e.declaration),t.parent=e.aliasSymbol?e.aliasSymbol:e.symbol?e.symbol:yJ(t.declarations[0].parent),r.filteredIndexSymbolCache.set(i,t),t}}}}function hJ(e,t,n){if(e_(e)){const r=901119;let i=ts(e,r,t,!0,qg(e));if(!i&&aD(e)&&n&&(i=xs(pa(hs(n),e.escapedText,r))),i)return i}const r=aD(e)?n:hJ(e.left,t,n),i=aD(e)?e.escapedText:e.right.escapedText;if(r){const e=111551&r.flags&&pm(P_(r),"prototype");return pm(e?P_(e):Au(r),i)}}function yJ(e,t){if(sP(e))return rO(e)?xs(e.symbol):void 0;const{parent:n}=e,r=n.parent;if(!(67108864&e.flags)){if(iJ(e)){const t=ks(n);return Rl(e.parent)&&e.parent.propertyName===e?VA(t):t}if(uh(e))return ks(n.parent);if(80===e.kind){if(fJ(e))return mJ(e);if(209===n.kind&&207===r.kind&&e===n.propertyName){const t=pm(bJ(r),e.escapedText);if(t)return t}else if(RF(n)&&n.name===e)return 105===n.keywordToken&&"target"===gc(e)?TL(n).symbol:102===n.keywordToken&&"meta"===gc(e)?Ky().members.get("meta"):void 0}switch(e.kind){case 80:case 81:case 212:case 167:if(!uv(e))return mJ(e);case 110:const i=em(e,!1,!1);if(r_(i)){const e=Eg(i);if(e.thisParameter)return e.thisParameter}if(xm(e))return eM(e).symbol;case 198:return Ck(e).symbol;case 108:return eM(e).symbol;case 137:const o=e.parent;return o&&177===o.kind?o.parent.symbol:void 0;case 11:case 15:if(Tm(e.parent.parent)&&Cm(e.parent.parent)===e||(273===e.parent.kind||279===e.parent.kind)&&e.parent.moduleSpecifier===e||Em(e)&&XP(e.parent)&&e.parent.moduleSpecifier===e||Em(e)&&Lm(e.parent,!1)||_f(e.parent)||rF(e.parent)&&df(e.parent.parent)&&e.parent.parent.argument===e.parent)return rs(e,e,t);if(fF(n)&&ng(n)&&n.arguments[1]===e)return ks(n);case 9:const a=pF(n)?n.argumentExpression===e?Qj(n.expression):void 0:rF(n)&&tF(r)?Pk(r.objectType):void 0;return a&&pm(a,fc(e.text));case 90:case 100:case 39:case 86:return Ss(e.parent);case 206:return df(e)?yJ(e.argument.literal,t):void 0;case 95:return AE(e.parent)?un.checkDefined(e.parent.symbol):void 0;case 102:if(RF(e.parent)&&"defer"===e.parent.name.escapedText)return;case 105:return RF(e.parent)?SL(e.parent).symbol:void 0;case 104:if(NF(e.parent)){const t=Qj(e.parent.right),n=xj(t);return(null==n?void 0:n.symbol)??t.symbol}return;case 237:return eM(e).symbol;case 296:if(vm(e)&&GA(e)){const t=tI(e.parent);return t===xt?void 0:t}default:return}}}function bJ(e){if(sP(e)&&!rO(e))return Et;if(67108864&e.flags)return Et;const t=nb(e),n=t&&mu(ks(t.class));if(wf(e)){const t=Pk(e);return n?wd(t,n.thisType):t}if(bm(e))return kJ(e);if(n&&!t.isImplements){const e=fe(uu(n));return e?wd(e,n.thisType):Et}if(VT(e))return Au(ks(e));if(80===(r=e).kind&&VT(r.parent)&&Cc(r.parent)===r){const t=yJ(e);return t?Au(t):Et}var r;if(lF(e))return Al(e,!0,0)||Et;if(_u(e)){const t=ks(e);return t?P_(t):Et}if(iJ(e)){const t=yJ(e);return t?P_(t):Et}if(k_(e))return Al(e.parent,!0,0)||Et;if(fJ(e)){const t=yJ(e);if(t){const e=Au(t);return al(e)?P_(t):e}}return RF(e.parent)&&e.parent.keywordToken===e.kind?SL(e.parent):wE(e)?Qy(!1):Et}function xJ(e){if(un.assert(211===e.kind||210===e.kind),251===e.parent.kind)return Tj(e,kR(e.parent)||Et);if(227===e.parent.kind)return Tj(e,Qj(e.parent.right)||Et);if(304===e.parent.kind){const t=nt(e.parent.parent,uF);return kj(t,xJ(t)||Et,Yd(t.properties,e.parent))}const t=nt(e.parent,_F),n=xJ(t)||Et,r=SR(65,n,jt,e.parent)||Et;return Sj(t,n,t.elements.indexOf(e),r)}function kJ(e){return db(e)&&(e=e.parent),dk(Qj(e))}function SJ(e){const t=Ss(e.parent);return Dv(e)?P_(t):Au(t)}function TJ(e){const t=e.name;switch(t.kind){case 80:return fk(gc(t));case 9:case 11:return fk(t.text);case 168:const e=BA(t);return hj(e,12288)?e:Vt;default:return un.fail("Unsupported property name.")}}function CJ(e){const t=Gu(Up(e=Sf(e))),n=mm(e,0).length?Qn:mm(e,1).length?Yn:void 0;return n&&d(Up(n),e=>{t.has(e.escapedName)||t.set(e.escapedName,e)}),Us(t)}function wJ(e){return 0!==mm(e,0).length||0!==mm(e,1).length}function NJ(e){if(418&e.flags&&e.valueDeclaration&&!sP(e.valueDeclaration)){const t=ua(e);if(void 0===t.isDeclarationWithCollidingName){const n=Ep(e.valueDeclaration);if(kd(n)||function(e){return e.valueDeclaration&&lF(e.valueDeclaration)&&300===nc(e.valueDeclaration).parent.kind}(e))if(Ue(n.parent,e.escapedName,111551,void 0,!1))t.isDeclarationWithCollidingName=!0;else if(jJ(e.valueDeclaration,16384)){const r=jJ(e.valueDeclaration,32768),i=$_(n,!1),o=242===n.kind&&$_(n.parent,!1);t.isDeclarationWithCollidingName=!(dp(n)||r&&(i||o))}else t.isDeclarationWithCollidingName=!1}return t.isDeclarationWithCollidingName}return!1}function DJ(e){switch(un.assert(Re),e.kind){case 272:return FJ(ks(e));case 274:case 275:case 277:case 282:const t=ks(e);return!!t&&FJ(t,!0);case 279:const n=e.exportClause;return!!n&&(FE(n)||$(n.elements,DJ));case 278:return!e.expression||80!==e.expression.kind||FJ(ks(e),!0)}return!1}function FJ(e,t){if(!e)return!1;const n=vd(e.valueDeclaration);ss(n&&ks(n));const r=Os(Ha(e));return r===xt?!t||!Ya(e):!!(111551&Ka(e,t,!0))&&(Fk(j)||!EJ(r))}function EJ(e){return bj(e)||!!e.constEnumOnlyModule}function PJ(e,t){if(un.assert(Re),wa(e)){const t=ks(e),n=t&&ua(t);if(null==n?void 0:n.referenced)return!0;const r=ua(t).aliasTarget;if(r&&32&Bv(e)&&111551&Ka(r)&&(Fk(j)||!EJ(r)))return!0}return!!t&&!!XI(e,e=>PJ(e,t))}function AJ(e){if(Dd(e.body)){if(Nu(e)||wu(e))return!1;const t=jg(ks(e));return t.length>1||1===t.length&&t[0].declaration!==e}return!1}function IJ(e,t){return(function(e,t){return!(!H||vg(e)||BP(e)||!e.initializer)&&(!Nv(e,31)||!!t&&o_(t))}(e,t)||function(e){return H&&vg(e)&&(BP(e)||!e.initializer)&&Nv(e,31)}(e))&&!function(e){const t=WJ(e);if(!t)return!1;const n=Pk(t);return al(n)||QS(n)}(e)}function OJ(e){const t=pc(e,e=>uE(e)||lE(e));if(!t)return!1;let n;if(lE(t)){if(t.type||!Em(t)&&!Az(t))return!1;const e=Wm(t);if(!e||!au(e))return!1;n=ks(e)}else n=ks(t);return!!(n&&16&n.flags|3)&&!!rd(hs(n),e=>111551&e.flags&&lC(e.valueDeclaration))}function LJ(e){var t;const n=e.id||0;return n<0||n>=Yi.length?0:(null==(t=Yi[n])?void 0:t.flags)||0}function jJ(e,t){return function(e,t){if(!j.noCheck&&pT(vd(e),j))return;if(!(da(e).calculatedFlags&t))switch(t){case 16:case 32:return i(e);case 128:case 256:case 2097152:return void n(e,r);case 512:case 8192:case 65536:case 262144:return function(e){n(e,o)}(e);case 536870912:return a(e);case 4096:case 32768:case 16384:return function(e){n(Ep(lh(e)?e.parent:e),s)}(e);default:return un.assertNever(t,`Unhandled node check flag calculation: ${un.formatNodeCheckFlags(t)}`)}function n(e,t){const n=t(e,e.parent);if("skip"!==n)return n||QI(e,t)}function r(e){const n=da(e);if(n.calculatedFlags&t)return"skip";n.calculatedFlags|=2097536,i(e)}function i(e){da(e).calculatedFlags|=48,108===e.kind&&MP(e)}function o(e){const n=da(e);if(n.calculatedFlags&t)return"skip";n.calculatedFlags|=336384,a(e)}function a(e){const t=da(e);if(t.calculatedFlags|=536870912,aD(e)&&(t.calculatedFlags|=49152,function(e){return bm(e)||iP(e.parent)&&(e.parent.objectAssignmentInitializer??e.parent.name)===e}(e)&&(!dF(e.parent)||e.parent.name!==e))){const t=NN(e);t&&t!==xt&&kP(e,t)}}function s(e){const n=da(e);if(n.calculatedFlags&t)return"skip";n.calculatedFlags|=53248,function(e){a(e),kD(e)&&BA(e),sD(e)&&__(e.parent)&&lM(e.parent)}(e)}}(e,t),!!(LJ(e)&t)}function MJ(e){return gB(e.parent),da(e).enumMemberValue??mC(void 0)}function RJ(e){switch(e.kind){case 307:case 212:case 213:return!0}return!1}function BJ(e){if(307===e.kind)return MJ(e).value;da(e).resolvedSymbol||Ij(e);const t=da(e).resolvedSymbol||(ab(e)?ts(e,111551,!0):void 0);if(t&&8&t.flags){const e=t.valueDeclaration;if(tf(e.parent))return MJ(e).value}}function JJ(e){return!!(524288&e.flags)&&mm(e,0).length>0}function zJ(e){const t=179===(e=pc(e,pl)).kind?178:179,n=Hu(ks(e),t);return{firstAccessor:n&&n.posjL(e)>3)||zo(e,_a.This_syntax_requires_an_imported_helper_named_1_with_2_parameters_which_is_not_compatible_with_the_one_in_0_Consider_upgrading_your_version_of_0,Uu,n,4):1048576&t?$(jg(i),e=>jL(e)>4)||zo(e,_a.This_syntax_requires_an_imported_helper_named_1_with_2_parameters_which_is_not_compatible_with_the_one_in_0_Consider_upgrading_your_version_of_0,Uu,n,5):1024&t&&($(jg(i),e=>jL(e)>2)||zo(e,_a.This_syntax_requires_an_imported_helper_named_1_with_2_parameters_which_is_not_compatible_with_the_one_in_0_Consider_upgrading_your_version_of_0,Uu,n,3)):zo(e,_a.This_syntax_requires_an_imported_helper_named_1_which_does_not_exist_in_0_Consider_upgrading_your_version_of_0,Uu,n)}}n.requestedExternalEmitHelpers|=t}}}}function KJ(e){switch(e){case 1:return["__extends"];case 2:return["__assign"];case 4:return["__rest"];case 8:return J?["__decorate"]:["__esDecorate","__runInitializers"];case 16:return["__metadata"];case 32:return["__param"];case 64:return["__awaiter"];case 128:return["__generator"];case 256:return["__values"];case 512:return["__read"];case 1024:return["__spreadArray"];case 2048:return["__await"];case 4096:return["__asyncGenerator"];case 8192:return["__asyncDelegator"];case 16384:return["__asyncValues"];case 32768:return["__exportStar"];case 65536:return["__importStar"];case 131072:return["__importDefault"];case 262144:return["__makeTemplateObject"];case 524288:return["__classPrivateFieldGet"];case 1048576:return["__classPrivateFieldSet"];case 2097152:return["__classPrivateFieldIn"];case 4194304:return["__setFunctionName"];case 8388608:return["__propKey"];case 16777216:return["__addDisposableResource","__disposeResources"];case 33554432:return["__rewriteRelativeImportExtension"];default:return un.fail("Unrecognized helper")}}function GJ(t){var n;const r=function(e){const t=function(e){return $A(e)?b(e.modifiers,CD):void 0}(e);return t&&bz(t,_a.Decorators_are_not_valid_here)}(t)||function(e){if(!e.modifiers)return!1;const t=function(e){switch(e.kind){case 178:case 179:case 177:case 173:case 172:case 175:case 174:case 182:case 268:case 273:case 272:case 279:case 278:case 219:case 220:case 170:case 169:return;case 176:case 304:case 305:case 271:case 283:return b(e.modifiers,Zl);default:if(269===e.parent.kind||308===e.parent.kind)return;switch(e.kind){case 263:return XJ(e,134);case 264:case 186:return XJ(e,128);case 232:case 265:case 266:return b(e.modifiers,Zl);case 244:return 4&e.declarationList.flags?XJ(e,135):b(e.modifiers,Zl);case 267:return XJ(e,87);default:un.assertNever(e)}}}(e);return t&&bz(t,_a.Modifiers_cannot_appear_here)}(t);if(void 0!==r)return r;if(TD(t)&&cv(t))return bz(t,_a.Neither_decorators_nor_modifiers_may_be_applied_to_this_parameters);const i=WF(t)?7&t.declarationList.flags:0;let o,a,s,c,l,_=0,u=!1,d=!1;for(const r of t.modifiers)if(CD(r)){if(!dm(J,t,t.parent,t.parent.parent))return 175!==t.kind||Dd(t.body)?bz(t,_a.Decorators_are_not_valid_here):bz(t,_a.A_decorator_can_only_decorate_a_method_implementation_not_an_overload);if(J&&(178===t.kind||179===t.kind)){const e=zJ(t);if(Lv(e.firstAccessor)&&t===e.secondAccessor)return bz(t,_a.Decorators_cannot_be_applied_to_multiple_get_Slashset_accessors_of_the_same_name)}if(-34849&_)return kz(r,_a.Decorators_are_not_valid_here);if(d&&98303&_)return un.assertIsDefined(l),!vz(vd(r))&&(aT(zo(r,_a.Decorators_may_not_appear_after_export_or_export_default_if_they_also_appear_before_export),Rp(l,_a.Decorator_used_before_export_here)),!0);_|=32768,98303&_?32&_&&(u=!0):d=!0,l??(l=r)}else{if(148!==r.kind){if(172===t.kind||174===t.kind)return kz(r,_a._0_modifier_cannot_appear_on_a_type_member,Fa(r.kind));if(182===t.kind&&(126!==r.kind||!u_(t.parent)))return kz(r,_a._0_modifier_cannot_appear_on_an_index_signature,Fa(r.kind))}if(103!==r.kind&&147!==r.kind&&87!==r.kind&&169===t.kind)return kz(r,_a._0_modifier_cannot_appear_on_a_type_parameter,Fa(r.kind));switch(r.kind){case 87:{if(267!==t.kind&&169!==t.kind)return kz(t,_a.A_class_member_cannot_have_the_0_keyword,Fa(87));const e=UP(t.parent)&&Ug(t.parent)||t.parent;if(169===t.kind&&!(o_(e)||u_(e)||BD(e)||JD(e)||OD(e)||LD(e)||DD(e)))return kz(r,_a._0_modifier_can_only_appear_on_a_type_parameter_of_a_function_method_or_class,Fa(r.kind));break}case 164:if(16&_)return kz(r,_a._0_modifier_already_seen,"override");if(128&_)return kz(r,_a._0_modifier_cannot_be_used_with_1_modifier,"override","declare");if(8&_)return kz(r,_a._0_modifier_must_precede_1_modifier,"override","readonly");if(512&_)return kz(r,_a._0_modifier_must_precede_1_modifier,"override","accessor");if(1024&_)return kz(r,_a._0_modifier_must_precede_1_modifier,"override","async");_|=16,c=r;break;case 125:case 124:case 123:const d=Bc(Hv(r.kind));if(7&_)return kz(r,_a.Accessibility_modifier_already_seen);if(16&_)return kz(r,_a._0_modifier_must_precede_1_modifier,d,"override");if(256&_)return kz(r,_a._0_modifier_must_precede_1_modifier,d,"static");if(512&_)return kz(r,_a._0_modifier_must_precede_1_modifier,d,"accessor");if(8&_)return kz(r,_a._0_modifier_must_precede_1_modifier,d,"readonly");if(1024&_)return kz(r,_a._0_modifier_must_precede_1_modifier,d,"async");if(269===t.parent.kind||308===t.parent.kind)return kz(r,_a._0_modifier_cannot_appear_on_a_module_or_namespace_element,d);if(64&_)return 123===r.kind?kz(r,_a._0_modifier_cannot_be_used_with_1_modifier,d,"abstract"):kz(r,_a._0_modifier_must_precede_1_modifier,d,"abstract");if(Kl(t))return kz(r,_a.An_accessibility_modifier_cannot_be_used_with_a_private_identifier);_|=Hv(r.kind);break;case 126:if(256&_)return kz(r,_a._0_modifier_already_seen,"static");if(8&_)return kz(r,_a._0_modifier_must_precede_1_modifier,"static","readonly");if(1024&_)return kz(r,_a._0_modifier_must_precede_1_modifier,"static","async");if(512&_)return kz(r,_a._0_modifier_must_precede_1_modifier,"static","accessor");if(269===t.parent.kind||308===t.parent.kind)return kz(r,_a._0_modifier_cannot_appear_on_a_module_or_namespace_element,"static");if(170===t.kind)return kz(r,_a._0_modifier_cannot_appear_on_a_parameter,"static");if(64&_)return kz(r,_a._0_modifier_cannot_be_used_with_1_modifier,"static","abstract");if(16&_)return kz(r,_a._0_modifier_must_precede_1_modifier,"static","override");_|=256,o=r;break;case 129:if(512&_)return kz(r,_a._0_modifier_already_seen,"accessor");if(8&_)return kz(r,_a._0_modifier_cannot_be_used_with_1_modifier,"accessor","readonly");if(128&_)return kz(r,_a._0_modifier_cannot_be_used_with_1_modifier,"accessor","declare");if(173!==t.kind)return kz(r,_a.accessor_modifier_can_only_appear_on_a_property_declaration);_|=512;break;case 148:if(8&_)return kz(r,_a._0_modifier_already_seen,"readonly");if(173!==t.kind&&172!==t.kind&&182!==t.kind&&170!==t.kind)return kz(r,_a.readonly_modifier_can_only_appear_on_a_property_declaration_or_index_signature);if(512&_)return kz(r,_a._0_modifier_cannot_be_used_with_1_modifier,"readonly","accessor");_|=8;break;case 95:if(j.verbatimModuleSyntax&&!(33554432&t.flags)&&266!==t.kind&&265!==t.kind&&268!==t.kind&&308===t.parent.kind&&1===e.getEmitModuleFormatOfFile(vd(t)))return kz(r,_a.A_top_level_export_modifier_cannot_be_used_on_value_declarations_in_a_CommonJS_module_when_verbatimModuleSyntax_is_enabled);if(32&_)return kz(r,_a._0_modifier_already_seen,"export");if(128&_)return kz(r,_a._0_modifier_must_precede_1_modifier,"export","declare");if(64&_)return kz(r,_a._0_modifier_must_precede_1_modifier,"export","abstract");if(1024&_)return kz(r,_a._0_modifier_must_precede_1_modifier,"export","async");if(u_(t.parent))return kz(r,_a._0_modifier_cannot_appear_on_class_elements_of_this_kind,"export");if(170===t.kind)return kz(r,_a._0_modifier_cannot_appear_on_a_parameter,"export");if(4===i)return kz(r,_a._0_modifier_cannot_appear_on_a_using_declaration,"export");if(6===i)return kz(r,_a._0_modifier_cannot_appear_on_an_await_using_declaration,"export");_|=32;break;case 90:const p=308===t.parent.kind?t.parent:t.parent.parent;if(268===p.kind&&!cp(p))return kz(r,_a.A_default_export_can_only_be_used_in_an_ECMAScript_style_module);if(4===i)return kz(r,_a._0_modifier_cannot_appear_on_a_using_declaration,"default");if(6===i)return kz(r,_a._0_modifier_cannot_appear_on_an_await_using_declaration,"default");if(!(32&_))return kz(r,_a._0_modifier_must_precede_1_modifier,"export","default");if(u)return kz(l,_a.Decorators_are_not_valid_here);_|=2048;break;case 138:if(128&_)return kz(r,_a._0_modifier_already_seen,"declare");if(1024&_)return kz(r,_a._0_modifier_cannot_be_used_in_an_ambient_context,"async");if(16&_)return kz(r,_a._0_modifier_cannot_be_used_in_an_ambient_context,"override");if(u_(t.parent)&&!ND(t))return kz(r,_a._0_modifier_cannot_appear_on_class_elements_of_this_kind,"declare");if(170===t.kind)return kz(r,_a._0_modifier_cannot_appear_on_a_parameter,"declare");if(4===i)return kz(r,_a._0_modifier_cannot_appear_on_a_using_declaration,"declare");if(6===i)return kz(r,_a._0_modifier_cannot_appear_on_an_await_using_declaration,"declare");if(33554432&t.parent.flags&&269===t.parent.kind)return kz(r,_a.A_declare_modifier_cannot_be_used_in_an_already_ambient_context);if(Kl(t))return kz(r,_a._0_modifier_cannot_be_used_with_a_private_identifier,"declare");if(512&_)return kz(r,_a._0_modifier_cannot_be_used_with_1_modifier,"declare","accessor");_|=128,a=r;break;case 128:if(64&_)return kz(r,_a._0_modifier_already_seen,"abstract");if(264!==t.kind&&186!==t.kind){if(175!==t.kind&&173!==t.kind&&178!==t.kind&&179!==t.kind)return kz(r,_a.abstract_modifier_can_only_appear_on_a_class_method_or_property_declaration);if(264!==t.parent.kind||!Nv(t.parent,64))return kz(r,173===t.kind?_a.Abstract_properties_can_only_appear_within_an_abstract_class:_a.Abstract_methods_can_only_appear_within_an_abstract_class);if(256&_)return kz(r,_a._0_modifier_cannot_be_used_with_1_modifier,"static","abstract");if(2&_)return kz(r,_a._0_modifier_cannot_be_used_with_1_modifier,"private","abstract");if(1024&_&&s)return kz(s,_a._0_modifier_cannot_be_used_with_1_modifier,"async","abstract");if(16&_)return kz(r,_a._0_modifier_must_precede_1_modifier,"abstract","override");if(512&_)return kz(r,_a._0_modifier_must_precede_1_modifier,"abstract","accessor")}if(Sc(t)&&81===t.name.kind)return kz(r,_a._0_modifier_cannot_be_used_with_a_private_identifier,"abstract");_|=64;break;case 134:if(1024&_)return kz(r,_a._0_modifier_already_seen,"async");if(128&_||33554432&t.parent.flags)return kz(r,_a._0_modifier_cannot_be_used_in_an_ambient_context,"async");if(170===t.kind)return kz(r,_a._0_modifier_cannot_appear_on_a_parameter,"async");if(64&_)return kz(r,_a._0_modifier_cannot_be_used_with_1_modifier,"async","abstract");_|=1024,s=r;break;case 103:case 147:{const e=103===r.kind?8192:16384,i=103===r.kind?"in":"out",o=UP(t.parent)&&(Ug(t.parent)||b(null==(n=Wg(t.parent))?void 0:n.tags,VP))||t.parent;if(169!==t.kind||o&&!(pE(o)||u_(o)||fE(o)||VP(o)))return kz(r,_a._0_modifier_can_only_appear_on_a_type_parameter_of_a_class_interface_or_type_alias,i);if(_&e)return kz(r,_a._0_modifier_already_seen,i);if(8192&e&&16384&_)return kz(r,_a._0_modifier_must_precede_1_modifier,"in","out");_|=e;break}}}return 177===t.kind?256&_?kz(o,_a._0_modifier_cannot_appear_on_a_constructor_declaration,"static"):16&_?kz(c,_a._0_modifier_cannot_appear_on_a_constructor_declaration,"override"):!!(1024&_)&&kz(s,_a._0_modifier_cannot_appear_on_a_constructor_declaration,"async"):(273===t.kind||272===t.kind)&&128&_?kz(a,_a.A_0_modifier_cannot_be_used_with_an_import_declaration,"declare"):170===t.kind&&31&_&&k_(t.name)?kz(t,_a.A_parameter_property_may_not_be_declared_using_a_binding_pattern):170===t.kind&&31&_&&t.dotDotDotToken?kz(t,_a.A_parameter_property_cannot_be_declared_using_a_rest_parameter):!!(1024&_)&&function(e,t){switch(e.kind){case 175:case 263:case 219:case 220:return!1}return kz(t,_a._0_modifier_cannot_be_used_here,"async")}(t,s)}function XJ(e,t){const n=b(e.modifiers,Zl);return n&&n.kind!==t?n:void 0}function QJ(e,t=_a.Trailing_comma_not_allowed){return!(!e||!e.hasTrailingComma)&&xz(e[0],e.end-1,1,t)}function YJ(e,t){if(e&&0===e.length){const n=e.pos-1;return xz(t,n,Qa(t.text,e.end)+1-n,_a.Type_parameter_list_cannot_be_empty)}return!1}function ZJ(e){const t=vd(e);return GJ(e)||YJ(e.typeParameters,t)||function(e){let t=!1;const n=e.length;for(let r=0;r1||e.typeParameters.hasTrailingComma||e.typeParameters[0].constraint)&&t&&So(t.fileName,[".mts",".cts"])&&kz(e.typeParameters[0],_a.This_syntax_is_reserved_in_files_with_the_mts_or_cts_extension_Add_a_trailing_comma_or_explicit_constraint);const{equalsGreaterThanToken:n}=e;return za(t,n.pos).line!==za(t,n.end).line&&kz(n,_a.Line_terminator_not_permitted_before_arrow)}(e,t)||o_(e)&&function(e){if(M>=3){const t=e.body&&VF(e.body)&&bA(e.body.statements);if(t){const n=N(e.parameters,e=>!!e.initializer||k_(e.name)||Bu(e));if(u(n)){d(n,e=>{aT(zo(e,_a.This_parameter_is_not_allowed_with_use_strict_directive),Rp(t,_a.use_strict_directive_used_here))});const e=n.map((e,t)=>Rp(e,0===t?_a.Non_simple_parameter_declared_here:_a.and_here));return aT(zo(t,_a.use_strict_directive_cannot_be_used_with_non_simple_parameter_list),...e),!0}}}return!1}(e)}function ez(e,t){return QJ(t)||function(e,t){if(t&&0===t.length){const n=vd(e),r=t.pos-1;return xz(n,r,Qa(n.text,t.end)+1-r,_a.Type_argument_list_cannot_be_empty)}return!1}(e,t)}function tz(e){const t=e.types;if(QJ(t))return!0;if(t&&0===t.length){const n=Fa(e.token);return xz(e,t.pos,0,_a._0_list_cannot_be_empty,n)}return $(t,nz)}function nz(e){return OF(e)&&vD(e.expression)&&e.typeArguments?kz(e,_a.This_use_of_import_is_invalid_import_calls_can_be_written_but_they_must_have_parentheses_and_cannot_have_type_arguments):ez(e,e.typeArguments)}function iz(e){if(168!==e.kind)return!1;const t=e;return 227===t.expression.kind&&28===t.expression.operatorToken.kind&&kz(t.expression,_a.A_comma_expression_is_not_allowed_in_a_computed_property_name)}function oz(e){if(e.asteriskToken){if(un.assert(263===e.kind||219===e.kind||175===e.kind),33554432&e.flags)return kz(e.asteriskToken,_a.Generators_are_not_allowed_in_an_ambient_context);if(!e.body)return kz(e.asteriskToken,_a.An_overload_signature_cannot_be_declared_as_a_generator)}}function az(e,t){return!!e&&kz(e,t)}function sz(e,t){return!!e&&kz(e,t)}function cz(e){if(Cz(e))return!0;if(251===e.kind&&e.awaitModifier&&!(65536&e.flags)){const t=vd(e);if(nm(e)){if(!vz(t))switch(hp(t,j)||ho.add(Rp(e.awaitModifier,_a.for_await_loops_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_this_file_has_no_imports_or_exports_Consider_adding_an_empty_export_to_make_this_file_a_module)),R){case 100:case 101:case 102:case 199:if(1===t.impliedNodeFormat){ho.add(Rp(e.awaitModifier,_a.The_current_file_is_a_CommonJS_module_and_cannot_use_await_at_the_top_level));break}case 7:case 99:case 200:case 4:if(M>=4)break;default:ho.add(Rp(e.awaitModifier,_a.Top_level_for_await_loops_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_node16_node18_node20_nodenext_or_preserve_and_the_target_option_is_set_to_es2017_or_higher))}}else if(!vz(t)){const t=Rp(e.awaitModifier,_a.for_await_loops_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules),n=Kf(e);return n&&177!==n.kind&&(un.assert(!(2&Oh(n)),"Enclosing function should never be an async function."),aT(t,Rp(n,_a.Did_you_mean_to_mark_this_function_as_async))),ho.add(t),!0}}if(ZF(e)&&!(65536&e.flags)&&aD(e.initializer)&&"async"===e.initializer.escapedText)return kz(e.initializer,_a.The_left_hand_side_of_a_for_of_statement_may_not_be_async),!1;if(262===e.initializer.kind){const t=e.initializer;if(!hz(t)){const n=t.declarations;if(!n.length)return!1;if(n.length>1){const n=250===e.kind?_a.Only_a_single_variable_declaration_is_allowed_in_a_for_in_statement:_a.Only_a_single_variable_declaration_is_allowed_in_a_for_of_statement;return bz(t.declarations[1],n)}const r=n[0];if(r.initializer){const t=250===e.kind?_a.The_variable_declaration_of_a_for_in_statement_cannot_have_an_initializer:_a.The_variable_declaration_of_a_for_of_statement_cannot_have_an_initializer;return kz(r.name,t)}if(r.type)return kz(r,250===e.kind?_a.The_left_hand_side_of_a_for_in_statement_cannot_use_a_type_annotation:_a.The_left_hand_side_of_a_for_of_statement_cannot_use_a_type_annotation)}}return!1}function lz(e){if(e.parameters.length===(178===e.kind?1:2))return sv(e)}function _z(e,t){if(md(e)&&!ab(pF(e)?ah(e.argumentExpression):e.expression))return kz(e,t)}function dz(e){if(ZJ(e))return!0;if(175===e.kind){if(211===e.parent.kind){if(e.modifiers&&(1!==e.modifiers.length||134!==ge(e.modifiers).kind))return bz(e,_a.Modifiers_cannot_appear_here);if(az(e.questionToken,_a.An_object_member_cannot_be_declared_optional))return!0;if(sz(e.exclamationToken,_a.A_definite_assignment_assertion_is_not_permitted_in_this_context))return!0;if(void 0===e.body)return xz(e,e.end-1,1,_a._0_expected,"{")}if(oz(e))return!0}if(u_(e.parent)){if(M<2&&sD(e.name))return kz(e.name,_a.Private_identifiers_are_only_available_when_targeting_ECMAScript_2015_and_higher);if(33554432&e.flags)return _z(e.name,_a.A_computed_property_name_in_an_ambient_context_must_refer_to_an_expression_whose_type_is_a_literal_type_or_a_unique_symbol_type);if(175===e.kind&&!e.body)return _z(e.name,_a.A_computed_property_name_in_a_method_overload_must_refer_to_an_expression_whose_type_is_a_literal_type_or_a_unique_symbol_type)}else{if(265===e.parent.kind)return _z(e.name,_a.A_computed_property_name_in_an_interface_must_refer_to_an_expression_whose_type_is_a_literal_type_or_a_unique_symbol_type);if(188===e.parent.kind)return _z(e.name,_a.A_computed_property_name_in_a_type_literal_must_refer_to_an_expression_whose_type_is_a_literal_type_or_a_unique_symbol_type)}}function pz(e){return jh(e)||225===e.kind&&41===e.operator&&9===e.operand.kind}function fz(e){const t=e.initializer;if(t){const r=!(pz(t)||function(e){if((dF(e)||pF(e)&&pz(e.argumentExpression))&&ab(e.expression))return!!(1056&Ij(e).flags)}(t)||112===t.kind||97===t.kind||(n=t,10===n.kind||225===n.kind&&41===n.operator&&10===n.operand.kind));if(!(nf(e)||lE(e)&&Az(e))||e.type)return kz(t,_a.Initializers_are_not_allowed_in_ambient_contexts);if(r)return kz(t,_a.A_const_initializer_in_an_ambient_context_must_be_a_string_or_numeric_literal_or_literal_enum_reference)}var n}function mz(e){if(80===e.kind){if("__esModule"===gc(e))return function(e,t,n,...r){return!vz(vd(t))&&(Ro(e,t,n,...r),!0)}("noEmit",e,_a.Identifier_expected_esModule_is_reserved_as_an_exported_marker_when_transforming_ECMAScript_modules)}else{const t=e.elements;for(const e of t)if(!IF(e))return mz(e.name)}return!1}function gz(e){if(80===e.kind){if("let"===e.escapedText)return kz(e,_a.let_is_not_allowed_to_be_used_as_a_name_in_let_or_const_declarations)}else{const t=e.elements;for(const e of t)IF(e)||gz(e.name)}return!1}function hz(e){const t=e.declarations;if(QJ(e.declarations))return!0;if(!e.declarations.length)return xz(e,t.pos,t.end-t.pos,_a.Variable_declaration_list_cannot_be_empty);const n=7&e.flags;if(4===n||6===n){if(YF(e.parent))return kz(e,4===n?_a.The_left_hand_side_of_a_for_in_statement_cannot_be_a_using_declaration:_a.The_left_hand_side_of_a_for_in_statement_cannot_be_an_await_using_declaration);if(33554432&e.flags)return kz(e,4===n?_a.using_declarations_are_not_allowed_in_ambient_contexts:_a.await_using_declarations_are_not_allowed_in_ambient_contexts);if(6===n)return pj(e)}return!1}function yz(e){switch(e.kind){case 246:case 247:case 248:case 255:case 249:case 250:case 251:return!1;case 257:return yz(e.parent)}return!0}function vz(e){return e.parseDiagnostics.length>0}function bz(e,t,...n){const r=vd(e);if(!vz(r)){const i=Gp(r,e.pos);return ho.add(Gx(r,i.start,i.length,t,...n)),!0}return!1}function xz(e,t,n,r,...i){const o=vd(e);return!vz(o)&&(ho.add(Gx(o,t,n,r,...i)),!0)}function kz(e,t,...n){return!vz(vd(e))&&(zo(e,t,...n),!0)}function Sz(e){return 265!==e.kind&&266!==e.kind&&273!==e.kind&&272!==e.kind&&279!==e.kind&&278!==e.kind&&271!==e.kind&&!Nv(e,2208)&&bz(e,_a.Top_level_declarations_in_d_ts_files_must_start_with_either_a_declare_or_export_modifier)}function Tz(e){return!!(33554432&e.flags)&&function(e){for(const t of e.statements)if((_u(t)||244===t.kind)&&Sz(t))return!0;return!1}(e)}function Cz(e){if(33554432&e.flags){if(!da(e).hasReportedStatementInAmbientContext&&(r_(e.parent)||d_(e.parent)))return da(e).hasReportedStatementInAmbientContext=bz(e,_a.An_implementation_cannot_be_declared_in_ambient_contexts);if(242===e.parent.kind||269===e.parent.kind||308===e.parent.kind){const t=da(e.parent);if(!t.hasReportedStatementInAmbientContext)return t.hasReportedStatementInAmbientContext=bz(e,_a.Statements_are_not_allowed_in_ambient_contexts)}}return!1}function wz(e){const t=Xd(e).includes("."),n=16&e.numericLiteralFlags;t||n||+e.text<=2**53-1||Uo(!1,Rp(e,_a.Numeric_literals_with_absolute_values_equal_to_2_53_or_greater_are_too_large_to_be_represented_accurately_as_integers))}function Nz(e){return!!d(e.elements,e=>{if(e.isTypeOnly)return bz(e,277===e.kind?_a.The_type_modifier_cannot_be_used_on_a_named_import_when_import_type_is_used_on_its_import_statement:_a.The_type_modifier_cannot_be_used_on_a_named_export_when_export_type_is_used_on_its_export_statement)})}function Dz(e,t,n){if(1048576&t.flags&&2621440&e.flags){const r=BN(t,e);if(r)return r;const i=Up(e);if(i){const e=jN(i,t);if(e){const r=ET(t,E(e,e=>[()=>P_(e),e.escapedName]),n);if(r!==t)return r}}}}function Fz(e){return Jh(e)||(kD(e)?AN(Qj(e.expression)):void 0)}function Ez(e){return Ae===e?qe:(Ae=e,qe=ic(e))}function Pz(e){return Pe===e?ze:(Pe=e,ze=ac(e))}function Az(e){const t=7&Pz(e);return 2===t||4===t||6===t}}function rJ(e){return 263!==e.kind&&175!==e.kind||!!e.body}function iJ(e){switch(e.parent.kind){case 277:case 282:return aD(e)||11===e.kind;default:return lh(e)}}function oJ(e){switch(e){case 0:return"yieldType";case 1:return"returnType";case 2:return"nextType"}}function aJ(e){return!!(1&e.flags)}function sJ(e){return!!(2&e.flags)}(MB=jB||(jB={})).JSX="JSX",MB.IntrinsicElements="IntrinsicElements",MB.ElementClass="ElementClass",MB.ElementAttributesPropertyNameContainer="ElementAttributesProperty",MB.ElementChildrenAttributeNameContainer="ElementChildrenAttribute",MB.Element="Element",MB.ElementType="ElementType",MB.IntrinsicAttributes="IntrinsicAttributes",MB.IntrinsicClassAttributes="IntrinsicClassAttributes",MB.LibraryManagedAttributes="LibraryManagedAttributes",(RB||(RB={})).Fragment="Fragment";var cJ=class e{constructor(t,n,r){var i;for(this.moduleResolverHost=void 0,this.inner=void 0,this.disableTrackSymbol=!1;n instanceof e;)n=n.inner;this.inner=n,this.moduleResolverHost=r,this.context=t,this.canTrackSymbol=!!(null==(i=this.inner)?void 0:i.trackSymbol)}trackSymbol(e,t,n){var r,i;if((null==(r=this.inner)?void 0:r.trackSymbol)&&!this.disableTrackSymbol){if(this.inner.trackSymbol(e,t,n))return this.onDiagnosticReported(),!0;262144&e.flags||((i=this.context).trackedSymbols??(i.trackedSymbols=[])).push([e,t,n])}return!1}reportInaccessibleThisError(){var e;(null==(e=this.inner)?void 0:e.reportInaccessibleThisError)&&(this.onDiagnosticReported(),this.inner.reportInaccessibleThisError())}reportPrivateInBaseOfClassExpression(e){var t;(null==(t=this.inner)?void 0:t.reportPrivateInBaseOfClassExpression)&&(this.onDiagnosticReported(),this.inner.reportPrivateInBaseOfClassExpression(e))}reportInaccessibleUniqueSymbolError(){var e;(null==(e=this.inner)?void 0:e.reportInaccessibleUniqueSymbolError)&&(this.onDiagnosticReported(),this.inner.reportInaccessibleUniqueSymbolError())}reportCyclicStructureError(){var e;(null==(e=this.inner)?void 0:e.reportCyclicStructureError)&&(this.onDiagnosticReported(),this.inner.reportCyclicStructureError())}reportLikelyUnsafeImportRequiredError(e){var t;(null==(t=this.inner)?void 0:t.reportLikelyUnsafeImportRequiredError)&&(this.onDiagnosticReported(),this.inner.reportLikelyUnsafeImportRequiredError(e))}reportTruncationError(){var e;(null==(e=this.inner)?void 0:e.reportTruncationError)&&(this.onDiagnosticReported(),this.inner.reportTruncationError())}reportNonlocalAugmentation(e,t,n){var r;(null==(r=this.inner)?void 0:r.reportNonlocalAugmentation)&&(this.onDiagnosticReported(),this.inner.reportNonlocalAugmentation(e,t,n))}reportNonSerializableProperty(e){var t;(null==(t=this.inner)?void 0:t.reportNonSerializableProperty)&&(this.onDiagnosticReported(),this.inner.reportNonSerializableProperty(e))}onDiagnosticReported(){this.context.reportedDiagnostic=!0}reportInferenceFallback(e){var t;(null==(t=this.inner)?void 0:t.reportInferenceFallback)&&!this.context.suppressReportInferenceFallback&&(this.onDiagnosticReported(),this.inner.reportInferenceFallback(e))}pushErrorFallbackNode(e){var t,n;return null==(n=null==(t=this.inner)?void 0:t.pushErrorFallbackNode)?void 0:n.call(t,e)}popErrorFallbackNode(){var e,t;return null==(t=null==(e=this.inner)?void 0:e.popErrorFallbackNode)?void 0:t.call(e)}};function lJ(e,t,n,r){if(void 0===e)return e;const i=t(e);let o;return void 0!==i?(o=Qe(i)?(r||xJ)(i):i,un.assertNode(o,n),o):void 0}function _J(e,t,n,r,i){if(void 0===e)return e;const o=e.length;let a;(void 0===r||r<0)&&(r=0),(void 0===i||i>o-r)&&(i=o-r);let s=-1,c=-1;r>0||io-r)&&(i=o-r),dJ(e,t,n,r,i)}function dJ(e,t,n,r,i){let o;const a=e.length;(r>0||i=2&&(i=function(e,t){let n;for(let r=0;r{const o=rl,addSource:P,setSourceContent:A,addName:I,addMapping:O,appendSourceMap:function(e,t,n,r,i,o){un.assert(e>=k,"generatedLine cannot backtrack"),un.assert(t>=0,"generatedCharacter cannot be negative"),s();const a=[];let l;const _=EJ(n.mappings);for(const s of _){if(o&&(s.generatedLine>o.line||s.generatedLine===o.line&&s.generatedCharacter>o.character))break;if(i&&(s.generatedLineJSON.stringify(R())};function P(t){s();const n=aa(r,t,e.getCurrentDirectory(),e.getCanonicalFileName,!0);let i=u.get(n);return void 0===i&&(i=_.length,_.push(n),l.push(t),u.set(n,i)),c(),i}function A(e,t){if(s(),null!==t){for(o||(o=[]);o.length=k,"generatedLine cannot backtrack"),un.assert(t>=0,"generatedCharacter cannot be negative"),un.assert(void 0===n||n>=0,"sourceIndex cannot be negative"),un.assert(void 0===r||r>=0,"sourceLine cannot be negative"),un.assert(void 0===i||i>=0,"sourceCharacter cannot be negative"),s(),(function(e,t){return!D||k!==e||S!==t}(e,t)||function(e,t,n){return void 0!==e&&void 0!==t&&void 0!==n&&T===e&&(C>t||C===t&&w>n)}(n,r,i))&&(j(),k=e,S=t,F=!1,E=!1,D=!0),void 0!==n&&void 0!==r&&void 0!==i&&(T=n,C=r,w=i,F=!0,void 0!==o&&(N=o,E=!0)),c()}function L(e){p.push(e),p.length>=1024&&M()}function j(){if(D&&(!x||m!==k||g!==S||h!==T||y!==C||v!==w||b!==N)){if(s(),m0&&(f+=String.fromCharCode.apply(void 0,p),p.length=0)}function R(){return j(),M(),{version:3,file:t,sourceRoot:n,sources:_,names:d,mappings:f,sourcesContent:o}}function B(e){e<0?e=1+(-e<<1):e<<=1;do{let t=31&e;(e>>=5)>0&&(t|=32),L(IJ(t))}while(e>0)}}var SJ=/\/\/[@#] source[M]appingURL=(.+)\r?\n?$/,TJ=/^\/\/[@#] source[M]appingURL=(.+)\r?\n?$/,CJ=/^\s*(\/\/[@#] .*)?$/;function wJ(e,t){return{getLineCount:()=>t.length,getLineText:n=>e.substring(t[n],t[n+1])}}function NJ(e){for(let t=e.getLineCount()-1;t>=0;t--){const n=e.getLineText(t),r=TJ.exec(n);if(r)return r[1].trimEnd();if(!n.match(CJ))break}}function DJ(e){return"string"==typeof e||null===e}function FJ(e){try{const n=JSON.parse(e);if(null!==(t=n)&&"object"==typeof t&&3===t.version&&"string"==typeof t.file&&"string"==typeof t.mappings&&Qe(t.sources)&&v(t.sources,Ze)&&(void 0===t.sourceRoot||null===t.sourceRoot||"string"==typeof t.sourceRoot)&&(void 0===t.sourcesContent||null===t.sourcesContent||Qe(t.sourcesContent)&&v(t.sourcesContent,DJ))&&(void 0===t.names||null===t.names||Qe(t.names)&&v(t.names,Ze)))return n}catch{}var t}function EJ(e){let t,n=!1,r=0,i=0,o=0,a=0,s=0,c=0,l=0;return{get pos(){return r},get error(){return t},get state(){return _(!0,!0)},next(){for(;!n&&r=e.length)return d("Error in decoding base64VLQFormatDecode, past the mapping string"),-1;const o=OJ(e.charCodeAt(r));if(-1===o)return d("Invalid character in VLQ"),-1;t=!!(32&o),i|=(31&o)<>=1,i=-i):i>>=1,i}}function PJ(e,t){return e===t||e.generatedLine===t.generatedLine&&e.generatedCharacter===t.generatedCharacter&&e.sourceIndex===t.sourceIndex&&e.sourceLine===t.sourceLine&&e.sourceCharacter===t.sourceCharacter&&e.nameIndex===t.nameIndex}function AJ(e){return void 0!==e.sourceIndex&&void 0!==e.sourceLine&&void 0!==e.sourceCharacter}function IJ(e){return e>=0&&e<26?65+e:e>=26&&e<52?97+e-26:e>=52&&e<62?48+e-52:62===e?43:63===e?47:un.fail(`${e}: not a base64 value`)}function OJ(e){return e>=65&&e<=90?e-65:e>=97&&e<=122?e-97+26:e>=48&&e<=57?e-48+52:43===e?62:47===e?63:-1}function LJ(e){return void 0!==e.sourceIndex&&void 0!==e.sourcePosition}function jJ(e,t){return e.generatedPosition===t.generatedPosition&&e.sourceIndex===t.sourceIndex&&e.sourcePosition===t.sourcePosition}function MJ(e,t){return un.assert(e.sourceIndex===t.sourceIndex),vt(e.sourcePosition,t.sourcePosition)}function RJ(e,t){return vt(e.generatedPosition,t.generatedPosition)}function BJ(e){return e.sourcePosition}function JJ(e){return e.generatedPosition}function zJ(e,t,n){const r=Do(n),i=t.sourceRoot?Bo(t.sourceRoot,r):r,o=Bo(t.file,r),a=e.getSourceFileLike(o),s=t.sources.map(e=>Bo(e,i)),c=new Map(s.map((t,n)=>[e.getCanonicalFileName(t),n]));let _,u,d;return{getSourcePosition:function(e){const t=function(){if(void 0===u){const e=[];for(const t of f())e.push(t);u=ee(e,RJ,jJ)}return u}();if(!$(t))return e;let n=Ce(t,e.pos,JJ,vt);n<0&&(n=~n);const r=t[n];return void 0!==r&&LJ(r)?{fileName:s[r.sourceIndex],pos:r.sourcePosition}:e},getGeneratedPosition:function(t){const n=c.get(e.getCanonicalFileName(t.fileName));if(void 0===n)return t;const r=function(e){if(void 0===d){const e=[];for(const t of f()){if(!LJ(t))continue;let n=e[t.sourceIndex];n||(e[t.sourceIndex]=n=[]),n.push(t)}d=e.map(e=>ee(e,MJ,jJ))}return d[e]}(n);if(!$(r))return t;let i=Ce(r,t.pos,BJ,vt);i<0&&(i=~i);const a=r[i];return void 0===a||a.sourceIndex!==n?t:{fileName:o,pos:a.generatedPosition}}};function p(n){const r=void 0!==a?La(a,n.generatedLine,n.generatedCharacter,!0):-1;let i,o;if(AJ(n)){const r=e.getSourceFileLike(s[n.sourceIndex]);i=t.sources[n.sourceIndex],o=void 0!==r?La(r,n.sourceLine,n.sourceCharacter,!0):-1}return{generatedPosition:r,source:i,sourceIndex:n.sourceIndex,sourcePosition:o,nameIndex:n.nameIndex}}function f(){if(void 0===_){const n=EJ(t.mappings),r=Oe(n,p);void 0!==n.error?(e.log&&e.log(`Encountered error while decoding sourcemap: ${n.error}`),_=l):_=r}return _}}var qJ={getSourcePosition:st,getGeneratedPosition:st};function UJ(e){return(e=_c(e))?ZB(e):0}function VJ(e){return!!e&&!(!EE(e)&&!OE(e))&&$(e.elements,WJ)}function WJ(e){return Kd(e.propertyName||e.name)}function $J(e,t){return function(n){return 308===n.kind?t(n):function(n){return e.factory.createBundle(E(n.sourceFiles,t))}(n)}}function HJ(e){return!!Sg(e)}function KJ(e){if(Sg(e))return!0;const t=e.importClause&&e.importClause.namedBindings;if(!t)return!1;if(!EE(t))return!1;let n=0;for(const e of t.elements)WJ(e)&&n++;return n>0&&n!==t.elements.length||!!(t.elements.length-n)&&Tg(e)}function GJ(e){return!KJ(e)&&(Tg(e)||!!e.importClause&&EE(e.importClause.namedBindings)&&VJ(e.importClause.namedBindings))}function XJ(e,t){const n=e.getEmitResolver(),r=e.getCompilerOptions(),i=[],o=new ez,a=[],s=new Map,c=new Set;let l,_,u=!1,d=!1,p=!1,f=!1;for(const n of t.statements)switch(n.kind){case 273:i.push(n),!p&&KJ(n)&&(p=!0),!f&&GJ(n)&&(f=!0);break;case 272:284===n.moduleReference.kind&&i.push(n);break;case 279:if(n.moduleSpecifier)if(n.exportClause)if(i.push(n),OE(n.exportClause))g(n),f||(f=VJ(n.exportClause));else{const e=n.exportClause.name,t=$d(e);s.get(t)||(YJ(a,UJ(n),e),s.set(t,!0),l=ie(l,e)),p=!0}else i.push(n),d=!0;else g(n);break;case 278:n.isExportEquals&&!_&&(_=n);break;case 244:if(Nv(n,32))for(const e of n.declarationList.declarations)l=QJ(e,s,l,a);break;case 263:Nv(n,32)&&h(n,void 0,Nv(n,2048));break;case 264:if(Nv(n,32))if(Nv(n,2048))u||(YJ(a,UJ(n),e.factory.getDeclarationName(n)),u=!0);else{const e=n.name;e&&!s.get(gc(e))&&(YJ(a,UJ(n),e),s.set(gc(e),!0),l=ie(l,e))}}const m=AA(e.factory,e.getEmitHelperFactory(),t,r,d,p,f);return m&&i.unshift(m),{externalImports:i,exportSpecifiers:o,exportEquals:_,hasExportStarsToExportValues:d,exportedBindings:a,exportedNames:l,exportedFunctions:c,externalHelpersImportDeclaration:m};function g(e){for(const t of nt(e.exportClause,OE).elements){const r=$d(t.name);if(!s.get(r)){const i=t.propertyName||t.name;if(11!==i.kind){e.moduleSpecifier||o.add(i,t);const r=n.getReferencedImportDeclaration(i)||n.getReferencedValueDeclaration(i);if(r){if(263===r.kind){h(r,t.name,Kd(t.name));continue}YJ(a,UJ(r),t.name)}}s.set(r,!0),l=ie(l,t.name)}}}function h(t,n,r){if(c.add(_c(t,uE)),r)u||(YJ(a,UJ(t),n??e.factory.getDeclarationName(t)),u=!0);else{n??(n=t.name);const e=$d(n);s.get(e)||(YJ(a,UJ(t),n),s.set(e,!0))}}}function QJ(e,t,n,r){if(k_(e.name))for(const i of e.name.elements)IF(i)||(n=QJ(i,t,n,r));else if(!Wl(e.name)){const i=gc(e.name);t.get(i)||(t.set(i,!0),n=ie(n,e.name),hA(e.name)&&YJ(r,UJ(e),e.name))}return n}function YJ(e,t,n){let r=e[t];return r?r.push(n):e[t]=r=[n],r}var ZJ=class e{constructor(){this._map=new Map}get size(){return this._map.size}has(t){return this._map.has(e.toKey(t))}get(t){return this._map.get(e.toKey(t))}set(t,n){return this._map.set(e.toKey(t),n),this}delete(t){var n;return(null==(n=this._map)?void 0:n.delete(e.toKey(t)))??!1}clear(){this._map.clear()}values(){return this._map.values()}static toKey(t){if($l(t)||Wl(t)){const n=t.emitNode.autoGenerate;if(4==(7&n.flags)){const r=uI(t),i=dl(r)&&r!==t?e.toKey(r):`(generated@${ZB(r)})`;return pI(!1,n.prefix,i,n.suffix,e.toKey)}{const t=`(auto@${n.id})`;return pI(!1,n.prefix,t,n.suffix,e.toKey)}}return sD(t)?gc(t).slice(1):gc(t)}},ez=class extends ZJ{add(e,t){let n=this.get(e);return n?n.push(t):this.set(e,n=[t]),n}remove(e,t){const n=this.get(e);n&&(Vt(n,t),n.length||this.delete(e))}};function tz(e){return ju(e)||9===e.kind||Ch(e.kind)||aD(e)}function nz(e){return!aD(e)&&tz(e)}function rz(e){return e>=65&&e<=79}function iz(e){switch(e){case 65:return 40;case 66:return 41;case 67:return 42;case 68:return 43;case 69:return 44;case 70:return 45;case 71:return 48;case 72:return 49;case 73:return 50;case 74:return 51;case 75:return 52;case 79:return 53;case 76:return 57;case 77:return 56;case 78:return 61}}function oz(e){if(!HF(e))return;const t=ah(e.expression);return lf(t)?t:void 0}function az(e,t,n){for(let r=t;rfunction(e,t,n){return ND(e)&&(!!e.initializer||!t)&&Fv(e)===n}(e,t,n))}function lz(e){return ND(t=e)&&Fv(t)||ED(e);var t}function _z(e){return N(e.members,lz)}function uz(e){return 173===e.kind&&void 0!==e.initializer}function dz(e){return!Dv(e)&&(m_(e)||p_(e))&&sD(e.name)}function pz(e){let t;if(e){const n=e.parameters,r=n.length>0&&cv(n[0]),i=r?1:0,o=r?n.length-1:n.length;for(let e=0;eyz(e.privateEnv,t))}function xz(e){return!e.initializer&&aD(e.name)}function kz(e){return v(e,xz)}function Sz(e,t){if(!e||!UN(e)||!xg(e.text,t))return e;const n=$S(e.text,Zq(e.text,t));return n!==e.text?hw(xI(mw.createStringLiteral(n,e.singleQuote),e),e):e}var Tz=(e=>(e[e.All=0]="All",e[e.ObjectRest=1]="ObjectRest",e))(Tz||{});function Cz(e,t,n,r,i,o){let a,s,c=e;if(ib(e))for(a=e.right;yb(e.left)||hb(e.left);){if(!ib(a))return un.checkDefined(lJ(a,t,V_));c=e=a,a=e.right}const l={context:n,level:r,downlevelIteration:!!n.getCompilerOptions().downlevelIteration,hoistTempVariables:!0,emitExpression:_,emitBindingOrAssignment:function(e,r,i,a){un.assertNode(e,o?aD:V_);const s=o?o(e,r,i):xI(n.factory.createAssignment(un.checkDefined(lJ(e,t,V_)),r),i);s.original=a,_(s)},createArrayBindingOrAssignmentPattern:e=>function(e,t){return un.assertEachNode(t,P_),e.createArrayLiteralExpression(E(t,e.converters.convertToArrayAssignmentElement))}(n.factory,e),createObjectBindingOrAssignmentPattern:e=>function(e,t){return un.assertEachNode(t,F_),e.createObjectLiteralExpression(E(t,e.converters.convertToObjectAssignmentElement))}(n.factory,e),createArrayBindingOrAssignmentElement:Iz,visitor:t};if(a&&(a=lJ(a,t,V_),un.assert(a),aD(a)&&wz(e,a.escapedText)||Nz(e)?a=Az(l,a,!1,c):i?a=Az(l,a,!0,c):ey(e)&&(c=a)),Fz(l,e,a,c,ib(e)),a&&i){if(!$(s))return a;s.push(a)}return n.factory.inlineExpressions(s)||n.factory.createOmittedExpression();function _(e){s=ie(s,e)}}function wz(e,t){const n=MA(e);return N_(n)?function(e,t){const n=qA(e);for(const e of n)if(wz(e,t))return!0;return!1}(n,t):!!aD(n)&&n.escapedText===t}function Nz(e){const t=JA(e);if(t&&kD(t)&&!Il(t.expression))return!0;const n=MA(e);return!!n&&N_(n)&&!!d(qA(n),Nz)}function Dz(e,t,n,r,i,o=!1,a){let s;const c=[],l=[],_={context:n,level:r,downlevelIteration:!!n.getCompilerOptions().downlevelIteration,hoistTempVariables:o,emitExpression:function(e){s=ie(s,e)},emitBindingOrAssignment:u,createArrayBindingOrAssignmentPattern:e=>function(e,t){return un.assertEachNode(t,T_),e.createArrayBindingPattern(t)}(n.factory,e),createObjectBindingOrAssignmentPattern:e=>function(e,t){return un.assertEachNode(t,lF),e.createObjectBindingPattern(t)}(n.factory,e),createArrayBindingOrAssignmentElement:e=>function(e,t){return e.createBindingElement(void 0,void 0,t)}(n.factory,e),visitor:t};if(lE(e)){let t=jA(e);t&&(aD(t)&&wz(e,t.escapedText)||Nz(e))&&(t=Az(_,un.checkDefined(lJ(t,_.visitor,V_)),!1,t),e=n.factory.updateVariableDeclaration(e,e.name,void 0,void 0,t))}if(Fz(_,e,i,e,a),s){const e=n.factory.createTempVariable(void 0);if(o){const t=n.factory.inlineExpressions(s);s=void 0,u(e,t,void 0,void 0)}else{n.hoistVariableDeclaration(e);const t=ve(c);t.pendingExpressions=ie(t.pendingExpressions,n.factory.createAssignment(e,t.value)),se(t.pendingExpressions,s),t.value=e}}for(const{pendingExpressions:e,name:t,value:r,location:i,original:o}of c){const a=n.factory.createVariableDeclaration(t,void 0,void 0,e?n.factory.inlineExpressions(ie(e,r)):r);a.original=o,xI(a,i),l.push(a)}return l;function u(e,t,r,i){un.assertNode(e,n_),s&&(t=n.factory.inlineExpressions(ie(s,t)),s=void 0),c.push({pendingExpressions:s,name:e,value:t,location:r,original:i})}}function Fz(e,t,n,r,i){const o=MA(t);if(!i){const i=lJ(jA(t),e.visitor,V_);i?n?(n=function(e,t,n,r){return t=Az(e,t,!0,r),e.context.factory.createConditionalExpression(e.context.factory.createTypeCheck(t,"undefined"),void 0,n,void 0,t)}(e,n,i,r),!nz(i)&&N_(o)&&(n=Az(e,n,!0,r))):n=i:n||(n=e.context.factory.createVoidZero())}D_(o)?function(e,t,n,r,i){const o=qA(n),a=o.length;let s,c;1!==a&&(r=Az(e,r,!C_(t)||0!==a,i));for(let t=0;t=1)||98304&l.transformFlags||98304&MA(l).transformFlags||kD(t)){s&&(e.emitBindingOrAssignment(e.createObjectBindingOrAssignmentPattern(s),r,i,n),s=void 0);const o=Pz(e,r,t);kD(t)&&(c=ie(c,o.argumentExpression)),Fz(e,l,o,l)}else s=ie(s,lJ(l,e.visitor,w_))}}s&&e.emitBindingOrAssignment(e.createObjectBindingOrAssignmentPattern(s),r,i,n)}(e,t,o,n,r):E_(o)?function(e,t,n,r,i){const o=qA(n),a=o.length;let s,c;e.level<1&&e.downlevelIteration?r=Az(e,xI(e.context.getEmitHelperFactory().createReadHelper(r,a>0&&RA(o[a-1])?void 0:a),i),!1,i):(1!==a&&(e.level<1||0===a)||v(o,IF))&&(r=Az(e,r,!C_(t)||0!==a,i));for(let t=0;t=1)if(65536&n.transformFlags||e.hasTransformedPriorElement&&!Ez(n)){e.hasTransformedPriorElement=!0;const t=e.context.factory.createTempVariable(void 0);e.hoistTempVariables&&e.context.hoistVariableDeclaration(t),c=ie(c,[t,n]),s=ie(s,e.createArrayBindingOrAssignmentElement(t))}else s=ie(s,n);else{if(IF(n))continue;if(RA(n)){if(t===a-1){const i=e.context.factory.createArraySliceCall(r,t);Fz(e,n,i,n)}}else{const i=e.context.factory.createElementAccessExpression(r,t);Fz(e,n,i,n)}}}if(s&&e.emitBindingOrAssignment(e.createArrayBindingOrAssignmentPattern(s),r,i,n),c)for(const[t,n]of c)Fz(e,n,t,n)}(e,t,o,n,r):e.emitBindingOrAssignment(o,n,r,t)}function Ez(e){const t=MA(e);if(!t||IF(t))return!0;const n=JA(e);if(n&&!zh(n))return!1;const r=jA(e);return!(r&&!nz(r))&&(N_(t)?v(qA(t),Ez):aD(t))}function Pz(e,t,n){const{factory:r}=e.context;if(kD(n)){const r=Az(e,un.checkDefined(lJ(n.expression,e.visitor,V_)),!1,n);return e.context.factory.createElementAccessExpression(t,r)}if(jh(n)||qN(n)){const i=r.cloneNode(n);return e.context.factory.createElementAccessExpression(t,i)}{const r=e.context.factory.createIdentifier(gc(n));return e.context.factory.createPropertyAccessExpression(t,r)}}function Az(e,t,n,r){if(aD(t)&&n)return t;{const n=e.context.factory.createTempVariable(void 0);return e.hoistTempVariables?(e.context.hoistVariableDeclaration(n),e.emitExpression(xI(e.context.factory.createAssignment(n,t),r))):e.emitBindingOrAssignment(n,t,r,void 0),n}}function Iz(e){return e}function Oz(e){var t;if(!ED(e)||1!==e.body.statements.length)return!1;const n=e.body.statements[0];return HF(n)&&rb(n.expression,!0)&&aD(n.expression.left)&&(null==(t=e.emitNode)?void 0:t.classThis)===n.expression.left&&110===n.expression.right.kind}function Lz(e){var t;return!!(null==(t=e.emitNode)?void 0:t.classThis)&&$(e.members,Oz)}function jz(e,t,n,r){if(Lz(t))return t;const i=function(e,t,n=e.createThis()){const r=e.createAssignment(t,n),i=e.createExpressionStatement(r),o=e.createBlock([i],!1),a=e.createClassStaticBlockDeclaration(o);return yw(a).classThis=t,a}(e,n,r);t.name&&ww(i.body.statements[0],t.name);const o=e.createNodeArray([i,...t.members]);xI(o,t.members);const a=dE(t)?e.updateClassDeclaration(t,t.modifiers,t.name,t.typeParameters,t.heritageClauses,o):e.updateClassExpression(t,t.modifiers,t.name,t.typeParameters,t.heritageClauses,o);return yw(a).classThis=n,a}function Mz(e,t,n){const r=_c(NA(n));return(dE(r)||uE(r))&&!r.name&&Nv(r,2048)?e.createStringLiteral("default"):e.createStringLiteralFromNode(t)}function Rz(e,t,n){const{factory:r}=e;if(void 0!==n)return{assignedName:r.createStringLiteral(n),name:t};if(zh(t)||sD(t))return{assignedName:r.createStringLiteralFromNode(t),name:t};if(zh(t.expression)&&!aD(t.expression))return{assignedName:r.createStringLiteralFromNode(t.expression),name:t};const i=r.getGeneratedNameForNode(t);e.hoistVariableDeclaration(i);const o=e.getEmitHelperFactory().createPropKeyHelper(t.expression),a=r.createAssignment(i,o);return{assignedName:i,name:r.updateComputedPropertyName(t,a)}}function Bz(e){var t;if(!ED(e)||1!==e.body.statements.length)return!1;const n=e.body.statements[0];return HF(n)&&JN(n.expression,"___setFunctionName")&&n.expression.arguments.length>=2&&n.expression.arguments[1]===(null==(t=e.emitNode)?void 0:t.assignedName)}function Jz(e){var t;return!!(null==(t=e.emitNode)?void 0:t.assignedName)&&$(e.members,Bz)}function zz(e){return!!e.name||Jz(e)}function qz(e,t,n,r){if(Jz(t))return t;const{factory:i}=e,o=function(e,t,n=e.factory.createThis()){const{factory:r}=e,i=e.getEmitHelperFactory().createSetFunctionNameHelper(n,t),o=r.createExpressionStatement(i),a=r.createBlock([o],!1),s=r.createClassStaticBlockDeclaration(a);return yw(s).assignedName=t,s}(e,n,r);t.name&&ww(o.body.statements[0],t.name);const a=k(t.members,Oz)+1,s=t.members.slice(0,a),c=t.members.slice(a),l=i.createNodeArray([...s,o,...c]);return xI(l,t.members),yw(t=dE(t)?i.updateClassDeclaration(t,t.modifiers,t.name,t.typeParameters,t.heritageClauses,l):i.updateClassExpression(t,t.modifiers,t.name,t.typeParameters,t.heritageClauses,l)).assignedName=n,t}function Uz(e,t,n,r){if(r&&UN(n)&&ym(n))return t;const{factory:i}=e,o=NA(t),a=AF(o)?nt(qz(e,o,n),AF):e.getEmitHelperFactory().createSetFunctionNameHelper(o,n);return i.restoreOuterExpressions(t,a)}function Vz(e,t,n,r){switch(t.kind){case 304:return function(e,t,n,r){const{factory:i}=e,{assignedName:o,name:a}=Rz(e,t.name,r),s=Uz(e,t.initializer,o,n);return i.updatePropertyAssignment(t,a,s)}(e,t,n,r);case 305:return function(e,t,n,r){const{factory:i}=e,o=void 0!==r?i.createStringLiteral(r):Mz(i,t.name,t.objectAssignmentInitializer),a=Uz(e,t.objectAssignmentInitializer,o,n);return i.updateShorthandPropertyAssignment(t,t.name,a)}(e,t,n,r);case 261:return function(e,t,n,r){const{factory:i}=e,o=void 0!==r?i.createStringLiteral(r):Mz(i,t.name,t.initializer),a=Uz(e,t.initializer,o,n);return i.updateVariableDeclaration(t,t.name,t.exclamationToken,t.type,a)}(e,t,n,r);case 170:return function(e,t,n,r){const{factory:i}=e,o=void 0!==r?i.createStringLiteral(r):Mz(i,t.name,t.initializer),a=Uz(e,t.initializer,o,n);return i.updateParameterDeclaration(t,t.modifiers,t.dotDotDotToken,t.name,t.questionToken,t.type,a)}(e,t,n,r);case 209:return function(e,t,n,r){const{factory:i}=e,o=void 0!==r?i.createStringLiteral(r):Mz(i,t.name,t.initializer),a=Uz(e,t.initializer,o,n);return i.updateBindingElement(t,t.dotDotDotToken,t.propertyName,t.name,a)}(e,t,n,r);case 173:return function(e,t,n,r){const{factory:i}=e,{assignedName:o,name:a}=Rz(e,t.name,r),s=Uz(e,t.initializer,o,n);return i.updatePropertyDeclaration(t,t.modifiers,a,t.questionToken??t.exclamationToken,t.type,s)}(e,t,n,r);case 227:return function(e,t,n,r){const{factory:i}=e,o=void 0!==r?i.createStringLiteral(r):Mz(i,t.left,t.right),a=Uz(e,t.right,o,n);return i.updateBinaryExpression(t,t.left,t.operatorToken,a)}(e,t,n,r);case 278:return function(e,t,n,r){const{factory:i}=e,o=void 0!==r?i.createStringLiteral(r):i.createStringLiteral(t.isExportEquals?"":"default"),a=Uz(e,t.expression,o,n);return i.updateExportAssignment(t,t.modifiers,a)}(e,t,n,r)}}var Wz=(e=>(e[e.LiftRestriction=0]="LiftRestriction",e[e.All=1]="All",e))(Wz||{});function $z(e,t,n,r,i,o){const a=lJ(t.tag,n,V_);un.assert(a);const s=[void 0],c=[],l=[],_=t.template;if(0===o&&!fy(_))return vJ(t,n,e);const{factory:u}=e;if($N(_))c.push(Hz(u,_)),l.push(Kz(u,_,r));else{c.push(Hz(u,_.head)),l.push(Kz(u,_.head,r));for(const e of _.templateSpans)c.push(Hz(u,e.literal)),l.push(Kz(u,e.literal,r)),s.push(un.checkDefined(lJ(e.expression,n,V_)))}const d=e.getEmitHelperFactory().createTemplateObjectHelper(u.createArrayLiteralExpression(c),u.createArrayLiteralExpression(l));if(rO(r)){const e=u.createUniqueName("templateObject");i(e),s[0]=u.createLogicalOr(e,u.createAssignment(e,d))}else s[0]=d;return u.createCallExpression(a,void 0,s)}function Hz(e,t){return 26656&t.templateFlags?e.createVoidZero():e.createStringLiteral(t.text)}function Kz(e,t,n){let r=t.rawText;if(void 0===r){un.assertIsDefined(n,"Template literal node is missing 'rawText' and does not have a source file. Possibly bad transform."),r=Vd(n,t);const e=15===t.kind||18===t.kind;r=r.substring(1,r.length-(e?1:2))}return r=r.replace(/\r\n?/g,"\n"),xI(e.createStringLiteral(r),t)}var Gz=!1;function Xz(e){const{factory:t,getEmitHelperFactory:n,startLexicalEnvironment:r,resumeLexicalEnvironment:i,endLexicalEnvironment:o,hoistVariableDeclaration:a}=e,s=e.getEmitResolver(),c=e.getCompilerOptions(),l=yk(c),_=vk(c),u=!!c.experimentalDecorators,d=c.emitDecoratorMetadata?Zz(e):void 0,p=e.onEmitNode,f=e.onSubstituteNode;let m,g,h,y,v;e.onEmitNode=function(e,t,n){const r=b,i=m;sP(t)&&(m=t),2&x&&function(e){return 268===_c(e).kind}(t)&&(b|=2),8&x&&function(e){return 267===_c(e).kind}(t)&&(b|=8),p(e,t,n),b=r,m=i},e.onSubstituteNode=function(e,n){return n=f(e,n),1===e?function(e){switch(e.kind){case 80:return function(e){return Ce(e)||e}(e);case 212:case 213:return function(e){return function(e){const n=function(e){if(!kk(c))return dF(e)||pF(e)?s.getConstantValue(e):void 0}(e);if(void 0!==n){zw(e,n);const i="string"==typeof n?t.createStringLiteral(n):n<0?t.createPrefixUnaryExpression(41,t.createNumericLiteral(-n)):t.createNumericLiteral(n);if(!c.removeComments){Rw(i,3,` ${r=Xd(_c(e,Sx)),r.replace(/\*\//g,"*_/")} `)}return i}var r;return e}(e)}(e)}return e}(n):iP(n)?function(e){if(2&x){const n=e.name,r=Ce(n);if(r){if(e.objectAssignmentInitializer){const i=t.createAssignment(r,e.objectAssignmentInitializer);return xI(t.createPropertyAssignment(n,i),e)}return xI(t.createPropertyAssignment(n,r),e)}}return e}(n):n},e.enableSubstitution(212),e.enableSubstitution(213);let b,x=0;return function(e){return 309===e.kind?function(e){return t.createBundle(e.sourceFiles.map(k))}(e):k(e)};function k(t){if(t.isDeclarationFile)return t;m=t;const n=S(t,M);return Uw(n,e.readEmitHelpers()),m=void 0,n}function S(e,t){const n=y,r=v;!function(e){switch(e.kind){case 308:case 270:case 269:case 242:y=e,v=void 0;break;case 264:case 263:if(Nv(e,128))break;e.name?ae(e):un.assert(264===e.kind||Nv(e,2048))}}(e);const i=t(e);return y!==n&&(v=r),y=n,i}function T(e){return S(e,C)}function C(e){return 1&e.transformFlags?j(e):e}function w(e){return S(e,D)}function D(n){switch(n.kind){case 273:case 272:case 278:case 279:return function(n){if(function(e){const t=pc(e);if(t===e||AE(e))return!1;if(!t||t.kind!==e.kind)return!0;switch(e.kind){case 273:if(un.assertNode(t,xE),e.importClause!==t.importClause)return!0;if(e.attributes!==t.attributes)return!0;break;case 272:if(un.assertNode(t,bE),e.name!==t.name)return!0;if(e.isTypeOnly!==t.isTypeOnly)return!0;if(e.moduleReference!==t.moduleReference&&(e_(e.moduleReference)||e_(t.moduleReference)))return!0;break;case 279:if(un.assertNode(t,IE),e.exportClause!==t.exportClause)return!0;if(e.attributes!==t.attributes)return!0}return!1}(n))return 1&n.transformFlags?vJ(n,T,e):n;switch(n.kind){case 273:return function(e){if(!e.importClause)return e;if(e.importClause.isTypeOnly)return;const n=lJ(e.importClause,de,kE);return n?t.updateImportDeclaration(e,void 0,n,e.moduleSpecifier,e.attributes):void 0}(n);case 272:return ge(n);case 278:return function(t){return c.verbatimModuleSyntax||s.isValueAliasDeclaration(t)?vJ(t,T,e):void 0}(n);case 279:return function(e){if(e.isTypeOnly)return;if(!e.exportClause||FE(e.exportClause))return t.updateExportDeclaration(e,e.modifiers,e.isTypeOnly,e.exportClause,e.moduleSpecifier,e.attributes);const n=!!c.verbatimModuleSyntax,r=lJ(e.exportClause,e=>function(e,n){return FE(e)?function(e){return t.updateNamespaceExport(e,un.checkDefined(lJ(e.name,T,aD)))}(e):function(e,n){const r=_J(e.elements,me,LE);return n||$(r)?t.updateNamedExports(e,r):void 0}(e,n)}(e,n),wl);return r?t.updateExportDeclaration(e,void 0,e.isTypeOnly,r,e.moduleSpecifier,e.attributes):void 0}(n);default:un.fail("Unhandled ellided statement")}}(n);default:return C(n)}}function F(e){return S(e,P)}function P(e){if(279!==e.kind&&273!==e.kind&&274!==e.kind&&(272!==e.kind||284!==e.moduleReference.kind))return 1&e.transformFlags||Nv(e,32)?j(e):e}function A(n){return r=>S(r,r=>function(n,r){switch(n.kind){case 177:return function(n){if(X(n))return t.updateConstructorDeclaration(n,void 0,fJ(n.parameters,T,e),function(n,r){const a=r&&N(r.parameters,e=>Zs(e,r));if(!$(a))return gJ(n,T,e);let s=[];i();const c=t.copyPrologue(n.statements,s,!1,T),l=sz(n.statements,c),_=B(a,Y);l.length?Q(s,n.statements,c,l,0,_):(se(s,_),se(s,_J(n.statements,T,pu,c))),s=t.mergeLexicalEnvironment(s,o());const u=t.createBlock(xI(t.createNodeArray(s),n.statements),!0);return xI(u,n),hw(u,n),u}(n.body,n))}(n);case 173:return function(e,n){const r=33554432&e.flags||Nv(e,64);if(r&&(!u||!Lv(e)))return;let i=u_(n)?_J(e.modifiers,r?O:T,g_):_J(e.modifiers,I,g_);return i=q(i,e,n),r?t.updatePropertyDeclaration(e,K(i,t.createModifiersFromModifierFlags(128)),un.checkDefined(lJ(e.name,T,t_)),void 0,void 0,void 0):t.updatePropertyDeclaration(e,i,G(e),void 0,void 0,lJ(e.initializer,T,V_))}(n,r);case 178:return te(n,r);case 179:return ne(n,r);case 175:return Z(n,r);case 176:return vJ(n,T,e);case 241:return n;case 182:return;default:return un.failBadSyntaxKind(n)}}(r,n))}function I(e){return CD(e)?void 0:T(e)}function O(e){return Zl(e)?void 0:T(e)}function L(e){if(!CD(e)&&!(28895&Hv(e.kind)||g&&95===e.kind))return e}function j(n){if(pu(n)&&Nv(n,128))return t.createNotEmittedStatement(n);switch(n.kind){case 95:case 90:return g?void 0:n;case 125:case 123:case 124:case 128:case 164:case 87:case 138:case 148:case 103:case 147:case 189:case 190:case 191:case 192:case 188:case 183:case 169:case 133:case 159:case 136:case 154:case 150:case 146:case 116:case 155:case 186:case 185:case 187:case 184:case 193:case 194:case 195:case 197:case 198:case 199:case 200:case 201:case 202:case 182:case 271:return;case 266:case 265:return t.createNotEmittedStatement(n);case 264:return function(n){const r=function(e){let t=0;$(cz(e,!0,!0))&&(t|=1);const n=yh(e);return n&&106!==NA(n.expression).kind&&(t|=64),gm(u,e)&&(t|=2),mm(u,e)&&(t|=4),he(e)?t|=8:function(e){return ye(e)&&Nv(e,2048)}(e)?t|=32:ve(e)&&(t|=16),t}(n),i=l<=1&&!!(7&r);if(!function(e){return Lv(e)||$(e.typeParameters)||$(e.heritageClauses,R)||$(e.members,R)}(n)&&!gm(u,n)&&!he(n))return t.updateClassDeclaration(n,_J(n.modifiers,L,Zl),n.name,void 0,_J(n.heritageClauses,T,tP),_J(n.members,A(n),__));i&&e.startLexicalEnvironment();const o=i||8&r;let a=_J(n.modifiers,o?O:T,g_);2&r&&(a=z(a,n));const s=o&&!n.name||4&r||1&r?n.name??t.getGeneratedNameForNode(n):n.name,c=t.updateClassDeclaration(n,a,s,void 0,_J(n.heritageClauses,T,tP),J(n));let _,d=Zd(n);if(1&r&&(d|=64),xw(c,d),i){const r=[c],i=Mb(Qa(m.text,n.members.end),20),o=t.getInternalName(n),a=t.createPartiallyEmittedExpression(o);TT(a,i.end),xw(a,3072);const s=t.createReturnStatement(a);ST(s,i.pos),xw(s,3840),r.push(s),Od(r,e.endLexicalEnvironment());const l=t.createImmediatelyInvokedArrowFunction(r);Sw(l,1);const u=t.createVariableDeclaration(t.getLocalName(n,!1,!1),void 0,void 0,l);hw(u,n);const d=t.createVariableStatement(void 0,t.createVariableDeclarationList([u],1));hw(d,n),Aw(d,n),ww(d,Lb(n)),FA(d),_=d}else _=c;if(o){if(8&r)return[_,be(n)];if(32&r)return[_,t.createExportDefault(t.getLocalName(n,!1,!0))];if(16&r)return[_,t.createExternalModuleExport(t.getDeclarationName(n,!1,!0))]}return _}(n);case 232:return function(e){let n=_J(e.modifiers,O,g_);return gm(u,e)&&(n=z(n,e)),t.updateClassExpression(e,n,e.name,void 0,_J(e.heritageClauses,T,tP),J(e))}(n);case 299:return function(t){if(119!==t.token)return vJ(t,T,e)}(n);case 234:return function(e){return t.updateExpressionWithTypeArguments(e,un.checkDefined(lJ(e.expression,T,R_)),void 0)}(n);case 211:return function(e){return t.updateObjectLiteralExpression(e,_J(e.properties,(n=e,e=>S(e,e=>function(e,t){switch(e.kind){case 304:case 305:case 306:return T(e);case 178:return te(e,t);case 179:return ne(e,t);case 175:return Z(e,t);default:return un.failBadSyntaxKind(e)}}(e,n))),v_));var n}(n);case 177:case 173:case 175:case 178:case 179:case 176:return un.fail("Class and object literal elements must be visited with their respective visitors");case 263:return function(n){if(!X(n))return t.createNotEmittedStatement(n);const r=t.updateFunctionDeclaration(n,_J(n.modifiers,L,Zl),n.asteriskToken,n.name,void 0,fJ(n.parameters,T,e),void 0,gJ(n.body,T,e)||t.createBlock([]));if(he(n)){const e=[r];return function(e,t){e.push(be(t))}(e,n),e}return r}(n);case 219:return function(n){if(!X(n))return t.createOmittedExpression();return t.updateFunctionExpression(n,_J(n.modifiers,L,Zl),n.asteriskToken,n.name,void 0,fJ(n.parameters,T,e),void 0,gJ(n.body,T,e)||t.createBlock([]))}(n);case 220:return function(n){return t.updateArrowFunction(n,_J(n.modifiers,L,Zl),void 0,fJ(n.parameters,T,e),void 0,n.equalsGreaterThanToken,gJ(n.body,T,e))}(n);case 170:return function(e){if(cv(e))return;const n=t.updateParameterDeclaration(e,_J(e.modifiers,e=>CD(e)?T(e):void 0,g_),e.dotDotDotToken,un.checkDefined(lJ(e.name,T,n_)),void 0,void 0,lJ(e.initializer,T,V_));return n!==e&&(Aw(n,e),xI(n,jb(e)),ww(n,jb(e)),xw(n.name,64)),n}(n);case 218:return function(n){const r=NA(n.expression,-55);if(W_(r)||jF(r)){const e=lJ(n.expression,T,V_);return un.assert(e),t.createPartiallyEmittedExpression(e,n)}return vJ(n,T,e)}(n);case 217:case 235:return function(e){const n=lJ(e.expression,T,V_);return un.assert(n),t.createPartiallyEmittedExpression(n,e)}(n);case 239:return function(e){const n=lJ(e.expression,T,V_);return un.assert(n),t.createPartiallyEmittedExpression(n,e)}(n);case 214:return function(e){return t.updateCallExpression(e,un.checkDefined(lJ(e.expression,T,V_)),void 0,_J(e.arguments,T,V_))}(n);case 215:return function(e){return t.updateNewExpression(e,un.checkDefined(lJ(e.expression,T,V_)),void 0,_J(e.arguments,T,V_))}(n);case 216:return function(e){return t.updateTaggedTemplateExpression(e,un.checkDefined(lJ(e.tag,T,V_)),void 0,un.checkDefined(lJ(e.template,T,M_)))}(n);case 236:return function(e){const n=lJ(e.expression,T,R_);return un.assert(n),t.createPartiallyEmittedExpression(n,e)}(n);case 267:return function(e){if(!function(e){return!tf(e)||Fk(c)}(e))return t.createNotEmittedStatement(e);const n=[];let i=4;const a=le(n,e);a&&(4===_&&y===m||(i|=1024));const s=Se(e),l=Te(e),u=he(e)?t.getExternalModuleOrNamespaceExportName(h,e,!1,!0):t.getDeclarationName(e,!1,!0);let d=t.createLogicalOr(u,t.createAssignment(u,t.createObjectLiteralExpression()));if(he(e)){const n=t.getLocalName(e,!1,!0);d=t.createAssignment(n,d)}const p=t.createExpressionStatement(t.createCallExpression(t.createFunctionExpression(void 0,void 0,void 0,void 0,[t.createParameterDeclaration(void 0,void 0,s)],void 0,function(e,n){const i=h;h=n;const a=[];r();const s=E(e.members,oe);return Od(a,o()),se(a,s),h=i,t.createBlock(xI(t.createNodeArray(a),e.members),!0)}(e,l)),void 0,[d]));return hw(p,e),a&&(Ow(p,void 0),Mw(p,void 0)),xI(p,e),kw(p,i),n.push(p),n}(n);case 244:return function(n){if(he(n)){const e=Zb(n.declarationList);if(0===e.length)return;return xI(t.createExpressionStatement(t.inlineExpressions(E(e,re))),n)}return vJ(n,T,e)}(n);case 261:return function(e){const n=t.updateVariableDeclaration(e,un.checkDefined(lJ(e.name,T,n_)),void 0,void 0,lJ(e.initializer,T,V_));return e.type&&Xw(n.name,e.type),n}(n);case 268:return _e(n);case 272:return ge(n);case 286:return function(e){return t.updateJsxSelfClosingElement(e,un.checkDefined(lJ(e.tagName,T,gu)),void 0,un.checkDefined(lJ(e.attributes,T,GE)))}(n);case 287:return function(e){return t.updateJsxOpeningElement(e,un.checkDefined(lJ(e.tagName,T,gu)),void 0,un.checkDefined(lJ(e.attributes,T,GE)))}(n);default:return vJ(n,T,e)}}function M(n){const r=Jk(c,"alwaysStrict")&&!(rO(n)&&_>=5)&&!ef(n);return t.updateSourceFile(n,pJ(n.statements,w,e,0,r))}function R(e){return!!(8192&e.transformFlags)}function J(e){const n=_J(e.members,A(e),__);let r;const i=iv(e),o=i&&N(i.parameters,e=>Zs(e,i));if(o)for(const e of o){const n=t.createPropertyDeclaration(void 0,e.name,void 0,void 0,void 0);hw(n,e),r=ie(r,n)}return r?(r=se(r,n),xI(t.createNodeArray(r),e.members)):n}function z(e,n){const r=U(n,n);if($(r)){const n=[];se(n,cn(e,lI)),se(n,N(e,CD)),se(n,r),se(n,N(ln(e,lI),Zl)),e=xI(t.createNodeArray(n),e)}return e}function q(e,n,r){if(u_(r)&&hm(u,n,r)){const i=U(n,r);if($(i)){const n=[];se(n,N(e,CD)),se(n,i),se(n,N(e,Zl)),e=xI(t.createNodeArray(n),e)}}return e}function U(e,r){if(u)return Gz?function(e,r){if(d){let i;if(V(e)&&(i=ie(i,t.createPropertyAssignment("type",t.createArrowFunction(void 0,void 0,[],void 0,t.createToken(39),d.serializeTypeOfNode({currentLexicalScope:y,currentNameScope:r},e,r))))),H(e)&&(i=ie(i,t.createPropertyAssignment("paramTypes",t.createArrowFunction(void 0,void 0,[],void 0,t.createToken(39),d.serializeParameterTypesOfNode({currentLexicalScope:y,currentNameScope:r},e,r))))),W(e)&&(i=ie(i,t.createPropertyAssignment("returnType",t.createArrowFunction(void 0,void 0,[],void 0,t.createToken(39),d.serializeReturnTypeOfNode({currentLexicalScope:y,currentNameScope:r},e))))),i){const e=n().createMetadataHelper("design:typeinfo",t.createObjectLiteralExpression(i,!0));return[t.createDecorator(e)]}}}(e,r):function(e,r){if(d){let i;if(V(e)){const o=n().createMetadataHelper("design:type",d.serializeTypeOfNode({currentLexicalScope:y,currentNameScope:r},e,r));i=ie(i,t.createDecorator(o))}if(H(e)){const o=n().createMetadataHelper("design:paramtypes",d.serializeParameterTypesOfNode({currentLexicalScope:y,currentNameScope:r},e,r));i=ie(i,t.createDecorator(o))}if(W(e)){const o=n().createMetadataHelper("design:returntype",d.serializeReturnTypeOfNode({currentLexicalScope:y,currentNameScope:r},e));i=ie(i,t.createDecorator(o))}return i}}(e,r)}function V(e){const t=e.kind;return 175===t||178===t||179===t||173===t}function W(e){return 175===e.kind}function H(e){switch(e.kind){case 264:case 232:return void 0!==iv(e);case 175:case 178:case 179:return!0}return!1}function G(e){const n=e.name;if(u&&kD(n)&&Lv(e)){const e=lJ(n.expression,T,V_);if(un.assert(e),!nz(Sl(e))){const r=t.getGeneratedNameForNode(n);return a(r),t.updateComputedPropertyName(n,t.createAssignment(r,e))}}return un.checkDefined(lJ(n,T,t_))}function X(e){return!Nd(e.body)}function Q(e,n,r,i,o,a){const s=i[o],c=n[s];if(se(e,_J(n,T,pu,r,s-r)),sE(c)){const n=[];Q(n,c.tryBlock.statements,0,i,o+1,a),xI(t.createNodeArray(n),c.tryBlock.statements),e.push(t.updateTryStatement(c,t.updateBlock(c.tryBlock,n),lJ(c.catchClause,T,nP),lJ(c.finallyBlock,T,VF)))}else se(e,_J(n,T,pu,s,1)),se(e,a);se(e,_J(n,T,pu,s+1))}function Y(e){const n=e.name;if(!aD(n))return;const r=DT(xI(t.cloneNode(n),n),n.parent);xw(r,3168);const i=DT(xI(t.cloneNode(n),n),n.parent);return xw(i,3072),FA(bw(xI(hw(t.createExpressionStatement(t.createAssignment(xI(t.createPropertyAccessExpression(t.createThis(),r),e.name),i)),e),Ob(e,-1))))}function Z(n,r){if(!(1&n.transformFlags))return n;if(!X(n))return;let i=u_(r)?_J(n.modifiers,T,g_):_J(n.modifiers,I,g_);return i=q(i,n,r),t.updateMethodDeclaration(n,i,n.asteriskToken,G(n),void 0,void 0,fJ(n.parameters,T,e),void 0,gJ(n.body,T,e))}function ee(e){return!(Nd(e.body)&&Nv(e,64))}function te(n,r){if(!(1&n.transformFlags))return n;if(!ee(n))return;let i=u_(r)?_J(n.modifiers,T,g_):_J(n.modifiers,I,g_);return i=q(i,n,r),t.updateGetAccessorDeclaration(n,i,G(n),fJ(n.parameters,T,e),void 0,gJ(n.body,T,e)||t.createBlock([]))}function ne(n,r){if(!(1&n.transformFlags))return n;if(!ee(n))return;let i=u_(r)?_J(n.modifiers,T,g_):_J(n.modifiers,I,g_);return i=q(i,n,r),t.updateSetAccessorDeclaration(n,i,G(n),fJ(n.parameters,T,e),gJ(n.body,T,e)||t.createBlock([]))}function re(n){const r=n.name;return k_(r)?Cz(n,T,e,0,!1,xe):xI(t.createAssignment(ke(r),un.checkDefined(lJ(n.initializer,T,V_))),n)}function oe(n){const r=function(e){const n=e.name;return sD(n)?t.createIdentifier(""):kD(n)?n.expression:aD(n)?t.createStringLiteral(gc(n)):t.cloneNode(n)}(n),i=s.getEnumMemberValue(n),o=function(n,r){return void 0!==r?"string"==typeof r?t.createStringLiteral(r):r<0?t.createPrefixUnaryExpression(41,t.createNumericLiteral(-r)):t.createNumericLiteral(r):(8&x||(x|=8,e.enableSubstitution(80)),n.initializer?un.checkDefined(lJ(n.initializer,T,V_)):t.createVoidZero())}(n,null==i?void 0:i.value),a=t.createAssignment(t.createElementAccessExpression(h,r),o),c="string"==typeof(null==i?void 0:i.value)||(null==i?void 0:i.isSyntacticallyString)?a:t.createAssignment(t.createElementAccessExpression(h,a),r);return xI(t.createExpressionStatement(xI(c,n)),n)}function ae(e){v||(v=new Map);const t=ce(e);v.has(t)||v.set(t,e)}function ce(e){return un.assertNode(e.name,aD),e.name.escapedText}function le(e,n){const r=t.createVariableDeclaration(t.getLocalName(n,!1,!0)),i=308===y.kind?0:1,o=t.createVariableStatement(_J(n.modifiers,L,Zl),t.createVariableDeclarationList([r],i));return hw(r,n),Ow(r,void 0),Mw(r,void 0),hw(o,n),ae(n),!!function(e){if(v){const t=ce(e);return v.get(t)===e}return!0}(n)&&(267===n.kind?ww(o.declarationList,n):ww(o,n),Aw(o,n),kw(o,2048),e.push(o),!0)}function _e(n){if(!function(e){const t=pc(e,gE);return!t||tJ(t,Fk(c))}(n))return t.createNotEmittedStatement(n);un.assertNode(n.name,aD,"A TypeScript namespace should have an Identifier name."),2&x||(x|=2,e.enableSubstitution(80),e.enableSubstitution(305),e.enableEmitNotification(268));const i=[];let a=4;const s=le(i,n);s&&(4===_&&y===m||(a|=1024));const l=Se(n),u=Te(n),d=he(n)?t.getExternalModuleOrNamespaceExportName(h,n,!1,!0):t.getDeclarationName(n,!1,!0);let p=t.createLogicalOr(d,t.createAssignment(d,t.createObjectLiteralExpression()));if(he(n)){const e=t.getLocalName(n,!1,!0);p=t.createAssignment(e,p)}const f=t.createExpressionStatement(t.createCallExpression(t.createFunctionExpression(void 0,void 0,void 0,void 0,[t.createParameterDeclaration(void 0,void 0,l)],void 0,function(e,n){const i=h,a=g,s=v;h=n,g=e,v=void 0;const c=[];let l,_;if(r(),e.body)if(269===e.body.kind)S(e.body,e=>se(c,_J(e.statements,F,pu))),l=e.body.statements,_=e.body;else{const t=_e(e.body);t&&(Qe(t)?se(c,t):c.push(t)),l=Ob(ue(e).body.statements,-1)}Od(c,o()),h=i,g=a,v=s;const u=t.createBlock(xI(t.createNodeArray(c),l),!0);return xI(u,_),e.body&&269===e.body.kind||xw(u,3072|Zd(u)),u}(n,u)),void 0,[p]));return hw(f,n),s&&(Ow(f,void 0),Mw(f,void 0)),xI(f,n),kw(f,a),i.push(f),i}function ue(e){if(268===e.body.kind)return ue(e.body)||e.body}function de(e){un.assert(156!==e.phaseModifier);const n=we(e)?e.name:void 0,r=lJ(e.namedBindings,pe,iu);return n||r?t.updateImportClause(e,e.phaseModifier,n,r):void 0}function pe(e){if(275===e.kind)return we(e)?e:void 0;{const n=c.verbatimModuleSyntax,r=_J(e.elements,fe,PE);return n||$(r)?t.updateNamedImports(e,r):void 0}}function fe(e){return!e.isTypeOnly&&we(e)?e:void 0}function me(e){return e.isTypeOnly||!c.verbatimModuleSyntax&&!s.isValueAliasDeclaration(e)?void 0:e}function ge(n){if(n.isTypeOnly)return;if(Tm(n)){if(!we(n))return;return vJ(n,T,e)}if(!function(e){return we(e)||!rO(m)&&s.isTopLevelValueImportEqualsWithEntityName(e)}(n))return;const r=dA(t,n.moduleReference);return xw(r,7168),ve(n)||!he(n)?hw(xI(t.createVariableStatement(_J(n.modifiers,L,Zl),t.createVariableDeclarationList([hw(t.createVariableDeclaration(n.name,void 0,void 0,r),n)])),n),n):hw((i=n.name,o=r,a=n,xI(t.createExpressionStatement(t.createAssignment(t.getNamespaceMemberName(h,i,!1,!0),o)),a)),n);var i,o,a}function he(e){return void 0!==g&&Nv(e,32)}function ye(e){return void 0===g&&Nv(e,32)}function ve(e){return ye(e)&&!Nv(e,2048)}function be(e){const n=t.createAssignment(t.getExternalModuleOrNamespaceExportName(h,e,!1,!0),t.getLocalName(e));ww(n,Ab(e.name?e.name.pos:e.pos,e.end));const r=t.createExpressionStatement(n);return ww(r,Ab(-1,e.end)),r}function xe(e,n,r){return xI(t.createAssignment(ke(e),n),r)}function ke(e){return t.getNamespaceMemberName(h,e,!1,!0)}function Se(e){const n=t.getGeneratedNameForNode(e);return ww(n,e.name),n}function Te(e){return t.getGeneratedNameForNode(e)}function Ce(e){if(x&b&&!Wl(e)&&!hA(e)){const n=s.getReferencedExportContainer(e,!1);if(n&&308!==n.kind&&(2&b&&268===n.kind||8&b&&267===n.kind))return xI(t.createPropertyAccessExpression(t.getGeneratedNameForNode(n),e),e)}}function we(e){return c.verbatimModuleSyntax||Em(e)||s.isReferencedAliasDeclaration(e)}}function Qz(e){const{factory:t,getEmitHelperFactory:n,hoistVariableDeclaration:r,endLexicalEnvironment:i,startLexicalEnvironment:o,resumeLexicalEnvironment:a,addBlockScopedVariable:s}=e,c=e.getEmitResolver(),l=e.getCompilerOptions(),_=yk(l),u=Ik(l),d=!!l.experimentalDecorators,p=!u,f=u&&_<9,m=p||f,g=_<9,h=_<99?-1:u?0:3,y=_<9,v=y&&_>=2,x=m||g||-1===h,k=e.onSubstituteNode;e.onSubstituteNode=function(e,n){return n=k(e,n),1===e?function(e){switch(e.kind){case 80:return function(e){return function(e){if(1&P&&c.hasNodeCheckFlag(e,536870912)){const n=c.getReferencedValueDeclaration(e);if(n){const r=T[n.id];if(r){const n=t.cloneNode(r);return ww(n,e),Aw(n,e),n}}}}(e)||e}(e);case 110:return function(e){if(2&P&&(null==D?void 0:D.data)&&!I.has(e)){const{facts:n,classConstructor:r,classThis:i}=D.data,o=j?i??r:r;if(o)return xI(hw(t.cloneNode(o),e),e);if(1&n&&d)return t.createParenthesizedExpression(t.createVoidZero())}return e}(e)}return e}(n):n};const S=e.onEmitNode;e.onEmitNode=function(e,t,n){const r=_c(t),i=A.get(r);if(i){const o=D,a=M;return D=i,M=j,j=!(ED(r)&&32&ep(r)),S(e,t,n),j=M,M=a,void(D=o)}switch(t.kind){case 219:if(bF(r)||524288&Zd(t))break;case 263:case 177:case 178:case 179:case 175:case 173:{const r=D,i=M;return D=void 0,M=j,j=!1,S(e,t,n),j=M,M=i,void(D=r)}case 168:{const r=D,i=j;return D=null==D?void 0:D.previous,j=M,S(e,t,n),j=i,void(D=r)}}S(e,t,n)};let T,C,w,D,F=!1,P=0;const A=new Map,I=new Set;let O,L,j=!1,M=!1;return $J(e,function(t){if(t.isDeclarationFile)return t;if(D=void 0,F=!!(32&ep(t)),!x&&!F)return t;const n=vJ(t,B,e);return Uw(n,e.readEmitHelpers()),n});function R(e){return 129===e.kind?ee()?void 0:e:tt(e,Zl)}function B(n){if(!(16777216&n.transformFlags||134234112&n.transformFlags))return n;switch(n.kind){case 264:return function(e){return ge(e,he)}(n);case 232:return function(e){return ge(e,ye)}(n);case 176:case 173:return un.fail("Use `classElementVisitor` instead.");case 304:case 261:case 170:case 209:return function(t){return Gh(t,ue)&&(t=Vz(e,t)),vJ(t,B,e)}(n);case 244:return function(t){const n=w;w=[];const r=vJ(t,B,e),i=$(w)?[r,...w]:r;return w=n,i}(n);case 278:return function(t){return Gh(t,ue)&&(t=Vz(e,t,!0,t.isExportEquals?"":"default")),vJ(t,B,e)}(n);case 81:return function(e){return g?pu(e.parent)?e:hw(t.createIdentifier(""),e):e}(n);case 212:return function(n){if(sD(n.name)){const e=je(n.name);if(e)return xI(hw(oe(e,n.expression),n),n)}if(v&&L&&am(n)&&aD(n.name)&&Yz(L)&&(null==D?void 0:D.data)){const{classConstructor:e,superClassReference:r,facts:i}=D.data;if(1&i)return Ne(n);if(e&&r){const i=t.createReflectGetCall(r,t.createStringLiteralFromNode(n.name),e);return hw(i,n.expression),xI(i,n.expression),i}}return vJ(n,B,e)}(n);case 213:return function(n){if(v&&L&&am(n)&&Yz(L)&&(null==D?void 0:D.data)){const{classConstructor:e,superClassReference:r,facts:i}=D.data;if(1&i)return Ne(n);if(e&&r){const i=t.createReflectGetCall(r,lJ(n.argumentExpression,B,V_),e);return hw(i,n.expression),xI(i,n.expression),i}}return vJ(n,B,e)}(n);case 225:case 226:return ce(n,!1);case 227:return de(n,!1);case 218:return pe(n,!1);case 214:return function(n){var i;if(Gl(n.expression)&&je(n.expression.name)){const{thisArg:e,target:i}=t.createCallBinding(n.expression,r,_);return gl(n)?t.updateCallChain(n,t.createPropertyAccessChain(lJ(i,B,V_),n.questionDotToken,"call"),void 0,void 0,[lJ(e,B,V_),..._J(n.arguments,B,V_)]):t.updateCallExpression(n,t.createPropertyAccessExpression(lJ(i,B,V_),"call"),void 0,[lJ(e,B,V_),..._J(n.arguments,B,V_)])}if(v&&L&&am(n.expression)&&Yz(L)&&(null==(i=null==D?void 0:D.data)?void 0:i.classConstructor)){const e=t.createFunctionCallCall(lJ(n.expression,B,V_),D.data.classConstructor,_J(n.arguments,B,V_));return hw(e,n),xI(e,n),e}return vJ(n,B,e)}(n);case 245:return function(e){return t.updateExpressionStatement(e,lJ(e.expression,z,V_))}(n);case 216:return function(n){var i;if(Gl(n.tag)&&je(n.tag.name)){const{thisArg:e,target:i}=t.createCallBinding(n.tag,r,_);return t.updateTaggedTemplateExpression(n,t.createCallExpression(t.createPropertyAccessExpression(lJ(i,B,V_),"bind"),void 0,[lJ(e,B,V_)]),void 0,lJ(n.template,B,M_))}if(v&&L&&am(n.tag)&&Yz(L)&&(null==(i=null==D?void 0:D.data)?void 0:i.classConstructor)){const e=t.createFunctionBindCall(lJ(n.tag,B,V_),D.data.classConstructor,[]);return hw(e,n),xI(e,n),t.updateTaggedTemplateExpression(n,e,void 0,lJ(n.template,B,M_))}return vJ(n,B,e)}(n);case 249:return function(n){return t.updateForStatement(n,lJ(n.initializer,z,eu),lJ(n.condition,B,V_),lJ(n.incrementor,z,V_),hJ(n.statement,B,e))}(n);case 110:return function(e){if(y&&L&&ED(L)&&(null==D?void 0:D.data)){const{classThis:t,classConstructor:n}=D.data;return t??n??e}return e}(n);case 263:case 219:return Y(void 0,J,n);case 177:case 175:case 178:case 179:return Y(n,J,n);default:return J(n)}}function J(t){return vJ(t,B,e)}function z(e){switch(e.kind){case 225:case 226:return ce(e,!0);case 227:return de(e,!0);case 357:return function(e){const n=yJ(e.elements,z);return t.updateCommaListExpression(e,n)}(e);case 218:return pe(e,!0);default:return B(e)}}function q(n){switch(n.kind){case 299:return vJ(n,q,e);case 234:return function(n){var i;if(4&((null==(i=null==D?void 0:D.data)?void 0:i.facts)||0)){const e=t.createTempVariable(r,!0);return De().superClassReference=e,t.updateExpressionWithTypeArguments(n,t.createAssignment(e,lJ(n.expression,B,V_)),void 0)}return vJ(n,B,e)}(n);default:return B(n)}}function U(e){switch(e.kind){case 211:case 210:return ze(e);default:return B(e)}}function V(e){switch(e.kind){case 177:return Y(e,G,e);case 178:case 179:case 175:return Y(e,Q,e);case 173:return Y(e,te,e);case 176:return Y(e,ve,e);case 168:return K(e);case 241:return e;default:return g_(e)?R(e):B(e)}}function W(e){return 168===e.kind?K(e):B(e)}function H(e){switch(e.kind){case 173:return Z(e);case 178:case 179:return V(e);default:un.assertMissingNode(e,"Expected node to either be a PropertyDeclaration, GetAccessorDeclaration, or SetAccessorDeclaration")}}function K(e){const n=lJ(e.expression,B,V_);return t.updateComputedPropertyName(e,function(e){return $(C)&&(yF(e)?(C.push(e.expression),e=t.updateParenthesizedExpression(e,t.inlineExpressions(C))):(C.push(e),e=t.inlineExpressions(C)),C=void 0),e}(n))}function G(e){return O?xe(e,O):J(e)}function X(e){return!!g||!!(Fv(e)&&32&ep(e))}function Q(n){if(un.assert(!Lv(n)),!Kl(n)||!X(n))return vJ(n,V,e);const r=je(n.name);if(un.assert(r,"Undeclared private name for property declaration."),!r.isValid)return n;const i=function(e){un.assert(sD(e.name));const t=je(e.name);if(un.assert(t,"Undeclared private name for property declaration."),"m"===t.kind)return t.methodName;if("a"===t.kind){if(Nu(e))return t.getterName;if(wu(e))return t.setterName}}(n);i&&Ee().push(t.createAssignment(i,t.createFunctionExpression(N(n.modifiers,e=>Zl(e)&&!fD(e)&&!hD(e)),n.asteriskToken,i,void 0,fJ(n.parameters,B,e),void 0,gJ(n.body,B,e))))}function Y(e,t,n){if(e!==L){const r=L;L=e;const i=t(n);return L=r,i}return t(n)}function Z(n){return un.assert(!Lv(n),"Decorators should already have been transformed and elided."),Kl(n)?function(n){if(X(n)){const e=je(n.name);if(un.assert(e,"Undeclared private name for property declaration."),!e.isValid)return n;if(e.isStatic&&!g){const e=Te(n,t.createThis());if(e)return t.createClassStaticBlockDeclaration(t.createBlock([e],!0))}return}return p&&!Dv(n)&&(null==D?void 0:D.data)&&16&D.data.facts?t.updatePropertyDeclaration(n,_J(n.modifiers,B,g_),n.name,void 0,void 0,void 0):(Gh(n,ue)&&(n=Vz(e,n)),t.updatePropertyDeclaration(n,_J(n.modifiers,R,Zl),lJ(n.name,W,t_),void 0,void 0,lJ(n.initializer,B,V_)))}(n):function(e){if(m&&!p_(e)){const n=function(e,n){if(kD(e)){const i=hI(e),o=lJ(e.expression,B,V_),a=Sl(o),l=nz(a);if(!(i||rb(a)&&Wl(a.left))&&!l&&n){const n=t.getGeneratedNameForNode(e);return c.hasNodeCheckFlag(e,32768)?s(n):r(n),t.createAssignment(n,o)}return l||aD(a)?void 0:o}}(e.name,!!e.initializer||u);if(n&&Ee().push(...vI(n)),Dv(e)&&!g){const n=Te(e,t.createThis());if(n){const r=t.createClassStaticBlockDeclaration(t.createBlock([n]));return hw(r,e),Aw(r,e),Aw(n,{pos:-1,end:-1}),Ow(n,void 0),Mw(n,void 0),r}}return}return t.updatePropertyDeclaration(e,_J(e.modifiers,R,Zl),lJ(e.name,W,t_),void 0,void 0,lJ(e.initializer,B,V_))}(n)}function ee(){return-1===h||3===h&&!!(null==D?void 0:D.data)&&!!(16&D.data.facts)}function te(e){return p_(e)&&(ee()||Fv(e)&&32&ep(e))?function(e){const n=Pw(e),i=Cw(e),o=e.name;let a=o,s=o;if(kD(o)&&!nz(o.expression)){const e=hI(o);if(e)a=t.updateComputedPropertyName(o,lJ(o.expression,B,V_)),s=t.updateComputedPropertyName(o,e.left);else{const e=t.createTempVariable(r);ww(e,o.expression);const n=lJ(o.expression,B,V_),i=t.createAssignment(e,n);ww(i,o.expression),a=t.updateComputedPropertyName(o,i),s=t.updateComputedPropertyName(o,e)}}const c=_J(e.modifiers,R,Zl),l=fI(t,e,c,e.initializer);hw(l,e),xw(l,3072),ww(l,i);const _=Dv(e)?function(){const e=De();return e.classThis??e.classConstructor??(null==O?void 0:O.name)}()??t.createThis():t.createThis(),u=mI(t,e,c,a,_);hw(u,e),Aw(u,n),ww(u,i);const d=t.createModifiersFromModifierFlags($v(c)),p=gI(t,e,d,s,_);return hw(p,e),xw(p,3072),ww(p,i),uJ([l,u,p],H,__)}(e):Z(e)}function re(e){if(L&&Fv(L)&&d_(L)&&p_(_c(L))){const t=NA(e);110===t.kind&&I.add(t)}}function oe(e,t){return re(t=lJ(t,B,V_)),ae(e,t)}function ae(e,t){switch(Aw(t,Ob(t,-1)),e.kind){case"a":return n().createClassPrivateFieldGetHelper(t,e.brandCheckIdentifier,e.kind,e.getterName);case"m":return n().createClassPrivateFieldGetHelper(t,e.brandCheckIdentifier,e.kind,e.methodName);case"f":return n().createClassPrivateFieldGetHelper(t,e.brandCheckIdentifier,e.kind,e.isStatic?e.variableName:void 0);case"untransformed":return un.fail("Access helpers should not be created for untransformed private elements");default:un.assertNever(e,"Unknown private element type")}}function ce(n,i){if(46===n.operator||47===n.operator){const e=ah(n.operand);if(Gl(e)){let o;if(o=je(e.name)){const a=lJ(e.expression,B,V_);re(a);const{readExpression:s,initializeExpression:c}=le(a);let l=oe(o,s);const _=CF(n)||i?void 0:t.createTempVariable(r);return l=mA(t,n,l,r,_),l=fe(o,c||s,l,64),hw(l,n),xI(l,n),_&&(l=t.createComma(l,_),xI(l,n)),l}}else if(v&&L&&am(e)&&Yz(L)&&(null==D?void 0:D.data)){const{classConstructor:o,superClassReference:a,facts:s}=D.data;if(1&s){const r=Ne(e);return CF(n)?t.updatePrefixUnaryExpression(n,r):t.updatePostfixUnaryExpression(n,r)}if(o&&a){let s,c;if(dF(e)?aD(e.name)&&(c=s=t.createStringLiteralFromNode(e.name)):nz(e.argumentExpression)?c=s=e.argumentExpression:(c=t.createTempVariable(r),s=t.createAssignment(c,lJ(e.argumentExpression,B,V_))),s&&c){let l=t.createReflectGetCall(a,c,o);xI(l,e);const _=i?void 0:t.createTempVariable(r);return l=mA(t,n,l,r,_),l=t.createReflectSetCall(a,s,l,o),hw(l,n),xI(l,n),_&&(l=t.createComma(l,_),xI(l,n)),l}}}}return vJ(n,B,e)}function le(e){const n=ey(e)?e:t.cloneNode(e);if(110===e.kind&&I.has(e)&&I.add(n),nz(e))return{readExpression:n,initializeExpression:void 0};const i=t.createTempVariable(r);return{readExpression:i,initializeExpression:t.createAssignment(i,n)}}function _e(e){if(D&&A.set(_c(e),D),g){if(Oz(e)){const t=lJ(e.body.statements[0].expression,B,V_);if(rb(t,!0)&&t.left===t.right)return;return t}if(Bz(e))return lJ(e.body.statements[0].expression,B,V_);o();let n=Y(e,e=>_J(e,B,pu),e.body.statements);n=t.mergeLexicalEnvironment(n,i());const r=t.createImmediatelyInvokedArrowFunction(n);return hw(ah(r.expression),e),kw(ah(r.expression),4),hw(r,e),xI(r,e),r}}function ue(e){if(AF(e)&&!e.name){const t=_z(e);return!$(t,Bz)&&((g||!!ep(e))&&$(t,e=>ED(e)||Kl(e)||m&&uz(e)))}return!1}function de(i,o){if(ib(i)){const e=C;C=void 0,i=t.updateBinaryExpression(i,lJ(i.left,U,V_),i.operatorToken,lJ(i.right,B,V_));const n=$(C)?t.inlineExpressions(ne([...C,i])):i;return C=e,n}if(rb(i)){Gh(i,ue)&&(i=Vz(e,i),un.assertNode(i,rb));const n=NA(i.left,9);if(Gl(n)){const e=je(n.name);if(e)return xI(hw(fe(e,n.expression,i.right,i.operatorToken.kind),i),i)}else if(v&&L&&am(i.left)&&Yz(L)&&(null==D?void 0:D.data)){const{classConstructor:e,superClassReference:n,facts:a}=D.data;if(1&a)return t.updateBinaryExpression(i,Ne(i.left),i.operatorToken,lJ(i.right,B,V_));if(e&&n){let a=pF(i.left)?lJ(i.left.argumentExpression,B,V_):aD(i.left.name)?t.createStringLiteralFromNode(i.left.name):void 0;if(a){let s=lJ(i.right,B,V_);if(rz(i.operatorToken.kind)){let o=a;nz(a)||(o=t.createTempVariable(r),a=t.createAssignment(o,a));const c=t.createReflectGetCall(n,o,e);hw(c,i.left),xI(c,i.left),s=t.createBinaryExpression(c,iz(i.operatorToken.kind),s),xI(s,i)}const c=o?void 0:t.createTempVariable(r);return c&&(s=t.createAssignment(c,s),xI(c,i)),s=t.createReflectSetCall(n,a,s,e),hw(s,i),xI(s,i),c&&(s=t.createComma(s,c),xI(s,i)),s}}}}return function(e){return sD(e.left)&&103===e.operatorToken.kind}(i)?function(t){const r=je(t.left);if(r){const e=lJ(t.right,B,V_);return hw(n().createClassPrivateFieldInHelper(r.brandCheckIdentifier,e),t)}return vJ(t,B,e)}(i):vJ(i,B,e)}function pe(e,n){const r=n?z:B,i=lJ(e.expression,r,V_);return t.updateParenthesizedExpression(e,i)}function fe(e,r,i,o){if(r=lJ(r,B,V_),i=lJ(i,B,V_),re(r),rz(o)){const{readExpression:n,initializeExpression:a}=le(r);r=a||n,i=t.createBinaryExpression(ae(e,n),iz(o),i)}switch(Aw(r,Ob(r,-1)),e.kind){case"a":return n().createClassPrivateFieldSetHelper(r,e.brandCheckIdentifier,i,e.kind,e.setterName);case"m":return n().createClassPrivateFieldSetHelper(r,e.brandCheckIdentifier,i,e.kind,void 0);case"f":return n().createClassPrivateFieldSetHelper(r,e.brandCheckIdentifier,i,e.kind,e.isStatic?e.variableName:void 0);case"untransformed":return un.fail("Access helpers should not be created for untransformed private elements");default:un.assertNever(e,"Unknown private element type")}}function me(e){return N(e.members,dz)}function ge(n,r){var i;const o=O,a=C,s=D;O=n,C=void 0,D={previous:D,data:void 0};const l=32&ep(n);if(g||l){const e=Cc(n);if(e&&aD(e))Fe().data.className=e;else if((null==(i=n.emitNode)?void 0:i.assignedName)&&UN(n.emitNode.assignedName))if(n.emitNode.assignedName.textSourceNode&&aD(n.emitNode.assignedName.textSourceNode))Fe().data.className=n.emitNode.assignedName.textSourceNode;else if(ms(n.emitNode.assignedName.text,_)){const e=t.createIdentifier(n.emitNode.assignedName.text);Fe().data.className=e}}if(g){const e=me(n);$(e)&&(Fe().data.weakSetName=Oe("instances",e[0].name))}const u=function(e){var t;let n=0;const r=_c(e);u_(r)&&gm(d,r)&&(n|=1),g&&(Lz(e)||Jz(e))&&(n|=2);let i=!1,o=!1,a=!1,s=!1;for(const r of e.members)Dv(r)?(r.name&&(sD(r.name)||p_(r))&&g?n|=2:!p_(r)||-1!==h||e.name||(null==(t=e.emitNode)?void 0:t.classThis)||(n|=2),(ND(r)||ED(r))&&(y&&16384&r.transformFlags&&(n|=8,1&n||(n|=2)),v&&134217728&r.transformFlags&&(1&n||(n|=6)))):Pv(_c(r))||(p_(r)?(s=!0,a||(a=Kl(r))):Kl(r)?(a=!0,c.hasNodeCheckFlag(r,262144)&&(n|=2)):ND(r)&&(i=!0,o||(o=!!r.initializer)));return(f&&i||p&&o||g&&a||g&&s&&-1===h)&&(n|=16),n}(n);u&&(De().facts=u),8&u&&(2&P||(P|=2,e.enableSubstitution(110),e.enableEmitNotification(263),e.enableEmitNotification(219),e.enableEmitNotification(177),e.enableEmitNotification(178),e.enableEmitNotification(179),e.enableEmitNotification(175),e.enableEmitNotification(173),e.enableEmitNotification(168)));const m=r(n,u);return D=null==D?void 0:D.previous,un.assert(D===s),O=o,C=a,m}function he(e,n){var i,o;let a;if(2&n)if(g&&(null==(i=e.emitNode)?void 0:i.classThis))De().classConstructor=e.emitNode.classThis,a=t.createAssignment(e.emitNode.classThis,t.getInternalName(e));else{const n=t.createTempVariable(r,!0);De().classConstructor=t.cloneNode(n),a=t.createAssignment(n,t.getInternalName(e))}(null==(o=e.emitNode)?void 0:o.classThis)&&(De().classThis=e.emitNode.classThis);const s=c.hasNodeCheckFlag(e,262144),l=Nv(e,32),_=Nv(e,2048);let u=_J(e.modifiers,R,Zl);const d=_J(e.heritageClauses,q,tP),{members:f,prologue:m}=be(e),h=[];if(a&&Ee().unshift(a),$(C)&&h.push(t.createExpressionStatement(t.inlineExpressions(C))),p||g||32&ep(e)){const n=_z(e);$(n)&&Se(h,n,t.getInternalName(e))}h.length>0&&l&&_&&(u=_J(u,e=>lI(e)?void 0:e,Zl),h.push(t.createExportAssignment(void 0,!1,t.getLocalName(e,!1,!0))));const y=De().classConstructor;s&&y&&(we(),T[UJ(e)]=y);const v=t.updateClassDeclaration(e,u,e.name,void 0,d,f);return h.unshift(v),m&&h.unshift(t.createExpressionStatement(m)),h}function ye(e,n){var i,o,a;const l=!!(1&n),_=_z(e),u=c.hasNodeCheckFlag(e,262144),d=c.hasNodeCheckFlag(e,32768);let p;function f(){var n;if(g&&(null==(n=e.emitNode)?void 0:n.classThis))return De().classConstructor=e.emitNode.classThis;const i=t.createTempVariable(d?s:r,!0);return De().classConstructor=t.cloneNode(i),i}(null==(i=e.emitNode)?void 0:i.classThis)&&(De().classThis=e.emitNode.classThis),2&n&&(p??(p=f()));const h=_J(e.modifiers,R,Zl),y=_J(e.heritageClauses,q,tP),{members:v,prologue:b}=be(e),x=t.updateClassExpression(e,h,e.name,void 0,y,v),k=[];if(b&&k.push(b),(g||32&ep(e))&&$(_,e=>ED(e)||Kl(e)||m&&uz(e))||$(C))if(l)un.assertIsDefined(w,"Decorated classes transformed by TypeScript are expected to be within a variable declaration."),$(C)&&se(w,E(C,t.createExpressionStatement)),$(_)&&Se(w,_,(null==(o=e.emitNode)?void 0:o.classThis)??t.getInternalName(e)),p?k.push(t.createAssignment(p,x)):g&&(null==(a=e.emitNode)?void 0:a.classThis)?k.push(t.createAssignment(e.emitNode.classThis,x)):k.push(x);else{if(p??(p=f()),u){we();const n=t.cloneNode(p);n.emitNode.autoGenerate.flags&=-9,T[UJ(e)]=n}k.push(t.createAssignment(p,x)),se(k,C),se(k,function(e,t){const n=[];for(const r of e){const e=ED(r)?Y(r,_e,r):Y(r,()=>Ce(r,t),void 0);e&&(FA(e),hw(e,r),kw(e,3072&Zd(r)),ww(e,jb(r)),Aw(e,r),n.push(e))}return n}(_,p)),k.push(t.cloneNode(p))}else k.push(x);return k.length>1&&(kw(x,131072),k.forEach(FA)),t.inlineExpressions(k)}function ve(t){if(!g)return vJ(t,B,e)}function be(e){const n=!!(32&ep(e));if(g||F){for(const t of e.members)Kl(t)&&(X(t)?Ie(t,t.name,Pe):vz(Fe(),t.name,{kind:"untransformed"}));if(g&&$(me(e))&&function(){const{weakSetName:e}=Fe().data;un.assert(e,"weakSetName should be set in private identifier environment"),Ee().push(t.createAssignment(e,t.createNewExpression(t.createIdentifier("WeakSet"),void 0,[])))}(),ee())for(const r of e.members)if(p_(r)){const e=t.getGeneratedPrivateNameForNode(r.name,void 0,"_accessor_storage");g||n&&Fv(r)?Ie(r,e,Ae):vz(Fe(),e,{kind:"untransformed"})}}let i,o,a,s=_J(e.members,V,__);if($(s,PD)||(i=xe(void 0,e)),!g&&$(C)){let e=t.createExpressionStatement(t.inlineExpressions(C));if(134234112&e.transformFlags){const n=t.createTempVariable(r),i=t.createArrowFunction(void 0,void 0,[],void 0,void 0,t.createBlock([e]));o=t.createAssignment(n,i),e=t.createExpressionStatement(t.createCallExpression(n,void 0,[]))}const n=t.createBlock([e]);a=t.createClassStaticBlockDeclaration(n),C=void 0}if(i||a){let n;const r=b(s,Oz),o=b(s,Bz);n=ie(n,r),n=ie(n,o),n=ie(n,i),n=ie(n,a),n=se(n,r||o?N(s,e=>e!==r&&e!==o):s),s=xI(t.createNodeArray(n),e.members)}return{members:s,prologue:o}}function xe(n,r){if(n=lJ(n,B,PD),!((null==D?void 0:D.data)&&16&D.data.facts))return n;const o=yh(r),s=!(!o||106===NA(o.expression).kind),c=fJ(n?n.parameters:void 0,B,e),l=function(n,r,o){var s;const c=cz(n,!1,!1);let l=c;u||(l=N(l,e=>!!e.initializer||sD(e.name)||Iv(e)));const _=me(n),d=$(l)||$(_);if(!r&&!d)return gJ(void 0,B,e);a();const p=!r&&o;let f=0,m=[];const h=[],y=t.createThis();if(function(e,n,r){if(!g||!$(n))return;const{weakSetName:i}=Fe().data;un.assert(i,"weakSetName should be set in private identifier environment"),e.push(t.createExpressionStatement(function(e,t,n){return e.createCallExpression(e.createPropertyAccessExpression(n,"add"),void 0,[t])}(t,r,i)))}(h,_,y),r){const e=N(c,e=>Zs(_c(e),r)),t=N(l,e=>!Zs(_c(e),r));Se(h,e,y),Se(h,t,y)}else Se(h,l,y);if(null==r?void 0:r.body){f=t.copyPrologue(r.body.statements,m,!1,B);const e=sz(r.body.statements,f);if(e.length)ke(m,r.body.statements,f,e,0,h,r);else{for(;f=m.length?r.body.multiLine??m.length>0:m.length>0;return xI(t.createBlock(xI(t.createNodeArray(m),(null==(s=null==r?void 0:r.body)?void 0:s.statements)??n.members),v),null==r?void 0:r.body)}(r,n,s);return l?n?(un.assert(c),t.updateConstructorDeclaration(n,void 0,c,l)):FA(hw(xI(t.createConstructorDeclaration(void 0,c??[],l),n||r),n)):n}function ke(e,n,r,i,o,a,s){const c=i[o],l=n[c];if(se(e,_J(n,B,pu,r,c-r)),r=c+1,sE(l)){const n=[];ke(n,l.tryBlock.statements,0,i,o+1,a,s),xI(t.createNodeArray(n),l.tryBlock.statements),e.push(t.updateTryStatement(l,t.updateBlock(l.tryBlock,n),lJ(l.catchClause,B,nP),lJ(l.finallyBlock,B,VF)))}else{for(se(e,_J(n,B,pu,c,1));rl(e,p,t),serializeTypeOfNode:(e,t,n)=>l(e,_,t,n),serializeParameterTypesOfNode:(e,t,n)=>l(e,u,t,n),serializeReturnTypeOfNode:(e,t)=>l(e,d,t)};function l(e,t,n,r){const i=s,o=c;s=e.currentLexicalScope,c=e.currentNameScope;const a=void 0===r?t(n):t(n,r);return s=i,c=o,a}function _(e,n){switch(e.kind){case 173:case 170:return p(e.type);case 179:case 178:return p(function(e,t){const n=pv(t.members,e);return n.setAccessor&&av(n.setAccessor)||n.getAccessor&&gv(n.getAccessor)}(e,n));case 264:case 232:case 175:return t.createIdentifier("Function");default:return t.createVoidZero()}}function u(e,n){const r=u_(e)?iv(e):r_(e)&&Dd(e.body)?e:void 0,i=[];if(r){const e=function(e,t){if(t&&178===e.kind){const{setAccessor:n}=pv(t.members,e);if(n)return n.parameters}return e.parameters}(r,n),t=e.length;for(let r=0;re.parent&&XD(e.parent)&&(e.parent.trueType===e||e.parent.falseType===e)))return t.createIdentifier("Object");const r=y(e.typeName),o=t.createTempVariable(n);return t.createConditionalExpression(t.createTypeCheck(t.createAssignment(o,r),"function"),void 0,o,void 0,t.createIdentifier("Object"));case 1:return v(e.typeName);case 2:return t.createVoidZero();case 4:return b("BigInt",7);case 6:return t.createIdentifier("Boolean");case 3:return t.createIdentifier("Number");case 5:return t.createIdentifier("String");case 7:return t.createIdentifier("Array");case 8:return b("Symbol",2);case 10:return t.createIdentifier("Function");case 9:return t.createIdentifier("Promise");case 11:return t.createIdentifier("Object");default:return un.assertNever(i)}}(e);case 194:return m(e.types,!0);case 193:return m(e.types,!1);case 195:return m([e.trueType,e.falseType],!1);case 199:if(148===e.operator)return p(e.type);break;case 187:case 200:case 201:case 188:case 133:case 159:case 198:case 206:case 313:case 314:case 318:case 319:case 320:break;case 315:case 316:case 317:return p(e.type);default:return un.failBadSyntaxKind(e)}return t.createIdentifier("Object")}function f(e){switch(e.kind){case 11:case 15:return t.createIdentifier("String");case 225:{const t=e.operand;switch(t.kind){case 9:case 10:return f(t);default:return un.failBadSyntaxKind(t)}}case 9:return t.createIdentifier("Number");case 10:return b("BigInt",7);case 112:case 97:return t.createIdentifier("Boolean");case 106:return t.createVoidZero();default:return un.failBadSyntaxKind(e)}}function m(e,n){let r;for(let i of e){if(i=oh(i),146===i.kind){if(n)return t.createVoidZero();continue}if(159===i.kind){if(!n)return t.createIdentifier("Object");continue}if(133===i.kind)return t.createIdentifier("Object");if(!a&&(rF(i)&&106===i.literal.kind||157===i.kind))continue;const e=p(i);if(aD(e)&&"Object"===e.escapedText)return e;if(r){if(!g(r,e))return t.createIdentifier("Object")}else r=e}return r??t.createVoidZero()}function g(e,t){return Wl(e)?Wl(t):aD(e)?aD(t)&&e.escapedText===t.escapedText:dF(e)?dF(t)&&g(e.expression,t.expression)&&g(e.name,t.name):SF(e)?SF(t)&&zN(e.expression)&&"0"===e.expression.text&&zN(t.expression)&&"0"===t.expression.text:UN(e)?UN(t)&&e.text===t.text:kF(e)?kF(t)&&g(e.expression,t.expression):yF(e)?yF(t)&&g(e.expression,t.expression):DF(e)?DF(t)&&g(e.condition,t.condition)&&g(e.whenTrue,t.whenTrue)&&g(e.whenFalse,t.whenFalse):!!NF(e)&&NF(t)&&e.operatorToken.kind===t.operatorToken.kind&&g(e.left,t.left)&&g(e.right,t.right)}function h(e,n){return t.createLogicalAnd(t.createStrictInequality(t.createTypeOfExpression(e),t.createStringLiteral("undefined")),n)}function y(e){if(80===e.kind){const t=v(e);return h(t,t)}if(80===e.left.kind)return h(v(e.left),v(e));const r=y(e.left),i=t.createTempVariable(n);return t.createLogicalAnd(t.createLogicalAnd(r.left,t.createStrictInequality(t.createAssignment(i,r.right),t.createVoidZero())),t.createPropertyAccessExpression(i,e.right))}function v(e){switch(e.kind){case 80:const n=DT(xI(CI.cloneNode(e),e),e.parent);return n.original=void 0,DT(n,pc(s)),n;case 167:return function(e){return t.createPropertyAccessExpression(v(e.left),e.right)}(e)}}function b(e,n){return olI(e)||CD(e)?void 0:e,g_),f=jb(o),m=function(n){if(i.hasNodeCheckFlag(n,262144)){c||(e.enableSubstitution(80),c=[]);const i=t.createUniqueName(n.name&&!Wl(n.name)?gc(n.name):"default");return c[UJ(n)]=i,r(i),i}}(o),h=a<2?t.getInternalName(o,!1,!0):t.getLocalName(o,!1,!0),y=_J(o.heritageClauses,_,tP);let v=_J(o.members,_,__),b=[];({members:v,decorationStatements:b}=p(o,v));const x=a>=9&&!!m&&$(v,e=>ND(e)&&Nv(e,256)||ED(e));x&&(v=xI(t.createNodeArray([t.createClassStaticBlockDeclaration(t.createBlock([t.createExpressionStatement(t.createAssignment(m,t.createThis()))])),...v]),v));const k=t.createClassExpression(d,s&&Wl(s)?void 0:s,void 0,y,v);hw(k,o),xI(k,f);const S=m&&!x?t.createAssignment(m,k):k,T=t.createVariableDeclaration(h,void 0,void 0,S);hw(T,o);const C=t.createVariableDeclarationList([T],1),w=t.createVariableStatement(void 0,C);hw(w,o),xI(w,f),Aw(w,o);const N=[w];if(se(N,b),function(e,r){const i=function(e){const r=g(fz(e,!0));if(!r)return;const i=c&&c[UJ(e)],o=a<2?t.getInternalName(e,!1,!0):t.getDeclarationName(e,!1,!0),s=n().createDecorateHelper(r,o),l=t.createAssignment(o,i?t.createAssignment(i,s):s);return xw(l,3072),ww(l,jb(e)),l}(r);i&&e.push(hw(t.createExpressionStatement(i),r))}(N,o),l)if(u){const e=t.createExportDefault(h);N.push(e)}else{const e=t.createExternalModuleExport(t.getDeclarationName(o));N.push(e)}return N}(o,o.name):function(e,n){const r=_J(e.modifiers,l,Zl),i=_J(e.heritageClauses,_,tP);let o=_J(e.members,_,__),a=[];({members:o,decorationStatements:a}=p(e,o));return se([t.updateClassDeclaration(e,r,n,void 0,i,o)],a)}(o,o.name);return ke(s)}(o);case 232:return function(e){return t.updateClassExpression(e,_J(e.modifiers,l,Zl),e.name,void 0,_J(e.heritageClauses,_,tP),_J(e.members,_,__))}(o);case 177:return function(e){return t.updateConstructorDeclaration(e,_J(e.modifiers,l,Zl),_J(e.parameters,_,TD),lJ(e.body,_,VF))}(o);case 175:return function(e){return f(t.updateMethodDeclaration(e,_J(e.modifiers,l,Zl),e.asteriskToken,un.checkDefined(lJ(e.name,_,t_)),void 0,void 0,_J(e.parameters,_,TD),void 0,lJ(e.body,_,VF)),e)}(o);case 179:return function(e){return f(t.updateSetAccessorDeclaration(e,_J(e.modifiers,l,Zl),un.checkDefined(lJ(e.name,_,t_)),_J(e.parameters,_,TD),lJ(e.body,_,VF)),e)}(o);case 178:return function(e){return f(t.updateGetAccessorDeclaration(e,_J(e.modifiers,l,Zl),un.checkDefined(lJ(e.name,_,t_)),_J(e.parameters,_,TD),void 0,lJ(e.body,_,VF)),e)}(o);case 173:return function(e){if(!(33554432&e.flags||Nv(e,128)))return f(t.updatePropertyDeclaration(e,_J(e.modifiers,l,Zl),un.checkDefined(lJ(e.name,_,t_)),void 0,void 0,lJ(e.initializer,_,V_)),e)}(o);case 170:return function(e){const n=t.updateParameterDeclaration(e,_I(t,e.modifiers),e.dotDotDotToken,un.checkDefined(lJ(e.name,_,n_)),void 0,void 0,lJ(e.initializer,_,V_));return n!==e&&(Aw(n,e),xI(n,jb(e)),ww(n,jb(e)),xw(n.name,64)),n}(o);default:return vJ(o,_,e)}}function u(e){return!!(536870912&e.transformFlags)}function d(e){return $(e,u)}function p(e,n){let r=[];return h(r,e,!1),h(r,e,!0),function(e){for(const t of e.members){if(!SI(t))continue;const n=mz(t,e,!0);if($(null==n?void 0:n.decorators,u))return!0;if($(null==n?void 0:n.parameters,d))return!0}return!1}(e)&&(n=xI(t.createNodeArray([...n,t.createClassStaticBlockDeclaration(t.createBlock(r,!0))]),n),r=void 0),{decorationStatements:r,members:n}}function f(e,t){return e!==t&&(Aw(e,t),ww(e,jb(t))),e}function m(e){return JN(e.expression,"___metadata")}function g(e){if(!e)return;const{false:t,true:n}=ze(e.decorators,m),r=[];return se(r,E(t,v)),se(r,O(e.parameters,b)),se(r,E(n,v)),r}function h(e,n,r){se(e,E(function(e,t){const n=function(e,t){return N(e.members,n=>{return i=t,fm(!0,r=n,e)&&i===Dv(r);var r,i})}(e,t);let r;for(const t of n)r=ie(r,y(e,t));return r}(n,r),e=>t.createExpressionStatement(e)))}function y(e,r){const i=g(mz(r,e,!0));if(!i)return;const o=function(e,n){return Dv(n)?t.getDeclarationName(e):function(e){return t.createPropertyAccessExpression(t.getDeclarationName(e),"prototype")}(e)}(e,r),a=function(e,n){const r=e.name;return sD(r)?t.createIdentifier(""):kD(r)?n&&!nz(r.expression)?t.getGeneratedNameForNode(r):r.expression:aD(r)?t.createStringLiteral(gc(r)):t.cloneNode(r)}(r,!Nv(r,128)),s=ND(r)&&!Iv(r)?t.createVoidZero():t.createNull(),c=n().createDecorateHelper(i,o,a,s);return xw(c,3072),ww(c,jb(r)),c}function v(e){return un.checkDefined(lJ(e.expression,_,V_))}function b(e,t){let r;if(e){r=[];for(const i of e){const e=n().createParamHelper(v(i),t);xI(e,i.expression),xw(e,3072),r.push(e)}}return r}}function tq(e){const{factory:t,getEmitHelperFactory:n,startLexicalEnvironment:r,endLexicalEnvironment:i,hoistVariableDeclaration:o}=e,a=yk(e.getCompilerOptions());let s,c,l,_,u,d;return $J(e,function(t){s=void 0,d=!1;const n=vJ(t,b,e);return Uw(n,e.readEmitHelpers()),d&&(Tw(n,32),d=!1),n});function p(){switch(c=void 0,l=void 0,_=void 0,null==s?void 0:s.kind){case"class":c=s.classInfo;break;case"class-element":c=s.next.classInfo,l=s.classThis,_=s.classSuper;break;case"name":const e=s.next.next.next;"class-element"===(null==e?void 0:e.kind)&&(c=e.next.classInfo,l=e.classThis,_=e.classSuper)}}function f(e){s={kind:"class",next:s,classInfo:e,savedPendingExpressions:u},u=void 0,p()}function m(){un.assert("class"===(null==s?void 0:s.kind),"Incorrect value for top.kind.",()=>`Expected top.kind to be 'class' but got '${null==s?void 0:s.kind}' instead.`),u=s.savedPendingExpressions,s=s.next,p()}function g(e){var t,n;un.assert("class"===(null==s?void 0:s.kind),"Incorrect value for top.kind.",()=>`Expected top.kind to be 'class' but got '${null==s?void 0:s.kind}' instead.`),s={kind:"class-element",next:s},(ED(e)||ND(e)&&Fv(e))&&(s.classThis=null==(t=s.next.classInfo)?void 0:t.classThis,s.classSuper=null==(n=s.next.classInfo)?void 0:n.classSuper),p()}function h(){var e;un.assert("class-element"===(null==s?void 0:s.kind),"Incorrect value for top.kind.",()=>`Expected top.kind to be 'class-element' but got '${null==s?void 0:s.kind}' instead.`),un.assert("class"===(null==(e=s.next)?void 0:e.kind),"Incorrect value for top.next.kind.",()=>{var e;return`Expected top.next.kind to be 'class' but got '${null==(e=s.next)?void 0:e.kind}' instead.`}),s=s.next,p()}function y(){un.assert("class-element"===(null==s?void 0:s.kind),"Incorrect value for top.kind.",()=>`Expected top.kind to be 'class-element' but got '${null==s?void 0:s.kind}' instead.`),s={kind:"name",next:s},p()}function v(){un.assert("name"===(null==s?void 0:s.kind),"Incorrect value for top.kind.",()=>`Expected top.kind to be 'name' but got '${null==s?void 0:s.kind}' instead.`),s=s.next,p()}function b(n){if(!function(e){return!!(33554432&e.transformFlags)||!!l&&!!(16384&e.transformFlags)||!!l&&!!_&&!!(134217728&e.transformFlags)}(n))return n;switch(n.kind){case 171:return un.fail("Use `modifierVisitor` instead.");case 264:return function(n){if(D(n)){const r=[],i=_c(n,u_)??n,o=i.name?t.createStringLiteralFromNode(i.name):t.createStringLiteral("default"),a=Nv(n,32),s=Nv(n,2048);if(n.name||(n=qz(e,n,o)),a&&s){const e=N(n);if(n.name){const i=t.createVariableDeclaration(t.getLocalName(n),void 0,void 0,e);hw(i,n);const o=t.createVariableDeclarationList([i],1),a=t.createVariableStatement(void 0,o);r.push(a);const s=t.createExportDefault(t.getDeclarationName(n));hw(s,n),Aw(s,Pw(n)),ww(s,Lb(n)),r.push(s)}else{const i=t.createExportDefault(e);hw(i,n),Aw(i,Pw(n)),ww(i,Lb(n)),r.push(i)}}else{un.assertIsDefined(n.name,"A class declaration that is not a default export must have a name.");const e=N(n),i=a?e=>cD(e)?void 0:k(e):k,o=_J(n.modifiers,i,Zl),s=t.getLocalName(n,!1,!0),c=t.createVariableDeclaration(s,void 0,void 0,e);hw(c,n);const l=t.createVariableDeclarationList([c],1),_=t.createVariableStatement(o,l);if(hw(_,n),Aw(_,Pw(n)),r.push(_),a){const e=t.createExternalModuleExport(s);hw(e,n),r.push(e)}}return ke(r)}{const e=_J(n.modifiers,k,Zl),r=_J(n.heritageClauses,b,tP);f(void 0);const i=_J(n.members,S,__);return m(),t.updateClassDeclaration(n,e,n.name,void 0,r,i)}}(n);case 232:return function(e){if(D(e)){const t=N(e);return hw(t,e),t}{const n=_J(e.modifiers,k,Zl),r=_J(e.heritageClauses,b,tP);f(void 0);const i=_J(e.members,S,__);return m(),t.updateClassExpression(e,n,e.name,void 0,r,i)}}(n);case 177:case 173:case 176:return un.fail("Not supported outside of a class. Use 'classElementVisitor' instead.");case 170:return function(n){Gh(n,O)&&(n=Vz(e,n,L(n.initializer)));const r=t.updateParameterDeclaration(n,void 0,n.dotDotDotToken,lJ(n.name,b,n_),void 0,void 0,lJ(n.initializer,b,V_));return r!==n&&(Aw(r,n),xI(r,jb(n)),ww(r,jb(n)),xw(r.name,64)),r}(n);case 227:return j(n,!1);case 304:case 261:case 209:return function(t){return Gh(t,O)&&(t=Vz(e,t,L(t.initializer))),vJ(t,b,e)}(n);case 278:return function(t){return Gh(t,O)&&(t=Vz(e,t,L(t.expression))),vJ(t,b,e)}(n);case 110:return function(e){return l??e}(n);case 249:return function(n){return t.updateForStatement(n,lJ(n.initializer,T,eu),lJ(n.condition,b,V_),lJ(n.incrementor,T,V_),hJ(n.statement,b,e))}(n);case 245:return function(t){return vJ(t,T,e)}(n);case 357:return R(n,!1);case 218:return H(n,!1);case 356:return function(e){const n=b,r=lJ(e.expression,n,V_);return t.updatePartiallyEmittedExpression(e,r)}(n);case 214:return function(n){if(am(n.expression)&&l){const e=lJ(n.expression,b,V_),r=_J(n.arguments,b,V_),i=t.createFunctionCallCall(e,l,r);return hw(i,n),xI(i,n),i}return vJ(n,b,e)}(n);case 216:return function(n){if(am(n.tag)&&l){const e=lJ(n.tag,b,V_),r=t.createFunctionBindCall(e,l,[]);hw(r,n),xI(r,n);const i=lJ(n.template,b,M_);return t.updateTaggedTemplateExpression(n,r,void 0,i)}return vJ(n,b,e)}(n);case 225:case 226:return M(n,!1);case 212:return function(n){if(am(n)&&aD(n.name)&&l&&_){const e=t.createStringLiteralFromNode(n.name),r=t.createReflectGetCall(_,e,l);return hw(r,n.expression),xI(r,n.expression),r}return vJ(n,b,e)}(n);case 213:return function(n){if(am(n)&&l&&_){const e=lJ(n.argumentExpression,b,V_),r=t.createReflectGetCall(_,e,l);return hw(r,n.expression),xI(r,n.expression),r}return vJ(n,b,e)}(n);case 168:return J(n);case 175:case 179:case 178:case 219:case 263:{"other"===(null==s?void 0:s.kind)?(un.assert(!u),s.depth++):(s={kind:"other",next:s,depth:0,savedPendingExpressions:u},u=void 0,p());const t=vJ(n,x,e);return un.assert("other"===(null==s?void 0:s.kind),"Incorrect value for top.kind.",()=>`Expected top.kind to be 'other' but got '${null==s?void 0:s.kind}' instead.`),s.depth>0?(un.assert(!u),s.depth--):(u=s.savedPendingExpressions,s=s.next,p()),t}default:return vJ(n,x,e)}}function x(e){if(171!==e.kind)return b(e)}function k(e){if(171!==e.kind)return e}function S(a){switch(a.kind){case 177:return function(e){g(e);const n=_J(e.modifiers,k,Zl),r=_J(e.parameters,b,TD);let i;if(e.body&&c){const n=F(c.class,c);if(n){const r=[],o=t.copyPrologue(e.body.statements,r,!1,b),a=sz(e.body.statements,o);a.length>0?P(r,e.body.statements,o,a,0,n):(se(r,n),se(r,_J(e.body.statements,b,pu))),i=t.createBlock(r,!0),hw(i,e.body),xI(i,e.body)}}return i??(i=lJ(e.body,b,VF)),h(),t.updateConstructorDeclaration(e,n,r,i)}(a);case 175:return function(e){g(e);const{modifiers:n,name:r,descriptorName:i}=I(e,c,ee);if(i)return h(),A(function(e,n,r){return e=_J(e,e=>fD(e)?e:void 0,Zl),t.createGetAccessorDeclaration(e,n,[],void 0,t.createBlock([t.createReturnStatement(t.createPropertyAccessExpression(r,t.createIdentifier("value")))]))}(n,r,i),e);{const i=_J(e.parameters,b,TD),o=lJ(e.body,b,VF);return h(),A(t.updateMethodDeclaration(e,n,e.asteriskToken,r,void 0,void 0,i,void 0,o),e)}}(a);case 178:return function(e){g(e);const{modifiers:n,name:r,descriptorName:i}=I(e,c,te);if(i)return h(),A(oe(n,r,i),e);{const i=_J(e.parameters,b,TD),o=lJ(e.body,b,VF);return h(),A(t.updateGetAccessorDeclaration(e,n,r,i,void 0,o),e)}}(a);case 179:return function(e){g(e);const{modifiers:n,name:r,descriptorName:i}=I(e,c,ne);if(i)return h(),A(ae(n,r,i),e);{const i=_J(e.parameters,b,TD),o=lJ(e.body,b,VF);return h(),A(t.updateSetAccessorDeclaration(e,n,r,i,o),e)}}(a);case 173:return function(a){Gh(a,O)&&(a=Vz(e,a,L(a.initializer))),g(a),un.assert(!vp(a),"Not yet implemented.");const{modifiers:s,name:l,initializersName:_,extraInitializersName:u,descriptorName:d,thisArg:p}=I(a,c,Iv(a)?re:void 0);r();let f=lJ(a.initializer,b,V_);_&&(f=n().createRunInitializersHelper(p??t.createThis(),_,f??t.createVoidZero())),Dv(a)&&c&&f&&(c.hasStaticInitializers=!0);const m=i();if($(m)&&(f=t.createImmediatelyInvokedArrowFunction([...m,t.createReturnStatement(f)])),c&&(Dv(a)?(f=X(c,!0,f),u&&(c.pendingStaticInitializers??(c.pendingStaticInitializers=[]),c.pendingStaticInitializers.push(n().createRunInitializersHelper(c.classThis??t.createThis(),u)))):(f=X(c,!1,f),u&&(c.pendingInstanceInitializers??(c.pendingInstanceInitializers=[]),c.pendingInstanceInitializers.push(n().createRunInitializersHelper(t.createThis(),u))))),h(),Iv(a)&&d){const e=Pw(a),n=Cw(a),r=a.name;let i=r,c=r;if(kD(r)&&!nz(r.expression)){const e=hI(r);if(e)i=t.updateComputedPropertyName(r,lJ(r.expression,b,V_)),c=t.updateComputedPropertyName(r,e.left);else{const e=t.createTempVariable(o);ww(e,r.expression);const n=lJ(r.expression,b,V_),a=t.createAssignment(e,n);ww(a,r.expression),i=t.updateComputedPropertyName(r,a),c=t.updateComputedPropertyName(r,e)}}const l=_J(s,e=>129!==e.kind?e:void 0,Zl),_=fI(t,a,l,f);hw(_,a),xw(_,3072),ww(_,n),ww(_.name,a.name);const u=oe(l,i,d);hw(u,a),Aw(u,e),ww(u,n);const p=ae(l,c,d);return hw(p,a),xw(p,3072),ww(p,n),[_,u,p]}return A(t.updatePropertyDeclaration(a,s,l,void 0,void 0,f),a)}(a);case 176:return function(n){let r;if(g(n),Bz(n))r=vJ(n,b,e);else if(Oz(n)){const t=l;l=void 0,r=vJ(n,b,e),l=t}else if(r=n=vJ(n,b,e),c&&(c.hasStaticInitializers=!0,$(c.pendingStaticInitializers))){const e=[];for(const n of c.pendingStaticInitializers){const r=t.createExpressionStatement(n);ww(r,Cw(n)),e.push(r)}const n=t.createBlock(e,!0);r=[t.createClassStaticBlockDeclaration(n),r],c.pendingStaticInitializers=void 0}return h(),r}(a);default:return b(a)}}function T(e){switch(e.kind){case 225:case 226:return M(e,!0);case 227:return j(e,!0);case 357:return R(e,!0);case 218:return H(e,!0);default:return b(e)}}function C(e,n){return t.createUniqueName(`${function(e){let t=e.name&&aD(e.name)&&!Wl(e.name)?gc(e.name):e.name&&sD(e.name)&&!Wl(e.name)?gc(e.name).slice(1):e.name&&UN(e.name)&&ms(e.name.text,99)?e.name.text:u_(e)?"class":"member";return Nu(e)&&(t=`get_${t}`),wu(e)&&(t=`set_${t}`),e.name&&sD(e.name)&&(t=`private_${t}`),Dv(e)&&(t=`static_${t}`),"_"+t}(e)}_${n}`,24)}function w(e,n){return t.createVariableStatement(void 0,t.createVariableDeclarationList([t.createVariableDeclaration(e,void 0,void 0,n)],1))}function N(o){r(),!zz(o)&&gm(!1,o)&&(o=qz(e,o,t.createStringLiteral("")));const a=t.getLocalName(o,!1,!1,!0),s=function(e){const r=t.createUniqueName("_metadata",48);let i,o,a,s,c,l=!1,_=!1,u=!1;if(pm(!1,e)){const n=$(e.members,e=>(Kl(e)||p_(e))&&Fv(e));a=t.createUniqueName("_classThis",n?24:48)}for(const r of e.members){if(m_(r)&&fm(!1,r,e))if(Fv(r)){if(!o){o=t.createUniqueName("_staticExtraInitializers",48);const r=n().createRunInitializersHelper(a??t.createThis(),o);ww(r,e.name??Lb(e)),s??(s=[]),s.push(r)}}else{if(!i){i=t.createUniqueName("_instanceExtraInitializers",48);const r=n().createRunInitializersHelper(t.createThis(),i);ww(r,e.name??Lb(e)),c??(c=[]),c.push(r)}i??(i=t.createUniqueName("_instanceExtraInitializers",48))}if(ED(r)?Bz(r)||(l=!0):ND(r)&&(Fv(r)?l||(l=!!r.initializer||Lv(r)):_||(_=!vp(r))),(Kl(r)||p_(r))&&Fv(r)&&(u=!0),o&&i&&l&&_&&u)break}return{class:e,classThis:a,metadataReference:r,instanceMethodExtraInitializersName:i,staticMethodExtraInitializersName:o,hasStaticInitializers:l,hasNonAmbientInstanceFields:_,hasStaticPrivateClassElements:u,pendingStaticInitializers:s,pendingInstanceInitializers:c}}(o),c=[];let l,_,p,g,h=!1;const y=Q(fz(o,!1));y&&(s.classDecoratorsName=t.createUniqueName("_classDecorators",48),s.classDescriptorName=t.createUniqueName("_classDescriptor",48),s.classExtraInitializersName=t.createUniqueName("_classExtraInitializers",48),un.assertIsDefined(s.classThis),c.push(w(s.classDecoratorsName,t.createArrayLiteralExpression(y)),w(s.classDescriptorName),w(s.classExtraInitializersName,t.createArrayLiteralExpression()),w(s.classThis)),s.hasStaticPrivateClassElements&&(h=!0,d=!0));const v=Sh(o.heritageClauses,96),x=v&&fe(v.types),k=x&&lJ(x.expression,b,V_);if(k){s.classSuper=t.createUniqueName("_classSuper",48);const e=NA(k),n=AF(e)&&!e.name||vF(e)&&!e.name||bF(e)?t.createComma(t.createNumericLiteral(0),k):k;c.push(w(s.classSuper,n));const r=t.updateExpressionWithTypeArguments(x,s.classSuper,void 0),i=t.updateHeritageClause(v,[r]);g=t.createNodeArray([i])}const T=s.classThis??t.createThis();f(s),l=ie(l,function(e,n){const r=t.createVariableDeclaration(e,void 0,void 0,t.createConditionalExpression(t.createLogicalAnd(t.createTypeCheck(t.createIdentifier("Symbol"),"function"),t.createPropertyAccessExpression(t.createIdentifier("Symbol"),"metadata")),t.createToken(58),t.createCallExpression(t.createPropertyAccessExpression(t.createIdentifier("Object"),"create"),void 0,[n?ce(n):t.createNull()]),t.createToken(59),t.createVoidZero()));return t.createVariableStatement(void 0,t.createVariableDeclarationList([r],2))}(s.metadataReference,s.classSuper));let C=o.members;if(C=_J(C,e=>PD(e)?e:S(e),__),C=_J(C,e=>PD(e)?S(e):e,__),u){let n;for(let r of u)r=lJ(r,function r(i){return 16384&i.transformFlags?110===i.kind?(n||(n=t.createUniqueName("_outerThis",16),c.unshift(w(n,t.createThis()))),n):vJ(i,r,e):i},V_),l=ie(l,t.createExpressionStatement(r));u=void 0}if(m(),$(s.pendingInstanceInitializers)&&!iv(o)){const e=F(0,s);if(e){const n=yh(o),r=[];if(n&&106!==NA(n.expression).kind){const e=t.createSpreadElement(t.createIdentifier("arguments")),n=t.createCallExpression(t.createSuper(),void 0,[e]);r.push(t.createExpressionStatement(n))}se(r,e);const i=t.createBlock(r,!0);p=t.createConstructorDeclaration(void 0,[],i)}}if(s.staticMethodExtraInitializersName&&c.push(w(s.staticMethodExtraInitializersName,t.createArrayLiteralExpression())),s.instanceMethodExtraInitializersName&&c.push(w(s.instanceMethodExtraInitializersName,t.createArrayLiteralExpression())),s.memberInfos&&rd(s.memberInfos,(e,n)=>{Dv(n)&&(c.push(w(e.memberDecoratorsName)),e.memberInitializersName&&c.push(w(e.memberInitializersName,t.createArrayLiteralExpression())),e.memberExtraInitializersName&&c.push(w(e.memberExtraInitializersName,t.createArrayLiteralExpression())),e.memberDescriptorName&&c.push(w(e.memberDescriptorName)))}),s.memberInfos&&rd(s.memberInfos,(e,n)=>{Dv(n)||(c.push(w(e.memberDecoratorsName)),e.memberInitializersName&&c.push(w(e.memberInitializersName,t.createArrayLiteralExpression())),e.memberExtraInitializersName&&c.push(w(e.memberExtraInitializersName,t.createArrayLiteralExpression())),e.memberDescriptorName&&c.push(w(e.memberDescriptorName)))}),l=se(l,s.staticNonFieldDecorationStatements),l=se(l,s.nonStaticNonFieldDecorationStatements),l=se(l,s.staticFieldDecorationStatements),l=se(l,s.nonStaticFieldDecorationStatements),s.classDescriptorName&&s.classDecoratorsName&&s.classExtraInitializersName&&s.classThis){l??(l=[]);const e=t.createPropertyAssignment("value",T),r=t.createObjectLiteralExpression([e]),i=t.createAssignment(s.classDescriptorName,r),c=t.createPropertyAccessExpression(T,"name"),_=n().createESDecorateHelper(t.createNull(),i,s.classDecoratorsName,{kind:"class",name:c,metadata:s.metadataReference},t.createNull(),s.classExtraInitializersName),u=t.createExpressionStatement(_);ww(u,Lb(o)),l.push(u);const d=t.createPropertyAccessExpression(s.classDescriptorName,"value"),p=t.createAssignment(s.classThis,d),f=t.createAssignment(a,p);l.push(t.createExpressionStatement(f))}if(l.push(function(e,n){const r=t.createObjectDefinePropertyCall(e,t.createPropertyAccessExpression(t.createIdentifier("Symbol"),"metadata"),t.createPropertyDescriptor({configurable:!0,writable:!0,enumerable:!0,value:n},!0));return xw(t.createIfStatement(n,t.createExpressionStatement(r)),1)}(T,s.metadataReference)),$(s.pendingStaticInitializers)){for(const e of s.pendingStaticInitializers){const n=t.createExpressionStatement(e);ww(n,Cw(e)),_=ie(_,n)}s.pendingStaticInitializers=void 0}if(s.classExtraInitializersName){const e=n().createRunInitializersHelper(T,s.classExtraInitializersName),r=t.createExpressionStatement(e);ww(r,o.name??Lb(o)),_=ie(_,r)}l&&_&&!s.hasStaticInitializers&&(se(l,_),_=void 0);const N=l&&t.createClassStaticBlockDeclaration(t.createBlock(l,!0));N&&h&&Sw(N,32);const D=_&&t.createClassStaticBlockDeclaration(t.createBlock(_,!0));if(N||p||D){const e=[],n=C.findIndex(Bz);N?(se(e,C,0,n+1),e.push(N),se(e,C,n+1)):se(e,C),p&&e.push(p),D&&e.push(D),C=xI(t.createNodeArray(e),C)}const E=i();let P;if(y){P=t.createClassExpression(void 0,void 0,void 0,g,C),s.classThis&&(P=jz(t,P,s.classThis));const e=t.createVariableDeclaration(a,void 0,void 0,P),n=t.createVariableDeclarationList([e]),r=s.classThis?t.createAssignment(a,s.classThis):a;c.push(t.createVariableStatement(void 0,n),t.createReturnStatement(r))}else P=t.createClassExpression(void 0,o.name,void 0,g,C),c.push(t.createReturnStatement(P));if(h){Tw(P,32);for(const e of P.members)(Kl(e)||p_(e))&&Fv(e)&&Tw(e,32)}return hw(P,o),t.createImmediatelyInvokedArrowFunction(t.mergeLexicalEnvironment(c,E))}function D(e){return gm(!1,e)||mm(!1,e)}function F(e,n){if($(n.pendingInstanceInitializers)){const e=[];return e.push(t.createExpressionStatement(t.inlineExpressions(n.pendingInstanceInitializers))),n.pendingInstanceInitializers=void 0,e}}function P(e,n,r,i,o,a){const s=i[o],c=n[s];if(se(e,_J(n,b,pu,r,s-r)),sE(c)){const n=[];P(n,c.tryBlock.statements,0,i,o+1,a),xI(t.createNodeArray(n),c.tryBlock.statements),e.push(t.updateTryStatement(c,t.updateBlock(c.tryBlock,n),lJ(c.catchClause,b,nP),lJ(c.finallyBlock,b,VF)))}else se(e,_J(n,b,pu,s,1)),se(e,a);se(e,_J(n,b,pu,s+1))}function A(e,t){return e!==t&&(Aw(e,t),ww(e,Lb(t))),e}function I(e,r,i){let a,s,c,l,_,d;if(!r){const t=_J(e.modifiers,k,Zl);return y(),s=B(e.name),v(),{modifiers:t,referencedName:a,name:s,initializersName:c,descriptorName:d,thisArg:_}}const p=Q(mz(e,r.class,!1)),f=_J(e.modifiers,k,Zl);if(p){const m=C(e,"decorators"),g=t.createArrayLiteralExpression(p),h=t.createAssignment(m,g),x={memberDecoratorsName:m};r.memberInfos??(r.memberInfos=new Map),r.memberInfos.set(e,x),u??(u=[]),u.push(h);const k=m_(e)||p_(e)?Dv(e)?r.staticNonFieldDecorationStatements??(r.staticNonFieldDecorationStatements=[]):r.nonStaticNonFieldDecorationStatements??(r.nonStaticNonFieldDecorationStatements=[]):ND(e)&&!p_(e)?Dv(e)?r.staticFieldDecorationStatements??(r.staticFieldDecorationStatements=[]):r.nonStaticFieldDecorationStatements??(r.nonStaticFieldDecorationStatements=[]):un.fail(),S=AD(e)?"getter":ID(e)?"setter":FD(e)?"method":p_(e)?"accessor":ND(e)?"field":un.fail();let T;if(aD(e.name)||sD(e.name))T={computed:!1,name:e.name};else if(zh(e.name))T={computed:!0,name:t.createStringLiteralFromNode(e.name)};else{const r=e.name.expression;zh(r)&&!aD(r)?T={computed:!0,name:t.createStringLiteralFromNode(r)}:(y(),({referencedName:a,name:s}=function(e){if(zh(e)||sD(e))return{referencedName:t.createStringLiteralFromNode(e),name:lJ(e,b,t_)};if(zh(e.expression)&&!aD(e.expression))return{referencedName:t.createStringLiteralFromNode(e.expression),name:lJ(e,b,t_)};const r=t.getGeneratedNameForNode(e);o(r);const i=n().createPropKeyHelper(lJ(e.expression,b,V_)),a=t.createAssignment(r,i);return{referencedName:r,name:t.updateComputedPropertyName(e,G(a))}}(e.name)),T={computed:!0,name:a},v())}const w={kind:S,name:T,static:Dv(e),private:sD(e.name),access:{get:ND(e)||AD(e)||FD(e),set:ND(e)||ID(e)},metadata:r.metadataReference};if(m_(e)){const o=Dv(e)?r.staticMethodExtraInitializersName:r.instanceMethodExtraInitializersName;let a;un.assertIsDefined(o),Kl(e)&&i&&(a=i(e,_J(f,e=>tt(e,_D),Zl)),x.memberDescriptorName=d=C(e,"descriptor"),a=t.createAssignment(d,a));const s=n().createESDecorateHelper(t.createThis(),a??t.createNull(),m,w,t.createNull(),o),c=t.createExpressionStatement(s);ww(c,Lb(e)),k.push(c)}else if(ND(e)){let o;c=x.memberInitializersName??(x.memberInitializersName=C(e,"initializers")),l=x.memberExtraInitializersName??(x.memberExtraInitializersName=C(e,"extraInitializers")),Dv(e)&&(_=r.classThis),Kl(e)&&Iv(e)&&i&&(o=i(e,void 0),x.memberDescriptorName=d=C(e,"descriptor"),o=t.createAssignment(d,o));const a=n().createESDecorateHelper(p_(e)?t.createThis():t.createNull(),o??t.createNull(),m,w,c,l),s=t.createExpressionStatement(a);ww(s,Lb(e)),k.push(s)}}return void 0===s&&(y(),s=B(e.name),v()),$(f)||!FD(e)&&!ND(e)||xw(s,1024),{modifiers:f,referencedName:a,name:s,initializersName:c,extraInitializersName:l,descriptorName:d,thisArg:_}}function O(e){return AF(e)&&!e.name&&D(e)}function L(e){const t=NA(e);return AF(t)&&!t.name&&!gm(!1,t)}function j(n,r){if(ib(n)){const e=W(n.left),r=lJ(n.right,b,V_);return t.updateBinaryExpression(n,e,n.operatorToken,r)}if(rb(n)){if(Gh(n,O))return vJ(n=Vz(e,n,L(n.right)),b,e);if(am(n.left)&&l&&_){let e=pF(n.left)?lJ(n.left.argumentExpression,b,V_):aD(n.left.name)?t.createStringLiteralFromNode(n.left.name):void 0;if(e){let i=lJ(n.right,b,V_);if(rz(n.operatorToken.kind)){let r=e;nz(e)||(r=t.createTempVariable(o),e=t.createAssignment(r,e));const a=t.createReflectGetCall(_,r,l);hw(a,n.left),xI(a,n.left),i=t.createBinaryExpression(a,iz(n.operatorToken.kind),i),xI(i,n)}const a=r?void 0:t.createTempVariable(o);return a&&(i=t.createAssignment(a,i),xI(a,n)),i=t.createReflectSetCall(_,e,i,l),hw(i,n),xI(i,n),a&&(i=t.createComma(i,a),xI(i,n)),i}}}if(28===n.operatorToken.kind){const e=lJ(n.left,T,V_),i=lJ(n.right,r?T:b,V_);return t.updateBinaryExpression(n,e,n.operatorToken,i)}return vJ(n,b,e)}function M(n,r){if(46===n.operator||47===n.operator){const e=ah(n.operand);if(am(e)&&l&&_){let i=pF(e)?lJ(e.argumentExpression,b,V_):aD(e.name)?t.createStringLiteralFromNode(e.name):void 0;if(i){let e=i;nz(i)||(e=t.createTempVariable(o),i=t.createAssignment(e,i));let a=t.createReflectGetCall(_,e,l);hw(a,n),xI(a,n);const s=r?void 0:t.createTempVariable(o);return a=mA(t,n,a,o,s),a=t.createReflectSetCall(_,i,a,l),hw(a,n),xI(a,n),s&&(a=t.createComma(a,s),xI(a,n)),a}}}return vJ(n,b,e)}function R(e,n){const r=n?yJ(e.elements,T):yJ(e.elements,b,T);return t.updateCommaListExpression(e,r)}function B(e){return kD(e)?J(e):lJ(e,b,t_)}function J(e){let n=lJ(e.expression,b,V_);return nz(n)||(n=G(n)),t.updateComputedPropertyName(e,n)}function z(n){if(uF(n)||_F(n))return W(n);if(am(n)&&l&&_){const e=pF(n)?lJ(n.argumentExpression,b,V_):aD(n.name)?t.createStringLiteralFromNode(n.name):void 0;if(e){const r=t.createTempVariable(void 0),i=t.createAssignmentTargetWrapper(r,t.createReflectSetCall(_,e,r,l));return hw(i,n),xI(i,n),i}}return vJ(n,b,e)}function q(n){if(rb(n,!0)){Gh(n,O)&&(n=Vz(e,n,L(n.right)));const r=z(n.left),i=lJ(n.right,b,V_);return t.updateBinaryExpression(n,r,n.operatorToken,i)}return z(n)}function U(n){return un.assertNode(n,P_),PF(n)?function(n){if(R_(n.expression)){const e=z(n.expression);return t.updateSpreadElement(n,e)}return vJ(n,b,e)}(n):IF(n)?vJ(n,b,e):q(n)}function V(n){return un.assertNode(n,F_),oP(n)?function(n){if(R_(n.expression)){const e=z(n.expression);return t.updateSpreadAssignment(n,e)}return vJ(n,b,e)}(n):iP(n)?function(t){return Gh(t,O)&&(t=Vz(e,t,L(t.objectAssignmentInitializer))),vJ(t,b,e)}(n):rP(n)?function(n){const r=lJ(n.name,b,t_);if(rb(n.initializer,!0)){const e=q(n.initializer);return t.updatePropertyAssignment(n,r,e)}if(R_(n.initializer)){const e=z(n.initializer);return t.updatePropertyAssignment(n,r,e)}return vJ(n,b,e)}(n):vJ(n,b,e)}function W(e){if(_F(e)){const n=_J(e.elements,U,V_);return t.updateArrayLiteralExpression(e,n)}{const n=_J(e.properties,V,v_);return t.updateObjectLiteralExpression(e,n)}}function H(e,n){const r=n?T:b,i=lJ(e.expression,r,V_);return t.updateParenthesizedExpression(e,i)}function K(e,n){return $(e)&&(n?yF(n)?(e.push(n.expression),n=t.updateParenthesizedExpression(n,t.inlineExpressions(e))):(e.push(n),n=t.inlineExpressions(e)):n=t.inlineExpressions(e)),n}function G(e){const t=K(u,e);return un.assertIsDefined(t),t!==e&&(u=void 0),t}function X(e,t,n){const r=K(t?e.pendingStaticInitializers:e.pendingInstanceInitializers,n);return r!==n&&(t?e.pendingStaticInitializers=void 0:e.pendingInstanceInitializers=void 0),r}function Q(e){if(!e)return;const t=[];return se(t,E(e.decorators,Y)),t}function Y(e){const n=lJ(e.expression,b,V_);if(xw(n,3072),Sx(NA(n))){const{target:e,thisArg:r}=t.createCallBinding(n,o,a,!0);return t.restoreOuterExpressions(n,t.createFunctionBindCall(e,r,[]))}return n}function Z(e,r,i,o,a,s,c){const l=t.createFunctionExpression(i,o,void 0,void 0,s,void 0,c??t.createBlock([]));hw(l,e),ww(l,Lb(e)),xw(l,3072);const _="get"===a||"set"===a?a:void 0,u=t.createStringLiteralFromNode(r,void 0),d=n().createSetFunctionNameHelper(l,u,_),p=t.createPropertyAssignment(t.createIdentifier(a),d);return hw(p,e),ww(p,Lb(e)),xw(p,3072),p}function ee(e,n){return t.createObjectLiteralExpression([Z(e,e.name,n,e.asteriskToken,"value",_J(e.parameters,b,TD),lJ(e.body,b,VF))])}function te(e,n){return t.createObjectLiteralExpression([Z(e,e.name,n,void 0,"get",[],lJ(e.body,b,VF))])}function ne(e,n){return t.createObjectLiteralExpression([Z(e,e.name,n,void 0,"set",_J(e.parameters,b,TD),lJ(e.body,b,VF))])}function re(e,n){return t.createObjectLiteralExpression([Z(e,e.name,n,void 0,"get",[],t.createBlock([t.createReturnStatement(t.createPropertyAccessExpression(t.createThis(),t.getGeneratedPrivateNameForNode(e.name)))])),Z(e,e.name,n,void 0,"set",[t.createParameterDeclaration(void 0,void 0,"value")],t.createBlock([t.createExpressionStatement(t.createAssignment(t.createPropertyAccessExpression(t.createThis(),t.getGeneratedPrivateNameForNode(e.name)),t.createIdentifier("value")))]))])}function oe(e,n,r){return e=_J(e,e=>fD(e)?e:void 0,Zl),t.createGetAccessorDeclaration(e,n,[],void 0,t.createBlock([t.createReturnStatement(t.createFunctionCallCall(t.createPropertyAccessExpression(r,t.createIdentifier("get")),t.createThis(),[]))]))}function ae(e,n,r){return e=_J(e,e=>fD(e)?e:void 0,Zl),t.createSetAccessorDeclaration(e,n,[t.createParameterDeclaration(void 0,void 0,"value")],t.createBlock([t.createReturnStatement(t.createFunctionCallCall(t.createPropertyAccessExpression(r,t.createIdentifier("set")),t.createThis(),[t.createIdentifier("value")]))]))}function ce(e){return t.createBinaryExpression(t.createElementAccessExpression(e,t.createPropertyAccessExpression(t.createIdentifier("Symbol"),"metadata")),61,t.createNull())}}function nq(e){const{factory:t,getEmitHelperFactory:n,resumeLexicalEnvironment:r,endLexicalEnvironment:i,hoistVariableDeclaration:o}=e,a=e.getEmitResolver(),s=e.getCompilerOptions(),c=yk(s);let l,_,u,p,f=0,m=0;const g=[];let h=0;const y=e.onEmitNode,v=e.onSubstituteNode;return e.onEmitNode=function(e,t,n){if(1&f&&function(e){const t=e.kind;return 264===t||177===t||175===t||178===t||179===t}(t)){const r=(a.hasNodeCheckFlag(t,128)?128:0)|(a.hasNodeCheckFlag(t,256)?256:0);if(r!==m){const i=m;return m=r,y(e,t,n),void(m=i)}}else if(f&&g[ZB(t)]){const r=m;return m=0,y(e,t,n),void(m=r)}y(e,t,n)},e.onSubstituteNode=function(e,n){return n=v(e,n),1===e&&m?function(e){switch(e.kind){case 212:return $(e);case 213:return H(e);case 214:return function(e){const n=e.expression;if(am(n)){const r=dF(n)?$(n):H(n);return t.createCallExpression(t.createPropertyAccessExpression(r,"call"),void 0,[t.createThis(),...e.arguments])}return e}(e)}return e}(n):n},$J(e,function(t){if(t.isDeclarationFile)return t;b(1,!1),b(2,!yp(t,s));const n=vJ(t,C,e);return Uw(n,e.readEmitHelpers()),n});function b(e,t){h=t?h|e:h&~e}function x(e){return 0!==(h&e)}function k(e,t,n){const r=e&~h;if(r){b(r,!0);const e=t(n);return b(r,!1),e}return t(n)}function S(t){return vJ(t,C,e)}function T(t){switch(t.kind){case 219:case 263:case 175:case 178:case 179:case 177:return t;case 170:case 209:case 261:break;case 80:if(p&&a.isArgumentsLocalBinding(t))return p}return vJ(t,T,e)}function C(n){if(!(256&n.transformFlags))return p?T(n):n;switch(n.kind){case 134:return;case 224:return function(n){return x(1)?hw(xI(t.createYieldExpression(void 0,lJ(n.expression,C,V_)),n),n):vJ(n,C,e)}(n);case 175:return k(3,D,n);case 263:return k(3,A,n);case 219:return k(3,I,n);case 220:return k(1,O,n);case 212:return _&&dF(n)&&108===n.expression.kind&&_.add(n.name.escapedText),vJ(n,C,e);case 213:return _&&108===n.expression.kind&&(u=!0),vJ(n,C,e);case 178:return k(3,F,n);case 179:return k(3,P,n);case 177:return k(3,N,n);case 264:case 232:return k(3,S,n);default:return vJ(n,C,e)}}function w(n){if(Zg(n))switch(n.kind){case 244:return function(n){if(j(n.declarationList)){const e=M(n.declarationList,!1);return e?t.createExpressionStatement(e):void 0}return vJ(n,C,e)}(n);case 249:return function(n){const r=n.initializer;return t.updateForStatement(n,j(r)?M(r,!1):lJ(n.initializer,C,eu),lJ(n.condition,C,V_),lJ(n.incrementor,C,V_),hJ(n.statement,w,e))}(n);case 250:return function(n){return t.updateForInStatement(n,j(n.initializer)?M(n.initializer,!0):un.checkDefined(lJ(n.initializer,C,eu)),un.checkDefined(lJ(n.expression,C,V_)),hJ(n.statement,w,e))}(n);case 251:return function(n){return t.updateForOfStatement(n,lJ(n.awaitModifier,C,dD),j(n.initializer)?M(n.initializer,!0):un.checkDefined(lJ(n.initializer,C,eu)),un.checkDefined(lJ(n.expression,C,V_)),hJ(n.statement,w,e))}(n);case 300:return function(t){const n=new Set;let r;if(L(t.variableDeclaration,n),n.forEach((e,t)=>{l.has(t)&&(r||(r=new Set(l)),r.delete(t))}),r){const n=l;l=r;const i=vJ(t,w,e);return l=n,i}return vJ(t,w,e)}(n);case 242:case 256:case 270:case 297:case 298:case 259:case 247:case 248:case 246:case 255:case 257:return vJ(n,w,e);default:return un.assertNever(n,"Unhandled node.")}return C(n)}function N(n){const r=p;p=void 0;const i=t.updateConstructorDeclaration(n,_J(n.modifiers,C,Zl),fJ(n.parameters,C,e),z(n));return p=r,i}function D(n){let r;const i=Oh(n),o=p;p=void 0;const a=t.updateMethodDeclaration(n,_J(n.modifiers,C,g_),n.asteriskToken,n.name,void 0,void 0,r=2&i?U(n):fJ(n.parameters,C,e),void 0,2&i?V(n,r):z(n));return p=o,a}function F(n){const r=p;p=void 0;const i=t.updateGetAccessorDeclaration(n,_J(n.modifiers,C,g_),n.name,fJ(n.parameters,C,e),void 0,z(n));return p=r,i}function P(n){const r=p;p=void 0;const i=t.updateSetAccessorDeclaration(n,_J(n.modifiers,C,g_),n.name,fJ(n.parameters,C,e),z(n));return p=r,i}function A(n){let r;const i=p;p=void 0;const o=Oh(n),a=t.updateFunctionDeclaration(n,_J(n.modifiers,C,g_),n.asteriskToken,n.name,void 0,r=2&o?U(n):fJ(n.parameters,C,e),void 0,2&o?V(n,r):gJ(n.body,C,e));return p=i,a}function I(n){let r;const i=p;p=void 0;const o=Oh(n),a=t.updateFunctionExpression(n,_J(n.modifiers,C,Zl),n.asteriskToken,n.name,void 0,r=2&o?U(n):fJ(n.parameters,C,e),void 0,2&o?V(n,r):gJ(n.body,C,e));return p=i,a}function O(n){let r;const i=Oh(n);return t.updateArrowFunction(n,_J(n.modifiers,C,Zl),void 0,r=2&i?U(n):fJ(n.parameters,C,e),void 0,n.equalsGreaterThanToken,2&i?V(n,r):gJ(n.body,C,e))}function L({name:e},t){if(aD(e))t.add(e.escapedText);else for(const n of e.elements)IF(n)||L(n,t)}function j(e){return!!e&&_E(e)&&!(7&e.flags)&&e.declarations.some(J)}function M(e,n){!function(e){d(e.declarations,R)}(e);const r=Zb(e);return 0===r.length?n?lJ(t.converters.convertToAssignmentElementTarget(e.declarations[0].name),C,V_):void 0:t.inlineExpressions(E(r,B))}function R({name:e}){if(aD(e))o(e);else for(const t of e.elements)IF(t)||R(t)}function B(e){const n=ww(t.createAssignment(t.converters.convertToAssignmentElementTarget(e.name),e.initializer),e);return un.checkDefined(lJ(n,C,V_))}function J({name:e}){if(aD(e))return l.has(e.escapedText);for(const t of e.elements)if(!IF(t)&&J(t))return!0;return!1}function z(n){un.assertIsDefined(n.body);const r=_,i=u;_=new Set,u=!1;let o=gJ(n.body,C,e);const s=_c(n,o_);if(c>=2&&(a.hasNodeCheckFlag(n,256)||a.hasNodeCheckFlag(n,128))&&3&~Oh(s)){if(W(),_.size){const e=rq(t,a,n,_);g[ZB(e)]=!0;const r=o.statements.slice();Od(r,[e]),o=t.updateBlock(o,r)}u&&(a.hasNodeCheckFlag(n,256)?qw(o,BN):a.hasNodeCheckFlag(n,128)&&qw(o,RN))}return _=r,u=i,o}function q(){un.assert(p);const e=t.createVariableDeclaration(p,void 0,void 0,t.createIdentifier("arguments")),n=t.createVariableStatement(void 0,[e]);return FA(n),kw(n,2097152),n}function U(n){if(kz(n.parameters))return fJ(n.parameters,C,e);const r=[];for(const e of n.parameters){if(e.initializer||e.dotDotDotToken){if(220===n.kind){const e=t.createParameterDeclaration(void 0,t.createToken(26),t.createUniqueName("args",8));r.push(e)}break}const i=t.createParameterDeclaration(void 0,void 0,t.getGeneratedNameForNode(e.name,8));r.push(i)}const i=t.createNodeArray(r);return xI(i,n.parameters),i}function V(o,s){const d=kz(o.parameters)?void 0:fJ(o.parameters,C,e);r();const f=_c(o,r_).type,m=c<2?function(e){const t=e&&_m(e);if(t&&e_(t)){const e=a.getTypeReferenceSerializationKind(t);if(1===e||0===e)return t}}(f):void 0,h=220===o.kind,y=p,v=a.hasNodeCheckFlag(o,512)&&!p;let b;if(v&&(p=t.createUniqueName("arguments")),d)if(h){const e=[];un.assert(s.length<=o.parameters.length);for(let n=0;n=2&&(a.hasNodeCheckFlag(o,256)||a.hasNodeCheckFlag(o,128));if(r&&(W(),_.size)){const n=rq(t,a,o,_);g[ZB(n)]=!0,Od(e,[n])}v&&Od(e,[q()]);const i=t.createBlock(e,!0);xI(i,o.body),r&&u&&(a.hasNodeCheckFlag(o,256)?qw(i,BN):a.hasNodeCheckFlag(o,128)&&qw(i,RN)),E=i}return l=k,h||(_=S,u=T,p=y),E}function W(){1&f||(f|=1,e.enableSubstitution(214),e.enableSubstitution(212),e.enableSubstitution(213),e.enableEmitNotification(264),e.enableEmitNotification(175),e.enableEmitNotification(178),e.enableEmitNotification(179),e.enableEmitNotification(177),e.enableEmitNotification(244))}function $(e){return 108===e.expression.kind?xI(t.createPropertyAccessExpression(t.createUniqueName("_super",48),e.name),e):e}function H(e){return 108===e.expression.kind?(n=e.argumentExpression,r=e,xI(256&m?t.createPropertyAccessExpression(t.createCallExpression(t.createUniqueName("_superIndex",48),void 0,[n]),"value"):t.createCallExpression(t.createUniqueName("_superIndex",48),void 0,[n]),r)):e;var n,r}}function rq(e,t,n,r){const i=t.hasNodeCheckFlag(n,256),o=[];return r.forEach((t,n)=>{const r=mc(n),a=[];a.push(e.createPropertyAssignment("get",e.createArrowFunction(void 0,void 0,[],void 0,void 0,xw(e.createPropertyAccessExpression(xw(e.createSuper(),8),r),8)))),i&&a.push(e.createPropertyAssignment("set",e.createArrowFunction(void 0,void 0,[e.createParameterDeclaration(void 0,void 0,"v",void 0,void 0,void 0)],void 0,void 0,e.createAssignment(xw(e.createPropertyAccessExpression(xw(e.createSuper(),8),r),8),e.createIdentifier("v"))))),o.push(e.createPropertyAssignment(r,e.createObjectLiteralExpression(a)))}),e.createVariableStatement(void 0,e.createVariableDeclarationList([e.createVariableDeclaration(e.createUniqueName("_super",48),void 0,void 0,e.createCallExpression(e.createPropertyAccessExpression(e.createIdentifier("Object"),"create"),void 0,[e.createNull(),e.createObjectLiteralExpression(o,!0)]))],2))}function iq(e){const{factory:t,getEmitHelperFactory:n,resumeLexicalEnvironment:r,endLexicalEnvironment:i,hoistVariableDeclaration:o}=e,a=e.getEmitResolver(),s=e.getCompilerOptions(),c=yk(s),l=e.onEmitNode;e.onEmitNode=function(e,t,n){if(1&y&&function(e){const t=e.kind;return 264===t||177===t||175===t||178===t||179===t}(t)){const r=(a.hasNodeCheckFlag(t,128)?128:0)|(a.hasNodeCheckFlag(t,256)?256:0);if(r!==v){const i=v;return v=r,l(e,t,n),void(v=i)}}else if(y&&x[ZB(t)]){const r=v;return v=0,l(e,t,n),void(v=r)}l(e,t,n)};const _=e.onSubstituteNode;e.onSubstituteNode=function(e,n){return n=_(e,n),1===e&&v?function(e){switch(e.kind){case 212:return Q(e);case 213:return Y(e);case 214:return function(e){const n=e.expression;if(am(n)){const r=dF(n)?Q(n):Y(n);return t.createCallExpression(t.createPropertyAccessExpression(r,"call"),void 0,[t.createThis(),...e.arguments])}return e}(e)}return e}(n):n};let u,d,p,f,m,g,h=!1,y=0,v=0,b=0;const x=[];return $J(e,function(n){if(n.isDeclarationFile)return n;p=n;const r=function(n){const r=k(2,yp(n,s)?0:1);h=!1;const i=vJ(n,C,e),o=K(i.statements,f&&[t.createVariableStatement(void 0,t.createVariableDeclarationList(f))]),a=t.updateSourceFile(i,xI(t.createNodeArray(o),n.statements));return S(r),a}(n);return Uw(r,e.readEmitHelpers()),p=void 0,f=void 0,r});function k(e,t){const n=b;return b=3&(b&~e|t),n}function S(e){b=e}function T(e){f=ie(f,t.createVariableDeclaration(e))}function C(e){return E(e,!1)}function w(e){return E(e,!0)}function N(e){if(134!==e.kind)return e}function D(e,t,n,r){if(function(e,t){return b!==(b&~e|t)}(n,r)){const i=k(n,r),o=e(t);return S(i),o}return e(t)}function F(t){return vJ(t,C,e)}function E(r,i){if(!(128&r.transformFlags))return r;switch(r.kind){case 224:return function(r){return 2&u&&1&u?hw(xI(t.createYieldExpression(void 0,n().createAwaitHelper(lJ(r.expression,C,V_))),r),r):vJ(r,C,e)}(r);case 230:return function(r){if(2&u&&1&u){if(r.asteriskToken){const e=lJ(un.checkDefined(r.expression),C,V_);return hw(xI(t.createYieldExpression(void 0,n().createAwaitHelper(t.updateYieldExpression(r,r.asteriskToken,xI(n().createAsyncDelegatorHelper(xI(n().createAsyncValuesHelper(e),e)),e)))),r),r)}return hw(xI(t.createYieldExpression(void 0,O(r.expression?lJ(r.expression,C,V_):t.createVoidZero())),r),r)}return vJ(r,C,e)}(r);case 254:return function(n){return 2&u&&1&u?t.updateReturnStatement(n,O(n.expression?lJ(n.expression,C,V_):t.createVoidZero())):vJ(n,C,e)}(r);case 257:return function(n){if(2&u){const e=Rf(n);return 251===e.kind&&e.awaitModifier?I(e,n):t.restoreEnclosingLabel(lJ(e,C,pu,t.liftToBlock),n)}return vJ(n,C,e)}(r);case 211:return function(r){if(65536&r.transformFlags){const e=function(e){let n;const r=[];for(const i of e)if(306===i.kind){n&&(r.push(t.createObjectLiteralExpression(n)),n=void 0);const e=i.expression;r.push(lJ(e,C,V_))}else n=ie(n,304===i.kind?t.createPropertyAssignment(i.name,lJ(i.initializer,C,V_)):lJ(i,C,v_));return n&&r.push(t.createObjectLiteralExpression(n)),r}(r.properties);e.length&&211!==e[0].kind&&e.unshift(t.createObjectLiteralExpression());let i=e[0];if(e.length>1){for(let t=1;t=2&&(a.hasNodeCheckFlag(o,256)||a.hasNodeCheckFlag(o,128));if(f){1&y||(y|=1,e.enableSubstitution(214),e.enableSubstitution(212),e.enableSubstitution(213),e.enableEmitNotification(264),e.enableEmitNotification(175),e.enableEmitNotification(178),e.enableEmitNotification(179),e.enableEmitNotification(177),e.enableEmitNotification(244));const n=rq(t,a,o,m);x[ZB(n)]=!0,Od(u,[n])}u.push(p);const h=t.updateBlock(o.body,u);return f&&g&&(a.hasNodeCheckFlag(o,256)?qw(h,BN):a.hasNodeCheckFlag(o,128)&&qw(h,RN)),m=l,g=_,h}function G(e){r();let n=0;const o=[],a=lJ(e.body,C,Y_)??t.createBlock([]);VF(a)&&(n=t.copyPrologue(a.statements,o,!1,C)),se(o,X(void 0,e));const s=i();if(n>0||$(o)||$(s)){const e=t.converters.convertToFunctionBlock(a,!0);return Od(o,s),se(o,e.statements.slice(n)),t.updateBlock(e,xI(t.createNodeArray(o),e.statements))}return a}function X(n,r){let i=!1;for(const o of r.parameters)if(i){if(k_(o.name)){if(o.name.elements.length>0){const r=Dz(o,C,e,0,t.getGeneratedNameForNode(o));if($(r)){const e=t.createVariableDeclarationList(r),i=t.createVariableStatement(void 0,e);xw(i,2097152),n=ie(n,i)}}else if(o.initializer){const e=t.getGeneratedNameForNode(o),r=lJ(o.initializer,C,V_),i=t.createAssignment(e,r),a=t.createExpressionStatement(i);xw(a,2097152),n=ie(n,a)}}else if(o.initializer){const e=t.cloneNode(o.name);xI(e,o.name),xw(e,96);const r=lJ(o.initializer,C,V_);kw(r,3168);const i=t.createAssignment(e,r);xI(i,o),xw(i,3072);const a=t.createBlock([t.createExpressionStatement(i)]);xI(a,o),xw(a,3905);const s=t.createTypeCheck(t.cloneNode(o.name),"undefined"),c=t.createIfStatement(s,a);FA(c),xI(c,o),xw(c,2101056),n=ie(n,c)}}else if(65536&o.transformFlags){i=!0;const r=Dz(o,C,e,1,t.getGeneratedNameForNode(o),!1,!0);if($(r)){const e=t.createVariableDeclarationList(r),i=t.createVariableStatement(void 0,e);xw(i,2097152),n=ie(n,i)}}return n}function Q(e){return 108===e.expression.kind?xI(t.createPropertyAccessExpression(t.createUniqueName("_super",48),e.name),e):e}function Y(e){return 108===e.expression.kind?(n=e.argumentExpression,r=e,xI(256&v?t.createPropertyAccessExpression(t.createCallExpression(t.createIdentifier("_superIndex"),void 0,[n]),"value"):t.createCallExpression(t.createIdentifier("_superIndex"),void 0,[n]),r)):e;var n,r}}function oq(e){const t=e.factory;return $J(e,function(t){return t.isDeclarationFile?t:vJ(t,n,e)});function n(r){return 64&r.transformFlags?300===r.kind?function(r){return r.variableDeclaration?vJ(r,n,e):t.updateCatchClause(r,t.createVariableDeclaration(t.createTempVariable(void 0)),lJ(r.block,n,VF))}(r):vJ(r,n,e):r}}function aq(e){const{factory:t,hoistVariableDeclaration:n}=e;return $J(e,function(t){return t.isDeclarationFile?t:vJ(t,r,e)});function r(i){if(!(32&i.transformFlags))return i;switch(i.kind){case 214:{const e=o(i,!1);return un.assertNotNode(e,BE),e}case 212:case 213:if(hl(i)){const e=s(i,!1,!1);return un.assertNotNode(e,BE),e}return vJ(i,r,e);case 227:return 61===i.operatorToken.kind?function(e){let i=lJ(e.left,r,V_),o=i;return tz(i)||(o=t.createTempVariable(n),i=t.createAssignment(o,i)),xI(t.createConditionalExpression(c(i,o),void 0,o,void 0,lJ(e.right,r,V_)),e)}(i):vJ(i,r,e);case 221:return function(e){return hl(ah(e.expression))?hw(a(e.expression,!1,!0),e):t.updateDeleteExpression(e,lJ(e.expression,r,V_))}(i);default:return vJ(i,r,e)}}function i(e,n,r){const i=a(e.expression,n,r);return BE(i)?t.createSyntheticReferenceExpression(t.updateParenthesizedExpression(e,i.expression),i.thisArg):t.updateParenthesizedExpression(e,i)}function o(n,o){if(hl(n))return s(n,o,!1);if(yF(n.expression)&&hl(ah(n.expression))){const e=i(n.expression,!0,!1),o=_J(n.arguments,r,V_);return BE(e)?xI(t.createFunctionCallCall(e.expression,e.thisArg,o),n):t.updateCallExpression(n,e,void 0,o)}return vJ(n,r,e)}function a(e,a,c){switch(e.kind){case 218:return i(e,a,c);case 212:case 213:return function(e,i,o){if(hl(e))return s(e,i,o);let a,c=lJ(e.expression,r,V_);return un.assertNotNode(c,BE),i&&(tz(c)?a=c:(a=t.createTempVariable(n),c=t.createAssignment(a,c))),c=212===e.kind?t.updatePropertyAccessExpression(e,c,lJ(e.name,r,aD)):t.updateElementAccessExpression(e,c,lJ(e.argumentExpression,r,V_)),a?t.createSyntheticReferenceExpression(c,a):c}(e,a,c);case 214:return o(e,a);default:return lJ(e,r,V_)}}function s(e,i,o){const{expression:s,chain:l}=function(e){un.assertNotNode(e,Tl);const t=[e];for(;!e.questionDotToken&&!gF(e);)e=nt(Sl(e.expression),hl),un.assertNotNode(e,Tl),t.unshift(e);return{expression:e.expression,chain:t}}(e),_=a(Sl(s),gl(l[0]),!1);let u=BE(_)?_.thisArg:void 0,d=BE(_)?_.expression:_,p=t.restoreOuterExpressions(s,d,8);tz(d)||(d=t.createTempVariable(n),p=t.createAssignment(d,p));let f,m=d;for(let e=0;ee&&se(c,_J(n.statements,_,pu,e,d-e));break}d++}un.assert(dt&&(t=e)}return t}(n.caseBlock.clauses);if(r){const i=m();return g([t.updateSwitchStatement(n,lJ(n.expression,_,V_),t.updateCaseBlock(n.caseBlock,n.caseBlock.clauses.map(n=>function(n,r){return 0!==pq(n.statements)?ZE(n)?t.updateCaseClause(n,lJ(n.expression,_,V_),u(n.statements,0,n.statements.length,r,void 0)):t.updateDefaultClause(n,u(n.statements,0,n.statements.length,r,void 0)):vJ(n,_,e)}(n,i))))],i,2===r)}return vJ(n,_,e)}(n);default:return vJ(n,_,e)}}function u(i,o,a,s,u){const m=[];for(let r=o;rt&&(t=e)}return t}function fq(e){const{factory:t,getEmitHelperFactory:n}=e,r=e.getCompilerOptions();let i,o;return $J(e,function(n){if(n.isDeclarationFile)return n;i=n,o={},o.importSpecifier=Kk(r,n);let a=vJ(n,c,e);Uw(a,e.readEmitHelpers());let s=a.statements;if(o.filenameDeclaration&&(s=Md(s.slice(),t.createVariableStatement(void 0,t.createVariableDeclarationList([o.filenameDeclaration],2)))),o.utilizedImplicitRuntimeImports)for(const[e,r]of Oe(o.utilizedImplicitRuntimeImports.entries()))if(rO(n)){const n=t.createImportDeclaration(void 0,t.createImportClause(void 0,void 0,t.createNamedImports(Oe(r.values()))),t.createStringLiteral(e),void 0);FT(n,!1),s=Md(s.slice(),n)}else if(Zp(n)){const n=t.createVariableStatement(void 0,t.createVariableDeclarationList([t.createVariableDeclaration(t.createObjectBindingPattern(Oe(r.values(),e=>t.createBindingElement(void 0,e.propertyName,e.name))),void 0,void 0,t.createCallExpression(t.createIdentifier("require"),void 0,[t.createStringLiteral(e)]))],2));FT(n,!1),s=Md(s.slice(),n)}return s!==a.statements&&(a=t.updateSourceFile(a,s)),o=void 0,a});function a(){if(o.filenameDeclaration)return o.filenameDeclaration.name;const e=t.createVariableDeclaration(t.createUniqueName("_jsxFileName",48),void 0,void 0,t.createStringLiteral(i.fileName));return o.filenameDeclaration=e,o.filenameDeclaration.name}function s(e){var n,i;const a="createElement"===e?o.importSpecifier:Gk(o.importSpecifier,r),s=null==(i=null==(n=o.utilizedImplicitRuntimeImports)?void 0:n.get(a))?void 0:i.get(e);if(s)return s.name;o.utilizedImplicitRuntimeImports||(o.utilizedImplicitRuntimeImports=new Map);let c=o.utilizedImplicitRuntimeImports.get(a);c||(c=new Map,o.utilizedImplicitRuntimeImports.set(a,c));const l=t.createUniqueName(`_${e}`,112),_=t.createImportSpecifier(!1,t.createIdentifier(e),l);return nN(l,_),c.set(e,_),l}function c(t){return 2&t.transformFlags?function(t){switch(t.kind){case 285:return f(t,!1);case 286:return m(t,!1);case 289:return g(t,!1);case 295:return O(t);default:return vJ(t,c,e)}}(t):t}function _(e){switch(e.kind){case 12:return function(e){const n=function(e){let t,n=0,r=-1;for(let i=0;irP(e)&&(aD(e.name)&&"__proto__"===gc(e.name)||UN(e.name)&&"__proto__"===e.name.text))}function p(e){return void 0===o.importSpecifier||function(e){let t=!1;for(const n of e.attributes.properties)if(!XE(n)||uF(n.expression)&&!n.expression.properties.some(oP)){if(t&&KE(n)&&aD(n.name)&&"key"===n.name.escapedText)return!0}else t=!0;return!1}(e)}function f(e,t){return(p(e.openingElement)?x:y)(e.openingElement,e.children,t,e)}function m(e,t){return(p(e)?x:y)(e,void 0,t,e)}function g(e,t){return(void 0===o.importSpecifier?S:k)(e.openingFragment,e.children,t,e)}function h(e){const n=ly(e);if(1===u(n)&&!n[0].dotDotDotToken){const e=_(n[0]);return e&&t.createPropertyAssignment("children",e)}const r=B(e,_);return u(r)?t.createPropertyAssignment("children",t.createArrayLiteralExpression(r)):void 0}function y(e,n,r,i){const o=P(e),a=n&&n.length?h(n):void 0,s=b(e.attributes.properties,e=>!!e.name&&aD(e.name)&&"key"===e.name.escapedText),c=s?N(e.attributes.properties,e=>e!==s):e.attributes.properties;return v(o,u(c)?T(c,a):t.createObjectLiteralExpression(a?[a]:l),s,n||l,r,i)}function v(e,n,o,c,l,_){var d;const p=ly(c),f=u(p)>1||!!(null==(d=p[0])?void 0:d.dotDotDotToken),m=[e,n];if(o&&m.push(w(o.initializer)),5===r.jsx){const e=_c(i);if(e&&sP(e)){void 0===o&&m.push(t.createVoidZero()),m.push(f?t.createTrue():t.createFalse());const n=za(e,_.pos);m.push(t.createObjectLiteralExpression([t.createPropertyAssignment("fileName",a()),t.createPropertyAssignment("lineNumber",t.createNumericLiteral(n.line+1)),t.createPropertyAssignment("columnNumber",t.createNumericLiteral(n.character+1))])),m.push(t.createThis())}}const g=xI(t.createCallExpression(function(e){const t=function(e){return 5===r.jsx?"jsxDEV":e?"jsxs":"jsx"}(e);return s(t)}(f),void 0,m),_);return l&&FA(g),g}function x(n,a,c,l){const d=P(n),p=n.attributes.properties,f=u(p)?T(p):t.createNull(),m=void 0===o.importSpecifier?cA(t,e.getEmitResolver().getJsxFactoryEntity(i),r.reactNamespace,n):s("createElement"),g=lA(t,m,d,f,B(a,_),l);return c&&FA(g),g}function k(e,n,r,i){let o;if(n&&n.length){const e=function(e){const n=h(e);return n&&t.createObjectLiteralExpression([n])}(n);e&&(o=e)}return v(s("Fragment"),o||t.createObjectLiteralExpression([]),void 0,n,r,i)}function S(n,o,a,s){const c=_A(t,e.getEmitResolver().getJsxFactoryEntity(i),e.getEmitResolver().getJsxFragmentFactoryEntity(i),r.reactNamespace,B(o,_),n,s);return a&&FA(c),c}function T(e,i){const o=yk(r);return o&&o>=5?t.createObjectLiteralExpression(function(e,n){const r=I(V(e,XE,(e,n)=>I(E(e,e=>{return n?uF((r=e).expression)&&!d(r.expression)?A(r.expression.properties,e=>un.checkDefined(lJ(e,c,v_))):t.createSpreadAssignment(un.checkDefined(lJ(r.expression,c,V_))):C(e);var r}))));return n&&r.push(n),r}(e,i)):function(e,r){const i=[];let o=[];for(const t of e)if(XE(t)){if(uF(t.expression)&&!d(t.expression)){for(const e of t.expression.properties)oP(e)?(a(),i.push(un.checkDefined(lJ(e.expression,c,V_)))):o.push(un.checkDefined(lJ(e,c)));continue}a(),i.push(un.checkDefined(lJ(t.expression,c,V_)))}else o.push(C(t));return r&&o.push(r),a(),i.length&&!uF(i[0])&&i.unshift(t.createObjectLiteralExpression()),be(i)||n().createAssignHelper(i);function a(){o.length&&(i.push(t.createObjectLiteralExpression(o)),o=[])}}(e,i)}function C(e){const n=function(e){const n=e.name;if(aD(n)){const e=gc(n);return/^[A-Z_]\w*$/i.test(e)?n:t.createStringLiteral(e)}return t.createStringLiteral(gc(n.namespace)+":"+gc(n.name))}(e),r=w(e.initializer);return t.createPropertyAssignment(n,r)}function w(e){if(void 0===e)return t.createTrue();if(11===e.kind){const n=void 0!==e.singleQuote?e.singleQuote:!qm(e,i);return xI(t.createStringLiteral(function(e){const t=F(e);return t===e?void 0:t}(e.text)||e.text,n),e)}return 295===e.kind?void 0===e.expression?t.createTrue():un.checkDefined(lJ(e.expression,c,V_)):zE(e)?f(e,!1):qE(e)?m(e,!1):WE(e)?g(e,!1):un.failBadSyntaxKind(e)}function D(e,t){const n=F(t);return void 0===e?n:e+" "+n}function F(e){return e.replace(/&((#((\d+)|x([\da-fA-F]+)))|(\w+));/g,(e,t,n,r,i,o,a)=>{if(i)return bs(parseInt(i,10));if(o)return bs(parseInt(o,16));{const t=mq.get(a);return t?bs(t):e}})}function P(e){if(285===e.kind)return P(e.openingElement);{const n=e.tagName;return aD(n)&&Ey(n.escapedText)?t.createStringLiteral(gc(n)):YE(n)?t.createStringLiteral(gc(n.namespace)+":"+gc(n.name)):dA(t,n)}}function O(e){const n=lJ(e.expression,c,V_);return e.dotDotDotToken?t.createSpreadElement(n):n}}var mq=new Map(Object.entries({quot:34,amp:38,apos:39,lt:60,gt:62,nbsp:160,iexcl:161,cent:162,pound:163,curren:164,yen:165,brvbar:166,sect:167,uml:168,copy:169,ordf:170,laquo:171,not:172,shy:173,reg:174,macr:175,deg:176,plusmn:177,sup2:178,sup3:179,acute:180,micro:181,para:182,middot:183,cedil:184,sup1:185,ordm:186,raquo:187,frac14:188,frac12:189,frac34:190,iquest:191,Agrave:192,Aacute:193,Acirc:194,Atilde:195,Auml:196,Aring:197,AElig:198,Ccedil:199,Egrave:200,Eacute:201,Ecirc:202,Euml:203,Igrave:204,Iacute:205,Icirc:206,Iuml:207,ETH:208,Ntilde:209,Ograve:210,Oacute:211,Ocirc:212,Otilde:213,Ouml:214,times:215,Oslash:216,Ugrave:217,Uacute:218,Ucirc:219,Uuml:220,Yacute:221,THORN:222,szlig:223,agrave:224,aacute:225,acirc:226,atilde:227,auml:228,aring:229,aelig:230,ccedil:231,egrave:232,eacute:233,ecirc:234,euml:235,igrave:236,iacute:237,icirc:238,iuml:239,eth:240,ntilde:241,ograve:242,oacute:243,ocirc:244,otilde:245,ouml:246,divide:247,oslash:248,ugrave:249,uacute:250,ucirc:251,uuml:252,yacute:253,thorn:254,yuml:255,OElig:338,oelig:339,Scaron:352,scaron:353,Yuml:376,fnof:402,circ:710,tilde:732,Alpha:913,Beta:914,Gamma:915,Delta:916,Epsilon:917,Zeta:918,Eta:919,Theta:920,Iota:921,Kappa:922,Lambda:923,Mu:924,Nu:925,Xi:926,Omicron:927,Pi:928,Rho:929,Sigma:931,Tau:932,Upsilon:933,Phi:934,Chi:935,Psi:936,Omega:937,alpha:945,beta:946,gamma:947,delta:948,epsilon:949,zeta:950,eta:951,theta:952,iota:953,kappa:954,lambda:955,mu:956,nu:957,xi:958,omicron:959,pi:960,rho:961,sigmaf:962,sigma:963,tau:964,upsilon:965,phi:966,chi:967,psi:968,omega:969,thetasym:977,upsih:978,piv:982,ensp:8194,emsp:8195,thinsp:8201,zwnj:8204,zwj:8205,lrm:8206,rlm:8207,ndash:8211,mdash:8212,lsquo:8216,rsquo:8217,sbquo:8218,ldquo:8220,rdquo:8221,bdquo:8222,dagger:8224,Dagger:8225,bull:8226,hellip:8230,permil:8240,prime:8242,Prime:8243,lsaquo:8249,rsaquo:8250,oline:8254,frasl:8260,euro:8364,image:8465,weierp:8472,real:8476,trade:8482,alefsym:8501,larr:8592,uarr:8593,rarr:8594,darr:8595,harr:8596,crarr:8629,lArr:8656,uArr:8657,rArr:8658,dArr:8659,hArr:8660,forall:8704,part:8706,exist:8707,empty:8709,nabla:8711,isin:8712,notin:8713,ni:8715,prod:8719,sum:8721,minus:8722,lowast:8727,radic:8730,prop:8733,infin:8734,ang:8736,and:8743,or:8744,cap:8745,cup:8746,int:8747,there4:8756,sim:8764,cong:8773,asymp:8776,ne:8800,equiv:8801,le:8804,ge:8805,sub:8834,sup:8835,nsub:8836,sube:8838,supe:8839,oplus:8853,otimes:8855,perp:8869,sdot:8901,lceil:8968,rceil:8969,lfloor:8970,rfloor:8971,lang:9001,rang:9002,loz:9674,spades:9824,clubs:9827,hearts:9829,diams:9830}));function gq(e){const{factory:t,hoistVariableDeclaration:n}=e;return $J(e,function(t){return t.isDeclarationFile?t:vJ(t,r,e)});function r(i){return 512&i.transformFlags?227===i.kind?function(i){switch(i.operatorToken.kind){case 68:return function(e){let i,o;const a=lJ(e.left,r,V_),s=lJ(e.right,r,V_);if(pF(a)){const e=t.createTempVariable(n),r=t.createTempVariable(n);i=xI(t.createElementAccessExpression(xI(t.createAssignment(e,a.expression),a.expression),xI(t.createAssignment(r,a.argumentExpression),a.argumentExpression)),a),o=xI(t.createElementAccessExpression(e,r),a)}else if(dF(a)){const e=t.createTempVariable(n);i=xI(t.createPropertyAccessExpression(xI(t.createAssignment(e,a.expression),a.expression),a.name),a),o=xI(t.createPropertyAccessExpression(e,a.name),a)}else i=a,o=a;return xI(t.createAssignment(i,xI(t.createGlobalMethodCall("Math","pow",[o,s]),e)),e)}(i);case 43:return function(e){const n=lJ(e.left,r,V_),i=lJ(e.right,r,V_);return xI(t.createGlobalMethodCall("Math","pow",[n,i]),e)}(i);default:return vJ(i,r,e)}}(i):vJ(i,r,e):i}}function hq(e,t){return{kind:e,expression:t}}function yq(e){const{factory:t,getEmitHelperFactory:n,startLexicalEnvironment:r,resumeLexicalEnvironment:i,endLexicalEnvironment:o,hoistVariableDeclaration:a}=e,s=e.getCompilerOptions(),c=e.getEmitResolver(),l=e.onSubstituteNode,_=e.onEmitNode;let u,d,p,f,m;function g(e){f=ie(f,t.createVariableDeclaration(e))}e.onEmitNode=function(e,t,n){if(1&h&&r_(t)){const r=y(32670,16&Zd(t)?81:65);return _(e,t,n),void b(r,0,0)}_(e,t,n)},e.onSubstituteNode=function(e,n){return n=l(e,n),1===e?function(e){switch(e.kind){case 80:return function(e){if(2&h&&!gA(e)){const n=c.getReferencedDeclarationWithCollidingName(e);if(n&&(!u_(n)||!function(e,t){let n=pc(t);if(!n||n===e||n.end<=e.pos||n.pos>=e.end)return!1;const r=Ep(e);for(;n;){if(n===r||n===e)return!1;if(__(n)&&n.parent===e)return!0;n=n.parent}return!1}(n,e)))return xI(t.getGeneratedNameForNode(Cc(n)),e)}return e}(e);case 110:return function(e){return 1&h&&16&p?xI(P(),e):e}(e)}return e}(n):aD(n)?function(e){if(2&h&&!gA(e)){const n=pc(e,aD);if(n&&function(e){switch(e.parent.kind){case 209:case 264:case 267:case 261:return e.parent.name===e&&c.isDeclarationWithCollidingName(e.parent)}return!1}(n))return xI(t.getGeneratedNameForNode(n),e)}return e}(n):n};let h=0;return $J(e,function(n){if(n.isDeclarationFile)return n;u=n,d=n.text;const i=function(e){const n=y(8064,64),i=[],a=[];r();const s=t.copyPrologue(e.statements,i,!1,S);return se(a,_J(e.statements,S,pu,s)),f&&a.push(t.createVariableStatement(void 0,t.createVariableDeclarationList(f))),t.mergeLexicalEnvironment(i,o()),ce(i,e),b(n,0,0),t.updateSourceFile(e,xI(t.createNodeArray(K(i,a)),e.statements))}(n);return Uw(i,e.readEmitHelpers()),u=void 0,d=void 0,f=void 0,p=0,i});function y(e,t){const n=p;return p=32767&(p&~e|t),n}function b(e,t,n){p=-32768&(p&~t|n)|e}function x(e){return!!(8192&p)&&254===e.kind&&!e.expression}function k(e){return!!(1024&e.transformFlags)||void 0!==m||8192&p&&function(e){return 4194304&e.transformFlags&&(nE(e)||KF(e)||rE(e)||iE(e)||yE(e)||ZE(e)||eP(e)||sE(e)||nP(e)||oE(e)||$_(e,!1)||VF(e))}(e)||$_(e,!1)&&qe(e)||!!(1&ep(e))}function S(e){return k(e)?D(e,!1):e}function T(e){return k(e)?D(e,!0):e}function C(e){if(k(e)){const t=_c(e);if(ND(t)&&Fv(t)){const t=y(32670,16449),n=D(e,!1);return b(t,229376,0),n}return D(e,!1)}return e}function w(e){return 108===e.kind?lt(e,!0):S(e)}function D(n,r){switch(n.kind){case 126:return;case 264:return function(e){const n=t.createVariableDeclaration(t.getLocalName(e,!0),void 0,void 0,O(e));hw(n,e);const r=[],i=t.createVariableStatement(void 0,t.createVariableDeclarationList([n]));if(hw(i,e),xI(i,e),FA(i),r.push(i),Nv(e,32)){const n=Nv(e,2048)?t.createExportDefault(t.getLocalName(e)):t.createExternalModuleExport(t.getLocalName(e));hw(n,i),r.push(n)}return ke(r)}(n);case 232:return function(e){return O(e)}(n);case 170:return function(e){return e.dotDotDotToken?void 0:k_(e.name)?hw(xI(t.createParameterDeclaration(void 0,void 0,t.getGeneratedNameForNode(e),void 0,void 0,void 0),e),e):e.initializer?hw(xI(t.createParameterDeclaration(void 0,void 0,e.name,void 0,void 0,void 0),e),e):e}(n);case 263:return function(n){const r=m;m=void 0;const i=y(32670,65),o=fJ(n.parameters,S,e),a=Se(n),s=32768&p?t.getLocalName(n):n.name;return b(i,229376,0),m=r,t.updateFunctionDeclaration(n,_J(n.modifiers,S,Zl),n.asteriskToken,s,void 0,o,void 0,a)}(n);case 220:return function(n){16384&n.transformFlags&&!(16384&p)&&(p|=131072);const r=m;m=void 0;const i=y(15232,66),o=t.createFunctionExpression(void 0,void 0,void 0,void 0,fJ(n.parameters,S,e),void 0,Se(n));return xI(o,n),hw(o,n),xw(o,16),b(i,0,0),m=r,o}(n);case 219:return function(n){const r=524288&Zd(n)?y(32662,69):y(32670,65),i=m;m=void 0;const o=fJ(n.parameters,S,e),a=Se(n),s=32768&p?t.getLocalName(n):n.name;return b(r,229376,0),m=i,t.updateFunctionExpression(n,void 0,n.asteriskToken,s,void 0,o,void 0,a)}(n);case 261:return we(n);case 80:return A(n);case 262:return function(n){if(7&n.flags||524288&n.transformFlags){7&n.flags&&_t();const e=_J(n.declarations,1&n.flags?Ce:we,lE),r=t.createVariableDeclarationList(e);return hw(r,n),xI(r,n),Aw(r,n),524288&n.transformFlags&&(k_(n.declarations[0].name)||k_(ve(n.declarations).name))&&ww(r,function(e){let t=-1,n=-1;for(const r of e)t=-1===t?r.pos:-1===r.pos?t:Math.min(t,r.pos),n=Math.max(n,r.end);return Ab(t,n)}(e)),r}return vJ(n,S,e)}(n);case 256:return function(t){if(void 0!==m){const n=m.allowedNonLabeledJumps;m.allowedNonLabeledJumps|=2;const r=vJ(t,S,e);return m.allowedNonLabeledJumps=n,r}return vJ(t,S,e)}(n);case 270:return function(t){const n=y(7104,0),r=vJ(t,S,e);return b(n,0,0),r}(n);case 242:return function(t){const n=256&p?y(7104,512):y(6976,128),r=vJ(t,S,e);return b(n,0,0),r}(n);case 253:case 252:return function(n){if(m){const e=253===n.kind?2:4;if(!(n.label&&m.labels&&m.labels.get(gc(n.label))||!n.label&&m.allowedNonLabeledJumps&e)){let e;const r=n.label;r?253===n.kind?(e=`break-${r.escapedText}`,Ge(m,!0,gc(r),e)):(e=`continue-${r.escapedText}`,Ge(m,!1,gc(r),e)):253===n.kind?(m.nonLocalJumps|=2,e="break"):(m.nonLocalJumps|=4,e="continue");let i=t.createStringLiteral(e);if(m.loopOutParameters.length){const e=m.loopOutParameters;let n;for(let r=0;rWF(e)&&!!ge(e.declarationList.declarations).initializer,i=m;m=void 0;const o=_J(n.statements,C,pu);m=i;const a=N(o,r),s=N(o,e=>!r(e)),c=nt(ge(a),WF).declarationList.declarations[0],l=NA(c.initializer);let _=tt(l,rb);!_&&NF(l)&&28===l.operatorToken.kind&&(_=tt(l.left,rb));const u=nt(_?NA(_.right):l,fF),d=nt(NA(u.expression),vF),p=d.body.statements;let f=0,g=-1;const h=[];if(_){const e=tt(p[f],HF);e&&(h.push(e),f++),h.push(p[f]),f++,h.push(t.createExpressionStatement(t.createAssignment(_.left,nt(c.name,aD))))}for(;!nE(pe(p,g));)g--;se(h,p,f,g),g<-1&&se(h,p,g+1);const y=tt(pe(p,g),nE);for(const e of s)nE(e)&&(null==y?void 0:y.expression)&&!aD(y.expression)?h.push(y):h.push(e);return se(h,a,1),t.restoreOuterExpressions(e.expression,t.restoreOuterExpressions(c.initializer,t.restoreOuterExpressions(_&&_.right,t.updateCallExpression(u,t.restoreOuterExpressions(u.expression,t.updateFunctionExpression(d,void 0,void 0,void 0,void 0,d.parameters,void 0,t.updateBlock(d.body,h))),void 0,u.arguments))))}(n);const r=NA(n.expression);return 108===r.kind||am(r)||$(n.arguments,PF)?function(n){if(32768&n.transformFlags||108===n.expression.kind||am(NA(n.expression))){const{target:e,thisArg:r}=t.createCallBinding(n.expression,a);let i;if(108===n.expression.kind&&xw(r,8),i=32768&n.transformFlags?t.createFunctionApplyCall(un.checkDefined(lJ(e,w,V_)),108===n.expression.kind?r:un.checkDefined(lJ(r,S,V_)),rt(n.arguments,!0,!1,!1)):xI(t.createFunctionCallCall(un.checkDefined(lJ(e,w,V_)),108===n.expression.kind?r:un.checkDefined(lJ(r,S,V_)),_J(n.arguments,S,V_)),n),108===n.expression.kind){const e=t.createLogicalOr(i,Z());i=t.createAssignment(P(),e)}return hw(i,n)}return lf(n)&&(p|=131072),vJ(n,S,e)}(n):t.updateCallExpression(n,un.checkDefined(lJ(n.expression,w,V_)),void 0,_J(n.arguments,S,V_))}(n);case 215:return function(n){if($(n.arguments,PF)){const{target:e,thisArg:r}=t.createCallBinding(t.createPropertyAccessExpression(n.expression,"bind"),a);return t.createNewExpression(t.createFunctionApplyCall(un.checkDefined(lJ(e,S,V_)),r,rt(t.createNodeArray([t.createVoidZero(),...n.arguments]),!0,!1,!1)),void 0,[])}return vJ(n,S,e)}(n);case 218:return function(t,n){return vJ(t,n?T:S,e)}(n,r);case 227:return Te(n,r);case 357:return function(n,r){if(r)return vJ(n,T,e);let i;for(let e=0;e0&&e.push(t.createStringLiteral(r.literal.text)),n=t.createCallExpression(t.createPropertyAccessExpression(n,"concat"),void 0,e)}return xI(n,e)}(n);case 231:return function(e){return lJ(e.expression,S,V_)}(n);case 108:return lt(n,!1);case 110:return function(e){return p|=65536,2&p&&!(16384&p)&&(p|=131072),m?2&p?(m.containsLexicalThis=!0,e):m.thisName||(m.thisName=t.createUniqueName("this")):e}(n);case 237:return function(e){return 105===e.keywordToken&&"target"===e.name.escapedText?(p|=32768,t.createUniqueName("_newTarget",48)):e}(n);case 175:return function(e){un.assert(!kD(e.name));const n=xe(e,Ob(e,-1),void 0,void 0);return xw(n,1024|Zd(n)),xI(t.createPropertyAssignment(e.name,n),e)}(n);case 178:case 179:return function(n){un.assert(!kD(n.name));const r=m;m=void 0;const i=y(32670,65);let o;const a=fJ(n.parameters,S,e),s=Se(n);return o=178===n.kind?t.updateGetAccessorDeclaration(n,n.modifiers,n.name,a,n.type,s):t.updateSetAccessorDeclaration(n,n.modifiers,n.name,a,s),b(i,229376,0),m=r,o}(n);case 244:return function(n){const r=y(0,Nv(n,32)?32:0);let i;if(!m||7&n.declarationList.flags||function(e){return 1===e.declarationList.declarations.length&&!!e.declarationList.declarations[0].initializer&&!!(1&ep(e.declarationList.declarations[0].initializer))}(n))i=vJ(n,S,e);else{let r;for(const i of n.declarationList.declarations)if(Ve(m,i),i.initializer){let n;k_(i.name)?n=Cz(i,S,e,0):(n=t.createBinaryExpression(i.name,64,un.checkDefined(lJ(i.initializer,S,V_))),xI(n,i)),r=ie(r,n)}i=r?xI(t.createExpressionStatement(t.inlineExpressions(r)),n):void 0}return b(r,0,0),i}(n);case 254:return function(n){return m?(m.nonLocalJumps|=8,x(n)&&(n=F(n)),t.createReturnStatement(t.createObjectLiteralExpression([t.createPropertyAssignment(t.createIdentifier("value"),n.expression?un.checkDefined(lJ(n.expression,S,V_)):t.createVoidZero())]))):x(n)?F(n):vJ(n,S,e)}(n);default:return vJ(n,S,e)}}function F(e){return hw(t.createReturnStatement(P()),e)}function P(){return t.createUniqueName("_this",48)}function A(e){return m&&c.isArgumentsLocalBinding(e)?m.argumentsName||(m.argumentsName=t.createUniqueName("arguments")):256&e.flags?hw(xI(t.createIdentifier(mc(e.escapedText)),e),e):e}function O(a){a.name&&_t();const s=vh(a),c=t.createFunctionExpression(void 0,void 0,void 0,void 0,s?[t.createParameterDeclaration(void 0,void 0,ct())]:[],void 0,function(a,s){const c=[],l=t.getInternalName(a),_=Ph(l)?t.getGeneratedNameForNode(l):l;r(),function(e,r,i){i&&e.push(xI(t.createExpressionStatement(n().createExtendsHelper(t.getInternalName(r))),i))}(c,a,s),function(n,r,a,s){const c=m;m=void 0;const l=y(32662,73),_=iv(r),u=function(e,t){if(!e||!t)return!1;if($(e.parameters))return!1;const n=fe(e.body.statements);if(!n||!ey(n)||245!==n.kind)return!1;const r=n.expression;if(!ey(r)||214!==r.kind)return!1;const i=r.expression;if(!ey(i)||108!==i.kind)return!1;const o=be(r.arguments);if(!o||!ey(o)||231!==o.kind)return!1;const a=o.expression;return aD(a)&&"arguments"===a.escapedText}(_,void 0!==s),d=t.createFunctionDeclaration(void 0,void 0,a,void 0,function(t,n){return fJ(t&&!n?t.parameters:void 0,S,e)||[]}(_,u),void 0,function(e,n,r,a){const s=!!r&&106!==NA(r.expression).kind;if(!e)return function(e,n){const r=[];i(),t.mergeLexicalEnvironment(r,o()),n&&r.push(t.createReturnStatement(t.createLogicalOr(t.createLogicalAnd(t.createStrictInequality(ct(),t.createNull()),t.createFunctionApplyCall(ct(),Z(),t.createIdentifier("arguments"))),Z())));const a=t.createNodeArray(r);xI(a,e.members);const s=t.createBlock(a,!0);return xI(s,e),xw(s,3072),s}(n,s);const c=[],l=[];i();const _=t.copyStandardPrologue(e.body.statements,c,0);(a||j(e.body))&&(p|=8192),se(l,_J(e.body.statements,S,pu,_));const u=s||8192&p;ne(c,e),ae(c,e,a),_e(c,e),u?le(c,e,Z()):ce(c,e),t.mergeLexicalEnvironment(c,o()),u&&!Y(e.body)&&l.push(t.createReturnStatement(P()));const d=t.createBlock(xI(t.createNodeArray([...c,...l]),e.body.statements),!0);return xI(d,e.body),function(e,n,r){const i=e;return e=function(e){for(let n=0;n0;n--){const i=e.statements[n];if(nE(i)&&i.expression&&M(i.expression)){const i=e.statements[n-1];let o;if(HF(i)&&H(NA(i.expression)))o=i.expression;else if(r&&B(i)){const e=i.declarationList.declarations[0];G(NA(e.initializer))&&(o=t.createAssignment(P(),e.initializer))}if(!o)break;const a=t.createReturnStatement(o);hw(a,i),xI(a,i);const s=t.createNodeArray([...e.statements.slice(0,n-1),a,...e.statements.slice(n+1)]);return xI(s,e.statements),t.updateBlock(e,s)}}return e}(e,n),e!==i&&(e=function(e,n){if(16384&n.transformFlags||65536&p||131072&p)return e;for(const t of n.statements)if(134217728&t.transformFlags&&!oz(t))return e;return t.updateBlock(e,_J(e.statements,X,pu))}(e,n)),r&&(e=function(e){return t.updateBlock(e,_J(e.statements,Q,pu))}(e)),e}(d,e.body,a)}(_,r,s,u));xI(d,_||r),s&&xw(d,16),n.push(d),b(l,229376,0),m=c}(c,a,_,s),function(e,t){for(const n of t.members)switch(n.kind){case 241:e.push(ue(n));break;case 175:e.push(de(ut(t,n),n,t));break;case 178:case 179:const r=pv(t.members,n);n===r.firstAccessor&&e.push(me(ut(t,n),r,t));break;case 177:case 176:break;default:un.failBadSyntaxKind(n,u&&u.fileName)}}(c,a);const f=Mb(Qa(d,a.members.end),20),g=t.createPartiallyEmittedExpression(_);TT(g,f.end),xw(g,3072);const h=t.createReturnStatement(g);ST(h,f.pos),xw(h,3840),c.push(h),Od(c,o());const v=t.createBlock(xI(t.createNodeArray(c),a.members),!0);return xw(v,3072),v}(a,s));xw(c,131072&Zd(a)|1048576);const l=t.createPartiallyEmittedExpression(c);TT(l,a.end),xw(l,3072);const _=t.createPartiallyEmittedExpression(l);TT(_,Qa(d,a.pos)),xw(_,3072);const f=t.createParenthesizedExpression(t.createCallExpression(_,void 0,s?[un.checkDefined(lJ(s.expression,S,V_))]:[]));return Lw(f,3,"* @class "),f}function L(e){return WF(e)&&v(e.declarationList.declarations,e=>aD(e.name)&&!e.initializer)}function j(e){if(lf(e))return!0;if(!(134217728&e.transformFlags))return!1;switch(e.kind){case 220:case 219:case 263:case 177:case 176:return!1;case 178:case 179:case 175:case 173:{const t=e;return!!kD(t.name)&&!!XI(t.name,j)}}return!!XI(e,j)}function M(e){return Wl(e)&&"_this"===gc(e)}function R(e){return Wl(e)&&"_super"===gc(e)}function B(e){return WF(e)&&1===e.declarationList.declarations.length&&function(e){return lE(e)&&M(e.name)&&!!e.initializer}(e.declarationList.declarations[0])}function J(e){return rb(e,!0)&&M(e.left)}function z(e){return fF(e)&&dF(e.expression)&&R(e.expression.expression)&&aD(e.expression.name)&&("call"===gc(e.expression.name)||"apply"===gc(e.expression.name))&&e.arguments.length>=1&&110===e.arguments[0].kind}function q(e){return NF(e)&&57===e.operatorToken.kind&&110===e.right.kind&&z(e.left)}function U(e){return NF(e)&&56===e.operatorToken.kind&&NF(e.left)&&38===e.left.operatorToken.kind&&R(e.left.left)&&106===e.left.right.kind&&z(e.right)&&"apply"===gc(e.right.expression.name)}function W(e){return NF(e)&&57===e.operatorToken.kind&&110===e.right.kind&&U(e.left)}function H(e){return J(e)&&q(e.right)}function G(e){return z(e)||q(e)||H(e)||U(e)||W(e)||function(e){return J(e)&&W(e.right)}(e)}function X(e){if(B(e)){if(110===e.declarationList.declarations[0].initializer.kind)return}else if(J(e))return t.createPartiallyEmittedExpression(e.right,e);switch(e.kind){case 220:case 219:case 263:case 177:case 176:return e;case 178:case 179:case 175:case 173:{const n=e;return kD(n.name)?t.replacePropertyName(n,vJ(n.name,X,void 0)):e}}return vJ(e,X,void 0)}function Q(e){if(z(e)&&2===e.arguments.length&&aD(e.arguments[1])&&"arguments"===gc(e.arguments[1]))return t.createLogicalAnd(t.createStrictInequality(ct(),t.createNull()),e);switch(e.kind){case 220:case 219:case 263:case 177:case 176:return e;case 178:case 179:case 175:case 173:{const n=e;return kD(n.name)?t.replacePropertyName(n,vJ(n.name,Q,void 0)):e}}return vJ(e,Q,void 0)}function Y(e){if(254===e.kind)return!0;if(246===e.kind){const t=e;if(t.elseStatement)return Y(t.thenStatement)&&Y(t.elseStatement)}else if(242===e.kind){const t=ye(e.statements);if(t&&Y(t))return!0}return!1}function Z(){return xw(t.createThis(),8)}function ee(e){return void 0!==e.initializer||k_(e.name)}function ne(e,t){if(!$(t.parameters,ee))return!1;let n=!1;for(const r of t.parameters){const{name:t,initializer:i,dotDotDotToken:o}=r;o||(k_(t)?n=re(e,r,t,i)||n:i&&(oe(e,r,t,i),n=!0))}return n}function re(n,r,i,o){return i.elements.length>0?(Md(n,xw(t.createVariableStatement(void 0,t.createVariableDeclarationList(Dz(r,S,e,0,t.getGeneratedNameForNode(r)))),2097152)),!0):!!o&&(Md(n,xw(t.createExpressionStatement(t.createAssignment(t.getGeneratedNameForNode(r),un.checkDefined(lJ(o,S,V_)))),2097152)),!0)}function oe(e,n,r,i){i=un.checkDefined(lJ(i,S,V_));const o=t.createIfStatement(t.createTypeCheck(t.cloneNode(r),"undefined"),xw(xI(t.createBlock([t.createExpressionStatement(xw(xI(t.createAssignment(xw(DT(xI(t.cloneNode(r),r),r.parent),96),xw(i,3168|Zd(i))),n),3072))]),n),3905));FA(o),xI(o,n),xw(o,2101056),Md(e,o)}function ae(n,r,i){const o=[],a=ye(r.parameters);if(!function(e,t){return!(!e||!e.dotDotDotToken||t)}(a,i))return!1;const s=80===a.name.kind?DT(xI(t.cloneNode(a.name),a.name),a.name.parent):t.createTempVariable(void 0);xw(s,96);const c=80===a.name.kind?t.cloneNode(a.name):s,l=r.parameters.length-1,_=t.createLoopVariable();o.push(xw(xI(t.createVariableStatement(void 0,t.createVariableDeclarationList([t.createVariableDeclaration(s,void 0,void 0,t.createArrayLiteralExpression([]))])),a),2097152));const u=t.createForStatement(xI(t.createVariableDeclarationList([t.createVariableDeclaration(_,void 0,void 0,t.createNumericLiteral(l))]),a),xI(t.createLessThan(_,t.createPropertyAccessExpression(t.createIdentifier("arguments"),"length")),a),xI(t.createPostfixIncrement(_),a),t.createBlock([FA(xI(t.createExpressionStatement(t.createAssignment(t.createElementAccessExpression(c,0===l?_:t.createSubtract(_,t.createNumericLiteral(l))),t.createElementAccessExpression(t.createIdentifier("arguments"),_))),a))]));return xw(u,2097152),FA(u),o.push(u),80!==a.name.kind&&o.push(xw(xI(t.createVariableStatement(void 0,t.createVariableDeclarationList(Dz(a,S,e,0,c))),a),2097152)),Ld(n,o),!0}function ce(e,n){return!!(131072&p&&220!==n.kind)&&(le(e,n,t.createThis()),!0)}function le(n,r,i){1&h||(h|=1,e.enableSubstitution(110),e.enableEmitNotification(177),e.enableEmitNotification(175),e.enableEmitNotification(178),e.enableEmitNotification(179),e.enableEmitNotification(220),e.enableEmitNotification(219),e.enableEmitNotification(263));const o=t.createVariableStatement(void 0,t.createVariableDeclarationList([t.createVariableDeclaration(P(),void 0,void 0,i)]));xw(o,2100224),ww(o,r),Md(n,o)}function _e(e,n){if(32768&p){let r;switch(n.kind){case 220:return e;case 175:case 178:case 179:r=t.createVoidZero();break;case 177:r=t.createPropertyAccessExpression(xw(t.createThis(),8),"constructor");break;case 263:case 219:r=t.createConditionalExpression(t.createLogicalAnd(xw(t.createThis(),8),t.createBinaryExpression(xw(t.createThis(),8),104,t.getLocalName(n))),void 0,t.createPropertyAccessExpression(xw(t.createThis(),8),"constructor"),void 0,t.createVoidZero());break;default:return un.failBadSyntaxKind(n)}const i=t.createVariableStatement(void 0,t.createVariableDeclarationList([t.createVariableDeclaration(t.createUniqueName("_newTarget",48),void 0,void 0,r)]));xw(i,2100224),Md(e,i)}return e}function ue(e){return xI(t.createEmptyStatement(),e)}function de(n,r,i){const o=Pw(r),a=Cw(r),s=xe(r,r,void 0,i),c=lJ(r.name,S,t_);let l;if(un.assert(c),!sD(c)&&Ik(e.getCompilerOptions())){const e=kD(c)?c.expression:aD(c)?t.createStringLiteral(mc(c.escapedText)):c;l=t.createObjectDefinePropertyCall(n,e,t.createPropertyDescriptor({value:s,enumerable:!1,writable:!0,configurable:!0}))}else{const e=oA(t,n,c,r.name);l=t.createAssignment(e,s)}xw(s,3072),ww(s,a);const _=xI(t.createExpressionStatement(l),r);return hw(_,r),Aw(_,o),xw(_,96),_}function me(e,n,r){const i=t.createExpressionStatement(he(e,n,r,!1));return xw(i,3072),ww(i,Cw(n.firstAccessor)),i}function he(e,{firstAccessor:n,getAccessor:r,setAccessor:i},o,a){const s=DT(xI(t.cloneNode(e),e),e.parent);xw(s,3136),ww(s,n.name);const c=lJ(n.name,S,t_);if(un.assert(c),sD(c))return un.failBadSyntaxKind(c,"Encountered unhandled private identifier while transforming ES2015.");const l=pA(t,c);xw(l,3104),ww(l,n.name);const _=[];if(r){const e=xe(r,void 0,void 0,o);ww(e,Cw(r)),xw(e,1024);const n=t.createPropertyAssignment("get",e);Aw(n,Pw(r)),_.push(n)}if(i){const e=xe(i,void 0,void 0,o);ww(e,Cw(i)),xw(e,1024);const n=t.createPropertyAssignment("set",e);Aw(n,Pw(i)),_.push(n)}_.push(t.createPropertyAssignment("enumerable",r||i?t.createFalse():t.createTrue()),t.createPropertyAssignment("configurable",t.createTrue()));const u=t.createCallExpression(t.createPropertyAccessExpression(t.createIdentifier("Object"),"defineProperty"),void 0,[s,l,t.createObjectLiteralExpression(_,!0)]);return a&&FA(u),u}function xe(n,r,i,o){const a=m;m=void 0;const s=o&&u_(o)&&!Dv(n)?y(32670,73):y(32670,65),c=fJ(n.parameters,S,e),l=Se(n);return 32768&p&&!i&&(263===n.kind||219===n.kind)&&(i=t.getGeneratedNameForNode(n)),b(s,229376,0),m=a,hw(xI(t.createFunctionExpression(void 0,n.asteriskToken,i,void 0,c,void 0,l),r),n)}function Se(e){let n,r,a=!1,s=!1;const c=[],l=[],_=e.body;let d;if(i(),VF(_)&&(d=t.copyStandardPrologue(_.statements,c,0,!1),d=t.copyCustomPrologue(_.statements,l,d,S,mf),d=t.copyCustomPrologue(_.statements,l,d,S,hf)),a=ne(l,e)||a,a=ae(l,e,!1)||a,VF(_))d=t.copyCustomPrologue(_.statements,l,d,S),n=_.statements,se(l,_J(_.statements,S,pu,d)),!a&&_.multiLine&&(a=!0);else{un.assert(220===e.kind),n=Ib(_,-1);const i=e.equalsGreaterThanToken;ey(i)||ey(_)||(qb(i,_,u)?s=!0:a=!0);const o=lJ(_,S,V_),c=t.createReturnStatement(o);xI(c,_),Bw(c,_),xw(c,2880),l.push(c),r=_}if(t.mergeLexicalEnvironment(c,o()),_e(c,e),ce(c,e),$(c)&&(a=!0),l.unshift(...c),VF(_)&&te(l,_.statements))return _;const p=t.createBlock(xI(t.createNodeArray(l),n),a);return xI(p,e.body),!a&&s&&xw(p,1),r&&Dw(p,20,r),hw(p,e.body),p}function Te(n,r){return ib(n)?Cz(n,S,e,0,!r):28===n.operatorToken.kind?t.updateBinaryExpression(n,un.checkDefined(lJ(n.left,T,V_)),n.operatorToken,un.checkDefined(lJ(n.right,r?T:S,V_))):vJ(n,S,e)}function Ce(n){return k_(n.name)?we(n):!n.initializer&&function(e){const t=c.hasNodeCheckFlag(e,16384),n=c.hasNodeCheckFlag(e,32768);return!(64&p||t&&n&&512&p)&&!(4096&p)&&(!c.isDeclarationWithCollidingName(e)||n&&!t&&!(6144&p))}(n)?t.updateVariableDeclaration(n,n.name,void 0,void 0,t.createVoidZero()):vJ(n,S,e)}function we(t){const n=y(32,0);let r;return r=k_(t.name)?Dz(t,S,e,0,void 0,!!(32&n)):vJ(t,S,e),b(n,0,0),r}function Ne(e){m.labels.set(gc(e.label),!0)}function De(e){m.labels.set(gc(e.label),!1)}function Fe(n,i,a,s,c){const l=y(n,i),_=function(n,i,a,s){if(!qe(n)){let r;m&&(r=m.allowedNonLabeledJumps,m.allowedNonLabeledJumps=6);const o=s?s(n,i,void 0,a):t.restoreEnclosingLabel(QF(n)?function(e){return t.updateForStatement(e,lJ(e.initializer,T,eu),lJ(e.condition,S,V_),lJ(e.incrementor,T,V_),un.checkDefined(lJ(e.statement,S,pu,t.liftToBlock)))}(n):vJ(n,S,e),i,m&&De);return m&&(m.allowedNonLabeledJumps=r),o}const c=function(e){let t;switch(e.kind){case 249:case 250:case 251:const n=e.initializer;n&&262===n.kind&&(t=n)}const n=[],r=[];if(t&&7&ac(t)){const i=Be(e)||Je(e)||ze(e);for(const o of t.declarations)Qe(e,o,n,r,i)}const i={loopParameters:n,loopOutParameters:r};return m&&(m.argumentsName&&(i.argumentsName=m.argumentsName),m.thisName&&(i.thisName=m.thisName),m.hoistedLocalVariables&&(i.hoistedLocalVariables=m.hoistedLocalVariables)),i}(n),l=[],_=m;m=c;const u=Be(n)?function(e,n){const r=t.createUniqueName("_loop_init"),i=!!(1048576&e.initializer.transformFlags);let o=0;n.containsLexicalThis&&(o|=16),i&&4&p&&(o|=524288);const a=[];a.push(t.createVariableStatement(void 0,e.initializer)),Ke(n.loopOutParameters,2,1,a);return{functionName:r,containsYield:i,functionDeclaration:t.createVariableStatement(void 0,xw(t.createVariableDeclarationList([t.createVariableDeclaration(r,void 0,void 0,xw(t.createFunctionExpression(void 0,i?t.createToken(42):void 0,void 0,void 0,void 0,void 0,un.checkDefined(lJ(t.createBlock(a,!0),S,VF))),o))]),4194304)),part:t.createVariableDeclarationList(E(n.loopOutParameters,$e))}}(n,c):void 0,d=Ue(n)?function(e,n,i){const a=t.createUniqueName("_loop");r();const s=lJ(e.statement,S,pu,t.liftToBlock),c=o(),l=[];(Je(e)||ze(e))&&(n.conditionVariable=t.createUniqueName("inc"),e.incrementor?l.push(t.createIfStatement(n.conditionVariable,t.createExpressionStatement(un.checkDefined(lJ(e.incrementor,S,V_))),t.createExpressionStatement(t.createAssignment(n.conditionVariable,t.createTrue())))):l.push(t.createIfStatement(t.createLogicalNot(n.conditionVariable),t.createExpressionStatement(t.createAssignment(n.conditionVariable,t.createTrue())))),Je(e)&&l.push(t.createIfStatement(t.createPrefixUnaryExpression(54,un.checkDefined(lJ(e.condition,S,V_))),un.checkDefined(lJ(t.createBreakStatement(),S,pu))))),un.assert(s),VF(s)?se(l,s.statements):l.push(s),Ke(n.loopOutParameters,1,1,l),Od(l,c);const _=t.createBlock(l,!0);VF(s)&&hw(_,s);const u=!!(1048576&e.statement.transformFlags);let d=1048576;n.containsLexicalThis&&(d|=16),u&&4&p&&(d|=524288);const f=t.createVariableStatement(void 0,xw(t.createVariableDeclarationList([t.createVariableDeclaration(a,void 0,void 0,xw(t.createFunctionExpression(void 0,u?t.createToken(42):void 0,void 0,void 0,n.loopParameters,void 0,_),d))]),4194304)),m=function(e,n,r,i){const o=[],a=!(-5&n.nonLocalJumps||n.labeledNonLocalBreaks||n.labeledNonLocalContinues),s=t.createCallExpression(e,void 0,E(n.loopParameters,e=>e.name)),c=i?t.createYieldExpression(t.createToken(42),xw(s,8388608)):s;if(a)o.push(t.createExpressionStatement(c)),Ke(n.loopOutParameters,1,0,o);else{const e=t.createUniqueName("state"),i=t.createVariableStatement(void 0,t.createVariableDeclarationList([t.createVariableDeclaration(e,void 0,void 0,c)]));if(o.push(i),Ke(n.loopOutParameters,1,0,o),8&n.nonLocalJumps){let n;r?(r.nonLocalJumps|=8,n=t.createReturnStatement(e)):n=t.createReturnStatement(t.createPropertyAccessExpression(e,"value")),o.push(t.createIfStatement(t.createTypeCheck(e,"object"),n))}if(2&n.nonLocalJumps&&o.push(t.createIfStatement(t.createStrictEquality(e,t.createStringLiteral("break")),t.createBreakStatement())),n.labeledNonLocalBreaks||n.labeledNonLocalContinues){const i=[];Xe(n.labeledNonLocalBreaks,!0,e,r,i),Xe(n.labeledNonLocalContinues,!1,e,r,i),o.push(t.createSwitchStatement(e,t.createCaseBlock(i)))}}return o}(a,n,i,u);return{functionName:a,containsYield:u,functionDeclaration:f,part:m}}(n,c,_):void 0;let f;if(m=_,u&&l.push(u.functionDeclaration),d&&l.push(d.functionDeclaration),function(e,n,r){let i;if(n.argumentsName&&(r?r.argumentsName=n.argumentsName:(i||(i=[])).push(t.createVariableDeclaration(n.argumentsName,void 0,void 0,t.createIdentifier("arguments")))),n.thisName&&(r?r.thisName=n.thisName:(i||(i=[])).push(t.createVariableDeclaration(n.thisName,void 0,void 0,t.createIdentifier("this")))),n.hoistedLocalVariables)if(r)r.hoistedLocalVariables=n.hoistedLocalVariables;else{i||(i=[]);for(const e of n.hoistedLocalVariables)i.push(t.createVariableDeclaration(e))}if(n.loopOutParameters.length){i||(i=[]);for(const e of n.loopOutParameters)i.push(t.createVariableDeclaration(e.outParamName))}n.conditionVariable&&(i||(i=[]),i.push(t.createVariableDeclaration(n.conditionVariable,void 0,void 0,t.createFalse()))),i&&e.push(t.createVariableStatement(void 0,t.createVariableDeclarationList(i)))}(l,c,_),u&&l.push(function(e,n){const r=t.createCallExpression(e,void 0,[]),i=n?t.createYieldExpression(t.createToken(42),xw(r,8388608)):r;return t.createExpressionStatement(i)}(u.functionName,u.containsYield)),d)if(s)f=s(n,i,d.part,a);else{const e=We(n,u,t.createBlock(d.part,!0));f=t.restoreEnclosingLabel(e,i,m&&De)}else{const e=We(n,u,un.checkDefined(lJ(n.statement,S,pu,t.liftToBlock)));f=t.restoreEnclosingLabel(e,i,m&&De)}return l.push(f),l}(a,s,l,c);return b(l,0,0),_}function Ee(e,t){return Fe(0,1280,e,t)}function Pe(e,t){return Fe(5056,3328,e,t)}function Ae(e,t){return Fe(3008,5376,e,t)}function Ie(e,t){return Fe(3008,5376,e,t,s.downlevelIteration?Me:je)}function Oe(n,r,i){const o=[],a=n.initializer;if(_E(a)){7&n.initializer.flags&&_t();const i=fe(a.declarations);if(i&&k_(i.name)){const a=Dz(i,S,e,0,r),s=xI(t.createVariableDeclarationList(a),n.initializer);hw(s,n.initializer),ww(s,Ab(a[0].pos,ve(a).end)),o.push(t.createVariableStatement(void 0,s))}else o.push(xI(t.createVariableStatement(void 0,hw(xI(t.createVariableDeclarationList([t.createVariableDeclaration(i?i.name:t.createTempVariable(void 0),void 0,void 0,r)]),Ob(a,-1)),a)),Ib(a,-1)))}else{const e=t.createAssignment(a,r);ib(e)?o.push(t.createExpressionStatement(Te(e,!0))):(TT(e,a.end),o.push(xI(t.createExpressionStatement(un.checkDefined(lJ(e,S,V_))),Ib(a,-1))))}if(i)return Le(se(o,i));{const e=lJ(n.statement,S,pu,t.liftToBlock);return un.assert(e),VF(e)?t.updateBlock(e,xI(t.createNodeArray(K(o,e.statements)),e.statements)):(o.push(e),Le(o))}}function Le(e){return xw(t.createBlock(t.createNodeArray(e),!0),864)}function je(e,n,r){const i=lJ(e.expression,S,V_);un.assert(i);const o=t.createLoopVariable(),a=aD(i)?t.getGeneratedNameForNode(i):t.createTempVariable(void 0);xw(i,96|Zd(i));const s=xI(t.createForStatement(xw(xI(t.createVariableDeclarationList([xI(t.createVariableDeclaration(o,void 0,void 0,t.createNumericLiteral(0)),Ob(e.expression,-1)),xI(t.createVariableDeclaration(a,void 0,void 0,i),e.expression)]),e.expression),4194304),xI(t.createLessThan(o,t.createPropertyAccessExpression(a,"length")),e.expression),xI(t.createPostfixIncrement(o),e.expression),Oe(e,t.createElementAccessExpression(a,o),r)),e);return xw(s,512),xI(s,e),t.restoreEnclosingLabel(s,n,m&&De)}function Me(e,r,i,o){const s=lJ(e.expression,S,V_);un.assert(s);const c=aD(s)?t.getGeneratedNameForNode(s):t.createTempVariable(void 0),l=aD(s)?t.getGeneratedNameForNode(c):t.createTempVariable(void 0),_=t.createUniqueName("e"),u=t.getGeneratedNameForNode(_),d=t.createTempVariable(void 0),p=xI(n().createValuesHelper(s),e.expression),f=t.createCallExpression(t.createPropertyAccessExpression(c,"next"),void 0,[]);a(_),a(d);const g=1024&o?t.inlineExpressions([t.createAssignment(_,t.createVoidZero()),p]):p,h=xw(xI(t.createForStatement(xw(xI(t.createVariableDeclarationList([xI(t.createVariableDeclaration(c,void 0,void 0,g),e.expression),t.createVariableDeclaration(l,void 0,void 0,f)]),e.expression),4194304),t.createLogicalNot(t.createPropertyAccessExpression(l,"done")),t.createAssignment(l,f),Oe(e,t.createPropertyAccessExpression(l,"value"),i)),e),512);return t.createTryStatement(t.createBlock([t.restoreEnclosingLabel(h,r,m&&De)]),t.createCatchClause(t.createVariableDeclaration(u),xw(t.createBlock([t.createExpressionStatement(t.createAssignment(_,t.createObjectLiteralExpression([t.createPropertyAssignment("error",u)])))]),1)),t.createBlock([t.createTryStatement(t.createBlock([xw(t.createIfStatement(t.createLogicalAnd(t.createLogicalAnd(l,t.createLogicalNot(t.createPropertyAccessExpression(l,"done"))),t.createAssignment(d,t.createPropertyAccessExpression(c,"return"))),t.createExpressionStatement(t.createFunctionCallCall(d,c,[]))),1)]),void 0,xw(t.createBlock([xw(t.createIfStatement(_,t.createThrowStatement(t.createPropertyAccessExpression(_,"error"))),1)]),1))]))}function Re(e){return c.hasNodeCheckFlag(e,8192)}function Be(e){return QF(e)&&!!e.initializer&&Re(e.initializer)}function Je(e){return QF(e)&&!!e.condition&&Re(e.condition)}function ze(e){return QF(e)&&!!e.incrementor&&Re(e.incrementor)}function qe(e){return Ue(e)||Be(e)}function Ue(e){return c.hasNodeCheckFlag(e,4096)}function Ve(e,t){e.hoistedLocalVariables||(e.hoistedLocalVariables=[]),function t(n){if(80===n.kind)e.hoistedLocalVariables.push(n);else for(const e of n.elements)IF(e)||t(e.name)}(t.name)}function We(e,n,r){switch(e.kind){case 249:return function(e,n,r){const i=e.condition&&Re(e.condition),o=i||e.incrementor&&Re(e.incrementor);return t.updateForStatement(e,lJ(n?n.part:e.initializer,T,eu),lJ(i?void 0:e.condition,S,V_),lJ(o?void 0:e.incrementor,T,V_),r)}(e,n,r);case 250:return function(e,n){return t.updateForInStatement(e,un.checkDefined(lJ(e.initializer,S,eu)),un.checkDefined(lJ(e.expression,S,V_)),n)}(e,r);case 251:return function(e,n){return t.updateForOfStatement(e,void 0,un.checkDefined(lJ(e.initializer,S,eu)),un.checkDefined(lJ(e.expression,S,V_)),n)}(e,r);case 247:return function(e,n){return t.updateDoStatement(e,n,un.checkDefined(lJ(e.expression,S,V_)))}(e,r);case 248:return function(e,n){return t.updateWhileStatement(e,un.checkDefined(lJ(e.expression,S,V_)),n)}(e,r);default:return un.failBadSyntaxKind(e,"IterationStatement expected")}}function $e(e){return t.createVariableDeclaration(e.originalName,void 0,void 0,e.outParamName)}function He(e,n){const r=0===n?e.outParamName:e.originalName,i=0===n?e.originalName:e.outParamName;return t.createBinaryExpression(i,64,r)}function Ke(e,n,r,i){for(const o of e)o.flags&n&&i.push(t.createExpressionStatement(He(o,r)))}function Ge(e,t,n,r){t?(e.labeledNonLocalBreaks||(e.labeledNonLocalBreaks=new Map),e.labeledNonLocalBreaks.set(n,r)):(e.labeledNonLocalContinues||(e.labeledNonLocalContinues=new Map),e.labeledNonLocalContinues.set(n,r))}function Xe(e,n,r,i,o){e&&e.forEach((e,a)=>{const s=[];if(!i||i.labels&&i.labels.get(a)){const e=t.createIdentifier(a);s.push(n?t.createBreakStatement(e):t.createContinueStatement(e))}else Ge(i,n,a,e),s.push(t.createReturnStatement(r));o.push(t.createCaseClause(t.createStringLiteral(e),s))})}function Qe(e,n,r,i,o){const a=n.name;if(k_(a))for(const t of a.elements)IF(t)||Qe(e,t,r,i,o);else{r.push(t.createParameterDeclaration(void 0,void 0,a));const s=c.hasNodeCheckFlag(n,65536);if(s||o){const r=t.createUniqueName("out_"+gc(a));let o=0;s&&(o|=1),QF(e)&&(e.initializer&&c.isBindingCapturedByNode(e.initializer,n)&&(o|=2),(e.condition&&c.isBindingCapturedByNode(e.condition,n)||e.incrementor&&c.isBindingCapturedByNode(e.incrementor,n))&&(o|=1)),i.push({flags:o,originalName:a,outParamName:r})}}}function Ye(e,n,r){const i=t.createAssignment(oA(t,n,un.checkDefined(lJ(e.name,S,t_))),un.checkDefined(lJ(e.initializer,S,V_)));return xI(i,e),r&&FA(i),i}function Ze(e,n,r){const i=t.createAssignment(oA(t,n,un.checkDefined(lJ(e.name,S,t_))),t.cloneNode(e.name));return xI(i,e),r&&FA(i),i}function et(e,n,r,i){const o=t.createAssignment(oA(t,n,un.checkDefined(lJ(e.name,S,t_))),xe(e,e,void 0,r));return xI(o,e),i&&FA(o),o}function rt(e,r,i,o){const a=e.length,c=I(V(e,it,(e,t,n,r)=>t(e,i,o&&r===a)));if(1===c.length){const e=c[0];if(r&&!s.downlevelIteration||PT(e.expression)||JN(e.expression,"___spreadArray"))return e.expression}const l=n(),_=0!==c[0].kind;let u=_?t.createArrayLiteralExpression():c[0].expression;for(let e=_?0:1;e0?t.inlineExpressions(E(i,G)):void 0,lJ(n.condition,R,V_),lJ(n.incrementor,R,V_),hJ(n.statement,R,e))}else n=vJ(n,R,e);return m&&ce(),n}(r);case 250:return function(n){m&&ae();const r=n.initializer;if(_E(r)){for(const e of r.declarations)a(e.name);n=t.updateForInStatement(n,r.declarations[0].name,un.checkDefined(lJ(n.expression,R,V_)),un.checkDefined(lJ(n.statement,R,pu,t.liftToBlock)))}else n=vJ(n,R,e);return m&&ce(),n}(r);case 253:return function(t){if(m){const e=me(t.label&&gc(t.label));if(e>0)return be(e,t)}return vJ(t,R,e)}(r);case 252:return function(t){if(m){const e=ge(t.label&&gc(t.label));if(e>0)return be(e,t)}return vJ(t,R,e)}(r);case 254:return function(e){return n=lJ(e.expression,R,V_),r=e,xI(t.createReturnStatement(t.createArrayLiteralExpression(n?[ve(2),n]:[ve(2)])),r);var n,r}(r);default:return 1048576&r.transformFlags?function(r){switch(r.kind){case 227:return function(n){const r=ny(n);switch(r){case 0:return function(n){return X(n.right)?Gv(n.operatorToken.kind)?function(e){const t=ee(),n=Z();return Se(n,un.checkDefined(lJ(e.left,R,V_)),e.left),56===e.operatorToken.kind?Ne(t,n,e.left):Ce(t,n,e.left),Se(n,un.checkDefined(lJ(e.right,R,V_)),e.right),te(t),n}(n):28===n.operatorToken.kind?U(n):t.updateBinaryExpression(n,Y(un.checkDefined(lJ(n.left,R,V_))),n.operatorToken,un.checkDefined(lJ(n.right,R,V_))):vJ(n,R,e)}(n);case 1:return function(n){const{left:r,right:i}=n;if(X(i)){let e;switch(r.kind){case 212:e=t.updatePropertyAccessExpression(r,Y(un.checkDefined(lJ(r.expression,R,R_))),r.name);break;case 213:e=t.updateElementAccessExpression(r,Y(un.checkDefined(lJ(r.expression,R,R_))),Y(un.checkDefined(lJ(r.argumentExpression,R,V_))));break;default:e=un.checkDefined(lJ(r,R,V_))}const o=n.operatorToken.kind;return rz(o)?xI(t.createAssignment(e,xI(t.createBinaryExpression(Y(e),iz(o),un.checkDefined(lJ(i,R,V_))),n)),n):t.updateBinaryExpression(n,e,n.operatorToken,un.checkDefined(lJ(i,R,V_)))}return vJ(n,R,e)}(n);default:return un.assertNever(r)}}(r);case 357:return function(e){let n=[];for(const r of e.elements)NF(r)&&28===r.operatorToken.kind?n.push(U(r)):(X(r)&&n.length>0&&(De(1,[t.createExpressionStatement(t.inlineExpressions(n))]),n=[]),n.push(un.checkDefined(lJ(r,R,V_))));return t.inlineExpressions(n)}(r);case 228:return function(t){if(X(t.whenTrue)||X(t.whenFalse)){const e=ee(),n=ee(),r=Z();return Ne(e,un.checkDefined(lJ(t.condition,R,V_)),t.condition),Se(r,un.checkDefined(lJ(t.whenTrue,R,V_)),t.whenTrue),Te(n),te(e),Se(r,un.checkDefined(lJ(t.whenFalse,R,V_)),t.whenFalse),te(n),r}return vJ(t,R,e)}(r);case 230:return function(e){const r=ee(),i=lJ(e.expression,R,V_);return e.asteriskToken?function(e,t){De(7,[e],t)}(8388608&Zd(e.expression)?i:xI(n().createValuesHelper(i),e),e):function(e,t){De(6,[e],t)}(i,e),te(r),o=e,xI(t.createCallExpression(t.createPropertyAccessExpression(C,"sent"),void 0,[]),o);var o}(r);case 210:return function(e){return V(e.elements,void 0,void 0,e.multiLine)}(r);case 211:return function(e){const n=e.properties,r=e.multiLine,i=Q(n),o=Z();Se(o,t.createObjectLiteralExpression(_J(n,R,v_,0,i),r));const a=we(n,function(n,i){X(i)&&n.length>0&&(ke(t.createExpressionStatement(t.inlineExpressions(n))),n=[]);const a=lJ(fA(t,e,i,o),R,V_);return a&&(r&&FA(a),n.push(a)),n},[],i);return a.push(r?FA(DT(xI(t.cloneNode(o),o),o.parent)):o),t.inlineExpressions(a)}(r);case 213:return function(n){return X(n.argumentExpression)?t.updateElementAccessExpression(n,Y(un.checkDefined(lJ(n.expression,R,R_))),un.checkDefined(lJ(n.argumentExpression,R,V_))):vJ(n,R,e)}(r);case 214:return function(n){if(!_f(n)&&d(n.arguments,X)){const{target:e,thisArg:r}=t.createCallBinding(n.expression,a,c,!0);return hw(xI(t.createFunctionApplyCall(Y(un.checkDefined(lJ(e,R,R_))),r,V(n.arguments)),n),n)}return vJ(n,R,e)}(r);case 215:return function(n){if(d(n.arguments,X)){const{target:e,thisArg:r}=t.createCallBinding(t.createPropertyAccessExpression(n.expression,"bind"),a);return hw(xI(t.createNewExpression(t.createFunctionApplyCall(Y(un.checkDefined(lJ(e,R,V_))),r,V(n.arguments,t.createVoidZero())),void 0,[]),n),n)}return vJ(n,R,e)}(r);default:return vJ(r,R,e)}}(r):4196352&r.transformFlags?vJ(r,R,e):r}}function J(n){if(n.asteriskToken)n=hw(xI(t.createFunctionDeclaration(n.modifiers,void 0,n.name,void 0,fJ(n.parameters,R,e),void 0,q(n.body)),n),n);else{const t=f,r=m;f=!1,m=!1,n=vJ(n,R,e),f=t,m=r}return f?void o(n):n}function z(n){if(n.asteriskToken)n=hw(xI(t.createFunctionExpression(void 0,void 0,n.name,void 0,fJ(n.parameters,R,e),void 0,q(n.body)),n),n);else{const t=f,r=m;f=!1,m=!1,n=vJ(n,R,e),f=t,m=r}return n}function q(e){const o=[],a=f,s=m,c=g,l=h,_=y,u=v,d=b,p=x,E=L,B=k,J=S,z=T,q=C;f=!0,m=!1,g=void 0,h=void 0,y=void 0,v=void 0,b=void 0,x=void 0,L=1,k=void 0,S=void 0,T=void 0,C=t.createTempVariable(void 0),r();const U=t.copyPrologue(e.statements,o,!1,R);W(e.statements,U);const V=function(){j=0,M=0,w=void 0,N=!1,D=!1,F=void 0,P=void 0,A=void 0,I=void 0,O=void 0;const e=function(){if(k){for(let e=0;e0)),1048576))}();return Od(o,i()),o.push(t.createReturnStatement(V)),f=a,m=s,g=c,h=l,y=_,v=u,b=d,x=p,L=E,k=B,S=J,T=z,C=q,xI(t.createBlock(o,e.multiLine),e)}function U(e){let n=[];return r(e.left),r(e.right),t.inlineExpressions(n);function r(e){NF(e)&&28===e.operatorToken.kind?(r(e.left),r(e.right)):(X(e)&&n.length>0&&(De(1,[t.createExpressionStatement(t.inlineExpressions(n))]),n=[]),n.push(un.checkDefined(lJ(e,R,V_))))}}function V(e,n,r,i){const o=Q(e);let a;if(o>0){a=Z();const r=_J(e,R,V_,0,o);Se(a,t.createArrayLiteralExpression(n?[n,...r]:r)),n=void 0}const s=we(e,function(e,r){if(X(r)&&e.length>0){const r=void 0!==a;a||(a=Z()),Se(a,r?t.createArrayConcatCall(a,[t.createArrayLiteralExpression(e,i)]):t.createArrayLiteralExpression(n?[n,...e]:e,i)),n=void 0,e=[]}return e.push(un.checkDefined(lJ(r,R,V_))),e},[],o);return a?t.createArrayConcatCall(a,[t.createArrayLiteralExpression(s,i)]):xI(t.createArrayLiteralExpression(n?[n,...s]:s,i),r)}function W(e,t=0){const n=e.length;for(let r=t;r0?Te(t,e):ke(e)}(n);case 253:return function(e){const t=me(e.label?gc(e.label):void 0);t>0?Te(t,e):ke(e)}(n);case 254:return function(e){De(8,[lJ(e.expression,R,V_)],e)}(n);case 255:return function(e){X(e)?(function(e){const t=ee(),n=ee();te(t),ne({kind:1,expression:e,startLabel:t,endLabel:n})}(Y(un.checkDefined(lJ(e.expression,R,V_)))),$(e.statement),un.assert(1===oe()),te(re().endLabel)):ke(lJ(e,R,pu))}(n);case 256:return function(e){if(X(e.caseBlock)){const n=e.caseBlock,r=n.clauses.length,i=function(){const e=ee();return ne({kind:2,isScript:!1,breakLabel:e}),e}(),o=Y(un.checkDefined(lJ(e.expression,R,V_))),a=[];let s=-1;for(let e=0;e0)break;l.push(t.createCaseClause(un.checkDefined(lJ(r.expression,R,V_)),[be(a[i],r.expression)]))}else e++}l.length&&(ke(t.createSwitchStatement(o,t.createCaseBlock(l))),c+=l.length,l=[]),e>0&&(c+=e,e=0)}Te(s>=0?a[s]:i);for(let e=0;e0)break;o.push(G(t))}o.length&&(ke(t.createExpressionStatement(t.inlineExpressions(o))),i+=o.length,o=[])}}function G(e){return ww(t.createAssignment(ww(t.cloneNode(e.name),e.name),un.checkDefined(lJ(e.initializer,R,V_))),e)}function X(e){return!!e&&!!(1048576&e.transformFlags)}function Q(e){const t=e.length;for(let n=0;n=0;n--){const t=v[n];if(!de(t))break;if(t.labelText===e)return!0}return!1}function me(e){if(v)if(e)for(let t=v.length-1;t>=0;t--){const n=v[t];if(de(n)&&n.labelText===e)return n.breakLabel;if(ue(n)&&fe(e,t-1))return n.breakLabel}else for(let e=v.length-1;e>=0;e--){const t=v[e];if(ue(t))return t.breakLabel}return 0}function ge(e){if(v)if(e)for(let t=v.length-1;t>=0;t--){const n=v[t];if(pe(n)&&fe(e,t-1))return n.continueLabel}else for(let e=v.length-1;e>=0;e--){const t=v[e];if(pe(t))return t.continueLabel}return 0}function he(e){if(void 0!==e&&e>0){void 0===x&&(x=[]);const n=t.createNumericLiteral(Number.MAX_SAFE_INTEGER);return void 0===x[e]?x[e]=[n]:x[e].push(n),n}return t.createOmittedExpression()}function ve(e){const n=t.createNumericLiteral(e);return Rw(n,3,function(e){switch(e){case 2:return"return";case 3:return"break";case 4:return"yield";case 5:return"yield*";case 7:return"endfinally";default:return}}(e)),n}function be(e,n){return un.assertLessThan(0,e,"Invalid label"),xI(t.createReturnStatement(t.createArrayLiteralExpression([ve(3),he(e)])),n)}function xe(){De(0)}function ke(e){e?De(1,[e]):xe()}function Se(e,t,n){De(2,[e,t],n)}function Te(e,t){De(3,[e],t)}function Ce(e,t,n){De(4,[e,t],n)}function Ne(e,t,n){De(5,[e,t],n)}function De(e,t,n){void 0===k&&(k=[],S=[],T=[]),void 0===b&&te(ee());const r=k.length;k[r]=e,S[r]=t,T[r]=n}function Fe(){P&&(Pe(!N),N=!1,D=!1,M++)}function Ee(e){(function(e){if(!D)return!0;if(!b||!x)return!1;for(let t=0;t=0;e--){const n=O[e];P=[t.createWithStatement(n.expression,t.createBlock(P))]}if(I){const{startLabel:e,catchLabel:n,finallyLabel:r,endLabel:i}=I;P.unshift(t.createExpressionStatement(t.createCallExpression(t.createPropertyAccessExpression(t.createPropertyAccessExpression(C,"trys"),"push"),void 0,[t.createArrayLiteralExpression([he(e),he(n),he(r),he(i)])]))),I=void 0}e&&P.push(t.createExpressionStatement(t.createAssignment(t.createPropertyAccessExpression(C,"label"),t.createNumericLiteral(M+1))))}F.push(t.createCaseClause(t.createNumericLiteral(M),P||[])),P=void 0}function Ae(e){if(b)for(let t=0;t{ju(e.arguments[0])&&!xg(e.arguments[0].text,a)||(y=ie(y,e))});const n=function(e){switch(e){case 2:return S;case 3:return T;default:return k}}(d)(t);return g=void 0,h=void 0,b=!1,n});function x(){return!(OS(g.fileName)&&g.commonJsModuleIndicator&&(!g.externalModuleIndicator||!0===g.externalModuleIndicator)||h.exportEquals||!rO(g))}function k(n){r();const o=[],s=Jk(a,"alwaysStrict")||rO(g),c=t.copyPrologue(n.statements,o,s&&!ef(n),F);if(x()&&ie(o,G()),$(h.exportedNames)){const e=50;for(let n=0;n11===n.kind?t.createAssignment(t.createElementAccessExpression(t.createIdentifier("exports"),t.createStringLiteral(n.text)),e):t.createAssignment(t.createPropertyAccessExpression(t.createIdentifier("exports"),t.createIdentifier(gc(n))),e),t.createVoidZero())))}for(const e of h.exportedFunctions)W(o,e);ie(o,lJ(h.externalHelpersImportDeclaration,F,pu)),se(o,_J(n.statements,F,pu,c)),D(o,!1),Od(o,i());const l=t.updateSourceFile(n,xI(t.createNodeArray(o),n.statements));return Uw(l,e.readEmitHelpers()),l}function S(n){const r=t.createIdentifier("define"),i=LA(t,n,c,a),o=ef(n)&&n,{aliasedModuleNames:s,unaliasedModuleNames:_,importAliasNames:u}=C(n,!0),d=t.updateSourceFile(n,xI(t.createNodeArray([t.createExpressionStatement(t.createCallExpression(r,void 0,[...i?[i]:[],t.createArrayLiteralExpression(o?l:[t.createStringLiteral("require"),t.createStringLiteral("exports"),...s,..._]),o?o.statements.length?o.statements[0].expression:t.createObjectLiteralExpression():t.createFunctionExpression(void 0,void 0,void 0,void 0,[t.createParameterDeclaration(void 0,void 0,"require"),t.createParameterDeclaration(void 0,void 0,"exports"),...u],void 0,N(n))]))]),n.statements));return Uw(d,e.readEmitHelpers()),d}function T(n){const{aliasedModuleNames:r,unaliasedModuleNames:i,importAliasNames:o}=C(n,!1),s=LA(t,n,c,a),l=t.createFunctionExpression(void 0,void 0,void 0,void 0,[t.createParameterDeclaration(void 0,void 0,"factory")],void 0,xI(t.createBlock([t.createIfStatement(t.createLogicalAnd(t.createTypeCheck(t.createIdentifier("module"),"object"),t.createTypeCheck(t.createPropertyAccessExpression(t.createIdentifier("module"),"exports"),"object")),t.createBlock([t.createVariableStatement(void 0,[t.createVariableDeclaration("v",void 0,void 0,t.createCallExpression(t.createIdentifier("factory"),void 0,[t.createIdentifier("require"),t.createIdentifier("exports")]))]),xw(t.createIfStatement(t.createStrictInequality(t.createIdentifier("v"),t.createIdentifier("undefined")),t.createExpressionStatement(t.createAssignment(t.createPropertyAccessExpression(t.createIdentifier("module"),"exports"),t.createIdentifier("v")))),1)]),t.createIfStatement(t.createLogicalAnd(t.createTypeCheck(t.createIdentifier("define"),"function"),t.createPropertyAccessExpression(t.createIdentifier("define"),"amd")),t.createBlock([t.createExpressionStatement(t.createCallExpression(t.createIdentifier("define"),void 0,[...s?[s]:[],t.createArrayLiteralExpression([t.createStringLiteral("require"),t.createStringLiteral("exports"),...r,...i]),t.createIdentifier("factory")]))])))],!0),void 0)),_=t.updateSourceFile(n,xI(t.createNodeArray([t.createExpressionStatement(t.createCallExpression(l,void 0,[t.createFunctionExpression(void 0,void 0,void 0,void 0,[t.createParameterDeclaration(void 0,void 0,"require"),t.createParameterDeclaration(void 0,void 0,"exports"),...o],void 0,N(n))]))]),n.statements));return Uw(_,e.readEmitHelpers()),_}function C(e,n){const r=[],i=[],o=[];for(const n of e.amdDependencies)n.name?(r.push(t.createStringLiteral(n.path)),o.push(t.createParameterDeclaration(void 0,void 0,n.name))):i.push(t.createStringLiteral(n.path));for(const e of h.externalImports){const l=OA(t,e,g,c,s,a),_=IA(t,e,g);l&&(n&&_?(xw(_,8),r.push(l),o.push(t.createParameterDeclaration(void 0,void 0,_))):i.push(l))}return{aliasedModuleNames:r,unaliasedModuleNames:i,importAliasNames:o}}function w(e){if(bE(e)||IE(e)||!OA(t,e,g,c,s,a))return;const n=IA(t,e,g),r=R(e,n);return r!==n?t.createExpressionStatement(t.createAssignment(n,r)):void 0}function N(e){r();const n=[],o=t.copyPrologue(e.statements,n,!0,F);x()&&ie(n,G()),$(h.exportedNames)&&ie(n,t.createExpressionStatement(we(h.exportedNames,(e,n)=>11===n.kind?t.createAssignment(t.createElementAccessExpression(t.createIdentifier("exports"),t.createStringLiteral(n.text)),e):t.createAssignment(t.createPropertyAccessExpression(t.createIdentifier("exports"),t.createIdentifier(gc(n))),e),t.createVoidZero())));for(const e of h.exportedFunctions)W(n,e);ie(n,lJ(h.externalHelpersImportDeclaration,F,pu)),2===d&&se(n,B(h.externalImports,w)),se(n,_J(e.statements,F,pu,o)),D(n,!0),Od(n,i());const a=t.createBlock(n,!0);return b&&qw(a,xq),a}function D(e,n){if(h.exportEquals){const r=lJ(h.exportEquals.expression,A,V_);if(r)if(n){const n=t.createReturnStatement(r);xI(n,h.exportEquals),xw(n,3840),e.push(n)}else{const n=t.createExpressionStatement(t.createAssignment(t.createPropertyAccessExpression(t.createIdentifier("module"),"exports"),r));xI(n,h.exportEquals),xw(n,3072),e.push(n)}}}function F(e){switch(e.kind){case 273:return function(e){let n;const r=Sg(e);if(2!==d){if(!e.importClause)return hw(xI(t.createExpressionStatement(J(e)),e),e);{const i=[];r&&!Tg(e)?i.push(t.createVariableDeclaration(t.cloneNode(r.name),void 0,void 0,R(e,J(e)))):(i.push(t.createVariableDeclaration(t.getGeneratedNameForNode(e),void 0,void 0,R(e,J(e)))),r&&Tg(e)&&i.push(t.createVariableDeclaration(t.cloneNode(r.name),void 0,void 0,t.getGeneratedNameForNode(e)))),n=ie(n,hw(xI(t.createVariableStatement(void 0,t.createVariableDeclarationList(i,_>=2?2:0)),e),e))}}else r&&Tg(e)&&(n=ie(n,t.createVariableStatement(void 0,t.createVariableDeclarationList([hw(xI(t.createVariableDeclaration(t.cloneNode(r.name),void 0,void 0,t.getGeneratedNameForNode(e)),e),e)],_>=2?2:0))));return n=function(e,t){if(h.exportEquals)return e;const n=t.importClause;if(!n)return e;const r=new ZJ;n.name&&(e=H(e,r,n));const i=n.namedBindings;if(i)switch(i.kind){case 275:e=H(e,r,i);break;case 276:for(const t of i.elements)e=H(e,r,t,!0)}return e}(n,e),ke(n)}(e);case 272:return function(e){let n;return un.assert(Tm(e),"import= for internal module references should be handled in an earlier transformer."),2!==d?n=Nv(e,32)?ie(n,hw(xI(t.createExpressionStatement(Q(e.name,J(e))),e),e)):ie(n,hw(xI(t.createVariableStatement(void 0,t.createVariableDeclarationList([t.createVariableDeclaration(t.cloneNode(e.name),void 0,void 0,J(e))],_>=2?2:0)),e),e)):Nv(e,32)&&(n=ie(n,hw(xI(t.createExpressionStatement(Q(t.getExportName(e),t.getLocalName(e))),e),e))),n=function(e,t){return h.exportEquals?e:H(e,new ZJ,t)}(n,e),ke(n)}(e);case 279:return function(e){if(!e.moduleSpecifier)return;const r=t.getGeneratedNameForNode(e);if(e.exportClause&&OE(e.exportClause)){const i=[];2!==d&&i.push(hw(xI(t.createVariableStatement(void 0,t.createVariableDeclarationList([t.createVariableDeclaration(r,void 0,void 0,J(e))])),e),e));for(const o of e.exportClause.elements){const s=o.propertyName||o.name,c=!Sk(a)||2&ep(e)||!Kd(s)?r:n().createImportDefaultHelper(r),l=11===s.kind?t.createElementAccessExpression(c,s):t.createPropertyAccessExpression(c,s);i.push(hw(xI(t.createExpressionStatement(Q(11===o.name.kind?t.cloneNode(o.name):t.getExportName(o),l,void 0,!0)),o),o))}return ke(i)}if(e.exportClause){const i=[];return i.push(hw(xI(t.createExpressionStatement(Q(t.cloneNode(e.exportClause.name),function(e,t){return!Sk(a)||2&ep(e)?t:HJ(e)?n().createImportStarHelper(t):t}(e,2!==d?J(e):Wd(e)||11===e.exportClause.name.kind?r:t.createIdentifier(gc(e.exportClause.name))))),e),e)),ke(i)}return hw(xI(t.createExpressionStatement(n().createExportStarHelper(2!==d?J(e):r)),e),e)}(e);case 278:return function(e){if(!e.isExportEquals)return X(t.createIdentifier("default"),lJ(e.expression,A,V_),e,!0)}(e);default:return E(e)}}function E(n){switch(n.kind){case 244:return function(n){let r,i,o;if(Nv(n,32)){let e,a=!1;for(const r of n.declarationList.declarations)if(aD(r.name)&&hA(r.name))e||(e=_J(n.modifiers,Y,Zl)),i=r.initializer?ie(i,t.updateVariableDeclaration(r,r.name,void 0,void 0,Q(r.name,lJ(r.initializer,A,V_)))):ie(i,r);else if(r.initializer)if(!k_(r.name)&&(bF(r.initializer)||vF(r.initializer)||AF(r.initializer))){const e=t.createAssignment(xI(t.createPropertyAccessExpression(t.createIdentifier("exports"),r.name),r.name),t.createIdentifier(qh(r.name)));i=ie(i,t.createVariableDeclaration(r.name,r.exclamationToken,r.type,lJ(r.initializer,A,V_))),o=ie(o,e),a=!0}else o=ie(o,q(r));if(i&&(r=ie(r,t.updateVariableStatement(n,e,t.updateVariableDeclarationList(n.declarationList,i)))),o){const e=hw(xI(t.createExpressionStatement(t.inlineExpressions(o)),n),n);a&&bw(e),r=ie(r,e)}}else r=ie(r,vJ(n,A,e));return r=function(e,t){return U(e,t.declarationList,!1)}(r,n),ke(r)}(n);case 263:return function(n){let r;return r=Nv(n,32)?ie(r,hw(xI(t.createFunctionDeclaration(_J(n.modifiers,Y,Zl),n.asteriskToken,t.getDeclarationName(n,!0,!0),void 0,_J(n.parameters,A,TD),void 0,vJ(n.body,A,e)),n),n)):ie(r,vJ(n,A,e)),ke(r)}(n);case 264:return function(n){let r;return r=Nv(n,32)?ie(r,hw(xI(t.createClassDeclaration(_J(n.modifiers,Y,g_),t.getDeclarationName(n,!0,!0),void 0,_J(n.heritageClauses,A,tP),_J(n.members,A,__)),n),n)):ie(r,vJ(n,A,e)),r=W(r,n),ke(r)}(n);case 249:return L(n,!0);case 250:return function(n){if(_E(n.initializer)&&!(7&n.initializer.flags)){const r=U(void 0,n.initializer,!0);if($(r)){const i=lJ(n.initializer,I,eu),o=lJ(n.expression,A,V_),a=hJ(n.statement,E,e),s=VF(a)?t.updateBlock(a,[...r,...a.statements]):t.createBlock([...r,a],!0);return t.updateForInStatement(n,i,o,s)}}return t.updateForInStatement(n,lJ(n.initializer,I,eu),lJ(n.expression,A,V_),hJ(n.statement,E,e))}(n);case 251:return function(n){if(_E(n.initializer)&&!(7&n.initializer.flags)){const r=U(void 0,n.initializer,!0),i=lJ(n.initializer,I,eu),o=lJ(n.expression,A,V_);let a=hJ(n.statement,E,e);return $(r)&&(a=VF(a)?t.updateBlock(a,[...r,...a.statements]):t.createBlock([...r,a],!0)),t.updateForOfStatement(n,n.awaitModifier,i,o,a)}return t.updateForOfStatement(n,n.awaitModifier,lJ(n.initializer,I,eu),lJ(n.expression,A,V_),hJ(n.statement,E,e))}(n);case 247:return function(n){return t.updateDoStatement(n,hJ(n.statement,E,e),lJ(n.expression,A,V_))}(n);case 248:return function(n){return t.updateWhileStatement(n,lJ(n.expression,A,V_),hJ(n.statement,E,e))}(n);case 257:return function(e){return t.updateLabeledStatement(e,e.label,lJ(e.statement,E,pu,t.liftToBlock)??xI(t.createEmptyStatement(),e.statement))}(n);case 255:return function(e){return t.updateWithStatement(e,lJ(e.expression,A,V_),un.checkDefined(lJ(e.statement,E,pu,t.liftToBlock)))}(n);case 246:return function(e){return t.updateIfStatement(e,lJ(e.expression,A,V_),lJ(e.thenStatement,E,pu,t.liftToBlock)??t.createBlock([]),lJ(e.elseStatement,E,pu,t.liftToBlock))}(n);case 256:return function(e){return t.updateSwitchStatement(e,lJ(e.expression,A,V_),un.checkDefined(lJ(e.caseBlock,E,yE)))}(n);case 270:return function(e){return t.updateCaseBlock(e,_J(e.clauses,E,ku))}(n);case 297:return function(e){return t.updateCaseClause(e,lJ(e.expression,A,V_),_J(e.statements,E,pu))}(n);case 298:case 259:return function(t){return vJ(t,E,e)}(n);case 300:return function(e){return t.updateCatchClause(e,e.variableDeclaration,un.checkDefined(lJ(e.block,E,VF)))}(n);case 242:return function(t){return t=vJ(t,E,e)}(n);default:return A(n)}}function P(r,i){if(!(276828160&r.transformFlags||(null==y?void 0:y.length)))return r;switch(r.kind){case 249:return L(r,!1);case 245:return function(e){return t.updateExpressionStatement(e,lJ(e.expression,I,V_))}(r);case 218:return function(e,n){return t.updateParenthesizedExpression(e,lJ(e.expression,n?I:A,V_))}(r,i);case 356:return function(e,n){return t.updatePartiallyEmittedExpression(e,lJ(e.expression,n?I:A,V_))}(r,i);case 214:const l=r===fe(y);if(l&&y.shift(),_f(r)&&c.shouldTransformImportCall(g))return function(r,i){if(0===d&&_>=7)return vJ(r,A,e);const l=OA(t,r,g,c,s,a),u=lJ(fe(r.arguments),A,V_),p=!l||u&&UN(u)&&u.text===l.text?u&&i?UN(u)?Sz(u,a):n().createRewriteRelativeImportExtensionsHelper(u):u:l,f=!!(16384&r.transformFlags);switch(a.module){case 2:return j(p,f);case 3:return function(e,n){if(b=!0,tz(e)){const r=Wl(e)?e:UN(e)?t.createStringLiteralFromNode(e):xw(xI(t.cloneNode(e),e),3072);return t.createConditionalExpression(t.createIdentifier("__syncRequire"),void 0,M(e),void 0,j(r,n))}{const r=t.createTempVariable(o);return t.createComma(t.createAssignment(r,e),t.createConditionalExpression(t.createIdentifier("__syncRequire"),void 0,M(r,!0),void 0,j(r,n)))}}(p??t.createVoidZero(),f);default:return M(p)}}(r,l);if(l)return function(e){return t.updateCallExpression(e,e.expression,void 0,_J(e.arguments,t=>t===e.arguments[0]?ju(t)?Sz(t,a):n().createRewriteRelativeImportExtensionsHelper(t):A(t),V_))}(r);break;case 227:if(ib(r))return function(t,n){return O(t.left)?Cz(t,A,e,0,!n,z):vJ(t,A,e)}(r,i);break;case 225:case 226:return function(n,r){if((46===n.operator||47===n.operator)&&aD(n.operand)&&!Wl(n.operand)&&!hA(n.operand)&&!Yb(n.operand)){const e=ee(n.operand);if(e){let i,a=lJ(n.operand,A,V_);CF(n)?a=t.updatePrefixUnaryExpression(n,a):(a=t.updatePostfixUnaryExpression(n,a),r||(i=t.createTempVariable(o),a=t.createAssignment(i,a),xI(a,n)),a=t.createComma(a,t.cloneNode(n.operand)),xI(a,n));for(const t of e)v[ZB(a)]=!0,a=Q(t,a),xI(a,n);return i&&(v[ZB(a)]=!0,a=t.createComma(a,i),xI(a,n)),a}}return vJ(n,A,e)}(r,i)}return vJ(r,A,e)}function A(e){return P(e,!1)}function I(e){return P(e,!0)}function O(e){if(uF(e))for(const t of e.properties)switch(t.kind){case 304:if(O(t.initializer))return!0;break;case 305:if(O(t.name))return!0;break;case 306:if(O(t.expression))return!0;break;case 175:case 178:case 179:return!1;default:un.assertNever(t,"Unhandled object member kind")}else if(_F(e)){for(const t of e.elements)if(PF(t)){if(O(t.expression))return!0}else if(O(t))return!0}else if(aD(e))return u(ee(e))>(yA(e)?1:0);return!1}function L(n,r){if(r&&n.initializer&&_E(n.initializer)&&!(7&n.initializer.flags)){const i=U(void 0,n.initializer,!1);if(i){const o=[],a=lJ(n.initializer,I,_E),s=t.createVariableStatement(void 0,a);o.push(s),se(o,i);const c=lJ(n.condition,A,V_),l=lJ(n.incrementor,I,V_),_=hJ(n.statement,r?E:A,e);return o.push(t.updateForStatement(n,void 0,c,l,_)),o}}return t.updateForStatement(n,lJ(n.initializer,I,eu),lJ(n.condition,A,V_),lJ(n.incrementor,I,V_),hJ(n.statement,r?E:A,e))}function j(e,r){const i=t.createUniqueName("resolve"),o=t.createUniqueName("reject"),s=[t.createParameterDeclaration(void 0,void 0,i),t.createParameterDeclaration(void 0,void 0,o)],c=t.createBlock([t.createExpressionStatement(t.createCallExpression(t.createIdentifier("require"),void 0,[t.createArrayLiteralExpression([e||t.createOmittedExpression()]),i,o]))]);let l;_>=2?l=t.createArrowFunction(void 0,void 0,s,void 0,void 0,c):(l=t.createFunctionExpression(void 0,void 0,void 0,void 0,s,void 0,c),r&&xw(l,16));const u=t.createNewExpression(t.createIdentifier("Promise"),void 0,[l]);return Sk(a)?t.createCallExpression(t.createPropertyAccessExpression(u,t.createIdentifier("then")),void 0,[n().createImportStarCallbackHelper()]):u}function M(e,r){const i=e&&!nz(e)&&!r,o=t.createCallExpression(t.createPropertyAccessExpression(t.createIdentifier("Promise"),"resolve"),void 0,i?_>=2?[t.createTemplateExpression(t.createTemplateHead(""),[t.createTemplateSpan(e,t.createTemplateTail(""))])]:[t.createCallExpression(t.createPropertyAccessExpression(t.createStringLiteral(""),"concat"),void 0,[e])]:[]);let s=t.createCallExpression(t.createIdentifier("require"),void 0,i?[t.createIdentifier("s")]:e?[e]:[]);Sk(a)&&(s=n().createImportStarHelper(s));const c=i?[t.createParameterDeclaration(void 0,void 0,"s")]:[];let l;return l=_>=2?t.createArrowFunction(void 0,void 0,c,void 0,void 0,s):t.createFunctionExpression(void 0,void 0,void 0,void 0,c,void 0,t.createBlock([t.createReturnStatement(s)])),t.createCallExpression(t.createPropertyAccessExpression(o,"then"),void 0,[l])}function R(e,t){return!Sk(a)||2&ep(e)?t:KJ(e)?n().createImportStarHelper(t):GJ(e)?n().createImportDefaultHelper(t):t}function J(e){const n=OA(t,e,g,c,s,a),r=[];return n&&r.push(Sz(n,a)),t.createCallExpression(t.createIdentifier("require"),void 0,r)}function z(e,n,r){const i=ee(e);if(i){let o=yA(e)?n:t.createAssignment(e,n);for(const e of i)xw(o,8),o=Q(e,o,r);return o}return t.createAssignment(e,n)}function q(n){return k_(n.name)?Cz(lJ(n,A,ex),A,e,0,!1,z):t.createAssignment(xI(t.createPropertyAccessExpression(t.createIdentifier("exports"),n.name),n.name),n.initializer?lJ(n.initializer,A,V_):t.createVoidZero())}function U(e,t,n){if(h.exportEquals)return e;for(const r of t.declarations)e=V(e,r,n);return e}function V(e,t,n){if(h.exportEquals)return e;if(k_(t.name))for(const r of t.name.elements)IF(r)||(e=V(e,r,n));else Wl(t.name)||lE(t)&&!t.initializer&&!n||(e=H(e,new ZJ,t));return e}function W(e,n){if(h.exportEquals)return e;const r=new ZJ;return Nv(n,32)&&(e=K(e,r,Nv(n,2048)?t.createIdentifier("default"):t.getDeclarationName(n),t.getLocalName(n),n)),n.name&&(e=H(e,r,n)),e}function H(e,n,r,i){const o=t.getDeclarationName(r),a=h.exportSpecifiers.get(o);if(a)for(const t of a)e=K(e,n,t.name,o,t.name,void 0,i);return e}function K(e,t,n,r,i,o,a){if(11!==n.kind){if(t.has(n))return e;t.set(n,!0)}return ie(e,X(n,r,i,o,a))}function G(){const e=t.createExpressionStatement(t.createCallExpression(t.createPropertyAccessExpression(t.createIdentifier("Object"),"defineProperty"),void 0,[t.createIdentifier("exports"),t.createStringLiteral("__esModule"),t.createObjectLiteralExpression([t.createPropertyAssignment("value",t.createTrue())])]));return xw(e,2097152),e}function X(e,n,r,i,o){const a=xI(t.createExpressionStatement(Q(e,n,void 0,o)),r);return FA(a),i||xw(a,3072),a}function Q(e,n,r,i){return xI(i?t.createCallExpression(t.createPropertyAccessExpression(t.createIdentifier("Object"),"defineProperty"),void 0,[t.createIdentifier("exports"),t.createStringLiteralFromNode(e),t.createObjectLiteralExpression([t.createPropertyAssignment("enumerable",t.createTrue()),t.createPropertyAssignment("get",t.createFunctionExpression(void 0,void 0,void 0,void 0,[],void 0,t.createBlock([t.createReturnStatement(n)])))])]):t.createAssignment(11===e.kind?t.createElementAccessExpression(t.createIdentifier("exports"),t.cloneNode(e)):t.createPropertyAccessExpression(t.createIdentifier("exports"),t.cloneNode(e)),n),r)}function Y(e){switch(e.kind){case 95:case 90:return}return e}function Z(e){var n,r;if(8192&Zd(e)){const n=EA(g);return n?t.createPropertyAccessExpression(n,e):e}if((!Wl(e)||64&e.emitNode.autoGenerate.flags)&&!hA(e)){const i=s.getReferencedExportContainer(e,yA(e));if(i&&308===i.kind)return xI(t.createPropertyAccessExpression(t.createIdentifier("exports"),t.cloneNode(e)),e);const o=s.getReferencedImportDeclaration(e);if(o){if(kE(o))return xI(t.createPropertyAccessExpression(t.getGeneratedNameForNode(o.parent),t.createIdentifier("default")),e);if(PE(o)){const i=o.propertyName||o.name,a=t.getGeneratedNameForNode((null==(r=null==(n=o.parent)?void 0:n.parent)?void 0:r.parent)||o);return xI(11===i.kind?t.createElementAccessExpression(a,t.cloneNode(i)):t.createPropertyAccessExpression(a,t.cloneNode(i)),e)}}}return e}function ee(e){if(Wl(e)){if(Hl(e)){const t=null==h?void 0:h.exportSpecifiers.get(e);if(t){const e=[];for(const n of t)e.push(n.name);return e}}}else{const t=s.getReferencedImportDeclaration(e);if(t)return null==h?void 0:h.exportedBindings[UJ(t)];const n=new Set,r=s.getReferencedValueDeclarations(e);if(r){for(const e of r){const t=null==h?void 0:h.exportedBindings[UJ(e)];if(t)for(const e of t)n.add(e)}if(n.size)return Oe(n)}}}}var xq={name:"typescript:dynamicimport-sync-require",scoped:!0,text:'\n var __syncRequire = typeof module === "object" && typeof module.exports === "object";'};function kq(e){const{factory:t,startLexicalEnvironment:n,endLexicalEnvironment:r,hoistVariableDeclaration:i}=e,o=e.getCompilerOptions(),a=e.getEmitResolver(),s=e.getEmitHost(),c=e.onSubstituteNode,l=e.onEmitNode;e.onSubstituteNode=function(e,n){return function(e){return x&&e.id&&x[e.id]}(n=c(e,n))?n:1===e?function(e){switch(e.kind){case 80:return function(e){var n,r;if(8192&Zd(e)){const n=EA(m);return n?t.createPropertyAccessExpression(n,e):e}if(!Wl(e)&&!hA(e)){const i=a.getReferencedImportDeclaration(e);if(i){if(kE(i))return xI(t.createPropertyAccessExpression(t.getGeneratedNameForNode(i.parent),t.createIdentifier("default")),e);if(PE(i)){const o=i.propertyName||i.name,a=t.getGeneratedNameForNode((null==(r=null==(n=i.parent)?void 0:n.parent)?void 0:r.parent)||i);return xI(11===o.kind?t.createElementAccessExpression(a,t.cloneNode(o)):t.createPropertyAccessExpression(a,t.cloneNode(o)),e)}}}return e}(e);case 227:return function(e){if(eb(e.operatorToken.kind)&&aD(e.left)&&(!Wl(e.left)||Hl(e.left))&&!hA(e.left)){const t=H(e.left);if(t){let n=e;for(const e of t)n=M(e,K(n));return n}}return e}(e);case 237:return function(e){return uf(e)?t.createPropertyAccessExpression(y,t.createIdentifier("meta")):e}(e)}return e}(n):4===e?function(e){return 305===e.kind?function(e){var n,r;const i=e.name;if(!Wl(i)&&!hA(i)){const o=a.getReferencedImportDeclaration(i);if(o){if(kE(o))return xI(t.createPropertyAssignment(t.cloneNode(i),t.createPropertyAccessExpression(t.getGeneratedNameForNode(o.parent),t.createIdentifier("default"))),e);if(PE(o)){const a=o.propertyName||o.name,s=t.getGeneratedNameForNode((null==(r=null==(n=o.parent)?void 0:n.parent)?void 0:r.parent)||o);return xI(t.createPropertyAssignment(t.cloneNode(i),11===a.kind?t.createElementAccessExpression(s,t.cloneNode(a)):t.createPropertyAccessExpression(s,t.cloneNode(a))),e)}}}return e}(e):e}(n):n},e.onEmitNode=function(e,t,n){if(308===t.kind){const r=UJ(t);m=t,g=_[r],h=u[r],x=p[r],y=f[r],x&&delete p[r],l(e,t,n),m=void 0,g=void 0,h=void 0,y=void 0,x=void 0}else l(e,t,n)},e.enableSubstitution(80),e.enableSubstitution(305),e.enableSubstitution(227),e.enableSubstitution(237),e.enableEmitNotification(308);const _=[],u=[],p=[],f=[];let m,g,h,y,v,b,x;return $J(e,function(i){if(i.isDeclarationFile||!(hp(i,o)||8388608&i.transformFlags))return i;const c=UJ(i);m=i,b=i,g=_[c]=XJ(e,i),h=t.createUniqueName("exports"),u[c]=h,y=f[c]=t.createUniqueName("context");const l=function(e){const n=new Map,r=[];for(const i of e){const e=OA(t,i,m,s,a,o);if(e){const t=e.text,o=n.get(t);void 0!==o?r[o].externalImports.push(i):(n.set(t,r.length),r.push({name:e,externalImports:[i]}))}}return r}(g.externalImports),d=function(e,i){const a=[];n();const s=Jk(o,"alwaysStrict")||rO(m),c=t.copyPrologue(e.statements,a,s,T);a.push(t.createVariableStatement(void 0,t.createVariableDeclarationList([t.createVariableDeclaration("__moduleName",void 0,void 0,t.createLogicalAnd(y,t.createPropertyAccessExpression(y,"id")))]))),lJ(g.externalHelpersImportDeclaration,T,pu);const l=_J(e.statements,T,pu,c);se(a,v),Od(a,r());const _=function(e){if(!g.hasExportStarsToExportValues)return;if(!$(g.exportedNames)&&0===g.exportedFunctions.size&&0===g.exportSpecifiers.size){let t=!1;for(const e of g.externalImports)if(279===e.kind&&e.exportClause){t=!0;break}if(!t){const t=k(void 0);return e.push(t),t.name}}const n=[];if(g.exportedNames)for(const e of g.exportedNames)Kd(e)||n.push(t.createPropertyAssignment(t.createStringLiteralFromNode(e),t.createTrue()));for(const e of g.exportedFunctions)Nv(e,2048)||(un.assert(!!e.name),n.push(t.createPropertyAssignment(t.createStringLiteralFromNode(e.name),t.createTrue())));const r=t.createUniqueName("exportedNames");e.push(t.createVariableStatement(void 0,t.createVariableDeclarationList([t.createVariableDeclaration(r,void 0,void 0,t.createObjectLiteralExpression(n,!0))])));const i=k(r);return e.push(i),i.name}(a),u=2097152&e.transformFlags?t.createModifiersFromModifierFlags(1024):void 0,d=t.createObjectLiteralExpression([t.createPropertyAssignment("setters",S(_,i)),t.createPropertyAssignment("execute",t.createFunctionExpression(u,void 0,void 0,void 0,[],void 0,t.createBlock(l,!0)))],!0);return a.push(t.createReturnStatement(d)),t.createBlock(a,!0)}(i,l),C=t.createFunctionExpression(void 0,void 0,void 0,void 0,[t.createParameterDeclaration(void 0,void 0,h),t.createParameterDeclaration(void 0,void 0,y)],void 0,d),w=LA(t,i,s,o),N=t.createArrayLiteralExpression(E(l,e=>e.name)),D=xw(t.updateSourceFile(i,xI(t.createNodeArray([t.createExpressionStatement(t.createCallExpression(t.createPropertyAccessExpression(t.createIdentifier("System"),"register"),void 0,w?[w,N,C]:[N,C]))]),i.statements)),2048);return o.outFile||$w(D,d,e=>!e.scoped),x&&(p[c]=x,x=void 0),m=void 0,g=void 0,h=void 0,y=void 0,v=void 0,b=void 0,D});function k(e){const n=t.createUniqueName("exportStar"),r=t.createIdentifier("m"),i=t.createIdentifier("n"),o=t.createIdentifier("exports");let a=t.createStrictInequality(i,t.createStringLiteral("default"));return e&&(a=t.createLogicalAnd(a,t.createLogicalNot(t.createCallExpression(t.createPropertyAccessExpression(e,"hasOwnProperty"),void 0,[i])))),t.createFunctionDeclaration(void 0,void 0,n,void 0,[t.createParameterDeclaration(void 0,void 0,r)],void 0,t.createBlock([t.createVariableStatement(void 0,t.createVariableDeclarationList([t.createVariableDeclaration(o,void 0,void 0,t.createObjectLiteralExpression([]))])),t.createForInStatement(t.createVariableDeclarationList([t.createVariableDeclaration(i)]),r,t.createBlock([xw(t.createIfStatement(a,t.createExpressionStatement(t.createAssignment(t.createElementAccessExpression(o,i),t.createElementAccessExpression(r,i)))),1)])),t.createExpressionStatement(t.createCallExpression(h,void 0,[o]))],!0))}function S(e,n){const r=[];for(const i of n){const n=d(i.externalImports,e=>IA(t,e,m)),o=n?t.getGeneratedNameForNode(n):t.createUniqueName(""),a=[];for(const n of i.externalImports){const r=IA(t,n,m);switch(n.kind){case 273:if(!n.importClause)break;case 272:un.assert(void 0!==r),a.push(t.createExpressionStatement(t.createAssignment(r,o))),Nv(n,32)&&a.push(t.createExpressionStatement(t.createCallExpression(h,void 0,[t.createStringLiteral(gc(r)),o])));break;case 279:if(un.assert(void 0!==r),n.exportClause)if(OE(n.exportClause)){const e=[];for(const r of n.exportClause.elements)e.push(t.createPropertyAssignment(t.createStringLiteral($d(r.name)),t.createElementAccessExpression(o,t.createStringLiteral($d(r.propertyName||r.name)))));a.push(t.createExpressionStatement(t.createCallExpression(h,void 0,[t.createObjectLiteralExpression(e,!0)])))}else a.push(t.createExpressionStatement(t.createCallExpression(h,void 0,[t.createStringLiteral($d(n.exportClause.name)),o])));else a.push(t.createExpressionStatement(t.createCallExpression(e,void 0,[o])))}}r.push(t.createFunctionExpression(void 0,void 0,void 0,void 0,[t.createParameterDeclaration(void 0,void 0,o)],void 0,t.createBlock(a,!0)))}return t.createArrayLiteralExpression(r,!0)}function T(e){switch(e.kind){case 273:return function(e){return e.importClause&&i(IA(t,e,m)),ke(function(e,t){if(g.exportEquals)return e;const n=t.importClause;if(!n)return e;n.name&&(e=O(e,n));const r=n.namedBindings;if(r)switch(r.kind){case 275:e=O(e,r);break;case 276:for(const t of r.elements)e=O(e,t)}return e}(undefined,e))}(e);case 272:return function(e){return un.assert(Tm(e),"import= for internal module references should be handled in an earlier transformer."),i(IA(t,e,m)),ke(function(e,t){return g.exportEquals?e:O(e,t)}(undefined,e))}(e);case 279:return function(e){un.assertIsDefined(e)}(e);case 278:return function(e){if(e.isExportEquals)return;const n=lJ(e.expression,q,V_);return j(t.createIdentifier("default"),n,!0)}(e);default:return R(e)}}function C(e){if(k_(e.name))for(const t of e.name.elements)IF(t)||C(t);else i(t.cloneNode(e.name))}function w(e){return!(4194304&Zd(e)||308!==b.kind&&7&_c(e).flags)}function N(t,n){const r=n?D:F;return k_(t.name)?Cz(t,q,e,0,!1,r):t.initializer?r(t.name,lJ(t.initializer,q,V_)):t.name}function D(e,t,n){return P(e,t,n,!0)}function F(e,t,n){return P(e,t,n,!1)}function P(e,n,r,o){return i(t.cloneNode(e)),o?M(e,K(xI(t.createAssignment(e,n),r))):K(xI(t.createAssignment(e,n),r))}function A(e,n,r){if(g.exportEquals)return e;if(k_(n.name))for(const t of n.name.elements)IF(t)||(e=A(e,t,r));else if(!Wl(n.name)){let i;r&&(e=L(e,n.name,t.getLocalName(n)),i=gc(n.name)),e=O(e,n,i)}return e}function I(e,n){if(g.exportEquals)return e;let r;if(Nv(n,32)){const i=Nv(n,2048)?t.createStringLiteral("default"):n.name;e=L(e,i,t.getLocalName(n)),r=qh(i)}return n.name&&(e=O(e,n,r)),e}function O(e,n,r){if(g.exportEquals)return e;const i=t.getDeclarationName(n),o=g.exportSpecifiers.get(i);if(o)for(const t of o)$d(t.name)!==r&&(e=L(e,t.name,i));return e}function L(e,t,n,r){return ie(e,j(t,n,r))}function j(e,n,r){const i=t.createExpressionStatement(M(e,n));return FA(i),r||xw(i,3072),i}function M(e,n){const r=aD(e)?t.createStringLiteralFromNode(e):e;return xw(n,3072|Zd(n)),Aw(t.createCallExpression(h,void 0,[r,n]),n)}function R(n){switch(n.kind){case 244:return function(e){if(!w(e.declarationList))return lJ(e,q,pu);let n;if(of(e.declarationList)||rf(e.declarationList)){const r=_J(e.modifiers,W,g_),i=[];for(const n of e.declarationList.declarations)i.push(t.updateVariableDeclaration(n,t.getGeneratedNameForNode(n.name),void 0,void 0,N(n,!1)));const o=t.updateVariableDeclarationList(e.declarationList,i);n=ie(n,t.updateVariableStatement(e,r,o))}else{let r;const i=Nv(e,32);for(const t of e.declarationList.declarations)t.initializer?r=ie(r,N(t,i)):C(t);r&&(n=ie(n,xI(t.createExpressionStatement(t.inlineExpressions(r)),e)))}return n=function(e,t,n){if(g.exportEquals)return e;for(const r of t.declarationList.declarations)r.initializer&&(e=A(e,r,n));return e}(n,e,!1),ke(n)}(n);case 263:return function(n){v=Nv(n,32)?ie(v,t.updateFunctionDeclaration(n,_J(n.modifiers,W,g_),n.asteriskToken,t.getDeclarationName(n,!0,!0),void 0,_J(n.parameters,q,TD),void 0,lJ(n.body,q,VF))):ie(v,vJ(n,q,e)),v=I(v,n)}(n);case 264:return function(e){let n;const r=t.getLocalName(e);return i(r),n=ie(n,xI(t.createExpressionStatement(t.createAssignment(r,xI(t.createClassExpression(_J(e.modifiers,W,g_),e.name,void 0,_J(e.heritageClauses,q,tP),_J(e.members,q,__)),e))),e)),n=I(n,e),ke(n)}(n);case 249:return B(n,!0);case 250:return function(n){const r=b;return b=n,n=t.updateForInStatement(n,J(n.initializer),lJ(n.expression,q,V_),hJ(n.statement,R,e)),b=r,n}(n);case 251:return function(n){const r=b;return b=n,n=t.updateForOfStatement(n,n.awaitModifier,J(n.initializer),lJ(n.expression,q,V_),hJ(n.statement,R,e)),b=r,n}(n);case 247:return function(n){return t.updateDoStatement(n,hJ(n.statement,R,e),lJ(n.expression,q,V_))}(n);case 248:return function(n){return t.updateWhileStatement(n,lJ(n.expression,q,V_),hJ(n.statement,R,e))}(n);case 257:return function(e){return t.updateLabeledStatement(e,e.label,lJ(e.statement,R,pu,t.liftToBlock)??t.createExpressionStatement(t.createIdentifier("")))}(n);case 255:return function(e){return t.updateWithStatement(e,lJ(e.expression,q,V_),un.checkDefined(lJ(e.statement,R,pu,t.liftToBlock)))}(n);case 246:return function(e){return t.updateIfStatement(e,lJ(e.expression,q,V_),lJ(e.thenStatement,R,pu,t.liftToBlock)??t.createBlock([]),lJ(e.elseStatement,R,pu,t.liftToBlock))}(n);case 256:return function(e){return t.updateSwitchStatement(e,lJ(e.expression,q,V_),un.checkDefined(lJ(e.caseBlock,R,yE)))}(n);case 270:return function(e){const n=b;return b=e,e=t.updateCaseBlock(e,_J(e.clauses,R,ku)),b=n,e}(n);case 297:return function(e){return t.updateCaseClause(e,lJ(e.expression,q,V_),_J(e.statements,R,pu))}(n);case 298:case 259:return function(t){return vJ(t,R,e)}(n);case 300:return function(e){const n=b;return b=e,e=t.updateCatchClause(e,e.variableDeclaration,un.checkDefined(lJ(e.block,R,VF))),b=n,e}(n);case 242:return function(t){const n=b;return b=t,t=vJ(t,R,e),b=n,t}(n);default:return q(n)}}function B(n,r){const i=b;return b=n,n=t.updateForStatement(n,lJ(n.initializer,r?J:U,eu),lJ(n.condition,q,V_),lJ(n.incrementor,U,V_),hJ(n.statement,r?R:q,e)),b=i,n}function J(e){if(function(e){return _E(e)&&w(e)}(e)){let n;for(const t of e.declarations)n=ie(n,N(t,!1)),t.initializer||C(t);return n?t.inlineExpressions(n):t.createOmittedExpression()}return lJ(e,U,eu)}function z(n,r){if(!(276828160&n.transformFlags))return n;switch(n.kind){case 249:return B(n,!1);case 245:return function(e){return t.updateExpressionStatement(e,lJ(e.expression,U,V_))}(n);case 218:return function(e,n){return t.updateParenthesizedExpression(e,lJ(e.expression,n?U:q,V_))}(n,r);case 356:return function(e,n){return t.updatePartiallyEmittedExpression(e,lJ(e.expression,n?U:q,V_))}(n,r);case 227:if(ib(n))return function(t,n){return V(t.left)?Cz(t,q,e,0,!n):vJ(t,q,e)}(n,r);break;case 214:if(_f(n))return function(e){const n=OA(t,e,m,s,a,o),r=lJ(fe(e.arguments),q,V_),i=!n||r&&UN(r)&&r.text===n.text?r:n;return t.createCallExpression(t.createPropertyAccessExpression(y,t.createIdentifier("import")),void 0,i?[i]:[])}(n);break;case 225:case 226:return function(n,r){if((46===n.operator||47===n.operator)&&aD(n.operand)&&!Wl(n.operand)&&!hA(n.operand)&&!Yb(n.operand)){const e=H(n.operand);if(e){let o,a=lJ(n.operand,q,V_);CF(n)?a=t.updatePrefixUnaryExpression(n,a):(a=t.updatePostfixUnaryExpression(n,a),r||(o=t.createTempVariable(i),a=t.createAssignment(o,a),xI(a,n)),a=t.createComma(a,t.cloneNode(n.operand)),xI(a,n));for(const t of e)a=M(t,K(a));return o&&(a=t.createComma(a,o),xI(a,n)),a}}return vJ(n,q,e)}(n,r)}return vJ(n,q,e)}function q(e){return z(e,!1)}function U(e){return z(e,!0)}function V(e){if(rb(e,!0))return V(e.left);if(PF(e))return V(e.expression);if(uF(e))return $(e.properties,V);if(_F(e))return $(e.elements,V);if(iP(e))return V(e.name);if(rP(e))return V(e.initializer);if(aD(e)){const t=a.getReferencedExportContainer(e);return void 0!==t&&308===t.kind}return!1}function W(e){switch(e.kind){case 95:case 90:return}return e}function H(e){let n;const r=function(e){if(!Wl(e)){const t=a.getReferencedImportDeclaration(e);if(t)return t;const n=a.getReferencedValueDeclaration(e);if(n&&(null==g?void 0:g.exportedBindings[UJ(n)]))return n;const r=a.getReferencedValueDeclarations(e);if(r)for(const e of r)if(e!==n&&(null==g?void 0:g.exportedBindings[UJ(e)]))return e;return n}}(e);if(r){const i=a.getReferencedExportContainer(e,!1);i&&308===i.kind&&(n=ie(n,t.getDeclarationName(r))),n=se(n,null==g?void 0:g.exportedBindings[UJ(r)])}else if(Wl(e)&&Hl(e)){const t=null==g?void 0:g.exportSpecifiers.get(e);if(t){const e=[];for(const n of t)e.push(n.name);return e}}return n}function K(e){return void 0===x&&(x=[]),x[ZB(e)]=!0,e}}function Sq(e){const{factory:t,getEmitHelperFactory:n}=e,r=e.getEmitHost(),i=e.getEmitResolver(),o=e.getCompilerOptions(),a=yk(o),s=e.onEmitNode,c=e.onSubstituteNode;e.onEmitNode=function(e,t,n){sP(t)?((rO(t)||kk(o))&&o.importHelpers&&(u=new Map),d=t,s(e,t,n),d=void 0,u=void 0):s(e,t,n)},e.onSubstituteNode=function(e,n){return(n=c(e,n)).id&&l.has(n.id)?n:aD(n)&&8192&Zd(n)?function(e){const n=d&&EA(d);if(n)return l.add(ZB(e)),t.createPropertyAccessExpression(n,e);if(u){const n=gc(e);let r=u.get(n);return r||u.set(n,r=t.createUniqueName(n,48)),r}return e}(n):n},e.enableEmitNotification(308),e.enableSubstitution(80);const l=new Set;let _,u,d,p;return $J(e,function(r){if(r.isDeclarationFile)return r;if(rO(r)||kk(o)){d=r,p=void 0,o.rewriteRelativeImportExtensions&&(4194304&d.flags||Em(r))&&DC(r,!1,!1,e=>{ju(e.arguments[0])&&!xg(e.arguments[0].text,o)||(_=ie(_,e))});let i=function(r){const i=AA(t,n(),r,o);if(i){const e=[],n=t.copyPrologue(r.statements,e);return se(e,uJ([i],f,pu)),se(e,_J(r.statements,f,pu,n)),t.updateSourceFile(r,xI(t.createNodeArray(e),r.statements))}return vJ(r,f,e)}(r);return Uw(i,e.readEmitHelpers()),d=void 0,p&&(i=t.updateSourceFile(i,xI(t.createNodeArray(Ld(i.statements.slice(),p)),i.statements))),!rO(r)||200===vk(o)||$(i.statements,X_)?i:t.updateSourceFile(i,xI(t.createNodeArray([...i.statements,iA(t)]),i.statements))}return r});function f(r){switch(r.kind){case 272:return vk(o)>=100?function(e){let n;return un.assert(Tm(e),"import= for internal module references should be handled in an earlier transformer."),n=ie(n,hw(xI(t.createVariableStatement(void 0,t.createVariableDeclarationList([t.createVariableDeclaration(t.cloneNode(e.name),void 0,void 0,m(e))],a>=2?2:0)),e),e)),n=function(e,n){return Nv(n,32)&&(e=ie(e,t.createExportDeclaration(void 0,n.isTypeOnly,t.createNamedExports([t.createExportSpecifier(!1,void 0,gc(n.name))])))),e}(n,e),ke(n)}(r):void 0;case 278:return function(e){return e.isExportEquals?200===vk(o)?hw(t.createExpressionStatement(t.createAssignment(t.createPropertyAccessExpression(t.createIdentifier("module"),"exports"),e.expression)),e):void 0:e}(r);case 279:return function(e){const n=Sz(e.moduleSpecifier,o);if(void 0!==o.module&&o.module>5||!e.exportClause||!FE(e.exportClause)||!e.moduleSpecifier)return e.moduleSpecifier&&n!==e.moduleSpecifier?t.updateExportDeclaration(e,e.modifiers,e.isTypeOnly,e.exportClause,n,e.attributes):e;const r=e.exportClause.name,i=t.getGeneratedNameForNode(r),a=t.createImportDeclaration(void 0,t.createImportClause(void 0,void 0,t.createNamespaceImport(i)),n,e.attributes);hw(a,e.exportClause);const s=Wd(e)?t.createExportDefault(i):t.createExportDeclaration(void 0,!1,t.createNamedExports([t.createExportSpecifier(!1,i,r)]));return hw(s,e),[a,s]}(r);case 273:return function(e){if(!o.rewriteRelativeImportExtensions)return e;const n=Sz(e.moduleSpecifier,o);return n===e.moduleSpecifier?e:t.updateImportDeclaration(e,e.modifiers,e.importClause,n,e.attributes)}(r);case 214:if(r===(null==_?void 0:_[0]))return function(e){return t.updateCallExpression(e,e.expression,e.typeArguments,[ju(e.arguments[0])?Sz(e.arguments[0],o):n().createRewriteRelativeImportExtensionsHelper(e.arguments[0]),...e.arguments.slice(1)])}(_.shift());default:if((null==_?void 0:_.length)&&Xb(r,_[0]))return vJ(r,f,e)}return r}function m(e){const n=OA(t,e,un.checkDefined(d),r,i,o),s=[];if(n&&s.push(Sz(n,o)),200===vk(o))return t.createCallExpression(t.createIdentifier("require"),void 0,s);if(!p){const e=t.createUniqueName("_createRequire",48),n=t.createImportDeclaration(void 0,t.createImportClause(void 0,void 0,t.createNamedImports([t.createImportSpecifier(!1,t.createIdentifier("createRequire"),e)])),t.createStringLiteral("module"),void 0),r=t.createUniqueName("__require",48),i=t.createVariableStatement(void 0,t.createVariableDeclarationList([t.createVariableDeclaration(r,void 0,void 0,t.createCallExpression(t.cloneNode(e),void 0,[t.createPropertyAccessExpression(t.createMetaProperty(102,t.createIdentifier("meta")),t.createIdentifier("url"))]))],a>=2?2:0));p=[n,i]}const c=p[1].declarationList.declarations[0].name;return un.assertNode(c,aD),t.createCallExpression(t.cloneNode(c),void 0,s)}}function Tq(e){const t=e.onSubstituteNode,n=e.onEmitNode,r=Sq(e),i=e.onSubstituteNode,o=e.onEmitNode;e.onSubstituteNode=t,e.onEmitNode=n;const a=bq(e),s=e.onSubstituteNode,c=e.onEmitNode,l=t=>e.getEmitHost().getEmitModuleFormatOfFile(t);let _;return e.onSubstituteNode=function(e,n){return sP(n)?(_=n,t(e,n)):_?l(_)>=5?i(e,n):s(e,n):t(e,n)},e.onEmitNode=function(e,t,r){return sP(t)&&(_=t),_?l(_)>=5?o(e,t,r):c(e,t,r):n(e,t,r)},e.enableSubstitution(308),e.enableEmitNotification(308),function(t){return 308===t.kind?u(t):function(t){return e.factory.createBundle(E(t.sourceFiles,u))}(t)};function u(e){if(e.isDeclarationFile)return e;_=e;const t=(l(e)>=5?r:a)(e);return _=void 0,un.assert(sP(t)),t}}function Cq(e){return lE(e)||ND(e)||wD(e)||lF(e)||wu(e)||Nu(e)||LD(e)||OD(e)||FD(e)||DD(e)||uE(e)||TD(e)||SD(e)||OF(e)||bE(e)||fE(e)||PD(e)||jD(e)||dF(e)||pF(e)||NF(e)||Dg(e)}function wq(e){return wu(e)||Nu(e)?function(t){const n=function(t){return Dv(e)?t.errorModuleName?2===t.accessibility?_a.Public_static_property_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:_a.Public_static_property_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:_a.Public_static_property_0_of_exported_class_has_or_is_using_private_name_1:264===e.parent.kind?t.errorModuleName?2===t.accessibility?_a.Public_property_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:_a.Public_property_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:_a.Public_property_0_of_exported_class_has_or_is_using_private_name_1:t.errorModuleName?_a.Property_0_of_exported_interface_has_or_is_using_name_1_from_private_module_2:_a.Property_0_of_exported_interface_has_or_is_using_private_name_1}(t);return void 0!==n?{diagnosticMessage:n,errorNode:e,typeName:e.name}:void 0}:DD(e)||FD(e)?function(t){const n=function(t){return Dv(e)?t.errorModuleName?2===t.accessibility?_a.Public_static_method_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:_a.Public_static_method_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:_a.Public_static_method_0_of_exported_class_has_or_is_using_private_name_1:264===e.parent.kind?t.errorModuleName?2===t.accessibility?_a.Public_method_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:_a.Public_method_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:_a.Public_method_0_of_exported_class_has_or_is_using_private_name_1:t.errorModuleName?_a.Method_0_of_exported_interface_has_or_is_using_name_1_from_private_module_2:_a.Method_0_of_exported_interface_has_or_is_using_private_name_1}(t);return void 0!==n?{diagnosticMessage:n,errorNode:e,typeName:e.name}:void 0}:Nq(e)}function Nq(e){return lE(e)||ND(e)||wD(e)||dF(e)||pF(e)||NF(e)||lF(e)||PD(e)?t:wu(e)||Nu(e)?function(t){let n;return n=179===e.kind?Dv(e)?t.errorModuleName?_a.Parameter_type_of_public_static_setter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2:_a.Parameter_type_of_public_static_setter_0_from_exported_class_has_or_is_using_private_name_1:t.errorModuleName?_a.Parameter_type_of_public_setter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2:_a.Parameter_type_of_public_setter_0_from_exported_class_has_or_is_using_private_name_1:Dv(e)?t.errorModuleName?2===t.accessibility?_a.Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:_a.Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2:_a.Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_private_name_1:t.errorModuleName?2===t.accessibility?_a.Return_type_of_public_getter_0_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:_a.Return_type_of_public_getter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2:_a.Return_type_of_public_getter_0_from_exported_class_has_or_is_using_private_name_1,{diagnosticMessage:n,errorNode:e.name,typeName:e.name}}:LD(e)||OD(e)||FD(e)||DD(e)||uE(e)||jD(e)?function(t){let n;switch(e.kind){case 181:n=t.errorModuleName?_a.Return_type_of_constructor_signature_from_exported_interface_has_or_is_using_name_0_from_private_module_1:_a.Return_type_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_0;break;case 180:n=t.errorModuleName?_a.Return_type_of_call_signature_from_exported_interface_has_or_is_using_name_0_from_private_module_1:_a.Return_type_of_call_signature_from_exported_interface_has_or_is_using_private_name_0;break;case 182:n=t.errorModuleName?_a.Return_type_of_index_signature_from_exported_interface_has_or_is_using_name_0_from_private_module_1:_a.Return_type_of_index_signature_from_exported_interface_has_or_is_using_private_name_0;break;case 175:case 174:n=Dv(e)?t.errorModuleName?2===t.accessibility?_a.Return_type_of_public_static_method_from_exported_class_has_or_is_using_name_0_from_external_module_1_but_cannot_be_named:_a.Return_type_of_public_static_method_from_exported_class_has_or_is_using_name_0_from_private_module_1:_a.Return_type_of_public_static_method_from_exported_class_has_or_is_using_private_name_0:264===e.parent.kind?t.errorModuleName?2===t.accessibility?_a.Return_type_of_public_method_from_exported_class_has_or_is_using_name_0_from_external_module_1_but_cannot_be_named:_a.Return_type_of_public_method_from_exported_class_has_or_is_using_name_0_from_private_module_1:_a.Return_type_of_public_method_from_exported_class_has_or_is_using_private_name_0:t.errorModuleName?_a.Return_type_of_method_from_exported_interface_has_or_is_using_name_0_from_private_module_1:_a.Return_type_of_method_from_exported_interface_has_or_is_using_private_name_0;break;case 263:n=t.errorModuleName?2===t.accessibility?_a.Return_type_of_exported_function_has_or_is_using_name_0_from_external_module_1_but_cannot_be_named:_a.Return_type_of_exported_function_has_or_is_using_name_0_from_private_module_1:_a.Return_type_of_exported_function_has_or_is_using_private_name_0;break;default:return un.fail("This is unknown kind for signature: "+e.kind)}return{diagnosticMessage:n,errorNode:e.name||e}}:TD(e)?Zs(e,e.parent)&&Nv(e.parent,2)?t:function(t){const n=function(t){switch(e.parent.kind){case 177:return t.errorModuleName?2===t.accessibility?_a.Parameter_0_of_constructor_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:_a.Parameter_0_of_constructor_from_exported_class_has_or_is_using_name_1_from_private_module_2:_a.Parameter_0_of_constructor_from_exported_class_has_or_is_using_private_name_1;case 181:case 186:return t.errorModuleName?_a.Parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2:_a.Parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_1;case 180:return t.errorModuleName?_a.Parameter_0_of_call_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2:_a.Parameter_0_of_call_signature_from_exported_interface_has_or_is_using_private_name_1;case 182:return t.errorModuleName?_a.Parameter_0_of_index_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2:_a.Parameter_0_of_index_signature_from_exported_interface_has_or_is_using_private_name_1;case 175:case 174:return Dv(e.parent)?t.errorModuleName?2===t.accessibility?_a.Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:_a.Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_name_1_from_private_module_2:_a.Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_private_name_1:264===e.parent.parent.kind?t.errorModuleName?2===t.accessibility?_a.Parameter_0_of_public_method_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:_a.Parameter_0_of_public_method_from_exported_class_has_or_is_using_name_1_from_private_module_2:_a.Parameter_0_of_public_method_from_exported_class_has_or_is_using_private_name_1:t.errorModuleName?_a.Parameter_0_of_method_from_exported_interface_has_or_is_using_name_1_from_private_module_2:_a.Parameter_0_of_method_from_exported_interface_has_or_is_using_private_name_1;case 263:case 185:return t.errorModuleName?2===t.accessibility?_a.Parameter_0_of_exported_function_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:_a.Parameter_0_of_exported_function_has_or_is_using_name_1_from_private_module_2:_a.Parameter_0_of_exported_function_has_or_is_using_private_name_1;case 179:case 178:return t.errorModuleName?2===t.accessibility?_a.Parameter_0_of_accessor_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:_a.Parameter_0_of_accessor_has_or_is_using_name_1_from_private_module_2:_a.Parameter_0_of_accessor_has_or_is_using_private_name_1;default:return un.fail(`Unknown parent for parameter: ${un.formatSyntaxKind(e.parent.kind)}`)}}(t);return void 0!==n?{diagnosticMessage:n,errorNode:e,typeName:e.name}:void 0}:SD(e)?function(){let t;switch(e.parent.kind){case 264:t=_a.Type_parameter_0_of_exported_class_has_or_is_using_private_name_1;break;case 265:t=_a.Type_parameter_0_of_exported_interface_has_or_is_using_private_name_1;break;case 201:t=_a.Type_parameter_0_of_exported_mapped_object_type_is_using_private_name_1;break;case 186:case 181:t=_a.Type_parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_1;break;case 180:t=_a.Type_parameter_0_of_call_signature_from_exported_interface_has_or_is_using_private_name_1;break;case 175:case 174:t=Dv(e.parent)?_a.Type_parameter_0_of_public_static_method_from_exported_class_has_or_is_using_private_name_1:264===e.parent.parent.kind?_a.Type_parameter_0_of_public_method_from_exported_class_has_or_is_using_private_name_1:_a.Type_parameter_0_of_method_from_exported_interface_has_or_is_using_private_name_1;break;case 185:case 263:t=_a.Type_parameter_0_of_exported_function_has_or_is_using_private_name_1;break;case 196:t=_a.Extends_clause_for_inferred_type_0_has_or_is_using_private_name_1;break;case 266:t=_a.Type_parameter_0_of_exported_type_alias_has_or_is_using_private_name_1;break;default:return un.fail("This is unknown parent for type parameter: "+e.parent.kind)}return{diagnosticMessage:t,errorNode:e,typeName:e.name}}:OF(e)?function(){let t;return t=dE(e.parent.parent)?tP(e.parent)&&119===e.parent.token?_a.Implements_clause_of_exported_class_0_has_or_is_using_private_name_1:e.parent.parent.name?_a.extends_clause_of_exported_class_0_has_or_is_using_private_name_1:_a.extends_clause_of_exported_class_has_or_is_using_private_name_0:_a.extends_clause_of_exported_interface_0_has_or_is_using_private_name_1,{diagnosticMessage:t,errorNode:e,typeName:Cc(e.parent.parent)}}:bE(e)?function(){return{diagnosticMessage:_a.Import_declaration_0_is_using_private_name_1,errorNode:e,typeName:e.name}}:fE(e)||Dg(e)?function(t){return{diagnosticMessage:t.errorModuleName?_a.Exported_type_alias_0_has_or_is_using_private_name_1_from_module_2:_a.Exported_type_alias_0_has_or_is_using_private_name_1,errorNode:Dg(e)?un.checkDefined(e.typeExpression):e.type,typeName:Dg(e)?Cc(e):e.name}}:un.assertNever(e,`Attempted to set a declaration diagnostic context for unhandled node kind: ${un.formatSyntaxKind(e.kind)}`);function t(t){const n=function(t){return 261===e.kind||209===e.kind?t.errorModuleName?2===t.accessibility?_a.Exported_variable_0_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:_a.Exported_variable_0_has_or_is_using_name_1_from_private_module_2:_a.Exported_variable_0_has_or_is_using_private_name_1:173===e.kind||212===e.kind||213===e.kind||227===e.kind||172===e.kind||170===e.kind&&Nv(e.parent,2)?Dv(e)?t.errorModuleName?2===t.accessibility?_a.Public_static_property_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:_a.Public_static_property_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:_a.Public_static_property_0_of_exported_class_has_or_is_using_private_name_1:264===e.parent.kind||170===e.kind?t.errorModuleName?2===t.accessibility?_a.Public_property_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:_a.Public_property_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:_a.Public_property_0_of_exported_class_has_or_is_using_private_name_1:t.errorModuleName?_a.Property_0_of_exported_interface_has_or_is_using_name_1_from_private_module_2:_a.Property_0_of_exported_interface_has_or_is_using_private_name_1:void 0}(t);return void 0!==n?{diagnosticMessage:n,errorNode:e,typeName:e.name}:void 0}}function Dq(e){const t={220:_a.Add_a_return_type_to_the_function_expression,219:_a.Add_a_return_type_to_the_function_expression,175:_a.Add_a_return_type_to_the_method,178:_a.Add_a_return_type_to_the_get_accessor_declaration,179:_a.Add_a_type_to_parameter_of_the_set_accessor_declaration,263:_a.Add_a_return_type_to_the_function_declaration,181:_a.Add_a_return_type_to_the_function_declaration,170:_a.Add_a_type_annotation_to_the_parameter_0,261:_a.Add_a_type_annotation_to_the_variable_0,173:_a.Add_a_type_annotation_to_the_property_0,172:_a.Add_a_type_annotation_to_the_property_0,278:_a.Move_the_expression_in_default_export_to_a_variable_and_add_a_type_annotation_to_it},n={219:_a.Function_must_have_an_explicit_return_type_annotation_with_isolatedDeclarations,263:_a.Function_must_have_an_explicit_return_type_annotation_with_isolatedDeclarations,220:_a.Function_must_have_an_explicit_return_type_annotation_with_isolatedDeclarations,175:_a.Method_must_have_an_explicit_return_type_annotation_with_isolatedDeclarations,181:_a.Method_must_have_an_explicit_return_type_annotation_with_isolatedDeclarations,178:_a.At_least_one_accessor_must_have_an_explicit_type_annotation_with_isolatedDeclarations,179:_a.At_least_one_accessor_must_have_an_explicit_type_annotation_with_isolatedDeclarations,170:_a.Parameter_must_have_an_explicit_type_annotation_with_isolatedDeclarations,261:_a.Variable_must_have_an_explicit_type_annotation_with_isolatedDeclarations,173:_a.Property_must_have_an_explicit_type_annotation_with_isolatedDeclarations,172:_a.Property_must_have_an_explicit_type_annotation_with_isolatedDeclarations,168:_a.Computed_property_names_on_class_or_object_literals_cannot_be_inferred_with_isolatedDeclarations,306:_a.Objects_that_contain_spread_assignments_can_t_be_inferred_with_isolatedDeclarations,305:_a.Objects_that_contain_shorthand_properties_can_t_be_inferred_with_isolatedDeclarations,210:_a.Only_const_arrays_can_be_inferred_with_isolatedDeclarations,278:_a.Default_exports_can_t_be_inferred_with_isolatedDeclarations,231:_a.Arrays_with_spread_elements_can_t_inferred_with_isolatedDeclarations};return function(r){if(uc(r,tP))return Rp(r,_a.Extends_clause_can_t_contain_an_expression_with_isolatedDeclarations);if((wf(r)||zD(r.parent))&&(e_(r)||ab(r)))return function(e){const t=Rp(e,_a.Type_containing_private_name_0_can_t_be_used_with_isolatedDeclarations,Xd(e,!1));return o(e,t),t}(r);switch(un.type(r),r.kind){case 178:case 179:return i(r);case 168:case 305:case 306:return function(e){const t=Rp(e,n[e.kind]);return o(e,t),t}(r);case 210:case 231:return function(e){const t=Rp(e,n[e.kind]);return o(e,t),t}(r);case 175:case 181:case 219:case 220:case 263:return function(e){const r=Rp(e,n[e.kind]);return o(e,r),aT(r,Rp(e,t[e.kind])),r}(r);case 209:return function(e){return Rp(e,_a.Binding_elements_can_t_be_exported_directly_with_isolatedDeclarations)}(r);case 173:case 261:return function(e){const r=Rp(e,n[e.kind]),i=Xd(e.name,!1);return aT(r,Rp(e,t[e.kind],i)),r}(r);case 170:return function(r){if(wu(r.parent))return i(r.parent);const o=e.requiresAddingImplicitUndefined(r,r.parent);if(!o&&r.initializer)return a(r.initializer);const s=Rp(r,o?_a.Declaration_emit_for_this_parameter_requires_implicitly_adding_undefined_to_its_type_This_is_not_supported_with_isolatedDeclarations:n[r.kind]),c=Xd(r.name,!1);return aT(s,Rp(r,t[r.kind],c)),s}(r);case 304:return a(r.initializer);case 232:return function(e){return a(e,_a.Inference_from_class_expressions_is_not_supported_with_isolatedDeclarations)}(r);default:return a(r)}};function r(e){const t=uc(e,e=>AE(e)||pu(e)||lE(e)||ND(e)||TD(e));if(t)return AE(t)?t:nE(t)?uc(t,e=>o_(e)&&!PD(e)):pu(t)?void 0:t}function i(e){const{getAccessor:r,setAccessor:i}=pv(e.symbol.declarations,e),o=Rp((wu(e)?e.parameters[0]:e)??e,n[e.kind]);return i&&aT(o,Rp(i,t[i.kind])),r&&aT(o,Rp(r,t[r.kind])),o}function o(e,n){const i=r(e);if(i){const e=AE(i)||!i.name?"":Xd(i.name,!1);aT(n,Rp(i,t[i.kind],e))}return n}function a(e,i){const o=r(e);let a;if(o){const r=AE(o)||!o.name?"":Xd(o.name,!1);o===uc(e.parent,e=>AE(e)||(pu(e)?"quit":!yF(e)&&!hF(e)&&!LF(e)))?(a=Rp(e,i??n[o.kind]),aT(a,Rp(o,t[o.kind],r))):(a=Rp(e,i??_a.Expression_type_can_t_be_inferred_with_isolatedDeclarations),aT(a,Rp(o,t[o.kind],r)),aT(a,Rp(e,_a.Add_satisfies_and_a_type_assertion_to_this_expression_satisfies_T_as_T_to_make_the_type_explicit)))}else a=Rp(e,i??_a.Expression_type_can_t_be_inferred_with_isolatedDeclarations);return a}}function Fq(e,t,n){const r=e.getCompilerOptions();return T(N(Gy(e,n),Am),n)?Vq(t,e,mw,r,[n],[Aq],!1).diagnostics:void 0}var Eq=531469,Pq=8;function Aq(e){const t=()=>un.fail("Diagnostic emitted without context");let n,r,i,o,a=t,s=!0,c=!1,_=!1,p=!1,f=!1;const{factory:m}=e,g=e.getEmitHost();let h=()=>{};const y={trackSymbol:function(e,t,n){return!(262144&e.flags)&&M(w.isSymbolAccessible(e,t,n,!0))},reportInaccessibleThisError:function(){(v||b)&&e.addDiagnostic(Rp(v||b,_a.The_inferred_type_of_0_references_an_inaccessible_1_type_A_type_annotation_is_necessary,R(),"this"))},reportInaccessibleUniqueSymbolError:function(){(v||b)&&e.addDiagnostic(Rp(v||b,_a.The_inferred_type_of_0_references_an_inaccessible_1_type_A_type_annotation_is_necessary,R(),"unique symbol"))},reportCyclicStructureError:function(){(v||b)&&e.addDiagnostic(Rp(v||b,_a.The_inferred_type_of_0_references_a_type_with_a_cyclic_structure_which_cannot_be_trivially_serialized_A_type_annotation_is_necessary,R()))},reportPrivateInBaseOfClassExpression:function(t){(v||b)&&e.addDiagnostic(aT(Rp(v||b,_a.Property_0_of_exported_anonymous_class_type_may_not_be_private_or_protected,t),...lE((v||b).parent)?[Rp(v||b,_a.Add_a_type_annotation_to_the_variable_0,R())]:[]))},reportLikelyUnsafeImportRequiredError:function(t){(v||b)&&e.addDiagnostic(Rp(v||b,_a.The_inferred_type_of_0_cannot_be_named_without_a_reference_to_1_This_is_likely_not_portable_A_type_annotation_is_necessary,R(),t))},reportTruncationError:function(){(v||b)&&e.addDiagnostic(Rp(v||b,_a.The_inferred_type_of_this_node_exceeds_the_maximum_length_the_compiler_will_serialize_An_explicit_type_annotation_is_needed))},moduleResolverHost:g,reportNonlocalAugmentation:function(t,n,r){var i;const o=null==(i=n.declarations)?void 0:i.find(e=>vd(e)===t),a=N(r.declarations,e=>vd(e)!==t);if(o&&a)for(const t of a)e.addDiagnostic(aT(Rp(t,_a.Declaration_augments_declaration_in_another_file_This_cannot_be_serialized),Rp(o,_a.This_is_the_declaration_being_augmented_Consider_moving_the_augmenting_declaration_into_the_same_file)))},reportNonSerializableProperty:function(t){(v||b)&&e.addDiagnostic(Rp(v||b,_a.The_type_of_this_node_cannot_be_serialized_because_its_property_0_cannot_be_serialized,t))},reportInferenceFallback:j,pushErrorFallbackNode(e){const t=b,n=h;h=()=>{h=n,b=t},b=e},popErrorFallbackNode(){h()}};let v,b,x,k,S,C;const w=e.getEmitResolver(),D=e.getCompilerOptions(),F=Dq(w),{stripInternal:P,isolatedDeclarations:A}=D;return function(l){if(308===l.kind&&l.isDeclarationFile)return l;if(309===l.kind){c=!0,k=[],S=[],C=[];let u=!1;const d=m.createBundle(E(l.sourceFiles,c=>{if(c.isDeclarationFile)return;if(u=u||c.hasNoDefaultLib,x=c,n=c,r=void 0,o=!1,i=new Map,a=t,p=!1,f=!1,h(c),Zp(c)||ef(c)){_=!1,s=!1;const t=Fm(c)?m.createNodeArray(J(c)):_J(c.statements,le,pu);return m.updateSourceFile(c,[m.createModuleDeclaration([m.createModifier(138)],m.createStringLiteral(Ry(e.getEmitHost(),c)),m.createModuleBlock(xI(m.createNodeArray(ae(t)),c.statements)))],!0,[],[],!1,[])}s=!0;const l=Fm(c)?m.createNodeArray(J(c)):_J(c.statements,le,pu);return m.updateSourceFile(c,ae(l),!0,[],[],!1,[])})),y=Do(Oo(Qq(l,g,!0).declarationFilePath));return d.syntheticFileReferences=w(y),d.syntheticTypeReferences=v(),d.syntheticLibReferences=b(),d.hasNoDefaultLib=u,d}let u;if(s=!0,p=!1,f=!1,n=l,x=l,a=t,c=!1,_=!1,o=!1,r=void 0,i=new Map,k=[],S=[],C=[],h(x),Fm(x))u=m.createNodeArray(J(l));else{const e=_J(l.statements,le,pu);u=xI(m.createNodeArray(ae(e)),l.statements),rO(l)&&(!_||p&&!f)&&(u=xI(m.createNodeArray([...u,iA(m)]),u))}const d=Do(Oo(Qq(l,g,!0).declarationFilePath));return m.updateSourceFile(l,u,!0,w(d),v(),l.hasNoDefaultLib,b());function h(e){k=K(k,E(e.referencedFiles,t=>[e,t])),S=K(S,e.typeReferenceDirectives),C=K(C,e.libReferenceDirectives)}function y(e){const t={...e};return t.pos=-1,t.end=-1,t}function v(){return B(S,e=>{if(e.preserve)return y(e)})}function b(){return B(C,e=>{if(e.preserve)return y(e)})}function w(e){return B(k,([t,n])=>{if(!n.preserve)return;const r=g.getSourceFileFromReference(t,n);if(!r)return;let i;if(r.isDeclarationFile)i=r.fileName;else{if(c&&T(l.sourceFiles,r))return;const e=Qq(r,g,!0);i=e.declarationFilePath||e.jsFilePath||r.fileName}if(!i)return;const o=aa(e,i,g.getCurrentDirectory(),g.getCanonicalFileName,!1),a=y(n);return a.fileName=o,a})}};function L(t){w.getPropertiesOfContainerFunction(t).forEach(t=>{if(lC(t.valueDeclaration)){const n=NF(t.valueDeclaration)?t.valueDeclaration.left:t.valueDeclaration;e.addDiagnostic(Rp(n,_a.Assigning_properties_to_functions_without_declaring_them_is_not_supported_with_isolatedDeclarations_Add_an_explicit_declaration_for_the_properties_assigned_to_this_function))}})}function j(t){A&&!Fm(x)&&vd(t)===x&&(lE(t)&&w.isExpandoFunctionDeclaration(t)?L(t):e.addDiagnostic(F(t)))}function M(t){if(0===t.accessibility){if(t.aliasesToMakeVisible)if(r)for(const e of t.aliasesToMakeVisible)ce(r,e);else r=t.aliasesToMakeVisible}else if(3!==t.accessibility){const n=a(t);if(n)return n.typeName?e.addDiagnostic(Rp(t.errorNode||n.errorNode,n.diagnosticMessage,Xd(n.typeName),t.errorSymbolName,t.errorModuleName)):e.addDiagnostic(Rp(t.errorNode||n.errorNode,n.diagnosticMessage,t.errorSymbolName,t.errorModuleName)),!0}return!1}function R(){return v?Ap(v):b&&Cc(b)?Ap(Cc(b)):b&&AE(b)?b.isExportEquals?"export=":"default":"(Missing)"}function J(e){const t=a;a=t=>t.errorNode&&Cq(t.errorNode)?Nq(t.errorNode)(t):{diagnosticMessage:t.errorModuleName?_a.Declaration_emit_for_this_file_requires_using_private_name_0_from_module_1_An_explicit_type_annotation_may_unblock_declaration_emit:_a.Declaration_emit_for_this_file_requires_using_private_name_0_An_explicit_type_annotation_may_unblock_declaration_emit,errorNode:t.errorNode||e};const n=w.getDeclarationStatementsForSourceFile(e,Eq,Pq,y);return a=t,n}function z(e){return 80===e.kind?e:208===e.kind?m.updateArrayBindingPattern(e,_J(e.elements,t,T_)):m.updateObjectBindingPattern(e,_J(e.elements,t,lF));function t(e){return 233===e.kind?e:(e.propertyName&&kD(e.propertyName)&&ab(e.propertyName.expression)&&ee(e.propertyName.expression,n),m.updateBindingElement(e,e.dotDotDotToken,e.propertyName,z(e.name),void 0))}}function q(e,t){let n;o||(n=a,a=Nq(e));const r=m.updateParameterDeclaration(e,function(e,t,n){return e.createModifiersFromModifierFlags(Iq(t,n,void 0))}(m,e,t),e.dotDotDotToken,z(e.name),w.isOptionalParameter(e)?e.questionToken||m.createToken(58):void 0,W(e,!0),V(e));return o||(a=n),r}function U(e){return Oq(e)&&!!e.initializer&&w.isLiteralConstDeclaration(pc(e))}function V(e){if(U(e))return bC(xC(e.initializer))||j(e),w.createLiteralConstValue(pc(e,Oq),y)}function W(e,t){if(!t&&wv(e,2))return;if(U(e))return;if(!AE(e)&&!lF(e)&&e.type&&(!TD(e)||!w.requiresAddingImplicitUndefined(e,n)))return lJ(e.type,se,b_);const r=v;let i,s;return v=e.name,o||(i=a,Cq(e)&&(a=Nq(e))),kC(e)?s=w.createTypeOfDeclaration(e,n,Eq,Pq,y):r_(e)?s=w.createReturnTypeOfSignatureDeclaration(e,n,Eq,Pq,y):un.assertNever(e),v=r,o||(a=i),s??m.createKeywordTypeNode(133)}function H(e){switch((e=pc(e)).kind){case 263:case 268:case 265:case 264:case 266:case 267:return!w.isDeclarationVisible(e);case 261:return!G(e);case 272:case 273:case 279:case 278:return!1;case 176:return!0}return!1}function G(e){return!IF(e)&&(k_(e.name)?$(e.name.elements,G):w.isDeclarationVisible(e))}function X(e,t,n){if(wv(e,2))return m.createNodeArray();const r=E(t,e=>q(e,n));return r?m.createNodeArray(r,t.hasTrailingComma):m.createNodeArray()}function Q(e,t){let n;if(!t){const t=sv(e);t&&(n=[q(t)])}if(ID(e)){let r;if(!t){const t=ov(e);t&&(r=q(t))}r||(r=m.createParameterDeclaration(void 0,void 0,"value")),n=ie(n,r)}return m.createNodeArray(n||l)}function Y(e,t){return wv(e,2)?void 0:_J(t,se,SD)}function Z(e){return sP(e)||fE(e)||gE(e)||dE(e)||pE(e)||r_(e)||jD(e)||nF(e)}function ee(e,t){M(w.isEntityNameVisible(e,t))}function te(e,t){return Du(e)&&Du(t)&&(e.jsDoc=t.jsDoc),Aw(e,Pw(t))}function re(t,n){if(n){if(_=_||268!==t.kind&&206!==t.kind,ju(n)&&c){const n=Jy(e.getEmitHost(),w,t);if(n)return m.createStringLiteral(n)}return n}}function oe(e){const t=mV(e);return e&&void 0!==t?e:void 0}function ae(e){for(;u(r);){const e=r.shift();if(!wp(e))return un.fail(`Late replaced statement was found which is not handled by the declaration transformer!: ${un.formatSyntaxKind(e.kind)}`);const t=s;s=e.parent&&sP(e.parent)&&!(rO(e.parent)&&c);const n=de(e);s=t,i.set(UJ(e),n)}return _J(e,function(e){if(wp(e)){const t=UJ(e);if(i.has(t)){const n=i.get(t);return i.delete(t),n&&((Qe(n)?$(n,G_):G_(n))&&(p=!0),sP(e.parent)&&(Qe(n)?$(n,X_):X_(n))&&(_=!0)),n}}return e},pu)}function se(t){if(fe(t))return;if(_u(t)){if(H(t))return;if(Rh(t))if(A){if(!w.isDefinitelyReferenceToGlobalSymbolObject(t.name.expression)){if(dE(t.parent)||uF(t.parent))return void e.addDiagnostic(Rp(t,_a.Computed_property_names_on_class_or_object_literals_cannot_be_inferred_with_isolatedDeclarations));if((pE(t.parent)||qD(t.parent))&&!ab(t.name.expression))return void e.addDiagnostic(Rp(t,_a.Computed_properties_must_be_number_or_string_literals_variables_or_dotted_expressions_with_isolatedDeclarations))}}else if(!w.isLateBound(pc(t))||!ab(t.name.expression))return}if(r_(t)&&w.isImplementationOfOverload(t))return;if(UF(t))return;let r;Z(t)&&(r=n,n=t);const i=a,s=Cq(t),c=o;let l=(188===t.kind||201===t.kind)&&266!==t.parent.kind;if((FD(t)||DD(t))&&wv(t,2)){if(t.symbol&&t.symbol.declarations&&t.symbol.declarations[0]!==t)return;return u(m.createPropertyDeclaration(ge(t),t.name,void 0,void 0,void 0))}if(s&&!o&&(a=Nq(t)),zD(t)&&ee(t.exprName,n),l&&(o=!0),function(e){switch(e.kind){case 181:case 177:case 175:case 178:case 179:case 173:case 172:case 174:case 180:case 182:case 261:case 169:case 234:case 184:case 195:case 185:case 186:case 206:return!0}return!1}(t))switch(t.kind){case 234:{(e_(t.expression)||ab(t.expression))&&ee(t.expression,n);const r=vJ(t,se,e);return u(m.updateExpressionWithTypeArguments(r,r.expression,r.typeArguments))}case 184:{ee(t.typeName,n);const r=vJ(t,se,e);return u(m.updateTypeReferenceNode(r,r.typeName,r.typeArguments))}case 181:return u(m.updateConstructSignature(t,Y(t,t.typeParameters),X(t,t.parameters),W(t)));case 177:return u(m.createConstructorDeclaration(ge(t),X(t,t.parameters,0),void 0));case 175:return sD(t.name)?u(void 0):u(m.createMethodDeclaration(ge(t),void 0,t.name,t.questionToken,Y(t,t.typeParameters),X(t,t.parameters),W(t),void 0));case 178:return sD(t.name)?u(void 0):u(m.updateGetAccessorDeclaration(t,ge(t),t.name,Q(t,wv(t,2)),W(t),void 0));case 179:return sD(t.name)?u(void 0):u(m.updateSetAccessorDeclaration(t,ge(t),t.name,Q(t,wv(t,2)),void 0));case 173:return sD(t.name)?u(void 0):u(m.updatePropertyDeclaration(t,ge(t),t.name,t.questionToken,W(t),V(t)));case 172:return sD(t.name)?u(void 0):u(m.updatePropertySignature(t,ge(t),t.name,t.questionToken,W(t)));case 174:return sD(t.name)?u(void 0):u(m.updateMethodSignature(t,ge(t),t.name,t.questionToken,Y(t,t.typeParameters),X(t,t.parameters),W(t)));case 180:return u(m.updateCallSignature(t,Y(t,t.typeParameters),X(t,t.parameters),W(t)));case 182:return u(m.updateIndexSignature(t,ge(t),X(t,t.parameters),lJ(t.type,se,b_)||m.createKeywordTypeNode(133)));case 261:return k_(t.name)?pe(t.name):(l=!0,o=!0,u(m.updateVariableDeclaration(t,t.name,void 0,W(t),V(t))));case 169:return 175===(_=t).parent.kind&&wv(_.parent,2)&&(t.default||t.constraint)?u(m.updateTypeParameterDeclaration(t,t.modifiers,t.name,void 0,void 0)):u(vJ(t,se,e));case 195:{const e=lJ(t.checkType,se,b_),r=lJ(t.extendsType,se,b_),i=n;n=t.trueType;const o=lJ(t.trueType,se,b_);n=i;const a=lJ(t.falseType,se,b_);return un.assert(e),un.assert(r),un.assert(o),un.assert(a),u(m.updateConditionalTypeNode(t,e,r,o,a))}case 185:return u(m.updateFunctionTypeNode(t,_J(t.typeParameters,se,SD),X(t,t.parameters),un.checkDefined(lJ(t.type,se,b_))));case 186:return u(m.updateConstructorTypeNode(t,ge(t),_J(t.typeParameters,se,SD),X(t,t.parameters),un.checkDefined(lJ(t.type,se,b_))));case 206:return df(t)?u(m.updateImportTypeNode(t,m.updateLiteralTypeNode(t.argument,re(t,t.argument.literal)),t.attributes,t.qualifier,_J(t.typeArguments,se,b_),t.isTypeOf)):u(t);default:un.assertNever(t,`Attempted to process unhandled node kind: ${un.formatSyntaxKind(t.kind)}`)}var _;return VD(t)&&za(x,t.pos).line===za(x,t.end).line&&xw(t,1),u(vJ(t,se,e));function u(e){return e&&s&&Rh(t)&&function(e){let t;o||(t=a,a=wq(e)),v=e.name,un.assert(Rh(e));ee(e.name.expression,n),o||(a=t),v=void 0}(t),Z(t)&&(n=r),s&&!o&&(a=i),l&&(o=c),e===t?e:e&&hw(te(e,t),t)}}function le(e){if(!function(e){switch(e.kind){case 263:case 268:case 272:case 265:case 264:case 266:case 267:case 244:case 273:case 279:case 278:return!0}return!1}(e))return;if(fe(e))return;switch(e.kind){case 279:return sP(e.parent)&&(_=!0),f=!0,m.updateExportDeclaration(e,e.modifiers,e.isTypeOnly,e.exportClause,re(e,e.moduleSpecifier),oe(e.attributes));case 278:if(sP(e.parent)&&(_=!0),f=!0,80===e.expression.kind)return e;{const t=m.createUniqueName("_default",16);a=()=>({diagnosticMessage:_a.Default_export_of_the_module_has_or_is_using_private_name_0,errorNode:e}),b=e;const n=W(e),r=m.createVariableDeclaration(t,void 0,n,void 0);b=void 0;const i=m.createVariableStatement(s?[m.createModifier(138)]:[],m.createVariableDeclarationList([r],2));return te(i,e),bw(e),[i,m.updateExportAssignment(e,e.modifiers,t)]}}const t=de(e);return i.set(UJ(e),t),e}function _e(e){if(bE(e)||wv(e,2048)||!kI(e))return e;const t=m.createModifiersFromModifierFlags(131039&Bv(e));return m.replaceModifiers(e,t)}function ue(e,t,n,r){const i=m.updateModuleDeclaration(e,t,n,r);if(cp(i)||32&i.flags)return i;const o=m.createModuleDeclaration(i.modifiers,i.name,i.body,32|i.flags);return hw(o,i),xI(o,i),o}function de(t){if(r)for(;zt(r,t););if(fe(t))return;switch(t.kind){case 272:return function(e){if(w.isDeclarationVisible(e)){if(284===e.moduleReference.kind){const t=Cm(e);return m.updateImportEqualsDeclaration(e,e.modifiers,e.isTypeOnly,e.name,m.updateExternalModuleReference(e.moduleReference,re(e,t)))}{const t=a;return a=Nq(e),ee(e.moduleReference,n),a=t,e}}}(t);case 273:return function(t){if(!t.importClause)return m.updateImportDeclaration(t,t.modifiers,t.importClause,re(t,t.moduleSpecifier),oe(t.attributes));const n=166===t.importClause.phaseModifier?void 0:t.importClause.phaseModifier,r=t.importClause&&t.importClause.name&&w.isDeclarationVisible(t.importClause)?t.importClause.name:void 0;if(!t.importClause.namedBindings)return r&&m.updateImportDeclaration(t,t.modifiers,m.updateImportClause(t.importClause,n,r,void 0),re(t,t.moduleSpecifier),oe(t.attributes));if(275===t.importClause.namedBindings.kind){const e=w.isDeclarationVisible(t.importClause.namedBindings)?t.importClause.namedBindings:void 0;return r||e?m.updateImportDeclaration(t,t.modifiers,m.updateImportClause(t.importClause,n,r,e),re(t,t.moduleSpecifier),oe(t.attributes)):void 0}const i=B(t.importClause.namedBindings.elements,e=>w.isDeclarationVisible(e)?e:void 0);return i&&i.length||r?m.updateImportDeclaration(t,t.modifiers,m.updateImportClause(t.importClause,n,r,i&&i.length?m.updateNamedImports(t.importClause.namedBindings,i):void 0),re(t,t.moduleSpecifier),oe(t.attributes)):w.isImportRequiredByAugmentation(t)?(A&&e.addDiagnostic(Rp(t,_a.Declaration_emit_for_this_file_requires_preserving_this_import_for_augmentations_This_is_not_supported_with_isolatedDeclarations)),m.updateImportDeclaration(t,t.modifiers,void 0,re(t,t.moduleSpecifier),oe(t.attributes))):void 0}(t)}if(_u(t)&&H(t))return;if(XP(t))return;if(r_(t)&&w.isImplementationOfOverload(t))return;let o;Z(t)&&(o=n,n=t);const c=Cq(t),l=a;c&&(a=Nq(t));const g=s;switch(t.kind){case 266:{s=!1;const e=h(m.updateTypeAliasDeclaration(t,ge(t),t.name,_J(t.typeParameters,se,SD),un.checkDefined(lJ(t.type,se,b_))));return s=g,e}case 265:return h(m.updateInterfaceDeclaration(t,ge(t),t.name,Y(t,t.typeParameters),he(t.heritageClauses),_J(t.members,se,h_)));case 263:{const e=h(m.updateFunctionDeclaration(t,ge(t),void 0,t.name,Y(t,t.typeParameters),X(t,t.parameters),W(t),void 0));if(e&&w.isExpandoFunctionDeclaration(t)&&function(e){var t;if(e.body)return!0;const n=null==(t=e.symbol.declarations)?void 0:t.filter(e=>uE(e)&&!e.body);return!n||n.indexOf(e)===n.length-1}(t)){const r=w.getPropertiesOfContainerFunction(t);A&&L(t);const i=CI.createModuleDeclaration(void 0,e.name||m.createIdentifier("_default"),m.createModuleBlock([]),32);DT(i,n),i.locals=Gu(r),i.symbol=r[0].parent;const o=[];let s=B(r,e=>{if(!lC(e.valueDeclaration))return;const t=mc(e.escapedName);if(!ms(t,99))return;a=Nq(e.valueDeclaration);const n=w.createTypeOfDeclaration(e.valueDeclaration,i,Eq,2|Pq,y);a=l;const r=Eh(t),s=r?m.getGeneratedNameForNode(e.valueDeclaration):m.createIdentifier(t);r&&o.push([s,t]);const c=m.createVariableDeclaration(s,void 0,n,void 0);return m.createVariableStatement(r?void 0:[m.createToken(95)],m.createVariableDeclarationList([c]))});o.length?s.push(m.createExportDeclaration(void 0,!1,m.createNamedExports(E(o,([e,t])=>m.createExportSpecifier(!1,e,t))))):s=B(s,e=>m.replaceModifiers(e,0));const c=m.createModuleDeclaration(ge(t),t.name,m.createModuleBlock(s),32);if(!wv(e,2048))return[e,c];const u=m.createModifiersFromModifierFlags(-2081&Bv(e)|128),d=m.updateFunctionDeclaration(e,u,void 0,e.name,e.typeParameters,e.parameters,e.type,void 0),p=m.updateModuleDeclaration(c,u,c.name,c.body),g=m.createExportAssignment(void 0,!1,c.name);return sP(t.parent)&&(_=!0),f=!0,[d,p,g]}return e}case 268:{s=!1;const e=t.body;if(e&&269===e.kind){const n=p,r=f;f=!1,p=!1;let i=ae(_J(e.statements,le,pu));33554432&t.flags&&(p=!1),pp(t)||$(i,me)||f||(i=p?m.createNodeArray([...i,iA(m)]):_J(i,_e,pu));const o=m.updateModuleBlock(e,i);s=g,p=n,f=r;const a=ge(t);return h(ue(t,a,fp(t)?re(t,t.name):t.name,o))}{s=g;const n=ge(t);s=!1,lJ(e,le);const r=UJ(e),o=i.get(r);return i.delete(r),h(ue(t,n,t.name,o))}}case 264:{v=t.name,b=t;const e=m.createNodeArray(ge(t)),r=Y(t,t.typeParameters),i=iv(t);let o;if(i){const e=a;o=ne(O(i.parameters,e=>{if(Nv(e,31)&&!fe(e))return a=Nq(e),80===e.name.kind?te(m.createPropertyDeclaration(ge(e),e.name,e.questionToken,W(e),V(e)),e):function t(n){let r;for(const i of n.elements)IF(i)||(k_(i.name)&&(r=K(r,t(i.name))),r=r||[],r.push(m.createPropertyDeclaration(ge(e),i.name,void 0,W(i),void 0)));return r}(e.name)})),a=e}const c=K(K(K($(t.members,e=>!!e.name&&sD(e.name))?[m.createPropertyDeclaration(void 0,m.createPrivateIdentifier("#private"),void 0,void 0,void 0)]:void 0,w.createLateBoundIndexSignatures(t,n,Eq,Pq,y)),o),_J(t.members,se,__)),l=m.createNodeArray(c),_=yh(t);if(_&&!ab(_.expression)&&106!==_.expression.kind){const n=t.name?mc(t.name.escapedText):"default",i=m.createUniqueName(`${n}_base`,16);a=()=>({diagnosticMessage:_a.extends_clause_of_exported_class_0_has_or_is_using_private_name_1,errorNode:_,typeName:t.name});const o=m.createVariableDeclaration(i,void 0,w.createTypeOfExpression(_.expression,t,Eq,Pq,y),void 0),c=m.createVariableStatement(s?[m.createModifier(138)]:[],m.createVariableDeclarationList([o],2)),u=m.createNodeArray(E(t.heritageClauses,e=>{if(96===e.token){const t=a;a=Nq(e.types[0]);const n=m.updateHeritageClause(e,E(e.types,e=>m.updateExpressionWithTypeArguments(e,i,_J(e.typeArguments,se,b_))));return a=t,n}return m.updateHeritageClause(e,_J(m.createNodeArray(N(e.types,e=>ab(e.expression)||106===e.expression.kind)),se,OF))}));return[c,h(m.updateClassDeclaration(t,e,t.name,r,u,l))]}{const n=he(t.heritageClauses);return h(m.updateClassDeclaration(t,e,t.name,r,n,l))}}case 244:return h(function(e){if(!d(e.declarationList.declarations,G))return;const t=_J(e.declarationList.declarations,se,lE);if(!u(t))return;const n=m.createNodeArray(ge(e));let r;return of(e.declarationList)||rf(e.declarationList)?(r=m.createVariableDeclarationList(t,2),hw(r,e.declarationList),xI(r,e.declarationList),Aw(r,e.declarationList)):r=m.updateVariableDeclarationList(e.declarationList,t),m.updateVariableStatement(e,n,r)}(t));case 267:return h(m.updateEnumDeclaration(t,m.createNodeArray(ge(t)),t.name,m.createNodeArray(B(t.members,t=>{if(fe(t))return;const n=w.getEnumMemberValue(t),r=null==n?void 0:n.value;A&&t.initializer&&(null==n?void 0:n.hasExternalReferences)&&!kD(t.name)&&e.addDiagnostic(Rp(t,_a.Enum_member_initializers_must_be_computable_without_references_to_external_symbols_with_isolatedDeclarations));const i=void 0===r?void 0:"string"==typeof r?m.createStringLiteral(r):r<0?m.createPrefixUnaryExpression(41,m.createNumericLiteral(-r)):m.createNumericLiteral(r);return te(m.updateEnumMember(t,t.name,i),t)}))))}return un.assertNever(t,`Unhandled top-level node in declaration emit: ${un.formatSyntaxKind(t.kind)}`);function h(e){return Z(t)&&(n=o),c&&(a=l),268===t.kind&&(s=g),e===t?e:(b=void 0,v=void 0,e&&hw(te(e,t),t))}}function pe(e){return I(B(e.elements,e=>function(e){if(233!==e.kind&&e.name){if(!G(e))return;return k_(e.name)?pe(e.name):m.createVariableDeclaration(e.name,void 0,W(e),void 0)}}(e)))}function fe(e){return!!P&&!!e&&zu(e,x)}function me(e){return AE(e)||IE(e)}function ge(e){const t=Bv(e),n=function(e){let t=130030,n=s&&!function(e){return 265===e.kind}(e)?128:0;const r=308===e.parent.kind;return(!r||c&&r&&rO(e.parent))&&(t^=128,n=0),Iq(e,t,n)}(e);return t===n?uJ(e.modifiers,e=>tt(e,Zl),Zl):m.createModifiersFromModifierFlags(n)}function he(e){return m.createNodeArray(N(E(e,e=>m.updateHeritageClause(e,_J(m.createNodeArray(N(e.types,t=>ab(t.expression)||96===e.token&&106===t.expression.kind)),se,OF))),e=>e.types&&!!e.types.length))}}function Iq(e,t=131070,n=0){let r=Bv(e)&t|n;return 2048&r&&!(32&r)&&(r^=32),2048&r&&128&r&&(r^=128),r}function Oq(e){switch(e.kind){case 173:case 172:return!wv(e,2);case 170:case 261:return!0}return!1}var Lq={scriptTransformers:l,declarationTransformers:l};function jq(e,t,n){return{scriptTransformers:Mq(e,t,n),declarationTransformers:Rq(t)}}function Mq(e,t,n){if(n)return l;const r=yk(e),i=vk(e),o=Ik(e),a=[];return se(a,t&&E(t.before,Jq)),a.push(Xz),e.experimentalDecorators&&a.push(eq),Hk(e)&&a.push(fq),r<99&&a.push(cq),e.experimentalDecorators||!(r<99)&&o||a.push(tq),a.push(Qz),r<8&&a.push(sq),r<7&&a.push(aq),r<6&&a.push(oq),r<5&&a.push(iq),r<4&&a.push(nq),r<3&&a.push(gq),r<2&&(a.push(yq),a.push(vq)),a.push(function(e){switch(e){case 200:return Sq;case 99:case 7:case 6:case 5:case 100:case 101:case 102:case 199:case 1:return Tq;case 4:return kq;default:return bq}}(i)),se(a,t&&E(t.after,Jq)),a}function Rq(e){const t=[];return t.push(Aq),se(t,e&&E(e.afterDeclarations,zq)),t}function Bq(e,t){return n=>{const r=e(n);return"function"==typeof r?t(n,r):function(e){return t=>cP(t)?e.transformBundle(t):e.transformSourceFile(t)}(r)}}function Jq(e){return Bq(e,$J)}function zq(e){return Bq(e,(e,t)=>t)}function qq(e,t){return t}function Uq(e,t,n){n(e,t)}function Vq(e,t,n,r,i,o,a){var s,c;const l=new Array(359);let _,u,d,p,f,m=0,g=[],h=[],y=[],v=[],b=0,x=!1,k=[],S=0,T=qq,C=Uq,w=0;const N=[],D={factory:n,getCompilerOptions:()=>r,getEmitResolver:()=>e,getEmitHost:()=>t,getEmitHelperFactory:dt(()=>oN(D)),startLexicalEnvironment:function(){un.assert(w>0,"Cannot modify the lexical environment during initialization."),un.assert(w<2,"Cannot modify the lexical environment after transformation has completed."),un.assert(!x,"Lexical environment is suspended."),g[b]=_,h[b]=u,y[b]=d,v[b]=m,b++,_=void 0,u=void 0,d=void 0,m=0},suspendLexicalEnvironment:function(){un.assert(w>0,"Cannot modify the lexical environment during initialization."),un.assert(w<2,"Cannot modify the lexical environment after transformation has completed."),un.assert(!x,"Lexical environment is already suspended."),x=!0},resumeLexicalEnvironment:function(){un.assert(w>0,"Cannot modify the lexical environment during initialization."),un.assert(w<2,"Cannot modify the lexical environment after transformation has completed."),un.assert(x,"Lexical environment is not suspended."),x=!1},endLexicalEnvironment:function(){let e;if(un.assert(w>0,"Cannot modify the lexical environment during initialization."),un.assert(w<2,"Cannot modify the lexical environment after transformation has completed."),un.assert(!x,"Lexical environment is suspended."),_||u||d){if(u&&(e=[...u]),_){const t=n.createVariableStatement(void 0,n.createVariableDeclarationList(_));xw(t,2097152),e?e.push(t):e=[t]}d&&(e=e?[...e,...d]:[...d])}return b--,_=g[b],u=h[b],d=y[b],m=v[b],0===b&&(g=[],h=[],y=[],v=[]),e},setLexicalEnvironmentFlags:function(e,t){m=t?m|e:m&~e},getLexicalEnvironmentFlags:function(){return m},hoistVariableDeclaration:function(e){un.assert(w>0,"Cannot modify the lexical environment during initialization."),un.assert(w<2,"Cannot modify the lexical environment after transformation has completed.");const t=xw(n.createVariableDeclaration(e),128);_?_.push(t):_=[t],1&m&&(m|=2)},hoistFunctionDeclaration:function(e){un.assert(w>0,"Cannot modify the lexical environment during initialization."),un.assert(w<2,"Cannot modify the lexical environment after transformation has completed."),xw(e,2097152),u?u.push(e):u=[e]},addInitializationStatement:function(e){un.assert(w>0,"Cannot modify the lexical environment during initialization."),un.assert(w<2,"Cannot modify the lexical environment after transformation has completed."),xw(e,2097152),d?d.push(e):d=[e]},startBlockScope:function(){un.assert(w>0,"Cannot start a block scope during initialization."),un.assert(w<2,"Cannot start a block scope after transformation has completed."),k[S]=p,S++,p=void 0},endBlockScope:function(){un.assert(w>0,"Cannot end a block scope during initialization."),un.assert(w<2,"Cannot end a block scope after transformation has completed.");const e=$(p)?[n.createVariableStatement(void 0,n.createVariableDeclarationList(p.map(e=>n.createVariableDeclaration(e)),1))]:void 0;return S--,p=k[S],0===S&&(k=[]),e},addBlockScopedVariable:function(e){un.assert(S>0,"Cannot add a block scoped variable outside of an iteration body."),(p||(p=[])).push(e)},requestEmitHelper:function e(t){if(un.assert(w>0,"Cannot modify the transformation context during initialization."),un.assert(w<2,"Cannot modify the transformation context after transformation has completed."),un.assert(!t.scoped,"Cannot request a scoped emit helper."),t.dependencies)for(const n of t.dependencies)e(n);f=ie(f,t)},readEmitHelpers:function(){un.assert(w>0,"Cannot modify the transformation context during initialization."),un.assert(w<2,"Cannot modify the transformation context after transformation has completed.");const e=f;return f=void 0,e},enableSubstitution:function(e){un.assert(w<2,"Cannot modify the transformation context after transformation has completed."),l[e]|=1},enableEmitNotification:function(e){un.assert(w<2,"Cannot modify the transformation context after transformation has completed."),l[e]|=2},isSubstitutionEnabled:I,isEmitNotificationEnabled:O,get onSubstituteNode(){return T},set onSubstituteNode(e){un.assert(w<1,"Cannot modify transformation hooks after initialization has completed."),un.assert(void 0!==e,"Value must not be 'undefined'"),T=e},get onEmitNode(){return C},set onEmitNode(e){un.assert(w<1,"Cannot modify transformation hooks after initialization has completed."),un.assert(void 0!==e,"Value must not be 'undefined'"),C=e},addDiagnostic(e){N.push(e)}};for(const e of i)vw(vd(pc(e)));tr("beforeTransform");const F=o.map(e=>e(D)),E=e=>{for(const t of F)e=t(e);return e};w=1;const P=[];for(const e of i)null==(s=Hn)||s.push(Hn.Phase.Emit,"transformNodes",308===e.kind?{path:e.path}:{kind:e.kind,pos:e.pos,end:e.end}),P.push((a?E:A)(e)),null==(c=Hn)||c.pop();return w=2,tr("afterTransform"),nr("transformTime","beforeTransform","afterTransform"),{transformed:P,substituteNode:function(e,t){return un.assert(w<3,"Cannot substitute a node after the result is disposed."),t&&I(t)&&T(e,t)||t},emitNodeWithNotification:function(e,t,n){un.assert(w<3,"Cannot invoke TransformationResult callbacks after the result is disposed."),t&&(O(t)?C(e,t,n):n(e,t))},isEmitNotificationEnabled:O,dispose:function(){if(w<3){for(const e of i)vw(vd(pc(e)));_=void 0,g=void 0,u=void 0,h=void 0,T=void 0,C=void 0,f=void 0,w=3}},diagnostics:N};function A(e){return!e||sP(e)&&e.isDeclarationFile?e:E(e)}function I(e){return!(!(1&l[e.kind])||8&Zd(e))}function O(e){return!!(2&l[e.kind])||!!(4&Zd(e))}}var Wq={factory:mw,getCompilerOptions:()=>({}),getEmitResolver:ut,getEmitHost:ut,getEmitHelperFactory:ut,startLexicalEnvironment:rt,resumeLexicalEnvironment:rt,suspendLexicalEnvironment:rt,endLexicalEnvironment:at,setLexicalEnvironmentFlags:rt,getLexicalEnvironmentFlags:()=>0,hoistVariableDeclaration:rt,hoistFunctionDeclaration:rt,addInitializationStatement:rt,startBlockScope:rt,endBlockScope:at,addBlockScopedVariable:rt,requestEmitHelper:rt,readEmitHelpers:ut,enableSubstitution:rt,enableEmitNotification:rt,isSubstitutionEnabled:ut,isEmitNotificationEnabled:ut,onSubstituteNode:qq,onEmitNode:Uq,addDiagnostic:rt},$q=function(){const e=[];return e[1024]=["{","}"],e[2048]=["(",")"],e[4096]=["<",">"],e[8192]=["[","]"],e}();function Hq(e){return ko(e,".tsbuildinfo")}function Kq(e,t,n,r=!1,i,o){const a=Qe(n)?n:Gy(e,n,r),s=e.getCompilerOptions();if(!i)if(s.outFile){if(a.length){const n=mw.createBundle(a),i=t(Qq(n,e,r),n);if(i)return i}}else for(const n of a){const i=t(Qq(n,e,r),n);if(i)return i}if(o){const e=Gq(s);if(e)return t({buildInfoPath:e},void 0)}}function Gq(e){const t=e.configFilePath;if(!function(e){return Ek(e)||!!e.tscBuild}(e))return;if(e.tsBuildInfoFile)return e.tsBuildInfoFile;const n=e.outFile;let r;if(n)r=US(n);else{if(!t)return;const n=US(t);r=e.outDir?e.rootDir?Mo(e.outDir,ra(e.rootDir,n,!0)):jo(e.outDir,Fo(n)):n}return r+".tsbuildinfo"}function Xq(e,t){const n=e.outFile,r=e.emitDeclarationOnly?void 0:n,i=r&&Yq(r,e),o=t||Dk(e)?US(n)+".d.ts":void 0;return{jsFilePath:r,sourceMapFilePath:i,declarationFilePath:o,declarationMapPath:o&&Pk(e)?o+".map":void 0}}function Qq(e,t,n){const r=t.getCompilerOptions();if(309===e.kind)return Xq(r,n);{const i=qy(e.fileName,t,Zq(e.fileName,r)),o=ef(e),a=o&&0===Zo(e.fileName,i,t.getCurrentDirectory(),!t.useCaseSensitiveFileNames()),s=r.emitDeclarationOnly||a?void 0:i,c=!s||ef(e)?void 0:Yq(s,r),l=n||Dk(r)&&!o?Uy(e.fileName,t):void 0;return{jsFilePath:s,sourceMapFilePath:c,declarationFilePath:l,declarationMapPath:l&&Pk(r)?l+".map":void 0}}}function Yq(e,t){return t.sourceMap&&!t.inlineSourceMap?e+".map":void 0}function Zq(e,t){return ko(e,".json")?".json":1===t.jsx&&So(e,[".jsx",".tsx"])?".jsx":So(e,[".mts",".mjs"])?".mjs":So(e,[".cts",".cjs"])?".cjs":".js"}function eU(e,t,n,r){return n?Mo(n,ra(r(),e,t)):e}function tU(e,t,n,r=()=>lU(t,n)){return nU(e,t.options,n,r)}function nU(e,t,n,r){return $S(eU(e,n,t.declarationDir||t.outDir,r),Wy(e))}function rU(e,t,n,r=()=>lU(t,n)){if(t.options.emitDeclarationOnly)return;const i=ko(e,".json"),o=iU(e,t.options,n,r);return i&&0===Zo(e,o,un.checkDefined(t.options.configFilePath),n)?void 0:o}function iU(e,t,n,r){return $S(eU(e,n,t.outDir,r),Zq(e,t))}function oU(){let e;return{addOutput:function(t){t&&(e||(e=[])).push(t)},getOutputs:function(){return e||l}}}function aU(e,t){const{jsFilePath:n,sourceMapFilePath:r,declarationFilePath:i,declarationMapPath:o}=Xq(e.options,!1);t(n),t(r),t(i),t(o)}function sU(e,t,n,r,i){if(uO(t))return;const o=rU(t,e,n,i);if(r(o),!ko(t,".json")&&(o&&e.options.sourceMap&&r(`${o}.map`),Dk(e.options))){const o=tU(t,e,n,i);r(o),e.options.declarationMap&&r(`${o}.map`)}}function cU(e,t,n,r,i){let o;return e.rootDir?(o=Bo(e.rootDir,n),null==i||i(e.rootDir)):e.composite&&e.configFilePath?(o=Do(Oo(e.configFilePath)),null==i||i(o)):o=zU(t(),n,r),o&&o[o.length-1]!==lo&&(o+=lo),o}function lU({options:e,fileNames:t},n){return cU(e,()=>N(t,t=>!(e.noEmitForJsFiles&&So(t,wS)||uO(t))),Do(Oo(un.checkDefined(e.configFilePath))),Wt(!n))}function _U(e,t){const{addOutput:n,getOutputs:r}=oU();if(e.options.outFile)aU(e,n);else{const r=dt(()=>lU(e,t));for(const i of e.fileNames)sU(e,i,t,n,r)}return n(Gq(e.options)),r()}function uU(e,t,n){t=Jo(t),un.assert(T(e.fileNames,t),"Expected fileName to be present in command line");const{addOutput:r,getOutputs:i}=oU();return e.options.outFile?aU(e,r):sU(e,t,n,r),i()}function dU(e,t){if(e.options.outFile){const{jsFilePath:t,declarationFilePath:n}=Xq(e.options,!1);return un.checkDefined(t||n,`project ${e.options.configFilePath} expected to have at least one output`)}const n=dt(()=>lU(e,t));for(const r of e.fileNames){if(uO(r))continue;const i=rU(r,e,t,n);if(i)return i;if(!ko(r,".json")&&Dk(e.options))return tU(r,e,t,n)}return Gq(e.options)||un.fail(`project ${e.options.configFilePath} expected to have at least one output`)}function pU(e,t){return!!t&&!!e}function fU(e,t,n,{scriptTransformers:r,declarationTransformers:i},o,a,c,l){var _=t.getCompilerOptions(),d=_.sourceMap||_.inlineSourceMap||Pk(_)?[]:void 0,p=_.listEmittedFiles?[]:void 0,f=_y(),m=Pb(_),g=Oy(m),{enter:h,exit:y}=$n("printTime","beforePrint","afterPrint"),v=!1;return h(),Kq(t,function({jsFilePath:a,sourceMapFilePath:l,declarationFilePath:d,declarationMapPath:m,buildInfoPath:g},h){var y,k,S,T,C,w;null==(y=Hn)||y.push(Hn.Phase.Emit,"emitJsFileOrBundle",{jsFilePath:a}),function(n,i,a){if(!n||o||!i)return;if(t.isEmitBlocked(i)||_.noEmit)return void(v=!0);(sP(n)?[n]:N(n.sourceFiles,Am)).forEach(t=>{var n;!_.noCheck&&pT(t,_)||(Fm(n=t)||QI(n,t=>!bE(t)||32&zv(t)?xE(t)?"skip":void e.markLinkedReferences(t):"skip"))});const s=Vq(e,t,mw,_,[n],r,!1),c=kU({removeComments:_.removeComments,newLine:_.newLine,noEmitHelpers:_.noEmitHelpers,module:vk(_),moduleResolution:bk(_),target:yk(_),sourceMap:_.sourceMap,inlineSourceMap:_.inlineSourceMap,inlineSources:_.inlineSources,extendedDiagnostics:_.extendedDiagnostics},{hasGlobalName:e.hasGlobalName,onEmitNode:s.emitNodeWithNotification,isEmitNotificationEnabled:s.isEmitNotificationEnabled,substituteNode:s.substituteNode});un.assert(1===s.transformed.length,"Should only see one output from the transform"),x(i,a,s,c,_),s.dispose(),p&&(p.push(i),a&&p.push(a))}(h,a,l),null==(k=Hn)||k.pop(),null==(S=Hn)||S.push(Hn.Phase.Emit,"emitDeclarationFileOrBundle",{declarationFilePath:d}),function(n,r,a){if(!n||0===o)return;if(!r)return void((o||_.emitDeclarationOnly)&&(v=!0));const s=sP(n)?[n]:n.sourceFiles,l=c?s:N(s,Am),d=_.outFile?[mw.createBundle(l)]:l;l.forEach(e=>{(o&&!Dk(_)||_.noCheck||pU(o,c)||!pT(e,_))&&b(e)});const m=Vq(e,t,mw,_,d,i,!1);if(u(m.diagnostics))for(const e of m.diagnostics)f.add(e);const g=!!m.diagnostics&&!!m.diagnostics.length||!!t.isEmitBlocked(r)||!!_.noEmit;if(v=v||g,!g||c){un.assert(1===m.transformed.length,"Should only see one output from the decl transform");const t={removeComments:_.removeComments,newLine:_.newLine,noEmitHelpers:!0,module:_.module,moduleResolution:_.moduleResolution,target:_.target,sourceMap:2!==o&&_.declarationMap,inlineSourceMap:_.inlineSourceMap,extendedDiagnostics:_.extendedDiagnostics,onlyPrintJsDocStyle:!0,omitBraceSourceMapPositions:!0},n=x(r,a,m,kU(t,{hasGlobalName:e.hasGlobalName,onEmitNode:m.emitNodeWithNotification,isEmitNotificationEnabled:m.isEmitNotificationEnabled,substituteNode:m.substituteNode}),{sourceMap:t.sourceMap,sourceRoot:_.sourceRoot,mapRoot:_.mapRoot,extendedDiagnostics:_.extendedDiagnostics});p&&(n&&p.push(r),a&&p.push(a))}m.dispose()}(h,d,m),null==(T=Hn)||T.pop(),null==(C=Hn)||C.push(Hn.Phase.Emit,"emitBuildInfo",{buildInfoPath:g}),function(e){if(!e||n)return;if(t.isEmitBlocked(e))return void(v=!0);const r=t.getBuildInfo()||{version:s};Zy(t,f,e,mU(r),!1,void 0,{buildInfo:r}),null==p||p.push(e)}(g),null==(w=Hn)||w.pop()},Gy(t,n,c),c,a,!n&&!l),y(),{emitSkipped:v,diagnostics:f.getDiagnostics(),emittedFiles:p,sourceMaps:d};function b(t){AE(t)?80===t.expression.kind&&e.collectLinkedAliases(t.expression,!0):LE(t)?e.collectLinkedAliases(t.propertyName||t.name,!0):XI(t,b)}function x(e,n,r,i,o){const a=r.transformed[0],s=309===a.kind?a:void 0,c=308===a.kind?a:void 0,l=s?s.sourceFiles:[c];let u,p;if(function(e,t){return(e.sourceMap||e.inlineSourceMap)&&(308!==t.kind||!ko(t.fileName,".json"))}(o,a)&&(u=kJ(t,Fo(Oo(e)),function(e){const t=Oo(e.sourceRoot||"");return t?Wo(t):t}(o),function(e,n,r){if(e.sourceRoot)return t.getCommonSourceDirectory();if(e.mapRoot){let n=Oo(e.mapRoot);return r&&(n=Do(Qy(r.fileName,t,n))),0===No(n)&&(n=jo(t.getCommonSourceDirectory(),n)),n}return Do(Jo(n))}(o,e,c),o)),s?i.writeBundle(s,g,u):i.writeFile(c,g,u),u){d&&d.push({inputSourceFileNames:u.getSources(),sourceMap:u.toJSON()});const r=function(e,n,r,i,o){if(e.inlineSourceMap){const e=n.toString();return`data:application/json;base64,${Sb(so,e)}`}const a=Fo(Oo(un.checkDefined(i)));if(e.mapRoot){let n=Oo(e.mapRoot);return o&&(n=Do(Qy(o.fileName,t,n))),0===No(n)?(n=jo(t.getCommonSourceDirectory(),n),encodeURI(aa(Do(Jo(r)),jo(n,a),t.getCurrentDirectory(),t.getCanonicalFileName,!0))):encodeURI(jo(n,a))}return encodeURI(a)}(o,u,e,n,c);if(r&&(g.isAtStartOfLine()||g.rawWrite(m),p=g.getTextPos(),g.writeComment(`//# sourceMappingURL=${r}`)),n){const e=u.toString();Zy(t,f,n,e,!1,l)}}else g.writeLine();const h=g.getText(),y={sourceMapUrlPos:p,diagnostics:r.diagnostics};return Zy(t,f,e,h,!!_.emitBOM,l,y),g.clear(),!y.skippedDtsWrite}}function mU(e){return JSON.stringify(e)}function gU(e,t){return Cb(e,t)}var hU={hasGlobalName:ut,getReferencedExportContainer:ut,getReferencedImportDeclaration:ut,getReferencedDeclarationWithCollidingName:ut,isDeclarationWithCollidingName:ut,isValueAliasDeclaration:ut,isReferencedAliasDeclaration:ut,isTopLevelValueImportEqualsWithEntityName:ut,hasNodeCheckFlag:ut,isDeclarationVisible:ut,isLateBound:e=>!1,collectLinkedAliases:ut,markLinkedReferences:ut,isImplementationOfOverload:ut,requiresAddingImplicitUndefined:ut,isExpandoFunctionDeclaration:ut,getPropertiesOfContainerFunction:ut,createTypeOfDeclaration:ut,createReturnTypeOfSignatureDeclaration:ut,createTypeOfExpression:ut,createLiteralConstValue:ut,isSymbolAccessible:ut,isEntityNameVisible:ut,getConstantValue:ut,getEnumMemberValue:ut,getReferencedValueDeclaration:ut,getReferencedValueDeclarations:ut,getTypeReferenceSerializationKind:ut,isOptionalParameter:ut,isArgumentsLocalBinding:ut,getExternalModuleFileFromDeclaration:ut,isLiteralConstDeclaration:ut,getJsxFactoryEntity:ut,getJsxFragmentFactoryEntity:ut,isBindingCapturedByNode:ut,getDeclarationStatementsForSourceFile:ut,isImportRequiredByAugmentation:ut,isDefinitelyReferenceToGlobalSymbolObject:ut,createLateBoundIndexSignatures:ut,symbolToDeclarations:ut},yU=dt(()=>kU({})),vU=dt(()=>kU({removeComments:!0})),bU=dt(()=>kU({removeComments:!0,neverAsciiEscape:!0})),xU=dt(()=>kU({removeComments:!0,omitTrailingSemicolon:!0}));function kU(e={},t={}){var n,r,i,o,a,s,c,l,_,u,p,f,m,g,h,y,b,x,S,T,C,w,N,D,F,E,{hasGlobalName:P,onEmitNode:A=Uq,isEmitNotificationEnabled:I,substituteNode:O=qq,onBeforeEmitNode:L,onAfterEmitNode:j,onBeforeEmitNodeArray:M,onAfterEmitNodeArray:R,onBeforeEmitToken:B,onAfterEmitToken:J}=t,z=!!e.extendedDiagnostics,q=!!e.omitBraceSourceMapPositions,U=Pb(e),V=vk(e),W=new Map,H=e.preserveSourceNewlines,K=function(e){b.write(e)},G=!0,X=-1,Q=-1,Y=-1,Z=-1,ee=-1,te=!1,ne=!!e.removeComments,{enter:re,exit:ie}=Wn(z,"commentTime","beforeComment","afterComment"),oe=mw.parenthesizer,ae={select:e=>0===e?oe.parenthesizeLeadingTypeArgument:void 0},se=function(){return cI(function(e,t){if(t){t.stackIndex++,t.preserveSourceNewlinesStack[t.stackIndex]=H,t.containerPosStack[t.stackIndex]=Y,t.containerEndStack[t.stackIndex]=Z,t.declarationListContainerEndStack[t.stackIndex]=ee;const n=t.shouldEmitCommentsStack[t.stackIndex]=Ie(e),r=t.shouldEmitSourceMapsStack[t.stackIndex]=Oe(e);null==L||L(e),n&&Hn(e),r&&mr(e),Ee(e)}else t={stackIndex:0,preserveSourceNewlinesStack:[void 0],containerPosStack:[-1],containerEndStack:[-1],declarationListContainerEndStack:[-1],shouldEmitCommentsStack:[!1],shouldEmitSourceMapsStack:[!1]};return t},function(t,n,r){return e(t,r,"left")},function(e,t,n){const r=28!==e.kind,i=Sn(n,n.left,e),o=Sn(n,e,n.right);fn(i,r),or(e.pos),ln(e,103===e.kind?Qt:Yt),sr(e.end,!0),fn(o,!0)},function(t,n,r){return e(t,r,"right")},function(e,t){if(mn(Sn(e,e.left,e.operatorToken),Sn(e,e.operatorToken,e.right)),t.stackIndex>0){const n=t.preserveSourceNewlinesStack[t.stackIndex],r=t.containerPosStack[t.stackIndex],i=t.containerEndStack[t.stackIndex],o=t.declarationListContainerEndStack[t.stackIndex],a=t.shouldEmitCommentsStack[t.stackIndex],s=t.shouldEmitSourceMapsStack[t.stackIndex];Pe(n),s&&gr(e),a&&Kn(e,r,i,o),null==j||j(e),t.stackIndex--}},void 0);function e(e,t,n){const r="left"===n?oe.getParenthesizeLeftSideOfBinaryForOperator(t.operatorToken.kind):oe.getParenthesizeRightSideOfBinaryForOperator(t.operatorToken.kind);let i=Le(0,1,e);if(i===Je&&(un.assertIsDefined(F),i=je(1,1,e=r(nt(F,V_))),F=void 0),(i===$n||i===fr||i===Re)&&NF(e))return e;E=r,i(1,e)}}();return Te(),{printNode:function(e,t,n){switch(e){case 0:un.assert(sP(t),"Expected a SourceFile node.");break;case 2:un.assert(aD(t),"Expected an Identifier node.");break;case 1:un.assert(V_(t),"Expected an Expression node.")}switch(t.kind){case 308:return le(t);case 309:return ce(t)}return ue(e,t,n,ge()),he()},printList:function(e,t,n){return de(e,t,n,ge()),he()},printFile:le,printBundle:ce,writeNode:ue,writeList:de,writeFile:me,writeBundle:pe};function ce(e){return pe(e,ge(),void 0),he()}function le(e){return me(e,ge(),void 0),he()}function ue(e,t,n,r){const i=b;Se(r,void 0),xe(e,t,n),Te(),b=i}function de(e,t,n,r){const i=b;Se(r,void 0),n&&ke(n),Ut(void 0,t,e),Te(),b=i}function pe(e,t,n){S=!1;const r=b;var i;Se(t,n),Ft(e),Dt(e),ze(e),Ct(!!(i=e).hasNoDefaultLib,i.syntheticFileReferences||[],i.syntheticTypeReferences||[],i.syntheticLibReferences||[]);for(const t of e.sourceFiles)xe(0,t,t);Te(),b=r}function me(e,t,n){S=!0;const r=b;Se(t,n),Ft(e),Dt(e),xe(0,e,e),Te(),b=r}function ge(){return x||(x=Oy(U))}function he(){const e=x.getText();return x.clear(),e}function xe(e,t,n){n&&ke(n),Ae(e,t,void 0)}function ke(e){n=e,N=void 0,D=void 0,e&&xr(e)}function Se(t,n){t&&e.omitTrailingSemicolon&&(t=Ly(t)),T=n,G=!(b=t)||!T}function Te(){r=[],i=[],o=[],a=new Set,s=[],c=new Map,l=[],_=0,u=[],p=0,f=[],m=void 0,g=[],h=void 0,n=void 0,N=void 0,D=void 0,Se(void 0,void 0)}function Ce(){return N||(N=Ma(un.checkDefined(n)))}function we(e,t){void 0!==e&&Ae(4,e,t)}function Ne(e){void 0!==e&&Ae(2,e,void 0)}function De(e,t){void 0!==e&&Ae(1,e,t)}function Fe(e){Ae(UN(e)?6:4,e)}function Ee(e){H&&4&ep(e)&&(H=!1)}function Pe(e){H=e}function Ae(e,t,n){E=n,Le(0,e,t)(e,t),E=void 0}function Ie(e){return!ne&&!sP(e)}function Oe(e){return!G&&!sP(e)&&!Pm(e)}function Le(e,t,n){switch(e){case 0:if(A!==Uq&&(!I||I(n)))return Me;case 1:if(O!==qq&&(F=O(t,n)||n)!==n)return E&&(F=E(F)),Je;case 2:if(Ie(n))return $n;case 3:if(Oe(n))return fr;case 4:return Re;default:return un.assertNever(e)}}function je(e,t,n){return Le(e+1,t,n)}function Me(e,t){const n=je(0,e,t);A(e,t,n)}function Re(e,t){if(null==L||L(t),H){const n=H;Ee(t),Be(e,t),Pe(n)}else Be(e,t);null==j||j(t),E=void 0}function Be(e,t,r=!0){if(r){const n=Hw(t);if(n)return function(e,t,n){switch(n.kind){case 1:!function(e,t,n){rn(`\${${n.order}:`),Be(e,t,!1),rn("}")}(e,t,n);break;case 0:!function(e,t,n){un.assert(243===t.kind,`A tab stop cannot be attached to a node of kind ${un.formatSyntaxKind(t.kind)}.`),un.assert(5!==e,"A tab stop cannot be attached to an embedded statement."),rn(`$${n.order}`)}(e,t,n)}}(e,t,n)}if(0===e)return Tt(nt(t,sP));if(2===e)return Ve(nt(t,aD));if(6===e)return Ue(nt(t,UN),!0);if(3===e)return function(e){we(e.name),tn(),Qt("in"),tn(),we(e.constraint)}(nt(t,SD));if(7===e)return function(e){Gt("{"),tn(),Qt(132===e.token?"assert":"with"),Gt(":"),tn();Ut(e,e.elements,526226),tn(),Gt("}")}(nt(t,wE));if(5===e)return un.assertNode(t,$F),Ye(!0);if(4===e){switch(t.kind){case 16:case 17:case 18:return Ue(t,!1);case 80:return Ve(t);case 81:return We(t);case 167:return function(e){(function(e){80===e.kind?De(e):we(e)})(e.left),Gt("."),we(e.right)}(t);case 168:return function(e){Gt("["),De(e.expression,oe.parenthesizeExpressionOfComputedPropertyName),Gt("]")}(t);case 169:return function(e){At(e,e.modifiers),we(e.name),e.constraint&&(tn(),Qt("extends"),tn(),we(e.constraint)),e.default&&(tn(),Yt("="),tn(),we(e.default))}(t);case 170:return function(e){Pt(e,e.modifiers,!0),we(e.dotDotDotToken),Et(e.name,Zt),we(e.questionToken),e.parent&&318===e.parent.kind&&!e.name?we(e.type):It(e.type),Ot(e.initializer,e.type?e.type.end:e.questionToken?e.questionToken.end:e.name?e.name.end:e.modifiers?e.modifiers.end:e.pos,e,oe.parenthesizeExpressionForDisallowedComma)}(t);case 171:return a=t,Gt("@"),void De(a.expression,oe.parenthesizeLeftSideOfAccess);case 172:return function(e){At(e,e.modifiers),Et(e.name,nn),we(e.questionToken),It(e.type),Xt()}(t);case 173:return function(e){Pt(e,e.modifiers,!0),we(e.name),we(e.questionToken),we(e.exclamationToken),It(e.type),Ot(e.initializer,e.type?e.type.end:e.questionToken?e.questionToken.end:e.name.end,e),Xt()}(t);case 174:return function(e){At(e,e.modifiers),we(e.name),we(e.questionToken),lt(e,dt,ut)}(t);case 175:return function(e){Pt(e,e.modifiers,!0),we(e.asteriskToken),we(e.name),we(e.questionToken),lt(e,dt,_t)}(t);case 176:return function(e){Qt("static"),Dn(e),pt(e.body),Fn(e)}(t);case 177:return function(e){Pt(e,e.modifiers,!1),Qt("constructor"),lt(e,dt,_t)}(t);case 178:case 179:return function(e){const t=Pt(e,e.modifiers,!0);rt(178===e.kind?139:153,t,Qt,e),tn(),we(e.name),lt(e,dt,_t)}(t);case 180:return function(e){lt(e,dt,ut)}(t);case 181:return function(e){Qt("new"),tn(),lt(e,dt,ut)}(t);case 182:return function(e){Pt(e,e.modifiers,!1),Ut(e,e.parameters,8848),It(e.type),Xt()}(t);case 183:return function(e){e.assertsModifier&&(we(e.assertsModifier),tn()),we(e.parameterName),e.type&&(tn(),Qt("is"),tn(),we(e.type))}(t);case 184:return function(e){we(e.typeName),Rt(e,e.typeArguments)}(t);case 185:return function(e){lt(e,$e,He)}(t);case 186:return function(e){At(e,e.modifiers),Qt("new"),tn(),lt(e,$e,He)}(t);case 187:return function(e){Qt("typeof"),tn(),we(e.exprName),Rt(e,e.typeArguments)}(t);case 188:return function(e){Dn(e),d(e.members,In),Gt("{");const t=1&Zd(e)?768:32897;Ut(e,e.members,524288|t),Gt("}"),Fn(e)}(t);case 189:return function(e){we(e.elementType,oe.parenthesizeNonArrayTypeOfPostfixType),Gt("["),Gt("]")}(t);case 190:return function(e){rt(23,e.pos,Gt,e);const t=1&Zd(e)?528:657;Ut(e,e.elements,524288|t,oe.parenthesizeElementTypeOfTupleType),rt(24,e.elements.end,Gt,e)}(t);case 191:return function(e){we(e.type,oe.parenthesizeTypeOfOptionalType),Gt("?")}(t);case 193:return function(e){Ut(e,e.types,516,oe.parenthesizeConstituentTypeOfUnionType)}(t);case 194:return function(e){Ut(e,e.types,520,oe.parenthesizeConstituentTypeOfIntersectionType)}(t);case 195:return function(e){we(e.checkType,oe.parenthesizeCheckTypeOfConditionalType),tn(),Qt("extends"),tn(),we(e.extendsType,oe.parenthesizeExtendsTypeOfConditionalType),tn(),Gt("?"),tn(),we(e.trueType),tn(),Gt(":"),tn(),we(e.falseType)}(t);case 196:return function(e){Qt("infer"),tn(),we(e.typeParameter)}(t);case 197:return function(e){Gt("("),we(e.type),Gt(")")}(t);case 234:return Xe(t);case 198:return void Qt("this");case 199:return function(e){_n(e.operator,Qt),tn();const t=148===e.operator?oe.parenthesizeOperandOfReadonlyTypeOperator:oe.parenthesizeOperandOfTypeOperator;we(e.type,t)}(t);case 200:return function(e){we(e.objectType,oe.parenthesizeNonArrayTypeOfPostfixType),Gt("["),we(e.indexType),Gt("]")}(t);case 201:return function(e){const t=Zd(e);Gt("{"),1&t?tn():(on(),an()),e.readonlyToken&&(we(e.readonlyToken),148!==e.readonlyToken.kind&&Qt("readonly"),tn()),Gt("["),Ae(3,e.typeParameter),e.nameType&&(tn(),Qt("as"),tn(),we(e.nameType)),Gt("]"),e.questionToken&&(we(e.questionToken),58!==e.questionToken.kind&&Gt("?")),Gt(":"),tn(),we(e.type),Xt(),1&t?tn():(on(),sn()),Ut(e,e.members,2),Gt("}")}(t);case 202:return function(e){De(e.literal)}(t);case 203:return function(e){we(e.dotDotDotToken),we(e.name),we(e.questionToken),rt(59,e.name.end,Gt,e),tn(),we(e.type)}(t);case 204:return function(e){we(e.head),Ut(e,e.templateSpans,262144)}(t);case 205:return function(e){we(e.type),we(e.literal)}(t);case 206:return function(e){e.isTypeOf&&(Qt("typeof"),tn()),Qt("import"),Gt("("),we(e.argument),e.attributes&&(Gt(","),tn(),Ae(7,e.attributes)),Gt(")"),e.qualifier&&(Gt("."),we(e.qualifier)),Rt(e,e.typeArguments)}(t);case 207:return function(e){Gt("{"),Ut(e,e.elements,525136),Gt("}")}(t);case 208:return function(e){Gt("["),Ut(e,e.elements,524880),Gt("]")}(t);case 209:return function(e){we(e.dotDotDotToken),e.propertyName&&(we(e.propertyName),Gt(":"),tn()),we(e.name),Ot(e.initializer,e.name.end,e,oe.parenthesizeExpressionForDisallowedComma)}(t);case 240:return function(e){De(e.expression),we(e.literal)}(t);case 241:return void Xt();case 242:return function(e){Qe(e,!e.multiLine&&Tn(e))}(t);case 244:return function(e){Pt(e,e.modifiers,!1),we(e.declarationList),Xt()}(t);case 243:return Ye(!1);case 245:return function(e){De(e.expression,oe.parenthesizeExpressionOfExpressionStatement),n&&ef(n)&&!ey(e.expression)||Xt()}(t);case 246:return function(e){const t=rt(101,e.pos,Qt,e);tn(),rt(21,t,Gt,e),De(e.expression),rt(22,e.expression.end,Gt,e),Mt(e,e.thenStatement),e.elseStatement&&(dn(e,e.thenStatement,e.elseStatement),rt(93,e.thenStatement.end,Qt,e),246===e.elseStatement.kind?(tn(),we(e.elseStatement)):Mt(e,e.elseStatement))}(t);case 247:return function(e){rt(92,e.pos,Qt,e),Mt(e,e.statement),VF(e.statement)&&!H?tn():dn(e,e.statement,e.expression),Ze(e,e.statement.end),Xt()}(t);case 248:return function(e){Ze(e,e.pos),Mt(e,e.statement)}(t);case 249:return function(e){const t=rt(99,e.pos,Qt,e);tn();let n=rt(21,t,Gt,e);et(e.initializer),n=rt(27,e.initializer?e.initializer.end:n,Gt,e),jt(e.condition),n=rt(27,e.condition?e.condition.end:n,Gt,e),jt(e.incrementor),rt(22,e.incrementor?e.incrementor.end:n,Gt,e),Mt(e,e.statement)}(t);case 250:return function(e){const t=rt(99,e.pos,Qt,e);tn(),rt(21,t,Gt,e),et(e.initializer),tn(),rt(103,e.initializer.end,Qt,e),tn(),De(e.expression),rt(22,e.expression.end,Gt,e),Mt(e,e.statement)}(t);case 251:return function(e){const t=rt(99,e.pos,Qt,e);tn(),function(e){e&&(we(e),tn())}(e.awaitModifier),rt(21,t,Gt,e),et(e.initializer),tn(),rt(165,e.initializer.end,Qt,e),tn(),De(e.expression),rt(22,e.expression.end,Gt,e),Mt(e,e.statement)}(t);case 252:return function(e){rt(88,e.pos,Qt,e),Lt(e.label),Xt()}(t);case 253:return function(e){rt(83,e.pos,Qt,e),Lt(e.label),Xt()}(t);case 254:return function(e){rt(107,e.pos,Qt,e),jt(e.expression&&at(e.expression),at),Xt()}(t);case 255:return function(e){const t=rt(118,e.pos,Qt,e);tn(),rt(21,t,Gt,e),De(e.expression),rt(22,e.expression.end,Gt,e),Mt(e,e.statement)}(t);case 256:return function(e){const t=rt(109,e.pos,Qt,e);tn(),rt(21,t,Gt,e),De(e.expression),rt(22,e.expression.end,Gt,e),tn(),we(e.caseBlock)}(t);case 257:return function(e){we(e.label),rt(59,e.label.end,Gt,e),tn(),we(e.statement)}(t);case 258:return function(e){rt(111,e.pos,Qt,e),jt(at(e.expression),at),Xt()}(t);case 259:return function(e){rt(113,e.pos,Qt,e),tn(),we(e.tryBlock),e.catchClause&&(dn(e,e.tryBlock,e.catchClause),we(e.catchClause)),e.finallyBlock&&(dn(e,e.catchClause||e.tryBlock,e.finallyBlock),rt(98,(e.catchClause||e.tryBlock).end,Qt,e),tn(),we(e.finallyBlock))}(t);case 260:return function(e){cn(89,e.pos,Qt),Xt()}(t);case 261:return function(e){var t,n,r;we(e.name),we(e.exclamationToken),It(e.type),Ot(e.initializer,(null==(t=e.type)?void 0:t.end)??(null==(r=null==(n=e.name.emitNode)?void 0:n.typeNode)?void 0:r.end)??e.name.end,e,oe.parenthesizeExpressionForDisallowedComma)}(t);case 262:return function(e){rf(e)?(Qt("await"),tn(),Qt("using")):Qt(cf(e)?"let":af(e)?"const":of(e)?"using":"var"),tn(),Ut(e,e.declarations,528)}(t);case 263:return function(e){ct(e)}(t);case 264:return function(e){gt(e)}(t);case 265:return function(e){Pt(e,e.modifiers,!1),Qt("interface"),tn(),we(e.name),Bt(e,e.typeParameters),Ut(e,e.heritageClauses,512),tn(),Gt("{"),Dn(e),d(e.members,In),Ut(e,e.members,129),Fn(e),Gt("}")}(t);case 266:return function(e){Pt(e,e.modifiers,!1),Qt("type"),tn(),we(e.name),Bt(e,e.typeParameters),tn(),Gt("="),tn(),we(e.type),Xt()}(t);case 267:return function(e){Pt(e,e.modifiers,!1),Qt("enum"),tn(),we(e.name),tn(),Gt("{"),Ut(e,e.members,145),Gt("}")}(t);case 268:return function(e){Pt(e,e.modifiers,!1),2048&~e.flags&&(Qt(32&e.flags?"namespace":"module"),tn()),we(e.name);let t=e.body;if(!t)return Xt();for(;t&&gE(t);)Gt("."),we(t.name),t=t.body;tn(),we(t)}(t);case 269:return function(e){Dn(e),d(e.statements,An),Qe(e,Tn(e)),Fn(e)}(t);case 270:return function(e){rt(19,e.pos,Gt,e),Ut(e,e.clauses,129),rt(20,e.clauses.end,Gt,e,!0)}(t);case 271:return function(e){let t=rt(95,e.pos,Qt,e);tn(),t=rt(130,t,Qt,e),tn(),t=rt(145,t,Qt,e),tn(),we(e.name),Xt()}(t);case 272:return function(e){Pt(e,e.modifiers,!1),rt(102,e.modifiers?e.modifiers.end:e.pos,Qt,e),tn(),e.isTypeOnly&&(rt(156,e.pos,Qt,e),tn()),we(e.name),tn(),rt(64,e.name.end,Gt,e),tn(),function(e){80===e.kind?De(e):we(e)}(e.moduleReference),Xt()}(t);case 273:return function(e){Pt(e,e.modifiers,!1),rt(102,e.modifiers?e.modifiers.end:e.pos,Qt,e),tn(),e.importClause&&(we(e.importClause),tn(),rt(161,e.importClause.end,Qt,e),tn()),De(e.moduleSpecifier),e.attributes&&Lt(e.attributes),Xt()}(t);case 274:return function(e){void 0!==e.phaseModifier&&(rt(e.phaseModifier,e.pos,Qt,e),tn()),we(e.name),e.name&&e.namedBindings&&(rt(28,e.name.end,Gt,e),tn()),we(e.namedBindings)}(t);case 275:return function(e){const t=rt(42,e.pos,Gt,e);tn(),rt(130,t,Qt,e),tn(),we(e.name)}(t);case 281:return function(e){const t=rt(42,e.pos,Gt,e);tn(),rt(130,t,Qt,e),tn(),we(e.name)}(t);case 276:case 280:return function(e){!function(e){Gt("{"),Ut(e,e.elements,525136),Gt("}")}(e)}(t);case 277:case 282:return function(e){!function(e){e.isTypeOnly&&(Qt("type"),tn()),e.propertyName&&(we(e.propertyName),tn(),rt(130,e.propertyName.end,Qt,e),tn()),we(e.name)}(e)}(t);case 278:return function(e){const t=rt(95,e.pos,Qt,e);tn(),e.isExportEquals?rt(64,t,Yt,e):rt(90,t,Qt,e),tn(),De(e.expression,e.isExportEquals?oe.getParenthesizeRightSideOfBinaryForOperator(64):oe.parenthesizeExpressionOfExportDefault),Xt()}(t);case 279:return function(e){Pt(e,e.modifiers,!1);let t=rt(95,e.pos,Qt,e);tn(),e.isTypeOnly&&(t=rt(156,t,Qt,e),tn()),e.exportClause?we(e.exportClause):t=rt(42,t,Gt,e),e.moduleSpecifier&&(tn(),rt(161,e.exportClause?e.exportClause.end:t,Qt,e),tn(),De(e.moduleSpecifier)),e.attributes&&Lt(e.attributes),Xt()}(t);case 301:return function(e){rt(e.token,e.pos,Qt,e),tn();Ut(e,e.elements,526226)}(t);case 302:return function(e){we(e.name),Gt(":"),tn();const t=e.value;1024&Zd(t)||sr(Pw(t).pos),we(t)}(t);case 283:case 320:case 331:case 332:case 334:case 335:case 336:case 337:case 354:case 355:return;case 284:return function(e){Qt("require"),Gt("("),De(e.expression),Gt(")")}(t);case 12:return function(e){b.writeLiteral(e.text)}(t);case 287:case 290:return function(e){if(Gt("<"),UE(e)){const t=bn(e.tagName,e);ht(e.tagName),Rt(e,e.typeArguments),e.attributes.properties&&e.attributes.properties.length>0&&tn(),we(e.attributes),xn(e.attributes,e),mn(t)}Gt(">")}(t);case 288:case 291:return function(e){Gt("")}(t);case 292:return function(e){we(e.name),function(e,t,n,r){n&&(t("="),r(n))}(0,Gt,e.initializer,Fe)}(t);case 293:return function(e){Ut(e,e.properties,262656)}(t);case 294:return function(e){Gt("{..."),De(e.expression),Gt("}")}(t);case 295:return function(e){var t,r;if(e.expression||!ne&&!ey(e)&&(function(e){let t=!1;return as((null==n?void 0:n.text)||"",e+1,()=>t=!0),t}(r=e.pos)||function(e){let t=!1;return os((null==n?void 0:n.text)||"",e+1,()=>t=!0),t}(r))){const r=n&&!ey(e)&&za(n,e.pos).line!==za(n,e.end).line;r&&b.increaseIndent();const i=rt(19,e.pos,Gt,e);we(e.dotDotDotToken),De(e.expression),rt(20,(null==(t=e.expression)?void 0:t.end)||i,Gt,e),r&&b.decreaseIndent()}}(t);case 296:return function(e){Ne(e.namespace),Gt(":"),Ne(e.name)}(t);case 297:return function(e){rt(84,e.pos,Qt,e),tn(),De(e.expression,oe.parenthesizeExpressionForDisallowedComma),yt(e,e.statements,e.expression.end)}(t);case 298:return function(e){const t=rt(90,e.pos,Qt,e);yt(e,e.statements,t)}(t);case 299:return function(e){tn(),_n(e.token,Qt),tn(),Ut(e,e.types,528)}(t);case 300:return function(e){const t=rt(85,e.pos,Qt,e);tn(),e.variableDeclaration&&(rt(21,t,Gt,e),we(e.variableDeclaration),rt(22,e.variableDeclaration.end,Gt,e),tn()),we(e.block)}(t);case 304:return function(e){we(e.name),Gt(":"),tn();const t=e.initializer;1024&Zd(t)||sr(Pw(t).pos),De(t,oe.parenthesizeExpressionForDisallowedComma)}(t);case 305:return function(e){we(e.name),e.objectAssignmentInitializer&&(tn(),Gt("="),tn(),De(e.objectAssignmentInitializer,oe.parenthesizeExpressionForDisallowedComma))}(t);case 306:return function(e){e.expression&&(rt(26,e.pos,Gt,e),De(e.expression,oe.parenthesizeExpressionForDisallowedComma))}(t);case 307:return function(e){we(e.name),Ot(e.initializer,e.name.end,e,oe.parenthesizeExpressionForDisallowedComma)}(t);case 308:return Tt(t);case 309:return un.fail("Bundles should be printed using printBundle");case 310:return St(t);case 311:return function(e){tn(),Gt("{"),we(e.name),Gt("}")}(t);case 313:return Gt("*");case 314:return Gt("?");case 315:return function(e){Gt("?"),we(e.type)}(t);case 316:return function(e){Gt("!"),we(e.type)}(t);case 317:return function(e){we(e.type),Gt("=")}(t);case 318:return function(e){Qt("function"),Jt(e,e.parameters),Gt(":"),we(e.type)}(t);case 192:case 319:return function(e){Gt("..."),we(e.type)}(t);case 321:return function(e){if(K("/**"),e.comment){const t=ll(e.comment);if(t){const e=t.split(/\r\n?|\n/);for(const t of e)on(),tn(),Gt("*"),tn(),K(t)}}e.tags&&(1!==e.tags.length||345!==e.tags[0].kind||e.comment?Ut(e,e.tags,33):(tn(),we(e.tags[0]))),tn(),K("*/")}(t);case 323:return vt(t);case 324:return bt(t);case 328:case 333:case 338:return xt((o=t).tagName),void kt(o.comment);case 329:case 330:return function(e){xt(e.tagName),tn(),Gt("{"),we(e.class),Gt("}"),kt(e.comment)}(t);case 339:return function(e){xt(e.tagName),e.name&&(tn(),we(e.name)),kt(e.comment),bt(e.typeExpression)}(t);case 340:return function(e){kt(e.comment),bt(e.typeExpression)}(t);case 342:case 349:return xt((i=t).tagName),St(i.typeExpression),tn(),i.isBracketed&&Gt("["),we(i.name),i.isBracketed&&Gt("]"),void kt(i.comment);case 341:case 343:case 344:case 345:case 350:case 351:return function(e){xt(e.tagName),St(e.typeExpression),kt(e.comment)}(t);case 346:return function(e){xt(e.tagName),St(e.constraint),tn(),Ut(e,e.typeParameters,528),kt(e.comment)}(t);case 347:return function(e){xt(e.tagName),e.typeExpression&&(310===e.typeExpression.kind?St(e.typeExpression):(tn(),Gt("{"),K("Object"),e.typeExpression.isArrayType&&(Gt("["),Gt("]")),Gt("}"))),e.fullName&&(tn(),we(e.fullName)),kt(e.comment),e.typeExpression&&323===e.typeExpression.kind&&vt(e.typeExpression)}(t);case 348:return function(e){xt(e.tagName),we(e.name),kt(e.comment)}(t);case 352:return function(e){xt(e.tagName),tn(),e.importClause&&(we(e.importClause),tn(),rt(161,e.importClause.end,Qt,e),tn()),De(e.moduleSpecifier),e.attributes&&Lt(e.attributes),kt(e.comment)}(t)}if(V_(t)&&(e=1,O!==qq)){const n=O(e,t)||t;n!==t&&(t=n,E&&(t=E(t)))}}var i,o,a;if(1===e)switch(t.kind){case 9:case 10:return function(e){Ue(e,!1)}(t);case 11:case 14:case 15:return Ue(t,!1);case 80:return Ve(t);case 81:return We(t);case 210:return function(e){Vt(e,e.elements,8914|(e.multiLine?65536:0),oe.parenthesizeExpressionForDisallowedComma)}(t);case 211:return function(e){Dn(e),d(e.properties,In);const t=131072&Zd(e);t&&an();const r=e.multiLine?65536:0,i=n&&n.languageVersion>=1&&!ef(n)?64:0;Ut(e,e.properties,526226|i|r),t&&sn(),Fn(e)}(t);case 212:return function(e){De(e.expression,oe.parenthesizeLeftSideOfAccess);const t=e.questionDotToken||CT(mw.createToken(25),e.expression.end,e.name.pos),n=Sn(e,e.expression,t),r=Sn(e,t,e.name);fn(n,!1);29!==t.kind&&function(e){if(zN(e=Sl(e))){const t=Nn(e,void 0,!0,!1);return!(448&e.numericLiteralFlags||t.includes(Fa(25))||t.includes(String.fromCharCode(69))||t.includes(String.fromCharCode(101)))}if(Sx(e)){const t=Jw(e);return"number"==typeof t&&isFinite(t)&&t>=0&&Math.floor(t)===t}}(e.expression)&&!b.hasTrailingComment()&&!b.hasTrailingWhitespace()&&Gt("."),e.questionDotToken?we(t):rt(t.kind,e.expression.end,Gt,e),fn(r,!1),we(e.name),mn(n,r)}(t);case 213:return function(e){De(e.expression,oe.parenthesizeLeftSideOfAccess),we(e.questionDotToken),rt(23,e.expression.end,Gt,e),De(e.argumentExpression),rt(24,e.argumentExpression.end,Gt,e)}(t);case 214:return function(e){const t=16&ep(e);t&&(Gt("("),Ht("0"),Gt(","),tn()),De(e.expression,oe.parenthesizeLeftSideOfAccess),t&&Gt(")"),we(e.questionDotToken),Rt(e,e.typeArguments),Vt(e,e.arguments,2576,oe.parenthesizeExpressionForDisallowedComma)}(t);case 215:return function(e){rt(105,e.pos,Qt,e),tn(),De(e.expression,oe.parenthesizeExpressionOfNew),Rt(e,e.typeArguments),Vt(e,e.arguments,18960,oe.parenthesizeExpressionForDisallowedComma)}(t);case 216:return function(e){const t=16&ep(e);t&&(Gt("("),Ht("0"),Gt(","),tn()),De(e.tag,oe.parenthesizeLeftSideOfAccess),t&&Gt(")"),Rt(e,e.typeArguments),tn(),De(e.template)}(t);case 217:return function(e){Gt("<"),we(e.type),Gt(">"),De(e.expression,oe.parenthesizeOperandOfPrefixUnary)}(t);case 218:return function(e){const t=rt(21,e.pos,Gt,e),n=bn(e.expression,e);De(e.expression,void 0),xn(e.expression,e),mn(n),rt(22,e.expression?e.expression.end:t,Gt,e)}(t);case 219:return function(e){On(e.name),ct(e)}(t);case 220:return function(e){At(e,e.modifiers),lt(e,Ke,Ge)}(t);case 221:return function(e){rt(91,e.pos,Qt,e),tn(),De(e.expression,oe.parenthesizeOperandOfPrefixUnary)}(t);case 222:return function(e){rt(114,e.pos,Qt,e),tn(),De(e.expression,oe.parenthesizeOperandOfPrefixUnary)}(t);case 223:return function(e){rt(116,e.pos,Qt,e),tn(),De(e.expression,oe.parenthesizeOperandOfPrefixUnary)}(t);case 224:return function(e){rt(135,e.pos,Qt,e),tn(),De(e.expression,oe.parenthesizeOperandOfPrefixUnary)}(t);case 225:return function(e){_n(e.operator,Yt),function(e){const t=e.operand;return 225===t.kind&&(40===e.operator&&(40===t.operator||46===t.operator)||41===e.operator&&(41===t.operator||47===t.operator))}(e)&&tn(),De(e.operand,oe.parenthesizeOperandOfPrefixUnary)}(t);case 226:return function(e){De(e.operand,oe.parenthesizeOperandOfPostfixUnary),_n(e.operator,Yt)}(t);case 227:return se(t);case 228:return function(e){const t=Sn(e,e.condition,e.questionToken),n=Sn(e,e.questionToken,e.whenTrue),r=Sn(e,e.whenTrue,e.colonToken),i=Sn(e,e.colonToken,e.whenFalse);De(e.condition,oe.parenthesizeConditionOfConditionalExpression),fn(t,!0),we(e.questionToken),fn(n,!0),De(e.whenTrue,oe.parenthesizeBranchOfConditionalExpression),mn(t,n),fn(r,!0),we(e.colonToken),fn(i,!0),De(e.whenFalse,oe.parenthesizeBranchOfConditionalExpression),mn(r,i)}(t);case 229:return function(e){we(e.head),Ut(e,e.templateSpans,262144)}(t);case 230:return function(e){rt(127,e.pos,Qt,e),we(e.asteriskToken),jt(e.expression&&at(e.expression),st)}(t);case 231:return function(e){rt(26,e.pos,Gt,e),De(e.expression,oe.parenthesizeExpressionForDisallowedComma)}(t);case 232:return function(e){On(e.name),gt(e)}(t);case 233:case 283:case 354:return;case 235:return function(e){De(e.expression,void 0),e.type&&(tn(),Qt("as"),tn(),we(e.type))}(t);case 236:return function(e){De(e.expression,oe.parenthesizeLeftSideOfAccess),Yt("!")}(t);case 234:return Xe(t);case 239:return function(e){De(e.expression,void 0),e.type&&(tn(),Qt("satisfies"),tn(),we(e.type))}(t);case 237:return function(e){cn(e.keywordToken,e.pos,Gt),Gt("."),we(e.name)}(t);case 238:return un.fail("SyntheticExpression should never be printed.");case 285:return function(e){we(e.openingElement),Ut(e,e.children,262144),we(e.closingElement)}(t);case 286:return function(e){Gt("<"),ht(e.tagName),Rt(e,e.typeArguments),tn(),we(e.attributes),Gt("/>")}(t);case 289:return function(e){we(e.openingFragment),Ut(e,e.children,262144),we(e.closingFragment)}(t);case 353:return un.fail("SyntaxList should not be printed");case 356:return function(e){const t=Zd(e);1024&t||e.pos===e.expression.pos||sr(e.expression.pos),De(e.expression),2048&t||e.end===e.expression.end||or(e.expression.end)}(t);case 357:return function(e){Vt(e,e.elements,528,void 0)}(t);case 358:return un.fail("SyntheticReferenceExpression should not be printed")}return Ch(t.kind)?ln(t,Qt):Fl(t.kind)?ln(t,Gt):void un.fail(`Unhandled SyntaxKind: ${un.formatSyntaxKind(t.kind)}.`)}function Je(e,t){const n=je(1,e,t);un.assertIsDefined(F),t=F,F=void 0,n(e,t)}function ze(t){let r=!1;const i=309===t.kind?t:void 0;if(i&&0===V)return;const o=i?i.sourceFiles.length:1;for(let a=0;a")}function He(e){tn(),we(e.type)}function Ke(e){Bt(e,e.typeParameters),zt(e,e.parameters),It(e.type),tn(),we(e.equalsGreaterThanToken)}function Ge(e){VF(e.body)?pt(e.body):(tn(),De(e.body,oe.parenthesizeConciseBodyOfArrowFunction))}function Xe(e){De(e.expression,oe.parenthesizeLeftSideOfAccess),Rt(e,e.typeArguments)}function Qe(e,t){rt(19,e.pos,Gt,e);const n=t||1&Zd(e)?768:129;Ut(e,e.statements,n),rt(20,e.statements.end,Gt,e,!!(1&n))}function Ye(e){e?Gt(";"):Xt()}function Ze(e,t){const n=rt(117,t,Qt,e);tn(),rt(21,n,Gt,e),De(e.expression),rt(22,e.expression.end,Gt,e)}function et(e){void 0!==e&&(262===e.kind?we(e):De(e))}function rt(e,t,r,i,o){const a=pc(i),s=a&&a.kind===i.kind,c=t;if(s&&n&&(t=Qa(n.text,t)),s&&i.pos!==c){const e=o&&n&&!$b(c,t,n);e&&an(),or(c),e&&sn()}if(t=q||19!==e&&20!==e?_n(e,r,t):cn(e,t,r,i),s&&i.end!==t){const e=295===i.kind;sr(t,!e,e)}return t}function it(e){return 2===e.kind||!!e.hasTrailingNewLine}function ot(e){if(!n)return!1;const t=_s(n.text,e.pos);if(t){const t=pc(e);if(t&&yF(t.parent))return!0}return!!$(t,it)||!!$(Iw(e),it)||!!JF(e)&&(!(e.pos===e.expression.pos||!$(us(n.text,e.expression.pos),it))||ot(e.expression))}function at(e){if(!ne)switch(e.kind){case 356:if(ot(e)){const t=pc(e);if(t&&yF(t)){const n=mw.createParenthesizedExpression(e.expression);return hw(n,e),xI(n,t),n}return mw.createParenthesizedExpression(e)}return mw.updatePartiallyEmittedExpression(e,at(e.expression));case 212:return mw.updatePropertyAccessExpression(e,at(e.expression),e.name);case 213:return mw.updateElementAccessExpression(e,at(e.expression),e.argumentExpression);case 214:return mw.updateCallExpression(e,at(e.expression),e.typeArguments,e.arguments);case 216:return mw.updateTaggedTemplateExpression(e,at(e.tag),e.typeArguments,e.template);case 226:return mw.updatePostfixUnaryExpression(e,at(e.operand));case 227:return mw.updateBinaryExpression(e,at(e.left),e.operatorToken,e.right);case 228:return mw.updateConditionalExpression(e,at(e.condition),e.questionToken,e.whenTrue,e.colonToken,e.whenFalse);case 235:return mw.updateAsExpression(e,at(e.expression),e.type);case 239:return mw.updateSatisfiesExpression(e,at(e.expression),e.type);case 236:return mw.updateNonNullExpression(e,at(e.expression))}return e}function st(e){return at(oe.parenthesizeExpressionForDisallowedComma(e))}function ct(e){Pt(e,e.modifiers,!1),Qt("function"),we(e.asteriskToken),tn(),Ne(e.name),lt(e,dt,_t)}function lt(e,t,n){const r=131072&Zd(e);r&&an(),Dn(e),d(e.parameters,An),t(e),n(e),Fn(e),r&&sn()}function _t(e){const t=e.body;t?pt(t):Xt()}function ut(e){Xt()}function dt(e){Bt(e,e.typeParameters),Jt(e,e.parameters),It(e.type)}function pt(e){An(e),null==L||L(e),tn(),Gt("{"),an();const t=function(e){if(1&Zd(e))return!0;if(e.multiLine)return!1;if(!ey(e)&&n&&!Rb(e,n))return!1;if(gn(e,fe(e.statements),2)||yn(e,ye(e.statements),2,e.statements))return!1;let t;for(const n of e.statements){if(hn(t,n,2)>0)return!1;t=n}return!0}(e)?ft:mt;Zn(e,e.statements,t),sn(),cn(20,e.statements.end,Gt,e),null==j||j(e)}function ft(e){mt(e,!0)}function mt(e,t){const n=Nt(e.statements),r=b.getTextPos();ze(e),0===n&&r===b.getTextPos()&&t?(sn(),Ut(e,e.statements,768),an()):Ut(e,e.statements,1,void 0,n)}function gt(e){Pt(e,e.modifiers,!0),rt(86,jb(e).pos,Qt,e),e.name&&(tn(),Ne(e.name));const t=131072&Zd(e);t&&an(),Bt(e,e.typeParameters),Ut(e,e.heritageClauses,0),tn(),Gt("{"),Dn(e),d(e.members,In),Ut(e,e.members,129),Fn(e),Gt("}"),t&&sn()}function ht(e){80===e.kind?De(e):we(e)}function yt(e,t,r){let i=163969;1===t.length&&(!n||ey(e)||ey(t[0])||Bb(e,t[0],n))?(cn(59,r,Gt,e),tn(),i&=-130):rt(59,r,Gt,e),Ut(e,t,i)}function vt(e){Ut(e,mw.createNodeArray(e.jsDocPropertyTags),33)}function bt(e){e.typeParameters&&Ut(e,mw.createNodeArray(e.typeParameters),33),e.parameters&&Ut(e,mw.createNodeArray(e.parameters),33),e.type&&(on(),tn(),Gt("*"),tn(),we(e.type))}function xt(e){Gt("@"),we(e)}function kt(e){const t=ll(e);t&&(tn(),K(t))}function St(e){e&&(tn(),Gt("{"),we(e.type),Gt("}"))}function Tt(e){on();const t=e.statements;0===t.length||!pf(t[0])||ey(t[0])?Zn(e,t,wt):wt(e)}function Ct(e,t,r,i){if(e&&(en('/// '),on()),n&&n.moduleName&&(en(`/// `),on()),n&&n.amdDependencies)for(const e of n.amdDependencies)e.name?en(`/// `):en(`/// `),on();function o(e,t){for(const n of t){const t=n.resolutionMode?`resolution-mode="${99===n.resolutionMode?"import":"require"}" `:"",r=n.preserve?'preserve="true" ':"";en(`/// `),on()}}o("path",t),o("types",r),o("lib",i)}function wt(e){const t=e.statements;Dn(e),d(e.statements,An),ze(e);const n=k(t,e=>!pf(e));!function(e){e.isDeclarationFile&&Ct(e.hasNoDefaultLib,e.referencedFiles,e.typeReferenceDirectives,e.libReferenceDirectives)}(e),Ut(e,t,1,void 0,-1===n?t.length:n),Fn(e)}function Nt(e,t,n){let r=!!t;for(let i=0;i=r.length||0===s;if(c&&32768&i)return null==M||M(r),void(null==R||R(r));15360&i&&(Gt(function(e){return $q[15360&e][0]}(i)),c&&r&&sr(r.pos,!0)),null==M||M(r),c?!(1&i)||H&&(!t||n&&Rb(t,n))?256&i&&!(524288&i)&&tn():on():$t(e,t,r,i,o,a,s,r.hasTrailingComma,r),null==R||R(r),15360&i&&(c&&r&&or(r.end),Gt(function(e){return $q[15360&e][1]}(i)))}function $t(e,t,n,r,i,o,a,s,c){const l=!(262144&r);let _=l;const u=gn(t,n[o],r);u?(on(u),_=!1):256&r&&tn(),128&r&&an();const d=function(e,t){return 1===e.length?SU:"object"==typeof t?TU:CU}(e,i);let p,f=!1;for(let s=0;s0?(131&r||(an(),f=!0),_&&60&r&&!XS(a.pos)&&sr(Pw(a).pos,!!(512&r),!0),on(e),_=!1):p&&512&r&&tn()}_?sr(Pw(a).pos):_=l,y=a.pos,d(a,e,i,s),f&&(sn(),f=!1),p=a}const m=p?Zd(p):0,g=ne||!!(2048&m),h=s&&64&r&&16&r;h&&(p&&!g?rt(28,p.end,Gt,p):Gt(",")),p&&(t?t.end:-1)!==p.end&&60&r&&!g&&or(h&&(null==c?void 0:c.end)?c.end:p.end),128&r&&sn();const v=yn(t,n[o+a-1],r,c);v?on(v):2097408&r&&tn()}function Ht(e){b.writeLiteral(e)}function Kt(e,t){b.writeSymbol(e,t)}function Gt(e){b.writePunctuation(e)}function Xt(){b.writeTrailingSemicolon(";")}function Qt(e){b.writeKeyword(e)}function Yt(e){b.writeOperator(e)}function Zt(e){b.writeParameter(e)}function en(e){b.writeComment(e)}function tn(){b.writeSpace(" ")}function nn(e){b.writeProperty(e)}function rn(e){b.nonEscapingWrite?b.nonEscapingWrite(e):b.write(e)}function on(e=1){for(let t=0;t0)}function an(){b.increaseIndent()}function sn(){b.decreaseIndent()}function cn(e,t,n,r){return G?_n(e,n,t):function(e,t,n,r,i){if(G||e&&Pm(e))return i(t,n,r);const o=e&&e.emitNode,a=o&&o.flags||0,s=o&&o.tokenSourceMapRanges&&o.tokenSourceMapRanges[t],c=s&&s.source||C;return r=hr(c,s?s.pos:r),!(256&a)&&r>=0&&vr(c,r),r=i(t,n,r),s&&(r=s.end),!(512&a)&&r>=0&&vr(c,r),r}(r,e,n,t,_n)}function ln(e,t){B&&B(e),t(Fa(e.kind)),J&&J(e)}function _n(e,t,n){const r=Fa(e);return t(r),n<0?n:n+r.length}function dn(e,t,n){if(1&Zd(e))tn();else if(H){const r=Sn(e,t,n);r?on(r):tn()}else on()}function pn(e){const t=e.split(/\r\n?|\n/),n=Lu(t);for(const e of t){const t=n?e.slice(n):e;t.length&&(on(),K(t))}}function fn(e,t){e?(an(),on(e)):t&&tn()}function mn(e,t){e&&sn(),t&&sn()}function gn(e,t,r){if(2&r||H){if(65536&r)return 1;if(void 0===t)return!e||n&&Rb(e,n)?0:1;if(t.pos===y)return 0;if(12===t.kind)return 0;if(n&&e&&!XS(e.pos)&&!ey(t)&&(!t.parent||_c(t.parent)===_c(e)))return H?vn(r=>Kb(t.pos,e.pos,n,r)):Bb(e,t,n)?0:1;if(kn(t,r))return 1}return 1&r?1:0}function hn(e,t,r){if(2&r||H){if(void 0===e||void 0===t)return 0;if(12===t.kind)return 0;if(n&&!ey(e)&&!ey(t))return H&&function(e,t){if(t.pos-1&&r.indexOf(t)===i+1}(e,t)?vn(r=>Ub(e,t,n,r)):!H&&(o=t,(i=_c(i=e)).parent&&i.parent===_c(o).parent)?qb(e,t,n)?0:1:65536&r?1:0;if(kn(e,r)||kn(t,r))return 1}else if(Fw(t))return 1;var i,o;return 1&r?1:0}function yn(e,t,r,i){if(2&r||H){if(65536&r)return 1;if(void 0===t)return!e||n&&Rb(e,n)?0:1;if(n&&e&&!XS(e.pos)&&!ey(t)&&(!t.parent||t.parent===e)){if(H){const r=i&&!XS(i.end)?i.end:t.end;return vn(t=>Gb(r,e.end,n,t))}return Jb(e,t,n)?0:1}if(kn(t,r))return 1}return 1&r&&!(131072&r)?1:0}function vn(e){un.assert(!!H);const t=e(!0);return 0===t?e(!1):t}function bn(e,t){const n=H&&gn(t,e,0);return n&&fn(n,!1),!!n}function xn(e,t){const n=H&&yn(t,e,0,void 0);n&&on(n)}function kn(e,t){if(ey(e)){const n=Fw(e);return void 0===n?!!(65536&t):n}return!!(65536&t)}function Sn(e,t,r){return 262144&Zd(e)?0:(e=Cn(e),t=Cn(t),Fw(r=Cn(r))?1:!n||ey(e)||ey(t)||ey(r)?0:H?vn(e=>Ub(t,r,n,e)):qb(t,r,n)?0:1)}function Tn(e){return 0===e.statements.length&&(!n||qb(e,e,n))}function Cn(e){for(;218===e.kind&&ey(e);)e=e.expression;return e}function wn(e,t){if(Wl(e)||$l(e))return Ln(e);if(UN(e)&&e.textSourceNode)return wn(e.textSourceNode,t);const r=n,i=!!r&&!!e.parent&&!ey(e);if(dl(e)){if(!i||vd(e)!==_c(r))return gc(e)}else if(YE(e)){if(!i||vd(e)!==_c(r))return oC(e)}else if(un.assertNode(e,Il),!i)return e.text;return Vd(r,e,t)}function Nn(t,r=n,i,o){if(11===t.kind&&t.textSourceNode){const e=t.textSourceNode;if(aD(e)||sD(e)||zN(e)||YE(e)){const n=zN(e)?e.text:wn(e);return o?`"${Dy(n)}"`:i||16777216&Zd(t)?`"${xy(n)}"`:`"${Sy(n)}"`}return Nn(e,vd(e),i,o)}return rp(t,r,(i?1:0)|(o?2:0)|(e.terminateUnterminatedLiterals?4:0)|(e.target&&e.target>=8?8:0))}function Dn(e){l.push(_),_=0,g.push(h),e&&1048576&Zd(e)||(u.push(p),p=0,s.push(c),c=void 0,f.push(m))}function Fn(e){_=l.pop(),h=g.pop(),e&&1048576&Zd(e)||(p=u.pop(),c=s.pop(),m=f.pop())}function En(e){m&&m!==ye(f)||(m=new Set),m.add(e)}function Pn(e){h&&h!==ye(g)||(h=new Set),h.add(e)}function An(e){if(e)switch(e.kind){case 242:case 297:case 298:d(e.statements,An);break;case 257:case 255:case 247:case 248:An(e.statement);break;case 246:An(e.thenStatement),An(e.elseStatement);break;case 249:case 251:case 250:An(e.initializer),An(e.statement);break;case 256:An(e.caseBlock);break;case 270:d(e.clauses,An);break;case 259:An(e.tryBlock),An(e.catchClause),An(e.finallyBlock);break;case 300:An(e.variableDeclaration),An(e.block);break;case 244:An(e.declarationList);break;case 262:d(e.declarations,An);break;case 261:case 170:case 209:case 264:case 275:case 281:On(e.name);break;case 263:On(e.name),1048576&Zd(e)&&(d(e.parameters,An),An(e.body));break;case 207:case 208:case 276:d(e.elements,An);break;case 273:An(e.importClause);break;case 274:On(e.name),An(e.namedBindings);break;case 277:On(e.propertyName||e.name)}}function In(e){if(e)switch(e.kind){case 304:case 305:case 173:case 172:case 175:case 174:case 178:case 179:On(e.name)}}function On(e){e&&(Wl(e)||$l(e)?Ln(e):k_(e)&&An(e))}function Ln(e){const t=e.emitNode.autoGenerate;if(4==(7&t.flags))return jn(uI(e),sD(e),t.flags,t.prefix,t.suffix);{const n=t.id;return o[n]||(o[n]=function(e){const t=e.emitNode.autoGenerate,n=dI(t.prefix,Ln),r=dI(t.suffix);switch(7&t.flags){case 1:return Jn(0,!!(8&t.flags),sD(e),n,r);case 2:return un.assertNode(e,aD),Jn(268435456,!!(8&t.flags),!1,n,r);case 3:return zn(gc(e),32&t.flags?Rn:Mn,!!(16&t.flags),!!(8&t.flags),sD(e),n,r)}return un.fail(`Unsupported GeneratedIdentifierKind: ${un.formatEnum(7&t.flags,br,!0)}.`)}(e))}}function jn(e,t,n,o,a){const s=ZB(e),c=t?i:r;return c[s]||(c[s]=Vn(e,t,n??0,dI(o,Ln),dI(a)))}function Mn(e,t){return Rn(e)&&!function(e,t){let n,r;if(t?(n=h,r=g):(n=m,r=f),null==n?void 0:n.has(e))return!0;for(let t=r.length-1;t>=0;t--)if(n!==r[t]&&(n=r[t],null==n?void 0:n.has(e)))return!0;return!1}(e,t)&&!a.has(e)}function Rn(e,t){return!n||wd(n,e,P)}function Bn(e,t){switch(e){case"":p=t;break;case"#":_=t;break;default:c??(c=new Map),c.set(e,t)}}function Jn(e,t,n,r,i){r.length>0&&35===r.charCodeAt(0)&&(r=r.slice(1));const o=pI(n,r,"",i);let a=function(e){switch(e){case"":return p;case"#":return _;default:return(null==c?void 0:c.get(e))??0}}(o);if(e&&!(a&e)){const s=pI(n,r,268435456===e?"_i":"_n",i);if(Mn(s,n))return a|=e,n?Pn(s):t&&En(s),Bn(o,a),s}for(;;){const e=268435455&a;if(a++,8!==e&&13!==e){const s=pI(n,r,e<26?"_"+String.fromCharCode(97+e):"_"+(e-26),i);if(Mn(s,n))return n?Pn(s):t&&En(s),Bn(o,a),s}}}function zn(e,t=Mn,n,r,i,o,s){if(e.length>0&&35===e.charCodeAt(0)&&(e=e.slice(1)),o.length>0&&35===o.charCodeAt(0)&&(o=o.slice(1)),n){const n=pI(i,o,e,s);if(t(n,i))return i?Pn(n):r?En(n):a.add(n),n}95!==e.charCodeAt(e.length-1)&&(e+="_");let c=1;for(;;){const n=pI(i,o,e+c,s);if(t(n,i))return i?Pn(n):r?En(n):a.add(n),n;c++}}function qn(e){return zn(e,Rn,!0,!1,!1,"","")}function Un(){return zn("default",Mn,!1,!1,!1,"","")}function Vn(e,t,n,r,i){switch(e.kind){case 80:case 81:return zn(wn(e),Mn,!!(16&n),!!(8&n),t,r,i);case 268:case 267:return un.assert(!r&&!i&&!t),function(e){const t=wn(e.name);return function(e,t){for(let n=t;n&&ch(n,t);n=n.nextContainer)if(su(n)&&n.locals){const t=n.locals.get(fc(e));if(t&&3257279&t.flags)return!1}return!0}(t,tt(e,su))?t:zn(t,Mn,!1,!1,!1,"","")}(e);case 273:case 279:return un.assert(!r&&!i&&!t),function(e){const t=kg(e);return zn(UN(t)?op(t.text):"module",Mn,!1,!1,!1,"","")}(e);case 263:case 264:{un.assert(!r&&!i&&!t);const o=e.name;return o&&!Wl(o)?Vn(o,!1,n,r,i):Un()}case 278:return un.assert(!r&&!i&&!t),Un();case 232:return un.assert(!r&&!i&&!t),zn("class",Mn,!1,!1,!1,"","");case 175:case 178:case 179:return function(e,t,n,r){return aD(e.name)?jn(e.name,t):Jn(0,!1,t,n,r)}(e,t,r,i);case 168:return Jn(0,!0,t,r,i);default:return Jn(0,!1,t,r,i)}}function $n(e,t){const n=je(2,e,t),r=Y,i=Z,o=ee;Hn(t),n(e,t),Kn(t,r,i,o)}function Hn(e){const t=Zd(e),n=Pw(e);!function(e,t,n,r){re(),te=!1;const i=n<0||!!(1024&t)||12===e.kind,o=r<0||!!(2048&t)||12===e.kind;(n>0||r>0)&&n!==r&&(i||er(n,354!==e.kind),(!i||n>=0&&1024&t)&&(Y=n),(!o||r>=0&&2048&t)&&(Z=r,262===e.kind&&(ee=r))),d(Iw(e),Xn),ie()}(e,t,n.pos,n.end),4096&t&&(ne=!0)}function Kn(e,t,n,r){const i=Zd(e),o=Pw(e);4096&i&&(ne=!1),Gn(e,i,o.pos,o.end,t,n,r);const a=Qw(e);a&&Gn(e,i,a.pos,a.end,t,n,r)}function Gn(e,t,n,r,i,o,a){re();const s=r<0||!!(2048&t)||12===e.kind;d(jw(e),Qn),(n>0||r>0)&&n!==r&&(Y=i,Z=o,ee=a,s||354===e.kind||function(e){ur(e,ar)}(r)),ie()}function Xn(e){(e.hasLeadingNewline||2===e.kind)&&b.writeLine(),Yn(e),e.hasTrailingNewLine||2===e.kind?b.writeLine():b.writeSpace(" ")}function Qn(e){b.isAtStartOfLine()||b.writeSpace(" "),Yn(e),e.hasTrailingNewLine&&b.writeLine()}function Yn(e){const t=function(e){return 3===e.kind?`/*${e.text}*/`:`//${e.text}`}(e);xv(t,3===e.kind?Oa(t):void 0,b,0,t.length,U)}function Zn(e,t,r){re();const{pos:i,end:o}=t,a=Zd(e),s=ne||o<0||!!(2048&a);i<0||!!(1024&a)||function(e){const t=n&&bv(n.text,Ce(),b,dr,e,U,ne);t&&(D?D.push(t):D=[t])}(t),ie(),4096&a&&!ne?(ne=!0,r(e),ne=!1):r(e),re(),s||(er(t.end,!0),te&&!b.isAtStartOfLine()&&b.writeLine()),ie()}function er(e,t){te=!1,t?0===e&&(null==n?void 0:n.isDeclarationFile)?_r(e,nr):_r(e,ir):0===e&&_r(e,tr)}function tr(e,t,n,r,i){pr(e,t)&&ir(e,t,n,r,i)}function nr(e,t,n,r,i){pr(e,t)||ir(e,t,n,r,i)}function rr(t,n){return!e.onlyPrintJsDocStyle||DI(t,n)||Bd(t,n)}function ir(e,t,r,i,o){n&&rr(n.text,e)&&(te||(vv(Ce(),b,o,e),te=!0),yr(e),xv(n.text,Ce(),b,e,t,U),yr(t),i?b.writeLine():3===r&&b.writeSpace(" "))}function or(e){ne||-1===e||er(e,!0)}function ar(e,t,r,i){n&&rr(n.text,e)&&(b.isAtStartOfLine()||b.writeSpace(" "),yr(e),xv(n.text,Ce(),b,e,t,U),yr(t),i&&b.writeLine())}function sr(e,t,n){ne||(re(),ur(e,t?ar:n?cr:lr),ie())}function cr(e,t,r){n&&(yr(e),xv(n.text,Ce(),b,e,t,U),yr(t),2===r&&b.writeLine())}function lr(e,t,r,i){n&&(yr(e),xv(n.text,Ce(),b,e,t,U),yr(t),i?b.writeLine():b.writeSpace(" "))}function _r(e,t){!n||-1!==Y&&e===Y||(function(e){return void 0!==D&&ve(D).nodePos===e}(e)?function(e){if(!n)return;const t=ve(D).detachedCommentEndPos;D.length-1?D.pop():D=void 0,os(n.text,t,e,t)}(t):os(n.text,e,t,e))}function ur(e,t){n&&(-1===Z||e!==Z&&e!==ee)&&as(n.text,e,t)}function dr(e,t,r,i,o,a){n&&rr(n.text,i)&&(yr(i),xv(e,t,r,i,o,a),yr(o))}function pr(e,t){return!!n&&Rd(n.text,e,t)}function fr(e,t){const n=je(3,e,t);mr(t),n(e,t),gr(t)}function mr(e){const t=Zd(e),n=Cw(e),r=n.source||C;354!==e.kind&&!(32&t)&&n.pos>=0&&vr(n.source||C,hr(r,n.pos)),128&t&&(G=!0)}function gr(e){const t=Zd(e),n=Cw(e);128&t&&(G=!1),354!==e.kind&&!(64&t)&&n.end>=0&&vr(n.source||C,n.end)}function hr(e,t){return e.skipTrivia?e.skipTrivia(t):Qa(e.text,t)}function yr(e){if(G||XS(e)||kr(C))return;const{line:t,character:n}=za(C,e);T.addMapping(b.getLine(),b.getColumn(),X,t,n,void 0)}function vr(e,t){if(e!==C){const n=C,r=X;xr(e),yr(t),function(e,t){C=e,X=t}(n,r)}else yr(t)}function xr(t){G||(C=t,t!==w?kr(t)||(X=T.addSource(t.fileName),e.inlineSources&&T.setSourceContent(X,t.text),w=t,Q=X):X=Q)}function kr(e){return ko(e.fileName,".json")}}function SU(e,t,n,r){t(e)}function TU(e,t,n,r){t(e,n.select(r))}function CU(e,t,n,r){t(e,n)}function wU(e,t,n){if(!e.getDirectories||!e.readDirectory)return;const r=new Map,i=Wt(n);return{useCaseSensitiveFileNames:n,fileExists:function(t){const n=s(o(t));return n&&u(n.sortedAndCanonicalizedFiles,i(c(t)))||e.fileExists(t)},readFile:(t,n)=>e.readFile(t,n),directoryExists:e.directoryExists&&function(t){const n=o(t);return r.has(Wo(n))||e.directoryExists(t)},getDirectories:function(t){const n=_(t,o(t));return n?n.directories.slice():e.getDirectories(t)},readDirectory:function(r,i,a,s,u){const p=o(r),f=_(r,p);let m;return void 0!==f?hS(r,i,a,s,n,t,u,function(e){const t=o(e);if(t===p)return f||g(e,t);const n=_(e,t);return void 0!==n?n||g(e,t):rT},d):e.readDirectory(r,i,a,s,u);function g(t,n){if(m&&n===p)return m;const r={files:E(e.readDirectory(t,void 0,void 0,["*.*"]),c)||l,directories:e.getDirectories(t)||l};return n===p&&(m=r),r}},createDirectory:e.createDirectory&&function(t){const n=s(o(t));if(n){const e=c(t),r=i(e);Z(n.sortedAndCanonicalizedDirectories,r,Ct)&&n.directories.push(e)}e.createDirectory(t)},writeFile:e.writeFile&&function(t,n,r){const i=s(o(t));return i&&f(i,c(t),!0),e.writeFile(t,n,r)},addOrDeleteFileOrDirectory:function(t,n){if(void 0!==a(n))return void m();const r=s(n);if(!r)return void p(n);if(!e.directoryExists)return void m();const o=c(t),l={fileExists:e.fileExists(t),directoryExists:e.directoryExists(t)};return l.directoryExists||u(r.sortedAndCanonicalizedDirectories,i(o))?m():f(r,o,l.fileExists),l},addOrDeleteFile:function(e,t,n){if(1===n)return;const r=s(t);r?f(r,c(e),0===n):p(t)},clearCache:m,realpath:e.realpath&&d};function o(e){return Uo(e,t,i)}function a(e){return r.get(Wo(e))}function s(e){const t=a(Do(e));return t?(t.sortedAndCanonicalizedFiles||(t.sortedAndCanonicalizedFiles=t.files.map(i).sort(),t.sortedAndCanonicalizedDirectories=t.directories.map(i).sort()),t):t}function c(e){return Fo(Jo(e))}function _(t,n){const i=a(n=Wo(n));if(i)return i;try{return function(t,n){var i;if(!e.realpath||Wo(o(e.realpath(t)))===n){const i={files:E(e.readDirectory(t,void 0,void 0,["*.*"]),c)||[],directories:e.getDirectories(t)||[]};return r.set(Wo(n),i),i}if(null==(i=e.directoryExists)?void 0:i.call(e,t))return r.set(n,!1),!1}(t,n)}catch{return void un.assert(!r.has(Wo(n)))}}function u(e,t){return Te(e,t,st,Ct)>=0}function d(t){return e.realpath?e.realpath(t):t}function p(e){sa(Do(e),e=>!!r.delete(Wo(e))||void 0)}function f(e,t,n){const r=e.sortedAndCanonicalizedFiles,o=i(t);if(n)Z(r,o,Ct)&&e.files.push(t);else{const t=Te(r,o,st,Ct);if(t>=0){r.splice(t,1);const n=e.files.findIndex(e=>i(e)===o);e.files.splice(n,1)}}}function m(){r.clear()}}var NU=(e=>(e[e.Update=0]="Update",e[e.RootNamesAndUpdate=1]="RootNamesAndUpdate",e[e.Full=2]="Full",e))(NU||{});function DU(e,t,n,r,i){var o;const a=Me((null==(o=null==t?void 0:t.configFile)?void 0:o.extendedSourceFiles)||l,i);n.forEach((t,n)=>{a.has(n)||(t.projects.delete(e),t.close())}),a.forEach((t,i)=>{const o=n.get(i);o?o.projects.add(e):n.set(i,{projects:new Set([e]),watcher:r(t,i),close:()=>{const e=n.get(i);e&&0===e.projects.size&&(e.watcher.close(),n.delete(i))}})})}function FU(e,t){t.forEach(t=>{t.projects.delete(e)&&t.close()})}function EU(e,t,n){e.delete(t)&&e.forEach(({extendedResult:r},i)=>{var o;(null==(o=r.extendedSourceFiles)?void 0:o.some(e=>n(e)===t))&&EU(e,i,n)})}function PU(e,t,n){px(t,e.getMissingFilePaths(),{createNewValue:n,onDeleteValue:nx})}function AU(e,t,n){function r(e,t){return{watcher:n(e,t),flags:t}}t?px(e,new Map(Object.entries(t)),{createNewValue:r,onDeleteValue:RU,onExistingValue:function(t,n,i){t.flags!==n&&(t.watcher.close(),e.set(i,r(i,n)))}}):ux(e,RU)}function IU({watchedDirPath:e,fileOrDirectory:t,fileOrDirectoryPath:n,configFileName:r,options:i,program:o,extraFileExtensions:a,currentDirectory:s,useCaseSensitiveFileNames:c,writeLog:l,toPath:_,getScriptKind:u}){const d=qW(n);if(!d)return l(`Project: ${r} Detected ignored path: ${t}`),!0;if((n=d)===e)return!1;if(xo(n)&&!BS(t,i,a)&&!function(){if(!u)return!1;switch(u(t)){case 3:case 4:case 7:case 5:return!0;case 1:case 2:return Ak(i);case 6:return Nk(i);case 0:return!1}}())return l(`Project: ${r} Detected file add/remove of non supported extension: ${t}`),!0;if(Mj(t,i.configFile.configFileSpecs,Bo(Do(r),s),c,s))return l(`Project: ${r} Detected excluded file: ${t}`),!0;if(!o)return!1;if(i.outFile||i.outDir)return!1;if(uO(n)){if(i.declarationDir)return!1}else if(!So(n,wS))return!1;const p=US(n),f=Qe(o)?void 0:h$(o)?o.getProgramOrUndefined():o,m=f||Qe(o)?void 0:o;return!(!g(p+".ts")&&!g(p+".tsx")||(l(`Project: ${r} Detected output file: ${t}`),0));function g(e){return f?!!f.getSourceFileByPath(e):m?m.state.fileInfos.has(e):!!b(o,t=>_(t)===e)}}function OU(e,t){return!!e&&e.isEmittedFile(t)}var LU=(e=>(e[e.None=0]="None",e[e.TriggerOnly=1]="TriggerOnly",e[e.Verbose=2]="Verbose",e))(LU||{});function jU(e,t,n,r){eo(2===t?n:rt);const i={watchFile:(t,n,r,i)=>e.watchFile(t,n,r,i),watchDirectory:(t,n,r,i)=>e.watchDirectory(t,n,!!(1&r),i)},o=0!==t?{watchFile:l("watchFile"),watchDirectory:l("watchDirectory")}:void 0,a=2===t?{watchFile:function(e,t,i,a,s,c){n(`FileWatcher:: Added:: ${_(e,i,a,s,c,r)}`);const l=o.watchFile(e,t,i,a,s,c);return{close:()=>{n(`FileWatcher:: Close:: ${_(e,i,a,s,c,r)}`),l.close()}}},watchDirectory:function(e,t,i,a,s,c){const l=`DirectoryWatcher:: Added:: ${_(e,i,a,s,c,r)}`;n(l);const u=Un(),d=o.watchDirectory(e,t,i,a,s,c),p=Un()-u;return n(`Elapsed:: ${p}ms ${l}`),{close:()=>{const t=`DirectoryWatcher:: Close:: ${_(e,i,a,s,c,r)}`;n(t);const o=Un();d.close();const l=Un()-o;n(`Elapsed:: ${l}ms ${t}`)}}}}:o||i,s=2===t?function(e,t,i,o,a){return n(`ExcludeWatcher:: Added:: ${_(e,t,i,o,a,r)}`),{close:()=>n(`ExcludeWatcher:: Close:: ${_(e,t,i,o,a,r)}`)}}:N$;return{watchFile:c("watchFile"),watchDirectory:c("watchDirectory")};function c(t){return(n,r,i,o,c,l)=>{var _;return Bj(n,"watchFile"===t?null==o?void 0:o.excludeFiles:null==o?void 0:o.excludeDirectories,"boolean"==typeof e.useCaseSensitiveFileNames?e.useCaseSensitiveFileNames:e.useCaseSensitiveFileNames(),(null==(_=e.getCurrentDirectory)?void 0:_.call(e))||"")?s(n,i,o,c,l):a[t].call(void 0,n,r,i,o,c,l)}}function l(e){return(t,o,a,s,c,l)=>i[e].call(void 0,t,(...i)=>{const u=`${"watchFile"===e?"FileWatcher":"DirectoryWatcher"}:: Triggered with ${i[0]} ${void 0!==i[1]?i[1]:""}:: ${_(t,a,s,c,l,r)}`;n(u);const d=Un();o.call(void 0,...i);const p=Un()-d;n(`Elapsed:: ${p}ms ${u}`)},a,s,c,l)}function _(e,t,n,r,i,o){return`WatchInfo: ${e} ${t} ${JSON.stringify(n)} ${o?o(r,i):void 0===i?r:`${r} ${i}`}`}}function MU(e){const t=null==e?void 0:e.fallbackPolling;return{watchFile:void 0!==t?t:1}}function RU(e){e.watcher.close()}function BU(e,t,n="tsconfig.json"){return sa(e,e=>{const r=jo(e,n);return t(r)?r:void 0})}function JU(e,t){const n=Do(t);return Jo(go(e)?e:jo(n,e))}function zU(e,t,n){let r;return d(e,e=>{const i=Ro(e,t);if(i.pop(),!r)return void(r=i);const o=Math.min(r.length,i.length);for(let e=0;e{let o;try{tr("beforeIORead"),o=e(n),tr("afterIORead"),nr("I/O Read","beforeIORead","afterIORead")}catch(e){i&&i(e.message),o=""}return void 0!==o?eO(n,o,r,t):void 0}}function VU(e,t,n){return(r,i,o,a)=>{try{tr("beforeIOWrite"),tv(r,i,o,e,t,n),tr("afterIOWrite"),nr("I/O Write","beforeIOWrite","afterIOWrite")}catch(e){a&&a(e.message)}}}function WU(e,t,n=so){const r=new Map,i=Wt(n.useCaseSensitiveFileNames);function o(){return Do(Jo(n.getExecutingFilePath()))}const a=Pb(e),s=n.realpath&&(e=>n.realpath(e)),c={getSourceFile:UU(e=>c.readFile(e),t),getDefaultLibLocation:o,getDefaultLibFileName:e=>jo(o(),Ds(e)),writeFile:VU((e,t,r)=>n.writeFile(e,t,r),e=>(c.createDirectory||n.createDirectory)(e),e=>{return t=e,!!r.has(t)||!!(c.directoryExists||n.directoryExists)(t)&&(r.set(t,!0),!0);var t}),getCurrentDirectory:dt(()=>n.getCurrentDirectory()),useCaseSensitiveFileNames:()=>n.useCaseSensitiveFileNames,getCanonicalFileName:i,getNewLine:()=>a,fileExists:e=>n.fileExists(e),readFile:e=>n.readFile(e),trace:e=>n.write(e+a),directoryExists:e=>n.directoryExists(e),getEnvironmentVariable:e=>n.getEnvironmentVariable?n.getEnvironmentVariable(e):"",getDirectories:e=>n.getDirectories(e),realpath:s,readDirectory:(e,t,r,i,o)=>n.readDirectory(e,t,r,i,o),createDirectory:e=>n.createDirectory(e),createHash:We(n,n.createHash)};return c}function $U(e,t,n){const r=e.readFile,i=e.fileExists,o=e.directoryExists,a=e.createDirectory,s=e.writeFile,c=new Map,l=new Map,_=new Map,u=new Map,d=(t,n)=>{const i=r.call(e,n);return c.set(t,void 0!==i&&i),i};e.readFile=n=>{const i=t(n),o=c.get(i);return void 0!==o?!1!==o?o:void 0:ko(n,".json")||Hq(n)?d(i,n):r.call(e,n)};const p=n?(e,r,i,o)=>{const a=t(e),s="object"==typeof r?r.impliedNodeFormat:void 0,c=u.get(s),l=null==c?void 0:c.get(a);if(l)return l;const _=n(e,r,i,o);return _&&(uO(e)||ko(e,".json"))&&u.set(s,(c||new Map).set(a,_)),_}:void 0;return e.fileExists=n=>{const r=t(n),o=l.get(r);if(void 0!==o)return o;const a=i.call(e,n);return l.set(r,!!a),a},s&&(e.writeFile=(n,r,...i)=>{const o=t(n);l.delete(o);const a=c.get(o);void 0!==a&&a!==r?(c.delete(o),u.forEach(e=>e.delete(o))):p&&u.forEach(e=>{const t=e.get(o);t&&t.text!==r&&e.delete(o)}),s.call(e,n,r,...i)}),o&&(e.directoryExists=n=>{const r=t(n),i=_.get(r);if(void 0!==i)return i;const a=o.call(e,n);return _.set(r,!!a),a},a&&(e.createDirectory=n=>{const r=t(n);_.delete(r),a.call(e,n)})),{originalReadFile:r,originalFileExists:i,originalDirectoryExists:o,originalCreateDirectory:a,originalWriteFile:s,getSourceFileWithCache:p,readFileWithCache:e=>{const n=t(e),r=c.get(n);return void 0!==r?!1!==r?r:void 0:d(n,e)}}}function HU(e,t,n){let r;return r=se(r,e.getConfigFileParsingDiagnostics()),r=se(r,e.getOptionsDiagnostics(n)),r=se(r,e.getSyntacticDiagnostics(t,n)),r=se(r,e.getGlobalDiagnostics(n)),r=se(r,e.getSemanticDiagnostics(t,n)),Dk(e.getCompilerOptions())&&(r=se(r,e.getDeclarationDiagnostics(t,n))),ws(r||l)}function KU(e,t){let n="";for(const r of e)n+=GU(r,t);return n}function GU(e,t){const n=`${ci(e)} TS${e.code}: ${cV(e.messageText,t.getNewLine())}${t.getNewLine()}`;if(e.file){const{line:r,character:i}=za(e.file,e.start);return`${ia(e.file.fileName,t.getCurrentDirectory(),e=>t.getCanonicalFileName(e))}(${r+1},${i+1}): `+n}return n}var XU=(e=>(e.Grey="",e.Red="",e.Yellow="",e.Blue="",e.Cyan="",e))(XU||{}),QU="",YU=" ",ZU="",eV="...",tV=" ",nV=" ";function rV(e){switch(e){case 1:return"";case 0:return"";case 2:return un.fail("Should never get an Info diagnostic on the command line.");case 3:return""}}function iV(e,t){return t+e+ZU}function oV(e,t,n,r,i,o){const{line:a,character:s}=za(e,t),{line:c,character:l}=za(e,t+n),_=za(e,e.text.length).line,u=c-a>=4;let d=(c+1+"").length;u&&(d=Math.max(eV.length,d));let p="";for(let t=a;t<=c;t++){p+=o.getNewLine(),u&&a+1n.getCanonicalFileName(e)):e.fileName,""),a+=":",a+=r(`${i+1}`,""),a+=":",a+=r(`${o+1}`,""),a}function sV(e,t){let n="";for(const r of e){if(r.file){const{file:e,start:i}=r;n+=aV(e,i,t),n+=" - "}if(n+=iV(ci(r),rV(r.category)),n+=iV(` TS${r.code}: `,""),n+=cV(r.messageText,t.getNewLine()),r.file&&r.code!==_a.File_appears_to_be_binary.code&&(n+=t.getNewLine(),n+=oV(r.file,r.start,r.length,"",rV(r.category),t)),r.relatedInformation){n+=t.getNewLine();for(const{file:e,start:i,length:o,messageText:a}of r.relatedInformation)e&&(n+=t.getNewLine(),n+=tV+aV(e,i,t),n+=oV(e,i,o,nV,"",t)),n+=t.getNewLine(),n+=nV+cV(a,t.getNewLine())}n+=t.getNewLine()}return n}function cV(e,t,n=0){if(Ze(e))return e;if(void 0===e)return"";let r="";if(n){r+=t;for(let e=0;edV(t,e,n)};function vV(e,t,n,r,i){return{nameAndMode:yV,resolve:(o,a)=>MM(o,e,n,r,i,t,a)}}function bV(e){return Ze(e)?e:e.fileName}var xV={getName:bV,getMode:(e,t,n)=>lV(e,t&&BV(t,n))};function kV(e,t,n,r,i){return{nameAndMode:xV,resolve:(o,a)=>gM(o,e,n,r,t,i,a)}}function SV(e,t,n,r,i,o,a,s){if(0===e.length)return l;const c=[],_=new Map,u=s(t,n,r,o,a);for(const t of e){const e=u.nameAndMode.getName(t),o=u.nameAndMode.getMode(t,i,(null==n?void 0:n.commandLine.options)||r),a=NM(e,o);let s=_.get(a);s||_.set(a,s=u.resolve(e,o)),c.push(s)}return c}var TV="__inferred type names__.ts";function CV(e,t,n){return jo(e.configFilePath?Do(e.configFilePath):t,`__lib_node_modules_lookup_${n}__.ts`)}function wV(e){const t=e.split(".");let n=t[1],r=2;for(;t[r]&&"d"!==t[r];)n+=(2===r?"/":"-")+t[r],r++;return"@typescript/lib-"+n}function NV(e){switch(null==e?void 0:e.kind){case 3:case 4:case 5:case 7:return!0;default:return!1}}function DV(e){return void 0!==e.pos}function FV(e,t){var n,r,i,o;const a=un.checkDefined(e.getSourceFileByPath(t.file)),{kind:s,index:c}=t;let l,_,u;switch(s){case 3:const t=HV(a,c);if(u=null==(r=null==(n=e.getResolvedModuleFromModuleSpecifier(t,a))?void 0:n.resolvedModule)?void 0:r.packageId,-1===t.pos)return{file:a,packageId:u,text:t.text};l=Qa(a.text,t.pos),_=t.end;break;case 4:({pos:l,end:_}=a.referencedFiles[c]);break;case 5:({pos:l,end:_}=a.typeReferenceDirectives[c]),u=null==(o=null==(i=e.getResolvedTypeReferenceDirectiveFromTypeReferenceDirective(a.typeReferenceDirectives[c],a))?void 0:i.resolvedTypeReferenceDirective)?void 0:o.packageId;break;case 7:({pos:l,end:_}=a.libReferenceDirectives[c]);break;default:return un.assertNever(s)}return{file:a,pos:l,end:_,packageId:u}}function EV(e,t,n,r,i,o,a,s,c,l){if(!e||(null==s?void 0:s()))return!1;if(!te(e.getRootFileNames(),t))return!1;let _;if(!te(e.getProjectReferences(),l,function(t,n,r){return cd(t,n)&&f(e.getResolvedProjectReferences()[r],t)}))return!1;if(e.getSourceFiles().some(function(e){return!function(e){return e.version===r(e.resolvedPath,e.fileName)}(e)||o(e.path)}))return!1;const u=e.getMissingFilePaths();if(u&&rd(u,i))return!1;const p=e.getCompilerOptions();return!(!_x(p,n)||e.resolvedLibReferences&&rd(e.resolvedLibReferences,(e,t)=>a(t))||p.configFile&&n.configFile&&p.configFile.text!==n.configFile.text);function f(e,t){if(e){if(T(_,e))return!0;const n=VV(t),r=c(n);return!!r&&e.commandLine.options.configFile===r.options.configFile&&!!te(e.commandLine.fileNames,r.fileNames)&&((_||(_=[])).push(e),!d(e.references,(t,n)=>!f(t,e.commandLine.projectReferences[n])))}const n=VV(t);return!c(n)}}function PV(e){return e.options.configFile?[...e.options.configFile.parseDiagnostics,...e.errors]:e.errors}function AV(e,t,n,r){const i=IV(e,t,n,r);return"object"==typeof i?i.impliedNodeFormat:i}function IV(e,t,n,r){const i=bk(r),o=3<=i&&i<=99||GM(e);return So(e,[".d.mts",".mts",".mjs"])?99:So(e,[".d.cts",".cts",".cjs"])?1:o&&So(e,[".d.ts",".ts",".tsx",".js",".jsx"])?function(){const i=cR(t,n,r),o=[];i.failedLookupLocations=o,i.affectingLocations=o;const a=lR(Do(e),i);return{impliedNodeFormat:"module"===(null==a?void 0:a.contents.packageJsonContent.type)?99:1,packageJsonLocations:o,packageJsonScope:a}}():void 0}var OV=new Set([_a.Cannot_redeclare_block_scoped_variable_0.code,_a.A_module_cannot_have_multiple_default_exports.code,_a.Another_export_default_is_here.code,_a.The_first_export_default_is_here.code,_a.Identifier_expected_0_is_a_reserved_word_at_the_top_level_of_a_module.code,_a.Identifier_expected_0_is_a_reserved_word_in_strict_mode_Modules_are_automatically_in_strict_mode.code,_a.Identifier_expected_0_is_a_reserved_word_that_cannot_be_used_here.code,_a.constructor_is_a_reserved_word.code,_a.delete_cannot_be_called_on_an_identifier_in_strict_mode.code,_a.Code_contained_in_a_class_is_evaluated_in_JavaScript_s_strict_mode_which_does_not_allow_this_use_of_0_For_more_information_see_https_Colon_Slash_Slashdeveloper_mozilla_org_Slashen_US_Slashdocs_SlashWeb_SlashJavaScript_SlashReference_SlashStrict_mode.code,_a.Invalid_use_of_0_Modules_are_automatically_in_strict_mode.code,_a.Invalid_use_of_0_in_strict_mode.code,_a.A_label_is_not_allowed_here.code,_a.with_statements_are_not_allowed_in_strict_mode.code,_a.A_break_statement_can_only_be_used_within_an_enclosing_iteration_or_switch_statement.code,_a.A_break_statement_can_only_jump_to_a_label_of_an_enclosing_statement.code,_a.A_class_declaration_without_the_default_modifier_must_have_a_name.code,_a.A_class_member_cannot_have_the_0_keyword.code,_a.A_comma_expression_is_not_allowed_in_a_computed_property_name.code,_a.A_continue_statement_can_only_be_used_within_an_enclosing_iteration_statement.code,_a.A_continue_statement_can_only_jump_to_a_label_of_an_enclosing_iteration_statement.code,_a.A_continue_statement_can_only_jump_to_a_label_of_an_enclosing_iteration_statement.code,_a.A_default_clause_cannot_appear_more_than_once_in_a_switch_statement.code,_a.A_default_export_must_be_at_the_top_level_of_a_file_or_module_declaration.code,_a.A_definite_assignment_assertion_is_not_permitted_in_this_context.code,_a.A_destructuring_declaration_must_have_an_initializer.code,_a.A_get_accessor_cannot_have_parameters.code,_a.A_rest_element_cannot_contain_a_binding_pattern.code,_a.A_rest_element_cannot_have_a_property_name.code,_a.A_rest_element_cannot_have_an_initializer.code,_a.A_rest_element_must_be_last_in_a_destructuring_pattern.code,_a.A_rest_parameter_cannot_have_an_initializer.code,_a.A_rest_parameter_must_be_last_in_a_parameter_list.code,_a.A_rest_parameter_or_binding_pattern_may_not_have_a_trailing_comma.code,_a.A_return_statement_cannot_be_used_inside_a_class_static_block.code,_a.A_set_accessor_cannot_have_rest_parameter.code,_a.A_set_accessor_must_have_exactly_one_parameter.code,_a.An_export_declaration_can_only_be_used_at_the_top_level_of_a_module.code,_a.An_export_declaration_cannot_have_modifiers.code,_a.An_import_declaration_can_only_be_used_at_the_top_level_of_a_module.code,_a.An_import_declaration_cannot_have_modifiers.code,_a.An_object_member_cannot_be_declared_optional.code,_a.Argument_of_dynamic_import_cannot_be_spread_element.code,_a.Cannot_assign_to_private_method_0_Private_methods_are_not_writable.code,_a.Cannot_redeclare_identifier_0_in_catch_clause.code,_a.Catch_clause_variable_cannot_have_an_initializer.code,_a.Class_decorators_can_t_be_used_with_static_private_identifier_Consider_removing_the_experimental_decorator.code,_a.Classes_can_only_extend_a_single_class.code,_a.Classes_may_not_have_a_field_named_constructor.code,_a.Did_you_mean_to_use_a_Colon_An_can_only_follow_a_property_name_when_the_containing_object_literal_is_part_of_a_destructuring_pattern.code,_a.Duplicate_label_0.code,_a.Dynamic_imports_can_only_accept_a_module_specifier_and_an_optional_set_of_attributes_as_arguments.code,_a.for_await_loops_cannot_be_used_inside_a_class_static_block.code,_a.JSX_attributes_must_only_be_assigned_a_non_empty_expression.code,_a.JSX_elements_cannot_have_multiple_attributes_with_the_same_name.code,_a.JSX_expressions_may_not_use_the_comma_operator_Did_you_mean_to_write_an_array.code,_a.JSX_property_access_expressions_cannot_include_JSX_namespace_names.code,_a.Jump_target_cannot_cross_function_boundary.code,_a.Line_terminator_not_permitted_before_arrow.code,_a.Modifiers_cannot_appear_here.code,_a.Only_a_single_variable_declaration_is_allowed_in_a_for_in_statement.code,_a.Only_a_single_variable_declaration_is_allowed_in_a_for_of_statement.code,_a.Private_identifiers_are_not_allowed_outside_class_bodies.code,_a.Private_identifiers_are_only_allowed_in_class_bodies_and_may_only_be_used_as_part_of_a_class_member_declaration_property_access_or_on_the_left_hand_side_of_an_in_expression.code,_a.Property_0_is_not_accessible_outside_class_1_because_it_has_a_private_identifier.code,_a.Tagged_template_expressions_are_not_permitted_in_an_optional_chain.code,_a.The_left_hand_side_of_a_for_of_statement_may_not_be_async.code,_a.The_variable_declaration_of_a_for_in_statement_cannot_have_an_initializer.code,_a.The_variable_declaration_of_a_for_of_statement_cannot_have_an_initializer.code,_a.Trailing_comma_not_allowed.code,_a.Variable_declaration_list_cannot_be_empty.code,_a._0_and_1_operations_cannot_be_mixed_without_parentheses.code,_a._0_expected.code,_a._0_is_not_a_valid_meta_property_for_keyword_1_Did_you_mean_2.code,_a._0_list_cannot_be_empty.code,_a._0_modifier_already_seen.code,_a._0_modifier_cannot_appear_on_a_constructor_declaration.code,_a._0_modifier_cannot_appear_on_a_module_or_namespace_element.code,_a._0_modifier_cannot_appear_on_a_parameter.code,_a._0_modifier_cannot_appear_on_class_elements_of_this_kind.code,_a._0_modifier_cannot_be_used_here.code,_a._0_modifier_must_precede_1_modifier.code,_a._0_declarations_can_only_be_declared_inside_a_block.code,_a._0_declarations_must_be_initialized.code,_a.extends_clause_already_seen.code,_a.let_is_not_allowed_to_be_used_as_a_name_in_let_or_const_declarations.code,_a.Class_constructor_may_not_be_a_generator.code,_a.Class_constructor_may_not_be_an_accessor.code,_a.await_expressions_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules.code,_a.await_using_statements_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules.code,_a.Private_field_0_must_be_declared_in_an_enclosing_class.code,_a.This_condition_will_always_return_0_since_JavaScript_compares_objects_by_reference_not_value.code]);function LV(e,t,n,r,i){var o,s,c,_,u,p,f,g,h,y,v,x,S,C,w,D;let F=Qe(e)?function(e,t,n,r,i){return{rootNames:e,options:t,host:n,oldProgram:r,configFileParsingDiagnostics:i,typeScriptVersion:void 0}}(e,t,n,r,i):e;const{rootNames:E,options:P,configFileParsingDiagnostics:A,projectReferences:L,typeScriptVersion:j,host:M}=F;let{oldProgram:R}=F;F=void 0,e=void 0;for(const e of VO)if(De(P,e.name)&&"string"==typeof P[e.name])throw new Error(`${e.name} is a string value; tsconfig JSON must be parsed with parseJsonSourceFileConfigFileContent or getParsedCommandLineOfConfigFile before passing to createProgram`);const J=dt(()=>An("ignoreDeprecations",_a.Invalid_value_for_ignoreDeprecations));let z,q,U,V,W,H,G,X,Q;const Y=KV(jn);let Z,ee,ne,re,oe,ae,se,ce,le;const ue="number"==typeof P.maxNodeModuleJsDepth?P.maxNodeModuleJsDepth:0;let de=0;const pe=new Map,fe=new Map;null==(o=Hn)||o.push(Hn.Phase.Program,"createProgram",{configFilePath:P.configFilePath,rootDir:P.rootDir},!0),tr("beforeProgram");const me=M||qU(P),ge=UV(me);let he=P.noLib;const ye=dt(()=>me.getDefaultLibFileName(P)),ve=me.getDefaultLibLocation?me.getDefaultLibLocation():Do(ye());let be=!1;const xe=me.getCurrentDirectory(),ke=AS(P),Se=IS(P,ke),Te=new Map;let Ce,we,Ne,Fe;const Ee=me.hasInvalidatedResolutions||it;let Pe;if(me.resolveModuleNameLiterals?(Fe=me.resolveModuleNameLiterals.bind(me),Ne=null==(s=me.getModuleResolutionCache)?void 0:s.call(me)):me.resolveModuleNames?(Fe=(e,t,n,r,i,o)=>me.resolveModuleNames(e.map(hV),t,null==o?void 0:o.map(hV),n,r,i).map(e=>e?void 0!==e.extension?{resolvedModule:e}:{resolvedModule:{...e,extension:ZS(e.resolvedFileName)}}:gV),Ne=null==(c=me.getModuleResolutionCache)?void 0:c.call(me)):(Ne=AM(xe,Sn,P),Fe=(e,t,n,r,i)=>SV(e,t,n,r,i,me,Ne,vV)),me.resolveTypeReferenceDirectiveReferences)Pe=me.resolveTypeReferenceDirectiveReferences.bind(me);else if(me.resolveTypeReferenceDirectives)Pe=(e,t,n,r,i)=>me.resolveTypeReferenceDirectives(e.map(bV),t,n,r,null==i?void 0:i.impliedNodeFormat).map(e=>({resolvedTypeReferenceDirective:e}));else{const e=IM(xe,Sn,void 0,null==Ne?void 0:Ne.getPackageJsonInfoCache(),null==Ne?void 0:Ne.optionsToRedirectsKey);Pe=(t,n,r,i,o)=>SV(t,n,r,i,o,me,e,kV)}const Ae=me.hasInvalidatedLibResolutions||it;let Ie;if(me.resolveLibrary)Ie=me.resolveLibrary.bind(me);else{const e=AM(xe,Sn,P,null==Ne?void 0:Ne.getPackageJsonInfoCache());Ie=(t,n,r)=>LM(t,n,r,me,e)}const Oe=new Map;let Le,je=new Map,Me=$e();const Re=new Map;let Be=new Map;const Je=me.useCaseSensitiveFileNames()?new Map:void 0;let ze,qe,Ue,Ve;const He=!!(null==(_=me.useSourceOfProjectReferenceRedirect)?void 0:_.call(me))&&!P.disableSourceOfProjectReferenceRedirect,{onProgramCreateComplete:Ke,fileExists:Ge,directoryExists:Xe}=function(e){let t;const n=e.compilerHost.fileExists,r=e.compilerHost.directoryExists,i=e.compilerHost.getDirectories,o=e.compilerHost.realpath;if(!e.useSourceOfProjectReferenceRedirect)return{onProgramCreateComplete:rt,fileExists:s};let a;return e.compilerHost.fileExists=s,r&&(a=e.compilerHost.directoryExists=n=>r.call(e.compilerHost,n)?(function(t){var n;if(!e.getResolvedProjectReferences()||IT(t))return;if(!o||!t.includes(KM))return;const r=e.getSymlinkCache(),i=Wo(e.toPath(t));if(null==(n=r.getSymlinkedDirectories())?void 0:n.has(i))return;const a=Jo(o.call(e.compilerHost,t));let s;a!==t&&(s=Wo(e.toPath(a)))!==i?r.setSymlinkedDirectory(t,{real:Wo(a),realPath:s}):r.setSymlinkedDirectory(i,!1)}(n),!0):!!e.getResolvedProjectReferences()&&(t||(t=new Set,e.forEachResolvedProjectReference(n=>{const r=n.commandLine.options.outFile;if(r)t.add(Do(e.toPath(r)));else{const r=n.commandLine.options.declarationDir||n.commandLine.options.outDir;r&&t.add(e.toPath(r))}})),_(n,!1))),i&&(e.compilerHost.getDirectories=t=>!e.getResolvedProjectReferences()||r&&r.call(e.compilerHost,t)?i.call(e.compilerHost,t):[]),o&&(e.compilerHost.realpath=t=>{var n;return(null==(n=e.getSymlinkCache().getSymlinkedFiles())?void 0:n.get(e.toPath(t)))||o.call(e.compilerHost,t)}),{onProgramCreateComplete:function(){e.compilerHost.fileExists=n,e.compilerHost.directoryExists=r,e.compilerHost.getDirectories=i},fileExists:s,directoryExists:a};function s(t){return!!n.call(e.compilerHost,t)||!!e.getResolvedProjectReferences()&&!!uO(t)&&_(t,!0)}function c(t){const r=e.getRedirectFromOutput(e.toPath(t));return void 0!==r?!Ze(r.source)||n.call(e.compilerHost,r.source):void 0}function l(n){const r=e.toPath(n),i=`${r}${lo}`;return id(t,e=>r===e||Gt(e,i)||Gt(r,`${e}/`))}function _(t,n){var r;const i=n?c:l,o=i(t);if(void 0!==o)return o;const a=e.getSymlinkCache(),s=a.getSymlinkedDirectories();if(!s)return!1;const _=e.toPath(t);return!!_.includes(KM)&&(!(!n||!(null==(r=a.getSymlinkedFiles())?void 0:r.has(_)))||m(s.entries(),([r,o])=>{if(!o||!Gt(_,r))return;const s=i(_.replace(r,o.realPath));if(n&&s){const n=Bo(t,e.compilerHost.getCurrentDirectory());a.setSymlinkedFile(_,`${o.real}${n.replace(new RegExp(r,"i"),"")}`)}return s})||!1)}}({compilerHost:me,getSymlinkCache:zn,useSourceOfProjectReferenceRedirect:He,toPath:Tt,getResolvedProjectReferences:Pt,getRedirectFromOutput:dn,forEachResolvedProjectReference:_n}),Ye=me.readFile.bind(me);null==(u=Hn)||u.push(Hn.Phase.Program,"shouldProgramCreateNewSourceFiles",{hasOldProgram:!!R});const et=function(e,t){return!!e&&td(e.getCompilerOptions(),t,BO)}(R,P);let nt;if(null==(p=Hn)||p.pop(),null==(f=Hn)||f.push(Hn.Phase.Program,"tryReuseStructureFromOldProgram",{}),nt=function(){var e;if(!R)return 0;const t=R.getCompilerOptions();if(Zu(t,P))return 0;if(!te(R.getRootFileNames(),E))return 0;if(OC(R.getProjectReferences(),R.getResolvedProjectReferences(),(e,t,n)=>{const r=Cn((t?t.commandLine.projectReferences:L)[n]);return e?!r||r.sourceFile!==e.sourceFile||!te(e.commandLine.fileNames,r.commandLine.fileNames):void 0!==r},(e,t)=>!te(e,t?fn(t.sourceFile.path).commandLine.projectReferences:L,cd)))return 0;L&&(ze=L.map(Cn));const n=[],r=[];if(nt=2,rd(R.getMissingFilePaths(),e=>me.fileExists(e)))return 0;const i=R.getSourceFiles();let o;var a;(a=o||(o={}))[a.Exists=0]="Exists",a[a.Modified=1]="Modified";const s=new Map;for(const t of i){const i=on(t.fileName,Ne,me,P);let o,a=me.getSourceFileByPath?me.getSourceFileByPath(t.fileName,t.resolvedPath,i,void 0,et):me.getSourceFile(t.fileName,i,void 0,et);if(!a)return 0;if(a.packageJsonLocations=(null==(e=i.packageJsonLocations)?void 0:e.length)?i.packageJsonLocations:void 0,a.packageJsonScope=i.packageJsonScope,un.assert(!a.redirectInfo,"Host should not return a redirect source file from `getSourceFile`"),t.redirectInfo){if(a!==t.redirectInfo.unredirected)return 0;o=!1,a=t}else if(R.redirectTargetsMap.has(t.path)){if(a!==t)return 0;o=!1}else o=a!==t;a.path=t.path,a.originalFileName=t.originalFileName,a.resolvedPath=t.resolvedPath,a.fileName=t.fileName;const c=R.sourceFileToPackageName.get(t.path);if(void 0!==c){const e=s.get(c),t=o?1:0;if(void 0!==e&&1===t||1===e)return 0;s.set(c,t)}o?(t.impliedNodeFormat!==a.impliedNodeFormat?nt=1:te(t.libReferenceDirectives,a.libReferenceDirectives,Ht)?t.hasNoDefaultLib!==a.hasNoDefaultLib?nt=1:te(t.referencedFiles,a.referencedFiles,Ht)?(Yt(a),te(t.imports,a.imports,Kt)&&te(t.moduleAugmentations,a.moduleAugmentations,Kt)?(12582912&t.flags)!=(12582912&a.flags)?nt=1:te(t.typeReferenceDirectives,a.typeReferenceDirectives,Ht)||(nt=1):nt=1):nt=1:nt=1,r.push(a)):Ee(t.path)&&(nt=1,r.push(a)),n.push(a)}if(2!==nt)return nt;for(const e of r){const t=$V(e),n=wt(t,e);(ae??(ae=new Map)).set(e.path,n);const r=hn(e);hd(t,n,t=>R.getResolvedModule(e,t.text,pV(e,t,r)),ld)&&(nt=1);const i=e.typeReferenceDirectives,o=Nt(i,e);(ce??(ce=new Map)).set(e.path,o),hd(i,o,t=>R.getResolvedTypeReferenceDirective(e,bV(t),Kn(t,e)),gd)&&(nt=1)}if(2!==nt)return nt;if(ed(t,P))return 1;if(R.resolvedLibReferences&&rd(R.resolvedLibReferences,(e,t)=>xn(t).actual!==e.actual))return 1;if(me.hasChangedAutomaticTypeDirectiveNames){if(me.hasChangedAutomaticTypeDirectiveNames())return 1}else if(Z=bM(P,me),!te(R.getAutomaticTypeDirectiveNames(),Z))return 1;Be=R.getMissingFilePaths(),un.assert(n.length===R.getSourceFiles().length);for(const e of n)Re.set(e.path,e);R.getFilesByNameMap().forEach((e,t)=>{e?e.path!==t?Re.set(t,Re.get(e.path)):R.isSourceFileFromExternalLibrary(e)&&fe.set(e.path,!0):Re.set(t,e)});const c=t.configFile&&t.configFile===P.configFile||!t.configFile&&!P.configFile&&!td(t,P,OO);return Y.reuseStateFromOldProgram(R.getProgramDiagnosticsContainer(),c),be=c,U=n,Z=R.getAutomaticTypeDirectiveNames(),ee=R.getAutomaticTypeDirectiveResolutions(),je=R.sourceFileToPackageName,Me=R.redirectTargetsMap,Le=R.usesUriStyleNodeCoreModules,oe=R.resolvedModules,se=R.resolvedTypeReferenceDirectiveNames,ne=R.resolvedLibReferences,le=R.getCurrentPackagesMap(),2}(),null==(g=Hn)||g.pop(),2!==nt){if(z=[],q=[],L&&(ze||(ze=L.map(Cn)),E.length&&(null==ze||ze.forEach((e,t)=>{if(!e)return;const n=e.commandLine.options.outFile;if(He){if(n||0===vk(e.commandLine.options))for(const n of e.commandLine.fileNames)tn(n,{kind:1,index:t})}else if(n)tn($S(n,".d.ts"),{kind:2,index:t});else if(0===vk(e.commandLine.options)){const n=dt(()=>lU(e.commandLine,!me.useCaseSensitiveFileNames()));for(const r of e.commandLine.fileNames)uO(r)||ko(r,".json")||tn(tU(r,e.commandLine,!me.useCaseSensitiveFileNames(),n),{kind:2,index:t})}}))),null==(h=Hn)||h.push(Hn.Phase.Program,"processRootFiles",{count:E.length}),d(E,(e,t)=>$t(e,!1,!1,{kind:0,index:t})),null==(y=Hn)||y.pop(),Z??(Z=E.length?bM(P,me):l),ee=DM(),Z.length){null==(v=Hn)||v.push(Hn.Phase.Program,"processTypeReferences",{count:Z.length});const e=jo(P.configFilePath?Do(P.configFilePath):xe,TV),t=Nt(Z,e);for(let e=0;e{$t(vn(e),!0,!1,{kind:6,index:t})})}U=_e(z,function(e,t){return vt(St(e),St(t))}).concat(q),z=void 0,q=void 0,G=void 0}if(R&&me.onReleaseOldSourceFile){const e=R.getSourceFiles();for(const t of e){const e=jt(t.resolvedPath);(et||!e||e.impliedNodeFormat!==t.impliedNodeFormat||t.resolvedPath===t.path&&e.resolvedPath!==t.path)&&me.onReleaseOldSourceFile(t,R.getCompilerOptions(),!!jt(t.path),e)}me.getParsedCommandLine||R.forEachResolvedProjectReference(e=>{fn(e.sourceFile.path)||me.onReleaseOldSourceFile(e.sourceFile,R.getCompilerOptions(),!1,void 0)})}R&&me.onReleaseParsedCommandLine&&OC(R.getProjectReferences(),R.getResolvedProjectReferences(),(e,t,n)=>{const r=VV((null==t?void 0:t.commandLine.projectReferences[n])||R.getProjectReferences()[n]);(null==qe?void 0:qe.has(Tt(r)))||me.onReleaseParsedCommandLine(r,e,R.getCompilerOptions())}),R=void 0,re=void 0,ae=void 0,ce=void 0;const ot={getRootFileNames:()=>E,getSourceFile:Lt,getSourceFileByPath:jt,getSourceFiles:()=>U,getMissingFilePaths:()=>Be,getModuleResolutionCache:()=>Ne,getFilesByNameMap:()=>Re,getCompilerOptions:()=>P,getSyntacticDiagnostics:function(e,t){return Mt(e,Jt,t)},getOptionsDiagnostics:function(){return ws(K(Y.getCombinedDiagnostics(ot).getGlobalDiagnostics(),function(){if(!P.configFile)return l;let e=Y.getCombinedDiagnostics(ot).getDiagnostics(P.configFile.fileName);return _n(t=>{e=K(e,Y.getCombinedDiagnostics(ot).getDiagnostics(t.sourceFile.fileName))}),e}()))},getGlobalDiagnostics:function(){return E.length?ws(It().getGlobalDiagnostics().slice()):l},getSemanticDiagnostics:function(e,t,n){return Mt(e,(e,t)=>function(e,t,n){return K(qV(qt(e,t,n),P),Bt(e))}(e,t,n),t)},getCachedSemanticDiagnostics:function(e){return null==X?void 0:X.get(e.path)},getSuggestionDiagnostics:function(e,t){return zt(()=>It().getSuggestionDiagnostics(e,t))},getDeclarationDiagnostics:function(e,t){return Mt(e,Wt,t)},getBindAndCheckDiagnostics:function(e,t){return qt(e,t,void 0)},getProgramDiagnostics:Bt,getTypeChecker:It,getClassifiableNames:function(){var e;if(!H){It(),H=new Set;for(const t of U)null==(e=t.classifiableNames)||e.forEach(e=>H.add(e))}return H},getCommonSourceDirectory:Ct,emit:function(e,t,n,r,i,o,a){var s,c;null==(s=Hn)||s.push(Hn.Phase.Emit,"emit",{path:null==e?void 0:e.path},!0);const l=zt(()=>function(e,t,n,r,i,o,a,s){if(!a){const i=zV(e,t,n,r);if(i)return i}const c=It(),l=c.getEmitResolver(P.outFile?void 0:t,r,pU(i,a));tr("beforeEmit");const _=c.runWithCancellationToken(r,()=>fU(l,Ft(n),t,jq(P,o,i),i,!1,a,s));return tr("afterEmit"),nr("Emit","beforeEmit","afterEmit"),_}(ot,e,t,n,r,i,o,a));return null==(c=Hn)||c.pop(),l},getCurrentDirectory:()=>xe,getNodeCount:()=>It().getNodeCount(),getIdentifierCount:()=>It().getIdentifierCount(),getSymbolCount:()=>It().getSymbolCount(),getTypeCount:()=>It().getTypeCount(),getInstantiationCount:()=>It().getInstantiationCount(),getRelationCacheSizes:()=>It().getRelationCacheSizes(),getFileProcessingDiagnostics:()=>Y.getFileProcessingDiagnostics(),getAutomaticTypeDirectiveNames:()=>Z,getAutomaticTypeDirectiveResolutions:()=>ee,isSourceFileFromExternalLibrary:At,isSourceFileDefaultLibrary:function(e){if(!e.isDeclarationFile)return!1;if(e.hasNoDefaultLib)return!0;if(P.noLib)return!1;const t=me.useCaseSensitiveFileNames()?ht:gt;return P.lib?$(P.lib,n=>{const r=ne.get(n);return!!r&&t(e.fileName,r.actual)}):t(e.fileName,ye())},getModeForUsageLocation:qn,getEmitSyntaxForUsageLocation:function(e,t){return fV(e,t,hn(e))},getModeForResolutionAtIndex:Un,getSourceFileFromReference:function(e,t){return Zt(JU(t.fileName,e.fileName),Lt)},getLibFileFromReference:function(e){var t;const n=AC(e),r=n&&(null==(t=null==ne?void 0:ne.get(n))?void 0:t.actual);return void 0!==r?Lt(r):void 0},sourceFileToPackageName:je,redirectTargetsMap:Me,usesUriStyleNodeCoreModules:Le,resolvedModules:oe,resolvedTypeReferenceDirectiveNames:se,resolvedLibReferences:ne,getProgramDiagnosticsContainer:()=>Y,getResolvedModule:at,getResolvedModuleFromModuleSpecifier:function(e,t){return t??(t=vd(e)),un.assertIsDefined(t,"`moduleSpecifier` must have a `SourceFile` ancestor. Use `program.getResolvedModule` instead to provide the containing file and resolution mode."),at(t,e.text,qn(t,e))},getResolvedTypeReferenceDirective:ct,getResolvedTypeReferenceDirectiveFromTypeReferenceDirective:function(e,t){return ct(t,e.fileName,Kn(e,t))},forEachResolvedModule:lt,forEachResolvedTypeReferenceDirective:ut,getCurrentPackagesMap:()=>le,typesPackageExists:function(e){return ft().has(ER(e))},packageBundlesTypes:function(e){return!!ft().get(e)},isEmittedFile:function(e){if(P.noEmit)return!1;const t=Tt(e);if(jt(t))return!1;const n=P.outFile;if(n)return Jn(t,n)||Jn(t,US(n)+".d.ts");if(P.declarationDir&&ea(P.declarationDir,t,xe,!me.useCaseSensitiveFileNames()))return!0;if(P.outDir)return ea(P.outDir,t,xe,!me.useCaseSensitiveFileNames());if(So(t,wS)||uO(t)){const e=US(t);return!!jt(e+".ts")||!!jt(e+".tsx")}return!1},getConfigFileParsingDiagnostics:function(){return A||l},getProjectReferences:function(){return L},getResolvedProjectReferences:Pt,getRedirectFromSourceFile:ln,getResolvedProjectReferenceByPath:fn,forEachResolvedProjectReference:_n,isSourceOfProjectReferenceRedirect:pn,getRedirectFromOutput:dn,getCompilerOptionsForFile:hn,getDefaultResolutionModeForFile:Vn,getEmitModuleFormatOfFile:Wn,getImpliedNodeFormatForEmit:function(e){return RV(e,hn(e))},shouldTransformImportCall:$n,emitBuildInfo:function(e){var t,n;null==(t=Hn)||t.push(Hn.Phase.Emit,"emitBuildInfo",{},!0),tr("beforeEmit");const r=fU(hU,Ft(e),void 0,Lq,!1,!0);return tr("afterEmit"),nr("Emit","beforeEmit","afterEmit"),null==(n=Hn)||n.pop(),r},fileExists:Ge,readFile:Ye,directoryExists:Xe,getSymlinkCache:zn,realpath:null==(w=me.realpath)?void 0:w.bind(me),useCaseSensitiveFileNames:()=>me.useCaseSensitiveFileNames(),getCanonicalFileName:Sn,getFileIncludeReasons:()=>Y.getFileReasons(),structureIsReused:nt,writeFile:Et,getGlobalTypingsCacheLocation:We(me,me.getGlobalTypingsCacheLocation)};return Ke(),be||function(){P.strictPropertyInitialization&&!Jk(P,"strictNullChecks")&&Pn(_a.Option_0_cannot_be_specified_without_specifying_option_1,"strictPropertyInitialization","strictNullChecks"),P.exactOptionalPropertyTypes&&!Jk(P,"strictNullChecks")&&Pn(_a.Option_0_cannot_be_specified_without_specifying_option_1,"exactOptionalPropertyTypes","strictNullChecks"),(P.isolatedModules||P.verbatimModuleSyntax)&&P.outFile&&Pn(_a.Option_0_cannot_be_specified_with_option_1,"outFile",P.verbatimModuleSyntax?"verbatimModuleSyntax":"isolatedModules"),P.isolatedDeclarations&&(Ak(P)&&Pn(_a.Option_0_cannot_be_specified_with_option_1,"allowJs","isolatedDeclarations"),Dk(P)||Pn(_a.Option_0_cannot_be_specified_without_specifying_option_1_or_option_2,"isolatedDeclarations","declaration","composite")),P.inlineSourceMap&&(P.sourceMap&&Pn(_a.Option_0_cannot_be_specified_with_option_1,"sourceMap","inlineSourceMap"),P.mapRoot&&Pn(_a.Option_0_cannot_be_specified_with_option_1,"mapRoot","inlineSourceMap")),P.composite&&(!1===P.declaration&&Pn(_a.Composite_projects_may_not_disable_declaration_emit,"declaration"),!1===P.incremental&&Pn(_a.Composite_projects_may_not_disable_incremental_compilation,"declaration"));const e=P.outFile;if(P.tsBuildInfoFile||!P.incremental||e||P.configFilePath||Y.addConfigDiagnostic(Qx(_a.Option_incremental_can_only_be_specified_using_tsconfig_emitting_to_single_file_or_when_option_tsBuildInfoFile_is_specified)),wn("5.0","5.5",function(e,t,n,r,...i){if(n){const o=Zx(void 0,_a.Use_0_instead,n);On(!t,e,void 0,Zx(o,r,...i))}else On(!t,e,void 0,r,...i)},e=>{0===P.target&&e("target","ES3"),P.noImplicitUseStrict&&e("noImplicitUseStrict"),P.keyofStringsOnly&&e("keyofStringsOnly"),P.suppressExcessPropertyErrors&&e("suppressExcessPropertyErrors"),P.suppressImplicitAnyIndexErrors&&e("suppressImplicitAnyIndexErrors"),P.noStrictGenericChecks&&e("noStrictGenericChecks"),P.charset&&e("charset"),P.out&&e("out",void 0,"outFile"),P.importsNotUsedAsValues&&e("importsNotUsedAsValues",void 0,"verbatimModuleSyntax"),P.preserveValueImports&&e("preserveValueImports",void 0,"verbatimModuleSyntax")}),function(){const e=P.suppressOutputPathCheck?void 0:Gq(P);OC(L,ze,(t,n,r)=>{const i=(n?n.commandLine.projectReferences:L)[r],o=n&&n.sourceFile;if(function(e,t,n){wn("5.0","5.5",function(e,r,i,o,...a){In(t,n,o,...a)},t=>{e.prepend&&t("prepend")})}(i,o,r),!t)return void In(o,r,_a.File_0_not_found,i.path);const a=t.commandLine.options;a.composite&&!a.noEmit||(n?n.commandLine.fileNames:E).length&&(a.composite||In(o,r,_a.Referenced_project_0_must_have_setting_composite_Colon_true,i.path),a.noEmit&&In(o,r,_a.Referenced_project_0_may_not_disable_emit,i.path)),!n&&e&&e===Gq(a)&&(In(o,r,_a.Cannot_write_file_0_because_it_will_overwrite_tsbuildinfo_file_generated_by_referenced_project_1,e,i.path),Te.set(Tt(e),!0))})}(),P.composite){const e=new Set(E.map(Tt));for(const t of U)Xy(t,ot)&&!e.has(t.path)&&Y.addLazyConfigDiagnostic(t,_a.File_0_is_not_listed_within_the_file_list_of_project_1_Projects_must_list_all_files_or_use_an_include_pattern,t.fileName,P.configFilePath||"")}if(P.paths)for(const e in P.paths)if(De(P.paths,e))if(Xk(e)||Fn(!0,e,_a.Pattern_0_can_have_at_most_one_Asterisk_character,e),Qe(P.paths[e])){const t=P.paths[e].length;0===t&&Fn(!1,e,_a.Substitutions_for_pattern_0_shouldn_t_be_an_empty_array,e);for(let n=0;nrO(e)&&!e.isDeclarationFile);if(P.isolatedModules||P.verbatimModuleSyntax)0===P.module&&t<2&&P.isolatedModules&&Pn(_a.Option_isolatedModules_can_only_be_used_when_either_option_module_is_provided_or_option_target_is_ES2015_or_higher,"isolatedModules","target"),!1===P.preserveConstEnums&&Pn(_a.Option_preserveConstEnums_cannot_be_disabled_when_0_is_enabled,P.verbatimModuleSyntax?"verbatimModuleSyntax":"isolatedModules","preserveConstEnums");else if(n&&t<2&&0===P.module){const e=Qp(n,"boolean"==typeof n.externalModuleIndicator?n:n.externalModuleIndicator);Y.addConfigDiagnostic(Gx(n,e.start,e.length,_a.Cannot_use_imports_exports_or_module_augmentations_when_module_is_none))}if(e&&!P.emitDeclarationOnly)if(P.module&&2!==P.module&&4!==P.module)Pn(_a.Only_amd_and_system_modules_are_supported_alongside_0,"outFile","module");else if(void 0===P.module&&n){const e=Qp(n,"boolean"==typeof n.externalModuleIndicator?n:n.externalModuleIndicator);Y.addConfigDiagnostic(Gx(n,e.start,e.length,_a.Cannot_compile_modules_using_option_0_unless_the_module_flag_is_amd_or_system,"outFile"))}if(Nk(P)&&(1===bk(P)?Pn(_a.Option_resolveJsonModule_cannot_be_specified_when_moduleResolution_is_set_to_classic,"resolveJsonModule"):Lk(P)||Pn(_a.Option_resolveJsonModule_cannot_be_specified_when_module_is_set_to_none_system_or_umd,"resolveJsonModule","module")),P.outDir||P.rootDir||P.sourceRoot||P.mapRoot||Dk(P)&&P.declarationDir){const e=Ct();P.outDir&&""===e&&U.some(e=>No(e.fileName)>1)&&Pn(_a.Cannot_find_the_common_subdirectory_path_for_the_input_files,"outDir")}P.checkJs&&!Ak(P)&&Pn(_a.Option_0_cannot_be_specified_without_specifying_option_1,"checkJs","allowJs"),P.emitDeclarationOnly&&(Dk(P)||Pn(_a.Option_0_cannot_be_specified_without_specifying_option_1_or_option_2,"emitDeclarationOnly","declaration","composite")),P.emitDecoratorMetadata&&!P.experimentalDecorators&&Pn(_a.Option_0_cannot_be_specified_without_specifying_option_1,"emitDecoratorMetadata","experimentalDecorators"),P.jsxFactory?(P.reactNamespace&&Pn(_a.Option_0_cannot_be_specified_with_option_1,"reactNamespace","jsxFactory"),4!==P.jsx&&5!==P.jsx||Pn(_a.Option_0_cannot_be_specified_when_option_jsx_is_1,"jsxFactory",CO.get(""+P.jsx)),tO(P.jsxFactory,t)||An("jsxFactory",_a.Invalid_value_for_jsxFactory_0_is_not_a_valid_identifier_or_qualified_name,P.jsxFactory)):P.reactNamespace&&!ms(P.reactNamespace,t)&&An("reactNamespace",_a.Invalid_value_for_reactNamespace_0_is_not_a_valid_identifier,P.reactNamespace),P.jsxFragmentFactory&&(P.jsxFactory||Pn(_a.Option_0_cannot_be_specified_without_specifying_option_1,"jsxFragmentFactory","jsxFactory"),4!==P.jsx&&5!==P.jsx||Pn(_a.Option_0_cannot_be_specified_when_option_jsx_is_1,"jsxFragmentFactory",CO.get(""+P.jsx)),tO(P.jsxFragmentFactory,t)||An("jsxFragmentFactory",_a.Invalid_value_for_jsxFragmentFactory_0_is_not_a_valid_identifier_or_qualified_name,P.jsxFragmentFactory)),P.reactNamespace&&(4!==P.jsx&&5!==P.jsx||Pn(_a.Option_0_cannot_be_specified_when_option_jsx_is_1,"reactNamespace",CO.get(""+P.jsx))),P.jsxImportSource&&2===P.jsx&&Pn(_a.Option_0_cannot_be_specified_when_option_jsx_is_1,"jsxImportSource",CO.get(""+P.jsx));const r=vk(P);P.verbatimModuleSyntax&&(2!==r&&3!==r&&4!==r||Pn(_a.Option_verbatimModuleSyntax_cannot_be_used_when_module_is_set_to_UMD_AMD_or_System,"verbatimModuleSyntax")),P.allowImportingTsExtensions&&!(P.noEmit||P.emitDeclarationOnly||P.rewriteRelativeImportExtensions)&&An("allowImportingTsExtensions",_a.Option_allowImportingTsExtensions_can_only_be_used_when_either_noEmit_or_emitDeclarationOnly_is_set);const i=bk(P);if(P.resolvePackageJsonExports&&!Rk(i)&&Pn(_a.Option_0_can_only_be_used_when_moduleResolution_is_set_to_node16_nodenext_or_bundler,"resolvePackageJsonExports"),P.resolvePackageJsonImports&&!Rk(i)&&Pn(_a.Option_0_can_only_be_used_when_moduleResolution_is_set_to_node16_nodenext_or_bundler,"resolvePackageJsonImports"),P.customConditions&&!Rk(i)&&Pn(_a.Option_0_can_only_be_used_when_moduleResolution_is_set_to_node16_nodenext_or_bundler,"customConditions"),100!==i||Ok(r)||200===r||An("moduleResolution",_a.Option_0_can_only_be_used_when_module_is_set_to_preserve_or_to_es2015_or_later,"bundler"),fi[r]&&100<=r&&r<=199&&!(3<=i&&i<=99)){const e=fi[r],t=li[e]?e:"Node16";An("moduleResolution",_a.Option_moduleResolution_must_be_set_to_0_or_left_unspecified_when_option_module_is_set_to_1,t,e)}else if(li[i]&&3<=i&&i<=99&&!(100<=r&&r<=199)){const e=li[i];An("module",_a.Option_module_must_be_set_to_0_when_option_moduleResolution_is_set_to_1,e,e)}if(!P.noEmit&&!P.suppressOutputPathCheck){const e=Ft(),t=new Set;Kq(e,e=>{P.emitDeclarationOnly||o(e.jsFilePath,t),o(e.declarationFilePath,t)})}function o(e,t){if(e){const n=Tt(e);if(Re.has(n)){let t;P.configFilePath||(t=Zx(void 0,_a.Adding_a_tsconfig_json_file_will_help_organize_projects_that_contain_both_TypeScript_and_JavaScript_files_Learn_more_at_https_Colon_Slash_Slashaka_ms_Slashtsconfig)),t=Zx(t,_a.Cannot_write_file_0_because_it_would_overwrite_input_file,e),Bn(e,Yx(t))}const r=me.useCaseSensitiveFileNames()?n:_t(n);t.has(r)?Bn(e,Qx(_a.Cannot_write_file_0_because_it_would_be_overwritten_by_multiple_input_files,e)):t.add(r)}}}(),tr("afterProgram"),nr("Program","beforeProgram","afterProgram"),null==(D=Hn)||D.pop(),ot;function at(e,t,n){var r;return null==(r=null==oe?void 0:oe.get(e.path))?void 0:r.get(t,n)}function ct(e,t,n){var r;return null==(r=null==se?void 0:se.get(e.path))?void 0:r.get(t,n)}function lt(e,t){pt(oe,e,t)}function ut(e,t){pt(se,e,t)}function pt(e,t,n){var r;n?null==(r=null==e?void 0:e.get(n.path))||r.forEach((e,r,i)=>t(e,r,i,n.path)):null==e||e.forEach((e,n)=>e.forEach((e,r,i)=>t(e,r,i,n)))}function ft(){return le||(le=new Map,lt(({resolvedModule:e})=>{(null==e?void 0:e.packageId)&&le.set(e.packageId.name,".d.ts"===e.extension||!!le.get(e.packageId.name))}),le)}function mt(e){var t;(null==(t=e.resolutionDiagnostics)?void 0:t.length)&&Y.addFileProcessingDiagnostic({kind:2,diagnostics:e.resolutionDiagnostics})}function yt(e,t,n,r){if(me.resolveModuleNameLiterals||!me.resolveModuleNames)return mt(n);if(!Ne||Cs(t))return;const i=Do(Bo(e.originalFileName,xe)),o=kt(e),a=Ne.getFromNonRelativeNameCache(t,r,i,o);a&&mt(a)}function bt(e,t,n){var r,i;const o=Bo(t.originalFileName,xe),a=kt(t);null==(r=Hn)||r.push(Hn.Phase.Program,"resolveModuleNamesWorker",{containingFileName:o}),tr("beforeResolveModule");const s=Fe(e,o,a,P,t,n);return tr("afterResolveModule"),nr("ResolveModule","beforeResolveModule","afterResolveModule"),null==(i=Hn)||i.pop(),s}function xt(e,t,n){var r,i;const o=Ze(t)?void 0:t,a=Ze(t)?t:Bo(t.originalFileName,xe),s=o&&kt(o);null==(r=Hn)||r.push(Hn.Phase.Program,"resolveTypeReferenceDirectiveNamesWorker",{containingFileName:a}),tr("beforeResolveTypeReference");const c=Pe(e,a,s,P,o,n);return tr("afterResolveTypeReference"),nr("ResolveTypeReference","beforeResolveTypeReference","afterResolveTypeReference"),null==(i=Hn)||i.pop(),c}function kt(e){var t,n;const r=ln(e.originalFileName);if(r||!uO(e.originalFileName))return null==r?void 0:r.resolvedRef;const i=null==(t=dn(e.path))?void 0:t.resolvedRef;if(i)return i;if(!me.realpath||!P.preserveSymlinks||!e.originalFileName.includes(KM))return;const o=Tt(me.realpath(e.originalFileName));return o===e.path||null==(n=dn(o))?void 0:n.resolvedRef}function St(e){if(ea(ve,e.fileName,!1)){const t=Fo(e.fileName);if("lib.d.ts"===t||"lib.es6.d.ts"===t)return 0;const n=Rt(Xt(t,"lib."),".d.ts"),r=NO.indexOf(n);if(-1!==r)return r+1}return NO.length+2}function Tt(e){return Uo(e,xe,Sn)}function Ct(){let e=Y.getCommonSourceDirectory();if(void 0!==e)return e;const t=N(U,e=>Xy(e,ot));return e=cU(P,()=>B(t,e=>e.isDeclarationFile?void 0:e.fileName),xe,Sn,e=>function(e,t){let n=!0;const r=me.getCanonicalFileName(Bo(t,xe));for(const i of e)i.isDeclarationFile||0!==me.getCanonicalFileName(Bo(i.fileName,xe)).indexOf(r)&&(Y.addLazyConfigDiagnostic(i,_a.File_0_is_not_under_rootDir_1_rootDir_is_expected_to_contain_all_source_files,i.fileName,t),n=!1);return n}(t,e)),Y.setCommonSourceDirectory(e),e}function wt(e,t){return Dt({entries:e,containingFile:t,containingSourceFile:t,redirectedReference:kt(t),nameAndModeGetter:yV,resolutionWorker:bt,getResolutionFromOldProgram:(e,n)=>null==R?void 0:R.getResolvedModule(t,e,n),getResolved:_d,canReuseResolutionsInFile:()=>t===(null==R?void 0:R.getSourceFile(t.fileName))&&!Ee(t.path),resolveToOwnAmbientModule:!0})}function Nt(e,t){const n=Ze(t)?void 0:t;return Dt({entries:e,containingFile:t,containingSourceFile:n,redirectedReference:n&&kt(n),nameAndModeGetter:xV,resolutionWorker:xt,getResolutionFromOldProgram:(e,t)=>{var r;return n?null==R?void 0:R.getResolvedTypeReferenceDirective(n,e,t):null==(r=null==R?void 0:R.getAutomaticTypeDirectiveResolutions())?void 0:r.get(e,t)},getResolved:ud,canReuseResolutionsInFile:()=>n?n===(null==R?void 0:R.getSourceFile(n.fileName))&&!Ee(n.path):!Ee(Tt(t))})}function Dt({entries:e,containingFile:t,containingSourceFile:n,redirectedReference:r,nameAndModeGetter:i,resolutionWorker:o,getResolutionFromOldProgram:a,getResolved:s,canReuseResolutionsInFile:c,resolveToOwnAmbientModule:_}){if(!e.length)return l;if(!(0!==nt||_&&n.ambientModuleNames.length))return o(e,t,void 0);let u,d,p,f;const m=c();for(let c=0;cp[d[t]]=e),p):g}function Ft(e){return{getCanonicalFileName:Sn,getCommonSourceDirectory:ot.getCommonSourceDirectory,getCompilerOptions:ot.getCompilerOptions,getCurrentDirectory:()=>xe,getSourceFile:ot.getSourceFile,getSourceFileByPath:ot.getSourceFileByPath,getSourceFiles:ot.getSourceFiles,isSourceFileFromExternalLibrary:At,getRedirectFromSourceFile:ln,isSourceOfProjectReferenceRedirect:pn,getSymlinkCache:zn,writeFile:e||Et,isEmitBlocked:Ot,shouldTransformImportCall:$n,getEmitModuleFormatOfFile:Wn,getDefaultResolutionModeForFile:Vn,getModeForResolutionAtIndex:Un,readFile:e=>me.readFile(e),fileExists:e=>{const t=Tt(e);return!!jt(t)||!Be.has(t)&&me.fileExists(e)},realpath:We(me,me.realpath),useCaseSensitiveFileNames:()=>me.useCaseSensitiveFileNames(),getBuildInfo:()=>{var e;return null==(e=ot.getBuildInfo)?void 0:e.call(ot)},getSourceFileFromReference:(e,t)=>ot.getSourceFileFromReference(e,t),redirectTargetsMap:Me,getFileIncludeReasons:ot.getFileIncludeReasons,createHash:We(me,me.createHash),getModuleResolutionCache:()=>ot.getModuleResolutionCache(),trace:We(me,me.trace),getGlobalTypingsCacheLocation:ot.getGlobalTypingsCacheLocation}}function Et(e,t,n,r,i,o){me.writeFile(e,t,n,r,i,o)}function Pt(){return ze}function At(e){return!!fe.get(e.path)}function It(){return W||(W=nJ(ot))}function Ot(e){return Te.has(Tt(e))}function Lt(e){return jt(Tt(e))}function jt(e){return Re.get(e)||void 0}function Mt(e,t,n){return ws(e?t(e,n):O(ot.getSourceFiles(),e=>(n&&n.throwIfCancellationRequested(),t(e,n))))}function Bt(e){var t;if(_T(e,P,ot))return l;const n=Y.getCombinedDiagnostics(ot).getDiagnostics(e.fileName);return(null==(t=e.commentDirectives)?void 0:t.length)?Vt(e,e.commentDirectives,n).diagnostics:n}function Jt(e){return Fm(e)?(e.additionalSyntacticDiagnostics||(e.additionalSyntacticDiagnostics=function(e){return zt(()=>{const t=[];return n(e,e),QI(e,n,function(e,n){if($A(n)){const e=b(n.modifiers,CD);e&&t.push(i(e,_a.Decorators_are_not_valid_here))}else if(SI(n)&&n.modifiers){const e=k(n.modifiers,CD);if(e>=0)if(TD(n)&&!P.experimentalDecorators)t.push(i(n.modifiers[e],_a.Decorators_are_not_valid_here));else if(dE(n)){const r=k(n.modifiers,cD);if(r>=0){const o=k(n.modifiers,lD);if(e>r&&o>=0&&e=0&&e=0&&t.push(aT(i(n.modifiers[o],_a.Decorators_may_not_appear_after_export_or_export_default_if_they_also_appear_before_export),i(n.modifiers[e],_a.Decorator_used_before_export_here)))}}}}switch(n.kind){case 264:case 232:case 175:case 177:case 178:case 179:case 219:case 263:case 220:if(e===n.typeParameters)return t.push(r(e,_a.Type_parameter_declarations_can_only_be_used_in_TypeScript_files)),"skip";case 244:if(e===n.modifiers)return function(e,n){for(const r of e)switch(r.kind){case 87:if(n)continue;case 125:case 123:case 124:case 148:case 138:case 128:case 164:case 103:case 147:t.push(i(r,_a.The_0_modifier_can_only_be_used_in_TypeScript_files,Fa(r.kind)))}}(n.modifiers,244===n.kind),"skip";break;case 173:if(e===n.modifiers){for(const n of e)Zl(n)&&126!==n.kind&&129!==n.kind&&t.push(i(n,_a.The_0_modifier_can_only_be_used_in_TypeScript_files,Fa(n.kind)));return"skip"}break;case 170:if(e===n.modifiers&&$(e,Zl))return t.push(r(e,_a.Parameter_modifiers_can_only_be_used_in_TypeScript_files)),"skip";break;case 214:case 215:case 234:case 286:case 287:case 216:if(e===n.typeArguments)return t.push(r(e,_a.Type_arguments_can_only_be_used_in_TypeScript_files)),"skip"}}),t;function n(e,n){switch(n.kind){case 170:case 173:case 175:if(n.questionToken===e)return t.push(i(e,_a.The_0_modifier_can_only_be_used_in_TypeScript_files,"?")),"skip";case 174:case 177:case 178:case 179:case 219:case 263:case 220:case 261:if(n.type===e)return t.push(i(e,_a.Type_annotations_can_only_be_used_in_TypeScript_files)),"skip"}switch(e.kind){case 274:if(e.isTypeOnly)return t.push(i(n,_a._0_declarations_can_only_be_used_in_TypeScript_files,"import type")),"skip";break;case 279:if(e.isTypeOnly)return t.push(i(e,_a._0_declarations_can_only_be_used_in_TypeScript_files,"export type")),"skip";break;case 277:case 282:if(e.isTypeOnly)return t.push(i(e,_a._0_declarations_can_only_be_used_in_TypeScript_files,PE(e)?"import...type":"export...type")),"skip";break;case 272:return t.push(i(e,_a.import_can_only_be_used_in_TypeScript_files)),"skip";case 278:if(e.isExportEquals)return t.push(i(e,_a.export_can_only_be_used_in_TypeScript_files)),"skip";break;case 299:if(119===e.token)return t.push(i(e,_a.implements_clauses_can_only_be_used_in_TypeScript_files)),"skip";break;case 265:const r=Fa(120);return un.assertIsDefined(r),t.push(i(e,_a._0_declarations_can_only_be_used_in_TypeScript_files,r)),"skip";case 268:const o=32&e.flags?Fa(145):Fa(144);return un.assertIsDefined(o),t.push(i(e,_a._0_declarations_can_only_be_used_in_TypeScript_files,o)),"skip";case 266:return t.push(i(e,_a.Type_aliases_can_only_be_used_in_TypeScript_files)),"skip";case 177:case 175:case 263:return e.body?void 0:(t.push(i(e,_a.Signature_declarations_can_only_be_used_in_TypeScript_files)),"skip");case 267:const a=un.checkDefined(Fa(94));return t.push(i(e,_a._0_declarations_can_only_be_used_in_TypeScript_files,a)),"skip";case 236:return t.push(i(e,_a.Non_null_assertions_can_only_be_used_in_TypeScript_files)),"skip";case 235:return t.push(i(e.type,_a.Type_assertion_expressions_can_only_be_used_in_TypeScript_files)),"skip";case 239:return t.push(i(e.type,_a.Type_satisfaction_expressions_can_only_be_used_in_TypeScript_files)),"skip";case 217:un.fail()}}function r(t,n,...r){const i=t.pos;return Gx(e,i,t.end-i,n,...r)}function i(t,n,...r){return Jp(e,t,n,...r)}})}(e)),K(e.additionalSyntacticDiagnostics,e.parseDiagnostics)):e.parseDiagnostics}function zt(e){try{return e()}catch(e){throw e instanceof Cr&&(W=void 0),e}}function qt(e,t,n){if(n)return Ut(e,t,n);let r=null==X?void 0:X.get(e.path);return r||(X??(X=new Map)).set(e.path,r=Ut(e,t)),r}function Ut(e,t,n){return zt(()=>{if(_T(e,P,ot))return l;const r=It();un.assert(!!e.bindDiagnostics);const i=1===e.scriptKind||2===e.scriptKind,o=xd(e,P.checkJs),a=i&&nT(e,P);let s=e.bindDiagnostics,c=r.getDiagnostics(e,t,n);return o&&(s=N(s,e=>OV.has(e.code)),c=N(c,e=>OV.has(e.code))),function(e,t,n,...r){var i;const o=I(r);if(!t||!(null==(i=e.commentDirectives)?void 0:i.length))return o;const{diagnostics:a,directives:s}=Vt(e,e.commentDirectives,o);if(n)return a;for(const t of s.getUnusedExpectations())a.push(Hp(e,t.range,_a.Unused_ts_expect_error_directive));return a}(e,!o,!!n,s,c,a?e.jsDocDiagnostics:void 0)})}function Vt(e,t,n){const r=Jd(e,t),i=n.filter(e=>-1===function(e,t){const{file:n,start:r}=e;if(!n)return-1;const i=Ma(n);let o=Ra(i,r).line-1;for(;o>=0;){if(t.markUsed(o))return o;const e=n.text.slice(i[o],i[o+1]).trim();if(""!==e&&!/^\s*\/\/.*$/.test(e))return-1;o--}return-1}(e,r));return{diagnostics:i,directives:r}}function Wt(e,t){return e.isDeclarationFile?l:function(e,t){let n=null==Q?void 0:Q.get(e.path);return n||(Q??(Q=new Map)).set(e.path,n=function(e,t){return zt(()=>{const n=It().getEmitResolver(e,t);return Fq(Ft(rt),n,e)||l})}(e,t)),n}(e,t)}function $t(e,t,n,r){en(Jo(e),t,n,void 0,r)}function Ht(e,t){return e.fileName===t.fileName}function Kt(e,t){return 80===e.kind?80===t.kind&&e.escapedText===t.escapedText:11===t.kind&&e.text===t.text}function Qt(e,t){const n=mw.createStringLiteral(e),r=mw.createImportDeclaration(void 0,void 0,n);return Tw(r,2),DT(n,r),DT(r,t),n.flags&=-17,r.flags&=-17,n}function Yt(e){if(e.imports)return;const t=Fm(e),n=rO(e);let r,i,o;if(t||!e.isDeclarationFile&&(kk(P)||rO(e))){P.importHelpers&&(r=[Qt(Uu,e)]);const t=Gk(Kk(P,e),P);t&&(r||(r=[])).push(Qt(t,e))}for(const t of e.statements)a(t,!1);return(4194304&e.flags||t)&&DC(e,!0,!0,(e,t)=>{FT(e,!1),r=ie(r,t)}),e.imports=r||l,e.moduleAugmentations=i||l,void(e.ambientModuleNames=o||l);function a(t,s){if(Dp(t)){const n=kg(t);!(n&&UN(n)&&n.text)||s&&Cs(n.text)||(FT(t,!1),r=ie(r,n),Le||0!==de||e.isDeclarationFile||(Gt(n.text,"node:")&&!wC.has(n.text)?Le=!0:void 0===Le&&CC.has(n.text)&&(Le=!1)))}else if(gE(t)&&cp(t)&&(s||Nv(t,128)||e.isDeclarationFile)){t.name.parent=t;const r=qh(t.name);if(n||s&&!Cs(r))(i||(i=[])).push(t.name);else if(!s){e.isDeclarationFile&&(o||(o=[])).push(r);const n=t.body;if(n)for(const e of n.statements)a(e,!0)}}}}function Zt(e,t,n,r){if(xo(e)){const i=me.getCanonicalFileName(e);if(!P.allowNonTsExtensions&&!d(I(Se),e=>ko(i,e)))return void(n&&(OS(i)?n(_a.File_0_is_a_JavaScript_file_Did_you_mean_to_enable_the_allowJs_option,e):n(_a.File_0_has_an_unsupported_extension_The_only_supported_extensions_are_1,e,"'"+I(ke).join("', '")+"'")));const o=t(e);if(n)if(o)NV(r)&&i===me.getCanonicalFileName(jt(r.file).fileName)&&n(_a.A_file_cannot_have_a_reference_to_itself);else{const t=ln(e);(null==t?void 0:t.outputDts)?n(_a.Output_file_0_has_not_been_built_from_source_file_1,t.outputDts,e):n(_a.File_0_not_found,e)}return o}{const r=P.allowNonTsExtensions&&t(e);if(r)return r;if(n&&P.allowNonTsExtensions)return void n(_a.File_0_not_found,e);const i=d(ke[0],n=>t(e+n));return n&&!i&&n(_a.Could_not_resolve_the_path_0_with_the_extensions_Colon_1,e,"'"+I(ke).join("', '")+"'"),i}}function en(e,t,n,r,i){Zt(e,e=>rn(e,t,n,i,r),(e,...t)=>Nn(void 0,i,e,t),i)}function tn(e,t){return en(e,!1,!1,void 0,t)}function nn(e,t,n){!NV(n)&&$(Y.getFileReasons().get(t.path),NV)?Nn(t,n,_a.Already_included_file_name_0_differs_from_file_name_1_only_in_casing,[t.fileName,e]):Nn(t,n,_a.File_name_0_differs_from_already_included_file_name_1_only_in_casing,[e,t.fileName])}function rn(e,t,n,r,i){var o,a;null==(o=Hn)||o.push(Hn.Phase.Program,"findSourceFile",{fileName:e,isDefaultLib:t||void 0,fileIncludeKind:wr[r.kind]});const s=function(e,t,n,r,i){var o,a;const s=Tt(e);if(He){let o=dn(s);if(!o&&me.realpath&&P.preserveSymlinks&&uO(e)&&e.includes(KM)){const t=Tt(me.realpath(e));t!==s&&(o=dn(t))}if(null==o?void 0:o.source){const a=rn(o.source,t,n,r,i);return a&&sn(a,s,e,void 0),a}}const c=e;if(Re.has(s)){const n=Re.get(s),i=an(n||void 0,r,!0);if(n&&i&&!1!==P.forceConsistentCasingInFileNames){const t=n.fileName;Tt(t)!==Tt(e)&&(e=(null==(o=ln(e))?void 0:o.outputDts)||e),qo(t,xe)!==qo(e,xe)&&nn(e,n,r)}return n&&fe.get(n.path)&&0===de?(fe.set(n.path,!1),P.noResolve||(mn(n,t),gn(n)),P.noLib||kn(n),pe.set(n.path,!1),Tn(n)):n&&pe.get(n.path)&&deNn(void 0,r,_a.Cannot_read_file_0_Colon_1,[e,t]),et);if(i){const t=md(i),n=Oe.get(t);if(n){const t=function(e,t,n,r,i,o,a){var s;const c=CI.createRedirectedSourceFile({redirectTarget:e,unredirected:t});return c.fileName=n,c.path=r,c.resolvedPath=i,c.originalFileName=o,c.packageJsonLocations=(null==(s=a.packageJsonLocations)?void 0:s.length)?a.packageJsonLocations:void 0,c.packageJsonScope=a.packageJsonScope,fe.set(r,de>0),c}(n,u,e,s,Tt(e),c,_);return Me.add(n.path,e),sn(t,s,e,l),an(t,r,!1),je.set(s,fd(i)),q.push(t),t}u&&(Oe.set(t,u),je.set(s,fd(i)))}if(sn(u,s,e,l),u){if(fe.set(s,de>0),u.fileName=e,u.path=s,u.resolvedPath=Tt(e),u.originalFileName=c,u.packageJsonLocations=(null==(a=_.packageJsonLocations)?void 0:a.length)?_.packageJsonLocations:void 0,u.packageJsonScope=_.packageJsonScope,an(u,r,!1),me.useCaseSensitiveFileNames()){const t=_t(s),n=Je.get(t);n?nn(e,n,r):Je.set(t,u)}he=he||u.hasNoDefaultLib&&!n,P.noResolve||(mn(u,t),gn(u)),P.noLib||kn(u),Tn(u),t?z.push(u):q.push(u),(G??(G=new Set)).add(u.path)}return u}(e,t,n,r,i);return null==(a=Hn)||a.pop(),s}function on(e,t,n,r){const i=IV(Bo(e,xe),null==t?void 0:t.getPackageJsonInfoCache(),n,r),o=yk(r),a=pk(r);return"object"==typeof i?{...i,languageVersion:o,setExternalModuleIndicator:a,jsDocParsingMode:n.jsDocParsingMode}:{languageVersion:o,impliedNodeFormat:i,setExternalModuleIndicator:a,jsDocParsingMode:n.jsDocParsingMode}}function an(e,t,n){return!(!e||n&&NV(t)&&(null==G?void 0:G.has(t.file))||(Y.getFileReasons().add(e.path,t),0))}function sn(e,t,n,r){r?(cn(n,r,e),cn(n,t,e||!1)):cn(n,t,e)}function cn(e,t,n){Re.set(t,n),void 0!==n?Be.delete(t):Be.set(t,e)}function ln(e){return null==Ue?void 0:Ue.get(Tt(e))}function _n(e){return IC(ze,e)}function dn(e){return null==Ve?void 0:Ve.get(e)}function pn(e){return He&&!!ln(e)}function fn(e){if(qe)return qe.get(e)||void 0}function mn(e,t){d(e.referencedFiles,(n,r)=>{en(JU(n.fileName,e.fileName),t,!1,void 0,{kind:4,file:e.path,index:r})})}function gn(e){const t=e.typeReferenceDirectives;if(!t.length)return;const n=(null==ce?void 0:ce.get(e.path))||Nt(t,e),r=DM();(se??(se=new Map)).set(e.path,r);for(let i=0;i{const r=AC(t);r?$t(vn(r),!0,!0,{kind:7,file:e.path,index:n}):Y.addFileProcessingDiagnostic({kind:0,reason:{kind:7,file:e.path,index:n}})})}function Sn(e){return me.getCanonicalFileName(e)}function Tn(e){if(Yt(e),e.imports.length||e.moduleAugmentations.length){const t=$V(e),n=(null==ae?void 0:ae.get(e.path))||wt(t,e);un.assert(n.length===t.length);const r=hn(e),i=DM();(oe??(oe=new Map)).set(e.path,i);for(let o=0;oue,f=d&&!WV(r,a,e)&&!r.noResolve&&olU(a.commandLine,!me.useCaseSensitiveFileNames()));i.fileNames.forEach(n=>{if(uO(n))return;const r=Tt(n);let o;ko(n,".json")||(i.options.outFile?o=e:(o=tU(n,a.commandLine,!me.useCaseSensitiveFileNames(),t),Ve.set(Tt(o),{resolvedRef:a,source:n}))),Ue.set(r,{resolvedRef:a,outputDts:o})})}return i.projectReferences&&(a.references=i.projectReferences.map(Cn)),a}function wn(e,t,n,r){const i=new bn(e),o=new bn(t),s=new bn(j||a),c=function(){const e=P.ignoreDeprecations;if(e){if("5.0"===e)return new bn(e);J()}return bn.zero}(),l=!(1===o.compareTo(s)),_=!l&&-1===c.compareTo(i);(l||_)&&r((r,i,o)=>{l?void 0===i?n(r,i,o,_a.Option_0_has_been_removed_Please_remove_it_from_your_configuration,r):n(r,i,o,_a.Option_0_1_has_been_removed_Please_remove_it_from_your_configuration,r,i):void 0===i?n(r,i,o,_a.Option_0_is_deprecated_and_will_stop_functioning_in_TypeScript_1_Specify_compilerOption_ignoreDeprecations_Colon_2_to_silence_this_error,r,t,e):n(r,i,o,_a.Option_0_1_is_deprecated_and_will_stop_functioning_in_TypeScript_2_Specify_compilerOption_ignoreDeprecations_Colon_3_to_silence_this_error,r,i,t,e)})}function Nn(e,t,n,r){Y.addFileProcessingDiagnostic({kind:1,file:e&&e.path,fileProcessingReason:t,diagnostic:n,args:r})}function Dn(e,t,n,...r){let i=!0;En(o=>{uF(o.initializer)&&Vf(o.initializer,e,e=>{const o=e.initializer;_F(o)&&o.elements.length>t&&(Y.addConfigDiagnostic(Jp(P.configFile,o.elements[t],n,...r)),i=!1)})}),i&&Ln(n,...r)}function Fn(e,t,n,...r){let i=!0;En(o=>{uF(o.initializer)&&Rn(o.initializer,e,t,void 0,n,...r)&&(i=!1)}),i&&Ln(n,...r)}function En(e){return MC(jn(),"paths",e)}function Pn(e,t,n,r){On(!0,t,n,e,t,n,r)}function An(e,t,...n){On(!1,e,void 0,t,...n)}function In(e,t,n,...r){const i=Hf(e||P.configFile,"references",e=>_F(e.initializer)?e.initializer:void 0);i&&i.elements.length>t?Y.addConfigDiagnostic(Jp(e||P.configFile,i.elements[t],n,...r)):Y.addConfigDiagnostic(Qx(n,...r))}function On(e,t,n,r,...i){const o=jn();(!o||!Rn(o,e,t,n,r,...i))&&Ln(r,...i)}function Ln(e,...t){const n=Mn();n?"messageText"in e?Y.addConfigDiagnostic(zp(P.configFile,n.name,e)):Y.addConfigDiagnostic(Jp(P.configFile,n.name,e,...t)):"messageText"in e?Y.addConfigDiagnostic(Yx(e)):Y.addConfigDiagnostic(Qx(e,...t))}function jn(){if(void 0===Ce){const e=Mn();Ce=e&&tt(e.initializer,uF)||!1}return Ce||void 0}function Mn(){return void 0===we&&(we=Vf(Wf(P.configFile),"compilerOptions",st)||!1),we||void 0}function Rn(e,t,n,r,i,...o){let a=!1;return Vf(e,n,e=>{"messageText"in i?Y.addConfigDiagnostic(zp(P.configFile,t?e.name:e.initializer,i)):Y.addConfigDiagnostic(Jp(P.configFile,t?e.name:e.initializer,i,...o)),a=!0},r),a}function Bn(e,t){Te.set(Tt(e),!0),Y.addConfigDiagnostic(t)}function Jn(e,t){return 0===Zo(e,t,xe,!me.useCaseSensitiveFileNames())}function zn(){return me.getSymlinkCache?me.getSymlinkCache():(V||(V=Qk(xe,Sn)),U&&!V.hasProcessedResolutions()&&V.setSymlinksFromResolutions(lt,ut,ee),V)}function qn(e,t){return pV(e,t,hn(e))}function Un(e,t){return qn(e,HV(e,t))}function Vn(e){return BV(e,hn(e))}function Wn(e){return MV(e,hn(e))}function $n(e){return jV(e,hn(e))}function Kn(e,t){return e.resolutionMode||Vn(t)}}function jV(e,t){const n=vk(t);return!(100<=n&&n<=199||200===n)&&MV(e,t)<5}function MV(e,t){return RV(e,t)??vk(t)}function RV(e,t){var n,r;const i=vk(t);return 100<=i&&i<=199?e.impliedNodeFormat:1!==e.impliedNodeFormat||"commonjs"!==(null==(n=e.packageJsonScope)?void 0:n.contents.packageJsonContent.type)&&!So(e.fileName,[".cjs",".cts"])?99!==e.impliedNodeFormat||"module"!==(null==(r=e.packageJsonScope)?void 0:r.contents.packageJsonContent.type)&&!So(e.fileName,[".mjs",".mts"])?void 0:99:1}function BV(e,t){return fk(t)?RV(e,t):void 0}var JV={diagnostics:l,sourceMaps:void 0,emittedFiles:void 0,emitSkipped:!0};function zV(e,t,n,r){const i=e.getCompilerOptions();if(i.noEmit)return t?JV:e.emitBuildInfo(n,r);if(!i.noEmitOnError)return;let o,a=[...e.getOptionsDiagnostics(r),...e.getSyntacticDiagnostics(t,r),...e.getGlobalDiagnostics(r),...e.getSemanticDiagnostics(t,r)];if(0===a.length&&Dk(e.getCompilerOptions())&&(a=e.getDeclarationDiagnostics(void 0,r)),a.length){if(!t){const t=e.emitBuildInfo(n,r);t.diagnostics&&(a=[...a,...t.diagnostics]),o=t.emittedFiles}return{diagnostics:a,sourceMaps:void 0,emittedFiles:o,emitSkipped:!0}}}function qV(e,t){return N(e,e=>!e.skippedOn||!t[e.skippedOn])}function UV(e,t=e){return{fileExists:e=>t.fileExists(e),readDirectory:(e,n,r,i,o)=>(un.assertIsDefined(t.readDirectory,"'CompilerHost.readDirectory' must be implemented to correctly process 'projectReferences'"),t.readDirectory(e,n,r,i,o)),readFile:e=>t.readFile(e),directoryExists:We(t,t.directoryExists),getDirectories:We(t,t.getDirectories),realpath:We(t,t.realpath),useCaseSensitiveFileNames:e.useCaseSensitiveFileNames(),getCurrentDirectory:()=>e.getCurrentDirectory(),onUnRecoverableConfigFileDiagnostic:e.onUnRecoverableConfigFileDiagnostic||at,trace:e.trace?t=>e.trace(t):void 0}}function VV(e){return $$(e.path)}function WV(e,{extension:t},{isDeclarationFile:n}){switch(t){case".ts":case".d.ts":case".mts":case".d.mts":case".cts":case".d.cts":return;case".tsx":return r();case".jsx":return r()||i();case".js":case".mjs":case".cjs":return i();case".json":return Nk(e)?void 0:_a.Module_0_was_resolved_to_1_but_resolveJsonModule_is_not_used;default:return n||e.allowArbitraryExtensions?void 0:_a.Module_0_was_resolved_to_1_but_allowArbitraryExtensions_is_not_set}function r(){return e.jsx?void 0:_a.Module_0_was_resolved_to_1_but_jsx_is_not_set}function i(){return Ak(e)||!Jk(e,"noImplicitAny")?void 0:_a.Could_not_find_a_declaration_file_for_module_0_1_implicitly_has_an_any_type}}function $V({imports:e,moduleAugmentations:t}){const n=e.map(e=>e);for(const e of t)11===e.kind&&n.push(e);return n}function HV({imports:e,moduleAugmentations:t},n){if(nn,getFileReasons:()=>c,getCommonSourceDirectory:()=>r,getConfigDiagnostics:()=>i,getLazyConfigDiagnostics:()=>o,getCombinedDiagnostics:e=>t||(t=_y(),null==i||i.getDiagnostics().forEach(e=>t.add(e)),null==n||n.forEach(n=>{switch(n.kind){case 1:return t.add(_(e,n.file&&e.getSourceFileByPath(n.file),n.fileProcessingReason,n.diagnostic,n.args||l));case 0:return t.add(function(e,{reason:t}){const{file:n,pos:r,end:i}=FV(e,t),o=PC(n.libReferenceDirectives[t.index]),a=Lt(Rt(Xt(o,"lib."),".d.ts"),NO,st);return Gx(n,un.checkDefined(r),un.checkDefined(i)-r,a?_a.Cannot_find_lib_definition_for_0_Did_you_mean_1:_a.Cannot_find_lib_definition_for_0,o,a)}(e,n));case 2:return n.diagnostics.forEach(e=>t.add(e));default:un.assertNever(n)}}),null==o||o.forEach(({file:n,diagnostic:r,args:i})=>t.add(_(e,n,void 0,r,i))),a=void 0,s=void 0,t)};function _(t,n,r,i,o){let _,u,d,p,f,m;const g=n&&c.get(n.path);let h=NV(r)?r:void 0,y=n&&(null==a?void 0:a.get(n.path));y?(y.fileIncludeReasonDetails?(_=new Set(g),null==g||g.forEach(k)):null==g||g.forEach(x),f=y.redirectInfo):(null==g||g.forEach(x),f=n&&v$(n,t.getCompilerOptionsForFile(n))),r&&x(r);const v=(null==_?void 0:_.size)!==(null==g?void 0:g.length);h&&1===(null==_?void 0:_.size)&&(_=void 0),_&&y&&(y.details&&!v?m=Zx(y.details,i,...o??l):y.fileIncludeReasonDetails&&(v?u=S()?ie(y.fileIncludeReasonDetails.next.slice(0,g.length),u[0]):[...y.fileIncludeReasonDetails.next,u[0]]:S()?u=y.fileIncludeReasonDetails.next.slice(0,g.length):p=y.fileIncludeReasonDetails)),m||(p||(p=_&&Zx(u,_a.The_file_is_in_the_program_because_Colon)),m=Zx(f?p?[p,...f]:f:p,i,...o||l)),n&&(y?(!y.fileIncludeReasonDetails||!v&&p)&&(y.fileIncludeReasonDetails=p):(a??(a=new Map)).set(n.path,y={fileIncludeReasonDetails:p,redirectInfo:f}),y.details||v||(y.details=m.next));const b=h&&FV(t,h);return b&&DV(b)?Vp(b.file,b.pos,b.end-b.pos,m,d):Yx(m,d);function x(e){(null==_?void 0:_.has(e))||((_??(_=new Set)).add(e),(u??(u=[])).push(k$(t,e)),k(e))}function k(n){!h&&NV(n)?h=n:h!==n&&(d=ie(d,function(t,n){let r=null==s?void 0:s.get(n);return void 0===r&&(s??(s=new Map)).set(n,r=function(t,n){if(NV(n)){const e=FV(t,n);let r;switch(n.kind){case 3:r=_a.File_is_included_via_import_here;break;case 4:r=_a.File_is_included_via_reference_here;break;case 5:r=_a.File_is_included_via_type_library_reference_here;break;case 7:r=_a.File_is_included_via_library_reference_here;break;default:un.assertNever(n)}return DV(e)?Gx(e.file,e.pos,e.end-e.pos,r):void 0}const r=t.getCurrentDirectory(),i=t.getRootFileNames(),o=t.getCompilerOptions();if(!o.configFile)return;let a,s;switch(n.kind){case 0:if(!o.configFile.configFileSpecs)return;const c=Bo(i[n.index],r),l=b$(t,c);if(l){a=$f(o.configFile,"files",l),s=_a.File_is_matched_by_files_list_specified_here;break}const _=x$(t,c);if(!_||!Ze(_))return;a=$f(o.configFile,"include",_),s=_a.File_is_matched_by_include_pattern_specified_here;break;case 1:case 2:const u=t.getResolvedProjectReferences(),d=t.getProjectReferences(),p=un.checkDefined(null==u?void 0:u[n.index]),f=OC(d,u,(e,t,n)=>e===p?{sourceFile:(null==t?void 0:t.sourceFile)||o.configFile,index:n}:void 0);if(!f)return;const{sourceFile:m,index:g}=f,h=Hf(m,"references",e=>_F(e.initializer)?e.initializer:void 0);return h&&h.elements.length>g?Jp(m,h.elements[g],2===n.kind?_a.File_is_output_from_referenced_project_specified_here:_a.File_is_source_from_referenced_project_specified_here):void 0;case 8:if(!o.types)return;a=LC(e(),"types",n.typeReference),s=_a.File_is_entry_point_of_type_library_specified_here;break;case 6:if(void 0!==n.index){a=LC(e(),"lib",o.lib[n.index]),s=_a.File_is_library_specified_here;break}const y=zk(yk(o));a=y?jC(e(),"target",y):void 0,s=_a.File_is_default_library_for_target_specified_here;break;default:un.assertNever(n)}return a&&Jp(o.configFile,a,s)}(t,n)??!1),r||void 0}(t,n)))}function S(){var e;return(null==(e=y.fileIncludeReasonDetails.next)?void 0:e.length)!==(null==g?void 0:g.length)}}}function GV(e,t,n,r,i,o){const a=[],{emitSkipped:s,diagnostics:c}=e.emit(t,function(e,t,n){a.push({name:e,writeByteOrderMark:n,text:t})},r,n,i,o);return{outputFiles:a,emitSkipped:s,diagnostics:c}}var XV,QV=(e=>(e[e.ComputedDts=0]="ComputedDts",e[e.StoredSignatureAtEmit=1]="StoredSignatureAtEmit",e[e.UsedVersion=2]="UsedVersion",e))(QV||{});(e=>{function t(){return function(e,t,r){const i={getKeys:e=>t.get(e),getValues:t=>e.get(t),keys:()=>e.keys(),size:()=>e.size,deleteKey:i=>{(r||(r=new Set)).add(i);const o=e.get(i);return!!o&&(o.forEach(e=>n(t,e,i)),e.delete(i),!0)},set:(o,a)=>{null==r||r.delete(o);const s=e.get(o);return e.set(o,a),null==s||s.forEach(e=>{a.has(e)||n(t,e,o)}),a.forEach(e=>{(null==s?void 0:s.has(e))||function(e,t,n){let r=e.get(t);r||(r=new Set,e.set(t,r)),r.add(n)}(t,e,o)}),i}};return i}(new Map,new Map,void 0)}function n(e,t,n){const r=e.get(t);return!!(null==r?void 0:r.delete(n))&&(r.size||e.delete(t),!0)}function r(e,t){const n=e.getSymbolAtLocation(t);return n&&function(e){return B(e.declarations,e=>{var t;return null==(t=vd(e))?void 0:t.resolvedPath})}(n)}function i(e,t,n,r){var i;return Uo((null==(i=e.getRedirectFromSourceFile(t))?void 0:i.outputDts)||t,n,r)}function o(e,t,n){let o;if(t.imports&&t.imports.length>0){const n=e.getTypeChecker();for(const e of t.imports){const t=r(n,e);null==t||t.forEach(c)}}const a=Do(t.resolvedPath);if(t.referencedFiles&&t.referencedFiles.length>0)for(const r of t.referencedFiles)c(i(e,r.fileName,a,n));if(e.forEachResolvedTypeReferenceDirective(({resolvedTypeReferenceDirective:t})=>{if(!t)return;const r=t.resolvedFileName;c(i(e,r,a,n))},t),t.moduleAugmentations.length){const n=e.getTypeChecker();for(const e of t.moduleAugmentations){if(!UN(e))continue;const t=n.getSymbolAtLocation(e);t&&s(t)}}for(const t of e.getTypeChecker().getAmbientModules())t.declarations&&t.declarations.length>1&&s(t);return o;function s(e){if(e.declarations)for(const n of e.declarations){const e=vd(n);e&&e!==t&&c(e.resolvedPath)}}function c(e){(o||(o=new Set)).add(e)}}function a(e,t){return t&&!t.referencedMap==!e}function s(e){return 0===e.module||e.outFile?void 0:t()}function c(e,t,n,r,i){const o=t.getSourceFileByPath(n);return o?u(e,t,o,r,i)?(e.referencedMap?h:g)(e,t,o,r,i):[o]:l}function _(e,t,n,r,i){e.emit(t,(n,o,a,s,c,l)=>{un.assert(uO(n),`File extension for signature expected to be dts: Got:: ${n}`),i(FW(e,t,o,r,l),c)},n,2,void 0,!0)}function u(e,t,n,r,i,o=e.useFileVersionAsSignature){var a;if(null==(a=e.hasCalledUpdateShapeSignature)?void 0:a.has(n.resolvedPath))return!1;const s=e.fileInfos.get(n.resolvedPath),c=s.signature;let l;return n.isDeclarationFile||o||_(t,n,r,i,t=>{l=t,i.storeSignatureInfo&&(e.signatureInfo??(e.signatureInfo=new Map)).set(n.resolvedPath,0)}),void 0===l&&(l=n.version,i.storeSignatureInfo&&(e.signatureInfo??(e.signatureInfo=new Map)).set(n.resolvedPath,2)),(e.oldSignatures||(e.oldSignatures=new Map)).set(n.resolvedPath,c||!1),(e.hasCalledUpdateShapeSignature||(e.hasCalledUpdateShapeSignature=new Set)).add(n.resolvedPath),s.signature=l,l!==c}function d(e,t){if(!e.allFileNames){const n=t.getSourceFiles();e.allFileNames=n===l?l:n.map(e=>e.fileName)}return e.allFileNames}function p(e,t){const n=e.referencedMap.getKeys(t);return n?Oe(n.keys()):[]}function f(e){return function(e){return $(e.moduleAugmentations,e=>pp(e.parent))}(e)||!Zp(e)&&!ef(e)&&!function(e){for(const t of e.statements)if(!lp(t))return!1;return!0}(e)}function m(e,t,n){if(e.allFilesExcludingDefaultLibraryFile)return e.allFilesExcludingDefaultLibraryFile;let r;n&&i(n);for(const e of t.getSourceFiles())e!==n&&i(e);return e.allFilesExcludingDefaultLibraryFile=r||l,e.allFilesExcludingDefaultLibraryFile;function i(e){t.isSourceFileDefaultLibrary(e)||(r||(r=[])).push(e)}}function g(e,t,n){const r=t.getCompilerOptions();return r&&r.outFile?[n]:m(e,t,n)}function h(e,t,n,r,i){if(f(n))return m(e,t,n);const o=t.getCompilerOptions();if(o&&(kk(o)||o.outFile))return[n];const a=new Map;a.set(n.resolvedPath,n);const s=p(e,n.resolvedPath);for(;s.length>0;){const n=s.pop();if(!a.has(n)){const o=t.getSourceFileByPath(n);a.set(n,o),o&&u(e,t,o,r,i)&&s.push(...p(e,o.resolvedPath))}}return Oe(J(a.values(),e=>e))}e.createManyToManyPathMap=t,e.canReuseOldState=a,e.createReferencedMap=s,e.create=function(e,t,n){var r,i;const c=new Map,l=e.getCompilerOptions(),_=s(l),u=a(_,t);e.getTypeChecker();for(const n of e.getSourceFiles()){const a=un.checkDefined(n.version,"Program intended to be used with Builder should have source files with versions set"),s=u?null==(r=t.oldSignatures)?void 0:r.get(n.resolvedPath):void 0,d=void 0===s?u?null==(i=t.fileInfos.get(n.resolvedPath))?void 0:i.signature:void 0:s||void 0;if(_){const t=o(e,n,e.getCanonicalFileName);t&&_.set(n.resolvedPath,t)}c.set(n.resolvedPath,{version:a,signature:d,affectsGlobalScope:l.outFile?void 0:f(n)||void 0,impliedFormat:n.impliedNodeFormat})}return{fileInfos:c,referencedMap:_,useFileVersionAsSignature:!n&&!u}},e.releaseCache=function(e){e.allFilesExcludingDefaultLibraryFile=void 0,e.allFileNames=void 0},e.getFilesAffectedBy=function(e,t,n,r,i){var o;const a=c(e,t,n,r,i);return null==(o=e.oldSignatures)||o.clear(),a},e.getFilesAffectedByWithOldState=c,e.updateSignatureOfFile=function(e,t,n){e.fileInfos.get(n).signature=t,(e.hasCalledUpdateShapeSignature||(e.hasCalledUpdateShapeSignature=new Set)).add(n)},e.computeDtsSignature=_,e.updateShapeSignature=u,e.getAllDependencies=function(e,t,n){if(t.getCompilerOptions().outFile)return d(e,t);if(!e.referencedMap||f(n))return d(e,t);const r=new Set,i=[n.resolvedPath];for(;i.length;){const t=i.pop();if(!r.has(t)){r.add(t);const n=e.referencedMap.getValues(t);if(n)for(const e of n.keys())i.push(e)}}return Oe(J(r.keys(),e=>{var n;return(null==(n=t.getSourceFileByPath(e))?void 0:n.fileName)??e}))},e.getReferencedByPaths=p,e.getAllFilesExcludingDefaultLibraryFile=m})(XV||(XV={}));var YV=(e=>(e[e.None=0]="None",e[e.Js=1]="Js",e[e.JsMap=2]="JsMap",e[e.JsInlineMap=4]="JsInlineMap",e[e.DtsErrors=8]="DtsErrors",e[e.DtsEmit=16]="DtsEmit",e[e.DtsMap=32]="DtsMap",e[e.Dts=24]="Dts",e[e.AllJs=7]="AllJs",e[e.AllDtsEmit=48]="AllDtsEmit",e[e.AllDts=56]="AllDts",e[e.All=63]="All",e))(YV||{});function ZV(e){return void 0!==e.program}function eW(e){let t=1;return e.sourceMap&&(t|=2),e.inlineSourceMap&&(t|=4),Dk(e)&&(t|=24),e.declarationMap&&(t|=32),e.emitDeclarationOnly&&(t&=56),t}function tW(e,t){const n=t&&(et(t)?t:eW(t)),r=et(e)?e:eW(e);if(n===r)return 0;if(!n||!r)return r;const i=n^r;let o=0;return 7&i&&(o=7&r),8&i&&(o|=8&r),48&i&&(o|=48&r),o}function nW(e,t,n){return!!e.declarationMap==!!t.declarationMap?n:Ze(n)?[n]:n[0]}function rW(e,t){return e.length?A(e,e=>{if(Ze(e.messageText))return e;const n=iW(e.messageText,e.file,t,e=>{var t;return null==(t=e.repopulateInfo)?void 0:t.call(e)});return n===e.messageText?e:{...e,messageText:n}}):e}function iW(e,t,n,r){const i=r(e);if(!0===i)return{...pd(t),next:oW(e.next,t,n,r)};if(i)return{...dd(t,n,i.moduleReference,i.mode,i.packageName||i.moduleReference),next:oW(e.next,t,n,r)};const o=oW(e.next,t,n,r);return o===e.next?e:{...e,next:o}}function oW(e,t,n,r){return A(e,e=>iW(e,t,n,r))}function aW(e,t,n){if(!e.length)return l;let r;return e.map(e=>{const r=sW(e,t,n,i);r.reportsUnnecessary=e.reportsUnnecessary,r.reportsDeprecated=e.reportDeprecated,r.source=e.source,r.skippedOn=e.skippedOn;const{relatedInformation:o}=e;return r.relatedInformation=o?o.length?o.map(e=>sW(e,t,n,i)):[]:void 0,r});function i(e){return r??(r=Do(Bo(Gq(n.getCompilerOptions()),n.getCurrentDirectory()))),Uo(e,r,n.getCanonicalFileName)}}function sW(e,t,n,r){const{file:i}=e,o=!1!==i?n.getSourceFileByPath(i?r(i):t):void 0;return{...e,file:o,messageText:Ze(e.messageText)?e.messageText:iW(e.messageText,o,n,e=>e.info)}}function cW(e,t){un.assert(!t||!e.affectedFiles||e.affectedFiles[e.affectedFilesIndex-1]!==t||!e.semanticDiagnosticsPerFile.has(t.resolvedPath))}function lW(e,t,n){for(var r;;){const{affectedFiles:i}=e;if(i){const o=e.seenAffectedFiles;let a=e.affectedFilesIndex;for(;a{const i=n?55&t:7&t;i?e.affectedFilesPendingEmit.set(r,i):e.affectedFilesPendingEmit.delete(r)}),e.programEmitPending)){const t=n?55&e.programEmitPending:7&e.programEmitPending;e.programEmitPending=t||void 0}}function uW(e,t,n,r){let i=tW(e,t);return n&&(i&=56),r&&(i&=8),i}function dW(e){return e?8:56}function pW(e){if(!e.cleanedDiagnosticsOfLibFiles){e.cleanedDiagnosticsOfLibFiles=!0;const t=e.program.getCompilerOptions();d(e.program.getSourceFiles(),n=>e.program.isSourceFileDefaultLibrary(n)&&!uT(n,t,e.program)&&gW(e,n.resolvedPath))}}function fW(e,t,n,r){if(gW(e,t.resolvedPath),e.allFilesExcludingDefaultLibraryFile===e.affectedFiles)return pW(e),void XV.updateShapeSignature(e,e.program,t,n,r);e.compilerOptions.assumeChangesOnlyAffectDirectDependencies||function(e,t,n,r){var i,o;if(!e.referencedMap||!e.changedFilesSet.has(t.resolvedPath))return;if(!hW(e,t.resolvedPath))return;if(kk(e.compilerOptions)){const i=new Map;i.set(t.resolvedPath,!0);const o=XV.getReferencedByPaths(e,t.resolvedPath);for(;o.length>0;){const t=o.pop();if(!i.has(t)){if(i.set(t,!0),yW(e,t,!1,n,r))return;if(mW(e,t,!1,n,r),hW(e,t)){const n=e.program.getSourceFileByPath(t);o.push(...XV.getReferencedByPaths(e,n.resolvedPath))}}}}const a=new Set,s=!!(null==(i=t.symbol)?void 0:i.exports)&&!!rd(t.symbol.exports,n=>{if(128&n.flags)return!0;const r=ox(n,e.program.getTypeChecker());return r!==n&&!!(128&r.flags)&&$(r.declarations,e=>vd(e)===t)});null==(o=e.referencedMap.getKeys(t.resolvedPath))||o.forEach(t=>{if(yW(e,t,s,n,r))return!0;const i=e.referencedMap.getKeys(t);return i&&id(i,t=>vW(e,t,s,a,n,r))})}(e,t,n,r)}function mW(e,t,n,r,i){if(gW(e,t),!e.changedFilesSet.has(t)){const o=e.program.getSourceFileByPath(t);o&&(XV.updateShapeSignature(e,e.program,o,r,i,!0),n?PW(e,t,eW(e.compilerOptions)):Dk(e.compilerOptions)&&PW(e,t,e.compilerOptions.declarationMap?56:24))}}function gW(e,t){return!e.semanticDiagnosticsFromOldState||(e.semanticDiagnosticsFromOldState.delete(t),e.semanticDiagnosticsPerFile.delete(t),!e.semanticDiagnosticsFromOldState.size)}function hW(e,t){const n=un.checkDefined(e.oldSignatures).get(t)||void 0;return un.checkDefined(e.fileInfos.get(t)).signature!==n}function yW(e,t,n,r,i){var o;return!!(null==(o=e.fileInfos.get(t))?void 0:o.affectsGlobalScope)&&(XV.getAllFilesExcludingDefaultLibraryFile(e,e.program,void 0).forEach(t=>mW(e,t.resolvedPath,n,r,i)),pW(e),!0)}function vW(e,t,n,r,i,o){var a;if(q(r,t)){if(yW(e,t,n,i,o))return!0;mW(e,t,n,i,o),null==(a=e.referencedMap.getKeys(t))||a.forEach(t=>vW(e,t,n,r,i,o))}}function bW(e,t,n,r){return e.compilerOptions.noCheck?l:K(function(e,t,n,r){r??(r=e.semanticDiagnosticsPerFile);const i=t.resolvedPath,o=r.get(i);if(o)return qV(o,e.compilerOptions);const a=e.program.getBindAndCheckDiagnostics(t,n);return r.set(i,a),e.buildInfoEmitPending=!0,qV(a,e.compilerOptions)}(e,t,n,r),e.program.getProgramDiagnostics(t))}function xW(e){var t;return!!(null==(t=e.options)?void 0:t.outFile)}function kW(e){return!!e.fileNames}function SW(e){void 0===e.hasErrors&&(Ek(e.compilerOptions)?e.hasErrors=!$(e.program.getSourceFiles(),t=>{var n,r;const i=e.semanticDiagnosticsPerFile.get(t.resolvedPath);return void 0===i||!!i.length||!!(null==(r=null==(n=e.emitDiagnosticsPerFile)?void 0:n.get(t.resolvedPath))?void 0:r.length)})&&(TW(e)||$(e.program.getSourceFiles(),t=>!!e.program.getProgramDiagnostics(t).length)):e.hasErrors=$(e.program.getSourceFiles(),t=>{var n,r;const i=e.semanticDiagnosticsPerFile.get(t.resolvedPath);return!!(null==i?void 0:i.length)||!!(null==(r=null==(n=e.emitDiagnosticsPerFile)?void 0:n.get(t.resolvedPath))?void 0:r.length)})||TW(e))}function TW(e){return!!(e.program.getConfigFileParsingDiagnostics().length||e.program.getSyntacticDiagnostics().length||e.program.getOptionsDiagnostics().length||e.program.getGlobalDiagnostics().length)}function CW(e){return SW(e),e.buildInfoEmitPending??(e.buildInfoEmitPending=!!e.hasErrorsFromOldState!=!!e.hasErrors)}var wW=(e=>(e[e.SemanticDiagnosticsBuilderProgram=0]="SemanticDiagnosticsBuilderProgram",e[e.EmitAndSemanticDiagnosticsBuilderProgram=1]="EmitAndSemanticDiagnosticsBuilderProgram",e))(wW||{});function NW(e,t,n,r,i,o){let a,s,c;return void 0===e?(un.assert(void 0===t),a=n,c=r,un.assert(!!c),s=c.getProgram()):Qe(e)?(c=r,s=LV({rootNames:e,options:t,host:n,oldProgram:c&&c.getProgramOrUndefined(),configFileParsingDiagnostics:i,projectReferences:o}),a=n):(s=e,a=t,c=n,i=r),{host:a,newProgram:s,oldProgram:c,configFileParsingDiagnostics:i||l}}function DW(e,t){return void 0!==(null==t?void 0:t.sourceMapUrlPos)?e.substring(0,t.sourceMapUrlPos):e}function FW(e,t,n,r,i){var o;let a;return n=DW(n,i),(null==(o=null==i?void 0:i.diagnostics)?void 0:o.length)&&(n+=i.diagnostics.map(n=>`${function(n){return n.file.resolvedPath===t.resolvedPath?`(${n.start},${n.length})`:(void 0===a&&(a=Do(t.resolvedPath)),`${$o(ra(a,n.file.resolvedPath,e.getCanonicalFileName))}(${n.start},${n.length})`)}(n)}${si[n.category]}${n.code}: ${s(n.messageText)}`).join("\n")),(r.createHash??Mi)(n);function s(e){return Ze(e)?e:void 0===e?"":e.next?e.messageText+e.next.map(s).join("\n"):e.messageText}}function EW(e,{newProgram:t,host:n,oldProgram:r,configFileParsingDiagnostics:i}){let o=r&&r.state;if(o&&t===o.program&&i===t.getConfigFileParsingDiagnostics())return t=void 0,o=void 0,r;const a=function(e,t){var n,r;const i=XV.create(e,t,!1);i.program=e;const o=e.getCompilerOptions();i.compilerOptions=o;const a=o.outFile;i.semanticDiagnosticsPerFile=new Map,a&&o.composite&&(null==t?void 0:t.outSignature)&&a===t.compilerOptions.outFile&&(i.outSignature=t.outSignature&&nW(o,t.compilerOptions,t.outSignature)),i.changedFilesSet=new Set,i.latestChangedDtsFile=o.composite?null==t?void 0:t.latestChangedDtsFile:void 0,i.checkPending=!!i.compilerOptions.noCheck||void 0;const s=XV.canReuseOldState(i.referencedMap,t),c=s?t.compilerOptions:void 0;let l=s&&!Uk(o,c);const _=o.composite&&(null==t?void 0:t.emitSignatures)&&!a&&!Wk(o,t.compilerOptions);let u=!0;s?(null==(n=t.changedFilesSet)||n.forEach(e=>i.changedFilesSet.add(e)),!a&&(null==(r=t.affectedFilesPendingEmit)?void 0:r.size)&&(i.affectedFilesPendingEmit=new Map(t.affectedFilesPendingEmit),i.seenAffectedFiles=new Set),i.programEmitPending=t.programEmitPending,a&&i.changedFilesSet.size&&(l=!1,u=!1),i.hasErrorsFromOldState=t.hasErrors):i.buildInfoEmitPending=Ek(o);const d=i.referencedMap,p=s?t.referencedMap:void 0,f=l&&!o.skipLibCheck==!c.skipLibCheck,m=f&&!o.skipDefaultLibCheck==!c.skipDefaultLibCheck;if(i.fileInfos.forEach((n,r)=>{var a;let c,h;if(!s||!(c=t.fileInfos.get(r))||c.version!==n.version||c.impliedFormat!==n.impliedFormat||(y=h=d&&d.getValues(r))!==(v=p&&p.getValues(r))&&(void 0===y||void 0===v||y.size!==v.size||id(y,e=>!v.has(e)))||h&&id(h,e=>!i.fileInfos.has(e)&&t.fileInfos.has(e)))g(r);else{const n=e.getSourceFileByPath(r),o=u?null==(a=t.emitDiagnosticsPerFile)?void 0:a.get(r):void 0;if(o&&(i.emitDiagnosticsPerFile??(i.emitDiagnosticsPerFile=new Map)).set(r,t.hasReusableDiagnostic?aW(o,r,e):rW(o,e)),l){if(n.isDeclarationFile&&!f)return;if(n.hasNoDefaultLib&&!m)return;const o=t.semanticDiagnosticsPerFile.get(r);o&&(i.semanticDiagnosticsPerFile.set(r,t.hasReusableDiagnostic?aW(o,r,e):rW(o,e)),(i.semanticDiagnosticsFromOldState??(i.semanticDiagnosticsFromOldState=new Set)).add(r))}}var y,v;if(_){const e=t.emitSignatures.get(r);e&&(i.emitSignatures??(i.emitSignatures=new Map)).set(r,nW(o,t.compilerOptions,e))}}),s&&rd(t.fileInfos,(e,t)=>!(i.fileInfos.has(t)||!e.affectsGlobalScope&&(i.buildInfoEmitPending=!0,!a))))XV.getAllFilesExcludingDefaultLibraryFile(i,e,void 0).forEach(e=>g(e.resolvedPath));else if(c){const t=Vk(o,c)?eW(o):tW(o,c);0!==t&&(a?i.changedFilesSet.size||(i.programEmitPending=i.programEmitPending?i.programEmitPending|t:t):(e.getSourceFiles().forEach(e=>{i.changedFilesSet.has(e.resolvedPath)||PW(i,e.resolvedPath,t)}),un.assert(!i.seenAffectedFiles||!i.seenAffectedFiles.size),i.seenAffectedFiles=i.seenAffectedFiles||new Set),i.buildInfoEmitPending=!0)}return s&&i.semanticDiagnosticsPerFile.size!==i.fileInfos.size&&t.checkPending!==i.checkPending&&(i.buildInfoEmitPending=!0),i;function g(e){i.changedFilesSet.add(e),a&&(l=!1,u=!1,i.semanticDiagnosticsFromOldState=void 0,i.semanticDiagnosticsPerFile.clear(),i.emitDiagnosticsPerFile=void 0),i.buildInfoEmitPending=!0,i.programEmitPending=void 0}}(t,o);t.getBuildInfo=()=>function(e){var t,n;const r=e.program.getCurrentDirectory(),i=Do(Bo(Gq(e.compilerOptions),r)),o=e.latestChangedDtsFile?b(e.latestChangedDtsFile):void 0,a=[],c=new Map,_=new Set(e.program.getRootFileNames().map(t=>Uo(t,r,e.program.getCanonicalFileName)));if(SW(e),!Ek(e.compilerOptions))return{root:Oe(_,e=>x(e)),errors:!!e.hasErrors||void 0,checkPending:e.checkPending,version:s};const u=[];if(e.compilerOptions.outFile){const t=Oe(e.fileInfos.entries(),([e,t])=>(T(e,k(e)),t.impliedFormat?{version:t.version,impliedFormat:t.impliedFormat,signature:void 0,affectsGlobalScope:void 0}:t.version));return{fileNames:a,fileInfos:t,root:u,resolvedRoot:C(),options:w(e.compilerOptions),semanticDiagnosticsPerFile:e.changedFilesSet.size?void 0:D(),emitDiagnosticsPerFile:F(),changeFileSet:O(),outSignature:e.outSignature,latestChangedDtsFile:o,pendingEmit:e.programEmitPending?e.programEmitPending!==eW(e.compilerOptions)&&e.programEmitPending:void 0,errors:!!e.hasErrors||void 0,checkPending:e.checkPending,version:s}}let p,f,m;const g=Oe(e.fileInfos.entries(),([t,n])=>{var r,i;const o=k(t);T(t,o),un.assert(a[o-1]===x(t));const s=null==(r=e.oldSignatures)?void 0:r.get(t),c=void 0!==s?s||void 0:n.signature;if(e.compilerOptions.composite){const n=e.program.getSourceFileByPath(t);if(!ef(n)&&Xy(n,e.program)){const n=null==(i=e.emitSignatures)?void 0:i.get(t);n!==c&&(m=ie(m,void 0===n?o:[o,Ze(n)||n[0]!==c?n:l]))}}return n.version===c?n.affectsGlobalScope||n.impliedFormat?{version:n.version,signature:void 0,affectsGlobalScope:n.affectsGlobalScope,impliedFormat:n.impliedFormat}:n.version:void 0!==c?void 0===s?n:{version:n.version,signature:c,affectsGlobalScope:n.affectsGlobalScope,impliedFormat:n.impliedFormat}:{version:n.version,signature:!1,affectsGlobalScope:n.affectsGlobalScope,impliedFormat:n.impliedFormat}});let h;(null==(t=e.referencedMap)?void 0:t.size())&&(h=Oe(e.referencedMap.keys()).sort(Ct).map(t=>[k(t),S(e.referencedMap.getValues(t))]));const y=D();let v;if(null==(n=e.affectedFilesPendingEmit)?void 0:n.size){const t=eW(e.compilerOptions),n=new Set;for(const r of Oe(e.affectedFilesPendingEmit.keys()).sort(Ct))if(q(n,r)){const n=e.program.getSourceFileByPath(r);if(!n||!Xy(n,e.program))continue;const i=k(r),o=e.affectedFilesPendingEmit.get(r);v=ie(v,o===t?i:24===o?[i]:[i,o])}}return{fileNames:a,fileIdsList:p,fileInfos:g,root:u,resolvedRoot:C(),options:w(e.compilerOptions),referencedMap:h,semanticDiagnosticsPerFile:y,emitDiagnosticsPerFile:F(),changeFileSet:O(),affectedFilesPendingEmit:v,emitSignatures:m,latestChangedDtsFile:o,errors:!!e.hasErrors||void 0,checkPending:e.checkPending,version:s};function b(e){return x(Bo(e,r))}function x(t){return $o(ra(i,t,e.program.getCanonicalFileName))}function k(e){let t=c.get(e);return void 0===t&&(a.push(x(e)),c.set(e,t=a.length)),t}function S(e){const t=Oe(e.keys(),k).sort(vt),n=t.join();let r=null==f?void 0:f.get(n);return void 0===r&&(p=ie(p,t),(f??(f=new Map)).set(n,r=p.length)),r}function T(t,n){const r=e.program.getSourceFile(t);if(!e.program.getFileIncludeReasons().get(r.path).some(e=>0===e.kind))return;if(!u.length)return u.push(n);const i=u[u.length-1],o=Qe(i);if(o&&i[1]===n-1)return i[1]=n;if(o||1===u.length||i!==n-1)return u.push(n);const a=u[u.length-2];return et(a)&&a===i-1?(u[u.length-2]=[a,n],u.length=u.length-1):u.push(n)}function C(){let t;return _.forEach(n=>{const r=e.program.getSourceFileByPath(n);r&&n!==r.resolvedPath&&(t=ie(t,[k(r.resolvedPath),k(n)]))}),t}function w(e){let t;const{optionsNameMap:n}=XO();for(const r of Ee(e).sort(Ct)){const i=n.get(r.toLowerCase());(null==i?void 0:i.affectsBuildInfo)&&((t||(t={}))[r]=N(i,e[r]))}return t}function N(e,t){if(e)if(un.assert("listOrElement"!==e.type),"list"===e.type){const n=t;if(e.element.isFilePath&&n.length)return n.map(b)}else if(e.isFilePath)return b(t);return t}function D(){let t;return e.fileInfos.forEach((n,r)=>{const i=e.semanticDiagnosticsPerFile.get(r);i?i.length&&(t=ie(t,[k(r),E(i,r)])):e.changedFilesSet.has(r)||(t=ie(t,k(r)))}),t}function F(){var t;let n;if(!(null==(t=e.emitDiagnosticsPerFile)?void 0:t.size))return n;for(const t of Oe(e.emitDiagnosticsPerFile.keys()).sort(Ct)){const r=e.emitDiagnosticsPerFile.get(t);n=ie(n,[k(t),E(r,t)])}return n}function E(e,t){return un.assert(!!e.length),e.map(e=>{const n=P(e,t);n.reportsUnnecessary=e.reportsUnnecessary,n.reportDeprecated=e.reportsDeprecated,n.source=e.source,n.skippedOn=e.skippedOn;const{relatedInformation:r}=e;return n.relatedInformation=r?r.length?r.map(e=>P(e,t)):[]:void 0,n})}function P(e,t){const{file:n}=e;return{...e,file:!!n&&(n.resolvedPath===t?void 0:x(n.resolvedPath)),messageText:Ze(e.messageText)?e.messageText:A(e.messageText)}}function A(e){if(e.repopulateInfo)return{info:e.repopulateInfo(),next:I(e.next)};const t=I(e.next);return t===e.next?e:{...e,next:t}}function I(e){return e&&d(e,(t,n)=>{const r=A(t);if(t===r)return;const i=n>0?e.slice(0,n-1):[];i.push(r);for(let t=n+1;t!!a.hasChangedEmitSignature,c.getAllDependencies=e=>XV.getAllDependencies(a,un.checkDefined(a.program),e),c.getSemanticDiagnostics=function(e,t){if(un.assert(ZV(a)),cW(a,e),e)return bW(a,e,t);for(;;){const e=g(t);if(!e)break;if(e.affected===a.program)return e.result}let n;for(const e of a.program.getSourceFiles())n=se(n,bW(a,e,t));return a.checkPending&&!a.compilerOptions.noCheck&&(a.checkPending=void 0,a.buildInfoEmitPending=!0),n||l},c.getDeclarationDiagnostics=function(t,n){var r;if(un.assert(ZV(a)),1===e){let e,i;for(cW(a,t);e=_(void 0,n,void 0,void 0,!0);)t||(i=se(i,e.result.diagnostics));return(t?null==(r=a.emitDiagnosticsPerFile)?void 0:r.get(t.resolvedPath):i)||l}{const e=a.program.getDeclarationDiagnostics(t,n);return m(t,void 0,!0,e),e}},c.emit=function(t,n,r,i,o){un.assert(ZV(a)),1===e&&cW(a,t);const s=zV(c,t,n,r);if(s)return s;if(!t){if(1===e){let e,t,a=[],s=!1,c=[];for(;t=p(n,r,i,o);)s=s||t.result.emitSkipped,e=se(e,t.result.diagnostics),c=se(c,t.result.emittedFiles),a=se(a,t.result.sourceMaps);return{emitSkipped:s,diagnostics:e||l,emittedFiles:c,sourceMaps:a}}_W(a,i,!1)}const _=a.program.emit(t,f(n,o),r,i,o);return m(t,i,!1,_.diagnostics),_},c.releaseProgram=()=>function(e){XV.releaseCache(e),e.program=void 0}(a),0===e?c.getSemanticDiagnosticsOfNextAffectedFile=g:1===e?(c.getSemanticDiagnosticsOfNextAffectedFile=g,c.emitNextAffectedFile=p,c.emitBuildInfo=function(e,t){if(un.assert(ZV(a)),CW(a)){const r=a.program.emitBuildInfo(e||We(n,n.writeFile),t);return a.buildInfoEmitPending=!1,r}return JV}):ut(),c;function _(e,t,r,i,o){var s,c,l,_;un.assert(ZV(a));let d=lW(a,t,n);const p=eW(a.compilerOptions);let m,g=o?8:r?56&p:p;if(!d){if(a.compilerOptions.outFile){if(a.programEmitPending&&(g=uW(a.programEmitPending,a.seenProgramEmit,r,o),g&&(d=a.program)),!d&&(null==(s=a.emitDiagnosticsPerFile)?void 0:s.size)){const e=a.seenProgramEmit||0;if(!(e&dW(o))){a.seenProgramEmit=dW(o)|e;const t=[];return a.emitDiagnosticsPerFile.forEach(e=>se(t,e)),{result:{emitSkipped:!0,diagnostics:t},affected:a.program}}}}else{const e=function(e,t,n){var r;if(null==(r=e.affectedFilesPendingEmit)?void 0:r.size)return rd(e.affectedFilesPendingEmit,(r,i)=>{var o;const a=e.program.getSourceFileByPath(i);if(!a||!Xy(a,e.program))return void e.affectedFilesPendingEmit.delete(i);const s=uW(r,null==(o=e.seenEmittedFiles)?void 0:o.get(a.resolvedPath),t,n);return s?{affectedFile:a,emitKind:s}:void 0})}(a,r,o);if(e)({affectedFile:d,emitKind:g}=e);else{const e=function(e,t){var n;if(null==(n=e.emitDiagnosticsPerFile)?void 0:n.size)return rd(e.emitDiagnosticsPerFile,(n,r)=>{var i;const o=e.program.getSourceFileByPath(r);if(!o||!Xy(o,e.program))return void e.emitDiagnosticsPerFile.delete(r);const a=(null==(i=e.seenEmittedFiles)?void 0:i.get(o.resolvedPath))||0;return a&dW(t)?void 0:{affectedFile:o,diagnostics:n,seenKind:a}})}(a,o);if(e)return(a.seenEmittedFiles??(a.seenEmittedFiles=new Map)).set(e.affectedFile.resolvedPath,e.seenKind|dW(o)),{result:{emitSkipped:!0,diagnostics:e.diagnostics},affected:e.affectedFile}}}if(!d){if(o||!CW(a))return;const r=a.program,i=r.emitBuildInfo(e||We(n,n.writeFile),t);return a.buildInfoEmitPending=!1,{result:i,affected:r}}}7&g&&(m=0),56&g&&(m=void 0===m?1:void 0);const h=o?{emitSkipped:!0,diagnostics:a.program.getDeclarationDiagnostics(d===a.program?void 0:d,t)}:a.program.emit(d===a.program?void 0:d,f(e,i),t,m,i,void 0,!0);if(d!==a.program){const e=d;a.seenAffectedFiles.add(e.resolvedPath),void 0!==a.affectedFilesIndex&&a.affectedFilesIndex++,a.buildInfoEmitPending=!0;const t=(null==(c=a.seenEmittedFiles)?void 0:c.get(e.resolvedPath))||0;(a.seenEmittedFiles??(a.seenEmittedFiles=new Map)).set(e.resolvedPath,g|t);const n=tW((null==(l=a.affectedFilesPendingEmit)?void 0:l.get(e.resolvedPath))||p,g|t);n?(a.affectedFilesPendingEmit??(a.affectedFilesPendingEmit=new Map)).set(e.resolvedPath,n):null==(_=a.affectedFilesPendingEmit)||_.delete(e.resolvedPath),h.diagnostics.length&&(a.emitDiagnosticsPerFile??(a.emitDiagnosticsPerFile=new Map)).set(e.resolvedPath,h.diagnostics)}else a.changedFilesSet.clear(),a.programEmitPending=a.changedFilesSet.size?tW(p,g):a.programEmitPending?tW(a.programEmitPending,g):void 0,a.seenProgramEmit=g|(a.seenProgramEmit||0),u(h.diagnostics),a.buildInfoEmitPending=!0;return{result:h,affected:d}}function u(e){let t;e.forEach(e=>{if(!e.file)return;let n=null==t?void 0:t.get(e.file.resolvedPath);n||(t??(t=new Map)).set(e.file.resolvedPath,n=[]),n.push(e)}),t&&(a.emitDiagnosticsPerFile=t)}function p(e,t,n,r){return _(e,t,n,r,!1)}function f(e,t){return un.assert(ZV(a)),Dk(a.compilerOptions)?(r,i,o,s,c,l)=>{var _,u,d;if(uO(r))if(a.compilerOptions.outFile){if(a.compilerOptions.composite){const e=p(a.outSignature,void 0);if(!e)return l.skippedDtsWrite=!0;a.outSignature=e}}else{let e;if(un.assert(1===(null==c?void 0:c.length)),!t){const t=c[0],r=a.fileInfos.get(t.resolvedPath);if(r.signature===t.version){const o=FW(a.program,t,i,n,l);(null==(_=null==l?void 0:l.diagnostics)?void 0:_.length)||(e=o),o!==t.version&&(n.storeSignatureInfo&&(a.signatureInfo??(a.signatureInfo=new Map)).set(t.resolvedPath,1),a.affectedFiles?(void 0===(null==(u=a.oldSignatures)?void 0:u.get(t.resolvedPath))&&(a.oldSignatures??(a.oldSignatures=new Map)).set(t.resolvedPath,r.signature||!1),r.signature=o):r.signature=o)}}if(a.compilerOptions.composite){const t=c[0].resolvedPath;if(e=p(null==(d=a.emitSignatures)?void 0:d.get(t),e),!e)return l.skippedDtsWrite=!0;(a.emitSignatures??(a.emitSignatures=new Map)).set(t,e)}}function p(e,t){const o=!e||Ze(e)?e:e[0];if(t??(t=function(e,t,n){return(t.createHash??Mi)(DW(e,n))}(i,n,l)),t===o){if(e===o)return;l?l.differsOnlyInMap=!0:l={differsOnlyInMap:!0}}else a.hasChangedEmitSignature=!0,a.latestChangedDtsFile=r;return t}e?e(r,i,o,s,c,l):n.writeFile?n.writeFile(r,i,o,s,c,l):a.program.writeFile(r,i,o,s,c,l)}:e||We(n,n.writeFile)}function m(t,n,r,i){t||1===e||(_W(a,n,r),u(i))}function g(e,t){for(un.assert(ZV(a));;){const r=lW(a,e,n);let i;if(!r)return void(a.checkPending&&!a.compilerOptions.noCheck&&(a.checkPending=void 0,a.buildInfoEmitPending=!0));if(r!==a.program){const n=r;if(t&&t(n)||(i=bW(a,n,e)),a.seenAffectedFiles.add(n.resolvedPath),a.affectedFilesIndex++,a.buildInfoEmitPending=!0,!i)continue}else{let t;const n=new Map;a.program.getSourceFiles().forEach(r=>t=se(t,bW(a,r,e,n))),a.semanticDiagnosticsPerFile=n,i=t||l,a.changedFilesSet.clear(),a.programEmitPending=eW(a.compilerOptions),a.compilerOptions.noCheck||(a.checkPending=void 0),a.buildInfoEmitPending=!0}return{result:i,affected:r}}}}function PW(e,t,n){var r,i;const o=(null==(r=e.affectedFilesPendingEmit)?void 0:r.get(t))||0;(e.affectedFilesPendingEmit??(e.affectedFilesPendingEmit=new Map)).set(t,o|n),null==(i=e.emitDiagnosticsPerFile)||i.delete(t)}function AW(e){return Ze(e)?{version:e,signature:e,affectsGlobalScope:void 0,impliedFormat:void 0}:Ze(e.signature)?e:{version:e.version,signature:!1===e.signature?void 0:e.version,affectsGlobalScope:e.affectsGlobalScope,impliedFormat:e.impliedFormat}}function IW(e,t){return et(e)?t:e[1]||24}function OW(e,t){return e||eW(t||{})}function LW(e,t,n){var r,i,o,a;const s=Do(Bo(t,n.getCurrentDirectory())),c=Wt(n.useCaseSensitiveFileNames());let _;const u=null==(r=e.fileNames)?void 0:r.map(function(e){return Uo(e,s,c)});let d;const p=e.latestChangedDtsFile?g(e.latestChangedDtsFile):void 0,f=new Map,m=new Set(E(e.changeFileSet,h));if(xW(e))e.fileInfos.forEach((e,t)=>{const n=h(t+1);f.set(n,Ze(e)?{version:e,signature:void 0,affectsGlobalScope:void 0,impliedFormat:void 0}:e)}),_={fileInfos:f,compilerOptions:e.options?QL(e.options,g):{},semanticDiagnosticsPerFile:y(e.semanticDiagnosticsPerFile),emitDiagnosticsPerFile:v(e.emitDiagnosticsPerFile),hasReusableDiagnostic:!0,changedFilesSet:m,latestChangedDtsFile:p,outSignature:e.outSignature,programEmitPending:void 0===e.pendingEmit?void 0:OW(e.pendingEmit,e.options),hasErrors:e.errors,checkPending:e.checkPending};else{d=null==(i=e.fileIdsList)?void 0:i.map(e=>new Set(e.map(h)));const t=(null==(o=e.options)?void 0:o.composite)&&!e.options.outFile?new Map:void 0;e.fileInfos.forEach((e,n)=>{const r=h(n+1),i=AW(e);f.set(r,i),t&&i.signature&&t.set(r,i.signature)}),null==(a=e.emitSignatures)||a.forEach(e=>{if(et(e))t.delete(h(e));else{const n=h(e[0]);t.set(n,Ze(e[1])||e[1].length?e[1]:[t.get(n)])}});const n=e.affectedFilesPendingEmit?eW(e.options||{}):void 0;_={fileInfos:f,compilerOptions:e.options?QL(e.options,g):{},referencedMap:function(e,t){const n=XV.createReferencedMap(t);return n&&e?(e.forEach(([e,t])=>n.set(h(e),d[t-1])),n):n}(e.referencedMap,e.options??{}),semanticDiagnosticsPerFile:y(e.semanticDiagnosticsPerFile),emitDiagnosticsPerFile:v(e.emitDiagnosticsPerFile),hasReusableDiagnostic:!0,changedFilesSet:m,affectedFilesPendingEmit:e.affectedFilesPendingEmit&&Me(e.affectedFilesPendingEmit,e=>h(et(e)?e:e[0]),e=>IW(e,n)),latestChangedDtsFile:p,emitSignatures:(null==t?void 0:t.size)?t:void 0,hasErrors:e.errors,checkPending:e.checkPending}}return{state:_,getProgram:ut,getProgramOrUndefined:at,releaseProgram:rt,getCompilerOptions:()=>_.compilerOptions,getSourceFile:ut,getSourceFiles:ut,getOptionsDiagnostics:ut,getGlobalDiagnostics:ut,getConfigFileParsingDiagnostics:ut,getSyntacticDiagnostics:ut,getDeclarationDiagnostics:ut,getSemanticDiagnostics:ut,emit:ut,getAllDependencies:ut,getCurrentDirectory:ut,emitNextAffectedFile:ut,getSemanticDiagnosticsOfNextAffectedFile:ut,emitBuildInfo:ut,close:rt,hasChangedEmitSignature:it};function g(e){return Bo(e,s)}function h(e){return u[e-1]}function y(e){const t=new Map(J(f.keys(),e=>m.has(e)?void 0:[e,l]));return null==e||e.forEach(e=>{et(e)?t.delete(h(e)):t.set(h(e[0]),e[1])}),t}function v(e){return e&&Me(e,e=>h(e[0]),e=>e[1])}}function jW(e,t,n){const r=Do(Bo(t,n.getCurrentDirectory())),i=Wt(n.useCaseSensitiveFileNames()),o=new Map;let a=0;const s=new Map,c=new Map(e.resolvedRoot);return e.fileInfos.forEach((t,n)=>{const s=Uo(e.fileNames[n],r,i),c=Ze(t)?t:t.version;if(o.set(s,c),aUo(e,i,o))}function RW(e,t){return{state:void 0,getProgram:n,getProgramOrUndefined:()=>e.program,releaseProgram:()=>e.program=void 0,getCompilerOptions:()=>e.compilerOptions,getSourceFile:e=>n().getSourceFile(e),getSourceFiles:()=>n().getSourceFiles(),getOptionsDiagnostics:e=>n().getOptionsDiagnostics(e),getGlobalDiagnostics:e=>n().getGlobalDiagnostics(e),getConfigFileParsingDiagnostics:()=>t,getSyntacticDiagnostics:(e,t)=>n().getSyntacticDiagnostics(e,t),getDeclarationDiagnostics:(e,t)=>n().getDeclarationDiagnostics(e,t),getSemanticDiagnostics:(e,t)=>n().getSemanticDiagnostics(e,t),emit:(e,t,r,i,o)=>n().emit(e,t,r,i,o),emitBuildInfo:(e,t)=>n().emitBuildInfo(e,t),getAllDependencies:ut,getCurrentDirectory:()=>n().getCurrentDirectory(),close:rt};function n(){return un.checkDefined(e.program)}}function BW(e,t,n,r,i,o){return EW(0,NW(e,t,n,r,i,o))}function JW(e,t,n,r,i,o){return EW(1,NW(e,t,n,r,i,o))}function zW(e,t,n,r,i,o){const{newProgram:a,configFileParsingDiagnostics:s}=NW(e,t,n,r,i,o);return RW({program:a,compilerOptions:a.getCompilerOptions()},s)}function qW(e){return Mt(e,"/node_modules/.staging")?Rt(e,"/.staging"):$(Qi,t=>e.includes(t))?void 0:e}function UW(e,t){if(t<=1)return 1;let n=1,r=0===e[0].search(/[a-z]:/i);if(e[0]!==lo&&!r&&0===e[1].search(/[a-z]\$$/i)){if(2===t)return 2;n=2,r=!0}return r&&!e[n].match(/^users$/i)?n:e[n].match(/^workspaces$/i)?n+1:n+2}function VW(e,t){return void 0===t&&(t=e.length),!(t<=2)&&t>UW(e,t)+1}function WW(e){return VW(Ao(e))}function $W(e){return KW(Do(e))}function HW(e,t){if(t.lengthi.length+1?YW(l,c,Math.max(i.length+1,_+1),d):{dir:n,dirPath:r,nonRecursive:!0}:QW(l,c,c.length-1,_,u,i,d,s)}function QW(e,t,n,r,i,o,a,s){if(-1!==i)return YW(e,t,i+1,a);let c=!0,l=n;if(!s)for(let e=0;e=n&&r+2function(e,t,n,r,i,o,a){const s=t$(e),c=MM(n,r,i,s,t,o,a);if(!e.getGlobalTypingsCacheLocation)return c;const l=e.getGlobalTypingsCacheLocation();if(!(void 0===l||Cs(n)||c.resolvedModule&&QS(c.resolvedModule.extension))){const{resolvedModule:r,failedLookupLocations:o,affectingLocations:a,resolutionDiagnostics:_}=RR(un.checkDefined(e.globalCacheResolutionModuleName)(n),e.projectName,i,s,l,t);if(r)return c.resolvedModule=r,c.failedLookupLocations=aM(c.failedLookupLocations,o),c.affectingLocations=aM(c.affectingLocations,a),c.resolutionDiagnostics=aM(c.resolutionDiagnostics,_),c}return c}(r,i,o,e,n,t,a)}}function r$(e,t,n){let r,i,o;const a=new Set,s=new Set,c=new Set,_=new Map,u=new Map;let d,p,f,g,h,y=!1,v=!1;const b=dt(()=>e.getCurrentDirectory()),x=e.getCachedDirectoryStructureHost(),k=new Map,S=AM(b(),e.getCanonicalFileName,e.getCompilationSettings()),T=new Map,C=IM(b(),e.getCanonicalFileName,e.getCompilationSettings(),S.getPackageJsonInfoCache(),S.optionsToRedirectsKey),w=new Map,N=AM(b(),e.getCanonicalFileName,OM(e.getCompilationSettings()),S.getPackageJsonInfoCache()),D=new Map,F=new Map,E=e$(t,b),P=e.toPath(E),A=Ao(P),I=VW(A),O=new Map,L=new Map,j=new Map,M=new Map;return{rootDirForResolution:t,resolvedModuleNames:k,resolvedTypeReferenceDirectives:T,resolvedLibraries:w,resolvedFileToResolution:_,resolutionsWithFailedLookups:s,resolutionsWithOnlyAffectingLocations:c,directoryWatchesOfFailedLookups:D,fileWatchesOfAffectingLocations:F,packageDirWatchers:L,dirPathToSymlinkPackageRefCount:j,watchFailedLookupLocationsOfExternalModuleResolutions:V,getModuleResolutionCache:()=>S,startRecordingFilesWithChangedResolutions:function(){r=[]},finishRecordingFilesWithChangedResolutions:function(){const e=r;return r=void 0,e},startCachingPerDirectoryResolution:function(){S.isReadonly=void 0,C.isReadonly=void 0,N.isReadonly=void 0,S.getPackageJsonInfoCache().isReadonly=void 0,S.clearAllExceptPackageJsonInfoCache(),C.clearAllExceptPackageJsonInfoCache(),N.clearAllExceptPackageJsonInfoCache(),X(),O.clear()},finishCachingPerDirectoryResolution:function(t,n){o=void 0,v=!1,X(),t!==n&&(function(t){w.forEach((n,r)=>{var i;(null==(i=null==t?void 0:t.resolvedLibReferences)?void 0:i.has(r))||(ee(n,e.toPath(CV(e.getCompilationSettings(),b(),r)),_d),w.delete(r))})}(t),null==t||t.getSourceFiles().forEach(e=>{var t;const n=(null==(t=e.packageJsonLocations)?void 0:t.length)??0,r=u.get(e.resolvedPath)??l;for(let t=r.length;tn)for(let e=n;e{const r=null==t?void 0:t.getSourceFileByPath(n);r&&r.resolvedPath===n||(e.forEach(e=>F.get(e).files--),u.delete(n))})),D.forEach(J),F.forEach(z),L.forEach(B),y=!1,S.isReadonly=!0,C.isReadonly=!0,N.isReadonly=!0,S.getPackageJsonInfoCache().isReadonly=!0,O.clear()},resolveModuleNameLiterals:function(t,r,i,o,a,s){return q({entries:t,containingFile:r,containingSourceFile:a,redirectedReference:i,options:o,reusedNames:s,perFileCache:k,loader:n$(r,i,o,e,S),getResolutionWithResolvedFileName:_d,shouldRetryResolution:e=>!e.resolvedModule||!YS(e.resolvedModule.extension),logChanges:n,deferWatchingNonRelativeResolution:!0})},resolveTypeReferenceDirectiveReferences:function(t,n,r,i,o,a){return q({entries:t,containingFile:n,containingSourceFile:o,redirectedReference:r,options:i,reusedNames:a,perFileCache:T,loader:kV(n,r,i,t$(e),C),getResolutionWithResolvedFileName:ud,shouldRetryResolution:e=>void 0===e.resolvedTypeReferenceDirective,deferWatchingNonRelativeResolution:!1})},resolveLibrary:function(t,n,r,i){const o=t$(e);let a=null==w?void 0:w.get(i);if(!a||a.isInvalidated){const s=a;a=LM(t,n,r,o,N);const c=e.toPath(n);V(t,a,c,_d,!1),w.set(i,a),s&&ee(s,c,_d)}else if(Qj(r,o)){const e=_d(a);Xj(o,(null==e?void 0:e.resolvedFileName)?e.packageId?_a.Reusing_resolution_of_module_0_from_1_of_old_program_it_was_successfully_resolved_to_2_with_Package_ID_3:_a.Reusing_resolution_of_module_0_from_1_of_old_program_it_was_successfully_resolved_to_2:_a.Reusing_resolution_of_module_0_from_1_of_old_program_it_was_not_resolved,t,n,null==e?void 0:e.resolvedFileName,(null==e?void 0:e.packageId)&&md(e.packageId))}return a},resolveSingleModuleNameWithoutWatching:function(t,n){var r,i;const o=e.toPath(n),a=k.get(o),s=null==a?void 0:a.get(t,void 0);if(s&&!s.isInvalidated)return s;const c=null==(r=e.beforeResolveSingleModuleNameWithoutWatching)?void 0:r.call(e,S),l=t$(e),_=MM(t,n,e.getCompilationSettings(),l,S);return null==(i=e.afterResolveSingleModuleNameWithoutWatching)||i.call(e,S,t,n,_,c),_},removeResolutionsFromProjectReferenceRedirects:function(t){if(!ko(t,".json"))return;const n=e.getCurrentProgram();if(!n)return;const r=n.getResolvedProjectReferenceByPath(t);r&&r.commandLine.fileNames.forEach(t=>ie(e.toPath(t)))},removeResolutionsOfFile:ie,hasChangedAutomaticTypeDirectiveNames:()=>y,invalidateResolutionOfFile:function(t){ie(t);const n=y;oe(_.get(t),ot)&&y&&!n&&e.onChangedAutomaticTypeDirectiveNames()},invalidateResolutionsOfFailedLookupLocations:ce,setFilesWithInvalidatedNonRelativeUnresolvedImports:function(e){un.assert(o===e||void 0===o),o=e},createHasInvalidatedResolutions:function(e,t){ce();const n=i;return i=void 0,{hasInvalidatedResolutions:t=>e(t)||v||!!(null==n?void 0:n.has(t))||R(t),hasInvalidatedLibResolutions:e=>{var n;return t(e)||!!(null==(n=null==w?void 0:w.get(e))?void 0:n.isInvalidated)}}},isFileWithInvalidatedNonRelativeUnresolvedImports:R,updateTypeRootsWatch:function(){const t=e.getCompilationSettings();if(t.types)return void de();const n=uM(t,{getCurrentDirectory:b});n?px(M,new Set(n),{createNewValue:pe,onDeleteValue:nx}):de()},closeTypeRootsWatch:de,clear:function(){ux(D,RU),ux(F,RU),O.clear(),L.clear(),j.clear(),a.clear(),de(),k.clear(),T.clear(),_.clear(),s.clear(),c.clear(),f=void 0,g=void 0,h=void 0,p=void 0,d=void 0,v=!1,S.clear(),C.clear(),S.update(e.getCompilationSettings()),C.update(e.getCompilationSettings()),N.clear(),u.clear(),w.clear(),y=!1},onChangesAffectModuleResolution:function(){v=!0,S.clearAllExceptPackageJsonInfoCache(),C.clearAllExceptPackageJsonInfoCache(),S.update(e.getCompilationSettings()),C.update(e.getCompilationSettings())}};function R(e){if(!o)return!1;const t=o.get(e);return!!t&&!!t.length}function B(e,t){0===e.dirPathToWatcher.size&&L.delete(t)}function J(e,t){0===e.refCount&&(D.delete(t),e.watcher.close())}function z(e,t){var n;0!==e.files||0!==e.resolutions||(null==(n=e.symlinks)?void 0:n.size)||(F.delete(t),e.watcher.close())}function q({entries:t,containingFile:n,containingSourceFile:i,redirectedReference:o,options:a,perFileCache:s,reusedNames:c,loader:l,getResolutionWithResolvedFileName:_,deferWatchingNonRelativeResolution:u,shouldRetryResolution:d,logChanges:p}){var f;const m=e.toPath(n),g=s.get(m)||s.set(m,DM()).get(m),h=[],y=p&&R(m),b=e.getCurrentProgram(),x=b&&(null==(f=b.getRedirectFromSourceFile(n))?void 0:f.resolvedRef),S=x?!o||o.sourceFile.path!==x.sourceFile.path:!!o,T=DM();for(const c of t){const t=l.nameAndMode.getName(c),f=l.nameAndMode.getMode(c,i,(null==o?void 0:o.commandLine.options)||a);let b=g.get(t,f);if(!T.has(t,f)&&(v||S||!b||b.isInvalidated||y&&!Cs(t)&&d(b))){const n=b;b=l.resolve(t,f),e.onDiscoveredSymlink&&i$(b)&&e.onDiscoveredSymlink(),g.set(t,f,b),b!==n&&(V(t,b,m,_,u),n&&ee(n,m,_)),p&&r&&!C(n,b)&&(r.push(m),p=!1)}else{const r=t$(e);if(Qj(a,r)&&!T.has(t,f)){const e=_(b);Xj(r,s===k?(null==e?void 0:e.resolvedFileName)?e.packageId?_a.Reusing_resolution_of_module_0_from_1_of_old_program_it_was_successfully_resolved_to_2_with_Package_ID_3:_a.Reusing_resolution_of_module_0_from_1_of_old_program_it_was_successfully_resolved_to_2:_a.Reusing_resolution_of_module_0_from_1_of_old_program_it_was_not_resolved:(null==e?void 0:e.resolvedFileName)?e.packageId?_a.Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_successfully_resolved_to_2_with_Package_ID_3:_a.Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_successfully_resolved_to_2:_a.Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_not_resolved,t,n,null==e?void 0:e.resolvedFileName,(null==e?void 0:e.packageId)&&md(e.packageId))}}un.assert(void 0!==b&&!b.isInvalidated),T.set(t,f,!0),h.push(b)}return null==c||c.forEach(e=>T.set(l.nameAndMode.getName(e),l.nameAndMode.getMode(e,i,(null==o?void 0:o.commandLine.options)||a),!0)),g.size()!==T.size()&&g.forEach((e,t,n)=>{T.has(t,n)||(ee(e,m,_),g.delete(t,n))}),h;function C(e,t){if(e===t)return!0;if(!e||!t)return!1;const n=_(e),r=_(t);return n===r||!(!n||!r)&&n.resolvedFileName===r.resolvedFileName}}function U(e){return Mt(e,"/node_modules/@types")}function V(t,n,r,i,o){if((n.files??(n.files=new Set)).add(r),1!==n.files.size)return;!o||Cs(t)?H(n):a.add(n);const s=i(n);if(s&&s.resolvedFileName){const t=e.toPath(s.resolvedFileName);let r=_.get(t);r||_.set(t,r=new Set),r.add(n)}}function W(t,n){const r=XW(t,e.toPath(t),E,P,A,I,b,e.preferNonRecursiveWatch);if(r){const{dir:e,dirPath:t,nonRecursive:i,packageDir:o,packageDirPath:a}=r;t===P?(un.assert(i),un.assert(!o),n=!0):Q(e,t,o,a,i)}return n}function H(e){var t;un.assert(!!(null==(t=e.files)?void 0:t.size));const{failedLookupLocations:n,affectingLocations:r,alternateResult:i}=e;if(!(null==n?void 0:n.length)&&!(null==r?void 0:r.length)&&!i)return;((null==n?void 0:n.length)||i)&&s.add(e);let o=!1;if(n)for(const e of n)o=W(e,o);i&&(o=W(i,o)),o&&Q(E,P,void 0,void 0,!0),function(e,t){var n;un.assert(!!(null==(n=e.files)?void 0:n.size));const{affectingLocations:r}=e;if(null==r?void 0:r.length){t&&c.add(e);for(const e of r)K(e,!0)}}(e,!(null==n?void 0:n.length)&&!i)}function K(t,n){const r=F.get(t);if(r)return void(n?r.resolutions++:r.files++);let i,o=t,a=!1;e.realpath&&(o=e.realpath(t),t!==o&&(a=!0,i=F.get(o)));const s=n?1:0,c=n?0:1;if(!a||!i){const t={watcher:GW(e.toPath(o))?e.watchAffectingFileLocation(o,(t,n)=>{null==x||x.addOrDeleteFile(t,e.toPath(o),n),G(o,S.getPackageJsonInfoCache().getInternalMap()),e.scheduleInvalidateResolutionsOfFailedLookupLocations()}):w$,resolutions:a?0:s,files:a?0:c,symlinks:void 0};F.set(o,t),a&&(i=t)}if(a){un.assert(!!i);const e={watcher:{close:()=>{var e;const n=F.get(o);!(null==(e=null==n?void 0:n.symlinks)?void 0:e.delete(t))||n.symlinks.size||n.resolutions||n.files||(F.delete(o),n.watcher.close())}},resolutions:s,files:c,symlinks:void 0};F.set(t,e),(i.symlinks??(i.symlinks=new Set)).add(t)}}function G(t,n){var r;const i=F.get(t);(null==i?void 0:i.resolutions)&&(p??(p=new Set)).add(t),(null==i?void 0:i.files)&&(d??(d=new Set)).add(t),null==(r=null==i?void 0:i.symlinks)||r.forEach(e=>G(e,n)),null==n||n.delete(e.toPath(t))}function X(){a.forEach(H),a.clear()}function Q(t,n,r,i,o){i&&e.realpath?function(t,n,r,i,o){un.assert(!o);let a=O.get(i),s=L.get(i);if(void 0===a){const t=e.realpath(r);a=t!==r&&e.toPath(t)!==i,O.set(i,a),s?s.isSymlink!==a&&(s.dirPathToWatcher.forEach(e=>{te(s.isSymlink?i:n),e.watcher=l()}),s.isSymlink=a):L.set(i,s={dirPathToWatcher:new Map,isSymlink:a})}else un.assertIsDefined(s),un.assert(a===s.isSymlink);const c=s.dirPathToWatcher.get(n);function l(){return a?Y(r,i,o):Y(t,n,o)}c?c.refCount++:(s.dirPathToWatcher.set(n,{watcher:l(),refCount:1}),a&&j.set(n,(j.get(n)??0)+1))}(t,n,r,i,o):Y(t,n,o)}function Y(e,t,n){let r=D.get(t);return r?(un.assert(!!n==!!r.nonRecursive),r.refCount++):D.set(t,r={watcher:ne(e,t,n),refCount:1,nonRecursive:n}),r}function Z(t,n){const r=XW(t,e.toPath(t),E,P,A,I,b,e.preferNonRecursiveWatch);if(r){const{dirPath:t,packageDirPath:i}=r;if(t===P)n=!0;else if(i&&e.realpath){const e=L.get(i),n=e.dirPathToWatcher.get(t);if(n.refCount--,0===n.refCount&&(te(e.isSymlink?i:t),e.dirPathToWatcher.delete(t),e.isSymlink)){const e=j.get(t)-1;0===e?j.delete(t):j.set(t,e)}}else te(t)}return n}function ee(t,n,r){if(un.checkDefined(t.files).delete(n),t.files.size)return;t.files=void 0;const i=r(t);if(i&&i.resolvedFileName){const n=e.toPath(i.resolvedFileName),r=_.get(n);(null==r?void 0:r.delete(t))&&!r.size&&_.delete(n)}const{failedLookupLocations:o,affectingLocations:a,alternateResult:l}=t;if(s.delete(t)){let e=!1;if(o)for(const t of o)e=Z(t,e);l&&(e=Z(l,e)),e&&te(P)}else(null==a?void 0:a.length)&&c.delete(t);if(a)for(const e of a)F.get(e).resolutions--}function te(e){D.get(e).refCount--}function ne(t,n,r){return e.watchDirectoryOfFailedLookupLocation(t,t=>{const r=e.toPath(t);x&&x.addOrDeleteFileOrDirectory(t,r),ae(r,n===r)},r?0:1)}function re(e,t,n){const r=e.get(t);r&&(r.forEach(e=>ee(e,t,n)),e.delete(t))}function ie(e){re(k,e,_d),re(T,e,ud)}function oe(e,t){if(!e)return!1;let n=!1;return e.forEach(e=>{if(!e.isInvalidated&&t(e)){e.isInvalidated=n=!0;for(const t of un.checkDefined(e.files))(i??(i=new Set)).add(t),y=y||Mt(t,TV)}}),n}function ae(t,n){if(n)(h||(h=new Set)).add(t);else{const n=qW(t);if(!n)return!1;if(t=n,e.fileIsOpen(t))return!1;const r=Do(t);if(U(t)||ca(t)||U(r)||ca(r))(f||(f=new Set)).add(t),(g||(g=new Set)).add(t);else{if(OU(e.getCurrentProgram(),t))return!1;if(ko(t,".map"))return!1;(f||(f=new Set)).add(t),(g||(g=new Set)).add(t);const n=XM(t,!0);n&&(g||(g=new Set)).add(n)}}e.scheduleInvalidateResolutionsOfFailedLookupLocations()}function se(){const e=S.getPackageJsonInfoCache().getInternalMap();e&&(f||g||h)&&e.forEach((t,n)=>_e(n)?e.delete(n):void 0)}function ce(){var t;if(v)return d=void 0,se(),(f||g||h||p)&&oe(w,le),f=void 0,g=void 0,h=void 0,p=void 0,!0;let n=!1;return d&&(null==(t=e.getCurrentProgram())||t.getSourceFiles().forEach(e=>{$(e.packageJsonLocations,e=>d.has(e))&&((i??(i=new Set)).add(e.path),n=!0)}),d=void 0),f||g||h||p?(n=oe(s,le)||n,se(),f=void 0,g=void 0,h=void 0,n=oe(c,ue)||n,p=void 0,n):n}function le(t){var n;return!!ue(t)||!!(f||g||h)&&((null==(n=t.failedLookupLocations)?void 0:n.some(t=>_e(e.toPath(t))))||!!t.alternateResult&&_e(e.toPath(t.alternateResult)))}function _e(e){return(null==f?void 0:f.has(e))||m((null==g?void 0:g.keys())||[],t=>!!Gt(e,t)||void 0)||m((null==h?void 0:h.keys())||[],t=>!(!(e.length>t.length&&Gt(e,t))||!ho(t)&&e[t.length]!==lo)||void 0)}function ue(e){var t;return!!p&&(null==(t=e.affectingLocations)?void 0:t.some(e=>p.has(e)))}function de(){ux(M,nx)}function pe(t){return function(t){return!!e.getCompilationSettings().typeRoots||$W(e.toPath(t))}(t)?e.watchTypeRootsDirectory(t,n=>{const r=e.toPath(n);x&&x.addOrDeleteFileOrDirectory(n,r),y=!0,e.onChangedAutomaticTypeDirectiveNames();const i=ZW(t,e.toPath(t),P,A,I,b,e.preferNonRecursiveWatch,e=>D.has(e)||j.has(e));i&&ae(r,i===r)},1):w$}}function i$(e){var t,n;return!(!(null==(t=e.resolvedModule)?void 0:t.originalPath)&&!(null==(n=e.resolvedTypeReferenceDirective)?void 0:n.originalPath))}var o$=so?{getCurrentDirectory:()=>so.getCurrentDirectory(),getNewLine:()=>so.newLine,getCanonicalFileName:Wt(so.useCaseSensitiveFileNames)}:void 0;function a$(e,t){const n=e===so&&o$?o$:{getCurrentDirectory:()=>e.getCurrentDirectory(),getNewLine:()=>e.newLine,getCanonicalFileName:Wt(e.useCaseSensitiveFileNames)};if(!t)return t=>e.write(GU(t,n));const r=new Array(1);return t=>{r[0]=t,e.write(sV(r,n)+n.getNewLine()),r[0]=void 0}}function s$(e,t,n){return!(!e.clearScreen||n.preserveWatchOutput||n.extendedDiagnostics||n.diagnostics||!T(c$,t.code)||(e.clearScreen(),0))}var c$=[_a.Starting_compilation_in_watch_mode.code,_a.File_change_detected_Starting_incremental_compilation.code];function l$(e){return e.now?e.now().toLocaleTimeString("en-US",{timeZone:"UTC"}).replace(" "," "):(new Date).toLocaleTimeString()}function _$(e,t){return t?(t,n,r)=>{s$(e,t,r);let i=`[${iV(l$(e),"")}] `;i+=`${cV(t.messageText,e.newLine)}${n+n}`,e.write(i)}:(t,n,r)=>{let i="";s$(e,t,r)||(i+=n),i+=`${l$(e)} - `,i+=`${cV(t.messageText,e.newLine)}${function(e,t){return T(c$,e.code)?t+t:t}(t,n)}`,e.write(i)}}function u$(e,t,n,r,i,o){const a=i;a.onUnRecoverableConfigFileDiagnostic=e=>j$(i,o,e);const s=gL(e,t,a,n,r);return a.onUnRecoverableConfigFileDiagnostic=void 0,s}function d$(e){return w(e,e=>1===e.category)}function p$(e){return N(e,e=>1===e.category).map(e=>{if(void 0!==e.file)return`${e.file.fileName}`}).map(t=>{if(void 0===t)return;const n=b(e,e=>void 0!==e.file&&e.file.fileName===t);if(void 0!==n){const{line:e}=za(n.file,n.start);return{fileName:t,line:e+1}}})}function f$(e){return 1===e?_a.Found_1_error_Watching_for_file_changes:_a.Found_0_errors_Watching_for_file_changes}function m$(e,t){const n=iV(":"+e.line,"");return yo(e.fileName)&&yo(t)?ra(t,e.fileName,!1)+n:e.fileName+n}function g$(e,t,n,r){if(0===e)return"";const i=t.filter(e=>void 0!==e),o=i.map(e=>`${e.fileName}:${e.line}`).filter((e,t,n)=>n.indexOf(e)===t),a=i[0]&&m$(i[0],r.getCurrentDirectory());let s;s=1===e?void 0!==t[0]?[_a.Found_1_error_in_0,a]:[_a.Found_1_error]:0===o.length?[_a.Found_0_errors,e]:1===o.length?[_a.Found_0_errors_in_the_same_file_starting_at_Colon_1,e,a]:[_a.Found_0_errors_in_1_files,e,o.length];const c=Qx(...s),l=o.length>1?function(e,t){const n=e.filter((e,t,n)=>t===n.findIndex(t=>(null==t?void 0:t.fileName)===(null==e?void 0:e.fileName)));if(0===n.length)return"";const r=e=>Math.log(e)*Math.LOG10E+1,i=n.map(t=>[t,w(e,e=>e.fileName===t.fileName)]),o=xt(i,0,e=>e[1]),a=_a.Errors_Files.message,s=a.split(" ")[0].length,c=Math.max(s,r(o)),l=Math.max(r(o)-s,0);let _="";return _+=" ".repeat(l)+a+"\n",i.forEach(e=>{const[n,r]=e,i=Math.log(r)*Math.LOG10E+1|0,o=iia(t,e.getCurrentDirectory(),e.getCanonicalFileName);for(const a of e.getSourceFiles())t(`${S$(a,o)}`),null==(n=i.get(a.path))||n.forEach(n=>t(` ${k$(e,n,o).messageText}`)),null==(r=v$(a,e.getCompilerOptionsForFile(a),o))||r.forEach(e=>t(` ${e.messageText}`))}function v$(e,t,n){var r;let i;if(e.path!==e.resolvedPath&&(i??(i=[])).push(Zx(void 0,_a.File_is_output_of_project_reference_source_0,S$(e.originalFileName,n))),e.redirectInfo&&(i??(i=[])).push(Zx(void 0,_a.File_redirects_to_file_0,S$(e.redirectInfo.redirectTarget,n))),Zp(e))switch(RV(e,t)){case 99:e.packageJsonScope&&(i??(i=[])).push(Zx(void 0,_a.File_is_ECMAScript_module_because_0_has_field_type_with_value_module,S$(ve(e.packageJsonLocations),n)));break;case 1:e.packageJsonScope?(i??(i=[])).push(Zx(void 0,e.packageJsonScope.contents.packageJsonContent.type?_a.File_is_CommonJS_module_because_0_has_field_type_whose_value_is_not_module:_a.File_is_CommonJS_module_because_0_does_not_have_field_type,S$(ve(e.packageJsonLocations),n))):(null==(r=e.packageJsonLocations)?void 0:r.length)&&(i??(i=[])).push(Zx(void 0,_a.File_is_CommonJS_module_because_package_json_was_not_found))}return i}function b$(e,t){var n;const r=e.getCompilerOptions().configFile;if(!(null==(n=null==r?void 0:r.configFileSpecs)?void 0:n.validatedFilesSpec))return;const i=e.getCanonicalFileName(t),o=Do(Bo(r.fileName,e.getCurrentDirectory())),a=k(r.configFileSpecs.validatedFilesSpec,t=>e.getCanonicalFileName(Bo(t,o))===i);return-1!==a?r.configFileSpecs.validatedFilesSpecBeforeSubstitution[a]:void 0}function x$(e,t){var n,r;const i=e.getCompilerOptions().configFile;if(!(null==(n=null==i?void 0:i.configFileSpecs)?void 0:n.validatedIncludeSpecs))return;if(i.configFileSpecs.isDefaultIncludeSpec)return!0;const o=ko(t,".json"),a=Do(Bo(i.fileName,e.getCurrentDirectory())),s=e.useCaseSensitiveFileNames(),c=k(null==(r=null==i?void 0:i.configFileSpecs)?void 0:r.validatedIncludeSpecs,e=>{if(o&&!Mt(e,".json"))return!1;const n=dS(e,a,"files");return!!n&&gS(`(?:${n})$`,s).test(t)});return-1!==c?i.configFileSpecs.validatedIncludeSpecsBeforeSubstitution[c]:void 0}function k$(e,t,n){var r,i;const o=e.getCompilerOptions();if(NV(t)){const r=FV(e,t),i=DV(r)?r.file.text.substring(r.pos,r.end):`"${r.text}"`;let o;switch(un.assert(DV(r)||3===t.kind,"Only synthetic references are imports"),t.kind){case 3:o=DV(r)?r.packageId?_a.Imported_via_0_from_file_1_with_packageId_2:_a.Imported_via_0_from_file_1:r.text===Uu?r.packageId?_a.Imported_via_0_from_file_1_with_packageId_2_to_import_importHelpers_as_specified_in_compilerOptions:_a.Imported_via_0_from_file_1_to_import_importHelpers_as_specified_in_compilerOptions:r.packageId?_a.Imported_via_0_from_file_1_with_packageId_2_to_import_jsx_and_jsxs_factory_functions:_a.Imported_via_0_from_file_1_to_import_jsx_and_jsxs_factory_functions;break;case 4:un.assert(!r.packageId),o=_a.Referenced_via_0_from_file_1;break;case 5:o=r.packageId?_a.Type_library_referenced_via_0_from_file_1_with_packageId_2:_a.Type_library_referenced_via_0_from_file_1;break;case 7:un.assert(!r.packageId),o=_a.Library_referenced_via_0_from_file_1;break;default:un.assertNever(t)}return Zx(void 0,o,i,S$(r.file,n),r.packageId&&md(r.packageId))}switch(t.kind){case 0:if(!(null==(r=o.configFile)?void 0:r.configFileSpecs))return Zx(void 0,_a.Root_file_specified_for_compilation);const a=Bo(e.getRootFileNames()[t.index],e.getCurrentDirectory());if(b$(e,a))return Zx(void 0,_a.Part_of_files_list_in_tsconfig_json);const s=x$(e,a);return Ze(s)?Zx(void 0,_a.Matched_by_include_pattern_0_in_1,s,S$(o.configFile,n)):Zx(void 0,s?_a.Matched_by_default_include_pattern_Asterisk_Asterisk_Slash_Asterisk:_a.Root_file_specified_for_compilation);case 1:case 2:const c=2===t.kind,l=un.checkDefined(null==(i=e.getResolvedProjectReferences())?void 0:i[t.index]);return Zx(void 0,o.outFile?c?_a.Output_from_referenced_project_0_included_because_1_specified:_a.Source_from_referenced_project_0_included_because_1_specified:c?_a.Output_from_referenced_project_0_included_because_module_is_specified_as_none:_a.Source_from_referenced_project_0_included_because_module_is_specified_as_none,S$(l.sourceFile.fileName,n),o.outFile?"--outFile":"--out");case 8:return Zx(void 0,...o.types?t.packageId?[_a.Entry_point_of_type_library_0_specified_in_compilerOptions_with_packageId_1,t.typeReference,md(t.packageId)]:[_a.Entry_point_of_type_library_0_specified_in_compilerOptions,t.typeReference]:t.packageId?[_a.Entry_point_for_implicit_type_library_0_with_packageId_1,t.typeReference,md(t.packageId)]:[_a.Entry_point_for_implicit_type_library_0,t.typeReference]);case 6:{if(void 0!==t.index)return Zx(void 0,_a.Library_0_specified_in_compilerOptions,o.lib[t.index]);const e=zk(yk(o));return Zx(void 0,...e?[_a.Default_library_for_target_0,e]:[_a.Default_library])}default:un.assertNever(t)}}function S$(e,t){const n=Ze(e)?e:e.fileName;return t?t(n):n}function T$(e,t,n,r,i,o,a,s){const c=e.getCompilerOptions(),_=e.getConfigFileParsingDiagnostics().slice(),u=_.length;se(_,e.getSyntacticDiagnostics(void 0,o)),_.length===u&&(se(_,e.getOptionsDiagnostics(o)),c.listFilesOnly||(se(_,e.getGlobalDiagnostics(o)),_.length===u&&se(_,e.getSemanticDiagnostics(void 0,o)),c.noEmit&&Dk(c)&&_.length===u&&se(_,e.getDeclarationDiagnostics(void 0,o))));const p=c.listFilesOnly?{emitSkipped:!0,diagnostics:l}:e.emit(void 0,i,o,a,s);se(_,p.diagnostics);const f=ws(_);if(f.forEach(t),n){const t=e.getCurrentDirectory();d(p.emittedFiles,e=>{const r=Bo(e,t);n(`TSFILE: ${r}`)}),function(e,t){const n=e.getCompilerOptions();n.explainFiles?y$(h$(e)?e.getProgram():e,t):(n.listFiles||n.listFilesOnly)&&d(e.getSourceFiles(),e=>{t(e.fileName)})}(e,n)}return r&&r(d$(f),p$(f)),{emitResult:p,diagnostics:f}}function C$(e,t,n,r,i,o,a,s){const{emitResult:c,diagnostics:l}=T$(e,t,n,r,i,o,a,s);return c.emitSkipped&&l.length>0?1:l.length>0?2:0}var w$={close:rt},N$=()=>w$;function D$(e=so,t){return{onWatchStatusChange:t||_$(e),watchFile:We(e,e.watchFile)||N$,watchDirectory:We(e,e.watchDirectory)||N$,setTimeout:We(e,e.setTimeout)||rt,clearTimeout:We(e,e.clearTimeout)||rt,preferNonRecursiveWatch:e.preferNonRecursiveWatch}}var F$={ConfigFile:"Config file",ExtendedConfigFile:"Extended config file",SourceFile:"Source file",MissingFile:"Missing file",WildcardDirectory:"Wild card directory",FailedLookupLocations:"Failed Lookup Locations",AffectingFileLocation:"File location affecting resolution",TypeRoots:"Type roots",ConfigFileOfReferencedProject:"Config file of referened project",ExtendedConfigOfReferencedProject:"Extended config file of referenced project",WildcardDirectoryOfReferencedProject:"Wild card directory of referenced project",PackageJson:"package.json file",ClosedScriptInfo:"Closed Script info",ConfigFileForInferredRoot:"Config file for the inferred project root",NodeModules:"node_modules for closed script infos and package.jsons affecting module specifier cache",MissingSourceMapFile:"Missing source map file",NoopConfigFileForInferredRoot:"Noop Config file for the inferred project root",MissingGeneratedFile:"Missing generated file",NodeModulesForModuleSpecifierCache:"node_modules for module specifier cache invalidation",TypingInstallerLocationFile:"File location for typing installer",TypingInstallerLocationDirectory:"Directory location for typing installer"};function E$(e,t){const n=e.trace?t.extendedDiagnostics?2:t.diagnostics?1:0:0,r=0!==n?t=>e.trace(t):rt,i=jU(e,n,r);return i.writeLog=r,i}function P$(e,t,n=e){const r=e.useCaseSensitiveFileNames(),i={getSourceFile:UU((t,n)=>n?e.readFile(t,n):i.readFile(t),void 0),getDefaultLibLocation:We(e,e.getDefaultLibLocation),getDefaultLibFileName:t=>e.getDefaultLibFileName(t),writeFile:VU((t,n,r)=>e.writeFile(t,n,r),t=>e.createDirectory(t),t=>e.directoryExists(t)),getCurrentDirectory:dt(()=>e.getCurrentDirectory()),useCaseSensitiveFileNames:()=>r,getCanonicalFileName:Wt(r),getNewLine:()=>Pb(t()),fileExists:t=>e.fileExists(t),readFile:t=>e.readFile(t),trace:We(e,e.trace),directoryExists:We(n,n.directoryExists),getDirectories:We(n,n.getDirectories),realpath:We(e,e.realpath),getEnvironmentVariable:We(e,e.getEnvironmentVariable)||(()=>""),createHash:We(e,e.createHash),readDirectory:We(e,e.readDirectory),storeSignatureInfo:e.storeSignatureInfo,jsDocParsingMode:e.jsDocParsingMode};return i}function A$(e,t){if(t.match(SJ)){let e=t.length,n=e;for(let r=e-1;r>=0;r--){const i=t.charCodeAt(r);switch(i){case 10:r&&13===t.charCodeAt(r-1)&&r--;case 13:break;default:if(i<127||!Va(i)){n=r;continue}}const o=t.substring(n,e);if(o.match(TJ)){t=t.substring(0,n);break}if(!o.match(CJ))break;e=n}}return(e.createHash||Mi)(t)}function I$(e){const t=e.getSourceFile;e.getSourceFile=(...n)=>{const r=t.call(e,...n);return r&&(r.version=A$(e,r.text)),r}}function O$(e,t){const n=dt(()=>Do(Jo(e.getExecutingFilePath())));return{useCaseSensitiveFileNames:()=>e.useCaseSensitiveFileNames,getNewLine:()=>e.newLine,getCurrentDirectory:dt(()=>e.getCurrentDirectory()),getDefaultLibLocation:n,getDefaultLibFileName:e=>jo(n(),Ds(e)),fileExists:t=>e.fileExists(t),readFile:(t,n)=>e.readFile(t,n),directoryExists:t=>e.directoryExists(t),getDirectories:t=>e.getDirectories(t),readDirectory:(t,n,r,i,o)=>e.readDirectory(t,n,r,i,o),realpath:We(e,e.realpath),getEnvironmentVariable:We(e,e.getEnvironmentVariable),trace:t=>e.write(t+e.newLine),createDirectory:t=>e.createDirectory(t),writeFile:(t,n,r)=>e.writeFile(t,n,r),createHash:We(e,e.createHash),createProgram:t||JW,storeSignatureInfo:e.storeSignatureInfo,now:We(e,e.now)}}function L$(e=so,t,n,r){const i=t=>e.write(t+e.newLine),o=O$(e,t);return Ve(o,D$(e,r)),o.afterProgramCreate=e=>{const t=e.getCompilerOptions(),r=Pb(t);T$(e,n,i,e=>o.onWatchStatusChange(Qx(f$(e),e),r,t,e))},o}function j$(e,t,n){t(n),e.exit(1)}function M$({configFileName:e,optionsToExtend:t,watchOptionsToExtend:n,extraFileExtensions:r,system:i,createProgram:o,reportDiagnostic:a,reportWatchStatus:s}){const c=a||a$(i),l=L$(i,o,c,s);return l.onUnRecoverableConfigFileDiagnostic=e=>j$(i,c,e),l.configFileName=e,l.optionsToExtend=t,l.watchOptionsToExtend=n,l.extraFileExtensions=r,l}function R$({rootFiles:e,options:t,watchOptions:n,projectReferences:r,system:i,createProgram:o,reportDiagnostic:a,reportWatchStatus:s}){const c=L$(i,o,a||a$(i),s);return c.rootFiles=e,c.options=t,c.watchOptions=n,c.projectReferences=r,c}function B$(e){const t=e.system||so,n=e.host||(e.host=z$(e.options,t)),r=q$(e),i=C$(r,e.reportDiagnostic||a$(t),e=>n.trace&&n.trace(e),e.reportErrorSummary||e.options.pretty?(e,r)=>t.write(g$(e,r,t.newLine,n)):void 0);return e.afterProgramEmitAndDiagnostics&&e.afterProgramEmitAndDiagnostics(r),i}function J$(e,t){const n=Gq(e);if(!n)return;let r;if(t.getBuildInfo)r=t.getBuildInfo(n,e.configFilePath);else{const e=t.readFile(n);if(!e)return;r=gU(n,e)}return r&&r.version===s&&kW(r)?LW(r,n,t):void 0}function z$(e,t=so){const n=WU(e,void 0,t);return n.createHash=We(t,t.createHash),n.storeSignatureInfo=t.storeSignatureInfo,I$(n),$U(n,e=>Uo(e,n.getCurrentDirectory(),n.getCanonicalFileName)),n}function q$({rootNames:e,options:t,configFileParsingDiagnostics:n,projectReferences:r,host:i,createProgram:o}){return(o=o||JW)(e,t,i=i||z$(t),J$(t,i),n,r)}function U$(e,t,n,r,i,o,a,s){return Qe(e)?R$({rootFiles:e,options:t,watchOptions:s,projectReferences:a,system:n,createProgram:r,reportDiagnostic:i,reportWatchStatus:o}):M$({configFileName:e,optionsToExtend:t,watchOptionsToExtend:a,extraFileExtensions:s,system:n,createProgram:r,reportDiagnostic:i,reportWatchStatus:o})}function V$(e){let t,n,r,i,o,a,s,c,l=new Map([[void 0,void 0]]),_=e.extendedConfigCache,u=!1;const d=new Map;let p,f=!1;const m=e.useCaseSensitiveFileNames(),g=e.getCurrentDirectory(),{configFileName:h,optionsToExtend:y={},watchOptionsToExtend:v,extraFileExtensions:b,createProgram:x}=e;let k,S,{rootFiles:T,options:C,watchOptions:w,projectReferences:N}=e,D=!1,F=!1;const E=void 0===h?void 0:wU(e,g,m),P=E||e,A=UV(e,P);let I=G();h&&e.configFileParsingResult&&(ce(e.configFileParsingResult),I=G()),ee(_a.Starting_compilation_in_watch_mode),h&&!e.configFileParsingResult&&(I=Pb(y),un.assert(!T),se(),I=G()),un.assert(C),un.assert(T);const{watchFile:O,watchDirectory:L,writeLog:j}=E$(e,C),M=Wt(m);let R;j(`Current directory: ${g} CaseSensitiveFileNames: ${m}`),h&&(R=O(h,function(){un.assert(!!h),n=2,ie()},2e3,w,F$.ConfigFile));const B=P$(e,()=>C,P);I$(B);const J=B.getSourceFile;B.getSourceFile=(e,...t)=>Y(e,X(e),...t),B.getSourceFileByPath=Y,B.getNewLine=()=>I,B.fileExists=function(e){const t=X(e);return!Q(d.get(t))&&P.fileExists(e)},B.onReleaseOldSourceFile=function(e,t,n){const r=d.get(e.resolvedPath);void 0!==r&&(Q(r)?(p||(p=[])).push(e.path):r.sourceFile===e&&(r.fileWatcher&&r.fileWatcher.close(),d.delete(e.resolvedPath),n||z.removeResolutionsOfFile(e.path)))},B.onReleaseParsedCommandLine=function(e){var t;const n=X(e),r=null==s?void 0:s.get(n);r&&(s.delete(n),r.watchedDirectories&&ux(r.watchedDirectories,RU),null==(t=r.watcher)||t.close(),FU(n,c))},B.toPath=X,B.getCompilationSettings=()=>C,B.useSourceOfProjectReferenceRedirect=We(e,e.useSourceOfProjectReferenceRedirect),B.preferNonRecursiveWatch=e.preferNonRecursiveWatch,B.watchDirectoryOfFailedLookupLocation=(e,t,n)=>L(e,t,n,w,F$.FailedLookupLocations),B.watchAffectingFileLocation=(e,t)=>O(e,t,2e3,w,F$.AffectingFileLocation),B.watchTypeRootsDirectory=(e,t,n)=>L(e,t,n,w,F$.TypeRoots),B.getCachedDirectoryStructureHost=()=>E,B.scheduleInvalidateResolutionsOfFailedLookupLocations=function(){if(!e.setTimeout||!e.clearTimeout)return z.invalidateResolutionsOfFailedLookupLocations();const t=ne();j("Scheduling invalidateFailedLookup"+(t?", Cancelled earlier one":"")),a=e.setTimeout(re,250,"timerToInvalidateFailedLookupResolutions")},B.onInvalidatedResolution=ie,B.onChangedAutomaticTypeDirectiveNames=ie,B.fileIsOpen=it,B.getCurrentProgram=H,B.writeLog=j,B.getParsedCommandLine=le;const z=r$(B,h?Do(Bo(h,g)):g,!1);B.resolveModuleNameLiterals=We(e,e.resolveModuleNameLiterals),B.resolveModuleNames=We(e,e.resolveModuleNames),B.resolveModuleNameLiterals||B.resolveModuleNames||(B.resolveModuleNameLiterals=z.resolveModuleNameLiterals.bind(z)),B.resolveTypeReferenceDirectiveReferences=We(e,e.resolveTypeReferenceDirectiveReferences),B.resolveTypeReferenceDirectives=We(e,e.resolveTypeReferenceDirectives),B.resolveTypeReferenceDirectiveReferences||B.resolveTypeReferenceDirectives||(B.resolveTypeReferenceDirectiveReferences=z.resolveTypeReferenceDirectiveReferences.bind(z)),B.resolveLibrary=e.resolveLibrary?e.resolveLibrary.bind(e):z.resolveLibrary.bind(z),B.getModuleResolutionCache=e.resolveModuleNameLiterals||e.resolveModuleNames?We(e,e.getModuleResolutionCache):()=>z.getModuleResolutionCache();const q=e.resolveModuleNameLiterals||e.resolveTypeReferenceDirectiveReferences||e.resolveModuleNames||e.resolveTypeReferenceDirectives?We(e,e.hasInvalidatedResolutions)||ot:it,U=e.resolveLibrary?We(e,e.hasInvalidatedLibResolutions)||ot:it;return t=J$(C,B),K(),h?{getCurrentProgram:$,getProgram:ae,close:V,getResolutionCache:W}:{getCurrentProgram:$,getProgram:ae,updateRootFileNames:function(e){un.assert(!h,"Cannot update root file names with config file watch mode"),T=e,ie()},close:V,getResolutionCache:W};function V(){ne(),z.clear(),ux(d,e=>{e&&e.fileWatcher&&(e.fileWatcher.close(),e.fileWatcher=void 0)}),R&&(R.close(),R=void 0),null==_||_.clear(),_=void 0,c&&(ux(c,RU),c=void 0),i&&(ux(i,RU),i=void 0),r&&(ux(r,nx),r=void 0),s&&(ux(s,e=>{var t;null==(t=e.watcher)||t.close(),e.watcher=void 0,e.watchedDirectories&&ux(e.watchedDirectories,RU),e.watchedDirectories=void 0}),s=void 0),t=void 0}function W(){return z}function $(){return t}function H(){return t&&t.getProgramOrUndefined()}function K(){j("Synchronizing program"),un.assert(C),un.assert(T),ne();const n=$();f&&(I=G(),n&&Zu(n.getCompilerOptions(),C)&&z.onChangesAffectModuleResolution());const{hasInvalidatedResolutions:o,hasInvalidatedLibResolutions:a}=z.createHasInvalidatedResolutions(q,U),{originalReadFile:c,originalFileExists:_,originalDirectoryExists:y,originalCreateDirectory:v,originalWriteFile:b,readFileWithCache:D}=$U(B,X);return EV(H(),T,C,e=>function(e,t){const n=d.get(e);if(!n)return;if(n.version)return n.version;const r=t(e);return void 0!==r?A$(B,r):void 0}(e,D),e=>B.fileExists(e),o,a,te,le,N)?F&&(u&&ee(_a.File_change_detected_Starting_incremental_compilation),t=x(void 0,void 0,B,t,S,N),F=!1):(u&&ee(_a.File_change_detected_Starting_incremental_compilation),function(e,n){j("CreatingProgramWith::"),j(` roots: ${JSON.stringify(T)}`),j(` options: ${JSON.stringify(C)}`),N&&j(` projectReferences: ${JSON.stringify(N)}`);const i=f||!H();f=!1,F=!1,z.startCachingPerDirectoryResolution(),B.hasInvalidatedResolutions=e,B.hasInvalidatedLibResolutions=n,B.hasChangedAutomaticTypeDirectiveNames=te;const o=H();if(t=x(T,C,B,t,S,N),z.finishCachingPerDirectoryResolution(t.getProgram(),o),PU(t.getProgram(),r||(r=new Map),pe),i&&z.updateTypeRootsWatch(),p){for(const e of p)r.has(e)||d.delete(e);p=void 0}}(o,a)),u=!1,e.afterProgramCreate&&n!==t&&e.afterProgramCreate(t),B.readFile=c,B.fileExists=_,B.directoryExists=y,B.createDirectory=v,B.writeFile=b,null==l||l.forEach((e,t)=>{if(t){const n=null==s?void 0:s.get(t);n&&function(e,t,n){var r,i,o,a;n.watcher||(n.watcher=O(e,(n,r)=>{de(e,t,r);const i=null==s?void 0:s.get(t);i&&(i.updateLevel=2),z.removeResolutionsFromProjectReferenceRedirects(t),ie()},2e3,(null==(r=n.parsedCommandLine)?void 0:r.watchOptions)||w,F$.ConfigFileOfReferencedProject)),AU(n.watchedDirectories||(n.watchedDirectories=new Map),null==(i=n.parsedCommandLine)?void 0:i.wildcardDirectories,(r,i)=>{var o;return L(r,n=>{const i=X(n);E&&E.addOrDeleteFileOrDirectory(n,i),Z(i);const o=null==s?void 0:s.get(t);(null==o?void 0:o.parsedCommandLine)&&(IU({watchedDirPath:X(r),fileOrDirectory:n,fileOrDirectoryPath:i,configFileName:e,options:o.parsedCommandLine.options,program:o.parsedCommandLine.fileNames,currentDirectory:g,useCaseSensitiveFileNames:m,writeLog:j,toPath:X})||2!==o.updateLevel&&(o.updateLevel=1,ie()))},i,(null==(o=n.parsedCommandLine)?void 0:o.watchOptions)||w,F$.WildcardDirectoryOfReferencedProject)}),ge(t,null==(o=n.parsedCommandLine)?void 0:o.options,(null==(a=n.parsedCommandLine)?void 0:a.watchOptions)||w,F$.ExtendedConfigOfReferencedProject)}(e,t,n)}else AU(i||(i=new Map),k,me),h&&ge(X(h),C,w,F$.ExtendedConfigFile)}),l=void 0,t}function G(){return Pb(C||y)}function X(e){return Uo(e,g,M)}function Q(e){return"boolean"==typeof e}function Y(e,t,n,r,i){const o=d.get(t);if(Q(o))return;const a="object"==typeof n?n.impliedNodeFormat:void 0;if(void 0===o||i||function(e){return"boolean"==typeof e.version}(o)||o.sourceFile.impliedNodeFormat!==a){const i=J(e,n,r);if(o)i?(o.sourceFile=i,o.version=i.version,o.fileWatcher||(o.fileWatcher=_e(t,e,ue,250,w,F$.SourceFile))):(o.fileWatcher&&o.fileWatcher.close(),d.set(t,!1));else if(i){const n=_e(t,e,ue,250,w,F$.SourceFile);d.set(t,{sourceFile:i,version:i.version,fileWatcher:n})}else d.set(t,!1);return i}return o.sourceFile}function Z(e){const t=d.get(e);void 0!==t&&(Q(t)?d.set(e,{version:!1}):t.version=!1)}function ee(t){e.onWatchStatusChange&&e.onWatchStatusChange(Qx(t),I,C||y)}function te(){return z.hasChangedAutomaticTypeDirectiveNames()}function ne(){return!!a&&(e.clearTimeout(a),a=void 0,!0)}function re(){a=void 0,z.invalidateResolutionsOfFailedLookupLocations()&&ie()}function ie(){e.setTimeout&&e.clearTimeout&&(o&&e.clearTimeout(o),j("Scheduling update"),o=e.setTimeout(oe,250,"timerToUpdateProgram"))}function oe(){o=void 0,u=!0,ae()}function ae(){switch(n){case 1:j("Reloading new file names and options"),un.assert(C),un.assert(h),n=0,T=jj(C.configFile.configFileSpecs,Bo(Do(h),g),C,A,b),hj(T,Bo(h,g),C.configFile.configFileSpecs,S,D)&&(F=!0),K();break;case 2:un.assert(h),j(`Reloading config file: ${h}`),n=0,E&&E.clearCache(),se(),f=!0,(l??(l=new Map)).set(void 0,void 0),K();break;default:K()}return $()}function se(){un.assert(h),ce(gL(h,y,A,_||(_=new Map),v,b))}function ce(e){T=e.fileNames,C=e.options,w=e.watchOptions,N=e.projectReferences,k=e.wildcardDirectories,S=PV(e).slice(),D=gj(e.raw),F=!0}function le(t){const n=X(t);let r=null==s?void 0:s.get(n);if(r){if(!r.updateLevel)return r.parsedCommandLine;if(r.parsedCommandLine&&1===r.updateLevel&&!e.getParsedCommandLine){j("Reloading new file names and options"),un.assert(C);const e=jj(r.parsedCommandLine.options.configFile.configFileSpecs,Bo(Do(t),g),C,A);return r.parsedCommandLine={...r.parsedCommandLine,fileNames:e},r.updateLevel=void 0,r.parsedCommandLine}}j(`Loading config file: ${t}`);const i=e.getParsedCommandLine?e.getParsedCommandLine(t):function(e){const t=A.onUnRecoverableConfigFileDiagnostic;A.onUnRecoverableConfigFileDiagnostic=rt;const n=gL(e,void 0,A,_||(_=new Map),v);return A.onUnRecoverableConfigFileDiagnostic=t,n}(t);return r?(r.parsedCommandLine=i,r.updateLevel=void 0):(s||(s=new Map)).set(n,r={parsedCommandLine:i}),(l??(l=new Map)).set(n,t),i}function _e(e,t,n,r,i,o){return O(t,(t,r)=>n(t,r,e),r,i,o)}function ue(e,t,n){de(e,n,t),2===t&&d.has(n)&&z.invalidateResolutionOfFile(n),Z(n),ie()}function de(e,t,n){E&&E.addOrDeleteFile(e,t,n)}function pe(e,t){return(null==s?void 0:s.has(e))?w$:_e(e,t,fe,500,w,F$.MissingFile)}function fe(e,t,n){de(e,n,t),0===t&&r.has(n)&&(r.get(n).close(),r.delete(n),Z(n),ie())}function me(e,t){return L(e,t=>{un.assert(h),un.assert(C);const r=X(t);E&&E.addOrDeleteFileOrDirectory(t,r),Z(r),IU({watchedDirPath:X(e),fileOrDirectory:t,fileOrDirectoryPath:r,configFileName:h,extraFileExtensions:b,options:C,program:$()||T,currentDirectory:g,useCaseSensitiveFileNames:m,writeLog:j,toPath:X})||2!==n&&(n=1,ie())},t,w,F$.WildcardDirectory)}function ge(e,t,r,i){DU(e,t,c||(c=new Map),(e,t)=>O(e,(r,i)=>{var o;de(e,t,i),_&&EU(_,t,X);const a=null==(o=c.get(t))?void 0:o.projects;(null==a?void 0:a.size)&&a.forEach(e=>{if(h&&X(h)===e)n=2;else{const t=null==s?void 0:s.get(e);t&&(t.updateLevel=2),z.removeResolutionsFromProjectReferenceRedirects(e)}ie()})},2e3,r,i),X)}}var W$=(e=>(e[e.Unbuildable=0]="Unbuildable",e[e.UpToDate=1]="UpToDate",e[e.UpToDateWithUpstreamTypes=2]="UpToDateWithUpstreamTypes",e[e.OutputMissing=3]="OutputMissing",e[e.ErrorReadingFile=4]="ErrorReadingFile",e[e.OutOfDateWithSelf=5]="OutOfDateWithSelf",e[e.OutOfDateWithUpstream=6]="OutOfDateWithUpstream",e[e.OutOfDateBuildInfoWithPendingEmit=7]="OutOfDateBuildInfoWithPendingEmit",e[e.OutOfDateBuildInfoWithErrors=8]="OutOfDateBuildInfoWithErrors",e[e.OutOfDateOptions=9]="OutOfDateOptions",e[e.OutOfDateRoots=10]="OutOfDateRoots",e[e.UpstreamOutOfDate=11]="UpstreamOutOfDate",e[e.UpstreamBlocked=12]="UpstreamBlocked",e[e.ComputingUpstream=13]="ComputingUpstream",e[e.TsVersionOutputOfDate=14]="TsVersionOutputOfDate",e[e.UpToDateWithInputFileText=15]="UpToDateWithInputFileText",e[e.ContainerOnly=16]="ContainerOnly",e[e.ForceBuild=17]="ForceBuild",e))(W$||{});function $$(e){return ko(e,".json")?e:jo(e,"tsconfig.json")}var H$=new Date(-864e13);function K$(e,t){return function(e,t){const n=e.get(t);let r;return n||(r=new Map,e.set(t,r)),n||r}(e,t)}function G$(e){return e.now?e.now():new Date}function X$(e){return!!e&&!!e.buildOrder}function Q$(e){return X$(e)?e.buildOrder:e}function Y$(e,t){return n=>{let r=t?`[${iV(l$(e),"")}] `:`${l$(e)} - `;r+=`${cV(n.messageText,e.newLine)}${e.newLine+e.newLine}`,e.write(r)}}function Z$(e,t,n,r){const i=O$(e,t);return i.getModifiedTime=e.getModifiedTime?t=>e.getModifiedTime(t):at,i.setModifiedTime=e.setModifiedTime?(t,n)=>e.setModifiedTime(t,n):rt,i.deleteFile=e.deleteFile?t=>e.deleteFile(t):rt,i.reportDiagnostic=n||a$(e),i.reportSolutionBuilderStatus=r||Y$(e),i.now=We(e,e.now),i}function eH(e=so,t,n,r,i){const o=Z$(e,t,n,r);return o.reportErrorSummary=i,o}function tH(e=so,t,n,r,i){const o=Z$(e,t,n,r);return Ve(o,D$(e,i)),o}function nH(e,t,n){return HH(!1,e,t,n)}function rH(e,t,n,r){return HH(!0,e,t,n,r)}function iH(e,t){return Uo(t,e.compilerHost.getCurrentDirectory(),e.compilerHost.getCanonicalFileName)}function oH(e,t){const{resolvedConfigFilePaths:n}=e,r=n.get(t);if(void 0!==r)return r;const i=iH(e,t);return n.set(t,i),i}function aH(e){return!!e.options}function sH(e,t){const n=e.configFileCache.get(t);return n&&aH(n)?n:void 0}function cH(e,t,n){const{configFileCache:r}=e,i=r.get(n);if(i)return aH(i)?i:void 0;let o;tr("SolutionBuilder::beforeConfigFileParsing");const{parseConfigFileHost:a,baseCompilerOptions:s,baseWatchOptions:c,extendedConfigCache:l,host:_}=e;let u;return _.getParsedCommandLine?(u=_.getParsedCommandLine(t),u||(o=Qx(_a.File_0_not_found,t))):(a.onUnRecoverableConfigFileDiagnostic=e=>o=e,u=gL(t,s,a,l,c),a.onUnRecoverableConfigFileDiagnostic=rt),r.set(n,u||o),tr("SolutionBuilder::afterConfigFileParsing"),nr("SolutionBuilder::Config file parsing","SolutionBuilder::beforeConfigFileParsing","SolutionBuilder::afterConfigFileParsing"),u}function lH(e,t){return $$(Mo(e.compilerHost.getCurrentDirectory(),t))}function _H(e,t){const n=new Map,r=new Map,i=[];let o,a;for(const e of t)s(e);return a?{buildOrder:o||l,circularDiagnostics:a}:o||l;function s(t,c){const l=oH(e,t);if(r.has(l))return;if(n.has(l))return void(c||(a||(a=[])).push(Qx(_a.Project_references_may_not_form_a_circular_graph_Cycle_detected_Colon_0,i.join("\r\n"))));n.set(l,!0),i.push(t);const _=cH(e,t,l);if(_&&_.projectReferences)for(const t of _.projectReferences)s(lH(e,t.path),c||t.circular);i.pop(),r.set(l,!0),(o||(o=[])).push(t)}}function uH(e){return e.buildOrder||function(e){const t=_H(e,e.rootNames.map(t=>lH(e,t)));e.resolvedConfigFilePaths.clear();const n=new Set(Q$(t).map(t=>oH(e,t))),r={onDeleteValue:rt};return dx(e.configFileCache,n,r),dx(e.projectStatus,n,r),dx(e.builderPrograms,n,r),dx(e.diagnostics,n,r),dx(e.projectPendingBuild,n,r),dx(e.projectErrorsReported,n,r),dx(e.buildInfoCache,n,r),dx(e.outputTimeStamps,n,r),dx(e.lastCachedPackageJsonLookups,n,r),e.watch&&(dx(e.allWatchedConfigFiles,n,{onDeleteValue:nx}),e.allWatchedExtendedConfigFiles.forEach(e=>{e.projects.forEach(t=>{n.has(t)||e.projects.delete(t)}),e.close()}),dx(e.allWatchedWildcardDirectories,n,{onDeleteValue:e=>e.forEach(RU)}),dx(e.allWatchedInputFiles,n,{onDeleteValue:e=>e.forEach(nx)}),dx(e.allWatchedPackageJsonFiles,n,{onDeleteValue:e=>e.forEach(nx)})),e.buildOrder=t}(e)}function dH(e,t,n){const r=t&&lH(e,t),i=uH(e);if(X$(i))return i;if(r){const t=oH(e,r);if(-1===k(i,n=>oH(e,n)===t))return}const o=r?_H(e,[r]):i;return un.assert(!X$(o)),un.assert(!n||void 0!==r),un.assert(!n||o[o.length-1]===r),n?o.slice(0,o.length-1):o}function pH(e){e.cache&&fH(e);const{compilerHost:t,host:n}=e,r=e.readFileWithCache,i=t.getSourceFile,{originalReadFile:o,originalFileExists:a,originalDirectoryExists:s,originalCreateDirectory:c,originalWriteFile:l,getSourceFileWithCache:_,readFileWithCache:u}=$U(n,t=>iH(e,t),(...e)=>i.call(t,...e));e.readFileWithCache=u,t.getSourceFile=_,e.cache={originalReadFile:o,originalFileExists:a,originalDirectoryExists:s,originalCreateDirectory:c,originalWriteFile:l,originalReadFileWithCache:r,originalGetSourceFile:i}}function fH(e){if(!e.cache)return;const{cache:t,host:n,compilerHost:r,extendedConfigCache:i,moduleResolutionCache:o,typeReferenceDirectiveResolutionCache:a,libraryResolutionCache:s}=e;n.readFile=t.originalReadFile,n.fileExists=t.originalFileExists,n.directoryExists=t.originalDirectoryExists,n.createDirectory=t.originalCreateDirectory,n.writeFile=t.originalWriteFile,r.getSourceFile=t.originalGetSourceFile,e.readFileWithCache=t.originalReadFileWithCache,i.clear(),null==o||o.clear(),null==a||a.clear(),null==s||s.clear(),e.cache=void 0}function mH(e,t){e.projectStatus.delete(t),e.diagnostics.delete(t)}function gH({projectPendingBuild:e},t,n){const r=e.get(t);(void 0===r||re.projectPendingBuild.set(oH(e,t),0)),t&&t.throwIfCancellationRequested())}var yH=(e=>(e[e.Build=0]="Build",e[e.UpdateOutputFileStamps=1]="UpdateOutputFileStamps",e))(yH||{});function vH(e,t){return e.projectPendingBuild.delete(t),e.diagnostics.has(t)?1:0}function bH(e,t,n){if(!e.projectPendingBuild.size)return;if(X$(t))return;const{options:r,projectPendingBuild:i}=e;for(let o=0;oi.options,getCurrentDirectory:()=>e.compilerHost.getCurrentDirectory(),getBuilderProgram:()=>u(st),getProgram:()=>u(e=>e.getProgramOrUndefined()),getSourceFile:e=>u(t=>t.getSourceFile(e)),getSourceFiles:()=>d(e=>e.getSourceFiles()),getOptionsDiagnostics:e=>d(t=>t.getOptionsDiagnostics(e)),getGlobalDiagnostics:e=>d(t=>t.getGlobalDiagnostics(e)),getConfigFileParsingDiagnostics:()=>d(e=>e.getConfigFileParsingDiagnostics()),getSyntacticDiagnostics:(e,t)=>d(n=>n.getSyntacticDiagnostics(e,t)),getAllDependencies:e=>d(t=>t.getAllDependencies(e)),getSemanticDiagnostics:(e,t)=>d(n=>n.getSemanticDiagnostics(e,t)),getSemanticDiagnosticsOfNextAffectedFile:(e,t)=>u(n=>n.getSemanticDiagnosticsOfNextAffectedFile&&n.getSemanticDiagnosticsOfNextAffectedFile(e,t)),emit:(n,r,i,o,a)=>n||o?u(s=>{var c,l;return s.emit(n,r,i,o,a||(null==(l=(c=e.host).getCustomTransformers)?void 0:l.call(c,t)))}):(m(0,i),f(r,i,a)),done:function(t,r,i){return m(3,t,r,i),tr("SolutionBuilder::Projects built"),vH(e,n)}};function u(e){return m(0),s&&e(s)}function d(e){return u(e)||l}function p(){var r,o,a;if(un.assert(void 0===s),e.options.dry)return GH(e,_a.A_non_dry_build_would_build_project_0,t),c=1,void(_=2);if(e.options.verbose&&GH(e,_a.Building_project_0,t),0===i.fileNames.length)return YH(e,n,PV(i)),c=0,void(_=2);const{host:l,compilerHost:u}=e;if(e.projectCompilerOptions=i.options,null==(r=e.moduleResolutionCache)||r.update(i.options),null==(o=e.typeReferenceDirectiveResolutionCache)||o.update(i.options),s=l.createProgram(i.fileNames,i.options,u,function({options:e,builderPrograms:t,compilerHost:n},r,i){if(!e.force)return t.get(r)||J$(i.options,n)}(e,n,i),PV(i),i.projectReferences),e.watch){const t=null==(a=e.moduleResolutionCache)?void 0:a.getPackageJsonInfoCache().getInternalMap();e.lastCachedPackageJsonLookups.set(n,t&&new Set(Oe(t.values(),t=>e.host.realpath&&(xM(t)||t.directoryExists)?e.host.realpath(jo(t.packageDirectory,"package.json")):jo(t.packageDirectory,"package.json")))),e.builderPrograms.set(n,s)}_++}function f(r,a,l){var u,d,p;un.assertIsDefined(s),un.assert(1===_);const{host:f,compilerHost:m}=e,g=new Map,h=s.getCompilerOptions(),y=Ek(h);let v,b;const{emitResult:x,diagnostics:k}=T$(s,e=>f.reportDiagnostic(e),e.write,void 0,(t,i,o,a,c,l)=>{var _;const u=iH(e,t);if(g.set(iH(e,t),t),null==l?void 0:l.buildInfo){b||(b=G$(e.host));const r=null==(_=s.hasChangedEmitSignature)?void 0:_.call(s),i=NH(e,t,n);i?(i.buildInfo=l.buildInfo,i.modifiedTime=b,r&&(i.latestChangedDtsTime=b)):e.buildInfoCache.set(n,{path:iH(e,t),buildInfo:l.buildInfo,modifiedTime:b,latestChangedDtsTime:r?b:void 0})}const d=(null==l?void 0:l.differsOnlyInMap)?qi(e.host,t):void 0;(r||m.writeFile)(t,i,o,a,c,l),(null==l?void 0:l.differsOnlyInMap)?e.host.setModifiedTime(t,d):!y&&e.watch&&(v||(v=wH(e,n))).set(u,b||(b=G$(e.host)))},a,void 0,l||(null==(d=(u=e.host).getCustomTransformers)?void 0:d.call(u,t)));return h.noEmitOnError&&k.length||!g.size&&8===o.type||AH(e,i,n,_a.Updating_unchanged_output_timestamps_of_project_0,g),e.projectErrorsReported.set(n,!0),c=(null==(p=s.hasChangedEmitSignature)?void 0:p.call(s))?0:2,k.length?(e.diagnostics.set(n,k),e.projectStatus.set(n,{type:0,reason:"it had errors"}),c|=4):(e.diagnostics.delete(n),e.projectStatus.set(n,{type:1,oldestOutputFileName:me(g.values())??dU(i,!f.useCaseSensitiveFileNames())})),function(e,t){t&&(e.host.afterProgramEmitAndDiagnostics&&e.host.afterProgramEmitAndDiagnostics(t),t.releaseProgram()),e.projectCompilerOptions=e.baseCompilerOptions}(e,s),_=2,x}function m(o,s,l,u){for(;_<=o&&_<3;){const o=_;switch(_){case 0:p();break;case 1:f(l,s,u);break;case 2:LH(e,t,n,r,i,a,un.checkDefined(c)),_++;break;default:nn()}un.assert(_>o)}}}(e,t.project,t.projectPath,t.projectIndex,t.config,t.status,n):function(e,t,n,r,i){let o=!0;return{kind:1,project:t,projectPath:n,buildOrder:i,getCompilerOptions:()=>r.options,getCurrentDirectory:()=>e.compilerHost.getCurrentDirectory(),updateOutputFileStatmps:()=>{OH(e,r,n),o=!1},done:()=>(o&&OH(e,r,n),tr("SolutionBuilder::Timestamps only updates"),vH(e,n))}}(e,t.project,t.projectPath,t.config,n)}function kH(e,t,n){const r=bH(e,t,n);return r?xH(e,r,t):r}function SH(e){return!!e.watcher}function TH(e,t){const n=iH(e,t),r=e.filesWatched.get(n);if(e.watch&&r){if(!SH(r))return r;if(r.modifiedTime)return r.modifiedTime}const i=qi(e.host,t);return e.watch&&(r?r.modifiedTime=i:e.filesWatched.set(n,i)),i}function CH(e,t,n,r,i,o,a){const s=iH(e,t),c=e.filesWatched.get(s);if(c&&SH(c))c.callbacks.push(n);else{const l=e.watchFile(t,(t,n,r)=>{const i=un.checkDefined(e.filesWatched.get(s));un.assert(SH(i)),i.modifiedTime=r,i.callbacks.forEach(e=>e(t,n,r))},r,i,o,a);e.filesWatched.set(s,{callbacks:[n],watcher:l,modifiedTime:c})}return{close:()=>{const t=un.checkDefined(e.filesWatched.get(s));un.assert(SH(t)),1===t.callbacks.length?(e.filesWatched.delete(s),RU(t)):Vt(t.callbacks,n)}}}function wH(e,t){if(!e.watch)return;let n=e.outputTimeStamps.get(t);return n||e.outputTimeStamps.set(t,n=new Map),n}function NH(e,t,n){const r=iH(e,t),i=e.buildInfoCache.get(n);return(null==i?void 0:i.path)===r?i:void 0}function DH(e,t,n,r){const i=iH(e,t),o=e.buildInfoCache.get(n);if(void 0!==o&&o.path===i)return o.buildInfo||void 0;const a=e.readFileWithCache(t),s=a?gU(t,a):void 0;return e.buildInfoCache.set(n,{path:i,buildInfo:s||!1,modifiedTime:r||zi}),s}function FH(e,t,n,r){if(nS&&(b=n,S=t),C.add(r)}if(v?(w||(w=jW(v,f,p)),N=rd(w.roots,(e,t)=>C.has(t)?void 0:t)):N=d(MW(y,f,p),e=>C.has(e)?void 0:e),N)return{type:10,buildInfoFile:f,inputFile:N};if(!m){const r=_U(t,!p.useCaseSensitiveFileNames()),i=wH(e,n);for(const t of r){if(t===f)continue;const n=iH(e,t);let r=null==i?void 0:i.get(n);if(r||(r=qi(e.host,t),null==i||i.set(n,r)),r===zi)return{type:3,missingOutputFileName:t};if(rFH(e,t,x,k));if(E)return E;const P=e.lastCachedPackageJsonLookups.get(n);return P&&id(P,t=>FH(e,t,x,k))||{type:D?2:T?15:1,newestInputFileTime:S,newestInputFileName:b,oldestOutputFileName:k}}(e,t,n);return tr("SolutionBuilder::afterUpToDateCheck"),nr("SolutionBuilder::Up-to-date check","SolutionBuilder::beforeUpToDateCheck","SolutionBuilder::afterUpToDateCheck"),e.projectStatus.set(n,i),i}function AH(e,t,n,r,i){if(t.options.noEmit)return;let o;const a=Gq(t.options),s=Ek(t.options);if(a&&s)return(null==i?void 0:i.has(iH(e,a)))||(e.options.verbose&&GH(e,r,t.options.configFilePath),e.host.setModifiedTime(a,o=G$(e.host)),NH(e,a,n).modifiedTime=o),void e.outputTimeStamps.delete(n);const{host:c}=e,l=_U(t,!c.useCaseSensitiveFileNames()),_=wH(e,n),u=_?new Set:void 0;if(!i||l.length!==i.size){let s=!!e.options.verbose;for(const d of l){const l=iH(e,d);(null==i?void 0:i.has(l))||(s&&(s=!1,GH(e,r,t.options.configFilePath)),c.setModifiedTime(d,o||(o=G$(e.host))),d===a?NH(e,a,n).modifiedTime=o:_&&(_.set(l,o),u.add(l)))}}null==_||_.forEach((e,t)=>{(null==i?void 0:i.has(t))||u.has(t)||_.delete(t)})}function IH(e,t,n){if(!t.composite)return;const r=un.checkDefined(e.buildInfoCache.get(n));if(void 0!==r.latestChangedDtsTime)return r.latestChangedDtsTime||void 0;const i=r.buildInfo&&kW(r.buildInfo)&&r.buildInfo.latestChangedDtsFile?e.host.getModifiedTime(Bo(r.buildInfo.latestChangedDtsFile,Do(r.path))):void 0;return r.latestChangedDtsTime=i||!1,i}function OH(e,t,n){if(e.options.dry)return GH(e,_a.A_non_dry_build_would_update_timestamps_for_output_of_project_0,t.options.configFilePath);AH(e,t,n,_a.Updating_output_timestamps_of_project_0),e.projectStatus.set(n,{type:1,oldestOutputFileName:dU(t,!e.host.useCaseSensitiveFileNames())})}function LH(e,t,n,r,i,o,a){if(!(e.options.stopBuildOnErrors&&4&a)&&i.options.composite)for(let i=r+1;ie.diagnostics.has(oH(e,t)))?c?2:1:0}(e,t,n,r,i,o);return tr("SolutionBuilder::afterBuild"),nr("SolutionBuilder::Build","SolutionBuilder::beforeBuild","SolutionBuilder::afterBuild"),a}function MH(e,t,n){tr("SolutionBuilder::beforeClean");const r=function(e,t,n){const r=dH(e,t,n);if(!r)return 3;if(X$(r))return QH(e,r.circularDiagnostics),4;const{options:i,host:o}=e,a=i.dry?[]:void 0;for(const t of r){const n=oH(e,t),r=cH(e,t,n);if(void 0===r){ZH(e,n);continue}const i=_U(r,!o.useCaseSensitiveFileNames());if(!i.length)continue;const s=new Set(r.fileNames.map(t=>iH(e,t)));for(const t of i)s.has(iH(e,t))||o.fileExists(t)&&(a?a.push(t):(o.deleteFile(t),RH(e,n,0)))}return a&&GH(e,_a.A_non_dry_build_would_delete_the_following_files_Colon_0,a.map(e=>`\r\n * ${e}`).join("")),0}(e,t,n);return tr("SolutionBuilder::afterClean"),nr("SolutionBuilder::Clean","SolutionBuilder::beforeClean","SolutionBuilder::afterClean"),r}function RH(e,t,n){e.host.getParsedCommandLine&&1===n&&(n=2),2===n&&(e.configFileCache.delete(t),e.buildOrder=void 0),e.needsSummary=!0,mH(e,t),gH(e,t,n),pH(e)}function BH(e,t,n){e.reportFileChangeDetected=!0,RH(e,t,n),JH(e,250,!0)}function JH(e,t,n){const{hostWithWatch:r}=e;r.setTimeout&&r.clearTimeout&&(e.timerToBuildInvalidatedProject&&r.clearTimeout(e.timerToBuildInvalidatedProject),e.timerToBuildInvalidatedProject=r.setTimeout(zH,t,"timerToBuildInvalidatedProject",e,n))}function zH(e,t,n){tr("SolutionBuilder::beforeBuild");const r=function(e,t){e.timerToBuildInvalidatedProject=void 0,e.reportFileChangeDetected&&(e.reportFileChangeDetected=!1,e.projectErrorsReported.clear(),XH(e,_a.File_change_detected_Starting_incremental_compilation));let n=0;const r=uH(e),i=kH(e,r,!1);if(i)for(i.done(),n++;e.projectPendingBuild.size;){if(e.timerToBuildInvalidatedProject)return;const i=bH(e,r,!1);if(!i)break;if(1!==i.kind&&(t||5===n))return void JH(e,100,!1);xH(e,i,r).done(),1!==i.kind&&n++}return fH(e),r}(t,n);tr("SolutionBuilder::afterBuild"),nr("SolutionBuilder::Build","SolutionBuilder::beforeBuild","SolutionBuilder::afterBuild"),r&&eK(t,r)}function qH(e,t,n,r){e.watch&&!e.allWatchedConfigFiles.has(n)&&e.allWatchedConfigFiles.set(n,CH(e,t,()=>BH(e,n,2),2e3,null==r?void 0:r.watchOptions,F$.ConfigFile,t))}function UH(e,t,n){DU(t,null==n?void 0:n.options,e.allWatchedExtendedConfigFiles,(t,r)=>CH(e,t,()=>{var t;return null==(t=e.allWatchedExtendedConfigFiles.get(r))?void 0:t.projects.forEach(t=>BH(e,t,2))},2e3,null==n?void 0:n.watchOptions,F$.ExtendedConfigFile),t=>iH(e,t))}function VH(e,t,n,r){e.watch&&AU(K$(e.allWatchedWildcardDirectories,n),r.wildcardDirectories,(i,o)=>e.watchDirectory(i,o=>{var a;IU({watchedDirPath:iH(e,i),fileOrDirectory:o,fileOrDirectoryPath:iH(e,o),configFileName:t,currentDirectory:e.compilerHost.getCurrentDirectory(),options:r.options,program:e.builderPrograms.get(n)||(null==(a=sH(e,n))?void 0:a.fileNames),useCaseSensitiveFileNames:e.parseConfigFileHost.useCaseSensitiveFileNames,writeLog:t=>e.writeLog(t),toPath:t=>iH(e,t)})||BH(e,n,1)},o,null==r?void 0:r.watchOptions,F$.WildcardDirectory,t))}function WH(e,t,n,r){e.watch&&px(K$(e.allWatchedInputFiles,n),new Set(r.fileNames),{createNewValue:i=>CH(e,i,()=>BH(e,n,0),250,null==r?void 0:r.watchOptions,F$.SourceFile,t),onDeleteValue:nx})}function $H(e,t,n,r){e.watch&&e.lastCachedPackageJsonLookups&&px(K$(e.allWatchedPackageJsonFiles,n),e.lastCachedPackageJsonLookups.get(n),{createNewValue:i=>CH(e,i,()=>BH(e,n,0),2e3,null==r?void 0:r.watchOptions,F$.PackageJson,t),onDeleteValue:nx})}function HH(e,t,n,r,i){const o=function(e,t,n,r,i){const o=t,a=t,s=function(e){const t={};return EO.forEach(n=>{De(e,n.name)&&(t[n.name]=e[n.name])}),t.tscBuild=!0,t}(r),c=P$(o,()=>m.projectCompilerOptions);let l,_,u;I$(c),c.getParsedCommandLine=e=>cH(m,e,oH(m,e)),c.resolveModuleNameLiterals=We(o,o.resolveModuleNameLiterals),c.resolveTypeReferenceDirectiveReferences=We(o,o.resolveTypeReferenceDirectiveReferences),c.resolveLibrary=We(o,o.resolveLibrary),c.resolveModuleNames=We(o,o.resolveModuleNames),c.resolveTypeReferenceDirectives=We(o,o.resolveTypeReferenceDirectives),c.getModuleResolutionCache=We(o,o.getModuleResolutionCache),c.resolveModuleNameLiterals||c.resolveModuleNames||(l=AM(c.getCurrentDirectory(),c.getCanonicalFileName),c.resolveModuleNameLiterals=(e,t,n,r,i)=>SV(e,t,n,r,i,o,l,vV),c.getModuleResolutionCache=()=>l),c.resolveTypeReferenceDirectiveReferences||c.resolveTypeReferenceDirectives||(_=IM(c.getCurrentDirectory(),c.getCanonicalFileName,void 0,null==l?void 0:l.getPackageJsonInfoCache(),null==l?void 0:l.optionsToRedirectsKey),c.resolveTypeReferenceDirectiveReferences=(e,t,n,r,i)=>SV(e,t,n,r,i,o,_,kV)),c.resolveLibrary||(u=AM(c.getCurrentDirectory(),c.getCanonicalFileName,void 0,null==l?void 0:l.getPackageJsonInfoCache()),c.resolveLibrary=(e,t,n)=>LM(e,t,n,o,u)),c.getBuildInfo=(e,t)=>DH(m,e,oH(m,t),void 0);const{watchFile:d,watchDirectory:p,writeLog:f}=E$(a,r),m={host:o,hostWithWatch:a,parseConfigFileHost:UV(o),write:We(o,o.trace),options:r,baseCompilerOptions:s,rootNames:n,baseWatchOptions:i,resolvedConfigFilePaths:new Map,configFileCache:new Map,projectStatus:new Map,extendedConfigCache:new Map,buildInfoCache:new Map,outputTimeStamps:new Map,builderPrograms:new Map,diagnostics:new Map,projectPendingBuild:new Map,projectErrorsReported:new Map,compilerHost:c,moduleResolutionCache:l,typeReferenceDirectiveResolutionCache:_,libraryResolutionCache:u,buildOrder:void 0,readFileWithCache:e=>o.readFile(e),projectCompilerOptions:s,cache:void 0,allProjectBuildPending:!0,needsSummary:!0,watchAllProjectsPending:e,watch:e,allWatchedWildcardDirectories:new Map,allWatchedInputFiles:new Map,allWatchedConfigFiles:new Map,allWatchedExtendedConfigFiles:new Map,allWatchedPackageJsonFiles:new Map,filesWatched:new Map,lastCachedPackageJsonLookups:new Map,timerToBuildInvalidatedProject:void 0,reportFileChangeDetected:!1,watchFile:d,watchDirectory:p,writeLog:f};return m}(e,t,n,r,i);return{build:(e,t,n,r)=>jH(o,e,t,n,r),clean:e=>MH(o,e),buildReferences:(e,t,n,r)=>jH(o,e,t,n,r,!0),cleanReferences:e=>MH(o,e,!0),getNextInvalidatedProject:e=>(hH(o,e),kH(o,uH(o),!1)),getBuildOrder:()=>uH(o),getUpToDateStatusOfProject:e=>{const t=lH(o,e),n=oH(o,t);return PH(o,cH(o,t,n),n)},invalidateProject:(e,t)=>RH(o,e,t||0),close:()=>function(e){ux(e.allWatchedConfigFiles,nx),ux(e.allWatchedExtendedConfigFiles,RU),ux(e.allWatchedWildcardDirectories,e=>ux(e,RU)),ux(e.allWatchedInputFiles,e=>ux(e,nx)),ux(e.allWatchedPackageJsonFiles,e=>ux(e,nx))}(o)}}function KH(e,t){return ia(t,e.compilerHost.getCurrentDirectory(),e.compilerHost.getCanonicalFileName)}function GH(e,t,...n){e.host.reportSolutionBuilderStatus(Qx(t,...n))}function XH(e,t,...n){var r,i;null==(i=(r=e.hostWithWatch).onWatchStatusChange)||i.call(r,Qx(t,...n),e.host.getNewLine(),e.baseCompilerOptions)}function QH({host:e},t){t.forEach(t=>e.reportDiagnostic(t))}function YH(e,t,n){QH(e,n),e.projectErrorsReported.set(t,!0),n.length&&e.diagnostics.set(t,n)}function ZH(e,t){YH(e,t,[e.configFileCache.get(t)])}function eK(e,t){if(!e.needsSummary)return;e.needsSummary=!1;const n=e.watch||!!e.host.reportErrorSummary,{diagnostics:r}=e;let i=0,o=[];X$(t)?(tK(e,t.buildOrder),QH(e,t.circularDiagnostics),n&&(i+=d$(t.circularDiagnostics)),n&&(o=[...o,...p$(t.circularDiagnostics)])):(t.forEach(t=>{const n=oH(e,t);e.projectErrorsReported.has(n)||QH(e,r.get(n)||l)}),n&&r.forEach(e=>i+=d$(e)),n&&r.forEach(e=>[...o,...p$(e)])),e.watch?XH(e,f$(i),i):e.host.reportErrorSummary&&e.host.reportErrorSummary(i,o)}function tK(e,t){e.options.verbose&&GH(e,_a.Projects_in_this_build_Colon_0,t.map(t=>"\r\n * "+KH(e,t)).join(""))}function nK(e,t,n){e.options.verbose&&function(e,t,n){switch(n.type){case 5:return GH(e,_a.Project_0_is_out_of_date_because_output_1_is_older_than_input_2,KH(e,t),KH(e,n.outOfDateOutputFileName),KH(e,n.newerInputFileName));case 6:return GH(e,_a.Project_0_is_out_of_date_because_output_1_is_older_than_input_2,KH(e,t),KH(e,n.outOfDateOutputFileName),KH(e,n.newerProjectName));case 3:return GH(e,_a.Project_0_is_out_of_date_because_output_file_1_does_not_exist,KH(e,t),KH(e,n.missingOutputFileName));case 4:return GH(e,_a.Project_0_is_out_of_date_because_there_was_error_reading_file_1,KH(e,t),KH(e,n.fileName));case 7:return GH(e,_a.Project_0_is_out_of_date_because_buildinfo_file_1_indicates_that_some_of_the_changes_were_not_emitted,KH(e,t),KH(e,n.buildInfoFile));case 8:return GH(e,_a.Project_0_is_out_of_date_because_buildinfo_file_1_indicates_that_program_needs_to_report_errors,KH(e,t),KH(e,n.buildInfoFile));case 9:return GH(e,_a.Project_0_is_out_of_date_because_buildinfo_file_1_indicates_there_is_change_in_compilerOptions,KH(e,t),KH(e,n.buildInfoFile));case 10:return GH(e,_a.Project_0_is_out_of_date_because_buildinfo_file_1_indicates_that_file_2_was_root_file_of_compilation_but_not_any_more,KH(e,t),KH(e,n.buildInfoFile),KH(e,n.inputFile));case 1:if(void 0!==n.newestInputFileTime)return GH(e,_a.Project_0_is_up_to_date_because_newest_input_1_is_older_than_output_2,KH(e,t),KH(e,n.newestInputFileName||""),KH(e,n.oldestOutputFileName||""));break;case 2:return GH(e,_a.Project_0_is_up_to_date_with_d_ts_files_from_its_dependencies,KH(e,t));case 15:return GH(e,_a.Project_0_is_up_to_date_but_needs_to_update_timestamps_of_output_files_that_are_older_than_input_files,KH(e,t));case 11:return GH(e,_a.Project_0_is_out_of_date_because_its_dependency_1_is_out_of_date,KH(e,t),KH(e,n.upstreamProjectName));case 12:return GH(e,n.upstreamProjectBlocked?_a.Project_0_can_t_be_built_because_its_dependency_1_was_not_built:_a.Project_0_can_t_be_built_because_its_dependency_1_has_errors,KH(e,t),KH(e,n.upstreamProjectName));case 0:return GH(e,_a.Project_0_is_out_of_date_because_1,KH(e,t),n.reason);case 14:return GH(e,_a.Project_0_is_out_of_date_because_output_for_it_was_generated_with_version_1_that_differs_with_current_version_2,KH(e,t),n.version,s);case 17:GH(e,_a.Project_0_is_being_forcibly_rebuilt,KH(e,t))}}(e,t,n)}var rK=(e=>(e[e.time=0]="time",e[e.count=1]="count",e[e.memory=2]="memory",e))(rK||{});function iK(e,t,n){return aK(e,n)?a$(e,!0):t}function oK(e){return!!e.writeOutputIsTTY&&e.writeOutputIsTTY()&&!e.getEnvironmentVariable("NO_COLOR")}function aK(e,t){return t&&void 0!==t.pretty?t.pretty:oK(e)}function sK(e){return e.options.all?_e(OO.concat(WO),(e,t)=>St(e.name,t.name)):N(OO.concat(WO),e=>!!e.showInSimplifiedHelpView)}function cK(e){e.write(mL(_a.Version_0,s)+e.newLine)}function lK(e){if(!oK(e))return{bold:e=>e,blue:e=>e,blueBackground:e=>e,brightWhite:e=>e};const t=e.getEnvironmentVariable("OS")&&e.getEnvironmentVariable("OS").toLowerCase().includes("windows"),n=e.getEnvironmentVariable("WT_SESSION"),r=e.getEnvironmentVariable("TERM_PROGRAM")&&"vscode"===e.getEnvironmentVariable("TERM_PROGRAM"),i="truecolor"===e.getEnvironmentVariable("COLORTERM")||"xterm-256color"===e.getEnvironmentVariable("TERM");function o(e){return`${e}`}return{bold:function(e){return`${e}`},blue:function(e){return!t||n||r?`${e}`:o(e)},brightWhite:o,blueBackground:function(e){return i?`${e}`:`${e}`}}}function _K(e){return`--${e.name}${e.shortName?`, -${e.shortName}`:""}`}function uK(e,t,n,r){var i;const o=[],a=lK(e),s=_K(t),c=function(e){if("object"!==e.type)return{valueType:function(e){switch(un.assert("listOrElement"!==e.type),e.type){case"string":case"number":case"boolean":return mL(_a.type_Colon);case"list":return mL(_a.one_or_more_Colon);default:return mL(_a.one_of_Colon)}}(e),possibleValues:function e(t){let n;switch(t.type){case"string":case"number":case"boolean":n=t.type;break;case"list":case"listOrElement":n=e(t.element);break;case"object":n="";break;default:const r={};return t.type.forEach((e,n)=>{var i;(null==(i=t.deprecatedKeys)?void 0:i.has(n))||(r[e]||(r[e]=[])).push(n)}),Object.entries(r).map(([,e])=>e.join("/")).join(", ")}return n}(e)}}(t),l="object"==typeof t.defaultValueDescription?mL(t.defaultValueDescription):(_=t.defaultValueDescription,u="list"===t.type||"listOrElement"===t.type?t.element.type:t.type,void 0!==_&&"object"==typeof u?Oe(u.entries()).filter(([,e])=>e===_).map(([e])=>e).join("/"):String(_));var _,u;const d=(null==(i=e.getWidthOfTerminal)?void 0:i.call(e))??0;if(d>=80){let i="";t.description&&(i=mL(t.description)),o.push(...f(s,i,n,r,d,!0),e.newLine),p(c,t)&&(c&&o.push(...f(c.valueType,c.possibleValues,n,r,d,!1),e.newLine),l&&o.push(...f(mL(_a.default_Colon),l,n,r,d,!1),e.newLine)),o.push(e.newLine)}else{if(o.push(a.blue(s),e.newLine),t.description){const e=mL(t.description);o.push(e)}if(o.push(e.newLine),p(c,t)){if(c&&o.push(`${c.valueType} ${c.possibleValues}`),l){c&&o.push(e.newLine);const t=mL(_a.default_Colon);o.push(`${t} ${l}`)}o.push(e.newLine)}o.push(e.newLine)}return o;function p(e,t){const n=t.defaultValueDescription;return!(t.category===_a.Command_line_Options||T(["string"],null==e?void 0:e.possibleValues)&&T([void 0,"false","n/a"],n))}function f(e,t,n,r,i,o){const s=[];let c=!0,l=t;const _=i-r;for(;l.length>0;){let t="";c?(t=e.padStart(n),t=t.padEnd(r),t=o?a.blue(t):t):t="".padStart(r);const i=l.substr(0,_);l=l.slice(_),s.push(`${t}${i}`),c=!1}return s}}function dK(e,t){let n=0;for(const e of t){const t=_K(e).length;n=n>t?n:t}const r=n+2,i=r+2;let o=[];for(const n of t){const t=uK(e,n,r,i);o=[...o,...t]}return o[o.length-2]!==e.newLine&&o.push(e.newLine),o}function pK(e,t,n,r,i,o){let a=[];if(a.push(lK(e).bold(t)+e.newLine+e.newLine),i&&a.push(i+e.newLine+e.newLine),!r)return a=[...a,...dK(e,n)],o&&a.push(o+e.newLine+e.newLine),a;const s=new Map;for(const e of n){if(!e.category)continue;const t=mL(e.category),n=s.get(t)??[];n.push(e),s.set(t,n)}return s.forEach((t,n)=>{a.push(`### ${n}${e.newLine}${e.newLine}`),a=[...a,...dK(e,t)]}),o&&a.push(o+e.newLine+e.newLine),a}function fK(e,t){let n=[...mK(e,`${mL(_a.tsc_Colon_The_TypeScript_Compiler)} - ${mL(_a.Version_0,s)}`)];n=[...n,...pK(e,mL(_a.BUILD_OPTIONS),N(t,e=>e!==WO),!1,Xx(_a.Using_build_b_will_make_tsc_behave_more_like_a_build_orchestrator_than_a_compiler_This_is_used_to_trigger_building_composite_projects_which_you_can_learn_more_about_at_0,"https://aka.ms/tsc-composite-builds"))];for(const t of n)e.write(t)}function mK(e,t){var n;const r=lK(e),i=[],o=(null==(n=e.getWidthOfTerminal)?void 0:n.call(e))??0,a=r.blueBackground("".padStart(5)),s=r.blueBackground(r.brightWhite("TS ".padStart(5)));if(o>=t.length+5){const n=(o>120?120:o)-5;i.push(t.padEnd(n)+a+e.newLine),i.push("".padStart(n)+s+e.newLine)}else i.push(t+e.newLine),i.push(e.newLine);return i}function gK(e,t){t.options.all?function(e,t,n,r){let i=[...mK(e,`${mL(_a.tsc_Colon_The_TypeScript_Compiler)} - ${mL(_a.Version_0,s)}`)];i=[...i,...pK(e,mL(_a.ALL_COMPILER_OPTIONS),t,!0,void 0,Xx(_a.You_can_learn_about_all_of_the_compiler_options_at_0,"https://aka.ms/tsc"))],i=[...i,...pK(e,mL(_a.WATCH_OPTIONS),r,!1,mL(_a.Including_watch_w_will_start_watching_the_current_project_for_the_file_changes_Once_set_you_can_config_watch_mode_with_Colon))],i=[...i,...pK(e,mL(_a.BUILD_OPTIONS),N(n,e=>e!==WO),!1,Xx(_a.Using_build_b_will_make_tsc_behave_more_like_a_build_orchestrator_than_a_compiler_This_is_used_to_trigger_building_composite_projects_which_you_can_learn_more_about_at_0,"https://aka.ms/tsc-composite-builds"))];for(const t of i)e.write(t)}(e,sK(t),$O,FO):function(e,t){const n=lK(e);let r=[...mK(e,`${mL(_a.tsc_Colon_The_TypeScript_Compiler)} - ${mL(_a.Version_0,s)}`)];r.push(n.bold(mL(_a.COMMON_COMMANDS))+e.newLine+e.newLine),a("tsc",_a.Compiles_the_current_project_tsconfig_json_in_the_working_directory),a("tsc app.ts util.ts",_a.Ignoring_tsconfig_json_compiles_the_specified_files_with_default_compiler_options),a("tsc -b",_a.Build_a_composite_project_in_the_working_directory),a("tsc --init",_a.Creates_a_tsconfig_json_with_the_recommended_settings_in_the_working_directory),a("tsc -p ./path/to/tsconfig.json",_a.Compiles_the_TypeScript_project_located_at_the_specified_path),a("tsc --help --all",_a.An_expanded_version_of_this_information_showing_all_possible_compiler_options),a(["tsc --noEmit","tsc --target esnext"],_a.Compiles_the_current_project_with_additional_settings);const i=t.filter(e=>e.isCommandLineOnly||e.category===_a.Command_line_Options),o=t.filter(e=>!T(i,e));r=[...r,...pK(e,mL(_a.COMMAND_LINE_FLAGS),i,!1,void 0,void 0),...pK(e,mL(_a.COMMON_COMPILER_OPTIONS),o,!1,void 0,Xx(_a.You_can_learn_about_all_of_the_compiler_options_at_0,"https://aka.ms/tsc"))];for(const t of r)e.write(t);function a(t,i){const o="string"==typeof t?[t]:t;for(const t of o)r.push(" "+n.blue(t)+e.newLine);r.push(" "+mL(i)+e.newLine+e.newLine)}}(e,sK(t))}function hK(e,t,n){let r,i=a$(e);if(n.options.locale&&lc(n.options.locale,e,n.errors),n.errors.length>0)return n.errors.forEach(i),e.exit(1);if(n.options.init)return function(e,t,n){const r=Jo(jo(e.getCurrentDirectory(),"tsconfig.json"));if(e.fileExists(r))t(Qx(_a.A_tsconfig_json_file_is_already_defined_at_Colon_0,r));else{e.writeFile(r,XL(n,e.newLine));const t=[e.newLine,...mK(e,"Created a new tsconfig.json")];t.push("You can learn more at https://aka.ms/tsconfig"+e.newLine);for(const n of t)e.write(n)}}(e,i,n.options),e.exit(0);if(n.options.version)return cK(e),e.exit(0);if(n.options.help||n.options.all)return gK(e,n),e.exit(0);if(n.options.watch&&n.options.listFilesOnly)return i(Qx(_a.Options_0_and_1_cannot_be_combined,"watch","listFilesOnly")),e.exit(1);if(n.options.project){if(0!==n.fileNames.length)return i(Qx(_a.Option_project_cannot_be_mixed_with_source_files_on_a_command_line)),e.exit(1);const t=Jo(n.options.project);if(!t||e.directoryExists(t)){if(r=jo(t,"tsconfig.json"),!e.fileExists(r))return i(Qx(_a.Cannot_find_a_tsconfig_json_file_at_the_specified_directory_Colon_0,n.options.project)),e.exit(1)}else if(r=t,!e.fileExists(r))return i(Qx(_a.The_specified_path_does_not_exist_Colon_0,n.options.project)),e.exit(1)}else 0===n.fileNames.length&&(r=BU(Jo(e.getCurrentDirectory()),t=>e.fileExists(t)));if(0===n.fileNames.length&&!r)return n.options.showConfig?i(Qx(_a.Cannot_find_a_tsconfig_json_file_at_the_current_directory_Colon_0,Jo(e.getCurrentDirectory()))):(cK(e),gK(e,n)),e.exit(1);const o=e.getCurrentDirectory(),a=QL(n.options,e=>Bo(e,o));if(r){const o=new Map,s=u$(r,a,o,n.watchOptions,e,i);if(a.showConfig)return 0!==s.errors.length?(i=iK(e,i,s.options),s.errors.forEach(i),e.exit(1)):(e.write(JSON.stringify(qL(s,r,e),null,4)+e.newLine),e.exit(0));if(i=iK(e,i,s.options),tx(s.options)){if(bK(e,i))return;return function(e,t,n,r,i,o,a){const s=M$({configFileName:r.options.configFilePath,optionsToExtend:i,watchOptionsToExtend:o,system:e,reportDiagnostic:n,reportWatchStatus:FK(e,r.options)});return DK(e,t,s),s.configFileParsingResult=r,s.extendedConfigCache=a,V$(s)}(e,t,i,s,a,n.watchOptions,o)}Ek(s.options)?CK(e,t,i,s):TK(e,t,i,s)}else{if(a.showConfig)return e.write(JSON.stringify(qL(n,jo(o,"tsconfig.json"),e),null,4)+e.newLine),e.exit(0);if(i=iK(e,i,a),tx(a)){if(bK(e,i))return;return function(e,t,n,r,i,o){const a=R$({rootFiles:r,options:i,watchOptions:o,system:e,reportDiagnostic:n,reportWatchStatus:FK(e,i)});return DK(e,t,a),V$(a)}(e,t,i,n.fileNames,a,n.watchOptions)}Ek(a)?CK(e,t,i,{...n,options:a}):TK(e,t,i,{...n,options:a})}}function yK(e){if(e.length>0&&45===e[0].charCodeAt(0)){const t=e[0].slice(45===e[0].charCodeAt(1)?2:1).toLowerCase();return t===WO.name||t===WO.shortName}return!1}function vK(e,t,n){if(yK(n)){const{buildOptions:r,watchOptions:i,projects:o,errors:a}=fL(n);if(!r.generateCpuProfile||!e.enableCPUProfiler)return kK(e,t,r,i,o,a);e.enableCPUProfiler(r.generateCpuProfile,()=>kK(e,t,r,i,o,a))}const r=lL(n,t=>e.readFile(t));if(!r.options.generateCpuProfile||!e.enableCPUProfiler)return hK(e,t,r);e.enableCPUProfiler(r.options.generateCpuProfile,()=>hK(e,t,r))}function bK(e,t){return!(e.watchFile&&e.watchDirectory||(t(Qx(_a.The_current_host_does_not_support_the_0_option,"--watch")),e.exit(1),0))}var xK=2;function kK(e,t,n,r,i,o){const a=iK(e,a$(e),n);if(n.locale&&lc(n.locale,e,o),o.length>0)return o.forEach(a),e.exit(1);if(n.help)return cK(e),fK(e,HO),e.exit(0);if(0===i.length)return cK(e),fK(e,HO),e.exit(0);if(!e.getModifiedTime||!e.setModifiedTime||n.clean&&!e.deleteFile)return a(Qx(_a.The_current_host_does_not_support_the_0_option,"--build")),e.exit(1);if(n.watch){if(bK(e,a))return;const o=tH(e,void 0,a,Y$(e,aK(e,n)),FK(e,n));o.jsDocParsingMode=xK;const s=EK(e,n);wK(e,t,o,s);const c=o.onWatchStatusChange;let l=!1;o.onWatchStatusChange=(e,t,n,r)=>{null==c||c(e,t,n,r),!l||e.code!==_a.Found_0_errors_Watching_for_file_changes.code&&e.code!==_a.Found_1_error_Watching_for_file_changes.code||PK(_,s)};const _=rH(o,i,n,r);return _.build(),PK(_,s),l=!0,_}const s=eH(e,void 0,a,Y$(e,aK(e,n)),SK(e,n));s.jsDocParsingMode=xK;const c=EK(e,n);wK(e,t,s,c);const l=nH(s,i,n),_=n.clean?l.clean():l.build();return PK(l,c),pr(),e.exit(_)}function SK(e,t){return aK(e,t)?(t,n)=>e.write(g$(t,n,e.newLine,e)):void 0}function TK(e,t,n,r){const{fileNames:i,options:o,projectReferences:a}=r,s=WU(o,void 0,e);s.jsDocParsingMode=xK;const c=s.getCurrentDirectory(),l=Wt(s.useCaseSensitiveFileNames());$U(s,e=>Uo(e,c,l)),OK(e,o,!1);const _=LV({rootNames:i,options:o,projectReferences:a,host:s,configFileParsingDiagnostics:PV(r)}),u=C$(_,n,t=>e.write(t+e.newLine),SK(e,o));return jK(e,_,void 0),t(_),e.exit(u)}function CK(e,t,n,r){const{options:i,fileNames:o,projectReferences:a}=r;OK(e,i,!1);const s=z$(i,e);s.jsDocParsingMode=xK;const c=B$({host:s,system:e,rootNames:o,options:i,configFileParsingDiagnostics:PV(r),projectReferences:a,reportDiagnostic:n,reportErrorSummary:SK(e,i),afterProgramEmitAndDiagnostics:n=>{jK(e,n.getProgram(),void 0),t(n)}});return e.exit(c)}function wK(e,t,n,r){NK(e,n,!0),n.afterProgramEmitAndDiagnostics=n=>{jK(e,n.getProgram(),r),t(n)}}function NK(e,t,n){const r=t.createProgram;t.createProgram=(t,i,o,a,s,c)=>(un.assert(void 0!==t||void 0===i&&!!a),void 0!==i&&OK(e,i,n),r(t,i,o,a,s,c))}function DK(e,t,n){n.jsDocParsingMode=xK,NK(e,n,!1);const r=n.afterProgramCreate;n.afterProgramCreate=n=>{r(n),jK(e,n.getProgram(),void 0),t(n)}}function FK(e,t){return _$(e,aK(e,t))}function EK(e,t){if(e===so&&t.extendedDiagnostics)return _r(),function(){let e;return{addAggregateStatistic:function(t){const n=null==e?void 0:e.get(t.name);n?2===n.type?n.value=Math.max(n.value,t.value):n.value+=t.value:(e??(e=new Map)).set(t.name,t)},forEachAggregateStatistics:function(t){null==e||e.forEach(t)},clear:function(){e=void 0}}}()}function PK(e,t){if(!t)return;if(!lr())return void so.write(_a.Performance_timings_for_diagnostics_or_extendedDiagnostics_are_not_available_in_this_session_A_native_implementation_of_the_Web_Performance_API_could_not_be_found.message+"\n");const n=[];function r(e){const t=rr(e);t&&n.push({name:i(e),value:t,type:1})}function i(e){return e.replace("SolutionBuilder::","")}n.push({name:"Projects in scope",value:Q$(e.getBuildOrder()).length,type:1}),r("SolutionBuilder::Projects built"),r("SolutionBuilder::Timestamps only updates"),r("SolutionBuilder::Bundles updated"),t.forEachAggregateStatistics(e=>{e.name=`Aggregate ${e.name}`,n.push(e)}),or((e,t)=>{LK(e)&&n.push({name:`${i(e)} time`,value:t,type:0})}),ur(),_r(),t.clear(),MK(so,n)}function AK(e,t){return e===so&&(t.diagnostics||t.extendedDiagnostics)}function IK(e,t){return e===so&&t.generateTrace}function OK(e,t,n){AK(e,t)&&_r(e),IK(e,t)&&dr(n?"build":"project",t.generateTrace,t.configFilePath)}function LK(e){return Gt(e,"SolutionBuilder::")}function jK(e,t,n){var r;const i=t.getCompilerOptions();let o;if(IK(e,i)&&(null==(r=Hn)||r.stopTracing()),AK(e,i)){o=[];const r=e.getMemoryUsage?e.getMemoryUsage():-1;s("Files",t.getSourceFiles().length);const l=function(e){const t=function(){const e=new Map;return e.set("Library",0),e.set("Definitions",0),e.set("TypeScript",0),e.set("JavaScript",0),e.set("JSON",0),e.set("Other",0),e}();return d(e.getSourceFiles(),n=>{const r=function(e,t){if(e.isSourceFileDefaultLibrary(t))return"Library";if(t.isDeclarationFile)return"Definitions";const n=t.path;return So(n,SS)?"TypeScript":So(n,wS)?"JavaScript":ko(n,".json")?"JSON":"Other"}(e,n),i=Ma(n).length;t.set(r,t.get(r)+i)}),t}(t);if(i.extendedDiagnostics)for(const[e,t]of l.entries())s("Lines of "+e,t);else s("Lines",g(l.values(),(e,t)=>e+t,0));s("Identifiers",t.getIdentifierCount()),s("Symbols",t.getSymbolCount()),s("Types",t.getTypeCount()),s("Instantiations",t.getInstantiationCount()),r>=0&&a({name:"Memory used",value:r,type:2},!0);const _=lr(),u=_?ir("Program"):0,p=_?ir("Bind"):0,f=_?ir("Check"):0,m=_?ir("Emit"):0;if(i.extendedDiagnostics){const e=t.getRelationCacheSizes();s("Assignability cache size",e.assignable),s("Identity cache size",e.identity),s("Subtype cache size",e.subtype),s("Strict subtype cache size",e.strictSubtype),_&&or((e,t)=>{LK(e)||c(`${e} time`,t,!0)})}else _&&(c("I/O read",ir("I/O Read"),!0),c("I/O write",ir("I/O Write"),!0),c("Parse time",u,!0),c("Bind time",p,!0),c("Check time",f,!0),c("Emit time",m,!0));_&&c("Total time",u+p+f+m,!1),MK(e,o),_?n?(or(e=>{LK(e)||sr(e)}),ar(e=>{LK(e)||cr(e)})):ur():e.write(_a.Performance_timings_for_diagnostics_or_extendedDiagnostics_are_not_available_in_this_session_A_native_implementation_of_the_Web_Performance_API_could_not_be_found.message+"\n")}function a(e,t){o.push(e),t&&(null==n||n.addAggregateStatistic(e))}function s(e,t){a({name:e,value:t,type:1},!0)}function c(e,t,n){a({name:e,value:t,type:0},n)}}function MK(e,t){let n=0,r=0;for(const e of t){e.name.length>n&&(n=e.name.length);const t=RK(e);t.length>r&&(r=t.length)}for(const i of t)e.write(`${i.name}:`.padEnd(n+2)+RK(i).toString().padStart(r)+e.newLine)}function RK(e){switch(e.type){case 1:return""+e.value;case 0:return(e.value/1e3).toFixed(2)+"s";case 2:return Math.round(e.value/1e3)+"K";default:un.assertNever(e.type)}}function BK(e,t=!0){return{type:e,reportFallback:t}}var JK=BK(void 0,!1),zK=BK(void 0,!1),qK=BK(void 0,!0);function UK(e,t){const n=Jk(e,"strictNullChecks");return{serializeTypeOfDeclaration:function(e,n,r){switch(e.kind){case 170:case 342:return u(e,n,r);case 261:return function(e,n,r){var i;const o=fv(e);let s=qK;return o?s=BK(a(o,r,e,n)):!e.initializer||1!==(null==(i=n.declarations)?void 0:i.length)&&1!==w(n.declarations,lE)||t.isExpandoFunctionDeclaration(e)||F(e)||(s=h(e.initializer,r,void 0,void 0,sf(e))),void 0!==s.type?s.type:d(e,n,r,s.reportFallback)}(e,n,r);case 172:case 349:case 173:return function(e,n,r){const i=fv(e),o=t.requiresAddingImplicitUndefined(e,n,r.enclosingDeclaration);let s=qK;if(i)s=BK(a(i,r,e,n,o));else{const t=ND(e)?e.initializer:void 0;t&&!F(e)&&(s=h(t,r,void 0,o,nf(e)))}return void 0!==s.type?s.type:d(e,n,r,s.reportFallback)}(e,n,r);case 209:return d(e,n,r);case 278:return l(e.expression,r,void 0,!0);case 212:case 213:case 227:return function(e,t,n){const r=fv(e);let i;r&&(i=a(r,n,e,t));const o=n.suppressReportInferenceFallback;n.suppressReportInferenceFallback=!0;const s=i??d(e,t,n,!1);return n.suppressReportInferenceFallback=o,s}(e,n,r);case 304:case 305:return function(e,n,r){const i=fv(e);let a;if(i&&t.canReuseTypeNodeAnnotation(r,e,i,n)&&(a=o(i,r)),!a&&304===e.kind){const i=e.initializer,s=TA(i)?CA(i):235===i.kind||217===i.kind?i.type:void 0;s&&!kl(s)&&t.canReuseTypeNodeAnnotation(r,e,s,n)&&(a=o(s,r))}return a??d(e,n,r,!1)}(e,n,r);default:un.assertNever(e,`Node needs to be an inferrable node, found ${un.formatSyntaxKind(e.kind)}`)}},serializeReturnTypeForSignature:function(e,t,n){switch(e.kind){case 178:return c(e,t,n);case 175:case 263:case 181:case 174:case 180:case 177:case 179:case 182:case 185:case 186:case 219:case 220:case 318:case 324:return D(e,t,n);default:un.assertNever(e,`Node needs to be an inferrable node, found ${un.formatSyntaxKind(e.kind)}`)}},serializeTypeOfExpression:l,serializeTypeOfAccessor:c,tryReuseExistingTypeNode(e,n){if(t.canReuseTypeNode(e,n))return i(e,n)}};function r(e,n,r=n){return void 0===n?void 0:t.markNodeReuse(e,16&n.flags?n:mw.cloneNode(n),r??n)}function i(n,i){const{finalizeBoundary:o,startRecoveryScope:a,hadError:s,markError:c}=t.createRecoveryBoundary(n),l=lJ(i,_,b_);if(o())return n.approximateLength+=i.end-i.pos,l;function _(i){if(s())return i;const o=a(),l=EC(i)?t.enterNewScope(n,i):void 0,u=function(i){var o;if(lP(i))return lJ(i.type,_,b_);if(mP(i)||320===i.kind)return mw.createKeywordTypeNode(133);if(gP(i))return mw.createKeywordTypeNode(159);if(hP(i))return mw.createUnionTypeNode([lJ(i.type,_,b_),mw.createLiteralTypeNode(mw.createNull())]);if(vP(i))return mw.createUnionTypeNode([lJ(i.type,_,b_),mw.createKeywordTypeNode(157)]);if(yP(i))return lJ(i.type,_);if(xP(i))return mw.createArrayTypeNode(lJ(i.type,_,b_));if(TP(i))return mw.createTypeLiteralNode(E(i.jsDocPropertyTags,e=>{const r=lJ(aD(e.name)?e.name:e.name.right,_,aD),o=t.getJsDocPropertyOverride(n,i,e);return mw.createPropertySignature(void 0,r,e.isBracketed||e.typeExpression&&vP(e.typeExpression.type)?mw.createToken(58):void 0,o||e.typeExpression&&lJ(e.typeExpression.type,_,b_)||mw.createKeywordTypeNode(133))}));if(RD(i)&&aD(i.typeName)&&""===i.typeName.escapedText)return hw(mw.createKeywordTypeNode(133),i);if((OF(i)||RD(i))&&Om(i))return mw.createTypeLiteralNode([mw.createIndexSignature(void 0,[mw.createParameterDeclaration(void 0,void 0,"x",void 0,lJ(i.typeArguments[0],_,b_))],lJ(i.typeArguments[1],_,b_))]);if(bP(i)){if(Ng(i)){let e;return mw.createConstructorTypeNode(void 0,_J(i.typeParameters,_,SD),B(i.parameters,(r,i)=>r.name&&aD(r.name)&&"new"===r.name.escapedText?void(e=r.type):mw.createParameterDeclaration(void 0,l(r),t.markNodeReuse(n,mw.createIdentifier(u(r,i)),r),mw.cloneNode(r.questionToken),lJ(r.type,_,b_),void 0)),lJ(e||i.type,_,b_)||mw.createKeywordTypeNode(133))}return mw.createFunctionTypeNode(_J(i.typeParameters,_,SD),E(i.parameters,(e,r)=>mw.createParameterDeclaration(void 0,l(e),t.markNodeReuse(n,mw.createIdentifier(u(e,r)),e),mw.cloneNode(e.questionToken),lJ(e.type,_,b_),void 0)),lJ(i.type,_,b_)||mw.createKeywordTypeNode(133))}if(ZD(i))return t.canReuseTypeNode(n,i)||c(),i;if(SD(i)){const{node:e}=t.trackExistingEntityName(n,i.name);return mw.updateTypeParameterDeclaration(i,_J(i.modifiers,_,Zl),e,lJ(i.constraint,_,b_),lJ(i.default,_,b_))}if(tF(i)){return d(i)||(c(),i)}if(RD(i)){return m(i)||(c(),i)}if(df(i)){if(132===(null==(o=i.attributes)?void 0:o.token))return c(),i;if(!t.canReuseTypeNode(n,i))return t.serializeExistingTypeNode(n,i);const e=function(e,r){const i=t.getModuleSpecifierOverride(n,e,r);return i?hw(mw.createStringLiteral(i),r):r}(i,i.argument.literal),a=e===i.argument.literal?r(n,i.argument.literal):e;return mw.updateImportTypeNode(i,a===i.argument.literal?r(n,i.argument):mw.createLiteralTypeNode(a),lJ(i.attributes,_,wE),lJ(i.qualifier,_,e_),_J(i.typeArguments,_,b_),i.isTypeOf)}if(Sc(i)&&168===i.name.kind&&!t.hasLateBindableName(i)){if(!Rh(i))return a(i,_);if(t.shouldRemoveDeclaration(n,i))return}if(r_(i)&&!i.type||ND(i)&&!i.type&&!i.initializer||wD(i)&&!i.type&&!i.initializer||TD(i)&&!i.type&&!i.initializer){let e=a(i,_);return e===i&&(e=t.markNodeReuse(n,mw.cloneNode(i),i)),e.type=mw.createKeywordTypeNode(133),TD(i)&&(e.modifiers=void 0),e}if(zD(i)){return f(i)||(c(),i)}if(kD(i)&&ab(i.expression)){const{node:r,introducesError:o}=t.trackExistingEntityName(n,i.expression);if(o){const r=t.serializeTypeOfExpression(n,i.expression);let o;if(rF(r))o=r.literal;else{const e=t.evaluateEntityNameExpression(i.expression),a="string"==typeof e.value?mw.createStringLiteral(e.value,void 0):"number"==typeof e.value?mw.createNumericLiteral(e.value,0):void 0;if(!a)return iF(r)&&t.trackComputedName(n,i.expression),i;o=a}return 11===o.kind&&ms(o.text,yk(e))?mw.createIdentifier(o.text):9!==o.kind||o.text.startsWith("-")?mw.updateComputedPropertyName(i,o):o}return mw.updateComputedPropertyName(i,r)}if(MD(i)){let e;if(aD(i.parameterName)){const{node:r,introducesError:o}=t.trackExistingEntityName(n,i.parameterName);o&&c(),e=r}else e=mw.cloneNode(i.parameterName);return mw.updateTypePredicateNode(i,mw.cloneNode(i.assertsModifier),e,lJ(i.type,_,b_))}if(VD(i)||qD(i)||nF(i)){const e=a(i,_),r=t.markNodeReuse(n,e===i?mw.cloneNode(i):e,i);return xw(r,Zd(r)|(1024&n.flags&&qD(i)?0:1)),r}if(UN(i)&&268435456&n.flags&&!i.singleQuote){const e=mw.cloneNode(i);return e.singleQuote=!0,e}if(XD(i)){const e=lJ(i.checkType,_,b_),r=t.enterNewScope(n,i),o=lJ(i.extendsType,_,b_),a=lJ(i.trueType,_,b_);r();const s=lJ(i.falseType,_,b_);return mw.updateConditionalTypeNode(i,e,o,a,s)}if(eF(i))if(158===i.operator&&155===i.type.kind){if(!t.canReuseTypeNode(n,i))return c(),i}else if(143===i.operator){return p(i)||(c(),i)}return a(i,_);function a(e,t){return vJ(e,t,void 0,n.enclosingFile&&n.enclosingFile===vd(e)?void 0:s)}function s(e,t,n,r,i){let o=_J(e,t,n,r,i);return o&&(-1===o.pos&&-1===o.end||(o===e&&(o=mw.createNodeArray(e.slice(),e.hasTrailingComma)),CT(o,-1,-1))),o}function l(e){return e.dotDotDotToken||(e.type&&xP(e.type)?mw.createToken(26):void 0)}function u(e,t){return e.name&&aD(e.name)&&"this"===e.name.escapedText?"this":l(e)?"args":`arg${t}`}}(i);return null==l||l(),s()?b_(i)&&!MD(i)?(o(),t.serializeExistingTypeNode(n,i)):i:u?t.markNodeReuse(n,u,i):void 0}function u(e){const t=oh(e);switch(t.kind){case 184:return m(t);case 187:return f(t);case 200:return d(t);case 199:const e=t;if(143===e.operator)return p(e)}return lJ(e,_,b_)}function d(e){const t=u(e.objectType);if(void 0!==t)return mw.updateIndexedAccessTypeNode(e,t,lJ(e.indexType,_,b_))}function p(e){un.assertEqual(e.operator,143);const t=u(e.type);if(void 0!==t)return mw.updateTypeOperatorNode(e,t)}function f(e){const{introducesError:r,node:i}=t.trackExistingEntityName(n,e.exprName);if(!r)return mw.updateTypeQueryNode(e,i,_J(e.typeArguments,_,b_));const o=t.serializeTypeName(n,e.exprName,!0);return o?t.markNodeReuse(n,o,e.exprName):void 0}function m(e){if(t.canReuseTypeNode(n,e)){const{introducesError:r,node:i}=t.trackExistingEntityName(n,e.typeName),o=_J(e.typeArguments,_,b_);if(!r){const r=mw.updateTypeReferenceNode(e,i,o);return t.markNodeReuse(n,r,e)}{const r=t.serializeTypeName(n,e.typeName,!1,o);if(r)return t.markNodeReuse(n,r,e.typeName)}}}}function o(e,n,r){if(!e)return;let o;return r&&!N(e)||!t.canReuseTypeNode(n,e)||(o=i(n,e),void 0!==o&&(o=C(o,r,void 0,n))),o}function a(e,n,r,i,a,s=void 0!==a){if(!e)return;if(!(t.canReuseTypeNodeAnnotation(n,r,e,i,a)||a&&t.canReuseTypeNodeAnnotation(n,r,e,i,!1)))return;let c;return a&&!N(e)||(c=o(e,n,a)),void 0===c&&s?(n.tracker.reportInferenceFallback(r),t.serializeExistingTypeNode(n,e,a)??mw.createKeywordTypeNode(133)):c}function s(e,n,r,i){if(!e)return;const a=o(e,n,r);return void 0!==a?a:(n.tracker.reportInferenceFallback(i??e),t.serializeExistingTypeNode(n,e,r)??mw.createKeywordTypeNode(133))}function c(e,n,r){return function(e,n,r){const i=t.getAllAccessorDeclarations(e),o=function(e,t){let n=_(e);return n||e===t.firstAccessor||(n=_(t.firstAccessor)),!n&&t.secondAccessor&&e!==t.secondAccessor&&(n=_(t.secondAccessor)),n}(e,i);return o&&!MD(o)?m(r,e,()=>a(o,r,e,n)??d(e,n,r)):i.getAccessor?m(r,i.getAccessor,()=>D(i.getAccessor,n,r)):void 0}(e,n,r)??f(e,t.getAllAccessorDeclarations(e),r,n)}function l(e,t,n,r){const i=h(e,t,!1,n,r);return void 0!==i.type?i.type:p(e,t,i.reportFallback)}function _(e){if(e)return 178===e.kind?Em(e)&&nl(e)||gv(e):yv(e)}function u(e,n,r){const i=e.parent;if(179===i.kind)return c(i,void 0,r);const o=fv(e),s=t.requiresAddingImplicitUndefined(e,n,r.enclosingDeclaration);let l=qK;return o?l=BK(a(o,r,e,n,s)):TD(e)&&e.initializer&&aD(e.name)&&!F(e)&&(l=h(e.initializer,r,void 0,s)),void 0!==l.type?l.type:d(e,n,r,l.reportFallback)}function d(e,n,r,i=!0){return i&&r.tracker.reportInferenceFallback(e),!0===r.noInferenceFallback?mw.createKeywordTypeNode(133):t.serializeTypeOfDeclaration(r,e,n)}function p(e,n,r=!0,i){return un.assert(!i),r&&n.tracker.reportInferenceFallback(e),!0===n.noInferenceFallback?mw.createKeywordTypeNode(133):t.serializeTypeOfExpression(n,e)??mw.createKeywordTypeNode(133)}function f(e,n,r,i,o=!0){return 178===e.kind?D(e,i,r,o):(o&&r.tracker.reportInferenceFallback(e),(n.getAccessor&&D(n.getAccessor,i,r,o))??t.serializeTypeOfDeclaration(r,e,i)??mw.createKeywordTypeNode(133))}function m(e,n,r){const i=t.enterNewScope(e,n),o=r();return i(),o}function g(e,t,n,r){return kl(t)?h(e,n,!0,r):BK(s(t,n,r))}function h(e,r,i=!1,o=!1,a=!1){switch(e.kind){case 218:return TA(e)?g(e.expression,CA(e),r,o):h(e.expression,r,i,o);case 80:if(t.isUndefinedIdentifierExpression(e))return BK(S());break;case 106:return BK(n?C(mw.createLiteralTypeNode(mw.createNull()),o,e,r):mw.createKeywordTypeNode(133));case 220:case 219:return un.type(e),m(r,e,()=>function(e,t){const n=D(e,void 0,t),r=b(e.typeParameters,t),i=e.parameters.map(e=>v(e,t));return BK(mw.createFunctionTypeNode(r,i,n))}(e,r));case 217:case 235:const s=e;return g(s.expression,s.type,r,o);case 225:const c=e;if(bC(c))return T(40===c.operator?c.operand:c,10===c.operand.kind?163:150,r,i||a,o);break;case 210:return function(e,t,n,r){if(!function(e,t,n){if(!n)return t.tracker.reportInferenceFallback(e),!1;for(const n of e.elements)if(231===n.kind)return t.tracker.reportInferenceFallback(n),!1;return!0}(e,t,n))return r||_u(rh(e).parent)?zK:BK(p(e,t,!1,r));const i=t.noInferenceFallback;t.noInferenceFallback=!0;const o=[];for(const r of e.elements)if(un.assert(231!==r.kind),233===r.kind)o.push(S());else{const e=h(r,t,n),i=void 0!==e.type?e.type:p(r,t,e.reportFallback);o.push(i)}return mw.createTupleTypeNode(o).emitNode={flags:1,autoGenerate:void 0,internalFlags:0},t.noInferenceFallback=i,JK}(e,r,i,o);case 211:return function(e,n,r,i){if(!function(e,n){let r=!0;for(const i of e.properties){if(262144&i.flags){r=!1;break}if(305===i.kind||306===i.kind)n.tracker.reportInferenceFallback(i),r=!1;else{if(262144&i.name.flags){r=!1;break}if(81===i.name.kind)r=!1;else if(168===i.name.kind){const e=i.name.expression;bC(e,!1)||t.isDefinitelyReferenceToGlobalSymbolObject(e)||(n.tracker.reportInferenceFallback(i.name),r=!1)}}}return r}(e,n))return i||_u(rh(e).parent)?zK:BK(p(e,n,!1,i));const o=n.noInferenceFallback;n.noInferenceFallback=!0;const a=[],s=n.flags;n.flags|=4194304;for(const t of e.properties){un.assert(!iP(t)&&!oP(t));const e=t.name;let i;switch(t.kind){case 175:i=m(n,t,()=>x(t,e,n,r));break;case 304:i=y(t,e,n,r);break;case 179:case 178:i=k(t,e,n)}i&&(Aw(i,t),a.push(i))}n.flags=s;const c=mw.createTypeLiteralNode(a);return 1024&n.flags||xw(c,1),n.noInferenceFallback=o,JK}(e,r,i,o);case 232:return BK(p(e,r,!0,o));case 229:if(!i&&!a)return BK(mw.createKeywordTypeNode(154));break;default:let l,_=e;switch(e.kind){case 9:l=150;break;case 15:_=mw.createStringLiteral(e.text),l=154;break;case 11:l=154;break;case 10:l=163;break;case 112:case 97:l=136}if(l)return T(_,l,r,i||a,o)}return qK}function y(e,t,n,i){const o=i?[mw.createModifier(148)]:[],a=h(e.initializer,n,i),s=void 0!==a.type?a.type:d(e,void 0,n,a.reportFallback);return mw.createPropertySignature(o,r(n,t),void 0,s)}function v(e,n){return mw.updateParameterDeclaration(e,void 0,r(n,e.dotDotDotToken),t.serializeNameOfParameter(n,e),t.isOptionalParameter(e)?mw.createToken(58):void 0,u(e,void 0,n),void 0)}function b(e,n){return null==e?void 0:e.map(e=>{var i;const{node:o}=t.trackExistingEntityName(n,e.name);return mw.updateTypeParameterDeclaration(e,null==(i=e.modifiers)?void 0:i.map(e=>r(n,e)),o,s(e.constraint,n),s(e.default,n))})}function x(e,t,n,i){const o=D(e,void 0,n),a=b(e.typeParameters,n),s=e.parameters.map(e=>v(e,n));return i?mw.createPropertySignature([mw.createModifier(148)],r(n,t),r(n,e.questionToken),mw.createFunctionTypeNode(a,s,o)):(aD(t)&&"new"===t.escapedText&&(t=mw.createStringLiteral("new")),mw.createMethodSignature([],r(n,t),r(n,e.questionToken),a,s,o))}function k(e,n,i){const o=t.getAllAccessorDeclarations(e),a=o.getAccessor&&_(o.getAccessor),c=o.setAccessor&&_(o.setAccessor);if(void 0!==a&&void 0!==c)return m(i,e,()=>{const t=e.parameters.map(e=>v(e,i));return Nu(e)?mw.updateGetAccessorDeclaration(e,[],r(i,n),t,s(a,i),void 0):mw.updateSetAccessorDeclaration(e,[],r(i,n),t,void 0)});if(o.firstAccessor===e){const t=(a?m(i,o.getAccessor,()=>s(a,i)):c?m(i,o.setAccessor,()=>s(c,i)):void 0)??f(e,o,i,void 0);return mw.createPropertySignature(void 0===o.setAccessor?[mw.createModifier(148)]:[],r(i,n),void 0,t)}}function S(){return n?mw.createKeywordTypeNode(157):mw.createKeywordTypeNode(133)}function T(e,t,n,i,o){let a;return i?(225===e.kind&&40===e.operator&&(a=mw.createLiteralTypeNode(r(n,e.operand))),a=mw.createLiteralTypeNode(r(n,e))):a=mw.createKeywordTypeNode(t),BK(C(a,o,e,n))}function C(e,t,r,i){const o=r&&rh(r).parent,a=o&&_u(o)&&XT(o);return n&&(t||a)?(N(e)||i.tracker.reportInferenceFallback(e),KD(e)?mw.createUnionTypeNode([...e.types,mw.createKeywordTypeNode(157)]):mw.createUnionTypeNode([e,mw.createKeywordTypeNode(157)])):e}function N(e){return!n||!(!Ch(e.kind)&&202!==e.kind&&185!==e.kind&&186!==e.kind&&189!==e.kind&&190!==e.kind&&188!==e.kind&&204!==e.kind&&198!==e.kind)||(197===e.kind?N(e.type):(193===e.kind||194===e.kind)&&e.types.every(N))}function D(e,n,r,i=!0){let s=qK;const c=Ng(e)?fv(e.parameters[0]):gv(e);return c?s=BK(a(c,r,e,n)):eh(e)&&(s=function(e,t){let n;if(e&&!Nd(e.body)){if(3&Oh(e))return qK;const t=e.body;t&&VF(t)?Df(t,e=>e.parent!==t||n?(n=void 0,!0):void(n=e.expression)):n=t}if(n){if(!F(n))return h(n,t);{const e=TA(n)?CA(n):LF(n)||hF(n)?n.type:void 0;if(e&&!kl(e))return BK(o(e,t))}}return qK}(e,r)),void 0!==s.type?s.type:function(e,n,r,i){return i&&n.tracker.reportInferenceFallback(e),!0===n.noInferenceFallback?mw.createKeywordTypeNode(133):t.serializeReturnTypeForSignature(n,e,r)??mw.createKeywordTypeNode(133)}(e,r,n,i&&s.reportFallback&&!c)}function F(e){return uc(e.parent,e=>fF(e)||!o_(e)&&!!fv(e)||zE(e)||QE(e))}}var VK={};i(VK,{NameValidationResult:()=>pG,discoverTypings:()=>uG,isTypingUpToDate:()=>sG,loadSafeList:()=>lG,loadTypesMap:()=>_G,nonRelativeModuleNameForTypingCache:()=>cG,renderPackageNameValidationFailure:()=>hG,validatePackageName:()=>mG});var WK,$K,HK="action::set",KK="action::invalidate",GK="action::packageInstalled",XK="event::typesRegistry",QK="event::beginInstallTypes",YK="event::endInstallTypes",ZK="event::initializationFailed",eG="action::watchTypingLocations";function tG(e){return so.args.includes(e)}function nG(e){const t=so.args.indexOf(e);return t>=0&&te.readFile(t));return new Map(Object.entries(n.config))}function _G(e,t){var n;const r=hL(t,t=>e.readFile(t));if(null==(n=r.config)?void 0:n.simpleMap)return new Map(Object.entries(r.config.simpleMap))}function uG(e,t,n,r,i,o,a,s,c,l){if(!a||!a.enable)return{cachedTypingPaths:[],newTypingNames:[],filesToWatch:[]};const _=new Map;n=B(n,e=>{const t=Jo(e);if(OS(t))return t});const u=[];a.include&&y(a.include,"Explicitly included types");const p=a.exclude||[];if(!l.types){const e=new Set(n.map(Do));e.add(r),e.forEach(e=>{v(e,"bower.json","bower_components",u),v(e,"package.json","node_modules",u)})}a.disableFilenameBasedTypeAcquisition||function(e){const n=B(e,e=>{if(!OS(e))return;const t=Jt(US(_t(Fo(e))));return i.get(t)});n.length&&y(n,"Inferred typings from file names"),$(e,e=>ko(e,".jsx"))&&(t&&t("Inferred 'react' typings due to presence of '.jsx' extension"),h("react"))}(n),s&&y(Q(s.map(cG),ht,Ct),"Inferred typings from unresolved imports");for(const e of p)_.delete(e)&&t&&t(`Typing for ${e} is in exclude list, will be ignored.`);o.forEach((e,t)=>{const n=c.get(t);!1===_.get(t)&&void 0!==n&&sG(e,n)&&_.set(t,e.typingLocation)});const f=[],m=[];_.forEach((e,t)=>{e?m.push(e):f.push(t)});const g={cachedTypingPaths:m,newTypingNames:f,filesToWatch:u};return t&&t(`Finished typings discovery:${aG(g)}`),g;function h(e){_.has(e)||_.set(e,!1)}function y(e,n){t&&t(`${n}: ${JSON.stringify(e)}`),d(e,h)}function v(n,r,i,o){const a=jo(n,r);let s,c;e.fileExists(a)&&(o.push(a),s=hL(a,t=>e.readFile(t)).config,c=O([s.dependencies,s.devDependencies,s.optionalDependencies,s.peerDependencies],Ee),y(c,`Typing names in '${a}' dependencies`));const l=jo(n,i);if(o.push(l),!e.directoryExists(l))return;const u=[],d=c?c.map(e=>jo(l,e,r)):e.readDirectory(l,[".json"],void 0,void 0,3).filter(e=>{if(Fo(e)!==r)return!1;const t=Ao(Jo(e)),n="@"===t[t.length-3][0];return n&&_t(t[t.length-4])===i||!n&&_t(t[t.length-3])===i});t&&t(`Searching for typing names in ${l}; all files: ${JSON.stringify(d)}`);for(const n of d){const r=Jo(n),i=hL(r,t=>e.readFile(t)).config;if(!i.name)continue;const o=i.types||i.typings;if(o){const n=Bo(o,Do(r));e.fileExists(n)?(t&&t(` Package '${i.name}' provides its own types.`),_.set(i.name,n)):t&&t(` Package '${i.name}' provides its own types but they are missing.`)}else u.push(i.name)}y(u," Found package names")}}var dG,pG=(e=>(e[e.Ok=0]="Ok",e[e.EmptyName=1]="EmptyName",e[e.NameTooLong=2]="NameTooLong",e[e.NameStartsWithDot=3]="NameStartsWithDot",e[e.NameStartsWithUnderscore=4]="NameStartsWithUnderscore",e[e.NameContainsNonURISafeCharacters=5]="NameContainsNonURISafeCharacters",e))(pG||{}),fG=214;function mG(e){return gG(e,!0)}function gG(e,t){if(!e)return 1;if(e.length>fG)return 2;if(46===e.charCodeAt(0))return 3;if(95===e.charCodeAt(0))return 4;if(t){const t=/^@([^/]+)\/([^/]+)$/.exec(e);if(t){const e=gG(t[1],!1);if(0!==e)return{name:t[1],isScopeName:!0,result:e};const n=gG(t[2],!1);return 0!==n?{name:t[2],isScopeName:!1,result:n}:0}}return encodeURIComponent(e)!==e?5:0}function hG(e,t){return"object"==typeof e?yG(t,e.result,e.name,e.isScopeName):yG(t,e,t,!1)}function yG(e,t,n,r){const i=r?"Scope":"Package";switch(t){case 1:return`'${e}':: ${i} name '${n}' cannot be empty`;case 2:return`'${e}':: ${i} name '${n}' should be less than ${fG} characters`;case 3:return`'${e}':: ${i} name '${n}' cannot start with '.'`;case 4:return`'${e}':: ${i} name '${n}' cannot start with '_'`;case 5:return`'${e}':: ${i} name '${n}' contains non URI safe characters`;case 0:return un.fail();default:un.assertNever(t)}}(e=>{class t{constructor(e){this.text=e}getText(e,t){return 0===e&&t===this.text.length?this.text:this.text.substring(e,t)}getLength(){return this.text.length}getChangeRange(){}}e.fromString=function(e){return new t(e)}})(dG||(dG={}));var vG=(e=>(e[e.Dependencies=1]="Dependencies",e[e.DevDependencies=2]="DevDependencies",e[e.PeerDependencies=4]="PeerDependencies",e[e.OptionalDependencies=8]="OptionalDependencies",e[e.All=15]="All",e))(vG||{}),bG=(e=>(e[e.Off=0]="Off",e[e.On=1]="On",e[e.Auto=2]="Auto",e))(bG||{}),xG=(e=>(e[e.Semantic=0]="Semantic",e[e.PartialSemantic=1]="PartialSemantic",e[e.Syntactic=2]="Syntactic",e))(xG||{}),kG={},SG=(e=>(e.Original="original",e.TwentyTwenty="2020",e))(SG||{}),TG=(e=>(e.All="All",e.SortAndCombine="SortAndCombine",e.RemoveUnused="RemoveUnused",e))(TG||{}),CG=(e=>(e[e.Invoked=1]="Invoked",e[e.TriggerCharacter=2]="TriggerCharacter",e[e.TriggerForIncompleteCompletions=3]="TriggerForIncompleteCompletions",e))(CG||{}),wG=(e=>(e.Type="Type",e.Parameter="Parameter",e.Enum="Enum",e))(wG||{}),NG=(e=>(e.none="none",e.definition="definition",e.reference="reference",e.writtenReference="writtenReference",e))(NG||{}),DG=(e=>(e[e.None=0]="None",e[e.Block=1]="Block",e[e.Smart=2]="Smart",e))(DG||{}),FG=(e=>(e.Ignore="ignore",e.Insert="insert",e.Remove="remove",e))(FG||{});function EG(e){return{indentSize:4,tabSize:4,newLineCharacter:e||"\n",convertTabsToSpaces:!0,indentStyle:2,insertSpaceAfterConstructor:!1,insertSpaceAfterCommaDelimiter:!0,insertSpaceAfterSemicolonInForStatements:!0,insertSpaceBeforeAndAfterBinaryOperators:!0,insertSpaceAfterKeywordsInControlFlowStatements:!0,insertSpaceAfterFunctionKeywordForAnonymousFunctions:!1,insertSpaceAfterOpeningAndBeforeClosingNonemptyParenthesis:!1,insertSpaceAfterOpeningAndBeforeClosingNonemptyBrackets:!1,insertSpaceAfterOpeningAndBeforeClosingNonemptyBraces:!0,insertSpaceAfterOpeningAndBeforeClosingTemplateStringBraces:!1,insertSpaceAfterOpeningAndBeforeClosingJsxExpressionBraces:!1,insertSpaceBeforeFunctionParenthesis:!1,placeOpenBraceOnNewLineForFunctions:!1,placeOpenBraceOnNewLineForControlBlocks:!1,semicolons:"ignore",trimTrailingWhitespace:!0,indentSwitchCase:!0}}var PG=EG("\n"),AG=(e=>(e[e.aliasName=0]="aliasName",e[e.className=1]="className",e[e.enumName=2]="enumName",e[e.fieldName=3]="fieldName",e[e.interfaceName=4]="interfaceName",e[e.keyword=5]="keyword",e[e.lineBreak=6]="lineBreak",e[e.numericLiteral=7]="numericLiteral",e[e.stringLiteral=8]="stringLiteral",e[e.localName=9]="localName",e[e.methodName=10]="methodName",e[e.moduleName=11]="moduleName",e[e.operator=12]="operator",e[e.parameterName=13]="parameterName",e[e.propertyName=14]="propertyName",e[e.punctuation=15]="punctuation",e[e.space=16]="space",e[e.text=17]="text",e[e.typeParameterName=18]="typeParameterName",e[e.enumMemberName=19]="enumMemberName",e[e.functionName=20]="functionName",e[e.regularExpressionLiteral=21]="regularExpressionLiteral",e[e.link=22]="link",e[e.linkName=23]="linkName",e[e.linkText=24]="linkText",e))(AG||{}),IG=(e=>(e[e.None=0]="None",e[e.MayIncludeAutoImports=1]="MayIncludeAutoImports",e[e.IsImportStatementCompletion=2]="IsImportStatementCompletion",e[e.IsContinuation=4]="IsContinuation",e[e.ResolvedModuleSpecifiers=8]="ResolvedModuleSpecifiers",e[e.ResolvedModuleSpecifiersBeyondLimit=16]="ResolvedModuleSpecifiersBeyondLimit",e[e.MayIncludeMethodSnippets=32]="MayIncludeMethodSnippets",e))(IG||{}),OG=(e=>(e.Comment="comment",e.Region="region",e.Code="code",e.Imports="imports",e))(OG||{}),LG=(e=>(e[e.JavaScript=0]="JavaScript",e[e.SourceMap=1]="SourceMap",e[e.Declaration=2]="Declaration",e))(LG||{}),jG=(e=>(e[e.None=0]="None",e[e.InMultiLineCommentTrivia=1]="InMultiLineCommentTrivia",e[e.InSingleQuoteStringLiteral=2]="InSingleQuoteStringLiteral",e[e.InDoubleQuoteStringLiteral=3]="InDoubleQuoteStringLiteral",e[e.InTemplateHeadOrNoSubstitutionTemplate=4]="InTemplateHeadOrNoSubstitutionTemplate",e[e.InTemplateMiddleOrTail=5]="InTemplateMiddleOrTail",e[e.InTemplateSubstitutionPosition=6]="InTemplateSubstitutionPosition",e))(jG||{}),MG=(e=>(e[e.Punctuation=0]="Punctuation",e[e.Keyword=1]="Keyword",e[e.Operator=2]="Operator",e[e.Comment=3]="Comment",e[e.Whitespace=4]="Whitespace",e[e.Identifier=5]="Identifier",e[e.NumberLiteral=6]="NumberLiteral",e[e.BigIntLiteral=7]="BigIntLiteral",e[e.StringLiteral=8]="StringLiteral",e[e.RegExpLiteral=9]="RegExpLiteral",e))(MG||{}),RG=(e=>(e.unknown="",e.warning="warning",e.keyword="keyword",e.scriptElement="script",e.moduleElement="module",e.classElement="class",e.localClassElement="local class",e.interfaceElement="interface",e.typeElement="type",e.enumElement="enum",e.enumMemberElement="enum member",e.variableElement="var",e.localVariableElement="local var",e.variableUsingElement="using",e.variableAwaitUsingElement="await using",e.functionElement="function",e.localFunctionElement="local function",e.memberFunctionElement="method",e.memberGetAccessorElement="getter",e.memberSetAccessorElement="setter",e.memberVariableElement="property",e.memberAccessorVariableElement="accessor",e.constructorImplementationElement="constructor",e.callSignatureElement="call",e.indexSignatureElement="index",e.constructSignatureElement="construct",e.parameterElement="parameter",e.typeParameterElement="type parameter",e.primitiveType="primitive type",e.label="label",e.alias="alias",e.constElement="const",e.letElement="let",e.directory="directory",e.externalModuleName="external module name",e.jsxAttribute="JSX attribute",e.string="string",e.link="link",e.linkName="link name",e.linkText="link text",e))(RG||{}),BG=(e=>(e.none="",e.publicMemberModifier="public",e.privateMemberModifier="private",e.protectedMemberModifier="protected",e.exportedModifier="export",e.ambientModifier="declare",e.staticModifier="static",e.abstractModifier="abstract",e.optionalModifier="optional",e.deprecatedModifier="deprecated",e.dtsModifier=".d.ts",e.tsModifier=".ts",e.tsxModifier=".tsx",e.jsModifier=".js",e.jsxModifier=".jsx",e.jsonModifier=".json",e.dmtsModifier=".d.mts",e.mtsModifier=".mts",e.mjsModifier=".mjs",e.dctsModifier=".d.cts",e.ctsModifier=".cts",e.cjsModifier=".cjs",e))(BG||{}),JG=(e=>(e.comment="comment",e.identifier="identifier",e.keyword="keyword",e.numericLiteral="number",e.bigintLiteral="bigint",e.operator="operator",e.stringLiteral="string",e.whiteSpace="whitespace",e.text="text",e.punctuation="punctuation",e.className="class name",e.enumName="enum name",e.interfaceName="interface name",e.moduleName="module name",e.typeParameterName="type parameter name",e.typeAliasName="type alias name",e.parameterName="parameter name",e.docCommentTagName="doc comment tag name",e.jsxOpenTagName="jsx open tag name",e.jsxCloseTagName="jsx close tag name",e.jsxSelfClosingTagName="jsx self closing tag name",e.jsxAttribute="jsx attribute",e.jsxText="jsx text",e.jsxAttributeStringLiteralValue="jsx attribute string literal value",e))(JG||{}),zG=(e=>(e[e.comment=1]="comment",e[e.identifier=2]="identifier",e[e.keyword=3]="keyword",e[e.numericLiteral=4]="numericLiteral",e[e.operator=5]="operator",e[e.stringLiteral=6]="stringLiteral",e[e.regularExpressionLiteral=7]="regularExpressionLiteral",e[e.whiteSpace=8]="whiteSpace",e[e.text=9]="text",e[e.punctuation=10]="punctuation",e[e.className=11]="className",e[e.enumName=12]="enumName",e[e.interfaceName=13]="interfaceName",e[e.moduleName=14]="moduleName",e[e.typeParameterName=15]="typeParameterName",e[e.typeAliasName=16]="typeAliasName",e[e.parameterName=17]="parameterName",e[e.docCommentTagName=18]="docCommentTagName",e[e.jsxOpenTagName=19]="jsxOpenTagName",e[e.jsxCloseTagName=20]="jsxCloseTagName",e[e.jsxSelfClosingTagName=21]="jsxSelfClosingTagName",e[e.jsxAttribute=22]="jsxAttribute",e[e.jsxText=23]="jsxText",e[e.jsxAttributeStringLiteralValue=24]="jsxAttributeStringLiteralValue",e[e.bigintLiteral=25]="bigintLiteral",e))(zG||{}),qG=gs(99,!0),UG=(e=>(e[e.None=0]="None",e[e.Value=1]="Value",e[e.Type=2]="Type",e[e.Namespace=4]="Namespace",e[e.All=7]="All",e))(UG||{});function VG(e){switch(e.kind){case 261:return Em(e)&&Xc(e)?7:1;case 170:case 209:case 173:case 172:case 304:case 305:case 175:case 174:case 177:case 178:case 179:case 263:case 219:case 220:case 300:case 292:return 1;case 169:case 265:case 266:case 188:return 2;case 347:return void 0===e.name?3:2;case 307:case 264:return 3;case 268:return cp(e)||1===UR(e)?5:4;case 267:case 276:case 277:case 272:case 273:case 278:case 279:return 7;case 308:return 5}return 7}function WG(e){const t=(e=UX(e)).parent;return 308===e.kind?1:AE(t)||LE(t)||JE(t)||PE(t)||kE(t)||bE(t)&&e===t.name?7:$G(e)?function(e){const t=167===e.kind?e:xD(e.parent)&&e.parent.right===e?e.parent:void 0;return t&&272===t.parent.kind?7:4}(e):lh(e)?VG(t):e_(e)&&uc(e,en(_P,Mu,uP))?7:function(e){switch(db(e)&&(e=e.parent),e.kind){case 110:return!bm(e);case 198:return!0}switch(e.parent.kind){case 184:return!0;case 206:return!e.parent.isTypeOf;case 234:return wf(e.parent)}return!1}(e)?2:function(e){return function(e){let t=e,n=!0;if(167===t.parent.kind){for(;t.parent&&167===t.parent.kind;)t=t.parent;n=t.right===e}return 184===t.parent.kind&&!n}(e)||function(e){let t=e,n=!0;if(212===t.parent.kind){for(;t.parent&&212===t.parent.kind;)t=t.parent;n=t.name===e}if(!n&&234===t.parent.kind&&299===t.parent.parent.kind){const e=t.parent.parent.parent;return 264===e.kind&&119===t.parent.parent.token||265===e.kind&&96===t.parent.parent.token}return!1}(e)}(e)?4:SD(t)?(un.assert(UP(t.parent)),2):rF(t)?3:1}function $G(e){if(!e.parent)return!1;for(;167===e.parent.kind;)e=e.parent;return Nm(e.parent)&&e.parent.moduleReference===e}function HG(e,t=!1,n=!1){return nX(e,fF,ZG,t,n)}function KG(e,t=!1,n=!1){return nX(e,mF,ZG,t,n)}function GG(e,t=!1,n=!1){return nX(e,j_,ZG,t,n)}function XG(e,t=!1,n=!1){return nX(e,gF,eX,t,n)}function QG(e,t=!1,n=!1){return nX(e,CD,ZG,t,n)}function YG(e,t=!1,n=!1){return nX(e,bu,tX,t,n)}function ZG(e){return e.expression}function eX(e){return e.tag}function tX(e){return e.tagName}function nX(e,t,n,r,i){let o=r?function(e){return uX(e)||dX(e)?e.parent:e}(e):rX(e);return i&&(o=NA(o)),!!o&&!!o.parent&&t(o.parent)&&n(o.parent)===o}function rX(e){return uX(e)?e.parent:e}function iX(e,t){for(;e;){if(257===e.kind&&e.label.escapedText===t)return e.label;e=e.parent}}function oX(e,t){return!!dF(e.expression)&&e.expression.name.text===t}function aX(e){var t;return aD(e)&&(null==(t=tt(e.parent,Cl))?void 0:t.label)===e}function sX(e){var t;return aD(e)&&(null==(t=tt(e.parent,oE))?void 0:t.label)===e}function cX(e){return sX(e)||aX(e)}function lX(e){var t;return(null==(t=tt(e.parent,Cu))?void 0:t.tagName)===e}function _X(e){var t;return(null==(t=tt(e.parent,xD))?void 0:t.right)===e}function uX(e){var t;return(null==(t=tt(e.parent,dF))?void 0:t.name)===e}function dX(e){var t;return(null==(t=tt(e.parent,pF))?void 0:t.argumentExpression)===e}function pX(e){var t;return(null==(t=tt(e.parent,gE))?void 0:t.name)===e}function fX(e){var t;return aD(e)&&(null==(t=tt(e.parent,r_))?void 0:t.name)===e}function mX(e){switch(e.parent.kind){case 173:case 172:case 304:case 307:case 175:case 174:case 178:case 179:case 268:return Cc(e.parent)===e;case 213:return e.parent.argumentExpression===e;case 168:return!0;case 202:return 200===e.parent.parent.kind;default:return!1}}function gX(e){return Tm(e.parent.parent)&&Cm(e.parent.parent)===e}function hX(e){for(Dg(e)&&(e=e.parent.parent);;){if(!(e=e.parent))return;switch(e.kind){case 308:case 175:case 174:case 263:case 219:case 178:case 179:case 264:case 265:case 267:case 268:return e}}}function yX(e){switch(e.kind){case 308:return rO(e)?"module":"script";case 268:return"module";case 264:case 232:return"class";case 265:return"interface";case 266:case 339:case 347:return"type";case 267:return"enum";case 261:return t(e);case 209:return t(Yh(e));case 220:case 263:case 219:return"function";case 178:return"getter";case 179:return"setter";case 175:case 174:return"method";case 304:const{initializer:n}=e;return r_(n)?"method":"property";case 173:case 172:case 305:case 306:return"property";case 182:return"index";case 181:return"construct";case 180:return"call";case 177:case 176:return"constructor";case 169:return"type parameter";case 307:return"enum member";case 170:return Nv(e,31)?"property":"parameter";case 272:case 277:case 282:case 275:case 281:return"alias";case 227:const r=tg(e),{right:i}=e;switch(r){case 7:case 8:case 9:case 0:default:return"";case 1:case 2:const e=yX(i);return""===e?"const":e;case 3:case 5:return vF(i)?"method":"property";case 4:return"property";case 6:return"local class"}case 80:return kE(e.parent)?"alias":"";case 278:const o=yX(e.expression);return""===o?"const":o;default:return""}function t(e){return af(e)?"const":cf(e)?"let":"var"}}function vX(e){switch(e.kind){case 110:return!0;case 80:return dv(e)&&170===e.parent.kind;default:return!1}}var bX=/^\/\/\/\s*=n}function wX(e,t,n){return DX(e.pos,e.end,t,n)}function NX(e,t,n,r){return DX(e.getStart(t),e.end,n,r)}function DX(e,t,n,r){return Math.max(e,n)e.kind===t)}function LX(e){const t=b(e.parent.getChildren(),t=>QP(t)&&Xb(t,e));return un.assert(!t||T(t.getChildren(),e)),t}function jX(e){return 90===e.kind}function MX(e){return 86===e.kind}function RX(e){return 100===e.kind}function BX(e,t){if(16777216&e.flags)return;const n=aZ(e,t);if(n)return n;const r=function(e){let t;return uc(e,e=>(b_(e)&&(t=e),!xD(e.parent)&&!b_(e.parent)&&!h_(e.parent))),t}(e);return r&&t.getTypeAtLocation(r)}function JX(e,t){if(e.importClause){if(e.importClause.name&&e.importClause.namedBindings)return;if(e.importClause.name)return e.importClause.name;if(e.importClause.namedBindings){if(EE(e.importClause.namedBindings)){const t=be(e.importClause.namedBindings.elements);if(!t)return;return t.name}if(DE(e.importClause.namedBindings))return e.importClause.namedBindings.name}}if(!t)return e.moduleSpecifier}function zX(e,t){if(e.exportClause){if(OE(e.exportClause)){if(!be(e.exportClause.elements))return;return e.exportClause.elements[0].name}if(FE(e.exportClause))return e.exportClause.name}if(!t)return e.moduleSpecifier}function qX(e,t){const{parent:n}=e;if(Zl(e)&&(t||90!==e.kind)?kI(n)&&T(n.modifiers,e):86===e.kind?dE(n)||AF(e):100===e.kind?uE(n)||vF(e):120===e.kind?pE(n):94===e.kind?mE(n):156===e.kind?fE(n):145===e.kind||144===e.kind?gE(n):102===e.kind?bE(n):139===e.kind?AD(n):153===e.kind&&ID(n)){const e=function(e,t){if(!t)switch(e.kind){case 264:case 232:return function(e){if(Sc(e))return e.name;if(dE(e)){const t=e.modifiers&&b(e.modifiers,jX);if(t)return t}if(AF(e)){const t=b(e.getChildren(),MX);if(t)return t}}(e);case 263:case 219:return function(e){if(Sc(e))return e.name;if(uE(e)){const t=b(e.modifiers,jX);if(t)return t}if(vF(e)){const t=b(e.getChildren(),RX);if(t)return t}}(e);case 177:return e}if(Sc(e))return e.name}(n,t);if(e)return e}if((115===e.kind||87===e.kind||121===e.kind)&&_E(n)&&1===n.declarations.length){const e=n.declarations[0];if(aD(e.name))return e.name}if(156===e.kind){if(kE(n)&&n.isTypeOnly){const e=JX(n.parent,t);if(e)return e}if(IE(n)&&n.isTypeOnly){const e=zX(n,t);if(e)return e}}if(130===e.kind){if(PE(n)&&n.propertyName||LE(n)&&n.propertyName||DE(n)||FE(n))return n.name;if(IE(n)&&n.exportClause&&FE(n.exportClause))return n.exportClause.name}if(102===e.kind&&xE(n)){const e=JX(n,t);if(e)return e}if(95===e.kind){if(IE(n)){const e=zX(n,t);if(e)return e}if(AE(n))return NA(n.expression)}if(149===e.kind&&JE(n))return n.expression;if(161===e.kind&&(xE(n)||IE(n))&&n.moduleSpecifier)return n.moduleSpecifier;if((96===e.kind||119===e.kind)&&tP(n)&&n.token===e.kind){const e=function(e){if(1===e.types.length)return e.types[0].expression}(n);if(e)return e}if(96===e.kind){if(SD(n)&&n.constraint&&RD(n.constraint))return n.constraint.typeName;if(XD(n)&&RD(n.extendsType))return n.extendsType.typeName}if(140===e.kind&&QD(n))return n.typeParameter.name;if(103===e.kind&&SD(n)&&nF(n.parent))return n.name;if(143===e.kind&&eF(n)&&143===n.operator&&RD(n.type))return n.type.typeName;if(148===e.kind&&eF(n)&&148===n.operator&&UD(n.type)&&RD(n.type.elementType))return n.type.elementType.typeName;if(!t){if((105===e.kind&&mF(n)||116===e.kind&&SF(n)||114===e.kind&&kF(n)||135===e.kind&&TF(n)||127===e.kind&&EF(n)||91===e.kind&&xF(n))&&n.expression)return NA(n.expression);if((103===e.kind||104===e.kind)&&NF(n)&&n.operatorToken===e)return NA(n.right);if(130===e.kind&&LF(n)&&RD(n.type))return n.type.typeName;if(103===e.kind&&YF(n)||165===e.kind&&ZF(n))return NA(n.expression)}return e}function UX(e){return qX(e,!1)}function VX(e){return qX(e,!0)}function WX(e,t){return $X(e,t,e=>zh(e)||Ch(e.kind)||sD(e))}function $X(e,t,n){return KX(e,t,!1,n,!1)}function HX(e,t){return KX(e,t,!0,void 0,!1)}function KX(e,t,n,r,i){let o,a=e;for(;;){const i=a.getChildren(e),c=Ce(i,t,(e,t)=>t,(o,a)=>{const c=i[o].getEnd();if(ct?1:s(i[o],l,c)?i[o-1]&&s(i[o-1])?1:0:r&&l===t&&i[o-1]&&i[o-1].getEnd()===t&&s(i[o-1])?1:-1});if(o)return o;if(!(c>=0&&i[c]))return a;a=i[c]}function s(a,s,c){if(c??(c=a.getEnd()),ct)return!1;if(tn.getStart(e)&&t(r.pos<=e.pos&&r.end>e.end||r.pos===e.end)&&fQ(r,n)?t(r):void 0)}(t)}function YX(e,t,n,r){const i=function i(o){if(ZX(o)&&1!==o.kind)return o;const a=o.getChildren(t),s=Ce(a,e,(e,t)=>t,(t,n)=>e=a[t-1].end?0:1:-1);if(s>=0&&a[s]){const n=a[s];if(e=e||!fQ(n,t)||iQ(n)){const e=tQ(a,s,t,o.kind);return e?!r&&Tu(e)&&e.getChildren(t).length?i(e):eQ(e,t):void 0}return i(n)}}un.assert(void 0!==n||308===o.kind||1===o.kind||Tu(o));const c=tQ(a,a.length,t,o.kind);return c&&eQ(c,t)}(n||t);return un.assert(!(i&&iQ(i))),i}function ZX(e){return El(e)&&!iQ(e)}function eQ(e,t){if(ZX(e))return e;const n=e.getChildren(t);if(0===n.length)return e;const r=tQ(n,n.length,t,e.kind);return r&&eQ(r,t)}function tQ(e,t,n,r){for(let i=t-1;i>=0;i--)if(iQ(e[i]))0!==i||12!==r&&286!==r||un.fail("`JsxText` tokens should not be the first child of `JsxElement | JsxSelfClosingElement`");else if(fQ(e[i],n))return e[i]}function nQ(e,t,n=YX(t,e)){if(n&&Ul(n)){const r=n.getStart(e),i=n.getEnd();if(rn.getStart(e)}function aQ(e,t){const n=HX(e,t);return!!VN(n)||!(19!==n.kind||!QE(n.parent)||!zE(n.parent.parent))||!(30!==n.kind||!bu(n.parent)||!zE(n.parent.parent))}function sQ(e,t){return function(n){for(;n;)if(n.kind>=286&&n.kind<=295||12===n.kind||30===n.kind||32===n.kind||80===n.kind||20===n.kind||19===n.kind||44===n.kind||31===n.kind)n=n.parent;else{if(285!==n.kind)return!1;if(t>n.getStart(e))return!0;n=n.parent}return!1}(HX(e,t))}function cQ(e,t,n){const r=Fa(e.kind),i=Fa(t),o=e.getFullStart(),a=n.text.lastIndexOf(i,o);if(-1===a)return;if(n.text.lastIndexOf(r,o-1)!!e.typeParameters&&e.typeParameters.length>=t)}function uQ(e,t){if(-1===t.text.lastIndexOf("<",e?e.pos:t.text.length))return;let n=e,r=0,i=0;for(;n;){switch(n.kind){case 30:if(n=YX(n.getFullStart(),t),n&&29===n.kind&&(n=YX(n.getFullStart(),t)),!n||!aD(n))return;if(!r)return lh(n)?void 0:{called:n,nTypeArguments:i};r--;break;case 50:r=3;break;case 49:r=2;break;case 32:r++;break;case 20:if(n=cQ(n,19,t),!n)return;break;case 22:if(n=cQ(n,21,t),!n)return;break;case 24:if(n=cQ(n,23,t),!n)return;break;case 28:i++;break;case 39:case 80:case 11:case 9:case 10:case 112:case 97:case 114:case 96:case 143:case 25:case 52:case 58:case 59:break;default:if(b_(n))break;return}n=YX(n.getFullStart(),t)}}function dQ(e,t,n){return ude.getRangeOfEnclosingComment(e,t,void 0,n)}function pQ(e,t){return!!uc(HX(e,t),SP)}function fQ(e,t){return 1===e.kind?!!e.jsDoc:0!==e.getWidth(t)}function mQ(e,t=0){const n=[],r=_u(e)?oc(e)&~t:0;return 2&r&&n.push("private"),4&r&&n.push("protected"),1&r&&n.push("public"),(256&r||ED(e))&&n.push("static"),64&r&&n.push("abstract"),32&r&&n.push("export"),65536&r&&n.push("deprecated"),33554432&e.flags&&n.push("declare"),278===e.kind&&n.push("export"),n.length>0?n.join(","):""}function gQ(e){return 184===e.kind||214===e.kind?e.typeArguments:r_(e)||264===e.kind||265===e.kind?e.typeParameters:void 0}function hQ(e){return 2===e||3===e}function yQ(e){return!(11!==e&&14!==e&&!Ll(e))}function vQ(e,t,n){return!!(4&t.flags)&&e.isEmptyAnonymousObjectType(n)}function bQ(e){if(!e.isIntersection())return!1;const{types:t,checker:n}=e;return 2===t.length&&(vQ(n,t[0],t[1])||vQ(n,t[1],t[0]))}function xQ(e,t,n){return Ll(e.kind)&&e.getStart(n){const n=ZB(t);return!e[n]&&(e[n]=!0)}}function zQ(e){return e.getText(0,e.getLength())}function qQ(e,t){let n="";for(let r=0;r!(t.isDeclarationFile||e.isSourceFileFromExternalLibrary(t)||!t.externalModuleIndicator&&!t.commonJsModuleIndicator))}function $Q(e){return e.getSourceFiles().some(t=>!t.isDeclarationFile&&!e.isSourceFileFromExternalLibrary(t)&&!!t.externalModuleIndicator)}function HQ(e){return!!e.module||yk(e)>=2||!!e.noEmit}function KQ(e,t){return{fileExists:t=>e.fileExists(t),getCurrentDirectory:()=>t.getCurrentDirectory(),readFile:We(t,t.readFile),useCaseSensitiveFileNames:We(t,t.useCaseSensitiveFileNames)||e.useCaseSensitiveFileNames,getSymlinkCache:We(t,t.getSymlinkCache)||e.getSymlinkCache,getModuleSpecifierCache:We(t,t.getModuleSpecifierCache),getPackageJsonInfoCache:()=>{var t;return null==(t=e.getModuleResolutionCache())?void 0:t.getPackageJsonInfoCache()},getGlobalTypingsCacheLocation:We(t,t.getGlobalTypingsCacheLocation),redirectTargetsMap:e.redirectTargetsMap,getRedirectFromSourceFile:t=>e.getRedirectFromSourceFile(t),isSourceOfProjectReferenceRedirect:t=>e.isSourceOfProjectReferenceRedirect(t),getNearestAncestorDirectoryWithPackageJson:We(t,t.getNearestAncestorDirectoryWithPackageJson),getFileIncludeReasons:()=>e.getFileIncludeReasons(),getCommonSourceDirectory:()=>e.getCommonSourceDirectory(),getDefaultResolutionModeForFile:t=>e.getDefaultResolutionModeForFile(t),getModeForResolutionAtIndex:(t,n)=>e.getModeForResolutionAtIndex(t,n)}}function GQ(e,t){return{...KQ(e,t),getCommonSourceDirectory:()=>e.getCommonSourceDirectory()}}function XQ(e){return 2===e||e>=3&&e<=99||100===e}function QQ(e,t,n,r,i){return mw.createImportDeclaration(void 0,e||t?mw.createImportClause(i?156:void 0,e,t&&t.length?mw.createNamedImports(t):void 0):void 0,"string"==typeof n?YQ(n,r):n,void 0)}function YQ(e,t){return mw.createStringLiteral(e,0===t)}var ZQ=(e=>(e[e.Single=0]="Single",e[e.Double=1]="Double",e))(ZQ||{});function eY(e,t){return qm(e,t)?1:0}function tY(e,t){if(t.quotePreference&&"auto"!==t.quotePreference)return"single"===t.quotePreference?0:1;{const t=Dm(e)&&e.imports&&b(e.imports,e=>UN(e)&&!ey(e.parent));return t?eY(t,e):1}}function nY(e){switch(e){case 0:return"'";case 1:return'"';default:return un.assertNever(e)}}function rY(e){const t=iY(e);return void 0===t?void 0:mc(t)}function iY(e){return"default"!==e.escapedName?e.escapedName:f(e.declarations,e=>{const t=Cc(e);return t&&80===t.kind?t.escapedText:void 0})}function oY(e){return ju(e)&&(JE(e.parent)||xE(e.parent)||XP(e.parent)||Lm(e.parent,!1)&&e.parent.arguments[0]===e||_f(e.parent)&&e.parent.arguments[0]===e)}function aY(e){return lF(e)&&sF(e.parent)&&aD(e.name)&&!e.propertyName}function sY(e,t){const n=e.getTypeAtLocation(t.parent);return n&&e.getPropertyOfType(n,t.name.text)}function cY(e,t,n){if(e)for(;e.parent;){if(sP(e.parent)||!lY(n,e.parent,t))return e;e=e.parent}}function lY(e,t,n){return Ps(e,t.getStart(n))&&t.getEnd()<=Fs(e)}function _Y(e,t){return kI(e)?b(e.modifiers,e=>e.kind===t):void 0}function uY(e,t,n,r,i){var o;const a=244===(Qe(n)?n[0]:n).kind?Jm:Sp,s=N(t.statements,a),{comparer:c,isSorted:l}=Yle.getOrganizeImportsStringComparerWithDetection(s,i),_=Qe(n)?_e(n,(e,t)=>Yle.compareImportsOrRequireStatements(e,t,c)):[n];if(null==s?void 0:s.length)if(un.assert(Dm(t)),s&&l)for(const n of _){const r=Yle.getImportDeclarationInsertionIndex(s,n,c);if(0===r){const r=s[0]===t.statements[0]?{leadingTriviaOption:jue.LeadingTriviaOption.Exclude}:{};e.insertNodeBefore(t,s[0],n,!1,r)}else{const i=s[r-1];e.insertNodeAfter(t,i,n)}}else{const n=ye(s);n?e.insertNodesAfter(t,n,_):e.insertNodesAtTopOfFile(t,_,r)}else if(Dm(t))e.insertNodesAtTopOfFile(t,_,r);else for(const n of _)e.insertStatementsInNewFile(t.fileName,[n],null==(o=_c(n))?void 0:o.getSourceFile())}function dY(e,t){return un.assert(e.isTypeOnly),nt(e.getChildAt(0,t),RQ)}function pY(e,t){return!!e&&!!t&&e.start===t.start&&e.length===t.length}function fY(e,t,n){return(n?ht:gt)(e.fileName,t.fileName)&&pY(e.textSpan,t.textSpan)}function mY(e){return(t,n)=>fY(t,n,e)}function gY(e,t){if(e)for(let n=0;n!!TD(e)||!(lF(e)||sF(e)||cF(e))&&"quit")}var kY=new Map;function SY(e,t){return{text:e,kind:AG[t]}}function TY(){return SY(" ",16)}function CY(e){return SY(Fa(e),5)}function wY(e){return SY(Fa(e),15)}function NY(e){return SY(Fa(e),12)}function DY(e){return SY(e,13)}function FY(e){return SY(e,14)}function EY(e){const t=Ea(e);return void 0===t?PY(e):CY(t)}function PY(e){return SY(e,17)}function AY(e){return SY(e,0)}function IY(e){return SY(e,18)}function OY(e){return SY(e,24)}function LY(e){return SY(e,22)}function jY(e,t){var n;const r=[LY(`{@${dP(e)?"link":pP(e)?"linkcode":"linkplain"} `)];if(e.name){const i=null==t?void 0:t.getSymbolAtLocation(e.name),o=i&&t?$Y(i,t):void 0,a=function(e){let t=e.indexOf("://");if(0===t){for(;t"===e[n]&&t--,n++,!t)return n}return 0}(e.text),s=Xd(e.name)+e.text.slice(0,a),c=function(e){let t=0;if(124===e.charCodeAt(t++)){for(;tc(e,17);return{displayParts:()=>{const e=n.length&&n[n.length-1].text;return o>t&&e&&"..."!==e&&(qa(e.charCodeAt(e.length-1))||n.push(SY(" ",16)),n.push(SY("...",15))),n},writeKeyword:e=>c(e,5),writeOperator:e=>c(e,12),writePunctuation:e=>c(e,15),writeTrailingSemicolon:e=>c(e,15),writeSpace:e=>c(e,16),writeStringLiteral:e=>c(e,8),writeParameter:e=>c(e,13),writeProperty:e=>c(e,14),writeLiteral:e=>c(e,8),writeSymbol:function(e,r){o>t||(s(),o+=e.length,n.push(function(e,t){return SY(e,function(e){const t=e.flags;return 3&t?xY(e)?13:9:4&t||32768&t||65536&t?14:8&t?19:16&t?20:32&t?1:64&t?4:384&t?2:1536&t?11:8192&t?10:262144&t?18:524288&t||2097152&t?0:17}(t))}(e,r)))},writeLine:function(){o>t||(o+=1,n.push(BY()),r=!0)},write:a,writeComment:a,getText:()=>"",getTextPos:()=>0,getColumn:()=>0,getLine:()=>0,isAtStartOfLine:()=>!1,hasTrailingWhitespace:()=>!1,hasTrailingComment:()=>!1,rawWrite:ut,getIndent:()=>i,increaseIndent:()=>{i++},decreaseIndent:()=>{i--},clear:l};function s(){if(!(o>t)&&r){const e=Ay(i);e&&(o+=e.length,n.push(SY(e,16))),r=!1}}function c(e,r){o>t||(s(),o+=e.length,n.push(SY(e,r)))}function l(){n=[],r=!0,i=0,o=0}}(e)),kY.get(e)}(t);try{return e(n),n.displayParts()}finally{n.clear()}}function zY(e,t,n,r=0,i,o,a){return JY(s=>{e.writeType(t,n,17408|r,s,i,o,a)},i)}function qY(e,t,n,r,i=0){return JY(o=>{e.writeSymbol(t,n,r,8|i,o)})}function UY(e,t,n,r=0,i,o,a){return r|=25632,JY(s=>{e.writeSignature(t,n,r,void 0,s,i,o,a)},i)}function VY(e){return!!e.parent&&Rl(e.parent)&&e.parent.propertyName===e}function WY(e,t){return bS(e,t.getScriptKind&&t.getScriptKind(e))}function $Y(e,t){let n=e;for(;HY(n)||Xu(n)&&n.links.target;)n=Xu(n)&&n.links.target?n.links.target:ox(n,t);return n}function HY(e){return!!(2097152&e.flags)}function KY(e,t){return eJ(ox(e,t))}function GY(e,t){for(;qa(e.charCodeAt(t));)t+=1;return t}function XY(e,t){for(;t>-1&&Ua(e.charCodeAt(t));)t-=1;return t+1}function QY(e,t){const n=e.getSourceFile();!function(e,t){const n=e.getFullStart(),r=e.getStart();for(let e=n;e=0),o}function eZ(e,t,n,r,i){os(n.text,e.pos,rZ(t,n,r,i,Lw))}function tZ(e,t,n,r,i){as(n.text,e.end,rZ(t,n,r,i,Rw))}function nZ(e,t,n,r,i){as(n.text,e.pos,rZ(t,n,r,i,Lw))}function rZ(e,t,n,r,i){return(o,a,s,c)=>{3===s?(o+=2,a-=2):o+=2,i(e,n||s,t.text.slice(o,a),void 0!==r?r:c)}}function iZ(e,t){if(Gt(e,t))return 0;let n=e.indexOf(" "+t);return-1===n&&(n=e.indexOf("."+t)),-1===n&&(n=e.indexOf('"'+t)),-1===n?-1:n+1}function oZ(e){return NF(e)&&28===e.operatorToken.kind||uF(e)||(LF(e)||jF(e))&&uF(e.expression)}function aZ(e,t,n){const r=rh(e.parent);switch(r.kind){case 215:return t.getContextualType(r,n);case 227:{const{left:i,operatorToken:o,right:a}=r;return cZ(o.kind)?t.getTypeAtLocation(e===a?i:a):t.getContextualType(e,n)}case 297:return uZ(r,t);default:return t.getContextualType(e,n)}}function sZ(e,t,n){const r=tY(e,t),i=JSON.stringify(n);return 0===r?`'${Fy(i).replace(/'/g,()=>"\\'").replace(/\\"/g,'"')}'`:i}function cZ(e){switch(e){case 37:case 35:case 38:case 36:return!0;default:return!1}}function lZ(e){switch(e.kind){case 11:case 15:case 229:case 216:return!0;default:return!1}}function _Z(e){return!!e.getStringIndexType()||!!e.getNumberIndexType()}function uZ(e,t){return t.getTypeAtLocation(e.parent.parent.expression)}var dZ="anonymous function";function pZ(e,t,n,r){const i=n.getTypeChecker();let o=!0;const a=()=>o=!1,s=i.typeToTypeNode(e,t,1,8,{trackSymbol:(e,t,n)=>(o=o&&0===i.isSymbolAccessible(e,t,n,!1).accessibility,!o),reportInaccessibleThisError:a,reportPrivateInBaseOfClassExpression:a,reportInaccessibleUniqueSymbolError:a,moduleResolverHost:GQ(n,r)});return o?s:void 0}function fZ(e){return 180===e||181===e||182===e||172===e||174===e}function mZ(e){return 263===e||177===e||175===e||178===e||179===e}function gZ(e){return 268===e}function hZ(e){return 244===e||245===e||247===e||252===e||253===e||254===e||258===e||260===e||173===e||266===e||273===e||272===e||279===e||271===e||278===e}var yZ=en(fZ,mZ,gZ,hZ);function vZ(e,t,n){const r=uc(t,t=>t.end!==e?"quit":yZ(t.kind));return!!r&&function(e,t){const n=e.getLastToken(t);if(n&&27===n.kind)return!1;if(fZ(e.kind)){if(n&&28===n.kind)return!1}else if(gZ(e.kind)){const n=ve(e.getChildren(t));if(n&&hE(n))return!1}else if(mZ(e.kind)){const n=ve(e.getChildren(t));if(n&&Bf(n))return!1}else if(!hZ(e.kind))return!1;if(247===e.kind)return!0;const r=QX(e,uc(e,e=>!e.parent),t);return!r||20===r.kind||t.getLineAndCharacterOfPosition(e.getEnd()).line!==t.getLineAndCharacterOfPosition(r.getStart(t)).line}(r,n)}function bZ(e){let t=0,n=0;return XI(e,function r(i){if(hZ(i.kind)){const r=i.getLastToken(e);27===(null==r?void 0:r.kind)?t++:n++}else if(fZ(i.kind)){const r=i.getLastToken(e);27===(null==r?void 0:r.kind)?t++:r&&28!==r.kind&&za(e,r.getStart(e)).line!==za(e,Gp(e,r.end).start).line&&n++}return t+n>=5||XI(i,r)}),0===t&&n<=1||t/n>.2}function xZ(e,t){return wZ(e,e.getDirectories,t)||[]}function kZ(e,t,n,r,i){return wZ(e,e.readDirectory,t,n,r,i)||l}function SZ(e,t){return wZ(e,e.fileExists,t)}function TZ(e,t){return CZ(()=>Db(t,e))||!1}function CZ(e){try{return e()}catch{return}}function wZ(e,t,...n){return CZ(()=>t&&t.apply(e,n))}function NZ(e,t){const n=[];return TR(t,e,e=>{const r=jo(e,"package.json");SZ(t,r)&&n.push(r)}),n}function DZ(e,t){let n;return TR(t,e,e=>"node_modules"===e||(n=BU(e,e=>SZ(t,e),"package.json"),!!n||void 0)),n}function FZ(e,t){if(!t.readFile)return;const n=["dependencies","devDependencies","optionalDependencies","peerDependencies"],r=Nb(t.readFile(e)||""),i={};if(r)for(const e of n){const t=r[e];if(!t)continue;const n=new Map;for(const e in t)n.set(e,t[e]);i[e]=n}const o=[[1,i.dependencies],[2,i.devDependencies],[8,i.optionalDependencies],[4,i.peerDependencies]];return{...i,parseable:!!r,fileName:e,get:a,has:(e,t)=>!!a(e,t)};function a(e,t=15){for(const[n,r]of o)if(r&&t&n){const t=r.get(e);if(void 0!==t)return t}}}function EZ(e,t,n){const r=(n.getPackageJsonsVisibleToFile&&n.getPackageJsonsVisibleToFile(e.fileName)||function(e,t){if(!t.fileExists)return[];const n=[];return TR(t,Do(e),e=>{const r=jo(e,"package.json");if(t.fileExists(r)){const e=FZ(r,t);e&&n.push(e)}}),n}(e.fileName,n)).filter(e=>e.parseable);let i,o,a;return{allowsImportingAmbientModule:function(e,t){if(!r.length||!e.valueDeclaration)return!0;if(o){const t=o.get(e);if(void 0!==t)return t}else o=new Map;const n=Fy(e.getName());if(c(n))return o.set(e,!0),!0;const i=l(e.valueDeclaration.getSourceFile().fileName,t);if(void 0===i)return o.set(e,!0),!0;const a=s(i)||s(n);return o.set(e,a),a},getSourceFileInfo:function(e,t){if(!r.length)return{importable:!0,packageName:void 0};if(a){const t=a.get(e);if(void 0!==t)return t}else a=new Map;const n=l(e.fileName,t);if(!n){const t={importable:!0,packageName:n};return a.set(e,t),t}const i={importable:s(n),packageName:n};return a.set(e,i),i},allowsImportingSpecifier:function(e){return!(r.length&&!c(e))||(!(!vo(e)&&!go(e))||s(e))}};function s(e){const t=_(e);for(const e of r)if(e.has(t)||e.has(ER(t)))return!0;return!1}function c(t){return!!(Dm(e)&&Fm(e)&&NC.has(t)&&(void 0===i&&(i=PZ(e)),i))}function l(r,i){if(!r.includes("node_modules"))return;const o=nB.getNodeModulesPackageName(n.getCompilationSettings(),e,r,i,t);return o?vo(o)||go(o)?void 0:_(o):void 0}function _(e){const t=Ao(AR(e)).slice(1);return Gt(t[0],"@")?`${t[0]}/${t[1]}`:t[0]}}function PZ(e){return $(e.imports,({text:e})=>NC.has(e))}function AZ(e){return T(Ao(e),"node_modules")}function IZ(e){return void 0!==e.file&&void 0!==e.start&&void 0!==e.length}function OZ(e,t){const n=Ce(t,FQ(e),st,bt);if(n>=0){const r=t[n];return un.assertEqual(r.file,e.getSourceFile(),"Diagnostics proided to 'findDiagnosticForNode' must be from a single SourceFile"),nt(r,IZ)}}function LZ(e,t){var n;let r=Ce(t,e.start,e=>e.start,vt);for(r<0&&(r=~r);(null==(n=t[r-1])?void 0:n.start)===e.start;)r--;const i=[],o=Fs(e);for(;;){const n=tt(t[r],IZ);if(!n||n.start>o)break;Is(e,n)&&i.push(n),r++}return i}function jZ({startPosition:e,endPosition:t}){return $s(e,void 0===t?e:t)}function MZ(e,t){return uc(HX(e,t.start),n=>n.getStart(e)Fs(t)?"quit":V_(n)&&pY(t,FQ(n,e)))}function RZ(e,t,n=st){return e?Qe(e)?n(E(e,t)):t(e,0):void 0}function BZ(e){return Qe(e)?ge(e):e}function JZ(e,t,n){return"export="===e.escapedName||"default"===e.escapedName?zZ(e)||qZ(function(e){var t;return un.checkDefined(e.parent,`Symbol parent was undefined. Flags: ${un.formatSymbolFlags(e.flags)}. Declarations: ${null==(t=e.declarations)?void 0:t.map(e=>{const t=un.formatSyntaxKind(e.kind),n=Em(e),{expression:r}=e;return(n?"[JS]":"")+t+(r?` (expression: ${un.formatSyntaxKind(r.kind)})`:"")}).join(", ")}.`)}(e),t,!!n):e.name}function zZ(e){return f(e.declarations,t=>{var n,r,i;if(AE(t))return null==(n=tt(NA(t.expression),aD))?void 0:n.text;if(LE(t)&&2097152===t.symbol.flags)return null==(r=tt(t.propertyName,aD))?void 0:r.text;return(null==(i=tt(Cc(t),aD))?void 0:i.text)||(e.parent&&!Qu(e.parent)?e.parent.getName():void 0)})}function qZ(e,t,n){return UZ(US(Fy(e.name)),t,n)}function UZ(e,t,n){const r=Fo(Rt(US(e),"/index"));let i="",o=!0;const a=r.charCodeAt(0);ps(a,t)?(i+=String.fromCharCode(a),n&&(i=i.toUpperCase())):o=!1;for(let e=1;ee.length)return!1;for(let i=0;i(e[e.Named=0]="Named",e[e.Default=1]="Default",e[e.Namespace=2]="Namespace",e[e.CommonJS=3]="CommonJS",e))(r0||{}),i0=(e=>(e[e.Named=0]="Named",e[e.Default=1]="Default",e[e.ExportEquals=2]="ExportEquals",e[e.UMD=3]="UMD",e[e.Module=4]="Module",e))(i0||{});function o0(e){let t=1;const n=$e(),r=new Map,i=new Map;let o;const a={isUsableByFile:e=>e===o,isEmpty:()=>!n.size,clear:()=>{n.clear(),r.clear(),o=void 0},add:(e,s,c,l,_,u,d,p)=>{let f;if(e!==o&&(a.clear(),o=e),_){const t=UT(_.fileName);if(t){const{topLevelNodeModulesIndex:n,topLevelPackageNameIndex:r,packageRootIndex:o}=t;if(f=IR(AR(_.fileName.substring(r+1,o))),Gt(e,_.path.substring(0,n))){const e=i.get(f),t=_.fileName.substring(0,r+1);e?n>e.indexOf(KM)&&i.set(f,t):i.set(f,t)}}}const m=1===u&&vb(s)||s,g=0===u||Qu(m)?mc(c):function(e,t){let n;return g0(e,t,void 0,(e,t)=>(n=t?[e,t]:e,!0)),un.checkDefined(n)}(m,p),h="string"==typeof g?g:g[0],y="string"==typeof g?void 0:g[1],v=Fy(l.name),b=t++,x=ox(s,p),k=33554432&s.flags?void 0:s,S=33554432&l.flags?void 0:l;k&&S||r.set(b,[s,l]),n.add(function(e,t,n,r){const i=n||"";return`${e.length} ${eJ(ox(t,r))} ${e} ${i}`}(h,s,Cs(v)?void 0:v,p),{id:b,symbolTableKey:c,symbolName:h,capitalizedSymbolName:y,moduleName:v,moduleFile:_,moduleFileName:null==_?void 0:_.fileName,packageName:f,exportKind:u,targetFlags:x.flags,isFromPackageJson:d,symbol:k,moduleSymbol:S})},get:(e,t)=>{if(e!==o)return;const r=n.get(t);return null==r?void 0:r.map(s)},search:(t,r,a,c)=>{if(t===o)return rd(n,(t,n)=>{const{symbolName:o,ambientModuleName:l}=function(e){const t=e.indexOf(" "),n=e.indexOf(" ",t+1),r=parseInt(e.substring(0,t),10),i=e.substring(n+1),o=i.substring(0,r),a=i.substring(r+1);return{symbolName:o,ambientModuleName:""===a?void 0:a}}(n),_=r&&t[0].capitalizedSymbolName||o;if(a(_,t[0].targetFlags)){const r=t.map(s).filter((n,r)=>function(t,n){if(!n||!t.moduleFileName)return!0;const r=e.getGlobalTypingsCacheLocation();if(r&&Gt(t.moduleFileName,r))return!0;const o=i.get(n);return!o||Gt(t.moduleFileName,o)}(n,t[r].packageName));if(r.length){const e=c(r,_,!!l,n);if(void 0!==e)return e}}})},releaseSymbols:()=>{r.clear()},onFileChanged:(e,t,n)=>!(c(e)&&c(t)||(o&&o!==t.path||n&&PZ(e)!==PZ(t)||!te(e.moduleAugmentations,t.moduleAugmentations)||!function(e,t){if(!te(e.ambientModuleNames,t.ambientModuleNames))return!1;let n=-1,r=-1;for(const i of t.ambientModuleNames){const o=e=>_p(e)&&e.name.text===i;if(n=k(e.statements,o,n+1),r=k(t.statements,o,r+1),e.statements[n]!==t.statements[r])return!1}return!0}(e,t)?(a.clear(),0):(o=t.path,1)))};return un.isDebugging&&Object.defineProperty(a,"__cache",{value:n}),a;function s(t){if(t.symbol&&t.moduleSymbol)return t;const{id:n,exportKind:i,targetFlags:o,isFromPackageJson:a,moduleFileName:s}=t,[c,_]=r.get(n)||l;if(c&&_)return{symbol:c,moduleSymbol:_,moduleFileName:s,exportKind:i,targetFlags:o,isFromPackageJson:a};const u=(a?e.getPackageJsonAutoImportProvider():e.getCurrentProgram()).getTypeChecker(),d=t.moduleSymbol||_||un.checkDefined(t.moduleFile?u.getMergedSymbol(t.moduleFile.symbol):u.tryFindAmbientModule(t.moduleName)),p=t.symbol||c||un.checkDefined(2===i?u.resolveExternalModuleSymbol(d):u.tryGetMemberInModuleExportsAndProperties(mc(t.symbolTableKey),d),`Could not find symbol '${t.symbolName}' by key '${t.symbolTableKey}' in module ${d.name}`);return r.set(n,[p,d]),{symbol:p,moduleSymbol:d,moduleFileName:s,exportKind:i,targetFlags:o,isFromPackageJson:a}}function c(e){return!(e.commonJsModuleIndicator||e.externalModuleIndicator||e.moduleAugmentations||e.ambientModuleNames)}}function a0(e,t,n,r,i,o,a,s){var c;if(!n){let n;const i=Fy(r.name);return NC.has(i)&&void 0!==(n=HZ(t,e))?n===Gt(i,"node:"):!o||o.allowsImportingAmbientModule(r,a)||s0(t,i)}if(un.assertIsDefined(n),t===n)return!1;const l=null==s?void 0:s.get(t.path,n.path,i,{});if(void 0!==(null==l?void 0:l.isBlockedByPackageJsonDependencies))return!l.isBlockedByPackageJsonDependencies||!!l.packageName&&s0(t,l.packageName);const _=My(a),u=null==(c=a.getGlobalTypingsCacheLocation)?void 0:c.call(a),d=!!nB.forEachFileNameOfModule(t.fileName,n.fileName,a,!1,r=>{const i=e.getSourceFile(r);return(i===n||!i)&&function(e,t,n,r,i){const o=TR(i,t,e=>"node_modules"===Fo(e)?e:void 0),a=o&&Do(n(o));return void 0===a||Gt(n(e),a)||!!r&&Gt(n(r),a)}(t.fileName,r,_,u,a)});if(o){const e=d?o.getSourceFileInfo(n,a):void 0;return null==s||s.setBlockedByPackageJsonDependencies(t.path,n.path,i,{},null==e?void 0:e.packageName,!(null==e?void 0:e.importable)),!!(null==e?void 0:e.importable)||d&&!!(null==e?void 0:e.packageName)&&s0(t,e.packageName)}return d}function s0(e,t){return e.imports&&e.imports.some(e=>e.text===t||e.text.startsWith(t+"/"))}function c0(e,t,n,r,i){var o,a;const s=jy(t),c=n.autoImportFileExcludePatterns&&l0(n,s);_0(e.getTypeChecker(),e.getSourceFiles(),c,t,(t,n)=>i(t,n,e,!1));const l=r&&(null==(o=t.getPackageJsonAutoImportProvider)?void 0:o.call(t));if(l){const n=Un(),r=e.getTypeChecker();_0(l.getTypeChecker(),l.getSourceFiles(),c,t,(t,n)=>{(n&&!e.getSourceFile(n.fileName)||!n&&!r.resolveName(t.name,void 0,1536,!1))&&i(t,n,l,!0)}),null==(a=t.log)||a.call(t,"forEachExternalModuleToImportFrom autoImportProvider: "+(Un()-n))}}function l0(e,t){return B(e.autoImportFileExcludePatterns,e=>{const n=pS(e,"","exclude");return n?gS(n,t):void 0})}function _0(e,t,n,r,i){var o;const a=n&&u0(n,r);for(const t of e.getAmbientModules())t.name.includes("*")||n&&(null==(o=t.declarations)?void 0:o.every(e=>a(e.getSourceFile())))||i(t,void 0);for(const n of t)Zp(n)&&!(null==a?void 0:a(n))&&i(e.getMergedSymbol(n.symbol),n)}function u0(e,t){var n;const r=null==(n=t.getSymlinkCache)?void 0:n.call(t).getSymlinkedDirectoriesByRealpath();return({fileName:n,path:i})=>{if(e.some(e=>e.test(n)))return!0;if((null==r?void 0:r.size)&&GM(n)){let o=Do(n);return TR(t,Do(i),t=>{const i=r.get(Wo(t));if(i)return i.some(t=>e.some(e=>e.test(n.replace(o,t))));o=Do(o)})??!1}return!1}}function d0(e,t){return t.autoImportFileExcludePatterns?u0(l0(t,jy(e)),e):()=>!1}function p0(e,t,n,r,i){var o,a,s,c,l;const _=Un();null==(o=t.getPackageJsonAutoImportProvider)||o.call(t);const u=(null==(a=t.getCachedExportInfoMap)?void 0:a.call(t))||o0({getCurrentProgram:()=>n,getPackageJsonAutoImportProvider:()=>{var e;return null==(e=t.getPackageJsonAutoImportProvider)?void 0:e.call(t)},getGlobalTypingsCacheLocation:()=>{var e;return null==(e=t.getGlobalTypingsCacheLocation)?void 0:e.call(t)}});if(u.isUsableByFile(e.path))return null==(s=t.log)||s.call(t,"getExportInfoMap: cache hit"),u;null==(c=t.log)||c.call(t,"getExportInfoMap: cache miss or empty; calculating new results");let d=0;try{c0(n,t,r,!0,(t,n,r,o)=>{++d%100==0&&(null==i||i.throwIfCancellationRequested());const a=new Set,s=r.getTypeChecker(),c=f0(t,s);c&&m0(c.symbol,s)&&u.add(e.path,c.symbol,1===c.exportKind?"default":"export=",t,n,c.exportKind,o,s),s.forEachExportAndPropertyOfModule(t,(r,i)=>{r!==(null==c?void 0:c.symbol)&&m0(r,s)&&bx(a,i)&&u.add(e.path,r,i,t,n,0,o,s)})})}catch(e){throw u.clear(),e}return null==(l=t.log)||l.call(t,`getExportInfoMap: done in ${Un()-_} ms`),u}function f0(e,t){const n=t.resolveExternalModuleSymbol(e);if(n!==e){const e=t.tryGetMemberInModuleExports("default",n);return e?{symbol:e,exportKind:1}:{symbol:n,exportKind:2}}const r=t.tryGetMemberInModuleExports("default",e);if(r)return{symbol:r,exportKind:1}}function m0(e,t){return!(t.isUndefinedSymbol(e)||t.isUnknownSymbol(e)||Wh(e)||$h(e))}function g0(e,t,n,r){let i,o=e;const a=new Set;for(;o;){const e=zZ(o);if(e){const t=r(e);if(t)return t}if("default"!==o.escapedName&&"export="!==o.escapedName){const e=r(o.name);if(e)return e}if(i=ie(i,o),!bx(a,o))break;o=2097152&o.flags?t.getImmediateAliasedSymbol(o):void 0}for(const e of i??l)if(e.parent&&Qu(e.parent)){const t=r(qZ(e.parent,n,!1),qZ(e.parent,n,!0));if(t)return t}}function h0(){const e=gs(99,!1);function t(t,n,r){let i=0,o=0;const a=[],{prefix:s,pushTemplate:c}=function(e){switch(e){case 3:return{prefix:'"\\\n'};case 2:return{prefix:"'\\\n"};case 1:return{prefix:"/*\n"};case 4:return{prefix:"`\n"};case 5:return{prefix:"}\n",pushTemplate:!0};case 6:return{prefix:"",pushTemplate:!0};case 0:return{prefix:""};default:return un.assertNever(e)}}(n);t=s+t;const l=s.length;c&&a.push(16),e.setText(t);let _=0;const u=[];let d=0;do{i=e.scan(),Ah(i)||(p(),o=i);const n=e.getTokenEnd();if(x0(e.getTokenStart(),n,l,S0(i),u),n>=t.length){const t=b0(e,i,ye(a));void 0!==t&&(_=t)}}while(1!==i);function p(){switch(i){case 44:case 69:v0[o]||14!==e.reScanSlashToken()||(i=14);break;case 30:80===o&&d++;break;case 32:d>0&&d--;break;case 133:case 154:case 150:case 136:case 155:d>0&&!r&&(i=80);break;case 16:a.push(i);break;case 19:a.length>0&&a.push(i);break;case 20:if(a.length>0){const t=ye(a);16===t?(i=e.reScanTemplateToken(!1),18===i?a.pop():un.assertEqual(i,17,"Should have been a template middle.")):(un.assertEqual(t,19,"Should have been an open brace"),a.pop())}break;default:if(!Ch(i))break;(25===o||Ch(o)&&Ch(i)&&!function(e,t){if(!kQ(e))return!0;switch(t){case 139:case 153:case 137:case 126:case 129:return!0;default:return!1}}(o,i))&&(i=80)}}return{endOfLineState:_,spans:u}}return{getClassificationsForLine:function(e,n,r){return function(e,t){const n=[],r=e.spans;let i=0;for(let e=0;e=0){const e=t-i;e>0&&n.push({length:e,classification:4})}n.push({length:o,classification:k0(a)}),i=t+o}const o=t.length-i;return o>0&&n.push({length:o,classification:4}),{entries:n,finalLexState:e.endOfLineState}}(t(e,n,r),e)},getEncodedLexicalClassifications:t}}var y0,v0=Re([80,11,9,10,14,110,46,47,22,24,20,112,97],e=>e,()=>!0);function b0(e,t,n){switch(t){case 11:{if(!e.isUnterminated())return;const t=e.getTokenText(),n=t.length-1;let r=0;for(;92===t.charCodeAt(n-r);)r++;if(!(1&r))return;return 34===t.charCodeAt(0)?3:2}case 3:return e.isUnterminated()?1:void 0;default:if(Ll(t)){if(!e.isUnterminated())return;switch(t){case 18:return 5;case 15:return 4;default:return un.fail("Only 'NoSubstitutionTemplateLiteral's and 'TemplateTail's can be unterminated; got SyntaxKind #"+t)}}return 16===n?6:void 0}}function x0(e,t,n,r,i){if(8===r)return;0===e&&n>0&&(e+=n);const o=t-e;o>0&&i.push(e-n,o,r)}function k0(e){switch(e){case 1:return 3;case 3:return 1;case 4:return 6;case 25:return 7;case 5:return 2;case 6:return 8;case 8:return 4;case 10:return 0;case 2:case 11:case 12:case 13:case 14:case 15:case 16:case 9:case 17:return 5;default:return}}function S0(e){if(Ch(e))return 3;if(function(e){switch(e){case 42:case 44:case 45:case 40:case 41:case 48:case 49:case 50:case 30:case 32:case 33:case 34:case 104:case 103:case 130:case 152:case 35:case 36:case 37:case 38:case 51:case 53:case 52:case 56:case 57:case 75:case 74:case 79:case 71:case 72:case 73:case 65:case 66:case 67:case 69:case 70:case 64:case 28:case 61:case 76:case 77:case 78:return!0;default:return!1}}(e)||function(e){switch(e){case 40:case 41:case 55:case 54:case 46:case 47:return!0;default:return!1}}(e))return 5;if(e>=19&&e<=79)return 10;switch(e){case 9:return 4;case 10:return 25;case 11:return 6;case 14:return 7;case 7:case 3:case 2:return 1;case 5:case 4:return 8;default:return Ll(e)?6:2}}function T0(e,t,n,r,i){return F0(w0(e,t,n,r,i))}function C0(e,t){switch(t){case 268:case 264:case 265:case 263:case 232:case 219:case 220:e.throwIfCancellationRequested()}}function w0(e,t,n,r,i){const o=[];return n.forEachChild(function a(s){if(s&&Bs(i,s.pos,s.getFullWidth())){if(C0(t,s.kind),aD(s)&&!Nd(s)&&r.has(s.escapedText)){const t=e.getSymbolAtLocation(s),r=t&&N0(t,WG(s),e);r&&function(e,t,n){const r=t-e;un.assert(r>0,`Classification had non-positive length of ${r}`),o.push(e),o.push(r),o.push(n)}(s.getStart(n),s.getEnd(),r)}s.forEachChild(a)}}),{spans:o,endOfLineState:0}}function N0(e,t,n){const r=e.getFlags();return 2885600&r?32&r?11:384&r?12:524288&r?16:1536&r?4&t||1&t&&function(e){return $(e.declarations,e=>gE(e)&&1===UR(e))}(e)?14:void 0:2097152&r?N0(n.getAliasedSymbol(e),t,n):2&t?64&r?13:262144&r?15:void 0:void 0:void 0}function D0(e){switch(e){case 1:return"comment";case 2:return"identifier";case 3:return"keyword";case 4:return"number";case 25:return"bigint";case 5:return"operator";case 6:return"string";case 8:return"whitespace";case 9:return"text";case 10:return"punctuation";case 11:return"class name";case 12:return"enum name";case 13:return"interface name";case 14:return"module name";case 15:return"type parameter name";case 16:return"type alias name";case 17:return"parameter name";case 18:return"doc comment tag name";case 19:return"jsx open tag name";case 20:return"jsx close tag name";case 21:return"jsx self closing tag name";case 22:return"jsx attribute";case 23:return"jsx text";case 24:return"jsx attribute string literal value";default:return}}function F0(e){un.assert(e.spans.length%3==0);const t=e.spans,n=[];for(let e=0;e])*)(\/>)?)?/m.exec(i);if(!o)return!1;if(!o[3]||!(o[3]in Li))return!1;let a=e;_(a,o[1].length),a+=o[1].length,c(a,o[2].length,10),a+=o[2].length,c(a,o[3].length,21),a+=o[3].length;const s=o[4];let l=a;for(;;){const e=r.exec(s);if(!e)break;const t=a+e.index+e[1].length;t>l&&(_(l,t-l),l=t),c(l,e[2].length,22),l+=e[2].length,e[3].length&&(_(l,e[3].length),l+=e[3].length),c(l,e[4].length,5),l+=e[4].length,e[5].length&&(_(l,e[5].length),l+=e[5].length),c(l,e[6].length,24),l+=e[6].length}a+=o[4].length,a>l&&_(l,a-l),o[5]&&(c(a,o[5].length,10),a+=o[5].length);const u=e+n;return a=0),i>0){const t=n||m(e.kind,e);t&&c(r,i,t)}return!0}function m(e,t){if(Ch(e))return 3;if((30===e||32===e)&&t&&gQ(t.parent))return 10;if(wh(e)){if(t){const n=t.parent;if(64===e&&(261===n.kind||173===n.kind||170===n.kind||292===n.kind))return 5;if(227===n.kind||225===n.kind||226===n.kind||228===n.kind)return 5}return 10}if(9===e)return 4;if(10===e)return 25;if(11===e)return t&&292===t.parent.kind?24:6;if(14===e)return 6;if(Ll(e))return 6;if(12===e)return 23;if(80===e){if(t){switch(t.parent.kind){case 264:return t.parent.name===t?11:void 0;case 169:return t.parent.name===t?15:void 0;case 265:return t.parent.name===t?13:void 0;case 267:return t.parent.name===t?12:void 0;case 268:return t.parent.name===t?14:void 0;case 170:return t.parent.name===t?lv(t)?3:17:void 0}if(kl(t.parent))return 3}return 2}}function g(n){if(n&&Js(r,i,n.pos,n.getFullWidth())){C0(e,n.kind);for(const e of n.getChildren(t))f(e)||g(e)}}}function A0(e){return!!e.sourceFile}function I0(e,t,n){return O0(e,t,n)}function O0(e,t="",n,r){const i=new Map,o=Wt(!!e);function a(e){return"function"==typeof e.getCompilationSettings?e.getCompilationSettings():e}function s(e,t,n,r,i,o,a,s){return _(e,t,n,r,i,o,!0,a,s)}function c(e,t,n,r,i,o,s,c){return _(e,t,a(n),r,i,o,!1,s,c)}function l(e,t){const n=A0(e)?e:e.get(un.checkDefined(t,"If there are more than one scriptKind's for same document the scriptKind should be provided"));return un.assert(void 0===t||!n||n.sourceFile.scriptKind===t,`Script kind should match provided ScriptKind:${t} and sourceFile.scriptKind: ${null==n?void 0:n.sourceFile.scriptKind}, !entry: ${!n}`),n}function _(e,t,o,s,c,_,u,d,p){var f,m,g,h;d=bS(e,d);const y=a(o),v=o===y?void 0:o,b=6===d?100:yk(y),x="object"==typeof p?p:{languageVersion:b,impliedNodeFormat:v&&AV(t,null==(h=null==(g=null==(m=null==(f=v.getCompilerHost)?void 0:f.call(v))?void 0:m.getModuleResolutionCache)?void 0:g.call(m))?void 0:h.getPackageJsonInfoCache(),v,y),setExternalModuleIndicator:pk(y),jsDocParsingMode:n};x.languageVersion=b,un.assertEqual(n,x.jsDocParsingMode);const k=i.size,S=j0(s,x.impliedNodeFormat),T=z(i,S,()=>new Map);if(Hn){i.size>k&&Hn.instant(Hn.Phase.Session,"createdDocumentRegistryBucket",{configFilePath:y.configFilePath,key:S});const e=!uO(t)&&rd(i,(e,n)=>n!==S&&e.has(t)&&n);e&&Hn.instant(Hn.Phase.Session,"documentRegistryBucketOverlap",{path:t,key1:e,key2:S})}const C=T.get(t);let w=C&&l(C,d);if(!w&&r){const e=r.getDocument(S,t);e&&e.scriptKind===d&&e.text===zQ(c)&&(un.assert(u),w={sourceFile:e,languageServiceRefCount:0},N())}if(w)w.sourceFile.version!==_&&(w.sourceFile=V8(w.sourceFile,c,_,c.getChangeRange(w.sourceFile.scriptSnapshot)),r&&r.setDocument(S,t,w.sourceFile)),u&&w.languageServiceRefCount++;else{const n=U8(e,c,x,_,!1,d);r&&r.setDocument(S,t,n),w={sourceFile:n,languageServiceRefCount:1},N()}return un.assert(0!==w.languageServiceRefCount),w.sourceFile;function N(){if(C)if(A0(C)){const e=new Map;e.set(C.sourceFile.scriptKind,C),e.set(d,w),T.set(t,e)}else C.set(d,w);else T.set(t,w)}}function u(e,t,n,r){const o=un.checkDefined(i.get(j0(t,r))),a=o.get(e),s=l(a,n);s.languageServiceRefCount--,un.assert(s.languageServiceRefCount>=0),0===s.languageServiceRefCount&&(A0(a)?o.delete(e):(a.delete(n),1===a.size&&o.set(e,m(a.values(),st))))}return{acquireDocument:function(e,n,r,i,c,l){return s(e,Uo(e,t,o),n,L0(a(n)),r,i,c,l)},acquireDocumentWithKey:s,updateDocument:function(e,n,r,i,s,l){return c(e,Uo(e,t,o),n,L0(a(n)),r,i,s,l)},updateDocumentWithKey:c,releaseDocument:function(e,n,r,i){return u(Uo(e,t,o),L0(n),r,i)},releaseDocumentWithKey:u,getKeyForCompilationSettings:L0,getDocumentRegistryBucketKeyWithMode:j0,reportStats:function(){const e=Oe(i.keys()).filter(e=>e&&"_"===e.charAt(0)).map(e=>{const t=i.get(e),n=[];return t.forEach((e,t)=>{A0(e)?n.push({name:t,scriptKind:e.sourceFile.scriptKind,refCount:e.languageServiceRefCount}):e.forEach((e,r)=>n.push({name:t,scriptKind:r,refCount:e.languageServiceRefCount}))}),n.sort((e,t)=>t.refCount-e.refCount),{bucket:e,sourceFiles:n}});return JSON.stringify(e,void 0,2)},getBuckets:()=>i}}function L0(e){return TM(e,BO)}function j0(e,t){return t?`${e}|${t}`:e}function M0(e,t,n,r,i,o,a){const s=jy(r),c=Wt(s),l=R0(t,n,c,a),_=R0(n,t,c,a);return jue.ChangeTracker.with({host:r,formatContext:i,preferences:o},i=>{!function(e,t,n,r,i,o,a){const{configFile:s}=e.getCompilerOptions();if(!s)return;const c=Do(s.fileName),l=Wf(s);function _(e){const t=_F(e.initializer)?e.initializer.elements:[e.initializer];let n=!1;for(const e of t)n=u(e)||n;return n}function u(e){if(!UN(e))return!1;const r=B0(c,e.text),i=n(r);return void 0!==i&&(t.replaceRangeWithText(s,U0(e,s),d(i)),!0)}function d(e){return ra(c,e,!a)}l&&V0(l,(e,n)=>{switch(n){case"files":case"include":case"exclude":{if(_(e)||"include"!==n||!_F(e.initializer))return;const l=B(e.initializer.elements,e=>UN(e)?e.text:void 0);if(0===l.length)return;const u=mS(c,[],l,a,o);return void(gS(un.checkDefined(u.includeFilePattern),a).test(r)&&!gS(un.checkDefined(u.includeFilePattern),a).test(i)&&t.insertNodeAfter(s,ve(e.initializer.elements),mw.createStringLiteral(d(i))))}case"compilerOptions":return void V0(e.initializer,(e,t)=>{const n=_L(t);un.assert("listOrElement"!==(null==n?void 0:n.type)),n&&(n.isFilePath||"list"===n.type&&n.element.isFilePath)?_(e):"paths"===t&&V0(e.initializer,e=>{if(_F(e.initializer))for(const t of e.initializer.elements)u(t)})})}})}(e,i,l,t,n,r.getCurrentDirectory(),s),function(e,t,n,r,i,o){const a=e.getSourceFiles();for(const s of a){const c=n(s.fileName),l=c??s.fileName,_=Do(l),u=r(s.fileName),d=u||s.fileName,p=Do(d),f=void 0!==c||void 0!==u;q0(s,t,e=>{if(!vo(e))return;const t=B0(p,e),r=n(t);return void 0===r?void 0:$o(ra(_,r,o))},t=>{const r=e.getTypeChecker().getSymbolAtLocation(t);if((null==r?void 0:r.declarations)&&r.declarations.some(e=>cp(e)))return;const o=void 0!==u?z0(t,MM(t.text,d,e.getCompilerOptions(),i),n,a):J0(r,t,s,e,i,n);return void 0!==o&&(o.updated||f&&vo(t.text))?nB.updateModuleSpecifier(e.getCompilerOptions(),s,l,o.newFileName,KQ(e,i),t.text):void 0})}}(e,i,l,_,r,c)})}function R0(e,t,n,r){const i=n(e);return e=>{const o=r&&r.tryGetSourcePosition({fileName:e,pos:0}),a=function(e){if(n(e)===i)return t;const r=Zk(e,i,n);return void 0===r?void 0:t+"/"+r}(o?o.fileName:e);return o?void 0===a?void 0:function(e,t,n,r){const i=oa(e,t,r);return B0(Do(n),i)}(o.fileName,a,e,n):a}}function B0(e,t){return $o(function(e,t){return Jo(jo(e,t))}(e,t))}function J0(e,t,n,r,i,o){if(e){const t=b(e.declarations,sP).fileName,n=o(t);return void 0===n?{newFileName:t,updated:!1}:{newFileName:n,updated:!0}}{const e=r.getModeForUsageLocation(n,t);return z0(t,i.resolveModuleNameLiterals||!i.resolveModuleNames?r.getResolvedModuleFromModuleSpecifier(t,n):i.getResolvedModuleWithFailedLookupLocationsFromCache&&i.getResolvedModuleWithFailedLookupLocationsFromCache(t.text,n.fileName,e),o,r.getSourceFiles())}}function z0(e,t,n,r){if(!t)return;if(t.resolvedModule){const e=o(t.resolvedModule.resolvedFileName);if(e)return e}return d(t.failedLookupLocations,function(e){const t=n(e);return t&&b(r,e=>e.fileName===t)?i(e):void 0})||vo(e.text)&&d(t.failedLookupLocations,i)||t.resolvedModule&&{newFileName:t.resolvedModule.resolvedFileName,updated:!1};function i(e){return Mt(e,"/package.json")?void 0:o(e)}function o(e){const t=n(e);return t&&{newFileName:t,updated:!0}}}function q0(e,t,n,r){for(const r of e.referencedFiles||l){const i=n(r.fileName);void 0!==i&&i!==e.text.slice(r.pos,r.end)&&t.replaceRangeWithText(e,r,i)}for(const n of e.imports){const i=r(n);void 0!==i&&i!==n.text&&t.replaceRangeWithText(e,U0(n,e),i)}}function U0(e,t){return Ab(e.getStart(t)+1,e.end-1)}function V0(e,t){if(uF(e))for(const n of e.properties)rP(n)&&UN(n.name)&&t(n,n.name.text)}(e=>{function t(e,t){return{fileName:t.fileName,textSpan:FQ(e,t),kind:"none"}}function n(e){return aE(e)?[e]:sE(e)?K(e.catchClause?n(e.catchClause):e.tryBlock&&n(e.tryBlock),e.finallyBlock&&n(e.finallyBlock)):r_(e)?void 0:i(e,n)}function r(e){return Cl(e)?[e]:r_(e)?void 0:i(e,r)}function i(e,t){const n=[];return e.forEachChild(e=>{const r=t(e);void 0!==r&&n.push(...Ye(r))}),n}function o(e,t){const n=a(t);return!!n&&n===e}function a(e){return uc(e,t=>{switch(t.kind){case 256:if(252===e.kind)return!1;case 249:case 250:case 251:case 248:case 247:return!e.label||function(e,t){return!!uc(e.parent,e=>oE(e)?e.label.escapedText===t:"quit")}(t,e.label.escapedText);default:return r_(t)&&"quit"}})}function s(e,t,...n){return!(!t||!T(n,t.kind)||(e.push(t),0))}function c(e){const t=[];if(s(t,e.getFirstToken(),99,117,92)&&247===e.kind){const n=e.getChildren();for(let e=n.length-1;e>=0&&!s(t,n[e],117);e--);}return d(r(e.statement),n=>{o(e,n)&&s(t,n.getFirstToken(),83,88)}),t}function l(e){const t=a(e);if(t)switch(t.kind){case 249:case 250:case 251:case 247:case 248:return c(t);case 256:return _(t)}}function _(e){const t=[];return s(t,e.getFirstToken(),109),d(e.caseBlock.clauses,n=>{s(t,n.getFirstToken(),84,90),d(r(n),n=>{o(e,n)&&s(t,n.getFirstToken(),83)})}),t}function u(e,t){const n=[];return s(n,e.getFirstToken(),113),e.catchClause&&s(n,e.catchClause.getFirstToken(),85),e.finallyBlock&&s(n,OX(e,98,t),98),n}function p(e,t){const r=function(e){let t=e;for(;t.parent;){const e=t.parent;if(Bf(e)||308===e.kind)return e;if(sE(e)&&e.tryBlock===t&&e.catchClause)return t;t=e}}(e);if(!r)return;const i=[];return d(n(r),e=>{i.push(OX(e,111,t))}),Bf(r)&&Df(r,e=>{i.push(OX(e,107,t))}),i}function f(e,t){const r=Kf(e);if(!r)return;const i=[];return Df(nt(r.body,VF),e=>{i.push(OX(e,107,t))}),d(n(r.body),e=>{i.push(OX(e,111,t))}),i}function m(e){const t=Kf(e);if(!t)return;const n=[];return t.modifiers&&t.modifiers.forEach(e=>{s(n,e,134)}),XI(t,e=>{g(e,e=>{TF(e)&&s(n,e.getFirstToken(),135)})}),n}function g(e,t){t(e),r_(e)||u_(e)||pE(e)||gE(e)||fE(e)||b_(e)||XI(e,e=>g(e,t))}e.getDocumentHighlights=function(e,n,r,i,o){const a=WX(r,i);if(a.parent&&(UE(a.parent)&&a.parent.tagName===a||VE(a.parent))){const{openingElement:e,closingElement:n}=a.parent.parent,i=[e,n].map(({tagName:e})=>t(e,r));return[{fileName:r.fileName,highlightSpans:i}]}return function(e,t,n,r,i){const o=new Set(i.map(e=>e.fileName)),a=gce.getReferenceEntriesForNode(e,t,n,i,r,void 0,o);if(!a)return;const s=Be(a.map(gce.toHighlightSpan),e=>e.fileName,e=>e.span),c=Wt(n.useCaseSensitiveFileNames());return Oe(J(s.entries(),([e,t])=>{if(!o.has(e)){if(!n.redirectTargetsMap.has(Uo(e,n.getCurrentDirectory(),c)))return;const t=n.getSourceFile(e);e=b(i,e=>!!e.redirectInfo&&e.redirectInfo.redirectTarget===t).fileName,un.assert(o.has(e))}return{fileName:e,highlightSpans:t}}))}(i,a,e,n,o)||function(e,n){const r=function(e,n){switch(e.kind){case 101:case 93:return KF(e.parent)?function(e,n){const r=function(e,t){const n=[];for(;KF(e.parent)&&e.parent.elseStatement===e;)e=e.parent;for(;;){const r=e.getChildren(t);s(n,r[0],101);for(let e=r.length-1;e>=0&&!s(n,r[e],93);e--);if(!e.elseStatement||!KF(e.elseStatement))break;e=e.elseStatement}return n}(e,n),i=[];for(let e=0;e=t.end;e--)if(!Ua(n.text.charCodeAt(e))){a=!1;break}if(a){i.push({fileName:n.fileName,textSpan:$s(t.getStart(),o.end),kind:"reference"}),e++;continue}}i.push(t(r[e],n))}return i}(e.parent,n):void 0;case 107:return o(e.parent,nE,f);case 111:return o(e.parent,aE,p);case 113:case 85:case 98:return o(85===e.kind?e.parent.parent:e.parent,sE,u);case 109:return o(e.parent,iE,_);case 84:case 90:return eP(e.parent)||ZE(e.parent)?o(e.parent.parent.parent,iE,_):void 0;case 83:case 88:return o(e.parent,Cl,l);case 99:case 117:case 92:return o(e.parent,e=>$_(e,!0),c);case 137:return i(PD,[137]);case 139:case 153:return i(d_,[139,153]);case 135:return o(e.parent,TF,m);case 134:return a(m(e));case 127:return a(function(e){const t=Kf(e);if(!t)return;const n=[];return XI(t,e=>{g(e,e=>{EF(e)&&s(n,e.getFirstToken(),127)})}),n}(e));case 103:case 147:return;default:return Xl(e.kind)&&(_u(e.parent)||WF(e.parent))?a((r=e.kind,B(function(e,t){const n=e.parent;switch(n.kind){case 269:case 308:case 242:case 297:case 298:return 64&t&&dE(e)?[...e.members,e]:n.statements;case 177:case 175:case 263:return[...n.parameters,...u_(n.parent)?n.parent.members:[]];case 264:case 232:case 265:case 188:const r=n.members;if(15&t){const e=b(n.members,PD);if(e)return[...r,...e.parameters]}else if(64&t)return[...r,n];return r;default:return}}(e.parent,Hv(r)),e=>_Y(e,r)))):void 0}var r;function i(t,r){return o(e.parent,t,e=>{var i;return B(null==(i=tt(e,au))?void 0:i.symbol.declarations,e=>t(e)?b(e.getChildren(n),e=>T(r,e.kind)):void 0)})}function o(e,t,r){return t(e)?a(r(e,n)):void 0}function a(e){return e&&e.map(e=>t(e,n))}}(e,n);return r&&[{fileName:n.fileName,highlightSpans:r}]}(a,r)}})(y0||(y0={}));var W0=(e=>(e[e.exact=0]="exact",e[e.prefix=1]="prefix",e[e.substring=2]="substring",e[e.camelCase=3]="camelCase",e))(W0||{});function $0(e,t){return{kind:e,isCaseSensitive:t}}function H0(e){const t=new Map,n=e.trim().split(".").map(e=>{return{totalTextChunk:s1(t=e.trim()),subWordTextChunks:a1(t)};var t});return 1===n.length&&""===n[0].totalTextChunk.text?{getMatchForLastSegmentOfPattern:()=>$0(2,!0),getFullMatch:()=>$0(2,!0),patternContainsDots:!1}:n.some(e=>!e.subWordTextChunks.length)?void 0:{getFullMatch:(e,r)=>function(e,t,n,r){if(!X0(t,ve(n),r))return;if(n.length-1>e.length)return;let i;for(let t=n.length-2,o=e.length-1;t>=0;t-=1,o-=1)i=Q0(i,X0(e[o],n[t],r));return i}(e,r,n,t),getMatchForLastSegmentOfPattern:e=>X0(e,ve(n),t),patternContainsDots:n.length>1}}function K0(e,t){let n=t.get(e);return n||t.set(e,n=l1(e)),n}function G0(e,t,n){const r=function(e,t){const n=e.length-t.length;for(let r=0;r<=n;r++)if(g1(t,(t,n)=>r1(e.charCodeAt(n+r))===t))return r;return-1}(e,t.textLowerCase);if(0===r)return $0(t.text.length===e.length?0:1,Gt(e,t.text));if(t.isLowerCase){if(-1===r)return;const i=K0(e,n);for(const n of i)if(Z0(e,n,t.text,!0))return $0(2,Z0(e,n,t.text,!1));if(t.text.length0)return $0(2,!0);if(t.characterSpans.length>0){const r=K0(e,n),i=!!e1(e,r,t,!1)||!e1(e,r,t,!0)&&void 0;if(void 0!==i)return $0(3,i)}}}function X0(e,t,n){if(g1(t.totalTextChunk.text,e=>32!==e&&42!==e)){const r=G0(e,t.totalTextChunk,n);if(r)return r}const r=t.subWordTextChunks;let i;for(const t of r)i=Q0(i,G0(e,t,n));return i}function Q0(e,t){return kt([e,t],Y0)}function Y0(e,t){return void 0===e?1:void 0===t?-1:vt(e.kind,t.kind)||Ot(!e.isCaseSensitive,!t.isCaseSensitive)}function Z0(e,t,n,r,i={start:0,length:n.length}){return i.length<=t.length&&m1(0,i.length,o=>function(e,t,n){return n?r1(e)===r1(t):e===t}(n.charCodeAt(i.start+o),e.charCodeAt(t.start+o),r))}function e1(e,t,n,r){const i=n.characterSpans;let o,a,s=0,c=0;for(;;){if(c===i.length)return!0;if(s===t.length)return!1;let l=t[s],_=!1;for(;c=65&&e<=90)return!0;if(e<127||!wa(e,99))return!1;const t=String.fromCharCode(e);return t===t.toUpperCase()}function n1(e){if(e>=97&&e<=122)return!0;if(e<127||!wa(e,99))return!1;const t=String.fromCharCode(e);return t===t.toLowerCase()}function r1(e){return e>=65&&e<=90?e-65+97:e<127?e:String.fromCharCode(e).toLowerCase().charCodeAt(0)}function i1(e){return e>=48&&e<=57}function o1(e){return t1(e)||n1(e)||i1(e)||95===e||36===e}function a1(e){const t=[];let n=0,r=0;for(let i=0;i0&&(t.push(s1(e.substr(n,r))),r=0);return r>0&&t.push(s1(e.substr(n,r))),t}function s1(e){const t=e.toLowerCase();return{text:e,textLowerCase:t,isLowerCase:e===t,characterSpans:c1(e)}}function c1(e){return _1(e,!1)}function l1(e){return _1(e,!0)}function _1(e,t){const n=[];let r=0;for(let i=1;iu1(e)&&95!==e,t,n)}function p1(e,t,n){return t!==n&&t+1t(e.charCodeAt(n),n))}function h1(e,t=!0,n=!1){const r={languageVersion:1,pragmas:void 0,checkJsDirective:void 0,referencedFiles:[],typeReferenceDirectives:[],libReferenceDirectives:[],amdDependencies:[],hasNoDefaultLib:void 0,moduleName:void 0},i=[];let o,a,s,c=0,l=!1;function _(){return a=s,s=qG.scan(),19===s?c++:20===s&&c--,s}function d(){const e=qG.getTokenValue(),t=qG.getTokenStart();return{fileName:e,pos:t,end:t+e.length}}function p(){i.push(d()),f()}function f(){0===c&&(l=!0)}function m(){let e=qG.getToken();return 138===e&&(e=_(),144===e&&(e=_(),11===e&&(o||(o=[]),o.push({ref:d(),depth:c}))),!0)}function g(){if(25===a)return!1;let e=qG.getToken();if(102===e){if(e=_(),21===e){if(e=_(),11===e||15===e)return p(),!0}else{if(11===e)return p(),!0;if(156===e&&qG.lookAhead(()=>{const e=qG.scan();return 161!==e&&(42===e||19===e||80===e||Ch(e))})&&(e=_()),80===e||Ch(e))if(e=_(),161===e){if(e=_(),11===e)return p(),!0}else if(64===e){if(y(!0))return!0}else{if(28!==e)return!0;e=_()}if(19===e){for(e=_();20!==e&&1!==e;)e=_();20===e&&(e=_(),161===e&&(e=_(),11===e&&p()))}else 42===e&&(e=_(),130===e&&(e=_(),(80===e||Ch(e))&&(e=_(),161===e&&(e=_(),11===e&&p()))))}return!0}return!1}function h(){let e=qG.getToken();if(95===e){if(f(),e=_(),156===e&&qG.lookAhead(()=>{const e=qG.scan();return 42===e||19===e})&&(e=_()),19===e){for(e=_();20!==e&&1!==e;)e=_();20===e&&(e=_(),161===e&&(e=_(),11===e&&p()))}else if(42===e)e=_(),161===e&&(e=_(),11===e&&p());else if(102===e&&(e=_(),156===e&&qG.lookAhead(()=>{const e=qG.scan();return 80===e||Ch(e)})&&(e=_()),(80===e||Ch(e))&&(e=_(),64===e&&y(!0))))return!0;return!0}return!1}function y(e,t=!1){let n=e?_():qG.getToken();return 149===n&&(n=_(),21===n&&(n=_(),(11===n||t&&15===n)&&p()),!0)}function v(){let e=qG.getToken();if(80===e&&"define"===qG.getTokenValue()){if(e=_(),21!==e)return!0;if(e=_(),11===e||15===e){if(e=_(),28!==e)return!0;e=_()}if(23!==e)return!0;for(e=_();24!==e&&1!==e;)11!==e&&15!==e||p(),e=_();return!0}return!1}if(t&&function(){for(qG.setText(e),_();1!==qG.getToken();){if(16===qG.getToken()){const e=[qG.getToken()];e:for(;u(e);){const t=qG.scan();switch(t){case 1:break e;case 102:g();break;case 16:e.push(t);break;case 19:u(e)&&e.push(t);break;case 20:u(e)&&(16===ye(e)?18===qG.reScanTemplateToken(!1)&&e.pop():e.pop())}}_()}m()||g()||h()||n&&(y(!1,!0)||v())||_()}qG.setText(void 0)}(),pO(r,e),fO(r,rt),l){if(o)for(const e of o)i.push(e.ref);return{referencedFiles:r.referencedFiles,typeReferenceDirectives:r.typeReferenceDirectives,libReferenceDirectives:r.libReferenceDirectives,importedFiles:i,isLibFile:!!r.hasNoDefaultLib,ambientExternalModules:void 0}}{let e;if(o)for(const t of o)0===t.depth?(e||(e=[]),e.push(t.ref.fileName)):i.push(t.ref);return{referencedFiles:r.referencedFiles,typeReferenceDirectives:r.typeReferenceDirectives,libReferenceDirectives:r.libReferenceDirectives,importedFiles:i,isLibFile:!!r.hasNoDefaultLib,ambientExternalModules:e}}}var y1=/^data:(?:application\/json;charset=[uU][tT][fF]-8;base64,([A-Za-z0-9+/=]+)$)?/;function v1(e){const t=Wt(e.useCaseSensitiveFileNames()),n=e.getCurrentDirectory(),r=new Map,i=new Map;return{tryGetSourcePosition:function e(t){if(!uO(t.fileName))return;if(!s(t.fileName))return;const n=a(t.fileName).getSourcePosition(t);return n&&n!==t?e(n)||n:void 0},tryGetGeneratedPosition:function(t){if(uO(t.fileName))return;const n=s(t.fileName);if(!n)return;const r=e.getProgram();if(r.isSourceOfProjectReferenceRedirect(n.fileName))return;const i=r.getCompilerOptions().outFile,o=i?US(i)+".d.ts":Vy(t.fileName,r.getCompilerOptions(),r);if(void 0===o)return;const c=a(o,t.fileName).getGeneratedPosition(t);return c===t?void 0:c},toLineColumnOffset:function(e,t){return c(e).getLineAndCharacterOfPosition(t)},clearCache:function(){r.clear(),i.clear()},documentPositionMappers:i};function o(e){return Uo(e,n,t)}function a(n,r){const a=o(n),s=i.get(a);if(s)return s;let l;if(e.getDocumentPositionMapper)l=e.getDocumentPositionMapper(n,r);else if(e.readFile){const r=c(n);l=r&&b1({getSourceFileLike:c,getCanonicalFileName:t,log:t=>e.log(t)},n,wJ(r.text,Ma(r)),t=>!e.fileExists||e.fileExists(t)?e.readFile(t):void 0)}return i.set(a,l||qJ),l||qJ}function s(t){const n=e.getProgram();if(!n)return;const r=o(t),i=n.getSourceFileByPath(r);return i&&i.resolvedPath===r?i:void 0}function c(t){return e.getSourceFileLike?e.getSourceFileLike(t):s(t)||function(t){const n=o(t),i=r.get(n);if(void 0!==i)return i||void 0;if(!e.readFile||e.fileExists&&!e.fileExists(t))return void r.set(n,!1);const a=e.readFile(t),s=!!a&&function(e){return{text:e,lineMap:void 0,getLineAndCharacterOfPosition(e){return Ra(Ma(this),e)}}}(a);return r.set(n,s),s||void 0}(t)}}function b1(e,t,n,r){let i=NJ(n);if(i){const n=y1.exec(i);if(n){if(n[1]){const r=n[1];return x1(e,Tb(so,r),t)}i=void 0}}const o=[];i&&o.push(i),o.push(t+".map");const a=i&&Bo(i,Do(t));for(const n of o){const i=Bo(n,Do(t)),o=r(i,a);if(Ze(o))return x1(e,o,i);if(void 0!==o)return o||void 0}}function x1(e,t,n){const r=FJ(t);if(r&&r.sources&&r.file&&r.mappings&&(!r.sourcesContent||!r.sourcesContent.some(Ze)))return zJ(e,r,n)}var k1=new Map;function S1(e,t,n){var r;t.getSemanticDiagnostics(e,n);const i=[],o=t.getTypeChecker();var a;1!==t.getImpliedNodeFormatForEmit(e)&&!So(e.fileName,[".cts",".cjs"])&&e.commonJsModuleIndicator&&($Q(t)||HQ(t.getCompilerOptions()))&&function(e){return e.statements.some(e=>{switch(e.kind){case 244:return e.declarationList.declarations.some(e=>!!e.initializer&&Lm(T1(e.initializer),!0));case 245:{const{expression:t}=e;if(!NF(t))return Lm(t,!0);const n=tg(t);return 1===n||2===n}default:return!1}})}(e)&&i.push(Rp(NF(a=e.commonJsModuleIndicator)?a.left:a,_a.File_is_a_CommonJS_module_it_may_be_converted_to_an_ES_module));const s=Fm(e);if(k1.clear(),function t(n){if(s)(function(e,t){var n,r,i,o;if(vF(e)){if(lE(e.parent)&&(null==(n=e.symbol.members)?void 0:n.size))return!0;const o=t.getSymbolOfExpando(e,!1);return!(!o||!(null==(r=o.exports)?void 0:r.size)&&!(null==(i=o.members)?void 0:i.size))}return!!uE(e)&&!!(null==(o=e.symbol.members)?void 0:o.size)})(n,o)&&i.push(Rp(lE(n.parent)?n.parent.name:n,_a.This_constructor_function_may_be_converted_to_a_class_declaration));else{if(WF(n)&&n.parent===e&&2&n.declarationList.flags&&1===n.declarationList.declarations.length){const e=n.declarationList.declarations[0].initializer;e&&Lm(e,!0)&&i.push(Rp(e,_a.require_call_may_be_converted_to_an_import))}const t=T7.getJSDocTypedefNodes(n);for(const e of t)i.push(Rp(e,_a.JSDoc_typedef_may_be_converted_to_TypeScript_type));T7.parameterShouldGetTypeFromJSDoc(n)&&i.push(Rp(n.name||n,_a.JSDoc_types_may_be_moved_to_TypeScript_types))}I1(n)&&function(e,t,n){(function(e,t){return!Lh(e)&&e.body&&VF(e.body)&&function(e,t){return!!Df(e,e=>N1(e,t))}(e.body,t)&&w1(e,t)})(e,t)&&!k1.has(A1(e))&&n.push(Rp(!e.name&&lE(e.parent)&&aD(e.parent.name)?e.parent.name:e,_a.This_may_be_converted_to_an_async_function))}(n,o,i),n.forEachChild(t)}(e),Tk(t.getCompilerOptions()))for(const n of e.imports){const o=vg(n);if(bE(o)&&Nv(o,32))continue;const a=C1(o);if(!a)continue;const s=null==(r=t.getResolvedModuleFromModuleSpecifier(n,e))?void 0:r.resolvedModule,c=s&&t.getSourceFile(s.resolvedFileName);c&&c.externalModuleIndicator&&!0!==c.externalModuleIndicator&&AE(c.externalModuleIndicator)&&c.externalModuleIndicator.isExportEquals&&i.push(Rp(a,_a.Import_may_be_converted_to_a_default_import))}return se(i,e.bindSuggestionDiagnostics),se(i,t.getSuggestionDiagnostics(e,n)),i.sort((e,t)=>e.start-t.start),i}function T1(e){return dF(e)?T1(e.expression):e}function C1(e){switch(e.kind){case 273:const{importClause:t,moduleSpecifier:n}=e;return t&&!t.name&&t.namedBindings&&275===t.namedBindings.kind&&UN(n)?t.namedBindings.name:void 0;case 272:return e.name;default:return}}function w1(e,t){const n=t.getSignatureFromDeclaration(e),r=n?t.getReturnTypeOfSignature(n):void 0;return!!r&&!!t.getPromisedTypeOfPromise(r)}function N1(e,t){return nE(e)&&!!e.expression&&D1(e.expression,t)}function D1(e,t){if(!F1(e)||!E1(e)||!e.arguments.every(e=>P1(e,t)))return!1;let n=e.expression.expression;for(;F1(n)||dF(n);)if(fF(n)){if(!E1(n)||!n.arguments.every(e=>P1(e,t)))return!1;n=n.expression.expression}else n=n.expression;return!0}function F1(e){return fF(e)&&(oX(e,"then")||oX(e,"catch")||oX(e,"finally"))}function E1(e){const t=e.expression.name.text,n="then"===t?2:"catch"===t||"finally"===t?1:0;return!(e.arguments.length>n)&&(e.arguments.length106===e.kind||aD(e)&&"undefined"===e.text))}function P1(e,t){switch(e.kind){case 263:case 219:if(1&Oh(e))return!1;case 220:k1.set(A1(e),!0);case 106:return!0;case 80:case 212:{const n=t.getSymbolAtLocation(e);return!!n&&(t.isUndefinedSymbol(n)||$(ox(n,t).declarations,e=>r_(e)||Eu(e)&&!!e.initializer&&r_(e.initializer)))}default:return!1}}function A1(e){return`${e.pos.toString()}:${e.end.toString()}`}function I1(e){switch(e.kind){case 263:case 175:case 219:case 220:return!0;default:return!1}}var O1=new Set(["isolatedModules"]);function L1(e,t){return z1(e,t,!1)}function j1(e,t){return z1(e,t,!0)}var M1,R1,B1='/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number {}\ninterface Object {}\ninterface RegExp {}\ninterface String {}\ninterface Array { length: number; [n: number]: T; }\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}',J1="lib.d.ts";function z1(e,t,n){M1??(M1=eO(J1,B1,{languageVersion:99}));const r=[],i=t.compilerOptions?U1(t.compilerOptions,r):{},o={target:1,jsx:1};for(const e in o)De(o,e)&&void 0===i[e]&&(i[e]=o[e]);for(const e of zO)i.verbatimModuleSyntax&&O1.has(e.name)||(i[e.name]=e.transpileOptionValue);i.suppressOutputPathCheck=!0,i.allowNonTsExtensions=!0,n?(i.declaration=!0,i.emitDeclarationOnly=!0,i.isolatedDeclarations=!0):(i.declaration=!1,i.declarationMap=!1);const a=Pb(i),s={getSourceFile:e=>e===Jo(c)?l:e===Jo(J1)?M1:void 0,writeFile:(e,t)=>{ko(e,".map")?(un.assertEqual(u,void 0,"Unexpected multiple source map outputs, file:",e),u=t):(un.assertEqual(_,void 0,"Unexpected multiple outputs, file:",e),_=t)},getDefaultLibFileName:()=>J1,useCaseSensitiveFileNames:()=>!1,getCanonicalFileName:e=>e,getCurrentDirectory:()=>"",getNewLine:()=>a,fileExists:e=>e===c||!!n&&e===J1,readFile:()=>"",directoryExists:()=>!0,getDirectories:()=>[]},c=t.fileName||(t.compilerOptions&&t.compilerOptions.jsx?"module.tsx":"module.ts"),l=eO(c,e,{languageVersion:yk(i),impliedNodeFormat:AV(Uo(c,"",s.getCanonicalFileName),void 0,s,i),setExternalModuleIndicator:pk(i),jsDocParsingMode:t.jsDocParsingMode??0});let _,u;t.moduleName&&(l.moduleName=t.moduleName),t.renamedDependencies&&(l.renamedDependencies=new Map(Object.entries(t.renamedDependencies)));const d=LV(n?[c,J1]:[c],i,s);return t.reportDiagnostics&&(se(r,d.getSyntacticDiagnostics(l)),se(r,d.getOptionsDiagnostics())),se(r,d.emit(void 0,void 0,void 0,n,t.transformers,n).diagnostics),void 0===_?un.fail("Output generation failed"):{outputText:_,diagnostics:r,sourceMapText:u}}function q1(e,t,n,r,i){const o=L1(e,{compilerOptions:t,fileName:n,reportDiagnostics:!!r,moduleName:i});return se(r,o.diagnostics),o.outputText}function U1(e,t){R1=R1||N(OO,e=>"object"==typeof e.type&&!rd(e.type,e=>"number"!=typeof e)),e=SQ(e);for(const n of R1){if(!De(e,n.name))continue;const r=e[n.name];Ze(r)?e[n.name]=tL(n,r,t):rd(n.type,e=>e===r)||t.push(ZO(n))}return e}var V1={};function W1(e,t,n,r,i,o,a){const s=H0(r);if(!s)return l;const c=[],_=1===e.length?e[0]:void 0;for(const r of e)n.throwIfCancellationRequested(),o&&r.isDeclarationFile||$1(r,!!a,_)||r.getNamedDeclarations().forEach((e,n)=>{H1(s,n,e,t,r.fileName,!!a,_,c)});return c.sort(Z1),(void 0===i?c:c.slice(0,i)).map(e2)}function $1(e,t,n){return e!==n&&t&&(AZ(e.path)||e.hasNoDefaultLib)}function H1(e,t,n,r,i,o,a,s){const c=e.getMatchForLastSegmentOfPattern(t);if(c)for(const l of n)if(K1(l,r,o,a))if(e.patternContainsDots){const n=e.getFullMatch(Y1(l),t);n&&s.push({name:t,fileName:i,matchKind:n.kind,isCaseSensitive:n.isCaseSensitive,declaration:l})}else s.push({name:t,fileName:i,matchKind:c.kind,isCaseSensitive:c.isCaseSensitive,declaration:l})}function K1(e,t,n,r){var i;switch(e.kind){case 274:case 277:case 272:const o=t.getSymbolAtLocation(e.name),a=t.getAliasedSymbol(o);return o.escapedName!==a.escapedName&&!(null==(i=a.declarations)?void 0:i.every(e=>$1(e.getSourceFile(),n,r)));default:return!0}}function G1(e,t){const n=Cc(e);return!!n&&(Q1(n,t)||168===n.kind&&X1(n.expression,t))}function X1(e,t){return Q1(e,t)||dF(e)&&(t.push(e.name.text),!0)&&X1(e.expression,t)}function Q1(e,t){return zh(e)&&(t.push(qh(e)),!0)}function Y1(e){const t=[],n=Cc(e);if(n&&168===n.kind&&!X1(n.expression,t))return l;t.shift();let r=hX(e);for(;r;){if(!G1(r,t))return l;r=hX(r)}return t.reverse(),t}function Z1(e,t){return vt(e.matchKind,t.matchKind)||At(e.name,t.name)}function e2(e){const t=e.declaration,n=hX(t),r=n&&Cc(n);return{name:e.name,kind:yX(t),kindModifiers:mQ(t),matchKind:W0[e.matchKind],isCaseSensitive:e.isCaseSensitive,fileName:e.fileName,textSpan:FQ(t),containerName:r?r.text:"",containerKind:r?yX(n):""}}i(V1,{getNavigateToItems:()=>W1});var t2={};i(t2,{getNavigationBarItems:()=>u2,getNavigationTree:()=>d2});var n2,r2,i2,o2,a2=/\s+/g,s2=150,c2=[],l2=[],_2=[];function u2(e,t){n2=t,r2=e;try{return E(function(e){const t=[];return function e(n){if(function(e){if(e.children)return!0;switch(m2(e)){case 264:case 232:case 267:case 265:case 268:case 308:case 266:case 347:case 339:return!0;case 220:case 263:case 219:return t(e);default:return!1}function t(e){if(!e.node.body)return!1;switch(m2(e.parent)){case 269:case 308:case 175:case 177:return!0;default:return!1}}}(n)&&(t.push(n),n.children))for(const t of n.children)e(t)}(e),t}(h2(e)),J2)}finally{p2()}}function d2(e,t){n2=t,r2=e;try{return B2(h2(e))}finally{p2()}}function p2(){r2=void 0,n2=void 0,c2=[],i2=void 0,_2=[]}function f2(e){return X2(e.getText(r2))}function m2(e){return e.node.kind}function g2(e,t){e.children?e.children.push(t):e.children=[t]}function h2(e){un.assert(!c2.length);const t={node:e,name:void 0,additionalNodes:void 0,parent:void 0,children:void 0,indent:0};i2=t;for(const t of e.statements)D2(t);return T2(),un.assert(!i2&&!c2.length),t}function y2(e,t){g2(i2,v2(e,t))}function v2(e,t){return{node:e,name:t||(_u(e)||V_(e)?Cc(e):void 0),additionalNodes:void 0,parent:i2,children:void 0,indent:i2.indent+1}}function b2(e){o2||(o2=new Map),o2.set(e,!0)}function x2(e){for(let t=0;t0;t--)S2(e,n[t]);return[n.length-1,n[0]]}function S2(e,t){const n=v2(e,t);g2(i2,n),c2.push(i2),l2.push(o2),o2=void 0,i2=n}function T2(){i2.children&&(F2(i2.children,i2),L2(i2.children)),i2=c2.pop(),o2=l2.pop()}function C2(e,t,n){S2(e,n),D2(t),T2()}function w2(e){e.initializer&&function(e){switch(e.kind){case 220:case 219:case 232:return!0;default:return!1}}(e.initializer)?(S2(e),XI(e.initializer,D2),T2()):C2(e,e.initializer)}function N2(e){const t=Cc(e);if(void 0===t)return!1;if(kD(t)){const e=t.expression;return ab(e)||zN(e)||jh(e)}return!!t}function D2(e){if(n2.throwIfCancellationRequested(),e&&!El(e))switch(e.kind){case 177:const t=e;C2(t,t.body);for(const e of t.parameters)Zs(e,t)&&y2(e);break;case 175:case 178:case 179:case 174:N2(e)&&C2(e,e.body);break;case 173:N2(e)&&w2(e);break;case 172:N2(e)&&y2(e);break;case 274:const n=e;n.name&&y2(n.name);const{namedBindings:r}=n;if(r)if(275===r.kind)y2(r);else for(const e of r.elements)y2(e);break;case 305:C2(e,e.name);break;case 306:const{expression:i}=e;aD(i)?y2(e,i):y2(e);break;case 209:case 304:case 261:{const t=e;k_(t.name)?D2(t.name):w2(t);break}case 263:const o=e.name;o&&aD(o)&&b2(o.text),C2(e,e.body);break;case 220:case 219:C2(e,e.body);break;case 267:S2(e);for(const t of e.members)W2(t)||y2(t);T2();break;case 264:case 232:case 265:S2(e);for(const t of e.members)D2(t);T2();break;case 268:C2(e,V2(e).body);break;case 278:{const t=e.expression,n=uF(t)||fF(t)?t:bF(t)||vF(t)?t.body:void 0;n?(S2(e),D2(n),T2()):y2(e);break}case 282:case 272:case 182:case 180:case 181:case 266:y2(e);break;case 214:case 227:{const t=tg(e);switch(t){case 1:case 2:return void C2(e,e.right);case 6:case 3:{const n=e,r=n.left,i=3===t?r.expression:r;let o,a=0;return aD(i.expression)?(b2(i.expression.text),o=i.expression):[a,o]=k2(n,i.expression),6===t?uF(n.right)&&n.right.properties.length>0&&(S2(n,o),XI(n.right,D2),T2()):vF(n.right)||bF(n.right)?C2(e,n.right,o):(S2(n,o),C2(e,n.right,r.name),T2()),void x2(a)}case 7:case 9:{const n=e,r=7===t?n.arguments[0]:n.arguments[0].expression,i=n.arguments[1],[o,a]=k2(e,r);return S2(e,a),S2(e,xI(mw.createIdentifier(i.text),i)),D2(e.arguments[2]),T2(),T2(),void x2(o)}case 5:{const t=e,n=t.left,r=n.expression;if(aD(r)&&"prototype"!==_g(n)&&o2&&o2.has(r.text))return void(vF(t.right)||bF(t.right)?C2(e,t.right,r):og(n)&&(S2(t,r),C2(t.left,t.right,cg(n)),T2()));break}case 4:case 0:case 8:break;default:un.assertNever(t)}}default:Du(e)&&d(e.jsDoc,e=>{d(e.tags,e=>{Dg(e)&&y2(e)})}),XI(e,D2)}}function F2(e,t){const n=new Map;D(e,(e,r)=>{const i=e.name||Cc(e.node),o=i&&f2(i);if(!o)return!0;const a=n.get(o);if(!a)return n.set(o,e),!0;if(a instanceof Array){for(const n of a)if(P2(n,e,r,t))return!1;return a.push(e),!0}{const i=a;return!P2(i,e,r,t)&&(n.set(o,[i,e]),!0)}})}var E2={5:!0,3:!0,7:!0,9:!0,0:!1,1:!1,2:!1,8:!1,6:!0,4:!1};function P2(e,t,n,r){return!!function(e,t,n,r){function i(e){return vF(e)||uE(e)||lE(e)}const o=NF(t.node)||fF(t.node)?tg(t.node):0,a=NF(e.node)||fF(e.node)?tg(e.node):0;if(E2[o]&&E2[a]||i(e.node)&&E2[o]||i(t.node)&&E2[a]||dE(e.node)&&A2(e.node)&&E2[o]||dE(t.node)&&E2[a]||dE(e.node)&&A2(e.node)&&i(t.node)||dE(t.node)&&i(e.node)&&A2(e.node)){let o=e.additionalNodes&&ye(e.additionalNodes)||e.node;if(!dE(e.node)&&!dE(t.node)||i(e.node)||i(t.node)){const n=i(e.node)?e.node:i(t.node)?t.node:void 0;if(void 0!==n){const r=v2(xI(mw.createConstructorDeclaration(void 0,[],void 0),n));r.indent=e.indent+1,r.children=e.node===n?e.children:t.children,e.children=e.node===n?K([r],t.children||[t]):K(e.children||[{...e}],[r])}else(e.children||t.children)&&(e.children=K(e.children||[{...e}],t.children||[t]),e.children&&(F2(e.children,e),L2(e.children)));o=e.node=xI(mw.createClassDeclaration(void 0,e.name||mw.createIdentifier("__class__"),void 0,void 0,[]),e.node)}else e.children=K(e.children,t.children),e.children&&F2(e.children,e);const a=t.node;return r.children[n-1].node.end===o.end?xI(o,{pos:o.pos,end:a.end}):(e.additionalNodes||(e.additionalNodes=[]),e.additionalNodes.push(xI(mw.createClassDeclaration(void 0,e.name||mw.createIdentifier("__class__"),void 0,void 0,[]),t.node))),!0}return 0!==o}(e,t,n,r)||!!function(e,t,n){if(e.kind!==t.kind||e.parent!==t.parent&&(!I2(e,n)||!I2(t,n)))return!1;switch(e.kind){case 173:case 175:case 178:case 179:return Dv(e)===Dv(t);case 268:return O2(e,t)&&U2(e)===U2(t);default:return!0}}(e.node,t.node,r)&&(o=t,(i=e).additionalNodes=i.additionalNodes||[],i.additionalNodes.push(o.node),o.additionalNodes&&i.additionalNodes.push(...o.additionalNodes),i.children=K(i.children,o.children),i.children&&(F2(i.children,i),L2(i.children)),!0);var i,o}function A2(e){return!!(16&e.flags)}function I2(e,t){if(void 0===e.parent)return!1;const n=hE(e.parent)?e.parent.parent:e.parent;return n===t.node||T(t.additionalNodes,n)}function O2(e,t){return e.body&&t.body?e.body.kind===t.body.kind&&(268!==e.body.kind||O2(e.body,t.body)):e.body===t.body}function L2(e){e.sort(j2)}function j2(e,t){return At(M2(e.node),M2(t.node))||vt(m2(e),m2(t))}function M2(e){if(268===e.kind)return q2(e);const t=Cc(e);if(t&&t_(t)){const e=Jh(t);return e&&mc(e)}switch(e.kind){case 219:case 220:case 232:return K2(e);default:return}}function R2(e,t){if(268===e.kind)return X2(q2(e));if(t){const e=aD(t)?t.text:pF(t)?`[${f2(t.argumentExpression)}]`:f2(t);if(e.length>0)return X2(e)}switch(e.kind){case 308:const t=e;return rO(t)?`"${xy(Fo(US(Jo(t.fileName))))}"`:"";case 278:return AE(e)&&e.isExportEquals?"export=":"default";case 220:case 263:case 219:case 264:case 232:return 2048&zv(e)?"default":K2(e);case 177:return"constructor";case 181:return"new()";case 180:return"()";case 182:return"[]";default:return""}}function B2(e){return{text:R2(e.node,e.name),kind:yX(e.node),kindModifiers:H2(e.node),spans:z2(e),nameSpan:e.name&&$2(e.name),childItems:E(e.children,B2)}}function J2(e){return{text:R2(e.node,e.name),kind:yX(e.node),kindModifiers:H2(e.node),spans:z2(e),childItems:E(e.children,function(e){return{text:R2(e.node,e.name),kind:yX(e.node),kindModifiers:mQ(e.node),spans:z2(e),childItems:_2,indent:0,bolded:!1,grayed:!1}})||_2,indent:e.indent,bolded:!1,grayed:!1}}function z2(e){const t=[$2(e.node)];if(e.additionalNodes)for(const n of e.additionalNodes)t.push($2(n));return t}function q2(e){return cp(e)?Xd(e.name):U2(e)}function U2(e){const t=[qh(e.name)];for(;e.body&&268===e.body.kind;)e=e.body,t.push(qh(e.name));return t.join(".")}function V2(e){return e.body&&gE(e.body)?V2(e.body):e}function W2(e){return!e.name||168===e.name.kind}function $2(e){return 308===e.kind?AQ(e):FQ(e,r2)}function H2(e){return e.parent&&261===e.parent.kind&&(e=e.parent),mQ(e)}function K2(e){const{parent:t}=e;if(e.name&&sd(e.name)>0)return X2(Ap(e.name));if(lE(t))return X2(Ap(t.name));if(NF(t)&&64===t.operatorToken.kind)return f2(t.left).replace(a2,"");if(rP(t))return f2(t.name);if(2048&zv(e))return"default";if(u_(e))return"";if(fF(t)){let e=G2(t.expression);if(void 0!==e)return e=X2(e),e.length>s2?`${e} callback`:`${e}(${X2(B(t.arguments,e=>ju(e)||M_(e)?e.getText(r2):void 0).join(", "))}) callback`}return""}function G2(e){if(aD(e))return e.text;if(dF(e)){const t=G2(e.expression),n=e.name.text;return void 0===t?n:`${t}.${n}`}}function X2(e){return(e=e.length>s2?e.substring(0,s2)+"...":e).replace(/\\?(?:\r?\n|[\r\u2028\u2029])/g,"")}var Q2={};i(Q2,{addExportsInOldFile:()=>E6,addImportsForMovedSymbols:()=>j6,addNewFileToTsconfig:()=>F6,addOrRemoveBracesToArrowFunction:()=>k3,addTargetFileImports:()=>_3,containsJsx:()=>G6,convertArrowFunctionOrFunctionExpression:()=>I3,convertParamsToDestructuredObject:()=>U3,convertStringOrTemplateLiteral:()=>l4,convertToOptionalChainExpression:()=>T4,createNewFileName:()=>H6,doChangeNamedToNamespaceOrDefault:()=>p6,extractSymbol:()=>j4,generateGetAccessorAndSetAccessor:()=>t8,getApplicableRefactors:()=>e6,getEditsForRefactor:()=>t6,getExistingLocals:()=>a3,getIdentifierForNode:()=>l3,getNewStatementsAndRemoveFromOldFile:()=>D6,getStatementsToMove:()=>K6,getUsageInfo:()=>Q6,inferFunctionReturnType:()=>o8,isInImport:()=>e3,isRefactorErrorInfo:()=>s3,refactorKindBeginsWith:()=>c3,registerRefactor:()=>Z2});var Y2=new Map;function Z2(e,t){Y2.set(e,t)}function e6(e,t){return Oe(j(Y2.values(),n=>{var r;return e.cancellationToken&&e.cancellationToken.isCancellationRequested()||!(null==(r=n.kinds)?void 0:r.some(t=>c3(t,e.kind)))?void 0:n.getAvailableActions(e,t)}))}function t6(e,t,n,r){const i=Y2.get(t);return i&&i.getEditsForAction(e,n,r)}var n6="Convert export",r6={name:"Convert default export to named export",description:Vx(_a.Convert_default_export_to_named_export),kind:"refactor.rewrite.export.named"},i6={name:"Convert named export to default export",description:Vx(_a.Convert_named_export_to_default_export),kind:"refactor.rewrite.export.default"};function o6(e,t=!0){const{file:n,program:r}=e,i=jZ(e),o=HX(n,i.start),a=o.parent&&32&zv(o.parent)&&t?o.parent:cY(o,n,i);if(!a||!(sP(a.parent)||hE(a.parent)&&cp(a.parent.parent)))return{error:Vx(_a.Could_not_find_export_statement)};const s=r.getTypeChecker(),c=function(e,t){if(sP(e))return e.symbol;const n=e.parent.symbol;return n.valueDeclaration&&fp(n.valueDeclaration)?t.getMergedSymbol(n):n}(a.parent,s),l=zv(a)||(AE(a)&&!a.isExportEquals?2080:0),_=!!(2048&l);if(!(32&l)||!_&&c.exports.has("default"))return{error:Vx(_a.This_file_already_has_a_default_export)};const u=e=>aD(e)&&s.getSymbolAtLocation(e)?void 0:{error:Vx(_a.Can_only_convert_named_export)};switch(a.kind){case 263:case 264:case 265:case 267:case 266:case 268:{const e=a;if(!e.name)return;return u(e.name)||{exportNode:e,exportName:e.name,wasDefault:_,exportingModuleSymbol:c}}case 244:{const e=a;if(!(2&e.declarationList.flags)||1!==e.declarationList.declarations.length)return;const t=ge(e.declarationList.declarations);if(!t.initializer)return;return un.assert(!_,"Can't have a default flag here"),u(t.name)||{exportNode:e,exportName:t.name,wasDefault:_,exportingModuleSymbol:c}}case 278:{const e=a;if(e.isExportEquals)return;return u(e.expression)||{exportNode:e,exportName:e.expression,wasDefault:_,exportingModuleSymbol:c}}default:return}}function a6(e,t){return mw.createImportSpecifier(!1,e===t?void 0:mw.createIdentifier(e),mw.createIdentifier(t))}function s6(e,t){return mw.createExportSpecifier(!1,e===t?void 0:mw.createIdentifier(e),mw.createIdentifier(t))}Z2(n6,{kinds:[r6.kind,i6.kind],getAvailableActions:function(e){const t=o6(e,"invoked"===e.triggerReason);if(!t)return l;if(!s3(t)){const e=t.wasDefault?r6:i6;return[{name:n6,description:e.description,actions:[e]}]}return e.preferences.provideRefactorNotApplicableReason?[{name:n6,description:Vx(_a.Convert_default_export_to_named_export),actions:[{...r6,notApplicableReason:t.error},{...i6,notApplicableReason:t.error}]}]:l},getEditsForAction:function(e,t){un.assert(t===r6.name||t===i6.name,"Unexpected action name");const n=o6(e);un.assert(n&&!s3(n),"Expected applicable refactor info");const r=jue.ChangeTracker.with(e,t=>function(e,t,n,r,i){(function(e,{wasDefault:t,exportNode:n,exportName:r},i,o){if(t)if(AE(n)&&!n.isExportEquals){const t=n.expression,r=s6(t.text,t.text);i.replaceNode(e,n,mw.createExportDeclaration(void 0,!1,mw.createNamedExports([r])))}else i.delete(e,un.checkDefined(_Y(n,90),"Should find a default keyword in modifier list"));else{const t=un.checkDefined(_Y(n,95),"Should find an export keyword in modifier list");switch(n.kind){case 263:case 264:case 265:i.insertNodeAfter(e,t,mw.createToken(90));break;case 244:const a=ge(n.declarationList.declarations);if(!gce.Core.isSymbolReferencedInFile(r,o,e)&&!a.type){i.replaceNode(e,n,mw.createExportDefault(un.checkDefined(a.initializer,"Initializer was previously known to be present")));break}case 267:case 266:case 268:i.deleteModifier(e,t),i.insertNodeAfter(e,n,mw.createExportDefault(mw.createIdentifier(r.text)));break;default:un.fail(`Unexpected exportNode kind ${n.kind}`)}}})(e,n,r,t.getTypeChecker()),function(e,{wasDefault:t,exportName:n,exportingModuleSymbol:r},i,o){const a=e.getTypeChecker(),s=un.checkDefined(a.getSymbolAtLocation(n),"Export name should resolve to a symbol");gce.Core.eachExportReference(e.getSourceFiles(),a,o,s,r,n.text,t,e=>{if(n===e)return;const r=e.getSourceFile();t?function(e,t,n,r){const{parent:i}=t;switch(i.kind){case 212:n.replaceNode(e,t,mw.createIdentifier(r));break;case 277:case 282:{const t=i;n.replaceNode(e,t,a6(r,t.name.text));break}case 274:{const o=i;un.assert(o.name===t,"Import clause name should match provided ref");const a=a6(r,t.text),{namedBindings:s}=o;if(s)if(275===s.kind){n.deleteRange(e,{pos:t.getStart(e),end:s.getStart(e)});const i=UN(o.parent.moduleSpecifier)?eY(o.parent.moduleSpecifier,e):1,a=QQ(void 0,[a6(r,t.text)],o.parent.moduleSpecifier,i);n.insertNodeAfter(e,o.parent,a)}else n.delete(e,t),n.insertNodeAtEndOfList(e,s.elements,a);else n.replaceNode(e,t,mw.createNamedImports([a]));break}case 206:const o=i;n.replaceNode(e,i,mw.createImportTypeNode(o.argument,o.attributes,mw.createIdentifier(r),o.typeArguments,o.isTypeOf));break;default:un.failBadSyntaxKind(i)}}(r,e,i,n.text):function(e,t,n){const r=t.parent;switch(r.kind){case 212:n.replaceNode(e,t,mw.createIdentifier("default"));break;case 277:{const t=mw.createIdentifier(r.name.text);1===r.parent.elements.length?n.replaceNode(e,r.parent,t):(n.delete(e,r),n.insertNodeBefore(e,r.parent,t));break}case 282:n.replaceNode(e,r,s6("default",r.name.text));break;default:un.assertNever(r,`Unexpected parent kind ${r.kind}`)}}(r,e,i)})}(t,n,r,i)}(e.file,e.program,n,t,e.cancellationToken));return{edits:r,renameFilename:void 0,renameLocation:void 0}}});var c6="Convert import",l6={0:{name:"Convert namespace import to named imports",description:Vx(_a.Convert_namespace_import_to_named_imports),kind:"refactor.rewrite.import.named"},2:{name:"Convert named imports to namespace import",description:Vx(_a.Convert_named_imports_to_namespace_import),kind:"refactor.rewrite.import.namespace"},1:{name:"Convert named imports to default import",description:Vx(_a.Convert_named_imports_to_default_import),kind:"refactor.rewrite.import.default"}};function _6(e,t=!0){const{file:n}=e,r=jZ(e),i=HX(n,r.start),o=t?uc(i,en(xE,XP)):cY(i,n,r);if(void 0===o||!xE(o)&&!XP(o))return{error:"Selection is not an import declaration."};const a=r.start+r.length,s=QX(o,o.parent,n);if(s&&a>s.getStart())return;const{importClause:c}=o;return c?c.namedBindings?275===c.namedBindings.kind?{convertTo:0,import:c.namedBindings}:u6(e.program,c)?{convertTo:1,import:c.namedBindings}:{convertTo:2,import:c.namedBindings}:{error:Vx(_a.Could_not_find_namespace_import_or_named_imports)}:{error:Vx(_a.Could_not_find_import_clause)}}function u6(e,t){return Tk(e.getCompilerOptions())&&function(e,t){const n=t.resolveExternalModuleName(e);if(!n)return!1;return n!==t.resolveExternalModuleSymbol(n)}(t.parent.moduleSpecifier,e.getTypeChecker())}function d6(e){return dF(e)?e.name:e.right}function p6(e,t,n,r,i=u6(t,r.parent)){const o=t.getTypeChecker(),a=r.parent.parent,{moduleSpecifier:s}=a,c=new Set;r.elements.forEach(e=>{const t=o.getSymbolAtLocation(e.name);t&&c.add(t)});const l=s&&UN(s)?UZ(s.text,99):"module",_=r.elements.some(function(t){return!!gce.Core.eachSymbolReferenceInFile(t.name,o,e,e=>{const t=o.resolveName(l,e,-1,!0);return!!t&&(!c.has(t)||LE(e.parent))})})?YY(l,e):l,u=new Set;for(const t of r.elements){const r=t.propertyName||t.name;gce.Core.eachSymbolReferenceInFile(t.name,o,e,i=>{const o=11===r.kind?mw.createElementAccessExpression(mw.createIdentifier(_),mw.cloneNode(r)):mw.createPropertyAccessExpression(mw.createIdentifier(_),mw.cloneNode(r));iP(i.parent)?n.replaceNode(e,i.parent,mw.createPropertyAssignment(i.text,o)):LE(i.parent)?u.add(t):n.replaceNode(e,i,o)})}if(n.replaceNode(e,r,i?mw.createIdentifier(_):mw.createNamespaceImport(mw.createIdentifier(_))),u.size&&xE(a)){const t=Oe(u.values(),e=>mw.createImportSpecifier(e.isTypeOnly,e.propertyName&&mw.cloneNode(e.propertyName),mw.cloneNode(e.name)));n.insertNodeAfter(e,r.parent.parent,f6(a,void 0,t))}}function f6(e,t,n){return mw.createImportDeclaration(void 0,m6(t,n),e.moduleSpecifier,void 0)}function m6(e,t){return mw.createImportClause(void 0,e,t&&t.length?mw.createNamedImports(t):void 0)}Z2(c6,{kinds:Ae(l6).map(e=>e.kind),getAvailableActions:function(e){const t=_6(e,"invoked"===e.triggerReason);if(!t)return l;if(!s3(t)){const e=l6[t.convertTo];return[{name:c6,description:e.description,actions:[e]}]}return e.preferences.provideRefactorNotApplicableReason?Ae(l6).map(e=>({name:c6,description:e.description,actions:[{...e,notApplicableReason:t.error}]})):l},getEditsForAction:function(e,t){un.assert($(Ae(l6),e=>e.name===t),"Unexpected action name");const n=_6(e);un.assert(n&&!s3(n),"Expected applicable refactor info");const r=jue.ChangeTracker.with(e,t=>function(e,t,n,r){const i=t.getTypeChecker();0===r.convertTo?function(e,t,n,r,i){let o=!1;const a=[],s=new Map;gce.Core.eachSymbolReferenceInFile(r.name,t,e,e=>{if(I_(e.parent)){const r=d6(e.parent).text;t.resolveName(r,e,-1,!0)&&s.set(r,!0),un.assert((dF(n=e.parent)?n.expression:n.left)===e,"Parent expression should match id"),a.push(e.parent)}else o=!0;var n});const c=new Map;for(const t of a){const r=d6(t).text;let i=c.get(r);void 0===i&&c.set(r,i=s.has(r)?YY(r,e):r),n.replaceNode(e,t,mw.createIdentifier(i))}const l=[];c.forEach((e,t)=>{l.push(mw.createImportSpecifier(!1,e===t?void 0:mw.createIdentifier(t),mw.createIdentifier(e)))});const _=r.parent.parent;if(o&&!i&&xE(_))n.insertNodeAfter(e,_,f6(_,void 0,l));else{const t=o?mw.createIdentifier(r.name.text):void 0;n.replaceNode(e,r.parent,m6(t,l))}}(e,i,n,r.import,Tk(t.getCompilerOptions())):p6(e,t,n,r.import,1===r.convertTo)}(e.file,e.program,t,n));return{edits:r,renameFilename:void 0,renameLocation:void 0}}});var g6="Extract type",h6={name:"Extract to type alias",description:Vx(_a.Extract_to_type_alias),kind:"refactor.extract.type"},y6={name:"Extract to interface",description:Vx(_a.Extract_to_interface),kind:"refactor.extract.interface"},v6={name:"Extract to typedef",description:Vx(_a.Extract_to_typedef),kind:"refactor.extract.typedef"};function b6(e,t=!0){const{file:n,startPosition:r}=e,i=Fm(n),o=IQ(jZ(e)),a=o.pos===o.end&&t,s=function(e,t,n,r){const i=[()=>HX(e,t),()=>$X(e,t,()=>!0)];for(const t of i){const i=t(),o=NX(i,e,n.pos,n.end),a=uc(i,t=>t.parent&&b_(t)&&!k6(n,t.parent,e)&&(r||o));if(a)return a}}(n,r,o,a);if(!s||!b_(s))return{info:{error:Vx(_a.Selection_is_not_a_valid_type_node)},affectedTextRange:void 0};const c=e.program.getTypeChecker(),_=function(e,t){return uc(e,pu)||(t?uc(e,SP):void 0)}(s,i);if(void 0===_)return{info:{error:Vx(_a.No_type_could_be_extracted_from_this_type_node)},affectedTextRange:void 0};const u=function(e,t){return uc(e,e=>e===t?"quit":!(!KD(e.parent)&&!GD(e.parent)))??e}(s,_);if(!b_(u))return{info:{error:Vx(_a.Selection_is_not_a_valid_type_node)},affectedTextRange:void 0};const d=[];(KD(u.parent)||GD(u.parent))&&o.end>s.end&&se(d,u.parent.types.filter(e=>NX(e,n,o.pos,o.end)));const p=d.length>1?d:u,{typeParameters:f,affectedTextRange:m}=function(e,t,n,r){const i=[],o=Ye(t),a={pos:o[0].getStart(r),end:o[o.length-1].end};for(const e of o)if(s(e))return{typeParameters:void 0,affectedTextRange:void 0};return{typeParameters:i,affectedTextRange:a};function s(t){if(RD(t)){if(aD(t.typeName)){const o=t.typeName,s=e.resolveName(o.text,o,262144,!0);for(const e of(null==s?void 0:s.declarations)||l)if(SD(e)&&e.getSourceFile()===r){if(e.name.escapedText===o.escapedText&&k6(e,a,r))return!0;if(k6(n,e,r)&&!k6(a,e,r)){ce(i,e);break}}}}else if(QD(t)){const e=uc(t,e=>XD(e)&&k6(e.extendsType,t,r));if(!e||!k6(a,e,r))return!0}else if(MD(t)||ZD(t)){const e=uc(t.parent,r_);if(e&&e.type&&k6(e.type,t,r)&&!k6(a,e,r))return!0}else if(zD(t))if(aD(t.exprName)){const i=e.resolveName(t.exprName.text,t.exprName,111551,!1);if((null==i?void 0:i.valueDeclaration)&&k6(n,i.valueDeclaration,r)&&!k6(a,i.valueDeclaration,r))return!0}else if(lv(t.exprName.left)&&!k6(a,t.parent,r))return!0;return r&&VD(t)&&za(r,t.pos).line===za(r,t.end).line&&xw(t,1),XI(t,s)}}(c,p,_,n);return f?{info:{isJS:i,selection:p,enclosingNode:_,typeParameters:f,typeElements:x6(c,p)},affectedTextRange:m}:{info:{error:Vx(_a.No_type_could_be_extracted_from_this_type_node)},affectedTextRange:void 0}}function x6(e,t){if(t){if(Qe(t)){const n=[];for(const r of t){const t=x6(e,r);if(!t)return;se(n,t)}return n}if(GD(t)){const n=[],r=new Set;for(const i of t.types){const t=x6(e,i);if(!t||!t.every(e=>e.name&&bx(r,VQ(e.name))))return;se(n,t)}return n}return YD(t)?x6(e,t.type):qD(t)?t.members:void 0}}function k6(e,t,n){return CX(e,Qa(n.text,t.pos),t.end)}function S6(e){return Qe(e.selection)?{firstTypeNode:e.selection[0],lastTypeNode:e.selection[e.selection.length-1],newTypeNode:KD(e.selection[0].parent)?mw.createUnionTypeNode(e.selection):mw.createIntersectionTypeNode(e.selection)}:{firstTypeNode:e.selection,lastTypeNode:e.selection,newTypeNode:e.selection}}Z2(g6,{kinds:[h6.kind,y6.kind,v6.kind],getAvailableActions:function(e){const{info:t,affectedTextRange:n}=b6(e,"invoked"===e.triggerReason);return t?s3(t)?e.preferences.provideRefactorNotApplicableReason?[{name:g6,description:Vx(_a.Extract_type),actions:[{...v6,notApplicableReason:t.error},{...h6,notApplicableReason:t.error},{...y6,notApplicableReason:t.error}]}]:l:[{name:g6,description:Vx(_a.Extract_type),actions:t.isJS?[v6]:ie([h6],t.typeElements&&y6)}].map(t=>({...t,actions:t.actions.map(t=>({...t,range:n?{start:{line:za(e.file,n.pos).line,offset:za(e.file,n.pos).character},end:{line:za(e.file,n.end).line,offset:za(e.file,n.end).character}}:void 0}))})):l},getEditsForAction:function(e,t){const{file:n}=e,{info:r}=b6(e);un.assert(r&&!s3(r),"Expected to find a range to extract");const i=YY("NewType",n),o=jue.ChangeTracker.with(e,o=>{switch(t){case h6.name:return un.assert(!r.isJS,"Invalid actionName/JS combo"),function(e,t,n,r){const{enclosingNode:i,typeParameters:o}=r,{firstTypeNode:a,lastTypeNode:s,newTypeNode:c}=S6(r),l=mw.createTypeAliasDeclaration(void 0,n,o.map(e=>mw.updateTypeParameterDeclaration(e,e.modifiers,e.name,e.constraint,void 0)),c);e.insertNodeBefore(t,i,Gw(l),!0),e.replaceNodeRange(t,a,s,mw.createTypeReferenceNode(n,o.map(e=>mw.createTypeReferenceNode(e.name,void 0))),{leadingTriviaOption:jue.LeadingTriviaOption.Exclude,trailingTriviaOption:jue.TrailingTriviaOption.ExcludeWhitespace})}(o,n,i,r);case v6.name:return un.assert(r.isJS,"Invalid actionName/JS combo"),function(e,t,n,r,i){var o;Ye(i.selection).forEach(e=>{xw(e,7168)});const{enclosingNode:a,typeParameters:s}=i,{firstTypeNode:c,lastTypeNode:l,newTypeNode:_}=S6(i),u=mw.createJSDocTypedefTag(mw.createIdentifier("typedef"),mw.createJSDocTypeExpression(_),mw.createIdentifier(r)),p=[];d(s,e=>{const t=ul(e),n=mw.createTypeParameterDeclaration(void 0,e.name),r=mw.createJSDocTemplateTag(mw.createIdentifier("template"),t&&nt(t,lP),[n]);p.push(r)});const f=mw.createJSDocComment(void 0,mw.createNodeArray(K(p,[u])));if(SP(a)){const r=a.getStart(n),i=RY(t.host,null==(o=t.formatContext)?void 0:o.options);e.insertNodeAt(n,a.getStart(n),f,{suffix:i+i+n.text.slice(XY(n.text,r-1),r)})}else e.insertNodeBefore(n,a,f,!0);e.replaceNodeRange(n,c,l,mw.createTypeReferenceNode(r,s.map(e=>mw.createTypeReferenceNode(e.name,void 0))))}(o,e,n,i,r);case y6.name:return un.assert(!r.isJS&&!!r.typeElements,"Invalid actionName/JS combo"),function(e,t,n,r){var i;const{enclosingNode:o,typeParameters:a,typeElements:s}=r,c=mw.createInterfaceDeclaration(void 0,n,a,void 0,s);xI(c,null==(i=s[0])?void 0:i.parent),e.insertNodeBefore(t,o,Gw(c),!0);const{firstTypeNode:l,lastTypeNode:_}=S6(r);e.replaceNodeRange(t,l,_,mw.createTypeReferenceNode(n,a.map(e=>mw.createTypeReferenceNode(e.name,void 0))),{leadingTriviaOption:jue.LeadingTriviaOption.Exclude,trailingTriviaOption:jue.TrailingTriviaOption.ExcludeWhitespace})}(o,n,i,r);default:un.fail("Unexpected action name")}}),a=n.fileName;return{edits:o,renameFilename:a,renameLocation:ZY(o,a,i,!1)}}});var T6="Move to file",C6=Vx(_a.Move_to_file),w6={name:"Move to file",description:C6,kind:"refactor.move.file"};function N6(e){return{edits:[],renameFilename:void 0,renameLocation:void 0,notApplicableReason:e}}function D6(e,t,n,r,i,o,a,s,c,l){const _=o.getTypeChecker(),d=cn(e.statements,pf),p=!e0(t.fileName,o,a,!!e.commonJsModuleIndicator),m=tY(e,s);j6(n.oldFileImportsFromTargetFile,t.fileName,l,o),function(e,t,n,r){for(const i of e.statements)T(t,i)||O6(i,e=>{L6(e,e=>{n.has(e.symbol)&&r.removeExistingImport(e)})})}(e,i.all,n.unusedImportsFromOldFile,l),l.writeFixes(r,m),function(e,t,n){for(const{first:r,afterLast:i}of t)n.deleteNodeRangeExcludingEnd(e,r,i)}(e,i.ranges,r),function(e,t,n,r,i,o,a){const s=t.getTypeChecker();for(const c of t.getSourceFiles())if(c!==r)for(const l of c.statements)O6(l,_=>{if(s.getSymbolAtLocation(273===(u=_).kind?u.moduleSpecifier:272===u.kind?u.moduleReference.expression:u.initializer.arguments[0])!==r.symbol)return;var u;const d=e=>{const t=lF(e.parent)?sY(s,e.parent):ox(s.getSymbolAtLocation(e),s);return!!t&&i.has(t)};R6(c,_,e,d);const p=Mo(Do(Bo(r.fileName,t.getCurrentDirectory())),o);if(0===wt(!t.useCaseSensitiveFileNames())(p,c.fileName))return;const f=nB.getModuleSpecifier(t.getCompilerOptions(),c,c.fileName,p,KQ(t,n)),m=U6(_,YQ(f,a),d);m&&e.insertNodeAfter(c,l,m);const g=P6(_);g&&A6(e,c,s,i,f,g,_,a)})}(r,o,a,e,n.movedSymbols,t.fileName,m),E6(e,n.targetFileImportsFromOldFile,r,p),_3(e,n.oldImportsNeededByTargetFile,n.targetFileImportsFromOldFile,_,o,c),!Dm(t)&&d.length&&r.insertStatementsInNewFile(t.fileName,d,e),c.writeFixes(r,m);const g=function(e,t,n,r){return O(t,t=>{if(B6(t)&&!M6(e,t,r)&&Z6(t,e=>{var t;return n.includes(un.checkDefined(null==(t=tt(e,au))?void 0:t.symbol))})){const e=function(e,t){return t?[J6(e)]:function(e){return[e,...q6(e).map(z6)]}(e)}(RC(t),r);if(e)return e}return RC(t)})}(e,i.all,Oe(n.oldFileImportsFromTargetFile.keys()),p);Dm(t)&&t.statements.length>0?function(e,t,n,r,i){var o;const a=new Set,s=null==(o=r.symbol)?void 0:o.exports;if(s){const n=t.getTypeChecker(),o=new Map;for(const e of i.all)B6(e)&&Nv(e,32)&&Z6(e,e=>{var t;const n=f(au(e)?null==(t=s.get(e.symbol.escapedName))?void 0:t.declarations:void 0,e=>IE(e)?e:LE(e)?tt(e.parent.parent,IE):void 0);n&&n.moduleSpecifier&&o.set(n,(o.get(n)||new Set).add(e))});for(const[t,i]of Oe(o))if(t.exportClause&&OE(t.exportClause)&&u(t.exportClause.elements)){const o=t.exportClause.elements,s=N(o,e=>void 0===b(ox(e.symbol,n).declarations,e=>n3(e)&&i.has(e)));if(0===u(s)){e.deleteNode(r,t),a.add(t);continue}u(s)IE(e)&&!!e.moduleSpecifier&&!a.has(e));c?e.insertNodesBefore(r,c,n,!0):e.insertNodesAfter(r,r.statements[r.statements.length-1],n)}(r,o,g,t,i):Dm(t)?r.insertNodesAtEndOfFile(t,g,!1):r.insertStatementsInNewFile(t.fileName,c.hasFixes()?[4,...g]:g,e)}function F6(e,t,n,r,i){const o=e.getCompilerOptions().configFile;if(!o)return;const a=Jo(jo(n,"..",r)),s=oa(o.fileName,a,i),c=o.statements[0]&&tt(o.statements[0].expression,uF),l=c&&b(c.properties,e=>rP(e)&&UN(e.name)&&"files"===e.name.text);l&&_F(l.initializer)&&t.insertNodeInListAfter(o,ve(l.initializer.elements),mw.createStringLiteral(s),l.initializer.elements)}function E6(e,t,n,r){const i=JQ();t.forEach((t,o)=>{if(o.declarations)for(const t of o.declarations){if(!n3(t))continue;const o=V6(t);if(!o)continue;const a=W6(t);i(a)&&$6(e,a,o,n,r)}})}function P6(e){switch(e.kind){case 273:return e.importClause&&e.importClause.namedBindings&&275===e.importClause.namedBindings.kind?e.importClause.namedBindings.name:void 0;case 272:return e.name;case 261:return tt(e.name,aD);default:return un.assertNever(e,`Unexpected node kind ${e.kind}`)}}function A6(e,t,n,r,i,o,a,s){const c=UZ(i,99);let l=!1;const _=[];if(gce.Core.eachSymbolReferenceInFile(o,n,t,e=>{dF(e.parent)&&(l=l||!!n.resolveName(c,e,-1,!0),r.has(n.getSymbolAtLocation(e.parent.name))&&_.push(e))}),_.length){const n=l?YY(c,t):c;for(const r of _)e.replaceNode(t,r,mw.createIdentifier(n));e.insertNodeAfter(t,a,function(e,t,n,r){const i=mw.createIdentifier(t),o=YQ(n,r);switch(e.kind){case 273:return mw.createImportDeclaration(void 0,mw.createImportClause(void 0,void 0,mw.createNamespaceImport(i)),o,void 0);case 272:return mw.createImportEqualsDeclaration(void 0,!1,i,mw.createExternalModuleReference(o));case 261:return mw.createVariableDeclaration(i,void 0,void 0,I6(o));default:return un.assertNever(e,`Unexpected node kind ${e.kind}`)}}(a,c,i,s))}}function I6(e){return mw.createCallExpression(mw.createIdentifier("require"),void 0,[e])}function O6(e,t){if(xE(e))UN(e.moduleSpecifier)&&t(e);else if(bE(e))JE(e.moduleReference)&&ju(e.moduleReference.expression)&&t(e);else if(WF(e))for(const n of e.declarationList.declarations)n.initializer&&Lm(n.initializer,!0)&&t(n)}function L6(e,t){var n,r,i,o,a;if(273===e.kind){if((null==(n=e.importClause)?void 0:n.name)&&t(e.importClause),275===(null==(i=null==(r=e.importClause)?void 0:r.namedBindings)?void 0:i.kind)&&t(e.importClause.namedBindings),276===(null==(a=null==(o=e.importClause)?void 0:o.namedBindings)?void 0:a.kind))for(const n of e.importClause.namedBindings.elements)t(n)}else if(272===e.kind)t(e);else if(261===e.kind)if(80===e.name.kind)t(e);else if(207===e.name.kind)for(const n of e.name.elements)aD(n.name)&&t(n)}function j6(e,t,n,r){for(const[i,o]of e){const e=JZ(i,yk(r.getCompilerOptions())),a="default"===i.name&&i.parent?1:0;n.addImportForNonExistentExport(e,t,a,i.flags,o)}}function M6(e,t,n,r){var i;return n?!HF(t)&&Nv(t,32)||!!(r&&e.symbol&&(null==(i=e.symbol.exports)?void 0:i.has(r.escapedText))):!!e.symbol&&!!e.symbol.exports&&q6(t).some(t=>e.symbol.exports.has(fc(t)))}function R6(e,t,n,r){if(273===t.kind&&t.importClause){const{name:i,namedBindings:o}=t.importClause;if((!i||r(i))&&(!o||276===o.kind&&0!==o.elements.length&&o.elements.every(e=>r(e.name))))return n.delete(e,t)}L6(t,t=>{t.name&&aD(t.name)&&r(t.name)&&n.delete(e,t)})}function B6(e){return un.assert(sP(e.parent),"Node parent should be a SourceFile"),i3(e)||WF(e)}function J6(e){const t=kI(e)?K([mw.createModifier(95)],Dc(e)):void 0;switch(e.kind){case 263:return mw.updateFunctionDeclaration(e,t,e.asteriskToken,e.name,e.typeParameters,e.parameters,e.type,e.body);case 264:const n=SI(e)?Nc(e):void 0;return mw.updateClassDeclaration(e,K(n,t),e.name,e.typeParameters,e.heritageClauses,e.members);case 244:return mw.updateVariableStatement(e,t,e.declarationList);case 268:return mw.updateModuleDeclaration(e,t,e.name,e.body);case 267:return mw.updateEnumDeclaration(e,t,e.name,e.members);case 266:return mw.updateTypeAliasDeclaration(e,t,e.name,e.typeParameters,e.type);case 265:return mw.updateInterfaceDeclaration(e,t,e.name,e.typeParameters,e.heritageClauses,e.members);case 272:return mw.updateImportEqualsDeclaration(e,t,e.isTypeOnly,e.name,e.moduleReference);case 245:return un.fail();default:return un.assertNever(e,`Unexpected declaration kind ${e.kind}`)}}function z6(e){return mw.createExpressionStatement(mw.createBinaryExpression(mw.createPropertyAccessExpression(mw.createIdentifier("exports"),mw.createIdentifier(e)),64,mw.createIdentifier(e)))}function q6(e){switch(e.kind){case 263:case 264:return[e.name.text];case 244:return B(e.declarationList.declarations,e=>aD(e.name)?e.name.text:void 0);case 268:case 267:case 266:case 265:case 272:return l;case 245:return un.fail("Can't export an ExpressionStatement");default:return un.assertNever(e,`Unexpected decl kind ${e.kind}`)}}function U6(e,t,n){switch(e.kind){case 273:{const r=e.importClause;if(!r)return;const i=r.name&&n(r.name)?r.name:void 0,o=r.namedBindings&&function(e,t){if(275===e.kind)return t(e.name)?e:void 0;{const n=e.elements.filter(e=>t(e.name));return n.length?mw.createNamedImports(n):void 0}}(r.namedBindings,n);return i||o?mw.createImportDeclaration(void 0,mw.createImportClause(r.phaseModifier,i,o),RC(t),void 0):void 0}case 272:return n(e.name)?e:void 0;case 261:{const r=function(e,t){switch(e.kind){case 80:return t(e)?e:void 0;case 208:return e;case 207:{const n=e.elements.filter(e=>e.propertyName||!aD(e.name)||t(e.name));return n.length?mw.createObjectBindingPattern(n):void 0}}}(e.name,n);return r?function(e,t,n,r=2){return mw.createVariableStatement(void 0,mw.createVariableDeclarationList([mw.createVariableDeclaration(e,void 0,t,n)],r))}(r,e.type,I6(t),e.parent.flags):void 0}default:return un.assertNever(e,`Unexpected import kind ${e.kind}`)}}function V6(e){return HF(e)?tt(e.expression.left.name,aD):tt(e.name,aD)}function W6(e){switch(e.kind){case 261:return e.parent.parent;case 209:return W6(nt(e.parent.parent,e=>lE(e)||lF(e)));default:return e}}function $6(e,t,n,r,i){if(!M6(e,t,i,n))if(i)HF(t)||r.insertExportModifier(e,t);else{const n=q6(t);0!==n.length&&r.insertNodesAfter(e,t,n.map(z6))}}function H6(e,t,n,r){const i=t.getTypeChecker();if(r){const t=Q6(e,r.all,i),s=Do(e.fileName),c=ZS(e.fileName),l=jo(s,function(e,t,n,r){let i=e;for(let o=1;;o++){const a=jo(n,i+t);if(!r.fileExists(a))return i;i=`${e}.${o}`}}((o=t.oldFileImportsFromTargetFile,a=t.movedSymbols,id(o,rY)||id(a,rY)||"newFile"),c,s,n))+c;return l}var o,a;return""}function K6(e){const t=function(e){const{file:t}=e,n=IQ(jZ(e)),{statements:r}=t;let i=k(r,e=>e.end>n.pos);if(-1===i)return;const o=o3(t,r[i]);o&&(i=o.start);let a=k(r,e=>e.end>=n.end,i);-1!==a&&n.end<=r[a].getStart()&&a--;const s=o3(t,r[a]);return s&&(a=s.end),{toMove:r.slice(i,-1===a?r.length:a+1),afterLast:-1===a?void 0:r[a+1]}}(e);if(void 0===t)return;const n=[],r=[],{toMove:i,afterLast:o}=t;return H(i,X6,(e,t)=>{for(let r=e;r!!(2&e.transformFlags))}function X6(e){return!function(e){switch(e.kind){case 273:return!0;case 272:return!Nv(e,32);case 244:return e.declarationList.declarations.every(e=>!!e.initializer&&Lm(e.initializer,!0));default:return!1}}(e)&&!pf(e)}function Q6(e,t,n,r=new Set,i){var o;const a=new Set,s=new Map,c=new Map,l=function(e){if(void 0===e)return;const t=n.getJsxNamespace(e),r=n.resolveName(t,e,1920,!0);return r&&$(r.declarations,e3)?r:void 0}(G6(t));l&&s.set(l,[!1,tt(null==(o=l.declarations)?void 0:o[0],e=>PE(e)||kE(e)||DE(e)||bE(e)||lF(e)||lE(e))]);for(const e of t)Z6(e,e=>{a.add(un.checkDefined(HF(e)?n.getSymbolAtLocation(e.expression.left):e.symbol,"Need a symbol here"))});const _=new Set;for(const o of t)Y6(o,n,i,(t,i)=>{if(!$(t.declarations))return;if(r.has(ox(t,n)))return void _.add(t);const o=b(t.declarations,e3);if(o){const e=s.get(t);s.set(t,[(void 0===e||e)&&i,tt(o,e=>PE(e)||kE(e)||DE(e)||bE(e)||lF(e)||lE(e))])}else!a.has(t)&&v(t.declarations,t=>{return n3(t)&&(lE(n=t)?n.parent.parent.parent:n.parent)===e;var n})&&c.set(t,i)});for(const e of s.keys())_.add(e);const u=new Map;for(const r of e.statements)T(t,r)||(l&&2&r.transformFlags&&_.delete(l),Y6(r,n,i,(e,t)=>{a.has(e)&&u.set(e,t),_.delete(e)}));return{movedSymbols:a,targetFileImportsFromOldFile:c,oldFileImportsFromTargetFile:u,oldImportsNeededByTargetFile:s,unusedImportsFromOldFile:_}}function Y6(e,t,n,r){e.forEachChild(function e(i){if(aD(i)&&!lh(i)){if(n&&!Xb(n,i))return;const e=t.getSymbolAtLocation(i);e&&r(e,bT(i))}else i.forEachChild(e)})}function Z6(e,t){switch(e.kind){case 263:case 264:case 268:case 267:case 266:case 265:case 272:return t(e);case 244:return f(e.declarationList.declarations,e=>r3(e.name,t));case 245:{const{expression:n}=e;return NF(n)&&1===tg(n)?t(e):void 0}}}function e3(e){switch(e.kind){case 272:case 277:case 274:case 275:return!0;case 261:return t3(e);case 209:return lE(e.parent.parent)&&t3(e.parent.parent);default:return!1}}function t3(e){return sP(e.parent.parent.parent)&&!!e.initializer&&Lm(e.initializer,!0)}function n3(e){return i3(e)&&sP(e.parent)||lE(e)&&sP(e.parent.parent.parent)}function r3(e,t){switch(e.kind){case 80:return t(nt(e.parent,e=>lE(e)||lF(e)));case 208:case 207:return f(e.elements,e=>IF(e)?void 0:r3(e.name,t));default:return un.assertNever(e,`Unexpected name kind ${e.kind}`)}}function i3(e){switch(e.kind){case 263:case 264:case 268:case 267:case 266:case 265:case 272:return!0;default:return!1}}function o3(e,t){if(o_(t)){const n=t.symbol.declarations;if(void 0===n||u(n)<=1||!T(n,t))return;const r=n[0],i=n[u(n)-1],o=B(n,t=>vd(t)===e&&pu(t)?t:void 0),a=k(e.statements,e=>e.end>=i.end);return{toMove:o,start:k(e.statements,e=>e.end>=r.end),end:a}}}function a3(e,t,n){const r=new Set;for(const t of e.imports){const e=vg(t);if(xE(e)&&e.importClause&&e.importClause.namedBindings&&EE(e.importClause.namedBindings))for(const t of e.importClause.namedBindings.elements){const e=n.getSymbolAtLocation(t.propertyName||t.name);e&&r.add(ox(e,n))}if(jm(e.parent)&&sF(e.parent.name))for(const t of e.parent.name.elements){const e=n.getSymbolAtLocation(t.propertyName||t.name);e&&r.add(ox(e,n))}}for(const i of t)Y6(i,n,void 0,t=>{const i=ox(t,n);i.valueDeclaration&&vd(i.valueDeclaration).path===e.path&&r.add(i)});return r}function s3(e){return void 0!==e.error}function c3(e,t){return!t||e.substr(0,t.length)===t}function l3(e,t,n,r){return!dF(e)||u_(t)||n.resolveName(e.name.text,e,111551,!1)||sD(e.name)||hc(e.name)?YY(u_(t)?"newProperty":"newLocal",r):e.name.text}function _3(e,t,n,r,i,o){t.forEach(([e,t],n)=>{var i;const a=ox(n,r);r.isUnknownSymbol(a)?o.addVerbatimImport(un.checkDefined(t??uc(null==(i=n.declarations)?void 0:i[0],Cp))):void 0===a.parent?(un.assert(void 0!==t,"expected module symbol to have a declaration"),o.addImportForModuleSymbol(n,e,t)):o.addImportFromExportedSymbol(a,e,t)}),j6(n,e.fileName,o,i)}Z2(T6,{kinds:[w6.kind],getAvailableActions:function(e,t){const n=e.file,r=K6(e);if(!t)return l;if("implicit"===e.triggerReason&&void 0!==e.endPosition){const t=uc(HX(n,e.startPosition),t0),r=uc(HX(n,e.endPosition),t0);if(t&&!sP(t)&&r&&!sP(r))return l}if(e.preferences.allowTextChangesInNewFiles&&r){const e={start:{line:za(n,r.all[0].getStart(n)).line,offset:za(n,r.all[0].getStart(n)).character},end:{line:za(n,ve(r.all).end).line,offset:za(n,ve(r.all).end).character}};return[{name:T6,description:C6,actions:[{...w6,range:e}]}]}return e.preferences.provideRefactorNotApplicableReason?[{name:T6,description:C6,actions:[{...w6,notApplicableReason:Vx(_a.Selection_is_not_a_valid_statement_or_statements)}]}]:l},getEditsForAction:function(e,t,n){un.assert(t===T6,"Wrong refactor invoked");const r=un.checkDefined(K6(e)),{host:i,program:o}=e;un.assert(n,"No interactive refactor arguments available");const a=n.targetFile;if(OS(a)||LS(a)){if(i.fileExists(a)&&void 0===o.getSourceFile(a))return N6(Vx(_a.Cannot_move_statements_to_the_selected_file));const t=jue.ChangeTracker.with(e,t=>function(e,t,n,r,i,o,a,s){const c=r.getTypeChecker(),l=!a.fileExists(n),_=l?n0(n,t.externalModuleIndicator?99:t.commonJsModuleIndicator?1:void 0,r,a):un.checkDefined(r.getSourceFile(n)),u=T7.createImportAdder(t,e.program,e.preferences,e.host),d=T7.createImportAdder(_,e.program,e.preferences,e.host);D6(t,_,Q6(t,i.all,c,l?void 0:a3(_,i.all,c)),o,i,r,a,s,d,u),l&&F6(r,o,t.fileName,n,My(a))}(e,e.file,n.targetFile,e.program,r,t,e.host,e.preferences));return{edits:t,renameFilename:void 0,renameLocation:void 0}}return N6(Vx(_a.Cannot_move_to_file_selected_file_is_invalid))}});var u3="Inline variable",d3=Vx(_a.Inline_variable),p3={name:u3,description:d3,kind:"refactor.inline.variable"};function f3(e,t,n,r){var i,o;const a=r.getTypeChecker(),s=WX(e,t),c=s.parent;if(aD(s)){if(ex(c)&&If(c)&&aD(c.name)){if(1!==(null==(i=a.getMergedSymbol(c.symbol).declarations)?void 0:i.length))return{error:Vx(_a.Variables_with_multiple_declarations_cannot_be_inlined)};if(m3(c))return;const t=g3(c,a,e);return t&&{references:t,declaration:c,replacement:c.initializer}}if(n){let t=a.resolveName(s.text,s,111551,!1);if(t=t&&a.getMergedSymbol(t),1!==(null==(o=null==t?void 0:t.declarations)?void 0:o.length))return{error:Vx(_a.Variables_with_multiple_declarations_cannot_be_inlined)};const n=t.declarations[0];if(!ex(n)||!If(n)||!aD(n.name))return;if(m3(n))return;const r=g3(n,a,e);return r&&{references:r,declaration:n,replacement:n.initializer}}return{error:Vx(_a.Could_not_find_variable_to_inline)}}}function m3(e){return $(nt(e.parent.parent,WF).modifiers,cD)}function g3(e,t,n){const r=[],i=gce.Core.eachSymbolReferenceInFile(e.name,t,n,t=>!(!gce.isWriteAccessForReference(t)||iP(t.parent))||!(!LE(t.parent)&&!AE(t.parent))||!!zD(t.parent)||!!As(e,t.pos)||void r.push(t));return 0===r.length||i?void 0:r}function h3(e,t){t=RC(t);const{parent:n}=e;return V_(n)&&(iy(t){for(const t of a){const r=UN(c)&&aD(t)&&rh(t.parent);r&&qF(r)&&!gF(r.parent.parent)?y3(e,n,r,c):e.replaceNode(n,t,h3(t,c))}e.delete(n,s)})}}});var v3="Move to a new file",b3=Vx(_a.Move_to_a_new_file),x3={name:v3,description:b3,kind:"refactor.move.newFile"};Z2(v3,{kinds:[x3.kind],getAvailableActions:function(e){const t=K6(e),n=e.file;if("implicit"===e.triggerReason&&void 0!==e.endPosition){const t=uc(HX(n,e.startPosition),t0),r=uc(HX(n,e.endPosition),t0);if(t&&!sP(t)&&r&&!sP(r))return l}if(e.preferences.allowTextChangesInNewFiles&&t){const n=e.file,r={start:{line:za(n,t.all[0].getStart(n)).line,offset:za(n,t.all[0].getStart(n)).character},end:{line:za(n,ve(t.all).end).line,offset:za(n,ve(t.all).end).character}};return[{name:v3,description:b3,actions:[{...x3,range:r}]}]}return e.preferences.provideRefactorNotApplicableReason?[{name:v3,description:b3,actions:[{...x3,notApplicableReason:Vx(_a.Selection_is_not_a_valid_statement_or_statements)}]}]:l},getEditsForAction:function(e,t){un.assert(t===v3,"Wrong refactor invoked");const n=un.checkDefined(K6(e)),r=jue.ChangeTracker.with(e,t=>function(e,t,n,r,i,o,a){const s=t.getTypeChecker(),c=Q6(e,n.all,s),l=H6(e,t,i,n),_=n0(l,e.externalModuleIndicator?99:e.commonJsModuleIndicator?1:void 0,t,i),u=T7.createImportAdder(e,o.program,o.preferences,o.host);D6(e,_,c,r,n,t,i,a,T7.createImportAdder(_,o.program,o.preferences,o.host),u),F6(t,r,e.fileName,l,My(i))}(e.file,e.program,n,t,e.host,e,e.preferences));return{edits:r,renameFilename:void 0,renameLocation:void 0}}});var k3={},S3="Convert overload list to single signature",T3=Vx(_a.Convert_overload_list_to_single_signature),C3={name:S3,description:T3,kind:"refactor.rewrite.function.overloadList"};function w3(e){switch(e.kind){case 174:case 175:case 180:case 177:case 181:case 263:return!0}return!1}function N3(e,t,n){const r=uc(HX(e,t),w3);if(!r)return;if(o_(r)&&r.body&&SX(r.body,t))return;const i=n.getTypeChecker(),o=r.symbol;if(!o)return;const a=o.declarations;if(u(a)<=1)return;if(!v(a,t=>vd(t)===e))return;if(!w3(a[0]))return;const s=a[0].kind;if(!v(a,e=>e.kind===s))return;const c=a;if($(c,e=>!!e.typeParameters||$(e.parameters,e=>!!e.modifiers||!aD(e.name))))return;const l=B(c,e=>i.getSignatureFromDeclaration(e));if(u(l)!==u(a))return;const _=i.getReturnTypeOfSignature(l[0]);return v(l,e=>i.getReturnTypeOfSignature(e)===_)?c:void 0}Z2(S3,{kinds:[C3.kind],getEditsForAction:function(e){const{file:t,startPosition:n,program:r}=e,i=N3(t,n,r);if(!i)return;const o=r.getTypeChecker(),a=i[i.length-1];let s=a;switch(a.kind){case 174:s=mw.updateMethodSignature(a,a.modifiers,a.name,a.questionToken,a.typeParameters,c(i),a.type);break;case 175:s=mw.updateMethodDeclaration(a,a.modifiers,a.asteriskToken,a.name,a.questionToken,a.typeParameters,c(i),a.type,a.body);break;case 180:s=mw.updateCallSignature(a,a.typeParameters,c(i),a.type);break;case 177:s=mw.updateConstructorDeclaration(a,a.modifiers,c(i),a.body);break;case 181:s=mw.updateConstructSignature(a,a.typeParameters,c(i),a.type);break;case 263:s=mw.updateFunctionDeclaration(a,a.modifiers,a.asteriskToken,a.name,a.typeParameters,c(i),a.type,a.body);break;default:return un.failBadSyntaxKind(a,"Unhandled signature kind in overload list conversion refactoring")}if(s!==a)return{renameFilename:void 0,renameLocation:void 0,edits:jue.ChangeTracker.with(e,e=>{e.replaceNodeRange(t,i[0],i[i.length-1],s)})};function c(e){const t=e[e.length-1];return o_(t)&&t.body&&(e=e.slice(0,e.length-1)),mw.createNodeArray([mw.createParameterDeclaration(void 0,mw.createToken(26),"args",void 0,mw.createUnionTypeNode(E(e,l)))])}function l(e){const t=E(e.parameters,_);return xw(mw.createTupleTypeNode(t),$(t,e=>!!u(Iw(e)))?0:1)}function _(e){un.assert(aD(e.name));const t=xI(mw.createNamedTupleMember(e.dotDotDotToken,e.name,e.questionToken,e.type||mw.createKeywordTypeNode(133)),e),n=e.symbol&&e.symbol.getDocumentationComment(o);if(n){const e=R8(n);e.length&&Ow(t,[{text:`*\n${e.split("\n").map(e=>` * ${e}`).join("\n")}\n `,kind:3,pos:-1,end:-1,hasTrailingNewLine:!0,hasLeadingNewline:!0}])}return t}},getAvailableActions:function(e){const{file:t,startPosition:n,program:r}=e;return N3(t,n,r)?[{name:S3,description:T3,actions:[C3]}]:l}});var D3="Add or remove braces in an arrow function",F3=Vx(_a.Add_or_remove_braces_in_an_arrow_function),E3={name:"Add braces to arrow function",description:Vx(_a.Add_braces_to_arrow_function),kind:"refactor.rewrite.arrow.braces.add"},P3={name:"Remove braces from arrow function",description:Vx(_a.Remove_braces_from_arrow_function),kind:"refactor.rewrite.arrow.braces.remove"};function A3(e,t,n=!0,r){const i=HX(e,t),o=Kf(i);if(!o)return{error:Vx(_a.Could_not_find_a_containing_arrow_function)};if(!bF(o))return{error:Vx(_a.Containing_function_is_not_an_arrow_function)};if(Xb(o,i)&&(!Xb(o.body,i)||n)){if(c3(E3.kind,r)&&V_(o.body))return{func:o,addBraces:!0,expression:o.body};if(c3(P3.kind,r)&&VF(o.body)&&1===o.body.statements.length){const e=ge(o.body.statements);if(nE(e))return{func:o,addBraces:!1,expression:e.expression&&uF(Dx(e.expression,!1))?mw.createParenthesizedExpression(e.expression):e.expression,returnStatement:e}}}}Z2(D3,{kinds:[P3.kind],getEditsForAction:function(e,t){const{file:n,startPosition:r}=e,i=A3(n,r);un.assert(i&&!s3(i),"Expected applicable refactor info");const{expression:o,returnStatement:a,func:s}=i;let c;if(t===E3.name){const e=mw.createReturnStatement(o);c=mw.createBlock([e],!0),eZ(o,e,n,3,!0)}else if(t===P3.name&&a){const e=o||mw.createVoidZero();c=oZ(e)?mw.createParenthesizedExpression(e):e,nZ(a,c,n,3,!1),eZ(a,c,n,3,!1),tZ(a,c,n,3,!1)}else un.fail("invalid action");return{renameFilename:void 0,renameLocation:void 0,edits:jue.ChangeTracker.with(e,e=>{e.replaceNode(n,s.body,c)})}},getAvailableActions:function(e){const{file:t,startPosition:n,triggerReason:r}=e,i=A3(t,n,"invoked"===r);return i?s3(i)?e.preferences.provideRefactorNotApplicableReason?[{name:D3,description:F3,actions:[{...E3,notApplicableReason:i.error},{...P3,notApplicableReason:i.error}]}]:l:[{name:D3,description:F3,actions:[i.addBraces?E3:P3]}]:l}});var I3={},O3="Convert arrow function or function expression",L3=Vx(_a.Convert_arrow_function_or_function_expression),j3={name:"Convert to anonymous function",description:Vx(_a.Convert_to_anonymous_function),kind:"refactor.rewrite.function.anonymous"},M3={name:"Convert to named function",description:Vx(_a.Convert_to_named_function),kind:"refactor.rewrite.function.named"},R3={name:"Convert to arrow function",description:Vx(_a.Convert_to_arrow_function),kind:"refactor.rewrite.function.arrow"};function B3(e){let t=!1;return e.forEachChild(function e(n){vX(n)?t=!0:u_(n)||uE(n)||vF(n)||XI(n,e)}),t}function J3(e,t,n){const r=HX(e,t),i=n.getTypeChecker(),o=function(e,t,n){if(!function(e){return lE(e)||_E(e)&&1===e.declarations.length}(n))return;const r=(lE(n)?n:ge(n.declarations)).initializer;return r&&(bF(r)||vF(r)&&!q3(e,t,r))?r:void 0}(e,i,r.parent);if(o&&!B3(o.body)&&!i.containsArgumentsReference(o))return{selectedVariableDeclaration:!0,func:o};const a=Kf(r);if(a&&(vF(a)||bF(a))&&!Xb(a.body,r)&&!B3(a.body)&&!i.containsArgumentsReference(a)){if(vF(a)&&q3(e,i,a))return;return{selectedVariableDeclaration:!1,func:a}}}function z3(e){if(V_(e)){const t=mw.createReturnStatement(e),n=e.getSourceFile();return xI(t,e),UC(t),nZ(e,t,n,void 0,!0),mw.createBlock([t],!0)}return e}function q3(e,t,n){return!!n.name&&gce.Core.isSymbolReferencedInFile(n.name,t,e)}Z2(O3,{kinds:[j3.kind,M3.kind,R3.kind],getEditsForAction:function(e,t){const{file:n,startPosition:r,program:i}=e,o=J3(n,r,i);if(!o)return;const{func:a}=o,s=[];switch(t){case j3.name:s.push(...function(e,t){const{file:n}=e,r=z3(t.body),i=mw.createFunctionExpression(t.modifiers,t.asteriskToken,void 0,t.typeParameters,t.parameters,t.type,r);return jue.ChangeTracker.with(e,e=>e.replaceNode(n,t,i))}(e,a));break;case M3.name:const t=function(e){const t=e.parent;if(!lE(t)||!If(t))return;const n=t.parent,r=n.parent;return _E(n)&&WF(r)&&aD(t.name)?{variableDeclaration:t,variableDeclarationList:n,statement:r,name:t.name}:void 0}(a);if(!t)return;s.push(...function(e,t,n){const{file:r}=e,i=z3(t.body),{variableDeclaration:o,variableDeclarationList:a,statement:s,name:c}=n;VC(s);const l=32&ic(o)|Bv(t),_=mw.createModifiersFromModifierFlags(l),d=mw.createFunctionDeclaration(u(_)?_:void 0,t.asteriskToken,c,t.typeParameters,t.parameters,t.type,i);return 1===a.declarations.length?jue.ChangeTracker.with(e,e=>e.replaceNode(r,s,d)):jue.ChangeTracker.with(e,e=>{e.delete(r,o),e.insertNodeAfter(r,s,d)})}(e,a,t));break;case R3.name:if(!vF(a))return;s.push(...function(e,t){const{file:n}=e,r=t.body.statements[0];let i;!function(e,t){return 1===e.statements.length&&nE(t)&&!!t.expression}(t.body,r)?i=t.body:(i=r.expression,UC(i),QY(r,i));const o=mw.createArrowFunction(t.modifiers,t.typeParameters,t.parameters,t.type,mw.createToken(39),i);return jue.ChangeTracker.with(e,e=>e.replaceNode(n,t,o))}(e,a));break;default:return un.fail("invalid action")}return{renameFilename:void 0,renameLocation:void 0,edits:s}},getAvailableActions:function(e){const{file:t,startPosition:n,program:r,kind:i}=e,o=J3(t,n,r);if(!o)return l;const{selectedVariableDeclaration:a,func:s}=o,c=[],_=[];if(c3(M3.kind,i)){const e=a||bF(s)&&lE(s.parent)?void 0:Vx(_a.Could_not_convert_to_named_function);e?_.push({...M3,notApplicableReason:e}):c.push(M3)}if(c3(j3.kind,i)){const e=!a&&bF(s)?void 0:Vx(_a.Could_not_convert_to_anonymous_function);e?_.push({...j3,notApplicableReason:e}):c.push(j3)}if(c3(R3.kind,i)){const e=vF(s)?void 0:Vx(_a.Could_not_convert_to_arrow_function);e?_.push({...R3,notApplicableReason:e}):c.push(R3)}return[{name:O3,description:L3,actions:0===c.length&&e.preferences.provideRefactorNotApplicableReason?_:c}]}});var U3={},V3="Convert parameters to destructured object",W3=Vx(_a.Convert_parameters_to_destructured_object),$3={name:V3,description:W3,kind:"refactor.rewrite.parameters.toDestructured"};function H3(e,t){const n=Y8(e);if(n){const e=t.getContextualTypeForObjectLiteralElement(n),r=null==e?void 0:e.getSymbol();if(r&&!(6&rx(r)))return r}}function K3(e){const t=e.node;return PE(t.parent)||kE(t.parent)||bE(t.parent)||DE(t.parent)||LE(t.parent)||AE(t.parent)?t:void 0}function G3(e){if(_u(e.node.parent))return e.node}function X3(e){if(e.node.parent){const t=e.node,n=t.parent;switch(n.kind){case 214:case 215:const e=tt(n,j_);if(e&&e.expression===t)return e;break;case 212:const r=tt(n,dF);if(r&&r.parent&&r.name===t){const e=tt(r.parent,j_);if(e&&e.expression===r)return e}break;case 213:const i=tt(n,pF);if(i&&i.parent&&i.argumentExpression===t){const e=tt(i.parent,j_);if(e&&e.expression===i)return e}}}}function Q3(e){if(e.node.parent){const t=e.node,n=t.parent;switch(n.kind){case 212:const e=tt(n,dF);if(e&&e.expression===t)return e;break;case 213:const r=tt(n,pF);if(r&&r.expression===t)return r}}}function Y3(e){const t=e.node;if(2===WG(t)||ob(t.parent))return t}function Z3(e,t,n){const r=$X(e,t),i=Gf(r);if(!function(e){const t=uc(e,Su);if(t){const e=uc(t,e=>!Su(e));return!!e&&o_(e)}return!1}(r))return!(i&&function(e,t){var n;if(!function(e,t){return function(e){return i4(e)?e.length-1:e.length}(e)>=1&&v(e,e=>function(e,t){if(Bu(e)){const n=t.getTypeAtLocation(e);if(!t.isArrayType(n)&&!t.isTupleType(n))return!1}return!e.modifiers&&aD(e.name)}(e,t))}(e.parameters,t))return!1;switch(e.kind){case 263:return n4(e)&&t4(e,t);case 175:if(uF(e.parent)){const r=H3(e.name,t);return 1===(null==(n=null==r?void 0:r.declarations)?void 0:n.length)&&t4(e,t)}return t4(e,t);case 177:return dE(e.parent)?n4(e.parent)&&t4(e,t):r4(e.parent.parent)&&t4(e,t);case 219:case 220:return r4(e.parent)}return!1}(i,n)&&Xb(i,r))||i.body&&Xb(i.body,r)?void 0:i}function e4(e){return DD(e)&&(pE(e.parent)||qD(e.parent))}function t4(e,t){return!!e.body&&!t.isImplementationOfOverload(e)}function n4(e){return!!e.name||!!_Y(e,90)}function r4(e){return lE(e)&&af(e)&&aD(e.name)&&!e.type}function i4(e){return e.length>0&&vX(e[0].name)}function o4(e){return i4(e)&&(e=mw.createNodeArray(e.slice(1),e.hasTrailingComma)),e}function a4(e,t){const n=o4(e.parameters),r=Bu(ve(n)),i=E(r?t.slice(0,n.length-1):t,(e,t)=>{const r=(i=c4(n[t]),aD(o=e)&&qh(o)===i?mw.createShorthandPropertyAssignment(i):mw.createPropertyAssignment(i,o));var i,o;return UC(r.name),rP(r)&&UC(r.initializer),QY(e,r),r});if(r&&t.length>=n.length){const e=t.slice(n.length-1),r=mw.createPropertyAssignment(c4(ve(n)),mw.createArrayLiteralExpression(e));i.push(r)}return mw.createObjectLiteralExpression(i,!1)}function s4(e,t,n){const r=t.getTypeChecker(),i=o4(e.parameters),o=E(i,function(e){const t=mw.createBindingElement(void 0,void 0,c4(e),Bu(e)&&u(e)?mw.createArrayLiteralExpression():e.initializer);return UC(t),e.initializer&&t.initializer&&QY(e.initializer,t.initializer),t}),a=mw.createObjectBindingPattern(o),s=function(e){const t=E(e,_);return kw(mw.createTypeLiteralNode(t),1)}(i);let c;v(i,u)&&(c=mw.createObjectLiteralExpression());const l=mw.createParameterDeclaration(void 0,void 0,a,void 0,s,c);if(i4(e.parameters)){const t=e.parameters[0],n=mw.createParameterDeclaration(void 0,void 0,t.name,void 0,t.type);return UC(n.name),QY(t.name,n.name),t.type&&(UC(n.type),QY(t.type,n.type)),mw.createNodeArray([n,l])}return mw.createNodeArray([l]);function _(e){let i=e.type;var o;i||!e.initializer&&!Bu(e)||(o=e,i=pZ(r.getTypeAtLocation(o),o,t,n));const a=mw.createPropertySignature(void 0,c4(e),u(e)?mw.createToken(58):e.questionToken,i);return UC(a),QY(e.name,a.name),e.type&&a.type&&QY(e.type,a.type),a}function u(e){if(Bu(e)){const t=r.getTypeAtLocation(e);return!r.isTupleType(t)}return r.isOptionalParameter(e)}}function c4(e){return qh(e.name)}Z2(V3,{kinds:[$3.kind],getEditsForAction:function(e,t){un.assert(t===V3,"Unexpected action name");const{file:n,startPosition:r,program:i,cancellationToken:o,host:a}=e,s=Z3(n,r,i.getTypeChecker());if(!s||!o)return;const c=function(e,t,n){const r=function(e){switch(e.kind){case 263:return e.name?[e.name]:[un.checkDefined(_Y(e,90),"Nameless function declaration should be a default export")];case 175:return[e.name];case 177:const t=un.checkDefined(OX(e,137,e.getSourceFile()),"Constructor declaration should have constructor keyword");return 232===e.parent.kind?[e.parent.parent.name,t]:[t];case 220:return[e.parent.name];case 219:return e.name?[e.name,e.parent.name]:[e.parent.name];default:return un.assertNever(e,`Unexpected function declaration kind ${e.kind}`)}}(e),i=PD(e)?function(e){switch(e.parent.kind){case 264:const t=e.parent;return t.name?[t.name]:[un.checkDefined(_Y(t,90),"Nameless class declaration should be a default export")];case 232:const n=e.parent,r=e.parent.parent,i=n.name;return i?[i,r.name]:[r.name]}}(e):[],o=Q([...r,...i],mt),a=t.getTypeChecker(),s=function(t){const n={accessExpressions:[],typeUsages:[]},o={functionCalls:[],declarations:[],classReferences:n,valid:!0},s=E(r,c),l=E(i,c),_=PD(e),u=E(r,e=>H3(e,a));for(const r of t){if(r.kind===gce.EntryKind.Span){o.valid=!1;continue}if(T(u,c(r.node))){if(e4(r.node.parent)){o.signature=r.node.parent;continue}const e=X3(r);if(e){o.functionCalls.push(e);continue}}const t=H3(r.node,a);if(t&&T(u,t)){const e=G3(r);if(e){o.declarations.push(e);continue}}if(T(s,c(r.node))||KG(r.node)){if(K3(r))continue;const e=G3(r);if(e){o.declarations.push(e);continue}const t=X3(r);if(t){o.functionCalls.push(t);continue}}if(_&&T(l,c(r.node))){if(K3(r))continue;const t=G3(r);if(t){o.declarations.push(t);continue}const i=Q3(r);if(i){n.accessExpressions.push(i);continue}if(dE(e.parent)){const e=Y3(r);if(e){n.typeUsages.push(e);continue}}}o.valid=!1}return o}(O(o,e=>gce.getReferenceEntriesForNode(-1,e,t,t.getSourceFiles(),n)));return v(s.declarations,e=>T(o,e))||(s.valid=!1),s;function c(e){const t=a.getSymbolAtLocation(e);return t&&$Y(t,a)}}(s,i,o);if(c.valid){const t=jue.ChangeTracker.with(e,e=>function(e,t,n,r,i,o){const a=o.signature,s=E(s4(i,t,n),e=>RC(e));a&&l(a,E(s4(a,t,n),e=>RC(e))),l(i,s);const c=ee(o.functionCalls,(e,t)=>vt(e.pos,t.pos));for(const e of c)if(e.arguments&&e.arguments.length){const t=RC(a4(i,e.arguments),!0);r.replaceNodeRange(vd(e),ge(e.arguments),ve(e.arguments),t,{leadingTriviaOption:jue.LeadingTriviaOption.IncludeAll,trailingTriviaOption:jue.TrailingTriviaOption.Include})}function l(t,n){r.replaceNodeRangeWithNodes(e,ge(t.parameters),ve(t.parameters),n,{joiner:", ",indentation:0,leadingTriviaOption:jue.LeadingTriviaOption.IncludeAll,trailingTriviaOption:jue.TrailingTriviaOption.Include})}}(n,i,a,e,s,c));return{renameFilename:void 0,renameLocation:void 0,edits:t}}return{edits:[]}},getAvailableActions:function(e){const{file:t,startPosition:n}=e;return Fm(t)?l:Z3(t,n,e.program.getTypeChecker())?[{name:V3,description:W3,actions:[$3]}]:l}});var l4={},_4="Convert to template string",u4=Vx(_a.Convert_to_template_string),d4={name:_4,description:u4,kind:"refactor.rewrite.string"};function p4(e,t){const n=HX(e,t),r=m4(n);return!g4(r).isValidConcatenation&&yF(r.parent)&&NF(r.parent.parent)?r.parent.parent:n}function f4(e,t){const n=m4(t),r=e.file,i=function({nodes:e,operators:t},n){const r=h4(t,n),i=y4(e,n,r),[o,a,s,c]=x4(0,e);if(o===e.length){const e=mw.createNoSubstitutionTemplateLiteral(a,s);return i(c,e),e}const l=[],_=mw.createTemplateHead(a,s);i(c,_);for(let t=o;t{k4(e);const r=t===n.templateSpans.length-1,i=e.literal.text+(r?a:""),o=b4(e.literal)+(r?s:"");return mw.createTemplateSpan(e.expression,_&&r?mw.createTemplateTail(i,o):mw.createTemplateMiddle(i,o))});l.push(...e)}else{const e=_?mw.createTemplateTail(a,s):mw.createTemplateMiddle(a,s);i(c,e),l.push(mw.createTemplateSpan(n,e))}}return mw.createTemplateExpression(_,l)}(g4(n),r),o=us(r.text,n.end);if(o){const t=o[o.length-1],a={pos:o[0].pos,end:t.end};return jue.ChangeTracker.with(e,e=>{e.deleteRange(r,a),e.replaceNode(r,n,i)})}return jue.ChangeTracker.with(e,e=>e.replaceNode(r,n,i))}function m4(e){return uc(e.parent,e=>{switch(e.kind){case 212:case 213:return!1;case 229:case 227:return!(NF(e.parent)&&(t=e.parent,64!==t.operatorToken.kind&&65!==t.operatorToken.kind));default:return"quit"}var t})||e}function g4(e){const t=e=>{if(!NF(e))return{nodes:[e],operators:[],validOperators:!0,hasString:UN(e)||$N(e)};const{nodes:n,operators:r,hasString:i,validOperators:o}=t(e.left);if(!(i||UN(e.right)||FF(e.right)))return{nodes:[e],operators:[],hasString:!1,validOperators:!0};const a=40===e.operatorToken.kind,s=o&&a;return n.push(e.right),r.push(e.operatorToken),{nodes:n,operators:r,hasString:!0,validOperators:s}},{nodes:n,operators:r,validOperators:i,hasString:o}=t(e);return{nodes:n,operators:r,isValidConcatenation:i&&o}}Z2(_4,{kinds:[d4.kind],getEditsForAction:function(e,t){const{file:n,startPosition:r}=e,i=p4(n,r);return t===u4?{edits:f4(e,i)}:un.fail("invalid action")},getAvailableActions:function(e){const{file:t,startPosition:n}=e,r=m4(p4(t,n)),i=UN(r),o={name:_4,description:u4,actions:[]};return i&&"invoked"!==e.triggerReason?l:bm(r)&&(i||NF(r)&&g4(r).isValidConcatenation)?(o.actions.push(d4),[o]):e.preferences.provideRefactorNotApplicableReason?(o.actions.push({...d4,notApplicableReason:Vx(_a.Can_only_convert_string_concatenations_and_string_literals)}),[o]):l}});var h4=(e,t)=>(n,r)=>{n(r,i)=>{for(;r.length>0;){const o=r.shift();tZ(e[o],i,t,3,!1),n(o,i)}};function v4(e){return e.replace(/\\.|[$`]/g,e=>"\\"===e[0]?e:"\\"+e)}function b4(e){const t=HN(e)||KN(e)?-2:-1;return Xd(e).slice(1,t)}function x4(e,t){const n=[];let r="",i="";for(;e=a.pos?s.getEnd():a.getEnd()),l=o?function(e){for(;e.parent;){if(F4(e)&&!F4(e.parent))return e;e=e.parent}}(a):function(e,t){for(;e.parent;){if(F4(e)&&0!==t.length&&e.end>=t.start+t.length)return e;e=e.parent}}(a,c),_=l&&F4(l)?function(e){if(D4(e))return e;if(WF(e)){const t=Ag(e),n=null==t?void 0:t.initializer;return n&&D4(n)?n:void 0}return e.expression&&D4(e.expression)?e.expression:void 0}(l):void 0;if(!_)return{error:Vx(_a.Could_not_find_convertible_access_expression)};const u=r.getTypeChecker();return DF(_)?function(e,t){const n=e.condition,r=O4(e.whenTrue);if(!r||t.isNullableType(t.getTypeAtLocation(r)))return{error:Vx(_a.Could_not_find_convertible_access_expression)};if((dF(n)||aD(n))&&A4(n,r.expression))return{finalExpression:r,occurrences:[n],expression:e};if(NF(n)){const t=P4(r.expression,n);return t?{finalExpression:r,occurrences:t,expression:e}:{error:Vx(_a.Could_not_find_matching_access_expressions)}}}(_,u):function(e){if(56!==e.operatorToken.kind)return{error:Vx(_a.Can_only_convert_logical_AND_access_chains)};const t=O4(e.right);if(!t)return{error:Vx(_a.Could_not_find_convertible_access_expression)};const n=P4(t.expression,e.left);return n?{finalExpression:t,occurrences:n,expression:e}:{error:Vx(_a.Could_not_find_matching_access_expressions)}}(_)}function P4(e,t){const n=[];for(;NF(t)&&56===t.operatorToken.kind;){const r=A4(ah(e),ah(t.right));if(!r)break;n.push(r),e=r,t=t.left}const r=A4(e,t);return r&&n.push(r),n.length>0?n:void 0}function A4(e,t){if(aD(t)||dF(t)||pF(t))return function(e,t){for(;(fF(e)||dF(e)||pF(e))&&I4(e)!==I4(t);)e=e.expression;for(;dF(e)&&dF(t)||pF(e)&&pF(t);){if(I4(e)!==I4(t))return!1;e=e.expression,t=t.expression}return aD(e)&&aD(t)&&e.getText()===t.getText()}(e,t)?t:void 0}function I4(e){return aD(e)||jh(e)?e.getText():dF(e)?I4(e.name):pF(e)?I4(e.argumentExpression):void 0}function O4(e){return NF(e=ah(e))?O4(e.left):(dF(e)||pF(e)||fF(e))&&!hl(e)?e:void 0}function L4(e,t,n){if(dF(t)||pF(t)||fF(t)){const r=L4(e,t.expression,n),i=n.length>0?n[n.length-1]:void 0,o=(null==i?void 0:i.getText())===t.expression.getText();if(o&&n.pop(),fF(t))return o?mw.createCallChain(r,mw.createToken(29),t.typeArguments,t.arguments):mw.createCallChain(r,t.questionDotToken,t.typeArguments,t.arguments);if(dF(t))return o?mw.createPropertyAccessChain(r,mw.createToken(29),t.name):mw.createPropertyAccessChain(r,t.questionDotToken,t.name);if(pF(t))return o?mw.createElementAccessChain(r,mw.createToken(29),t.argumentExpression):mw.createElementAccessChain(r,t.questionDotToken,t.argumentExpression)}return t}Z2(C4,{kinds:[N4.kind],getEditsForAction:function(e,t){const n=E4(e);return un.assert(n&&!s3(n),"Expected applicable refactor info"),{edits:jue.ChangeTracker.with(e,t=>function(e,t,n,r){const{finalExpression:i,occurrences:o,expression:a}=r,s=o[o.length-1],c=L4(t,i,o);c&&(dF(c)||pF(c)||fF(c))&&(NF(a)?n.replaceNodeRange(e,s,i,c):DF(a)&&n.replaceNode(e,a,mw.createBinaryExpression(c,mw.createToken(61),a.whenFalse)))}(e.file,e.program.getTypeChecker(),t,n)),renameFilename:void 0,renameLocation:void 0}},getAvailableActions:function(e){const t=E4(e,"invoked"===e.triggerReason);return t?s3(t)?e.preferences.provideRefactorNotApplicableReason?[{name:C4,description:w4,actions:[{...N4,notApplicableReason:t.error}]}]:l:[{name:C4,description:w4,actions:[N4]}]:l}});var j4={};i(j4,{Messages:()=>M4,RangeFacts:()=>U4,getRangeToExtract:()=>V4,getRefactorActionsToExtractSymbol:()=>z4,getRefactorEditsToExtractSymbol:()=>q4});var M4,R4="Extract Symbol",B4={name:"Extract Constant",description:Vx(_a.Extract_constant),kind:"refactor.extract.constant"},J4={name:"Extract Function",description:Vx(_a.Extract_function),kind:"refactor.extract.function"};function z4(e){const t=e.kind,n=V4(e.file,jZ(e),"invoked"===e.triggerReason),r=n.targetRange;if(void 0===r){if(!n.errors||0===n.errors.length||!e.preferences.provideRefactorNotApplicableReason)return l;const r=[];return c3(J4.kind,t)&&r.push({name:R4,description:J4.description,actions:[{...J4,notApplicableReason:m(n.errors)}]}),c3(B4.kind,t)&&r.push({name:R4,description:B4.description,actions:[{...B4,notApplicableReason:m(n.errors)}]}),r}const{affectedTextRange:i,extractions:o}=function(e,t){const{scopes:n,affectedTextRange:r,readsAndWrites:{functionErrorsPerScope:i,constantErrorsPerScope:o}}=H4(e,t),a=n.map((e,t)=>{const n=function(e){return o_(e)?"inner function":u_(e)?"method":"function"}(e),r=function(e){return u_(e)?"readonly field":"constant"}(e),a=o_(e)?function(e){switch(e.kind){case 177:return"constructor";case 219:case 263:return e.name?`function '${e.name.text}'`:dZ;case 220:return"arrow function";case 175:return`method '${e.name.getText()}'`;case 178:return`'get ${e.name.getText()}'`;case 179:return`'set ${e.name.getText()}'`;default:un.assertNever(e,`Unexpected scope kind ${e.kind}`)}}(e):u_(e)?function(e){return 264===e.kind?e.name?`class '${e.name.text}'`:"anonymous class declaration":e.name?`class expression '${e.name.text}'`:"anonymous class expression"}(e):function(e){return 269===e.kind?`namespace '${e.parent.name.getText()}'`:e.externalModuleIndicator?0:1}(e);let s,c;return 1===a?(s=zx(Vx(_a.Extract_to_0_in_1_scope),[n,"global"]),c=zx(Vx(_a.Extract_to_0_in_1_scope),[r,"global"])):0===a?(s=zx(Vx(_a.Extract_to_0_in_1_scope),[n,"module"]),c=zx(Vx(_a.Extract_to_0_in_1_scope),[r,"module"])):(s=zx(Vx(_a.Extract_to_0_in_1),[n,a]),c=zx(Vx(_a.Extract_to_0_in_1),[r,a])),0!==t||u_(e)||(c=zx(Vx(_a.Extract_to_0_in_enclosing_scope),[r])),{functionExtraction:{description:s,errors:i[t]},constantExtraction:{description:c,errors:o[t]}}});return{affectedTextRange:r,extractions:a}}(r,e);if(void 0===o)return l;const a=[],s=new Map;let c;const _=[],u=new Map;let d,p=0;for(const{functionExtraction:n,constantExtraction:r}of o){if(c3(J4.kind,t)){const t=n.description;0===n.errors.length?s.has(t)||(s.set(t,!0),a.push({description:t,name:`function_scope_${p}`,kind:J4.kind,range:{start:{line:za(e.file,i.pos).line,offset:za(e.file,i.pos).character},end:{line:za(e.file,i.end).line,offset:za(e.file,i.end).character}}})):c||(c={description:t,name:`function_scope_${p}`,notApplicableReason:m(n.errors),kind:J4.kind})}if(c3(B4.kind,t)){const t=r.description;0===r.errors.length?u.has(t)||(u.set(t,!0),_.push({description:t,name:`constant_scope_${p}`,kind:B4.kind,range:{start:{line:za(e.file,i.pos).line,offset:za(e.file,i.pos).character},end:{line:za(e.file,i.end).line,offset:za(e.file,i.end).character}}})):d||(d={description:t,name:`constant_scope_${p}`,notApplicableReason:m(r.errors),kind:B4.kind})}p++}const f=[];return a.length?f.push({name:R4,description:Vx(_a.Extract_function),actions:a}):e.preferences.provideRefactorNotApplicableReason&&c&&f.push({name:R4,description:Vx(_a.Extract_function),actions:[c]}),_.length?f.push({name:R4,description:Vx(_a.Extract_constant),actions:_}):e.preferences.provideRefactorNotApplicableReason&&d&&f.push({name:R4,description:Vx(_a.Extract_constant),actions:[d]}),f.length?f:l;function m(e){let t=e[0].messageText;return"string"!=typeof t&&(t=t.messageText),t}}function q4(e,t){const n=V4(e.file,jZ(e)).targetRange,r=/^function_scope_(\d+)$/.exec(t);if(r){const t=+r[1];return un.assert(isFinite(t),"Expected to parse a finite number from the function scope index"),function(e,t,n){const{scopes:r,readsAndWrites:{target:i,usagesPerScope:o,functionErrorsPerScope:a,exposedVariableDeclarations:s}}=H4(e,t);return un.assert(!a[n].length,"The extraction went missing? How?"),t.cancellationToken.throwIfCancellationRequested(),function(e,t,{usages:n,typeParameterUsages:r,substitutions:i},o,a,s){const c=s.program.getTypeChecker(),_=yk(s.program.getCompilerOptions()),u=T7.createImportAdder(s.file,s.program,s.preferences,s.host),d=t.getSourceFile(),p=YY(u_(t)?"newMethod":"newFunction",d),f=Em(t),m=mw.createIdentifier(p);let g;const h=[],y=[];let v;n.forEach((e,n)=>{let r;if(!f){let n=c.getTypeOfSymbolAtLocation(e.symbol,e.node);n=c.getBaseTypeOfLiteralType(n),r=T7.typeToAutoImportableTypeNode(c,u,n,t,_,1,8)}const i=mw.createParameterDeclaration(void 0,void 0,n,void 0,r);h.push(i),2===e.usage&&(v||(v=[])).push(e),y.push(mw.createIdentifier(n))});const x=Oe(r.values(),e=>({type:e,declaration:K4(e,s.startPosition)}));x.sort(G4);const k=0===x.length?void 0:B(x,({declaration:e})=>e),S=void 0!==k?k.map(e=>mw.createTypeReferenceNode(e.name,void 0)):void 0;if(V_(e)&&!f){const n=c.getContextualType(e);g=c.typeToTypeNode(n,t,1,8)}const{body:T,returnValueProperty:C}=function(e,t,n,r,i){const o=void 0!==n||t.length>0;if(VF(e)&&!o&&0===r.size)return{body:mw.createBlock(e.statements,!0),returnValueProperty:void 0};let a,s=!1;const c=mw.createNodeArray(VF(e)?e.statements.slice(0):[pu(e)?e:mw.createReturnStatement(ah(e))]);if(o||r.size){const l=_J(c,function e(i){if(!s&&nE(i)&&o){const r=X4(t,n);return i.expression&&(a||(a="__return"),r.unshift(mw.createPropertyAssignment(a,lJ(i.expression,e,V_)))),1===r.length?mw.createReturnStatement(r[0].name):mw.createReturnStatement(mw.createObjectLiteralExpression(r))}{const t=s;s=s||o_(i)||u_(i);const n=r.get(ZB(i).toString()),o=n?RC(n):vJ(i,e,void 0);return s=t,o}},pu).slice();if(o&&!i&&pu(e)){const e=X4(t,n);1===e.length?l.push(mw.createReturnStatement(e[0].name)):l.push(mw.createReturnStatement(mw.createObjectLiteralExpression(e)))}return{body:mw.createBlock(l,!0),returnValueProperty:a}}return{body:mw.createBlock(c,!0),returnValueProperty:void 0}}(e,o,v,i,!!(1&a.facts));let w;UC(T);const N=!!(16&a.facts);if(u_(t)){const e=f?[]:[mw.createModifier(123)];32&a.facts&&e.push(mw.createModifier(126)),4&a.facts&&e.push(mw.createModifier(134)),w=mw.createMethodDeclaration(e.length?e:void 0,2&a.facts?mw.createToken(42):void 0,m,void 0,k,h,g,T)}else N&&h.unshift(mw.createParameterDeclaration(void 0,void 0,"this",void 0,c.typeToTypeNode(c.getTypeAtLocation(a.thisNode),t,1,8),void 0)),w=mw.createFunctionDeclaration(4&a.facts?[mw.createToken(134)]:void 0,2&a.facts?mw.createToken(42):void 0,m,k,h,g,T);const D=jue.ChangeTracker.fromContext(s),F=function(e,t){return b(function(e){if(o_(e)){const t=e.body;if(VF(t))return t.statements}else{if(hE(e)||sP(e))return e.statements;if(u_(e))return e.members}return l}(t),t=>t.pos>=e&&o_(t)&&!PD(t))}((Q4(a.range)?ve(a.range):a.range).end,t);F?D.insertNodeBefore(s.file,F,w,!0):D.insertNodeAtEndOfScope(s.file,t,w),u.writeFixes(D);const E=[],P=function(e,t,n){const r=mw.createIdentifier(n);if(u_(e)){const n=32&t.facts?mw.createIdentifier(e.name.text):mw.createThis();return mw.createPropertyAccessExpression(n,r)}return r}(t,a,p);N&&y.unshift(mw.createIdentifier("this"));let A=mw.createCallExpression(N?mw.createPropertyAccessExpression(P,"call"):P,S,y);if(2&a.facts&&(A=mw.createYieldExpression(mw.createToken(42),A)),4&a.facts&&(A=mw.createAwaitExpression(A)),Z4(e)&&(A=mw.createJsxExpression(void 0,A)),o.length&&!v)if(un.assert(!C,"Expected no returnValueProperty"),un.assert(!(1&a.facts),"Expected RangeFacts.HasReturn flag to be unset"),1===o.length){const e=o[0];E.push(mw.createVariableStatement(void 0,mw.createVariableDeclarationList([mw.createVariableDeclaration(RC(e.name),void 0,RC(e.type),A)],e.parent.flags)))}else{const e=[],n=[];let r=o[0].parent.flags,i=!1;for(const a of o){e.push(mw.createBindingElement(void 0,void 0,RC(a.name)));const o=c.typeToTypeNode(c.getBaseTypeOfLiteralType(c.getTypeAtLocation(a)),t,1,8);n.push(mw.createPropertySignature(void 0,a.symbol.name,void 0,o)),i=i||void 0!==a.type,r&=a.parent.flags}const a=i?mw.createTypeLiteralNode(n):void 0;a&&xw(a,1),E.push(mw.createVariableStatement(void 0,mw.createVariableDeclarationList([mw.createVariableDeclaration(mw.createObjectBindingPattern(e),void 0,a,A)],r)))}else if(o.length||v){if(o.length)for(const e of o){let t=e.parent.flags;2&t&&(t=-3&t|1),E.push(mw.createVariableStatement(void 0,mw.createVariableDeclarationList([mw.createVariableDeclaration(e.symbol.name,void 0,L(e.type))],t)))}C&&E.push(mw.createVariableStatement(void 0,mw.createVariableDeclarationList([mw.createVariableDeclaration(C,void 0,L(g))],1)));const e=X4(o,v);C&&e.unshift(mw.createShorthandPropertyAssignment(C)),1===e.length?(un.assert(!C,"Shouldn't have returnValueProperty here"),E.push(mw.createExpressionStatement(mw.createAssignment(e[0].name,A))),1&a.facts&&E.push(mw.createReturnStatement())):(E.push(mw.createExpressionStatement(mw.createAssignment(mw.createObjectLiteralExpression(e),A))),C&&E.push(mw.createReturnStatement(mw.createIdentifier(C))))}else 1&a.facts?E.push(mw.createReturnStatement(A)):Q4(a.range)?E.push(mw.createExpressionStatement(A)):E.push(A);Q4(a.range)?D.replaceNodeRangeWithNodes(s.file,ge(a.range),ve(a.range),E):D.replaceNodeWithNodes(s.file,a.range,E);const I=D.getChanges(),O=(Q4(a.range)?ge(a.range):a.range).getSourceFile().fileName;return{renameFilename:O,renameLocation:ZY(I,O,p,!1),edits:I};function L(e){if(void 0===e)return;const t=RC(e);let n=t;for(;YD(n);)n=n.type;return KD(n)&&b(n.types,e=>157===e.kind)?t:mw.createUnionTypeNode([t,mw.createKeywordTypeNode(157)])}}(i,r[n],o[n],s,e,t)}(n,e,t)}const i=/^constant_scope_(\d+)$/.exec(t);if(i){const t=+i[1];return un.assert(isFinite(t),"Expected to parse a finite number from the constant scope index"),function(e,t,n){const{scopes:r,readsAndWrites:{target:i,usagesPerScope:o,constantErrorsPerScope:a,exposedVariableDeclarations:s}}=H4(e,t);return un.assert(!a[n].length,"The extraction went missing? How?"),un.assert(0===s.length,"Extract constant accepted a range containing a variable declaration?"),t.cancellationToken.throwIfCancellationRequested(),function(e,t,{substitutions:n},r,i){const o=i.program.getTypeChecker(),a=t.getSourceFile(),s=l3(e,t,o,a),c=Em(t);let l=c||!o.isContextSensitive(e)?void 0:o.typeToTypeNode(o.getContextualType(e),t,1,8),_=function(e,t){return t.size?function e(n){const r=t.get(ZB(n).toString());return r?RC(r):vJ(n,e,void 0)}(e):e}(ah(e),n);({variableType:l,initializer:_}=function(n,r){if(void 0===n)return{variableType:n,initializer:r};if(!vF(r)&&!bF(r)||r.typeParameters)return{variableType:n,initializer:r};const i=o.getTypeAtLocation(e),a=be(o.getSignaturesOfType(i,0));if(!a)return{variableType:n,initializer:r};if(a.getTypeParameters())return{variableType:n,initializer:r};const s=[];let c=!1;for(const e of r.parameters)if(e.type)s.push(e);else{const n=o.getTypeAtLocation(e);n===o.getAnyType()&&(c=!0),s.push(mw.updateParameterDeclaration(e,e.modifiers,e.dotDotDotToken,e.name,e.questionToken,e.type||o.typeToTypeNode(n,t,1,8),e.initializer))}if(c)return{variableType:n,initializer:r};if(n=void 0,bF(r))r=mw.updateArrowFunction(r,kI(e)?Dc(e):void 0,r.typeParameters,s,r.type||o.typeToTypeNode(a.getReturnType(),t,1,8),r.equalsGreaterThanToken,r.body);else{if(a&&a.thisParameter){const n=fe(s);if(!n||aD(n.name)&&"this"!==n.name.escapedText){const n=o.getTypeOfSymbolAtLocation(a.thisParameter,e);s.splice(0,0,mw.createParameterDeclaration(void 0,void 0,"this",void 0,o.typeToTypeNode(n,t,1,8)))}}r=mw.updateFunctionExpression(r,kI(e)?Dc(e):void 0,r.asteriskToken,r.name,r.typeParameters,s,r.type||o.typeToTypeNode(a.getReturnType(),t,1),r.body)}return{variableType:n,initializer:r}}(l,_)),UC(_);const u=jue.ChangeTracker.fromContext(i);if(u_(t)){un.assert(!c,"Cannot extract to a JS class");const n=[];n.push(mw.createModifier(123)),32&r&&n.push(mw.createModifier(126)),n.push(mw.createModifier(148));const o=mw.createPropertyDeclaration(n,s,void 0,l,_);let a=mw.createPropertyAccessExpression(32&r?mw.createIdentifier(t.name.getText()):mw.createThis(),mw.createIdentifier(s));Z4(e)&&(a=mw.createJsxExpression(void 0,a));const d=function(e,t){const n=t.members;let r;un.assert(n.length>0,"Found no members");let i=!0;for(const t of n){if(t.pos>e)return r||n[0];if(i&&!ND(t)){if(void 0!==r)return t;i=!1}r=t}return void 0===r?un.fail():r}(e.pos,t);u.insertNodeBefore(i.file,d,o,!0),u.replaceNode(i.file,e,a)}else{const n=mw.createVariableDeclaration(s,void 0,l,_),r=function(e,t){let n;for(;void 0!==e&&e!==t;){if(lE(e)&&e.initializer===n&&_E(e.parent)&&e.parent.declarations.length>1)return e;n=e,e=e.parent}}(e,t);if(r){u.insertNodeBefore(i.file,r,n);const t=mw.createIdentifier(s);u.replaceNode(i.file,e,t)}else if(245===e.parent.kind&&t===uc(e,$4)){const t=mw.createVariableStatement(void 0,mw.createVariableDeclarationList([n],2));u.replaceNode(i.file,e.parent,t)}else{const r=mw.createVariableStatement(void 0,mw.createVariableDeclarationList([n],2)),o=function(e,t){let n;un.assert(!u_(t));for(let r=e;r!==t;r=r.parent)$4(r)&&(n=r);for(let r=(n||e).parent;;r=r.parent){if(t0(r)){let t;for(const n of r.statements){if(n.pos>e.pos)break;t=n}return!t&&ZE(r)?(un.assert(iE(r.parent.parent),"Grandparent isn't a switch statement"),r.parent.parent):un.checkDefined(t,"prevStatement failed to get set")}un.assert(r!==t,"Didn't encounter a block-like before encountering scope")}}(e,t);if(0===o.pos?u.insertNodeAtTopOfFile(i.file,r,!1):u.insertNodeBefore(i.file,o,r,!1),245===e.parent.kind)u.delete(i.file,e.parent);else{let t=mw.createIdentifier(s);Z4(e)&&(t=mw.createJsxExpression(void 0,t)),u.replaceNode(i.file,e,t)}}}const d=u.getChanges(),p=e.getSourceFile().fileName;return{renameFilename:p,renameLocation:ZY(d,p,s,!0),edits:d}}(V_(i)?i:i.statements[0].expression,r[n],o[n],e.facts,t)}(n,e,t)}un.fail("Unrecognized action name")}Z2(R4,{kinds:[B4.kind,J4.kind],getEditsForAction:q4,getAvailableActions:z4}),(e=>{function t(e){return{message:e,code:0,category:3,key:e}}e.cannotExtractRange=t("Cannot extract range."),e.cannotExtractImport=t("Cannot extract import statement."),e.cannotExtractSuper=t("Cannot extract super call."),e.cannotExtractJSDoc=t("Cannot extract JSDoc."),e.cannotExtractEmpty=t("Cannot extract empty range."),e.expressionExpected=t("expression expected."),e.uselessConstantType=t("No reason to extract constant of type."),e.statementOrExpressionExpected=t("Statement or expression expected."),e.cannotExtractRangeContainingConditionalBreakOrContinueStatements=t("Cannot extract range containing conditional break or continue statements."),e.cannotExtractRangeContainingConditionalReturnStatement=t("Cannot extract range containing conditional return statement."),e.cannotExtractRangeContainingLabeledBreakOrContinueStatementWithTargetOutsideOfTheRange=t("Cannot extract range containing labeled break or continue with target outside of the range."),e.cannotExtractRangeThatContainsWritesToReferencesLocatedOutsideOfTheTargetRangeInGenerators=t("Cannot extract range containing writes to references located outside of the target range in generators."),e.typeWillNotBeVisibleInTheNewScope=t("Type will not visible in the new scope."),e.functionWillNotBeVisibleInTheNewScope=t("Function will not visible in the new scope."),e.cannotExtractIdentifier=t("Select more than a single identifier."),e.cannotExtractExportedEntity=t("Cannot extract exported declaration"),e.cannotWriteInExpression=t("Cannot write back side-effects when extracting an expression"),e.cannotExtractReadonlyPropertyInitializerOutsideConstructor=t("Cannot move initialization of read-only class property outside of the constructor"),e.cannotExtractAmbientBlock=t("Cannot extract code from ambient contexts"),e.cannotAccessVariablesFromNestedScopes=t("Cannot access variables from nested scopes"),e.cannotExtractToJSClass=t("Cannot extract constant to a class scope in JS"),e.cannotExtractToExpressionArrowFunction=t("Cannot extract constant to an arrow function without a block"),e.cannotExtractFunctionsContainingThisToMethod=t("Cannot extract functions containing this to method")})(M4||(M4={}));var U4=(e=>(e[e.None=0]="None",e[e.HasReturn=1]="HasReturn",e[e.IsGenerator=2]="IsGenerator",e[e.IsAsyncFunction=4]="IsAsyncFunction",e[e.UsesThis=8]="UsesThis",e[e.UsesThisInFunction=16]="UsesThisInFunction",e[e.InStaticRegion=32]="InStaticRegion",e))(U4||{});function V4(e,t,n=!0){const{length:r}=t;if(0===r&&!n)return{errors:[Gx(e,t.start,r,M4.cannotExtractEmpty)]};const i=0===r&&n,o=GX(e,t.start),a=XX(e,Fs(t)),s=o&&a&&n?function(e,t,n){const r=e.getStart(n);let i=t.getEnd();return 59===n.text.charCodeAt(i)&&i++,{start:r,length:i-r}}(o,a,e):t,c=i?function(e){return uc(e,e=>e.parent&&Y4(e)&&!NF(e.parent))}(o):cY(o,e,s),l=i?c:cY(a,e,s);let _,u=0;if(!c||!l)return{errors:[Gx(e,t.start,r,M4.cannotExtractRange)]};if(16777216&c.flags)return{errors:[Gx(e,t.start,r,M4.cannotExtractJSDoc)]};if(c.parent!==l.parent)return{errors:[Gx(e,t.start,r,M4.cannotExtractRange)]};if(c!==l){if(!t0(c.parent))return{errors:[Gx(e,t.start,r,M4.cannotExtractRange)]};const n=[];for(const e of c.parent.statements){if(e===c||n.length){const t=f(e);if(t)return{errors:t};n.push(e)}if(e===l)break}return n.length?{targetRange:{range:n,facts:u,thisNode:_}}:{errors:[Gx(e,t.start,r,M4.cannotExtractRange)]}}if(nE(c)&&!c.expression)return{errors:[Gx(e,t.start,r,M4.cannotExtractRange)]};const d=function(e){if(nE(e)){if(e.expression)return e.expression}else if(WF(e)||_E(e)){const t=WF(e)?e.declarationList.declarations:e.declarations;let n,r=0;for(const e of t)e.initializer&&(r++,n=e.initializer);if(1===r)return n}else if(lE(e)&&e.initializer)return e.initializer;return e}(c),p=function(e){if(aD(HF(e)?e.expression:e))return[Rp(e,M4.cannotExtractIdentifier)]}(d)||f(d);return p?{errors:p}:{targetRange:{range:W4(d),facts:u,thisNode:_}};function f(e){let n;var r;if((r=n||(n={}))[r.None=0]="None",r[r.Break=1]="Break",r[r.Continue=2]="Continue",r[r.Return=4]="Return",un.assert(e.pos<=e.end,"This failure could trigger https://github.com/Microsoft/TypeScript/issues/20809 (1)"),un.assert(!XS(e.pos),"This failure could trigger https://github.com/Microsoft/TypeScript/issues/20809 (2)"),!(pu(e)||bm(e)&&Y4(e)||e8(e)))return[Rp(e,M4.statementOrExpressionExpected)];if(33554432&e.flags)return[Rp(e,M4.cannotExtractAmbientBlock)];const i=Xf(e);let o;i&&function(e,t){let n=e;for(;n!==t;){if(173===n.kind){Dv(n)&&(u|=32);break}if(170===n.kind){177===Kf(n).kind&&(u|=32);break}175===n.kind&&Dv(n)&&(u|=32),n=n.parent}}(e,i);let a,s=4;if(function e(n){if(o)return!0;if(_u(n)&&Nv(261===n.kind?n.parent.parent:n,32))return(o||(o=[])).push(Rp(n,M4.cannotExtractExportedEntity)),!0;switch(n.kind){case 273:return(o||(o=[])).push(Rp(n,M4.cannotExtractImport)),!0;case 278:return(o||(o=[])).push(Rp(n,M4.cannotExtractExportedEntity)),!0;case 108:if(214===n.parent.kind){const e=Xf(n);if(void 0===e||e.pos=t.start+t.length)return(o||(o=[])).push(Rp(n,M4.cannotExtractSuper)),!0}else u|=8,_=n;break;case 220:XI(n,function e(t){if(vX(t))u|=8,_=n;else{if(u_(t)||r_(t)&&!bF(t))return!1;XI(t,e)}});case 264:case 263:sP(n.parent)&&void 0===n.parent.externalModuleIndicator&&(o||(o=[])).push(Rp(n,M4.functionWillNotBeVisibleInTheNewScope));case 232:case 219:case 175:case 177:case 178:case 179:return!1}const r=s;switch(n.kind){case 246:s&=-5;break;case 259:s=0;break;case 242:n.parent&&259===n.parent.kind&&n.parent.finallyBlock===n&&(s=4);break;case 298:case 297:s|=1;break;default:$_(n,!1)&&(s|=3)}switch(n.kind){case 198:case 110:u|=8,_=n;break;case 257:{const t=n.label;(a||(a=[])).push(t.escapedText),XI(n,e),a.pop();break}case 253:case 252:{const e=n.label;e?T(a,e.escapedText)||(o||(o=[])).push(Rp(n,M4.cannotExtractRangeContainingLabeledBreakOrContinueStatementWithTargetOutsideOfTheRange)):s&(253===n.kind?1:2)||(o||(o=[])).push(Rp(n,M4.cannotExtractRangeContainingConditionalBreakOrContinueStatements));break}case 224:u|=4;break;case 230:u|=2;break;case 254:4&s?u|=1:(o||(o=[])).push(Rp(n,M4.cannotExtractRangeContainingConditionalReturnStatement));break;default:XI(n,e)}s=r}(e),8&u){const t=em(e,!1,!1);(263===t.kind||175===t.kind&&211===t.parent.kind||219===t.kind)&&(u|=16)}return o}}function W4(e){return pu(e)?[e]:bm(e)?HF(e.parent)?[e.parent]:e:e8(e)?e:void 0}function $4(e){return bF(e)?Z_(e.body):o_(e)||sP(e)||hE(e)||u_(e)}function H4(e,t){const{file:n}=t,r=function(e){let t=Q4(e.range)?ge(e.range):e.range;if(8&e.facts&&!(16&e.facts)){const e=Xf(t);if(e){const n=uc(t,o_);return n?[n,e]:[e]}}const n=[];for(;;)if(t=t.parent,170===t.kind&&(t=uc(t,e=>o_(e)).parent),$4(t)&&(n.push(t),308===t.kind))return n}(e),i=function(e,t){return Q4(e.range)?{pos:ge(e.range).getStart(t),end:ve(e.range).getEnd()}:e.range}(e,n),o=function(e,t,n,r,i,o){const a=new Map,s=[],c=[],l=[],_=[],u=[],d=new Map,p=[];let f;const m=Q4(e.range)?1===e.range.length&&HF(e.range[0])?e.range[0].expression:void 0:e.range;let g;if(void 0===m){const t=e.range,n=ge(t).getStart(),i=ve(t).end;g=Gx(r,n,i-n,M4.expressionExpected)}else 147456&i.getTypeAtLocation(m).flags&&(g=Rp(m,M4.uselessConstantType));for(const e of t){s.push({usages:new Map,typeParameterUsages:new Map,substitutions:new Map}),c.push(new Map),l.push([]);const t=[];g&&t.push(g),u_(e)&&Em(e)&&t.push(Rp(e,M4.cannotExtractToJSClass)),bF(e)&&!VF(e.body)&&t.push(Rp(e,M4.cannotExtractToExpressionArrowFunction)),_.push(t)}const h=new Map,y=Q4(e.range)?mw.createBlock(e.range):e.range,v=Q4(e.range)?ge(e.range):e.range,x=!!uc(v,e=>xp(e)&&0!==_l(e).length);if(function o(a,d=1){x&&k(i.getTypeAtLocation(a));if(_u(a)&&a.symbol&&u.push(a),rb(a))o(a.left,2),o(a.right);else if(q_(a))o(a.operand,2);else if(dF(a)||pF(a))XI(a,o);else if(aD(a)){if(!a.parent)return;if(xD(a.parent)&&a!==a.parent.left)return;if(dF(a.parent)&&a!==a.parent.expression)return;!function(o,a,u){const d=function(o,a,u){const d=S(o);if(!d)return;const p=eJ(d).toString(),f=h.get(p);if(f&&f>=a)return p;if(h.set(p,a),f){for(const e of s)e.usages.get(o.text)&&e.usages.set(o.text,{usage:a,symbol:d,node:o});return p}const m=d.getDeclarations(),g=m&&b(m,e=>e.getSourceFile()===r);if(g&&!CX(n,g.getStart(),g.end)){if(2&e.facts&&2===a){const e=Rp(o,M4.cannotExtractRangeThatContainsWritesToReferencesLocatedOutsideOfTheTargetRangeInGenerators);for(const t of l)t.push(e);for(const t of _)t.push(e)}for(let e=0;e0){const e=new Map;let n=0;for(let r=v;void 0!==r&&n{s[n].typeParameterUsages.set(t,e)}),n++),xp(r))for(const t of _l(r)){const n=i.getTypeAtLocation(t);a.has(n.id.toString())&&e.set(n.id.toString(),n)}un.assert(n===t.length,"Should have iterated all scopes")}u.length&&XI(bp(t[0],t[0].parent)?t[0]:Ep(t[0]),function t(n){if(n===e.range||Q4(e.range)&&e.range.includes(n))return;const r=aD(n)?S(n):i.getSymbolAtLocation(n);if(r){const e=b(u,e=>e.symbol===r);if(e)if(lE(e)){const t=e.symbol.id.toString();d.has(t)||(p.push(e),d.set(t,!0))}else f=f||e}XI(n,t)});for(let n=0;n0&&(r.usages.size>0||r.typeParameterUsages.size>0)){const t=Q4(e.range)?e.range[0]:e.range;_[n].push(Rp(t,M4.cannotAccessVariablesFromNestedScopes))}16&e.facts&&u_(t[n])&&l[n].push(Rp(e.thisNode,M4.cannotExtractFunctionsContainingThisToMethod));let i,o=!1;if(s[n].usages.forEach(e=>{2===e.usage&&(o=!0,106500&e.symbol.flags&&e.symbol.valueDeclaration&&wv(e.symbol.valueDeclaration,8)&&(i=e.symbol.valueDeclaration))}),un.assert(Q4(e.range)||0===p.length,"No variable declarations expected if something was extracted"),o&&!Q4(e.range)){const t=Rp(e.range,M4.cannotWriteInExpression);l[n].push(t),_[n].push(t)}else if(i&&n>0){const e=Rp(i,M4.cannotExtractReadonlyPropertyInitializerOutsideConstructor);l[n].push(e),_[n].push(e)}else if(f){const e=Rp(f,M4.cannotExtractExportedEntity);l[n].push(e),_[n].push(e)}}return{target:y,usagesPerScope:s,functionErrorsPerScope:l,constantErrorsPerScope:_,exposedVariableDeclarations:p};function k(e){const t=i.getSymbolWalker(()=>(o.throwIfCancellationRequested(),!0)),{visitedTypes:n}=t.walkType(e);for(const e of n)e.isTypeParameter()&&a.set(e.id.toString(),e)}function S(e){return e.parent&&iP(e.parent)&&e.parent.name===e?i.getShorthandAssignmentValueSymbol(e.parent):i.getSymbolAtLocation(e)}function T(e,t,n){if(!e)return;const r=e.getDeclarations();if(r&&r.some(e=>e.parent===t))return mw.createIdentifier(e.name);const i=T(e.parent,t,n);return void 0!==i?n?mw.createQualifiedName(i,mw.createIdentifier(e.name)):mw.createPropertyAccessExpression(i,e.name):void 0}}(e,r,i,n,t.program.getTypeChecker(),t.cancellationToken);return{scopes:r,affectedTextRange:i,readsAndWrites:o}}function K4(e,t){let n;const r=e.symbol;if(r&&r.declarations)for(const e of r.declarations)(void 0===n||e.posmw.createShorthandPropertyAssignment(e.symbol.name)),r=E(t,e=>mw.createShorthandPropertyAssignment(e.symbol.name));return void 0===n?r:void 0===r?n:n.concat(r)}function Q4(e){return Qe(e)}function Y4(e){const{parent:t}=e;if(307===t.kind)return!1;switch(e.kind){case 11:return 273!==t.kind&&277!==t.kind;case 231:case 207:case 209:return!1;case 80:return 209!==t.kind&&277!==t.kind&&282!==t.kind}return!0}function Z4(e){return e8(e)||(zE(e)||qE(e)||WE(e))&&(zE(e.parent)||WE(e.parent))}function e8(e){return UN(e)&&e.parent&&KE(e.parent)}var t8={},n8="Generate 'get' and 'set' accessors",r8=Vx(_a.Generate_get_and_set_accessors),i8={name:n8,description:r8,kind:"refactor.rewrite.property.generateAccessors"};Z2(n8,{kinds:[i8.kind],getEditsForAction:function(e,t){if(!e.endPosition)return;const n=T7.getAccessorConvertiblePropertyAtPosition(e.file,e.program,e.startPosition,e.endPosition);un.assert(n&&!s3(n),"Expected applicable refactor info");const r=T7.generateAccessorFromProperty(e.file,e.program,e.startPosition,e.endPosition,e,t);if(!r)return;const i=e.file.fileName,o=n.renameAccessor?n.accessorName:n.fieldName;return{renameFilename:i,renameLocation:(aD(o)?0:-1)+ZY(r,i,o.text,TD(n.declaration)),edits:r}},getAvailableActions(e){if(!e.endPosition)return l;const t=T7.getAccessorConvertiblePropertyAtPosition(e.file,e.program,e.startPosition,e.endPosition,"invoked"===e.triggerReason);return t?s3(t)?e.preferences.provideRefactorNotApplicableReason?[{name:n8,description:r8,actions:[{...i8,notApplicableReason:t.error}]}]:l:[{name:n8,description:r8,actions:[i8]}]:l}});var o8={},a8="Infer function return type",s8=Vx(_a.Infer_function_return_type),c8={name:a8,description:s8,kind:"refactor.rewrite.function.returnType"};function l8(e){if(Em(e.file)||!c3(c8.kind,e.kind))return;const t=uc(WX(e.file,e.startPosition),e=>VF(e)||e.parent&&bF(e.parent)&&(39===e.kind||e.parent.body===e)?"quit":function(e){switch(e.kind){case 263:case 219:case 220:case 175:return!0;default:return!1}}(e));if(!t||!t.body||t.type)return{error:Vx(_a.Return_type_must_be_inferred_from_a_function)};const n=e.program.getTypeChecker();let r;if(n.isImplementationOfOverload(t)){const e=n.getTypeAtLocation(t).getCallSignatures();e.length>1&&(r=n.getUnionType(B(e,e=>e.getReturnType())))}if(!r){const e=n.getSignatureFromDeclaration(t);if(e){const i=n.getTypePredicateOfSignature(e);if(i&&i.type){const e=n.typePredicateToTypePredicateNode(i,t,1,8);if(e)return{declaration:t,returnTypeNode:e}}else r=n.getReturnTypeOfSignature(e)}}if(!r)return{error:Vx(_a.Could_not_determine_function_return_type)};const i=n.typeToTypeNode(r,t,1,8);return i?{declaration:t,returnTypeNode:i}:void 0}Z2(a8,{kinds:[c8.kind],getEditsForAction:function(e){const t=l8(e);if(t&&!s3(t))return{renameFilename:void 0,renameLocation:void 0,edits:jue.ChangeTracker.with(e,n=>function(e,t,n,r){const i=OX(n,22,e),o=bF(n)&&void 0===i,a=o?ge(n.parameters):i;a&&(o&&(t.insertNodeBefore(e,a,mw.createToken(21)),t.insertNodeAfter(e,a,mw.createToken(22))),t.insertNodeAt(e,a.end,r,{prefix:": "}))}(e.file,n,t.declaration,t.returnTypeNode))}},getAvailableActions:function(e){const t=l8(e);return t?s3(t)?e.preferences.provideRefactorNotApplicableReason?[{name:a8,description:s8,actions:[{...c8,notApplicableReason:t.error}]}]:l:[{name:a8,description:s8,actions:[c8]}]:l}});var _8=(e=>(e[e.typeOffset=8]="typeOffset",e[e.modifierMask=255]="modifierMask",e))(_8||{}),u8=(e=>(e[e.class=0]="class",e[e.enum=1]="enum",e[e.interface=2]="interface",e[e.namespace=3]="namespace",e[e.typeParameter=4]="typeParameter",e[e.type=5]="type",e[e.parameter=6]="parameter",e[e.variable=7]="variable",e[e.enumMember=8]="enumMember",e[e.property=9]="property",e[e.function=10]="function",e[e.member=11]="member",e))(u8||{}),d8=(e=>(e[e.declaration=0]="declaration",e[e.static=1]="static",e[e.async=2]="async",e[e.readonly=3]="readonly",e[e.defaultLibrary=4]="defaultLibrary",e[e.local=5]="local",e))(d8||{});function p8(e,t,n,r){const i=f8(e,t,n,r);un.assert(i.spans.length%3==0);const o=i.spans,a=[];for(let e=0;ee(r)||r.isUnion()&&r.types.some(e);if(6!==n&&e(e=>e.getConstructSignatures().length>0))return 0;if(e(e=>e.getCallSignatures().length>0)&&!e(e=>e.getProperties().length>0)||function(e){for(;h8(e);)e=e.parent;return fF(e.parent)&&e.parent.expression===e}(t))return 9===n?11:10}}return n}(o,c,i);const s=n.valueDeclaration;if(s){const r=ic(s),o=ac(s);256&r&&(a|=2),1024&r&&(a|=4),0!==i&&2!==i&&(8&r||2&o||8&n.getFlags())&&(a|=8),7!==i&&10!==i||!function(e,t){return lF(e)&&(e=g8(e)),lE(e)?(!sP(e.parent.parent.parent)||nP(e.parent))&&e.getSourceFile()===t:!!uE(e)&&(!sP(e.parent)&&e.getSourceFile()===t)}(s,t)||(a|=32),e.isSourceFileDefaultLibrary(s.getSourceFile())&&(a|=16)}else n.declarations&&n.declarations.some(t=>e.isSourceFileDefaultLibrary(t.getSourceFile()))&&(a|=16);r(c,i,a)}}}XI(c,s),a=l}(t)}(e,t,n,(e,n,r)=>{i.push(e.getStart(t),e.getWidth(t),(n+1<<8)+r)},r),i}function g8(e){for(;;){if(!lF(e.parent.parent))return e.parent.parent;e=e.parent.parent}}function h8(e){return xD(e.parent)&&e.parent.right===e||dF(e.parent)&&e.parent.name===e}var y8=new Map([[261,7],[170,6],[173,9],[268,3],[267,1],[307,8],[264,0],[175,11],[263,10],[219,10],[174,11],[178,9],[179,9],[172,9],[265,2],[266,5],[169,4],[304,9],[305,9]]),v8="0.8";function b8(e,t,n,r){const i=Dl(e)?new x8(e,t,n):80===e?new w8(80,t,n):81===e?new N8(81,t,n):new C8(e,t,n);return i.parent=r,i.flags=101441536&r.flags,i}var x8=class{constructor(e,t,n){this.pos=t,this.end=n,this.kind=e,this.id=0,this.flags=0,this.modifierFlagsCache=0,this.transformFlags=0,this.parent=void 0,this.original=void 0,this.emitNode=void 0}assertHasRealPosition(e){un.assert(!XS(this.pos)&&!XS(this.end),e||"Node must have a real position for this operation")}getSourceFile(){return vd(this)}getStart(e,t){return this.assertHasRealPosition(),zd(this,e,t)}getFullStart(){return this.assertHasRealPosition(),this.pos}getEnd(){return this.assertHasRealPosition(),this.end}getWidth(e){return this.assertHasRealPosition(),this.getEnd()-this.getStart(e)}getFullWidth(){return this.assertHasRealPosition(),this.end-this.pos}getLeadingTriviaWidth(e){return this.assertHasRealPosition(),this.getStart(e)-this.pos}getFullText(e){return this.assertHasRealPosition(),(e||this.getSourceFile()).text.substring(this.pos,this.end)}getText(e){return this.assertHasRealPosition(),e||(e=this.getSourceFile()),e.text.substring(this.getStart(e),this.getEnd())}getChildCount(e){return this.getChildren(e).length}getChildAt(e,t){return this.getChildren(t)[e]}getChildren(e=vd(this)){return this.assertHasRealPosition("Node without a real position cannot be scanned and thus has no token nodes - use forEachChild and collect the result if that's fine"),eA(this,e)??tA(this,e,function(e,t){const n=[];if(Tu(e))return e.forEachChild(e=>{n.push(e)}),n;const r=(null==t?void 0:t.languageVariant)??0;qG.setText((t||e.getSourceFile()).text),qG.setLanguageVariant(r);let i=e.pos;const o=t=>{k8(n,i,t.pos,e),n.push(t),i=t.end};return d(e.jsDoc,o),i=e.pos,e.forEachChild(o,t=>{k8(n,i,t.pos,e),n.push(function(e,t){const n=b8(353,e.pos,e.end,t),r=[];let i=e.pos;for(const n of e)k8(r,i,n.pos,t),r.push(n),i=n.end;return k8(r,i,e.end,t),n._children=r,n}(t,e)),i=t.end}),k8(n,i,e.end,e),qG.setText(void 0),qG.setLanguageVariant(0),n}(this,e))}getFirstToken(e){this.assertHasRealPosition();const t=this.getChildren(e);if(!t.length)return;const n=b(t,e=>e.kind<310||e.kind>352);return n.kind<167?n:n.getFirstToken(e)}getLastToken(e){this.assertHasRealPosition();const t=ye(this.getChildren(e));if(t)return t.kind<167?t:t.getLastToken(e)}forEachChild(e,t){return XI(this,e,t)}};function k8(e,t,n,r){for(qG.resetTokenState(t);t"inheritDoc"===e.tagName.text||"inheritdoc"===e.tagName.text)}function P8(e,t){if(!e)return l;let n=wle.getJsDocTagsFromDeclarations(e,t);if(t&&(0===n.length||e.some(E8))){const r=new Set;for(const i of e){const e=I8(t,i,e=>{var n;if(!r.has(e))return r.add(e),178===i.kind||179===i.kind?e.getContextualJsDocTags(i,t):1===(null==(n=e.declarations)?void 0:n.length)?e.getJsDocTags(t):void 0});e&&(n=[...e,...n])}}return n}function A8(e,t){if(!e)return l;let n=wle.getJsDocCommentsFromDeclarations(e,t);if(t&&(0===n.length||e.some(E8))){const r=new Set;for(const i of e){const e=I8(t,i,e=>{if(!r.has(e))return r.add(e),178===i.kind||179===i.kind?e.getContextualDocumentationComment(i,t):e.getDocumentationComment(t)});e&&(n=0===n.length?e.slice():e.concat(BY(),n))}}return n}function I8(e,t,n){var r;const i=177===(null==(r=t.parent)?void 0:r.kind)?t.parent.parent:t.parent;if(!i)return;const o=Fv(t);return f(xh(i),r=>{const i=e.getTypeAtLocation(r),a=o&&i.symbol?e.getTypeOfSymbol(i.symbol):i,s=e.getPropertyOfType(a,t.symbol.name);return s?n(s):void 0})}var O8=class extends x8{constructor(e,t,n){super(e,t,n)}update(e,t){return iO(this,e,t)}getLineAndCharacterOfPosition(e){return za(this,e)}getLineStarts(){return Ma(this)}getPositionOfLineAndCharacter(e,t,n){return ja(Ma(this),e,t,this.text,n)}getLineEndOfPosition(e){const{line:t}=this.getLineAndCharacterOfPosition(e),n=this.getLineStarts();let r;t+1>=n.length&&(r=this.getEnd()),r||(r=n[t+1]-1);const i=this.getFullText();return"\n"===i[r]&&"\r"===i[r-1]?r-1:r}getNamedDeclarations(){return this.namedDeclarations||(this.namedDeclarations=this.computeNamedDeclarations()),this.namedDeclarations}computeNamedDeclarations(){const e=$e();return this.forEachChild(function r(i){switch(i.kind){case 263:case 219:case 175:case 174:const o=i,a=n(o);if(a){const t=function(t){let n=e.get(t);return n||e.set(t,n=[]),n}(a),n=ye(t);n&&o.parent===n.parent&&o.symbol===n.symbol?o.body&&!n.body&&(t[t.length-1]=o):t.push(o)}XI(i,r);break;case 264:case 232:case 265:case 266:case 267:case 268:case 272:case 282:case 277:case 274:case 275:case 178:case 179:case 188:t(i),XI(i,r);break;case 170:if(!Nv(i,31))break;case 261:case 209:{const e=i;if(k_(e.name)){XI(e.name,r);break}e.initializer&&r(e.initializer)}case 307:case 173:case 172:t(i);break;case 279:const s=i;s.exportClause&&(OE(s.exportClause)?d(s.exportClause.elements,r):r(s.exportClause.name));break;case 273:const c=i.importClause;c&&(c.name&&t(c.name),c.namedBindings&&(275===c.namedBindings.kind?t(c.namedBindings):d(c.namedBindings.elements,r)));break;case 227:0!==tg(i)&&t(i);default:XI(i,r)}}),e;function t(t){const r=n(t);r&&e.add(r,t)}function n(e){const t=Tc(e);return t&&(kD(t)&&dF(t.expression)?t.expression.name.text:t_(t)?VQ(t):void 0)}}},L8=class{constructor(e,t,n){this.fileName=e,this.text=t,this.skipTrivia=n||(e=>e)}getLineAndCharacterOfPosition(e){return za(this,e)}};function j8(e){let t=!0;for(const n in e)if(De(e,n)&&!M8(n)){t=!1;break}if(t)return e;const n={};for(const t in e)De(e,t)&&(n[M8(t)?t:t.charAt(0).toLowerCase()+t.substr(1)]=e[t]);return n}function M8(e){return!e.length||e.charAt(0)===e.charAt(0).toLowerCase()}function R8(e){return e?E(e,e=>e.text).join(""):""}function B8(){return{target:1,jsx:1}}function J8(){return T7.getSupportedErrorCodes()}var z8=class{constructor(e){this.host=e}getCurrentSourceFile(e){var t,n,r,i,o,a,s,c;const l=this.host.getScriptSnapshot(e);if(!l)throw new Error("Could not find file: '"+e+"'.");const _=WY(e,this.host),u=this.host.getScriptVersion(e);let d;if(this.currentFileName!==e)d=U8(e,l,{languageVersion:99,impliedNodeFormat:AV(Uo(e,this.host.getCurrentDirectory(),(null==(r=null==(n=(t=this.host).getCompilerHost)?void 0:n.call(t))?void 0:r.getCanonicalFileName)||My(this.host)),null==(c=null==(s=null==(a=null==(o=(i=this.host).getCompilerHost)?void 0:o.call(i))?void 0:a.getModuleResolutionCache)?void 0:s.call(a))?void 0:c.getPackageJsonInfoCache(),this.host,this.host.getCompilationSettings()),setExternalModuleIndicator:pk(this.host.getCompilationSettings()),jsDocParsingMode:0},u,!0,_);else if(this.currentFileVersion!==u){const e=l.getChangeRange(this.currentFileScriptSnapshot);d=V8(this.currentSourceFile,l,u,e)}return d&&(this.currentFileVersion=u,this.currentFileName=e,this.currentFileScriptSnapshot=l,this.currentSourceFile=d),this.currentSourceFile}};function q8(e,t,n){e.version=n,e.scriptSnapshot=t}function U8(e,t,n,r,i,o){const a=eO(e,zQ(t),n,i,o);return q8(a,t,r),a}function V8(e,t,n,r,i){if(r&&n!==e.version){let o;const a=0!==r.span.start?e.text.substr(0,r.span.start):"",s=Fs(r.span)!==e.text.length?e.text.substr(Fs(r.span)):"";if(0===r.newLength)o=a&&s?a+s:a||s;else{const e=t.getText(r.span.start,r.span.start+r.newLength);o=a&&s?a+e+s:a?a+e:e+s}const c=iO(e,o,r,i);return q8(c,t,n),c.nameTable=void 0,e!==c&&e.scriptSnapshot&&(e.scriptSnapshot.dispose&&e.scriptSnapshot.dispose(),e.scriptSnapshot=void 0),c}const o={languageVersion:e.languageVersion,impliedNodeFormat:e.impliedNodeFormat,setExternalModuleIndicator:e.setExternalModuleIndicator,jsDocParsingMode:e.jsDocParsingMode};return U8(e.fileName,t,o,n,!0,e.scriptKind)}var W8={isCancellationRequested:it,throwIfCancellationRequested:rt},$8=class{constructor(e){this.cancellationToken=e}isCancellationRequested(){return this.cancellationToken.isCancellationRequested()}throwIfCancellationRequested(){var e;if(this.isCancellationRequested())throw null==(e=Hn)||e.instant(Hn.Phase.Session,"cancellationThrown",{kind:"CancellationTokenObject"}),new Cr}},H8=class{constructor(e,t=20){this.hostCancellationToken=e,this.throttleWaitMilliseconds=t,this.lastCancellationCheckTime=0}isCancellationRequested(){const e=Un();return Math.abs(e-this.lastCancellationCheckTime)>=this.throttleWaitMilliseconds&&(this.lastCancellationCheckTime=e,this.hostCancellationToken.isCancellationRequested())}throwIfCancellationRequested(){var e;if(this.isCancellationRequested())throw null==(e=Hn)||e.instant(Hn.Phase.Session,"cancellationThrown",{kind:"ThrottledCancellationToken"}),new Cr}},K8=["getSemanticDiagnostics","getSuggestionDiagnostics","getCompilerOptionsDiagnostics","getSemanticClassifications","getEncodedSemanticClassifications","getCodeFixesAtPosition","getCombinedCodeFix","applyCodeActionCommand","organizeImports","getEditsForFileRename","getEmitOutput","getApplicableRefactors","getEditsForRefactor","prepareCallHierarchy","provideCallHierarchyIncomingCalls","provideCallHierarchyOutgoingCalls","provideInlayHints","getSupportedCodeFixes","getPasteEdits"],G8=[...K8,"getCompletionsAtPosition","getCompletionEntryDetails","getCompletionEntrySymbol","getSignatureHelpItems","getQuickInfoAtPosition","getDefinitionAtPosition","getDefinitionAndBoundSpan","getImplementationAtPosition","getTypeDefinitionAtPosition","getReferencesAtPosition","findReferences","getDocumentHighlights","getNavigateToItems","getRenameInfo","findRenameLocations","getApplicableRefactors","preparePasteEditsForFile"];function X8(e,t=I0(e.useCaseSensitiveFileNames&&e.useCaseSensitiveFileNames(),e.getCurrentDirectory(),e.jsDocParsingMode),n){var r;let i;i=void 0===n?0:"boolean"==typeof n?n?2:0:n;const o=new z8(e);let a,s,c=0;const _=e.getCancellationToken?new $8(e.getCancellationToken()):W8,u=e.getCurrentDirectory();function p(t){e.log&&e.log(t)}Ux(null==(r=e.getLocalizedDiagnosticMessages)?void 0:r.bind(e));const f=jy(e),m=Wt(f),g=v1({useCaseSensitiveFileNames:()=>f,getCurrentDirectory:()=>u,getProgram:v,fileExists:We(e,e.fileExists),readFile:We(e,e.readFile),getDocumentPositionMapper:We(e,e.getDocumentPositionMapper),getSourceFileLike:We(e,e.getSourceFileLike),log:p});function h(e){const t=a.getSourceFile(e);if(!t){const t=new Error(`Could not find source file: '${e}'.`);throw t.ProgramFiles=a.getSourceFiles().map(e=>e.fileName),t}return t}function y(){e.updateFromProject&&!e.updateFromProjectInProgress?e.updateFromProject():function(){var n,r,o;if(un.assert(2!==i),e.getProjectVersion){const t=e.getProjectVersion();if(t){if(s===t&&!(null==(n=e.hasChangedAutomaticTypeDirectiveNames)?void 0:n.call(e)))return;s=t}}const l=e.getTypeRootsVersion?e.getTypeRootsVersion():0;c!==l&&(p("TypeRoots version has changed; provide new program"),a=void 0,c=l);const d=e.getScriptFileNames().slice(),h=e.getCompilationSettings()||{target:1,jsx:1},y=e.hasInvalidatedResolutions||it,v=We(e,e.hasInvalidatedLibResolutions)||it,b=We(e,e.hasChangedAutomaticTypeDirectiveNames),x=null==(r=e.getProjectReferences)?void 0:r.call(e);let k,S={getSourceFile:P,getSourceFileByPath:A,getCancellationToken:()=>_,getCanonicalFileName:m,useCaseSensitiveFileNames:()=>f,getNewLine:()=>Pb(h),getDefaultLibFileName:t=>e.getDefaultLibFileName(t),writeFile:rt,getCurrentDirectory:()=>u,fileExists:t=>e.fileExists(t),readFile:t=>e.readFile&&e.readFile(t),getSymlinkCache:We(e,e.getSymlinkCache),realpath:We(e,e.realpath),directoryExists:t=>Db(t,e),getDirectories:t=>e.getDirectories?e.getDirectories(t):[],readDirectory:(t,n,r,i,o)=>(un.checkDefined(e.readDirectory,"'LanguageServiceHost.readDirectory' must be implemented to correctly process 'projectReferences'"),e.readDirectory(t,n,r,i,o)),onReleaseOldSourceFile:function(t,n,r,i){var o;E(t,n),null==(o=e.onReleaseOldSourceFile)||o.call(e,t,n,r,i)},onReleaseParsedCommandLine:function(t,n,r){var i;e.getParsedCommandLine?null==(i=e.onReleaseParsedCommandLine)||i.call(e,t,n,r):n&&E(n.sourceFile,r)},hasInvalidatedResolutions:y,hasInvalidatedLibResolutions:v,hasChangedAutomaticTypeDirectiveNames:b,trace:We(e,e.trace),resolveModuleNames:We(e,e.resolveModuleNames),getModuleResolutionCache:We(e,e.getModuleResolutionCache),createHash:We(e,e.createHash),resolveTypeReferenceDirectives:We(e,e.resolveTypeReferenceDirectives),resolveModuleNameLiterals:We(e,e.resolveModuleNameLiterals),resolveTypeReferenceDirectiveReferences:We(e,e.resolveTypeReferenceDirectiveReferences),resolveLibrary:We(e,e.resolveLibrary),useSourceOfProjectReferenceRedirect:We(e,e.useSourceOfProjectReferenceRedirect),getParsedCommandLine:F,jsDocParsingMode:e.jsDocParsingMode,getGlobalTypingsCacheLocation:We(e,e.getGlobalTypingsCacheLocation)};const T=S.getSourceFile,{getSourceFileWithCache:C}=$U(S,e=>Uo(e,u,m),(...e)=>T.call(S,...e));S.getSourceFile=C,null==(o=e.setCompilerHost)||o.call(e,S);const w={useCaseSensitiveFileNames:f,fileExists:e=>S.fileExists(e),readFile:e=>S.readFile(e),directoryExists:e=>S.directoryExists(e),getDirectories:e=>S.getDirectories(e),realpath:S.realpath,readDirectory:(...e)=>S.readDirectory(...e),trace:S.trace,getCurrentDirectory:S.getCurrentDirectory,onUnRecoverableConfigFileDiagnostic:rt},N=t.getKeyForCompilationSettings(h);let D=new Set;return EV(a,d,h,(t,n)=>e.getScriptVersion(n),e=>S.fileExists(e),y,v,b,F,x)?(S=void 0,k=void 0,void(D=void 0)):(a=LV({rootNames:d,options:h,host:S,oldProgram:a,projectReferences:x}),S=void 0,k=void 0,D=void 0,g.clearCache(),void a.getTypeChecker());function F(t){const n=Uo(t,u,m),r=null==k?void 0:k.get(n);if(void 0!==r)return r||void 0;const i=e.getParsedCommandLine?e.getParsedCommandLine(t):function(e){const t=P(e,100);if(t)return t.path=Uo(e,u,m),t.resolvedPath=t.path,t.originalFileName=t.fileName,ej(t,w,Bo(Do(e),u),void 0,Bo(e,u))}(t);return(k||(k=new Map)).set(n,i||!1),i}function E(e,n){const r=t.getKeyForCompilationSettings(n);t.releaseDocumentWithKey(e.resolvedPath,r,e.scriptKind,e.impliedNodeFormat)}function P(e,t,n,r){return A(e,Uo(e,u,m),t,0,r)}function A(n,r,i,o,s){un.assert(S,"getOrCreateSourceFileByPath called after typical CompilerHost lifetime, check the callstack something with a reference to an old host.");const c=e.getScriptSnapshot(n);if(!c)return;const l=WY(n,e),_=e.getScriptVersion(n);if(!s){const o=a&&a.getSourceFileByPath(r);if(o){if(l===o.scriptKind||D.has(o.resolvedPath))return t.updateDocumentWithKey(n,r,e,N,c,_,l,i);t.releaseDocumentWithKey(o.resolvedPath,t.getKeyForCompilationSettings(a.getCompilerOptions()),o.scriptKind,o.impliedNodeFormat),D.add(o.resolvedPath)}}return t.acquireDocumentWithKey(n,r,e,N,c,_,l,i)}}()}function v(){if(2!==i)return y(),a;un.assert(void 0===a)}function b(){if(a){const e=t.getKeyForCompilationSettings(a.getCompilerOptions());d(a.getSourceFiles(),n=>t.releaseDocumentWithKey(n.resolvedPath,e,n.scriptKind,n.impliedNodeFormat)),a=void 0}}function x(e,t){if(Os(t,e))return;const n=uc(XX(e,Fs(t))||e,e=>Ls(e,t)),r=[];return k(t,n,r),e.end===t.start+t.length&&r.push(e.endOfFileToken),$(r,sP)?void 0:r}function k(e,t,n){return!!function(e,t){const n=t.start+t.length;return e.post.start}(t,e)&&(Os(e,t)?(S(t,n),!0):t0(t)?function(e,t,n){const r=[];return t.statements.filter(t=>k(e,t,r)).length===t.statements.length?(S(t,n),!0):(n.push(...r),!1)}(e,t,n):u_(t)?function(e,t,n){var r,i,o;const a=t=>qs(t,e);if((null==(r=t.modifiers)?void 0:r.some(a))||t.name&&a(t.name)||(null==(i=t.typeParameters)?void 0:i.some(a))||(null==(o=t.heritageClauses)?void 0:o.some(a)))return S(t,n),!0;const s=[];return t.members.filter(t=>k(e,t,s)).length===t.members.length?(S(t,n),!0):(n.push(...s),!1)}(e,t,n):(S(t,n),!0))}function S(e,t){for(;e.parent&&!fC(e);)e=e.parent;t.push(e)}function T(e,t,n,r){y();const i=n&&n.use===gce.FindReferencesUse.Rename?a.getSourceFiles().filter(e=>!a.isSourceFileDefaultLibrary(e)):a.getSourceFiles();return gce.findReferenceOrRenameEntries(a,_,i,e,t,n,r)}const C=new Map(Object.entries({19:20,21:22,23:24,32:30}));function w(t){return un.assertEqual(t.type,"install package"),e.installPackage?e.installPackage({fileName:(n=t.file,Uo(n,u,m)),packageName:t.packageName}):Promise.reject("Host does not implement `installPackage`");var n}function N(e,t){return{lineStarts:e.getLineStarts(),firstLine:e.getLineAndCharacterOfPosition(t.pos).line,lastLine:e.getLineAndCharacterOfPosition(t.end).line}}function D(e,t,n){const r=o.getCurrentSourceFile(e),i=[],{lineStarts:a,firstLine:s,lastLine:c}=N(r,t);let l=n||!1,_=Number.MAX_VALUE;const u=new Map,d=new RegExp(/\S/),p=sQ(r,a[s]),f=p?"{/*":"//";for(let e=s;e<=c;e++){const t=r.text.substring(a[e],r.getLineEndOfPosition(a[e])),i=d.exec(t);i&&(_=Math.min(_,i.index),u.set(e.toString(),i.index),t.substr(i.index,f.length)!==f&&(l=void 0===n||n))}for(let n=s;n<=c;n++){if(s!==c&&a[n]===t.end)continue;const o=u.get(n.toString());void 0!==o&&(p?i.push(...F(e,{pos:a[n]+_,end:r.getLineEndOfPosition(a[n])},l,p)):l?i.push({newText:f,span:{length:0,start:a[n]+_}}):r.text.substr(a[n]+o,f.length)===f&&i.push({newText:"",span:{length:f.length,start:a[n]+o}}))}return i}function F(e,t,n,r){var i;const a=o.getCurrentSourceFile(e),s=[],{text:c}=a;let l=!1,_=n||!1;const u=[];let{pos:d}=t;const p=void 0!==r?r:sQ(a,d),f=p?"{/*":"/*",m=p?"*/}":"*/",g=p?"\\{\\/\\*":"\\/\\*",h=p?"\\*\\/\\}":"\\*\\/";for(;d<=t.end;){const e=dQ(a,d+(c.substr(d,f.length)===f?f.length:0));if(e)p&&(e.pos--,e.end++),u.push(e.pos),3===e.kind&&u.push(e.end),l=!0,d=e.end+1;else{const e=c.substring(d,t.end).search(`(${g})|(${h})`);_=void 0!==n?n:_||!hY(c,d,-1===e?t.end:d+e),d=-1===e?t.end+1:d+e+m.length}}if(_||!l){2!==(null==(i=dQ(a,t.pos))?void 0:i.kind)&&Z(u,t.pos,vt),Z(u,t.end,vt);const e=u[0];c.substr(e,f.length)!==f&&s.push({newText:f,span:{length:0,start:e}});for(let e=1;e0?e-m.length:0,n=c.substr(t,m.length)===m?m.length:0;s.push({newText:"",span:{length:f.length,start:e-n}})}return s}function P({openingElement:e,closingElement:t,parent:n}){return!xO(e.tagName,t.tagName)||zE(n)&&xO(e.tagName,n.openingElement.tagName)&&P(n)}function A({closingFragment:e,parent:t}){return!!(262144&e.flags)||WE(t)&&A(t)}function I(t,n,r,i,o,a){const[s,c]="number"==typeof n?[n,void 0]:[n.pos,n.end];return{file:t,startPosition:s,endPosition:c,program:v(),host:e,formatContext:ude.getFormatContext(i,e),cancellationToken:_,preferences:r,triggerReason:o,kind:a}}C.forEach((e,t)=>C.set(e.toString(),Number(t)));const L={dispose:function(){b(),e=void 0},cleanupSemanticCache:b,getSyntacticDiagnostics:function(e){return y(),a.getSyntacticDiagnostics(h(e),_).slice()},getSemanticDiagnostics:function(e){y();const t=h(e),n=a.getSemanticDiagnostics(t,_);if(!Dk(a.getCompilerOptions()))return n.slice();const r=a.getDeclarationDiagnostics(t,_);return[...n,...r]},getRegionSemanticDiagnostics:function(e,t){y();const n=h(e),r=a.getCompilerOptions();if(_T(n,r,a)||!pT(n,r)||a.getCachedSemanticDiagnostics(n))return;const i=function(e,t){const n=[],r=Vs(t.map(e=>AQ(e)));for(const t of r){const r=x(e,t);if(!r)return;n.push(...r)}if(n.length)return n}(n,t);if(!i)return;const o=Vs(i.map(e=>$s(e.getFullStart(),e.getEnd())));return{diagnostics:a.getSemanticDiagnostics(n,_,i).slice(),spans:o}},getSuggestionDiagnostics:function(e){return y(),S1(h(e),a,_)},getCompilerOptionsDiagnostics:function(){return y(),[...a.getOptionsDiagnostics(_),...a.getGlobalDiagnostics(_)]},getSyntacticClassifications:function(e,t){return E0(_,o.getCurrentSourceFile(e),t)},getSemanticClassifications:function(e,t,n){return y(),"2020"===(n||"original")?p8(a,_,h(e),t):T0(a.getTypeChecker(),_,h(e),a.getClassifiableNames(),t)},getEncodedSyntacticClassifications:function(e,t){return P0(_,o.getCurrentSourceFile(e),t)},getEncodedSemanticClassifications:function(e,t,n){return y(),"original"===(n||"original")?w0(a.getTypeChecker(),_,h(e),a.getClassifiableNames(),t):f8(a,_,h(e),t)},getCompletionsAtPosition:function(t,n,r=kG,i){const o={...r,includeCompletionsForModuleExports:r.includeCompletionsForModuleExports||r.includeExternalModuleExports,includeCompletionsWithInsertText:r.includeCompletionsWithInsertText||r.includeInsertTextCompletions};return y(),mae.getCompletionsAtPosition(e,a,p,h(t),n,o,r.triggerCharacter,r.triggerKind,_,i&&ude.getFormatContext(i,e),r.includeSymbol)},getCompletionEntryDetails:function(t,n,r,i,o,s=kG,c){return y(),mae.getCompletionEntryDetails(a,p,h(t),n,{name:r,source:o,data:c},e,i&&ude.getFormatContext(i,e),s,_)},getCompletionEntrySymbol:function(t,n,r,i,o=kG){return y(),mae.getCompletionEntrySymbol(a,p,h(t),n,{name:r,source:i},e,o)},getSignatureHelpItems:function(e,t,{triggerReason:n}=kG){y();const r=h(e);return W_e.getSignatureHelpItems(a,r,t,n,_)},getQuickInfoAtPosition:function(e,t,n,r){y();const i=h(e),o=WX(i,t);if(o===i)return;const s=a.getTypeChecker(),c=function(e){return mF(e.parent)&&e.pos===e.parent.pos?e.parent.expression:WD(e.parent)&&e.pos===e.parent.pos||uf(e.parent)&&e.parent.name===e||YE(e.parent)?e.parent:e}(o),l=function(e,t){const n=Y8(e);if(n){const e=t.getContextualType(n.parent),r=e&&Z8(n,t,e,!1);if(r&&1===r.length)return ge(r)}return t.getSymbolAtLocation(e)}(c,s);if(!l||s.isUnknownSymbol(l)){const e=function(e,t,n){switch(t.kind){case 80:return!(16777216&t.flags&&!Em(t)&&(172===t.parent.kind&&t.parent.name===t||uc(t,e=>170===e.kind))||cX(t)||lX(t)||kl(t.parent));case 212:case 167:return!dQ(e,n);case 110:case 198:case 108:case 203:return!0;case 237:return uf(t);default:return!1}}(i,c,t)?s.getTypeAtLocation(c):void 0;return e&&{kind:"",kindModifiers:"",textSpan:FQ(c,i),displayParts:s.runWithCancellationToken(_,t=>zY(t,e,hX(c),void 0,r)),documentation:e.symbol?e.symbol.getDocumentationComment(s):void 0,tags:e.symbol?e.symbol.getJsDocTags(s):void 0}}const{symbolKind:u,displayParts:d,documentation:p,tags:f,canIncreaseVerbosityLevel:m}=s.runWithCancellationToken(_,e=>Nue.getSymbolDisplayPartsDocumentationAndSymbolKind(e,l,i,hX(c),c,void 0,void 0,n??$u,r));return{kind:u,kindModifiers:Nue.getSymbolModifiers(s,l),textSpan:FQ(c,i),displayParts:d,documentation:p,tags:f,canIncreaseVerbosityLevel:m}},getDefinitionAtPosition:function(e,t,n,r){return y(),rle.getDefinitionAtPosition(a,h(e),t,n,r)},getDefinitionAndBoundSpan:function(e,t){return y(),rle.getDefinitionAndBoundSpan(a,h(e),t)},getImplementationAtPosition:function(e,t){return y(),gce.getImplementationsAtPosition(a,_,a.getSourceFiles(),h(e),t)},getTypeDefinitionAtPosition:function(e,t){return y(),rle.getTypeDefinitionAtPosition(a.getTypeChecker(),h(e),t)},getReferencesAtPosition:function(e,t){return y(),T(WX(h(e),t),t,{use:gce.FindReferencesUse.References},gce.toReferenceEntry)},findReferences:function(e,t){return y(),gce.findReferencedSymbols(a,_,a.getSourceFiles(),h(e),t)},getFileReferences:function(e){return y(),gce.Core.getReferencesForFileName(e,a,a.getSourceFiles()).map(gce.toReferenceEntry)},getDocumentHighlights:function(e,t,n){const r=Jo(e);un.assert(n.some(e=>Jo(e)===r)),y();const i=B(n,e=>a.getSourceFile(e)),o=h(e);return y0.getDocumentHighlights(a,_,o,t,i)},getNameOrDottedNameSpan:function(e,t,n){const r=o.getCurrentSourceFile(e),i=WX(r,t);if(i===r)return;switch(i.kind){case 212:case 167:case 11:case 97:case 112:case 106:case 108:case 110:case 198:case 80:break;default:return}let a=i;for(;;)if(uX(a)||_X(a))a=a.parent;else{if(!pX(a))break;if(268!==a.parent.parent.kind||a.parent.parent.body!==a.parent)break;a=a.parent.parent.name}return $s(a.getStart(),i.getEnd())},getBreakpointStatementAtPosition:function(e,t){const n=o.getCurrentSourceFile(e);return n7.spanInSourceFileAtLocation(n,t)},getNavigateToItems:function(e,t,n,r=!1,i=!1){return y(),W1(n?[h(n)]:a.getSourceFiles(),a.getTypeChecker(),_,e,t,r,i)},getRenameInfo:function(e,t,n){return y(),R_e.getRenameInfo(a,h(e),t,n||{})},getSmartSelectionRange:function(e,t){return gue.getSmartSelectionRange(t,o.getCurrentSourceFile(e))},findRenameLocations:function(e,t,n,r,i){y();const o=h(e),a=VX(WX(o,t));if(R_e.nodeIsEligibleForRename(a)){if(aD(a)&&(UE(a.parent)||VE(a.parent))&&Ey(a.escapedText)){const{openingElement:e,closingElement:t}=a.parent.parent;return[e,t].map(e=>{const t=FQ(e.tagName,o);return{fileName:o.fileName,textSpan:t,...gce.toContextSpan(t,o,e.parent)}})}{const e=tY(o,i??kG),s="boolean"==typeof i?i:null==i?void 0:i.providePrefixAndSuffixTextForRename;return T(a,t,{findInStrings:n,findInComments:r,providePrefixAndSuffixTextForRename:s,use:gce.FindReferencesUse.Rename},(t,n,r)=>gce.toRenameLocation(t,n,r,s||!1,e))}}},getNavigationBarItems:function(e){return u2(o.getCurrentSourceFile(e),_)},getNavigationTree:function(e){return d2(o.getCurrentSourceFile(e),_)},getOutliningSpans:function(e){const t=o.getCurrentSourceFile(e);return F_e.collectElements(t,_)},getTodoComments:function(e,t){y();const n=h(e);_.throwIfCancellationRequested();const r=n.text,i=[];if(t.length>0&&!n.fileName.includes("/node_modules/")){const e=function(){const e="("+/(?:^(?:\s|\*)*)/.source+"|"+/(?:\/{2,}\s*)/.source+"|"+/(?:\/\*+\s*)/.source+")",n="(?:"+E(t,e=>"("+e.text.replace(/[-[\]/{}()*+?.\\^$|]/g,"\\$&")+")").join("|")+")";return new RegExp(e+"("+n+/(?:.*?)/.source+")"+/(?:$|\*\/)/.source,"gim")}();let a;for(;a=e.exec(r);){_.throwIfCancellationRequested();const e=3;un.assert(a.length===t.length+e);const s=a[1],c=a.index+s.length;if(!dQ(n,c))continue;let l;for(let n=0;n=97&&e<=122||e>=65&&e<=90||e>=48&&e<=57}},getBraceMatchingAtPosition:function(e,t){const n=o.getCurrentSourceFile(e),r=$X(n,t),i=r.getStart(n)===t?C.get(r.kind.toString()):void 0,a=i&&OX(r.parent,i,n);return a?[FQ(r,n),FQ(a,n)].sort((e,t)=>e.start-t.start):l},getIndentationAtPosition:function(e,t,n){let r=Un();const i=j8(n),a=o.getCurrentSourceFile(e);p("getIndentationAtPosition: getCurrentSourceFile: "+(Un()-r)),r=Un();const s=ude.SmartIndenter.getIndentation(t,a,i);return p("getIndentationAtPosition: computeIndentation : "+(Un()-r)),s},getFormattingEditsForRange:function(t,n,r,i){const a=o.getCurrentSourceFile(t);return ude.formatSelection(n,r,a,ude.getFormatContext(j8(i),e))},getFormattingEditsForDocument:function(t,n){return ude.formatDocument(o.getCurrentSourceFile(t),ude.getFormatContext(j8(n),e))},getFormattingEditsAfterKeystroke:function(t,n,r,i){const a=o.getCurrentSourceFile(t),s=ude.getFormatContext(j8(i),e);if(!dQ(a,n))switch(r){case"{":return ude.formatOnOpeningCurly(n,a,s);case"}":return ude.formatOnClosingCurly(n,a,s);case";":return ude.formatOnSemicolon(n,a,s);case"\n":return ude.formatOnEnter(n,a,s)}return[]},getDocCommentTemplateAtPosition:function(t,n,r,i){const a=i?ude.getFormatContext(i,e).options:void 0;return wle.getDocCommentTemplateAtPosition(RY(e,a),o.getCurrentSourceFile(t),n,r)},isValidBraceCompletionAtPosition:function(e,t,n){if(60===n)return!1;const r=o.getCurrentSourceFile(e);if(nQ(r,t))return!1;if(rQ(r,t))return 123===n;if(oQ(r,t))return!1;switch(n){case 39:case 34:case 96:return!dQ(r,t)}return!0},getJsxClosingTagAtPosition:function(e,t){const n=o.getCurrentSourceFile(e),r=YX(t,n);if(!r)return;const i=32===r.kind&&UE(r.parent)?r.parent.parent:VN(r)&&zE(r.parent)?r.parent:void 0;if(i&&P(i))return{newText:``};const a=32===r.kind&&$E(r.parent)?r.parent.parent:VN(r)&&WE(r.parent)?r.parent:void 0;return a&&A(a)?{newText:""}:void 0},getLinkedEditingRangeAtPosition:function(e,t){const n=o.getCurrentSourceFile(e),r=YX(t,n);if(!r||308===r.parent.kind)return;const i="[a-zA-Z0-9:\\-\\._$]*";if(WE(r.parent.parent)){const e=r.parent.parent.openingFragment,o=r.parent.parent.closingFragment;if(yd(e)||yd(o))return;const a=e.getStart(n)+1,s=o.getStart(n)+2;if(t!==a&&t!==s)return;return{ranges:[{start:a,length:0},{start:s,length:0}],wordPattern:i}}{const e=uc(r.parent,e=>!(!UE(e)&&!VE(e)));if(!e)return;un.assert(UE(e)||VE(e),"tag should be opening or closing element");const o=e.parent.openingElement,a=e.parent.closingElement,s=o.tagName.getStart(n),c=o.tagName.end,l=a.tagName.getStart(n),_=a.tagName.end;if(s===o.getStart(n)||l===a.getStart(n)||c===o.getEnd()||_===a.getEnd())return;if(!(s<=t&&t<=c||l<=t&&t<=_))return;if(o.tagName.getText(n)!==a.tagName.getText(n))return;return{ranges:[{start:s,length:c-s},{start:l,length:_-l}],wordPattern:i}}},getSpanOfEnclosingComment:function(e,t,n){const r=o.getCurrentSourceFile(e),i=ude.getRangeOfEnclosingComment(r,t);return!i||n&&3!==i.kind?void 0:AQ(i)},getCodeFixesAtPosition:function(t,n,r,i,o,s=kG){y();const c=h(t),l=$s(n,r),u=ude.getFormatContext(o,e);return O(Q(i,mt,vt),t=>(_.throwIfCancellationRequested(),T7.getFixes({errorCode:t,sourceFile:c,span:l,program:a,host:e,cancellationToken:_,formatContext:u,preferences:s})))},getCombinedCodeFix:function(t,n,r,i=kG){y(),un.assert("file"===t.type);const o=h(t.fileName),s=ude.getFormatContext(r,e);return T7.getAllFixes({fixId:n,sourceFile:o,program:a,host:e,cancellationToken:_,formatContext:s,preferences:i})},applyCodeActionCommand:function(e,t){const n="string"==typeof e?t:e;return Qe(n)?Promise.all(n.map(e=>w(e))):w(n)},organizeImports:function(t,n,r=kG){y(),un.assert("file"===t.type);const i=h(t.fileName);if(yd(i))return l;const o=ude.getFormatContext(n,e),s=t.mode??(t.skipDestructiveCodeActions?"SortAndCombine":"All");return Yle.organizeImports(i,o,e,a,r,s)},getEditsForFileRename:function(t,n,r,i=kG){return M0(v(),t,n,e,ude.getFormatContext(r,e),i,g)},getEmitOutput:function(t,n,r){y();const i=h(t),o=e.getCustomTransformers&&e.getCustomTransformers();return GV(a,i,!!n,_,o,r)},getNonBoundSourceFile:function(e){return o.getCurrentSourceFile(e)},getProgram:v,getCurrentProgram:()=>a,getAutoImportProvider:function(){var t;return null==(t=e.getPackageJsonAutoImportProvider)?void 0:t.call(e)},updateIsDefinitionOfReferencedSymbols:function(t,n){const r=a.getTypeChecker(),i=function(){for(const i of t)for(const t of i.references){if(n.has(t)){const e=o(t);return un.assertIsDefined(e),r.getSymbolAtLocation(e)}const i=vY(t,g,We(e,e.fileExists));if(i&&n.has(i)){const e=o(i);if(e)return r.getSymbolAtLocation(e)}}}();if(!i)return!1;for(const r of t)for(const t of r.references){const r=o(t);if(un.assertIsDefined(r),n.has(t)||gce.isDeclarationOfSymbol(r,i)){n.add(t),t.isDefinition=!0;const r=vY(t,g,We(e,e.fileExists));r&&n.add(r)}else t.isDefinition=!1}return!0;function o(e){const t=a.getSourceFile(e.fileName);if(!t)return;const n=WX(t,e.textSpan.start);return gce.Core.getAdjustedNode(n,{use:gce.FindReferencesUse.References})}},getApplicableRefactors:function(e,t,n=kG,r,i,o){y();const a=h(e);return Q2.getApplicableRefactors(I(a,t,n,kG,r,i),o)},getEditsForRefactor:function(e,t,n,r,i,o=kG,a){y();const s=h(e);return Q2.getEditsForRefactor(I(s,n,o,t),r,i,a)},getMoveToRefactoringFileSuggestions:function(t,n,r=kG){y();const i=h(t),o=un.checkDefined(a.getSourceFiles()),s=ZS(t),c=K6(I(i,n,r,kG)),l=G6(null==c?void 0:c.all),_=B(o,e=>{const t=ZS(e.fileName);return(null==a?void 0:a.isSourceFileFromExternalLibrary(i))||i===h(e.fileName)||".ts"===s&&".d.ts"===t||".d.ts"===s&&Gt(Fo(e.fileName),"lib.")&&".d.ts"===t||s!==t&&(!(".tsx"===s&&".ts"===t||".jsx"===s&&".js"===t)||l)?void 0:e.fileName});return{newFileName:H6(i,a,e,c),files:_}},toLineColumnOffset:function(e,t){return 0===t?{line:0,character:0}:g.toLineColumnOffset(e,t)},getSourceMapper:()=>g,clearSourceMapperCache:()=>g.clearCache(),prepareCallHierarchy:function(e,t){y();const n=i7.resolveCallHierarchyDeclaration(a,WX(h(e),t));return n&&RZ(n,e=>i7.createCallHierarchyItem(a,e))},provideCallHierarchyIncomingCalls:function(e,t){y();const n=h(e),r=BZ(i7.resolveCallHierarchyDeclaration(a,0===t?n:WX(n,t)));return r?i7.getIncomingCalls(a,r,_):[]},provideCallHierarchyOutgoingCalls:function(e,t){y();const n=h(e),r=BZ(i7.resolveCallHierarchyDeclaration(a,0===t?n:WX(n,t)));return r?i7.getOutgoingCalls(a,r):[]},toggleLineComment:D,toggleMultilineComment:F,commentSelection:function(e,t){const n=o.getCurrentSourceFile(e),{firstLine:r,lastLine:i}=N(n,t);return r===i&&t.pos!==t.end?F(e,t,!0):D(e,t,!0)},uncommentSelection:function(e,t){const n=o.getCurrentSourceFile(e),r=[],{pos:i}=t;let{end:a}=t;i===a&&(a+=sQ(n,i)?2:1);for(let t=i;t<=a;t++){const i=dQ(n,t);if(i){switch(i.kind){case 2:r.push(...D(e,{end:i.end,pos:i.pos+1},!1));break;case 3:r.push(...F(e,{end:i.end,pos:i.pos+1},!1))}t=i.end+1}}return r},provideInlayHints:function(t,n,r=kG){y();const i=h(t);return xle.provideInlayHints(function(t,n,r){return{file:t,program:v(),host:e,span:n,preferences:r,cancellationToken:_}}(i,n,r))},getSupportedCodeFixes:J8,preparePasteEditsForFile:function(e,t){return y(),_fe.preparePasteEdits(h(e),t,a.getTypeChecker())},getPasteEdits:function(t,n){return y(),dfe.pasteEditsProvider(h(t.targetFile),t.pastedText,t.pasteLocations,t.copiedFrom?{file:h(t.copiedFrom.file),range:t.copiedFrom.range}:void 0,e,t.preferences,ude.getFormatContext(n,e),_)},mapCode:function(t,n,r,i,a){return $le.mapCode(o.getCurrentSourceFile(t),n,r,e,ude.getFormatContext(i,e),a)}};switch(i){case 0:break;case 1:K8.forEach(e=>L[e]=()=>{throw new Error(`LanguageService Operation: ${e} not allowed in LanguageServiceMode.PartialSemantic`)});break;case 2:G8.forEach(e=>L[e]=()=>{throw new Error(`LanguageService Operation: ${e} not allowed in LanguageServiceMode.Syntactic`)});break;default:un.assertNever(i)}return L}function Q8(e){return e.nameTable||function(e){const t=e.nameTable=new Map;e.forEachChild(function e(n){if(aD(n)&&!lX(n)&&n.escapedText||jh(n)&&function(e){return lh(e)||284===e.parent.kind||function(e){return e&&e.parent&&213===e.parent.kind&&e.parent.argumentExpression===e}(e)||uh(e)}(n)){const e=Uh(n);t.set(e,void 0===t.get(e)?n.pos:-1)}else if(sD(n)){const e=n.escapedText;t.set(e,void 0===t.get(e)?n.pos:-1)}if(XI(n,e),Du(n))for(const t of n.jsDoc)XI(t,e)})}(e),e.nameTable}function Y8(e){const t=function(e){switch(e.kind){case 11:case 15:case 9:if(168===e.parent.kind)return Au(e.parent.parent)?e.parent.parent:void 0;case 80:case 296:return!Au(e.parent)||211!==e.parent.parent.kind&&293!==e.parent.parent.kind||e.parent.name!==e?void 0:e.parent}}(e);return t&&(uF(t.parent)||GE(t.parent))?t:void 0}function Z8(e,t,n,r){const i=VQ(e.name);if(!i)return l;if(!n.isUnion()){const e=n.getProperty(i);return e?[e]:l}const o=uF(e.parent)||GE(e.parent)?N(n.types,n=>!t.isTypeInvalidDueToUnionDiscriminant(n,e.parent)):n.types,a=B(o,e=>e.getProperty(i));if(r&&(0===a.length||a.length===n.types.length)){const e=n.getProperty(i);if(e)return[e]}return o.length||a.length?Q(a,mt):B(n.types,e=>e.getProperty(i))}function e7(e){if(so)return jo(Do(Jo(so.getExecutingFilePath())),Ds(e));throw new Error("getDefaultLibFilePath is only supported when consumed as a node module. ")}function t7(e,t,n){const r=[];n=U1(n,r);const i=Qe(e)?e:[e],o=Vq(void 0,void 0,mw,n,i,t,!0);return o.diagnostics=K(o.diagnostics,r),o}Jx({getNodeConstructor:()=>x8,getTokenConstructor:()=>C8,getIdentifierConstructor:()=>w8,getPrivateIdentifierConstructor:()=>N8,getSourceFileConstructor:()=>O8,getSymbolConstructor:()=>T8,getTypeConstructor:()=>D8,getSignatureConstructor:()=>F8,getSourceMapSourceConstructor:()=>L8});var n7={};function r7(e,t){if(e.isDeclarationFile)return;let n=HX(e,t);const r=e.getLineAndCharacterOfPosition(t).line;if(e.getLineAndCharacterOfPosition(n.getStart(e)).line>r){const t=YX(n.pos,e);if(!t||e.getLineAndCharacterOfPosition(t.getEnd()).line!==r)return;n=t}if(!(33554432&n.flags))return l(n);function i(t,n){const r=SI(t)?x(t.modifiers,CD):void 0;return $s(r?Qa(e.text,r.end):t.getStart(e),(n||t).getEnd())}function o(t,n){return i(t,QX(n,n.parent,e))}function a(t,n){return t&&r===e.getLineAndCharacterOfPosition(t.getStart(e)).line?l(t):l(n)}function s(t){return l(YX(t.pos,e))}function c(t){return l(QX(t,t.parent,e))}function l(t){if(t){const{parent:_}=t;switch(t.kind){case 244:return u(t.declarationList.declarations[0]);case 261:case 173:case 172:return u(t);case 170:return function e(t){if(k_(t.name))return g(t.name);if(function(e){return!!e.initializer||void 0!==e.dotDotDotToken||Nv(e,3)}(t))return i(t);{const n=t.parent,r=n.parameters.indexOf(t);return un.assert(-1!==r),0!==r?e(n.parameters[r-1]):l(n.body)}}(t);case 263:case 175:case 174:case 178:case 179:case 177:case 219:case 220:return function(e){if(e.body)return p(e)?i(e):l(e.body)}(t);case 242:if(Bf(t))return function(e){const t=e.statements.length?e.statements[0]:e.getLastToken();return p(e.parent)?a(e.parent,t):l(t)}(t);case 269:return f(t);case 300:return f(t.block);case 245:return i(t.expression);case 254:return i(t.getChildAt(0),t.expression);case 248:return o(t,t.expression);case 247:return l(t.statement);case 260:return i(t.getChildAt(0));case 246:return o(t,t.expression);case 257:return l(t.statement);case 253:case 252:return i(t.getChildAt(0),t.label);case 249:return(r=t).initializer?m(r):r.condition?i(r.condition):r.incrementor?i(r.incrementor):void 0;case 250:return o(t,t.expression);case 251:return m(t);case 256:return o(t,t.expression);case 297:case 298:return l(t.statements[0]);case 259:return f(t.tryBlock);case 258:case 278:return i(t,t.expression);case 272:return i(t,t.moduleReference);case 273:case 279:return i(t,t.moduleSpecifier);case 268:if(1!==UR(t))return;case 264:case 267:case 307:case 209:return i(t);case 255:return l(t.statement);case 171:return function(t,n,r){if(t){const i=t.indexOf(n);if(i>=0){let n=i,o=i+1;for(;n>0&&r(t[n-1]);)n--;for(;o0)return l(t.declarations[0])}}function g(e){const t=d(e.elements,e=>233!==e.kind?e:void 0);return t?l(t):209===e.parent.kind?i(e.parent):_(e.parent)}function h(e){un.assert(208!==e.kind&&207!==e.kind);const t=d(210===e.kind?e.elements:e.properties,e=>233!==e.kind?e:void 0);return t?l(t):i(227===e.parent.kind?e.parent:e)}}}i(n7,{spanInSourceFileAtLocation:()=>r7});var i7={};function o7(e){return ND(e)||lE(e)}function a7(e){return(vF(e)||bF(e)||AF(e))&&o7(e.parent)&&e===e.parent.initializer&&aD(e.parent.name)&&(!!(2&ac(e.parent))||ND(e.parent))}function s7(e){return sP(e)||gE(e)||uE(e)||vF(e)||dE(e)||AF(e)||ED(e)||FD(e)||DD(e)||AD(e)||ID(e)}function c7(e){return sP(e)||gE(e)&&aD(e.name)||uE(e)||dE(e)||ED(e)||FD(e)||DD(e)||AD(e)||ID(e)||function(e){return(vF(e)||AF(e))&&Sc(e)}(e)||a7(e)}function l7(e){return sP(e)?e:Sc(e)?e.name:a7(e)?e.parent.name:un.checkDefined(e.modifiers&&b(e.modifiers,_7))}function _7(e){return 90===e.kind}function u7(e,t){const n=l7(t);return n&&e.getSymbolAtLocation(n)}function d7(e,t){if(t.body)return t;if(PD(t))return iv(t.parent);if(uE(t)||FD(t)){const n=u7(e,t);return n&&n.valueDeclaration&&o_(n.valueDeclaration)&&n.valueDeclaration.body?n.valueDeclaration:void 0}return t}function p7(e,t){const n=u7(e,t);let r;if(n&&n.declarations){const e=X(n.declarations),t=E(n.declarations,e=>({file:e.getSourceFile().fileName,pos:e.pos}));e.sort((e,n)=>Ct(t[e].file,t[n].file)||t[e].pos-t[n].pos);const i=E(e,e=>n.declarations[e]);let o;for(const e of i)c7(e)&&(o&&o.parent===e.parent&&o.end===e.pos||(r=ie(r,e)),o=e)}return r}function f7(e,t){return ED(t)?t:o_(t)?d7(e,t)??p7(e,t)??t:p7(e,t)??t}function m7(e,t){const n=e.getTypeChecker();let r=!1;for(;;){if(c7(t))return f7(n,t);if(s7(t)){const e=uc(t,c7);return e&&f7(n,e)}if(lh(t)){if(c7(t.parent))return f7(n,t.parent);if(s7(t.parent)){const e=uc(t.parent,c7);return e&&f7(n,e)}return o7(t.parent)&&t.parent.initializer&&a7(t.parent.initializer)?t.parent.initializer:void 0}if(PD(t))return c7(t.parent)?t.parent:void 0;if(126!==t.kind||!ED(t.parent)){if(lE(t)&&t.initializer&&a7(t.initializer))return t.initializer;if(!r){let e=n.getSymbolAtLocation(t);if(e&&(2097152&e.flags&&(e=n.getAliasedSymbol(e)),e.valueDeclaration)){r=!0,t=e.valueDeclaration;continue}}return}t=t.parent}}function g7(e,t){const n=t.getSourceFile(),r=function(e,t){if(sP(t))return{text:t.fileName,pos:0,end:0};if((uE(t)||dE(t))&&!Sc(t)){const e=t.modifiers&&b(t.modifiers,_7);if(e)return{text:"default",pos:e.getStart(),end:e.getEnd()}}if(ED(t)){const n=Qa(t.getSourceFile().text,jb(t).pos),r=n+6,i=e.getTypeChecker(),o=i.getSymbolAtLocation(t.parent);return{text:(o?`${i.symbolToString(o,t.parent)} `:"")+"static {}",pos:n,end:r}}const n=a7(t)?t.parent.name:un.checkDefined(Cc(t),"Expected call hierarchy item to have a name");let r=aD(n)?gc(n):jh(n)?n.text:kD(n)&&jh(n.expression)?n.expression.text:void 0;if(void 0===r){const i=e.getTypeChecker(),o=i.getSymbolAtLocation(n);o&&(r=i.symbolToString(o,t))}if(void 0===r){const e=xU();r=ad(n=>e.writeNode(4,t,t.getSourceFile(),n))}return{text:r,pos:n.getStart(),end:n.getEnd()}}(e,t),i=function(e){var t,n,r,i;if(a7(e))return ND(e.parent)&&u_(e.parent.parent)?AF(e.parent.parent)?null==(t=wc(e.parent.parent))?void 0:t.getText():null==(n=e.parent.parent.name)?void 0:n.getText():hE(e.parent.parent.parent.parent)&&aD(e.parent.parent.parent.parent.parent.name)?e.parent.parent.parent.parent.parent.name.getText():void 0;switch(e.kind){case 178:case 179:case 175:return 211===e.parent.kind?null==(r=wc(e.parent))?void 0:r.getText():null==(i=Cc(e.parent))?void 0:i.getText();case 263:case 264:case 268:if(hE(e.parent)&&aD(e.parent.parent.name))return e.parent.parent.name.getText()}}(t),o=yX(t),a=mQ(t),s=$s(Qa(n.text,t.getFullStart(),!1,!0),t.getEnd()),c=$s(r.pos,r.end);return{file:n.fileName,kind:o,kindModifiers:a,name:r.text,containerName:i,span:s,selectionSpan:c}}function h7(e){return void 0!==e}function y7(e){if(e.kind===gce.EntryKind.Node){const{node:t}=e;if(GG(t,!0,!0)||XG(t,!0,!0)||QG(t,!0,!0)||YG(t,!0,!0)||uX(t)||dX(t)){const e=t.getSourceFile();return{declaration:uc(t,c7)||e,range:PQ(t,e)}}}}function v7(e){return ZB(e.declaration)}function b7(e,t,n){if(sP(t)||gE(t)||ED(t))return[];const r=l7(t),i=N(gce.findReferenceOrRenameEntries(e,n,e.getSourceFiles(),r,0,{use:gce.FindReferencesUse.References},y7),h7);return i?Je(i,v7,t=>function(e,t){return{from:g7(e,t[0].declaration),fromSpans:E(t,e=>AQ(e.range))}}(e,t)):[]}function x7(e,t){return 33554432&t.flags||DD(t)?[]:Je(function(e,t){const n=[],r=function(e,t){function n(n){const r=gF(n)?n.tag:bu(n)?n.tagName:Sx(n)||ED(n)?n:n.expression,i=m7(e,r);if(i){const e=PQ(r,n.getSourceFile());if(Qe(i))for(const n of i)t.push({declaration:n,range:e});else t.push({declaration:i,range:e})}}return function e(t){if(t&&!(33554432&t.flags))if(c7(t)){if(u_(t))for(const n of t.members)n.name&&kD(n.name)&&e(n.name.expression)}else{switch(t.kind){case 80:case 272:case 273:case 279:case 265:case 266:return;case 176:return void n(t);case 217:case 235:case 239:return void e(t.expression);case 261:case 170:return e(t.name),void e(t.initializer);case 214:case 215:return n(t),e(t.expression),void d(t.arguments,e);case 216:return n(t),e(t.tag),void e(t.template);case 287:case 286:return n(t),e(t.tagName),void e(t.attributes);case 171:return n(t),void e(t.expression);case 212:case 213:n(t),XI(t,e)}wf(t)||XI(t,e)}}}(e,n);switch(t.kind){case 308:!function(e,t){d(e.statements,t)}(t,r);break;case 268:!function(e,t){!Nv(e,128)&&e.body&&hE(e.body)&&d(e.body.statements,t)}(t,r);break;case 263:case 219:case 220:case 175:case 178:case 179:!function(e,t,n){const r=d7(e,t);r&&(d(r.parameters,n),n(r.body))}(e.getTypeChecker(),t,r);break;case 264:case 232:!function(e,t){d(e.modifiers,t);const n=vh(e);n&&t(n.expression);for(const n of e.members)kI(n)&&d(n.modifiers,t),ND(n)?t(n.initializer):PD(n)&&n.body?(d(n.parameters,t),t(n.body)):ED(n)&&t(n)}(t,r);break;case 176:!function(e,t){t(e.body)}(t,r);break;default:un.assertNever(t)}return n}(e,t),v7,t=>function(e,t){return{to:g7(e,t[0].declaration),fromSpans:E(t,e=>AQ(e.range))}}(e,t))}i(i7,{createCallHierarchyItem:()=>g7,getIncomingCalls:()=>b7,getOutgoingCalls:()=>x7,resolveCallHierarchyDeclaration:()=>m7});var k7={};i(k7,{v2020:()=>S7});var S7={};i(S7,{TokenEncodingConsts:()=>_8,TokenModifier:()=>d8,TokenType:()=>u8,getEncodedSemanticClassifications:()=>f8,getSemanticClassifications:()=>p8});var T7={};i(T7,{PreserveOptionalFlags:()=>Oie,addNewNodeForMemberSymbol:()=>Lie,codeFixAll:()=>R7,createCodeFixAction:()=>F7,createCodeFixActionMaybeFixAll:()=>E7,createCodeFixActionWithoutFixAll:()=>D7,createCombinedCodeActions:()=>j7,createFileTextChanges:()=>M7,createImportAdder:()=>lee,createImportSpecifierResolver:()=>uee,createMissingMemberNodes:()=>Aie,createSignatureDeclarationFromCallExpression:()=>Mie,createSignatureDeclarationFromSignature:()=>jie,createStubbedBody:()=>Kie,eachDiagnostic:()=>B7,findAncestorMatchingSpan:()=>noe,generateAccessorFromProperty:()=>roe,getAccessorConvertiblePropertyAtPosition:()=>soe,getAllFixes:()=>L7,getFixes:()=>O7,getImportCompletionAction:()=>dee,getImportKind:()=>Dee,getJSDocTypedefNodes:()=>X9,getNoopSymbolTrackerWithResolver:()=>Iie,getPromoteTypeOnlyCompletionAction:()=>pee,getSupportedErrorCodes:()=>I7,importFixName:()=>aee,importSymbols:()=>toe,parameterShouldGetTypeFromJSDoc:()=>F5,registerCodeFix:()=>A7,setJsonCompilerOptionValue:()=>Xie,setJsonCompilerOptionValues:()=>Gie,tryGetAutoImportableReferenceFromTypeNode:()=>Zie,typeNodeToAutoImportableTypeNode:()=>Jie,typePredicateToAutoImportableTypeNode:()=>qie,typeToAutoImportableTypeNode:()=>Bie,typeToMinimizedReferenceType:()=>zie});var C7,w7=$e(),N7=new Map;function D7(e,t,n){return P7(e,GZ(n),t,void 0,void 0)}function F7(e,t,n,r,i,o){return P7(e,GZ(n),t,r,GZ(i),o)}function E7(e,t,n,r,i,o){return P7(e,GZ(n),t,r,i&&GZ(i),o)}function P7(e,t,n,r,i,o){return{fixName:e,description:t,changes:n,fixId:r,fixAllDescription:i,commands:o?[o]:void 0}}function A7(e){for(const t of e.errorCodes)C7=void 0,w7.add(String(t),e);if(e.fixIds)for(const t of e.fixIds)un.assert(!N7.has(t)),N7.set(t,e)}function I7(){return C7??(C7=Oe(w7.keys()))}function O7(e){const t=J7(e);return O(w7.get(String(e.errorCode)),n=>E(n.getCodeActions(e),function(e,t){const{errorCodes:n}=e;let r=0;for(const e of t)if(T(n,e.code)&&r++,r>1)break;const i=r<2;return({fixId:e,fixAllDescription:t,...n})=>i?n:{...n,fixId:e,fixAllDescription:t}}(n,t)))}function L7(e){return N7.get(nt(e.fixId,Ze)).getAllCodeActions(e)}function j7(e,t){return{changes:e,commands:t}}function M7(e,t){return{fileName:e,textChanges:t}}function R7(e,t,n){const r=[];return j7(jue.ChangeTracker.with(e,i=>B7(e,t,e=>n(i,e,r))),0===r.length?void 0:r)}function B7(e,t,n){for(const r of J7(e))T(t,r.code)&&n(r)}function J7({program:e,sourceFile:t,cancellationToken:n}){const r=[...e.getSemanticDiagnostics(t,n),...e.getSyntacticDiagnostics(t,n),...S1(t,e,n)];return Dk(e.getCompilerOptions())&&r.push(...e.getDeclarationDiagnostics(t,n)),r}var z7="addConvertToUnknownForNonOverlappingTypes",q7=[_a.Conversion_of_type_0_to_type_1_may_be_a_mistake_because_neither_type_sufficiently_overlaps_with_the_other_If_this_was_intentional_convert_the_expression_to_unknown_first.code];function U7(e,t,n){const r=LF(n)?mw.createAsExpression(n.expression,mw.createKeywordTypeNode(159)):mw.createTypeAssertion(mw.createKeywordTypeNode(159),n.expression);e.replaceNode(t,n.expression,r)}function V7(e,t){if(!Em(e))return uc(HX(e,t),e=>LF(e)||hF(e))}A7({errorCodes:q7,getCodeActions:function(e){const t=V7(e.sourceFile,e.span.start);if(void 0===t)return;const n=jue.ChangeTracker.with(e,n=>U7(n,e.sourceFile,t));return[F7(z7,n,_a.Add_unknown_conversion_for_non_overlapping_types,z7,_a.Add_unknown_to_all_conversions_of_non_overlapping_types)]},fixIds:[z7],getAllCodeActions:e=>R7(e,q7,(e,t)=>{const n=V7(t.file,t.start);n&&U7(e,t.file,n)})}),A7({errorCodes:[_a.await_expressions_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_this_file_has_no_imports_or_exports_Consider_adding_an_empty_export_to_make_this_file_a_module.code,_a.await_using_statements_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_this_file_has_no_imports_or_exports_Consider_adding_an_empty_export_to_make_this_file_a_module.code,_a.for_await_loops_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_this_file_has_no_imports_or_exports_Consider_adding_an_empty_export_to_make_this_file_a_module.code],getCodeActions:function(e){const{sourceFile:t}=e;return[D7("addEmptyExportDeclaration",jue.ChangeTracker.with(e,e=>{const n=mw.createExportDeclaration(void 0,!1,mw.createNamedExports([]),void 0);e.insertNodeAtEndOfScope(t,t,n)}),_a.Add_export_to_make_this_file_into_a_module)]}});var W7="addMissingAsync",$7=[_a.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1.code,_a.Type_0_is_not_assignable_to_type_1.code,_a.Type_0_is_not_comparable_to_type_1.code];function H7(e,t,n,r){const i=n(n=>function(e,t,n,r){if(r&&r.has(ZB(n)))return;null==r||r.add(ZB(n));const i=mw.replaceModifiers(RC(n,!0),mw.createNodeArray(mw.createModifiersFromModifierFlags(1024|zv(n))));e.replaceNode(t,n,i)}(n,e.sourceFile,t,r));return F7(W7,i,_a.Add_async_modifier_to_containing_function,W7,_a.Add_all_missing_async_modifiers)}function K7(e,t){if(t)return uc(HX(e,t.start),n=>n.getStart(e)Fs(t)?"quit":(bF(n)||FD(n)||vF(n)||uE(n))&&pY(t,FQ(n,e)))}A7({fixIds:[W7],errorCodes:$7,getCodeActions:function(e){const{sourceFile:t,errorCode:n,cancellationToken:r,program:i,span:o}=e,a=b(i.getTypeChecker().getDiagnostics(t,r),function(e,t){return({start:n,length:r,relatedInformation:i,code:o})=>et(n)&&et(r)&&pY({start:n,length:r},e)&&o===t&&!!i&&$(i,e=>e.code===_a.Did_you_mean_to_mark_this_function_as_async.code)}(o,n)),s=K7(t,a&&a.relatedInformation&&b(a.relatedInformation,e=>e.code===_a.Did_you_mean_to_mark_this_function_as_async.code));if(s)return[H7(e,s,t=>jue.ChangeTracker.with(e,t))]},getAllCodeActions:e=>{const{sourceFile:t}=e,n=new Set;return R7(e,$7,(r,i)=>{const o=i.relatedInformation&&b(i.relatedInformation,e=>e.code===_a.Did_you_mean_to_mark_this_function_as_async.code),a=K7(t,o);if(a)return H7(e,a,e=>(e(r),[]),n)})}});var G7="addMissingAwait",X7=_a.Property_0_does_not_exist_on_type_1.code,Q7=[_a.This_expression_is_not_callable.code,_a.This_expression_is_not_constructable.code],Y7=[_a.An_arithmetic_operand_must_be_of_type_any_number_bigint_or_an_enum_type.code,_a.The_left_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type.code,_a.The_right_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type.code,_a.Operator_0_cannot_be_applied_to_type_1.code,_a.Operator_0_cannot_be_applied_to_types_1_and_2.code,_a.This_comparison_appears_to_be_unintentional_because_the_types_0_and_1_have_no_overlap.code,_a.This_condition_will_always_return_true_since_this_0_is_always_defined.code,_a.Type_0_is_not_an_array_type.code,_a.Type_0_is_not_an_array_type_or_a_string_type.code,_a.Type_0_can_only_be_iterated_through_when_using_the_downlevelIteration_flag_or_with_a_target_of_es2015_or_higher.code,_a.Type_0_is_not_an_array_type_or_a_string_type_or_does_not_have_a_Symbol_iterator_method_that_returns_an_iterator.code,_a.Type_0_is_not_an_array_type_or_does_not_have_a_Symbol_iterator_method_that_returns_an_iterator.code,_a.Type_0_must_have_a_Symbol_iterator_method_that_returns_an_iterator.code,_a.Type_0_must_have_a_Symbol_asyncIterator_method_that_returns_an_async_iterator.code,_a.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1.code,X7,...Q7];function Z7(e,t,n,r,i){const o=MZ(e,n);return o&&function(e,t,n,r,i){return $(i.getTypeChecker().getDiagnostics(e,r),({start:e,length:r,relatedInformation:i,code:o})=>et(e)&&et(r)&&pY({start:e,length:r},n)&&o===t&&!!i&&$(i,e=>e.code===_a.Did_you_forget_to_use_await.code))}(e,t,n,r,i)&&r5(o)?o:void 0}function e5(e,t,n,r,i,o){const{sourceFile:a,program:s,cancellationToken:c}=e,l=function(e,t,n,r,i){const o=function(e,t){if(dF(e.parent)&&aD(e.parent.expression))return{identifiers:[e.parent.expression],isCompleteFix:!0};if(aD(e))return{identifiers:[e],isCompleteFix:!0};if(NF(e)){let n,r=!0;for(const i of[e.left,e.right]){const e=t.getTypeAtLocation(i);if(t.getPromisedTypeOfPromise(e)){if(!aD(i)){r=!1;continue}(n||(n=[])).push(i)}}return n&&{identifiers:n,isCompleteFix:r}}}(e,i);if(!o)return;let a,s=o.isCompleteFix;for(const e of o.identifiers){const o=i.getSymbolAtLocation(e);if(!o)continue;const c=tt(o.valueDeclaration,lE),l=c&&tt(c.name,aD),_=Th(c,244);if(!c||!_||c.type||!c.initializer||_.getSourceFile()!==t||Nv(_,32)||!l||!r5(c.initializer)){s=!1;continue}const u=r.getSemanticDiagnostics(t,n);gce.Core.eachSymbolReferenceInFile(l,i,t,n=>e!==n&&!n5(n,u,t,i))?s=!1:(a||(a=[])).push({expression:c.initializer,declarationSymbol:o})}return a&&{initializers:a,needsSecondPassForFixAll:!s}}(t,a,c,s,r);if(l)return D7("addMissingAwaitToInitializer",i(e=>{d(l.initializers,({expression:t})=>i5(e,n,a,r,t,o)),o&&l.needsSecondPassForFixAll&&i5(e,n,a,r,t,o)}),1===l.initializers.length?[_a.Add_await_to_initializer_for_0,l.initializers[0].declarationSymbol.name]:_a.Add_await_to_initializers)}function t5(e,t,n,r,i,o){const a=i(i=>i5(i,n,e.sourceFile,r,t,o));return F7(G7,a,_a.Add_await,G7,_a.Fix_all_expressions_possibly_missing_await)}function n5(e,t,n,r){const i=dF(e.parent)?e.parent.name:NF(e.parent)?e.parent:e,o=b(t,e=>e.start===i.getStart(n)&&e.start+e.length===i.getEnd());return o&&T(Y7,o.code)||1&r.getTypeAtLocation(i).flags}function r5(e){return 65536&e.flags||!!uc(e,e=>e.parent&&bF(e.parent)&&e.parent.body===e||VF(e)&&(263===e.parent.kind||219===e.parent.kind||220===e.parent.kind||175===e.parent.kind))}function i5(e,t,n,r,i,o){if(ZF(i.parent)&&!i.parent.awaitModifier){const t=r.getTypeAtLocation(i),o=r.getAnyAsyncIterableType();if(o&&r.isTypeAssignableTo(t,o)){const t=i.parent;return void e.replaceNode(n,t,mw.updateForOfStatement(t,mw.createToken(135),t.initializer,t.expression,t.statement))}}if(NF(i))for(const t of[i.left,i.right]){if(o&&aD(t)){const e=r.getSymbolAtLocation(t);if(e&&o.has(eJ(e)))continue}const i=r.getTypeAtLocation(t),a=r.getPromisedTypeOfPromise(i)?mw.createAwaitExpression(t):t;e.replaceNode(n,t,a)}else if(t===X7&&dF(i.parent)){if(o&&aD(i.parent.expression)){const e=r.getSymbolAtLocation(i.parent.expression);if(e&&o.has(eJ(e)))return}e.replaceNode(n,i.parent.expression,mw.createParenthesizedExpression(mw.createAwaitExpression(i.parent.expression))),o5(e,i.parent.expression,n)}else if(T(Q7,t)&&j_(i.parent)){if(o&&aD(i)){const e=r.getSymbolAtLocation(i);if(e&&o.has(eJ(e)))return}e.replaceNode(n,i,mw.createParenthesizedExpression(mw.createAwaitExpression(i))),o5(e,i,n)}else{if(o&&lE(i.parent)&&aD(i.parent.name)){const e=r.getSymbolAtLocation(i.parent.name);if(e&&!q(o,eJ(e)))return}e.replaceNode(n,i,mw.createAwaitExpression(i))}}function o5(e,t,n){const r=YX(t.pos,n);r&&vZ(r.end,r.parent,n)&&e.insertText(n,t.getStart(n),";")}A7({fixIds:[G7],errorCodes:Y7,getCodeActions:function(e){const{sourceFile:t,errorCode:n,span:r,cancellationToken:i,program:o}=e,a=Z7(t,n,r,i,o);if(!a)return;const s=e.program.getTypeChecker(),c=t=>jue.ChangeTracker.with(e,t);return ne([e5(e,a,n,s,c),t5(e,a,n,s,c)])},getAllCodeActions:e=>{const{sourceFile:t,program:n,cancellationToken:r}=e,i=e.program.getTypeChecker(),o=new Set;return R7(e,Y7,(a,s)=>{const c=Z7(t,s.code,s,r,n);if(!c)return;const l=e=>(e(a),[]);return e5(e,c,s.code,i,l,o)||t5(e,c,s.code,i,l,o)})}});var a5="addMissingConst",s5=[_a.Cannot_find_name_0.code,_a.No_value_exists_in_scope_for_the_shorthand_property_0_Either_declare_one_or_provide_an_initializer.code];function c5(e,t,n,r,i){const o=HX(t,n),a=uc(o,e=>Q_(e.parent)?e.parent.initializer===e:!function(e){switch(e.kind){case 80:case 210:case 211:case 304:case 305:return!0;default:return!1}}(e)&&"quit");if(a)return l5(e,a,t,i);const s=o.parent;if(NF(s)&&64===s.operatorToken.kind&&HF(s.parent))return l5(e,o,t,i);if(_F(s)){const n=r.getTypeChecker();if(!v(s.elements,e=>function(e,t){const n=aD(e)?e:rb(e,!0)&&aD(e.left)?e.left:void 0;return!!n&&!t.getSymbolAtLocation(n)}(e,n)))return;return l5(e,s,t,i)}const c=uc(o,e=>!!HF(e.parent)||!function(e){switch(e.kind){case 80:case 227:case 28:return!0;default:return!1}}(e)&&"quit");if(c){if(!_5(c,r.getTypeChecker()))return;return l5(e,c,t,i)}}function l5(e,t,n,r){r&&!q(r,t)||e.insertModifierBefore(n,87,t)}function _5(e,t){return!!NF(e)&&(28===e.operatorToken.kind?v([e.left,e.right],e=>_5(e,t)):64===e.operatorToken.kind&&aD(e.left)&&!t.getSymbolAtLocation(e.left))}A7({errorCodes:s5,getCodeActions:function(e){const t=jue.ChangeTracker.with(e,t=>c5(t,e.sourceFile,e.span.start,e.program));if(t.length>0)return[F7(a5,t,_a.Add_const_to_unresolved_variable,a5,_a.Add_const_to_all_unresolved_variables)]},fixIds:[a5],getAllCodeActions:e=>{const t=new Set;return R7(e,s5,(n,r)=>c5(n,r.file,r.start,e.program,t))}});var u5="addMissingDeclareProperty",d5=[_a.Property_0_will_overwrite_the_base_property_in_1_If_this_is_intentional_add_an_initializer_Otherwise_add_a_declare_modifier_or_remove_the_redundant_declaration.code];function p5(e,t,n,r){const i=HX(t,n);if(!aD(i))return;const o=i.parent;173!==o.kind||r&&!q(r,o)||e.insertModifierBefore(t,138,o)}A7({errorCodes:d5,getCodeActions:function(e){const t=jue.ChangeTracker.with(e,t=>p5(t,e.sourceFile,e.span.start));if(t.length>0)return[F7(u5,t,_a.Prefix_with_declare,u5,_a.Prefix_all_incorrect_property_declarations_with_declare)]},fixIds:[u5],getAllCodeActions:e=>{const t=new Set;return R7(e,d5,(e,n)=>p5(e,n.file,n.start,t))}});var f5="addMissingInvocationForDecorator",m5=[_a._0_accepts_too_few_arguments_to_be_used_as_a_decorator_here_Did_you_mean_to_call_it_first_and_write_0.code];function g5(e,t,n){const r=uc(HX(t,n),CD);un.assert(!!r,"Expected position to be owned by a decorator.");const i=mw.createCallExpression(r.expression,void 0,void 0);e.replaceNode(t,r.expression,i)}A7({errorCodes:m5,getCodeActions:function(e){const t=jue.ChangeTracker.with(e,t=>g5(t,e.sourceFile,e.span.start));return[F7(f5,t,_a.Call_decorator_expression,f5,_a.Add_to_all_uncalled_decorators)]},fixIds:[f5],getAllCodeActions:e=>R7(e,m5,(e,t)=>g5(e,t.file,t.start))});var h5="addMissingResolutionModeImportAttribute",y5=[_a.Type_only_import_of_an_ECMAScript_module_from_a_CommonJS_module_must_have_a_resolution_mode_attribute.code,_a.Type_import_of_an_ECMAScript_module_from_a_CommonJS_module_must_have_a_resolution_mode_attribute.code];function v5(e,t,n,r,i,o){var a,s,c;const l=uc(HX(t,n),en(xE,iF));un.assert(!!l,"Expected position to be owned by an ImportDeclaration or ImportType.");const _=0===tY(t,o),u=yg(l),d=!u||(null==(a=MM(u.text,t.fileName,r.getCompilerOptions(),i,r.getModuleResolutionCache(),void 0,99).resolvedModule)?void 0:a.resolvedFileName)===(null==(c=null==(s=r.getResolvedModuleFromModuleSpecifier(u,t))?void 0:s.resolvedModule)?void 0:c.resolvedFileName),p=l.attributes?mw.updateImportAttributes(l.attributes,mw.createNodeArray([...l.attributes.elements,mw.createImportAttribute(mw.createStringLiteral("resolution-mode",_),mw.createStringLiteral(d?"import":"require",_))],l.attributes.elements.hasTrailingComma),l.attributes.multiLine):mw.createImportAttributes(mw.createNodeArray([mw.createImportAttribute(mw.createStringLiteral("resolution-mode",_),mw.createStringLiteral(d?"import":"require",_))]));273===l.kind?e.replaceNode(t,l,mw.updateImportDeclaration(l,l.modifiers,l.importClause,l.moduleSpecifier,p)):e.replaceNode(t,l,mw.updateImportTypeNode(l,l.argument,p,l.qualifier,l.typeArguments))}A7({errorCodes:y5,getCodeActions:function(e){const t=jue.ChangeTracker.with(e,t=>v5(t,e.sourceFile,e.span.start,e.program,e.host,e.preferences));return[F7(h5,t,_a.Add_resolution_mode_import_attribute,h5,_a.Add_resolution_mode_import_attribute_to_all_type_only_imports_that_need_it)]},fixIds:[h5],getAllCodeActions:e=>R7(e,y5,(t,n)=>v5(t,n.file,n.start,e.program,e.host,e.preferences))});var b5="addNameToNamelessParameter",x5=[_a.Parameter_has_a_name_but_no_type_Did_you_mean_0_Colon_1.code];function k5(e,t,n){const r=HX(t,n),i=r.parent;if(!TD(i))return un.fail("Tried to add a parameter name to a non-parameter: "+un.formatSyntaxKind(r.kind));const o=i.parent.parameters.indexOf(i);un.assert(!i.type,"Tried to add a parameter name to a parameter that already had one."),un.assert(o>-1,"Parameter not found in parent parameter list.");let a=i.name.getEnd(),s=mw.createTypeReferenceNode(i.name,void 0),c=S5(t,i);for(;c;)s=mw.createArrayTypeNode(s),a=c.getEnd(),c=S5(t,c);const l=mw.createParameterDeclaration(i.modifiers,i.dotDotDotToken,"arg"+o,i.questionToken,i.dotDotDotToken&&!UD(s)?mw.createArrayTypeNode(s):s,i.initializer);e.replaceRange(t,Ab(i.getStart(t),a),l)}function S5(e,t){const n=QX(t.name,t.parent,e);if(n&&23===n.kind&&cF(n.parent)&&TD(n.parent.parent))return n.parent.parent}A7({errorCodes:x5,getCodeActions:function(e){const t=jue.ChangeTracker.with(e,t=>k5(t,e.sourceFile,e.span.start));return[F7(b5,t,_a.Add_parameter_name,b5,_a.Add_names_to_all_parameters_without_names)]},fixIds:[b5],getAllCodeActions:e=>R7(e,x5,(e,t)=>k5(e,t.file,t.start))});var T5="addOptionalPropertyUndefined";function C5(e,t){var n;if(e){if(NF(e.parent)&&64===e.parent.operatorToken.kind)return{source:e.parent.right,target:e.parent.left};if(lE(e.parent)&&e.parent.initializer)return{source:e.parent.initializer,target:e.parent.name};if(fF(e.parent)){const n=t.getSymbolAtLocation(e.parent.expression);if(!(null==n?void 0:n.valueDeclaration)||!c_(n.valueDeclaration.kind))return;if(!V_(e))return;const r=e.parent.arguments.indexOf(e);if(-1===r)return;const i=n.valueDeclaration.parameters[r].name;if(aD(i))return{source:e,target:i}}else if(rP(e.parent)&&aD(e.parent.name)||iP(e.parent)){const r=C5(e.parent.parent,t);if(!r)return;const i=t.getPropertyOfType(t.getTypeAtLocation(r.target),e.parent.name.text),o=null==(n=null==i?void 0:i.declarations)?void 0:n[0];if(!o)return;return{source:rP(e.parent)?e.parent.initializer:e.parent.name,target:o}}}}A7({errorCodes:[_a.Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_type_of_the_target.code,_a.Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_types_of_the_target_s_properties.code,_a.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_types_of_the_target_s_properties.code],getCodeActions(e){const t=e.program.getTypeChecker(),n=function(e,t,n){var r,i;const o=C5(MZ(e,t),n);if(!o)return l;const{source:a,target:s}=o,c=function(e,t,n){return dF(t)&&!!n.getExactOptionalProperties(n.getTypeAtLocation(t.expression)).length&&n.getTypeAtLocation(e)===n.getUndefinedType()}(a,s,n)?n.getTypeAtLocation(s.expression):n.getTypeAtLocation(s);return(null==(i=null==(r=c.symbol)?void 0:r.declarations)?void 0:i.some(e=>vd(e).fileName.match(/\.d\.ts$/)))?l:n.getExactOptionalProperties(c)}(e.sourceFile,e.span,t);if(!n.length)return;const r=jue.ChangeTracker.with(e,e=>function(e,t){for(const n of t){const t=n.valueDeclaration;if(t&&(wD(t)||ND(t))&&t.type){const n=mw.createUnionTypeNode([...193===t.type.kind?t.type.types:[t.type],mw.createTypeReferenceNode("undefined")]);e.replaceNode(t.getSourceFile(),t.type,n)}}}(e,n));return[D7(T5,r,_a.Add_undefined_to_optional_property_type)]},fixIds:[T5]});var w5="annotateWithTypeFromJSDoc",N5=[_a.JSDoc_types_may_be_moved_to_TypeScript_types.code];function D5(e,t){const n=HX(e,t);return tt(TD(n.parent)?n.parent.parent:n.parent,F5)}function F5(e){return function(e){return o_(e)||261===e.kind||172===e.kind||173===e.kind}(e)&&E5(e)}function E5(e){return o_(e)?e.parameters.some(E5)||!e.type&&!!rl(e):!e.type&&!!nl(e)}function P5(e,t,n){if(o_(n)&&(rl(n)||n.parameters.some(e=>!!nl(e)))){if(!n.typeParameters){const r=hv(n);r.length&&e.insertTypeParameters(t,n,r)}const r=bF(n)&&!OX(n,21,t);r&&e.insertNodeBefore(t,ge(n.parameters),mw.createToken(21));for(const r of n.parameters)if(!r.type){const n=nl(r);n&&e.tryInsertTypeAnnotation(t,r,lJ(n,A5,b_))}if(r&&e.insertNodeAfter(t,ve(n.parameters),mw.createToken(22)),!n.type){const r=rl(n);r&&e.tryInsertTypeAnnotation(t,n,lJ(r,A5,b_))}}else{const r=un.checkDefined(nl(n),"A JSDocType for this declaration should exist");un.assert(!n.type,"The JSDocType decl should have a type"),e.tryInsertTypeAnnotation(t,n,lJ(r,A5,b_))}}function A5(e){switch(e.kind){case 313:case 314:return mw.createTypeReferenceNode("any",l);case 317:return function(e){return mw.createUnionTypeNode([lJ(e.type,A5,b_),mw.createTypeReferenceNode("undefined",l)])}(e);case 316:return A5(e.type);case 315:return function(e){return mw.createUnionTypeNode([lJ(e.type,A5,b_),mw.createTypeReferenceNode("null",l)])}(e);case 319:return function(e){return mw.createArrayTypeNode(lJ(e.type,A5,b_))}(e);case 318:return function(e){return mw.createFunctionTypeNode(l,e.parameters.map(I5),e.type??mw.createKeywordTypeNode(133))}(e);case 184:return function(e){let t=e.typeName,n=e.typeArguments;if(aD(e.typeName)){if(Om(e))return function(e){const t=mw.createParameterDeclaration(void 0,void 0,150===e.typeArguments[0].kind?"n":"s",void 0,mw.createTypeReferenceNode(150===e.typeArguments[0].kind?"number":"string",[]),void 0),n=mw.createTypeLiteralNode([mw.createIndexSignature(void 0,[t],e.typeArguments[1])]);return xw(n,1),n}(e);let r=e.typeName.text;switch(e.typeName.text){case"String":case"Boolean":case"Object":case"Number":r=r.toLowerCase();break;case"array":case"date":case"promise":r=r[0].toUpperCase()+r.slice(1)}t=mw.createIdentifier(r),n="Array"!==r&&"Promise"!==r||e.typeArguments?_J(e.typeArguments,A5,b_):mw.createNodeArray([mw.createTypeReferenceNode("any",l)])}return mw.createTypeReferenceNode(t,n)}(e);case 323:return function(e){const t=mw.createTypeLiteralNode(E(e.jsDocPropertyTags,e=>mw.createPropertySignature(void 0,aD(e.name)?e.name:e.name.right,$T(e)?mw.createToken(58):void 0,e.typeExpression&&lJ(e.typeExpression.type,A5,b_)||mw.createKeywordTypeNode(133))));return xw(t,1),t}(e);default:const t=vJ(e,A5,void 0);return xw(t,1),t}}function I5(e){const t=e.parent.parameters.indexOf(e),n=319===e.type.kind&&t===e.parent.parameters.length-1,r=e.name||(n?"rest":"arg"+t),i=n?mw.createToken(26):e.dotDotDotToken;return mw.createParameterDeclaration(e.modifiers,i,r,e.questionToken,lJ(e.type,A5,b_),e.initializer)}A7({errorCodes:N5,getCodeActions(e){const t=D5(e.sourceFile,e.span.start);if(!t)return;const n=jue.ChangeTracker.with(e,n=>P5(n,e.sourceFile,t));return[F7(w5,n,_a.Annotate_with_type_from_JSDoc,w5,_a.Annotate_everything_with_types_from_JSDoc)]},fixIds:[w5],getAllCodeActions:e=>R7(e,N5,(e,t)=>{const n=D5(t.file,t.start);n&&P5(e,t.file,n)})});var O5="convertFunctionToEs6Class",L5=[_a.This_constructor_function_may_be_converted_to_a_class_declaration.code];function j5(e,t,n,r,i,o){const a=r.getSymbolAtLocation(HX(t,n));if(!(a&&a.valueDeclaration&&19&a.flags))return;const s=a.valueDeclaration;if(uE(s)||vF(s))e.replaceNode(t,s,function(e){const t=c(a);e.body&&t.unshift(mw.createConstructorDeclaration(void 0,e.parameters,e.body));const n=M5(e,95);return mw.createClassDeclaration(n,e.name,void 0,void 0,t)}(s));else if(lE(s)){const n=function(e){const t=e.initializer;if(!t||!vF(t)||!aD(e.name))return;const n=c(e.symbol);t.body&&n.unshift(mw.createConstructorDeclaration(void 0,t.parameters,t.body));const r=M5(e.parent.parent,95);return mw.createClassDeclaration(r,e.name,void 0,void 0,n)}(s);if(!n)return;const r=s.parent.parent;_E(s.parent)&&s.parent.declarations.length>1?(e.delete(t,s),e.insertNodeAfter(t,r,n)):e.replaceNode(t,r,n)}function c(n){const r=[];return n.exports&&n.exports.forEach(e=>{if("prototype"===e.name&&e.declarations){const t=e.declarations[0];1===e.declarations.length&&dF(t)&&NF(t.parent)&&64===t.parent.operatorToken.kind&&uF(t.parent.right)&&a(t.parent.right.symbol,void 0,r)}else a(e,[mw.createToken(126)],r)}),n.members&&n.members.forEach((i,o)=>{var s,c,l,_;if("constructor"===o&&i.valueDeclaration){const r=null==(_=null==(l=null==(c=null==(s=n.exports)?void 0:s.get("prototype"))?void 0:c.declarations)?void 0:l[0])?void 0:_.parent;return void(r&&NF(r)&&uF(r.right)&&$(r.right.properties,R5)||e.delete(t,i.valueDeclaration.parent))}a(i,void 0,r)}),r;function a(n,r,a){if(!(8192&n.flags||4096&n.flags))return;const s=n.valueDeclaration,c=s.parent,l=c.right;if(u=l,!(Sx(_=s)?dF(_)&&R5(_)||r_(u):v(_.properties,e=>!!(FD(e)||pl(e)||rP(e)&&vF(e.initializer)&&e.name||R5(e)))))return;var _,u;if($(a,e=>{const t=Cc(e);return!(!t||!aD(t)||gc(t)!==yc(n))}))return;const p=c.parent&&245===c.parent.kind?c.parent:c;if(e.delete(t,p),l){if(Sx(s)&&(vF(l)||bF(l))){const e=tY(t,i),n=function(e,t,n){if(dF(e))return e.name;const r=e.argumentExpression;return zN(r)?r:ju(r)?ms(r.text,yk(t))?mw.createIdentifier(r.text):$N(r)?mw.createStringLiteral(r.text,0===n):r:void 0}(s,o,e);return void(n&&f(a,l,n))}if(!uF(l)){if(Fm(t))return;if(!dF(s))return;const e=mw.createPropertyDeclaration(r,s.name,void 0,void 0,l);return eZ(c.parent,e,t),void a.push(e)}d(l.properties,e=>{(FD(e)||pl(e))&&a.push(e),rP(e)&&vF(e.initializer)&&f(a,e.initializer,e.name),R5(e)})}else a.push(mw.createPropertyDeclaration(r,n.name,void 0,void 0,void 0));function f(e,n,i){return vF(n)?function(e,n,i){const o=K(r,M5(n,134)),a=mw.createMethodDeclaration(o,void 0,i,void 0,void 0,n.parameters,void 0,n.body);return eZ(c,a,t),void e.push(a)}(e,n,i):function(e,n,i){const o=n.body;let a;a=242===o.kind?o:mw.createBlock([mw.createReturnStatement(o)]);const s=K(r,M5(n,134)),l=mw.createMethodDeclaration(s,void 0,i,void 0,void 0,n.parameters,void 0,a);eZ(c,l,t),e.push(l)}(e,n,i)}}}}function M5(e,t){return kI(e)?N(e.modifiers,e=>e.kind===t):void 0}function R5(e){return!!e.name&&!(!aD(e.name)||"constructor"!==e.name.text)}A7({errorCodes:L5,getCodeActions(e){const t=jue.ChangeTracker.with(e,t=>j5(t,e.sourceFile,e.span.start,e.program.getTypeChecker(),e.preferences,e.program.getCompilerOptions()));return[F7(O5,t,_a.Convert_function_to_an_ES2015_class,O5,_a.Convert_all_constructor_functions_to_classes)]},fixIds:[O5],getAllCodeActions:e=>R7(e,L5,(t,n)=>j5(t,n.file,n.start,e.program.getTypeChecker(),e.preferences,e.program.getCompilerOptions()))});var B5="convertToAsyncFunction",J5=[_a.This_may_be_converted_to_an_async_function.code],z5=!0;function q5(e,t,n,r){const i=HX(t,n);let o;if(o=aD(i)&&lE(i.parent)&&i.parent.initializer&&o_(i.parent.initializer)?i.parent.initializer:tt(Kf(HX(t,n)),I1),!o)return;const a=new Map,s=Em(o),c=function(e,t){if(!e.body)return new Set;const n=new Set;return XI(e.body,function e(r){U5(r,t,"then")?(n.add(ZB(r)),d(r.arguments,e)):U5(r,t,"catch")||U5(r,t,"finally")?(n.add(ZB(r)),XI(r,e)):$5(r,t)?n.add(ZB(r)):XI(r,e)}),n}(o,r),_=function(e,t,n){const r=new Map,i=$e();return XI(e,function e(o){if(!aD(o))return void XI(o,e);const a=t.getSymbolAtLocation(o);if(a){const e=o9(t.getTypeAtLocation(o),t),s=eJ(a).toString();if(!e||TD(o.parent)||o_(o.parent)||n.has(s)){if(o.parent&&(TD(o.parent)||lE(o.parent)||lF(o.parent))){const e=o.text,t=i.get(e);if(t&&t.some(e=>e!==a)){const t=H5(o,i);r.set(s,t.identifier),n.set(s,t),i.add(e,a)}else{const t=RC(o);n.set(s,l9(t)),i.add(e,a)}}}else{const t=fe(e.parameters),r=(null==t?void 0:t.valueDeclaration)&&TD(t.valueDeclaration)&&tt(t.valueDeclaration.name,aD)||mw.createUniqueName("result",16),o=H5(r,i);n.set(s,o),i.add(r.text,a)}}}),BC(e,!0,e=>{if(lF(e)&&aD(e.name)&&sF(e.parent)){const n=t.getSymbolAtLocation(e.name),i=n&&r.get(String(eJ(n)));if(i&&i.text!==(e.name||e.propertyName).getText())return mw.createBindingElement(e.dotDotDotToken,e.propertyName||e.name,i,e.initializer)}else if(aD(e)){const n=t.getSymbolAtLocation(e),i=n&&r.get(String(eJ(n)));if(i)return mw.createIdentifier(i.text)}})}(o,r,a);if(!w1(_,r))return;const u=_.body&&VF(_.body)?function(e,t){const n=[];return Df(e,e=>{N1(e,t)&&n.push(e)}),n}(_.body,r):l,p={checker:r,synthNamesMap:a,setOfExpressionsToReturn:c,isInJSFile:s};if(!u.length)return;const f=Qa(t.text,jb(o).pos);e.insertModifierAt(t,f,134,{suffix:" "});for(const n of u)if(XI(n,function r(i){if(fF(i)){const r=X5(i,i,p,!1);if(K5())return!0;e.replaceNodeWithNodes(t,n,r)}else if(!r_(i)&&(XI(i,r),K5()))return!0}),K5())return}function U5(e,t,n){if(!fF(e))return!1;const r=oX(e,n)&&t.getTypeAtLocation(e);return!(!r||!t.getPromisedTypeOfPromise(r))}function V5(e,t){return!!(4&gx(e))&&e.target===t}function W5(e,t,n){if("finally"===e.expression.name.escapedText)return;const r=n.getTypeAtLocation(e.expression.expression);if(V5(r,n.getPromiseType())||V5(r,n.getPromiseLikeType())){if("then"!==e.expression.name.escapedText)return pe(e.typeArguments,0);if(t===pe(e.arguments,0))return pe(e.typeArguments,0);if(t===pe(e.arguments,1))return pe(e.typeArguments,1)}}function $5(e,t){return!!V_(e)&&!!t.getPromisedTypeOfPromise(t.getTypeAtLocation(e))}function H5(e,t){const n=(t.get(e.text)||l).length;return l9(0===n?e:mw.createIdentifier(e.text+"_"+n))}function K5(){return!z5}function G5(){return z5=!1,l}function X5(e,t,n,r,i){if(U5(t,n.checker,"then"))return function(e,t,n,r,i,o){if(!t||Q5(r,t))return e9(e,n,r,i,o);if(n&&!Q5(r,n))return G5();const a=s9(t,r),s=X5(e.expression.expression,e.expression.expression,r,!0,a);if(K5())return G5();const c=r9(t,i,o,a,e,r);return K5()?G5():K(s,c)}(t,pe(t.arguments,0),pe(t.arguments,1),n,r,i);if(U5(t,n.checker,"catch"))return e9(t,pe(t.arguments,0),n,r,i);if(U5(t,n.checker,"finally"))return function(e,t,n,r,i){if(!t||Q5(n,t))return X5(e,e.expression.expression,n,r,i);const o=Y5(e,n,i),a=X5(e,e.expression.expression,n,!0,o);if(K5())return G5();const s=r9(t,r,void 0,void 0,e,n);if(K5())return G5();const c=mw.createBlock(a),l=mw.createBlock(s);return Z5(e,n,mw.createTryStatement(c,void 0,l),o,i)}(t,pe(t.arguments,0),n,r,i);if(dF(t))return X5(e,t.expression,n,r,i);const o=n.checker.getTypeAtLocation(t);return o&&n.checker.getPromisedTypeOfPromise(o)?(un.assertNode(_c(t).parent,dF),function(e,t,n,r,i){if(m9(e,n)){let e=RC(t);return r&&(e=mw.createAwaitExpression(e)),[mw.createReturnStatement(e)]}return t9(i,mw.createAwaitExpression(t),void 0)}(e,t,n,r,i)):G5()}function Q5({checker:e},t){if(106===t.kind)return!0;if(aD(t)&&!Wl(t)&&"undefined"===gc(t)){const n=e.getSymbolAtLocation(t);return!n||e.isUndefinedSymbol(n)}return!1}function Y5(e,t,n){let r;return n&&!m9(e,t)&&(f9(n)?(r=n,t.synthNamesMap.forEach((e,r)=>{if(e.identifier.text===n.identifier.text){const e=(i=n,l9(mw.createUniqueName(i.identifier.text,16)));t.synthNamesMap.set(r,e)}var i})):r=l9(mw.createUniqueName("result",16),n.types),p9(r)),r}function Z5(e,t,n,r,i){const o=[];let a;if(r&&!m9(e,t)){a=RC(p9(r));const e=r.types,n=t.checker.getUnionType(e,2),i=t.isInJSFile?void 0:t.checker.typeToTypeNode(n,void 0,void 0),s=[mw.createVariableDeclaration(a,void 0,i)],c=mw.createVariableStatement(void 0,mw.createVariableDeclarationList(s,1));o.push(c)}return o.push(n),i&&a&&1===i.kind&&o.push(mw.createVariableStatement(void 0,mw.createVariableDeclarationList([mw.createVariableDeclaration(RC(d9(i)),void 0,void 0,a)],2))),o}function e9(e,t,n,r,i){if(!t||Q5(n,t))return X5(e,e.expression.expression,n,r,i);const o=s9(t,n),a=Y5(e,n,i),s=X5(e,e.expression.expression,n,!0,a);if(K5())return G5();const c=r9(t,r,a,o,e,n);if(K5())return G5();const l=mw.createBlock(s),_=mw.createCatchClause(o&&RC(u9(o)),mw.createBlock(c));return Z5(e,n,mw.createTryStatement(l,_,void 0),a,i)}function t9(e,t,n){return!e||c9(e)?[mw.createExpressionStatement(t)]:f9(e)&&e.hasBeenDeclared?[mw.createExpressionStatement(mw.createAssignment(RC(_9(e)),t))]:[mw.createVariableStatement(void 0,mw.createVariableDeclarationList([mw.createVariableDeclaration(RC(u9(e)),void 0,n,t)],2))]}function n9(e,t){if(t&&e){const n=mw.createUniqueName("result",16);return[...t9(l9(n),e,t),mw.createReturnStatement(n)]}return[mw.createReturnStatement(e)]}function r9(e,t,n,r,i,o){var a;switch(e.kind){case 106:break;case 212:case 80:if(!r)break;const s=mw.createCallExpression(RC(e),void 0,f9(r)?[_9(r)]:[]);if(m9(i,o))return n9(s,W5(i,e,o.checker));const c=o.checker.getTypeAtLocation(e),_=o.checker.getSignaturesOfType(c,0);if(!_.length)return G5();const u=_[0].getReturnType(),d=t9(n,mw.createAwaitExpression(s),W5(i,e,o.checker));return n&&n.types.push(o.checker.getAwaitedType(u)||u),d;case 219:case 220:{const r=e.body,s=null==(a=o9(o.checker.getTypeAtLocation(e),o.checker))?void 0:a.getReturnType();if(VF(r)){let a=[],c=!1;for(const l of r.statements)if(nE(l))if(c=!0,N1(l,o.checker))a=a.concat(a9(o,l,t,n));else{const t=s&&l.expression?i9(o.checker,s,l.expression):l.expression;a.push(...n9(t,W5(i,e,o.checker)))}else{if(t&&Df(l,ot))return G5();a.push(l)}return m9(i,o)?a.map(e=>RC(e)):function(e,t,n,r){const i=[];for(const r of e)if(nE(r)){if(r.expression){const e=$5(r.expression,n.checker)?mw.createAwaitExpression(r.expression):r.expression;void 0===t?i.push(mw.createExpressionStatement(e)):f9(t)&&t.hasBeenDeclared?i.push(mw.createExpressionStatement(mw.createAssignment(_9(t),e))):i.push(mw.createVariableStatement(void 0,mw.createVariableDeclarationList([mw.createVariableDeclaration(u9(t),void 0,void 0,e)],2)))}}else i.push(RC(r));return r||void 0===t||i.push(mw.createVariableStatement(void 0,mw.createVariableDeclarationList([mw.createVariableDeclaration(u9(t),void 0,void 0,mw.createIdentifier("undefined"))],2))),i}(a,n,o,c)}{const a=D1(r,o.checker)?a9(o,mw.createReturnStatement(r),t,n):l;if(a.length>0)return a;if(s){const t=i9(o.checker,s,r);if(m9(i,o))return n9(t,W5(i,e,o.checker));{const e=t9(n,t,void 0);return n&&n.types.push(o.checker.getAwaitedType(s)||s),e}}return G5()}}default:return G5()}return l}function i9(e,t,n){const r=RC(n);return e.getPromisedTypeOfPromise(t)?mw.createAwaitExpression(r):r}function o9(e,t){return ye(t.getSignaturesOfType(e,0))}function a9(e,t,n,r){let i=[];return XI(t,function t(o){if(fF(o)){const t=X5(o,o,e,n,r);if(i=i.concat(t),i.length>0)return}else r_(o)||XI(o,t)}),i}function s9(e,t){const n=[];let r;if(o_(e)?e.parameters.length>0&&(r=function e(t){if(aD(t))return i(t);return function(e,t=l,n=[]){return{kind:1,bindingPattern:e,elements:t,types:n}}(t,O(t.elements,t=>IF(t)?[]:[e(t.name)]))}(e.parameters[0].name)):aD(e)?r=i(e):dF(e)&&aD(e.name)&&(r=i(e.name)),r&&(!("identifier"in r)||"undefined"!==r.identifier.text))return r;function i(e){var r;const i=function(e){var n;return(null==(n=tt(e,au))?void 0:n.symbol)??t.checker.getSymbolAtLocation(e)}((r=e).original?r.original:r);return i&&t.synthNamesMap.get(eJ(i).toString())||l9(e,n)}}function c9(e){return!e||(f9(e)?!e.identifier.text:v(e.elements,c9))}function l9(e,t=[]){return{kind:0,identifier:e,types:t,hasBeenDeclared:!1,hasBeenReferenced:!1}}function _9(e){return e.hasBeenReferenced=!0,e.identifier}function u9(e){return f9(e)?p9(e):d9(e)}function d9(e){for(const t of e.elements)u9(t);return e.bindingPattern}function p9(e){return e.hasBeenDeclared=!0,e.identifier}function f9(e){return 0===e.kind}function m9(e,t){return!!e.original&&t.setOfExpressionsToReturn.has(ZB(e.original))}function g9(e,t,n,r,i){var o;for(const a of e.imports){const s=null==(o=n.getResolvedModuleFromModuleSpecifier(a,e))?void 0:o.resolvedModule;if(!s||s.resolvedFileName!==t.fileName)continue;const c=vg(a);switch(c.kind){case 272:r.replaceNode(e,c,QQ(c.name,void 0,a,i));break;case 214:Lm(c,!1)&&r.replaceNode(e,c,mw.createPropertyAccessExpression(RC(c),"default"))}}}function h9(e,t){e.forEachChild(function n(r){if(dF(r)&&YR(e,r.expression)&&aD(r.name)){const{parent:e}=r;t(r,NF(e)&&e.left===r&&64===e.operatorToken.kind)}r.forEachChild(n)})}function y9(e,t,n,r,i,o,a,s,c){switch(t.kind){case 244:return v9(e,t,r,n,i,o,c),!1;case 245:{const{expression:i}=t;switch(i.kind){case 214:return Lm(i,!0)&&r.replaceNode(e,t,QQ(void 0,void 0,i.arguments[0],c)),!1;case 227:{const{operatorToken:t}=i;return 64===t.kind&&function(e,t,n,r,i,o){const{left:a,right:s}=n;if(!dF(a))return!1;if(YR(e,a)){if(!YR(e,s)){const i=uF(s)?function(e,t){const n=R(e.properties,e=>{switch(e.kind){case 178:case 179:case 305:case 306:return;case 304:return aD(e.name)?function(e,t,n){const r=[mw.createToken(95)];switch(t.kind){case 219:{const{name:n}=t;if(n&&n.text!==e)return i()}case 220:return w9(e,r,t,n);case 232:return function(e,t,n,r){return mw.createClassDeclaration(K(t,zC(n.modifiers)),e,zC(n.typeParameters),zC(n.heritageClauses),k9(n.members,r))}(e,r,t,n);default:return i()}function i(){return F9(r,mw.createIdentifier(e),k9(t,n))}}(e.name.text,e.initializer,t):void 0;case 175:return aD(e.name)?w9(e.name.text,[mw.createToken(95)],e,t):void 0;default:un.assertNever(e,`Convert to ES6 got invalid prop kind ${e.kind}`)}});return n&&[n,!1]}(s,o):Lm(s,!0)?function(e,t){const n=e.text,r=t.getSymbolAtLocation(e),i=r?r.exports:_;return i.has("export=")?[[x9(n)],!0]:i.has("default")?i.size>1?[[b9(n),x9(n)],!0]:[[x9(n)],!0]:[[b9(n)],!1]}(s.arguments[0],t):void 0;return i?(r.replaceNodeWithNodes(e,n.parent,i[0]),i[1]):(r.replaceRangeWithText(e,Ab(a.getStart(e),s.pos),"export default"),!0)}r.delete(e,n.parent)}else YR(e,a.expression)&&function(e,t,n,r){const{text:i}=t.left.name,o=r.get(i);if(void 0!==o){const r=[F9(void 0,o,t.right),E9([mw.createExportSpecifier(!1,o,i)])];n.replaceNodeWithNodes(e,t.parent,r)}else!function({left:e,right:t,parent:n},r,i){const o=e.name.text;if(!(vF(t)||bF(t)||AF(t))||t.name&&t.name.text!==o)i.replaceNodeRangeWithNodes(r,e.expression,OX(e,25,r),[mw.createToken(95),mw.createToken(87)],{joiner:" ",suffix:" "});else{i.replaceRange(r,{pos:e.getStart(r),end:t.getStart(r)},mw.createToken(95),{suffix:" "}),t.name||i.insertName(r,t,o);const a=OX(n,27,r);a&&i.delete(r,a)}}(t,e,n)}(e,n,r,i);return!1}(e,n,i,r,a,s)}}}default:return!1}}function v9(e,t,n,r,i,o,a){const{declarationList:s}=t;let c=!1;const l=E(s.declarations,t=>{const{name:n,initializer:l}=t;if(l){if(YR(e,l))return c=!0,P9([]);if(Lm(l,!0))return c=!0,function(e,t,n,r,i,o){switch(e.kind){case 207:{const n=R(e.elements,e=>e.dotDotDotToken||e.initializer||e.propertyName&&!aD(e.propertyName)||!aD(e.name)?void 0:D9(e.propertyName&&e.propertyName.text,e.name.text));if(n)return P9([QQ(void 0,n,t,o)])}case 208:{const n=S9(UZ(t.text,i),r);return P9([QQ(mw.createIdentifier(n),void 0,t,o),F9(void 0,RC(e),mw.createIdentifier(n))])}case 80:return function(e,t,n,r,i){const o=n.getSymbolAtLocation(e),a=new Map;let s,c=!1;for(const t of r.original.get(e.text)){if(n.getSymbolAtLocation(t)!==o||t===e)continue;const{parent:i}=t;if(dF(i)){const{name:{text:e}}=i;if("default"===e){c=!0;const e=t.getText();(s??(s=new Map)).set(i,mw.createIdentifier(e))}else{un.assert(i.expression===t,"Didn't expect expression === use");let n=a.get(e);void 0===n&&(n=S9(e,r),a.set(e,n)),(s??(s=new Map)).set(i,mw.createIdentifier(n))}}else c=!0}const l=0===a.size?void 0:Oe(P(a.entries(),([e,t])=>mw.createImportSpecifier(!1,e===t?void 0:mw.createIdentifier(e),mw.createIdentifier(t))));return l||(c=!0),P9([QQ(c?RC(e):void 0,l,t,i)],s)}(e,t,n,r,o);default:return un.assertNever(e,`Convert to ES module got invalid name kind ${e.kind}`)}}(n,l.arguments[0],r,i,o,a);if(dF(l)&&Lm(l.expression,!0))return c=!0,function(e,t,n,r,i){switch(e.kind){case 207:case 208:{const o=S9(t,r);return P9([N9(o,t,n,i),F9(void 0,e,mw.createIdentifier(o))])}case 80:return P9([N9(e.text,t,n,i)]);default:return un.assertNever(e,`Convert to ES module got invalid syntax form ${e.kind}`)}}(n,l.name.text,l.expression.arguments[0],i,a)}return P9([mw.createVariableStatement(void 0,mw.createVariableDeclarationList([t],s.flags))])});if(c){let r;return n.replaceNodeWithNodes(e,t,O(l,e=>e.newImports)),d(l,e=>{e.useSitesToUnqualify&&od(e.useSitesToUnqualify,r??(r=new Map))}),r}}function b9(e){return E9(void 0,e)}function x9(e){return E9([mw.createExportSpecifier(!1,void 0,"default")],e)}function k9(e,t){return t&&$(Oe(t.keys()),t=>Xb(e,t))?Qe(e)?qC(e,!0,n):BC(e,!0,n):e;function n(e){if(212===e.kind){const n=t.get(e);return t.delete(e),n}}}function S9(e,t){for(;t.original.has(e)||t.additional.has(e);)e=`_${e}`;return t.additional.add(e),e}function T9(e){const t=$e();return C9(e,e=>t.add(e.text,e)),t}function C9(e,t){aD(e)&&function(e){const{parent:t}=e;switch(t.kind){case 212:return t.name!==e;case 209:case 277:return t.propertyName!==e;default:return!0}}(e)&&t(e),e.forEachChild(e=>C9(e,t))}function w9(e,t,n,r){return mw.createFunctionDeclaration(K(t,zC(n.modifiers)),RC(n.asteriskToken),e,zC(n.typeParameters),zC(n.parameters),RC(n.type),mw.converters.convertToFunctionBlock(k9(n.body,r)))}function N9(e,t,n,r){return"default"===t?QQ(mw.createIdentifier(e),void 0,n,r):QQ(void 0,[D9(t,e)],n,r)}function D9(e,t){return mw.createImportSpecifier(!1,void 0!==e&&e!==t?mw.createIdentifier(e):void 0,mw.createIdentifier(t))}function F9(e,t,n){return mw.createVariableStatement(e,mw.createVariableDeclarationList([mw.createVariableDeclaration(t,void 0,void 0,n)],2))}function E9(e,t){return mw.createExportDeclaration(void 0,!1,e&&mw.createNamedExports(e),void 0===t?void 0:mw.createStringLiteral(t))}function P9(e,t){return{newImports:e,useSitesToUnqualify:t}}A7({errorCodes:J5,getCodeActions(e){z5=!0;const t=jue.ChangeTracker.with(e,t=>q5(t,e.sourceFile,e.span.start,e.program.getTypeChecker()));return z5?[F7(B5,t,_a.Convert_to_async_function,B5,_a.Convert_all_to_async_functions)]:[]},fixIds:[B5],getAllCodeActions:e=>R7(e,J5,(t,n)=>q5(t,n.file,n.start,e.program.getTypeChecker()))}),A7({errorCodes:[_a.File_is_a_CommonJS_module_it_may_be_converted_to_an_ES_module.code],getCodeActions(e){const{sourceFile:t,program:n,preferences:r}=e;return[D7("convertToEsModule",jue.ChangeTracker.with(e,e=>{const i=function(e,t,n,r,i){const o={original:T9(e),additional:new Set},a=function(e,t,n){const r=new Map;return h9(e,e=>{const{text:i}=e.name;r.has(i)||!Ph(e.name)&&!t.resolveName(i,e,111551,!0)||r.set(i,S9(`_${i}`,n))}),r}(e,t,o);!function(e,t,n){h9(e,(r,i)=>{if(i)return;const{text:o}=r.name;n.replaceNode(e,r,mw.createIdentifier(t.get(o)||o))})}(e,a,n);let s,c=!1;for(const a of N(e.statements,WF)){const c=v9(e,a,n,t,o,r,i);c&&od(c,s??(s=new Map))}for(const l of N(e.statements,e=>!WF(e))){const _=y9(e,l,t,n,o,r,a,s,i);c=c||_}return null==s||s.forEach((t,r)=>{n.replaceNode(e,r,t)}),c}(t,n.getTypeChecker(),e,yk(n.getCompilerOptions()),tY(t,r));if(i)for(const i of n.getSourceFiles())g9(i,t,n,e,tY(i,r))}),_a.Convert_to_ES_module)]}});var A9="correctQualifiedNameToIndexedAccessType",I9=[_a.Cannot_access_0_1_because_0_is_a_type_but_not_a_namespace_Did_you_mean_to_retrieve_the_type_of_the_property_1_in_0_with_0_1.code];function O9(e,t){const n=uc(HX(e,t),xD);return un.assert(!!n,"Expected position to be owned by a qualified name."),aD(n.left)?n:void 0}function L9(e,t,n){const r=n.right.text,i=mw.createIndexedAccessTypeNode(mw.createTypeReferenceNode(n.left,void 0),mw.createLiteralTypeNode(mw.createStringLiteral(r)));e.replaceNode(t,n,i)}A7({errorCodes:I9,getCodeActions(e){const t=O9(e.sourceFile,e.span.start);if(!t)return;const n=jue.ChangeTracker.with(e,n=>L9(n,e.sourceFile,t)),r=`${t.left.text}["${t.right.text}"]`;return[F7(A9,n,[_a.Rewrite_as_the_indexed_access_type_0,r],A9,_a.Rewrite_all_as_indexed_access_types)]},fixIds:[A9],getAllCodeActions:e=>R7(e,I9,(e,t)=>{const n=O9(t.file,t.start);n&&L9(e,t.file,n)})});var j9=[_a.Re_exporting_a_type_when_0_is_enabled_requires_using_export_type.code],M9="convertToTypeOnlyExport";function R9(e,t){return tt(HX(t,e.start).parent,LE)}function B9(e,t,n){if(!t)return;const r=t.parent,i=r.parent,o=function(e,t){const n=e.parent;if(1===n.elements.length)return n.elements;const r=LZ(FQ(n),t.program.getSemanticDiagnostics(t.sourceFile,t.cancellationToken));return N(n.elements,t=>{var n;return t===e||(null==(n=OZ(t,r))?void 0:n.code)===j9[0]})}(t,n);if(o.length===r.elements.length)e.insertModifierBefore(n.sourceFile,156,r);else{const t=mw.updateExportDeclaration(i,i.modifiers,!1,mw.updateNamedExports(r,N(r.elements,e=>!T(o,e))),i.moduleSpecifier,void 0),a=mw.createExportDeclaration(void 0,!0,mw.createNamedExports(o),i.moduleSpecifier,void 0);e.replaceNode(n.sourceFile,i,t,{leadingTriviaOption:jue.LeadingTriviaOption.IncludeAll,trailingTriviaOption:jue.TrailingTriviaOption.Exclude}),e.insertNodeAfter(n.sourceFile,i,a)}}A7({errorCodes:j9,getCodeActions:function(e){const t=jue.ChangeTracker.with(e,t=>B9(t,R9(e.span,e.sourceFile),e));if(t.length)return[F7(M9,t,_a.Convert_to_type_only_export,M9,_a.Convert_all_re_exported_types_to_type_only_exports)]},fixIds:[M9],getAllCodeActions:function(e){const t=new Set;return R7(e,j9,(n,r)=>{const i=R9(r,e.sourceFile);i&&bx(t,ZB(i.parent.parent))&&B9(n,i,e)})}});var J9=[_a._0_is_a_type_and_must_be_imported_using_a_type_only_import_when_verbatimModuleSyntax_is_enabled.code,_a._0_resolves_to_a_type_only_declaration_and_must_be_imported_using_a_type_only_import_when_verbatimModuleSyntax_is_enabled.code],z9="convertToTypeOnlyImport";function q9(e,t){const{parent:n}=HX(e,t);return PE(n)||xE(n)&&n.importClause?n:void 0}function U9(e,t,n){if(e.parent.parent.name)return!1;const r=e.parent.elements.filter(e=>!e.isTypeOnly);if(1===r.length)return!0;const i=n.getTypeChecker();for(const e of r)if(gce.Core.eachSymbolReferenceInFile(e.name,i,t,e=>{const t=i.getSymbolAtLocation(e);return!!t&&i.symbolIsValue(t)||!bT(e)}))return!1;return!0}function V9(e,t,n){var r;if(PE(n))e.replaceNode(t,n,mw.updateImportSpecifier(n,!0,n.propertyName,n.name));else{const i=n.importClause;if(i.name&&i.namedBindings)e.replaceNodeWithNodes(t,n,[mw.createImportDeclaration(zC(n.modifiers,!0),mw.createImportClause(156,RC(i.name,!0),void 0),RC(n.moduleSpecifier,!0),RC(n.attributes,!0)),mw.createImportDeclaration(zC(n.modifiers,!0),mw.createImportClause(156,void 0,RC(i.namedBindings,!0)),RC(n.moduleSpecifier,!0),RC(n.attributes,!0))]);else{const o=276===(null==(r=i.namedBindings)?void 0:r.kind)?mw.updateNamedImports(i.namedBindings,A(i.namedBindings.elements,e=>mw.updateImportSpecifier(e,!1,e.propertyName,e.name))):i.namedBindings,a=mw.updateImportDeclaration(n,n.modifiers,mw.updateImportClause(i,156,i.name,o),n.moduleSpecifier,n.attributes);e.replaceNode(t,n,a)}}}A7({errorCodes:J9,getCodeActions:function(e){var t;const n=q9(e.sourceFile,e.span.start);if(n){const r=jue.ChangeTracker.with(e,t=>V9(t,e.sourceFile,n)),i=277===n.kind&&xE(n.parent.parent.parent)&&U9(n,e.sourceFile,e.program)?jue.ChangeTracker.with(e,t=>V9(t,e.sourceFile,n.parent.parent.parent)):void 0,o=F7(z9,r,277===n.kind?[_a.Use_type_0,(null==(t=n.propertyName)?void 0:t.text)??n.name.text]:_a.Use_import_type,z9,_a.Fix_all_with_type_only_imports);return $(i)?[D7(z9,i,_a.Use_import_type),o]:[o]}},fixIds:[z9],getAllCodeActions:function(e){const t=new Set;return R7(e,J9,(n,r)=>{const i=q9(r.file,r.start);273!==(null==i?void 0:i.kind)||t.has(i)?277===(null==i?void 0:i.kind)&&xE(i.parent.parent.parent)&&!t.has(i.parent.parent.parent)&&U9(i,r.file,e.program)?(V9(n,r.file,i.parent.parent.parent),t.add(i.parent.parent.parent)):277===(null==i?void 0:i.kind)&&V9(n,r.file,i):(V9(n,r.file,i),t.add(i))})}});var W9="convertTypedefToType",$9=[_a.JSDoc_typedef_may_be_converted_to_TypeScript_type.code];function H9(e,t,n,r,i=!1){if(!VP(t))return;const o=function(e){var t;const{typeExpression:n}=e;if(!n)return;const r=null==(t=e.name)?void 0:t.getText();return r?323===n.kind?function(e,t){const n=G9(t);if($(n))return mw.createInterfaceDeclaration(void 0,e,void 0,void 0,n)}(r,n):310===n.kind?function(e,t){const n=RC(t.type);if(n)return mw.createTypeAliasDeclaration(void 0,mw.createIdentifier(e),void 0,n)}(r,n):void 0:void 0}(t);if(!o)return;const a=t.parent,{leftSibling:s,rightSibling:c}=function(e){const t=e.parent,n=t.getChildCount()-1,r=t.getChildren().findIndex(t=>t.getStart()===e.getStart()&&t.getEnd()===e.getEnd());return{leftSibling:r>0?t.getChildAt(r-1):void 0,rightSibling:r0;e--)if(!/[*/\s]/.test(r.substring(e-1,e)))return t+e;return n}function G9(e){const t=e.jsDocPropertyTags;if($(t))return B(t,e=>{var t;const n=function(e){return 80===e.name.kind?e.name.text:e.name.right.text}(e),r=null==(t=e.typeExpression)?void 0:t.type,i=e.isBracketed;let o;if(r&&TP(r)){const e=G9(r);o=mw.createTypeLiteralNode(e)}else r&&(o=RC(r));if(o&&n){const e=i?mw.createToken(58):void 0;return mw.createPropertySignature(void 0,n,e,o)}})}function X9(e){return Du(e)?O(e.jsDoc,e=>{var t;return null==(t=e.tags)?void 0:t.filter(e=>VP(e))}):[]}A7({fixIds:[W9],errorCodes:$9,getCodeActions(e){const t=RY(e.host,e.formatContext.options),n=HX(e.sourceFile,e.span.start);if(!n)return;const r=jue.ChangeTracker.with(e,r=>H9(r,n,e.sourceFile,t));return r.length>0?[F7(W9,r,_a.Convert_typedef_to_TypeScript_type,W9,_a.Convert_all_typedef_to_TypeScript_types)]:void 0},getAllCodeActions:e=>R7(e,$9,(t,n)=>{const r=RY(e.host,e.formatContext.options),i=HX(n.file,n.start);i&&H9(t,i,n.file,r,!0)})});var Q9="convertLiteralTypeToMappedType",Y9=[_a._0_only_refers_to_a_type_but_is_being_used_as_a_value_here_Did_you_mean_to_use_1_in_0.code];function Z9(e,t){const n=HX(e,t);if(aD(n)){const t=nt(n.parent.parent,wD),r=n.getText(e);return{container:nt(t.parent,qD),typeNode:t.type,constraint:r,name:"K"===r?"P":"K"}}}function eee(e,t,{container:n,typeNode:r,constraint:i,name:o}){e.replaceNode(t,n,mw.createMappedTypeNode(void 0,mw.createTypeParameterDeclaration(void 0,o,mw.createTypeReferenceNode(i)),void 0,void 0,r,void 0))}A7({errorCodes:Y9,getCodeActions:function(e){const{sourceFile:t,span:n}=e,r=Z9(t,n.start);if(!r)return;const{name:i,constraint:o}=r,a=jue.ChangeTracker.with(e,e=>eee(e,t,r));return[F7(Q9,a,[_a.Convert_0_to_1_in_0,o,i],Q9,_a.Convert_all_type_literals_to_mapped_type)]},fixIds:[Q9],getAllCodeActions:e=>R7(e,Y9,(e,t)=>{const n=Z9(t.file,t.start);n&&eee(e,t.file,n)})});var tee=[_a.Class_0_incorrectly_implements_interface_1.code,_a.Class_0_incorrectly_implements_class_1_Did_you_mean_to_extend_1_and_inherit_its_members_as_a_subclass.code],nee="fixClassIncorrectlyImplementsInterface";function ree(e,t){return un.checkDefined(Xf(HX(e,t)),"There should be a containing class")}function iee(e){return!(e.valueDeclaration&&2&Bv(e.valueDeclaration))}function oee(e,t,n,r,i,o){const a=e.program.getTypeChecker(),s=function(e,t){const n=yh(e);if(!n)return Gu();const r=t.getTypeAtLocation(n);return Gu(t.getPropertiesOfType(r).filter(iee))}(r,a),c=a.getTypeAtLocation(t),l=a.getPropertiesOfType(c).filter(Zt(iee,e=>!s.has(e.escapedName))),_=a.getTypeAtLocation(r),u=b(r.members,e=>PD(e));_.getNumberIndexType()||p(c,1),_.getStringIndexType()||p(c,0);const d=lee(n,e.program,o,e.host);function p(t,i){const o=a.getIndexInfoOfType(t,i);o&&f(n,r,a.indexInfoToIndexSignatureDeclaration(o,r,void 0,void 0,Iie(e)))}function f(e,t,n){u?i.insertNodeAfter(e,u,n):i.insertMemberAtStart(e,t,n)}Aie(r,l,n,e,o,d,e=>f(n,r,e)),d.writeFixes(i)}A7({errorCodes:tee,getCodeActions(e){const{sourceFile:t,span:n}=e,r=ree(t,n.start);return B(bh(r),n=>{const i=jue.ChangeTracker.with(e,i=>oee(e,n,t,r,i,e.preferences));return 0===i.length?void 0:F7(nee,i,[_a.Implement_interface_0,n.getText(t)],nee,_a.Implement_all_unimplemented_interfaces)})},fixIds:[nee],getAllCodeActions(e){const t=new Set;return R7(e,tee,(n,r)=>{const i=ree(r.file,r.start);if(bx(t,ZB(i)))for(const t of bh(i))oee(e,t,r.file,i,n,e.preferences)})}});var aee="import",see="fixMissingImport",cee=[_a.Cannot_find_name_0.code,_a.Cannot_find_name_0_Did_you_mean_1.code,_a.Cannot_find_name_0_Did_you_mean_the_instance_member_this_0.code,_a.Cannot_find_name_0_Did_you_mean_the_static_member_1_0.code,_a.Cannot_find_namespace_0.code,_a._0_refers_to_a_UMD_global_but_the_current_file_is_a_module_Consider_adding_an_import_instead.code,_a._0_only_refers_to_a_type_but_is_being_used_as_a_value_here.code,_a.No_value_exists_in_scope_for_the_shorthand_property_0_Either_declare_one_or_provide_an_initializer.code,_a._0_cannot_be_used_as_a_value_because_it_was_imported_using_import_type.code,_a.Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_jQuery_Try_npm_i_save_dev_types_Slashjquery.code,_a.Cannot_find_name_0_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_1_or_later.code,_a.Cannot_find_name_0_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_include_dom.code,_a.Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_a_test_runner_Try_npm_i_save_dev_types_Slashjest_or_npm_i_save_dev_types_Slashmocha_and_then_add_jest_or_mocha_to_the_types_field_in_your_tsconfig.code,_a.Cannot_find_name_0_Did_you_mean_to_write_this_in_an_async_function.code,_a.Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_jQuery_Try_npm_i_save_dev_types_Slashjquery_and_then_add_jquery_to_the_types_field_in_your_tsconfig.code,_a.Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_a_test_runner_Try_npm_i_save_dev_types_Slashjest_or_npm_i_save_dev_types_Slashmocha.code,_a.Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_node_Try_npm_i_save_dev_types_Slashnode.code,_a.Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_node_Try_npm_i_save_dev_types_Slashnode_and_then_add_node_to_the_types_field_in_your_tsconfig.code,_a.Cannot_find_namespace_0_Did_you_mean_1.code,_a.Cannot_extend_an_interface_0_Did_you_mean_implements.code,_a.This_JSX_tag_requires_0_to_be_in_scope_but_it_could_not_be_found.code];function lee(e,t,n,r,i){return _ee(e,t,!1,n,r,i)}function _ee(e,t,n,r,i,o){const a=t.getCompilerOptions(),s=[],c=[],l=new Map,_=new Set,u=new Set,d=new Map;return{addImportFromDiagnostic:function(e,t){const r=See(t,e.code,e.start,n);r&&r.length&&p(ge(r))},addImportFromExportedSymbol:function(n,s,c){var l,_;const u=un.checkDefined(n.parent,"Expected exported symbol to have module symbol as parent"),d=JZ(n,yk(a)),f=t.getTypeChecker(),m=f.getMergedSymbol(ox(n,f)),g=gee(e,m,d,u,!1,t,i,r,o);if(!g)return void un.assert(null==(l=r.autoImportFileExcludePatterns)?void 0:l.length);const h=xee(e,t);let y=fee(e,g,t,void 0,!!s,h,i,r);if(y){const e=(null==(_=tt(null==c?void 0:c.name,aD))?void 0:_.text)??d;let t,r;c&&Bl(c)&&(3===y.kind||2===y.kind)&&1===y.addAsTypeOnly&&(t=2),n.name!==e&&(r=n.name),y={...y,...void 0===t?{}:{addAsTypeOnly:t},...void 0===r?{}:{propertyName:r}},p({fix:y,symbolName:e??d,errorIdentifierText:void 0})}},addImportForModuleSymbol:function(n,o,s){var c,l,_;const u=t.getTypeChecker(),d=u.getAliasedSymbol(n);un.assert(1536&d.flags,"Expected symbol to be a module");const f=KQ(t,i),m=nB.getModuleSpecifiersWithCacheInfo(d,u,a,e,f,r,void 0,!0),g=xee(e,t);let h=vee(o,0,void 0,n.flags,t.getTypeChecker(),a);h=1===h&&Bl(s)?2:1;const y=xE(s)?Tg(s)?1:2:PE(s)?0:kE(s)&&s.name?1:2,v=[{symbol:n,moduleSymbol:d,moduleFileName:null==(_=null==(l=null==(c=d.declarations)?void 0:c[0])?void 0:l.getSourceFile())?void 0:_.fileName,exportKind:4,targetFlags:n.flags,isFromPackageJson:!1}],b=fee(e,v,t,void 0,!!o,g,i,r);let x;x=b&&2!==y&&0!==b.kind&&1!==b.kind?{...b,addAsTypeOnly:h,importKind:y}:{kind:3,moduleSpecifierKind:void 0!==b?b.moduleSpecifierKind:m.kind,moduleSpecifier:void 0!==b?b.moduleSpecifier:ge(m.moduleSpecifiers),importKind:y,addAsTypeOnly:h,useRequire:g},p({fix:x,symbolName:n.name,errorIdentifierText:void 0})},writeFixes:function(t,n){var i,o;let p,f,m;p=void 0!==e.imports&&0===e.imports.length&&void 0!==n?n:tY(e,r);for(const n of s)Lee(t,e,n);for(const n of c)jee(t,e,n,p);if(_.size){un.assert(Dm(e),"Cannot remove imports from a future source file");const n=new Set(B([..._],e=>uc(e,xE))),r=new Set(B([..._],e=>uc(e,jm))),a=[...n].filter(e=>{var t,n,r;return!l.has(e.importClause)&&(!(null==(t=e.importClause)?void 0:t.name)||_.has(e.importClause))&&(!tt(null==(n=e.importClause)?void 0:n.namedBindings,DE)||_.has(e.importClause.namedBindings))&&(!tt(null==(r=e.importClause)?void 0:r.namedBindings,EE)||v(e.importClause.namedBindings.elements,e=>_.has(e)))}),s=[...r].filter(e=>(207!==e.name.kind||!l.has(e.name))&&(207!==e.name.kind||v(e.name.elements,e=>_.has(e)))),c=[...n].filter(e=>{var t,n;return(null==(t=e.importClause)?void 0:t.namedBindings)&&-1===a.indexOf(e)&&!(null==(n=l.get(e.importClause))?void 0:n.namedImports)&&(275===e.importClause.namedBindings.kind||v(e.importClause.namedBindings.elements,e=>_.has(e)))});for(const n of[...a,...s])t.delete(e,n);for(const n of c)t.replaceNode(e,n.importClause,mw.updateImportClause(n.importClause,n.importClause.phaseModifier,n.importClause.name,void 0));for(const n of _){const r=uc(n,xE);r&&-1===a.indexOf(r)&&-1===c.indexOf(r)?274===n.kind?t.delete(e,n.name):(un.assert(277===n.kind,"NamespaceImport should have been handled earlier"),(null==(i=l.get(r.importClause))?void 0:i.namedImports)?(f??(f=new Set)).add(n):t.delete(e,n)):209===n.kind?(null==(o=l.get(n.parent))?void 0:o.namedImports)?(f??(f=new Set)).add(n):t.delete(e,n):272===n.kind&&t.delete(e,n)}}l.forEach(({importClauseOrBindingPattern:n,defaultImport:i,namedImports:o})=>{Oee(t,e,n,i,Oe(o.entries(),([e,{addAsTypeOnly:t,propertyName:n}])=>({addAsTypeOnly:t,propertyName:n,name:e})),f,r)}),d.forEach(({useRequire:e,defaultImport:t,namedImports:n,namespaceLikeImport:i},o)=>{const s=(e?zee:Jee)(o.slice(2),p,t,n&&Oe(n.entries(),([e,[t,n]])=>({addAsTypeOnly:t,propertyName:n,name:e})),i,a,r);m=oe(m,s)}),m=oe(m,function(){if(!u.size)return;const e=new Set(B([...u],e=>uc(e,xE))),t=new Set(B([...u],e=>uc(e,Jm)));return[...B([...u],e=>272===e.kind?RC(e,!0):void 0),...[...e].map(e=>{var t;return u.has(e)?RC(e,!0):RC(mw.updateImportDeclaration(e,e.modifiers,e.importClause&&mw.updateImportClause(e.importClause,e.importClause.phaseModifier,u.has(e.importClause)?e.importClause.name:void 0,u.has(e.importClause.namedBindings)?e.importClause.namedBindings:(null==(t=tt(e.importClause.namedBindings,EE))?void 0:t.elements.some(e=>u.has(e)))?mw.updateNamedImports(e.importClause.namedBindings,e.importClause.namedBindings.elements.filter(e=>u.has(e))):void 0),e.moduleSpecifier,e.attributes),!0)}),...[...t].map(e=>u.has(e)?RC(e,!0):RC(mw.updateVariableStatement(e,e.modifiers,mw.updateVariableDeclarationList(e.declarationList,B(e.declarationList.declarations,e=>u.has(e)?e:mw.updateVariableDeclaration(e,207===e.name.kind?mw.updateObjectBindingPattern(e.name,e.name.elements.filter(e=>u.has(e))):e.name,e.exclamationToken,e.type,e.initializer)))),!0))]}()),m&&uY(t,e,m,!0,r)},hasFixes:function(){return s.length>0||c.length>0||l.size>0||d.size>0||u.size>0||_.size>0},addImportForUnresolvedIdentifier:function(e,t,n){const r=function(e,t,n){const r=Fee(e,t,n),i=EZ(e.sourceFile,e.preferences,e.host);return r&&Tee(r,e.sourceFile,e.program,i,e.host,e.preferences)}(e,t,n);r&&r.length&&p(ge(r))},addImportForNonExistentExport:function(n,o,s,c,l){const _=t.getSourceFile(o),u=xee(e,t);if(_&&_.symbol){const{fixes:a}=yee([{exportKind:s,isFromPackageJson:!1,moduleFileName:o,moduleSymbol:_.symbol,targetFlags:c}],void 0,l,u,t,e,i,r);a.length&&p({fix:a[0],symbolName:n,errorIdentifierText:n})}else{const _=n0(o,99,t,i);p({fix:{kind:3,moduleSpecifierKind:"relative",moduleSpecifier:nB.getLocalModuleSpecifierBetweenFileNames(e,o,a,KQ(t,i),r),importKind:Dee(_,s,t),addAsTypeOnly:vee(l,0,void 0,c,t.getTypeChecker(),a),useRequire:u},symbolName:n,errorIdentifierText:n})}},removeExistingImport:function(e){274===e.kind&&un.assertIsDefined(e.name,"ImportClause should have a name if it's being removed"),_.add(e)},addVerbatimImport:function(e){u.add(e)}};function p(e){var t,n,r;const{fix:i,symbolName:o}=e;switch(i.kind){case 0:s.push(i);break;case 1:c.push(i);break;case 2:{const{importClauseOrBindingPattern:e,importKind:r,addAsTypeOnly:a,propertyName:s}=i;let c=l.get(e);if(c||l.set(e,c={importClauseOrBindingPattern:e,defaultImport:void 0,namedImports:new Map}),0===r){const e=null==(t=null==c?void 0:c.namedImports.get(o))?void 0:t.addAsTypeOnly;c.namedImports.set(o,{addAsTypeOnly:_(e,a),propertyName:s})}else un.assert(void 0===c.defaultImport||c.defaultImport.name===o,"(Add to Existing) Default import should be missing or match symbolName"),c.defaultImport={name:o,addAsTypeOnly:_(null==(n=c.defaultImport)?void 0:n.addAsTypeOnly,a)};break}case 3:{const{moduleSpecifier:e,importKind:t,useRequire:n,addAsTypeOnly:s,propertyName:c}=i,l=function(e,t,n,r){const i=u(e,!0),o=u(e,!1),a=d.get(i),s=d.get(o),c={defaultImport:void 0,namedImports:void 0,namespaceLikeImport:void 0,useRequire:n};return 1===t&&2===r?a||(d.set(i,c),c):1===r&&(a||s)?a||s:s||(d.set(o,c),c)}(e,t,n,s);switch(un.assert(l.useRequire===n,"(Add new) Tried to add an `import` and a `require` for the same module"),t){case 1:un.assert(void 0===l.defaultImport||l.defaultImport.name===o,"(Add new) Default import should be missing or match symbolName"),l.defaultImport={name:o,addAsTypeOnly:_(null==(r=l.defaultImport)?void 0:r.addAsTypeOnly,s)};break;case 0:const e=(l.namedImports||(l.namedImports=new Map)).get(o);l.namedImports.set(o,[_(e,s),c]);break;case 3:if(a.verbatimModuleSyntax){const e=(l.namedImports||(l.namedImports=new Map)).get(o);l.namedImports.set(o,[_(e,s),c])}else un.assert(void 0===l.namespaceLikeImport||l.namespaceLikeImport.name===o,"Namespacelike import shoudl be missing or match symbolName"),l.namespaceLikeImport={importKind:t,name:o,addAsTypeOnly:s};break;case 2:un.assert(void 0===l.namespaceLikeImport||l.namespaceLikeImport.name===o,"Namespacelike import shoudl be missing or match symbolName"),l.namespaceLikeImport={importKind:t,name:o,addAsTypeOnly:s}}break}case 4:break;default:un.assertNever(i,`fix wasn't never - got kind ${i.kind}`)}function _(e,t){return Math.max(e??0,t)}function u(e,t){return`${t?1:0}|${e}`}}}function uee(e,t,n,r){const i=EZ(e,r,n),o=bee(e,t);return{getModuleSpecifierForBestExportInfo:function(a,s,c,l){const{fixes:_,computedWithoutCacheCount:u}=yee(a,s,c,!1,t,e,n,r,o,l),d=Cee(_,e,t,i,n,r);return d&&{...d,computedWithoutCacheCount:u}}}}function dee(e,t,n,r,i,o,a,s,c,l,_,u){let d;n?(d=p0(r,a,s,_,u).get(r.path,n),un.assertIsDefined(d,"Some exportInfo should match the specified exportMapKey")):(d=bo(Fy(t.name))?[hee(e,i,t,s,a)]:gee(r,e,i,t,o,s,a,_,u),un.assertIsDefined(d,"Some exportInfo should match the specified symbol / moduleSymbol"));const p=xee(r,s),f=bT(HX(r,l)),m=un.checkDefined(fee(r,d,s,l,f,p,a,_));return{moduleSpecifier:m.moduleSpecifier,codeAction:mee(Aee({host:a,formatContext:c,preferences:_},r,i,m,!1,s,_))}}function pee(e,t,n,r,i,o){const a=n.getCompilerOptions(),s=xe(Pee(e,n.getTypeChecker(),t,a)),c=Eee(e,t,s,n),l=s!==t.text;return c&&mee(Aee({host:r,formatContext:i,preferences:o},e,s,c,l,n,o))}function fee(e,t,n,r,i,o,a,s){const c=EZ(e,s,a);return Cee(yee(t,r,i,o,n,e,a,s).fixes,e,n,c,a,s)}function mee({description:e,changes:t,commands:n}){return{description:e,changes:t,commands:n}}function gee(e,t,n,r,i,o,a,s,c){const l=kee(o,a),_=s.autoImportFileExcludePatterns&&d0(a,s),u=o.getTypeChecker().getMergedSymbol(r),d=_&&u.declarations&&Hu(u,308),p=d&&_(d);return p0(e,a,o,s,c).search(e.path,i,e=>e===n,e=>{const n=l(e[0].isFromPackageJson);if(n.getMergedSymbol(ox(e[0].symbol,n))===t&&(p||e.some(e=>n.getMergedSymbol(e.moduleSymbol)===r||e.symbol.parent===r)))return e})}function hee(e,t,n,r,i){var o,a;const s=l(r.getTypeChecker(),!1);if(s)return s;const c=null==(a=null==(o=i.getPackageJsonAutoImportProvider)?void 0:o.call(i))?void 0:a.getTypeChecker();return un.checkDefined(c&&l(c,!0),"Could not find symbol in specified module for code actions");function l(r,i){const o=f0(n,r);if(o&&ox(o.symbol,r)===e)return{symbol:o.symbol,moduleSymbol:n,moduleFileName:void 0,exportKind:o.exportKind,targetFlags:ox(e,r).flags,isFromPackageJson:i};const a=r.tryGetMemberInModuleExportsAndProperties(t,n);return a&&ox(a,r)===e?{symbol:a,moduleSymbol:n,moduleFileName:void 0,exportKind:0,targetFlags:ox(e,r).flags,isFromPackageJson:i}:void 0}}function yee(e,t,n,r,i,o,a,s,c=(Dm(o)?bee(o,i):void 0),_){const u=i.getTypeChecker(),d=c?O(e,c.getImportsForExportInfo):l,p=void 0!==t&&function(e,t){return f(e,({declaration:e,importKind:n})=>{var r;if(0!==n)return;const i=function(e){var t,n,r;switch(e.kind){case 261:return null==(t=tt(e.name,aD))?void 0:t.text;case 272:return e.name.text;case 352:case 273:return null==(r=tt(null==(n=e.importClause)?void 0:n.namedBindings,DE))?void 0:r.name.text;default:return un.assertNever(e)}}(e),o=i&&(null==(r=yg(e))?void 0:r.text);return o?{kind:0,namespacePrefix:i,usagePosition:t,moduleSpecifierKind:void 0,moduleSpecifier:o}:void 0})}(d,t),m=function(e,t,n,r){let i;for(const t of e){const e=o(t);if(!e)continue;const n=Bl(e.importClauseOrBindingPattern);if(4!==e.addAsTypeOnly&&n||4===e.addAsTypeOnly&&!n)return e;i??(i=e)}return i;function o({declaration:e,importKind:i,symbol:o,targetFlags:a}){if(3===i||2===i||272===e.kind)return;if(261===e.kind)return 0!==i&&1!==i||207!==e.name.kind?void 0:{kind:2,importClauseOrBindingPattern:e.name,importKind:i,moduleSpecifierKind:void 0,moduleSpecifier:e.initializer.arguments[0].text,addAsTypeOnly:4};const{importClause:s}=e;if(!s||!ju(e.moduleSpecifier))return;const{name:c,namedBindings:l}=s;if(s.isTypeOnly&&(0!==i||!l))return;const _=vee(t,0,o,a,n,r);return 1===i&&(c||2===_&&l)||0===i&&275===(null==l?void 0:l.kind)?void 0:{kind:2,importClauseOrBindingPattern:s,importKind:i,moduleSpecifierKind:void 0,moduleSpecifier:e.moduleSpecifier.text,addAsTypeOnly:_}}}(d,n,u,i.getCompilerOptions());if(m)return{computedWithoutCacheCount:0,fixes:[...p?[p]:l,m]};const{fixes:g,computedWithoutCacheCount:h=0}=function(e,t,n,r,i,o,a,s,c,l){const _=f(t,e=>function({declaration:e,importKind:t,symbol:n,targetFlags:r},i,o,a,s){var c;const l=null==(c=yg(e))?void 0:c.text;if(l)return{kind:3,moduleSpecifierKind:void 0,moduleSpecifier:l,importKind:t,addAsTypeOnly:o?4:vee(i,0,n,r,a,s),useRequire:o}}(e,o,a,n.getTypeChecker(),n.getCompilerOptions()));return _?{fixes:[_]}:function(e,t,n,r,i,o,a,s,c){const l=OS(t.fileName),_=e.getCompilerOptions(),u=KQ(e,a),d=kee(e,a),p=XQ(bk(_)),f=c?e=>nB.tryGetModuleSpecifiersFromCache(e.moduleSymbol,t,u,s):(e,n)=>nB.getModuleSpecifiersWithCacheInfo(e.moduleSymbol,n,_,t,u,s,void 0,!0);let m=0;const g=O(o,(o,a)=>{const s=d(o.isFromPackageJson),{computedWithoutCache:c,moduleSpecifiers:u,kind:g}=f(o,s)??{},h=!!(111551&o.targetFlags),y=vee(r,0,o.symbol,o.targetFlags,s,_);return m+=c?1:0,B(u,r=>{if(p&&GM(r))return;if(!h&&l&&void 0!==n)return{kind:1,moduleSpecifierKind:g,moduleSpecifier:r,usagePosition:n,exportInfo:o,isReExport:a>0};const c=Dee(t,o.exportKind,e);let u;if(void 0!==n&&3===c&&0===o.exportKind){const e=s.resolveExternalModuleSymbol(o.moduleSymbol);let t;e!==o.moduleSymbol&&(t=g0(e,s,yk(_),st)),t||(t=qZ(o.moduleSymbol,yk(_),!1)),u={namespacePrefix:t,usagePosition:n}}return{kind:3,moduleSpecifierKind:g,moduleSpecifier:r,importKind:c,useRequire:i,addAsTypeOnly:y,exportInfo:o,isReExport:a>0,qualification:u}})});return{computedWithoutCacheCount:m,fixes:g}}(n,r,i,o,a,e,s,c,l)}(e,d,i,o,t,n,r,a,s,_);return{computedWithoutCacheCount:h,fixes:[...p?[p]:l,...g]}}function vee(e,t,n,r,i,o){return e?!n||!o.verbatimModuleSyntax||111551&r&&!i.getTypeOnlyAliasDeclaration(n)?1:2:4}function bee(e,t){const n=t.getTypeChecker();let r;for(const t of e.imports){const e=vg(t);if(jm(e.parent)){const i=n.resolveExternalModuleName(t);i&&(r||(r=$e())).add(eJ(i),e.parent)}else if(273===e.kind||272===e.kind||352===e.kind){const i=n.getSymbolAtLocation(t);i&&(r||(r=$e())).add(eJ(i),e)}}return{getImportsForExportInfo:({moduleSymbol:n,exportKind:i,targetFlags:o,symbol:a})=>{const s=null==r?void 0:r.get(eJ(n));if(!s)return l;if(Fm(e)&&!(111551&o)&&!v(s,XP))return l;const c=Dee(e,i,t);return s.map(e=>({declaration:e,importKind:c,symbol:a,targetFlags:o}))}}}function xee(e,t){if(!OS(e.fileName))return!1;if(e.commonJsModuleIndicator&&!e.externalModuleIndicator)return!0;if(e.externalModuleIndicator&&!e.commonJsModuleIndicator)return!1;const n=t.getCompilerOptions();if(n.configFile)return vk(n)<5;if(1===Vee(e,t))return!0;if(99===Vee(e,t))return!1;for(const n of t.getSourceFiles())if(n!==e&&Fm(n)&&!t.isSourceFileFromExternalLibrary(n)){if(n.commonJsModuleIndicator&&!n.externalModuleIndicator)return!0;if(n.externalModuleIndicator&&!n.commonJsModuleIndicator)return!1}return!0}function kee(e,t){return pt(n=>n?t.getPackageJsonAutoImportProvider().getTypeChecker():e.getTypeChecker())}function See(e,t,n,r){const i=HX(e.sourceFile,n);let o;if(t===_a._0_refers_to_a_UMD_global_but_the_current_file_is_a_module_Consider_adding_an_import_instead.code)o=function({sourceFile:e,program:t,host:n,preferences:r},i){const o=t.getTypeChecker(),a=function(e,t){const n=aD(e)?t.getSymbolAtLocation(e):void 0;if(hx(n))return n;const{parent:r}=e;if(bu(r)&&r.tagName===e||$E(r)){const n=t.resolveName(t.getJsxNamespace(r),bu(r)?e:r,111551,!1);if(hx(n))return n}}(i,o);if(!a)return;const s=o.getAliasedSymbol(a),c=a.name;return yee([{symbol:a,moduleSymbol:s,moduleFileName:void 0,exportKind:3,targetFlags:s.flags,isFromPackageJson:!1}],void 0,!1,xee(e,t),t,e,n,r).fixes.map(e=>{var t;return{fix:e,symbolName:c,errorIdentifierText:null==(t=tt(i,aD))?void 0:t.text}})}(e,i);else{if(!aD(i))return;if(t===_a._0_cannot_be_used_as_a_value_because_it_was_imported_using_import_type.code){const t=xe(Pee(e.sourceFile,e.program.getTypeChecker(),i,e.program.getCompilerOptions())),n=Eee(e.sourceFile,i,t,e.program);return n&&[{fix:n,symbolName:t,errorIdentifierText:i.text}]}o=Fee(e,i,r)}const a=EZ(e.sourceFile,e.preferences,e.host);return o&&Tee(o,e.sourceFile,e.program,a,e.host,e.preferences)}function Tee(e,t,n,r,i,o){const a=e=>Uo(e,i.getCurrentDirectory(),My(i));return _e(e,(e,i)=>Ot(!!e.isJsxNamespaceFix,!!i.isJsxNamespaceFix)||vt(e.fix.kind,i.fix.kind)||wee(e.fix,i.fix,t,n,o,r.allowsImportingSpecifier,a))}function Cee(e,t,n,r,i,o){if($(e))return 0===e[0].kind||2===e[0].kind?e[0]:e.reduce((e,a)=>-1===wee(a,e,t,n,o,r.allowsImportingSpecifier,e=>Uo(e,i.getCurrentDirectory(),My(i)))?a:e)}function wee(e,t,n,r,i,o,a){return 0!==e.kind&&0!==t.kind?Ot("node_modules"!==t.moduleSpecifierKind||o(t.moduleSpecifier),"node_modules"!==e.moduleSpecifierKind||o(e.moduleSpecifier))||function(e,t,n){return"non-relative"===n.importModuleSpecifierPreference||"project-relative"===n.importModuleSpecifierPreference?Ot("relative"===e.moduleSpecifierKind,"relative"===t.moduleSpecifierKind):0}(e,t,i)||function(e,t,n,r){return Gt(e,"node:")&&!Gt(t,"node:")?HZ(n,r)?-1:1:Gt(t,"node:")&&!Gt(e,"node:")?HZ(n,r)?1:-1:0}(e.moduleSpecifier,t.moduleSpecifier,n,r)||Ot(Nee(e,n.path,a),Nee(t,n.path,a))||zS(e.moduleSpecifier,t.moduleSpecifier):0}function Nee(e,t,n){var r;return!(!e.isReExport||!(null==(r=e.exportInfo)?void 0:r.moduleFileName)||"index"!==Fo(e.exportInfo.moduleFileName,[".js",".jsx",".d.ts",".ts",".tsx"],!0))&&Gt(t,n(Do(e.exportInfo.moduleFileName)))}function Dee(e,t,n,r){if(n.getCompilerOptions().verbatimModuleSyntax&&1===function(e,t){return Dm(e)?t.getEmitModuleFormatOfFile(e):MV(e,t.getCompilerOptions())}(e,n))return 3;switch(t){case 0:return 0;case 1:return 1;case 2:return function(e,t,n){const r=Tk(t),i=OS(e.fileName);if(!i&&vk(t)>=5)return r?1:2;if(i)return e.externalModuleIndicator||n?r?1:2:3;for(const t of e.statements??l)if(bE(t)&&!Nd(t.moduleReference))return 3;return r?1:3}(e,n.getCompilerOptions(),!!r);case 3:return function(e,t,n){if(Tk(t.getCompilerOptions()))return 1;const r=vk(t.getCompilerOptions());switch(r){case 2:case 1:case 3:return OS(e.fileName)&&(e.externalModuleIndicator||n)?2:3;case 4:case 5:case 6:case 7:case 99:case 0:case 200:return 2;case 100:case 101:case 102:case 199:return 99===Vee(e,t)?2:3;default:return un.assertNever(r,`Unexpected moduleKind ${r}`)}}(e,n,!!r);case 4:return 2;default:return un.assertNever(t)}}function Fee({sourceFile:e,program:t,cancellationToken:n,host:r,preferences:i},o,a){const s=t.getTypeChecker(),c=t.getCompilerOptions();return O(Pee(e,s,o,c),s=>{if("default"===s)return;const c=bT(o),l=xee(e,t),_=function(e,t,n,r,i,o,a,s,c){var l;const _=$e(),u=EZ(i,c,s),d=null==(l=s.getModuleSpecifierCache)?void 0:l.call(s),p=pt(e=>KQ(e?s.getPackageJsonAutoImportProvider():o,s));function f(e,t,n,r,o,a){const s=p(a);if(a0(o,i,t,e,c,u,s,d)){const i=o.getTypeChecker();_.add(KY(n,i).toString(),{symbol:n,moduleSymbol:e,moduleFileName:null==t?void 0:t.fileName,exportKind:r,targetFlags:ox(n,i).flags,isFromPackageJson:a})}}return c0(o,s,c,a,(i,o,a,s)=>{const c=a.getTypeChecker();r.throwIfCancellationRequested();const l=a.getCompilerOptions(),_=f0(i,c);_&&Uee(c.getSymbolFlags(_.symbol),n)&&g0(_.symbol,c,yk(l),(n,r)=>(t?r??n:n)===e)&&f(i,o,_.symbol,_.exportKind,a,s);const u=c.tryGetMemberInModuleExportsAndProperties(e,i);u&&Uee(c.getSymbolFlags(u),n)&&f(i,o,u,0,a,s)}),_}(s,vm(o),WG(o),n,e,t,a,r,i);return Oe(j(_.values(),n=>yee(n,o.getStart(e),c,l,t,e,r,i).fixes),e=>({fix:e,symbolName:s,errorIdentifierText:o.text,isJsxNamespaceFix:s!==o.text}))})}function Eee(e,t,n,r){const i=r.getTypeChecker(),o=i.resolveName(n,t,111551,!0);if(!o)return;const a=i.getTypeOnlyAliasDeclaration(o);return a&&vd(a)===e?{kind:4,typeOnlyAliasDeclaration:a}:void 0}function Pee(e,t,n,r){const i=n.parent;if((bu(i)||VE(i))&&i.tagName===n&&QZ(r.jsx)){const r=t.getJsxNamespace(e);if(function(e,t,n){if(Ey(t.text))return!0;const r=n.resolveName(e,t,111551,!0);return!r||$(r.declarations,zl)&&!(111551&r.flags)}(r,n,t))return Ey(n.text)||t.resolveName(n.text,n,111551,!1)?[r]:[n.text,r]}return[n.text]}function Aee(e,t,n,r,i,o,a){let s;const c=jue.ChangeTracker.with(e,e=>{s=function(e,t,n,r,i,o,a){const s=tY(t,a);switch(r.kind){case 0:return Lee(e,t,r),[_a.Change_0_to_1,n,`${r.namespacePrefix}.${n}`];case 1:return jee(e,t,r,s),[_a.Change_0_to_1,n,Mee(r.moduleSpecifier,s)+n];case 2:{const{importClauseOrBindingPattern:o,importKind:s,addAsTypeOnly:c,moduleSpecifier:_}=r;Oee(e,t,o,1===s?{name:n,addAsTypeOnly:c}:void 0,0===s?[{name:n,addAsTypeOnly:c}]:l,void 0,a);const u=Fy(_);return i?[_a.Import_0_from_1,n,u]:[_a.Update_import_from_0,u]}case 3:{const{importKind:c,moduleSpecifier:l,addAsTypeOnly:_,useRequire:u,qualification:d}=r;return uY(e,t,(u?zee:Jee)(l,s,1===c?{name:n,addAsTypeOnly:_}:void 0,0===c?[{name:n,addAsTypeOnly:_}]:void 0,2===c||3===c?{importKind:c,name:(null==d?void 0:d.namespacePrefix)||n,addAsTypeOnly:_}:void 0,o.getCompilerOptions(),a),!0,a),d&&Lee(e,t,d),i?[_a.Import_0_from_1,n,l]:[_a.Add_import_from_0,l]}case 4:{const{typeOnlyAliasDeclaration:i}=r,s=function(e,t,n,r,i){const o=n.getCompilerOptions(),a=o.verbatimModuleSyntax;switch(t.kind){case 277:if(t.isTypeOnly){if(t.parent.elements.length>1){const n=mw.updateImportSpecifier(t,!1,t.propertyName,t.name),{specifierComparer:o}=Yle.getNamedImportSpecifierComparerWithDetection(t.parent.parent.parent,i,r),a=Yle.getImportSpecifierInsertionIndex(t.parent.elements,n,o);if(a!==t.parent.elements.indexOf(t))return e.delete(r,t),e.insertImportSpecifierAtIndex(r,n,t.parent,a),t}return e.deleteRange(r,{pos:zd(t.getFirstToken()),end:zd(t.propertyName??t.name)}),t}return un.assert(t.parent.parent.isTypeOnly),s(t.parent.parent),t.parent.parent;case 274:return s(t),t;case 275:return s(t.parent),t.parent;case 272:return e.deleteRange(r,t.getChildAt(1)),t;default:un.failBadSyntaxKind(t)}function s(s){var c;if(e.delete(r,dY(s,r)),!o.allowImportingTsExtensions){const t=yg(s.parent),i=t&&(null==(c=n.getResolvedModuleFromModuleSpecifier(t,r))?void 0:c.resolvedModule);if(null==i?void 0:i.resolvedUsingTsExtension){const n=Ho(t.text,Zq(t.text,o));e.replaceNode(r,t,mw.createStringLiteral(n))}}if(a){const n=tt(s.namedBindings,EE);if(n&&n.elements.length>1){!1!==Yle.getNamedImportSpecifierComparerWithDetection(s.parent,i,r).isSorted&&277===t.kind&&0!==n.elements.indexOf(t)&&(e.delete(r,t),e.insertImportSpecifierAtIndex(r,t,n,0));for(const i of n.elements)i===t||i.isTypeOnly||e.insertModifierBefore(r,156,i)}}}}(e,i,o,t,a);return 277===s.kind?[_a.Remove_type_from_import_of_0_from_1,n,Iee(s.parent.parent)]:[_a.Remove_type_from_import_declaration_from_0,Iee(s)]}default:return un.assertNever(r,`Unexpected fix kind ${r.kind}`)}}(e,t,n,r,i,o,a)});return F7(aee,c,s,see,_a.Add_all_missing_imports)}function Iee(e){var t,n;return 272===e.kind?(null==(n=tt(null==(t=tt(e.moduleReference,JE))?void 0:t.expression,ju))?void 0:n.text)||e.moduleReference.getText():nt(e.parent.moduleSpecifier,UN).text}function Oee(e,t,n,r,i,o,a){var s;if(207===n.kind){if(o&&n.elements.some(e=>o.has(e)))return void e.replaceNode(t,n,mw.createObjectBindingPattern([...n.elements.filter(e=>!o.has(e)),...r?[mw.createBindingElement(void 0,"default",r.name)]:l,...i.map(e=>mw.createBindingElement(void 0,e.propertyName,e.name))]));r&&u(n,r.name,"default");for(const e of i)u(n,e.name,e.propertyName);return}const c=n.isTypeOnly&&$([r,...i],e=>4===(null==e?void 0:e.addAsTypeOnly)),_=n.namedBindings&&(null==(s=tt(n.namedBindings,EE))?void 0:s.elements);if(r&&(un.assert(!n.name,"Cannot add a default import to an import clause that already has one"),e.insertNodeAt(t,n.getStart(t),mw.createIdentifier(r.name),{suffix:", "})),i.length){const{specifierComparer:r,isSorted:s}=Yle.getNamedImportSpecifierComparerWithDetection(n.parent,a,t),l=_e(i.map(e=>mw.createImportSpecifier((!n.isTypeOnly||c)&&Bee(e,a),void 0===e.propertyName?void 0:mw.createIdentifier(e.propertyName),mw.createIdentifier(e.name))),r);if(o)e.replaceNode(t,n.namedBindings,mw.updateNamedImports(n.namedBindings,_e([..._.filter(e=>!o.has(e)),...l],r)));else if((null==_?void 0:_.length)&&!1!==s){const i=c&&_?mw.updateNamedImports(n.namedBindings,A(_,e=>mw.updateImportSpecifier(e,!0,e.propertyName,e.name))).elements:_;for(const o of l){const a=Yle.getImportSpecifierInsertionIndex(i,o,r);e.insertImportSpecifierAtIndex(t,o,n.namedBindings,a)}}else if(null==_?void 0:_.length)for(const n of l)e.insertNodeInListAfter(t,ve(_),n,_);else if(l.length){const r=mw.createNamedImports(l);n.namedBindings?e.replaceNode(t,n.namedBindings,r):e.insertNodeAfter(t,un.checkDefined(n.name,"Import clause must have either named imports or a default import"),r)}}if(c&&(e.delete(t,dY(n,t)),_))for(const n of _)e.insertModifierBefore(t,156,n);function u(n,r,i){const o=mw.createBindingElement(void 0,i,r);n.elements.length?e.insertNodeInListAfter(t,ve(n.elements),o):e.replaceNode(t,n,mw.createObjectBindingPattern([o]))}}function Lee(e,t,{namespacePrefix:n,usagePosition:r}){e.insertText(t,r,n+".")}function jee(e,t,{moduleSpecifier:n,usagePosition:r},i){e.insertText(t,r,Mee(n,i))}function Mee(e,t){const n=nY(t);return`import(${n}${e}${n}).`}function Ree({addAsTypeOnly:e}){return 2===e}function Bee(e,t){return Ree(e)||!!t.preferTypeOnlyAutoImports&&4!==e.addAsTypeOnly}function Jee(e,t,n,r,i,o,a){const s=YQ(e,t);let c;if(void 0!==n||(null==r?void 0:r.length)){const i=(!n||Ree(n))&&v(r,Ree)||(o.verbatimModuleSyntax||a.preferTypeOnlyAutoImports)&&4!==(null==n?void 0:n.addAsTypeOnly)&&!$(r,e=>4===e.addAsTypeOnly);c=oe(c,QQ(n&&mw.createIdentifier(n.name),null==r?void 0:r.map(e=>mw.createImportSpecifier(!i&&Bee(e,a),void 0===e.propertyName?void 0:mw.createIdentifier(e.propertyName),mw.createIdentifier(e.name))),e,t,i))}return i&&(c=oe(c,3===i.importKind?mw.createImportEqualsDeclaration(void 0,Bee(i,a),mw.createIdentifier(i.name),mw.createExternalModuleReference(s)):mw.createImportDeclaration(void 0,mw.createImportClause(Bee(i,a)?156:void 0,void 0,mw.createNamespaceImport(mw.createIdentifier(i.name))),s,void 0))),un.checkDefined(c)}function zee(e,t,n,r,i){const o=YQ(e,t);let a;if(n||(null==r?void 0:r.length)){const e=(null==r?void 0:r.map(({name:e,propertyName:t})=>mw.createBindingElement(void 0,t,e)))||[];n&&e.unshift(mw.createBindingElement(void 0,"default",n.name)),a=oe(a,qee(mw.createObjectBindingPattern(e),o))}return i&&(a=oe(a,qee(i.name,o))),un.checkDefined(a)}function qee(e,t){return mw.createVariableStatement(void 0,mw.createVariableDeclarationList([mw.createVariableDeclaration("string"==typeof e?mw.createIdentifier(e):e,void 0,void 0,mw.createCallExpression(mw.createIdentifier("require"),void 0,[t]))],2))}function Uee(e,t){return!!(7===t||(1&t?111551&e:2&t?788968&e:4&t&&1920&e))}function Vee(e,t){return Dm(e)?t.getImpliedNodeFormatForEmit(e):RV(e,t.getCompilerOptions())}A7({errorCodes:cee,getCodeActions(e){const{errorCode:t,preferences:n,sourceFile:r,span:i,program:o}=e,a=See(e,t,i.start,!0);if(a)return a.map(({fix:t,symbolName:i,errorIdentifierText:a})=>Aee(e,r,i,t,i!==a,o,n))},fixIds:[see],getAllCodeActions:e=>{const{sourceFile:t,program:n,preferences:r,host:i,cancellationToken:o}=e,a=_ee(t,n,!0,r,i,o);return B7(e,cee,t=>a.addImportFromDiagnostic(t,e)),j7(jue.ChangeTracker.with(e,a.writeFixes))}});var Wee="addMissingConstraint",$ee=[_a.Type_0_is_not_comparable_to_type_1.code,_a.Type_0_is_not_assignable_to_type_1_Two_different_types_with_this_name_exist_but_they_are_unrelated.code,_a.Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_types_of_the_target_s_properties.code,_a.Type_0_is_not_assignable_to_type_1.code,_a.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_types_of_the_target_s_properties.code,_a.Property_0_is_incompatible_with_index_signature.code,_a.Property_0_in_type_1_is_not_assignable_to_type_2.code,_a.Type_0_does_not_satisfy_the_constraint_1.code];function Hee(e,t,n){const r=b(e.getSemanticDiagnostics(t),e=>e.start===n.start&&e.length===n.length);if(void 0===r||void 0===r.relatedInformation)return;const i=b(r.relatedInformation,e=>e.code===_a.This_type_parameter_might_need_an_extends_0_constraint.code);if(void 0===i||void 0===i.file||void 0===i.start||void 0===i.length)return;let o=noe(i.file,Ws(i.start,i.length));if(void 0!==o&&(aD(o)&&SD(o.parent)&&(o=o.parent),SD(o))){if(nF(o.parent))return;const r=HX(t,n.start);return{constraint:function(e,t){if(b_(t.parent))return e.getTypeArgumentConstraint(t.parent);return(V_(t)?e.getContextualType(t):void 0)||e.getTypeAtLocation(t)}(e.getTypeChecker(),r)||function(e){const[,t]=cV(e,"\n",0).match(/`extends (.*)`/)||[];return t}(i.messageText),declaration:o,token:r}}}function Kee(e,t,n,r,i,o){const{declaration:a,constraint:s}=o,c=t.getTypeChecker();if(Ze(s))e.insertText(i,a.name.end,` extends ${s}`);else{const o=yk(t.getCompilerOptions()),l=Iie({program:t,host:r}),_=lee(i,t,n,r),u=Bie(c,_,s,void 0,o,void 0,void 0,l);u&&(e.replaceNode(i,a,mw.updateTypeParameterDeclaration(a,void 0,a.name,u,a.default)),_.writeFixes(e))}}A7({errorCodes:$ee,getCodeActions(e){const{sourceFile:t,span:n,program:r,preferences:i,host:o}=e,a=Hee(r,t,n);if(void 0===a)return;const s=jue.ChangeTracker.with(e,e=>Kee(e,r,i,o,t,a));return[F7(Wee,s,_a.Add_extends_constraint,Wee,_a.Add_extends_constraint_to_all_type_parameters)]},fixIds:[Wee],getAllCodeActions:e=>{const{program:t,preferences:n,host:r}=e,i=new Set;return j7(jue.ChangeTracker.with(e,o=>{B7(e,$ee,e=>{const a=Hee(t,e.file,Ws(e.start,e.length));if(a&&bx(i,ZB(a.declaration)))return Kee(o,t,n,r,e.file,a)})}))}});var Gee="fixOverrideModifier",Xee="fixAddOverrideModifier",Qee="fixRemoveOverrideModifier",Yee=[_a.This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0.code,_a.This_member_cannot_have_an_override_modifier_because_its_containing_class_0_does_not_extend_another_class.code,_a.This_member_must_have_an_override_modifier_because_it_overrides_an_abstract_method_that_is_declared_in_the_base_class_0.code,_a.This_member_must_have_an_override_modifier_because_it_overrides_a_member_in_the_base_class_0.code,_a.This_parameter_property_must_have_an_override_modifier_because_it_overrides_a_member_in_base_class_0.code,_a.This_member_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_class_0.code,_a.This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_its_containing_class_0_does_not_extend_another_class.code,_a.This_parameter_property_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_class_0.code,_a.This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base_class_0.code],Zee={[_a.This_member_must_have_an_override_modifier_because_it_overrides_a_member_in_the_base_class_0.code]:{descriptions:_a.Add_override_modifier,fixId:Xee,fixAllDescriptions:_a.Add_all_missing_override_modifiers},[_a.This_member_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_class_0.code]:{descriptions:_a.Add_override_modifier,fixId:Xee,fixAllDescriptions:_a.Add_all_missing_override_modifiers},[_a.This_member_cannot_have_an_override_modifier_because_its_containing_class_0_does_not_extend_another_class.code]:{descriptions:_a.Remove_override_modifier,fixId:Qee,fixAllDescriptions:_a.Remove_all_unnecessary_override_modifiers},[_a.This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_its_containing_class_0_does_not_extend_another_class.code]:{descriptions:_a.Remove_override_modifier,fixId:Qee,fixAllDescriptions:_a.Remove_override_modifier},[_a.This_parameter_property_must_have_an_override_modifier_because_it_overrides_a_member_in_base_class_0.code]:{descriptions:_a.Add_override_modifier,fixId:Xee,fixAllDescriptions:_a.Add_all_missing_override_modifiers},[_a.This_parameter_property_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_class_0.code]:{descriptions:_a.Add_override_modifier,fixId:Xee,fixAllDescriptions:_a.Add_all_missing_override_modifiers},[_a.This_member_must_have_an_override_modifier_because_it_overrides_an_abstract_method_that_is_declared_in_the_base_class_0.code]:{descriptions:_a.Add_override_modifier,fixId:Xee,fixAllDescriptions:_a.Remove_all_unnecessary_override_modifiers},[_a.This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0.code]:{descriptions:_a.Remove_override_modifier,fixId:Qee,fixAllDescriptions:_a.Remove_all_unnecessary_override_modifiers},[_a.This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base_class_0.code]:{descriptions:_a.Remove_override_modifier,fixId:Qee,fixAllDescriptions:_a.Remove_all_unnecessary_override_modifiers}};function ete(e,t,n,r){switch(n){case _a.This_member_must_have_an_override_modifier_because_it_overrides_a_member_in_the_base_class_0.code:case _a.This_member_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_class_0.code:case _a.This_member_must_have_an_override_modifier_because_it_overrides_an_abstract_method_that_is_declared_in_the_base_class_0.code:case _a.This_parameter_property_must_have_an_override_modifier_because_it_overrides_a_member_in_base_class_0.code:case _a.This_parameter_property_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_class_0.code:return function(e,t,n){const r=nte(t,n);if(Fm(t))return void e.addJSDocTags(t,r,[mw.createJSDocOverrideTag(mw.createIdentifier("override"))]);const i=r.modifiers||l,o=b(i,fD),a=b(i,mD),s=b(i,e=>kQ(e.kind)),c=x(i,CD),_=a?a.end:o?o.end:s?s.end:c?Qa(t.text,c.end):r.getStart(t),u=s||o||a?{prefix:" "}:{suffix:" "};e.insertModifierAt(t,_,164,u)}(e,t.sourceFile,r);case _a.This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0.code:case _a.This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base_class_0.code:case _a.This_member_cannot_have_an_override_modifier_because_its_containing_class_0_does_not_extend_another_class.code:case _a.This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_its_containing_class_0_does_not_extend_another_class.code:return function(e,t,n){const r=nte(t,n);if(Fm(t))return void e.filterJSDocTags(t,r,tn(OP));const i=b(r.modifiers,gD);un.assertIsDefined(i),e.deleteModifier(t,i)}(e,t.sourceFile,r);default:un.fail("Unexpected error code: "+n)}}function tte(e){switch(e.kind){case 177:case 173:case 175:case 178:case 179:return!0;case 170:return Zs(e,e.parent);default:return!1}}function nte(e,t){const n=uc(HX(e,t),e=>u_(e)?"quit":tte(e));return un.assert(n&&tte(n)),n}A7({errorCodes:Yee,getCodeActions:function(e){const{errorCode:t,span:n}=e,r=Zee[t];if(!r)return l;const{descriptions:i,fixId:o,fixAllDescriptions:a}=r,s=jue.ChangeTracker.with(e,r=>ete(r,e,t,n.start));return[E7(Gee,s,i,o,a)]},fixIds:[Gee,Xee,Qee],getAllCodeActions:e=>R7(e,Yee,(t,n)=>{const{code:r,start:i}=n,o=Zee[r];o&&o.fixId===e.fixId&&ete(t,e,r,i)})});var rte="fixNoPropertyAccessFromIndexSignature",ite=[_a.Property_0_comes_from_an_index_signature_so_it_must_be_accessed_with_0.code];function ote(e,t,n,r){const i=tY(t,r),o=mw.createStringLiteral(n.name.text,0===i);e.replaceNode(t,n,fl(n)?mw.createElementAccessChain(n.expression,n.questionDotToken,o):mw.createElementAccessExpression(n.expression,o))}function ate(e,t){return nt(HX(e,t).parent,dF)}A7({errorCodes:ite,fixIds:[rte],getCodeActions(e){const{sourceFile:t,span:n,preferences:r}=e,i=ate(t,n.start),o=jue.ChangeTracker.with(e,t=>ote(t,e.sourceFile,i,r));return[F7(rte,o,[_a.Use_element_access_for_0,i.name.text],rte,_a.Use_element_access_for_all_undeclared_properties)]},getAllCodeActions:e=>R7(e,ite,(t,n)=>ote(t,n.file,ate(n.file,n.start),e.preferences))});var ste="fixImplicitThis",cte=[_a.this_implicitly_has_type_any_because_it_does_not_have_a_type_annotation.code];function lte(e,t,n,r){const i=HX(t,n);if(!vX(i))return;const o=em(i,!1,!1);if((uE(o)||vF(o))&&!sP(em(o,!1,!1))){const n=un.checkDefined(OX(o,100,t)),{name:i}=o,a=un.checkDefined(o.body);if(vF(o)){if(i&&gce.Core.isSymbolReferencedInFile(i,r,t,a))return;return e.delete(t,n),i&&e.delete(t,i),e.insertText(t,a.pos," =>"),[_a.Convert_function_expression_0_to_arrow_function,i?i.text:dZ]}return e.replaceNode(t,n,mw.createToken(87)),e.insertText(t,i.end," = "),e.insertText(t,a.pos," =>"),[_a.Convert_function_declaration_0_to_arrow_function,i.text]}}A7({errorCodes:cte,getCodeActions:function(e){const{sourceFile:t,program:n,span:r}=e;let i;const o=jue.ChangeTracker.with(e,e=>{i=lte(e,t,r.start,n.getTypeChecker())});return i?[F7(ste,o,i,ste,_a.Fix_all_implicit_this_errors)]:l},fixIds:[ste],getAllCodeActions:e=>R7(e,cte,(t,n)=>{lte(t,n.file,n.start,e.program.getTypeChecker())})});var _te="fixImportNonExportedMember",ute=[_a.Module_0_declares_1_locally_but_it_is_not_exported.code];function dte(e,t,n){var r,i;const o=HX(e,t);if(aD(o)){const t=uc(o,xE);if(void 0===t)return;const a=UN(t.moduleSpecifier)?t.moduleSpecifier:void 0;if(void 0===a)return;const s=null==(r=n.getResolvedModuleFromModuleSpecifier(a,e))?void 0:r.resolvedModule;if(void 0===s)return;const c=n.getSourceFile(s.resolvedFileName);if(void 0===c||YZ(n,c))return;const l=null==(i=tt(c.symbol.valueDeclaration,su))?void 0:i.locals;if(void 0===l)return;const _=l.get(o.escapedText);if(void 0===_)return;const d=function(e){if(void 0===e.valueDeclaration)return fe(e.declarations);const t=e.valueDeclaration,n=lE(t)?tt(t.parent.parent,WF):void 0;return n&&1===u(n.declarationList.declarations)?n:t}(_);if(void 0===d)return;return{exportName:{node:o,isTypeOnly:VT(d)},node:d,moduleSourceFile:c,moduleSpecifier:a.text}}}function pte(e,t,n,r,i){u(r)&&(i?mte(e,t,n,i,r):gte(e,t,n,r))}function fte(e,t){return x(e.statements,e=>IE(e)&&(t&&e.isTypeOnly||!e.isTypeOnly))}function mte(e,t,n,r,i){const o=r.exportClause&&OE(r.exportClause)?r.exportClause.elements:mw.createNodeArray([]),a=!(r.isTypeOnly||!kk(t.getCompilerOptions())&&!b(o,e=>e.isTypeOnly));e.replaceNode(n,r,mw.updateExportDeclaration(r,r.modifiers,r.isTypeOnly,mw.createNamedExports(mw.createNodeArray([...o,...hte(i,a)],o.hasTrailingComma)),r.moduleSpecifier,r.attributes))}function gte(e,t,n,r){e.insertNodeAtEndOfScope(n,n,mw.createExportDeclaration(void 0,!1,mw.createNamedExports(hte(r,kk(t.getCompilerOptions()))),void 0,void 0))}function hte(e,t){return mw.createNodeArray(E(e,e=>mw.createExportSpecifier(t&&e.isTypeOnly,void 0,e.node)))}A7({errorCodes:ute,fixIds:[_te],getCodeActions(e){const{sourceFile:t,span:n,program:r}=e,i=dte(t,n.start,r);if(void 0===i)return;const o=jue.ChangeTracker.with(e,e=>function(e,t,{exportName:n,node:r,moduleSourceFile:i}){const o=fte(i,n.isTypeOnly);o?mte(e,t,i,o,[n]):WT(r)?e.insertExportModifier(i,r):gte(e,t,i,[n])}(e,r,i));return[F7(_te,o,[_a.Export_0_from_module_1,i.exportName.node.text,i.moduleSpecifier],_te,_a.Export_all_referenced_locals)]},getAllCodeActions(e){const{program:t}=e;return j7(jue.ChangeTracker.with(e,n=>{const r=new Map;B7(e,ute,e=>{const i=dte(e.file,e.start,t);if(void 0===i)return;const{exportName:o,node:a,moduleSourceFile:s}=i;if(void 0===fte(s,o.isTypeOnly)&&WT(a))n.insertExportModifier(s,a);else{const e=r.get(s)||{typeOnlyExports:[],exports:[]};o.isTypeOnly?e.typeOnlyExports.push(o):e.exports.push(o),r.set(s,e)}}),r.forEach((e,r)=>{const i=fte(r,!0);i&&i.isTypeOnly?(pte(n,t,r,e.typeOnlyExports,i),pte(n,t,r,e.exports,fte(r,!1))):pte(n,t,r,[...e.exports,...e.typeOnlyExports],i)})}))}});var yte="fixIncorrectNamedTupleSyntax";A7({errorCodes:[_a.A_labeled_tuple_element_is_declared_as_optional_with_a_question_mark_after_the_name_and_before_the_colon_rather_than_after_the_type.code,_a.A_labeled_tuple_element_is_declared_as_rest_with_a_before_the_name_rather_than_before_the_type.code],getCodeActions:function(e){const{sourceFile:t,span:n}=e,r=function(e,t){return uc(HX(e,t),e=>203===e.kind)}(t,n.start),i=jue.ChangeTracker.with(e,e=>function(e,t,n){if(!n)return;let r=n.type,i=!1,o=!1;for(;191===r.kind||192===r.kind||197===r.kind;)191===r.kind?i=!0:192===r.kind&&(o=!0),r=r.type;const a=mw.updateNamedTupleMember(n,n.dotDotDotToken||(o?mw.createToken(26):void 0),n.name,n.questionToken||(i?mw.createToken(58):void 0),r);a!==n&&e.replaceNode(t,n,a)}(e,t,r));return[F7(yte,i,_a.Move_labeled_tuple_element_modifiers_to_labels,yte,_a.Move_labeled_tuple_element_modifiers_to_labels)]},fixIds:[yte]});var vte="fixSpelling",bte=[_a.Property_0_does_not_exist_on_type_1_Did_you_mean_2.code,_a.Property_0_may_not_exist_on_type_1_Did_you_mean_2.code,_a.Cannot_find_name_0_Did_you_mean_1.code,_a.Could_not_find_name_0_Did_you_mean_1.code,_a.Cannot_find_namespace_0_Did_you_mean_1.code,_a.Cannot_find_name_0_Did_you_mean_the_instance_member_this_0.code,_a.Cannot_find_name_0_Did_you_mean_the_static_member_1_0.code,_a._0_has_no_exported_member_named_1_Did_you_mean_2.code,_a.This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0_Did_you_mean_1.code,_a.This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base_class_0_Did_you_mean_1.code,_a.No_overload_matches_this_call.code,_a.Type_0_is_not_assignable_to_type_1.code];function xte(e,t,n,r){const i=HX(e,t),o=i.parent;if((r===_a.No_overload_matches_this_call.code||r===_a.Type_0_is_not_assignable_to_type_1.code)&&!KE(o))return;const a=n.program.getTypeChecker();let s;if(dF(o)&&o.name===i){un.assert(dl(i),"Expected an identifier for spelling (property access)");let e=a.getTypeAtLocation(o.expression);64&o.flags&&(e=a.getNonNullableType(e)),s=a.getSuggestedSymbolForNonexistentProperty(i,e)}else if(NF(o)&&103===o.operatorToken.kind&&o.left===i&&sD(i)){const e=a.getTypeAtLocation(o.right);s=a.getSuggestedSymbolForNonexistentProperty(i,e)}else if(xD(o)&&o.right===i){const e=a.getSymbolAtLocation(o.left);e&&1536&e.flags&&(s=a.getSuggestedSymbolForNonexistentModule(o.right,e))}else if(PE(o)&&o.name===i){un.assertNode(i,aD,"Expected an identifier for spelling (import)");const t=function(e,t,n){var r;if(!t||!ju(t.moduleSpecifier))return;const i=null==(r=e.program.getResolvedModuleFromModuleSpecifier(t.moduleSpecifier,n))?void 0:r.resolvedModule;return i?e.program.getSourceFile(i.resolvedFileName):void 0}(n,uc(i,xE),e);t&&t.symbol&&(s=a.getSuggestedSymbolForNonexistentModule(i,t.symbol))}else if(KE(o)&&o.name===i){un.assertNode(i,aD,"Expected an identifier for JSX attribute");const e=uc(i,bu),t=a.getContextualTypeForArgumentAtIndex(e,0);s=a.getSuggestedSymbolForNonexistentJSXAttribute(i,t)}else if(Ev(o)&&__(o)&&o.name===i){const e=uc(i,u_),t=e?yh(e):void 0,n=t?a.getTypeAtLocation(t):void 0;n&&(s=a.getSuggestedSymbolForNonexistentClassMember(Xd(i),n))}else{const e=WG(i),t=Xd(i);un.assert(void 0!==t,"name should be defined"),s=a.getSuggestedSymbolForNonexistentSymbol(i,t,function(e){let t=0;return 4&e&&(t|=1920),2&e&&(t|=788968),1&e&&(t|=111551),t}(e))}return void 0===s?void 0:{node:i,suggestedSymbol:s}}function kte(e,t,n,r,i){const o=yc(r);if(!ms(o,i)&&dF(n.parent)){const i=r.valueDeclaration;i&&Sc(i)&&sD(i.name)?e.replaceNode(t,n,mw.createIdentifier(o)):e.replaceNode(t,n.parent,mw.createElementAccessExpression(n.parent.expression,mw.createStringLiteral(o)))}else e.replaceNode(t,n,mw.createIdentifier(o))}A7({errorCodes:bte,getCodeActions(e){const{sourceFile:t,errorCode:n}=e,r=xte(t,e.span.start,e,n);if(!r)return;const{node:i,suggestedSymbol:o}=r,a=yk(e.host.getCompilationSettings());return[F7("spelling",jue.ChangeTracker.with(e,e=>kte(e,t,i,o,a)),[_a.Change_spelling_to_0,yc(o)],vte,_a.Fix_all_detected_spelling_errors)]},fixIds:[vte],getAllCodeActions:e=>R7(e,bte,(t,n)=>{const r=xte(n.file,n.start,e,n.code),i=yk(e.host.getCompilationSettings());r&&kte(t,e.sourceFile,r.node,r.suggestedSymbol,i)})});var Ste="returnValueCorrect",Tte="fixAddReturnStatement",Cte="fixRemoveBracesFromArrowFunctionBody",wte="fixWrapTheBlockWithParen",Nte=[_a.A_function_whose_declared_type_is_neither_undefined_void_nor_any_must_return_a_value.code,_a.Type_0_is_not_assignable_to_type_1.code,_a.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1.code];function Dte(e,t,n){const r=e.createSymbol(4,t.escapedText);r.links.type=e.getTypeAtLocation(n);const i=Gu([r]);return e.createAnonymousType(void 0,i,[],[],[])}function Fte(e,t,n,r){if(!t.body||!VF(t.body)||1!==u(t.body.statements))return;const i=ge(t.body.statements);if(HF(i)&&Ete(e,t,e.getTypeAtLocation(i.expression),n,r))return{declaration:t,kind:0,expression:i.expression,statement:i,commentSource:i.expression};if(oE(i)&&HF(i.statement)){const o=mw.createObjectLiteralExpression([mw.createPropertyAssignment(i.label,i.statement.expression)]);if(Ete(e,t,Dte(e,i.label,i.statement.expression),n,r))return bF(t)?{declaration:t,kind:1,expression:o,statement:i,commentSource:i.statement.expression}:{declaration:t,kind:0,expression:o,statement:i,commentSource:i.statement.expression}}else if(VF(i)&&1===u(i.statements)){const o=ge(i.statements);if(oE(o)&&HF(o.statement)){const a=mw.createObjectLiteralExpression([mw.createPropertyAssignment(o.label,o.statement.expression)]);if(Ete(e,t,Dte(e,o.label,o.statement.expression),n,r))return{declaration:t,kind:0,expression:a,statement:i,commentSource:o}}}}function Ete(e,t,n,r,i){if(i){const r=e.getSignatureFromDeclaration(t);if(r){Nv(t,1024)&&(n=e.createPromiseType(n));const i=e.createSignature(t,r.typeParameters,r.thisParameter,r.parameters,n,void 0,r.minArgumentCount,r.flags);n=e.createAnonymousType(void 0,Gu(),[i],[],[])}else n=e.getAnyType()}return e.isTypeAssignableTo(n,r)}function Pte(e,t,n,r){const i=HX(t,n);if(!i.parent)return;const o=uc(i.parent,o_);switch(r){case _a.A_function_whose_declared_type_is_neither_undefined_void_nor_any_must_return_a_value.code:if(!(o&&o.body&&o.type&&Xb(o.type,i)))return;return Fte(e,o,e.getTypeFromTypeNode(o.type),!1);case _a.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1.code:if(!o||!fF(o.parent)||!o.body)return;const t=o.parent.arguments.indexOf(o);if(-1===t)return;const n=e.getContextualTypeForArgumentAtIndex(o.parent,t);if(!n)return;return Fte(e,o,n,!0);case _a.Type_0_is_not_assignable_to_type_1.code:if(!lh(i)||!Af(i.parent)&&!KE(i.parent))return;const r=function(e){switch(e.kind){case 261:case 170:case 209:case 173:case 304:return e.initializer;case 292:return e.initializer&&(QE(e.initializer)?e.initializer.expression:void 0);case 305:case 172:case 307:case 349:case 342:return}}(i.parent);if(!r||!o_(r)||!r.body)return;return Fte(e,r,e.getTypeAtLocation(i.parent),!0)}}function Ate(e,t,n,r){UC(n);const i=bZ(t);e.replaceNode(t,r,mw.createReturnStatement(n),{leadingTriviaOption:jue.LeadingTriviaOption.Exclude,trailingTriviaOption:jue.TrailingTriviaOption.Exclude,suffix:i?";":void 0})}function Ite(e,t,n,r,i,o){const a=o||oZ(r)?mw.createParenthesizedExpression(r):r;UC(i),QY(i,a),e.replaceNode(t,n.body,a)}function Ote(e,t,n,r){e.replaceNode(t,n.body,mw.createParenthesizedExpression(r))}function Lte(e,t,n){const r=jue.ChangeTracker.with(e,r=>Ate(r,e.sourceFile,t,n));return F7(Ste,r,_a.Add_a_return_statement,Tte,_a.Add_all_missing_return_statement)}function jte(e,t,n){const r=jue.ChangeTracker.with(e,r=>Ote(r,e.sourceFile,t,n));return F7(Ste,r,_a.Wrap_the_following_body_with_parentheses_which_should_be_an_object_literal,wte,_a.Wrap_all_object_literal_with_parentheses)}A7({errorCodes:Nte,fixIds:[Tte,Cte,wte],getCodeActions:function(e){const{program:t,sourceFile:n,span:{start:r},errorCode:i}=e,o=Pte(t.getTypeChecker(),n,r,i);if(o)return 0===o.kind?ie([Lte(e,o.expression,o.statement)],bF(o.declaration)?function(e,t,n,r){const i=jue.ChangeTracker.with(e,i=>Ite(i,e.sourceFile,t,n,r,!1));return F7(Ste,i,_a.Remove_braces_from_arrow_function_body,Cte,_a.Remove_braces_from_all_arrow_function_bodies_with_relevant_issues)}(e,o.declaration,o.expression,o.commentSource):void 0):[jte(e,o.declaration,o.expression)]},getAllCodeActions:e=>R7(e,Nte,(t,n)=>{const r=Pte(e.program.getTypeChecker(),n.file,n.start,n.code);if(r)switch(e.fixId){case Tte:Ate(t,n.file,r.expression,r.statement);break;case Cte:if(!bF(r.declaration))return;Ite(t,n.file,r.declaration,r.expression,r.commentSource,!1);break;case wte:if(!bF(r.declaration))return;Ote(t,n.file,r.declaration,r.expression);break;default:un.fail(JSON.stringify(e.fixId))}})});var Mte="fixMissingMember",Rte="fixMissingProperties",Bte="fixMissingAttributes",Jte="fixMissingFunctionDeclaration",zte=[_a.Property_0_does_not_exist_on_type_1.code,_a.Property_0_does_not_exist_on_type_1_Did_you_mean_2.code,_a.Property_0_is_missing_in_type_1_but_required_in_type_2.code,_a.Type_0_is_missing_the_following_properties_from_type_1_Colon_2.code,_a.Type_0_is_missing_the_following_properties_from_type_1_Colon_2_and_3_more.code,_a.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1.code,_a.Cannot_find_name_0.code,_a.Type_0_does_not_satisfy_the_expected_type_1.code];function qte(e,t,n,r,i){var o,a;const s=HX(e,t),c=s.parent;if(n===_a.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1.code){if(19!==s.kind||!uF(c)||!fF(c.parent))return;const e=k(c.parent.arguments,e=>e===c);if(e<0)return;const t=r.getResolvedSignature(c.parent);if(!(t&&t.declaration&&t.parameters[e]))return;const n=t.parameters[e].valueDeclaration;if(!(n&&TD(n)&&aD(n.name)))return;const i=Oe(r.getUnmatchedProperties(r.getTypeAtLocation(c),r.getParameterType(t,e).getNonNullableType(),!1,!1));if(!u(i))return;return{kind:3,token:n.name,identifier:n.name.text,properties:i,parentDeclaration:c}}if(19===s.kind||jF(c)||nE(c)){const e=(jF(c)||nE(c))&&c.expression?c.expression:c;if(uF(e)){const t=jF(c)?r.getTypeFromTypeNode(c.type):r.getContextualType(e)||r.getTypeAtLocation(e),n=Oe(r.getUnmatchedProperties(r.getTypeAtLocation(c),t.getNonNullableType(),!1,!1));if(!u(n))return;return{kind:3,token:c,identifier:void 0,properties:n,parentDeclaration:e,indentation:nE(e.parent)||EF(e.parent)?0:void 0}}}if(!dl(s))return;if(aD(s)&&Eu(c)&&c.initializer&&uF(c.initializer)){const e=null==(o=r.getContextualType(s)||r.getTypeAtLocation(s))?void 0:o.getNonNullableType(),t=Oe(r.getUnmatchedProperties(r.getTypeAtLocation(c.initializer),e,!1,!1));if(!u(t))return;return{kind:3,token:s,identifier:s.text,properties:t,parentDeclaration:c.initializer}}if(aD(s)&&bu(s.parent)){const e=function(e,t,n){const r=e.getContextualType(n.attributes);if(void 0===r)return l;const i=r.getProperties();if(!u(i))return l;const o=new Set;for(const t of n.attributes.properties)if(KE(t)&&o.add(tC(t.name)),XE(t)){const n=e.getTypeAtLocation(t.expression);for(const e of n.getProperties())o.add(e.escapedName)}return N(i,e=>ms(e.name,t,1)&&!(16777216&e.flags||48&rx(e)||o.has(e.escapedName)))}(r,yk(i.getCompilerOptions()),s.parent);if(!u(e))return;return{kind:4,token:s,attributes:e,parentDeclaration:s.parent}}if(aD(s)){const t=null==(a=r.getContextualType(s))?void 0:a.getNonNullableType();if(t&&16&gx(t)){const n=fe(r.getSignaturesOfType(t,0));if(void 0===n)return;return{kind:5,token:s,signature:n,sourceFile:e,parentDeclaration:tne(s)}}if(fF(c)&&c.expression===s)return{kind:2,token:s,call:c,sourceFile:e,modifierFlags:0,parentDeclaration:tne(s)}}if(!dF(c))return;const _=UQ(r.getTypeAtLocation(c.expression)),d=_.symbol;if(!d||!d.declarations)return;if(aD(s)&&fF(c.parent)){const t=b(d.declarations,gE),n=null==t?void 0:t.getSourceFile();if(t&&n&&!YZ(i,n))return{kind:2,token:s,call:c.parent,sourceFile:n,modifierFlags:32,parentDeclaration:t};const r=b(d.declarations,sP);if(e.commonJsModuleIndicator)return;if(r&&!YZ(i,r))return{kind:2,token:s,call:c.parent,sourceFile:r,modifierFlags:32,parentDeclaration:r}}const p=b(d.declarations,u_);if(!p&&sD(s))return;const f=p||b(d.declarations,e=>pE(e)||qD(e));if(f&&!YZ(i,f.getSourceFile())){const e=!qD(f)&&(_.target||_)!==r.getDeclaredTypeOfSymbol(d);if(e&&(sD(s)||pE(f)))return;const t=f.getSourceFile(),n=qD(f)?0:(e?256:0)|(WZ(s.text)?2:0),i=Fm(t);return{kind:0,token:s,call:tt(c.parent,fF),modifierFlags:n,parentDeclaration:f,declSourceFile:t,isJSFile:i}}const m=b(d.declarations,mE);return!m||1056&_.flags||sD(s)||YZ(i,m.getSourceFile())?void 0:{kind:1,token:s,parentDeclaration:m}}function Ute(e,t,n,r,i){const o=r.text;if(i){if(232===n.kind)return;const r=n.name.getText(),i=Vte(mw.createIdentifier(r),o);e.insertNodeAfter(t,n,i)}else if(sD(r)){const r=mw.createPropertyDeclaration(void 0,o,void 0,void 0,void 0),i=Hte(n);i?e.insertNodeAfter(t,i,r):e.insertMemberAtStart(t,n,r)}else{const r=iv(n);if(!r)return;const i=Vte(mw.createThis(),o);e.insertNodeAtConstructorEnd(t,r,i)}}function Vte(e,t){return mw.createExpressionStatement(mw.createAssignment(mw.createPropertyAccessExpression(e,t),ene()))}function Wte(e,t,n){let r;if(227===n.parent.parent.kind){const i=n.parent.parent,o=n.parent===i.left?i.right:i.left,a=e.getWidenedType(e.getBaseTypeOfLiteralType(e.getTypeAtLocation(o)));r=e.typeToTypeNode(a,t,1,8)}else{const t=e.getContextualType(n.parent);r=t?e.typeToTypeNode(t,void 0,1,8):void 0}return r||mw.createKeywordTypeNode(133)}function $te(e,t,n,r,i,o){const a=o?mw.createNodeArray(mw.createModifiersFromModifierFlags(o)):void 0,s=u_(n)?mw.createPropertyDeclaration(a,r,void 0,i,void 0):mw.createPropertySignature(void 0,r,void 0,i),c=Hte(n);c?e.insertNodeAfter(t,c,s):e.insertMemberAtStart(t,n,s)}function Hte(e){let t;for(const n of e.members){if(!ND(n))break;t=n}return t}function Kte(e,t,n,r,i,o,a){const s=lee(a,e.program,e.preferences,e.host),c=Mie(u_(o)?175:174,e,s,n,r,i,o),l=function(e,t){if(qD(e))return;const n=uc(t,e=>FD(e)||PD(e));return n&&n.parent===e?n:void 0}(o,n);l?t.insertNodeAfter(a,l,c):t.insertMemberAtStart(a,o,c),s.writeFixes(t)}function Gte(e,t,{token:n,parentDeclaration:r}){const i=$(r.members,e=>{const n=t.getTypeAtLocation(e);return!!(n&&402653316&n.flags)}),o=r.getSourceFile(),a=mw.createEnumMember(n,i?mw.createStringLiteral(n.text):void 0),s=ye(r.members);s?e.insertNodeInListAfter(o,s,a,r.members):e.insertMemberAtStart(o,r,a)}function Xte(e,t,n){const r=tY(t.sourceFile,t.preferences),i=lee(t.sourceFile,t.program,t.preferences,t.host),o=2===n.kind?Mie(263,t,i,n.call,gc(n.token),n.modifierFlags,n.parentDeclaration):jie(263,t,r,n.signature,Kie(_a.Function_not_implemented.message,r),n.token,void 0,void 0,void 0,i);void 0===o&&un.fail("fixMissingFunctionDeclaration codefix got unexpected error."),nE(n.parentDeclaration)?e.insertNodeBefore(n.sourceFile,n.parentDeclaration,o,!0):e.insertNodeAtEndOfScope(n.sourceFile,n.parentDeclaration,o),i.writeFixes(e)}function Qte(e,t,n){const r=lee(t.sourceFile,t.program,t.preferences,t.host),i=tY(t.sourceFile,t.preferences),o=t.program.getTypeChecker(),a=n.parentDeclaration.attributes,s=$(a.properties,XE),c=E(n.attributes,e=>{const a=Zte(t,o,r,i,o.getTypeOfSymbol(e),n.parentDeclaration),s=mw.createIdentifier(e.name),c=mw.createJsxAttribute(s,mw.createJsxExpression(void 0,a));return DT(s,c),c}),l=mw.createJsxAttributes(s?[...c,...a.properties]:[...a.properties,...c]),_={prefix:a.pos===a.end?" ":void 0};e.replaceNode(t.sourceFile,a,l,_),r.writeFixes(e)}function Yte(e,t,n){const r=lee(t.sourceFile,t.program,t.preferences,t.host),i=tY(t.sourceFile,t.preferences),o=yk(t.program.getCompilerOptions()),a=t.program.getTypeChecker(),s=E(n.properties,e=>{const s=Zte(t,a,r,i,a.getTypeOfSymbol(e),n.parentDeclaration);return mw.createPropertyAssignment(function(e,t,n,r){if(Xu(e)){const t=r.symbolToNode(e,111551,void 0,void 0,1);if(t&&kD(t))return t}return zT(e.name,t,0===n,!1,!1)}(e,o,i,a),s)}),c={leadingTriviaOption:jue.LeadingTriviaOption.Exclude,trailingTriviaOption:jue.TrailingTriviaOption.Exclude,indentation:n.indentation};e.replaceNode(t.sourceFile,n.parentDeclaration,mw.createObjectLiteralExpression([...n.parentDeclaration.properties,...s],!0),c),r.writeFixes(e)}function Zte(e,t,n,r,i,o){if(3&i.flags)return ene();if(134217732&i.flags)return mw.createStringLiteral("",0===r);if(8&i.flags)return mw.createNumericLiteral(0);if(64&i.flags)return mw.createBigIntLiteral("0n");if(16&i.flags)return mw.createFalse();if(1056&i.flags){const e=i.symbol.exports?me(i.symbol.exports.values()):i.symbol,n=i.symbol.parent&&256&i.symbol.parent.flags?i.symbol.parent:i.symbol,r=t.symbolToExpression(n,111551,void 0,64);return void 0===e||void 0===r?mw.createNumericLiteral(0):mw.createPropertyAccessExpression(r,t.symbolToString(e))}if(256&i.flags)return mw.createNumericLiteral(i.value);if(2048&i.flags)return mw.createBigIntLiteral(i.value);if(128&i.flags)return mw.createStringLiteral(i.value,0===r);if(512&i.flags)return i===t.getFalseType()||i===t.getFalseType(!0)?mw.createFalse():mw.createTrue();if(65536&i.flags)return mw.createNull();if(1048576&i.flags)return f(i.types,i=>Zte(e,t,n,r,i,o))??ene();if(t.isArrayLikeType(i))return mw.createArrayLiteralExpression();if(function(e){return 524288&e.flags&&(128&gx(e)||e.symbol&&tt(be(e.symbol.declarations),qD))}(i)){const a=E(t.getPropertiesOfType(i),i=>{const a=Zte(e,t,n,r,t.getTypeOfSymbol(i),o);return mw.createPropertyAssignment(i.name,a)});return mw.createObjectLiteralExpression(a,!0)}if(16&gx(i)){if(void 0===b(i.symbol.declarations||l,en(BD,DD,FD)))return ene();const a=t.getSignaturesOfType(i,0);return void 0===a?ene():jie(219,e,r,a[0],Kie(_a.Function_not_implemented.message,r),void 0,void 0,void 0,o,n)??ene()}if(1&gx(i)){const e=mx(i.symbol);if(void 0===e||Pv(e))return ene();const t=iv(e);return t&&u(t.parameters)?ene():mw.createNewExpression(mw.createIdentifier(i.symbol.name),void 0,void 0)}return ene()}function ene(){return mw.createIdentifier("undefined")}function tne(e){if(uc(e,QE)){const t=uc(e.parent,nE);if(t)return t}return vd(e)}A7({errorCodes:zte,getCodeActions(e){const t=e.program.getTypeChecker(),n=qte(e.sourceFile,e.span.start,e.errorCode,t,e.program);if(n){if(3===n.kind){const t=jue.ChangeTracker.with(e,t=>Yte(t,e,n));return[F7(Rte,t,_a.Add_missing_properties,Rte,_a.Add_all_missing_properties)]}if(4===n.kind){const t=jue.ChangeTracker.with(e,t=>Qte(t,e,n));return[F7(Bte,t,_a.Add_missing_attributes,Bte,_a.Add_all_missing_attributes)]}if(2===n.kind||5===n.kind){const t=jue.ChangeTracker.with(e,t=>Xte(t,e,n));return[F7(Jte,t,[_a.Add_missing_function_declaration_0,n.token.text],Jte,_a.Add_all_missing_function_declarations)]}if(1===n.kind){const t=jue.ChangeTracker.with(e,t=>Gte(t,e.program.getTypeChecker(),n));return[F7(Mte,t,[_a.Add_missing_enum_member_0,n.token.text],Mte,_a.Add_all_missing_members)]}return K(function(e,t){const{parentDeclaration:n,declSourceFile:r,modifierFlags:i,token:o,call:a}=t;if(void 0===a)return;const s=o.text,c=t=>jue.ChangeTracker.with(e,i=>Kte(e,i,a,o,t,n,r)),l=[F7(Mte,c(256&i),[256&i?_a.Declare_static_method_0:_a.Declare_method_0,s],Mte,_a.Add_all_missing_members)];return 2&i&&l.unshift(D7(Mte,c(2),[_a.Declare_private_method_0,s])),l}(e,n),function(e,t){return t.isJSFile?rn(function(e,{parentDeclaration:t,declSourceFile:n,modifierFlags:r,token:i}){if(pE(t)||qD(t))return;const o=jue.ChangeTracker.with(e,e=>Ute(e,n,t,i,!!(256&r)));if(0===o.length)return;const a=256&r?_a.Initialize_static_property_0:sD(i)?_a.Declare_a_private_field_named_0:_a.Initialize_property_0_in_the_constructor;return F7(Mte,o,[a,i.text],Mte,_a.Add_all_missing_members)}(e,t)):function(e,{parentDeclaration:t,declSourceFile:n,modifierFlags:r,token:i}){const o=i.text,a=256&r,s=Wte(e.program.getTypeChecker(),t,i),c=r=>jue.ChangeTracker.with(e,e=>$te(e,n,t,o,s,r)),l=[F7(Mte,c(256&r),[a?_a.Declare_static_property_0:_a.Declare_property_0,o],Mte,_a.Add_all_missing_members)];return a||sD(i)||(2&r&&l.unshift(D7(Mte,c(2),[_a.Declare_private_property_0,o])),l.push(function(e,t,n,r,i){const o=mw.createKeywordTypeNode(154),a=mw.createParameterDeclaration(void 0,void 0,"x",void 0,o,void 0),s=mw.createIndexSignature(void 0,[a],i),c=jue.ChangeTracker.with(e,e=>e.insertMemberAtStart(t,n,s));return D7(Mte,c,[_a.Add_index_signature_for_property_0,r])}(e,n,t,i.text,s))),l}(e,t)}(e,n))}},fixIds:[Mte,Jte,Rte,Bte],getAllCodeActions:e=>{const{program:t,fixId:n}=e,r=t.getTypeChecker(),i=new Set,o=new Map;return j7(jue.ChangeTracker.with(e,t=>{B7(e,zte,a=>{const s=qte(a.file,a.start,a.code,r,e.program);if(void 0===s)return;const c=ZB(s.parentDeclaration)+"#"+(3===s.kind?s.identifier||ZB(s.token):s.token.text);if(bx(i,c))if(n!==Jte||2!==s.kind&&5!==s.kind){if(n===Rte&&3===s.kind)Yte(t,e,s);else if(n===Bte&&4===s.kind)Qte(t,e,s);else if(1===s.kind&&Gte(t,r,s),0===s.kind){const{parentDeclaration:e,token:t}=s,n=z(o,e,()=>[]);n.some(e=>e.token.text===t.text)||n.push(s)}}else Xte(t,e,s)}),o.forEach((n,i)=>{const a=qD(i)?void 0:function(e,t){const n=[];for(;e;){const r=vh(e),i=r&&t.getSymbolAtLocation(r.expression);if(!i)break;const o=2097152&i.flags?t.getAliasedSymbol(i):i,a=o.declarations&&b(o.declarations,u_);if(!a)break;n.push(a),e=a}return n}(i,r);for(const i of n){if(null==a?void 0:a.some(e=>{const t=o.get(e);return!!t&&t.some(({token:e})=>e.text===i.token.text)}))continue;const{parentDeclaration:n,declSourceFile:s,modifierFlags:c,token:l,call:_,isJSFile:u}=i;if(_&&!sD(l))Kte(e,t,_,l,256&c,n,s);else if(!u||pE(n)||qD(n)){const e=Wte(r,n,l);$te(t,s,n,l.text,e,256&c)}else Ute(t,s,n,l,!!(256&c))}})}))}});var nne="addMissingNewOperator",rne=[_a.Value_of_type_0_is_not_callable_Did_you_mean_to_include_new.code];function ine(e,t,n){const r=nt(function(e,t){let n=HX(e,t.start);const r=Fs(t);for(;n.endine(e,t,n));return[F7(nne,r,_a.Add_missing_new_operator_to_call,nne,_a.Add_missing_new_operator_to_all_calls)]},fixIds:[nne],getAllCodeActions:e=>R7(e,rne,(t,n)=>ine(t,e.sourceFile,n))});var one="addMissingParam",ane="addOptionalParam",sne=[_a.Expected_0_arguments_but_got_1.code];function cne(e,t,n){const r=uc(HX(e,n),fF);if(void 0===r||0===u(r.arguments))return;const i=t.getTypeChecker(),o=N(i.getTypeAtLocation(r.expression).symbol.declarations,une);if(void 0===o)return;const a=ye(o);if(void 0===a||void 0===a.body||YZ(t,a.getSourceFile()))return;const s=function(e){const t=Cc(e);return t||(lE(e.parent)&&aD(e.parent.name)||ND(e.parent)||TD(e.parent)?e.parent.name:void 0)}(a);if(void 0===s)return;const c=[],l=[],_=u(a.parameters),d=u(r.arguments);if(_>d)return;const p=[a,...pne(a,o)];for(let e=0,t=0,n=0;e{const s=vd(i),c=lee(s,t,n,r);u(i.parameters)?e.replaceNodeRangeWithNodes(s,ge(i.parameters),ve(i.parameters),dne(c,a,i,o),{joiner:", ",indentation:0,leadingTriviaOption:jue.LeadingTriviaOption.IncludeAll,trailingTriviaOption:jue.TrailingTriviaOption.Include}):d(dne(c,a,i,o),(t,n)=>{0===u(i.parameters)&&0===n?e.insertNodeAt(s,i.parameters.end,t):e.insertNodeAtEndOfList(s,i.parameters,t)}),c.writeFixes(e)})}function une(e){switch(e.kind){case 263:case 219:case 175:case 220:return!0;default:return!1}}function dne(e,t,n,r){const i=E(n.parameters,e=>mw.createParameterDeclaration(e.modifiers,e.dotDotDotToken,e.name,e.questionToken,e.type,e.initializer));for(const{pos:n,declaration:o}of r){const r=n>0?i[n-1]:void 0;i.splice(n,0,mw.updateParameterDeclaration(o,o.modifiers,o.dotDotDotToken,o.name,r&&r.questionToken?mw.createToken(58):o.questionToken,hne(e,o.type,t),o.initializer))}return i}function pne(e,t){const n=[];for(const r of t)if(fne(r)){if(u(r.parameters)===u(e.parameters)){n.push(r);continue}if(u(r.parameters)>u(e.parameters))return[]}return n}function fne(e){return une(e)&&void 0===e.body}function mne(e,t,n){return mw.createParameterDeclaration(void 0,void 0,e,n,t,void 0)}function gne(e,t){return u(e)&&$(e,e=>t_ne(t,e.program,e.preferences,e.host,r,i)),[u(i)>1?_a.Add_missing_parameters_to_0:_a.Add_missing_parameter_to_0,n],one,_a.Add_all_missing_parameters)),u(o)&&ie(a,F7(ane,jue.ChangeTracker.with(e,t=>_ne(t,e.program,e.preferences,e.host,r,o)),[u(o)>1?_a.Add_optional_parameters_to_0:_a.Add_optional_parameter_to_0,n],ane,_a.Add_all_optional_parameters)),a},getAllCodeActions:e=>R7(e,sne,(t,n)=>{const r=cne(e.sourceFile,e.program,n.start);if(r){const{declarations:n,newParameters:i,newOptionalParameters:o}=r;e.fixId===one&&_ne(t,e.program,e.preferences,e.host,n,i),e.fixId===ane&&_ne(t,e.program,e.preferences,e.host,n,o)}})});var yne="installTypesPackage",vne=_a.Cannot_find_module_0_or_its_corresponding_type_declarations.code,bne=_a.This_JSX_tag_requires_the_module_path_0_to_exist_but_none_could_be_found_Make_sure_you_have_types_for_the_appropriate_package_installed.code,xne=[vne,_a.Could_not_find_a_declaration_file_for_module_0_1_implicitly_has_an_any_type.code,bne];function kne(e,t){return{type:"install package",file:e,packageName:t}}function Sne(e,t){const n=tt(HX(e,t),UN);if(!n)return;const r=n.text,{packageName:i}=mR(r);return Cs(i)?void 0:i}function Tne(e,t,n){var r;return n===vne?NC.has(e)?"@types/node":void 0:(null==(r=t.isKnownTypesPackageName)?void 0:r.call(t,e))?ER(e):void 0}A7({errorCodes:xne,getCodeActions:function(e){const{host:t,sourceFile:n,span:{start:r},errorCode:i}=e,o=i===bne?Kk(e.program.getCompilerOptions(),n):Sne(n,r);if(void 0===o)return;const a=Tne(o,t,i);return void 0===a?[]:[F7("fixCannotFindModule",[],[_a.Install_0,a],yne,_a.Install_all_missing_types_packages,kne(n.fileName,a))]},fixIds:[yne],getAllCodeActions:e=>R7(e,xne,(t,n,r)=>{const i=Sne(n.file,n.start);if(void 0!==i)switch(e.fixId){case yne:{const t=Tne(i,e.host,n.code);t&&r.push(kne(n.file.fileName,t));break}default:un.fail(`Bad fixId: ${e.fixId}`)}})});var Cne=[_a.Non_abstract_class_0_does_not_implement_inherited_abstract_member_1_from_class_2.code,_a.Non_abstract_class_0_is_missing_implementations_for_the_following_members_of_1_Colon_2.code,_a.Non_abstract_class_0_is_missing_implementations_for_the_following_members_of_1_Colon_2_and_3_more.code,_a.Non_abstract_class_expression_does_not_implement_inherited_abstract_member_0_from_class_1.code,_a.Non_abstract_class_expression_is_missing_implementations_for_the_following_members_of_0_Colon_1.code,_a.Non_abstract_class_expression_is_missing_implementations_for_the_following_members_of_0_Colon_1_and_2_more.code],wne="fixClassDoesntImplementInheritedAbstractMember";function Nne(e,t){return nt(HX(e,t).parent,u_)}function Dne(e,t,n,r,i){const o=yh(e),a=n.program.getTypeChecker(),s=a.getTypeAtLocation(o),c=a.getPropertiesOfType(s).filter(Fne),l=lee(t,n.program,i,n.host);Aie(e,c,t,n,i,l,n=>r.insertMemberAtStart(t,e,n)),l.writeFixes(r)}function Fne(e){const t=zv(ge(e.getDeclarations()));return!(2&t||!(64&t))}A7({errorCodes:Cne,getCodeActions:function(e){const{sourceFile:t,span:n}=e,r=jue.ChangeTracker.with(e,r=>Dne(Nne(t,n.start),t,e,r,e.preferences));return 0===r.length?void 0:[F7(wne,r,_a.Implement_inherited_abstract_class,wne,_a.Implement_all_inherited_abstract_classes)]},fixIds:[wne],getAllCodeActions:function(e){const t=new Set;return R7(e,Cne,(n,r)=>{const i=Nne(r.file,r.start);bx(t,ZB(i))&&Dne(i,e.sourceFile,e,n,e.preferences)})}});var Ene="classSuperMustPrecedeThisAccess",Pne=[_a.super_must_be_called_before_accessing_this_in_the_constructor_of_a_derived_class.code];function Ane(e,t,n,r){e.insertNodeAtConstructorStart(t,n,r),e.delete(t,r)}function Ine(e,t){const n=HX(e,t);if(110!==n.kind)return;const r=Kf(n),i=One(r.body);return i&&!i.expression.arguments.some(e=>dF(e)&&e.expression===n)?{constructor:r,superCall:i}:void 0}function One(e){return HF(e)&&lf(e.expression)?e:r_(e)?void 0:XI(e,One)}A7({errorCodes:Pne,getCodeActions(e){const{sourceFile:t,span:n}=e,r=Ine(t,n.start);if(!r)return;const{constructor:i,superCall:o}=r,a=jue.ChangeTracker.with(e,e=>Ane(e,t,i,o));return[F7(Ene,a,_a.Make_super_call_the_first_statement_in_the_constructor,Ene,_a.Make_all_super_calls_the_first_statement_in_their_constructor)]},fixIds:[Ene],getAllCodeActions(e){const{sourceFile:t}=e,n=new Set;return R7(e,Pne,(e,r)=>{const i=Ine(r.file,r.start);if(!i)return;const{constructor:o,superCall:a}=i;bx(n,ZB(o.parent))&&Ane(e,t,o,a)})}});var Lne="constructorForDerivedNeedSuperCall",jne=[_a.Constructors_for_derived_classes_must_contain_a_super_call.code];function Mne(e,t){const n=HX(e,t);return un.assert(PD(n.parent),"token should be at the constructor declaration"),n.parent}function Rne(e,t,n){const r=mw.createExpressionStatement(mw.createCallExpression(mw.createSuper(),void 0,l));e.insertNodeAtConstructorStart(t,n,r)}A7({errorCodes:jne,getCodeActions(e){const{sourceFile:t,span:n}=e,r=Mne(t,n.start),i=jue.ChangeTracker.with(e,e=>Rne(e,t,r));return[F7(Lne,i,_a.Add_missing_super_call,Lne,_a.Add_all_missing_super_calls)]},fixIds:[Lne],getAllCodeActions:e=>R7(e,jne,(t,n)=>Rne(t,e.sourceFile,Mne(n.file,n.start)))});var Bne="fixEnableJsxFlag",Jne=[_a.Cannot_use_JSX_unless_the_jsx_flag_is_provided.code];function zne(e,t){Xie(e,t,"jsx",mw.createStringLiteral("react"))}A7({errorCodes:Jne,getCodeActions:function(e){const{configFile:t}=e.program.getCompilerOptions();if(void 0===t)return;const n=jue.ChangeTracker.with(e,e=>zne(e,t));return[D7(Bne,n,_a.Enable_the_jsx_flag_in_your_configuration_file)]},fixIds:[Bne],getAllCodeActions:e=>R7(e,Jne,t=>{const{configFile:n}=e.program.getCompilerOptions();void 0!==n&&zne(t,n)})});var qne="fixNaNEquality",Une=[_a.This_condition_will_always_return_0.code];function Vne(e,t,n){const r=b(e.getSemanticDiagnostics(t),e=>e.start===n.start&&e.length===n.length);if(void 0===r||void 0===r.relatedInformation)return;const i=b(r.relatedInformation,e=>e.code===_a.Did_you_mean_0.code);if(void 0===i||void 0===i.file||void 0===i.start||void 0===i.length)return;const o=noe(i.file,Ws(i.start,i.length));return void 0!==o&&V_(o)&&NF(o.parent)?{suggestion:$ne(i.messageText),expression:o.parent,arg:o}:void 0}function Wne(e,t,n,r){const i=mw.createCallExpression(mw.createPropertyAccessExpression(mw.createIdentifier("Number"),mw.createIdentifier("isNaN")),void 0,[n]),o=r.operatorToken.kind;e.replaceNode(t,r,38===o||36===o?mw.createPrefixUnaryExpression(54,i):i)}function $ne(e){const[,t]=cV(e,"\n",0).match(/'(.*)'/)||[];return t}A7({errorCodes:Une,getCodeActions(e){const{sourceFile:t,span:n,program:r}=e,i=Vne(r,t,n);if(void 0===i)return;const{suggestion:o,expression:a,arg:s}=i,c=jue.ChangeTracker.with(e,e=>Wne(e,t,s,a));return[F7(qne,c,[_a.Use_0,o],qne,_a.Use_Number_isNaN_in_all_conditions)]},fixIds:[qne],getAllCodeActions:e=>R7(e,Une,(t,n)=>{const r=Vne(e.program,n.file,Ws(n.start,n.length));r&&Wne(t,n.file,r.arg,r.expression)})}),A7({errorCodes:[_a.Top_level_await_expressions_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_node16_node18_node20_nodenext_or_preserve_and_the_target_option_is_set_to_es2017_or_higher.code,_a.Top_level_await_using_statements_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_node16_node18_node20_nodenext_or_preserve_and_the_target_option_is_set_to_es2017_or_higher.code,_a.Top_level_for_await_loops_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_node16_node18_node20_nodenext_or_preserve_and_the_target_option_is_set_to_es2017_or_higher.code],getCodeActions:function(e){const t=e.program.getCompilerOptions(),{configFile:n}=t;if(void 0===n)return;const r=[],i=vk(t);if(i>=5&&i<99){const t=jue.ChangeTracker.with(e,e=>{Xie(e,n,"module",mw.createStringLiteral("esnext"))});r.push(D7("fixModuleOption",t,[_a.Set_the_module_option_in_your_configuration_file_to_0,"esnext"]))}const o=yk(t);if(o<4||o>99){const t=jue.ChangeTracker.with(e,e=>{if(!Wf(n))return;const t=[["target",mw.createStringLiteral("es2017")]];1===i&&t.push(["module",mw.createStringLiteral("commonjs")]),Gie(e,n,t)});r.push(D7("fixTargetOption",t,[_a.Set_the_target_option_in_your_configuration_file_to_0,"es2017"]))}return r.length?r:void 0}});var Hne="fixPropertyAssignment",Kne=[_a.Did_you_mean_to_use_a_Colon_An_can_only_follow_a_property_name_when_the_containing_object_literal_is_part_of_a_destructuring_pattern.code];function Gne(e,t,n){e.replaceNode(t,n,mw.createPropertyAssignment(n.name,n.objectAssignmentInitializer))}function Xne(e,t){return nt(HX(e,t).parent,iP)}A7({errorCodes:Kne,fixIds:[Hne],getCodeActions(e){const{sourceFile:t,span:n}=e,r=Xne(t,n.start),i=jue.ChangeTracker.with(e,t=>Gne(t,e.sourceFile,r));return[F7(Hne,i,[_a.Change_0_to_1,"=",":"],Hne,[_a.Switch_each_misused_0_to_1,"=",":"])]},getAllCodeActions:e=>R7(e,Kne,(e,t)=>Gne(e,t.file,Xne(t.file,t.start)))});var Qne="extendsInterfaceBecomesImplements",Yne=[_a.Cannot_extend_an_interface_0_Did_you_mean_implements.code];function Zne(e,t){const n=Xf(HX(e,t)).heritageClauses,r=n[0].getFirstToken();return 96===r.kind?{extendsToken:r,heritageClauses:n}:void 0}function ere(e,t,n,r){if(e.replaceNode(t,n,mw.createToken(119)),2===r.length&&96===r[0].token&&119===r[1].token){const n=r[1].getFirstToken(),i=n.getFullStart();e.replaceRange(t,{pos:i,end:i},mw.createToken(28));const o=t.text;let a=n.end;for(;aere(e,t,r,i));return[F7(Qne,o,_a.Change_extends_to_implements,Qne,_a.Change_all_extended_interfaces_to_implements)]},fixIds:[Qne],getAllCodeActions:e=>R7(e,Yne,(e,t)=>{const n=Zne(t.file,t.start);n&&ere(e,t.file,n.extendsToken,n.heritageClauses)})});var tre="forgottenThisPropertyAccess",nre=_a.Cannot_find_name_0_Did_you_mean_the_static_member_1_0.code,rre=[_a.Cannot_find_name_0_Did_you_mean_the_instance_member_this_0.code,_a.Private_identifiers_are_only_allowed_in_class_bodies_and_may_only_be_used_as_part_of_a_class_member_declaration_property_access_or_on_the_left_hand_side_of_an_in_expression.code,nre];function ire(e,t,n){const r=HX(e,t);if(aD(r)||sD(r))return{node:r,className:n===nre?Xf(r).name.text:void 0}}function ore(e,t,{node:n,className:r}){UC(n),e.replaceNode(t,n,mw.createPropertyAccessExpression(r?mw.createIdentifier(r):mw.createThis(),n))}A7({errorCodes:rre,getCodeActions(e){const{sourceFile:t}=e,n=ire(t,e.span.start,e.errorCode);if(!n)return;const r=jue.ChangeTracker.with(e,e=>ore(e,t,n));return[F7(tre,r,[_a.Add_0_to_unresolved_variable,n.className||"this"],tre,_a.Add_qualifier_to_all_unresolved_variables_matching_a_member_name)]},fixIds:[tre],getAllCodeActions:e=>R7(e,rre,(t,n)=>{const r=ire(n.file,n.start,n.code);r&&ore(t,e.sourceFile,r)})});var are="fixInvalidJsxCharacters_expression",sre="fixInvalidJsxCharacters_htmlEntity",cre=[_a.Unexpected_token_Did_you_mean_or_gt.code,_a.Unexpected_token_Did_you_mean_or_rbrace.code];A7({errorCodes:cre,fixIds:[are,sre],getCodeActions(e){const{sourceFile:t,preferences:n,span:r}=e,i=jue.ChangeTracker.with(e,e=>_re(e,n,t,r.start,!1)),o=jue.ChangeTracker.with(e,e=>_re(e,n,t,r.start,!0));return[F7(are,i,_a.Wrap_invalid_character_in_an_expression_container,are,_a.Wrap_all_invalid_characters_in_an_expression_container),F7(sre,o,_a.Convert_invalid_character_to_its_html_entity_code,sre,_a.Convert_all_invalid_characters_to_HTML_entity_code)]},getAllCodeActions:e=>R7(e,cre,(t,n)=>_re(t,e.preferences,n.file,n.start,e.fixId===sre))});var lre={">":">","}":"}"};function _re(e,t,n,r,i){const o=n.getText()[r];if(!function(e){return De(lre,e)}(o))return;const a=i?lre[o]:`{${sZ(n,t,o)}}`;e.replaceRangeWithText(n,{pos:r,end:r+1},a)}var ure="deleteUnmatchedParameter",dre="renameUnmatchedParameter",pre=[_a.JSDoc_param_tag_has_name_0_but_there_is_no_parameter_with_that_name.code];function fre(e,t){const n=HX(e,t);if(n.parent&&BP(n.parent)&&aD(n.parent.name)){const e=n.parent,t=Vg(e),r=qg(e);if(t&&r)return{jsDocHost:t,signature:r,name:n.parent.name,jsDocParameterTag:e}}}A7({fixIds:[ure,dre],errorCodes:pre,getCodeActions:function(e){const{sourceFile:t,span:n}=e,r=[],i=fre(t,n.start);if(i)return ie(r,function(e,{name:t,jsDocHost:n,jsDocParameterTag:r}){const i=jue.ChangeTracker.with(e,t=>t.filterJSDocTags(e.sourceFile,n,e=>e!==r));return F7(ure,i,[_a.Delete_unused_param_tag_0,t.getText(e.sourceFile)],ure,_a.Delete_all_unused_param_tags)}(e,i)),ie(r,function(e,{name:t,jsDocHost:n,signature:r,jsDocParameterTag:i}){if(!u(r.parameters))return;const o=e.sourceFile,a=ol(r),s=new Set;for(const e of a)BP(e)&&aD(e.name)&&s.add(e.name.escapedText);const c=f(r.parameters,e=>aD(e.name)&&!s.has(e.name.escapedText)?e.name.getText(o):void 0);if(void 0===c)return;const l=mw.updateJSDocParameterTag(i,i.tagName,mw.createIdentifier(c),i.isBracketed,i.typeExpression,i.isNameFirst,i.comment),_=jue.ChangeTracker.with(e,e=>e.replaceJSDocComment(o,n,E(a,e=>e===i?l:e)));return D7(dre,_,[_a.Rename_param_tag_name_0_to_1,t.getText(o),c])}(e,i)),r},getAllCodeActions:function(e){const t=new Map;return j7(jue.ChangeTracker.with(e,n=>{B7(e,pre,({file:e,start:n})=>{const r=fre(e,n);r&&t.set(r.signature,ie(t.get(r.signature),r.jsDocParameterTag))}),t.forEach((t,r)=>{if(e.fixId===ure){const e=new Set(t);n.filterJSDocTags(r.getSourceFile(),r,t=>!e.has(t))}})}))}});var mre="fixUnreferenceableDecoratorMetadata";A7({errorCodes:[_a.A_type_referenced_in_a_decorated_signature_must_be_imported_with_import_type_or_a_namespace_import_when_isolatedModules_and_emitDecoratorMetadata_are_enabled.code],getCodeActions:e=>{const t=function(e,t,n){const r=tt(HX(e,n),aD);if(!r||184!==r.parent.kind)return;const i=t.getTypeChecker().getSymbolAtLocation(r);return b((null==i?void 0:i.declarations)||l,en(kE,PE,bE))}(e.sourceFile,e.program,e.span.start);if(!t)return;const n=jue.ChangeTracker.with(e,n=>277===t.kind&&function(e,t,n,r){Q2.doChangeNamedToNamespaceOrDefault(t,r,e,n.parent)}(n,e.sourceFile,t,e.program)),r=jue.ChangeTracker.with(e,n=>function(e,t,n,r){if(272===n.kind)return void e.insertModifierBefore(t,156,n.name);const i=274===n.kind?n:n.parent.parent;if(i.name&&i.namedBindings)return;const o=r.getTypeChecker();Cg(i,e=>{if(111551&ox(e.symbol,o).flags)return!0})||e.insertModifierBefore(t,156,i)}(n,e.sourceFile,t,e.program));let i;return n.length&&(i=ie(i,D7(mre,n,_a.Convert_named_imports_to_namespace_import))),r.length&&(i=ie(i,D7(mre,r,_a.Use_import_type))),i},fixIds:[mre]});var gre="unusedIdentifier",hre="unusedIdentifier_prefix",yre="unusedIdentifier_delete",vre="unusedIdentifier_deleteImports",bre="unusedIdentifier_infer",xre=[_a._0_is_declared_but_its_value_is_never_read.code,_a._0_is_declared_but_never_used.code,_a.Property_0_is_declared_but_its_value_is_never_read.code,_a.All_imports_in_import_declaration_are_unused.code,_a.All_destructured_elements_are_unused.code,_a.All_variables_are_unused.code,_a.All_type_parameters_are_unused.code];function kre(e,t,n){e.replaceNode(t,n.parent,mw.createKeywordTypeNode(159))}function Sre(e,t){return F7(gre,e,t,yre,_a.Delete_all_unused_declarations)}function Tre(e,t,n){e.delete(t,un.checkDefined(nt(n.parent,kp).typeParameters,"The type parameter to delete should exist"))}function Cre(e){return 102===e.kind||80===e.kind&&(277===e.parent.kind||274===e.parent.kind)}function wre(e){return 102===e.kind?tt(e.parent,xE):void 0}function Nre(e,t){return _E(t.parent)&&ge(t.parent.getChildren(e))===t}function Dre(e,t,n){e.delete(t,244===n.parent.kind?n.parent:n)}function Fre(e,t,n,r){t!==_a.Property_0_is_declared_but_its_value_is_never_read.code&&(140===r.kind&&(r=nt(r.parent,QD).typeParameter.name),aD(r)&&function(e){switch(e.parent.kind){case 170:case 169:return!0;case 261:switch(e.parent.parent.parent.kind){case 251:case 250:return!0}}return!1}(r)&&(e.replaceNode(n,r,mw.createIdentifier(`_${r.text}`)),TD(r.parent)&&Ec(r.parent).forEach(t=>{aD(t.name)&&e.replaceNode(n,t.name,mw.createIdentifier(`_${t.name.text}`))})))}function Ere(e,t,n,r,i,o,a,s){!function(e,t,n,r,i,o,a,s){const{parent:c}=e;if(TD(c))!function(e,t,n,r,i,o,a,s=!1){if(function(e,t,n,r,i,o,a){const{parent:s}=n;switch(s.kind){case 175:case 177:const c=s.parameters.indexOf(n),l=FD(s)?s.name:s,_=gce.Core.getReferencedSymbolsForNode(s.pos,l,i,r,o);if(_)for(const e of _)for(const t of e.references)if(t.kind===gce.EntryKind.Node){const e=yD(t.node)&&fF(t.node.parent)&&t.node.parent.arguments.length>c,r=dF(t.node.parent)&&yD(t.node.parent.expression)&&fF(t.node.parent.parent)&&t.node.parent.parent.arguments.length>c,i=(FD(t.node.parent)||DD(t.node.parent))&&t.node.parent!==n.parent&&t.node.parent.parameters.length>c;if(e||r||i)return!1}return!0;case 263:return!s.name||!function(e,t,n){return!!gce.Core.eachSymbolReferenceInFile(n,e,t,e=>aD(e)&&fF(e.parent)&&e.parent.arguments.includes(e))}(e,t,s.name)||Are(s,n,a);case 219:case 220:return Are(s,n,a);case 179:return!1;case 178:return!0;default:return un.failBadSyntaxKind(s)}}(r,t,n,i,o,a,s))if(n.modifiers&&n.modifiers.length>0&&(!aD(n.name)||gce.Core.isSymbolReferencedInFile(n.name,r,t)))for(const r of n.modifiers)Zl(r)&&e.deleteModifier(t,r);else!n.initializer&&Pre(n,r,i)&&e.delete(t,n)}(t,n,c,r,i,o,a,s);else if(!(s&&aD(e)&&gce.Core.isSymbolReferencedInFile(e,r,n))){const r=kE(c)?e:kD(c)?c.parent:c;un.assert(r!==n,"should not delete whole source file"),t.delete(n,r)}}(t,n,e,r,i,o,a,s),aD(t)&&gce.Core.eachSymbolReferenceInFile(t,r,e,t=>{var r;dF(t.parent)&&t.parent.name===t&&(t=t.parent),!s&&(NF((r=t).parent)&&r.parent.left===r||(wF(r.parent)||CF(r.parent))&&r.parent.operand===r)&&HF(r.parent.parent)&&n.delete(e,t.parent.parent)})}function Pre(e,t,n){const r=e.parent.parameters.indexOf(e);return!gce.Core.someSignatureUsage(e.parent,n,t,(e,t)=>!t||t.arguments.length>r)}function Are(e,t,n){const r=e.parameters,i=r.indexOf(t);return un.assert(-1!==i,"The parameter should already be in the list"),n?r.slice(i+1).every(e=>aD(e.name)&&!e.symbol.isReferenced):i===r.length-1}function Ire(e,t,n){const r=n.symbol.declarations;if(r)for(const n of r)e.delete(t,n)}A7({errorCodes:xre,getCodeActions(e){const{errorCode:t,sourceFile:n,program:r,cancellationToken:i}=e,o=r.getTypeChecker(),a=r.getSourceFiles(),s=HX(n,e.span.start);if(UP(s))return[Sre(jue.ChangeTracker.with(e,e=>e.delete(n,s)),_a.Remove_template_tag)];if(30===s.kind)return[Sre(jue.ChangeTracker.with(e,e=>Tre(e,n,s)),_a.Remove_type_parameters)];const c=wre(s);if(c){const t=jue.ChangeTracker.with(e,e=>e.delete(n,c));return[F7(gre,t,[_a.Remove_import_from_0,yx(c)],vre,_a.Delete_all_unused_imports)]}if(Cre(s)){const t=jue.ChangeTracker.with(e,e=>Ere(n,s,e,o,a,r,i,!1));if(t.length)return[F7(gre,t,[_a.Remove_unused_declaration_for_Colon_0,s.getText(n)],vre,_a.Delete_all_unused_imports)]}if(sF(s.parent)||cF(s.parent)){if(TD(s.parent.parent)){const t=s.parent.elements,r=[t.length>1?_a.Remove_unused_declarations_for_Colon_0:_a.Remove_unused_declaration_for_Colon_0,E(t,e=>e.getText(n)).join(", ")];return[Sre(jue.ChangeTracker.with(e,e=>function(e,t,n){d(n.elements,n=>e.delete(t,n))}(e,n,s.parent)),r)]}return[Sre(jue.ChangeTracker.with(e,t=>function(e,t,n,{parent:r}){if(lE(r)&&r.initializer&&L_(r.initializer))if(_E(r.parent)&&u(r.parent.declarations)>1){const i=r.parent.parent,o=i.getStart(n),a=i.end;t.delete(n,r),t.insertNodeAt(n,a,r.initializer,{prefix:RY(e.host,e.formatContext.options)+n.text.slice(XY(n.text,o-1),o),suffix:bZ(n)?";":""})}else t.replaceNode(n,r.parent,r.initializer);else t.delete(n,r)}(e,t,n,s.parent)),_a.Remove_unused_destructuring_declaration)]}if(Nre(n,s))return[Sre(jue.ChangeTracker.with(e,e=>Dre(e,n,s.parent)),_a.Remove_variable_statement)];if(aD(s)&&uE(s.parent))return[Sre(jue.ChangeTracker.with(e,e=>Ire(e,n,s.parent)),[_a.Remove_unused_declaration_for_Colon_0,s.getText(n)])];const l=[];if(140===s.kind){const t=jue.ChangeTracker.with(e,e=>kre(e,n,s)),r=nt(s.parent,QD).typeParameter.name.text;l.push(F7(gre,t,[_a.Replace_infer_0_with_unknown,r],bre,_a.Replace_all_unused_infer_with_unknown))}else{const t=jue.ChangeTracker.with(e,e=>Ere(n,s,e,o,a,r,i,!1));if(t.length){const e=kD(s.parent)?s.parent:s;l.push(Sre(t,[_a.Remove_unused_declaration_for_Colon_0,e.getText(n)]))}}const _=jue.ChangeTracker.with(e,e=>Fre(e,t,n,s));return _.length&&l.push(F7(gre,_,[_a.Prefix_0_with_an_underscore,s.getText(n)],hre,_a.Prefix_all_unused_declarations_with_where_possible)),l},fixIds:[hre,yre,vre,bre],getAllCodeActions:e=>{const{sourceFile:t,program:n,cancellationToken:r}=e,i=n.getTypeChecker(),o=n.getSourceFiles();return R7(e,xre,(a,s)=>{const c=HX(t,s.start);switch(e.fixId){case hre:Fre(a,s.code,t,c);break;case vre:{const e=wre(c);e?a.delete(t,e):Cre(c)&&Ere(t,c,a,i,o,n,r,!0);break}case yre:if(140===c.kind||Cre(c))break;if(UP(c))a.delete(t,c);else if(30===c.kind)Tre(a,t,c);else if(sF(c.parent)){if(c.parent.parent.initializer)break;TD(c.parent.parent)&&!Pre(c.parent.parent,i,o)||a.delete(t,c.parent.parent)}else{if(cF(c.parent.parent)&&c.parent.parent.parent.initializer)break;Nre(t,c)?Dre(a,t,c.parent):aD(c)&&uE(c.parent)?Ire(a,t,c.parent):Ere(t,c,a,i,o,n,r,!0)}break;case bre:140===c.kind&&kre(a,t,c);break;default:un.fail(JSON.stringify(e.fixId))}})}});var Ore="fixUnreachableCode",Lre=[_a.Unreachable_code_detected.code];function jre(e,t,n,r,i){const o=HX(t,n),a=uc(o,pu);if(a.getStart(t)!==o.getStart(t)){const e=JSON.stringify({statementKind:un.formatSyntaxKind(a.kind),tokenKind:un.formatSyntaxKind(o.kind),errorCode:i,start:n,length:r});un.fail("Token and statement should start at the same point. "+e)}const s=(VF(a.parent)?a.parent:a).parent;if(!VF(a.parent)||a===ge(a.parent.statements))switch(s.kind){case 246:if(s.elseStatement){if(VF(a.parent))break;return void e.replaceNode(t,a,mw.createBlock(l))}case 248:case 249:return void e.delete(t,s)}if(VF(a.parent)){const i=n+r,o=un.checkDefined(function(e,t){let n;for(const r of e){if(!t(r))break;n=r}return n}(oT(a.parent.statements,a),e=>e.posjre(t,e.sourceFile,e.span.start,e.span.length,e.errorCode));return[F7(Ore,t,_a.Remove_unreachable_code,Ore,_a.Remove_all_unreachable_code)]},fixIds:[Ore],getAllCodeActions:e=>R7(e,Lre,(e,t)=>jre(e,t.file,t.start,t.length,t.code))});var Mre="fixUnusedLabel",Rre=[_a.Unused_label.code];function Bre(e,t,n){const r=HX(t,n),i=nt(r.parent,oE),o=r.getStart(t),a=i.statement.getStart(t),s=$b(o,a,t)?a:Qa(t.text,OX(i,59,t).end,!0);e.deleteRange(t,{pos:o,end:s})}A7({errorCodes:Rre,getCodeActions(e){const t=jue.ChangeTracker.with(e,t=>Bre(t,e.sourceFile,e.span.start));return[F7(Mre,t,_a.Remove_unused_label,Mre,_a.Remove_all_unused_labels)]},fixIds:[Mre],getAllCodeActions:e=>R7(e,Rre,(e,t)=>Bre(e,t.file,t.start))});var Jre="fixJSDocTypes_plain",zre="fixJSDocTypes_nullable",qre=[_a.JSDoc_types_can_only_be_used_inside_documentation_comments.code,_a._0_at_the_end_of_a_type_is_not_valid_TypeScript_syntax_Did_you_mean_to_write_1.code,_a._0_at_the_start_of_a_type_is_not_valid_TypeScript_syntax_Did_you_mean_to_write_1.code];function Ure(e,t,n,r,i){e.replaceNode(t,n,i.typeToTypeNode(r,n,void 0))}function Vre(e,t,n){const r=uc(HX(e,t),Wre),i=r&&r.type;return i&&{typeNode:i,type:$re(n,i)}}function Wre(e){switch(e.kind){case 235:case 180:case 181:case 263:case 178:case 182:case 201:case 175:case 174:case 170:case 173:case 172:case 179:case 266:case 217:case 261:return!0;default:return!1}}function $re(e,t){if(hP(t)){const n=e.getTypeFromTypeNode(t.type);return n===e.getNeverType()||n===e.getVoidType()?n:e.getUnionType(ie([n,e.getUndefinedType()],t.postfix?void 0:e.getNullType()))}return e.getTypeFromTypeNode(t)}A7({errorCodes:qre,getCodeActions(e){const{sourceFile:t}=e,n=e.program.getTypeChecker(),r=Vre(t,e.span.start,n);if(!r)return;const{typeNode:i,type:o}=r,a=i.getText(t),s=[c(o,Jre,_a.Change_all_jsdoc_style_types_to_TypeScript)];return 315===i.kind&&s.push(c(o,zre,_a.Change_all_jsdoc_style_types_to_TypeScript_and_add_undefined_to_nullable_types)),s;function c(r,o,s){return F7("jdocTypes",jue.ChangeTracker.with(e,e=>Ure(e,t,i,r,n)),[_a.Change_0_to_1,a,n.typeToString(r)],o,s)}},fixIds:[Jre,zre],getAllCodeActions(e){const{fixId:t,program:n,sourceFile:r}=e,i=n.getTypeChecker();return R7(e,qre,(e,n)=>{const o=Vre(n.file,n.start,i);if(!o)return;const{typeNode:a,type:s}=o,c=315===a.kind&&t===zre?i.getNullableType(s,32768):s;Ure(e,r,a,c,i)})}});var Hre="fixMissingCallParentheses",Kre=[_a.This_condition_will_always_return_true_since_this_function_is_always_defined_Did_you_mean_to_call_it_instead.code];function Gre(e,t,n){e.replaceNodeWithText(t,n,`${n.text}()`)}function Xre(e,t){const n=HX(e,t);if(dF(n.parent)){let e=n.parent;for(;dF(e.parent);)e=e.parent;return e.name}if(aD(n))return n}A7({errorCodes:Kre,fixIds:[Hre],getCodeActions(e){const{sourceFile:t,span:n}=e,r=Xre(t,n.start);if(!r)return;const i=jue.ChangeTracker.with(e,t=>Gre(t,e.sourceFile,r));return[F7(Hre,i,_a.Add_missing_call_parentheses,Hre,_a.Add_all_missing_call_parentheses)]},getAllCodeActions:e=>R7(e,Kre,(e,t)=>{const n=Xre(t.file,t.start);n&&Gre(e,t.file,n)})});var Qre="fixMissingTypeAnnotationOnExports",Yre="add-annotation",Zre="add-type-assertion",eie=[_a.Function_must_have_an_explicit_return_type_annotation_with_isolatedDeclarations.code,_a.Method_must_have_an_explicit_return_type_annotation_with_isolatedDeclarations.code,_a.At_least_one_accessor_must_have_an_explicit_type_annotation_with_isolatedDeclarations.code,_a.Variable_must_have_an_explicit_type_annotation_with_isolatedDeclarations.code,_a.Parameter_must_have_an_explicit_type_annotation_with_isolatedDeclarations.code,_a.Property_must_have_an_explicit_type_annotation_with_isolatedDeclarations.code,_a.Expression_type_can_t_be_inferred_with_isolatedDeclarations.code,_a.Binding_elements_can_t_be_exported_directly_with_isolatedDeclarations.code,_a.Computed_property_names_on_class_or_object_literals_cannot_be_inferred_with_isolatedDeclarations.code,_a.Computed_properties_must_be_number_or_string_literals_variables_or_dotted_expressions_with_isolatedDeclarations.code,_a.Enum_member_initializers_must_be_computable_without_references_to_external_symbols_with_isolatedDeclarations.code,_a.Extends_clause_can_t_contain_an_expression_with_isolatedDeclarations.code,_a.Objects_that_contain_shorthand_properties_can_t_be_inferred_with_isolatedDeclarations.code,_a.Objects_that_contain_spread_assignments_can_t_be_inferred_with_isolatedDeclarations.code,_a.Arrays_with_spread_elements_can_t_inferred_with_isolatedDeclarations.code,_a.Default_exports_can_t_be_inferred_with_isolatedDeclarations.code,_a.Only_const_arrays_can_be_inferred_with_isolatedDeclarations.code,_a.Assigning_properties_to_functions_without_declaring_them_is_not_supported_with_isolatedDeclarations_Add_an_explicit_declaration_for_the_properties_assigned_to_this_function.code,_a.Declaration_emit_for_this_parameter_requires_implicitly_adding_undefined_to_its_type_This_is_not_supported_with_isolatedDeclarations.code,_a.Type_containing_private_name_0_can_t_be_used_with_isolatedDeclarations.code,_a.Add_satisfies_and_a_type_assertion_to_this_expression_satisfies_T_as_T_to_make_the_type_explicit.code],tie=new Set([178,175,173,263,219,220,261,170,278,264,207,208]),nie=531469;function rie(e,t,n,r,i){const o=iie(n,r,i);o.result&&o.textChanges.length&&t.push(F7(e,o.textChanges,o.result,Qre,_a.Add_all_missing_type_annotations))}function iie(e,t,n){const r={typeNode:void 0,mutatedTarget:!1},i=jue.ChangeTracker.fromContext(e),o=e.sourceFile,a=e.program,s=a.getTypeChecker(),c=yk(a.getCompilerOptions()),l=lee(e.sourceFile,e.program,e.preferences,e.host),_=new Set,u=new Set,d=kU({preserveSourceNewlines:!1}),p=n({addTypeAnnotation:function(t){e.cancellationToken.throwIfCancellationRequested();const n=HX(o,t.start),r=g(n);if(r)return uE(r)?function(e){var t;if(null==u?void 0:u.has(e))return;null==u||u.add(e);const n=s.getTypeAtLocation(e),r=s.getPropertiesOfType(n);if(!e.name||0===r.length)return;const c=[];for(const t of r)ms(t.name,yk(a.getCompilerOptions()))&&(t.valueDeclaration&&lE(t.valueDeclaration)||c.push(mw.createVariableStatement([mw.createModifier(95)],mw.createVariableDeclarationList([mw.createVariableDeclaration(t.name,void 0,w(s.getTypeOfSymbol(t),e),void 0)]))));if(0===c.length)return;const l=[];(null==(t=e.modifiers)?void 0:t.some(e=>95===e.kind))&&l.push(mw.createModifier(95)),l.push(mw.createModifier(138));const _=mw.createModuleDeclaration(l,e.name,mw.createModuleBlock(c),101441696);return i.insertNodeAfter(o,e,_),[_a.Annotate_types_of_properties_expando_function_in_a_namespace]}(r):h(r);const c=uc(n,e=>tie.has(e.kind)&&(!sF(e)&&!cF(e)||lE(e.parent)));return c?h(c):void 0},addInlineAssertion:function(t){e.cancellationToken.throwIfCancellationRequested();const n=HX(o,t.start);if(g(n))return;const r=F(n,t);if(!r||eh(r)||eh(r.parent))return;const a=V_(r),c=iP(r);if(!c&&_u(r))return;if(uc(r,k_))return;if(uc(r,aP))return;if(a&&(uc(r,tP)||uc(r,b_)))return;if(PF(r))return;const l=uc(r,lE),_=l&&s.getTypeAtLocation(l);if(_&&8192&_.flags)return;if(!a&&!c)return;const{typeNode:u,mutatedTarget:d}=x(r,_);return u&&!d?(c?i.insertNodeAt(o,r.end,m(RC(r.name),u),{prefix:": "}):a?i.replaceNode(o,r,function(e,t){return f(e)&&(e=mw.createParenthesizedExpression(e)),mw.createAsExpression(mw.createSatisfiesExpression(e,RC(t)),t)}(RC(r),u)):un.assertNever(r),[_a.Add_satisfies_and_an_inline_type_assertion_with_0,D(u)]):void 0},extractAsVariable:function(t){e.cancellationToken.throwIfCancellationRequested();const n=F(HX(o,t.start),t);if(!n||eh(n)||eh(n.parent))return;if(!V_(n))return;if(_F(n))return i.replaceNode(o,n,m(n,mw.createTypeReferenceNode("const"))),[_a.Mark_array_literal_as_const];const r=uc(n,rP);if(r){if(r===n.parent&&ab(n))return;const e=mw.createUniqueName(l3(n,o,s,o),16);let t=n,a=n;if(PF(t)&&(t=rh(t.parent),a=T(t.parent)?t=t.parent:m(t,mw.createTypeReferenceNode("const"))),ab(t))return;const c=mw.createVariableStatement(void 0,mw.createVariableDeclarationList([mw.createVariableDeclaration(e,void 0,void 0,a)],2)),l=uc(n,pu);return i.insertNodeBefore(o,l,c),i.replaceNode(o,t,mw.createAsExpression(mw.cloneNode(e),mw.createTypeQueryNode(mw.cloneNode(e)))),[_a.Extract_to_variable_and_replace_with_0_as_typeof_0,D(e)]}}});return l.writeFixes(i),{result:p,textChanges:i.getChanges()};function f(e){return!(ab(e)||fF(e)||uF(e)||_F(e))}function m(e,t){return f(e)&&(e=mw.createParenthesizedExpression(e)),mw.createAsExpression(e,t)}function g(e){const t=uc(e,e=>pu(e)?"quit":lC(e));if(t&&lC(t)){let e=t;if(NF(e)&&(e=e.left,!lC(e)))return;const n=s.getTypeAtLocation(e.expression);if(!n)return;if($(s.getPropertiesOfType(n),e=>e.valueDeclaration===t||e.valueDeclaration===t.parent)){const e=n.symbol.valueDeclaration;if(e){if(RT(e)&&lE(e.parent))return e.parent;if(uE(e))return e}}}}function h(e){if(!(null==_?void 0:_.has(e)))switch(null==_||_.add(e),e.kind){case 170:case 173:case 261:return function(e){const{typeNode:t}=x(e);if(t)return e.type?i.replaceNode(vd(e),e.type,t):i.tryInsertTypeAnnotation(vd(e),e,t),[_a.Add_annotation_of_type_0,D(t)]}(e);case 220:case 219:case 263:case 175:case 178:return function(e,t){if(e.type)return;const{typeNode:n}=x(e);return n?(i.tryInsertTypeAnnotation(t,e,n),[_a.Add_return_type_0,D(n)]):void 0}(e,o);case 278:return function(e){if(e.isExportEquals)return;const{typeNode:t}=x(e.expression);if(!t)return;const n=mw.createUniqueName("_default");return i.replaceNodeWithNodes(o,e,[mw.createVariableStatement(void 0,mw.createVariableDeclarationList([mw.createVariableDeclaration(n,void 0,t,e.expression)],2)),mw.updateExportAssignment(e,null==e?void 0:e.modifiers,n)]),[_a.Extract_default_export_to_variable]}(e);case 264:return function(e){var t,n;const r=null==(t=e.heritageClauses)?void 0:t.find(e=>96===e.token),a=null==r?void 0:r.types[0];if(!a)return;const{typeNode:s}=x(a.expression);if(!s)return;const c=mw.createUniqueName(e.name?e.name.text+"Base":"Anonymous",16),l=mw.createVariableStatement(void 0,mw.createVariableDeclarationList([mw.createVariableDeclaration(c,void 0,s,a.expression)],2));i.insertNodeBefore(o,e,l);const _=us(o.text,a.end),u=(null==(n=null==_?void 0:_[_.length-1])?void 0:n.end)??a.end;return i.replaceRange(o,{pos:a.getFullStart(),end:u},c,{prefix:" "}),[_a.Extract_base_class_to_variable]}(e);case 207:case 208:return function(e){var t;const n=e.parent,r=e.parent.parent.parent;if(!n.initializer)return;let a;const s=[];if(aD(n.initializer))a={expression:{kind:3,identifier:n.initializer}};else{const e=mw.createUniqueName("dest",16);a={expression:{kind:3,identifier:e}},s.push(mw.createVariableStatement(void 0,mw.createVariableDeclarationList([mw.createVariableDeclaration(e,void 0,void 0,n.initializer)],2)))}const c=[];cF(e)?y(e,c,a):v(e,c,a);const l=new Map;for(const e of c){if(e.element.propertyName&&kD(e.element.propertyName)){const t=e.element.propertyName.expression,n=mw.getGeneratedNameForNode(t),r=mw.createVariableDeclaration(n,void 0,void 0,t),i=mw.createVariableDeclarationList([r],2),o=mw.createVariableStatement(void 0,i);s.push(o),l.set(t,n)}const n=e.element.name;if(cF(n))y(n,c,e);else if(sF(n))v(n,c,e);else{const{typeNode:i}=x(n);let o=b(e,l);if(e.element.initializer){const n=null==(t=e.element)?void 0:t.propertyName,r=mw.createUniqueName(n&&aD(n)?n.text:"temp",16);s.push(mw.createVariableStatement(void 0,mw.createVariableDeclarationList([mw.createVariableDeclaration(r,void 0,void 0,o)],2))),o=mw.createConditionalExpression(mw.createBinaryExpression(r,mw.createToken(37),mw.createIdentifier("undefined")),mw.createToken(58),e.element.initializer,mw.createToken(59),o)}const a=Nv(r,32)?[mw.createToken(95)]:void 0;s.push(mw.createVariableStatement(a,mw.createVariableDeclarationList([mw.createVariableDeclaration(n,void 0,i,o)],2)))}}return r.declarationList.declarations.length>1&&s.push(mw.updateVariableStatement(r,r.modifiers,mw.updateVariableDeclarationList(r.declarationList,r.declarationList.declarations.filter(t=>t!==e.parent)))),i.replaceNodeWithNodes(o,r,s),[_a.Extract_binding_expressions_to_variable]}(e);default:throw new Error(`Cannot find a fix for the given node ${e.kind}`)}}function y(e,t,n){for(let r=0;r=0;--e){const i=n[e].expression;0===i.kind?r=mw.createPropertyAccessChain(r,void 0,mw.createIdentifier(i.text)):1===i.kind?r=mw.createElementAccessExpression(r,t.get(i.computed)):2===i.kind&&(r=mw.createElementAccessExpression(r,i.arrayIndex))}return r}function x(e,n){if(1===t)return C(e);let i;if(eh(e)){const t=s.getSignatureFromDeclaration(e);if(t){const n=s.getTypePredicateOfSignature(t);if(n)return n.type?{typeNode:N(n,uc(e,_u)??o,c(n.type)),mutatedTarget:!1}:r;i=s.getReturnTypeOfSignature(t)}}else i=s.getTypeAtLocation(e);if(!i)return r;if(2===t){n&&(i=n);const e=s.getWidenedLiteralType(i);if(s.isTypeAssignableTo(e,i))return r;i=e}const a=uc(e,_u)??o;return TD(e)&&s.requiresAddingImplicitUndefined(e,a)&&(i=s.getUnionType([s.getUndefinedType(),i],0)),{typeNode:w(i,a,c(i)),mutatedTarget:!1};function c(t){return(lE(e)||ND(e)&&Nv(e,264))&&8192&t.flags?1048576:0}}function k(e){return mw.createTypeQueryNode(RC(e))}function S(e,t,n,a,s,c,l,_){const u=[],d=[];let p;const f=uc(e,pu);for(const t of a(e))s(t)?(g(),ab(t.expression)?(u.push(k(t.expression)),d.push(t)):m(t.expression)):(p??(p=[])).push(t);return 0===d.length?r:(g(),i.replaceNode(o,e,l(d)),{typeNode:_(u),mutatedTarget:!0});function m(e){const r=mw.createUniqueName(t+"_Part"+(d.length+1),16),a=n?mw.createAsExpression(e,mw.createTypeReferenceNode("const")):e,s=mw.createVariableStatement(void 0,mw.createVariableDeclarationList([mw.createVariableDeclaration(r,void 0,void 0,a)],2));i.insertNodeBefore(o,f,s),u.push(k(r)),d.push(c(r))}function g(){p&&(m(l(p)),p=void 0)}}function T(e){return W_(e)&&kl(e.type)}function C(e){if(TD(e))return r;if(iP(e))return{typeNode:k(e.name),mutatedTarget:!1};if(ab(e))return{typeNode:k(e),mutatedTarget:!1};if(T(e))return C(e.expression);if(_F(e)){const t=uc(e,lE);return function(e,t="temp"){const n=!!uc(e,T);return n?S(e,t,n,e=>e.elements,PF,mw.createSpreadElement,e=>mw.createArrayLiteralExpression(e,!0),e=>mw.createTupleTypeNode(e.map(mw.createRestTypeNode))):r}(e,t&&aD(t.name)?t.name.text:void 0)}if(uF(e)){const t=uc(e,lE);return function(e,t="temp"){return S(e,t,!!uc(e,T),e=>e.properties,oP,mw.createSpreadAssignment,e=>mw.createObjectLiteralExpression(e,!0),mw.createIntersectionTypeNode)}(e,t&&aD(t.name)?t.name.text:void 0)}if(lE(e)&&e.initializer)return C(e.initializer);if(DF(e)){const{typeNode:t,mutatedTarget:n}=C(e.whenTrue);if(!t)return r;const{typeNode:i,mutatedTarget:o}=C(e.whenFalse);return i?{typeNode:mw.createUnionTypeNode([t,i]),mutatedTarget:n||o}:r}return r}function w(e,t,n=0){let r=!1;const i=zie(s,e,t,nie|n,1,{moduleResolverHost:a,trackSymbol:()=>!0,reportTruncationError(){r=!0}});if(!i)return;const o=Jie(i,l,c);return r?mw.createKeywordTypeNode(133):o}function N(e,t,n=0){let r=!1;const i=qie(s,l,e,t,c,nie|n,1,{moduleResolverHost:a,trackSymbol:()=>!0,reportTruncationError(){r=!0}});return r?mw.createKeywordTypeNode(133):i}function D(e){xw(e,1);const t=d.printNode(4,e,o);return t.length>Vu?t.substring(0,Vu-3)+"...":(xw(e,0),t)}function F(e,t){for(;e&&e.endt.addTypeAnnotation(e.span)),rie(Yre,t,e,1,t=>t.addTypeAnnotation(e.span)),rie(Yre,t,e,2,t=>t.addTypeAnnotation(e.span)),rie(Zre,t,e,0,t=>t.addInlineAssertion(e.span)),rie(Zre,t,e,1,t=>t.addInlineAssertion(e.span)),rie(Zre,t,e,2,t=>t.addInlineAssertion(e.span)),rie("extract-expression",t,e,0,t=>t.extractAsVariable(e.span)),t},getAllCodeActions:e=>j7(iie(e,0,t=>{B7(e,eie,e=>{t.addTypeAnnotation(e)})}).textChanges)});var oie="fixAwaitInSyncFunction",aie=[_a.await_expressions_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules.code,_a.await_using_statements_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules.code,_a.for_await_loops_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules.code,_a.Cannot_find_name_0_Did_you_mean_to_write_this_in_an_async_function.code];function sie(e,t){const n=Kf(HX(e,t));if(!n)return;let r;switch(n.kind){case 175:r=n.name;break;case 263:case 219:r=OX(n,100,e);break;case 220:r=OX(n,n.typeParameters?30:21,e)||ge(n.parameters);break;default:return}return r&&{insertBefore:r,returnType:(i=n,i.type?i.type:lE(i.parent)&&i.parent.type&&BD(i.parent.type)?i.parent.type.type:void 0)};var i}function cie(e,t,{insertBefore:n,returnType:r}){if(r){const n=_m(r);n&&80===n.kind&&"Promise"===n.text||e.replaceNode(t,r,mw.createTypeReferenceNode("Promise",mw.createNodeArray([r])))}e.insertModifierBefore(t,134,n)}A7({errorCodes:aie,getCodeActions(e){const{sourceFile:t,span:n}=e,r=sie(t,n.start);if(!r)return;const i=jue.ChangeTracker.with(e,e=>cie(e,t,r));return[F7(oie,i,_a.Add_async_modifier_to_containing_function,oie,_a.Add_all_missing_async_modifiers)]},fixIds:[oie],getAllCodeActions:function(e){const t=new Set;return R7(e,aie,(n,r)=>{const i=sie(r.file,r.start);i&&bx(t,ZB(i.insertBefore))&&cie(n,e.sourceFile,i)})}});var lie=[_a._0_is_defined_as_an_accessor_in_class_1_but_is_overridden_here_in_2_as_an_instance_property.code,_a._0_is_defined_as_a_property_in_class_1_but_is_overridden_here_in_2_as_an_accessor.code],_ie="fixPropertyOverrideAccessor";function uie(e,t,n,r,i){let o,a;if(r===_a._0_is_defined_as_an_accessor_in_class_1_but_is_overridden_here_in_2_as_an_instance_property.code)o=t,a=t+n;else if(r===_a._0_is_defined_as_a_property_in_class_1_but_is_overridden_here_in_2_as_an_accessor.code){const n=i.program.getTypeChecker(),r=HX(e,t).parent;if(kD(r))return;un.assert(d_(r),"error span of fixPropertyOverrideAccessor should only be on an accessor");const s=r.parent;un.assert(u_(s),"erroneous accessors should only be inside classes");const c=yh(s);if(!c)return;const l=ah(c.expression),_=AF(l)?l.symbol:n.getSymbolAtLocation(l);if(!_)return;const u=n.getDeclaredTypeOfSymbol(_),d=n.getPropertyOfType(u,mc(jp(r.name)));if(!d||!d.valueDeclaration)return;o=d.valueDeclaration.pos,a=d.valueDeclaration.end,e=vd(d.valueDeclaration)}else un.fail("fixPropertyOverrideAccessor codefix got unexpected error code "+r);return roe(e,i.program,o,a,i,_a.Generate_get_and_set_accessors.message)}A7({errorCodes:lie,getCodeActions(e){const t=uie(e.sourceFile,e.span.start,e.span.length,e.errorCode,e);if(t)return[F7(_ie,t,_a.Generate_get_and_set_accessors,_ie,_a.Generate_get_and_set_accessors_for_all_overriding_properties)]},fixIds:[_ie],getAllCodeActions:e=>R7(e,lie,(t,n)=>{const r=uie(n.file,n.start,n.length,n.code,e);if(r)for(const n of r)t.pushRaw(e.sourceFile,n)})});var die="inferFromUsage",pie=[_a.Variable_0_implicitly_has_type_1_in_some_locations_where_its_type_cannot_be_determined.code,_a.Variable_0_implicitly_has_an_1_type.code,_a.Parameter_0_implicitly_has_an_1_type.code,_a.Rest_parameter_0_implicitly_has_an_any_type.code,_a.Property_0_implicitly_has_type_any_because_its_get_accessor_lacks_a_return_type_annotation.code,_a._0_which_lacks_return_type_annotation_implicitly_has_an_1_return_type.code,_a.Property_0_implicitly_has_type_any_because_its_set_accessor_lacks_a_parameter_type_annotation.code,_a.Member_0_implicitly_has_an_1_type.code,_a.Variable_0_implicitly_has_type_1_in_some_locations_but_a_better_type_may_be_inferred_from_usage.code,_a.Variable_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage.code,_a.Parameter_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage.code,_a.Rest_parameter_0_implicitly_has_an_any_type_but_a_better_type_may_be_inferred_from_usage.code,_a.Property_0_implicitly_has_type_any_but_a_better_type_for_its_get_accessor_may_be_inferred_from_usage.code,_a._0_implicitly_has_an_1_return_type_but_a_better_type_may_be_inferred_from_usage.code,_a.Property_0_implicitly_has_type_any_but_a_better_type_for_its_set_accessor_may_be_inferred_from_usage.code,_a.Member_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage.code,_a.this_implicitly_has_type_any_because_it_does_not_have_a_type_annotation.code];function fie(e,t){switch(e){case _a.Parameter_0_implicitly_has_an_1_type.code:case _a.Parameter_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage.code:return ID(Kf(t))?_a.Infer_type_of_0_from_usage:_a.Infer_parameter_types_from_usage;case _a.Rest_parameter_0_implicitly_has_an_any_type.code:case _a.Rest_parameter_0_implicitly_has_an_any_type_but_a_better_type_may_be_inferred_from_usage.code:return _a.Infer_parameter_types_from_usage;case _a.this_implicitly_has_type_any_because_it_does_not_have_a_type_annotation.code:return _a.Infer_this_type_of_0_from_usage;default:return _a.Infer_type_of_0_from_usage}}function mie(e,t,n,r,i,o,a,s,c){if(!Ql(n.kind)&&80!==n.kind&&26!==n.kind&&110!==n.kind)return;const{parent:l}=n,_=lee(t,i,c,s);switch(r=function(e){switch(e){case _a.Variable_0_implicitly_has_type_1_in_some_locations_but_a_better_type_may_be_inferred_from_usage.code:return _a.Variable_0_implicitly_has_type_1_in_some_locations_where_its_type_cannot_be_determined.code;case _a.Variable_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage.code:return _a.Variable_0_implicitly_has_an_1_type.code;case _a.Parameter_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage.code:return _a.Parameter_0_implicitly_has_an_1_type.code;case _a.Rest_parameter_0_implicitly_has_an_any_type_but_a_better_type_may_be_inferred_from_usage.code:return _a.Rest_parameter_0_implicitly_has_an_any_type.code;case _a.Property_0_implicitly_has_type_any_but_a_better_type_for_its_get_accessor_may_be_inferred_from_usage.code:return _a.Property_0_implicitly_has_type_any_because_its_get_accessor_lacks_a_return_type_annotation.code;case _a._0_implicitly_has_an_1_return_type_but_a_better_type_may_be_inferred_from_usage.code:return _a._0_which_lacks_return_type_annotation_implicitly_has_an_1_return_type.code;case _a.Property_0_implicitly_has_type_any_but_a_better_type_for_its_set_accessor_may_be_inferred_from_usage.code:return _a.Property_0_implicitly_has_type_any_because_its_set_accessor_lacks_a_parameter_type_annotation.code;case _a.Member_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage.code:return _a.Member_0_implicitly_has_an_1_type.code}return e}(r)){case _a.Member_0_implicitly_has_an_1_type.code:case _a.Variable_0_implicitly_has_type_1_in_some_locations_where_its_type_cannot_be_determined.code:if(lE(l)&&a(l)||ND(l)||wD(l))return gie(e,_,t,l,i,s,o),_.writeFixes(e),l;if(dF(l)){const n=pZ(xie(l.name,i,o),l,i,s);if(n){const r=mw.createJSDocTypeTag(void 0,mw.createJSDocTypeExpression(n),void 0);e.addJSDocTags(t,nt(l.parent.parent,HF),[r])}return _.writeFixes(e),l}return;case _a.Variable_0_implicitly_has_an_1_type.code:{const t=i.getTypeChecker().getSymbolAtLocation(n);return t&&t.valueDeclaration&&lE(t.valueDeclaration)&&a(t.valueDeclaration)?(gie(e,_,vd(t.valueDeclaration),t.valueDeclaration,i,s,o),_.writeFixes(e),t.valueDeclaration):void 0}}const u=Kf(n);if(void 0===u)return;let d;switch(r){case _a.Parameter_0_implicitly_has_an_1_type.code:if(ID(u)){hie(e,_,t,u,i,s,o),d=u;break}case _a.Rest_parameter_0_implicitly_has_an_any_type.code:if(a(u)){const n=nt(l,TD);!function(e,t,n,r,i,o,a,s){if(!aD(r.name))return;const c=function(e,t,n,r){const i=kie(e,t,n,r);return i&&Sie(n,i,r).parameters(e)||e.parameters.map(e=>({declaration:e,type:aD(e.name)?xie(e.name,n,r):n.getTypeChecker().getAnyType()}))}(i,n,o,s);if(un.assert(i.parameters.length===c.length,"Parameter count and inference count should match"),Em(i))vie(e,n,c,o,a);else{const r=bF(i)&&!OX(i,21,n);r&&e.insertNodeBefore(n,ge(i.parameters),mw.createToken(21));for(const{declaration:r,type:i}of c)!r||r.type||r.initializer||yie(e,t,n,r,i,o,a);r&&e.insertNodeAfter(n,ve(i.parameters),mw.createToken(22))}}(e,_,t,n,u,i,s,o),d=n}break;case _a.Property_0_implicitly_has_type_any_because_its_get_accessor_lacks_a_return_type_annotation.code:case _a._0_which_lacks_return_type_annotation_implicitly_has_an_1_return_type.code:AD(u)&&aD(u.name)&&(yie(e,_,t,u,xie(u.name,i,o),i,s),d=u);break;case _a.Property_0_implicitly_has_type_any_because_its_set_accessor_lacks_a_parameter_type_annotation.code:ID(u)&&(hie(e,_,t,u,i,s,o),d=u);break;case _a.this_implicitly_has_type_any_because_it_does_not_have_a_type_annotation.code:jue.isThisTypeAnnotatable(u)&&a(u)&&(function(e,t,n,r,i,o){const a=kie(n,t,r,o);if(!a||!a.length)return;const s=pZ(Sie(r,a,o).thisParameter(),n,r,i);s&&(Em(n)?function(e,t,n,r){e.addJSDocTags(t,n,[mw.createJSDocThisTag(void 0,mw.createJSDocTypeExpression(r))])}(e,t,n,s):e.tryInsertThisTypeAnnotation(t,n,s))}(e,t,u,i,s,o),d=u);break;default:return un.fail(String(r))}return _.writeFixes(e),d}function gie(e,t,n,r,i,o,a){aD(r.name)&&yie(e,t,n,r,xie(r.name,i,a),i,o)}function hie(e,t,n,r,i,o,a){const s=fe(r.parameters);if(s&&aD(r.name)&&aD(s.name)){let c=xie(r.name,i,a);c===i.getTypeChecker().getAnyType()&&(c=xie(s.name,i,a)),Em(r)?vie(e,n,[{declaration:s,type:c}],i,o):yie(e,t,n,s,c,i,o)}}function yie(e,t,n,r,i,o,a){const s=pZ(i,r,o,a);if(s)if(Em(n)&&172!==r.kind){const t=lE(r)?tt(r.parent.parent,WF):r;if(!t)return;const i=mw.createJSDocTypeExpression(s),o=AD(r)?mw.createJSDocReturnTag(void 0,i,void 0):mw.createJSDocTypeTag(void 0,i,void 0);e.addJSDocTags(n,t,[o])}else(function(e,t,n,r,i,o){const a=Zie(e,o);return!(!a||!r.tryInsertTypeAnnotation(n,t,a.typeNode))&&(d(a.symbols,e=>i.addImportFromExportedSymbol(e,!0)),!0)})(s,r,n,e,t,yk(o.getCompilerOptions()))||e.tryInsertTypeAnnotation(n,r,s)}function vie(e,t,n,r,i){const o=n.length&&n[0].declaration.parent;if(!o)return;const a=B(n,e=>{const t=e.declaration;if(t.initializer||nl(t)||!aD(t.name))return;const n=e.type&&pZ(e.type,t,r,i);return n?(xw(mw.cloneNode(t.name),7168),{name:mw.cloneNode(t.name),param:t,isOptional:!!e.isOptional,typeNode:n}):void 0});if(a.length)if(bF(o)||vF(o)){const n=bF(o)&&!OX(o,21,t);n&&e.insertNodeBefore(t,ge(o.parameters),mw.createToken(21)),d(a,({typeNode:n,param:r})=>{const i=mw.createJSDocTypeTag(void 0,mw.createJSDocTypeExpression(n)),o=mw.createJSDocComment(void 0,[i]);e.insertNodeAt(t,r.getStart(t),o,{suffix:" "})}),n&&e.insertNodeAfter(t,ve(o.parameters),mw.createToken(22))}else{const n=E(a,({name:e,typeNode:t,isOptional:n})=>mw.createJSDocParameterTag(void 0,e,!!n,mw.createJSDocTypeExpression(t),!1,void 0));e.addJSDocTags(t,o,n)}}function bie(e,t,n){return B(gce.getReferenceEntriesForNode(-1,e,t,t.getSourceFiles(),n),e=>e.kind!==gce.EntryKind.Span?tt(e.node,aD):void 0)}function xie(e,t,n){return Sie(t,bie(e,t,n),n).single()}function kie(e,t,n,r){let i;switch(e.kind){case 177:i=OX(e,137,t);break;case 220:case 219:const n=e.parent;i=(lE(n)||ND(n))&&aD(n.name)?n.name:e.name;break;case 263:case 175:case 174:i=e.name}if(i)return bie(i,n,r)}function Sie(e,t,n){const r=e.getTypeChecker(),i={string:()=>r.getStringType(),number:()=>r.getNumberType(),Array:e=>r.createArrayType(e),Promise:e=>r.createPromiseType(e)},o=[r.getStringType(),r.getNumberType(),r.createArrayType(r.getAnyType()),r.createPromiseType(r.getAnyType())];return{single:function(){return f(s(t))},parameters:function(i){if(0===t.length||!i.parameters)return;const o={isNumber:void 0,isString:void 0,isNumberOrString:void 0,candidateTypes:void 0,properties:void 0,calls:void 0,constructs:void 0,numberIndex:void 0,stringIndex:void 0,candidateThisTypes:void 0,inferredTypes:void 0};for(const e of t)n.throwIfCancellationRequested(),c(e,o);const a=[...o.constructs||[],...o.calls||[]];return i.parameters.map((t,o)=>{const c=[],l=Bu(t);let _=!1;for(const e of a)if(e.argumentTypes.length<=o)_=Em(i),c.push(r.getUndefinedType());else if(l)for(let t=o;t{t.has(n)||t.set(n,[]),t.get(n).push(e)});const n=new Map;return t.forEach((e,t)=>{n.set(t,a(e))}),{isNumber:e.some(e=>e.isNumber),isString:e.some(e=>e.isString),isNumberOrString:e.some(e=>e.isNumberOrString),candidateTypes:O(e,e=>e.candidateTypes),properties:n,calls:O(e,e=>e.calls),constructs:O(e,e=>e.constructs),numberIndex:d(e,e=>e.numberIndex),stringIndex:d(e,e=>e.stringIndex),candidateThisTypes:O(e,e=>e.candidateThisTypes),inferredTypes:void 0}}function s(e){const t={isNumber:void 0,isString:void 0,isNumberOrString:void 0,candidateTypes:void 0,properties:void 0,calls:void 0,constructs:void 0,numberIndex:void 0,stringIndex:void 0,candidateThisTypes:void 0,inferredTypes:void 0};for(const r of e)n.throwIfCancellationRequested(),c(r,t);return m(t)}function c(e,t){for(;db(e);)e=e.parent;switch(e.parent.kind){case 245:!function(e,t){v(t,fF(e)?r.getVoidType():r.getAnyType())}(e,t);break;case 226:t.isNumber=!0;break;case 225:!function(e,t){switch(e.operator){case 46:case 47:case 41:case 55:t.isNumber=!0;break;case 40:t.isNumberOrString=!0}}(e.parent,t);break;case 227:!function(e,t,n){switch(t.operatorToken.kind){case 43:case 42:case 44:case 45:case 48:case 49:case 50:case 51:case 52:case 53:case 66:case 68:case 67:case 69:case 70:case 74:case 75:case 79:case 71:case 73:case 72:case 41:case 30:case 33:case 32:case 34:const i=r.getTypeAtLocation(t.left===e?t.right:t.left);1056&i.flags?v(n,i):n.isNumber=!0;break;case 65:case 40:const o=r.getTypeAtLocation(t.left===e?t.right:t.left);1056&o.flags?v(n,o):296&o.flags?n.isNumber=!0:402653316&o.flags?n.isString=!0:1&o.flags||(n.isNumberOrString=!0);break;case 64:case 35:case 37:case 38:case 36:case 77:case 78:case 76:v(n,r.getTypeAtLocation(t.left===e?t.right:t.left));break;case 103:e===t.left&&(n.isString=!0);break;case 57:case 61:e!==t.left||261!==e.parent.parent.kind&&!rb(e.parent.parent,!0)||v(n,r.getTypeAtLocation(t.right))}}(e,e.parent,t);break;case 297:case 298:!function(e,t){v(t,r.getTypeAtLocation(e.parent.parent.expression))}(e.parent,t);break;case 214:case 215:e.parent.expression===e?function(e,t){const n={argumentTypes:[],return_:{isNumber:void 0,isString:void 0,isNumberOrString:void 0,candidateTypes:void 0,properties:void 0,calls:void 0,constructs:void 0,numberIndex:void 0,stringIndex:void 0,candidateThisTypes:void 0,inferredTypes:void 0}};if(e.arguments)for(const t of e.arguments)n.argumentTypes.push(r.getTypeAtLocation(t));c(e,n.return_),214===e.kind?(t.calls||(t.calls=[])).push(n):(t.constructs||(t.constructs=[])).push(n)}(e.parent,t):_(e,t);break;case 212:!function(e,t){const n=fc(e.name.text);t.properties||(t.properties=new Map);const r=t.properties.get(n)||{isNumber:void 0,isString:void 0,isNumberOrString:void 0,candidateTypes:void 0,properties:void 0,calls:void 0,constructs:void 0,numberIndex:void 0,stringIndex:void 0,candidateThisTypes:void 0,inferredTypes:void 0};c(e,r),t.properties.set(n,r)}(e.parent,t);break;case 213:!function(e,t,n){if(t!==e.argumentExpression){const t=r.getTypeAtLocation(e.argumentExpression),i={isNumber:void 0,isString:void 0,isNumberOrString:void 0,candidateTypes:void 0,properties:void 0,calls:void 0,constructs:void 0,numberIndex:void 0,stringIndex:void 0,candidateThisTypes:void 0,inferredTypes:void 0};c(e,i),296&t.flags?n.numberIndex=i:n.stringIndex=i}else n.isNumberOrString=!0}(e.parent,e,t);break;case 304:case 305:!function(e,t){const n=lE(e.parent.parent)?e.parent.parent:e.parent;b(t,r.getTypeAtLocation(n))}(e.parent,t);break;case 173:!function(e,t){b(t,r.getTypeAtLocation(e.parent))}(e.parent,t);break;case 261:{const{name:n,initializer:i}=e.parent;if(e===n){i&&v(t,r.getTypeAtLocation(i));break}}default:return _(e,t)}}function _(e,t){bm(e)&&v(t,r.getContextualType(e))}function p(e){return f(m(e))}function f(e){if(!e.length)return r.getAnyType();const t=r.getUnionType([r.getStringType(),r.getNumberType()]);let n=function(e,t){const n=[];for(const r of e)for(const{high:e,low:i}of t)e(r)&&(un.assert(!i(r),"Priority can't have both low and high"),n.push(i));return e.filter(e=>n.every(t=>!t(e)))}(e,[{high:e=>e===r.getStringType()||e===r.getNumberType(),low:e=>e===t},{high:e=>!(16385&e.flags),low:e=>!!(16385&e.flags)},{high:e=>!(114689&e.flags||16&gx(e)),low:e=>!!(16&gx(e))}]);const i=n.filter(e=>16&gx(e));return i.length&&(n=n.filter(e=>!(16&gx(e))),n.push(function(e){if(1===e.length)return e[0];const t=[],n=[],i=[],o=[];let a=!1,s=!1;const c=$e();for(const l of e){for(const e of r.getPropertiesOfType(l))c.add(e.escapedName,e.valueDeclaration?r.getTypeOfSymbolAtLocation(e,e.valueDeclaration):r.getAnyType());t.push(...r.getSignaturesOfType(l,0)),n.push(...r.getSignaturesOfType(l,1));const e=r.getIndexInfoOfType(l,0);e&&(i.push(e.type),a=a||e.isReadonly);const _=r.getIndexInfoOfType(l,1);_&&(o.push(_.type),s=s||_.isReadonly)}const l=W(c,(t,n)=>{const i=n.lengthr.getBaseTypeOfLiteralType(e)),_=(null==(a=e.calls)?void 0:a.length)?g(e):void 0;return _&&c?s.push(r.getUnionType([_,...c],2)):(_&&s.push(_),u(c)&&s.push(...c)),s.push(...function(e){if(!e.properties||!e.properties.size)return[];const t=o.filter(t=>function(e,t){return!!t.properties&&!rd(t.properties,(t,n)=>{const i=r.getTypeOfPropertyOfType(e,n);return!i||(t.calls?!r.getSignaturesOfType(i,0).length||!r.isTypeAssignableTo(i,(o=t.calls,r.createAnonymousType(void 0,Gu(),[y(o)],l,l))):!r.isTypeAssignableTo(i,p(t)));var o})}(t,e));return 0function(e,t){if(!(4&gx(e)&&t.properties))return e;const n=e.target,o=be(n.typeParameters);if(!o)return e;const a=[];return t.properties.forEach((e,t)=>{const i=r.getTypeOfPropertyOfType(n,t);un.assert(!!i,"generic should have all the properties of its reference."),a.push(...h(i,p(e),o))}),i[e.symbol.escapedName](f(a))}(t,e)):[]}(e)),s}function g(e){const t=new Map;e.properties&&e.properties.forEach((e,n)=>{const i=r.createSymbol(4,n);i.links.type=p(e),t.set(n,i)});const n=e.calls?[y(e.calls)]:[],i=e.constructs?[y(e.constructs)]:[],o=e.stringIndex?[r.createIndexInfo(r.getStringType(),p(e.stringIndex),!1)]:[];return r.createAnonymousType(void 0,t,n,i,o)}function h(e,t,n){if(e===n)return[t];if(3145728&e.flags)return O(e.types,e=>h(e,t,n));if(4&gx(e)&&4&gx(t)){const i=r.getTypeArguments(e),o=r.getTypeArguments(t),a=[];if(i&&o)for(let e=0;ee.argumentTypes.length));for(let i=0;ie.argumentTypes[i]||r.getUndefinedType())),e.some(e=>void 0===e.argumentTypes[i])&&(n.flags|=16777216),t.push(n)}const i=p(a(e.map(e=>e.return_)));return r.createSignature(void 0,void 0,void 0,t,i,void 0,n,0)}function v(e,t){!t||1&t.flags||131072&t.flags||(e.candidateTypes||(e.candidateTypes=[])).push(t)}function b(e,t){!t||1&t.flags||131072&t.flags||(e.candidateThisTypes||(e.candidateThisTypes=[])).push(t)}}A7({errorCodes:pie,getCodeActions(e){const{sourceFile:t,program:n,span:{start:r},errorCode:i,cancellationToken:o,host:a,preferences:s}=e,c=HX(t,r);let l;const _=jue.ChangeTracker.with(e,e=>{l=mie(e,t,c,i,n,o,ot,a,s)}),u=l&&Cc(l);return u&&0!==_.length?[F7(die,_,[fie(i,c),Xd(u)],die,_a.Infer_all_types_from_usage)]:void 0},fixIds:[die],getAllCodeActions(e){const{sourceFile:t,program:n,cancellationToken:r,host:i,preferences:o}=e,a=JQ();return R7(e,pie,(e,s)=>{mie(e,t,HX(s.file,s.start),s.code,n,r,a,i,o)})}});var Tie="fixReturnTypeInAsyncFunction",Cie=[_a.The_return_type_of_an_async_function_or_method_must_be_the_global_Promise_T_type_Did_you_mean_to_write_Promise_0.code];function wie(e,t,n){if(Em(e))return;const r=uc(HX(e,n),o_),i=null==r?void 0:r.type;if(!i)return;const o=t.getTypeFromTypeNode(i),a=t.getAwaitedType(o)||t.getVoidType(),s=t.typeToTypeNode(a,i,void 0);return s?{returnTypeNode:i,returnType:o,promisedTypeNode:s,promisedType:a}:void 0}function Nie(e,t,n,r){e.replaceNode(t,n,mw.createTypeReferenceNode("Promise",[r]))}A7({errorCodes:Cie,fixIds:[Tie],getCodeActions:function(e){const{sourceFile:t,program:n,span:r}=e,i=n.getTypeChecker(),o=wie(t,n.getTypeChecker(),r.start);if(!o)return;const{returnTypeNode:a,returnType:s,promisedTypeNode:c,promisedType:l}=o,_=jue.ChangeTracker.with(e,e=>Nie(e,t,a,c));return[F7(Tie,_,[_a.Replace_0_with_Promise_1,i.typeToString(s),i.typeToString(l)],Tie,_a.Fix_all_incorrect_return_type_of_an_async_functions)]},getAllCodeActions:e=>R7(e,Cie,(t,n)=>{const r=wie(n.file,e.program.getTypeChecker(),n.start);r&&Nie(t,n.file,r.returnTypeNode,r.promisedTypeNode)})});var Die="disableJsDiagnostics",Fie="disableJsDiagnostics",Eie=B(Object.keys(_a),e=>{const t=_a[e];return 1===t.category?t.code:void 0});function Pie(e,t,n,r){const{line:i}=za(t,n);r&&!q(r,i)||e.insertCommentBeforeLine(t,i,n," @ts-ignore")}function Aie(e,t,n,r,i,o,a){const s=e.symbol.members;for(const c of t)s.has(c.escapedName)||Lie(c,e,n,r,i,o,a,void 0)}function Iie(e){return{trackSymbol:()=>!1,moduleResolverHost:GQ(e.program,e.host)}}A7({errorCodes:Eie,getCodeActions:function(e){const{sourceFile:t,program:n,span:r,host:i,formatContext:o}=e;if(!Em(t)||!nT(t,n.getCompilerOptions()))return;const a=t.checkJsDirective?"":RY(i,o.options),s=[D7(Die,[M7(t.fileName,[LQ(t.checkJsDirective?$s(t.checkJsDirective.pos,t.checkJsDirective.end):Ws(0,0),`// @ts-nocheck${a}`)])],_a.Disable_checking_for_this_file)];return jue.isValidLocationToAddComment(t,r.start)&&s.unshift(F7(Die,jue.ChangeTracker.with(e,e=>Pie(e,t,r.start)),_a.Ignore_this_error_message,Fie,_a.Add_ts_ignore_to_all_error_messages)),s},fixIds:[Fie],getAllCodeActions:e=>{const t=new Set;return R7(e,Eie,(e,n)=>{jue.isValidLocationToAddComment(n.file,n.start)&&Pie(e,n.file,n.start,t)})}});var Oie=(e=>(e[e.Method=1]="Method",e[e.Property=2]="Property",e[e.All=3]="All",e))(Oie||{});function Lie(e,t,n,r,i,o,a,s,c=3,_=!1){const d=e.getDeclarations(),p=fe(d),f=r.program.getTypeChecker(),m=yk(r.program.getCompilerOptions()),g=(null==p?void 0:p.kind)??172,h=function(e,t){if(262144&rx(e)){const t=e.links.nameType;if(t&&sC(t))return mw.createIdentifier(mc(cC(t)))}return RC(Cc(t),!1)}(e,p),y=p?Bv(p):0;let v=256&y;v|=1&y?1:4&y?4:0,p&&p_(p)&&(v|=512);const b=function(){let e;return v&&(e=oe(e,mw.createModifiersFromModifierFlags(v))),r.program.getCompilerOptions().noImplicitOverride&&p&&Pv(p)&&(e=ie(e,mw.createToken(164))),e&&mw.createNodeArray(e)}(),x=f.getWidenedType(f.getTypeOfSymbolAtLocation(e,t)),k=!!(16777216&e.flags),S=!!(33554432&t.flags)||_,T=tY(n,i),C=1|(0===T?268435456:0);switch(g){case 172:case 173:let n=f.typeToTypeNode(x,t,C,8,Iie(r));if(o){const e=Zie(n,m);e&&(n=e.typeNode,toe(o,e.symbols))}a(mw.createPropertyDeclaration(b,p?N(h):e.getName(),k&&2&c?mw.createToken(58):void 0,n,void 0));break;case 178:case 179:{un.assertIsDefined(d);let e=f.typeToTypeNode(x,t,C,void 0,Iie(r));const n=pv(d,p),i=n.secondAccessor?[n.firstAccessor,n.secondAccessor]:[n.firstAccessor];if(o){const t=Zie(e,m);t&&(e=t.typeNode,toe(o,t.symbols))}for(const t of i)if(AD(t))a(mw.createGetAccessorDeclaration(b,N(h),l,F(e),D(s,T,S)));else{un.assertNode(t,ID,"The counterpart to a getter should be a setter");const n=ov(t),r=n&&aD(n.name)?gc(n.name):void 0;a(mw.createSetAccessorDeclaration(b,N(h),$ie(1,[r],[F(e)],1,!1),D(s,T,S)))}break}case 174:case 175:un.assertIsDefined(d);const i=x.isUnion()?O(x.types,e=>e.getCallSignatures()):x.getCallSignatures();if(!$(i))break;if(1===d.length){un.assert(1===i.length,"One declaration implies one signature");const e=i[0];w(T,e,b,N(h),D(s,T,S));break}for(const e of i)e.declaration&&33554432&e.declaration.flags||w(T,e,b,N(h));if(!S)if(d.length>i.length){const e=f.getSignatureFromDeclaration(d[d.length-1]);w(T,e,b,N(h),D(s,T))}else un.assert(d.length===i.length,"Declarations and signatures should match count"),a(function(e,t,n,r,i,o,a,s,c){let l=r[0],_=r[0].minArgumentCount,d=!1;for(const e of r)_=Math.min(e.minArgumentCount,_),aJ(e)&&(d=!0),e.parameters.length>=l.parameters.length&&(!aJ(e)||aJ(l))&&(l=e);const p=l.parameters.length-(aJ(l)?1:0),f=l.parameters.map(e=>e.name),m=$ie(p,f,void 0,_,!1);if(d){const e=mw.createParameterDeclaration(void 0,mw.createToken(26),f[p]||"rest",p>=_?mw.createToken(58):void 0,mw.createArrayTypeNode(mw.createKeywordTypeNode(159)),void 0);m.push(e)}return function(e,t,n,r,i,o,a,s){return mw.createMethodDeclaration(e,void 0,t,n?mw.createToken(58):void 0,void 0,i,o,s||Hie(a))}(a,i,o,0,m,function(e,t,n,r){if(u(e)){const i=t.getUnionType(E(e,t.getReturnTypeOfSignature));return t.typeToTypeNode(i,r,1,8,Iie(n))}}(r,e,t,n),s,c)}(f,r,t,i,N(h),k&&!!(1&c),b,T,s))}function w(e,n,i,s,l){const _=jie(175,r,e,n,l,s,i,k&&!!(1&c),t,o);_&&a(_)}function N(e){return aD(e)&&"constructor"===e.escapedText?mw.createComputedPropertyName(mw.createStringLiteral(gc(e),0===T)):RC(e,!1)}function D(e,t,n){return n?void 0:RC(e,!1)||Hie(t)}function F(e){return RC(e,!1)}}function jie(e,t,n,r,i,o,a,s,c,l){const _=t.program,u=_.getTypeChecker(),d=yk(_.getCompilerOptions()),p=Em(c),f=524545|(0===n?268435456:0),m=u.signatureToSignatureDeclaration(r,e,c,f,8,Iie(t));if(!m)return;let g=p?void 0:m.typeParameters,h=m.parameters,y=p?void 0:RC(m.type);if(l){if(g){const e=A(g,e=>{let t=e.constraint,n=e.default;if(t){const e=Zie(t,d);e&&(t=e.typeNode,toe(l,e.symbols))}if(n){const e=Zie(n,d);e&&(n=e.typeNode,toe(l,e.symbols))}return mw.updateTypeParameterDeclaration(e,e.modifiers,e.name,t,n)});g!==e&&(g=xI(mw.createNodeArray(e,g.hasTrailingComma),g))}const e=A(h,e=>{let t=p?void 0:e.type;if(t){const e=Zie(t,d);e&&(t=e.typeNode,toe(l,e.symbols))}return mw.updateParameterDeclaration(e,e.modifiers,e.dotDotDotToken,e.name,p?void 0:e.questionToken,t,e.initializer)});if(h!==e&&(h=xI(mw.createNodeArray(e,h.hasTrailingComma),h)),y){const e=Zie(y,d);e&&(y=e.typeNode,toe(l,e.symbols))}}const v=s?mw.createToken(58):void 0,b=m.asteriskToken;return vF(m)?mw.updateFunctionExpression(m,a,m.asteriskToken,tt(o,aD),g,h,y,i??m.body):bF(m)?mw.updateArrowFunction(m,a,g,h,y,m.equalsGreaterThanToken,i??m.body):FD(m)?mw.updateMethodDeclaration(m,a,b,o??mw.createIdentifier(""),v,g,h,y,i):uE(m)?mw.updateFunctionDeclaration(m,a,m.asteriskToken,tt(o,aD),g,h,y,i??m.body):void 0}function Mie(e,t,n,r,i,o,a){const s=tY(t.sourceFile,t.preferences),c=yk(t.program.getCompilerOptions()),l=Iie(t),_=t.program.getTypeChecker(),u=Em(a),{typeArguments:d,arguments:p,parent:f}=r,m=u?void 0:_.getContextualType(r),g=E(p,e=>aD(e)?e.text:dF(e)&&aD(e.name)?e.name.text:void 0),h=u?[]:E(p,e=>_.getTypeAtLocation(e)),{argumentTypeNodes:y,argumentTypeParameters:v}=function(e,t,n,r,i,o,a,s){const c=[],l=new Map;for(let o=0;oe[0])),i=new Map(t);if(n){const i=n.filter(n=>!t.some(t=>{var r;return e.getTypeAtLocation(n)===(null==(r=t[1])?void 0:r.argumentType)})),o=r.size+i.length;for(let e=0;r.size{var t;return mw.createTypeParameterDeclaration(void 0,e,null==(t=i.get(e))?void 0:t.constraint)})}(_,v,d),S=$ie(p.length,g,y,void 0,u),T=u||void 0===m?void 0:_.typeToTypeNode(m,a,void 0,void 0,l);switch(e){case 175:return mw.createMethodDeclaration(b,x,i,void 0,k,S,T,Hie(s));case 174:return mw.createMethodSignature(b,i,void 0,k,S,void 0===T?mw.createKeywordTypeNode(159):T);case 263:return un.assert("string"==typeof i||aD(i),"Unexpected name"),mw.createFunctionDeclaration(b,x,i,k,S,T,Kie(_a.Function_not_implemented.message,s));default:un.fail("Unexpected kind")}}function Rie(e){return 84+e<=90?String.fromCharCode(84+e):`T${e}`}function Bie(e,t,n,r,i,o,a,s){const c=e.typeToTypeNode(n,r,o,a,s);if(c)return Jie(c,t,i)}function Jie(e,t,n){const r=Zie(e,n);return r&&(toe(t,r.symbols),e=r.typeNode),RC(e)}function zie(e,t,n,r,i,o){let a=e.typeToTypeNode(t,n,r,i,o);if(a){if(RD(a)){const n=t;if(n.typeArguments&&a.typeArguments){const t=function(e,t){var n;un.assert(t.typeArguments);const r=t.typeArguments,i=t.target;for(let t=0;te===r[t]))return t}return r.length}(e,n);if(t=r?mw.createToken(58):void 0,i?void 0:(null==n?void 0:n[s])||mw.createKeywordTypeNode(159),void 0);o.push(l)}return o}function Hie(e){return Kie(_a.Method_not_implemented.message,e)}function Kie(e,t){return mw.createBlock([mw.createThrowStatement(mw.createNewExpression(mw.createIdentifier("Error"),void 0,[mw.createStringLiteral(e,0===t)]))],!0)}function Gie(e,t,n){const r=Wf(t);if(!r)return;const i=Yie(r,"compilerOptions");if(void 0===i)return void e.insertNodeAtObjectStart(t,r,Qie("compilerOptions",mw.createObjectLiteralExpression(n.map(([e,t])=>Qie(e,t)),!0)));const o=i.initializer;if(uF(o))for(const[r,i]of n){const n=Yie(o,r);void 0===n?e.insertNodeAtObjectStart(t,o,Qie(r,i)):e.replaceNode(t,n.initializer,i)}}function Xie(e,t,n,r){Gie(e,t,[[n,r]])}function Qie(e,t){return mw.createPropertyAssignment(mw.createStringLiteral(e),t)}function Yie(e,t){return b(e.properties,e=>rP(e)&&!!e.name&&UN(e.name)&&e.name.text===t)}function Zie(e,t){let n;const r=lJ(e,function e(r){if(df(r)&&r.qualifier){const i=sb(r.qualifier);if(!i.symbol)return vJ(r,e,void 0);const o=JZ(i.symbol,t),a=o!==i.text?eoe(r.qualifier,mw.createIdentifier(o)):r.qualifier;n=ie(n,i.symbol);const s=_J(r.typeArguments,e,b_);return mw.createTypeReferenceNode(a,s)}return vJ(r,e,void 0)},b_);if(n&&r)return{typeNode:r,symbols:n}}function eoe(e,t){return 80===e.kind?t:mw.createQualifiedName(eoe(e.left,t),e.right)}function toe(e,t){t.forEach(t=>e.addImportFromExportedSymbol(t,!0))}function noe(e,t){const n=Fs(t);let r=HX(e,t.start);for(;r.ende.replaceNode(t,n,r));return D7(_oe,i,[_a.Replace_import_with_0,i[0].textChanges[0].newText])}function doe(e,t){const n=e.program.getTypeChecker().getTypeAtLocation(t);if(!(n.symbol&&Xu(n.symbol)&&n.symbol.links.originatingImport))return[];const r=[],i=n.symbol.links.originatingImport;if(_f(i)||se(r,function(e,t){const n=vd(t),r=Sg(t),i=e.program.getCompilerOptions(),o=[];return o.push(uoe(e,n,t,QQ(r.name,void 0,t.moduleSpecifier,tY(n,e.preferences)))),1===vk(i)&&o.push(uoe(e,n,t,mw.createImportEqualsDeclaration(void 0,!1,r.name,mw.createExternalModuleReference(t.moduleSpecifier)))),o}(e,i)),V_(t)&&(!Sc(t.parent)||t.parent.name!==t)){const n=e.sourceFile,i=jue.ChangeTracker.with(e,e=>e.replaceNode(n,t,mw.createPropertyAccessExpression(t,"default"),{}));r.push(D7(_oe,i,_a.Use_synthetic_default_member))}return r}A7({errorCodes:[_a.This_expression_is_not_callable.code,_a.This_expression_is_not_constructable.code],getCodeActions:function(e){const t=e.sourceFile,n=_a.This_expression_is_not_callable.code===e.errorCode?214:215,r=uc(HX(t,e.span.start),e=>e.kind===n);if(!r)return[];return doe(e,r.expression)}}),A7({errorCodes:[_a.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1.code,_a.Type_0_does_not_satisfy_the_constraint_1.code,_a.Type_0_is_not_assignable_to_type_1.code,_a.Type_0_is_not_assignable_to_type_1_Two_different_types_with_this_name_exist_but_they_are_unrelated.code,_a.Type_predicate_0_is_not_assignable_to_1.code,_a.Property_0_of_type_1_is_not_assignable_to_2_index_type_3.code,_a._0_index_type_1_is_not_assignable_to_2_index_type_3.code,_a.Property_0_in_type_1_is_not_assignable_to_the_same_property_in_base_type_2.code,_a.Property_0_in_type_1_is_not_assignable_to_type_2.code,_a.Property_0_of_JSX_spread_attribute_is_not_assignable_to_target_property.code,_a.The_this_context_of_type_0_is_not_assignable_to_method_s_this_of_type_1.code],getCodeActions:function(e){const t=uc(HX(e.sourceFile,e.span.start),t=>t.getStart()===e.span.start&&t.getEnd()===e.span.start+e.span.length);return t?doe(e,t):[]}});var poe="strictClassInitialization",foe="addMissingPropertyDefiniteAssignmentAssertions",moe="addMissingPropertyUndefinedType",goe="addMissingPropertyInitializer",hoe=[_a.Property_0_has_no_initializer_and_is_not_definitely_assigned_in_the_constructor.code];function yoe(e,t){const n=HX(e,t);if(aD(n)&&ND(n.parent)){const e=fv(n.parent);if(e)return{type:e,prop:n.parent,isJs:Em(n.parent)}}}function voe(e,t,n){UC(n);const r=mw.updatePropertyDeclaration(n,n.modifiers,n.name,mw.createToken(54),n.type,n.initializer);e.replaceNode(t,n,r)}function boe(e,t,n){const r=mw.createKeywordTypeNode(157),i=KD(n.type)?n.type.types.concat(r):[n.type,r],o=mw.createUnionTypeNode(i);n.isJs?e.addJSDocTags(t,n.prop,[mw.createJSDocTypeTag(void 0,mw.createJSDocTypeExpression(o))]):e.replaceNode(t,n.type,o)}function xoe(e,t,n,r){UC(n);const i=mw.updatePropertyDeclaration(n,n.modifiers,n.name,n.questionToken,n.type,r);e.replaceNode(t,n,i)}function koe(e,t){return Soe(e,e.getTypeFromTypeNode(t.type))}function Soe(e,t){if(512&t.flags)return t===e.getFalseType()||t===e.getFalseType(!0)?mw.createFalse():mw.createTrue();if(t.isStringLiteral())return mw.createStringLiteral(t.value);if(t.isNumberLiteral())return mw.createNumericLiteral(t.value);if(2048&t.flags)return mw.createBigIntLiteral(t.value);if(t.isUnion())return f(t.types,t=>Soe(e,t));if(t.isClass()){const e=mx(t.symbol);if(!e||Nv(e,64))return;const n=iv(e);if(n&&n.parameters.length)return;return mw.createNewExpression(mw.createIdentifier(t.symbol.name),void 0,void 0)}return e.isArrayLikeType(t)?mw.createArrayLiteralExpression():void 0}A7({errorCodes:hoe,getCodeActions:function(e){const t=yoe(e.sourceFile,e.span.start);if(!t)return;const n=[];return ie(n,function(e,t){const n=jue.ChangeTracker.with(e,n=>boe(n,e.sourceFile,t));return F7(poe,n,[_a.Add_undefined_type_to_property_0,t.prop.name.getText()],moe,_a.Add_undefined_type_to_all_uninitialized_properties)}(e,t)),ie(n,function(e,t){if(t.isJs)return;const n=jue.ChangeTracker.with(e,n=>voe(n,e.sourceFile,t.prop));return F7(poe,n,[_a.Add_definite_assignment_assertion_to_property_0,t.prop.getText()],foe,_a.Add_definite_assignment_assertions_to_all_uninitialized_properties)}(e,t)),ie(n,function(e,t){if(t.isJs)return;const n=koe(e.program.getTypeChecker(),t.prop);if(!n)return;const r=jue.ChangeTracker.with(e,r=>xoe(r,e.sourceFile,t.prop,n));return F7(poe,r,[_a.Add_initializer_to_property_0,t.prop.name.getText()],goe,_a.Add_initializers_to_all_uninitialized_properties)}(e,t)),n},fixIds:[foe,moe,goe],getAllCodeActions:e=>R7(e,hoe,(t,n)=>{const r=yoe(n.file,n.start);if(r)switch(e.fixId){case foe:voe(t,n.file,r.prop);break;case moe:boe(t,n.file,r);break;case goe:const i=koe(e.program.getTypeChecker(),r.prop);if(!i)return;xoe(t,n.file,r.prop,i);break;default:un.fail(JSON.stringify(e.fixId))}})});var Toe="requireInTs",Coe=[_a.require_call_may_be_converted_to_an_import.code];function woe(e,t,n){const{allowSyntheticDefaults:r,defaultImportName:i,namedImports:o,statement:a,moduleSpecifier:s}=n;e.replaceNode(t,a,i&&!r?mw.createImportEqualsDeclaration(void 0,!1,i,mw.createExternalModuleReference(s)):mw.createImportDeclaration(void 0,mw.createImportClause(void 0,i,o),s,void 0))}function Noe(e,t,n,r){const{parent:i}=HX(e,n);Lm(i,!0)||un.failBadSyntaxKind(i);const o=nt(i.parent,lE),a=tY(e,r),s=tt(o.name,aD),c=sF(o.name)?function(e){const t=[];for(const n of e.elements){if(!aD(n.name)||n.initializer)return;t.push(mw.createImportSpecifier(!1,tt(n.propertyName,aD),n.name))}if(t.length)return mw.createNamedImports(t)}(o.name):void 0;if(s||c){const e=ge(i.arguments);return{allowSyntheticDefaults:Tk(t.getCompilerOptions()),defaultImportName:s,namedImports:c,statement:nt(o.parent.parent,WF),moduleSpecifier:$N(e)?mw.createStringLiteral(e.text,0===a):e}}}A7({errorCodes:Coe,getCodeActions(e){const t=Noe(e.sourceFile,e.program,e.span.start,e.preferences);if(!t)return;const n=jue.ChangeTracker.with(e,n=>woe(n,e.sourceFile,t));return[F7(Toe,n,_a.Convert_require_to_import,Toe,_a.Convert_all_require_to_import)]},fixIds:[Toe],getAllCodeActions:e=>R7(e,Coe,(t,n)=>{const r=Noe(n.file,e.program,n.start,e.preferences);r&&woe(t,e.sourceFile,r)})});var Doe="useDefaultImport",Foe=[_a.Import_may_be_converted_to_a_default_import.code];function Eoe(e,t){const n=HX(e,t);if(!aD(n))return;const{parent:r}=n;if(bE(r)&&JE(r.moduleReference))return{importNode:r,name:n,moduleSpecifier:r.moduleReference.expression};if(DE(r)&&xE(r.parent.parent)){const e=r.parent.parent;return{importNode:e,name:n,moduleSpecifier:e.moduleSpecifier}}}function Poe(e,t,n,r){e.replaceNode(t,n.importNode,QQ(n.name,void 0,n.moduleSpecifier,tY(t,r)))}A7({errorCodes:Foe,getCodeActions(e){const{sourceFile:t,span:{start:n}}=e,r=Eoe(t,n);if(!r)return;const i=jue.ChangeTracker.with(e,n=>Poe(n,t,r,e.preferences));return[F7(Doe,i,_a.Convert_to_default_import,Doe,_a.Convert_all_to_default_imports)]},fixIds:[Doe],getAllCodeActions:e=>R7(e,Foe,(t,n)=>{const r=Eoe(n.file,n.start);r&&Poe(t,n.file,r,e.preferences)})});var Aoe="useBigintLiteral",Ioe=[_a.Numeric_literals_with_absolute_values_equal_to_2_53_or_greater_are_too_large_to_be_represented_accurately_as_integers.code];function Ooe(e,t,n){const r=tt(HX(t,n.start),zN);if(!r)return;const i=r.getText(t)+"n";e.replaceNode(t,r,mw.createBigIntLiteral(i))}A7({errorCodes:Ioe,getCodeActions:function(e){const t=jue.ChangeTracker.with(e,t=>Ooe(t,e.sourceFile,e.span));if(t.length>0)return[F7(Aoe,t,_a.Convert_to_a_bigint_numeric_literal,Aoe,_a.Convert_all_to_bigint_numeric_literals)]},fixIds:[Aoe],getAllCodeActions:e=>R7(e,Ioe,(e,t)=>Ooe(e,t.file,t))});var Loe="fixAddModuleReferTypeMissingTypeof",joe=[_a.Module_0_does_not_refer_to_a_type_but_is_used_as_a_type_here_Did_you_mean_typeof_import_0.code];function Moe(e,t){const n=HX(e,t);return un.assert(102===n.kind,"This token should be an ImportKeyword"),un.assert(206===n.parent.kind,"Token parent should be an ImportType"),n.parent}function Roe(e,t,n){const r=mw.updateImportTypeNode(n,n.argument,n.attributes,n.qualifier,n.typeArguments,!0);e.replaceNode(t,n,r)}A7({errorCodes:joe,getCodeActions:function(e){const{sourceFile:t,span:n}=e,r=Moe(t,n.start),i=jue.ChangeTracker.with(e,e=>Roe(e,t,r));return[F7(Loe,i,_a.Add_missing_typeof,Loe,_a.Add_missing_typeof)]},fixIds:[Loe],getAllCodeActions:e=>R7(e,joe,(t,n)=>Roe(t,e.sourceFile,Moe(n.file,n.start)))});var Boe="wrapJsxInFragment",Joe=[_a.JSX_expressions_must_have_one_parent_element.code];function zoe(e,t){let n=HX(e,t).parent.parent;if((NF(n)||(n=n.parent,NF(n)))&&Nd(n.operatorToken))return n}function qoe(e,t,n){const r=function(e){const t=[];let n=e;for(;;){if(NF(n)&&Nd(n.operatorToken)&&28===n.operatorToken.kind){if(t.push(n.left),hu(n.right))return t.push(n.right),t;if(NF(n.right)){n=n.right;continue}return}return}}(n);r&&e.replaceNode(t,n,mw.createJsxFragment(mw.createJsxOpeningFragment(),r,mw.createJsxJsxClosingFragment()))}A7({errorCodes:Joe,getCodeActions:function(e){const{sourceFile:t,span:n}=e,r=zoe(t,n.start);if(!r)return;const i=jue.ChangeTracker.with(e,e=>qoe(e,t,r));return[F7(Boe,i,_a.Wrap_in_JSX_fragment,Boe,_a.Wrap_all_unparented_JSX_in_JSX_fragment)]},fixIds:[Boe],getAllCodeActions:e=>R7(e,Joe,(t,n)=>{const r=zoe(e.sourceFile,n.start);r&&qoe(t,e.sourceFile,r)})});var Uoe="wrapDecoratorInParentheses",Voe=[_a.Expression_must_be_enclosed_in_parentheses_to_be_used_as_a_decorator.code];function Woe(e,t,n){const r=uc(HX(t,n),CD);un.assert(!!r,"Expected position to be owned by a decorator.");const i=mw.createParenthesizedExpression(r.expression);e.replaceNode(t,r.expression,i)}A7({errorCodes:Voe,getCodeActions:function(e){const t=jue.ChangeTracker.with(e,t=>Woe(t,e.sourceFile,e.span.start));return[F7(Uoe,t,_a.Wrap_in_parentheses,Uoe,_a.Wrap_all_invalid_decorator_expressions_in_parentheses)]},fixIds:[Uoe],getAllCodeActions:e=>R7(e,Voe,(e,t)=>Woe(e,t.file,t.start))});var $oe="fixConvertToMappedObjectType",Hoe=[_a.An_index_signature_parameter_type_cannot_be_a_literal_type_or_generic_type_Consider_using_a_mapped_object_type_instead.code];function Koe(e,t){const n=tt(HX(e,t).parent.parent,jD);if(!n)return;const r=pE(n.parent)?n.parent:tt(n.parent.parent,fE);return r?{indexSignature:n,container:r}:void 0}function Goe(e,t,{indexSignature:n,container:r}){const i=(pE(r)?r.members:r.type.members).filter(e=>!jD(e)),o=ge(n.parameters),a=mw.createTypeParameterDeclaration(void 0,nt(o.name,aD),o.type),s=mw.createMappedTypeNode(Ov(n)?mw.createModifier(148):void 0,a,void 0,n.questionToken,n.type,void 0),c=mw.createIntersectionTypeNode([...xh(r),s,...i.length?[mw.createTypeLiteralNode(i)]:l]);var _,u;e.replaceNode(t,r,(_=r,u=c,mw.createTypeAliasDeclaration(_.modifiers,_.name,_.typeParameters,u)))}A7({errorCodes:Hoe,getCodeActions:function(e){const{sourceFile:t,span:n}=e,r=Koe(t,n.start);if(!r)return;const i=jue.ChangeTracker.with(e,e=>Goe(e,t,r)),o=gc(r.container.name);return[F7($oe,i,[_a.Convert_0_to_mapped_object_type,o],$oe,[_a.Convert_0_to_mapped_object_type,o])]},fixIds:[$oe],getAllCodeActions:e=>R7(e,Hoe,(e,t)=>{const n=Koe(t.file,t.start);n&&Goe(e,t.file,n)})});var Xoe="removeAccidentalCallParentheses";A7({errorCodes:[_a.This_expression_is_not_callable_because_it_is_a_get_accessor_Did_you_mean_to_use_it_without.code],getCodeActions(e){const t=uc(HX(e.sourceFile,e.span.start),fF);if(!t)return;const n=jue.ChangeTracker.with(e,n=>{n.deleteRange(e.sourceFile,{pos:t.expression.end,end:t.end})});return[D7(Xoe,n,_a.Remove_parentheses)]},fixIds:[Xoe]});var Qoe="removeUnnecessaryAwait",Yoe=[_a.await_has_no_effect_on_the_type_of_this_expression.code];function Zoe(e,t,n){const r=tt(HX(t,n.start),e=>135===e.kind),i=r&&tt(r.parent,TF);if(!i)return;let o=i;if(yF(i.parent)&&aD(Dx(i.expression,!1))){const e=YX(i.parent.pos,t);e&&105!==e.kind&&(o=i.parent)}e.replaceNode(t,o,i.expression)}A7({errorCodes:Yoe,getCodeActions:function(e){const t=jue.ChangeTracker.with(e,t=>Zoe(t,e.sourceFile,e.span));if(t.length>0)return[F7(Qoe,t,_a.Remove_unnecessary_await,Qoe,_a.Remove_all_unnecessary_uses_of_await)]},fixIds:[Qoe],getAllCodeActions:e=>R7(e,Yoe,(e,t)=>Zoe(e,t.file,t))});var eae=[_a.A_type_only_import_can_specify_a_default_import_or_named_bindings_but_not_both.code],tae="splitTypeOnlyImport";function nae(e,t){return uc(HX(e,t.start),xE)}function rae(e,t,n){if(!t)return;const r=un.checkDefined(t.importClause);e.replaceNode(n.sourceFile,t,mw.updateImportDeclaration(t,t.modifiers,mw.updateImportClause(r,r.phaseModifier,r.name,void 0),t.moduleSpecifier,t.attributes)),e.insertNodeAfter(n.sourceFile,t,mw.createImportDeclaration(void 0,mw.updateImportClause(r,r.phaseModifier,void 0,r.namedBindings),t.moduleSpecifier,t.attributes))}A7({errorCodes:eae,fixIds:[tae],getCodeActions:function(e){const t=jue.ChangeTracker.with(e,t=>rae(t,nae(e.sourceFile,e.span),e));if(t.length)return[F7(tae,t,_a.Split_into_two_separate_import_declarations,tae,_a.Split_all_invalid_type_only_imports)]},getAllCodeActions:e=>R7(e,eae,(t,n)=>{rae(t,nae(e.sourceFile,n),e)})});var iae="fixConvertConstToLet",oae=[_a.Cannot_assign_to_0_because_it_is_a_constant.code];function aae(e,t,n){var r;const i=n.getTypeChecker().getSymbolAtLocation(HX(e,t));if(void 0===i)return;const o=tt(null==(r=null==i?void 0:i.valueDeclaration)?void 0:r.parent,_E);if(void 0===o)return;const a=OX(o,87,e);return void 0!==a?{symbol:i,token:a}:void 0}function sae(e,t,n){e.replaceNode(t,n,mw.createToken(121))}A7({errorCodes:oae,getCodeActions:function(e){const{sourceFile:t,span:n,program:r}=e,i=aae(t,n.start,r);if(void 0===i)return;const o=jue.ChangeTracker.with(e,e=>sae(e,t,i.token));return[E7(iae,o,_a.Convert_const_to_let,iae,_a.Convert_all_const_to_let)]},getAllCodeActions:e=>{const{program:t}=e,n=new Set;return j7(jue.ChangeTracker.with(e,r=>{B7(e,oae,e=>{const i=aae(e.file,e.start,t);if(i&&bx(n,eJ(i.symbol)))return sae(r,e.file,i.token)})}))},fixIds:[iae]});var cae="fixExpectedComma",lae=[_a._0_expected.code];function _ae(e,t,n){const r=HX(e,t);return 27===r.kind&&r.parent&&(uF(r.parent)||_F(r.parent))?{node:r}:void 0}function uae(e,t,{node:n}){const r=mw.createToken(28);e.replaceNode(t,n,r)}A7({errorCodes:lae,getCodeActions(e){const{sourceFile:t}=e,n=_ae(t,e.span.start,e.errorCode);if(!n)return;const r=jue.ChangeTracker.with(e,e=>uae(e,t,n));return[F7(cae,r,[_a.Change_0_to_1,";",","],cae,[_a.Change_0_to_1,";",","])]},fixIds:[cae],getAllCodeActions:e=>R7(e,lae,(t,n)=>{const r=_ae(n.file,n.start,n.code);r&&uae(t,e.sourceFile,r)})});var dae="addVoidToPromise",pae=[_a.Expected_1_argument_but_got_0_new_Promise_needs_a_JSDoc_hint_to_produce_a_resolve_that_can_be_called_without_arguments.code,_a.Expected_0_arguments_but_got_1_Did_you_forget_to_include_void_in_your_type_argument_to_Promise.code];function fae(e,t,n,r,i){const o=HX(t,n.start);if(!aD(o)||!fF(o.parent)||o.parent.expression!==o||0!==o.parent.arguments.length)return;const a=r.getTypeChecker(),s=a.getSymbolAtLocation(o),c=null==s?void 0:s.valueDeclaration;if(!c||!TD(c)||!mF(c.parent.parent))return;if(null==i?void 0:i.has(c))return;null==i||i.add(c);const l=function(e){var t;if(!Em(e))return e.typeArguments;if(yF(e.parent)){const n=null==(t=tl(e.parent))?void 0:t.typeExpression.type;if(n&&RD(n)&&aD(n.typeName)&&"Promise"===gc(n.typeName))return n.typeArguments}}(c.parent.parent);if($(l)){const n=l[0],r=!KD(n)&&!YD(n)&&YD(mw.createUnionTypeNode([n,mw.createKeywordTypeNode(116)]).types[0]);r&&e.insertText(t,n.pos,"("),e.insertText(t,n.end,r?") | void":" | void")}else{const n=a.getResolvedSignature(o.parent),r=null==n?void 0:n.parameters[0],i=r&&a.getTypeOfSymbolAtLocation(r,c.parent.parent);Em(c)?(!i||3&i.flags)&&(e.insertText(t,c.parent.parent.end,")"),e.insertText(t,Qa(t.text,c.parent.parent.pos),"/** @type {Promise} */(")):(!i||2&i.flags)&&e.insertText(t,c.parent.parent.expression.end,"")}}A7({errorCodes:pae,fixIds:[dae],getCodeActions(e){const t=jue.ChangeTracker.with(e,t=>fae(t,e.sourceFile,e.span,e.program));if(t.length>0)return[F7("addVoidToPromise",t,_a.Add_void_to_Promise_resolved_without_a_value,dae,_a.Add_void_to_all_Promises_resolved_without_a_value)]},getAllCodeActions:e=>R7(e,pae,(t,n)=>fae(t,n.file,n,e.program,new Set))});var mae={};i(mae,{CompletionKind:()=>cse,CompletionSource:()=>xae,SortText:()=>yae,StringCompletions:()=>Jse,SymbolOriginInfoKind:()=>kae,createCompletionDetails:()=>ase,createCompletionDetailsForSymbol:()=>ose,getCompletionEntriesFromSymbols:()=>tse,getCompletionEntryDetails:()=>rse,getCompletionEntrySymbol:()=>sse,getCompletionsAtPosition:()=>Pae,getDefaultCommitCharacters:()=>Eae,getPropertiesForObjectExpression:()=>kse,moduleSpecifierResolutionCacheAttemptLimit:()=>hae,moduleSpecifierResolutionLimit:()=>gae});var gae=100,hae=1e3,yae={LocalDeclarationPriority:"10",LocationPriority:"11",OptionalMember:"12",MemberDeclaredBySpreadAssignment:"13",SuggestedClassMembers:"14",GlobalsOrKeywords:"15",AutoImportSuggestions:"16",ClassMemberSnippets:"17",JavascriptIdentifiers:"18",Deprecated:e=>"z"+e,ObjectLiteralProperty:(e,t)=>`${e}\0${t}\0`,SortBelow:e=>e+"1"},vae=[".",",",";"],bae=[".",";"],xae=(e=>(e.ThisProperty="ThisProperty/",e.ClassMemberSnippet="ClassMemberSnippet/",e.TypeOnlyAlias="TypeOnlyAlias/",e.ObjectLiteralMethodSnippet="ObjectLiteralMethodSnippet/",e.SwitchCases="SwitchCases/",e.ObjectLiteralMemberWithComma="ObjectLiteralMemberWithComma/",e))(xae||{}),kae=(e=>(e[e.ThisType=1]="ThisType",e[e.SymbolMember=2]="SymbolMember",e[e.Export=4]="Export",e[e.Promise=8]="Promise",e[e.Nullable=16]="Nullable",e[e.ResolvedExport=32]="ResolvedExport",e[e.TypeOnlyAlias=64]="TypeOnlyAlias",e[e.ObjectLiteralMethod=128]="ObjectLiteralMethod",e[e.Ignore=256]="Ignore",e[e.ComputedPropertyName=512]="ComputedPropertyName",e[e.SymbolMemberNoExport=2]="SymbolMemberNoExport",e[e.SymbolMemberExport=6]="SymbolMemberExport",e))(kae||{});function Sae(e){return!!(e&&4&e.kind)}function Tae(e){return!(!e||32!==e.kind)}function Cae(e){return(Sae(e)||Tae(e))&&!!e.isFromPackageJson}function wae(e){return!!(e&&64&e.kind)}function Nae(e){return!!(e&&128&e.kind)}function Dae(e){return!!(e&&512&e.kind)}function Fae(e,t,n,r,i,o,a,s,c){var l,_,u,d;const p=Un(),f=a||Ck(r.getCompilerOptions())||(null==(l=o.autoImportSpecifierExcludeRegexes)?void 0:l.length);let m=!1,g=0,h=0,y=0,v=0;const b=c({tryResolve:function(e,t){if(t){const t=n.getModuleSpecifierForBestExportInfo(e,i,s);return t&&g++,t||"failed"}const r=f||o.allowIncompleteCompletions&&hm,resolvedAny:()=>h>0,resolvedBeyondLimit:()=>h>gae}),x=v?` (${(y/v*100).toFixed(1)}% hit rate)`:"";return null==(_=t.log)||_.call(t,`${e}: resolved ${h} module specifiers, plus ${g} ambient and ${y} from cache${x}`),null==(u=t.log)||u.call(t,`${e}: response is ${m?"incomplete":"complete"}`),null==(d=t.log)||d.call(t,`${e}: ${Un()-p}`),b}function Eae(e){return e?[]:vae}function Pae(e,t,n,r,i,o,a,s,c,l,_=!1){var u;const{previousToken:d}=use(i,r);if(a&&!nQ(r,i,d)&&!function(e,t,n,r){switch(t){case".":case"@":return!0;case'"':case"'":case"`":return!!n&&lZ(n)&&r===n.getStart(e)+1;case"#":return!!n&&sD(n)&&!!Xf(n);case"<":return!!n&&30===n.kind&&(!NF(n.parent)||Nse(n.parent));case"/":return!!n&&(ju(n)?!!bg(n):31===n.kind&&VE(n.parent));case" ":return!!n&&vD(n)&&308===n.parent.kind;default:return un.assertNever(t)}}(r,a,d,i))return;if(" "===a)return o.includeCompletionsForImportStatements&&o.includeCompletionsWithInsertText?{isGlobalCompletion:!0,isMemberCompletion:!1,isNewIdentifierLocation:!0,isIncomplete:!0,entries:[],defaultCommitCharacters:Eae(!0)}:void 0;const p=t.getCompilerOptions(),f=t.getTypeChecker(),m=o.allowIncompleteCompletions?null==(u=e.getIncompleteCompletionsCache)?void 0:u.call(e):void 0;if(m&&3===s&&d&&aD(d)){const n=function(e,t,n,r,i,o,a,s){const c=e.get();if(!c)return;const l=WX(t,s),_=n.text.toLowerCase(),u=p0(t,i,r,o,a),d=Fae("continuePreviousIncompleteResponse",i,T7.createImportSpecifierResolver(t,r,i,o),r,n.getStart(),o,!1,bT(n),e=>{const n=B(c.entries,n=>{var o;if(!n.hasAction||!n.source||!n.data||Iae(n.data))return n;if(!Mse(n.name,_))return;const{origin:a}=un.checkDefined(dse(n.name,n.data,r,i)),s=u.get(t.path,n.data.exportMapKey),c=s&&e.tryResolve(s,!Cs(Fy(a.moduleSymbol.name)));if("skipped"===c)return n;if(!c||"failed"===c)return void(null==(o=i.log)||o.call(i,`Unexpected failure resolving auto import for '${n.name}' from '${n.source}'`));const l={...a,kind:32,moduleSpecifier:c.moduleSpecifier};return n.data=Xae(l),n.source=ese(l),n.sourceDisplay=[PY(l.moduleSpecifier)],n});return e.skippedAny()||(c.isIncomplete=void 0),n});return c.entries=d,c.flags=4|(c.flags||0),c.optionalReplacementSpan=Bae(l),c}(m,r,d,t,e,o,c,i);if(n)return n}else null==m||m.clear();const g=Jse.getStringLiteralCompletions(r,i,d,p,e,t,n,o,_);if(g)return g;if(d&&Cl(d.parent)&&(83===d.kind||88===d.kind||80===d.kind))return function(e){const t=function(e){const t=[],n=new Map;let r=e;for(;r&&!r_(r);){if(oE(r)){const e=r.label.text;n.has(e)||(n.set(e,!0),t.push({name:e,kindModifiers:"",kind:"label",sortText:yae.LocationPriority}))}r=r.parent}return t}(e);if(t.length)return{isGlobalCompletion:!1,isMemberCompletion:!1,isNewIdentifierLocation:!1,entries:t,defaultCommitCharacters:Eae(!1)}}(d.parent);const h=_se(t,n,r,p,i,o,void 0,e,l,c);var y,v;if(h)switch(h.kind){case 0:const a=function(e,t,n,r,i,o,a,s,c,l){const{symbols:_,contextToken:u,completionKind:d,isInSnippetScope:p,isNewIdentifierLocation:f,location:m,propertyAccessToConvert:g,keywordFilters:h,symbolToOriginInfoMap:y,recommendedCompletion:v,isJsxInitializer:b,isTypeOnlyLocation:x,isJsxIdentifierExpected:k,isRightOfOpenTag:S,isRightOfDotOrQuestionDot:T,importStatementCompletion:C,insideJsDocTagTypeExpression:w,symbolToSortTextMap:N,hasUnresolvedAutoImports:D,defaultCommitCharacters:F}=o;let E=o.literals;const P=n.getTypeChecker();if(1===lk(e.scriptKind)){const t=function(e,t){const n=uc(e,e=>{switch(e.kind){case 288:return!0;case 31:case 32:case 80:case 212:return!1;default:return"quit"}});if(n){const e=!!OX(n,32,t),r=n.parent.openingElement.tagName.getText(t)+(e?"":">");return{isGlobalCompletion:!1,isMemberCompletion:!0,isNewIdentifierLocation:!1,optionalReplacementSpan:FQ(n.tagName),entries:[{name:r,kind:"class",kindModifiers:void 0,sortText:yae.LocationPriority}],defaultCommitCharacters:Eae(!1)}}}(m,e);if(t)return t}const A=uc(u,ZE);if(A&&(bD(u)||ch(u,A.expression))){const e=ZZ(P,A.parent.clauses);E=E.filter(t=>!e.hasValue(t)),_.forEach((t,n)=>{if(t.valueDeclaration&&aP(t.valueDeclaration)){const r=P.getConstantValue(t.valueDeclaration);void 0!==r&&e.hasValue(r)&&(y[n]={kind:256})}})}const I=[],O=Jae(e,r);if(O&&!f&&(!_||0===_.length)&&0===h)return;const L=tse(_,I,void 0,u,m,c,e,t,n,yk(r),i,d,a,r,s,x,g,k,b,C,v,y,N,k,S,l);if(0!==h)for(const t of gse(h,!w&&Fm(e)))(x&&MQ(Ea(t.name))||!x&&Bse(t.name)||!L.has(t.name))&&(L.add(t.name),Z(I,t,Aae,void 0,!0));for(const e of function(e,t){const n=[];if(e){const r=e.getSourceFile(),i=e.parent,o=r.getLineAndCharacterOfPosition(e.end).line,a=r.getLineAndCharacterOfPosition(t).line;(xE(i)||IE(i)&&i.moduleSpecifier)&&e===i.moduleSpecifier&&o===a&&n.push({name:Fa(132),kind:"keyword",kindModifiers:"",sortText:yae.GlobalsOrKeywords})}return n}(u,c))L.has(e.name)||(L.add(e.name),Z(I,e,Aae,void 0,!0));for(const t of E){const n=$ae(e,a,t);L.add(n.name),Z(I,n,Aae,void 0,!0)}let j;if(O||function(e,t,n,r,i){Q8(e).forEach((e,o)=>{if(e===t)return;const a=mc(o);!n.has(a)&&ms(a,r)&&(n.add(a),Z(i,{name:a,kind:"warning",kindModifiers:"",sortText:yae.JavascriptIdentifiers,isFromUncheckedFile:!0,commitCharacters:[]},Aae))})}(e,m.pos,L,yk(r),I),a.includeCompletionsWithInsertText&&u&&!S&&!T&&(j=uc(u,yE))){const i=zae(j,e,a,r,t,n,s);i&&I.push(i.entry)}return{flags:o.flags,isGlobalCompletion:p,isIncomplete:!(!a.allowIncompleteCompletions||!D)||void 0,isMemberCompletion:Vae(d),isNewIdentifierLocation:f,optionalReplacementSpan:Bae(m),entries:I,defaultCommitCharacters:F??Eae(f)}}(r,e,t,p,n,h,o,l,i,_);return(null==a?void 0:a.isIncomplete)&&(null==m||m.set(a)),a;case 1:return Oae([...wle.getJSDocTagNameCompletions(),...Lae(r,i,f,p,o,!0)]);case 2:return Oae([...wle.getJSDocTagCompletions(),...Lae(r,i,f,p,o,!1)]);case 3:return Oae(wle.getJSDocParameterNameCompletions(h.tag));case 4:return y=h.keywordCompletions,{isGlobalCompletion:!1,isMemberCompletion:!1,isNewIdentifierLocation:v=h.isNewIdentifierLocation,entries:y.slice(),defaultCommitCharacters:Eae(v)};default:return un.assertNever(h)}}function Aae(e,t){var n,r;let i=At(e.sortText,t.sortText);return 0===i&&(i=At(e.name,t.name)),0===i&&(null==(n=e.data)?void 0:n.moduleSpecifier)&&(null==(r=t.data)?void 0:r.moduleSpecifier)&&(i=zS(e.data.moduleSpecifier,t.data.moduleSpecifier)),0===i?-1:i}function Iae(e){return!!(null==e?void 0:e.moduleSpecifier)}function Oae(e){return{isGlobalCompletion:!1,isMemberCompletion:!1,isNewIdentifierLocation:!1,entries:e,defaultCommitCharacters:Eae(!1)}}function Lae(e,t,n,r,i,o){const a=HX(e,t);if(!Cu(a)&&!SP(a))return[];const s=SP(a)?a:a.parent;if(!SP(s))return[];const c=s.parent;if(!r_(c))return[];const l=Fm(e),_=i.includeCompletionsWithSnippetText||void 0,u=w(s.tags,e=>BP(e)&&e.getEnd()<=t);return B(c.parameters,e=>{if(!Ec(e).length){if(aD(e.name)){const t={tabstop:1},a=e.name.text;let s=Mae(a,e.initializer,e.dotDotDotToken,l,!1,!1,n,r,i),c=_?Mae(a,e.initializer,e.dotDotDotToken,l,!1,!0,n,r,i,t):void 0;return o&&(s=s.slice(1),c&&(c=c.slice(1))),{name:s,kind:"parameter",sortText:yae.LocationPriority,insertText:_?c:void 0,isSnippet:_}}if(e.parent.parameters.indexOf(e)===u){const t=`param${u}`,a=jae(t,e.name,e.initializer,e.dotDotDotToken,l,!1,n,r,i),s=_?jae(t,e.name,e.initializer,e.dotDotDotToken,l,!0,n,r,i):void 0;let c=a.join(Pb(r)+"* "),d=null==s?void 0:s.join(Pb(r)+"* ");return o&&(c=c.slice(1),d&&(d=d.slice(1))),{name:c,kind:"parameter",sortText:yae.LocationPriority,insertText:_?d:void 0,isSnippet:_}}}})}function jae(e,t,n,r,i,o,a,s,c){return i?l(e,t,n,r,{tabstop:1}):[Mae(e,n,r,i,!1,o,a,s,c,{tabstop:1})];function l(e,t,n,r,l){if(sF(t)&&!r){const u={tabstop:l.tabstop},d=Mae(e,n,r,i,!0,o,a,s,c,u);let p=[];for(const n of t.elements){const t=_(e,n,u);if(!t){p=void 0;break}p.push(...t)}if(p)return l.tabstop=u.tabstop,[d,...p]}return[Mae(e,n,r,i,!1,o,a,s,c,l)]}function _(e,t,n){if(!t.propertyName&&aD(t.name)||aD(t.name)){const r=t.propertyName?Lp(t.propertyName):t.name.text;if(!r)return;return[Mae(`${e}.${r}`,t.initializer,t.dotDotDotToken,i,!1,o,a,s,c,n)]}if(t.propertyName){const r=Lp(t.propertyName);return r&&l(`${e}.${r}`,t.name,t.initializer,t.dotDotDotToken,n)}}}function Mae(e,t,n,r,i,o,a,s,c,l){if(o&&un.assertIsDefined(l),t&&(e=function(e,t){const n=t.getText().trim();return n.includes("\n")||n.length>80?`[${e}]`:`[${e}=${n}]`}(e,t)),o&&(e=BT(e)),r){let r="*";if(i)un.assert(!n,"Cannot annotate a rest parameter with type 'Object'."),r="Object";else{if(t){const e=a.getTypeAtLocation(t.parent);if(!(16385&e.flags)){const n=t.getSourceFile(),i=0===tY(n,c)?268435456:0,l=a.typeToTypeNode(e,uc(t,r_),i);if(l){const e=o?Gae({removeComments:!0,module:s.module,moduleResolution:s.moduleResolution,target:s.target}):kU({removeComments:!0,module:s.module,moduleResolution:s.moduleResolution,target:s.target});xw(l,1),r=e.printNode(4,l,n)}}}o&&"*"===r&&(r=`\${${l.tabstop++}:${r}}`)}return`@param {${!i&&n?"...":""}${r}} ${e} ${o?`\${${l.tabstop++}}`:""}`}return`@param ${e} ${o?`\${${l.tabstop++}}`:""}`}function Rae(e,t,n){return{kind:4,keywordCompletions:gse(e,t),isNewIdentifierLocation:n}}function Bae(e){return 80===(null==e?void 0:e.kind)?FQ(e):void 0}function Jae(e,t){return!Fm(e)||!!nT(e,t)}function zae(e,t,n,r,i,o,a){const s=e.clauses,c=o.getTypeChecker(),l=c.getTypeAtLocation(e.parent.expression);if(l&&l.isUnion()&&v(l.types,e=>e.isLiteral())){const _=ZZ(c,s),u=yk(r),d=tY(t,n),p=T7.createImportAdder(t,o,n,i),f=[];for(const t of l.types)if(1024&t.flags){un.assert(t.symbol,"An enum member type should have a symbol"),un.assert(t.symbol.parent,"An enum member type should have a parent symbol (the enum symbol)");const n=t.symbol.valueDeclaration&&c.getConstantValue(t.symbol.valueDeclaration);if(void 0!==n){if(_.hasValue(n))continue;_.addValue(n)}const r=T7.typeToAutoImportableTypeNode(c,p,t,e,u);if(!r)return;const i=qae(r,u,d);if(!i)return;f.push(i)}else if(!_.hasValue(t.value))switch(typeof t.value){case"object":f.push(t.value.negative?mw.createPrefixUnaryExpression(41,mw.createBigIntLiteral({negative:!1,base10Value:t.value.base10Value})):mw.createBigIntLiteral(t.value));break;case"number":f.push(t.value<0?mw.createPrefixUnaryExpression(41,mw.createNumericLiteral(-t.value)):mw.createNumericLiteral(t.value));break;case"string":f.push(mw.createStringLiteral(t.value,0===d))}if(0===f.length)return;const m=E(f,e=>mw.createCaseClause(e,[])),g=RY(i,null==a?void 0:a.options),h=Gae({removeComments:!0,module:r.module,moduleResolution:r.moduleResolution,target:r.target,newLine:KZ(g)}),y=a?e=>h.printAndFormatNode(4,e,t,a):e=>h.printNode(4,e,t),v=E(m,(e,t)=>n.includeCompletionsWithSnippetText?`${y(e)}$${t+1}`:`${y(e)}`).join(g);return{entry:{name:`${h.printNode(4,m[0],t)} ...`,kind:"",sortText:yae.GlobalsOrKeywords,insertText:v,hasAction:p.hasFixes()||void 0,source:"SwitchCases/",isSnippet:!!n.includeCompletionsWithSnippetText||void 0},importAdder:p}}}function qae(e,t,n){switch(e.kind){case 184:return Uae(e.typeName,t,n);case 200:const r=qae(e.objectType,t,n),i=qae(e.indexType,t,n);return r&&i&&mw.createElementAccessExpression(r,i);case 202:const o=e.literal;switch(o.kind){case 11:return mw.createStringLiteral(o.text,0===n);case 9:return mw.createNumericLiteral(o.text,o.numericLiteralFlags)}return;case 197:const a=qae(e.type,t,n);return a&&(aD(a)?a:mw.createParenthesizedExpression(a));case 187:return Uae(e.exprName,t,n);case 206:un.fail("We should not get an import type after calling 'codefix.typeToAutoImportableTypeNode'.")}}function Uae(e,t,n){if(aD(e))return e;const r=mc(e.right.escapedText);return HT(r,t)?mw.createPropertyAccessExpression(Uae(e.left,t,n),r):mw.createElementAccessExpression(Uae(e.left,t,n),mw.createStringLiteral(r,0===n))}function Vae(e){switch(e){case 0:case 3:case 2:return!0;default:return!1}}function Wae(e,t,n){return"object"==typeof n?gT(n)+"n":Ze(n)?sZ(e,t,n):JSON.stringify(n)}function $ae(e,t,n){return{name:Wae(e,t,n),kind:"string",kindModifiers:"",sortText:yae.LocationPriority,commitCharacters:[]}}function Hae(e,t,n,r,i,o,a,s,c,l,_,u,d,p,f,m,g,h,y,x,k,S,T,C){var w,N;let D,F,E,P,A,I,O,L=DQ(n,o),j=ese(u);const M=c.getTypeChecker(),R=u&&function(e){return!!(16&e.kind)}(u),B=u&&function(e){return!!(2&e.kind)}(u)||_;if(u&&function(e){return!!(1&e.kind)}(u))D=_?`this${R?"?.":""}[${Yae(a,y,l)}]`:`this${R?"?.":"."}${l}`;else if((B||R)&&p){D=B?_?`[${Yae(a,y,l)}]`:`[${l}]`:l,(R||p.questionDotToken)&&(D=`?.${D}`);const e=OX(p,25,a)||OX(p,29,a);if(!e)return;const t=Gt(l,p.name.text)?p.name.end:e.end;L=$s(e.getStart(a),t)}if(f&&(void 0===D&&(D=l),D=`{${D}}`,"boolean"!=typeof f&&(L=FQ(f,a))),u&&function(e){return!!(8&e.kind)}(u)&&p){void 0===D&&(D=l);const e=YX(p.pos,a);let t="";e&&vZ(e.end,e.parent,a)&&(t=";"),t+=`(await ${p.expression.getText()})`,D=_?`${t}${D}`:`${t}${R?"?.":"."}${D}`,L=$s((tt(p.parent,TF)?p.parent:p.expression).getStart(a),p.end)}if(Tae(u)&&(A=[PY(u.moduleSpecifier)],m&&(({insertText:D,replacementSpan:L}=function(e,t,n,r,i,o,a){const s=t.replacementSpan,c=BT(sZ(i,a,n.moduleSpecifier)),l=n.isDefaultExport?1:"export="===n.exportName?2:0,_=a.includeCompletionsWithSnippetText?"$1":"",u=T7.getImportKind(i,l,o,!0),d=t.couldBeTypeOnlyImportSpecifier,p=t.isTopLevelTypeOnly?` ${Fa(156)} `:" ",f=d?`${Fa(156)} `:"",m=r?";":"";switch(u){case 3:return{replacementSpan:s,insertText:`import${p}${BT(e)}${_} = require(${c})${m}`};case 1:return{replacementSpan:s,insertText:`import${p}${BT(e)}${_} from ${c}${m}`};case 2:return{replacementSpan:s,insertText:`import${p}* as ${BT(e)} from ${c}${m}`};case 0:return{replacementSpan:s,insertText:`import${p}{ ${f}${BT(e)}${_} } from ${c}${m}`}}}(l,m,u,g,a,c,y)),P=!!y.includeCompletionsWithSnippetText||void 0)),64===(null==u?void 0:u.kind)&&(I=!0),0===x&&r&&28!==(null==(w=YX(r.pos,a,r))?void 0:w.kind)&&(FD(r.parent.parent)||AD(r.parent.parent)||ID(r.parent.parent)||oP(r.parent)||(null==(N=uc(r.parent,rP))?void 0:N.getLastToken(a))===r||iP(r.parent)&&za(a,r.getEnd()).line!==za(a,o).line)&&(j="ObjectLiteralMemberWithComma/",I=!0),y.includeCompletionsWithClassMemberSnippets&&y.includeCompletionsWithInsertText&&3===x&&function(e,t,n){if(Em(t))return!1;return!!(106500&e.flags)&&(u_(t)||t.parent&&t.parent.parent&&__(t.parent)&&t===t.parent.name&&t.parent.getLastToken(n)===t.parent.name&&u_(t.parent.parent)||t.parent&&QP(t)&&u_(t.parent))}(e,i,a)){let t;const n=Kae(s,c,h,y,l,e,i,o,r,k);if(!n)return;({insertText:D,filterText:F,isSnippet:P,importAdder:t}=n),((null==t?void 0:t.hasFixes())||n.eraseRange)&&(I=!0,j="ClassMemberSnippet/")}if(u&&Nae(u)&&(({insertText:D,isSnippet:P,labelDetails:O}=u),y.useLabelDetailsInCompletionEntries||(l+=O.detail,O=void 0),j="ObjectLiteralMethodSnippet/",t=yae.SortBelow(t)),S&&!T&&y.includeCompletionsWithSnippetText&&y.jsxAttributeCompletionStyle&&"none"!==y.jsxAttributeCompletionStyle&&(!KE(i.parent)||!i.parent.initializer)){let t="braces"===y.jsxAttributeCompletionStyle;const n=M.getTypeOfSymbolAtLocation(e,i);"auto"!==y.jsxAttributeCompletionStyle||528&n.flags||1048576&n.flags&&b(n.types,e=>!!(528&e.flags))||(402653316&n.flags||1048576&n.flags&&v(n.types,e=>!!(402686084&e.flags||bQ(e)))?(D=`${BT(l)}=${sZ(a,y,"$1")}`,P=!0):t=!0),t&&(D=`${BT(l)}={$1}`,P=!0)}if(void 0!==D&&!y.includeCompletionsWithInsertText)return;(Sae(u)||Tae(u))&&(E=Xae(u),I=!m);const J=uc(i,Cx);if(J){const e=yk(s.getCompilationSettings());if(ms(l,e)){if(276===J.kind){const e=Ea(l);e&&(135===e||Fh(e))&&(D=`${l} as ${l}_`)}}else D=Yae(a,y,l),276===J.kind&&(qG.setText(a.text),qG.resetTokenState(o),130===qG.scan()&&80===qG.scan()||(D+=" as "+function(e,t){let n,r=!1,i="";for(let o=0;o=65536?2:1)n=e.codePointAt(o),void 0!==n&&(0===o?ps(n,t):fs(n,t))?(r&&(i+="_"),i+=String.fromCodePoint(n),r=!1):r=!0;return r&&(i+="_"),i||"_"}(l,e)))}const z=Nue.getSymbolKind(M,e,i),q="warning"===z||"string"===z?[]:void 0;return{name:l,kind:z,kindModifiers:Nue.getSymbolModifiers(M,e),sortText:t,source:j,hasAction:!!I||void 0,isRecommended:Zae(e,d,M)||void 0,insertText:D,filterText:F,replacementSpan:L,sourceDisplay:A,labelDetails:O,isSnippet:P,isPackageJsonImport:Cae(u)||void 0,isImportStatementCompletion:!!m||void 0,data:E,commitCharacters:q,...C?{symbol:e}:void 0}}function Kae(e,t,n,r,i,o,a,s,c,l){const _=uc(a,u_);if(!_)return;let u,d=i;const p=i,f=t.getTypeChecker(),m=a.getSourceFile(),g=Gae({removeComments:!0,module:n.module,moduleResolution:n.moduleResolution,target:n.target,omitTrailingSemicolon:!1,newLine:KZ(RY(e,null==l?void 0:l.options))}),h=T7.createImportAdder(m,t,r,e);let y;if(r.includeCompletionsWithSnippetText){u=!0;const e=mw.createEmptyStatement();y=mw.createBlock([e],!0),Kw(e,{kind:0,order:0})}else y=mw.createBlock([],!0);let v=0;const{modifiers:b,range:x,decorators:k}=function(e,t,n){if(!e||za(t,n).line>za(t,e.getEnd()).line)return{modifiers:0};let r,i,o=0;const a={pos:n,end:n};if(ND(e.parent)&&(i=function(e){if(Zl(e))return e.kind;if(aD(e)){const t=hc(e);if(t&&Xl(t))return t}}(e))){e.parent.modifiers&&(o|=98303&$v(e.parent.modifiers),r=e.parent.modifiers.filter(CD)||[],a.pos=Math.min(...e.parent.modifiers.map(e=>e.getStart(t))));const n=Hv(i);o&n||(o|=n,a.pos=Math.min(a.pos,e.getStart(t))),e.parent.name!==e&&(a.end=e.parent.name.getStart(t))}return{modifiers:o,decorators:r,range:a.pos{let t=0;S&&(t|=64),__(e)&&1===f.getMemberOverrideModifierStatus(_,e,o)&&(t|=16),T.length||(v=e.modifierFlagsCache|t),e=mw.replaceModifiers(e,v),T.push(e)},y,T7.PreserveOptionalFlags.Property,!!S),T.length){const e=8192&o.flags;let t=17|v;t|=e?1024:136;const n=b&t;if(b&~t)return;if(4&v&&1&n&&(v&=-5),0===n||1&n||(v&=-2),v|=n,T=T.map(e=>mw.replaceModifiers(e,v)),null==k?void 0:k.length){const e=T[T.length-1];SI(e)&&(T[T.length-1]=mw.replaceDecoratorsAndModifiers(e,k.concat(Dc(e)||[])))}const r=131073;d=l?g.printAndFormatSnippetList(r,mw.createNodeArray(T),m,l):g.printSnippetList(r,mw.createNodeArray(T),m)}return{insertText:d,filterText:p,isSnippet:u,importAdder:h,eraseRange:x}}function Gae(e){let t;const n=jue.createWriter(Pb(e)),r=kU(e,n),i={...n,write:e=>o(e,()=>n.write(e)),nonEscapingWrite:n.write,writeLiteral:e=>o(e,()=>n.writeLiteral(e)),writeStringLiteral:e=>o(e,()=>n.writeStringLiteral(e)),writeSymbol:(e,t)=>o(e,()=>n.writeSymbol(e,t)),writeParameter:e=>o(e,()=>n.writeParameter(e)),writeComment:e=>o(e,()=>n.writeComment(e)),writeProperty:e=>o(e,()=>n.writeProperty(e))};return{printSnippetList:function(e,n,r){const i=a(e,n,r);return t?jue.applyChanges(i,t):i},printAndFormatSnippetList:function(e,n,r,i){const o={text:a(e,n,r),getLineAndCharacterOfPosition(e){return za(this,e)}},s=XZ(i,r),c=O(n,e=>{const t=jue.assignPositionsToNode(e);return ude.formatNodeGivenIndentation(t,o,r.languageVariant,0,0,{...i,options:s})}),l=t?_e(K(c,t),(e,t)=>bt(e.span,t.span)):c;return jue.applyChanges(o.text,l)},printNode:function(e,n,r){const i=s(e,n,r);return t?jue.applyChanges(i,t):i},printAndFormatNode:function(e,n,r,i){const o={text:s(e,n,r),getLineAndCharacterOfPosition(e){return za(this,e)}},a=XZ(i,r),c=jue.assignPositionsToNode(n),l=ude.formatNodeGivenIndentation(c,o,r.languageVariant,0,0,{...i,options:a}),_=t?_e(K(l,t),(e,t)=>bt(e.span,t.span)):l;return jue.applyChanges(o.text,_)}};function o(e,r){const i=BT(e);if(i!==e){const e=n.getTextPos();r();const o=n.getTextPos();t=ie(t||(t=[]),{newText:i,span:{start:e,length:o-e}})}else r()}function a(e,n,o){return t=void 0,i.clear(),r.writeList(e,n,o,i),i.getText()}function s(e,n,o){return t=void 0,i.clear(),r.writeNode(e,n,o,i),i.getText()}}function Xae(e){const t=e.fileName?void 0:Fy(e.moduleSymbol.name),n=!!e.isFromPackageJson||void 0;return Tae(e)?{exportName:e.exportName,exportMapKey:e.exportMapKey,moduleSpecifier:e.moduleSpecifier,ambientModuleName:t,fileName:e.fileName,isPackageJsonImport:n}:{exportName:e.exportName,exportMapKey:e.exportMapKey,fileName:e.fileName,ambientModuleName:e.fileName?void 0:Fy(e.moduleSymbol.name),isPackageJsonImport:!!e.isFromPackageJson||void 0}}function Qae(e,t,n){const r="default"===e.exportName,i=!!e.isPackageJsonImport;return Iae(e)?{kind:32,exportName:e.exportName,exportMapKey:e.exportMapKey,moduleSpecifier:e.moduleSpecifier,symbolName:t,fileName:e.fileName,moduleSymbol:n,isDefaultExport:r,isFromPackageJson:i}:{kind:4,exportName:e.exportName,exportMapKey:e.exportMapKey,symbolName:t,fileName:e.fileName,moduleSymbol:n,isDefaultExport:r,isFromPackageJson:i}}function Yae(e,t,n){return/^\d+$/.test(n)?n:sZ(e,t,n)}function Zae(e,t,n){return e===t||!!(1048576&e.flags)&&n.getExportSymbolOfSymbol(e)===t}function ese(e){return Sae(e)?Fy(e.moduleSymbol.name):Tae(e)?e.moduleSpecifier:1===(null==e?void 0:e.kind)?"ThisProperty/":64===(null==e?void 0:e.kind)?"TypeOnlyAlias/":void 0}function tse(e,t,n,r,i,o,a,s,c,l,_,u,d,p,f,m,g,h,y,v,b,x,k,S,T,C=!1){const w=Un(),N=function(e,t){if(!e)return;let n=uc(e,e=>Bf(e)||Ose(e)||k_(e)?"quit":(TD(e)||SD(e))&&!jD(e.parent));return n||(n=uc(t,e=>Bf(e)||Ose(e)||k_(e)?"quit":lE(e))),n}(r,i),D=bZ(a),F=c.getTypeChecker(),E=new Map;for(let _=0;_e.getSourceFile()===i.getSourceFile()));E.set(O,R),Z(t,M,Aae,void 0,!0)}return _("getCompletionsAtPosition: getCompletionEntriesFromSymbols: "+(Un()-w)),{has:e=>E.has(e),add:e=>E.set(e,!0)};function P(e,t){var n;let o=e.flags;if(i.parent&&AE(i.parent))return!0;if(N&&tt(N,lE)){if(e.valueDeclaration===N)return!1;if(k_(N.name)&&N.name.elements.some(t=>t===e.valueDeclaration))return!1}const s=e.valueDeclaration??(null==(n=e.declarations)?void 0:n[0]);if(N&&s)if(TD(N)&&TD(s)){const e=N.parent.parameters;if(s.pos>=N.pos&&s.pos=N.pos&&s.posWae(n,a,e)===i.name);return void 0!==v?{type:"literal",literal:v}:f(l,(e,t)=>{const n=p[t],r=pse(e,yk(s),n,d,c.isJsxIdentifierExpected);return r&&r.name===i.name&&("ClassMemberSnippet/"===i.source&&106500&e.flags||"ObjectLiteralMethodSnippet/"===i.source&&8196&e.flags||ese(n)===i.source||"ObjectLiteralMemberWithComma/"===i.source)?{type:"symbol",symbol:e,location:u,origin:n,contextToken:m,previousToken:g,isJsxInitializer:h,isTypeOnlyLocation:y}:void 0})||{type:"none"}}function rse(e,t,n,r,i,o,a,s,c){const l=e.getTypeChecker(),_=e.getCompilerOptions(),{name:u,source:d,data:p}=i,{previousToken:f,contextToken:m}=use(r,n);if(nQ(n,r,f))return Jse.getStringLiteralCompletionDetails(u,n,r,f,e,o,c,s);const g=nse(e,t,n,r,i,o,s);switch(g.type){case"request":{const{request:e}=g;switch(e.kind){case 1:return wle.getJSDocTagNameCompletionDetails(u);case 2:return wle.getJSDocTagCompletionDetails(u);case 3:return wle.getJSDocParameterNameCompletionDetails(u);case 4:return $(e.keywordCompletions,e=>e.name===u)?ise(u,"keyword",5):void 0;default:return un.assertNever(e)}}case"symbol":{const{symbol:t,location:i,contextToken:f,origin:m,previousToken:h}=g,{codeActions:y,sourceDisplay:v}=function(e,t,n,r,i,o,a,s,c,l,_,u,d,p,f,m){if((null==p?void 0:p.moduleSpecifier)&&_&&Dse(n||_,c).replacementSpan)return{codeActions:void 0,sourceDisplay:[PY(p.moduleSpecifier)]};if("ClassMemberSnippet/"===f){const{importAdder:r,eraseRange:_}=Kae(a,o,s,d,e,i,t,l,n,u);if((null==r?void 0:r.hasFixes())||_)return{sourceDisplay:void 0,codeActions:[{changes:jue.ChangeTracker.with({host:a,formatContext:u,preferences:d},e=>{r&&r.writeFixes(e),_&&e.deleteRange(c,_)}),description:(null==r?void 0:r.hasFixes())?GZ([_a.Includes_imports_of_types_referenced_by_0,e]):GZ([_a.Update_modifiers_of_0,e])}]}}if(wae(r)){const e=T7.getPromoteTypeOnlyCompletionAction(c,r.declaration.name,o,a,u,d);return un.assertIsDefined(e,"Expected to have a code action for promoting type-only alias"),{codeActions:[e],sourceDisplay:void 0}}if("ObjectLiteralMemberWithComma/"===f&&n){const t=jue.ChangeTracker.with({host:a,formatContext:u,preferences:d},e=>e.insertText(c,n.end,","));if(t)return{sourceDisplay:void 0,codeActions:[{changes:t,description:GZ([_a.Add_missing_comma_for_object_member_completion_0,e])}]}}if(!r||!Sae(r)&&!Tae(r))return{codeActions:void 0,sourceDisplay:void 0};const g=r.isFromPackageJson?a.getPackageJsonAutoImportProvider().getTypeChecker():o.getTypeChecker(),{moduleSymbol:h}=r,y=g.getMergedSymbol(ox(i.exportSymbol||i,g)),v=30===(null==n?void 0:n.kind)&&bu(n.parent),{moduleSpecifier:b,codeAction:x}=T7.getImportCompletionAction(y,h,null==p?void 0:p.exportMapKey,c,e,v,a,o,u,_&&aD(_)?_.getStart(c):l,d,m);return un.assert(!(null==p?void 0:p.moduleSpecifier)||b===p.moduleSpecifier),{sourceDisplay:[PY(b)],codeActions:[x]}}(u,i,f,m,t,e,o,_,n,r,h,a,s,p,d,c);return ose(t,Dae(m)?m.symbolName:t.name,l,n,i,c,y,v)}case"literal":{const{literal:e}=g;return ise(Wae(n,s,e),"string","string"==typeof e?8:7)}case"cases":{const t=zae(m.parent,n,s,e.getCompilerOptions(),o,e,void 0);if(null==t?void 0:t.importAdder.hasFixes()){const{entry:e,importAdder:n}=t,r=jue.ChangeTracker.with({host:o,formatContext:a,preferences:s},n.writeFixes);return{name:e.name,kind:"",kindModifiers:"",displayParts:[],sourceDisplay:void 0,codeActions:[{changes:r,description:GZ([_a.Includes_imports_of_types_referenced_by_0,u])}]}}return{name:u,kind:"",kindModifiers:"",displayParts:[],sourceDisplay:void 0}}case"none":return mse().some(e=>e.name===u)?ise(u,"keyword",5):void 0;default:un.assertNever(g)}}function ise(e,t,n){return ase(e,"",t,[SY(e,n)])}function ose(e,t,n,r,i,o,a,s){const{displayParts:c,documentation:l,symbolKind:_,tags:u}=n.runWithCancellationToken(o,t=>Nue.getSymbolDisplayPartsDocumentationAndSymbolKind(t,e,r,i,i,7));return ase(t,Nue.getSymbolModifiers(n,e),_,c,l,u,a,s)}function ase(e,t,n,r,i,o,a,s){return{name:e,kindModifiers:t,kind:n,displayParts:r,documentation:i,tags:o,codeActions:a,source:s,sourceDisplay:s}}function sse(e,t,n,r,i,o,a){const s=nse(e,t,n,r,i,o,a);return"symbol"===s.type?s.symbol:void 0}var cse=(e=>(e[e.ObjectPropertyDeclaration=0]="ObjectPropertyDeclaration",e[e.Global=1]="Global",e[e.PropertyAccess=2]="PropertyAccess",e[e.MemberLike=3]="MemberLike",e[e.String=4]="String",e[e.None=5]="None",e))(cse||{});function lse(e,t,n){const r=n.getAccessibleSymbolChain(e,t,-1,!1);return r?ge(r):e.parent&&(function(e){var t;return!!(null==(t=e.declarations)?void 0:t.some(e=>308===e.kind))}(e.parent)?e:lse(e.parent,t,n))}function _se(e,t,n,r,i,o,a,s,c,l){const _=e.getTypeChecker(),u=Jae(n,r);let p=Un(),m=HX(n,i);t("getCompletionData: Get current token: "+(Un()-p)),p=Un();const g=dQ(n,i,m);t("getCompletionData: Is inside comment: "+(Un()-p));let h=!1,y=!1,v=!1;if(g){if(pQ(n,i)){if(64===n.text.charCodeAt(i-1))return{kind:1};{const e=xX(i,n);if(!/[^*|\s(/)]/.test(n.text.substring(e,i)))return{kind:2}}}const e=function(e,t){return uc(e,e=>!(!Cu(e)||!SX(e,t))||!!SP(e)&&"quit")}(m,i);if(e){if(e.tagName.pos<=i&&i<=e.tagName.end)return{kind:1};if(XP(e))y=!0;else{const t=function(e){if(function(e){switch(e.kind){case 342:case 349:case 343:case 345:case 347:case 350:case 351:return!0;case 346:return!!e.constraint;default:return!1}}(e)){const t=UP(e)?e.constraint:e.typeExpression;return t&&310===t.kind?t:void 0}if(wP(e)||HP(e))return e.class}(e);if(t&&(m=HX(n,i),m&&(lh(m)||349===m.parent.kind&&m.parent.name===m)||(h=he(t))),!h&&BP(e)&&(Nd(e.name)||e.name.pos<=i&&i<=e.name.end))return{kind:3,tag:e}}}if(!h&&!y)return void t("Returning an empty list because completion was inside a regular comment or plain text part of a JsDoc comment.")}p=Un();const x=!h&&!y&&Fm(n),k=use(i,n),S=k.previousToken;let T=k.contextToken;t("getCompletionData: Get previous token: "+(Un()-p));let C,w,D,F=m,E=!1,P=!1,A=!1,I=!1,L=!1,j=!1,M=WX(n,i),R=0,J=!1,z=0;if(T){const e=Dse(T,n);if(e.keywordCompletion){if(e.isKeywordOnlyCompletion)return{kind:4,keywordCompletions:[(q=e.keywordCompletion,{name:Fa(q),kind:"keyword",kindModifiers:"",sortText:yae.GlobalsOrKeywords})],isNewIdentifierLocation:e.isNewIdentifierLocation};R=function(e){if(156===e)return 8;un.fail("Unknown mapping from SyntaxKind to KeywordCompletionFilters")}(e.keywordCompletion)}if(e.replacementSpan&&o.includeCompletionsForImportStatements&&o.includeCompletionsWithInsertText&&(z|=2,w=e,J=e.isNewIdentifierLocation),!e.replacementSpan&&function(e){const r=Un(),o=function(e){return(WN(e)||Ul(e))&&(TX(e,i)||i===e.end&&(!!e.isUnterminated||WN(e)))}(e)||function(e){const t=e.parent,r=t.kind;switch(e.kind){case 28:return 261===r||262===(o=e).parent.kind&&!lQ(o,n,_)||244===r||267===r||pe(r)||265===r||208===r||266===r||u_(t)&&!!t.typeParameters&&t.typeParameters.end>=e.pos;case 25:case 23:return 208===r;case 59:return 209===r;case 21:return 300===r||pe(r);case 19:return 267===r;case 30:return 264===r||232===r||265===r||266===r||c_(r);case 126:return 173===r&&!u_(t.parent);case 26:return 170===r||!!t.parent&&208===t.parent.kind;case 125:case 123:case 124:return 170===r&&!PD(t.parent);case 130:return 277===r||282===r||275===r;case 139:case 153:return!wse(e);case 80:if((277===r||282===r)&&e===t.name&&"type"===e.text)return!1;if(uc(e.parent,lE)&&function(e,t){return n.getLineEndOfPosition(e.getEnd())S.end))}(e)||function(e){if(9===e.kind){const t=e.getFullText();return"."===t.charAt(t.length-1)}return!1}(e)||function(e){if(12===e.kind)return!0;if(32===e.kind&&e.parent){if(M===e.parent&&(287===M.kind||286===M.kind))return!1;if(287===e.parent.kind)return 287!==M.parent.kind;if(288===e.parent.kind||286===e.parent.kind)return!!e.parent.parent&&285===e.parent.parent.kind}return!1}(e)||qN(e);return t("getCompletionsAtPosition: isCompletionListBlocker: "+(Un()-r)),o}(T))return t("Returning an empty list because completion was requested in an invalid position."),R?Rae(R,x,_e().isNewIdentifierLocation):void 0;let r=T.parent;if(25===T.kind||29===T.kind)switch(E=25===T.kind,P=29===T.kind,r.kind){case 212:if(C=r,F=C.expression,Nd(wx(C))||(fF(F)||r_(F))&&F.end===T.pos&&F.getChildCount(n)&&22!==ve(F.getChildren(n)).kind)return;break;case 167:F=r.left;break;case 268:F=r.name;break;case 206:F=r;break;case 237:F=r.getFirstToken(n),un.assert(102===F.kind||105===F.kind);break;default:return}else if(!w){if(r&&212===r.kind&&(T=r,r=r.parent),m.parent===M)switch(m.kind){case 32:285!==m.parent.kind&&287!==m.parent.kind||(M=m);break;case 31:286===m.parent.kind&&(M=m)}switch(r.kind){case 288:31===T.kind&&(I=!0,M=T);break;case 227:if(!Nse(r))break;case 286:case 285:case 287:j=!0,30===T.kind&&(A=!0,M=T);break;case 295:case 294:(20===S.kind||80===S.kind&&292===S.parent.kind)&&(j=!0);break;case 292:if(r.initializer===S&&S.endKQ(t?s.getPackageJsonAutoImportProvider():e,s));if(E||P)!function(){W=2;const e=df(F),t=e&&!F.isTypeOf||wf(F.parent)||lQ(T,n,_),r=$G(F);if(e_(F)||e||dF(F)){const n=gE(F.parent);n&&(J=!0,D=[]);let i=_.getSymbolAtLocation(F);if(i&&(i=ox(i,_),1920&i.flags)){const a=_.getExportsOfModule(i);un.assertEachIsDefined(a,"getExportsOfModule() should all be defined");const s=t=>_.isValidPropertyAccess(e?F:F.parent,t.name),c=e=>Lse(e,_),l=n?e=>{var t;return!!(1920&e.flags)&&!(null==(t=e.declarations)?void 0:t.every(e=>e.parent===F.parent))}:r?e=>c(e)||s(e):t||h?c:s;for(const e of a)l(e)&&G.push(e);if(!t&&!h&&i.declarations&&i.declarations.some(e=>308!==e.kind&&268!==e.kind&&267!==e.kind)){let e=_.getTypeOfSymbolAtLocation(i,F).getNonOptionalType(),t=!1;if(e.isNullableType()){const n=E&&!P&&!1!==o.includeAutomaticOptionalChainCompletions;(n||P)&&(e=e.getNonNullableType(),n&&(t=!0))}oe(e,!!(65536&F.flags),t)}return}}if(!t||_v(F)){_.tryGetThisTypeAt(F,!1);let e=_.getTypeAtLocation(F).getNonOptionalType();if(t)oe(e.getNonNullableType(),!1,!1);else{let t=!1;if(e.isNullableType()){const n=E&&!P&&!1!==o.includeAutomaticOptionalChainCompletions;(n||P)&&(e=e.getNonNullableType(),n&&(t=!0))}oe(e,!!(65536&F.flags),t)}}}();else if(A)G=_.getJsxIntrinsicTagNamesAt(M),un.assertEachIsDefined(G,"getJsxIntrinsicTagNames() should all be defined"),ce(),W=1,R=0;else if(I){const e=T.parent.parent.openingElement.tagName,t=_.getSymbolAtLocation(e);t&&(G=[t]),W=1,R=0}else if(!ce())return R?Rae(R,x,J):void 0;t("getCompletionData: Semantic work: "+(Un()-U));const ne=S&&function(e,t,n,r){const{parent:i}=e;switch(e.kind){case 80:return aZ(e,r);case 64:switch(i.kind){case 261:return r.getContextualType(i.initializer);case 227:return r.getTypeAtLocation(i.left);case 292:return r.getContextualTypeForJsxAttribute(i);default:return}case 105:return r.getContextualType(i);case 84:const o=tt(i,ZE);return o?uZ(o,r):void 0;case 19:return!QE(i)||zE(i.parent)||WE(i.parent)?void 0:r.getContextualTypeForJsxAttribute(i.parent);default:const a=W_e.getArgumentInfoForCompletions(e,t,n,r);return a?r.getContextualTypeForArgumentAtIndex(a.invocation,a.argumentIndex):cZ(e.kind)&&NF(i)&&cZ(i.operatorToken.kind)?r.getTypeAtLocation(i.left):r.getContextualType(e,4)||r.getContextualType(e)}}(S,i,n,_),re=tt(S,ju)||j?[]:B(ne&&(ne.isUnion()?ne.types:[ne]),e=>!e.isLiteral()||1024&e.flags?void 0:e.value),ie=S&&ne&&function(e,t,n){return f(t&&(t.isUnion()?t.types:[t]),t=>{const r=t&&t.symbol;return r&&424&r.flags&&!fx(r)?lse(r,e,n):void 0})}(S,ne,_);return{kind:0,symbols:G,completionKind:W,isInSnippetScope:v,propertyAccessToConvert:C,isNewIdentifierLocation:J,location:M,keywordFilters:R,literals:re,symbolToOriginInfoMap:X,recommendedCompletion:ie,previousToken:S,contextToken:T,isJsxInitializer:L,insideJsDocTagTypeExpression:h,symbolToSortTextMap:Q,isTypeOnlyLocation:Z,isJsxIdentifierExpected:j,isRightOfOpenTag:A,isRightOfDotOrQuestionDot:E||P,importStatementCompletion:w,hasUnresolvedAutoImports:H,flags:z,defaultCommitCharacters:D};function oe(e,t,n){e.getStringIndexType()&&(J=!0,D=[]),P&&$(e.getCallSignatures())&&(J=!0,D??(D=vae));const r=206===F.kind?F:F.parent;if(u)for(const t of e.getApparentProperties())_.isValidPropertyAccessForCompletions(r,e,t)&&ae(t,!1,n);else G.push(...N(Tse(e,_),t=>_.isValidPropertyAccessForCompletions(r,e,t)));if(t&&o.includeCompletionsWithInsertText){const t=_.getPromisedTypeOfPromise(e);if(t)for(const e of t.getApparentProperties())_.isValidPropertyAccessForCompletions(r,t,e)&&ae(e,!0,n)}}function ae(t,r,a){var c;const l=f(t.declarations,e=>tt(Cc(e),kD));if(l){const r=se(l.expression),a=r&&_.getSymbolAtLocation(r),f=a&&lse(a,T,_),m=f&&eJ(f);if(m&&bx(Y,m)){const t=G.length;G.push(f),Q[eJ(f)]=yae.GlobalsOrKeywords;const r=f.parent;if(r&&Qu(r)&&_.tryGetMemberInModuleExportsAndProperties(f.name,r)===f){const a=Cs(Fy(r.name))?null==(c=bd(r))?void 0:c.fileName:void 0,{moduleSpecifier:l}=(V||(V=T7.createImportSpecifierResolver(n,e,s,o))).getModuleSpecifierForBestExportInfo([{exportKind:0,moduleFileName:a,isFromPackageJson:!1,moduleSymbol:r,symbol:f,targetFlags:ox(f,_).flags}],i,bT(M))||{};if(l){const e={kind:p(6),moduleSymbol:r,isDefaultExport:!1,symbolName:f.name,exportName:f.name,fileName:a,moduleSpecifier:l};X[t]=e}}else X[t]={kind:p(2)}}else if(o.includeCompletionsWithInsertText){if(m&&Y.has(m))return;d(t),u(t),G.push(t)}}else d(t),u(t),G.push(t);function u(e){(function(e){return!!(e.valueDeclaration&&256&Bv(e.valueDeclaration)&&u_(e.valueDeclaration.parent))})(e)&&(Q[eJ(e)]=yae.LocalDeclarationPriority)}function d(e){o.includeCompletionsWithInsertText&&(r&&bx(Y,eJ(e))?X[G.length]={kind:p(8)}:a&&(X[G.length]={kind:16}))}function p(e){return a?16|e:e}}function se(e){return aD(e)?e:dF(e)?se(e.expression):void 0}function ce(){const t=function(){const e=function(e){if(!e)return;const t=e.parent;switch(e.kind){case 19:if(qD(t))return t;break;case 27:case 28:case 80:if(172===t.kind&&qD(t.parent))return t.parent}}(T);if(!e)return 0;const t=(GD(e.parent)?e.parent:void 0)||e,n=Cse(t,_);if(!n)return 0;const r=_.getTypeFromTypeNode(t),i=Tse(n,_),o=Tse(r,_),a=new Set;return o.forEach(e=>a.add(e.escapedName)),G=K(G,N(i,e=>!a.has(e.escapedName))),W=0,J=!0,1}()||function(){if(26===(null==T?void 0:T.kind))return 0;const t=G.length,a=function(e,t,n){var r;if(e){const{parent:i}=e;switch(e.kind){case 19:case 28:if(uF(i)||sF(i))return i;break;case 42:return FD(i)?tt(i.parent,uF):void 0;case 134:return tt(i.parent,uF);case 80:if("async"===e.text&&iP(e.parent))return e.parent.parent;{if(uF(e.parent.parent)&&(oP(e.parent)||iP(e.parent)&&za(n,e.getEnd()).line!==za(n,t).line))return e.parent.parent;const r=uc(i,rP);if((null==r?void 0:r.getLastToken(n))===e&&uF(r.parent))return r.parent}break;default:if((null==(r=i.parent)?void 0:r.parent)&&(FD(i.parent)||AD(i.parent)||ID(i.parent))&&uF(i.parent.parent))return i.parent.parent;if(oP(i)&&uF(i.parent))return i.parent;const o=uc(i,rP);if(59!==e.kind&&(null==o?void 0:o.getLastToken(n))===e&&uF(o.parent))return o.parent}}}(T,i,n);if(!a)return 0;let l,u;if(W=0,211===a.kind){const e=function(e,t){const n=t.getContextualType(e);if(n)return n;const r=rh(e.parent);return NF(r)&&64===r.operatorToken.kind&&e===r.left?t.getTypeAtLocation(r):V_(r)?t.getContextualType(r):void 0}(a,_);if(void 0===e)return 67108864&a.flags?2:0;const t=_.getContextualType(a,4),n=(t||e).getStringIndexType(),r=(t||e).getNumberIndexType();if(J=!!n||!!r,l=kse(e,t,a,_),u=a.properties,0===l.length&&!r)return 0}else{un.assert(207===a.kind),J=!1;const e=Yh(a.parent);if(!Af(e))return un.fail("Root declaration is not variable-like.");let t=Eu(e)||!!fv(e)||251===e.parent.parent.kind;if(t||170!==e.kind||(V_(e.parent)?t=!!_.getContextualType(e.parent):175!==e.parent.kind&&179!==e.parent.kind||(t=V_(e.parent.parent)&&!!_.getContextualType(e.parent.parent))),t){const e=_.getTypeAtLocation(a);if(!e)return 2;l=_.getPropertiesOfType(e).filter(t=>_.isPropertyAccessible(a,!1,!1,e,t)),u=a.elements}}if(l&&l.length>0){const n=function(e,t){if(0===t.length)return e;const n=new Set,r=new Set;for(const e of t){if(304!==e.kind&&305!==e.kind&&209!==e.kind&&175!==e.kind&&178!==e.kind&&179!==e.kind&&306!==e.kind)continue;if(he(e))continue;let t;if(oP(e))fe(e,n);else if(lF(e)&&e.propertyName)80===e.propertyName.kind&&(t=e.propertyName.escapedText);else{const n=Cc(e);t=n&&zh(n)?Uh(n):void 0}void 0!==t&&r.add(t)}const i=e.filter(e=>!r.has(e.escapedName));return ge(n,i),i}(l,un.checkDefined(u));G=K(G,n),me(),211===a.kind&&o.includeCompletionsWithObjectLiteralMethodSnippets&&o.includeCompletionsWithInsertText&&(function(e){for(let t=e;t{if(!(8196&t.flags))return;const n=pse(t,yk(r),void 0,0,!1);if(!n)return;const{name:i}=n,a=function(e,t,n,r,i,o,a,s){const c=a.includeCompletionsWithSnippetText||void 0;let l=t;const _=n.getSourceFile(),u=function(e,t,n,r,i,o){const a=e.getDeclarations();if(!a||!a.length)return;const s=r.getTypeChecker(),c=a[0],l=RC(Cc(c),!1),_=s.getWidenedType(s.getTypeOfSymbolAtLocation(e,t)),u=33554432|(0===tY(n,o)?268435456:0);switch(c.kind){case 172:case 173:case 174:case 175:{let e=1048576&_.flags&&_.types.length<10?s.getUnionType(_.types,2):_;if(1048576&e.flags){const t=N(e.types,e=>s.getSignaturesOfType(e,0).length>0);if(1!==t.length)return;e=t[0]}if(1!==s.getSignaturesOfType(e,0).length)return;const n=s.typeToTypeNode(e,t,u,void 0,T7.getNoopSymbolTrackerWithResolver({program:r,host:i}));if(!n||!BD(n))return;let a;if(o.includeCompletionsWithSnippetText){const e=mw.createEmptyStatement();a=mw.createBlock([e],!0),Kw(e,{kind:0,order:0})}else a=mw.createBlock([],!0);const c=n.parameters.map(e=>mw.createParameterDeclaration(void 0,e.dotDotDotToken,e.name,void 0,void 0,e.initializer));return mw.createMethodDeclaration(void 0,void 0,l,void 0,void 0,c,void 0,a)}default:return}}(e,n,_,r,i,a);if(!u)return;const d=Gae({removeComments:!0,module:o.module,moduleResolution:o.moduleResolution,target:o.target,omitTrailingSemicolon:!1,newLine:KZ(RY(i,null==s?void 0:s.options))});l=s?d.printAndFormatSnippetList(80,mw.createNodeArray([u],!0),_,s):d.printSnippetList(80,mw.createNodeArray([u],!0),_);const p=kU({removeComments:!0,module:o.module,moduleResolution:o.moduleResolution,target:o.target,omitTrailingSemicolon:!0}),f=mw.createMethodSignature(void 0,"",u.questionToken,u.typeParameters,u.parameters,u.type);return{isSnippet:c,insertText:l,labelDetails:{detail:p.printNode(4,f,_)}}}(t,i,p,e,s,r,o,c);if(!a)return;const l={kind:128,...a};z|=32,X[G.length]=l,G.push(t)}))}var d,p;return 1}()||(w?(J=!0,le(),1):0)||function(){if(!T)return 0;const e=19===T.kind||28===T.kind?tt(T.parent,Cx):BQ(T)?tt(T.parent.parent,Cx):void 0;if(!e)return 0;BQ(T)||(R=8);const{moduleSpecifier:t}=276===e.kind?e.parent.parent:e.parent;if(!t)return J=!0,276===e.kind?2:0;const n=_.getSymbolAtLocation(t);if(!n)return J=!0,2;W=3,J=!1;const r=_.getExportsAndPropertiesOfModule(n),i=new Set(e.elements.filter(e=>!he(e)).map(e=>Hd(e.propertyName||e.name))),o=r.filter(e=>"default"!==e.escapedName&&!i.has(e.escapedName));return G=K(G,o),o.length||(R=0),1}()||function(){if(void 0===T)return 0;const e=19===T.kind||28===T.kind?tt(T.parent,wE):59===T.kind?tt(T.parent.parent,wE):void 0;if(void 0===e)return 0;const t=new Set(e.elements.map(pC));return G=N(_.getTypeAtLocation(e).getApparentProperties(),e=>!t.has(e.escapedName)),1}()||function(){var e;const t=!T||19!==T.kind&&28!==T.kind?void 0:tt(T.parent,OE);if(!t)return 0;const n=uc(t,en(sP,gE));return W=5,J=!1,null==(e=n.locals)||e.forEach((e,t)=>{var r,i;G.push(e),(null==(i=null==(r=n.symbol)?void 0:r.exports)?void 0:i.has(t))&&(Q[eJ(e)]=yae.OptionalMember)}),1}()||(function(e){if(e){const t=e.parent;switch(e.kind){case 21:case 28:return PD(e.parent)?e.parent:void 0;default:if(ue(e))return t.parent}}}(T)?(W=5,J=!0,R=4,1):0)||function(){const e=function(e,t,n,r){switch(n.kind){case 353:return tt(n.parent,xx);case 1:const t=tt(ye(nt(n.parent,sP).statements),xx);if(t&&!OX(t,20,e))return t;break;case 81:if(tt(n.parent,ND))return uc(n,u_);break;case 80:if(hc(n))return;if(ND(n.parent)&&n.parent.initializer===n)return;if(wse(n))return uc(n,xx)}if(t){if(137===n.kind||aD(t)&&ND(t.parent)&&u_(n))return uc(t,u_);switch(t.kind){case 64:return;case 27:case 20:return wse(n)&&n.parent.name===n?n.parent.parent:tt(n,xx);case 19:case 28:return tt(t.parent,xx);default:if(xx(n)){if(za(e,t.getEnd()).line!==za(e,r).line)return n;const i=u_(t.parent.parent)?vse:yse;return i(t.kind)||42===t.kind||aD(t)&&i(hc(t)??0)?t.parent.parent:void 0}return}}}(n,T,M,i);if(!e)return 0;if(W=3,J=!0,R=42===T.kind?0:u_(e)?2:3,!u_(e))return 1;const t=27===T.kind?T.parent.parent:T.parent;let r=__(t)?Bv(t):0;if(80===T.kind&&!he(T))switch(T.getText()){case"private":r|=2;break;case"static":r|=256;break;case"override":r|=16}if(ED(t)&&(r|=256),!(2&r)){const t=O(u_(e)&&16&r?rn(yh(e)):xh(e),t=>{const n=_.getTypeAtLocation(t);return 256&r?(null==n?void 0:n.symbol)&&_.getPropertiesOfType(_.getTypeOfSymbolAtLocation(n.symbol,e)):n&&_.getPropertiesOfType(n)});G=K(G,function(e,t,n){const r=new Set;for(const e of t){if(173!==e.kind&&175!==e.kind&&178!==e.kind&&179!==e.kind)continue;if(he(e))continue;if(wv(e,2))continue;if(Dv(e)!==!!(256&n))continue;const t=Jh(e.name);t&&r.add(t)}return e.filter(e=>!(r.has(e.escapedName)||!e.declarations||2&ix(e)||e.valueDeclaration&&Kl(e.valueDeclaration)))}(t,e.members,r)),d(G,(e,t)=>{const n=null==e?void 0:e.valueDeclaration;if(n&&__(n)&&n.name&&kD(n.name)){const n={kind:512,symbolName:_.symbolToString(e)};X[t]=n}})}return 1}()||function(){const e=function(e){if(e){const t=e.parent;switch(e.kind){case 32:case 31:case 44:case 80:case 212:case 293:case 292:case 294:if(t&&(286===t.kind||287===t.kind)){if(32===e.kind){const r=YX(e.pos,n,void 0);if(!t.typeArguments||r&&44===r.kind)break}return t}if(292===t.kind)return t.parent.parent;break;case 11:if(t&&(292===t.kind||294===t.kind))return t.parent.parent;break;case 20:if(t&&295===t.kind&&t.parent&&292===t.parent.kind)return t.parent.parent.parent;if(t&&294===t.kind)return t.parent.parent}}}(T),t=e&&_.getContextualType(e.attributes);if(!t)return 0;const r=e&&_.getContextualType(e.attributes,4);return G=K(G,function(e,t){const n=new Set,r=new Set;for(const e of t)he(e)||(292===e.kind?n.add(tC(e.name)):XE(e)&&fe(e,r));const i=e.filter(e=>!n.has(e.escapedName));return ge(r,i),i}(kse(t,r,e.attributes,_),e.attributes.properties)),me(),W=3,J=!1,1}()||(function(){R=function(e){if(e){let t;const n=uc(e.parent,e=>u_(e)?"quit":!(!o_(e)||t!==e.body)||(t=e,!1));return n&&n}}(T)?5:1,W=1,({isNewIdentifierLocation:J,defaultCommitCharacters:D}=_e()),S!==T&&un.assert(!!S,"Expected 'contextToken' to be defined when different from 'previousToken'.");const e=S!==T?S.getStart():i,t=function(e,t,n){let r=e;for(;r&&!FX(r,t,n);)r=r.parent;return r}(T,e,n)||n;v=function(e){switch(e.kind){case 308:case 229:case 295:case 242:return!0;default:return pu(e)}}(t);const r=2887656|(Z?0:111551),a=S&&!bT(S);G=K(G,_.getSymbolsInScope(t,r)),un.assertEachIsDefined(G,"getSymbolsInScope() should all be defined");for(let e=0;ee.getSourceFile()===n)||(Q[eJ(t)]=yae.GlobalsOrKeywords),a&&!(111551&t.flags)){const n=t.declarations&&b(t.declarations,Bl);if(n){const t={kind:64,declaration:n};X[e]=t}}}if(o.includeCompletionsWithInsertText&&308!==t.kind){const e=_.tryGetThisTypeAt(t,!1,u_(t.parent)?t:void 0);if(e&&!function(e,t,n){const r=n.resolveName("self",void 0,111551,!1);if(r&&n.getTypeOfSymbolAtLocation(r,t)===e)return!0;const i=n.resolveName("global",void 0,111551,!1);if(i&&n.getTypeOfSymbolAtLocation(i,t)===e)return!0;const o=n.resolveName("globalThis",void 0,111551,!1);return!(!o||n.getTypeOfSymbolAtLocation(o,t)!==e)}(e,n,_))for(const t of Tse(e,_))X[G.length]={kind:1},G.push(t),Q[eJ(t)]=yae.SuggestedClassMembers}le(),Z&&(R=T&&W_(T.parent)?6:7)}(),1);return 1===t}function le(){var t,r;if(!function(){var t;return!!w||!!o.includeCompletionsForModuleExports&&(!(!n.externalModuleIndicator&&!n.commonJsModuleIndicator)||!!HQ(e.getCompilerOptions())||(null==(t=e.getSymlinkCache)?void 0:t.call(e).hasAnySymlinks())||!!e.getCompilerOptions().paths||WQ(e))}())return;if(un.assert(!(null==a?void 0:a.data),"Should not run 'collectAutoImports' when faster path is available via `data`"),a&&!a.source)return;z|=1;const c=S===T&&w?"":S&&aD(S)?S.text.toLowerCase():"",_=null==(t=s.getModuleSpecifierCache)?void 0:t.call(s),u=p0(n,s,e,o,l),d=null==(r=s.getPackageJsonAutoImportProvider)?void 0:r.call(s),p=a?void 0:EZ(n,o,s);function f(t){return a0(t.isFromPackageJson?d:e,n,tt(t.moduleSymbol.valueDeclaration,sP),t.moduleSymbol,o,p,te(t.isFromPackageJson),_)}Fae("collectAutoImports",s,V||(V=T7.createImportSpecifierResolver(n,e,s,o)),e,i,o,!!w,bT(M),e=>{u.search(n.path,A,(e,t)=>{if(!ms(e,yk(s.getCompilationSettings())))return!1;if(!a&&Eh(e))return!1;if(!(Z||w||111551&t))return!1;if(Z&&!(790504&t))return!1;const n=e.charCodeAt(0);return(!A||!(n<65||n>90))&&(!!a||Mse(e,c))},(t,n,r,i)=>{if(a&&!$(t,e=>a.source===Fy(e.moduleSymbol.name)))return;if(!(t=N(t,f)).length)return;const o=e.tryResolve(t,r)||{};if("failed"===o)return;let s,c=t[0];"skipped"!==o&&({exportInfo:c=t[0],moduleSpecifier:s}=o);const l=1===c.exportKind;!function(e,t){const n=eJ(e);Q[n]!==yae.GlobalsOrKeywords&&(X[G.length]=t,Q[n]=w?yae.LocationPriority:yae.AutoImportSuggestions,G.push(e))}(l&&vb(un.checkDefined(c.symbol))||un.checkDefined(c.symbol),{kind:s?32:4,moduleSpecifier:s,symbolName:n,exportMapKey:i,exportName:2===c.exportKind?"export=":un.checkDefined(c.symbol).name,fileName:c.moduleFileName,isDefaultExport:l,moduleSymbol:c.moduleSymbol,isFromPackageJson:c.isFromPackageJson})}),H=e.skippedAny(),z|=e.resolvedAny()?8:0,z|=e.resolvedBeyondLimit()?16:0})}function _e(){if(T){const e=T.parent.kind,t=xse(T);switch(t){case 28:switch(e){case 214:case 215:{const e=T.parent.expression;return za(n,e.end).line!==za(n,i).line?{defaultCommitCharacters:bae,isNewIdentifierLocation:!0}:{defaultCommitCharacters:vae,isNewIdentifierLocation:!0}}case 227:return{defaultCommitCharacters:bae,isNewIdentifierLocation:!0};case 177:case 185:case 211:return{defaultCommitCharacters:[],isNewIdentifierLocation:!0};case 210:return{defaultCommitCharacters:vae,isNewIdentifierLocation:!0};default:return{defaultCommitCharacters:vae,isNewIdentifierLocation:!1}}case 21:switch(e){case 214:case 215:{const e=T.parent.expression;return za(n,e.end).line!==za(n,i).line?{defaultCommitCharacters:bae,isNewIdentifierLocation:!0}:{defaultCommitCharacters:vae,isNewIdentifierLocation:!0}}case 218:return{defaultCommitCharacters:bae,isNewIdentifierLocation:!0};case 177:case 197:return{defaultCommitCharacters:[],isNewIdentifierLocation:!0};default:return{defaultCommitCharacters:vae,isNewIdentifierLocation:!1}}case 23:switch(e){case 210:case 182:case 190:case 168:return{defaultCommitCharacters:vae,isNewIdentifierLocation:!0};default:return{defaultCommitCharacters:vae,isNewIdentifierLocation:!1}}case 144:case 145:case 102:return{defaultCommitCharacters:[],isNewIdentifierLocation:!0};case 25:return 268===e?{defaultCommitCharacters:[],isNewIdentifierLocation:!0}:{defaultCommitCharacters:vae,isNewIdentifierLocation:!1};case 19:switch(e){case 264:case 211:return{defaultCommitCharacters:[],isNewIdentifierLocation:!0};default:return{defaultCommitCharacters:vae,isNewIdentifierLocation:!1}}case 64:switch(e){case 261:case 227:return{defaultCommitCharacters:vae,isNewIdentifierLocation:!0};default:return{defaultCommitCharacters:vae,isNewIdentifierLocation:!1}}case 16:return{defaultCommitCharacters:vae,isNewIdentifierLocation:229===e};case 17:return{defaultCommitCharacters:vae,isNewIdentifierLocation:240===e};case 134:return 175===e||305===e?{defaultCommitCharacters:[],isNewIdentifierLocation:!0}:{defaultCommitCharacters:vae,isNewIdentifierLocation:!1};case 42:return 175===e?{defaultCommitCharacters:[],isNewIdentifierLocation:!0}:{defaultCommitCharacters:vae,isNewIdentifierLocation:!1}}if(vse(t))return{defaultCommitCharacters:[],isNewIdentifierLocation:!0}}return{defaultCommitCharacters:vae,isNewIdentifierLocation:!1}}function ue(e){return!!e.parent&&TD(e.parent)&&PD(e.parent.parent)&&(Ql(e.kind)||lh(e))}function de(e,t){return 64!==e.kind&&(27===e.kind||!$b(e.end,t,n))}function pe(e){return c_(e)&&177!==e}function fe(e,t){const n=e.expression,r=_.getSymbolAtLocation(n),i=r&&_.getTypeOfSymbolAtLocation(r,n),o=i&&i.properties;o&&o.forEach(e=>{t.add(e.name)})}function me(){G.forEach(e=>{if(16777216&e.flags){const t=eJ(e);Q[t]=Q[t]??yae.OptionalMember}})}function ge(e,t){if(0!==e.size)for(const n of t)e.has(n.name)&&(Q[eJ(n)]=yae.MemberDeclaredBySpreadAssignment)}function he(e){return e.getStart(n)<=i&&i<=e.getEnd()}}function use(e,t){const n=YX(e,t);return n&&e<=n.end&&(dl(n)||Ch(n.kind))?{contextToken:YX(n.getFullStart(),t,void 0),previousToken:n}:{contextToken:n,previousToken:n}}function dse(e,t,n,r){const i=t.isPackageJsonImport?r.getPackageJsonAutoImportProvider():n,o=i.getTypeChecker(),a=t.ambientModuleName?o.tryFindAmbientModule(t.ambientModuleName):t.fileName?o.getMergedSymbol(un.checkDefined(i.getSourceFile(t.fileName)).symbol):void 0;if(!a)return;let s="export="===t.exportName?o.resolveExternalModuleSymbol(a):o.tryGetMemberInModuleExportsAndProperties(t.exportName,a);return s?(s="default"===t.exportName&&vb(s)||s,{symbol:s,origin:Qae(t,e,a)}):void 0}function pse(e,t,n,r,i){if(function(e){return!!(e&&256&e.kind)}(n))return;const o=function(e){return Sae(e)||Tae(e)||Dae(e)}(n)?n.symbolName:e.name;if(void 0===o||1536&e.flags&&zm(o.charCodeAt(0))||Wh(e))return;const a={name:o,needsConvertPropertyAccess:!1};if(ms(o,t,i?1:0)||e.valueDeclaration&&Kl(e.valueDeclaration))return a;if(2097152&e.flags)return{name:o,needsConvertPropertyAccess:!0};switch(r){case 3:return Dae(n)?{name:n.symbolName,needsConvertPropertyAccess:!1}:void 0;case 0:return{name:JSON.stringify(o),needsConvertPropertyAccess:!1};case 2:case 1:return 32===o.charCodeAt(0)?void 0:{name:o,needsConvertPropertyAccess:!0};case 5:case 4:return a;default:un.assertNever(r)}}var fse=[],mse=dt(()=>{const e=[];for(let t=83;t<=166;t++)e.push({name:Fa(t),kind:"keyword",kindModifiers:"",sortText:yae.GlobalsOrKeywords});return e});function gse(e,t){if(!t)return hse(e);const n=e+8+1;return fse[n]||(fse[n]=hse(e).filter(e=>!function(e){switch(e){case 128:case 133:case 163:case 136:case 138:case 94:case 162:case 119:case 140:case 120:case 142:case 143:case 144:case 145:case 146:case 150:case 151:case 164:case 123:case 124:case 125:case 148:case 154:case 155:case 156:case 158:case 159:return!0;default:return!1}}(Ea(e.name))))}function hse(e){return fse[e]||(fse[e]=mse().filter(t=>{const n=Ea(t.name);switch(e){case 0:return!1;case 1:return bse(n)||138===n||144===n||156===n||145===n||128===n||MQ(n)&&157!==n;case 5:return bse(n);case 2:return vse(n);case 3:return yse(n);case 4:return Ql(n);case 6:return MQ(n)||87===n;case 7:return MQ(n);case 8:return 156===n;default:return un.assertNever(e)}}))}function yse(e){return 148===e}function vse(e){switch(e){case 128:case 129:case 137:case 139:case 153:case 134:case 138:case 164:return!0;default:return Yl(e)}}function bse(e){return 134===e||135===e||160===e||130===e||152===e||156===e||!Dh(e)&&!vse(e)}function xse(e){return aD(e)?hc(e)??0:e.kind}function kse(e,t,n,r){const i=t&&t!==e,o=r.getUnionType(N(1048576&e.flags?e.types:[e],e=>!r.getPromisedTypeOfPromise(e))),a=!i||3&t.flags?o:r.getUnionType([o,t]),s=function(e,t,n){return e.isUnion()?n.getAllPossiblePropertiesOfTypes(N(e.types,e=>!(402784252&e.flags||n.isArrayLikeType(e)||n.isTypeInvalidDueToUnionDiscriminant(e,t)||n.typeHasCallOrConstructSignatures(e)||e.isClass()&&Sse(e.getApparentProperties())))):e.getApparentProperties()}(a,n,r);return a.isClass()&&Sse(s)?[]:i?N(s,function(e){return!u(e.declarations)||$(e.declarations,e=>e.parent!==n)}):s}function Sse(e){return $(e,e=>!!(6&ix(e)))}function Tse(e,t){return e.isUnion()?un.checkEachDefined(t.getAllPossiblePropertiesOfTypes(e.types),"getAllPossiblePropertiesOfTypes() should all be defined"):un.checkEachDefined(e.getApparentProperties(),"getApparentProperties() should all be defined")}function Cse(e,t){if(!e)return;if(b_(e)&&Iu(e.parent))return t.getTypeArgumentConstraint(e);const n=Cse(e.parent,t);if(n)switch(e.kind){case 172:return t.getTypeOfPropertyOfContextualType(n,e.symbol.escapedName);case 194:case 188:case 193:return n}}function wse(e){return e.parent&&y_(e.parent)&&xx(e.parent.parent)}function Nse({left:e}){return Nd(e)}function Dse(e,t){var n,r,i;let o,a=!1;const s=function(){const n=e.parent;if(bE(n)){const r=n.getLastToken(t);return aD(e)&&r!==e?(o=161,void(a=!0)):(o=156===e.kind?void 0:156,Ise(n.moduleReference)?n:void 0)}if(Pse(n,e)&&Ase(n.parent))return n;if(!EE(n)&&!DE(n))return IE(n)&&42===e.kind||OE(n)&&20===e.kind?(a=!0,void(o=161)):vD(e)&&sP(n)?(o=156,e):vD(e)&&xE(n)?(o=156,Ise(n.moduleSpecifier)?n:void 0):void 0;if(n.parent.isTypeOnly||19!==e.kind&&102!==e.kind&&28!==e.kind||(o=156),Ase(n)){if(20!==e.kind&&80!==e.kind)return n.parent.parent;a=!0,o=161}}();return{isKeywordOnlyCompletion:a,keywordCompletion:o,isNewIdentifierLocation:!(!s&&156!==o),isTopLevelTypeOnly:!!(null==(r=null==(n=tt(s,xE))?void 0:n.importClause)?void 0:r.isTypeOnly)||!!(null==(i=tt(s,bE))?void 0:i.isTypeOnly),couldBeTypeOnlyImportSpecifier:!!s&&Pse(s,e),replacementSpan:Fse(s)}}function Fse(e){var t;if(!e)return;const n=uc(e,en(xE,bE,XP))??e,r=n.getSourceFile();if(Rb(n,r))return FQ(n,r);un.assert(102!==n.kind&&277!==n.kind);const i=273===n.kind||352===n.kind?Ese(null==(t=n.importClause)?void 0:t.namedBindings)??n.moduleSpecifier:n.moduleReference,o={pos:n.getFirstToken().getStart(),end:i.pos};return Rb(o,r)?AQ(o):void 0}function Ese(e){var t;return b(null==(t=tt(e,EE))?void 0:t.elements,t=>{var n;return!t.propertyName&&Eh(t.name.text)&&28!==(null==(n=YX(t.name.pos,e.getSourceFile(),e))?void 0:n.kind)})}function Pse(e,t){return PE(e)&&(e.isTypeOnly||t===e.name&&BQ(t))}function Ase(e){if(!Ise(e.parent.parent.moduleSpecifier)||e.parent.name)return!1;if(EE(e)){const t=Ese(e);return(t?e.elements.indexOf(t):e.elements.length)<2}return!0}function Ise(e){var t;return!!Nd(e)||!(null==(t=tt(JE(e)?e.expression:e,ju))?void 0:t.text)}function Ose(e){return e.parent&&bF(e.parent)&&(e.parent.body===e||39===e.kind)}function Lse(e,t,n=new Set){return r(e)||r(ox(e.exportSymbol||e,t));function r(e){return!!(788968&e.flags)||t.isUnknownSymbol(e)||!!(1536&e.flags)&&bx(n,e)&&t.getExportsOfModule(e).some(e=>Lse(e,t,n))}}function jse(e,t){const n=ox(e,t).declarations;return!!u(n)&&v(n,$Z)}function Mse(e,t){if(0===t.length)return!0;let n,r=!1,i=0;const o=e.length;for(let a=0;aVse,getStringLiteralCompletions:()=>Use});var zse={directory:0,script:1,"external module name":2};function qse(){const e=new Map;return{add:function(t){const n=e.get(t.name);(!n||zse[n.kind]t>=e.pos&&t<=e.end);if(!c)return;const l=e.text.slice(c.pos,t),_=pce.exec(l);if(!_)return;const[,u,d,p]=_,f=Do(e.path),m="path"===d?rce(p,f,tce(o,0,e),n,r,i,!0,e.path):"types"===d?dce(n,r,i,f,cce(p),tce(o,1,e)):un.fail();return Zse(p,c.pos+u.length,Oe(m.values()))}(e,t,o,i,KQ(o,i));return n&&Wse(n)}if(nQ(e,t,n)){if(!n||!ju(n))return;return function(e,t,n,r,i,o,a,s,c,l){if(void 0===e)return;const _=EQ(t,c);switch(e.kind){case 0:return Wse(e.paths);case 1:{const u=[];return tse(e.symbols,u,t,t,n,c,n,r,i,99,o,4,s,a,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,l),{isGlobalCompletion:!1,isMemberCompletion:!0,isNewIdentifierLocation:e.hasIndexSignature,optionalReplacementSpan:_,entries:u,defaultCommitCharacters:Eae(e.hasIndexSignature)}}case 2:{const n=15===t.kind?96:Gt(Xd(t),"'")?39:34,r=e.types.map(e=>({name:xy(e.value,n),kindModifiers:"",kind:"string",sortText:yae.LocationPriority,replacementSpan:DQ(t,c),commitCharacters:[]}));return{isGlobalCompletion:!1,isMemberCompletion:!1,isNewIdentifierLocation:e.isNewIdentifier,optionalReplacementSpan:_,entries:r,defaultCommitCharacters:Eae(e.isNewIdentifier)}}default:return un.assertNever(e)}}(Hse(e,n,t,o,i,s),n,e,i,o,a,r,s,t,c)}}function Vse(e,t,n,r,i,o,a,s){if(!r||!ju(r))return;const c=Hse(t,r,n,i,o,s);return c&&function(e,t,n,r,i,o){switch(n.kind){case 0:{const t=b(n.paths,t=>t.name===e);return t&&ase(e,$se(t.extension),t.kind,[PY(e)])}case 1:{const a=b(n.symbols,t=>t.name===e);return a&&ose(a,a.name,i,r,t,o)}case 2:return b(n.types,t=>t.value===e)?ase(e,"","string",[PY(e)]):void 0;default:return un.assertNever(n)}}(e,r,c,t,i.getTypeChecker(),a)}function Wse(e){const t=!0;return{isGlobalCompletion:!1,isMemberCompletion:!1,isNewIdentifierLocation:t,entries:e.map(({name:e,kind:t,span:n,extension:r})=>({name:e,kind:t,kindModifiers:$se(r),sortText:yae.LocationPriority,replacementSpan:n})),defaultCommitCharacters:Eae(t)}}function $se(e){switch(e){case".d.ts":return".d.ts";case".js":return".js";case".json":return".json";case".jsx":return".jsx";case".ts":return".ts";case".tsx":return".tsx";case".d.mts":return".d.mts";case".mjs":return".mjs";case".mts":return".mts";case".d.cts":return".d.cts";case".cjs":return".cjs";case".cts":return".cts";case".tsbuildinfo":return un.fail("Extension .tsbuildinfo is unsupported.");case void 0:return"";default:return un.assertNever(e)}}function Hse(e,t,n,r,i,o){const a=r.getTypeChecker(),s=Kse(t.parent);switch(s.kind){case 202:{const c=Kse(s.parent);return 206===c.kind?{kind:0,paths:ece(e,t,r,i,o)}:function e(t){switch(t.kind){case 234:case 184:{const e=uc(s,e=>e.parent===t);return e?{kind:2,types:Xse(a.getTypeArgumentConstraint(e)),isNewIdentifier:!1}:void 0}case 200:const{indexType:i,objectType:o}=t;if(!SX(i,n))return;return Gse(a.getTypeFromTypeNode(o));case 193:{const n=e(Kse(t.parent));if(!n)return;const i=(r=s,B(t.types,e=>e!==r&&rF(e)&&UN(e.literal)?e.literal.text:void 0));return 1===n.kind?{kind:1,symbols:n.symbols.filter(e=>!T(i,e.name)),hasIndexSignature:n.hasIndexSignature}:{kind:2,types:n.types.filter(e=>!T(i,e.value)),isNewIdentifier:!1}}default:return}var r}(c)}case 304:return uF(s.parent)&&s.name===t?function(e,t){const n=e.getContextualType(t);if(!n)return;return{kind:1,symbols:kse(n,e.getContextualType(t,4),t,e),hasIndexSignature:_Z(n)}}(a,s.parent):c()||c(0);case 213:{const{expression:e,argumentExpression:n}=s;return t===ah(n)?Gse(a.getTypeAtLocation(e)):void 0}case 214:case 215:case 292:if(!function(e){return fF(e.parent)&&fe(e.parent.arguments)===e&&aD(e.parent.expression)&&"require"===e.parent.expression.escapedText}(t)&&!_f(s)){const r=W_e.getArgumentInfoForCompletions(292===s.kind?s.parent:t,n,e,a);return r&&function(e,t,n,r){let i=!1;const o=new Set,a=bu(e)?un.checkDefined(uc(t.parent,KE)):t,s=O(r.getCandidateSignaturesForStringLiteralCompletions(e,a),t=>{if(!aJ(t)&&n.argumentCount>t.parameters.length)return;let s=t.getTypeParameterAtPosition(n.argumentIndex);if(bu(e)){const e=r.getTypeOfPropertyOfType(s,nC(a.name));e&&(s=e)}return i=i||!!(4&s.flags),Xse(s,o)});return u(s)?{kind:2,types:s,isNewIdentifier:i}:void 0}(r.invocation,t,r,a)||c(0)}case 273:case 279:case 284:case 352:return{kind:0,paths:ece(e,t,r,i,o)};case 297:const l=ZZ(a,s.parent.clauses),_=c();if(!_)return;return{kind:2,types:_.types.filter(e=>!l.hasValue(e.value)),isNewIdentifier:!1};case 277:case 282:const d=s;if(d.propertyName&&t!==d.propertyName)return;const p=d.parent,{moduleSpecifier:f}=276===p.kind?p.parent.parent:p.parent;if(!f)return;const m=a.getSymbolAtLocation(f);if(!m)return;const g=a.getExportsAndPropertiesOfModule(m),h=new Set(p.elements.map(e=>Hd(e.propertyName||e.name)));return{kind:1,symbols:g.filter(e=>"default"!==e.escapedName&&!h.has(e.escapedName)),hasIndexSignature:!1};case 227:if(103===s.operatorToken.kind){const e=a.getTypeAtLocation(s.right);return{kind:1,symbols:(e.isUnion()?a.getAllPossiblePropertiesOfTypes(e.types):e.getApparentProperties()).filter(e=>!e.valueDeclaration||!Kl(e.valueDeclaration)),hasIndexSignature:!1}}return c(0);default:return c()||c(0)}function c(e=4){const n=Xse(aZ(t,a,e));if(n.length)return{kind:2,types:n,isNewIdentifier:!1}}}function Kse(e){switch(e.kind){case 197:return nh(e);case 218:return rh(e);default:return e}}function Gse(e){return e&&{kind:1,symbols:N(e.getApparentProperties(),e=>!(e.valueDeclaration&&Kl(e.valueDeclaration))),hasIndexSignature:_Z(e)}}function Xse(e,t=new Set){return e?(e=UQ(e)).isUnion()?O(e.types,e=>Xse(e,t)):!e.isStringLiteral()||1024&e.flags||!bx(t,e.value)?l:[e]:l}function Qse(e,t,n){return{name:e,kind:t,extension:n}}function Yse(e){return Qse(e,"directory",void 0)}function Zse(e,t,n){const r=function(e,t){const n=Math.max(e.lastIndexOf(lo),e.lastIndexOf(_o)),r=-1!==n?n+1:0,i=e.length-r;return 0===i||ms(e.substr(r,i),99)?void 0:Ws(t+r,i)}(e,t),i=0===e.length?void 0:Ws(t,e.length);return n.map(({name:e,kind:t,extension:n})=>e.includes(lo)||e.includes(_o)?{name:e,kind:t,extension:n,span:i}:{name:e,kind:t,extension:n,span:r})}function ece(e,t,n,r,i){return Zse(t.text,t.getStart(e)+1,function(e,t,n,r,i){const o=Oo(t.text),a=ju(t)?n.getModeForUsageLocation(e,t):void 0,s=e.path,c=Do(s),_=n.getCompilerOptions(),u=n.getTypeChecker(),d=KQ(n,r),p=tce(_,1,e,u,i,a);return function(e){if(e&&e.length>=2&&46===e.charCodeAt(0)){const t=e.length>=3&&46===e.charCodeAt(1)?2:1,n=e.charCodeAt(t);return 47===n||92===n}return!1}(o)||!_.baseUrl&&!_.paths&&(go(o)||mo(o))?function(e,t,n,r,i,o,a){const s=n.getCompilerOptions();return s.rootDirs?function(e,t,n,r,i,o,a,s){const c=function(e,t,n,r){const i=f(e=e.map(e=>Wo(Jo(go(e)?e:jo(t,e)))),e=>ea(e,n,t,r)?n.substr(e.length):void 0);return Q([...e.map(e=>jo(e,i)),n].map(e=>Vo(e)),ht,Ct)}(e,i.getCompilerOptions().project||o.getCurrentDirectory(),n,!(o.useCaseSensitiveFileNames&&o.useCaseSensitiveFileNames()));return Q(O(c,e=>Oe(rce(t,e,r,i,o,a,!0,s).values())),(e,t)=>e.name===t.name&&e.kind===t.kind&&e.extension===t.extension)}(s.rootDirs,e,t,a,n,r,i,o):Oe(rce(e,t,a,n,r,i,!0,o).values())}(o,c,n,r,d,s,p):function(e,t,n,r,i,o,a){const s=r.getTypeChecker(),c=r.getCompilerOptions(),{baseUrl:_,paths:u}=c,d=qse(),p=bk(c);if(_){const t=Jo(jo(i.getCurrentDirectory(),_));rce(e,t,a,r,i,o,!1,void 0,d)}if(u){const t=Ky(c,i);oce(d,e,t,a,r,i,o,u)}const f=cce(e);for(const t of function(e,t,n){const r=n.getAmbientModules().map(e=>Fy(e.name)).filter(t=>Gt(t,e)&&!t.includes("*"));if(void 0!==t){const e=Wo(t);return r.map(t=>Xt(t,e))}return r}(e,f,s))d.add(Qse(t,"external module name",void 0));if(dce(r,i,o,t,f,a,d),XQ(p)){let n=!1;if(void 0===f)for(const e of function(e,t){if(!e.readFile||!e.fileExists)return l;const n=[];for(const r of NZ(t,e)){const t=wb(r,e);for(const e of fce){const r=t[e];if(r)for(const e in r)De(r,e)&&!Gt(e,"@types/")&&n.push(e)}}return n}(i,t)){const t=Qse(e,"external module name",void 0);d.has(t.name)||(n=!0,d.add(t))}if(!n){const n=Ck(c),s=wk(c);let l=!1;const _=t=>{if(s&&!l){const n=jo(t,"package.json");(l=SZ(i,n))&&m(wb(n,i).imports,e,t,!1,!0)}};let u=t=>{const n=jo(t,"node_modules");TZ(i,n)&&rce(e,n,a,r,i,o,!1,void 0,d),_(t)};if(f&&n){const t=u;u=n=>{const r=Ao(e);r.shift();let o=r.shift();if(!o)return t(n);if(Gt(o,"@")){const e=r.shift();if(!e)return t(n);o=jo(o,e)}if(s&&Gt(o,"#"))return _(n);const a=jo(n,"node_modules",o),c=jo(a,"package.json");if(SZ(i,c)){const t=wb(c,i),n=r.join("/")+(r.length&&To(e)?"/":"");return void m(t.exports,n,a,!0,!1)}return t(n)}}TR(i,t,u)}}return Oe(d.values());function m(e,t,s,l,_){if("object"!=typeof e||null===e)return;const u=Ee(e),p=yM(c,n);ace(d,l,_,t,s,a,r,i,o,u,t=>{const n=sce(e[t],p);if(void 0!==n)return rn(Mt(t,"/")&&Mt(n,"/")?n+"*":n)},yR)}}(o,c,a,n,r,d,p)}(e,t,n,r,i))}function tce(e,t,n,r,i,o){return{extensionsToSearch:I(nce(e,r)),referenceKind:t,importingSourceFile:n,endingPreference:null==i?void 0:i.importModuleSpecifierEnding,resolutionMode:o}}function nce(e,t){const n=t?B(t.getAmbientModules(),e=>{const t=e.name.slice(1,-1);if(t.startsWith("*.")&&!t.includes("/"))return t.slice(1)}):[],r=[...AS(e),n];return XQ(bk(e))?IS(e,r):r}function rce(e,t,n,r,i,o,a,s,c=qse()){var l;void 0===e&&(e=""),To(e=Oo(e))||(e=Do(e)),""===e&&(e="."+lo);const _=Mo(t,e=Wo(e)),u=To(_)?_:Do(_);if(!a){const e=DZ(u,i);if(e){const t=wb(e,i).typesVersions;if("object"==typeof t){const a=null==(l=_M(t))?void 0:l.paths;if(a){const t=Do(e);if(oce(c,_.slice(Wo(t).length),t,n,r,i,o,a))return c}}}}const d=!(i.useCaseSensitiveFileNames&&i.useCaseSensitiveFileNames());if(!TZ(i,u))return c;const p=kZ(i,u,n.extensionsToSearch,void 0,["./*"]);if(p)for(let e of p){if(e=Jo(e),s&&0===Zo(e,s,t,d))continue;const{name:i,extension:o}=ice(Fo(e),r,n,!1);c.add(Qse(i,"script",o))}const f=xZ(i,u);if(f)for(const e of f){const t=Fo(Jo(e));"@types"!==t&&c.add(Yse(t))}return c}function ice(e,t,n,r){const i=nB.tryGetRealFileNameForNonJsDeclarationFileName(e);if(i)return{name:i,extension:tT(i)};if(0===n.referenceKind)return{name:e,extension:tT(e)};let o=nB.getModuleSpecifierPreferences({importModuleSpecifierEnding:n.endingPreference},t,t.getCompilerOptions(),n.importingSourceFile).getAllowedEndingsInPreferredOrder(n.resolutionMode);if(r&&(o=o.filter(e=>0!==e&&1!==e)),3===o[0]){if(So(e,ES))return{name:e,extension:tT(e)};const n=nB.tryGetJSExtensionForFile(e,t.getCompilerOptions());return n?{name:$S(e,n),extension:n}:{name:e,extension:tT(e)}}if(!r&&(0===o[0]||1===o[0])&&So(e,[".js",".jsx",".ts",".tsx",".d.ts"]))return{name:US(e),extension:tT(e)};const a=nB.tryGetJSExtensionForFile(e,t.getCompilerOptions());return a?{name:$S(e,a),extension:a}:{name:e,extension:tT(e)}}function oce(e,t,n,r,i,o,a,s){return ace(e,!1,!1,t,n,r,i,o,a,Ee(s),e=>s[e],(e,t)=>{const n=HS(e),r=HS(t),i="object"==typeof n?n.prefix.length:e.length;return vt("object"==typeof r?r.prefix.length:t.length,i)})}function ace(e,t,n,r,i,o,a,s,c,l,_,u){let d,p=[];for(const e of l){if("."===e)continue;const l=e.replace(/^\.\//,"")+((t||n)&&Mt(e,"/")?"*":""),f=_(e);if(f){const e=HS(l);if(!e)continue;const _="object"==typeof e&&Yt(e,r);_&&(void 0===d||-1===u(l,d))&&(d=l,p=p.filter(e=>!e.matchedPattern)),"string"!=typeof e&&void 0!==d&&1===u(l,d)||p.push({matchedPattern:_,results:lce(l,f,r,i,o,t,n,a,s,c).map(({name:e,kind:t,extension:n})=>Qse(e,t,n))})}}return p.forEach(t=>t.results.forEach(t=>e.add(t))),void 0!==d}function sce(e,t){if("string"==typeof e)return e;if(e&&"object"==typeof e&&!Qe(e))for(const n in e)if("default"===n||t.includes(n)||xR(t,n))return sce(e[n],t)}function cce(e){return mce(e)?To(e)?e:Do(e):void 0}function lce(e,t,n,r,i,o,a,s,c,_){const u=HS(e);if(!u)return l;if("string"==typeof u)return p(e,"script");const d=Qt(n,u.prefix);return void 0===d?Mt(e,"/*")?p(u.prefix,"directory"):O(t,e=>{var t;return null==(t=_ce("",r,e,i,o,a,s,c,_))?void 0:t.map(({name:e,...t})=>({name:u.prefix+e+u.suffix,...t}))}):O(t,e=>_ce(d,r,e,i,o,a,s,c,_));function p(e,t){return Gt(e,n)?[{name:Vo(e),kind:t,extension:void 0}]:l}}function _ce(e,t,n,r,i,o,a,s,c){if(!s.readDirectory)return;const l=HS(n);if(void 0===l||Ze(l))return;const _=Mo(l.prefix),u=To(l.prefix)?_:Do(_),d=To(l.prefix)?"":Fo(_),p=mce(e),m=p?To(e)?e:Do(e):void 0,g=()=>c.getCommonSourceDirectory(),h=!jy(c),y=a.getCompilerOptions().outDir,v=a.getCompilerOptions().declarationDir,b=p?jo(u,d+m):u,x=Jo(jo(t,b)),k=o&&y&&Hy(x,h,y,g),S=o&&v&&Hy(x,h,v,g),T=Jo(l.suffix),C=T&&Wy("_"+T),w=T?$y("_"+T):void 0,N=[C&&$S(T,C),...w?w.map(e=>$S(T,e)):[],T].filter(Ze),D=T?N.map(e=>"**/*"+e):["./*"],F=(i||o)&&Mt(n,"/*");let E=P(x);return k&&(E=K(E,P(k))),S&&(E=K(E,P(S))),T||(E=K(E,A(x)),k&&(E=K(E,A(k))),S&&(E=K(E,A(S)))),E;function P(e){const t=p?e:Wo(e)+d;return B(kZ(s,e,r.extensionsToSearch,void 0,D),e=>{const n=(i=e,o=t,f(N,e=>{const t=(a=e,Gt(n=Jo(i),r=o)&&Mt(n,a)?n.slice(r.length,n.length-a.length):void 0);var n,r,a;return void 0===t?void 0:uce(t)}));var i,o;if(n){if(mce(n))return Yse(Ao(uce(n))[1]);const{name:e,extension:t}=ice(n,a,r,F);return Qse(e,"script",t)}})}function A(e){return B(xZ(s,e),e=>"node_modules"===e?void 0:Yse(e))}}function uce(e){return e[0]===lo?e.slice(1):e}function dce(e,t,n,r,i,o,a=qse()){const s=e.getCompilerOptions(),c=new Map,_=CZ(()=>uM(s,t))||l;for(const e of _)u(e);for(const e of NZ(r,t))u(jo(Do(e),"node_modules/@types"));return a;function u(r){if(TZ(t,r))for(const l of xZ(t,r)){const _=IR(l);if(!s.types||T(s.types,_))if(void 0===i)c.has(_)||(a.add(Qse(_,"external module name",void 0)),c.set(_,!0));else{const s=jo(r,l),c=Zk(i,_,My(t));void 0!==c&&rce(c,s,o,e,t,n,!1,void 0,a)}}}}var pce=/^(\/\/\/\s*{const i=t.getSymbolAtLocation(n);if(i){const t=eJ(i).toString();let n=r.get(t);n||r.set(t,n=[]),n.push(e)}});return r}(e,n,r);return(o,a,s)=>{const{directImports:c,indirectUsers:l}=function(e,t,n,{exportingModuleSymbol:r,exportKind:i},o,a){const s=JQ(),c=JQ(),l=[],_=!!r.globalExports,u=_?void 0:[];return function e(t){const n=g(t);if(n)for(const t of n)if(s(t))switch(a&&a.throwIfCancellationRequested(),t.kind){case 214:if(_f(t)){d(t);break}if(!_){const e=t.parent;if(2===i&&261===e.kind){const{name:t}=e;if(80===t.kind){l.push(t);break}}}break;case 80:break;case 272:f(t,t.name,Nv(t,32),!1);break;case 273:case 352:l.push(t);const n=t.importClause&&t.importClause.namedBindings;n&&275===n.kind?f(t,n.name,!1,!0):!_&&Tg(t)&&m(Nce(t));break;case 279:t.exportClause?281===t.exportClause.kind?m(Nce(t),!0):l.push(t):e(wce(t,o));break;case 206:!_&&t.isTypeOf&&!t.qualifier&&p(t)&&m(t.getSourceFile(),!0),l.push(t);break;default:un.failBadSyntaxKind(t,"Unexpected import kind.")}}(r),{directImports:l,indirectUsers:function(){if(_)return e;if(r.declarations)for(const e of r.declarations)fp(e)&&t.has(e.getSourceFile().fileName)&&m(e);return u.map(vd)}()};function d(e){m(uc(e,Dce)||e.getSourceFile(),!!p(e,!0))}function p(e,t=!1){return uc(e,e=>t&&Dce(e)?"quit":kI(e)&&$(e.modifiers,cD))}function f(e,t,n,r){if(2===i)r||l.push(e);else if(!_){const r=Nce(e);un.assert(308===r.kind||268===r.kind),n||function(e,t,n){const r=n.getSymbolAtLocation(t);return!!kce(e,e=>{if(!IE(e))return;const{exportClause:t,moduleSpecifier:i}=e;return!i&&t&&OE(t)&&t.elements.some(e=>n.getExportSpecifierLocalTargetSymbol(e)===r)})}(r,t,o)?m(r,!0):m(r)}}function m(e,t=!1){if(un.assert(!_),!c(e))return;if(u.push(e),!t)return;const n=o.getMergedSymbol(e.symbol);if(!n)return;un.assert(!!(1536&n.flags));const r=g(n);if(r)for(const e of r)iF(e)||m(Nce(e),!0)}function g(e){return n.get(eJ(e).toString())}}(e,t,i,a,n,r);return{indirectUsers:l,...bce(c,o,a.exportKind,n,s)}}}i(gce,{Core:()=>Mce,DefinitionKind:()=>Ece,EntryKind:()=>Pce,ExportKind:()=>yce,FindReferencesUse:()=>Rce,ImportExport:()=>vce,createImportTracker:()=>hce,findModuleReferences:()=>xce,findReferenceOrRenameEntries:()=>qce,findReferencedSymbols:()=>Bce,getContextNode:()=>Lce,getExportInfo:()=>Cce,getImplementationsAtPosition:()=>Jce,getImportOrExportSymbol:()=>Tce,getReferenceEntriesForNode:()=>Uce,isContextWithStartAndEndNode:()=>Ice,isDeclarationOfSymbol:()=>nle,isWriteAccessForReference:()=>tle,toContextSpan:()=>jce,toHighlightSpan:()=>Yce,toReferenceEntry:()=>Kce,toRenameLocation:()=>Hce});var yce=(e=>(e[e.Named=0]="Named",e[e.Default=1]="Default",e[e.ExportEquals=2]="ExportEquals",e))(yce||{}),vce=(e=>(e[e.Import=0]="Import",e[e.Export=1]="Export",e))(vce||{});function bce(e,t,n,r,i){const o=[],a=[];function s(e,t){o.push([e,t])}if(e)for(const t of e)c(t);return{importSearches:o,singleReferences:a};function c(e){if(272===e.kind)return void(Fce(e)&&l(e.name));if(80===e.kind)return void l(e);if(206===e.kind){if(e.qualifier){const n=sb(e.qualifier);n.escapedText===yc(t)&&a.push(n)}else 2===n&&a.push(e.argument.literal);return}if(11!==e.moduleSpecifier.kind)return;if(279===e.kind)return void(e.exportClause&&OE(e.exportClause)&&_(e.exportClause));const{name:o,namedBindings:c}=e.importClause||{name:void 0,namedBindings:void 0};if(c)switch(c.kind){case 275:l(c.name);break;case 276:0!==n&&1!==n||_(c);break;default:un.assertNever(c)}!o||1!==n&&2!==n||i&&o.escapedText!==iY(t)||s(o,r.getSymbolAtLocation(o))}function l(e){2!==n||i&&!u(e.escapedText)||s(e,r.getSymbolAtLocation(e))}function _(e){if(e)for(const n of e.elements){const{name:e,propertyName:o}=n;u(Hd(o||e))&&(o?(a.push(o),i&&Hd(e)!==t.escapedName||s(e,r.getSymbolAtLocation(e))):s(e,282===n.kind&&n.propertyName?r.getExportSpecifierLocalTargetSymbol(n):r.getSymbolAtLocation(e)))}}function u(e){return e===t.escapedName||0!==n&&"default"===e}}function xce(e,t,n){var r;const i=[],o=e.getTypeChecker();for(const a of t){const t=n.valueDeclaration;if(308===(null==t?void 0:t.kind)){for(const n of a.referencedFiles)e.getSourceFileFromReference(a,n)===t&&i.push({kind:"reference",referencingFile:a,ref:n});for(const n of a.typeReferenceDirectives){const o=null==(r=e.getResolvedTypeReferenceDirectiveFromTypeReferenceDirective(n,a))?void 0:r.resolvedTypeReferenceDirective;void 0!==o&&o.resolvedFileName===t.fileName&&i.push({kind:"reference",referencingFile:a,ref:n})}}Sce(a,(e,t)=>{o.getSymbolAtLocation(t)===n&&i.push(ey(e)?{kind:"implicit",literal:t,referencingFile:a}:{kind:"import",literal:t})})}return i}function kce(e,t){return d(308===e.kind?e.statements:e.body.statements,e=>t(e)||Dce(e)&&d(e.body&&e.body.statements,t))}function Sce(e,t){if(e.externalModuleIndicator||void 0!==e.imports)for(const n of e.imports)t(vg(n),n);else kce(e,e=>{switch(e.kind){case 279:case 273:{const n=e;n.moduleSpecifier&&UN(n.moduleSpecifier)&&t(n,n.moduleSpecifier);break}case 272:{const n=e;Fce(n)&&t(n,n.moduleReference.expression);break}}})}function Tce(e,t,n,r){return r?i():i()||function(){if(!function(e){const{parent:t}=e;switch(t.kind){case 272:return t.name===e&&Fce(t);case 277:return!t.propertyName;case 274:case 275:return un.assert(t.name===e),!0;case 209:return Em(e)&&Mm(t.parent.parent);default:return!1}}(e))return;let r=n.getImmediateAliasedSymbol(t);if(!r)return;if(r=function(e,t){if(e.declarations)for(const n of e.declarations){if(LE(n)&&!n.propertyName&&!n.parent.parent.moduleSpecifier)return t.getExportSpecifierLocalTargetSymbol(n)||e;if(dF(n)&&eg(n.expression)&&!sD(n.name))return t.getSymbolAtLocation(n);if(iP(n)&&NF(n.parent.parent)&&2===tg(n.parent.parent))return t.getExportSpecifierLocalTargetSymbol(n.name)}return e}(r,n),"export="===r.escapedName&&(r=function(e,t){var n,r;if(2097152&e.flags)return t.getImmediateAliasedSymbol(e);const i=un.checkDefined(e.valueDeclaration);return AE(i)?null==(n=tt(i.expression,au))?void 0:n.symbol:NF(i)?null==(r=tt(i.right,au))?void 0:r.symbol:sP(i)?i.symbol:void 0}(r,n),void 0===r))return;const i=iY(r);return void 0===i||"default"===i||i===t.escapedName?{kind:0,symbol:r}:void 0}();function i(){var i;const{parent:s}=e,c=s.parent;if(t.exportSymbol)return 212===s.kind?(null==(i=t.declarations)?void 0:i.some(e=>e===s))&&NF(c)?_(c,!1):void 0:o(t.exportSymbol,a(s));{const i=function(e,t){const n=lE(e)?e:lF(e)?nc(e):void 0;return n?e.name!==t||nP(n.parent)?void 0:WF(n.parent.parent)?n.parent.parent:void 0:e}(s,e);if(i&&Nv(i,32)){if(bE(i)&&i.moduleReference===e){if(r)return;return{kind:0,symbol:n.getSymbolAtLocation(i.name)}}return o(t,a(i))}if(FE(s))return o(t,0);if(AE(s))return l(s);if(AE(c))return l(c);if(NF(s))return _(s,!0);if(NF(c))return _(c,!0);if(VP(s)||FP(s))return o(t,0)}function l(e){if(!e.symbol.parent)return;const n=e.isExportEquals?2:1;return{kind:1,symbol:t,exportInfo:{exportingModuleSymbol:e.symbol.parent,exportKind:n}}}function _(e,r){let i;switch(tg(e)){case 1:i=0;break;case 2:i=2;break;default:return}const a=r?n.getSymbolAtLocation(Tx(nt(e.left,Sx))):t;return a&&o(a,i)}}function o(e,t){const r=Cce(e,t,n);return r&&{kind:1,symbol:e,exportInfo:r}}function a(e){return Nv(e,2048)?1:0}}function Cce(e,t,n){const r=e.parent;if(!r)return;const i=n.getMergedSymbol(r);return Qu(i)?{exportingModuleSymbol:i,exportKind:t}:void 0}function wce(e,t){return t.getMergedSymbol(Nce(e).symbol)}function Nce(e){if(214===e.kind||352===e.kind)return e.getSourceFile();const{parent:t}=e;return 308===t.kind?t:(un.assert(269===t.kind),nt(t.parent,Dce))}function Dce(e){return 268===e.kind&&11===e.name.kind}function Fce(e){return 284===e.moduleReference.kind&&11===e.moduleReference.expression.kind}var Ece=(e=>(e[e.Symbol=0]="Symbol",e[e.Label=1]="Label",e[e.Keyword=2]="Keyword",e[e.This=3]="This",e[e.String=4]="String",e[e.TripleSlashReference=5]="TripleSlashReference",e))(Ece||{}),Pce=(e=>(e[e.Span=0]="Span",e[e.Node=1]="Node",e[e.StringLiteral=2]="StringLiteral",e[e.SearchedLocalFoundProperty=3]="SearchedLocalFoundProperty",e[e.SearchedPropertyFoundLocal=4]="SearchedPropertyFoundLocal",e))(Pce||{});function Ace(e,t=1){return{kind:t,node:e.name||e,context:Oce(e)}}function Ice(e){return e&&void 0===e.kind}function Oce(e){if(_u(e))return Lce(e);if(e.parent){if(!_u(e.parent)&&!AE(e.parent)){if(Em(e)){const t=NF(e.parent)?e.parent:Sx(e.parent)&&NF(e.parent.parent)&&e.parent.parent.left===e.parent?e.parent.parent:void 0;if(t&&0!==tg(t))return Lce(t)}if(UE(e.parent)||VE(e.parent))return e.parent.parent;if(qE(e.parent)||oE(e.parent)||Cl(e.parent))return e.parent;if(ju(e)){const t=bg(e);if(t){const e=uc(t,e=>_u(e)||pu(e)||Cu(e));return _u(e)?Lce(e):e}}const t=uc(e,kD);return t?Lce(t.parent):void 0}return e.parent.name===e||PD(e.parent)||AE(e.parent)||(Rl(e.parent)||lF(e.parent))&&e.parent.propertyName===e||90===e.kind&&Nv(e.parent,2080)?Lce(e.parent):void 0}}function Lce(e){if(e)switch(e.kind){case 261:return _E(e.parent)&&1===e.parent.declarations.length?WF(e.parent.parent)?e.parent.parent:Q_(e.parent.parent)?Lce(e.parent.parent):e.parent:e;case 209:return Lce(e.parent.parent);case 277:return e.parent.parent.parent;case 282:case 275:return e.parent.parent;case 274:case 281:return e.parent;case 227:return HF(e.parent)?e.parent:e;case 251:case 250:return{start:e.initializer,end:e.expression};case 304:case 305:return TQ(e.parent)?Lce(uc(e.parent,e=>NF(e)||Q_(e))):e;case 256:return{start:b(e.getChildren(e.getSourceFile()),e=>109===e.kind),end:e.caseBlock};default:return e}}function jce(e,t,n){if(!n)return;const r=Ice(n)?Zce(n.start,t,n.end):Zce(n,t);return r.start!==e.start||r.length!==e.length?{contextSpan:r}:void 0}var Mce,Rce=(e=>(e[e.Other=0]="Other",e[e.References=1]="References",e[e.Rename=2]="Rename",e))(Rce||{});function Bce(e,t,n,r,i){const o=WX(r,i),a={use:1},s=Mce.getReferencedSymbolsForNode(i,o,e,n,t,a),c=e.getTypeChecker(),l=Mce.getAdjustedNode(o,a),_=function(e){return 90===e.kind||!!_h(e)||uh(e)||137===e.kind&&PD(e.parent)}(l)?c.getSymbolAtLocation(l):void 0;return s&&s.length?B(s,({definition:e,references:n})=>e&&{definition:c.runWithCancellationToken(t,t=>function(e,t,n){const r=(()=>{switch(e.type){case 0:{const{symbol:r}=e,{displayParts:i,kind:o}=$ce(r,t,n),a=i.map(e=>e.text).join(""),s=r.declarations&&fe(r.declarations);return{...Wce(s?Cc(s)||s:n),name:a,kind:o,displayParts:i,context:Lce(s)}}case 1:{const{node:t}=e;return{...Wce(t),name:t.text,kind:"label",displayParts:[SY(t.text,17)]}}case 2:{const{node:t}=e,n=Fa(t.kind);return{...Wce(t),name:n,kind:"keyword",displayParts:[{text:n,kind:"keyword"}]}}case 3:{const{node:n}=e,r=t.getSymbolAtLocation(n),i=r&&Nue.getSymbolDisplayPartsDocumentationAndSymbolKind(t,r,n.getSourceFile(),hX(n),n).displayParts||[PY("this")];return{...Wce(n),name:"this",kind:"var",displayParts:i}}case 4:{const{node:t}=e;return{...Wce(t),name:t.text,kind:"var",displayParts:[SY(Xd(t),8)]}}case 5:return{textSpan:AQ(e.reference),sourceFile:e.file,name:e.reference.fileName,kind:"string",displayParts:[SY(`"${e.reference.fileName}"`,8)]};default:return un.assertNever(e)}})(),{sourceFile:i,textSpan:o,name:a,kind:s,displayParts:c,context:l}=r;return{containerKind:"",containerName:"",fileName:i.fileName,kind:s,name:a,textSpan:o,displayParts:c,...jce(o,i,l)}}(e,t,o)),references:n.map(e=>function(e,t){const n=Kce(e);return t?{...n,isDefinition:0!==e.kind&&nle(e.node,t)}:n}(e,_))}):void 0}function Jce(e,t,n,r,i){const o=WX(r,i);let a;const s=zce(e,t,n,o,i);if(212===o.parent.kind||209===o.parent.kind||213===o.parent.kind||108===o.kind)a=s&&[...s];else if(s){const r=Ge(s),i=new Set;for(;!r.isEmpty();){const o=r.dequeue();if(!bx(i,ZB(o.node)))continue;a=ie(a,o);const s=zce(e,t,n,o.node,o.node.pos);s&&r.enqueue(...s)}}const c=e.getTypeChecker();return E(a,e=>function(e,t){const n=Gce(e);if(0!==e.kind){const{node:r}=e;return{...n,...Qce(r,t)}}return{...n,kind:"",displayParts:[]}}(e,c))}function zce(e,t,n,r,i){if(308===r.kind)return;const o=e.getTypeChecker();if(305===r.parent.kind){const e=[];return Mce.getReferenceEntriesForShorthandPropertyAssignment(r,o,t=>e.push(Ace(t))),e}if(108===r.kind||am(r.parent)){const e=o.getSymbolAtLocation(r);return e.valueDeclaration&&[Ace(e.valueDeclaration)]}return Uce(i,r,e,n,t,{implementations:!0,use:1})}function qce(e,t,n,r,i,o,a){return E(Vce(Mce.getReferencedSymbolsForNode(i,r,e,n,t,o)),t=>a(t,r,e.getTypeChecker()))}function Uce(e,t,n,r,i,o={},a=new Set(r.map(e=>e.fileName))){return Vce(Mce.getReferencedSymbolsForNode(e,t,n,r,i,o,a))}function Vce(e){return e&&O(e,e=>e.references)}function Wce(e){const t=e.getSourceFile();return{sourceFile:t,textSpan:Zce(kD(e)?e.expression:e,t)}}function $ce(e,t,n){const r=Mce.getIntersectingMeaningFromDeclarations(n,e),i=e.declarations&&fe(e.declarations)||n,{displayParts:o,symbolKind:a}=Nue.getSymbolDisplayPartsDocumentationAndSymbolKind(t,e,i.getSourceFile(),i,i,r);return{displayParts:o,kind:a}}function Hce(e,t,n,r,i){return{...Gce(e),...r&&Xce(e,t,n,i)}}function Kce(e){const t=Gce(e);if(0===e.kind)return{...t,isWriteAccess:!1};const{kind:n,node:r}=e;return{...t,isWriteAccess:tle(r),isInString:2===n||void 0}}function Gce(e){if(0===e.kind)return{textSpan:e.textSpan,fileName:e.fileName};{const t=e.node.getSourceFile(),n=Zce(e.node,t);return{textSpan:n,fileName:t.fileName,...jce(n,t,e.context)}}}function Xce(e,t,n,r){if(0!==e.kind&&(aD(t)||ju(t))){const{node:r,kind:i}=e,o=r.parent,a=t.text,s=iP(o);if(s||aY(o)&&o.name===r&&void 0===o.dotDotDotToken){const e={prefixText:a+": "},t={suffixText:": "+a};if(3===i)return e;if(4===i)return t;if(s){const n=o.parent;return uF(n)&&NF(n.parent)&&eg(n.parent.left)?e:t}return e}if(PE(o)&&!o.propertyName)return T((LE(t.parent)?n.getExportSpecifierLocalTargetSymbol(t.parent):n.getSymbolAtLocation(t)).declarations,o)?{prefixText:a+" as "}:kG;if(LE(o)&&!o.propertyName)return t===e.node||n.getSymbolAtLocation(t)===n.getSymbolAtLocation(e.node)?{prefixText:a+" as "}:{suffixText:" as "+a}}if(0!==e.kind&&zN(e.node)&&Sx(e.node.parent)){const e=nY(r);return{prefixText:e,suffixText:e}}return kG}function Qce(e,t){const n=t.getSymbolAtLocation(_u(e)&&e.name?e.name:e);return n?$ce(n,t,e):211===e.kind?{kind:"interface",displayParts:[wY(21),PY("object literal"),wY(22)]}:232===e.kind?{kind:"local class",displayParts:[wY(21),PY("anonymous local class"),wY(22)]}:{kind:yX(e),displayParts:[]}}function Yce(e){const t=Gce(e);if(0===e.kind)return{fileName:t.fileName,span:{textSpan:t.textSpan,kind:"reference"}};const n=tle(e.node),r={textSpan:t.textSpan,kind:n?"writtenReference":"reference",isInString:2===e.kind||void 0,...t.contextSpan&&{contextSpan:t.contextSpan}};return{fileName:t.fileName,span:r}}function Zce(e,t,n){let r=e.getStart(t),i=(n||e).getEnd();return ju(e)&&i-r>2&&(un.assert(void 0===n),r+=1,i-=1),270===(null==n?void 0:n.kind)&&(i=n.getFullStart()),$s(r,i)}function ele(e){return 0===e.kind?e.textSpan:Zce(e.node,e.node.getSourceFile())}function tle(e){const t=_h(e);return!!t&&function(e){if(33554432&e.flags)return!0;switch(e.kind){case 227:case 209:case 264:case 232:case 90:case 267:case 307:case 282:case 274:case 272:case 277:case 265:case 339:case 347:case 292:case 268:case 271:case 275:case 281:case 170:case 305:case 266:case 169:return!0;case 304:return!TQ(e.parent);case 263:case 219:case 177:case 175:case 178:case 179:return!!e.body;case 261:case 173:return!!e.initializer||nP(e.parent);case 174:case 172:case 349:case 342:return!1;default:return un.failBadSyntaxKind(e)}}(t)||90===e.kind||cx(e)}function nle(e,t){var n;if(!t)return!1;const r=_h(e)||(90===e.kind?e.parent:uh(e)||137===e.kind&&PD(e.parent)?e.parent.parent:void 0),i=r&&NF(r)?r.left:void 0;return!(!r||!(null==(n=t.declarations)?void 0:n.some(e=>e===r||e===i)))}(e=>{function t(e,t){return 1===t.use?e=UX(e):2===t.use&&(e=VX(e)),e}function n(e,t,n){let r;const i=t.get(e.path)||l;for(const e of i)if(NV(e)){const t=n.getSourceFileByPath(e.file),i=FV(n,e);DV(i)&&(r=ie(r,{kind:0,fileName:t.fileName,textSpan:AQ(i)}))}return r}function r(e,t,n){if(e.parent&&vE(e.parent)){const e=n.getAliasedSymbol(t),r=n.getMergedSymbol(e);if(e!==r)return r}}function i(e,t,n,r,i,a){const c=1536&e.flags&&e.declarations&&b(e.declarations,sP);if(!c)return;const l=e.exports.get("export="),u=s(t,e,!!l,n,a);if(!l||!a.has(c.fileName))return u;const d=t.getTypeChecker();return o(t,u,_(e=ox(l,d),void 0,n,a,d,r,i))}function o(e,...t){let n;for(const r of t)if(r&&r.length)if(n)for(const t of r){if(!t.definition||0!==t.definition.type){n.push(t);continue}const r=t.definition.symbol,i=k(n,e=>!!e.definition&&0===e.definition.type&&e.definition.symbol===r);if(-1===i){n.push(t);continue}const o=n[i];n[i]={definition:o.definition,references:o.references.concat(t.references).sort((t,n)=>{const r=a(e,t),i=a(e,n);if(r!==i)return vt(r,i);const o=ele(t),s=ele(n);return o.start!==s.start?vt(o.start,s.start):vt(o.length,s.length)})}}else n=r;return n}function a(e,t){const n=0===t.kind?e.getSourceFile(t.fileName):t.node.getSourceFile();return e.getSourceFiles().indexOf(n)}function s(e,t,n,r,i){un.assert(!!t.valueDeclaration);const o=B(xce(e,r,t),e=>{if("import"===e.kind){const t=e.literal.parent;if(rF(t)){const e=nt(t.parent,iF);if(n&&!e.qualifier)return}return Ace(e.literal)}return"implicit"===e.kind?Ace(e.literal.text!==Uu&&QI(e.referencingFile,e=>2&e.transformFlags?zE(e)||qE(e)||WE(e)?e:void 0:"skip")||e.referencingFile.statements[0]||e.referencingFile):{kind:0,fileName:e.referencingFile.fileName,textSpan:AQ(e.ref)}});if(t.declarations)for(const e of t.declarations)switch(e.kind){case 308:break;case 268:i.has(e.getSourceFile().fileName)&&o.push(Ace(e.name));break;default:un.assert(!!(33554432&t.flags),"Expected a module symbol to be declared by a SourceFile or ModuleDeclaration.")}const a=t.exports.get("export=");if(null==a?void 0:a.declarations)for(const e of a.declarations){const t=e.getSourceFile();if(i.has(t.fileName)){const n=NF(e)&&dF(e.left)?e.left.expression:AE(e)?un.checkDefined(OX(e,95,t)):Cc(e)||e;o.push(Ace(n))}}return o.length?[{definition:{type:0,symbol:t},references:o}]:l}function c(e){return 148===e.kind&&eF(e.parent)&&148===e.parent.operator}function _(e,t,n,r,i,o,a){const s=t&&function(e,t,n,r){const{parent:i}=t;return LE(i)&&r?M(t,e,i,n):f(e.declarations,r=>{if(!r.parent){if(33554432&e.flags)return;un.fail(`Unexpected symbol at ${un.formatSyntaxKind(t.kind)}: ${un.formatSymbol(e)}`)}return qD(r.parent)&&KD(r.parent.parent)?n.getPropertyOfType(n.getTypeFromTypeNode(r.parent.parent),e.name):void 0})}(e,t,i,!Z(a))||e,c=t&&2!==a.use?X(t,s):7,l=[],_=new y(n,r,t?function(e){switch(e.kind){case 177:case 137:return 1;case 80:if(u_(e.parent))return un.assert(e.parent.name===e),2;default:return 0}}(t):0,i,o,c,a,l),u=Z(a)&&s.declarations?b(s.declarations,LE):void 0;if(u)j(u.name,s,u,_.createSearch(t,e,void 0),_,!0,!0);else if(t&&90===t.kind&&"default"===s.escapedName&&s.parent)R(t,s,_),v(t,s,{exportingModuleSymbol:s.parent,exportKind:1},_);else{const e=_.createSearch(t,s,void 0,{allSearchSymbols:t?H(s,t,i,2===a.use,!!a.providePrefixAndSuffixTextForRename,!!a.implementations):[s]});p(s,_,e)}return l}function p(e,t,n){const r=function(e){const{declarations:t,flags:n,parent:r,valueDeclaration:i}=e;if(i&&(219===i.kind||232===i.kind))return i;if(!t)return;if(8196&n){const e=b(t,e=>wv(e,2)||Kl(e));return e?Th(e,264):void 0}if(t.some(aY))return;const o=r&&!(262144&e.flags);if(o&&(!Qu(r)||r.globalExports))return;let a;for(const e of t){const t=hX(e);if(a&&a!==t)return;if(!t||308===t.kind&&!Zp(t))return;if(a=t,vF(a)){let e;for(;e=Rg(a);)a=e}}return o?a.getSourceFile():a}(e);if(r)A(r,r.getSourceFile(),n,t,!(sP(r)&&!T(t.sourceFiles,r)));else for(const e of t.sourceFiles)t.cancellationToken.throwIfCancellationRequested(),C(e,n,t)}let m;var g;function h(e){if(!(33555968&e.flags))return;const t=e.declarations&&b(e.declarations,e=>!sP(e)&&!gE(e));return t&&t.symbol}e.getReferencedSymbolsForNode=function(e,a,u,d,p,m={},g=new Set(d.map(e=>e.fileName))){var h,y;if(sP(a=t(a,m))){const t=rle.getReferenceAtPosition(a,e,u);if(!(null==t?void 0:t.file))return;const r=u.getTypeChecker().getMergedSymbol(t.file.symbol);if(r)return s(u,r,!1,d,g);const i=u.getFileIncludeReasons();if(!i)return;return[{definition:{type:5,reference:t.reference,file:a},references:n(t.file,i,u)||l}]}if(!m.implementations){const e=function(e,t,n){if(MQ(e.kind)){if(116===e.kind&&SF(e.parent))return;if(148===e.kind&&!c(e))return;return function(e,t,n,r){const i=O(e,e=>(n.throwIfCancellationRequested(),B(D(e,Fa(t),e),e=>{if(e.kind===t&&(!r||r(e)))return Ace(e)})));return i.length?[{definition:{type:2,node:i[0].node},references:i}]:void 0}(t,e.kind,n,148===e.kind?c:void 0)}if(uf(e.parent)&&e.parent.name===e)return function(e,t){const n=O(e,e=>(t.throwIfCancellationRequested(),B(D(e,"meta",e),e=>{const t=e.parent;if(uf(t))return Ace(t)})));return n.length?[{definition:{type:2,node:n[0].node},references:n}]:void 0}(t,n);if(fD(e)&&ED(e.parent))return[{definition:{type:2,node:e},references:[Ace(e)]}];if(aX(e)){const t=iX(e.parent,e.text);return t&&E(t.parent,t)}return sX(e)?E(e.parent,e):vX(e)?function(e,t,n){let r=em(e,!1,!1),i=256;switch(r.kind){case 175:case 174:if(Jf(r)){i&=zv(r),r=r.parent;break}case 173:case 172:case 177:case 178:case 179:i&=zv(r),r=r.parent;break;case 308:if(rO(r)||W(e))return;case 263:case 219:break;default:return}const o=O(308===r.kind?t:[r.getSourceFile()],e=>(n.throwIfCancellationRequested(),D(e,"this",sP(r)?e:r).filter(e=>{if(!vX(e))return!1;const t=em(e,!1,!1);if(!au(t))return!1;switch(r.kind){case 219:case 263:return r.symbol===t.symbol;case 175:case 174:return Jf(r)&&r.symbol===t.symbol;case 232:case 264:case 211:return t.parent&&au(t.parent)&&r.symbol===t.parent.symbol&&Dv(t)===!!i;case 308:return 308===t.kind&&!rO(t)&&!W(e)}}))).map(e=>Ace(e));return[{definition:{type:3,node:f(o,e=>TD(e.node.parent)?e.node:void 0)||e},references:o}]}(e,t,n):108===e.kind?function(e){let t=im(e,!1);if(!t)return;let n=256;switch(t.kind){case 173:case 172:case 175:case 174:case 177:case 178:case 179:n&=zv(t),t=t.parent;break;default:return}const r=B(D(t.getSourceFile(),"super",t),e=>{if(108!==e.kind)return;const r=im(e,!1);return r&&Dv(r)===!!n&&r.parent.symbol===t.symbol?Ace(e):void 0});return[{definition:{type:0,symbol:t.symbol},references:r}]}(e):void 0}(a,d,p);if(e)return e}const v=u.getTypeChecker(),b=v.getSymbolAtLocation(PD(a)&&a.parent.name||a);if(!b){if(!m.implementations&&ju(a)){if(oY(a)){const e=u.getFileIncludeReasons(),t=null==(y=null==(h=u.getResolvedModuleFromModuleSpecifier(a))?void 0:h.resolvedModule)?void 0:y.resolvedFileName,r=t?u.getSourceFile(t):void 0;if(r)return[{definition:{type:4,node:a},references:n(r,e,u)||l}]}return function(e,t,n,r){const i=BX(e,n),o=O(t,t=>(r.throwIfCancellationRequested(),B(D(t,e.text),r=>{if(ju(r)&&r.text===e.text){if(!i)return $N(r)&&!Rb(r,t)?void 0:Ace(r,2);{const e=BX(r,n);if(i!==n.getStringType()&&(i===e||function(e,t){if(wD(e.parent))return t.getPropertyOfType(t.getTypeAtLocation(e.parent.parent),e.text)}(r,n)))return Ace(r,2)}}})));return[{definition:{type:4,node:e},references:o}]}(a,d,v,p)}return}if("export="===b.escapedName)return s(u,b.parent,!1,d,g);const x=i(b,u,d,p,m,g);if(x&&!(33554432&b.flags))return x;const k=r(a,b,v),S=k&&i(k,u,d,p,m,g);return o(u,x,_(b,a,d,g,v,p,m),S)},e.getAdjustedNode=t,e.getReferencesForFileName=function(e,t,r,i=new Set(r.map(e=>e.fileName))){var o,a;const c=null==(o=t.getSourceFile(e))?void 0:o.symbol;if(c)return(null==(a=s(t,c,!1,r,i)[0])?void 0:a.references)||l;const _=t.getFileIncludeReasons(),u=t.getSourceFile(e);return u&&_&&n(u,_,t)||l},(g=m||(m={}))[g.None=0]="None",g[g.Constructor=1]="Constructor",g[g.Class=2]="Class";class y{constructor(e,t,n,r,i,o,a,s){this.sourceFiles=e,this.sourceFilesSet=t,this.specialSearchKind=n,this.checker=r,this.cancellationToken=i,this.searchMeaning=o,this.options=a,this.result=s,this.inheritsFromCache=new Map,this.markSeenContainingTypeReference=JQ(),this.markSeenReExportRHS=JQ(),this.symbolIdToReferences=[],this.sourceFileToSeenSymbols=[]}includesSourceFile(e){return this.sourceFilesSet.has(e.fileName)}getImportSearches(e,t){return this.importTracker||(this.importTracker=hce(this.sourceFiles,this.sourceFilesSet,this.checker,this.cancellationToken)),this.importTracker(e,t,2===this.options.use)}createSearch(e,t,n,r={}){const{text:i=Fy(yc(vb(t)||h(t)||t)),allSearchSymbols:o=[t]}=r,a=fc(i),s=this.options.implementations&&e?function(e,t,n){const r=uX(e)?e.parent:void 0,i=r&&n.getTypeAtLocation(r.expression),o=B(i&&(i.isUnionOrIntersection()?i.types:i.symbol===t.parent?void 0:[i]),e=>e.symbol&&96&e.symbol.flags?e.symbol:void 0);return 0===o.length?void 0:o}(e,t,this.checker):void 0;return{symbol:t,comingFrom:n,text:i,escapedText:a,parents:s,allSearchSymbols:o,includes:e=>T(o,e)}}referenceAdder(e){const t=eJ(e);let n=this.symbolIdToReferences[t];return n||(n=this.symbolIdToReferences[t]=[],this.result.push({definition:{type:0,symbol:e},references:n})),(e,t)=>n.push(Ace(e,t))}addStringOrCommentReference(e,t){this.result.push({definition:void 0,references:[{kind:0,fileName:e,textSpan:t}]})}markSearchedSymbols(e,t){const n=ZB(e),r=this.sourceFileToSeenSymbols[n]||(this.sourceFileToSeenSymbols[n]=new Set);let i=!1;for(const e of t)i=q(r,eJ(e))||i;return i}}function v(e,t,n,r){const{importSearches:i,singleReferences:o,indirectUsers:a}=r.getImportSearches(t,n);if(o.length){const e=r.referenceAdder(t);for(const t of o)x(t,r)&&e(t)}for(const[e,t]of i)P(e.getSourceFile(),r.createSearch(e,t,1),r);if(a.length){let i;switch(n.exportKind){case 0:i=r.createSearch(e,t,1);break;case 1:i=2===r.options.use?void 0:r.createSearch(e,t,1,{text:"default"})}if(i)for(const e of a)C(e,i,r)}}function x(e,t){return!(!I(e,t)||2===t.options.use&&(!aD(e)&&!Rl(e.parent)||Rl(e.parent)&&Kd(e)))}function S(e,t){if(e.declarations)for(const n of e.declarations){const r=n.getSourceFile();P(r,t.createSearch(n,e,0),t,t.includesSourceFile(r))}}function C(e,t,n){void 0!==Q8(e).get(t.escapedText)&&P(e,t,n)}function w(e,t,n,r,i=n){const o=Zs(e.parent,e.parent.parent)?ge(t.getSymbolsOfParameterPropertyDeclaration(e.parent,e.text)):t.getSymbolAtLocation(e);if(o)for(const a of D(n,o.name,i)){if(!aD(a)||a===e||a.escapedText!==e.escapedText)continue;const n=t.getSymbolAtLocation(a);if(n===o||t.getShorthandAssignmentValueSymbol(a.parent)===o||LE(a.parent)&&M(a,n,a.parent,t)===o){const e=r(a);if(e)return e}}}function D(e,t,n=e){return B(F(e,t,n),t=>{const n=WX(e,t);return n===e?void 0:n})}function F(e,t,n=e){const r=[];if(!t||!t.length)return r;const i=e.text,o=i.length,a=t.length;let s=i.indexOf(t,n.pos);for(;s>=0&&!(s>n.end);){const e=s+a;0!==s&&fs(i.charCodeAt(s-1),99)||e!==o&&fs(i.charCodeAt(e),99)||r.push(s),s=i.indexOf(t,s+a+1)}return r}function E(e,t){const n=e.getSourceFile(),r=t.text,i=B(D(n,r,e),e=>e===t||aX(e)&&iX(e,r)===t?Ace(e):void 0);return[{definition:{type:1,node:t},references:i}]}function P(e,t,n,r=!0){return n.cancellationToken.throwIfCancellationRequested(),A(e,e,t,n,r)}function A(e,t,n,r,i){if(r.markSearchedSymbols(t,n.allSearchSymbols))for(const o of F(t,n.text,e))L(t,o,n,r,i)}function I(e,t){return!!(WG(e)&t.searchMeaning)}function L(e,t,n,r,i){const o=WX(e,t);if(!function(e,t){switch(e.kind){case 81:if(uP(e.parent))return!0;case 80:return e.text.length===t.length;case 15:case 11:{const n=e;return n.text.length===t.length&&(mX(n)||pX(e)||gX(e)||fF(e.parent)&&ng(e.parent)&&e.parent.arguments[1]===e||Rl(e.parent))}case 9:return mX(e)&&e.text.length===t.length;case 90:return 7===t.length;default:return!1}}(o,n.text))return void(!r.options.implementations&&(r.options.findInStrings&&nQ(e,t)||r.options.findInComments&&wQ(e,t))&&r.addStringOrCommentReference(e.fileName,Ws(t,n.text.length)));if(!I(o,r))return;let a=r.checker.getSymbolAtLocation(o);if(!a)return;const s=o.parent;if(PE(s)&&s.propertyName===o)return;if(LE(s))return un.assert(80===o.kind||11===o.kind),void j(o,a,s,n,r,i);if(Nl(s)&&s.isNameFirst&&s.typeExpression&&TP(s.typeExpression.type)&&s.typeExpression.type.jsDocPropertyTags&&u(s.typeExpression.type.jsDocPropertyTags))return void function(e,t,n,r){const i=r.referenceAdder(n.symbol);R(t,n.symbol,r),d(e,e=>{xD(e.name)&&i(e.name.left)})}(s.typeExpression.type.jsDocPropertyTags,o,n,r);const c=function(e,t,n,r){const{checker:i}=r;return K(t,n,i,!1,2!==r.options.use||!!r.options.providePrefixAndSuffixTextForRename,(n,r,i,o)=>(i&&G(t)!==G(i)&&(i=void 0),e.includes(i||r||n)?{symbol:!r||6&rx(n)?n:r,kind:o}:void 0),t=>!(e.parents&&!e.parents.some(e=>V(t.parent,e,r.inheritsFromCache,i))))}(n,a,o,r);if(c){switch(r.specialSearchKind){case 0:i&&R(o,c,r);break;case 1:!function(e,t,n,r){KG(e)&&R(e,n.symbol,r);const i=()=>r.referenceAdder(n.symbol);if(u_(e.parent))un.assert(90===e.kind||e.parent.name===e),function(e,t,n){const r=J(e);if(r&&r.declarations)for(const e of r.declarations){const r=OX(e,137,t);un.assert(177===e.kind&&!!r),n(r)}e.exports&&e.exports.forEach(e=>{const t=e.valueDeclaration;if(t&&175===t.kind){const e=t.body;e&&Y(e,110,e=>{KG(e)&&n(e)})}})}(n.symbol,t,i());else{const t=tb(rX(e).parent);t&&(function(e,t){const n=J(e.symbol);if(n&&n.declarations)for(const e of n.declarations){un.assert(177===e.kind);const n=e.body;n&&Y(n,108,e=>{HG(e)&&t(e)})}}(t,i()),function(e,t){if(function(e){return!!J(e.symbol)}(e))return;const n=e.symbol,r=t.createSearch(void 0,n,void 0);p(n,t,r)}(t,r))}}(o,e,n,r);break;case 2:!function(e,t,n){R(e,t.symbol,n);const r=e.parent;if(2===n.options.use||!u_(r))return;un.assert(r.name===e);const i=n.referenceAdder(t.symbol);for(const e of r.members)m_(e)&&Dv(e)&&e.body&&e.body.forEachChild(function e(t){110===t.kind?i(t):r_(t)||u_(t)||t.forEachChild(e)})}(o,n,r);break;default:un.assertNever(r.specialSearchKind)}Em(o)&&lF(o.parent)&&Mm(o.parent.parent.parent)&&(a=o.parent.symbol,!a)||function(e,t,n,r){const i=Tce(e,t,r.checker,1===n.comingFrom);if(!i)return;const{symbol:o}=i;0===i.kind?Z(r.options)||S(o,r):v(e,o,i.exportInfo,r)}(o,a,n,r)}else!function({flags:e,valueDeclaration:t},n,r){const i=r.checker.getShorthandAssignmentValueSymbol(t),o=t&&Cc(t);33554432&e||!o||!n.includes(i)||R(o,i,r)}(a,n,r)}function j(e,t,n,r,i,o,a){un.assert(!a||!!i.options.providePrefixAndSuffixTextForRename,"If alwaysGetReferences is true, then prefix/suffix text must be enabled");const{parent:s,propertyName:c,name:l}=n,_=s.parent,u=M(e,t,n,i.checker);if(a||r.includes(u)){if(c?e===c?(_.moduleSpecifier||d(),o&&2!==i.options.use&&i.markSeenReExportRHS(l)&&R(l,un.checkDefined(n.symbol),i)):i.markSeenReExportRHS(e)&&d():2===i.options.use&&Kd(l)||d(),!Z(i.options)||a){const t=Kd(e)||Kd(n.name)?1:0,r=un.checkDefined(n.symbol),o=Cce(r,t,i.checker);o&&v(e,r,o,i)}if(1!==r.comingFrom&&_.moduleSpecifier&&!c&&!Z(i.options)){const e=i.checker.getExportSpecifierLocalTargetSymbol(n);e&&S(e,i)}}function d(){o&&R(e,u,i)}}function M(e,t,n,r){return function(e,t){const{parent:n,propertyName:r,name:i}=t;return un.assert(r===e||i===e),r?r===e:!n.parent.moduleSpecifier}(e,n)&&r.getExportSpecifierLocalTargetSymbol(n)||t}function R(e,t,n){const{kind:r,symbol:i}="kind"in t?t:{kind:void 0,symbol:t};if(2===n.options.use&&90===e.kind)return;const o=n.referenceAdder(i);n.options.implementations?function(e,t,n){if(lh(e)&&(33554432&(r=e.parent).flags?!pE(r)&&!fE(r):Af(r)?Eu(r):o_(r)?r.body:u_(r)||ou(r)))return void t(e);var r;if(80!==e.kind)return;305===e.parent.kind&&Q(e,n.checker,t);const i=z(e);if(i)return void t(i);const o=uc(e,e=>!xD(e.parent)&&!b_(e.parent)&&!h_(e.parent)),a=o.parent;if(Fu(a)&&a.type===o&&n.markSeenContainingTypeReference(a))if(Eu(a))s(a.initializer);else if(r_(a)&&a.body){const e=a.body;242===e.kind?Df(e,e=>{e.expression&&s(e.expression)}):s(e)}else(W_(a)||jF(a))&&s(a.expression);function s(e){U(e)&&t(e)}}(e,o,n):o(e,r)}function J(e){return e.members&&e.members.get("__constructor")}function z(e){return aD(e)||dF(e)?z(e.parent):OF(e)?tt(e.parent.parent,en(u_,pE)):void 0}function U(e){switch(e.kind){case 218:return U(e.expression);case 220:case 219:case 211:case 232:case 210:return!0;default:return!1}}function V(e,t,n,r){if(e===t)return!0;const i=eJ(e)+","+eJ(t),o=n.get(i);if(void 0!==o)return o;n.set(i,!1);const a=!!e.declarations&&e.declarations.some(e=>xh(e).some(e=>{const i=r.getTypeAtLocation(e);return!!i&&!!i.symbol&&V(i.symbol,t,n,r)}));return n.set(i,a),a}function W(e){return 80===e.kind&&170===e.parent.kind&&e.parent.name===e}function H(e,t,n,r,i,o){const a=[];return K(e,t,n,r,!(r&&i),(t,n,r)=>{r&&G(e)!==G(r)&&(r=void 0),a.push(r||n||t)},()=>!o),a}function K(e,t,n,i,o,a,s){const c=Y8(t);if(c){const e=n.getShorthandAssignmentValueSymbol(t.parent);if(e&&i)return a(e,void 0,void 0,3);const r=n.getContextualType(c.parent),o=r&&f(Z8(c,n,r,!0),e=>d(e,4));if(o)return o;const s=function(e,t){return TQ(e.parent.parent)?t.getPropertySymbolOfDestructuringAssignment(e):void 0}(t,n),l=s&&a(s,void 0,void 0,4);if(l)return l;const _=e&&a(e,void 0,void 0,3);if(_)return _}const l=r(t,e,n);if(l){const e=a(l,void 0,void 0,1);if(e)return e}const _=d(e);if(_)return _;if(e.valueDeclaration&&Zs(e.valueDeclaration,e.valueDeclaration.parent)){const t=n.getSymbolsOfParameterPropertyDeclaration(nt(e.valueDeclaration,TD),e.name);return un.assert(2===t.length&&!!(1&t[0].flags)&&!!(4&t[1].flags)),d(1&e.flags?t[1]:t[0])}const u=Hu(e,282);if(!i||u&&!u.propertyName){const e=u&&n.getExportSpecifierLocalTargetSymbol(u);if(e){const t=a(e,void 0,void 0,1);if(t)return t}}if(!i){let r;return r=o?aY(t.parent)?sY(n,t.parent):void 0:p(e,n),r&&d(r,4)}if(un.assert(i),o){const t=p(e,n);return t&&d(t,4)}function d(e,t){return f(n.getRootSymbols(e),r=>a(e,r,void 0,t)||(r.parent&&96&r.parent.flags&&s(r)?function(e,t,n,r){const i=new Set;return function e(o){if(96&o.flags&&bx(i,o))return f(o.declarations,i=>f(xh(i),i=>{const o=n.getTypeAtLocation(i),a=o.symbol&&n.getPropertyOfType(o,t);return a&&f(n.getRootSymbols(a),r)||o.symbol&&e(o.symbol)}))}(e)}(r.parent,r.name,n,n=>a(e,r,n,t)):void 0))}function p(e,t){const n=Hu(e,209);if(n&&aY(n))return sY(t,n)}}function G(e){return!!e.valueDeclaration&&!!(256&Bv(e.valueDeclaration))}function X(e,t){let n=WG(e);const{declarations:r}=t;if(r){let e;do{e=n;for(const e of r){const t=VG(e);t&n&&(n|=t)}}while(n!==e)}return n}function Q(e,t,n){const r=t.getSymbolAtLocation(e),i=t.getShorthandAssignmentValueSymbol(r.valueDeclaration);if(i)for(const e of i.getDeclarations())1&VG(e)&&n(e)}function Y(e,t,n){XI(e,e=>{e.kind===t&&n(e),Y(e,t,n)})}function Z(e){return 2===e.use&&e.providePrefixAndSuffixTextForRename}e.eachExportReference=function(e,t,n,r,i,o,a,s){const c=hce(e,new Set(e.map(e=>e.fileName)),t,n),{importSearches:l,indirectUsers:_,singleReferences:u}=c(r,{exportKind:a?1:0,exportingModuleSymbol:i},!1);for(const[e]of l)s(e);for(const e of u)aD(e)&&iF(e.parent)&&s(e);for(const e of _)for(const n of D(e,a?"default":o)){const e=t.getSymbolAtLocation(n),i=$(null==e?void 0:e.declarations,e=>!!tt(e,AE));!aD(n)||Rl(n.parent)||e!==r&&!i||s(n)}},e.isSymbolReferencedInFile=function(e,t,n,r=n){return w(e,t,n,()=>!0,r)||!1},e.eachSymbolReferenceInFile=w,e.getTopMostDeclarationNamesInFile=function(e,t){return N(D(t,e),e=>!!_h(e)).reduce((e,t)=>{const n=function(e){let t=0;for(;e;)e=hX(e),t++;return t}(t);return $(e.declarationNames)&&n!==e.depth?ne===i)&&r(t,a))return!0}return!1},e.getIntersectingMeaningFromDeclarations=X,e.getReferenceEntriesForShorthandPropertyAssignment=Q})(Mce||(Mce={}));var rle={};function ile(e,t,n,r,i){var o;const a=ale(t,n,e),s=a&&[(c=a.reference.fileName,_=a.fileName,u=a.unverified,{fileName:_,textSpan:$s(0,0),kind:"script",name:c,containerName:void 0,containerKind:void 0,unverified:u})]||l;var c,_,u;if(null==a?void 0:a.file)return s;const p=WX(t,n);if(p===t)return;const{parent:f}=p,m=e.getTypeChecker();if(164===p.kind||aD(p)&&OP(f)&&f.tagName===p){const e=function(e,t){const n=uc(t,__);if(!n||!n.name)return;const r=uc(n,u_);if(!r)return;const i=yh(r);if(!i)return;const o=ah(i.expression),a=AF(o)?o.symbol:e.getSymbolAtLocation(o);if(!a)return;const s=Fv(n)?e.getTypeOfSymbol(a):e.getDeclaredTypeOfSymbol(a);let c;if(kD(n.name)){const t=e.getSymbolAtLocation(n.name);if(!t)return;c=Wh(t)?b(e.getPropertiesOfType(s),e=>e.escapedName===t.escapedName):e.getPropertyOfType(s,mc(t.escapedName))}else c=e.getPropertyOfType(s,mc(jp(n.name)));return c?fle(e,c,t):void 0}(m,p);if(void 0!==e||164!==p.kind)return e||l}if(aX(p)){const e=iX(p.parent,p.text);return e?[gle(m,e,"label",p.text,void 0)]:void 0}switch(p.kind){case 90:if(!eP(p.parent))break;case 84:const e=uc(p.parent,iE);if(e)return[hle(e,t)]}let g;switch(p.kind){case 107:case 135:case 127:g=o_;const e=uc(p,g);return e?[vle(m,e)]:void 0}if(fD(p)&&ED(p.parent)){const e=p.parent.parent,{symbol:t,failedAliasResolution:n}=ple(e,m,i),r=N(e.members,ED),o=t?m.symbolToString(t,e):"",a=p.getSourceFile();return E(r,e=>{let{pos:t}=jb(e);return t=Qa(a.text,t),gle(m,e,"constructor","static {}",o,!1,n,{start:t,length:6})})}let{symbol:h,failedAliasResolution:y}=ple(p,m,i),x=p;if(r&&y){const e=d([p,...(null==h?void 0:h.declarations)||l],e=>uc(e,Tp)),t=e&&yg(e);t&&(({symbol:h,failedAliasResolution:y}=ple(t,m,i)),x=t)}if(!h&&oY(x)){const n=null==(o=e.getResolvedModuleFromModuleSpecifier(x,t))?void 0:o.resolvedModule;if(n)return[{name:x.text,fileName:n.resolvedFileName,containerName:void 0,containerKind:void 0,kind:"script",textSpan:Ws(0,0),failedAliasResolution:y,isAmbient:uO(n.resolvedFileName),unverified:x!==p}]}if(Zl(p)&&(__(f)||Sc(f))&&(h=f.symbol),!h)return K(s,function(e,t){return B(t.getIndexInfosAtLocation(e),e=>e.declaration&&vle(t,e.declaration))}(p,m));if(r&&v(h.declarations,e=>e.getSourceFile().fileName===t.fileName))return;const k=function(e,t){const n=function(e){const t=uc(e,e=>!uX(e)),n=null==t?void 0:t.parent;return n&&L_(n)&&um(n)===t?n:void 0}(t),r=n&&e.getResolvedSignature(n);return tt(r&&r.declaration,e=>r_(e)&&!BD(e))}(m,p);if(k&&(!bu(p.parent)||!function(e){switch(e.kind){case 177:case 186:case 180:case 181:return!0;default:return!1}}(k))){const e=vle(m,k,y);let t=e=>e!==k;if(m.getRootSymbols(h).some(e=>function(e,t){var n;return e===t.symbol||e===t.symbol.parent||rb(t.parent)||!L_(t.parent)&&e===(null==(n=tt(t.parent,au))?void 0:n.symbol)}(e,k))){if(!PD(k))return[e];t=e=>e!==k&&(dE(e)||AF(e))}const n=fle(m,h,p,y,t)||l;return 108===p.kind?[e,...n]:[...n,e]}if(305===p.parent.kind){const e=m.getShorthandAssignmentValueSymbol(h.valueDeclaration);return K((null==e?void 0:e.declarations)?e.declarations.map(t=>mle(t,m,e,p,!1,y)):l,ole(m,p))}if(t_(p)&&lF(f)&&sF(f.parent)&&p===(f.propertyName||f.name)){const e=VQ(p),t=m.getTypeAtLocation(f.parent);return void 0===e?l:O(t.isUnion()?t.types:[t],t=>{const n=t.getProperty(e);return n&&fle(m,n,p)})}const S=ole(m,p);return K(s,S.length?S:fle(m,h,p,y))}function ole(e,t){const n=Y8(t);if(n){const r=n&&e.getContextualType(n.parent);if(r)return O(Z8(n,e,r,!1),n=>fle(e,n,t))}return l}function ale(e,t,n){var r,i;const o=ble(e.referencedFiles,t);if(o){const t=n.getSourceFileFromReference(e,o);return t&&{reference:o,fileName:t.fileName,file:t,unverified:!1}}const a=ble(e.typeReferenceDirectives,t);if(a){const t=null==(r=n.getResolvedTypeReferenceDirectiveFromTypeReferenceDirective(a,e))?void 0:r.resolvedTypeReferenceDirective,i=t&&n.getSourceFile(t.resolvedFileName);return i&&{reference:a,fileName:i.fileName,file:i,unverified:!1}}const s=ble(e.libReferenceDirectives,t);if(s){const e=n.getLibFileFromReference(s);return e&&{reference:s,fileName:e.fileName,file:e,unverified:!1}}if(e.imports.length||e.moduleAugmentations.length){const r=$X(e,t);let o;if(oY(r)&&Cs(r.text)&&(o=n.getResolvedModuleFromModuleSpecifier(r,e))){const t=null==(i=o.resolvedModule)?void 0:i.resolvedFileName,a=t||Mo(Do(e.fileName),r.text);return{file:n.getSourceFile(a),fileName:a,reference:{pos:r.getStart(),end:r.getEnd(),fileName:r.text},unverified:!t}}}}i(rle,{createDefinitionInfo:()=>mle,getDefinitionAndBoundSpan:()=>dle,getDefinitionAtPosition:()=>ile,getReferenceAtPosition:()=>ale,getTypeDefinitionAtPosition:()=>_le});var sle=new Set(["Array","ArrayLike","ReadonlyArray","Promise","PromiseLike","Iterable","IterableIterator","AsyncIterable","Set","WeakSet","ReadonlySet","Map","WeakMap","ReadonlyMap","Partial","Required","Readonly","Pick","Omit"]);function cle(e,t){if(!t.aliasSymbol)return!1;const n=t.aliasSymbol.name;if(!sle.has(n))return!1;const r=e.resolveName(n,void 0,788968,!1);return!!r&&r===t.aliasSymbol}function lle(e,t,n,r){var i,o;if(4&gx(t)&&function(e,t){const n=t.symbol.name;if(!sle.has(n))return!1;const r=e.resolveName(n,void 0,788968,!1);return!!r&&r===t.target.symbol}(e,t))return ule(e.getTypeArguments(t)[0],e,n,r);if(cle(e,t)&&t.aliasTypeArguments)return ule(t.aliasTypeArguments[0],e,n,r);if(32&gx(t)&&t.target&&cle(e,t.target)){const a=null==(o=null==(i=t.aliasSymbol)?void 0:i.declarations)?void 0:o[0];if(a&&fE(a)&&RD(a.type)&&a.type.typeArguments)return ule(e.getTypeAtLocation(a.type.typeArguments[0]),e,n,r)}return[]}function _le(e,t,n){const r=WX(t,n);if(r===t)return;if(uf(r.parent)&&r.parent.name===r)return ule(e.getTypeAtLocation(r.parent),e,r.parent,!1);let{symbol:i,failedAliasResolution:o}=ple(r,e,!1);if(Zl(r)&&(__(r.parent)||Sc(r.parent))&&(i=r.parent.symbol,o=!1),!i)return;const a=e.getTypeOfSymbolAtLocation(i,r),s=function(e,t,n){if(t.symbol===e||e.valueDeclaration&&t.symbol&&lE(e.valueDeclaration)&&e.valueDeclaration.initializer===t.symbol.valueDeclaration){const e=t.getCallSignatures();if(1===e.length)return n.getReturnTypeOfSignature(ge(e))}}(i,a,e),c=s&&ule(s,e,r,o),[l,_]=c&&0!==c.length?[s,c]:[a,ule(a,e,r,o)];return _.length?[...lle(e,l,r,o),..._]:!(111551&i.flags)&&788968&i.flags?fle(e,ox(i,e),r,o):void 0}function ule(e,t,n,r){return O(!e.isUnion()||32&e.flags?[e]:e.types,e=>e.symbol&&fle(t,e.symbol,n,r))}function dle(e,t,n){const r=ile(e,t,n);if(!r||0===r.length)return;const i=ble(t.referencedFiles,n)||ble(t.typeReferenceDirectives,n)||ble(t.libReferenceDirectives,n);if(i)return{definitions:r,textSpan:AQ(i)};const o=WX(t,n);return{definitions:r,textSpan:Ws(o.getStart(),o.getWidth())}}function ple(e,t,n){const r=t.getSymbolAtLocation(e);let i=!1;if((null==r?void 0:r.declarations)&&2097152&r.flags&&!n&&function(e,t){return!!(80===e.kind||11===e.kind&&Rl(e.parent))&&(e.parent===t||275!==t.kind)}(e,r.declarations[0])){const e=t.getAliasedSymbol(r);if(e.declarations)return{symbol:e};i=!0}return{symbol:r,failedAliasResolution:i}}function fle(e,t,n,r,i){const o=void 0!==i?N(t.declarations,i):t.declarations,a=!i&&(function(){if(32&t.flags&&!(19&t.flags)&&(KG(n)||137===n.kind)){const e=b(o,u_);return e&&c(e.members,!0)}}()||(GG(n)||fX(n)?c(o,!1):void 0));if(a)return a;const s=N(o,e=>!function(e){if(!Um(e))return!1;const t=uc(e,e=>!!rb(e)||!Um(e)&&"quit");return!!t&&5===tg(t)}(e));return E($(s)?s:o,i=>mle(i,e,t,n,!1,r));function c(i,o){if(!i)return;const a=i.filter(o?PD:r_),s=a.filter(e=>!!e.body);return a.length?0!==s.length?s.map(r=>mle(r,e,t,n)):[mle(ve(a),e,t,n,!1,r)]:void 0}}function mle(e,t,n,r,i,o){const a=t.symbolToString(n),s=Nue.getSymbolKind(t,n,r),c=n.parent?t.symbolToString(n.parent,r):"";return gle(t,e,s,a,c,i,o)}function gle(e,t,n,r,i,o,a,s){const c=t.getSourceFile();return s||(s=FQ(Cc(t)||t,c)),{fileName:c.fileName,textSpan:s,kind:n,name:r,containerKind:void 0,containerName:i,...gce.toContextSpan(s,c,gce.getContextNode(t)),isLocal:!yle(e,t),isAmbient:!!(33554432&t.flags),unverified:o,failedAliasResolution:a}}function hle(e,t){const n=gce.getContextNode(e),r=FQ(Ice(n)?n.start:n,t);return{fileName:t.fileName,textSpan:r,kind:"keyword",name:"switch",containerKind:void 0,containerName:"",...gce.toContextSpan(r,t,n),isLocal:!0,isAmbient:!1,unverified:!1,failedAliasResolution:void 0}}function yle(e,t){if(e.isDeclarationVisible(t))return!0;if(!t.parent)return!1;if(Eu(t.parent)&&t.parent.initializer===t)return yle(e,t.parent);switch(t.kind){case 173:case 178:case 179:case 175:if(wv(t,2))return!1;case 177:case 304:case 305:case 211:case 232:case 220:case 219:return yle(e,t.parent);default:return!1}}function vle(e,t,n){return mle(t,e,t.symbol,t,!1,n)}function ble(e,t){return b(e,e=>As(e,t))}var xle={};i(xle,{provideInlayHints:()=>Cle});var kle=e=>new RegExp(`^\\s?/\\*\\*?\\s?${e}\\s?\\*\\/\\s?$`);function Sle(e){return"literals"===e.includeInlayParameterNameHints}function Tle(e){return!0===e.interactiveInlayHints}function Cle(e){const{file:t,program:n,span:r,cancellationToken:i,preferences:o}=e,a=t.text,s=n.getCompilerOptions(),c=tY(t,o),l=n.getTypeChecker(),_=[];return function e(n){if(n&&0!==n.getFullWidth()){switch(n.kind){case 268:case 264:case 265:case 263:case 232:case 219:case 175:case 220:i.throwIfCancellationRequested()}if(Bs(r,n.pos,n.getFullWidth())&&(!b_(n)||OF(n)))return o.includeInlayVariableTypeHints&&lE(n)||o.includeInlayPropertyDeclarationTypeHints&&ND(n)?function(e){if(void 0===e.initializer&&(!ND(e)||1&l.getTypeAtLocation(e).flags)||k_(e.name)||lE(e)&&!x(e))return;if(fv(e))return;const t=l.getTypeAtLocation(e);if(p(t))return;const n=v(t);if(n){const t="string"==typeof n?n:n.map(e=>e.text).join("");if(!1===o.includeInlayVariableTypeHintsWhenTypeMatchesName&>(e.name.getText(),t))return;d(n,e.name.end)}}(n):o.includeInlayEnumMemberValueHints&&aP(n)?function(e){if(e.initializer)return;const t=l.getConstantValue(e);var n,r;void 0!==t&&(n=t.toString(),r=e.end,_.push({text:`= ${n}`,position:r,kind:"Enum",whitespaceBefore:!0}))}(n):function(e){return"literals"===e.includeInlayParameterNameHints||"all"===e.includeInlayParameterNameHints}(o)&&(fF(n)||mF(n))?function(e){const t=e.arguments;if(!t||!t.length)return;const n=l.getResolvedSignature(e);if(void 0===n)return;let r=0;for(const e of t){const t=ah(e);if(Sle(o)&&!g(t)){r++;continue}let i=0;if(PF(t)){const e=l.getTypeAtLocation(t.expression);if(l.isTupleType(e)){const{elementFlags:t,fixedLength:n}=e.target;if(0===n)continue;const r=k(t,e=>!(1&e));(r<0?n:r)>0&&(i=r<0?n:r)}}const a=l.getParameterIdentifierInfoAtPosition(n,r);if(r+=i||1,a){const{parameter:n,parameterName:r,isRestParameter:i}=a;if(!o.includeInlayParameterNameHintsWhenArgumentMatchesName&&f(t,r)&&!i)continue;const s=mc(r);if(m(t,s))continue;u(s,n,e.getStart(),i)}}}(n):(o.includeInlayFunctionParameterTypeHints&&o_(n)&<(n)&&function(e){const t=l.getSignatureFromDeclaration(e);if(!t)return;let n=0;for(const r of e.parameters)x(r)&&y(r,cv(r)?t.thisParameter:t.parameters[n]),cv(r)||n++}(n),o.includeInlayFunctionLikeReturnTypeHints&&function(e){return bF(e)||vF(e)||uE(e)||FD(e)||AD(e)}(n)&&function(e){if(bF(e)&&!OX(e,21,t))return;if(gv(e)||!e.body)return;const n=l.getSignatureFromDeclaration(e);if(!n)return;const r=l.getTypePredicateOfSignature(n);if(null==r?void 0:r.type){const n=function(e){if(!Tle(o))return function(e){const n=vU();return ad(r=>{const i=l.typePredicateToTypePredicateNode(e,void 0,71286784);un.assertIsDefined(i,"should always get typePredicateNode"),n.writeNode(4,i,t,r)})}(e);const n=l.typePredicateToTypePredicateNode(e,void 0,71286784);return un.assertIsDefined(n,"should always get typenode"),b(n)}(r);if(n)return void d(n,h(e))}const i=l.getReturnTypeOfSignature(n);if(p(i))return;const a=v(i);a&&d(a,h(e))}(n)),XI(n,e)}}(t),_;function u(e,t,n,r){let i,a=`${r?"...":""}${e}`;Tle(o)?(i=[S(a,t),{text:":"}],a=""):a+=":",_.push({text:a,position:n,kind:"Parameter",whitespaceAfter:!0,displayParts:i})}function d(e,t){_.push({text:"string"==typeof e?`: ${e}`:"",displayParts:"string"==typeof e?void 0:[{text:": "},...e],position:t,kind:"Type",whitespaceBefore:!0})}function p(e){return e.symbol&&1536&e.symbol.flags}function f(e,t){return aD(e)?e.text===t:!!dF(e)&&e.name.text===t}function m(e,n){if(!ms(n,yk(s),lk(t.scriptKind)))return!1;const r=_s(a,e.pos);if(!(null==r?void 0:r.length))return!1;const i=kle(n);return $(r,e=>i.test(a.substring(e.pos,e.end)))}function g(e){switch(e.kind){case 225:{const t=e.operand;return Il(t)||aD(t)&&jT(t.escapedText)}case 112:case 97:case 106:case 15:case 229:return!0;case 80:{const t=e.escapedText;return function(e){return"undefined"===e}(t)||jT(t)}}return Il(e)}function h(e){const n=OX(e,22,t);return n?n.end:e.parameters.end}function y(e,t){if(fv(e)||void 0===t)return;const n=function(e){const t=e.valueDeclaration;if(!t||!TD(t))return;const n=l.getTypeOfSymbolAtLocation(e,t);return p(n)?void 0:v(n)}(t);void 0!==n&&d(n,e.questionToken?e.questionToken.end:e.name.end)}function v(e){if(!Tle(o))return function(e){const n=vU();return ad(r=>{const i=l.typeToTypeNode(e,void 0,71286784);un.assertIsDefined(i,"should always get typenode"),n.writeNode(4,i,t,r)})}(e);const n=l.typeToTypeNode(e,void 0,71286784);return un.assertIsDefined(n,"should always get typeNode"),b(n)}function b(e){const t=[];return n(e),t;function n(e){var a,s;if(!e)return;const c=Fa(e.kind);if(c)t.push({text:c});else if(Il(e))t.push({text:o(e)});else switch(e.kind){case 80:un.assertNode(e,aD);const c=gc(e),l=e.symbol&&e.symbol.declarations&&e.symbol.declarations.length&&Cc(e.symbol.declarations[0]);l?t.push(S(c,l)):t.push({text:c});break;case 167:un.assertNode(e,xD),n(e.left),t.push({text:"."}),n(e.right);break;case 183:un.assertNode(e,MD),e.assertsModifier&&t.push({text:"asserts "}),n(e.parameterName),e.type&&(t.push({text:" is "}),n(e.type));break;case 184:un.assertNode(e,RD),n(e.typeName),e.typeArguments&&(t.push({text:"<"}),i(e.typeArguments,", "),t.push({text:">"}));break;case 169:un.assertNode(e,SD),e.modifiers&&i(e.modifiers," "),n(e.name),e.constraint&&(t.push({text:" extends "}),n(e.constraint)),e.default&&(t.push({text:" = "}),n(e.default));break;case 170:un.assertNode(e,TD),e.modifiers&&i(e.modifiers," "),e.dotDotDotToken&&t.push({text:"..."}),n(e.name),e.questionToken&&t.push({text:"?"}),e.type&&(t.push({text:": "}),n(e.type));break;case 186:un.assertNode(e,JD),t.push({text:"new "}),r(e),t.push({text:" => "}),n(e.type);break;case 187:un.assertNode(e,zD),t.push({text:"typeof "}),n(e.exprName),e.typeArguments&&(t.push({text:"<"}),i(e.typeArguments,", "),t.push({text:">"}));break;case 188:un.assertNode(e,qD),t.push({text:"{"}),e.members.length&&(t.push({text:" "}),i(e.members,"; "),t.push({text:" "})),t.push({text:"}"});break;case 189:un.assertNode(e,UD),n(e.elementType),t.push({text:"[]"});break;case 190:un.assertNode(e,VD),t.push({text:"["}),i(e.elements,", "),t.push({text:"]"});break;case 203:un.assertNode(e,WD),e.dotDotDotToken&&t.push({text:"..."}),n(e.name),e.questionToken&&t.push({text:"?"}),t.push({text:": "}),n(e.type);break;case 191:un.assertNode(e,$D),n(e.type),t.push({text:"?"});break;case 192:un.assertNode(e,HD),t.push({text:"..."}),n(e.type);break;case 193:un.assertNode(e,KD),i(e.types," | ");break;case 194:un.assertNode(e,GD),i(e.types," & ");break;case 195:un.assertNode(e,XD),n(e.checkType),t.push({text:" extends "}),n(e.extendsType),t.push({text:" ? "}),n(e.trueType),t.push({text:" : "}),n(e.falseType);break;case 196:un.assertNode(e,QD),t.push({text:"infer "}),n(e.typeParameter);break;case 197:un.assertNode(e,YD),t.push({text:"("}),n(e.type),t.push({text:")"});break;case 199:un.assertNode(e,eF),t.push({text:`${Fa(e.operator)} `}),n(e.type);break;case 200:un.assertNode(e,tF),n(e.objectType),t.push({text:"["}),n(e.indexType),t.push({text:"]"});break;case 201:un.assertNode(e,nF),t.push({text:"{ "}),e.readonlyToken&&(40===e.readonlyToken.kind?t.push({text:"+"}):41===e.readonlyToken.kind&&t.push({text:"-"}),t.push({text:"readonly "})),t.push({text:"["}),n(e.typeParameter),e.nameType&&(t.push({text:" as "}),n(e.nameType)),t.push({text:"]"}),e.questionToken&&(40===e.questionToken.kind?t.push({text:"+"}):41===e.questionToken.kind&&t.push({text:"-"}),t.push({text:"?"})),t.push({text:": "}),e.type&&n(e.type),t.push({text:"; }"});break;case 202:un.assertNode(e,rF),n(e.literal);break;case 185:un.assertNode(e,BD),r(e),t.push({text:" => "}),n(e.type);break;case 206:un.assertNode(e,iF),e.isTypeOf&&t.push({text:"typeof "}),t.push({text:"import("}),n(e.argument),e.assertions&&(t.push({text:", { assert: "}),i(e.assertions.assertClause.elements,", "),t.push({text:" }"})),t.push({text:")"}),e.qualifier&&(t.push({text:"."}),n(e.qualifier)),e.typeArguments&&(t.push({text:"<"}),i(e.typeArguments,", "),t.push({text:">"}));break;case 172:un.assertNode(e,wD),(null==(a=e.modifiers)?void 0:a.length)&&(i(e.modifiers," "),t.push({text:" "})),n(e.name),e.questionToken&&t.push({text:"?"}),e.type&&(t.push({text:": "}),n(e.type));break;case 182:un.assertNode(e,jD),t.push({text:"["}),i(e.parameters,", "),t.push({text:"]"}),e.type&&(t.push({text:": "}),n(e.type));break;case 174:un.assertNode(e,DD),(null==(s=e.modifiers)?void 0:s.length)&&(i(e.modifiers," "),t.push({text:" "})),n(e.name),e.questionToken&&t.push({text:"?"}),r(e),e.type&&(t.push({text:": "}),n(e.type));break;case 180:un.assertNode(e,OD),r(e),e.type&&(t.push({text:": "}),n(e.type));break;case 181:un.assertNode(e,LD),t.push({text:"new "}),r(e),e.type&&(t.push({text:": "}),n(e.type));break;case 208:un.assertNode(e,cF),t.push({text:"["}),i(e.elements,", "),t.push({text:"]"});break;case 207:un.assertNode(e,sF),t.push({text:"{"}),e.elements.length&&(t.push({text:" "}),i(e.elements,", "),t.push({text:" "})),t.push({text:"}"});break;case 209:un.assertNode(e,lF),n(e.name);break;case 225:un.assertNode(e,CF),t.push({text:Fa(e.operator)}),n(e.operand);break;case 204:un.assertNode(e,aF),n(e.head),e.templateSpans.forEach(n);break;case 16:un.assertNode(e,HN),t.push({text:o(e)});break;case 205:un.assertNode(e,oF),n(e.type),n(e.literal);break;case 17:un.assertNode(e,KN),t.push({text:o(e)});break;case 18:un.assertNode(e,GN),t.push({text:o(e)});break;case 198:un.assertNode(e,ZD),t.push({text:"this"});break;case 168:un.assertNode(e,kD),t.push({text:"["}),n(e.expression),t.push({text:"]"});break;default:un.failBadSyntaxKind(e)}}function r(e){e.typeParameters&&(t.push({text:"<"}),i(e.typeParameters,", "),t.push({text:">"})),t.push({text:"("}),i(e.parameters,", "),t.push({text:")"})}function i(e,r){e.forEach((e,i)=>{i>0&&t.push({text:r}),n(e)})}function o(e){switch(e.kind){case 11:return 0===c?`'${xy(e.text,39)}'`:`"${xy(e.text,34)}"`;case 16:case 17:case 18:{const t=e.rawText??dy(xy(e.text,96));switch(e.kind){case 16:return"`"+t+"${";case 17:return"}"+t+"${";case 18:return"}"+t+"`"}}}return e.text}}function x(e){if((Qh(e)||lE(e)&&af(e))&&e.initializer){const t=ah(e.initializer);return!(g(t)||mF(t)||uF(t)||W_(t))}return!0}function S(e,t){const n=t.getSourceFile();return{text:e,span:FQ(t,n),file:n.fileName}}}var wle={};i(wle,{getDocCommentTemplateAtPosition:()=>Ule,getJSDocParameterNameCompletionDetails:()=>qle,getJSDocParameterNameCompletions:()=>zle,getJSDocTagCompletionDetails:()=>Jle,getJSDocTagCompletions:()=>Ble,getJSDocTagNameCompletionDetails:()=>Rle,getJSDocTagNameCompletions:()=>Mle,getJsDocCommentsFromDeclarations:()=>Ele,getJsDocTagsFromDeclarations:()=>Ale});var Nle,Dle,Fle=["abstract","access","alias","argument","async","augments","author","borrows","callback","class","classdesc","constant","constructor","constructs","copyright","default","deprecated","description","emits","enum","event","example","exports","extends","external","field","file","fileoverview","fires","function","generator","global","hideconstructor","host","ignore","implements","import","inheritdoc","inner","instance","interface","kind","lends","license","link","linkcode","linkplain","listens","member","memberof","method","mixes","module","name","namespace","overload","override","package","param","private","prop","property","protected","public","readonly","requires","returns","satisfies","see","since","static","summary","template","this","throws","todo","tutorial","type","typedef","var","variation","version","virtual","yields"];function Ele(e,t){const n=[];return gY(e,e=>{for(const r of function(e){switch(e.kind){case 342:case 349:return[e];case 339:case 347:return[e,e.parent];case 324:if(LP(e.parent))return[e.parent.parent];default:return jg(e)}}(e)){const i=SP(r)&&r.tags&&b(r.tags,e=>328===e.kind&&("inheritDoc"===e.tagName.escapedText||"inheritdoc"===e.tagName.escapedText));if(void 0===r.comment&&!i||SP(r)&&347!==e.kind&&339!==e.kind&&r.tags&&r.tags.some(e=>347===e.kind||339===e.kind)&&!r.tags.some(e=>342===e.kind||343===e.kind))continue;let o=r.comment?Lle(r.comment,t):[];i&&i.comment&&(o=o.concat(Lle(i.comment,t))),T(n,o,Ple)||n.push(o)}}),I(y(n,[BY()]))}function Ple(e,t){return te(e,t,(e,t)=>e.kind===t.kind&&e.text===t.text)}function Ale(e,t){const n=[];return gY(e,e=>{const r=ol(e);if(!r.some(e=>347===e.kind||339===e.kind)||r.some(e=>342===e.kind||343===e.kind))for(const e of r)n.push({name:e.tagName.text,text:jle(e,t)}),n.push(...Ile(Ole(e),t))}),n}function Ile(e,t){return O(e,e=>K([{name:e.tagName.text,text:jle(e,t)}],Ile(Ole(e),t)))}function Ole(e){return Nl(e)&&e.isNameFirst&&e.typeExpression&&TP(e.typeExpression.type)?e.typeExpression.type.jsDocPropertyTags:void 0}function Lle(e,t){return"string"==typeof e?[PY(e)]:O(e,e=>322===e.kind?[PY(e.text)]:jY(e,t))}function jle(e,t){const{comment:n,kind:r}=e,i=function(e){switch(e){case 342:return DY;case 349:return FY;case 346:return IY;case 347:case 339:return AY;default:return PY}}(r);switch(r){case 350:const r=e.typeExpression;return r?o(r):void 0===n?void 0:Lle(n,t);case 330:case 329:return o(e.class);case 346:const a=e,s=[];if(a.constraint&&s.push(PY(a.constraint.getText())),u(a.typeParameters)){u(s)&&s.push(TY());const e=a.typeParameters[a.typeParameters.length-1];d(a.typeParameters,t=>{s.push(i(t.getText())),e!==t&&s.push(wY(28),TY())})}return n&&s.push(TY(),...Lle(n,t)),s;case 345:case 351:return o(e.typeExpression);case 347:case 339:case 349:case 342:case 348:const{name:c}=e;return c?o(c):void 0===n?void 0:Lle(n,t);default:return void 0===n?void 0:Lle(n,t)}function o(e){return r=e.getText(),n?r.match(/^https?$/)?[PY(r),...Lle(n,t)]:[i(r),TY(),...Lle(n,t)]:[PY(r)];var r}}function Mle(){return Nle||(Nle=E(Fle,e=>({name:e,kind:"keyword",kindModifiers:"",sortText:mae.SortText.LocationPriority})))}var Rle=Jle;function Ble(){return Dle||(Dle=E(Fle,e=>({name:`@${e}`,kind:"keyword",kindModifiers:"",sortText:mae.SortText.LocationPriority})))}function Jle(e){return{name:e,kind:"",kindModifiers:"",displayParts:[PY(e)],documentation:l,tags:void 0,codeActions:void 0}}function zle(e){if(!aD(e.name))return l;const t=e.name.text,n=e.parent,r=n.parent;return r_(r)?B(r.parameters,r=>{if(!aD(r.name))return;const i=r.name.text;return n.tags.some(t=>t!==e&&BP(t)&&aD(t.name)&&t.name.escapedText===i)||void 0!==t&&!Gt(i,t)?void 0:{name:i,kind:"parameter",kindModifiers:"",sortText:mae.SortText.LocationPriority}}):[]}function qle(e){return{name:e,kind:"parameter",kindModifiers:"",displayParts:[PY(e)],documentation:l,tags:void 0,codeActions:void 0}}function Ule(e,t,n,r){const i=HX(t,n),o=uc(i,SP);if(o&&(void 0!==o.comment||u(o.tags)))return;const a=i.getStart(t);if(!o&&aVle(e,t))}(i,r);if(!s)return;const{commentOwner:c,parameters:l,hasReturn:_}=s,d=ye(Du(c)&&c.jsDoc?c.jsDoc:void 0);if(c.getStart(t){const a=80===e.kind?e.text:"param"+o;return`${n} * @param ${t?i?"{...any} ":"{any} ":""}${a}${r}`}).join("")}(l||[],f,p,e):"")+(_?function(e,t){return`${e} * @returns${t}`}(p,e):""),g=u(ol(c))>0;if(m&&!g){const t="/**"+e+p+" * ";return{newText:t+e+m+p+" */"+(a===n?e+p:""),caretOffset:t.length}}return{newText:"/** */",caretOffset:3}}function Vle(e,t){switch(e.kind){case 263:case 219:case 175:case 177:case 174:case 220:const n=e;return{commentOwner:e,parameters:n.parameters,hasReturn:Wle(n,t)};case 304:return Vle(e.initializer,t);case 264:case 265:case 267:case 307:case 266:return{commentOwner:e};case 172:{const n=e;return n.type&&BD(n.type)?{commentOwner:e,parameters:n.type.parameters,hasReturn:Wle(n.type,t)}:{commentOwner:e}}case 244:{const n=e.declarationList.declarations,r=1===n.length&&n[0].initializer?function(e){for(;218===e.kind;)e=e.expression;switch(e.kind){case 219:case 220:return e;case 232:return b(e.members,PD)}}(n[0].initializer):void 0;return r?{commentOwner:e,parameters:r.parameters,hasReturn:Wle(r,t)}:{commentOwner:e}}case 308:return"quit";case 268:return 268===e.parent.kind?void 0:{commentOwner:e};case 245:return Vle(e.expression,t);case 227:{const n=e;return 0===tg(n)?"quit":r_(n.right)?{commentOwner:e,parameters:n.right.parameters,hasReturn:Wle(n.right,t)}:{commentOwner:e}}case 173:const r=e.initializer;if(r&&(vF(r)||bF(r)))return{commentOwner:e,parameters:r.parameters,hasReturn:Wle(r,t)}}}function Wle(e,t){return!!(null==t?void 0:t.generateReturnInDocTemplate)&&(BD(e)||bF(e)&&V_(e.body)||o_(e)&&e.body&&VF(e.body)&&!!Df(e.body,e=>e))}var $le={};function Hle(e,t,n,r,i,o){return jue.ChangeTracker.with({host:r,formatContext:i,preferences:o},r=>{const i=t.map(t=>function(e,t){const n=[{parse:()=>eO("__mapcode_content_nodes.ts",t,e.languageVersion,!0,e.scriptKind),body:e=>e.statements},{parse:()=>eO("__mapcode_class_content_nodes.ts",`class __class {\n${t}\n}`,e.languageVersion,!0,e.scriptKind),body:e=>e.statements[0].members}],r=[];for(const{parse:e,body:t}of n){const n=e(),i=t(n);if(i.length&&0===n.parseDiagnostics.length)return i;i.length&&r.push({sourceFile:n,body:i})}r.sort((e,t)=>e.sourceFile.parseDiagnostics.length-t.sourceFile.parseDiagnostics.length);const{body:i}=r[0];return i}(e,t)),o=n&&I(n);for(const t of i)Kle(e,r,t,o)})}function Kle(e,t,n,r){__(n[0])||h_(n[0])?function(e,t,n,r){let i;if(i=r&&r.length?d(r,t=>uc(HX(e,t.start),en(u_,pE))):b(e.statements,en(u_,pE)),!i)return;const o=i.members.find(e=>n.some(t=>Gle(t,e)));if(o){const r=x(i.members,e=>n.some(t=>Gle(t,e)));return d(n,Xle),void t.replaceNodeRangeWithNodes(e,o,r,n)}d(n,Xle),t.insertNodesAfter(e,i.members[i.members.length-1],n)}(e,t,n,r):function(e,t,n,r){if(!(null==r?void 0:r.length))return void t.insertNodesAtEndOfFile(e,n,!1);for(const i of r){const r=uc(HX(e,i.start),e=>en(VF,sP)(e)&&$(e.statements,e=>n.some(t=>Gle(t,e))));if(r){const i=r.statements.find(e=>n.some(t=>Gle(t,e)));if(i){const o=x(r.statements,e=>n.some(t=>Gle(t,e)));return d(n,Xle),void t.replaceNodeRangeWithNodes(e,i,o,n)}}}let i=e.statements;for(const t of r){const n=uc(HX(e,t.start),VF);if(n){i=n.statements;break}}d(n,Xle),t.insertNodesAfter(e,i[i.length-1],n)}(e,t,n,r)}function Gle(e,t){var n,r,i,o,a,s;return e.kind===t.kind&&(177===e.kind?e.kind===t.kind:Sc(e)&&Sc(t)?e.name.getText()===t.name.getText():KF(e)&&KF(t)||XF(e)&&XF(t)?e.expression.getText()===t.expression.getText():QF(e)&&QF(t)?(null==(n=e.initializer)?void 0:n.getText())===(null==(r=t.initializer)?void 0:r.getText())&&(null==(i=e.incrementor)?void 0:i.getText())===(null==(o=t.incrementor)?void 0:o.getText())&&(null==(a=e.condition)?void 0:a.getText())===(null==(s=t.condition)?void 0:s.getText()):Q_(e)&&Q_(t)?e.expression.getText()===t.expression.getText()&&e.initializer.getText()===t.initializer.getText():oE(e)&&oE(t)?e.label.getText()===t.label.getText():e.getText()===t.getText())}function Xle(e){Qle(e),e.parent=void 0}function Qle(e){e.pos=-1,e.end=-1,e.forEachChild(Qle)}i($le,{mapCode:()=>Hle});var Yle={};function Zle(e,t,n,r,i,o){const a=jue.ChangeTracker.fromContext({host:n,formatContext:t,preferences:i}),s="SortAndCombine"===o||"All"===o,c=s,l="RemoveUnused"===o||"All"===o,_=e.statements.filter(xE),d=t_e(e,_),{comparersToTest:p,typeOrdersToTest:f}=e_e(i),m=p[0],g={moduleSpecifierComparer:"boolean"==typeof i.organizeImportsIgnoreCase?m:void 0,namedImportComparer:"boolean"==typeof i.organizeImportsIgnoreCase?m:void 0,typeOrder:i.organizeImportsTypeOrder};if("boolean"!=typeof i.organizeImportsIgnoreCase&&({comparer:g.moduleSpecifierComparer}=p_e(d,p)),!g.typeOrder||"boolean"!=typeof i.organizeImportsIgnoreCase){const e=f_e(_,p,f);if(e){const{namedImportComparer:t,typeOrder:n}=e;g.namedImportComparer=g.namedImportComparer??t,g.typeOrder=g.typeOrder??n}}d.forEach(e=>y(e,g)),"RemoveUnused"!==o&&function(e){const t=[],n=e.statements,r=u(n);let i=0,o=0;for(;it_e(e,t))}(e).forEach(e=>v(e,g.namedImportComparer));for(const t of e.statements.filter(cp))t.body&&(t_e(e,t.body.statements.filter(xE)).forEach(e=>y(e,g)),"RemoveUnused"!==o&&v(t.body.statements.filter(IE),g.namedImportComparer));return a.getChanges();function h(r,i){if(0===u(r))return;xw(r[0],1024);const o=c?Je(r,e=>r_e(e.moduleSpecifier)):[r],l=O(s?_e(o,(e,t)=>l_e(e[0].moduleSpecifier,t[0].moduleSpecifier,g.moduleSpecifierComparer??m)):o,e=>r_e(e[0].moduleSpecifier)||void 0===e[0].moduleSpecifier?i(e):e);if(0===l.length)a.deleteNodes(e,r,{leadingTriviaOption:jue.LeadingTriviaOption.Exclude,trailingTriviaOption:jue.TrailingTriviaOption.Include},!0);else{const i={leadingTriviaOption:jue.LeadingTriviaOption.Exclude,trailingTriviaOption:jue.TrailingTriviaOption.Include,suffix:RY(n,t.options)};a.replaceNodeWithNodes(e,r[0],l,i);const o=a.nodeHasTrailingComment(e,r[0],i);a.deleteNodes(e,r.slice(1),{trailingTriviaOption:jue.TrailingTriviaOption.Include},o)}}function y(t,n){const i=n.moduleSpecifierComparer??m,o=n.namedImportComparer??m,a=x_e({organizeImportsTypeOrder:n.typeOrder??"last"},o);h(t,t=>(l&&(t=function(e,t,n){const r=n.getTypeChecker(),i=n.getCompilerOptions(),o=r.getJsxNamespace(t),a=r.getJsxFragmentFactory(t),s=!!(2&t.transformFlags),c=[];for(const n of e){const{importClause:e,moduleSpecifier:r}=n;if(!e){c.push(n);continue}let{name:i,namedBindings:o}=e;if(i&&!l(i)&&(i=void 0),o)if(DE(o))l(o.name)||(o=void 0);else{const e=o.elements.filter(e=>l(e.name));e.lengthC_e(e,t,i))),t))}function v(e,t){const n=x_e(i,t);h(e,e=>a_e(e,n))}}function e_e(e){return{comparersToTest:"boolean"==typeof e.organizeImportsIgnoreCase?[v_e(e,e.organizeImportsIgnoreCase)]:[v_e(e,!0),v_e(e,!1)],typeOrdersToTest:e.organizeImportsTypeOrder?[e.organizeImportsTypeOrder]:["last","inline","first"]}}function t_e(e,t){const n=gs(e.languageVersion,!1,e.languageVariant),r=[];let i=0;for(const o of t)r[i]&&n_e(e,o,n)&&i++,r[i]||(r[i]=[]),r[i].push(o);return r}function n_e(e,t,n){const r=t.getFullStart(),i=t.getStart();n.setText(e.text,r,i-r);let o=0;for(;n.getTokenStart()=2))return!0;return!1}function r_e(e){return void 0!==e&&ju(e)?e.text:void 0}function i_e(e){let t;const n={defaultImports:[],namespaceImports:[],namedImports:[]},r={defaultImports:[],namespaceImports:[],namedImports:[]};for(const i of e){if(void 0===i.importClause){t=t||i;continue}const e=i.importClause.isTypeOnly?n:r,{name:o,namedBindings:a}=i.importClause;o&&e.defaultImports.push(i),a&&(DE(a)?e.namespaceImports.push(i):e.namedImports.push(i))}return{importWithoutClause:t,typeOnlyImports:n,regularImports:r}}function o_e(e,t,n,r){if(0===e.length)return e;const i=ze(e,e=>{if(e.attributes){let t=e.attributes.token+" ";for(const n of _e(e.attributes.elements,(e,t)=>Ct(e.name.text,t.name.text)))t+=n.name.text+":",t+=ju(n.value)?`"${n.value.text}"`:n.value.getText()+" ";return t}return""}),o=[];for(const e in i){const a=i[e],{importWithoutClause:s,typeOnlyImports:c,regularImports:_}=i_e(a);s&&o.push(s);for(const e of[_,c]){const i=e===c,{defaultImports:a,namespaceImports:s,namedImports:_}=e;if(!i&&1===a.length&&1===s.length&&0===_.length){const e=a[0];o.push(s_e(e,e.importClause.name,s[0].importClause.namedBindings));continue}const u=_e(s,(e,n)=>t(e.importClause.namedBindings.name.text,n.importClause.namedBindings.name.text));for(const e of u)o.push(s_e(e,void 0,e.importClause.namedBindings));const d=fe(a),p=fe(_),f=d??p;if(!f)continue;let m;const g=[];if(1===a.length)m=a[0].importClause.name;else for(const e of a)g.push(mw.createImportSpecifier(!1,mw.createIdentifier("default"),e.importClause.name));g.push(...d_e(_));const h=mw.createNodeArray(_e(g,n),null==p?void 0:p.importClause.namedBindings.elements.hasTrailingComma),y=0===h.length?m?void 0:mw.createNamedImports(l):p?mw.updateNamedImports(p.importClause.namedBindings,h):mw.createNamedImports(h);r&&y&&(null==p?void 0:p.importClause.namedBindings)&&!Rb(p.importClause.namedBindings,r)&&xw(y,2),i&&m&&y?(o.push(s_e(f,m,void 0)),o.push(s_e(p??f,void 0,y))):o.push(s_e(f,m,y))}}return o}function a_e(e,t){if(0===e.length)return e;const{exportWithoutClause:n,namedExports:r,typeOnlyExports:i}=function(e){let t;const n=[],r=[];for(const i of e)void 0===i.exportClause?t=t||i:i.isTypeOnly?r.push(i):n.push(i);return{exportWithoutClause:t,namedExports:n,typeOnlyExports:r}}(e),o=[];n&&o.push(n);for(const e of[r,i]){if(0===e.length)continue;const n=[];n.push(...O(e,e=>e.exportClause&&OE(e.exportClause)?e.exportClause.elements:l));const r=_e(n,t),i=e[0];o.push(mw.updateExportDeclaration(i,i.modifiers,i.isTypeOnly,i.exportClause&&(OE(i.exportClause)?mw.updateNamedExports(i.exportClause,r):mw.updateNamespaceExport(i.exportClause,i.exportClause.name)),i.moduleSpecifier,i.attributes))}return o}function s_e(e,t,n){return mw.updateImportDeclaration(e,e.modifiers,mw.updateImportClause(e.importClause,e.importClause.phaseModifier,t,n),e.moduleSpecifier,e.attributes)}function c_e(e,t,n,r){switch(null==r?void 0:r.organizeImportsTypeOrder){case"first":return Ot(t.isTypeOnly,e.isTypeOnly)||n(e.name.text,t.name.text);case"inline":return n(e.name.text,t.name.text);default:return Ot(e.isTypeOnly,t.isTypeOnly)||n(e.name.text,t.name.text)}}function l_e(e,t,n){const r=void 0===e?void 0:r_e(e),i=void 0===t?void 0:r_e(t);return Ot(void 0===r,void 0===i)||Ot(Cs(r),Cs(i))||n(r,i)}function __e(e){var t;switch(e.kind){case 272:return null==(t=tt(e.moduleReference,JE))?void 0:t.expression;case 273:return e.moduleSpecifier;case 244:return e.declarationList.declarations[0].initializer.arguments[0]}}function u_e(e,t){const n=UN(t)&&t.text;return Ze(n)&&$(e.moduleAugmentations,e=>UN(e)&&e.text===n)}function d_e(e){return O(e,e=>E(function(e){var t;return(null==(t=e.importClause)?void 0:t.namedBindings)&&EE(e.importClause.namedBindings)?e.importClause.namedBindings.elements:void 0}(e),e=>e.name&&e.propertyName&&Hd(e.name)===Hd(e.propertyName)?mw.updateImportSpecifier(e,e.isTypeOnly,void 0,e.name):e))}function p_e(e,t){const n=[];return e.forEach(e=>{n.push(e.map(e=>r_e(__e(e))||""))}),g_e(n,t)}function f_e(e,t,n){let r=!1;const i=e.filter(e=>{var t,n;const i=null==(n=tt(null==(t=e.importClause)?void 0:t.namedBindings,EE))?void 0:n.elements;return!!(null==i?void 0:i.length)&&(!r&&i.some(e=>e.isTypeOnly)&&i.some(e=>!e.isTypeOnly)&&(r=!0),!0)});if(0===i.length)return;const o=i.map(e=>{var t,n;return null==(n=tt(null==(t=e.importClause)?void 0:t.namedBindings,EE))?void 0:n.elements}).filter(e=>void 0!==e);if(!r||0===n.length){const e=g_e(o.map(e=>e.map(e=>e.name.text)),t);return{namedImportComparer:e.comparer,typeOrder:1===n.length?n[0]:void 0,isSorted:e.isSorted}}const a={first:1/0,last:1/0,inline:1/0},s={first:t[0],last:t[0],inline:t[0]};for(const e of t){const t={first:0,last:0,inline:0};for(const r of o)for(const i of n)t[i]=(t[i]??0)+m_e(r,(t,n)=>c_e(t,n,e,{organizeImportsTypeOrder:i}));for(const r of n){const n=r;t[n]0&&n++;return n}function g_e(e,t){let n,r=1/0;for(const i of t){let t=0;for(const n of e)n.length<=1||(t+=m_e(n,i));tc_e(t,r,n,e)}function k_e(e,t,n){const{comparersToTest:r,typeOrdersToTest:i}=e_e(t),o=f_e([e],r,i);let a,s=x_e(t,r[0]);if("boolean"!=typeof t.organizeImportsIgnoreCase||!t.organizeImportsTypeOrder)if(o){const{namedImportComparer:e,typeOrder:t,isSorted:n}=o;a=n,s=x_e({organizeImportsTypeOrder:t},e)}else if(n){const e=f_e(n.statements.filter(xE),r,i);if(e){const{namedImportComparer:t,typeOrder:n,isSorted:r}=e;a=r,s=x_e({organizeImportsTypeOrder:n},t)}}return{specifierComparer:s,isSorted:a}}function S_e(e,t,n){const r=Te(e,t,st,(e,t)=>C_e(e,t,n));return r<0?~r:r}function T_e(e,t,n){const r=Te(e,t,st,n);return r<0?~r:r}function C_e(e,t,n){return l_e(__e(e),__e(t),n)||function(e,t){return vt(h_e(e),h_e(t))}(e,t)}function w_e(e,t,n,r){const i=y_e(t);return o_e(e,i,x_e({organizeImportsTypeOrder:null==r?void 0:r.organizeImportsTypeOrder},i),n)}function N_e(e,t,n){return a_e(e,(e,r)=>c_e(e,r,y_e(t),{organizeImportsTypeOrder:(null==n?void 0:n.organizeImportsTypeOrder)??"last"}))}function D_e(e,t,n){return l_e(e,t,y_e(!!n))}i(Yle,{compareImportsOrRequireStatements:()=>C_e,compareModuleSpecifiers:()=>D_e,getImportDeclarationInsertionIndex:()=>S_e,getImportSpecifierInsertionIndex:()=>T_e,getNamedImportSpecifierComparerWithDetection:()=>k_e,getOrganizeImportsStringComparerWithDetection:()=>b_e,organizeImports:()=>Zle,testCoalesceExports:()=>N_e,testCoalesceImports:()=>w_e});var F_e={};function E_e(e,t){const n=[];return function(e,t,n){let r=40,i=0;const o=e.statements,a=o.length;for(;i...")}(e);case 289:return function(e){const n=$s(e.openingFragment.getStart(t),e.closingFragment.getEnd());return M_e(n,"code",n,!1,"<>...")}(e);case 286:case 287:return function(e){if(0!==e.properties.length)return L_e(e.getStart(t),e.getEnd(),"code")}(e.attributes);case 229:case 15:return function(e){if(15!==e.kind||0!==e.text.length)return L_e(e.getStart(t),e.getEnd(),"code")}(e);case 208:return i(e,!1,!lF(e.parent),23);case 220:return function(e){if(VF(e.body)||yF(e.body)||$b(e.body.getFullStart(),e.body.getEnd(),t))return;return M_e($s(e.body.getFullStart(),e.body.getEnd()),"code",FQ(e))}(e);case 214:return function(e){if(!e.arguments.length)return;const n=OX(e,21,t),r=OX(e,22,t);return n&&r&&!$b(n.pos,r.pos,t)?j_e(n,r,e,t,!1,!0):void 0}(e);case 218:return function(e){if($b(e.getStart(),e.getEnd(),t))return;return M_e($s(e.getStart(),e.getEnd()),"code",FQ(e))}(e);case 276:case 280:case 301:return function(e){if(!e.elements.length)return;const n=OX(e,19,t),r=OX(e,20,t);return n&&r&&!$b(n.pos,r.pos,t)?j_e(n,r,e,t,!1,!1):void 0}(e)}var n;function r(e,t=19){return i(e,!1,!_F(e.parent)&&!fF(e.parent),t)}function i(n,r=!1,i=!0,o=19,a=(19===o?20:24)){const s=OX(e,o,t),c=OX(e,a,t);return s&&c&&j_e(s,c,n,t,r,i)}}(i,e);a&&n.push(a),r--,fF(i)?(r++,s(i.expression),r--,i.arguments.forEach(s),null==(o=i.typeArguments)||o.forEach(s)):KF(i)&&i.elseStatement&&KF(i.elseStatement)?(s(i.expression),s(i.thenStatement),r++,s(i.elseStatement),r--):i.forEachChild(s),r++}s(e.endOfFileToken)}(e,t,n),function(e,t){const n=[],r=e.getLineStarts();for(const i of r){const r=e.getLineEndOfPosition(i),o=A_e(e.text.substring(i,r));if(o&&!dQ(e,i))if(o.isStart){const t=$s(e.text.indexOf("//",i),r);n.push(M_e(t,"region",t,!1,o.name||"#region"))}else{const e=n.pop();e&&(e.textSpan.length=r-e.textSpan.start,e.hintSpan.length=r-e.textSpan.start,t.push(e))}}}(e,n),n.sort((e,t)=>e.textSpan.start-t.textSpan.start),n}i(F_e,{collectElements:()=>E_e});var P_e=/^#(end)?region(.*)\r?$/;function A_e(e){if(!Gt(e=e.trimStart(),"//"))return null;e=e.slice(2).trim();const t=P_e.exec(e);return t?{isStart:!t[1],name:t[2].trim()}:void 0}function I_e(e,t,n,r){const i=_s(t.text,e);if(!i)return;let o=-1,a=-1,s=0;const c=t.getFullText();for(const{kind:e,pos:t,end:_}of i)switch(n.throwIfCancellationRequested(),e){case 2:if(A_e(c.slice(t,_))){l(),s=0;break}0===s&&(o=t),a=_,s++;break;case 3:l(),r.push(L_e(t,_,"comment")),s=0;break;default:un.assertNever(e)}function l(){s>1&&r.push(L_e(o,a,"comment"))}l()}function O_e(e,t,n,r){VN(e)||I_e(e.pos,t,n,r)}function L_e(e,t,n){return M_e($s(e,t),n)}function j_e(e,t,n,r,i=!1,o=!0){return M_e($s(o?e.getFullStart():e.getStart(r),t.getEnd()),"code",FQ(n,r),i)}function M_e(e,t,n=e,r=!1,i="..."){return{textSpan:e,kind:t,hintSpan:n,bannerText:i,autoCollapse:r}}var R_e={};function B_e(e,t,n,r){const i=VX(WX(t,n));if(V_e(i)){const n=function(e,t,n,r,i){const o=t.getSymbolAtLocation(e);if(!o){if(ju(e)){const r=BX(e,t);if(r&&(128&r.flags||1048576&r.flags&&v(r.types,e=>!!(128&e.flags))))return z_e(e.text,e.text,"string","",e,n)}else if(cX(e)){const t=Xd(e);return z_e(t,t,"label","",e,n)}return}const{declarations:a}=o;if(!a||0===a.length)return;if(a.some(e=>function(e,t){const n=t.getSourceFile();return e.isSourceFileDefaultLibrary(n)&&ko(n.fileName,".d.ts")}(r,e)))return q_e(_a.You_cannot_rename_elements_that_are_defined_in_the_standard_TypeScript_library);if(aD(e)&&"default"===e.escapedText&&o.parent&&1536&o.parent.flags)return;if(ju(e)&&bg(e))return i.allowRenameOfImportPath?function(e,t,n){if(!Cs(e.text))return q_e(_a.You_cannot_rename_a_module_via_a_global_import);const r=n.declarations&&b(n.declarations,sP);if(!r)return;const i=Mt(e.text,"/index")||Mt(e.text,"/index.js")?void 0:Bt(US(r.fileName),"/index"),o=void 0===i?r.fileName:i,a=void 0===i?"module":"directory",s=e.text.lastIndexOf("/")+1,c=Ws(e.getStart(t)+1+s,e.text.length-s);return{canRename:!0,fileToRename:o,kind:a,displayName:o,fullDisplayName:e.text,kindModifiers:"",triggerSpan:c}}(e,n,o):void 0;const s=function(e,t,n,r){if(!r.providePrefixAndSuffixTextForRename&&2097152&t.flags){const e=t.declarations&&b(t.declarations,e=>PE(e));e&&!e.propertyName&&(t=n.getAliasedSymbol(t))}const{declarations:i}=t;if(!i)return;const o=J_e(e.path);if(void 0===o)return $(i,e=>AZ(e.getSourceFile().path))?_a.You_cannot_rename_elements_that_are_defined_in_a_node_modules_folder:void 0;for(const e of i){const t=J_e(e.getSourceFile().path);if(t){const e=Math.min(o.length,t.length);for(let n=0;n<=e;n++)if(0!==Ct(o[n],t[n]))return _a.You_cannot_rename_elements_that_are_defined_in_another_node_modules_folder}}}(n,o,t,i);if(s)return q_e(s);const c=Nue.getSymbolKind(t,o,e),l=VY(e)||jh(e)&&168===e.parent.kind?Fy(qh(e)):void 0;return z_e(l||t.symbolToString(o),l||t.getFullyQualifiedName(o),c,Nue.getSymbolModifiers(t,o),e,n)}(i,e.getTypeChecker(),t,e,r);if(n)return n}return q_e(_a.You_cannot_rename_this_element)}function J_e(e){const t=Ao(e),n=t.lastIndexOf("node_modules");if(-1!==n)return t.slice(0,n+2)}function z_e(e,t,n,r,i,o){return{canRename:!0,fileToRename:void 0,kind:n,displayName:e,fullDisplayName:t,kindModifiers:r,triggerSpan:U_e(i,o)}}function q_e(e){return{canRename:!1,localizedErrorMessage:Vx(e)}}function U_e(e,t){let n=e.getStart(t),r=e.getWidth(t);return ju(e)&&(n+=1,r-=2),Ws(n,r)}function V_e(e){switch(e.kind){case 80:case 81:case 11:case 15:case 110:return!0;case 9:return mX(e);default:return!1}}i(R_e,{getRenameInfo:()=>B_e,nodeIsEligibleForRename:()=>V_e});var W_e={};function $_e(e,t,n,r,i){const o=e.getTypeChecker(),a=XX(t,n);if(!a)return;const s=!!r&&"characterTyped"===r.kind;if(s&&(nQ(t,n,a)||dQ(t,n)))return;const c=!!r&&"invoked"===r.kind,l=function(e,t,n,r,i){for(let o=e;!sP(o)&&(i||!VF(o));o=o.parent){un.assert(Xb(o.parent,o),"Not a subspan",()=>`Child: ${un.formatSyntaxKind(o.kind)}, parent: ${un.formatSyntaxKind(o.parent.kind)}`);const e=Q_e(o,t,n,r);if(e)return e}}(a,n,t,o,c);if(!l)return;i.throwIfCancellationRequested();const _=function({invocation:e,argumentCount:t},n,r,i,o){switch(e.kind){case 0:{if(o&&!function(e,t,n){if(!j_(t))return!1;const r=t.getChildren(n);switch(e.kind){case 21:return T(r,e);case 28:{const t=LX(e);return!!t&&T(r,t)}case 30:return H_e(e,n,t.expression);default:return!1}}(i,e.node,r))return;const a=[],s=n.getResolvedSignatureForSignatureHelp(e.node,a,t);return 0===a.length?void 0:{kind:0,candidates:a,resolvedSignature:s}}case 1:{const{called:a}=e;if(o&&!H_e(i,r,aD(a)?a.parent:a))return;const s=_Q(a,t,n);if(0!==s.length)return{kind:0,candidates:s,resolvedSignature:ge(s)};const c=n.getSymbolAtLocation(a);return c&&{kind:1,symbol:c}}case 2:return{kind:0,candidates:[e.signature],resolvedSignature:e.signature};default:return un.assertNever(e)}}(l,o,t,a,s);return i.throwIfCancellationRequested(),_?o.runWithCancellationToken(i,e=>0===_.kind?lue(_.candidates,_.resolvedSignature,l,t,e):function(e,{argumentCount:t,argumentsSpan:n,invocation:r,argumentIndex:i},o,a){const s=a.getLocalTypeParametersOfClassOrInterfaceOrTypeAlias(e);if(!s)return;return{items:[_ue(e,s,a,sue(r),o)],applicableSpan:n,selectedItemIndex:0,argumentIndex:i,argumentCount:t}}(_.symbol,l,t,e)):Fm(t)?function(e,t,n){if(2===e.invocation.kind)return;const r=aue(e.invocation),i=dF(r)?r.name.text:void 0,o=t.getTypeChecker();return void 0===i?void 0:f(t.getSourceFiles(),t=>f(t.getNamedDeclarations().get(i),r=>{const i=r.symbol&&o.getTypeOfSymbolAtLocation(r.symbol,r),a=i&&i.getCallSignatures();if(a&&a.length)return o.runWithCancellationToken(n,n=>lue(a,a[0],e,t,n,!0))}))}(l,e,i):void 0}function H_e(e,t,n){const r=e.getFullStart();let i=e.parent;for(;i;){const e=YX(r,t,i,!0);if(e)return Xb(n,e);i=i.parent}return un.fail("Could not find preceding token")}function K_e(e,t,n,r){const i=X_e(e,t,n,r);return!i||i.isTypeParameterList||0!==i.invocation.kind?void 0:{invocation:i.invocation.node,argumentCount:i.argumentCount,argumentIndex:i.argumentIndex}}function G_e(e,t,n,r){const i=function(e,t,n){if(30===e.kind||21===e.kind)return{list:oue(e.parent,e,t),argumentIndex:0};{const t=LX(e);return t&&{list:t,argumentIndex:tue(n,t,e)}}}(e,n,r);if(!i)return;const{list:o,argumentIndex:a}=i,s=function(e,t){return nue(e,t,void 0)}(r,o),c=function(e,t){const n=e.getFullStart();return Ws(n,Qa(t.text,e.getEnd(),!1)-n)}(o,n);return{list:o,argumentIndex:a,argumentCount:s,argumentsSpan:c}}function X_e(e,t,n,r){const{parent:i}=e;if(j_(i)){const t=i,o=G_e(e,0,n,r);if(!o)return;const{list:a,argumentIndex:s,argumentCount:c,argumentsSpan:l}=o;return{isTypeParameterList:!!i.typeArguments&&i.typeArguments.pos===a.pos,invocation:{kind:0,node:t},argumentsSpan:l,argumentIndex:s,argumentCount:c}}if($N(e)&&gF(i))return xQ(e,t,n)?rue(i,0,n):void 0;if(HN(e)&&216===i.parent.kind){const r=i,o=r.parent;return un.assert(229===r.kind),rue(o,xQ(e,t,n)?0:1,n)}if(qF(i)&&gF(i.parent.parent)){const r=i,o=i.parent.parent;if(GN(e)&&!xQ(e,t,n))return;const a=function(e,t,n,r){return un.assert(n>=t.getStart(),"Assumed 'position' could not occur before node."),jl(t)?xQ(t,n,r)?0:e+2:e+1}(r.parent.templateSpans.indexOf(r),e,t,n);return rue(o,a,n)}if(bu(i)){const e=i.attributes.pos;return{isTypeParameterList:!1,invocation:{kind:0,node:i},argumentsSpan:Ws(e,Qa(n.text,i.attributes.end,!1)-e),argumentIndex:0,argumentCount:1}}{const t=uQ(e,n);if(t){const{called:r,nTypeArguments:i}=t;return{isTypeParameterList:!0,invocation:{kind:1,called:r},argumentsSpan:$s(r.getStart(n),e.end),argumentIndex:i,argumentCount:i+1}}return}}function Q_e(e,t,n,r){return function(e,t,n,r){const i=function(e){switch(e.kind){case 21:case 28:return e;default:return uc(e.parent,e=>!!TD(e)||!(lF(e)||sF(e)||cF(e))&&"quit")}}(e);if(void 0===i)return;const o=function(e,t,n,r){const{parent:i}=e;switch(i.kind){case 218:case 175:case 219:case 220:const n=G_e(e,0,t,r);if(!n)return;const{argumentIndex:o,argumentCount:a,argumentsSpan:s}=n,c=FD(i)?r.getContextualTypeForObjectLiteralElement(i):r.getContextualType(i);return c&&{contextualType:c,argumentIndex:o,argumentCount:a,argumentsSpan:s};case 227:{const t=Y_e(i),n=r.getContextualType(t),o=21===e.kind?0:Z_e(i)-1,a=Z_e(t);return n&&{contextualType:n,argumentIndex:o,argumentCount:a,argumentsSpan:FQ(i)}}default:return}}(i,n,0,r);if(void 0===o)return;const{contextualType:a,argumentIndex:s,argumentCount:c,argumentsSpan:l}=o,_=a.getNonNullableType(),u=_.symbol;if(void 0===u)return;const d=ye(_.getCallSignatures());var p;return void 0!==d?{isTypeParameterList:!1,invocation:{kind:2,signature:d,node:e,symbol:(p=u,"__type"===p.name&&f(p.declarations,e=>{var t;return BD(e)?null==(t=tt(e.parent,au))?void 0:t.symbol:void 0})||p)},argumentsSpan:l,argumentIndex:s,argumentCount:c}:void 0}(e,0,n,r)||X_e(e,t,n,r)}function Y_e(e){return NF(e.parent)?Y_e(e.parent):e}function Z_e(e){return NF(e.left)?Z_e(e.left)+1:2}function eue(e,t){const n=t.getTypeAtLocation(e.expression);if(t.isTupleType(n)){const{elementFlags:e,fixedLength:t}=n.target;if(0===t)return 0;const r=k(e,e=>!(1&e));return r<0?t:r}return 0}function tue(e,t,n){return nue(e,t,n)}function nue(e,t,n){const r=t.getChildren();let i=0,o=!1;for(const t of r){if(n&&t===n)return o||28!==t.kind||i++,i;PF(t)?(i+=eue(t,e),o=!0):28===t.kind?o?o=!1:i++:(i++,o=!0)}return n?i:r.length&&28===ve(r).kind?i+1:i}function rue(e,t,n){const r=$N(e.template)?1:e.template.templateSpans.length+1;return 0!==t&&un.assertLessThan(t,r),{isTypeParameterList:!1,invocation:{kind:0,node:e},argumentsSpan:iue(e,n),argumentIndex:t,argumentCount:r}}function iue(e,t){const n=e.template,r=n.getStart();let i=n.getEnd();return 229===n.kind&&0===ve(n.templateSpans).literal.getFullWidth()&&(i=Qa(t.text,i,!1)),Ws(r,i-r)}function oue(e,t,n){const r=e.getChildren(n),i=r.indexOf(t);return un.assert(i>=0&&r.length>i+1),r[i+1]}function aue(e){return 0===e.kind?um(e.node):e.called}function sue(e){return 0===e.kind?e.node:1===e.kind?e.called:e.node}i(W_e,{getArgumentInfoForCompletions:()=>K_e,getSignatureHelpItems:()=>$_e});var cue=70246400;function lue(e,t,{isTypeParameterList:n,argumentCount:r,argumentsSpan:i,invocation:o,argumentIndex:a},s,c,_){var u;const d=sue(o),p=2===o.kind?o.symbol:c.getSymbolAtLocation(aue(o))||_&&(null==(u=t.declaration)?void 0:u.symbol),f=p?qY(c,p,_?s:void 0,void 0):l,m=E(e,e=>function(e,t,n,r,i,o){return E((n?pue:fue)(e,r,i,o),({isVariadic:n,parameters:o,prefix:a,suffix:s})=>{const c=[...t,...a],l=[...s,...due(e,i,r)],_=e.getDocumentationComment(r),u=e.getJsDocTags();return{isVariadic:n,prefixDisplayParts:c,suffixDisplayParts:l,separatorDisplayParts:uue,parameters:o,documentation:_,tags:u}})}(e,f,n,c,d,s));let g=0,h=0;for(let n=0;n1)){let e=0;for(const t of i){if(t.isVariadic||t.parameters.length>=r){g=h+e;break}e++}}h+=i.length}un.assert(-1!==g);const y={items:L(m,st),applicableSpan:i,selectedItemIndex:g,argumentIndex:a,argumentCount:r},v=y.items[g];if(v.isVariadic){const e=k(v.parameters,e=>!!e.isRest);-1mue(e,n,r,i,a)),c=e.getDocumentationComment(n),l=e.getJsDocTags(n);return{isVariadic:!1,prefixDisplayParts:[...o,wY(30)],suffixDisplayParts:[wY(32)],separatorDisplayParts:uue,parameters:s,documentation:c,tags:l}}var uue=[wY(28),TY()];function due(e,t,n){return JY(r=>{r.writePunctuation(":"),r.writeSpace(" ");const i=n.getTypePredicateOfSignature(e);i?n.writeTypePredicate(i,t,void 0,r):n.writeType(n.getReturnTypeOfSignature(e),t,void 0,r)})}function pue(e,t,n,r){const i=(e.target||e).typeParameters,o=vU(),a=(i||l).map(e=>mue(e,t,n,r,o)),s=e.thisParameter?[t.symbolToParameterDeclaration(e.thisParameter,n,cue)]:[];return t.getExpandedParameters(e).map(e=>{const i=mw.createNodeArray([...s,...E(e,e=>t.symbolToParameterDeclaration(e,n,cue))]),c=JY(e=>{o.writeList(2576,i,r,e)});return{isVariadic:!1,parameters:a,prefix:[wY(30)],suffix:[wY(32),...c]}})}function fue(e,t,n,r){const i=vU(),o=JY(o=>{if(e.typeParameters&&e.typeParameters.length){const a=mw.createNodeArray(e.typeParameters.map(e=>t.typeParameterToDeclaration(e,n,cue)));i.writeList(53776,a,r,o)}}),a=t.getExpandedParameters(e),s=t.hasEffectiveRestParameter(e)?1===a.length?e=>!0:e=>{var t;return!!(e.length&&32768&(null==(t=tt(e[e.length-1],Xu))?void 0:t.links.checkFlags))}:e=>!1;return a.map(e=>({isVariadic:s(e),parameters:e.map(e=>function(e,t,n,r,i){const o=JY(o=>{const a=t.symbolToParameterDeclaration(e,n,cue);i.writeNode(4,a,r,o)}),a=t.isOptionalParameter(e.valueDeclaration),s=Xu(e)&&!!(32768&e.links.checkFlags);return{name:e.name,documentation:e.getDocumentationComment(t),displayParts:o,isOptional:a,isRest:s}}(e,t,n,r,i)),prefix:[...o,wY(21)],suffix:[wY(22)]}))}function mue(e,t,n,r,i){const o=JY(o=>{const a=t.typeParameterToDeclaration(e,n,cue);i.writeNode(4,a,r,o)});return{name:e.symbol.name,documentation:e.symbol.getDocumentationComment(t),displayParts:o,isOptional:!1,isRest:!1}}var gue={};function hue(e,t){var n,r;let i={textSpan:$s(t.getFullStart(),t.getEnd())},o=t;e:for(;;){const i=bue(o);if(!i.length)break;for(let c=0;ce)break e;const d=be(us(t.text,_.end));if(d&&2===d.kind&&s(d.pos,d.end),yue(t,e,_)){if(Z_(_)&&o_(o)&&!$b(_.getStart(t),_.getEnd(),t)&&a(_.getStart(t),_.getEnd()),VF(_)||qF(_)||HN(_)||GN(_)||l&&HN(l)||_E(_)&&WF(o)||QP(_)&&_E(o)||lE(_)&&QP(o)&&1===i.length||lP(_)||CP(_)||TP(_)){o=_;break}qF(o)&&u&&Ml(u)&&a(_.getFullStart()-2,u.getStart()+1);const e=QP(_)&&Tue(l)&&Cue(u)&&!$b(l.getStart(),u.getStart(),t);let s=e?l.getEnd():_.getStart();const c=e?u.getStart():wue(t,_);if(Du(_)&&(null==(n=_.jsDoc)?void 0:n.length)&&a(ge(_.jsDoc).getStart(),c),QP(_)){const e=_.getChildren()[0];e&&Du(e)&&(null==(r=e.jsDoc)?void 0:r.length)&&e.getStart()!==_.pos&&(s=Math.min(s,ge(e.jsDoc).getStart()))}a(s,c),(UN(_)||M_(_))&&a(s+1,c-1),o=_;break}if(c===i.length-1)break e}}return i;function a(t,n){if(t!==n){const r=$s(t,n);(!i||!pY(r,i.textSpan)&&zs(r,e))&&(i={textSpan:r,...i&&{parent:i}})}}function s(e,n){a(e,n);let r=e;for(;47===t.text.charCodeAt(r);)r++;a(r,n)}}function yue(e,t,n){return un.assert(n.pos<=t),thue});var vue=en(xE,bE);function bue(e){var t;if(sP(e))return xue(e.getChildAt(0).getChildren(),vue);if(nF(e)){const[t,...n]=e.getChildren(),r=un.checkDefined(n.pop());un.assertEqual(t.kind,19),un.assertEqual(r.kind,20);const i=xue(n,t=>t===e.readonlyToken||148===t.kind||t===e.questionToken||58===t.kind);return[t,Sue(kue(xue(i,({kind:e})=>23===e||169===e||24===e),({kind:e})=>59===e)),r]}if(wD(e)){const n=xue(e.getChildren(),t=>t===e.name||T(e.modifiers,t)),r=321===(null==(t=n[0])?void 0:t.kind)?n[0]:void 0,i=kue(r?n.slice(1):n,({kind:e})=>59===e);return r?[r,Sue(i)]:i}if(TD(e)){const t=xue(e.getChildren(),t=>t===e.dotDotDotToken||t===e.name);return kue(xue(t,n=>n===t[0]||n===e.questionToken),({kind:e})=>64===e)}return lF(e)?kue(e.getChildren(),({kind:e})=>64===e):e.getChildren()}function xue(e,t){const n=[];let r;for(const i of e)t(i)?(r=r||[],r.push(i)):(r&&(n.push(Sue(r)),r=void 0),n.push(i));return r&&n.push(Sue(r)),n}function kue(e,t,n=!0){if(e.length<2)return e;const r=k(e,t);if(-1===r)return e;const i=e.slice(0,r),o=e[r],a=ve(e),s=n&&27===a.kind,c=e.slice(r+1,s?e.length-1:void 0),l=ne([i.length?Sue(i):void 0,o,c.length?Sue(c):void 0]);return s?l.concat(a):l}function Sue(e){return un.assertGreaterThanOrEqual(e.length,1),CT(CI.createSyntaxList(e),e[0].pos,ve(e).end)}function Tue(e){const t=e&&e.kind;return 19===t||23===t||21===t||287===t}function Cue(e){const t=e&&e.kind;return 20===t||24===t||22===t||288===t}function wue(e,t){switch(t.kind){case 342:case 339:case 349:case 347:case 344:return e.getLineEndOfPosition(t.getStart());default:return t.getEnd()}}var Nue={};i(Nue,{getSymbolDisplayPartsDocumentationAndSymbolKind:()=>Oue,getSymbolKind:()=>Fue,getSymbolModifiers:()=>Aue});var Due=70246400;function Fue(e,t,n){const r=Eue(e,t,n);if(""!==r)return r;const i=ax(t);return 32&i?Hu(t,232)?"local class":"class":384&i?"enum":524288&i?"type":64&i?"interface":262144&i?"type parameter":8&i?"enum member":2097152&i?"alias":1536&i?"module":r}function Eue(e,t,n){const r=e.getRootSymbols(t);if(1===r.length&&8192&ge(r).flags&&0!==e.getTypeOfSymbolAtLocation(t,n).getNonNullableType().getCallSignatures().length)return"method";if(e.isUndefinedSymbol(t))return"var";if(e.isArgumentsSymbol(t))return"local var";if(110===n.kind&&V_(n)||uv(n))return"parameter";const i=ax(t);if(3&i)return xY(t)?"parameter":t.valueDeclaration&&af(t.valueDeclaration)?"const":t.valueDeclaration&&of(t.valueDeclaration)?"using":t.valueDeclaration&&rf(t.valueDeclaration)?"await using":d(t.declarations,cf)?"let":Lue(t)?"local var":"var";if(16&i)return Lue(t)?"local function":"function";if(32768&i)return"getter";if(65536&i)return"setter";if(8192&i)return"method";if(16384&i)return"constructor";if(131072&i)return"index";if(4&i){if(33554432&i&&6&t.links.checkFlags){const r=d(e.getRootSymbols(t),e=>{if(98311&e.getFlags())return"property"});return r||(e.getTypeOfSymbolAtLocation(t,n).getCallSignatures().length?"method":"property")}return"property"}return""}function Pue(e){if(e.declarations&&e.declarations.length){const[t,...n]=e.declarations,r=mQ(t,u(n)&&$Z(t)&&$(n,e=>!$Z(e))?65536:0);if(r)return r.split(",")}return[]}function Aue(e,t){if(!t)return"";const n=new Set(Pue(t));if(2097152&t.flags){const r=e.getAliasedSymbol(t);r!==t&&d(Pue(r),e=>{n.add(e)})}return 16777216&t.flags&&n.add("optional"),n.size>0?Oe(n.values()).join(","):""}function Iue(e,t,n,r,i,o,a,s,c,_){var u;const p=[];let m=[],g=[];const h=ax(t);let y=1&a?Eue(e,t,i):"",v=!1;const x=110===i.kind&&xm(i)||uv(i);let k,S,C=!1;const w={canIncreaseExpansionDepth:!1,truncated:!1};let N=!1;if(110===i.kind&&!x)return{displayParts:[CY(110)],documentation:[],symbolKind:"primitive type",tags:void 0};if(""!==y||32&h||2097152&h){if("getter"===y||"setter"===y){const e=b(t.declarations,e=>e.name===i&&212!==e.kind);if(e)switch(e.kind){case 178:y="getter";break;case 179:y="setter";break;case 173:y="accessor";break;default:un.assertNever(e)}else y="property"}let n,a;if(o??(o=x?e.getTypeAtLocation(i):e.getTypeOfSymbolAtLocation(t,i)),i.parent&&212===i.parent.kind){const e=i.parent.name;(e===i||e&&0===e.getFullWidth())&&(i=i.parent)}if(j_(i)?a=i:(HG(i)||KG(i)||i.parent&&(bu(i.parent)||gF(i.parent))&&r_(t.valueDeclaration))&&(a=i.parent),a){n=e.getResolvedSignature(a);const i=215===a.kind||fF(a)&&108===a.expression.kind,s=i?o.getConstructSignatures():o.getCallSignatures();if(!n||T(s,n.target)||T(s,n)||(n=s.length?s[0]:void 0),n){switch(i&&32&h?(y="constructor",L(o.symbol,y)):2097152&h?(y="alias",j(y),p.push(TY()),i&&(4&n.flags&&(p.push(CY(128)),p.push(TY())),p.push(CY(105)),p.push(TY())),O(t)):L(t,y),y){case"JSX attribute":case"property":case"var":case"const":case"let":case"parameter":case"local var":p.push(wY(59)),p.push(TY()),16&gx(o)||!o.symbol||(se(p,qY(e,o.symbol,r,void 0,5)),p.push(BY())),i&&(4&n.flags&&(p.push(CY(128)),p.push(TY())),p.push(CY(105)),p.push(TY())),M(n,s,262144);break;default:M(n,s)}v=!0,C=s.length>1}}else if(fX(i)&&!(98304&h)||137===i.kind&&177===i.parent.kind){const r=i.parent;if(t.declarations&&b(t.declarations,e=>e===(137===i.kind?r.parent:r))){const i=177===r.kind?o.getNonNullableType().getConstructSignatures():o.getNonNullableType().getCallSignatures();n=e.isImplementationOfOverload(r)?i[0]:e.getSignatureFromDeclaration(r),177===r.kind?(y="constructor",L(o.symbol,y)):L(180!==r.kind||2048&o.symbol.flags||4096&o.symbol.flags?t:o.symbol,y),n&&M(n,i),v=!0,C=i.length>1}}}if(32&h&&!v&&!x){P();const e=Hu(t,232);e&&(j("local class"),p.push(TY())),I(t,a)||(e||(p.push(CY(86)),p.push(TY())),O(t),R(t,n))}if(64&h&&2&a&&(E(),I(t,a)||(p.push(CY(120)),p.push(TY()),O(t),R(t,n))),524288&h&&2&a&&(E(),p.push(CY(156)),p.push(TY()),O(t),R(t,n),p.push(TY()),p.push(NY(64)),p.push(TY()),se(p,zY(e,i.parent&&kl(i.parent)?e.getTypeAtLocation(i.parent):e.getDeclaredTypeOfSymbol(t),r,8388608,c,_,w))),384&h&&(E(),I(t,a)||($(t.declarations,e=>mE(e)&&tf(e))&&(p.push(CY(87)),p.push(TY())),p.push(CY(94)),p.push(TY()),O(t,void 0))),1536&h&&!x&&(E(),!I(t,a))){const e=Hu(t,268),n=e&&e.name&&80===e.name.kind;p.push(CY(n?145:144)),p.push(TY()),O(t)}if(262144&h&&2&a)if(E(),p.push(wY(21)),p.push(PY("type parameter")),p.push(wY(22)),p.push(TY()),O(t),t.parent)A(),O(t.parent,r),R(t.parent,r);else{const r=Hu(t,169);if(void 0===r)return un.fail();const i=r.parent;if(i)if(r_(i)){A();const t=e.getSignatureFromDeclaration(i);181===i.kind?(p.push(CY(105)),p.push(TY())):180!==i.kind&&i.name&&O(i.symbol),se(p,UY(e,t,n,32))}else fE(i)&&(A(),p.push(CY(156)),p.push(TY()),O(i.symbol),R(i.symbol,n))}if(8&h){y="enum member",L(t,"enum member");const n=null==(u=t.declarations)?void 0:u[0];if(307===(null==n?void 0:n.kind)){const t=e.getConstantValue(n);void 0!==t&&(p.push(TY()),p.push(NY(64)),p.push(TY()),p.push(SY(ip(t),"number"==typeof t?7:8)))}}if(2097152&t.flags){if(E(),!v||0===m.length&&0===g.length){const n=e.getAliasedSymbol(t);if(n!==t&&n.declarations&&n.declarations.length>0){const i=n.declarations[0],s=Cc(i);if(s&&!v){const l=lp(i)&&Nv(i,128),u="default"!==t.name&&!l,d=Iue(e,n,vd(i),r,s,o,a,u?t:n,c,_);p.push(...d.displayParts),p.push(BY()),k=d.documentation,S=d.tags,w&&d.canIncreaseVerbosityLevel&&(w.canIncreaseExpansionDepth=!0)}else k=n.getContextualDocumentationComment(i,e),S=n.getJsDocTags(e)}}if(t.declarations)switch(t.declarations[0].kind){case 271:p.push(CY(95)),p.push(TY()),p.push(CY(145));break;case 278:p.push(CY(95)),p.push(TY()),p.push(CY(t.declarations[0].isExportEquals?64:90));break;case 282:p.push(CY(95));break;default:p.push(CY(102))}p.push(TY()),O(t),d(t.declarations,t=>{if(272===t.kind){const n=t;if(Tm(n))p.push(TY()),p.push(NY(64)),p.push(TY()),p.push(CY(149)),p.push(wY(21)),p.push(SY(Xd(Cm(n)),8)),p.push(wY(22));else{const t=e.getSymbolAtLocation(n.moduleReference);t&&(p.push(TY()),p.push(NY(64)),p.push(TY()),O(t,r))}return!0}})}if(!v)if(""!==y){if(o)if(x?(E(),p.push(CY(110))):L(t,y),"property"===y||"accessor"===y||"getter"===y||"setter"===y||"JSX attribute"===y||3&h||"local var"===y||"index"===y||"using"===y||"await using"===y||x){if(p.push(wY(59)),p.push(TY()),o.symbol&&262144&o.symbol.flags&&"index"!==y){const t=JY(t=>{const n=e.typeParameterToDeclaration(o,r,Due,void 0,void 0,c,_,w);F().writeNode(4,n,vd(pc(r)),t)},c);se(p,t)}else se(p,zY(e,o,r,void 0,c,_,w));if(Xu(t)&&t.links.target&&Xu(t.links.target)&&t.links.target.links.tupleLabelDeclaration){const e=t.links.target.links.tupleLabelDeclaration;un.assertNode(e.name,aD),p.push(TY()),p.push(wY(21)),p.push(PY(gc(e.name))),p.push(wY(22))}}else if(16&h||8192&h||16384&h||131072&h||98304&h||"method"===y){const e=o.getNonNullableType().getCallSignatures();e.length&&(M(e[0],e),C=e.length>1)}}else y=Fue(e,t,i);if(0!==m.length||C||(m=t.getContextualDocumentationComment(r,e)),0===m.length&&4&h&&t.parent&&t.declarations&&d(t.parent.declarations,e=>308===e.kind))for(const n of t.declarations){if(!n.parent||227!==n.parent.kind)continue;const t=e.getSymbolAtLocation(n.parent.right);if(t&&(m=t.getDocumentationComment(e),g=t.getJsDocTags(e),m.length>0))break}if(0===m.length&&aD(i)&&t.valueDeclaration&&lF(t.valueDeclaration)){const n=t.valueDeclaration,r=n.parent,i=n.propertyName||n.name;if(aD(i)&&sF(r)){const t=qh(i),n=e.getTypeAtLocation(r);m=f(n.isUnion()?n.types:[n],n=>{const r=n.getProperty(t);return r?r.getDocumentationComment(e):void 0})||l}}0!==g.length||C||Im(i)||(g=t.getContextualJsDocTags(r,e)),0===m.length&&k&&(m=k),0===g.length&&S&&(g=S);const D=!w.truncated&&w.canIncreaseExpansionDepth;return{displayParts:p,documentation:m,symbolKind:y,tags:0===g.length?void 0:g,canIncreaseVerbosityLevel:void 0!==_?D:void 0};function F(){return vU()}function E(){p.length&&p.push(BY()),P()}function P(){s&&(j("alias"),p.push(TY()))}function A(){p.push(TY()),p.push(CY(103)),p.push(TY())}function I(t,n){if(N)return!0;if(function(t,n){if(void 0===_)return!1;const r=96&t.flags?e.getDeclaredTypeOfSymbol(t):e.getTypeOfSymbolAtLocation(t,i);return!(!r||e.isLibType(r))&&(0<_||(n&&(n.canIncreaseExpansionDepth=!0),!1))}(t,w)){const r=function(e){let t=0;return 1&e&&(t|=111551),2&e&&(t|=788968),4&e&&(t|=1920),t}(n),i=JY(n=>{const i=e.getEmitResolver().symbolToDeclarations(t,r,17408,c,void 0!==_?_-1:void 0,w),o=F(),a=t.valueDeclaration&&vd(t.valueDeclaration);i.forEach((e,t)=>{t>0&&n.writeLine(),o.writeNode(4,e,a,n)})},c);return se(p,i),N=!0,!0}return!1}function O(r,i){let o;s&&r===t&&(r=s),"index"===y&&(o=e.getIndexInfosOfIndexSymbol(r));let a=[];131072&r.flags&&o?(r.parent&&(a=qY(e,r.parent)),a.push(wY(23)),o.forEach((t,n)=>{a.push(...zY(e,t.keyType)),n!==o.length-1&&(a.push(TY()),a.push(wY(52)),a.push(TY()))}),a.push(wY(24))):a=qY(e,r,i||n,void 0,7),se(p,a),16777216&t.flags&&p.push(wY(58))}function L(e,t){E(),t&&(j(t),e&&!$(e.declarations,e=>bF(e)||(vF(e)||AF(e))&&!e.name)&&(p.push(TY()),O(e)))}function j(e){switch(e){case"var":case"function":case"let":case"const":case"constructor":case"using":case"await using":return void p.push(EY(e));default:return p.push(wY(21)),p.push(EY(e)),void p.push(wY(22))}}function M(t,n,i=0){se(p,UY(e,t,r,32|i,c,_,w)),n.length>1&&(p.push(TY()),p.push(wY(21)),p.push(NY(40)),p.push(SY((n.length-1).toString(),7)),p.push(TY()),p.push(PY(2===n.length?"overload":"overloads")),p.push(wY(22))),m=t.getDocumentationComment(e),g=t.getJsDocTags(),n.length>1&&0===m.length&&0===g.length&&(m=n[0].getDocumentationComment(e),g=n[0].getJsDocTags().filter(e=>"deprecated"!==e.name))}function R(t,n){const r=JY(r=>{const i=e.symbolToTypeParameterDeclarations(t,n,Due);F().writeList(53776,i,vd(pc(n)),r)});se(p,r)}}function Oue(e,t,n,r,i,o=WG(i),a,s,c){return Iue(e,t,n,r,i,void 0,o,a,s,c)}function Lue(e){return!e.parent&&d(e.declarations,e=>{if(219===e.kind)return!0;if(261!==e.kind&&263!==e.kind)return!1;for(let t=e.parent;!Bf(t);t=t.parent)if(308===t.kind||269===t.kind)return!1;return!0})}var jue={};function Mue(e){const t=e.__pos;return un.assert("number"==typeof t),t}function Rue(e,t){un.assert("number"==typeof t),e.__pos=t}function Bue(e){const t=e.__end;return un.assert("number"==typeof t),t}function Jue(e,t){un.assert("number"==typeof t),e.__end=t}i(jue,{ChangeTracker:()=>Yue,LeadingTriviaOption:()=>zue,TrailingTriviaOption:()=>que,applyChanges:()=>nde,assignPositionsToNode:()=>ode,createWriter:()=>sde,deleteNode:()=>lde,getAdjustedEndPosition:()=>Kue,isThisTypeAnnotatable:()=>Xue,isValidLocationToAddComment:()=>cde});var zue=(e=>(e[e.Exclude=0]="Exclude",e[e.IncludeAll=1]="IncludeAll",e[e.JSDoc=2]="JSDoc",e[e.StartLine=3]="StartLine",e))(zue||{}),que=(e=>(e[e.Exclude=0]="Exclude",e[e.ExcludeWhitespace=1]="ExcludeWhitespace",e[e.Include=2]="Include",e))(que||{});function Uue(e,t){return Qa(e,t,!1,!0)}var Vue={leadingTriviaOption:0,trailingTriviaOption:0};function Wue(e,t,n,r){return{pos:$ue(e,t,r),end:Kue(e,n,r)}}function $ue(e,t,n,r=!1){var i,o;const{leadingTriviaOption:a}=n;if(0===a)return t.getStart(e);if(3===a){const n=t.getStart(e),r=xX(n,e);return SX(t,r)?r:n}if(2===a){const n=vf(t,e.text);if(null==n?void 0:n.length)return xX(n[0].pos,e)}const s=t.getFullStart(),c=t.getStart(e);if(s===c)return c;const l=xX(s,e);if(xX(c,e)===l)return 1===a?s:c;if(r){const t=(null==(i=_s(e.text,s))?void 0:i[0])||(null==(o=us(e.text,s))?void 0:o[0]);if(t)return Qa(e.text,t.end,!0,!0)}const _=s>0?1:0;let u=Sd(nv(e,l)+_,e);return u=Uue(e.text,u),Sd(nv(e,u),e)}function Hue(e,t,n){const{end:r}=t,{trailingTriviaOption:i}=n;if(2===i){const n=us(e.text,r);if(n){const r=nv(e,t.end);for(const t of n){if(2===t.kind||nv(e,t.pos)>r)break;if(nv(e,t.end)>r)return Qa(e.text,t.end,!0,!0)}}}}function Kue(e,t,n){var r;const{end:i}=t,{trailingTriviaOption:o}=n;if(0===o)return i;if(1===o){const t=K(us(e.text,i),_s(e.text,i));return(null==(r=null==t?void 0:t[t.length-1])?void 0:r.end)||i}const a=Hue(e,t,n);if(a)return a;const s=Qa(e.text,i,!0);return s===i||2!==o&&!Va(e.text.charCodeAt(s-1))?i:s}function Gue(e,t){return!!t&&!!e.parent&&(28===t.kind||27===t.kind&&211===e.parent.kind)}function Xue(e){return vF(e)||uE(e)}var Que,Yue=class e{constructor(e,t){this.newLineCharacter=e,this.formatContext=t,this.changes=[],this.classesWithNodesInsertedAtStart=new Map,this.deletedNodes=[]}static fromContext(t){return new e(RY(t.host,t.formatContext.options),t.formatContext)}static with(t,n){const r=e.fromContext(t);return n(r),r.getChanges()}pushRaw(e,t){un.assertEqual(e.fileName,t.fileName);for(const n of t.textChanges)this.changes.push({kind:3,sourceFile:e,text:n.newText,range:IQ(n.span)})}deleteRange(e,t){this.changes.push({kind:0,sourceFile:e,range:t})}delete(e,t){this.deletedNodes.push({sourceFile:e,node:t})}deleteNode(e,t,n={leadingTriviaOption:1}){this.deleteRange(e,Wue(e,t,t,n))}deleteNodes(e,t,n={leadingTriviaOption:1},r){for(const i of t){const t=$ue(e,i,n,r),o=Kue(e,i,n);this.deleteRange(e,{pos:t,end:o}),r=!!Hue(e,i,n)}}deleteModifier(e,t){this.deleteRange(e,{pos:t.getStart(e),end:Qa(e.text,t.end,!0)})}deleteNodeRange(e,t,n,r={leadingTriviaOption:1}){const i=$ue(e,t,r),o=Kue(e,n,r);this.deleteRange(e,{pos:i,end:o})}deleteNodeRangeExcludingEnd(e,t,n,r={leadingTriviaOption:1}){const i=$ue(e,t,r),o=void 0===n?e.text.length:$ue(e,n,r);this.deleteRange(e,{pos:i,end:o})}replaceRange(e,t,n,r={}){this.changes.push({kind:1,sourceFile:e,range:t,options:r,node:n})}replaceNode(e,t,n,r=Vue){this.replaceRange(e,Wue(e,t,t,r),n,r)}replaceNodeRange(e,t,n,r,i=Vue){this.replaceRange(e,Wue(e,t,n,i),r,i)}replaceRangeWithNodes(e,t,n,r={}){this.changes.push({kind:2,sourceFile:e,range:t,options:r,nodes:n})}replaceNodeWithNodes(e,t,n,r=Vue){this.replaceRangeWithNodes(e,Wue(e,t,t,r),n,r)}replaceNodeWithText(e,t,n){this.replaceRangeWithText(e,Wue(e,t,t,Vue),n)}replaceNodeRangeWithNodes(e,t,n,r,i=Vue){this.replaceRangeWithNodes(e,Wue(e,t,n,i),r,i)}nodeHasTrailingComment(e,t,n=Vue){return!!Hue(e,t,n)}nextCommaToken(e,t){const n=QX(t,t.parent,e);return n&&28===n.kind?n:void 0}replacePropertyAssignment(e,t,n){const r=this.nextCommaToken(e,t)?"":","+this.newLineCharacter;this.replaceNode(e,t,n,{suffix:r})}insertNodeAt(e,t,n,r={}){this.replaceRange(e,Ab(t),n,r)}insertNodesAt(e,t,n,r={}){this.replaceRangeWithNodes(e,Ab(t),n,r)}insertNodeAtTopOfFile(e,t,n){this.insertAtTopOfFile(e,t,n)}insertNodesAtTopOfFile(e,t,n){this.insertAtTopOfFile(e,t,n)}insertAtTopOfFile(e,t,n){const r=function(e){let t;for(const n of e.statements){if(!pf(n))break;t=n}let n=0;const r=e.text;if(t)return n=t.end,c(),n;const i=ds(r);void 0!==i&&(n=i.length,c());const o=_s(r,n);if(!o)return n;let a,s;for(const t of o){if(3===t.kind){if(Bd(r,t.pos)){a={range:t,pinnedOrTripleSlash:!0};continue}}else if(Rd(r,t.pos,t.end)){a={range:t,pinnedOrTripleSlash:!0};continue}if(a){if(a.pinnedOrTripleSlash)break;if(e.getLineAndCharacterOfPosition(t.pos).line>=e.getLineAndCharacterOfPosition(a.range.end).line+2)break}if(e.statements.length&&(void 0===s&&(s=e.getLineAndCharacterOfPosition(e.statements[0].getStart()).line),sZe(e.comment)?mw.createJSDocText(e.comment):e.comment),r=be(t.jsDoc);return r&&$b(r.pos,r.end,e)&&0===u(n)?void 0:mw.createNodeArray(y(n,mw.createJSDocText("\n")))}replaceJSDocComment(e,t,n){this.insertJsdocCommentBefore(e,function(e){if(220!==e.kind)return e;const t=173===e.parent.kind?e.parent:e.parent.parent;return t.jsDoc=e.jsDoc,t}(t),mw.createJSDocComment(this.createJSDocText(e,t),mw.createNodeArray(n)))}addJSDocTags(e,t,n){const r=L(t.jsDoc,e=>e.tags),i=n.filter(e=>!r.some((t,n)=>{const i=function(e,t){if(e.kind===t.kind)switch(e.kind){case 342:{const n=e,r=t;return aD(n.name)&&aD(r.name)&&n.name.escapedText===r.name.escapedText?mw.createJSDocParameterTag(void 0,r.name,!1,r.typeExpression,r.isNameFirst,n.comment):void 0}case 343:return mw.createJSDocReturnTag(void 0,t.typeExpression,e.comment);case 345:return mw.createJSDocTypeTag(void 0,t.typeExpression,e.comment)}}(t,e);return i&&(r[n]=i),!!i}));this.replaceJSDocComment(e,t,[...r,...i])}filterJSDocTags(e,t,n){this.replaceJSDocComment(e,t,N(L(t.jsDoc,e=>e.tags),n))}replaceRangeWithText(e,t,n){this.changes.push({kind:3,sourceFile:e,range:t,text:n})}insertText(e,t,n){this.replaceRangeWithText(e,Ab(t),n)}tryInsertTypeAnnotation(e,t,n){let r;if(r_(t)){if(r=OX(t,22,e),!r){if(!bF(t))return!1;r=ge(t.parameters)}}else r=(261===t.kind?t.exclamationToken:t.questionToken)??t.name;return this.insertNodeAt(e,r.end,n,{prefix:": "}),!0}tryInsertThisTypeAnnotation(e,t,n){const r=OX(t,21,e).getStart(e)+1,i=t.parameters.length?", ":"";this.insertNodeAt(e,r,n,{prefix:"this: ",suffix:i})}insertTypeParameters(e,t,n){const r=(OX(t,21,e)||ge(t.parameters)).getStart(e);this.insertNodesAt(e,r,n,{prefix:"<",suffix:">",joiner:", "})}getOptionsForInsertNodeBefore(e,t,n){return pu(e)||__(e)?{suffix:n?this.newLineCharacter+this.newLineCharacter:this.newLineCharacter}:lE(e)?{suffix:", "}:TD(e)?TD(t)?{suffix:", "}:{}:UN(e)&&xE(e.parent)||EE(e)?{suffix:", "}:PE(e)?{suffix:","+(n?this.newLineCharacter:" ")}:un.failBadSyntaxKind(e)}insertNodeAtConstructorStart(e,t,n){const r=fe(t.body.statements);r&&t.body.multiLine?this.insertNodeBefore(e,r,n):this.replaceConstructorBody(e,t,[n,...t.body.statements])}insertNodeAtConstructorStartAfterSuperCall(e,t,n){const r=b(t.body.statements,e=>HF(e)&&lf(e.expression));r&&t.body.multiLine?this.insertNodeAfter(e,r,n):this.replaceConstructorBody(e,t,[...t.body.statements,n])}insertNodeAtConstructorEnd(e,t,n){const r=ye(t.body.statements);r&&t.body.multiLine?this.insertNodeAfter(e,r,n):this.replaceConstructorBody(e,t,[...t.body.statements,n])}replaceConstructorBody(e,t,n){this.replaceNode(e,t.body,mw.createBlock(n,!0))}insertNodeAtEndOfScope(e,t,n){const r=$ue(e,t.getLastToken(),{});this.insertNodeAt(e,r,n,{prefix:Va(e.text.charCodeAt(t.getLastToken().pos))?this.newLineCharacter:this.newLineCharacter+this.newLineCharacter,suffix:this.newLineCharacter})}insertMemberAtStart(e,t,n){this.insertNodeAtStartWorker(e,t,n)}insertNodeAtObjectStart(e,t,n){this.insertNodeAtStartWorker(e,t,n)}insertNodeAtStartWorker(e,t,n){const r=this.guessIndentationFromExistingMembers(e,t)??this.computeIndentationForNewMember(e,t);this.insertNodeAt(e,tde(t).pos,n,this.getInsertNodeAtStartInsertOptions(e,t,r))}guessIndentationFromExistingMembers(e,t){let n,r=t;for(const i of tde(t)){if(Bb(r,i,e))return;const t=i.getStart(e),o=ude.SmartIndenter.findFirstNonWhitespaceColumn(xX(t,e),t,e,this.formatContext.options);if(void 0===n)n=o;else if(o!==n)return;r=i}return n}computeIndentationForNewMember(e,t){const n=t.getStart(e);return ude.SmartIndenter.findFirstNonWhitespaceColumn(xX(n,e),n,e,this.formatContext.options)+(this.formatContext.options.indentSize??4)}getInsertNodeAtStartInsertOptions(e,t,n){const r=0===tde(t).length,i=!this.classesWithNodesInsertedAtStart.has(ZB(t));i&&this.classesWithNodesInsertedAtStart.set(ZB(t),{node:t,sourceFile:e});const o=uF(t)&&(!ef(e)||!r);return{indentation:n,prefix:(uF(t)&&ef(e)&&r&&!i?",":"")+this.newLineCharacter,suffix:o?",":pE(t)&&r?";":""}}insertNodeAfterComma(e,t,n){const r=this.insertNodeAfterWorker(e,this.nextCommaToken(e,t)||t,n);this.insertNodeAt(e,r,n,this.getInsertNodeAfterOptions(e,t))}insertNodeAfter(e,t,n){const r=this.insertNodeAfterWorker(e,t,n);this.insertNodeAt(e,r,n,this.getInsertNodeAfterOptions(e,t))}insertNodeAtEndOfList(e,t,n){this.insertNodeAt(e,t.end,n,{prefix:", "})}insertNodesAfter(e,t,n){const r=this.insertNodeAfterWorker(e,t,ge(n));this.insertNodesAt(e,r,n,this.getInsertNodeAfterOptions(e,t))}insertNodeAfterWorker(e,t,n){var r,i;return i=n,((wD(r=t)||ND(r))&&y_(i)&&168===i.name.kind||du(r)&&du(i))&&59!==e.text.charCodeAt(t.end-1)&&this.replaceRange(e,Ab(t.end),mw.createToken(27)),Kue(e,t,{})}getInsertNodeAfterOptions(e,t){const n=this.getInsertNodeAfterOptionsWorker(t);return{...n,prefix:t.end===e.end&&pu(t)?n.prefix?`\n${n.prefix}`:"\n":n.prefix}}getInsertNodeAfterOptionsWorker(e){switch(e.kind){case 264:case 268:return{prefix:this.newLineCharacter,suffix:this.newLineCharacter};case 261:case 11:case 80:return{prefix:", "};case 304:return{suffix:","+this.newLineCharacter};case 95:return{prefix:" "};case 170:return{};default:return un.assert(pu(e)||y_(e)),{suffix:this.newLineCharacter}}}insertName(e,t,n){if(un.assert(!t.name),220===t.kind){const r=OX(t,39,e),i=OX(t,21,e);i?(this.insertNodesAt(e,i.getStart(e),[mw.createToken(100),mw.createIdentifier(n)],{joiner:" "}),lde(this,e,r)):(this.insertText(e,ge(t.parameters).getStart(e),`function ${n}(`),this.replaceRange(e,r,mw.createToken(22))),242!==t.body.kind&&(this.insertNodesAt(e,t.body.getStart(e),[mw.createToken(19),mw.createToken(107)],{joiner:" ",suffix:" "}),this.insertNodesAt(e,t.body.end,[mw.createToken(27),mw.createToken(20)],{joiner:" "}))}else{const r=OX(t,219===t.kind?100:86,e).end;this.insertNodeAt(e,r,mw.createIdentifier(n),{prefix:" "})}}insertExportModifier(e,t){this.insertText(e,t.getStart(e),"export ")}insertImportSpecifierAtIndex(e,t,n,r){const i=n.elements[r-1];i?this.insertNodeInListAfter(e,i,t):this.insertNodeBefore(e,n.elements[0],t,!$b(n.elements[0].getStart(),n.parent.parent.getStart(),e))}insertNodeInListAfter(e,t,n,r=ude.SmartIndenter.getContainingList(t,e)){if(!r)return void un.fail("node is not a list element");const i=Yd(r,t);if(i<0)return;const o=t.getEnd();if(i!==r.length-1){const o=HX(e,t.end);if(o&&Gue(t,o)){const t=r[i+1],a=Uue(e.text,t.getFullStart()),s=`${Fa(o.kind)}${e.text.substring(o.end,a)}`;this.insertNodesAt(e,a,[n],{suffix:s})}}else{const a=t.getStart(e),s=xX(a,e);let c,l=!1;if(1===r.length)c=28;else{const n=YX(t.pos,e);c=Gue(t,n)?n.kind:28,l=xX(r[i-1].getStart(e),e)!==s}if(!function(e,t){let n=t;for(;n{const[n,r]=function(e,t){const n=OX(e,19,t),r=OX(e,20,t);return[null==n?void 0:n.end,null==r?void 0:r.end]}(e,t);if(void 0!==n&&void 0!==r){const i=0===tde(e).length,o=$b(n,r,t);i&&o&&n!==r-1&&this.deleteRange(t,Ab(n,r-1)),o&&this.insertText(t,r-1,this.newLineCharacter)}})}finishDeleteDeclarations(){const e=new Set;for(const{sourceFile:t,node:n}of this.deletedNodes)this.deletedNodes.some(e=>e.sourceFile===t&&kX(e.node,n))||(Qe(n)?this.deleteRange(t,lT(t,n)):rde.deleteDeclaration(this,e,t,n));e.forEach(t=>{const n=t.getSourceFile(),r=ude.SmartIndenter.getContainingList(t,n);if(t!==ve(r))return;const i=S(r,t=>!e.has(t),r.length-2);-1!==i&&this.deleteRange(n,{pos:r[i].end,end:Zue(n,r[i+1])})})}getChanges(e){this.finishDeleteDeclarations(),this.finishClassesWithNodesInsertedAtStart();const t=Que.getTextChangesFromChanges(this.changes,this.newLineCharacter,this.formatContext,e);return this.newFileChanges&&this.newFileChanges.forEach((e,n)=>{t.push(Que.newFileChanges(n,e,this.newLineCharacter,this.formatContext))}),t}createNewFile(e,t,n){this.insertStatementsInNewFile(t,n,e)}};function Zue(e,t){return Qa(e.text,$ue(e,t,{leadingTriviaOption:1}),!1,!0)}function ede(e,t,n,r){const i=Zue(e,r);if(void 0===n||$b(Kue(e,t,{}),i,e))return i;const o=YX(r.getStart(e),e);if(Gue(t,o)){const r=YX(t.getStart(e),e);if(Gue(n,r)){const t=Qa(e.text,o.getEnd(),!0,!0);if($b(r.getStart(e),o.getStart(e),e))return Va(e.text.charCodeAt(t-1))?t-1:t;if(Va(e.text.charCodeAt(t)))return t}}return i}function tde(e){return uF(e)?e.properties:e.members}function nde(e,t){for(let n=t.length-1;n>=0;n--){const{span:r,newText:i}=t[n];e=`${e.substring(0,r.start)}${i}${e.substring(Fs(r))}`}return e}(e=>{function t(e,t,r,i){const o=O(t,e=>e.statements.map(t=>4===t?"":n(t,e.oldFile,r).text)).join(r),a=eO("any file name",o,{languageVersion:99,jsDocParsingMode:1},!0,e);return nde(o,ude.formatDocument(a,i))+r}function n(e,t,n){const r=sde(n);return kU({newLine:KZ(n),neverAsciiEscape:!0,preserveSourceNewlines:!0,terminateUnterminatedLiterals:!0},r).writeNode(4,e,t,r),{text:r.getText(),node:ode(e)}}e.getTextChangesFromChanges=function(e,t,r,i){return B(Je(e,e=>e.sourceFile.path),e=>{const o=e[0].sourceFile,a=_e(e,(e,t)=>e.range.pos-t.range.pos||e.range.end-t.range.end);for(let e=0;e`${JSON.stringify(a[e].range)} and ${JSON.stringify(a[e+1].range)}`);const s=B(a,e=>{const a=AQ(e.range),s=1===e.kind?vd(_c(e.node))??e.sourceFile:2===e.kind?vd(_c(e.nodes[0]))??e.sourceFile:e.sourceFile,c=function(e,t,r,i,o,a){var s;if(0===e.kind)return"";if(3===e.kind)return e.text;const{options:c={},range:{pos:l}}=e,_=e=>function(e,t,r,i,{indentation:o,prefix:a,delta:s},c,l,_){const{node:u,text:d}=n(e,t,c);_&&_(u,d);const p=XZ(l,t),f=void 0!==o?o:ude.SmartIndenter.getIndentation(i,r,p,a===c||xX(i,t)===i);void 0===s&&(s=ude.SmartIndenter.shouldIndentChildNode(p,e)&&p.indentSize||0);const m={text:d,getLineAndCharacterOfPosition(e){return za(this,e)}};return nde(d,ude.formatNodeGivenIndentation(u,m,t.languageVariant,f,s,{...l,options:p}))}(e,t,r,l,c,i,o,a),u=2===e.kind?e.nodes.map(e=>Rt(_(e),i)).join((null==(s=e.options)?void 0:s.joiner)||i):_(e.node),d=void 0!==c.indentation||xX(l,t)===l?u:u.replace(/^\s+/,"");return(c.prefix||"")+d+(!c.suffix||Mt(d,c.suffix)?"":c.suffix)}(e,s,o,t,r,i);if(a.length!==c.length||!VZ(s.text,c,a.start))return LQ(a,c)});return s.length>0?{fileName:o.fileName,textChanges:s}:void 0})},e.newFileChanges=function(e,n,r,i){const o=t(xS(e),n,r,i);return{fileName:e,textChanges:[LQ(Ws(0,0),o)],isNewFile:!0}},e.newFileChangesWorker=t,e.getNonformattedText=n})(Que||(Que={}));var rde,ide={...Wq,factory:iw(1|Wq.factory.flags,Wq.factory.baseFactory)};function ode(e){const t=vJ(e,ode,ide,ade,ode),n=ey(t)?t:Object.create(t);return CT(n,Mue(e),Bue(e)),n}function ade(e,t,n,r,i){const o=_J(e,t,n,r,i);if(!o)return o;un.assert(e);const a=o===e?mw.createNodeArray(o.slice(0)):o;return CT(a,Mue(e),Bue(e)),a}function sde(e){let t=0;const n=Oy(e);function r(e,r){if(r||!function(e){return Qa(e,0)===e.length}(e)){t=n.getTextPos();let r=0;for(;qa(e.charCodeAt(e.length-r-1));)r++;t-=r}}return{onBeforeEmitNode:e=>{e&&Rue(e,t)},onAfterEmitNode:e=>{e&&Jue(e,t)},onBeforeEmitNodeArray:e=>{e&&Rue(e,t)},onAfterEmitNodeArray:e=>{e&&Jue(e,t)},onBeforeEmitToken:e=>{e&&Rue(e,t)},onAfterEmitToken:e=>{e&&Jue(e,t)},write:function(e){n.write(e),r(e,!1)},writeComment:function(e){n.writeComment(e)},writeKeyword:function(e){n.writeKeyword(e),r(e,!1)},writeOperator:function(e){n.writeOperator(e),r(e,!1)},writePunctuation:function(e){n.writePunctuation(e),r(e,!1)},writeTrailingSemicolon:function(e){n.writeTrailingSemicolon(e),r(e,!1)},writeParameter:function(e){n.writeParameter(e),r(e,!1)},writeProperty:function(e){n.writeProperty(e),r(e,!1)},writeSpace:function(e){n.writeSpace(e),r(e,!1)},writeStringLiteral:function(e){n.writeStringLiteral(e),r(e,!1)},writeSymbol:function(e,t){n.writeSymbol(e,t),r(e,!1)},writeLine:function(e){n.writeLine(e)},increaseIndent:function(){n.increaseIndent()},decreaseIndent:function(){n.decreaseIndent()},getText:function(){return n.getText()},rawWrite:function(e){n.rawWrite(e),r(e,!1)},writeLiteral:function(e){n.writeLiteral(e),r(e,!0)},getTextPos:function(){return n.getTextPos()},getLine:function(){return n.getLine()},getColumn:function(){return n.getColumn()},getIndent:function(){return n.getIndent()},isAtStartOfLine:function(){return n.isAtStartOfLine()},hasTrailingComment:()=>n.hasTrailingComment(),hasTrailingWhitespace:()=>n.hasTrailingWhitespace(),clear:function(){n.clear(),t=0}}}function cde(e,t){return!(dQ(e,t)||nQ(e,t)||oQ(e,t)||aQ(e,t))}function lde(e,t,n,r={leadingTriviaOption:1}){const i=$ue(t,n,r),o=Kue(t,n,r);e.deleteRange(t,{pos:i,end:o})}function _de(e,t,n,r){const i=un.checkDefined(ude.SmartIndenter.getContainingList(r,n)),o=Yd(i,r);un.assert(-1!==o),1!==i.length?(un.assert(!t.has(r),"Deleting a node twice"),t.add(r),e.deleteRange(n,{pos:Zue(n,r),end:o===i.length-1?Kue(n,r,{}):ede(n,r,i[o-1],i[o+1])})):lde(e,n,r)}(e=>{function t(e,t,n){if(n.parent.name){const r=un.checkDefined(HX(t,n.pos-1));e.deleteRange(t,{pos:r.getStart(t),end:n.end})}else lde(e,t,Th(n,273))}e.deleteDeclaration=function(e,n,r,i){switch(i.kind){case 170:{const t=i.parent;bF(t)&&1===t.parameters.length&&!OX(t,21,r)?e.replaceNodeWithText(r,i,"()"):_de(e,n,r,i);break}case 273:case 272:lde(e,r,i,{leadingTriviaOption:r.imports.length&&i===ge(r.imports).parent||i===b(r.statements,Sp)?0:Du(i)?2:3});break;case 209:const o=i.parent;208===o.kind&&i!==ve(o.elements)?lde(e,r,i):_de(e,n,r,i);break;case 261:!function(e,t,n,r){const{parent:i}=r;if(300===i.kind)return void e.deleteNodeRange(n,OX(i,21,n),OX(i,22,n));if(1!==i.declarations.length)return void _de(e,t,n,r);const o=i.parent;switch(o.kind){case 251:case 250:e.replaceNode(n,r,mw.createObjectLiteralExpression());break;case 249:lde(e,n,i);break;case 244:lde(e,n,o,{leadingTriviaOption:Du(o)?2:3});break;default:un.assertNever(o)}}(e,n,r,i);break;case 169:_de(e,n,r,i);break;case 277:const a=i.parent;1===a.elements.length?t(e,r,a):_de(e,n,r,i);break;case 275:t(e,r,i);break;case 27:lde(e,r,i,{trailingTriviaOption:0});break;case 100:lde(e,r,i,{leadingTriviaOption:0});break;case 264:case 263:lde(e,r,i,{leadingTriviaOption:Du(i)?2:3});break;default:i.parent?kE(i.parent)&&i.parent.name===i?function(e,t,n){if(n.namedBindings){const r=n.name.getStart(t),i=HX(t,n.name.end);if(i&&28===i.kind){const n=Qa(t.text,i.end,!1,!0);e.deleteRange(t,{pos:r,end:n})}else lde(e,t,n.name)}else lde(e,t,n.parent)}(e,r,i.parent):fF(i.parent)&&T(i.parent.arguments,i)?_de(e,n,r,i):lde(e,r,i):lde(e,r,i)}}})(rde||(rde={}));var ude={};i(ude,{FormattingContext:()=>pde,FormattingRequestKind:()=>dde,RuleAction:()=>vde,RuleFlags:()=>bde,SmartIndenter:()=>qpe,anyContext:()=>yde,createTextRangeWithKind:()=>Kpe,formatDocument:()=>Zpe,formatNodeGivenIndentation:()=>ife,formatOnClosingCurly:()=>Ype,formatOnEnter:()=>Gpe,formatOnOpeningCurly:()=>Qpe,formatOnSemicolon:()=>Xpe,formatSelection:()=>efe,getAllRules:()=>xde,getFormatContext:()=>Lpe,getFormattingScanner:()=>gde,getIndentationString:()=>lfe,getRangeOfEnclosingComment:()=>cfe});var dde=(e=>(e[e.FormatDocument=0]="FormatDocument",e[e.FormatSelection=1]="FormatSelection",e[e.FormatOnEnter=2]="FormatOnEnter",e[e.FormatOnSemicolon=3]="FormatOnSemicolon",e[e.FormatOnOpeningCurlyBrace=4]="FormatOnOpeningCurlyBrace",e[e.FormatOnClosingCurlyBrace=5]="FormatOnClosingCurlyBrace",e))(dde||{}),pde=class{constructor(e,t,n){this.sourceFile=e,this.formattingRequestKind=t,this.options=n}updateContext(e,t,n,r,i){this.currentTokenSpan=un.checkDefined(e),this.currentTokenParent=un.checkDefined(t),this.nextTokenSpan=un.checkDefined(n),this.nextTokenParent=un.checkDefined(r),this.contextNode=un.checkDefined(i),this.contextNodeAllOnSameLine=void 0,this.nextNodeAllOnSameLine=void 0,this.tokensAreOnSameLine=void 0,this.contextNodeBlockIsOnOneLine=void 0,this.nextNodeBlockIsOnOneLine=void 0}ContextNodeAllOnSameLine(){return void 0===this.contextNodeAllOnSameLine&&(this.contextNodeAllOnSameLine=this.NodeIsOnOneLine(this.contextNode)),this.contextNodeAllOnSameLine}NextNodeAllOnSameLine(){return void 0===this.nextNodeAllOnSameLine&&(this.nextNodeAllOnSameLine=this.NodeIsOnOneLine(this.nextTokenParent)),this.nextNodeAllOnSameLine}TokensAreOnSameLine(){if(void 0===this.tokensAreOnSameLine){const e=this.sourceFile.getLineAndCharacterOfPosition(this.currentTokenSpan.pos).line,t=this.sourceFile.getLineAndCharacterOfPosition(this.nextTokenSpan.pos).line;this.tokensAreOnSameLine=e===t}return this.tokensAreOnSameLine}ContextNodeBlockIsOnOneLine(){return void 0===this.contextNodeBlockIsOnOneLine&&(this.contextNodeBlockIsOnOneLine=this.BlockIsOnOneLine(this.contextNode)),this.contextNodeBlockIsOnOneLine}NextNodeBlockIsOnOneLine(){return void 0===this.nextNodeBlockIsOnOneLine&&(this.nextNodeBlockIsOnOneLine=this.BlockIsOnOneLine(this.nextTokenParent)),this.nextNodeBlockIsOnOneLine}NodeIsOnOneLine(e){return this.sourceFile.getLineAndCharacterOfPosition(e.getStart(this.sourceFile)).line===this.sourceFile.getLineAndCharacterOfPosition(e.getEnd()).line}BlockIsOnOneLine(e){const t=OX(e,19,this.sourceFile),n=OX(e,20,this.sourceFile);return!(!t||!n)&&this.sourceFile.getLineAndCharacterOfPosition(t.getEnd()).line===this.sourceFile.getLineAndCharacterOfPosition(n.getStart(this.sourceFile)).line}},fde=gs(99,!1,0),mde=gs(99,!1,1);function gde(e,t,n,r,i){const o=1===t?mde:fde;o.setText(e),o.resetTokenState(n);let a,s,c,l,_,u=!0;const d=i({advance:function(){_=void 0,o.getTokenFullStart()!==n?u=!!s&&4===ve(s).kind:o.scan(),a=void 0,s=void 0;let e=o.getTokenFullStart();for(;ea,lastTrailingTriviaWasNewLine:()=>u,skipToEndOf:function(e){o.resetTokenState(e.end),c=o.getTokenFullStart(),l=void 0,_=void 0,u=!1,a=void 0,s=void 0},skipToStartOf:function(e){o.resetTokenState(e.pos),c=o.getTokenFullStart(),l=void 0,_=void 0,u=!1,a=void 0,s=void 0},getTokenFullStart:()=>(null==_?void 0:_.token.pos)??o.getTokenStart(),getStartPos:()=>(null==_?void 0:_.token.pos)??o.getTokenStart()});return _=void 0,o.setText(void 0),d;function p(){const e=_?_.token.kind:o.getToken();return 1!==e&&!Ah(e)}function f(){return 1===(_?_.token.kind:o.getToken())}function m(e,t){return El(t)&&e.token.kind!==t.kind&&(e.token.kind=t.kind),e}}var hde,yde=l,vde=(e=>(e[e.None=0]="None",e[e.StopProcessingSpaceActions=1]="StopProcessingSpaceActions",e[e.StopProcessingTokenActions=2]="StopProcessingTokenActions",e[e.InsertSpace=4]="InsertSpace",e[e.InsertNewLine=8]="InsertNewLine",e[e.DeleteSpace=16]="DeleteSpace",e[e.DeleteToken=32]="DeleteToken",e[e.InsertTrailingSemicolon=64]="InsertTrailingSemicolon",e[e.StopAction=3]="StopAction",e[e.ModifySpaceAction=28]="ModifySpaceAction",e[e.ModifyTokenAction=96]="ModifyTokenAction",e))(vde||{}),bde=(e=>(e[e.None=0]="None",e[e.CanDeleteNewLines=1]="CanDeleteNewLines",e))(bde||{});function xde(){const e=[];for(let t=0;t<=166;t++)1!==t&&e.push(t);function t(...t){return{tokens:e.filter(e=>!t.some(t=>t===e)),isSpecific:!1}}const n={tokens:e,isSpecific:!1},r=Sde([...e,3]),i=Sde([...e,1]),o=Cde(83,166),a=Cde(30,79),s=[103,104,165,130,142,152],c=[80,...jQ],l=r,_=Sde([80,32,3,86,95,102]),u=Sde([22,3,92,113,98,93,85]);return[kde("IgnoreBeforeComment",n,[2,3],yde,1),kde("IgnoreAfterLineComment",2,n,yde,1),kde("NotSpaceBeforeColon",n,59,[spe,Lde,jde],16),kde("SpaceAfterColon",59,n,[spe,Lde,ppe],4),kde("NoSpaceBeforeQuestionMark",n,58,[spe,Lde,jde],16),kde("SpaceAfterQuestionMarkInConditionalOperator",58,n,[spe,Bde],4),kde("NoSpaceAfterQuestionMark",58,n,[spe,Rde],16),kde("NoSpaceBeforeDot",n,[25,29],[spe,Ope],16),kde("NoSpaceAfterDot",[25,29],n,[spe],16),kde("NoSpaceBetweenImportParenInImportType",102,21,[spe,ape],16),kde("NoSpaceAfterUnaryPrefixOperator",[46,47,55,54],[9,10,80,21,23,19,110,105],[spe,Lde],16),kde("NoSpaceAfterUnaryPreincrementOperator",46,[80,21,110,105],[spe],16),kde("NoSpaceAfterUnaryPredecrementOperator",47,[80,21,110,105],[spe],16),kde("NoSpaceBeforeUnaryPostincrementOperator",[80,22,24,105],46,[spe,Ppe],16),kde("NoSpaceBeforeUnaryPostdecrementOperator",[80,22,24,105],47,[spe,Ppe],16),kde("SpaceAfterPostincrementWhenFollowedByAdd",46,40,[spe,Ode],4),kde("SpaceAfterAddWhenFollowedByUnaryPlus",40,40,[spe,Ode],4),kde("SpaceAfterAddWhenFollowedByPreincrement",40,46,[spe,Ode],4),kde("SpaceAfterPostdecrementWhenFollowedBySubtract",47,41,[spe,Ode],4),kde("SpaceAfterSubtractWhenFollowedByUnaryMinus",41,41,[spe,Ode],4),kde("SpaceAfterSubtractWhenFollowedByPredecrement",41,47,[spe,Ode],4),kde("NoSpaceAfterCloseBrace",20,[28,27],[spe],16),kde("NewLineBeforeCloseBraceInBlockContext",r,20,[Ude],8),kde("SpaceAfterCloseBrace",20,t(22),[spe,Yde],4),kde("SpaceBetweenCloseBraceAndElse",20,93,[spe],4),kde("SpaceBetweenCloseBraceAndWhile",20,117,[spe],4),kde("NoSpaceBetweenEmptyBraceBrackets",19,20,[spe,epe],16),kde("SpaceAfterConditionalClosingParen",22,23,[Zde],4),kde("NoSpaceBetweenFunctionKeywordAndStar",100,42,[Gde],16),kde("SpaceAfterStarInGeneratorDeclaration",42,80,[Gde],4),kde("SpaceAfterFunctionInFuncDecl",100,n,[Hde],4),kde("NewLineAfterOpenBraceInBlockContext",19,n,[Ude],8),kde("SpaceAfterGetSetInMember",[139,153],80,[Hde],4),kde("NoSpaceBetweenYieldKeywordAndStar",127,42,[spe,Fpe],16),kde("SpaceBetweenYieldOrYieldStarAndOperand",[127,42],n,[spe,Fpe],4),kde("NoSpaceBetweenReturnAndSemicolon",107,27,[spe],16),kde("SpaceAfterCertainKeywords",[115,111,105,91,107,114,135],n,[spe],4),kde("SpaceAfterLetConstInVariableDeclaration",[121,87],n,[spe,vpe],4),kde("NoSpaceBeforeOpenParenInFuncCall",n,21,[spe,tpe,npe],16),kde("SpaceBeforeBinaryKeywordOperator",n,s,[spe,Ode],4),kde("SpaceAfterBinaryKeywordOperator",s,n,[spe,Ode],4),kde("SpaceAfterVoidOperator",116,n,[spe,Dpe],4),kde("SpaceBetweenAsyncAndOpenParen",134,21,[ope,spe],4),kde("SpaceBetweenAsyncAndFunctionKeyword",134,[100,80],[spe],4),kde("NoSpaceBetweenTagAndTemplateString",[80,22],[15,16],[spe],16),kde("SpaceBeforeJsxAttribute",n,80,[upe,spe],4),kde("SpaceBeforeSlashInJsxOpeningElement",n,44,[mpe,spe],4),kde("NoSpaceBeforeGreaterThanTokenInJsxOpeningElement",44,32,[mpe,spe],16),kde("NoSpaceBeforeEqualInJsxAttribute",n,64,[dpe,spe],16),kde("NoSpaceAfterEqualInJsxAttribute",64,n,[dpe,spe],16),kde("NoSpaceBeforeJsxNamespaceColon",80,59,[fpe],16),kde("NoSpaceAfterJsxNamespaceColon",59,80,[fpe],16),kde("NoSpaceAfterModuleImport",[144,149],21,[spe],16),kde("SpaceAfterCertainTypeScriptKeywords",[128,129,86,138,90,94,95,96,139,119,102,120,144,145,123,125,124,148,153,126,156,161,143,140],n,[spe],4),kde("SpaceBeforeCertainTypeScriptKeywords",n,[96,119,161],[spe],4),kde("SpaceAfterModuleName",11,19,[xpe],4),kde("SpaceBeforeArrow",n,39,[spe],4),kde("SpaceAfterArrow",39,n,[spe],4),kde("NoSpaceAfterEllipsis",26,80,[spe],16),kde("NoSpaceAfterOptionalParameters",58,[22,28],[spe,Lde],16),kde("NoSpaceBetweenEmptyInterfaceBraceBrackets",19,20,[spe,kpe],16),kde("NoSpaceBeforeOpenAngularBracket",c,30,[spe,Cpe],16),kde("NoSpaceBetweenCloseParenAndAngularBracket",22,30,[spe,Cpe],16),kde("NoSpaceAfterOpenAngularBracket",30,n,[spe,Cpe],16),kde("NoSpaceBeforeCloseAngularBracket",n,32,[spe,Cpe],16),kde("NoSpaceAfterCloseAngularBracket",32,[21,23,32,28],[spe,Cpe,Kde,Npe],16),kde("SpaceBeforeAt",[22,80],60,[spe],4),kde("NoSpaceAfterAt",60,n,[spe],16),kde("SpaceAfterDecorator",n,[128,80,95,90,86,126,125,123,124,139,153,23,42],[hpe],4),kde("NoSpaceBeforeNonNullAssertionOperator",n,54,[spe,Epe],16),kde("NoSpaceAfterNewKeywordOnConstructorSignature",105,21,[spe,Spe],16),kde("SpaceLessThanAndNonJSXTypeAnnotation",30,30,[spe],4),kde("SpaceAfterConstructor",137,21,[Nde("insertSpaceAfterConstructor"),spe],4),kde("NoSpaceAfterConstructor",137,21,[Fde("insertSpaceAfterConstructor"),spe],16),kde("SpaceAfterComma",28,n,[Nde("insertSpaceAfterCommaDelimiter"),spe,lpe,rpe,ipe],4),kde("NoSpaceAfterComma",28,n,[Fde("insertSpaceAfterCommaDelimiter"),spe,lpe],16),kde("SpaceAfterAnonymousFunctionKeyword",[100,42],21,[Nde("insertSpaceAfterFunctionKeywordForAnonymousFunctions"),Hde],4),kde("NoSpaceAfterAnonymousFunctionKeyword",[100,42],21,[Fde("insertSpaceAfterFunctionKeywordForAnonymousFunctions"),Hde],16),kde("SpaceAfterKeywordInControl",o,21,[Nde("insertSpaceAfterKeywordsInControlFlowStatements"),Zde],4),kde("NoSpaceAfterKeywordInControl",o,21,[Fde("insertSpaceAfterKeywordsInControlFlowStatements"),Zde],16),kde("SpaceAfterOpenParen",21,n,[Nde("insertSpaceAfterOpeningAndBeforeClosingNonemptyParenthesis"),spe],4),kde("SpaceBeforeCloseParen",n,22,[Nde("insertSpaceAfterOpeningAndBeforeClosingNonemptyParenthesis"),spe],4),kde("SpaceBetweenOpenParens",21,21,[Nde("insertSpaceAfterOpeningAndBeforeClosingNonemptyParenthesis"),spe],4),kde("NoSpaceBetweenParens",21,22,[spe],16),kde("NoSpaceAfterOpenParen",21,n,[Fde("insertSpaceAfterOpeningAndBeforeClosingNonemptyParenthesis"),spe],16),kde("NoSpaceBeforeCloseParen",n,22,[Fde("insertSpaceAfterOpeningAndBeforeClosingNonemptyParenthesis"),spe],16),kde("SpaceAfterOpenBracket",23,n,[Nde("insertSpaceAfterOpeningAndBeforeClosingNonemptyBrackets"),spe],4),kde("SpaceBeforeCloseBracket",n,24,[Nde("insertSpaceAfterOpeningAndBeforeClosingNonemptyBrackets"),spe],4),kde("NoSpaceBetweenBrackets",23,24,[spe],16),kde("NoSpaceAfterOpenBracket",23,n,[Fde("insertSpaceAfterOpeningAndBeforeClosingNonemptyBrackets"),spe],16),kde("NoSpaceBeforeCloseBracket",n,24,[Fde("insertSpaceAfterOpeningAndBeforeClosingNonemptyBrackets"),spe],16),kde("SpaceAfterOpenBrace",19,n,[Pde("insertSpaceAfterOpeningAndBeforeClosingNonemptyBraces"),zde],4),kde("SpaceBeforeCloseBrace",n,20,[Pde("insertSpaceAfterOpeningAndBeforeClosingNonemptyBraces"),zde],4),kde("NoSpaceBetweenEmptyBraceBrackets",19,20,[spe,epe],16),kde("NoSpaceAfterOpenBrace",19,n,[Dde("insertSpaceAfterOpeningAndBeforeClosingNonemptyBraces"),spe],16),kde("NoSpaceBeforeCloseBrace",n,20,[Dde("insertSpaceAfterOpeningAndBeforeClosingNonemptyBraces"),spe],16),kde("SpaceBetweenEmptyBraceBrackets",19,20,[Nde("insertSpaceAfterOpeningAndBeforeClosingEmptyBraces")],4),kde("NoSpaceBetweenEmptyBraceBrackets",19,20,[Dde("insertSpaceAfterOpeningAndBeforeClosingEmptyBraces"),spe],16),kde("SpaceAfterTemplateHeadAndMiddle",[16,17],n,[Nde("insertSpaceAfterOpeningAndBeforeClosingTemplateStringBraces"),cpe],4,1),kde("SpaceBeforeTemplateMiddleAndTail",n,[17,18],[Nde("insertSpaceAfterOpeningAndBeforeClosingTemplateStringBraces"),spe],4),kde("NoSpaceAfterTemplateHeadAndMiddle",[16,17],n,[Fde("insertSpaceAfterOpeningAndBeforeClosingTemplateStringBraces"),cpe],16,1),kde("NoSpaceBeforeTemplateMiddleAndTail",n,[17,18],[Fde("insertSpaceAfterOpeningAndBeforeClosingTemplateStringBraces"),spe],16),kde("SpaceAfterOpenBraceInJsxExpression",19,n,[Nde("insertSpaceAfterOpeningAndBeforeClosingJsxExpressionBraces"),spe,_pe],4),kde("SpaceBeforeCloseBraceInJsxExpression",n,20,[Nde("insertSpaceAfterOpeningAndBeforeClosingJsxExpressionBraces"),spe,_pe],4),kde("NoSpaceAfterOpenBraceInJsxExpression",19,n,[Fde("insertSpaceAfterOpeningAndBeforeClosingJsxExpressionBraces"),spe,_pe],16),kde("NoSpaceBeforeCloseBraceInJsxExpression",n,20,[Fde("insertSpaceAfterOpeningAndBeforeClosingJsxExpressionBraces"),spe,_pe],16),kde("SpaceAfterSemicolonInFor",27,n,[Nde("insertSpaceAfterSemicolonInForStatements"),spe,Ade],4),kde("NoSpaceAfterSemicolonInFor",27,n,[Fde("insertSpaceAfterSemicolonInForStatements"),spe,Ade],16),kde("SpaceBeforeBinaryOperator",n,a,[Nde("insertSpaceBeforeAndAfterBinaryOperators"),spe,Ode],4),kde("SpaceAfterBinaryOperator",a,n,[Nde("insertSpaceBeforeAndAfterBinaryOperators"),spe,Ode],4),kde("NoSpaceBeforeBinaryOperator",n,a,[Fde("insertSpaceBeforeAndAfterBinaryOperators"),spe,Ode],16),kde("NoSpaceAfterBinaryOperator",a,n,[Fde("insertSpaceBeforeAndAfterBinaryOperators"),spe,Ode],16),kde("SpaceBeforeOpenParenInFuncDecl",n,21,[Nde("insertSpaceBeforeFunctionParenthesis"),spe,Hde],4),kde("NoSpaceBeforeOpenParenInFuncDecl",n,21,[Fde("insertSpaceBeforeFunctionParenthesis"),spe,Hde],16),kde("NewLineBeforeOpenBraceInControl",u,19,[Nde("placeOpenBraceOnNewLineForControlBlocks"),Zde,qde],8,1),kde("NewLineBeforeOpenBraceInFunction",l,19,[Nde("placeOpenBraceOnNewLineForFunctions"),Hde,qde],8,1),kde("NewLineBeforeOpenBraceInTypeScriptDeclWithBlock",_,19,[Nde("placeOpenBraceOnNewLineForFunctions"),Xde,qde],8,1),kde("SpaceAfterTypeAssertion",32,n,[Nde("insertSpaceAfterTypeAssertion"),spe,wpe],4),kde("NoSpaceAfterTypeAssertion",32,n,[Fde("insertSpaceAfterTypeAssertion"),spe,wpe],16),kde("SpaceBeforeTypeAnnotation",n,[58,59],[Nde("insertSpaceBeforeTypeAnnotation"),spe,Mde],4),kde("NoSpaceBeforeTypeAnnotation",n,[58,59],[Fde("insertSpaceBeforeTypeAnnotation"),spe,Mde],16),kde("NoOptionalSemicolon",27,i,[wde("semicolons","remove"),Ape],32),kde("OptionalSemicolon",n,i,[wde("semicolons","insert"),Ipe],64),kde("NoSpaceBeforeSemicolon",n,27,[spe],16),kde("SpaceBeforeOpenBraceInControl",u,19,[Ede("placeOpenBraceOnNewLineForControlBlocks"),Zde,bpe,Jde],4,1),kde("SpaceBeforeOpenBraceInFunction",l,19,[Ede("placeOpenBraceOnNewLineForFunctions"),Hde,Wde,bpe,Jde],4,1),kde("SpaceBeforeOpenBraceInTypeScriptDeclWithBlock",_,19,[Ede("placeOpenBraceOnNewLineForFunctions"),Xde,bpe,Jde],4,1),kde("NoSpaceBeforeComma",n,28,[spe],16),kde("NoSpaceBeforeOpenBracket",t(134,84),23,[spe],16),kde("NoSpaceAfterCloseBracket",24,n,[spe,gpe],16),kde("SpaceAfterSemicolon",27,n,[spe],4),kde("SpaceBetweenForAndAwaitKeyword",99,135,[spe],4),kde("SpaceBetweenDotDotDotAndTypeName",26,c,[spe],16),kde("SpaceBetweenStatements",[22,92,93,84],n,[spe,lpe,Ide],4),kde("SpaceAfterTryCatchFinally",[113,85,98],19,[spe],4)]}function kde(e,t,n,r,i,o=0){return{leftTokenRange:Tde(t),rightTokenRange:Tde(n),rule:{debugName:e,context:r,action:i,flags:o}}}function Sde(e){return{tokens:e,isSpecific:!0}}function Tde(e){return"number"==typeof e?Sde([e]):Qe(e)?Sde(e):e}function Cde(e,t,n=[]){const r=[];for(let i=e;i<=t;i++)T(n,i)||r.push(i);return Sde(r)}function wde(e,t){return n=>n.options&&n.options[e]===t}function Nde(e){return t=>t.options&&De(t.options,e)&&!!t.options[e]}function Dde(e){return t=>t.options&&De(t.options,e)&&!t.options[e]}function Fde(e){return t=>!t.options||!De(t.options,e)||!t.options[e]}function Ede(e){return t=>!t.options||!De(t.options,e)||!t.options[e]||t.TokensAreOnSameLine()}function Pde(e){return t=>!t.options||!De(t.options,e)||!!t.options[e]}function Ade(e){return 249===e.contextNode.kind}function Ide(e){return!Ade(e)}function Ode(e){switch(e.contextNode.kind){case 227:return 28!==e.contextNode.operatorToken.kind;case 228:case 195:case 235:case 282:case 277:case 183:case 193:case 194:case 239:return!0;case 209:case 266:case 272:case 278:case 261:case 170:case 307:case 173:case 172:return 64===e.currentTokenSpan.kind||64===e.nextTokenSpan.kind;case 250:case 169:return 103===e.currentTokenSpan.kind||103===e.nextTokenSpan.kind||64===e.currentTokenSpan.kind||64===e.nextTokenSpan.kind;case 251:return 165===e.currentTokenSpan.kind||165===e.nextTokenSpan.kind}return!1}function Lde(e){return!Ode(e)}function jde(e){return!Mde(e)}function Mde(e){const t=e.contextNode.kind;return 173===t||172===t||170===t||261===t||c_(t)}function Rde(e){return!function(e){return ND(e.contextNode)&&e.contextNode.questionToken}(e)}function Bde(e){return 228===e.contextNode.kind||195===e.contextNode.kind}function Jde(e){return e.TokensAreOnSameLine()||Wde(e)}function zde(e){return 207===e.contextNode.kind||201===e.contextNode.kind||function(e){return Vde(e)&&(e.ContextNodeAllOnSameLine()||e.ContextNodeBlockIsOnOneLine())}(e)}function qde(e){return Wde(e)&&!(e.NextNodeAllOnSameLine()||e.NextNodeBlockIsOnOneLine())}function Ude(e){return Vde(e)&&!(e.ContextNodeAllOnSameLine()||e.ContextNodeBlockIsOnOneLine())}function Vde(e){return $de(e.contextNode)}function Wde(e){return $de(e.nextTokenParent)}function $de(e){if(Qde(e))return!0;switch(e.kind){case 242:case 270:case 211:case 269:return!0}return!1}function Hde(e){switch(e.contextNode.kind){case 263:case 175:case 174:case 178:case 179:case 180:case 219:case 177:case 220:case 265:return!0}return!1}function Kde(e){return!Hde(e)}function Gde(e){return 263===e.contextNode.kind||219===e.contextNode.kind}function Xde(e){return Qde(e.contextNode)}function Qde(e){switch(e.kind){case 264:case 232:case 265:case 267:case 188:case 268:case 279:case 280:case 273:case 276:return!0}return!1}function Yde(e){switch(e.currentTokenParent.kind){case 264:case 268:case 267:case 300:case 269:case 256:return!0;case 242:{const t=e.currentTokenParent.parent;if(!t||220!==t.kind&&219!==t.kind)return!0}}return!1}function Zde(e){switch(e.contextNode.kind){case 246:case 256:case 249:case 250:case 251:case 248:case 259:case 247:case 255:case 300:return!0;default:return!1}}function epe(e){return 211===e.contextNode.kind}function tpe(e){return function(e){return 214===e.contextNode.kind}(e)||function(e){return 215===e.contextNode.kind}(e)}function npe(e){return 28!==e.currentTokenSpan.kind}function rpe(e){return 24!==e.nextTokenSpan.kind}function ipe(e){return 22!==e.nextTokenSpan.kind}function ope(e){return 220===e.contextNode.kind}function ape(e){return 206===e.contextNode.kind}function spe(e){return e.TokensAreOnSameLine()&&12!==e.contextNode.kind}function cpe(e){return 12!==e.contextNode.kind}function lpe(e){return 285!==e.contextNode.kind&&289!==e.contextNode.kind}function _pe(e){return 295===e.contextNode.kind||294===e.contextNode.kind}function upe(e){return 292===e.nextTokenParent.kind||296===e.nextTokenParent.kind&&292===e.nextTokenParent.parent.kind}function dpe(e){return 292===e.contextNode.kind}function ppe(e){return 296!==e.nextTokenParent.kind}function fpe(e){return 296===e.nextTokenParent.kind}function mpe(e){return 286===e.contextNode.kind}function gpe(e){return!Hde(e)&&!Wde(e)}function hpe(e){return e.TokensAreOnSameLine()&&Lv(e.contextNode)&&ype(e.currentTokenParent)&&!ype(e.nextTokenParent)}function ype(e){for(;e&&V_(e);)e=e.parent;return e&&171===e.kind}function vpe(e){return 262===e.currentTokenParent.kind&&e.currentTokenParent.getStart(e.sourceFile)===e.currentTokenSpan.pos}function bpe(e){return 2!==e.formattingRequestKind}function xpe(e){return 268===e.contextNode.kind}function kpe(e){return 188===e.contextNode.kind}function Spe(e){return 181===e.contextNode.kind}function Tpe(e,t){if(30!==e.kind&&32!==e.kind)return!1;switch(t.kind){case 184:case 217:case 266:case 264:case 232:case 265:case 263:case 219:case 220:case 175:case 174:case 180:case 181:case 214:case 215:case 234:return!0;default:return!1}}function Cpe(e){return Tpe(e.currentTokenSpan,e.currentTokenParent)||Tpe(e.nextTokenSpan,e.nextTokenParent)}function wpe(e){return 217===e.contextNode.kind}function Npe(e){return!wpe(e)}function Dpe(e){return 116===e.currentTokenSpan.kind&&223===e.currentTokenParent.kind}function Fpe(e){return 230===e.contextNode.kind&&void 0!==e.contextNode.expression}function Epe(e){return 236===e.contextNode.kind}function Ppe(e){return!function(e){switch(e.contextNode.kind){case 246:case 249:case 250:case 251:case 247:case 248:return!0;default:return!1}}(e)}function Ape(e){let t=e.nextTokenSpan.kind,n=e.nextTokenSpan.pos;if(Ah(t)){const r=e.nextTokenParent===e.currentTokenParent?QX(e.currentTokenParent,uc(e.currentTokenParent,e=>!e.parent),e.sourceFile):e.nextTokenParent.getFirstToken(e.sourceFile);if(!r)return!0;t=r.kind,n=r.getStart(e.sourceFile)}return e.sourceFile.getLineAndCharacterOfPosition(e.currentTokenSpan.pos).line===e.sourceFile.getLineAndCharacterOfPosition(n).line?20===t||1===t:27===t&&27===e.currentTokenSpan.kind||241!==t&&27!==t&&(265===e.contextNode.kind||266===e.contextNode.kind?!wD(e.currentTokenParent)||!!e.currentTokenParent.type||21!==t:ND(e.currentTokenParent)?!e.currentTokenParent.initializer:249!==e.currentTokenParent.kind&&243!==e.currentTokenParent.kind&&241!==e.currentTokenParent.kind&&23!==t&&21!==t&&40!==t&&41!==t&&44!==t&&14!==t&&28!==t&&229!==t&&16!==t&&15!==t&&25!==t)}function Ipe(e){return vZ(e.currentTokenSpan.end,e.currentTokenParent,e.sourceFile)}function Ope(e){return!dF(e.contextNode)||!zN(e.contextNode.expression)||e.contextNode.expression.getText().includes(".")}function Lpe(e,t){return{options:e,getRules:(void 0===hde&&(hde=function(e){const t=function(e){const t=new Array(Wpe*Wpe),n=new Array(t.length);for(const r of e){const e=r.leftTokenRange.isSpecific&&r.rightTokenRange.isSpecific;for(const i of r.leftTokenRange.tokens)for(const o of r.rightTokenRange.tokens){const a=Mpe(i,o);let s=t[a];void 0===s&&(s=t[a]=[]),Hpe(s,r.rule,e,n,a)}}return t}(e);return e=>{const n=t[Mpe(e.currentTokenSpan.kind,e.nextTokenSpan.kind)];if(n){const t=[];let r=0;for(const i of n){const n=~jpe(r);i.action&n&&v(i.context,t=>t(e))&&(t.push(i),r|=i.action)}if(t.length)return t}}}(xde())),hde),host:t}}function jpe(e){let t=0;return 1&e&&(t|=28),2&e&&(t|=96),28&e&&(t|=28),96&e&&(t|=96),t}function Mpe(e,t){return un.assert(e<=166&&t<=166,"Must compute formatting context from tokens"),e*Wpe+t}var Rpe,Bpe,Jpe,zpe,qpe,Upe=5,Vpe=31,Wpe=167,$pe=((Rpe=$pe||{})[Rpe.StopRulesSpecific=0]="StopRulesSpecific",Rpe[Rpe.StopRulesAny=1*Upe]="StopRulesAny",Rpe[Rpe.ContextRulesSpecific=2*Upe]="ContextRulesSpecific",Rpe[Rpe.ContextRulesAny=3*Upe]="ContextRulesAny",Rpe[Rpe.NoContextRulesSpecific=4*Upe]="NoContextRulesSpecific",Rpe[Rpe.NoContextRulesAny=5*Upe]="NoContextRulesAny",Rpe);function Hpe(e,t,n,r,i){const o=3&t.action?n?0:$pe.StopRulesAny:t.context!==yde?n?$pe.ContextRulesSpecific:$pe.ContextRulesAny:n?$pe.NoContextRulesSpecific:$pe.NoContextRulesAny,a=r[i]||0;e.splice(function(e,t){let n=0;for(let r=0;r<=t;r+=Upe)n+=e&Vpe,e>>=Upe;return n}(a,o),0,t),r[i]=function(e,t){const n=1+(e>>t&Vpe);return un.assert((n&Vpe)===n,"Adding more rules into the sub-bucket than allowed. Maximum allowed is 32 rules."),e&~(Vpe<un.formatSyntaxKind(n)}),r}function Gpe(e,t,n){const r=t.getLineAndCharacterOfPosition(e).line;if(0===r)return[];let i=Cd(r,t);for(;Ua(t.text.charCodeAt(i));)i--;return Va(t.text.charCodeAt(i))&&i--,afe({pos:Sd(r-1,t),end:i+1},t,n,2)}function Xpe(e,t,n){return ofe(nfe(tfe(e,27,t)),t,n,3)}function Qpe(e,t,n){const r=tfe(e,19,t);return r?afe({pos:xX(nfe(r.parent).getStart(t),t),end:e},t,n,4):[]}function Ype(e,t,n){return ofe(nfe(tfe(e,20,t)),t,n,5)}function Zpe(e,t){return afe({pos:0,end:e.text.length},e,t,0)}function efe(e,t,n,r){return afe({pos:xX(e,n),end:t},n,r,1)}function tfe(e,t,n){const r=YX(e,n);return r&&r.kind===t&&e===r.getEnd()?r:void 0}function nfe(e){let t=e;for(;t&&t.parent&&t.parent.end===e.end&&!rfe(t.parent,t);)t=t.parent;return t}function rfe(e,t){switch(e.kind){case 264:case 265:return Xb(e.members,t);case 268:const n=e.body;return!!n&&269===n.kind&&Xb(n.statements,t);case 308:case 242:case 269:return Xb(e.statements,t);case 300:return Xb(e.block.statements,t)}return!1}function ife(e,t,n,r,i,o){const a={pos:e.pos,end:e.end};return gde(t.text,n,a.pos,a.end,n=>sfe(a,e,r,i,n,o,1,e=>!1,t))}function ofe(e,t,n,r){return e?afe({pos:xX(e.getStart(t),t),end:e.end},t,n,r):[]}function afe(e,t,n,r){const i=function(e,t){return function n(r){const i=XI(r,n=>Qb(n.getStart(t),n.end,e)&&n);if(i){const e=n(i);if(e)return e}return r}(t)}(e,t);return gde(t.text,t.languageVariant,function(e,t,n){const r=e.getStart(n);if(r===t.pos&&e.end===t.end)return r;const i=YX(t.pos,n);return i?i.end>=t.pos?e.pos:i.end:e.pos}(i,e,t),e.end,o=>sfe(e,i,qpe.getIndentationForNode(i,e,t,n.options),function(e,t,n){let r,i=-1;for(;e;){const o=n.getLineAndCharacterOfPosition(e.getStart(n)).line;if(-1!==i&&o!==i)break;if(qpe.shouldIndentChildNode(t,e,r,n))return t.indentSize;i=o,r=e,e=e.parent}return 0}(i,n.options,t),o,n,r,function(e,t){if(!e.length)return i;const n=e.filter(e=>wX(t,e.start,e.start+e.length)).sort((e,t)=>e.start-t.start);if(!n.length)return i;let r=0;return e=>{for(;;){if(r>=n.length)return!1;const t=n[r];if(e.end<=t.start)return!1;if(DX(e.pos,e.end,t.start,t.start+t.length))return!0;r++}};function i(){return!1}}(t.parseDiagnostics,e),t))}function sfe(e,t,n,r,i,{options:o,getRules:a,host:s},c,l,_){var u;const d=new pde(_,c,o);let f,m,g,h,y,v=-1;const x=[];if(i.advance(),i.isOnToken()){const a=_.getLineAndCharacterOfPosition(t.getStart(_)).line;let s=a;Lv(t)&&(s=_.getLineAndCharacterOfPosition(qd(t,_)).line),function t(n,r,a,s,c,u){if(!wX(e,n.getStart(_),n.getEnd()))return;const d=T(n,a,c,u);let p=r;for(XI(n,e=>{g(e,-1,n,d,a,s,!1)},t=>{!function(t,r,a,s){un.assert(Pl(t)),un.assert(!ey(t));const c=function(e,t){switch(e.kind){case 177:case 263:case 219:case 175:case 174:case 220:case 180:case 181:case 185:case 186:case 178:case 179:if(e.typeParameters===t)return 30;if(e.parameters===t)return 21;break;case 214:case 215:if(e.typeArguments===t)return 30;if(e.arguments===t)return 21;break;case 264:case 232:case 265:case 266:if(e.typeParameters===t)return 30;break;case 184:case 216:case 187:case 234:case 206:if(e.typeArguments===t)return 30;break;case 188:return 19}return 0}(r,t);let l=s,u=a;if(!wX(e,t.pos,t.end))return void(t.endt.pos)break;if(e.token.kind===c){let t;if(u=_.getLineAndCharacterOfPosition(e.token.pos).line,h(e,r,s,r),-1!==v)t=v;else{const n=xX(e.token.pos,_);t=qpe.findFirstNonWhitespaceColumn(n,e.token.pos,_,o)}l=T(r,a,t,o.indentSize)}else h(e,r,s,r)}let d=-1;for(let e=0;eMath.min(n.end,e.end))break;h(t,n,d,n)}function g(r,a,s,c,l,u,d,f){if(un.assert(!ey(r)),Nd(r)||Fd(s,r))return a;const m=r.getStart(_),g=_.getLineAndCharacterOfPosition(m).line;let b=g;Lv(r)&&(b=_.getLineAndCharacterOfPosition(qd(r,_)).line);let x=-1;if(d&&Xb(e,s)&&(x=function(e,t,n,r,i){if(wX(r,e,t)||CX(r,e,t)){if(-1!==i)return i}else{const t=_.getLineAndCharacterOfPosition(e).line,r=xX(e,_),i=qpe.findFirstNonWhitespaceColumn(r,e,_,o);if(t!==n||e===i){const e=qpe.getBaseIndentation(o);return e>i?e:i}}return-1}(m,r.end,l,e,a),-1!==x&&(a=x)),!wX(e,r.pos,r.end))return r.ende.end)return a;if(t.token.end>m){t.token.pos>m&&i.skipToStartOf(r);break}h(t,n,c,n)}if(!i.isOnToken()||i.getTokenFullStart()>=e.end)return a;if(El(r)){const e=i.readTokenInfo(r);if(12!==r.kind)return un.assert(e.token.end===r.end,"Token end is child end"),h(e,n,c,r),a}const k=171===r.kind?g:u,S=function(e,t,n,r,i,a){const s=qpe.shouldIndentChildNode(o,e)?o.indentSize:0;return a===t?{indentation:t===y?v:i.getIndentation(),delta:Math.min(o.indentSize,i.getDelta(e)+s)}:-1===n?21===e.kind&&t===y?{indentation:v,delta:i.getDelta(e)}:qpe.childStartsOnTheSameLineWithElseInIfStatement(r,e,t,_)||qpe.childIsUnindentedBranchOfConditionalExpression(r,e,t,_)||qpe.argumentStartsOnSameLineAsPreviousArgument(r,e,t,_)?{indentation:i.getIndentation(),delta:s}:{indentation:i.getIndentation()+i.getDelta(e),delta:s}:{indentation:n,delta:s}}(r,g,x,n,c,k);return t(r,p,g,b,S.indentation,S.delta),p=n,f&&210===s.kind&&-1===a&&(a=S.indentation),a}function h(t,n,r,o,a){un.assert(Xb(n,t.token));const s=i.lastTrailingTriviaWasNewLine();let c=!1;t.leadingTrivia&&w(t.leadingTrivia,n,p,r);let u=0;const d=Xb(e,t.token),g=_.getLineAndCharacterOfPosition(t.token.pos);if(d){const e=l(t.token),i=m;if(u=N(t.token,g,n,p,r),!e)if(0===u){const e=i&&_.getLineAndCharacterOfPosition(i.end).line;c=s&&g.line!==e}else c=1===u}if(t.trailingTrivia&&(f=ve(t.trailingTrivia).end,w(t.trailingTrivia,n,p,r)),c){const e=d&&!l(t.token)?r.getIndentationForToken(g.line,t.token.kind,o,!!a):-1;let n=!0;if(t.leadingTrivia){const i=r.getIndentationForComment(t.token.kind,e,o);n=C(t.leadingTrivia,i,n,e=>F(e.pos,i,!1))}-1!==e&&n&&(F(t.token.pos,e,1===u),y=g.line,v=e)}i.advance(),p=n}}(t,t,a,s,n,r)}const S=i.getCurrentLeadingTrivia();if(S){const r=qpe.nodeWillIndentChild(o,t,void 0,_,!1)?n+o.indentSize:n;C(S,r,!0,e=>{N(e,_.getLineAndCharacterOfPosition(e.pos),t,t,void 0),F(e.pos,r,!1)}),!1!==o.trimTrailingWhitespace&&function(t){let n=m?m.end:e.pos;for(const e of t)hQ(e.kind)&&(n=e.end){const e=i.isOnEOF()?i.readEOFTokenRange():i.isOnToken()?i.readTokenInfo(t).token:void 0;if(e&&e.pos===f){const n=(null==(u=YX(e.end,_,t))?void 0:u.parent)||g;D(e,_.getLineAndCharacterOfPosition(e.pos).line,n,m,h,g,n,void 0)}}return x;function T(e,t,n,r){return{getIndentationForComment:(e,t,r)=>{switch(e){case 20:case 24:case 22:return n+i(r)}return-1!==t?t:n},getIndentationForToken:(r,o,a,s)=>!s&&function(n,r,i){switch(r){case 19:case 20:case 22:case 93:case 117:case 60:return!1;case 44:case 32:switch(i.kind){case 287:case 288:case 286:return!1}break;case 23:case 24:if(201!==i.kind)return!1}return t!==n&&!(Lv(e)&&r===function(e){if(kI(e)){const t=b(e.modifiers,Zl,k(e.modifiers,CD));if(t)return t.kind}switch(e.kind){case 264:return 86;case 265:return 120;case 263:return 100;case 267:return 267;case 178:return 139;case 179:return 153;case 175:if(e.asteriskToken)return 42;case 173:case 170:const t=Cc(e);if(t)return t.kind}}(e))}(r,o,a)?n+i(a):n,getIndentation:()=>n,getDelta:i,recomputeIndentation:(t,i)=>{qpe.shouldIndentChildNode(o,i,e,_)&&(n+=t?o.indentSize:-o.indentSize,r=qpe.shouldIndentChildNode(o,e)?o.indentSize:0)}};function i(t){return qpe.nodeWillIndentChild(o,e,t,_,!0)?r:0}}function C(t,n,r,i){for(const o of t){const t=Xb(e,o);switch(o.kind){case 3:t&&E(o,n,!r),r=!1;break;case 2:r&&t&&i(o),r=!1;break;case 4:r=!0}}return r}function w(t,n,r,i){for(const o of t)hQ(o.kind)&&Xb(e,o)&&N(o,_.getLineAndCharacterOfPosition(o.pos),n,r,i)}function N(t,n,r,i,o){let a=0;return l(t)||(m?a=D(t,n.line,r,m,h,g,i,o):P(_.getLineAndCharacterOfPosition(e.pos).line,n.line)),m=t,f=t.end,g=r,h=n.line,a}function D(e,t,n,r,i,c,l,u){d.updateContext(r,c,e,n,l);const f=a(d);let m=!1!==d.options.trimTrailingWhitespace,g=0;return f?p(f,a=>{if(g=function(e,t,n,r,i){const a=i!==n;switch(e.action){case 1:return 0;case 16:if(t.end!==r.pos)return O(t.end,r.pos-t.end),a?2:0;break;case 32:O(t.pos,t.end-t.pos);break;case 8:if(1!==e.flags&&n!==i)return 0;if(1!==i-n)return L(t.end,r.pos-t.end,RY(s,o)),a?0:1;break;case 4:if(1!==e.flags&&n!==i)return 0;if(1!==r.pos-t.end||32!==_.text.charCodeAt(t.end))return L(t.end,r.pos-t.end," "),a?2:0;break;case 64:c=t.end,";"&&x.push(OQ(c,0,";"))}var c;return 0}(a,r,i,e,t),u)switch(g){case 2:n.getStart(_)===e.pos&&u.recomputeIndentation(!1,l);break;case 1:n.getStart(_)===e.pos&&u.recomputeIndentation(!0,l);break;default:un.assert(0===g)}m=m&&!(16&a.action)&&1!==a.flags}):m=m&&1!==e.kind,t!==i&&m&&P(i,t,r),g}function F(e,t,n){const r=lfe(t,o);if(n)L(e,0,r);else{const n=_.getLineAndCharacterOfPosition(e),i=Sd(n.line,_);(t!==function(e,t){let n=0;for(let r=0;r0){const e=lfe(r,o);L(t,n.character,e)}else O(t,n.character)}}function P(e,t,n){for(let r=e;rt)continue;const i=A(e,t);-1!==i&&(un.assert(i===e||!Ua(_.text.charCodeAt(i-1))),O(i,t+1-i))}}function A(e,t){let n=t;for(;n>=e&&Ua(_.text.charCodeAt(n));)n--;return n!==t?n+1:-1}function I(e,t,n){P(_.getLineAndCharacterOfPosition(e).line,_.getLineAndCharacterOfPosition(t).line+1,n)}function O(e,t){t&&x.push(OQ(e,t,""))}function L(e,t,n){(t||n)&&x.push(OQ(e,t,n))}}function cfe(e,t,n,r=HX(e,t)){const i=uc(r,SP);if(i&&(r=i.parent),r.getStart(e)<=t&&tTX(n,t)||t===n.end&&(2===n.kind||t===e.getFullWidth()))}function lfe(e,t){if((!Bpe||Bpe.tabSize!==t.tabSize||Bpe.indentSize!==t.indentSize)&&(Bpe={tabSize:t.tabSize,indentSize:t.indentSize},Jpe=zpe=void 0),t.convertTabsToSpaces){let n;const r=Math.floor(e/t.indentSize),i=e%t.indentSize;return zpe||(zpe=[]),void 0===zpe[r]?(n=qQ(" ",t.indentSize*r),zpe[r]=n):n=zpe[r],i?n+qQ(" ",i):n}{const n=Math.floor(e/t.tabSize),r=e-n*t.tabSize;let i;return Jpe||(Jpe=[]),void 0===Jpe[n]?Jpe[n]=i=qQ("\t",n):i=Jpe[n],r?i+qQ(" ",r):i}}(e=>{let t;var n;function r(e){return e.baseIndentSize||0}function i(e,t,n,i,s,c,l){var f;let m=e.parent;for(;m;){let r=!0;if(n){const t=e.getStart(s);r=tn.end}const h=o(m,e,s),y=h.line===t.line||d(m,e,t.line,s);if(r){const n=null==(f=p(e,s))?void 0:f[0];let r=g(e,s,l,!!n&&_(n,s).line>h.line);if(-1!==r)return r+i;if(r=a(e,m,t,y,s,l),-1!==r)return r+i}S(l,m,e,s,c)&&!y&&(i+=l.indentSize);const v=u(m,e,t.line,s);m=(e=m).parent,t=v?s.getLineAndCharacterOfPosition(e.getStart(s)):h}return i+r(l)}function o(e,t,n){const r=p(t,n),i=r?r.pos:e.getStart(n);return n.getLineAndCharacterOfPosition(i)}function a(e,t,n,r,i,o){return!_u(e)&&!du(e)||308!==t.kind&&r?-1:y(n,i,o)}let s;var c;function l(e,t,n,r){const i=QX(e,t,r);return i?19===i.kind?1:20===i.kind&&n===_(i,r).line?2:0:0}function _(e,t){return t.getLineAndCharacterOfPosition(e.getStart(t))}function u(e,t,n,r){return!(!fF(e)||!T(e.arguments,t))&&za(r,e.expression.getEnd()).line===n}function d(e,t,n,r){if(246===e.kind&&e.elseStatement===t){const t=OX(e,93,r);return un.assert(void 0!==t),_(t,r).line===n}return!1}function p(e,t){return e.parent&&f(e.getStart(t),e.getEnd(),e.parent,t)}function f(e,t,n,r){switch(n.kind){case 184:return i(n.typeArguments);case 211:return i(n.properties);case 210:case 276:case 280:case 207:case 208:return i(n.elements);case 188:return i(n.members);case 263:case 219:case 220:case 175:case 174:case 180:case 177:case 186:case 181:return i(n.typeParameters)||i(n.parameters);case 178:return i(n.parameters);case 264:case 232:case 265:case 266:case 346:return i(n.typeParameters);case 215:case 214:return i(n.typeArguments)||i(n.arguments);case 262:return i(n.declarations)}function i(i){return i&&CX(function(e,t,n){const r=e.getChildren(n);for(let e=1;e=0&&t=0;o--)if(28!==e[o].kind){if(n.getLineAndCharacterOfPosition(e[o].end).line!==i.line)return y(i,n,r);i=_(e[o],n)}return-1}function y(e,t,n){const r=t.getPositionOfLineAndCharacter(e.line,0);return x(r,r+e.character,t,n)}function v(e,t,n,r){let i=0,o=0;for(let a=e;at.text.length)return r(n);if(0===n.indentStyle)return 0;const a=YX(e,t,void 0,!0),s=cfe(t,e,a||null);if(s&&3===s.kind)return function(e,t,n,r){const i=za(e,t).line-1,o=za(e,r.pos).line;if(un.assert(o>=0),i<=o)return x(Sd(o,e),t,e,n);const a=Sd(i,e),{column:s,character:c}=v(a,t,e,n);if(0===s)return s;return 42===e.text.charCodeAt(a+c)?s-1:s}(t,e,n,s);if(!a)return r(n);if(yQ(a.kind)&&a.getStart(t)<=e&&e0&&qa(e.text.charCodeAt(r));)r--;return x(xX(r,e),r,e,n)}(t,e,n);if(28===a.kind&&227!==a.parent.kind){const e=function(e,t,n){const r=AX(e);return r&&r.listItemIndex>0?h(r.list.getChildren(),r.listItemIndex-1,t,n):-1}(a,t,n);if(-1!==e)return e}const p=function(e,t,n){return t&&f(e,e,t,n)}(e,a.parent,t);if(p&&!Xb(p,a)){const e=[219,220].includes(u.parent.kind)?0:n.indentSize;return m(p,t,n)+e}return function(e,t,n,o,a,s){let c,u=n;for(;u;){if(FX(u,t,e)&&S(s,u,c,e,!0)){const t=_(u,e),r=l(n,u,o,e);return i(u,t,void 0,0!==r?a&&2===r?s.indentSize:0:o!==t.line?s.indentSize:0,e,!0,s)}const r=g(u,e,s,!0);if(-1!==r)return r;c=u,u=u.parent}return r(s)}(t,e,a,c,o,n)},e.getIndentationForNode=function(e,t,n,r){const o=n.getLineAndCharacterOfPosition(e.getStart(n));return i(e,o,t,0,n,!1,r)},e.getBaseIndentation=r,(c=s||(s={}))[c.Unknown=0]="Unknown",c[c.OpenBrace=1]="OpenBrace",c[c.CloseBrace=2]="CloseBrace",e.isArgumentAndStartLineOverlapsExpressionBeingCalled=u,e.childStartsOnTheSameLineWithElseInIfStatement=d,e.childIsUnindentedBranchOfConditionalExpression=function(e,t,n,r){if(DF(e)&&(t===e.whenTrue||t===e.whenFalse)){const i=za(r,e.condition.end).line;if(t===e.whenTrue)return n===i;{const t=_(e.whenTrue,r).line,o=za(r,e.whenTrue.end).line;return i===t&&o===n}}return!1},e.argumentStartsOnSameLineAsPreviousArgument=function(e,t,n,r){if(j_(e)){if(!e.arguments)return!1;const i=b(e.arguments,e=>e.pos===t.pos);if(!i)return!1;const o=e.arguments.indexOf(i);if(0===o)return!1;if(n===za(r,e.arguments[o-1].getEnd()).line)return!0}return!1},e.getContainingList=p,e.findFirstNonWhitespaceCharacterAndColumn=v,e.findFirstNonWhitespaceColumn=x,e.nodeWillIndentChild=k,e.shouldIndentChildNode=S})(qpe||(qpe={}));var _fe={};function ufe(e,t,n){let r=!1;return t.forEach(t=>{const i=uc(HX(e,t.pos),e=>Xb(e,t));i&&XI(i,function i(o){var a;if(!r){if(aD(o)&&SX(t,o.getStart(e))){const t=n.resolveName(o.text,o,-1,!1);if(t&&t.declarations)for(const n of t.declarations)if(e3(n)||o.text&&e.symbol&&(null==(a=e.symbol.exports)?void 0:a.has(o.escapedText)))return void(r=!0)}o.forEachChild(i)}})}),r}i(_fe,{preparePasteEdits:()=>ufe});var dfe={};i(dfe,{pasteEditsProvider:()=>ffe});var pfe="providePostPasteEdits";function ffe(e,t,n,r,i,o,a,s){const c=jue.ChangeTracker.with({host:i,formatContext:a,preferences:o},c=>function(e,t,n,r,i,o,a,s,c){let l;t.length!==n.length&&(l=1===t.length?t[0]:t.join(RY(a.host,a.options)));const _=[];let u,d=e.text;for(let e=n.length-1;e>=0;e--){const{pos:r,end:i}=n[e];d=l?d.slice(0,r)+l+d.slice(i):d.slice(0,r)+t[e]+d.slice(i)}un.checkDefined(i.runWithTemporaryFileUpdate).call(i,e.fileName,d,(d,p,f)=>{if(u=T7.createImportAdder(f,d,o,i),null==r?void 0:r.range){un.assert(r.range.length===t.length),r.range.forEach(e=>{const t=r.file.statements,n=k(t,t=>t.end>e.pos);if(-1===n)return;let i=k(t,t=>t.end>=e.end,n);-1!==i&&e.end<=t[i].getStart()&&i--,_.push(...t.slice(n,-1===i?t.length:i+1))}),un.assertIsDefined(p,"no original program found");const n=p.getTypeChecker(),o=function({file:e,range:t}){const n=t[0].pos,r=t[t.length-1].end,i=HX(e,n),o=XX(e,n)??HX(e,r);return{pos:aD(i)&&n<=i.getStart(e)?i.getFullStart():n,end:aD(o)&&r===o.getEnd()?jue.getAdjustedEndPosition(e,o,{}):r}}(r),a=Q6(r.file,_,n,a3(f,_,n),o),s=!e0(e.fileName,p,i,!!r.file.commonJsModuleIndicator);E6(r.file,a.targetFileImportsFromOldFile,c,s),_3(r.file,a.oldImportsNeededByTargetFile,a.targetFileImportsFromOldFile,n,d,u)}else{const e={sourceFile:f,program:p,cancellationToken:s,host:i,preferences:o,formatContext:a};let r=0;n.forEach((n,i)=>{const o=n.end-n.pos,a=l??t[i],s=n.pos+r,c={pos:s,end:s+a.length};r+=a.length-o;const _=uc(HX(e.sourceFile,c.pos),e=>Xb(e,c));_&&XI(_,function t(n){if(aD(n)&&SX(c,n.getStart(f))&&!(null==d?void 0:d.getTypeChecker().resolveName(n.text,n,-1,!1)))return u.addImportForUnresolvedIdentifier(e,n,!0);n.forEachChild(t)})})}u.writeFixes(c,tY(r?r.file:e,o))}),u.hasFixes()&&n.forEach((n,r)=>{c.replaceRangeWithText(e,{pos:n.pos,end:n.end},l??t[r])})}(e,t,n,r,i,o,a,s,c));return{edits:c,fixId:pfe}}var mfe={};i(mfe,{ANONYMOUS:()=>dZ,AccessFlags:()=>Xr,AssertionLevel:()=>ft,AssignmentDeclarationKind:()=>ai,AssignmentKind:()=>Kg,Associativity:()=>ty,BreakpointResolver:()=>n7,BuilderFileEmit:()=>YV,BuilderProgramKind:()=>wW,BuilderState:()=>XV,CallHierarchy:()=>i7,CharacterCodes:()=>ki,CheckFlags:()=>Ur,CheckMode:()=>HB,ClassificationType:()=>zG,ClassificationTypeNames:()=>JG,CommentDirectiveType:()=>Tr,Comparison:()=>c,CompletionInfoFlags:()=>IG,CompletionTriggerKind:()=>CG,Completions:()=>mae,ContainerFlags:()=>$R,ContextFlags:()=>Or,Debug:()=>un,DiagnosticCategory:()=>si,Diagnostics:()=>_a,DocumentHighlights:()=>y0,ElementFlags:()=>Gr,EmitFlags:()=>wi,EmitHint:()=>Ei,EmitOnly:()=>Dr,EndOfLineState:()=>jG,ExitStatus:()=>Er,ExportKind:()=>i0,Extension:()=>Si,ExternalEmitHelpers:()=>Fi,FileIncludeKind:()=>wr,FilePreprocessingDiagnosticsKind:()=>Nr,FileSystemEntryKind:()=>no,FileWatcherEventKind:()=>Bi,FindAllReferences:()=>gce,FlattenLevel:()=>Tz,FlowFlags:()=>Sr,ForegroundColorEscapeSequences:()=>XU,FunctionFlags:()=>Ih,GeneratedIdentifierFlags:()=>br,GetLiteralTextFlags:()=>np,GoToDefinition:()=>rle,HighlightSpanKind:()=>NG,IdentifierNameMap:()=>ZJ,ImportKind:()=>r0,ImportsNotUsedAsValues:()=>gi,IndentStyle:()=>DG,IndexFlags:()=>Qr,IndexKind:()=>ti,InferenceFlags:()=>ii,InferencePriority:()=>ri,InlayHintKind:()=>wG,InlayHints:()=>xle,InternalEmitFlags:()=>Ni,InternalNodeBuilderFlags:()=>jr,InternalSymbolName:()=>Vr,IntersectionFlags:()=>Ir,InvalidatedProjectKind:()=>yH,JSDocParsingMode:()=>ji,JsDoc:()=>wle,JsTyping:()=>VK,JsxEmit:()=>mi,JsxFlags:()=>hr,JsxReferenceKind:()=>Yr,LanguageFeatureMinimumTarget:()=>Di,LanguageServiceMode:()=>xG,LanguageVariant:()=>bi,LexicalEnvironmentFlags:()=>Ai,ListFormat:()=>Ii,LogLevel:()=>dn,MapCode:()=>$le,MemberOverrideStatus:()=>Pr,ModifierFlags:()=>gr,ModuleDetectionKind:()=>_i,ModuleInstanceState:()=>qR,ModuleKind:()=>fi,ModuleResolutionKind:()=>li,ModuleSpecifierEnding:()=>MS,NavigateTo:()=>V1,NavigationBar:()=>t2,NewLineKind:()=>hi,NodeBuilderFlags:()=>Lr,NodeCheckFlags:()=>Wr,NodeFactoryFlags:()=>tw,NodeFlags:()=>mr,NodeResolutionFeatures:()=>JM,ObjectFlags:()=>Hr,OperationCanceledException:()=>Cr,OperatorPrecedence:()=>ay,OrganizeImports:()=>Yle,OrganizeImportsMode:()=>TG,OuterExpressionKinds:()=>Pi,OutliningElementsCollector:()=>F_e,OutliningSpanKind:()=>OG,OutputFileType:()=>LG,PackageJsonAutoImportPreference:()=>bG,PackageJsonDependencyGroup:()=>vG,PatternMatchKind:()=>W0,PollingInterval:()=>Ji,PollingWatchKind:()=>pi,PragmaKindFlags:()=>Oi,PredicateSemantics:()=>vr,PreparePasteEdits:()=>_fe,PrivateIdentifierKind:()=>iN,ProcessLevel:()=>Wz,ProgramUpdateLevel:()=>NU,QuotePreference:()=>ZQ,RegularExpressionFlags:()=>xr,RelationComparisonResult:()=>yr,Rename:()=>R_e,ScriptElementKind:()=>RG,ScriptElementKindModifier:()=>BG,ScriptKind:()=>yi,ScriptSnapshot:()=>dG,ScriptTarget:()=>vi,SemanticClassificationFormat:()=>SG,SemanticMeaning:()=>UG,SemicolonPreference:()=>FG,SignatureCheckMode:()=>KB,SignatureFlags:()=>ei,SignatureHelp:()=>W_e,SignatureInfo:()=>QV,SignatureKind:()=>Zr,SmartSelectionRange:()=>gue,SnippetKind:()=>Ci,StatisticType:()=>rK,StructureIsReused:()=>Fr,SymbolAccessibility:()=>Br,SymbolDisplay:()=>Nue,SymbolDisplayPartKind:()=>AG,SymbolFlags:()=>qr,SymbolFormatFlags:()=>Rr,SyntaxKind:()=>fr,Ternary:()=>oi,ThrottledCancellationToken:()=>H8,TokenClass:()=>MG,TokenFlags:()=>kr,TransformFlags:()=>Ti,TypeFacts:()=>WB,TypeFlags:()=>$r,TypeFormatFlags:()=>Mr,TypeMapKind:()=>ni,TypePredicateKind:()=>Jr,TypeReferenceSerializationKind:()=>zr,UnionReduction:()=>Ar,UpToDateStatusType:()=>W$,VarianceFlags:()=>Kr,Version:()=>bn,VersionRange:()=>kn,WatchDirectoryFlags:()=>xi,WatchDirectoryKind:()=>di,WatchFileKind:()=>ui,WatchLogLevel:()=>LU,WatchType:()=>F$,accessPrivateIdentifier:()=>bz,addEmitFlags:()=>kw,addEmitHelper:()=>qw,addEmitHelpers:()=>Uw,addInternalEmitFlags:()=>Tw,addNodeFactoryPatcher:()=>rw,addObjectAllocatorPatcher:()=>Bx,addRange:()=>se,addRelatedInfo:()=>aT,addSyntheticLeadingComment:()=>Lw,addSyntheticTrailingComment:()=>Rw,addToSeen:()=>bx,advancedAsyncSuperHelper:()=>BN,affectsDeclarationPathOptionDeclarations:()=>MO,affectsEmitOptionDeclarations:()=>jO,allKeysStartWithDot:()=>gR,altDirectorySeparator:()=>_o,and:()=>Zt,append:()=>ie,appendIfUnique:()=>le,arrayFrom:()=>Oe,arrayIsEqualTo:()=>te,arrayIsHomogeneous:()=>kT,arrayOf:()=>Ie,arrayReverseIterator:()=>ue,arrayToMap:()=>Me,arrayToMultiMap:()=>Be,arrayToNumericMap:()=>Re,assertType:()=>nn,assign:()=>Le,asyncSuperHelper:()=>RN,attachFileToDiagnostics:()=>Kx,base64decode:()=>Tb,base64encode:()=>Sb,binarySearch:()=>Te,binarySearchKey:()=>Ce,bindSourceFile:()=>GR,breakIntoCharacterSpans:()=>c1,breakIntoWordSpans:()=>l1,buildLinkParts:()=>jY,buildOpts:()=>HO,buildOverload:()=>xfe,bundlerModuleNameResolver:()=>zM,canBeConvertedToAsync:()=>I1,canHaveDecorators:()=>SI,canHaveExportModifier:()=>WT,canHaveFlowNode:()=>Og,canHaveIllegalDecorators:()=>$A,canHaveIllegalModifiers:()=>HA,canHaveIllegalType:()=>VA,canHaveIllegalTypeParameters:()=>WA,canHaveJSDoc:()=>Lg,canHaveLocals:()=>su,canHaveModifiers:()=>kI,canHaveModuleSpecifier:()=>hg,canHaveSymbol:()=>au,canIncludeBindAndCheckDiagnostics:()=>pT,canJsonReportNoInputFiles:()=>gj,canProduceDiagnostics:()=>Cq,canUsePropertyAccess:()=>HT,canWatchAffectingLocation:()=>GW,canWatchAtTypes:()=>$W,canWatchDirectoryOrFile:()=>VW,canWatchDirectoryOrFilePath:()=>WW,cartesianProduct:()=>an,cast:()=>nt,chainBundle:()=>$J,chainDiagnosticMessages:()=>Zx,changeAnyExtension:()=>Ho,changeCompilerHostLikeToUseCache:()=>$U,changeExtension:()=>$S,changeFullExtension:()=>Ko,changesAffectModuleResolution:()=>Zu,changesAffectingProgramStructure:()=>ed,characterCodeToRegularExpressionFlag:()=>Ia,childIsDecorated:()=>mm,classElementOrClassElementParameterIsDecorated:()=>hm,classHasClassThisAssignment:()=>Lz,classHasDeclaredOrExplicitlyAssignedName:()=>zz,classHasExplicitlyAssignedName:()=>Jz,classOrConstructorParameterIsDecorated:()=>gm,classicNameResolver:()=>LR,classifier:()=>k7,cleanExtendedConfigCache:()=>EU,clear:()=>F,clearMap:()=>ux,clearSharedExtendedConfigFileWatcher:()=>FU,climbPastPropertyAccess:()=>rX,clone:()=>qe,cloneCompilerOptions:()=>SQ,closeFileWatcher:()=>nx,closeFileWatcherOf:()=>RU,codefix:()=>T7,collapseTextChangeRangesAcrossMultipleVersions:()=>Qs,collectExternalModuleInfo:()=>XJ,combine:()=>oe,combinePaths:()=>jo,commandLineOptionOfCustomType:()=>VO,commentPragmas:()=>Li,commonOptionsWithBuild:()=>EO,compact:()=>ne,compareBooleans:()=>Ot,compareDataObjects:()=>_x,compareDiagnostics:()=>nk,compareEmitHelpers:()=>aN,compareNumberOfDirectorySeparators:()=>zS,comparePaths:()=>Zo,comparePathsCaseInsensitive:()=>Yo,comparePathsCaseSensitive:()=>Qo,comparePatternKeys:()=>yR,compareProperties:()=>It,compareStringsCaseInsensitive:()=>St,compareStringsCaseInsensitiveEslintCompatible:()=>Tt,compareStringsCaseSensitive:()=>Ct,compareStringsCaseSensitiveUI:()=>At,compareTextSpans:()=>bt,compareValues:()=>vt,compilerOptionsAffectDeclarationPath:()=>Wk,compilerOptionsAffectEmit:()=>Vk,compilerOptionsAffectSemanticDiagnostics:()=>Uk,compilerOptionsDidYouMeanDiagnostics:()=>cL,compilerOptionsIndicateEsModules:()=>HQ,computeCommonSourceDirectoryOfFilenames:()=>zU,computeLineAndCharacterOfPosition:()=>Ra,computeLineOfPosition:()=>Ba,computeLineStarts:()=>Oa,computePositionOfLineAndCharacter:()=>ja,computeSignatureWithDiagnostics:()=>FW,computeSuggestionDiagnostics:()=>S1,computedOptions:()=>gk,concatenate:()=>K,concatenateDiagnosticMessageChains:()=>ek,consumesNodeCoreModules:()=>PZ,contains:()=>T,containsIgnoredPath:()=>IT,containsObjectRestOrSpread:()=>bI,containsParseError:()=>yd,containsPath:()=>ea,convertCompilerOptionsForTelemetry:()=>Kj,convertCompilerOptionsFromJson:()=>xj,convertJsonOption:()=>Fj,convertToBase64:()=>kb,convertToJson:()=>BL,convertToObject:()=>RL,convertToOptionsWithAbsolutePaths:()=>QL,convertToRelativePath:()=>ia,convertToTSConfig:()=>qL,convertTypeAcquisitionFromJson:()=>kj,copyComments:()=>QY,copyEntries:()=>od,copyLeadingComments:()=>eZ,copyProperties:()=>Ve,copyTrailingAsLeadingComments:()=>nZ,copyTrailingComments:()=>tZ,couldStartTrivia:()=>Xa,countWhere:()=>w,createAbstractBuilder:()=>zW,createAccessorPropertyBackingField:()=>fI,createAccessorPropertyGetRedirector:()=>mI,createAccessorPropertySetRedirector:()=>gI,createBaseNodeFactory:()=>KC,createBinaryExpressionTrampoline:()=>cI,createBuilderProgram:()=>EW,createBuilderProgramUsingIncrementalBuildInfo:()=>LW,createBuilderStatusReporter:()=>Y$,createCacheableExportInfoMap:()=>o0,createCachedDirectoryStructureHost:()=>wU,createClassifier:()=>h0,createCommentDirectivesMap:()=>Jd,createCompilerDiagnostic:()=>Qx,createCompilerDiagnosticForInvalidCustomType:()=>ZO,createCompilerDiagnosticFromMessageChain:()=>Yx,createCompilerHost:()=>qU,createCompilerHostFromProgramHost:()=>P$,createCompilerHostWorker:()=>WU,createDetachedDiagnostic:()=>Wx,createDiagnosticCollection:()=>_y,createDiagnosticForFileFromMessageChain:()=>Wp,createDiagnosticForNode:()=>Rp,createDiagnosticForNodeArray:()=>Bp,createDiagnosticForNodeArrayFromMessageChain:()=>qp,createDiagnosticForNodeFromMessageChain:()=>zp,createDiagnosticForNodeInSourceFile:()=>Jp,createDiagnosticForRange:()=>Hp,createDiagnosticMessageChainFromDiagnostic:()=>$p,createDiagnosticReporter:()=>a$,createDocumentPositionMapper:()=>zJ,createDocumentRegistry:()=>I0,createDocumentRegistryInternal:()=>O0,createEmitAndSemanticDiagnosticsBuilderProgram:()=>JW,createEmitHelperFactory:()=>oN,createEmptyExports:()=>iA,createEvaluator:()=>gC,createExpressionForJsxElement:()=>lA,createExpressionForJsxFragment:()=>_A,createExpressionForObjectLiteralElementLike:()=>fA,createExpressionForPropertyName:()=>pA,createExpressionFromEntityName:()=>dA,createExternalHelpersImportDeclarationIfNeeded:()=>AA,createFileDiagnostic:()=>Gx,createFileDiagnosticFromMessageChain:()=>Vp,createFlowNode:()=>HR,createForOfBindingStatement:()=>uA,createFutureSourceFile:()=>n0,createGetCanonicalFileName:()=>Wt,createGetIsolatedDeclarationErrors:()=>Dq,createGetSourceFile:()=>UU,createGetSymbolAccessibilityDiagnosticForNode:()=>Nq,createGetSymbolAccessibilityDiagnosticForNodeName:()=>wq,createGetSymbolWalker:()=>tB,createIncrementalCompilerHost:()=>z$,createIncrementalProgram:()=>q$,createJsxFactoryExpression:()=>cA,createLanguageService:()=>X8,createLanguageServiceSourceFile:()=>U8,createMemberAccessForPropertyName:()=>oA,createModeAwareCache:()=>DM,createModeAwareCacheKey:()=>NM,createModeMismatchDetails:()=>pd,createModuleNotFoundChain:()=>dd,createModuleResolutionCache:()=>AM,createModuleResolutionLoader:()=>vV,createModuleResolutionLoaderUsingGlobalCache:()=>n$,createModuleSpecifierResolutionHost:()=>KQ,createMultiMap:()=>$e,createNameResolver:()=>vC,createNodeConverters:()=>QC,createNodeFactory:()=>iw,createOptionNameMap:()=>GO,createOverload:()=>bfe,createPackageJsonImportFilter:()=>EZ,createPackageJsonInfo:()=>FZ,createParenthesizerRules:()=>GC,createPatternMatcher:()=>H0,createPrinter:()=>kU,createPrinterWithDefaults:()=>yU,createPrinterWithRemoveComments:()=>vU,createPrinterWithRemoveCommentsNeverAsciiEscape:()=>bU,createPrinterWithRemoveCommentsOmitTrailingSemicolon:()=>xU,createProgram:()=>LV,createProgramDiagnostics:()=>KV,createProgramHost:()=>O$,createPropertyNameNodeForIdentifierOrLiteral:()=>zT,createQueue:()=>Ge,createRange:()=>Ab,createRedirectedBuilderProgram:()=>RW,createResolutionCache:()=>r$,createRuntimeTypeSerializer:()=>Zz,createScanner:()=>gs,createSemanticDiagnosticsBuilderProgram:()=>BW,createSet:()=>Xe,createSolutionBuilder:()=>nH,createSolutionBuilderHost:()=>eH,createSolutionBuilderWithWatch:()=>rH,createSolutionBuilderWithWatchHost:()=>tH,createSortedArray:()=>Y,createSourceFile:()=>eO,createSourceMapGenerator:()=>kJ,createSourceMapSource:()=>gw,createSuperAccessVariableStatement:()=>rq,createSymbolTable:()=>Gu,createSymlinkCache:()=>Qk,createSyntacticTypeNodeBuilder:()=>UK,createSystemWatchFunctions:()=>oo,createTextChange:()=>LQ,createTextChangeFromStartLength:()=>OQ,createTextChangeRange:()=>Gs,createTextRangeFromNode:()=>PQ,createTextRangeFromSpan:()=>IQ,createTextSpan:()=>Ws,createTextSpanFromBounds:()=>$s,createTextSpanFromNode:()=>FQ,createTextSpanFromRange:()=>AQ,createTextSpanFromStringLiteralLikeContent:()=>EQ,createTextWriter:()=>Oy,createTokenRange:()=>Mb,createTypeChecker:()=>nJ,createTypeReferenceDirectiveResolutionCache:()=>IM,createTypeReferenceResolutionLoader:()=>kV,createWatchCompilerHost:()=>U$,createWatchCompilerHostOfConfigFile:()=>M$,createWatchCompilerHostOfFilesAndCompilerOptions:()=>R$,createWatchFactory:()=>E$,createWatchHost:()=>D$,createWatchProgram:()=>V$,createWatchStatusReporter:()=>_$,createWriteFileMeasuringIO:()=>VU,declarationNameToString:()=>Ap,decodeMappings:()=>EJ,decodedTextSpanIntersectsWith:()=>Js,deduplicate:()=>Q,defaultHoverMaximumTruncationLength:()=>$u,defaultInitCompilerOptions:()=>YO,defaultMaximumTruncationLength:()=>Vu,diagnosticCategoryName:()=>ci,diagnosticToString:()=>GZ,diagnosticsEqualityComparer:()=>ak,directoryProbablyExists:()=>Db,directorySeparator:()=>lo,displayPart:()=>SY,displayPartsToString:()=>R8,disposeEmitNodes:()=>vw,documentSpansEqual:()=>fY,dumpTracingLegend:()=>pr,elementAt:()=>pe,elideNodes:()=>_I,emitDetachedComments:()=>bv,emitFiles:()=>fU,emitFilesAndReportErrors:()=>T$,emitFilesAndReportErrorsAndGetExitStatus:()=>C$,emitModuleKindIsNonNodeESM:()=>Ok,emitNewLineBeforeLeadingCommentOfPosition:()=>vv,emitResolverSkipsTypeChecking:()=>pU,emitSkippedWithNoDiagnostics:()=>JV,emptyArray:()=>l,emptyFileSystemEntries:()=>rT,emptyMap:()=>_,emptyOptions:()=>kG,endsWith:()=>Mt,ensurePathIsNonModuleName:()=>$o,ensureScriptKind:()=>bS,ensureTrailingDirectorySeparator:()=>Wo,entityNameToString:()=>Mp,enumerateInsertsAndDeletes:()=>on,equalOwnProperties:()=>je,equateStringsCaseInsensitive:()=>gt,equateStringsCaseSensitive:()=>ht,equateValues:()=>mt,escapeJsxAttributeString:()=>Dy,escapeLeadingUnderscores:()=>fc,escapeNonAsciiString:()=>Sy,escapeSnippetText:()=>BT,escapeString:()=>xy,escapeTemplateSubstitution:()=>dy,evaluatorResult:()=>mC,every:()=>v,exclusivelyPrefixedNodeCoreModules:()=>wC,executeCommandLine:()=>vK,expandPreOrPostfixIncrementOrDecrementExpression:()=>mA,explainFiles:()=>y$,explainIfFileIsRedirectAndImpliedFormat:()=>v$,exportAssignmentIsAlias:()=>mh,expressionResultIsUnused:()=>AT,extend:()=>Ue,extensionFromPath:()=>ZS,extensionIsTS:()=>QS,extensionsNotSupportingExtensionlessResolution:()=>PS,externalHelpersModuleNameText:()=>Uu,factory:()=>mw,fileExtensionIs:()=>ko,fileExtensionIsOneOf:()=>So,fileIncludeReasonToDiagnostics:()=>k$,fileShouldUseJavaScriptRequire:()=>e0,filter:()=>N,filterMutate:()=>D,filterSemanticDiagnostics:()=>qV,find:()=>b,findAncestor:()=>uc,findBestPatternMatch:()=>Kt,findChildOfKind:()=>OX,findComputedPropertyNameCacheAssignment:()=>hI,findConfigFile:()=>BU,findConstructorDeclaration:()=>yC,findContainingList:()=>LX,findDiagnosticForNode:()=>OZ,findFirstNonJsxWhitespaceToken:()=>GX,findIndex:()=>k,findLast:()=>x,findLastIndex:()=>S,findListItemInfo:()=>AX,findModifier:()=>_Y,findNextToken:()=>QX,findPackageJson:()=>DZ,findPackageJsons:()=>NZ,findPrecedingMatchingToken:()=>cQ,findPrecedingToken:()=>YX,findSuperStatementIndexPath:()=>sz,findTokenOnLeftOfPosition:()=>XX,findUseStrictPrologue:()=>bA,first:()=>ge,firstDefined:()=>f,firstDefinedIterator:()=>m,firstIterator:()=>he,firstOrOnly:()=>BZ,firstOrUndefined:()=>fe,firstOrUndefinedIterator:()=>me,fixupCompilerOptions:()=>U1,flatMap:()=>O,flatMapIterator:()=>j,flatMapToMutable:()=>L,flatten:()=>I,flattenCommaList:()=>vI,flattenDestructuringAssignment:()=>Cz,flattenDestructuringBinding:()=>Dz,flattenDiagnosticMessageText:()=>cV,forEach:()=>d,forEachAncestor:()=>nd,forEachAncestorDirectory:()=>sa,forEachAncestorDirectoryStoppingAtGlobalCache:()=>TR,forEachChild:()=>XI,forEachChildRecursively:()=>QI,forEachDynamicImportOrRequireCall:()=>DC,forEachEmittedFile:()=>Kq,forEachEnclosingBlockScopeContainer:()=>Pp,forEachEntry:()=>rd,forEachExternalModuleToImportFrom:()=>c0,forEachImportClauseDeclaration:()=>Cg,forEachKey:()=>id,forEachLeadingCommentRange:()=>os,forEachNameInAccessChainWalkingLeft:()=>Nx,forEachNameOfDefaultExport:()=>g0,forEachOptionsSyntaxByName:()=>MC,forEachProjectReference:()=>OC,forEachPropertyAssignment:()=>Vf,forEachResolvedProjectReference:()=>IC,forEachReturnStatement:()=>Df,forEachRight:()=>p,forEachTrailingCommentRange:()=>as,forEachTsConfigPropArray:()=>Hf,forEachUnique:()=>gY,forEachYieldExpression:()=>Ff,formatColorAndReset:()=>iV,formatDiagnostic:()=>GU,formatDiagnostics:()=>KU,formatDiagnosticsWithColorAndContext:()=>sV,formatGeneratedName:()=>pI,formatGeneratedNamePart:()=>dI,formatLocation:()=>aV,formatMessage:()=>Xx,formatStringFromArgs:()=>zx,formatting:()=>ude,generateDjb2Hash:()=>Mi,generateTSConfig:()=>XL,getAdjustedReferenceLocation:()=>UX,getAdjustedRenameLocation:()=>VX,getAliasDeclarationFromName:()=>ph,getAllAccessorDeclarations:()=>pv,getAllDecoratorsOfClass:()=>fz,getAllDecoratorsOfClassElement:()=>mz,getAllJSDocTags:()=>sl,getAllJSDocTagsOfKind:()=>cl,getAllKeys:()=>Pe,getAllProjectOutputs:()=>_U,getAllSuperTypeNodes:()=>xh,getAllowImportingTsExtensions:()=>hk,getAllowJSCompilerOption:()=>Ak,getAllowSyntheticDefaultImports:()=>Tk,getAncestor:()=>Th,getAnyExtensionFromPath:()=>Po,getAreDeclarationMapsEnabled:()=>Pk,getAssignedExpandoInitializer:()=>$m,getAssignedName:()=>wc,getAssignmentDeclarationKind:()=>tg,getAssignmentDeclarationPropertyAccessKind:()=>ug,getAssignmentTargetKind:()=>Xg,getAutomaticTypeDirectiveNames:()=>bM,getBaseFileName:()=>Fo,getBinaryOperatorPrecedence:()=>cy,getBuildInfo:()=>gU,getBuildInfoFileVersionMap:()=>jW,getBuildInfoText:()=>mU,getBuildOrderFromAnyBuildOrder:()=>Q$,getBuilderCreationParameters:()=>NW,getBuilderFileEmit:()=>eW,getCanonicalDiagnostic:()=>Kp,getCheckFlags:()=>rx,getClassExtendsHeritageElement:()=>vh,getClassLikeDeclarationOfSymbol:()=>mx,getCombinedLocalAndExportSymbolFlags:()=>ax,getCombinedModifierFlags:()=>ic,getCombinedNodeFlags:()=>ac,getCombinedNodeFlagsAlwaysIncludeJSDoc:()=>oc,getCommentRange:()=>Pw,getCommonSourceDirectory:()=>cU,getCommonSourceDirectoryOfConfig:()=>lU,getCompilerOptionValue:()=>$k,getConditions:()=>yM,getConfigFileParsingDiagnostics:()=>PV,getConstantValue:()=>Jw,getContainerFlags:()=>ZR,getContainerNode:()=>hX,getContainingClass:()=>Xf,getContainingClassExcludingClassDecorators:()=>Zf,getContainingClassStaticBlock:()=>Qf,getContainingFunction:()=>Kf,getContainingFunctionDeclaration:()=>Gf,getContainingFunctionOrClassStaticBlock:()=>Yf,getContainingNodeArray:()=>OT,getContainingObjectLiteralElement:()=>Y8,getContextualTypeFromParent:()=>aZ,getContextualTypeFromParentOrAncestorTypeNode:()=>BX,getDeclarationDiagnostics:()=>Fq,getDeclarationEmitExtensionForPath:()=>Wy,getDeclarationEmitOutputFilePath:()=>Uy,getDeclarationEmitOutputFilePathWorker:()=>Vy,getDeclarationFileExtension:()=>dO,getDeclarationFromName:()=>_h,getDeclarationModifierFlagsFromSymbol:()=>ix,getDeclarationOfKind:()=>Hu,getDeclarationsOfKind:()=>Ku,getDeclaredExpandoInitializer:()=>Wm,getDecorators:()=>Nc,getDefaultCompilerOptions:()=>B8,getDefaultFormatCodeSettings:()=>EG,getDefaultLibFileName:()=>Ds,getDefaultLibFilePath:()=>e7,getDefaultLikeExportInfo:()=>f0,getDefaultLikeExportNameFromDeclaration:()=>zZ,getDefaultResolutionModeForFileWorker:()=>BV,getDiagnosticText:()=>mL,getDiagnosticsWithinSpan:()=>LZ,getDirectoryPath:()=>Do,getDirectoryToWatchFailedLookupLocation:()=>XW,getDirectoryToWatchFailedLookupLocationFromTypeRoot:()=>ZW,getDocumentPositionMapper:()=>b1,getDocumentSpansEqualityComparer:()=>mY,getESModuleInterop:()=>Sk,getEditsForFileRename:()=>M0,getEffectiveBaseTypeNode:()=>yh,getEffectiveConstraintOfTypeParameter:()=>ul,getEffectiveContainerForJSDocTemplateTag:()=>Jg,getEffectiveImplementsTypeNodes:()=>bh,getEffectiveInitializer:()=>Vm,getEffectiveJSDocHost:()=>Ug,getEffectiveModifierFlags:()=>Bv,getEffectiveModifierFlagsAlwaysIncludeJSDoc:()=>Jv,getEffectiveModifierFlagsNoCache:()=>Vv,getEffectiveReturnTypeNode:()=>gv,getEffectiveSetAccessorTypeAnnotationNode:()=>yv,getEffectiveTypeAnnotationNode:()=>fv,getEffectiveTypeParameterDeclarations:()=>_l,getEffectiveTypeRoots:()=>uM,getElementOrPropertyAccessArgumentExpressionOrName:()=>lg,getElementOrPropertyAccessName:()=>_g,getElementsOfBindingOrAssignmentPattern:()=>qA,getEmitDeclarations:()=>Dk,getEmitFlags:()=>Zd,getEmitHelpers:()=>Ww,getEmitModuleDetectionKind:()=>xk,getEmitModuleFormatOfFileWorker:()=>MV,getEmitModuleKind:()=>vk,getEmitModuleResolutionKind:()=>bk,getEmitScriptTarget:()=>yk,getEmitStandardClassFields:()=>qk,getEnclosingBlockScopeContainer:()=>Ep,getEnclosingContainer:()=>Fp,getEncodedSemanticClassifications:()=>w0,getEncodedSyntacticClassifications:()=>P0,getEndLinePosition:()=>Cd,getEntityNameFromTypeNode:()=>_m,getEntrypointsFromPackageJsonInfo:()=>aR,getErrorCountForSummary:()=>d$,getErrorSpanForNode:()=>Qp,getErrorSummaryText:()=>g$,getEscapedTextOfIdentifierOrLiteral:()=>Uh,getEscapedTextOfJsxAttributeName:()=>tC,getEscapedTextOfJsxNamespacedName:()=>iC,getExpandoInitializer:()=>Hm,getExportAssignmentExpression:()=>gh,getExportInfoMap:()=>p0,getExportNeedsImportStarHelper:()=>HJ,getExpressionAssociativity:()=>ny,getExpressionPrecedence:()=>iy,getExternalHelpersModuleName:()=>EA,getExternalModuleImportEqualsDeclarationExpression:()=>Cm,getExternalModuleName:()=>kg,getExternalModuleNameFromDeclaration:()=>Jy,getExternalModuleNameFromPath:()=>zy,getExternalModuleNameLiteral:()=>OA,getExternalModuleRequireArgument:()=>wm,getFallbackOptions:()=>MU,getFileEmitOutput:()=>GV,getFileMatcherPatterns:()=>mS,getFileNamesFromConfigSpecs:()=>jj,getFileWatcherEventKind:()=>Xi,getFilesInErrorForSummary:()=>p$,getFirstConstructorWithBody:()=>iv,getFirstIdentifier:()=>sb,getFirstNonSpaceCharacterPosition:()=>GY,getFirstProjectOutput:()=>dU,getFixableErrorSpanExpression:()=>MZ,getFormatCodeSettingsForWriting:()=>XZ,getFullWidth:()=>sd,getFunctionFlags:()=>Oh,getHeritageClause:()=>Sh,getHostSignatureFromJSDoc:()=>qg,getIdentifierAutoGenerate:()=>tN,getIdentifierGeneratedImportReference:()=>rN,getIdentifierTypeArguments:()=>Zw,getImmediatelyInvokedFunctionExpression:()=>om,getImpliedNodeFormatForEmitWorker:()=>RV,getImpliedNodeFormatForFile:()=>AV,getImpliedNodeFormatForFileWorker:()=>IV,getImportNeedsImportDefaultHelper:()=>GJ,getImportNeedsImportStarHelper:()=>KJ,getIndentString:()=>Ay,getInferredLibraryNameResolveFrom:()=>CV,getInitializedVariables:()=>Zb,getInitializerOfBinaryExpression:()=>dg,getInitializerOfBindingOrAssignmentElement:()=>jA,getInterfaceBaseTypeNodes:()=>kh,getInternalEmitFlags:()=>ep,getInvokedExpression:()=>um,getIsFileExcluded:()=>d0,getIsolatedModules:()=>kk,getJSDocAugmentsTag:()=>jc,getJSDocClassTag:()=>Rc,getJSDocCommentRanges:()=>vf,getJSDocCommentsAndTags:()=>jg,getJSDocDeprecatedTag:()=>Kc,getJSDocDeprecatedTagNoCache:()=>Gc,getJSDocEnumTag:()=>Xc,getJSDocHost:()=>Vg,getJSDocImplementsTags:()=>Mc,getJSDocOverloadTags:()=>zg,getJSDocOverrideTagNoCache:()=>Hc,getJSDocParameterTags:()=>Ec,getJSDocParameterTagsNoCache:()=>Pc,getJSDocPrivateTag:()=>zc,getJSDocPrivateTagNoCache:()=>qc,getJSDocProtectedTag:()=>Uc,getJSDocProtectedTagNoCache:()=>Vc,getJSDocPublicTag:()=>Bc,getJSDocPublicTagNoCache:()=>Jc,getJSDocReadonlyTag:()=>Wc,getJSDocReadonlyTagNoCache:()=>$c,getJSDocReturnTag:()=>Yc,getJSDocReturnType:()=>rl,getJSDocRoot:()=>Wg,getJSDocSatisfiesExpressionType:()=>ZT,getJSDocSatisfiesTag:()=>el,getJSDocTags:()=>ol,getJSDocTemplateTag:()=>Zc,getJSDocThisTag:()=>Qc,getJSDocType:()=>nl,getJSDocTypeAliasName:()=>UA,getJSDocTypeAssertionType:()=>CA,getJSDocTypeParameterDeclarations:()=>hv,getJSDocTypeParameterTags:()=>Ic,getJSDocTypeParameterTagsNoCache:()=>Oc,getJSDocTypeTag:()=>tl,getJSXImplicitImportBase:()=>Kk,getJSXRuntimeImport:()=>Gk,getJSXTransformEnabled:()=>Hk,getKeyForCompilerOptions:()=>TM,getLanguageVariant:()=>lk,getLastChild:()=>vx,getLeadingCommentRanges:()=>_s,getLeadingCommentRangesOfNode:()=>yf,getLeftmostAccessExpression:()=>wx,getLeftmostExpression:()=>Dx,getLibFileNameFromLibReference:()=>AC,getLibNameFromLibReference:()=>PC,getLibraryNameFromLibFileName:()=>wV,getLineAndCharacterOfPosition:()=>za,getLineInfo:()=>wJ,getLineOfLocalPosition:()=>nv,getLineStartPositionForPosition:()=>xX,getLineStarts:()=>Ma,getLinesBetweenPositionAndNextNonWhitespaceCharacter:()=>Gb,getLinesBetweenPositionAndPrecedingNonWhitespaceCharacter:()=>Kb,getLinesBetweenPositions:()=>Ja,getLinesBetweenRangeEndAndRangeStart:()=>Ub,getLinesBetweenRangeEndPositions:()=>Vb,getLiteralText:()=>rp,getLocalNameForExternalImport:()=>IA,getLocalSymbolForExportDefault:()=>vb,getLocaleSpecificMessage:()=>Vx,getLocaleTimeString:()=>l$,getMappedContextSpan:()=>bY,getMappedDocumentSpan:()=>vY,getMappedLocation:()=>yY,getMatchedFileSpec:()=>b$,getMatchedIncludeSpec:()=>x$,getMeaningFromDeclaration:()=>VG,getMeaningFromLocation:()=>WG,getMembersOfDeclaration:()=>Pf,getModeForFileReference:()=>lV,getModeForResolutionAtIndex:()=>_V,getModeForUsageLocation:()=>dV,getModifiedTime:()=>qi,getModifiers:()=>Dc,getModuleInstanceState:()=>UR,getModuleNameStringLiteralAt:()=>HV,getModuleSpecifierEndingPreference:()=>RS,getModuleSpecifierResolverHost:()=>GQ,getNameForExportedSymbol:()=>JZ,getNameFromImportAttribute:()=>pC,getNameFromIndexInfo:()=>Ip,getNameFromPropertyName:()=>VQ,getNameOfAccessExpression:()=>Tx,getNameOfCompilerOptionValue:()=>HL,getNameOfDeclaration:()=>Cc,getNameOfExpando:()=>Gm,getNameOfJSDocTypedef:()=>kc,getNameOfScriptTarget:()=>zk,getNameOrArgument:()=>cg,getNameTable:()=>Q8,getNamespaceDeclarationNode:()=>Sg,getNewLineCharacter:()=>Pb,getNewLineKind:()=>KZ,getNewLineOrDefaultFromHost:()=>RY,getNewTargetContainer:()=>rm,getNextJSDocCommentLocation:()=>Rg,getNodeChildren:()=>eA,getNodeForGeneratedName:()=>uI,getNodeId:()=>ZB,getNodeKind:()=>yX,getNodeModifiers:()=>mQ,getNodeModulePathParts:()=>UT,getNonAssignedNameOfDeclaration:()=>Tc,getNonAssignmentOperatorForCompoundAssignment:()=>iz,getNonAugmentationDeclaration:()=>gp,getNonDecoratorTokenPosOfNode:()=>qd,getNonIncrementalBuildInfoRoots:()=>MW,getNonModifierTokenPosOfNode:()=>Ud,getNormalizedAbsolutePath:()=>Bo,getNormalizedAbsolutePathWithoutRoot:()=>qo,getNormalizedPathComponents:()=>Ro,getObjectFlags:()=>gx,getOperatorAssociativity:()=>ry,getOperatorPrecedence:()=>sy,getOptionFromName:()=>_L,getOptionsForLibraryResolution:()=>OM,getOptionsNameMap:()=>XO,getOptionsSyntaxByArrayElementValue:()=>LC,getOptionsSyntaxByValue:()=>jC,getOrCreateEmitNode:()=>yw,getOrUpdate:()=>z,getOriginalNode:()=>_c,getOriginalNodeId:()=>UJ,getOutputDeclarationFileName:()=>tU,getOutputDeclarationFileNameWorker:()=>nU,getOutputExtension:()=>Zq,getOutputFileNames:()=>uU,getOutputJSFileNameWorker:()=>iU,getOutputPathsFor:()=>Qq,getOwnEmitOutputFilePath:()=>qy,getOwnKeys:()=>Ee,getOwnValues:()=>Ae,getPackageJsonTypesVersionsPaths:()=>_M,getPackageNameFromTypesPackageName:()=>AR,getPackageScopeForPath:()=>lR,getParameterSymbolFromJSDoc:()=>Bg,getParentNodeInSpan:()=>cY,getParseTreeNode:()=>pc,getParsedCommandLineOfConfigFile:()=>gL,getPathComponents:()=>Ao,getPathFromPathComponents:()=>Io,getPathUpdater:()=>R0,getPathsBasePath:()=>Ky,getPatternFromSpec:()=>dS,getPendingEmitKindWithSeen:()=>uW,getPositionOfLineAndCharacter:()=>La,getPossibleGenericSignatures:()=>_Q,getPossibleOriginalInputExtensionForExtension:()=>$y,getPossibleOriginalInputPathWithoutChangingExt:()=>Hy,getPossibleTypeArgumentsInfo:()=>uQ,getPreEmitDiagnostics:()=>HU,getPrecedingNonSpaceCharacterPosition:()=>XY,getPrivateIdentifier:()=>yz,getProperties:()=>cz,getProperty:()=>Fe,getPropertyAssignmentAliasLikeExpression:()=>hh,getPropertyNameForPropertyNameNode:()=>Jh,getPropertyNameFromType:()=>cC,getPropertyNameOfBindingOrAssignmentElement:()=>BA,getPropertySymbolFromBindingElement:()=>sY,getPropertySymbolsFromContextualType:()=>Z8,getQuoteFromPreference:()=>nY,getQuotePreference:()=>tY,getRangesWhere:()=>H,getRefactorContextSpan:()=>jZ,getReferencedFileLocation:()=>FV,getRegexFromPattern:()=>gS,getRegularExpressionForWildcard:()=>lS,getRegularExpressionsForWildcards:()=>_S,getRelativePathFromDirectory:()=>ra,getRelativePathFromFile:()=>oa,getRelativePathToDirectoryOrUrl:()=>aa,getRenameLocation:()=>ZY,getReplacementSpanForContextToken:()=>DQ,getResolutionDiagnostic:()=>WV,getResolutionModeOverride:()=>mV,getResolveJsonModule:()=>Nk,getResolvePackageJsonExports:()=>Ck,getResolvePackageJsonImports:()=>wk,getResolvedExternalModuleName:()=>Ry,getResolvedModuleFromResolution:()=>_d,getResolvedTypeReferenceDirectiveFromResolution:()=>ud,getRestIndicatorOfBindingOrAssignmentElement:()=>RA,getRestParameterElementType:()=>Ef,getRightMostAssignedExpression:()=>Qm,getRootDeclaration:()=>Yh,getRootDirectoryOfResolutionCache:()=>e$,getRootLength:()=>No,getScriptKind:()=>WY,getScriptKindFromFileName:()=>xS,getScriptTargetFeatures:()=>tp,getSelectedEffectiveModifierFlags:()=>jv,getSelectedSyntacticModifierFlags:()=>Mv,getSemanticClassifications:()=>T0,getSemanticJsxChildren:()=>ly,getSetAccessorTypeAnnotationNode:()=>av,getSetAccessorValueParameter:()=>ov,getSetExternalModuleIndicator:()=>pk,getShebang:()=>ds,getSingleVariableOfVariableStatement:()=>Ag,getSnapshotText:()=>zQ,getSnippetElement:()=>Hw,getSourceFileOfModule:()=>bd,getSourceFileOfNode:()=>vd,getSourceFilePathInNewDir:()=>Qy,getSourceFileVersionAsHashFromText:()=>A$,getSourceFilesToEmit:()=>Gy,getSourceMapRange:()=>Cw,getSourceMapper:()=>v1,getSourceTextOfNodeFromSourceFile:()=>Vd,getSpanOfTokenAtPosition:()=>Gp,getSpellingSuggestion:()=>Lt,getStartPositionOfLine:()=>Sd,getStartPositionOfRange:()=>Hb,getStartsOnNewLine:()=>Fw,getStaticPropertiesAndClassStaticBlock:()=>_z,getStrictOptionValue:()=>Jk,getStringComparer:()=>wt,getSubPatternFromSpec:()=>pS,getSuperCallFromStatement:()=>oz,getSuperContainer:()=>im,getSupportedCodeFixes:()=>J8,getSupportedExtensions:()=>AS,getSupportedExtensionsWithJsonIfResolveJsonModule:()=>IS,getSwitchedType:()=>uZ,getSymbolId:()=>eJ,getSymbolNameForPrivateIdentifier:()=>Vh,getSymbolTarget:()=>$Y,getSyntacticClassifications:()=>E0,getSyntacticModifierFlags:()=>zv,getSyntacticModifierFlagsNoCache:()=>Wv,getSynthesizedDeepClone:()=>RC,getSynthesizedDeepCloneWithReplacements:()=>BC,getSynthesizedDeepClones:()=>zC,getSynthesizedDeepClonesWithReplacements:()=>qC,getSyntheticLeadingComments:()=>Iw,getSyntheticTrailingComments:()=>jw,getTargetLabel:()=>iX,getTargetOfBindingOrAssignmentElement:()=>MA,getTemporaryModuleResolutionState:()=>cR,getTextOfConstantValue:()=>ip,getTextOfIdentifierOrLiteral:()=>qh,getTextOfJSDocComment:()=>ll,getTextOfJsxAttributeName:()=>nC,getTextOfJsxNamespacedName:()=>oC,getTextOfNode:()=>Xd,getTextOfNodeFromSourceText:()=>Gd,getTextOfPropertyName:()=>jp,getThisContainer:()=>em,getThisParameter:()=>sv,getTokenAtPosition:()=>HX,getTokenPosOfNode:()=>zd,getTokenSourceMapRange:()=>Nw,getTouchingPropertyName:()=>WX,getTouchingToken:()=>$X,getTrailingCommentRanges:()=>us,getTrailingSemicolonDeferringWriter:()=>Ly,getTransformers:()=>jq,getTsBuildInfoEmitOutputFilePath:()=>Gq,getTsConfigObjectLiteralExpression:()=>Wf,getTsConfigPropArrayElementValue:()=>$f,getTypeAnnotationNode:()=>mv,getTypeArgumentOrTypeParameterList:()=>gQ,getTypeKeywordOfTypeOnlyImport:()=>dY,getTypeNode:()=>Qw,getTypeNodeIfAccessible:()=>pZ,getTypeParameterFromJsDoc:()=>$g,getTypeParameterOwner:()=>Ys,getTypesPackageName:()=>ER,getUILocale:()=>Et,getUniqueName:()=>YY,getUniqueSymbolId:()=>KY,getUseDefineForClassFields:()=>Ik,getWatchErrorSummaryDiagnosticMessage:()=>f$,getWatchFactory:()=>jU,group:()=>Je,groupBy:()=>ze,guessIndentation:()=>Lu,handleNoEmitOptions:()=>zV,handleWatchOptionsConfigDirTemplateSubstitution:()=>aj,hasAbstractModifier:()=>Pv,hasAccessorModifier:()=>Iv,hasAmbientModifier:()=>Av,hasChangesInResolutions:()=>hd,hasContextSensitiveParameters:()=>LT,hasDecorators:()=>Lv,hasDocComment:()=>pQ,hasDynamicName:()=>Rh,hasEffectiveModifier:()=>wv,hasEffectiveModifiers:()=>Tv,hasEffectiveReadonlyModifier:()=>Ov,hasExtension:()=>xo,hasImplementationTSFileExtension:()=>jS,hasIndexSignature:()=>_Z,hasInferredType:()=>kC,hasInitializer:()=>Eu,hasInvalidEscape:()=>fy,hasJSDocNodes:()=>Du,hasJSDocParameterTags:()=>Lc,hasJSFileExtension:()=>OS,hasJsonModuleEmitEnabled:()=>Lk,hasOnlyExpressionInitializer:()=>Pu,hasOverrideModifier:()=>Ev,hasPossibleExternalModuleReference:()=>Np,hasProperty:()=>De,hasPropertyAccessExpressionWithName:()=>oX,hasQuestionToken:()=>wg,hasRecordedExternalHelpers:()=>PA,hasResolutionModeOverride:()=>_C,hasRestParameter:()=>Ru,hasScopeMarker:()=>K_,hasStaticModifier:()=>Fv,hasSyntacticModifier:()=>Nv,hasSyntacticModifiers:()=>Cv,hasTSFileExtension:()=>LS,hasTabstop:()=>KT,hasTrailingDirectorySeparator:()=>To,hasType:()=>Fu,hasTypeArguments:()=>Hg,hasZeroOrOneAsteriskCharacter:()=>Xk,hostGetCanonicalFileName:()=>My,hostUsesCaseSensitiveFileNames:()=>jy,idText:()=>gc,identifierIsThisKeyword:()=>dv,identifierToKeywordKind:()=>hc,identity:()=>st,identitySourceMapConsumer:()=>qJ,ignoreSourceNewlines:()=>Gw,ignoredPaths:()=>Qi,importFromModuleSpecifier:()=>vg,importSyntaxAffectsModuleResolution:()=>fk,indexOfAnyCharCode:()=>C,indexOfNode:()=>Yd,indicesOf:()=>X,inferredTypesContainingFile:()=>TV,injectClassNamedEvaluationHelperBlockIfMissing:()=>qz,injectClassThisAssignmentIfMissing:()=>jz,insertImports:()=>uY,insertSorted:()=>Z,insertStatementAfterCustomPrologue:()=>Md,insertStatementAfterStandardPrologue:()=>jd,insertStatementsAfterCustomPrologue:()=>Ld,insertStatementsAfterStandardPrologue:()=>Od,intersperse:()=>y,intrinsicTagNameToString:()=>aC,introducesArgumentsExoticObject:()=>Mf,inverseJsxOptionMap:()=>CO,isAbstractConstructorSymbol:()=>fx,isAbstractModifier:()=>mD,isAccessExpression:()=>Sx,isAccessibilityModifier:()=>kQ,isAccessor:()=>d_,isAccessorModifier:()=>hD,isAliasableExpression:()=>fh,isAmbientModule:()=>cp,isAmbientPropertyDeclaration:()=>vp,isAnyDirectorySeparator:()=>fo,isAnyImportOrBareOrAccessedRequire:()=>Tp,isAnyImportOrReExport:()=>Dp,isAnyImportOrRequireStatement:()=>Cp,isAnyImportSyntax:()=>Sp,isAnySupportedFileExtension:()=>eT,isApplicableVersionedTypesKey:()=>xR,isArgumentExpressionOfElementAccess:()=>dX,isArray:()=>Qe,isArrayBindingElement:()=>T_,isArrayBindingOrAssignmentElement:()=>P_,isArrayBindingOrAssignmentPattern:()=>E_,isArrayBindingPattern:()=>cF,isArrayLiteralExpression:()=>_F,isArrayLiteralOrObjectLiteralDestructuringPattern:()=>TQ,isArrayTypeNode:()=>UD,isArrowFunction:()=>bF,isAsExpression:()=>LF,isAssertClause:()=>TE,isAssertEntry:()=>CE,isAssertionExpression:()=>W_,isAssertsKeyword:()=>uD,isAssignmentDeclaration:()=>Um,isAssignmentExpression:()=>rb,isAssignmentOperator:()=>eb,isAssignmentPattern:()=>S_,isAssignmentTarget:()=>Qg,isAsteriskToken:()=>eD,isAsyncFunction:()=>Lh,isAsyncModifier:()=>_D,isAutoAccessorPropertyDeclaration:()=>p_,isAwaitExpression:()=>TF,isAwaitKeyword:()=>dD,isBigIntLiteral:()=>qN,isBinaryExpression:()=>NF,isBinaryLogicalOperator:()=>Kv,isBinaryOperatorToken:()=>tI,isBindableObjectDefinePropertyCall:()=>ng,isBindableStaticAccessExpression:()=>og,isBindableStaticElementAccessExpression:()=>ag,isBindableStaticNameExpression:()=>sg,isBindingElement:()=>lF,isBindingElementOfBareOrAccessedRequire:()=>Rm,isBindingName:()=>n_,isBindingOrAssignmentElement:()=>w_,isBindingOrAssignmentPattern:()=>N_,isBindingPattern:()=>k_,isBlock:()=>VF,isBlockLike:()=>t0,isBlockOrCatchScoped:()=>ap,isBlockScope:()=>bp,isBlockScopedContainerTopLevel:()=>dp,isBooleanLiteral:()=>a_,isBreakOrContinueStatement:()=>Cl,isBreakStatement:()=>tE,isBuildCommand:()=>yK,isBuildInfoFile:()=>Hq,isBuilderProgram:()=>h$,isBundle:()=>cP,isCallChain:()=>gl,isCallExpression:()=>fF,isCallExpressionTarget:()=>HG,isCallLikeExpression:()=>L_,isCallLikeOrFunctionLikeExpression:()=>O_,isCallOrNewExpression:()=>j_,isCallOrNewExpressionTarget:()=>GG,isCallSignatureDeclaration:()=>OD,isCallToHelper:()=>JN,isCaseBlock:()=>yE,isCaseClause:()=>ZE,isCaseKeyword:()=>bD,isCaseOrDefaultClause:()=>ku,isCatchClause:()=>nP,isCatchClauseVariableDeclaration:()=>MT,isCatchClauseVariableDeclarationOrBindingElement:()=>sp,isCheckJsEnabledForFile:()=>nT,isCircularBuildOrder:()=>X$,isClassDeclaration:()=>dE,isClassElement:()=>__,isClassExpression:()=>AF,isClassInstanceProperty:()=>f_,isClassLike:()=>u_,isClassMemberModifier:()=>Yl,isClassNamedEvaluationHelperBlock:()=>Bz,isClassOrTypeElement:()=>y_,isClassStaticBlockDeclaration:()=>ED,isClassThisAssignmentBlock:()=>Oz,isColonToken:()=>rD,isCommaExpression:()=>kA,isCommaListExpression:()=>zF,isCommaSequence:()=>SA,isCommaToken:()=>QN,isComment:()=>hQ,isCommonJsExportPropertyAssignment:()=>Lf,isCommonJsExportedExpression:()=>Of,isCompoundAssignment:()=>rz,isComputedNonLiteralName:()=>Op,isComputedPropertyName:()=>kD,isConciseBody:()=>Y_,isConditionalExpression:()=>DF,isConditionalTypeNode:()=>XD,isConstAssertion:()=>hC,isConstTypeReference:()=>kl,isConstructSignatureDeclaration:()=>LD,isConstructorDeclaration:()=>PD,isConstructorTypeNode:()=>JD,isContextualKeyword:()=>Dh,isContinueStatement:()=>eE,isCustomPrologue:()=>ff,isDebuggerStatement:()=>cE,isDeclaration:()=>_u,isDeclarationBindingElement:()=>C_,isDeclarationFileName:()=>uO,isDeclarationName:()=>lh,isDeclarationNameOfEnumOrNamespace:()=>Yb,isDeclarationReadonly:()=>nf,isDeclarationStatement:()=>uu,isDeclarationWithTypeParameterChildren:()=>kp,isDeclarationWithTypeParameters:()=>xp,isDecorator:()=>CD,isDecoratorTarget:()=>QG,isDefaultClause:()=>eP,isDefaultImport:()=>Tg,isDefaultModifier:()=>lD,isDefaultedExpandoInitializer:()=>Km,isDeleteExpression:()=>xF,isDeleteTarget:()=>sh,isDeprecatedDeclaration:()=>$Z,isDestructuringAssignment:()=>ib,isDiskPathRoot:()=>ho,isDoStatement:()=>GF,isDocumentRegistryEntry:()=>A0,isDotDotDotToken:()=>XN,isDottedName:()=>cb,isDynamicName:()=>Bh,isEffectiveExternalModule:()=>hp,isEffectiveStrictModeSourceFile:()=>yp,isElementAccessChain:()=>ml,isElementAccessExpression:()=>pF,isEmittedFileOfProgram:()=>OU,isEmptyArrayLiteral:()=>yb,isEmptyBindingElement:()=>tc,isEmptyBindingPattern:()=>ec,isEmptyObjectLiteral:()=>hb,isEmptyStatement:()=>$F,isEmptyStringLiteral:()=>ym,isEntityName:()=>e_,isEntityNameExpression:()=>ab,isEnumConst:()=>tf,isEnumDeclaration:()=>mE,isEnumMember:()=>aP,isEqualityOperatorKind:()=>cZ,isEqualsGreaterThanToken:()=>oD,isExclamationToken:()=>tD,isExcludedFile:()=>Mj,isExclusivelyTypeOnlyImportOrExport:()=>uV,isExpandoPropertyDeclaration:()=>lC,isExportAssignment:()=>AE,isExportDeclaration:()=>IE,isExportModifier:()=>cD,isExportName:()=>yA,isExportNamespaceAsDefaultDeclaration:()=>Wd,isExportOrDefaultModifier:()=>lI,isExportSpecifier:()=>LE,isExportsIdentifier:()=>Ym,isExportsOrModuleExportsOrAlias:()=>YR,isExpression:()=>V_,isExpressionNode:()=>bm,isExpressionOfExternalModuleImportEqualsDeclaration:()=>gX,isExpressionOfOptionalChainRoot:()=>vl,isExpressionStatement:()=>HF,isExpressionWithTypeArguments:()=>OF,isExpressionWithTypeArgumentsInClassExtendsClause:()=>ob,isExternalModule:()=>rO,isExternalModuleAugmentation:()=>fp,isExternalModuleImportEqualsDeclaration:()=>Tm,isExternalModuleIndicator:()=>X_,isExternalModuleNameRelative:()=>Cs,isExternalModuleReference:()=>JE,isExternalModuleSymbol:()=>Qu,isExternalOrCommonJsModule:()=>Zp,isFileLevelReservedGeneratedIdentifier:()=>Hl,isFileLevelUniqueName:()=>wd,isFileProbablyExternalModule:()=>FI,isFirstDeclarationOfSymbolParameter:()=>xY,isFixablePromiseHandler:()=>D1,isForInOrOfStatement:()=>Q_,isForInStatement:()=>YF,isForInitializer:()=>eu,isForOfStatement:()=>ZF,isForStatement:()=>QF,isFullSourceFile:()=>Dm,isFunctionBlock:()=>Bf,isFunctionBody:()=>Z_,isFunctionDeclaration:()=>uE,isFunctionExpression:()=>vF,isFunctionExpressionOrArrowFunction:()=>RT,isFunctionLike:()=>r_,isFunctionLikeDeclaration:()=>o_,isFunctionLikeKind:()=>c_,isFunctionLikeOrClassStaticBlockDeclaration:()=>i_,isFunctionOrConstructorTypeNode:()=>x_,isFunctionOrModuleBlock:()=>l_,isFunctionSymbol:()=>gg,isFunctionTypeNode:()=>BD,isGeneratedIdentifier:()=>Wl,isGeneratedPrivateIdentifier:()=>$l,isGetAccessor:()=>Nu,isGetAccessorDeclaration:()=>AD,isGetOrSetAccessorDeclaration:()=>pl,isGlobalScopeAugmentation:()=>pp,isGlobalSourceFile:()=>Yp,isGrammarError:()=>Fd,isHeritageClause:()=>tP,isHoistedFunction:()=>mf,isHoistedVariableStatement:()=>hf,isIdentifier:()=>aD,isIdentifierANonContextualKeyword:()=>Ph,isIdentifierName:()=>dh,isIdentifierOrThisTypeNode:()=>GA,isIdentifierPart:()=>fs,isIdentifierStart:()=>ps,isIdentifierText:()=>ms,isIdentifierTypePredicate:()=>qf,isIdentifierTypeReference:()=>xT,isIfStatement:()=>KF,isIgnoredFileFromWildCardWatching:()=>IU,isImplicitGlob:()=>uS,isImportAttribute:()=>NE,isImportAttributeName:()=>Vl,isImportAttributes:()=>wE,isImportCall:()=>_f,isImportClause:()=>kE,isImportDeclaration:()=>xE,isImportEqualsDeclaration:()=>bE,isImportKeyword:()=>vD,isImportMeta:()=>uf,isImportOrExportSpecifier:()=>Rl,isImportOrExportSpecifierName:()=>VY,isImportSpecifier:()=>PE,isImportTypeAssertionContainer:()=>SE,isImportTypeNode:()=>iF,isImportable:()=>a0,isInComment:()=>dQ,isInCompoundLikeAssignment:()=>Yg,isInExpressionContext:()=>xm,isInJSDoc:()=>Im,isInJSFile:()=>Em,isInJSXText:()=>aQ,isInJsonFile:()=>Pm,isInNonReferenceComment:()=>wQ,isInReferenceComment:()=>CQ,isInRightSideOfInternalImportEqualsDeclaration:()=>$G,isInString:()=>nQ,isInTemplateString:()=>oQ,isInTopLevelContext:()=>nm,isInTypeQuery:()=>_v,isIncrementalBuildInfo:()=>kW,isIncrementalBundleEmitBuildInfo:()=>xW,isIncrementalCompilation:()=>Ek,isIndexSignatureDeclaration:()=>jD,isIndexedAccessTypeNode:()=>tF,isInferTypeNode:()=>QD,isInfinityOrNaNString:()=>jT,isInitializedProperty:()=>uz,isInitializedVariable:()=>ex,isInsideJsxElement:()=>sQ,isInsideJsxElementOrAttribute:()=>rQ,isInsideNodeModules:()=>AZ,isInsideTemplateLiteral:()=>xQ,isInstanceOfExpression:()=>mb,isInstantiatedModule:()=>tJ,isInterfaceDeclaration:()=>pE,isInternalDeclaration:()=>zu,isInternalModuleImportEqualsDeclaration:()=>Nm,isInternalName:()=>gA,isIntersectionTypeNode:()=>GD,isIntrinsicJsxName:()=>Ey,isIterationStatement:()=>$_,isJSDoc:()=>SP,isJSDocAllType:()=>mP,isJSDocAugmentsTag:()=>wP,isJSDocAuthorTag:()=>NP,isJSDocCallbackTag:()=>FP,isJSDocClassTag:()=>DP,isJSDocCommentContainingNode:()=>Tu,isJSDocConstructSignature:()=>Ng,isJSDocDeprecatedTag:()=>jP,isJSDocEnumTag:()=>RP,isJSDocFunctionType:()=>bP,isJSDocImplementsTag:()=>HP,isJSDocImportTag:()=>XP,isJSDocIndexSignature:()=>Om,isJSDocLikeText:()=>DI,isJSDocLink:()=>dP,isJSDocLinkCode:()=>pP,isJSDocLinkLike:()=>Mu,isJSDocLinkPlain:()=>fP,isJSDocMemberName:()=>uP,isJSDocNameReference:()=>_P,isJSDocNamepathType:()=>kP,isJSDocNamespaceBody:()=>ru,isJSDocNode:()=>Su,isJSDocNonNullableType:()=>yP,isJSDocNullableType:()=>hP,isJSDocOptionalParameter:()=>GT,isJSDocOptionalType:()=>vP,isJSDocOverloadTag:()=>LP,isJSDocOverrideTag:()=>OP,isJSDocParameterTag:()=>BP,isJSDocPrivateTag:()=>PP,isJSDocPropertyLikeTag:()=>Nl,isJSDocPropertyTag:()=>$P,isJSDocProtectedTag:()=>AP,isJSDocPublicTag:()=>EP,isJSDocReadonlyTag:()=>IP,isJSDocReturnTag:()=>JP,isJSDocSatisfiesExpression:()=>YT,isJSDocSatisfiesTag:()=>KP,isJSDocSeeTag:()=>MP,isJSDocSignature:()=>CP,isJSDocTag:()=>Cu,isJSDocTemplateTag:()=>UP,isJSDocThisTag:()=>zP,isJSDocThrowsTag:()=>GP,isJSDocTypeAlias:()=>Dg,isJSDocTypeAssertion:()=>TA,isJSDocTypeExpression:()=>lP,isJSDocTypeLiteral:()=>TP,isJSDocTypeTag:()=>qP,isJSDocTypedefTag:()=>VP,isJSDocUnknownTag:()=>WP,isJSDocUnknownType:()=>gP,isJSDocVariadicType:()=>xP,isJSXTagName:()=>vm,isJsonEqual:()=>fT,isJsonSourceFile:()=>ef,isJsxAttribute:()=>KE,isJsxAttributeLike:()=>yu,isJsxAttributeName:()=>rC,isJsxAttributes:()=>GE,isJsxCallLike:()=>xu,isJsxChild:()=>hu,isJsxClosingElement:()=>VE,isJsxClosingFragment:()=>HE,isJsxElement:()=>zE,isJsxExpression:()=>QE,isJsxFragment:()=>WE,isJsxNamespacedName:()=>YE,isJsxOpeningElement:()=>UE,isJsxOpeningFragment:()=>$E,isJsxOpeningLikeElement:()=>bu,isJsxOpeningLikeElementTagName:()=>YG,isJsxSelfClosingElement:()=>qE,isJsxSpreadAttribute:()=>XE,isJsxTagNameExpression:()=>gu,isJsxText:()=>VN,isJumpStatementTarget:()=>aX,isKeyword:()=>Ch,isKeywordOrPunctuation:()=>Nh,isKnownSymbol:()=>Wh,isLabelName:()=>cX,isLabelOfLabeledStatement:()=>sX,isLabeledStatement:()=>oE,isLateVisibilityPaintedStatement:()=>wp,isLeftHandSideExpression:()=>R_,isLet:()=>cf,isLineBreak:()=>Va,isLiteralComputedPropertyDeclarationName:()=>uh,isLiteralExpression:()=>Il,isLiteralExpressionOfObject:()=>Ol,isLiteralImportTypeNode:()=>df,isLiteralKind:()=>Al,isLiteralNameOfPropertyDeclarationOrIndexAccess:()=>mX,isLiteralTypeLiteral:()=>U_,isLiteralTypeNode:()=>rF,isLocalName:()=>hA,isLogicalOperator:()=>Gv,isLogicalOrCoalescingAssignmentExpression:()=>Qv,isLogicalOrCoalescingAssignmentOperator:()=>Xv,isLogicalOrCoalescingBinaryExpression:()=>Zv,isLogicalOrCoalescingBinaryOperator:()=>Yv,isMappedTypeNode:()=>nF,isMemberName:()=>dl,isMetaProperty:()=>RF,isMethodDeclaration:()=>FD,isMethodOrAccessor:()=>m_,isMethodSignature:()=>DD,isMinusToken:()=>ZN,isMissingDeclaration:()=>ME,isMissingPackageJsonInfo:()=>kM,isModifier:()=>Zl,isModifierKind:()=>Xl,isModifierLike:()=>g_,isModuleAugmentationExternal:()=>mp,isModuleBlock:()=>hE,isModuleBody:()=>tu,isModuleDeclaration:()=>gE,isModuleExportName:()=>jE,isModuleExportsAccessExpression:()=>eg,isModuleIdentifier:()=>Zm,isModuleName:()=>YA,isModuleOrEnumDeclaration:()=>ou,isModuleReference:()=>mu,isModuleSpecifierLike:()=>oY,isModuleWithStringLiteralName:()=>lp,isNameOfFunctionDeclaration:()=>fX,isNameOfModuleDeclaration:()=>pX,isNamedDeclaration:()=>Sc,isNamedEvaluation:()=>Gh,isNamedEvaluationSource:()=>Kh,isNamedExportBindings:()=>wl,isNamedExports:()=>OE,isNamedImportBindings:()=>iu,isNamedImports:()=>EE,isNamedImportsOrExports:()=>Cx,isNamedTupleMember:()=>WD,isNamespaceBody:()=>nu,isNamespaceExport:()=>FE,isNamespaceExportDeclaration:()=>vE,isNamespaceImport:()=>DE,isNamespaceReexportDeclaration:()=>Sm,isNewExpression:()=>mF,isNewExpressionTarget:()=>KG,isNewScopeNode:()=>EC,isNoSubstitutionTemplateLiteral:()=>$N,isNodeArray:()=>Pl,isNodeArrayMultiLine:()=>Wb,isNodeDescendantOf:()=>ch,isNodeKind:()=>Dl,isNodeLikeSystem:()=>_n,isNodeModulesDirectory:()=>ca,isNodeWithPossibleHoistedDeclaration:()=>Zg,isNonContextualKeyword:()=>Fh,isNonGlobalAmbientModule:()=>_p,isNonNullAccess:()=>QT,isNonNullChain:()=>Tl,isNonNullExpression:()=>MF,isNonStaticMethodOrAccessorWithPrivateName:()=>dz,isNotEmittedStatement:()=>RE,isNullishCoalesce:()=>xl,isNumber:()=>et,isNumericLiteral:()=>zN,isNumericLiteralName:()=>JT,isObjectBindingElementWithoutPropertyName:()=>aY,isObjectBindingOrAssignmentElement:()=>F_,isObjectBindingOrAssignmentPattern:()=>D_,isObjectBindingPattern:()=>sF,isObjectLiteralElement:()=>Au,isObjectLiteralElementLike:()=>v_,isObjectLiteralExpression:()=>uF,isObjectLiteralMethod:()=>Jf,isObjectLiteralOrClassExpressionMethodOrAccessor:()=>zf,isObjectTypeDeclaration:()=>xx,isOmittedExpression:()=>IF,isOptionalChain:()=>hl,isOptionalChainRoot:()=>yl,isOptionalDeclaration:()=>XT,isOptionalJSDocPropertyLikeTag:()=>$T,isOptionalTypeNode:()=>$D,isOuterExpression:()=>wA,isOutermostOptionalChain:()=>bl,isOverrideModifier:()=>gD,isPackageJsonInfo:()=>xM,isPackedArrayLiteral:()=>PT,isParameter:()=>TD,isParameterPropertyDeclaration:()=>Zs,isParameterPropertyModifier:()=>Ql,isParenthesizedExpression:()=>yF,isParenthesizedTypeNode:()=>YD,isParseTreeNode:()=>dc,isPartOfParameterDeclaration:()=>Qh,isPartOfTypeNode:()=>wf,isPartOfTypeOnlyImportOrExportDeclaration:()=>ql,isPartOfTypeQuery:()=>km,isPartiallyEmittedExpression:()=>JF,isPatternMatch:()=>Yt,isPinnedComment:()=>Bd,isPlainJsFile:()=>xd,isPlusToken:()=>YN,isPossiblyTypeArgumentPosition:()=>lQ,isPostfixUnaryExpression:()=>wF,isPrefixUnaryExpression:()=>CF,isPrimitiveLiteralValue:()=>bC,isPrivateIdentifier:()=>sD,isPrivateIdentifierClassElementDeclaration:()=>Kl,isPrivateIdentifierPropertyAccessExpression:()=>Gl,isPrivateIdentifierSymbol:()=>$h,isProgramUptoDate:()=>EV,isPrologueDirective:()=>pf,isPropertyAccessChain:()=>fl,isPropertyAccessEntityNameExpression:()=>lb,isPropertyAccessExpression:()=>dF,isPropertyAccessOrQualifiedName:()=>I_,isPropertyAccessOrQualifiedNameOrImportTypeNode:()=>A_,isPropertyAssignment:()=>rP,isPropertyDeclaration:()=>ND,isPropertyName:()=>t_,isPropertyNameLiteral:()=>zh,isPropertySignature:()=>wD,isPrototypeAccess:()=>ub,isPrototypePropertyAssignment:()=>pg,isPunctuation:()=>wh,isPushOrUnshiftIdentifier:()=>Xh,isQualifiedName:()=>xD,isQuestionDotToken:()=>iD,isQuestionOrExclamationToken:()=>KA,isQuestionOrPlusOrMinusToken:()=>QA,isQuestionToken:()=>nD,isReadonlyKeyword:()=>pD,isReadonlyKeywordOrPlusOrMinusToken:()=>XA,isRecognizedTripleSlashComment:()=>Rd,isReferenceFileLocation:()=>DV,isReferencedFile:()=>NV,isRegularExpressionLiteral:()=>WN,isRequireCall:()=>Lm,isRequireVariableStatement:()=>Jm,isRestParameter:()=>Bu,isRestTypeNode:()=>HD,isReturnStatement:()=>nE,isReturnStatementWithFixablePromiseHandler:()=>N1,isRightSideOfAccessExpression:()=>pb,isRightSideOfInstanceofExpression:()=>gb,isRightSideOfPropertyAccess:()=>uX,isRightSideOfQualifiedName:()=>_X,isRightSideOfQualifiedNameOrPropertyAccess:()=>db,isRightSideOfQualifiedNameOrPropertyAccessOrJSDocMemberName:()=>fb,isRootedDiskPath:()=>go,isSameEntityName:()=>Xm,isSatisfiesExpression:()=>jF,isSemicolonClassElement:()=>UF,isSetAccessor:()=>wu,isSetAccessorDeclaration:()=>ID,isShiftOperatorOrHigher:()=>ZA,isShorthandAmbientModuleSymbol:()=>up,isShorthandPropertyAssignment:()=>iP,isSideEffectImport:()=>SC,isSignedNumericLiteral:()=>Mh,isSimpleCopiableExpression:()=>tz,isSimpleInlineableExpression:()=>nz,isSimpleParameterList:()=>kz,isSingleOrDoubleQuote:()=>zm,isSolutionConfig:()=>mj,isSourceElement:()=>fC,isSourceFile:()=>sP,isSourceFileFromLibrary:()=>YZ,isSourceFileJS:()=>Fm,isSourceFileNotJson:()=>Am,isSourceMapping:()=>AJ,isSpecialPropertyDeclaration:()=>fg,isSpreadAssignment:()=>oP,isSpreadElement:()=>PF,isStatement:()=>pu,isStatementButNotDeclaration:()=>du,isStatementOrBlock:()=>fu,isStatementWithLocals:()=>kd,isStatic:()=>Dv,isStaticModifier:()=>fD,isString:()=>Ze,isStringANonContextualKeyword:()=>Eh,isStringAndEmptyAnonymousObjectIntersection:()=>bQ,isStringDoubleQuoted:()=>qm,isStringLiteral:()=>UN,isStringLiteralLike:()=>ju,isStringLiteralOrJsxExpression:()=>vu,isStringLiteralOrTemplate:()=>lZ,isStringOrNumericLiteralLike:()=>jh,isStringOrRegularExpressionOrTemplateLiteral:()=>yQ,isStringTextContainingNode:()=>Ul,isSuperCall:()=>lf,isSuperKeyword:()=>yD,isSuperProperty:()=>am,isSupportedSourceFileName:()=>BS,isSwitchStatement:()=>iE,isSyntaxList:()=>QP,isSyntheticExpression:()=>BF,isSyntheticReference:()=>BE,isTagName:()=>lX,isTaggedTemplateExpression:()=>gF,isTaggedTemplateTag:()=>XG,isTemplateExpression:()=>FF,isTemplateHead:()=>HN,isTemplateLiteral:()=>M_,isTemplateLiteralKind:()=>Ll,isTemplateLiteralToken:()=>jl,isTemplateLiteralTypeNode:()=>aF,isTemplateLiteralTypeSpan:()=>oF,isTemplateMiddle:()=>KN,isTemplateMiddleOrTemplateTail:()=>Ml,isTemplateSpan:()=>qF,isTemplateTail:()=>GN,isTextWhiteSpaceLike:()=>hY,isThis:()=>vX,isThisContainerOrFunctionBlock:()=>tm,isThisIdentifier:()=>lv,isThisInTypeQuery:()=>uv,isThisInitializedDeclaration:()=>cm,isThisInitializedObjectBindingExpression:()=>lm,isThisProperty:()=>sm,isThisTypeNode:()=>ZD,isThisTypeParameter:()=>qT,isThisTypePredicate:()=>Uf,isThrowStatement:()=>aE,isToken:()=>El,isTokenKind:()=>Fl,isTraceEnabled:()=>Qj,isTransientSymbol:()=>Xu,isTrivia:()=>Ah,isTryStatement:()=>sE,isTupleTypeNode:()=>VD,isTypeAlias:()=>Fg,isTypeAliasDeclaration:()=>fE,isTypeAssertionExpression:()=>hF,isTypeDeclaration:()=>VT,isTypeElement:()=>h_,isTypeKeyword:()=>MQ,isTypeKeywordTokenOrIdentifier:()=>BQ,isTypeLiteralNode:()=>qD,isTypeNode:()=>b_,isTypeNodeKind:()=>kx,isTypeOfExpression:()=>kF,isTypeOnlyExportDeclaration:()=>Jl,isTypeOnlyImportDeclaration:()=>Bl,isTypeOnlyImportOrExportDeclaration:()=>zl,isTypeOperatorNode:()=>eF,isTypeParameterDeclaration:()=>SD,isTypePredicateNode:()=>MD,isTypeQueryNode:()=>zD,isTypeReferenceNode:()=>RD,isTypeReferenceType:()=>Iu,isTypeUsableAsPropertyName:()=>sC,isUMDExportSymbol:()=>hx,isUnaryExpression:()=>J_,isUnaryExpressionWithWrite:()=>q_,isUnicodeIdentifierStart:()=>wa,isUnionTypeNode:()=>KD,isUrl:()=>mo,isValidBigIntString:()=>vT,isValidESSymbolDeclaration:()=>jf,isValidTypeOnlyAliasUseSite:()=>bT,isValueSignatureDeclaration:()=>eh,isVarAwaitUsing:()=>rf,isVarConst:()=>af,isVarConstLike:()=>sf,isVarUsing:()=>of,isVariableDeclaration:()=>lE,isVariableDeclarationInVariableStatement:()=>If,isVariableDeclarationInitializedToBareOrAccessedRequire:()=>Mm,isVariableDeclarationInitializedToRequire:()=>jm,isVariableDeclarationList:()=>_E,isVariableLike:()=>Af,isVariableStatement:()=>WF,isVoidExpression:()=>SF,isWatchSet:()=>tx,isWhileStatement:()=>XF,isWhiteSpaceLike:()=>qa,isWhiteSpaceSingleLine:()=>Ua,isWithStatement:()=>rE,isWriteAccess:()=>cx,isWriteOnlyAccess:()=>sx,isYieldExpression:()=>EF,jsxModeNeedsExplicitImport:()=>QZ,keywordPart:()=>CY,last:()=>ve,lastOrUndefined:()=>ye,length:()=>u,libMap:()=>DO,libs:()=>NO,lineBreakPart:()=>BY,loadModuleFromGlobalCache:()=>RR,loadWithModeAwareCache:()=>SV,makeIdentifierFromModuleName:()=>op,makeImport:()=>QQ,makeStringLiteral:()=>YQ,mangleScopedPackageName:()=>PR,map:()=>E,mapAllOrFail:()=>R,mapDefined:()=>B,mapDefinedIterator:()=>J,mapEntries:()=>W,mapIterator:()=>P,mapOneOrMany:()=>RZ,mapToDisplayParts:()=>JY,matchFiles:()=>hS,matchPatternOrExact:()=>iT,matchedText:()=>Ht,matchesExclude:()=>Bj,matchesExcludeWorker:()=>Jj,maxBy:()=>xt,maybeBind:()=>We,maybeSetLocalizedDiagnosticMessages:()=>Ux,memoize:()=>dt,memoizeOne:()=>pt,min:()=>kt,minAndMax:()=>sT,missingFileModifiedTime:()=>zi,modifierToFlag:()=>Hv,modifiersToFlags:()=>$v,moduleExportNameIsDefault:()=>Kd,moduleExportNameTextEscaped:()=>Hd,moduleExportNameTextUnescaped:()=>$d,moduleOptionDeclaration:()=>AO,moduleResolutionIsEqualTo:()=>ld,moduleResolutionNameAndModeGetter:()=>yV,moduleResolutionOptionDeclarations:()=>RO,moduleResolutionSupportsPackageJsonExportsAndImports:()=>Rk,moduleResolutionUsesNodeModules:()=>XQ,moduleSpecifierToValidIdentifier:()=>UZ,moduleSpecifiers:()=>nB,moduleSupportsImportAttributes:()=>Bk,moduleSymbolToValidIdentifier:()=>qZ,moveEmitHelpers:()=>$w,moveRangeEnd:()=>Ib,moveRangePastDecorators:()=>Lb,moveRangePastModifiers:()=>jb,moveRangePos:()=>Ob,moveSyntheticComments:()=>Bw,mutateMap:()=>px,mutateMapSkippingNewValues:()=>dx,needsParentheses:()=>oZ,needsScopeMarker:()=>G_,newCaseClauseTracker:()=>ZZ,newPrivateEnvironment:()=>hz,noEmitNotification:()=>Uq,noEmitSubstitution:()=>qq,noTransformers:()=>Lq,noTruncationMaximumTruncationLength:()=>Wu,nodeCanBeDecorated:()=>dm,nodeCoreModules:()=>NC,nodeHasName:()=>xc,nodeIsDecorated:()=>pm,nodeIsMissing:()=>Nd,nodeIsPresent:()=>Dd,nodeIsSynthesized:()=>ey,nodeModuleNameResolver:()=>qM,nodeModulesPathPart:()=>KM,nodeNextJsonConfigResolver:()=>UM,nodeOrChildIsDecorated:()=>fm,nodeOverlapsWithStartEnd:()=>NX,nodePosToString:()=>Td,nodeSeenTracker:()=>JQ,nodeStartsNewLexicalEnvironment:()=>Zh,noop:()=>rt,noopFileWatcher:()=>w$,normalizePath:()=>Jo,normalizeSlashes:()=>Oo,normalizeSpans:()=>Vs,not:()=>tn,notImplemented:()=>ut,notImplementedResolver:()=>hU,nullNodeConverters:()=>ZC,nullParenthesizerRules:()=>XC,nullTransformationContext:()=>Wq,objectAllocator:()=>Mx,operatorPart:()=>NY,optionDeclarations:()=>OO,optionMapToObject:()=>VL,optionsAffectingProgramStructure:()=>JO,optionsForBuild:()=>$O,optionsForWatch:()=>FO,optionsHaveChanges:()=>td,or:()=>en,orderedRemoveItem:()=>zt,orderedRemoveItemAt:()=>qt,packageIdToPackageName:()=>fd,packageIdToString:()=>md,parameterIsThisKeyword:()=>cv,parameterNamePart:()=>DY,parseBaseNodeFactory:()=>TI,parseBigInt:()=>hT,parseBuildCommand:()=>fL,parseCommandLine:()=>lL,parseCommandLineWorker:()=>oL,parseConfigFileTextToJson:()=>yL,parseConfigFileWithSystem:()=>u$,parseConfigHostFromCompilerHostLike:()=>UV,parseCustomTypeOption:()=>tL,parseIsolatedEntityName:()=>tO,parseIsolatedJSDocComment:()=>oO,parseJSDocTypeExpressionForTests:()=>aO,parseJsonConfigFileContent:()=>ZL,parseJsonSourceFileConfigFileContent:()=>ej,parseJsonText:()=>nO,parseListTypeOption:()=>nL,parseNodeFactory:()=>CI,parseNodeModuleFromPath:()=>XM,parsePackageName:()=>mR,parsePseudoBigInt:()=>mT,parseValidBigInt:()=>yT,pasteEdits:()=>dfe,patchWriteFileEnsuringDirectory:()=>ao,pathContainsNodeModules:()=>GM,pathIsAbsolute:()=>yo,pathIsBareSpecifier:()=>bo,pathIsRelative:()=>vo,patternText:()=>$t,performIncrementalCompilation:()=>B$,performance:()=>Vn,positionBelongsToNode:()=>FX,positionIsASICandidate:()=>vZ,positionIsSynthesized:()=>XS,positionsAreOnSameLine:()=>$b,preProcessFile:()=>h1,probablyUsesSemicolons:()=>bZ,processCommentPragmas:()=>pO,processPragmasIntoFields:()=>fO,processTaggedTemplateExpression:()=>$z,programContainsEsModules:()=>$Q,programContainsModules:()=>WQ,projectReferenceIsEqualTo:()=>cd,propertyNamePart:()=>FY,pseudoBigIntToString:()=>gT,punctuationPart:()=>wY,pushIfUnique:()=>ce,quote:()=>sZ,quotePreferenceFromString:()=>eY,rangeContainsPosition:()=>SX,rangeContainsPositionExclusive:()=>TX,rangeContainsRange:()=>Xb,rangeContainsRangeExclusive:()=>kX,rangeContainsStartEnd:()=>CX,rangeEndIsOnSameLineAsRangeStart:()=>qb,rangeEndPositionsAreOnSameLine:()=>Jb,rangeEquals:()=>de,rangeIsOnSingleLine:()=>Rb,rangeOfNode:()=>cT,rangeOfTypeParameters:()=>lT,rangeOverlapsWithStartEnd:()=>wX,rangeStartIsOnSameLineAsRangeEnd:()=>zb,rangeStartPositionsAreOnSameLine:()=>Bb,readBuilderProgram:()=>J$,readConfigFile:()=>hL,readJson:()=>wb,readJsonConfigFile:()=>vL,readJsonOrUndefined:()=>Cb,reduceEachLeadingCommentRange:()=>ss,reduceEachTrailingCommentRange:()=>cs,reduceLeft:()=>we,reduceLeftIterator:()=>g,reducePathComponents:()=>Lo,refactor:()=>Q2,regExpEscape:()=>tS,regularExpressionFlagToCharacterCode:()=>Aa,relativeComplement:()=>re,removeAllComments:()=>bw,removeEmitHelper:()=>Vw,removeExtension:()=>WS,removeFileExtension:()=>US,removeIgnoredPath:()=>qW,removeMinAndVersionNumbers:()=>Jt,removePrefix:()=>Xt,removeSuffix:()=>Rt,removeTrailingDirectorySeparator:()=>Vo,repeatString:()=>qQ,replaceElement:()=>Se,replaceFirstStar:()=>dC,resolutionExtensionIsTSOrJson:()=>YS,resolveConfigFileProjectName:()=>$$,resolveJSModule:()=>BM,resolveLibrary:()=>LM,resolveModuleName:()=>MM,resolveModuleNameFromCache:()=>jM,resolvePackageNameToPackageJson:()=>vM,resolvePath:()=>Mo,resolveProjectReferencePath:()=>VV,resolveTripleslashReference:()=>JU,resolveTypeReferenceDirective:()=>gM,resolvingEmptyArray:()=>qu,returnFalse:()=>it,returnNoopFileWatcher:()=>N$,returnTrue:()=>ot,returnUndefined:()=>at,returnsPromise:()=>w1,rewriteModuleSpecifier:()=>Sz,sameFlatMap:()=>M,sameMap:()=>A,sameMapping:()=>PJ,scanTokenAtPosition:()=>Xp,scanner:()=>qG,semanticDiagnosticsOptionDeclarations:()=>LO,serializeCompilerOptions:()=>KL,server:()=>kfe,servicesVersion:()=>v8,setCommentRange:()=>Aw,setConfigFileInOptions:()=>tj,setConstantValue:()=>zw,setEmitFlags:()=>xw,setGetSourceFileAsHashVersioned:()=>I$,setIdentifierAutoGenerate:()=>eN,setIdentifierGeneratedImportReference:()=>nN,setIdentifierTypeArguments:()=>Yw,setInternalEmitFlags:()=>Sw,setLocalizedDiagnosticMessages:()=>qx,setNodeChildren:()=>tA,setNodeFlags:()=>NT,setObjectAllocator:()=>Jx,setOriginalNode:()=>hw,setParent:()=>DT,setParentRecursive:()=>FT,setPrivateIdentifier:()=>vz,setSnippetElement:()=>Kw,setSourceMapRange:()=>ww,setStackTraceLimit:()=>Ri,setStartsOnNewLine:()=>Ew,setSyntheticLeadingComments:()=>Ow,setSyntheticTrailingComments:()=>Mw,setSys:()=>co,setSysLog:()=>eo,setTextRange:()=>xI,setTextRangeEnd:()=>TT,setTextRangePos:()=>ST,setTextRangePosEnd:()=>CT,setTextRangePosWidth:()=>wT,setTokenSourceMapRange:()=>Dw,setTypeNode:()=>Xw,setUILocale:()=>Pt,setValueDeclaration:()=>mg,shouldAllowImportingTsExtension:()=>MR,shouldPreserveConstEnums:()=>Fk,shouldRewriteModuleSpecifier:()=>xg,shouldUseUriStyleNodeCoreModules:()=>HZ,showModuleSpecifier:()=>yx,signatureHasRestParameter:()=>aJ,signatureToDisplayParts:()=>UY,single:()=>xe,singleElementArray:()=>rn,singleIterator:()=>U,singleOrMany:()=>ke,singleOrUndefined:()=>be,skipAlias:()=>ox,skipConstraint:()=>UQ,skipOuterExpressions:()=>NA,skipParentheses:()=>ah,skipPartiallyEmittedExpressions:()=>Sl,skipTrivia:()=>Qa,skipTypeChecking:()=>_T,skipTypeCheckingIgnoringNoCheck:()=>uT,skipTypeParentheses:()=>oh,skipWhile:()=>ln,sliceAfter:()=>oT,some:()=>$,sortAndDeduplicate:()=>ee,sortAndDeduplicateDiagnostics:()=>ws,sourceFileAffectingCompilerOptions:()=>BO,sourceFileMayBeEmitted:()=>Xy,sourceMapCommentRegExp:()=>TJ,sourceMapCommentRegExpDontCareLineStart:()=>SJ,spacePart:()=>TY,spanMap:()=>V,startEndContainsRange:()=>Qb,startEndOverlapsWithStartEnd:()=>DX,startOnNewLine:()=>FA,startTracing:()=>dr,startsWith:()=>Gt,startsWithDirectory:()=>ta,startsWithUnderscore:()=>WZ,startsWithUseStrict:()=>xA,stringContainsAt:()=>VZ,stringToToken:()=>Ea,stripQuotes:()=>Fy,supportedDeclarationExtensions:()=>FS,supportedJSExtensionsFlat:()=>wS,supportedLocaleDirectories:()=>cc,supportedTSExtensionsFlat:()=>SS,supportedTSImplementationExtensions:()=>ES,suppressLeadingAndTrailingTrivia:()=>UC,suppressLeadingTrivia:()=>VC,suppressTrailingTrivia:()=>WC,symbolEscapedNameNoDefault:()=>iY,symbolName:()=>yc,symbolNameNoDefault:()=>rY,symbolToDisplayParts:()=>qY,sys:()=>so,sysLog:()=>Zi,tagNamesAreEquivalent:()=>xO,takeWhile:()=>cn,targetOptionDeclaration:()=>PO,targetToLibMap:()=>Ns,testFormatSettings:()=>PG,textChangeRangeIsUnchanged:()=>Ks,textChangeRangeNewSpan:()=>Hs,textChanges:()=>jue,textOrKeywordPart:()=>EY,textPart:()=>PY,textRangeContainsPositionInclusive:()=>As,textRangeContainsTextSpan:()=>Ls,textRangeIntersectsWithTextSpan:()=>qs,textSpanContainsPosition:()=>Ps,textSpanContainsTextRange:()=>Os,textSpanContainsTextSpan:()=>Is,textSpanEnd:()=>Fs,textSpanIntersection:()=>Us,textSpanIntersectsWith:()=>Bs,textSpanIntersectsWithPosition:()=>zs,textSpanIntersectsWithTextSpan:()=>Rs,textSpanIsEmpty:()=>Es,textSpanOverlap:()=>Ms,textSpanOverlapsWith:()=>js,textSpansEqual:()=>pY,textToKeywordObj:()=>pa,timestamp:()=>Un,toArray:()=>Ye,toBuilderFileEmit:()=>IW,toBuilderStateFileInfoForMultiEmit:()=>AW,toEditorSettings:()=>j8,toFileNameLowerCase:()=>_t,toPath:()=>Uo,toProgramEmitPending:()=>OW,toSorted:()=>_e,tokenIsIdentifierOrKeyword:()=>ua,tokenIsIdentifierOrKeywordOrGreaterThan:()=>da,tokenToString:()=>Fa,trace:()=>Xj,tracing:()=>Hn,tracingEnabled:()=>Kn,transferSourceFileChildren:()=>rA,transform:()=>t7,transformClassFields:()=>Qz,transformDeclarations:()=>Aq,transformECMAScriptModule:()=>Sq,transformES2015:()=>yq,transformES2016:()=>gq,transformES2017:()=>nq,transformES2018:()=>iq,transformES2019:()=>oq,transformES2020:()=>aq,transformES2021:()=>sq,transformESDecorators:()=>tq,transformESNext:()=>cq,transformGenerators:()=>vq,transformImpliedNodeFormatDependentModule:()=>Tq,transformJsx:()=>fq,transformLegacyDecorators:()=>eq,transformModule:()=>bq,transformNamedEvaluation:()=>Vz,transformNodes:()=>Vq,transformSystemModule:()=>kq,transformTypeScript:()=>Xz,transpile:()=>q1,transpileDeclaration:()=>j1,transpileModule:()=>L1,transpileOptionValueCompilerOptions:()=>zO,tryAddToSet:()=>q,tryAndIgnoreErrors:()=>CZ,tryCast:()=>tt,tryDirectoryExists:()=>TZ,tryExtractTSExtension:()=>bb,tryFileExists:()=>SZ,tryGetClassExtendingExpressionWithTypeArguments:()=>tb,tryGetClassImplementingOrExtendingExpressionWithTypeArguments:()=>nb,tryGetDirectories:()=>xZ,tryGetExtensionFromPath:()=>tT,tryGetImportFromModuleSpecifier:()=>bg,tryGetJSDocSatisfiesTypeNode:()=>eC,tryGetModuleNameFromFile:()=>LA,tryGetModuleSpecifierFromDeclaration:()=>yg,tryGetNativePerformanceHooks:()=>Jn,tryGetPropertyAccessOrIdentifierToString:()=>_b,tryGetPropertyNameOfBindingOrAssignmentElement:()=>JA,tryGetSourceMappingURL:()=>NJ,tryGetTextOfPropertyName:()=>Lp,tryParseJson:()=>Nb,tryParsePattern:()=>HS,tryParsePatterns:()=>GS,tryParseRawSourceMap:()=>FJ,tryReadDirectory:()=>kZ,tryReadFile:()=>bL,tryRemoveDirectoryPrefix:()=>Zk,tryRemoveExtension:()=>VS,tryRemovePrefix:()=>Qt,tryRemoveSuffix:()=>Bt,tscBuildOption:()=>WO,typeAcquisitionDeclarations:()=>KO,typeAliasNamePart:()=>AY,typeDirectiveIsEqualTo:()=>gd,typeKeywords:()=>jQ,typeParameterNamePart:()=>IY,typeToDisplayParts:()=>zY,unchangedPollThresholds:()=>$i,unchangedTextChangeRange:()=>Xs,unescapeLeadingUnderscores:()=>mc,unmangleScopedPackageName:()=>IR,unorderedRemoveItem:()=>Vt,unprefixedNodeCoreModules:()=>CC,unreachableCodeIsError:()=>jk,unsetNodeChildren:()=>nA,unusedLabelIsError:()=>Mk,unwrapInnermostStatementOfLabel:()=>Rf,unwrapParenthesizedExpression:()=>xC,updateErrorForNoInputFiles:()=>hj,updateLanguageServiceSourceFile:()=>V8,updateMissingFilePathsWatch:()=>PU,updateResolutionField:()=>aM,updateSharedExtendedConfigFileWatcher:()=>DU,updateSourceFile:()=>iO,updateWatchingWildcardDirectories:()=>AU,usingSingleLineStringWriter:()=>ad,utf16EncodeAsString:()=>bs,validateLocaleAndSetLanguage:()=>lc,version:()=>s,versionMajorMinor:()=>a,visitArray:()=>uJ,visitCommaListElements:()=>yJ,visitEachChild:()=>vJ,visitFunctionBody:()=>gJ,visitIterationBody:()=>hJ,visitLexicalEnvironment:()=>pJ,visitNode:()=>lJ,visitNodes:()=>_J,visitParameterList:()=>fJ,walkUpBindingElementsAndPatterns:()=>nc,walkUpOuterExpressions:()=>DA,walkUpParenthesizedExpressions:()=>rh,walkUpParenthesizedTypes:()=>nh,walkUpParenthesizedTypesAndGetParentAndChild:()=>ih,whitespaceOrMapCommentRegExp:()=>CJ,writeCommentRange:()=>xv,writeFile:()=>Zy,writeFileEnsuringDirectories:()=>tv,zipWith:()=>h});var gfe,hfe=!0;function yfe(e,t,n,r,i){let o=t?"DeprecationError: ":"DeprecationWarning: ";return o+=`'${e}' `,o+=r?`has been deprecated since v${r}`:"is deprecated",o+=t?" and can no longer be used.":n?` and will no longer be usable after v${n}.`:".",o+=i?` ${zx(i,[e])}`:"",o}function vfe(e,t){return function(e,t){return function(){return e(),t.apply(this,arguments)}}(function(e,t={}){const n="string"==typeof t.typeScriptVersion?new bn(t.typeScriptVersion):t.typeScriptVersion??gfe??(gfe=new bn(s)),r="string"==typeof t.errorAfter?new bn(t.errorAfter):t.errorAfter,i="string"==typeof t.warnAfter?new bn(t.warnAfter):t.warnAfter,o="string"==typeof t.since?new bn(t.since):t.since??i,a=t.error||r&&n.compareTo(r)>=0,c=!i||n.compareTo(i)>=0;return a?function(e,t,n,r){const i=yfe(e,!0,t,n,r);return()=>{throw new TypeError(i)}}(e,r,o,t.message):c?function(e,t,n,r){let i=!1;return()=>{hfe&&!i&&(un.log.warn(yfe(e,!1,t,n,r)),i=!0)}}(e,r,o,t.message):rt}((null==t?void 0:t.name)??un.getFunctionName(e),t),e)}function bfe(e,t,n,r){if(Object.defineProperty(o,"name",{...Object.getOwnPropertyDescriptor(o,"name"),value:e}),r)for(const n of Object.keys(r)){const i=+n;!isNaN(i)&&De(t,`${i}`)&&(t[i]=vfe(t[i],{...r[i],name:e}))}const i=function(e,t){return n=>{for(let r=0;De(e,`${r}`)&&De(t,`${r}`);r++)if((0,t[r])(n))return r}}(t,n);return o;function o(...e){const n=i(e),r=void 0!==n?t[n]:void 0;if("function"==typeof r)return r(...e);throw new TypeError("Invalid arguments")}}function xfe(e){return{overload:t=>({bind:n=>({finish:()=>bfe(e,t,n),deprecate:r=>({finish:()=>bfe(e,t,n,r)})})})}}var kfe={};i(kfe,{ActionInvalidate:()=>KK,ActionPackageInstalled:()=>GK,ActionSet:()=>HK,ActionWatchTypingLocations:()=>eG,Arguments:()=>WK,AutoImportProviderProject:()=>xme,AuxiliaryProject:()=>vme,CharRangeSection:()=>dhe,CloseFileWatcherEvent:()=>zme,CommandNames:()=>Jge,ConfigFileDiagEvent:()=>Lme,ConfiguredProject:()=>kme,ConfiguredProjectLoadKind:()=>lge,CreateDirectoryWatcherEvent:()=>Jme,CreateFileWatcherEvent:()=>Bme,Errors:()=>Efe,EventBeginInstallTypes:()=>QK,EventEndInstallTypes:()=>YK,EventInitializationFailed:()=>ZK,EventTypesRegistry:()=>XK,ExternalProject:()=>Sme,GcTimer:()=>$fe,InferredProject:()=>yme,LargeFileReferencedEvent:()=>Ome,LineIndex:()=>yhe,LineLeaf:()=>bhe,LineNode:()=>vhe,LogLevel:()=>Afe,Msg:()=>Ofe,OpenFileInfoTelemetryEvent:()=>Rme,Project:()=>hme,ProjectInfoTelemetryEvent:()=>Mme,ProjectKind:()=>_me,ProjectLanguageServiceStateEvent:()=>jme,ProjectLoadingFinishEvent:()=>Ime,ProjectLoadingStartEvent:()=>Ame,ProjectService:()=>Fge,ProjectsUpdatedInBackgroundEvent:()=>Pme,ScriptInfo:()=>sme,ScriptVersionCache:()=>ghe,Session:()=>ihe,TextStorage:()=>ome,ThrottledOperations:()=>Wfe,TypingsInstallerAdapter:()=>khe,allFilesAreJsOrDts:()=>pme,allRootFilesAreJsOrDts:()=>dme,asNormalizedPath:()=>Rfe,convertCompilerOptions:()=>Gme,convertFormatOptions:()=>Kme,convertScriptKindName:()=>Zme,convertTypeAcquisition:()=>Qme,convertUserPreferences:()=>ege,convertWatchOptions:()=>Xme,countEachFileTypes:()=>ume,createInstallTypingsRequest:()=>Lfe,createModuleSpecifierCache:()=>Age,createNormalizedPathMap:()=>Bfe,createPackageJsonCache:()=>Ige,createSortedArray:()=>Vfe,emptyArray:()=>Ife,findArgument:()=>nG,formatDiagnosticToProtocol:()=>Bge,formatMessage:()=>zge,getBaseConfigFileName:()=>Hfe,getDetailWatchInfo:()=>hge,getLocationInNewDocument:()=>lhe,hasArgument:()=>tG,hasNoTypeScriptSource:()=>fme,indent:()=>oG,isBackgroundProject:()=>Nme,isConfigFile:()=>Ege,isConfiguredProject:()=>Cme,isDynamicFileName:()=>ame,isExternalProject:()=>wme,isInferredProject:()=>Tme,isInferredProjectName:()=>Jfe,isProjectDeferredClose:()=>Dme,makeAutoImportProviderProjectName:()=>qfe,makeAuxiliaryProjectName:()=>Ufe,makeInferredProjectName:()=>zfe,maxFileSize:()=>Eme,maxProgramSizeForNonTsFiles:()=>Fme,normalizedPathToPath:()=>Mfe,nowString:()=>rG,nullCancellationToken:()=>Oge,nullTypingsInstaller:()=>ige,protocol:()=>Kfe,scriptInfoIsContainedByBackgroundProject:()=>cme,scriptInfoIsContainedByDeferredClosedProject:()=>lme,stringifyIndented:()=>aG,toEvent:()=>Uge,toNormalizedPath:()=>jfe,tryConvertScriptKindName:()=>Yme,typingsInstaller:()=>Sfe,updateProjectIfDirty:()=>vge});var Sfe={};i(Sfe,{TypingsInstaller:()=>Dfe,getNpmCommandForInstallation:()=>Nfe,installNpmPackages:()=>wfe,typingsName:()=>Ffe});var Tfe={isEnabled:()=>!1,writeLine:rt};function Cfe(e,t,n,r){try{const r=MM(t,jo(e,"index.d.ts"),{moduleResolution:2},n);return r.resolvedModule&&r.resolvedModule.resolvedFileName}catch(n){return void(r.isEnabled()&&r.writeLine(`Failed to resolve ${t} in folder '${e}': ${n.message}`))}}function wfe(e,t,n,r){let i=!1;for(let o=n.length;o>0;){const a=Nfe(e,t,n,o);o=a.remaining,i=r(a.command)||i}return i}function Nfe(e,t,n,r){const i=n.length-r;let o,a=r;for(;o=`${e} install --ignore-scripts ${(a===n.length?n:n.slice(i,i+a)).join(" ")} --save-dev --user-agent="typesInstaller/${t}"`,!(o.length<8e3);)a-=Math.floor(a/2);return{command:o,remaining:r-a}}var Dfe=class{constructor(e,t,n,r,i,o=Tfe){this.installTypingHost=e,this.globalCachePath=t,this.safeListPath=n,this.typesMapLocation=r,this.throttleLimit=i,this.log=o,this.packageNameToTypingLocation=new Map,this.missingTypingsSet=new Set,this.knownCachesSet=new Set,this.projectWatchers=new Map,this.pendingRunRequests=[],this.installRunCount=1,this.inFlightRequestCount=0,this.latestDistTag="latest",this.log.isEnabled()&&this.log.writeLine(`Global cache location '${t}', safe file path '${n}', types map path ${r}`),this.processCacheLocation(this.globalCachePath)}handleRequest(e){switch(e.kind){case"discover":this.install(e);break;case"closeProject":this.closeProject(e);break;case"typesRegistry":{const e={};this.typesRegistry.forEach((t,n)=>{e[n]=t});const t={kind:XK,typesRegistry:e};this.sendResponse(t);break}case"installPackage":this.installPackage(e);break;default:un.assertNever(e)}}closeProject(e){this.closeWatchers(e.projectName)}closeWatchers(e){this.log.isEnabled()&&this.log.writeLine(`Closing file watchers for project '${e}'`),this.projectWatchers.get(e)?(this.projectWatchers.delete(e),this.sendResponse({kind:eG,projectName:e,files:[]}),this.log.isEnabled()&&this.log.writeLine(`Closing file watchers for project '${e}' - done.`)):this.log.isEnabled()&&this.log.writeLine(`No watchers are registered for project '${e}'`)}install(e){this.log.isEnabled()&&this.log.writeLine(`Got install request${aG(e)}`),e.cachePath&&(this.log.isEnabled()&&this.log.writeLine(`Request specifies cache path '${e.cachePath}', loading cached information...`),this.processCacheLocation(e.cachePath)),void 0===this.safeList&&this.initializeSafeList();const t=VK.discoverTypings(this.installTypingHost,this.log.isEnabled()?e=>this.log.writeLine(e):void 0,e.fileNames,e.projectRootPath,this.safeList,this.packageNameToTypingLocation,e.typeAcquisition,e.unresolvedImports,this.typesRegistry,e.compilerOptions);this.watchFiles(e.projectName,t.filesToWatch),t.newTypingNames.length?this.installTypings(e,e.cachePath||this.globalCachePath,t.cachedTypingPaths,t.newTypingNames):(this.sendResponse(this.createSetTypings(e,t.cachedTypingPaths)),this.log.isEnabled()&&this.log.writeLine("No new typings were requested as a result of typings discovery"))}installPackage(e){const{fileName:t,packageName:n,projectName:r,projectRootPath:i,id:o}=e,a=sa(Do(t),e=>{if(this.installTypingHost.fileExists(jo(e,"package.json")))return e})||i;if(a)this.installWorker(-1,[n],a,e=>{const t={kind:GK,projectName:r,id:o,success:e,message:e?`Package ${n} installed.`:`There was an error installing ${n}.`};this.sendResponse(t)});else{const e={kind:GK,projectName:r,id:o,success:!1,message:"Could not determine a project root path."};this.sendResponse(e)}}initializeSafeList(){if(this.typesMapLocation){const e=VK.loadTypesMap(this.installTypingHost,this.typesMapLocation);if(e)return this.log.writeLine(`Loaded safelist from types map file '${this.typesMapLocation}'`),void(this.safeList=e);this.log.writeLine(`Failed to load safelist from types map file '${this.typesMapLocation}'`)}this.safeList=VK.loadSafeList(this.installTypingHost,this.safeListPath)}processCacheLocation(e){if(this.log.isEnabled()&&this.log.writeLine(`Processing cache location '${e}'`),this.knownCachesSet.has(e))return void(this.log.isEnabled()&&this.log.writeLine("Cache location was already processed..."));const t=jo(e,"package.json"),n=jo(e,"package-lock.json");if(this.log.isEnabled()&&this.log.writeLine(`Trying to find '${t}'...`),this.installTypingHost.fileExists(t)&&this.installTypingHost.fileExists(n)){const r=JSON.parse(this.installTypingHost.readFile(t)),i=JSON.parse(this.installTypingHost.readFile(n));if(this.log.isEnabled()&&(this.log.writeLine(`Loaded content of '${t}':${aG(r)}`),this.log.writeLine(`Loaded content of '${n}':${aG(i)}`)),r.devDependencies&&(i.packages||i.dependencies))for(const t in r.devDependencies){if(i.packages&&!De(i.packages,`node_modules/${t}`)||i.dependencies&&!De(i.dependencies,t))continue;const n=Fo(t);if(!n)continue;const r=Cfe(e,n,this.installTypingHost,this.log);if(!r){this.missingTypingsSet.add(n);continue}const o=this.packageNameToTypingLocation.get(n);if(o){if(o.typingLocation===r)continue;this.log.isEnabled()&&this.log.writeLine(`New typing for package ${n} from '${r}' conflicts with existing typing file '${o}'`)}this.log.isEnabled()&&this.log.writeLine(`Adding entry into typings cache: '${n}' => '${r}'`);const a=i.packages&&Fe(i.packages,`node_modules/${t}`)||Fe(i.dependencies,t),s=a&&a.version;if(!s)continue;const c={typingLocation:r,version:new bn(s)};this.packageNameToTypingLocation.set(n,c)}}this.log.isEnabled()&&this.log.writeLine(`Finished processing cache location '${e}'`),this.knownCachesSet.add(e)}filterTypings(e){return B(e,e=>{const t=PR(e);if(this.missingTypingsSet.has(t))return void(this.log.isEnabled()&&this.log.writeLine(`'${e}':: '${t}' is in missingTypingsSet - skipping...`));const n=VK.validatePackageName(e);if(n!==VK.NameValidationResult.Ok)return this.missingTypingsSet.add(t),void(this.log.isEnabled()&&this.log.writeLine(VK.renderPackageNameValidationFailure(n,e)));if(this.typesRegistry.has(t)){if(!this.packageNameToTypingLocation.get(t)||!VK.isTypingUpToDate(this.packageNameToTypingLocation.get(t),this.typesRegistry.get(t)))return t;this.log.isEnabled()&&this.log.writeLine(`'${e}':: '${t}' already has an up-to-date typing - skipping...`)}else this.log.isEnabled()&&this.log.writeLine(`'${e}':: Entry for package '${t}' does not exist in local types registry - skipping...`)})}ensurePackageDirectoryExists(e){const t=jo(e,"package.json");this.log.isEnabled()&&this.log.writeLine(`Npm config file: ${t}`),this.installTypingHost.fileExists(t)||(this.log.isEnabled()&&this.log.writeLine(`Npm config file: '${t}' is missing, creating new one...`),this.ensureDirectoryExists(e,this.installTypingHost),this.installTypingHost.writeFile(t,'{ "private": true }'))}installTypings(e,t,n,r){this.log.isEnabled()&&this.log.writeLine(`Installing typings ${JSON.stringify(r)}`);const i=this.filterTypings(r);if(0===i.length)return this.log.isEnabled()&&this.log.writeLine("All typings are known to be missing or invalid - no need to install more typings"),void this.sendResponse(this.createSetTypings(e,n));this.ensurePackageDirectoryExists(t);const o=this.installRunCount;this.installRunCount++,this.sendResponse({kind:QK,eventId:o,typingsInstallerVersion:s,projectName:e.projectName});const c=i.map(Ffe);this.installTypingsAsync(o,c,t,r=>{try{if(!r){this.log.isEnabled()&&this.log.writeLine(`install request failed, marking packages as missing to prevent repeated requests: ${JSON.stringify(i)}`);for(const e of i)this.missingTypingsSet.add(e);return}this.log.isEnabled()&&this.log.writeLine(`Installed typings ${JSON.stringify(c)}`);const o=[];for(const e of i){const n=Cfe(t,e,this.installTypingHost,this.log);if(!n){this.missingTypingsSet.add(e);continue}const r=this.typesRegistry.get(e),i={typingLocation:n,version:new bn(r[`ts${a}`]||r[this.latestDistTag])};this.packageNameToTypingLocation.set(e,i),o.push(n)}this.log.isEnabled()&&this.log.writeLine(`Installed typing files ${JSON.stringify(o)}`),this.sendResponse(this.createSetTypings(e,n.concat(o)))}finally{const t={kind:YK,eventId:o,projectName:e.projectName,packagesToInstall:c,installSuccess:r,typingsInstallerVersion:s};this.sendResponse(t)}})}ensureDirectoryExists(e,t){const n=Do(e);t.directoryExists(n)||this.ensureDirectoryExists(n,t),t.directoryExists(e)||t.createDirectory(e)}watchFiles(e,t){if(!t.length)return void this.closeWatchers(e);const n=this.projectWatchers.get(e),r=new Set(t);!n||id(r,e=>!n.has(e))||id(n,e=>!r.has(e))?(this.projectWatchers.set(e,r),this.sendResponse({kind:eG,projectName:e,files:t})):this.sendResponse({kind:eG,projectName:e,files:void 0})}createSetTypings(e,t){return{projectName:e.projectName,typeAcquisition:e.typeAcquisition,compilerOptions:e.compilerOptions,typings:t,unresolvedImports:e.unresolvedImports,kind:HK}}installTypingsAsync(e,t,n,r){this.pendingRunRequests.unshift({requestId:e,packageNames:t,cwd:n,onRequestCompleted:r}),this.executeWithThrottling()}executeWithThrottling(){for(;this.inFlightRequestCount{this.inFlightRequestCount--,e.onRequestCompleted(t),this.executeWithThrottling()})}}};function Ffe(e){return`@types/${e}@ts${a}`}var Efe,Pfe,Afe=(e=>(e[e.terse=0]="terse",e[e.normal=1]="normal",e[e.requestTime=2]="requestTime",e[e.verbose=3]="verbose",e))(Afe||{}),Ife=[],Ofe=(e=>(e.Err="Err",e.Info="Info",e.Perf="Perf",e))(Ofe||{});function Lfe(e,t,n,r){return{projectName:e.getProjectName(),fileNames:e.getFileNames(!0,!0).concat(e.getExcludedFiles()),compilerOptions:e.getCompilationSettings(),typeAcquisition:t,unresolvedImports:n,projectRootPath:e.getCurrentDirectory(),cachePath:r,kind:"discover"}}function jfe(e){return Jo(e)}function Mfe(e,t,n){return n(go(e)?e:Bo(e,t))}function Rfe(e){return e}function Bfe(){const e=new Map;return{get:t=>e.get(t),set(t,n){e.set(t,n)},contains:t=>e.has(t),remove(t){e.delete(t)}}}function Jfe(e){return/dev\/null\/inferredProject\d+\*/.test(e)}function zfe(e){return`/dev/null/inferredProject${e}*`}function qfe(e){return`/dev/null/autoImportProviderProject${e}*`}function Ufe(e){return`/dev/null/auxiliaryProject${e}*`}function Vfe(){return[]}(Pfe=Efe||(Efe={})).ThrowNoProject=function(){throw new Error("No Project.")},Pfe.ThrowProjectLanguageServiceDisabled=function(){throw new Error("The project's language service is disabled.")},Pfe.ThrowProjectDoesNotContainDocument=function(e,t){throw new Error(`Project '${t.getProjectName()}' does not contain document '${e}'`)};var Wfe=class e{constructor(e,t){this.host=e,this.pendingTimeouts=new Map,this.logger=t.hasLevel(3)?t:void 0}schedule(t,n,r){const i=this.pendingTimeouts.get(t);i&&this.host.clearTimeout(i),this.pendingTimeouts.set(t,this.host.setTimeout(e.run,n,t,this,r)),this.logger&&this.logger.info(`Scheduled: ${t}${i?", Cancelled earlier one":""}`)}cancel(e){const t=this.pendingTimeouts.get(e);return!!t&&(this.host.clearTimeout(t),this.pendingTimeouts.delete(e))}static run(e,t,n){t.pendingTimeouts.delete(e),t.logger&&t.logger.info(`Running: ${e}`),n()}},$fe=class e{constructor(e,t,n){this.host=e,this.delay=t,this.logger=n}scheduleCollect(){this.host.gc&&void 0===this.timerId&&(this.timerId=this.host.setTimeout(e.run,this.delay,this))}static run(e){e.timerId=void 0;const t=e.logger.hasLevel(2),n=t&&e.host.getMemoryUsage();if(e.host.gc(),t){const t=e.host.getMemoryUsage();e.logger.perftrc(`GC::before ${n}, after ${t}`)}}};function Hfe(e){const t=Fo(e);return"tsconfig.json"===t||"jsconfig.json"===t?t:void 0}var Kfe={};i(Kfe,{ClassificationType:()=>zG,CommandTypes:()=>Gfe,CompletionTriggerKind:()=>CG,IndentStyle:()=>Zfe,JsxEmit:()=>eme,ModuleKind:()=>tme,ModuleResolutionKind:()=>nme,NewLineKind:()=>rme,OrganizeImportsMode:()=>TG,PollingWatchKind:()=>Yfe,ScriptTarget:()=>ime,SemicolonPreference:()=>FG,WatchDirectoryKind:()=>Qfe,WatchFileKind:()=>Xfe});var Gfe=(e=>(e.JsxClosingTag="jsxClosingTag",e.LinkedEditingRange="linkedEditingRange",e.Brace="brace",e.BraceFull="brace-full",e.BraceCompletion="braceCompletion",e.GetSpanOfEnclosingComment="getSpanOfEnclosingComment",e.Change="change",e.Close="close",e.Completions="completions",e.CompletionInfo="completionInfo",e.CompletionsFull="completions-full",e.CompletionDetails="completionEntryDetails",e.CompletionDetailsFull="completionEntryDetails-full",e.CompileOnSaveAffectedFileList="compileOnSaveAffectedFileList",e.CompileOnSaveEmitFile="compileOnSaveEmitFile",e.Configure="configure",e.Definition="definition",e.DefinitionFull="definition-full",e.DefinitionAndBoundSpan="definitionAndBoundSpan",e.DefinitionAndBoundSpanFull="definitionAndBoundSpan-full",e.Implementation="implementation",e.ImplementationFull="implementation-full",e.EmitOutput="emit-output",e.Exit="exit",e.FileReferences="fileReferences",e.FileReferencesFull="fileReferences-full",e.Format="format",e.Formatonkey="formatonkey",e.FormatFull="format-full",e.FormatonkeyFull="formatonkey-full",e.FormatRangeFull="formatRange-full",e.Geterr="geterr",e.GeterrForProject="geterrForProject",e.SemanticDiagnosticsSync="semanticDiagnosticsSync",e.SyntacticDiagnosticsSync="syntacticDiagnosticsSync",e.SuggestionDiagnosticsSync="suggestionDiagnosticsSync",e.NavBar="navbar",e.NavBarFull="navbar-full",e.Navto="navto",e.NavtoFull="navto-full",e.NavTree="navtree",e.NavTreeFull="navtree-full",e.DocumentHighlights="documentHighlights",e.DocumentHighlightsFull="documentHighlights-full",e.Open="open",e.Quickinfo="quickinfo",e.QuickinfoFull="quickinfo-full",e.References="references",e.ReferencesFull="references-full",e.Reload="reload",e.Rename="rename",e.RenameInfoFull="rename-full",e.RenameLocationsFull="renameLocations-full",e.Saveto="saveto",e.SignatureHelp="signatureHelp",e.SignatureHelpFull="signatureHelp-full",e.FindSourceDefinition="findSourceDefinition",e.Status="status",e.TypeDefinition="typeDefinition",e.ProjectInfo="projectInfo",e.ReloadProjects="reloadProjects",e.Unknown="unknown",e.OpenExternalProject="openExternalProject",e.OpenExternalProjects="openExternalProjects",e.CloseExternalProject="closeExternalProject",e.SynchronizeProjectList="synchronizeProjectList",e.ApplyChangedToOpenFiles="applyChangedToOpenFiles",e.UpdateOpen="updateOpen",e.EncodedSyntacticClassificationsFull="encodedSyntacticClassifications-full",e.EncodedSemanticClassificationsFull="encodedSemanticClassifications-full",e.Cleanup="cleanup",e.GetOutliningSpans="getOutliningSpans",e.GetOutliningSpansFull="outliningSpans",e.TodoComments="todoComments",e.Indentation="indentation",e.DocCommentTemplate="docCommentTemplate",e.CompilerOptionsDiagnosticsFull="compilerOptionsDiagnostics-full",e.NameOrDottedNameSpan="nameOrDottedNameSpan",e.BreakpointStatement="breakpointStatement",e.CompilerOptionsForInferredProjects="compilerOptionsForInferredProjects",e.GetCodeFixes="getCodeFixes",e.GetCodeFixesFull="getCodeFixes-full",e.GetCombinedCodeFix="getCombinedCodeFix",e.GetCombinedCodeFixFull="getCombinedCodeFix-full",e.ApplyCodeActionCommand="applyCodeActionCommand",e.GetSupportedCodeFixes="getSupportedCodeFixes",e.GetApplicableRefactors="getApplicableRefactors",e.GetEditsForRefactor="getEditsForRefactor",e.GetMoveToRefactoringFileSuggestions="getMoveToRefactoringFileSuggestions",e.PreparePasteEdits="preparePasteEdits",e.GetPasteEdits="getPasteEdits",e.GetEditsForRefactorFull="getEditsForRefactor-full",e.OrganizeImports="organizeImports",e.OrganizeImportsFull="organizeImports-full",e.GetEditsForFileRename="getEditsForFileRename",e.GetEditsForFileRenameFull="getEditsForFileRename-full",e.ConfigurePlugin="configurePlugin",e.SelectionRange="selectionRange",e.SelectionRangeFull="selectionRange-full",e.ToggleLineComment="toggleLineComment",e.ToggleLineCommentFull="toggleLineComment-full",e.ToggleMultilineComment="toggleMultilineComment",e.ToggleMultilineCommentFull="toggleMultilineComment-full",e.CommentSelection="commentSelection",e.CommentSelectionFull="commentSelection-full",e.UncommentSelection="uncommentSelection",e.UncommentSelectionFull="uncommentSelection-full",e.PrepareCallHierarchy="prepareCallHierarchy",e.ProvideCallHierarchyIncomingCalls="provideCallHierarchyIncomingCalls",e.ProvideCallHierarchyOutgoingCalls="provideCallHierarchyOutgoingCalls",e.ProvideInlayHints="provideInlayHints",e.WatchChange="watchChange",e.MapCode="mapCode",e.CopilotRelated="copilotRelated",e))(Gfe||{}),Xfe=(e=>(e.FixedPollingInterval="FixedPollingInterval",e.PriorityPollingInterval="PriorityPollingInterval",e.DynamicPriorityPolling="DynamicPriorityPolling",e.FixedChunkSizePolling="FixedChunkSizePolling",e.UseFsEvents="UseFsEvents",e.UseFsEventsOnParentDirectory="UseFsEventsOnParentDirectory",e))(Xfe||{}),Qfe=(e=>(e.UseFsEvents="UseFsEvents",e.FixedPollingInterval="FixedPollingInterval",e.DynamicPriorityPolling="DynamicPriorityPolling",e.FixedChunkSizePolling="FixedChunkSizePolling",e))(Qfe||{}),Yfe=(e=>(e.FixedInterval="FixedInterval",e.PriorityInterval="PriorityInterval",e.DynamicPriority="DynamicPriority",e.FixedChunkSize="FixedChunkSize",e))(Yfe||{}),Zfe=(e=>(e.None="None",e.Block="Block",e.Smart="Smart",e))(Zfe||{}),eme=(e=>(e.None="none",e.Preserve="preserve",e.ReactNative="react-native",e.React="react",e.ReactJSX="react-jsx",e.ReactJSXDev="react-jsxdev",e))(eme||{}),tme=(e=>(e.None="none",e.CommonJS="commonjs",e.AMD="amd",e.UMD="umd",e.System="system",e.ES6="es6",e.ES2015="es2015",e.ES2020="es2020",e.ES2022="es2022",e.ESNext="esnext",e.Node16="node16",e.Node18="node18",e.Node20="node20",e.NodeNext="nodenext",e.Preserve="preserve",e))(tme||{}),nme=(e=>(e.Classic="classic",e.Node="node",e.NodeJs="node",e.Node10="node10",e.Node16="node16",e.NodeNext="nodenext",e.Bundler="bundler",e))(nme||{}),rme=(e=>(e.Crlf="Crlf",e.Lf="Lf",e))(rme||{}),ime=(e=>(e.ES3="es3",e.ES5="es5",e.ES6="es6",e.ES2015="es2015",e.ES2016="es2016",e.ES2017="es2017",e.ES2018="es2018",e.ES2019="es2019",e.ES2020="es2020",e.ES2021="es2021",e.ES2022="es2022",e.ES2023="es2023",e.ES2024="es2024",e.ESNext="esnext",e.JSON="json",e.Latest="esnext",e))(ime||{}),ome=class{constructor(e,t,n){this.host=e,this.info=t,this.isOpen=!1,this.ownFileText=!1,this.pendingReloadFromDisk=!1,this.version=n||0}getVersion(){return this.svc?`SVC-${this.version}-${this.svc.getSnapshotVersion()}`:`Text-${this.version}`}hasScriptVersionCache_TestOnly(){return void 0!==this.svc}resetSourceMapInfo(){this.info.sourceFileLike=void 0,this.info.closeSourceMapFileWatcher(),this.info.sourceMapFilePath=void 0,this.info.declarationInfoPath=void 0,this.info.sourceInfos=void 0,this.info.documentPositionMapper=void 0}useText(e){this.svc=void 0,this.text=e,this.textSnapshot=void 0,this.lineMap=void 0,this.fileSize=void 0,this.resetSourceMapInfo(),this.version++}edit(e,t,n){this.switchToScriptVersionCache().edit(e,t-e,n),this.ownFileText=!1,this.text=void 0,this.textSnapshot=void 0,this.lineMap=void 0,this.fileSize=void 0,this.resetSourceMapInfo()}reload(e){return un.assert(void 0!==e),this.pendingReloadFromDisk=!1,!this.text&&this.svc&&(this.text=zQ(this.svc.getSnapshot())),this.text!==e&&(this.useText(e),this.ownFileText=!1,!0)}reloadWithFileText(e){const{text:t,fileSize:n}=e||!this.info.isDynamicOrHasMixedContent()?this.getFileTextAndSize(e):{text:"",fileSize:void 0},r=this.reload(t);return this.fileSize=n,this.ownFileText=!e||e===this.info.fileName,this.ownFileText&&this.info.mTime===zi.getTime()&&(this.info.mTime=(this.host.getModifiedTime(this.info.fileName)||zi).getTime()),r}scheduleReloadIfNeeded(){return!this.pendingReloadFromDisk&&!this.ownFileText&&(this.pendingReloadFromDisk=!0)}delayReloadFromFileIntoText(){this.pendingReloadFromDisk=!0}getTelemetryFileSize(){return this.fileSize?this.fileSize:this.text?this.text.length:this.svc?this.svc.getSnapshot().getLength():this.getSnapshot().getLength()}getSnapshot(){var e;return(null==(e=this.tryUseScriptVersionCache())?void 0:e.getSnapshot())||(this.textSnapshot??(this.textSnapshot=dG.fromString(un.checkDefined(this.text))))}getAbsolutePositionAndLineText(e){const t=this.tryUseScriptVersionCache();if(t)return t.getAbsolutePositionAndLineText(e);const n=this.getLineMap();return e<=n.length?{absolutePosition:n[e-1],lineText:this.text.substring(n[e-1],n[e])}:{absolutePosition:this.text.length,lineText:void 0}}lineToTextSpan(e){const t=this.tryUseScriptVersionCache();if(t)return t.lineToTextSpan(e);const n=this.getLineMap();return $s(n[e],e+1void 0===t?t=this.host.readFile(n)||"":t;if(!LS(this.info.fileName)){const e=this.host.getFileSize?this.host.getFileSize(n):r().length;if(e>Eme)return un.assert(!!this.info.containingProjects.length),this.info.containingProjects[0].projectService.logger.info(`Skipped loading contents of large file ${n} for info ${this.info.fileName}: fileSize: ${e}`),this.info.containingProjects[0].projectService.sendLargeFileReferencedEvent(n,e),{text:"",fileSize:e}}return{text:r()}}switchToScriptVersionCache(){return this.svc&&!this.pendingReloadFromDisk||(this.svc=ghe.fromString(this.getOrLoadText()),this.textSnapshot=void 0,this.version++),this.svc}tryUseScriptVersionCache(){return this.svc&&!this.pendingReloadFromDisk||this.getOrLoadText(),this.isOpen?(this.svc||this.textSnapshot||(this.svc=ghe.fromString(un.checkDefined(this.text)),this.textSnapshot=void 0),this.svc):this.svc}getOrLoadText(){return(void 0===this.text||this.pendingReloadFromDisk)&&(un.assert(!this.svc||this.pendingReloadFromDisk,"ScriptVersionCache should not be set when reloading from disk"),this.reloadWithFileText()),this.text}getLineMap(){return un.assert(!this.svc,"ScriptVersionCache should not be set"),this.lineMap||(this.lineMap=Oa(un.checkDefined(this.text)))}getLineInfo(){const e=this.tryUseScriptVersionCache();if(e)return{getLineCount:()=>e.getLineCount(),getLineText:t=>e.getAbsolutePositionAndLineText(t+1).lineText};const t=this.getLineMap();return wJ(this.text,t)}};function ame(e){return"^"===e[0]||(e.includes("walkThroughSnippet:/")||e.includes("untitled:/"))&&"^"===Fo(e)[0]||e.includes(":^")&&!e.includes(lo)}var sme=class{constructor(e,t,n,r,i,o){this.host=e,this.fileName=t,this.scriptKind=n,this.hasMixedContent=r,this.path=i,this.containingProjects=[],this.isDynamic=ame(t),this.textStorage=new ome(e,this,o),(r||this.isDynamic)&&(this.realpath=this.path),this.scriptKind=n||xS(t)}isDynamicOrHasMixedContent(){return this.hasMixedContent||this.isDynamic}isScriptOpen(){return this.textStorage.isOpen}open(e){this.textStorage.isOpen=!0,void 0!==e&&this.textStorage.reload(e)&&this.markContainingProjectsAsDirty()}close(e=!0){this.textStorage.isOpen=!1,e&&this.textStorage.scheduleReloadIfNeeded()&&this.markContainingProjectsAsDirty()}getSnapshot(){return this.textStorage.getSnapshot()}ensureRealPath(){if(void 0===this.realpath&&(this.realpath=this.path,this.host.realpath)){un.assert(!!this.containingProjects.length);const e=this.containingProjects[0],t=this.host.realpath(this.path);t&&(this.realpath=e.toPath(t),this.realpath!==this.path&&e.projectService.realpathToScriptInfos.add(this.realpath,this))}}getRealpathIfDifferent(){return this.realpath&&this.realpath!==this.path?this.realpath:void 0}isSymlink(){return this.realpath&&this.realpath!==this.path}getFormatCodeSettings(){return this.formatSettings}getPreferences(){return this.preferences}attachToProject(e){const t=!this.isAttached(e);return t&&(this.containingProjects.push(e),e.getCompilerOptions().preserveSymlinks||this.ensureRealPath(),e.onFileAddedOrRemoved(this.isSymlink())),t}isAttached(e){switch(this.containingProjects.length){case 0:return!1;case 1:return this.containingProjects[0]===e;case 2:return this.containingProjects[0]===e||this.containingProjects[1]===e;default:return T(this.containingProjects,e)}}detachFromProject(e){switch(this.containingProjects.length){case 0:return;case 1:this.containingProjects[0]===e&&(e.onFileAddedOrRemoved(this.isSymlink()),this.containingProjects.pop());break;case 2:this.containingProjects[0]===e?(e.onFileAddedOrRemoved(this.isSymlink()),this.containingProjects[0]=this.containingProjects.pop()):this.containingProjects[1]===e&&(e.onFileAddedOrRemoved(this.isSymlink()),this.containingProjects.pop());break;default:zt(this.containingProjects,e)&&e.onFileAddedOrRemoved(this.isSymlink())}}detachAllProjects(){for(const e of this.containingProjects){Cme(e)&&e.getCachedDirectoryStructureHost().addOrDeleteFile(this.fileName,this.path,2);const t=e.getRootFilesMap().get(this.path);e.removeFile(this,!1,!1),e.onFileAddedOrRemoved(this.isSymlink()),t&&!Tme(e)&&e.addMissingFileRoot(t.fileName)}F(this.containingProjects)}getDefaultProject(){switch(this.containingProjects.length){case 0:return Efe.ThrowNoProject();case 1:return Dme(this.containingProjects[0])||Nme(this.containingProjects[0])?Efe.ThrowNoProject():this.containingProjects[0];default:let e,t,n,r;for(let i=0;i!e.isOrphan())}lineToTextSpan(e){return this.textStorage.lineToTextSpan(e)}lineOffsetToPosition(e,t,n){return this.textStorage.lineOffsetToPosition(e,t,n)}positionToLineOffset(e){!function(e){un.assert("number"==typeof e,`Expected position ${e} to be a number.`),un.assert(e>=0,"Expected position to be non-negative.")}(e);const t=this.textStorage.positionToLineOffset(e);return function(e){un.assert("number"==typeof e.line,`Expected line ${e.line} to be a number.`),un.assert("number"==typeof e.offset,`Expected offset ${e.offset} to be a number.`),un.assert(e.line>0,"Expected line to be non-"+(0===e.line?"zero":"negative")),un.assert(e.offset>0,"Expected offset to be non-"+(0===e.offset?"zero":"negative"))}(t),t}isJavaScript(){return 1===this.scriptKind||2===this.scriptKind}closeSourceMapFileWatcher(){this.sourceMapFilePath&&!Ze(this.sourceMapFilePath)&&(RU(this.sourceMapFilePath),this.sourceMapFilePath=void 0)}};function cme(e){return $(e.containingProjects,Nme)}function lme(e){return $(e.containingProjects,Dme)}var _me=(e=>(e[e.Inferred=0]="Inferred",e[e.Configured=1]="Configured",e[e.External=2]="External",e[e.AutoImportProvider=3]="AutoImportProvider",e[e.Auxiliary=4]="Auxiliary",e))(_me||{});function ume(e,t=!1){const n={js:0,jsSize:0,jsx:0,jsxSize:0,ts:0,tsSize:0,tsx:0,tsxSize:0,dts:0,dtsSize:0,deferred:0,deferredSize:0};for(const r of e){const e=t?r.textStorage.getTelemetryFileSize():0;switch(r.scriptKind){case 1:n.js+=1,n.jsSize+=e;break;case 2:n.jsx+=1,n.jsxSize+=e;break;case 3:uO(r.fileName)?(n.dts+=1,n.dtsSize+=e):(n.ts+=1,n.tsSize+=e);break;case 4:n.tsx+=1,n.tsxSize+=e;break;case 7:n.deferred+=1,n.deferredSize+=e}}return n}function dme(e){const t=ume(e.getRootScriptInfos());return 0===t.ts&&0===t.tsx}function pme(e){const t=ume(e.getScriptInfos());return 0===t.ts&&0===t.tsx}function fme(e){return!e.some(e=>ko(e,".ts")&&!uO(e)||ko(e,".tsx"))}function mme(e){return void 0!==e.generatedFilePath}function gme(e,t){if(e===t)return!0;if(0===(e||Ife).length&&0===(t||Ife).length)return!0;const n=new Map;let r=0;for(const t of e)!0!==n.get(t)&&(n.set(t,!0),r++);for(const e of t){const t=n.get(e);if(void 0===t)return!1;!0===t&&(n.set(e,!1),r--)}return 0===r}var hme=class e{constructor(e,t,n,r,i,o,a,s,c,l){switch(this.projectKind=t,this.projectService=n,this.compilerOptions=o,this.compileOnSaveEnabled=a,this.watchOptions=s,this.rootFilesMap=new Map,this.plugins=[],this.cachedUnresolvedImportsPerFile=new Map,this.hasAddedorRemovedFiles=!1,this.hasAddedOrRemovedSymlinks=!1,this.lastReportedVersion=0,this.projectProgramVersion=0,this.projectStateVersion=0,this.initialLoadPending=!1,this.dirty=!1,this.typingFiles=Ife,this.moduleSpecifierCache=Age(this),this.createHash=We(this.projectService.host,this.projectService.host.createHash),this.globalCacheResolutionModuleName=VK.nonRelativeModuleNameForTypingCache,this.updateFromProjectInProgress=!1,n.logger.info(`Creating ${_me[t]}Project: ${e}, currentDirectory: ${l}`),this.projectName=e,this.directoryStructureHost=c,this.currentDirectory=this.projectService.getNormalizedAbsolutePath(l),this.getCanonicalFileName=this.projectService.toCanonicalFileName,this.jsDocParsingMode=this.projectService.jsDocParsingMode,this.cancellationToken=new H8(this.projectService.cancellationToken,this.projectService.throttleWaitMilliseconds),this.compilerOptions?(r||Ak(this.compilerOptions)||this.projectService.hasDeferredExtension())&&(this.compilerOptions.allowNonTsExtensions=!0):(this.compilerOptions={target:1,jsx:1},this.compilerOptions.allowNonTsExtensions=!0,this.compilerOptions.allowJs=!0),n.serverMode){case 0:this.languageServiceEnabled=!0;break;case 1:this.languageServiceEnabled=!0,this.compilerOptions.noResolve=!0,this.compilerOptions.types=[];break;case 2:this.languageServiceEnabled=!1,this.compilerOptions.noResolve=!0,this.compilerOptions.types=[];break;default:un.assertNever(n.serverMode)}this.setInternalCompilerOptionsForEmittingJsFiles();const _=this.projectService.host;this.projectService.logger.loggingEnabled()?this.trace=e=>this.writeLog(e):_.trace&&(this.trace=e=>_.trace(e)),this.realpath=We(_,_.realpath),this.preferNonRecursiveWatch=this.projectService.canUseWatchEvents||_.preferNonRecursiveWatch,this.resolutionCache=r$(this,this.currentDirectory,!0),this.languageService=X8(this,this.projectService.documentRegistry,this.projectService.serverMode),i&&this.disableLanguageService(i),this.markAsDirty(),Nme(this)||(this.projectService.pendingEnsureProjectForOpenFiles=!0),this.projectService.onProjectCreation(this)}getRedirectFromSourceFile(e){}isNonTsProject(){return vge(this),pme(this)}isJsOnlyProject(){return vge(this),function(e){const t=ume(e.getScriptInfos());return t.js>0&&0===t.ts&&0===t.tsx}(this)}static resolveModule(t,n,r,i){return e.importServicePluginSync({name:t},[n],r,i).resolvedModule}static importServicePluginSync(e,t,n,r){let i,o;un.assertIsDefined(n.require);for(const a of t){const t=Oo(n.resolvePath(jo(a,"node_modules")));r(`Loading ${e.name} from ${a} (resolved to ${t})`);const s=n.require(t,e.name);if(!s.error){o=s.module;break}const c=s.error.stack||s.error.message||JSON.stringify(s.error);(i??(i=[])).push(`Failed to load module '${e.name}' from ${t}: ${c}`)}return{pluginConfigEntry:e,resolvedModule:o,errorLogs:i}}static async importServicePluginAsync(e,t,n,r){let i,o;un.assertIsDefined(n.importPlugin);for(const a of t){const t=jo(a,"node_modules");let s;r(`Dynamically importing ${e.name} from ${a} (resolved to ${t})`);try{s=await n.importPlugin(t,e.name)}catch(e){s={module:void 0,error:e}}if(!s.error){o=s.module;break}const c=s.error.stack||s.error.message||JSON.stringify(s.error);(i??(i=[])).push(`Failed to dynamically import module '${e.name}' from ${t}: ${c}`)}return{pluginConfigEntry:e,resolvedModule:o,errorLogs:i}}isKnownTypesPackageName(e){return this.projectService.typingsInstaller.isKnownTypesPackageName(e)}installPackage(e){return this.projectService.typingsInstaller.installPackage({...e,projectName:this.projectName,projectRootPath:this.toPath(this.currentDirectory)})}getGlobalTypingsCacheLocation(){return this.getTypeAcquisition().enable?this.projectService.typingsInstaller.globalTypingsCacheLocation:void 0}getSymlinkCache(){return this.symlinks||(this.symlinks=Qk(this.getCurrentDirectory(),this.getCanonicalFileName)),this.program&&!this.symlinks.hasProcessedResolutions()&&this.symlinks.setSymlinksFromResolutions(this.program.forEachResolvedModule,this.program.forEachResolvedTypeReferenceDirective,this.program.getAutomaticTypeDirectiveResolutions()),this.symlinks}getCompilationSettings(){return this.compilerOptions}getCompilerOptions(){return this.getCompilationSettings()}getNewLine(){return this.projectService.host.newLine}getProjectVersion(){return this.projectStateVersion.toString()}getProjectReferences(){}getScriptFileNames(){if(!this.rootFilesMap.size)return l;let e;return this.rootFilesMap.forEach(t=>{(this.languageServiceEnabled||t.info&&t.info.isScriptOpen())&&(e||(e=[])).push(t.fileName)}),se(e,this.typingFiles)||l}getOrCreateScriptInfoAndAttachToProject(e){const t=this.projectService.getOrCreateScriptInfoNotOpenedByClient(e,this.currentDirectory,this.directoryStructureHost,!1);if(t){const e=this.rootFilesMap.get(t.path);e&&e.info!==t&&(e.info=t),t.attachToProject(this)}return t}getScriptKind(e){const t=this.projectService.getScriptInfoForPath(this.toPath(e));return t&&t.scriptKind}getScriptVersion(e){const t=this.projectService.getOrCreateScriptInfoNotOpenedByClient(e,this.currentDirectory,this.directoryStructureHost,!1);return t&&t.getLatestVersion()}getScriptSnapshot(e){const t=this.getOrCreateScriptInfoAndAttachToProject(e);if(t)return t.getSnapshot()}getCancellationToken(){return this.cancellationToken}getCurrentDirectory(){return this.currentDirectory}getDefaultLibFileName(){return jo(Do(Jo(this.projectService.getExecutingFilePath())),Ds(this.compilerOptions))}useCaseSensitiveFileNames(){return this.projectService.host.useCaseSensitiveFileNames}readDirectory(e,t,n,r,i){return this.directoryStructureHost.readDirectory(e,t,n,r,i)}readFile(e){return this.projectService.host.readFile(e)}writeFile(e,t){return this.projectService.host.writeFile(e,t)}fileExists(e){const t=this.toPath(e);return!!this.projectService.getScriptInfoForPath(t)||!this.isWatchedMissingFile(t)&&this.directoryStructureHost.fileExists(e)}resolveModuleNameLiterals(e,t,n,r,i,o){return this.resolutionCache.resolveModuleNameLiterals(e,t,n,r,i,o)}getModuleResolutionCache(){return this.resolutionCache.getModuleResolutionCache()}resolveTypeReferenceDirectiveReferences(e,t,n,r,i,o){return this.resolutionCache.resolveTypeReferenceDirectiveReferences(e,t,n,r,i,o)}resolveLibrary(e,t,n,r){return this.resolutionCache.resolveLibrary(e,t,n,r)}directoryExists(e){return this.directoryStructureHost.directoryExists(e)}getDirectories(e){return this.directoryStructureHost.getDirectories(e)}getCachedDirectoryStructureHost(){}toPath(e){return Uo(e,this.currentDirectory,this.projectService.toCanonicalFileName)}watchDirectoryOfFailedLookupLocation(e,t,n){return this.projectService.watchFactory.watchDirectory(e,t,n,this.projectService.getWatchOptions(this),F$.FailedLookupLocations,this)}watchAffectingFileLocation(e,t){return this.projectService.watchFactory.watchFile(e,t,2e3,this.projectService.getWatchOptions(this),F$.AffectingFileLocation,this)}clearInvalidateResolutionOfFailedLookupTimer(){return this.projectService.throttledOperations.cancel(`${this.getProjectName()}FailedLookupInvalidation`)}scheduleInvalidateResolutionsOfFailedLookupLocations(){this.projectService.throttledOperations.schedule(`${this.getProjectName()}FailedLookupInvalidation`,1e3,()=>{this.resolutionCache.invalidateResolutionsOfFailedLookupLocations()&&this.projectService.delayUpdateProjectGraphAndEnsureProjectStructureForOpenFiles(this)})}invalidateResolutionsOfFailedLookupLocations(){this.clearInvalidateResolutionOfFailedLookupTimer()&&this.resolutionCache.invalidateResolutionsOfFailedLookupLocations()&&(this.markAsDirty(),this.projectService.delayEnsureProjectForOpenFiles())}onInvalidatedResolution(){this.projectService.delayUpdateProjectGraphAndEnsureProjectStructureForOpenFiles(this)}watchTypeRootsDirectory(e,t,n){return this.projectService.watchFactory.watchDirectory(e,t,n,this.projectService.getWatchOptions(this),F$.TypeRoots,this)}hasChangedAutomaticTypeDirectiveNames(){return this.resolutionCache.hasChangedAutomaticTypeDirectiveNames()}onChangedAutomaticTypeDirectiveNames(){this.projectService.delayUpdateProjectGraphAndEnsureProjectStructureForOpenFiles(this)}fileIsOpen(e){return this.projectService.openFiles.has(e)}writeLog(e){this.projectService.logger.info(e)}log(e){this.writeLog(e)}error(e){this.projectService.logger.msg(e,"Err")}setInternalCompilerOptionsForEmittingJsFiles(){0!==this.projectKind&&2!==this.projectKind||(this.compilerOptions.noEmitForJsFiles=!0)}getGlobalProjectErrors(){return N(this.projectErrors,e=>!e.file)||Ife}getAllProjectErrors(){return this.projectErrors||Ife}setProjectErrors(e){this.projectErrors=e}getLanguageService(e=!0){return e&&vge(this),this.languageService}getSourceMapper(){return this.getLanguageService().getSourceMapper()}clearSourceMapperCache(){this.languageService.clearSourceMapperCache()}getDocumentPositionMapper(e,t){return this.projectService.getDocumentPositionMapper(this,e,t)}getSourceFileLike(e){return this.projectService.getSourceFileLike(e,this)}shouldEmitFile(e){return e&&!e.isDynamicOrHasMixedContent()&&!this.program.isSourceOfProjectReferenceRedirect(e.path)}getCompileOnSaveAffectedFileList(e){return this.languageServiceEnabled?(vge(this),this.builderState=XV.create(this.program,this.builderState,!0),B(XV.getFilesAffectedBy(this.builderState,this.program,e.path,this.cancellationToken,this.projectService.host),e=>this.shouldEmitFile(this.projectService.getScriptInfoForPath(e.path))?e.fileName:void 0)):[]}emitFile(e,t){if(!this.languageServiceEnabled||!this.shouldEmitFile(e))return{emitSkipped:!0,diagnostics:Ife};const{emitSkipped:n,diagnostics:r,outputFiles:i}=this.getLanguageService().getEmitOutput(e.fileName);if(!n){for(const e of i)t(Bo(e.name,this.currentDirectory),e.text,e.writeByteOrderMark);if(this.builderState&&Dk(this.compilerOptions)){const t=i.filter(e=>uO(e.name));if(1===t.length){const n=this.program.getSourceFile(e.fileName),r=this.projectService.host.createHash?this.projectService.host.createHash(t[0].text):Mi(t[0].text);XV.updateSignatureOfFile(this.builderState,r,n.resolvedPath)}}}return{emitSkipped:n,diagnostics:r}}enableLanguageService(){this.languageServiceEnabled||2===this.projectService.serverMode||(this.languageServiceEnabled=!0,this.lastFileExceededProgramSize=void 0,this.projectService.onUpdateLanguageServiceStateForProject(this,!0))}cleanupProgram(){if(this.program){for(const e of this.program.getSourceFiles())this.detachScriptInfoIfNotRoot(e.fileName);this.program.forEachResolvedProjectReference(e=>this.detachScriptInfoFromProject(e.sourceFile.fileName)),this.program=void 0}}disableLanguageService(e){this.languageServiceEnabled&&(un.assert(2!==this.projectService.serverMode),this.languageService.cleanupSemanticCache(),this.languageServiceEnabled=!1,this.cleanupProgram(),this.lastFileExceededProgramSize=e,this.builderState=void 0,this.autoImportProviderHost&&this.autoImportProviderHost.close(),this.autoImportProviderHost=void 0,this.resolutionCache.closeTypeRootsWatch(),this.clearGeneratedFileWatch(),this.projectService.verifyDocumentRegistry(),this.projectService.onUpdateLanguageServiceStateForProject(this,!1))}getProjectName(){return this.projectName}removeLocalTypingsFromTypeAcquisition(e){return e.enable&&e.include?{...e,include:this.removeExistingTypings(e.include)}:e}getExternalFiles(e){return _e(O(this.plugins,t=>{if("function"==typeof t.module.getExternalFiles)try{return t.module.getExternalFiles(this,e||0)}catch(e){this.projectService.logger.info(`A plugin threw an exception in getExternalFiles: ${e}`),e.stack&&this.projectService.logger.info(e.stack)}}))}getSourceFile(e){if(this.program)return this.program.getSourceFileByPath(e)}getSourceFileOrConfigFile(e){const t=this.program.getCompilerOptions();return e===t.configFilePath?t.configFile:this.getSourceFile(e)}close(){var e;this.typingsCache&&this.projectService.typingsInstaller.onProjectClosed(this),this.typingsCache=void 0,this.closeWatchingTypingLocations(),this.cleanupProgram(),d(this.externalFiles,e=>this.detachScriptInfoIfNotRoot(e)),this.rootFilesMap.forEach(e=>{var t;return null==(t=e.info)?void 0:t.detachFromProject(this)}),this.projectService.pendingEnsureProjectForOpenFiles=!0,this.rootFilesMap=void 0,this.externalFiles=void 0,this.program=void 0,this.builderState=void 0,this.resolutionCache.clear(),this.resolutionCache=void 0,this.cachedUnresolvedImportsPerFile=void 0,null==(e=this.packageJsonWatches)||e.forEach(e=>{e.projects.delete(this),e.close()}),this.packageJsonWatches=void 0,this.moduleSpecifierCache.clear(),this.moduleSpecifierCache=void 0,this.directoryStructureHost=void 0,this.exportMapCache=void 0,this.projectErrors=void 0,this.plugins.length=0,this.missingFilesMap&&(ux(this.missingFilesMap,nx),this.missingFilesMap=void 0),this.clearGeneratedFileWatch(),this.clearInvalidateResolutionOfFailedLookupTimer(),this.autoImportProviderHost&&this.autoImportProviderHost.close(),this.autoImportProviderHost=void 0,this.noDtsResolutionProject&&this.noDtsResolutionProject.close(),this.noDtsResolutionProject=void 0,this.languageService.dispose(),this.languageService=void 0}detachScriptInfoIfNotRoot(e){const t=this.projectService.getScriptInfo(e);t&&!this.isRoot(t)&&t.detachFromProject(this)}isClosed(){return void 0===this.rootFilesMap}hasRoots(){var e;return!!(null==(e=this.rootFilesMap)?void 0:e.size)}isOrphan(){return!1}getRootFiles(){return this.rootFilesMap&&Oe(J(this.rootFilesMap.values(),e=>{var t;return null==(t=e.info)?void 0:t.fileName}))}getRootFilesMap(){return this.rootFilesMap}getRootScriptInfos(){return Oe(J(this.rootFilesMap.values(),e=>e.info))}getScriptInfos(){return this.languageServiceEnabled?E(this.program.getSourceFiles(),e=>{const t=this.projectService.getScriptInfoForPath(e.resolvedPath);return un.assert(!!t,"getScriptInfo",()=>`scriptInfo for a file '${e.fileName}' Path: '${e.path}' / '${e.resolvedPath}' is missing.`),t}):this.getRootScriptInfos()}getExcludedFiles(){return Ife}getFileNames(e,t){if(!this.program)return[];if(!this.languageServiceEnabled){let e=this.getRootFiles();if(this.compilerOptions){const t=e7(this.compilerOptions);t&&(e||(e=[])).push(t)}return e}const n=[];for(const t of this.program.getSourceFiles())e&&this.program.isSourceFileFromExternalLibrary(t)||n.push(Rfe(t.fileName));if(!t){const e=this.program.getCompilerOptions().configFile;if(e&&(n.push(e.fileName),e.extendedSourceFiles))for(const t of e.extendedSourceFiles)n.push(Rfe(t))}return n}getFileNamesWithRedirectInfo(e){return this.getFileNames().map(t=>({fileName:t,isSourceOfProjectReferenceRedirect:e&&this.isSourceOfProjectReferenceRedirect(t)}))}hasConfigFile(e){if(this.program&&this.languageServiceEnabled){const t=this.program.getCompilerOptions().configFile;if(t){if(e===t.fileName)return!0;if(t.extendedSourceFiles)for(const n of t.extendedSourceFiles)if(e===Rfe(n))return!0}}return!1}containsScriptInfo(e){if(this.isRoot(e))return!0;if(!this.program)return!1;const t=this.program.getSourceFileByPath(e.path);return!!t&&t.resolvedPath===e.path}containsFile(e,t){const n=this.projectService.getScriptInfoForNormalizedPath(e);return!(!n||!n.isScriptOpen()&&t)&&this.containsScriptInfo(n)}isRoot(e){var t,n;return(null==(n=null==(t=this.rootFilesMap)?void 0:t.get(e.path))?void 0:n.info)===e}addRoot(e,t){un.assert(!this.isRoot(e)),this.rootFilesMap.set(e.path,{fileName:t||e.fileName,info:e}),e.attachToProject(this),this.markAsDirty()}addMissingFileRoot(e){const t=this.projectService.toPath(e);this.rootFilesMap.set(t,{fileName:e}),this.markAsDirty()}removeFile(e,t,n){this.isRoot(e)&&this.removeRoot(e),t?this.resolutionCache.removeResolutionsOfFile(e.path):this.resolutionCache.invalidateResolutionOfFile(e.path),this.cachedUnresolvedImportsPerFile.delete(e.path),n&&e.detachFromProject(this),this.markAsDirty()}registerFileUpdate(e){(this.updatedFileNames||(this.updatedFileNames=new Set)).add(e)}markFileAsDirty(e){this.markAsDirty(),this.exportMapCache&&!this.exportMapCache.isEmpty()&&(this.changedFilesForExportMapCache||(this.changedFilesForExportMapCache=new Set)).add(e)}markAsDirty(){this.dirty||(this.projectStateVersion++,this.dirty=!0)}markAutoImportProviderAsDirty(){var e;this.autoImportProviderHost||(this.autoImportProviderHost=void 0),null==(e=this.autoImportProviderHost)||e.markAsDirty()}onAutoImportProviderSettingsChanged(){this.markAutoImportProviderAsDirty()}onPackageJsonChange(){this.moduleSpecifierCache.clear(),this.markAutoImportProviderAsDirty()}onFileAddedOrRemoved(e){this.hasAddedorRemovedFiles=!0,e&&(this.hasAddedOrRemovedSymlinks=!0)}onDiscoveredSymlink(){this.hasAddedOrRemovedSymlinks=!0}onReleaseOldSourceFile(e,t,n,r){(!r||e.resolvedPath===e.path&&r.resolvedPath!==e.path)&&this.detachScriptInfoFromProject(e.fileName,n)}updateFromProject(){vge(this)}updateGraph(){var e,t;null==(e=Hn)||e.push(Hn.Phase.Session,"updateGraph",{name:this.projectName,kind:_me[this.projectKind]}),this.resolutionCache.startRecordingFilesWithChangedResolutions();const n=this.updateGraphWorker(),r=this.hasAddedorRemovedFiles;this.hasAddedorRemovedFiles=!1,this.hasAddedOrRemovedSymlinks=!1;const i=this.resolutionCache.finishRecordingFilesWithChangedResolutions()||Ife;for(const e of i)this.cachedUnresolvedImportsPerFile.delete(e);this.languageServiceEnabled&&0===this.projectService.serverMode&&!this.isOrphan()?((n||i.length)&&(this.lastCachedUnresolvedImportsList=function(e,t){var n,r;const i=e.getSourceFiles();null==(n=Hn)||n.push(Hn.Phase.Session,"getUnresolvedImports",{count:i.length});const o=e.getTypeChecker().getAmbientModules().map(e=>Fy(e.getName())),a=ee(O(i,n=>function(e,t,n,r){return z(r,t.path,()=>{let r;return e.forEachResolvedModule(({resolvedModule:e},t)=>{e&&YS(e.extension)||Cs(t)||n.some(e=>e===t)||(r=ie(r,mR(t).packageName))},t),r||Ife})}(e,n,o,t)));return null==(r=Hn)||r.pop(),a}(this.program,this.cachedUnresolvedImportsPerFile)),this.enqueueInstallTypingsForProject(r)):this.lastCachedUnresolvedImportsList=void 0;const o=0===this.projectProgramVersion&&n;return n&&this.projectProgramVersion++,r&&this.markAutoImportProviderAsDirty(),o&&this.getPackageJsonAutoImportProvider(),null==(t=Hn)||t.pop(),!n}enqueueInstallTypingsForProject(e){const t=this.getTypeAcquisition();if(!t||!t.enable||this.projectService.typingsInstaller===ige)return;const n=this.typingsCache;var r,i,o,a;!e&&n&&(o=t,a=n.typeAcquisition,o.enable===a.enable&&gme(o.include,a.include)&&gme(o.exclude,a.exclude))&&!function(e,t){return Ak(e)!==Ak(t)}(this.getCompilationSettings(),n.compilerOptions)&&((r=this.lastCachedUnresolvedImportsList)===(i=n.unresolvedImports)||te(r,i))||(this.typingsCache={compilerOptions:this.getCompilationSettings(),typeAcquisition:t,unresolvedImports:this.lastCachedUnresolvedImportsList},this.projectService.typingsInstaller.enqueueInstallTypingsRequest(this,t,this.lastCachedUnresolvedImportsList))}updateTypingFiles(e,t,n,r){this.typingsCache={compilerOptions:e,typeAcquisition:t,unresolvedImports:n};const i=t&&t.enable?_e(r):Ife;on(i,this.typingFiles,wt(!this.useCaseSensitiveFileNames()),rt,e=>this.detachScriptInfoFromProject(e))&&(this.typingFiles=i,this.resolutionCache.setFilesWithInvalidatedNonRelativeUnresolvedImports(this.cachedUnresolvedImportsPerFile),this.projectService.delayUpdateProjectGraphAndEnsureProjectStructureForOpenFiles(this))}closeWatchingTypingLocations(){this.typingWatchers&&ux(this.typingWatchers,nx),this.typingWatchers=void 0}onTypingInstallerWatchInvoke(){this.typingWatchers.isInvoked=!0,this.projectService.updateTypingsForProject({projectName:this.getProjectName(),kind:KK})}watchTypingLocations(e){if(!e)return void(this.typingWatchers.isInvoked=!1);if(!e.length)return void this.closeWatchingTypingLocations();const t=new Map(this.typingWatchers);this.typingWatchers||(this.typingWatchers=new Map),this.typingWatchers.isInvoked=!1;const n=(e,n)=>{const r=this.toPath(e);if(t.delete(r),!this.typingWatchers.has(r)){const t="FileWatcher"===n?F$.TypingInstallerLocationFile:F$.TypingInstallerLocationDirectory;this.typingWatchers.set(r,WW(r)?"FileWatcher"===n?this.projectService.watchFactory.watchFile(e,()=>this.typingWatchers.isInvoked?this.writeLog("TypingWatchers already invoked"):this.onTypingInstallerWatchInvoke(),2e3,this.projectService.getWatchOptions(this),t,this):this.projectService.watchFactory.watchDirectory(e,e=>this.typingWatchers.isInvoked?this.writeLog("TypingWatchers already invoked"):ko(e,".json")?Zo(e,jo(this.projectService.typingsInstaller.globalTypingsCacheLocation,"package.json"),!this.useCaseSensitiveFileNames())?this.writeLog("Ignoring package.json change at global typings location"):void this.onTypingInstallerWatchInvoke():this.writeLog("Ignoring files that are not *.json"),1,this.projectService.getWatchOptions(this),t,this):(this.writeLog(`Skipping watcher creation at ${e}:: ${hge(t,this)}`),w$))}};for(const t of e){const e=Fo(t);if("package.json"!==e&&"bower.json"!==e){if(ea(this.currentDirectory,t,this.currentDirectory,!this.useCaseSensitiveFileNames())){const e=t.indexOf(lo,this.currentDirectory.length+1);n(-1!==e?t.substr(0,e):t,"DirectoryWatcher");continue}ea(this.projectService.typingsInstaller.globalTypingsCacheLocation,t,this.currentDirectory,!this.useCaseSensitiveFileNames())?n(this.projectService.typingsInstaller.globalTypingsCacheLocation,"DirectoryWatcher"):n(t,"DirectoryWatcher")}else n(t,"FileWatcher")}t.forEach((e,t)=>{e.close(),this.typingWatchers.delete(t)})}getCurrentProgram(){return this.program}removeExistingTypings(e){if(!e.length)return e;const t=bM(this.getCompilerOptions(),this);return N(e,e=>!t.includes(e))}updateGraphWorker(){var e,t;const n=this.languageService.getCurrentProgram();un.assert(n===this.program),un.assert(!this.isClosed(),"Called update graph worker of closed project"),this.writeLog(`Starting updateGraphWorker: Project: ${this.getProjectName()}`);const r=Un(),{hasInvalidatedResolutions:i,hasInvalidatedLibResolutions:o}=this.resolutionCache.createHasInvalidatedResolutions(it,it);this.hasInvalidatedResolutions=i,this.hasInvalidatedLibResolutions=o,this.resolutionCache.startCachingPerDirectoryResolution(),this.dirty=!1,this.updateFromProjectInProgress=!0,this.program=this.languageService.getProgram(),this.updateFromProjectInProgress=!1,null==(e=Hn)||e.push(Hn.Phase.Session,"finishCachingPerDirectoryResolution"),this.resolutionCache.finishCachingPerDirectoryResolution(this.program,n),null==(t=Hn)||t.pop(),un.assert(void 0===n||void 0!==this.program);let a=!1;if(this.program&&(!n||this.program!==n&&2!==this.program.structureIsReused)){if(a=!0,this.rootFilesMap.forEach((e,t)=>{var n;const r=this.program.getSourceFileByPath(t),i=e.info;r&&(null==(n=e.info)?void 0:n.path)!==r.resolvedPath&&(e.info=this.projectService.getScriptInfo(r.fileName),un.assert(e.info.isAttached(this)),null==i||i.detachFromProject(this))}),PU(this.program,this.missingFilesMap||(this.missingFilesMap=new Map),(e,t)=>this.addMissingFileWatcher(e,t)),this.generatedFilesMap){const e=this.compilerOptions.outFile;mme(this.generatedFilesMap)?e&&this.isValidGeneratedFileWatcher(US(e)+".d.ts",this.generatedFilesMap)||this.clearGeneratedFileWatch():e?this.clearGeneratedFileWatch():this.generatedFilesMap.forEach((e,t)=>{const n=this.program.getSourceFileByPath(t);n&&n.resolvedPath===t&&this.isValidGeneratedFileWatcher(Vy(n.fileName,this.compilerOptions,this.program),e)||(RU(e),this.generatedFilesMap.delete(t))})}this.languageServiceEnabled&&0===this.projectService.serverMode&&this.resolutionCache.updateTypeRootsWatch()}this.projectService.verifyProgram(this),this.exportMapCache&&!this.exportMapCache.isEmpty()&&(this.exportMapCache.releaseSymbols(),this.hasAddedorRemovedFiles||n&&!this.program.structureIsReused?this.exportMapCache.clear():this.changedFilesForExportMapCache&&n&&this.program&&id(this.changedFilesForExportMapCache,e=>{const t=n.getSourceFileByPath(e),r=this.program.getSourceFileByPath(e);return t&&r?this.exportMapCache.onFileChanged(t,r,!!this.getTypeAcquisition().enable):(this.exportMapCache.clear(),!0)})),this.changedFilesForExportMapCache&&this.changedFilesForExportMapCache.clear(),(this.hasAddedOrRemovedSymlinks||this.program&&!this.program.structureIsReused&&this.getCompilerOptions().preserveSymlinks)&&(this.symlinks=void 0,this.moduleSpecifierCache.clear());const s=this.externalFiles||Ife;this.externalFiles=this.getExternalFiles(),on(this.externalFiles,s,wt(!this.useCaseSensitiveFileNames()),e=>{const t=this.projectService.getOrCreateScriptInfoNotOpenedByClient(e,this.currentDirectory,this.directoryStructureHost,!1);null==t||t.attachToProject(this)},e=>this.detachScriptInfoFromProject(e));const c=Un()-r;return this.sendPerformanceEvent("UpdateGraph",c),this.writeLog(`Finishing updateGraphWorker: Project: ${this.getProjectName()} projectStateVersion: ${this.projectStateVersion} projectProgramVersion: ${this.projectProgramVersion} structureChanged: ${a}${this.program?` structureIsReused:: ${Fr[this.program.structureIsReused]}`:""} Elapsed: ${c}ms`),this.projectService.logger.isTestLogger?this.program!==n?this.print(!0,this.hasAddedorRemovedFiles,!0):this.writeLog("Same program as before"):this.hasAddedorRemovedFiles?this.print(!0,!0,!1):this.program!==n&&this.writeLog("Different program with same set of files"),this.projectService.verifyDocumentRegistry(),a}sendPerformanceEvent(e,t){this.projectService.sendPerformanceEvent(e,t)}detachScriptInfoFromProject(e,t){const n=this.projectService.getScriptInfo(e);n&&(n.detachFromProject(this),t||this.resolutionCache.removeResolutionsOfFile(n.path))}addMissingFileWatcher(e,t){var n;if(Cme(this)){const t=this.projectService.configFileExistenceInfoCache.get(e);if(null==(n=null==t?void 0:t.config)?void 0:n.projects.has(this.canonicalConfigFilePath))return w$}const r=this.projectService.watchFactory.watchFile(Bo(t,this.currentDirectory),(t,n)=>{Cme(this)&&this.getCachedDirectoryStructureHost().addOrDeleteFile(t,e,n),0===n&&this.missingFilesMap.has(e)&&(this.missingFilesMap.delete(e),r.close(),this.projectService.delayUpdateProjectGraphAndEnsureProjectStructureForOpenFiles(this))},500,this.projectService.getWatchOptions(this),F$.MissingFile,this);return r}isWatchedMissingFile(e){return!!this.missingFilesMap&&this.missingFilesMap.has(e)}addGeneratedFileWatch(e,t){if(this.compilerOptions.outFile)this.generatedFilesMap||(this.generatedFilesMap=this.createGeneratedFileWatcher(e));else{const n=this.toPath(t);if(this.generatedFilesMap){if(mme(this.generatedFilesMap))return void un.fail(`${this.projectName} Expected to not have --out watcher for generated file with options: ${JSON.stringify(this.compilerOptions)}`);if(this.generatedFilesMap.has(n))return}else this.generatedFilesMap=new Map;this.generatedFilesMap.set(n,this.createGeneratedFileWatcher(e))}}createGeneratedFileWatcher(e){return{generatedFilePath:this.toPath(e),watcher:this.projectService.watchFactory.watchFile(e,()=>{this.clearSourceMapperCache(),this.projectService.delayUpdateProjectGraphAndEnsureProjectStructureForOpenFiles(this)},2e3,this.projectService.getWatchOptions(this),F$.MissingGeneratedFile,this)}}isValidGeneratedFileWatcher(e,t){return this.toPath(e)===t.generatedFilePath}clearGeneratedFileWatch(){this.generatedFilesMap&&(mme(this.generatedFilesMap)?RU(this.generatedFilesMap):ux(this.generatedFilesMap,RU),this.generatedFilesMap=void 0)}getScriptInfoForNormalizedPath(e){const t=this.projectService.getScriptInfoForPath(this.toPath(e));return t&&!t.isAttached(this)?Efe.ThrowProjectDoesNotContainDocument(e,this):t}getScriptInfo(e){return this.projectService.getScriptInfo(e)}filesToString(e){return this.filesToStringWorker(e,!0,!1)}filesToStringWorker(e,t,n){if(this.initialLoadPending)return"\tFiles (0) InitialLoadPending\n";if(!this.program)return"\tFiles (0) NoProgram\n";const r=this.program.getSourceFiles();let i=`\tFiles (${r.length})\n`;if(e){for(const e of r)i+=`\t${e.fileName}${n?` ${e.version} ${JSON.stringify(e.text)}`:""}\n`;t&&(i+="\n\n",y$(this.program,e=>i+=`\t${e}\n`))}return i}print(e,t,n){var r;this.writeLog(`Project '${this.projectName}' (${_me[this.projectKind]})`),this.writeLog(this.filesToStringWorker(e&&this.projectService.logger.hasLevel(3),t&&this.projectService.logger.hasLevel(3),n&&this.projectService.logger.hasLevel(3))),this.writeLog("-----------------------------------------------"),this.autoImportProviderHost&&this.autoImportProviderHost.print(!1,!1,!1),null==(r=this.noDtsResolutionProject)||r.print(!1,!1,!1)}setCompilerOptions(e){var t;if(e){e.allowNonTsExtensions=!0;const n=this.compilerOptions;this.compilerOptions=e,this.setInternalCompilerOptionsForEmittingJsFiles(),null==(t=this.noDtsResolutionProject)||t.setCompilerOptions(this.getCompilerOptionsForNoDtsResolutionProject()),Zu(n,e)&&(this.cachedUnresolvedImportsPerFile.clear(),this.lastCachedUnresolvedImportsList=void 0,this.resolutionCache.onChangesAffectModuleResolution(),this.moduleSpecifierCache.clear()),this.markAsDirty()}}setWatchOptions(e){this.watchOptions=e}getWatchOptions(){return this.watchOptions}setTypeAcquisition(e){e&&(this.typeAcquisition=this.removeLocalTypingsFromTypeAcquisition(e))}getTypeAcquisition(){return this.typeAcquisition||{}}getChangesSinceVersion(e,t){var n,r;const i=t?e=>Oe(e.entries(),([e,t])=>({fileName:e,isSourceOfProjectReferenceRedirect:t})):e=>Oe(e.keys());this.initialLoadPending||vge(this);const o={projectName:this.getProjectName(),version:this.projectProgramVersion,isInferred:Tme(this),options:this.getCompilationSettings(),languageServiceDisabled:!this.languageServiceEnabled,lastFileExceededProgramSize:this.lastFileExceededProgramSize},a=this.updatedFileNames;if(this.updatedFileNames=void 0,this.lastReportedFileNames&&e===this.lastReportedVersion){if(this.projectProgramVersion===this.lastReportedVersion&&!a)return{info:o,projectErrors:this.getGlobalProjectErrors()};const e=this.lastReportedFileNames,r=(null==(n=this.externalFiles)?void 0:n.map(e=>({fileName:jfe(e),isSourceOfProjectReferenceRedirect:!1})))||Ife,s=Me(this.getFileNamesWithRedirectInfo(!!t).concat(r),e=>e.fileName,e=>e.isSourceOfProjectReferenceRedirect),c=new Map,l=new Map,_=a?Oe(a.keys()):[],u=[];return rd(s,(n,r)=>{e.has(r)?t&&n!==e.get(r)&&u.push({fileName:r,isSourceOfProjectReferenceRedirect:n}):c.set(r,n)}),rd(e,(e,t)=>{s.has(t)||l.set(t,e)}),this.lastReportedFileNames=s,this.lastReportedVersion=this.projectProgramVersion,{info:o,changes:{added:i(c),removed:i(l),updated:t?_.map(e=>({fileName:e,isSourceOfProjectReferenceRedirect:this.isSourceOfProjectReferenceRedirect(e)})):_,updatedRedirects:t?u:void 0},projectErrors:this.getGlobalProjectErrors()}}{const e=this.getFileNamesWithRedirectInfo(!!t),n=(null==(r=this.externalFiles)?void 0:r.map(e=>({fileName:jfe(e),isSourceOfProjectReferenceRedirect:!1})))||Ife,i=e.concat(n);return this.lastReportedFileNames=Me(i,e=>e.fileName,e=>e.isSourceOfProjectReferenceRedirect),this.lastReportedVersion=this.projectProgramVersion,{info:o,files:t?i:i.map(e=>e.fileName),projectErrors:this.getGlobalProjectErrors()}}}removeRoot(e){this.rootFilesMap.delete(e.path)}isSourceOfProjectReferenceRedirect(e){return!!this.program&&this.program.isSourceOfProjectReferenceRedirect(e)}getGlobalPluginSearchPaths(){return[...this.projectService.pluginProbeLocations,jo(this.projectService.getExecutingFilePath(),"../../..")]}enableGlobalPlugins(e){if(!this.projectService.globalPlugins.length)return;const t=this.projectService.host;if(!t.require&&!t.importPlugin)return void this.projectService.logger.info("Plugins were requested but not running in environment that supports 'require'. Nothing will be loaded");const n=this.getGlobalPluginSearchPaths();for(const t of this.projectService.globalPlugins)t&&(e.plugins&&e.plugins.some(e=>e.name===t)||(this.projectService.logger.info(`Loading global plugin ${t}`),this.enablePlugin({name:t,global:!0},n)))}enablePlugin(e,t){this.projectService.requestEnablePlugin(this,e,t)}enableProxy(e,t){try{if("function"!=typeof e)return void this.projectService.logger.info(`Skipped loading plugin ${t.name} because it did not expose a proper factory function`);const n={config:t,project:this,languageService:this.languageService,languageServiceHost:this,serverHost:this.projectService.host,session:this.projectService.session},r=e({typescript:mfe}),i=r.create(n);for(const e of Object.keys(this.languageService))e in i||(this.projectService.logger.info(`Plugin activation warning: Missing proxied method ${e} in created LS. Patching.`),i[e]=this.languageService[e]);this.projectService.logger.info("Plugin validation succeeded"),this.languageService=i,this.plugins.push({name:t.name,module:r})}catch(e){this.projectService.logger.info(`Plugin activation failed: ${e}`)}}onPluginConfigurationChanged(e,t){this.plugins.filter(t=>t.name===e).forEach(e=>{e.module.onConfigurationChanged&&e.module.onConfigurationChanged(t)})}refreshDiagnostics(){this.projectService.sendProjectsUpdatedInBackgroundEvent()}getPackageJsonsVisibleToFile(e,t){return 0!==this.projectService.serverMode?Ife:this.projectService.getPackageJsonsVisibleToFile(e,this,t)}getNearestAncestorDirectoryWithPackageJson(e){return this.projectService.getNearestAncestorDirectoryWithPackageJson(e,this)}getPackageJsonsForAutoImport(e){return this.getPackageJsonsVisibleToFile(jo(this.currentDirectory,TV),e)}getPackageJsonCache(){return this.projectService.packageJsonCache}getCachedExportInfoMap(){return this.exportMapCache||(this.exportMapCache=o0(this))}clearCachedExportInfoMap(){var e;null==(e=this.exportMapCache)||e.clear()}getModuleSpecifierCache(){return this.moduleSpecifierCache}includePackageJsonAutoImports(){return 0!==this.projectService.includePackageJsonAutoImports()&&this.languageServiceEnabled&&!AZ(this.currentDirectory)&&this.isDefaultProjectForOpenFiles()?this.projectService.includePackageJsonAutoImports():0}getHostForAutoImportProvider(){var e,t;return this.program?{fileExists:this.program.fileExists,directoryExists:this.program.directoryExists,realpath:this.program.realpath||(null==(e=this.projectService.host.realpath)?void 0:e.bind(this.projectService.host)),getCurrentDirectory:this.getCurrentDirectory.bind(this),readFile:this.projectService.host.readFile.bind(this.projectService.host),getDirectories:this.projectService.host.getDirectories.bind(this.projectService.host),trace:null==(t=this.projectService.host.trace)?void 0:t.bind(this.projectService.host),useCaseSensitiveFileNames:this.program.useCaseSensitiveFileNames(),readDirectory:this.projectService.host.readDirectory.bind(this.projectService.host)}:this.projectService.host}getPackageJsonAutoImportProvider(){var e,t,n;if(!1===this.autoImportProviderHost)return;if(0!==this.projectService.serverMode)return void(this.autoImportProviderHost=!1);if(this.autoImportProviderHost)return vge(this.autoImportProviderHost),this.autoImportProviderHost.isEmpty()?(this.autoImportProviderHost.close(),void(this.autoImportProviderHost=void 0)):this.autoImportProviderHost.getCurrentProgram();const r=this.includePackageJsonAutoImports();if(r){null==(e=Hn)||e.push(Hn.Phase.Session,"getPackageJsonAutoImportProvider");const i=Un();if(this.autoImportProviderHost=xme.create(r,this,this.getHostForAutoImportProvider())??!1,this.autoImportProviderHost)return vge(this.autoImportProviderHost),this.sendPerformanceEvent("CreatePackageJsonAutoImportProvider",Un()-i),null==(t=Hn)||t.pop(),this.autoImportProviderHost.getCurrentProgram();null==(n=Hn)||n.pop()}}isDefaultProjectForOpenFiles(){return!!rd(this.projectService.openFiles,(e,t)=>this.projectService.tryGetDefaultProjectForFile(this.projectService.getScriptInfoForPath(t))===this)}watchNodeModulesForPackageJsonChanges(e){return this.projectService.watchPackageJsonsInNodeModules(e,this)}getIncompleteCompletionsCache(){return this.projectService.getIncompleteCompletionsCache()}getNoDtsResolutionProject(e){return un.assert(0===this.projectService.serverMode),this.noDtsResolutionProject??(this.noDtsResolutionProject=new vme(this)),this.noDtsResolutionProject.rootFile!==e&&(this.projectService.setFileNamesOfAutoImportProviderOrAuxillaryProject(this.noDtsResolutionProject,[e]),this.noDtsResolutionProject.rootFile=e),this.noDtsResolutionProject}runWithTemporaryFileUpdate(e,t,n){var r,i,o,a;const s=this.program,c=un.checkDefined(null==(r=this.program)?void 0:r.getSourceFile(e),"Expected file to be part of program"),l=un.checkDefined(c.getFullText());null==(i=this.getScriptInfo(e))||i.editContent(0,l.length,t),this.updateGraph();try{n(this.program,s,null==(o=this.program)?void 0:o.getSourceFile(e))}finally{null==(a=this.getScriptInfo(e))||a.editContent(0,t.length,l)}}getCompilerOptionsForNoDtsResolutionProject(){return{...this.getCompilerOptions(),noDtsResolution:!0,allowJs:!0,maxNodeModuleJsDepth:3,diagnostics:!1,skipLibCheck:!0,sourceMap:!1,types:l,lib:l,noLib:!0}}},yme=class extends hme{constructor(e,t,n,r,i,o){super(e.newInferredProjectName(),0,e,!1,void 0,t,!1,n,e.host,i),this._isJsInferredProject=!1,this.typeAcquisition=o,this.projectRootPath=r&&e.toCanonicalFileName(r),r||e.useSingleInferredProject||(this.canonicalCurrentDirectory=e.toCanonicalFileName(this.currentDirectory)),this.enableGlobalPlugins(this.getCompilerOptions())}toggleJsInferredProject(e){e!==this._isJsInferredProject&&(this._isJsInferredProject=e,this.setCompilerOptions())}setCompilerOptions(e){if(!e&&!this.getCompilationSettings())return;const t=SQ(e||this.getCompilationSettings());this._isJsInferredProject&&"number"!=typeof t.maxNodeModuleJsDepth?t.maxNodeModuleJsDepth=2:this._isJsInferredProject||(t.maxNodeModuleJsDepth=void 0),t.allowJs=!0,super.setCompilerOptions(t)}addRoot(e){un.assert(e.isScriptOpen()),this.projectService.startWatchingConfigFilesForInferredProjectRoot(e),!this._isJsInferredProject&&e.isJavaScript()?this.toggleJsInferredProject(!0):this.isOrphan()&&this._isJsInferredProject&&!e.isJavaScript()&&this.toggleJsInferredProject(!1),super.addRoot(e)}removeRoot(e){this.projectService.stopWatchingConfigFilesForScriptInfo(e),super.removeRoot(e),!this.isOrphan()&&this._isJsInferredProject&&e.isJavaScript()&&v(this.getRootScriptInfos(),e=>!e.isJavaScript())&&this.toggleJsInferredProject(!1)}isOrphan(){return!this.hasRoots()}isProjectWithSingleRoot(){return!this.projectRootPath&&!this.projectService.useSingleInferredProject||1===this.getRootScriptInfos().length}close(){d(this.getRootScriptInfos(),e=>this.projectService.stopWatchingConfigFilesForScriptInfo(e)),super.close()}getTypeAcquisition(){return this.typeAcquisition||{enable:dme(this),include:l,exclude:l}}},vme=class extends hme{constructor(e){super(e.projectService.newAuxiliaryProjectName(),4,e.projectService,!1,void 0,e.getCompilerOptionsForNoDtsResolutionProject(),!1,void 0,e.projectService.host,e.currentDirectory)}isOrphan(){return!0}scheduleInvalidateResolutionsOfFailedLookupLocations(){}},bme=class e extends hme{constructor(e,t,n){super(e.projectService.newAutoImportProviderProjectName(),3,e.projectService,!1,void 0,n,!1,e.getWatchOptions(),e.projectService.host,e.currentDirectory),this.hostProject=e,this.rootFileNames=t,this.useSourceOfProjectReferenceRedirect=We(this.hostProject,this.hostProject.useSourceOfProjectReferenceRedirect),this.getParsedCommandLine=We(this.hostProject,this.hostProject.getParsedCommandLine)}static getRootFileNames(e,t,n,r){var i,o;if(!e)return l;const a=t.getCurrentProgram();if(!a)return l;const s=Un();let c,_;const u=jo(t.currentDirectory,TV),p=t.getPackageJsonsForAutoImport(jo(t.currentDirectory,u));for(const e of p)null==(i=e.dependencies)||i.forEach((e,t)=>y(t)),null==(o=e.peerDependencies)||o.forEach((e,t)=>y(t));let f=0;if(c){const i=t.getSymlinkCache();for(const o of Oe(c.keys())){if(2===e&&f>=this.maxDependencies)return t.log(`AutoImportProviderProject: attempted to add more than ${this.maxDependencies} dependencies. Aborting.`),l;const s=vM(o,t.currentDirectory,r,n,a.getModuleResolutionCache());if(s){const e=v(s,a,i);if(e){f+=h(e);continue}}if(!d([t.currentDirectory,t.getGlobalTypingsCacheLocation()],e=>{if(e){const t=vM(`@types/${o}`,e,r,n,a.getModuleResolutionCache());if(t){const e=v(t,a,i);return f+=h(e),!0}}})&&s&&r.allowJs&&r.maxNodeModuleJsDepth){const e=v(s,a,i,!0);f+=h(e)}}}const m=a.getResolvedProjectReferences();let g=0;return(null==m?void 0:m.length)&&t.projectService.getHostPreferences().includeCompletionsForModuleExports&&m.forEach(e=>{if(null==e?void 0:e.commandLine.options.outFile)g+=h(b([$S(e.commandLine.options.outFile,".d.ts")]));else if(e){const n=dt(()=>lU(e.commandLine,!t.useCaseSensitiveFileNames()));g+=h(b(B(e.commandLine.fileNames,r=>uO(r)||ko(r,".json")||a.getSourceFile(r)?void 0:tU(r,e.commandLine,!t.useCaseSensitiveFileNames(),n))))}}),(null==_?void 0:_.size)&&t.log(`AutoImportProviderProject: found ${_.size} root files in ${f} dependencies ${g} referenced projects in ${Un()-s} ms`),_?Oe(_.values()):l;function h(e){return(null==e?void 0:e.length)?(_??(_=new Set),e.forEach(e=>_.add(e)),1):0}function y(e){Gt(e,"@types/")||(c||(c=new Set)).add(e)}function v(e,i,o,a){var s;const c=aR(e,r,n,i.getModuleResolutionCache(),a);if(c){const r=null==(s=n.realpath)?void 0:s.call(n,e.packageDirectory),i=r?t.toPath(r):void 0,a=i&&i!==t.toPath(e.packageDirectory);return a&&o.setSymlinkedDirectory(e.packageDirectory,{real:Wo(r),realPath:Wo(i)}),b(c,a?t=>t.replace(e.packageDirectory,r):void 0)}}function b(e,t){return B(e,e=>{const n=t?t(e):e;if(!(a.getSourceFile(n)||t&&a.getSourceFile(e)))return n})}}static create(t,n,r){if(0===t)return;const i={...n.getCompilerOptions(),...this.compilerOptionsOverrides},o=this.getRootFileNames(t,n,r,i);return o.length?new e(n,o,i):void 0}isEmpty(){return!$(this.rootFileNames)}isOrphan(){return!0}updateGraph(){let t=this.rootFileNames;t||(t=e.getRootFileNames(this.hostProject.includePackageJsonAutoImports(),this.hostProject,this.hostProject.getHostForAutoImportProvider(),this.getCompilationSettings())),this.projectService.setFileNamesOfAutoImportProviderOrAuxillaryProject(this,t),this.rootFileNames=t;const n=this.getCurrentProgram(),r=super.updateGraph();return n&&n!==this.getCurrentProgram()&&this.hostProject.clearCachedExportInfoMap(),r}scheduleInvalidateResolutionsOfFailedLookupLocations(){}hasRoots(){var e;return!!(null==(e=this.rootFileNames)?void 0:e.length)}markAsDirty(){this.rootFileNames=void 0,super.markAsDirty()}getScriptFileNames(){return this.rootFileNames||l}getLanguageService(){throw new Error("AutoImportProviderProject language service should never be used. To get the program, use `project.getCurrentProgram()`.")}onAutoImportProviderSettingsChanged(){throw new Error("AutoImportProviderProject is an auto import provider; use `markAsDirty()` instead.")}onPackageJsonChange(){throw new Error("package.json changes should be notified on an AutoImportProvider's host project")}getHostForAutoImportProvider(){throw new Error("AutoImportProviderProject cannot provide its own host; use `hostProject.getModuleResolutionHostForAutomImportProvider()` instead.")}getProjectReferences(){return this.hostProject.getProjectReferences()}includePackageJsonAutoImports(){return 0}getSymlinkCache(){return this.hostProject.getSymlinkCache()}getModuleResolutionCache(){var e;return null==(e=this.hostProject.getCurrentProgram())?void 0:e.getModuleResolutionCache()}};bme.maxDependencies=10,bme.compilerOptionsOverrides={diagnostics:!1,skipLibCheck:!0,sourceMap:!1,types:l,lib:l,noLib:!0};var xme=bme,kme=class extends hme{constructor(e,t,n,r,i){super(e,1,n,!1,void 0,{},!1,void 0,r,Do(e)),this.canonicalConfigFilePath=t,this.openFileWatchTriggered=new Map,this.initialLoadPending=!0,this.sendLoadingProjectFinish=!1,this.pendingUpdateLevel=2,this.pendingUpdateReason=i}setCompilerHost(e){this.compilerHost=e}getCompilerHost(){return this.compilerHost}useSourceOfProjectReferenceRedirect(){return this.languageServiceEnabled}getParsedCommandLine(e){const t=jfe(e),n=this.projectService.toCanonicalFileName(t);let r=this.projectService.configFileExistenceInfoCache.get(n);return r||this.projectService.configFileExistenceInfoCache.set(n,r={exists:this.projectService.host.fileExists(t)}),this.projectService.ensureParsedConfigUptoDate(t,n,r,this),this.languageServiceEnabled&&0===this.projectService.serverMode&&this.projectService.watchWildcards(t,r,this),r.exists?r.config.parsedCommandLine:void 0}onReleaseParsedCommandLine(e){this.releaseParsedConfig(this.projectService.toCanonicalFileName(jfe(e)))}releaseParsedConfig(e){this.projectService.stopWatchingWildCards(e,this),this.projectService.releaseParsedConfig(e,this)}updateGraph(){if(this.deferredClose)return!1;const e=this.dirty;this.initialLoadPending=!1;const t=this.pendingUpdateLevel;let n;switch(this.pendingUpdateLevel=0,t){case 1:this.openFileWatchTriggered.clear(),n=this.projectService.reloadFileNamesOfConfiguredProject(this);break;case 2:this.openFileWatchTriggered.clear();const e=un.checkDefined(this.pendingUpdateReason);this.projectService.reloadConfiguredProject(this,e),n=!0;break;default:n=super.updateGraph()}return this.compilerHost=void 0,this.projectService.sendProjectLoadingFinishEvent(this),this.projectService.sendProjectTelemetry(this),2!==t&&(!n||e&&this.triggerFileForConfigFileDiag&&2!==this.getCurrentProgram().structureIsReused)?this.triggerFileForConfigFileDiag||this.projectService.sendConfigFileDiagEvent(this,void 0,!1):this.triggerFileForConfigFileDiag=void 0,n}getCachedDirectoryStructureHost(){return this.directoryStructureHost}getConfigFilePath(){return this.getProjectName()}getProjectReferences(){return this.projectReferences}updateReferences(e){this.projectReferences=e,this.potentialProjectReferences=void 0}setPotentialProjectReference(e){un.assert(this.initialLoadPending),(this.potentialProjectReferences||(this.potentialProjectReferences=new Set)).add(e)}getRedirectFromSourceFile(e){const t=this.getCurrentProgram();return t&&t.getRedirectFromSourceFile(e)}forEachResolvedProjectReference(e){var t;return null==(t=this.getCurrentProgram())?void 0:t.forEachResolvedProjectReference(e)}enablePluginsWithOptions(e){var t;if(this.plugins.length=0,!(null==(t=e.plugins)?void 0:t.length)&&!this.projectService.globalPlugins.length)return;const n=this.projectService.host;if(!n.require&&!n.importPlugin)return void this.projectService.logger.info("Plugins were requested but not running in environment that supports 'require'. Nothing will be loaded");const r=this.getGlobalPluginSearchPaths();if(this.projectService.allowLocalPluginLoads){const e=Do(this.canonicalConfigFilePath);this.projectService.logger.info(`Local plugin loading enabled; adding ${e} to search paths`),r.unshift(e)}if(e.plugins)for(const t of e.plugins)this.enablePlugin(t,r);return this.enableGlobalPlugins(e)}getGlobalProjectErrors(){return N(this.projectErrors,e=>!e.file)||Ife}getAllProjectErrors(){return this.projectErrors||Ife}setProjectErrors(e){this.projectErrors=e}close(){this.projectService.configFileExistenceInfoCache.forEach((e,t)=>this.releaseParsedConfig(t)),this.projectErrors=void 0,this.openFileWatchTriggered.clear(),this.compilerHost=void 0,super.close()}markAsDirty(){this.deferredClose||super.markAsDirty()}isOrphan(){return!!this.deferredClose}getEffectiveTypeRoots(){return uM(this.getCompilationSettings(),this)||[]}updateErrorOnNoInputFiles(e){this.parsedCommandLine=e,hj(e.fileNames,this.getConfigFilePath(),this.getCompilerOptions().configFile.configFileSpecs,this.projectErrors,gj(e.raw))}},Sme=class extends hme{constructor(e,t,n,r,i,o,a){super(e,2,t,!0,r,n,i,a,t.host,Do(o||Oo(e))),this.externalProjectName=e,this.compileOnSaveEnabled=i,this.excludedFiles=[],this.enableGlobalPlugins(this.getCompilerOptions())}updateGraph(){const e=super.updateGraph();return this.projectService.sendProjectTelemetry(this),e}getExcludedFiles(){return this.excludedFiles}};function Tme(e){return 0===e.projectKind}function Cme(e){return 1===e.projectKind}function wme(e){return 2===e.projectKind}function Nme(e){return 3===e.projectKind||4===e.projectKind}function Dme(e){return Cme(e)&&!!e.deferredClose}var Fme=20971520,Eme=4194304,Pme="projectsUpdatedInBackground",Ame="projectLoadingStart",Ime="projectLoadingFinish",Ome="largeFileReferenced",Lme="configFileDiag",jme="projectLanguageServiceState",Mme="projectInfo",Rme="openFileInfo",Bme="createFileWatcher",Jme="createDirectoryWatcher",zme="closeFileWatcher",qme="*ensureProjectForOpenFiles*";function Ume(e){const t=new Map;for(const n of e)if("object"==typeof n.type){const e=n.type;e.forEach(e=>{un.assert("number"==typeof e)}),t.set(n.name,e)}return t}var Vme=Ume(OO),Wme=Ume(FO),$me=new Map(Object.entries({none:0,block:1,smart:2})),Hme={jquery:{match:/jquery(-[\d.]+)?(\.intellisense)?(\.min)?\.js$/i,types:["jquery"]},WinJS:{match:/^(.*\/winjs-[.\d]+)\/js\/base\.js$/i,exclude:[["^",1,"/.*"]],types:["winjs"]},Kendo:{match:/^(.*\/kendo(-ui)?)\/kendo\.all(\.min)?\.js$/i,exclude:[["^",1,"/.*"]],types:["kendo-ui"]},"Office Nuget":{match:/^(.*\/office\/1)\/excel-\d+\.debug\.js$/i,exclude:[["^",1,"/.*"]],types:["office"]},References:{match:/^(.*\/_references\.js)$/i,exclude:[["^",1,"$"]]}};function Kme(e){return Ze(e.indentStyle)&&(e.indentStyle=$me.get(e.indentStyle.toLowerCase()),un.assert(void 0!==e.indentStyle)),e}function Gme(e){return Vme.forEach((t,n)=>{const r=e[n];Ze(r)&&(e[n]=t.get(r.toLowerCase()))}),e}function Xme(e,t){let n,r;return FO.forEach(i=>{const o=e[i.name];if(void 0===o)return;const a=Wme.get(i.name);(n||(n={}))[i.name]=a?Ze(o)?a.get(o.toLowerCase()):o:Fj(i,o,t||"",r||(r=[]))}),n&&{watchOptions:n,errors:r}}function Qme(e){let t;return KO.forEach(n=>{const r=e[n.name];void 0!==r&&((t||(t={}))[n.name]=r)}),t}function Yme(e){return Ze(e)?Zme(e):e}function Zme(e){switch(e){case"JS":return 1;case"JSX":return 2;case"TS":return 3;case"TSX":return 4;default:return 0}}function ege(e){const{lazyConfiguredProjectsFromExternalProject:t,...n}=e;return n}var tge={getFileName:e=>e,getScriptKind:(e,t)=>{let n;if(t){const r=Po(e);r&&$(t,e=>e.extension===r&&(n=e.scriptKind,!0))}return n},hasMixedContent:(e,t)=>$(t,t=>t.isMixedContent&&ko(e,t.extension))},nge={getFileName:e=>e.fileName,getScriptKind:e=>Yme(e.scriptKind),hasMixedContent:e=>!!e.hasMixedContent};function rge(e,t){for(const n of t)if(n.getProjectName()===e)return n}var ige={isKnownTypesPackageName:it,installPackage:ut,enqueueInstallTypingsRequest:rt,attach:rt,onProjectClosed:rt,globalTypingsCacheLocation:void 0},oge={close:rt};function age(e,t){if(!t)return;const n=t.get(e.path);return void 0!==n?cge(e)?n&&!Ze(n)?n.get(e.fileName):void 0:Ze(n)||!n?n:n.get(!1):void 0}function sge(e){return!!e.containingProjects}function cge(e){return!!e.configFileInfo}var lge=(e=>(e[e.FindOptimized=0]="FindOptimized",e[e.Find=1]="Find",e[e.CreateReplayOptimized=2]="CreateReplayOptimized",e[e.CreateReplay=3]="CreateReplay",e[e.CreateOptimized=4]="CreateOptimized",e[e.Create=5]="Create",e[e.ReloadOptimized=6]="ReloadOptimized",e[e.Reload=7]="Reload",e))(lge||{});function _ge(e){return e-1}function uge(e,t,n,r,i,o,a,s,c){for(var l;;){if(t.parsedCommandLine&&(s&&!t.parsedCommandLine.options.composite||t.parsedCommandLine.options.disableSolutionSearching))return;const _=t.projectService.getConfigFileNameForFile({fileName:t.getConfigFilePath(),path:e.path,configFileInfo:!0,isForDefaultProject:!s},r<=3);if(!_)return;const u=t.projectService.findCreateOrReloadConfiguredProject(_,r,i,o,s?void 0:e.fileName,a,s,c);if(!u)return;!u.project.parsedCommandLine&&(null==(l=t.parsedCommandLine)?void 0:l.options.composite)&&u.project.setPotentialProjectReference(t.canonicalConfigFilePath);const d=n(u);if(d)return d;t=u.project}}function dge(e,t,n,r,i,o,a,s){const c=t.options.disableReferencedProjectLoad?0:r;let l;return d(t.projectReferences,t=>{var _;const u=jfe(VV(t)),d=e.projectService.toCanonicalFileName(u),p=null==s?void 0:s.get(d);if(void 0!==p&&p>=c)return;const f=e.projectService.configFileExistenceInfoCache.get(d);let m=0===c?(null==f?void 0:f.exists)||(null==(_=e.resolvedChildConfigs)?void 0:_.has(d))?f.config.parsedCommandLine:void 0:e.getParsedCommandLine(u);if(m&&c!==r&&c>2&&(m=e.getParsedCommandLine(u)),!m)return;const g=e.projectService.findConfiguredProjectByProjectName(u,o);if(2!==c||f||g){switch(c){case 6:g&&g.projectService.reloadConfiguredProjectOptimized(g,i,a);case 4:(e.resolvedChildConfigs??(e.resolvedChildConfigs=new Set)).add(d);case 2:case 0:if(g||0!==c){const t=n(f??e.projectService.configFileExistenceInfoCache.get(d),g,u,i,e,d);if(t)return t}break;default:un.assertNever(c)}(s??(s=new Map)).set(d,c),(l??(l=[])).push(m)}})||d(l,t=>t.projectReferences&&dge(e,t,n,c,i,o,a,s))}function pge(e,t,n,r,i){let o,a=!1;switch(t){case 2:case 3:kge(e)&&(o=e.projectService.configFileExistenceInfoCache.get(e.canonicalConfigFilePath));break;case 4:if(o=xge(e),o)break;case 5:a=function(e,t){if(t){if(bge(e,t,!1))return!0}else vge(e);return!1}(e,n);break;case 6:if(e.projectService.reloadConfiguredProjectOptimized(e,r,i),o=xge(e),o)break;case 7:a=e.projectService.reloadConfiguredProjectClearingSemanticCache(e,r,i);break;case 0:case 1:break;default:un.assertNever(t)}return{project:e,sentConfigFileDiag:a,configFileExistenceInfo:o,reason:r}}function fge(e,t){return e.initialLoadPending?(e.potentialProjectReferences&&id(e.potentialProjectReferences,t))??(e.resolvedChildConfigs&&id(e.resolvedChildConfigs,t)):void 0}function mge(e,t,n){const r=n&&e.projectService.configuredProjects.get(n);return r&&t(r)}function gge(e,t){return function(e,t,n,r){return e.getCurrentProgram()?e.forEachResolvedProjectReference(t):e.initialLoadPending?fge(e,r):d(e.getProjectReferences(),n)}(e,n=>mge(e,t,n.sourceFile.path),n=>mge(e,t,e.toPath(VV(n))),n=>mge(e,t,n))}function hge(e,t){return`${Ze(t)?`Config: ${t} `:t?`Project: ${t.getProjectName()} `:""}WatchType: ${e}`}function yge(e){return!e.isScriptOpen()&&void 0!==e.mTime}function vge(e){return e.invalidateResolutionsOfFailedLookupLocations(),e.dirty&&!e.updateGraph()}function bge(e,t,n){if(!n&&(e.invalidateResolutionsOfFailedLookupLocations(),!e.dirty))return!1;e.triggerFileForConfigFileDiag=t;const r=e.pendingUpdateLevel;if(e.updateGraph(),!e.triggerFileForConfigFileDiag&&!n)return 2===r;const i=e.projectService.sendConfigFileDiagEvent(e,t,n);return e.triggerFileForConfigFileDiag=void 0,i}function xge(e){const t=jfe(e.getConfigFilePath()),n=e.projectService.ensureParsedConfigUptoDate(t,e.canonicalConfigFilePath,e.projectService.configFileExistenceInfoCache.get(e.canonicalConfigFilePath),e),r=n.config.parsedCommandLine;if(e.parsedCommandLine=r,e.resolvedChildConfigs=void 0,e.updateReferences(r.projectReferences),kge(e))return n}function kge(e){return!(!e.parsedCommandLine||!e.parsedCommandLine.options.composite&&!mj(e.parsedCommandLine))}function Sge(e){return`User requested reload projects: ${e}`}function Tge(e){Cme(e)&&(e.projectOptions=!0)}function Cge(e){let t=1;return()=>e(t++)}function wge(){return{idToCallbacks:new Map,pathToId:new Map}}function Nge(e,t){return!!t&&!!e.eventHandler&&!!e.session}var Dge=class e{constructor(e){var t;this.filenameToScriptInfo=new Map,this.nodeModulesWatchers=new Map,this.filenameToScriptInfoVersion=new Map,this.allJsFilesForOpenFileTelemetry=new Set,this.externalProjectToConfiguredProjectMap=new Map,this.externalProjects=[],this.inferredProjects=[],this.configuredProjects=new Map,this.newInferredProjectName=Cge(zfe),this.newAutoImportProviderProjectName=Cge(qfe),this.newAuxiliaryProjectName=Cge(Ufe),this.openFiles=new Map,this.configFileForOpenFiles=new Map,this.rootOfInferredProjects=new Set,this.openFilesWithNonRootedDiskPath=new Map,this.compilerOptionsForInferredProjectsPerProjectRoot=new Map,this.watchOptionsForInferredProjectsPerProjectRoot=new Map,this.typeAcquisitionForInferredProjectsPerProjectRoot=new Map,this.projectToSizeMap=new Map,this.configFileExistenceInfoCache=new Map,this.safelist=Hme,this.legacySafelist=new Map,this.pendingProjectUpdates=new Map,this.pendingEnsureProjectForOpenFiles=!1,this.seenProjects=new Map,this.sharedExtendedConfigFileWatchers=new Map,this.extendedConfigCache=new Map,this.baseline=rt,this.verifyDocumentRegistry=rt,this.verifyProgram=rt,this.onProjectCreation=rt,this.host=e.host,this.logger=e.logger,this.cancellationToken=e.cancellationToken,this.useSingleInferredProject=e.useSingleInferredProject,this.useInferredProjectPerProjectRoot=e.useInferredProjectPerProjectRoot,this.typingsInstaller=e.typingsInstaller||ige,this.throttleWaitMilliseconds=e.throttleWaitMilliseconds,this.eventHandler=e.eventHandler,this.suppressDiagnosticEvents=e.suppressDiagnosticEvents,this.globalPlugins=e.globalPlugins||Ife,this.pluginProbeLocations=e.pluginProbeLocations||Ife,this.allowLocalPluginLoads=!!e.allowLocalPluginLoads,this.typesMapLocation=void 0===e.typesMapLocation?jo(Do(this.getExecutingFilePath()),"typesMap.json"):e.typesMapLocation,this.session=e.session,this.jsDocParsingMode=e.jsDocParsingMode,void 0!==e.serverMode?this.serverMode=e.serverMode:this.serverMode=0,this.host.realpath&&(this.realpathToScriptInfos=$e()),this.currentDirectory=jfe(this.host.getCurrentDirectory()),this.toCanonicalFileName=Wt(this.host.useCaseSensitiveFileNames),this.globalCacheLocationDirectoryPath=this.typingsInstaller.globalTypingsCacheLocation?Wo(this.toPath(this.typingsInstaller.globalTypingsCacheLocation)):void 0,this.throttledOperations=new Wfe(this.host,this.logger),this.logger.info(`currentDirectory:: ${this.host.getCurrentDirectory()} useCaseSensitiveFileNames:: ${this.host.useCaseSensitiveFileNames}`),this.logger.info(`libs Location:: ${Do(this.host.getExecutingFilePath())}`),this.logger.info(`globalTypingsCacheLocation:: ${this.typingsInstaller.globalTypingsCacheLocation}`),this.typesMapLocation?this.loadTypesMap():this.logger.info("No types map provided; using the default"),this.typingsInstaller.attach(this),this.hostConfiguration={formatCodeOptions:EG(this.host.newLine),preferences:kG,hostInfo:"Unknown host",extraFileExtensions:[]},this.documentRegistry=O0(this.host.useCaseSensitiveFileNames,this.currentDirectory,this.jsDocParsingMode,this);const n=this.logger.hasLevel(3)?2:this.logger.loggingEnabled()?1:0,r=0!==n?e=>this.logger.info(e):rt;this.packageJsonCache=Ige(this),this.watchFactory=0!==this.serverMode?{watchFile:N$,watchDirectory:N$}:jU(function(e,t){if(!Nge(e,t))return;const n=wge(),r=wge(),i=wge();let o=1;return e.session.addProtocolHandler("watchChange",e=>{var t;return Qe(t=e.arguments)?t.forEach(s):s(t),{responseRequired:!1}}),{watchFile:function(e,t){return a(n,e,t,t=>({eventName:Bme,data:{id:t,path:e}}))},watchDirectory:function(e,t,n){return a(n?i:r,e,t,t=>({eventName:Jme,data:{id:t,path:e,recursive:!!n,ignoreUpdate:!e.endsWith("/node_modules")||void 0}}))},getCurrentDirectory:()=>e.host.getCurrentDirectory(),useCaseSensitiveFileNames:e.host.useCaseSensitiveFileNames};function a({pathToId:t,idToCallbacks:n},r,i,a){const s=e.toPath(r);let c=t.get(s);c||t.set(s,c=o++);let l=n.get(c);return l||(n.set(c,l=new Set),e.eventHandler(a(c))),l.add(i),{close(){const r=n.get(c);(null==r?void 0:r.delete(i))&&(r.size||(n.delete(c),t.delete(s),e.eventHandler({eventName:zme,data:{id:c}})))}}}function s({id:e,created:t,deleted:n,updated:r}){c(e,t,0),c(e,n,2),c(e,r,1)}function c(e,t,o){(null==t?void 0:t.length)&&(l(n,e,t,(e,t)=>e(t,o)),l(r,e,t,(e,t)=>e(t)),l(i,e,t,(e,t)=>e(t)))}function l(e,t,n,r){var i;null==(i=e.idToCallbacks.get(t))||i.forEach(e=>{n.forEach(t=>r(e,Oo(t)))})}}(this,e.canUseWatchEvents)||this.host,n,r,hge),this.canUseWatchEvents=Nge(this,e.canUseWatchEvents),null==(t=e.incrementalVerifier)||t.call(e,this)}toPath(e){return Uo(e,this.currentDirectory,this.toCanonicalFileName)}getExecutingFilePath(){return this.getNormalizedAbsolutePath(this.host.getExecutingFilePath())}getNormalizedAbsolutePath(e){return Bo(e,this.host.getCurrentDirectory())}setDocument(e,t,n){un.checkDefined(this.getScriptInfoForPath(t)).cacheSourceFile={key:e,sourceFile:n}}getDocument(e,t){const n=this.getScriptInfoForPath(t);return n&&n.cacheSourceFile&&n.cacheSourceFile.key===e?n.cacheSourceFile.sourceFile:void 0}ensureInferredProjectsUpToDate_TestOnly(){this.ensureProjectStructuresUptoDate()}getCompilerOptionsForInferredProjects(){return this.compilerOptionsForInferredProjects}onUpdateLanguageServiceStateForProject(e,t){if(!this.eventHandler)return;const n={eventName:jme,data:{project:e,languageServiceEnabled:t}};this.eventHandler(n)}loadTypesMap(){try{const e=this.host.readFile(this.typesMapLocation);if(void 0===e)return void this.logger.info(`Provided types map file "${this.typesMapLocation}" doesn't exist`);const t=JSON.parse(e);for(const e of Object.keys(t.typesMap))t.typesMap[e].match=new RegExp(t.typesMap[e].match,"i");this.safelist=t.typesMap;for(const e in t.simpleMap)De(t.simpleMap,e)&&this.legacySafelist.set(e,t.simpleMap[e].toLowerCase())}catch(e){this.logger.info(`Error loading types map: ${e}`),this.safelist=Hme,this.legacySafelist.clear()}}updateTypingsForProject(e){const t=this.findProject(e.projectName);if(t)switch(e.kind){case HK:return void t.updateTypingFiles(e.compilerOptions,e.typeAcquisition,e.unresolvedImports,e.typings);case KK:return void t.enqueueInstallTypingsForProject(!0)}}watchTypingLocations(e){var t;null==(t=this.findProject(e.projectName))||t.watchTypingLocations(e.files)}delayEnsureProjectForOpenFiles(){this.openFiles.size&&(this.pendingEnsureProjectForOpenFiles=!0,this.throttledOperations.schedule(qme,2500,()=>{0!==this.pendingProjectUpdates.size?this.delayEnsureProjectForOpenFiles():this.pendingEnsureProjectForOpenFiles&&(this.ensureProjectForOpenFiles(),this.sendProjectsUpdatedInBackgroundEvent())}))}delayUpdateProjectGraph(e){if(Dme(e))return;if(e.markAsDirty(),Nme(e))return;const t=e.getProjectName();this.pendingProjectUpdates.set(t,e),this.throttledOperations.schedule(t,250,()=>{this.pendingProjectUpdates.delete(t)&&vge(e)})}hasPendingProjectUpdate(e){return this.pendingProjectUpdates.has(e.getProjectName())}sendProjectsUpdatedInBackgroundEvent(){if(!this.eventHandler)return;const e={eventName:Pme,data:{openFiles:Oe(this.openFiles.keys(),e=>this.getScriptInfoForPath(e).fileName)}};this.eventHandler(e)}sendLargeFileReferencedEvent(e,t){if(!this.eventHandler)return;const n={eventName:Ome,data:{file:e,fileSize:t,maxFileSize:Eme}};this.eventHandler(n)}sendProjectLoadingStartEvent(e,t){if(!this.eventHandler)return;e.sendLoadingProjectFinish=!0;const n={eventName:Ame,data:{project:e,reason:t}};this.eventHandler(n)}sendProjectLoadingFinishEvent(e){if(!this.eventHandler||!e.sendLoadingProjectFinish)return;e.sendLoadingProjectFinish=!1;const t={eventName:Ime,data:{project:e}};this.eventHandler(t)}sendPerformanceEvent(e,t){this.performanceEventHandler&&this.performanceEventHandler({kind:e,durationMs:t})}delayUpdateProjectGraphAndEnsureProjectStructureForOpenFiles(e){this.delayUpdateProjectGraph(e),this.delayEnsureProjectForOpenFiles()}delayUpdateProjectGraphs(e,t){if(e.length){for(const n of e)t&&n.clearSourceMapperCache(),this.delayUpdateProjectGraph(n);this.delayEnsureProjectForOpenFiles()}}setCompilerOptionsForInferredProjects(e,t){un.assert(void 0===t||this.useInferredProjectPerProjectRoot,"Setting compiler options per project root path is only supported when useInferredProjectPerProjectRoot is enabled");const n=Gme(e),r=Xme(e,t),i=Qme(e);n.allowNonTsExtensions=!0;const o=t&&this.toCanonicalFileName(t);o?(this.compilerOptionsForInferredProjectsPerProjectRoot.set(o,n),this.watchOptionsForInferredProjectsPerProjectRoot.set(o,r||!1),this.typeAcquisitionForInferredProjectsPerProjectRoot.set(o,i)):(this.compilerOptionsForInferredProjects=n,this.watchOptionsForInferredProjects=r,this.typeAcquisitionForInferredProjects=i);for(const e of this.inferredProjects)(o?e.projectRootPath!==o:e.projectRootPath&&this.compilerOptionsForInferredProjectsPerProjectRoot.has(e.projectRootPath))||(e.setCompilerOptions(n),e.setTypeAcquisition(i),e.setWatchOptions(null==r?void 0:r.watchOptions),e.setProjectErrors(null==r?void 0:r.errors),e.compileOnSaveEnabled=n.compileOnSave,e.markAsDirty(),this.delayUpdateProjectGraph(e));this.delayEnsureProjectForOpenFiles()}findProject(e){if(void 0!==e)return Jfe(e)?rge(e,this.inferredProjects):this.findExternalProjectByProjectName(e)||this.findConfiguredProjectByProjectName(jfe(e))}forEachProject(e){this.externalProjects.forEach(e),this.configuredProjects.forEach(e),this.inferredProjects.forEach(e)}forEachEnabledProject(e){this.forEachProject(t=>{!t.isOrphan()&&t.languageServiceEnabled&&e(t)})}getDefaultProjectForFile(e,t){return t?this.ensureDefaultProjectForFile(e):this.tryGetDefaultProjectForFile(e)}tryGetDefaultProjectForFile(e){const t=Ze(e)?this.getScriptInfoForNormalizedPath(e):e;return t&&!t.isOrphan()?t.getDefaultProject():void 0}tryGetDefaultProjectForEnsuringConfiguredProjectForFile(e){var t;const n=Ze(e)?this.getScriptInfoForNormalizedPath(e):e;if(n)return(null==(t=this.pendingOpenFileProjectUpdates)?void 0:t.delete(n.path))&&(this.tryFindDefaultConfiguredProjectAndLoadAncestorsForOpenScriptInfo(n,5),n.isOrphan()&&this.assignOrphanScriptInfoToInferredProject(n,this.openFiles.get(n.path))),this.tryGetDefaultProjectForFile(n)}ensureDefaultProjectForFile(e){return this.tryGetDefaultProjectForEnsuringConfiguredProjectForFile(e)||this.doEnsureDefaultProjectForFile(e)}doEnsureDefaultProjectForFile(e){this.ensureProjectStructuresUptoDate();const t=Ze(e)?this.getScriptInfoForNormalizedPath(e):e;return t?t.getDefaultProject():(this.logErrorForScriptInfoNotFound(Ze(e)?e:e.fileName),Efe.ThrowNoProject())}getScriptInfoEnsuringProjectsUptoDate(e){return this.ensureProjectStructuresUptoDate(),this.getScriptInfo(e)}ensureProjectStructuresUptoDate(){let e=this.pendingEnsureProjectForOpenFiles;this.pendingProjectUpdates.clear();const t=t=>{e=vge(t)||e};this.externalProjects.forEach(t),this.configuredProjects.forEach(t),this.inferredProjects.forEach(t),e&&this.ensureProjectForOpenFiles()}getFormatCodeOptions(e){const t=this.getScriptInfoForNormalizedPath(e);return t&&t.getFormatCodeSettings()||this.hostConfiguration.formatCodeOptions}getPreferences(e){const t=this.getScriptInfoForNormalizedPath(e);return{...this.hostConfiguration.preferences,...t&&t.getPreferences()}}getHostFormatCodeOptions(){return this.hostConfiguration.formatCodeOptions}getHostPreferences(){return this.hostConfiguration.preferences}onSourceFileChanged(e,t){un.assert(!e.isScriptOpen()),2===t?this.handleDeletedFile(e,!0):(e.deferredDelete&&(e.deferredDelete=void 0),e.delayReloadNonMixedContentFile(),this.delayUpdateProjectGraphs(e.containingProjects,!1),this.handleSourceMapProjects(e))}handleSourceMapProjects(e){if(e.sourceMapFilePath)if(Ze(e.sourceMapFilePath)){const t=this.getScriptInfoForPath(e.sourceMapFilePath);this.delayUpdateSourceInfoProjects(null==t?void 0:t.sourceInfos)}else this.delayUpdateSourceInfoProjects(e.sourceMapFilePath.sourceInfos);this.delayUpdateSourceInfoProjects(e.sourceInfos),e.declarationInfoPath&&this.delayUpdateProjectsOfScriptInfoPath(e.declarationInfoPath)}delayUpdateSourceInfoProjects(e){e&&e.forEach((e,t)=>this.delayUpdateProjectsOfScriptInfoPath(t))}delayUpdateProjectsOfScriptInfoPath(e){const t=this.getScriptInfoForPath(e);t&&this.delayUpdateProjectGraphs(t.containingProjects,!0)}handleDeletedFile(e,t){un.assert(!e.isScriptOpen()),this.delayUpdateProjectGraphs(e.containingProjects,!1),this.handleSourceMapProjects(e),e.detachAllProjects(),t?(e.delayReloadNonMixedContentFile(),e.deferredDelete=!0):this.deleteScriptInfo(e)}watchWildcardDirectory(e,t,n,r){let i=this.watchFactory.watchDirectory(e,t=>this.onWildCardDirectoryWatcherInvoke(e,n,r,o,t),t,this.getWatchOptionsFromProjectWatchOptions(r.parsedCommandLine.watchOptions,Do(n)),F$.WildcardDirectory,n);const o={packageJsonWatches:void 0,close(){var e;i&&(i.close(),i=void 0,null==(e=o.packageJsonWatches)||e.forEach(e=>{e.projects.delete(o),e.close()}),o.packageJsonWatches=void 0)}};return o}onWildCardDirectoryWatcherInvoke(e,t,n,r,i){const o=this.toPath(i),a=n.cachedDirectoryStructureHost.addOrDeleteFileOrDirectory(i,o);if("package.json"===Fo(o)&&!AZ(o)&&(a&&a.fileExists||!a&&this.host.fileExists(i))){const e=this.getNormalizedAbsolutePath(i);this.logger.info(`Config: ${t} Detected new package.json: ${e}`),this.packageJsonCache.addOrUpdate(e,o),this.watchPackageJsonFile(e,o,r)}(null==a?void 0:a.fileExists)||this.sendSourceFileChange(o);const s=this.findConfiguredProjectByProjectName(t);IU({watchedDirPath:this.toPath(e),fileOrDirectory:i,fileOrDirectoryPath:o,configFileName:t,extraFileExtensions:this.hostConfiguration.extraFileExtensions,currentDirectory:this.currentDirectory,options:n.parsedCommandLine.options,program:(null==s?void 0:s.getCurrentProgram())||n.parsedCommandLine.fileNames,useCaseSensitiveFileNames:this.host.useCaseSensitiveFileNames,writeLog:e=>this.logger.info(e),toPath:e=>this.toPath(e),getScriptKind:s?e=>s.getScriptKind(e):void 0})||(2!==n.updateLevel&&(n.updateLevel=1),n.projects.forEach((e,n)=>{var r;if(!e)return;const i=this.getConfiguredProjectByCanonicalConfigFilePath(n);if(!i)return;if(s!==i&&this.getHostPreferences().includeCompletionsForModuleExports){const e=this.toPath(t);b(null==(r=i.getCurrentProgram())?void 0:r.getResolvedProjectReferences(),t=>(null==t?void 0:t.sourceFile.path)===e)&&i.markAutoImportProviderAsDirty()}const a=s===i?1:0;if(!(i.pendingUpdateLevel>a))if(this.openFiles.has(o))if(un.checkDefined(this.getScriptInfoForPath(o)).isAttached(i)){const e=Math.max(a,i.openFileWatchTriggered.get(o)||0);i.openFileWatchTriggered.set(o,e)}else i.pendingUpdateLevel=a,this.delayUpdateProjectGraphAndEnsureProjectStructureForOpenFiles(i);else i.pendingUpdateLevel=a,this.delayUpdateProjectGraphAndEnsureProjectStructureForOpenFiles(i)}))}delayUpdateProjectsFromParsedConfigOnConfigFileChange(e,t){const n=this.configFileExistenceInfoCache.get(e);if(!(null==n?void 0:n.config))return!1;let r=!1;return n.config.updateLevel=2,n.config.cachedDirectoryStructureHost.clearCache(),n.config.projects.forEach((n,i)=>{var o,a,s;const c=this.getConfiguredProjectByCanonicalConfigFilePath(i);if(c)if(r=!0,i===e){if(c.initialLoadPending)return;c.pendingUpdateLevel=2,c.pendingUpdateReason=t,this.delayUpdateProjectGraph(c),c.markAutoImportProviderAsDirty()}else{if(c.initialLoadPending)return void(null==(a=null==(o=this.configFileExistenceInfoCache.get(i))?void 0:o.openFilesImpactedByConfigFile)||a.forEach(e=>{var t;(null==(t=this.pendingOpenFileProjectUpdates)?void 0:t.has(e))||(this.pendingOpenFileProjectUpdates??(this.pendingOpenFileProjectUpdates=new Map)).set(e,this.configFileForOpenFiles.get(e))}));const t=this.toPath(e);c.resolutionCache.removeResolutionsFromProjectReferenceRedirects(t),this.delayUpdateProjectGraph(c),this.getHostPreferences().includeCompletionsForModuleExports&&b(null==(s=c.getCurrentProgram())?void 0:s.getResolvedProjectReferences(),e=>(null==e?void 0:e.sourceFile.path)===t)&&c.markAutoImportProviderAsDirty()}}),r}onConfigFileChanged(e,t,n){const r=this.configFileExistenceInfoCache.get(t),i=this.getConfiguredProjectByCanonicalConfigFilePath(t),o=null==i?void 0:i.deferredClose;2===n?(r.exists=!1,i&&(i.deferredClose=!0)):(r.exists=!0,o&&(i.deferredClose=void 0,i.markAsDirty())),this.delayUpdateProjectsFromParsedConfigOnConfigFileChange(t,"Change in config file detected"),this.openFiles.forEach((e,t)=>{var n,i;const o=this.configFileForOpenFiles.get(t);if(!(null==(n=r.openFilesImpactedByConfigFile)?void 0:n.has(t)))return;this.configFileForOpenFiles.delete(t);const a=this.getScriptInfoForPath(t);this.getConfigFileNameForFile(a,!1)&&((null==(i=this.pendingOpenFileProjectUpdates)?void 0:i.has(t))||(this.pendingOpenFileProjectUpdates??(this.pendingOpenFileProjectUpdates=new Map)).set(t,o))}),this.delayEnsureProjectForOpenFiles()}removeProject(e){switch(this.logger.info("`remove Project::"),e.print(!0,!0,!1),e.close(),un.shouldAssert(1)&&this.filenameToScriptInfo.forEach(t=>un.assert(!t.isAttached(e),"Found script Info still attached to project",()=>`${e.projectName}: ScriptInfos still attached: ${JSON.stringify(Oe(J(this.filenameToScriptInfo.values(),t=>t.isAttached(e)?{fileName:t.fileName,projects:t.containingProjects.map(e=>e.projectName),hasMixedContent:t.hasMixedContent}:void 0)),void 0," ")}`)),this.pendingProjectUpdates.delete(e.getProjectName()),e.projectKind){case 2:Vt(this.externalProjects,e),this.projectToSizeMap.delete(e.getProjectName());break;case 1:this.configuredProjects.delete(e.canonicalConfigFilePath),this.projectToSizeMap.delete(e.canonicalConfigFilePath);break;case 0:Vt(this.inferredProjects,e)}}assignOrphanScriptInfoToInferredProject(e,t){un.assert(e.isOrphan());const n=this.getOrCreateInferredProjectForProjectRootPathIfEnabled(e,t)||this.getOrCreateSingleInferredProjectIfEnabled()||this.getOrCreateSingleInferredWithoutProjectRoot(e.isDynamic?t||this.currentDirectory:Do(go(e.fileName)?e.fileName:Bo(e.fileName,t?this.getNormalizedAbsolutePath(t):this.currentDirectory)));if(n.addRoot(e),e.containingProjects[0]!==n&&(zt(e.containingProjects,n),e.containingProjects.unshift(n)),n.updateGraph(),!this.useSingleInferredProject&&!n.projectRootPath)for(const e of this.inferredProjects){if(e===n||e.isOrphan())continue;const t=e.getRootScriptInfos();un.assert(1===t.length||!!e.projectRootPath),1===t.length&&d(t[0].containingProjects,e=>e!==t[0].containingProjects[0]&&!e.isOrphan())&&e.removeFile(t[0],!0,!0)}return n}assignOrphanScriptInfosToInferredProject(){this.openFiles.forEach((e,t)=>{const n=this.getScriptInfoForPath(t);n.isOrphan()&&this.assignOrphanScriptInfoToInferredProject(n,e)})}closeOpenFile(e,t){var n;const r=!e.isDynamic&&this.host.fileExists(e.fileName);e.close(r),this.stopWatchingConfigFilesForScriptInfo(e);const i=this.toCanonicalFileName(e.fileName);this.openFilesWithNonRootedDiskPath.get(i)===e&&this.openFilesWithNonRootedDiskPath.delete(i);let o=!1;for(const t of e.containingProjects){if(Cme(t)){e.hasMixedContent&&e.registerFileUpdate();const n=t.openFileWatchTriggered.get(e.path);void 0!==n&&(t.openFileWatchTriggered.delete(e.path),t.pendingUpdateLevelthis.onConfigFileChanged(e,t,r),2e3,this.getWatchOptionsFromProjectWatchOptions(null==(i=null==(r=null==o?void 0:o.config)?void 0:r.parsedCommandLine)?void 0:i.watchOptions,Do(e)),F$.ConfigFile,n)),this.ensureConfigFileWatcherForProject(o,n)}ensureConfigFileWatcherForProject(e,t){const n=e.config.projects;n.set(t.canonicalConfigFilePath,n.get(t.canonicalConfigFilePath)||!1)}releaseParsedConfig(e,t){var n,r,i;const o=this.configFileExistenceInfoCache.get(e);(null==(n=o.config)?void 0:n.projects.delete(t.canonicalConfigFilePath))&&((null==(r=o.config)?void 0:r.projects.size)||(o.config=void 0,FU(e,this.sharedExtendedConfigFileWatchers),un.checkDefined(o.watcher),(null==(i=o.openFilesImpactedByConfigFile)?void 0:i.size)?o.inferredProjectRoots?WW(Do(e))||(o.watcher.close(),o.watcher=oge):(o.watcher.close(),o.watcher=void 0):(o.watcher.close(),this.configFileExistenceInfoCache.delete(e))))}stopWatchingConfigFilesForScriptInfo(e){if(0!==this.serverMode)return;const t=this.rootOfInferredProjects.delete(e),n=e.isScriptOpen();n&&!t||this.forEachConfigFileLocation(e,r=>{var i,o,a;const s=this.configFileExistenceInfoCache.get(r);if(s){if(n){if(!(null==(i=null==s?void 0:s.openFilesImpactedByConfigFile)?void 0:i.has(e.path)))return}else if(!(null==(o=s.openFilesImpactedByConfigFile)?void 0:o.delete(e.path)))return;t&&(s.inferredProjectRoots--,!s.watcher||s.config||s.inferredProjectRoots||(s.watcher.close(),s.watcher=void 0)),(null==(a=s.openFilesImpactedByConfigFile)?void 0:a.size)||s.config||(un.assert(!s.watcher),this.configFileExistenceInfoCache.delete(r))}})}startWatchingConfigFilesForInferredProjectRoot(e){0===this.serverMode&&(un.assert(e.isScriptOpen()),this.rootOfInferredProjects.add(e),this.forEachConfigFileLocation(e,(t,n)=>{let r=this.configFileExistenceInfoCache.get(t);r?r.inferredProjectRoots=(r.inferredProjectRoots??0)+1:(r={exists:this.host.fileExists(n),inferredProjectRoots:1},this.configFileExistenceInfoCache.set(t,r)),(r.openFilesImpactedByConfigFile??(r.openFilesImpactedByConfigFile=new Set)).add(e.path),r.watcher||(r.watcher=WW(Do(t))?this.watchFactory.watchFile(n,(e,r)=>this.onConfigFileChanged(n,t,r),2e3,this.hostConfiguration.watchOptions,F$.ConfigFileForInferredRoot):oge)}))}forEachConfigFileLocation(e,t){if(0!==this.serverMode)return;un.assert(!sge(e)||this.openFiles.has(e.path));const n=this.openFiles.get(e.path);if(un.checkDefined(this.getScriptInfo(e.path)).isDynamic)return;let r=Do(e.fileName);const i=()=>ea(n,r,this.currentDirectory,!this.host.useCaseSensitiveFileNames),o=!n||!i();let a=!0,s=!0;cge(e)&&(a=!Mt(e.fileName,"tsconfig.json")&&(s=!1));do{const e=Mfe(r,this.currentDirectory,this.toCanonicalFileName);if(a){const n=Rfe(jo(r,"tsconfig.json"));if(t(jo(e,"tsconfig.json"),n))return n}if(s){const n=Rfe(jo(r,"jsconfig.json"));if(t(jo(e,"jsconfig.json"),n))return n}if(ca(e))break;const n=Rfe(Do(r));if(n===r)break;r=n,a=s=!0}while(o||i())}findDefaultConfiguredProject(e){var t;return null==(t=this.findDefaultConfiguredProjectWorker(e,1))?void 0:t.defaultProject}findDefaultConfiguredProjectWorker(e,t){return e.isScriptOpen()?this.tryFindDefaultConfiguredProjectForOpenScriptInfo(e,t):void 0}getConfigFileNameForFileFromCache(e,t){if(t){const t=age(e,this.pendingOpenFileProjectUpdates);if(void 0!==t)return t}return age(e,this.configFileForOpenFiles)}setConfigFileNameForFileInCache(e,t){if(!this.openFiles.has(e.path))return;const n=t||!1;if(cge(e)){let t=this.configFileForOpenFiles.get(e.path);t&&!Ze(t)||this.configFileForOpenFiles.set(e.path,t=(new Map).set(!1,t)),t.set(e.fileName,n)}else this.configFileForOpenFiles.set(e.path,n)}getConfigFileNameForFile(e,t){const n=this.getConfigFileNameForFileFromCache(e,t);if(void 0!==n)return n||void 0;if(t)return;const r=this.forEachConfigFileLocation(e,(t,n)=>this.configFileExists(n,t,e));return this.logger.info(`getConfigFileNameForFile:: File: ${e.fileName} ProjectRootPath: ${this.openFiles.get(e.path)}:: Result: ${r}`),this.setConfigFileNameForFileInCache(e,r),r}printProjects(){this.logger.hasLevel(1)&&(this.logger.startGroup(),this.externalProjects.forEach(Pge),this.configuredProjects.forEach(Pge),this.inferredProjects.forEach(Pge),this.logger.info("Open files: "),this.openFiles.forEach((e,t)=>{const n=this.getScriptInfoForPath(t);this.logger.info(`\tFileName: ${n.fileName} ProjectRootPath: ${e}`),this.logger.info(`\t\tProjects: ${n.containingProjects.map(e=>e.getProjectName())}`)}),this.logger.endGroup())}findConfiguredProjectByProjectName(e,t){const n=this.toCanonicalFileName(e),r=this.getConfiguredProjectByCanonicalConfigFilePath(n);return t?r:(null==r?void 0:r.deferredClose)?void 0:r}getConfiguredProjectByCanonicalConfigFilePath(e){return this.configuredProjects.get(e)}findExternalProjectByProjectName(e){return rge(e,this.externalProjects)}getFilenameForExceededTotalSizeLimitForNonTsFiles(e,t,n,r){if(t&&t.disableSizeLimit||!this.host.getFileSize)return;let i=Fme;this.projectToSizeMap.set(e,0),this.projectToSizeMap.forEach(e=>i-=e||0);let o=0;for(const e of n){const t=r.getFileName(e);if(!LS(t)&&(o+=this.host.getFileSize(t),o>Fme||o>i)){const e=n.map(e=>r.getFileName(e)).filter(e=>!LS(e)).map(e=>({name:e,size:this.host.getFileSize(e)})).sort((e,t)=>t.size-e.size).slice(0,5);return this.logger.info(`Non TS file size exceeded limit (${o}). Largest files: ${e.map(e=>`${e.name}:${e.size}`).join(", ")}`),t}}this.projectToSizeMap.set(e,o)}createExternalProject(e,t,n,r,i){const o=Gme(n),a=Xme(n,Do(Oo(e))),s=new Sme(e,this,o,this.getFilenameForExceededTotalSizeLimitForNonTsFiles(e,o,t,nge),void 0===n.compileOnSave||n.compileOnSave,void 0,null==a?void 0:a.watchOptions);return s.setProjectErrors(null==a?void 0:a.errors),s.excludedFiles=i,this.addFilesToNonInferredProject(s,t,nge,r),this.externalProjects.push(s),s}sendProjectTelemetry(e){if(this.seenProjects.has(e.projectName))return void Tge(e);if(this.seenProjects.set(e.projectName,!0),!this.eventHandler||!this.host.createSHA256Hash)return void Tge(e);const t=Cme(e)?e.projectOptions:void 0;Tge(e);const n={projectId:this.host.createSHA256Hash(e.projectName),fileStats:ume(e.getScriptInfos(),!0),compilerOptions:Kj(e.getCompilationSettings()),typeAcquisition:function({enable:e,include:t,exclude:n}){return{enable:e,include:void 0!==t&&0!==t.length,exclude:void 0!==n&&0!==n.length}}(e.getTypeAcquisition()),extends:t&&t.configHasExtendsProperty,files:t&&t.configHasFilesProperty,include:t&&t.configHasIncludeProperty,exclude:t&&t.configHasExcludeProperty,compileOnSave:e.compileOnSaveEnabled,configFileName:Cme(e)&&Hfe(e.getConfigFilePath())||"other",projectType:e instanceof Sme?"external":"configured",languageServiceEnabled:e.languageServiceEnabled,version:s};this.eventHandler({eventName:Mme,data:n})}addFilesToNonInferredProject(e,t,n,r){this.updateNonInferredProjectFiles(e,t,n),e.setTypeAcquisition(r),e.markAsDirty()}createConfiguredProject(e,t){var n;null==(n=Hn)||n.instant(Hn.Phase.Session,"createConfiguredProject",{configFilePath:e});const r=this.toCanonicalFileName(e);let i=this.configFileExistenceInfoCache.get(r);i?i.exists=!0:this.configFileExistenceInfoCache.set(r,i={exists:!0}),i.config||(i.config={cachedDirectoryStructureHost:wU(this.host,this.host.getCurrentDirectory(),this.host.useCaseSensitiveFileNames),projects:new Map,updateLevel:2});const o=new kme(e,r,this,i.config.cachedDirectoryStructureHost,t);return un.assert(!this.configuredProjects.has(r)),this.configuredProjects.set(r,o),this.createConfigFileWatcherForParsedConfig(e,r,o),o}loadConfiguredProject(e,t){var n,r;null==(n=Hn)||n.push(Hn.Phase.Session,"loadConfiguredProject",{configFilePath:e.canonicalConfigFilePath}),this.sendProjectLoadingStartEvent(e,t);const i=jfe(e.getConfigFilePath()),o=this.ensureParsedConfigUptoDate(i,e.canonicalConfigFilePath,this.configFileExistenceInfoCache.get(e.canonicalConfigFilePath),e),a=o.config.parsedCommandLine;un.assert(!!a.fileNames);const s=a.options;e.projectOptions||(e.projectOptions={configHasExtendsProperty:void 0!==a.raw.extends,configHasFilesProperty:void 0!==a.raw.files,configHasIncludeProperty:void 0!==a.raw.include,configHasExcludeProperty:void 0!==a.raw.exclude}),e.parsedCommandLine=a,e.setProjectErrors(a.options.configFile.parseDiagnostics),e.updateReferences(a.projectReferences);const c=this.getFilenameForExceededTotalSizeLimitForNonTsFiles(e.canonicalConfigFilePath,s,a.fileNames,tge);c?(e.disableLanguageService(c),this.configFileExistenceInfoCache.forEach((t,n)=>this.stopWatchingWildCards(n,e))):(e.setCompilerOptions(s),e.setWatchOptions(a.watchOptions),e.enableLanguageService(),this.watchWildcards(i,o,e)),e.enablePluginsWithOptions(s);const l=a.fileNames.concat(e.getExternalFiles(2));this.updateRootAndOptionsOfNonInferredProject(e,l,tge,s,a.typeAcquisition,a.compileOnSave,a.watchOptions),null==(r=Hn)||r.pop()}ensureParsedConfigUptoDate(e,t,n,r){var i,o,a;if(n.config&&(1===n.config.updateLevel&&this.reloadFileNamesOfParsedConfig(e,n.config),!n.config.updateLevel))return this.ensureConfigFileWatcherForProject(n,r),n;if(!n.exists&&n.config)return n.config.updateLevel=void 0,this.ensureConfigFileWatcherForProject(n,r),n;const s=(null==(i=n.config)?void 0:i.cachedDirectoryStructureHost)||wU(this.host,this.host.getCurrentDirectory(),this.host.useCaseSensitiveFileNames),c=bL(e,e=>this.host.readFile(e)),l=nO(e,Ze(c)?c:""),_=l.parseDiagnostics;Ze(c)||_.push(c);const u=Do(e),d=ej(l,s,u,void 0,e,void 0,this.hostConfiguration.extraFileExtensions,this.extendedConfigCache);d.errors.length&&_.push(...d.errors),this.logger.info(`Config: ${e} : ${JSON.stringify({rootNames:d.fileNames,options:d.options,watchOptions:d.watchOptions,projectReferences:d.projectReferences},void 0," ")}`);const p=null==(o=n.config)?void 0:o.parsedCommandLine;return n.config?(n.config.parsedCommandLine=d,n.config.watchedDirectoriesStale=!0,n.config.updateLevel=void 0):n.config={parsedCommandLine:d,cachedDirectoryStructureHost:s,projects:new Map},p||fT(this.getWatchOptionsFromProjectWatchOptions(void 0,u),this.getWatchOptionsFromProjectWatchOptions(d.watchOptions,u))||(null==(a=n.watcher)||a.close(),n.watcher=void 0),this.createConfigFileWatcherForParsedConfig(e,t,r),DU(t,d.options,this.sharedExtendedConfigFileWatchers,(t,n)=>this.watchFactory.watchFile(t,()=>{var e;EU(this.extendedConfigCache,n,e=>this.toPath(e));let r=!1;null==(e=this.sharedExtendedConfigFileWatchers.get(n))||e.projects.forEach(e=>{r=this.delayUpdateProjectsFromParsedConfigOnConfigFileChange(e,`Change in extended config file ${t} detected`)||r}),r&&this.delayEnsureProjectForOpenFiles()},2e3,this.hostConfiguration.watchOptions,F$.ExtendedConfigFile,e),e=>this.toPath(e)),n}watchWildcards(e,{exists:t,config:n},r){if(n.projects.set(r.canonicalConfigFilePath,!0),t){if(n.watchedDirectories&&!n.watchedDirectoriesStale)return;n.watchedDirectoriesStale=!1,AU(n.watchedDirectories||(n.watchedDirectories=new Map),n.parsedCommandLine.wildcardDirectories,(t,r)=>this.watchWildcardDirectory(t,r,e,n))}else{if(n.watchedDirectoriesStale=!1,!n.watchedDirectories)return;ux(n.watchedDirectories,RU),n.watchedDirectories=void 0}}stopWatchingWildCards(e,t){const n=this.configFileExistenceInfoCache.get(e);n.config&&n.config.projects.get(t.canonicalConfigFilePath)&&(n.config.projects.set(t.canonicalConfigFilePath,!1),rd(n.config.projects,st)||(n.config.watchedDirectories&&(ux(n.config.watchedDirectories,RU),n.config.watchedDirectories=void 0),n.config.watchedDirectoriesStale=void 0))}updateNonInferredProjectFiles(e,t,n){var r;const i=e.getRootFilesMap(),o=new Map;for(const a of t){const t=n.getFileName(a),s=jfe(t);let c;if(ame(s)||e.fileExists(t)){const t=n.getScriptKind(a,this.hostConfiguration.extraFileExtensions),r=n.hasMixedContent(a,this.hostConfiguration.extraFileExtensions),o=un.checkDefined(this.getOrCreateScriptInfoNotOpenedByClientForNormalizedPath(s,e.currentDirectory,t,r,e.directoryStructureHost,!1));c=o.path;const l=i.get(c);l&&l.info===o?l.fileName=s:(e.addRoot(o,s),o.isScriptOpen()&&this.removeRootOfInferredProjectIfNowPartOfOtherProject(o))}else{c=Mfe(s,this.currentDirectory,this.toCanonicalFileName);const t=i.get(c);t?((null==(r=t.info)?void 0:r.path)===c&&(e.removeFile(t.info,!1,!0),t.info=void 0),t.fileName=s):i.set(c,{fileName:s})}o.set(c,!0)}i.size>o.size&&i.forEach((t,n)=>{o.has(n)||(t.info?e.removeFile(t.info,e.fileExists(t.info.fileName),!0):i.delete(n))})}updateRootAndOptionsOfNonInferredProject(e,t,n,r,i,o,a){e.setCompilerOptions(r),e.setWatchOptions(a),void 0!==o&&(e.compileOnSaveEnabled=o),this.addFilesToNonInferredProject(e,t,n,i)}reloadFileNamesOfConfiguredProject(e){const t=this.reloadFileNamesOfParsedConfig(e.getConfigFilePath(),this.configFileExistenceInfoCache.get(e.canonicalConfigFilePath).config);return e.updateErrorOnNoInputFiles(t),this.updateNonInferredProjectFiles(e,t.fileNames.concat(e.getExternalFiles(1)),tge),e.markAsDirty(),e.updateGraph()}reloadFileNamesOfParsedConfig(e,t){if(void 0===t.updateLevel)return t.parsedCommandLine;un.assert(1===t.updateLevel);const n=jj(t.parsedCommandLine.options.configFile.configFileSpecs,Do(e),t.parsedCommandLine.options,t.cachedDirectoryStructureHost,this.hostConfiguration.extraFileExtensions);return t.parsedCommandLine={...t.parsedCommandLine,fileNames:n},t.updateLevel=void 0,t.parsedCommandLine}setFileNamesOfAutoImportProviderOrAuxillaryProject(e,t){this.updateNonInferredProjectFiles(e,t,tge)}reloadConfiguredProjectOptimized(e,t,n){n.has(e)||(n.set(e,6),e.initialLoadPending||this.setProjectForReload(e,2,t))}reloadConfiguredProjectClearingSemanticCache(e,t,n){return 7!==n.get(e)&&(n.set(e,7),this.clearSemanticCache(e),this.reloadConfiguredProject(e,Sge(t)),!0)}setProjectForReload(e,t,n){2===t&&this.clearSemanticCache(e),e.pendingUpdateReason=n&&Sge(n),e.pendingUpdateLevel=t}reloadConfiguredProject(e,t){e.initialLoadPending=!1,this.setProjectForReload(e,0),this.loadConfiguredProject(e,t),bge(e,e.triggerFileForConfigFileDiag??e.getConfigFilePath(),!0)}clearSemanticCache(e){e.originalConfiguredProjects=void 0,e.resolutionCache.clear(),e.getLanguageService(!1).cleanupSemanticCache(),e.cleanupProgram(),e.markAsDirty()}sendConfigFileDiagEvent(e,t,n){if(!this.eventHandler||this.suppressDiagnosticEvents)return!1;const r=e.getLanguageService().getCompilerOptionsDiagnostics();return r.push(...e.getAllProjectErrors()),!(!n&&r.length===(e.configDiagDiagnosticsReported??0)||(e.configDiagDiagnosticsReported=r.length,this.eventHandler({eventName:Lme,data:{configFileName:e.getConfigFilePath(),diagnostics:r,triggerFile:t??e.getConfigFilePath()}}),0))}getOrCreateInferredProjectForProjectRootPathIfEnabled(e,t){if(!this.useInferredProjectPerProjectRoot||e.isDynamic&&void 0===t)return;if(t){const e=this.toCanonicalFileName(t);for(const t of this.inferredProjects)if(t.projectRootPath===e)return t;return this.createInferredProject(t,!1,t)}let n;for(const t of this.inferredProjects)t.projectRootPath&&ea(t.projectRootPath,e.path,this.host.getCurrentDirectory(),!this.host.useCaseSensitiveFileNames)&&(n&&n.projectRootPath.length>t.projectRootPath.length||(n=t));return n}getOrCreateSingleInferredProjectIfEnabled(){if(this.useSingleInferredProject)return this.inferredProjects.length>0&&void 0===this.inferredProjects[0].projectRootPath?this.inferredProjects[0]:this.createInferredProject(this.currentDirectory,!0,void 0)}getOrCreateSingleInferredWithoutProjectRoot(e){un.assert(!this.useSingleInferredProject);const t=this.toCanonicalFileName(this.getNormalizedAbsolutePath(e));for(const e of this.inferredProjects)if(!e.projectRootPath&&e.isOrphan()&&e.canonicalCurrentDirectory===t)return e;return this.createInferredProject(e,!1,void 0)}createInferredProject(e,t,n){const r=n&&this.compilerOptionsForInferredProjectsPerProjectRoot.get(n)||this.compilerOptionsForInferredProjects;let i,o;n&&(i=this.watchOptionsForInferredProjectsPerProjectRoot.get(n),o=this.typeAcquisitionForInferredProjectsPerProjectRoot.get(n)),void 0===i&&(i=this.watchOptionsForInferredProjects),void 0===o&&(o=this.typeAcquisitionForInferredProjects),i=i||void 0;const a=new yme(this,r,null==i?void 0:i.watchOptions,n,e,o);return a.setProjectErrors(null==i?void 0:i.errors),t?this.inferredProjects.unshift(a):this.inferredProjects.push(a),a}getOrCreateScriptInfoNotOpenedByClient(e,t,n,r){return this.getOrCreateScriptInfoNotOpenedByClientForNormalizedPath(jfe(e),t,void 0,void 0,n,r)}getScriptInfo(e){return this.getScriptInfoForNormalizedPath(jfe(e))}getScriptInfoOrConfig(e){const t=jfe(e),n=this.getScriptInfoForNormalizedPath(t);if(n)return n;const r=this.configuredProjects.get(this.toPath(e));return r&&r.getCompilerOptions().configFile}logErrorForScriptInfoNotFound(e){const t=Oe(J(this.filenameToScriptInfo.entries(),e=>e[1].deferredDelete?void 0:e),([e,t])=>({path:e,fileName:t.fileName}));this.logger.msg(`Could not find file ${JSON.stringify(e)}.\nAll files are: ${JSON.stringify(t)}`,"Err")}getSymlinkedProjects(e){let t;if(this.realpathToScriptInfos){const t=e.getRealpathIfDifferent();t&&d(this.realpathToScriptInfos.get(t),n),d(this.realpathToScriptInfos.get(e.path),n)}return t;function n(n){if(n!==e)for(const r of n.containingProjects)!r.languageServiceEnabled||r.isOrphan()||r.getCompilerOptions().preserveSymlinks||e.isAttached(r)||(t?rd(t,(e,t)=>t!==n.path&&T(e,r))||t.add(n.path,r):(t=$e(),t.add(n.path,r)))}}watchClosedScriptInfo(e){if(un.assert(!e.fileWatcher),!(e.isDynamicOrHasMixedContent()||this.globalCacheLocationDirectoryPath&&Gt(e.path,this.globalCacheLocationDirectoryPath))){const t=e.fileName.indexOf("/node_modules/");this.host.getModifiedTime&&-1!==t?(e.mTime=this.getModifiedTime(e),e.fileWatcher=this.watchClosedScriptInfoInNodeModules(e.fileName.substring(0,t))):e.fileWatcher=this.watchFactory.watchFile(e.fileName,(t,n)=>this.onSourceFileChanged(e,n),500,this.hostConfiguration.watchOptions,F$.ClosedScriptInfo)}}createNodeModulesWatcher(e,t){let n=this.watchFactory.watchDirectory(e,e=>{var n;const i=qW(this.toPath(e));if(!i)return;const o=Fo(i);if(!(null==(n=r.affectedModuleSpecifierCacheProjects)?void 0:n.size)||"package.json"!==o&&"node_modules"!==o||r.affectedModuleSpecifierCacheProjects.forEach(e=>{var t;null==(t=e.getModuleSpecifierCache())||t.clear()}),r.refreshScriptInfoRefCount)if(t===i)this.refreshScriptInfosInDirectory(t);else{const e=this.filenameToScriptInfo.get(i);e?yge(e)&&this.refreshScriptInfo(e):xo(i)||this.refreshScriptInfosInDirectory(i)}},1,this.hostConfiguration.watchOptions,F$.NodeModules);const r={refreshScriptInfoRefCount:0,affectedModuleSpecifierCacheProjects:void 0,close:()=>{var e;!n||r.refreshScriptInfoRefCount||(null==(e=r.affectedModuleSpecifierCacheProjects)?void 0:e.size)||(n.close(),n=void 0,this.nodeModulesWatchers.delete(t))}};return this.nodeModulesWatchers.set(t,r),r}watchPackageJsonsInNodeModules(e,t){var n;const r=this.toPath(e),i=this.nodeModulesWatchers.get(r)||this.createNodeModulesWatcher(e,r);return un.assert(!(null==(n=i.affectedModuleSpecifierCacheProjects)?void 0:n.has(t))),(i.affectedModuleSpecifierCacheProjects||(i.affectedModuleSpecifierCacheProjects=new Set)).add(t),{close:()=>{var e;null==(e=i.affectedModuleSpecifierCacheProjects)||e.delete(t),i.close()}}}watchClosedScriptInfoInNodeModules(e){const t=e+"/node_modules",n=this.toPath(t),r=this.nodeModulesWatchers.get(n)||this.createNodeModulesWatcher(t,n);return r.refreshScriptInfoRefCount++,{close:()=>{r.refreshScriptInfoRefCount--,r.close()}}}getModifiedTime(e){return(this.host.getModifiedTime(e.fileName)||zi).getTime()}refreshScriptInfo(e){const t=this.getModifiedTime(e);if(t!==e.mTime){const n=Xi(e.mTime,t);e.mTime=t,this.onSourceFileChanged(e,n)}}refreshScriptInfosInDirectory(e){e+=lo,this.filenameToScriptInfo.forEach(t=>{yge(t)&&Gt(t.path,e)&&this.refreshScriptInfo(t)})}stopWatchingScriptInfo(e){e.fileWatcher&&(e.fileWatcher.close(),e.fileWatcher=void 0)}getOrCreateScriptInfoNotOpenedByClientForNormalizedPath(e,t,n,r,i,o){if(go(e)||ame(e))return this.getOrCreateScriptInfoWorker(e,t,!1,void 0,n,!!r,i,o);return this.openFilesWithNonRootedDiskPath.get(this.toCanonicalFileName(e))||void 0}getOrCreateScriptInfoForNormalizedPath(e,t,n,r,i,o){return this.getOrCreateScriptInfoWorker(e,this.currentDirectory,t,n,r,!!i,o,!1)}getOrCreateScriptInfoWorker(e,t,n,r,i,o,a,s){un.assert(void 0===r||n,"ScriptInfo needs to be opened by client to be able to set its user defined content");const c=Mfe(e,t,this.toCanonicalFileName);let l=this.filenameToScriptInfo.get(c);if(l){if(l.deferredDelete){if(un.assert(!l.isDynamic),!n&&!(a||this.host).fileExists(e))return s?l:void 0;l.deferredDelete=void 0}}else{const r=ame(e);if(un.assert(go(e)||r||n,"",()=>`${JSON.stringify({fileName:e,currentDirectory:t,hostCurrentDirectory:this.currentDirectory,openKeys:Oe(this.openFilesWithNonRootedDiskPath.keys())})}\nScript info with non-dynamic relative file name can only be open script info or in context of host currentDirectory`),un.assert(!go(e)||this.currentDirectory===t||!this.openFilesWithNonRootedDiskPath.has(this.toCanonicalFileName(e)),"",()=>`${JSON.stringify({fileName:e,currentDirectory:t,hostCurrentDirectory:this.currentDirectory,openKeys:Oe(this.openFilesWithNonRootedDiskPath.keys())})}\nOpen script files with non rooted disk path opened with current directory context cannot have same canonical names`),un.assert(!r||this.currentDirectory===t||this.useInferredProjectPerProjectRoot,"",()=>`${JSON.stringify({fileName:e,currentDirectory:t,hostCurrentDirectory:this.currentDirectory,openKeys:Oe(this.openFilesWithNonRootedDiskPath.keys())})}\nDynamic files must always be opened with service's current directory or service should support inferred project per projectRootPath.`),!n&&!r&&!(a||this.host).fileExists(e))return;l=new sme(this.host,e,i,o,c,this.filenameToScriptInfoVersion.get(c)),this.filenameToScriptInfo.set(l.path,l),this.filenameToScriptInfoVersion.delete(l.path),n?go(e)||r&&this.currentDirectory===t||this.openFilesWithNonRootedDiskPath.set(this.toCanonicalFileName(e),l):this.watchClosedScriptInfo(l)}return n&&(this.stopWatchingScriptInfo(l),l.open(r),o&&l.registerFileUpdate()),l}getScriptInfoForNormalizedPath(e){return!go(e)&&this.openFilesWithNonRootedDiskPath.get(this.toCanonicalFileName(e))||this.getScriptInfoForPath(Mfe(e,this.currentDirectory,this.toCanonicalFileName))}getScriptInfoForPath(e){const t=this.filenameToScriptInfo.get(e);return t&&t.deferredDelete?void 0:t}getDocumentPositionMapper(e,t,n){const r=this.getOrCreateScriptInfoNotOpenedByClient(t,e.currentDirectory,this.host,!1);if(!r)return void(n&&e.addGeneratedFileWatch(t,n));if(r.getSnapshot(),Ze(r.sourceMapFilePath)){const t=this.getScriptInfoForPath(r.sourceMapFilePath);if(t&&(t.getSnapshot(),void 0!==t.documentPositionMapper))return t.sourceInfos=this.addSourceInfoToSourceMap(n,e,t.sourceInfos),t.documentPositionMapper?t.documentPositionMapper:void 0;r.sourceMapFilePath=void 0}else{if(r.sourceMapFilePath)return void(r.sourceMapFilePath.sourceInfos=this.addSourceInfoToSourceMap(n,e,r.sourceMapFilePath.sourceInfos));if(void 0!==r.sourceMapFilePath)return}let i,o=(t,n)=>{const r=this.getOrCreateScriptInfoNotOpenedByClient(t,e.currentDirectory,this.host,!0);if(i=r||n,!r||r.deferredDelete)return;const o=r.getSnapshot();return void 0!==r.documentPositionMapper?r.documentPositionMapper:zQ(o)};const a=e.projectName,s=b1({getCanonicalFileName:this.toCanonicalFileName,log:e=>this.logger.info(e),getSourceFileLike:e=>this.getSourceFileLike(e,a,r)},r.fileName,r.textStorage.getLineInfo(),o);return o=void 0,i?Ze(i)?r.sourceMapFilePath={watcher:this.addMissingSourceMapFile(e.currentDirectory===this.currentDirectory?i:Bo(i,e.currentDirectory),r.path),sourceInfos:this.addSourceInfoToSourceMap(n,e)}:(r.sourceMapFilePath=i.path,i.declarationInfoPath=r.path,i.deferredDelete||(i.documentPositionMapper=s||!1),i.sourceInfos=this.addSourceInfoToSourceMap(n,e,i.sourceInfos)):r.sourceMapFilePath=!1,s}addSourceInfoToSourceMap(e,t,n){if(e){const r=this.getOrCreateScriptInfoNotOpenedByClient(e,t.currentDirectory,t.directoryStructureHost,!1);(n||(n=new Set)).add(r.path)}return n}addMissingSourceMapFile(e,t){return this.watchFactory.watchFile(e,()=>{const e=this.getScriptInfoForPath(t);e&&e.sourceMapFilePath&&!Ze(e.sourceMapFilePath)&&(this.delayUpdateProjectGraphs(e.containingProjects,!0),this.delayUpdateSourceInfoProjects(e.sourceMapFilePath.sourceInfos),e.closeSourceMapFileWatcher())},2e3,this.hostConfiguration.watchOptions,F$.MissingSourceMapFile)}getSourceFileLike(e,t,n){const r=t.projectName?t:this.findProject(t);if(r){const t=r.toPath(e),n=r.getSourceFile(t);if(n&&n.resolvedPath===t)return n}const i=this.getOrCreateScriptInfoNotOpenedByClient(e,(r||this).currentDirectory,r?r.directoryStructureHost:this.host,!1);if(i){if(n&&Ze(n.sourceMapFilePath)&&i!==n){const e=this.getScriptInfoForPath(n.sourceMapFilePath);e&&(e.sourceInfos??(e.sourceInfos=new Set)).add(i.path)}return i.cacheSourceFile?i.cacheSourceFile.sourceFile:(i.sourceFileLike||(i.sourceFileLike={get text(){return un.fail("shouldnt need text"),""},getLineAndCharacterOfPosition:e=>{const t=i.positionToLineOffset(e);return{line:t.line-1,character:t.offset-1}},getPositionOfLineAndCharacter:(e,t,n)=>i.lineOffsetToPosition(e+1,t+1,n)}),i.sourceFileLike)}}setPerformanceEventHandler(e){this.performanceEventHandler=e}setHostConfiguration(e){var t;if(e.file){const t=this.getScriptInfoForNormalizedPath(jfe(e.file));t&&(t.setOptions(Kme(e.formatOptions),e.preferences),this.logger.info(`Host configuration update for file ${e.file}`))}else{if(void 0!==e.hostInfo&&(this.hostConfiguration.hostInfo=e.hostInfo,this.logger.info(`Host information ${e.hostInfo}`)),e.formatOptions&&(this.hostConfiguration.formatCodeOptions={...this.hostConfiguration.formatCodeOptions,...Kme(e.formatOptions)},this.logger.info("Format host information updated")),e.preferences){const{lazyConfiguredProjectsFromExternalProject:t,includePackageJsonAutoImports:n,includeCompletionsForModuleExports:r}=this.hostConfiguration.preferences;this.hostConfiguration.preferences={...this.hostConfiguration.preferences,...e.preferences},t&&!this.hostConfiguration.preferences.lazyConfiguredProjectsFromExternalProject&&this.externalProjectToConfiguredProjectMap.forEach(e=>e.forEach(e=>{e.deferredClose||e.isClosed()||2!==e.pendingUpdateLevel||this.hasPendingProjectUpdate(e)||e.updateGraph()})),n===e.preferences.includePackageJsonAutoImports&&!!r==!!e.preferences.includeCompletionsForModuleExports||this.forEachProject(e=>{e.onAutoImportProviderSettingsChanged()})}if(e.extraFileExtensions&&(this.hostConfiguration.extraFileExtensions=e.extraFileExtensions,this.reloadProjects(),this.logger.info("Host file extension mappings updated")),e.watchOptions){const n=null==(t=Xme(e.watchOptions))?void 0:t.watchOptions,r=aj(n,this.currentDirectory);this.hostConfiguration.watchOptions=r,this.hostConfiguration.beforeSubstitution=r===n?void 0:n,this.logger.info(`Host watch options changed to ${JSON.stringify(this.hostConfiguration.watchOptions)}, it will be take effect for next watches.`)}}}getWatchOptions(e){return this.getWatchOptionsFromProjectWatchOptions(e.getWatchOptions(),e.getCurrentDirectory())}getWatchOptionsFromProjectWatchOptions(e,t){const n=this.hostConfiguration.beforeSubstitution?aj(this.hostConfiguration.beforeSubstitution,t):this.hostConfiguration.watchOptions;return e&&n?{...n,...e}:e||n}closeLog(){this.logger.close()}sendSourceFileChange(e){this.filenameToScriptInfo.forEach(t=>{if(this.openFiles.has(t.path))return;if(!t.fileWatcher)return;const n=dt(()=>this.host.fileExists(t.fileName)?t.deferredDelete?0:1:2);if(e){if(yge(t)||!t.path.startsWith(e))return;if(2===n()&&t.deferredDelete)return;this.logger.info(`Invoking sourceFileChange on ${t.fileName}:: ${n()}`)}this.onSourceFileChanged(t,n())})}reloadProjects(){this.logger.info("reload projects."),this.sendSourceFileChange(void 0),this.pendingProjectUpdates.forEach((e,t)=>{this.throttledOperations.cancel(t),this.pendingProjectUpdates.delete(t)}),this.throttledOperations.cancel(qme),this.pendingOpenFileProjectUpdates=void 0,this.pendingEnsureProjectForOpenFiles=!1,this.configFileExistenceInfoCache.forEach(e=>{e.config&&(e.config.updateLevel=2,e.config.cachedDirectoryStructureHost.clearCache())}),this.configFileForOpenFiles.clear(),this.externalProjects.forEach(e=>{this.clearSemanticCache(e),e.updateGraph()});const e=new Map,t=new Set;this.externalProjectToConfiguredProjectMap.forEach((t,n)=>{const r=`Reloading configured project in external project: ${n}`;t.forEach(t=>{this.getHostPreferences().lazyConfiguredProjectsFromExternalProject?this.reloadConfiguredProjectOptimized(t,r,e):this.reloadConfiguredProjectClearingSemanticCache(t,r,e)})}),this.openFiles.forEach((n,r)=>{const i=this.getScriptInfoForPath(r);b(i.containingProjects,wme)||this.tryFindDefaultConfiguredProjectAndLoadAncestorsForOpenScriptInfo(i,7,e,t)}),t.forEach(t=>e.set(t,7)),this.inferredProjects.forEach(e=>this.clearSemanticCache(e)),this.ensureProjectForOpenFiles(),this.cleanupProjectsAndScriptInfos(e,new Set(this.openFiles.keys()),new Set(this.externalProjectToConfiguredProjectMap.keys())),this.logger.info("After reloading projects.."),this.printProjects()}removeRootOfInferredProjectIfNowPartOfOtherProject(e){un.assert(e.containingProjects.length>0);const t=e.containingProjects[0];!t.isOrphan()&&Tme(t)&&t.isRoot(e)&&d(e.containingProjects,e=>e!==t&&!e.isOrphan())&&t.removeFile(e,!0,!0)}ensureProjectForOpenFiles(){this.logger.info("Before ensureProjectForOpenFiles:"),this.printProjects();const e=this.pendingOpenFileProjectUpdates;this.pendingOpenFileProjectUpdates=void 0,null==e||e.forEach((e,t)=>this.tryFindDefaultConfiguredProjectAndLoadAncestorsForOpenScriptInfo(this.getScriptInfoForPath(t),5)),this.openFiles.forEach((e,t)=>{const n=this.getScriptInfoForPath(t);n.isOrphan()?this.assignOrphanScriptInfoToInferredProject(n,e):this.removeRootOfInferredProjectIfNowPartOfOtherProject(n)}),this.pendingEnsureProjectForOpenFiles=!1,this.inferredProjects.forEach(vge),this.logger.info("After ensureProjectForOpenFiles:"),this.printProjects()}openClientFile(e,t,n,r){return this.openClientFileWithNormalizedPath(jfe(e),t,n,!1,r?jfe(r):void 0)}getOriginalLocationEnsuringConfiguredProject(e,t){const n=e.isSourceOfProjectReferenceRedirect(t.fileName),r=n?t:e.getSourceMapper().tryGetSourcePosition(t);if(!r)return;const{fileName:i}=r,o=this.getScriptInfo(i);if(!o&&!this.host.fileExists(i))return;const a={fileName:jfe(i),path:this.toPath(i)},s=this.getConfigFileNameForFile(a,!1);if(!s)return;let c=this.findConfiguredProjectByProjectName(s);if(!c){if(e.getCompilerOptions().disableReferencedProjectLoad)return n?t:(null==o?void 0:o.containingProjects.length)?r:t;c=this.createConfiguredProject(s,`Creating project for original file: ${a.fileName}${t!==r?" for location: "+t.fileName:""}`)}const l=this.tryFindDefaultConfiguredProjectForOpenScriptInfoOrClosedFileInfo(a,5,pge(c,4),e=>`Creating project referenced in solution ${e.projectName} to find possible configured project for original file: ${a.fileName}${t!==r?" for location: "+t.fileName:""}`);if(!l.defaultProject)return;if(l.defaultProject===e)return r;u(l.defaultProject);const _=this.getScriptInfo(i);if(_&&_.containingProjects.length)return _.containingProjects.forEach(e=>{Cme(e)&&u(e)}),r;function u(t){(e.originalConfiguredProjects??(e.originalConfiguredProjects=new Set)).add(t.canonicalConfigFilePath)}}fileExists(e){return!!this.getScriptInfoForNormalizedPath(e)||this.host.fileExists(e)}findExternalProjectContainingOpenScriptInfo(e){return b(this.externalProjects,t=>(vge(t),t.containsScriptInfo(e)))}getOrCreateOpenScriptInfo(e,t,n,r,i){const o=this.getOrCreateScriptInfoWorker(e,i?this.getNormalizedAbsolutePath(i):this.currentDirectory,!0,t,n,!!r,void 0,!0);return this.openFiles.set(o.path,i),o}assignProjectToOpenedScriptInfo(e){let t,n,r,i;if(!this.findExternalProjectContainingOpenScriptInfo(e)&&0===this.serverMode){const o=this.tryFindDefaultConfiguredProjectAndLoadAncestorsForOpenScriptInfo(e,5);o&&(r=o.seenProjects,i=o.sentConfigDiag,o.defaultProject&&(t=o.defaultProject.getConfigFilePath(),n=o.defaultProject.getAllProjectErrors()))}return e.containingProjects.forEach(vge),e.isOrphan()&&(null==r||r.forEach((t,n)=>{4===t||i.has(n)||this.sendConfigFileDiagEvent(n,e.fileName,!0)}),un.assert(this.openFiles.has(e.path)),this.assignOrphanScriptInfoToInferredProject(e,this.openFiles.get(e.path))),un.assert(!e.isOrphan()),{configFileName:t,configFileErrors:n,retainProjects:r}}findCreateOrReloadConfiguredProject(e,t,n,r,i,o,a,s,c){let l,_=c??this.findConfiguredProjectByProjectName(e,r),u=!1;switch(t){case 0:case 1:case 3:if(!_)return;break;case 2:if(!_)return;l=function(e){return kge(e)?e.projectService.configFileExistenceInfoCache.get(e.canonicalConfigFilePath):void 0}(_);break;case 4:case 5:_??(_=this.createConfiguredProject(e,n)),a||({sentConfigFileDiag:u,configFileExistenceInfo:l}=pge(_,t,i));break;case 6:if(_??(_=this.createConfiguredProject(e,Sge(n))),_.projectService.reloadConfiguredProjectOptimized(_,n,o),l=xge(_),l)break;case 7:_??(_=this.createConfiguredProject(e,Sge(n))),u=!s&&this.reloadConfiguredProjectClearingSemanticCache(_,n,o),!s||s.has(_)||o.has(_)||(this.setProjectForReload(_,2,n),s.add(_));break;default:un.assertNever(t)}return{project:_,sentConfigFileDiag:u,configFileExistenceInfo:l,reason:n}}tryFindDefaultConfiguredProjectForOpenScriptInfo(e,t,n,r){const i=this.getConfigFileNameForFile(e,t<=3);if(!i)return;const o=_ge(t),a=this.findCreateOrReloadConfiguredProject(i,o,function(e){return`Creating possible configured project for ${e.fileName} to open`}(e),n,e.fileName,r);return a&&this.tryFindDefaultConfiguredProjectForOpenScriptInfoOrClosedFileInfo(e,t,a,t=>`Creating project referenced in solution ${t.projectName} to find possible configured project for ${e.fileName} to open`,n,r)}isMatchedByConfig(e,t,n){if(t.fileNames.some(e=>this.toPath(e)===n.path))return!0;if(BS(n.fileName,t.options,this.hostConfiguration.extraFileExtensions))return!1;const{validatedFilesSpec:r,validatedIncludeSpecs:i,validatedExcludeSpecs:o}=t.options.configFile.configFileSpecs,a=jfe(Bo(Do(e),this.currentDirectory));return!!(null==r?void 0:r.some(e=>this.toPath(Bo(e,a))===n.path))||!!(null==i?void 0:i.length)&&!Jj(n.fileName,o,this.host.useCaseSensitiveFileNames,this.currentDirectory,a)&&(null==i?void 0:i.some(e=>{const t=dS(e,a,"files");return!!t&&gS(`(${t})$`,this.host.useCaseSensitiveFileNames).test(n.fileName)}))}tryFindDefaultConfiguredProjectForOpenScriptInfoOrClosedFileInfo(e,t,n,r,i,o){const a=sge(e),s=_ge(t),c=new Map;let l;const _=new Set;let u,d,p,f;return function t(n){return function(e,t){return e.sentConfigFileDiag&&_.add(e.project),e.configFileExistenceInfo?m(e.configFileExistenceInfo,e.project,jfe(e.project.getConfigFilePath()),e.reason,e.project,e.project.canonicalConfigFilePath):g(e.project,t)}(n,n.project)??((c=n.project).parsedCommandLine&&dge(c,c.parsedCommandLine,m,s,r(c),i,o))??function(n){return a?uge(e,n,t,s,`Creating possible configured project for ${e.fileName} to open`,i,o,!1):void 0}(n.project);var c}(n),{defaultProject:u??d,tsconfigProject:p??f,sentConfigDiag:_,seenProjects:c,seenConfigs:l};function m(n,r,a,u,d,p){if(r){if(c.has(r))return;c.set(r,s)}else{if(null==l?void 0:l.has(p))return;(l??(l=new Set)).add(p)}if(!d.projectService.isMatchedByConfig(a,n.config.parsedCommandLine,e))return void(d.languageServiceEnabled&&d.projectService.watchWildcards(a,n,d));const f=r?pge(r,t,e.fileName,u,o):d.projectService.findCreateOrReloadConfiguredProject(a,t,u,i,e.fileName,o);if(f)return c.set(f.project,s),f.sentConfigFileDiag&&_.add(f.project),g(f.project,d);un.assert(3===t)}function g(n,r){if(c.get(n)===t)return;c.set(n,t);const i=a?e:n.projectService.getScriptInfo(e.fileName),o=i&&n.containsScriptInfo(i);if(o&&!n.isSourceOfProjectReferenceRedirect(i.path))return p=r,u=n;!d&&a&&o&&(f=r,d=n)}}tryFindDefaultConfiguredProjectAndLoadAncestorsForOpenScriptInfo(e,t,n,r){const i=1===t,o=this.tryFindDefaultConfiguredProjectForOpenScriptInfo(e,t,i,n);if(!o)return;const{defaultProject:a,tsconfigProject:s,seenProjects:c}=o;return a&&uge(e,s,e=>{c.set(e.project,t)},t,`Creating project possibly referencing default composite project ${a.getProjectName()} of open file ${e.fileName}`,i,n,!0,r),o}loadAncestorProjectTree(e){e??(e=new Set(J(this.configuredProjects.entries(),([e,t])=>t.initialLoadPending?void 0:e)));const t=new Set,n=Oe(this.configuredProjects.values());for(const r of n)fge(r,t=>e.has(t))&&vge(r),this.ensureProjectChildren(r,e,t)}ensureProjectChildren(e,t,n){var r;if(!q(n,e.canonicalConfigFilePath))return;if(e.getCompilerOptions().disableReferencedProjectLoad)return;const i=null==(r=e.getCurrentProgram())?void 0:r.getResolvedProjectReferences();if(i)for(const r of i){if(!r)continue;const i=IC(r.references,e=>t.has(e.sourceFile.path)?e:void 0);if(!i)continue;const o=jfe(r.sourceFile.fileName),a=this.findConfiguredProjectByProjectName(o)??this.createConfiguredProject(o,`Creating project referenced by : ${e.projectName} as it references project ${i.sourceFile.fileName}`);vge(a),this.ensureProjectChildren(a,t,n)}}cleanupConfiguredProjects(e,t,n){this.getOrphanConfiguredProjects(e,n,t).forEach(e=>this.removeProject(e))}cleanupProjectsAndScriptInfos(e,t,n){this.cleanupConfiguredProjects(e,n,t);for(const e of this.inferredProjects.slice())e.isOrphan()&&this.removeProject(e);this.removeOrphanScriptInfos()}tryInvokeWildCardDirectories(e){this.configFileExistenceInfoCache.forEach((t,n)=>{var r,i;(null==(r=t.config)?void 0:r.parsedCommandLine)&&!T(t.config.parsedCommandLine.fileNames,e.fileName,this.host.useCaseSensitiveFileNames?ht:gt)&&(null==(i=t.config.watchedDirectories)||i.forEach((r,i)=>{ea(i,e.fileName,!this.host.useCaseSensitiveFileNames)&&(this.logger.info(`Invoking ${n}:: wildcard for open scriptInfo:: ${e.fileName}`),this.onWildCardDirectoryWatcherInvoke(i,n,t.config,r.watcher,e.fileName))}))})}openClientFileWithNormalizedPath(e,t,n,r,i){const o=this.getScriptInfoForPath(Mfe(e,i?this.getNormalizedAbsolutePath(i):this.currentDirectory,this.toCanonicalFileName)),a=this.getOrCreateOpenScriptInfo(e,t,n,r,i);o||!a||a.isDynamic||this.tryInvokeWildCardDirectories(a);const{retainProjects:s,...c}=this.assignProjectToOpenedScriptInfo(a);return this.cleanupProjectsAndScriptInfos(s,new Set([a.path]),void 0),this.telemetryOnOpenFile(a),this.printProjects(),c}getOrphanConfiguredProjects(e,t,n){const r=new Set(this.configuredProjects.values()),i=e=>{!e.originalConfiguredProjects||!Cme(e)&&e.isOrphan()||e.originalConfiguredProjects.forEach((e,t)=>{const n=this.getConfiguredProjectByCanonicalConfigFilePath(t);return n&&s(n)})};return null==e||e.forEach((e,t)=>s(t)),r.size?(this.inferredProjects.forEach(i),this.externalProjects.forEach(i),this.externalProjectToConfiguredProjectMap.forEach((e,t)=>{(null==n?void 0:n.has(t))||e.forEach(s)}),r.size?(rd(this.openFiles,(e,n)=>{if(null==t?void 0:t.has(n))return;const i=this.getScriptInfoForPath(n);if(b(i.containingProjects,wme))return;const o=this.tryFindDefaultConfiguredProjectAndLoadAncestorsForOpenScriptInfo(i,1);return(null==o?void 0:o.defaultProject)&&(null==o||o.seenProjects.forEach((e,t)=>s(t)),!r.size)?r:void 0}),r.size?(rd(this.configuredProjects,e=>{if(r.has(e)&&(a(e)||gge(e,o))&&(s(e),!r.size))return r}),r):r):r):r;function o(e){return!r.has(e)||a(e)}function a(e){var t,n;return(e.deferredClose||e.projectService.hasPendingProjectUpdate(e))&&!!(null==(n=null==(t=e.projectService.configFileExistenceInfoCache.get(e.canonicalConfigFilePath))?void 0:t.openFilesImpactedByConfigFile)?void 0:n.size)}function s(e){r.delete(e)&&(i(e),gge(e,s))}}removeOrphanScriptInfos(){const e=new Map(this.filenameToScriptInfo);this.filenameToScriptInfo.forEach(t=>{if(!t.deferredDelete){if(!t.isScriptOpen()&&t.isOrphan()&&!lme(t)&&!cme(t)){if(!t.sourceMapFilePath)return;let e;if(Ze(t.sourceMapFilePath)){const n=this.filenameToScriptInfo.get(t.sourceMapFilePath);e=null==n?void 0:n.sourceInfos}else e=t.sourceMapFilePath.sourceInfos;if(!e)return;if(!id(e,e=>{const t=this.getScriptInfoForPath(e);return!!t&&(t.isScriptOpen()||!t.isOrphan())}))return}if(e.delete(t.path),t.sourceMapFilePath){let n;if(Ze(t.sourceMapFilePath)){const r=this.filenameToScriptInfo.get(t.sourceMapFilePath);(null==r?void 0:r.deferredDelete)?t.sourceMapFilePath={watcher:this.addMissingSourceMapFile(r.fileName,t.path),sourceInfos:r.sourceInfos}:e.delete(t.sourceMapFilePath),n=null==r?void 0:r.sourceInfos}else n=t.sourceMapFilePath.sourceInfos;n&&n.forEach((t,n)=>e.delete(n))}}}),e.forEach(e=>this.deleteScriptInfo(e))}telemetryOnOpenFile(e){if(0!==this.serverMode||!this.eventHandler||!e.isJavaScript()||!bx(this.allJsFilesForOpenFileTelemetry,e.path))return;const t=this.ensureDefaultProjectForFile(e);if(!t.languageServiceEnabled)return;const n=t.getSourceFile(e.path),r=!!n&&!!n.checkJsDirective;this.eventHandler({eventName:Rme,data:{info:{checkJs:r}}})}closeClientFile(e,t){const n=this.getScriptInfoForNormalizedPath(jfe(e)),r=!!n&&this.closeOpenFile(n,t);return t||this.printProjects(),r}collectChanges(e,t,n,r){for(const i of t){const t=b(e,e=>e.projectName===i.getProjectName());r.push(i.getChangesSinceVersion(t&&t.version,n))}}synchronizeProjectList(e,t){const n=[];return this.collectChanges(e,this.externalProjects,t,n),this.collectChanges(e,J(this.configuredProjects.values(),e=>e.deferredClose?void 0:e),t,n),this.collectChanges(e,this.inferredProjects,t,n),n}applyChangesInOpenFiles(e,t,n){let r,i,o,a=!1;if(e)for(const t of e){(r??(r=[])).push(this.getScriptInfoForPath(Mfe(jfe(t.fileName),t.projectRootPath?this.getNormalizedAbsolutePath(t.projectRootPath):this.currentDirectory,this.toCanonicalFileName)));const e=this.getOrCreateOpenScriptInfo(jfe(t.fileName),t.content,Yme(t.scriptKind),t.hasMixedContent,t.projectRootPath?jfe(t.projectRootPath):void 0);(i||(i=[])).push(e)}if(t)for(const e of t){const t=this.getScriptInfo(e.fileName);un.assert(!!t),this.applyChangesToFile(t,e.changes)}if(n)for(const e of n)a=this.closeClientFile(e,!0)||a;d(r,(e,t)=>e||!i[t]||i[t].isDynamic?void 0:this.tryInvokeWildCardDirectories(i[t])),null==i||i.forEach(e=>{var t;return null==(t=this.assignProjectToOpenedScriptInfo(e).retainProjects)?void 0:t.forEach((e,t)=>(o??(o=new Map)).set(t,e))}),a&&this.assignOrphanScriptInfosToInferredProject(),i?(this.cleanupProjectsAndScriptInfos(o,new Set(i.map(e=>e.path)),void 0),i.forEach(e=>this.telemetryOnOpenFile(e)),this.printProjects()):u(n)&&this.printProjects()}applyChangesToFile(e,t){for(const n of t)e.editContent(n.span.start,n.span.start+n.span.length,n.newText)}closeExternalProject(e,t){const n=jfe(e);if(this.externalProjectToConfiguredProjectMap.get(n))this.externalProjectToConfiguredProjectMap.delete(n);else{const t=this.findExternalProjectByProjectName(e);t&&this.removeProject(t)}t&&(this.cleanupConfiguredProjects(),this.printProjects())}openExternalProjects(e){const t=new Set(this.externalProjects.map(e=>e.getProjectName()));this.externalProjectToConfiguredProjectMap.forEach((e,n)=>t.add(n));for(const n of e)this.openExternalProject(n,!1),t.delete(n.projectFileName);t.forEach(e=>this.closeExternalProject(e,!1)),this.cleanupConfiguredProjects(),this.printProjects()}static escapeFilenameForRegex(e){return e.replace(this.filenameEscapeRegexp,"\\$&")}resetSafeList(){this.safelist=Hme}applySafeList(e){const t=e.typeAcquisition;un.assert(!!t,"proj.typeAcquisition should be set by now");const n=this.applySafeListWorker(e,e.rootFiles,t);return(null==n?void 0:n.excludedFiles)??[]}applySafeListWorker(t,n,r){if(!1===r.enable||r.disableFilenameBasedTypeAcquisition)return;const i=r.include||(r.include=[]),o=[],a=n.map(e=>Oo(e.fileName));for(const t of Object.keys(this.safelist)){const n=this.safelist[t];for(const r of a)if(n.match.test(r)){if(this.logger.info(`Excluding files based on rule ${t} matching file '${r}'`),n.types)for(const e of n.types)i.includes(e)||i.push(e);if(n.exclude)for(const i of n.exclude){const a=r.replace(n.match,(...n)=>i.map(r=>"number"==typeof r?Ze(n[r])?e.escapeFilenameForRegex(n[r]):(this.logger.info(`Incorrect RegExp specification in safelist rule ${t} - not enough groups`),"\\*"):r).join(""));o.includes(a)||o.push(a)}else{const t=e.escapeFilenameForRegex(r);o.includes(t)||o.push(t)}}}const s=o.map(e=>new RegExp(e,"i"));let c,l;for(let e=0;et.test(a[e])))_(e);else{if(r.enable){const t=Fo(_t(a[e]));if(ko(t,"js")){const n=Jt(US(t)),r=this.legacySafelist.get(n);if(void 0!==r){this.logger.info(`Excluded '${a[e]}' because it matched ${n} from the legacy safelist`),_(e),i.includes(r)||i.push(r);continue}}}/^.+[.-]min\.js$/.test(a[e])?_(e):null==c||c.push(n[e])}return l?{rootFiles:c,excludedFiles:l}:void 0;function _(e){l||(un.assert(!c),c=n.slice(0,e),l=[]),l.push(a[e])}}openExternalProject(e,t){const n=this.findExternalProjectByProjectName(e.projectFileName);let r,i=[];for(const t of e.rootFiles){const n=jfe(t.fileName);if(Hfe(n)){if(0===this.serverMode&&this.host.fileExists(n)){let t=this.findConfiguredProjectByProjectName(n);t||(t=this.createConfiguredProject(n,`Creating configured project in external project: ${e.projectFileName}`),this.getHostPreferences().lazyConfiguredProjectsFromExternalProject||t.updateGraph()),(r??(r=new Set)).add(t),un.assert(!t.isClosed())}}else i.push(t)}if(r)this.externalProjectToConfiguredProjectMap.set(e.projectFileName,r),n&&this.removeProject(n);else{this.externalProjectToConfiguredProjectMap.delete(e.projectFileName);const t=e.typeAcquisition||{};t.include=t.include||[],t.exclude=t.exclude||[],void 0===t.enable&&(t.enable=fme(i.map(e=>e.fileName)));const r=this.applySafeListWorker(e,i,t),o=(null==r?void 0:r.excludedFiles)??[];if(i=(null==r?void 0:r.rootFiles)??i,n){n.excludedFiles=o;const r=Gme(e.options),a=Xme(e.options,n.getCurrentDirectory()),s=this.getFilenameForExceededTotalSizeLimitForNonTsFiles(e.projectFileName,r,i,nge);s?n.disableLanguageService(s):n.enableLanguageService(),n.setProjectErrors(null==a?void 0:a.errors),this.updateRootAndOptionsOfNonInferredProject(n,i,nge,r,t,e.options.compileOnSave,null==a?void 0:a.watchOptions),n.updateGraph()}else this.createExternalProject(e.projectFileName,i,e.options,t,o).updateGraph()}t&&(this.cleanupConfiguredProjects(r,new Set([e.projectFileName])),this.printProjects())}hasDeferredExtension(){for(const e of this.hostConfiguration.extraFileExtensions)if(7===e.scriptKind)return!0;return!1}requestEnablePlugin(e,t,n){if(this.host.importPlugin||this.host.require)if(this.logger.info(`Enabling plugin ${t.name} from candidate paths: ${n.join(",")}`),!t.name||Cs(t.name)||/[\\/]\.\.?(?:$|[\\/])/.test(t.name))this.logger.info(`Skipped loading plugin ${t.name||JSON.stringify(t)} because only package name is allowed plugin name`);else{if(this.host.importPlugin){const r=hme.importServicePluginAsync(t,n,this.host,e=>this.logger.info(e));this.pendingPluginEnablements??(this.pendingPluginEnablements=new Map);let i=this.pendingPluginEnablements.get(e);return i||this.pendingPluginEnablements.set(e,i=[]),void i.push(r)}this.endEnablePlugin(e,hme.importServicePluginSync(t,n,this.host,e=>this.logger.info(e)))}else this.logger.info("Plugins were requested but not running in environment that supports 'require'. Nothing will be loaded")}endEnablePlugin(e,{pluginConfigEntry:t,resolvedModule:n,errorLogs:r}){var i;if(n){const r=null==(i=this.currentPluginConfigOverrides)?void 0:i.get(t.name);if(r){const e=t.name;(t=r).name=e}e.enableProxy(n,t)}else d(r,e=>this.logger.info(e)),this.logger.info(`Couldn't find ${t.name}`)}hasNewPluginEnablementRequests(){return!!this.pendingPluginEnablements}hasPendingPluginEnablements(){return!!this.currentPluginEnablementPromise}async waitForPendingPlugins(){for(;this.currentPluginEnablementPromise;)await this.currentPluginEnablementPromise}enableRequestedPlugins(){this.pendingPluginEnablements&&this.enableRequestedPluginsAsync()}async enableRequestedPluginsAsync(){if(this.currentPluginEnablementPromise&&await this.waitForPendingPlugins(),!this.pendingPluginEnablements)return;const e=Oe(this.pendingPluginEnablements.entries());this.pendingPluginEnablements=void 0,this.currentPluginEnablementPromise=this.enableRequestedPluginsWorker(e),await this.currentPluginEnablementPromise}async enableRequestedPluginsWorker(e){un.assert(void 0===this.currentPluginEnablementPromise);let t=!1;await Promise.all(E(e,async([e,n])=>{const r=await Promise.all(n);if(e.isClosed()||Dme(e))this.logger.info(`Cancelling plugin enabling for ${e.getProjectName()} as it is ${e.isClosed()?"closed":"deferred close"}`);else{t=!0;for(const t of r)this.endEnablePlugin(e,t);this.delayUpdateProjectGraph(e)}})),this.currentPluginEnablementPromise=void 0,t&&this.sendProjectsUpdatedInBackgroundEvent()}configurePlugin(e){this.forEachEnabledProject(t=>t.onPluginConfigurationChanged(e.pluginName,e.configuration)),this.currentPluginConfigOverrides=this.currentPluginConfigOverrides||new Map,this.currentPluginConfigOverrides.set(e.pluginName,e.configuration)}getPackageJsonsVisibleToFile(e,t,n){const r=this.packageJsonCache,i=n&&this.toPath(n),o=[],a=e=>{switch(r.directoryHasPackageJson(e)){case 3:return r.searchDirectoryAndAncestors(e,t),a(e);case-1:const n=jo(e,"package.json");this.watchPackageJsonFile(n,this.toPath(n),t);const i=r.getInDirectory(e);i&&o.push(i)}if(i&&i===e)return!0};return TR(t,Do(e),a),o}getNearestAncestorDirectoryWithPackageJson(e,t){return TR(t,e,e=>{switch(this.packageJsonCache.directoryHasPackageJson(e)){case-1:return e;case 0:return;case 3:return this.host.fileExists(jo(e,"package.json"))?e:void 0}})}watchPackageJsonFile(e,t,n){un.assert(void 0!==n);let r=(this.packageJsonFilesMap??(this.packageJsonFilesMap=new Map)).get(t);if(!r){let n=this.watchFactory.watchFile(e,(e,n)=>{switch(n){case 0:case 1:this.packageJsonCache.addOrUpdate(e,t),this.onPackageJsonChange(r);break;case 2:this.packageJsonCache.delete(t),this.onPackageJsonChange(r),r.projects.clear(),r.close()}},250,this.hostConfiguration.watchOptions,F$.PackageJson);r={projects:new Set,close:()=>{var e;!r.projects.size&&n&&(n.close(),n=void 0,null==(e=this.packageJsonFilesMap)||e.delete(t),this.packageJsonCache.invalidate(t))}},this.packageJsonFilesMap.set(t,r)}r.projects.add(n),(n.packageJsonWatches??(n.packageJsonWatches=new Set)).add(r)}onPackageJsonChange(e){e.projects.forEach(e=>{var t;return null==(t=e.onPackageJsonChange)?void 0:t.call(e)})}includePackageJsonAutoImports(){switch(this.hostConfiguration.preferences.includePackageJsonAutoImports){case"on":return 1;case"off":return 0;default:return 2}}getIncompleteCompletionsCache(){return this.incompleteCompletionsCache||(this.incompleteCompletionsCache=function(){let e;return{get:()=>e,set(t){e=t},clear(){e=void 0}}}())}};Dge.filenameEscapeRegexp=/[-/\\^$*+?.()|[\]{}]/g;var Fge=Dge;function Ege(e){return void 0!==e.kind}function Pge(e){e.print(!1,!1,!1)}function Age(e){let t,n,r;const i={get(e,t,i,o){if(n&&r===a(e,i,o))return n.get(t)},set(n,r,i,a,c,l,_){if(o(n,i,a).set(r,s(c,l,_,void 0,!1)),_)for(const n of l)if(n.isInNodeModules){const r=n.path.substring(0,n.path.indexOf(KM)+KM.length-1),i=e.toPath(r);(null==t?void 0:t.has(i))||(t||(t=new Map)).set(i,e.watchNodeModulesForPackageJsonChanges(r))}},setModulePaths(e,t,n,r,i){const a=o(e,n,r),c=a.get(t);c?c.modulePaths=i:a.set(t,s(void 0,i,void 0,void 0,void 0))},setBlockedByPackageJsonDependencies(e,t,n,r,i,a){const c=o(e,n,r),l=c.get(t);l?(l.isBlockedByPackageJsonDependencies=a,l.packageName=i):c.set(t,s(void 0,void 0,void 0,i,a))},clear(){null==t||t.forEach(nx),null==n||n.clear(),null==t||t.clear(),r=void 0},count:()=>n?n.size:0};return un.isDebugging&&Object.defineProperty(i,"__cache",{get:()=>n}),i;function o(e,t,o){const s=a(e,t,o);return n&&r!==s&&i.clear(),r=s,n||(n=new Map)}function a(e,t,n){return`${e},${t.importModuleSpecifierEnding},${t.importModuleSpecifierPreference},${n.overrideImportMode}`}function s(e,t,n,r,i){return{kind:e,modulePaths:t,moduleSpecifiers:n,packageName:r,isBlockedByPackageJsonDependencies:i}}}function Ige(e){const t=new Map,n=new Map;return{addOrUpdate:r,invalidate:function(e){t.delete(e),n.delete(Do(e))},delete:e=>{t.delete(e),n.set(Do(e),!0)},getInDirectory:n=>t.get(e.toPath(jo(n,"package.json")))||void 0,directoryHasPackageJson:t=>i(e.toPath(t)),searchDirectoryAndAncestors:(t,o)=>{TR(o,t,t=>{const o=e.toPath(t);if(3!==i(o))return!0;const a=jo(t,"package.json");SZ(e,a)?r(a,jo(o,"package.json")):n.set(o,!0)})}};function r(r,i){const o=un.checkDefined(FZ(r,e.host));t.set(i,o),n.delete(Do(i))}function i(e){return t.has(jo(e,"package.json"))?-1:n.has(e)?0:3}}var Oge={isCancellationRequested:()=>!1,setRequest:()=>{},resetRequest:()=>{}};function Lge(e,t){if((Tme(e)||wme(e))&&e.isJsOnlyProject()){const n=e.getScriptInfoForNormalizedPath(t);return n&&!n.isJavaScript()}return!1}function jge(e,t,n){const r=t.getScriptInfoForNormalizedPath(e);return{start:r.positionToLineOffset(n.start),end:r.positionToLineOffset(n.start+n.length),text:cV(n.messageText,"\n"),code:n.code,category:ci(n),reportsUnnecessary:n.reportsUnnecessary,reportsDeprecated:n.reportsDeprecated,source:n.source,relatedInformation:E(n.relatedInformation,Mge)}}function Mge(e){return e.file?{span:{start:Rge(za(e.file,e.start)),end:Rge(za(e.file,e.start+e.length)),file:e.file.fileName},message:cV(e.messageText,"\n"),category:ci(e),code:e.code}:{message:cV(e.messageText,"\n"),category:ci(e),code:e.code}}function Rge(e){return{line:e.line+1,offset:e.character+1}}function Bge(e,t){const n=e.file&&Rge(za(e.file,e.start)),r=e.file&&Rge(za(e.file,e.start+e.length)),i=cV(e.messageText,"\n"),{code:o,source:a}=e,s={start:n,end:r,text:i,code:o,category:ci(e),reportsUnnecessary:e.reportsUnnecessary,reportsDeprecated:e.reportsDeprecated,source:a,relatedInformation:E(e.relatedInformation,Mge)};return t?{...s,fileName:e.file&&e.file.fileName}:s}var Jge=Gfe;function zge(e,t,n,r){const i=t.hasLevel(3),o=JSON.stringify(e);return i&&t.info(`${e.type}:${aG(e)}`),`Content-Length: ${1+n(o,"utf8")}\r\n\r\n${o}${r}`}var qge=class{constructor(e){this.operationHost=e}startNew(e){this.complete(),this.requestId=this.operationHost.getCurrentRequestId(),this.executeAction(e)}complete(){void 0!==this.requestId&&(this.operationHost.sendRequestCompletedEvent(this.requestId,this.performanceData),this.requestId=void 0),this.setTimerHandle(void 0),this.setImmediateId(void 0),this.performanceData=void 0}immediate(e,t){const n=this.requestId;un.assert(n===this.operationHost.getCurrentRequestId(),"immediate: incorrect request id"),this.setImmediateId(this.operationHost.getServerHost().setImmediate(()=>{this.immediateId=void 0,this.operationHost.executeWithRequestId(n,()=>this.executeAction(t),this.performanceData)},e))}delay(e,t,n){const r=this.requestId;un.assert(r===this.operationHost.getCurrentRequestId(),"delay: incorrect request id"),this.setTimerHandle(this.operationHost.getServerHost().setTimeout(()=>{this.timerHandle=void 0,this.operationHost.executeWithRequestId(r,()=>this.executeAction(n),this.performanceData)},t,e))}executeAction(e){var t,n,r,i,o,a;let s=!1;try{this.operationHost.isCancellationRequested()?(s=!0,null==(t=Hn)||t.instant(Hn.Phase.Session,"stepCanceled",{seq:this.requestId,early:!0})):(null==(n=Hn)||n.push(Hn.Phase.Session,"stepAction",{seq:this.requestId}),e(this),null==(r=Hn)||r.pop())}catch(e){null==(i=Hn)||i.popAll(),s=!0,e instanceof Cr?null==(o=Hn)||o.instant(Hn.Phase.Session,"stepCanceled",{seq:this.requestId}):(null==(a=Hn)||a.instant(Hn.Phase.Session,"stepError",{seq:this.requestId,message:e.message}),this.operationHost.logError(e,`delayed processing of request ${this.requestId}`))}this.performanceData=this.operationHost.getPerformanceData(),!s&&this.hasPendingWork()||this.complete()}setTimerHandle(e){void 0!==this.timerHandle&&this.operationHost.getServerHost().clearTimeout(this.timerHandle),this.timerHandle=e}setImmediateId(e){void 0!==this.immediateId&&this.operationHost.getServerHost().clearImmediate(this.immediateId),this.immediateId=e}hasPendingWork(){return!!this.timerHandle||!!this.immediateId}};function Uge(e,t){return{seq:0,type:"event",event:e,body:t}}function Vge(e){return Xe(({textSpan:e})=>e.start+100003*e.length,mY(e))}function Wge(e,t,n){const r=e.getLanguageService().getDefinitionAtPosition(t.fileName,t.pos,!1,n),i=r&&fe(r);return i&&!i.isLocal?{fileName:i.fileName,pos:i.textSpan.start}:void 0}function $ge(e,t,n){for(const r of Qe(e)?e:e.projects)n(r,t);!Qe(e)&&e.symLinkedProjects&&e.symLinkedProjects.forEach((e,t)=>{for(const r of e)n(r,t)})}function Hge(e,t,n,r,i,o,a){const s=new Map,c=Ge();c.enqueue({project:t,location:n}),$ge(e,n.fileName,(e,t)=>{const r={fileName:t,pos:n.pos};c.enqueue({project:e,location:r})});const l=t.projectService,_=t.getCancellationToken(),u=dt(()=>t.isSourceOfProjectReferenceRedirect(r.fileName)?r:t.getLanguageService().getSourceMapper().tryGetGeneratedPosition(r)),d=dt(()=>t.isSourceOfProjectReferenceRedirect(r.fileName)?r:t.getLanguageService().getSourceMapper().tryGetSourcePosition(r)),p=new Set;e:for(;!c.isEmpty();){for(;!c.isEmpty();){if(_.isCancellationRequested())break e;const{project:e,location:t}=c.dequeue();if(s.has(e))continue;if(Xge(e,t))continue;if(vge(e),!e.containsFile(jfe(t.fileName)))continue;const n=f(e,t);s.set(e,n??Ife),p.add(Qge(e))}r&&(l.loadAncestorProjectTree(p),l.forEachEnabledProject(e=>{if(_.isCancellationRequested())return;if(s.has(e))return;const t=i(r,e,u,d);t&&c.enqueue({project:e,location:t})}))}return 1===s.size?he(s.values()):s;function f(e,t){const n=o(e,t);if(!n||!a)return n;for(const t of n)a(t,t=>{const n=l.getOriginalLocationEnsuringConfiguredProject(e,t);if(!n)return;const r=l.getScriptInfo(n.fileName);for(const e of r.containingProjects)e.isOrphan()||s.has(e)||c.enqueue({project:e,location:n});const i=l.getSymlinkedProjects(r);i&&i.forEach((e,t)=>{for(const r of e)r.isOrphan()||s.has(r)||c.enqueue({project:r,location:{fileName:t,pos:n.pos}})})});return n}}function Kge(e,t){if(t.containsFile(jfe(e.fileName))&&!Xge(t,e))return e}function Gge(e,t,n,r){const i=Kge(e,t);if(i)return i;const o=n();if(o&&t.containsFile(jfe(o.fileName)))return o;const a=r();return a&&t.containsFile(jfe(a.fileName))?a:void 0}function Xge(e,t){if(!t)return!1;const n=e.getLanguageService().getProgram();if(!n)return!1;const r=n.getSourceFile(t.fileName);return!!r&&r.resolvedPath!==r.path&&r.resolvedPath!==e.toPath(t.fileName)}function Qge(e){return Cme(e)?e.canonicalConfigFilePath:e.getProjectName()}function Yge({fileName:e,textSpan:t}){return{fileName:e,pos:t.start}}function Zge(e,t){return yY(e,t.getSourceMapper(),e=>t.projectService.fileExists(e))}function ehe(e,t){return vY(e,t.getSourceMapper(),e=>t.projectService.fileExists(e))}function the(e,t){return bY(e,t.getSourceMapper(),e=>t.projectService.fileExists(e))}var nhe=["openExternalProject","openExternalProjects","closeExternalProject","synchronizeProjectList","emit-output","compileOnSaveAffectedFileList","compileOnSaveEmitFile","compilerOptionsDiagnostics-full","encodedSemanticClassifications-full","semanticDiagnosticsSync","suggestionDiagnosticsSync","geterrForProject","reload","reloadProjects","getCodeFixes","getCodeFixes-full","getCombinedCodeFix","getCombinedCodeFix-full","applyCodeActionCommand","getSupportedCodeFixes","getApplicableRefactors","getMoveToRefactoringFileSuggestions","getEditsForRefactor","getEditsForRefactor-full","organizeImports","organizeImports-full","getEditsForFileRename","getEditsForFileRename-full","prepareCallHierarchy","provideCallHierarchyIncomingCalls","provideCallHierarchyOutgoingCalls","getPasteEdits","copilotRelated"],rhe=[...nhe,"definition","definition-full","definitionAndBoundSpan","definitionAndBoundSpan-full","typeDefinition","implementation","implementation-full","references","references-full","rename","renameLocations-full","rename-full","quickinfo","quickinfo-full","completionInfo","completions","completions-full","completionEntryDetails","completionEntryDetails-full","signatureHelp","signatureHelp-full","navto","navto-full","documentHighlights","documentHighlights-full","preparePasteEdits"],ihe=class e{constructor(e){this.changeSeq=0,this.regionDiagLineCountThreshold=500,this.handlers=new Map(Object.entries({status:()=>{const e={version:s};return this.requiredResponse(e)},openExternalProject:e=>(this.projectService.openExternalProject(e.arguments,!0),this.requiredResponse(!0)),openExternalProjects:e=>(this.projectService.openExternalProjects(e.arguments.projects),this.requiredResponse(!0)),closeExternalProject:e=>(this.projectService.closeExternalProject(e.arguments.projectFileName,!0),this.requiredResponse(!0)),synchronizeProjectList:e=>{const t=this.projectService.synchronizeProjectList(e.arguments.knownProjects,e.arguments.includeProjectReferenceRedirectInfo);if(!t.some(e=>e.projectErrors&&0!==e.projectErrors.length))return this.requiredResponse(t);const n=E(t,e=>e.projectErrors&&0!==e.projectErrors.length?{info:e.info,changes:e.changes,files:e.files,projectErrors:this.convertToDiagnosticsWithLinePosition(e.projectErrors,void 0)}:e);return this.requiredResponse(n)},updateOpen:e=>(this.changeSeq++,this.projectService.applyChangesInOpenFiles(e.arguments.openFiles&&P(e.arguments.openFiles,e=>({fileName:e.file,content:e.fileContent,scriptKind:e.scriptKindName,projectRootPath:e.projectRootPath})),e.arguments.changedFiles&&P(e.arguments.changedFiles,e=>({fileName:e.fileName,changes:J(ue(e.textChanges),t=>{const n=un.checkDefined(this.projectService.getScriptInfo(e.fileName)),r=n.lineOffsetToPosition(t.start.line,t.start.offset),i=n.lineOffsetToPosition(t.end.line,t.end.offset);return r>=0?{span:{start:r,length:i-r},newText:t.newText}:void 0})})),e.arguments.closedFiles),this.requiredResponse(!0)),applyChangedToOpenFiles:e=>(this.changeSeq++,this.projectService.applyChangesInOpenFiles(e.arguments.openFiles,e.arguments.changedFiles&&P(e.arguments.changedFiles,e=>({fileName:e.fileName,changes:ue(e.changes)})),e.arguments.closedFiles),this.requiredResponse(!0)),exit:()=>(this.exit(),this.notRequired(void 0)),definition:e=>this.requiredResponse(this.getDefinition(e.arguments,!0)),"definition-full":e=>this.requiredResponse(this.getDefinition(e.arguments,!1)),definitionAndBoundSpan:e=>this.requiredResponse(this.getDefinitionAndBoundSpan(e.arguments,!0)),"definitionAndBoundSpan-full":e=>this.requiredResponse(this.getDefinitionAndBoundSpan(e.arguments,!1)),findSourceDefinition:e=>this.requiredResponse(this.findSourceDefinition(e.arguments)),"emit-output":e=>this.requiredResponse(this.getEmitOutput(e.arguments)),typeDefinition:e=>this.requiredResponse(this.getTypeDefinition(e.arguments)),implementation:e=>this.requiredResponse(this.getImplementation(e.arguments,!0)),"implementation-full":e=>this.requiredResponse(this.getImplementation(e.arguments,!1)),references:e=>this.requiredResponse(this.getReferences(e.arguments,!0)),"references-full":e=>this.requiredResponse(this.getReferences(e.arguments,!1)),rename:e=>this.requiredResponse(this.getRenameLocations(e.arguments,!0)),"renameLocations-full":e=>this.requiredResponse(this.getRenameLocations(e.arguments,!1)),"rename-full":e=>this.requiredResponse(this.getRenameInfo(e.arguments)),open:e=>(this.openClientFile(jfe(e.arguments.file),e.arguments.fileContent,Zme(e.arguments.scriptKindName),e.arguments.projectRootPath?jfe(e.arguments.projectRootPath):void 0),this.notRequired(e)),quickinfo:e=>this.requiredResponse(this.getQuickInfoWorker(e.arguments,!0)),"quickinfo-full":e=>this.requiredResponse(this.getQuickInfoWorker(e.arguments,!1)),getOutliningSpans:e=>this.requiredResponse(this.getOutliningSpans(e.arguments,!0)),outliningSpans:e=>this.requiredResponse(this.getOutliningSpans(e.arguments,!1)),todoComments:e=>this.requiredResponse(this.getTodoComments(e.arguments)),indentation:e=>this.requiredResponse(this.getIndentation(e.arguments)),nameOrDottedNameSpan:e=>this.requiredResponse(this.getNameOrDottedNameSpan(e.arguments)),breakpointStatement:e=>this.requiredResponse(this.getBreakpointStatement(e.arguments)),braceCompletion:e=>this.requiredResponse(this.isValidBraceCompletion(e.arguments)),docCommentTemplate:e=>this.requiredResponse(this.getDocCommentTemplate(e.arguments)),getSpanOfEnclosingComment:e=>this.requiredResponse(this.getSpanOfEnclosingComment(e.arguments)),fileReferences:e=>this.requiredResponse(this.getFileReferences(e.arguments,!0)),"fileReferences-full":e=>this.requiredResponse(this.getFileReferences(e.arguments,!1)),format:e=>this.requiredResponse(this.getFormattingEditsForRange(e.arguments)),formatonkey:e=>this.requiredResponse(this.getFormattingEditsAfterKeystroke(e.arguments)),"format-full":e=>this.requiredResponse(this.getFormattingEditsForDocumentFull(e.arguments)),"formatonkey-full":e=>this.requiredResponse(this.getFormattingEditsAfterKeystrokeFull(e.arguments)),"formatRange-full":e=>this.requiredResponse(this.getFormattingEditsForRangeFull(e.arguments)),completionInfo:e=>this.requiredResponse(this.getCompletions(e.arguments,"completionInfo")),completions:e=>this.requiredResponse(this.getCompletions(e.arguments,"completions")),"completions-full":e=>this.requiredResponse(this.getCompletions(e.arguments,"completions-full")),completionEntryDetails:e=>this.requiredResponse(this.getCompletionEntryDetails(e.arguments,!1)),"completionEntryDetails-full":e=>this.requiredResponse(this.getCompletionEntryDetails(e.arguments,!0)),compileOnSaveAffectedFileList:e=>this.requiredResponse(this.getCompileOnSaveAffectedFileList(e.arguments)),compileOnSaveEmitFile:e=>this.requiredResponse(this.emitFile(e.arguments)),signatureHelp:e=>this.requiredResponse(this.getSignatureHelpItems(e.arguments,!0)),"signatureHelp-full":e=>this.requiredResponse(this.getSignatureHelpItems(e.arguments,!1)),"compilerOptionsDiagnostics-full":e=>this.requiredResponse(this.getCompilerOptionsDiagnostics(e.arguments)),"encodedSyntacticClassifications-full":e=>this.requiredResponse(this.getEncodedSyntacticClassifications(e.arguments)),"encodedSemanticClassifications-full":e=>this.requiredResponse(this.getEncodedSemanticClassifications(e.arguments)),cleanup:()=>(this.cleanup(),this.requiredResponse(!0)),semanticDiagnosticsSync:e=>this.requiredResponse(this.getSemanticDiagnosticsSync(e.arguments)),syntacticDiagnosticsSync:e=>this.requiredResponse(this.getSyntacticDiagnosticsSync(e.arguments)),suggestionDiagnosticsSync:e=>this.requiredResponse(this.getSuggestionDiagnosticsSync(e.arguments)),geterr:e=>(this.errorCheck.startNew(t=>this.getDiagnostics(t,e.arguments.delay,e.arguments.files)),this.notRequired(void 0)),geterrForProject:e=>(this.errorCheck.startNew(t=>this.getDiagnosticsForProject(t,e.arguments.delay,e.arguments.file)),this.notRequired(void 0)),change:e=>(this.change(e.arguments),this.notRequired(e)),configure:e=>(this.projectService.setHostConfiguration(e.arguments),this.notRequired(e)),reload:e=>(this.reload(e.arguments),this.requiredResponse({reloadFinished:!0})),saveto:e=>{const t=e.arguments;return this.saveToTmp(t.file,t.tmpfile),this.notRequired(e)},close:e=>{const t=e.arguments;return this.closeClientFile(t.file),this.notRequired(e)},navto:e=>this.requiredResponse(this.getNavigateToItems(e.arguments,!0)),"navto-full":e=>this.requiredResponse(this.getNavigateToItems(e.arguments,!1)),brace:e=>this.requiredResponse(this.getBraceMatching(e.arguments,!0)),"brace-full":e=>this.requiredResponse(this.getBraceMatching(e.arguments,!1)),navbar:e=>this.requiredResponse(this.getNavigationBarItems(e.arguments,!0)),"navbar-full":e=>this.requiredResponse(this.getNavigationBarItems(e.arguments,!1)),navtree:e=>this.requiredResponse(this.getNavigationTree(e.arguments,!0)),"navtree-full":e=>this.requiredResponse(this.getNavigationTree(e.arguments,!1)),documentHighlights:e=>this.requiredResponse(this.getDocumentHighlights(e.arguments,!0)),"documentHighlights-full":e=>this.requiredResponse(this.getDocumentHighlights(e.arguments,!1)),compilerOptionsForInferredProjects:e=>(this.setCompilerOptionsForInferredProjects(e.arguments),this.requiredResponse(!0)),projectInfo:e=>this.requiredResponse(this.getProjectInfo(e.arguments)),reloadProjects:e=>(this.projectService.reloadProjects(),this.notRequired(e)),jsxClosingTag:e=>this.requiredResponse(this.getJsxClosingTag(e.arguments)),linkedEditingRange:e=>this.requiredResponse(this.getLinkedEditingRange(e.arguments)),getCodeFixes:e=>this.requiredResponse(this.getCodeFixes(e.arguments,!0)),"getCodeFixes-full":e=>this.requiredResponse(this.getCodeFixes(e.arguments,!1)),getCombinedCodeFix:e=>this.requiredResponse(this.getCombinedCodeFix(e.arguments,!0)),"getCombinedCodeFix-full":e=>this.requiredResponse(this.getCombinedCodeFix(e.arguments,!1)),applyCodeActionCommand:e=>this.requiredResponse(this.applyCodeActionCommand(e.arguments)),getSupportedCodeFixes:e=>this.requiredResponse(this.getSupportedCodeFixes(e.arguments)),getApplicableRefactors:e=>this.requiredResponse(this.getApplicableRefactors(e.arguments)),getEditsForRefactor:e=>this.requiredResponse(this.getEditsForRefactor(e.arguments,!0)),getMoveToRefactoringFileSuggestions:e=>this.requiredResponse(this.getMoveToRefactoringFileSuggestions(e.arguments)),preparePasteEdits:e=>this.requiredResponse(this.preparePasteEdits(e.arguments)),getPasteEdits:e=>this.requiredResponse(this.getPasteEdits(e.arguments)),"getEditsForRefactor-full":e=>this.requiredResponse(this.getEditsForRefactor(e.arguments,!1)),organizeImports:e=>this.requiredResponse(this.organizeImports(e.arguments,!0)),"organizeImports-full":e=>this.requiredResponse(this.organizeImports(e.arguments,!1)),getEditsForFileRename:e=>this.requiredResponse(this.getEditsForFileRename(e.arguments,!0)),"getEditsForFileRename-full":e=>this.requiredResponse(this.getEditsForFileRename(e.arguments,!1)),configurePlugin:e=>(this.configurePlugin(e.arguments),this.notRequired(e)),selectionRange:e=>this.requiredResponse(this.getSmartSelectionRange(e.arguments,!0)),"selectionRange-full":e=>this.requiredResponse(this.getSmartSelectionRange(e.arguments,!1)),prepareCallHierarchy:e=>this.requiredResponse(this.prepareCallHierarchy(e.arguments)),provideCallHierarchyIncomingCalls:e=>this.requiredResponse(this.provideCallHierarchyIncomingCalls(e.arguments)),provideCallHierarchyOutgoingCalls:e=>this.requiredResponse(this.provideCallHierarchyOutgoingCalls(e.arguments)),toggleLineComment:e=>this.requiredResponse(this.toggleLineComment(e.arguments,!0)),"toggleLineComment-full":e=>this.requiredResponse(this.toggleLineComment(e.arguments,!1)),toggleMultilineComment:e=>this.requiredResponse(this.toggleMultilineComment(e.arguments,!0)),"toggleMultilineComment-full":e=>this.requiredResponse(this.toggleMultilineComment(e.arguments,!1)),commentSelection:e=>this.requiredResponse(this.commentSelection(e.arguments,!0)),"commentSelection-full":e=>this.requiredResponse(this.commentSelection(e.arguments,!1)),uncommentSelection:e=>this.requiredResponse(this.uncommentSelection(e.arguments,!0)),"uncommentSelection-full":e=>this.requiredResponse(this.uncommentSelection(e.arguments,!1)),provideInlayHints:e=>this.requiredResponse(this.provideInlayHints(e.arguments)),mapCode:e=>this.requiredResponse(this.mapCode(e.arguments)),copilotRelated:()=>this.requiredResponse(this.getCopilotRelatedInfo())})),this.host=e.host,this.cancellationToken=e.cancellationToken,this.typingsInstaller=e.typingsInstaller||ige,this.byteLength=e.byteLength,this.hrtime=e.hrtime,this.logger=e.logger,this.canUseEvents=e.canUseEvents,this.suppressDiagnosticEvents=e.suppressDiagnosticEvents,this.noGetErrOnBackgroundUpdate=e.noGetErrOnBackgroundUpdate;const{throttleWaitMilliseconds:t}=e;this.eventHandler=this.canUseEvents?e.eventHandler||(e=>this.defaultEventHandler(e)):void 0;const n={executeWithRequestId:(e,t,n)=>this.executeWithRequestId(e,t,n),getCurrentRequestId:()=>this.currentRequestId,getPerformanceData:()=>this.performanceData,getServerHost:()=>this.host,logError:(e,t)=>this.logError(e,t),sendRequestCompletedEvent:(e,t)=>this.sendRequestCompletedEvent(e,t),isCancellationRequested:()=>this.cancellationToken.isCancellationRequested()};this.errorCheck=new qge(n);const r={host:this.host,logger:this.logger,cancellationToken:this.cancellationToken,useSingleInferredProject:e.useSingleInferredProject,useInferredProjectPerProjectRoot:e.useInferredProjectPerProjectRoot,typingsInstaller:this.typingsInstaller,throttleWaitMilliseconds:t,eventHandler:this.eventHandler,suppressDiagnosticEvents:this.suppressDiagnosticEvents,globalPlugins:e.globalPlugins,pluginProbeLocations:e.pluginProbeLocations,allowLocalPluginLoads:e.allowLocalPluginLoads,typesMapLocation:e.typesMapLocation,serverMode:e.serverMode,session:this,canUseWatchEvents:e.canUseWatchEvents,incrementalVerifier:e.incrementalVerifier};switch(this.projectService=new Fge(r),this.projectService.setPerformanceEventHandler(this.performanceEventHandler.bind(this)),this.gcTimer=new $fe(this.host,7e3,this.logger),this.projectService.serverMode){case 0:break;case 1:nhe.forEach(e=>this.handlers.set(e,e=>{throw new Error(`Request: ${e.command} not allowed in LanguageServiceMode.PartialSemantic`)}));break;case 2:rhe.forEach(e=>this.handlers.set(e,e=>{throw new Error(`Request: ${e.command} not allowed in LanguageServiceMode.Syntactic`)}));break;default:un.assertNever(this.projectService.serverMode)}}sendRequestCompletedEvent(e,t){this.event({request_seq:e,performanceData:t&&ohe(t)},"requestCompleted")}addPerformanceData(e,t){this.performanceData||(this.performanceData={}),this.performanceData[e]=(this.performanceData[e]??0)+t}addDiagnosticsPerformanceData(e,t,n){var r,i;this.performanceData||(this.performanceData={});let o=null==(r=this.performanceData.diagnosticsDuration)?void 0:r.get(e);o||((i=this.performanceData).diagnosticsDuration??(i.diagnosticsDuration=new Map)).set(e,o={}),o[t]=n}performanceEventHandler(e){switch(e.kind){case"UpdateGraph":this.addPerformanceData("updateGraphDurationMs",e.durationMs);break;case"CreatePackageJsonAutoImportProvider":this.addPerformanceData("createAutoImportProviderProgramDurationMs",e.durationMs)}}defaultEventHandler(e){switch(e.eventName){case Pme:this.projectsUpdatedInBackgroundEvent(e.data.openFiles);break;case Ame:this.event({projectName:e.data.project.getProjectName(),reason:e.data.reason},e.eventName);break;case Ime:this.event({projectName:e.data.project.getProjectName()},e.eventName);break;case Ome:case Bme:case Jme:case zme:this.event(e.data,e.eventName);break;case Lme:this.event({triggerFile:e.data.triggerFile,configFile:e.data.configFileName,diagnostics:E(e.data.diagnostics,e=>Bge(e,!0))},e.eventName);break;case jme:this.event({projectName:e.data.project.getProjectName(),languageServiceEnabled:e.data.languageServiceEnabled},e.eventName);break;case Mme:{const t="telemetry";this.event({telemetryEventName:e.eventName,payload:e.data},t);break}}}projectsUpdatedInBackgroundEvent(e){this.projectService.logger.info(`got projects updated in background ${e}`),e.length&&(this.suppressDiagnosticEvents||this.noGetErrOnBackgroundUpdate||(this.projectService.logger.info(`Queueing diagnostics update for ${e}`),this.errorCheck.startNew(t=>this.updateErrorCheck(t,e,100,!0))),this.event({openFiles:e},Pme))}logError(e,t){this.logErrorWorker(e,t)}logErrorWorker(e,t,n){let r="Exception on executing command "+t;if(e.message&&(r+=":\n"+oG(e.message),e.stack&&(r+="\n"+oG(e.stack))),this.logger.hasLevel(3)){if(n)try{const{file:e,project:t}=this.getFileAndProject(n),i=t.getScriptInfoForNormalizedPath(e);if(i){const e=zQ(i.getSnapshot());r+=`\n\nFile text of ${n.file}:${oG(e)}\n`}}catch{}if(e.ProgramFiles){r+=`\n\nProgram files: ${JSON.stringify(e.ProgramFiles)}\n`,r+="\n\nProjects::\n";let t=0;const n=e=>{r+=`\nProject '${e.projectName}' (${_me[e.projectKind]}) ${t}\n`,r+=e.filesToString(!0),r+="\n-----------------------------------------------\n",t++};this.projectService.externalProjects.forEach(n),this.projectService.configuredProjects.forEach(n),this.projectService.inferredProjects.forEach(n)}}this.logger.msg(r,"Err")}send(e){"event"!==e.type||this.canUseEvents?this.writeMessage(e):this.logger.hasLevel(3)&&this.logger.info(`Session does not support events: ignored event: ${aG(e)}`)}writeMessage(e){const t=zge(e,this.logger,this.byteLength,this.host.newLine);this.host.write(t)}event(e,t){this.send(Uge(t,e))}doOutput(e,t,n,r,i,o){const a={seq:0,type:"response",command:t,request_seq:n,success:r,performanceData:i&&ohe(i)};if(r){let t;if(Qe(e))a.body=e,t=e.metadata,delete e.metadata;else if("object"==typeof e)if(e.metadata){const{metadata:n,...r}=e;a.body=r,t=n}else a.body=e;else a.body=e;t&&(a.metadata=t)}else un.assert(void 0===e);o&&(a.message=o),this.send(a)}semanticCheck(e,t){var n,r;const i=Un();null==(n=Hn)||n.push(Hn.Phase.Session,"semanticCheck",{file:e,configFilePath:t.canonicalConfigFilePath});const o=Lge(t,e)?Ife:t.getLanguageService().getSemanticDiagnostics(e).filter(e=>!!e.file);this.sendDiagnosticsEvent(e,t,o,"semanticDiag",i),null==(r=Hn)||r.pop()}syntacticCheck(e,t){var n,r;const i=Un();null==(n=Hn)||n.push(Hn.Phase.Session,"syntacticCheck",{file:e,configFilePath:t.canonicalConfigFilePath}),this.sendDiagnosticsEvent(e,t,t.getLanguageService().getSyntacticDiagnostics(e),"syntaxDiag",i),null==(r=Hn)||r.pop()}suggestionCheck(e,t){var n,r;const i=Un();null==(n=Hn)||n.push(Hn.Phase.Session,"suggestionCheck",{file:e,configFilePath:t.canonicalConfigFilePath}),this.sendDiagnosticsEvent(e,t,t.getLanguageService().getSuggestionDiagnostics(e),"suggestionDiag",i),null==(r=Hn)||r.pop()}regionSemanticCheck(e,t,n){var r,i,o;const a=Un();let s;null==(r=Hn)||r.push(Hn.Phase.Session,"regionSemanticCheck",{file:e,configFilePath:t.canonicalConfigFilePath}),this.shouldDoRegionCheck(e)&&(s=t.getLanguageService().getRegionSemanticDiagnostics(e,n))?(this.sendDiagnosticsEvent(e,t,s.diagnostics,"regionSemanticDiag",a,s.spans),null==(o=Hn)||o.pop()):null==(i=Hn)||i.pop()}shouldDoRegionCheck(e){var t;const n=null==(t=this.projectService.getScriptInfoForNormalizedPath(e))?void 0:t.textStorage.getLineInfo().getLineCount();return!!(n&&n>=this.regionDiagLineCountThreshold)}sendDiagnosticsEvent(e,t,n,r,i,o){try{const a=un.checkDefined(t.getScriptInfo(e)),s=Un()-i,c={file:e,diagnostics:n.map(n=>jge(e,t,n)),spans:null==o?void 0:o.map(e=>ahe(e,a))};this.event(c,r),this.addDiagnosticsPerformanceData(e,r,s)}catch(e){this.logError(e,r)}}updateErrorCheck(e,t,n,r=!0){if(0===t.length)return;un.assert(!this.suppressDiagnosticEvents);const i=this.changeSeq,o=Math.min(n,200);let a=0;const s=()=>{if(a++,t.length>a)return e.delay("checkOne",o,l)},c=(t,n)=>{if(this.semanticCheck(t,n),this.changeSeq===i)return this.getPreferences(t).disableSuggestions?s():void e.immediate("suggestionCheck",()=>{this.suggestionCheck(t,n),s()})},l=()=>{if(this.changeSeq!==i)return;let n,o=t[a];if(Ze(o)?o=this.toPendingErrorCheck(o):"ranges"in o&&(n=o.ranges,o=this.toPendingErrorCheck(o.file)),!o)return s();const{fileName:l,project:_}=o;return vge(_),_.containsFile(l,r)&&(this.syntacticCheck(l,_),this.changeSeq===i)?0!==_.projectService.serverMode?s():n?e.immediate("regionSemanticCheck",()=>{const t=this.projectService.getScriptInfoForNormalizedPath(l);t&&this.regionSemanticCheck(l,_,n.map(e=>this.getRange({file:l,...e},t))),this.changeSeq===i&&e.immediate("semanticCheck",()=>c(l,_))}):void e.immediate("semanticCheck",()=>c(l,_)):void 0};t.length>a&&this.changeSeq===i&&e.delay("checkOne",n,l)}cleanProjects(e,t){if(t){this.logger.info(`cleaning ${e}`);for(const e of t)e.getLanguageService(!1).cleanupSemanticCache(),e.cleanupProgram()}}cleanup(){this.cleanProjects("inferred projects",this.projectService.inferredProjects),this.cleanProjects("configured projects",Oe(this.projectService.configuredProjects.values())),this.cleanProjects("external projects",this.projectService.externalProjects),this.host.gc&&(this.logger.info("host.gc()"),this.host.gc())}getEncodedSyntacticClassifications(e){const{file:t,languageService:n}=this.getFileAndLanguageServiceForSyntacticOperation(e);return n.getEncodedSyntacticClassifications(t,e)}getEncodedSemanticClassifications(e){const{file:t,project:n}=this.getFileAndProject(e),r="2020"===e.format?"2020":"original";return n.getLanguageService().getEncodedSemanticClassifications(t,e,r)}getProject(e){return void 0===e?void 0:this.projectService.findProject(e)}getConfigFileAndProject(e){const t=this.getProject(e.projectFileName),n=jfe(e.file);return{configFile:t&&t.hasConfigFile(n)?n:void 0,project:t}}getConfigFileDiagnostics(e,t,n){const r=N(K(t.getAllProjectErrors(),t.getLanguageService().getCompilerOptionsDiagnostics()),t=>!!t.file&&t.file.fileName===e);return n?this.convertToDiagnosticsWithLinePositionFromDiagnosticFile(r):E(r,e=>Bge(e,!1))}convertToDiagnosticsWithLinePositionFromDiagnosticFile(e){return e.map(e=>({message:cV(e.messageText,this.host.newLine),start:e.start,length:e.length,category:ci(e),code:e.code,source:e.source,startLocation:e.file&&Rge(za(e.file,e.start)),endLocation:e.file&&Rge(za(e.file,e.start+e.length)),reportsUnnecessary:e.reportsUnnecessary,reportsDeprecated:e.reportsDeprecated,relatedInformation:E(e.relatedInformation,Mge)}))}getCompilerOptionsDiagnostics(e){const t=this.getProject(e.projectFileName);return this.convertToDiagnosticsWithLinePosition(N(t.getLanguageService().getCompilerOptionsDiagnostics(),e=>!e.file),void 0)}convertToDiagnosticsWithLinePosition(e,t){return e.map(e=>({message:cV(e.messageText,this.host.newLine),start:e.start,length:e.length,category:ci(e),code:e.code,source:e.source,startLocation:t&&t.positionToLineOffset(e.start),endLocation:t&&t.positionToLineOffset(e.start+e.length),reportsUnnecessary:e.reportsUnnecessary,reportsDeprecated:e.reportsDeprecated,relatedInformation:E(e.relatedInformation,Mge)}))}getDiagnosticsWorker(e,t,n,r){const{project:i,file:o}=this.getFileAndProject(e);if(t&&Lge(i,o))return Ife;const a=i.getScriptInfoForNormalizedPath(o),s=n(i,o);return r?this.convertToDiagnosticsWithLinePosition(s,a):s.map(e=>jge(o,i,e))}getDefinition(t,n){const{file:r,project:i}=this.getFileAndProject(t),o=this.getPositionInFile(t,r),a=this.mapDefinitionInfoLocations(i.getLanguageService().getDefinitionAtPosition(r,o)||Ife,i);return n?this.mapDefinitionInfo(a,i):a.map(e.mapToOriginalLocation)}mapDefinitionInfoLocations(e,t){return e.map(e=>{const n=ehe(e,t);return n?{...n,containerKind:e.containerKind,containerName:e.containerName,kind:e.kind,name:e.name,failedAliasResolution:e.failedAliasResolution,...e.unverified&&{unverified:e.unverified}}:e})}getDefinitionAndBoundSpan(t,n){const{file:r,project:i}=this.getFileAndProject(t),o=this.getPositionInFile(t,r),a=un.checkDefined(i.getScriptInfo(r)),s=i.getLanguageService().getDefinitionAndBoundSpan(r,o);if(!s||!s.definitions)return{definitions:Ife,textSpan:void 0};const c=this.mapDefinitionInfoLocations(s.definitions,i),{textSpan:l}=s;return n?{definitions:this.mapDefinitionInfo(c,i),textSpan:ahe(l,a)}:{definitions:c.map(e.mapToOriginalLocation),textSpan:l}}findSourceDefinition(e){var t;const{file:n,project:r}=this.getFileAndProject(e),i=this.getPositionInFile(e,n),o=r.getLanguageService().getDefinitionAtPosition(n,i);let a=this.mapDefinitionInfoLocations(o||Ife,r).slice();if(0===this.projectService.serverMode&&(!$(a,e=>jfe(e.fileName)!==n&&!e.isAmbient)||$(a,e=>!!e.failedAliasResolution))){const e=Xe(e=>e.textSpan.start,mY(this.host.useCaseSensitiveFileNames));null==a||a.forEach(t=>e.add(t));const o=r.getNoDtsResolutionProject(n),_=o.getLanguageService(),u=null==(t=_.getDefinitionAtPosition(n,i,!0,!1))?void 0:t.filter(e=>jfe(e.fileName)!==n);if($(u))for(const t of u){if(t.unverified){const n=c(t,r.getLanguageService().getProgram(),_.getProgram());if($(n)){for(const t of n)e.add(t);continue}}e.add(t)}else{const t=a.filter(e=>jfe(e.fileName)!==n&&e.isAmbient);for(const a of $(t)?t:function(){const e=r.getLanguageService(),t=WX(e.getProgram().getSourceFile(n),i);return(ju(t)||aD(t))&&Sx(t.parent)&&Nx(t,r=>{var i;if(r===t)return;const o=null==(i=e.getDefinitionAtPosition(n,r.getStart(),!0,!1))?void 0:i.filter(e=>jfe(e.fileName)!==n&&e.isAmbient).map(e=>({fileName:e.fileName,name:qh(t)}));return $(o)?o:void 0})||Ife}()){const t=s(a.fileName,n,o);if(!t)continue;const r=this.projectService.getOrCreateScriptInfoNotOpenedByClient(t,o.currentDirectory,o.directoryStructureHost,!1);if(!r)continue;o.containsScriptInfo(r)||(o.addRoot(r),o.updateGraph());const i=_.getProgram(),c=un.checkDefined(i.getSourceFile(t));for(const t of l(a.name,c,i))e.add(t)}}a=Oe(e.values())}return a=a.filter(e=>!e.isAmbient&&!e.failedAliasResolution),this.mapDefinitionInfo(a,r);function s(e,t,n){var i,o,a;const s=UT(e);if(s&&e.lastIndexOf(KM)===s.topLevelNodeModulesIndex){const c=e.substring(0,s.packageRootIndex),l=null==(i=r.getModuleResolutionCache())?void 0:i.getPackageJsonInfoCache(),_=r.getCompilationSettings(),u=lR(Bo(c,r.getCurrentDirectory()),cR(l,r,_));if(!u)return;const d=aR(u,{moduleResolution:2},r,r.getModuleResolutionCache()),p=AR(IR(e.substring(s.topLevelPackageNameIndex+1,s.packageRootIndex))),f=r.toPath(e);if(d&&$(d,e=>r.toPath(e)===f))return null==(o=n.resolutionCache.resolveSingleModuleNameWithoutWatching(p,t).resolvedModule)?void 0:o.resolvedFileName;{const r=`${p}/${US(e.substring(s.packageRootIndex+1))}`;return null==(a=n.resolutionCache.resolveSingleModuleNameWithoutWatching(r,t).resolvedModule)?void 0:a.resolvedFileName}}}function c(e,t,r){var o;const a=r.getSourceFile(e.fileName);if(!a)return;const s=WX(t.getSourceFile(n),i),c=t.getTypeChecker().getSymbolAtLocation(s),_=c&&Hu(c,277);return _?l((null==(o=_.propertyName)?void 0:o.text)||_.name.text,a,r):void 0}function l(e,t,n){return B(gce.Core.getTopMostDeclarationNamesInFile(e,t),e=>{const t=n.getTypeChecker().getSymbolAtLocation(e),r=_h(e);if(t&&r)return rle.createDefinitionInfo(r,n.getTypeChecker(),t,r,!0)})}}getEmitOutput(e){const{file:t,project:n}=this.getFileAndProject(e);if(!n.shouldEmitFile(n.getScriptInfo(t)))return{emitSkipped:!0,outputFiles:[],diagnostics:[]};const r=n.getLanguageService().getEmitOutput(t);return e.richResponse?{...r,diagnostics:e.includeLinePosition?this.convertToDiagnosticsWithLinePositionFromDiagnosticFile(r.diagnostics):r.diagnostics.map(e=>Bge(e,!0))}:r}mapJSDocTagInfo(e,t,n){return e?e.map(e=>{var r;return{...e,text:n?this.mapDisplayParts(e.text,t):null==(r=e.text)?void 0:r.map(e=>e.text).join("")}}):[]}mapDisplayParts(e,t){return e?e.map(e=>"linkName"!==e.kind?e:{...e,target:this.toFileSpan(e.target.fileName,e.target.textSpan,t)}):[]}mapSignatureHelpItems(e,t,n){return e.map(e=>({...e,documentation:this.mapDisplayParts(e.documentation,t),parameters:e.parameters.map(e=>({...e,documentation:this.mapDisplayParts(e.documentation,t)})),tags:this.mapJSDocTagInfo(e.tags,t,n)}))}mapDefinitionInfo(e,t){return e.map(e=>({...this.toFileSpanWithContext(e.fileName,e.textSpan,e.contextSpan,t),...e.unverified&&{unverified:e.unverified}}))}static mapToOriginalLocation(e){return e.originalFileName?(un.assert(void 0!==e.originalTextSpan,"originalTextSpan should be present if originalFileName is"),{...e,fileName:e.originalFileName,textSpan:e.originalTextSpan,targetFileName:e.fileName,targetTextSpan:e.textSpan,contextSpan:e.originalContextSpan,targetContextSpan:e.contextSpan}):e}toFileSpan(e,t,n){const r=n.getLanguageService(),i=r.toLineColumnOffset(e,t.start),o=r.toLineColumnOffset(e,Fs(t));return{file:e,start:{line:i.line+1,offset:i.character+1},end:{line:o.line+1,offset:o.character+1}}}toFileSpanWithContext(e,t,n,r){const i=this.toFileSpan(e,t,r),o=n&&this.toFileSpan(e,n,r);return o?{...i,contextStart:o.start,contextEnd:o.end}:i}getTypeDefinition(e){const{file:t,project:n}=this.getFileAndProject(e),r=this.getPositionInFile(e,t),i=this.mapDefinitionInfoLocations(n.getLanguageService().getTypeDefinitionAtPosition(t,r)||Ife,n);return this.mapDefinitionInfo(i,n)}mapImplementationLocations(e,t){return e.map(e=>{const n=ehe(e,t);return n?{...n,kind:e.kind,displayParts:e.displayParts}:e})}getImplementation(t,n){const{file:r,project:i}=this.getFileAndProject(t),o=this.getPositionInFile(t,r),a=this.mapImplementationLocations(i.getLanguageService().getImplementationAtPosition(r,o)||Ife,i);return n?a.map(({fileName:e,textSpan:t,contextSpan:n})=>this.toFileSpanWithContext(e,t,n,i)):a.map(e.mapToOriginalLocation)}getSyntacticDiagnosticsSync(e){const{configFile:t}=this.getConfigFileAndProject(e);return t?Ife:this.getDiagnosticsWorker(e,!1,(e,t)=>e.getLanguageService().getSyntacticDiagnostics(t),!!e.includeLinePosition)}getSemanticDiagnosticsSync(e){const{configFile:t,project:n}=this.getConfigFileAndProject(e);return t?this.getConfigFileDiagnostics(t,n,!!e.includeLinePosition):this.getDiagnosticsWorker(e,!0,(e,t)=>e.getLanguageService().getSemanticDiagnostics(t).filter(e=>!!e.file),!!e.includeLinePosition)}getSuggestionDiagnosticsSync(e){const{configFile:t}=this.getConfigFileAndProject(e);return t?Ife:this.getDiagnosticsWorker(e,!0,(e,t)=>e.getLanguageService().getSuggestionDiagnostics(t),!!e.includeLinePosition)}getJsxClosingTag(e){const{file:t,languageService:n}=this.getFileAndLanguageServiceForSyntacticOperation(e),r=this.getPositionInFile(e,t),i=n.getJsxClosingTagAtPosition(t,r);return void 0===i?void 0:{newText:i.newText,caretOffset:0}}getLinkedEditingRange(e){const{file:t,languageService:n}=this.getFileAndLanguageServiceForSyntacticOperation(e),r=this.getPositionInFile(e,t),i=n.getLinkedEditingRangeAtPosition(t,r),o=this.projectService.getScriptInfoForNormalizedPath(t);if(void 0!==o&&void 0!==i)return function(e,t){const n=e.ranges.map(e=>({start:t.positionToLineOffset(e.start),end:t.positionToLineOffset(e.start+e.length)}));return e.wordPattern?{ranges:n,wordPattern:e.wordPattern}:{ranges:n}}(i,o)}getDocumentHighlights(e,t){const{file:n,project:r}=this.getFileAndProject(e),i=this.getPositionInFile(e,n),o=r.getLanguageService().getDocumentHighlights(n,i,e.filesToSearch);return o?t?o.map(({fileName:e,highlightSpans:t})=>{const n=r.getScriptInfo(e);return{file:e,highlightSpans:t.map(({textSpan:e,kind:t,contextSpan:r})=>({...she(e,r,n),kind:t}))}}):o:Ife}provideInlayHints(e){const{file:t,project:n}=this.getFileAndProject(e),r=this.projectService.getScriptInfoForNormalizedPath(t);return n.getLanguageService().provideInlayHints(t,e,this.getPreferences(t)).map(e=>{const{position:t,displayParts:n}=e;return{...e,position:r.positionToLineOffset(t),displayParts:null==n?void 0:n.map(({text:e,span:t,file:n})=>{if(t){un.assertIsDefined(n,"Target file should be defined together with its span.");const r=this.projectService.getScriptInfo(n);return{text:e,span:{start:r.positionToLineOffset(t.start),end:r.positionToLineOffset(t.start+t.length),file:n}}}return{text:e}})}})}mapCode(e){var t;const n=this.getHostFormatOptions(),r=this.getHostPreferences(),{file:i,languageService:o}=this.getFileAndLanguageServiceForSyntacticOperation(e),a=this.projectService.getScriptInfoForNormalizedPath(i),s=null==(t=e.mapping.focusLocations)?void 0:t.map(e=>e.map(e=>{const t=a.lineOffsetToPosition(e.start.line,e.start.offset);return{start:t,length:a.lineOffsetToPosition(e.end.line,e.end.offset)-t}})),c=o.mapCode(i,e.mapping.contents,s,n,r);return this.mapTextChangesToCodeEdits(c)}getCopilotRelatedInfo(){return{relatedFiles:[]}}setCompilerOptionsForInferredProjects(e){this.projectService.setCompilerOptionsForInferredProjects(e.options,e.projectRootPath)}getProjectInfo(e){return this.getProjectInfoWorker(e.file,e.projectFileName,e.needFileNameList,e.needDefaultConfiguredProjectInfo,!1)}getProjectInfoWorker(e,t,n,r,i){const{project:o}=this.getFileAndProjectWorker(e,t);return vge(o),{configFileName:o.getProjectName(),languageServiceDisabled:!o.languageServiceEnabled,fileNames:n?o.getFileNames(!1,i):void 0,configuredProjectInfo:r?this.getDefaultConfiguredProjectInfo(e):void 0}}getDefaultConfiguredProjectInfo(e){var t;const n=this.projectService.getScriptInfo(e);if(!n)return;const r=this.projectService.findDefaultConfiguredProjectWorker(n,3);if(!r)return;let i,o;return r.seenProjects.forEach((e,t)=>{t!==r.defaultProject&&(3!==e?(i??(i=[])).push(jfe(t.getConfigFilePath())):(o??(o=[])).push(jfe(t.getConfigFilePath())))}),null==(t=r.seenConfigs)||t.forEach(e=>(i??(i=[])).push(e)),{notMatchedByConfig:i,notInProject:o,defaultProject:r.defaultProject&&jfe(r.defaultProject.getConfigFilePath())}}getRenameInfo(e){const{file:t,project:n}=this.getFileAndProject(e),r=this.getPositionInFile(e,t),i=this.getPreferences(t);return n.getLanguageService().getRenameInfo(t,r,i)}getProjects(e,t,n){let r,i;if(e.projectFileName){const t=this.getProject(e.projectFileName);t&&(r=[t])}else{const o=t?this.projectService.getScriptInfoEnsuringProjectsUptoDate(e.file):this.projectService.getScriptInfo(e.file);if(!o)return n?Ife:(this.projectService.logErrorForScriptInfoNotFound(e.file),Efe.ThrowNoProject());t||this.projectService.ensureDefaultProjectForFile(o),r=o.containingProjects,i=this.projectService.getSymlinkedProjects(o)}return r=N(r,e=>e.languageServiceEnabled&&!e.isOrphan()),n||r&&r.length||i?i?{projects:r,symLinkedProjects:i}:r:(this.projectService.logErrorForScriptInfoNotFound(e.file??e.projectFileName),Efe.ThrowNoProject())}getDefaultProject(e){if(e.projectFileName){const t=this.getProject(e.projectFileName);if(t)return t;if(!e.file)return Efe.ThrowNoProject()}return this.projectService.getScriptInfo(e.file).getDefaultProject()}getRenameLocations(e,t){const n=jfe(e.file),r=this.getPositionInFile(e,n),i=this.getProjects(e),o=this.getDefaultProject(e),a=this.getPreferences(n),s=this.mapRenameInfo(o.getLanguageService().getRenameInfo(n,r,a),un.checkDefined(this.projectService.getScriptInfo(n)));if(!s.canRename)return t?{info:s,locs:[]}:[];const c=function(e,t,n,r,i,o,a){const s=Hge(e,t,n,Wge(t,n,!0),Gge,(e,t)=>e.getLanguageService().findRenameLocations(t.fileName,t.pos,r,i,o),(e,t)=>t(Yge(e)));if(Qe(s))return s;const c=[],l=Vge(a);return s.forEach((e,t)=>{for(const n of e)l.has(n)||Zge(Yge(n),t)||(c.push(n),l.add(n))}),c}(i,o,{fileName:e.file,pos:r},!!e.findInStrings,!!e.findInComments,a,this.host.useCaseSensitiveFileNames);return t?{info:s,locs:this.toSpanGroups(c)}:c}mapRenameInfo(e,t){if(e.canRename){const{canRename:n,fileToRename:r,displayName:i,fullDisplayName:o,kind:a,kindModifiers:s,triggerSpan:c}=e;return{canRename:n,fileToRename:r,displayName:i,fullDisplayName:o,kind:a,kindModifiers:s,triggerSpan:ahe(c,t)}}return e}toSpanGroups(e){const t=new Map;for(const{fileName:n,textSpan:r,contextSpan:i,originalContextSpan:o,originalTextSpan:a,originalFileName:s,...c}of e){let e=t.get(n);e||t.set(n,e={file:n,locs:[]});const o=un.checkDefined(this.projectService.getScriptInfo(n));e.locs.push({...she(r,i,o),...c})}return Oe(t.values())}getReferences(e,t){const n=jfe(e.file),r=this.getProjects(e),i=this.getPositionInFile(e,n),o=function(e,t,n,r,i){var o,a;const s=Hge(e,t,n,Wge(t,n,!1),Gge,(e,t)=>(i.info(`Finding references to ${t.fileName} position ${t.pos} in project ${e.getProjectName()}`),e.getLanguageService().findReferences(t.fileName,t.pos)),(e,t)=>{t(Yge(e.definition));for(const n of e.references)t(Yge(n))});if(Qe(s))return s;const c=s.get(t);if(void 0===(null==(a=null==(o=null==c?void 0:c[0])?void 0:o.references[0])?void 0:a.isDefinition))s.forEach(e=>{for(const t of e)for(const e of t.references)delete e.isDefinition});else{const e=Vge(r);for(const t of c)for(const n of t.references)if(n.isDefinition){e.add(n);break}const t=new Set;for(;;){let n=!1;if(s.forEach((r,i)=>{t.has(i)||i.getLanguageService().updateIsDefinitionOfReferencedSymbols(r,e)&&(t.add(i),n=!0)}),!n)break}s.forEach((e,n)=>{if(!t.has(n))for(const t of e)for(const e of t.references)e.isDefinition=!1})}const l=[],_=Vge(r);return s.forEach((e,t)=>{for(const n of e){const e=Zge(Yge(n.definition),t),i=void 0===e?n.definition:{...n.definition,textSpan:Ws(e.pos,n.definition.textSpan.length),fileName:e.fileName,contextSpan:the(n.definition,t)};let o=b(l,e=>fY(e.definition,i,r));o||(o={definition:i,references:[]},l.push(o));for(const e of n.references)_.has(e)||Zge(Yge(e),t)||(_.add(e),o.references.push(e))}}),l.filter(e=>0!==e.references.length)}(r,this.getDefaultProject(e),{fileName:e.file,pos:i},this.host.useCaseSensitiveFileNames,this.logger);if(!t)return o;const a=this.getPreferences(n),s=this.getDefaultProject(e),c=s.getScriptInfoForNormalizedPath(n),l=s.getLanguageService().getQuickInfoAtPosition(n,i),_=l?R8(l.displayParts):"",u=l&&l.textSpan,d=u?c.positionToLineOffset(u.start).offset:0,p=u?c.getSnapshot().getText(u.start,Fs(u)):"";return{refs:O(o,e=>e.references.map(e=>_he(this.projectService,e,a))),symbolName:p,symbolStartOffset:d,symbolDisplayString:_}}getFileReferences(e,t){const n=this.getProjects(e),r=jfe(e.file),i=this.getPreferences(r),o={fileName:r,pos:0},a=Hge(n,this.getDefaultProject(e),o,o,Kge,e=>(this.logger.info(`Finding references to file ${r} in project ${e.getProjectName()}`),e.getLanguageService().getFileReferences(r)));let s;if(Qe(a))s=a;else{s=[];const e=Vge(this.host.useCaseSensitiveFileNames);a.forEach(t=>{for(const n of t)e.has(n)||(s.push(n),e.add(n))})}return t?{refs:s.map(e=>_he(this.projectService,e,i)),symbolName:`"${e.file}"`}:s}openClientFile(e,t,n,r){this.projectService.openClientFileWithNormalizedPath(e,t,n,!1,r)}getPosition(e,t){return void 0!==e.position?e.position:t.lineOffsetToPosition(e.line,e.offset)}getPositionInFile(e,t){const n=this.projectService.getScriptInfoForNormalizedPath(t);return this.getPosition(e,n)}getFileAndProject(e){return this.getFileAndProjectWorker(e.file,e.projectFileName)}getFileAndLanguageServiceForSyntacticOperation(e){const{file:t,project:n}=this.getFileAndProject(e);return{file:t,languageService:n.getLanguageService(!1)}}getFileAndProjectWorker(e,t){const n=jfe(e);return{file:n,project:this.getProject(t)||this.projectService.ensureDefaultProjectForFile(n)}}getOutliningSpans(e,t){const{file:n,languageService:r}=this.getFileAndLanguageServiceForSyntacticOperation(e),i=r.getOutliningSpans(n);if(t){const e=this.projectService.getScriptInfoForNormalizedPath(n);return i.map(t=>({textSpan:ahe(t.textSpan,e),hintSpan:ahe(t.hintSpan,e),bannerText:t.bannerText,autoCollapse:t.autoCollapse,kind:t.kind}))}return i}getTodoComments(e){const{file:t,project:n}=this.getFileAndProject(e);return n.getLanguageService().getTodoComments(t,e.descriptors)}getDocCommentTemplate(e){const{file:t,languageService:n}=this.getFileAndLanguageServiceForSyntacticOperation(e),r=this.getPositionInFile(e,t);return n.getDocCommentTemplateAtPosition(t,r,this.getPreferences(t),this.getFormatOptions(t))}getSpanOfEnclosingComment(e){const{file:t,languageService:n}=this.getFileAndLanguageServiceForSyntacticOperation(e),r=e.onlyMultiLine,i=this.getPositionInFile(e,t);return n.getSpanOfEnclosingComment(t,i,r)}getIndentation(e){const{file:t,languageService:n}=this.getFileAndLanguageServiceForSyntacticOperation(e),r=this.getPositionInFile(e,t),i=e.options?Kme(e.options):this.getFormatOptions(t);return{position:r,indentation:n.getIndentationAtPosition(t,r,i)}}getBreakpointStatement(e){const{file:t,languageService:n}=this.getFileAndLanguageServiceForSyntacticOperation(e),r=this.getPositionInFile(e,t);return n.getBreakpointStatementAtPosition(t,r)}getNameOrDottedNameSpan(e){const{file:t,languageService:n}=this.getFileAndLanguageServiceForSyntacticOperation(e),r=this.getPositionInFile(e,t);return n.getNameOrDottedNameSpan(t,r,r)}isValidBraceCompletion(e){const{file:t,languageService:n}=this.getFileAndLanguageServiceForSyntacticOperation(e),r=this.getPositionInFile(e,t);return n.isValidBraceCompletionAtPosition(t,r,e.openingBrace.charCodeAt(0))}getQuickInfoWorker(e,t){const{file:n,project:r}=this.getFileAndProject(e),i=this.projectService.getScriptInfoForNormalizedPath(n),o=this.getPreferences(n),a=r.getLanguageService().getQuickInfoAtPosition(n,this.getPosition(e,i),o.maximumHoverLength,e.verbosityLevel);if(!a)return;const s=!!o.displayPartsForJSDoc;if(t){const e=R8(a.displayParts);return{kind:a.kind,kindModifiers:a.kindModifiers,start:i.positionToLineOffset(a.textSpan.start),end:i.positionToLineOffset(Fs(a.textSpan)),displayString:e,documentation:s?this.mapDisplayParts(a.documentation,r):R8(a.documentation),tags:this.mapJSDocTagInfo(a.tags,r,s),canIncreaseVerbosityLevel:a.canIncreaseVerbosityLevel}}return s?a:{...a,tags:this.mapJSDocTagInfo(a.tags,r,!1)}}getFormattingEditsForRange(e){const{file:t,languageService:n}=this.getFileAndLanguageServiceForSyntacticOperation(e),r=this.projectService.getScriptInfoForNormalizedPath(t),i=r.lineOffsetToPosition(e.line,e.offset),o=r.lineOffsetToPosition(e.endLine,e.endOffset),a=n.getFormattingEditsForRange(t,i,o,this.getFormatOptions(t));if(a)return a.map(e=>this.convertTextChangeToCodeEdit(e,r))}getFormattingEditsForRangeFull(e){const{file:t,languageService:n}=this.getFileAndLanguageServiceForSyntacticOperation(e),r=e.options?Kme(e.options):this.getFormatOptions(t);return n.getFormattingEditsForRange(t,e.position,e.endPosition,r)}getFormattingEditsForDocumentFull(e){const{file:t,languageService:n}=this.getFileAndLanguageServiceForSyntacticOperation(e),r=e.options?Kme(e.options):this.getFormatOptions(t);return n.getFormattingEditsForDocument(t,r)}getFormattingEditsAfterKeystrokeFull(e){const{file:t,languageService:n}=this.getFileAndLanguageServiceForSyntacticOperation(e),r=e.options?Kme(e.options):this.getFormatOptions(t);return n.getFormattingEditsAfterKeystroke(t,e.position,e.key,r)}getFormattingEditsAfterKeystroke(e){const{file:t,languageService:n}=this.getFileAndLanguageServiceForSyntacticOperation(e),r=this.projectService.getScriptInfoForNormalizedPath(t),i=r.lineOffsetToPosition(e.line,e.offset),o=this.getFormatOptions(t),a=n.getFormattingEditsAfterKeystroke(t,i,e.key,o);if("\n"===e.key&&(!a||0===a.length||function(e,t){return e.every(e=>Fs(e.span)({start:r.positionToLineOffset(e.span.start),end:r.positionToLineOffset(Fs(e.span)),newText:e.newText?e.newText:""}))}getCompletions(e,t){const{file:n,project:r}=this.getFileAndProject(e),i=this.projectService.getScriptInfoForNormalizedPath(n),o=this.getPosition(e,i),a=r.getLanguageService().getCompletionsAtPosition(n,o,{...ege(this.getPreferences(n)),triggerCharacter:e.triggerCharacter,triggerKind:e.triggerKind,includeExternalModuleExports:e.includeExternalModuleExports,includeInsertTextCompletions:e.includeInsertTextCompletions},r.projectService.getFormatCodeOptions(n));if(void 0===a)return;if("completions-full"===t)return a;const s=e.prefix||"",c=B(a.entries,e=>{if(a.isMemberCompletion||Gt(e.name.toLowerCase(),s.toLowerCase())){const t=e.replacementSpan?ahe(e.replacementSpan,i):void 0;return{...e,replacementSpan:t,hasAction:e.hasAction||void 0,symbol:void 0}}});return"completions"===t?(a.metadata&&(c.metadata=a.metadata),c):{...a,optionalReplacementSpan:a.optionalReplacementSpan&&ahe(a.optionalReplacementSpan,i),entries:c}}getCompletionEntryDetails(e,t){const{file:n,project:r}=this.getFileAndProject(e),i=this.projectService.getScriptInfoForNormalizedPath(n),o=this.getPosition(e,i),a=r.projectService.getFormatCodeOptions(n),s=!!this.getPreferences(n).displayPartsForJSDoc,c=B(e.entryNames,e=>{const{name:t,source:i,data:s}="string"==typeof e?{name:e,source:void 0,data:void 0}:e;return r.getLanguageService().getCompletionEntryDetails(n,o,t,a,i,this.getPreferences(n),s?nt(s,uhe):void 0)});return t?s?c:c.map(e=>({...e,tags:this.mapJSDocTagInfo(e.tags,r,!1)})):c.map(e=>({...e,codeActions:E(e.codeActions,e=>this.mapCodeAction(e)),documentation:this.mapDisplayParts(e.documentation,r),tags:this.mapJSDocTagInfo(e.tags,r,s)}))}getCompileOnSaveAffectedFileList(e){const t=this.getProjects(e,!0,!0),n=this.projectService.getScriptInfo(e.file);return n?function(e,t,n,r){const i=L(Qe(n)?n:n.projects,t=>r(t,e));return!Qe(n)&&n.symLinkedProjects&&n.symLinkedProjects.forEach((e,n)=>{const o=t(n);i.push(...O(e,e=>r(e,o)))}),Q(i,mt)}(n,e=>this.projectService.getScriptInfoForPath(e),t,(e,t)=>{if(!e.compileOnSaveEnabled||!e.languageServiceEnabled||e.isOrphan())return;const n=e.getCompilationSettings();return n.noEmit||uO(t.fileName)&&!function(e){return Dk(e)||!!e.emitDecoratorMetadata}(n)?void 0:{projectFileName:e.getProjectName(),fileNames:e.getCompileOnSaveAffectedFileList(t),projectUsesOutFile:!!n.outFile}}):Ife}emitFile(e){const{file:t,project:n}=this.getFileAndProject(e);if(n||Efe.ThrowNoProject(),!n.languageServiceEnabled)return!!e.richResponse&&{emitSkipped:!0,diagnostics:[]};const r=n.getScriptInfo(t),{emitSkipped:i,diagnostics:o}=n.emitFile(r,(e,t,n)=>this.host.writeFile(e,t,n));return e.richResponse?{emitSkipped:i,diagnostics:e.includeLinePosition?this.convertToDiagnosticsWithLinePositionFromDiagnosticFile(o):o.map(e=>Bge(e,!0))}:!i}getSignatureHelpItems(e,t){const{file:n,project:r}=this.getFileAndProject(e),i=this.projectService.getScriptInfoForNormalizedPath(n),o=this.getPosition(e,i),a=r.getLanguageService().getSignatureHelpItems(n,o,e),s=!!this.getPreferences(n).displayPartsForJSDoc;if(a&&t){const e=a.applicableSpan;return{...a,applicableSpan:{start:i.positionToLineOffset(e.start),end:i.positionToLineOffset(e.start+e.length)},items:this.mapSignatureHelpItems(a.items,r,s)}}return s||!a?a:{...a,items:a.items.map(e=>({...e,tags:this.mapJSDocTagInfo(e.tags,r,!1)}))}}toPendingErrorCheck(e){const t=jfe(e),n=this.projectService.tryGetDefaultProjectForFile(t);return n&&{fileName:t,project:n}}getDiagnostics(e,t,n){this.suppressDiagnosticEvents||n.length>0&&this.updateErrorCheck(e,n,t)}change(e){const t=this.projectService.getScriptInfo(e.file);un.assert(!!t),t.textStorage.switchToScriptVersionCache();const n=t.lineOffsetToPosition(e.line,e.offset),r=t.lineOffsetToPosition(e.endLine,e.endOffset);n>=0&&(this.changeSeq++,this.projectService.applyChangesToFile(t,U({span:{start:n,length:r-n},newText:e.insertString})))}reload(e){const t=jfe(e.file),n=void 0===e.tmpfile?void 0:jfe(e.tmpfile),r=this.projectService.getScriptInfoForNormalizedPath(t);r&&(this.changeSeq++,r.reloadFromFile(n))}saveToTmp(e,t){const n=this.projectService.getScriptInfo(e);n&&n.saveTo(t)}closeClientFile(e){if(!e)return;const t=Jo(e);this.projectService.closeClientFile(t)}mapLocationNavigationBarItems(e,t){return E(e,e=>({text:e.text,kind:e.kind,kindModifiers:e.kindModifiers,spans:e.spans.map(e=>ahe(e,t)),childItems:this.mapLocationNavigationBarItems(e.childItems,t),indent:e.indent}))}getNavigationBarItems(e,t){const{file:n,languageService:r}=this.getFileAndLanguageServiceForSyntacticOperation(e),i=r.getNavigationBarItems(n);return i?t?this.mapLocationNavigationBarItems(i,this.projectService.getScriptInfoForNormalizedPath(n)):i:void 0}toLocationNavigationTree(e,t){return{text:e.text,kind:e.kind,kindModifiers:e.kindModifiers,spans:e.spans.map(e=>ahe(e,t)),nameSpan:e.nameSpan&&ahe(e.nameSpan,t),childItems:E(e.childItems,e=>this.toLocationNavigationTree(e,t))}}getNavigationTree(e,t){const{file:n,languageService:r}=this.getFileAndLanguageServiceForSyntacticOperation(e),i=r.getNavigationTree(n);return i?t?this.toLocationNavigationTree(i,this.projectService.getScriptInfoForNormalizedPath(n)):i:void 0}getNavigateToItems(e,t){return O(this.getFullNavigateToItems(e),t?({project:e,navigateToItems:t})=>t.map(t=>{const n=e.getScriptInfo(t.fileName),r={name:t.name,kind:t.kind,kindModifiers:t.kindModifiers,isCaseSensitive:t.isCaseSensitive,matchKind:t.matchKind,file:t.fileName,start:n.positionToLineOffset(t.textSpan.start),end:n.positionToLineOffset(Fs(t.textSpan))};return t.kindModifiers&&""!==t.kindModifiers&&(r.kindModifiers=t.kindModifiers),t.containerName&&t.containerName.length>0&&(r.containerName=t.containerName),t.containerKind&&t.containerKind.length>0&&(r.containerKind=t.containerKind),r}):({navigateToItems:e})=>e)}getFullNavigateToItems(e){const{currentFileOnly:t,searchValue:n,maxResultCount:r,projectFileName:i}=e;if(t){un.assertIsDefined(e.file);const{file:t,project:i}=this.getFileAndProject(e);return[{project:i,navigateToItems:i.getLanguageService().getNavigateToItems(n,r,t)}]}const o=this.getHostPreferences(),a=[],s=new Map;return e.file||i?$ge(this.getProjects(e),void 0,e=>c(e)):(this.projectService.loadAncestorProjectTree(),this.projectService.forEachEnabledProject(e=>c(e))),a;function c(e){const t=N(e.getLanguageService().getNavigateToItems(n,r,void 0,e.isNonTsProject(),o.excludeLibrarySymbolsInNavTo),t=>function(e){const t=e.name;if(!s.has(t))return s.set(t,[e]),!0;const n=s.get(t);for(const t of n)if(l(t,e))return!1;return n.push(e),!0}(t)&&!Zge(Yge(t),e));t.length&&a.push({project:e,navigateToItems:t})}function l(e,t){return e===t||!(!e||!t)&&e.containerKind===t.containerKind&&e.containerName===t.containerName&&e.fileName===t.fileName&&e.isCaseSensitive===t.isCaseSensitive&&e.kind===t.kind&&e.kindModifiers===t.kindModifiers&&e.matchKind===t.matchKind&&e.name===t.name&&e.textSpan.start===t.textSpan.start&&e.textSpan.length===t.textSpan.length}}getSupportedCodeFixes(e){if(!e)return J8();if(e.file){const{file:t,project:n}=this.getFileAndProject(e);return n.getLanguageService().getSupportedCodeFixes(t)}const t=this.getProject(e.projectFileName);return t||Efe.ThrowNoProject(),t.getLanguageService().getSupportedCodeFixes()}isLocation(e){return void 0!==e.line}extractPositionOrRange(e,t){let n,r;var i;return this.isLocation(e)?n=void 0!==(i=e).position?i.position:t.lineOffsetToPosition(i.line,i.offset):r=this.getRange(e,t),un.checkDefined(void 0===n?r:n)}getRange(e,t){const{startPosition:n,endPosition:r}=this.getStartAndEndPosition(e,t);return{pos:n,end:r}}getApplicableRefactors(e){const{file:t,project:n}=this.getFileAndProject(e),r=n.getScriptInfoForNormalizedPath(t);return n.getLanguageService().getApplicableRefactors(t,this.extractPositionOrRange(e,r),this.getPreferences(t),e.triggerReason,e.kind,e.includeInteractiveActions).map(e=>({...e,actions:e.actions.map(e=>({...e,range:e.range?{start:Rge({line:e.range.start.line,character:e.range.start.offset}),end:Rge({line:e.range.end.line,character:e.range.end.offset})}:void 0}))}))}getEditsForRefactor(e,t){const{file:n,project:r}=this.getFileAndProject(e),i=r.getScriptInfoForNormalizedPath(n),o=r.getLanguageService().getEditsForRefactor(n,this.getFormatOptions(n),this.extractPositionOrRange(e,i),e.refactor,e.action,this.getPreferences(n),e.interactiveRefactorArguments);if(void 0===o)return{edits:[]};if(t){const{renameFilename:e,renameLocation:t,edits:n}=o;let i;return void 0!==e&&void 0!==t&&(i=lhe(zQ(r.getScriptInfoForNormalizedPath(jfe(e)).getSnapshot()),e,t,n)),{renameLocation:i,renameFilename:e,edits:this.mapTextChangesToCodeEdits(n),notApplicableReason:o.notApplicableReason}}return o}getMoveToRefactoringFileSuggestions(e){const{file:t,project:n}=this.getFileAndProject(e),r=n.getScriptInfoForNormalizedPath(t);return n.getLanguageService().getMoveToRefactoringFileSuggestions(t,this.extractPositionOrRange(e,r),this.getPreferences(t))}preparePasteEdits(e){const{file:t,project:n}=this.getFileAndProject(e);return n.getLanguageService().preparePasteEditsForFile(t,e.copiedTextSpan.map(e=>this.getRange({file:t,startLine:e.start.line,startOffset:e.start.offset,endLine:e.end.line,endOffset:e.end.offset},this.projectService.getScriptInfoForNormalizedPath(t))))}getPasteEdits(e){const{file:t,project:n}=this.getFileAndProject(e);if(ame(t))return;const r=e.copiedFrom?{file:e.copiedFrom.file,range:e.copiedFrom.spans.map(t=>this.getRange({file:e.copiedFrom.file,startLine:t.start.line,startOffset:t.start.offset,endLine:t.end.line,endOffset:t.end.offset},n.getScriptInfoForNormalizedPath(jfe(e.copiedFrom.file))))}:void 0,i=n.getLanguageService().getPasteEdits({targetFile:t,pastedText:e.pastedText,pasteLocations:e.pasteLocations.map(e=>this.getRange({file:t,startLine:e.start.line,startOffset:e.start.offset,endLine:e.end.line,endOffset:e.end.offset},n.getScriptInfoForNormalizedPath(t))),copiedFrom:r,preferences:this.getPreferences(t)},this.getFormatOptions(t));return i&&this.mapPasteEditsAction(i)}organizeImports(e,t){un.assert("file"===e.scope.type);const{file:n,project:r}=this.getFileAndProject(e.scope.args),i=r.getLanguageService().organizeImports({fileName:n,mode:e.mode??(e.skipDestructiveCodeActions?"SortAndCombine":void 0),type:"file"},this.getFormatOptions(n),this.getPreferences(n));return t?this.mapTextChangesToCodeEdits(i):i}getEditsForFileRename(e,t){const n=jfe(e.oldFilePath),r=jfe(e.newFilePath),i=this.getHostFormatOptions(),o=this.getHostPreferences(),a=new Set,s=[];return this.projectService.loadAncestorProjectTree(),this.projectService.forEachEnabledProject(e=>{const t=e.getLanguageService().getEditsForFileRename(n,r,i,o),c=[];for(const e of t)a.has(e.fileName)||(s.push(e),c.push(e.fileName));for(const e of c)a.add(e)}),t?s.map(e=>this.mapTextChangeToCodeEdit(e)):s}getCodeFixes(e,t){const{file:n,project:r}=this.getFileAndProject(e),i=r.getScriptInfoForNormalizedPath(n),{startPosition:o,endPosition:a}=this.getStartAndEndPosition(e,i);let s;try{s=r.getLanguageService().getCodeFixesAtPosition(n,o,a,e.errorCodes,this.getFormatOptions(n),this.getPreferences(n))}catch(t){const i=t instanceof Error?t:new Error(t),s=r.getLanguageService(),c=[...s.getSyntacticDiagnostics(n),...s.getSemanticDiagnostics(n),...s.getSuggestionDiagnostics(n)].filter(e=>Js(o,a-o,e.start,e.length)).map(e=>e.code),l=e.errorCodes.find(e=>!c.includes(e));throw void 0!==l&&(i.message+=`\nAdditional information: BADCLIENT: Bad error code, ${l} not found in range ${o}..${a} (found: ${c.join(", ")})`),i}return t?s.map(e=>this.mapCodeFixAction(e)):s}getCombinedCodeFix({scope:e,fixId:t},n){un.assert("file"===e.type);const{file:r,project:i}=this.getFileAndProject(e.args),o=i.getLanguageService().getCombinedCodeFix({type:"file",fileName:r},t,this.getFormatOptions(r),this.getPreferences(r));return n?{changes:this.mapTextChangesToCodeEdits(o.changes),commands:o.commands}:o}applyCodeActionCommand(e){const t=e.command;for(const e of Ye(t)){const{file:t,project:n}=this.getFileAndProject(e);n.getLanguageService().applyCodeActionCommand(e,this.getFormatOptions(t)).then(e=>{},e=>{})}return{}}getStartAndEndPosition(e,t){let n,r;return void 0!==e.startPosition?n=e.startPosition:(n=t.lineOffsetToPosition(e.startLine,e.startOffset),e.startPosition=n),void 0!==e.endPosition?r=e.endPosition:(r=t.lineOffsetToPosition(e.endLine,e.endOffset),e.endPosition=r),{startPosition:n,endPosition:r}}mapCodeAction({description:e,changes:t,commands:n}){return{description:e,changes:this.mapTextChangesToCodeEdits(t),commands:n}}mapCodeFixAction({fixName:e,description:t,changes:n,commands:r,fixId:i,fixAllDescription:o}){return{fixName:e,description:t,changes:this.mapTextChangesToCodeEdits(n),commands:r,fixId:i,fixAllDescription:o}}mapPasteEditsAction({edits:e,fixId:t}){return{edits:this.mapTextChangesToCodeEdits(e),fixId:t}}mapTextChangesToCodeEdits(e){return e.map(e=>this.mapTextChangeToCodeEdit(e))}mapTextChangeToCodeEdit(e){const t=this.projectService.getScriptInfoOrConfig(e.fileName);return!!e.isNewFile==!!t&&(t||this.projectService.logErrorForScriptInfoNotFound(e.fileName),un.fail("Expected isNewFile for (only) new files. "+JSON.stringify({isNewFile:!!e.isNewFile,hasScriptInfo:!!t}))),t?{fileName:e.fileName,textChanges:e.textChanges.map(e=>function(e,t){return{start:che(t,e.span.start),end:che(t,Fs(e.span)),newText:e.newText}}(e,t))}:function(e){un.assert(1===e.textChanges.length);const t=ge(e.textChanges);return un.assert(0===t.span.start&&0===t.span.length),{fileName:e.fileName,textChanges:[{start:{line:0,offset:0},end:{line:0,offset:0},newText:t.newText}]}}(e)}convertTextChangeToCodeEdit(e,t){return{start:t.positionToLineOffset(e.span.start),end:t.positionToLineOffset(e.span.start+e.span.length),newText:e.newText?e.newText:""}}getBraceMatching(e,t){const{file:n,languageService:r}=this.getFileAndLanguageServiceForSyntacticOperation(e),i=this.projectService.getScriptInfoForNormalizedPath(n),o=this.getPosition(e,i),a=r.getBraceMatchingAtPosition(n,o);return a?t?a.map(e=>ahe(e,i)):a:void 0}getDiagnosticsForProject(e,t,n){if(this.suppressDiagnosticEvents)return;const{fileNames:r,languageServiceDisabled:i}=this.getProjectInfoWorker(n,void 0,!0,void 0,!0);if(i)return;const o=r.filter(e=>!e.includes("lib.d.ts"));if(0===o.length)return;const a=[],s=[],c=[],l=[],_=jfe(n),u=this.projectService.ensureDefaultProjectForFile(_);for(const e of o)this.getCanonicalFileName(e)===this.getCanonicalFileName(n)?a.push(e):this.projectService.getScriptInfo(e).isScriptOpen()?s.push(e):uO(e)?l.push(e):c.push(e);const d=[...a,...s,...c,...l].map(e=>({fileName:e,project:u}));this.updateErrorCheck(e,d,t,!1)}configurePlugin(e){this.projectService.configurePlugin(e)}getSmartSelectionRange(e,t){const{locations:n}=e,{file:r,languageService:i}=this.getFileAndLanguageServiceForSyntacticOperation(e),o=un.checkDefined(this.projectService.getScriptInfo(r));return E(n,e=>{const n=this.getPosition(e,o),a=i.getSmartSelectionRange(r,n);return t?this.mapSelectionRange(a,o):a})}toggleLineComment(e,t){const{file:n,languageService:r}=this.getFileAndLanguageServiceForSyntacticOperation(e),i=this.projectService.getScriptInfo(n),o=this.getRange(e,i),a=r.toggleLineComment(n,o);if(t){const e=this.projectService.getScriptInfoForNormalizedPath(n);return a.map(t=>this.convertTextChangeToCodeEdit(t,e))}return a}toggleMultilineComment(e,t){const{file:n,languageService:r}=this.getFileAndLanguageServiceForSyntacticOperation(e),i=this.projectService.getScriptInfoForNormalizedPath(n),o=this.getRange(e,i),a=r.toggleMultilineComment(n,o);if(t){const e=this.projectService.getScriptInfoForNormalizedPath(n);return a.map(t=>this.convertTextChangeToCodeEdit(t,e))}return a}commentSelection(e,t){const{file:n,languageService:r}=this.getFileAndLanguageServiceForSyntacticOperation(e),i=this.projectService.getScriptInfoForNormalizedPath(n),o=this.getRange(e,i),a=r.commentSelection(n,o);if(t){const e=this.projectService.getScriptInfoForNormalizedPath(n);return a.map(t=>this.convertTextChangeToCodeEdit(t,e))}return a}uncommentSelection(e,t){const{file:n,languageService:r}=this.getFileAndLanguageServiceForSyntacticOperation(e),i=this.projectService.getScriptInfoForNormalizedPath(n),o=this.getRange(e,i),a=r.uncommentSelection(n,o);if(t){const e=this.projectService.getScriptInfoForNormalizedPath(n);return a.map(t=>this.convertTextChangeToCodeEdit(t,e))}return a}mapSelectionRange(e,t){const n={textSpan:ahe(e.textSpan,t)};return e.parent&&(n.parent=this.mapSelectionRange(e.parent,t)),n}getScriptInfoFromProjectService(e){const t=jfe(e);return this.projectService.getScriptInfoForNormalizedPath(t)||(this.projectService.logErrorForScriptInfoNotFound(t),Efe.ThrowNoProject())}toProtocolCallHierarchyItem(e){const t=this.getScriptInfoFromProjectService(e.file);return{name:e.name,kind:e.kind,kindModifiers:e.kindModifiers,file:e.file,containerName:e.containerName,span:ahe(e.span,t),selectionSpan:ahe(e.selectionSpan,t)}}toProtocolCallHierarchyIncomingCall(e){const t=this.getScriptInfoFromProjectService(e.from.file);return{from:this.toProtocolCallHierarchyItem(e.from),fromSpans:e.fromSpans.map(e=>ahe(e,t))}}toProtocolCallHierarchyOutgoingCall(e,t){return{to:this.toProtocolCallHierarchyItem(e.to),fromSpans:e.fromSpans.map(e=>ahe(e,t))}}prepareCallHierarchy(e){const{file:t,project:n}=this.getFileAndProject(e),r=this.projectService.getScriptInfoForNormalizedPath(t);if(r){const i=this.getPosition(e,r),o=n.getLanguageService().prepareCallHierarchy(t,i);return o&&RZ(o,e=>this.toProtocolCallHierarchyItem(e))}}provideCallHierarchyIncomingCalls(e){const{file:t,project:n}=this.getFileAndProject(e),r=this.getScriptInfoFromProjectService(t);return n.getLanguageService().provideCallHierarchyIncomingCalls(t,this.getPosition(e,r)).map(e=>this.toProtocolCallHierarchyIncomingCall(e))}provideCallHierarchyOutgoingCalls(e){const{file:t,project:n}=this.getFileAndProject(e),r=this.getScriptInfoFromProjectService(t);return n.getLanguageService().provideCallHierarchyOutgoingCalls(t,this.getPosition(e,r)).map(e=>this.toProtocolCallHierarchyOutgoingCall(e,r))}getCanonicalFileName(e){return Jo(this.host.useCaseSensitiveFileNames?e:_t(e))}exit(){}notRequired(e){return e&&this.doOutput(void 0,e.command,e.seq,!0,this.performanceData),{responseRequired:!1,performanceData:this.performanceData}}requiredResponse(e){return{response:e,responseRequired:!0,performanceData:this.performanceData}}addProtocolHandler(e,t){if(this.handlers.has(e))throw new Error(`Protocol handler already exists for command "${e}"`);this.handlers.set(e,t)}setCurrentRequest(e){un.assert(void 0===this.currentRequestId),this.currentRequestId=e,this.cancellationToken.setRequest(e)}resetCurrentRequest(e){un.assert(this.currentRequestId===e),this.currentRequestId=void 0,this.cancellationToken.resetRequest(e)}executeWithRequestId(e,t,n){const r=this.performanceData;try{return this.performanceData=n,this.setCurrentRequest(e),t()}finally{this.resetCurrentRequest(e),this.performanceData=r}}executeCommand(e){const t=this.handlers.get(e.command);if(t){const n=this.executeWithRequestId(e.seq,()=>t(e),void 0);return this.projectService.enableRequestedPlugins(),n}return this.logger.msg(`Unrecognized JSON command:${aG(e)}`,"Err"),this.doOutput(void 0,"unknown",e.seq,!1,void 0,`Unrecognized JSON command: ${e.command}`),{responseRequired:!1}}onMessage(e){var t,n,r,i,o,a,s;let c;this.gcTimer.scheduleCollect();const l=this.performanceData;let _,u;this.logger.hasLevel(2)&&(c=this.hrtime(),this.logger.hasLevel(3)&&this.logger.info(`request:${oG(this.toStringMessage(e))}`));try{_=this.parseMessage(e),u=_.arguments&&_.arguments.file?_.arguments:void 0,null==(t=Hn)||t.instant(Hn.Phase.Session,"request",{seq:_.seq,command:_.command}),null==(n=Hn)||n.push(Hn.Phase.Session,"executeCommand",{seq:_.seq,command:_.command},!0);const{response:o,responseRequired:a,performanceData:s}=this.executeCommand(_);if(null==(r=Hn)||r.pop(),this.logger.hasLevel(2)){const e=(d=this.hrtime(c),(1e9*d[0]+d[1])/1e6).toFixed(4);a?this.logger.perftrc(`${_.seq}::${_.command}: elapsed time (in milliseconds) ${e}`):this.logger.perftrc(`${_.seq}::${_.command}: async elapsed time (in milliseconds) ${e}`)}null==(i=Hn)||i.instant(Hn.Phase.Session,"response",{seq:_.seq,command:_.command,success:!!o}),o?this.doOutput(o,_.command,_.seq,!0,s):a&&this.doOutput(void 0,_.command,_.seq,!1,s,"No content available.")}catch(t){if(null==(o=Hn)||o.popAll(),t instanceof Cr)return null==(a=Hn)||a.instant(Hn.Phase.Session,"commandCanceled",{seq:null==_?void 0:_.seq,command:null==_?void 0:_.command}),void this.doOutput({canceled:!0},_.command,_.seq,!0,this.performanceData);this.logErrorWorker(t,this.toStringMessage(e),u),null==(s=Hn)||s.instant(Hn.Phase.Session,"commandError",{seq:null==_?void 0:_.seq,command:null==_?void 0:_.command,message:t.message}),this.doOutput(void 0,_?_.command:"unknown",_?_.seq:0,!1,this.performanceData,"Error processing request. "+t.message+"\n"+t.stack)}finally{this.performanceData=l}var d}parseMessage(e){return JSON.parse(e)}toStringMessage(e){return e}getFormatOptions(e){return this.projectService.getFormatCodeOptions(e)}getPreferences(e){return this.projectService.getPreferences(e)}getHostFormatOptions(){return this.projectService.getHostFormatCodeOptions()}getHostPreferences(){return this.projectService.getHostPreferences()}};function ohe(e){const t=e.diagnosticsDuration&&Oe(e.diagnosticsDuration,([e,t])=>({...t,file:e}));return{...e,diagnosticsDuration:t}}function ahe(e,t){return{start:t.positionToLineOffset(e.start),end:t.positionToLineOffset(Fs(e))}}function she(e,t,n){const r=ahe(e,n),i=t&&ahe(t,n);return i?{...r,contextStart:i.start,contextEnd:i.end}:r}function che(e,t){return Ege(e)?{line:(n=e.getLineAndCharacterOfPosition(t)).line+1,offset:n.character+1}:e.positionToLineOffset(t);var n}function lhe(e,t,n,r){const i=function(e,t,n){for(const{fileName:r,textChanges:i}of n)if(r===t)for(let t=i.length-1;t>=0;t--){const{newText:n,span:{start:r,length:o}}=i[t];e=e.slice(0,r)+n+e.slice(r+o)}return e}(e,t,r),{line:o,character:a}=Ra(Oa(i),n);return{line:o+1,offset:a+1}}function _he(e,{fileName:t,textSpan:n,contextSpan:r,isWriteAccess:i,isDefinition:o},{disableLineTextInReferences:a}){const s=un.checkDefined(e.getScriptInfo(t)),c=she(n,r,s),l=a?void 0:function(e,t){const n=e.lineToTextSpan(t.start.line-1);return e.getSnapshot().getText(n.start,Fs(n)).replace(/\r|\n/g,"")}(s,c);return{file:t,...c,lineText:l,isWriteAccess:i,isDefinition:o}}function uhe(e){return void 0===e||e&&"object"==typeof e&&"string"==typeof e.exportName&&(void 0===e.fileName||"string"==typeof e.fileName)&&(void 0===e.ambientModuleName||"string"==typeof e.ambientModuleName&&(void 0===e.isPackageJsonImport||"boolean"==typeof e.isPackageJsonImport))}var dhe=(e=>(e[e.PreStart=0]="PreStart",e[e.Start=1]="Start",e[e.Entire=2]="Entire",e[e.Mid=3]="Mid",e[e.End=4]="End",e[e.PostEnd=5]="PostEnd",e))(dhe||{}),phe=class{constructor(){this.goSubtree=!0,this.lineIndex=new yhe,this.endBranch=[],this.state=2,this.initialText="",this.trailingText="",this.lineIndex.root=new vhe,this.startPath=[this.lineIndex.root],this.stack=[this.lineIndex.root]}get done(){return!1}insertLines(e,t){t&&(this.trailingText=""),e=e?this.initialText+e+this.trailingText:this.initialText+this.trailingText;const n=yhe.linesFromText(e).lines;let r,i;n.length>1&&""===n[n.length-1]&&n.pop();for(let e=this.endBranch.length-1;e>=0;e--)this.endBranch[e].updateCounts(),0===this.endBranch[e].charCount()&&(i=this.endBranch[e],r=e>0?this.endBranch[e-1]:this.branchNode);i&&r.remove(i);const o=this.startPath[this.startPath.length-1];if(n.length>0)if(o.text=n[0],n.length>1){let e=new Array(n.length-1),t=o;for(let t=1;t=0;){const n=this.startPath[r];e=n.insertAt(t,e),r--,t=n}let i=e.length;for(;i>0;){const t=new vhe;t.add(this.lineIndex.root),e=t.insertAt(this.lineIndex.root,e),i=e.length,this.lineIndex.root=t}this.lineIndex.root.updateCounts()}else for(let e=this.startPath.length-2;e>=0;e--)this.startPath[e].updateCounts();else{this.startPath[this.startPath.length-2].remove(o);for(let e=this.startPath.length-2;e>=0;e--)this.startPath[e].updateCounts()}return this.lineIndex}post(e,t,n){n===this.lineCollectionAtBranch&&(this.state=4),this.stack.pop()}pre(e,t,n,r,i){const o=this.stack[this.stack.length-1];let a;function s(e){return e.isLeaf()?new bhe(""):new vhe}switch(2===this.state&&1===i&&(this.state=1,this.branchNode=o,this.lineCollectionAtBranch=n),i){case 0:this.goSubtree=!1,4!==this.state&&o.add(n);break;case 1:4===this.state?this.goSubtree=!1:(a=s(n),o.add(a),this.startPath.push(a));break;case 2:4!==this.state?(a=s(n),o.add(a),this.startPath.push(a)):n.isLeaf()||(a=s(n),o.add(a),this.endBranch.push(a));break;case 3:this.goSubtree=!1;break;case 4:4!==this.state?this.goSubtree=!1:n.isLeaf()||(a=s(n),o.add(a),this.endBranch.push(a));break;case 5:this.goSubtree=!1,1!==this.state&&o.add(n)}this.goSubtree&&this.stack.push(a)}leaf(e,t,n){1===this.state?this.initialText=n.text.substring(0,e):2===this.state?(this.initialText=n.text.substring(0,e),this.trailingText=n.text.substring(e+t)):this.trailingText=n.text.substring(e+t)}},fhe=class{constructor(e,t,n){this.pos=e,this.deleteLen=t,this.insertedText=n}getTextChangeRange(){return Gs(Ws(this.pos,this.deleteLen),this.insertedText?this.insertedText.length:0)}},mhe=class e{constructor(){this.changes=[],this.versions=new Array(e.maxVersions),this.minVersion=0,this.currentVersion=0}versionToIndex(t){if(!(tthis.currentVersion))return t%e.maxVersions}currentVersionToIndex(){return this.currentVersion%e.maxVersions}edit(t,n,r){this.changes.push(new fhe(t,n,r)),(this.changes.length>e.changeNumberThreshold||n>e.changeLengthThreshold||r&&r.length>e.changeLengthThreshold)&&this.getSnapshot()}getSnapshot(){return this._getSnapshot()}_getSnapshot(){let t=this.versions[this.currentVersionToIndex()];if(this.changes.length>0){let n=t.index;for(const e of this.changes)n=n.edit(e.pos,e.deleteLen,e.insertedText);t=new hhe(this.currentVersion+1,this,n,this.changes),this.currentVersion=t.version,this.versions[this.currentVersionToIndex()]=t,this.changes=[],this.currentVersion-this.minVersion>=e.maxVersions&&(this.minVersion=this.currentVersion-e.maxVersions+1)}return t}getSnapshotVersion(){return this._getSnapshot().version}getAbsolutePositionAndLineText(e){return this._getSnapshot().index.lineNumberToInfo(e)}lineOffsetToPosition(e,t){return this._getSnapshot().index.absolutePositionOfStartOfLine(e)+(t-1)}positionToLineOffset(e){return this._getSnapshot().index.positionToLineOffset(e)}lineToTextSpan(e){const t=this._getSnapshot().index,{lineText:n,absolutePosition:r}=t.lineNumberToInfo(e+1);return Ws(r,void 0!==n?n.length:t.absolutePositionOfStartOfLine(e+2)-r)}getTextChangesBetweenVersions(e,t){if(!(e=this.minVersion){const n=[];for(let r=e+1;r<=t;r++){const e=this.versions[this.versionToIndex(r)];for(const t of e.changesSincePreviousVersion)n.push(t.getTextChangeRange())}return Qs(n)}}getLineCount(){return this._getSnapshot().index.getLineCount()}static fromString(t){const n=new e,r=new hhe(0,n,new yhe);n.versions[n.currentVersion]=r;const i=yhe.linesFromText(t);return r.index.load(i.lines),n}};mhe.changeNumberThreshold=8,mhe.changeLengthThreshold=256,mhe.maxVersions=8;var ghe=mhe,hhe=class e{constructor(e,t,n,r=Ife){this.version=e,this.cache=t,this.index=n,this.changesSincePreviousVersion=r}getText(e,t){return this.index.getText(e,t-e)}getLength(){return this.index.getLength()}getChangeRange(t){if(t instanceof e&&this.cache===t.cache)return this.version<=t.version?Xs:this.cache.getTextChangesBetweenVersions(t.version,this.version)}},yhe=class e{constructor(){this.checkEdits=!1}absolutePositionOfStartOfLine(e){return this.lineNumberToInfo(e).absolutePosition}positionToLineOffset(e){const{oneBasedLine:t,zeroBasedColumn:n}=this.root.charOffsetToLineInfo(1,e);return{line:t,offset:n+1}}positionToColumnAndLineText(e){return this.root.charOffsetToLineInfo(1,e)}getLineCount(){return this.root.lineCount()}lineNumberToInfo(e){if(e<=this.getLineCount()){const{position:t,leaf:n}=this.root.lineNumberToInfo(e,0);return{absolutePosition:t,lineText:n&&n.text}}return{absolutePosition:this.root.charCount(),lineText:void 0}}load(t){if(t.length>0){const n=[];for(let e=0;e0&&e{n=n.concat(r.text.substring(e,e+t))}}),n}getLength(){return this.root.charCount()}every(e,t,n){n||(n=this.root.charCount());const r={goSubtree:!0,done:!1,leaf(t,n,r){e(r,t,n)||(this.done=!0)}};return this.walk(t,n-t,r),!r.done}edit(t,n,r){if(0===this.root.charCount())return un.assert(0===n),void 0!==r?(this.load(e.linesFromText(r).lines),this):void 0;{let e;if(this.checkEdits){const i=this.getText(0,this.root.charCount());e=i.slice(0,t)+r+i.slice(t+n)}const i=new phe;let o=!1;if(t>=this.root.charCount()){t=this.root.charCount()-1;const e=this.getText(t,1);r=r?e+r:e,n=0,o=!0}else if(n>0){const e=t+n,{zeroBasedColumn:i,lineText:o}=this.positionToColumnAndLineText(e);0===i&&(n+=o.length,r=r?r+o:o)}if(this.root.walk(t,n,i),i.insertLines(r,o),this.checkEdits){const t=i.lineIndex.getText(0,i.lineIndex.getLength());un.assert(e===t,"buffer edit mismatch")}return i.lineIndex}}static buildTreeFromBottom(e){if(e.length<4)return new vhe(e);const t=new Array(Math.ceil(e.length/4));let n=0;for(let r=0;r0?n[r]=i:n.pop(),{lines:n,lineMap:t}}},vhe=class e{constructor(e=[]){this.children=e,this.totalChars=0,this.totalLines=0,e.length&&this.updateCounts()}isLeaf(){return!1}updateCounts(){this.totalChars=0,this.totalLines=0;for(const e of this.children)this.totalChars+=e.charCount(),this.totalLines+=e.lineCount()}execWalk(e,t,n,r,i){return n.pre&&n.pre(e,t,this.children[r],this,i),n.goSubtree?(this.children[r].walk(e,t,n),n.post&&n.post(e,t,this.children[r],this,i)):n.goSubtree=!0,n.done}skipChild(e,t,n,r,i){r.pre&&!r.done&&(r.pre(e,t,this.children[n],this,i),r.goSubtree=!0)}walk(e,t,n){if(0===this.children.length)return;let r=0,i=this.children[r].charCount(),o=e;for(;o>=i;)this.skipChild(o,t,r,n,0),o-=i,r++,i=this.children[r].charCount();if(o+t<=i){if(this.execWalk(o,t,n,r,2))return}else{if(this.execWalk(o,i-o,n,r,1))return;let e=t-(i-o);for(r++,i=this.children[r].charCount();e>i;){if(this.execWalk(0,i,n,r,3))return;e-=i,r++,i=this.children[r].charCount()}if(e>0&&this.execWalk(0,e,n,r,4))return}if(n.pre){const e=this.children.length;if(rt)return n.isLeaf()?{oneBasedLine:e,zeroBasedColumn:t,lineText:n.text}:n.charOffsetToLineInfo(e,t);t-=n.charCount(),e+=n.lineCount()}const n=this.lineCount();return 0===n?{oneBasedLine:1,zeroBasedColumn:0,lineText:void 0}:{oneBasedLine:n,zeroBasedColumn:un.checkDefined(this.lineNumberToInfo(n,0).leaf).charCount(),lineText:void 0}}lineNumberToInfo(e,t){for(const n of this.children){const r=n.lineCount();if(r>=e)return n.isLeaf()?{position:t,leaf:n}:n.lineNumberToInfo(e,t);e-=r,t+=n.charCount()}return{position:t,leaf:void 0}}splitAfter(t){let n;const r=this.children.length,i=++t;if(t=0;e--)0===a[e].children.length&&a.pop()}t&&a.push(t),this.updateCounts();for(let e=0;e{(this.packageInstalledPromise??(this.packageInstalledPromise=new Map)).set(this.packageInstallId,{resolve:e,reject:t})});return this.installer.send(t),n}attach(e){this.projectService=e,this.installer=this.createInstallerProcess()}onProjectClosed(e){this.installer.send({projectName:e.getProjectName(),kind:"closeProject"})}enqueueInstallTypingsRequest(e,t,n){const r=Lfe(e,t,n);this.logger.hasLevel(3)&&this.logger.info(`TIAdapter:: Scheduling throttled operation:${aG(r)}`),this.activeRequestCount0?this.activeRequestCount--:un.fail("TIAdapter:: Received too many responses");!this.requestQueue.isEmpty();){const e=this.requestQueue.dequeue();if(this.requestMap.get(e.projectName)===e){this.requestMap.delete(e.projectName),this.scheduleRequest(e);break}this.logger.hasLevel(3)&&this.logger.info(`TIAdapter:: Skipping defunct request for: ${e.projectName}`)}this.projectService.updateTypingsForProject(e),this.event(e,"setTypings");break;case eG:this.projectService.watchTypingLocations(e)}}scheduleRequest(t){this.logger.hasLevel(3)&&this.logger.info(`TIAdapter:: Scheduling request for: ${t.projectName}`),this.activeRequestCount++,this.host.setTimeout(()=>{this.logger.hasLevel(3)&&this.logger.info(`TIAdapter:: Sending request:${aG(t)}`),this.installer.send(t)},e.requestDelayMillis,`${t.projectName}::${t.kind}`)}};xhe.requestDelayMillis=100;var khe=xhe,She={};i(She,{ActionInvalidate:()=>KK,ActionPackageInstalled:()=>GK,ActionSet:()=>HK,ActionWatchTypingLocations:()=>eG,Arguments:()=>WK,AutoImportProviderProject:()=>xme,AuxiliaryProject:()=>vme,CharRangeSection:()=>dhe,CloseFileWatcherEvent:()=>zme,CommandNames:()=>Jge,ConfigFileDiagEvent:()=>Lme,ConfiguredProject:()=>kme,ConfiguredProjectLoadKind:()=>lge,CreateDirectoryWatcherEvent:()=>Jme,CreateFileWatcherEvent:()=>Bme,Errors:()=>Efe,EventBeginInstallTypes:()=>QK,EventEndInstallTypes:()=>YK,EventInitializationFailed:()=>ZK,EventTypesRegistry:()=>XK,ExternalProject:()=>Sme,GcTimer:()=>$fe,InferredProject:()=>yme,LargeFileReferencedEvent:()=>Ome,LineIndex:()=>yhe,LineLeaf:()=>bhe,LineNode:()=>vhe,LogLevel:()=>Afe,Msg:()=>Ofe,OpenFileInfoTelemetryEvent:()=>Rme,Project:()=>hme,ProjectInfoTelemetryEvent:()=>Mme,ProjectKind:()=>_me,ProjectLanguageServiceStateEvent:()=>jme,ProjectLoadingFinishEvent:()=>Ime,ProjectLoadingStartEvent:()=>Ame,ProjectService:()=>Fge,ProjectsUpdatedInBackgroundEvent:()=>Pme,ScriptInfo:()=>sme,ScriptVersionCache:()=>ghe,Session:()=>ihe,TextStorage:()=>ome,ThrottledOperations:()=>Wfe,TypingsInstallerAdapter:()=>khe,allFilesAreJsOrDts:()=>pme,allRootFilesAreJsOrDts:()=>dme,asNormalizedPath:()=>Rfe,convertCompilerOptions:()=>Gme,convertFormatOptions:()=>Kme,convertScriptKindName:()=>Zme,convertTypeAcquisition:()=>Qme,convertUserPreferences:()=>ege,convertWatchOptions:()=>Xme,countEachFileTypes:()=>ume,createInstallTypingsRequest:()=>Lfe,createModuleSpecifierCache:()=>Age,createNormalizedPathMap:()=>Bfe,createPackageJsonCache:()=>Ige,createSortedArray:()=>Vfe,emptyArray:()=>Ife,findArgument:()=>nG,formatDiagnosticToProtocol:()=>Bge,formatMessage:()=>zge,getBaseConfigFileName:()=>Hfe,getDetailWatchInfo:()=>hge,getLocationInNewDocument:()=>lhe,hasArgument:()=>tG,hasNoTypeScriptSource:()=>fme,indent:()=>oG,isBackgroundProject:()=>Nme,isConfigFile:()=>Ege,isConfiguredProject:()=>Cme,isDynamicFileName:()=>ame,isExternalProject:()=>wme,isInferredProject:()=>Tme,isInferredProjectName:()=>Jfe,isProjectDeferredClose:()=>Dme,makeAutoImportProviderProjectName:()=>qfe,makeAuxiliaryProjectName:()=>Ufe,makeInferredProjectName:()=>zfe,maxFileSize:()=>Eme,maxProgramSizeForNonTsFiles:()=>Fme,normalizedPathToPath:()=>Mfe,nowString:()=>rG,nullCancellationToken:()=>Oge,nullTypingsInstaller:()=>ige,protocol:()=>Kfe,scriptInfoIsContainedByBackgroundProject:()=>cme,scriptInfoIsContainedByDeferredClosedProject:()=>lme,stringifyIndented:()=>aG,toEvent:()=>Uge,toNormalizedPath:()=>jfe,tryConvertScriptKindName:()=>Yme,typingsInstaller:()=>Sfe,updateProjectIfDirty:()=>vge}),"undefined"!=typeof console&&(un.loggingHost={log(e,t){switch(e){case 1:return console.error(t);case 2:return console.warn(t);case 3:case 4:return console.log(t)}}})})({get exports(){return i},set exports(t){i=t,e.exports&&(e.exports=t)}})}},t={};function n(r){var i=t[r];if(void 0!==i)return i.exports;var o=t[r]={exports:{}};return e[r].call(o.exports,o,o.exports,n),o.exports}n.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t);var r=n(156);guts=r})(); \ No newline at end of file diff --git a/typescript-engine/src/index.ts b/typescript-engine/src/index.ts index c889737..f7b4f45 100644 --- a/typescript-engine/src/index.ts +++ b/typescript-engine/src/index.ts @@ -279,6 +279,12 @@ export function typeOperatorNode( return ts.factory.createTypeOperatorNode(ts.SyntaxKind[operator], node); } +export function typeLiteralNode( + members: ts.TypeElement[] +): ts.TypeLiteralNode { + return ts.factory.createTypeLiteralNode(members); +} + module.exports = { modifier: modifier, identifier: identifier, @@ -305,6 +311,7 @@ module.exports = { variableDeclarationList: variableDeclarationList, arrayLiteral: arrayLiteral, typeOperatorNode: typeOperatorNode, + typeLiteralNode: typeLiteralNode, enumDeclaration: enumDeclaration, enumMember: enumMember, }; From 3e75a68308eeb6ab20277164abe96ef1a3d36e9b Mon Sep 17 00:00:00 2001 From: Steven Masley Date: Thu, 2 Oct 2025 12:38:13 -0500 Subject: [PATCH 2/3] test: add unit test example of type inheritance --- config/mutations.go | 1 + testdata/interfacetotype/interfacetotype.go | 5 +++++ testdata/interfacetotype/interfacetotype.ts | 5 +++++ 3 files changed, 11 insertions(+) diff --git a/config/mutations.go b/config/mutations.go index 716987b..9b0a706 100644 --- a/config/mutations.go +++ b/config/mutations.go @@ -363,6 +363,7 @@ func InterfaceToType(ts *guts.Typescript) { Type: typeLiteral, Parameters: intf.Parameters, Source: intf.Source, + // TODO: Heritage? }) }) } diff --git a/testdata/interfacetotype/interfacetotype.go b/testdata/interfacetotype/interfacetotype.go index 8e38182..0f15534 100644 --- a/testdata/interfacetotype/interfacetotype.go +++ b/testdata/interfacetotype/interfacetotype.go @@ -1,5 +1,10 @@ package codersdk +type Player struct { + User + Score int `json:"score"` +} + type User struct { ID int `json:"id"` Name string `json:"name"` diff --git a/testdata/interfacetotype/interfacetotype.ts b/testdata/interfacetotype/interfacetotype.ts index 7d07a87..6db1054 100644 --- a/testdata/interfacetotype/interfacetotype.ts +++ b/testdata/interfacetotype/interfacetotype.ts @@ -13,6 +13,11 @@ export type GenericContainer = { count: number; }; +// From codersdk/interfacetotype.go +export type Player = { + score: number; +}; + // From codersdk/interfacetotype.go export type User = { id: number; From 30fd888c5fe36a558058d4652371fe4f781c21c4 Mon Sep 17 00:00:00 2001 From: Steven Masley Date: Thu, 2 Oct 2025 12:58:25 -0500 Subject: [PATCH 3/3] chore: handle inheritance clauses for type aliases --- bindings/bindings.go | 24 +++++++++++++++++++++ bindings/expressions.go | 7 ++++++ bindings/walk/walk.go | 6 +++++- config/mutations.go | 19 ++++++++++++++-- testdata/interfacetotype/interfacetotype.go | 18 +++++++++++----- testdata/interfacetotype/interfacetotype.ts | 17 +++++++++++---- typescript-engine/dist/main.js | 6 +++--- typescript-engine/src/index.ts | 7 +++++- 8 files changed, 88 insertions(+), 16 deletions(-) diff --git a/bindings/bindings.go b/bindings/bindings.go index 4c6633f..8ce053c 100644 --- a/bindings/bindings.go +++ b/bindings/bindings.go @@ -101,6 +101,8 @@ func (b *Bindings) ToTypescriptExpressionNode(ety ExpressionType) (*goja.Object, siObj, err = b.OperatorNode(ety) case *TypeLiteralNode: siObj, err = b.TypeLiteralNode(ety) + case *TypeIntersection: + siObj, err = b.TypeIntersection(ety) default: return nil, xerrors.Errorf("unsupported type for field type: %T", ety) } @@ -744,3 +746,25 @@ func (b *Bindings) TypeLiteralNode(node *TypeLiteralNode) (*goja.Object, error) return res.ToObject(b.vm), nil } + +func (b *Bindings) TypeIntersection(node *TypeIntersection) (*goja.Object, error) { + intersectionF, err := b.f("intersectionType") + if err != nil { + return nil, err + } + + var types []interface{} + for _, t := range node.Types { + v, err := b.ToTypescriptExpressionNode(t) + if err != nil { + return nil, fmt.Errorf("intersection type: %w", err) + } + types = append(types, v) + } + + res, err := intersectionF(goja.Undefined(), b.vm.NewArray(types...)) + if err != nil { + return nil, xerrors.Errorf("call intersectionType: %w", err) + } + return res.ToObject(b.vm), nil +} diff --git a/bindings/expressions.go b/bindings/expressions.go index ae64407..420b59e 100644 --- a/bindings/expressions.go +++ b/bindings/expressions.go @@ -189,3 +189,10 @@ type TypeLiteralNode struct { func (*TypeLiteralNode) isNode() {} func (*TypeLiteralNode) isExpressionType() {} + +type TypeIntersection struct { + Types []ExpressionType +} + +func (*TypeIntersection) isNode() {} +func (*TypeIntersection) isExpressionType() {} diff --git a/bindings/walk/walk.go b/bindings/walk/walk.go index fa6d6e6..8daa2fc 100644 --- a/bindings/walk/walk.go +++ b/bindings/walk/walk.go @@ -59,13 +59,17 @@ func Walk(v Visitor, node bindings.Node) { case *bindings.LiteralType: // noop case *bindings.Null: - // noop + // noop case *bindings.HeritageClause: walkList(v, n.Args) case *bindings.OperatorNodeType: Walk(v, n.Type) case *bindings.EnumMember: Walk(v, n.Value) + case *bindings.TypeLiteralNode: + walkList(v, n.Members) + case *bindings.TypeIntersection: + walkList(v, n.Types) default: panic(fmt.Sprintf("convert.Walk: unexpected node type %T", n)) } diff --git a/config/mutations.go b/config/mutations.go index 9b0a706..5d3f7a5 100644 --- a/config/mutations.go +++ b/config/mutations.go @@ -352,10 +352,26 @@ func InterfaceToType(ts *guts.Typescript) { } // Create a type literal node to represent the interface structure - typeLiteral := &bindings.TypeLiteralNode{ + var typeLiteral bindings.ExpressionType = &bindings.TypeLiteralNode{ Members: intf.Fields, } + // If the interface has heritage (extends/implements), create an intersection type. + // The output of an intersection type is equivalent to extending multiple interfaces. + if len(intf.Heritage) > 0 { + var intersection []bindings.ExpressionType + intersection = make([]bindings.ExpressionType, 0, len(intf.Heritage)+1) + for _, heritage := range intf.Heritage { + for _, arg := range heritage.Args { + intersection = append(intersection, arg) + } + } + intersection = append(intersection, typeLiteral) + typeLiteral = &bindings.TypeIntersection{ + Types: intersection, + } + } + // Replace the interface with a type alias ts.ReplaceNode(key, &bindings.Alias{ Name: intf.Name, @@ -363,7 +379,6 @@ func InterfaceToType(ts *guts.Typescript) { Type: typeLiteral, Parameters: intf.Parameters, Source: intf.Source, - // TODO: Heritage? }) }) } diff --git a/testdata/interfacetotype/interfacetotype.go b/testdata/interfacetotype/interfacetotype.go index 0f15534..5b31721 100644 --- a/testdata/interfacetotype/interfacetotype.go +++ b/testdata/interfacetotype/interfacetotype.go @@ -1,17 +1,25 @@ package codersdk -type Player struct { - User - Score int `json:"score"` +type Score[T int | float32 | float64] struct { + Points T `json:"points"` + Level int `json:"level"` } -type User struct { - ID int `json:"id"` +type User[T comparable] struct { + ID T `json:"id"` Name string `json:"name"` Email string `json:"email"` IsActive bool `json:"is_active"` } +type Player[ID comparable, P int | float32 | float64] struct { + User[ID] + Score[P] + + X int `json:"x"` + Y int `json:"y"` +} + type Address struct { Street string `json:"street"` City string `json:"city"` diff --git a/testdata/interfacetotype/interfacetotype.ts b/testdata/interfacetotype/interfacetotype.ts index 6db1054..510c0cf 100644 --- a/testdata/interfacetotype/interfacetotype.ts +++ b/testdata/interfacetotype/interfacetotype.ts @@ -7,6 +7,8 @@ export type Address = { country: string; }; +export type Comparable = string | number | boolean; + // From codersdk/interfacetotype.go export type GenericContainer = { value: T; @@ -14,13 +16,20 @@ export type GenericContainer = { }; // From codersdk/interfacetotype.go -export type Player = { - score: number; +export type Player = User & Score

& { + x: number; + y: number; +}; + +// From codersdk/interfacetotype.go +export type Score = { + points: T; + level: number; }; // From codersdk/interfacetotype.go -export type User = { - id: number; +export type User = { + id: T; name: string; email: string; is_active: boolean; diff --git a/typescript-engine/dist/main.js b/typescript-engine/dist/main.js index d0f247a..b066c72 100644 --- a/typescript-engine/dist/main.js +++ b/typescript-engine/dist/main.js @@ -1,6 +1,6 @@ -var guts;(()=>{var e={21:()=>{},156:function(e,t,n){"use strict";var r,i=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(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){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),a=this&&this.__importStar||(r=function(e){return r=Object.getOwnPropertyNames||function(e){var t=[];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[t.length]=n);return t},r(e)},function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n=r(e),a=0;a{},247:()=>{},387:e=>{function t(e){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}t.keys=()=>[],t.resolve=t,t.id=387,e.exports=t},615:()=>{},641:()=>{},664:()=>{},732:()=>{},843:(e,t,n)=>{var r="/index.js",i={};(e=>{"use strict";var t=Object.defineProperty,i=(Object.getOwnPropertyDescriptor,Object.getOwnPropertyNames,Object.prototype.hasOwnProperty,(e,n)=>{for(var r in n)t(e,r,{get:n[r],enumerable:!0})}),o={};i(o,{ANONYMOUS:()=>dZ,AccessFlags:()=>Xr,AssertionLevel:()=>ft,AssignmentDeclarationKind:()=>ai,AssignmentKind:()=>Kg,Associativity:()=>ty,BreakpointResolver:()=>n7,BuilderFileEmit:()=>YV,BuilderProgramKind:()=>wW,BuilderState:()=>XV,CallHierarchy:()=>i7,CharacterCodes:()=>ki,CheckFlags:()=>Ur,CheckMode:()=>HB,ClassificationType:()=>zG,ClassificationTypeNames:()=>JG,CommentDirectiveType:()=>Tr,Comparison:()=>c,CompletionInfoFlags:()=>IG,CompletionTriggerKind:()=>CG,Completions:()=>mae,ContainerFlags:()=>$R,ContextFlags:()=>Or,Debug:()=>un,DiagnosticCategory:()=>si,Diagnostics:()=>_a,DocumentHighlights:()=>y0,ElementFlags:()=>Gr,EmitFlags:()=>wi,EmitHint:()=>Ei,EmitOnly:()=>Dr,EndOfLineState:()=>jG,ExitStatus:()=>Er,ExportKind:()=>i0,Extension:()=>Si,ExternalEmitHelpers:()=>Fi,FileIncludeKind:()=>wr,FilePreprocessingDiagnosticsKind:()=>Nr,FileSystemEntryKind:()=>no,FileWatcherEventKind:()=>Bi,FindAllReferences:()=>gce,FlattenLevel:()=>Tz,FlowFlags:()=>Sr,ForegroundColorEscapeSequences:()=>XU,FunctionFlags:()=>Ih,GeneratedIdentifierFlags:()=>br,GetLiteralTextFlags:()=>np,GoToDefinition:()=>rle,HighlightSpanKind:()=>NG,IdentifierNameMap:()=>ZJ,ImportKind:()=>r0,ImportsNotUsedAsValues:()=>gi,IndentStyle:()=>DG,IndexFlags:()=>Qr,IndexKind:()=>ti,InferenceFlags:()=>ii,InferencePriority:()=>ri,InlayHintKind:()=>wG,InlayHints:()=>xle,InternalEmitFlags:()=>Ni,InternalNodeBuilderFlags:()=>jr,InternalSymbolName:()=>Vr,IntersectionFlags:()=>Ir,InvalidatedProjectKind:()=>yH,JSDocParsingMode:()=>ji,JsDoc:()=>wle,JsTyping:()=>VK,JsxEmit:()=>mi,JsxFlags:()=>hr,JsxReferenceKind:()=>Yr,LanguageFeatureMinimumTarget:()=>Di,LanguageServiceMode:()=>xG,LanguageVariant:()=>bi,LexicalEnvironmentFlags:()=>Ai,ListFormat:()=>Ii,LogLevel:()=>dn,MapCode:()=>$le,MemberOverrideStatus:()=>Pr,ModifierFlags:()=>gr,ModuleDetectionKind:()=>_i,ModuleInstanceState:()=>qR,ModuleKind:()=>fi,ModuleResolutionKind:()=>li,ModuleSpecifierEnding:()=>MS,NavigateTo:()=>V1,NavigationBar:()=>t2,NewLineKind:()=>hi,NodeBuilderFlags:()=>Lr,NodeCheckFlags:()=>Wr,NodeFactoryFlags:()=>tw,NodeFlags:()=>mr,NodeResolutionFeatures:()=>JM,ObjectFlags:()=>Hr,OperationCanceledException:()=>Cr,OperatorPrecedence:()=>ay,OrganizeImports:()=>Yle,OrganizeImportsMode:()=>TG,OuterExpressionKinds:()=>Pi,OutliningElementsCollector:()=>F_e,OutliningSpanKind:()=>OG,OutputFileType:()=>LG,PackageJsonAutoImportPreference:()=>bG,PackageJsonDependencyGroup:()=>vG,PatternMatchKind:()=>W0,PollingInterval:()=>Ji,PollingWatchKind:()=>pi,PragmaKindFlags:()=>Oi,PredicateSemantics:()=>vr,PreparePasteEdits:()=>_fe,PrivateIdentifierKind:()=>iN,ProcessLevel:()=>Wz,ProgramUpdateLevel:()=>NU,QuotePreference:()=>ZQ,RegularExpressionFlags:()=>xr,RelationComparisonResult:()=>yr,Rename:()=>R_e,ScriptElementKind:()=>RG,ScriptElementKindModifier:()=>BG,ScriptKind:()=>yi,ScriptSnapshot:()=>dG,ScriptTarget:()=>vi,SemanticClassificationFormat:()=>SG,SemanticMeaning:()=>UG,SemicolonPreference:()=>FG,SignatureCheckMode:()=>KB,SignatureFlags:()=>ei,SignatureHelp:()=>W_e,SignatureInfo:()=>QV,SignatureKind:()=>Zr,SmartSelectionRange:()=>gue,SnippetKind:()=>Ci,StatisticType:()=>rK,StructureIsReused:()=>Fr,SymbolAccessibility:()=>Br,SymbolDisplay:()=>Nue,SymbolDisplayPartKind:()=>AG,SymbolFlags:()=>qr,SymbolFormatFlags:()=>Rr,SyntaxKind:()=>fr,Ternary:()=>oi,ThrottledCancellationToken:()=>H8,TokenClass:()=>MG,TokenFlags:()=>kr,TransformFlags:()=>Ti,TypeFacts:()=>WB,TypeFlags:()=>$r,TypeFormatFlags:()=>Mr,TypeMapKind:()=>ni,TypePredicateKind:()=>Jr,TypeReferenceSerializationKind:()=>zr,UnionReduction:()=>Ar,UpToDateStatusType:()=>W$,VarianceFlags:()=>Kr,Version:()=>bn,VersionRange:()=>kn,WatchDirectoryFlags:()=>xi,WatchDirectoryKind:()=>di,WatchFileKind:()=>ui,WatchLogLevel:()=>LU,WatchType:()=>F$,accessPrivateIdentifier:()=>bz,addEmitFlags:()=>kw,addEmitHelper:()=>qw,addEmitHelpers:()=>Uw,addInternalEmitFlags:()=>Tw,addNodeFactoryPatcher:()=>rw,addObjectAllocatorPatcher:()=>Bx,addRange:()=>se,addRelatedInfo:()=>aT,addSyntheticLeadingComment:()=>Lw,addSyntheticTrailingComment:()=>Rw,addToSeen:()=>bx,advancedAsyncSuperHelper:()=>BN,affectsDeclarationPathOptionDeclarations:()=>MO,affectsEmitOptionDeclarations:()=>jO,allKeysStartWithDot:()=>gR,altDirectorySeparator:()=>_o,and:()=>Zt,append:()=>ie,appendIfUnique:()=>le,arrayFrom:()=>Oe,arrayIsEqualTo:()=>te,arrayIsHomogeneous:()=>kT,arrayOf:()=>Ie,arrayReverseIterator:()=>ue,arrayToMap:()=>Me,arrayToMultiMap:()=>Be,arrayToNumericMap:()=>Re,assertType:()=>nn,assign:()=>Le,asyncSuperHelper:()=>RN,attachFileToDiagnostics:()=>Kx,base64decode:()=>Tb,base64encode:()=>Sb,binarySearch:()=>Te,binarySearchKey:()=>Ce,bindSourceFile:()=>GR,breakIntoCharacterSpans:()=>c1,breakIntoWordSpans:()=>l1,buildLinkParts:()=>jY,buildOpts:()=>HO,buildOverload:()=>xfe,bundlerModuleNameResolver:()=>zM,canBeConvertedToAsync:()=>I1,canHaveDecorators:()=>SI,canHaveExportModifier:()=>WT,canHaveFlowNode:()=>Og,canHaveIllegalDecorators:()=>$A,canHaveIllegalModifiers:()=>HA,canHaveIllegalType:()=>VA,canHaveIllegalTypeParameters:()=>WA,canHaveJSDoc:()=>Lg,canHaveLocals:()=>su,canHaveModifiers:()=>kI,canHaveModuleSpecifier:()=>hg,canHaveSymbol:()=>au,canIncludeBindAndCheckDiagnostics:()=>pT,canJsonReportNoInputFiles:()=>gj,canProduceDiagnostics:()=>Cq,canUsePropertyAccess:()=>HT,canWatchAffectingLocation:()=>GW,canWatchAtTypes:()=>$W,canWatchDirectoryOrFile:()=>VW,canWatchDirectoryOrFilePath:()=>WW,cartesianProduct:()=>an,cast:()=>nt,chainBundle:()=>$J,chainDiagnosticMessages:()=>Zx,changeAnyExtension:()=>Ho,changeCompilerHostLikeToUseCache:()=>$U,changeExtension:()=>$S,changeFullExtension:()=>Ko,changesAffectModuleResolution:()=>Zu,changesAffectingProgramStructure:()=>ed,characterCodeToRegularExpressionFlag:()=>Ia,childIsDecorated:()=>mm,classElementOrClassElementParameterIsDecorated:()=>hm,classHasClassThisAssignment:()=>Lz,classHasDeclaredOrExplicitlyAssignedName:()=>zz,classHasExplicitlyAssignedName:()=>Jz,classOrConstructorParameterIsDecorated:()=>gm,classicNameResolver:()=>LR,classifier:()=>k7,cleanExtendedConfigCache:()=>EU,clear:()=>F,clearMap:()=>ux,clearSharedExtendedConfigFileWatcher:()=>FU,climbPastPropertyAccess:()=>rX,clone:()=>qe,cloneCompilerOptions:()=>SQ,closeFileWatcher:()=>nx,closeFileWatcherOf:()=>RU,codefix:()=>T7,collapseTextChangeRangesAcrossMultipleVersions:()=>Qs,collectExternalModuleInfo:()=>XJ,combine:()=>oe,combinePaths:()=>jo,commandLineOptionOfCustomType:()=>VO,commentPragmas:()=>Li,commonOptionsWithBuild:()=>EO,compact:()=>ne,compareBooleans:()=>Ot,compareDataObjects:()=>_x,compareDiagnostics:()=>nk,compareEmitHelpers:()=>aN,compareNumberOfDirectorySeparators:()=>zS,comparePaths:()=>Zo,comparePathsCaseInsensitive:()=>Yo,comparePathsCaseSensitive:()=>Qo,comparePatternKeys:()=>yR,compareProperties:()=>It,compareStringsCaseInsensitive:()=>St,compareStringsCaseInsensitiveEslintCompatible:()=>Tt,compareStringsCaseSensitive:()=>Ct,compareStringsCaseSensitiveUI:()=>At,compareTextSpans:()=>bt,compareValues:()=>vt,compilerOptionsAffectDeclarationPath:()=>Wk,compilerOptionsAffectEmit:()=>Vk,compilerOptionsAffectSemanticDiagnostics:()=>Uk,compilerOptionsDidYouMeanDiagnostics:()=>cL,compilerOptionsIndicateEsModules:()=>HQ,computeCommonSourceDirectoryOfFilenames:()=>zU,computeLineAndCharacterOfPosition:()=>Ra,computeLineOfPosition:()=>Ba,computeLineStarts:()=>Oa,computePositionOfLineAndCharacter:()=>ja,computeSignatureWithDiagnostics:()=>FW,computeSuggestionDiagnostics:()=>S1,computedOptions:()=>gk,concatenate:()=>K,concatenateDiagnosticMessageChains:()=>ek,consumesNodeCoreModules:()=>PZ,contains:()=>T,containsIgnoredPath:()=>IT,containsObjectRestOrSpread:()=>bI,containsParseError:()=>yd,containsPath:()=>ea,convertCompilerOptionsForTelemetry:()=>Kj,convertCompilerOptionsFromJson:()=>xj,convertJsonOption:()=>Fj,convertToBase64:()=>kb,convertToJson:()=>BL,convertToObject:()=>RL,convertToOptionsWithAbsolutePaths:()=>QL,convertToRelativePath:()=>ia,convertToTSConfig:()=>qL,convertTypeAcquisitionFromJson:()=>kj,copyComments:()=>QY,copyEntries:()=>od,copyLeadingComments:()=>eZ,copyProperties:()=>Ve,copyTrailingAsLeadingComments:()=>nZ,copyTrailingComments:()=>tZ,couldStartTrivia:()=>Xa,countWhere:()=>w,createAbstractBuilder:()=>zW,createAccessorPropertyBackingField:()=>fI,createAccessorPropertyGetRedirector:()=>mI,createAccessorPropertySetRedirector:()=>gI,createBaseNodeFactory:()=>KC,createBinaryExpressionTrampoline:()=>cI,createBuilderProgram:()=>EW,createBuilderProgramUsingIncrementalBuildInfo:()=>LW,createBuilderStatusReporter:()=>Y$,createCacheableExportInfoMap:()=>o0,createCachedDirectoryStructureHost:()=>wU,createClassifier:()=>h0,createCommentDirectivesMap:()=>Jd,createCompilerDiagnostic:()=>Qx,createCompilerDiagnosticForInvalidCustomType:()=>ZO,createCompilerDiagnosticFromMessageChain:()=>Yx,createCompilerHost:()=>qU,createCompilerHostFromProgramHost:()=>P$,createCompilerHostWorker:()=>WU,createDetachedDiagnostic:()=>Wx,createDiagnosticCollection:()=>_y,createDiagnosticForFileFromMessageChain:()=>Wp,createDiagnosticForNode:()=>Rp,createDiagnosticForNodeArray:()=>Bp,createDiagnosticForNodeArrayFromMessageChain:()=>qp,createDiagnosticForNodeFromMessageChain:()=>zp,createDiagnosticForNodeInSourceFile:()=>Jp,createDiagnosticForRange:()=>Hp,createDiagnosticMessageChainFromDiagnostic:()=>$p,createDiagnosticReporter:()=>a$,createDocumentPositionMapper:()=>zJ,createDocumentRegistry:()=>I0,createDocumentRegistryInternal:()=>O0,createEmitAndSemanticDiagnosticsBuilderProgram:()=>JW,createEmitHelperFactory:()=>oN,createEmptyExports:()=>iA,createEvaluator:()=>gC,createExpressionForJsxElement:()=>lA,createExpressionForJsxFragment:()=>_A,createExpressionForObjectLiteralElementLike:()=>fA,createExpressionForPropertyName:()=>pA,createExpressionFromEntityName:()=>dA,createExternalHelpersImportDeclarationIfNeeded:()=>AA,createFileDiagnostic:()=>Gx,createFileDiagnosticFromMessageChain:()=>Vp,createFlowNode:()=>HR,createForOfBindingStatement:()=>uA,createFutureSourceFile:()=>n0,createGetCanonicalFileName:()=>Wt,createGetIsolatedDeclarationErrors:()=>Dq,createGetSourceFile:()=>UU,createGetSymbolAccessibilityDiagnosticForNode:()=>Nq,createGetSymbolAccessibilityDiagnosticForNodeName:()=>wq,createGetSymbolWalker:()=>tB,createIncrementalCompilerHost:()=>z$,createIncrementalProgram:()=>q$,createJsxFactoryExpression:()=>cA,createLanguageService:()=>X8,createLanguageServiceSourceFile:()=>U8,createMemberAccessForPropertyName:()=>oA,createModeAwareCache:()=>DM,createModeAwareCacheKey:()=>NM,createModeMismatchDetails:()=>pd,createModuleNotFoundChain:()=>dd,createModuleResolutionCache:()=>AM,createModuleResolutionLoader:()=>vV,createModuleResolutionLoaderUsingGlobalCache:()=>n$,createModuleSpecifierResolutionHost:()=>KQ,createMultiMap:()=>$e,createNameResolver:()=>vC,createNodeConverters:()=>QC,createNodeFactory:()=>iw,createOptionNameMap:()=>GO,createOverload:()=>bfe,createPackageJsonImportFilter:()=>EZ,createPackageJsonInfo:()=>FZ,createParenthesizerRules:()=>GC,createPatternMatcher:()=>H0,createPrinter:()=>kU,createPrinterWithDefaults:()=>yU,createPrinterWithRemoveComments:()=>vU,createPrinterWithRemoveCommentsNeverAsciiEscape:()=>bU,createPrinterWithRemoveCommentsOmitTrailingSemicolon:()=>xU,createProgram:()=>LV,createProgramDiagnostics:()=>KV,createProgramHost:()=>O$,createPropertyNameNodeForIdentifierOrLiteral:()=>zT,createQueue:()=>Ge,createRange:()=>Ab,createRedirectedBuilderProgram:()=>RW,createResolutionCache:()=>r$,createRuntimeTypeSerializer:()=>Zz,createScanner:()=>gs,createSemanticDiagnosticsBuilderProgram:()=>BW,createSet:()=>Xe,createSolutionBuilder:()=>nH,createSolutionBuilderHost:()=>eH,createSolutionBuilderWithWatch:()=>rH,createSolutionBuilderWithWatchHost:()=>tH,createSortedArray:()=>Y,createSourceFile:()=>eO,createSourceMapGenerator:()=>kJ,createSourceMapSource:()=>gw,createSuperAccessVariableStatement:()=>rq,createSymbolTable:()=>Gu,createSymlinkCache:()=>Qk,createSyntacticTypeNodeBuilder:()=>UK,createSystemWatchFunctions:()=>oo,createTextChange:()=>LQ,createTextChangeFromStartLength:()=>OQ,createTextChangeRange:()=>Gs,createTextRangeFromNode:()=>PQ,createTextRangeFromSpan:()=>IQ,createTextSpan:()=>Ws,createTextSpanFromBounds:()=>$s,createTextSpanFromNode:()=>FQ,createTextSpanFromRange:()=>AQ,createTextSpanFromStringLiteralLikeContent:()=>EQ,createTextWriter:()=>Oy,createTokenRange:()=>Mb,createTypeChecker:()=>nJ,createTypeReferenceDirectiveResolutionCache:()=>IM,createTypeReferenceResolutionLoader:()=>kV,createWatchCompilerHost:()=>U$,createWatchCompilerHostOfConfigFile:()=>M$,createWatchCompilerHostOfFilesAndCompilerOptions:()=>R$,createWatchFactory:()=>E$,createWatchHost:()=>D$,createWatchProgram:()=>V$,createWatchStatusReporter:()=>_$,createWriteFileMeasuringIO:()=>VU,declarationNameToString:()=>Ap,decodeMappings:()=>EJ,decodedTextSpanIntersectsWith:()=>Js,deduplicate:()=>Q,defaultHoverMaximumTruncationLength:()=>$u,defaultInitCompilerOptions:()=>YO,defaultMaximumTruncationLength:()=>Vu,diagnosticCategoryName:()=>ci,diagnosticToString:()=>GZ,diagnosticsEqualityComparer:()=>ak,directoryProbablyExists:()=>Db,directorySeparator:()=>lo,displayPart:()=>SY,displayPartsToString:()=>R8,disposeEmitNodes:()=>vw,documentSpansEqual:()=>fY,dumpTracingLegend:()=>pr,elementAt:()=>pe,elideNodes:()=>_I,emitDetachedComments:()=>bv,emitFiles:()=>fU,emitFilesAndReportErrors:()=>T$,emitFilesAndReportErrorsAndGetExitStatus:()=>C$,emitModuleKindIsNonNodeESM:()=>Ok,emitNewLineBeforeLeadingCommentOfPosition:()=>vv,emitResolverSkipsTypeChecking:()=>pU,emitSkippedWithNoDiagnostics:()=>JV,emptyArray:()=>l,emptyFileSystemEntries:()=>rT,emptyMap:()=>_,emptyOptions:()=>kG,endsWith:()=>Mt,ensurePathIsNonModuleName:()=>$o,ensureScriptKind:()=>bS,ensureTrailingDirectorySeparator:()=>Wo,entityNameToString:()=>Mp,enumerateInsertsAndDeletes:()=>on,equalOwnProperties:()=>je,equateStringsCaseInsensitive:()=>gt,equateStringsCaseSensitive:()=>ht,equateValues:()=>mt,escapeJsxAttributeString:()=>Dy,escapeLeadingUnderscores:()=>fc,escapeNonAsciiString:()=>Sy,escapeSnippetText:()=>BT,escapeString:()=>xy,escapeTemplateSubstitution:()=>dy,evaluatorResult:()=>mC,every:()=>v,exclusivelyPrefixedNodeCoreModules:()=>wC,executeCommandLine:()=>vK,expandPreOrPostfixIncrementOrDecrementExpression:()=>mA,explainFiles:()=>y$,explainIfFileIsRedirectAndImpliedFormat:()=>v$,exportAssignmentIsAlias:()=>mh,expressionResultIsUnused:()=>AT,extend:()=>Ue,extensionFromPath:()=>ZS,extensionIsTS:()=>QS,extensionsNotSupportingExtensionlessResolution:()=>PS,externalHelpersModuleNameText:()=>Uu,factory:()=>mw,fileExtensionIs:()=>ko,fileExtensionIsOneOf:()=>So,fileIncludeReasonToDiagnostics:()=>k$,fileShouldUseJavaScriptRequire:()=>e0,filter:()=>N,filterMutate:()=>D,filterSemanticDiagnostics:()=>qV,find:()=>b,findAncestor:()=>uc,findBestPatternMatch:()=>Kt,findChildOfKind:()=>OX,findComputedPropertyNameCacheAssignment:()=>hI,findConfigFile:()=>BU,findConstructorDeclaration:()=>yC,findContainingList:()=>LX,findDiagnosticForNode:()=>OZ,findFirstNonJsxWhitespaceToken:()=>GX,findIndex:()=>k,findLast:()=>x,findLastIndex:()=>S,findListItemInfo:()=>AX,findModifier:()=>_Y,findNextToken:()=>QX,findPackageJson:()=>DZ,findPackageJsons:()=>NZ,findPrecedingMatchingToken:()=>cQ,findPrecedingToken:()=>YX,findSuperStatementIndexPath:()=>sz,findTokenOnLeftOfPosition:()=>XX,findUseStrictPrologue:()=>bA,first:()=>ge,firstDefined:()=>f,firstDefinedIterator:()=>m,firstIterator:()=>he,firstOrOnly:()=>BZ,firstOrUndefined:()=>fe,firstOrUndefinedIterator:()=>me,fixupCompilerOptions:()=>U1,flatMap:()=>O,flatMapIterator:()=>j,flatMapToMutable:()=>L,flatten:()=>I,flattenCommaList:()=>vI,flattenDestructuringAssignment:()=>Cz,flattenDestructuringBinding:()=>Dz,flattenDiagnosticMessageText:()=>cV,forEach:()=>d,forEachAncestor:()=>nd,forEachAncestorDirectory:()=>sa,forEachAncestorDirectoryStoppingAtGlobalCache:()=>TR,forEachChild:()=>XI,forEachChildRecursively:()=>QI,forEachDynamicImportOrRequireCall:()=>DC,forEachEmittedFile:()=>Kq,forEachEnclosingBlockScopeContainer:()=>Pp,forEachEntry:()=>rd,forEachExternalModuleToImportFrom:()=>c0,forEachImportClauseDeclaration:()=>Cg,forEachKey:()=>id,forEachLeadingCommentRange:()=>os,forEachNameInAccessChainWalkingLeft:()=>Nx,forEachNameOfDefaultExport:()=>g0,forEachOptionsSyntaxByName:()=>MC,forEachProjectReference:()=>OC,forEachPropertyAssignment:()=>Vf,forEachResolvedProjectReference:()=>IC,forEachReturnStatement:()=>Df,forEachRight:()=>p,forEachTrailingCommentRange:()=>as,forEachTsConfigPropArray:()=>Hf,forEachUnique:()=>gY,forEachYieldExpression:()=>Ff,formatColorAndReset:()=>iV,formatDiagnostic:()=>GU,formatDiagnostics:()=>KU,formatDiagnosticsWithColorAndContext:()=>sV,formatGeneratedName:()=>pI,formatGeneratedNamePart:()=>dI,formatLocation:()=>aV,formatMessage:()=>Xx,formatStringFromArgs:()=>zx,formatting:()=>ude,generateDjb2Hash:()=>Mi,generateTSConfig:()=>XL,getAdjustedReferenceLocation:()=>UX,getAdjustedRenameLocation:()=>VX,getAliasDeclarationFromName:()=>ph,getAllAccessorDeclarations:()=>pv,getAllDecoratorsOfClass:()=>fz,getAllDecoratorsOfClassElement:()=>mz,getAllJSDocTags:()=>sl,getAllJSDocTagsOfKind:()=>cl,getAllKeys:()=>Pe,getAllProjectOutputs:()=>_U,getAllSuperTypeNodes:()=>xh,getAllowImportingTsExtensions:()=>hk,getAllowJSCompilerOption:()=>Ak,getAllowSyntheticDefaultImports:()=>Tk,getAncestor:()=>Th,getAnyExtensionFromPath:()=>Po,getAreDeclarationMapsEnabled:()=>Pk,getAssignedExpandoInitializer:()=>$m,getAssignedName:()=>wc,getAssignmentDeclarationKind:()=>tg,getAssignmentDeclarationPropertyAccessKind:()=>ug,getAssignmentTargetKind:()=>Xg,getAutomaticTypeDirectiveNames:()=>bM,getBaseFileName:()=>Fo,getBinaryOperatorPrecedence:()=>cy,getBuildInfo:()=>gU,getBuildInfoFileVersionMap:()=>jW,getBuildInfoText:()=>mU,getBuildOrderFromAnyBuildOrder:()=>Q$,getBuilderCreationParameters:()=>NW,getBuilderFileEmit:()=>eW,getCanonicalDiagnostic:()=>Kp,getCheckFlags:()=>rx,getClassExtendsHeritageElement:()=>vh,getClassLikeDeclarationOfSymbol:()=>mx,getCombinedLocalAndExportSymbolFlags:()=>ax,getCombinedModifierFlags:()=>ic,getCombinedNodeFlags:()=>ac,getCombinedNodeFlagsAlwaysIncludeJSDoc:()=>oc,getCommentRange:()=>Pw,getCommonSourceDirectory:()=>cU,getCommonSourceDirectoryOfConfig:()=>lU,getCompilerOptionValue:()=>$k,getConditions:()=>yM,getConfigFileParsingDiagnostics:()=>PV,getConstantValue:()=>Jw,getContainerFlags:()=>ZR,getContainerNode:()=>hX,getContainingClass:()=>Xf,getContainingClassExcludingClassDecorators:()=>Zf,getContainingClassStaticBlock:()=>Qf,getContainingFunction:()=>Kf,getContainingFunctionDeclaration:()=>Gf,getContainingFunctionOrClassStaticBlock:()=>Yf,getContainingNodeArray:()=>OT,getContainingObjectLiteralElement:()=>Y8,getContextualTypeFromParent:()=>aZ,getContextualTypeFromParentOrAncestorTypeNode:()=>BX,getDeclarationDiagnostics:()=>Fq,getDeclarationEmitExtensionForPath:()=>Wy,getDeclarationEmitOutputFilePath:()=>Uy,getDeclarationEmitOutputFilePathWorker:()=>Vy,getDeclarationFileExtension:()=>dO,getDeclarationFromName:()=>_h,getDeclarationModifierFlagsFromSymbol:()=>ix,getDeclarationOfKind:()=>Hu,getDeclarationsOfKind:()=>Ku,getDeclaredExpandoInitializer:()=>Wm,getDecorators:()=>Nc,getDefaultCompilerOptions:()=>B8,getDefaultFormatCodeSettings:()=>EG,getDefaultLibFileName:()=>Ds,getDefaultLibFilePath:()=>e7,getDefaultLikeExportInfo:()=>f0,getDefaultLikeExportNameFromDeclaration:()=>zZ,getDefaultResolutionModeForFileWorker:()=>BV,getDiagnosticText:()=>mL,getDiagnosticsWithinSpan:()=>LZ,getDirectoryPath:()=>Do,getDirectoryToWatchFailedLookupLocation:()=>XW,getDirectoryToWatchFailedLookupLocationFromTypeRoot:()=>ZW,getDocumentPositionMapper:()=>b1,getDocumentSpansEqualityComparer:()=>mY,getESModuleInterop:()=>Sk,getEditsForFileRename:()=>M0,getEffectiveBaseTypeNode:()=>yh,getEffectiveConstraintOfTypeParameter:()=>ul,getEffectiveContainerForJSDocTemplateTag:()=>Jg,getEffectiveImplementsTypeNodes:()=>bh,getEffectiveInitializer:()=>Vm,getEffectiveJSDocHost:()=>Ug,getEffectiveModifierFlags:()=>Bv,getEffectiveModifierFlagsAlwaysIncludeJSDoc:()=>Jv,getEffectiveModifierFlagsNoCache:()=>Vv,getEffectiveReturnTypeNode:()=>gv,getEffectiveSetAccessorTypeAnnotationNode:()=>yv,getEffectiveTypeAnnotationNode:()=>fv,getEffectiveTypeParameterDeclarations:()=>_l,getEffectiveTypeRoots:()=>uM,getElementOrPropertyAccessArgumentExpressionOrName:()=>lg,getElementOrPropertyAccessName:()=>_g,getElementsOfBindingOrAssignmentPattern:()=>qA,getEmitDeclarations:()=>Dk,getEmitFlags:()=>Zd,getEmitHelpers:()=>Ww,getEmitModuleDetectionKind:()=>xk,getEmitModuleFormatOfFileWorker:()=>MV,getEmitModuleKind:()=>vk,getEmitModuleResolutionKind:()=>bk,getEmitScriptTarget:()=>yk,getEmitStandardClassFields:()=>qk,getEnclosingBlockScopeContainer:()=>Ep,getEnclosingContainer:()=>Fp,getEncodedSemanticClassifications:()=>w0,getEncodedSyntacticClassifications:()=>P0,getEndLinePosition:()=>Cd,getEntityNameFromTypeNode:()=>_m,getEntrypointsFromPackageJsonInfo:()=>aR,getErrorCountForSummary:()=>d$,getErrorSpanForNode:()=>Qp,getErrorSummaryText:()=>g$,getEscapedTextOfIdentifierOrLiteral:()=>Uh,getEscapedTextOfJsxAttributeName:()=>tC,getEscapedTextOfJsxNamespacedName:()=>iC,getExpandoInitializer:()=>Hm,getExportAssignmentExpression:()=>gh,getExportInfoMap:()=>p0,getExportNeedsImportStarHelper:()=>HJ,getExpressionAssociativity:()=>ny,getExpressionPrecedence:()=>iy,getExternalHelpersModuleName:()=>EA,getExternalModuleImportEqualsDeclarationExpression:()=>Cm,getExternalModuleName:()=>kg,getExternalModuleNameFromDeclaration:()=>Jy,getExternalModuleNameFromPath:()=>zy,getExternalModuleNameLiteral:()=>OA,getExternalModuleRequireArgument:()=>wm,getFallbackOptions:()=>MU,getFileEmitOutput:()=>GV,getFileMatcherPatterns:()=>mS,getFileNamesFromConfigSpecs:()=>jj,getFileWatcherEventKind:()=>Xi,getFilesInErrorForSummary:()=>p$,getFirstConstructorWithBody:()=>iv,getFirstIdentifier:()=>sb,getFirstNonSpaceCharacterPosition:()=>GY,getFirstProjectOutput:()=>dU,getFixableErrorSpanExpression:()=>MZ,getFormatCodeSettingsForWriting:()=>XZ,getFullWidth:()=>sd,getFunctionFlags:()=>Oh,getHeritageClause:()=>Sh,getHostSignatureFromJSDoc:()=>qg,getIdentifierAutoGenerate:()=>tN,getIdentifierGeneratedImportReference:()=>rN,getIdentifierTypeArguments:()=>Zw,getImmediatelyInvokedFunctionExpression:()=>om,getImpliedNodeFormatForEmitWorker:()=>RV,getImpliedNodeFormatForFile:()=>AV,getImpliedNodeFormatForFileWorker:()=>IV,getImportNeedsImportDefaultHelper:()=>GJ,getImportNeedsImportStarHelper:()=>KJ,getIndentString:()=>Ay,getInferredLibraryNameResolveFrom:()=>CV,getInitializedVariables:()=>Zb,getInitializerOfBinaryExpression:()=>dg,getInitializerOfBindingOrAssignmentElement:()=>jA,getInterfaceBaseTypeNodes:()=>kh,getInternalEmitFlags:()=>ep,getInvokedExpression:()=>um,getIsFileExcluded:()=>d0,getIsolatedModules:()=>kk,getJSDocAugmentsTag:()=>jc,getJSDocClassTag:()=>Rc,getJSDocCommentRanges:()=>vf,getJSDocCommentsAndTags:()=>jg,getJSDocDeprecatedTag:()=>Kc,getJSDocDeprecatedTagNoCache:()=>Gc,getJSDocEnumTag:()=>Xc,getJSDocHost:()=>Vg,getJSDocImplementsTags:()=>Mc,getJSDocOverloadTags:()=>zg,getJSDocOverrideTagNoCache:()=>Hc,getJSDocParameterTags:()=>Ec,getJSDocParameterTagsNoCache:()=>Pc,getJSDocPrivateTag:()=>zc,getJSDocPrivateTagNoCache:()=>qc,getJSDocProtectedTag:()=>Uc,getJSDocProtectedTagNoCache:()=>Vc,getJSDocPublicTag:()=>Bc,getJSDocPublicTagNoCache:()=>Jc,getJSDocReadonlyTag:()=>Wc,getJSDocReadonlyTagNoCache:()=>$c,getJSDocReturnTag:()=>Yc,getJSDocReturnType:()=>rl,getJSDocRoot:()=>Wg,getJSDocSatisfiesExpressionType:()=>ZT,getJSDocSatisfiesTag:()=>el,getJSDocTags:()=>ol,getJSDocTemplateTag:()=>Zc,getJSDocThisTag:()=>Qc,getJSDocType:()=>nl,getJSDocTypeAliasName:()=>UA,getJSDocTypeAssertionType:()=>CA,getJSDocTypeParameterDeclarations:()=>hv,getJSDocTypeParameterTags:()=>Ic,getJSDocTypeParameterTagsNoCache:()=>Oc,getJSDocTypeTag:()=>tl,getJSXImplicitImportBase:()=>Kk,getJSXRuntimeImport:()=>Gk,getJSXTransformEnabled:()=>Hk,getKeyForCompilerOptions:()=>TM,getLanguageVariant:()=>lk,getLastChild:()=>vx,getLeadingCommentRanges:()=>_s,getLeadingCommentRangesOfNode:()=>yf,getLeftmostAccessExpression:()=>wx,getLeftmostExpression:()=>Dx,getLibFileNameFromLibReference:()=>AC,getLibNameFromLibReference:()=>PC,getLibraryNameFromLibFileName:()=>wV,getLineAndCharacterOfPosition:()=>za,getLineInfo:()=>wJ,getLineOfLocalPosition:()=>nv,getLineStartPositionForPosition:()=>xX,getLineStarts:()=>Ma,getLinesBetweenPositionAndNextNonWhitespaceCharacter:()=>Gb,getLinesBetweenPositionAndPrecedingNonWhitespaceCharacter:()=>Kb,getLinesBetweenPositions:()=>Ja,getLinesBetweenRangeEndAndRangeStart:()=>Ub,getLinesBetweenRangeEndPositions:()=>Vb,getLiteralText:()=>rp,getLocalNameForExternalImport:()=>IA,getLocalSymbolForExportDefault:()=>vb,getLocaleSpecificMessage:()=>Vx,getLocaleTimeString:()=>l$,getMappedContextSpan:()=>bY,getMappedDocumentSpan:()=>vY,getMappedLocation:()=>yY,getMatchedFileSpec:()=>b$,getMatchedIncludeSpec:()=>x$,getMeaningFromDeclaration:()=>VG,getMeaningFromLocation:()=>WG,getMembersOfDeclaration:()=>Pf,getModeForFileReference:()=>lV,getModeForResolutionAtIndex:()=>_V,getModeForUsageLocation:()=>dV,getModifiedTime:()=>qi,getModifiers:()=>Dc,getModuleInstanceState:()=>UR,getModuleNameStringLiteralAt:()=>HV,getModuleSpecifierEndingPreference:()=>RS,getModuleSpecifierResolverHost:()=>GQ,getNameForExportedSymbol:()=>JZ,getNameFromImportAttribute:()=>pC,getNameFromIndexInfo:()=>Ip,getNameFromPropertyName:()=>VQ,getNameOfAccessExpression:()=>Tx,getNameOfCompilerOptionValue:()=>HL,getNameOfDeclaration:()=>Cc,getNameOfExpando:()=>Gm,getNameOfJSDocTypedef:()=>kc,getNameOfScriptTarget:()=>zk,getNameOrArgument:()=>cg,getNameTable:()=>Q8,getNamespaceDeclarationNode:()=>Sg,getNewLineCharacter:()=>Pb,getNewLineKind:()=>KZ,getNewLineOrDefaultFromHost:()=>RY,getNewTargetContainer:()=>rm,getNextJSDocCommentLocation:()=>Rg,getNodeChildren:()=>eA,getNodeForGeneratedName:()=>uI,getNodeId:()=>ZB,getNodeKind:()=>yX,getNodeModifiers:()=>mQ,getNodeModulePathParts:()=>UT,getNonAssignedNameOfDeclaration:()=>Tc,getNonAssignmentOperatorForCompoundAssignment:()=>iz,getNonAugmentationDeclaration:()=>gp,getNonDecoratorTokenPosOfNode:()=>qd,getNonIncrementalBuildInfoRoots:()=>MW,getNonModifierTokenPosOfNode:()=>Ud,getNormalizedAbsolutePath:()=>Bo,getNormalizedAbsolutePathWithoutRoot:()=>qo,getNormalizedPathComponents:()=>Ro,getObjectFlags:()=>gx,getOperatorAssociativity:()=>ry,getOperatorPrecedence:()=>sy,getOptionFromName:()=>_L,getOptionsForLibraryResolution:()=>OM,getOptionsNameMap:()=>XO,getOptionsSyntaxByArrayElementValue:()=>LC,getOptionsSyntaxByValue:()=>jC,getOrCreateEmitNode:()=>yw,getOrUpdate:()=>z,getOriginalNode:()=>_c,getOriginalNodeId:()=>UJ,getOutputDeclarationFileName:()=>tU,getOutputDeclarationFileNameWorker:()=>nU,getOutputExtension:()=>Zq,getOutputFileNames:()=>uU,getOutputJSFileNameWorker:()=>iU,getOutputPathsFor:()=>Qq,getOwnEmitOutputFilePath:()=>qy,getOwnKeys:()=>Ee,getOwnValues:()=>Ae,getPackageJsonTypesVersionsPaths:()=>_M,getPackageNameFromTypesPackageName:()=>AR,getPackageScopeForPath:()=>lR,getParameterSymbolFromJSDoc:()=>Bg,getParentNodeInSpan:()=>cY,getParseTreeNode:()=>pc,getParsedCommandLineOfConfigFile:()=>gL,getPathComponents:()=>Ao,getPathFromPathComponents:()=>Io,getPathUpdater:()=>R0,getPathsBasePath:()=>Ky,getPatternFromSpec:()=>dS,getPendingEmitKindWithSeen:()=>uW,getPositionOfLineAndCharacter:()=>La,getPossibleGenericSignatures:()=>_Q,getPossibleOriginalInputExtensionForExtension:()=>$y,getPossibleOriginalInputPathWithoutChangingExt:()=>Hy,getPossibleTypeArgumentsInfo:()=>uQ,getPreEmitDiagnostics:()=>HU,getPrecedingNonSpaceCharacterPosition:()=>XY,getPrivateIdentifier:()=>yz,getProperties:()=>cz,getProperty:()=>Fe,getPropertyAssignmentAliasLikeExpression:()=>hh,getPropertyNameForPropertyNameNode:()=>Jh,getPropertyNameFromType:()=>cC,getPropertyNameOfBindingOrAssignmentElement:()=>BA,getPropertySymbolFromBindingElement:()=>sY,getPropertySymbolsFromContextualType:()=>Z8,getQuoteFromPreference:()=>nY,getQuotePreference:()=>tY,getRangesWhere:()=>H,getRefactorContextSpan:()=>jZ,getReferencedFileLocation:()=>FV,getRegexFromPattern:()=>gS,getRegularExpressionForWildcard:()=>lS,getRegularExpressionsForWildcards:()=>_S,getRelativePathFromDirectory:()=>ra,getRelativePathFromFile:()=>oa,getRelativePathToDirectoryOrUrl:()=>aa,getRenameLocation:()=>ZY,getReplacementSpanForContextToken:()=>DQ,getResolutionDiagnostic:()=>WV,getResolutionModeOverride:()=>mV,getResolveJsonModule:()=>Nk,getResolvePackageJsonExports:()=>Ck,getResolvePackageJsonImports:()=>wk,getResolvedExternalModuleName:()=>Ry,getResolvedModuleFromResolution:()=>_d,getResolvedTypeReferenceDirectiveFromResolution:()=>ud,getRestIndicatorOfBindingOrAssignmentElement:()=>RA,getRestParameterElementType:()=>Ef,getRightMostAssignedExpression:()=>Qm,getRootDeclaration:()=>Yh,getRootDirectoryOfResolutionCache:()=>e$,getRootLength:()=>No,getScriptKind:()=>WY,getScriptKindFromFileName:()=>xS,getScriptTargetFeatures:()=>tp,getSelectedEffectiveModifierFlags:()=>jv,getSelectedSyntacticModifierFlags:()=>Mv,getSemanticClassifications:()=>T0,getSemanticJsxChildren:()=>ly,getSetAccessorTypeAnnotationNode:()=>av,getSetAccessorValueParameter:()=>ov,getSetExternalModuleIndicator:()=>pk,getShebang:()=>ds,getSingleVariableOfVariableStatement:()=>Ag,getSnapshotText:()=>zQ,getSnippetElement:()=>Hw,getSourceFileOfModule:()=>bd,getSourceFileOfNode:()=>vd,getSourceFilePathInNewDir:()=>Qy,getSourceFileVersionAsHashFromText:()=>A$,getSourceFilesToEmit:()=>Gy,getSourceMapRange:()=>Cw,getSourceMapper:()=>v1,getSourceTextOfNodeFromSourceFile:()=>Vd,getSpanOfTokenAtPosition:()=>Gp,getSpellingSuggestion:()=>Lt,getStartPositionOfLine:()=>Sd,getStartPositionOfRange:()=>Hb,getStartsOnNewLine:()=>Fw,getStaticPropertiesAndClassStaticBlock:()=>_z,getStrictOptionValue:()=>Jk,getStringComparer:()=>wt,getSubPatternFromSpec:()=>pS,getSuperCallFromStatement:()=>oz,getSuperContainer:()=>im,getSupportedCodeFixes:()=>J8,getSupportedExtensions:()=>AS,getSupportedExtensionsWithJsonIfResolveJsonModule:()=>IS,getSwitchedType:()=>uZ,getSymbolId:()=>eJ,getSymbolNameForPrivateIdentifier:()=>Vh,getSymbolTarget:()=>$Y,getSyntacticClassifications:()=>E0,getSyntacticModifierFlags:()=>zv,getSyntacticModifierFlagsNoCache:()=>Wv,getSynthesizedDeepClone:()=>RC,getSynthesizedDeepCloneWithReplacements:()=>BC,getSynthesizedDeepClones:()=>zC,getSynthesizedDeepClonesWithReplacements:()=>qC,getSyntheticLeadingComments:()=>Iw,getSyntheticTrailingComments:()=>jw,getTargetLabel:()=>iX,getTargetOfBindingOrAssignmentElement:()=>MA,getTemporaryModuleResolutionState:()=>cR,getTextOfConstantValue:()=>ip,getTextOfIdentifierOrLiteral:()=>qh,getTextOfJSDocComment:()=>ll,getTextOfJsxAttributeName:()=>nC,getTextOfJsxNamespacedName:()=>oC,getTextOfNode:()=>Xd,getTextOfNodeFromSourceText:()=>Gd,getTextOfPropertyName:()=>jp,getThisContainer:()=>em,getThisParameter:()=>sv,getTokenAtPosition:()=>HX,getTokenPosOfNode:()=>zd,getTokenSourceMapRange:()=>Nw,getTouchingPropertyName:()=>WX,getTouchingToken:()=>$X,getTrailingCommentRanges:()=>us,getTrailingSemicolonDeferringWriter:()=>Ly,getTransformers:()=>jq,getTsBuildInfoEmitOutputFilePath:()=>Gq,getTsConfigObjectLiteralExpression:()=>Wf,getTsConfigPropArrayElementValue:()=>$f,getTypeAnnotationNode:()=>mv,getTypeArgumentOrTypeParameterList:()=>gQ,getTypeKeywordOfTypeOnlyImport:()=>dY,getTypeNode:()=>Qw,getTypeNodeIfAccessible:()=>pZ,getTypeParameterFromJsDoc:()=>$g,getTypeParameterOwner:()=>Ys,getTypesPackageName:()=>ER,getUILocale:()=>Et,getUniqueName:()=>YY,getUniqueSymbolId:()=>KY,getUseDefineForClassFields:()=>Ik,getWatchErrorSummaryDiagnosticMessage:()=>f$,getWatchFactory:()=>jU,group:()=>Je,groupBy:()=>ze,guessIndentation:()=>Lu,handleNoEmitOptions:()=>zV,handleWatchOptionsConfigDirTemplateSubstitution:()=>aj,hasAbstractModifier:()=>Pv,hasAccessorModifier:()=>Iv,hasAmbientModifier:()=>Av,hasChangesInResolutions:()=>hd,hasContextSensitiveParameters:()=>LT,hasDecorators:()=>Lv,hasDocComment:()=>pQ,hasDynamicName:()=>Rh,hasEffectiveModifier:()=>wv,hasEffectiveModifiers:()=>Tv,hasEffectiveReadonlyModifier:()=>Ov,hasExtension:()=>xo,hasImplementationTSFileExtension:()=>jS,hasIndexSignature:()=>_Z,hasInferredType:()=>kC,hasInitializer:()=>Eu,hasInvalidEscape:()=>fy,hasJSDocNodes:()=>Du,hasJSDocParameterTags:()=>Lc,hasJSFileExtension:()=>OS,hasJsonModuleEmitEnabled:()=>Lk,hasOnlyExpressionInitializer:()=>Pu,hasOverrideModifier:()=>Ev,hasPossibleExternalModuleReference:()=>Np,hasProperty:()=>De,hasPropertyAccessExpressionWithName:()=>oX,hasQuestionToken:()=>wg,hasRecordedExternalHelpers:()=>PA,hasResolutionModeOverride:()=>_C,hasRestParameter:()=>Ru,hasScopeMarker:()=>K_,hasStaticModifier:()=>Fv,hasSyntacticModifier:()=>Nv,hasSyntacticModifiers:()=>Cv,hasTSFileExtension:()=>LS,hasTabstop:()=>KT,hasTrailingDirectorySeparator:()=>To,hasType:()=>Fu,hasTypeArguments:()=>Hg,hasZeroOrOneAsteriskCharacter:()=>Xk,hostGetCanonicalFileName:()=>My,hostUsesCaseSensitiveFileNames:()=>jy,idText:()=>gc,identifierIsThisKeyword:()=>dv,identifierToKeywordKind:()=>hc,identity:()=>st,identitySourceMapConsumer:()=>qJ,ignoreSourceNewlines:()=>Gw,ignoredPaths:()=>Qi,importFromModuleSpecifier:()=>vg,importSyntaxAffectsModuleResolution:()=>fk,indexOfAnyCharCode:()=>C,indexOfNode:()=>Yd,indicesOf:()=>X,inferredTypesContainingFile:()=>TV,injectClassNamedEvaluationHelperBlockIfMissing:()=>qz,injectClassThisAssignmentIfMissing:()=>jz,insertImports:()=>uY,insertSorted:()=>Z,insertStatementAfterCustomPrologue:()=>Md,insertStatementAfterStandardPrologue:()=>jd,insertStatementsAfterCustomPrologue:()=>Ld,insertStatementsAfterStandardPrologue:()=>Od,intersperse:()=>y,intrinsicTagNameToString:()=>aC,introducesArgumentsExoticObject:()=>Mf,inverseJsxOptionMap:()=>CO,isAbstractConstructorSymbol:()=>fx,isAbstractModifier:()=>mD,isAccessExpression:()=>Sx,isAccessibilityModifier:()=>kQ,isAccessor:()=>d_,isAccessorModifier:()=>hD,isAliasableExpression:()=>fh,isAmbientModule:()=>cp,isAmbientPropertyDeclaration:()=>vp,isAnyDirectorySeparator:()=>fo,isAnyImportOrBareOrAccessedRequire:()=>Tp,isAnyImportOrReExport:()=>Dp,isAnyImportOrRequireStatement:()=>Cp,isAnyImportSyntax:()=>Sp,isAnySupportedFileExtension:()=>eT,isApplicableVersionedTypesKey:()=>xR,isArgumentExpressionOfElementAccess:()=>dX,isArray:()=>Qe,isArrayBindingElement:()=>T_,isArrayBindingOrAssignmentElement:()=>P_,isArrayBindingOrAssignmentPattern:()=>E_,isArrayBindingPattern:()=>cF,isArrayLiteralExpression:()=>_F,isArrayLiteralOrObjectLiteralDestructuringPattern:()=>TQ,isArrayTypeNode:()=>UD,isArrowFunction:()=>bF,isAsExpression:()=>LF,isAssertClause:()=>TE,isAssertEntry:()=>CE,isAssertionExpression:()=>W_,isAssertsKeyword:()=>uD,isAssignmentDeclaration:()=>Um,isAssignmentExpression:()=>rb,isAssignmentOperator:()=>eb,isAssignmentPattern:()=>S_,isAssignmentTarget:()=>Qg,isAsteriskToken:()=>eD,isAsyncFunction:()=>Lh,isAsyncModifier:()=>_D,isAutoAccessorPropertyDeclaration:()=>p_,isAwaitExpression:()=>TF,isAwaitKeyword:()=>dD,isBigIntLiteral:()=>qN,isBinaryExpression:()=>NF,isBinaryLogicalOperator:()=>Kv,isBinaryOperatorToken:()=>tI,isBindableObjectDefinePropertyCall:()=>ng,isBindableStaticAccessExpression:()=>og,isBindableStaticElementAccessExpression:()=>ag,isBindableStaticNameExpression:()=>sg,isBindingElement:()=>lF,isBindingElementOfBareOrAccessedRequire:()=>Rm,isBindingName:()=>n_,isBindingOrAssignmentElement:()=>w_,isBindingOrAssignmentPattern:()=>N_,isBindingPattern:()=>k_,isBlock:()=>VF,isBlockLike:()=>t0,isBlockOrCatchScoped:()=>ap,isBlockScope:()=>bp,isBlockScopedContainerTopLevel:()=>dp,isBooleanLiteral:()=>a_,isBreakOrContinueStatement:()=>Cl,isBreakStatement:()=>tE,isBuildCommand:()=>yK,isBuildInfoFile:()=>Hq,isBuilderProgram:()=>h$,isBundle:()=>cP,isCallChain:()=>gl,isCallExpression:()=>fF,isCallExpressionTarget:()=>HG,isCallLikeExpression:()=>L_,isCallLikeOrFunctionLikeExpression:()=>O_,isCallOrNewExpression:()=>j_,isCallOrNewExpressionTarget:()=>GG,isCallSignatureDeclaration:()=>OD,isCallToHelper:()=>JN,isCaseBlock:()=>yE,isCaseClause:()=>ZE,isCaseKeyword:()=>bD,isCaseOrDefaultClause:()=>ku,isCatchClause:()=>nP,isCatchClauseVariableDeclaration:()=>MT,isCatchClauseVariableDeclarationOrBindingElement:()=>sp,isCheckJsEnabledForFile:()=>nT,isCircularBuildOrder:()=>X$,isClassDeclaration:()=>dE,isClassElement:()=>__,isClassExpression:()=>AF,isClassInstanceProperty:()=>f_,isClassLike:()=>u_,isClassMemberModifier:()=>Yl,isClassNamedEvaluationHelperBlock:()=>Bz,isClassOrTypeElement:()=>y_,isClassStaticBlockDeclaration:()=>ED,isClassThisAssignmentBlock:()=>Oz,isColonToken:()=>rD,isCommaExpression:()=>kA,isCommaListExpression:()=>zF,isCommaSequence:()=>SA,isCommaToken:()=>QN,isComment:()=>hQ,isCommonJsExportPropertyAssignment:()=>Lf,isCommonJsExportedExpression:()=>Of,isCompoundAssignment:()=>rz,isComputedNonLiteralName:()=>Op,isComputedPropertyName:()=>kD,isConciseBody:()=>Y_,isConditionalExpression:()=>DF,isConditionalTypeNode:()=>XD,isConstAssertion:()=>hC,isConstTypeReference:()=>kl,isConstructSignatureDeclaration:()=>LD,isConstructorDeclaration:()=>PD,isConstructorTypeNode:()=>JD,isContextualKeyword:()=>Dh,isContinueStatement:()=>eE,isCustomPrologue:()=>ff,isDebuggerStatement:()=>cE,isDeclaration:()=>_u,isDeclarationBindingElement:()=>C_,isDeclarationFileName:()=>uO,isDeclarationName:()=>lh,isDeclarationNameOfEnumOrNamespace:()=>Yb,isDeclarationReadonly:()=>nf,isDeclarationStatement:()=>uu,isDeclarationWithTypeParameterChildren:()=>kp,isDeclarationWithTypeParameters:()=>xp,isDecorator:()=>CD,isDecoratorTarget:()=>QG,isDefaultClause:()=>eP,isDefaultImport:()=>Tg,isDefaultModifier:()=>lD,isDefaultedExpandoInitializer:()=>Km,isDeleteExpression:()=>xF,isDeleteTarget:()=>sh,isDeprecatedDeclaration:()=>$Z,isDestructuringAssignment:()=>ib,isDiskPathRoot:()=>ho,isDoStatement:()=>GF,isDocumentRegistryEntry:()=>A0,isDotDotDotToken:()=>XN,isDottedName:()=>cb,isDynamicName:()=>Bh,isEffectiveExternalModule:()=>hp,isEffectiveStrictModeSourceFile:()=>yp,isElementAccessChain:()=>ml,isElementAccessExpression:()=>pF,isEmittedFileOfProgram:()=>OU,isEmptyArrayLiteral:()=>yb,isEmptyBindingElement:()=>tc,isEmptyBindingPattern:()=>ec,isEmptyObjectLiteral:()=>hb,isEmptyStatement:()=>$F,isEmptyStringLiteral:()=>ym,isEntityName:()=>e_,isEntityNameExpression:()=>ab,isEnumConst:()=>tf,isEnumDeclaration:()=>mE,isEnumMember:()=>aP,isEqualityOperatorKind:()=>cZ,isEqualsGreaterThanToken:()=>oD,isExclamationToken:()=>tD,isExcludedFile:()=>Mj,isExclusivelyTypeOnlyImportOrExport:()=>uV,isExpandoPropertyDeclaration:()=>lC,isExportAssignment:()=>AE,isExportDeclaration:()=>IE,isExportModifier:()=>cD,isExportName:()=>yA,isExportNamespaceAsDefaultDeclaration:()=>Wd,isExportOrDefaultModifier:()=>lI,isExportSpecifier:()=>LE,isExportsIdentifier:()=>Ym,isExportsOrModuleExportsOrAlias:()=>YR,isExpression:()=>V_,isExpressionNode:()=>bm,isExpressionOfExternalModuleImportEqualsDeclaration:()=>gX,isExpressionOfOptionalChainRoot:()=>vl,isExpressionStatement:()=>HF,isExpressionWithTypeArguments:()=>OF,isExpressionWithTypeArgumentsInClassExtendsClause:()=>ob,isExternalModule:()=>rO,isExternalModuleAugmentation:()=>fp,isExternalModuleImportEqualsDeclaration:()=>Tm,isExternalModuleIndicator:()=>X_,isExternalModuleNameRelative:()=>Cs,isExternalModuleReference:()=>JE,isExternalModuleSymbol:()=>Qu,isExternalOrCommonJsModule:()=>Zp,isFileLevelReservedGeneratedIdentifier:()=>Hl,isFileLevelUniqueName:()=>wd,isFileProbablyExternalModule:()=>FI,isFirstDeclarationOfSymbolParameter:()=>xY,isFixablePromiseHandler:()=>D1,isForInOrOfStatement:()=>Q_,isForInStatement:()=>YF,isForInitializer:()=>eu,isForOfStatement:()=>ZF,isForStatement:()=>QF,isFullSourceFile:()=>Dm,isFunctionBlock:()=>Bf,isFunctionBody:()=>Z_,isFunctionDeclaration:()=>uE,isFunctionExpression:()=>vF,isFunctionExpressionOrArrowFunction:()=>RT,isFunctionLike:()=>r_,isFunctionLikeDeclaration:()=>o_,isFunctionLikeKind:()=>c_,isFunctionLikeOrClassStaticBlockDeclaration:()=>i_,isFunctionOrConstructorTypeNode:()=>x_,isFunctionOrModuleBlock:()=>l_,isFunctionSymbol:()=>gg,isFunctionTypeNode:()=>BD,isGeneratedIdentifier:()=>Wl,isGeneratedPrivateIdentifier:()=>$l,isGetAccessor:()=>Nu,isGetAccessorDeclaration:()=>AD,isGetOrSetAccessorDeclaration:()=>pl,isGlobalScopeAugmentation:()=>pp,isGlobalSourceFile:()=>Yp,isGrammarError:()=>Fd,isHeritageClause:()=>tP,isHoistedFunction:()=>mf,isHoistedVariableStatement:()=>hf,isIdentifier:()=>aD,isIdentifierANonContextualKeyword:()=>Ph,isIdentifierName:()=>dh,isIdentifierOrThisTypeNode:()=>GA,isIdentifierPart:()=>fs,isIdentifierStart:()=>ps,isIdentifierText:()=>ms,isIdentifierTypePredicate:()=>qf,isIdentifierTypeReference:()=>xT,isIfStatement:()=>KF,isIgnoredFileFromWildCardWatching:()=>IU,isImplicitGlob:()=>uS,isImportAttribute:()=>NE,isImportAttributeName:()=>Vl,isImportAttributes:()=>wE,isImportCall:()=>_f,isImportClause:()=>kE,isImportDeclaration:()=>xE,isImportEqualsDeclaration:()=>bE,isImportKeyword:()=>vD,isImportMeta:()=>uf,isImportOrExportSpecifier:()=>Rl,isImportOrExportSpecifierName:()=>VY,isImportSpecifier:()=>PE,isImportTypeAssertionContainer:()=>SE,isImportTypeNode:()=>iF,isImportable:()=>a0,isInComment:()=>dQ,isInCompoundLikeAssignment:()=>Yg,isInExpressionContext:()=>xm,isInJSDoc:()=>Im,isInJSFile:()=>Em,isInJSXText:()=>aQ,isInJsonFile:()=>Pm,isInNonReferenceComment:()=>wQ,isInReferenceComment:()=>CQ,isInRightSideOfInternalImportEqualsDeclaration:()=>$G,isInString:()=>nQ,isInTemplateString:()=>oQ,isInTopLevelContext:()=>nm,isInTypeQuery:()=>_v,isIncrementalBuildInfo:()=>kW,isIncrementalBundleEmitBuildInfo:()=>xW,isIncrementalCompilation:()=>Ek,isIndexSignatureDeclaration:()=>jD,isIndexedAccessTypeNode:()=>tF,isInferTypeNode:()=>QD,isInfinityOrNaNString:()=>jT,isInitializedProperty:()=>uz,isInitializedVariable:()=>ex,isInsideJsxElement:()=>sQ,isInsideJsxElementOrAttribute:()=>rQ,isInsideNodeModules:()=>AZ,isInsideTemplateLiteral:()=>xQ,isInstanceOfExpression:()=>mb,isInstantiatedModule:()=>tJ,isInterfaceDeclaration:()=>pE,isInternalDeclaration:()=>zu,isInternalModuleImportEqualsDeclaration:()=>Nm,isInternalName:()=>gA,isIntersectionTypeNode:()=>GD,isIntrinsicJsxName:()=>Ey,isIterationStatement:()=>$_,isJSDoc:()=>SP,isJSDocAllType:()=>mP,isJSDocAugmentsTag:()=>wP,isJSDocAuthorTag:()=>NP,isJSDocCallbackTag:()=>FP,isJSDocClassTag:()=>DP,isJSDocCommentContainingNode:()=>Tu,isJSDocConstructSignature:()=>Ng,isJSDocDeprecatedTag:()=>jP,isJSDocEnumTag:()=>RP,isJSDocFunctionType:()=>bP,isJSDocImplementsTag:()=>HP,isJSDocImportTag:()=>XP,isJSDocIndexSignature:()=>Om,isJSDocLikeText:()=>DI,isJSDocLink:()=>dP,isJSDocLinkCode:()=>pP,isJSDocLinkLike:()=>Mu,isJSDocLinkPlain:()=>fP,isJSDocMemberName:()=>uP,isJSDocNameReference:()=>_P,isJSDocNamepathType:()=>kP,isJSDocNamespaceBody:()=>ru,isJSDocNode:()=>Su,isJSDocNonNullableType:()=>yP,isJSDocNullableType:()=>hP,isJSDocOptionalParameter:()=>GT,isJSDocOptionalType:()=>vP,isJSDocOverloadTag:()=>LP,isJSDocOverrideTag:()=>OP,isJSDocParameterTag:()=>BP,isJSDocPrivateTag:()=>PP,isJSDocPropertyLikeTag:()=>Nl,isJSDocPropertyTag:()=>$P,isJSDocProtectedTag:()=>AP,isJSDocPublicTag:()=>EP,isJSDocReadonlyTag:()=>IP,isJSDocReturnTag:()=>JP,isJSDocSatisfiesExpression:()=>YT,isJSDocSatisfiesTag:()=>KP,isJSDocSeeTag:()=>MP,isJSDocSignature:()=>CP,isJSDocTag:()=>Cu,isJSDocTemplateTag:()=>UP,isJSDocThisTag:()=>zP,isJSDocThrowsTag:()=>GP,isJSDocTypeAlias:()=>Dg,isJSDocTypeAssertion:()=>TA,isJSDocTypeExpression:()=>lP,isJSDocTypeLiteral:()=>TP,isJSDocTypeTag:()=>qP,isJSDocTypedefTag:()=>VP,isJSDocUnknownTag:()=>WP,isJSDocUnknownType:()=>gP,isJSDocVariadicType:()=>xP,isJSXTagName:()=>vm,isJsonEqual:()=>fT,isJsonSourceFile:()=>ef,isJsxAttribute:()=>KE,isJsxAttributeLike:()=>yu,isJsxAttributeName:()=>rC,isJsxAttributes:()=>GE,isJsxCallLike:()=>xu,isJsxChild:()=>hu,isJsxClosingElement:()=>VE,isJsxClosingFragment:()=>HE,isJsxElement:()=>zE,isJsxExpression:()=>QE,isJsxFragment:()=>WE,isJsxNamespacedName:()=>YE,isJsxOpeningElement:()=>UE,isJsxOpeningFragment:()=>$E,isJsxOpeningLikeElement:()=>bu,isJsxOpeningLikeElementTagName:()=>YG,isJsxSelfClosingElement:()=>qE,isJsxSpreadAttribute:()=>XE,isJsxTagNameExpression:()=>gu,isJsxText:()=>VN,isJumpStatementTarget:()=>aX,isKeyword:()=>Ch,isKeywordOrPunctuation:()=>Nh,isKnownSymbol:()=>Wh,isLabelName:()=>cX,isLabelOfLabeledStatement:()=>sX,isLabeledStatement:()=>oE,isLateVisibilityPaintedStatement:()=>wp,isLeftHandSideExpression:()=>R_,isLet:()=>cf,isLineBreak:()=>Va,isLiteralComputedPropertyDeclarationName:()=>uh,isLiteralExpression:()=>Il,isLiteralExpressionOfObject:()=>Ol,isLiteralImportTypeNode:()=>df,isLiteralKind:()=>Al,isLiteralNameOfPropertyDeclarationOrIndexAccess:()=>mX,isLiteralTypeLiteral:()=>U_,isLiteralTypeNode:()=>rF,isLocalName:()=>hA,isLogicalOperator:()=>Gv,isLogicalOrCoalescingAssignmentExpression:()=>Qv,isLogicalOrCoalescingAssignmentOperator:()=>Xv,isLogicalOrCoalescingBinaryExpression:()=>Zv,isLogicalOrCoalescingBinaryOperator:()=>Yv,isMappedTypeNode:()=>nF,isMemberName:()=>dl,isMetaProperty:()=>RF,isMethodDeclaration:()=>FD,isMethodOrAccessor:()=>m_,isMethodSignature:()=>DD,isMinusToken:()=>ZN,isMissingDeclaration:()=>ME,isMissingPackageJsonInfo:()=>kM,isModifier:()=>Zl,isModifierKind:()=>Xl,isModifierLike:()=>g_,isModuleAugmentationExternal:()=>mp,isModuleBlock:()=>hE,isModuleBody:()=>tu,isModuleDeclaration:()=>gE,isModuleExportName:()=>jE,isModuleExportsAccessExpression:()=>eg,isModuleIdentifier:()=>Zm,isModuleName:()=>YA,isModuleOrEnumDeclaration:()=>ou,isModuleReference:()=>mu,isModuleSpecifierLike:()=>oY,isModuleWithStringLiteralName:()=>lp,isNameOfFunctionDeclaration:()=>fX,isNameOfModuleDeclaration:()=>pX,isNamedDeclaration:()=>Sc,isNamedEvaluation:()=>Gh,isNamedEvaluationSource:()=>Kh,isNamedExportBindings:()=>wl,isNamedExports:()=>OE,isNamedImportBindings:()=>iu,isNamedImports:()=>EE,isNamedImportsOrExports:()=>Cx,isNamedTupleMember:()=>WD,isNamespaceBody:()=>nu,isNamespaceExport:()=>FE,isNamespaceExportDeclaration:()=>vE,isNamespaceImport:()=>DE,isNamespaceReexportDeclaration:()=>Sm,isNewExpression:()=>mF,isNewExpressionTarget:()=>KG,isNewScopeNode:()=>EC,isNoSubstitutionTemplateLiteral:()=>$N,isNodeArray:()=>Pl,isNodeArrayMultiLine:()=>Wb,isNodeDescendantOf:()=>ch,isNodeKind:()=>Dl,isNodeLikeSystem:()=>_n,isNodeModulesDirectory:()=>ca,isNodeWithPossibleHoistedDeclaration:()=>Zg,isNonContextualKeyword:()=>Fh,isNonGlobalAmbientModule:()=>_p,isNonNullAccess:()=>QT,isNonNullChain:()=>Tl,isNonNullExpression:()=>MF,isNonStaticMethodOrAccessorWithPrivateName:()=>dz,isNotEmittedStatement:()=>RE,isNullishCoalesce:()=>xl,isNumber:()=>et,isNumericLiteral:()=>zN,isNumericLiteralName:()=>JT,isObjectBindingElementWithoutPropertyName:()=>aY,isObjectBindingOrAssignmentElement:()=>F_,isObjectBindingOrAssignmentPattern:()=>D_,isObjectBindingPattern:()=>sF,isObjectLiteralElement:()=>Au,isObjectLiteralElementLike:()=>v_,isObjectLiteralExpression:()=>uF,isObjectLiteralMethod:()=>Jf,isObjectLiteralOrClassExpressionMethodOrAccessor:()=>zf,isObjectTypeDeclaration:()=>xx,isOmittedExpression:()=>IF,isOptionalChain:()=>hl,isOptionalChainRoot:()=>yl,isOptionalDeclaration:()=>XT,isOptionalJSDocPropertyLikeTag:()=>$T,isOptionalTypeNode:()=>$D,isOuterExpression:()=>wA,isOutermostOptionalChain:()=>bl,isOverrideModifier:()=>gD,isPackageJsonInfo:()=>xM,isPackedArrayLiteral:()=>PT,isParameter:()=>TD,isParameterPropertyDeclaration:()=>Zs,isParameterPropertyModifier:()=>Ql,isParenthesizedExpression:()=>yF,isParenthesizedTypeNode:()=>YD,isParseTreeNode:()=>dc,isPartOfParameterDeclaration:()=>Qh,isPartOfTypeNode:()=>wf,isPartOfTypeOnlyImportOrExportDeclaration:()=>ql,isPartOfTypeQuery:()=>km,isPartiallyEmittedExpression:()=>JF,isPatternMatch:()=>Yt,isPinnedComment:()=>Bd,isPlainJsFile:()=>xd,isPlusToken:()=>YN,isPossiblyTypeArgumentPosition:()=>lQ,isPostfixUnaryExpression:()=>wF,isPrefixUnaryExpression:()=>CF,isPrimitiveLiteralValue:()=>bC,isPrivateIdentifier:()=>sD,isPrivateIdentifierClassElementDeclaration:()=>Kl,isPrivateIdentifierPropertyAccessExpression:()=>Gl,isPrivateIdentifierSymbol:()=>$h,isProgramUptoDate:()=>EV,isPrologueDirective:()=>pf,isPropertyAccessChain:()=>fl,isPropertyAccessEntityNameExpression:()=>lb,isPropertyAccessExpression:()=>dF,isPropertyAccessOrQualifiedName:()=>I_,isPropertyAccessOrQualifiedNameOrImportTypeNode:()=>A_,isPropertyAssignment:()=>rP,isPropertyDeclaration:()=>ND,isPropertyName:()=>t_,isPropertyNameLiteral:()=>zh,isPropertySignature:()=>wD,isPrototypeAccess:()=>ub,isPrototypePropertyAssignment:()=>pg,isPunctuation:()=>wh,isPushOrUnshiftIdentifier:()=>Xh,isQualifiedName:()=>xD,isQuestionDotToken:()=>iD,isQuestionOrExclamationToken:()=>KA,isQuestionOrPlusOrMinusToken:()=>QA,isQuestionToken:()=>nD,isReadonlyKeyword:()=>pD,isReadonlyKeywordOrPlusOrMinusToken:()=>XA,isRecognizedTripleSlashComment:()=>Rd,isReferenceFileLocation:()=>DV,isReferencedFile:()=>NV,isRegularExpressionLiteral:()=>WN,isRequireCall:()=>Lm,isRequireVariableStatement:()=>Jm,isRestParameter:()=>Bu,isRestTypeNode:()=>HD,isReturnStatement:()=>nE,isReturnStatementWithFixablePromiseHandler:()=>N1,isRightSideOfAccessExpression:()=>pb,isRightSideOfInstanceofExpression:()=>gb,isRightSideOfPropertyAccess:()=>uX,isRightSideOfQualifiedName:()=>_X,isRightSideOfQualifiedNameOrPropertyAccess:()=>db,isRightSideOfQualifiedNameOrPropertyAccessOrJSDocMemberName:()=>fb,isRootedDiskPath:()=>go,isSameEntityName:()=>Xm,isSatisfiesExpression:()=>jF,isSemicolonClassElement:()=>UF,isSetAccessor:()=>wu,isSetAccessorDeclaration:()=>ID,isShiftOperatorOrHigher:()=>ZA,isShorthandAmbientModuleSymbol:()=>up,isShorthandPropertyAssignment:()=>iP,isSideEffectImport:()=>SC,isSignedNumericLiteral:()=>Mh,isSimpleCopiableExpression:()=>tz,isSimpleInlineableExpression:()=>nz,isSimpleParameterList:()=>kz,isSingleOrDoubleQuote:()=>zm,isSolutionConfig:()=>mj,isSourceElement:()=>fC,isSourceFile:()=>sP,isSourceFileFromLibrary:()=>YZ,isSourceFileJS:()=>Fm,isSourceFileNotJson:()=>Am,isSourceMapping:()=>AJ,isSpecialPropertyDeclaration:()=>fg,isSpreadAssignment:()=>oP,isSpreadElement:()=>PF,isStatement:()=>pu,isStatementButNotDeclaration:()=>du,isStatementOrBlock:()=>fu,isStatementWithLocals:()=>kd,isStatic:()=>Dv,isStaticModifier:()=>fD,isString:()=>Ze,isStringANonContextualKeyword:()=>Eh,isStringAndEmptyAnonymousObjectIntersection:()=>bQ,isStringDoubleQuoted:()=>qm,isStringLiteral:()=>UN,isStringLiteralLike:()=>ju,isStringLiteralOrJsxExpression:()=>vu,isStringLiteralOrTemplate:()=>lZ,isStringOrNumericLiteralLike:()=>jh,isStringOrRegularExpressionOrTemplateLiteral:()=>yQ,isStringTextContainingNode:()=>Ul,isSuperCall:()=>lf,isSuperKeyword:()=>yD,isSuperProperty:()=>am,isSupportedSourceFileName:()=>BS,isSwitchStatement:()=>iE,isSyntaxList:()=>QP,isSyntheticExpression:()=>BF,isSyntheticReference:()=>BE,isTagName:()=>lX,isTaggedTemplateExpression:()=>gF,isTaggedTemplateTag:()=>XG,isTemplateExpression:()=>FF,isTemplateHead:()=>HN,isTemplateLiteral:()=>M_,isTemplateLiteralKind:()=>Ll,isTemplateLiteralToken:()=>jl,isTemplateLiteralTypeNode:()=>aF,isTemplateLiteralTypeSpan:()=>oF,isTemplateMiddle:()=>KN,isTemplateMiddleOrTemplateTail:()=>Ml,isTemplateSpan:()=>qF,isTemplateTail:()=>GN,isTextWhiteSpaceLike:()=>hY,isThis:()=>vX,isThisContainerOrFunctionBlock:()=>tm,isThisIdentifier:()=>lv,isThisInTypeQuery:()=>uv,isThisInitializedDeclaration:()=>cm,isThisInitializedObjectBindingExpression:()=>lm,isThisProperty:()=>sm,isThisTypeNode:()=>ZD,isThisTypeParameter:()=>qT,isThisTypePredicate:()=>Uf,isThrowStatement:()=>aE,isToken:()=>El,isTokenKind:()=>Fl,isTraceEnabled:()=>Qj,isTransientSymbol:()=>Xu,isTrivia:()=>Ah,isTryStatement:()=>sE,isTupleTypeNode:()=>VD,isTypeAlias:()=>Fg,isTypeAliasDeclaration:()=>fE,isTypeAssertionExpression:()=>hF,isTypeDeclaration:()=>VT,isTypeElement:()=>h_,isTypeKeyword:()=>MQ,isTypeKeywordTokenOrIdentifier:()=>BQ,isTypeLiteralNode:()=>qD,isTypeNode:()=>b_,isTypeNodeKind:()=>kx,isTypeOfExpression:()=>kF,isTypeOnlyExportDeclaration:()=>Jl,isTypeOnlyImportDeclaration:()=>Bl,isTypeOnlyImportOrExportDeclaration:()=>zl,isTypeOperatorNode:()=>eF,isTypeParameterDeclaration:()=>SD,isTypePredicateNode:()=>MD,isTypeQueryNode:()=>zD,isTypeReferenceNode:()=>RD,isTypeReferenceType:()=>Iu,isTypeUsableAsPropertyName:()=>sC,isUMDExportSymbol:()=>hx,isUnaryExpression:()=>J_,isUnaryExpressionWithWrite:()=>q_,isUnicodeIdentifierStart:()=>wa,isUnionTypeNode:()=>KD,isUrl:()=>mo,isValidBigIntString:()=>vT,isValidESSymbolDeclaration:()=>jf,isValidTypeOnlyAliasUseSite:()=>bT,isValueSignatureDeclaration:()=>eh,isVarAwaitUsing:()=>rf,isVarConst:()=>af,isVarConstLike:()=>sf,isVarUsing:()=>of,isVariableDeclaration:()=>lE,isVariableDeclarationInVariableStatement:()=>If,isVariableDeclarationInitializedToBareOrAccessedRequire:()=>Mm,isVariableDeclarationInitializedToRequire:()=>jm,isVariableDeclarationList:()=>_E,isVariableLike:()=>Af,isVariableStatement:()=>WF,isVoidExpression:()=>SF,isWatchSet:()=>tx,isWhileStatement:()=>XF,isWhiteSpaceLike:()=>qa,isWhiteSpaceSingleLine:()=>Ua,isWithStatement:()=>rE,isWriteAccess:()=>cx,isWriteOnlyAccess:()=>sx,isYieldExpression:()=>EF,jsxModeNeedsExplicitImport:()=>QZ,keywordPart:()=>CY,last:()=>ve,lastOrUndefined:()=>ye,length:()=>u,libMap:()=>DO,libs:()=>NO,lineBreakPart:()=>BY,loadModuleFromGlobalCache:()=>RR,loadWithModeAwareCache:()=>SV,makeIdentifierFromModuleName:()=>op,makeImport:()=>QQ,makeStringLiteral:()=>YQ,mangleScopedPackageName:()=>PR,map:()=>E,mapAllOrFail:()=>R,mapDefined:()=>B,mapDefinedIterator:()=>J,mapEntries:()=>W,mapIterator:()=>P,mapOneOrMany:()=>RZ,mapToDisplayParts:()=>JY,matchFiles:()=>hS,matchPatternOrExact:()=>iT,matchedText:()=>Ht,matchesExclude:()=>Bj,matchesExcludeWorker:()=>Jj,maxBy:()=>xt,maybeBind:()=>We,maybeSetLocalizedDiagnosticMessages:()=>Ux,memoize:()=>dt,memoizeOne:()=>pt,min:()=>kt,minAndMax:()=>sT,missingFileModifiedTime:()=>zi,modifierToFlag:()=>Hv,modifiersToFlags:()=>$v,moduleExportNameIsDefault:()=>Kd,moduleExportNameTextEscaped:()=>Hd,moduleExportNameTextUnescaped:()=>$d,moduleOptionDeclaration:()=>AO,moduleResolutionIsEqualTo:()=>ld,moduleResolutionNameAndModeGetter:()=>yV,moduleResolutionOptionDeclarations:()=>RO,moduleResolutionSupportsPackageJsonExportsAndImports:()=>Rk,moduleResolutionUsesNodeModules:()=>XQ,moduleSpecifierToValidIdentifier:()=>UZ,moduleSpecifiers:()=>nB,moduleSupportsImportAttributes:()=>Bk,moduleSymbolToValidIdentifier:()=>qZ,moveEmitHelpers:()=>$w,moveRangeEnd:()=>Ib,moveRangePastDecorators:()=>Lb,moveRangePastModifiers:()=>jb,moveRangePos:()=>Ob,moveSyntheticComments:()=>Bw,mutateMap:()=>px,mutateMapSkippingNewValues:()=>dx,needsParentheses:()=>oZ,needsScopeMarker:()=>G_,newCaseClauseTracker:()=>ZZ,newPrivateEnvironment:()=>hz,noEmitNotification:()=>Uq,noEmitSubstitution:()=>qq,noTransformers:()=>Lq,noTruncationMaximumTruncationLength:()=>Wu,nodeCanBeDecorated:()=>dm,nodeCoreModules:()=>NC,nodeHasName:()=>xc,nodeIsDecorated:()=>pm,nodeIsMissing:()=>Nd,nodeIsPresent:()=>Dd,nodeIsSynthesized:()=>ey,nodeModuleNameResolver:()=>qM,nodeModulesPathPart:()=>KM,nodeNextJsonConfigResolver:()=>UM,nodeOrChildIsDecorated:()=>fm,nodeOverlapsWithStartEnd:()=>NX,nodePosToString:()=>Td,nodeSeenTracker:()=>JQ,nodeStartsNewLexicalEnvironment:()=>Zh,noop:()=>rt,noopFileWatcher:()=>w$,normalizePath:()=>Jo,normalizeSlashes:()=>Oo,normalizeSpans:()=>Vs,not:()=>tn,notImplemented:()=>ut,notImplementedResolver:()=>hU,nullNodeConverters:()=>ZC,nullParenthesizerRules:()=>XC,nullTransformationContext:()=>Wq,objectAllocator:()=>Mx,operatorPart:()=>NY,optionDeclarations:()=>OO,optionMapToObject:()=>VL,optionsAffectingProgramStructure:()=>JO,optionsForBuild:()=>$O,optionsForWatch:()=>FO,optionsHaveChanges:()=>td,or:()=>en,orderedRemoveItem:()=>zt,orderedRemoveItemAt:()=>qt,packageIdToPackageName:()=>fd,packageIdToString:()=>md,parameterIsThisKeyword:()=>cv,parameterNamePart:()=>DY,parseBaseNodeFactory:()=>TI,parseBigInt:()=>hT,parseBuildCommand:()=>fL,parseCommandLine:()=>lL,parseCommandLineWorker:()=>oL,parseConfigFileTextToJson:()=>yL,parseConfigFileWithSystem:()=>u$,parseConfigHostFromCompilerHostLike:()=>UV,parseCustomTypeOption:()=>tL,parseIsolatedEntityName:()=>tO,parseIsolatedJSDocComment:()=>oO,parseJSDocTypeExpressionForTests:()=>aO,parseJsonConfigFileContent:()=>ZL,parseJsonSourceFileConfigFileContent:()=>ej,parseJsonText:()=>nO,parseListTypeOption:()=>nL,parseNodeFactory:()=>CI,parseNodeModuleFromPath:()=>XM,parsePackageName:()=>mR,parsePseudoBigInt:()=>mT,parseValidBigInt:()=>yT,pasteEdits:()=>dfe,patchWriteFileEnsuringDirectory:()=>ao,pathContainsNodeModules:()=>GM,pathIsAbsolute:()=>yo,pathIsBareSpecifier:()=>bo,pathIsRelative:()=>vo,patternText:()=>$t,performIncrementalCompilation:()=>B$,performance:()=>Vn,positionBelongsToNode:()=>FX,positionIsASICandidate:()=>vZ,positionIsSynthesized:()=>XS,positionsAreOnSameLine:()=>$b,preProcessFile:()=>h1,probablyUsesSemicolons:()=>bZ,processCommentPragmas:()=>pO,processPragmasIntoFields:()=>fO,processTaggedTemplateExpression:()=>$z,programContainsEsModules:()=>$Q,programContainsModules:()=>WQ,projectReferenceIsEqualTo:()=>cd,propertyNamePart:()=>FY,pseudoBigIntToString:()=>gT,punctuationPart:()=>wY,pushIfUnique:()=>ce,quote:()=>sZ,quotePreferenceFromString:()=>eY,rangeContainsPosition:()=>SX,rangeContainsPositionExclusive:()=>TX,rangeContainsRange:()=>Xb,rangeContainsRangeExclusive:()=>kX,rangeContainsStartEnd:()=>CX,rangeEndIsOnSameLineAsRangeStart:()=>qb,rangeEndPositionsAreOnSameLine:()=>Jb,rangeEquals:()=>de,rangeIsOnSingleLine:()=>Rb,rangeOfNode:()=>cT,rangeOfTypeParameters:()=>lT,rangeOverlapsWithStartEnd:()=>wX,rangeStartIsOnSameLineAsRangeEnd:()=>zb,rangeStartPositionsAreOnSameLine:()=>Bb,readBuilderProgram:()=>J$,readConfigFile:()=>hL,readJson:()=>wb,readJsonConfigFile:()=>vL,readJsonOrUndefined:()=>Cb,reduceEachLeadingCommentRange:()=>ss,reduceEachTrailingCommentRange:()=>cs,reduceLeft:()=>we,reduceLeftIterator:()=>g,reducePathComponents:()=>Lo,refactor:()=>Q2,regExpEscape:()=>tS,regularExpressionFlagToCharacterCode:()=>Aa,relativeComplement:()=>re,removeAllComments:()=>bw,removeEmitHelper:()=>Vw,removeExtension:()=>WS,removeFileExtension:()=>US,removeIgnoredPath:()=>qW,removeMinAndVersionNumbers:()=>Jt,removePrefix:()=>Xt,removeSuffix:()=>Rt,removeTrailingDirectorySeparator:()=>Vo,repeatString:()=>qQ,replaceElement:()=>Se,replaceFirstStar:()=>dC,resolutionExtensionIsTSOrJson:()=>YS,resolveConfigFileProjectName:()=>$$,resolveJSModule:()=>BM,resolveLibrary:()=>LM,resolveModuleName:()=>MM,resolveModuleNameFromCache:()=>jM,resolvePackageNameToPackageJson:()=>vM,resolvePath:()=>Mo,resolveProjectReferencePath:()=>VV,resolveTripleslashReference:()=>JU,resolveTypeReferenceDirective:()=>gM,resolvingEmptyArray:()=>qu,returnFalse:()=>it,returnNoopFileWatcher:()=>N$,returnTrue:()=>ot,returnUndefined:()=>at,returnsPromise:()=>w1,rewriteModuleSpecifier:()=>Sz,sameFlatMap:()=>M,sameMap:()=>A,sameMapping:()=>PJ,scanTokenAtPosition:()=>Xp,scanner:()=>qG,semanticDiagnosticsOptionDeclarations:()=>LO,serializeCompilerOptions:()=>KL,server:()=>She,servicesVersion:()=>v8,setCommentRange:()=>Aw,setConfigFileInOptions:()=>tj,setConstantValue:()=>zw,setEmitFlags:()=>xw,setGetSourceFileAsHashVersioned:()=>I$,setIdentifierAutoGenerate:()=>eN,setIdentifierGeneratedImportReference:()=>nN,setIdentifierTypeArguments:()=>Yw,setInternalEmitFlags:()=>Sw,setLocalizedDiagnosticMessages:()=>qx,setNodeChildren:()=>tA,setNodeFlags:()=>NT,setObjectAllocator:()=>Jx,setOriginalNode:()=>hw,setParent:()=>DT,setParentRecursive:()=>FT,setPrivateIdentifier:()=>vz,setSnippetElement:()=>Kw,setSourceMapRange:()=>ww,setStackTraceLimit:()=>Ri,setStartsOnNewLine:()=>Ew,setSyntheticLeadingComments:()=>Ow,setSyntheticTrailingComments:()=>Mw,setSys:()=>co,setSysLog:()=>eo,setTextRange:()=>xI,setTextRangeEnd:()=>TT,setTextRangePos:()=>ST,setTextRangePosEnd:()=>CT,setTextRangePosWidth:()=>wT,setTokenSourceMapRange:()=>Dw,setTypeNode:()=>Xw,setUILocale:()=>Pt,setValueDeclaration:()=>mg,shouldAllowImportingTsExtension:()=>MR,shouldPreserveConstEnums:()=>Fk,shouldRewriteModuleSpecifier:()=>xg,shouldUseUriStyleNodeCoreModules:()=>HZ,showModuleSpecifier:()=>yx,signatureHasRestParameter:()=>aJ,signatureToDisplayParts:()=>UY,single:()=>xe,singleElementArray:()=>rn,singleIterator:()=>U,singleOrMany:()=>ke,singleOrUndefined:()=>be,skipAlias:()=>ox,skipConstraint:()=>UQ,skipOuterExpressions:()=>NA,skipParentheses:()=>ah,skipPartiallyEmittedExpressions:()=>Sl,skipTrivia:()=>Qa,skipTypeChecking:()=>_T,skipTypeCheckingIgnoringNoCheck:()=>uT,skipTypeParentheses:()=>oh,skipWhile:()=>ln,sliceAfter:()=>oT,some:()=>$,sortAndDeduplicate:()=>ee,sortAndDeduplicateDiagnostics:()=>ws,sourceFileAffectingCompilerOptions:()=>BO,sourceFileMayBeEmitted:()=>Xy,sourceMapCommentRegExp:()=>TJ,sourceMapCommentRegExpDontCareLineStart:()=>SJ,spacePart:()=>TY,spanMap:()=>V,startEndContainsRange:()=>Qb,startEndOverlapsWithStartEnd:()=>DX,startOnNewLine:()=>FA,startTracing:()=>dr,startsWith:()=>Gt,startsWithDirectory:()=>ta,startsWithUnderscore:()=>WZ,startsWithUseStrict:()=>xA,stringContainsAt:()=>VZ,stringToToken:()=>Ea,stripQuotes:()=>Fy,supportedDeclarationExtensions:()=>FS,supportedJSExtensionsFlat:()=>wS,supportedLocaleDirectories:()=>cc,supportedTSExtensionsFlat:()=>SS,supportedTSImplementationExtensions:()=>ES,suppressLeadingAndTrailingTrivia:()=>UC,suppressLeadingTrivia:()=>VC,suppressTrailingTrivia:()=>WC,symbolEscapedNameNoDefault:()=>iY,symbolName:()=>yc,symbolNameNoDefault:()=>rY,symbolToDisplayParts:()=>qY,sys:()=>so,sysLog:()=>Zi,tagNamesAreEquivalent:()=>xO,takeWhile:()=>cn,targetOptionDeclaration:()=>PO,targetToLibMap:()=>Ns,testFormatSettings:()=>PG,textChangeRangeIsUnchanged:()=>Ks,textChangeRangeNewSpan:()=>Hs,textChanges:()=>jue,textOrKeywordPart:()=>EY,textPart:()=>PY,textRangeContainsPositionInclusive:()=>As,textRangeContainsTextSpan:()=>Ls,textRangeIntersectsWithTextSpan:()=>qs,textSpanContainsPosition:()=>Ps,textSpanContainsTextRange:()=>Os,textSpanContainsTextSpan:()=>Is,textSpanEnd:()=>Fs,textSpanIntersection:()=>Us,textSpanIntersectsWith:()=>Bs,textSpanIntersectsWithPosition:()=>zs,textSpanIntersectsWithTextSpan:()=>Rs,textSpanIsEmpty:()=>Es,textSpanOverlap:()=>Ms,textSpanOverlapsWith:()=>js,textSpansEqual:()=>pY,textToKeywordObj:()=>pa,timestamp:()=>Un,toArray:()=>Ye,toBuilderFileEmit:()=>IW,toBuilderStateFileInfoForMultiEmit:()=>AW,toEditorSettings:()=>j8,toFileNameLowerCase:()=>_t,toPath:()=>Uo,toProgramEmitPending:()=>OW,toSorted:()=>_e,tokenIsIdentifierOrKeyword:()=>ua,tokenIsIdentifierOrKeywordOrGreaterThan:()=>da,tokenToString:()=>Fa,trace:()=>Xj,tracing:()=>Hn,tracingEnabled:()=>Kn,transferSourceFileChildren:()=>rA,transform:()=>t7,transformClassFields:()=>Qz,transformDeclarations:()=>Aq,transformECMAScriptModule:()=>Sq,transformES2015:()=>yq,transformES2016:()=>gq,transformES2017:()=>nq,transformES2018:()=>iq,transformES2019:()=>oq,transformES2020:()=>aq,transformES2021:()=>sq,transformESDecorators:()=>tq,transformESNext:()=>cq,transformGenerators:()=>vq,transformImpliedNodeFormatDependentModule:()=>Tq,transformJsx:()=>fq,transformLegacyDecorators:()=>eq,transformModule:()=>bq,transformNamedEvaluation:()=>Vz,transformNodes:()=>Vq,transformSystemModule:()=>kq,transformTypeScript:()=>Xz,transpile:()=>q1,transpileDeclaration:()=>j1,transpileModule:()=>L1,transpileOptionValueCompilerOptions:()=>zO,tryAddToSet:()=>q,tryAndIgnoreErrors:()=>CZ,tryCast:()=>tt,tryDirectoryExists:()=>TZ,tryExtractTSExtension:()=>bb,tryFileExists:()=>SZ,tryGetClassExtendingExpressionWithTypeArguments:()=>tb,tryGetClassImplementingOrExtendingExpressionWithTypeArguments:()=>nb,tryGetDirectories:()=>xZ,tryGetExtensionFromPath:()=>tT,tryGetImportFromModuleSpecifier:()=>bg,tryGetJSDocSatisfiesTypeNode:()=>eC,tryGetModuleNameFromFile:()=>LA,tryGetModuleSpecifierFromDeclaration:()=>yg,tryGetNativePerformanceHooks:()=>Jn,tryGetPropertyAccessOrIdentifierToString:()=>_b,tryGetPropertyNameOfBindingOrAssignmentElement:()=>JA,tryGetSourceMappingURL:()=>NJ,tryGetTextOfPropertyName:()=>Lp,tryParseJson:()=>Nb,tryParsePattern:()=>HS,tryParsePatterns:()=>GS,tryParseRawSourceMap:()=>FJ,tryReadDirectory:()=>kZ,tryReadFile:()=>bL,tryRemoveDirectoryPrefix:()=>Zk,tryRemoveExtension:()=>VS,tryRemovePrefix:()=>Qt,tryRemoveSuffix:()=>Bt,tscBuildOption:()=>WO,typeAcquisitionDeclarations:()=>KO,typeAliasNamePart:()=>AY,typeDirectiveIsEqualTo:()=>gd,typeKeywords:()=>jQ,typeParameterNamePart:()=>IY,typeToDisplayParts:()=>zY,unchangedPollThresholds:()=>$i,unchangedTextChangeRange:()=>Xs,unescapeLeadingUnderscores:()=>mc,unmangleScopedPackageName:()=>IR,unorderedRemoveItem:()=>Vt,unprefixedNodeCoreModules:()=>CC,unreachableCodeIsError:()=>jk,unsetNodeChildren:()=>nA,unusedLabelIsError:()=>Mk,unwrapInnermostStatementOfLabel:()=>Rf,unwrapParenthesizedExpression:()=>xC,updateErrorForNoInputFiles:()=>hj,updateLanguageServiceSourceFile:()=>V8,updateMissingFilePathsWatch:()=>PU,updateResolutionField:()=>aM,updateSharedExtendedConfigFileWatcher:()=>DU,updateSourceFile:()=>iO,updateWatchingWildcardDirectories:()=>AU,usingSingleLineStringWriter:()=>ad,utf16EncodeAsString:()=>bs,validateLocaleAndSetLanguage:()=>lc,version:()=>s,versionMajorMinor:()=>a,visitArray:()=>uJ,visitCommaListElements:()=>yJ,visitEachChild:()=>vJ,visitFunctionBody:()=>gJ,visitIterationBody:()=>hJ,visitLexicalEnvironment:()=>pJ,visitNode:()=>lJ,visitNodes:()=>_J,visitParameterList:()=>fJ,walkUpBindingElementsAndPatterns:()=>nc,walkUpOuterExpressions:()=>DA,walkUpParenthesizedExpressions:()=>rh,walkUpParenthesizedTypes:()=>nh,walkUpParenthesizedTypesAndGetParentAndChild:()=>ih,whitespaceOrMapCommentRegExp:()=>CJ,writeCommentRange:()=>xv,writeFile:()=>Zy,writeFileEnsuringDirectories:()=>tv,zipWith:()=>h}),e.exports=o;var a="5.9",s="5.9.2",c=(e=>(e[e.LessThan=-1]="LessThan",e[e.EqualTo=0]="EqualTo",e[e.GreaterThan=1]="GreaterThan",e))(c||{}),l=[],_=new Map;function u(e){return void 0!==e?e.length:0}function d(e,t){if(void 0!==e)for(let n=0;n=0;n--){const r=t(e[n],n);if(r)return r}}function f(e,t){if(void 0!==e)for(let n=0;n=0;r--){const n=e[r];if(t(n,r))return n}}function k(e,t,n){if(void 0===e)return-1;for(let r=n??0;r=0;r--)if(t(e[r],r))return r;return-1}function T(e,t,n=mt){if(void 0!==e)for(let r=0;r{const[i,o]=t(r,e);n.set(i,o)}),n}function $(e,t){if(void 0!==e){if(void 0===t)return e.length>0;for(let n=0;nn(e[t],e[r])||vt(t,r))}(e,r,n);let i=e[r[0]];const o=[r[0]];for(let n=1;ne[t])}(e,t,n):function(e,t){const n=[];for(let r=0;r0&&r(t,e[n-1]))return!1;if(n0&&un.assertGreaterThanOrEqual(n(t[o],t[o-1]),0);t:for(const a=i;ia&&un.assertGreaterThanOrEqual(n(e[i],e[i-1]),0),n(t[o],e[i])){case-1:r.push(t[o]);continue e;case 0:continue e;case 1:continue t}}return r}function ie(e,t){return void 0===t?e:void 0===e?[t]:(e.push(t),e)}function oe(e,t){return void 0===e?t:void 0===t?e:Qe(e)?Qe(t)?K(e,t):ie(e,t):Qe(t)?ie(t,e):[e,t]}function ae(e,t){return t<0?e.length+t:t}function se(e,t,n,r){if(void 0===t||0===t.length)return e;if(void 0===e)return t.slice(n,r);n=void 0===n?0:ae(t,n),r=void 0===r?t.length:ae(t,r);for(let i=n;i=0;t--)yield e[t]}function de(e,t,n,r){for(;nnull==e?void 0:e.at(t):(e,t)=>{if(void 0!==e&&(t=ae(e,t))>1);switch(r(n(e[i],i),t)){case-1:o=i+1;break;case 0:return i;case 1:a=i-1}}return~o}function we(e,t,n,r,i){if(e&&e.length>0){const o=e.length;if(o>0){let a=void 0===r||r<0?0:r;const s=void 0===i||a+i>o-1?o-1:a+i;let c;for(arguments.length<=2?(c=e[a],a++):c=n;a<=s;)c=t(c,e[a],a),a++;return c}}return n}var Ne=Object.prototype.hasOwnProperty;function De(e,t){return Ne.call(e,t)}function Fe(e,t){return Ne.call(e,t)?e[t]:void 0}function Ee(e){const t=[];for(const n in e)Ne.call(e,n)&&t.push(n);return t}function Pe(e){const t=[];do{const n=Object.getOwnPropertyNames(e);for(const e of n)ce(t,e)}while(e=Object.getPrototypeOf(e));return t}function Ae(e){const t=[];for(const n in e)Ne.call(e,n)&&t.push(e[n]);return t}function Ie(e,t){const n=new Array(e);for(let r=0;r100&&n>t.length>>1){const e=t.length-n;t.copyWithin(0,n),t.length=e,n=0}return e},isEmpty:r}}function Xe(e,t){const n=new Map;let r=0;function*i(){for(const e of n.values())Qe(e)?yield*e:yield e}const o={has(r){const i=e(r);if(!n.has(i))return!1;const o=n.get(i);return Qe(o)?T(o,r,t):t(o,r)},add(i){const o=e(i);if(n.has(o)){const e=n.get(o);if(Qe(e))T(e,i,t)||(e.push(i),r++);else{const a=e;t(a,i)||(n.set(o,[a,i]),r++)}}else n.set(o,i),r++;return this},delete(i){const o=e(i);if(!n.has(o))return!1;const a=n.get(o);if(Qe(a)){for(let e=0;ei(),values:()=>i(),*entries(){for(const e of i())yield[e,e]},[Symbol.iterator]:()=>i(),[Symbol.toStringTag]:n[Symbol.toStringTag]};return o}function Qe(e){return Array.isArray(e)}function Ye(e){return Qe(e)?e:[e]}function Ze(e){return"string"==typeof e}function et(e){return"number"==typeof e}function tt(e,t){return void 0!==e&&t(e)?e:void 0}function nt(e,t){return void 0!==e&&t(e)?e:un.fail(`Invalid cast. The supplied value ${e} did not pass the test '${un.getFunctionName(t)}'.`)}function rt(e){}function it(){return!1}function ot(){return!0}function at(){}function st(e){return e}function ct(e){return e.toLowerCase()}var lt=/[^\u0130\u0131\u00DFa-z0-9\\/:\-_. ]+/g;function _t(e){return lt.test(e)?e.replace(lt,ct):e}function ut(){throw new Error("Not implemented")}function dt(e){let t;return()=>(e&&(t=e(),e=void 0),t)}function pt(e){const t=new Map;return n=>{const r=`${typeof n}:${n}`;let i=t.get(r);return void 0!==i||t.has(r)||(i=e(n),t.set(r,i)),i}}var ft=(e=>(e[e.None=0]="None",e[e.Normal=1]="Normal",e[e.Aggressive=2]="Aggressive",e[e.VeryAggressive=3]="VeryAggressive",e))(ft||{});function mt(e,t){return e===t}function gt(e,t){return e===t||void 0!==e&&void 0!==t&&e.toUpperCase()===t.toUpperCase()}function ht(e,t){return mt(e,t)}function yt(e,t){return e===t?0:void 0===e?-1:void 0===t?1:e-1===t(e,n)?e:n)}function St(e,t){return e===t?0:void 0===e?-1:void 0===t?1:(e=e.toUpperCase())<(t=t.toUpperCase())?-1:e>t?1:0}function Tt(e,t){return e===t?0:void 0===e?-1:void 0===t?1:(e=e.toLowerCase())<(t=t.toLowerCase())?-1:e>t?1:0}function Ct(e,t){return yt(e,t)}function wt(e){return e?St:Ct}var Nt,Dt,Ft=(()=>function(e){const t=new Intl.Collator(e,{usage:"sort",sensitivity:"variant",numeric:!0}).compare;return(e,n)=>function(e,t,n){if(e===t)return 0;if(void 0===e)return-1;if(void 0===t)return 1;const r=n(e,t);return r<0?-1:r>0?1:0}(e,n,t)})();function Et(){return Dt}function Pt(e){Dt!==e&&(Dt=e,Nt=void 0)}function At(e,t){return Nt??(Nt=Ft(Dt)),Nt(e,t)}function It(e,t,n,r){return e===t?0:void 0===e?-1:void 0===t?1:r(e[n],t[n])}function Ot(e,t){return vt(e?1:0,t?1:0)}function Lt(e,t,n){const r=Math.max(2,Math.floor(.34*e.length));let i,o=Math.floor(.4*e.length)+1;for(const a of t){const t=n(a);if(void 0!==t&&Math.abs(t.length-e.length)<=r){if(t===e)continue;if(t.length<3&&t.toLowerCase()!==e.toLowerCase())continue;const n=jt(e,t,o-.1);if(void 0===n)continue;un.assert(nn?a-n:1),l=Math.floor(t.length>n+a?n+a:t.length);i[0]=a;let _=a;for(let e=1;en)return;const u=r;r=i,i=u}const a=r[t.length];return a>n?void 0:a}function Mt(e,t,n){const r=e.length-t.length;return r>=0&&(n?gt(e.slice(r),t):e.indexOf(t,r)===r)}function Rt(e,t){return Mt(e,t)?e.slice(0,e.length-t.length):e}function Bt(e,t){return Mt(e,t)?e.slice(0,e.length-t.length):void 0}function Jt(e){let t=e.length;for(let n=t-1;n>0;n--){let r=e.charCodeAt(n);if(r>=48&&r<=57)do{--n,r=e.charCodeAt(n)}while(n>0&&r>=48&&r<=57);else{if(!(n>4)||110!==r&&78!==r)break;if(--n,r=e.charCodeAt(n),105!==r&&73!==r)break;if(--n,r=e.charCodeAt(n),109!==r&&77!==r)break;--n,r=e.charCodeAt(n)}if(45!==r&&46!==r)break;t=n}return t===e.length?e:e.slice(0,t)}function zt(e,t){for(let n=0;ne===t)}function Wt(e){return e?st:_t}function $t({prefix:e,suffix:t}){return`${e}*${t}`}function Ht(e,t){return un.assert(Yt(e,t)),t.substring(e.prefix.length,t.length-e.suffix.length)}function Kt(e,t,n){let r,i=-1;for(let o=0;oi&&Yt(s,n)&&(i=s.prefix.length,r=a)}return r}function Gt(e,t,n){return n?gt(e.slice(0,t.length),t):0===e.lastIndexOf(t,0)}function Xt(e,t){return Gt(e,t)?e.substr(t.length):e}function Qt(e,t,n=st){return Gt(n(e),n(t))?e.substring(t.length):void 0}function Yt({prefix:e,suffix:t},n){return n.length>=e.length+t.length&&Gt(n,e)&&Mt(n,t)}function Zt(e,t){return n=>e(n)&&t(n)}function en(...e){return(...t)=>{let n;for(const r of e)if(n=r(...t),n)return n;return n}}function tn(e){return(...t)=>!e(...t)}function nn(e){}function rn(e){return void 0===e?void 0:[e]}function on(e,t,n,r,i,o){o??(o=rt);let a=0,s=0;const c=e.length,l=t.length;let _=!1;for(;a(e[e.Off=0]="Off",e[e.Error=1]="Error",e[e.Warning=2]="Warning",e[e.Info=3]="Info",e[e.Verbose=4]="Verbose",e))(dn||{});(e=>{let t=0;function n(t){return e.currentLogLevel<=t}function r(t,r){e.loggingHost&&n(t)&&e.loggingHost.log(t,r)}function i(e){r(3,e)}var o;e.currentLogLevel=2,e.isDebugging=!1,e.shouldLog=n,e.log=i,(o=i=e.log||(e.log={})).error=function(e){r(1,e)},o.warn=function(e){r(2,e)},o.log=function(e){r(3,e)},o.trace=function(e){r(4,e)};const a={};function s(e){return t>=e}function c(t,n){return!!s(t)||(a[n]={level:t,assertion:e[n]},e[n]=rt,!1)}function l(e,t){const n=new Error(e?`Debug Failure. ${e}`:"Debug Failure.");throw Error.captureStackTrace&&Error.captureStackTrace(n,t||l),n}function _(e,t,n,r){e||(t=t?`False expression: ${t}`:"False expression.",n&&(t+="\r\nVerbose Debug Information: "+("string"==typeof n?n:n())),l(t,r||_))}function u(e,t,n){null==e&&l(t,n||u)}function d(e,t,n){for(const r of e)u(r,t,n||d)}function p(e,t="Illegal value:",n){return l(`${t} ${"object"==typeof e&&De(e,"kind")&&De(e,"pos")?"SyntaxKind: "+y(e.kind):JSON.stringify(e)}`,n||p)}function f(e){if("function"!=typeof e)return"";if(De(e,"name"))return e.name;{const t=Function.prototype.toString.call(e),n=/^function\s+([\w$]+)\s*\(/.exec(t);return n?n[1]:""}}function m(e=0,t,n){const r=function(e){const t=g.get(e);if(t)return t;const n=[];for(const t in e){const r=e[t];"number"==typeof r&&n.push([r,t])}const r=_e(n,(e,t)=>vt(e[0],t[0]));return g.set(e,r),r}(t);if(0===e)return r.length>0&&0===r[0][0]?r[0][1]:"0";if(n){const t=[];let n=e;for(const[i,o]of r){if(i>e)break;0!==i&&i&e&&(t.push(o),n&=~i)}if(0===n)return t.join("|")}else for(const[t,n]of r)if(t===e)return n;return e.toString()}e.getAssertionLevel=function(){return t},e.setAssertionLevel=function(n){const r=t;if(t=n,n>r)for(const t of Ee(a)){const r=a[t];void 0!==r&&e[t]!==r.assertion&&n>=r.level&&(e[t]=r,a[t]=void 0)}},e.shouldAssert=s,e.fail=l,e.failBadSyntaxKind=function e(t,n,r){return l(`${n||"Unexpected node."}\r\nNode ${y(t.kind)} was unexpected.`,r||e)},e.assert=_,e.assertEqual=function e(t,n,r,i,o){t!==n&&l(`Expected ${t} === ${n}. ${r?i?`${r} ${i}`:r:""}`,o||e)},e.assertLessThan=function e(t,n,r,i){t>=n&&l(`Expected ${t} < ${n}. ${r||""}`,i||e)},e.assertLessThanOrEqual=function e(t,n,r){t>n&&l(`Expected ${t} <= ${n}`,r||e)},e.assertGreaterThanOrEqual=function e(t,n,r){t= ${n}`,r||e)},e.assertIsDefined=u,e.checkDefined=function e(t,n,r){return u(t,n,r||e),t},e.assertEachIsDefined=d,e.checkEachDefined=function e(t,n,r){return d(t,n,r||e),t},e.assertNever=p,e.assertEachNode=function e(t,n,r,i){c(1,"assertEachNode")&&_(void 0===n||v(t,n),r||"Unexpected node.",()=>`Node array did not pass test '${f(n)}'.`,i||e)},e.assertNode=function e(t,n,r,i){c(1,"assertNode")&&_(void 0!==t&&(void 0===n||n(t)),r||"Unexpected node.",()=>`Node ${y(null==t?void 0:t.kind)} did not pass test '${f(n)}'.`,i||e)},e.assertNotNode=function e(t,n,r,i){c(1,"assertNotNode")&&_(void 0===t||void 0===n||!n(t),r||"Unexpected node.",()=>`Node ${y(t.kind)} should not have passed test '${f(n)}'.`,i||e)},e.assertOptionalNode=function e(t,n,r,i){c(1,"assertOptionalNode")&&_(void 0===n||void 0===t||n(t),r||"Unexpected node.",()=>`Node ${y(null==t?void 0:t.kind)} did not pass test '${f(n)}'.`,i||e)},e.assertOptionalToken=function e(t,n,r,i){c(1,"assertOptionalToken")&&_(void 0===n||void 0===t||t.kind===n,r||"Unexpected node.",()=>`Node ${y(null==t?void 0:t.kind)} was not a '${y(n)}' token.`,i||e)},e.assertMissingNode=function e(t,n,r){c(1,"assertMissingNode")&&_(void 0===t,n||"Unexpected node.",()=>`Node ${y(t.kind)} was unexpected'.`,r||e)},e.type=function(e){},e.getFunctionName=f,e.formatSymbol=function(e){return`{ name: ${mc(e.escapedName)}; flags: ${T(e.flags)}; declarations: ${E(e.declarations,e=>y(e.kind))} }`},e.formatEnum=m;const g=new Map;function y(e){return m(e,fr,!1)}function b(e){return m(e,mr,!0)}function x(e){return m(e,gr,!0)}function k(e){return m(e,Ti,!0)}function S(e){return m(e,wi,!0)}function T(e){return m(e,qr,!0)}function C(e){return m(e,$r,!0)}function w(e){return m(e,ei,!0)}function N(e){return m(e,Hr,!0)}function D(e){return m(e,Sr,!0)}e.formatSyntaxKind=y,e.formatSnippetKind=function(e){return m(e,Ci,!1)},e.formatScriptKind=function(e){return m(e,yi,!1)},e.formatNodeFlags=b,e.formatNodeCheckFlags=function(e){return m(e,Wr,!0)},e.formatModifierFlags=x,e.formatTransformFlags=k,e.formatEmitFlags=S,e.formatSymbolFlags=T,e.formatTypeFlags=C,e.formatSignatureFlags=w,e.formatObjectFlags=N,e.formatFlowFlags=D,e.formatRelationComparisonResult=function(e){return m(e,yr,!0)},e.formatCheckMode=function(e){return m(e,HB,!0)},e.formatSignatureCheckMode=function(e){return m(e,KB,!0)},e.formatTypeFacts=function(e){return m(e,WB,!0)};let F,P,A=!1;function I(e){"__debugFlowFlags"in e||Object.defineProperties(e,{__tsDebuggerDisplay:{value(){const e=2&this.flags?"FlowStart":4&this.flags?"FlowBranchLabel":8&this.flags?"FlowLoopLabel":16&this.flags?"FlowAssignment":32&this.flags?"FlowTrueCondition":64&this.flags?"FlowFalseCondition":128&this.flags?"FlowSwitchClause":256&this.flags?"FlowArrayMutation":512&this.flags?"FlowCall":1024&this.flags?"FlowReduceLabel":1&this.flags?"FlowUnreachable":"UnknownFlow",t=-2048&this.flags;return`${e}${t?` (${D(t)})`:""}`}},__debugFlowFlags:{get(){return m(this.flags,Sr,!0)}},__debugToString:{value(){return j(this)}}})}function O(e){"__tsDebuggerDisplay"in e||Object.defineProperties(e,{__tsDebuggerDisplay:{value:e=>`NodeArray ${e=String(e).replace(/(?:,[\s\w]+:[^,]+)+\]$/,"]")}`}})}e.attachFlowNodeDebugInfo=function(e){return A&&("function"==typeof Object.setPrototypeOf?(F||(F=Object.create(Object.prototype),I(F)),Object.setPrototypeOf(e,F)):I(e)),e},e.attachNodeArrayDebugInfo=function(e){A&&("function"==typeof Object.setPrototypeOf?(P||(P=Object.create(Array.prototype),O(P)),Object.setPrototypeOf(e,P)):O(e))},e.enableDebugInfo=function(){if(A)return;const e=new WeakMap,t=new WeakMap;Object.defineProperties(Mx.getSymbolConstructor().prototype,{__tsDebuggerDisplay:{value(){const e=33554432&this.flags?"TransientSymbol":"Symbol",t=-33554433&this.flags;return`${e} '${yc(this)}'${t?` (${T(t)})`:""}`}},__debugFlags:{get(){return T(this.flags)}}}),Object.defineProperties(Mx.getTypeConstructor().prototype,{__tsDebuggerDisplay:{value(){const e=67359327&this.flags?`IntrinsicType ${this.intrinsicName}${this.debugIntrinsicName?` (${this.debugIntrinsicName})`:""}`:98304&this.flags?"NullableType":384&this.flags?`LiteralType ${JSON.stringify(this.value)}`:2048&this.flags?`LiteralType ${this.value.negative?"-":""}${this.value.base10Value}n`:8192&this.flags?"UniqueESSymbolType":32&this.flags?"EnumType":1048576&this.flags?"UnionType":2097152&this.flags?"IntersectionType":4194304&this.flags?"IndexType":8388608&this.flags?"IndexedAccessType":16777216&this.flags?"ConditionalType":33554432&this.flags?"SubstitutionType":262144&this.flags?"TypeParameter":524288&this.flags?3&this.objectFlags?"InterfaceType":4&this.objectFlags?"TypeReference":8&this.objectFlags?"TupleType":16&this.objectFlags?"AnonymousType":32&this.objectFlags?"MappedType":1024&this.objectFlags?"ReverseMappedType":256&this.objectFlags?"EvolvingArrayType":"ObjectType":"Type",t=524288&this.flags?-1344&this.objectFlags:0;return`${e}${this.symbol?` '${yc(this.symbol)}'`:""}${t?` (${N(t)})`:""}`}},__debugFlags:{get(){return C(this.flags)}},__debugObjectFlags:{get(){return 524288&this.flags?N(this.objectFlags):""}},__debugTypeToString:{value(){let t=e.get(this);return void 0===t&&(t=this.checker.typeToString(this),e.set(this,t)),t}}}),Object.defineProperties(Mx.getSignatureConstructor().prototype,{__debugFlags:{get(){return w(this.flags)}},__debugSignatureToString:{value(){var e;return null==(e=this.checker)?void 0:e.signatureToString(this)}}});const n=[Mx.getNodeConstructor(),Mx.getIdentifierConstructor(),Mx.getTokenConstructor(),Mx.getSourceFileConstructor()];for(const e of n)De(e.prototype,"__debugKind")||Object.defineProperties(e.prototype,{__tsDebuggerDisplay:{value(){return`${Wl(this)?"GeneratedIdentifier":aD(this)?`Identifier '${gc(this)}'`:sD(this)?`PrivateIdentifier '${gc(this)}'`:UN(this)?`StringLiteral ${JSON.stringify(this.text.length<10?this.text:this.text.slice(10)+"...")}`:zN(this)?`NumericLiteral ${this.text}`:qN(this)?`BigIntLiteral ${this.text}n`:SD(this)?"TypeParameterDeclaration":TD(this)?"ParameterDeclaration":PD(this)?"ConstructorDeclaration":AD(this)?"GetAccessorDeclaration":ID(this)?"SetAccessorDeclaration":OD(this)?"CallSignatureDeclaration":LD(this)?"ConstructSignatureDeclaration":jD(this)?"IndexSignatureDeclaration":MD(this)?"TypePredicateNode":RD(this)?"TypeReferenceNode":BD(this)?"FunctionTypeNode":JD(this)?"ConstructorTypeNode":zD(this)?"TypeQueryNode":qD(this)?"TypeLiteralNode":UD(this)?"ArrayTypeNode":VD(this)?"TupleTypeNode":$D(this)?"OptionalTypeNode":HD(this)?"RestTypeNode":KD(this)?"UnionTypeNode":GD(this)?"IntersectionTypeNode":XD(this)?"ConditionalTypeNode":QD(this)?"InferTypeNode":YD(this)?"ParenthesizedTypeNode":ZD(this)?"ThisTypeNode":eF(this)?"TypeOperatorNode":tF(this)?"IndexedAccessTypeNode":nF(this)?"MappedTypeNode":rF(this)?"LiteralTypeNode":WD(this)?"NamedTupleMember":iF(this)?"ImportTypeNode":y(this.kind)}${this.flags?` (${b(this.flags)})`:""}`}},__debugKind:{get(){return y(this.kind)}},__debugNodeFlags:{get(){return b(this.flags)}},__debugModifierFlags:{get(){return x(Vv(this))}},__debugTransformFlags:{get(){return k(this.transformFlags)}},__debugIsParseTreeNode:{get(){return dc(this)}},__debugEmitFlags:{get(){return S(Zd(this))}},__debugGetText:{value(e){if(ey(this))return"";let n=t.get(this);if(void 0===n){const r=pc(this),i=r&&vd(r);n=i?Vd(i,r,e):"",t.set(this,n)}return n}}});A=!0},e.formatVariance=function(e){const t=7&e;let n=0===t?"in out":3===t?"[bivariant]":2===t?"in":1===t?"out":4===t?"[independent]":"";return 8&e?n+=" (unmeasurable)":16&e&&(n+=" (unreliable)"),n};class L{__debugToString(){var e;switch(this.kind){case 3:return(null==(e=this.debugInfo)?void 0:e.call(this))||"(function mapper)";case 0:return`${this.source.__debugTypeToString()} -> ${this.target.__debugTypeToString()}`;case 1:return h(this.sources,this.targets||E(this.sources,()=>"any"),(e,t)=>`${e.__debugTypeToString()} -> ${"string"==typeof t?t:t.__debugTypeToString()}`).join(", ");case 2:return h(this.sources,this.targets,(e,t)=>`${e.__debugTypeToString()} -> ${t().__debugTypeToString()}`).join(", ");case 5:case 4:return`m1: ${this.mapper1.__debugToString().split("\n").join("\n ")}\nm2: ${this.mapper2.__debugToString().split("\n").join("\n ")}`;default:return p(this)}}}function j(e){let t,n=-1;function r(e){return e.id||(e.id=n,n--),e.id}var i;let o;var a;(i=t||(t={})).lr="─",i.ud="│",i.dr="╭",i.dl="╮",i.ul="╯",i.ur="╰",i.udr="├",i.udl="┤",i.dlr="┬",i.ulr="┴",i.udlr="╫",(a=o||(o={}))[a.None=0]="None",a[a.Up=1]="Up",a[a.Down=2]="Down",a[a.Left=4]="Left",a[a.Right=8]="Right",a[a.UpDown=3]="UpDown",a[a.LeftRight=12]="LeftRight",a[a.UpLeft=5]="UpLeft",a[a.UpRight=9]="UpRight",a[a.DownLeft=6]="DownLeft",a[a.DownRight=10]="DownRight",a[a.UpDownLeft=7]="UpDownLeft",a[a.UpDownRight=11]="UpDownRight",a[a.UpLeftRight=13]="UpLeftRight",a[a.DownLeftRight=14]="DownLeftRight",a[a.UpDownLeftRight=15]="UpDownLeftRight",a[a.NoChildren=16]="NoChildren";const s=Object.create(null),c=[],l=[],_=f(e,new Set);for(const e of c)e.text=y(e.flowNode,e.circular),g(e);const u=function(e){const t=b(Array(e),0);for(const e of c)t[e.level]=Math.max(t[e.level],e.text.length);return t}(function e(t){let n=0;for(const r of d(t))n=Math.max(n,e(r));return n+1}(_));return function e(t,n){if(-1===t.lane){t.lane=n,t.endLane=n;const r=d(t);for(let i=0;i0&&n++;const o=r[i];e(o,n),o.endLane>t.endLane&&(n=o.endLane)}t.endLane=n}}(_,0),function(){const e=u.length,t=xt(c,0,e=>e.lane)+1,n=b(Array(t),""),r=u.map(()=>Array(t)),i=u.map(()=>b(Array(t),0));for(const e of c){r[e.level][e.lane]=e;const t=d(e);for(let n=0;n0&&(o|=1),n0&&(o|=1),t0?i[n-1][e]:0,r=e>0?i[n][e-1]:0;let o=i[n][e];o||(8&t&&(o|=12),2&r&&(o|=3),i[n][e]=o)}for(let t=0;t0?e.repeat(t):"";let n="";for(;n.length=0,"Invalid argument: major"),un.assert(t>=0,"Invalid argument: minor"),un.assert(n>=0,"Invalid argument: patch");const o=r?Qe(r)?r:r.split("."):l,a=i?Qe(i)?i:i.split("."):l;un.assert(v(o,e=>mn.test(e)),"Invalid argument: prerelease"),un.assert(v(a,e=>hn.test(e)),"Invalid argument: build"),this.major=e,this.minor=t,this.patch=n,this.prerelease=o,this.build=a}static tryParse(t){const n=xn(t);if(!n)return;const{major:r,minor:i,patch:o,prerelease:a,build:s}=n;return new e(r,i,o,a,s)}compareTo(e){return this===e?0:void 0===e?1:vt(this.major,e.major)||vt(this.minor,e.minor)||vt(this.patch,e.patch)||function(e,t){if(e===t)return 0;if(0===e.length)return 0===t.length?0:1;if(0===t.length)return-1;const n=Math.min(e.length,t.length);for(let r=0;r=]|<=|>=)?\s*([a-z0-9-+.*]+)$/i;function Dn(e){const t=[];for(let n of e.trim().split(Sn)){if(!n)continue;const e=[];n=n.trim();const r=wn.exec(n);if(r){if(!En(r[1],r[2],e))return}else for(const t of n.split(Tn)){const n=Nn.exec(t.trim());if(!n||!Pn(n[1],n[2],e))return}t.push(e)}return t}function Fn(e){const t=Cn.exec(e);if(!t)return;const[,n,r="*",i="*",o,a]=t;return{version:new bn(An(n)?0:parseInt(n,10),An(n)||An(r)?0:parseInt(r,10),An(n)||An(r)||An(i)?0:parseInt(i,10),o,a),major:n,minor:r,patch:i}}function En(e,t,n){const r=Fn(e);if(!r)return!1;const i=Fn(t);return!!i&&(An(r.major)||n.push(In(">=",r.version)),An(i.major)||n.push(An(i.minor)?In("<",i.version.increment("major")):An(i.patch)?In("<",i.version.increment("minor")):In("<=",i.version)),!0)}function Pn(e,t,n){const r=Fn(t);if(!r)return!1;const{version:i,major:o,minor:a,patch:s}=r;if(An(o))"<"!==e&&">"!==e||n.push(In("<",bn.zero));else switch(e){case"~":n.push(In(">=",i)),n.push(In("<",i.increment(An(a)?"major":"minor")));break;case"^":n.push(In(">=",i)),n.push(In("<",i.increment(i.major>0||An(a)?"major":i.minor>0||An(s)?"minor":"patch")));break;case"<":case">=":n.push(An(a)||An(s)?In(e,i.with({prerelease:"0"})):In(e,i));break;case"<=":case">":n.push(An(a)?In("<="===e?"<":">=",i.increment("major").with({prerelease:"0"})):An(s)?In("<="===e?"<":">=",i.increment("minor").with({prerelease:"0"})):In(e,i));break;case"=":case void 0:An(a)||An(s)?(n.push(In(">=",i.with({prerelease:"0"}))),n.push(In("<",i.increment(An(a)?"major":"minor").with({prerelease:"0"})))):n.push(In("=",i));break;default:return!1}return!0}function An(e){return"*"===e||"x"===e||"X"===e}function In(e,t){return{operator:e,operand:t}}function On(e,t){for(const n of t)if(!Ln(e,n.operator,n.operand))return!1;return!0}function Ln(e,t,n){const r=e.compareTo(n);switch(t){case"<":return r<0;case"<=":return r<=0;case">":return r>0;case">=":return r>=0;case"=":return 0===r;default:return un.assertNever(t)}}function jn(e){return E(e,Mn).join(" ")}function Mn(e){return`${e.operator}${e.operand}`}var Rn=function(){const e=function(){if(_n())try{const{performance:e}=n(732);if(e)return{shouldWriteNativeEvents:!1,performance:e}}catch{}if("object"==typeof performance)return{shouldWriteNativeEvents:!0,performance}}();if(!e)return;const{shouldWriteNativeEvents:t,performance:r}=e,i={shouldWriteNativeEvents:t,performance:void 0,performanceTime:void 0};return"number"==typeof r.timeOrigin&&"function"==typeof r.now&&(i.performanceTime=r),i.performanceTime&&"function"==typeof r.mark&&"function"==typeof r.measure&&"function"==typeof r.clearMarks&&"function"==typeof r.clearMeasures&&(i.performance=r),i}(),Bn=null==Rn?void 0:Rn.performanceTime;function Jn(){return Rn}var zn,qn,Un=Bn?()=>Bn.now():Date.now,Vn={};function Wn(e,t,n,r){return e?$n(t,n,r):Gn}function $n(e,t,n){let r=0;return{enter:function(){1===++r&&tr(t)},exit:function(){0===--r?(tr(n),nr(e,t,n)):r<0&&un.fail("enter/exit count does not match.")}}}i(Vn,{clearMarks:()=>cr,clearMeasures:()=>sr,createTimer:()=>$n,createTimerIf:()=>Wn,disable:()=>ur,enable:()=>_r,forEachMark:()=>ar,forEachMeasure:()=>or,getCount:()=>rr,getDuration:()=>ir,isEnabled:()=>lr,mark:()=>tr,measure:()=>nr,nullTimer:()=>Gn});var Hn,Kn,Gn={enter:rt,exit:rt},Xn=!1,Qn=Un(),Yn=new Map,Zn=new Map,er=new Map;function tr(e){if(Xn){const t=Zn.get(e)??0;Zn.set(e,t+1),Yn.set(e,Un()),null==qn||qn.mark(e),"function"==typeof onProfilerEvent&&onProfilerEvent(e)}}function nr(e,t,n){if(Xn){const r=(void 0!==n?Yn.get(n):void 0)??Un(),i=(void 0!==t?Yn.get(t):void 0)??Qn,o=er.get(e)||0;er.set(e,o+(r-i)),null==qn||qn.measure(e,t,n)}}function rr(e){return Zn.get(e)||0}function ir(e){return er.get(e)||0}function or(e){er.forEach((t,n)=>e(n,t))}function ar(e){Yn.forEach((t,n)=>e(n))}function sr(e){void 0!==e?er.delete(e):er.clear(),null==qn||qn.clearMeasures(e)}function cr(e){void 0!==e?(Zn.delete(e),Yn.delete(e)):(Zn.clear(),Yn.clear()),null==qn||qn.clearMarks(e)}function lr(){return Xn}function _r(e=so){var t;return Xn||(Xn=!0,zn||(zn=Jn()),(null==zn?void 0:zn.performance)&&(Qn=zn.performance.timeOrigin,(zn.shouldWriteNativeEvents||(null==(t=null==e?void 0:e.cpuProfilingEnabled)?void 0:t.call(e))||(null==e?void 0:e.debugMode))&&(qn=zn.performance))),!0}function ur(){Xn&&(Yn.clear(),Zn.clear(),er.clear(),qn=void 0,Xn=!1)}(e=>{let t,r,i=0,o=0;const a=[];let s;const c=[];let l;var _;e.startTracing=function(l,_,u){if(un.assert(!Hn,"Tracing already started"),void 0===t)try{t=n(21)}catch(e){throw new Error(`tracing requires having fs\n(original error: ${e.message||e})`)}r=l,a.length=0,void 0===s&&(s=jo(_,"legend.json")),t.existsSync(_)||t.mkdirSync(_,{recursive:!0});const d="build"===r?`.${process.pid}-${++i}`:"server"===r?`.${process.pid}`:"",p=jo(_,`trace${d}.json`),f=jo(_,`types${d}.json`);c.push({configFilePath:u,tracePath:p,typesPath:f}),o=t.openSync(p,"w"),Hn=e;const m={cat:"__metadata",ph:"M",ts:1e3*Un(),pid:1,tid:1};t.writeSync(o,"[\n"+[{name:"process_name",args:{name:"tsc"},...m},{name:"thread_name",args:{name:"Main"},...m},{name:"TracingStartedInBrowser",...m,cat:"disabled-by-default-devtools.timeline"}].map(e=>JSON.stringify(e)).join(",\n"))},e.stopTracing=function(){un.assert(Hn,"Tracing is not in progress"),un.assert(!!a.length==("server"!==r)),t.writeSync(o,"\n]\n"),t.closeSync(o),Hn=void 0,a.length?function(e){var n,r,i,o,a,s,l,_,u,d,p,f,g,h,y,v,b,x,k;tr("beginDumpTypes");const S=c[c.length-1].typesPath,T=t.openSync(S,"w"),C=new Map;t.writeSync(T,"[");const w=e.length;for(let c=0;ce.id),referenceLocation:m(e.node)}}let A={};if(16777216&S.flags){const e=S;A={conditionalCheckType:null==(s=e.checkType)?void 0:s.id,conditionalExtendsType:null==(l=e.extendsType)?void 0:l.id,conditionalTrueType:(null==(_=e.resolvedTrueType)?void 0:_.id)??-1,conditionalFalseType:(null==(u=e.resolvedFalseType)?void 0:u.id)??-1}}let I={};if(33554432&S.flags){const e=S;I={substitutionBaseType:null==(d=e.baseType)?void 0:d.id,constraintType:null==(p=e.constraint)?void 0:p.id}}let O={};if(1024&N){const e=S;O={reverseMappedSourceType:null==(f=e.source)?void 0:f.id,reverseMappedMappedType:null==(g=e.mappedType)?void 0:g.id,reverseMappedConstraintType:null==(h=e.constraintType)?void 0:h.id}}let L,j={};if(256&N){const e=S;j={evolvingArrayElementType:e.elementType.id,evolvingArrayFinalType:null==(y=e.finalArrayType)?void 0:y.id}}const M=S.checker.getRecursionIdentity(S);M&&(L=C.get(M),L||(L=C.size,C.set(M,L)));const R={id:S.id,intrinsicName:S.intrinsicName,symbolName:(null==D?void 0:D.escapedName)&&mc(D.escapedName),recursionId:L,isTuple:!!(8&N)||void 0,unionTypes:1048576&S.flags?null==(v=S.types)?void 0:v.map(e=>e.id):void 0,intersectionTypes:2097152&S.flags?S.types.map(e=>e.id):void 0,aliasTypeArguments:null==(b=S.aliasTypeArguments)?void 0:b.map(e=>e.id),keyofType:4194304&S.flags?null==(x=S.type)?void 0:x.id:void 0,...E,...P,...A,...I,...O,...j,destructuringPattern:m(S.pattern),firstDeclaration:m(null==(k=null==D?void 0:D.declarations)?void 0:k[0]),flags:un.formatTypeFlags(S.flags).split("|"),display:F};t.writeSync(T,JSON.stringify(R)),c0),p(u.length-1,1e3*Un(),e),u.length--},e.popAll=function(){const e=1e3*Un();for(let t=u.length-1;t>=0;t--)p(t,e);u.length=0};const d=1e4;function p(e,t,n){const{phase:r,name:i,args:o,time:a,separateBeginAndEnd:s}=u[e];s?(un.assert(!n,"`results` are not supported for events with `separateBeginAndEnd`"),f("E",r,i,o,void 0,t)):d-a%d<=t-a&&f("X",r,i,{...o,results:n},'"dur":'+(t-a),a)}function f(e,n,i,a,s,c=1e3*Un()){"server"===r&&"checkTypes"===n||(tr("beginTracing"),t.writeSync(o,`,\n{"pid":1,"tid":1,"ph":"${e}","cat":"${n}","ts":${c},"name":"${i}"`),s&&t.writeSync(o,`,${s}`),a&&t.writeSync(o,`,"args":${JSON.stringify(a)}`),t.writeSync(o,"}"),tr("endTracing"),nr("Tracing","beginTracing","endTracing"))}function m(e){const t=vd(e);return t?{path:t.path,start:n(za(t,e.pos)),end:n(za(t,e.end))}:void 0;function n(e){return{line:e.line+1,character:e.character+1}}}e.dumpLegend=function(){s&&t.writeFileSync(s,JSON.stringify(c))}})(Kn||(Kn={}));var dr=Kn.startTracing,pr=Kn.dumpLegend,fr=(e=>(e[e.Unknown=0]="Unknown",e[e.EndOfFileToken=1]="EndOfFileToken",e[e.SingleLineCommentTrivia=2]="SingleLineCommentTrivia",e[e.MultiLineCommentTrivia=3]="MultiLineCommentTrivia",e[e.NewLineTrivia=4]="NewLineTrivia",e[e.WhitespaceTrivia=5]="WhitespaceTrivia",e[e.ShebangTrivia=6]="ShebangTrivia",e[e.ConflictMarkerTrivia=7]="ConflictMarkerTrivia",e[e.NonTextFileMarkerTrivia=8]="NonTextFileMarkerTrivia",e[e.NumericLiteral=9]="NumericLiteral",e[e.BigIntLiteral=10]="BigIntLiteral",e[e.StringLiteral=11]="StringLiteral",e[e.JsxText=12]="JsxText",e[e.JsxTextAllWhiteSpaces=13]="JsxTextAllWhiteSpaces",e[e.RegularExpressionLiteral=14]="RegularExpressionLiteral",e[e.NoSubstitutionTemplateLiteral=15]="NoSubstitutionTemplateLiteral",e[e.TemplateHead=16]="TemplateHead",e[e.TemplateMiddle=17]="TemplateMiddle",e[e.TemplateTail=18]="TemplateTail",e[e.OpenBraceToken=19]="OpenBraceToken",e[e.CloseBraceToken=20]="CloseBraceToken",e[e.OpenParenToken=21]="OpenParenToken",e[e.CloseParenToken=22]="CloseParenToken",e[e.OpenBracketToken=23]="OpenBracketToken",e[e.CloseBracketToken=24]="CloseBracketToken",e[e.DotToken=25]="DotToken",e[e.DotDotDotToken=26]="DotDotDotToken",e[e.SemicolonToken=27]="SemicolonToken",e[e.CommaToken=28]="CommaToken",e[e.QuestionDotToken=29]="QuestionDotToken",e[e.LessThanToken=30]="LessThanToken",e[e.LessThanSlashToken=31]="LessThanSlashToken",e[e.GreaterThanToken=32]="GreaterThanToken",e[e.LessThanEqualsToken=33]="LessThanEqualsToken",e[e.GreaterThanEqualsToken=34]="GreaterThanEqualsToken",e[e.EqualsEqualsToken=35]="EqualsEqualsToken",e[e.ExclamationEqualsToken=36]="ExclamationEqualsToken",e[e.EqualsEqualsEqualsToken=37]="EqualsEqualsEqualsToken",e[e.ExclamationEqualsEqualsToken=38]="ExclamationEqualsEqualsToken",e[e.EqualsGreaterThanToken=39]="EqualsGreaterThanToken",e[e.PlusToken=40]="PlusToken",e[e.MinusToken=41]="MinusToken",e[e.AsteriskToken=42]="AsteriskToken",e[e.AsteriskAsteriskToken=43]="AsteriskAsteriskToken",e[e.SlashToken=44]="SlashToken",e[e.PercentToken=45]="PercentToken",e[e.PlusPlusToken=46]="PlusPlusToken",e[e.MinusMinusToken=47]="MinusMinusToken",e[e.LessThanLessThanToken=48]="LessThanLessThanToken",e[e.GreaterThanGreaterThanToken=49]="GreaterThanGreaterThanToken",e[e.GreaterThanGreaterThanGreaterThanToken=50]="GreaterThanGreaterThanGreaterThanToken",e[e.AmpersandToken=51]="AmpersandToken",e[e.BarToken=52]="BarToken",e[e.CaretToken=53]="CaretToken",e[e.ExclamationToken=54]="ExclamationToken",e[e.TildeToken=55]="TildeToken",e[e.AmpersandAmpersandToken=56]="AmpersandAmpersandToken",e[e.BarBarToken=57]="BarBarToken",e[e.QuestionToken=58]="QuestionToken",e[e.ColonToken=59]="ColonToken",e[e.AtToken=60]="AtToken",e[e.QuestionQuestionToken=61]="QuestionQuestionToken",e[e.BacktickToken=62]="BacktickToken",e[e.HashToken=63]="HashToken",e[e.EqualsToken=64]="EqualsToken",e[e.PlusEqualsToken=65]="PlusEqualsToken",e[e.MinusEqualsToken=66]="MinusEqualsToken",e[e.AsteriskEqualsToken=67]="AsteriskEqualsToken",e[e.AsteriskAsteriskEqualsToken=68]="AsteriskAsteriskEqualsToken",e[e.SlashEqualsToken=69]="SlashEqualsToken",e[e.PercentEqualsToken=70]="PercentEqualsToken",e[e.LessThanLessThanEqualsToken=71]="LessThanLessThanEqualsToken",e[e.GreaterThanGreaterThanEqualsToken=72]="GreaterThanGreaterThanEqualsToken",e[e.GreaterThanGreaterThanGreaterThanEqualsToken=73]="GreaterThanGreaterThanGreaterThanEqualsToken",e[e.AmpersandEqualsToken=74]="AmpersandEqualsToken",e[e.BarEqualsToken=75]="BarEqualsToken",e[e.BarBarEqualsToken=76]="BarBarEqualsToken",e[e.AmpersandAmpersandEqualsToken=77]="AmpersandAmpersandEqualsToken",e[e.QuestionQuestionEqualsToken=78]="QuestionQuestionEqualsToken",e[e.CaretEqualsToken=79]="CaretEqualsToken",e[e.Identifier=80]="Identifier",e[e.PrivateIdentifier=81]="PrivateIdentifier",e[e.JSDocCommentTextToken=82]="JSDocCommentTextToken",e[e.BreakKeyword=83]="BreakKeyword",e[e.CaseKeyword=84]="CaseKeyword",e[e.CatchKeyword=85]="CatchKeyword",e[e.ClassKeyword=86]="ClassKeyword",e[e.ConstKeyword=87]="ConstKeyword",e[e.ContinueKeyword=88]="ContinueKeyword",e[e.DebuggerKeyword=89]="DebuggerKeyword",e[e.DefaultKeyword=90]="DefaultKeyword",e[e.DeleteKeyword=91]="DeleteKeyword",e[e.DoKeyword=92]="DoKeyword",e[e.ElseKeyword=93]="ElseKeyword",e[e.EnumKeyword=94]="EnumKeyword",e[e.ExportKeyword=95]="ExportKeyword",e[e.ExtendsKeyword=96]="ExtendsKeyword",e[e.FalseKeyword=97]="FalseKeyword",e[e.FinallyKeyword=98]="FinallyKeyword",e[e.ForKeyword=99]="ForKeyword",e[e.FunctionKeyword=100]="FunctionKeyword",e[e.IfKeyword=101]="IfKeyword",e[e.ImportKeyword=102]="ImportKeyword",e[e.InKeyword=103]="InKeyword",e[e.InstanceOfKeyword=104]="InstanceOfKeyword",e[e.NewKeyword=105]="NewKeyword",e[e.NullKeyword=106]="NullKeyword",e[e.ReturnKeyword=107]="ReturnKeyword",e[e.SuperKeyword=108]="SuperKeyword",e[e.SwitchKeyword=109]="SwitchKeyword",e[e.ThisKeyword=110]="ThisKeyword",e[e.ThrowKeyword=111]="ThrowKeyword",e[e.TrueKeyword=112]="TrueKeyword",e[e.TryKeyword=113]="TryKeyword",e[e.TypeOfKeyword=114]="TypeOfKeyword",e[e.VarKeyword=115]="VarKeyword",e[e.VoidKeyword=116]="VoidKeyword",e[e.WhileKeyword=117]="WhileKeyword",e[e.WithKeyword=118]="WithKeyword",e[e.ImplementsKeyword=119]="ImplementsKeyword",e[e.InterfaceKeyword=120]="InterfaceKeyword",e[e.LetKeyword=121]="LetKeyword",e[e.PackageKeyword=122]="PackageKeyword",e[e.PrivateKeyword=123]="PrivateKeyword",e[e.ProtectedKeyword=124]="ProtectedKeyword",e[e.PublicKeyword=125]="PublicKeyword",e[e.StaticKeyword=126]="StaticKeyword",e[e.YieldKeyword=127]="YieldKeyword",e[e.AbstractKeyword=128]="AbstractKeyword",e[e.AccessorKeyword=129]="AccessorKeyword",e[e.AsKeyword=130]="AsKeyword",e[e.AssertsKeyword=131]="AssertsKeyword",e[e.AssertKeyword=132]="AssertKeyword",e[e.AnyKeyword=133]="AnyKeyword",e[e.AsyncKeyword=134]="AsyncKeyword",e[e.AwaitKeyword=135]="AwaitKeyword",e[e.BooleanKeyword=136]="BooleanKeyword",e[e.ConstructorKeyword=137]="ConstructorKeyword",e[e.DeclareKeyword=138]="DeclareKeyword",e[e.GetKeyword=139]="GetKeyword",e[e.InferKeyword=140]="InferKeyword",e[e.IntrinsicKeyword=141]="IntrinsicKeyword",e[e.IsKeyword=142]="IsKeyword",e[e.KeyOfKeyword=143]="KeyOfKeyword",e[e.ModuleKeyword=144]="ModuleKeyword",e[e.NamespaceKeyword=145]="NamespaceKeyword",e[e.NeverKeyword=146]="NeverKeyword",e[e.OutKeyword=147]="OutKeyword",e[e.ReadonlyKeyword=148]="ReadonlyKeyword",e[e.RequireKeyword=149]="RequireKeyword",e[e.NumberKeyword=150]="NumberKeyword",e[e.ObjectKeyword=151]="ObjectKeyword",e[e.SatisfiesKeyword=152]="SatisfiesKeyword",e[e.SetKeyword=153]="SetKeyword",e[e.StringKeyword=154]="StringKeyword",e[e.SymbolKeyword=155]="SymbolKeyword",e[e.TypeKeyword=156]="TypeKeyword",e[e.UndefinedKeyword=157]="UndefinedKeyword",e[e.UniqueKeyword=158]="UniqueKeyword",e[e.UnknownKeyword=159]="UnknownKeyword",e[e.UsingKeyword=160]="UsingKeyword",e[e.FromKeyword=161]="FromKeyword",e[e.GlobalKeyword=162]="GlobalKeyword",e[e.BigIntKeyword=163]="BigIntKeyword",e[e.OverrideKeyword=164]="OverrideKeyword",e[e.OfKeyword=165]="OfKeyword",e[e.DeferKeyword=166]="DeferKeyword",e[e.QualifiedName=167]="QualifiedName",e[e.ComputedPropertyName=168]="ComputedPropertyName",e[e.TypeParameter=169]="TypeParameter",e[e.Parameter=170]="Parameter",e[e.Decorator=171]="Decorator",e[e.PropertySignature=172]="PropertySignature",e[e.PropertyDeclaration=173]="PropertyDeclaration",e[e.MethodSignature=174]="MethodSignature",e[e.MethodDeclaration=175]="MethodDeclaration",e[e.ClassStaticBlockDeclaration=176]="ClassStaticBlockDeclaration",e[e.Constructor=177]="Constructor",e[e.GetAccessor=178]="GetAccessor",e[e.SetAccessor=179]="SetAccessor",e[e.CallSignature=180]="CallSignature",e[e.ConstructSignature=181]="ConstructSignature",e[e.IndexSignature=182]="IndexSignature",e[e.TypePredicate=183]="TypePredicate",e[e.TypeReference=184]="TypeReference",e[e.FunctionType=185]="FunctionType",e[e.ConstructorType=186]="ConstructorType",e[e.TypeQuery=187]="TypeQuery",e[e.TypeLiteral=188]="TypeLiteral",e[e.ArrayType=189]="ArrayType",e[e.TupleType=190]="TupleType",e[e.OptionalType=191]="OptionalType",e[e.RestType=192]="RestType",e[e.UnionType=193]="UnionType",e[e.IntersectionType=194]="IntersectionType",e[e.ConditionalType=195]="ConditionalType",e[e.InferType=196]="InferType",e[e.ParenthesizedType=197]="ParenthesizedType",e[e.ThisType=198]="ThisType",e[e.TypeOperator=199]="TypeOperator",e[e.IndexedAccessType=200]="IndexedAccessType",e[e.MappedType=201]="MappedType",e[e.LiteralType=202]="LiteralType",e[e.NamedTupleMember=203]="NamedTupleMember",e[e.TemplateLiteralType=204]="TemplateLiteralType",e[e.TemplateLiteralTypeSpan=205]="TemplateLiteralTypeSpan",e[e.ImportType=206]="ImportType",e[e.ObjectBindingPattern=207]="ObjectBindingPattern",e[e.ArrayBindingPattern=208]="ArrayBindingPattern",e[e.BindingElement=209]="BindingElement",e[e.ArrayLiteralExpression=210]="ArrayLiteralExpression",e[e.ObjectLiteralExpression=211]="ObjectLiteralExpression",e[e.PropertyAccessExpression=212]="PropertyAccessExpression",e[e.ElementAccessExpression=213]="ElementAccessExpression",e[e.CallExpression=214]="CallExpression",e[e.NewExpression=215]="NewExpression",e[e.TaggedTemplateExpression=216]="TaggedTemplateExpression",e[e.TypeAssertionExpression=217]="TypeAssertionExpression",e[e.ParenthesizedExpression=218]="ParenthesizedExpression",e[e.FunctionExpression=219]="FunctionExpression",e[e.ArrowFunction=220]="ArrowFunction",e[e.DeleteExpression=221]="DeleteExpression",e[e.TypeOfExpression=222]="TypeOfExpression",e[e.VoidExpression=223]="VoidExpression",e[e.AwaitExpression=224]="AwaitExpression",e[e.PrefixUnaryExpression=225]="PrefixUnaryExpression",e[e.PostfixUnaryExpression=226]="PostfixUnaryExpression",e[e.BinaryExpression=227]="BinaryExpression",e[e.ConditionalExpression=228]="ConditionalExpression",e[e.TemplateExpression=229]="TemplateExpression",e[e.YieldExpression=230]="YieldExpression",e[e.SpreadElement=231]="SpreadElement",e[e.ClassExpression=232]="ClassExpression",e[e.OmittedExpression=233]="OmittedExpression",e[e.ExpressionWithTypeArguments=234]="ExpressionWithTypeArguments",e[e.AsExpression=235]="AsExpression",e[e.NonNullExpression=236]="NonNullExpression",e[e.MetaProperty=237]="MetaProperty",e[e.SyntheticExpression=238]="SyntheticExpression",e[e.SatisfiesExpression=239]="SatisfiesExpression",e[e.TemplateSpan=240]="TemplateSpan",e[e.SemicolonClassElement=241]="SemicolonClassElement",e[e.Block=242]="Block",e[e.EmptyStatement=243]="EmptyStatement",e[e.VariableStatement=244]="VariableStatement",e[e.ExpressionStatement=245]="ExpressionStatement",e[e.IfStatement=246]="IfStatement",e[e.DoStatement=247]="DoStatement",e[e.WhileStatement=248]="WhileStatement",e[e.ForStatement=249]="ForStatement",e[e.ForInStatement=250]="ForInStatement",e[e.ForOfStatement=251]="ForOfStatement",e[e.ContinueStatement=252]="ContinueStatement",e[e.BreakStatement=253]="BreakStatement",e[e.ReturnStatement=254]="ReturnStatement",e[e.WithStatement=255]="WithStatement",e[e.SwitchStatement=256]="SwitchStatement",e[e.LabeledStatement=257]="LabeledStatement",e[e.ThrowStatement=258]="ThrowStatement",e[e.TryStatement=259]="TryStatement",e[e.DebuggerStatement=260]="DebuggerStatement",e[e.VariableDeclaration=261]="VariableDeclaration",e[e.VariableDeclarationList=262]="VariableDeclarationList",e[e.FunctionDeclaration=263]="FunctionDeclaration",e[e.ClassDeclaration=264]="ClassDeclaration",e[e.InterfaceDeclaration=265]="InterfaceDeclaration",e[e.TypeAliasDeclaration=266]="TypeAliasDeclaration",e[e.EnumDeclaration=267]="EnumDeclaration",e[e.ModuleDeclaration=268]="ModuleDeclaration",e[e.ModuleBlock=269]="ModuleBlock",e[e.CaseBlock=270]="CaseBlock",e[e.NamespaceExportDeclaration=271]="NamespaceExportDeclaration",e[e.ImportEqualsDeclaration=272]="ImportEqualsDeclaration",e[e.ImportDeclaration=273]="ImportDeclaration",e[e.ImportClause=274]="ImportClause",e[e.NamespaceImport=275]="NamespaceImport",e[e.NamedImports=276]="NamedImports",e[e.ImportSpecifier=277]="ImportSpecifier",e[e.ExportAssignment=278]="ExportAssignment",e[e.ExportDeclaration=279]="ExportDeclaration",e[e.NamedExports=280]="NamedExports",e[e.NamespaceExport=281]="NamespaceExport",e[e.ExportSpecifier=282]="ExportSpecifier",e[e.MissingDeclaration=283]="MissingDeclaration",e[e.ExternalModuleReference=284]="ExternalModuleReference",e[e.JsxElement=285]="JsxElement",e[e.JsxSelfClosingElement=286]="JsxSelfClosingElement",e[e.JsxOpeningElement=287]="JsxOpeningElement",e[e.JsxClosingElement=288]="JsxClosingElement",e[e.JsxFragment=289]="JsxFragment",e[e.JsxOpeningFragment=290]="JsxOpeningFragment",e[e.JsxClosingFragment=291]="JsxClosingFragment",e[e.JsxAttribute=292]="JsxAttribute",e[e.JsxAttributes=293]="JsxAttributes",e[e.JsxSpreadAttribute=294]="JsxSpreadAttribute",e[e.JsxExpression=295]="JsxExpression",e[e.JsxNamespacedName=296]="JsxNamespacedName",e[e.CaseClause=297]="CaseClause",e[e.DefaultClause=298]="DefaultClause",e[e.HeritageClause=299]="HeritageClause",e[e.CatchClause=300]="CatchClause",e[e.ImportAttributes=301]="ImportAttributes",e[e.ImportAttribute=302]="ImportAttribute",e[e.AssertClause=301]="AssertClause",e[e.AssertEntry=302]="AssertEntry",e[e.ImportTypeAssertionContainer=303]="ImportTypeAssertionContainer",e[e.PropertyAssignment=304]="PropertyAssignment",e[e.ShorthandPropertyAssignment=305]="ShorthandPropertyAssignment",e[e.SpreadAssignment=306]="SpreadAssignment",e[e.EnumMember=307]="EnumMember",e[e.SourceFile=308]="SourceFile",e[e.Bundle=309]="Bundle",e[e.JSDocTypeExpression=310]="JSDocTypeExpression",e[e.JSDocNameReference=311]="JSDocNameReference",e[e.JSDocMemberName=312]="JSDocMemberName",e[e.JSDocAllType=313]="JSDocAllType",e[e.JSDocUnknownType=314]="JSDocUnknownType",e[e.JSDocNullableType=315]="JSDocNullableType",e[e.JSDocNonNullableType=316]="JSDocNonNullableType",e[e.JSDocOptionalType=317]="JSDocOptionalType",e[e.JSDocFunctionType=318]="JSDocFunctionType",e[e.JSDocVariadicType=319]="JSDocVariadicType",e[e.JSDocNamepathType=320]="JSDocNamepathType",e[e.JSDoc=321]="JSDoc",e[e.JSDocComment=321]="JSDocComment",e[e.JSDocText=322]="JSDocText",e[e.JSDocTypeLiteral=323]="JSDocTypeLiteral",e[e.JSDocSignature=324]="JSDocSignature",e[e.JSDocLink=325]="JSDocLink",e[e.JSDocLinkCode=326]="JSDocLinkCode",e[e.JSDocLinkPlain=327]="JSDocLinkPlain",e[e.JSDocTag=328]="JSDocTag",e[e.JSDocAugmentsTag=329]="JSDocAugmentsTag",e[e.JSDocImplementsTag=330]="JSDocImplementsTag",e[e.JSDocAuthorTag=331]="JSDocAuthorTag",e[e.JSDocDeprecatedTag=332]="JSDocDeprecatedTag",e[e.JSDocClassTag=333]="JSDocClassTag",e[e.JSDocPublicTag=334]="JSDocPublicTag",e[e.JSDocPrivateTag=335]="JSDocPrivateTag",e[e.JSDocProtectedTag=336]="JSDocProtectedTag",e[e.JSDocReadonlyTag=337]="JSDocReadonlyTag",e[e.JSDocOverrideTag=338]="JSDocOverrideTag",e[e.JSDocCallbackTag=339]="JSDocCallbackTag",e[e.JSDocOverloadTag=340]="JSDocOverloadTag",e[e.JSDocEnumTag=341]="JSDocEnumTag",e[e.JSDocParameterTag=342]="JSDocParameterTag",e[e.JSDocReturnTag=343]="JSDocReturnTag",e[e.JSDocThisTag=344]="JSDocThisTag",e[e.JSDocTypeTag=345]="JSDocTypeTag",e[e.JSDocTemplateTag=346]="JSDocTemplateTag",e[e.JSDocTypedefTag=347]="JSDocTypedefTag",e[e.JSDocSeeTag=348]="JSDocSeeTag",e[e.JSDocPropertyTag=349]="JSDocPropertyTag",e[e.JSDocThrowsTag=350]="JSDocThrowsTag",e[e.JSDocSatisfiesTag=351]="JSDocSatisfiesTag",e[e.JSDocImportTag=352]="JSDocImportTag",e[e.SyntaxList=353]="SyntaxList",e[e.NotEmittedStatement=354]="NotEmittedStatement",e[e.NotEmittedTypeElement=355]="NotEmittedTypeElement",e[e.PartiallyEmittedExpression=356]="PartiallyEmittedExpression",e[e.CommaListExpression=357]="CommaListExpression",e[e.SyntheticReferenceExpression=358]="SyntheticReferenceExpression",e[e.Count=359]="Count",e[e.FirstAssignment=64]="FirstAssignment",e[e.LastAssignment=79]="LastAssignment",e[e.FirstCompoundAssignment=65]="FirstCompoundAssignment",e[e.LastCompoundAssignment=79]="LastCompoundAssignment",e[e.FirstReservedWord=83]="FirstReservedWord",e[e.LastReservedWord=118]="LastReservedWord",e[e.FirstKeyword=83]="FirstKeyword",e[e.LastKeyword=166]="LastKeyword",e[e.FirstFutureReservedWord=119]="FirstFutureReservedWord",e[e.LastFutureReservedWord=127]="LastFutureReservedWord",e[e.FirstTypeNode=183]="FirstTypeNode",e[e.LastTypeNode=206]="LastTypeNode",e[e.FirstPunctuation=19]="FirstPunctuation",e[e.LastPunctuation=79]="LastPunctuation",e[e.FirstToken=0]="FirstToken",e[e.LastToken=166]="LastToken",e[e.FirstTriviaToken=2]="FirstTriviaToken",e[e.LastTriviaToken=7]="LastTriviaToken",e[e.FirstLiteralToken=9]="FirstLiteralToken",e[e.LastLiteralToken=15]="LastLiteralToken",e[e.FirstTemplateToken=15]="FirstTemplateToken",e[e.LastTemplateToken=18]="LastTemplateToken",e[e.FirstBinaryOperator=30]="FirstBinaryOperator",e[e.LastBinaryOperator=79]="LastBinaryOperator",e[e.FirstStatement=244]="FirstStatement",e[e.LastStatement=260]="LastStatement",e[e.FirstNode=167]="FirstNode",e[e.FirstJSDocNode=310]="FirstJSDocNode",e[e.LastJSDocNode=352]="LastJSDocNode",e[e.FirstJSDocTagNode=328]="FirstJSDocTagNode",e[e.LastJSDocTagNode=352]="LastJSDocTagNode",e[e.FirstContextualKeyword=128]="FirstContextualKeyword",e[e.LastContextualKeyword=166]="LastContextualKeyword",e))(fr||{}),mr=(e=>(e[e.None=0]="None",e[e.Let=1]="Let",e[e.Const=2]="Const",e[e.Using=4]="Using",e[e.AwaitUsing=6]="AwaitUsing",e[e.NestedNamespace=8]="NestedNamespace",e[e.Synthesized=16]="Synthesized",e[e.Namespace=32]="Namespace",e[e.OptionalChain=64]="OptionalChain",e[e.ExportContext=128]="ExportContext",e[e.ContainsThis=256]="ContainsThis",e[e.HasImplicitReturn=512]="HasImplicitReturn",e[e.HasExplicitReturn=1024]="HasExplicitReturn",e[e.GlobalAugmentation=2048]="GlobalAugmentation",e[e.HasAsyncFunctions=4096]="HasAsyncFunctions",e[e.DisallowInContext=8192]="DisallowInContext",e[e.YieldContext=16384]="YieldContext",e[e.DecoratorContext=32768]="DecoratorContext",e[e.AwaitContext=65536]="AwaitContext",e[e.DisallowConditionalTypesContext=131072]="DisallowConditionalTypesContext",e[e.ThisNodeHasError=262144]="ThisNodeHasError",e[e.JavaScriptFile=524288]="JavaScriptFile",e[e.ThisNodeOrAnySubNodesHasError=1048576]="ThisNodeOrAnySubNodesHasError",e[e.HasAggregatedChildData=2097152]="HasAggregatedChildData",e[e.PossiblyContainsDynamicImport=4194304]="PossiblyContainsDynamicImport",e[e.PossiblyContainsImportMeta=8388608]="PossiblyContainsImportMeta",e[e.JSDoc=16777216]="JSDoc",e[e.Ambient=33554432]="Ambient",e[e.InWithStatement=67108864]="InWithStatement",e[e.JsonFile=134217728]="JsonFile",e[e.TypeCached=268435456]="TypeCached",e[e.Deprecated=536870912]="Deprecated",e[e.BlockScoped=7]="BlockScoped",e[e.Constant=6]="Constant",e[e.ReachabilityCheckFlags=1536]="ReachabilityCheckFlags",e[e.ReachabilityAndEmitFlags=5632]="ReachabilityAndEmitFlags",e[e.ContextFlags=101441536]="ContextFlags",e[e.TypeExcludesFlags=81920]="TypeExcludesFlags",e[e.PermanentlySetIncrementalFlags=12582912]="PermanentlySetIncrementalFlags",e[e.IdentifierHasExtendedUnicodeEscape=256]="IdentifierHasExtendedUnicodeEscape",e[e.IdentifierIsInJSDocNamespace=4096]="IdentifierIsInJSDocNamespace",e))(mr||{}),gr=(e=>(e[e.None=0]="None",e[e.Public=1]="Public",e[e.Private=2]="Private",e[e.Protected=4]="Protected",e[e.Readonly=8]="Readonly",e[e.Override=16]="Override",e[e.Export=32]="Export",e[e.Abstract=64]="Abstract",e[e.Ambient=128]="Ambient",e[e.Static=256]="Static",e[e.Accessor=512]="Accessor",e[e.Async=1024]="Async",e[e.Default=2048]="Default",e[e.Const=4096]="Const",e[e.In=8192]="In",e[e.Out=16384]="Out",e[e.Decorator=32768]="Decorator",e[e.Deprecated=65536]="Deprecated",e[e.JSDocPublic=8388608]="JSDocPublic",e[e.JSDocPrivate=16777216]="JSDocPrivate",e[e.JSDocProtected=33554432]="JSDocProtected",e[e.JSDocReadonly=67108864]="JSDocReadonly",e[e.JSDocOverride=134217728]="JSDocOverride",e[e.SyntacticOrJSDocModifiers=31]="SyntacticOrJSDocModifiers",e[e.SyntacticOnlyModifiers=65504]="SyntacticOnlyModifiers",e[e.SyntacticModifiers=65535]="SyntacticModifiers",e[e.JSDocCacheOnlyModifiers=260046848]="JSDocCacheOnlyModifiers",e[e.JSDocOnlyModifiers=65536]="JSDocOnlyModifiers",e[e.NonCacheOnlyModifiers=131071]="NonCacheOnlyModifiers",e[e.HasComputedJSDocModifiers=268435456]="HasComputedJSDocModifiers",e[e.HasComputedFlags=536870912]="HasComputedFlags",e[e.AccessibilityModifier=7]="AccessibilityModifier",e[e.ParameterPropertyModifier=31]="ParameterPropertyModifier",e[e.NonPublicAccessibilityModifier=6]="NonPublicAccessibilityModifier",e[e.TypeScriptModifier=28895]="TypeScriptModifier",e[e.ExportDefault=2080]="ExportDefault",e[e.All=131071]="All",e[e.Modifier=98303]="Modifier",e))(gr||{}),hr=(e=>(e[e.None=0]="None",e[e.IntrinsicNamedElement=1]="IntrinsicNamedElement",e[e.IntrinsicIndexedElement=2]="IntrinsicIndexedElement",e[e.IntrinsicElement=3]="IntrinsicElement",e))(hr||{}),yr=(e=>(e[e.None=0]="None",e[e.Succeeded=1]="Succeeded",e[e.Failed=2]="Failed",e[e.ReportsUnmeasurable=8]="ReportsUnmeasurable",e[e.ReportsUnreliable=16]="ReportsUnreliable",e[e.ReportsMask=24]="ReportsMask",e[e.ComplexityOverflow=32]="ComplexityOverflow",e[e.StackDepthOverflow=64]="StackDepthOverflow",e[e.Overflow=96]="Overflow",e))(yr||{}),vr=(e=>(e[e.None=0]="None",e[e.Always=1]="Always",e[e.Never=2]="Never",e[e.Sometimes=3]="Sometimes",e))(vr||{}),br=(e=>(e[e.None=0]="None",e[e.Auto=1]="Auto",e[e.Loop=2]="Loop",e[e.Unique=3]="Unique",e[e.Node=4]="Node",e[e.KindMask=7]="KindMask",e[e.ReservedInNestedScopes=8]="ReservedInNestedScopes",e[e.Optimistic=16]="Optimistic",e[e.FileLevel=32]="FileLevel",e[e.AllowNameSubstitution=64]="AllowNameSubstitution",e))(br||{}),xr=(e=>(e[e.None=0]="None",e[e.HasIndices=1]="HasIndices",e[e.Global=2]="Global",e[e.IgnoreCase=4]="IgnoreCase",e[e.Multiline=8]="Multiline",e[e.DotAll=16]="DotAll",e[e.Unicode=32]="Unicode",e[e.UnicodeSets=64]="UnicodeSets",e[e.Sticky=128]="Sticky",e[e.AnyUnicodeMode=96]="AnyUnicodeMode",e[e.Modifiers=28]="Modifiers",e))(xr||{}),kr=(e=>(e[e.None=0]="None",e[e.PrecedingLineBreak=1]="PrecedingLineBreak",e[e.PrecedingJSDocComment=2]="PrecedingJSDocComment",e[e.Unterminated=4]="Unterminated",e[e.ExtendedUnicodeEscape=8]="ExtendedUnicodeEscape",e[e.Scientific=16]="Scientific",e[e.Octal=32]="Octal",e[e.HexSpecifier=64]="HexSpecifier",e[e.BinarySpecifier=128]="BinarySpecifier",e[e.OctalSpecifier=256]="OctalSpecifier",e[e.ContainsSeparator=512]="ContainsSeparator",e[e.UnicodeEscape=1024]="UnicodeEscape",e[e.ContainsInvalidEscape=2048]="ContainsInvalidEscape",e[e.HexEscape=4096]="HexEscape",e[e.ContainsLeadingZero=8192]="ContainsLeadingZero",e[e.ContainsInvalidSeparator=16384]="ContainsInvalidSeparator",e[e.PrecedingJSDocLeadingAsterisks=32768]="PrecedingJSDocLeadingAsterisks",e[e.BinaryOrOctalSpecifier=384]="BinaryOrOctalSpecifier",e[e.WithSpecifier=448]="WithSpecifier",e[e.StringLiteralFlags=7176]="StringLiteralFlags",e[e.NumericLiteralFlags=25584]="NumericLiteralFlags",e[e.TemplateLiteralLikeFlags=7176]="TemplateLiteralLikeFlags",e[e.IsInvalid=26656]="IsInvalid",e))(kr||{}),Sr=(e=>(e[e.Unreachable=1]="Unreachable",e[e.Start=2]="Start",e[e.BranchLabel=4]="BranchLabel",e[e.LoopLabel=8]="LoopLabel",e[e.Assignment=16]="Assignment",e[e.TrueCondition=32]="TrueCondition",e[e.FalseCondition=64]="FalseCondition",e[e.SwitchClause=128]="SwitchClause",e[e.ArrayMutation=256]="ArrayMutation",e[e.Call=512]="Call",e[e.ReduceLabel=1024]="ReduceLabel",e[e.Referenced=2048]="Referenced",e[e.Shared=4096]="Shared",e[e.Label=12]="Label",e[e.Condition=96]="Condition",e))(Sr||{}),Tr=(e=>(e[e.ExpectError=0]="ExpectError",e[e.Ignore=1]="Ignore",e))(Tr||{}),Cr=class{},wr=(e=>(e[e.RootFile=0]="RootFile",e[e.SourceFromProjectReference=1]="SourceFromProjectReference",e[e.OutputFromProjectReference=2]="OutputFromProjectReference",e[e.Import=3]="Import",e[e.ReferenceFile=4]="ReferenceFile",e[e.TypeReferenceDirective=5]="TypeReferenceDirective",e[e.LibFile=6]="LibFile",e[e.LibReferenceDirective=7]="LibReferenceDirective",e[e.AutomaticTypeDirectiveFile=8]="AutomaticTypeDirectiveFile",e))(wr||{}),Nr=(e=>(e[e.FilePreprocessingLibReferenceDiagnostic=0]="FilePreprocessingLibReferenceDiagnostic",e[e.FilePreprocessingFileExplainingDiagnostic=1]="FilePreprocessingFileExplainingDiagnostic",e[e.ResolutionDiagnostics=2]="ResolutionDiagnostics",e))(Nr||{}),Dr=(e=>(e[e.Js=0]="Js",e[e.Dts=1]="Dts",e[e.BuilderSignature=2]="BuilderSignature",e))(Dr||{}),Fr=(e=>(e[e.Not=0]="Not",e[e.SafeModules=1]="SafeModules",e[e.Completely=2]="Completely",e))(Fr||{}),Er=(e=>(e[e.Success=0]="Success",e[e.DiagnosticsPresent_OutputsSkipped=1]="DiagnosticsPresent_OutputsSkipped",e[e.DiagnosticsPresent_OutputsGenerated=2]="DiagnosticsPresent_OutputsGenerated",e[e.InvalidProject_OutputsSkipped=3]="InvalidProject_OutputsSkipped",e[e.ProjectReferenceCycle_OutputsSkipped=4]="ProjectReferenceCycle_OutputsSkipped",e))(Er||{}),Pr=(e=>(e[e.Ok=0]="Ok",e[e.NeedsOverride=1]="NeedsOverride",e[e.HasInvalidOverride=2]="HasInvalidOverride",e))(Pr||{}),Ar=(e=>(e[e.None=0]="None",e[e.Literal=1]="Literal",e[e.Subtype=2]="Subtype",e))(Ar||{}),Ir=(e=>(e[e.None=0]="None",e[e.NoSupertypeReduction=1]="NoSupertypeReduction",e[e.NoConstraintReduction=2]="NoConstraintReduction",e))(Ir||{}),Or=(e=>(e[e.None=0]="None",e[e.Signature=1]="Signature",e[e.NoConstraints=2]="NoConstraints",e[e.Completions=4]="Completions",e[e.SkipBindingPatterns=8]="SkipBindingPatterns",e))(Or||{}),Lr=(e=>(e[e.None=0]="None",e[e.NoTruncation=1]="NoTruncation",e[e.WriteArrayAsGenericType=2]="WriteArrayAsGenericType",e[e.GenerateNamesForShadowedTypeParams=4]="GenerateNamesForShadowedTypeParams",e[e.UseStructuralFallback=8]="UseStructuralFallback",e[e.ForbidIndexedAccessSymbolReferences=16]="ForbidIndexedAccessSymbolReferences",e[e.WriteTypeArgumentsOfSignature=32]="WriteTypeArgumentsOfSignature",e[e.UseFullyQualifiedType=64]="UseFullyQualifiedType",e[e.UseOnlyExternalAliasing=128]="UseOnlyExternalAliasing",e[e.SuppressAnyReturnType=256]="SuppressAnyReturnType",e[e.WriteTypeParametersInQualifiedName=512]="WriteTypeParametersInQualifiedName",e[e.MultilineObjectLiterals=1024]="MultilineObjectLiterals",e[e.WriteClassExpressionAsTypeLiteral=2048]="WriteClassExpressionAsTypeLiteral",e[e.UseTypeOfFunction=4096]="UseTypeOfFunction",e[e.OmitParameterModifiers=8192]="OmitParameterModifiers",e[e.UseAliasDefinedOutsideCurrentScope=16384]="UseAliasDefinedOutsideCurrentScope",e[e.UseSingleQuotesForStringLiteralType=268435456]="UseSingleQuotesForStringLiteralType",e[e.NoTypeReduction=536870912]="NoTypeReduction",e[e.OmitThisParameter=33554432]="OmitThisParameter",e[e.AllowThisInObjectLiteral=32768]="AllowThisInObjectLiteral",e[e.AllowQualifiedNameInPlaceOfIdentifier=65536]="AllowQualifiedNameInPlaceOfIdentifier",e[e.AllowAnonymousIdentifier=131072]="AllowAnonymousIdentifier",e[e.AllowEmptyUnionOrIntersection=262144]="AllowEmptyUnionOrIntersection",e[e.AllowEmptyTuple=524288]="AllowEmptyTuple",e[e.AllowUniqueESSymbolType=1048576]="AllowUniqueESSymbolType",e[e.AllowEmptyIndexInfoType=2097152]="AllowEmptyIndexInfoType",e[e.AllowNodeModulesRelativePaths=67108864]="AllowNodeModulesRelativePaths",e[e.IgnoreErrors=70221824]="IgnoreErrors",e[e.InObjectTypeLiteral=4194304]="InObjectTypeLiteral",e[e.InTypeAlias=8388608]="InTypeAlias",e[e.InInitialEntityName=16777216]="InInitialEntityName",e))(Lr||{}),jr=(e=>(e[e.None=0]="None",e[e.WriteComputedProps=1]="WriteComputedProps",e[e.NoSyntacticPrinter=2]="NoSyntacticPrinter",e[e.DoNotIncludeSymbolChain=4]="DoNotIncludeSymbolChain",e[e.AllowUnresolvedNames=8]="AllowUnresolvedNames",e))(jr||{}),Mr=(e=>(e[e.None=0]="None",e[e.NoTruncation=1]="NoTruncation",e[e.WriteArrayAsGenericType=2]="WriteArrayAsGenericType",e[e.GenerateNamesForShadowedTypeParams=4]="GenerateNamesForShadowedTypeParams",e[e.UseStructuralFallback=8]="UseStructuralFallback",e[e.WriteTypeArgumentsOfSignature=32]="WriteTypeArgumentsOfSignature",e[e.UseFullyQualifiedType=64]="UseFullyQualifiedType",e[e.SuppressAnyReturnType=256]="SuppressAnyReturnType",e[e.MultilineObjectLiterals=1024]="MultilineObjectLiterals",e[e.WriteClassExpressionAsTypeLiteral=2048]="WriteClassExpressionAsTypeLiteral",e[e.UseTypeOfFunction=4096]="UseTypeOfFunction",e[e.OmitParameterModifiers=8192]="OmitParameterModifiers",e[e.UseAliasDefinedOutsideCurrentScope=16384]="UseAliasDefinedOutsideCurrentScope",e[e.UseSingleQuotesForStringLiteralType=268435456]="UseSingleQuotesForStringLiteralType",e[e.NoTypeReduction=536870912]="NoTypeReduction",e[e.OmitThisParameter=33554432]="OmitThisParameter",e[e.AllowUniqueESSymbolType=1048576]="AllowUniqueESSymbolType",e[e.AddUndefined=131072]="AddUndefined",e[e.WriteArrowStyleSignature=262144]="WriteArrowStyleSignature",e[e.InArrayType=524288]="InArrayType",e[e.InElementType=2097152]="InElementType",e[e.InFirstTypeArgument=4194304]="InFirstTypeArgument",e[e.InTypeAlias=8388608]="InTypeAlias",e[e.NodeBuilderFlagsMask=848330095]="NodeBuilderFlagsMask",e))(Mr||{}),Rr=(e=>(e[e.None=0]="None",e[e.WriteTypeParametersOrArguments=1]="WriteTypeParametersOrArguments",e[e.UseOnlyExternalAliasing=2]="UseOnlyExternalAliasing",e[e.AllowAnyNodeKind=4]="AllowAnyNodeKind",e[e.UseAliasDefinedOutsideCurrentScope=8]="UseAliasDefinedOutsideCurrentScope",e[e.WriteComputedProps=16]="WriteComputedProps",e[e.DoNotIncludeSymbolChain=32]="DoNotIncludeSymbolChain",e))(Rr||{}),Br=(e=>(e[e.Accessible=0]="Accessible",e[e.NotAccessible=1]="NotAccessible",e[e.CannotBeNamed=2]="CannotBeNamed",e[e.NotResolved=3]="NotResolved",e))(Br||{}),Jr=(e=>(e[e.This=0]="This",e[e.Identifier=1]="Identifier",e[e.AssertsThis=2]="AssertsThis",e[e.AssertsIdentifier=3]="AssertsIdentifier",e))(Jr||{}),zr=(e=>(e[e.Unknown=0]="Unknown",e[e.TypeWithConstructSignatureAndValue=1]="TypeWithConstructSignatureAndValue",e[e.VoidNullableOrNeverType=2]="VoidNullableOrNeverType",e[e.NumberLikeType=3]="NumberLikeType",e[e.BigIntLikeType=4]="BigIntLikeType",e[e.StringLikeType=5]="StringLikeType",e[e.BooleanType=6]="BooleanType",e[e.ArrayLikeType=7]="ArrayLikeType",e[e.ESSymbolType=8]="ESSymbolType",e[e.Promise=9]="Promise",e[e.TypeWithCallSignature=10]="TypeWithCallSignature",e[e.ObjectType=11]="ObjectType",e))(zr||{}),qr=(e=>(e[e.None=0]="None",e[e.FunctionScopedVariable=1]="FunctionScopedVariable",e[e.BlockScopedVariable=2]="BlockScopedVariable",e[e.Property=4]="Property",e[e.EnumMember=8]="EnumMember",e[e.Function=16]="Function",e[e.Class=32]="Class",e[e.Interface=64]="Interface",e[e.ConstEnum=128]="ConstEnum",e[e.RegularEnum=256]="RegularEnum",e[e.ValueModule=512]="ValueModule",e[e.NamespaceModule=1024]="NamespaceModule",e[e.TypeLiteral=2048]="TypeLiteral",e[e.ObjectLiteral=4096]="ObjectLiteral",e[e.Method=8192]="Method",e[e.Constructor=16384]="Constructor",e[e.GetAccessor=32768]="GetAccessor",e[e.SetAccessor=65536]="SetAccessor",e[e.Signature=131072]="Signature",e[e.TypeParameter=262144]="TypeParameter",e[e.TypeAlias=524288]="TypeAlias",e[e.ExportValue=1048576]="ExportValue",e[e.Alias=2097152]="Alias",e[e.Prototype=4194304]="Prototype",e[e.ExportStar=8388608]="ExportStar",e[e.Optional=16777216]="Optional",e[e.Transient=33554432]="Transient",e[e.Assignment=67108864]="Assignment",e[e.ModuleExports=134217728]="ModuleExports",e[e.All=-1]="All",e[e.Enum=384]="Enum",e[e.Variable=3]="Variable",e[e.Value=111551]="Value",e[e.Type=788968]="Type",e[e.Namespace=1920]="Namespace",e[e.Module=1536]="Module",e[e.Accessor=98304]="Accessor",e[e.FunctionScopedVariableExcludes=111550]="FunctionScopedVariableExcludes",e[e.BlockScopedVariableExcludes=111551]="BlockScopedVariableExcludes",e[e.ParameterExcludes=111551]="ParameterExcludes",e[e.PropertyExcludes=0]="PropertyExcludes",e[e.EnumMemberExcludes=900095]="EnumMemberExcludes",e[e.FunctionExcludes=110991]="FunctionExcludes",e[e.ClassExcludes=899503]="ClassExcludes",e[e.InterfaceExcludes=788872]="InterfaceExcludes",e[e.RegularEnumExcludes=899327]="RegularEnumExcludes",e[e.ConstEnumExcludes=899967]="ConstEnumExcludes",e[e.ValueModuleExcludes=110735]="ValueModuleExcludes",e[e.NamespaceModuleExcludes=0]="NamespaceModuleExcludes",e[e.MethodExcludes=103359]="MethodExcludes",e[e.GetAccessorExcludes=46015]="GetAccessorExcludes",e[e.SetAccessorExcludes=78783]="SetAccessorExcludes",e[e.AccessorExcludes=13247]="AccessorExcludes",e[e.TypeParameterExcludes=526824]="TypeParameterExcludes",e[e.TypeAliasExcludes=788968]="TypeAliasExcludes",e[e.AliasExcludes=2097152]="AliasExcludes",e[e.ModuleMember=2623475]="ModuleMember",e[e.ExportHasLocal=944]="ExportHasLocal",e[e.BlockScoped=418]="BlockScoped",e[e.PropertyOrAccessor=98308]="PropertyOrAccessor",e[e.ClassMember=106500]="ClassMember",e[e.ExportSupportsDefaultModifier=112]="ExportSupportsDefaultModifier",e[e.ExportDoesNotSupportDefaultModifier=-113]="ExportDoesNotSupportDefaultModifier",e[e.Classifiable=2885600]="Classifiable",e[e.LateBindingContainer=6256]="LateBindingContainer",e))(qr||{}),Ur=(e=>(e[e.None=0]="None",e[e.Instantiated=1]="Instantiated",e[e.SyntheticProperty=2]="SyntheticProperty",e[e.SyntheticMethod=4]="SyntheticMethod",e[e.Readonly=8]="Readonly",e[e.ReadPartial=16]="ReadPartial",e[e.WritePartial=32]="WritePartial",e[e.HasNonUniformType=64]="HasNonUniformType",e[e.HasLiteralType=128]="HasLiteralType",e[e.ContainsPublic=256]="ContainsPublic",e[e.ContainsProtected=512]="ContainsProtected",e[e.ContainsPrivate=1024]="ContainsPrivate",e[e.ContainsStatic=2048]="ContainsStatic",e[e.Late=4096]="Late",e[e.ReverseMapped=8192]="ReverseMapped",e[e.OptionalParameter=16384]="OptionalParameter",e[e.RestParameter=32768]="RestParameter",e[e.DeferredType=65536]="DeferredType",e[e.HasNeverType=131072]="HasNeverType",e[e.Mapped=262144]="Mapped",e[e.StripOptional=524288]="StripOptional",e[e.Unresolved=1048576]="Unresolved",e[e.Synthetic=6]="Synthetic",e[e.Discriminant=192]="Discriminant",e[e.Partial=48]="Partial",e))(Ur||{}),Vr=(e=>(e.Call="__call",e.Constructor="__constructor",e.New="__new",e.Index="__index",e.ExportStar="__export",e.Global="__global",e.Missing="__missing",e.Type="__type",e.Object="__object",e.JSXAttributes="__jsxAttributes",e.Class="__class",e.Function="__function",e.Computed="__computed",e.Resolving="__resolving__",e.ExportEquals="export=",e.Default="default",e.This="this",e.InstantiationExpression="__instantiationExpression",e.ImportAttributes="__importAttributes",e))(Vr||{}),Wr=(e=>(e[e.None=0]="None",e[e.TypeChecked=1]="TypeChecked",e[e.LexicalThis=2]="LexicalThis",e[e.CaptureThis=4]="CaptureThis",e[e.CaptureNewTarget=8]="CaptureNewTarget",e[e.SuperInstance=16]="SuperInstance",e[e.SuperStatic=32]="SuperStatic",e[e.ContextChecked=64]="ContextChecked",e[e.MethodWithSuperPropertyAccessInAsync=128]="MethodWithSuperPropertyAccessInAsync",e[e.MethodWithSuperPropertyAssignmentInAsync=256]="MethodWithSuperPropertyAssignmentInAsync",e[e.CaptureArguments=512]="CaptureArguments",e[e.EnumValuesComputed=1024]="EnumValuesComputed",e[e.LexicalModuleMergesWithClass=2048]="LexicalModuleMergesWithClass",e[e.LoopWithCapturedBlockScopedBinding=4096]="LoopWithCapturedBlockScopedBinding",e[e.ContainsCapturedBlockScopeBinding=8192]="ContainsCapturedBlockScopeBinding",e[e.CapturedBlockScopedBinding=16384]="CapturedBlockScopedBinding",e[e.BlockScopedBindingInLoop=32768]="BlockScopedBindingInLoop",e[e.NeedsLoopOutParameter=65536]="NeedsLoopOutParameter",e[e.AssignmentsMarked=131072]="AssignmentsMarked",e[e.ContainsConstructorReference=262144]="ContainsConstructorReference",e[e.ConstructorReference=536870912]="ConstructorReference",e[e.ContainsClassWithPrivateIdentifiers=1048576]="ContainsClassWithPrivateIdentifiers",e[e.ContainsSuperPropertyInStaticInitializer=2097152]="ContainsSuperPropertyInStaticInitializer",e[e.InCheckIdentifier=4194304]="InCheckIdentifier",e[e.PartiallyTypeChecked=8388608]="PartiallyTypeChecked",e[e.LazyFlags=539358128]="LazyFlags",e))(Wr||{}),$r=(e=>(e[e.Any=1]="Any",e[e.Unknown=2]="Unknown",e[e.String=4]="String",e[e.Number=8]="Number",e[e.Boolean=16]="Boolean",e[e.Enum=32]="Enum",e[e.BigInt=64]="BigInt",e[e.StringLiteral=128]="StringLiteral",e[e.NumberLiteral=256]="NumberLiteral",e[e.BooleanLiteral=512]="BooleanLiteral",e[e.EnumLiteral=1024]="EnumLiteral",e[e.BigIntLiteral=2048]="BigIntLiteral",e[e.ESSymbol=4096]="ESSymbol",e[e.UniqueESSymbol=8192]="UniqueESSymbol",e[e.Void=16384]="Void",e[e.Undefined=32768]="Undefined",e[e.Null=65536]="Null",e[e.Never=131072]="Never",e[e.TypeParameter=262144]="TypeParameter",e[e.Object=524288]="Object",e[e.Union=1048576]="Union",e[e.Intersection=2097152]="Intersection",e[e.Index=4194304]="Index",e[e.IndexedAccess=8388608]="IndexedAccess",e[e.Conditional=16777216]="Conditional",e[e.Substitution=33554432]="Substitution",e[e.NonPrimitive=67108864]="NonPrimitive",e[e.TemplateLiteral=134217728]="TemplateLiteral",e[e.StringMapping=268435456]="StringMapping",e[e.Reserved1=536870912]="Reserved1",e[e.Reserved2=1073741824]="Reserved2",e[e.AnyOrUnknown=3]="AnyOrUnknown",e[e.Nullable=98304]="Nullable",e[e.Literal=2944]="Literal",e[e.Unit=109472]="Unit",e[e.Freshable=2976]="Freshable",e[e.StringOrNumberLiteral=384]="StringOrNumberLiteral",e[e.StringOrNumberLiteralOrUnique=8576]="StringOrNumberLiteralOrUnique",e[e.DefinitelyFalsy=117632]="DefinitelyFalsy",e[e.PossiblyFalsy=117724]="PossiblyFalsy",e[e.Intrinsic=67359327]="Intrinsic",e[e.StringLike=402653316]="StringLike",e[e.NumberLike=296]="NumberLike",e[e.BigIntLike=2112]="BigIntLike",e[e.BooleanLike=528]="BooleanLike",e[e.EnumLike=1056]="EnumLike",e[e.ESSymbolLike=12288]="ESSymbolLike",e[e.VoidLike=49152]="VoidLike",e[e.Primitive=402784252]="Primitive",e[e.DefinitelyNonNullable=470302716]="DefinitelyNonNullable",e[e.DisjointDomains=469892092]="DisjointDomains",e[e.UnionOrIntersection=3145728]="UnionOrIntersection",e[e.StructuredType=3670016]="StructuredType",e[e.TypeVariable=8650752]="TypeVariable",e[e.InstantiableNonPrimitive=58982400]="InstantiableNonPrimitive",e[e.InstantiablePrimitive=406847488]="InstantiablePrimitive",e[e.Instantiable=465829888]="Instantiable",e[e.StructuredOrInstantiable=469499904]="StructuredOrInstantiable",e[e.ObjectFlagsType=3899393]="ObjectFlagsType",e[e.Simplifiable=25165824]="Simplifiable",e[e.Singleton=67358815]="Singleton",e[e.Narrowable=536624127]="Narrowable",e[e.IncludesMask=473694207]="IncludesMask",e[e.IncludesMissingType=262144]="IncludesMissingType",e[e.IncludesNonWideningType=4194304]="IncludesNonWideningType",e[e.IncludesWildcard=8388608]="IncludesWildcard",e[e.IncludesEmptyObject=16777216]="IncludesEmptyObject",e[e.IncludesInstantiable=33554432]="IncludesInstantiable",e[e.IncludesConstrainedTypeVariable=536870912]="IncludesConstrainedTypeVariable",e[e.IncludesError=1073741824]="IncludesError",e[e.NotPrimitiveUnion=36323331]="NotPrimitiveUnion",e))($r||{}),Hr=(e=>(e[e.None=0]="None",e[e.Class=1]="Class",e[e.Interface=2]="Interface",e[e.Reference=4]="Reference",e[e.Tuple=8]="Tuple",e[e.Anonymous=16]="Anonymous",e[e.Mapped=32]="Mapped",e[e.Instantiated=64]="Instantiated",e[e.ObjectLiteral=128]="ObjectLiteral",e[e.EvolvingArray=256]="EvolvingArray",e[e.ObjectLiteralPatternWithComputedProperties=512]="ObjectLiteralPatternWithComputedProperties",e[e.ReverseMapped=1024]="ReverseMapped",e[e.JsxAttributes=2048]="JsxAttributes",e[e.JSLiteral=4096]="JSLiteral",e[e.FreshLiteral=8192]="FreshLiteral",e[e.ArrayLiteral=16384]="ArrayLiteral",e[e.PrimitiveUnion=32768]="PrimitiveUnion",e[e.ContainsWideningType=65536]="ContainsWideningType",e[e.ContainsObjectOrArrayLiteral=131072]="ContainsObjectOrArrayLiteral",e[e.NonInferrableType=262144]="NonInferrableType",e[e.CouldContainTypeVariablesComputed=524288]="CouldContainTypeVariablesComputed",e[e.CouldContainTypeVariables=1048576]="CouldContainTypeVariables",e[e.SingleSignatureType=134217728]="SingleSignatureType",e[e.ClassOrInterface=3]="ClassOrInterface",e[e.RequiresWidening=196608]="RequiresWidening",e[e.PropagatingFlags=458752]="PropagatingFlags",e[e.InstantiatedMapped=96]="InstantiatedMapped",e[e.ObjectTypeKindMask=1343]="ObjectTypeKindMask",e[e.ContainsSpread=2097152]="ContainsSpread",e[e.ObjectRestType=4194304]="ObjectRestType",e[e.InstantiationExpressionType=8388608]="InstantiationExpressionType",e[e.IsClassInstanceClone=16777216]="IsClassInstanceClone",e[e.IdenticalBaseTypeCalculated=33554432]="IdenticalBaseTypeCalculated",e[e.IdenticalBaseTypeExists=67108864]="IdenticalBaseTypeExists",e[e.IsGenericTypeComputed=2097152]="IsGenericTypeComputed",e[e.IsGenericObjectType=4194304]="IsGenericObjectType",e[e.IsGenericIndexType=8388608]="IsGenericIndexType",e[e.IsGenericType=12582912]="IsGenericType",e[e.ContainsIntersections=16777216]="ContainsIntersections",e[e.IsUnknownLikeUnionComputed=33554432]="IsUnknownLikeUnionComputed",e[e.IsUnknownLikeUnion=67108864]="IsUnknownLikeUnion",e[e.IsNeverIntersectionComputed=16777216]="IsNeverIntersectionComputed",e[e.IsNeverIntersection=33554432]="IsNeverIntersection",e[e.IsConstrainedTypeVariable=67108864]="IsConstrainedTypeVariable",e))(Hr||{}),Kr=(e=>(e[e.Invariant=0]="Invariant",e[e.Covariant=1]="Covariant",e[e.Contravariant=2]="Contravariant",e[e.Bivariant=3]="Bivariant",e[e.Independent=4]="Independent",e[e.VarianceMask=7]="VarianceMask",e[e.Unmeasurable=8]="Unmeasurable",e[e.Unreliable=16]="Unreliable",e[e.AllowsStructuralFallback=24]="AllowsStructuralFallback",e))(Kr||{}),Gr=(e=>(e[e.Required=1]="Required",e[e.Optional=2]="Optional",e[e.Rest=4]="Rest",e[e.Variadic=8]="Variadic",e[e.Fixed=3]="Fixed",e[e.Variable=12]="Variable",e[e.NonRequired=14]="NonRequired",e[e.NonRest=11]="NonRest",e))(Gr||{}),Xr=(e=>(e[e.None=0]="None",e[e.IncludeUndefined=1]="IncludeUndefined",e[e.NoIndexSignatures=2]="NoIndexSignatures",e[e.Writing=4]="Writing",e[e.CacheSymbol=8]="CacheSymbol",e[e.AllowMissing=16]="AllowMissing",e[e.ExpressionPosition=32]="ExpressionPosition",e[e.ReportDeprecated=64]="ReportDeprecated",e[e.SuppressNoImplicitAnyError=128]="SuppressNoImplicitAnyError",e[e.Contextual=256]="Contextual",e[e.Persistent=1]="Persistent",e))(Xr||{}),Qr=(e=>(e[e.None=0]="None",e[e.StringsOnly=1]="StringsOnly",e[e.NoIndexSignatures=2]="NoIndexSignatures",e[e.NoReducibleCheck=4]="NoReducibleCheck",e))(Qr||{}),Yr=(e=>(e[e.Component=0]="Component",e[e.Function=1]="Function",e[e.Mixed=2]="Mixed",e))(Yr||{}),Zr=(e=>(e[e.Call=0]="Call",e[e.Construct=1]="Construct",e))(Zr||{}),ei=(e=>(e[e.None=0]="None",e[e.HasRestParameter=1]="HasRestParameter",e[e.HasLiteralTypes=2]="HasLiteralTypes",e[e.Abstract=4]="Abstract",e[e.IsInnerCallChain=8]="IsInnerCallChain",e[e.IsOuterCallChain=16]="IsOuterCallChain",e[e.IsUntypedSignatureInJSFile=32]="IsUntypedSignatureInJSFile",e[e.IsNonInferrable=64]="IsNonInferrable",e[e.IsSignatureCandidateForOverloadFailure=128]="IsSignatureCandidateForOverloadFailure",e[e.PropagatingFlags=167]="PropagatingFlags",e[e.CallChainFlags=24]="CallChainFlags",e))(ei||{}),ti=(e=>(e[e.String=0]="String",e[e.Number=1]="Number",e))(ti||{}),ni=(e=>(e[e.Simple=0]="Simple",e[e.Array=1]="Array",e[e.Deferred=2]="Deferred",e[e.Function=3]="Function",e[e.Composite=4]="Composite",e[e.Merged=5]="Merged",e))(ni||{}),ri=(e=>(e[e.None=0]="None",e[e.NakedTypeVariable=1]="NakedTypeVariable",e[e.SpeculativeTuple=2]="SpeculativeTuple",e[e.SubstituteSource=4]="SubstituteSource",e[e.HomomorphicMappedType=8]="HomomorphicMappedType",e[e.PartialHomomorphicMappedType=16]="PartialHomomorphicMappedType",e[e.MappedTypeConstraint=32]="MappedTypeConstraint",e[e.ContravariantConditional=64]="ContravariantConditional",e[e.ReturnType=128]="ReturnType",e[e.LiteralKeyof=256]="LiteralKeyof",e[e.NoConstraints=512]="NoConstraints",e[e.AlwaysStrict=1024]="AlwaysStrict",e[e.MaxValue=2048]="MaxValue",e[e.PriorityImpliesCombination=416]="PriorityImpliesCombination",e[e.Circularity=-1]="Circularity",e))(ri||{}),ii=(e=>(e[e.None=0]="None",e[e.NoDefault=1]="NoDefault",e[e.AnyDefault=2]="AnyDefault",e[e.SkippedGenericFunction=4]="SkippedGenericFunction",e))(ii||{}),oi=(e=>(e[e.False=0]="False",e[e.Unknown=1]="Unknown",e[e.Maybe=3]="Maybe",e[e.True=-1]="True",e))(oi||{}),ai=(e=>(e[e.None=0]="None",e[e.ExportsProperty=1]="ExportsProperty",e[e.ModuleExports=2]="ModuleExports",e[e.PrototypeProperty=3]="PrototypeProperty",e[e.ThisProperty=4]="ThisProperty",e[e.Property=5]="Property",e[e.Prototype=6]="Prototype",e[e.ObjectDefinePropertyValue=7]="ObjectDefinePropertyValue",e[e.ObjectDefinePropertyExports=8]="ObjectDefinePropertyExports",e[e.ObjectDefinePrototypeProperty=9]="ObjectDefinePrototypeProperty",e))(ai||{}),si=(e=>(e[e.Warning=0]="Warning",e[e.Error=1]="Error",e[e.Suggestion=2]="Suggestion",e[e.Message=3]="Message",e))(si||{});function ci(e,t=!0){const n=si[e.category];return t?n.toLowerCase():n}var li=(e=>(e[e.Classic=1]="Classic",e[e.NodeJs=2]="NodeJs",e[e.Node10=2]="Node10",e[e.Node16=3]="Node16",e[e.NodeNext=99]="NodeNext",e[e.Bundler=100]="Bundler",e))(li||{}),_i=(e=>(e[e.Legacy=1]="Legacy",e[e.Auto=2]="Auto",e[e.Force=3]="Force",e))(_i||{}),ui=(e=>(e[e.FixedPollingInterval=0]="FixedPollingInterval",e[e.PriorityPollingInterval=1]="PriorityPollingInterval",e[e.DynamicPriorityPolling=2]="DynamicPriorityPolling",e[e.FixedChunkSizePolling=3]="FixedChunkSizePolling",e[e.UseFsEvents=4]="UseFsEvents",e[e.UseFsEventsOnParentDirectory=5]="UseFsEventsOnParentDirectory",e))(ui||{}),di=(e=>(e[e.UseFsEvents=0]="UseFsEvents",e[e.FixedPollingInterval=1]="FixedPollingInterval",e[e.DynamicPriorityPolling=2]="DynamicPriorityPolling",e[e.FixedChunkSizePolling=3]="FixedChunkSizePolling",e))(di||{}),pi=(e=>(e[e.FixedInterval=0]="FixedInterval",e[e.PriorityInterval=1]="PriorityInterval",e[e.DynamicPriority=2]="DynamicPriority",e[e.FixedChunkSize=3]="FixedChunkSize",e))(pi||{}),fi=(e=>(e[e.None=0]="None",e[e.CommonJS=1]="CommonJS",e[e.AMD=2]="AMD",e[e.UMD=3]="UMD",e[e.System=4]="System",e[e.ES2015=5]="ES2015",e[e.ES2020=6]="ES2020",e[e.ES2022=7]="ES2022",e[e.ESNext=99]="ESNext",e[e.Node16=100]="Node16",e[e.Node18=101]="Node18",e[e.Node20=102]="Node20",e[e.NodeNext=199]="NodeNext",e[e.Preserve=200]="Preserve",e))(fi||{}),mi=(e=>(e[e.None=0]="None",e[e.Preserve=1]="Preserve",e[e.React=2]="React",e[e.ReactNative=3]="ReactNative",e[e.ReactJSX=4]="ReactJSX",e[e.ReactJSXDev=5]="ReactJSXDev",e))(mi||{}),gi=(e=>(e[e.Remove=0]="Remove",e[e.Preserve=1]="Preserve",e[e.Error=2]="Error",e))(gi||{}),hi=(e=>(e[e.CarriageReturnLineFeed=0]="CarriageReturnLineFeed",e[e.LineFeed=1]="LineFeed",e))(hi||{}),yi=(e=>(e[e.Unknown=0]="Unknown",e[e.JS=1]="JS",e[e.JSX=2]="JSX",e[e.TS=3]="TS",e[e.TSX=4]="TSX",e[e.External=5]="External",e[e.JSON=6]="JSON",e[e.Deferred=7]="Deferred",e))(yi||{}),vi=(e=>(e[e.ES3=0]="ES3",e[e.ES5=1]="ES5",e[e.ES2015=2]="ES2015",e[e.ES2016=3]="ES2016",e[e.ES2017=4]="ES2017",e[e.ES2018=5]="ES2018",e[e.ES2019=6]="ES2019",e[e.ES2020=7]="ES2020",e[e.ES2021=8]="ES2021",e[e.ES2022=9]="ES2022",e[e.ES2023=10]="ES2023",e[e.ES2024=11]="ES2024",e[e.ESNext=99]="ESNext",e[e.JSON=100]="JSON",e[e.Latest=99]="Latest",e))(vi||{}),bi=(e=>(e[e.Standard=0]="Standard",e[e.JSX=1]="JSX",e))(bi||{}),xi=(e=>(e[e.None=0]="None",e[e.Recursive=1]="Recursive",e))(xi||{}),ki=(e=>(e[e.EOF=-1]="EOF",e[e.nullCharacter=0]="nullCharacter",e[e.maxAsciiCharacter=127]="maxAsciiCharacter",e[e.lineFeed=10]="lineFeed",e[e.carriageReturn=13]="carriageReturn",e[e.lineSeparator=8232]="lineSeparator",e[e.paragraphSeparator=8233]="paragraphSeparator",e[e.nextLine=133]="nextLine",e[e.space=32]="space",e[e.nonBreakingSpace=160]="nonBreakingSpace",e[e.enQuad=8192]="enQuad",e[e.emQuad=8193]="emQuad",e[e.enSpace=8194]="enSpace",e[e.emSpace=8195]="emSpace",e[e.threePerEmSpace=8196]="threePerEmSpace",e[e.fourPerEmSpace=8197]="fourPerEmSpace",e[e.sixPerEmSpace=8198]="sixPerEmSpace",e[e.figureSpace=8199]="figureSpace",e[e.punctuationSpace=8200]="punctuationSpace",e[e.thinSpace=8201]="thinSpace",e[e.hairSpace=8202]="hairSpace",e[e.zeroWidthSpace=8203]="zeroWidthSpace",e[e.narrowNoBreakSpace=8239]="narrowNoBreakSpace",e[e.ideographicSpace=12288]="ideographicSpace",e[e.mathematicalSpace=8287]="mathematicalSpace",e[e.ogham=5760]="ogham",e[e.replacementCharacter=65533]="replacementCharacter",e[e._=95]="_",e[e.$=36]="$",e[e._0=48]="_0",e[e._1=49]="_1",e[e._2=50]="_2",e[e._3=51]="_3",e[e._4=52]="_4",e[e._5=53]="_5",e[e._6=54]="_6",e[e._7=55]="_7",e[e._8=56]="_8",e[e._9=57]="_9",e[e.a=97]="a",e[e.b=98]="b",e[e.c=99]="c",e[e.d=100]="d",e[e.e=101]="e",e[e.f=102]="f",e[e.g=103]="g",e[e.h=104]="h",e[e.i=105]="i",e[e.j=106]="j",e[e.k=107]="k",e[e.l=108]="l",e[e.m=109]="m",e[e.n=110]="n",e[e.o=111]="o",e[e.p=112]="p",e[e.q=113]="q",e[e.r=114]="r",e[e.s=115]="s",e[e.t=116]="t",e[e.u=117]="u",e[e.v=118]="v",e[e.w=119]="w",e[e.x=120]="x",e[e.y=121]="y",e[e.z=122]="z",e[e.A=65]="A",e[e.B=66]="B",e[e.C=67]="C",e[e.D=68]="D",e[e.E=69]="E",e[e.F=70]="F",e[e.G=71]="G",e[e.H=72]="H",e[e.I=73]="I",e[e.J=74]="J",e[e.K=75]="K",e[e.L=76]="L",e[e.M=77]="M",e[e.N=78]="N",e[e.O=79]="O",e[e.P=80]="P",e[e.Q=81]="Q",e[e.R=82]="R",e[e.S=83]="S",e[e.T=84]="T",e[e.U=85]="U",e[e.V=86]="V",e[e.W=87]="W",e[e.X=88]="X",e[e.Y=89]="Y",e[e.Z=90]="Z",e[e.ampersand=38]="ampersand",e[e.asterisk=42]="asterisk",e[e.at=64]="at",e[e.backslash=92]="backslash",e[e.backtick=96]="backtick",e[e.bar=124]="bar",e[e.caret=94]="caret",e[e.closeBrace=125]="closeBrace",e[e.closeBracket=93]="closeBracket",e[e.closeParen=41]="closeParen",e[e.colon=58]="colon",e[e.comma=44]="comma",e[e.dot=46]="dot",e[e.doubleQuote=34]="doubleQuote",e[e.equals=61]="equals",e[e.exclamation=33]="exclamation",e[e.greaterThan=62]="greaterThan",e[e.hash=35]="hash",e[e.lessThan=60]="lessThan",e[e.minus=45]="minus",e[e.openBrace=123]="openBrace",e[e.openBracket=91]="openBracket",e[e.openParen=40]="openParen",e[e.percent=37]="percent",e[e.plus=43]="plus",e[e.question=63]="question",e[e.semicolon=59]="semicolon",e[e.singleQuote=39]="singleQuote",e[e.slash=47]="slash",e[e.tilde=126]="tilde",e[e.backspace=8]="backspace",e[e.formFeed=12]="formFeed",e[e.byteOrderMark=65279]="byteOrderMark",e[e.tab=9]="tab",e[e.verticalTab=11]="verticalTab",e))(ki||{}),Si=(e=>(e.Ts=".ts",e.Tsx=".tsx",e.Dts=".d.ts",e.Js=".js",e.Jsx=".jsx",e.Json=".json",e.TsBuildInfo=".tsbuildinfo",e.Mjs=".mjs",e.Mts=".mts",e.Dmts=".d.mts",e.Cjs=".cjs",e.Cts=".cts",e.Dcts=".d.cts",e))(Si||{}),Ti=(e=>(e[e.None=0]="None",e[e.ContainsTypeScript=1]="ContainsTypeScript",e[e.ContainsJsx=2]="ContainsJsx",e[e.ContainsESNext=4]="ContainsESNext",e[e.ContainsES2022=8]="ContainsES2022",e[e.ContainsES2021=16]="ContainsES2021",e[e.ContainsES2020=32]="ContainsES2020",e[e.ContainsES2019=64]="ContainsES2019",e[e.ContainsES2018=128]="ContainsES2018",e[e.ContainsES2017=256]="ContainsES2017",e[e.ContainsES2016=512]="ContainsES2016",e[e.ContainsES2015=1024]="ContainsES2015",e[e.ContainsGenerator=2048]="ContainsGenerator",e[e.ContainsDestructuringAssignment=4096]="ContainsDestructuringAssignment",e[e.ContainsTypeScriptClassSyntax=8192]="ContainsTypeScriptClassSyntax",e[e.ContainsLexicalThis=16384]="ContainsLexicalThis",e[e.ContainsRestOrSpread=32768]="ContainsRestOrSpread",e[e.ContainsObjectRestOrSpread=65536]="ContainsObjectRestOrSpread",e[e.ContainsComputedPropertyName=131072]="ContainsComputedPropertyName",e[e.ContainsBlockScopedBinding=262144]="ContainsBlockScopedBinding",e[e.ContainsBindingPattern=524288]="ContainsBindingPattern",e[e.ContainsYield=1048576]="ContainsYield",e[e.ContainsAwait=2097152]="ContainsAwait",e[e.ContainsHoistedDeclarationOrCompletion=4194304]="ContainsHoistedDeclarationOrCompletion",e[e.ContainsDynamicImport=8388608]="ContainsDynamicImport",e[e.ContainsClassFields=16777216]="ContainsClassFields",e[e.ContainsDecorators=33554432]="ContainsDecorators",e[e.ContainsPossibleTopLevelAwait=67108864]="ContainsPossibleTopLevelAwait",e[e.ContainsLexicalSuper=134217728]="ContainsLexicalSuper",e[e.ContainsUpdateExpressionForIdentifier=268435456]="ContainsUpdateExpressionForIdentifier",e[e.ContainsPrivateIdentifierInExpression=536870912]="ContainsPrivateIdentifierInExpression",e[e.HasComputedFlags=-2147483648]="HasComputedFlags",e[e.AssertTypeScript=1]="AssertTypeScript",e[e.AssertJsx=2]="AssertJsx",e[e.AssertESNext=4]="AssertESNext",e[e.AssertES2022=8]="AssertES2022",e[e.AssertES2021=16]="AssertES2021",e[e.AssertES2020=32]="AssertES2020",e[e.AssertES2019=64]="AssertES2019",e[e.AssertES2018=128]="AssertES2018",e[e.AssertES2017=256]="AssertES2017",e[e.AssertES2016=512]="AssertES2016",e[e.AssertES2015=1024]="AssertES2015",e[e.AssertGenerator=2048]="AssertGenerator",e[e.AssertDestructuringAssignment=4096]="AssertDestructuringAssignment",e[e.OuterExpressionExcludes=-2147483648]="OuterExpressionExcludes",e[e.PropertyAccessExcludes=-2147483648]="PropertyAccessExcludes",e[e.NodeExcludes=-2147483648]="NodeExcludes",e[e.ArrowFunctionExcludes=-2072174592]="ArrowFunctionExcludes",e[e.FunctionExcludes=-1937940480]="FunctionExcludes",e[e.ConstructorExcludes=-1937948672]="ConstructorExcludes",e[e.MethodOrAccessorExcludes=-2005057536]="MethodOrAccessorExcludes",e[e.PropertyExcludes=-2013249536]="PropertyExcludes",e[e.ClassExcludes=-2147344384]="ClassExcludes",e[e.ModuleExcludes=-1941676032]="ModuleExcludes",e[e.TypeExcludes=-2]="TypeExcludes",e[e.ObjectLiteralExcludes=-2147278848]="ObjectLiteralExcludes",e[e.ArrayLiteralOrCallOrNewExcludes=-2147450880]="ArrayLiteralOrCallOrNewExcludes",e[e.VariableDeclarationListExcludes=-2146893824]="VariableDeclarationListExcludes",e[e.ParameterExcludes=-2147483648]="ParameterExcludes",e[e.CatchClauseExcludes=-2147418112]="CatchClauseExcludes",e[e.BindingPatternExcludes=-2147450880]="BindingPatternExcludes",e[e.ContainsLexicalThisOrSuper=134234112]="ContainsLexicalThisOrSuper",e[e.PropertyNamePropagatingFlags=134234112]="PropertyNamePropagatingFlags",e))(Ti||{}),Ci=(e=>(e[e.TabStop=0]="TabStop",e[e.Placeholder=1]="Placeholder",e[e.Choice=2]="Choice",e[e.Variable=3]="Variable",e))(Ci||{}),wi=(e=>(e[e.None=0]="None",e[e.SingleLine=1]="SingleLine",e[e.MultiLine=2]="MultiLine",e[e.AdviseOnEmitNode=4]="AdviseOnEmitNode",e[e.NoSubstitution=8]="NoSubstitution",e[e.CapturesThis=16]="CapturesThis",e[e.NoLeadingSourceMap=32]="NoLeadingSourceMap",e[e.NoTrailingSourceMap=64]="NoTrailingSourceMap",e[e.NoSourceMap=96]="NoSourceMap",e[e.NoNestedSourceMaps=128]="NoNestedSourceMaps",e[e.NoTokenLeadingSourceMaps=256]="NoTokenLeadingSourceMaps",e[e.NoTokenTrailingSourceMaps=512]="NoTokenTrailingSourceMaps",e[e.NoTokenSourceMaps=768]="NoTokenSourceMaps",e[e.NoLeadingComments=1024]="NoLeadingComments",e[e.NoTrailingComments=2048]="NoTrailingComments",e[e.NoComments=3072]="NoComments",e[e.NoNestedComments=4096]="NoNestedComments",e[e.HelperName=8192]="HelperName",e[e.ExportName=16384]="ExportName",e[e.LocalName=32768]="LocalName",e[e.InternalName=65536]="InternalName",e[e.Indented=131072]="Indented",e[e.NoIndentation=262144]="NoIndentation",e[e.AsyncFunctionBody=524288]="AsyncFunctionBody",e[e.ReuseTempVariableScope=1048576]="ReuseTempVariableScope",e[e.CustomPrologue=2097152]="CustomPrologue",e[e.NoHoisting=4194304]="NoHoisting",e[e.Iterator=8388608]="Iterator",e[e.NoAsciiEscaping=16777216]="NoAsciiEscaping",e))(wi||{}),Ni=(e=>(e[e.None=0]="None",e[e.TypeScriptClassWrapper=1]="TypeScriptClassWrapper",e[e.NeverApplyImportHelper=2]="NeverApplyImportHelper",e[e.IgnoreSourceNewlines=4]="IgnoreSourceNewlines",e[e.Immutable=8]="Immutable",e[e.IndirectCall=16]="IndirectCall",e[e.TransformPrivateStaticElements=32]="TransformPrivateStaticElements",e))(Ni||{}),Di={Classes:2,ForOf:2,Generators:2,Iteration:2,SpreadElements:2,RestElements:2,TaggedTemplates:2,DestructuringAssignment:2,BindingPatterns:2,ArrowFunctions:2,BlockScopedVariables:2,ObjectAssign:2,RegularExpressionFlagsUnicode:2,RegularExpressionFlagsSticky:2,Exponentiation:3,AsyncFunctions:4,ForAwaitOf:5,AsyncGenerators:5,AsyncIteration:5,ObjectSpreadRest:5,RegularExpressionFlagsDotAll:5,BindinglessCatch:6,BigInt:7,NullishCoalesce:7,OptionalChaining:7,LogicalAssignment:8,TopLevelAwait:9,ClassFields:9,PrivateNamesAndClassStaticBlocks:9,RegularExpressionFlagsHasIndices:9,ShebangComments:10,RegularExpressionFlagsUnicodeSets:11,UsingAndAwaitUsing:99,ClassAndClassElementDecorators:99},Fi=(e=>(e[e.Extends=1]="Extends",e[e.Assign=2]="Assign",e[e.Rest=4]="Rest",e[e.Decorate=8]="Decorate",e[e.ESDecorateAndRunInitializers=8]="ESDecorateAndRunInitializers",e[e.Metadata=16]="Metadata",e[e.Param=32]="Param",e[e.Awaiter=64]="Awaiter",e[e.Generator=128]="Generator",e[e.Values=256]="Values",e[e.Read=512]="Read",e[e.SpreadArray=1024]="SpreadArray",e[e.Await=2048]="Await",e[e.AsyncGenerator=4096]="AsyncGenerator",e[e.AsyncDelegator=8192]="AsyncDelegator",e[e.AsyncValues=16384]="AsyncValues",e[e.ExportStar=32768]="ExportStar",e[e.ImportStar=65536]="ImportStar",e[e.ImportDefault=131072]="ImportDefault",e[e.MakeTemplateObject=262144]="MakeTemplateObject",e[e.ClassPrivateFieldGet=524288]="ClassPrivateFieldGet",e[e.ClassPrivateFieldSet=1048576]="ClassPrivateFieldSet",e[e.ClassPrivateFieldIn=2097152]="ClassPrivateFieldIn",e[e.SetFunctionName=4194304]="SetFunctionName",e[e.PropKey=8388608]="PropKey",e[e.AddDisposableResourceAndDisposeResources=16777216]="AddDisposableResourceAndDisposeResources",e[e.RewriteRelativeImportExtension=33554432]="RewriteRelativeImportExtension",e[e.FirstEmitHelper=1]="FirstEmitHelper",e[e.LastEmitHelper=16777216]="LastEmitHelper",e[e.ForOfIncludes=256]="ForOfIncludes",e[e.ForAwaitOfIncludes=16384]="ForAwaitOfIncludes",e[e.AsyncGeneratorIncludes=6144]="AsyncGeneratorIncludes",e[e.AsyncDelegatorIncludes=26624]="AsyncDelegatorIncludes",e[e.SpreadIncludes=1536]="SpreadIncludes",e))(Fi||{}),Ei=(e=>(e[e.SourceFile=0]="SourceFile",e[e.Expression=1]="Expression",e[e.IdentifierName=2]="IdentifierName",e[e.MappedTypeParameter=3]="MappedTypeParameter",e[e.Unspecified=4]="Unspecified",e[e.EmbeddedStatement=5]="EmbeddedStatement",e[e.JsxAttributeValue=6]="JsxAttributeValue",e[e.ImportTypeNodeAttributes=7]="ImportTypeNodeAttributes",e))(Ei||{}),Pi=(e=>(e[e.Parentheses=1]="Parentheses",e[e.TypeAssertions=2]="TypeAssertions",e[e.NonNullAssertions=4]="NonNullAssertions",e[e.PartiallyEmittedExpressions=8]="PartiallyEmittedExpressions",e[e.ExpressionsWithTypeArguments=16]="ExpressionsWithTypeArguments",e[e.Satisfies=32]="Satisfies",e[e.Assertions=38]="Assertions",e[e.All=63]="All",e[e.ExcludeJSDocTypeAssertion=-2147483648]="ExcludeJSDocTypeAssertion",e))(Pi||{}),Ai=(e=>(e[e.None=0]="None",e[e.InParameters=1]="InParameters",e[e.VariablesHoistedInParameters=2]="VariablesHoistedInParameters",e))(Ai||{}),Ii=(e=>(e[e.None=0]="None",e[e.SingleLine=0]="SingleLine",e[e.MultiLine=1]="MultiLine",e[e.PreserveLines=2]="PreserveLines",e[e.LinesMask=3]="LinesMask",e[e.NotDelimited=0]="NotDelimited",e[e.BarDelimited=4]="BarDelimited",e[e.AmpersandDelimited=8]="AmpersandDelimited",e[e.CommaDelimited=16]="CommaDelimited",e[e.AsteriskDelimited=32]="AsteriskDelimited",e[e.DelimitersMask=60]="DelimitersMask",e[e.AllowTrailingComma=64]="AllowTrailingComma",e[e.Indented=128]="Indented",e[e.SpaceBetweenBraces=256]="SpaceBetweenBraces",e[e.SpaceBetweenSiblings=512]="SpaceBetweenSiblings",e[e.Braces=1024]="Braces",e[e.Parenthesis=2048]="Parenthesis",e[e.AngleBrackets=4096]="AngleBrackets",e[e.SquareBrackets=8192]="SquareBrackets",e[e.BracketsMask=15360]="BracketsMask",e[e.OptionalIfUndefined=16384]="OptionalIfUndefined",e[e.OptionalIfEmpty=32768]="OptionalIfEmpty",e[e.Optional=49152]="Optional",e[e.PreferNewLine=65536]="PreferNewLine",e[e.NoTrailingNewLine=131072]="NoTrailingNewLine",e[e.NoInterveningComments=262144]="NoInterveningComments",e[e.NoSpaceIfEmpty=524288]="NoSpaceIfEmpty",e[e.SingleElement=1048576]="SingleElement",e[e.SpaceAfterList=2097152]="SpaceAfterList",e[e.Modifiers=2359808]="Modifiers",e[e.HeritageClauses=512]="HeritageClauses",e[e.SingleLineTypeLiteralMembers=768]="SingleLineTypeLiteralMembers",e[e.MultiLineTypeLiteralMembers=32897]="MultiLineTypeLiteralMembers",e[e.SingleLineTupleTypeElements=528]="SingleLineTupleTypeElements",e[e.MultiLineTupleTypeElements=657]="MultiLineTupleTypeElements",e[e.UnionTypeConstituents=516]="UnionTypeConstituents",e[e.IntersectionTypeConstituents=520]="IntersectionTypeConstituents",e[e.ObjectBindingPatternElements=525136]="ObjectBindingPatternElements",e[e.ArrayBindingPatternElements=524880]="ArrayBindingPatternElements",e[e.ObjectLiteralExpressionProperties=526226]="ObjectLiteralExpressionProperties",e[e.ImportAttributes=526226]="ImportAttributes",e[e.ImportClauseEntries=526226]="ImportClauseEntries",e[e.ArrayLiteralExpressionElements=8914]="ArrayLiteralExpressionElements",e[e.CommaListElements=528]="CommaListElements",e[e.CallExpressionArguments=2576]="CallExpressionArguments",e[e.NewExpressionArguments=18960]="NewExpressionArguments",e[e.TemplateExpressionSpans=262144]="TemplateExpressionSpans",e[e.SingleLineBlockStatements=768]="SingleLineBlockStatements",e[e.MultiLineBlockStatements=129]="MultiLineBlockStatements",e[e.VariableDeclarationList=528]="VariableDeclarationList",e[e.SingleLineFunctionBodyStatements=768]="SingleLineFunctionBodyStatements",e[e.MultiLineFunctionBodyStatements=1]="MultiLineFunctionBodyStatements",e[e.ClassHeritageClauses=0]="ClassHeritageClauses",e[e.ClassMembers=129]="ClassMembers",e[e.InterfaceMembers=129]="InterfaceMembers",e[e.EnumMembers=145]="EnumMembers",e[e.CaseBlockClauses=129]="CaseBlockClauses",e[e.NamedImportsOrExportsElements=525136]="NamedImportsOrExportsElements",e[e.JsxElementOrFragmentChildren=262144]="JsxElementOrFragmentChildren",e[e.JsxElementAttributes=262656]="JsxElementAttributes",e[e.CaseOrDefaultClauseStatements=163969]="CaseOrDefaultClauseStatements",e[e.HeritageClauseTypes=528]="HeritageClauseTypes",e[e.SourceFileStatements=131073]="SourceFileStatements",e[e.Decorators=2146305]="Decorators",e[e.TypeArguments=53776]="TypeArguments",e[e.TypeParameters=53776]="TypeParameters",e[e.Parameters=2576]="Parameters",e[e.IndexSignatureParameters=8848]="IndexSignatureParameters",e[e.JSDocComment=33]="JSDocComment",e))(Ii||{}),Oi=(e=>(e[e.None=0]="None",e[e.TripleSlashXML=1]="TripleSlashXML",e[e.SingleLine=2]="SingleLine",e[e.MultiLine=4]="MultiLine",e[e.All=7]="All",e[e.Default=7]="Default",e))(Oi||{}),Li={reference:{args:[{name:"types",optional:!0,captureSpan:!0},{name:"lib",optional:!0,captureSpan:!0},{name:"path",optional:!0,captureSpan:!0},{name:"no-default-lib",optional:!0},{name:"resolution-mode",optional:!0},{name:"preserve",optional:!0}],kind:1},"amd-dependency":{args:[{name:"path"},{name:"name",optional:!0}],kind:1},"amd-module":{args:[{name:"name"}],kind:1},"ts-check":{kind:2},"ts-nocheck":{kind:2},jsx:{args:[{name:"factory"}],kind:4},jsxfrag:{args:[{name:"factory"}],kind:4},jsximportsource:{args:[{name:"factory"}],kind:4},jsxruntime:{args:[{name:"factory"}],kind:4}},ji=(e=>(e[e.ParseAll=0]="ParseAll",e[e.ParseNone=1]="ParseNone",e[e.ParseForTypeErrors=2]="ParseForTypeErrors",e[e.ParseForTypeInfo=3]="ParseForTypeInfo",e))(ji||{});function Mi(e){let t=5381;for(let n=0;n(e[e.Created=0]="Created",e[e.Changed=1]="Changed",e[e.Deleted=2]="Deleted",e))(Bi||{}),Ji=(e=>(e[e.High=2e3]="High",e[e.Medium=500]="Medium",e[e.Low=250]="Low",e))(Ji||{}),zi=new Date(0);function qi(e,t){return e.getModifiedTime(t)||zi}function Ui(e){return{250:e.Low,500:e.Medium,2e3:e.High}}var Vi={Low:32,Medium:64,High:256},Wi=Ui(Vi),$i=Ui(Vi);function Hi(e,t,n,r,i){let o=n;for(let s=t.length;r&&s;a(),s--){const a=t[n];if(!a)continue;if(a.isClosed){t[n]=void 0;continue}r--;const s=Gi(a,qi(e,a.fileName));a.isClosed?t[n]=void 0:(null==i||i(a,n,s),t[n]&&(o{var i;return null==(i=e.get(o))?void 0:i.callbacks.slice().forEach(e=>e(t,n,r))}),callbacks:[r]}),{close:()=>{const t=e.get(o);t&&zt(t.callbacks,r)&&!t.callbacks.length&&(e.delete(o),RU(t))}}}function Gi(e,t){const n=e.mtime.getTime(),r=t.getTime();return n!==r&&(e.mtime=t,e.callback(e.fileName,Xi(n,r),t),!0)}function Xi(e,t){return 0===e?0:0===t?2:1}var Qi=["/node_modules/.","/.git","/.#"],Yi=rt;function Zi(e){return Yi(e)}function eo(e){Yi=e}function to({watchDirectory:e,useCaseSensitiveFileNames:t,getCurrentDirectory:n,getAccessibleSortedChildDirectories:r,fileSystemEntryExists:i,realpath:o,setTimeout:a,clearTimeout:s}){const c=new Map,_=$e(),u=new Map;let d;const p=wt(!t),f=Wt(t);return(t,n,r,i)=>r?m(t,i,n):e(t,n,r,i);function m(t,n,r,o){const p=f(t);let m=c.get(p);m?m.refCount++:(m={watcher:e(t,e=>{var r;x(e,n)||((null==n?void 0:n.synchronousWatchDirectory)?((null==(r=c.get(p))?void 0:r.targetWatcher)||g(t,p,e),b(t,p,n)):function(e,t,n,r){const o=c.get(t);o&&i(e,1)?function(e,t,n,r){const i=u.get(t);i?i.fileNames.push(n):u.set(t,{dirName:e,options:r,fileNames:[n]}),d&&(s(d),d=void 0),d=a(h,1e3,"timerToUpdateChildWatches")}(e,t,n,r):(g(e,t,n),v(o),y(o))}(t,p,e,n))},!1,n),refCount:1,childWatches:l,targetWatcher:void 0,links:void 0},c.set(p,m),b(t,p,n)),o&&(m.links??(m.links=new Set)).add(o);const k=r&&{dirName:t,callback:r};return k&&_.add(p,k),{dirName:t,close:()=>{var e;const t=un.checkDefined(c.get(p));k&&_.remove(p,k),o&&(null==(e=t.links)||e.delete(o)),t.refCount--,t.refCount||(c.delete(p),t.links=void 0,RU(t),v(t),t.childWatches.forEach(nx))}}}function g(e,t,n,r){var i,o;let a,s;Ze(n)?a=n:s=n,_.forEach((e,n)=>{if((!s||!0!==s.get(n))&&(n===t||Gt(t,n)&&t[n.length]===lo))if(s)if(r){const e=s.get(n);e?e.push(...r):s.set(n,r.slice())}else s.set(n,!0);else e.forEach(({callback:e})=>e(a))}),null==(o=null==(i=c.get(t))?void 0:i.links)||o.forEach(t=>{const n=n=>jo(t,ra(e,n,f));s?g(t,f(t),s,null==r?void 0:r.map(n)):g(t,f(t),n(a))})}function h(){var e;d=void 0,Zi(`sysLog:: onTimerToUpdateChildWatches:: ${u.size}`);const t=Un(),n=new Map;for(;!d&&u.size;){const t=u.entries().next();un.assert(!t.done);const{value:[r,{dirName:i,options:o,fileNames:a}]}=t;u.delete(r);const s=b(i,r,o);(null==(e=c.get(r))?void 0:e.targetWatcher)||g(i,r,n,s?void 0:a)}Zi(`sysLog:: invokingWatchers:: Elapsed:: ${Un()-t}ms:: ${u.size}`),_.forEach((e,t)=>{const r=n.get(t);r&&e.forEach(({callback:e,dirName:t})=>{Qe(r)?r.forEach(e):e(t)})}),Zi(`sysLog:: Elapsed:: ${Un()-t}ms:: onTimerToUpdateChildWatches:: ${u.size} ${d}`)}function y(e){if(!e)return;const t=e.childWatches;e.childWatches=l;for(const e of t)e.close(),y(c.get(f(e.dirName)))}function v(e){(null==e?void 0:e.targetWatcher)&&(e.targetWatcher.close(),e.targetWatcher=void 0)}function b(e,t,n){const a=c.get(t);if(!a)return!1;const s=Jo(o(e));let _,u;return 0===p(s,e)?_=on(i(e,1)?B(r(e),t=>{const r=Bo(t,e);return x(r,n)||0!==p(r,Jo(o(r)))?void 0:r}):l,a.childWatches,(e,t)=>p(e,t.dirName),function(e){d(m(e,n))},nx,d):a.targetWatcher&&0===p(s,a.targetWatcher.dirName)?(_=!1,un.assert(a.childWatches===l)):(v(a),a.targetWatcher=m(s,n,void 0,e),a.childWatches.forEach(nx),_=!0),a.childWatches=u||l,_;function d(e){(u||(u=[])).push(e)}}function x(e,r){return $(Qi,n=>function(e,n){return!!e.includes(n)||!t&&f(e).includes(n)}(e,n))||ro(e,r,t,n)}}var no=(e=>(e[e.File=0]="File",e[e.Directory=1]="Directory",e))(no||{});function ro(e,t,n,r){return((null==t?void 0:t.excludeDirectories)||(null==t?void 0:t.excludeFiles))&&(Bj(e,null==t?void 0:t.excludeFiles,n,r())||Bj(e,null==t?void 0:t.excludeDirectories,n,r()))}function io(e,t,n,r,i){return(o,a)=>{if("rename"===o){const o=a?Jo(jo(e,a)):e;a&&ro(o,n,r,i)||t(o)}}}function oo({pollingWatchFileWorker:e,getModifiedTime:t,setTimeout:n,clearTimeout:r,fsWatchWorker:i,fileSystemEntryExists:o,useCaseSensitiveFileNames:a,getCurrentDirectory:s,fsSupportsRecursiveFsWatch:c,getAccessibleSortedChildDirectories:l,realpath:_,tscWatchFile:u,useNonPollingWatchers:d,tscWatchDirectory:p,inodeWatching:f,fsWatchWithTimestamp:m,sysLog:g}){const h=new Map,y=new Map,v=new Map;let b,x,k,S,T=!1;return{watchFile:C,watchDirectory:function(e,t,i,u){return c?P(e,1,io(e,t,u,a,s),i,500,MU(u)):(S||(S=to({useCaseSensitiveFileNames:a,getCurrentDirectory:s,fileSystemEntryExists:o,getAccessibleSortedChildDirectories:l,watchDirectory:F,realpath:_,setTimeout:n,clearTimeout:r})),S(e,t,i,u))}};function C(e,n,r,i){i=function(e,t){if(e&&void 0!==e.watchFile)return e;switch(u){case"PriorityPollingInterval":return{watchFile:1};case"DynamicPriorityPolling":return{watchFile:2};case"UseFsEvents":return D(4,1,e);case"UseFsEventsWithFallbackDynamicPolling":return D(4,2,e);case"UseFsEventsOnParentDirectory":t=!0;default:return t?D(5,1,e):{watchFile:4}}}(i,d);const o=un.checkDefined(i.watchFile);switch(o){case 0:return E(e,n,250,void 0);case 1:return E(e,n,r,void 0);case 2:return w()(e,n,r,void 0);case 3:return N()(e,n,void 0,void 0);case 4:return P(e,0,function(e,t,n){return(r,i,o)=>{"rename"===r?(o||(o=n(e)||zi),t(e,o!==zi?0:2,o)):t(e,1,o)}}(e,n,t),!1,r,MU(i));case 5:return k||(k=function(e,t,n,r){const i=$e(),o=r?new Map:void 0,a=new Map,s=Wt(t);return function(t,r,c,l){const _=s(t);1===i.add(_,r).length&&o&&o.set(_,n(t)||zi);const u=Do(_)||".",d=a.get(u)||function(t,r,c){const l=e(t,1,(e,r)=>{if(!Ze(r))return;const a=Bo(r,t),c=s(a),l=a&&i.get(c);if(l){let t,r=1;if(o){const i=o.get(c);if("change"===e&&(t=n(a)||zi,t.getTime()===i.getTime()))return;t||(t=n(a)||zi),o.set(c,t),i===zi?r=0:t===zi&&(r=2)}for(const e of l)e(a,r,t)}},!1,500,c);return l.referenceCount=0,a.set(r,l),l}(Do(t)||".",u,l);return d.referenceCount++,{close:()=>{1===d.referenceCount?(d.close(),a.delete(u)):d.referenceCount--,i.remove(_,r)}}}}(P,a,t,m)),k(e,n,r,MU(i));default:un.assertNever(o)}}function w(){return b||(b=function(e){const t=[],n=[],r=a(250),i=a(500),o=a(2e3);return function(n,r,i){const o={fileName:n,callback:r,unchangedPolls:0,mtime:qi(e,n)};return t.push(o),u(o,i),{close:()=>{o.isClosed=!0,Vt(t,o)}}};function a(e){const t=[];return t.pollingInterval=e,t.pollIndex=0,t.pollScheduled=!1,t}function s(e,t){t.pollIndex=l(t,t.pollingInterval,t.pollIndex,Wi[t.pollingInterval]),t.length?p(t.pollingInterval):(un.assert(0===t.pollIndex),t.pollScheduled=!1)}function c(e,t){l(n,250,0,n.length),s(0,t),!t.pollScheduled&&n.length&&p(250)}function l(t,r,i,o){return Hi(e,t,i,o,function(e,i,o){var a;o?(e.unchangedPolls=0,t!==n&&(t[i]=void 0,a=e,n.push(a),d(250))):e.unchangedPolls!==$i[r]?e.unchangedPolls++:t===n?(e.unchangedPolls=1,t[i]=void 0,u(e,250)):2e3!==r&&(e.unchangedPolls++,t[i]=void 0,u(e,250===r?500:2e3))})}function _(e){switch(e){case 250:return r;case 500:return i;case 2e3:return o}}function u(e,t){_(t).push(e),d(t)}function d(e){_(e).pollScheduled||p(e)}function p(t){_(t).pollScheduled=e.setTimeout(250===t?c:s,t,250===t?"pollLowPollingIntervalQueue":"pollPollingIntervalQueue",_(t))}}({getModifiedTime:t,setTimeout:n}))}function N(){return x||(x=function(e){const t=[];let n,r=0;return function(n,r){const i={fileName:n,callback:r,mtime:qi(e,n)};return t.push(i),o(),{close:()=>{i.isClosed=!0,Vt(t,i)}}};function i(){n=void 0,r=Hi(e,t,r,Wi[250]),o()}function o(){t.length&&!n&&(n=e.setTimeout(i,2e3,"pollQueue"))}}({getModifiedTime:t,setTimeout:n}))}function D(e,t,n){const r=null==n?void 0:n.fallbackPolling;return{watchFile:e,fallbackPolling:void 0===r?t:r}}function F(e,t,n,r){un.assert(!n);const i=function(e){if(e&&void 0!==e.watchDirectory)return e;switch(p){case"RecursiveDirectoryUsingFsWatchFile":return{watchDirectory:1};case"RecursiveDirectoryUsingDynamicPriorityPolling":return{watchDirectory:2};default:const t=null==e?void 0:e.fallbackPolling;return{watchDirectory:0,fallbackPolling:void 0!==t?t:void 0}}}(r),o=un.checkDefined(i.watchDirectory);switch(o){case 1:return E(e,()=>t(e),500,void 0);case 2:return w()(e,()=>t(e),500,void 0);case 3:return N()(e,()=>t(e),void 0,void 0);case 0:return P(e,1,io(e,t,r,a,s),n,500,MU(i));default:un.assertNever(o)}}function E(t,n,r,i){return Ki(h,a,t,n,n=>e(t,n,r,i))}function P(e,n,r,s,c,l){return Ki(s?v:y,a,e,r,r=>function(e,n,r,a,s,c){let l,_;f&&(l=e.substring(e.lastIndexOf(lo)),_=l.slice(lo.length));let u=o(e,n)?p():v();return{close:()=>{u&&(u.close(),u=void 0)}};function d(t){u&&(g(`sysLog:: ${e}:: Changing watcher to ${t===p?"Present":"Missing"}FileSystemEntryWatcher`),u.close(),u=t())}function p(){if(T)return g(`sysLog:: ${e}:: Defaulting to watchFile`),y();try{const t=(1!==n&&m?A:i)(e,a,f?h:r);return t.on("error",()=>{r("rename",""),d(v)}),t}catch(t){return T||(T="ENOSPC"===t.code),g(`sysLog:: ${e}:: Changing to watchFile`),y()}}function h(n,i){let o;if(i&&Mt(i,"~")&&(o=i,i=i.slice(0,i.length-1)),"rename"!==n||i&&i!==_&&!Mt(i,l))o&&r(n,o),r(n,i);else{const a=t(e)||zi;o&&r(n,o,a),r(n,i,a),f?d(a===zi?v:p):a===zi&&d(v)}}function y(){return C(e,function(e){return(t,n,r)=>e(1===n?"change":"rename","",r)}(r),s,c)}function v(){return C(e,(n,i,o)=>{0===i&&(o||(o=t(e)||zi),o!==zi&&(r("rename","",o),d(p)))},s,c)}}(e,n,r,s,c,l))}function A(e,n,r){let o=t(e)||zi;return i(e,n,(n,i,a)=>{"change"===n&&(a||(a=t(e)||zi),a.getTime()===o.getTime())||(o=a||t(e)||zi,r(n,i,o))})}}function ao(e){const t=e.writeFile;e.writeFile=(n,r,i)=>tv(n,r,!!i,(n,r,i)=>t.call(e,n,r,i),t=>e.createDirectory(t),t=>e.directoryExists(t))}var so=(()=>{let e;return _n()&&(e=function(){const e=/^native |^\([^)]+\)$|^(?:internal[\\/]|[\w\s]+(?:\.js)?$)/,t=n(21),i=n(641),o=n(202);let a,s;try{a=n(615)}catch{a=void 0}let c="./profile.cpuprofile";const l="darwin"===process.platform,_="linux"===process.platform||l,u={throwIfNoEntry:!1},d=o.platform(),p="win32"!==d&&"win64"!==d&&!N((x=r,x.replace(/\w/g,e=>{const t=e.toUpperCase();return e===t?e.toLowerCase():t}))),f=t.realpathSync.native?"win32"===process.platform?function(e){return e.length<260?t.realpathSync.native(e):t.realpathSync(e)}:t.realpathSync.native:t.realpathSync,m=r.endsWith("sys.js")?i.join(i.dirname("/"),"__fake__.js"):r,g="win32"===process.platform||l,h=dt(()=>process.cwd()),{watchFile:y,watchDirectory:v}=oo({pollingWatchFileWorker:function(e,n,r){let i;return t.watchFile(e,{persistent:!0,interval:r},o),{close:()=>t.unwatchFile(e,o)};function o(t,r){const o=0===+r.mtime||2===i;if(0===+t.mtime){if(o)return;i=2}else if(o)i=0;else{if(+t.mtime===+r.mtime)return;i=1}n(e,i,t.mtime)}},getModifiedTime:F,setTimeout,clearTimeout,fsWatchWorker:function(e,n,r){return t.watch(e,g?{persistent:!0,recursive:!!n}:{persistent:!0},r)},useCaseSensitiveFileNames:p,getCurrentDirectory:h,fileSystemEntryExists:w,fsSupportsRecursiveFsWatch:g,getAccessibleSortedChildDirectories:e=>C(e).directories,realpath:D,tscWatchFile:process.env.TSC_WATCHFILE,useNonPollingWatchers:!!process.env.TSC_NONPOLLING_WATCHER,tscWatchDirectory:process.env.TSC_WATCHDIRECTORY,inodeWatching:_,fsWatchWithTimestamp:l,sysLog:Zi}),b={args:process.argv.slice(2),newLine:o.EOL,useCaseSensitiveFileNames:p,write(e){process.stdout.write(e)},getWidthOfTerminal:()=>process.stdout.columns,writeOutputIsTTY:()=>process.stdout.isTTY,readFile:function(e,n){let r;try{r=t.readFileSync(e)}catch{return}let i=r.length;if(i>=2&&254===r[0]&&255===r[1]){i&=-2;for(let e=0;e=2&&255===r[0]&&254===r[1]?r.toString("utf16le",2):i>=3&&239===r[0]&&187===r[1]&&191===r[2]?r.toString("utf8",3):r.toString("utf8")},writeFile:function(e,n,r){let i;r&&(n="\ufeff"+n);try{i=t.openSync(e,"w"),t.writeSync(i,n,void 0,"utf8")}finally{void 0!==i&&t.closeSync(i)}},watchFile:y,watchDirectory:v,preferNonRecursiveWatch:!g,resolvePath:e=>i.resolve(e),fileExists:N,directoryExists:function(e){return w(e,1)},getAccessibleFileSystemEntries:C,createDirectory(e){if(!b.directoryExists(e))try{t.mkdirSync(e)}catch(e){if("EEXIST"!==e.code)throw e}},getExecutingFilePath:()=>m,getCurrentDirectory:h,getDirectories:function(e){return C(e).directories.slice()},getEnvironmentVariable:e=>process.env[e]||"",readDirectory:function(e,t,n,r,i){return hS(e,t,n,r,p,process.cwd(),i,C,D)},getModifiedTime:F,setModifiedTime:function(e,n){try{t.utimesSync(e,n,n)}catch{return}},deleteFile:function(e){try{return t.unlinkSync(e)}catch{return}},createHash:a?E:Mi,createSHA256Hash:a?E:void 0,getMemoryUsage:()=>(n.g.gc&&n.g.gc(),process.memoryUsage().heapUsed),getFileSize(e){const t=k(e);return(null==t?void 0:t.isFile())?t.size:0},exit(e){S(()=>process.exit(e))},enableCPUProfiler:function(e,t){if(s)return t(),!1;const r=n(247);if(!r||!r.Session)return t(),!1;const i=new r.Session;return i.connect(),i.post("Profiler.enable",()=>{i.post("Profiler.start",()=>{s=i,c=e,t()})}),!0},disableCPUProfiler:S,cpuProfilingEnabled:()=>!!s||T(process.execArgv,"--cpu-prof")||T(process.execArgv,"--prof"),realpath:D,debugMode:!!process.env.NODE_INSPECTOR_IPC||!!process.env.VSCODE_INSPECTOR_OPTIONS||$(process.execArgv,e=>/^--(?:inspect|debug)(?:-brk)?(?:=\d+)?$/i.test(e))||!!process.recordreplay,tryEnableSourceMapsForHost(){try{n(664).install()}catch{}},setTimeout,clearTimeout,clearScreen:()=>{process.stdout.write("")},setBlocking:()=>{var e;const t=null==(e=process.stdout)?void 0:e._handle;t&&t.setBlocking&&t.setBlocking(!0)},base64decode:e=>Buffer.from(e,"base64").toString("utf8"),base64encode:e=>Buffer.from(e).toString("base64"),require:(e,t)=>{try{const r=BM(t,e,b);return{module:n(387)(r),modulePath:r,error:void 0}}catch(e){return{module:void 0,modulePath:void 0,error:e}}}};var x;return b;function k(e){try{return t.statSync(e,u)}catch{return}}function S(n){if(s&&"stopping"!==s){const r=s;return s.post("Profiler.stop",(o,{profile:a})=>{var l;if(!o){(null==(l=k(c))?void 0:l.isDirectory())&&(c=i.join(c,`${(new Date).toISOString().replace(/:/g,"-")}+P${process.pid}.cpuprofile`));try{t.mkdirSync(i.dirname(c),{recursive:!0})}catch{}t.writeFileSync(c,JSON.stringify(function(t){let n=0;const r=new Map,o=Oo(i.dirname(m)),a=`file://${1===No(o)?"":"/"}${o}`;for(const i of t.nodes)if(i.callFrame.url){const t=Oo(i.callFrame.url);ea(a,t,p)?i.callFrame.url=aa(a,t,a,Wt(p),!0):e.test(t)||(i.callFrame.url=(r.has(t)?r:r.set(t,`external${n}.js`)).get(t),n++)}return t}(a)))}s=void 0,r.disconnect(),n()}),s="stopping",!0}return n(),!1}function C(e){try{const n=t.readdirSync(e||".",{withFileTypes:!0}),r=[],i=[];for(const t of n){const n="string"==typeof t?t:t.name;if("."===n||".."===n)continue;let o;if("string"==typeof t||t.isSymbolicLink()){if(o=k(jo(e,n)),!o)continue}else o=t;o.isFile()?r.push(n):o.isDirectory()&&i.push(n)}return r.sort(),i.sort(),{files:r,directories:i}}catch{return rT}}function w(e,t){const n=k(e);if(!n)return!1;switch(t){case 0:return n.isFile();case 1:return n.isDirectory();default:return!1}}function N(e){return w(e,0)}function D(e){try{return f(e)}catch{return e}}function F(e){var t;return null==(t=k(e))?void 0:t.mtime}function E(e){const t=a.createHash("sha256");return t.update(e),t.digest("hex")}}()),e&&ao(e),e})();function co(e){so=e}so&&so.getEnvironmentVariable&&(function(e){if(!e.getEnvironmentVariable)return;const t=function(e,t){const r=n("TSC_WATCH_POLLINGINTERVAL");return!!r&&(i("Low"),i("Medium"),i("High"),!0);function i(e){t[e]=r[e]||t[e]}}(0,Ji);function n(t){let n;return r("Low"),r("Medium"),r("High"),n;function r(r){const i=function(t,n){return e.getEnvironmentVariable(`${t}_${n.toUpperCase()}`)}(t,r);i&&((n||(n={}))[r]=Number(i))}}function r(e,r){const i=n(e);return(t||i)&&Ui(i?{...r,...i}:r)}Wi=r("TSC_WATCH_POLLINGCHUNKSIZE",Vi)||Wi,$i=r("TSC_WATCH_UNCHANGEDPOLLTHRESHOLDS",Vi)||$i}(so),un.setAssertionLevel(/^development$/i.test(so.getEnvironmentVariable("NODE_ENV"))?1:0)),so&&so.debugMode&&(un.isDebugging=!0);var lo="/",_o="\\",uo="://",po=/\\/g;function fo(e){return 47===e||92===e}function mo(e){return wo(e)<0}function go(e){return wo(e)>0}function ho(e){const t=wo(e);return t>0&&t===e.length}function yo(e){return 0!==wo(e)}function vo(e){return/^\.\.?(?:$|[\\/])/.test(e)}function bo(e){return!yo(e)&&!vo(e)}function xo(e){return Fo(e).includes(".")}function ko(e,t){return e.length>t.length&&Mt(e,t)}function So(e,t){for(const n of t)if(ko(e,n))return!0;return!1}function To(e){return e.length>0&&fo(e.charCodeAt(e.length-1))}function Co(e){return e>=97&&e<=122||e>=65&&e<=90}function wo(e){if(!e)return 0;const t=e.charCodeAt(0);if(47===t||92===t){if(e.charCodeAt(1)!==t)return 1;const n=e.indexOf(47===t?lo:_o,2);return n<0?e.length:n+1}if(Co(t)&&58===e.charCodeAt(1)){const t=e.charCodeAt(2);if(47===t||92===t)return 3;if(2===e.length)return 2}const n=e.indexOf(uo);if(-1!==n){const t=n+uo.length,r=e.indexOf(lo,t);if(-1!==r){const i=e.slice(0,n),o=e.slice(t,r);if("file"===i&&(""===o||"localhost"===o)&&Co(e.charCodeAt(r+1))){const t=function(e,t){const n=e.charCodeAt(t);if(58===n)return t+1;if(37===n&&51===e.charCodeAt(t+1)){const n=e.charCodeAt(t+2);if(97===n||65===n)return t+3}return-1}(e,r+2);if(-1!==t){if(47===e.charCodeAt(t))return~(t+1);if(t===e.length)return~t}}return~(r+1)}return~e.length}return 0}function No(e){const t=wo(e);return t<0?~t:t}function Do(e){const t=No(e=Oo(e));return t===e.length?e:(e=Vo(e)).slice(0,Math.max(t,e.lastIndexOf(lo)))}function Fo(e,t,n){if(No(e=Oo(e))===e.length)return"";const r=(e=Vo(e)).slice(Math.max(No(e),e.lastIndexOf(lo)+1)),i=void 0!==t&&void 0!==n?Po(r,t,n):void 0;return i?r.slice(0,r.length-i.length):r}function Eo(e,t,n){if(Gt(t,".")||(t="."+t),e.length>=t.length&&46===e.charCodeAt(e.length-t.length)){const r=e.slice(e.length-t.length);if(n(r,t))return r}}function Po(e,t,n){if(t)return function(e,t,n){if("string"==typeof t)return Eo(e,t,n)||"";for(const r of t){const t=Eo(e,r,n);if(t)return t}return""}(Vo(e),t,n?gt:ht);const r=Fo(e),i=r.lastIndexOf(".");return i>=0?r.substring(i):""}function Ao(e,t=""){return function(e,t){const n=e.substring(0,t),r=e.substring(t).split(lo);return r.length&&!ye(r)&&r.pop(),[n,...r]}(e=jo(t,e),No(e))}function Io(e,t){return 0===e.length?"":(e[0]&&Wo(e[0]))+e.slice(1,t).join(lo)}function Oo(e){return e.includes("\\")?e.replace(po,lo):e}function Lo(e){if(!$(e))return[];const t=[e[0]];for(let n=1;n1){if(".."!==t[t.length-1]){t.pop();continue}}else if(t[0])continue;t.push(r)}}return t}function jo(e,...t){e&&(e=Oo(e));for(let n of t)n&&(n=Oo(n),e=e&&0===No(n)?Wo(e)+n:n);return e}function Mo(e,...t){return Jo($(t)?jo(e,...t):Oo(e))}function Ro(e,t){return Lo(Ao(e,t))}function Bo(e,t){let n=No(e);0===n&&t?n=No(e=jo(t,e)):e=Oo(e);const r=zo(e);if(void 0!==r)return r.length>n?Vo(r):r;const i=e.length,o=e.substring(0,n);let a,s=n,c=s,l=s,_=0!==n;for(;sc&&(a??(a=e.substring(0,c-1)),c=s);let r=e.indexOf(lo,s+1);-1===r&&(r=i);const u=r-c;if(1===u&&46===e.charCodeAt(s))a??(a=e.substring(0,l));else if(2===u&&46===e.charCodeAt(s)&&46===e.charCodeAt(s+1))if(_)if(void 0===a)a=l-2>=0?e.substring(0,Math.max(n,e.lastIndexOf(lo,l-2))):e.substring(0,l);else{const e=a.lastIndexOf(lo);a=-1!==e?a.substring(0,Math.max(n,e)):o,a.length===n&&(_=0!==n)}else void 0!==a?a+=a.length===n?"..":"/..":l=s+2;else void 0!==a?(a.length!==n&&(a+=lo),_=!0,a+=e.substring(c,r)):(_=!0,l=r);s=r+1}return a??(i>n?Vo(e):e)}function Jo(e){let t=zo(e=Oo(e));return void 0!==t?t:(t=Bo(e,""),t&&To(e)?Wo(t):t)}function zo(e){if(!Go.test(e))return e;let t=e.replace(/\/\.\//g,"/");return t.startsWith("./")&&(t=t.slice(2)),t===e||(e=t,Go.test(e))?void 0:e}function qo(e,t){return 0===(n=Ro(e,t)).length?"":n.slice(1).join(lo);var n}function Uo(e,t,n){return n(go(e)?Jo(e):Bo(e,t))}function Vo(e){return To(e)?e.substr(0,e.length-1):e}function Wo(e){return To(e)?e:e+lo}function $o(e){return yo(e)||vo(e)?e:"./"+e}function Ho(e,t,n,r){const i=void 0!==n&&void 0!==r?Po(e,n,r):Po(e);return i?e.slice(0,e.length-i.length)+(Gt(t,".")?t:"."+t):e}function Ko(e,t){const n=dO(e);return n?e.slice(0,e.length-n.length)+(Gt(t,".")?t:"."+t):Ho(e,t)}var Go=/\/\/|(?:^|\/)\.\.?(?:$|\/)/;function Xo(e,t,n){if(e===t)return 0;if(void 0===e)return-1;if(void 0===t)return 1;const r=e.substring(0,No(e)),i=t.substring(0,No(t)),o=St(r,i);if(0!==o)return o;const a=e.substring(r.length),s=t.substring(i.length);if(!Go.test(a)&&!Go.test(s))return n(a,s);const c=Lo(Ao(e)),l=Lo(Ao(t)),_=Math.min(c.length,l.length);for(let e=1;e<_;e++){const t=n(c[e],l[e]);if(0!==t)return t}return vt(c.length,l.length)}function Qo(e,t){return Xo(e,t,Ct)}function Yo(e,t){return Xo(e,t,St)}function Zo(e,t,n,r){return"string"==typeof n?(e=jo(n,e),t=jo(n,t)):"boolean"==typeof n&&(r=n),Xo(e,t,wt(r))}function ea(e,t,n,r){if("string"==typeof n?(e=jo(n,e),t=jo(n,t)):"boolean"==typeof n&&(r=n),void 0===e||void 0===t)return!1;if(e===t)return!0;const i=Lo(Ao(e)),o=Lo(Ao(t));if(o.length0==No(t)>0,"Paths must either both be absolute or both be relative"),Io(na(e,t,"boolean"==typeof n&&n?gt:ht,"function"==typeof n?n:st))}function ia(e,t,n){return go(e)?aa(t,e,t,n,!1):e}function oa(e,t,n){return $o(ra(Do(e),t,n))}function aa(e,t,n,r,i){const o=na(Mo(n,e),Mo(n,t),ht,r),a=o[0];if(i&&go(a)){const e=a.charAt(0)===lo?"file://":"file:///";o[0]=e+a}return Io(o)}function sa(e,t){for(;;){const n=t(e);if(void 0!==n)return n;const r=Do(e);if(r===e)return;e=r}}function ca(e){return Mt(e,"/node_modules")}function la(e,t,n,r,i,o,a){return{code:e,category:t,key:n,message:r,reportsUnnecessary:i,elidedInCompatabilityPyramid:o,reportsDeprecated:a}}var _a={Unterminated_string_literal:la(1002,1,"Unterminated_string_literal_1002","Unterminated string literal."),Identifier_expected:la(1003,1,"Identifier_expected_1003","Identifier expected."),_0_expected:la(1005,1,"_0_expected_1005","'{0}' expected."),A_file_cannot_have_a_reference_to_itself:la(1006,1,"A_file_cannot_have_a_reference_to_itself_1006","A file cannot have a reference to itself."),The_parser_expected_to_find_a_1_to_match_the_0_token_here:la(1007,1,"The_parser_expected_to_find_a_1_to_match_the_0_token_here_1007","The parser expected to find a '{1}' to match the '{0}' token here."),Trailing_comma_not_allowed:la(1009,1,"Trailing_comma_not_allowed_1009","Trailing comma not allowed."),Asterisk_Slash_expected:la(1010,1,"Asterisk_Slash_expected_1010","'*/' expected."),An_element_access_expression_should_take_an_argument:la(1011,1,"An_element_access_expression_should_take_an_argument_1011","An element access expression should take an argument."),Unexpected_token:la(1012,1,"Unexpected_token_1012","Unexpected token."),A_rest_parameter_or_binding_pattern_may_not_have_a_trailing_comma:la(1013,1,"A_rest_parameter_or_binding_pattern_may_not_have_a_trailing_comma_1013","A rest parameter or binding pattern may not have a trailing comma."),A_rest_parameter_must_be_last_in_a_parameter_list:la(1014,1,"A_rest_parameter_must_be_last_in_a_parameter_list_1014","A rest parameter must be last in a parameter list."),Parameter_cannot_have_question_mark_and_initializer:la(1015,1,"Parameter_cannot_have_question_mark_and_initializer_1015","Parameter cannot have question mark and initializer."),A_required_parameter_cannot_follow_an_optional_parameter:la(1016,1,"A_required_parameter_cannot_follow_an_optional_parameter_1016","A required parameter cannot follow an optional parameter."),An_index_signature_cannot_have_a_rest_parameter:la(1017,1,"An_index_signature_cannot_have_a_rest_parameter_1017","An index signature cannot have a rest parameter."),An_index_signature_parameter_cannot_have_an_accessibility_modifier:la(1018,1,"An_index_signature_parameter_cannot_have_an_accessibility_modifier_1018","An index signature parameter cannot have an accessibility modifier."),An_index_signature_parameter_cannot_have_a_question_mark:la(1019,1,"An_index_signature_parameter_cannot_have_a_question_mark_1019","An index signature parameter cannot have a question mark."),An_index_signature_parameter_cannot_have_an_initializer:la(1020,1,"An_index_signature_parameter_cannot_have_an_initializer_1020","An index signature parameter cannot have an initializer."),An_index_signature_must_have_a_type_annotation:la(1021,1,"An_index_signature_must_have_a_type_annotation_1021","An index signature must have a type annotation."),An_index_signature_parameter_must_have_a_type_annotation:la(1022,1,"An_index_signature_parameter_must_have_a_type_annotation_1022","An index signature parameter must have a type annotation."),readonly_modifier_can_only_appear_on_a_property_declaration_or_index_signature:la(1024,1,"readonly_modifier_can_only_appear_on_a_property_declaration_or_index_signature_1024","'readonly' modifier can only appear on a property declaration or index signature."),An_index_signature_cannot_have_a_trailing_comma:la(1025,1,"An_index_signature_cannot_have_a_trailing_comma_1025","An index signature cannot have a trailing comma."),Accessibility_modifier_already_seen:la(1028,1,"Accessibility_modifier_already_seen_1028","Accessibility modifier already seen."),_0_modifier_must_precede_1_modifier:la(1029,1,"_0_modifier_must_precede_1_modifier_1029","'{0}' modifier must precede '{1}' modifier."),_0_modifier_already_seen:la(1030,1,"_0_modifier_already_seen_1030","'{0}' modifier already seen."),_0_modifier_cannot_appear_on_class_elements_of_this_kind:la(1031,1,"_0_modifier_cannot_appear_on_class_elements_of_this_kind_1031","'{0}' modifier cannot appear on class elements of this kind."),super_must_be_followed_by_an_argument_list_or_member_access:la(1034,1,"super_must_be_followed_by_an_argument_list_or_member_access_1034","'super' must be followed by an argument list or member access."),Only_ambient_modules_can_use_quoted_names:la(1035,1,"Only_ambient_modules_can_use_quoted_names_1035","Only ambient modules can use quoted names."),Statements_are_not_allowed_in_ambient_contexts:la(1036,1,"Statements_are_not_allowed_in_ambient_contexts_1036","Statements are not allowed in ambient contexts."),A_declare_modifier_cannot_be_used_in_an_already_ambient_context:la(1038,1,"A_declare_modifier_cannot_be_used_in_an_already_ambient_context_1038","A 'declare' modifier cannot be used in an already ambient context."),Initializers_are_not_allowed_in_ambient_contexts:la(1039,1,"Initializers_are_not_allowed_in_ambient_contexts_1039","Initializers are not allowed in ambient contexts."),_0_modifier_cannot_be_used_in_an_ambient_context:la(1040,1,"_0_modifier_cannot_be_used_in_an_ambient_context_1040","'{0}' modifier cannot be used in an ambient context."),_0_modifier_cannot_be_used_here:la(1042,1,"_0_modifier_cannot_be_used_here_1042","'{0}' modifier cannot be used here."),_0_modifier_cannot_appear_on_a_module_or_namespace_element:la(1044,1,"_0_modifier_cannot_appear_on_a_module_or_namespace_element_1044","'{0}' modifier cannot appear on a module or namespace element."),Top_level_declarations_in_d_ts_files_must_start_with_either_a_declare_or_export_modifier:la(1046,1,"Top_level_declarations_in_d_ts_files_must_start_with_either_a_declare_or_export_modifier_1046","Top-level declarations in .d.ts files must start with either a 'declare' or 'export' modifier."),A_rest_parameter_cannot_be_optional:la(1047,1,"A_rest_parameter_cannot_be_optional_1047","A rest parameter cannot be optional."),A_rest_parameter_cannot_have_an_initializer:la(1048,1,"A_rest_parameter_cannot_have_an_initializer_1048","A rest parameter cannot have an initializer."),A_set_accessor_must_have_exactly_one_parameter:la(1049,1,"A_set_accessor_must_have_exactly_one_parameter_1049","A 'set' accessor must have exactly one parameter."),A_set_accessor_cannot_have_an_optional_parameter:la(1051,1,"A_set_accessor_cannot_have_an_optional_parameter_1051","A 'set' accessor cannot have an optional parameter."),A_set_accessor_parameter_cannot_have_an_initializer:la(1052,1,"A_set_accessor_parameter_cannot_have_an_initializer_1052","A 'set' accessor parameter cannot have an initializer."),A_set_accessor_cannot_have_rest_parameter:la(1053,1,"A_set_accessor_cannot_have_rest_parameter_1053","A 'set' accessor cannot have rest parameter."),A_get_accessor_cannot_have_parameters:la(1054,1,"A_get_accessor_cannot_have_parameters_1054","A 'get' accessor cannot have parameters."),Type_0_is_not_a_valid_async_function_return_type_in_ES5_because_it_does_not_refer_to_a_Promise_compatible_constructor_value:la(1055,1,"Type_0_is_not_a_valid_async_function_return_type_in_ES5_because_it_does_not_refer_to_a_Promise_compa_1055","Type '{0}' is not a valid async function return type in ES5 because it does not refer to a Promise-compatible constructor value."),Accessors_are_only_available_when_targeting_ECMAScript_5_and_higher:la(1056,1,"Accessors_are_only_available_when_targeting_ECMAScript_5_and_higher_1056","Accessors are only available when targeting ECMAScript 5 and higher."),The_return_type_of_an_async_function_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member:la(1058,1,"The_return_type_of_an_async_function_must_either_be_a_valid_promise_or_must_not_contain_a_callable_t_1058","The return type of an async function must either be a valid promise or must not contain a callable 'then' member."),A_promise_must_have_a_then_method:la(1059,1,"A_promise_must_have_a_then_method_1059","A promise must have a 'then' method."),The_first_parameter_of_the_then_method_of_a_promise_must_be_a_callback:la(1060,1,"The_first_parameter_of_the_then_method_of_a_promise_must_be_a_callback_1060","The first parameter of the 'then' method of a promise must be a callback."),Enum_member_must_have_initializer:la(1061,1,"Enum_member_must_have_initializer_1061","Enum member must have initializer."),Type_is_referenced_directly_or_indirectly_in_the_fulfillment_callback_of_its_own_then_method:la(1062,1,"Type_is_referenced_directly_or_indirectly_in_the_fulfillment_callback_of_its_own_then_method_1062","Type is referenced directly or indirectly in the fulfillment callback of its own 'then' method."),An_export_assignment_cannot_be_used_in_a_namespace:la(1063,1,"An_export_assignment_cannot_be_used_in_a_namespace_1063","An export assignment cannot be used in a namespace."),The_return_type_of_an_async_function_or_method_must_be_the_global_Promise_T_type_Did_you_mean_to_write_Promise_0:la(1064,1,"The_return_type_of_an_async_function_or_method_must_be_the_global_Promise_T_type_Did_you_mean_to_wri_1064","The return type of an async function or method must be the global Promise type. Did you mean to write 'Promise<{0}>'?"),The_return_type_of_an_async_function_or_method_must_be_the_global_Promise_T_type:la(1065,1,"The_return_type_of_an_async_function_or_method_must_be_the_global_Promise_T_type_1065","The return type of an async function or method must be the global Promise type."),In_ambient_enum_declarations_member_initializer_must_be_constant_expression:la(1066,1,"In_ambient_enum_declarations_member_initializer_must_be_constant_expression_1066","In ambient enum declarations member initializer must be constant expression."),Unexpected_token_A_constructor_method_accessor_or_property_was_expected:la(1068,1,"Unexpected_token_A_constructor_method_accessor_or_property_was_expected_1068","Unexpected token. A constructor, method, accessor, or property was expected."),Unexpected_token_A_type_parameter_name_was_expected_without_curly_braces:la(1069,1,"Unexpected_token_A_type_parameter_name_was_expected_without_curly_braces_1069","Unexpected token. A type parameter name was expected without curly braces."),_0_modifier_cannot_appear_on_a_type_member:la(1070,1,"_0_modifier_cannot_appear_on_a_type_member_1070","'{0}' modifier cannot appear on a type member."),_0_modifier_cannot_appear_on_an_index_signature:la(1071,1,"_0_modifier_cannot_appear_on_an_index_signature_1071","'{0}' modifier cannot appear on an index signature."),A_0_modifier_cannot_be_used_with_an_import_declaration:la(1079,1,"A_0_modifier_cannot_be_used_with_an_import_declaration_1079","A '{0}' modifier cannot be used with an import declaration."),Invalid_reference_directive_syntax:la(1084,1,"Invalid_reference_directive_syntax_1084","Invalid 'reference' directive syntax."),_0_modifier_cannot_appear_on_a_constructor_declaration:la(1089,1,"_0_modifier_cannot_appear_on_a_constructor_declaration_1089","'{0}' modifier cannot appear on a constructor declaration."),_0_modifier_cannot_appear_on_a_parameter:la(1090,1,"_0_modifier_cannot_appear_on_a_parameter_1090","'{0}' modifier cannot appear on a parameter."),Only_a_single_variable_declaration_is_allowed_in_a_for_in_statement:la(1091,1,"Only_a_single_variable_declaration_is_allowed_in_a_for_in_statement_1091","Only a single variable declaration is allowed in a 'for...in' statement."),Type_parameters_cannot_appear_on_a_constructor_declaration:la(1092,1,"Type_parameters_cannot_appear_on_a_constructor_declaration_1092","Type parameters cannot appear on a constructor declaration."),Type_annotation_cannot_appear_on_a_constructor_declaration:la(1093,1,"Type_annotation_cannot_appear_on_a_constructor_declaration_1093","Type annotation cannot appear on a constructor declaration."),An_accessor_cannot_have_type_parameters:la(1094,1,"An_accessor_cannot_have_type_parameters_1094","An accessor cannot have type parameters."),A_set_accessor_cannot_have_a_return_type_annotation:la(1095,1,"A_set_accessor_cannot_have_a_return_type_annotation_1095","A 'set' accessor cannot have a return type annotation."),An_index_signature_must_have_exactly_one_parameter:la(1096,1,"An_index_signature_must_have_exactly_one_parameter_1096","An index signature must have exactly one parameter."),_0_list_cannot_be_empty:la(1097,1,"_0_list_cannot_be_empty_1097","'{0}' list cannot be empty."),Type_parameter_list_cannot_be_empty:la(1098,1,"Type_parameter_list_cannot_be_empty_1098","Type parameter list cannot be empty."),Type_argument_list_cannot_be_empty:la(1099,1,"Type_argument_list_cannot_be_empty_1099","Type argument list cannot be empty."),Invalid_use_of_0_in_strict_mode:la(1100,1,"Invalid_use_of_0_in_strict_mode_1100","Invalid use of '{0}' in strict mode."),with_statements_are_not_allowed_in_strict_mode:la(1101,1,"with_statements_are_not_allowed_in_strict_mode_1101","'with' statements are not allowed in strict mode."),delete_cannot_be_called_on_an_identifier_in_strict_mode:la(1102,1,"delete_cannot_be_called_on_an_identifier_in_strict_mode_1102","'delete' cannot be called on an identifier in strict mode."),for_await_loops_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules:la(1103,1,"for_await_loops_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules_1103","'for await' loops are only allowed within async functions and at the top levels of modules."),A_continue_statement_can_only_be_used_within_an_enclosing_iteration_statement:la(1104,1,"A_continue_statement_can_only_be_used_within_an_enclosing_iteration_statement_1104","A 'continue' statement can only be used within an enclosing iteration statement."),A_break_statement_can_only_be_used_within_an_enclosing_iteration_or_switch_statement:la(1105,1,"A_break_statement_can_only_be_used_within_an_enclosing_iteration_or_switch_statement_1105","A 'break' statement can only be used within an enclosing iteration or switch statement."),The_left_hand_side_of_a_for_of_statement_may_not_be_async:la(1106,1,"The_left_hand_side_of_a_for_of_statement_may_not_be_async_1106","The left-hand side of a 'for...of' statement may not be 'async'."),Jump_target_cannot_cross_function_boundary:la(1107,1,"Jump_target_cannot_cross_function_boundary_1107","Jump target cannot cross function boundary."),A_return_statement_can_only_be_used_within_a_function_body:la(1108,1,"A_return_statement_can_only_be_used_within_a_function_body_1108","A 'return' statement can only be used within a function body."),Expression_expected:la(1109,1,"Expression_expected_1109","Expression expected."),Type_expected:la(1110,1,"Type_expected_1110","Type expected."),Private_field_0_must_be_declared_in_an_enclosing_class:la(1111,1,"Private_field_0_must_be_declared_in_an_enclosing_class_1111","Private field '{0}' must be declared in an enclosing class."),A_default_clause_cannot_appear_more_than_once_in_a_switch_statement:la(1113,1,"A_default_clause_cannot_appear_more_than_once_in_a_switch_statement_1113","A 'default' clause cannot appear more than once in a 'switch' statement."),Duplicate_label_0:la(1114,1,"Duplicate_label_0_1114","Duplicate label '{0}'."),A_continue_statement_can_only_jump_to_a_label_of_an_enclosing_iteration_statement:la(1115,1,"A_continue_statement_can_only_jump_to_a_label_of_an_enclosing_iteration_statement_1115","A 'continue' statement can only jump to a label of an enclosing iteration statement."),A_break_statement_can_only_jump_to_a_label_of_an_enclosing_statement:la(1116,1,"A_break_statement_can_only_jump_to_a_label_of_an_enclosing_statement_1116","A 'break' statement can only jump to a label of an enclosing statement."),An_object_literal_cannot_have_multiple_properties_with_the_same_name:la(1117,1,"An_object_literal_cannot_have_multiple_properties_with_the_same_name_1117","An object literal cannot have multiple properties with the same name."),An_object_literal_cannot_have_multiple_get_Slashset_accessors_with_the_same_name:la(1118,1,"An_object_literal_cannot_have_multiple_get_Slashset_accessors_with_the_same_name_1118","An object literal cannot have multiple get/set accessors with the same name."),An_object_literal_cannot_have_property_and_accessor_with_the_same_name:la(1119,1,"An_object_literal_cannot_have_property_and_accessor_with_the_same_name_1119","An object literal cannot have property and accessor with the same name."),An_export_assignment_cannot_have_modifiers:la(1120,1,"An_export_assignment_cannot_have_modifiers_1120","An export assignment cannot have modifiers."),Octal_literals_are_not_allowed_Use_the_syntax_0:la(1121,1,"Octal_literals_are_not_allowed_Use_the_syntax_0_1121","Octal literals are not allowed. Use the syntax '{0}'."),Variable_declaration_list_cannot_be_empty:la(1123,1,"Variable_declaration_list_cannot_be_empty_1123","Variable declaration list cannot be empty."),Digit_expected:la(1124,1,"Digit_expected_1124","Digit expected."),Hexadecimal_digit_expected:la(1125,1,"Hexadecimal_digit_expected_1125","Hexadecimal digit expected."),Unexpected_end_of_text:la(1126,1,"Unexpected_end_of_text_1126","Unexpected end of text."),Invalid_character:la(1127,1,"Invalid_character_1127","Invalid character."),Declaration_or_statement_expected:la(1128,1,"Declaration_or_statement_expected_1128","Declaration or statement expected."),Statement_expected:la(1129,1,"Statement_expected_1129","Statement expected."),case_or_default_expected:la(1130,1,"case_or_default_expected_1130","'case' or 'default' expected."),Property_or_signature_expected:la(1131,1,"Property_or_signature_expected_1131","Property or signature expected."),Enum_member_expected:la(1132,1,"Enum_member_expected_1132","Enum member expected."),Variable_declaration_expected:la(1134,1,"Variable_declaration_expected_1134","Variable declaration expected."),Argument_expression_expected:la(1135,1,"Argument_expression_expected_1135","Argument expression expected."),Property_assignment_expected:la(1136,1,"Property_assignment_expected_1136","Property assignment expected."),Expression_or_comma_expected:la(1137,1,"Expression_or_comma_expected_1137","Expression or comma expected."),Parameter_declaration_expected:la(1138,1,"Parameter_declaration_expected_1138","Parameter declaration expected."),Type_parameter_declaration_expected:la(1139,1,"Type_parameter_declaration_expected_1139","Type parameter declaration expected."),Type_argument_expected:la(1140,1,"Type_argument_expected_1140","Type argument expected."),String_literal_expected:la(1141,1,"String_literal_expected_1141","String literal expected."),Line_break_not_permitted_here:la(1142,1,"Line_break_not_permitted_here_1142","Line break not permitted here."),or_expected:la(1144,1,"or_expected_1144","'{' or ';' expected."),or_JSX_element_expected:la(1145,1,"or_JSX_element_expected_1145","'{' or JSX element expected."),Declaration_expected:la(1146,1,"Declaration_expected_1146","Declaration expected."),Import_declarations_in_a_namespace_cannot_reference_a_module:la(1147,1,"Import_declarations_in_a_namespace_cannot_reference_a_module_1147","Import declarations in a namespace cannot reference a module."),Cannot_use_imports_exports_or_module_augmentations_when_module_is_none:la(1148,1,"Cannot_use_imports_exports_or_module_augmentations_when_module_is_none_1148","Cannot use imports, exports, or module augmentations when '--module' is 'none'."),File_name_0_differs_from_already_included_file_name_1_only_in_casing:la(1149,1,"File_name_0_differs_from_already_included_file_name_1_only_in_casing_1149","File name '{0}' differs from already included file name '{1}' only in casing."),_0_declarations_must_be_initialized:la(1155,1,"_0_declarations_must_be_initialized_1155","'{0}' declarations must be initialized."),_0_declarations_can_only_be_declared_inside_a_block:la(1156,1,"_0_declarations_can_only_be_declared_inside_a_block_1156","'{0}' declarations can only be declared inside a block."),Unterminated_template_literal:la(1160,1,"Unterminated_template_literal_1160","Unterminated template literal."),Unterminated_regular_expression_literal:la(1161,1,"Unterminated_regular_expression_literal_1161","Unterminated regular expression literal."),An_object_member_cannot_be_declared_optional:la(1162,1,"An_object_member_cannot_be_declared_optional_1162","An object member cannot be declared optional."),A_yield_expression_is_only_allowed_in_a_generator_body:la(1163,1,"A_yield_expression_is_only_allowed_in_a_generator_body_1163","A 'yield' expression is only allowed in a generator body."),Computed_property_names_are_not_allowed_in_enums:la(1164,1,"Computed_property_names_are_not_allowed_in_enums_1164","Computed property names are not allowed in enums."),A_computed_property_name_in_an_ambient_context_must_refer_to_an_expression_whose_type_is_a_literal_type_or_a_unique_symbol_type:la(1165,1,"A_computed_property_name_in_an_ambient_context_must_refer_to_an_expression_whose_type_is_a_literal_t_1165","A computed property name in an ambient context must refer to an expression whose type is a literal type or a 'unique symbol' type."),A_computed_property_name_in_a_class_property_declaration_must_have_a_simple_literal_type_or_a_unique_symbol_type:la(1166,1,"A_computed_property_name_in_a_class_property_declaration_must_have_a_simple_literal_type_or_a_unique_1166","A computed property name in a class property declaration must have a simple literal type or a 'unique symbol' type."),A_computed_property_name_in_a_method_overload_must_refer_to_an_expression_whose_type_is_a_literal_type_or_a_unique_symbol_type:la(1168,1,"A_computed_property_name_in_a_method_overload_must_refer_to_an_expression_whose_type_is_a_literal_ty_1168","A computed property name in a method overload must refer to an expression whose type is a literal type or a 'unique symbol' type."),A_computed_property_name_in_an_interface_must_refer_to_an_expression_whose_type_is_a_literal_type_or_a_unique_symbol_type:la(1169,1,"A_computed_property_name_in_an_interface_must_refer_to_an_expression_whose_type_is_a_literal_type_or_1169","A computed property name in an interface must refer to an expression whose type is a literal type or a 'unique symbol' type."),A_computed_property_name_in_a_type_literal_must_refer_to_an_expression_whose_type_is_a_literal_type_or_a_unique_symbol_type:la(1170,1,"A_computed_property_name_in_a_type_literal_must_refer_to_an_expression_whose_type_is_a_literal_type__1170","A computed property name in a type literal must refer to an expression whose type is a literal type or a 'unique symbol' type."),A_comma_expression_is_not_allowed_in_a_computed_property_name:la(1171,1,"A_comma_expression_is_not_allowed_in_a_computed_property_name_1171","A comma expression is not allowed in a computed property name."),extends_clause_already_seen:la(1172,1,"extends_clause_already_seen_1172","'extends' clause already seen."),extends_clause_must_precede_implements_clause:la(1173,1,"extends_clause_must_precede_implements_clause_1173","'extends' clause must precede 'implements' clause."),Classes_can_only_extend_a_single_class:la(1174,1,"Classes_can_only_extend_a_single_class_1174","Classes can only extend a single class."),implements_clause_already_seen:la(1175,1,"implements_clause_already_seen_1175","'implements' clause already seen."),Interface_declaration_cannot_have_implements_clause:la(1176,1,"Interface_declaration_cannot_have_implements_clause_1176","Interface declaration cannot have 'implements' clause."),Binary_digit_expected:la(1177,1,"Binary_digit_expected_1177","Binary digit expected."),Octal_digit_expected:la(1178,1,"Octal_digit_expected_1178","Octal digit expected."),Unexpected_token_expected:la(1179,1,"Unexpected_token_expected_1179","Unexpected token. '{' expected."),Property_destructuring_pattern_expected:la(1180,1,"Property_destructuring_pattern_expected_1180","Property destructuring pattern expected."),Array_element_destructuring_pattern_expected:la(1181,1,"Array_element_destructuring_pattern_expected_1181","Array element destructuring pattern expected."),A_destructuring_declaration_must_have_an_initializer:la(1182,1,"A_destructuring_declaration_must_have_an_initializer_1182","A destructuring declaration must have an initializer."),An_implementation_cannot_be_declared_in_ambient_contexts:la(1183,1,"An_implementation_cannot_be_declared_in_ambient_contexts_1183","An implementation cannot be declared in ambient contexts."),Modifiers_cannot_appear_here:la(1184,1,"Modifiers_cannot_appear_here_1184","Modifiers cannot appear here."),Merge_conflict_marker_encountered:la(1185,1,"Merge_conflict_marker_encountered_1185","Merge conflict marker encountered."),A_rest_element_cannot_have_an_initializer:la(1186,1,"A_rest_element_cannot_have_an_initializer_1186","A rest element cannot have an initializer."),A_parameter_property_may_not_be_declared_using_a_binding_pattern:la(1187,1,"A_parameter_property_may_not_be_declared_using_a_binding_pattern_1187","A parameter property may not be declared using a binding pattern."),Only_a_single_variable_declaration_is_allowed_in_a_for_of_statement:la(1188,1,"Only_a_single_variable_declaration_is_allowed_in_a_for_of_statement_1188","Only a single variable declaration is allowed in a 'for...of' statement."),The_variable_declaration_of_a_for_in_statement_cannot_have_an_initializer:la(1189,1,"The_variable_declaration_of_a_for_in_statement_cannot_have_an_initializer_1189","The variable declaration of a 'for...in' statement cannot have an initializer."),The_variable_declaration_of_a_for_of_statement_cannot_have_an_initializer:la(1190,1,"The_variable_declaration_of_a_for_of_statement_cannot_have_an_initializer_1190","The variable declaration of a 'for...of' statement cannot have an initializer."),An_import_declaration_cannot_have_modifiers:la(1191,1,"An_import_declaration_cannot_have_modifiers_1191","An import declaration cannot have modifiers."),Module_0_has_no_default_export:la(1192,1,"Module_0_has_no_default_export_1192","Module '{0}' has no default export."),An_export_declaration_cannot_have_modifiers:la(1193,1,"An_export_declaration_cannot_have_modifiers_1193","An export declaration cannot have modifiers."),Export_declarations_are_not_permitted_in_a_namespace:la(1194,1,"Export_declarations_are_not_permitted_in_a_namespace_1194","Export declarations are not permitted in a namespace."),export_Asterisk_does_not_re_export_a_default:la(1195,1,"export_Asterisk_does_not_re_export_a_default_1195","'export *' does not re-export a default."),Catch_clause_variable_type_annotation_must_be_any_or_unknown_if_specified:la(1196,1,"Catch_clause_variable_type_annotation_must_be_any_or_unknown_if_specified_1196","Catch clause variable type annotation must be 'any' or 'unknown' if specified."),Catch_clause_variable_cannot_have_an_initializer:la(1197,1,"Catch_clause_variable_cannot_have_an_initializer_1197","Catch clause variable cannot have an initializer."),An_extended_Unicode_escape_value_must_be_between_0x0_and_0x10FFFF_inclusive:la(1198,1,"An_extended_Unicode_escape_value_must_be_between_0x0_and_0x10FFFF_inclusive_1198","An extended Unicode escape value must be between 0x0 and 0x10FFFF inclusive."),Unterminated_Unicode_escape_sequence:la(1199,1,"Unterminated_Unicode_escape_sequence_1199","Unterminated Unicode escape sequence."),Line_terminator_not_permitted_before_arrow:la(1200,1,"Line_terminator_not_permitted_before_arrow_1200","Line terminator not permitted before arrow."),Import_assignment_cannot_be_used_when_targeting_ECMAScript_modules_Consider_using_import_Asterisk_as_ns_from_mod_import_a_from_mod_import_d_from_mod_or_another_module_format_instead:la(1202,1,"Import_assignment_cannot_be_used_when_targeting_ECMAScript_modules_Consider_using_import_Asterisk_as_1202","Import assignment cannot be used when targeting ECMAScript modules. Consider using 'import * as ns from \"mod\"', 'import {a} from \"mod\"', 'import d from \"mod\"', or another module format instead."),Export_assignment_cannot_be_used_when_targeting_ECMAScript_modules_Consider_using_export_default_or_another_module_format_instead:la(1203,1,"Export_assignment_cannot_be_used_when_targeting_ECMAScript_modules_Consider_using_export_default_or__1203","Export assignment cannot be used when targeting ECMAScript modules. Consider using 'export default' or another module format instead."),Re_exporting_a_type_when_0_is_enabled_requires_using_export_type:la(1205,1,"Re_exporting_a_type_when_0_is_enabled_requires_using_export_type_1205","Re-exporting a type when '{0}' is enabled requires using 'export type'."),Decorators_are_not_valid_here:la(1206,1,"Decorators_are_not_valid_here_1206","Decorators are not valid here."),Decorators_cannot_be_applied_to_multiple_get_Slashset_accessors_of_the_same_name:la(1207,1,"Decorators_cannot_be_applied_to_multiple_get_Slashset_accessors_of_the_same_name_1207","Decorators cannot be applied to multiple get/set accessors of the same name."),Invalid_optional_chain_from_new_expression_Did_you_mean_to_call_0:la(1209,1,"Invalid_optional_chain_from_new_expression_Did_you_mean_to_call_0_1209","Invalid optional chain from new expression. Did you mean to call '{0}()'?"),Code_contained_in_a_class_is_evaluated_in_JavaScript_s_strict_mode_which_does_not_allow_this_use_of_0_For_more_information_see_https_Colon_Slash_Slashdeveloper_mozilla_org_Slashen_US_Slashdocs_SlashWeb_SlashJavaScript_SlashReference_SlashStrict_mode:la(1210,1,"Code_contained_in_a_class_is_evaluated_in_JavaScript_s_strict_mode_which_does_not_allow_this_use_of__1210","Code contained in a class is evaluated in JavaScript's strict mode which does not allow this use of '{0}'. For more information, see https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Strict_mode."),A_class_declaration_without_the_default_modifier_must_have_a_name:la(1211,1,"A_class_declaration_without_the_default_modifier_must_have_a_name_1211","A class declaration without the 'default' modifier must have a name."),Identifier_expected_0_is_a_reserved_word_in_strict_mode:la(1212,1,"Identifier_expected_0_is_a_reserved_word_in_strict_mode_1212","Identifier expected. '{0}' is a reserved word in strict mode."),Identifier_expected_0_is_a_reserved_word_in_strict_mode_Class_definitions_are_automatically_in_strict_mode:la(1213,1,"Identifier_expected_0_is_a_reserved_word_in_strict_mode_Class_definitions_are_automatically_in_stric_1213","Identifier expected. '{0}' is a reserved word in strict mode. Class definitions are automatically in strict mode."),Identifier_expected_0_is_a_reserved_word_in_strict_mode_Modules_are_automatically_in_strict_mode:la(1214,1,"Identifier_expected_0_is_a_reserved_word_in_strict_mode_Modules_are_automatically_in_strict_mode_1214","Identifier expected. '{0}' is a reserved word in strict mode. Modules are automatically in strict mode."),Invalid_use_of_0_Modules_are_automatically_in_strict_mode:la(1215,1,"Invalid_use_of_0_Modules_are_automatically_in_strict_mode_1215","Invalid use of '{0}'. Modules are automatically in strict mode."),Identifier_expected_esModule_is_reserved_as_an_exported_marker_when_transforming_ECMAScript_modules:la(1216,1,"Identifier_expected_esModule_is_reserved_as_an_exported_marker_when_transforming_ECMAScript_modules_1216","Identifier expected. '__esModule' is reserved as an exported marker when transforming ECMAScript modules."),Export_assignment_is_not_supported_when_module_flag_is_system:la(1218,1,"Export_assignment_is_not_supported_when_module_flag_is_system_1218","Export assignment is not supported when '--module' flag is 'system'."),Generators_are_not_allowed_in_an_ambient_context:la(1221,1,"Generators_are_not_allowed_in_an_ambient_context_1221","Generators are not allowed in an ambient context."),An_overload_signature_cannot_be_declared_as_a_generator:la(1222,1,"An_overload_signature_cannot_be_declared_as_a_generator_1222","An overload signature cannot be declared as a generator."),_0_tag_already_specified:la(1223,1,"_0_tag_already_specified_1223","'{0}' tag already specified."),Signature_0_must_be_a_type_predicate:la(1224,1,"Signature_0_must_be_a_type_predicate_1224","Signature '{0}' must be a type predicate."),Cannot_find_parameter_0:la(1225,1,"Cannot_find_parameter_0_1225","Cannot find parameter '{0}'."),Type_predicate_0_is_not_assignable_to_1:la(1226,1,"Type_predicate_0_is_not_assignable_to_1_1226","Type predicate '{0}' is not assignable to '{1}'."),Parameter_0_is_not_in_the_same_position_as_parameter_1:la(1227,1,"Parameter_0_is_not_in_the_same_position_as_parameter_1_1227","Parameter '{0}' is not in the same position as parameter '{1}'."),A_type_predicate_is_only_allowed_in_return_type_position_for_functions_and_methods:la(1228,1,"A_type_predicate_is_only_allowed_in_return_type_position_for_functions_and_methods_1228","A type predicate is only allowed in return type position for functions and methods."),A_type_predicate_cannot_reference_a_rest_parameter:la(1229,1,"A_type_predicate_cannot_reference_a_rest_parameter_1229","A type predicate cannot reference a rest parameter."),A_type_predicate_cannot_reference_element_0_in_a_binding_pattern:la(1230,1,"A_type_predicate_cannot_reference_element_0_in_a_binding_pattern_1230","A type predicate cannot reference element '{0}' in a binding pattern."),An_export_assignment_must_be_at_the_top_level_of_a_file_or_module_declaration:la(1231,1,"An_export_assignment_must_be_at_the_top_level_of_a_file_or_module_declaration_1231","An export assignment must be at the top level of a file or module declaration."),An_import_declaration_can_only_be_used_at_the_top_level_of_a_namespace_or_module:la(1232,1,"An_import_declaration_can_only_be_used_at_the_top_level_of_a_namespace_or_module_1232","An import declaration can only be used at the top level of a namespace or module."),An_export_declaration_can_only_be_used_at_the_top_level_of_a_namespace_or_module:la(1233,1,"An_export_declaration_can_only_be_used_at_the_top_level_of_a_namespace_or_module_1233","An export declaration can only be used at the top level of a namespace or module."),An_ambient_module_declaration_is_only_allowed_at_the_top_level_in_a_file:la(1234,1,"An_ambient_module_declaration_is_only_allowed_at_the_top_level_in_a_file_1234","An ambient module declaration is only allowed at the top level in a file."),A_namespace_declaration_is_only_allowed_at_the_top_level_of_a_namespace_or_module:la(1235,1,"A_namespace_declaration_is_only_allowed_at_the_top_level_of_a_namespace_or_module_1235","A namespace declaration is only allowed at the top level of a namespace or module."),The_return_type_of_a_property_decorator_function_must_be_either_void_or_any:la(1236,1,"The_return_type_of_a_property_decorator_function_must_be_either_void_or_any_1236","The return type of a property decorator function must be either 'void' or 'any'."),The_return_type_of_a_parameter_decorator_function_must_be_either_void_or_any:la(1237,1,"The_return_type_of_a_parameter_decorator_function_must_be_either_void_or_any_1237","The return type of a parameter decorator function must be either 'void' or 'any'."),Unable_to_resolve_signature_of_class_decorator_when_called_as_an_expression:la(1238,1,"Unable_to_resolve_signature_of_class_decorator_when_called_as_an_expression_1238","Unable to resolve signature of class decorator when called as an expression."),Unable_to_resolve_signature_of_parameter_decorator_when_called_as_an_expression:la(1239,1,"Unable_to_resolve_signature_of_parameter_decorator_when_called_as_an_expression_1239","Unable to resolve signature of parameter decorator when called as an expression."),Unable_to_resolve_signature_of_property_decorator_when_called_as_an_expression:la(1240,1,"Unable_to_resolve_signature_of_property_decorator_when_called_as_an_expression_1240","Unable to resolve signature of property decorator when called as an expression."),Unable_to_resolve_signature_of_method_decorator_when_called_as_an_expression:la(1241,1,"Unable_to_resolve_signature_of_method_decorator_when_called_as_an_expression_1241","Unable to resolve signature of method decorator when called as an expression."),abstract_modifier_can_only_appear_on_a_class_method_or_property_declaration:la(1242,1,"abstract_modifier_can_only_appear_on_a_class_method_or_property_declaration_1242","'abstract' modifier can only appear on a class, method, or property declaration."),_0_modifier_cannot_be_used_with_1_modifier:la(1243,1,"_0_modifier_cannot_be_used_with_1_modifier_1243","'{0}' modifier cannot be used with '{1}' modifier."),Abstract_methods_can_only_appear_within_an_abstract_class:la(1244,1,"Abstract_methods_can_only_appear_within_an_abstract_class_1244","Abstract methods can only appear within an abstract class."),Method_0_cannot_have_an_implementation_because_it_is_marked_abstract:la(1245,1,"Method_0_cannot_have_an_implementation_because_it_is_marked_abstract_1245","Method '{0}' cannot have an implementation because it is marked abstract."),An_interface_property_cannot_have_an_initializer:la(1246,1,"An_interface_property_cannot_have_an_initializer_1246","An interface property cannot have an initializer."),A_type_literal_property_cannot_have_an_initializer:la(1247,1,"A_type_literal_property_cannot_have_an_initializer_1247","A type literal property cannot have an initializer."),A_class_member_cannot_have_the_0_keyword:la(1248,1,"A_class_member_cannot_have_the_0_keyword_1248","A class member cannot have the '{0}' keyword."),A_decorator_can_only_decorate_a_method_implementation_not_an_overload:la(1249,1,"A_decorator_can_only_decorate_a_method_implementation_not_an_overload_1249","A decorator can only decorate a method implementation, not an overload."),Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES5:la(1250,1,"Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES5_1250","Function declarations are not allowed inside blocks in strict mode when targeting 'ES5'."),Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES5_Class_definitions_are_automatically_in_strict_mode:la(1251,1,"Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES5_Class_definiti_1251","Function declarations are not allowed inside blocks in strict mode when targeting 'ES5'. Class definitions are automatically in strict mode."),Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES5_Modules_are_automatically_in_strict_mode:la(1252,1,"Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES5_Modules_are_au_1252","Function declarations are not allowed inside blocks in strict mode when targeting 'ES5'. Modules are automatically in strict mode."),Abstract_properties_can_only_appear_within_an_abstract_class:la(1253,1,"Abstract_properties_can_only_appear_within_an_abstract_class_1253","Abstract properties can only appear within an abstract class."),A_const_initializer_in_an_ambient_context_must_be_a_string_or_numeric_literal_or_literal_enum_reference:la(1254,1,"A_const_initializer_in_an_ambient_context_must_be_a_string_or_numeric_literal_or_literal_enum_refere_1254","A 'const' initializer in an ambient context must be a string or numeric literal or literal enum reference."),A_definite_assignment_assertion_is_not_permitted_in_this_context:la(1255,1,"A_definite_assignment_assertion_is_not_permitted_in_this_context_1255","A definite assignment assertion '!' is not permitted in this context."),A_required_element_cannot_follow_an_optional_element:la(1257,1,"A_required_element_cannot_follow_an_optional_element_1257","A required element cannot follow an optional element."),A_default_export_must_be_at_the_top_level_of_a_file_or_module_declaration:la(1258,1,"A_default_export_must_be_at_the_top_level_of_a_file_or_module_declaration_1258","A default export must be at the top level of a file or module declaration."),Module_0_can_only_be_default_imported_using_the_1_flag:la(1259,1,"Module_0_can_only_be_default_imported_using_the_1_flag_1259","Module '{0}' can only be default-imported using the '{1}' flag"),Keywords_cannot_contain_escape_characters:la(1260,1,"Keywords_cannot_contain_escape_characters_1260","Keywords cannot contain escape characters."),Already_included_file_name_0_differs_from_file_name_1_only_in_casing:la(1261,1,"Already_included_file_name_0_differs_from_file_name_1_only_in_casing_1261","Already included file name '{0}' differs from file name '{1}' only in casing."),Identifier_expected_0_is_a_reserved_word_at_the_top_level_of_a_module:la(1262,1,"Identifier_expected_0_is_a_reserved_word_at_the_top_level_of_a_module_1262","Identifier expected. '{0}' is a reserved word at the top-level of a module."),Declarations_with_initializers_cannot_also_have_definite_assignment_assertions:la(1263,1,"Declarations_with_initializers_cannot_also_have_definite_assignment_assertions_1263","Declarations with initializers cannot also have definite assignment assertions."),Declarations_with_definite_assignment_assertions_must_also_have_type_annotations:la(1264,1,"Declarations_with_definite_assignment_assertions_must_also_have_type_annotations_1264","Declarations with definite assignment assertions must also have type annotations."),A_rest_element_cannot_follow_another_rest_element:la(1265,1,"A_rest_element_cannot_follow_another_rest_element_1265","A rest element cannot follow another rest element."),An_optional_element_cannot_follow_a_rest_element:la(1266,1,"An_optional_element_cannot_follow_a_rest_element_1266","An optional element cannot follow a rest element."),Property_0_cannot_have_an_initializer_because_it_is_marked_abstract:la(1267,1,"Property_0_cannot_have_an_initializer_because_it_is_marked_abstract_1267","Property '{0}' cannot have an initializer because it is marked abstract."),An_index_signature_parameter_type_must_be_string_number_symbol_or_a_template_literal_type:la(1268,1,"An_index_signature_parameter_type_must_be_string_number_symbol_or_a_template_literal_type_1268","An index signature parameter type must be 'string', 'number', 'symbol', or a template literal type."),Cannot_use_export_import_on_a_type_or_type_only_namespace_when_0_is_enabled:la(1269,1,"Cannot_use_export_import_on_a_type_or_type_only_namespace_when_0_is_enabled_1269","Cannot use 'export import' on a type or type-only namespace when '{0}' is enabled."),Decorator_function_return_type_0_is_not_assignable_to_type_1:la(1270,1,"Decorator_function_return_type_0_is_not_assignable_to_type_1_1270","Decorator function return type '{0}' is not assignable to type '{1}'."),Decorator_function_return_type_is_0_but_is_expected_to_be_void_or_any:la(1271,1,"Decorator_function_return_type_is_0_but_is_expected_to_be_void_or_any_1271","Decorator function return type is '{0}' but is expected to be 'void' or 'any'."),A_type_referenced_in_a_decorated_signature_must_be_imported_with_import_type_or_a_namespace_import_when_isolatedModules_and_emitDecoratorMetadata_are_enabled:la(1272,1,"A_type_referenced_in_a_decorated_signature_must_be_imported_with_import_type_or_a_namespace_import_w_1272","A type referenced in a decorated signature must be imported with 'import type' or a namespace import when 'isolatedModules' and 'emitDecoratorMetadata' are enabled."),_0_modifier_cannot_appear_on_a_type_parameter:la(1273,1,"_0_modifier_cannot_appear_on_a_type_parameter_1273","'{0}' modifier cannot appear on a type parameter"),_0_modifier_can_only_appear_on_a_type_parameter_of_a_class_interface_or_type_alias:la(1274,1,"_0_modifier_can_only_appear_on_a_type_parameter_of_a_class_interface_or_type_alias_1274","'{0}' modifier can only appear on a type parameter of a class, interface or type alias"),accessor_modifier_can_only_appear_on_a_property_declaration:la(1275,1,"accessor_modifier_can_only_appear_on_a_property_declaration_1275","'accessor' modifier can only appear on a property declaration."),An_accessor_property_cannot_be_declared_optional:la(1276,1,"An_accessor_property_cannot_be_declared_optional_1276","An 'accessor' property cannot be declared optional."),_0_modifier_can_only_appear_on_a_type_parameter_of_a_function_method_or_class:la(1277,1,"_0_modifier_can_only_appear_on_a_type_parameter_of_a_function_method_or_class_1277","'{0}' modifier can only appear on a type parameter of a function, method or class"),The_runtime_will_invoke_the_decorator_with_1_arguments_but_the_decorator_expects_0:la(1278,1,"The_runtime_will_invoke_the_decorator_with_1_arguments_but_the_decorator_expects_0_1278","The runtime will invoke the decorator with {1} arguments, but the decorator expects {0}."),The_runtime_will_invoke_the_decorator_with_1_arguments_but_the_decorator_expects_at_least_0:la(1279,1,"The_runtime_will_invoke_the_decorator_with_1_arguments_but_the_decorator_expects_at_least_0_1279","The runtime will invoke the decorator with {1} arguments, but the decorator expects at least {0}."),Namespaces_are_not_allowed_in_global_script_files_when_0_is_enabled_If_this_file_is_not_intended_to_be_a_global_script_set_moduleDetection_to_force_or_add_an_empty_export_statement:la(1280,1,"Namespaces_are_not_allowed_in_global_script_files_when_0_is_enabled_If_this_file_is_not_intended_to__1280","Namespaces are not allowed in global script files when '{0}' is enabled. If this file is not intended to be a global script, set 'moduleDetection' to 'force' or add an empty 'export {}' statement."),Cannot_access_0_from_another_file_without_qualification_when_1_is_enabled_Use_2_instead:la(1281,1,"Cannot_access_0_from_another_file_without_qualification_when_1_is_enabled_Use_2_instead_1281","Cannot access '{0}' from another file without qualification when '{1}' is enabled. Use '{2}' instead."),An_export_declaration_must_reference_a_value_when_verbatimModuleSyntax_is_enabled_but_0_only_refers_to_a_type:la(1282,1,"An_export_declaration_must_reference_a_value_when_verbatimModuleSyntax_is_enabled_but_0_only_refers__1282","An 'export =' declaration must reference a value when 'verbatimModuleSyntax' is enabled, but '{0}' only refers to a type."),An_export_declaration_must_reference_a_real_value_when_verbatimModuleSyntax_is_enabled_but_0_resolves_to_a_type_only_declaration:la(1283,1,"An_export_declaration_must_reference_a_real_value_when_verbatimModuleSyntax_is_enabled_but_0_resolve_1283","An 'export =' declaration must reference a real value when 'verbatimModuleSyntax' is enabled, but '{0}' resolves to a type-only declaration."),An_export_default_must_reference_a_value_when_verbatimModuleSyntax_is_enabled_but_0_only_refers_to_a_type:la(1284,1,"An_export_default_must_reference_a_value_when_verbatimModuleSyntax_is_enabled_but_0_only_refers_to_a_1284","An 'export default' must reference a value when 'verbatimModuleSyntax' is enabled, but '{0}' only refers to a type."),An_export_default_must_reference_a_real_value_when_verbatimModuleSyntax_is_enabled_but_0_resolves_to_a_type_only_declaration:la(1285,1,"An_export_default_must_reference_a_real_value_when_verbatimModuleSyntax_is_enabled_but_0_resolves_to_1285","An 'export default' must reference a real value when 'verbatimModuleSyntax' is enabled, but '{0}' resolves to a type-only declaration."),ECMAScript_imports_and_exports_cannot_be_written_in_a_CommonJS_file_under_verbatimModuleSyntax:la(1286,1,"ECMAScript_imports_and_exports_cannot_be_written_in_a_CommonJS_file_under_verbatimModuleSyntax_1286","ECMAScript imports and exports cannot be written in a CommonJS file under 'verbatimModuleSyntax'."),A_top_level_export_modifier_cannot_be_used_on_value_declarations_in_a_CommonJS_module_when_verbatimModuleSyntax_is_enabled:la(1287,1,"A_top_level_export_modifier_cannot_be_used_on_value_declarations_in_a_CommonJS_module_when_verbatimM_1287","A top-level 'export' modifier cannot be used on value declarations in a CommonJS module when 'verbatimModuleSyntax' is enabled."),An_import_alias_cannot_resolve_to_a_type_or_type_only_declaration_when_verbatimModuleSyntax_is_enabled:la(1288,1,"An_import_alias_cannot_resolve_to_a_type_or_type_only_declaration_when_verbatimModuleSyntax_is_enabl_1288","An import alias cannot resolve to a type or type-only declaration when 'verbatimModuleSyntax' is enabled."),_0_resolves_to_a_type_only_declaration_and_must_be_marked_type_only_in_this_file_before_re_exporting_when_1_is_enabled_Consider_using_import_type_where_0_is_imported:la(1289,1,"_0_resolves_to_a_type_only_declaration_and_must_be_marked_type_only_in_this_file_before_re_exporting_1289","'{0}' resolves to a type-only declaration and must be marked type-only in this file before re-exporting when '{1}' is enabled. Consider using 'import type' where '{0}' is imported."),_0_resolves_to_a_type_only_declaration_and_must_be_marked_type_only_in_this_file_before_re_exporting_when_1_is_enabled_Consider_using_export_type_0_as_default:la(1290,1,"_0_resolves_to_a_type_only_declaration_and_must_be_marked_type_only_in_this_file_before_re_exporting_1290","'{0}' resolves to a type-only declaration and must be marked type-only in this file before re-exporting when '{1}' is enabled. Consider using 'export type { {0} as default }'."),_0_resolves_to_a_type_and_must_be_marked_type_only_in_this_file_before_re_exporting_when_1_is_enabled_Consider_using_import_type_where_0_is_imported:la(1291,1,"_0_resolves_to_a_type_and_must_be_marked_type_only_in_this_file_before_re_exporting_when_1_is_enable_1291","'{0}' resolves to a type and must be marked type-only in this file before re-exporting when '{1}' is enabled. Consider using 'import type' where '{0}' is imported."),_0_resolves_to_a_type_and_must_be_marked_type_only_in_this_file_before_re_exporting_when_1_is_enabled_Consider_using_export_type_0_as_default:la(1292,1,"_0_resolves_to_a_type_and_must_be_marked_type_only_in_this_file_before_re_exporting_when_1_is_enable_1292","'{0}' resolves to a type and must be marked type-only in this file before re-exporting when '{1}' is enabled. Consider using 'export type { {0} as default }'."),ECMAScript_module_syntax_is_not_allowed_in_a_CommonJS_module_when_module_is_set_to_preserve:la(1293,1,"ECMAScript_module_syntax_is_not_allowed_in_a_CommonJS_module_when_module_is_set_to_preserve_1293","ECMAScript module syntax is not allowed in a CommonJS module when 'module' is set to 'preserve'."),This_syntax_is_not_allowed_when_erasableSyntaxOnly_is_enabled:la(1294,1,"This_syntax_is_not_allowed_when_erasableSyntaxOnly_is_enabled_1294","This syntax is not allowed when 'erasableSyntaxOnly' is enabled."),ECMAScript_imports_and_exports_cannot_be_written_in_a_CommonJS_file_under_verbatimModuleSyntax_Adjust_the_type_field_in_the_nearest_package_json_to_make_this_file_an_ECMAScript_module_or_adjust_your_verbatimModuleSyntax_module_and_moduleResolution_settings_in_TypeScript:la(1295,1,"ECMAScript_imports_and_exports_cannot_be_written_in_a_CommonJS_file_under_verbatimModuleSyntax_Adjus_1295","ECMAScript imports and exports cannot be written in a CommonJS file under 'verbatimModuleSyntax'. Adjust the 'type' field in the nearest 'package.json' to make this file an ECMAScript module, or adjust your 'verbatimModuleSyntax', 'module', and 'moduleResolution' settings in TypeScript."),with_statements_are_not_allowed_in_an_async_function_block:la(1300,1,"with_statements_are_not_allowed_in_an_async_function_block_1300","'with' statements are not allowed in an async function block."),await_expressions_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules:la(1308,1,"await_expressions_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules_1308","'await' expressions are only allowed within async functions and at the top levels of modules."),The_current_file_is_a_CommonJS_module_and_cannot_use_await_at_the_top_level:la(1309,1,"The_current_file_is_a_CommonJS_module_and_cannot_use_await_at_the_top_level_1309","The current file is a CommonJS module and cannot use 'await' at the top level."),Did_you_mean_to_use_a_Colon_An_can_only_follow_a_property_name_when_the_containing_object_literal_is_part_of_a_destructuring_pattern:la(1312,1,"Did_you_mean_to_use_a_Colon_An_can_only_follow_a_property_name_when_the_containing_object_literal_is_1312","Did you mean to use a ':'? An '=' can only follow a property name when the containing object literal is part of a destructuring pattern."),The_body_of_an_if_statement_cannot_be_the_empty_statement:la(1313,1,"The_body_of_an_if_statement_cannot_be_the_empty_statement_1313","The body of an 'if' statement cannot be the empty statement."),Global_module_exports_may_only_appear_in_module_files:la(1314,1,"Global_module_exports_may_only_appear_in_module_files_1314","Global module exports may only appear in module files."),Global_module_exports_may_only_appear_in_declaration_files:la(1315,1,"Global_module_exports_may_only_appear_in_declaration_files_1315","Global module exports may only appear in declaration files."),Global_module_exports_may_only_appear_at_top_level:la(1316,1,"Global_module_exports_may_only_appear_at_top_level_1316","Global module exports may only appear at top level."),A_parameter_property_cannot_be_declared_using_a_rest_parameter:la(1317,1,"A_parameter_property_cannot_be_declared_using_a_rest_parameter_1317","A parameter property cannot be declared using a rest parameter."),An_abstract_accessor_cannot_have_an_implementation:la(1318,1,"An_abstract_accessor_cannot_have_an_implementation_1318","An abstract accessor cannot have an implementation."),A_default_export_can_only_be_used_in_an_ECMAScript_style_module:la(1319,1,"A_default_export_can_only_be_used_in_an_ECMAScript_style_module_1319","A default export can only be used in an ECMAScript-style module."),Type_of_await_operand_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member:la(1320,1,"Type_of_await_operand_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member_1320","Type of 'await' operand must either be a valid promise or must not contain a callable 'then' member."),Type_of_yield_operand_in_an_async_generator_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member:la(1321,1,"Type_of_yield_operand_in_an_async_generator_must_either_be_a_valid_promise_or_must_not_contain_a_cal_1321","Type of 'yield' operand in an async generator must either be a valid promise or must not contain a callable 'then' member."),Type_of_iterated_elements_of_a_yield_Asterisk_operand_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member:la(1322,1,"Type_of_iterated_elements_of_a_yield_Asterisk_operand_must_either_be_a_valid_promise_or_must_not_con_1322","Type of iterated elements of a 'yield*' operand must either be a valid promise or must not contain a callable 'then' member."),Dynamic_imports_are_only_supported_when_the_module_flag_is_set_to_es2020_es2022_esnext_commonjs_amd_system_umd_node16_node18_node20_or_nodenext:la(1323,1,"Dynamic_imports_are_only_supported_when_the_module_flag_is_set_to_es2020_es2022_esnext_commonjs_amd__1323","Dynamic imports are only supported when the '--module' flag is set to 'es2020', 'es2022', 'esnext', 'commonjs', 'amd', 'system', 'umd', 'node16', 'node18', 'node20', or 'nodenext'."),Dynamic_imports_only_support_a_second_argument_when_the_module_option_is_set_to_esnext_node16_node18_node20_nodenext_or_preserve:la(1324,1,"Dynamic_imports_only_support_a_second_argument_when_the_module_option_is_set_to_esnext_node16_node18_1324","Dynamic imports only support a second argument when the '--module' option is set to 'esnext', 'node16', 'node18', 'node20', 'nodenext', or 'preserve'."),Argument_of_dynamic_import_cannot_be_spread_element:la(1325,1,"Argument_of_dynamic_import_cannot_be_spread_element_1325","Argument of dynamic import cannot be spread element."),This_use_of_import_is_invalid_import_calls_can_be_written_but_they_must_have_parentheses_and_cannot_have_type_arguments:la(1326,1,"This_use_of_import_is_invalid_import_calls_can_be_written_but_they_must_have_parentheses_and_cannot__1326","This use of 'import' is invalid. 'import()' calls can be written, but they must have parentheses and cannot have type arguments."),String_literal_with_double_quotes_expected:la(1327,1,"String_literal_with_double_quotes_expected_1327","String literal with double quotes expected."),Property_value_can_only_be_string_literal_numeric_literal_true_false_null_object_literal_or_array_literal:la(1328,1,"Property_value_can_only_be_string_literal_numeric_literal_true_false_null_object_literal_or_array_li_1328","Property value can only be string literal, numeric literal, 'true', 'false', 'null', object literal or array literal."),_0_accepts_too_few_arguments_to_be_used_as_a_decorator_here_Did_you_mean_to_call_it_first_and_write_0:la(1329,1,"_0_accepts_too_few_arguments_to_be_used_as_a_decorator_here_Did_you_mean_to_call_it_first_and_write__1329","'{0}' accepts too few arguments to be used as a decorator here. Did you mean to call it first and write '@{0}()'?"),A_property_of_an_interface_or_type_literal_whose_type_is_a_unique_symbol_type_must_be_readonly:la(1330,1,"A_property_of_an_interface_or_type_literal_whose_type_is_a_unique_symbol_type_must_be_readonly_1330","A property of an interface or type literal whose type is a 'unique symbol' type must be 'readonly'."),A_property_of_a_class_whose_type_is_a_unique_symbol_type_must_be_both_static_and_readonly:la(1331,1,"A_property_of_a_class_whose_type_is_a_unique_symbol_type_must_be_both_static_and_readonly_1331","A property of a class whose type is a 'unique symbol' type must be both 'static' and 'readonly'."),A_variable_whose_type_is_a_unique_symbol_type_must_be_const:la(1332,1,"A_variable_whose_type_is_a_unique_symbol_type_must_be_const_1332","A variable whose type is a 'unique symbol' type must be 'const'."),unique_symbol_types_may_not_be_used_on_a_variable_declaration_with_a_binding_name:la(1333,1,"unique_symbol_types_may_not_be_used_on_a_variable_declaration_with_a_binding_name_1333","'unique symbol' types may not be used on a variable declaration with a binding name."),unique_symbol_types_are_only_allowed_on_variables_in_a_variable_statement:la(1334,1,"unique_symbol_types_are_only_allowed_on_variables_in_a_variable_statement_1334","'unique symbol' types are only allowed on variables in a variable statement."),unique_symbol_types_are_not_allowed_here:la(1335,1,"unique_symbol_types_are_not_allowed_here_1335","'unique symbol' types are not allowed here."),An_index_signature_parameter_type_cannot_be_a_literal_type_or_generic_type_Consider_using_a_mapped_object_type_instead:la(1337,1,"An_index_signature_parameter_type_cannot_be_a_literal_type_or_generic_type_Consider_using_a_mapped_o_1337","An index signature parameter type cannot be a literal type or generic type. Consider using a mapped object type instead."),infer_declarations_are_only_permitted_in_the_extends_clause_of_a_conditional_type:la(1338,1,"infer_declarations_are_only_permitted_in_the_extends_clause_of_a_conditional_type_1338","'infer' declarations are only permitted in the 'extends' clause of a conditional type."),Module_0_does_not_refer_to_a_value_but_is_used_as_a_value_here:la(1339,1,"Module_0_does_not_refer_to_a_value_but_is_used_as_a_value_here_1339","Module '{0}' does not refer to a value, but is used as a value here."),Module_0_does_not_refer_to_a_type_but_is_used_as_a_type_here_Did_you_mean_typeof_import_0:la(1340,1,"Module_0_does_not_refer_to_a_type_but_is_used_as_a_type_here_Did_you_mean_typeof_import_0_1340","Module '{0}' does not refer to a type, but is used as a type here. Did you mean 'typeof import('{0}')'?"),Class_constructor_may_not_be_an_accessor:la(1341,1,"Class_constructor_may_not_be_an_accessor_1341","Class constructor may not be an accessor."),The_import_meta_meta_property_is_only_allowed_when_the_module_option_is_es2020_es2022_esnext_system_node16_node18_node20_or_nodenext:la(1343,1,"The_import_meta_meta_property_is_only_allowed_when_the_module_option_is_es2020_es2022_esnext_system__1343","The 'import.meta' meta-property is only allowed when the '--module' option is 'es2020', 'es2022', 'esnext', 'system', 'node16', 'node18', 'node20', or 'nodenext'."),A_label_is_not_allowed_here:la(1344,1,"A_label_is_not_allowed_here_1344","'A label is not allowed here."),An_expression_of_type_void_cannot_be_tested_for_truthiness:la(1345,1,"An_expression_of_type_void_cannot_be_tested_for_truthiness_1345","An expression of type 'void' cannot be tested for truthiness."),This_parameter_is_not_allowed_with_use_strict_directive:la(1346,1,"This_parameter_is_not_allowed_with_use_strict_directive_1346","This parameter is not allowed with 'use strict' directive."),use_strict_directive_cannot_be_used_with_non_simple_parameter_list:la(1347,1,"use_strict_directive_cannot_be_used_with_non_simple_parameter_list_1347","'use strict' directive cannot be used with non-simple parameter list."),Non_simple_parameter_declared_here:la(1348,1,"Non_simple_parameter_declared_here_1348","Non-simple parameter declared here."),use_strict_directive_used_here:la(1349,1,"use_strict_directive_used_here_1349","'use strict' directive used here."),Print_the_final_configuration_instead_of_building:la(1350,3,"Print_the_final_configuration_instead_of_building_1350","Print the final configuration instead of building."),An_identifier_or_keyword_cannot_immediately_follow_a_numeric_literal:la(1351,1,"An_identifier_or_keyword_cannot_immediately_follow_a_numeric_literal_1351","An identifier or keyword cannot immediately follow a numeric literal."),A_bigint_literal_cannot_use_exponential_notation:la(1352,1,"A_bigint_literal_cannot_use_exponential_notation_1352","A bigint literal cannot use exponential notation."),A_bigint_literal_must_be_an_integer:la(1353,1,"A_bigint_literal_must_be_an_integer_1353","A bigint literal must be an integer."),readonly_type_modifier_is_only_permitted_on_array_and_tuple_literal_types:la(1354,1,"readonly_type_modifier_is_only_permitted_on_array_and_tuple_literal_types_1354","'readonly' type modifier is only permitted on array and tuple literal types."),A_const_assertions_can_only_be_applied_to_references_to_enum_members_or_string_number_boolean_array_or_object_literals:la(1355,1,"A_const_assertions_can_only_be_applied_to_references_to_enum_members_or_string_number_boolean_array__1355","A 'const' assertions can only be applied to references to enum members, or string, number, boolean, array, or object literals."),Did_you_mean_to_mark_this_function_as_async:la(1356,1,"Did_you_mean_to_mark_this_function_as_async_1356","Did you mean to mark this function as 'async'?"),An_enum_member_name_must_be_followed_by_a_or:la(1357,1,"An_enum_member_name_must_be_followed_by_a_or_1357","An enum member name must be followed by a ',', '=', or '}'."),Tagged_template_expressions_are_not_permitted_in_an_optional_chain:la(1358,1,"Tagged_template_expressions_are_not_permitted_in_an_optional_chain_1358","Tagged template expressions are not permitted in an optional chain."),Identifier_expected_0_is_a_reserved_word_that_cannot_be_used_here:la(1359,1,"Identifier_expected_0_is_a_reserved_word_that_cannot_be_used_here_1359","Identifier expected. '{0}' is a reserved word that cannot be used here."),Type_0_does_not_satisfy_the_expected_type_1:la(1360,1,"Type_0_does_not_satisfy_the_expected_type_1_1360","Type '{0}' does not satisfy the expected type '{1}'."),_0_cannot_be_used_as_a_value_because_it_was_imported_using_import_type:la(1361,1,"_0_cannot_be_used_as_a_value_because_it_was_imported_using_import_type_1361","'{0}' cannot be used as a value because it was imported using 'import type'."),_0_cannot_be_used_as_a_value_because_it_was_exported_using_export_type:la(1362,1,"_0_cannot_be_used_as_a_value_because_it_was_exported_using_export_type_1362","'{0}' cannot be used as a value because it was exported using 'export type'."),A_type_only_import_can_specify_a_default_import_or_named_bindings_but_not_both:la(1363,1,"A_type_only_import_can_specify_a_default_import_or_named_bindings_but_not_both_1363","A type-only import can specify a default import or named bindings, but not both."),Convert_to_type_only_export:la(1364,3,"Convert_to_type_only_export_1364","Convert to type-only export"),Convert_all_re_exported_types_to_type_only_exports:la(1365,3,"Convert_all_re_exported_types_to_type_only_exports_1365","Convert all re-exported types to type-only exports"),Split_into_two_separate_import_declarations:la(1366,3,"Split_into_two_separate_import_declarations_1366","Split into two separate import declarations"),Split_all_invalid_type_only_imports:la(1367,3,"Split_all_invalid_type_only_imports_1367","Split all invalid type-only imports"),Class_constructor_may_not_be_a_generator:la(1368,1,"Class_constructor_may_not_be_a_generator_1368","Class constructor may not be a generator."),Did_you_mean_0:la(1369,3,"Did_you_mean_0_1369","Did you mean '{0}'?"),await_expressions_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_this_file_has_no_imports_or_exports_Consider_adding_an_empty_export_to_make_this_file_a_module:la(1375,1,"await_expressions_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_this_fi_1375","'await' expressions are only allowed at the top level of a file when that file is a module, but this file has no imports or exports. Consider adding an empty 'export {}' to make this file a module."),_0_was_imported_here:la(1376,3,"_0_was_imported_here_1376","'{0}' was imported here."),_0_was_exported_here:la(1377,3,"_0_was_exported_here_1377","'{0}' was exported here."),Top_level_await_expressions_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_node16_node18_node20_nodenext_or_preserve_and_the_target_option_is_set_to_es2017_or_higher:la(1378,1,"Top_level_await_expressions_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_n_1378","Top-level 'await' expressions are only allowed when the 'module' option is set to 'es2022', 'esnext', 'system', 'node16', 'node18', 'node20', 'nodenext', or 'preserve', and the 'target' option is set to 'es2017' or higher."),An_import_alias_cannot_reference_a_declaration_that_was_exported_using_export_type:la(1379,1,"An_import_alias_cannot_reference_a_declaration_that_was_exported_using_export_type_1379","An import alias cannot reference a declaration that was exported using 'export type'."),An_import_alias_cannot_reference_a_declaration_that_was_imported_using_import_type:la(1380,1,"An_import_alias_cannot_reference_a_declaration_that_was_imported_using_import_type_1380","An import alias cannot reference a declaration that was imported using 'import type'."),Unexpected_token_Did_you_mean_or_rbrace:la(1381,1,"Unexpected_token_Did_you_mean_or_rbrace_1381","Unexpected token. Did you mean `{'}'}` or `}`?"),Unexpected_token_Did_you_mean_or_gt:la(1382,1,"Unexpected_token_Did_you_mean_or_gt_1382","Unexpected token. Did you mean `{'>'}` or `>`?"),Function_type_notation_must_be_parenthesized_when_used_in_a_union_type:la(1385,1,"Function_type_notation_must_be_parenthesized_when_used_in_a_union_type_1385","Function type notation must be parenthesized when used in a union type."),Constructor_type_notation_must_be_parenthesized_when_used_in_a_union_type:la(1386,1,"Constructor_type_notation_must_be_parenthesized_when_used_in_a_union_type_1386","Constructor type notation must be parenthesized when used in a union type."),Function_type_notation_must_be_parenthesized_when_used_in_an_intersection_type:la(1387,1,"Function_type_notation_must_be_parenthesized_when_used_in_an_intersection_type_1387","Function type notation must be parenthesized when used in an intersection type."),Constructor_type_notation_must_be_parenthesized_when_used_in_an_intersection_type:la(1388,1,"Constructor_type_notation_must_be_parenthesized_when_used_in_an_intersection_type_1388","Constructor type notation must be parenthesized when used in an intersection type."),_0_is_not_allowed_as_a_variable_declaration_name:la(1389,1,"_0_is_not_allowed_as_a_variable_declaration_name_1389","'{0}' is not allowed as a variable declaration name."),_0_is_not_allowed_as_a_parameter_name:la(1390,1,"_0_is_not_allowed_as_a_parameter_name_1390","'{0}' is not allowed as a parameter name."),An_import_alias_cannot_use_import_type:la(1392,1,"An_import_alias_cannot_use_import_type_1392","An import alias cannot use 'import type'"),Imported_via_0_from_file_1:la(1393,3,"Imported_via_0_from_file_1_1393","Imported via {0} from file '{1}'"),Imported_via_0_from_file_1_with_packageId_2:la(1394,3,"Imported_via_0_from_file_1_with_packageId_2_1394","Imported via {0} from file '{1}' with packageId '{2}'"),Imported_via_0_from_file_1_to_import_importHelpers_as_specified_in_compilerOptions:la(1395,3,"Imported_via_0_from_file_1_to_import_importHelpers_as_specified_in_compilerOptions_1395","Imported via {0} from file '{1}' to import 'importHelpers' as specified in compilerOptions"),Imported_via_0_from_file_1_with_packageId_2_to_import_importHelpers_as_specified_in_compilerOptions:la(1396,3,"Imported_via_0_from_file_1_with_packageId_2_to_import_importHelpers_as_specified_in_compilerOptions_1396","Imported via {0} from file '{1}' with packageId '{2}' to import 'importHelpers' as specified in compilerOptions"),Imported_via_0_from_file_1_to_import_jsx_and_jsxs_factory_functions:la(1397,3,"Imported_via_0_from_file_1_to_import_jsx_and_jsxs_factory_functions_1397","Imported via {0} from file '{1}' to import 'jsx' and 'jsxs' factory functions"),Imported_via_0_from_file_1_with_packageId_2_to_import_jsx_and_jsxs_factory_functions:la(1398,3,"Imported_via_0_from_file_1_with_packageId_2_to_import_jsx_and_jsxs_factory_functions_1398","Imported via {0} from file '{1}' with packageId '{2}' to import 'jsx' and 'jsxs' factory functions"),File_is_included_via_import_here:la(1399,3,"File_is_included_via_import_here_1399","File is included via import here."),Referenced_via_0_from_file_1:la(1400,3,"Referenced_via_0_from_file_1_1400","Referenced via '{0}' from file '{1}'"),File_is_included_via_reference_here:la(1401,3,"File_is_included_via_reference_here_1401","File is included via reference here."),Type_library_referenced_via_0_from_file_1:la(1402,3,"Type_library_referenced_via_0_from_file_1_1402","Type library referenced via '{0}' from file '{1}'"),Type_library_referenced_via_0_from_file_1_with_packageId_2:la(1403,3,"Type_library_referenced_via_0_from_file_1_with_packageId_2_1403","Type library referenced via '{0}' from file '{1}' with packageId '{2}'"),File_is_included_via_type_library_reference_here:la(1404,3,"File_is_included_via_type_library_reference_here_1404","File is included via type library reference here."),Library_referenced_via_0_from_file_1:la(1405,3,"Library_referenced_via_0_from_file_1_1405","Library referenced via '{0}' from file '{1}'"),File_is_included_via_library_reference_here:la(1406,3,"File_is_included_via_library_reference_here_1406","File is included via library reference here."),Matched_by_include_pattern_0_in_1:la(1407,3,"Matched_by_include_pattern_0_in_1_1407","Matched by include pattern '{0}' in '{1}'"),File_is_matched_by_include_pattern_specified_here:la(1408,3,"File_is_matched_by_include_pattern_specified_here_1408","File is matched by include pattern specified here."),Part_of_files_list_in_tsconfig_json:la(1409,3,"Part_of_files_list_in_tsconfig_json_1409","Part of 'files' list in tsconfig.json"),File_is_matched_by_files_list_specified_here:la(1410,3,"File_is_matched_by_files_list_specified_here_1410","File is matched by 'files' list specified here."),Output_from_referenced_project_0_included_because_1_specified:la(1411,3,"Output_from_referenced_project_0_included_because_1_specified_1411","Output from referenced project '{0}' included because '{1}' specified"),Output_from_referenced_project_0_included_because_module_is_specified_as_none:la(1412,3,"Output_from_referenced_project_0_included_because_module_is_specified_as_none_1412","Output from referenced project '{0}' included because '--module' is specified as 'none'"),File_is_output_from_referenced_project_specified_here:la(1413,3,"File_is_output_from_referenced_project_specified_here_1413","File is output from referenced project specified here."),Source_from_referenced_project_0_included_because_1_specified:la(1414,3,"Source_from_referenced_project_0_included_because_1_specified_1414","Source from referenced project '{0}' included because '{1}' specified"),Source_from_referenced_project_0_included_because_module_is_specified_as_none:la(1415,3,"Source_from_referenced_project_0_included_because_module_is_specified_as_none_1415","Source from referenced project '{0}' included because '--module' is specified as 'none'"),File_is_source_from_referenced_project_specified_here:la(1416,3,"File_is_source_from_referenced_project_specified_here_1416","File is source from referenced project specified here."),Entry_point_of_type_library_0_specified_in_compilerOptions:la(1417,3,"Entry_point_of_type_library_0_specified_in_compilerOptions_1417","Entry point of type library '{0}' specified in compilerOptions"),Entry_point_of_type_library_0_specified_in_compilerOptions_with_packageId_1:la(1418,3,"Entry_point_of_type_library_0_specified_in_compilerOptions_with_packageId_1_1418","Entry point of type library '{0}' specified in compilerOptions with packageId '{1}'"),File_is_entry_point_of_type_library_specified_here:la(1419,3,"File_is_entry_point_of_type_library_specified_here_1419","File is entry point of type library specified here."),Entry_point_for_implicit_type_library_0:la(1420,3,"Entry_point_for_implicit_type_library_0_1420","Entry point for implicit type library '{0}'"),Entry_point_for_implicit_type_library_0_with_packageId_1:la(1421,3,"Entry_point_for_implicit_type_library_0_with_packageId_1_1421","Entry point for implicit type library '{0}' with packageId '{1}'"),Library_0_specified_in_compilerOptions:la(1422,3,"Library_0_specified_in_compilerOptions_1422","Library '{0}' specified in compilerOptions"),File_is_library_specified_here:la(1423,3,"File_is_library_specified_here_1423","File is library specified here."),Default_library:la(1424,3,"Default_library_1424","Default library"),Default_library_for_target_0:la(1425,3,"Default_library_for_target_0_1425","Default library for target '{0}'"),File_is_default_library_for_target_specified_here:la(1426,3,"File_is_default_library_for_target_specified_here_1426","File is default library for target specified here."),Root_file_specified_for_compilation:la(1427,3,"Root_file_specified_for_compilation_1427","Root file specified for compilation"),File_is_output_of_project_reference_source_0:la(1428,3,"File_is_output_of_project_reference_source_0_1428","File is output of project reference source '{0}'"),File_redirects_to_file_0:la(1429,3,"File_redirects_to_file_0_1429","File redirects to file '{0}'"),The_file_is_in_the_program_because_Colon:la(1430,3,"The_file_is_in_the_program_because_Colon_1430","The file is in the program because:"),for_await_loops_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_this_file_has_no_imports_or_exports_Consider_adding_an_empty_export_to_make_this_file_a_module:la(1431,1,"for_await_loops_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_this_file_1431","'for await' loops are only allowed at the top level of a file when that file is a module, but this file has no imports or exports. Consider adding an empty 'export {}' to make this file a module."),Top_level_for_await_loops_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_node16_node18_node20_nodenext_or_preserve_and_the_target_option_is_set_to_es2017_or_higher:la(1432,1,"Top_level_for_await_loops_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_nod_1432","Top-level 'for await' loops are only allowed when the 'module' option is set to 'es2022', 'esnext', 'system', 'node16', 'node18', 'node20', 'nodenext', or 'preserve', and the 'target' option is set to 'es2017' or higher."),Neither_decorators_nor_modifiers_may_be_applied_to_this_parameters:la(1433,1,"Neither_decorators_nor_modifiers_may_be_applied_to_this_parameters_1433","Neither decorators nor modifiers may be applied to 'this' parameters."),Unexpected_keyword_or_identifier:la(1434,1,"Unexpected_keyword_or_identifier_1434","Unexpected keyword or identifier."),Unknown_keyword_or_identifier_Did_you_mean_0:la(1435,1,"Unknown_keyword_or_identifier_Did_you_mean_0_1435","Unknown keyword or identifier. Did you mean '{0}'?"),Decorators_must_precede_the_name_and_all_keywords_of_property_declarations:la(1436,1,"Decorators_must_precede_the_name_and_all_keywords_of_property_declarations_1436","Decorators must precede the name and all keywords of property declarations."),Namespace_must_be_given_a_name:la(1437,1,"Namespace_must_be_given_a_name_1437","Namespace must be given a name."),Interface_must_be_given_a_name:la(1438,1,"Interface_must_be_given_a_name_1438","Interface must be given a name."),Type_alias_must_be_given_a_name:la(1439,1,"Type_alias_must_be_given_a_name_1439","Type alias must be given a name."),Variable_declaration_not_allowed_at_this_location:la(1440,1,"Variable_declaration_not_allowed_at_this_location_1440","Variable declaration not allowed at this location."),Cannot_start_a_function_call_in_a_type_annotation:la(1441,1,"Cannot_start_a_function_call_in_a_type_annotation_1441","Cannot start a function call in a type annotation."),Expected_for_property_initializer:la(1442,1,"Expected_for_property_initializer_1442","Expected '=' for property initializer."),Module_declaration_names_may_only_use_or_quoted_strings:la(1443,1,"Module_declaration_names_may_only_use_or_quoted_strings_1443","Module declaration names may only use ' or \" quoted strings."),_0_resolves_to_a_type_only_declaration_and_must_be_re_exported_using_a_type_only_re_export_when_1_is_enabled:la(1448,1,"_0_resolves_to_a_type_only_declaration_and_must_be_re_exported_using_a_type_only_re_export_when_1_is_1448","'{0}' resolves to a type-only declaration and must be re-exported using a type-only re-export when '{1}' is enabled."),Preserve_unused_imported_values_in_the_JavaScript_output_that_would_otherwise_be_removed:la(1449,3,"Preserve_unused_imported_values_in_the_JavaScript_output_that_would_otherwise_be_removed_1449","Preserve unused imported values in the JavaScript output that would otherwise be removed."),Dynamic_imports_can_only_accept_a_module_specifier_and_an_optional_set_of_attributes_as_arguments:la(1450,3,"Dynamic_imports_can_only_accept_a_module_specifier_and_an_optional_set_of_attributes_as_arguments_1450","Dynamic imports can only accept a module specifier and an optional set of attributes as arguments"),Private_identifiers_are_only_allowed_in_class_bodies_and_may_only_be_used_as_part_of_a_class_member_declaration_property_access_or_on_the_left_hand_side_of_an_in_expression:la(1451,1,"Private_identifiers_are_only_allowed_in_class_bodies_and_may_only_be_used_as_part_of_a_class_member__1451","Private identifiers are only allowed in class bodies and may only be used as part of a class member declaration, property access, or on the left-hand-side of an 'in' expression"),resolution_mode_should_be_either_require_or_import:la(1453,1,"resolution_mode_should_be_either_require_or_import_1453","`resolution-mode` should be either `require` or `import`."),resolution_mode_can_only_be_set_for_type_only_imports:la(1454,1,"resolution_mode_can_only_be_set_for_type_only_imports_1454","`resolution-mode` can only be set for type-only imports."),resolution_mode_is_the_only_valid_key_for_type_import_assertions:la(1455,1,"resolution_mode_is_the_only_valid_key_for_type_import_assertions_1455","`resolution-mode` is the only valid key for type import assertions."),Type_import_assertions_should_have_exactly_one_key_resolution_mode_with_value_import_or_require:la(1456,1,"Type_import_assertions_should_have_exactly_one_key_resolution_mode_with_value_import_or_require_1456","Type import assertions should have exactly one key - `resolution-mode` - with value `import` or `require`."),Matched_by_default_include_pattern_Asterisk_Asterisk_Slash_Asterisk:la(1457,3,"Matched_by_default_include_pattern_Asterisk_Asterisk_Slash_Asterisk_1457","Matched by default include pattern '**/*'"),File_is_ECMAScript_module_because_0_has_field_type_with_value_module:la(1458,3,"File_is_ECMAScript_module_because_0_has_field_type_with_value_module_1458",'File is ECMAScript module because \'{0}\' has field "type" with value "module"'),File_is_CommonJS_module_because_0_has_field_type_whose_value_is_not_module:la(1459,3,"File_is_CommonJS_module_because_0_has_field_type_whose_value_is_not_module_1459",'File is CommonJS module because \'{0}\' has field "type" whose value is not "module"'),File_is_CommonJS_module_because_0_does_not_have_field_type:la(1460,3,"File_is_CommonJS_module_because_0_does_not_have_field_type_1460","File is CommonJS module because '{0}' does not have field \"type\""),File_is_CommonJS_module_because_package_json_was_not_found:la(1461,3,"File_is_CommonJS_module_because_package_json_was_not_found_1461","File is CommonJS module because 'package.json' was not found"),resolution_mode_is_the_only_valid_key_for_type_import_attributes:la(1463,1,"resolution_mode_is_the_only_valid_key_for_type_import_attributes_1463","'resolution-mode' is the only valid key for type import attributes."),Type_import_attributes_should_have_exactly_one_key_resolution_mode_with_value_import_or_require:la(1464,1,"Type_import_attributes_should_have_exactly_one_key_resolution_mode_with_value_import_or_require_1464","Type import attributes should have exactly one key - 'resolution-mode' - with value 'import' or 'require'."),The_import_meta_meta_property_is_not_allowed_in_files_which_will_build_into_CommonJS_output:la(1470,1,"The_import_meta_meta_property_is_not_allowed_in_files_which_will_build_into_CommonJS_output_1470","The 'import.meta' meta-property is not allowed in files which will build into CommonJS output."),Module_0_cannot_be_imported_using_this_construct_The_specifier_only_resolves_to_an_ES_module_which_cannot_be_imported_with_require_Use_an_ECMAScript_import_instead:la(1471,1,"Module_0_cannot_be_imported_using_this_construct_The_specifier_only_resolves_to_an_ES_module_which_c_1471","Module '{0}' cannot be imported using this construct. The specifier only resolves to an ES module, which cannot be imported with 'require'. Use an ECMAScript import instead."),catch_or_finally_expected:la(1472,1,"catch_or_finally_expected_1472","'catch' or 'finally' expected."),An_import_declaration_can_only_be_used_at_the_top_level_of_a_module:la(1473,1,"An_import_declaration_can_only_be_used_at_the_top_level_of_a_module_1473","An import declaration can only be used at the top level of a module."),An_export_declaration_can_only_be_used_at_the_top_level_of_a_module:la(1474,1,"An_export_declaration_can_only_be_used_at_the_top_level_of_a_module_1474","An export declaration can only be used at the top level of a module."),Control_what_method_is_used_to_detect_module_format_JS_files:la(1475,3,"Control_what_method_is_used_to_detect_module_format_JS_files_1475","Control what method is used to detect module-format JS files."),auto_Colon_Treat_files_with_imports_exports_import_meta_jsx_with_jsx_Colon_react_jsx_or_esm_format_with_module_Colon_node16_as_modules:la(1476,3,"auto_Colon_Treat_files_with_imports_exports_import_meta_jsx_with_jsx_Colon_react_jsx_or_esm_format_w_1476",'"auto": Treat files with imports, exports, import.meta, jsx (with jsx: react-jsx), or esm format (with module: node16+) as modules.'),An_instantiation_expression_cannot_be_followed_by_a_property_access:la(1477,1,"An_instantiation_expression_cannot_be_followed_by_a_property_access_1477","An instantiation expression cannot be followed by a property access."),Identifier_or_string_literal_expected:la(1478,1,"Identifier_or_string_literal_expected_1478","Identifier or string literal expected."),The_current_file_is_a_CommonJS_module_whose_imports_will_produce_require_calls_however_the_referenced_file_is_an_ECMAScript_module_and_cannot_be_imported_with_require_Consider_writing_a_dynamic_import_0_call_instead:la(1479,1,"The_current_file_is_a_CommonJS_module_whose_imports_will_produce_require_calls_however_the_reference_1479","The current file is a CommonJS module whose imports will produce 'require' calls; however, the referenced file is an ECMAScript module and cannot be imported with 'require'. Consider writing a dynamic 'import(\"{0}\")' call instead."),To_convert_this_file_to_an_ECMAScript_module_change_its_file_extension_to_0_or_create_a_local_package_json_file_with_type_Colon_module:la(1480,3,"To_convert_this_file_to_an_ECMAScript_module_change_its_file_extension_to_0_or_create_a_local_packag_1480",'To convert this file to an ECMAScript module, change its file extension to \'{0}\' or create a local package.json file with `{ "type": "module" }`.'),To_convert_this_file_to_an_ECMAScript_module_change_its_file_extension_to_0_or_add_the_field_type_Colon_module_to_1:la(1481,3,"To_convert_this_file_to_an_ECMAScript_module_change_its_file_extension_to_0_or_add_the_field_type_Co_1481","To convert this file to an ECMAScript module, change its file extension to '{0}', or add the field `\"type\": \"module\"` to '{1}'."),To_convert_this_file_to_an_ECMAScript_module_add_the_field_type_Colon_module_to_0:la(1482,3,"To_convert_this_file_to_an_ECMAScript_module_add_the_field_type_Colon_module_to_0_1482",'To convert this file to an ECMAScript module, add the field `"type": "module"` to \'{0}\'.'),To_convert_this_file_to_an_ECMAScript_module_create_a_local_package_json_file_with_type_Colon_module:la(1483,3,"To_convert_this_file_to_an_ECMAScript_module_create_a_local_package_json_file_with_type_Colon_module_1483",'To convert this file to an ECMAScript module, create a local package.json file with `{ "type": "module" }`.'),_0_is_a_type_and_must_be_imported_using_a_type_only_import_when_verbatimModuleSyntax_is_enabled:la(1484,1,"_0_is_a_type_and_must_be_imported_using_a_type_only_import_when_verbatimModuleSyntax_is_enabled_1484","'{0}' is a type and must be imported using a type-only import when 'verbatimModuleSyntax' is enabled."),_0_resolves_to_a_type_only_declaration_and_must_be_imported_using_a_type_only_import_when_verbatimModuleSyntax_is_enabled:la(1485,1,"_0_resolves_to_a_type_only_declaration_and_must_be_imported_using_a_type_only_import_when_verbatimMo_1485","'{0}' resolves to a type-only declaration and must be imported using a type-only import when 'verbatimModuleSyntax' is enabled."),Decorator_used_before_export_here:la(1486,1,"Decorator_used_before_export_here_1486","Decorator used before 'export' here."),Octal_escape_sequences_are_not_allowed_Use_the_syntax_0:la(1487,1,"Octal_escape_sequences_are_not_allowed_Use_the_syntax_0_1487","Octal escape sequences are not allowed. Use the syntax '{0}'."),Escape_sequence_0_is_not_allowed:la(1488,1,"Escape_sequence_0_is_not_allowed_1488","Escape sequence '{0}' is not allowed."),Decimals_with_leading_zeros_are_not_allowed:la(1489,1,"Decimals_with_leading_zeros_are_not_allowed_1489","Decimals with leading zeros are not allowed."),File_appears_to_be_binary:la(1490,1,"File_appears_to_be_binary_1490","File appears to be binary."),_0_modifier_cannot_appear_on_a_using_declaration:la(1491,1,"_0_modifier_cannot_appear_on_a_using_declaration_1491","'{0}' modifier cannot appear on a 'using' declaration."),_0_declarations_may_not_have_binding_patterns:la(1492,1,"_0_declarations_may_not_have_binding_patterns_1492","'{0}' declarations may not have binding patterns."),The_left_hand_side_of_a_for_in_statement_cannot_be_a_using_declaration:la(1493,1,"The_left_hand_side_of_a_for_in_statement_cannot_be_a_using_declaration_1493","The left-hand side of a 'for...in' statement cannot be a 'using' declaration."),The_left_hand_side_of_a_for_in_statement_cannot_be_an_await_using_declaration:la(1494,1,"The_left_hand_side_of_a_for_in_statement_cannot_be_an_await_using_declaration_1494","The left-hand side of a 'for...in' statement cannot be an 'await using' declaration."),_0_modifier_cannot_appear_on_an_await_using_declaration:la(1495,1,"_0_modifier_cannot_appear_on_an_await_using_declaration_1495","'{0}' modifier cannot appear on an 'await using' declaration."),Identifier_string_literal_or_number_literal_expected:la(1496,1,"Identifier_string_literal_or_number_literal_expected_1496","Identifier, string literal, or number literal expected."),Expression_must_be_enclosed_in_parentheses_to_be_used_as_a_decorator:la(1497,1,"Expression_must_be_enclosed_in_parentheses_to_be_used_as_a_decorator_1497","Expression must be enclosed in parentheses to be used as a decorator."),Invalid_syntax_in_decorator:la(1498,1,"Invalid_syntax_in_decorator_1498","Invalid syntax in decorator."),Unknown_regular_expression_flag:la(1499,1,"Unknown_regular_expression_flag_1499","Unknown regular expression flag."),Duplicate_regular_expression_flag:la(1500,1,"Duplicate_regular_expression_flag_1500","Duplicate regular expression flag."),This_regular_expression_flag_is_only_available_when_targeting_0_or_later:la(1501,1,"This_regular_expression_flag_is_only_available_when_targeting_0_or_later_1501","This regular expression flag is only available when targeting '{0}' or later."),The_Unicode_u_flag_and_the_Unicode_Sets_v_flag_cannot_be_set_simultaneously:la(1502,1,"The_Unicode_u_flag_and_the_Unicode_Sets_v_flag_cannot_be_set_simultaneously_1502","The Unicode (u) flag and the Unicode Sets (v) flag cannot be set simultaneously."),Named_capturing_groups_are_only_available_when_targeting_ES2018_or_later:la(1503,1,"Named_capturing_groups_are_only_available_when_targeting_ES2018_or_later_1503","Named capturing groups are only available when targeting 'ES2018' or later."),Subpattern_flags_must_be_present_when_there_is_a_minus_sign:la(1504,1,"Subpattern_flags_must_be_present_when_there_is_a_minus_sign_1504","Subpattern flags must be present when there is a minus sign."),Incomplete_quantifier_Digit_expected:la(1505,1,"Incomplete_quantifier_Digit_expected_1505","Incomplete quantifier. Digit expected."),Numbers_out_of_order_in_quantifier:la(1506,1,"Numbers_out_of_order_in_quantifier_1506","Numbers out of order in quantifier."),There_is_nothing_available_for_repetition:la(1507,1,"There_is_nothing_available_for_repetition_1507","There is nothing available for repetition."),Unexpected_0_Did_you_mean_to_escape_it_with_backslash:la(1508,1,"Unexpected_0_Did_you_mean_to_escape_it_with_backslash_1508","Unexpected '{0}'. Did you mean to escape it with backslash?"),This_regular_expression_flag_cannot_be_toggled_within_a_subpattern:la(1509,1,"This_regular_expression_flag_cannot_be_toggled_within_a_subpattern_1509","This regular expression flag cannot be toggled within a subpattern."),k_must_be_followed_by_a_capturing_group_name_enclosed_in_angle_brackets:la(1510,1,"k_must_be_followed_by_a_capturing_group_name_enclosed_in_angle_brackets_1510","'\\k' must be followed by a capturing group name enclosed in angle brackets."),q_is_only_available_inside_character_class:la(1511,1,"q_is_only_available_inside_character_class_1511","'\\q' is only available inside character class."),c_must_be_followed_by_an_ASCII_letter:la(1512,1,"c_must_be_followed_by_an_ASCII_letter_1512","'\\c' must be followed by an ASCII letter."),Undetermined_character_escape:la(1513,1,"Undetermined_character_escape_1513","Undetermined character escape."),Expected_a_capturing_group_name:la(1514,1,"Expected_a_capturing_group_name_1514","Expected a capturing group name."),Named_capturing_groups_with_the_same_name_must_be_mutually_exclusive_to_each_other:la(1515,1,"Named_capturing_groups_with_the_same_name_must_be_mutually_exclusive_to_each_other_1515","Named capturing groups with the same name must be mutually exclusive to each other."),A_character_class_range_must_not_be_bounded_by_another_character_class:la(1516,1,"A_character_class_range_must_not_be_bounded_by_another_character_class_1516","A character class range must not be bounded by another character class."),Range_out_of_order_in_character_class:la(1517,1,"Range_out_of_order_in_character_class_1517","Range out of order in character class."),Anything_that_would_possibly_match_more_than_a_single_character_is_invalid_inside_a_negated_character_class:la(1518,1,"Anything_that_would_possibly_match_more_than_a_single_character_is_invalid_inside_a_negated_characte_1518","Anything that would possibly match more than a single character is invalid inside a negated character class."),Operators_must_not_be_mixed_within_a_character_class_Wrap_it_in_a_nested_class_instead:la(1519,1,"Operators_must_not_be_mixed_within_a_character_class_Wrap_it_in_a_nested_class_instead_1519","Operators must not be mixed within a character class. Wrap it in a nested class instead."),Expected_a_class_set_operand:la(1520,1,"Expected_a_class_set_operand_1520","Expected a class set operand."),q_must_be_followed_by_string_alternatives_enclosed_in_braces:la(1521,1,"q_must_be_followed_by_string_alternatives_enclosed_in_braces_1521","'\\q' must be followed by string alternatives enclosed in braces."),A_character_class_must_not_contain_a_reserved_double_punctuator_Did_you_mean_to_escape_it_with_backslash:la(1522,1,"A_character_class_must_not_contain_a_reserved_double_punctuator_Did_you_mean_to_escape_it_with_backs_1522","A character class must not contain a reserved double punctuator. Did you mean to escape it with backslash?"),Expected_a_Unicode_property_name:la(1523,1,"Expected_a_Unicode_property_name_1523","Expected a Unicode property name."),Unknown_Unicode_property_name:la(1524,1,"Unknown_Unicode_property_name_1524","Unknown Unicode property name."),Expected_a_Unicode_property_value:la(1525,1,"Expected_a_Unicode_property_value_1525","Expected a Unicode property value."),Unknown_Unicode_property_value:la(1526,1,"Unknown_Unicode_property_value_1526","Unknown Unicode property value."),Expected_a_Unicode_property_name_or_value:la(1527,1,"Expected_a_Unicode_property_name_or_value_1527","Expected a Unicode property name or value."),Any_Unicode_property_that_would_possibly_match_more_than_a_single_character_is_only_available_when_the_Unicode_Sets_v_flag_is_set:la(1528,1,"Any_Unicode_property_that_would_possibly_match_more_than_a_single_character_is_only_available_when_t_1528","Any Unicode property that would possibly match more than a single character is only available when the Unicode Sets (v) flag is set."),Unknown_Unicode_property_name_or_value:la(1529,1,"Unknown_Unicode_property_name_or_value_1529","Unknown Unicode property name or value."),Unicode_property_value_expressions_are_only_available_when_the_Unicode_u_flag_or_the_Unicode_Sets_v_flag_is_set:la(1530,1,"Unicode_property_value_expressions_are_only_available_when_the_Unicode_u_flag_or_the_Unicode_Sets_v__1530","Unicode property value expressions are only available when the Unicode (u) flag or the Unicode Sets (v) flag is set."),_0_must_be_followed_by_a_Unicode_property_value_expression_enclosed_in_braces:la(1531,1,"_0_must_be_followed_by_a_Unicode_property_value_expression_enclosed_in_braces_1531","'\\{0}' must be followed by a Unicode property value expression enclosed in braces."),There_is_no_capturing_group_named_0_in_this_regular_expression:la(1532,1,"There_is_no_capturing_group_named_0_in_this_regular_expression_1532","There is no capturing group named '{0}' in this regular expression."),This_backreference_refers_to_a_group_that_does_not_exist_There_are_only_0_capturing_groups_in_this_regular_expression:la(1533,1,"This_backreference_refers_to_a_group_that_does_not_exist_There_are_only_0_capturing_groups_in_this_r_1533","This backreference refers to a group that does not exist. There are only {0} capturing groups in this regular expression."),This_backreference_refers_to_a_group_that_does_not_exist_There_are_no_capturing_groups_in_this_regular_expression:la(1534,1,"This_backreference_refers_to_a_group_that_does_not_exist_There_are_no_capturing_groups_in_this_regul_1534","This backreference refers to a group that does not exist. There are no capturing groups in this regular expression."),This_character_cannot_be_escaped_in_a_regular_expression:la(1535,1,"This_character_cannot_be_escaped_in_a_regular_expression_1535","This character cannot be escaped in a regular expression."),Octal_escape_sequences_and_backreferences_are_not_allowed_in_a_character_class_If_this_was_intended_as_an_escape_sequence_use_the_syntax_0_instead:la(1536,1,"Octal_escape_sequences_and_backreferences_are_not_allowed_in_a_character_class_If_this_was_intended__1536","Octal escape sequences and backreferences are not allowed in a character class. If this was intended as an escape sequence, use the syntax '{0}' instead."),Decimal_escape_sequences_and_backreferences_are_not_allowed_in_a_character_class:la(1537,1,"Decimal_escape_sequences_and_backreferences_are_not_allowed_in_a_character_class_1537","Decimal escape sequences and backreferences are not allowed in a character class."),Unicode_escape_sequences_are_only_available_when_the_Unicode_u_flag_or_the_Unicode_Sets_v_flag_is_set:la(1538,1,"Unicode_escape_sequences_are_only_available_when_the_Unicode_u_flag_or_the_Unicode_Sets_v_flag_is_se_1538","Unicode escape sequences are only available when the Unicode (u) flag or the Unicode Sets (v) flag is set."),A_bigint_literal_cannot_be_used_as_a_property_name:la(1539,1,"A_bigint_literal_cannot_be_used_as_a_property_name_1539","A 'bigint' literal cannot be used as a property name."),A_namespace_declaration_should_not_be_declared_using_the_module_keyword_Please_use_the_namespace_keyword_instead:la(1540,2,"A_namespace_declaration_should_not_be_declared_using_the_module_keyword_Please_use_the_namespace_key_1540","A 'namespace' declaration should not be declared using the 'module' keyword. Please use the 'namespace' keyword instead.",void 0,void 0,!0),Type_only_import_of_an_ECMAScript_module_from_a_CommonJS_module_must_have_a_resolution_mode_attribute:la(1541,1,"Type_only_import_of_an_ECMAScript_module_from_a_CommonJS_module_must_have_a_resolution_mode_attribut_1541","Type-only import of an ECMAScript module from a CommonJS module must have a 'resolution-mode' attribute."),Type_import_of_an_ECMAScript_module_from_a_CommonJS_module_must_have_a_resolution_mode_attribute:la(1542,1,"Type_import_of_an_ECMAScript_module_from_a_CommonJS_module_must_have_a_resolution_mode_attribute_1542","Type import of an ECMAScript module from a CommonJS module must have a 'resolution-mode' attribute."),Importing_a_JSON_file_into_an_ECMAScript_module_requires_a_type_Colon_json_import_attribute_when_module_is_set_to_0:la(1543,1,"Importing_a_JSON_file_into_an_ECMAScript_module_requires_a_type_Colon_json_import_attribute_when_mod_1543","Importing a JSON file into an ECMAScript module requires a 'type: \"json\"' import attribute when 'module' is set to '{0}'."),Named_imports_from_a_JSON_file_into_an_ECMAScript_module_are_not_allowed_when_module_is_set_to_0:la(1544,1,"Named_imports_from_a_JSON_file_into_an_ECMAScript_module_are_not_allowed_when_module_is_set_to_0_1544","Named imports from a JSON file into an ECMAScript module are not allowed when 'module' is set to '{0}'."),using_declarations_are_not_allowed_in_ambient_contexts:la(1545,1,"using_declarations_are_not_allowed_in_ambient_contexts_1545","'using' declarations are not allowed in ambient contexts."),await_using_declarations_are_not_allowed_in_ambient_contexts:la(1546,1,"await_using_declarations_are_not_allowed_in_ambient_contexts_1546","'await using' declarations are not allowed in ambient contexts."),The_types_of_0_are_incompatible_between_these_types:la(2200,1,"The_types_of_0_are_incompatible_between_these_types_2200","The types of '{0}' are incompatible between these types."),The_types_returned_by_0_are_incompatible_between_these_types:la(2201,1,"The_types_returned_by_0_are_incompatible_between_these_types_2201","The types returned by '{0}' are incompatible between these types."),Call_signature_return_types_0_and_1_are_incompatible:la(2202,1,"Call_signature_return_types_0_and_1_are_incompatible_2202","Call signature return types '{0}' and '{1}' are incompatible.",void 0,!0),Construct_signature_return_types_0_and_1_are_incompatible:la(2203,1,"Construct_signature_return_types_0_and_1_are_incompatible_2203","Construct signature return types '{0}' and '{1}' are incompatible.",void 0,!0),Call_signatures_with_no_arguments_have_incompatible_return_types_0_and_1:la(2204,1,"Call_signatures_with_no_arguments_have_incompatible_return_types_0_and_1_2204","Call signatures with no arguments have incompatible return types '{0}' and '{1}'.",void 0,!0),Construct_signatures_with_no_arguments_have_incompatible_return_types_0_and_1:la(2205,1,"Construct_signatures_with_no_arguments_have_incompatible_return_types_0_and_1_2205","Construct signatures with no arguments have incompatible return types '{0}' and '{1}'.",void 0,!0),The_type_modifier_cannot_be_used_on_a_named_import_when_import_type_is_used_on_its_import_statement:la(2206,1,"The_type_modifier_cannot_be_used_on_a_named_import_when_import_type_is_used_on_its_import_statement_2206","The 'type' modifier cannot be used on a named import when 'import type' is used on its import statement."),The_type_modifier_cannot_be_used_on_a_named_export_when_export_type_is_used_on_its_export_statement:la(2207,1,"The_type_modifier_cannot_be_used_on_a_named_export_when_export_type_is_used_on_its_export_statement_2207","The 'type' modifier cannot be used on a named export when 'export type' is used on its export statement."),This_type_parameter_might_need_an_extends_0_constraint:la(2208,1,"This_type_parameter_might_need_an_extends_0_constraint_2208","This type parameter might need an `extends {0}` constraint."),The_project_root_is_ambiguous_but_is_required_to_resolve_export_map_entry_0_in_file_1_Supply_the_rootDir_compiler_option_to_disambiguate:la(2209,1,"The_project_root_is_ambiguous_but_is_required_to_resolve_export_map_entry_0_in_file_1_Supply_the_roo_2209","The project root is ambiguous, but is required to resolve export map entry '{0}' in file '{1}'. Supply the `rootDir` compiler option to disambiguate."),The_project_root_is_ambiguous_but_is_required_to_resolve_import_map_entry_0_in_file_1_Supply_the_rootDir_compiler_option_to_disambiguate:la(2210,1,"The_project_root_is_ambiguous_but_is_required_to_resolve_import_map_entry_0_in_file_1_Supply_the_roo_2210","The project root is ambiguous, but is required to resolve import map entry '{0}' in file '{1}'. Supply the `rootDir` compiler option to disambiguate."),Add_extends_constraint:la(2211,3,"Add_extends_constraint_2211","Add `extends` constraint."),Add_extends_constraint_to_all_type_parameters:la(2212,3,"Add_extends_constraint_to_all_type_parameters_2212","Add `extends` constraint to all type parameters"),Duplicate_identifier_0:la(2300,1,"Duplicate_identifier_0_2300","Duplicate identifier '{0}'."),Initializer_of_instance_member_variable_0_cannot_reference_identifier_1_declared_in_the_constructor:la(2301,1,"Initializer_of_instance_member_variable_0_cannot_reference_identifier_1_declared_in_the_constructor_2301","Initializer of instance member variable '{0}' cannot reference identifier '{1}' declared in the constructor."),Static_members_cannot_reference_class_type_parameters:la(2302,1,"Static_members_cannot_reference_class_type_parameters_2302","Static members cannot reference class type parameters."),Circular_definition_of_import_alias_0:la(2303,1,"Circular_definition_of_import_alias_0_2303","Circular definition of import alias '{0}'."),Cannot_find_name_0:la(2304,1,"Cannot_find_name_0_2304","Cannot find name '{0}'."),Module_0_has_no_exported_member_1:la(2305,1,"Module_0_has_no_exported_member_1_2305","Module '{0}' has no exported member '{1}'."),File_0_is_not_a_module:la(2306,1,"File_0_is_not_a_module_2306","File '{0}' is not a module."),Cannot_find_module_0_or_its_corresponding_type_declarations:la(2307,1,"Cannot_find_module_0_or_its_corresponding_type_declarations_2307","Cannot find module '{0}' or its corresponding type declarations."),Module_0_has_already_exported_a_member_named_1_Consider_explicitly_re_exporting_to_resolve_the_ambiguity:la(2308,1,"Module_0_has_already_exported_a_member_named_1_Consider_explicitly_re_exporting_to_resolve_the_ambig_2308","Module {0} has already exported a member named '{1}'. Consider explicitly re-exporting to resolve the ambiguity."),An_export_assignment_cannot_be_used_in_a_module_with_other_exported_elements:la(2309,1,"An_export_assignment_cannot_be_used_in_a_module_with_other_exported_elements_2309","An export assignment cannot be used in a module with other exported elements."),Type_0_recursively_references_itself_as_a_base_type:la(2310,1,"Type_0_recursively_references_itself_as_a_base_type_2310","Type '{0}' recursively references itself as a base type."),Cannot_find_name_0_Did_you_mean_to_write_this_in_an_async_function:la(2311,1,"Cannot_find_name_0_Did_you_mean_to_write_this_in_an_async_function_2311","Cannot find name '{0}'. Did you mean to write this in an async function?"),An_interface_can_only_extend_an_object_type_or_intersection_of_object_types_with_statically_known_members:la(2312,1,"An_interface_can_only_extend_an_object_type_or_intersection_of_object_types_with_statically_known_me_2312","An interface can only extend an object type or intersection of object types with statically known members."),Type_parameter_0_has_a_circular_constraint:la(2313,1,"Type_parameter_0_has_a_circular_constraint_2313","Type parameter '{0}' has a circular constraint."),Generic_type_0_requires_1_type_argument_s:la(2314,1,"Generic_type_0_requires_1_type_argument_s_2314","Generic type '{0}' requires {1} type argument(s)."),Type_0_is_not_generic:la(2315,1,"Type_0_is_not_generic_2315","Type '{0}' is not generic."),Global_type_0_must_be_a_class_or_interface_type:la(2316,1,"Global_type_0_must_be_a_class_or_interface_type_2316","Global type '{0}' must be a class or interface type."),Global_type_0_must_have_1_type_parameter_s:la(2317,1,"Global_type_0_must_have_1_type_parameter_s_2317","Global type '{0}' must have {1} type parameter(s)."),Cannot_find_global_type_0:la(2318,1,"Cannot_find_global_type_0_2318","Cannot find global type '{0}'."),Named_property_0_of_types_1_and_2_are_not_identical:la(2319,1,"Named_property_0_of_types_1_and_2_are_not_identical_2319","Named property '{0}' of types '{1}' and '{2}' are not identical."),Interface_0_cannot_simultaneously_extend_types_1_and_2:la(2320,1,"Interface_0_cannot_simultaneously_extend_types_1_and_2_2320","Interface '{0}' cannot simultaneously extend types '{1}' and '{2}'."),Excessive_stack_depth_comparing_types_0_and_1:la(2321,1,"Excessive_stack_depth_comparing_types_0_and_1_2321","Excessive stack depth comparing types '{0}' and '{1}'."),Type_0_is_not_assignable_to_type_1:la(2322,1,"Type_0_is_not_assignable_to_type_1_2322","Type '{0}' is not assignable to type '{1}'."),Cannot_redeclare_exported_variable_0:la(2323,1,"Cannot_redeclare_exported_variable_0_2323","Cannot redeclare exported variable '{0}'."),Property_0_is_missing_in_type_1:la(2324,1,"Property_0_is_missing_in_type_1_2324","Property '{0}' is missing in type '{1}'."),Property_0_is_private_in_type_1_but_not_in_type_2:la(2325,1,"Property_0_is_private_in_type_1_but_not_in_type_2_2325","Property '{0}' is private in type '{1}' but not in type '{2}'."),Types_of_property_0_are_incompatible:la(2326,1,"Types_of_property_0_are_incompatible_2326","Types of property '{0}' are incompatible."),Property_0_is_optional_in_type_1_but_required_in_type_2:la(2327,1,"Property_0_is_optional_in_type_1_but_required_in_type_2_2327","Property '{0}' is optional in type '{1}' but required in type '{2}'."),Types_of_parameters_0_and_1_are_incompatible:la(2328,1,"Types_of_parameters_0_and_1_are_incompatible_2328","Types of parameters '{0}' and '{1}' are incompatible."),Index_signature_for_type_0_is_missing_in_type_1:la(2329,1,"Index_signature_for_type_0_is_missing_in_type_1_2329","Index signature for type '{0}' is missing in type '{1}'."),_0_and_1_index_signatures_are_incompatible:la(2330,1,"_0_and_1_index_signatures_are_incompatible_2330","'{0}' and '{1}' index signatures are incompatible."),this_cannot_be_referenced_in_a_module_or_namespace_body:la(2331,1,"this_cannot_be_referenced_in_a_module_or_namespace_body_2331","'this' cannot be referenced in a module or namespace body."),this_cannot_be_referenced_in_current_location:la(2332,1,"this_cannot_be_referenced_in_current_location_2332","'this' cannot be referenced in current location."),this_cannot_be_referenced_in_a_static_property_initializer:la(2334,1,"this_cannot_be_referenced_in_a_static_property_initializer_2334","'this' cannot be referenced in a static property initializer."),super_can_only_be_referenced_in_a_derived_class:la(2335,1,"super_can_only_be_referenced_in_a_derived_class_2335","'super' can only be referenced in a derived class."),super_cannot_be_referenced_in_constructor_arguments:la(2336,1,"super_cannot_be_referenced_in_constructor_arguments_2336","'super' cannot be referenced in constructor arguments."),Super_calls_are_not_permitted_outside_constructors_or_in_nested_functions_inside_constructors:la(2337,1,"Super_calls_are_not_permitted_outside_constructors_or_in_nested_functions_inside_constructors_2337","Super calls are not permitted outside constructors or in nested functions inside constructors."),super_property_access_is_permitted_only_in_a_constructor_member_function_or_member_accessor_of_a_derived_class:la(2338,1,"super_property_access_is_permitted_only_in_a_constructor_member_function_or_member_accessor_of_a_der_2338","'super' property access is permitted only in a constructor, member function, or member accessor of a derived class."),Property_0_does_not_exist_on_type_1:la(2339,1,"Property_0_does_not_exist_on_type_1_2339","Property '{0}' does not exist on type '{1}'."),Only_public_and_protected_methods_of_the_base_class_are_accessible_via_the_super_keyword:la(2340,1,"Only_public_and_protected_methods_of_the_base_class_are_accessible_via_the_super_keyword_2340","Only public and protected methods of the base class are accessible via the 'super' keyword."),Property_0_is_private_and_only_accessible_within_class_1:la(2341,1,"Property_0_is_private_and_only_accessible_within_class_1_2341","Property '{0}' is private and only accessible within class '{1}'."),This_syntax_requires_an_imported_helper_named_1_which_does_not_exist_in_0_Consider_upgrading_your_version_of_0:la(2343,1,"This_syntax_requires_an_imported_helper_named_1_which_does_not_exist_in_0_Consider_upgrading_your_ve_2343","This syntax requires an imported helper named '{1}' which does not exist in '{0}'. Consider upgrading your version of '{0}'."),Type_0_does_not_satisfy_the_constraint_1:la(2344,1,"Type_0_does_not_satisfy_the_constraint_1_2344","Type '{0}' does not satisfy the constraint '{1}'."),Argument_of_type_0_is_not_assignable_to_parameter_of_type_1:la(2345,1,"Argument_of_type_0_is_not_assignable_to_parameter_of_type_1_2345","Argument of type '{0}' is not assignable to parameter of type '{1}'."),Call_target_does_not_contain_any_signatures:la(2346,1,"Call_target_does_not_contain_any_signatures_2346","Call target does not contain any signatures."),Untyped_function_calls_may_not_accept_type_arguments:la(2347,1,"Untyped_function_calls_may_not_accept_type_arguments_2347","Untyped function calls may not accept type arguments."),Value_of_type_0_is_not_callable_Did_you_mean_to_include_new:la(2348,1,"Value_of_type_0_is_not_callable_Did_you_mean_to_include_new_2348","Value of type '{0}' is not callable. Did you mean to include 'new'?"),This_expression_is_not_callable:la(2349,1,"This_expression_is_not_callable_2349","This expression is not callable."),Only_a_void_function_can_be_called_with_the_new_keyword:la(2350,1,"Only_a_void_function_can_be_called_with_the_new_keyword_2350","Only a void function can be called with the 'new' keyword."),This_expression_is_not_constructable:la(2351,1,"This_expression_is_not_constructable_2351","This expression is not constructable."),Conversion_of_type_0_to_type_1_may_be_a_mistake_because_neither_type_sufficiently_overlaps_with_the_other_If_this_was_intentional_convert_the_expression_to_unknown_first:la(2352,1,"Conversion_of_type_0_to_type_1_may_be_a_mistake_because_neither_type_sufficiently_overlaps_with_the__2352","Conversion of type '{0}' to type '{1}' may be a mistake because neither type sufficiently overlaps with the other. If this was intentional, convert the expression to 'unknown' first."),Object_literal_may_only_specify_known_properties_and_0_does_not_exist_in_type_1:la(2353,1,"Object_literal_may_only_specify_known_properties_and_0_does_not_exist_in_type_1_2353","Object literal may only specify known properties, and '{0}' does not exist in type '{1}'."),This_syntax_requires_an_imported_helper_but_module_0_cannot_be_found:la(2354,1,"This_syntax_requires_an_imported_helper_but_module_0_cannot_be_found_2354","This syntax requires an imported helper but module '{0}' cannot be found."),A_function_whose_declared_type_is_neither_undefined_void_nor_any_must_return_a_value:la(2355,1,"A_function_whose_declared_type_is_neither_undefined_void_nor_any_must_return_a_value_2355","A function whose declared type is neither 'undefined', 'void', nor 'any' must return a value."),An_arithmetic_operand_must_be_of_type_any_number_bigint_or_an_enum_type:la(2356,1,"An_arithmetic_operand_must_be_of_type_any_number_bigint_or_an_enum_type_2356","An arithmetic operand must be of type 'any', 'number', 'bigint' or an enum type."),The_operand_of_an_increment_or_decrement_operator_must_be_a_variable_or_a_property_access:la(2357,1,"The_operand_of_an_increment_or_decrement_operator_must_be_a_variable_or_a_property_access_2357","The operand of an increment or decrement operator must be a variable or a property access."),The_left_hand_side_of_an_instanceof_expression_must_be_of_type_any_an_object_type_or_a_type_parameter:la(2358,1,"The_left_hand_side_of_an_instanceof_expression_must_be_of_type_any_an_object_type_or_a_type_paramete_2358","The left-hand side of an 'instanceof' expression must be of type 'any', an object type or a type parameter."),The_right_hand_side_of_an_instanceof_expression_must_be_either_of_type_any_a_class_function_or_other_type_assignable_to_the_Function_interface_type_or_an_object_type_with_a_Symbol_hasInstance_method:la(2359,1,"The_right_hand_side_of_an_instanceof_expression_must_be_either_of_type_any_a_class_function_or_other_2359","The right-hand side of an 'instanceof' expression must be either of type 'any', a class, function, or other type assignable to the 'Function' interface type, or an object type with a 'Symbol.hasInstance' method."),The_left_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type:la(2362,1,"The_left_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type_2362","The left-hand side of an arithmetic operation must be of type 'any', 'number', 'bigint' or an enum type."),The_right_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type:la(2363,1,"The_right_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type_2363","The right-hand side of an arithmetic operation must be of type 'any', 'number', 'bigint' or an enum type."),The_left_hand_side_of_an_assignment_expression_must_be_a_variable_or_a_property_access:la(2364,1,"The_left_hand_side_of_an_assignment_expression_must_be_a_variable_or_a_property_access_2364","The left-hand side of an assignment expression must be a variable or a property access."),Operator_0_cannot_be_applied_to_types_1_and_2:la(2365,1,"Operator_0_cannot_be_applied_to_types_1_and_2_2365","Operator '{0}' cannot be applied to types '{1}' and '{2}'."),Function_lacks_ending_return_statement_and_return_type_does_not_include_undefined:la(2366,1,"Function_lacks_ending_return_statement_and_return_type_does_not_include_undefined_2366","Function lacks ending return statement and return type does not include 'undefined'."),This_comparison_appears_to_be_unintentional_because_the_types_0_and_1_have_no_overlap:la(2367,1,"This_comparison_appears_to_be_unintentional_because_the_types_0_and_1_have_no_overlap_2367","This comparison appears to be unintentional because the types '{0}' and '{1}' have no overlap."),Type_parameter_name_cannot_be_0:la(2368,1,"Type_parameter_name_cannot_be_0_2368","Type parameter name cannot be '{0}'."),A_parameter_property_is_only_allowed_in_a_constructor_implementation:la(2369,1,"A_parameter_property_is_only_allowed_in_a_constructor_implementation_2369","A parameter property is only allowed in a constructor implementation."),A_rest_parameter_must_be_of_an_array_type:la(2370,1,"A_rest_parameter_must_be_of_an_array_type_2370","A rest parameter must be of an array type."),A_parameter_initializer_is_only_allowed_in_a_function_or_constructor_implementation:la(2371,1,"A_parameter_initializer_is_only_allowed_in_a_function_or_constructor_implementation_2371","A parameter initializer is only allowed in a function or constructor implementation."),Parameter_0_cannot_reference_itself:la(2372,1,"Parameter_0_cannot_reference_itself_2372","Parameter '{0}' cannot reference itself."),Parameter_0_cannot_reference_identifier_1_declared_after_it:la(2373,1,"Parameter_0_cannot_reference_identifier_1_declared_after_it_2373","Parameter '{0}' cannot reference identifier '{1}' declared after it."),Duplicate_index_signature_for_type_0:la(2374,1,"Duplicate_index_signature_for_type_0_2374","Duplicate index signature for type '{0}'."),Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_types_of_the_target_s_properties:la(2375,1,"Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefi_2375","Type '{0}' is not assignable to type '{1}' with 'exactOptionalPropertyTypes: true'. Consider adding 'undefined' to the types of the target's properties."),A_super_call_must_be_the_first_statement_in_the_constructor_to_refer_to_super_or_this_when_a_derived_class_contains_initialized_properties_parameter_properties_or_private_identifiers:la(2376,1,"A_super_call_must_be_the_first_statement_in_the_constructor_to_refer_to_super_or_this_when_a_derived_2376","A 'super' call must be the first statement in the constructor to refer to 'super' or 'this' when a derived class contains initialized properties, parameter properties, or private identifiers."),Constructors_for_derived_classes_must_contain_a_super_call:la(2377,1,"Constructors_for_derived_classes_must_contain_a_super_call_2377","Constructors for derived classes must contain a 'super' call."),A_get_accessor_must_return_a_value:la(2378,1,"A_get_accessor_must_return_a_value_2378","A 'get' accessor must return a value."),Argument_of_type_0_is_not_assignable_to_parameter_of_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_types_of_the_target_s_properties:la(2379,1,"Argument_of_type_0_is_not_assignable_to_parameter_of_type_1_with_exactOptionalPropertyTypes_Colon_tr_2379","Argument of type '{0}' is not assignable to parameter of type '{1}' with 'exactOptionalPropertyTypes: true'. Consider adding 'undefined' to the types of the target's properties."),Overload_signatures_must_all_be_exported_or_non_exported:la(2383,1,"Overload_signatures_must_all_be_exported_or_non_exported_2383","Overload signatures must all be exported or non-exported."),Overload_signatures_must_all_be_ambient_or_non_ambient:la(2384,1,"Overload_signatures_must_all_be_ambient_or_non_ambient_2384","Overload signatures must all be ambient or non-ambient."),Overload_signatures_must_all_be_public_private_or_protected:la(2385,1,"Overload_signatures_must_all_be_public_private_or_protected_2385","Overload signatures must all be public, private or protected."),Overload_signatures_must_all_be_optional_or_required:la(2386,1,"Overload_signatures_must_all_be_optional_or_required_2386","Overload signatures must all be optional or required."),Function_overload_must_be_static:la(2387,1,"Function_overload_must_be_static_2387","Function overload must be static."),Function_overload_must_not_be_static:la(2388,1,"Function_overload_must_not_be_static_2388","Function overload must not be static."),Function_implementation_name_must_be_0:la(2389,1,"Function_implementation_name_must_be_0_2389","Function implementation name must be '{0}'."),Constructor_implementation_is_missing:la(2390,1,"Constructor_implementation_is_missing_2390","Constructor implementation is missing."),Function_implementation_is_missing_or_not_immediately_following_the_declaration:la(2391,1,"Function_implementation_is_missing_or_not_immediately_following_the_declaration_2391","Function implementation is missing or not immediately following the declaration."),Multiple_constructor_implementations_are_not_allowed:la(2392,1,"Multiple_constructor_implementations_are_not_allowed_2392","Multiple constructor implementations are not allowed."),Duplicate_function_implementation:la(2393,1,"Duplicate_function_implementation_2393","Duplicate function implementation."),This_overload_signature_is_not_compatible_with_its_implementation_signature:la(2394,1,"This_overload_signature_is_not_compatible_with_its_implementation_signature_2394","This overload signature is not compatible with its implementation signature."),Individual_declarations_in_merged_declaration_0_must_be_all_exported_or_all_local:la(2395,1,"Individual_declarations_in_merged_declaration_0_must_be_all_exported_or_all_local_2395","Individual declarations in merged declaration '{0}' must be all exported or all local."),Duplicate_identifier_arguments_Compiler_uses_arguments_to_initialize_rest_parameters:la(2396,1,"Duplicate_identifier_arguments_Compiler_uses_arguments_to_initialize_rest_parameters_2396","Duplicate identifier 'arguments'. Compiler uses 'arguments' to initialize rest parameters."),Declaration_name_conflicts_with_built_in_global_identifier_0:la(2397,1,"Declaration_name_conflicts_with_built_in_global_identifier_0_2397","Declaration name conflicts with built-in global identifier '{0}'."),constructor_cannot_be_used_as_a_parameter_property_name:la(2398,1,"constructor_cannot_be_used_as_a_parameter_property_name_2398","'constructor' cannot be used as a parameter property name."),Duplicate_identifier_this_Compiler_uses_variable_declaration_this_to_capture_this_reference:la(2399,1,"Duplicate_identifier_this_Compiler_uses_variable_declaration_this_to_capture_this_reference_2399","Duplicate identifier '_this'. Compiler uses variable declaration '_this' to capture 'this' reference."),Expression_resolves_to_variable_declaration_this_that_compiler_uses_to_capture_this_reference:la(2400,1,"Expression_resolves_to_variable_declaration_this_that_compiler_uses_to_capture_this_reference_2400","Expression resolves to variable declaration '_this' that compiler uses to capture 'this' reference."),A_super_call_must_be_a_root_level_statement_within_a_constructor_of_a_derived_class_that_contains_initialized_properties_parameter_properties_or_private_identifiers:la(2401,1,"A_super_call_must_be_a_root_level_statement_within_a_constructor_of_a_derived_class_that_contains_in_2401","A 'super' call must be a root-level statement within a constructor of a derived class that contains initialized properties, parameter properties, or private identifiers."),Expression_resolves_to_super_that_compiler_uses_to_capture_base_class_reference:la(2402,1,"Expression_resolves_to_super_that_compiler_uses_to_capture_base_class_reference_2402","Expression resolves to '_super' that compiler uses to capture base class reference."),Subsequent_variable_declarations_must_have_the_same_type_Variable_0_must_be_of_type_1_but_here_has_type_2:la(2403,1,"Subsequent_variable_declarations_must_have_the_same_type_Variable_0_must_be_of_type_1_but_here_has_t_2403","Subsequent variable declarations must have the same type. Variable '{0}' must be of type '{1}', but here has type '{2}'."),The_left_hand_side_of_a_for_in_statement_cannot_use_a_type_annotation:la(2404,1,"The_left_hand_side_of_a_for_in_statement_cannot_use_a_type_annotation_2404","The left-hand side of a 'for...in' statement cannot use a type annotation."),The_left_hand_side_of_a_for_in_statement_must_be_of_type_string_or_any:la(2405,1,"The_left_hand_side_of_a_for_in_statement_must_be_of_type_string_or_any_2405","The left-hand side of a 'for...in' statement must be of type 'string' or 'any'."),The_left_hand_side_of_a_for_in_statement_must_be_a_variable_or_a_property_access:la(2406,1,"The_left_hand_side_of_a_for_in_statement_must_be_a_variable_or_a_property_access_2406","The left-hand side of a 'for...in' statement must be a variable or a property access."),The_right_hand_side_of_a_for_in_statement_must_be_of_type_any_an_object_type_or_a_type_parameter_but_here_has_type_0:la(2407,1,"The_right_hand_side_of_a_for_in_statement_must_be_of_type_any_an_object_type_or_a_type_parameter_but_2407","The right-hand side of a 'for...in' statement must be of type 'any', an object type or a type parameter, but here has type '{0}'."),Setters_cannot_return_a_value:la(2408,1,"Setters_cannot_return_a_value_2408","Setters cannot return a value."),Return_type_of_constructor_signature_must_be_assignable_to_the_instance_type_of_the_class:la(2409,1,"Return_type_of_constructor_signature_must_be_assignable_to_the_instance_type_of_the_class_2409","Return type of constructor signature must be assignable to the instance type of the class."),The_with_statement_is_not_supported_All_symbols_in_a_with_block_will_have_type_any:la(2410,1,"The_with_statement_is_not_supported_All_symbols_in_a_with_block_will_have_type_any_2410","The 'with' statement is not supported. All symbols in a 'with' block will have type 'any'."),Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_type_of_the_target:la(2412,1,"Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefi_2412","Type '{0}' is not assignable to type '{1}' with 'exactOptionalPropertyTypes: true'. Consider adding 'undefined' to the type of the target."),Property_0_of_type_1_is_not_assignable_to_2_index_type_3:la(2411,1,"Property_0_of_type_1_is_not_assignable_to_2_index_type_3_2411","Property '{0}' of type '{1}' is not assignable to '{2}' index type '{3}'."),_0_index_type_1_is_not_assignable_to_2_index_type_3:la(2413,1,"_0_index_type_1_is_not_assignable_to_2_index_type_3_2413","'{0}' index type '{1}' is not assignable to '{2}' index type '{3}'."),Class_name_cannot_be_0:la(2414,1,"Class_name_cannot_be_0_2414","Class name cannot be '{0}'."),Class_0_incorrectly_extends_base_class_1:la(2415,1,"Class_0_incorrectly_extends_base_class_1_2415","Class '{0}' incorrectly extends base class '{1}'."),Property_0_in_type_1_is_not_assignable_to_the_same_property_in_base_type_2:la(2416,1,"Property_0_in_type_1_is_not_assignable_to_the_same_property_in_base_type_2_2416","Property '{0}' in type '{1}' is not assignable to the same property in base type '{2}'."),Class_static_side_0_incorrectly_extends_base_class_static_side_1:la(2417,1,"Class_static_side_0_incorrectly_extends_base_class_static_side_1_2417","Class static side '{0}' incorrectly extends base class static side '{1}'."),Type_of_computed_property_s_value_is_0_which_is_not_assignable_to_type_1:la(2418,1,"Type_of_computed_property_s_value_is_0_which_is_not_assignable_to_type_1_2418","Type of computed property's value is '{0}', which is not assignable to type '{1}'."),Types_of_construct_signatures_are_incompatible:la(2419,1,"Types_of_construct_signatures_are_incompatible_2419","Types of construct signatures are incompatible."),Class_0_incorrectly_implements_interface_1:la(2420,1,"Class_0_incorrectly_implements_interface_1_2420","Class '{0}' incorrectly implements interface '{1}'."),A_class_can_only_implement_an_object_type_or_intersection_of_object_types_with_statically_known_members:la(2422,1,"A_class_can_only_implement_an_object_type_or_intersection_of_object_types_with_statically_known_memb_2422","A class can only implement an object type or intersection of object types with statically known members."),Class_0_defines_instance_member_function_1_but_extended_class_2_defines_it_as_instance_member_accessor:la(2423,1,"Class_0_defines_instance_member_function_1_but_extended_class_2_defines_it_as_instance_member_access_2423","Class '{0}' defines instance member function '{1}', but extended class '{2}' defines it as instance member accessor."),Class_0_defines_instance_member_property_1_but_extended_class_2_defines_it_as_instance_member_function:la(2425,1,"Class_0_defines_instance_member_property_1_but_extended_class_2_defines_it_as_instance_member_functi_2425","Class '{0}' defines instance member property '{1}', but extended class '{2}' defines it as instance member function."),Class_0_defines_instance_member_accessor_1_but_extended_class_2_defines_it_as_instance_member_function:la(2426,1,"Class_0_defines_instance_member_accessor_1_but_extended_class_2_defines_it_as_instance_member_functi_2426","Class '{0}' defines instance member accessor '{1}', but extended class '{2}' defines it as instance member function."),Interface_name_cannot_be_0:la(2427,1,"Interface_name_cannot_be_0_2427","Interface name cannot be '{0}'."),All_declarations_of_0_must_have_identical_type_parameters:la(2428,1,"All_declarations_of_0_must_have_identical_type_parameters_2428","All declarations of '{0}' must have identical type parameters."),Interface_0_incorrectly_extends_interface_1:la(2430,1,"Interface_0_incorrectly_extends_interface_1_2430","Interface '{0}' incorrectly extends interface '{1}'."),Enum_name_cannot_be_0:la(2431,1,"Enum_name_cannot_be_0_2431","Enum name cannot be '{0}'."),In_an_enum_with_multiple_declarations_only_one_declaration_can_omit_an_initializer_for_its_first_enum_element:la(2432,1,"In_an_enum_with_multiple_declarations_only_one_declaration_can_omit_an_initializer_for_its_first_enu_2432","In an enum with multiple declarations, only one declaration can omit an initializer for its first enum element."),A_namespace_declaration_cannot_be_in_a_different_file_from_a_class_or_function_with_which_it_is_merged:la(2433,1,"A_namespace_declaration_cannot_be_in_a_different_file_from_a_class_or_function_with_which_it_is_merg_2433","A namespace declaration cannot be in a different file from a class or function with which it is merged."),A_namespace_declaration_cannot_be_located_prior_to_a_class_or_function_with_which_it_is_merged:la(2434,1,"A_namespace_declaration_cannot_be_located_prior_to_a_class_or_function_with_which_it_is_merged_2434","A namespace declaration cannot be located prior to a class or function with which it is merged."),Ambient_modules_cannot_be_nested_in_other_modules_or_namespaces:la(2435,1,"Ambient_modules_cannot_be_nested_in_other_modules_or_namespaces_2435","Ambient modules cannot be nested in other modules or namespaces."),Ambient_module_declaration_cannot_specify_relative_module_name:la(2436,1,"Ambient_module_declaration_cannot_specify_relative_module_name_2436","Ambient module declaration cannot specify relative module name."),Module_0_is_hidden_by_a_local_declaration_with_the_same_name:la(2437,1,"Module_0_is_hidden_by_a_local_declaration_with_the_same_name_2437","Module '{0}' is hidden by a local declaration with the same name."),Import_name_cannot_be_0:la(2438,1,"Import_name_cannot_be_0_2438","Import name cannot be '{0}'."),Import_or_export_declaration_in_an_ambient_module_declaration_cannot_reference_module_through_relative_module_name:la(2439,1,"Import_or_export_declaration_in_an_ambient_module_declaration_cannot_reference_module_through_relati_2439","Import or export declaration in an ambient module declaration cannot reference module through relative module name."),Import_declaration_conflicts_with_local_declaration_of_0:la(2440,1,"Import_declaration_conflicts_with_local_declaration_of_0_2440","Import declaration conflicts with local declaration of '{0}'."),Duplicate_identifier_0_Compiler_reserves_name_1_in_top_level_scope_of_a_module:la(2441,1,"Duplicate_identifier_0_Compiler_reserves_name_1_in_top_level_scope_of_a_module_2441","Duplicate identifier '{0}'. Compiler reserves name '{1}' in top level scope of a module."),Types_have_separate_declarations_of_a_private_property_0:la(2442,1,"Types_have_separate_declarations_of_a_private_property_0_2442","Types have separate declarations of a private property '{0}'."),Property_0_is_protected_but_type_1_is_not_a_class_derived_from_2:la(2443,1,"Property_0_is_protected_but_type_1_is_not_a_class_derived_from_2_2443","Property '{0}' is protected but type '{1}' is not a class derived from '{2}'."),Property_0_is_protected_in_type_1_but_public_in_type_2:la(2444,1,"Property_0_is_protected_in_type_1_but_public_in_type_2_2444","Property '{0}' is protected in type '{1}' but public in type '{2}'."),Property_0_is_protected_and_only_accessible_within_class_1_and_its_subclasses:la(2445,1,"Property_0_is_protected_and_only_accessible_within_class_1_and_its_subclasses_2445","Property '{0}' is protected and only accessible within class '{1}' and its subclasses."),Property_0_is_protected_and_only_accessible_through_an_instance_of_class_1_This_is_an_instance_of_class_2:la(2446,1,"Property_0_is_protected_and_only_accessible_through_an_instance_of_class_1_This_is_an_instance_of_cl_2446","Property '{0}' is protected and only accessible through an instance of class '{1}'. This is an instance of class '{2}'."),The_0_operator_is_not_allowed_for_boolean_types_Consider_using_1_instead:la(2447,1,"The_0_operator_is_not_allowed_for_boolean_types_Consider_using_1_instead_2447","The '{0}' operator is not allowed for boolean types. Consider using '{1}' instead."),Block_scoped_variable_0_used_before_its_declaration:la(2448,1,"Block_scoped_variable_0_used_before_its_declaration_2448","Block-scoped variable '{0}' used before its declaration."),Class_0_used_before_its_declaration:la(2449,1,"Class_0_used_before_its_declaration_2449","Class '{0}' used before its declaration."),Enum_0_used_before_its_declaration:la(2450,1,"Enum_0_used_before_its_declaration_2450","Enum '{0}' used before its declaration."),Cannot_redeclare_block_scoped_variable_0:la(2451,1,"Cannot_redeclare_block_scoped_variable_0_2451","Cannot redeclare block-scoped variable '{0}'."),An_enum_member_cannot_have_a_numeric_name:la(2452,1,"An_enum_member_cannot_have_a_numeric_name_2452","An enum member cannot have a numeric name."),Variable_0_is_used_before_being_assigned:la(2454,1,"Variable_0_is_used_before_being_assigned_2454","Variable '{0}' is used before being assigned."),Type_alias_0_circularly_references_itself:la(2456,1,"Type_alias_0_circularly_references_itself_2456","Type alias '{0}' circularly references itself."),Type_alias_name_cannot_be_0:la(2457,1,"Type_alias_name_cannot_be_0_2457","Type alias name cannot be '{0}'."),An_AMD_module_cannot_have_multiple_name_assignments:la(2458,1,"An_AMD_module_cannot_have_multiple_name_assignments_2458","An AMD module cannot have multiple name assignments."),Module_0_declares_1_locally_but_it_is_not_exported:la(2459,1,"Module_0_declares_1_locally_but_it_is_not_exported_2459","Module '{0}' declares '{1}' locally, but it is not exported."),Module_0_declares_1_locally_but_it_is_exported_as_2:la(2460,1,"Module_0_declares_1_locally_but_it_is_exported_as_2_2460","Module '{0}' declares '{1}' locally, but it is exported as '{2}'."),Type_0_is_not_an_array_type:la(2461,1,"Type_0_is_not_an_array_type_2461","Type '{0}' is not an array type."),A_rest_element_must_be_last_in_a_destructuring_pattern:la(2462,1,"A_rest_element_must_be_last_in_a_destructuring_pattern_2462","A rest element must be last in a destructuring pattern."),A_binding_pattern_parameter_cannot_be_optional_in_an_implementation_signature:la(2463,1,"A_binding_pattern_parameter_cannot_be_optional_in_an_implementation_signature_2463","A binding pattern parameter cannot be optional in an implementation signature."),A_computed_property_name_must_be_of_type_string_number_symbol_or_any:la(2464,1,"A_computed_property_name_must_be_of_type_string_number_symbol_or_any_2464","A computed property name must be of type 'string', 'number', 'symbol', or 'any'."),this_cannot_be_referenced_in_a_computed_property_name:la(2465,1,"this_cannot_be_referenced_in_a_computed_property_name_2465","'this' cannot be referenced in a computed property name."),super_cannot_be_referenced_in_a_computed_property_name:la(2466,1,"super_cannot_be_referenced_in_a_computed_property_name_2466","'super' cannot be referenced in a computed property name."),A_computed_property_name_cannot_reference_a_type_parameter_from_its_containing_type:la(2467,1,"A_computed_property_name_cannot_reference_a_type_parameter_from_its_containing_type_2467","A computed property name cannot reference a type parameter from its containing type."),Cannot_find_global_value_0:la(2468,1,"Cannot_find_global_value_0_2468","Cannot find global value '{0}'."),The_0_operator_cannot_be_applied_to_type_symbol:la(2469,1,"The_0_operator_cannot_be_applied_to_type_symbol_2469","The '{0}' operator cannot be applied to type 'symbol'."),Spread_operator_in_new_expressions_is_only_available_when_targeting_ECMAScript_5_and_higher:la(2472,1,"Spread_operator_in_new_expressions_is_only_available_when_targeting_ECMAScript_5_and_higher_2472","Spread operator in 'new' expressions is only available when targeting ECMAScript 5 and higher."),Enum_declarations_must_all_be_const_or_non_const:la(2473,1,"Enum_declarations_must_all_be_const_or_non_const_2473","Enum declarations must all be const or non-const."),const_enum_member_initializers_must_be_constant_expressions:la(2474,1,"const_enum_member_initializers_must_be_constant_expressions_2474","const enum member initializers must be constant expressions."),const_enums_can_only_be_used_in_property_or_index_access_expressions_or_the_right_hand_side_of_an_import_declaration_or_export_assignment_or_type_query:la(2475,1,"const_enums_can_only_be_used_in_property_or_index_access_expressions_or_the_right_hand_side_of_an_im_2475","'const' enums can only be used in property or index access expressions or the right hand side of an import declaration or export assignment or type query."),A_const_enum_member_can_only_be_accessed_using_a_string_literal:la(2476,1,"A_const_enum_member_can_only_be_accessed_using_a_string_literal_2476","A const enum member can only be accessed using a string literal."),const_enum_member_initializer_was_evaluated_to_a_non_finite_value:la(2477,1,"const_enum_member_initializer_was_evaluated_to_a_non_finite_value_2477","'const' enum member initializer was evaluated to a non-finite value."),const_enum_member_initializer_was_evaluated_to_disallowed_value_NaN:la(2478,1,"const_enum_member_initializer_was_evaluated_to_disallowed_value_NaN_2478","'const' enum member initializer was evaluated to disallowed value 'NaN'."),let_is_not_allowed_to_be_used_as_a_name_in_let_or_const_declarations:la(2480,1,"let_is_not_allowed_to_be_used_as_a_name_in_let_or_const_declarations_2480","'let' is not allowed to be used as a name in 'let' or 'const' declarations."),Cannot_initialize_outer_scoped_variable_0_in_the_same_scope_as_block_scoped_declaration_1:la(2481,1,"Cannot_initialize_outer_scoped_variable_0_in_the_same_scope_as_block_scoped_declaration_1_2481","Cannot initialize outer scoped variable '{0}' in the same scope as block scoped declaration '{1}'."),The_left_hand_side_of_a_for_of_statement_cannot_use_a_type_annotation:la(2483,1,"The_left_hand_side_of_a_for_of_statement_cannot_use_a_type_annotation_2483","The left-hand side of a 'for...of' statement cannot use a type annotation."),Export_declaration_conflicts_with_exported_declaration_of_0:la(2484,1,"Export_declaration_conflicts_with_exported_declaration_of_0_2484","Export declaration conflicts with exported declaration of '{0}'."),The_left_hand_side_of_a_for_of_statement_must_be_a_variable_or_a_property_access:la(2487,1,"The_left_hand_side_of_a_for_of_statement_must_be_a_variable_or_a_property_access_2487","The left-hand side of a 'for...of' statement must be a variable or a property access."),Type_0_must_have_a_Symbol_iterator_method_that_returns_an_iterator:la(2488,1,"Type_0_must_have_a_Symbol_iterator_method_that_returns_an_iterator_2488","Type '{0}' must have a '[Symbol.iterator]()' method that returns an iterator."),An_iterator_must_have_a_next_method:la(2489,1,"An_iterator_must_have_a_next_method_2489","An iterator must have a 'next()' method."),The_type_returned_by_the_0_method_of_an_iterator_must_have_a_value_property:la(2490,1,"The_type_returned_by_the_0_method_of_an_iterator_must_have_a_value_property_2490","The type returned by the '{0}()' method of an iterator must have a 'value' property."),The_left_hand_side_of_a_for_in_statement_cannot_be_a_destructuring_pattern:la(2491,1,"The_left_hand_side_of_a_for_in_statement_cannot_be_a_destructuring_pattern_2491","The left-hand side of a 'for...in' statement cannot be a destructuring pattern."),Cannot_redeclare_identifier_0_in_catch_clause:la(2492,1,"Cannot_redeclare_identifier_0_in_catch_clause_2492","Cannot redeclare identifier '{0}' in catch clause."),Tuple_type_0_of_length_1_has_no_element_at_index_2:la(2493,1,"Tuple_type_0_of_length_1_has_no_element_at_index_2_2493","Tuple type '{0}' of length '{1}' has no element at index '{2}'."),Using_a_string_in_a_for_of_statement_is_only_supported_in_ECMAScript_5_and_higher:la(2494,1,"Using_a_string_in_a_for_of_statement_is_only_supported_in_ECMAScript_5_and_higher_2494","Using a string in a 'for...of' statement is only supported in ECMAScript 5 and higher."),Type_0_is_not_an_array_type_or_a_string_type:la(2495,1,"Type_0_is_not_an_array_type_or_a_string_type_2495","Type '{0}' is not an array type or a string type."),The_arguments_object_cannot_be_referenced_in_an_arrow_function_in_ES5_Consider_using_a_standard_function_expression:la(2496,1,"The_arguments_object_cannot_be_referenced_in_an_arrow_function_in_ES5_Consider_using_a_standard_func_2496","The 'arguments' object cannot be referenced in an arrow function in ES5. Consider using a standard function expression."),This_module_can_only_be_referenced_with_ECMAScript_imports_Slashexports_by_turning_on_the_0_flag_and_referencing_its_default_export:la(2497,1,"This_module_can_only_be_referenced_with_ECMAScript_imports_Slashexports_by_turning_on_the_0_flag_and_2497","This module can only be referenced with ECMAScript imports/exports by turning on the '{0}' flag and referencing its default export."),Module_0_uses_export_and_cannot_be_used_with_export_Asterisk:la(2498,1,"Module_0_uses_export_and_cannot_be_used_with_export_Asterisk_2498","Module '{0}' uses 'export =' and cannot be used with 'export *'."),An_interface_can_only_extend_an_identifier_Slashqualified_name_with_optional_type_arguments:la(2499,1,"An_interface_can_only_extend_an_identifier_Slashqualified_name_with_optional_type_arguments_2499","An interface can only extend an identifier/qualified-name with optional type arguments."),A_class_can_only_implement_an_identifier_Slashqualified_name_with_optional_type_arguments:la(2500,1,"A_class_can_only_implement_an_identifier_Slashqualified_name_with_optional_type_arguments_2500","A class can only implement an identifier/qualified-name with optional type arguments."),A_rest_element_cannot_contain_a_binding_pattern:la(2501,1,"A_rest_element_cannot_contain_a_binding_pattern_2501","A rest element cannot contain a binding pattern."),_0_is_referenced_directly_or_indirectly_in_its_own_type_annotation:la(2502,1,"_0_is_referenced_directly_or_indirectly_in_its_own_type_annotation_2502","'{0}' is referenced directly or indirectly in its own type annotation."),Cannot_find_namespace_0:la(2503,1,"Cannot_find_namespace_0_2503","Cannot find namespace '{0}'."),Type_0_must_have_a_Symbol_asyncIterator_method_that_returns_an_async_iterator:la(2504,1,"Type_0_must_have_a_Symbol_asyncIterator_method_that_returns_an_async_iterator_2504","Type '{0}' must have a '[Symbol.asyncIterator]()' method that returns an async iterator."),A_generator_cannot_have_a_void_type_annotation:la(2505,1,"A_generator_cannot_have_a_void_type_annotation_2505","A generator cannot have a 'void' type annotation."),_0_is_referenced_directly_or_indirectly_in_its_own_base_expression:la(2506,1,"_0_is_referenced_directly_or_indirectly_in_its_own_base_expression_2506","'{0}' is referenced directly or indirectly in its own base expression."),Type_0_is_not_a_constructor_function_type:la(2507,1,"Type_0_is_not_a_constructor_function_type_2507","Type '{0}' is not a constructor function type."),No_base_constructor_has_the_specified_number_of_type_arguments:la(2508,1,"No_base_constructor_has_the_specified_number_of_type_arguments_2508","No base constructor has the specified number of type arguments."),Base_constructor_return_type_0_is_not_an_object_type_or_intersection_of_object_types_with_statically_known_members:la(2509,1,"Base_constructor_return_type_0_is_not_an_object_type_or_intersection_of_object_types_with_statically_2509","Base constructor return type '{0}' is not an object type or intersection of object types with statically known members."),Base_constructors_must_all_have_the_same_return_type:la(2510,1,"Base_constructors_must_all_have_the_same_return_type_2510","Base constructors must all have the same return type."),Cannot_create_an_instance_of_an_abstract_class:la(2511,1,"Cannot_create_an_instance_of_an_abstract_class_2511","Cannot create an instance of an abstract class."),Overload_signatures_must_all_be_abstract_or_non_abstract:la(2512,1,"Overload_signatures_must_all_be_abstract_or_non_abstract_2512","Overload signatures must all be abstract or non-abstract."),Abstract_method_0_in_class_1_cannot_be_accessed_via_super_expression:la(2513,1,"Abstract_method_0_in_class_1_cannot_be_accessed_via_super_expression_2513","Abstract method '{0}' in class '{1}' cannot be accessed via super expression."),A_tuple_type_cannot_be_indexed_with_a_negative_value:la(2514,1,"A_tuple_type_cannot_be_indexed_with_a_negative_value_2514","A tuple type cannot be indexed with a negative value."),Non_abstract_class_0_does_not_implement_inherited_abstract_member_1_from_class_2:la(2515,1,"Non_abstract_class_0_does_not_implement_inherited_abstract_member_1_from_class_2_2515","Non-abstract class '{0}' does not implement inherited abstract member {1} from class '{2}'."),All_declarations_of_an_abstract_method_must_be_consecutive:la(2516,1,"All_declarations_of_an_abstract_method_must_be_consecutive_2516","All declarations of an abstract method must be consecutive."),Cannot_assign_an_abstract_constructor_type_to_a_non_abstract_constructor_type:la(2517,1,"Cannot_assign_an_abstract_constructor_type_to_a_non_abstract_constructor_type_2517","Cannot assign an abstract constructor type to a non-abstract constructor type."),A_this_based_type_guard_is_not_compatible_with_a_parameter_based_type_guard:la(2518,1,"A_this_based_type_guard_is_not_compatible_with_a_parameter_based_type_guard_2518","A 'this'-based type guard is not compatible with a parameter-based type guard."),An_async_iterator_must_have_a_next_method:la(2519,1,"An_async_iterator_must_have_a_next_method_2519","An async iterator must have a 'next()' method."),Duplicate_identifier_0_Compiler_uses_declaration_1_to_support_async_functions:la(2520,1,"Duplicate_identifier_0_Compiler_uses_declaration_1_to_support_async_functions_2520","Duplicate identifier '{0}'. Compiler uses declaration '{1}' to support async functions."),The_arguments_object_cannot_be_referenced_in_an_async_function_or_method_in_ES5_Consider_using_a_standard_function_or_method:la(2522,1,"The_arguments_object_cannot_be_referenced_in_an_async_function_or_method_in_ES5_Consider_using_a_sta_2522","The 'arguments' object cannot be referenced in an async function or method in ES5. Consider using a standard function or method."),yield_expressions_cannot_be_used_in_a_parameter_initializer:la(2523,1,"yield_expressions_cannot_be_used_in_a_parameter_initializer_2523","'yield' expressions cannot be used in a parameter initializer."),await_expressions_cannot_be_used_in_a_parameter_initializer:la(2524,1,"await_expressions_cannot_be_used_in_a_parameter_initializer_2524","'await' expressions cannot be used in a parameter initializer."),A_this_type_is_available_only_in_a_non_static_member_of_a_class_or_interface:la(2526,1,"A_this_type_is_available_only_in_a_non_static_member_of_a_class_or_interface_2526","A 'this' type is available only in a non-static member of a class or interface."),The_inferred_type_of_0_references_an_inaccessible_1_type_A_type_annotation_is_necessary:la(2527,1,"The_inferred_type_of_0_references_an_inaccessible_1_type_A_type_annotation_is_necessary_2527","The inferred type of '{0}' references an inaccessible '{1}' type. A type annotation is necessary."),A_module_cannot_have_multiple_default_exports:la(2528,1,"A_module_cannot_have_multiple_default_exports_2528","A module cannot have multiple default exports."),Duplicate_identifier_0_Compiler_reserves_name_1_in_top_level_scope_of_a_module_containing_async_functions:la(2529,1,"Duplicate_identifier_0_Compiler_reserves_name_1_in_top_level_scope_of_a_module_containing_async_func_2529","Duplicate identifier '{0}'. Compiler reserves name '{1}' in top level scope of a module containing async functions."),Property_0_is_incompatible_with_index_signature:la(2530,1,"Property_0_is_incompatible_with_index_signature_2530","Property '{0}' is incompatible with index signature."),Object_is_possibly_null:la(2531,1,"Object_is_possibly_null_2531","Object is possibly 'null'."),Object_is_possibly_undefined:la(2532,1,"Object_is_possibly_undefined_2532","Object is possibly 'undefined'."),Object_is_possibly_null_or_undefined:la(2533,1,"Object_is_possibly_null_or_undefined_2533","Object is possibly 'null' or 'undefined'."),A_function_returning_never_cannot_have_a_reachable_end_point:la(2534,1,"A_function_returning_never_cannot_have_a_reachable_end_point_2534","A function returning 'never' cannot have a reachable end point."),Type_0_cannot_be_used_to_index_type_1:la(2536,1,"Type_0_cannot_be_used_to_index_type_1_2536","Type '{0}' cannot be used to index type '{1}'."),Type_0_has_no_matching_index_signature_for_type_1:la(2537,1,"Type_0_has_no_matching_index_signature_for_type_1_2537","Type '{0}' has no matching index signature for type '{1}'."),Type_0_cannot_be_used_as_an_index_type:la(2538,1,"Type_0_cannot_be_used_as_an_index_type_2538","Type '{0}' cannot be used as an index type."),Cannot_assign_to_0_because_it_is_not_a_variable:la(2539,1,"Cannot_assign_to_0_because_it_is_not_a_variable_2539","Cannot assign to '{0}' because it is not a variable."),Cannot_assign_to_0_because_it_is_a_read_only_property:la(2540,1,"Cannot_assign_to_0_because_it_is_a_read_only_property_2540","Cannot assign to '{0}' because it is a read-only property."),Index_signature_in_type_0_only_permits_reading:la(2542,1,"Index_signature_in_type_0_only_permits_reading_2542","Index signature in type '{0}' only permits reading."),Duplicate_identifier_newTarget_Compiler_uses_variable_declaration_newTarget_to_capture_new_target_meta_property_reference:la(2543,1,"Duplicate_identifier_newTarget_Compiler_uses_variable_declaration_newTarget_to_capture_new_target_me_2543","Duplicate identifier '_newTarget'. Compiler uses variable declaration '_newTarget' to capture 'new.target' meta-property reference."),Expression_resolves_to_variable_declaration_newTarget_that_compiler_uses_to_capture_new_target_meta_property_reference:la(2544,1,"Expression_resolves_to_variable_declaration_newTarget_that_compiler_uses_to_capture_new_target_meta__2544","Expression resolves to variable declaration '_newTarget' that compiler uses to capture 'new.target' meta-property reference."),A_mixin_class_must_have_a_constructor_with_a_single_rest_parameter_of_type_any:la(2545,1,"A_mixin_class_must_have_a_constructor_with_a_single_rest_parameter_of_type_any_2545","A mixin class must have a constructor with a single rest parameter of type 'any[]'."),The_type_returned_by_the_0_method_of_an_async_iterator_must_be_a_promise_for_a_type_with_a_value_property:la(2547,1,"The_type_returned_by_the_0_method_of_an_async_iterator_must_be_a_promise_for_a_type_with_a_value_pro_2547","The type returned by the '{0}()' method of an async iterator must be a promise for a type with a 'value' property."),Type_0_is_not_an_array_type_or_does_not_have_a_Symbol_iterator_method_that_returns_an_iterator:la(2548,1,"Type_0_is_not_an_array_type_or_does_not_have_a_Symbol_iterator_method_that_returns_an_iterator_2548","Type '{0}' is not an array type or does not have a '[Symbol.iterator]()' method that returns an iterator."),Type_0_is_not_an_array_type_or_a_string_type_or_does_not_have_a_Symbol_iterator_method_that_returns_an_iterator:la(2549,1,"Type_0_is_not_an_array_type_or_a_string_type_or_does_not_have_a_Symbol_iterator_method_that_returns__2549","Type '{0}' is not an array type or a string type or does not have a '[Symbol.iterator]()' method that returns an iterator."),Property_0_does_not_exist_on_type_1_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_2_or_later:la(2550,1,"Property_0_does_not_exist_on_type_1_Do_you_need_to_change_your_target_library_Try_changing_the_lib_c_2550","Property '{0}' does not exist on type '{1}'. Do you need to change your target library? Try changing the 'lib' compiler option to '{2}' or later."),Property_0_does_not_exist_on_type_1_Did_you_mean_2:la(2551,1,"Property_0_does_not_exist_on_type_1_Did_you_mean_2_2551","Property '{0}' does not exist on type '{1}'. Did you mean '{2}'?"),Cannot_find_name_0_Did_you_mean_1:la(2552,1,"Cannot_find_name_0_Did_you_mean_1_2552","Cannot find name '{0}'. Did you mean '{1}'?"),Computed_values_are_not_permitted_in_an_enum_with_string_valued_members:la(2553,1,"Computed_values_are_not_permitted_in_an_enum_with_string_valued_members_2553","Computed values are not permitted in an enum with string valued members."),Expected_0_arguments_but_got_1:la(2554,1,"Expected_0_arguments_but_got_1_2554","Expected {0} arguments, but got {1}."),Expected_at_least_0_arguments_but_got_1:la(2555,1,"Expected_at_least_0_arguments_but_got_1_2555","Expected at least {0} arguments, but got {1}."),A_spread_argument_must_either_have_a_tuple_type_or_be_passed_to_a_rest_parameter:la(2556,1,"A_spread_argument_must_either_have_a_tuple_type_or_be_passed_to_a_rest_parameter_2556","A spread argument must either have a tuple type or be passed to a rest parameter."),Expected_0_type_arguments_but_got_1:la(2558,1,"Expected_0_type_arguments_but_got_1_2558","Expected {0} type arguments, but got {1}."),Type_0_has_no_properties_in_common_with_type_1:la(2559,1,"Type_0_has_no_properties_in_common_with_type_1_2559","Type '{0}' has no properties in common with type '{1}'."),Value_of_type_0_has_no_properties_in_common_with_type_1_Did_you_mean_to_call_it:la(2560,1,"Value_of_type_0_has_no_properties_in_common_with_type_1_Did_you_mean_to_call_it_2560","Value of type '{0}' has no properties in common with type '{1}'. Did you mean to call it?"),Object_literal_may_only_specify_known_properties_but_0_does_not_exist_in_type_1_Did_you_mean_to_write_2:la(2561,1,"Object_literal_may_only_specify_known_properties_but_0_does_not_exist_in_type_1_Did_you_mean_to_writ_2561","Object literal may only specify known properties, but '{0}' does not exist in type '{1}'. Did you mean to write '{2}'?"),Base_class_expressions_cannot_reference_class_type_parameters:la(2562,1,"Base_class_expressions_cannot_reference_class_type_parameters_2562","Base class expressions cannot reference class type parameters."),The_containing_function_or_module_body_is_too_large_for_control_flow_analysis:la(2563,1,"The_containing_function_or_module_body_is_too_large_for_control_flow_analysis_2563","The containing function or module body is too large for control flow analysis."),Property_0_has_no_initializer_and_is_not_definitely_assigned_in_the_constructor:la(2564,1,"Property_0_has_no_initializer_and_is_not_definitely_assigned_in_the_constructor_2564","Property '{0}' has no initializer and is not definitely assigned in the constructor."),Property_0_is_used_before_being_assigned:la(2565,1,"Property_0_is_used_before_being_assigned_2565","Property '{0}' is used before being assigned."),A_rest_element_cannot_have_a_property_name:la(2566,1,"A_rest_element_cannot_have_a_property_name_2566","A rest element cannot have a property name."),Enum_declarations_can_only_merge_with_namespace_or_other_enum_declarations:la(2567,1,"Enum_declarations_can_only_merge_with_namespace_or_other_enum_declarations_2567","Enum declarations can only merge with namespace or other enum declarations."),Property_0_may_not_exist_on_type_1_Did_you_mean_2:la(2568,1,"Property_0_may_not_exist_on_type_1_Did_you_mean_2_2568","Property '{0}' may not exist on type '{1}'. Did you mean '{2}'?"),Could_not_find_name_0_Did_you_mean_1:la(2570,1,"Could_not_find_name_0_Did_you_mean_1_2570","Could not find name '{0}'. Did you mean '{1}'?"),Object_is_of_type_unknown:la(2571,1,"Object_is_of_type_unknown_2571","Object is of type 'unknown'."),A_rest_element_type_must_be_an_array_type:la(2574,1,"A_rest_element_type_must_be_an_array_type_2574","A rest element type must be an array type."),No_overload_expects_0_arguments_but_overloads_do_exist_that_expect_either_1_or_2_arguments:la(2575,1,"No_overload_expects_0_arguments_but_overloads_do_exist_that_expect_either_1_or_2_arguments_2575","No overload expects {0} arguments, but overloads do exist that expect either {1} or {2} arguments."),Property_0_does_not_exist_on_type_1_Did_you_mean_to_access_the_static_member_2_instead:la(2576,1,"Property_0_does_not_exist_on_type_1_Did_you_mean_to_access_the_static_member_2_instead_2576","Property '{0}' does not exist on type '{1}'. Did you mean to access the static member '{2}' instead?"),Return_type_annotation_circularly_references_itself:la(2577,1,"Return_type_annotation_circularly_references_itself_2577","Return type annotation circularly references itself."),Unused_ts_expect_error_directive:la(2578,1,"Unused_ts_expect_error_directive_2578","Unused '@ts-expect-error' directive."),Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_node_Try_npm_i_save_dev_types_Slashnode:la(2580,1,"Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_node_Try_npm_i_save_dev_types_Slashno_2580","Cannot find name '{0}'. Do you need to install type definitions for node? Try `npm i --save-dev @types/node`."),Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_jQuery_Try_npm_i_save_dev_types_Slashjquery:la(2581,1,"Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_jQuery_Try_npm_i_save_dev_types_Slash_2581","Cannot find name '{0}'. Do you need to install type definitions for jQuery? Try `npm i --save-dev @types/jquery`."),Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_a_test_runner_Try_npm_i_save_dev_types_Slashjest_or_npm_i_save_dev_types_Slashmocha:la(2582,1,"Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_a_test_runner_Try_npm_i_save_dev_type_2582","Cannot find name '{0}'. Do you need to install type definitions for a test runner? Try `npm i --save-dev @types/jest` or `npm i --save-dev @types/mocha`."),Cannot_find_name_0_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_1_or_later:la(2583,1,"Cannot_find_name_0_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_2583","Cannot find name '{0}'. Do you need to change your target library? Try changing the 'lib' compiler option to '{1}' or later."),Cannot_find_name_0_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_include_dom:la(2584,1,"Cannot_find_name_0_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_2584","Cannot find name '{0}'. Do you need to change your target library? Try changing the 'lib' compiler option to include 'dom'."),_0_only_refers_to_a_type_but_is_being_used_as_a_value_here_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_es2015_or_later:la(2585,1,"_0_only_refers_to_a_type_but_is_being_used_as_a_value_here_Do_you_need_to_change_your_target_library_2585","'{0}' only refers to a type, but is being used as a value here. Do you need to change your target library? Try changing the 'lib' compiler option to es2015 or later."),Cannot_assign_to_0_because_it_is_a_constant:la(2588,1,"Cannot_assign_to_0_because_it_is_a_constant_2588","Cannot assign to '{0}' because it is a constant."),Type_instantiation_is_excessively_deep_and_possibly_infinite:la(2589,1,"Type_instantiation_is_excessively_deep_and_possibly_infinite_2589","Type instantiation is excessively deep and possibly infinite."),Expression_produces_a_union_type_that_is_too_complex_to_represent:la(2590,1,"Expression_produces_a_union_type_that_is_too_complex_to_represent_2590","Expression produces a union type that is too complex to represent."),Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_node_Try_npm_i_save_dev_types_Slashnode_and_then_add_node_to_the_types_field_in_your_tsconfig:la(2591,1,"Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_node_Try_npm_i_save_dev_types_Slashno_2591","Cannot find name '{0}'. Do you need to install type definitions for node? Try `npm i --save-dev @types/node` and then add 'node' to the types field in your tsconfig."),Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_jQuery_Try_npm_i_save_dev_types_Slashjquery_and_then_add_jquery_to_the_types_field_in_your_tsconfig:la(2592,1,"Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_jQuery_Try_npm_i_save_dev_types_Slash_2592","Cannot find name '{0}'. Do you need to install type definitions for jQuery? Try `npm i --save-dev @types/jquery` and then add 'jquery' to the types field in your tsconfig."),Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_a_test_runner_Try_npm_i_save_dev_types_Slashjest_or_npm_i_save_dev_types_Slashmocha_and_then_add_jest_or_mocha_to_the_types_field_in_your_tsconfig:la(2593,1,"Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_a_test_runner_Try_npm_i_save_dev_type_2593","Cannot find name '{0}'. Do you need to install type definitions for a test runner? Try `npm i --save-dev @types/jest` or `npm i --save-dev @types/mocha` and then add 'jest' or 'mocha' to the types field in your tsconfig."),This_module_is_declared_with_export_and_can_only_be_used_with_a_default_import_when_using_the_0_flag:la(2594,1,"This_module_is_declared_with_export_and_can_only_be_used_with_a_default_import_when_using_the_0_flag_2594","This module is declared with 'export =', and can only be used with a default import when using the '{0}' flag."),_0_can_only_be_imported_by_using_a_default_import:la(2595,1,"_0_can_only_be_imported_by_using_a_default_import_2595","'{0}' can only be imported by using a default import."),_0_can_only_be_imported_by_turning_on_the_esModuleInterop_flag_and_using_a_default_import:la(2596,1,"_0_can_only_be_imported_by_turning_on_the_esModuleInterop_flag_and_using_a_default_import_2596","'{0}' can only be imported by turning on the 'esModuleInterop' flag and using a default import."),_0_can_only_be_imported_by_using_a_require_call_or_by_using_a_default_import:la(2597,1,"_0_can_only_be_imported_by_using_a_require_call_or_by_using_a_default_import_2597","'{0}' can only be imported by using a 'require' call or by using a default import."),_0_can_only_be_imported_by_using_a_require_call_or_by_turning_on_the_esModuleInterop_flag_and_using_a_default_import:la(2598,1,"_0_can_only_be_imported_by_using_a_require_call_or_by_turning_on_the_esModuleInterop_flag_and_using__2598","'{0}' can only be imported by using a 'require' call or by turning on the 'esModuleInterop' flag and using a default import."),JSX_element_implicitly_has_type_any_because_the_global_type_JSX_Element_does_not_exist:la(2602,1,"JSX_element_implicitly_has_type_any_because_the_global_type_JSX_Element_does_not_exist_2602","JSX element implicitly has type 'any' because the global type 'JSX.Element' does not exist."),Property_0_in_type_1_is_not_assignable_to_type_2:la(2603,1,"Property_0_in_type_1_is_not_assignable_to_type_2_2603","Property '{0}' in type '{1}' is not assignable to type '{2}'."),JSX_element_type_0_does_not_have_any_construct_or_call_signatures:la(2604,1,"JSX_element_type_0_does_not_have_any_construct_or_call_signatures_2604","JSX element type '{0}' does not have any construct or call signatures."),Property_0_of_JSX_spread_attribute_is_not_assignable_to_target_property:la(2606,1,"Property_0_of_JSX_spread_attribute_is_not_assignable_to_target_property_2606","Property '{0}' of JSX spread attribute is not assignable to target property."),JSX_element_class_does_not_support_attributes_because_it_does_not_have_a_0_property:la(2607,1,"JSX_element_class_does_not_support_attributes_because_it_does_not_have_a_0_property_2607","JSX element class does not support attributes because it does not have a '{0}' property."),The_global_type_JSX_0_may_not_have_more_than_one_property:la(2608,1,"The_global_type_JSX_0_may_not_have_more_than_one_property_2608","The global type 'JSX.{0}' may not have more than one property."),JSX_spread_child_must_be_an_array_type:la(2609,1,"JSX_spread_child_must_be_an_array_type_2609","JSX spread child must be an array type."),_0_is_defined_as_an_accessor_in_class_1_but_is_overridden_here_in_2_as_an_instance_property:la(2610,1,"_0_is_defined_as_an_accessor_in_class_1_but_is_overridden_here_in_2_as_an_instance_property_2610","'{0}' is defined as an accessor in class '{1}', but is overridden here in '{2}' as an instance property."),_0_is_defined_as_a_property_in_class_1_but_is_overridden_here_in_2_as_an_accessor:la(2611,1,"_0_is_defined_as_a_property_in_class_1_but_is_overridden_here_in_2_as_an_accessor_2611","'{0}' is defined as a property in class '{1}', but is overridden here in '{2}' as an accessor."),Property_0_will_overwrite_the_base_property_in_1_If_this_is_intentional_add_an_initializer_Otherwise_add_a_declare_modifier_or_remove_the_redundant_declaration:la(2612,1,"Property_0_will_overwrite_the_base_property_in_1_If_this_is_intentional_add_an_initializer_Otherwise_2612","Property '{0}' will overwrite the base property in '{1}'. If this is intentional, add an initializer. Otherwise, add a 'declare' modifier or remove the redundant declaration."),Module_0_has_no_default_export_Did_you_mean_to_use_import_1_from_0_instead:la(2613,1,"Module_0_has_no_default_export_Did_you_mean_to_use_import_1_from_0_instead_2613","Module '{0}' has no default export. Did you mean to use 'import { {1} } from {0}' instead?"),Module_0_has_no_exported_member_1_Did_you_mean_to_use_import_1_from_0_instead:la(2614,1,"Module_0_has_no_exported_member_1_Did_you_mean_to_use_import_1_from_0_instead_2614","Module '{0}' has no exported member '{1}'. Did you mean to use 'import {1} from {0}' instead?"),Type_of_property_0_circularly_references_itself_in_mapped_type_1:la(2615,1,"Type_of_property_0_circularly_references_itself_in_mapped_type_1_2615","Type of property '{0}' circularly references itself in mapped type '{1}'."),_0_can_only_be_imported_by_using_import_1_require_2_or_a_default_import:la(2616,1,"_0_can_only_be_imported_by_using_import_1_require_2_or_a_default_import_2616","'{0}' can only be imported by using 'import {1} = require({2})' or a default import."),_0_can_only_be_imported_by_using_import_1_require_2_or_by_turning_on_the_esModuleInterop_flag_and_using_a_default_import:la(2617,1,"_0_can_only_be_imported_by_using_import_1_require_2_or_by_turning_on_the_esModuleInterop_flag_and_us_2617","'{0}' can only be imported by using 'import {1} = require({2})' or by turning on the 'esModuleInterop' flag and using a default import."),Source_has_0_element_s_but_target_requires_1:la(2618,1,"Source_has_0_element_s_but_target_requires_1_2618","Source has {0} element(s) but target requires {1}."),Source_has_0_element_s_but_target_allows_only_1:la(2619,1,"Source_has_0_element_s_but_target_allows_only_1_2619","Source has {0} element(s) but target allows only {1}."),Target_requires_0_element_s_but_source_may_have_fewer:la(2620,1,"Target_requires_0_element_s_but_source_may_have_fewer_2620","Target requires {0} element(s) but source may have fewer."),Target_allows_only_0_element_s_but_source_may_have_more:la(2621,1,"Target_allows_only_0_element_s_but_source_may_have_more_2621","Target allows only {0} element(s) but source may have more."),Source_provides_no_match_for_required_element_at_position_0_in_target:la(2623,1,"Source_provides_no_match_for_required_element_at_position_0_in_target_2623","Source provides no match for required element at position {0} in target."),Source_provides_no_match_for_variadic_element_at_position_0_in_target:la(2624,1,"Source_provides_no_match_for_variadic_element_at_position_0_in_target_2624","Source provides no match for variadic element at position {0} in target."),Variadic_element_at_position_0_in_source_does_not_match_element_at_position_1_in_target:la(2625,1,"Variadic_element_at_position_0_in_source_does_not_match_element_at_position_1_in_target_2625","Variadic element at position {0} in source does not match element at position {1} in target."),Type_at_position_0_in_source_is_not_compatible_with_type_at_position_1_in_target:la(2626,1,"Type_at_position_0_in_source_is_not_compatible_with_type_at_position_1_in_target_2626","Type at position {0} in source is not compatible with type at position {1} in target."),Type_at_positions_0_through_1_in_source_is_not_compatible_with_type_at_position_2_in_target:la(2627,1,"Type_at_positions_0_through_1_in_source_is_not_compatible_with_type_at_position_2_in_target_2627","Type at positions {0} through {1} in source is not compatible with type at position {2} in target."),Cannot_assign_to_0_because_it_is_an_enum:la(2628,1,"Cannot_assign_to_0_because_it_is_an_enum_2628","Cannot assign to '{0}' because it is an enum."),Cannot_assign_to_0_because_it_is_a_class:la(2629,1,"Cannot_assign_to_0_because_it_is_a_class_2629","Cannot assign to '{0}' because it is a class."),Cannot_assign_to_0_because_it_is_a_function:la(2630,1,"Cannot_assign_to_0_because_it_is_a_function_2630","Cannot assign to '{0}' because it is a function."),Cannot_assign_to_0_because_it_is_a_namespace:la(2631,1,"Cannot_assign_to_0_because_it_is_a_namespace_2631","Cannot assign to '{0}' because it is a namespace."),Cannot_assign_to_0_because_it_is_an_import:la(2632,1,"Cannot_assign_to_0_because_it_is_an_import_2632","Cannot assign to '{0}' because it is an import."),JSX_property_access_expressions_cannot_include_JSX_namespace_names:la(2633,1,"JSX_property_access_expressions_cannot_include_JSX_namespace_names_2633","JSX property access expressions cannot include JSX namespace names"),_0_index_signatures_are_incompatible:la(2634,1,"_0_index_signatures_are_incompatible_2634","'{0}' index signatures are incompatible."),Type_0_has_no_signatures_for_which_the_type_argument_list_is_applicable:la(2635,1,"Type_0_has_no_signatures_for_which_the_type_argument_list_is_applicable_2635","Type '{0}' has no signatures for which the type argument list is applicable."),Type_0_is_not_assignable_to_type_1_as_implied_by_variance_annotation:la(2636,1,"Type_0_is_not_assignable_to_type_1_as_implied_by_variance_annotation_2636","Type '{0}' is not assignable to type '{1}' as implied by variance annotation."),Variance_annotations_are_only_supported_in_type_aliases_for_object_function_constructor_and_mapped_types:la(2637,1,"Variance_annotations_are_only_supported_in_type_aliases_for_object_function_constructor_and_mapped_t_2637","Variance annotations are only supported in type aliases for object, function, constructor, and mapped types."),Type_0_may_represent_a_primitive_value_which_is_not_permitted_as_the_right_operand_of_the_in_operator:la(2638,1,"Type_0_may_represent_a_primitive_value_which_is_not_permitted_as_the_right_operand_of_the_in_operato_2638","Type '{0}' may represent a primitive value, which is not permitted as the right operand of the 'in' operator."),React_components_cannot_include_JSX_namespace_names:la(2639,1,"React_components_cannot_include_JSX_namespace_names_2639","React components cannot include JSX namespace names"),Cannot_augment_module_0_with_value_exports_because_it_resolves_to_a_non_module_entity:la(2649,1,"Cannot_augment_module_0_with_value_exports_because_it_resolves_to_a_non_module_entity_2649","Cannot augment module '{0}' with value exports because it resolves to a non-module entity."),Non_abstract_class_expression_is_missing_implementations_for_the_following_members_of_0_Colon_1_and_2_more:la(2650,1,"Non_abstract_class_expression_is_missing_implementations_for_the_following_members_of_0_Colon_1_and__2650","Non-abstract class expression is missing implementations for the following members of '{0}': {1} and {2} more."),A_member_initializer_in_a_enum_declaration_cannot_reference_members_declared_after_it_including_members_defined_in_other_enums:la(2651,1,"A_member_initializer_in_a_enum_declaration_cannot_reference_members_declared_after_it_including_memb_2651","A member initializer in a enum declaration cannot reference members declared after it, including members defined in other enums."),Merged_declaration_0_cannot_include_a_default_export_declaration_Consider_adding_a_separate_export_default_0_declaration_instead:la(2652,1,"Merged_declaration_0_cannot_include_a_default_export_declaration_Consider_adding_a_separate_export_d_2652","Merged declaration '{0}' cannot include a default export declaration. Consider adding a separate 'export default {0}' declaration instead."),Non_abstract_class_expression_does_not_implement_inherited_abstract_member_0_from_class_1:la(2653,1,"Non_abstract_class_expression_does_not_implement_inherited_abstract_member_0_from_class_1_2653","Non-abstract class expression does not implement inherited abstract member '{0}' from class '{1}'."),Non_abstract_class_0_is_missing_implementations_for_the_following_members_of_1_Colon_2:la(2654,1,"Non_abstract_class_0_is_missing_implementations_for_the_following_members_of_1_Colon_2_2654","Non-abstract class '{0}' is missing implementations for the following members of '{1}': {2}."),Non_abstract_class_0_is_missing_implementations_for_the_following_members_of_1_Colon_2_and_3_more:la(2655,1,"Non_abstract_class_0_is_missing_implementations_for_the_following_members_of_1_Colon_2_and_3_more_2655","Non-abstract class '{0}' is missing implementations for the following members of '{1}': {2} and {3} more."),Non_abstract_class_expression_is_missing_implementations_for_the_following_members_of_0_Colon_1:la(2656,1,"Non_abstract_class_expression_is_missing_implementations_for_the_following_members_of_0_Colon_1_2656","Non-abstract class expression is missing implementations for the following members of '{0}': {1}."),JSX_expressions_must_have_one_parent_element:la(2657,1,"JSX_expressions_must_have_one_parent_element_2657","JSX expressions must have one parent element."),Type_0_provides_no_match_for_the_signature_1:la(2658,1,"Type_0_provides_no_match_for_the_signature_1_2658","Type '{0}' provides no match for the signature '{1}'."),super_is_only_allowed_in_members_of_object_literal_expressions_when_option_target_is_ES2015_or_higher:la(2659,1,"super_is_only_allowed_in_members_of_object_literal_expressions_when_option_target_is_ES2015_or_highe_2659","'super' is only allowed in members of object literal expressions when option 'target' is 'ES2015' or higher."),super_can_only_be_referenced_in_members_of_derived_classes_or_object_literal_expressions:la(2660,1,"super_can_only_be_referenced_in_members_of_derived_classes_or_object_literal_expressions_2660","'super' can only be referenced in members of derived classes or object literal expressions."),Cannot_export_0_Only_local_declarations_can_be_exported_from_a_module:la(2661,1,"Cannot_export_0_Only_local_declarations_can_be_exported_from_a_module_2661","Cannot export '{0}'. Only local declarations can be exported from a module."),Cannot_find_name_0_Did_you_mean_the_static_member_1_0:la(2662,1,"Cannot_find_name_0_Did_you_mean_the_static_member_1_0_2662","Cannot find name '{0}'. Did you mean the static member '{1}.{0}'?"),Cannot_find_name_0_Did_you_mean_the_instance_member_this_0:la(2663,1,"Cannot_find_name_0_Did_you_mean_the_instance_member_this_0_2663","Cannot find name '{0}'. Did you mean the instance member 'this.{0}'?"),Invalid_module_name_in_augmentation_module_0_cannot_be_found:la(2664,1,"Invalid_module_name_in_augmentation_module_0_cannot_be_found_2664","Invalid module name in augmentation, module '{0}' cannot be found."),Invalid_module_name_in_augmentation_Module_0_resolves_to_an_untyped_module_at_1_which_cannot_be_augmented:la(2665,1,"Invalid_module_name_in_augmentation_Module_0_resolves_to_an_untyped_module_at_1_which_cannot_be_augm_2665","Invalid module name in augmentation. Module '{0}' resolves to an untyped module at '{1}', which cannot be augmented."),Exports_and_export_assignments_are_not_permitted_in_module_augmentations:la(2666,1,"Exports_and_export_assignments_are_not_permitted_in_module_augmentations_2666","Exports and export assignments are not permitted in module augmentations."),Imports_are_not_permitted_in_module_augmentations_Consider_moving_them_to_the_enclosing_external_module:la(2667,1,"Imports_are_not_permitted_in_module_augmentations_Consider_moving_them_to_the_enclosing_external_mod_2667","Imports are not permitted in module augmentations. Consider moving them to the enclosing external module."),export_modifier_cannot_be_applied_to_ambient_modules_and_module_augmentations_since_they_are_always_visible:la(2668,1,"export_modifier_cannot_be_applied_to_ambient_modules_and_module_augmentations_since_they_are_always__2668","'export' modifier cannot be applied to ambient modules and module augmentations since they are always visible."),Augmentations_for_the_global_scope_can_only_be_directly_nested_in_external_modules_or_ambient_module_declarations:la(2669,1,"Augmentations_for_the_global_scope_can_only_be_directly_nested_in_external_modules_or_ambient_module_2669","Augmentations for the global scope can only be directly nested in external modules or ambient module declarations."),Augmentations_for_the_global_scope_should_have_declare_modifier_unless_they_appear_in_already_ambient_context:la(2670,1,"Augmentations_for_the_global_scope_should_have_declare_modifier_unless_they_appear_in_already_ambien_2670","Augmentations for the global scope should have 'declare' modifier unless they appear in already ambient context."),Cannot_augment_module_0_because_it_resolves_to_a_non_module_entity:la(2671,1,"Cannot_augment_module_0_because_it_resolves_to_a_non_module_entity_2671","Cannot augment module '{0}' because it resolves to a non-module entity."),Cannot_assign_a_0_constructor_type_to_a_1_constructor_type:la(2672,1,"Cannot_assign_a_0_constructor_type_to_a_1_constructor_type_2672","Cannot assign a '{0}' constructor type to a '{1}' constructor type."),Constructor_of_class_0_is_private_and_only_accessible_within_the_class_declaration:la(2673,1,"Constructor_of_class_0_is_private_and_only_accessible_within_the_class_declaration_2673","Constructor of class '{0}' is private and only accessible within the class declaration."),Constructor_of_class_0_is_protected_and_only_accessible_within_the_class_declaration:la(2674,1,"Constructor_of_class_0_is_protected_and_only_accessible_within_the_class_declaration_2674","Constructor of class '{0}' is protected and only accessible within the class declaration."),Cannot_extend_a_class_0_Class_constructor_is_marked_as_private:la(2675,1,"Cannot_extend_a_class_0_Class_constructor_is_marked_as_private_2675","Cannot extend a class '{0}'. Class constructor is marked as private."),Accessors_must_both_be_abstract_or_non_abstract:la(2676,1,"Accessors_must_both_be_abstract_or_non_abstract_2676","Accessors must both be abstract or non-abstract."),A_type_predicate_s_type_must_be_assignable_to_its_parameter_s_type:la(2677,1,"A_type_predicate_s_type_must_be_assignable_to_its_parameter_s_type_2677","A type predicate's type must be assignable to its parameter's type."),Type_0_is_not_comparable_to_type_1:la(2678,1,"Type_0_is_not_comparable_to_type_1_2678","Type '{0}' is not comparable to type '{1}'."),A_function_that_is_called_with_the_new_keyword_cannot_have_a_this_type_that_is_void:la(2679,1,"A_function_that_is_called_with_the_new_keyword_cannot_have_a_this_type_that_is_void_2679","A function that is called with the 'new' keyword cannot have a 'this' type that is 'void'."),A_0_parameter_must_be_the_first_parameter:la(2680,1,"A_0_parameter_must_be_the_first_parameter_2680","A '{0}' parameter must be the first parameter."),A_constructor_cannot_have_a_this_parameter:la(2681,1,"A_constructor_cannot_have_a_this_parameter_2681","A constructor cannot have a 'this' parameter."),this_implicitly_has_type_any_because_it_does_not_have_a_type_annotation:la(2683,1,"this_implicitly_has_type_any_because_it_does_not_have_a_type_annotation_2683","'this' implicitly has type 'any' because it does not have a type annotation."),The_this_context_of_type_0_is_not_assignable_to_method_s_this_of_type_1:la(2684,1,"The_this_context_of_type_0_is_not_assignable_to_method_s_this_of_type_1_2684","The 'this' context of type '{0}' is not assignable to method's 'this' of type '{1}'."),The_this_types_of_each_signature_are_incompatible:la(2685,1,"The_this_types_of_each_signature_are_incompatible_2685","The 'this' types of each signature are incompatible."),_0_refers_to_a_UMD_global_but_the_current_file_is_a_module_Consider_adding_an_import_instead:la(2686,1,"_0_refers_to_a_UMD_global_but_the_current_file_is_a_module_Consider_adding_an_import_instead_2686","'{0}' refers to a UMD global, but the current file is a module. Consider adding an import instead."),All_declarations_of_0_must_have_identical_modifiers:la(2687,1,"All_declarations_of_0_must_have_identical_modifiers_2687","All declarations of '{0}' must have identical modifiers."),Cannot_find_type_definition_file_for_0:la(2688,1,"Cannot_find_type_definition_file_for_0_2688","Cannot find type definition file for '{0}'."),Cannot_extend_an_interface_0_Did_you_mean_implements:la(2689,1,"Cannot_extend_an_interface_0_Did_you_mean_implements_2689","Cannot extend an interface '{0}'. Did you mean 'implements'?"),_0_only_refers_to_a_type_but_is_being_used_as_a_value_here_Did_you_mean_to_use_1_in_0:la(2690,1,"_0_only_refers_to_a_type_but_is_being_used_as_a_value_here_Did_you_mean_to_use_1_in_0_2690","'{0}' only refers to a type, but is being used as a value here. Did you mean to use '{1} in {0}'?"),_0_is_a_primitive_but_1_is_a_wrapper_object_Prefer_using_0_when_possible:la(2692,1,"_0_is_a_primitive_but_1_is_a_wrapper_object_Prefer_using_0_when_possible_2692","'{0}' is a primitive, but '{1}' is a wrapper object. Prefer using '{0}' when possible."),_0_only_refers_to_a_type_but_is_being_used_as_a_value_here:la(2693,1,"_0_only_refers_to_a_type_but_is_being_used_as_a_value_here_2693","'{0}' only refers to a type, but is being used as a value here."),Namespace_0_has_no_exported_member_1:la(2694,1,"Namespace_0_has_no_exported_member_1_2694","Namespace '{0}' has no exported member '{1}'."),Left_side_of_comma_operator_is_unused_and_has_no_side_effects:la(2695,1,"Left_side_of_comma_operator_is_unused_and_has_no_side_effects_2695","Left side of comma operator is unused and has no side effects.",!0),The_Object_type_is_assignable_to_very_few_other_types_Did_you_mean_to_use_the_any_type_instead:la(2696,1,"The_Object_type_is_assignable_to_very_few_other_types_Did_you_mean_to_use_the_any_type_instead_2696","The 'Object' type is assignable to very few other types. Did you mean to use the 'any' type instead?"),An_async_function_or_method_must_return_a_Promise_Make_sure_you_have_a_declaration_for_Promise_or_include_ES2015_in_your_lib_option:la(2697,1,"An_async_function_or_method_must_return_a_Promise_Make_sure_you_have_a_declaration_for_Promise_or_in_2697","An async function or method must return a 'Promise'. Make sure you have a declaration for 'Promise' or include 'ES2015' in your '--lib' option."),Spread_types_may_only_be_created_from_object_types:la(2698,1,"Spread_types_may_only_be_created_from_object_types_2698","Spread types may only be created from object types."),Static_property_0_conflicts_with_built_in_property_Function_0_of_constructor_function_1:la(2699,1,"Static_property_0_conflicts_with_built_in_property_Function_0_of_constructor_function_1_2699","Static property '{0}' conflicts with built-in property 'Function.{0}' of constructor function '{1}'."),Rest_types_may_only_be_created_from_object_types:la(2700,1,"Rest_types_may_only_be_created_from_object_types_2700","Rest types may only be created from object types."),The_target_of_an_object_rest_assignment_must_be_a_variable_or_a_property_access:la(2701,1,"The_target_of_an_object_rest_assignment_must_be_a_variable_or_a_property_access_2701","The target of an object rest assignment must be a variable or a property access."),_0_only_refers_to_a_type_but_is_being_used_as_a_namespace_here:la(2702,1,"_0_only_refers_to_a_type_but_is_being_used_as_a_namespace_here_2702","'{0}' only refers to a type, but is being used as a namespace here."),The_operand_of_a_delete_operator_must_be_a_property_reference:la(2703,1,"The_operand_of_a_delete_operator_must_be_a_property_reference_2703","The operand of a 'delete' operator must be a property reference."),The_operand_of_a_delete_operator_cannot_be_a_read_only_property:la(2704,1,"The_operand_of_a_delete_operator_cannot_be_a_read_only_property_2704","The operand of a 'delete' operator cannot be a read-only property."),An_async_function_or_method_in_ES5_requires_the_Promise_constructor_Make_sure_you_have_a_declaration_for_the_Promise_constructor_or_include_ES2015_in_your_lib_option:la(2705,1,"An_async_function_or_method_in_ES5_requires_the_Promise_constructor_Make_sure_you_have_a_declaration_2705","An async function or method in ES5 requires the 'Promise' constructor. Make sure you have a declaration for the 'Promise' constructor or include 'ES2015' in your '--lib' option."),Required_type_parameters_may_not_follow_optional_type_parameters:la(2706,1,"Required_type_parameters_may_not_follow_optional_type_parameters_2706","Required type parameters may not follow optional type parameters."),Generic_type_0_requires_between_1_and_2_type_arguments:la(2707,1,"Generic_type_0_requires_between_1_and_2_type_arguments_2707","Generic type '{0}' requires between {1} and {2} type arguments."),Cannot_use_namespace_0_as_a_value:la(2708,1,"Cannot_use_namespace_0_as_a_value_2708","Cannot use namespace '{0}' as a value."),Cannot_use_namespace_0_as_a_type:la(2709,1,"Cannot_use_namespace_0_as_a_type_2709","Cannot use namespace '{0}' as a type."),_0_are_specified_twice_The_attribute_named_0_will_be_overwritten:la(2710,1,"_0_are_specified_twice_The_attribute_named_0_will_be_overwritten_2710","'{0}' are specified twice. The attribute named '{0}' will be overwritten."),A_dynamic_import_call_returns_a_Promise_Make_sure_you_have_a_declaration_for_Promise_or_include_ES2015_in_your_lib_option:la(2711,1,"A_dynamic_import_call_returns_a_Promise_Make_sure_you_have_a_declaration_for_Promise_or_include_ES20_2711","A dynamic import call returns a 'Promise'. Make sure you have a declaration for 'Promise' or include 'ES2015' in your '--lib' option."),A_dynamic_import_call_in_ES5_requires_the_Promise_constructor_Make_sure_you_have_a_declaration_for_the_Promise_constructor_or_include_ES2015_in_your_lib_option:la(2712,1,"A_dynamic_import_call_in_ES5_requires_the_Promise_constructor_Make_sure_you_have_a_declaration_for_t_2712","A dynamic import call in ES5 requires the 'Promise' constructor. Make sure you have a declaration for the 'Promise' constructor or include 'ES2015' in your '--lib' option."),Cannot_access_0_1_because_0_is_a_type_but_not_a_namespace_Did_you_mean_to_retrieve_the_type_of_the_property_1_in_0_with_0_1:la(2713,1,"Cannot_access_0_1_because_0_is_a_type_but_not_a_namespace_Did_you_mean_to_retrieve_the_type_of_the_p_2713","Cannot access '{0}.{1}' because '{0}' is a type, but not a namespace. Did you mean to retrieve the type of the property '{1}' in '{0}' with '{0}[\"{1}\"]'?"),The_expression_of_an_export_assignment_must_be_an_identifier_or_qualified_name_in_an_ambient_context:la(2714,1,"The_expression_of_an_export_assignment_must_be_an_identifier_or_qualified_name_in_an_ambient_context_2714","The expression of an export assignment must be an identifier or qualified name in an ambient context."),Abstract_property_0_in_class_1_cannot_be_accessed_in_the_constructor:la(2715,1,"Abstract_property_0_in_class_1_cannot_be_accessed_in_the_constructor_2715","Abstract property '{0}' in class '{1}' cannot be accessed in the constructor."),Type_parameter_0_has_a_circular_default:la(2716,1,"Type_parameter_0_has_a_circular_default_2716","Type parameter '{0}' has a circular default."),Subsequent_property_declarations_must_have_the_same_type_Property_0_must_be_of_type_1_but_here_has_type_2:la(2717,1,"Subsequent_property_declarations_must_have_the_same_type_Property_0_must_be_of_type_1_but_here_has_t_2717","Subsequent property declarations must have the same type. Property '{0}' must be of type '{1}', but here has type '{2}'."),Duplicate_property_0:la(2718,1,"Duplicate_property_0_2718","Duplicate property '{0}'."),Type_0_is_not_assignable_to_type_1_Two_different_types_with_this_name_exist_but_they_are_unrelated:la(2719,1,"Type_0_is_not_assignable_to_type_1_Two_different_types_with_this_name_exist_but_they_are_unrelated_2719","Type '{0}' is not assignable to type '{1}'. Two different types with this name exist, but they are unrelated."),Class_0_incorrectly_implements_class_1_Did_you_mean_to_extend_1_and_inherit_its_members_as_a_subclass:la(2720,1,"Class_0_incorrectly_implements_class_1_Did_you_mean_to_extend_1_and_inherit_its_members_as_a_subclas_2720","Class '{0}' incorrectly implements class '{1}'. Did you mean to extend '{1}' and inherit its members as a subclass?"),Cannot_invoke_an_object_which_is_possibly_null:la(2721,1,"Cannot_invoke_an_object_which_is_possibly_null_2721","Cannot invoke an object which is possibly 'null'."),Cannot_invoke_an_object_which_is_possibly_undefined:la(2722,1,"Cannot_invoke_an_object_which_is_possibly_undefined_2722","Cannot invoke an object which is possibly 'undefined'."),Cannot_invoke_an_object_which_is_possibly_null_or_undefined:la(2723,1,"Cannot_invoke_an_object_which_is_possibly_null_or_undefined_2723","Cannot invoke an object which is possibly 'null' or 'undefined'."),_0_has_no_exported_member_named_1_Did_you_mean_2:la(2724,1,"_0_has_no_exported_member_named_1_Did_you_mean_2_2724","'{0}' has no exported member named '{1}'. Did you mean '{2}'?"),Class_name_cannot_be_Object_when_targeting_ES5_and_above_with_module_0:la(2725,1,"Class_name_cannot_be_Object_when_targeting_ES5_and_above_with_module_0_2725","Class name cannot be 'Object' when targeting ES5 and above with module {0}."),Cannot_find_lib_definition_for_0:la(2726,1,"Cannot_find_lib_definition_for_0_2726","Cannot find lib definition for '{0}'."),Cannot_find_lib_definition_for_0_Did_you_mean_1:la(2727,1,"Cannot_find_lib_definition_for_0_Did_you_mean_1_2727","Cannot find lib definition for '{0}'. Did you mean '{1}'?"),_0_is_declared_here:la(2728,3,"_0_is_declared_here_2728","'{0}' is declared here."),Property_0_is_used_before_its_initialization:la(2729,1,"Property_0_is_used_before_its_initialization_2729","Property '{0}' is used before its initialization."),An_arrow_function_cannot_have_a_this_parameter:la(2730,1,"An_arrow_function_cannot_have_a_this_parameter_2730","An arrow function cannot have a 'this' parameter."),Implicit_conversion_of_a_symbol_to_a_string_will_fail_at_runtime_Consider_wrapping_this_expression_in_String:la(2731,1,"Implicit_conversion_of_a_symbol_to_a_string_will_fail_at_runtime_Consider_wrapping_this_expression_i_2731","Implicit conversion of a 'symbol' to a 'string' will fail at runtime. Consider wrapping this expression in 'String(...)'."),Cannot_find_module_0_Consider_using_resolveJsonModule_to_import_module_with_json_extension:la(2732,1,"Cannot_find_module_0_Consider_using_resolveJsonModule_to_import_module_with_json_extension_2732","Cannot find module '{0}'. Consider using '--resolveJsonModule' to import module with '.json' extension."),Property_0_was_also_declared_here:la(2733,1,"Property_0_was_also_declared_here_2733","Property '{0}' was also declared here."),Are_you_missing_a_semicolon:la(2734,1,"Are_you_missing_a_semicolon_2734","Are you missing a semicolon?"),Did_you_mean_for_0_to_be_constrained_to_type_new_args_Colon_any_1:la(2735,1,"Did_you_mean_for_0_to_be_constrained_to_type_new_args_Colon_any_1_2735","Did you mean for '{0}' to be constrained to type 'new (...args: any[]) => {1}'?"),Operator_0_cannot_be_applied_to_type_1:la(2736,1,"Operator_0_cannot_be_applied_to_type_1_2736","Operator '{0}' cannot be applied to type '{1}'."),BigInt_literals_are_not_available_when_targeting_lower_than_ES2020:la(2737,1,"BigInt_literals_are_not_available_when_targeting_lower_than_ES2020_2737","BigInt literals are not available when targeting lower than ES2020."),An_outer_value_of_this_is_shadowed_by_this_container:la(2738,3,"An_outer_value_of_this_is_shadowed_by_this_container_2738","An outer value of 'this' is shadowed by this container."),Type_0_is_missing_the_following_properties_from_type_1_Colon_2:la(2739,1,"Type_0_is_missing_the_following_properties_from_type_1_Colon_2_2739","Type '{0}' is missing the following properties from type '{1}': {2}"),Type_0_is_missing_the_following_properties_from_type_1_Colon_2_and_3_more:la(2740,1,"Type_0_is_missing_the_following_properties_from_type_1_Colon_2_and_3_more_2740","Type '{0}' is missing the following properties from type '{1}': {2}, and {3} more."),Property_0_is_missing_in_type_1_but_required_in_type_2:la(2741,1,"Property_0_is_missing_in_type_1_but_required_in_type_2_2741","Property '{0}' is missing in type '{1}' but required in type '{2}'."),The_inferred_type_of_0_cannot_be_named_without_a_reference_to_1_This_is_likely_not_portable_A_type_annotation_is_necessary:la(2742,1,"The_inferred_type_of_0_cannot_be_named_without_a_reference_to_1_This_is_likely_not_portable_A_type_a_2742","The inferred type of '{0}' cannot be named without a reference to '{1}'. This is likely not portable. A type annotation is necessary."),No_overload_expects_0_type_arguments_but_overloads_do_exist_that_expect_either_1_or_2_type_arguments:la(2743,1,"No_overload_expects_0_type_arguments_but_overloads_do_exist_that_expect_either_1_or_2_type_arguments_2743","No overload expects {0} type arguments, but overloads do exist that expect either {1} or {2} type arguments."),Type_parameter_defaults_can_only_reference_previously_declared_type_parameters:la(2744,1,"Type_parameter_defaults_can_only_reference_previously_declared_type_parameters_2744","Type parameter defaults can only reference previously declared type parameters."),This_JSX_tag_s_0_prop_expects_type_1_which_requires_multiple_children_but_only_a_single_child_was_provided:la(2745,1,"This_JSX_tag_s_0_prop_expects_type_1_which_requires_multiple_children_but_only_a_single_child_was_pr_2745","This JSX tag's '{0}' prop expects type '{1}' which requires multiple children, but only a single child was provided."),This_JSX_tag_s_0_prop_expects_a_single_child_of_type_1_but_multiple_children_were_provided:la(2746,1,"This_JSX_tag_s_0_prop_expects_a_single_child_of_type_1_but_multiple_children_were_provided_2746","This JSX tag's '{0}' prop expects a single child of type '{1}', but multiple children were provided."),_0_components_don_t_accept_text_as_child_elements_Text_in_JSX_has_the_type_string_but_the_expected_type_of_1_is_2:la(2747,1,"_0_components_don_t_accept_text_as_child_elements_Text_in_JSX_has_the_type_string_but_the_expected_t_2747","'{0}' components don't accept text as child elements. Text in JSX has the type 'string', but the expected type of '{1}' is '{2}'."),Cannot_access_ambient_const_enums_when_0_is_enabled:la(2748,1,"Cannot_access_ambient_const_enums_when_0_is_enabled_2748","Cannot access ambient const enums when '{0}' is enabled."),_0_refers_to_a_value_but_is_being_used_as_a_type_here_Did_you_mean_typeof_0:la(2749,1,"_0_refers_to_a_value_but_is_being_used_as_a_type_here_Did_you_mean_typeof_0_2749","'{0}' refers to a value, but is being used as a type here. Did you mean 'typeof {0}'?"),The_implementation_signature_is_declared_here:la(2750,1,"The_implementation_signature_is_declared_here_2750","The implementation signature is declared here."),Circularity_originates_in_type_at_this_location:la(2751,1,"Circularity_originates_in_type_at_this_location_2751","Circularity originates in type at this location."),The_first_export_default_is_here:la(2752,1,"The_first_export_default_is_here_2752","The first export default is here."),Another_export_default_is_here:la(2753,1,"Another_export_default_is_here_2753","Another export default is here."),super_may_not_use_type_arguments:la(2754,1,"super_may_not_use_type_arguments_2754","'super' may not use type arguments."),No_constituent_of_type_0_is_callable:la(2755,1,"No_constituent_of_type_0_is_callable_2755","No constituent of type '{0}' is callable."),Not_all_constituents_of_type_0_are_callable:la(2756,1,"Not_all_constituents_of_type_0_are_callable_2756","Not all constituents of type '{0}' are callable."),Type_0_has_no_call_signatures:la(2757,1,"Type_0_has_no_call_signatures_2757","Type '{0}' has no call signatures."),Each_member_of_the_union_type_0_has_signatures_but_none_of_those_signatures_are_compatible_with_each_other:la(2758,1,"Each_member_of_the_union_type_0_has_signatures_but_none_of_those_signatures_are_compatible_with_each_2758","Each member of the union type '{0}' has signatures, but none of those signatures are compatible with each other."),No_constituent_of_type_0_is_constructable:la(2759,1,"No_constituent_of_type_0_is_constructable_2759","No constituent of type '{0}' is constructable."),Not_all_constituents_of_type_0_are_constructable:la(2760,1,"Not_all_constituents_of_type_0_are_constructable_2760","Not all constituents of type '{0}' are constructable."),Type_0_has_no_construct_signatures:la(2761,1,"Type_0_has_no_construct_signatures_2761","Type '{0}' has no construct signatures."),Each_member_of_the_union_type_0_has_construct_signatures_but_none_of_those_signatures_are_compatible_with_each_other:la(2762,1,"Each_member_of_the_union_type_0_has_construct_signatures_but_none_of_those_signatures_are_compatible_2762","Each member of the union type '{0}' has construct signatures, but none of those signatures are compatible with each other."),Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_for_of_will_always_send_0:la(2763,1,"Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_for_of_will_always_s_2763","Cannot iterate value because the 'next' method of its iterator expects type '{1}', but for-of will always send '{0}'."),Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_array_spread_will_always_send_0:la(2764,1,"Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_array_spread_will_al_2764","Cannot iterate value because the 'next' method of its iterator expects type '{1}', but array spread will always send '{0}'."),Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_array_destructuring_will_always_send_0:la(2765,1,"Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_array_destructuring__2765","Cannot iterate value because the 'next' method of its iterator expects type '{1}', but array destructuring will always send '{0}'."),Cannot_delegate_iteration_to_value_because_the_next_method_of_its_iterator_expects_type_1_but_the_containing_generator_will_always_send_0:la(2766,1,"Cannot_delegate_iteration_to_value_because_the_next_method_of_its_iterator_expects_type_1_but_the_co_2766","Cannot delegate iteration to value because the 'next' method of its iterator expects type '{1}', but the containing generator will always send '{0}'."),The_0_property_of_an_iterator_must_be_a_method:la(2767,1,"The_0_property_of_an_iterator_must_be_a_method_2767","The '{0}' property of an iterator must be a method."),The_0_property_of_an_async_iterator_must_be_a_method:la(2768,1,"The_0_property_of_an_async_iterator_must_be_a_method_2768","The '{0}' property of an async iterator must be a method."),No_overload_matches_this_call:la(2769,1,"No_overload_matches_this_call_2769","No overload matches this call."),The_last_overload_gave_the_following_error:la(2770,1,"The_last_overload_gave_the_following_error_2770","The last overload gave the following error."),The_last_overload_is_declared_here:la(2771,1,"The_last_overload_is_declared_here_2771","The last overload is declared here."),Overload_0_of_1_2_gave_the_following_error:la(2772,1,"Overload_0_of_1_2_gave_the_following_error_2772","Overload {0} of {1}, '{2}', gave the following error."),Did_you_forget_to_use_await:la(2773,1,"Did_you_forget_to_use_await_2773","Did you forget to use 'await'?"),This_condition_will_always_return_true_since_this_function_is_always_defined_Did_you_mean_to_call_it_instead:la(2774,1,"This_condition_will_always_return_true_since_this_function_is_always_defined_Did_you_mean_to_call_it_2774","This condition will always return true since this function is always defined. Did you mean to call it instead?"),Assertions_require_every_name_in_the_call_target_to_be_declared_with_an_explicit_type_annotation:la(2775,1,"Assertions_require_every_name_in_the_call_target_to_be_declared_with_an_explicit_type_annotation_2775","Assertions require every name in the call target to be declared with an explicit type annotation."),Assertions_require_the_call_target_to_be_an_identifier_or_qualified_name:la(2776,1,"Assertions_require_the_call_target_to_be_an_identifier_or_qualified_name_2776","Assertions require the call target to be an identifier or qualified name."),The_operand_of_an_increment_or_decrement_operator_may_not_be_an_optional_property_access:la(2777,1,"The_operand_of_an_increment_or_decrement_operator_may_not_be_an_optional_property_access_2777","The operand of an increment or decrement operator may not be an optional property access."),The_target_of_an_object_rest_assignment_may_not_be_an_optional_property_access:la(2778,1,"The_target_of_an_object_rest_assignment_may_not_be_an_optional_property_access_2778","The target of an object rest assignment may not be an optional property access."),The_left_hand_side_of_an_assignment_expression_may_not_be_an_optional_property_access:la(2779,1,"The_left_hand_side_of_an_assignment_expression_may_not_be_an_optional_property_access_2779","The left-hand side of an assignment expression may not be an optional property access."),The_left_hand_side_of_a_for_in_statement_may_not_be_an_optional_property_access:la(2780,1,"The_left_hand_side_of_a_for_in_statement_may_not_be_an_optional_property_access_2780","The left-hand side of a 'for...in' statement may not be an optional property access."),The_left_hand_side_of_a_for_of_statement_may_not_be_an_optional_property_access:la(2781,1,"The_left_hand_side_of_a_for_of_statement_may_not_be_an_optional_property_access_2781","The left-hand side of a 'for...of' statement may not be an optional property access."),_0_needs_an_explicit_type_annotation:la(2782,3,"_0_needs_an_explicit_type_annotation_2782","'{0}' needs an explicit type annotation."),_0_is_specified_more_than_once_so_this_usage_will_be_overwritten:la(2783,1,"_0_is_specified_more_than_once_so_this_usage_will_be_overwritten_2783","'{0}' is specified more than once, so this usage will be overwritten."),get_and_set_accessors_cannot_declare_this_parameters:la(2784,1,"get_and_set_accessors_cannot_declare_this_parameters_2784","'get' and 'set' accessors cannot declare 'this' parameters."),This_spread_always_overwrites_this_property:la(2785,1,"This_spread_always_overwrites_this_property_2785","This spread always overwrites this property."),_0_cannot_be_used_as_a_JSX_component:la(2786,1,"_0_cannot_be_used_as_a_JSX_component_2786","'{0}' cannot be used as a JSX component."),Its_return_type_0_is_not_a_valid_JSX_element:la(2787,1,"Its_return_type_0_is_not_a_valid_JSX_element_2787","Its return type '{0}' is not a valid JSX element."),Its_instance_type_0_is_not_a_valid_JSX_element:la(2788,1,"Its_instance_type_0_is_not_a_valid_JSX_element_2788","Its instance type '{0}' is not a valid JSX element."),Its_element_type_0_is_not_a_valid_JSX_element:la(2789,1,"Its_element_type_0_is_not_a_valid_JSX_element_2789","Its element type '{0}' is not a valid JSX element."),The_operand_of_a_delete_operator_must_be_optional:la(2790,1,"The_operand_of_a_delete_operator_must_be_optional_2790","The operand of a 'delete' operator must be optional."),Exponentiation_cannot_be_performed_on_bigint_values_unless_the_target_option_is_set_to_es2016_or_later:la(2791,1,"Exponentiation_cannot_be_performed_on_bigint_values_unless_the_target_option_is_set_to_es2016_or_lat_2791","Exponentiation cannot be performed on 'bigint' values unless the 'target' option is set to 'es2016' or later."),Cannot_find_module_0_Did_you_mean_to_set_the_moduleResolution_option_to_nodenext_or_to_add_aliases_to_the_paths_option:la(2792,1,"Cannot_find_module_0_Did_you_mean_to_set_the_moduleResolution_option_to_nodenext_or_to_add_aliases_t_2792","Cannot find module '{0}'. Did you mean to set the 'moduleResolution' option to 'nodenext', or to add aliases to the 'paths' option?"),The_call_would_have_succeeded_against_this_implementation_but_implementation_signatures_of_overloads_are_not_externally_visible:la(2793,1,"The_call_would_have_succeeded_against_this_implementation_but_implementation_signatures_of_overloads_2793","The call would have succeeded against this implementation, but implementation signatures of overloads are not externally visible."),Expected_0_arguments_but_got_1_Did_you_forget_to_include_void_in_your_type_argument_to_Promise:la(2794,1,"Expected_0_arguments_but_got_1_Did_you_forget_to_include_void_in_your_type_argument_to_Promise_2794","Expected {0} arguments, but got {1}. Did you forget to include 'void' in your type argument to 'Promise'?"),The_intrinsic_keyword_can_only_be_used_to_declare_compiler_provided_intrinsic_types:la(2795,1,"The_intrinsic_keyword_can_only_be_used_to_declare_compiler_provided_intrinsic_types_2795","The 'intrinsic' keyword can only be used to declare compiler provided intrinsic types."),It_is_likely_that_you_are_missing_a_comma_to_separate_these_two_template_expressions_They_form_a_tagged_template_expression_which_cannot_be_invoked:la(2796,1,"It_is_likely_that_you_are_missing_a_comma_to_separate_these_two_template_expressions_They_form_a_tag_2796","It is likely that you are missing a comma to separate these two template expressions. They form a tagged template expression which cannot be invoked."),A_mixin_class_that_extends_from_a_type_variable_containing_an_abstract_construct_signature_must_also_be_declared_abstract:la(2797,1,"A_mixin_class_that_extends_from_a_type_variable_containing_an_abstract_construct_signature_must_also_2797","A mixin class that extends from a type variable containing an abstract construct signature must also be declared 'abstract'."),The_declaration_was_marked_as_deprecated_here:la(2798,1,"The_declaration_was_marked_as_deprecated_here_2798","The declaration was marked as deprecated here."),Type_produces_a_tuple_type_that_is_too_large_to_represent:la(2799,1,"Type_produces_a_tuple_type_that_is_too_large_to_represent_2799","Type produces a tuple type that is too large to represent."),Expression_produces_a_tuple_type_that_is_too_large_to_represent:la(2800,1,"Expression_produces_a_tuple_type_that_is_too_large_to_represent_2800","Expression produces a tuple type that is too large to represent."),This_condition_will_always_return_true_since_this_0_is_always_defined:la(2801,1,"This_condition_will_always_return_true_since_this_0_is_always_defined_2801","This condition will always return true since this '{0}' is always defined."),Type_0_can_only_be_iterated_through_when_using_the_downlevelIteration_flag_or_with_a_target_of_es2015_or_higher:la(2802,1,"Type_0_can_only_be_iterated_through_when_using_the_downlevelIteration_flag_or_with_a_target_of_es201_2802","Type '{0}' can only be iterated through when using the '--downlevelIteration' flag or with a '--target' of 'es2015' or higher."),Cannot_assign_to_private_method_0_Private_methods_are_not_writable:la(2803,1,"Cannot_assign_to_private_method_0_Private_methods_are_not_writable_2803","Cannot assign to private method '{0}'. Private methods are not writable."),Duplicate_identifier_0_Static_and_instance_elements_cannot_share_the_same_private_name:la(2804,1,"Duplicate_identifier_0_Static_and_instance_elements_cannot_share_the_same_private_name_2804","Duplicate identifier '{0}'. Static and instance elements cannot share the same private name."),Private_accessor_was_defined_without_a_getter:la(2806,1,"Private_accessor_was_defined_without_a_getter_2806","Private accessor was defined without a getter."),This_syntax_requires_an_imported_helper_named_1_with_2_parameters_which_is_not_compatible_with_the_one_in_0_Consider_upgrading_your_version_of_0:la(2807,1,"This_syntax_requires_an_imported_helper_named_1_with_2_parameters_which_is_not_compatible_with_the_o_2807","This syntax requires an imported helper named '{1}' with {2} parameters, which is not compatible with the one in '{0}'. Consider upgrading your version of '{0}'."),A_get_accessor_must_be_at_least_as_accessible_as_the_setter:la(2808,1,"A_get_accessor_must_be_at_least_as_accessible_as_the_setter_2808","A get accessor must be at least as accessible as the setter"),Declaration_or_statement_expected_This_follows_a_block_of_statements_so_if_you_intended_to_write_a_destructuring_assignment_you_might_need_to_wrap_the_whole_assignment_in_parentheses:la(2809,1,"Declaration_or_statement_expected_This_follows_a_block_of_statements_so_if_you_intended_to_write_a_d_2809","Declaration or statement expected. This '=' follows a block of statements, so if you intended to write a destructuring assignment, you might need to wrap the whole assignment in parentheses."),Expected_1_argument_but_got_0_new_Promise_needs_a_JSDoc_hint_to_produce_a_resolve_that_can_be_called_without_arguments:la(2810,1,"Expected_1_argument_but_got_0_new_Promise_needs_a_JSDoc_hint_to_produce_a_resolve_that_can_be_called_2810","Expected 1 argument, but got 0. 'new Promise()' needs a JSDoc hint to produce a 'resolve' that can be called without arguments."),Initializer_for_property_0:la(2811,1,"Initializer_for_property_0_2811","Initializer for property '{0}'"),Property_0_does_not_exist_on_type_1_Try_changing_the_lib_compiler_option_to_include_dom:la(2812,1,"Property_0_does_not_exist_on_type_1_Try_changing_the_lib_compiler_option_to_include_dom_2812","Property '{0}' does not exist on type '{1}'. Try changing the 'lib' compiler option to include 'dom'."),Class_declaration_cannot_implement_overload_list_for_0:la(2813,1,"Class_declaration_cannot_implement_overload_list_for_0_2813","Class declaration cannot implement overload list for '{0}'."),Function_with_bodies_can_only_merge_with_classes_that_are_ambient:la(2814,1,"Function_with_bodies_can_only_merge_with_classes_that_are_ambient_2814","Function with bodies can only merge with classes that are ambient."),arguments_cannot_be_referenced_in_property_initializers_or_class_static_initialization_blocks:la(2815,1,"arguments_cannot_be_referenced_in_property_initializers_or_class_static_initialization_blocks_2815","'arguments' cannot be referenced in property initializers or class static initialization blocks."),Cannot_use_this_in_a_static_property_initializer_of_a_decorated_class:la(2816,1,"Cannot_use_this_in_a_static_property_initializer_of_a_decorated_class_2816","Cannot use 'this' in a static property initializer of a decorated class."),Property_0_has_no_initializer_and_is_not_definitely_assigned_in_a_class_static_block:la(2817,1,"Property_0_has_no_initializer_and_is_not_definitely_assigned_in_a_class_static_block_2817","Property '{0}' has no initializer and is not definitely assigned in a class static block."),Duplicate_identifier_0_Compiler_reserves_name_1_when_emitting_super_references_in_static_initializers:la(2818,1,"Duplicate_identifier_0_Compiler_reserves_name_1_when_emitting_super_references_in_static_initializer_2818","Duplicate identifier '{0}'. Compiler reserves name '{1}' when emitting 'super' references in static initializers."),Namespace_name_cannot_be_0:la(2819,1,"Namespace_name_cannot_be_0_2819","Namespace name cannot be '{0}'."),Type_0_is_not_assignable_to_type_1_Did_you_mean_2:la(2820,1,"Type_0_is_not_assignable_to_type_1_Did_you_mean_2_2820","Type '{0}' is not assignable to type '{1}'. Did you mean '{2}'?"),Import_assertions_are_only_supported_when_the_module_option_is_set_to_esnext_node18_node20_nodenext_or_preserve:la(2821,1,"Import_assertions_are_only_supported_when_the_module_option_is_set_to_esnext_node18_node20_nodenext__2821","Import assertions are only supported when the '--module' option is set to 'esnext', 'node18', 'node20', 'nodenext', or 'preserve'."),Import_assertions_cannot_be_used_with_type_only_imports_or_exports:la(2822,1,"Import_assertions_cannot_be_used_with_type_only_imports_or_exports_2822","Import assertions cannot be used with type-only imports or exports."),Import_attributes_are_only_supported_when_the_module_option_is_set_to_esnext_node18_node20_nodenext_or_preserve:la(2823,1,"Import_attributes_are_only_supported_when_the_module_option_is_set_to_esnext_node18_node20_nodenext__2823","Import attributes are only supported when the '--module' option is set to 'esnext', 'node18', 'node20', 'nodenext', or 'preserve'."),Cannot_find_namespace_0_Did_you_mean_1:la(2833,1,"Cannot_find_namespace_0_Did_you_mean_1_2833","Cannot find namespace '{0}'. Did you mean '{1}'?"),Relative_import_paths_need_explicit_file_extensions_in_ECMAScript_imports_when_moduleResolution_is_node16_or_nodenext_Consider_adding_an_extension_to_the_import_path:la(2834,1,"Relative_import_paths_need_explicit_file_extensions_in_ECMAScript_imports_when_moduleResolution_is_n_2834","Relative import paths need explicit file extensions in ECMAScript imports when '--moduleResolution' is 'node16' or 'nodenext'. Consider adding an extension to the import path."),Relative_import_paths_need_explicit_file_extensions_in_ECMAScript_imports_when_moduleResolution_is_node16_or_nodenext_Did_you_mean_0:la(2835,1,"Relative_import_paths_need_explicit_file_extensions_in_ECMAScript_imports_when_moduleResolution_is_n_2835","Relative import paths need explicit file extensions in ECMAScript imports when '--moduleResolution' is 'node16' or 'nodenext'. Did you mean '{0}'?"),Import_assertions_are_not_allowed_on_statements_that_compile_to_CommonJS_require_calls:la(2836,1,"Import_assertions_are_not_allowed_on_statements_that_compile_to_CommonJS_require_calls_2836","Import assertions are not allowed on statements that compile to CommonJS 'require' calls."),Import_assertion_values_must_be_string_literal_expressions:la(2837,1,"Import_assertion_values_must_be_string_literal_expressions_2837","Import assertion values must be string literal expressions."),All_declarations_of_0_must_have_identical_constraints:la(2838,1,"All_declarations_of_0_must_have_identical_constraints_2838","All declarations of '{0}' must have identical constraints."),This_condition_will_always_return_0_since_JavaScript_compares_objects_by_reference_not_value:la(2839,1,"This_condition_will_always_return_0_since_JavaScript_compares_objects_by_reference_not_value_2839","This condition will always return '{0}' since JavaScript compares objects by reference, not value."),An_interface_cannot_extend_a_primitive_type_like_0_It_can_only_extend_other_named_object_types:la(2840,1,"An_interface_cannot_extend_a_primitive_type_like_0_It_can_only_extend_other_named_object_types_2840","An interface cannot extend a primitive type like '{0}'. It can only extend other named object types."),_0_is_an_unused_renaming_of_1_Did_you_intend_to_use_it_as_a_type_annotation:la(2842,1,"_0_is_an_unused_renaming_of_1_Did_you_intend_to_use_it_as_a_type_annotation_2842","'{0}' is an unused renaming of '{1}'. Did you intend to use it as a type annotation?"),We_can_only_write_a_type_for_0_by_adding_a_type_for_the_entire_parameter_here:la(2843,1,"We_can_only_write_a_type_for_0_by_adding_a_type_for_the_entire_parameter_here_2843","We can only write a type for '{0}' by adding a type for the entire parameter here."),Type_of_instance_member_variable_0_cannot_reference_identifier_1_declared_in_the_constructor:la(2844,1,"Type_of_instance_member_variable_0_cannot_reference_identifier_1_declared_in_the_constructor_2844","Type of instance member variable '{0}' cannot reference identifier '{1}' declared in the constructor."),This_condition_will_always_return_0:la(2845,1,"This_condition_will_always_return_0_2845","This condition will always return '{0}'."),A_declaration_file_cannot_be_imported_without_import_type_Did_you_mean_to_import_an_implementation_file_0_instead:la(2846,1,"A_declaration_file_cannot_be_imported_without_import_type_Did_you_mean_to_import_an_implementation_f_2846","A declaration file cannot be imported without 'import type'. Did you mean to import an implementation file '{0}' instead?"),The_right_hand_side_of_an_instanceof_expression_must_not_be_an_instantiation_expression:la(2848,1,"The_right_hand_side_of_an_instanceof_expression_must_not_be_an_instantiation_expression_2848","The right-hand side of an 'instanceof' expression must not be an instantiation expression."),Target_signature_provides_too_few_arguments_Expected_0_or_more_but_got_1:la(2849,1,"Target_signature_provides_too_few_arguments_Expected_0_or_more_but_got_1_2849","Target signature provides too few arguments. Expected {0} or more, but got {1}."),The_initializer_of_a_using_declaration_must_be_either_an_object_with_a_Symbol_dispose_method_or_be_null_or_undefined:la(2850,1,"The_initializer_of_a_using_declaration_must_be_either_an_object_with_a_Symbol_dispose_method_or_be_n_2850","The initializer of a 'using' declaration must be either an object with a '[Symbol.dispose]()' method, or be 'null' or 'undefined'."),The_initializer_of_an_await_using_declaration_must_be_either_an_object_with_a_Symbol_asyncDispose_or_Symbol_dispose_method_or_be_null_or_undefined:la(2851,1,"The_initializer_of_an_await_using_declaration_must_be_either_an_object_with_a_Symbol_asyncDispose_or_2851","The initializer of an 'await using' declaration must be either an object with a '[Symbol.asyncDispose]()' or '[Symbol.dispose]()' method, or be 'null' or 'undefined'."),await_using_statements_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules:la(2852,1,"await_using_statements_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules_2852","'await using' statements are only allowed within async functions and at the top levels of modules."),await_using_statements_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_this_file_has_no_imports_or_exports_Consider_adding_an_empty_export_to_make_this_file_a_module:la(2853,1,"await_using_statements_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_th_2853","'await using' statements are only allowed at the top level of a file when that file is a module, but this file has no imports or exports. Consider adding an empty 'export {}' to make this file a module."),Top_level_await_using_statements_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_node16_node18_node20_nodenext_or_preserve_and_the_target_option_is_set_to_es2017_or_higher:la(2854,1,"Top_level_await_using_statements_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_sys_2854","Top-level 'await using' statements are only allowed when the 'module' option is set to 'es2022', 'esnext', 'system', 'node16', 'node18', 'node20', 'nodenext', or 'preserve', and the 'target' option is set to 'es2017' or higher."),Class_field_0_defined_by_the_parent_class_is_not_accessible_in_the_child_class_via_super:la(2855,1,"Class_field_0_defined_by_the_parent_class_is_not_accessible_in_the_child_class_via_super_2855","Class field '{0}' defined by the parent class is not accessible in the child class via super."),Import_attributes_are_not_allowed_on_statements_that_compile_to_CommonJS_require_calls:la(2856,1,"Import_attributes_are_not_allowed_on_statements_that_compile_to_CommonJS_require_calls_2856","Import attributes are not allowed on statements that compile to CommonJS 'require' calls."),Import_attributes_cannot_be_used_with_type_only_imports_or_exports:la(2857,1,"Import_attributes_cannot_be_used_with_type_only_imports_or_exports_2857","Import attributes cannot be used with type-only imports or exports."),Import_attribute_values_must_be_string_literal_expressions:la(2858,1,"Import_attribute_values_must_be_string_literal_expressions_2858","Import attribute values must be string literal expressions."),Excessive_complexity_comparing_types_0_and_1:la(2859,1,"Excessive_complexity_comparing_types_0_and_1_2859","Excessive complexity comparing types '{0}' and '{1}'."),The_left_hand_side_of_an_instanceof_expression_must_be_assignable_to_the_first_argument_of_the_right_hand_side_s_Symbol_hasInstance_method:la(2860,1,"The_left_hand_side_of_an_instanceof_expression_must_be_assignable_to_the_first_argument_of_the_right_2860","The left-hand side of an 'instanceof' expression must be assignable to the first argument of the right-hand side's '[Symbol.hasInstance]' method."),An_object_s_Symbol_hasInstance_method_must_return_a_boolean_value_for_it_to_be_used_on_the_right_hand_side_of_an_instanceof_expression:la(2861,1,"An_object_s_Symbol_hasInstance_method_must_return_a_boolean_value_for_it_to_be_used_on_the_right_han_2861","An object's '[Symbol.hasInstance]' method must return a boolean value for it to be used on the right-hand side of an 'instanceof' expression."),Type_0_is_generic_and_can_only_be_indexed_for_reading:la(2862,1,"Type_0_is_generic_and_can_only_be_indexed_for_reading_2862","Type '{0}' is generic and can only be indexed for reading."),A_class_cannot_extend_a_primitive_type_like_0_Classes_can_only_extend_constructable_values:la(2863,1,"A_class_cannot_extend_a_primitive_type_like_0_Classes_can_only_extend_constructable_values_2863","A class cannot extend a primitive type like '{0}'. Classes can only extend constructable values."),A_class_cannot_implement_a_primitive_type_like_0_It_can_only_implement_other_named_object_types:la(2864,1,"A_class_cannot_implement_a_primitive_type_like_0_It_can_only_implement_other_named_object_types_2864","A class cannot implement a primitive type like '{0}'. It can only implement other named object types."),Import_0_conflicts_with_local_value_so_must_be_declared_with_a_type_only_import_when_isolatedModules_is_enabled:la(2865,1,"Import_0_conflicts_with_local_value_so_must_be_declared_with_a_type_only_import_when_isolatedModules_2865","Import '{0}' conflicts with local value, so must be declared with a type-only import when 'isolatedModules' is enabled."),Import_0_conflicts_with_global_value_used_in_this_file_so_must_be_declared_with_a_type_only_import_when_isolatedModules_is_enabled:la(2866,1,"Import_0_conflicts_with_global_value_used_in_this_file_so_must_be_declared_with_a_type_only_import_w_2866","Import '{0}' conflicts with global value used in this file, so must be declared with a type-only import when 'isolatedModules' is enabled."),Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_Bun_Try_npm_i_save_dev_types_Slashbun:la(2867,1,"Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_Bun_Try_npm_i_save_dev_types_Slashbun_2867","Cannot find name '{0}'. Do you need to install type definitions for Bun? Try `npm i --save-dev @types/bun`."),Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_Bun_Try_npm_i_save_dev_types_Slashbun_and_then_add_bun_to_the_types_field_in_your_tsconfig:la(2868,1,"Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_Bun_Try_npm_i_save_dev_types_Slashbun_2868","Cannot find name '{0}'. Do you need to install type definitions for Bun? Try `npm i --save-dev @types/bun` and then add 'bun' to the types field in your tsconfig."),Right_operand_of_is_unreachable_because_the_left_operand_is_never_nullish:la(2869,1,"Right_operand_of_is_unreachable_because_the_left_operand_is_never_nullish_2869","Right operand of ?? is unreachable because the left operand is never nullish."),This_binary_expression_is_never_nullish_Are_you_missing_parentheses:la(2870,1,"This_binary_expression_is_never_nullish_Are_you_missing_parentheses_2870","This binary expression is never nullish. Are you missing parentheses?"),This_expression_is_always_nullish:la(2871,1,"This_expression_is_always_nullish_2871","This expression is always nullish."),This_kind_of_expression_is_always_truthy:la(2872,1,"This_kind_of_expression_is_always_truthy_2872","This kind of expression is always truthy."),This_kind_of_expression_is_always_falsy:la(2873,1,"This_kind_of_expression_is_always_falsy_2873","This kind of expression is always falsy."),This_JSX_tag_requires_0_to_be_in_scope_but_it_could_not_be_found:la(2874,1,"This_JSX_tag_requires_0_to_be_in_scope_but_it_could_not_be_found_2874","This JSX tag requires '{0}' to be in scope, but it could not be found."),This_JSX_tag_requires_the_module_path_0_to_exist_but_none_could_be_found_Make_sure_you_have_types_for_the_appropriate_package_installed:la(2875,1,"This_JSX_tag_requires_the_module_path_0_to_exist_but_none_could_be_found_Make_sure_you_have_types_fo_2875","This JSX tag requires the module path '{0}' to exist, but none could be found. Make sure you have types for the appropriate package installed."),This_relative_import_path_is_unsafe_to_rewrite_because_it_looks_like_a_file_name_but_actually_resolves_to_0:la(2876,1,"This_relative_import_path_is_unsafe_to_rewrite_because_it_looks_like_a_file_name_but_actually_resolv_2876",'This relative import path is unsafe to rewrite because it looks like a file name, but actually resolves to "{0}".'),This_import_uses_a_0_extension_to_resolve_to_an_input_TypeScript_file_but_will_not_be_rewritten_during_emit_because_it_is_not_a_relative_path:la(2877,1,"This_import_uses_a_0_extension_to_resolve_to_an_input_TypeScript_file_but_will_not_be_rewritten_duri_2877","This import uses a '{0}' extension to resolve to an input TypeScript file, but will not be rewritten during emit because it is not a relative path."),This_import_path_is_unsafe_to_rewrite_because_it_resolves_to_another_project_and_the_relative_path_between_the_projects_output_files_is_not_the_same_as_the_relative_path_between_its_input_files:la(2878,1,"This_import_path_is_unsafe_to_rewrite_because_it_resolves_to_another_project_and_the_relative_path_b_2878","This import path is unsafe to rewrite because it resolves to another project, and the relative path between the projects' output files is not the same as the relative path between its input files."),Using_JSX_fragments_requires_fragment_factory_0_to_be_in_scope_but_it_could_not_be_found:la(2879,1,"Using_JSX_fragments_requires_fragment_factory_0_to_be_in_scope_but_it_could_not_be_found_2879","Using JSX fragments requires fragment factory '{0}' to be in scope, but it could not be found."),Import_assertions_have_been_replaced_by_import_attributes_Use_with_instead_of_assert:la(2880,1,"Import_assertions_have_been_replaced_by_import_attributes_Use_with_instead_of_assert_2880","Import assertions have been replaced by import attributes. Use 'with' instead of 'assert'."),This_expression_is_never_nullish:la(2881,1,"This_expression_is_never_nullish_2881","This expression is never nullish."),Import_declaration_0_is_using_private_name_1:la(4e3,1,"Import_declaration_0_is_using_private_name_1_4000","Import declaration '{0}' is using private name '{1}'."),Type_parameter_0_of_exported_class_has_or_is_using_private_name_1:la(4002,1,"Type_parameter_0_of_exported_class_has_or_is_using_private_name_1_4002","Type parameter '{0}' of exported class has or is using private name '{1}'."),Type_parameter_0_of_exported_interface_has_or_is_using_private_name_1:la(4004,1,"Type_parameter_0_of_exported_interface_has_or_is_using_private_name_1_4004","Type parameter '{0}' of exported interface has or is using private name '{1}'."),Type_parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_1:la(4006,1,"Type_parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_1_4006","Type parameter '{0}' of constructor signature from exported interface has or is using private name '{1}'."),Type_parameter_0_of_call_signature_from_exported_interface_has_or_is_using_private_name_1:la(4008,1,"Type_parameter_0_of_call_signature_from_exported_interface_has_or_is_using_private_name_1_4008","Type parameter '{0}' of call signature from exported interface has or is using private name '{1}'."),Type_parameter_0_of_public_static_method_from_exported_class_has_or_is_using_private_name_1:la(4010,1,"Type_parameter_0_of_public_static_method_from_exported_class_has_or_is_using_private_name_1_4010","Type parameter '{0}' of public static method from exported class has or is using private name '{1}'."),Type_parameter_0_of_public_method_from_exported_class_has_or_is_using_private_name_1:la(4012,1,"Type_parameter_0_of_public_method_from_exported_class_has_or_is_using_private_name_1_4012","Type parameter '{0}' of public method from exported class has or is using private name '{1}'."),Type_parameter_0_of_method_from_exported_interface_has_or_is_using_private_name_1:la(4014,1,"Type_parameter_0_of_method_from_exported_interface_has_or_is_using_private_name_1_4014","Type parameter '{0}' of method from exported interface has or is using private name '{1}'."),Type_parameter_0_of_exported_function_has_or_is_using_private_name_1:la(4016,1,"Type_parameter_0_of_exported_function_has_or_is_using_private_name_1_4016","Type parameter '{0}' of exported function has or is using private name '{1}'."),Implements_clause_of_exported_class_0_has_or_is_using_private_name_1:la(4019,1,"Implements_clause_of_exported_class_0_has_or_is_using_private_name_1_4019","Implements clause of exported class '{0}' has or is using private name '{1}'."),extends_clause_of_exported_class_0_has_or_is_using_private_name_1:la(4020,1,"extends_clause_of_exported_class_0_has_or_is_using_private_name_1_4020","'extends' clause of exported class '{0}' has or is using private name '{1}'."),extends_clause_of_exported_class_has_or_is_using_private_name_0:la(4021,1,"extends_clause_of_exported_class_has_or_is_using_private_name_0_4021","'extends' clause of exported class has or is using private name '{0}'."),extends_clause_of_exported_interface_0_has_or_is_using_private_name_1:la(4022,1,"extends_clause_of_exported_interface_0_has_or_is_using_private_name_1_4022","'extends' clause of exported interface '{0}' has or is using private name '{1}'."),Exported_variable_0_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:la(4023,1,"Exported_variable_0_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named_4023","Exported variable '{0}' has or is using name '{1}' from external module {2} but cannot be named."),Exported_variable_0_has_or_is_using_name_1_from_private_module_2:la(4024,1,"Exported_variable_0_has_or_is_using_name_1_from_private_module_2_4024","Exported variable '{0}' has or is using name '{1}' from private module '{2}'."),Exported_variable_0_has_or_is_using_private_name_1:la(4025,1,"Exported_variable_0_has_or_is_using_private_name_1_4025","Exported variable '{0}' has or is using private name '{1}'."),Public_static_property_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:la(4026,1,"Public_static_property_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot__4026","Public static property '{0}' of exported class has or is using name '{1}' from external module {2} but cannot be named."),Public_static_property_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:la(4027,1,"Public_static_property_0_of_exported_class_has_or_is_using_name_1_from_private_module_2_4027","Public static property '{0}' of exported class has or is using name '{1}' from private module '{2}'."),Public_static_property_0_of_exported_class_has_or_is_using_private_name_1:la(4028,1,"Public_static_property_0_of_exported_class_has_or_is_using_private_name_1_4028","Public static property '{0}' of exported class has or is using private name '{1}'."),Public_property_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:la(4029,1,"Public_property_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_name_4029","Public property '{0}' of exported class has or is using name '{1}' from external module {2} but cannot be named."),Public_property_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:la(4030,1,"Public_property_0_of_exported_class_has_or_is_using_name_1_from_private_module_2_4030","Public property '{0}' of exported class has or is using name '{1}' from private module '{2}'."),Public_property_0_of_exported_class_has_or_is_using_private_name_1:la(4031,1,"Public_property_0_of_exported_class_has_or_is_using_private_name_1_4031","Public property '{0}' of exported class has or is using private name '{1}'."),Property_0_of_exported_interface_has_or_is_using_name_1_from_private_module_2:la(4032,1,"Property_0_of_exported_interface_has_or_is_using_name_1_from_private_module_2_4032","Property '{0}' of exported interface has or is using name '{1}' from private module '{2}'."),Property_0_of_exported_interface_has_or_is_using_private_name_1:la(4033,1,"Property_0_of_exported_interface_has_or_is_using_private_name_1_4033","Property '{0}' of exported interface has or is using private name '{1}'."),Parameter_type_of_public_static_setter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2:la(4034,1,"Parameter_type_of_public_static_setter_0_from_exported_class_has_or_is_using_name_1_from_private_mod_4034","Parameter type of public static setter '{0}' from exported class has or is using name '{1}' from private module '{2}'."),Parameter_type_of_public_static_setter_0_from_exported_class_has_or_is_using_private_name_1:la(4035,1,"Parameter_type_of_public_static_setter_0_from_exported_class_has_or_is_using_private_name_1_4035","Parameter type of public static setter '{0}' from exported class has or is using private name '{1}'."),Parameter_type_of_public_setter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2:la(4036,1,"Parameter_type_of_public_setter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2_4036","Parameter type of public setter '{0}' from exported class has or is using name '{1}' from private module '{2}'."),Parameter_type_of_public_setter_0_from_exported_class_has_or_is_using_private_name_1:la(4037,1,"Parameter_type_of_public_setter_0_from_exported_class_has_or_is_using_private_name_1_4037","Parameter type of public setter '{0}' from exported class has or is using private name '{1}'."),Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:la(4038,1,"Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_name_1_from_external_modul_4038","Return type of public static getter '{0}' from exported class has or is using name '{1}' from external module {2} but cannot be named."),Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2:la(4039,1,"Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_name_1_from_private_module_4039","Return type of public static getter '{0}' from exported class has or is using name '{1}' from private module '{2}'."),Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_private_name_1:la(4040,1,"Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_private_name_1_4040","Return type of public static getter '{0}' from exported class has or is using private name '{1}'."),Return_type_of_public_getter_0_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:la(4041,1,"Return_type_of_public_getter_0_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_4041","Return type of public getter '{0}' from exported class has or is using name '{1}' from external module {2} but cannot be named."),Return_type_of_public_getter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2:la(4042,1,"Return_type_of_public_getter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2_4042","Return type of public getter '{0}' from exported class has or is using name '{1}' from private module '{2}'."),Return_type_of_public_getter_0_from_exported_class_has_or_is_using_private_name_1:la(4043,1,"Return_type_of_public_getter_0_from_exported_class_has_or_is_using_private_name_1_4043","Return type of public getter '{0}' from exported class has or is using private name '{1}'."),Return_type_of_constructor_signature_from_exported_interface_has_or_is_using_name_0_from_private_module_1:la(4044,1,"Return_type_of_constructor_signature_from_exported_interface_has_or_is_using_name_0_from_private_mod_4044","Return type of constructor signature from exported interface has or is using name '{0}' from private module '{1}'."),Return_type_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_0:la(4045,1,"Return_type_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_0_4045","Return type of constructor signature from exported interface has or is using private name '{0}'."),Return_type_of_call_signature_from_exported_interface_has_or_is_using_name_0_from_private_module_1:la(4046,1,"Return_type_of_call_signature_from_exported_interface_has_or_is_using_name_0_from_private_module_1_4046","Return type of call signature from exported interface has or is using name '{0}' from private module '{1}'."),Return_type_of_call_signature_from_exported_interface_has_or_is_using_private_name_0:la(4047,1,"Return_type_of_call_signature_from_exported_interface_has_or_is_using_private_name_0_4047","Return type of call signature from exported interface has or is using private name '{0}'."),Return_type_of_index_signature_from_exported_interface_has_or_is_using_name_0_from_private_module_1:la(4048,1,"Return_type_of_index_signature_from_exported_interface_has_or_is_using_name_0_from_private_module_1_4048","Return type of index signature from exported interface has or is using name '{0}' from private module '{1}'."),Return_type_of_index_signature_from_exported_interface_has_or_is_using_private_name_0:la(4049,1,"Return_type_of_index_signature_from_exported_interface_has_or_is_using_private_name_0_4049","Return type of index signature from exported interface has or is using private name '{0}'."),Return_type_of_public_static_method_from_exported_class_has_or_is_using_name_0_from_external_module_1_but_cannot_be_named:la(4050,1,"Return_type_of_public_static_method_from_exported_class_has_or_is_using_name_0_from_external_module__4050","Return type of public static method from exported class has or is using name '{0}' from external module {1} but cannot be named."),Return_type_of_public_static_method_from_exported_class_has_or_is_using_name_0_from_private_module_1:la(4051,1,"Return_type_of_public_static_method_from_exported_class_has_or_is_using_name_0_from_private_module_1_4051","Return type of public static method from exported class has or is using name '{0}' from private module '{1}'."),Return_type_of_public_static_method_from_exported_class_has_or_is_using_private_name_0:la(4052,1,"Return_type_of_public_static_method_from_exported_class_has_or_is_using_private_name_0_4052","Return type of public static method from exported class has or is using private name '{0}'."),Return_type_of_public_method_from_exported_class_has_or_is_using_name_0_from_external_module_1_but_cannot_be_named:la(4053,1,"Return_type_of_public_method_from_exported_class_has_or_is_using_name_0_from_external_module_1_but_c_4053","Return type of public method from exported class has or is using name '{0}' from external module {1} but cannot be named."),Return_type_of_public_method_from_exported_class_has_or_is_using_name_0_from_private_module_1:la(4054,1,"Return_type_of_public_method_from_exported_class_has_or_is_using_name_0_from_private_module_1_4054","Return type of public method from exported class has or is using name '{0}' from private module '{1}'."),Return_type_of_public_method_from_exported_class_has_or_is_using_private_name_0:la(4055,1,"Return_type_of_public_method_from_exported_class_has_or_is_using_private_name_0_4055","Return type of public method from exported class has or is using private name '{0}'."),Return_type_of_method_from_exported_interface_has_or_is_using_name_0_from_private_module_1:la(4056,1,"Return_type_of_method_from_exported_interface_has_or_is_using_name_0_from_private_module_1_4056","Return type of method from exported interface has or is using name '{0}' from private module '{1}'."),Return_type_of_method_from_exported_interface_has_or_is_using_private_name_0:la(4057,1,"Return_type_of_method_from_exported_interface_has_or_is_using_private_name_0_4057","Return type of method from exported interface has or is using private name '{0}'."),Return_type_of_exported_function_has_or_is_using_name_0_from_external_module_1_but_cannot_be_named:la(4058,1,"Return_type_of_exported_function_has_or_is_using_name_0_from_external_module_1_but_cannot_be_named_4058","Return type of exported function has or is using name '{0}' from external module {1} but cannot be named."),Return_type_of_exported_function_has_or_is_using_name_0_from_private_module_1:la(4059,1,"Return_type_of_exported_function_has_or_is_using_name_0_from_private_module_1_4059","Return type of exported function has or is using name '{0}' from private module '{1}'."),Return_type_of_exported_function_has_or_is_using_private_name_0:la(4060,1,"Return_type_of_exported_function_has_or_is_using_private_name_0_4060","Return type of exported function has or is using private name '{0}'."),Parameter_0_of_constructor_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:la(4061,1,"Parameter_0_of_constructor_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_can_4061","Parameter '{0}' of constructor from exported class has or is using name '{1}' from external module {2} but cannot be named."),Parameter_0_of_constructor_from_exported_class_has_or_is_using_name_1_from_private_module_2:la(4062,1,"Parameter_0_of_constructor_from_exported_class_has_or_is_using_name_1_from_private_module_2_4062","Parameter '{0}' of constructor from exported class has or is using name '{1}' from private module '{2}'."),Parameter_0_of_constructor_from_exported_class_has_or_is_using_private_name_1:la(4063,1,"Parameter_0_of_constructor_from_exported_class_has_or_is_using_private_name_1_4063","Parameter '{0}' of constructor from exported class has or is using private name '{1}'."),Parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2:la(4064,1,"Parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_name_1_from_private_mod_4064","Parameter '{0}' of constructor signature from exported interface has or is using name '{1}' from private module '{2}'."),Parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_1:la(4065,1,"Parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_1_4065","Parameter '{0}' of constructor signature from exported interface has or is using private name '{1}'."),Parameter_0_of_call_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2:la(4066,1,"Parameter_0_of_call_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2_4066","Parameter '{0}' of call signature from exported interface has or is using name '{1}' from private module '{2}'."),Parameter_0_of_call_signature_from_exported_interface_has_or_is_using_private_name_1:la(4067,1,"Parameter_0_of_call_signature_from_exported_interface_has_or_is_using_private_name_1_4067","Parameter '{0}' of call signature from exported interface has or is using private name '{1}'."),Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:la(4068,1,"Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_name_1_from_external_module__4068","Parameter '{0}' of public static method from exported class has or is using name '{1}' from external module {2} but cannot be named."),Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_name_1_from_private_module_2:la(4069,1,"Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_name_1_from_private_module_2_4069","Parameter '{0}' of public static method from exported class has or is using name '{1}' from private module '{2}'."),Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_private_name_1:la(4070,1,"Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_private_name_1_4070","Parameter '{0}' of public static method from exported class has or is using private name '{1}'."),Parameter_0_of_public_method_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:la(4071,1,"Parameter_0_of_public_method_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_c_4071","Parameter '{0}' of public method from exported class has or is using name '{1}' from external module {2} but cannot be named."),Parameter_0_of_public_method_from_exported_class_has_or_is_using_name_1_from_private_module_2:la(4072,1,"Parameter_0_of_public_method_from_exported_class_has_or_is_using_name_1_from_private_module_2_4072","Parameter '{0}' of public method from exported class has or is using name '{1}' from private module '{2}'."),Parameter_0_of_public_method_from_exported_class_has_or_is_using_private_name_1:la(4073,1,"Parameter_0_of_public_method_from_exported_class_has_or_is_using_private_name_1_4073","Parameter '{0}' of public method from exported class has or is using private name '{1}'."),Parameter_0_of_method_from_exported_interface_has_or_is_using_name_1_from_private_module_2:la(4074,1,"Parameter_0_of_method_from_exported_interface_has_or_is_using_name_1_from_private_module_2_4074","Parameter '{0}' of method from exported interface has or is using name '{1}' from private module '{2}'."),Parameter_0_of_method_from_exported_interface_has_or_is_using_private_name_1:la(4075,1,"Parameter_0_of_method_from_exported_interface_has_or_is_using_private_name_1_4075","Parameter '{0}' of method from exported interface has or is using private name '{1}'."),Parameter_0_of_exported_function_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:la(4076,1,"Parameter_0_of_exported_function_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named_4076","Parameter '{0}' of exported function has or is using name '{1}' from external module {2} but cannot be named."),Parameter_0_of_exported_function_has_or_is_using_name_1_from_private_module_2:la(4077,1,"Parameter_0_of_exported_function_has_or_is_using_name_1_from_private_module_2_4077","Parameter '{0}' of exported function has or is using name '{1}' from private module '{2}'."),Parameter_0_of_exported_function_has_or_is_using_private_name_1:la(4078,1,"Parameter_0_of_exported_function_has_or_is_using_private_name_1_4078","Parameter '{0}' of exported function has or is using private name '{1}'."),Exported_type_alias_0_has_or_is_using_private_name_1:la(4081,1,"Exported_type_alias_0_has_or_is_using_private_name_1_4081","Exported type alias '{0}' has or is using private name '{1}'."),Default_export_of_the_module_has_or_is_using_private_name_0:la(4082,1,"Default_export_of_the_module_has_or_is_using_private_name_0_4082","Default export of the module has or is using private name '{0}'."),Type_parameter_0_of_exported_type_alias_has_or_is_using_private_name_1:la(4083,1,"Type_parameter_0_of_exported_type_alias_has_or_is_using_private_name_1_4083","Type parameter '{0}' of exported type alias has or is using private name '{1}'."),Exported_type_alias_0_has_or_is_using_private_name_1_from_module_2:la(4084,1,"Exported_type_alias_0_has_or_is_using_private_name_1_from_module_2_4084","Exported type alias '{0}' has or is using private name '{1}' from module {2}."),Extends_clause_for_inferred_type_0_has_or_is_using_private_name_1:la(4085,1,"Extends_clause_for_inferred_type_0_has_or_is_using_private_name_1_4085","Extends clause for inferred type '{0}' has or is using private name '{1}'."),Parameter_0_of_index_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2:la(4091,1,"Parameter_0_of_index_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2_4091","Parameter '{0}' of index signature from exported interface has or is using name '{1}' from private module '{2}'."),Parameter_0_of_index_signature_from_exported_interface_has_or_is_using_private_name_1:la(4092,1,"Parameter_0_of_index_signature_from_exported_interface_has_or_is_using_private_name_1_4092","Parameter '{0}' of index signature from exported interface has or is using private name '{1}'."),Property_0_of_exported_anonymous_class_type_may_not_be_private_or_protected:la(4094,1,"Property_0_of_exported_anonymous_class_type_may_not_be_private_or_protected_4094","Property '{0}' of exported anonymous class type may not be private or protected."),Public_static_method_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:la(4095,1,"Public_static_method_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_4095","Public static method '{0}' of exported class has or is using name '{1}' from external module {2} but cannot be named."),Public_static_method_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:la(4096,1,"Public_static_method_0_of_exported_class_has_or_is_using_name_1_from_private_module_2_4096","Public static method '{0}' of exported class has or is using name '{1}' from private module '{2}'."),Public_static_method_0_of_exported_class_has_or_is_using_private_name_1:la(4097,1,"Public_static_method_0_of_exported_class_has_or_is_using_private_name_1_4097","Public static method '{0}' of exported class has or is using private name '{1}'."),Public_method_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:la(4098,1,"Public_method_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named_4098","Public method '{0}' of exported class has or is using name '{1}' from external module {2} but cannot be named."),Public_method_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:la(4099,1,"Public_method_0_of_exported_class_has_or_is_using_name_1_from_private_module_2_4099","Public method '{0}' of exported class has or is using name '{1}' from private module '{2}'."),Public_method_0_of_exported_class_has_or_is_using_private_name_1:la(4100,1,"Public_method_0_of_exported_class_has_or_is_using_private_name_1_4100","Public method '{0}' of exported class has or is using private name '{1}'."),Method_0_of_exported_interface_has_or_is_using_name_1_from_private_module_2:la(4101,1,"Method_0_of_exported_interface_has_or_is_using_name_1_from_private_module_2_4101","Method '{0}' of exported interface has or is using name '{1}' from private module '{2}'."),Method_0_of_exported_interface_has_or_is_using_private_name_1:la(4102,1,"Method_0_of_exported_interface_has_or_is_using_private_name_1_4102","Method '{0}' of exported interface has or is using private name '{1}'."),Type_parameter_0_of_exported_mapped_object_type_is_using_private_name_1:la(4103,1,"Type_parameter_0_of_exported_mapped_object_type_is_using_private_name_1_4103","Type parameter '{0}' of exported mapped object type is using private name '{1}'."),The_type_0_is_readonly_and_cannot_be_assigned_to_the_mutable_type_1:la(4104,1,"The_type_0_is_readonly_and_cannot_be_assigned_to_the_mutable_type_1_4104","The type '{0}' is 'readonly' and cannot be assigned to the mutable type '{1}'."),Private_or_protected_member_0_cannot_be_accessed_on_a_type_parameter:la(4105,1,"Private_or_protected_member_0_cannot_be_accessed_on_a_type_parameter_4105","Private or protected member '{0}' cannot be accessed on a type parameter."),Parameter_0_of_accessor_has_or_is_using_private_name_1:la(4106,1,"Parameter_0_of_accessor_has_or_is_using_private_name_1_4106","Parameter '{0}' of accessor has or is using private name '{1}'."),Parameter_0_of_accessor_has_or_is_using_name_1_from_private_module_2:la(4107,1,"Parameter_0_of_accessor_has_or_is_using_name_1_from_private_module_2_4107","Parameter '{0}' of accessor has or is using name '{1}' from private module '{2}'."),Parameter_0_of_accessor_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:la(4108,1,"Parameter_0_of_accessor_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named_4108","Parameter '{0}' of accessor has or is using name '{1}' from external module '{2}' but cannot be named."),Type_arguments_for_0_circularly_reference_themselves:la(4109,1,"Type_arguments_for_0_circularly_reference_themselves_4109","Type arguments for '{0}' circularly reference themselves."),Tuple_type_arguments_circularly_reference_themselves:la(4110,1,"Tuple_type_arguments_circularly_reference_themselves_4110","Tuple type arguments circularly reference themselves."),Property_0_comes_from_an_index_signature_so_it_must_be_accessed_with_0:la(4111,1,"Property_0_comes_from_an_index_signature_so_it_must_be_accessed_with_0_4111","Property '{0}' comes from an index signature, so it must be accessed with ['{0}']."),This_member_cannot_have_an_override_modifier_because_its_containing_class_0_does_not_extend_another_class:la(4112,1,"This_member_cannot_have_an_override_modifier_because_its_containing_class_0_does_not_extend_another__4112","This member cannot have an 'override' modifier because its containing class '{0}' does not extend another class."),This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0:la(4113,1,"This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0_4113","This member cannot have an 'override' modifier because it is not declared in the base class '{0}'."),This_member_must_have_an_override_modifier_because_it_overrides_a_member_in_the_base_class_0:la(4114,1,"This_member_must_have_an_override_modifier_because_it_overrides_a_member_in_the_base_class_0_4114","This member must have an 'override' modifier because it overrides a member in the base class '{0}'."),This_parameter_property_must_have_an_override_modifier_because_it_overrides_a_member_in_base_class_0:la(4115,1,"This_parameter_property_must_have_an_override_modifier_because_it_overrides_a_member_in_base_class_0_4115","This parameter property must have an 'override' modifier because it overrides a member in base class '{0}'."),This_member_must_have_an_override_modifier_because_it_overrides_an_abstract_method_that_is_declared_in_the_base_class_0:la(4116,1,"This_member_must_have_an_override_modifier_because_it_overrides_an_abstract_method_that_is_declared__4116","This member must have an 'override' modifier because it overrides an abstract method that is declared in the base class '{0}'."),This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0_Did_you_mean_1:la(4117,1,"This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0_Did_you__4117","This member cannot have an 'override' modifier because it is not declared in the base class '{0}'. Did you mean '{1}'?"),The_type_of_this_node_cannot_be_serialized_because_its_property_0_cannot_be_serialized:la(4118,1,"The_type_of_this_node_cannot_be_serialized_because_its_property_0_cannot_be_serialized_4118","The type of this node cannot be serialized because its property '{0}' cannot be serialized."),This_member_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_class_0:la(4119,1,"This_member_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_4119","This member must have a JSDoc comment with an '@override' tag because it overrides a member in the base class '{0}'."),This_parameter_property_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_class_0:la(4120,1,"This_parameter_property_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_4120","This parameter property must have a JSDoc comment with an '@override' tag because it overrides a member in the base class '{0}'."),This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_its_containing_class_0_does_not_extend_another_class:la(4121,1,"This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_its_containing_class_0_does_not_4121","This member cannot have a JSDoc comment with an '@override' tag because its containing class '{0}' does not extend another class."),This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base_class_0:la(4122,1,"This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base__4122","This member cannot have a JSDoc comment with an '@override' tag because it is not declared in the base class '{0}'."),This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base_class_0_Did_you_mean_1:la(4123,1,"This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base__4123","This member cannot have a JSDoc comment with an 'override' tag because it is not declared in the base class '{0}'. Did you mean '{1}'?"),Compiler_option_0_of_value_1_is_unstable_Use_nightly_TypeScript_to_silence_this_error_Try_updating_with_npm_install_D_typescript_next:la(4124,1,"Compiler_option_0_of_value_1_is_unstable_Use_nightly_TypeScript_to_silence_this_error_Try_updating_w_4124","Compiler option '{0}' of value '{1}' is unstable. Use nightly TypeScript to silence this error. Try updating with 'npm install -D typescript@next'."),Each_declaration_of_0_1_differs_in_its_value_where_2_was_expected_but_3_was_given:la(4125,1,"Each_declaration_of_0_1_differs_in_its_value_where_2_was_expected_but_3_was_given_4125","Each declaration of '{0}.{1}' differs in its value, where '{2}' was expected but '{3}' was given."),One_value_of_0_1_is_the_string_2_and_the_other_is_assumed_to_be_an_unknown_numeric_value:la(4126,1,"One_value_of_0_1_is_the_string_2_and_the_other_is_assumed_to_be_an_unknown_numeric_value_4126","One value of '{0}.{1}' is the string '{2}', and the other is assumed to be an unknown numeric value."),This_member_cannot_have_an_override_modifier_because_its_name_is_dynamic:la(4127,1,"This_member_cannot_have_an_override_modifier_because_its_name_is_dynamic_4127","This member cannot have an 'override' modifier because its name is dynamic."),This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_its_name_is_dynamic:la(4128,1,"This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_its_name_is_dynamic_4128","This member cannot have a JSDoc comment with an '@override' tag because its name is dynamic."),The_current_host_does_not_support_the_0_option:la(5001,1,"The_current_host_does_not_support_the_0_option_5001","The current host does not support the '{0}' option."),Cannot_find_the_common_subdirectory_path_for_the_input_files:la(5009,1,"Cannot_find_the_common_subdirectory_path_for_the_input_files_5009","Cannot find the common subdirectory path for the input files."),File_specification_cannot_end_in_a_recursive_directory_wildcard_Asterisk_Asterisk_Colon_0:la(5010,1,"File_specification_cannot_end_in_a_recursive_directory_wildcard_Asterisk_Asterisk_Colon_0_5010","File specification cannot end in a recursive directory wildcard ('**'): '{0}'."),Cannot_read_file_0_Colon_1:la(5012,1,"Cannot_read_file_0_Colon_1_5012","Cannot read file '{0}': {1}."),Unknown_compiler_option_0:la(5023,1,"Unknown_compiler_option_0_5023","Unknown compiler option '{0}'."),Compiler_option_0_requires_a_value_of_type_1:la(5024,1,"Compiler_option_0_requires_a_value_of_type_1_5024","Compiler option '{0}' requires a value of type {1}."),Unknown_compiler_option_0_Did_you_mean_1:la(5025,1,"Unknown_compiler_option_0_Did_you_mean_1_5025","Unknown compiler option '{0}'. Did you mean '{1}'?"),Could_not_write_file_0_Colon_1:la(5033,1,"Could_not_write_file_0_Colon_1_5033","Could not write file '{0}': {1}."),Option_project_cannot_be_mixed_with_source_files_on_a_command_line:la(5042,1,"Option_project_cannot_be_mixed_with_source_files_on_a_command_line_5042","Option 'project' cannot be mixed with source files on a command line."),Option_isolatedModules_can_only_be_used_when_either_option_module_is_provided_or_option_target_is_ES2015_or_higher:la(5047,1,"Option_isolatedModules_can_only_be_used_when_either_option_module_is_provided_or_option_target_is_ES_5047","Option 'isolatedModules' can only be used when either option '--module' is provided or option 'target' is 'ES2015' or higher."),Option_0_can_only_be_used_when_either_option_inlineSourceMap_or_option_sourceMap_is_provided:la(5051,1,"Option_0_can_only_be_used_when_either_option_inlineSourceMap_or_option_sourceMap_is_provided_5051","Option '{0} can only be used when either option '--inlineSourceMap' or option '--sourceMap' is provided."),Option_0_cannot_be_specified_without_specifying_option_1:la(5052,1,"Option_0_cannot_be_specified_without_specifying_option_1_5052","Option '{0}' cannot be specified without specifying option '{1}'."),Option_0_cannot_be_specified_with_option_1:la(5053,1,"Option_0_cannot_be_specified_with_option_1_5053","Option '{0}' cannot be specified with option '{1}'."),A_tsconfig_json_file_is_already_defined_at_Colon_0:la(5054,1,"A_tsconfig_json_file_is_already_defined_at_Colon_0_5054","A 'tsconfig.json' file is already defined at: '{0}'."),Cannot_write_file_0_because_it_would_overwrite_input_file:la(5055,1,"Cannot_write_file_0_because_it_would_overwrite_input_file_5055","Cannot write file '{0}' because it would overwrite input file."),Cannot_write_file_0_because_it_would_be_overwritten_by_multiple_input_files:la(5056,1,"Cannot_write_file_0_because_it_would_be_overwritten_by_multiple_input_files_5056","Cannot write file '{0}' because it would be overwritten by multiple input files."),Cannot_find_a_tsconfig_json_file_at_the_specified_directory_Colon_0:la(5057,1,"Cannot_find_a_tsconfig_json_file_at_the_specified_directory_Colon_0_5057","Cannot find a tsconfig.json file at the specified directory: '{0}'."),The_specified_path_does_not_exist_Colon_0:la(5058,1,"The_specified_path_does_not_exist_Colon_0_5058","The specified path does not exist: '{0}'."),Invalid_value_for_reactNamespace_0_is_not_a_valid_identifier:la(5059,1,"Invalid_value_for_reactNamespace_0_is_not_a_valid_identifier_5059","Invalid value for '--reactNamespace'. '{0}' is not a valid identifier."),Pattern_0_can_have_at_most_one_Asterisk_character:la(5061,1,"Pattern_0_can_have_at_most_one_Asterisk_character_5061","Pattern '{0}' can have at most one '*' character."),Substitution_0_in_pattern_1_can_have_at_most_one_Asterisk_character:la(5062,1,"Substitution_0_in_pattern_1_can_have_at_most_one_Asterisk_character_5062","Substitution '{0}' in pattern '{1}' can have at most one '*' character."),Substitutions_for_pattern_0_should_be_an_array:la(5063,1,"Substitutions_for_pattern_0_should_be_an_array_5063","Substitutions for pattern '{0}' should be an array."),Substitution_0_for_pattern_1_has_incorrect_type_expected_string_got_2:la(5064,1,"Substitution_0_for_pattern_1_has_incorrect_type_expected_string_got_2_5064","Substitution '{0}' for pattern '{1}' has incorrect type, expected 'string', got '{2}'."),File_specification_cannot_contain_a_parent_directory_that_appears_after_a_recursive_directory_wildcard_Asterisk_Asterisk_Colon_0:la(5065,1,"File_specification_cannot_contain_a_parent_directory_that_appears_after_a_recursive_directory_wildca_5065","File specification cannot contain a parent directory ('..') that appears after a recursive directory wildcard ('**'): '{0}'."),Substitutions_for_pattern_0_shouldn_t_be_an_empty_array:la(5066,1,"Substitutions_for_pattern_0_shouldn_t_be_an_empty_array_5066","Substitutions for pattern '{0}' shouldn't be an empty array."),Invalid_value_for_jsxFactory_0_is_not_a_valid_identifier_or_qualified_name:la(5067,1,"Invalid_value_for_jsxFactory_0_is_not_a_valid_identifier_or_qualified_name_5067","Invalid value for 'jsxFactory'. '{0}' is not a valid identifier or qualified-name."),Adding_a_tsconfig_json_file_will_help_organize_projects_that_contain_both_TypeScript_and_JavaScript_files_Learn_more_at_https_Colon_Slash_Slashaka_ms_Slashtsconfig:la(5068,1,"Adding_a_tsconfig_json_file_will_help_organize_projects_that_contain_both_TypeScript_and_JavaScript__5068","Adding a tsconfig.json file will help organize projects that contain both TypeScript and JavaScript files. Learn more at https://aka.ms/tsconfig."),Option_0_cannot_be_specified_without_specifying_option_1_or_option_2:la(5069,1,"Option_0_cannot_be_specified_without_specifying_option_1_or_option_2_5069","Option '{0}' cannot be specified without specifying option '{1}' or option '{2}'."),Option_resolveJsonModule_cannot_be_specified_when_moduleResolution_is_set_to_classic:la(5070,1,"Option_resolveJsonModule_cannot_be_specified_when_moduleResolution_is_set_to_classic_5070","Option '--resolveJsonModule' cannot be specified when 'moduleResolution' is set to 'classic'."),Option_resolveJsonModule_cannot_be_specified_when_module_is_set_to_none_system_or_umd:la(5071,1,"Option_resolveJsonModule_cannot_be_specified_when_module_is_set_to_none_system_or_umd_5071","Option '--resolveJsonModule' cannot be specified when 'module' is set to 'none', 'system', or 'umd'."),Unknown_build_option_0:la(5072,1,"Unknown_build_option_0_5072","Unknown build option '{0}'."),Build_option_0_requires_a_value_of_type_1:la(5073,1,"Build_option_0_requires_a_value_of_type_1_5073","Build option '{0}' requires a value of type {1}."),Option_incremental_can_only_be_specified_using_tsconfig_emitting_to_single_file_or_when_option_tsBuildInfoFile_is_specified:la(5074,1,"Option_incremental_can_only_be_specified_using_tsconfig_emitting_to_single_file_or_when_option_tsBui_5074","Option '--incremental' can only be specified using tsconfig, emitting to single file or when option '--tsBuildInfoFile' is specified."),_0_is_assignable_to_the_constraint_of_type_1_but_1_could_be_instantiated_with_a_different_subtype_of_constraint_2:la(5075,1,"_0_is_assignable_to_the_constraint_of_type_1_but_1_could_be_instantiated_with_a_different_subtype_of_5075","'{0}' is assignable to the constraint of type '{1}', but '{1}' could be instantiated with a different subtype of constraint '{2}'."),_0_and_1_operations_cannot_be_mixed_without_parentheses:la(5076,1,"_0_and_1_operations_cannot_be_mixed_without_parentheses_5076","'{0}' and '{1}' operations cannot be mixed without parentheses."),Unknown_build_option_0_Did_you_mean_1:la(5077,1,"Unknown_build_option_0_Did_you_mean_1_5077","Unknown build option '{0}'. Did you mean '{1}'?"),Unknown_watch_option_0:la(5078,1,"Unknown_watch_option_0_5078","Unknown watch option '{0}'."),Unknown_watch_option_0_Did_you_mean_1:la(5079,1,"Unknown_watch_option_0_Did_you_mean_1_5079","Unknown watch option '{0}'. Did you mean '{1}'?"),Watch_option_0_requires_a_value_of_type_1:la(5080,1,"Watch_option_0_requires_a_value_of_type_1_5080","Watch option '{0}' requires a value of type {1}."),Cannot_find_a_tsconfig_json_file_at_the_current_directory_Colon_0:la(5081,1,"Cannot_find_a_tsconfig_json_file_at_the_current_directory_Colon_0_5081","Cannot find a tsconfig.json file at the current directory: {0}."),_0_could_be_instantiated_with_an_arbitrary_type_which_could_be_unrelated_to_1:la(5082,1,"_0_could_be_instantiated_with_an_arbitrary_type_which_could_be_unrelated_to_1_5082","'{0}' could be instantiated with an arbitrary type which could be unrelated to '{1}'."),Cannot_read_file_0:la(5083,1,"Cannot_read_file_0_5083","Cannot read file '{0}'."),A_tuple_member_cannot_be_both_optional_and_rest:la(5085,1,"A_tuple_member_cannot_be_both_optional_and_rest_5085","A tuple member cannot be both optional and rest."),A_labeled_tuple_element_is_declared_as_optional_with_a_question_mark_after_the_name_and_before_the_colon_rather_than_after_the_type:la(5086,1,"A_labeled_tuple_element_is_declared_as_optional_with_a_question_mark_after_the_name_and_before_the_c_5086","A labeled tuple element is declared as optional with a question mark after the name and before the colon, rather than after the type."),A_labeled_tuple_element_is_declared_as_rest_with_a_before_the_name_rather_than_before_the_type:la(5087,1,"A_labeled_tuple_element_is_declared_as_rest_with_a_before_the_name_rather_than_before_the_type_5087","A labeled tuple element is declared as rest with a '...' before the name, rather than before the type."),The_inferred_type_of_0_references_a_type_with_a_cyclic_structure_which_cannot_be_trivially_serialized_A_type_annotation_is_necessary:la(5088,1,"The_inferred_type_of_0_references_a_type_with_a_cyclic_structure_which_cannot_be_trivially_serialize_5088","The inferred type of '{0}' references a type with a cyclic structure which cannot be trivially serialized. A type annotation is necessary."),Option_0_cannot_be_specified_when_option_jsx_is_1:la(5089,1,"Option_0_cannot_be_specified_when_option_jsx_is_1_5089","Option '{0}' cannot be specified when option 'jsx' is '{1}'."),Non_relative_paths_are_not_allowed_when_baseUrl_is_not_set_Did_you_forget_a_leading_Slash:la(5090,1,"Non_relative_paths_are_not_allowed_when_baseUrl_is_not_set_Did_you_forget_a_leading_Slash_5090","Non-relative paths are not allowed when 'baseUrl' is not set. Did you forget a leading './'?"),Option_preserveConstEnums_cannot_be_disabled_when_0_is_enabled:la(5091,1,"Option_preserveConstEnums_cannot_be_disabled_when_0_is_enabled_5091","Option 'preserveConstEnums' cannot be disabled when '{0}' is enabled."),The_root_value_of_a_0_file_must_be_an_object:la(5092,1,"The_root_value_of_a_0_file_must_be_an_object_5092","The root value of a '{0}' file must be an object."),Compiler_option_0_may_only_be_used_with_build:la(5093,1,"Compiler_option_0_may_only_be_used_with_build_5093","Compiler option '--{0}' may only be used with '--build'."),Compiler_option_0_may_not_be_used_with_build:la(5094,1,"Compiler_option_0_may_not_be_used_with_build_5094","Compiler option '--{0}' may not be used with '--build'."),Option_0_can_only_be_used_when_module_is_set_to_preserve_or_to_es2015_or_later:la(5095,1,"Option_0_can_only_be_used_when_module_is_set_to_preserve_or_to_es2015_or_later_5095","Option '{0}' can only be used when 'module' is set to 'preserve' or to 'es2015' or later."),Option_allowImportingTsExtensions_can_only_be_used_when_either_noEmit_or_emitDeclarationOnly_is_set:la(5096,1,"Option_allowImportingTsExtensions_can_only_be_used_when_either_noEmit_or_emitDeclarationOnly_is_set_5096","Option 'allowImportingTsExtensions' can only be used when either 'noEmit' or 'emitDeclarationOnly' is set."),An_import_path_can_only_end_with_a_0_extension_when_allowImportingTsExtensions_is_enabled:la(5097,1,"An_import_path_can_only_end_with_a_0_extension_when_allowImportingTsExtensions_is_enabled_5097","An import path can only end with a '{0}' extension when 'allowImportingTsExtensions' is enabled."),Option_0_can_only_be_used_when_moduleResolution_is_set_to_node16_nodenext_or_bundler:la(5098,1,"Option_0_can_only_be_used_when_moduleResolution_is_set_to_node16_nodenext_or_bundler_5098","Option '{0}' can only be used when 'moduleResolution' is set to 'node16', 'nodenext', or 'bundler'."),Option_0_is_deprecated_and_will_stop_functioning_in_TypeScript_1_Specify_compilerOption_ignoreDeprecations_Colon_2_to_silence_this_error:la(5101,1,"Option_0_is_deprecated_and_will_stop_functioning_in_TypeScript_1_Specify_compilerOption_ignoreDeprec_5101","Option '{0}' is deprecated and will stop functioning in TypeScript {1}. Specify compilerOption '\"ignoreDeprecations\": \"{2}\"' to silence this error."),Option_0_has_been_removed_Please_remove_it_from_your_configuration:la(5102,1,"Option_0_has_been_removed_Please_remove_it_from_your_configuration_5102","Option '{0}' has been removed. Please remove it from your configuration."),Invalid_value_for_ignoreDeprecations:la(5103,1,"Invalid_value_for_ignoreDeprecations_5103","Invalid value for '--ignoreDeprecations'."),Option_0_is_redundant_and_cannot_be_specified_with_option_1:la(5104,1,"Option_0_is_redundant_and_cannot_be_specified_with_option_1_5104","Option '{0}' is redundant and cannot be specified with option '{1}'."),Option_verbatimModuleSyntax_cannot_be_used_when_module_is_set_to_UMD_AMD_or_System:la(5105,1,"Option_verbatimModuleSyntax_cannot_be_used_when_module_is_set_to_UMD_AMD_or_System_5105","Option 'verbatimModuleSyntax' cannot be used when 'module' is set to 'UMD', 'AMD', or 'System'."),Use_0_instead:la(5106,3,"Use_0_instead_5106","Use '{0}' instead."),Option_0_1_is_deprecated_and_will_stop_functioning_in_TypeScript_2_Specify_compilerOption_ignoreDeprecations_Colon_3_to_silence_this_error:la(5107,1,"Option_0_1_is_deprecated_and_will_stop_functioning_in_TypeScript_2_Specify_compilerOption_ignoreDepr_5107","Option '{0}={1}' is deprecated and will stop functioning in TypeScript {2}. Specify compilerOption '\"ignoreDeprecations\": \"{3}\"' to silence this error."),Option_0_1_has_been_removed_Please_remove_it_from_your_configuration:la(5108,1,"Option_0_1_has_been_removed_Please_remove_it_from_your_configuration_5108","Option '{0}={1}' has been removed. Please remove it from your configuration."),Option_moduleResolution_must_be_set_to_0_or_left_unspecified_when_option_module_is_set_to_1:la(5109,1,"Option_moduleResolution_must_be_set_to_0_or_left_unspecified_when_option_module_is_set_to_1_5109","Option 'moduleResolution' must be set to '{0}' (or left unspecified) when option 'module' is set to '{1}'."),Option_module_must_be_set_to_0_when_option_moduleResolution_is_set_to_1:la(5110,1,"Option_module_must_be_set_to_0_when_option_moduleResolution_is_set_to_1_5110","Option 'module' must be set to '{0}' when option 'moduleResolution' is set to '{1}'."),Generates_a_sourcemap_for_each_corresponding_d_ts_file:la(6e3,3,"Generates_a_sourcemap_for_each_corresponding_d_ts_file_6000","Generates a sourcemap for each corresponding '.d.ts' file."),Concatenate_and_emit_output_to_single_file:la(6001,3,"Concatenate_and_emit_output_to_single_file_6001","Concatenate and emit output to single file."),Generates_corresponding_d_ts_file:la(6002,3,"Generates_corresponding_d_ts_file_6002","Generates corresponding '.d.ts' file."),Specify_the_location_where_debugger_should_locate_TypeScript_files_instead_of_source_locations:la(6004,3,"Specify_the_location_where_debugger_should_locate_TypeScript_files_instead_of_source_locations_6004","Specify the location where debugger should locate TypeScript files instead of source locations."),Watch_input_files:la(6005,3,"Watch_input_files_6005","Watch input files."),Redirect_output_structure_to_the_directory:la(6006,3,"Redirect_output_structure_to_the_directory_6006","Redirect output structure to the directory."),Do_not_erase_const_enum_declarations_in_generated_code:la(6007,3,"Do_not_erase_const_enum_declarations_in_generated_code_6007","Do not erase const enum declarations in generated code."),Do_not_emit_outputs_if_any_errors_were_reported:la(6008,3,"Do_not_emit_outputs_if_any_errors_were_reported_6008","Do not emit outputs if any errors were reported."),Do_not_emit_comments_to_output:la(6009,3,"Do_not_emit_comments_to_output_6009","Do not emit comments to output."),Do_not_emit_outputs:la(6010,3,"Do_not_emit_outputs_6010","Do not emit outputs."),Allow_default_imports_from_modules_with_no_default_export_This_does_not_affect_code_emit_just_typechecking:la(6011,3,"Allow_default_imports_from_modules_with_no_default_export_This_does_not_affect_code_emit_just_typech_6011","Allow default imports from modules with no default export. This does not affect code emit, just typechecking."),Skip_type_checking_of_declaration_files:la(6012,3,"Skip_type_checking_of_declaration_files_6012","Skip type checking of declaration files."),Do_not_resolve_the_real_path_of_symlinks:la(6013,3,"Do_not_resolve_the_real_path_of_symlinks_6013","Do not resolve the real path of symlinks."),Only_emit_d_ts_declaration_files:la(6014,3,"Only_emit_d_ts_declaration_files_6014","Only emit '.d.ts' declaration files."),Specify_ECMAScript_target_version:la(6015,3,"Specify_ECMAScript_target_version_6015","Specify ECMAScript target version."),Specify_module_code_generation:la(6016,3,"Specify_module_code_generation_6016","Specify module code generation."),Print_this_message:la(6017,3,"Print_this_message_6017","Print this message."),Print_the_compiler_s_version:la(6019,3,"Print_the_compiler_s_version_6019","Print the compiler's version."),Compile_the_project_given_the_path_to_its_configuration_file_or_to_a_folder_with_a_tsconfig_json:la(6020,3,"Compile_the_project_given_the_path_to_its_configuration_file_or_to_a_folder_with_a_tsconfig_json_6020","Compile the project given the path to its configuration file, or to a folder with a 'tsconfig.json'."),Syntax_Colon_0:la(6023,3,"Syntax_Colon_0_6023","Syntax: {0}"),options:la(6024,3,"options_6024","options"),file:la(6025,3,"file_6025","file"),Examples_Colon_0:la(6026,3,"Examples_Colon_0_6026","Examples: {0}"),Options_Colon:la(6027,3,"Options_Colon_6027","Options:"),Version_0:la(6029,3,"Version_0_6029","Version {0}"),Insert_command_line_options_and_files_from_a_file:la(6030,3,"Insert_command_line_options_and_files_from_a_file_6030","Insert command line options and files from a file."),Starting_compilation_in_watch_mode:la(6031,3,"Starting_compilation_in_watch_mode_6031","Starting compilation in watch mode..."),File_change_detected_Starting_incremental_compilation:la(6032,3,"File_change_detected_Starting_incremental_compilation_6032","File change detected. Starting incremental compilation..."),KIND:la(6034,3,"KIND_6034","KIND"),FILE:la(6035,3,"FILE_6035","FILE"),VERSION:la(6036,3,"VERSION_6036","VERSION"),LOCATION:la(6037,3,"LOCATION_6037","LOCATION"),DIRECTORY:la(6038,3,"DIRECTORY_6038","DIRECTORY"),STRATEGY:la(6039,3,"STRATEGY_6039","STRATEGY"),FILE_OR_DIRECTORY:la(6040,3,"FILE_OR_DIRECTORY_6040","FILE OR DIRECTORY"),Errors_Files:la(6041,3,"Errors_Files_6041","Errors Files"),Generates_corresponding_map_file:la(6043,3,"Generates_corresponding_map_file_6043","Generates corresponding '.map' file."),Compiler_option_0_expects_an_argument:la(6044,1,"Compiler_option_0_expects_an_argument_6044","Compiler option '{0}' expects an argument."),Unterminated_quoted_string_in_response_file_0:la(6045,1,"Unterminated_quoted_string_in_response_file_0_6045","Unterminated quoted string in response file '{0}'."),Argument_for_0_option_must_be_Colon_1:la(6046,1,"Argument_for_0_option_must_be_Colon_1_6046","Argument for '{0}' option must be: {1}."),Locale_must_be_of_the_form_language_or_language_territory_For_example_0_or_1:la(6048,1,"Locale_must_be_of_the_form_language_or_language_territory_For_example_0_or_1_6048","Locale must be of the form or -. For example '{0}' or '{1}'."),Unable_to_open_file_0:la(6050,1,"Unable_to_open_file_0_6050","Unable to open file '{0}'."),Corrupted_locale_file_0:la(6051,1,"Corrupted_locale_file_0_6051","Corrupted locale file {0}."),Raise_error_on_expressions_and_declarations_with_an_implied_any_type:la(6052,3,"Raise_error_on_expressions_and_declarations_with_an_implied_any_type_6052","Raise error on expressions and declarations with an implied 'any' type."),File_0_not_found:la(6053,1,"File_0_not_found_6053","File '{0}' not found."),File_0_has_an_unsupported_extension_The_only_supported_extensions_are_1:la(6054,1,"File_0_has_an_unsupported_extension_The_only_supported_extensions_are_1_6054","File '{0}' has an unsupported extension. The only supported extensions are {1}."),Suppress_noImplicitAny_errors_for_indexing_objects_lacking_index_signatures:la(6055,3,"Suppress_noImplicitAny_errors_for_indexing_objects_lacking_index_signatures_6055","Suppress noImplicitAny errors for indexing objects lacking index signatures."),Do_not_emit_declarations_for_code_that_has_an_internal_annotation:la(6056,3,"Do_not_emit_declarations_for_code_that_has_an_internal_annotation_6056","Do not emit declarations for code that has an '@internal' annotation."),Specify_the_root_directory_of_input_files_Use_to_control_the_output_directory_structure_with_outDir:la(6058,3,"Specify_the_root_directory_of_input_files_Use_to_control_the_output_directory_structure_with_outDir_6058","Specify the root directory of input files. Use to control the output directory structure with --outDir."),File_0_is_not_under_rootDir_1_rootDir_is_expected_to_contain_all_source_files:la(6059,1,"File_0_is_not_under_rootDir_1_rootDir_is_expected_to_contain_all_source_files_6059","File '{0}' is not under 'rootDir' '{1}'. 'rootDir' is expected to contain all source files."),Specify_the_end_of_line_sequence_to_be_used_when_emitting_files_Colon_CRLF_dos_or_LF_unix:la(6060,3,"Specify_the_end_of_line_sequence_to_be_used_when_emitting_files_Colon_CRLF_dos_or_LF_unix_6060","Specify the end of line sequence to be used when emitting files: 'CRLF' (dos) or 'LF' (unix)."),NEWLINE:la(6061,3,"NEWLINE_6061","NEWLINE"),Option_0_can_only_be_specified_in_tsconfig_json_file_or_set_to_null_on_command_line:la(6064,1,"Option_0_can_only_be_specified_in_tsconfig_json_file_or_set_to_null_on_command_line_6064","Option '{0}' can only be specified in 'tsconfig.json' file or set to 'null' on command line."),Enables_experimental_support_for_ES7_decorators:la(6065,3,"Enables_experimental_support_for_ES7_decorators_6065","Enables experimental support for ES7 decorators."),Enables_experimental_support_for_emitting_type_metadata_for_decorators:la(6066,3,"Enables_experimental_support_for_emitting_type_metadata_for_decorators_6066","Enables experimental support for emitting type metadata for decorators."),Initializes_a_TypeScript_project_and_creates_a_tsconfig_json_file:la(6070,3,"Initializes_a_TypeScript_project_and_creates_a_tsconfig_json_file_6070","Initializes a TypeScript project and creates a tsconfig.json file."),Successfully_created_a_tsconfig_json_file:la(6071,3,"Successfully_created_a_tsconfig_json_file_6071","Successfully created a tsconfig.json file."),Suppress_excess_property_checks_for_object_literals:la(6072,3,"Suppress_excess_property_checks_for_object_literals_6072","Suppress excess property checks for object literals."),Stylize_errors_and_messages_using_color_and_context_experimental:la(6073,3,"Stylize_errors_and_messages_using_color_and_context_experimental_6073","Stylize errors and messages using color and context (experimental)."),Do_not_report_errors_on_unused_labels:la(6074,3,"Do_not_report_errors_on_unused_labels_6074","Do not report errors on unused labels."),Report_error_when_not_all_code_paths_in_function_return_a_value:la(6075,3,"Report_error_when_not_all_code_paths_in_function_return_a_value_6075","Report error when not all code paths in function return a value."),Report_errors_for_fallthrough_cases_in_switch_statement:la(6076,3,"Report_errors_for_fallthrough_cases_in_switch_statement_6076","Report errors for fallthrough cases in switch statement."),Do_not_report_errors_on_unreachable_code:la(6077,3,"Do_not_report_errors_on_unreachable_code_6077","Do not report errors on unreachable code."),Disallow_inconsistently_cased_references_to_the_same_file:la(6078,3,"Disallow_inconsistently_cased_references_to_the_same_file_6078","Disallow inconsistently-cased references to the same file."),Specify_library_files_to_be_included_in_the_compilation:la(6079,3,"Specify_library_files_to_be_included_in_the_compilation_6079","Specify library files to be included in the compilation."),Specify_JSX_code_generation:la(6080,3,"Specify_JSX_code_generation_6080","Specify JSX code generation."),Only_amd_and_system_modules_are_supported_alongside_0:la(6082,1,"Only_amd_and_system_modules_are_supported_alongside_0_6082","Only 'amd' and 'system' modules are supported alongside --{0}."),Base_directory_to_resolve_non_absolute_module_names:la(6083,3,"Base_directory_to_resolve_non_absolute_module_names_6083","Base directory to resolve non-absolute module names."),Deprecated_Use_jsxFactory_instead_Specify_the_object_invoked_for_createElement_when_targeting_react_JSX_emit:la(6084,3,"Deprecated_Use_jsxFactory_instead_Specify_the_object_invoked_for_createElement_when_targeting_react__6084","[Deprecated] Use '--jsxFactory' instead. Specify the object invoked for createElement when targeting 'react' JSX emit"),Enable_tracing_of_the_name_resolution_process:la(6085,3,"Enable_tracing_of_the_name_resolution_process_6085","Enable tracing of the name resolution process."),Resolving_module_0_from_1:la(6086,3,"Resolving_module_0_from_1_6086","======== Resolving module '{0}' from '{1}'. ========"),Explicitly_specified_module_resolution_kind_Colon_0:la(6087,3,"Explicitly_specified_module_resolution_kind_Colon_0_6087","Explicitly specified module resolution kind: '{0}'."),Module_resolution_kind_is_not_specified_using_0:la(6088,3,"Module_resolution_kind_is_not_specified_using_0_6088","Module resolution kind is not specified, using '{0}'."),Module_name_0_was_successfully_resolved_to_1:la(6089,3,"Module_name_0_was_successfully_resolved_to_1_6089","======== Module name '{0}' was successfully resolved to '{1}'. ========"),Module_name_0_was_not_resolved:la(6090,3,"Module_name_0_was_not_resolved_6090","======== Module name '{0}' was not resolved. ========"),paths_option_is_specified_looking_for_a_pattern_to_match_module_name_0:la(6091,3,"paths_option_is_specified_looking_for_a_pattern_to_match_module_name_0_6091","'paths' option is specified, looking for a pattern to match module name '{0}'."),Module_name_0_matched_pattern_1:la(6092,3,"Module_name_0_matched_pattern_1_6092","Module name '{0}', matched pattern '{1}'."),Trying_substitution_0_candidate_module_location_Colon_1:la(6093,3,"Trying_substitution_0_candidate_module_location_Colon_1_6093","Trying substitution '{0}', candidate module location: '{1}'."),Resolving_module_name_0_relative_to_base_url_1_2:la(6094,3,"Resolving_module_name_0_relative_to_base_url_1_2_6094","Resolving module name '{0}' relative to base url '{1}' - '{2}'."),Loading_module_as_file_Slash_folder_candidate_module_location_0_target_file_types_Colon_1:la(6095,3,"Loading_module_as_file_Slash_folder_candidate_module_location_0_target_file_types_Colon_1_6095","Loading module as file / folder, candidate module location '{0}', target file types: {1}."),File_0_does_not_exist:la(6096,3,"File_0_does_not_exist_6096","File '{0}' does not exist."),File_0_exists_use_it_as_a_name_resolution_result:la(6097,3,"File_0_exists_use_it_as_a_name_resolution_result_6097","File '{0}' exists - use it as a name resolution result."),Loading_module_0_from_node_modules_folder_target_file_types_Colon_1:la(6098,3,"Loading_module_0_from_node_modules_folder_target_file_types_Colon_1_6098","Loading module '{0}' from 'node_modules' folder, target file types: {1}."),Found_package_json_at_0:la(6099,3,"Found_package_json_at_0_6099","Found 'package.json' at '{0}'."),package_json_does_not_have_a_0_field:la(6100,3,"package_json_does_not_have_a_0_field_6100","'package.json' does not have a '{0}' field."),package_json_has_0_field_1_that_references_2:la(6101,3,"package_json_has_0_field_1_that_references_2_6101","'package.json' has '{0}' field '{1}' that references '{2}'."),Allow_javascript_files_to_be_compiled:la(6102,3,"Allow_javascript_files_to_be_compiled_6102","Allow javascript files to be compiled."),Checking_if_0_is_the_longest_matching_prefix_for_1_2:la(6104,3,"Checking_if_0_is_the_longest_matching_prefix_for_1_2_6104","Checking if '{0}' is the longest matching prefix for '{1}' - '{2}'."),Expected_type_of_0_field_in_package_json_to_be_1_got_2:la(6105,3,"Expected_type_of_0_field_in_package_json_to_be_1_got_2_6105","Expected type of '{0}' field in 'package.json' to be '{1}', got '{2}'."),baseUrl_option_is_set_to_0_using_this_value_to_resolve_non_relative_module_name_1:la(6106,3,"baseUrl_option_is_set_to_0_using_this_value_to_resolve_non_relative_module_name_1_6106","'baseUrl' option is set to '{0}', using this value to resolve non-relative module name '{1}'."),rootDirs_option_is_set_using_it_to_resolve_relative_module_name_0:la(6107,3,"rootDirs_option_is_set_using_it_to_resolve_relative_module_name_0_6107","'rootDirs' option is set, using it to resolve relative module name '{0}'."),Longest_matching_prefix_for_0_is_1:la(6108,3,"Longest_matching_prefix_for_0_is_1_6108","Longest matching prefix for '{0}' is '{1}'."),Loading_0_from_the_root_dir_1_candidate_location_2:la(6109,3,"Loading_0_from_the_root_dir_1_candidate_location_2_6109","Loading '{0}' from the root dir '{1}', candidate location '{2}'."),Trying_other_entries_in_rootDirs:la(6110,3,"Trying_other_entries_in_rootDirs_6110","Trying other entries in 'rootDirs'."),Module_resolution_using_rootDirs_has_failed:la(6111,3,"Module_resolution_using_rootDirs_has_failed_6111","Module resolution using 'rootDirs' has failed."),Do_not_emit_use_strict_directives_in_module_output:la(6112,3,"Do_not_emit_use_strict_directives_in_module_output_6112","Do not emit 'use strict' directives in module output."),Enable_strict_null_checks:la(6113,3,"Enable_strict_null_checks_6113","Enable strict null checks."),Unknown_option_excludes_Did_you_mean_exclude:la(6114,1,"Unknown_option_excludes_Did_you_mean_exclude_6114","Unknown option 'excludes'. Did you mean 'exclude'?"),Raise_error_on_this_expressions_with_an_implied_any_type:la(6115,3,"Raise_error_on_this_expressions_with_an_implied_any_type_6115","Raise error on 'this' expressions with an implied 'any' type."),Resolving_type_reference_directive_0_containing_file_1_root_directory_2:la(6116,3,"Resolving_type_reference_directive_0_containing_file_1_root_directory_2_6116","======== Resolving type reference directive '{0}', containing file '{1}', root directory '{2}'. ========"),Type_reference_directive_0_was_successfully_resolved_to_1_primary_Colon_2:la(6119,3,"Type_reference_directive_0_was_successfully_resolved_to_1_primary_Colon_2_6119","======== Type reference directive '{0}' was successfully resolved to '{1}', primary: {2}. ========"),Type_reference_directive_0_was_not_resolved:la(6120,3,"Type_reference_directive_0_was_not_resolved_6120","======== Type reference directive '{0}' was not resolved. ========"),Resolving_with_primary_search_path_0:la(6121,3,"Resolving_with_primary_search_path_0_6121","Resolving with primary search path '{0}'."),Root_directory_cannot_be_determined_skipping_primary_search_paths:la(6122,3,"Root_directory_cannot_be_determined_skipping_primary_search_paths_6122","Root directory cannot be determined, skipping primary search paths."),Resolving_type_reference_directive_0_containing_file_1_root_directory_not_set:la(6123,3,"Resolving_type_reference_directive_0_containing_file_1_root_directory_not_set_6123","======== Resolving type reference directive '{0}', containing file '{1}', root directory not set. ========"),Type_declaration_files_to_be_included_in_compilation:la(6124,3,"Type_declaration_files_to_be_included_in_compilation_6124","Type declaration files to be included in compilation."),Looking_up_in_node_modules_folder_initial_location_0:la(6125,3,"Looking_up_in_node_modules_folder_initial_location_0_6125","Looking up in 'node_modules' folder, initial location '{0}'."),Containing_file_is_not_specified_and_root_directory_cannot_be_determined_skipping_lookup_in_node_modules_folder:la(6126,3,"Containing_file_is_not_specified_and_root_directory_cannot_be_determined_skipping_lookup_in_node_mod_6126","Containing file is not specified and root directory cannot be determined, skipping lookup in 'node_modules' folder."),Resolving_type_reference_directive_0_containing_file_not_set_root_directory_1:la(6127,3,"Resolving_type_reference_directive_0_containing_file_not_set_root_directory_1_6127","======== Resolving type reference directive '{0}', containing file not set, root directory '{1}'. ========"),Resolving_type_reference_directive_0_containing_file_not_set_root_directory_not_set:la(6128,3,"Resolving_type_reference_directive_0_containing_file_not_set_root_directory_not_set_6128","======== Resolving type reference directive '{0}', containing file not set, root directory not set. ========"),Resolving_real_path_for_0_result_1:la(6130,3,"Resolving_real_path_for_0_result_1_6130","Resolving real path for '{0}', result '{1}'."),Cannot_compile_modules_using_option_0_unless_the_module_flag_is_amd_or_system:la(6131,1,"Cannot_compile_modules_using_option_0_unless_the_module_flag_is_amd_or_system_6131","Cannot compile modules using option '{0}' unless the '--module' flag is 'amd' or 'system'."),File_name_0_has_a_1_extension_stripping_it:la(6132,3,"File_name_0_has_a_1_extension_stripping_it_6132","File name '{0}' has a '{1}' extension - stripping it."),_0_is_declared_but_its_value_is_never_read:la(6133,1,"_0_is_declared_but_its_value_is_never_read_6133","'{0}' is declared but its value is never read.",!0),Report_errors_on_unused_locals:la(6134,3,"Report_errors_on_unused_locals_6134","Report errors on unused locals."),Report_errors_on_unused_parameters:la(6135,3,"Report_errors_on_unused_parameters_6135","Report errors on unused parameters."),The_maximum_dependency_depth_to_search_under_node_modules_and_load_JavaScript_files:la(6136,3,"The_maximum_dependency_depth_to_search_under_node_modules_and_load_JavaScript_files_6136","The maximum dependency depth to search under node_modules and load JavaScript files."),Cannot_import_type_declaration_files_Consider_importing_0_instead_of_1:la(6137,1,"Cannot_import_type_declaration_files_Consider_importing_0_instead_of_1_6137","Cannot import type declaration files. Consider importing '{0}' instead of '{1}'."),Property_0_is_declared_but_its_value_is_never_read:la(6138,1,"Property_0_is_declared_but_its_value_is_never_read_6138","Property '{0}' is declared but its value is never read.",!0),Import_emit_helpers_from_tslib:la(6139,3,"Import_emit_helpers_from_tslib_6139","Import emit helpers from 'tslib'."),Auto_discovery_for_typings_is_enabled_in_project_0_Running_extra_resolution_pass_for_module_1_using_cache_location_2:la(6140,1,"Auto_discovery_for_typings_is_enabled_in_project_0_Running_extra_resolution_pass_for_module_1_using__6140","Auto discovery for typings is enabled in project '{0}'. Running extra resolution pass for module '{1}' using cache location '{2}'."),Parse_in_strict_mode_and_emit_use_strict_for_each_source_file:la(6141,3,"Parse_in_strict_mode_and_emit_use_strict_for_each_source_file_6141",'Parse in strict mode and emit "use strict" for each source file.'),Module_0_was_resolved_to_1_but_jsx_is_not_set:la(6142,1,"Module_0_was_resolved_to_1_but_jsx_is_not_set_6142","Module '{0}' was resolved to '{1}', but '--jsx' is not set."),Module_0_was_resolved_as_locally_declared_ambient_module_in_file_1:la(6144,3,"Module_0_was_resolved_as_locally_declared_ambient_module_in_file_1_6144","Module '{0}' was resolved as locally declared ambient module in file '{1}'."),Specify_the_JSX_factory_function_to_use_when_targeting_react_JSX_emit_e_g_React_createElement_or_h:la(6146,3,"Specify_the_JSX_factory_function_to_use_when_targeting_react_JSX_emit_e_g_React_createElement_or_h_6146","Specify the JSX factory function to use when targeting 'react' JSX emit, e.g. 'React.createElement' or 'h'."),Resolution_for_module_0_was_found_in_cache_from_location_1:la(6147,3,"Resolution_for_module_0_was_found_in_cache_from_location_1_6147","Resolution for module '{0}' was found in cache from location '{1}'."),Directory_0_does_not_exist_skipping_all_lookups_in_it:la(6148,3,"Directory_0_does_not_exist_skipping_all_lookups_in_it_6148","Directory '{0}' does not exist, skipping all lookups in it."),Show_diagnostic_information:la(6149,3,"Show_diagnostic_information_6149","Show diagnostic information."),Show_verbose_diagnostic_information:la(6150,3,"Show_verbose_diagnostic_information_6150","Show verbose diagnostic information."),Emit_a_single_file_with_source_maps_instead_of_having_a_separate_file:la(6151,3,"Emit_a_single_file_with_source_maps_instead_of_having_a_separate_file_6151","Emit a single file with source maps instead of having a separate file."),Emit_the_source_alongside_the_sourcemaps_within_a_single_file_requires_inlineSourceMap_or_sourceMap_to_be_set:la(6152,3,"Emit_the_source_alongside_the_sourcemaps_within_a_single_file_requires_inlineSourceMap_or_sourceMap__6152","Emit the source alongside the sourcemaps within a single file; requires '--inlineSourceMap' or '--sourceMap' to be set."),Transpile_each_file_as_a_separate_module_similar_to_ts_transpileModule:la(6153,3,"Transpile_each_file_as_a_separate_module_similar_to_ts_transpileModule_6153","Transpile each file as a separate module (similar to 'ts.transpileModule')."),Print_names_of_generated_files_part_of_the_compilation:la(6154,3,"Print_names_of_generated_files_part_of_the_compilation_6154","Print names of generated files part of the compilation."),Print_names_of_files_part_of_the_compilation:la(6155,3,"Print_names_of_files_part_of_the_compilation_6155","Print names of files part of the compilation."),The_locale_used_when_displaying_messages_to_the_user_e_g_en_us:la(6156,3,"The_locale_used_when_displaying_messages_to_the_user_e_g_en_us_6156","The locale used when displaying messages to the user (e.g. 'en-us')"),Do_not_generate_custom_helper_functions_like_extends_in_compiled_output:la(6157,3,"Do_not_generate_custom_helper_functions_like_extends_in_compiled_output_6157","Do not generate custom helper functions like '__extends' in compiled output."),Do_not_include_the_default_library_file_lib_d_ts:la(6158,3,"Do_not_include_the_default_library_file_lib_d_ts_6158","Do not include the default library file (lib.d.ts)."),Do_not_add_triple_slash_references_or_imported_modules_to_the_list_of_compiled_files:la(6159,3,"Do_not_add_triple_slash_references_or_imported_modules_to_the_list_of_compiled_files_6159","Do not add triple-slash references or imported modules to the list of compiled files."),Deprecated_Use_skipLibCheck_instead_Skip_type_checking_of_default_library_declaration_files:la(6160,3,"Deprecated_Use_skipLibCheck_instead_Skip_type_checking_of_default_library_declaration_files_6160","[Deprecated] Use '--skipLibCheck' instead. Skip type checking of default library declaration files."),List_of_folders_to_include_type_definitions_from:la(6161,3,"List_of_folders_to_include_type_definitions_from_6161","List of folders to include type definitions from."),Disable_size_limitations_on_JavaScript_projects:la(6162,3,"Disable_size_limitations_on_JavaScript_projects_6162","Disable size limitations on JavaScript projects."),The_character_set_of_the_input_files:la(6163,3,"The_character_set_of_the_input_files_6163","The character set of the input files."),Skipping_module_0_that_looks_like_an_absolute_URI_target_file_types_Colon_1:la(6164,3,"Skipping_module_0_that_looks_like_an_absolute_URI_target_file_types_Colon_1_6164","Skipping module '{0}' that looks like an absolute URI, target file types: {1}."),Do_not_truncate_error_messages:la(6165,3,"Do_not_truncate_error_messages_6165","Do not truncate error messages."),Output_directory_for_generated_declaration_files:la(6166,3,"Output_directory_for_generated_declaration_files_6166","Output directory for generated declaration files."),A_series_of_entries_which_re_map_imports_to_lookup_locations_relative_to_the_baseUrl:la(6167,3,"A_series_of_entries_which_re_map_imports_to_lookup_locations_relative_to_the_baseUrl_6167","A series of entries which re-map imports to lookup locations relative to the 'baseUrl'."),List_of_root_folders_whose_combined_content_represents_the_structure_of_the_project_at_runtime:la(6168,3,"List_of_root_folders_whose_combined_content_represents_the_structure_of_the_project_at_runtime_6168","List of root folders whose combined content represents the structure of the project at runtime."),Show_all_compiler_options:la(6169,3,"Show_all_compiler_options_6169","Show all compiler options."),Deprecated_Use_outFile_instead_Concatenate_and_emit_output_to_single_file:la(6170,3,"Deprecated_Use_outFile_instead_Concatenate_and_emit_output_to_single_file_6170","[Deprecated] Use '--outFile' instead. Concatenate and emit output to single file"),Command_line_Options:la(6171,3,"Command_line_Options_6171","Command-line Options"),Provide_full_support_for_iterables_in_for_of_spread_and_destructuring_when_targeting_ES5:la(6179,3,"Provide_full_support_for_iterables_in_for_of_spread_and_destructuring_when_targeting_ES5_6179","Provide full support for iterables in 'for-of', spread, and destructuring when targeting 'ES5'."),Enable_all_strict_type_checking_options:la(6180,3,"Enable_all_strict_type_checking_options_6180","Enable all strict type-checking options."),Scoped_package_detected_looking_in_0:la(6182,3,"Scoped_package_detected_looking_in_0_6182","Scoped package detected, looking in '{0}'"),Reusing_resolution_of_module_0_from_1_of_old_program_it_was_successfully_resolved_to_2:la(6183,3,"Reusing_resolution_of_module_0_from_1_of_old_program_it_was_successfully_resolved_to_2_6183","Reusing resolution of module '{0}' from '{1}' of old program, it was successfully resolved to '{2}'."),Reusing_resolution_of_module_0_from_1_of_old_program_it_was_successfully_resolved_to_2_with_Package_ID_3:la(6184,3,"Reusing_resolution_of_module_0_from_1_of_old_program_it_was_successfully_resolved_to_2_with_Package__6184","Reusing resolution of module '{0}' from '{1}' of old program, it was successfully resolved to '{2}' with Package ID '{3}'."),Enable_strict_checking_of_function_types:la(6186,3,"Enable_strict_checking_of_function_types_6186","Enable strict checking of function types."),Enable_strict_checking_of_property_initialization_in_classes:la(6187,3,"Enable_strict_checking_of_property_initialization_in_classes_6187","Enable strict checking of property initialization in classes."),Numeric_separators_are_not_allowed_here:la(6188,1,"Numeric_separators_are_not_allowed_here_6188","Numeric separators are not allowed here."),Multiple_consecutive_numeric_separators_are_not_permitted:la(6189,1,"Multiple_consecutive_numeric_separators_are_not_permitted_6189","Multiple consecutive numeric separators are not permitted."),Whether_to_keep_outdated_console_output_in_watch_mode_instead_of_clearing_the_screen:la(6191,3,"Whether_to_keep_outdated_console_output_in_watch_mode_instead_of_clearing_the_screen_6191","Whether to keep outdated console output in watch mode instead of clearing the screen."),All_imports_in_import_declaration_are_unused:la(6192,1,"All_imports_in_import_declaration_are_unused_6192","All imports in import declaration are unused.",!0),Found_1_error_Watching_for_file_changes:la(6193,3,"Found_1_error_Watching_for_file_changes_6193","Found 1 error. Watching for file changes."),Found_0_errors_Watching_for_file_changes:la(6194,3,"Found_0_errors_Watching_for_file_changes_6194","Found {0} errors. Watching for file changes."),Resolve_keyof_to_string_valued_property_names_only_no_numbers_or_symbols:la(6195,3,"Resolve_keyof_to_string_valued_property_names_only_no_numbers_or_symbols_6195","Resolve 'keyof' to string valued property names only (no numbers or symbols)."),_0_is_declared_but_never_used:la(6196,1,"_0_is_declared_but_never_used_6196","'{0}' is declared but never used.",!0),Include_modules_imported_with_json_extension:la(6197,3,"Include_modules_imported_with_json_extension_6197","Include modules imported with '.json' extension"),All_destructured_elements_are_unused:la(6198,1,"All_destructured_elements_are_unused_6198","All destructured elements are unused.",!0),All_variables_are_unused:la(6199,1,"All_variables_are_unused_6199","All variables are unused.",!0),Definitions_of_the_following_identifiers_conflict_with_those_in_another_file_Colon_0:la(6200,1,"Definitions_of_the_following_identifiers_conflict_with_those_in_another_file_Colon_0_6200","Definitions of the following identifiers conflict with those in another file: {0}"),Conflicts_are_in_this_file:la(6201,3,"Conflicts_are_in_this_file_6201","Conflicts are in this file."),Project_references_may_not_form_a_circular_graph_Cycle_detected_Colon_0:la(6202,1,"Project_references_may_not_form_a_circular_graph_Cycle_detected_Colon_0_6202","Project references may not form a circular graph. Cycle detected: {0}"),_0_was_also_declared_here:la(6203,3,"_0_was_also_declared_here_6203","'{0}' was also declared here."),and_here:la(6204,3,"and_here_6204","and here."),All_type_parameters_are_unused:la(6205,1,"All_type_parameters_are_unused_6205","All type parameters are unused."),package_json_has_a_typesVersions_field_with_version_specific_path_mappings:la(6206,3,"package_json_has_a_typesVersions_field_with_version_specific_path_mappings_6206","'package.json' has a 'typesVersions' field with version-specific path mappings."),package_json_does_not_have_a_typesVersions_entry_that_matches_version_0:la(6207,3,"package_json_does_not_have_a_typesVersions_entry_that_matches_version_0_6207","'package.json' does not have a 'typesVersions' entry that matches version '{0}'."),package_json_has_a_typesVersions_entry_0_that_matches_compiler_version_1_looking_for_a_pattern_to_match_module_name_2:la(6208,3,"package_json_has_a_typesVersions_entry_0_that_matches_compiler_version_1_looking_for_a_pattern_to_ma_6208","'package.json' has a 'typesVersions' entry '{0}' that matches compiler version '{1}', looking for a pattern to match module name '{2}'."),package_json_has_a_typesVersions_entry_0_that_is_not_a_valid_semver_range:la(6209,3,"package_json_has_a_typesVersions_entry_0_that_is_not_a_valid_semver_range_6209","'package.json' has a 'typesVersions' entry '{0}' that is not a valid semver range."),An_argument_for_0_was_not_provided:la(6210,3,"An_argument_for_0_was_not_provided_6210","An argument for '{0}' was not provided."),An_argument_matching_this_binding_pattern_was_not_provided:la(6211,3,"An_argument_matching_this_binding_pattern_was_not_provided_6211","An argument matching this binding pattern was not provided."),Did_you_mean_to_call_this_expression:la(6212,3,"Did_you_mean_to_call_this_expression_6212","Did you mean to call this expression?"),Did_you_mean_to_use_new_with_this_expression:la(6213,3,"Did_you_mean_to_use_new_with_this_expression_6213","Did you mean to use 'new' with this expression?"),Enable_strict_bind_call_and_apply_methods_on_functions:la(6214,3,"Enable_strict_bind_call_and_apply_methods_on_functions_6214","Enable strict 'bind', 'call', and 'apply' methods on functions."),Using_compiler_options_of_project_reference_redirect_0:la(6215,3,"Using_compiler_options_of_project_reference_redirect_0_6215","Using compiler options of project reference redirect '{0}'."),Found_1_error:la(6216,3,"Found_1_error_6216","Found 1 error."),Found_0_errors:la(6217,3,"Found_0_errors_6217","Found {0} errors."),Module_name_0_was_successfully_resolved_to_1_with_Package_ID_2:la(6218,3,"Module_name_0_was_successfully_resolved_to_1_with_Package_ID_2_6218","======== Module name '{0}' was successfully resolved to '{1}' with Package ID '{2}'. ========"),Type_reference_directive_0_was_successfully_resolved_to_1_with_Package_ID_2_primary_Colon_3:la(6219,3,"Type_reference_directive_0_was_successfully_resolved_to_1_with_Package_ID_2_primary_Colon_3_6219","======== Type reference directive '{0}' was successfully resolved to '{1}' with Package ID '{2}', primary: {3}. ========"),package_json_had_a_falsy_0_field:la(6220,3,"package_json_had_a_falsy_0_field_6220","'package.json' had a falsy '{0}' field."),Disable_use_of_source_files_instead_of_declaration_files_from_referenced_projects:la(6221,3,"Disable_use_of_source_files_instead_of_declaration_files_from_referenced_projects_6221","Disable use of source files instead of declaration files from referenced projects."),Emit_class_fields_with_Define_instead_of_Set:la(6222,3,"Emit_class_fields_with_Define_instead_of_Set_6222","Emit class fields with Define instead of Set."),Generates_a_CPU_profile:la(6223,3,"Generates_a_CPU_profile_6223","Generates a CPU profile."),Disable_solution_searching_for_this_project:la(6224,3,"Disable_solution_searching_for_this_project_6224","Disable solution searching for this project."),Specify_strategy_for_watching_file_Colon_FixedPollingInterval_default_PriorityPollingInterval_DynamicPriorityPolling_FixedChunkSizePolling_UseFsEvents_UseFsEventsOnParentDirectory:la(6225,3,"Specify_strategy_for_watching_file_Colon_FixedPollingInterval_default_PriorityPollingInterval_Dynami_6225","Specify strategy for watching file: 'FixedPollingInterval' (default), 'PriorityPollingInterval', 'DynamicPriorityPolling', 'FixedChunkSizePolling', 'UseFsEvents', 'UseFsEventsOnParentDirectory'."),Specify_strategy_for_watching_directory_on_platforms_that_don_t_support_recursive_watching_natively_Colon_UseFsEvents_default_FixedPollingInterval_DynamicPriorityPolling_FixedChunkSizePolling:la(6226,3,"Specify_strategy_for_watching_directory_on_platforms_that_don_t_support_recursive_watching_natively__6226","Specify strategy for watching directory on platforms that don't support recursive watching natively: 'UseFsEvents' (default), 'FixedPollingInterval', 'DynamicPriorityPolling', 'FixedChunkSizePolling'."),Specify_strategy_for_creating_a_polling_watch_when_it_fails_to_create_using_file_system_events_Colon_FixedInterval_default_PriorityInterval_DynamicPriority_FixedChunkSize:la(6227,3,"Specify_strategy_for_creating_a_polling_watch_when_it_fails_to_create_using_file_system_events_Colon_6227","Specify strategy for creating a polling watch when it fails to create using file system events: 'FixedInterval' (default), 'PriorityInterval', 'DynamicPriority', 'FixedChunkSize'."),Tag_0_expects_at_least_1_arguments_but_the_JSX_factory_2_provides_at_most_3:la(6229,1,"Tag_0_expects_at_least_1_arguments_but_the_JSX_factory_2_provides_at_most_3_6229","Tag '{0}' expects at least '{1}' arguments, but the JSX factory '{2}' provides at most '{3}'."),Option_0_can_only_be_specified_in_tsconfig_json_file_or_set_to_false_or_null_on_command_line:la(6230,1,"Option_0_can_only_be_specified_in_tsconfig_json_file_or_set_to_false_or_null_on_command_line_6230","Option '{0}' can only be specified in 'tsconfig.json' file or set to 'false' or 'null' on command line."),Could_not_resolve_the_path_0_with_the_extensions_Colon_1:la(6231,1,"Could_not_resolve_the_path_0_with_the_extensions_Colon_1_6231","Could not resolve the path '{0}' with the extensions: {1}."),Declaration_augments_declaration_in_another_file_This_cannot_be_serialized:la(6232,1,"Declaration_augments_declaration_in_another_file_This_cannot_be_serialized_6232","Declaration augments declaration in another file. This cannot be serialized."),This_is_the_declaration_being_augmented_Consider_moving_the_augmenting_declaration_into_the_same_file:la(6233,1,"This_is_the_declaration_being_augmented_Consider_moving_the_augmenting_declaration_into_the_same_fil_6233","This is the declaration being augmented. Consider moving the augmenting declaration into the same file."),This_expression_is_not_callable_because_it_is_a_get_accessor_Did_you_mean_to_use_it_without:la(6234,1,"This_expression_is_not_callable_because_it_is_a_get_accessor_Did_you_mean_to_use_it_without_6234","This expression is not callable because it is a 'get' accessor. Did you mean to use it without '()'?"),Disable_loading_referenced_projects:la(6235,3,"Disable_loading_referenced_projects_6235","Disable loading referenced projects."),Arguments_for_the_rest_parameter_0_were_not_provided:la(6236,1,"Arguments_for_the_rest_parameter_0_were_not_provided_6236","Arguments for the rest parameter '{0}' were not provided."),Generates_an_event_trace_and_a_list_of_types:la(6237,3,"Generates_an_event_trace_and_a_list_of_types_6237","Generates an event trace and a list of types."),Specify_the_module_specifier_to_be_used_to_import_the_jsx_and_jsxs_factory_functions_from_eg_react:la(6238,1,"Specify_the_module_specifier_to_be_used_to_import_the_jsx_and_jsxs_factory_functions_from_eg_react_6238","Specify the module specifier to be used to import the 'jsx' and 'jsxs' factory functions from. eg, react"),File_0_exists_according_to_earlier_cached_lookups:la(6239,3,"File_0_exists_according_to_earlier_cached_lookups_6239","File '{0}' exists according to earlier cached lookups."),File_0_does_not_exist_according_to_earlier_cached_lookups:la(6240,3,"File_0_does_not_exist_according_to_earlier_cached_lookups_6240","File '{0}' does not exist according to earlier cached lookups."),Resolution_for_type_reference_directive_0_was_found_in_cache_from_location_1:la(6241,3,"Resolution_for_type_reference_directive_0_was_found_in_cache_from_location_1_6241","Resolution for type reference directive '{0}' was found in cache from location '{1}'."),Resolving_type_reference_directive_0_containing_file_1:la(6242,3,"Resolving_type_reference_directive_0_containing_file_1_6242","======== Resolving type reference directive '{0}', containing file '{1}'. ========"),Interpret_optional_property_types_as_written_rather_than_adding_undefined:la(6243,3,"Interpret_optional_property_types_as_written_rather_than_adding_undefined_6243","Interpret optional property types as written, rather than adding 'undefined'."),Modules:la(6244,3,"Modules_6244","Modules"),File_Management:la(6245,3,"File_Management_6245","File Management"),Emit:la(6246,3,"Emit_6246","Emit"),JavaScript_Support:la(6247,3,"JavaScript_Support_6247","JavaScript Support"),Type_Checking:la(6248,3,"Type_Checking_6248","Type Checking"),Editor_Support:la(6249,3,"Editor_Support_6249","Editor Support"),Watch_and_Build_Modes:la(6250,3,"Watch_and_Build_Modes_6250","Watch and Build Modes"),Compiler_Diagnostics:la(6251,3,"Compiler_Diagnostics_6251","Compiler Diagnostics"),Interop_Constraints:la(6252,3,"Interop_Constraints_6252","Interop Constraints"),Backwards_Compatibility:la(6253,3,"Backwards_Compatibility_6253","Backwards Compatibility"),Language_and_Environment:la(6254,3,"Language_and_Environment_6254","Language and Environment"),Projects:la(6255,3,"Projects_6255","Projects"),Output_Formatting:la(6256,3,"Output_Formatting_6256","Output Formatting"),Completeness:la(6257,3,"Completeness_6257","Completeness"),_0_should_be_set_inside_the_compilerOptions_object_of_the_config_json_file:la(6258,1,"_0_should_be_set_inside_the_compilerOptions_object_of_the_config_json_file_6258","'{0}' should be set inside the 'compilerOptions' object of the config json file"),Found_1_error_in_0:la(6259,3,"Found_1_error_in_0_6259","Found 1 error in {0}"),Found_0_errors_in_the_same_file_starting_at_Colon_1:la(6260,3,"Found_0_errors_in_the_same_file_starting_at_Colon_1_6260","Found {0} errors in the same file, starting at: {1}"),Found_0_errors_in_1_files:la(6261,3,"Found_0_errors_in_1_files_6261","Found {0} errors in {1} files."),File_name_0_has_a_1_extension_looking_up_2_instead:la(6262,3,"File_name_0_has_a_1_extension_looking_up_2_instead_6262","File name '{0}' has a '{1}' extension - looking up '{2}' instead."),Module_0_was_resolved_to_1_but_allowArbitraryExtensions_is_not_set:la(6263,1,"Module_0_was_resolved_to_1_but_allowArbitraryExtensions_is_not_set_6263","Module '{0}' was resolved to '{1}', but '--allowArbitraryExtensions' is not set."),Enable_importing_files_with_any_extension_provided_a_declaration_file_is_present:la(6264,3,"Enable_importing_files_with_any_extension_provided_a_declaration_file_is_present_6264","Enable importing files with any extension, provided a declaration file is present."),Resolving_type_reference_directive_for_program_that_specifies_custom_typeRoots_skipping_lookup_in_node_modules_folder:la(6265,3,"Resolving_type_reference_directive_for_program_that_specifies_custom_typeRoots_skipping_lookup_in_no_6265","Resolving type reference directive for program that specifies custom typeRoots, skipping lookup in 'node_modules' folder."),Option_0_can_only_be_specified_on_command_line:la(6266,1,"Option_0_can_only_be_specified_on_command_line_6266","Option '{0}' can only be specified on command line."),Directory_0_has_no_containing_package_json_scope_Imports_will_not_resolve:la(6270,3,"Directory_0_has_no_containing_package_json_scope_Imports_will_not_resolve_6270","Directory '{0}' has no containing package.json scope. Imports will not resolve."),Import_specifier_0_does_not_exist_in_package_json_scope_at_path_1:la(6271,3,"Import_specifier_0_does_not_exist_in_package_json_scope_at_path_1_6271","Import specifier '{0}' does not exist in package.json scope at path '{1}'."),Invalid_import_specifier_0_has_no_possible_resolutions:la(6272,3,"Invalid_import_specifier_0_has_no_possible_resolutions_6272","Invalid import specifier '{0}' has no possible resolutions."),package_json_scope_0_has_no_imports_defined:la(6273,3,"package_json_scope_0_has_no_imports_defined_6273","package.json scope '{0}' has no imports defined."),package_json_scope_0_explicitly_maps_specifier_1_to_null:la(6274,3,"package_json_scope_0_explicitly_maps_specifier_1_to_null_6274","package.json scope '{0}' explicitly maps specifier '{1}' to null."),package_json_scope_0_has_invalid_type_for_target_of_specifier_1:la(6275,3,"package_json_scope_0_has_invalid_type_for_target_of_specifier_1_6275","package.json scope '{0}' has invalid type for target of specifier '{1}'"),Export_specifier_0_does_not_exist_in_package_json_scope_at_path_1:la(6276,3,"Export_specifier_0_does_not_exist_in_package_json_scope_at_path_1_6276","Export specifier '{0}' does not exist in package.json scope at path '{1}'."),Resolution_of_non_relative_name_failed_trying_with_modern_Node_resolution_features_disabled_to_see_if_npm_library_needs_configuration_update:la(6277,3,"Resolution_of_non_relative_name_failed_trying_with_modern_Node_resolution_features_disabled_to_see_i_6277","Resolution of non-relative name failed; trying with modern Node resolution features disabled to see if npm library needs configuration update."),There_are_types_at_0_but_this_result_could_not_be_resolved_when_respecting_package_json_exports_The_1_library_may_need_to_update_its_package_json_or_typings:la(6278,3,"There_are_types_at_0_but_this_result_could_not_be_resolved_when_respecting_package_json_exports_The__6278","There are types at '{0}', but this result could not be resolved when respecting package.json \"exports\". The '{1}' library may need to update its package.json or typings."),Resolution_of_non_relative_name_failed_trying_with_moduleResolution_bundler_to_see_if_project_may_need_configuration_update:la(6279,3,"Resolution_of_non_relative_name_failed_trying_with_moduleResolution_bundler_to_see_if_project_may_ne_6279","Resolution of non-relative name failed; trying with '--moduleResolution bundler' to see if project may need configuration update."),There_are_types_at_0_but_this_result_could_not_be_resolved_under_your_current_moduleResolution_setting_Consider_updating_to_node16_nodenext_or_bundler:la(6280,3,"There_are_types_at_0_but_this_result_could_not_be_resolved_under_your_current_moduleResolution_setti_6280","There are types at '{0}', but this result could not be resolved under your current 'moduleResolution' setting. Consider updating to 'node16', 'nodenext', or 'bundler'."),package_json_has_a_peerDependencies_field:la(6281,3,"package_json_has_a_peerDependencies_field_6281","'package.json' has a 'peerDependencies' field."),Found_peerDependency_0_with_1_version:la(6282,3,"Found_peerDependency_0_with_1_version_6282","Found peerDependency '{0}' with '{1}' version."),Failed_to_find_peerDependency_0:la(6283,3,"Failed_to_find_peerDependency_0_6283","Failed to find peerDependency '{0}'."),File_Layout:la(6284,3,"File_Layout_6284","File Layout"),Environment_Settings:la(6285,3,"Environment_Settings_6285","Environment Settings"),See_also_https_Colon_Slash_Slashaka_ms_Slashtsconfig_Slashmodule:la(6286,3,"See_also_https_Colon_Slash_Slashaka_ms_Slashtsconfig_Slashmodule_6286","See also https://aka.ms/tsconfig/module"),For_nodejs_Colon:la(6287,3,"For_nodejs_Colon_6287","For nodejs:"),and_npm_install_D_types_Slashnode:la(6290,3,"and_npm_install_D_types_Slashnode_6290","and npm install -D @types/node"),Other_Outputs:la(6291,3,"Other_Outputs_6291","Other Outputs"),Stricter_Typechecking_Options:la(6292,3,"Stricter_Typechecking_Options_6292","Stricter Typechecking Options"),Style_Options:la(6293,3,"Style_Options_6293","Style Options"),Recommended_Options:la(6294,3,"Recommended_Options_6294","Recommended Options"),Enable_project_compilation:la(6302,3,"Enable_project_compilation_6302","Enable project compilation"),Composite_projects_may_not_disable_declaration_emit:la(6304,1,"Composite_projects_may_not_disable_declaration_emit_6304","Composite projects may not disable declaration emit."),Output_file_0_has_not_been_built_from_source_file_1:la(6305,1,"Output_file_0_has_not_been_built_from_source_file_1_6305","Output file '{0}' has not been built from source file '{1}'."),Referenced_project_0_must_have_setting_composite_Colon_true:la(6306,1,"Referenced_project_0_must_have_setting_composite_Colon_true_6306","Referenced project '{0}' must have setting \"composite\": true."),File_0_is_not_listed_within_the_file_list_of_project_1_Projects_must_list_all_files_or_use_an_include_pattern:la(6307,1,"File_0_is_not_listed_within_the_file_list_of_project_1_Projects_must_list_all_files_or_use_an_includ_6307","File '{0}' is not listed within the file list of project '{1}'. Projects must list all files or use an 'include' pattern."),Referenced_project_0_may_not_disable_emit:la(6310,1,"Referenced_project_0_may_not_disable_emit_6310","Referenced project '{0}' may not disable emit."),Project_0_is_out_of_date_because_output_1_is_older_than_input_2:la(6350,3,"Project_0_is_out_of_date_because_output_1_is_older_than_input_2_6350","Project '{0}' is out of date because output '{1}' is older than input '{2}'"),Project_0_is_up_to_date_because_newest_input_1_is_older_than_output_2:la(6351,3,"Project_0_is_up_to_date_because_newest_input_1_is_older_than_output_2_6351","Project '{0}' is up to date because newest input '{1}' is older than output '{2}'"),Project_0_is_out_of_date_because_output_file_1_does_not_exist:la(6352,3,"Project_0_is_out_of_date_because_output_file_1_does_not_exist_6352","Project '{0}' is out of date because output file '{1}' does not exist"),Project_0_is_out_of_date_because_its_dependency_1_is_out_of_date:la(6353,3,"Project_0_is_out_of_date_because_its_dependency_1_is_out_of_date_6353","Project '{0}' is out of date because its dependency '{1}' is out of date"),Project_0_is_up_to_date_with_d_ts_files_from_its_dependencies:la(6354,3,"Project_0_is_up_to_date_with_d_ts_files_from_its_dependencies_6354","Project '{0}' is up to date with .d.ts files from its dependencies"),Projects_in_this_build_Colon_0:la(6355,3,"Projects_in_this_build_Colon_0_6355","Projects in this build: {0}"),A_non_dry_build_would_delete_the_following_files_Colon_0:la(6356,3,"A_non_dry_build_would_delete_the_following_files_Colon_0_6356","A non-dry build would delete the following files: {0}"),A_non_dry_build_would_build_project_0:la(6357,3,"A_non_dry_build_would_build_project_0_6357","A non-dry build would build project '{0}'"),Building_project_0:la(6358,3,"Building_project_0_6358","Building project '{0}'..."),Updating_output_timestamps_of_project_0:la(6359,3,"Updating_output_timestamps_of_project_0_6359","Updating output timestamps of project '{0}'..."),Project_0_is_up_to_date:la(6361,3,"Project_0_is_up_to_date_6361","Project '{0}' is up to date"),Skipping_build_of_project_0_because_its_dependency_1_has_errors:la(6362,3,"Skipping_build_of_project_0_because_its_dependency_1_has_errors_6362","Skipping build of project '{0}' because its dependency '{1}' has errors"),Project_0_can_t_be_built_because_its_dependency_1_has_errors:la(6363,3,"Project_0_can_t_be_built_because_its_dependency_1_has_errors_6363","Project '{0}' can't be built because its dependency '{1}' has errors"),Build_one_or_more_projects_and_their_dependencies_if_out_of_date:la(6364,3,"Build_one_or_more_projects_and_their_dependencies_if_out_of_date_6364","Build one or more projects and their dependencies, if out of date"),Delete_the_outputs_of_all_projects:la(6365,3,"Delete_the_outputs_of_all_projects_6365","Delete the outputs of all projects."),Show_what_would_be_built_or_deleted_if_specified_with_clean:la(6367,3,"Show_what_would_be_built_or_deleted_if_specified_with_clean_6367","Show what would be built (or deleted, if specified with '--clean')"),Option_build_must_be_the_first_command_line_argument:la(6369,1,"Option_build_must_be_the_first_command_line_argument_6369","Option '--build' must be the first command line argument."),Options_0_and_1_cannot_be_combined:la(6370,1,"Options_0_and_1_cannot_be_combined_6370","Options '{0}' and '{1}' cannot be combined."),Updating_unchanged_output_timestamps_of_project_0:la(6371,3,"Updating_unchanged_output_timestamps_of_project_0_6371","Updating unchanged output timestamps of project '{0}'..."),A_non_dry_build_would_update_timestamps_for_output_of_project_0:la(6374,3,"A_non_dry_build_would_update_timestamps_for_output_of_project_0_6374","A non-dry build would update timestamps for output of project '{0}'"),Cannot_write_file_0_because_it_will_overwrite_tsbuildinfo_file_generated_by_referenced_project_1:la(6377,1,"Cannot_write_file_0_because_it_will_overwrite_tsbuildinfo_file_generated_by_referenced_project_1_6377","Cannot write file '{0}' because it will overwrite '.tsbuildinfo' file generated by referenced project '{1}'"),Composite_projects_may_not_disable_incremental_compilation:la(6379,1,"Composite_projects_may_not_disable_incremental_compilation_6379","Composite projects may not disable incremental compilation."),Specify_file_to_store_incremental_compilation_information:la(6380,3,"Specify_file_to_store_incremental_compilation_information_6380","Specify file to store incremental compilation information"),Project_0_is_out_of_date_because_output_for_it_was_generated_with_version_1_that_differs_with_current_version_2:la(6381,3,"Project_0_is_out_of_date_because_output_for_it_was_generated_with_version_1_that_differs_with_curren_6381","Project '{0}' is out of date because output for it was generated with version '{1}' that differs with current version '{2}'"),Skipping_build_of_project_0_because_its_dependency_1_was_not_built:la(6382,3,"Skipping_build_of_project_0_because_its_dependency_1_was_not_built_6382","Skipping build of project '{0}' because its dependency '{1}' was not built"),Project_0_can_t_be_built_because_its_dependency_1_was_not_built:la(6383,3,"Project_0_can_t_be_built_because_its_dependency_1_was_not_built_6383","Project '{0}' can't be built because its dependency '{1}' was not built"),Have_recompiles_in_incremental_and_watch_assume_that_changes_within_a_file_will_only_affect_files_directly_depending_on_it:la(6384,3,"Have_recompiles_in_incremental_and_watch_assume_that_changes_within_a_file_will_only_affect_files_di_6384","Have recompiles in '--incremental' and '--watch' assume that changes within a file will only affect files directly depending on it."),_0_is_deprecated:la(6385,2,"_0_is_deprecated_6385","'{0}' is deprecated.",void 0,void 0,!0),Performance_timings_for_diagnostics_or_extendedDiagnostics_are_not_available_in_this_session_A_native_implementation_of_the_Web_Performance_API_could_not_be_found:la(6386,3,"Performance_timings_for_diagnostics_or_extendedDiagnostics_are_not_available_in_this_session_A_nativ_6386","Performance timings for '--diagnostics' or '--extendedDiagnostics' are not available in this session. A native implementation of the Web Performance API could not be found."),The_signature_0_of_1_is_deprecated:la(6387,2,"The_signature_0_of_1_is_deprecated_6387","The signature '{0}' of '{1}' is deprecated.",void 0,void 0,!0),Project_0_is_being_forcibly_rebuilt:la(6388,3,"Project_0_is_being_forcibly_rebuilt_6388","Project '{0}' is being forcibly rebuilt"),Reusing_resolution_of_module_0_from_1_of_old_program_it_was_not_resolved:la(6389,3,"Reusing_resolution_of_module_0_from_1_of_old_program_it_was_not_resolved_6389","Reusing resolution of module '{0}' from '{1}' of old program, it was not resolved."),Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_successfully_resolved_to_2:la(6390,3,"Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_successfully_resolved__6390","Reusing resolution of type reference directive '{0}' from '{1}' of old program, it was successfully resolved to '{2}'."),Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_successfully_resolved_to_2_with_Package_ID_3:la(6391,3,"Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_successfully_resolved__6391","Reusing resolution of type reference directive '{0}' from '{1}' of old program, it was successfully resolved to '{2}' with Package ID '{3}'."),Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_not_resolved:la(6392,3,"Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_not_resolved_6392","Reusing resolution of type reference directive '{0}' from '{1}' of old program, it was not resolved."),Reusing_resolution_of_module_0_from_1_found_in_cache_from_location_2_it_was_successfully_resolved_to_3:la(6393,3,"Reusing_resolution_of_module_0_from_1_found_in_cache_from_location_2_it_was_successfully_resolved_to_6393","Reusing resolution of module '{0}' from '{1}' found in cache from location '{2}', it was successfully resolved to '{3}'."),Reusing_resolution_of_module_0_from_1_found_in_cache_from_location_2_it_was_successfully_resolved_to_3_with_Package_ID_4:la(6394,3,"Reusing_resolution_of_module_0_from_1_found_in_cache_from_location_2_it_was_successfully_resolved_to_6394","Reusing resolution of module '{0}' from '{1}' found in cache from location '{2}', it was successfully resolved to '{3}' with Package ID '{4}'."),Reusing_resolution_of_module_0_from_1_found_in_cache_from_location_2_it_was_not_resolved:la(6395,3,"Reusing_resolution_of_module_0_from_1_found_in_cache_from_location_2_it_was_not_resolved_6395","Reusing resolution of module '{0}' from '{1}' found in cache from location '{2}', it was not resolved."),Reusing_resolution_of_type_reference_directive_0_from_1_found_in_cache_from_location_2_it_was_successfully_resolved_to_3:la(6396,3,"Reusing_resolution_of_type_reference_directive_0_from_1_found_in_cache_from_location_2_it_was_succes_6396","Reusing resolution of type reference directive '{0}' from '{1}' found in cache from location '{2}', it was successfully resolved to '{3}'."),Reusing_resolution_of_type_reference_directive_0_from_1_found_in_cache_from_location_2_it_was_successfully_resolved_to_3_with_Package_ID_4:la(6397,3,"Reusing_resolution_of_type_reference_directive_0_from_1_found_in_cache_from_location_2_it_was_succes_6397","Reusing resolution of type reference directive '{0}' from '{1}' found in cache from location '{2}', it was successfully resolved to '{3}' with Package ID '{4}'."),Reusing_resolution_of_type_reference_directive_0_from_1_found_in_cache_from_location_2_it_was_not_resolved:la(6398,3,"Reusing_resolution_of_type_reference_directive_0_from_1_found_in_cache_from_location_2_it_was_not_re_6398","Reusing resolution of type reference directive '{0}' from '{1}' found in cache from location '{2}', it was not resolved."),Project_0_is_out_of_date_because_buildinfo_file_1_indicates_that_some_of_the_changes_were_not_emitted:la(6399,3,"Project_0_is_out_of_date_because_buildinfo_file_1_indicates_that_some_of_the_changes_were_not_emitte_6399","Project '{0}' is out of date because buildinfo file '{1}' indicates that some of the changes were not emitted"),Project_0_is_up_to_date_but_needs_to_update_timestamps_of_output_files_that_are_older_than_input_files:la(6400,3,"Project_0_is_up_to_date_but_needs_to_update_timestamps_of_output_files_that_are_older_than_input_fil_6400","Project '{0}' is up to date but needs to update timestamps of output files that are older than input files"),Project_0_is_out_of_date_because_there_was_error_reading_file_1:la(6401,3,"Project_0_is_out_of_date_because_there_was_error_reading_file_1_6401","Project '{0}' is out of date because there was error reading file '{1}'"),Resolving_in_0_mode_with_conditions_1:la(6402,3,"Resolving_in_0_mode_with_conditions_1_6402","Resolving in {0} mode with conditions {1}."),Matched_0_condition_1:la(6403,3,"Matched_0_condition_1_6403","Matched '{0}' condition '{1}'."),Using_0_subpath_1_with_target_2:la(6404,3,"Using_0_subpath_1_with_target_2_6404","Using '{0}' subpath '{1}' with target '{2}'."),Saw_non_matching_condition_0:la(6405,3,"Saw_non_matching_condition_0_6405","Saw non-matching condition '{0}'."),Project_0_is_out_of_date_because_buildinfo_file_1_indicates_there_is_change_in_compilerOptions:la(6406,3,"Project_0_is_out_of_date_because_buildinfo_file_1_indicates_there_is_change_in_compilerOptions_6406","Project '{0}' is out of date because buildinfo file '{1}' indicates there is change in compilerOptions"),Allow_imports_to_include_TypeScript_file_extensions_Requires_moduleResolution_bundler_and_either_noEmit_or_emitDeclarationOnly_to_be_set:la(6407,3,"Allow_imports_to_include_TypeScript_file_extensions_Requires_moduleResolution_bundler_and_either_noE_6407","Allow imports to include TypeScript file extensions. Requires '--moduleResolution bundler' and either '--noEmit' or '--emitDeclarationOnly' to be set."),Use_the_package_json_exports_field_when_resolving_package_imports:la(6408,3,"Use_the_package_json_exports_field_when_resolving_package_imports_6408","Use the package.json 'exports' field when resolving package imports."),Use_the_package_json_imports_field_when_resolving_imports:la(6409,3,"Use_the_package_json_imports_field_when_resolving_imports_6409","Use the package.json 'imports' field when resolving imports."),Conditions_to_set_in_addition_to_the_resolver_specific_defaults_when_resolving_imports:la(6410,3,"Conditions_to_set_in_addition_to_the_resolver_specific_defaults_when_resolving_imports_6410","Conditions to set in addition to the resolver-specific defaults when resolving imports."),true_when_moduleResolution_is_node16_nodenext_or_bundler_otherwise_false:la(6411,3,"true_when_moduleResolution_is_node16_nodenext_or_bundler_otherwise_false_6411","`true` when 'moduleResolution' is 'node16', 'nodenext', or 'bundler'; otherwise `false`."),Project_0_is_out_of_date_because_buildinfo_file_1_indicates_that_file_2_was_root_file_of_compilation_but_not_any_more:la(6412,3,"Project_0_is_out_of_date_because_buildinfo_file_1_indicates_that_file_2_was_root_file_of_compilation_6412","Project '{0}' is out of date because buildinfo file '{1}' indicates that file '{2}' was root file of compilation but not any more."),Entering_conditional_exports:la(6413,3,"Entering_conditional_exports_6413","Entering conditional exports."),Resolved_under_condition_0:la(6414,3,"Resolved_under_condition_0_6414","Resolved under condition '{0}'."),Failed_to_resolve_under_condition_0:la(6415,3,"Failed_to_resolve_under_condition_0_6415","Failed to resolve under condition '{0}'."),Exiting_conditional_exports:la(6416,3,"Exiting_conditional_exports_6416","Exiting conditional exports."),Searching_all_ancestor_node_modules_directories_for_preferred_extensions_Colon_0:la(6417,3,"Searching_all_ancestor_node_modules_directories_for_preferred_extensions_Colon_0_6417","Searching all ancestor node_modules directories for preferred extensions: {0}."),Searching_all_ancestor_node_modules_directories_for_fallback_extensions_Colon_0:la(6418,3,"Searching_all_ancestor_node_modules_directories_for_fallback_extensions_Colon_0_6418","Searching all ancestor node_modules directories for fallback extensions: {0}."),Project_0_is_out_of_date_because_buildinfo_file_1_indicates_that_program_needs_to_report_errors:la(6419,3,"Project_0_is_out_of_date_because_buildinfo_file_1_indicates_that_program_needs_to_report_errors_6419","Project '{0}' is out of date because buildinfo file '{1}' indicates that program needs to report errors."),Project_0_is_out_of_date_because_1:la(6420,3,"Project_0_is_out_of_date_because_1_6420","Project '{0}' is out of date because {1}."),Rewrite_ts_tsx_mts_and_cts_file_extensions_in_relative_import_paths_to_their_JavaScript_equivalent_in_output_files:la(6421,3,"Rewrite_ts_tsx_mts_and_cts_file_extensions_in_relative_import_paths_to_their_JavaScript_equivalent_i_6421","Rewrite '.ts', '.tsx', '.mts', and '.cts' file extensions in relative import paths to their JavaScript equivalent in output files."),The_expected_type_comes_from_property_0_which_is_declared_here_on_type_1:la(6500,3,"The_expected_type_comes_from_property_0_which_is_declared_here_on_type_1_6500","The expected type comes from property '{0}' which is declared here on type '{1}'"),The_expected_type_comes_from_this_index_signature:la(6501,3,"The_expected_type_comes_from_this_index_signature_6501","The expected type comes from this index signature."),The_expected_type_comes_from_the_return_type_of_this_signature:la(6502,3,"The_expected_type_comes_from_the_return_type_of_this_signature_6502","The expected type comes from the return type of this signature."),Print_names_of_files_that_are_part_of_the_compilation_and_then_stop_processing:la(6503,3,"Print_names_of_files_that_are_part_of_the_compilation_and_then_stop_processing_6503","Print names of files that are part of the compilation and then stop processing."),File_0_is_a_JavaScript_file_Did_you_mean_to_enable_the_allowJs_option:la(6504,1,"File_0_is_a_JavaScript_file_Did_you_mean_to_enable_the_allowJs_option_6504","File '{0}' is a JavaScript file. Did you mean to enable the 'allowJs' option?"),Print_names_of_files_and_the_reason_they_are_part_of_the_compilation:la(6505,3,"Print_names_of_files_and_the_reason_they_are_part_of_the_compilation_6505","Print names of files and the reason they are part of the compilation."),Consider_adding_a_declare_modifier_to_this_class:la(6506,3,"Consider_adding_a_declare_modifier_to_this_class_6506","Consider adding a 'declare' modifier to this class."),Allow_JavaScript_files_to_be_a_part_of_your_program_Use_the_checkJs_option_to_get_errors_from_these_files:la(6600,3,"Allow_JavaScript_files_to_be_a_part_of_your_program_Use_the_checkJs_option_to_get_errors_from_these__6600","Allow JavaScript files to be a part of your program. Use the 'checkJs' option to get errors from these files."),Allow_import_x_from_y_when_a_module_doesn_t_have_a_default_export:la(6601,3,"Allow_import_x_from_y_when_a_module_doesn_t_have_a_default_export_6601","Allow 'import x from y' when a module doesn't have a default export."),Allow_accessing_UMD_globals_from_modules:la(6602,3,"Allow_accessing_UMD_globals_from_modules_6602","Allow accessing UMD globals from modules."),Disable_error_reporting_for_unreachable_code:la(6603,3,"Disable_error_reporting_for_unreachable_code_6603","Disable error reporting for unreachable code."),Disable_error_reporting_for_unused_labels:la(6604,3,"Disable_error_reporting_for_unused_labels_6604","Disable error reporting for unused labels."),Ensure_use_strict_is_always_emitted:la(6605,3,"Ensure_use_strict_is_always_emitted_6605","Ensure 'use strict' is always emitted."),Have_recompiles_in_projects_that_use_incremental_and_watch_mode_assume_that_changes_within_a_file_will_only_affect_files_directly_depending_on_it:la(6606,3,"Have_recompiles_in_projects_that_use_incremental_and_watch_mode_assume_that_changes_within_a_file_wi_6606","Have recompiles in projects that use 'incremental' and 'watch' mode assume that changes within a file will only affect files directly depending on it."),Specify_the_base_directory_to_resolve_non_relative_module_names:la(6607,3,"Specify_the_base_directory_to_resolve_non_relative_module_names_6607","Specify the base directory to resolve non-relative module names."),No_longer_supported_In_early_versions_manually_set_the_text_encoding_for_reading_files:la(6608,3,"No_longer_supported_In_early_versions_manually_set_the_text_encoding_for_reading_files_6608","No longer supported. In early versions, manually set the text encoding for reading files."),Enable_error_reporting_in_type_checked_JavaScript_files:la(6609,3,"Enable_error_reporting_in_type_checked_JavaScript_files_6609","Enable error reporting in type-checked JavaScript files."),Enable_constraints_that_allow_a_TypeScript_project_to_be_used_with_project_references:la(6611,3,"Enable_constraints_that_allow_a_TypeScript_project_to_be_used_with_project_references_6611","Enable constraints that allow a TypeScript project to be used with project references."),Generate_d_ts_files_from_TypeScript_and_JavaScript_files_in_your_project:la(6612,3,"Generate_d_ts_files_from_TypeScript_and_JavaScript_files_in_your_project_6612","Generate .d.ts files from TypeScript and JavaScript files in your project."),Specify_the_output_directory_for_generated_declaration_files:la(6613,3,"Specify_the_output_directory_for_generated_declaration_files_6613","Specify the output directory for generated declaration files."),Create_sourcemaps_for_d_ts_files:la(6614,3,"Create_sourcemaps_for_d_ts_files_6614","Create sourcemaps for d.ts files."),Output_compiler_performance_information_after_building:la(6615,3,"Output_compiler_performance_information_after_building_6615","Output compiler performance information after building."),Disables_inference_for_type_acquisition_by_looking_at_filenames_in_a_project:la(6616,3,"Disables_inference_for_type_acquisition_by_looking_at_filenames_in_a_project_6616","Disables inference for type acquisition by looking at filenames in a project."),Reduce_the_number_of_projects_loaded_automatically_by_TypeScript:la(6617,3,"Reduce_the_number_of_projects_loaded_automatically_by_TypeScript_6617","Reduce the number of projects loaded automatically by TypeScript."),Remove_the_20mb_cap_on_total_source_code_size_for_JavaScript_files_in_the_TypeScript_language_server:la(6618,3,"Remove_the_20mb_cap_on_total_source_code_size_for_JavaScript_files_in_the_TypeScript_language_server_6618","Remove the 20mb cap on total source code size for JavaScript files in the TypeScript language server."),Opt_a_project_out_of_multi_project_reference_checking_when_editing:la(6619,3,"Opt_a_project_out_of_multi_project_reference_checking_when_editing_6619","Opt a project out of multi-project reference checking when editing."),Disable_preferring_source_files_instead_of_declaration_files_when_referencing_composite_projects:la(6620,3,"Disable_preferring_source_files_instead_of_declaration_files_when_referencing_composite_projects_6620","Disable preferring source files instead of declaration files when referencing composite projects."),Emit_more_compliant_but_verbose_and_less_performant_JavaScript_for_iteration:la(6621,3,"Emit_more_compliant_but_verbose_and_less_performant_JavaScript_for_iteration_6621","Emit more compliant, but verbose and less performant JavaScript for iteration."),Emit_a_UTF_8_Byte_Order_Mark_BOM_in_the_beginning_of_output_files:la(6622,3,"Emit_a_UTF_8_Byte_Order_Mark_BOM_in_the_beginning_of_output_files_6622","Emit a UTF-8 Byte Order Mark (BOM) in the beginning of output files."),Only_output_d_ts_files_and_not_JavaScript_files:la(6623,3,"Only_output_d_ts_files_and_not_JavaScript_files_6623","Only output d.ts files and not JavaScript files."),Emit_design_type_metadata_for_decorated_declarations_in_source_files:la(6624,3,"Emit_design_type_metadata_for_decorated_declarations_in_source_files_6624","Emit design-type metadata for decorated declarations in source files."),Disable_the_type_acquisition_for_JavaScript_projects:la(6625,3,"Disable_the_type_acquisition_for_JavaScript_projects_6625","Disable the type acquisition for JavaScript projects"),Emit_additional_JavaScript_to_ease_support_for_importing_CommonJS_modules_This_enables_allowSyntheticDefaultImports_for_type_compatibility:la(6626,3,"Emit_additional_JavaScript_to_ease_support_for_importing_CommonJS_modules_This_enables_allowSyntheti_6626","Emit additional JavaScript to ease support for importing CommonJS modules. This enables 'allowSyntheticDefaultImports' for type compatibility."),Filters_results_from_the_include_option:la(6627,3,"Filters_results_from_the_include_option_6627","Filters results from the `include` option."),Remove_a_list_of_directories_from_the_watch_process:la(6628,3,"Remove_a_list_of_directories_from_the_watch_process_6628","Remove a list of directories from the watch process."),Remove_a_list_of_files_from_the_watch_mode_s_processing:la(6629,3,"Remove_a_list_of_files_from_the_watch_mode_s_processing_6629","Remove a list of files from the watch mode's processing."),Enable_experimental_support_for_legacy_experimental_decorators:la(6630,3,"Enable_experimental_support_for_legacy_experimental_decorators_6630","Enable experimental support for legacy experimental decorators."),Print_files_read_during_the_compilation_including_why_it_was_included:la(6631,3,"Print_files_read_during_the_compilation_including_why_it_was_included_6631","Print files read during the compilation including why it was included."),Output_more_detailed_compiler_performance_information_after_building:la(6632,3,"Output_more_detailed_compiler_performance_information_after_building_6632","Output more detailed compiler performance information after building."),Specify_one_or_more_path_or_node_module_references_to_base_configuration_files_from_which_settings_are_inherited:la(6633,3,"Specify_one_or_more_path_or_node_module_references_to_base_configuration_files_from_which_settings_a_6633","Specify one or more path or node module references to base configuration files from which settings are inherited."),Specify_what_approach_the_watcher_should_use_if_the_system_runs_out_of_native_file_watchers:la(6634,3,"Specify_what_approach_the_watcher_should_use_if_the_system_runs_out_of_native_file_watchers_6634","Specify what approach the watcher should use if the system runs out of native file watchers."),Include_a_list_of_files_This_does_not_support_glob_patterns_as_opposed_to_include:la(6635,3,"Include_a_list_of_files_This_does_not_support_glob_patterns_as_opposed_to_include_6635","Include a list of files. This does not support glob patterns, as opposed to `include`."),Build_all_projects_including_those_that_appear_to_be_up_to_date:la(6636,3,"Build_all_projects_including_those_that_appear_to_be_up_to_date_6636","Build all projects, including those that appear to be up to date."),Ensure_that_casing_is_correct_in_imports:la(6637,3,"Ensure_that_casing_is_correct_in_imports_6637","Ensure that casing is correct in imports."),Emit_a_v8_CPU_profile_of_the_compiler_run_for_debugging:la(6638,3,"Emit_a_v8_CPU_profile_of_the_compiler_run_for_debugging_6638","Emit a v8 CPU profile of the compiler run for debugging."),Allow_importing_helper_functions_from_tslib_once_per_project_instead_of_including_them_per_file:la(6639,3,"Allow_importing_helper_functions_from_tslib_once_per_project_instead_of_including_them_per_file_6639","Allow importing helper functions from tslib once per project, instead of including them per-file."),Skip_building_downstream_projects_on_error_in_upstream_project:la(6640,3,"Skip_building_downstream_projects_on_error_in_upstream_project_6640","Skip building downstream projects on error in upstream project."),Specify_a_list_of_glob_patterns_that_match_files_to_be_included_in_compilation:la(6641,3,"Specify_a_list_of_glob_patterns_that_match_files_to_be_included_in_compilation_6641","Specify a list of glob patterns that match files to be included in compilation."),Save_tsbuildinfo_files_to_allow_for_incremental_compilation_of_projects:la(6642,3,"Save_tsbuildinfo_files_to_allow_for_incremental_compilation_of_projects_6642","Save .tsbuildinfo files to allow for incremental compilation of projects."),Include_sourcemap_files_inside_the_emitted_JavaScript:la(6643,3,"Include_sourcemap_files_inside_the_emitted_JavaScript_6643","Include sourcemap files inside the emitted JavaScript."),Include_source_code_in_the_sourcemaps_inside_the_emitted_JavaScript:la(6644,3,"Include_source_code_in_the_sourcemaps_inside_the_emitted_JavaScript_6644","Include source code in the sourcemaps inside the emitted JavaScript."),Ensure_that_each_file_can_be_safely_transpiled_without_relying_on_other_imports:la(6645,3,"Ensure_that_each_file_can_be_safely_transpiled_without_relying_on_other_imports_6645","Ensure that each file can be safely transpiled without relying on other imports."),Specify_what_JSX_code_is_generated:la(6646,3,"Specify_what_JSX_code_is_generated_6646","Specify what JSX code is generated."),Specify_the_JSX_factory_function_used_when_targeting_React_JSX_emit_e_g_React_createElement_or_h:la(6647,3,"Specify_the_JSX_factory_function_used_when_targeting_React_JSX_emit_e_g_React_createElement_or_h_6647","Specify the JSX factory function used when targeting React JSX emit, e.g. 'React.createElement' or 'h'."),Specify_the_JSX_Fragment_reference_used_for_fragments_when_targeting_React_JSX_emit_e_g_React_Fragment_or_Fragment:la(6648,3,"Specify_the_JSX_Fragment_reference_used_for_fragments_when_targeting_React_JSX_emit_e_g_React_Fragme_6648","Specify the JSX Fragment reference used for fragments when targeting React JSX emit e.g. 'React.Fragment' or 'Fragment'."),Specify_module_specifier_used_to_import_the_JSX_factory_functions_when_using_jsx_Colon_react_jsx_Asterisk:la(6649,3,"Specify_module_specifier_used_to_import_the_JSX_factory_functions_when_using_jsx_Colon_react_jsx_Ast_6649","Specify module specifier used to import the JSX factory functions when using 'jsx: react-jsx*'."),Make_keyof_only_return_strings_instead_of_string_numbers_or_symbols_Legacy_option:la(6650,3,"Make_keyof_only_return_strings_instead_of_string_numbers_or_symbols_Legacy_option_6650","Make keyof only return strings instead of string, numbers or symbols. Legacy option."),Specify_a_set_of_bundled_library_declaration_files_that_describe_the_target_runtime_environment:la(6651,3,"Specify_a_set_of_bundled_library_declaration_files_that_describe_the_target_runtime_environment_6651","Specify a set of bundled library declaration files that describe the target runtime environment."),Print_the_names_of_emitted_files_after_a_compilation:la(6652,3,"Print_the_names_of_emitted_files_after_a_compilation_6652","Print the names of emitted files after a compilation."),Print_all_of_the_files_read_during_the_compilation:la(6653,3,"Print_all_of_the_files_read_during_the_compilation_6653","Print all of the files read during the compilation."),Set_the_language_of_the_messaging_from_TypeScript_This_does_not_affect_emit:la(6654,3,"Set_the_language_of_the_messaging_from_TypeScript_This_does_not_affect_emit_6654","Set the language of the messaging from TypeScript. This does not affect emit."),Specify_the_location_where_debugger_should_locate_map_files_instead_of_generated_locations:la(6655,3,"Specify_the_location_where_debugger_should_locate_map_files_instead_of_generated_locations_6655","Specify the location where debugger should locate map files instead of generated locations."),Specify_the_maximum_folder_depth_used_for_checking_JavaScript_files_from_node_modules_Only_applicable_with_allowJs:la(6656,3,"Specify_the_maximum_folder_depth_used_for_checking_JavaScript_files_from_node_modules_Only_applicabl_6656","Specify the maximum folder depth used for checking JavaScript files from 'node_modules'. Only applicable with 'allowJs'."),Specify_what_module_code_is_generated:la(6657,3,"Specify_what_module_code_is_generated_6657","Specify what module code is generated."),Specify_how_TypeScript_looks_up_a_file_from_a_given_module_specifier:la(6658,3,"Specify_how_TypeScript_looks_up_a_file_from_a_given_module_specifier_6658","Specify how TypeScript looks up a file from a given module specifier."),Set_the_newline_character_for_emitting_files:la(6659,3,"Set_the_newline_character_for_emitting_files_6659","Set the newline character for emitting files."),Disable_emitting_files_from_a_compilation:la(6660,3,"Disable_emitting_files_from_a_compilation_6660","Disable emitting files from a compilation."),Disable_generating_custom_helper_functions_like_extends_in_compiled_output:la(6661,3,"Disable_generating_custom_helper_functions_like_extends_in_compiled_output_6661","Disable generating custom helper functions like '__extends' in compiled output."),Disable_emitting_files_if_any_type_checking_errors_are_reported:la(6662,3,"Disable_emitting_files_if_any_type_checking_errors_are_reported_6662","Disable emitting files if any type checking errors are reported."),Disable_truncating_types_in_error_messages:la(6663,3,"Disable_truncating_types_in_error_messages_6663","Disable truncating types in error messages."),Enable_error_reporting_for_fallthrough_cases_in_switch_statements:la(6664,3,"Enable_error_reporting_for_fallthrough_cases_in_switch_statements_6664","Enable error reporting for fallthrough cases in switch statements."),Enable_error_reporting_for_expressions_and_declarations_with_an_implied_any_type:la(6665,3,"Enable_error_reporting_for_expressions_and_declarations_with_an_implied_any_type_6665","Enable error reporting for expressions and declarations with an implied 'any' type."),Ensure_overriding_members_in_derived_classes_are_marked_with_an_override_modifier:la(6666,3,"Ensure_overriding_members_in_derived_classes_are_marked_with_an_override_modifier_6666","Ensure overriding members in derived classes are marked with an override modifier."),Enable_error_reporting_for_codepaths_that_do_not_explicitly_return_in_a_function:la(6667,3,"Enable_error_reporting_for_codepaths_that_do_not_explicitly_return_in_a_function_6667","Enable error reporting for codepaths that do not explicitly return in a function."),Enable_error_reporting_when_this_is_given_the_type_any:la(6668,3,"Enable_error_reporting_when_this_is_given_the_type_any_6668","Enable error reporting when 'this' is given the type 'any'."),Disable_adding_use_strict_directives_in_emitted_JavaScript_files:la(6669,3,"Disable_adding_use_strict_directives_in_emitted_JavaScript_files_6669","Disable adding 'use strict' directives in emitted JavaScript files."),Disable_including_any_library_files_including_the_default_lib_d_ts:la(6670,3,"Disable_including_any_library_files_including_the_default_lib_d_ts_6670","Disable including any library files, including the default lib.d.ts."),Enforces_using_indexed_accessors_for_keys_declared_using_an_indexed_type:la(6671,3,"Enforces_using_indexed_accessors_for_keys_declared_using_an_indexed_type_6671","Enforces using indexed accessors for keys declared using an indexed type."),Disallow_import_s_require_s_or_reference_s_from_expanding_the_number_of_files_TypeScript_should_add_to_a_project:la(6672,3,"Disallow_import_s_require_s_or_reference_s_from_expanding_the_number_of_files_TypeScript_should_add__6672","Disallow 'import's, 'require's or ''s from expanding the number of files TypeScript should add to a project."),Disable_strict_checking_of_generic_signatures_in_function_types:la(6673,3,"Disable_strict_checking_of_generic_signatures_in_function_types_6673","Disable strict checking of generic signatures in function types."),Add_undefined_to_a_type_when_accessed_using_an_index:la(6674,3,"Add_undefined_to_a_type_when_accessed_using_an_index_6674","Add 'undefined' to a type when accessed using an index."),Enable_error_reporting_when_local_variables_aren_t_read:la(6675,3,"Enable_error_reporting_when_local_variables_aren_t_read_6675","Enable error reporting when local variables aren't read."),Raise_an_error_when_a_function_parameter_isn_t_read:la(6676,3,"Raise_an_error_when_a_function_parameter_isn_t_read_6676","Raise an error when a function parameter isn't read."),Deprecated_setting_Use_outFile_instead:la(6677,3,"Deprecated_setting_Use_outFile_instead_6677","Deprecated setting. Use 'outFile' instead."),Specify_an_output_folder_for_all_emitted_files:la(6678,3,"Specify_an_output_folder_for_all_emitted_files_6678","Specify an output folder for all emitted files."),Specify_a_file_that_bundles_all_outputs_into_one_JavaScript_file_If_declaration_is_true_also_designates_a_file_that_bundles_all_d_ts_output:la(6679,3,"Specify_a_file_that_bundles_all_outputs_into_one_JavaScript_file_If_declaration_is_true_also_designa_6679","Specify a file that bundles all outputs into one JavaScript file. If 'declaration' is true, also designates a file that bundles all .d.ts output."),Specify_a_set_of_entries_that_re_map_imports_to_additional_lookup_locations:la(6680,3,"Specify_a_set_of_entries_that_re_map_imports_to_additional_lookup_locations_6680","Specify a set of entries that re-map imports to additional lookup locations."),Specify_a_list_of_language_service_plugins_to_include:la(6681,3,"Specify_a_list_of_language_service_plugins_to_include_6681","Specify a list of language service plugins to include."),Disable_erasing_const_enum_declarations_in_generated_code:la(6682,3,"Disable_erasing_const_enum_declarations_in_generated_code_6682","Disable erasing 'const enum' declarations in generated code."),Disable_resolving_symlinks_to_their_realpath_This_correlates_to_the_same_flag_in_node:la(6683,3,"Disable_resolving_symlinks_to_their_realpath_This_correlates_to_the_same_flag_in_node_6683","Disable resolving symlinks to their realpath. This correlates to the same flag in node."),Disable_wiping_the_console_in_watch_mode:la(6684,3,"Disable_wiping_the_console_in_watch_mode_6684","Disable wiping the console in watch mode."),Enable_color_and_formatting_in_TypeScript_s_output_to_make_compiler_errors_easier_to_read:la(6685,3,"Enable_color_and_formatting_in_TypeScript_s_output_to_make_compiler_errors_easier_to_read_6685","Enable color and formatting in TypeScript's output to make compiler errors easier to read."),Specify_the_object_invoked_for_createElement_This_only_applies_when_targeting_react_JSX_emit:la(6686,3,"Specify_the_object_invoked_for_createElement_This_only_applies_when_targeting_react_JSX_emit_6686","Specify the object invoked for 'createElement'. This only applies when targeting 'react' JSX emit."),Specify_an_array_of_objects_that_specify_paths_for_projects_Used_in_project_references:la(6687,3,"Specify_an_array_of_objects_that_specify_paths_for_projects_Used_in_project_references_6687","Specify an array of objects that specify paths for projects. Used in project references."),Disable_emitting_comments:la(6688,3,"Disable_emitting_comments_6688","Disable emitting comments."),Enable_importing_json_files:la(6689,3,"Enable_importing_json_files_6689","Enable importing .json files."),Specify_the_root_folder_within_your_source_files:la(6690,3,"Specify_the_root_folder_within_your_source_files_6690","Specify the root folder within your source files."),Allow_multiple_folders_to_be_treated_as_one_when_resolving_modules:la(6691,3,"Allow_multiple_folders_to_be_treated_as_one_when_resolving_modules_6691","Allow multiple folders to be treated as one when resolving modules."),Skip_type_checking_d_ts_files_that_are_included_with_TypeScript:la(6692,3,"Skip_type_checking_d_ts_files_that_are_included_with_TypeScript_6692","Skip type checking .d.ts files that are included with TypeScript."),Skip_type_checking_all_d_ts_files:la(6693,3,"Skip_type_checking_all_d_ts_files_6693","Skip type checking all .d.ts files."),Create_source_map_files_for_emitted_JavaScript_files:la(6694,3,"Create_source_map_files_for_emitted_JavaScript_files_6694","Create source map files for emitted JavaScript files."),Specify_the_root_path_for_debuggers_to_find_the_reference_source_code:la(6695,3,"Specify_the_root_path_for_debuggers_to_find_the_reference_source_code_6695","Specify the root path for debuggers to find the reference source code."),Check_that_the_arguments_for_bind_call_and_apply_methods_match_the_original_function:la(6697,3,"Check_that_the_arguments_for_bind_call_and_apply_methods_match_the_original_function_6697","Check that the arguments for 'bind', 'call', and 'apply' methods match the original function."),When_assigning_functions_check_to_ensure_parameters_and_the_return_values_are_subtype_compatible:la(6698,3,"When_assigning_functions_check_to_ensure_parameters_and_the_return_values_are_subtype_compatible_6698","When assigning functions, check to ensure parameters and the return values are subtype-compatible."),When_type_checking_take_into_account_null_and_undefined:la(6699,3,"When_type_checking_take_into_account_null_and_undefined_6699","When type checking, take into account 'null' and 'undefined'."),Check_for_class_properties_that_are_declared_but_not_set_in_the_constructor:la(6700,3,"Check_for_class_properties_that_are_declared_but_not_set_in_the_constructor_6700","Check for class properties that are declared but not set in the constructor."),Disable_emitting_declarations_that_have_internal_in_their_JSDoc_comments:la(6701,3,"Disable_emitting_declarations_that_have_internal_in_their_JSDoc_comments_6701","Disable emitting declarations that have '@internal' in their JSDoc comments."),Disable_reporting_of_excess_property_errors_during_the_creation_of_object_literals:la(6702,3,"Disable_reporting_of_excess_property_errors_during_the_creation_of_object_literals_6702","Disable reporting of excess property errors during the creation of object literals."),Suppress_noImplicitAny_errors_when_indexing_objects_that_lack_index_signatures:la(6703,3,"Suppress_noImplicitAny_errors_when_indexing_objects_that_lack_index_signatures_6703","Suppress 'noImplicitAny' errors when indexing objects that lack index signatures."),Synchronously_call_callbacks_and_update_the_state_of_directory_watchers_on_platforms_that_don_t_support_recursive_watching_natively:la(6704,3,"Synchronously_call_callbacks_and_update_the_state_of_directory_watchers_on_platforms_that_don_t_supp_6704","Synchronously call callbacks and update the state of directory watchers on platforms that don`t support recursive watching natively."),Set_the_JavaScript_language_version_for_emitted_JavaScript_and_include_compatible_library_declarations:la(6705,3,"Set_the_JavaScript_language_version_for_emitted_JavaScript_and_include_compatible_library_declaratio_6705","Set the JavaScript language version for emitted JavaScript and include compatible library declarations."),Log_paths_used_during_the_moduleResolution_process:la(6706,3,"Log_paths_used_during_the_moduleResolution_process_6706","Log paths used during the 'moduleResolution' process."),Specify_the_path_to_tsbuildinfo_incremental_compilation_file:la(6707,3,"Specify_the_path_to_tsbuildinfo_incremental_compilation_file_6707","Specify the path to .tsbuildinfo incremental compilation file."),Specify_options_for_automatic_acquisition_of_declaration_files:la(6709,3,"Specify_options_for_automatic_acquisition_of_declaration_files_6709","Specify options for automatic acquisition of declaration files."),Specify_multiple_folders_that_act_like_Slashnode_modules_Slash_types:la(6710,3,"Specify_multiple_folders_that_act_like_Slashnode_modules_Slash_types_6710","Specify multiple folders that act like './node_modules/@types'."),Specify_type_package_names_to_be_included_without_being_referenced_in_a_source_file:la(6711,3,"Specify_type_package_names_to_be_included_without_being_referenced_in_a_source_file_6711","Specify type package names to be included without being referenced in a source file."),Emit_ECMAScript_standard_compliant_class_fields:la(6712,3,"Emit_ECMAScript_standard_compliant_class_fields_6712","Emit ECMAScript-standard-compliant class fields."),Enable_verbose_logging:la(6713,3,"Enable_verbose_logging_6713","Enable verbose logging."),Specify_how_directories_are_watched_on_systems_that_lack_recursive_file_watching_functionality:la(6714,3,"Specify_how_directories_are_watched_on_systems_that_lack_recursive_file_watching_functionality_6714","Specify how directories are watched on systems that lack recursive file-watching functionality."),Specify_how_the_TypeScript_watch_mode_works:la(6715,3,"Specify_how_the_TypeScript_watch_mode_works_6715","Specify how the TypeScript watch mode works."),Require_undeclared_properties_from_index_signatures_to_use_element_accesses:la(6717,3,"Require_undeclared_properties_from_index_signatures_to_use_element_accesses_6717","Require undeclared properties from index signatures to use element accesses."),Specify_emit_Slashchecking_behavior_for_imports_that_are_only_used_for_types:la(6718,3,"Specify_emit_Slashchecking_behavior_for_imports_that_are_only_used_for_types_6718","Specify emit/checking behavior for imports that are only used for types."),Require_sufficient_annotation_on_exports_so_other_tools_can_trivially_generate_declaration_files:la(6719,3,"Require_sufficient_annotation_on_exports_so_other_tools_can_trivially_generate_declaration_files_6719","Require sufficient annotation on exports so other tools can trivially generate declaration files."),Built_in_iterators_are_instantiated_with_a_TReturn_type_of_undefined_instead_of_any:la(6720,3,"Built_in_iterators_are_instantiated_with_a_TReturn_type_of_undefined_instead_of_any_6720","Built-in iterators are instantiated with a 'TReturn' type of 'undefined' instead of 'any'."),Do_not_allow_runtime_constructs_that_are_not_part_of_ECMAScript:la(6721,3,"Do_not_allow_runtime_constructs_that_are_not_part_of_ECMAScript_6721","Do not allow runtime constructs that are not part of ECMAScript."),Default_catch_clause_variables_as_unknown_instead_of_any:la(6803,3,"Default_catch_clause_variables_as_unknown_instead_of_any_6803","Default catch clause variables as 'unknown' instead of 'any'."),Do_not_transform_or_elide_any_imports_or_exports_not_marked_as_type_only_ensuring_they_are_written_in_the_output_file_s_format_based_on_the_module_setting:la(6804,3,"Do_not_transform_or_elide_any_imports_or_exports_not_marked_as_type_only_ensuring_they_are_written_i_6804","Do not transform or elide any imports or exports not marked as type-only, ensuring they are written in the output file's format based on the 'module' setting."),Disable_full_type_checking_only_critical_parse_and_emit_errors_will_be_reported:la(6805,3,"Disable_full_type_checking_only_critical_parse_and_emit_errors_will_be_reported_6805","Disable full type checking (only critical parse and emit errors will be reported)."),Check_side_effect_imports:la(6806,3,"Check_side_effect_imports_6806","Check side effect imports."),This_operation_can_be_simplified_This_shift_is_identical_to_0_1_2:la(6807,1,"This_operation_can_be_simplified_This_shift_is_identical_to_0_1_2_6807","This operation can be simplified. This shift is identical to `{0} {1} {2}`."),Enable_lib_replacement:la(6808,3,"Enable_lib_replacement_6808","Enable lib replacement."),one_of_Colon:la(6900,3,"one_of_Colon_6900","one of:"),one_or_more_Colon:la(6901,3,"one_or_more_Colon_6901","one or more:"),type_Colon:la(6902,3,"type_Colon_6902","type:"),default_Colon:la(6903,3,"default_Colon_6903","default:"),module_system_or_esModuleInterop:la(6904,3,"module_system_or_esModuleInterop_6904",'module === "system" or esModuleInterop'),false_unless_strict_is_set:la(6905,3,"false_unless_strict_is_set_6905","`false`, unless `strict` is set"),false_unless_composite_is_set:la(6906,3,"false_unless_composite_is_set_6906","`false`, unless `composite` is set"),node_modules_bower_components_jspm_packages_plus_the_value_of_outDir_if_one_is_specified:la(6907,3,"node_modules_bower_components_jspm_packages_plus_the_value_of_outDir_if_one_is_specified_6907",'`["node_modules", "bower_components", "jspm_packages"]`, plus the value of `outDir` if one is specified.'),if_files_is_specified_otherwise_Asterisk_Asterisk_Slash_Asterisk:la(6908,3,"if_files_is_specified_otherwise_Asterisk_Asterisk_Slash_Asterisk_6908",'`[]` if `files` is specified, otherwise `["**/*"]`'),true_if_composite_false_otherwise:la(6909,3,"true_if_composite_false_otherwise_6909","`true` if `composite`, `false` otherwise"),module_AMD_or_UMD_or_System_or_ES6_then_Classic_Otherwise_Node:la(69010,3,"module_AMD_or_UMD_or_System_or_ES6_then_Classic_Otherwise_Node_69010","module === `AMD` or `UMD` or `System` or `ES6`, then `Classic`, Otherwise `Node`"),Computed_from_the_list_of_input_files:la(6911,3,"Computed_from_the_list_of_input_files_6911","Computed from the list of input files"),Platform_specific:la(6912,3,"Platform_specific_6912","Platform specific"),You_can_learn_about_all_of_the_compiler_options_at_0:la(6913,3,"You_can_learn_about_all_of_the_compiler_options_at_0_6913","You can learn about all of the compiler options at {0}"),Including_watch_w_will_start_watching_the_current_project_for_the_file_changes_Once_set_you_can_config_watch_mode_with_Colon:la(6914,3,"Including_watch_w_will_start_watching_the_current_project_for_the_file_changes_Once_set_you_can_conf_6914","Including --watch, -w will start watching the current project for the file changes. Once set, you can config watch mode with:"),Using_build_b_will_make_tsc_behave_more_like_a_build_orchestrator_than_a_compiler_This_is_used_to_trigger_building_composite_projects_which_you_can_learn_more_about_at_0:la(6915,3,"Using_build_b_will_make_tsc_behave_more_like_a_build_orchestrator_than_a_compiler_This_is_used_to_tr_6915","Using --build, -b will make tsc behave more like a build orchestrator than a compiler. This is used to trigger building composite projects which you can learn more about at {0}"),COMMON_COMMANDS:la(6916,3,"COMMON_COMMANDS_6916","COMMON COMMANDS"),ALL_COMPILER_OPTIONS:la(6917,3,"ALL_COMPILER_OPTIONS_6917","ALL COMPILER OPTIONS"),WATCH_OPTIONS:la(6918,3,"WATCH_OPTIONS_6918","WATCH OPTIONS"),BUILD_OPTIONS:la(6919,3,"BUILD_OPTIONS_6919","BUILD OPTIONS"),COMMON_COMPILER_OPTIONS:la(6920,3,"COMMON_COMPILER_OPTIONS_6920","COMMON COMPILER OPTIONS"),COMMAND_LINE_FLAGS:la(6921,3,"COMMAND_LINE_FLAGS_6921","COMMAND LINE FLAGS"),tsc_Colon_The_TypeScript_Compiler:la(6922,3,"tsc_Colon_The_TypeScript_Compiler_6922","tsc: The TypeScript Compiler"),Compiles_the_current_project_tsconfig_json_in_the_working_directory:la(6923,3,"Compiles_the_current_project_tsconfig_json_in_the_working_directory_6923","Compiles the current project (tsconfig.json in the working directory.)"),Ignoring_tsconfig_json_compiles_the_specified_files_with_default_compiler_options:la(6924,3,"Ignoring_tsconfig_json_compiles_the_specified_files_with_default_compiler_options_6924","Ignoring tsconfig.json, compiles the specified files with default compiler options."),Build_a_composite_project_in_the_working_directory:la(6925,3,"Build_a_composite_project_in_the_working_directory_6925","Build a composite project in the working directory."),Creates_a_tsconfig_json_with_the_recommended_settings_in_the_working_directory:la(6926,3,"Creates_a_tsconfig_json_with_the_recommended_settings_in_the_working_directory_6926","Creates a tsconfig.json with the recommended settings in the working directory."),Compiles_the_TypeScript_project_located_at_the_specified_path:la(6927,3,"Compiles_the_TypeScript_project_located_at_the_specified_path_6927","Compiles the TypeScript project located at the specified path."),An_expanded_version_of_this_information_showing_all_possible_compiler_options:la(6928,3,"An_expanded_version_of_this_information_showing_all_possible_compiler_options_6928","An expanded version of this information, showing all possible compiler options"),Compiles_the_current_project_with_additional_settings:la(6929,3,"Compiles_the_current_project_with_additional_settings_6929","Compiles the current project, with additional settings."),true_for_ES2022_and_above_including_ESNext:la(6930,3,"true_for_ES2022_and_above_including_ESNext_6930","`true` for ES2022 and above, including ESNext."),List_of_file_name_suffixes_to_search_when_resolving_a_module:la(6931,1,"List_of_file_name_suffixes_to_search_when_resolving_a_module_6931","List of file name suffixes to search when resolving a module."),Variable_0_implicitly_has_an_1_type:la(7005,1,"Variable_0_implicitly_has_an_1_type_7005","Variable '{0}' implicitly has an '{1}' type."),Parameter_0_implicitly_has_an_1_type:la(7006,1,"Parameter_0_implicitly_has_an_1_type_7006","Parameter '{0}' implicitly has an '{1}' type."),Member_0_implicitly_has_an_1_type:la(7008,1,"Member_0_implicitly_has_an_1_type_7008","Member '{0}' implicitly has an '{1}' type."),new_expression_whose_target_lacks_a_construct_signature_implicitly_has_an_any_type:la(7009,1,"new_expression_whose_target_lacks_a_construct_signature_implicitly_has_an_any_type_7009","'new' expression, whose target lacks a construct signature, implicitly has an 'any' type."),_0_which_lacks_return_type_annotation_implicitly_has_an_1_return_type:la(7010,1,"_0_which_lacks_return_type_annotation_implicitly_has_an_1_return_type_7010","'{0}', which lacks return-type annotation, implicitly has an '{1}' return type."),Function_expression_which_lacks_return_type_annotation_implicitly_has_an_0_return_type:la(7011,1,"Function_expression_which_lacks_return_type_annotation_implicitly_has_an_0_return_type_7011","Function expression, which lacks return-type annotation, implicitly has an '{0}' return type."),This_overload_implicitly_returns_the_type_0_because_it_lacks_a_return_type_annotation:la(7012,1,"This_overload_implicitly_returns_the_type_0_because_it_lacks_a_return_type_annotation_7012","This overload implicitly returns the type '{0}' because it lacks a return type annotation."),Construct_signature_which_lacks_return_type_annotation_implicitly_has_an_any_return_type:la(7013,1,"Construct_signature_which_lacks_return_type_annotation_implicitly_has_an_any_return_type_7013","Construct signature, which lacks return-type annotation, implicitly has an 'any' return type."),Function_type_which_lacks_return_type_annotation_implicitly_has_an_0_return_type:la(7014,1,"Function_type_which_lacks_return_type_annotation_implicitly_has_an_0_return_type_7014","Function type, which lacks return-type annotation, implicitly has an '{0}' return type."),Element_implicitly_has_an_any_type_because_index_expression_is_not_of_type_number:la(7015,1,"Element_implicitly_has_an_any_type_because_index_expression_is_not_of_type_number_7015","Element implicitly has an 'any' type because index expression is not of type 'number'."),Could_not_find_a_declaration_file_for_module_0_1_implicitly_has_an_any_type:la(7016,1,"Could_not_find_a_declaration_file_for_module_0_1_implicitly_has_an_any_type_7016","Could not find a declaration file for module '{0}'. '{1}' implicitly has an 'any' type."),Element_implicitly_has_an_any_type_because_type_0_has_no_index_signature:la(7017,1,"Element_implicitly_has_an_any_type_because_type_0_has_no_index_signature_7017","Element implicitly has an 'any' type because type '{0}' has no index signature."),Object_literal_s_property_0_implicitly_has_an_1_type:la(7018,1,"Object_literal_s_property_0_implicitly_has_an_1_type_7018","Object literal's property '{0}' implicitly has an '{1}' type."),Rest_parameter_0_implicitly_has_an_any_type:la(7019,1,"Rest_parameter_0_implicitly_has_an_any_type_7019","Rest parameter '{0}' implicitly has an 'any[]' type."),Call_signature_which_lacks_return_type_annotation_implicitly_has_an_any_return_type:la(7020,1,"Call_signature_which_lacks_return_type_annotation_implicitly_has_an_any_return_type_7020","Call signature, which lacks return-type annotation, implicitly has an 'any' return type."),_0_implicitly_has_type_any_because_it_does_not_have_a_type_annotation_and_is_referenced_directly_or_indirectly_in_its_own_initializer:la(7022,1,"_0_implicitly_has_type_any_because_it_does_not_have_a_type_annotation_and_is_referenced_directly_or__7022","'{0}' implicitly has type 'any' because it does not have a type annotation and is referenced directly or indirectly in its own initializer."),_0_implicitly_has_return_type_any_because_it_does_not_have_a_return_type_annotation_and_is_referenced_directly_or_indirectly_in_one_of_its_return_expressions:la(7023,1,"_0_implicitly_has_return_type_any_because_it_does_not_have_a_return_type_annotation_and_is_reference_7023","'{0}' implicitly has return type 'any' because it does not have a return type annotation and is referenced directly or indirectly in one of its return expressions."),Function_implicitly_has_return_type_any_because_it_does_not_have_a_return_type_annotation_and_is_referenced_directly_or_indirectly_in_one_of_its_return_expressions:la(7024,1,"Function_implicitly_has_return_type_any_because_it_does_not_have_a_return_type_annotation_and_is_ref_7024","Function implicitly has return type 'any' because it does not have a return type annotation and is referenced directly or indirectly in one of its return expressions."),Generator_implicitly_has_yield_type_0_Consider_supplying_a_return_type_annotation:la(7025,1,"Generator_implicitly_has_yield_type_0_Consider_supplying_a_return_type_annotation_7025","Generator implicitly has yield type '{0}'. Consider supplying a return type annotation."),JSX_element_implicitly_has_type_any_because_no_interface_JSX_0_exists:la(7026,1,"JSX_element_implicitly_has_type_any_because_no_interface_JSX_0_exists_7026","JSX element implicitly has type 'any' because no interface 'JSX.{0}' exists."),Unreachable_code_detected:la(7027,1,"Unreachable_code_detected_7027","Unreachable code detected.",!0),Unused_label:la(7028,1,"Unused_label_7028","Unused label.",!0),Fallthrough_case_in_switch:la(7029,1,"Fallthrough_case_in_switch_7029","Fallthrough case in switch."),Not_all_code_paths_return_a_value:la(7030,1,"Not_all_code_paths_return_a_value_7030","Not all code paths return a value."),Binding_element_0_implicitly_has_an_1_type:la(7031,1,"Binding_element_0_implicitly_has_an_1_type_7031","Binding element '{0}' implicitly has an '{1}' type."),Property_0_implicitly_has_type_any_because_its_set_accessor_lacks_a_parameter_type_annotation:la(7032,1,"Property_0_implicitly_has_type_any_because_its_set_accessor_lacks_a_parameter_type_annotation_7032","Property '{0}' implicitly has type 'any', because its set accessor lacks a parameter type annotation."),Property_0_implicitly_has_type_any_because_its_get_accessor_lacks_a_return_type_annotation:la(7033,1,"Property_0_implicitly_has_type_any_because_its_get_accessor_lacks_a_return_type_annotation_7033","Property '{0}' implicitly has type 'any', because its get accessor lacks a return type annotation."),Variable_0_implicitly_has_type_1_in_some_locations_where_its_type_cannot_be_determined:la(7034,1,"Variable_0_implicitly_has_type_1_in_some_locations_where_its_type_cannot_be_determined_7034","Variable '{0}' implicitly has type '{1}' in some locations where its type cannot be determined."),Try_npm_i_save_dev_types_Slash_1_if_it_exists_or_add_a_new_declaration_d_ts_file_containing_declare_module_0:la(7035,1,"Try_npm_i_save_dev_types_Slash_1_if_it_exists_or_add_a_new_declaration_d_ts_file_containing_declare__7035","Try `npm i --save-dev @types/{1}` if it exists or add a new declaration (.d.ts) file containing `declare module '{0}';`"),Dynamic_import_s_specifier_must_be_of_type_string_but_here_has_type_0:la(7036,1,"Dynamic_import_s_specifier_must_be_of_type_string_but_here_has_type_0_7036","Dynamic import's specifier must be of type 'string', but here has type '{0}'."),Enables_emit_interoperability_between_CommonJS_and_ES_Modules_via_creation_of_namespace_objects_for_all_imports_Implies_allowSyntheticDefaultImports:la(7037,3,"Enables_emit_interoperability_between_CommonJS_and_ES_Modules_via_creation_of_namespace_objects_for__7037","Enables emit interoperability between CommonJS and ES Modules via creation of namespace objects for all imports. Implies 'allowSyntheticDefaultImports'."),Type_originates_at_this_import_A_namespace_style_import_cannot_be_called_or_constructed_and_will_cause_a_failure_at_runtime_Consider_using_a_default_import_or_import_require_here_instead:la(7038,3,"Type_originates_at_this_import_A_namespace_style_import_cannot_be_called_or_constructed_and_will_cau_7038","Type originates at this import. A namespace-style import cannot be called or constructed, and will cause a failure at runtime. Consider using a default import or import require here instead."),Mapped_object_type_implicitly_has_an_any_template_type:la(7039,1,"Mapped_object_type_implicitly_has_an_any_template_type_7039","Mapped object type implicitly has an 'any' template type."),If_the_0_package_actually_exposes_this_module_consider_sending_a_pull_request_to_amend_https_Colon_Slash_Slashgithub_com_SlashDefinitelyTyped_SlashDefinitelyTyped_Slashtree_Slashmaster_Slashtypes_Slash_1:la(7040,1,"If_the_0_package_actually_exposes_this_module_consider_sending_a_pull_request_to_amend_https_Colon_S_7040","If the '{0}' package actually exposes this module, consider sending a pull request to amend 'https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/{1}'"),The_containing_arrow_function_captures_the_global_value_of_this:la(7041,1,"The_containing_arrow_function_captures_the_global_value_of_this_7041","The containing arrow function captures the global value of 'this'."),Module_0_was_resolved_to_1_but_resolveJsonModule_is_not_used:la(7042,1,"Module_0_was_resolved_to_1_but_resolveJsonModule_is_not_used_7042","Module '{0}' was resolved to '{1}', but '--resolveJsonModule' is not used."),Variable_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage:la(7043,2,"Variable_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage_7043","Variable '{0}' implicitly has an '{1}' type, but a better type may be inferred from usage."),Parameter_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage:la(7044,2,"Parameter_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage_7044","Parameter '{0}' implicitly has an '{1}' type, but a better type may be inferred from usage."),Member_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage:la(7045,2,"Member_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage_7045","Member '{0}' implicitly has an '{1}' type, but a better type may be inferred from usage."),Variable_0_implicitly_has_type_1_in_some_locations_but_a_better_type_may_be_inferred_from_usage:la(7046,2,"Variable_0_implicitly_has_type_1_in_some_locations_but_a_better_type_may_be_inferred_from_usage_7046","Variable '{0}' implicitly has type '{1}' in some locations, but a better type may be inferred from usage."),Rest_parameter_0_implicitly_has_an_any_type_but_a_better_type_may_be_inferred_from_usage:la(7047,2,"Rest_parameter_0_implicitly_has_an_any_type_but_a_better_type_may_be_inferred_from_usage_7047","Rest parameter '{0}' implicitly has an 'any[]' type, but a better type may be inferred from usage."),Property_0_implicitly_has_type_any_but_a_better_type_for_its_get_accessor_may_be_inferred_from_usage:la(7048,2,"Property_0_implicitly_has_type_any_but_a_better_type_for_its_get_accessor_may_be_inferred_from_usage_7048","Property '{0}' implicitly has type 'any', but a better type for its get accessor may be inferred from usage."),Property_0_implicitly_has_type_any_but_a_better_type_for_its_set_accessor_may_be_inferred_from_usage:la(7049,2,"Property_0_implicitly_has_type_any_but_a_better_type_for_its_set_accessor_may_be_inferred_from_usage_7049","Property '{0}' implicitly has type 'any', but a better type for its set accessor may be inferred from usage."),_0_implicitly_has_an_1_return_type_but_a_better_type_may_be_inferred_from_usage:la(7050,2,"_0_implicitly_has_an_1_return_type_but_a_better_type_may_be_inferred_from_usage_7050","'{0}' implicitly has an '{1}' return type, but a better type may be inferred from usage."),Parameter_has_a_name_but_no_type_Did_you_mean_0_Colon_1:la(7051,1,"Parameter_has_a_name_but_no_type_Did_you_mean_0_Colon_1_7051","Parameter has a name but no type. Did you mean '{0}: {1}'?"),Element_implicitly_has_an_any_type_because_type_0_has_no_index_signature_Did_you_mean_to_call_1:la(7052,1,"Element_implicitly_has_an_any_type_because_type_0_has_no_index_signature_Did_you_mean_to_call_1_7052","Element implicitly has an 'any' type because type '{0}' has no index signature. Did you mean to call '{1}'?"),Element_implicitly_has_an_any_type_because_expression_of_type_0_can_t_be_used_to_index_type_1:la(7053,1,"Element_implicitly_has_an_any_type_because_expression_of_type_0_can_t_be_used_to_index_type_1_7053","Element implicitly has an 'any' type because expression of type '{0}' can't be used to index type '{1}'."),No_index_signature_with_a_parameter_of_type_0_was_found_on_type_1:la(7054,1,"No_index_signature_with_a_parameter_of_type_0_was_found_on_type_1_7054","No index signature with a parameter of type '{0}' was found on type '{1}'."),_0_which_lacks_return_type_annotation_implicitly_has_an_1_yield_type:la(7055,1,"_0_which_lacks_return_type_annotation_implicitly_has_an_1_yield_type_7055","'{0}', which lacks return-type annotation, implicitly has an '{1}' yield type."),The_inferred_type_of_this_node_exceeds_the_maximum_length_the_compiler_will_serialize_An_explicit_type_annotation_is_needed:la(7056,1,"The_inferred_type_of_this_node_exceeds_the_maximum_length_the_compiler_will_serialize_An_explicit_ty_7056","The inferred type of this node exceeds the maximum length the compiler will serialize. An explicit type annotation is needed."),yield_expression_implicitly_results_in_an_any_type_because_its_containing_generator_lacks_a_return_type_annotation:la(7057,1,"yield_expression_implicitly_results_in_an_any_type_because_its_containing_generator_lacks_a_return_t_7057","'yield' expression implicitly results in an 'any' type because its containing generator lacks a return-type annotation."),If_the_0_package_actually_exposes_this_module_try_adding_a_new_declaration_d_ts_file_containing_declare_module_1:la(7058,1,"If_the_0_package_actually_exposes_this_module_try_adding_a_new_declaration_d_ts_file_containing_decl_7058","If the '{0}' package actually exposes this module, try adding a new declaration (.d.ts) file containing `declare module '{1}';`"),This_syntax_is_reserved_in_files_with_the_mts_or_cts_extension_Use_an_as_expression_instead:la(7059,1,"This_syntax_is_reserved_in_files_with_the_mts_or_cts_extension_Use_an_as_expression_instead_7059","This syntax is reserved in files with the .mts or .cts extension. Use an `as` expression instead."),This_syntax_is_reserved_in_files_with_the_mts_or_cts_extension_Add_a_trailing_comma_or_explicit_constraint:la(7060,1,"This_syntax_is_reserved_in_files_with_the_mts_or_cts_extension_Add_a_trailing_comma_or_explicit_cons_7060","This syntax is reserved in files with the .mts or .cts extension. Add a trailing comma or explicit constraint."),A_mapped_type_may_not_declare_properties_or_methods:la(7061,1,"A_mapped_type_may_not_declare_properties_or_methods_7061","A mapped type may not declare properties or methods."),You_cannot_rename_this_element:la(8e3,1,"You_cannot_rename_this_element_8000","You cannot rename this element."),You_cannot_rename_elements_that_are_defined_in_the_standard_TypeScript_library:la(8001,1,"You_cannot_rename_elements_that_are_defined_in_the_standard_TypeScript_library_8001","You cannot rename elements that are defined in the standard TypeScript library."),import_can_only_be_used_in_TypeScript_files:la(8002,1,"import_can_only_be_used_in_TypeScript_files_8002","'import ... =' can only be used in TypeScript files."),export_can_only_be_used_in_TypeScript_files:la(8003,1,"export_can_only_be_used_in_TypeScript_files_8003","'export =' can only be used in TypeScript files."),Type_parameter_declarations_can_only_be_used_in_TypeScript_files:la(8004,1,"Type_parameter_declarations_can_only_be_used_in_TypeScript_files_8004","Type parameter declarations can only be used in TypeScript files."),implements_clauses_can_only_be_used_in_TypeScript_files:la(8005,1,"implements_clauses_can_only_be_used_in_TypeScript_files_8005","'implements' clauses can only be used in TypeScript files."),_0_declarations_can_only_be_used_in_TypeScript_files:la(8006,1,"_0_declarations_can_only_be_used_in_TypeScript_files_8006","'{0}' declarations can only be used in TypeScript files."),Type_aliases_can_only_be_used_in_TypeScript_files:la(8008,1,"Type_aliases_can_only_be_used_in_TypeScript_files_8008","Type aliases can only be used in TypeScript files."),The_0_modifier_can_only_be_used_in_TypeScript_files:la(8009,1,"The_0_modifier_can_only_be_used_in_TypeScript_files_8009","The '{0}' modifier can only be used in TypeScript files."),Type_annotations_can_only_be_used_in_TypeScript_files:la(8010,1,"Type_annotations_can_only_be_used_in_TypeScript_files_8010","Type annotations can only be used in TypeScript files."),Type_arguments_can_only_be_used_in_TypeScript_files:la(8011,1,"Type_arguments_can_only_be_used_in_TypeScript_files_8011","Type arguments can only be used in TypeScript files."),Parameter_modifiers_can_only_be_used_in_TypeScript_files:la(8012,1,"Parameter_modifiers_can_only_be_used_in_TypeScript_files_8012","Parameter modifiers can only be used in TypeScript files."),Non_null_assertions_can_only_be_used_in_TypeScript_files:la(8013,1,"Non_null_assertions_can_only_be_used_in_TypeScript_files_8013","Non-null assertions can only be used in TypeScript files."),Type_assertion_expressions_can_only_be_used_in_TypeScript_files:la(8016,1,"Type_assertion_expressions_can_only_be_used_in_TypeScript_files_8016","Type assertion expressions can only be used in TypeScript files."),Signature_declarations_can_only_be_used_in_TypeScript_files:la(8017,1,"Signature_declarations_can_only_be_used_in_TypeScript_files_8017","Signature declarations can only be used in TypeScript files."),Report_errors_in_js_files:la(8019,3,"Report_errors_in_js_files_8019","Report errors in .js files."),JSDoc_types_can_only_be_used_inside_documentation_comments:la(8020,1,"JSDoc_types_can_only_be_used_inside_documentation_comments_8020","JSDoc types can only be used inside documentation comments."),JSDoc_typedef_tag_should_either_have_a_type_annotation_or_be_followed_by_property_or_member_tags:la(8021,1,"JSDoc_typedef_tag_should_either_have_a_type_annotation_or_be_followed_by_property_or_member_tags_8021","JSDoc '@typedef' tag should either have a type annotation or be followed by '@property' or '@member' tags."),JSDoc_0_is_not_attached_to_a_class:la(8022,1,"JSDoc_0_is_not_attached_to_a_class_8022","JSDoc '@{0}' is not attached to a class."),JSDoc_0_1_does_not_match_the_extends_2_clause:la(8023,1,"JSDoc_0_1_does_not_match_the_extends_2_clause_8023","JSDoc '@{0} {1}' does not match the 'extends {2}' clause."),JSDoc_param_tag_has_name_0_but_there_is_no_parameter_with_that_name:la(8024,1,"JSDoc_param_tag_has_name_0_but_there_is_no_parameter_with_that_name_8024","JSDoc '@param' tag has name '{0}', but there is no parameter with that name."),Class_declarations_cannot_have_more_than_one_augments_or_extends_tag:la(8025,1,"Class_declarations_cannot_have_more_than_one_augments_or_extends_tag_8025","Class declarations cannot have more than one '@augments' or '@extends' tag."),Expected_0_type_arguments_provide_these_with_an_extends_tag:la(8026,1,"Expected_0_type_arguments_provide_these_with_an_extends_tag_8026","Expected {0} type arguments; provide these with an '@extends' tag."),Expected_0_1_type_arguments_provide_these_with_an_extends_tag:la(8027,1,"Expected_0_1_type_arguments_provide_these_with_an_extends_tag_8027","Expected {0}-{1} type arguments; provide these with an '@extends' tag."),JSDoc_may_only_appear_in_the_last_parameter_of_a_signature:la(8028,1,"JSDoc_may_only_appear_in_the_last_parameter_of_a_signature_8028","JSDoc '...' may only appear in the last parameter of a signature."),JSDoc_param_tag_has_name_0_but_there_is_no_parameter_with_that_name_It_would_match_arguments_if_it_had_an_array_type:la(8029,1,"JSDoc_param_tag_has_name_0_but_there_is_no_parameter_with_that_name_It_would_match_arguments_if_it_h_8029","JSDoc '@param' tag has name '{0}', but there is no parameter with that name. It would match 'arguments' if it had an array type."),The_type_of_a_function_declaration_must_match_the_function_s_signature:la(8030,1,"The_type_of_a_function_declaration_must_match_the_function_s_signature_8030","The type of a function declaration must match the function's signature."),You_cannot_rename_a_module_via_a_global_import:la(8031,1,"You_cannot_rename_a_module_via_a_global_import_8031","You cannot rename a module via a global import."),Qualified_name_0_is_not_allowed_without_a_leading_param_object_1:la(8032,1,"Qualified_name_0_is_not_allowed_without_a_leading_param_object_1_8032","Qualified name '{0}' is not allowed without a leading '@param {object} {1}'."),A_JSDoc_typedef_comment_may_not_contain_multiple_type_tags:la(8033,1,"A_JSDoc_typedef_comment_may_not_contain_multiple_type_tags_8033","A JSDoc '@typedef' comment may not contain multiple '@type' tags."),The_tag_was_first_specified_here:la(8034,1,"The_tag_was_first_specified_here_8034","The tag was first specified here."),You_cannot_rename_elements_that_are_defined_in_a_node_modules_folder:la(8035,1,"You_cannot_rename_elements_that_are_defined_in_a_node_modules_folder_8035","You cannot rename elements that are defined in a 'node_modules' folder."),You_cannot_rename_elements_that_are_defined_in_another_node_modules_folder:la(8036,1,"You_cannot_rename_elements_that_are_defined_in_another_node_modules_folder_8036","You cannot rename elements that are defined in another 'node_modules' folder."),Type_satisfaction_expressions_can_only_be_used_in_TypeScript_files:la(8037,1,"Type_satisfaction_expressions_can_only_be_used_in_TypeScript_files_8037","Type satisfaction expressions can only be used in TypeScript files."),Decorators_may_not_appear_after_export_or_export_default_if_they_also_appear_before_export:la(8038,1,"Decorators_may_not_appear_after_export_or_export_default_if_they_also_appear_before_export_8038","Decorators may not appear after 'export' or 'export default' if they also appear before 'export'."),A_JSDoc_template_tag_may_not_follow_a_typedef_callback_or_overload_tag:la(8039,1,"A_JSDoc_template_tag_may_not_follow_a_typedef_callback_or_overload_tag_8039","A JSDoc '@template' tag may not follow a '@typedef', '@callback', or '@overload' tag"),Declaration_emit_for_this_file_requires_using_private_name_0_An_explicit_type_annotation_may_unblock_declaration_emit:la(9005,1,"Declaration_emit_for_this_file_requires_using_private_name_0_An_explicit_type_annotation_may_unblock_9005","Declaration emit for this file requires using private name '{0}'. An explicit type annotation may unblock declaration emit."),Declaration_emit_for_this_file_requires_using_private_name_0_from_module_1_An_explicit_type_annotation_may_unblock_declaration_emit:la(9006,1,"Declaration_emit_for_this_file_requires_using_private_name_0_from_module_1_An_explicit_type_annotati_9006","Declaration emit for this file requires using private name '{0}' from module '{1}'. An explicit type annotation may unblock declaration emit."),Function_must_have_an_explicit_return_type_annotation_with_isolatedDeclarations:la(9007,1,"Function_must_have_an_explicit_return_type_annotation_with_isolatedDeclarations_9007","Function must have an explicit return type annotation with --isolatedDeclarations."),Method_must_have_an_explicit_return_type_annotation_with_isolatedDeclarations:la(9008,1,"Method_must_have_an_explicit_return_type_annotation_with_isolatedDeclarations_9008","Method must have an explicit return type annotation with --isolatedDeclarations."),At_least_one_accessor_must_have_an_explicit_type_annotation_with_isolatedDeclarations:la(9009,1,"At_least_one_accessor_must_have_an_explicit_type_annotation_with_isolatedDeclarations_9009","At least one accessor must have an explicit type annotation with --isolatedDeclarations."),Variable_must_have_an_explicit_type_annotation_with_isolatedDeclarations:la(9010,1,"Variable_must_have_an_explicit_type_annotation_with_isolatedDeclarations_9010","Variable must have an explicit type annotation with --isolatedDeclarations."),Parameter_must_have_an_explicit_type_annotation_with_isolatedDeclarations:la(9011,1,"Parameter_must_have_an_explicit_type_annotation_with_isolatedDeclarations_9011","Parameter must have an explicit type annotation with --isolatedDeclarations."),Property_must_have_an_explicit_type_annotation_with_isolatedDeclarations:la(9012,1,"Property_must_have_an_explicit_type_annotation_with_isolatedDeclarations_9012","Property must have an explicit type annotation with --isolatedDeclarations."),Expression_type_can_t_be_inferred_with_isolatedDeclarations:la(9013,1,"Expression_type_can_t_be_inferred_with_isolatedDeclarations_9013","Expression type can't be inferred with --isolatedDeclarations."),Computed_properties_must_be_number_or_string_literals_variables_or_dotted_expressions_with_isolatedDeclarations:la(9014,1,"Computed_properties_must_be_number_or_string_literals_variables_or_dotted_expressions_with_isolatedD_9014","Computed properties must be number or string literals, variables or dotted expressions with --isolatedDeclarations."),Objects_that_contain_spread_assignments_can_t_be_inferred_with_isolatedDeclarations:la(9015,1,"Objects_that_contain_spread_assignments_can_t_be_inferred_with_isolatedDeclarations_9015","Objects that contain spread assignments can't be inferred with --isolatedDeclarations."),Objects_that_contain_shorthand_properties_can_t_be_inferred_with_isolatedDeclarations:la(9016,1,"Objects_that_contain_shorthand_properties_can_t_be_inferred_with_isolatedDeclarations_9016","Objects that contain shorthand properties can't be inferred with --isolatedDeclarations."),Only_const_arrays_can_be_inferred_with_isolatedDeclarations:la(9017,1,"Only_const_arrays_can_be_inferred_with_isolatedDeclarations_9017","Only const arrays can be inferred with --isolatedDeclarations."),Arrays_with_spread_elements_can_t_inferred_with_isolatedDeclarations:la(9018,1,"Arrays_with_spread_elements_can_t_inferred_with_isolatedDeclarations_9018","Arrays with spread elements can't inferred with --isolatedDeclarations."),Binding_elements_can_t_be_exported_directly_with_isolatedDeclarations:la(9019,1,"Binding_elements_can_t_be_exported_directly_with_isolatedDeclarations_9019","Binding elements can't be exported directly with --isolatedDeclarations."),Enum_member_initializers_must_be_computable_without_references_to_external_symbols_with_isolatedDeclarations:la(9020,1,"Enum_member_initializers_must_be_computable_without_references_to_external_symbols_with_isolatedDecl_9020","Enum member initializers must be computable without references to external symbols with --isolatedDeclarations."),Extends_clause_can_t_contain_an_expression_with_isolatedDeclarations:la(9021,1,"Extends_clause_can_t_contain_an_expression_with_isolatedDeclarations_9021","Extends clause can't contain an expression with --isolatedDeclarations."),Inference_from_class_expressions_is_not_supported_with_isolatedDeclarations:la(9022,1,"Inference_from_class_expressions_is_not_supported_with_isolatedDeclarations_9022","Inference from class expressions is not supported with --isolatedDeclarations."),Assigning_properties_to_functions_without_declaring_them_is_not_supported_with_isolatedDeclarations_Add_an_explicit_declaration_for_the_properties_assigned_to_this_function:la(9023,1,"Assigning_properties_to_functions_without_declaring_them_is_not_supported_with_isolatedDeclarations__9023","Assigning properties to functions without declaring them is not supported with --isolatedDeclarations. Add an explicit declaration for the properties assigned to this function."),Declaration_emit_for_this_parameter_requires_implicitly_adding_undefined_to_its_type_This_is_not_supported_with_isolatedDeclarations:la(9025,1,"Declaration_emit_for_this_parameter_requires_implicitly_adding_undefined_to_its_type_This_is_not_sup_9025","Declaration emit for this parameter requires implicitly adding undefined to its type. This is not supported with --isolatedDeclarations."),Declaration_emit_for_this_file_requires_preserving_this_import_for_augmentations_This_is_not_supported_with_isolatedDeclarations:la(9026,1,"Declaration_emit_for_this_file_requires_preserving_this_import_for_augmentations_This_is_not_support_9026","Declaration emit for this file requires preserving this import for augmentations. This is not supported with --isolatedDeclarations."),Add_a_type_annotation_to_the_variable_0:la(9027,1,"Add_a_type_annotation_to_the_variable_0_9027","Add a type annotation to the variable {0}."),Add_a_type_annotation_to_the_parameter_0:la(9028,1,"Add_a_type_annotation_to_the_parameter_0_9028","Add a type annotation to the parameter {0}."),Add_a_type_annotation_to_the_property_0:la(9029,1,"Add_a_type_annotation_to_the_property_0_9029","Add a type annotation to the property {0}."),Add_a_return_type_to_the_function_expression:la(9030,1,"Add_a_return_type_to_the_function_expression_9030","Add a return type to the function expression."),Add_a_return_type_to_the_function_declaration:la(9031,1,"Add_a_return_type_to_the_function_declaration_9031","Add a return type to the function declaration."),Add_a_return_type_to_the_get_accessor_declaration:la(9032,1,"Add_a_return_type_to_the_get_accessor_declaration_9032","Add a return type to the get accessor declaration."),Add_a_type_to_parameter_of_the_set_accessor_declaration:la(9033,1,"Add_a_type_to_parameter_of_the_set_accessor_declaration_9033","Add a type to parameter of the set accessor declaration."),Add_a_return_type_to_the_method:la(9034,1,"Add_a_return_type_to_the_method_9034","Add a return type to the method"),Add_satisfies_and_a_type_assertion_to_this_expression_satisfies_T_as_T_to_make_the_type_explicit:la(9035,1,"Add_satisfies_and_a_type_assertion_to_this_expression_satisfies_T_as_T_to_make_the_type_explicit_9035","Add satisfies and a type assertion to this expression (satisfies T as T) to make the type explicit."),Move_the_expression_in_default_export_to_a_variable_and_add_a_type_annotation_to_it:la(9036,1,"Move_the_expression_in_default_export_to_a_variable_and_add_a_type_annotation_to_it_9036","Move the expression in default export to a variable and add a type annotation to it."),Default_exports_can_t_be_inferred_with_isolatedDeclarations:la(9037,1,"Default_exports_can_t_be_inferred_with_isolatedDeclarations_9037","Default exports can't be inferred with --isolatedDeclarations."),Computed_property_names_on_class_or_object_literals_cannot_be_inferred_with_isolatedDeclarations:la(9038,1,"Computed_property_names_on_class_or_object_literals_cannot_be_inferred_with_isolatedDeclarations_9038","Computed property names on class or object literals cannot be inferred with --isolatedDeclarations."),Type_containing_private_name_0_can_t_be_used_with_isolatedDeclarations:la(9039,1,"Type_containing_private_name_0_can_t_be_used_with_isolatedDeclarations_9039","Type containing private name '{0}' can't be used with --isolatedDeclarations."),JSX_attributes_must_only_be_assigned_a_non_empty_expression:la(17e3,1,"JSX_attributes_must_only_be_assigned_a_non_empty_expression_17000","JSX attributes must only be assigned a non-empty 'expression'."),JSX_elements_cannot_have_multiple_attributes_with_the_same_name:la(17001,1,"JSX_elements_cannot_have_multiple_attributes_with_the_same_name_17001","JSX elements cannot have multiple attributes with the same name."),Expected_corresponding_JSX_closing_tag_for_0:la(17002,1,"Expected_corresponding_JSX_closing_tag_for_0_17002","Expected corresponding JSX closing tag for '{0}'."),Cannot_use_JSX_unless_the_jsx_flag_is_provided:la(17004,1,"Cannot_use_JSX_unless_the_jsx_flag_is_provided_17004","Cannot use JSX unless the '--jsx' flag is provided."),A_constructor_cannot_contain_a_super_call_when_its_class_extends_null:la(17005,1,"A_constructor_cannot_contain_a_super_call_when_its_class_extends_null_17005","A constructor cannot contain a 'super' call when its class extends 'null'."),An_unary_expression_with_the_0_operator_is_not_allowed_in_the_left_hand_side_of_an_exponentiation_expression_Consider_enclosing_the_expression_in_parentheses:la(17006,1,"An_unary_expression_with_the_0_operator_is_not_allowed_in_the_left_hand_side_of_an_exponentiation_ex_17006","An unary expression with the '{0}' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses."),A_type_assertion_expression_is_not_allowed_in_the_left_hand_side_of_an_exponentiation_expression_Consider_enclosing_the_expression_in_parentheses:la(17007,1,"A_type_assertion_expression_is_not_allowed_in_the_left_hand_side_of_an_exponentiation_expression_Con_17007","A type assertion expression is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses."),JSX_element_0_has_no_corresponding_closing_tag:la(17008,1,"JSX_element_0_has_no_corresponding_closing_tag_17008","JSX element '{0}' has no corresponding closing tag."),super_must_be_called_before_accessing_this_in_the_constructor_of_a_derived_class:la(17009,1,"super_must_be_called_before_accessing_this_in_the_constructor_of_a_derived_class_17009","'super' must be called before accessing 'this' in the constructor of a derived class."),Unknown_type_acquisition_option_0:la(17010,1,"Unknown_type_acquisition_option_0_17010","Unknown type acquisition option '{0}'."),super_must_be_called_before_accessing_a_property_of_super_in_the_constructor_of_a_derived_class:la(17011,1,"super_must_be_called_before_accessing_a_property_of_super_in_the_constructor_of_a_derived_class_17011","'super' must be called before accessing a property of 'super' in the constructor of a derived class."),_0_is_not_a_valid_meta_property_for_keyword_1_Did_you_mean_2:la(17012,1,"_0_is_not_a_valid_meta_property_for_keyword_1_Did_you_mean_2_17012","'{0}' is not a valid meta-property for keyword '{1}'. Did you mean '{2}'?"),Meta_property_0_is_only_allowed_in_the_body_of_a_function_declaration_function_expression_or_constructor:la(17013,1,"Meta_property_0_is_only_allowed_in_the_body_of_a_function_declaration_function_expression_or_constru_17013","Meta-property '{0}' is only allowed in the body of a function declaration, function expression, or constructor."),JSX_fragment_has_no_corresponding_closing_tag:la(17014,1,"JSX_fragment_has_no_corresponding_closing_tag_17014","JSX fragment has no corresponding closing tag."),Expected_corresponding_closing_tag_for_JSX_fragment:la(17015,1,"Expected_corresponding_closing_tag_for_JSX_fragment_17015","Expected corresponding closing tag for JSX fragment."),The_jsxFragmentFactory_compiler_option_must_be_provided_to_use_JSX_fragments_with_the_jsxFactory_compiler_option:la(17016,1,"The_jsxFragmentFactory_compiler_option_must_be_provided_to_use_JSX_fragments_with_the_jsxFactory_com_17016","The 'jsxFragmentFactory' compiler option must be provided to use JSX fragments with the 'jsxFactory' compiler option."),An_jsxFrag_pragma_is_required_when_using_an_jsx_pragma_with_JSX_fragments:la(17017,1,"An_jsxFrag_pragma_is_required_when_using_an_jsx_pragma_with_JSX_fragments_17017","An @jsxFrag pragma is required when using an @jsx pragma with JSX fragments."),Unknown_type_acquisition_option_0_Did_you_mean_1:la(17018,1,"Unknown_type_acquisition_option_0_Did_you_mean_1_17018","Unknown type acquisition option '{0}'. Did you mean '{1}'?"),_0_at_the_end_of_a_type_is_not_valid_TypeScript_syntax_Did_you_mean_to_write_1:la(17019,1,"_0_at_the_end_of_a_type_is_not_valid_TypeScript_syntax_Did_you_mean_to_write_1_17019","'{0}' at the end of a type is not valid TypeScript syntax. Did you mean to write '{1}'?"),_0_at_the_start_of_a_type_is_not_valid_TypeScript_syntax_Did_you_mean_to_write_1:la(17020,1,"_0_at_the_start_of_a_type_is_not_valid_TypeScript_syntax_Did_you_mean_to_write_1_17020","'{0}' at the start of a type is not valid TypeScript syntax. Did you mean to write '{1}'?"),Unicode_escape_sequence_cannot_appear_here:la(17021,1,"Unicode_escape_sequence_cannot_appear_here_17021","Unicode escape sequence cannot appear here."),Circularity_detected_while_resolving_configuration_Colon_0:la(18e3,1,"Circularity_detected_while_resolving_configuration_Colon_0_18000","Circularity detected while resolving configuration: {0}"),The_files_list_in_config_file_0_is_empty:la(18002,1,"The_files_list_in_config_file_0_is_empty_18002","The 'files' list in config file '{0}' is empty."),No_inputs_were_found_in_config_file_0_Specified_include_paths_were_1_and_exclude_paths_were_2:la(18003,1,"No_inputs_were_found_in_config_file_0_Specified_include_paths_were_1_and_exclude_paths_were_2_18003","No inputs were found in config file '{0}'. Specified 'include' paths were '{1}' and 'exclude' paths were '{2}'."),File_is_a_CommonJS_module_it_may_be_converted_to_an_ES_module:la(80001,2,"File_is_a_CommonJS_module_it_may_be_converted_to_an_ES_module_80001","File is a CommonJS module; it may be converted to an ES module."),This_constructor_function_may_be_converted_to_a_class_declaration:la(80002,2,"This_constructor_function_may_be_converted_to_a_class_declaration_80002","This constructor function may be converted to a class declaration."),Import_may_be_converted_to_a_default_import:la(80003,2,"Import_may_be_converted_to_a_default_import_80003","Import may be converted to a default import."),JSDoc_types_may_be_moved_to_TypeScript_types:la(80004,2,"JSDoc_types_may_be_moved_to_TypeScript_types_80004","JSDoc types may be moved to TypeScript types."),require_call_may_be_converted_to_an_import:la(80005,2,"require_call_may_be_converted_to_an_import_80005","'require' call may be converted to an import."),This_may_be_converted_to_an_async_function:la(80006,2,"This_may_be_converted_to_an_async_function_80006","This may be converted to an async function."),await_has_no_effect_on_the_type_of_this_expression:la(80007,2,"await_has_no_effect_on_the_type_of_this_expression_80007","'await' has no effect on the type of this expression."),Numeric_literals_with_absolute_values_equal_to_2_53_or_greater_are_too_large_to_be_represented_accurately_as_integers:la(80008,2,"Numeric_literals_with_absolute_values_equal_to_2_53_or_greater_are_too_large_to_be_represented_accur_80008","Numeric literals with absolute values equal to 2^53 or greater are too large to be represented accurately as integers."),JSDoc_typedef_may_be_converted_to_TypeScript_type:la(80009,2,"JSDoc_typedef_may_be_converted_to_TypeScript_type_80009","JSDoc typedef may be converted to TypeScript type."),JSDoc_typedefs_may_be_converted_to_TypeScript_types:la(80010,2,"JSDoc_typedefs_may_be_converted_to_TypeScript_types_80010","JSDoc typedefs may be converted to TypeScript types."),Add_missing_super_call:la(90001,3,"Add_missing_super_call_90001","Add missing 'super()' call"),Make_super_call_the_first_statement_in_the_constructor:la(90002,3,"Make_super_call_the_first_statement_in_the_constructor_90002","Make 'super()' call the first statement in the constructor"),Change_extends_to_implements:la(90003,3,"Change_extends_to_implements_90003","Change 'extends' to 'implements'"),Remove_unused_declaration_for_Colon_0:la(90004,3,"Remove_unused_declaration_for_Colon_0_90004","Remove unused declaration for: '{0}'"),Remove_import_from_0:la(90005,3,"Remove_import_from_0_90005","Remove import from '{0}'"),Implement_interface_0:la(90006,3,"Implement_interface_0_90006","Implement interface '{0}'"),Implement_inherited_abstract_class:la(90007,3,"Implement_inherited_abstract_class_90007","Implement inherited abstract class"),Add_0_to_unresolved_variable:la(90008,3,"Add_0_to_unresolved_variable_90008","Add '{0}.' to unresolved variable"),Remove_variable_statement:la(90010,3,"Remove_variable_statement_90010","Remove variable statement"),Remove_template_tag:la(90011,3,"Remove_template_tag_90011","Remove template tag"),Remove_type_parameters:la(90012,3,"Remove_type_parameters_90012","Remove type parameters"),Import_0_from_1:la(90013,3,"Import_0_from_1_90013","Import '{0}' from \"{1}\""),Change_0_to_1:la(90014,3,"Change_0_to_1_90014","Change '{0}' to '{1}'"),Declare_property_0:la(90016,3,"Declare_property_0_90016","Declare property '{0}'"),Add_index_signature_for_property_0:la(90017,3,"Add_index_signature_for_property_0_90017","Add index signature for property '{0}'"),Disable_checking_for_this_file:la(90018,3,"Disable_checking_for_this_file_90018","Disable checking for this file"),Ignore_this_error_message:la(90019,3,"Ignore_this_error_message_90019","Ignore this error message"),Initialize_property_0_in_the_constructor:la(90020,3,"Initialize_property_0_in_the_constructor_90020","Initialize property '{0}' in the constructor"),Initialize_static_property_0:la(90021,3,"Initialize_static_property_0_90021","Initialize static property '{0}'"),Change_spelling_to_0:la(90022,3,"Change_spelling_to_0_90022","Change spelling to '{0}'"),Declare_method_0:la(90023,3,"Declare_method_0_90023","Declare method '{0}'"),Declare_static_method_0:la(90024,3,"Declare_static_method_0_90024","Declare static method '{0}'"),Prefix_0_with_an_underscore:la(90025,3,"Prefix_0_with_an_underscore_90025","Prefix '{0}' with an underscore"),Rewrite_as_the_indexed_access_type_0:la(90026,3,"Rewrite_as_the_indexed_access_type_0_90026","Rewrite as the indexed access type '{0}'"),Declare_static_property_0:la(90027,3,"Declare_static_property_0_90027","Declare static property '{0}'"),Call_decorator_expression:la(90028,3,"Call_decorator_expression_90028","Call decorator expression"),Add_async_modifier_to_containing_function:la(90029,3,"Add_async_modifier_to_containing_function_90029","Add async modifier to containing function"),Replace_infer_0_with_unknown:la(90030,3,"Replace_infer_0_with_unknown_90030","Replace 'infer {0}' with 'unknown'"),Replace_all_unused_infer_with_unknown:la(90031,3,"Replace_all_unused_infer_with_unknown_90031","Replace all unused 'infer' with 'unknown'"),Add_parameter_name:la(90034,3,"Add_parameter_name_90034","Add parameter name"),Declare_private_property_0:la(90035,3,"Declare_private_property_0_90035","Declare private property '{0}'"),Replace_0_with_Promise_1:la(90036,3,"Replace_0_with_Promise_1_90036","Replace '{0}' with 'Promise<{1}>'"),Fix_all_incorrect_return_type_of_an_async_functions:la(90037,3,"Fix_all_incorrect_return_type_of_an_async_functions_90037","Fix all incorrect return type of an async functions"),Declare_private_method_0:la(90038,3,"Declare_private_method_0_90038","Declare private method '{0}'"),Remove_unused_destructuring_declaration:la(90039,3,"Remove_unused_destructuring_declaration_90039","Remove unused destructuring declaration"),Remove_unused_declarations_for_Colon_0:la(90041,3,"Remove_unused_declarations_for_Colon_0_90041","Remove unused declarations for: '{0}'"),Declare_a_private_field_named_0:la(90053,3,"Declare_a_private_field_named_0_90053","Declare a private field named '{0}'."),Includes_imports_of_types_referenced_by_0:la(90054,3,"Includes_imports_of_types_referenced_by_0_90054","Includes imports of types referenced by '{0}'"),Remove_type_from_import_declaration_from_0:la(90055,3,"Remove_type_from_import_declaration_from_0_90055","Remove 'type' from import declaration from \"{0}\""),Remove_type_from_import_of_0_from_1:la(90056,3,"Remove_type_from_import_of_0_from_1_90056","Remove 'type' from import of '{0}' from \"{1}\""),Add_import_from_0:la(90057,3,"Add_import_from_0_90057",'Add import from "{0}"'),Update_import_from_0:la(90058,3,"Update_import_from_0_90058",'Update import from "{0}"'),Export_0_from_module_1:la(90059,3,"Export_0_from_module_1_90059","Export '{0}' from module '{1}'"),Export_all_referenced_locals:la(90060,3,"Export_all_referenced_locals_90060","Export all referenced locals"),Update_modifiers_of_0:la(90061,3,"Update_modifiers_of_0_90061","Update modifiers of '{0}'"),Add_annotation_of_type_0:la(90062,3,"Add_annotation_of_type_0_90062","Add annotation of type '{0}'"),Add_return_type_0:la(90063,3,"Add_return_type_0_90063","Add return type '{0}'"),Extract_base_class_to_variable:la(90064,3,"Extract_base_class_to_variable_90064","Extract base class to variable"),Extract_default_export_to_variable:la(90065,3,"Extract_default_export_to_variable_90065","Extract default export to variable"),Extract_binding_expressions_to_variable:la(90066,3,"Extract_binding_expressions_to_variable_90066","Extract binding expressions to variable"),Add_all_missing_type_annotations:la(90067,3,"Add_all_missing_type_annotations_90067","Add all missing type annotations"),Add_satisfies_and_an_inline_type_assertion_with_0:la(90068,3,"Add_satisfies_and_an_inline_type_assertion_with_0_90068","Add satisfies and an inline type assertion with '{0}'"),Extract_to_variable_and_replace_with_0_as_typeof_0:la(90069,3,"Extract_to_variable_and_replace_with_0_as_typeof_0_90069","Extract to variable and replace with '{0} as typeof {0}'"),Mark_array_literal_as_const:la(90070,3,"Mark_array_literal_as_const_90070","Mark array literal as const"),Annotate_types_of_properties_expando_function_in_a_namespace:la(90071,3,"Annotate_types_of_properties_expando_function_in_a_namespace_90071","Annotate types of properties expando function in a namespace"),Convert_function_to_an_ES2015_class:la(95001,3,"Convert_function_to_an_ES2015_class_95001","Convert function to an ES2015 class"),Convert_0_to_1_in_0:la(95003,3,"Convert_0_to_1_in_0_95003","Convert '{0}' to '{1} in {0}'"),Extract_to_0_in_1:la(95004,3,"Extract_to_0_in_1_95004","Extract to {0} in {1}"),Extract_function:la(95005,3,"Extract_function_95005","Extract function"),Extract_constant:la(95006,3,"Extract_constant_95006","Extract constant"),Extract_to_0_in_enclosing_scope:la(95007,3,"Extract_to_0_in_enclosing_scope_95007","Extract to {0} in enclosing scope"),Extract_to_0_in_1_scope:la(95008,3,"Extract_to_0_in_1_scope_95008","Extract to {0} in {1} scope"),Annotate_with_type_from_JSDoc:la(95009,3,"Annotate_with_type_from_JSDoc_95009","Annotate with type from JSDoc"),Infer_type_of_0_from_usage:la(95011,3,"Infer_type_of_0_from_usage_95011","Infer type of '{0}' from usage"),Infer_parameter_types_from_usage:la(95012,3,"Infer_parameter_types_from_usage_95012","Infer parameter types from usage"),Convert_to_default_import:la(95013,3,"Convert_to_default_import_95013","Convert to default import"),Install_0:la(95014,3,"Install_0_95014","Install '{0}'"),Replace_import_with_0:la(95015,3,"Replace_import_with_0_95015","Replace import with '{0}'."),Use_synthetic_default_member:la(95016,3,"Use_synthetic_default_member_95016","Use synthetic 'default' member."),Convert_to_ES_module:la(95017,3,"Convert_to_ES_module_95017","Convert to ES module"),Add_undefined_type_to_property_0:la(95018,3,"Add_undefined_type_to_property_0_95018","Add 'undefined' type to property '{0}'"),Add_initializer_to_property_0:la(95019,3,"Add_initializer_to_property_0_95019","Add initializer to property '{0}'"),Add_definite_assignment_assertion_to_property_0:la(95020,3,"Add_definite_assignment_assertion_to_property_0_95020","Add definite assignment assertion to property '{0}'"),Convert_all_type_literals_to_mapped_type:la(95021,3,"Convert_all_type_literals_to_mapped_type_95021","Convert all type literals to mapped type"),Add_all_missing_members:la(95022,3,"Add_all_missing_members_95022","Add all missing members"),Infer_all_types_from_usage:la(95023,3,"Infer_all_types_from_usage_95023","Infer all types from usage"),Delete_all_unused_declarations:la(95024,3,"Delete_all_unused_declarations_95024","Delete all unused declarations"),Prefix_all_unused_declarations_with_where_possible:la(95025,3,"Prefix_all_unused_declarations_with_where_possible_95025","Prefix all unused declarations with '_' where possible"),Fix_all_detected_spelling_errors:la(95026,3,"Fix_all_detected_spelling_errors_95026","Fix all detected spelling errors"),Add_initializers_to_all_uninitialized_properties:la(95027,3,"Add_initializers_to_all_uninitialized_properties_95027","Add initializers to all uninitialized properties"),Add_definite_assignment_assertions_to_all_uninitialized_properties:la(95028,3,"Add_definite_assignment_assertions_to_all_uninitialized_properties_95028","Add definite assignment assertions to all uninitialized properties"),Add_undefined_type_to_all_uninitialized_properties:la(95029,3,"Add_undefined_type_to_all_uninitialized_properties_95029","Add undefined type to all uninitialized properties"),Change_all_jsdoc_style_types_to_TypeScript:la(95030,3,"Change_all_jsdoc_style_types_to_TypeScript_95030","Change all jsdoc-style types to TypeScript"),Change_all_jsdoc_style_types_to_TypeScript_and_add_undefined_to_nullable_types:la(95031,3,"Change_all_jsdoc_style_types_to_TypeScript_and_add_undefined_to_nullable_types_95031","Change all jsdoc-style types to TypeScript (and add '| undefined' to nullable types)"),Implement_all_unimplemented_interfaces:la(95032,3,"Implement_all_unimplemented_interfaces_95032","Implement all unimplemented interfaces"),Install_all_missing_types_packages:la(95033,3,"Install_all_missing_types_packages_95033","Install all missing types packages"),Rewrite_all_as_indexed_access_types:la(95034,3,"Rewrite_all_as_indexed_access_types_95034","Rewrite all as indexed access types"),Convert_all_to_default_imports:la(95035,3,"Convert_all_to_default_imports_95035","Convert all to default imports"),Make_all_super_calls_the_first_statement_in_their_constructor:la(95036,3,"Make_all_super_calls_the_first_statement_in_their_constructor_95036","Make all 'super()' calls the first statement in their constructor"),Add_qualifier_to_all_unresolved_variables_matching_a_member_name:la(95037,3,"Add_qualifier_to_all_unresolved_variables_matching_a_member_name_95037","Add qualifier to all unresolved variables matching a member name"),Change_all_extended_interfaces_to_implements:la(95038,3,"Change_all_extended_interfaces_to_implements_95038","Change all extended interfaces to 'implements'"),Add_all_missing_super_calls:la(95039,3,"Add_all_missing_super_calls_95039","Add all missing super calls"),Implement_all_inherited_abstract_classes:la(95040,3,"Implement_all_inherited_abstract_classes_95040","Implement all inherited abstract classes"),Add_all_missing_async_modifiers:la(95041,3,"Add_all_missing_async_modifiers_95041","Add all missing 'async' modifiers"),Add_ts_ignore_to_all_error_messages:la(95042,3,"Add_ts_ignore_to_all_error_messages_95042","Add '@ts-ignore' to all error messages"),Annotate_everything_with_types_from_JSDoc:la(95043,3,"Annotate_everything_with_types_from_JSDoc_95043","Annotate everything with types from JSDoc"),Add_to_all_uncalled_decorators:la(95044,3,"Add_to_all_uncalled_decorators_95044","Add '()' to all uncalled decorators"),Convert_all_constructor_functions_to_classes:la(95045,3,"Convert_all_constructor_functions_to_classes_95045","Convert all constructor functions to classes"),Generate_get_and_set_accessors:la(95046,3,"Generate_get_and_set_accessors_95046","Generate 'get' and 'set' accessors"),Convert_require_to_import:la(95047,3,"Convert_require_to_import_95047","Convert 'require' to 'import'"),Convert_all_require_to_import:la(95048,3,"Convert_all_require_to_import_95048","Convert all 'require' to 'import'"),Move_to_a_new_file:la(95049,3,"Move_to_a_new_file_95049","Move to a new file"),Remove_unreachable_code:la(95050,3,"Remove_unreachable_code_95050","Remove unreachable code"),Remove_all_unreachable_code:la(95051,3,"Remove_all_unreachable_code_95051","Remove all unreachable code"),Add_missing_typeof:la(95052,3,"Add_missing_typeof_95052","Add missing 'typeof'"),Remove_unused_label:la(95053,3,"Remove_unused_label_95053","Remove unused label"),Remove_all_unused_labels:la(95054,3,"Remove_all_unused_labels_95054","Remove all unused labels"),Convert_0_to_mapped_object_type:la(95055,3,"Convert_0_to_mapped_object_type_95055","Convert '{0}' to mapped object type"),Convert_namespace_import_to_named_imports:la(95056,3,"Convert_namespace_import_to_named_imports_95056","Convert namespace import to named imports"),Convert_named_imports_to_namespace_import:la(95057,3,"Convert_named_imports_to_namespace_import_95057","Convert named imports to namespace import"),Add_or_remove_braces_in_an_arrow_function:la(95058,3,"Add_or_remove_braces_in_an_arrow_function_95058","Add or remove braces in an arrow function"),Add_braces_to_arrow_function:la(95059,3,"Add_braces_to_arrow_function_95059","Add braces to arrow function"),Remove_braces_from_arrow_function:la(95060,3,"Remove_braces_from_arrow_function_95060","Remove braces from arrow function"),Convert_default_export_to_named_export:la(95061,3,"Convert_default_export_to_named_export_95061","Convert default export to named export"),Convert_named_export_to_default_export:la(95062,3,"Convert_named_export_to_default_export_95062","Convert named export to default export"),Add_missing_enum_member_0:la(95063,3,"Add_missing_enum_member_0_95063","Add missing enum member '{0}'"),Add_all_missing_imports:la(95064,3,"Add_all_missing_imports_95064","Add all missing imports"),Convert_to_async_function:la(95065,3,"Convert_to_async_function_95065","Convert to async function"),Convert_all_to_async_functions:la(95066,3,"Convert_all_to_async_functions_95066","Convert all to async functions"),Add_missing_call_parentheses:la(95067,3,"Add_missing_call_parentheses_95067","Add missing call parentheses"),Add_all_missing_call_parentheses:la(95068,3,"Add_all_missing_call_parentheses_95068","Add all missing call parentheses"),Add_unknown_conversion_for_non_overlapping_types:la(95069,3,"Add_unknown_conversion_for_non_overlapping_types_95069","Add 'unknown' conversion for non-overlapping types"),Add_unknown_to_all_conversions_of_non_overlapping_types:la(95070,3,"Add_unknown_to_all_conversions_of_non_overlapping_types_95070","Add 'unknown' to all conversions of non-overlapping types"),Add_missing_new_operator_to_call:la(95071,3,"Add_missing_new_operator_to_call_95071","Add missing 'new' operator to call"),Add_missing_new_operator_to_all_calls:la(95072,3,"Add_missing_new_operator_to_all_calls_95072","Add missing 'new' operator to all calls"),Add_names_to_all_parameters_without_names:la(95073,3,"Add_names_to_all_parameters_without_names_95073","Add names to all parameters without names"),Enable_the_experimentalDecorators_option_in_your_configuration_file:la(95074,3,"Enable_the_experimentalDecorators_option_in_your_configuration_file_95074","Enable the 'experimentalDecorators' option in your configuration file"),Convert_parameters_to_destructured_object:la(95075,3,"Convert_parameters_to_destructured_object_95075","Convert parameters to destructured object"),Extract_type:la(95077,3,"Extract_type_95077","Extract type"),Extract_to_type_alias:la(95078,3,"Extract_to_type_alias_95078","Extract to type alias"),Extract_to_typedef:la(95079,3,"Extract_to_typedef_95079","Extract to typedef"),Infer_this_type_of_0_from_usage:la(95080,3,"Infer_this_type_of_0_from_usage_95080","Infer 'this' type of '{0}' from usage"),Add_const_to_unresolved_variable:la(95081,3,"Add_const_to_unresolved_variable_95081","Add 'const' to unresolved variable"),Add_const_to_all_unresolved_variables:la(95082,3,"Add_const_to_all_unresolved_variables_95082","Add 'const' to all unresolved variables"),Add_await:la(95083,3,"Add_await_95083","Add 'await'"),Add_await_to_initializer_for_0:la(95084,3,"Add_await_to_initializer_for_0_95084","Add 'await' to initializer for '{0}'"),Fix_all_expressions_possibly_missing_await:la(95085,3,"Fix_all_expressions_possibly_missing_await_95085","Fix all expressions possibly missing 'await'"),Remove_unnecessary_await:la(95086,3,"Remove_unnecessary_await_95086","Remove unnecessary 'await'"),Remove_all_unnecessary_uses_of_await:la(95087,3,"Remove_all_unnecessary_uses_of_await_95087","Remove all unnecessary uses of 'await'"),Enable_the_jsx_flag_in_your_configuration_file:la(95088,3,"Enable_the_jsx_flag_in_your_configuration_file_95088","Enable the '--jsx' flag in your configuration file"),Add_await_to_initializers:la(95089,3,"Add_await_to_initializers_95089","Add 'await' to initializers"),Extract_to_interface:la(95090,3,"Extract_to_interface_95090","Extract to interface"),Convert_to_a_bigint_numeric_literal:la(95091,3,"Convert_to_a_bigint_numeric_literal_95091","Convert to a bigint numeric literal"),Convert_all_to_bigint_numeric_literals:la(95092,3,"Convert_all_to_bigint_numeric_literals_95092","Convert all to bigint numeric literals"),Convert_const_to_let:la(95093,3,"Convert_const_to_let_95093","Convert 'const' to 'let'"),Prefix_with_declare:la(95094,3,"Prefix_with_declare_95094","Prefix with 'declare'"),Prefix_all_incorrect_property_declarations_with_declare:la(95095,3,"Prefix_all_incorrect_property_declarations_with_declare_95095","Prefix all incorrect property declarations with 'declare'"),Convert_to_template_string:la(95096,3,"Convert_to_template_string_95096","Convert to template string"),Add_export_to_make_this_file_into_a_module:la(95097,3,"Add_export_to_make_this_file_into_a_module_95097","Add 'export {}' to make this file into a module"),Set_the_target_option_in_your_configuration_file_to_0:la(95098,3,"Set_the_target_option_in_your_configuration_file_to_0_95098","Set the 'target' option in your configuration file to '{0}'"),Set_the_module_option_in_your_configuration_file_to_0:la(95099,3,"Set_the_module_option_in_your_configuration_file_to_0_95099","Set the 'module' option in your configuration file to '{0}'"),Convert_invalid_character_to_its_html_entity_code:la(95100,3,"Convert_invalid_character_to_its_html_entity_code_95100","Convert invalid character to its html entity code"),Convert_all_invalid_characters_to_HTML_entity_code:la(95101,3,"Convert_all_invalid_characters_to_HTML_entity_code_95101","Convert all invalid characters to HTML entity code"),Convert_all_const_to_let:la(95102,3,"Convert_all_const_to_let_95102","Convert all 'const' to 'let'"),Convert_function_expression_0_to_arrow_function:la(95105,3,"Convert_function_expression_0_to_arrow_function_95105","Convert function expression '{0}' to arrow function"),Convert_function_declaration_0_to_arrow_function:la(95106,3,"Convert_function_declaration_0_to_arrow_function_95106","Convert function declaration '{0}' to arrow function"),Fix_all_implicit_this_errors:la(95107,3,"Fix_all_implicit_this_errors_95107","Fix all implicit-'this' errors"),Wrap_invalid_character_in_an_expression_container:la(95108,3,"Wrap_invalid_character_in_an_expression_container_95108","Wrap invalid character in an expression container"),Wrap_all_invalid_characters_in_an_expression_container:la(95109,3,"Wrap_all_invalid_characters_in_an_expression_container_95109","Wrap all invalid characters in an expression container"),Visit_https_Colon_Slash_Slashaka_ms_Slashtsconfig_to_read_more_about_this_file:la(95110,3,"Visit_https_Colon_Slash_Slashaka_ms_Slashtsconfig_to_read_more_about_this_file_95110","Visit https://aka.ms/tsconfig to read more about this file"),Add_a_return_statement:la(95111,3,"Add_a_return_statement_95111","Add a return statement"),Remove_braces_from_arrow_function_body:la(95112,3,"Remove_braces_from_arrow_function_body_95112","Remove braces from arrow function body"),Wrap_the_following_body_with_parentheses_which_should_be_an_object_literal:la(95113,3,"Wrap_the_following_body_with_parentheses_which_should_be_an_object_literal_95113","Wrap the following body with parentheses which should be an object literal"),Add_all_missing_return_statement:la(95114,3,"Add_all_missing_return_statement_95114","Add all missing return statement"),Remove_braces_from_all_arrow_function_bodies_with_relevant_issues:la(95115,3,"Remove_braces_from_all_arrow_function_bodies_with_relevant_issues_95115","Remove braces from all arrow function bodies with relevant issues"),Wrap_all_object_literal_with_parentheses:la(95116,3,"Wrap_all_object_literal_with_parentheses_95116","Wrap all object literal with parentheses"),Move_labeled_tuple_element_modifiers_to_labels:la(95117,3,"Move_labeled_tuple_element_modifiers_to_labels_95117","Move labeled tuple element modifiers to labels"),Convert_overload_list_to_single_signature:la(95118,3,"Convert_overload_list_to_single_signature_95118","Convert overload list to single signature"),Generate_get_and_set_accessors_for_all_overriding_properties:la(95119,3,"Generate_get_and_set_accessors_for_all_overriding_properties_95119","Generate 'get' and 'set' accessors for all overriding properties"),Wrap_in_JSX_fragment:la(95120,3,"Wrap_in_JSX_fragment_95120","Wrap in JSX fragment"),Wrap_all_unparented_JSX_in_JSX_fragment:la(95121,3,"Wrap_all_unparented_JSX_in_JSX_fragment_95121","Wrap all unparented JSX in JSX fragment"),Convert_arrow_function_or_function_expression:la(95122,3,"Convert_arrow_function_or_function_expression_95122","Convert arrow function or function expression"),Convert_to_anonymous_function:la(95123,3,"Convert_to_anonymous_function_95123","Convert to anonymous function"),Convert_to_named_function:la(95124,3,"Convert_to_named_function_95124","Convert to named function"),Convert_to_arrow_function:la(95125,3,"Convert_to_arrow_function_95125","Convert to arrow function"),Remove_parentheses:la(95126,3,"Remove_parentheses_95126","Remove parentheses"),Could_not_find_a_containing_arrow_function:la(95127,3,"Could_not_find_a_containing_arrow_function_95127","Could not find a containing arrow function"),Containing_function_is_not_an_arrow_function:la(95128,3,"Containing_function_is_not_an_arrow_function_95128","Containing function is not an arrow function"),Could_not_find_export_statement:la(95129,3,"Could_not_find_export_statement_95129","Could not find export statement"),This_file_already_has_a_default_export:la(95130,3,"This_file_already_has_a_default_export_95130","This file already has a default export"),Could_not_find_import_clause:la(95131,3,"Could_not_find_import_clause_95131","Could not find import clause"),Could_not_find_namespace_import_or_named_imports:la(95132,3,"Could_not_find_namespace_import_or_named_imports_95132","Could not find namespace import or named imports"),Selection_is_not_a_valid_type_node:la(95133,3,"Selection_is_not_a_valid_type_node_95133","Selection is not a valid type node"),No_type_could_be_extracted_from_this_type_node:la(95134,3,"No_type_could_be_extracted_from_this_type_node_95134","No type could be extracted from this type node"),Could_not_find_property_for_which_to_generate_accessor:la(95135,3,"Could_not_find_property_for_which_to_generate_accessor_95135","Could not find property for which to generate accessor"),Name_is_not_valid:la(95136,3,"Name_is_not_valid_95136","Name is not valid"),Can_only_convert_property_with_modifier:la(95137,3,"Can_only_convert_property_with_modifier_95137","Can only convert property with modifier"),Switch_each_misused_0_to_1:la(95138,3,"Switch_each_misused_0_to_1_95138","Switch each misused '{0}' to '{1}'"),Convert_to_optional_chain_expression:la(95139,3,"Convert_to_optional_chain_expression_95139","Convert to optional chain expression"),Could_not_find_convertible_access_expression:la(95140,3,"Could_not_find_convertible_access_expression_95140","Could not find convertible access expression"),Could_not_find_matching_access_expressions:la(95141,3,"Could_not_find_matching_access_expressions_95141","Could not find matching access expressions"),Can_only_convert_logical_AND_access_chains:la(95142,3,"Can_only_convert_logical_AND_access_chains_95142","Can only convert logical AND access chains"),Add_void_to_Promise_resolved_without_a_value:la(95143,3,"Add_void_to_Promise_resolved_without_a_value_95143","Add 'void' to Promise resolved without a value"),Add_void_to_all_Promises_resolved_without_a_value:la(95144,3,"Add_void_to_all_Promises_resolved_without_a_value_95144","Add 'void' to all Promises resolved without a value"),Use_element_access_for_0:la(95145,3,"Use_element_access_for_0_95145","Use element access for '{0}'"),Use_element_access_for_all_undeclared_properties:la(95146,3,"Use_element_access_for_all_undeclared_properties_95146","Use element access for all undeclared properties."),Delete_all_unused_imports:la(95147,3,"Delete_all_unused_imports_95147","Delete all unused imports"),Infer_function_return_type:la(95148,3,"Infer_function_return_type_95148","Infer function return type"),Return_type_must_be_inferred_from_a_function:la(95149,3,"Return_type_must_be_inferred_from_a_function_95149","Return type must be inferred from a function"),Could_not_determine_function_return_type:la(95150,3,"Could_not_determine_function_return_type_95150","Could not determine function return type"),Could_not_convert_to_arrow_function:la(95151,3,"Could_not_convert_to_arrow_function_95151","Could not convert to arrow function"),Could_not_convert_to_named_function:la(95152,3,"Could_not_convert_to_named_function_95152","Could not convert to named function"),Could_not_convert_to_anonymous_function:la(95153,3,"Could_not_convert_to_anonymous_function_95153","Could not convert to anonymous function"),Can_only_convert_string_concatenations_and_string_literals:la(95154,3,"Can_only_convert_string_concatenations_and_string_literals_95154","Can only convert string concatenations and string literals"),Selection_is_not_a_valid_statement_or_statements:la(95155,3,"Selection_is_not_a_valid_statement_or_statements_95155","Selection is not a valid statement or statements"),Add_missing_function_declaration_0:la(95156,3,"Add_missing_function_declaration_0_95156","Add missing function declaration '{0}'"),Add_all_missing_function_declarations:la(95157,3,"Add_all_missing_function_declarations_95157","Add all missing function declarations"),Method_not_implemented:la(95158,3,"Method_not_implemented_95158","Method not implemented."),Function_not_implemented:la(95159,3,"Function_not_implemented_95159","Function not implemented."),Add_override_modifier:la(95160,3,"Add_override_modifier_95160","Add 'override' modifier"),Remove_override_modifier:la(95161,3,"Remove_override_modifier_95161","Remove 'override' modifier"),Add_all_missing_override_modifiers:la(95162,3,"Add_all_missing_override_modifiers_95162","Add all missing 'override' modifiers"),Remove_all_unnecessary_override_modifiers:la(95163,3,"Remove_all_unnecessary_override_modifiers_95163","Remove all unnecessary 'override' modifiers"),Can_only_convert_named_export:la(95164,3,"Can_only_convert_named_export_95164","Can only convert named export"),Add_missing_properties:la(95165,3,"Add_missing_properties_95165","Add missing properties"),Add_all_missing_properties:la(95166,3,"Add_all_missing_properties_95166","Add all missing properties"),Add_missing_attributes:la(95167,3,"Add_missing_attributes_95167","Add missing attributes"),Add_all_missing_attributes:la(95168,3,"Add_all_missing_attributes_95168","Add all missing attributes"),Add_undefined_to_optional_property_type:la(95169,3,"Add_undefined_to_optional_property_type_95169","Add 'undefined' to optional property type"),Convert_named_imports_to_default_import:la(95170,3,"Convert_named_imports_to_default_import_95170","Convert named imports to default import"),Delete_unused_param_tag_0:la(95171,3,"Delete_unused_param_tag_0_95171","Delete unused '@param' tag '{0}'"),Delete_all_unused_param_tags:la(95172,3,"Delete_all_unused_param_tags_95172","Delete all unused '@param' tags"),Rename_param_tag_name_0_to_1:la(95173,3,"Rename_param_tag_name_0_to_1_95173","Rename '@param' tag name '{0}' to '{1}'"),Use_0:la(95174,3,"Use_0_95174","Use `{0}`."),Use_Number_isNaN_in_all_conditions:la(95175,3,"Use_Number_isNaN_in_all_conditions_95175","Use `Number.isNaN` in all conditions."),Convert_typedef_to_TypeScript_type:la(95176,3,"Convert_typedef_to_TypeScript_type_95176","Convert typedef to TypeScript type."),Convert_all_typedef_to_TypeScript_types:la(95177,3,"Convert_all_typedef_to_TypeScript_types_95177","Convert all typedef to TypeScript types."),Move_to_file:la(95178,3,"Move_to_file_95178","Move to file"),Cannot_move_to_file_selected_file_is_invalid:la(95179,3,"Cannot_move_to_file_selected_file_is_invalid_95179","Cannot move to file, selected file is invalid"),Use_import_type:la(95180,3,"Use_import_type_95180","Use 'import type'"),Use_type_0:la(95181,3,"Use_type_0_95181","Use 'type {0}'"),Fix_all_with_type_only_imports:la(95182,3,"Fix_all_with_type_only_imports_95182","Fix all with type-only imports"),Cannot_move_statements_to_the_selected_file:la(95183,3,"Cannot_move_statements_to_the_selected_file_95183","Cannot move statements to the selected file"),Inline_variable:la(95184,3,"Inline_variable_95184","Inline variable"),Could_not_find_variable_to_inline:la(95185,3,"Could_not_find_variable_to_inline_95185","Could not find variable to inline."),Variables_with_multiple_declarations_cannot_be_inlined:la(95186,3,"Variables_with_multiple_declarations_cannot_be_inlined_95186","Variables with multiple declarations cannot be inlined."),Add_missing_comma_for_object_member_completion_0:la(95187,3,"Add_missing_comma_for_object_member_completion_0_95187","Add missing comma for object member completion '{0}'."),Add_missing_parameter_to_0:la(95188,3,"Add_missing_parameter_to_0_95188","Add missing parameter to '{0}'"),Add_missing_parameters_to_0:la(95189,3,"Add_missing_parameters_to_0_95189","Add missing parameters to '{0}'"),Add_all_missing_parameters:la(95190,3,"Add_all_missing_parameters_95190","Add all missing parameters"),Add_optional_parameter_to_0:la(95191,3,"Add_optional_parameter_to_0_95191","Add optional parameter to '{0}'"),Add_optional_parameters_to_0:la(95192,3,"Add_optional_parameters_to_0_95192","Add optional parameters to '{0}'"),Add_all_optional_parameters:la(95193,3,"Add_all_optional_parameters_95193","Add all optional parameters"),Wrap_in_parentheses:la(95194,3,"Wrap_in_parentheses_95194","Wrap in parentheses"),Wrap_all_invalid_decorator_expressions_in_parentheses:la(95195,3,"Wrap_all_invalid_decorator_expressions_in_parentheses_95195","Wrap all invalid decorator expressions in parentheses"),Add_resolution_mode_import_attribute:la(95196,3,"Add_resolution_mode_import_attribute_95196","Add 'resolution-mode' import attribute"),Add_resolution_mode_import_attribute_to_all_type_only_imports_that_need_it:la(95197,3,"Add_resolution_mode_import_attribute_to_all_type_only_imports_that_need_it_95197","Add 'resolution-mode' import attribute to all type-only imports that need it"),No_value_exists_in_scope_for_the_shorthand_property_0_Either_declare_one_or_provide_an_initializer:la(18004,1,"No_value_exists_in_scope_for_the_shorthand_property_0_Either_declare_one_or_provide_an_initializer_18004","No value exists in scope for the shorthand property '{0}'. Either declare one or provide an initializer."),Classes_may_not_have_a_field_named_constructor:la(18006,1,"Classes_may_not_have_a_field_named_constructor_18006","Classes may not have a field named 'constructor'."),JSX_expressions_may_not_use_the_comma_operator_Did_you_mean_to_write_an_array:la(18007,1,"JSX_expressions_may_not_use_the_comma_operator_Did_you_mean_to_write_an_array_18007","JSX expressions may not use the comma operator. Did you mean to write an array?"),Private_identifiers_cannot_be_used_as_parameters:la(18009,1,"Private_identifiers_cannot_be_used_as_parameters_18009","Private identifiers cannot be used as parameters."),An_accessibility_modifier_cannot_be_used_with_a_private_identifier:la(18010,1,"An_accessibility_modifier_cannot_be_used_with_a_private_identifier_18010","An accessibility modifier cannot be used with a private identifier."),The_operand_of_a_delete_operator_cannot_be_a_private_identifier:la(18011,1,"The_operand_of_a_delete_operator_cannot_be_a_private_identifier_18011","The operand of a 'delete' operator cannot be a private identifier."),constructor_is_a_reserved_word:la(18012,1,"constructor_is_a_reserved_word_18012","'#constructor' is a reserved word."),Property_0_is_not_accessible_outside_class_1_because_it_has_a_private_identifier:la(18013,1,"Property_0_is_not_accessible_outside_class_1_because_it_has_a_private_identifier_18013","Property '{0}' is not accessible outside class '{1}' because it has a private identifier."),The_property_0_cannot_be_accessed_on_type_1_within_this_class_because_it_is_shadowed_by_another_private_identifier_with_the_same_spelling:la(18014,1,"The_property_0_cannot_be_accessed_on_type_1_within_this_class_because_it_is_shadowed_by_another_priv_18014","The property '{0}' cannot be accessed on type '{1}' within this class because it is shadowed by another private identifier with the same spelling."),Property_0_in_type_1_refers_to_a_different_member_that_cannot_be_accessed_from_within_type_2:la(18015,1,"Property_0_in_type_1_refers_to_a_different_member_that_cannot_be_accessed_from_within_type_2_18015","Property '{0}' in type '{1}' refers to a different member that cannot be accessed from within type '{2}'."),Private_identifiers_are_not_allowed_outside_class_bodies:la(18016,1,"Private_identifiers_are_not_allowed_outside_class_bodies_18016","Private identifiers are not allowed outside class bodies."),The_shadowing_declaration_of_0_is_defined_here:la(18017,1,"The_shadowing_declaration_of_0_is_defined_here_18017","The shadowing declaration of '{0}' is defined here"),The_declaration_of_0_that_you_probably_intended_to_use_is_defined_here:la(18018,1,"The_declaration_of_0_that_you_probably_intended_to_use_is_defined_here_18018","The declaration of '{0}' that you probably intended to use is defined here"),_0_modifier_cannot_be_used_with_a_private_identifier:la(18019,1,"_0_modifier_cannot_be_used_with_a_private_identifier_18019","'{0}' modifier cannot be used with a private identifier."),An_enum_member_cannot_be_named_with_a_private_identifier:la(18024,1,"An_enum_member_cannot_be_named_with_a_private_identifier_18024","An enum member cannot be named with a private identifier."),can_only_be_used_at_the_start_of_a_file:la(18026,1,"can_only_be_used_at_the_start_of_a_file_18026","'#!' can only be used at the start of a file."),Compiler_reserves_name_0_when_emitting_private_identifier_downlevel:la(18027,1,"Compiler_reserves_name_0_when_emitting_private_identifier_downlevel_18027","Compiler reserves name '{0}' when emitting private identifier downlevel."),Private_identifiers_are_only_available_when_targeting_ECMAScript_2015_and_higher:la(18028,1,"Private_identifiers_are_only_available_when_targeting_ECMAScript_2015_and_higher_18028","Private identifiers are only available when targeting ECMAScript 2015 and higher."),Private_identifiers_are_not_allowed_in_variable_declarations:la(18029,1,"Private_identifiers_are_not_allowed_in_variable_declarations_18029","Private identifiers are not allowed in variable declarations."),An_optional_chain_cannot_contain_private_identifiers:la(18030,1,"An_optional_chain_cannot_contain_private_identifiers_18030","An optional chain cannot contain private identifiers."),The_intersection_0_was_reduced_to_never_because_property_1_has_conflicting_types_in_some_constituents:la(18031,1,"The_intersection_0_was_reduced_to_never_because_property_1_has_conflicting_types_in_some_constituent_18031","The intersection '{0}' was reduced to 'never' because property '{1}' has conflicting types in some constituents."),The_intersection_0_was_reduced_to_never_because_property_1_exists_in_multiple_constituents_and_is_private_in_some:la(18032,1,"The_intersection_0_was_reduced_to_never_because_property_1_exists_in_multiple_constituents_and_is_pr_18032","The intersection '{0}' was reduced to 'never' because property '{1}' exists in multiple constituents and is private in some."),Type_0_is_not_assignable_to_type_1_as_required_for_computed_enum_member_values:la(18033,1,"Type_0_is_not_assignable_to_type_1_as_required_for_computed_enum_member_values_18033","Type '{0}' is not assignable to type '{1}' as required for computed enum member values."),Specify_the_JSX_fragment_factory_function_to_use_when_targeting_react_JSX_emit_with_jsxFactory_compiler_option_is_specified_e_g_Fragment:la(18034,3,"Specify_the_JSX_fragment_factory_function_to_use_when_targeting_react_JSX_emit_with_jsxFactory_compi_18034","Specify the JSX fragment factory function to use when targeting 'react' JSX emit with 'jsxFactory' compiler option is specified, e.g. 'Fragment'."),Invalid_value_for_jsxFragmentFactory_0_is_not_a_valid_identifier_or_qualified_name:la(18035,1,"Invalid_value_for_jsxFragmentFactory_0_is_not_a_valid_identifier_or_qualified_name_18035","Invalid value for 'jsxFragmentFactory'. '{0}' is not a valid identifier or qualified-name."),Class_decorators_can_t_be_used_with_static_private_identifier_Consider_removing_the_experimental_decorator:la(18036,1,"Class_decorators_can_t_be_used_with_static_private_identifier_Consider_removing_the_experimental_dec_18036","Class decorators can't be used with static private identifier. Consider removing the experimental decorator."),await_expression_cannot_be_used_inside_a_class_static_block:la(18037,1,"await_expression_cannot_be_used_inside_a_class_static_block_18037","'await' expression cannot be used inside a class static block."),for_await_loops_cannot_be_used_inside_a_class_static_block:la(18038,1,"for_await_loops_cannot_be_used_inside_a_class_static_block_18038","'for await' loops cannot be used inside a class static block."),Invalid_use_of_0_It_cannot_be_used_inside_a_class_static_block:la(18039,1,"Invalid_use_of_0_It_cannot_be_used_inside_a_class_static_block_18039","Invalid use of '{0}'. It cannot be used inside a class static block."),A_return_statement_cannot_be_used_inside_a_class_static_block:la(18041,1,"A_return_statement_cannot_be_used_inside_a_class_static_block_18041","A 'return' statement cannot be used inside a class static block."),_0_is_a_type_and_cannot_be_imported_in_JavaScript_files_Use_1_in_a_JSDoc_type_annotation:la(18042,1,"_0_is_a_type_and_cannot_be_imported_in_JavaScript_files_Use_1_in_a_JSDoc_type_annotation_18042","'{0}' is a type and cannot be imported in JavaScript files. Use '{1}' in a JSDoc type annotation."),Types_cannot_appear_in_export_declarations_in_JavaScript_files:la(18043,1,"Types_cannot_appear_in_export_declarations_in_JavaScript_files_18043","Types cannot appear in export declarations in JavaScript files."),_0_is_automatically_exported_here:la(18044,3,"_0_is_automatically_exported_here_18044","'{0}' is automatically exported here."),Properties_with_the_accessor_modifier_are_only_available_when_targeting_ECMAScript_2015_and_higher:la(18045,1,"Properties_with_the_accessor_modifier_are_only_available_when_targeting_ECMAScript_2015_and_higher_18045","Properties with the 'accessor' modifier are only available when targeting ECMAScript 2015 and higher."),_0_is_of_type_unknown:la(18046,1,"_0_is_of_type_unknown_18046","'{0}' is of type 'unknown'."),_0_is_possibly_null:la(18047,1,"_0_is_possibly_null_18047","'{0}' is possibly 'null'."),_0_is_possibly_undefined:la(18048,1,"_0_is_possibly_undefined_18048","'{0}' is possibly 'undefined'."),_0_is_possibly_null_or_undefined:la(18049,1,"_0_is_possibly_null_or_undefined_18049","'{0}' is possibly 'null' or 'undefined'."),The_value_0_cannot_be_used_here:la(18050,1,"The_value_0_cannot_be_used_here_18050","The value '{0}' cannot be used here."),Compiler_option_0_cannot_be_given_an_empty_string:la(18051,1,"Compiler_option_0_cannot_be_given_an_empty_string_18051","Compiler option '{0}' cannot be given an empty string."),Its_type_0_is_not_a_valid_JSX_element_type:la(18053,1,"Its_type_0_is_not_a_valid_JSX_element_type_18053","Its type '{0}' is not a valid JSX element type."),await_using_statements_cannot_be_used_inside_a_class_static_block:la(18054,1,"await_using_statements_cannot_be_used_inside_a_class_static_block_18054","'await using' statements cannot be used inside a class static block."),_0_has_a_string_type_but_must_have_syntactically_recognizable_string_syntax_when_isolatedModules_is_enabled:la(18055,1,"_0_has_a_string_type_but_must_have_syntactically_recognizable_string_syntax_when_isolatedModules_is__18055","'{0}' has a string type, but must have syntactically recognizable string syntax when 'isolatedModules' is enabled."),Enum_member_following_a_non_literal_numeric_member_must_have_an_initializer_when_isolatedModules_is_enabled:la(18056,1,"Enum_member_following_a_non_literal_numeric_member_must_have_an_initializer_when_isolatedModules_is__18056","Enum member following a non-literal numeric member must have an initializer when 'isolatedModules' is enabled."),String_literal_import_and_export_names_are_not_supported_when_the_module_flag_is_set_to_es2015_or_es2020:la(18057,1,"String_literal_import_and_export_names_are_not_supported_when_the_module_flag_is_set_to_es2015_or_es_18057","String literal import and export names are not supported when the '--module' flag is set to 'es2015' or 'es2020'."),Default_imports_are_not_allowed_in_a_deferred_import:la(18058,1,"Default_imports_are_not_allowed_in_a_deferred_import_18058","Default imports are not allowed in a deferred import."),Named_imports_are_not_allowed_in_a_deferred_import:la(18059,1,"Named_imports_are_not_allowed_in_a_deferred_import_18059","Named imports are not allowed in a deferred import."),Deferred_imports_are_only_supported_when_the_module_flag_is_set_to_esnext_or_preserve:la(18060,1,"Deferred_imports_are_only_supported_when_the_module_flag_is_set_to_esnext_or_preserve_18060","Deferred imports are only supported when the '--module' flag is set to 'esnext' or 'preserve'."),_0_is_not_a_valid_meta_property_for_keyword_import_Did_you_mean_meta_or_defer:la(18061,1,"_0_is_not_a_valid_meta_property_for_keyword_import_Did_you_mean_meta_or_defer_18061","'{0}' is not a valid meta-property for keyword 'import'. Did you mean 'meta' or 'defer'?")};function ua(e){return e>=80}function da(e){return 32===e||ua(e)}var pa={abstract:128,accessor:129,any:133,as:130,asserts:131,assert:132,bigint:163,boolean:136,break:83,case:84,catch:85,class:86,continue:88,const:87,constructor:137,debugger:89,declare:138,default:90,defer:166,delete:91,do:92,else:93,enum:94,export:95,extends:96,false:97,finally:98,for:99,from:161,function:100,get:139,if:101,implements:119,import:102,in:103,infer:140,instanceof:104,interface:120,intrinsic:141,is:142,keyof:143,let:121,module:144,namespace:145,never:146,new:105,null:106,number:150,object:151,package:122,private:123,protected:124,public:125,override:164,out:147,readonly:148,require:149,global:162,return:107,satisfies:152,set:153,static:126,string:154,super:108,switch:109,symbol:155,this:110,throw:111,true:112,try:113,type:156,typeof:114,undefined:157,unique:158,unknown:159,using:160,var:115,void:116,while:117,with:118,yield:127,async:134,await:135,of:165},fa=new Map(Object.entries(pa)),ma=new Map(Object.entries({...pa,"{":19,"}":20,"(":21,")":22,"[":23,"]":24,".":25,"...":26,";":27,",":28,"<":30,">":32,"<=":33,">=":34,"==":35,"!=":36,"===":37,"!==":38,"=>":39,"+":40,"-":41,"**":43,"*":42,"/":44,"%":45,"++":46,"--":47,"<<":48,">":49,">>>":50,"&":51,"|":52,"^":53,"!":54,"~":55,"&&":56,"||":57,"?":58,"??":61,"?.":29,":":59,"=":64,"+=":65,"-=":66,"*=":67,"**=":68,"/=":69,"%=":70,"<<=":71,">>=":72,">>>=":73,"&=":74,"|=":75,"^=":79,"||=":76,"&&=":77,"??=":78,"@":60,"#":63,"`":62})),ga=new Map([[100,1],[103,2],[105,4],[109,8],[115,16],[117,32],[118,64],[121,128]]),ha=new Map([[1,Di.RegularExpressionFlagsHasIndices],[16,Di.RegularExpressionFlagsDotAll],[32,Di.RegularExpressionFlagsUnicode],[64,Di.RegularExpressionFlagsUnicodeSets],[128,Di.RegularExpressionFlagsSticky]]),ya=[170,170,181,181,186,186,192,214,216,246,248,705,710,721,736,740,748,748,750,750,880,884,886,887,890,893,902,902,904,906,908,908,910,929,931,1013,1015,1153,1162,1319,1329,1366,1369,1369,1377,1415,1488,1514,1520,1522,1568,1610,1646,1647,1649,1747,1749,1749,1765,1766,1774,1775,1786,1788,1791,1791,1808,1808,1810,1839,1869,1957,1969,1969,1994,2026,2036,2037,2042,2042,2048,2069,2074,2074,2084,2084,2088,2088,2112,2136,2208,2208,2210,2220,2308,2361,2365,2365,2384,2384,2392,2401,2417,2423,2425,2431,2437,2444,2447,2448,2451,2472,2474,2480,2482,2482,2486,2489,2493,2493,2510,2510,2524,2525,2527,2529,2544,2545,2565,2570,2575,2576,2579,2600,2602,2608,2610,2611,2613,2614,2616,2617,2649,2652,2654,2654,2674,2676,2693,2701,2703,2705,2707,2728,2730,2736,2738,2739,2741,2745,2749,2749,2768,2768,2784,2785,2821,2828,2831,2832,2835,2856,2858,2864,2866,2867,2869,2873,2877,2877,2908,2909,2911,2913,2929,2929,2947,2947,2949,2954,2958,2960,2962,2965,2969,2970,2972,2972,2974,2975,2979,2980,2984,2986,2990,3001,3024,3024,3077,3084,3086,3088,3090,3112,3114,3123,3125,3129,3133,3133,3160,3161,3168,3169,3205,3212,3214,3216,3218,3240,3242,3251,3253,3257,3261,3261,3294,3294,3296,3297,3313,3314,3333,3340,3342,3344,3346,3386,3389,3389,3406,3406,3424,3425,3450,3455,3461,3478,3482,3505,3507,3515,3517,3517,3520,3526,3585,3632,3634,3635,3648,3654,3713,3714,3716,3716,3719,3720,3722,3722,3725,3725,3732,3735,3737,3743,3745,3747,3749,3749,3751,3751,3754,3755,3757,3760,3762,3763,3773,3773,3776,3780,3782,3782,3804,3807,3840,3840,3904,3911,3913,3948,3976,3980,4096,4138,4159,4159,4176,4181,4186,4189,4193,4193,4197,4198,4206,4208,4213,4225,4238,4238,4256,4293,4295,4295,4301,4301,4304,4346,4348,4680,4682,4685,4688,4694,4696,4696,4698,4701,4704,4744,4746,4749,4752,4784,4786,4789,4792,4798,4800,4800,4802,4805,4808,4822,4824,4880,4882,4885,4888,4954,4992,5007,5024,5108,5121,5740,5743,5759,5761,5786,5792,5866,5870,5872,5888,5900,5902,5905,5920,5937,5952,5969,5984,5996,5998,6e3,6016,6067,6103,6103,6108,6108,6176,6263,6272,6312,6314,6314,6320,6389,6400,6428,6480,6509,6512,6516,6528,6571,6593,6599,6656,6678,6688,6740,6823,6823,6917,6963,6981,6987,7043,7072,7086,7087,7098,7141,7168,7203,7245,7247,7258,7293,7401,7404,7406,7409,7413,7414,7424,7615,7680,7957,7960,7965,7968,8005,8008,8013,8016,8023,8025,8025,8027,8027,8029,8029,8031,8061,8064,8116,8118,8124,8126,8126,8130,8132,8134,8140,8144,8147,8150,8155,8160,8172,8178,8180,8182,8188,8305,8305,8319,8319,8336,8348,8450,8450,8455,8455,8458,8467,8469,8469,8473,8477,8484,8484,8486,8486,8488,8488,8490,8493,8495,8505,8508,8511,8517,8521,8526,8526,8544,8584,11264,11310,11312,11358,11360,11492,11499,11502,11506,11507,11520,11557,11559,11559,11565,11565,11568,11623,11631,11631,11648,11670,11680,11686,11688,11694,11696,11702,11704,11710,11712,11718,11720,11726,11728,11734,11736,11742,11823,11823,12293,12295,12321,12329,12337,12341,12344,12348,12353,12438,12445,12447,12449,12538,12540,12543,12549,12589,12593,12686,12704,12730,12784,12799,13312,19893,19968,40908,40960,42124,42192,42237,42240,42508,42512,42527,42538,42539,42560,42606,42623,42647,42656,42735,42775,42783,42786,42888,42891,42894,42896,42899,42912,42922,43e3,43009,43011,43013,43015,43018,43020,43042,43072,43123,43138,43187,43250,43255,43259,43259,43274,43301,43312,43334,43360,43388,43396,43442,43471,43471,43520,43560,43584,43586,43588,43595,43616,43638,43642,43642,43648,43695,43697,43697,43701,43702,43705,43709,43712,43712,43714,43714,43739,43741,43744,43754,43762,43764,43777,43782,43785,43790,43793,43798,43808,43814,43816,43822,43968,44002,44032,55203,55216,55238,55243,55291,63744,64109,64112,64217,64256,64262,64275,64279,64285,64285,64287,64296,64298,64310,64312,64316,64318,64318,64320,64321,64323,64324,64326,64433,64467,64829,64848,64911,64914,64967,65008,65019,65136,65140,65142,65276,65313,65338,65345,65370,65382,65470,65474,65479,65482,65487,65490,65495,65498,65500],va=[170,170,181,181,186,186,192,214,216,246,248,705,710,721,736,740,748,748,750,750,768,884,886,887,890,893,902,902,904,906,908,908,910,929,931,1013,1015,1153,1155,1159,1162,1319,1329,1366,1369,1369,1377,1415,1425,1469,1471,1471,1473,1474,1476,1477,1479,1479,1488,1514,1520,1522,1552,1562,1568,1641,1646,1747,1749,1756,1759,1768,1770,1788,1791,1791,1808,1866,1869,1969,1984,2037,2042,2042,2048,2093,2112,2139,2208,2208,2210,2220,2276,2302,2304,2403,2406,2415,2417,2423,2425,2431,2433,2435,2437,2444,2447,2448,2451,2472,2474,2480,2482,2482,2486,2489,2492,2500,2503,2504,2507,2510,2519,2519,2524,2525,2527,2531,2534,2545,2561,2563,2565,2570,2575,2576,2579,2600,2602,2608,2610,2611,2613,2614,2616,2617,2620,2620,2622,2626,2631,2632,2635,2637,2641,2641,2649,2652,2654,2654,2662,2677,2689,2691,2693,2701,2703,2705,2707,2728,2730,2736,2738,2739,2741,2745,2748,2757,2759,2761,2763,2765,2768,2768,2784,2787,2790,2799,2817,2819,2821,2828,2831,2832,2835,2856,2858,2864,2866,2867,2869,2873,2876,2884,2887,2888,2891,2893,2902,2903,2908,2909,2911,2915,2918,2927,2929,2929,2946,2947,2949,2954,2958,2960,2962,2965,2969,2970,2972,2972,2974,2975,2979,2980,2984,2986,2990,3001,3006,3010,3014,3016,3018,3021,3024,3024,3031,3031,3046,3055,3073,3075,3077,3084,3086,3088,3090,3112,3114,3123,3125,3129,3133,3140,3142,3144,3146,3149,3157,3158,3160,3161,3168,3171,3174,3183,3202,3203,3205,3212,3214,3216,3218,3240,3242,3251,3253,3257,3260,3268,3270,3272,3274,3277,3285,3286,3294,3294,3296,3299,3302,3311,3313,3314,3330,3331,3333,3340,3342,3344,3346,3386,3389,3396,3398,3400,3402,3406,3415,3415,3424,3427,3430,3439,3450,3455,3458,3459,3461,3478,3482,3505,3507,3515,3517,3517,3520,3526,3530,3530,3535,3540,3542,3542,3544,3551,3570,3571,3585,3642,3648,3662,3664,3673,3713,3714,3716,3716,3719,3720,3722,3722,3725,3725,3732,3735,3737,3743,3745,3747,3749,3749,3751,3751,3754,3755,3757,3769,3771,3773,3776,3780,3782,3782,3784,3789,3792,3801,3804,3807,3840,3840,3864,3865,3872,3881,3893,3893,3895,3895,3897,3897,3902,3911,3913,3948,3953,3972,3974,3991,3993,4028,4038,4038,4096,4169,4176,4253,4256,4293,4295,4295,4301,4301,4304,4346,4348,4680,4682,4685,4688,4694,4696,4696,4698,4701,4704,4744,4746,4749,4752,4784,4786,4789,4792,4798,4800,4800,4802,4805,4808,4822,4824,4880,4882,4885,4888,4954,4957,4959,4992,5007,5024,5108,5121,5740,5743,5759,5761,5786,5792,5866,5870,5872,5888,5900,5902,5908,5920,5940,5952,5971,5984,5996,5998,6e3,6002,6003,6016,6099,6103,6103,6108,6109,6112,6121,6155,6157,6160,6169,6176,6263,6272,6314,6320,6389,6400,6428,6432,6443,6448,6459,6470,6509,6512,6516,6528,6571,6576,6601,6608,6617,6656,6683,6688,6750,6752,6780,6783,6793,6800,6809,6823,6823,6912,6987,6992,7001,7019,7027,7040,7155,7168,7223,7232,7241,7245,7293,7376,7378,7380,7414,7424,7654,7676,7957,7960,7965,7968,8005,8008,8013,8016,8023,8025,8025,8027,8027,8029,8029,8031,8061,8064,8116,8118,8124,8126,8126,8130,8132,8134,8140,8144,8147,8150,8155,8160,8172,8178,8180,8182,8188,8204,8205,8255,8256,8276,8276,8305,8305,8319,8319,8336,8348,8400,8412,8417,8417,8421,8432,8450,8450,8455,8455,8458,8467,8469,8469,8473,8477,8484,8484,8486,8486,8488,8488,8490,8493,8495,8505,8508,8511,8517,8521,8526,8526,8544,8584,11264,11310,11312,11358,11360,11492,11499,11507,11520,11557,11559,11559,11565,11565,11568,11623,11631,11631,11647,11670,11680,11686,11688,11694,11696,11702,11704,11710,11712,11718,11720,11726,11728,11734,11736,11742,11744,11775,11823,11823,12293,12295,12321,12335,12337,12341,12344,12348,12353,12438,12441,12442,12445,12447,12449,12538,12540,12543,12549,12589,12593,12686,12704,12730,12784,12799,13312,19893,19968,40908,40960,42124,42192,42237,42240,42508,42512,42539,42560,42607,42612,42621,42623,42647,42655,42737,42775,42783,42786,42888,42891,42894,42896,42899,42912,42922,43e3,43047,43072,43123,43136,43204,43216,43225,43232,43255,43259,43259,43264,43309,43312,43347,43360,43388,43392,43456,43471,43481,43520,43574,43584,43597,43600,43609,43616,43638,43642,43643,43648,43714,43739,43741,43744,43759,43762,43766,43777,43782,43785,43790,43793,43798,43808,43814,43816,43822,43968,44010,44012,44013,44016,44025,44032,55203,55216,55238,55243,55291,63744,64109,64112,64217,64256,64262,64275,64279,64285,64296,64298,64310,64312,64316,64318,64318,64320,64321,64323,64324,64326,64433,64467,64829,64848,64911,64914,64967,65008,65019,65024,65039,65056,65062,65075,65076,65101,65103,65136,65140,65142,65276,65296,65305,65313,65338,65343,65343,65345,65370,65382,65470,65474,65479,65482,65487,65490,65495,65498,65500],ba=[65,90,97,122,170,170,181,181,186,186,192,214,216,246,248,705,710,721,736,740,748,748,750,750,880,884,886,887,890,893,895,895,902,902,904,906,908,908,910,929,931,1013,1015,1153,1162,1327,1329,1366,1369,1369,1376,1416,1488,1514,1519,1522,1568,1610,1646,1647,1649,1747,1749,1749,1765,1766,1774,1775,1786,1788,1791,1791,1808,1808,1810,1839,1869,1957,1969,1969,1994,2026,2036,2037,2042,2042,2048,2069,2074,2074,2084,2084,2088,2088,2112,2136,2144,2154,2160,2183,2185,2190,2208,2249,2308,2361,2365,2365,2384,2384,2392,2401,2417,2432,2437,2444,2447,2448,2451,2472,2474,2480,2482,2482,2486,2489,2493,2493,2510,2510,2524,2525,2527,2529,2544,2545,2556,2556,2565,2570,2575,2576,2579,2600,2602,2608,2610,2611,2613,2614,2616,2617,2649,2652,2654,2654,2674,2676,2693,2701,2703,2705,2707,2728,2730,2736,2738,2739,2741,2745,2749,2749,2768,2768,2784,2785,2809,2809,2821,2828,2831,2832,2835,2856,2858,2864,2866,2867,2869,2873,2877,2877,2908,2909,2911,2913,2929,2929,2947,2947,2949,2954,2958,2960,2962,2965,2969,2970,2972,2972,2974,2975,2979,2980,2984,2986,2990,3001,3024,3024,3077,3084,3086,3088,3090,3112,3114,3129,3133,3133,3160,3162,3165,3165,3168,3169,3200,3200,3205,3212,3214,3216,3218,3240,3242,3251,3253,3257,3261,3261,3293,3294,3296,3297,3313,3314,3332,3340,3342,3344,3346,3386,3389,3389,3406,3406,3412,3414,3423,3425,3450,3455,3461,3478,3482,3505,3507,3515,3517,3517,3520,3526,3585,3632,3634,3635,3648,3654,3713,3714,3716,3716,3718,3722,3724,3747,3749,3749,3751,3760,3762,3763,3773,3773,3776,3780,3782,3782,3804,3807,3840,3840,3904,3911,3913,3948,3976,3980,4096,4138,4159,4159,4176,4181,4186,4189,4193,4193,4197,4198,4206,4208,4213,4225,4238,4238,4256,4293,4295,4295,4301,4301,4304,4346,4348,4680,4682,4685,4688,4694,4696,4696,4698,4701,4704,4744,4746,4749,4752,4784,4786,4789,4792,4798,4800,4800,4802,4805,4808,4822,4824,4880,4882,4885,4888,4954,4992,5007,5024,5109,5112,5117,5121,5740,5743,5759,5761,5786,5792,5866,5870,5880,5888,5905,5919,5937,5952,5969,5984,5996,5998,6e3,6016,6067,6103,6103,6108,6108,6176,6264,6272,6312,6314,6314,6320,6389,6400,6430,6480,6509,6512,6516,6528,6571,6576,6601,6656,6678,6688,6740,6823,6823,6917,6963,6981,6988,7043,7072,7086,7087,7098,7141,7168,7203,7245,7247,7258,7293,7296,7304,7312,7354,7357,7359,7401,7404,7406,7411,7413,7414,7418,7418,7424,7615,7680,7957,7960,7965,7968,8005,8008,8013,8016,8023,8025,8025,8027,8027,8029,8029,8031,8061,8064,8116,8118,8124,8126,8126,8130,8132,8134,8140,8144,8147,8150,8155,8160,8172,8178,8180,8182,8188,8305,8305,8319,8319,8336,8348,8450,8450,8455,8455,8458,8467,8469,8469,8472,8477,8484,8484,8486,8486,8488,8488,8490,8505,8508,8511,8517,8521,8526,8526,8544,8584,11264,11492,11499,11502,11506,11507,11520,11557,11559,11559,11565,11565,11568,11623,11631,11631,11648,11670,11680,11686,11688,11694,11696,11702,11704,11710,11712,11718,11720,11726,11728,11734,11736,11742,12293,12295,12321,12329,12337,12341,12344,12348,12353,12438,12443,12447,12449,12538,12540,12543,12549,12591,12593,12686,12704,12735,12784,12799,13312,19903,19968,42124,42192,42237,42240,42508,42512,42527,42538,42539,42560,42606,42623,42653,42656,42735,42775,42783,42786,42888,42891,42954,42960,42961,42963,42963,42965,42969,42994,43009,43011,43013,43015,43018,43020,43042,43072,43123,43138,43187,43250,43255,43259,43259,43261,43262,43274,43301,43312,43334,43360,43388,43396,43442,43471,43471,43488,43492,43494,43503,43514,43518,43520,43560,43584,43586,43588,43595,43616,43638,43642,43642,43646,43695,43697,43697,43701,43702,43705,43709,43712,43712,43714,43714,43739,43741,43744,43754,43762,43764,43777,43782,43785,43790,43793,43798,43808,43814,43816,43822,43824,43866,43868,43881,43888,44002,44032,55203,55216,55238,55243,55291,63744,64109,64112,64217,64256,64262,64275,64279,64285,64285,64287,64296,64298,64310,64312,64316,64318,64318,64320,64321,64323,64324,64326,64433,64467,64829,64848,64911,64914,64967,65008,65019,65136,65140,65142,65276,65313,65338,65345,65370,65382,65470,65474,65479,65482,65487,65490,65495,65498,65500,65536,65547,65549,65574,65576,65594,65596,65597,65599,65613,65616,65629,65664,65786,65856,65908,66176,66204,66208,66256,66304,66335,66349,66378,66384,66421,66432,66461,66464,66499,66504,66511,66513,66517,66560,66717,66736,66771,66776,66811,66816,66855,66864,66915,66928,66938,66940,66954,66956,66962,66964,66965,66967,66977,66979,66993,66995,67001,67003,67004,67072,67382,67392,67413,67424,67431,67456,67461,67463,67504,67506,67514,67584,67589,67592,67592,67594,67637,67639,67640,67644,67644,67647,67669,67680,67702,67712,67742,67808,67826,67828,67829,67840,67861,67872,67897,67968,68023,68030,68031,68096,68096,68112,68115,68117,68119,68121,68149,68192,68220,68224,68252,68288,68295,68297,68324,68352,68405,68416,68437,68448,68466,68480,68497,68608,68680,68736,68786,68800,68850,68864,68899,69248,69289,69296,69297,69376,69404,69415,69415,69424,69445,69488,69505,69552,69572,69600,69622,69635,69687,69745,69746,69749,69749,69763,69807,69840,69864,69891,69926,69956,69956,69959,69959,69968,70002,70006,70006,70019,70066,70081,70084,70106,70106,70108,70108,70144,70161,70163,70187,70207,70208,70272,70278,70280,70280,70282,70285,70287,70301,70303,70312,70320,70366,70405,70412,70415,70416,70419,70440,70442,70448,70450,70451,70453,70457,70461,70461,70480,70480,70493,70497,70656,70708,70727,70730,70751,70753,70784,70831,70852,70853,70855,70855,71040,71086,71128,71131,71168,71215,71236,71236,71296,71338,71352,71352,71424,71450,71488,71494,71680,71723,71840,71903,71935,71942,71945,71945,71948,71955,71957,71958,71960,71983,71999,71999,72001,72001,72096,72103,72106,72144,72161,72161,72163,72163,72192,72192,72203,72242,72250,72250,72272,72272,72284,72329,72349,72349,72368,72440,72704,72712,72714,72750,72768,72768,72818,72847,72960,72966,72968,72969,72971,73008,73030,73030,73056,73061,73063,73064,73066,73097,73112,73112,73440,73458,73474,73474,73476,73488,73490,73523,73648,73648,73728,74649,74752,74862,74880,75075,77712,77808,77824,78895,78913,78918,82944,83526,92160,92728,92736,92766,92784,92862,92880,92909,92928,92975,92992,92995,93027,93047,93053,93071,93760,93823,93952,94026,94032,94032,94099,94111,94176,94177,94179,94179,94208,100343,100352,101589,101632,101640,110576,110579,110581,110587,110589,110590,110592,110882,110898,110898,110928,110930,110933,110933,110948,110951,110960,111355,113664,113770,113776,113788,113792,113800,113808,113817,119808,119892,119894,119964,119966,119967,119970,119970,119973,119974,119977,119980,119982,119993,119995,119995,119997,120003,120005,120069,120071,120074,120077,120084,120086,120092,120094,120121,120123,120126,120128,120132,120134,120134,120138,120144,120146,120485,120488,120512,120514,120538,120540,120570,120572,120596,120598,120628,120630,120654,120656,120686,120688,120712,120714,120744,120746,120770,120772,120779,122624,122654,122661,122666,122928,122989,123136,123180,123191,123197,123214,123214,123536,123565,123584,123627,124112,124139,124896,124902,124904,124907,124909,124910,124912,124926,124928,125124,125184,125251,125259,125259,126464,126467,126469,126495,126497,126498,126500,126500,126503,126503,126505,126514,126516,126519,126521,126521,126523,126523,126530,126530,126535,126535,126537,126537,126539,126539,126541,126543,126545,126546,126548,126548,126551,126551,126553,126553,126555,126555,126557,126557,126559,126559,126561,126562,126564,126564,126567,126570,126572,126578,126580,126583,126585,126588,126590,126590,126592,126601,126603,126619,126625,126627,126629,126633,126635,126651,131072,173791,173824,177977,177984,178205,178208,183969,183984,191456,191472,192093,194560,195101,196608,201546,201552,205743],xa=[48,57,65,90,95,95,97,122,170,170,181,181,183,183,186,186,192,214,216,246,248,705,710,721,736,740,748,748,750,750,768,884,886,887,890,893,895,895,902,906,908,908,910,929,931,1013,1015,1153,1155,1159,1162,1327,1329,1366,1369,1369,1376,1416,1425,1469,1471,1471,1473,1474,1476,1477,1479,1479,1488,1514,1519,1522,1552,1562,1568,1641,1646,1747,1749,1756,1759,1768,1770,1788,1791,1791,1808,1866,1869,1969,1984,2037,2042,2042,2045,2045,2048,2093,2112,2139,2144,2154,2160,2183,2185,2190,2200,2273,2275,2403,2406,2415,2417,2435,2437,2444,2447,2448,2451,2472,2474,2480,2482,2482,2486,2489,2492,2500,2503,2504,2507,2510,2519,2519,2524,2525,2527,2531,2534,2545,2556,2556,2558,2558,2561,2563,2565,2570,2575,2576,2579,2600,2602,2608,2610,2611,2613,2614,2616,2617,2620,2620,2622,2626,2631,2632,2635,2637,2641,2641,2649,2652,2654,2654,2662,2677,2689,2691,2693,2701,2703,2705,2707,2728,2730,2736,2738,2739,2741,2745,2748,2757,2759,2761,2763,2765,2768,2768,2784,2787,2790,2799,2809,2815,2817,2819,2821,2828,2831,2832,2835,2856,2858,2864,2866,2867,2869,2873,2876,2884,2887,2888,2891,2893,2901,2903,2908,2909,2911,2915,2918,2927,2929,2929,2946,2947,2949,2954,2958,2960,2962,2965,2969,2970,2972,2972,2974,2975,2979,2980,2984,2986,2990,3001,3006,3010,3014,3016,3018,3021,3024,3024,3031,3031,3046,3055,3072,3084,3086,3088,3090,3112,3114,3129,3132,3140,3142,3144,3146,3149,3157,3158,3160,3162,3165,3165,3168,3171,3174,3183,3200,3203,3205,3212,3214,3216,3218,3240,3242,3251,3253,3257,3260,3268,3270,3272,3274,3277,3285,3286,3293,3294,3296,3299,3302,3311,3313,3315,3328,3340,3342,3344,3346,3396,3398,3400,3402,3406,3412,3415,3423,3427,3430,3439,3450,3455,3457,3459,3461,3478,3482,3505,3507,3515,3517,3517,3520,3526,3530,3530,3535,3540,3542,3542,3544,3551,3558,3567,3570,3571,3585,3642,3648,3662,3664,3673,3713,3714,3716,3716,3718,3722,3724,3747,3749,3749,3751,3773,3776,3780,3782,3782,3784,3790,3792,3801,3804,3807,3840,3840,3864,3865,3872,3881,3893,3893,3895,3895,3897,3897,3902,3911,3913,3948,3953,3972,3974,3991,3993,4028,4038,4038,4096,4169,4176,4253,4256,4293,4295,4295,4301,4301,4304,4346,4348,4680,4682,4685,4688,4694,4696,4696,4698,4701,4704,4744,4746,4749,4752,4784,4786,4789,4792,4798,4800,4800,4802,4805,4808,4822,4824,4880,4882,4885,4888,4954,4957,4959,4969,4977,4992,5007,5024,5109,5112,5117,5121,5740,5743,5759,5761,5786,5792,5866,5870,5880,5888,5909,5919,5940,5952,5971,5984,5996,5998,6e3,6002,6003,6016,6099,6103,6103,6108,6109,6112,6121,6155,6157,6159,6169,6176,6264,6272,6314,6320,6389,6400,6430,6432,6443,6448,6459,6470,6509,6512,6516,6528,6571,6576,6601,6608,6618,6656,6683,6688,6750,6752,6780,6783,6793,6800,6809,6823,6823,6832,6845,6847,6862,6912,6988,6992,7001,7019,7027,7040,7155,7168,7223,7232,7241,7245,7293,7296,7304,7312,7354,7357,7359,7376,7378,7380,7418,7424,7957,7960,7965,7968,8005,8008,8013,8016,8023,8025,8025,8027,8027,8029,8029,8031,8061,8064,8116,8118,8124,8126,8126,8130,8132,8134,8140,8144,8147,8150,8155,8160,8172,8178,8180,8182,8188,8204,8205,8255,8256,8276,8276,8305,8305,8319,8319,8336,8348,8400,8412,8417,8417,8421,8432,8450,8450,8455,8455,8458,8467,8469,8469,8472,8477,8484,8484,8486,8486,8488,8488,8490,8505,8508,8511,8517,8521,8526,8526,8544,8584,11264,11492,11499,11507,11520,11557,11559,11559,11565,11565,11568,11623,11631,11631,11647,11670,11680,11686,11688,11694,11696,11702,11704,11710,11712,11718,11720,11726,11728,11734,11736,11742,11744,11775,12293,12295,12321,12335,12337,12341,12344,12348,12353,12438,12441,12447,12449,12543,12549,12591,12593,12686,12704,12735,12784,12799,13312,19903,19968,42124,42192,42237,42240,42508,42512,42539,42560,42607,42612,42621,42623,42737,42775,42783,42786,42888,42891,42954,42960,42961,42963,42963,42965,42969,42994,43047,43052,43052,43072,43123,43136,43205,43216,43225,43232,43255,43259,43259,43261,43309,43312,43347,43360,43388,43392,43456,43471,43481,43488,43518,43520,43574,43584,43597,43600,43609,43616,43638,43642,43714,43739,43741,43744,43759,43762,43766,43777,43782,43785,43790,43793,43798,43808,43814,43816,43822,43824,43866,43868,43881,43888,44010,44012,44013,44016,44025,44032,55203,55216,55238,55243,55291,63744,64109,64112,64217,64256,64262,64275,64279,64285,64296,64298,64310,64312,64316,64318,64318,64320,64321,64323,64324,64326,64433,64467,64829,64848,64911,64914,64967,65008,65019,65024,65039,65056,65071,65075,65076,65101,65103,65136,65140,65142,65276,65296,65305,65313,65338,65343,65343,65345,65370,65381,65470,65474,65479,65482,65487,65490,65495,65498,65500,65536,65547,65549,65574,65576,65594,65596,65597,65599,65613,65616,65629,65664,65786,65856,65908,66045,66045,66176,66204,66208,66256,66272,66272,66304,66335,66349,66378,66384,66426,66432,66461,66464,66499,66504,66511,66513,66517,66560,66717,66720,66729,66736,66771,66776,66811,66816,66855,66864,66915,66928,66938,66940,66954,66956,66962,66964,66965,66967,66977,66979,66993,66995,67001,67003,67004,67072,67382,67392,67413,67424,67431,67456,67461,67463,67504,67506,67514,67584,67589,67592,67592,67594,67637,67639,67640,67644,67644,67647,67669,67680,67702,67712,67742,67808,67826,67828,67829,67840,67861,67872,67897,67968,68023,68030,68031,68096,68099,68101,68102,68108,68115,68117,68119,68121,68149,68152,68154,68159,68159,68192,68220,68224,68252,68288,68295,68297,68326,68352,68405,68416,68437,68448,68466,68480,68497,68608,68680,68736,68786,68800,68850,68864,68903,68912,68921,69248,69289,69291,69292,69296,69297,69373,69404,69415,69415,69424,69456,69488,69509,69552,69572,69600,69622,69632,69702,69734,69749,69759,69818,69826,69826,69840,69864,69872,69881,69888,69940,69942,69951,69956,69959,69968,70003,70006,70006,70016,70084,70089,70092,70094,70106,70108,70108,70144,70161,70163,70199,70206,70209,70272,70278,70280,70280,70282,70285,70287,70301,70303,70312,70320,70378,70384,70393,70400,70403,70405,70412,70415,70416,70419,70440,70442,70448,70450,70451,70453,70457,70459,70468,70471,70472,70475,70477,70480,70480,70487,70487,70493,70499,70502,70508,70512,70516,70656,70730,70736,70745,70750,70753,70784,70853,70855,70855,70864,70873,71040,71093,71096,71104,71128,71133,71168,71232,71236,71236,71248,71257,71296,71352,71360,71369,71424,71450,71453,71467,71472,71481,71488,71494,71680,71738,71840,71913,71935,71942,71945,71945,71948,71955,71957,71958,71960,71989,71991,71992,71995,72003,72016,72025,72096,72103,72106,72151,72154,72161,72163,72164,72192,72254,72263,72263,72272,72345,72349,72349,72368,72440,72704,72712,72714,72758,72760,72768,72784,72793,72818,72847,72850,72871,72873,72886,72960,72966,72968,72969,72971,73014,73018,73018,73020,73021,73023,73031,73040,73049,73056,73061,73063,73064,73066,73102,73104,73105,73107,73112,73120,73129,73440,73462,73472,73488,73490,73530,73534,73538,73552,73561,73648,73648,73728,74649,74752,74862,74880,75075,77712,77808,77824,78895,78912,78933,82944,83526,92160,92728,92736,92766,92768,92777,92784,92862,92864,92873,92880,92909,92912,92916,92928,92982,92992,92995,93008,93017,93027,93047,93053,93071,93760,93823,93952,94026,94031,94087,94095,94111,94176,94177,94179,94180,94192,94193,94208,100343,100352,101589,101632,101640,110576,110579,110581,110587,110589,110590,110592,110882,110898,110898,110928,110930,110933,110933,110948,110951,110960,111355,113664,113770,113776,113788,113792,113800,113808,113817,113821,113822,118528,118573,118576,118598,119141,119145,119149,119154,119163,119170,119173,119179,119210,119213,119362,119364,119808,119892,119894,119964,119966,119967,119970,119970,119973,119974,119977,119980,119982,119993,119995,119995,119997,120003,120005,120069,120071,120074,120077,120084,120086,120092,120094,120121,120123,120126,120128,120132,120134,120134,120138,120144,120146,120485,120488,120512,120514,120538,120540,120570,120572,120596,120598,120628,120630,120654,120656,120686,120688,120712,120714,120744,120746,120770,120772,120779,120782,120831,121344,121398,121403,121452,121461,121461,121476,121476,121499,121503,121505,121519,122624,122654,122661,122666,122880,122886,122888,122904,122907,122913,122915,122916,122918,122922,122928,122989,123023,123023,123136,123180,123184,123197,123200,123209,123214,123214,123536,123566,123584,123641,124112,124153,124896,124902,124904,124907,124909,124910,124912,124926,124928,125124,125136,125142,125184,125259,125264,125273,126464,126467,126469,126495,126497,126498,126500,126500,126503,126503,126505,126514,126516,126519,126521,126521,126523,126523,126530,126530,126535,126535,126537,126537,126539,126539,126541,126543,126545,126546,126548,126548,126551,126551,126553,126553,126555,126555,126557,126557,126559,126559,126561,126562,126564,126564,126567,126570,126572,126578,126580,126583,126585,126588,126590,126590,126592,126601,126603,126619,126625,126627,126629,126633,126635,126651,130032,130041,131072,173791,173824,177977,177984,178205,178208,183969,183984,191456,191472,192093,194560,195101,196608,201546,201552,205743,917760,917999],ka=/^\/\/\/?\s*@(ts-expect-error|ts-ignore)/,Sa=/^(?:\/|\*)*\s*@(ts-expect-error|ts-ignore)/,Ta=/@(?:see|link)/i;function Ca(e,t){if(e=2?ba:ya)}function Na(e){const t=[];return e.forEach((e,n)=>{t[e]=n}),t}var Da=Na(ma);function Fa(e){return Da[e]}function Ea(e){return ma.get(e)}var Pa=Na(ga);function Aa(e){return Pa[e]}function Ia(e){return ga.get(e)}function Oa(e){const t=[];let n=0,r=0;for(;n127&&Va(i)&&(t.push(r),r=n)}}return t.push(r),t}function La(e,t,n,r){return e.getPositionOfLineAndCharacter?e.getPositionOfLineAndCharacter(t,n,r):ja(Ma(e),t,n,e.text,r)}function ja(e,t,n,r,i){(t<0||t>=e.length)&&(i?t=t<0?0:t>=e.length?e.length-1:t:un.fail(`Bad line number. Line: ${t}, lineStarts.length: ${e.length} , line map is correct? ${void 0!==r?te(e,Oa(r)):"unknown"}`));const o=e[t]+n;return i?o>e[t+1]?e[t+1]:"string"==typeof r&&o>r.length?r.length:o:(t=8192&&e<=8203||8239===e||8287===e||12288===e||65279===e}function Va(e){return 10===e||13===e||8232===e||8233===e}function Wa(e){return e>=48&&e<=57}function $a(e){return Wa(e)||e>=65&&e<=70||e>=97&&e<=102}function Ha(e){return e>=65&&e<=90||e>=97&&e<=122}function Ka(e){return Ha(e)||Wa(e)||95===e}function Ga(e){return e>=48&&e<=55}function Xa(e,t){const n=e.charCodeAt(t);switch(n){case 13:case 10:case 9:case 11:case 12:case 32:case 47:case 60:case 124:case 61:case 62:return!0;case 35:return 0===t;default:return n>127}}function Qa(e,t,n,r,i){if(XS(t))return t;let o=!1;for(;;){const a=e.charCodeAt(t);switch(a){case 13:10===e.charCodeAt(t+1)&&t++;case 10:if(t++,n)return t;o=!!i;continue;case 9:case 11:case 12:case 32:t++;continue;case 47:if(r)break;if(47===e.charCodeAt(t+1)){for(t+=2;t127&&qa(a)){t++;continue}}return t}}var Ya=7;function Za(e,t){if(un.assert(t>=0),0===t||Va(e.charCodeAt(t-1))){const n=e.charCodeAt(t);if(t+Ya=0&&n127&&qa(a)){u&&Va(a)&&(_=!0),n++;continue}break e}}return u&&(p=i(s,c,l,_,o,p)),p}function os(e,t,n,r){return is(!1,e,t,!1,n,r)}function as(e,t,n,r){return is(!1,e,t,!0,n,r)}function ss(e,t,n,r,i){return is(!0,e,t,!1,n,r,i)}function cs(e,t,n,r,i){return is(!0,e,t,!0,n,r,i)}function ls(e,t,n,r,i,o=[]){return o.push({kind:n,pos:e,end:t,hasTrailingNewLine:r}),o}function _s(e,t){return ss(e,t,ls,void 0,void 0)}function us(e,t){return cs(e,t,ls,void 0,void 0)}function ds(e){const t=ts.exec(e);if(t)return t[0]}function ps(e,t){return Ha(e)||36===e||95===e||e>127&&wa(e,t)}function fs(e,t,n){return Ka(e)||36===e||1===n&&(45===e||58===e)||e>127&&function(e,t){return Ca(e,t>=2?xa:va)}(e,t)}function ms(e,t,n){let r=hs(e,0);if(!ps(r,t))return!1;for(let i=ys(r);il,getStartPos:()=>l,getTokenEnd:()=>s,getTextPos:()=>s,getToken:()=>u,getTokenStart:()=>_,getTokenPos:()=>_,getTokenText:()=>g.substring(_,s),getTokenValue:()=>p,hasUnicodeEscape:()=>!!(1024&f),hasExtendedUnicodeEscape:()=>!!(8&f),hasPrecedingLineBreak:()=>!!(1&f),hasPrecedingJSDocComment:()=>!!(2&f),hasPrecedingJSDocLeadingAsterisks:()=>!!(32768&f),isIdentifier:()=>80===u||u>118,isReservedWord:()=>u>=83&&u<=118,isUnterminated:()=>!!(4&f),getCommentDirectives:()=>m,getNumericLiteralFlags:()=>25584&f,getTokenFlags:()=>f,reScanGreaterToken:function(){if(32===u){if(62===S(s))return 62===S(s+1)?61===S(s+2)?(s+=3,u=73):(s+=2,u=50):61===S(s+1)?(s+=2,u=72):(s++,u=49);if(61===S(s))return s++,u=34}return u},reScanAsteriskEqualsToken:function(){return un.assert(67===u,"'reScanAsteriskEqualsToken' should only be called on a '*='"),s=_+1,u=64},reScanSlashToken:function(t){if(44===u||69===u){const n=_+1;s=n;let r=!1,i=!1,a=!1;for(;;){const e=T(s);if(-1===e||Va(e)){f|=4;break}if(r)r=!1;else{if(47===e&&!a)break;91===e?a=!0:92===e?r=!0:93===e?a=!1:a||40!==e||63!==T(s+1)||60!==T(s+2)||61===T(s+3)||33===T(s+3)||(i=!0)}s++}const l=s;if(4&f){s=n,r=!1;let e=0,t=!1,i=0;for(;s{!function(t,n,r){var i,a,l,u,f=!!(64&t),m=!!(96&t),h=m||!1,y=!1,v=0,b=[];function x(e){for(;;){if(b.push(u),u=void 0,w(e),u=b.pop(),124!==T(s))return;s++}}function w(t){let n=!1;for(;;){const r=s,i=T(s);switch(i){case-1:return;case 94:case 36:s++,n=!1;break;case 92:switch(T(++s)){case 98:case 66:s++,n=!1;break;default:D(),n=!0}break;case 40:if(63===T(++s))switch(T(++s)){case 61:case 33:s++,n=!h;break;case 60:const t=s;switch(T(++s)){case 61:case 33:s++,n=!1;break;default:P(!1),U(62),e<5&&C(_a.Named_capturing_groups_are_only_available_when_targeting_ES2018_or_later,t,s-t),v++,n=!0}break;default:const r=s,i=N(0);45===T(s)&&(s++,N(i),s===r+1&&C(_a.Subpattern_flags_must_be_present_when_there_is_a_minus_sign,r,s-r)),U(58),n=!0}else v++,n=!0;x(!0),U(41);break;case 123:const o=++s;F();const a=p;if(!h&&!a){n=!0;break}if(44===T(s)){s++,F();const e=p;if(a)e&&Number.parseInt(a)>Number.parseInt(e)&&(h||125===T(s))&&C(_a.Numbers_out_of_order_in_quantifier,o,s-o);else{if(!e&&125!==T(s)){C(_a.Unexpected_0_Did_you_mean_to_escape_it_with_backslash,r,1,String.fromCharCode(i)),n=!0;break}C(_a.Incomplete_quantifier_Digit_expected,o,0)}}else if(!a){h&&C(_a.Unexpected_0_Did_you_mean_to_escape_it_with_backslash,r,1,String.fromCharCode(i)),n=!0;break}if(125!==T(s)){if(!h){n=!0;break}C(_a._0_expected,s,0,String.fromCharCode(125)),s--}case 42:case 43:case 63:63===T(++s)&&s++,n||C(_a.There_is_nothing_available_for_repetition,r,s-r),n=!1;break;case 46:s++,n=!0;break;case 91:s++,f?L():I(),U(93),n=!0;break;case 41:if(t)return;case 93:case 125:(h||41===i)&&C(_a.Unexpected_0_Did_you_mean_to_escape_it_with_backslash,s,1,String.fromCharCode(i)),s++,n=!0;break;case 47:case 124:return;default:q(),n=!0}}}function N(t){for(;;){const n=k(s);if(-1===n||!fs(n,e))break;const r=ys(n),i=Ia(n);void 0===i?C(_a.Unknown_regular_expression_flag,s,r):t&i?C(_a.Duplicate_regular_expression_flag,s,r):28&i?(t|=i,W(i,r)):C(_a.This_regular_expression_flag_cannot_be_toggled_within_a_subpattern,s,r),s+=r}return t}function D(){switch(un.assertEqual(S(s-1),92),T(s)){case 107:60===T(++s)?(s++,P(!0),U(62)):(h||r)&&C(_a.k_must_be_followed_by_a_capturing_group_name_enclosed_in_angle_brackets,s-2,2);break;case 113:if(f){s++,C(_a.q_is_only_available_inside_character_class,s-2,2);break}default:un.assert(J()||function(){un.assertEqual(S(s-1),92);const e=T(s);if(e>=49&&e<=57){const e=s;return F(),l=ie(l,{pos:e,end:s,value:+p}),!0}return!1}()||E(!0))}}function E(e){un.assertEqual(S(s-1),92);let t=T(s);switch(t){case-1:return C(_a.Undetermined_character_escape,s-1,1),"\\";case 99:if(t=T(++s),Ha(t))return s++,String.fromCharCode(31&t);if(h)C(_a.c_must_be_followed_by_an_ASCII_letter,s-2,2);else if(e)return s--,"\\";return String.fromCharCode(t);case 94:case 36:case 47:case 92:case 46:case 42:case 43:case 63:case 40:case 41:case 91:case 93:case 123:case 125:case 124:return s++,String.fromCharCode(t);default:return s--,O(12|(m?16:0)|(e?32:0))}}function P(t){un.assertEqual(S(s-1),60),_=s,V(k(s),e),s===_?C(_a.Expected_a_capturing_group_name):t?a=ie(a,{pos:_,end:s,name:p}):(null==u?void 0:u.has(p))||b.some(e=>null==e?void 0:e.has(p))?C(_a.Named_capturing_groups_with_the_same_name_must_be_mutually_exclusive_to_each_other,_,s-_):(u??(u=new Set),u.add(p),i??(i=new Set),i.add(p))}function A(e){return 93===e||-1===e||s>=c}function I(){for(un.assertEqual(S(s-1),91),94===T(s)&&s++;;){if(A(T(s)))return;const e=s,t=B();if(45===T(s)){if(A(T(++s)))return;!t&&h&&C(_a.A_character_class_range_must_not_be_bounded_by_another_character_class,e,s-1-e);const n=s,r=B();if(!r&&h){C(_a.A_character_class_range_must_not_be_bounded_by_another_character_class,n,s-n);continue}if(!t)continue;const i=hs(t,0),o=hs(r,0);t.length===ys(i)&&r.length===ys(o)&&i>o&&C(_a.Range_out_of_order_in_character_class,e,s-e)}}}function L(){un.assertEqual(S(s-1),91);let e=!1;94===T(s)&&(s++,e=!0);let t=!1,n=T(s);if(A(n))return;let r,i=s;switch(g.slice(s,s+2)){case"--":case"&&":C(_a.Expected_a_class_set_operand),y=!1;break;default:r=M()}switch(T(s)){case 45:if(45===T(s+1))return e&&y&&C(_a.Anything_that_would_possibly_match_more_than_a_single_character_is_invalid_inside_a_negated_character_class,i,s-i),t=y,j(3),void(y=!e&&t);break;case 38:if(38===T(s+1))return j(2),e&&y&&C(_a.Anything_that_would_possibly_match_more_than_a_single_character_is_invalid_inside_a_negated_character_class,i,s-i),t=y,void(y=!e&&t);C(_a.Unexpected_0_Did_you_mean_to_escape_it_with_backslash,s,1,String.fromCharCode(n));break;default:e&&y&&C(_a.Anything_that_would_possibly_match_more_than_a_single_character_is_invalid_inside_a_negated_character_class,i,s-i),t=y}for(;n=T(s),-1!==n;){switch(n){case 45:if(n=T(++s),A(n))return void(y=!e&&t);if(45===n){s++,C(_a.Operators_must_not_be_mixed_within_a_character_class_Wrap_it_in_a_nested_class_instead,s-2,2),i=s-2,r=g.slice(i,s);continue}{r||C(_a.A_character_class_range_must_not_be_bounded_by_another_character_class,i,s-1-i);const n=s,o=M();if(e&&y&&C(_a.Anything_that_would_possibly_match_more_than_a_single_character_is_invalid_inside_a_negated_character_class,n,s-n),t||(t=y),!o){C(_a.A_character_class_range_must_not_be_bounded_by_another_character_class,n,s-n);break}if(!r)break;const a=hs(r,0),c=hs(o,0);r.length===ys(a)&&o.length===ys(c)&&a>c&&C(_a.Range_out_of_order_in_character_class,i,s-i)}break;case 38:i=s,38===T(++s)?(s++,C(_a.Operators_must_not_be_mixed_within_a_character_class_Wrap_it_in_a_nested_class_instead,s-2,2),38===T(s)&&(C(_a.Unexpected_0_Did_you_mean_to_escape_it_with_backslash,s,1,String.fromCharCode(n)),s++)):C(_a.Unexpected_0_Did_you_mean_to_escape_it_with_backslash,s-1,1,String.fromCharCode(n)),r=g.slice(i,s);continue}if(A(T(s)))break;switch(i=s,g.slice(s,s+2)){case"--":case"&&":C(_a.Operators_must_not_be_mixed_within_a_character_class_Wrap_it_in_a_nested_class_instead,s,2),s+=2,r=g.slice(i,s);break;default:r=M()}}y=!e&&t}function j(e){let t=y;for(;;){let n=T(s);if(A(n))break;switch(n){case 45:45===T(++s)?(s++,3!==e&&C(_a.Operators_must_not_be_mixed_within_a_character_class_Wrap_it_in_a_nested_class_instead,s-2,2)):C(_a.Operators_must_not_be_mixed_within_a_character_class_Wrap_it_in_a_nested_class_instead,s-1,1);break;case 38:38===T(++s)?(s++,2!==e&&C(_a.Operators_must_not_be_mixed_within_a_character_class_Wrap_it_in_a_nested_class_instead,s-2,2),38===T(s)&&(C(_a.Unexpected_0_Did_you_mean_to_escape_it_with_backslash,s,1,String.fromCharCode(n)),s++)):C(_a.Unexpected_0_Did_you_mean_to_escape_it_with_backslash,s-1,1,String.fromCharCode(n));break;default:switch(e){case 3:C(_a._0_expected,s,0,"--");break;case 2:C(_a._0_expected,s,0,"&&")}}if(n=T(s),A(n)){C(_a.Expected_a_class_set_operand);break}M(),t&&(t=y)}y=t}function M(){switch(y=!1,T(s)){case-1:return"";case 91:return s++,L(),U(93),"";case 92:if(s++,J())return"";if(113===T(s))return 123===T(++s)?(s++,function(){un.assertEqual(S(s-1),123);let e=0;for(;;)switch(T(s)){case-1:return;case 125:return void(1!==e&&(y=!0));case 124:1!==e&&(y=!0),s++,o=s,e=0;break;default:R(),e++}}(),U(125),""):(C(_a.q_must_be_followed_by_string_alternatives_enclosed_in_braces,s-2,2),"q");s--;default:return R()}}function R(){const e=T(s);if(-1===e)return"";if(92===e){const e=T(++s);switch(e){case 98:return s++,"\b";case 38:case 45:case 33:case 35:case 37:case 44:case 58:case 59:case 60:case 61:case 62:case 64:case 96:case 126:return s++,String.fromCharCode(e);default:return E(!1)}}else if(e===T(s+1))switch(e){case 38:case 33:case 35:case 37:case 42:case 43:case 44:case 46:case 58:case 59:case 60:case 61:case 62:case 63:case 64:case 96:case 126:return C(_a.A_character_class_must_not_contain_a_reserved_double_punctuator_Did_you_mean_to_escape_it_with_backslash,s,2),s+=2,g.substring(s-2,s)}switch(e){case 47:case 40:case 41:case 91:case 93:case 123:case 125:case 45:case 124:return C(_a.Unexpected_0_Did_you_mean_to_escape_it_with_backslash,s,1,String.fromCharCode(e)),s++,String.fromCharCode(e)}return q()}function B(){if(92!==T(s))return q();{const e=T(++s);switch(e){case 98:return s++,"\b";case 45:return s++,String.fromCharCode(e);default:return J()?"":E(!1)}}}function J(){un.assertEqual(S(s-1),92);let e=!1;const t=s-1,n=T(s);switch(n){case 100:case 68:case 115:case 83:case 119:case 87:return s++,!0;case 80:e=!0;case 112:if(123===T(++s)){const n=++s,r=z();if(61===T(s)){const e=xs.get(r);if(s===n)C(_a.Expected_a_Unicode_property_name);else if(void 0===e){C(_a.Unknown_Unicode_property_name,n,s-n);const e=Lt(r,xs.keys(),st);e&&C(_a.Did_you_mean_0,n,s-n,e)}const t=++s,i=z();if(s===t)C(_a.Expected_a_Unicode_property_value);else if(void 0!==e&&!Ts[e].has(i)){C(_a.Unknown_Unicode_property_value,t,s-t);const n=Lt(i,Ts[e],st);n&&C(_a.Did_you_mean_0,t,s-t,n)}}else if(s===n)C(_a.Expected_a_Unicode_property_name_or_value);else if(Ss.has(r))f?e?C(_a.Anything_that_would_possibly_match_more_than_a_single_character_is_invalid_inside_a_negated_character_class,n,s-n):y=!0:C(_a.Any_Unicode_property_that_would_possibly_match_more_than_a_single_character_is_only_available_when_the_Unicode_Sets_v_flag_is_set,n,s-n);else if(!Ts.General_Category.has(r)&&!ks.has(r)){C(_a.Unknown_Unicode_property_name_or_value,n,s-n);const e=Lt(r,[...Ts.General_Category,...ks,...Ss],st);e&&C(_a.Did_you_mean_0,n,s-n,e)}U(125),m||C(_a.Unicode_property_value_expressions_are_only_available_when_the_Unicode_u_flag_or_the_Unicode_Sets_v_flag_is_set,t,s-t)}else{if(!h)return s--,!1;C(_a._0_must_be_followed_by_a_Unicode_property_value_expression_enclosed_in_braces,s-2,2,String.fromCharCode(n))}return!0}return!1}function z(){let e="";for(;;){const t=T(s);if(-1===t||!Ka(t))break;e+=String.fromCharCode(t),s++}return e}function q(){const e=m?ys(k(s)):1;return s+=e,e>0?g.substring(s-e,s):""}function U(e){T(s)===e?s++:C(_a._0_expected,s,0,String.fromCharCode(e))}x(!1),d(a,e=>{if(!(null==i?void 0:i.has(e.name))&&(C(_a.There_is_no_capturing_group_named_0_in_this_regular_expression,e.pos,e.end-e.pos,e.name),i)){const t=Lt(e.name,i,st);t&&C(_a.Did_you_mean_0,e.pos,e.end-e.pos,t)}}),d(l,e=>{e.value>v&&(v?C(_a.This_backreference_refers_to_a_group_that_does_not_exist_There_are_only_0_capturing_groups_in_this_regular_expression,e.pos,e.end-e.pos,v):C(_a.This_backreference_refers_to_a_group_that_does_not_exist_There_are_no_capturing_groups_in_this_regular_expression,e.pos,e.end-e.pos))})}(r,0,i)})}p=g.substring(_,s),u=14}return u},reScanTemplateToken:function(e){return s=_,u=I(!e)},reScanTemplateHeadOrNoSubstitutionTemplate:function(){return s=_,u=I(!0)},scanJsxIdentifier:function(){if(ua(u)){for(;s=c)return u=1;for(let t=S(s);s=0&&Ua(S(s-1))&&!(s+1{const e=b.getText();return e.slice(0,b.getTokenFullStart())+"║"+e.slice(b.getTokenFullStart())}}),b;function x(e){return hs(g,e)}function k(e){return e>=0&&e=0&&e=65&&e<=70)e+=32;else if(!(e>=48&&e<=57||e>=97&&e<=102))break;r.push(e),s++,o=!1}}return r.length=c){n+=g.substring(r,s),f|=4,C(_a.Unterminated_string_literal);break}const i=S(s);if(i===t){n+=g.substring(r,s),s++;break}if(92!==i||e){if((10===i||13===i)&&!e){n+=g.substring(r,s),f|=4,C(_a.Unterminated_string_literal);break}s++}else n+=g.substring(r,s),n+=O(3),r=s}return n}function I(e){const t=96===S(s);let n,r=++s,i="";for(;;){if(s>=c){i+=g.substring(r,s),f|=4,C(_a.Unterminated_template_literal),n=t?15:18;break}const o=S(s);if(96===o){i+=g.substring(r,s),s++,n=t?15:18;break}if(36===o&&s+1=c)return C(_a.Unexpected_end_of_text),"";const r=S(s);switch(s++,r){case 48:if(s>=c||!Wa(S(s)))return"\0";case 49:case 50:case 51:s=55296&&i<=56319&&s+6=56320&&n<=57343)return s=t,o+String.fromCharCode(n)}return o;case 120:for(;s1114111&&(e&&C(_a.An_extended_Unicode_escape_value_must_be_between_0x0_and_0x10FFFF_inclusive,n,s-n),o=!0),s>=c?(e&&C(_a.Unexpected_end_of_text),o=!0):125===S(s)?s++:(e&&C(_a.Unterminated_Unicode_escape_sequence),o=!0),o?(f|=2048,g.substring(t,s)):(f|=8,bs(i))}function j(){if(s+5=0&&fs(r,e)){t+=L(!0),n=s;continue}if(r=j(),!(r>=0&&fs(r,e)))break;f|=1024,t+=g.substring(n,s),t+=bs(r),n=s+=6}}return t+=g.substring(n,s),t}function B(){const e=p.length;if(e>=2&&e<=12){const e=p.charCodeAt(0);if(e>=97&&e<=122){const e=fa.get(p);if(void 0!==e)return u=e}}return u=80}function J(e){let t="",n=!1,r=!1;for(;;){const i=S(s);if(95!==i){if(n=!0,!Wa(i)||i-48>=e)break;t+=g[s],s++,r=!1}else f|=512,n?(n=!1,r=!0):C(r?_a.Multiple_consecutive_numeric_separators_are_not_permitted:_a.Numeric_separators_are_not_allowed_here,s,1),s++}return 95===S(s-1)&&C(_a.Numeric_separators_are_not_allowed_here,s-1,1),t}function z(){if(110===S(s))return p+="n",384&f&&(p=mT(p)+"n"),s++,10;{const e=128&f?parseInt(p.slice(2),2):256&f?parseInt(p.slice(2),8):+p;return p=""+e,9}}function q(){for(l=s,f=0;;){if(_=s,s>=c)return u=1;const r=x(s);if(0===s&&35===r&&ns(g,s)){if(s=rs(g,s),t)continue;return u=6}switch(r){case 10:case 13:if(f|=1,t){s++;continue}return 13===r&&s+1=0&&ps(i,e))return p=L(!0)+R(),u=B();const o=j();return o>=0&&ps(o,e)?(s+=6,f|=1024,p=String.fromCharCode(o)+R(),u=B()):(C(_a.Invalid_character),s++,u=0);case 35:if(0!==s&&"!"===g[s+1])return C(_a.can_only_be_used_at_the_start_of_a_file,s,2),s++,u=0;const a=x(s+1);if(92===a){s++;const t=M();if(t>=0&&ps(t,e))return p="#"+L(!0)+R(),u=81;const n=j();if(n>=0&&ps(n,e))return s+=6,f|=1024,p="#"+String.fromCharCode(n)+R(),u=81;s--}return ps(a,e)?(s++,V(a,e)):(p="#",C(_a.Invalid_character,s++,ys(r))),u=81;case 65533:return C(_a.File_appears_to_be_binary,0,0),s=c,u=8;default:const l=V(r,e);if(l)return u=l;if(Ua(r)){s+=ys(r);continue}if(Va(r)){f|=1,s+=ys(r);continue}const d=ys(r);return C(_a.Invalid_character,s,d),s+=d,u=0}}}function U(){switch(v){case 0:return!0;case 1:return!1}return 3!==y&&4!==y||3!==v&&Ta.test(g.slice(l,s))}function V(e,t){let n=e;if(ps(n,t)){for(s+=ys(n);s=c)return u=1;let t=S(s);if(60===t)return 47===S(s+1)?(s+=2,u=31):(s++,u=30);if(123===t)return s++,u=19;let n=0;for(;s0)break;qa(t)||(n=s)}s++}return p=g.substring(l,s),-1===n?13:12}function K(){switch(l=s,S(s)){case 34:case 39:return p=A(!0),u=11;default:return q()}}function G(){if(l=_=s,f=0,s>=c)return u=1;const t=x(s);switch(s+=ys(t),t){case 9:case 11:case 12:case 32:for(;s=0&&ps(t,e))return p=L(!0)+R(),u=B();const n=j();return n>=0&&ps(n,e)?(s+=6,f|=1024,p=String.fromCharCode(n)+R(),u=B()):(s++,u=0)}if(ps(t,e)){let n=t;for(;s=0),s=e,l=e,_=e,u=0,p=void 0,f=0}}function hs(e,t){return e.codePointAt(t)}function ys(e){return e>=65536?2:-1===e?0:1}var vs=String.fromCodePoint?e=>String.fromCodePoint(e):function(e){if(un.assert(0<=e&&e<=1114111),e<=65535)return String.fromCharCode(e);const t=Math.floor((e-65536)/1024)+55296,n=(e-65536)%1024+56320;return String.fromCharCode(t,n)};function bs(e){return vs(e)}var xs=new Map(Object.entries({General_Category:"General_Category",gc:"General_Category",Script:"Script",sc:"Script",Script_Extensions:"Script_Extensions",scx:"Script_Extensions"})),ks=new Set(["ASCII","ASCII_Hex_Digit","AHex","Alphabetic","Alpha","Any","Assigned","Bidi_Control","Bidi_C","Bidi_Mirrored","Bidi_M","Case_Ignorable","CI","Cased","Changes_When_Casefolded","CWCF","Changes_When_Casemapped","CWCM","Changes_When_Lowercased","CWL","Changes_When_NFKC_Casefolded","CWKCF","Changes_When_Titlecased","CWT","Changes_When_Uppercased","CWU","Dash","Default_Ignorable_Code_Point","DI","Deprecated","Dep","Diacritic","Dia","Emoji","Emoji_Component","EComp","Emoji_Modifier","EMod","Emoji_Modifier_Base","EBase","Emoji_Presentation","EPres","Extended_Pictographic","ExtPict","Extender","Ext","Grapheme_Base","Gr_Base","Grapheme_Extend","Gr_Ext","Hex_Digit","Hex","IDS_Binary_Operator","IDSB","IDS_Trinary_Operator","IDST","ID_Continue","IDC","ID_Start","IDS","Ideographic","Ideo","Join_Control","Join_C","Logical_Order_Exception","LOE","Lowercase","Lower","Math","Noncharacter_Code_Point","NChar","Pattern_Syntax","Pat_Syn","Pattern_White_Space","Pat_WS","Quotation_Mark","QMark","Radical","Regional_Indicator","RI","Sentence_Terminal","STerm","Soft_Dotted","SD","Terminal_Punctuation","Term","Unified_Ideograph","UIdeo","Uppercase","Upper","Variation_Selector","VS","White_Space","space","XID_Continue","XIDC","XID_Start","XIDS"]),Ss=new Set(["Basic_Emoji","Emoji_Keycap_Sequence","RGI_Emoji_Modifier_Sequence","RGI_Emoji_Flag_Sequence","RGI_Emoji_Tag_Sequence","RGI_Emoji_ZWJ_Sequence","RGI_Emoji"]),Ts={General_Category:new Set(["C","Other","Cc","Control","cntrl","Cf","Format","Cn","Unassigned","Co","Private_Use","Cs","Surrogate","L","Letter","LC","Cased_Letter","Ll","Lowercase_Letter","Lm","Modifier_Letter","Lo","Other_Letter","Lt","Titlecase_Letter","Lu","Uppercase_Letter","M","Mark","Combining_Mark","Mc","Spacing_Mark","Me","Enclosing_Mark","Mn","Nonspacing_Mark","N","Number","Nd","Decimal_Number","digit","Nl","Letter_Number","No","Other_Number","P","Punctuation","punct","Pc","Connector_Punctuation","Pd","Dash_Punctuation","Pe","Close_Punctuation","Pf","Final_Punctuation","Pi","Initial_Punctuation","Po","Other_Punctuation","Ps","Open_Punctuation","S","Symbol","Sc","Currency_Symbol","Sk","Modifier_Symbol","Sm","Math_Symbol","So","Other_Symbol","Z","Separator","Zl","Line_Separator","Zp","Paragraph_Separator","Zs","Space_Separator"]),Script:new Set(["Adlm","Adlam","Aghb","Caucasian_Albanian","Ahom","Arab","Arabic","Armi","Imperial_Aramaic","Armn","Armenian","Avst","Avestan","Bali","Balinese","Bamu","Bamum","Bass","Bassa_Vah","Batk","Batak","Beng","Bengali","Bhks","Bhaiksuki","Bopo","Bopomofo","Brah","Brahmi","Brai","Braille","Bugi","Buginese","Buhd","Buhid","Cakm","Chakma","Cans","Canadian_Aboriginal","Cari","Carian","Cham","Cher","Cherokee","Chrs","Chorasmian","Copt","Coptic","Qaac","Cpmn","Cypro_Minoan","Cprt","Cypriot","Cyrl","Cyrillic","Deva","Devanagari","Diak","Dives_Akuru","Dogr","Dogra","Dsrt","Deseret","Dupl","Duployan","Egyp","Egyptian_Hieroglyphs","Elba","Elbasan","Elym","Elymaic","Ethi","Ethiopic","Geor","Georgian","Glag","Glagolitic","Gong","Gunjala_Gondi","Gonm","Masaram_Gondi","Goth","Gothic","Gran","Grantha","Grek","Greek","Gujr","Gujarati","Guru","Gurmukhi","Hang","Hangul","Hani","Han","Hano","Hanunoo","Hatr","Hatran","Hebr","Hebrew","Hira","Hiragana","Hluw","Anatolian_Hieroglyphs","Hmng","Pahawh_Hmong","Hmnp","Nyiakeng_Puachue_Hmong","Hrkt","Katakana_Or_Hiragana","Hung","Old_Hungarian","Ital","Old_Italic","Java","Javanese","Kali","Kayah_Li","Kana","Katakana","Kawi","Khar","Kharoshthi","Khmr","Khmer","Khoj","Khojki","Kits","Khitan_Small_Script","Knda","Kannada","Kthi","Kaithi","Lana","Tai_Tham","Laoo","Lao","Latn","Latin","Lepc","Lepcha","Limb","Limbu","Lina","Linear_A","Linb","Linear_B","Lisu","Lyci","Lycian","Lydi","Lydian","Mahj","Mahajani","Maka","Makasar","Mand","Mandaic","Mani","Manichaean","Marc","Marchen","Medf","Medefaidrin","Mend","Mende_Kikakui","Merc","Meroitic_Cursive","Mero","Meroitic_Hieroglyphs","Mlym","Malayalam","Modi","Mong","Mongolian","Mroo","Mro","Mtei","Meetei_Mayek","Mult","Multani","Mymr","Myanmar","Nagm","Nag_Mundari","Nand","Nandinagari","Narb","Old_North_Arabian","Nbat","Nabataean","Newa","Nkoo","Nko","Nshu","Nushu","Ogam","Ogham","Olck","Ol_Chiki","Orkh","Old_Turkic","Orya","Oriya","Osge","Osage","Osma","Osmanya","Ougr","Old_Uyghur","Palm","Palmyrene","Pauc","Pau_Cin_Hau","Perm","Old_Permic","Phag","Phags_Pa","Phli","Inscriptional_Pahlavi","Phlp","Psalter_Pahlavi","Phnx","Phoenician","Plrd","Miao","Prti","Inscriptional_Parthian","Rjng","Rejang","Rohg","Hanifi_Rohingya","Runr","Runic","Samr","Samaritan","Sarb","Old_South_Arabian","Saur","Saurashtra","Sgnw","SignWriting","Shaw","Shavian","Shrd","Sharada","Sidd","Siddham","Sind","Khudawadi","Sinh","Sinhala","Sogd","Sogdian","Sogo","Old_Sogdian","Sora","Sora_Sompeng","Soyo","Soyombo","Sund","Sundanese","Sylo","Syloti_Nagri","Syrc","Syriac","Tagb","Tagbanwa","Takr","Takri","Tale","Tai_Le","Talu","New_Tai_Lue","Taml","Tamil","Tang","Tangut","Tavt","Tai_Viet","Telu","Telugu","Tfng","Tifinagh","Tglg","Tagalog","Thaa","Thaana","Thai","Tibt","Tibetan","Tirh","Tirhuta","Tnsa","Tangsa","Toto","Ugar","Ugaritic","Vaii","Vai","Vith","Vithkuqi","Wara","Warang_Citi","Wcho","Wancho","Xpeo","Old_Persian","Xsux","Cuneiform","Yezi","Yezidi","Yiii","Yi","Zanb","Zanabazar_Square","Zinh","Inherited","Qaai","Zyyy","Common","Zzzz","Unknown"]),Script_Extensions:void 0};function Cs(e){return vo(e)||go(e)}function ws(e){return ee(e,nk,ak)}Ts.Script_Extensions=Ts.Script;var Ns=new Map([[99,"lib.esnext.full.d.ts"],[11,"lib.es2024.full.d.ts"],[10,"lib.es2023.full.d.ts"],[9,"lib.es2022.full.d.ts"],[8,"lib.es2021.full.d.ts"],[7,"lib.es2020.full.d.ts"],[6,"lib.es2019.full.d.ts"],[5,"lib.es2018.full.d.ts"],[4,"lib.es2017.full.d.ts"],[3,"lib.es2016.full.d.ts"],[2,"lib.es6.d.ts"]]);function Ds(e){const t=yk(e);switch(t){case 99:case 11:case 10:case 9:case 8:case 7:case 6:case 5:case 4:case 3:case 2:return Ns.get(t);default:return"lib.d.ts"}}function Fs(e){return e.start+e.length}function Es(e){return 0===e.length}function Ps(e,t){return t>=e.start&&t=e.pos&&t<=e.end}function Is(e,t){return t.start>=e.start&&Fs(t)<=Fs(e)}function Os(e,t){return t.pos>=e.start&&t.end<=Fs(e)}function Ls(e,t){return t.start>=e.pos&&Fs(t)<=e.end}function js(e,t){return void 0!==Ms(e,t)}function Ms(e,t){const n=Us(e,t);return n&&0===n.length?void 0:n}function Rs(e,t){return Js(e.start,e.length,t.start,t.length)}function Bs(e,t,n){return Js(e.start,e.length,t,n)}function Js(e,t,n,r){return n<=e+t&&n+r>=e}function zs(e,t){return t<=Fs(e)&&t>=e.start}function qs(e,t){return Bs(t,e.pos,e.end-e.pos)}function Us(e,t){const n=Math.max(e.start,t.start),r=Math.min(Fs(e),Fs(t));return n<=r?$s(n,r):void 0}function Vs(e){e=e.filter(e=>e.length>0).sort((e,t)=>e.start!==t.start?e.start-t.start:e.length-t.length);const t=[];let n=0;for(;n=2&&95===e.charCodeAt(0)&&95===e.charCodeAt(1)?"_"+e:e}function mc(e){const t=e;return t.length>=3&&95===t.charCodeAt(0)&&95===t.charCodeAt(1)&&95===t.charCodeAt(2)?t.substr(1):t}function gc(e){return mc(e.escapedText)}function hc(e){const t=Ea(e.escapedText);return t?tt(t,Ch):void 0}function yc(e){return e.valueDeclaration&&Kl(e.valueDeclaration)?gc(e.valueDeclaration.name):mc(e.escapedName)}function vc(e){const t=e.parent.parent;if(t){if(_u(t))return bc(t);switch(t.kind){case 244:if(t.declarationList&&t.declarationList.declarations[0])return bc(t.declarationList.declarations[0]);break;case 245:let e=t.expression;switch(227===e.kind&&64===e.operatorToken.kind&&(e=e.left),e.kind){case 212:return e.name;case 213:const t=e.argumentExpression;if(aD(t))return t}break;case 218:return bc(t.expression);case 257:if(_u(t.statement)||V_(t.statement))return bc(t.statement)}}}function bc(e){const t=Cc(e);return t&&aD(t)?t:void 0}function xc(e,t){return!(!Sc(e)||!aD(e.name)||gc(e.name)!==gc(t))||!(!WF(e)||!$(e.declarationList.declarations,e=>xc(e,t)))}function kc(e){return e.name||vc(e)}function Sc(e){return!!e.name}function Tc(e){switch(e.kind){case 80:return e;case 349:case 342:{const{name:t}=e;if(167===t.kind)return t.right;break}case 214:case 227:{const t=e;switch(tg(t)){case 1:case 4:case 5:case 3:return lg(t.left);case 7:case 8:case 9:return t.arguments[1];default:return}}case 347:return kc(e);case 341:return vc(e);case 278:{const{expression:t}=e;return aD(t)?t:void 0}case 213:const t=e;if(ag(t))return t.argumentExpression}return e.name}function Cc(e){if(void 0!==e)return Tc(e)||(vF(e)||bF(e)||AF(e)?wc(e):void 0)}function wc(e){if(e.parent){if(rP(e.parent)||lF(e.parent))return e.parent.name;if(NF(e.parent)&&e===e.parent.right){if(aD(e.parent.left))return e.parent.left;if(Sx(e.parent.left))return lg(e.parent.left)}else if(lE(e.parent)&&aD(e.parent.name))return e.parent.name}}function Nc(e){if(Lv(e))return N(e.modifiers,CD)}function Dc(e){if(Nv(e,98303))return N(e.modifiers,Zl)}function Fc(e,t){if(e.name){if(aD(e.name)){const n=e.name.escapedText;return il(e.parent,t).filter(e=>BP(e)&&aD(e.name)&&e.name.escapedText===n)}{const n=e.parent.parameters.indexOf(e);un.assert(n>-1,"Parameters should always be in their parents' parameter list");const r=il(e.parent,t).filter(BP);if(nUP(e)&&e.typeParameters.some(e=>e.name.escapedText===n))}function Ic(e){return Ac(e,!1)}function Oc(e){return Ac(e,!0)}function Lc(e){return!!al(e,BP)}function jc(e){return al(e,wP)}function Mc(e){return sl(e,HP)}function Rc(e){return al(e,DP)}function Bc(e){return al(e,EP)}function Jc(e){return al(e,EP,!0)}function zc(e){return al(e,PP)}function qc(e){return al(e,PP,!0)}function Uc(e){return al(e,AP)}function Vc(e){return al(e,AP,!0)}function Wc(e){return al(e,IP)}function $c(e){return al(e,IP,!0)}function Hc(e){return al(e,OP,!0)}function Kc(e){return al(e,jP)}function Gc(e){return al(e,jP,!0)}function Xc(e){return al(e,RP)}function Qc(e){return al(e,zP)}function Yc(e){return al(e,JP)}function Zc(e){return al(e,UP)}function el(e){return al(e,KP)}function tl(e){const t=al(e,qP);if(t&&t.typeExpression&&t.typeExpression.type)return t}function nl(e){let t=al(e,qP);return!t&&TD(e)&&(t=b(Ec(e),e=>!!e.typeExpression)),t&&t.typeExpression&&t.typeExpression.type}function rl(e){const t=Yc(e);if(t&&t.typeExpression)return t.typeExpression.type;const n=tl(e);if(n&&n.typeExpression){const e=n.typeExpression.type;if(qD(e)){const t=b(e.members,OD);return t&&t.type}if(BD(e)||bP(e))return e.type}}function il(e,t){var n;if(!Lg(e))return l;let r=null==(n=e.jsDoc)?void 0:n.jsDocCache;if(void 0===r||t){const n=jg(e,t);un.assert(n.length<2||n[0]!==n[1]),r=O(n,e=>SP(e)?e.tags:e),t||(e.jsDoc??(e.jsDoc=[]),e.jsDoc.jsDocCache=r)}return r}function ol(e){return il(e,!1)}function al(e,t,n){return b(il(e,n),t)}function sl(e,t){return ol(e).filter(t)}function cl(e,t){return ol(e).filter(e=>e.kind===t)}function ll(e){return"string"==typeof e?e:null==e?void 0:e.map(e=>{return 322===e.kind?e.text:`{@${325===(t=e).kind?"link":326===t.kind?"linkcode":"linkplain"} ${t.name?Mp(t.name):""}${t.name&&(""===t.text||t.text.startsWith("://"))?"":" "}${t.text}}`;var t}).join("")}function _l(e){if(CP(e)){if(LP(e.parent)){const t=Wg(e.parent);if(t&&u(t.tags))return O(t.tags,e=>UP(e)?e.typeParameters:void 0)}return l}if(Dg(e))return un.assert(321===e.parent.kind),O(e.parent.tags,e=>UP(e)?e.typeParameters:void 0);if(e.typeParameters)return e.typeParameters;if(WA(e)&&e.typeParameters)return e.typeParameters;if(Em(e)){const t=hv(e);if(t.length)return t;const n=nl(e);if(n&&BD(n)&&n.typeParameters)return n.typeParameters}return l}function ul(e){return e.constraint?e.constraint:UP(e.parent)&&e===e.parent.typeParameters[0]?e.parent.constraint:void 0}function dl(e){return 80===e.kind||81===e.kind}function pl(e){return 179===e.kind||178===e.kind}function fl(e){return dF(e)&&!!(64&e.flags)}function ml(e){return pF(e)&&!!(64&e.flags)}function gl(e){return fF(e)&&!!(64&e.flags)}function hl(e){const t=e.kind;return!!(64&e.flags)&&(212===t||213===t||214===t||236===t)}function yl(e){return hl(e)&&!MF(e)&&!!e.questionDotToken}function vl(e){return yl(e.parent)&&e.parent.expression===e}function bl(e){return!hl(e.parent)||yl(e.parent)||e!==e.parent.expression}function xl(e){return 227===e.kind&&61===e.operatorToken.kind}function kl(e){return RD(e)&&aD(e.typeName)&&"const"===e.typeName.escapedText&&!e.typeArguments}function Sl(e){return NA(e,8)}function Tl(e){return MF(e)&&!!(64&e.flags)}function Cl(e){return 253===e.kind||252===e.kind}function wl(e){return 281===e.kind||280===e.kind}function Nl(e){return 349===e.kind||342===e.kind}function Dl(e){return e>=167}function Fl(e){return e>=0&&e<=166}function El(e){return Fl(e.kind)}function Pl(e){return De(e,"pos")&&De(e,"end")}function Al(e){return 9<=e&&e<=15}function Il(e){return Al(e.kind)}function Ol(e){switch(e.kind){case 211:case 210:case 14:case 219:case 232:return!0}return!1}function Ll(e){return 15<=e&&e<=18}function jl(e){return Ll(e.kind)}function Ml(e){const t=e.kind;return 17===t||18===t}function Rl(e){return PE(e)||LE(e)}function Bl(e){switch(e.kind){case 277:return e.isTypeOnly||156===e.parent.parent.phaseModifier;case 275:return 156===e.parent.phaseModifier;case 274:return 156===e.phaseModifier;case 272:return e.isTypeOnly}return!1}function Jl(e){switch(e.kind){case 282:return e.isTypeOnly||e.parent.parent.isTypeOnly;case 279:return e.isTypeOnly&&!!e.moduleSpecifier&&!e.exportClause;case 281:return e.parent.isTypeOnly}return!1}function zl(e){return Bl(e)||Jl(e)}function ql(e){return void 0!==uc(e,zl)}function Ul(e){return 11===e.kind||Ll(e.kind)}function Vl(e){return UN(e)||aD(e)}function Wl(e){var t;return aD(e)&&void 0!==(null==(t=e.emitNode)?void 0:t.autoGenerate)}function $l(e){var t;return sD(e)&&void 0!==(null==(t=e.emitNode)?void 0:t.autoGenerate)}function Hl(e){const t=e.emitNode.autoGenerate.flags;return!!(32&t)&&!!(16&t)&&!!(8&t)}function Kl(e){return(ND(e)||m_(e))&&sD(e.name)}function Gl(e){return dF(e)&&sD(e.name)}function Xl(e){switch(e){case 128:case 129:case 134:case 87:case 138:case 90:case 95:case 103:case 125:case 123:case 124:case 148:case 126:case 147:case 164:return!0}return!1}function Ql(e){return!!(31&Hv(e))}function Yl(e){return Ql(e)||126===e||164===e||129===e}function Zl(e){return Xl(e.kind)}function e_(e){const t=e.kind;return 167===t||80===t}function t_(e){const t=e.kind;return 80===t||81===t||11===t||9===t||168===t}function n_(e){const t=e.kind;return 80===t||207===t||208===t}function r_(e){return!!e&&c_(e.kind)}function i_(e){return!!e&&(c_(e.kind)||ED(e))}function o_(e){return e&&s_(e.kind)}function a_(e){return 112===e.kind||97===e.kind}function s_(e){switch(e){case 263:case 175:case 177:case 178:case 179:case 219:case 220:return!0;default:return!1}}function c_(e){switch(e){case 174:case 180:case 324:case 181:case 182:case 185:case 318:case 186:return!0;default:return s_(e)}}function l_(e){return sP(e)||hE(e)||VF(e)&&r_(e.parent)}function __(e){const t=e.kind;return 177===t||173===t||175===t||178===t||179===t||182===t||176===t||241===t}function u_(e){return e&&(264===e.kind||232===e.kind)}function d_(e){return e&&(178===e.kind||179===e.kind)}function p_(e){return ND(e)&&Iv(e)}function f_(e){return Em(e)&&lC(e)?!(og(e)&&ub(e.expression)||sg(e,!0)):e.parent&&u_(e.parent)&&ND(e)&&!Iv(e)}function m_(e){switch(e.kind){case 175:case 178:case 179:return!0;default:return!1}}function g_(e){return Zl(e)||CD(e)}function h_(e){const t=e.kind;return 181===t||180===t||172===t||174===t||182===t||178===t||179===t||355===t}function y_(e){return h_(e)||__(e)}function v_(e){const t=e.kind;return 304===t||305===t||306===t||175===t||178===t||179===t}function b_(e){return kx(e.kind)}function x_(e){switch(e.kind){case 185:case 186:return!0}return!1}function k_(e){if(e){const t=e.kind;return 208===t||207===t}return!1}function S_(e){const t=e.kind;return 210===t||211===t}function T_(e){const t=e.kind;return 209===t||233===t}function C_(e){switch(e.kind){case 261:case 170:case 209:return!0}return!1}function w_(e){return lE(e)||TD(e)||F_(e)||P_(e)}function N_(e){return D_(e)||E_(e)}function D_(e){switch(e.kind){case 207:case 211:return!0}return!1}function F_(e){switch(e.kind){case 209:case 304:case 305:case 306:return!0}return!1}function E_(e){switch(e.kind){case 208:case 210:return!0}return!1}function P_(e){switch(e.kind){case 209:case 233:case 231:case 210:case 211:case 80:case 212:case 213:return!0}return rb(e,!0)}function A_(e){const t=e.kind;return 212===t||167===t||206===t}function I_(e){const t=e.kind;return 212===t||167===t}function O_(e){return L_(e)||RT(e)}function L_(e){switch(e.kind){case 214:case 215:case 216:case 171:case 287:case 286:case 290:return!0;case 227:return 104===e.operatorToken.kind;default:return!1}}function j_(e){return 214===e.kind||215===e.kind}function M_(e){const t=e.kind;return 229===t||15===t}function R_(e){return B_(Sl(e).kind)}function B_(e){switch(e){case 212:case 213:case 215:case 214:case 285:case 286:case 289:case 216:case 210:case 218:case 211:case 232:case 219:case 80:case 81:case 14:case 9:case 10:case 11:case 15:case 229:case 97:case 106:case 110:case 112:case 108:case 236:case 234:case 237:case 102:case 283:return!0;default:return!1}}function J_(e){return z_(Sl(e).kind)}function z_(e){switch(e){case 225:case 226:case 221:case 222:case 223:case 224:case 217:return!0;default:return B_(e)}}function q_(e){switch(e.kind){case 226:return!0;case 225:return 46===e.operator||47===e.operator;default:return!1}}function U_(e){switch(e.kind){case 106:case 112:case 97:case 225:return!0;default:return Il(e)}}function V_(e){return function(e){switch(e){case 228:case 230:case 220:case 227:case 231:case 235:case 233:case 357:case 356:case 239:return!0;default:return z_(e)}}(Sl(e).kind)}function W_(e){const t=e.kind;return 217===t||235===t}function $_(e,t){switch(e.kind){case 249:case 250:case 251:case 247:case 248:return!0;case 257:return t&&$_(e.statement,t)}return!1}function H_(e){return AE(e)||IE(e)}function K_(e){return $(e,H_)}function G_(e){return!(Dp(e)||AE(e)||Nv(e,32)||cp(e))}function X_(e){return Dp(e)||AE(e)||Nv(e,32)}function Q_(e){return 250===e.kind||251===e.kind}function Y_(e){return VF(e)||V_(e)}function Z_(e){return VF(e)}function eu(e){return _E(e)||V_(e)}function tu(e){const t=e.kind;return 269===t||268===t||80===t}function nu(e){const t=e.kind;return 269===t||268===t}function ru(e){const t=e.kind;return 80===t||268===t}function iu(e){const t=e.kind;return 276===t||275===t}function ou(e){return 268===e.kind||267===e.kind}function au(e){switch(e.kind){case 220:case 227:case 209:case 214:case 180:case 264:case 232:case 176:case 177:case 186:case 181:case 213:case 267:case 307:case 278:case 279:case 282:case 263:case 219:case 185:case 178:case 80:case 274:case 272:case 277:case 182:case 265:case 339:case 341:case 318:case 342:case 349:case 324:case 347:case 323:case 292:case 293:case 294:case 201:case 175:case 174:case 268:case 203:case 281:case 271:case 275:case 215:case 15:case 9:case 211:case 170:case 212:case 304:case 173:case 172:case 179:case 305:case 308:case 306:case 11:case 266:case 188:case 169:case 261:return!0;default:return!1}}function su(e){switch(e.kind){case 220:case 242:case 180:case 270:case 300:case 176:case 195:case 177:case 186:case 181:case 249:case 250:case 251:case 263:case 219:case 185:case 178:case 182:case 339:case 341:case 318:case 324:case 347:case 201:case 175:case 174:case 268:case 179:case 308:case 266:return!0;default:return!1}}function cu(e){return 263===e||283===e||264===e||265===e||266===e||267===e||268===e||273===e||272===e||279===e||278===e||271===e}function lu(e){return 253===e||252===e||260===e||247===e||245===e||243===e||250===e||251===e||249===e||246===e||257===e||254===e||256===e||258===e||259===e||244===e||248===e||255===e||354===e}function _u(e){return 169===e.kind?e.parent&&346!==e.parent.kind||Em(e):220===(t=e.kind)||209===t||264===t||232===t||176===t||177===t||267===t||307===t||282===t||263===t||219===t||178===t||274===t||272===t||277===t||265===t||292===t||175===t||174===t||268===t||271===t||275===t||281===t||170===t||304===t||173===t||172===t||179===t||305===t||266===t||169===t||261===t||347===t||339===t||349===t||203===t;var t}function uu(e){return cu(e.kind)}function du(e){return lu(e.kind)}function pu(e){const t=e.kind;return lu(t)||cu(t)||function(e){return 242===e.kind&&((void 0===e.parent||259!==e.parent.kind&&300!==e.parent.kind)&&!Bf(e))}(e)}function fu(e){const t=e.kind;return lu(t)||cu(t)||242===t}function mu(e){const t=e.kind;return 284===t||167===t||80===t}function gu(e){const t=e.kind;return 110===t||80===t||212===t||296===t}function hu(e){const t=e.kind;return 285===t||295===t||286===t||12===t||289===t}function yu(e){const t=e.kind;return 292===t||294===t}function vu(e){const t=e.kind;return 11===t||295===t}function bu(e){const t=e.kind;return 287===t||286===t}function xu(e){const t=e.kind;return 287===t||286===t||290===t}function ku(e){const t=e.kind;return 297===t||298===t}function Su(e){return e.kind>=310&&e.kind<=352}function Tu(e){return 321===e.kind||320===e.kind||322===e.kind||Mu(e)||Cu(e)||TP(e)||CP(e)}function Cu(e){return e.kind>=328&&e.kind<=352}function wu(e){return 179===e.kind}function Nu(e){return 178===e.kind}function Du(e){if(!Lg(e))return!1;const{jsDoc:t}=e;return!!t&&t.length>0}function Fu(e){return!!e.type}function Eu(e){return!!e.initializer}function Pu(e){switch(e.kind){case 261:case 170:case 209:case 173:case 304:case 307:return!0;default:return!1}}function Au(e){return 292===e.kind||294===e.kind||v_(e)}function Iu(e){return 184===e.kind||234===e.kind}var Ou=1073741823;function Lu(e){let t=Ou;for(const n of e){if(!n.length)continue;let e=0;for(;e0?n.parent.parameters[r-1]:void 0,o=t.text,a=i?K(us(o,Qa(o,i.end+1,!1,!0)),_s(o,e.pos)):us(o,Qa(o,e.pos,!1,!0));return $(a)&&Ju(ve(a),t)}return!!d(n&&yf(n,t),e=>Ju(e,t))}var qu=[],Uu="tslib",Vu=160,Wu=1e6,$u=500;function Hu(e,t){const n=e.declarations;if(n)for(const e of n)if(e.kind===t)return e}function Ku(e,t){return N(e.declarations||l,e=>e.kind===t)}function Gu(e){const t=new Map;if(e)for(const n of e)t.set(n.escapedName,n);return t}function Xu(e){return!!(33554432&e.flags)}function Qu(e){return!!(1536&e.flags)&&34===e.escapedName.charCodeAt(0)}var Yu=function(){var e="";const t=t=>e+=t;return{getText:()=>e,write:t,rawWrite:t,writeKeyword:t,writeOperator:t,writePunctuation:t,writeSpace:t,writeStringLiteral:t,writeLiteral:t,writeParameter:t,writeProperty:t,writeSymbol:(e,n)=>t(e),writeTrailingSemicolon:t,writeComment:t,getTextPos:()=>e.length,getLine:()=>0,getColumn:()=>0,getIndent:()=>0,isAtStartOfLine:()=>!1,hasTrailingComment:()=>!1,hasTrailingWhitespace:()=>!!e.length&&qa(e.charCodeAt(e.length-1)),writeLine:()=>e+=" ",increaseIndent:rt,decreaseIndent:rt,clear:()=>e=""}}();function Zu(e,t){return e.configFilePath!==t.configFilePath||function(e,t){return td(e,t,RO)}(e,t)}function ed(e,t){return td(e,t,JO)}function td(e,t,n){return e!==t&&n.some(n=>!fT($k(e,n),$k(t,n)))}function nd(e,t){for(;;){const n=t(e);if("quit"===n)return;if(void 0!==n)return n;if(sP(e))return;e=e.parent}}function rd(e,t){const n=e.entries();for(const[e,r]of n){const n=t(r,e);if(n)return n}}function id(e,t){const n=e.keys();for(const e of n){const n=t(e);if(n)return n}}function od(e,t){e.forEach((e,n)=>{t.set(n,e)})}function ad(e){const t=Yu.getText();try{return e(Yu),Yu.getText()}finally{Yu.clear(),Yu.writeKeyword(t)}}function sd(e){return e.end-e.pos}function cd(e,t){return e.path===t.path&&!e.prepend==!t.prepend&&!e.circular==!t.circular}function ld(e,t){return e===t||e.resolvedModule===t.resolvedModule||!!e.resolvedModule&&!!t.resolvedModule&&e.resolvedModule.isExternalLibraryImport===t.resolvedModule.isExternalLibraryImport&&e.resolvedModule.extension===t.resolvedModule.extension&&e.resolvedModule.resolvedFileName===t.resolvedModule.resolvedFileName&&e.resolvedModule.originalPath===t.resolvedModule.originalPath&&((n=e.resolvedModule.packageId)===(r=t.resolvedModule.packageId)||!!n&&!!r&&n.name===r.name&&n.subModuleName===r.subModuleName&&n.version===r.version&&n.peerDependencies===r.peerDependencies)&&e.alternateResult===t.alternateResult;var n,r}function _d(e){return e.resolvedModule}function ud(e){return e.resolvedTypeReferenceDirective}function dd(e,t,n,r,i){var o;const a=null==(o=t.getResolvedModule(e,n,r))?void 0:o.alternateResult,s=a&&(2===bk(t.getCompilerOptions())?[_a.There_are_types_at_0_but_this_result_could_not_be_resolved_under_your_current_moduleResolution_setting_Consider_updating_to_node16_nodenext_or_bundler,[a]]:[_a.There_are_types_at_0_but_this_result_could_not_be_resolved_when_respecting_package_json_exports_The_1_library_may_need_to_update_its_package_json_or_typings,[a,a.includes(KM+"@types/")?`@types/${PR(i)}`:i]]),c=s?Zx(void 0,s[0],...s[1]):t.typesPackageExists(i)?Zx(void 0,_a.If_the_0_package_actually_exposes_this_module_consider_sending_a_pull_request_to_amend_https_Colon_Slash_Slashgithub_com_SlashDefinitelyTyped_SlashDefinitelyTyped_Slashtree_Slashmaster_Slashtypes_Slash_1,i,PR(i)):t.packageBundlesTypes(i)?Zx(void 0,_a.If_the_0_package_actually_exposes_this_module_try_adding_a_new_declaration_d_ts_file_containing_declare_module_1,i,n):Zx(void 0,_a.Try_npm_i_save_dev_types_Slash_1_if_it_exists_or_add_a_new_declaration_d_ts_file_containing_declare_module_0,n,PR(i));return c&&(c.repopulateInfo=()=>({moduleReference:n,mode:r,packageName:i===n?void 0:i})),c}function pd(e){const t=tT(e.fileName),n=e.packageJsonScope,r=".ts"===t?".mts":".js"===t?".mjs":void 0,i=n&&!n.contents.packageJsonContent.type?r?Zx(void 0,_a.To_convert_this_file_to_an_ECMAScript_module_change_its_file_extension_to_0_or_add_the_field_type_Colon_module_to_1,r,jo(n.packageDirectory,"package.json")):Zx(void 0,_a.To_convert_this_file_to_an_ECMAScript_module_add_the_field_type_Colon_module_to_0,jo(n.packageDirectory,"package.json")):r?Zx(void 0,_a.To_convert_this_file_to_an_ECMAScript_module_change_its_file_extension_to_0_or_create_a_local_package_json_file_with_type_Colon_module,r):Zx(void 0,_a.To_convert_this_file_to_an_ECMAScript_module_create_a_local_package_json_file_with_type_Colon_module);return i.repopulateInfo=()=>!0,i}function fd({name:e,subModuleName:t}){return t?`${e}/${t}`:e}function md(e){return`${fd(e)}@${e.version}${e.peerDependencies??""}`}function gd(e,t){return e===t||e.resolvedTypeReferenceDirective===t.resolvedTypeReferenceDirective||!!e.resolvedTypeReferenceDirective&&!!t.resolvedTypeReferenceDirective&&e.resolvedTypeReferenceDirective.resolvedFileName===t.resolvedTypeReferenceDirective.resolvedFileName&&!!e.resolvedTypeReferenceDirective.primary==!!t.resolvedTypeReferenceDirective.primary&&e.resolvedTypeReferenceDirective.originalPath===t.resolvedTypeReferenceDirective.originalPath}function hd(e,t,n,r){un.assert(e.length===t.length);for(let i=0;i=0),Ma(t)[e]}function Td(e){const t=vd(e),n=za(t,e.pos);return`${t.fileName}(${n.line+1},${n.character+1})`}function Cd(e,t){un.assert(e>=0);const n=Ma(t),r=e,i=t.text;if(r+1===n.length)return i.length-1;{const e=n[r];let t=n[r+1]-1;for(un.assert(Va(i.charCodeAt(t)));e<=t&&Va(i.charCodeAt(t));)t--;return t}}function wd(e,t,n){return!(n&&n(t)||e.identifiers.has(t))}function Nd(e){return void 0===e||e.pos===e.end&&e.pos>=0&&1!==e.kind}function Dd(e){return!Nd(e)}function Fd(e,t){return SD(e)?t===e.expression:ED(e)?t===e.modifiers:wD(e)?t===e.initializer:ND(e)?t===e.questionToken&&p_(e):rP(e)?t===e.modifiers||t===e.questionToken||t===e.exclamationToken||Ed(e.modifiers,t,g_):iP(e)?t===e.equalsToken||t===e.modifiers||t===e.questionToken||t===e.exclamationToken||Ed(e.modifiers,t,g_):FD(e)?t===e.exclamationToken:PD(e)?t===e.typeParameters||t===e.type||Ed(e.typeParameters,t,SD):AD(e)?t===e.typeParameters||Ed(e.typeParameters,t,SD):ID(e)?t===e.typeParameters||t===e.type||Ed(e.typeParameters,t,SD):!!vE(e)&&(t===e.modifiers||Ed(e.modifiers,t,g_))}function Ed(e,t,n){return!(!e||Qe(t)||!n(t))&&T(e,t)}function Pd(e,t,n){if(void 0===t||0===t.length)return e;let r=0;for(;r[`${za(e,t.range.end).line}`,t])),r=new Map;return{getUnusedExpectations:function(){return Oe(n.entries()).filter(([e,t])=>0===t.type&&!r.get(e)).map(([e,t])=>t)},markUsed:function(e){return!!n.has(`${e}`)&&(r.set(`${e}`,!0),!0)}}}function zd(e,t,n){if(Nd(e))return e.pos;if(Su(e)||12===e.kind)return Qa((t??vd(e)).text,e.pos,!1,!0);if(n&&Du(e))return zd(e.jsDoc[0],t);if(353===e.kind){t??(t=vd(e));const r=fe(eA(e,t));if(r)return zd(r,t,n)}return Qa((t??vd(e)).text,e.pos,!1,!1,Im(e))}function qd(e,t){const n=!Nd(e)&&kI(e)?x(e.modifiers,CD):void 0;return n?Qa((t||vd(e)).text,n.end):zd(e,t)}function Ud(e,t){const n=!Nd(e)&&kI(e)&&e.modifiers?ve(e.modifiers):void 0;return n?Qa((t||vd(e)).text,n.end):zd(e,t)}function Vd(e,t,n=!1){return Gd(e.text,t,n)}function Wd(e){return!!(IE(e)&&e.exportClause&&FE(e.exportClause)&&Kd(e.exportClause.name))}function $d(e){return 11===e.kind?e.text:mc(e.escapedText)}function Hd(e){return 11===e.kind?fc(e.text):e.escapedText}function Kd(e){return"default"===(11===e.kind?e.text:e.escapedText)}function Gd(e,t,n=!1){if(Nd(t))return"";let r=e.substring(n?t.pos:Qa(e,t.pos),t.end);return function(e){return!!uc(e,lP)}(t)&&(r=r.split(/\r\n|\n|\r/).map(e=>e.replace(/^\s*\*/,"").trimStart()).join("\n")),r}function Xd(e,t=!1){return Vd(vd(e),e,t)}function Qd(e){return e.pos}function Yd(e,t){return Te(e,t,Qd,vt)}function Zd(e){const t=e.emitNode;return t&&t.flags||0}function ep(e){const t=e.emitNode;return t&&t.internalFlags||0}var tp=dt(()=>new Map(Object.entries({Array:new Map(Object.entries({es2015:["find","findIndex","fill","copyWithin","entries","keys","values"],es2016:["includes"],es2019:["flat","flatMap"],es2022:["at"],es2023:["findLastIndex","findLast","toReversed","toSorted","toSpliced","with"]})),Iterator:new Map(Object.entries({es2015:l})),AsyncIterator:new Map(Object.entries({es2015:l})),ArrayBuffer:new Map(Object.entries({es2024:["maxByteLength","resizable","resize","detached","transfer","transferToFixedLength"]})),Atomics:new Map(Object.entries({es2017:["add","and","compareExchange","exchange","isLockFree","load","or","store","sub","wait","notify","xor"],es2024:["waitAsync"],esnext:["pause"]})),SharedArrayBuffer:new Map(Object.entries({es2017:["byteLength","slice"],es2024:["growable","maxByteLength","grow"]})),AsyncIterable:new Map(Object.entries({es2018:l})),AsyncIterableIterator:new Map(Object.entries({es2018:l})),AsyncGenerator:new Map(Object.entries({es2018:l})),AsyncGeneratorFunction:new Map(Object.entries({es2018:l})),RegExp:new Map(Object.entries({es2015:["flags","sticky","unicode"],es2018:["dotAll"],es2024:["unicodeSets"]})),Reflect:new Map(Object.entries({es2015:["apply","construct","defineProperty","deleteProperty","get","getOwnPropertyDescriptor","getPrototypeOf","has","isExtensible","ownKeys","preventExtensions","set","setPrototypeOf"]})),ArrayConstructor:new Map(Object.entries({es2015:["from","of"],esnext:["fromAsync"]})),ObjectConstructor:new Map(Object.entries({es2015:["assign","getOwnPropertySymbols","keys","is","setPrototypeOf"],es2017:["values","entries","getOwnPropertyDescriptors"],es2019:["fromEntries"],es2022:["hasOwn"],es2024:["groupBy"]})),NumberConstructor:new Map(Object.entries({es2015:["isFinite","isInteger","isNaN","isSafeInteger","parseFloat","parseInt"]})),Math:new Map(Object.entries({es2015:["clz32","imul","sign","log10","log2","log1p","expm1","cosh","sinh","tanh","acosh","asinh","atanh","hypot","trunc","fround","cbrt"],esnext:["f16round"]})),Map:new Map(Object.entries({es2015:["entries","keys","values"]})),MapConstructor:new Map(Object.entries({es2024:["groupBy"]})),Set:new Map(Object.entries({es2015:["entries","keys","values"],esnext:["union","intersection","difference","symmetricDifference","isSubsetOf","isSupersetOf","isDisjointFrom"]})),PromiseConstructor:new Map(Object.entries({es2015:["all","race","reject","resolve"],es2020:["allSettled"],es2021:["any"],es2024:["withResolvers"]})),Symbol:new Map(Object.entries({es2015:["for","keyFor"],es2019:["description"]})),WeakMap:new Map(Object.entries({es2015:["entries","keys","values"]})),WeakSet:new Map(Object.entries({es2015:["entries","keys","values"]})),String:new Map(Object.entries({es2015:["codePointAt","includes","endsWith","normalize","repeat","startsWith","anchor","big","blink","bold","fixed","fontcolor","fontsize","italics","link","small","strike","sub","sup"],es2017:["padStart","padEnd"],es2019:["trimStart","trimEnd","trimLeft","trimRight"],es2020:["matchAll"],es2021:["replaceAll"],es2022:["at"],es2024:["isWellFormed","toWellFormed"]})),StringConstructor:new Map(Object.entries({es2015:["fromCodePoint","raw"]})),DateTimeFormat:new Map(Object.entries({es2017:["formatToParts"]})),Promise:new Map(Object.entries({es2015:l,es2018:["finally"]})),RegExpMatchArray:new Map(Object.entries({es2018:["groups"]})),RegExpExecArray:new Map(Object.entries({es2018:["groups"]})),Intl:new Map(Object.entries({es2018:["PluralRules"]})),NumberFormat:new Map(Object.entries({es2018:["formatToParts"]})),SymbolConstructor:new Map(Object.entries({es2020:["matchAll"],esnext:["metadata","dispose","asyncDispose"]})),DataView:new Map(Object.entries({es2020:["setBigInt64","setBigUint64","getBigInt64","getBigUint64"],esnext:["setFloat16","getFloat16"]})),BigInt:new Map(Object.entries({es2020:l})),RelativeTimeFormat:new Map(Object.entries({es2020:["format","formatToParts","resolvedOptions"]})),Int8Array:new Map(Object.entries({es2022:["at"],es2023:["findLastIndex","findLast","toReversed","toSorted","toSpliced","with"]})),Uint8Array:new Map(Object.entries({es2022:["at"],es2023:["findLastIndex","findLast","toReversed","toSorted","toSpliced","with"]})),Uint8ClampedArray:new Map(Object.entries({es2022:["at"],es2023:["findLastIndex","findLast","toReversed","toSorted","toSpliced","with"]})),Int16Array:new Map(Object.entries({es2022:["at"],es2023:["findLastIndex","findLast","toReversed","toSorted","toSpliced","with"]})),Uint16Array:new Map(Object.entries({es2022:["at"],es2023:["findLastIndex","findLast","toReversed","toSorted","toSpliced","with"]})),Int32Array:new Map(Object.entries({es2022:["at"],es2023:["findLastIndex","findLast","toReversed","toSorted","toSpliced","with"]})),Uint32Array:new Map(Object.entries({es2022:["at"],es2023:["findLastIndex","findLast","toReversed","toSorted","toSpliced","with"]})),Float16Array:new Map(Object.entries({esnext:l})),Float32Array:new Map(Object.entries({es2022:["at"],es2023:["findLastIndex","findLast","toReversed","toSorted","toSpliced","with"]})),Float64Array:new Map(Object.entries({es2022:["at"],es2023:["findLastIndex","findLast","toReversed","toSorted","toSpliced","with"]})),BigInt64Array:new Map(Object.entries({es2020:l,es2022:["at"],es2023:["findLastIndex","findLast","toReversed","toSorted","toSpliced","with"]})),BigUint64Array:new Map(Object.entries({es2020:l,es2022:["at"],es2023:["findLastIndex","findLast","toReversed","toSorted","toSpliced","with"]})),Error:new Map(Object.entries({es2022:["cause"]}))}))),np=(e=>(e[e.None=0]="None",e[e.NeverAsciiEscape=1]="NeverAsciiEscape",e[e.JsxAttributeEscape=2]="JsxAttributeEscape",e[e.TerminateUnterminatedLiterals=4]="TerminateUnterminatedLiterals",e[e.AllowNumericSeparator=8]="AllowNumericSeparator",e))(np||{});function rp(e,t,n){if(t&&function(e,t){if(ey(e)||!e.parent||4&t&&e.isUnterminated)return!1;if(zN(e)){if(26656&e.numericLiteralFlags)return!1;if(512&e.numericLiteralFlags)return!!(8&t)}return!qN(e)}(e,n))return Vd(t,e);switch(e.kind){case 11:{const t=2&n?Dy:1&n||16777216&Zd(e)?xy:Sy;return e.singleQuote?"'"+t(e.text,39)+"'":'"'+t(e.text,34)+'"'}case 15:case 16:case 17:case 18:{const t=1&n||16777216&Zd(e)?xy:Sy,r=e.rawText??dy(t(e.text,96));switch(e.kind){case 15:return"`"+r+"`";case 16:return"`"+r+"${";case 17:return"}"+r+"${";case 18:return"}"+r+"`"}break}case 9:case 10:return e.text;case 14:return 4&n&&e.isUnterminated?e.text+(92===e.text.charCodeAt(e.text.length-1)?" /":"/"):e.text}return un.fail(`Literal kind '${e.kind}' not accounted for.`)}function ip(e){return Ze(e)?`"${xy(e)}"`:""+e}function op(e){return Fo(e).replace(/^(\d)/,"_$1").replace(/\W/g,"_")}function ap(e){return!!(7&ac(e))||sp(e)}function sp(e){const t=Yh(e);return 261===t.kind&&300===t.parent.kind}function cp(e){return gE(e)&&(11===e.name.kind||pp(e))}function lp(e){return gE(e)&&11===e.name.kind}function _p(e){return gE(e)&&UN(e.name)}function up(e){return!!(t=e.valueDeclaration)&&268===t.kind&&!t.body;var t}function dp(e){return 308===e.kind||268===e.kind||i_(e)}function pp(e){return!!(2048&e.flags)}function fp(e){return cp(e)&&mp(e)}function mp(e){switch(e.parent.kind){case 308:return rO(e.parent);case 269:return cp(e.parent.parent)&&sP(e.parent.parent.parent)&&!rO(e.parent.parent.parent)}return!1}function gp(e){var t;return null==(t=e.declarations)?void 0:t.find(e=>!(fp(e)||gE(e)&&pp(e)))}function hp(e,t){return rO(e)||(1===(n=vk(t))||100<=n&&n<=199)&&!!e.commonJsModuleIndicator;var n}function yp(e,t){switch(e.scriptKind){case 1:case 3:case 2:case 4:break;default:return!1}return!(e.isDeclarationFile||!Jk(t,"alwaysStrict")&&!xA(e.statements)&&!rO(e)&&!kk(t))}function vp(e){return!!(33554432&e.flags)||Nv(e,128)}function bp(e,t){switch(e.kind){case 308:case 270:case 300:case 268:case 249:case 250:case 251:case 177:case 175:case 178:case 179:case 263:case 219:case 220:case 173:case 176:return!0;case 242:return!i_(t)}return!1}function xp(e){switch(un.type(e),e.kind){case 339:case 347:case 324:return!0;default:return kp(e)}}function kp(e){switch(un.type(e),e.kind){case 180:case 181:case 174:case 182:case 185:case 186:case 318:case 264:case 232:case 265:case 266:case 346:case 263:case 175:case 177:case 178:case 179:case 219:case 220:return!0;default:return!1}}function Sp(e){switch(e.kind){case 273:case 272:return!0;default:return!1}}function Tp(e){return Sp(e)||Mm(e)}function Cp(e){return Sp(e)||Jm(e)}function wp(e){switch(e.kind){case 273:case 272:case 244:case 264:case 263:case 268:case 266:case 265:case 267:return!0;default:return!1}}function Np(e){return Dp(e)||gE(e)||iF(e)||_f(e)}function Dp(e){return Sp(e)||IE(e)}function Fp(e){return uc(e.parent,e=>!!(1&ZR(e)))}function Ep(e){return uc(e.parent,e=>bp(e,e.parent))}function Pp(e,t){let n=Ep(e);for(;n;)t(n),n=Ep(n)}function Ap(e){return e&&0!==sd(e)?Xd(e):"(Missing)"}function Ip(e){return e.declaration?Ap(e.declaration.parameters[0].name):void 0}function Op(e){return 168===e.kind&&!jh(e.expression)}function Lp(e){var t;switch(e.kind){case 80:case 81:return(null==(t=e.emitNode)?void 0:t.autoGenerate)?void 0:e.escapedText;case 11:case 9:case 10:case 15:return fc(e.text);case 168:return jh(e.expression)?fc(e.expression.text):void 0;case 296:return iC(e);default:return un.assertNever(e)}}function jp(e){return un.checkDefined(Lp(e))}function Mp(e){switch(e.kind){case 110:return"this";case 81:case 80:return 0===sd(e)?gc(e):Xd(e);case 167:return Mp(e.left)+"."+Mp(e.right);case 212:return aD(e.name)||sD(e.name)?Mp(e.expression)+"."+Mp(e.name):un.assertNever(e.name);case 312:return Mp(e.left)+"#"+Mp(e.right);case 296:return Mp(e.namespace)+":"+Mp(e.name);default:return un.assertNever(e)}}function Rp(e,t,...n){return Jp(vd(e),e,t,...n)}function Bp(e,t,n,...r){const i=Qa(e.text,t.pos);return Gx(e,i,t.end-i,n,...r)}function Jp(e,t,n,...r){const i=Qp(e,t);return Gx(e,i.start,i.length,n,...r)}function zp(e,t,n,r){const i=Qp(e,t);return Vp(e,i.start,i.length,n,r)}function qp(e,t,n,r){const i=Qa(e.text,t.pos);return Vp(e,i,t.end-i,n,r)}function Up(e,t,n){un.assertGreaterThanOrEqual(t,0),un.assertGreaterThanOrEqual(n,0),un.assertLessThanOrEqual(t,e.length),un.assertLessThanOrEqual(t+n,e.length)}function Vp(e,t,n,r,i){return Up(e.text,t,n),{file:e,start:t,length:n,code:r.code,category:r.category,messageText:r.next?r:r.messageText,relatedInformation:i,canonicalHead:r.canonicalHead}}function Wp(e,t,n){return{file:e,start:0,length:0,code:t.code,category:t.category,messageText:t.next?t:t.messageText,relatedInformation:n}}function $p(e){return"string"==typeof e.messageText?{code:e.code,category:e.category,messageText:e.messageText,next:e.next}:e.messageText}function Hp(e,t,n){return{file:e,start:t.pos,length:t.end-t.pos,code:n.code,category:n.category,messageText:n.message}}function Kp(e,...t){return{code:e.code,messageText:Xx(e,...t)}}function Gp(e,t){const n=gs(e.languageVersion,!0,e.languageVariant,e.text,void 0,t);return n.scan(),$s(n.getTokenStart(),n.getTokenEnd())}function Xp(e,t){const n=gs(e.languageVersion,!0,e.languageVariant,e.text,void 0,t);return n.scan(),n.getToken()}function Qp(e,t){let n=t;switch(t.kind){case 308:{const t=Qa(e.text,0,!1);return t===e.text.length?Ws(0,0):Gp(e,t)}case 261:case 209:case 264:case 232:case 265:case 268:case 267:case 307:case 263:case 219:case 175:case 178:case 179:case 266:case 173:case 172:case 275:n=t.name;break;case 220:return function(e,t){const n=Qa(e.text,t.pos);if(t.body&&242===t.body.kind){const{line:r}=za(e,t.body.pos),{line:i}=za(e,t.body.end);if(r0?t.statements[0].pos:t.end);case 254:case 230:return Gp(e,Qa(e.text,t.pos));case 239:return Gp(e,Qa(e.text,t.expression.end));case 351:return Gp(e,Qa(e.text,t.tagName.pos));case 177:{const n=t,r=Qa(e.text,n.pos),i=gs(e.languageVersion,!0,e.languageVariant,e.text,void 0,r);let o=i.scan();for(;137!==o&&1!==o;)o=i.scan();return $s(r,i.getTokenEnd())}}if(void 0===n)return Gp(e,t.pos);un.assert(!SP(n));const r=Nd(n),i=r||VN(t)?n.pos:Qa(e.text,n.pos);return r?(un.assert(i===n.pos,"This failure could trigger https://github.com/Microsoft/TypeScript/issues/20809"),un.assert(i===n.end,"This failure could trigger https://github.com/Microsoft/TypeScript/issues/20809")):(un.assert(i>=n.pos,"This failure could trigger https://github.com/Microsoft/TypeScript/issues/20809"),un.assert(i<=n.end,"This failure could trigger https://github.com/Microsoft/TypeScript/issues/20809")),$s(i,n.end)}function Yp(e){return 308===e.kind&&!Zp(e)}function Zp(e){return void 0!==(e.externalModuleIndicator||e.commonJsModuleIndicator)}function ef(e){return 6===e.scriptKind}function tf(e){return!!(4096&ic(e))}function nf(e){return!(!(8&ic(e))||Zs(e,e.parent))}function rf(e){return 6==(7&ac(e))}function of(e){return 4==(7&ac(e))}function af(e){return 2==(7&ac(e))}function sf(e){const t=7&ac(e);return 2===t||4===t||6===t}function cf(e){return 1==(7&ac(e))}function lf(e){return 214===e.kind&&108===e.expression.kind}function _f(e){if(214!==e.kind)return!1;const t=e.expression;return 102===t.kind||RF(t)&&102===t.keywordToken&&"defer"===t.name.escapedText}function uf(e){return RF(e)&&102===e.keywordToken&&"meta"===e.name.escapedText}function df(e){return iF(e)&&rF(e.argument)&&UN(e.argument.literal)}function pf(e){return 245===e.kind&&11===e.expression.kind}function ff(e){return!!(2097152&Zd(e))}function mf(e){return ff(e)&&uE(e)}function gf(e){return aD(e.name)&&!e.initializer}function hf(e){return ff(e)&&WF(e)&&v(e.declarationList.declarations,gf)}function yf(e,t){return 12!==e.kind?_s(t.text,e.pos):void 0}function vf(e,t){return N(170===e.kind||169===e.kind||219===e.kind||220===e.kind||218===e.kind||261===e.kind||282===e.kind?K(us(t,e.pos),_s(t,e.pos)):_s(t,e.pos),n=>n.end<=e.end&&42===t.charCodeAt(n.pos+1)&&42===t.charCodeAt(n.pos+2)&&47!==t.charCodeAt(n.pos+3))}var bf=/^\/\/\/\s*/,xf=/^\/\/\/\s*/,kf=/^\/\/\/\s*/,Sf=/^\/\/\/\s*/,Tf=/^\/\/\/\s*/,Cf=/^\/\/\/\s*/;function wf(e){if(183<=e.kind&&e.kind<=206)return!0;switch(e.kind){case 133:case 159:case 150:case 163:case 154:case 136:case 155:case 151:case 157:case 106:case 146:return!0;case 116:return 223!==e.parent.kind;case 234:return Nf(e);case 169:return 201===e.parent.kind||196===e.parent.kind;case 80:(167===e.parent.kind&&e.parent.right===e||212===e.parent.kind&&e.parent.name===e)&&(e=e.parent),un.assert(80===e.kind||167===e.kind||212===e.kind,"'node' was expected to be a qualified name, identifier or property access in 'isPartOfTypeNode'.");case 167:case 212:case 110:{const{parent:t}=e;if(187===t.kind)return!1;if(206===t.kind)return!t.isTypeOf;if(183<=t.kind&&t.kind<=206)return!0;switch(t.kind){case 234:return Nf(t);case 169:case 346:return e===t.constraint;case 173:case 172:case 170:case 261:case 263:case 219:case 220:case 177:case 175:case 174:case 178:case 179:case 180:case 181:case 182:case 217:return e===t.type;case 214:case 215:case 216:return T(t.typeArguments,e)}}}return!1}function Nf(e){return HP(e.parent)||wP(e.parent)||tP(e.parent)&&!ob(e)}function Df(e,t){return function e(n){switch(n.kind){case 254:return t(n);case 270:case 242:case 246:case 247:case 248:case 249:case 250:case 251:case 255:case 256:case 297:case 298:case 257:case 259:case 300:return XI(n,e)}}(e)}function Ff(e,t){return function e(n){switch(n.kind){case 230:t(n);const r=n.expression;return void(r&&e(r));case 267:case 265:case 268:case 266:return;default:if(r_(n)){if(n.name&&168===n.name.kind)return void e(n.name.expression)}else wf(n)||XI(n,e)}}(e)}function Ef(e){return e&&189===e.kind?e.elementType:e&&184===e.kind?be(e.typeArguments):void 0}function Pf(e){switch(e.kind){case 265:case 264:case 232:case 188:return e.members;case 211:return e.properties}}function Af(e){if(e)switch(e.kind){case 209:case 307:case 170:case 304:case 173:case 172:case 305:case 261:return!0}return!1}function If(e){return 262===e.parent.kind&&244===e.parent.parent.kind}function Of(e){return!!Em(e)&&(uF(e.parent)&&NF(e.parent.parent)&&2===tg(e.parent.parent)||Lf(e.parent))}function Lf(e){return!!Em(e)&&NF(e)&&1===tg(e)}function jf(e){return(lE(e)?af(e)&&aD(e.name)&&If(e):ND(e)?Ov(e)&&Fv(e):wD(e)&&Ov(e))||Lf(e)}function Mf(e){switch(e.kind){case 175:case 174:case 177:case 178:case 179:case 263:case 219:return!0}return!1}function Rf(e,t){for(;;){if(t&&t(e),257!==e.statement.kind)return e.statement;e=e.statement}}function Bf(e){return e&&242===e.kind&&r_(e.parent)}function Jf(e){return e&&175===e.kind&&211===e.parent.kind}function zf(e){return!(175!==e.kind&&178!==e.kind&&179!==e.kind||211!==e.parent.kind&&232!==e.parent.kind)}function qf(e){return e&&1===e.kind}function Uf(e){return e&&0===e.kind}function Vf(e,t,n,r){return d(null==e?void 0:e.properties,e=>{if(!rP(e))return;const i=Lp(e.name);return t===i||r&&r===i?n(e):void 0})}function Wf(e){if(e&&e.statements.length)return tt(e.statements[0].expression,uF)}function $f(e,t,n){return Hf(e,t,e=>_F(e.initializer)?b(e.initializer.elements,e=>UN(e)&&e.text===n):void 0)}function Hf(e,t,n){return Vf(Wf(e),t,n)}function Kf(e){return uc(e.parent,r_)}function Gf(e){return uc(e.parent,o_)}function Xf(e){return uc(e.parent,u_)}function Qf(e){return uc(e.parent,e=>u_(e)||r_(e)?"quit":ED(e))}function Yf(e){return uc(e.parent,i_)}function Zf(e){const t=uc(e.parent,e=>u_(e)?"quit":CD(e));return t&&u_(t.parent)?Xf(t.parent):Xf(t??e)}function em(e,t,n){for(un.assert(308!==e.kind);;){if(!(e=e.parent))return un.fail();switch(e.kind){case 168:if(n&&u_(e.parent.parent))return e;e=e.parent.parent;break;case 171:170===e.parent.kind&&__(e.parent.parent)?e=e.parent.parent:__(e.parent)&&(e=e.parent);break;case 220:if(!t)continue;case 263:case 219:case 268:case 176:case 173:case 172:case 175:case 174:case 177:case 178:case 179:case 180:case 181:case 182:case 267:case 308:return e}}}function tm(e){switch(e.kind){case 220:case 263:case 219:case 173:return!0;case 242:switch(e.parent.kind){case 177:case 175:case 178:case 179:return!0;default:return!1}default:return!1}}function nm(e){return aD(e)&&(dE(e.parent)||uE(e.parent))&&e.parent.name===e&&(e=e.parent),sP(em(e,!0,!1))}function rm(e){const t=em(e,!1,!1);if(t)switch(t.kind){case 177:case 263:case 219:return t}}function im(e,t){for(;;){if(!(e=e.parent))return;switch(e.kind){case 168:e=e.parent;break;case 263:case 219:case 220:if(!t)continue;case 173:case 172:case 175:case 174:case 177:case 178:case 179:case 176:return e;case 171:170===e.parent.kind&&__(e.parent.parent)?e=e.parent.parent:__(e.parent)&&(e=e.parent)}}}function om(e){if(219===e.kind||220===e.kind){let t=e,n=e.parent;for(;218===n.kind;)t=n,n=n.parent;if(214===n.kind&&n.expression===t)return n}}function am(e){const t=e.kind;return(212===t||213===t)&&108===e.expression.kind}function sm(e){const t=e.kind;return(212===t||213===t)&&110===e.expression.kind}function cm(e){var t;return!!e&&lE(e)&&110===(null==(t=e.initializer)?void 0:t.kind)}function lm(e){return!!e&&(iP(e)||rP(e))&&NF(e.parent.parent)&&64===e.parent.parent.operatorToken.kind&&110===e.parent.parent.right.kind}function _m(e){switch(e.kind){case 184:return e.typeName;case 234:return ab(e.expression)?e.expression:void 0;case 80:case 167:return e}}function um(e){switch(e.kind){case 216:return e.tag;case 287:case 286:return e.tagName;case 227:return e.right;case 290:return e;default:return e.expression}}function dm(e,t,n,r){if(e&&Sc(t)&&sD(t.name))return!1;switch(t.kind){case 264:return!0;case 232:return!e;case 173:return void 0!==n&&(e?dE(n):u_(n)&&!Pv(t)&&!Av(t));case 178:case 179:case 175:return void 0!==t.body&&void 0!==n&&(e?dE(n):u_(n));case 170:return!!e&&void 0!==n&&void 0!==n.body&&(177===n.kind||175===n.kind||179===n.kind)&&sv(n)!==t&&void 0!==r&&264===r.kind}return!1}function pm(e,t,n,r){return Lv(t)&&dm(e,t,n,r)}function fm(e,t,n,r){return pm(e,t,n,r)||mm(e,t,n)}function mm(e,t,n){switch(t.kind){case 264:return $(t.members,r=>fm(e,r,t,n));case 232:return!e&&$(t.members,r=>fm(e,r,t,n));case 175:case 179:case 177:return $(t.parameters,r=>pm(e,r,t,n));default:return!1}}function gm(e,t){if(pm(e,t))return!0;const n=iv(t);return!!n&&mm(e,n,t)}function hm(e,t,n){let r;if(d_(t)){const{firstAccessor:e,secondAccessor:i,setAccessor:o}=pv(n.members,t),a=Lv(e)?e:i&&Lv(i)?i:void 0;if(!a||t!==a)return!1;r=null==o?void 0:o.parameters}else FD(t)&&(r=t.parameters);if(pm(e,t,n))return!0;if(r)for(const i of r)if(!cv(i)&&pm(e,i,t,n))return!0;return!1}function ym(e){if(e.textSourceNode){switch(e.textSourceNode.kind){case 11:return ym(e.textSourceNode);case 15:return""===e.text}return!1}return""===e.text}function vm(e){const{parent:t}=e;return(287===t.kind||286===t.kind||288===t.kind)&&t.tagName===e}function bm(e){switch(e.kind){case 108:case 106:case 112:case 97:case 14:case 210:case 211:case 212:case 213:case 214:case 215:case 216:case 235:case 217:case 239:case 236:case 218:case 219:case 232:case 220:case 223:case 221:case 222:case 225:case 226:case 227:case 228:case 231:case 229:case 233:case 285:case 286:case 289:case 230:case 224:return!0;case 237:return!_f(e.parent)||e.parent.expression!==e;case 234:return!tP(e.parent)&&!wP(e.parent);case 167:for(;167===e.parent.kind;)e=e.parent;return 187===e.parent.kind||Mu(e.parent)||_P(e.parent)||uP(e.parent)||vm(e);case 312:for(;uP(e.parent);)e=e.parent;return 187===e.parent.kind||Mu(e.parent)||_P(e.parent)||uP(e.parent)||vm(e);case 81:return NF(e.parent)&&e.parent.left===e&&103===e.parent.operatorToken.kind;case 80:if(187===e.parent.kind||Mu(e.parent)||_P(e.parent)||uP(e.parent)||vm(e))return!0;case 9:case 10:case 11:case 15:case 110:return xm(e);default:return!1}}function xm(e){const{parent:t}=e;switch(t.kind){case 261:case 170:case 173:case 172:case 307:case 304:case 209:return t.initializer===e;case 245:case 246:case 247:case 248:case 254:case 255:case 256:case 297:case 258:return t.expression===e;case 249:const n=t;return n.initializer===e&&262!==n.initializer.kind||n.condition===e||n.incrementor===e;case 250:case 251:const r=t;return r.initializer===e&&262!==r.initializer.kind||r.expression===e;case 217:case 235:case 240:case 168:case 239:return e===t.expression;case 171:case 295:case 294:case 306:return!0;case 234:return t.expression===e&&!wf(t);case 305:return t.objectAssignmentInitializer===e;default:return bm(t)}}function km(e){for(;167===e.kind||80===e.kind;)e=e.parent;return 187===e.kind}function Sm(e){return FE(e)&&!!e.parent.moduleSpecifier}function Tm(e){return 272===e.kind&&284===e.moduleReference.kind}function Cm(e){return un.assert(Tm(e)),e.moduleReference.expression}function wm(e){return Mm(e)&&wx(e.initializer).arguments[0]}function Nm(e){return 272===e.kind&&284!==e.moduleReference.kind}function Dm(e){return 308===(null==e?void 0:e.kind)}function Fm(e){return Em(e)}function Em(e){return!!e&&!!(524288&e.flags)}function Pm(e){return!!e&&!!(134217728&e.flags)}function Am(e){return!ef(e)}function Im(e){return!!e&&!!(16777216&e.flags)}function Om(e){return RD(e)&&aD(e.typeName)&&"Object"===e.typeName.escapedText&&e.typeArguments&&2===e.typeArguments.length&&(154===e.typeArguments[0].kind||150===e.typeArguments[0].kind)}function Lm(e,t){if(214!==e.kind)return!1;const{expression:n,arguments:r}=e;if(80!==n.kind||"require"!==n.escapedText)return!1;if(1!==r.length)return!1;const i=r[0];return!t||ju(i)}function jm(e){return Bm(e,!1)}function Mm(e){return Bm(e,!0)}function Rm(e){return lF(e)&&Mm(e.parent.parent)}function Bm(e,t){return lE(e)&&!!e.initializer&&Lm(t?wx(e.initializer):e.initializer,!0)}function Jm(e){return WF(e)&&e.declarationList.declarations.length>0&&v(e.declarationList.declarations,e=>jm(e))}function zm(e){return 39===e||34===e}function qm(e,t){return 34===Vd(t,e).charCodeAt(0)}function Um(e){return NF(e)||Sx(e)||aD(e)||fF(e)}function Vm(e){return Em(e)&&e.initializer&&NF(e.initializer)&&(57===e.initializer.operatorToken.kind||61===e.initializer.operatorToken.kind)&&e.name&&ab(e.name)&&Xm(e.name,e.initializer.left)?e.initializer.right:e.initializer}function Wm(e){const t=Vm(e);return t&&Hm(t,ub(e.name))}function $m(e){if(e&&e.parent&&NF(e.parent)&&64===e.parent.operatorToken.kind){const t=ub(e.parent.left);return Hm(e.parent.right,t)||function(e,t,n){const r=NF(t)&&(57===t.operatorToken.kind||61===t.operatorToken.kind)&&Hm(t.right,n);if(r&&Xm(e,t.left))return r}(e.parent.left,e.parent.right,t)}if(e&&fF(e)&&ng(e)){const t=function(e,t){return d(e.properties,e=>rP(e)&&aD(e.name)&&"value"===e.name.escapedText&&e.initializer&&Hm(e.initializer,t))}(e.arguments[2],"prototype"===e.arguments[1].text);if(t)return t}}function Hm(e,t){if(fF(e)){const t=ah(e.expression);return 219===t.kind||220===t.kind?e:void 0}return 219===e.kind||232===e.kind||220===e.kind||uF(e)&&(0===e.properties.length||t)?e:void 0}function Km(e){const t=lE(e.parent)?e.parent.name:NF(e.parent)&&64===e.parent.operatorToken.kind?e.parent.left:void 0;return t&&Hm(e.right,ub(t))&&ab(t)&&Xm(t,e.left)}function Gm(e){if(NF(e.parent)){const t=57!==e.parent.operatorToken.kind&&61!==e.parent.operatorToken.kind||!NF(e.parent.parent)?e.parent:e.parent.parent;if(64===t.operatorToken.kind&&aD(t.left))return t.left}else if(lE(e.parent))return e.parent.name}function Xm(e,t){return zh(e)&&zh(t)?qh(e)===qh(t):dl(e)&&rg(t)&&(110===t.expression.kind||aD(t.expression)&&("window"===t.expression.escapedText||"self"===t.expression.escapedText||"global"===t.expression.escapedText))?Xm(e,cg(t)):!(!rg(e)||!rg(t))&&_g(e)===_g(t)&&Xm(e.expression,t.expression)}function Qm(e){for(;rb(e,!0);)e=e.right;return e}function Ym(e){return aD(e)&&"exports"===e.escapedText}function Zm(e){return aD(e)&&"module"===e.escapedText}function eg(e){return(dF(e)||ig(e))&&Zm(e.expression)&&"exports"===_g(e)}function tg(e){const t=function(e){if(fF(e)){if(!ng(e))return 0;const t=e.arguments[0];return Ym(t)||eg(t)?8:og(t)&&"prototype"===_g(t)?9:7}return 64!==e.operatorToken.kind||!Sx(e.left)||SF(t=Qm(e))&&zN(t.expression)&&"0"===t.expression.text?0:sg(e.left.expression,!0)&&"prototype"===_g(e.left)&&uF(dg(e))?6:ug(e.left);var t}(e);return 5===t||Em(e)?t:0}function ng(e){return 3===u(e.arguments)&&dF(e.expression)&&aD(e.expression.expression)&&"Object"===gc(e.expression.expression)&&"defineProperty"===gc(e.expression.name)&&jh(e.arguments[1])&&sg(e.arguments[0],!0)}function rg(e){return dF(e)||ig(e)}function ig(e){return pF(e)&&jh(e.argumentExpression)}function og(e,t){return dF(e)&&(!t&&110===e.expression.kind||aD(e.name)&&sg(e.expression,!0))||ag(e,t)}function ag(e,t){return ig(e)&&(!t&&110===e.expression.kind||ab(e.expression)||og(e.expression,!0))}function sg(e,t){return ab(e)||og(e,t)}function cg(e){return dF(e)?e.name:e.argumentExpression}function lg(e){if(dF(e))return e.name;const t=ah(e.argumentExpression);return zN(t)||ju(t)?t:e}function _g(e){const t=lg(e);if(t){if(aD(t))return t.escapedText;if(ju(t)||zN(t))return fc(t.text)}}function ug(e){if(110===e.expression.kind)return 4;if(eg(e))return 2;if(sg(e.expression,!0)){if(ub(e.expression))return 3;let t=e;for(;!aD(t.expression);)t=t.expression;const n=t.expression;if(("exports"===n.escapedText||"module"===n.escapedText&&"exports"===_g(t))&&og(e))return 1;if(sg(e,!0)||pF(e)&&Bh(e))return 5}return 0}function dg(e){for(;NF(e.right);)e=e.right;return e.right}function pg(e){return NF(e)&&3===tg(e)}function fg(e){return Em(e)&&e.parent&&245===e.parent.kind&&(!pF(e)||ig(e))&&!!tl(e.parent)}function mg(e,t){const{valueDeclaration:n}=e;(!n||(!(33554432&t.flags)||Em(t)||33554432&n.flags)&&Um(n)&&!Um(t)||n.kind!==t.kind&&function(e){return gE(e)||aD(e)}(n))&&(e.valueDeclaration=t)}function gg(e){if(!e||!e.valueDeclaration)return!1;const t=e.valueDeclaration;return 263===t.kind||lE(t)&&t.initializer&&r_(t.initializer)}function hg(e){switch(null==e?void 0:e.kind){case 261:case 209:case 273:case 279:case 272:case 274:case 281:case 275:case 282:case 277:case 206:return!0}return!1}function yg(e){var t,n;switch(e.kind){case 261:case 209:return null==(t=uc(e.initializer,e=>Lm(e,!0)))?void 0:t.arguments[0];case 273:case 279:case 352:return tt(e.moduleSpecifier,ju);case 272:return tt(null==(n=tt(e.moduleReference,JE))?void 0:n.expression,ju);case 274:case 281:return tt(e.parent.moduleSpecifier,ju);case 275:case 282:return tt(e.parent.parent.moduleSpecifier,ju);case 277:return tt(e.parent.parent.parent.moduleSpecifier,ju);case 206:return df(e)?e.argument.literal:void 0;default:un.assertNever(e)}}function vg(e){return bg(e)||un.failBadSyntaxKind(e.parent)}function bg(e){switch(e.parent.kind){case 273:case 279:case 352:return e.parent;case 284:return e.parent.parent;case 214:return _f(e.parent)||Lm(e.parent,!1)?e.parent:void 0;case 202:if(!UN(e))break;return tt(e.parent.parent,iF);default:return}}function xg(e,t){return!!t.rewriteRelativeImportExtensions&&vo(e)&&!uO(e)&&LS(e)}function kg(e){switch(e.kind){case 273:case 279:case 352:return e.moduleSpecifier;case 272:return 284===e.moduleReference.kind?e.moduleReference.expression:void 0;case 206:return df(e)?e.argument.literal:void 0;case 214:return e.arguments[0];case 268:return 11===e.name.kind?e.name:void 0;default:return un.assertNever(e)}}function Sg(e){switch(e.kind){case 273:return e.importClause&&tt(e.importClause.namedBindings,DE);case 272:return e;case 279:return e.exportClause&&tt(e.exportClause,FE);default:return un.assertNever(e)}}function Tg(e){return!(273!==e.kind&&352!==e.kind||!e.importClause||!e.importClause.name)}function Cg(e,t){if(e.name){const n=t(e);if(n)return n}if(e.namedBindings){const n=DE(e.namedBindings)?t(e.namedBindings):d(e.namedBindings.elements,t);if(n)return n}}function wg(e){switch(e.kind){case 170:case 175:case 174:case 305:case 304:case 173:case 172:return void 0!==e.questionToken}return!1}function Ng(e){const t=bP(e)?fe(e.parameters):void 0,n=tt(t&&t.name,aD);return!!n&&"new"===n.escapedText}function Dg(e){return 347===e.kind||339===e.kind||341===e.kind}function Fg(e){return Dg(e)||fE(e)}function Eg(e){return HF(e)&&NF(e.expression)&&0!==tg(e.expression)&&NF(e.expression.right)&&(57===e.expression.right.operatorToken.kind||61===e.expression.right.operatorToken.kind)?e.expression.right.right:void 0}function Pg(e){switch(e.kind){case 244:const t=Ag(e);return t&&t.initializer;case 173:case 304:return e.initializer}}function Ag(e){return WF(e)?fe(e.declarationList.declarations):void 0}function Ig(e){return gE(e)&&e.body&&268===e.body.kind?e.body:void 0}function Og(e){if(e.kind>=244&&e.kind<=260)return!0;switch(e.kind){case 80:case 110:case 108:case 167:case 237:case 213:case 212:case 209:case 219:case 220:case 175:case 178:case 179:return!0;default:return!1}}function Lg(e){switch(e.kind){case 220:case 227:case 242:case 253:case 180:case 297:case 264:case 232:case 176:case 177:case 186:case 181:case 252:case 260:case 247:case 213:case 243:case 1:case 267:case 307:case 278:case 279:case 282:case 245:case 250:case 251:case 249:case 263:case 219:case 185:case 178:case 80:case 246:case 273:case 272:case 182:case 265:case 318:case 324:case 257:case 175:case 174:case 268:case 203:case 271:case 211:case 170:case 218:case 212:case 304:case 173:case 172:case 254:case 241:case 179:case 305:case 306:case 256:case 258:case 259:case 266:case 169:case 261:case 244:case 248:case 255:return!0;default:return!1}}function jg(e,t){let n;Af(e)&&Eu(e)&&Du(e.initializer)&&(n=se(n,Mg(e,e.initializer.jsDoc)));let r=e;for(;r&&r.parent;){if(Du(r)&&(n=se(n,Mg(e,r.jsDoc))),170===r.kind){n=se(n,(t?Pc:Ec)(r));break}if(169===r.kind){n=se(n,(t?Oc:Ic)(r));break}r=Rg(r)}return n||l}function Mg(e,t){const n=ve(t);return O(t,t=>{if(t===n){const n=N(t.tags,t=>function(e,t){return!((qP(t)||KP(t))&&t.parent&&SP(t.parent)&&yF(t.parent.parent)&&t.parent.parent!==e)}(e,t));return t.tags===n?[t]:n}return N(t.tags,LP)})}function Rg(e){const t=e.parent;return 304===t.kind||278===t.kind||173===t.kind||245===t.kind&&212===e.kind||254===t.kind||Ig(t)||rb(e)?t:t.parent&&(Ag(t.parent)===e||rb(t))?t.parent:t.parent&&t.parent.parent&&(Ag(t.parent.parent)||Pg(t.parent.parent)===e||Eg(t.parent.parent))?t.parent.parent:void 0}function Bg(e){if(e.symbol)return e.symbol;if(!aD(e.name))return;const t=e.name.escapedText,n=qg(e);if(!n)return;const r=b(n.parameters,e=>80===e.name.kind&&e.name.escapedText===t);return r&&r.symbol}function Jg(e){if(SP(e.parent)&&e.parent.tags){const t=b(e.parent.tags,Dg);if(t)return t}return qg(e)}function zg(e){return sl(e,LP)}function qg(e){const t=Ug(e);if(t)return wD(t)&&t.type&&r_(t.type)?t.type:r_(t)?t:void 0}function Ug(e){const t=Vg(e);if(t)return Eg(t)||function(e){return HF(e)&&NF(e.expression)&&64===e.expression.operatorToken.kind?Qm(e.expression):void 0}(t)||Pg(t)||Ag(t)||Ig(t)||t}function Vg(e){const t=Wg(e);if(!t)return;const n=t.parent;return n&&n.jsDoc&&t===ye(n.jsDoc)?n:void 0}function Wg(e){return uc(e.parent,SP)}function $g(e){const t=e.name.escapedText,{typeParameters:n}=e.parent.parent.parent;return n&&b(n,e=>e.name.escapedText===t)}function Hg(e){return!!e.typeArguments}var Kg=(e=>(e[e.None=0]="None",e[e.Definite=1]="Definite",e[e.Compound=2]="Compound",e))(Kg||{});function Gg(e){let t=e.parent;for(;;){switch(t.kind){case 227:const n=t;return eb(n.operatorToken.kind)&&n.left===e?n:void 0;case 225:case 226:const r=t,i=r.operator;return 46===i||47===i?r:void 0;case 250:case 251:const o=t;return o.initializer===e?o:void 0;case 218:case 210:case 231:case 236:e=t;break;case 306:e=t.parent;break;case 305:if(t.name!==e)return;e=t.parent;break;case 304:if(t.name===e)return;e=t.parent;break;default:return}t=e.parent}}function Xg(e){const t=Gg(e);if(!t)return 0;switch(t.kind){case 227:const e=t.operatorToken.kind;return 64===e||Xv(e)?1:2;case 225:case 226:return 2;case 250:case 251:return 1}}function Qg(e){return!!Gg(e)}function Yg(e){const t=Gg(e);return!!t&&rb(t,!0)&&function(e){const t=ah(e.right);return 227===t.kind&&ZA(t.operatorToken.kind)}(t)}function Zg(e){switch(e.kind){case 242:case 244:case 255:case 246:case 256:case 270:case 297:case 298:case 257:case 249:case 250:case 251:case 247:case 248:case 259:case 300:return!0}return!1}function eh(e){return vF(e)||bF(e)||m_(e)||uE(e)||PD(e)}function th(e,t){for(;e&&e.kind===t;)e=e.parent;return e}function nh(e){return th(e,197)}function rh(e){return th(e,218)}function ih(e){let t;for(;e&&197===e.kind;)t=e,e=e.parent;return[t,e]}function oh(e){for(;YD(e);)e=e.type;return e}function ah(e,t){return NA(e,t?-2147483647:1)}function sh(e){return(212===e.kind||213===e.kind)&&(e=rh(e.parent))&&221===e.kind}function ch(e,t){for(;e;){if(e===t)return!0;e=e.parent}return!1}function lh(e){return!sP(e)&&!k_(e)&&_u(e.parent)&&e.parent.name===e}function _h(e){const t=e.parent;switch(e.kind){case 11:case 15:case 9:if(kD(t))return t.parent;case 80:if(_u(t))return t.name===e?t:void 0;if(xD(t)){const e=t.parent;return BP(e)&&e.name===t?e:void 0}{const n=t.parent;return NF(n)&&0!==tg(n)&&(n.left.symbol||n.symbol)&&Cc(n)===e?n:void 0}case 81:return _u(t)&&t.name===e?t:void 0;default:return}}function uh(e){return jh(e)&&168===e.parent.kind&&_u(e.parent.parent)}function dh(e){const t=e.parent;switch(t.kind){case 173:case 172:case 175:case 174:case 178:case 179:case 307:case 304:case 212:return t.name===e;case 167:return t.right===e;case 209:case 277:return t.propertyName===e;case 282:case 292:case 286:case 287:case 288:return!0}return!1}function ph(e){switch(e.parent.kind){case 274:case 277:case 275:case 282:case 278:case 272:case 281:return e.parent;case 167:do{e=e.parent}while(167===e.parent.kind);return ph(e)}}function fh(e){return ab(e)||AF(e)}function mh(e){return fh(gh(e))}function gh(e){return AE(e)?e.expression:e.right}function hh(e){return 305===e.kind?e.name:304===e.kind?e.initializer:e.parent.right}function yh(e){const t=vh(e);if(t&&Em(e)){const t=jc(e);if(t)return t.class}return t}function vh(e){const t=Sh(e.heritageClauses,96);return t&&t.types.length>0?t.types[0]:void 0}function bh(e){if(Em(e))return Mc(e).map(e=>e.class);{const t=Sh(e.heritageClauses,119);return null==t?void 0:t.types}}function xh(e){return pE(e)?kh(e)||l:u_(e)&&K(rn(yh(e)),bh(e))||l}function kh(e){const t=Sh(e.heritageClauses,96);return t?t.types:void 0}function Sh(e,t){if(e)for(const n of e)if(n.token===t)return n}function Th(e,t){for(;e;){if(e.kind===t)return e;e=e.parent}}function Ch(e){return 83<=e&&e<=166}function wh(e){return 19<=e&&e<=79}function Nh(e){return Ch(e)||wh(e)}function Dh(e){return 128<=e&&e<=166}function Fh(e){return Ch(e)&&!Dh(e)}function Eh(e){const t=Ea(e);return void 0!==t&&Fh(t)}function Ph(e){const t=hc(e);return!!t&&!Dh(t)}function Ah(e){return 2<=e&&e<=7}var Ih=(e=>(e[e.Normal=0]="Normal",e[e.Generator=1]="Generator",e[e.Async=2]="Async",e[e.Invalid=4]="Invalid",e[e.AsyncGenerator=3]="AsyncGenerator",e))(Ih||{});function Oh(e){if(!e)return 4;let t=0;switch(e.kind){case 263:case 219:case 175:e.asteriskToken&&(t|=1);case 220:Nv(e,1024)&&(t|=2)}return e.body||(t|=4),t}function Lh(e){switch(e.kind){case 263:case 219:case 220:case 175:return void 0!==e.body&&void 0===e.asteriskToken&&Nv(e,1024)}return!1}function jh(e){return ju(e)||zN(e)}function Mh(e){return CF(e)&&(40===e.operator||41===e.operator)&&zN(e.operand)}function Rh(e){const t=Cc(e);return!!t&&Bh(t)}function Bh(e){if(168!==e.kind&&213!==e.kind)return!1;const t=pF(e)?ah(e.argumentExpression):e.expression;return!jh(t)&&!Mh(t)}function Jh(e){switch(e.kind){case 80:case 81:return e.escapedText;case 11:case 15:case 9:case 10:return fc(e.text);case 168:const t=e.expression;return jh(t)?fc(t.text):Mh(t)?41===t.operator?Fa(t.operator)+t.operand.text:t.operand.text:void 0;case 296:return iC(e);default:return un.assertNever(e)}}function zh(e){switch(e.kind){case 80:case 11:case 15:case 9:return!0;default:return!1}}function qh(e){return dl(e)?gc(e):YE(e)?oC(e):e.text}function Uh(e){return dl(e)?e.escapedText:YE(e)?iC(e):fc(e.text)}function Vh(e,t){return`__#${eJ(e)}@${t}`}function Wh(e){return Gt(e.escapedName,"__@")}function $h(e){return Gt(e.escapedName,"__#")}function Hh(e,t){switch((e=NA(e)).kind){case 232:if(zz(e))return!1;break;case 219:if(e.name)return!1;break;case 220:break;default:return!1}return"function"!=typeof t||t(e)}function Kh(e){switch(e.kind){case 304:return!function(e){return aD(e)?"__proto__"===gc(e):UN(e)&&"__proto__"===e.text}(e.name);case 305:return!!e.objectAssignmentInitializer;case 261:return aD(e.name)&&!!e.initializer;case 170:case 209:return aD(e.name)&&!!e.initializer&&!e.dotDotDotToken;case 173:return!!e.initializer;case 227:switch(e.operatorToken.kind){case 64:case 77:case 76:case 78:return aD(e.left)}break;case 278:return!0}return!1}function Gh(e,t){if(!Kh(e))return!1;switch(e.kind){case 304:case 261:case 170:case 209:case 173:return Hh(e.initializer,t);case 305:return Hh(e.objectAssignmentInitializer,t);case 227:return Hh(e.right,t);case 278:return Hh(e.expression,t)}}function Xh(e){return"push"===e.escapedText||"unshift"===e.escapedText}function Qh(e){return 170===Yh(e).kind}function Yh(e){for(;209===e.kind;)e=e.parent.parent;return e}function Zh(e){const t=e.kind;return 177===t||219===t||263===t||220===t||175===t||178===t||179===t||268===t||308===t}function ey(e){return XS(e.pos)||XS(e.end)}var ty=(e=>(e[e.Left=0]="Left",e[e.Right=1]="Right",e))(ty||{});function ny(e){const t=oy(e),n=215===e.kind&&void 0!==e.arguments;return ry(e.kind,t,n)}function ry(e,t,n){switch(e){case 215:return n?0:1;case 225:case 222:case 223:case 221:case 224:case 228:case 230:return 1;case 227:switch(t){case 43:case 64:case 65:case 66:case 68:case 67:case 69:case 70:case 71:case 72:case 73:case 74:case 79:case 75:case 76:case 77:case 78:return 1}}return 0}function iy(e){const t=oy(e),n=215===e.kind&&void 0!==e.arguments;return sy(e.kind,t,n)}function oy(e){return 227===e.kind?e.operatorToken.kind:225===e.kind||226===e.kind?e.operator:e.kind}var ay=(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.LogicalOR=5]="LogicalOR",e[e.Coalesce=5]="Coalesce",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",e))(ay||{});function sy(e,t,n){switch(e){case 357:return 0;case 231:return 1;case 230:return 2;case 228:return 4;case 227:switch(t){case 28:return 0;case 64:case 65:case 66:case 68:case 67:case 69:case 70:case 71:case 72:case 73:case 74:case 79:case 75:case 76:case 77:case 78:return 3;default:return cy(t)}case 217:case 236:case 225:case 222:case 223:case 221:case 224:return 16;case 226:return 17;case 214:return 18;case 215:return n?19:18;case 216:case 212:case 213:case 237:return 19;case 235:case 239:return 11;case 110:case 108:case 80:case 81:case 106:case 112:case 97:case 9:case 10:case 11:case 210:case 211:case 219:case 220:case 232:case 14:case 15:case 229:case 218:case 233:case 285:case 286:case 289:return 20;default:return-1}}function cy(e){switch(e){case 61:case 57:return 5;case 56:return 6;case 52:return 7;case 53:return 8;case 51:return 9;case 35:case 36:case 37:case 38:return 10;case 30:case 32:case 33:case 34:case 104:case 103:case 130:case 152:return 11;case 48:case 49:case 50:return 12;case 40:case 41:return 13;case 42:case 44:case 45:return 14;case 43:return 15}return-1}function ly(e){return N(e,e=>{switch(e.kind){case 295:return!!e.expression;case 12:return!e.containsOnlyTriviaWhiteSpaces;default:return!0}})}function _y(){let e=[];const t=[],n=new Map;let r=!1;return{add:function(i){let o;i.file?(o=n.get(i.file.fileName),o||(o=[],n.set(i.file.fileName,o),Z(t,i.file.fileName,Ct))):(r&&(r=!1,e=e.slice()),o=e),Z(o,i,rk,ak)},lookup:function(t){let r;if(r=t.file?n.get(t.file.fileName):e,!r)return;const i=Te(r,t,st,rk);return i>=0?r[i]:~i>0&&ak(t,r[~i-1])?r[~i-1]:void 0},getGlobalDiagnostics:function(){return r=!0,e},getDiagnostics:function(r){if(r)return n.get(r)||[];const i=L(t,e=>n.get(e));return e.length?(i.unshift(...e),i):i}}}var uy=/\$\{/g;function dy(e){return e.replace(uy,"\\${")}function py(e){return!!(2048&(e.templateFlags||0))}function fy(e){return e&&!!($N(e)?py(e):py(e.head)||$(e.templateSpans,e=>py(e.literal)))}var my=/[\\"\u0000-\u001f\u2028\u2029\u0085]/g,gy=/[\\'\u0000-\u001f\u2028\u2029\u0085]/g,hy=/\r\n|[\\`\u0000-\u0009\u000b-\u001f\u2028\u2029\u0085]/g,yy=new Map(Object.entries({"\t":"\\t","\v":"\\v","\f":"\\f","\b":"\\b","\r":"\\r","\n":"\\n","\\":"\\\\",'"':'\\"',"'":"\\'","`":"\\`","\u2028":"\\u2028","\u2029":"\\u2029","…":"\\u0085","\r\n":"\\r\\n"}));function vy(e){return"\\u"+("0000"+e.toString(16).toUpperCase()).slice(-4)}function by(e,t,n){if(0===e.charCodeAt(0)){const r=n.charCodeAt(t+e.length);return r>=48&&r<=57?"\\x00":"\\0"}return yy.get(e)||vy(e.charCodeAt(0))}function xy(e,t){const n=96===t?hy:39===t?gy:my;return e.replace(n,by)}var ky=/[^\u0000-\u007F]/g;function Sy(e,t){return e=xy(e,t),ky.test(e)?e.replace(ky,e=>vy(e.charCodeAt(0))):e}var Ty=/["\u0000-\u001f\u2028\u2029\u0085]/g,Cy=/['\u0000-\u001f\u2028\u2029\u0085]/g,wy=new Map(Object.entries({'"':""","'":"'"}));function Ny(e){return 0===e.charCodeAt(0)?"�":wy.get(e)||"&#x"+e.charCodeAt(0).toString(16).toUpperCase()+";"}function Dy(e,t){const n=39===t?Cy:Ty;return e.replace(n,Ny)}function Fy(e){const t=e.length;return t>=2&&e.charCodeAt(0)===e.charCodeAt(t-1)&&(39===(n=e.charCodeAt(0))||34===n||96===n)?e.substring(1,t-1):e;var n}function Ey(e){const t=e.charCodeAt(0);return t>=97&&t<=122||e.includes("-")}var Py=[""," "];function Ay(e){const t=Py[1];for(let n=Py.length;n<=e;n++)Py.push(Py[n-1]+t);return Py[e]}function Iy(){return Py[1].length}function Oy(e){var t,n,r,i,o,a=!1;function s(e){const n=Oa(e);n.length>1?(i=i+n.length-1,o=t.length-e.length+ve(n),r=o-t.length===0):r=!1}function c(e){e&&e.length&&(r&&(e=Ay(n)+e,r=!1),t+=e,s(e))}function l(e){e&&(a=!1),c(e)}function _(){t="",n=0,r=!0,i=0,o=0,a=!1}return _(),{write:l,rawWrite:function(e){void 0!==e&&(t+=e,s(e),a=!1)},writeLiteral:function(e){e&&e.length&&l(e)},writeLine:function(n){r&&!n||(i++,o=(t+=e).length,r=!0,a=!1)},increaseIndent:()=>{n++},decreaseIndent:()=>{n--},getIndent:()=>n,getTextPos:()=>t.length,getLine:()=>i,getColumn:()=>r?n*Iy():t.length-o,getText:()=>t,isAtStartOfLine:()=>r,hasTrailingComment:()=>a,hasTrailingWhitespace:()=>!!t.length&&qa(t.charCodeAt(t.length-1)),clear:_,writeKeyword:l,writeOperator:l,writeParameter:l,writeProperty:l,writePunctuation:l,writeSpace:l,writeStringLiteral:l,writeSymbol:(e,t)=>l(e),writeTrailingSemicolon:l,writeComment:function(e){e&&(a=!0),c(e)}}}function Ly(e){let t=!1;function n(){t&&(e.writeTrailingSemicolon(";"),t=!1)}return{...e,writeTrailingSemicolon(){t=!0},writeLiteral(t){n(),e.writeLiteral(t)},writeStringLiteral(t){n(),e.writeStringLiteral(t)},writeSymbol(t,r){n(),e.writeSymbol(t,r)},writePunctuation(t){n(),e.writePunctuation(t)},writeKeyword(t){n(),e.writeKeyword(t)},writeOperator(t){n(),e.writeOperator(t)},writeParameter(t){n(),e.writeParameter(t)},writeSpace(t){n(),e.writeSpace(t)},writeProperty(t){n(),e.writeProperty(t)},writeComment(t){n(),e.writeComment(t)},writeLine(){n(),e.writeLine()},increaseIndent(){n(),e.increaseIndent()},decreaseIndent(){n(),e.decreaseIndent()}}}function jy(e){return!!e.useCaseSensitiveFileNames&&e.useCaseSensitiveFileNames()}function My(e){return Wt(jy(e))}function Ry(e,t,n){return t.moduleName||zy(e,t.fileName,n&&n.fileName)}function By(e,t){return e.getCanonicalFileName(Bo(t,e.getCurrentDirectory()))}function Jy(e,t,n){const r=t.getExternalModuleFileFromDeclaration(n);if(!r||r.isDeclarationFile)return;const i=kg(n);return!i||!ju(i)||vo(i.text)||By(e,r.path).includes(By(e,Wo(e.getCommonSourceDirectory())))?Ry(e,r):void 0}function zy(e,t,n){const r=t=>e.getCanonicalFileName(t),i=Uo(n?Do(n):e.getCommonSourceDirectory(),e.getCurrentDirectory(),r),o=US(aa(i,Bo(t,e.getCurrentDirectory()),i,r,!1));return n?$o(o):o}function qy(e,t,n){const r=t.getCompilerOptions();let i;return i=r.outDir?US(Qy(e,t,r.outDir)):US(e),i+n}function Uy(e,t){return Vy(e,t.getCompilerOptions(),t)}function Vy(e,t,n){const r=t.declarationDir||t.outDir,i=r?Yy(e,r,n.getCurrentDirectory(),n.getCommonSourceDirectory(),e=>n.getCanonicalFileName(e)):e,o=Wy(i);return US(i)+o}function Wy(e){return So(e,[".mjs",".mts"])?".d.mts":So(e,[".cjs",".cts"])?".d.cts":So(e,[".json"])?".d.json.ts":".d.ts"}function $y(e){return So(e,[".d.mts",".mjs",".mts"])?[".mts",".mjs"]:So(e,[".d.cts",".cjs",".cts"])?[".cts",".cjs"]:So(e,[".d.json.ts"])?[".json"]:[".tsx",".ts",".jsx",".js"]}function Hy(e,t,n,r){return n?Mo(r(),ra(n,e,t)):e}function Ky(e,t){var n;if(e.paths)return e.baseUrl??un.checkDefined(e.pathsBasePath||(null==(n=t.getCurrentDirectory)?void 0:n.call(t)),"Encountered 'paths' without a 'baseUrl', config file, or host 'getCurrentDirectory'.")}function Gy(e,t,n){const r=e.getCompilerOptions();if(r.outFile){const t=vk(r),i=r.emitDeclarationOnly||2===t||4===t;return N(e.getSourceFiles(),t=>(i||!rO(t))&&Xy(t,e,n))}return N(void 0===t?e.getSourceFiles():[t],t=>Xy(t,e,n))}function Xy(e,t,n){const r=t.getCompilerOptions();if(r.noEmitForJsFiles&&Fm(e))return!1;if(e.isDeclarationFile)return!1;if(t.isSourceFileFromExternalLibrary(e))return!1;if(n)return!0;if(t.isSourceOfProjectReferenceRedirect(e.fileName))return!1;if(!ef(e))return!0;if(t.getRedirectFromSourceFile(e.fileName))return!1;if(r.outFile)return!0;if(!r.outDir)return!1;if(r.rootDir||r.composite&&r.configFilePath){const n=Bo(cU(r,()=>[],t.getCurrentDirectory(),t.getCanonicalFileName),t.getCurrentDirectory()),i=Yy(e.fileName,r.outDir,t.getCurrentDirectory(),n,t.getCanonicalFileName);if(0===Zo(e.fileName,i,t.getCurrentDirectory(),!t.useCaseSensitiveFileNames()))return!1}return!0}function Qy(e,t,n){return Yy(e,n,t.getCurrentDirectory(),t.getCommonSourceDirectory(),e=>t.getCanonicalFileName(e))}function Yy(e,t,n,r,i){let o=Bo(e,n);return o=0===i(o).indexOf(i(r))?o.substring(r.length):o,jo(t,o)}function Zy(e,t,n,r,i,o,a){e.writeFile(n,r,i,e=>{t.add(Qx(_a.Could_not_write_file_0_Colon_1,n,e))},o,a)}function ev(e,t,n){e.length>No(e)&&!n(e)&&(ev(Do(e),t,n),t(e))}function tv(e,t,n,r,i,o){try{r(e,t,n)}catch{ev(Do(Jo(e)),i,o),r(e,t,n)}}function nv(e,t){return Ba(Ma(e),t)}function rv(e,t){return Ba(e,t)}function iv(e){return b(e.members,e=>PD(e)&&Dd(e.body))}function ov(e){if(e&&e.parameters.length>0){const t=2===e.parameters.length&&cv(e.parameters[0]);return e.parameters[t?1:0]}}function av(e){const t=ov(e);return t&&t.type}function sv(e){if(e.parameters.length&&!CP(e)){const t=e.parameters[0];if(cv(t))return t}}function cv(e){return lv(e.name)}function lv(e){return!!e&&80===e.kind&&dv(e)}function _v(e){return!!uc(e,e=>187===e.kind||80!==e.kind&&167!==e.kind&&"quit")}function uv(e){if(!lv(e))return!1;for(;xD(e.parent)&&e.parent.left===e;)e=e.parent;return 187===e.parent.kind}function dv(e){return"this"===e.escapedText}function pv(e,t){let n,r,i,o;return Rh(t)?(n=t,178===t.kind?i=t:179===t.kind?o=t:un.fail("Accessor has wrong kind")):d(e,e=>{d_(e)&&Dv(e)===Dv(t)&&Jh(e.name)===Jh(t.name)&&(n?r||(r=e):n=e,178!==e.kind||i||(i=e),179!==e.kind||o||(o=e))}),{firstAccessor:n,secondAccessor:r,getAccessor:i,setAccessor:o}}function fv(e){if(!Em(e)&&uE(e))return;if(fE(e))return;const t=e.type;return t||!Em(e)?t:Nl(e)?e.typeExpression&&e.typeExpression.type:nl(e)}function mv(e){return e.type}function gv(e){return CP(e)?e.type&&e.type.typeExpression&&e.type.typeExpression.type:e.type||(Em(e)?rl(e):void 0)}function hv(e){return O(ol(e),e=>function(e){return UP(e)&&!(321===e.parent.kind&&(e.parent.tags.some(Dg)||e.parent.tags.some(LP)))}(e)?e.typeParameters:void 0)}function yv(e){const t=ov(e);return t&&fv(t)}function vv(e,t,n,r){n!==r&&rv(e,n)!==rv(e,r)&&t.writeLine()}function bv(e,t,n,r,i,o,a){let s,c;if(a?0===i.pos&&(s=N(_s(e,i.pos),function(t){return Bd(e,t.pos)})):s=_s(e,i.pos),s){const a=[];let l;for(const e of s){if(l){const n=rv(t,l.end);if(rv(t,e.pos)>=n+2)break}a.push(e),l=e}if(a.length){const l=rv(t,ve(a).end);rv(t,Qa(e,i.pos))>=l+2&&(function(e,t,n,r){!function(e,t,n,r){r&&r.length&&n!==r[0].pos&&rv(e,n)!==rv(e,r[0].pos)&&t.writeLine()}(e,t,n.pos,r)}(t,n,i,s),function(e,t,n,r,i,o,a,s){if(r&&r.length>0){let i=!1;for(const o of r)i&&(n.writeSpace(" "),i=!1),s(e,t,n,o.pos,o.end,a),o.hasTrailingNewLine?n.writeLine():i=!0;i&&n.writeSpace(" ")}}(e,t,n,a,0,0,o,r),c={nodePos:i.pos,detachedCommentEndPos:ve(a).end})}}return c}function xv(e,t,n,r,i,o){if(42===e.charCodeAt(r+1)){const a=Ra(t,r),s=t.length;let c;for(let l=r,_=a.line;l0){let e=i%Iy();const t=Ay((i-e)/Iy());for(n.rawWrite(t);e;)n.rawWrite(" "),e--}else n.rawWrite("")}kv(e,i,n,o,l,u),l=u}}else n.writeComment(e.substring(r,i))}function kv(e,t,n,r,i,o){const a=Math.min(t,o-1),s=e.substring(i,a).trim();s?(n.writeComment(s),a!==t&&n.writeLine()):n.rawWrite(r)}function Sv(e,t,n){let r=0;for(;t=0&&e.kind<=166?0:(536870912&e.modifierFlagsCache||(e.modifierFlagsCache=536870912|Wv(e)),n||t&&Em(e)?(268435456&e.modifierFlagsCache||!e.parent||(e.modifierFlagsCache|=268435456|qv(e)),Uv(e.modifierFlagsCache)):65535&e.modifierFlagsCache)}function Bv(e){return Rv(e,!0)}function Jv(e){return Rv(e,!0,!0)}function zv(e){return Rv(e,!1)}function qv(e){let t=0;return e.parent&&!TD(e)&&(Em(e)&&(Jc(e)&&(t|=8388608),qc(e)&&(t|=16777216),Vc(e)&&(t|=33554432),$c(e)&&(t|=67108864),Hc(e)&&(t|=134217728)),Gc(e)&&(t|=65536)),t}function Uv(e){return 131071&e|(260046848&e)>>>23}function Vv(e){return Wv(e)|function(e){return Uv(qv(e))}(e)}function Wv(e){let t=kI(e)?$v(e.modifiers):0;return(8&e.flags||80===e.kind&&4096&e.flags)&&(t|=32),t}function $v(e){let t=0;if(e)for(const n of e)t|=Hv(n.kind);return t}function Hv(e){switch(e){case 126:return 256;case 125:return 1;case 124:return 4;case 123:return 2;case 128:return 64;case 129:return 512;case 95:return 32;case 138:return 128;case 87:return 4096;case 90:return 2048;case 134:return 1024;case 148:return 8;case 164:return 16;case 103:return 8192;case 147:return 16384;case 171:return 32768}return 0}function Kv(e){return 57===e||56===e}function Gv(e){return Kv(e)||54===e}function Xv(e){return 76===e||77===e||78===e}function Qv(e){return NF(e)&&Xv(e.operatorToken.kind)}function Yv(e){return Kv(e)||61===e}function Zv(e){return NF(e)&&Yv(e.operatorToken.kind)}function eb(e){return e>=64&&e<=79}function tb(e){const t=nb(e);return t&&!t.isImplements?t.class:void 0}function nb(e){if(OF(e)){if(tP(e.parent)&&u_(e.parent.parent))return{class:e.parent.parent,isImplements:119===e.parent.token};if(wP(e.parent)){const t=Ug(e.parent);if(t&&u_(t))return{class:t,isImplements:!1}}}}function rb(e,t){return NF(e)&&(t?64===e.operatorToken.kind:eb(e.operatorToken.kind))&&R_(e.left)}function ib(e){if(rb(e,!0)){const t=e.left.kind;return 211===t||210===t}return!1}function ob(e){return void 0!==tb(e)}function ab(e){return 80===e.kind||lb(e)}function sb(e){switch(e.kind){case 80:return e;case 167:do{e=e.left}while(80!==e.kind);return e;case 212:do{e=e.expression}while(80!==e.kind);return e}}function cb(e){return 80===e.kind||110===e.kind||108===e.kind||237===e.kind||212===e.kind&&cb(e.expression)||218===e.kind&&cb(e.expression)}function lb(e){return dF(e)&&aD(e.name)&&ab(e.expression)}function _b(e){if(dF(e)){const t=_b(e.expression);if(void 0!==t)return t+"."+Mp(e.name)}else if(pF(e)){const t=_b(e.expression);if(void 0!==t&&t_(e.argumentExpression))return t+"."+Jh(e.argumentExpression)}else{if(aD(e))return mc(e.escapedText);if(YE(e))return oC(e)}}function ub(e){return og(e)&&"prototype"===_g(e)}function db(e){return 167===e.parent.kind&&e.parent.right===e||212===e.parent.kind&&e.parent.name===e||237===e.parent.kind&&e.parent.name===e}function pb(e){return!!e.parent&&(dF(e.parent)&&e.parent.name===e||pF(e.parent)&&e.parent.argumentExpression===e)}function fb(e){return xD(e.parent)&&e.parent.right===e||dF(e.parent)&&e.parent.name===e||uP(e.parent)&&e.parent.right===e}function mb(e){return NF(e)&&104===e.operatorToken.kind}function gb(e){return mb(e.parent)&&e===e.parent.right}function hb(e){return 211===e.kind&&0===e.properties.length}function yb(e){return 210===e.kind&&0===e.elements.length}function vb(e){if(function(e){return e&&u(e.declarations)>0&&Nv(e.declarations[0],2048)}(e)&&e.declarations)for(const t of e.declarations)if(t.localSymbol)return t.localSymbol}function bb(e){return b(CS,t=>ko(e,t))}var xb="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";function kb(e){let t="";const n=function(e){const t=[],n=e.length;for(let r=0;r>6|192),t.push(63&n|128)):n<65536?(t.push(n>>12|224),t.push(n>>6&63|128),t.push(63&n|128)):n<131072?(t.push(n>>18|240),t.push(n>>12&63|128),t.push(n>>6&63|128),t.push(63&n|128)):un.assert(!1,"Unexpected code point")}return t}(e);let r=0;const i=n.length;let o,a,s,c;for(;r>2,a=(3&n[r])<<4|n[r+1]>>4,s=(15&n[r+1])<<2|n[r+2]>>6,c=63&n[r+2],r+1>=i?s=c=64:r+2>=i&&(c=64),t+=xb.charAt(o)+xb.charAt(a)+xb.charAt(s)+xb.charAt(c),r+=3;return t}function Sb(e,t){return e&&e.base64encode?e.base64encode(t):kb(t)}function Tb(e,t){if(e&&e.base64decode)return e.base64decode(t);const n=t.length,r=[];let i=0;for(;i>4&3,c=(15&n)<<4|o>>2&15,l=(3&o)<<6|63&a;0===c&&0!==o?r.push(s):0===l&&0!==a?r.push(s,c):r.push(s,c,l),i+=4}return function(e){let t="",n=0;const r=e.length;for(;n=e||-1===t),{pos:e,end:t}}function Ib(e,t){return Ab(e.pos,t)}function Ob(e,t){return Ab(t,e.end)}function Lb(e){const t=kI(e)?x(e.modifiers,CD):void 0;return t&&!XS(t.end)?Ob(e,t.end):e}function jb(e){if(ND(e)||FD(e))return Ob(e,e.name.pos);const t=kI(e)?ye(e.modifiers):void 0;return t&&!XS(t.end)?Ob(e,t.end):Lb(e)}function Mb(e,t){return Ab(e,e+Fa(t).length)}function Rb(e,t){return zb(e,e,t)}function Bb(e,t,n){return $b(Hb(e,n,!1),Hb(t,n,!1),n)}function Jb(e,t,n){return $b(e.end,t.end,n)}function zb(e,t,n){return $b(Hb(e,n,!1),t.end,n)}function qb(e,t,n){return $b(e.end,Hb(t,n,!1),n)}function Ub(e,t,n,r){const i=Hb(t,n,r);return Ja(n,e.end,i)}function Vb(e,t,n){return Ja(n,e.end,t.end)}function Wb(e,t){return!$b(e.pos,e.end,t)}function $b(e,t,n){return 0===Ja(n,e,t)}function Hb(e,t,n){return XS(e.pos)?-1:Qa(t.text,e.pos,!1,n)}function Kb(e,t,n,r){const i=Qa(n.text,e,!1,r),o=function(e,t=0,n){for(;e-- >t;)if(!qa(n.text.charCodeAt(e)))return e}(i,t,n);return Ja(n,o??t,i)}function Gb(e,t,n,r){const i=Qa(n.text,e,!1,r);return Ja(n,e,Math.min(t,i))}function Xb(e,t){return Qb(e.pos,e.end,t)}function Qb(e,t,n){return e<=n.pos&&t>=n.end}function Yb(e){const t=pc(e);if(t)switch(t.parent.kind){case 267:case 268:return t===t.parent.name}return!1}function Zb(e){return N(e.declarations,ex)}function ex(e){return lE(e)&&void 0!==e.initializer}function tx(e){return e.watch&&De(e,"watch")}function nx(e){e.close()}function rx(e){return 33554432&e.flags?e.links.checkFlags:0}function ix(e,t=!1){if(e.valueDeclaration){const n=ic(t&&e.declarations&&b(e.declarations,ID)||32768&e.flags&&b(e.declarations,AD)||e.valueDeclaration);return e.parent&&32&e.parent.flags?n:-8&n}if(6&rx(e)){const t=e.links.checkFlags;return(1024&t?2:256&t?1:4)|(2048&t?256:0)}return 4194304&e.flags?257:0}function ox(e,t){return 2097152&e.flags?t.getAliasedSymbol(e):e}function ax(e){return e.exportSymbol?e.exportSymbol.flags|e.flags:e.flags}function sx(e){return 1===lx(e)}function cx(e){return 0!==lx(e)}function lx(e){const{parent:t}=e;switch(null==t?void 0:t.kind){case 218:case 210:return lx(t);case 226:case 225:const{operator:n}=t;return 46===n||47===n?2:0;case 227:const{left:r,operatorToken:i}=t;return r===e&&eb(i.kind)?64===i.kind?1:2:0;case 212:return t.name!==e?0:lx(t);case 304:{const n=lx(t.parent);return e===t.name?function(e){switch(e){case 0:return 1;case 1:return 0;case 2:return 2;default:return un.assertNever(e)}}(n):n}case 305:return e===t.objectAssignmentInitializer?0:lx(t.parent);case 250:case 251:return e===t.initializer?1:0;default:return 0}}function _x(e,t){if(!e||!t||Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if("object"==typeof e[n]){if(!_x(e[n],t[n]))return!1}else if("function"!=typeof e[n]&&e[n]!==t[n])return!1;return!0}function ux(e,t){e.forEach(t),e.clear()}function dx(e,t,n){const{onDeleteValue:r,onExistingValue:i}=n;e.forEach((n,o)=>{var a;(null==t?void 0:t.has(o))?i&&i(n,null==(a=t.get)?void 0:a.call(t,o),o):(e.delete(o),r(n,o))})}function px(e,t,n){dx(e,t,n);const{createNewValue:r}=n;null==t||t.forEach((t,n)=>{e.has(n)||e.set(n,r(n,t))})}function fx(e){if(32&e.flags){const t=mx(e);return!!t&&Nv(t,64)}return!1}function mx(e){var t;return null==(t=e.declarations)?void 0:t.find(u_)}function gx(e){return 3899393&e.flags?e.objectFlags:0}function hx(e){return!!e&&!!e.declarations&&!!e.declarations[0]&&vE(e.declarations[0])}function yx({moduleSpecifier:e}){return UN(e)?e.text:Xd(e)}function vx(e){let t;return XI(e,e=>{Dd(e)&&(t=e)},e=>{for(let n=e.length-1;n>=0;n--)if(Dd(e[n])){t=e[n];break}}),t}function bx(e,t){return!e.has(t)&&(e.add(t),!0)}function xx(e){return u_(e)||pE(e)||qD(e)}function kx(e){return e>=183&&e<=206||133===e||159===e||150===e||163===e||151===e||136===e||154===e||155===e||116===e||157===e||146===e||141===e||234===e||313===e||314===e||315===e||316===e||317===e||318===e||319===e}function Sx(e){return 212===e.kind||213===e.kind}function Tx(e){return 212===e.kind?e.name:(un.assert(213===e.kind),e.argumentExpression)}function Cx(e){return 276===e.kind||280===e.kind}function wx(e){for(;Sx(e);)e=e.expression;return e}function Nx(e,t){if(Sx(e.parent)&&pb(e))return function e(n){if(212===n.kind){const e=t(n.name);if(void 0!==e)return e}else if(213===n.kind){if(!aD(n.argumentExpression)&&!ju(n.argumentExpression))return;{const e=t(n.argumentExpression);if(void 0!==e)return e}}return Sx(n.expression)?e(n.expression):aD(n.expression)?t(n.expression):void 0}(e.parent)}function Dx(e,t){for(;;){switch(e.kind){case 226:e=e.operand;continue;case 227:e=e.left;continue;case 228:e=e.condition;continue;case 216:e=e.tag;continue;case 214:if(t)return e;case 235:case 213:case 212:case 236:case 356:case 239:e=e.expression;continue}return e}}function Fx(e,t){this.flags=e,this.escapedName=t,this.declarations=void 0,this.valueDeclaration=void 0,this.id=0,this.mergeId=0,this.parent=void 0,this.members=void 0,this.exports=void 0,this.exportSymbol=void 0,this.constEnumOnlyModule=void 0,this.isReferenced=void 0,this.lastAssignmentPos=void 0,this.links=void 0}function Ex(e,t){this.flags=t,(un.isDebugging||Hn)&&(this.checker=e)}function Px(e,t){this.flags=t,un.isDebugging&&(this.checker=e)}function Ax(e,t,n){this.pos=t,this.end=n,this.kind=e,this.id=0,this.flags=0,this.modifierFlagsCache=0,this.transformFlags=0,this.parent=void 0,this.original=void 0,this.emitNode=void 0}function Ix(e,t,n){this.pos=t,this.end=n,this.kind=e,this.id=0,this.flags=0,this.transformFlags=0,this.parent=void 0,this.emitNode=void 0}function Ox(e,t,n){this.pos=t,this.end=n,this.kind=e,this.id=0,this.flags=0,this.transformFlags=0,this.parent=void 0,this.original=void 0,this.emitNode=void 0}function Lx(e,t,n){this.fileName=e,this.text=t,this.skipTrivia=n||(e=>e)}var jx,Mx={getNodeConstructor:()=>Ax,getTokenConstructor:()=>Ix,getIdentifierConstructor:()=>Ox,getPrivateIdentifierConstructor:()=>Ax,getSourceFileConstructor:()=>Ax,getSymbolConstructor:()=>Fx,getTypeConstructor:()=>Ex,getSignatureConstructor:()=>Px,getSourceMapSourceConstructor:()=>Lx},Rx=[];function Bx(e){Rx.push(e),e(Mx)}function Jx(e){Object.assign(Mx,e),d(Rx,e=>e(Mx))}function zx(e,t){return e.replace(/\{(\d+)\}/g,(e,n)=>""+un.checkDefined(t[+n]))}function qx(e){jx=e}function Ux(e){!jx&&e&&(jx=e())}function Vx(e){return jx&&jx[e.key]||e.message}function Wx(e,t,n,r,i,...o){n+r>t.length&&(r=t.length-n),Up(t,n,r);let a=Vx(i);return $(o)&&(a=zx(a,o)),{file:void 0,start:n,length:r,messageText:a,category:i.category,code:i.code,reportsUnnecessary:i.reportsUnnecessary,fileName:e}}function $x(e){return void 0===e.file&&void 0!==e.start&&void 0!==e.length&&"string"==typeof e.fileName}function Hx(e,t){const n=t.fileName||"",r=t.text.length;un.assertEqual(e.fileName,n),un.assertLessThanOrEqual(e.start,r),un.assertLessThanOrEqual(e.start+e.length,r);const i={file:t,start:e.start,length:e.length,messageText:e.messageText,category:e.category,code:e.code,reportsUnnecessary:e.reportsUnnecessary};if(e.relatedInformation){i.relatedInformation=[];for(const o of e.relatedInformation)$x(o)&&o.fileName===n?(un.assertLessThanOrEqual(o.start,r),un.assertLessThanOrEqual(o.start+o.length,r),i.relatedInformation.push(Hx(o,t))):i.relatedInformation.push(o)}return i}function Kx(e,t){const n=[];for(const r of e)n.push(Hx(r,t));return n}function Gx(e,t,n,r,...i){Up(e.text,t,n);let o=Vx(r);return $(i)&&(o=zx(o,i)),{file:e,start:t,length:n,messageText:o,category:r.category,code:r.code,reportsUnnecessary:r.reportsUnnecessary,reportsDeprecated:r.reportsDeprecated}}function Xx(e,...t){let n=Vx(e);return $(t)&&(n=zx(n,t)),n}function Qx(e,...t){let n=Vx(e);return $(t)&&(n=zx(n,t)),{file:void 0,start:void 0,length:void 0,messageText:n,category:e.category,code:e.code,reportsUnnecessary:e.reportsUnnecessary,reportsDeprecated:e.reportsDeprecated}}function Yx(e,t){return{file:void 0,start:void 0,length:void 0,code:e.code,category:e.category,messageText:e.next?e:e.messageText,relatedInformation:t}}function Zx(e,t,...n){let r=Vx(t);return $(n)&&(r=zx(r,n)),{messageText:r,category:t.category,code:t.code,next:void 0===e||Array.isArray(e)?e:[e]}}function ek(e,t){let n=e;for(;n.next;)n=n.next[0];n.next=[t]}function tk(e){return e.file?e.file.path:void 0}function nk(e,t){return rk(e,t)||function(e,t){return e.relatedInformation||t.relatedInformation?e.relatedInformation&&t.relatedInformation?vt(t.relatedInformation.length,e.relatedInformation.length)||d(e.relatedInformation,(e,n)=>nk(e,t.relatedInformation[n]))||0:e.relatedInformation?-1:1:0}(e,t)||0}function rk(e,t){const n=sk(e),r=sk(t);return Ct(tk(e),tk(t))||vt(e.start,t.start)||vt(e.length,t.length)||vt(n,r)||function(e,t){let n=ck(e),r=ck(t);"string"!=typeof n&&(n=n.messageText),"string"!=typeof r&&(r=r.messageText);const i="string"!=typeof e.messageText?e.messageText.next:void 0,o="string"!=typeof t.messageText?t.messageText.next:void 0;let a=Ct(n,r);return a||(c=o,a=void 0===(s=i)&&void 0===c?0:void 0===s?1:void 0===c?-1:ik(s,c)||ok(s,c),a||(e.canonicalHead&&!t.canonicalHead?-1:t.canonicalHead&&!e.canonicalHead?1:0));var s,c}(e,t)||0}function ik(e,t){if(void 0===e&&void 0===t)return 0;if(void 0===e)return 1;if(void 0===t)return-1;let n=vt(t.length,e.length);if(n)return n;for(let r=0;r{e.externalModuleIndicator=FI(e)||!e.isDeclarationFile||void 0};case 1:return e=>{e.externalModuleIndicator=FI(e)};case 2:const t=[FI];4!==e.jsx&&5!==e.jsx||t.push(uk),t.push(dk);const n=en(...t);return t=>{t.externalModuleIndicator=n(t,e)}}}function fk(e){const t=bk(e);return 3<=t&&t<=99||Ck(e)||wk(e)}var mk={allowImportingTsExtensions:{dependencies:["rewriteRelativeImportExtensions"],computeValue:e=>!(!e.allowImportingTsExtensions&&!e.rewriteRelativeImportExtensions)},target:{dependencies:["module"],computeValue:e=>(0===e.target?void 0:e.target)??((100===e.module||101===e.module?9:102===e.module&&10)||199===e.module&&99||1)},module:{dependencies:["target"],computeValue:e=>"number"==typeof e.module?e.module:mk.target.computeValue(e)>=2?5:1},moduleResolution:{dependencies:["module","target"],computeValue:e=>{let t=e.moduleResolution;if(void 0===t)switch(mk.module.computeValue(e)){case 1:t=2;break;case 100:case 101:case 102:t=3;break;case 199:t=99;break;case 200:t=100;break;default:t=1}return t}},moduleDetection:{dependencies:["module","target"],computeValue:e=>{if(void 0!==e.moduleDetection)return e.moduleDetection;const t=mk.module.computeValue(e);return 100<=t&&t<=199?3:2}},isolatedModules:{dependencies:["verbatimModuleSyntax"],computeValue:e=>!(!e.isolatedModules&&!e.verbatimModuleSyntax)},esModuleInterop:{dependencies:["module","target"],computeValue:e=>{if(void 0!==e.esModuleInterop)return e.esModuleInterop;switch(mk.module.computeValue(e)){case 100:case 101:case 102:case 199:case 200:return!0}return!1}},allowSyntheticDefaultImports:{dependencies:["module","target","moduleResolution"],computeValue:e=>void 0!==e.allowSyntheticDefaultImports?e.allowSyntheticDefaultImports:mk.esModuleInterop.computeValue(e)||4===mk.module.computeValue(e)||100===mk.moduleResolution.computeValue(e)},resolvePackageJsonExports:{dependencies:["moduleResolution"],computeValue:e=>{const t=mk.moduleResolution.computeValue(e);if(!Rk(t))return!1;if(void 0!==e.resolvePackageJsonExports)return e.resolvePackageJsonExports;switch(t){case 3:case 99:case 100:return!0}return!1}},resolvePackageJsonImports:{dependencies:["moduleResolution","resolvePackageJsonExports"],computeValue:e=>{const t=mk.moduleResolution.computeValue(e);if(!Rk(t))return!1;if(void 0!==e.resolvePackageJsonImports)return e.resolvePackageJsonImports;switch(t){case 3:case 99:case 100:return!0}return!1}},resolveJsonModule:{dependencies:["moduleResolution","module","target"],computeValue:e=>{if(void 0!==e.resolveJsonModule)return e.resolveJsonModule;switch(mk.module.computeValue(e)){case 102:case 199:return!0}return 100===mk.moduleResolution.computeValue(e)}},declaration:{dependencies:["composite"],computeValue:e=>!(!e.declaration&&!e.composite)},preserveConstEnums:{dependencies:["isolatedModules","verbatimModuleSyntax"],computeValue:e=>!(!e.preserveConstEnums&&!mk.isolatedModules.computeValue(e))},incremental:{dependencies:["composite"],computeValue:e=>!(!e.incremental&&!e.composite)},declarationMap:{dependencies:["declaration","composite"],computeValue:e=>!(!e.declarationMap||!mk.declaration.computeValue(e))},allowJs:{dependencies:["checkJs"],computeValue:e=>void 0===e.allowJs?!!e.checkJs:e.allowJs},useDefineForClassFields:{dependencies:["target","module"],computeValue:e=>void 0===e.useDefineForClassFields?mk.target.computeValue(e)>=9:e.useDefineForClassFields},noImplicitAny:{dependencies:["strict"],computeValue:e=>Jk(e,"noImplicitAny")},noImplicitThis:{dependencies:["strict"],computeValue:e=>Jk(e,"noImplicitThis")},strictNullChecks:{dependencies:["strict"],computeValue:e=>Jk(e,"strictNullChecks")},strictFunctionTypes:{dependencies:["strict"],computeValue:e=>Jk(e,"strictFunctionTypes")},strictBindCallApply:{dependencies:["strict"],computeValue:e=>Jk(e,"strictBindCallApply")},strictPropertyInitialization:{dependencies:["strict"],computeValue:e=>Jk(e,"strictPropertyInitialization")},strictBuiltinIteratorReturn:{dependencies:["strict"],computeValue:e=>Jk(e,"strictBuiltinIteratorReturn")},alwaysStrict:{dependencies:["strict"],computeValue:e=>Jk(e,"alwaysStrict")},useUnknownInCatchVariables:{dependencies:["strict"],computeValue:e=>Jk(e,"useUnknownInCatchVariables")}},gk=mk,hk=mk.allowImportingTsExtensions.computeValue,yk=mk.target.computeValue,vk=mk.module.computeValue,bk=mk.moduleResolution.computeValue,xk=mk.moduleDetection.computeValue,kk=mk.isolatedModules.computeValue,Sk=mk.esModuleInterop.computeValue,Tk=mk.allowSyntheticDefaultImports.computeValue,Ck=mk.resolvePackageJsonExports.computeValue,wk=mk.resolvePackageJsonImports.computeValue,Nk=mk.resolveJsonModule.computeValue,Dk=mk.declaration.computeValue,Fk=mk.preserveConstEnums.computeValue,Ek=mk.incremental.computeValue,Pk=mk.declarationMap.computeValue,Ak=mk.allowJs.computeValue,Ik=mk.useDefineForClassFields.computeValue;function Ok(e){return e>=5&&e<=99}function Lk(e){switch(vk(e)){case 0:case 4:case 3:return!1}return!0}function jk(e){return!1===e.allowUnreachableCode}function Mk(e){return!1===e.allowUnusedLabels}function Rk(e){return e>=3&&e<=99||100===e}function Bk(e){return 101<=e&&e<=199||200===e||99===e}function Jk(e,t){return void 0===e[t]?!!e.strict:!!e[t]}function zk(e){return rd(PO.type,(t,n)=>t===e?n:void 0)}function qk(e){return!1!==e.useDefineForClassFields&&yk(e)>=9}function Uk(e,t){return td(t,e,LO)}function Vk(e,t){return td(t,e,jO)}function Wk(e,t){return td(t,e,MO)}function $k(e,t){return t.strictFlag?Jk(e,t.name):t.allowJsFlag?Ak(e):e[t.name]}function Hk(e){const t=e.jsx;return 2===t||4===t||5===t}function Kk(e,t){const n=null==t?void 0:t.pragmas.get("jsximportsource"),r=Qe(n)?n[n.length-1]:n,i=null==t?void 0:t.pragmas.get("jsxruntime"),o=Qe(i)?i[i.length-1]:i;if("classic"!==(null==o?void 0:o.arguments.factory))return 4===e.jsx||5===e.jsx||e.jsxImportSource||r||"automatic"===(null==o?void 0:o.arguments.factory)?(null==r?void 0:r.arguments.factory)||e.jsxImportSource||"react":void 0}function Gk(e,t){return e?`${e}/${5===t.jsx?"jsx-dev-runtime":"jsx-runtime"}`:void 0}function Xk(e){let t=!1;for(let n=0;ni,getSymlinkedDirectories:()=>n,getSymlinkedDirectoriesByRealpath:()=>r,setSymlinkedFile:(e,t)=>(i||(i=new Map)).set(e,t),setSymlinkedDirectory:(i,o)=>{let a=Uo(i,e,t);IT(a)||(a=Wo(a),!1===o||(null==n?void 0:n.has(a))||(r||(r=$e())).add(o.realPath,i),(n||(n=new Map)).set(a,o))},setSymlinksFromResolutions(e,t,n){un.assert(!o),o=!0,e(e=>a(this,e.resolvedModule)),t(e=>a(this,e.resolvedTypeReferenceDirective)),n.forEach(e=>a(this,e.resolvedTypeReferenceDirective))},hasProcessedResolutions:()=>o,setSymlinksFromResolution(e){a(this,e)},hasAnySymlinks:function(){return!!(null==i?void 0:i.size)||!!n&&!!rd(n,e=>!!e)}};function a(n,r){if(!r||!r.originalPath||!r.resolvedFileName)return;const{resolvedFileName:i,originalPath:o}=r;n.setSymlinkedFile(Uo(o,e,t),i);const[a,s]=function(e,t,n,r){const i=Ao(Bo(e,n)),o=Ao(Bo(t,n));let a=!1;for(;i.length>=2&&o.length>=2&&!Yk(i[i.length-2],r)&&!Yk(o[o.length-2],r)&&r(i[i.length-1])===r(o[o.length-1]);)i.pop(),o.pop(),a=!0;return a?[Io(i),Io(o)]:void 0}(i,o,e,t)||l;a&&s&&n.setSymlinkedDirectory(s,{real:Wo(a),realPath:Wo(Uo(a,e,t))})}}function Yk(e,t){return void 0!==e&&("node_modules"===t(e)||Gt(e,"@"))}function Zk(e,t,n){const r=Qt(e,t,n);return void 0===r?void 0:fo((i=r).charCodeAt(0))?i.slice(1):void 0;var i}var eS=/[^\w\s/]/g;function tS(e){return e.replace(eS,nS)}function nS(e){return"\\"+e}var rS=[42,63],iS=`(?!(?:${["node_modules","bower_components","jspm_packages"].join("|")})(?:/|$))`,oS={singleAsteriskRegexFragment:"(?:[^./]|(?:\\.(?!min\\.js$))?)*",doubleAsteriskRegexFragment:`(?:/${iS}[^/.][^/]*)*?`,replaceWildcardCharacter:e=>fS(e,oS.singleAsteriskRegexFragment)},aS={singleAsteriskRegexFragment:"[^/]*",doubleAsteriskRegexFragment:`(?:/${iS}[^/.][^/]*)*?`,replaceWildcardCharacter:e=>fS(e,aS.singleAsteriskRegexFragment)},sS={singleAsteriskRegexFragment:"[^/]*",doubleAsteriskRegexFragment:"(?:/.+?)?",replaceWildcardCharacter:e=>fS(e,sS.singleAsteriskRegexFragment)},cS={files:oS,directories:aS,exclude:sS};function lS(e,t,n){const r=_S(e,t,n);if(r&&r.length)return`^(?:${r.map(e=>`(?:${e})`).join("|")})${"exclude"===n?"(?:$|/)":"$"}`}function _S(e,t,n){if(void 0!==e&&0!==e.length)return O(e,e=>e&&pS(e,t,n,cS[n]))}function uS(e){return!/[.*?]/.test(e)}function dS(e,t,n){const r=e&&pS(e,t,n,cS[n]);return r&&`^(?:${r})${"exclude"===n?"(?:$|/)":"$"}`}function pS(e,t,n,{singleAsteriskRegexFragment:r,doubleAsteriskRegexFragment:i,replaceWildcardCharacter:o}=cS[n]){let a="",s=!1;const c=Ro(e,t),l=ve(c);if("exclude"!==n&&"**"===l)return;c[0]=Vo(c[0]),uS(l)&&c.push("**","*");let _=0;for(let e of c){if("**"===e)a+=i;else if("directories"===n&&(a+="(?:",_++),s&&(a+=lo),"exclude"!==n){let t="";42===e.charCodeAt(0)?(t+="(?:[^./]"+r+")?",e=e.substr(1)):63===e.charCodeAt(0)&&(t+="[^./]",e=e.substr(1)),t+=e.replace(eS,o),t!==e&&(a+=iS),a+=t}else a+=e.replace(eS,o);s=!0}for(;_>0;)a+=")?",_--;return a}function fS(e,t){return"*"===e?t:"?"===e?"[^/]":"\\"+e}function mS(e,t,n,r,i){e=Jo(e);const o=jo(i=Jo(i),e);return{includeFilePatterns:E(_S(n,o,"files"),e=>`^${e}$`),includeFilePattern:lS(n,o,"files"),includeDirectoryPattern:lS(n,o,"directories"),excludePattern:lS(t,o,"exclude"),basePaths:yS(e,n,r)}}function gS(e,t){return new RegExp(e,t?"":"i")}function hS(e,t,n,r,i,o,a,s,c){e=Jo(e),o=Jo(o);const l=mS(e,n,r,i,o),_=l.includeFilePatterns&&l.includeFilePatterns.map(e=>gS(e,i)),u=l.includeDirectoryPattern&&gS(l.includeDirectoryPattern,i),d=l.excludePattern&&gS(l.excludePattern,i),p=_?_.map(()=>[]):[[]],f=new Map,m=Wt(i);for(const e of l.basePaths)g(e,jo(o,e),a);return I(p);function g(e,n,r){const i=m(c(n));if(f.has(i))return;f.set(i,!0);const{files:o,directories:a}=s(e);for(const r of _e(o,Ct)){const i=jo(e,r),o=jo(n,r);if((!t||So(i,t))&&(!d||!d.test(o)))if(_){const e=k(_,e=>e.test(o));-1!==e&&p[e].push(i)}else p[0].push(i)}if(void 0===r||0!==--r)for(const t of _e(a,Ct)){const i=jo(e,t),o=jo(n,t);u&&!u.test(o)||d&&d.test(o)||g(i,o,r)}}}function yS(e,t,n){const r=[e];if(t){const i=[];for(const n of t){const t=go(n)?n:Jo(jo(e,n));i.push(vS(t))}i.sort(wt(!n));for(const t of i)v(r,r=>!ea(r,t,e,!n))&&r.push(t)}return r}function vS(e){const t=C(e,rS);return t<0?xo(e)?Vo(Do(e)):e:e.substring(0,e.lastIndexOf(lo,t))}function bS(e,t){return t||xS(e)||3}function xS(e){switch(e.substr(e.lastIndexOf(".")).toLowerCase()){case".js":case".cjs":case".mjs":return 1;case".jsx":return 2;case".ts":case".cts":case".mts":return 3;case".tsx":return 4;case".json":return 6;default:return 0}}var kS=[[".ts",".tsx",".d.ts"],[".cts",".d.cts"],[".mts",".d.mts"]],SS=I(kS),TS=[...kS,[".json"]],CS=[".d.ts",".d.cts",".d.mts",".cts",".mts",".ts",".tsx"],wS=I([[".js",".jsx"],[".mjs"],[".cjs"]]),NS=[[".ts",".tsx",".d.ts",".js",".jsx"],[".cts",".d.cts",".cjs"],[".mts",".d.mts",".mjs"]],DS=[...NS,[".json"]],FS=[".d.ts",".d.cts",".d.mts"],ES=[".ts",".cts",".mts",".tsx"],PS=[".mts",".d.mts",".mjs",".cts",".d.cts",".cjs"];function AS(e,t){const n=e&&Ak(e);if(!t||0===t.length)return n?NS:kS;const r=n?NS:kS,i=I(r);return[...r,...B(t,e=>{return 7===e.scriptKind||n&&(1===(t=e.scriptKind)||2===t)&&!i.includes(e.extension)?[e.extension]:void 0;var t})]}function IS(e,t){return e&&Nk(e)?t===NS?DS:t===kS?TS:[...t,[".json"]]:t}function OS(e){return $(wS,t=>ko(e,t))}function LS(e){return $(SS,t=>ko(e,t))}function jS(e){return $(ES,t=>ko(e,t))&&!uO(e)}var MS=(e=>(e[e.Minimal=0]="Minimal",e[e.Index=1]="Index",e[e.JsExtension=2]="JsExtension",e[e.TsExtension=3]="TsExtension",e))(MS||{});function RS(e,t,n,r){const i=bk(n),o=3<=i&&i<=99;return"js"===e||99===t&&o?MR(n)&&2!==a()?3:2:"minimal"===e?0:"index"===e?1:MR(n)?a():r&&function({imports:e},t=en(OS,LS)){return f(e,({text:e})=>vo(e)&&!So(e,PS)?t(e):void 0)||!1}(r)?2:0;function a(){let e=!1;const i=(null==r?void 0:r.imports.length)?r.imports:r&&Fm(r)?function(e){let t,n=0;for(const r of e.statements){if(n>3)break;Jm(r)?t=K(t,r.declarationList.declarations.map(e=>e.initializer)):HF(r)&&Lm(r.expression,!0)?t=ie(t,r.expression):n++}return t||l}(r).map(e=>e.arguments[0]):l;for(const a of i)if(vo(a.text)){if(o&&1===t&&99===dV(r,a,n))continue;if(So(a.text,PS))continue;if(LS(a.text))return 3;OS(a.text)&&(e=!0)}return e?2:0}}function BS(e,t,n){if(!e)return!1;const r=AS(t,n);for(const n of I(IS(t,r)))if(ko(e,n))return!0;return!1}function JS(e){const t=e.match(/\//g);return t?t.length:0}function zS(e,t){return vt(JS(e),JS(t))}var qS=[".d.ts",".d.mts",".d.cts",".mjs",".mts",".cjs",".cts",".ts",".js",".tsx",".jsx",".json"];function US(e){for(const t of qS){const n=VS(e,t);if(void 0!==n)return n}return e}function VS(e,t){return ko(e,t)?WS(e,t):void 0}function WS(e,t){return e.substring(0,e.length-t.length)}function $S(e,t){return Ho(e,t,qS,!1)}function HS(e){const t=e.indexOf("*");return-1===t?e:-1!==e.indexOf("*",t+1)?void 0:{prefix:e.substr(0,t),suffix:e.substr(t+1)}}var KS=new WeakMap;function GS(e){let t,n,r=KS.get(e);if(void 0!==r)return r;const i=Ee(e);for(const e of i){const r=HS(e);void 0!==r&&("string"==typeof r?(t??(t=new Set)).add(r):(n??(n=[])).push(r))}return KS.set(e,r={matchableStringSet:t,patterns:n}),r}function XS(e){return!(e>=0)}function QS(e){return".ts"===e||".tsx"===e||".d.ts"===e||".cts"===e||".mts"===e||".d.mts"===e||".d.cts"===e||Gt(e,".d.")&&Mt(e,".ts")}function YS(e){return QS(e)||".json"===e}function ZS(e){const t=tT(e);return void 0!==t?t:un.fail(`File ${e} has unknown extension.`)}function eT(e){return void 0!==tT(e)}function tT(e){return b(qS,t=>ko(e,t))}function nT(e,t){return e.checkJsDirective?e.checkJsDirective.enabled:t.checkJs}var rT={files:l,directories:l};function iT(e,t){const{matchableStringSet:n,patterns:r}=e;return(null==n?void 0:n.has(t))?t:void 0!==r&&0!==r.length?Kt(r,e=>e,t):void 0}function oT(e,t){const n=e.indexOf(t);return un.assert(-1!==n),e.slice(n)}function aT(e,...t){return t.length?(e.relatedInformation||(e.relatedInformation=[]),un.assert(e.relatedInformation!==l,"Diagnostic had empty array singleton for related info, but is still being constructed!"),e.relatedInformation.push(...t),e):e}function sT(e,t){un.assert(0!==e.length);let n=t(e[0]),r=n;for(let i=1;ir&&(r=o)}return{min:n,max:r}}function cT(e){return{pos:zd(e),end:e.end}}function lT(e,t){return{pos:t.pos-1,end:Math.min(e.text.length,Qa(e.text,t.end)+1)}}function _T(e,t,n){return dT(e,t,n,!1)}function uT(e,t,n){return dT(e,t,n,!0)}function dT(e,t,n,r){return t.skipLibCheck&&e.isDeclarationFile||t.skipDefaultLibCheck&&e.hasNoDefaultLib||!r&&t.noCheck||n.isSourceOfProjectReferenceRedirect(e.fileName)||!pT(e,t)}function pT(e,t){if(e.checkJsDirective&&!1===e.checkJsDirective.enabled)return!1;if(3===e.scriptKind||4===e.scriptKind||5===e.scriptKind)return!0;const n=(1===e.scriptKind||2===e.scriptKind)&&nT(e,t);return xd(e,t.checkJs)||n||7===e.scriptKind}function fT(e,t){return e===t||"object"==typeof e&&null!==e&&"object"==typeof t&&null!==t&&je(e,t,fT)}function mT(e){let t;switch(e.charCodeAt(1)){case 98:case 66:t=1;break;case 111:case 79:t=3;break;case 120:case 88:t=4;break;default:const n=e.length-1;let r=0;for(;48===e.charCodeAt(r);)r++;return e.slice(r,n)||"0"}const n=e.length-1,r=(n-2)*t,i=new Uint16Array((r>>>4)+(15&r?1:0));for(let r=n-1,o=0;r>=2;r--,o+=t){const t=o>>>4,n=e.charCodeAt(r),a=(n<=57?n-48:10+n-(n<=70?65:97))<<(15&o);i[t]|=a;const s=a>>>16;s&&(i[t+1]|=s)}let o="",a=i.length-1,s=!0;for(;s;){let e=0;s=!1;for(let t=a;t>=0;t--){const n=e<<16|i[t],r=n/10|0;i[t]=r,e=n-10*r,r&&!s&&(a=t,s=!0)}o=e+o}return o}function gT({negative:e,base10Value:t}){return(e&&"0"!==t?"-":"")+t}function hT(e){if(vT(e,!1))return yT(e)}function yT(e){const t=e.startsWith("-");return{negative:t,base10Value:mT(`${t?e.slice(1):e}n`)}}function vT(e,t){if(""===e)return!1;const n=gs(99,!1);let r=!0;n.setOnError(()=>r=!1),n.setText(e+"n");let i=n.scan();const o=41===i;o&&(i=n.scan());const a=n.getTokenFlags();return r&&10===i&&n.getTokenEnd()===e.length+1&&!(512&a)&&(!t||e===gT({negative:o,base10Value:mT(n.getTokenValue())}))}function bT(e){return!!(33554432&e.flags)||Im(e)||km(e)||function(e){if(80!==e.kind)return!1;const t=uc(e.parent,e=>{switch(e.kind){case 299:return!0;case 212:case 234:return!1;default:return"quit"}});return 119===(null==t?void 0:t.token)||265===(null==t?void 0:t.parent.kind)}(e)||function(e){for(;80===e.kind||212===e.kind;)e=e.parent;if(168!==e.kind)return!1;if(Nv(e.parent,64))return!0;const t=e.parent.parent.kind;return 265===t||188===t}(e)||!(bm(e)||function(e){return aD(e)&&iP(e.parent)&&e.parent.name===e}(e))}function xT(e){return RD(e)&&aD(e.typeName)}function kT(e,t=mt){if(e.length<2)return!0;const n=e[0];for(let r=1,i=e.length;re.includes(t))}function OT(e){if(!e.parent)return;switch(e.kind){case 169:const{parent:t}=e;return 196===t.kind?void 0:t.typeParameters;case 170:return e.parent.parameters;case 205:case 240:return e.parent.templateSpans;case 171:{const{parent:t}=e;return SI(t)?t.modifiers:void 0}case 299:return e.parent.heritageClauses}const{parent:t}=e;if(Cu(e))return TP(e.parent)?void 0:e.parent.tags;switch(t.kind){case 188:case 265:return h_(e)?t.members:void 0;case 193:case 194:return t.types;case 190:case 210:case 357:case 276:case 280:return t.elements;case 211:case 293:return t.properties;case 214:case 215:return b_(e)?t.typeArguments:t.expression===e?void 0:t.arguments;case 285:case 289:return hu(e)?t.children:void 0;case 287:case 286:return b_(e)?t.typeArguments:void 0;case 242:case 297:case 298:case 269:case 308:return t.statements;case 270:return t.clauses;case 264:case 232:return __(e)?t.members:void 0;case 267:return aP(e)?t.members:void 0}}function LT(e){if(!e.typeParameters){if($(e.parameters,e=>!fv(e)))return!0;if(220!==e.kind){const t=fe(e.parameters);if(!t||!cv(t))return!0}}return!1}function jT(e){return"Infinity"===e||"-Infinity"===e||"NaN"===e}function MT(e){return 261===e.kind&&300===e.parent.kind}function RT(e){return 219===e.kind||220===e.kind}function BT(e){return e.replace(/\$/g,()=>"\\$")}function JT(e){return(+e).toString()===e}function zT(e,t,n,r,i){const o=i&&"new"===e;return!o&&ms(e,t)?mw.createIdentifier(e):!r&&!o&&JT(e)&&+e>=0?mw.createNumericLiteral(+e):mw.createStringLiteral(e,!!n)}function qT(e){return!!(262144&e.flags&&e.isThisType)}function UT(e){let t,n=0,r=0,i=0,o=0;var a;(a=t||(t={}))[a.BeforeNodeModules=0]="BeforeNodeModules",a[a.NodeModules=1]="NodeModules",a[a.Scope=2]="Scope",a[a.PackageContent=3]="PackageContent";let s=0,c=0,l=0;for(;c>=0;)switch(s=c,c=e.indexOf("/",s+1),l){case 0:e.indexOf(KM,s)===s&&(n=s,r=c,l=1);break;case 1:case 2:1===l&&"@"===e.charAt(s+1)?l=2:(i=c,l=3);break;case 3:l=e.indexOf(KM,s)===s?1:3}return o=s,l>1?{topLevelNodeModulesIndex:n,topLevelPackageNameIndex:r,packageRootIndex:i,fileNameIndex:o}:void 0}function VT(e){switch(e.kind){case 169:case 264:case 265:case 266:case 267:case 347:case 339:case 341:return!0;case 274:return 156===e.phaseModifier;case 277:return 156===e.parent.parent.phaseModifier;case 282:return e.parent.parent.isTypeOnly;default:return!1}}function WT(e){return mE(e)||WF(e)||uE(e)||dE(e)||pE(e)||VT(e)||gE(e)&&!fp(e)&&!pp(e)}function $T(e){if(!Nl(e))return!1;const{isBracketed:t,typeExpression:n}=e;return t||!!n&&317===n.type.kind}function HT(e,t){if(0===e.length)return!1;const n=e.charCodeAt(0);return 35===n?e.length>1&&ps(e.charCodeAt(1),t):ps(n,t)}function KT(e){var t;return 0===(null==(t=Hw(e))?void 0:t.kind)}function GT(e){return Em(e)&&(e.type&&317===e.type.kind||Ec(e).some($T))}function XT(e){switch(e.kind){case 173:case 172:return!!e.questionToken;case 170:return!!e.questionToken||GT(e);case 349:case 342:return $T(e);default:return!1}}function QT(e){const t=e.kind;return(212===t||213===t)&&MF(e.expression)}function YT(e){return Em(e)&&yF(e)&&Du(e)&&!!el(e)}function ZT(e){return un.checkDefined(eC(e))}function eC(e){const t=el(e);return t&&t.typeExpression&&t.typeExpression.type}function tC(e){return aD(e)?e.escapedText:iC(e)}function nC(e){return aD(e)?gc(e):oC(e)}function rC(e){const t=e.kind;return 80===t||296===t}function iC(e){return`${e.namespace.escapedText}:${gc(e.name)}`}function oC(e){return`${gc(e.namespace)}:${gc(e.name)}`}function aC(e){return aD(e)?gc(e):oC(e)}function sC(e){return!!(8576&e.flags)}function cC(e){return 8192&e.flags?e.escapedName:384&e.flags?fc(""+e.value):un.fail()}function lC(e){return!!e&&(dF(e)||pF(e)||NF(e))}function _C(e){return void 0!==e&&!!mV(e.attributes)}var uC=String.prototype.replace;function dC(e,t){return uC.call(e,"*",t)}function pC(e){return aD(e.name)?e.name.escapedText:fc(e.name.text)}function fC(e){switch(e.kind){case 169:case 170:case 173:case 172:case 186:case 185:case 180:case 181:case 182:case 175:case 174:case 176:case 177:case 178:case 179:case 184:case 183:case 187:case 188:case 189:case 190:case 193:case 194:case 197:case 191:case 192:case 198:case 199:case 195:case 196:case 204:case 206:case 203:case 329:case 330:case 347:case 339:case 341:case 346:case 345:case 325:case 326:case 327:case 342:case 349:case 318:case 316:case 315:case 313:case 314:case 323:case 319:case 310:case 334:case 336:case 335:case 351:case 344:case 200:case 201:case 263:case 242:case 269:case 244:case 245:case 246:case 247:case 248:case 249:case 250:case 251:case 252:case 253:case 254:case 255:case 256:case 257:case 258:case 259:case 261:case 209:case 264:case 265:case 266:case 267:case 268:case 273:case 272:case 279:case 278:case 243:case 260:case 283:return!0}return!1}function mC(e,t=!1,n=!1,r=!1){return{value:e,isSyntacticallyString:t,resolvedOtherFiles:n,hasExternalReferences:r}}function gC({evaluateElementAccessExpression:e,evaluateEntityNameExpression:t}){return function n(r,i){let o=!1,a=!1,s=!1;switch((r=ah(r)).kind){case 225:const c=n(r.operand,i);if(a=c.resolvedOtherFiles,s=c.hasExternalReferences,"number"==typeof c.value)switch(r.operator){case 40:return mC(c.value,o,a,s);case 41:return mC(-c.value,o,a,s);case 55:return mC(~c.value,o,a,s)}break;case 227:{const e=n(r.left,i),t=n(r.right,i);if(o=(e.isSyntacticallyString||t.isSyntacticallyString)&&40===r.operatorToken.kind,a=e.resolvedOtherFiles||t.resolvedOtherFiles,s=e.hasExternalReferences||t.hasExternalReferences,"number"==typeof e.value&&"number"==typeof t.value)switch(r.operatorToken.kind){case 52:return mC(e.value|t.value,o,a,s);case 51:return mC(e.value&t.value,o,a,s);case 49:return mC(e.value>>t.value,o,a,s);case 50:return mC(e.value>>>t.value,o,a,s);case 48:return mC(e.value<=2)break;case 175:case 177:case 178:case 179:case 263:if(3&d&&"arguments"===I){w=n;break e}break;case 219:if(3&d&&"arguments"===I){w=n;break e}if(16&d){const e=s.name;if(e&&I===e.escapedText){w=s.symbol;break e}}break;case 171:s.parent&&170===s.parent.kind&&(s=s.parent),s.parent&&(__(s.parent)||264===s.parent.kind)&&(s=s.parent);break;case 347:case 339:case 341:case 352:const o=Wg(s);o&&(s=o.parent);break;case 170:N&&(N===s.initializer||N===s.name&&k_(N))&&(E||(E=s));break;case 209:N&&(N===s.initializer||N===s.name&&k_(N))&&Qh(s)&&!E&&(E=s);break;case 196:if(262144&d){const e=s.typeParameter.name;if(e&&I===e.escapedText){w=s.typeParameter.symbol;break e}}break;case 282:N&&N===s.propertyName&&s.parent.parent.moduleSpecifier&&(s=s.parent.parent.parent)}y(s,N)&&(D=s),N=s,s=UP(s)?Jg(s)||s.parent:(BP(s)||JP(s))&&qg(s)||s.parent}if(!b||!w||D&&w===D.symbol||(w.isReferenced|=d),!w){if(N&&(un.assertNode(N,sP),N.commonJsModuleIndicator&&"exports"===I&&d&N.symbol.flags))return N.symbol;x||(w=a(o,I,d))}if(!w&&C&&Em(C)&&C.parent&&Lm(C.parent,!1))return t;if(f){if(F&&l(C,I,F,w))return;w?u(C,w,d,N,E,A):_(C,c,d,f)}return w};function g(t,n,r){const i=yk(e),o=n;if(TD(r)&&o.body&&t.valueDeclaration&&t.valueDeclaration.pos>=o.body.pos&&t.valueDeclaration.end<=o.body.end&&i>=2){let e=c(o);return void 0===e&&(e=d(o.parameters,function(e){return a(e.name)||!!e.initializer&&a(e.initializer)})||!1,s(o,e)),!e}return!1;function a(e){switch(e.kind){case 220:case 219:case 263:case 177:return!1;case 175:case 178:case 179:case 304:return a(e.name);case 173:return Fv(e)?!f:a(e.name);default:return xl(e)||hl(e)?i<7:lF(e)&&e.dotDotDotToken&&sF(e.parent)?i<4:!b_(e)&&(XI(e,a)||!1)}}}function h(e,t){return 220!==e.kind&&219!==e.kind?zD(e)||(o_(e)||173===e.kind&&!Dv(e))&&(!t||t!==e.name):!(t&&t===e.name||!e.asteriskToken&&!Nv(e,1024)&&om(e))}function y(e,t){switch(e.kind){case 170:return!!t&&t===e.name;case 263:case 264:case 265:case 267:case 266:case 268:return!0;default:return!1}}function v(e,t){if(e.declarations)for(const n of e.declarations)if(169===n.kind&&(UP(n.parent)?Vg(n.parent):n.parent)===t)return!(UP(n.parent)&&b(n.parent.parent.tags,Dg));return!1}}function bC(e,t=!0){switch(un.type(e),e.kind){case 112:case 97:case 9:case 11:case 15:return!0;case 10:return t;case 225:return 41===e.operator?zN(e.operand)||t&&qN(e.operand):40===e.operator&&zN(e.operand);default:return!1}}function xC(e){for(;218===e.kind;)e=e.expression;return e}function kC(e){switch(un.type(e),e.kind){case 170:case 172:case 173:case 209:case 212:case 213:case 227:case 261:case 278:case 304:case 305:case 342:case 349:return!0;default:return!1}}function SC(e){const t=uc(e,xE);return!!t&&!t.importClause}var TC=["assert","assert/strict","async_hooks","buffer","child_process","cluster","console","constants","crypto","dgram","diagnostics_channel","dns","dns/promises","domain","events","fs","fs/promises","http","http2","https","inspector","inspector/promises","module","net","os","path","path/posix","path/win32","perf_hooks","process","punycode","querystring","readline","readline/promises","repl","stream","stream/consumers","stream/promises","stream/web","string_decoder","sys","test/mock_loader","timers","timers/promises","tls","trace_events","tty","url","util","util/types","v8","vm","wasi","worker_threads","zlib"],CC=new Set(TC),wC=new Set(["node:sea","node:sqlite","node:test","node:test/reporters"]),NC=new Set([...TC,...TC.map(e=>`node:${e}`),...wC]);function DC(e,t,n,r){const i=Em(e),o=/import|require/g;for(;null!==o.exec(e.text);){const a=FC(e,o.lastIndex,t);if(i&&Lm(a,n))r(a,a.arguments[0]);else if(_f(a)&&a.arguments.length>=1&&(!n||ju(a.arguments[0])))r(a,a.arguments[0]);else if(t&&df(a))r(a,a.argument.literal);else if(t&&XP(a)){const e=kg(a);e&&UN(e)&&e.text&&r(a,e)}}}function FC(e,t,n){const r=Em(e);let i=e;const o=e=>{if(e.pos<=t&&(te&&t(e))}function OC(e,t,n,r){let i;return function e(t,o,a){if(r){const e=r(t,a);if(e)return e}let s;return d(o,(e,t)=>{if(e&&(null==i?void 0:i.has(e.sourceFile.path)))return void(s??(s=new Set)).add(e);const r=n(e,a,t);if(r||!e)return r;(i||(i=new Set)).add(e.sourceFile.path)})||d(o,t=>t&&!(null==s?void 0:s.has(t))?e(t.commandLine.projectReferences,t.references,t):void 0)}(e,t,void 0)}function LC(e,t,n){return e&&(r=n,Vf(e,t,e=>_F(e.initializer)?b(e.initializer.elements,e=>UN(e)&&e.text===r):void 0));var r}function jC(e,t,n){return MC(e,t,e=>UN(e.initializer)&&e.initializer.text===n?e.initializer:void 0)}function MC(e,t,n){return Vf(e,t,n)}function RC(e,t=!0){const n=e&&JC(e);return n&&!t&&UC(n),FT(n,!1)}function BC(e,t,n){let r=n(e);return r?hw(r,e):r=JC(e,n),r&&!t&&UC(r),r}function JC(e,t){const n=t?e=>BC(e,!0,t):RC,r=vJ(e,n,void 0,t?e=>e&&qC(e,!0,t):e=>e&&zC(e),n);return r===e?xI(UN(e)?hw(mw.createStringLiteralFromNode(e),e):zN(e)?hw(mw.createNumericLiteral(e.text,e.numericLiteralFlags),e):mw.cloneNode(e),e):(r.parent=void 0,r)}function zC(e,t=!0){if(e){const n=mw.createNodeArray(e.map(e=>RC(e,t)),e.hasTrailingComma);return xI(n,e),n}return e}function qC(e,t,n){return mw.createNodeArray(e.map(e=>BC(e,t,n)),e.hasTrailingComma)}function UC(e){VC(e),WC(e)}function VC(e){$C(e,1024,HC)}function WC(e){$C(e,2048,vx)}function $C(e,t,n){kw(e,t);const r=n(e);r&&$C(r,t,n)}function HC(e){return XI(e,e=>e)}function KC(){let e,t,n,r,i;return{createBaseSourceFileNode:function(e){return new(i||(i=Mx.getSourceFileConstructor()))(e,-1,-1)},createBaseIdentifierNode:function(e){return new(n||(n=Mx.getIdentifierConstructor()))(e,-1,-1)},createBasePrivateIdentifierNode:function(e){return new(r||(r=Mx.getPrivateIdentifierConstructor()))(e,-1,-1)},createBaseTokenNode:function(e){return new(t||(t=Mx.getTokenConstructor()))(e,-1,-1)},createBaseNode:function(t){return new(e||(e=Mx.getNodeConstructor()))(t,-1,-1)}}}function GC(e){let t,n;return{getParenthesizeLeftSideOfBinaryForOperator:function(e){t||(t=new Map);let n=t.get(e);return n||(n=t=>o(e,t),t.set(e,n)),n},getParenthesizeRightSideOfBinaryForOperator:function(e){n||(n=new Map);let t=n.get(e);return t||(t=t=>a(e,void 0,t),n.set(e,t)),t},parenthesizeLeftSideOfBinary:o,parenthesizeRightSideOfBinary:a,parenthesizeExpressionOfComputedPropertyName:function(t){return SA(t)?e.createParenthesizedExpression(t):t},parenthesizeConditionOfConditionalExpression:function(t){const n=sy(228,58);return 1!==vt(iy(Sl(t)),n)?e.createParenthesizedExpression(t):t},parenthesizeBranchOfConditionalExpression:function(t){return SA(Sl(t))?e.createParenthesizedExpression(t):t},parenthesizeExpressionOfExportDefault:function(t){const n=Sl(t);let r=SA(n);if(!r)switch(Dx(n,!1).kind){case 232:case 219:r=!0}return r?e.createParenthesizedExpression(t):t},parenthesizeExpressionOfNew:function(t){const n=Dx(t,!0);switch(n.kind){case 214:return e.createParenthesizedExpression(t);case 215:return n.arguments?t:e.createParenthesizedExpression(t)}return s(t)},parenthesizeLeftSideOfAccess:s,parenthesizeOperandOfPostfixUnary:function(t){return R_(t)?t:xI(e.createParenthesizedExpression(t),t)},parenthesizeOperandOfPrefixUnary:function(t){return J_(t)?t:xI(e.createParenthesizedExpression(t),t)},parenthesizeExpressionsOfCommaDelimitedList:function(t){const n=A(t,c);return xI(e.createNodeArray(n,t.hasTrailingComma),t)},parenthesizeExpressionForDisallowedComma:c,parenthesizeExpressionOfExpressionStatement:function(t){const n=Sl(t);if(fF(n)){const r=n.expression,i=Sl(r).kind;if(219===i||220===i){const i=e.updateCallExpression(n,xI(e.createParenthesizedExpression(r),r),n.typeArguments,n.arguments);return e.restoreOuterExpressions(t,i,8)}}const r=Dx(n,!1).kind;return 211===r||219===r?xI(e.createParenthesizedExpression(t),t):t},parenthesizeConciseBodyOfArrowFunction:function(t){return VF(t)||!SA(t)&&211!==Dx(t,!1).kind?t:xI(e.createParenthesizedExpression(t),t)},parenthesizeCheckTypeOfConditionalType:l,parenthesizeExtendsTypeOfConditionalType:function(t){return 195===t.kind?e.createParenthesizedType(t):t},parenthesizeConstituentTypesOfUnionType:function(t){return e.createNodeArray(A(t,_))},parenthesizeConstituentTypeOfUnionType:_,parenthesizeConstituentTypesOfIntersectionType:function(t){return e.createNodeArray(A(t,u))},parenthesizeConstituentTypeOfIntersectionType:u,parenthesizeOperandOfTypeOperator:d,parenthesizeOperandOfReadonlyTypeOperator:function(t){return 199===t.kind?e.createParenthesizedType(t):d(t)},parenthesizeNonArrayTypeOfPostfixType:p,parenthesizeElementTypesOfTupleType:function(t){return e.createNodeArray(A(t,f))},parenthesizeElementTypeOfTupleType:f,parenthesizeTypeOfOptionalType:function(t){return m(t)?e.createParenthesizedType(t):p(t)},parenthesizeTypeArguments:function(t){if($(t))return e.createNodeArray(A(t,h))},parenthesizeLeadingTypeArgument:g};function r(e){if(Al((e=Sl(e)).kind))return e.kind;if(227===e.kind&&40===e.operatorToken.kind){if(void 0!==e.cachedLiteralKind)return e.cachedLiteralKind;const t=r(e.left),n=Al(t)&&t===r(e.right)?t:0;return e.cachedLiteralKind=n,n}return 0}function i(t,n,i,o){return 218===Sl(n).kind?n:function(e,t,n,i){const o=sy(227,e),a=ry(227,e),s=Sl(t);if(!n&&220===t.kind&&o>3)return!0;switch(vt(iy(s),o)){case-1:return!(!n&&1===a&&230===t.kind);case 1:return!1;case 0:if(n)return 1===a;if(NF(s)&&s.operatorToken.kind===e){if(function(e){return 42===e||52===e||51===e||53===e||28===e}(e))return!1;if(40===e){const e=i?r(i):0;if(Al(e)&&e===r(s))return!1}}return 0===ny(s)}}(t,n,i,o)?e.createParenthesizedExpression(n):n}function o(e,t){return i(e,t,!0)}function a(e,t,n){return i(e,n,!1,t)}function s(t,n){const r=Sl(t);return!R_(r)||215===r.kind&&!r.arguments||!n&&hl(r)?xI(e.createParenthesizedExpression(t),t):t}function c(t){return iy(Sl(t))>sy(227,28)?t:xI(e.createParenthesizedExpression(t),t)}function l(t){switch(t.kind){case 185:case 186:case 195:return e.createParenthesizedType(t)}return t}function _(t){switch(t.kind){case 193:case 194:return e.createParenthesizedType(t)}return l(t)}function u(t){switch(t.kind){case 193:case 194:return e.createParenthesizedType(t)}return _(t)}function d(t){return 194===t.kind?e.createParenthesizedType(t):u(t)}function p(t){switch(t.kind){case 196:case 199:case 187:return e.createParenthesizedType(t)}return d(t)}function f(t){return m(t)?e.createParenthesizedType(t):t}function m(e){return hP(e)?e.postfix:WD(e)||BD(e)||JD(e)||eF(e)?m(e.type):XD(e)?m(e.falseType):KD(e)||GD(e)?m(ve(e.types)):!!QD(e)&&!!e.typeParameter.constraint&&m(e.typeParameter.constraint)}function g(t){return x_(t)&&t.typeParameters?e.createParenthesizedType(t):t}function h(e,t){return 0===t?g(e):e}}var XC={getParenthesizeLeftSideOfBinaryForOperator:e=>st,getParenthesizeRightSideOfBinaryForOperator:e=>st,parenthesizeLeftSideOfBinary:(e,t)=>t,parenthesizeRightSideOfBinary:(e,t,n)=>n,parenthesizeExpressionOfComputedPropertyName:st,parenthesizeConditionOfConditionalExpression:st,parenthesizeBranchOfConditionalExpression:st,parenthesizeExpressionOfExportDefault:st,parenthesizeExpressionOfNew:e=>nt(e,R_),parenthesizeLeftSideOfAccess:e=>nt(e,R_),parenthesizeOperandOfPostfixUnary:e=>nt(e,R_),parenthesizeOperandOfPrefixUnary:e=>nt(e,J_),parenthesizeExpressionsOfCommaDelimitedList:e=>nt(e,Pl),parenthesizeExpressionForDisallowedComma:st,parenthesizeExpressionOfExpressionStatement:st,parenthesizeConciseBodyOfArrowFunction:st,parenthesizeCheckTypeOfConditionalType:st,parenthesizeExtendsTypeOfConditionalType:st,parenthesizeConstituentTypesOfUnionType:e=>nt(e,Pl),parenthesizeConstituentTypeOfUnionType:st,parenthesizeConstituentTypesOfIntersectionType:e=>nt(e,Pl),parenthesizeConstituentTypeOfIntersectionType:st,parenthesizeOperandOfTypeOperator:st,parenthesizeOperandOfReadonlyTypeOperator:st,parenthesizeNonArrayTypeOfPostfixType:st,parenthesizeElementTypesOfTupleType:e=>nt(e,Pl),parenthesizeElementTypeOfTupleType:st,parenthesizeTypeOfOptionalType:st,parenthesizeTypeArguments:e=>e&&nt(e,Pl),parenthesizeLeadingTypeArgument:st};function QC(e){return{convertToFunctionBlock:function(t,n){if(VF(t))return t;const r=e.createReturnStatement(t);xI(r,t);const i=e.createBlock([r],n);return xI(i,t),i},convertToFunctionExpression:function(t){var n;if(!t.body)return un.fail("Cannot convert a FunctionDeclaration without a body");const r=e.createFunctionExpression(null==(n=Dc(t))?void 0:n.filter(e=>!cD(e)&&!lD(e)),t.asteriskToken,t.name,t.typeParameters,t.parameters,t.type,t.body);return hw(r,t),xI(r,t),Fw(t)&&Ew(r,!0),r},convertToClassExpression:function(t){var n;const r=e.createClassExpression(null==(n=t.modifiers)?void 0:n.filter(e=>!cD(e)&&!lD(e)),t.name,t.typeParameters,t.heritageClauses,t.members);return hw(r,t),xI(r,t),Fw(t)&&Ew(r,!0),r},convertToArrayAssignmentElement:t,convertToObjectAssignmentElement:n,convertToAssignmentPattern:r,convertToObjectAssignmentPattern:i,convertToArrayAssignmentPattern:o,convertToAssignmentElementTarget:a};function t(t){if(lF(t)){if(t.dotDotDotToken)return un.assertNode(t.name,aD),hw(xI(e.createSpreadElement(t.name),t),t);const n=a(t.name);return t.initializer?hw(xI(e.createAssignment(n,t.initializer),t),t):n}return nt(t,V_)}function n(t){if(lF(t)){if(t.dotDotDotToken)return un.assertNode(t.name,aD),hw(xI(e.createSpreadAssignment(t.name),t),t);if(t.propertyName){const n=a(t.name);return hw(xI(e.createPropertyAssignment(t.propertyName,t.initializer?e.createAssignment(n,t.initializer):n),t),t)}return un.assertNode(t.name,aD),hw(xI(e.createShorthandPropertyAssignment(t.name,t.initializer),t),t)}return nt(t,v_)}function r(e){switch(e.kind){case 208:case 210:return o(e);case 207:case 211:return i(e)}}function i(t){return sF(t)?hw(xI(e.createObjectLiteralExpression(E(t.elements,n)),t),t):nt(t,uF)}function o(n){return cF(n)?hw(xI(e.createArrayLiteralExpression(E(n.elements,t)),n),n):nt(n,_F)}function a(e){return k_(e)?r(e):nt(e,V_)}}var YC,ZC={convertToFunctionBlock:ut,convertToFunctionExpression:ut,convertToClassExpression:ut,convertToArrayAssignmentElement:ut,convertToObjectAssignmentElement:ut,convertToAssignmentPattern:ut,convertToObjectAssignmentPattern:ut,convertToArrayAssignmentPattern:ut,convertToAssignmentElementTarget:ut},ew=0,tw=(e=>(e[e.None=0]="None",e[e.NoParenthesizerRules=1]="NoParenthesizerRules",e[e.NoNodeConverters=2]="NoNodeConverters",e[e.NoIndentationOnFreshPropertyAccess=4]="NoIndentationOnFreshPropertyAccess",e[e.NoOriginalNode=8]="NoOriginalNode",e))(tw||{}),nw=[];function rw(e){nw.push(e)}function iw(e,t){const n=8&e?st:hw,r=dt(()=>1&e?XC:GC(b)),i=dt(()=>2&e?ZC:QC(b)),o=pt(e=>(t,n)=>Ot(t,e,n)),a=pt(e=>t=>At(e,t)),s=pt(e=>t=>It(t,e)),c=pt(e=>()=>function(e){return k(e)}(e)),_=pt(e=>t=>dr(e,t)),u=pt(e=>(t,n)=>function(e,t,n){return t.type!==n?Oi(dr(e,n),t):t}(e,t,n)),p=pt(e=>(t,n)=>ur(e,t,n)),f=pt(e=>(t,n)=>function(e,t,n){return t.type!==n?Oi(ur(e,n,t.postfix),t):t}(e,t,n)),m=pt(e=>(t,n)=>Or(e,t,n)),g=pt(e=>(t,n,r)=>function(e,t,n=hr(t),r){return t.tagName!==n||t.comment!==r?Oi(Or(e,n,r),t):t}(e,t,n,r)),h=pt(e=>(t,n,r)=>Lr(e,t,n,r)),y=pt(e=>(t,n,r,i)=>function(e,t,n=hr(t),r,i){return t.tagName!==n||t.typeExpression!==r||t.comment!==i?Oi(Lr(e,n,r,i),t):t}(e,t,n,r,i)),b={get parenthesizer(){return r()},get converters(){return i()},baseFactory:t,flags:e,createNodeArray:x,createNumericLiteral:C,createBigIntLiteral:w,createStringLiteral:D,createStringLiteralFromNode:function(e){const t=N(qh(e),void 0);return t.textSourceNode=e,t},createRegularExpressionLiteral:F,createLiteralLikeNode:function(e,t){switch(e){case 9:return C(t,0);case 10:return w(t);case 11:return D(t,void 0);case 12:return $r(t,!1);case 13:return $r(t,!0);case 14:return F(t);case 15:return zt(e,t,void 0,0)}},createIdentifier:A,createTempVariable:I,createLoopVariable:function(e){let t=2;return e&&(t|=8),P("",t,void 0,void 0)},createUniqueName:function(e,t=0,n,r){return un.assert(!(7&t),"Argument out of range: flags"),un.assert(32!=(48&t),"GeneratedIdentifierFlags.FileLevel cannot be set without also setting GeneratedIdentifierFlags.Optimistic"),P(e,3|t,n,r)},getGeneratedNameForNode:O,createPrivateIdentifier:function(e){return Gt(e,"#")||un.fail("First character of private identifier must be #: "+e),L(fc(e))},createUniquePrivateName:function(e,t,n){return e&&!Gt(e,"#")&&un.fail("First character of private identifier must be #: "+e),j(e??"",8|(e?3:1),t,n)},getGeneratedPrivateNameForNode:function(e,t,n){const r=j(dl(e)?pI(!0,t,e,n,gc):`#generated@${ZB(e)}`,4|(t||n?16:0),t,n);return r.original=e,r},createToken:B,createSuper:function(){return B(108)},createThis:J,createNull:z,createTrue:q,createFalse:U,createModifier:V,createModifiersFromModifierFlags:W,createQualifiedName:H,updateQualifiedName:function(e,t,n){return e.left!==t||e.right!==n?Oi(H(t,n),e):e},createComputedPropertyName:K,updateComputedPropertyName:function(e,t){return e.expression!==t?Oi(K(t),e):e},createTypeParameterDeclaration:G,updateTypeParameterDeclaration:X,createParameterDeclaration:Q,updateParameterDeclaration:Y,createDecorator:Z,updateDecorator:function(e,t){return e.expression!==t?Oi(Z(t),e):e},createPropertySignature:ee,updatePropertySignature:te,createPropertyDeclaration:ne,updatePropertyDeclaration:re,createMethodSignature:oe,updateMethodSignature:ae,createMethodDeclaration:se,updateMethodDeclaration:ce,createConstructorDeclaration:_e,updateConstructorDeclaration:ue,createGetAccessorDeclaration:de,updateGetAccessorDeclaration:pe,createSetAccessorDeclaration:fe,updateSetAccessorDeclaration:me,createCallSignature:ge,updateCallSignature:function(e,t,n,r){return e.typeParameters!==t||e.parameters!==n||e.type!==r?T(ge(t,n,r),e):e},createConstructSignature:he,updateConstructSignature:function(e,t,n,r){return e.typeParameters!==t||e.parameters!==n||e.type!==r?T(he(t,n,r),e):e},createIndexSignature:ve,updateIndexSignature:xe,createClassStaticBlockDeclaration:le,updateClassStaticBlockDeclaration:function(e,t){return e.body!==t?((n=le(t))!==(r=e)&&(n.modifiers=r.modifiers),Oi(n,r)):e;var n,r},createTemplateLiteralTypeSpan:ke,updateTemplateLiteralTypeSpan:function(e,t,n){return e.type!==t||e.literal!==n?Oi(ke(t,n),e):e},createKeywordTypeNode:function(e){return B(e)},createTypePredicateNode:Se,updateTypePredicateNode:function(e,t,n,r){return e.assertsModifier!==t||e.parameterName!==n||e.type!==r?Oi(Se(t,n,r),e):e},createTypeReferenceNode:Te,updateTypeReferenceNode:function(e,t,n){return e.typeName!==t||e.typeArguments!==n?Oi(Te(t,n),e):e},createFunctionTypeNode:Ce,updateFunctionTypeNode:function(e,t,n,r){return e.typeParameters!==t||e.parameters!==n||e.type!==r?((i=Ce(t,n,r))!==(o=e)&&(i.modifiers=o.modifiers),T(i,o)):e;var i,o},createConstructorTypeNode:Ne,updateConstructorTypeNode:function(...e){return 5===e.length?Ee(...e):4===e.length?function(e,t,n,r){return Ee(e,e.modifiers,t,n,r)}(...e):un.fail("Incorrect number of arguments specified.")},createTypeQueryNode:Pe,updateTypeQueryNode:function(e,t,n){return e.exprName!==t||e.typeArguments!==n?Oi(Pe(t,n),e):e},createTypeLiteralNode:Ae,updateTypeLiteralNode:function(e,t){return e.members!==t?Oi(Ae(t),e):e},createArrayTypeNode:Ie,updateArrayTypeNode:function(e,t){return e.elementType!==t?Oi(Ie(t),e):e},createTupleTypeNode:Oe,updateTupleTypeNode:function(e,t){return e.elements!==t?Oi(Oe(t),e):e},createNamedTupleMember:Le,updateNamedTupleMember:function(e,t,n,r,i){return e.dotDotDotToken!==t||e.name!==n||e.questionToken!==r||e.type!==i?Oi(Le(t,n,r,i),e):e},createOptionalTypeNode:je,updateOptionalTypeNode:function(e,t){return e.type!==t?Oi(je(t),e):e},createRestTypeNode:Me,updateRestTypeNode:function(e,t){return e.type!==t?Oi(Me(t),e):e},createUnionTypeNode:function(e){return Re(193,e,r().parenthesizeConstituentTypesOfUnionType)},updateUnionTypeNode:function(e,t){return Be(e,t,r().parenthesizeConstituentTypesOfUnionType)},createIntersectionTypeNode:function(e){return Re(194,e,r().parenthesizeConstituentTypesOfIntersectionType)},updateIntersectionTypeNode:function(e,t){return Be(e,t,r().parenthesizeConstituentTypesOfIntersectionType)},createConditionalTypeNode:Je,updateConditionalTypeNode:function(e,t,n,r,i){return e.checkType!==t||e.extendsType!==n||e.trueType!==r||e.falseType!==i?Oi(Je(t,n,r,i),e):e},createInferTypeNode:ze,updateInferTypeNode:function(e,t){return e.typeParameter!==t?Oi(ze(t),e):e},createImportTypeNode:Ue,updateImportTypeNode:function(e,t,n,r,i,o=e.isTypeOf){return e.argument!==t||e.attributes!==n||e.qualifier!==r||e.typeArguments!==i||e.isTypeOf!==o?Oi(Ue(t,n,r,i,o),e):e},createParenthesizedType:Ve,updateParenthesizedType:function(e,t){return e.type!==t?Oi(Ve(t),e):e},createThisTypeNode:function(){const e=k(198);return e.transformFlags=1,e},createTypeOperatorNode:We,updateTypeOperatorNode:function(e,t){return e.type!==t?Oi(We(e.operator,t),e):e},createIndexedAccessTypeNode:$e,updateIndexedAccessTypeNode:function(e,t,n){return e.objectType!==t||e.indexType!==n?Oi($e(t,n),e):e},createMappedTypeNode:He,updateMappedTypeNode:function(e,t,n,r,i,o,a){return e.readonlyToken!==t||e.typeParameter!==n||e.nameType!==r||e.questionToken!==i||e.type!==o||e.members!==a?Oi(He(t,n,r,i,o,a),e):e},createLiteralTypeNode:Ke,updateLiteralTypeNode:function(e,t){return e.literal!==t?Oi(Ke(t),e):e},createTemplateLiteralType:qe,updateTemplateLiteralType:function(e,t,n){return e.head!==t||e.templateSpans!==n?Oi(qe(t,n),e):e},createObjectBindingPattern:Ge,updateObjectBindingPattern:function(e,t){return e.elements!==t?Oi(Ge(t),e):e},createArrayBindingPattern:Xe,updateArrayBindingPattern:function(e,t){return e.elements!==t?Oi(Xe(t),e):e},createBindingElement:Ye,updateBindingElement:function(e,t,n,r,i){return e.propertyName!==n||e.dotDotDotToken!==t||e.name!==r||e.initializer!==i?Oi(Ye(t,n,r,i),e):e},createArrayLiteralExpression:Ze,updateArrayLiteralExpression:function(e,t){return e.elements!==t?Oi(Ze(t,e.multiLine),e):e},createObjectLiteralExpression:et,updateObjectLiteralExpression:function(e,t){return e.properties!==t?Oi(et(t,e.multiLine),e):e},createPropertyAccessExpression:4&e?(e,t)=>xw(rt(e,t),262144):rt,updatePropertyAccessExpression:function(e,t,n){return fl(e)?at(e,t,e.questionDotToken,nt(n,aD)):e.expression!==t||e.name!==n?Oi(rt(t,n),e):e},createPropertyAccessChain:4&e?(e,t,n)=>xw(it(e,t,n),262144):it,updatePropertyAccessChain:at,createElementAccessExpression:lt,updateElementAccessExpression:function(e,t,n){return ml(e)?ut(e,t,e.questionDotToken,n):e.expression!==t||e.argumentExpression!==n?Oi(lt(t,n),e):e},createElementAccessChain:_t,updateElementAccessChain:ut,createCallExpression:mt,updateCallExpression:function(e,t,n,r){return gl(e)?ht(e,t,e.questionDotToken,n,r):e.expression!==t||e.typeArguments!==n||e.arguments!==r?Oi(mt(t,n,r),e):e},createCallChain:gt,updateCallChain:ht,createNewExpression:yt,updateNewExpression:function(e,t,n,r){return e.expression!==t||e.typeArguments!==n||e.arguments!==r?Oi(yt(t,n,r),e):e},createTaggedTemplateExpression:vt,updateTaggedTemplateExpression:function(e,t,n,r){return e.tag!==t||e.typeArguments!==n||e.template!==r?Oi(vt(t,n,r),e):e},createTypeAssertion:bt,updateTypeAssertion:xt,createParenthesizedExpression:kt,updateParenthesizedExpression:St,createFunctionExpression:Tt,updateFunctionExpression:Ct,createArrowFunction:wt,updateArrowFunction:Nt,createDeleteExpression:Dt,updateDeleteExpression:function(e,t){return e.expression!==t?Oi(Dt(t),e):e},createTypeOfExpression:Ft,updateTypeOfExpression:function(e,t){return e.expression!==t?Oi(Ft(t),e):e},createVoidExpression:Et,updateVoidExpression:function(e,t){return e.expression!==t?Oi(Et(t),e):e},createAwaitExpression:Pt,updateAwaitExpression:function(e,t){return e.expression!==t?Oi(Pt(t),e):e},createPrefixUnaryExpression:At,updatePrefixUnaryExpression:function(e,t){return e.operand!==t?Oi(At(e.operator,t),e):e},createPostfixUnaryExpression:It,updatePostfixUnaryExpression:function(e,t){return e.operand!==t?Oi(It(t,e.operator),e):e},createBinaryExpression:Ot,updateBinaryExpression:function(e,t,n,r){return e.left!==t||e.operatorToken!==n||e.right!==r?Oi(Ot(t,n,r),e):e},createConditionalExpression:jt,updateConditionalExpression:function(e,t,n,r,i,o){return e.condition!==t||e.questionToken!==n||e.whenTrue!==r||e.colonToken!==i||e.whenFalse!==o?Oi(jt(t,n,r,i,o),e):e},createTemplateExpression:Mt,updateTemplateExpression:function(e,t,n){return e.head!==t||e.templateSpans!==n?Oi(Mt(t,n),e):e},createTemplateHead:function(e,t,n){return zt(16,e=Rt(16,e,t,n),t,n)},createTemplateMiddle:function(e,t,n){return zt(17,e=Rt(16,e,t,n),t,n)},createTemplateTail:function(e,t,n){return zt(18,e=Rt(16,e,t,n),t,n)},createNoSubstitutionTemplateLiteral:function(e,t,n){return Jt(15,e=Rt(16,e,t,n),t,n)},createTemplateLiteralLikeNode:zt,createYieldExpression:qt,updateYieldExpression:function(e,t,n){return e.expression!==n||e.asteriskToken!==t?Oi(qt(t,n),e):e},createSpreadElement:Ut,updateSpreadElement:function(e,t){return e.expression!==t?Oi(Ut(t),e):e},createClassExpression:Vt,updateClassExpression:Wt,createOmittedExpression:function(){return k(233)},createExpressionWithTypeArguments:$t,updateExpressionWithTypeArguments:Ht,createAsExpression:Kt,updateAsExpression:Xt,createNonNullExpression:Qt,updateNonNullExpression:Yt,createSatisfiesExpression:Zt,updateSatisfiesExpression:en,createNonNullChain:tn,updateNonNullChain:nn,createMetaProperty:rn,updateMetaProperty:function(e,t){return e.name!==t?Oi(rn(e.keywordToken,t),e):e},createTemplateSpan:on,updateTemplateSpan:function(e,t,n){return e.expression!==t||e.literal!==n?Oi(on(t,n),e):e},createSemicolonClassElement:function(){const e=k(241);return e.transformFlags|=1024,e},createBlock:an,updateBlock:function(e,t){return e.statements!==t?Oi(an(t,e.multiLine),e):e},createVariableStatement:sn,updateVariableStatement:cn,createEmptyStatement:ln,createExpressionStatement:_n,updateExpressionStatement:function(e,t){return e.expression!==t?Oi(_n(t),e):e},createIfStatement:dn,updateIfStatement:function(e,t,n,r){return e.expression!==t||e.thenStatement!==n||e.elseStatement!==r?Oi(dn(t,n,r),e):e},createDoStatement:pn,updateDoStatement:function(e,t,n){return e.statement!==t||e.expression!==n?Oi(pn(t,n),e):e},createWhileStatement:fn,updateWhileStatement:function(e,t,n){return e.expression!==t||e.statement!==n?Oi(fn(t,n),e):e},createForStatement:mn,updateForStatement:function(e,t,n,r,i){return e.initializer!==t||e.condition!==n||e.incrementor!==r||e.statement!==i?Oi(mn(t,n,r,i),e):e},createForInStatement:gn,updateForInStatement:function(e,t,n,r){return e.initializer!==t||e.expression!==n||e.statement!==r?Oi(gn(t,n,r),e):e},createForOfStatement:hn,updateForOfStatement:function(e,t,n,r,i){return e.awaitModifier!==t||e.initializer!==n||e.expression!==r||e.statement!==i?Oi(hn(t,n,r,i),e):e},createContinueStatement:yn,updateContinueStatement:function(e,t){return e.label!==t?Oi(yn(t),e):e},createBreakStatement:vn,updateBreakStatement:function(e,t){return e.label!==t?Oi(vn(t),e):e},createReturnStatement:bn,updateReturnStatement:function(e,t){return e.expression!==t?Oi(bn(t),e):e},createWithStatement:xn,updateWithStatement:function(e,t,n){return e.expression!==t||e.statement!==n?Oi(xn(t,n),e):e},createSwitchStatement:kn,updateSwitchStatement:function(e,t,n){return e.expression!==t||e.caseBlock!==n?Oi(kn(t,n),e):e},createLabeledStatement:Sn,updateLabeledStatement:Tn,createThrowStatement:Cn,updateThrowStatement:function(e,t){return e.expression!==t?Oi(Cn(t),e):e},createTryStatement:wn,updateTryStatement:function(e,t,n,r){return e.tryBlock!==t||e.catchClause!==n||e.finallyBlock!==r?Oi(wn(t,n,r),e):e},createDebuggerStatement:function(){const e=k(260);return e.jsDoc=void 0,e.flowNode=void 0,e},createVariableDeclaration:Nn,updateVariableDeclaration:function(e,t,n,r,i){return e.name!==t||e.type!==r||e.exclamationToken!==n||e.initializer!==i?Oi(Nn(t,n,r,i),e):e},createVariableDeclarationList:Dn,updateVariableDeclarationList:function(e,t){return e.declarations!==t?Oi(Dn(t,e.flags),e):e},createFunctionDeclaration:Fn,updateFunctionDeclaration:En,createClassDeclaration:Pn,updateClassDeclaration:An,createInterfaceDeclaration:In,updateInterfaceDeclaration:On,createTypeAliasDeclaration:Ln,updateTypeAliasDeclaration:jn,createEnumDeclaration:Mn,updateEnumDeclaration:Rn,createModuleDeclaration:Bn,updateModuleDeclaration:Jn,createModuleBlock:zn,updateModuleBlock:function(e,t){return e.statements!==t?Oi(zn(t),e):e},createCaseBlock:qn,updateCaseBlock:function(e,t){return e.clauses!==t?Oi(qn(t),e):e},createNamespaceExportDeclaration:Un,updateNamespaceExportDeclaration:function(e,t){return e.name!==t?((n=Un(t))!==(r=e)&&(n.modifiers=r.modifiers),Oi(n,r)):e;var n,r},createImportEqualsDeclaration:Vn,updateImportEqualsDeclaration:Wn,createImportDeclaration:$n,updateImportDeclaration:Hn,createImportClause:Kn,updateImportClause:function(e,t,n,r){return"boolean"==typeof t&&(t=t?156:void 0),e.phaseModifier!==t||e.name!==n||e.namedBindings!==r?Oi(Kn(t,n,r),e):e},createAssertClause:Gn,updateAssertClause:function(e,t,n){return e.elements!==t||e.multiLine!==n?Oi(Gn(t,n),e):e},createAssertEntry:Xn,updateAssertEntry:function(e,t,n){return e.name!==t||e.value!==n?Oi(Xn(t,n),e):e},createImportTypeAssertionContainer:Qn,updateImportTypeAssertionContainer:function(e,t,n){return e.assertClause!==t||e.multiLine!==n?Oi(Qn(t,n),e):e},createImportAttributes:Yn,updateImportAttributes:function(e,t,n){return e.elements!==t||e.multiLine!==n?Oi(Yn(t,n,e.token),e):e},createImportAttribute:Zn,updateImportAttribute:function(e,t,n){return e.name!==t||e.value!==n?Oi(Zn(t,n),e):e},createNamespaceImport:er,updateNamespaceImport:function(e,t){return e.name!==t?Oi(er(t),e):e},createNamespaceExport:tr,updateNamespaceExport:function(e,t){return e.name!==t?Oi(tr(t),e):e},createNamedImports:nr,updateNamedImports:function(e,t){return e.elements!==t?Oi(nr(t),e):e},createImportSpecifier:rr,updateImportSpecifier:function(e,t,n,r){return e.isTypeOnly!==t||e.propertyName!==n||e.name!==r?Oi(rr(t,n,r),e):e},createExportAssignment:ir,updateExportAssignment:or,createExportDeclaration:ar,updateExportDeclaration:sr,createNamedExports:cr,updateNamedExports:function(e,t){return e.elements!==t?Oi(cr(t),e):e},createExportSpecifier:lr,updateExportSpecifier:function(e,t,n,r){return e.isTypeOnly!==t||e.propertyName!==n||e.name!==r?Oi(lr(t,n,r),e):e},createMissingDeclaration:function(){const e=S(283);return e.jsDoc=void 0,e},createExternalModuleReference:_r,updateExternalModuleReference:function(e,t){return e.expression!==t?Oi(_r(t),e):e},get createJSDocAllType(){return c(313)},get createJSDocUnknownType(){return c(314)},get createJSDocNonNullableType(){return p(316)},get updateJSDocNonNullableType(){return f(316)},get createJSDocNullableType(){return p(315)},get updateJSDocNullableType(){return f(315)},get createJSDocOptionalType(){return _(317)},get updateJSDocOptionalType(){return u(317)},get createJSDocVariadicType(){return _(319)},get updateJSDocVariadicType(){return u(319)},get createJSDocNamepathType(){return _(320)},get updateJSDocNamepathType(){return u(320)},createJSDocFunctionType:pr,updateJSDocFunctionType:function(e,t,n){return e.parameters!==t||e.type!==n?Oi(pr(t,n),e):e},createJSDocTypeLiteral:fr,updateJSDocTypeLiteral:function(e,t,n){return e.jsDocPropertyTags!==t||e.isArrayType!==n?Oi(fr(t,n),e):e},createJSDocTypeExpression:mr,updateJSDocTypeExpression:function(e,t){return e.type!==t?Oi(mr(t),e):e},createJSDocSignature:gr,updateJSDocSignature:function(e,t,n,r){return e.typeParameters!==t||e.parameters!==n||e.type!==r?Oi(gr(t,n,r),e):e},createJSDocTemplateTag:br,updateJSDocTemplateTag:function(e,t=hr(e),n,r,i){return e.tagName!==t||e.constraint!==n||e.typeParameters!==r||e.comment!==i?Oi(br(t,n,r,i),e):e},createJSDocTypedefTag:xr,updateJSDocTypedefTag:function(e,t=hr(e),n,r,i){return e.tagName!==t||e.typeExpression!==n||e.fullName!==r||e.comment!==i?Oi(xr(t,n,r,i),e):e},createJSDocParameterTag:kr,updateJSDocParameterTag:function(e,t=hr(e),n,r,i,o,a){return e.tagName!==t||e.name!==n||e.isBracketed!==r||e.typeExpression!==i||e.isNameFirst!==o||e.comment!==a?Oi(kr(t,n,r,i,o,a),e):e},createJSDocPropertyTag:Sr,updateJSDocPropertyTag:function(e,t=hr(e),n,r,i,o,a){return e.tagName!==t||e.name!==n||e.isBracketed!==r||e.typeExpression!==i||e.isNameFirst!==o||e.comment!==a?Oi(Sr(t,n,r,i,o,a),e):e},createJSDocCallbackTag:Tr,updateJSDocCallbackTag:function(e,t=hr(e),n,r,i){return e.tagName!==t||e.typeExpression!==n||e.fullName!==r||e.comment!==i?Oi(Tr(t,n,r,i),e):e},createJSDocOverloadTag:Cr,updateJSDocOverloadTag:function(e,t=hr(e),n,r){return e.tagName!==t||e.typeExpression!==n||e.comment!==r?Oi(Cr(t,n,r),e):e},createJSDocAugmentsTag:wr,updateJSDocAugmentsTag:function(e,t=hr(e),n,r){return e.tagName!==t||e.class!==n||e.comment!==r?Oi(wr(t,n,r),e):e},createJSDocImplementsTag:Nr,updateJSDocImplementsTag:function(e,t=hr(e),n,r){return e.tagName!==t||e.class!==n||e.comment!==r?Oi(Nr(t,n,r),e):e},createJSDocSeeTag:Dr,updateJSDocSeeTag:function(e,t,n,r){return e.tagName!==t||e.name!==n||e.comment!==r?Oi(Dr(t,n,r),e):e},createJSDocImportTag:Rr,updateJSDocImportTag:function(e,t,n,r,i,o){return e.tagName!==t||e.comment!==o||e.importClause!==n||e.moduleSpecifier!==r||e.attributes!==i?Oi(Rr(t,n,r,i,o),e):e},createJSDocNameReference:Fr,updateJSDocNameReference:function(e,t){return e.name!==t?Oi(Fr(t),e):e},createJSDocMemberName:Er,updateJSDocMemberName:function(e,t,n){return e.left!==t||e.right!==n?Oi(Er(t,n),e):e},createJSDocLink:Pr,updateJSDocLink:function(e,t,n){return e.name!==t?Oi(Pr(t,n),e):e},createJSDocLinkCode:Ar,updateJSDocLinkCode:function(e,t,n){return e.name!==t?Oi(Ar(t,n),e):e},createJSDocLinkPlain:Ir,updateJSDocLinkPlain:function(e,t,n){return e.name!==t?Oi(Ir(t,n),e):e},get createJSDocTypeTag(){return h(345)},get updateJSDocTypeTag(){return y(345)},get createJSDocReturnTag(){return h(343)},get updateJSDocReturnTag(){return y(343)},get createJSDocThisTag(){return h(344)},get updateJSDocThisTag(){return y(344)},get createJSDocAuthorTag(){return m(331)},get updateJSDocAuthorTag(){return g(331)},get createJSDocClassTag(){return m(333)},get updateJSDocClassTag(){return g(333)},get createJSDocPublicTag(){return m(334)},get updateJSDocPublicTag(){return g(334)},get createJSDocPrivateTag(){return m(335)},get updateJSDocPrivateTag(){return g(335)},get createJSDocProtectedTag(){return m(336)},get updateJSDocProtectedTag(){return g(336)},get createJSDocReadonlyTag(){return m(337)},get updateJSDocReadonlyTag(){return g(337)},get createJSDocOverrideTag(){return m(338)},get updateJSDocOverrideTag(){return g(338)},get createJSDocDeprecatedTag(){return m(332)},get updateJSDocDeprecatedTag(){return g(332)},get createJSDocThrowsTag(){return h(350)},get updateJSDocThrowsTag(){return y(350)},get createJSDocSatisfiesTag(){return h(351)},get updateJSDocSatisfiesTag(){return y(351)},createJSDocEnumTag:Mr,updateJSDocEnumTag:function(e,t=hr(e),n,r){return e.tagName!==t||e.typeExpression!==n||e.comment!==r?Oi(Mr(t,n,r),e):e},createJSDocUnknownTag:jr,updateJSDocUnknownTag:function(e,t,n){return e.tagName!==t||e.comment!==n?Oi(jr(t,n),e):e},createJSDocText:Br,updateJSDocText:function(e,t){return e.text!==t?Oi(Br(t),e):e},createJSDocComment:Jr,updateJSDocComment:function(e,t,n){return e.comment!==t||e.tags!==n?Oi(Jr(t,n),e):e},createJsxElement:zr,updateJsxElement:function(e,t,n,r){return e.openingElement!==t||e.children!==n||e.closingElement!==r?Oi(zr(t,n,r),e):e},createJsxSelfClosingElement:qr,updateJsxSelfClosingElement:function(e,t,n,r){return e.tagName!==t||e.typeArguments!==n||e.attributes!==r?Oi(qr(t,n,r),e):e},createJsxOpeningElement:Ur,updateJsxOpeningElement:function(e,t,n,r){return e.tagName!==t||e.typeArguments!==n||e.attributes!==r?Oi(Ur(t,n,r),e):e},createJsxClosingElement:Vr,updateJsxClosingElement:function(e,t){return e.tagName!==t?Oi(Vr(t),e):e},createJsxFragment:Wr,createJsxText:$r,updateJsxText:function(e,t,n){return e.text!==t||e.containsOnlyTriviaWhiteSpaces!==n?Oi($r(t,n),e):e},createJsxOpeningFragment:function(){const e=k(290);return e.transformFlags|=2,e},createJsxJsxClosingFragment:function(){const e=k(291);return e.transformFlags|=2,e},updateJsxFragment:function(e,t,n,r){return e.openingFragment!==t||e.children!==n||e.closingFragment!==r?Oi(Wr(t,n,r),e):e},createJsxAttribute:Hr,updateJsxAttribute:function(e,t,n){return e.name!==t||e.initializer!==n?Oi(Hr(t,n),e):e},createJsxAttributes:Kr,updateJsxAttributes:function(e,t){return e.properties!==t?Oi(Kr(t),e):e},createJsxSpreadAttribute:Gr,updateJsxSpreadAttribute:function(e,t){return e.expression!==t?Oi(Gr(t),e):e},createJsxExpression:Xr,updateJsxExpression:function(e,t){return e.expression!==t?Oi(Xr(e.dotDotDotToken,t),e):e},createJsxNamespacedName:Qr,updateJsxNamespacedName:function(e,t,n){return e.namespace!==t||e.name!==n?Oi(Qr(t,n),e):e},createCaseClause:Yr,updateCaseClause:function(e,t,n){return e.expression!==t||e.statements!==n?Oi(Yr(t,n),e):e},createDefaultClause:Zr,updateDefaultClause:function(e,t){return e.statements!==t?Oi(Zr(t),e):e},createHeritageClause:ei,updateHeritageClause:function(e,t){return e.types!==t?Oi(ei(e.token,t),e):e},createCatchClause:ti,updateCatchClause:function(e,t,n){return e.variableDeclaration!==t||e.block!==n?Oi(ti(t,n),e):e},createPropertyAssignment:ni,updatePropertyAssignment:ri,createShorthandPropertyAssignment:ii,updateShorthandPropertyAssignment:function(e,t,n){return e.name!==t||e.objectAssignmentInitializer!==n?((r=ii(t,n))!==(i=e)&&(r.modifiers=i.modifiers,r.questionToken=i.questionToken,r.exclamationToken=i.exclamationToken,r.equalsToken=i.equalsToken),Oi(r,i)):e;var r,i},createSpreadAssignment:oi,updateSpreadAssignment:function(e,t){return e.expression!==t?Oi(oi(t),e):e},createEnumMember:ai,updateEnumMember:function(e,t,n){return e.name!==t||e.initializer!==n?Oi(ai(t,n),e):e},createSourceFile:function(e,n,r){const i=t.createBaseSourceFileNode(308);return i.statements=x(e),i.endOfFileToken=n,i.flags|=r,i.text="",i.fileName="",i.path="",i.resolvedPath="",i.originalFileName="",i.languageVersion=1,i.languageVariant=0,i.scriptKind=0,i.isDeclarationFile=!1,i.hasNoDefaultLib=!1,i.transformFlags|=_w(i.statements)|lw(i.endOfFileToken),i.locals=void 0,i.nextContainer=void 0,i.endFlowNode=void 0,i.nodeCount=0,i.identifierCount=0,i.symbolCount=0,i.parseDiagnostics=void 0,i.bindDiagnostics=void 0,i.bindSuggestionDiagnostics=void 0,i.lineMap=void 0,i.externalModuleIndicator=void 0,i.setExternalModuleIndicator=void 0,i.pragmas=void 0,i.checkJsDirective=void 0,i.referencedFiles=void 0,i.typeReferenceDirectives=void 0,i.libReferenceDirectives=void 0,i.amdDependencies=void 0,i.commentDirectives=void 0,i.identifiers=void 0,i.packageJsonLocations=void 0,i.packageJsonScope=void 0,i.imports=void 0,i.moduleAugmentations=void 0,i.ambientModuleNames=void 0,i.classifiableNames=void 0,i.impliedNodeFormat=void 0,i},updateSourceFile:function(e,t,n=e.isDeclarationFile,r=e.referencedFiles,i=e.typeReferenceDirectives,o=e.hasNoDefaultLib,a=e.libReferenceDirectives){return e.statements!==t||e.isDeclarationFile!==n||e.referencedFiles!==r||e.typeReferenceDirectives!==i||e.hasNoDefaultLib!==o||e.libReferenceDirectives!==a?Oi(function(e,t,n,r,i,o,a){const s=ci(e);return s.statements=x(t),s.isDeclarationFile=n,s.referencedFiles=r,s.typeReferenceDirectives=i,s.hasNoDefaultLib=o,s.libReferenceDirectives=a,s.transformFlags=_w(s.statements)|lw(s.endOfFileToken),s}(e,t,n,r,i,o,a),e):e},createRedirectedSourceFile:si,createBundle:li,updateBundle:function(e,t){return e.sourceFiles!==t?Oi(li(t),e):e},createSyntheticExpression:function(e,t=!1,n){const r=k(238);return r.type=e,r.isSpread=t,r.tupleNameSource=n,r},createSyntaxList:function(e){const t=k(353);return t._children=e,t},createNotEmittedStatement:function(e){const t=k(354);return t.original=e,xI(t,e),t},createNotEmittedTypeElement:function(){return k(355)},createPartiallyEmittedExpression:_i,updatePartiallyEmittedExpression:ui,createCommaListExpression:pi,updateCommaListExpression:function(e,t){return e.elements!==t?Oi(pi(t),e):e},createSyntheticReferenceExpression:fi,updateSyntheticReferenceExpression:function(e,t,n){return e.expression!==t||e.thisArg!==n?Oi(fi(t,n),e):e},cloneNode:mi,get createComma(){return o(28)},get createAssignment(){return o(64)},get createLogicalOr(){return o(57)},get createLogicalAnd(){return o(56)},get createBitwiseOr(){return o(52)},get createBitwiseXor(){return o(53)},get createBitwiseAnd(){return o(51)},get createStrictEquality(){return o(37)},get createStrictInequality(){return o(38)},get createEquality(){return o(35)},get createInequality(){return o(36)},get createLessThan(){return o(30)},get createLessThanEquals(){return o(33)},get createGreaterThan(){return o(32)},get createGreaterThanEquals(){return o(34)},get createLeftShift(){return o(48)},get createRightShift(){return o(49)},get createUnsignedRightShift(){return o(50)},get createAdd(){return o(40)},get createSubtract(){return o(41)},get createMultiply(){return o(42)},get createDivide(){return o(44)},get createModulo(){return o(45)},get createExponent(){return o(43)},get createPrefixPlus(){return a(40)},get createPrefixMinus(){return a(41)},get createPrefixIncrement(){return a(46)},get createPrefixDecrement(){return a(47)},get createBitwiseNot(){return a(55)},get createLogicalNot(){return a(54)},get createPostfixIncrement(){return s(46)},get createPostfixDecrement(){return s(47)},createImmediatelyInvokedFunctionExpression:function(e,t,n){return mt(Tt(void 0,void 0,void 0,void 0,t?[t]:[],void 0,an(e,!0)),void 0,n?[n]:[])},createImmediatelyInvokedArrowFunction:function(e,t,n){return mt(wt(void 0,void 0,t?[t]:[],void 0,void 0,an(e,!0)),void 0,n?[n]:[])},createVoidZero:gi,createExportDefault:function(e){return ir(void 0,!1,e)},createExternalModuleExport:function(e){return ar(void 0,!1,cr([lr(!1,void 0,e)]))},createTypeCheck:function(e,t){return"null"===t?b.createStrictEquality(e,z()):"undefined"===t?b.createStrictEquality(e,gi()):b.createStrictEquality(Ft(e),D(t))},createIsNotTypeCheck:function(e,t){return"null"===t?b.createStrictInequality(e,z()):"undefined"===t?b.createStrictInequality(e,gi()):b.createStrictInequality(Ft(e),D(t))},createMethodCall:hi,createGlobalMethodCall:yi,createFunctionBindCall:function(e,t,n){return hi(e,"bind",[t,...n])},createFunctionCallCall:function(e,t,n){return hi(e,"call",[t,...n])},createFunctionApplyCall:function(e,t,n){return hi(e,"apply",[t,n])},createArraySliceCall:function(e,t){return hi(e,"slice",void 0===t?[]:[Pi(t)])},createArrayConcatCall:function(e,t){return hi(e,"concat",t)},createObjectDefinePropertyCall:function(e,t,n){return yi("Object","defineProperty",[e,Pi(t),n])},createObjectGetOwnPropertyDescriptorCall:function(e,t){return yi("Object","getOwnPropertyDescriptor",[e,Pi(t)])},createReflectGetCall:function(e,t,n){return yi("Reflect","get",n?[e,t,n]:[e,t])},createReflectSetCall:function(e,t,n,r){return yi("Reflect","set",r?[e,t,n,r]:[e,t,n])},createPropertyDescriptor:function(e,t){const n=[];vi(n,"enumerable",Pi(e.enumerable)),vi(n,"configurable",Pi(e.configurable));let r=vi(n,"writable",Pi(e.writable));r=vi(n,"value",e.value)||r;let i=vi(n,"get",e.get);return i=vi(n,"set",e.set)||i,un.assert(!(r&&i),"A PropertyDescriptor may not be both an accessor descriptor and a data descriptor."),et(n,!t)},createCallBinding:function(e,t,n,i=!1){const o=NA(e,63);let a,s;return am(o)?(a=J(),s=o):yD(o)?(a=J(),s=void 0!==n&&n<2?xI(A("_super"),o):o):8192&Zd(o)?(a=gi(),s=r().parenthesizeLeftSideOfAccess(o,!1)):dF(o)?bi(o.expression,i)?(a=I(t),s=rt(xI(b.createAssignment(a,o.expression),o.expression),o.name),xI(s,o)):(a=o.expression,s=o):pF(o)?bi(o.expression,i)?(a=I(t),s=lt(xI(b.createAssignment(a,o.expression),o.expression),o.argumentExpression),xI(s,o)):(a=o.expression,s=o):(a=gi(),s=r().parenthesizeLeftSideOfAccess(e,!1)),{target:s,thisArg:a}},createAssignmentTargetWrapper:function(e,t){return rt(kt(et([fe(void 0,"value",[Q(void 0,void 0,e,void 0,void 0,void 0)],an([_n(t)]))])),"value")},inlineExpressions:function(e){return e.length>10?pi(e):we(e,b.createComma)},getInternalName:function(e,t,n){return xi(e,t,n,98304)},getLocalName:function(e,t,n,r){return xi(e,t,n,32768,r)},getExportName:ki,getDeclarationName:function(e,t,n){return xi(e,t,n)},getNamespaceMemberName:Si,getExternalModuleOrNamespaceExportName:function(e,t,n,r){return e&&Nv(t,32)?Si(e,xi(t),n,r):ki(t,n,r)},restoreOuterExpressions:function e(t,n,r=63){return t&&wA(t,r)&&(!(yF(i=t)&&ey(i)&&ey(Cw(i))&&ey(Pw(i)))||$(Iw(i))||$(jw(i)))?function(e,t){switch(e.kind){case 218:return St(e,t);case 217:return xt(e,e.type,t);case 235:return Xt(e,t,e.type);case 239:return en(e,t,e.type);case 236:return Yt(e,t);case 234:return Ht(e,t,e.typeArguments);case 356:return ui(e,t)}}(t,e(t.expression,n)):n;var i},restoreEnclosingLabel:function e(t,n,r){if(!n)return t;const i=Tn(n,n.label,oE(n.statement)?e(t,n.statement):t);return r&&r(n),i},createUseStrictPrologue:Ci,copyPrologue:function(e,t,n,r){return Ni(e,t,wi(e,t,0,n),r)},copyStandardPrologue:wi,copyCustomPrologue:Ni,ensureUseStrict:function(e){return bA(e)?e:xI(x([Ci(),...e]),e)},liftToBlock:function(e){return un.assert(v(e,fu),"Cannot lift nodes to a Block."),be(e)||an(e)},mergeLexicalEnvironment:function(e,t){if(!$(t))return e;const n=Di(e,pf,0),r=Di(e,mf,n),i=Di(e,hf,r),o=Di(t,pf,0),a=Di(t,mf,o),s=Di(t,hf,a),c=Di(t,ff,s);un.assert(c===t.length,"Expected declarations to be valid standard or custom prologues");const l=Pl(e)?e.slice():e;if(c>s&&l.splice(i,0,...t.slice(s,c)),s>a&&l.splice(r,0,...t.slice(a,s)),a>o&&l.splice(n,0,...t.slice(o,a)),o>0)if(0===n)l.splice(0,0,...t.slice(0,o));else{const r=new Map;for(let t=0;t=0;e--){const n=t[e];r.has(n.expression.text)||l.unshift(n)}}return Pl(e)?xI(x(l,e.hasTrailingComma),e):e},replaceModifiers:function(e,t){let n;return n="number"==typeof t?W(t):t,SD(e)?X(e,n,e.name,e.constraint,e.default):TD(e)?Y(e,n,e.dotDotDotToken,e.name,e.questionToken,e.type,e.initializer):JD(e)?Ee(e,n,e.typeParameters,e.parameters,e.type):wD(e)?te(e,n,e.name,e.questionToken,e.type):ND(e)?re(e,n,e.name,e.questionToken??e.exclamationToken,e.type,e.initializer):DD(e)?ae(e,n,e.name,e.questionToken,e.typeParameters,e.parameters,e.type):FD(e)?ce(e,n,e.asteriskToken,e.name,e.questionToken,e.typeParameters,e.parameters,e.type,e.body):PD(e)?ue(e,n,e.parameters,e.body):AD(e)?pe(e,n,e.name,e.parameters,e.type,e.body):ID(e)?me(e,n,e.name,e.parameters,e.body):jD(e)?xe(e,n,e.parameters,e.type):vF(e)?Ct(e,n,e.asteriskToken,e.name,e.typeParameters,e.parameters,e.type,e.body):bF(e)?Nt(e,n,e.typeParameters,e.parameters,e.type,e.equalsGreaterThanToken,e.body):AF(e)?Wt(e,n,e.name,e.typeParameters,e.heritageClauses,e.members):WF(e)?cn(e,n,e.declarationList):uE(e)?En(e,n,e.asteriskToken,e.name,e.typeParameters,e.parameters,e.type,e.body):dE(e)?An(e,n,e.name,e.typeParameters,e.heritageClauses,e.members):pE(e)?On(e,n,e.name,e.typeParameters,e.heritageClauses,e.members):fE(e)?jn(e,n,e.name,e.typeParameters,e.type):mE(e)?Rn(e,n,e.name,e.members):gE(e)?Jn(e,n,e.name,e.body):bE(e)?Wn(e,n,e.isTypeOnly,e.name,e.moduleReference):xE(e)?Hn(e,n,e.importClause,e.moduleSpecifier,e.attributes):AE(e)?or(e,n,e.expression):IE(e)?sr(e,n,e.isTypeOnly,e.exportClause,e.moduleSpecifier,e.attributes):un.assertNever(e)},replaceDecoratorsAndModifiers:function(e,t){return TD(e)?Y(e,t,e.dotDotDotToken,e.name,e.questionToken,e.type,e.initializer):ND(e)?re(e,t,e.name,e.questionToken??e.exclamationToken,e.type,e.initializer):FD(e)?ce(e,t,e.asteriskToken,e.name,e.questionToken,e.typeParameters,e.parameters,e.type,e.body):AD(e)?pe(e,t,e.name,e.parameters,e.type,e.body):ID(e)?me(e,t,e.name,e.parameters,e.body):AF(e)?Wt(e,t,e.name,e.typeParameters,e.heritageClauses,e.members):dE(e)?An(e,t,e.name,e.typeParameters,e.heritageClauses,e.members):un.assertNever(e)},replacePropertyName:function(e,t){switch(e.kind){case 178:return pe(e,e.modifiers,t,e.parameters,e.type,e.body);case 179:return me(e,e.modifiers,t,e.parameters,e.body);case 175:return ce(e,e.modifiers,e.asteriskToken,t,e.questionToken,e.typeParameters,e.parameters,e.type,e.body);case 174:return ae(e,e.modifiers,t,e.questionToken,e.typeParameters,e.parameters,e.type);case 173:return re(e,e.modifiers,t,e.questionToken??e.exclamationToken,e.type,e.initializer);case 172:return te(e,e.modifiers,t,e.questionToken,e.type);case 304:return ri(e,t,e.initializer)}}};return d(nw,e=>e(b)),b;function x(e,t){if(void 0===e||e===l)e=[];else if(Pl(e)){if(void 0===t||e.hasTrailingComma===t)return void 0===e.transformFlags&&uw(e),un.attachNodeArrayDebugInfo(e),e;const n=e.slice();return n.pos=e.pos,n.end=e.end,n.hasTrailingComma=t,n.transformFlags=e.transformFlags,un.attachNodeArrayDebugInfo(n),n}const n=e.length,r=n>=1&&n<=4?e.slice():e;return r.pos=-1,r.end=-1,r.hasTrailingComma=!!t,r.transformFlags=0,uw(r),un.attachNodeArrayDebugInfo(r),r}function k(e){return t.createBaseNode(e)}function S(e){const t=k(e);return t.symbol=void 0,t.localSymbol=void 0,t}function T(e,t){return e!==t&&(e.typeArguments=t.typeArguments),Oi(e,t)}function C(e,t=0){const n="number"==typeof e?e+"":e;un.assert(45!==n.charCodeAt(0),"Negative numbers should be created in combination with createPrefixUnaryExpression");const r=S(9);return r.text=n,r.numericLiteralFlags=t,384&t&&(r.transformFlags|=1024),r}function w(e){const t=R(10);return t.text="string"==typeof e?e:gT(e)+"n",t.transformFlags|=32,t}function N(e,t){const n=S(11);return n.text=e,n.singleQuote=t,n}function D(e,t,n){const r=N(e,t);return r.hasExtendedUnicodeEscape=n,n&&(r.transformFlags|=1024),r}function F(e){const t=R(14);return t.text=e,t}function E(e){const n=t.createBaseIdentifierNode(80);return n.escapedText=e,n.jsDoc=void 0,n.flowNode=void 0,n.symbol=void 0,n}function P(e,t,n,r){const i=E(fc(e));return eN(i,{flags:t,id:ew,prefix:n,suffix:r}),ew++,i}function A(e,t,n){void 0===t&&e&&(t=Ea(e)),80===t&&(t=void 0);const r=E(fc(e));return n&&(r.flags|=256),"await"===r.escapedText&&(r.transformFlags|=67108864),256&r.flags&&(r.transformFlags|=1024),r}function I(e,t,n,r){let i=1;t&&(i|=8);const o=P("",i,n,r);return e&&e(o),o}function O(e,t=0,n,r){un.assert(!(7&t),"Argument out of range: flags"),(n||r)&&(t|=16);const i=P(e?dl(e)?pI(!1,n,e,r,gc):`generated@${ZB(e)}`:"",4|t,n,r);return i.original=e,i}function L(e){const n=t.createBasePrivateIdentifierNode(81);return n.escapedText=e,n.transformFlags|=16777216,n}function j(e,t,n,r){const i=L(fc(e));return eN(i,{flags:t,id:ew,prefix:n,suffix:r}),ew++,i}function R(e){return t.createBaseTokenNode(e)}function B(e){un.assert(e>=0&&e<=166,"Invalid token"),un.assert(e<=15||e>=18,"Invalid token. Use 'createTemplateLiteralLikeNode' to create template literals."),un.assert(e<=9||e>=15,"Invalid token. Use 'createLiteralLikeNode' to create literals."),un.assert(80!==e,"Invalid token. Use 'createIdentifier' to create identifiers");const t=R(e);let n=0;switch(e){case 134:n=384;break;case 160:n=4;break;case 125:case 123:case 124:case 148:case 128:case 138:case 87:case 133:case 150:case 163:case 146:case 151:case 103:case 147:case 164:case 154:case 136:case 155:case 116:case 159:case 157:n=1;break;case 108:n=134218752,t.flowNode=void 0;break;case 126:n=1024;break;case 129:n=16777216;break;case 110:n=16384,t.flowNode=void 0}return n&&(t.transformFlags|=n),t}function J(){return B(110)}function z(){return B(106)}function q(){return B(112)}function U(){return B(97)}function V(e){return B(e)}function W(e){const t=[];return 32&e&&t.push(V(95)),128&e&&t.push(V(138)),2048&e&&t.push(V(90)),4096&e&&t.push(V(87)),1&e&&t.push(V(125)),2&e&&t.push(V(123)),4&e&&t.push(V(124)),64&e&&t.push(V(128)),256&e&&t.push(V(126)),16&e&&t.push(V(164)),8&e&&t.push(V(148)),512&e&&t.push(V(129)),1024&e&&t.push(V(134)),8192&e&&t.push(V(103)),16384&e&&t.push(V(147)),t.length?t:void 0}function H(e,t){const n=k(167);return n.left=e,n.right=Ei(t),n.transformFlags|=lw(n.left)|cw(n.right),n.flowNode=void 0,n}function K(e){const t=k(168);return t.expression=r().parenthesizeExpressionOfComputedPropertyName(e),t.transformFlags|=132096|lw(t.expression),t}function G(e,t,n,r){const i=S(169);return i.modifiers=Fi(e),i.name=Ei(t),i.constraint=n,i.default=r,i.transformFlags=1,i.expression=void 0,i.jsDoc=void 0,i}function X(e,t,n,r,i){return e.modifiers!==t||e.name!==n||e.constraint!==r||e.default!==i?Oi(G(t,n,r,i),e):e}function Q(e,t,n,r,i,o){const a=S(170);return a.modifiers=Fi(e),a.dotDotDotToken=t,a.name=Ei(n),a.questionToken=r,a.type=i,a.initializer=Ai(o),lv(a.name)?a.transformFlags=1:a.transformFlags=_w(a.modifiers)|lw(a.dotDotDotToken)|sw(a.name)|lw(a.questionToken)|lw(a.initializer)|(a.questionToken??a.type?1:0)|(a.dotDotDotToken??a.initializer?1024:0)|(31&$v(a.modifiers)?8192:0),a.jsDoc=void 0,a}function Y(e,t,n,r,i,o,a){return e.modifiers!==t||e.dotDotDotToken!==n||e.name!==r||e.questionToken!==i||e.type!==o||e.initializer!==a?Oi(Q(t,n,r,i,o,a),e):e}function Z(e){const t=k(171);return t.expression=r().parenthesizeLeftSideOfAccess(e,!1),t.transformFlags|=33562625|lw(t.expression),t}function ee(e,t,n,r){const i=S(172);return i.modifiers=Fi(e),i.name=Ei(t),i.type=r,i.questionToken=n,i.transformFlags=1,i.initializer=void 0,i.jsDoc=void 0,i}function te(e,t,n,r,i){return e.modifiers!==t||e.name!==n||e.questionToken!==r||e.type!==i?((o=ee(t,n,r,i))!==(a=e)&&(o.initializer=a.initializer),Oi(o,a)):e;var o,a}function ne(e,t,n,r,i){const o=S(173);o.modifiers=Fi(e),o.name=Ei(t),o.questionToken=n&&nD(n)?n:void 0,o.exclamationToken=n&&tD(n)?n:void 0,o.type=r,o.initializer=Ai(i);const a=33554432&o.flags||128&$v(o.modifiers);return o.transformFlags=_w(o.modifiers)|sw(o.name)|lw(o.initializer)|(a||o.questionToken||o.exclamationToken||o.type?1:0)|(kD(o.name)||256&$v(o.modifiers)&&o.initializer?8192:0)|16777216,o.jsDoc=void 0,o}function re(e,t,n,r,i,o){return e.modifiers!==t||e.name!==n||e.questionToken!==(void 0!==r&&nD(r)?r:void 0)||e.exclamationToken!==(void 0!==r&&tD(r)?r:void 0)||e.type!==i||e.initializer!==o?Oi(ne(t,n,r,i,o),e):e}function oe(e,t,n,r,i,o){const a=S(174);return a.modifiers=Fi(e),a.name=Ei(t),a.questionToken=n,a.typeParameters=Fi(r),a.parameters=Fi(i),a.type=o,a.transformFlags=1,a.jsDoc=void 0,a.locals=void 0,a.nextContainer=void 0,a.typeArguments=void 0,a}function ae(e,t,n,r,i,o,a){return e.modifiers!==t||e.name!==n||e.questionToken!==r||e.typeParameters!==i||e.parameters!==o||e.type!==a?T(oe(t,n,r,i,o,a),e):e}function se(e,t,n,r,i,o,a,s){const c=S(175);if(c.modifiers=Fi(e),c.asteriskToken=t,c.name=Ei(n),c.questionToken=r,c.exclamationToken=void 0,c.typeParameters=Fi(i),c.parameters=x(o),c.type=a,c.body=s,c.body){const e=1024&$v(c.modifiers),t=!!c.asteriskToken,n=e&&t;c.transformFlags=_w(c.modifiers)|lw(c.asteriskToken)|sw(c.name)|lw(c.questionToken)|_w(c.typeParameters)|_w(c.parameters)|lw(c.type)|-67108865&lw(c.body)|(n?128:e?256:t?2048:0)|(c.questionToken||c.typeParameters||c.type?1:0)|1024}else c.transformFlags=1;return c.typeArguments=void 0,c.jsDoc=void 0,c.locals=void 0,c.nextContainer=void 0,c.flowNode=void 0,c.endFlowNode=void 0,c.returnFlowNode=void 0,c}function ce(e,t,n,r,i,o,a,s,c){return e.modifiers!==t||e.asteriskToken!==n||e.name!==r||e.questionToken!==i||e.typeParameters!==o||e.parameters!==a||e.type!==s||e.body!==c?((l=se(t,n,r,i,o,a,s,c))!==(_=e)&&(l.exclamationToken=_.exclamationToken),Oi(l,_)):e;var l,_}function le(e){const t=S(176);return t.body=e,t.transformFlags=16777216|lw(e),t.modifiers=void 0,t.jsDoc=void 0,t.locals=void 0,t.nextContainer=void 0,t.endFlowNode=void 0,t.returnFlowNode=void 0,t}function _e(e,t,n){const r=S(177);return r.modifiers=Fi(e),r.parameters=x(t),r.body=n,r.body?r.transformFlags=_w(r.modifiers)|_w(r.parameters)|-67108865&lw(r.body)|1024:r.transformFlags=1,r.typeParameters=void 0,r.type=void 0,r.typeArguments=void 0,r.jsDoc=void 0,r.locals=void 0,r.nextContainer=void 0,r.endFlowNode=void 0,r.returnFlowNode=void 0,r}function ue(e,t,n,r){return e.modifiers!==t||e.parameters!==n||e.body!==r?((i=_e(t,n,r))!==(o=e)&&(i.typeParameters=o.typeParameters,i.type=o.type),T(i,o)):e;var i,o}function de(e,t,n,r,i){const o=S(178);return o.modifiers=Fi(e),o.name=Ei(t),o.parameters=x(n),o.type=r,o.body=i,o.body?o.transformFlags=_w(o.modifiers)|sw(o.name)|_w(o.parameters)|lw(o.type)|-67108865&lw(o.body)|(o.type?1:0):o.transformFlags=1,o.typeArguments=void 0,o.typeParameters=void 0,o.jsDoc=void 0,o.locals=void 0,o.nextContainer=void 0,o.flowNode=void 0,o.endFlowNode=void 0,o.returnFlowNode=void 0,o}function pe(e,t,n,r,i,o){return e.modifiers!==t||e.name!==n||e.parameters!==r||e.type!==i||e.body!==o?((a=de(t,n,r,i,o))!==(s=e)&&(a.typeParameters=s.typeParameters),T(a,s)):e;var a,s}function fe(e,t,n,r){const i=S(179);return i.modifiers=Fi(e),i.name=Ei(t),i.parameters=x(n),i.body=r,i.body?i.transformFlags=_w(i.modifiers)|sw(i.name)|_w(i.parameters)|-67108865&lw(i.body)|(i.type?1:0):i.transformFlags=1,i.typeArguments=void 0,i.typeParameters=void 0,i.type=void 0,i.jsDoc=void 0,i.locals=void 0,i.nextContainer=void 0,i.flowNode=void 0,i.endFlowNode=void 0,i.returnFlowNode=void 0,i}function me(e,t,n,r,i){return e.modifiers!==t||e.name!==n||e.parameters!==r||e.body!==i?((o=fe(t,n,r,i))!==(a=e)&&(o.typeParameters=a.typeParameters,o.type=a.type),T(o,a)):e;var o,a}function ge(e,t,n){const r=S(180);return r.typeParameters=Fi(e),r.parameters=Fi(t),r.type=n,r.transformFlags=1,r.jsDoc=void 0,r.locals=void 0,r.nextContainer=void 0,r.typeArguments=void 0,r}function he(e,t,n){const r=S(181);return r.typeParameters=Fi(e),r.parameters=Fi(t),r.type=n,r.transformFlags=1,r.jsDoc=void 0,r.locals=void 0,r.nextContainer=void 0,r.typeArguments=void 0,r}function ve(e,t,n){const r=S(182);return r.modifiers=Fi(e),r.parameters=Fi(t),r.type=n,r.transformFlags=1,r.jsDoc=void 0,r.locals=void 0,r.nextContainer=void 0,r.typeArguments=void 0,r}function xe(e,t,n,r){return e.parameters!==n||e.type!==r||e.modifiers!==t?T(ve(t,n,r),e):e}function ke(e,t){const n=k(205);return n.type=e,n.literal=t,n.transformFlags=1,n}function Se(e,t,n){const r=k(183);return r.assertsModifier=e,r.parameterName=Ei(t),r.type=n,r.transformFlags=1,r}function Te(e,t){const n=k(184);return n.typeName=Ei(e),n.typeArguments=t&&r().parenthesizeTypeArguments(x(t)),n.transformFlags=1,n}function Ce(e,t,n){const r=S(185);return r.typeParameters=Fi(e),r.parameters=Fi(t),r.type=n,r.transformFlags=1,r.modifiers=void 0,r.jsDoc=void 0,r.locals=void 0,r.nextContainer=void 0,r.typeArguments=void 0,r}function Ne(...e){return 4===e.length?Fe(...e):3===e.length?function(e,t,n){return Fe(void 0,e,t,n)}(...e):un.fail("Incorrect number of arguments specified.")}function Fe(e,t,n,r){const i=S(186);return i.modifiers=Fi(e),i.typeParameters=Fi(t),i.parameters=Fi(n),i.type=r,i.transformFlags=1,i.jsDoc=void 0,i.locals=void 0,i.nextContainer=void 0,i.typeArguments=void 0,i}function Ee(e,t,n,r,i){return e.modifiers!==t||e.typeParameters!==n||e.parameters!==r||e.type!==i?T(Ne(t,n,r,i),e):e}function Pe(e,t){const n=k(187);return n.exprName=e,n.typeArguments=t&&r().parenthesizeTypeArguments(t),n.transformFlags=1,n}function Ae(e){const t=S(188);return t.members=x(e),t.transformFlags=1,t}function Ie(e){const t=k(189);return t.elementType=r().parenthesizeNonArrayTypeOfPostfixType(e),t.transformFlags=1,t}function Oe(e){const t=k(190);return t.elements=x(r().parenthesizeElementTypesOfTupleType(e)),t.transformFlags=1,t}function Le(e,t,n,r){const i=S(203);return i.dotDotDotToken=e,i.name=t,i.questionToken=n,i.type=r,i.transformFlags=1,i.jsDoc=void 0,i}function je(e){const t=k(191);return t.type=r().parenthesizeTypeOfOptionalType(e),t.transformFlags=1,t}function Me(e){const t=k(192);return t.type=e,t.transformFlags=1,t}function Re(e,t,n){const r=k(e);return r.types=b.createNodeArray(n(t)),r.transformFlags=1,r}function Be(e,t,n){return e.types!==t?Oi(Re(e.kind,t,n),e):e}function Je(e,t,n,i){const o=k(195);return o.checkType=r().parenthesizeCheckTypeOfConditionalType(e),o.extendsType=r().parenthesizeExtendsTypeOfConditionalType(t),o.trueType=n,o.falseType=i,o.transformFlags=1,o.locals=void 0,o.nextContainer=void 0,o}function ze(e){const t=k(196);return t.typeParameter=e,t.transformFlags=1,t}function qe(e,t){const n=k(204);return n.head=e,n.templateSpans=x(t),n.transformFlags=1,n}function Ue(e,t,n,i,o=!1){const a=k(206);return a.argument=e,a.attributes=t,a.assertions&&a.assertions.assertClause&&a.attributes&&(a.assertions.assertClause=a.attributes),a.qualifier=n,a.typeArguments=i&&r().parenthesizeTypeArguments(i),a.isTypeOf=o,a.transformFlags=1,a}function Ve(e){const t=k(197);return t.type=e,t.transformFlags=1,t}function We(e,t){const n=k(199);return n.operator=e,n.type=148===e?r().parenthesizeOperandOfReadonlyTypeOperator(t):r().parenthesizeOperandOfTypeOperator(t),n.transformFlags=1,n}function $e(e,t){const n=k(200);return n.objectType=r().parenthesizeNonArrayTypeOfPostfixType(e),n.indexType=t,n.transformFlags=1,n}function He(e,t,n,r,i,o){const a=S(201);return a.readonlyToken=e,a.typeParameter=t,a.nameType=n,a.questionToken=r,a.type=i,a.members=o&&x(o),a.transformFlags=1,a.locals=void 0,a.nextContainer=void 0,a}function Ke(e){const t=k(202);return t.literal=e,t.transformFlags=1,t}function Ge(e){const t=k(207);return t.elements=x(e),t.transformFlags|=525312|_w(t.elements),32768&t.transformFlags&&(t.transformFlags|=65664),t}function Xe(e){const t=k(208);return t.elements=x(e),t.transformFlags|=525312|_w(t.elements),t}function Ye(e,t,n,r){const i=S(209);return i.dotDotDotToken=e,i.propertyName=Ei(t),i.name=Ei(n),i.initializer=Ai(r),i.transformFlags|=lw(i.dotDotDotToken)|sw(i.propertyName)|sw(i.name)|lw(i.initializer)|(i.dotDotDotToken?32768:0)|1024,i.flowNode=void 0,i}function Ze(e,t){const n=k(210),i=e&&ye(e),o=x(e,!(!i||!IF(i))||void 0);return n.elements=r().parenthesizeExpressionsOfCommaDelimitedList(o),n.multiLine=t,n.transformFlags|=_w(n.elements),n}function et(e,t){const n=S(211);return n.properties=x(e),n.multiLine=t,n.transformFlags|=_w(n.properties),n.jsDoc=void 0,n}function tt(e,t,n){const r=S(212);return r.expression=e,r.questionDotToken=t,r.name=n,r.transformFlags=lw(r.expression)|lw(r.questionDotToken)|(aD(r.name)?cw(r.name):536870912|lw(r.name)),r.jsDoc=void 0,r.flowNode=void 0,r}function rt(e,t){const n=tt(r().parenthesizeLeftSideOfAccess(e,!1),void 0,Ei(t));return yD(e)&&(n.transformFlags|=384),n}function it(e,t,n){const i=tt(r().parenthesizeLeftSideOfAccess(e,!0),t,Ei(n));return i.flags|=64,i.transformFlags|=32,i}function at(e,t,n,r){return un.assert(!!(64&e.flags),"Cannot update a PropertyAccessExpression using updatePropertyAccessChain. Use updatePropertyAccess instead."),e.expression!==t||e.questionDotToken!==n||e.name!==r?Oi(it(t,n,r),e):e}function ct(e,t,n){const r=S(213);return r.expression=e,r.questionDotToken=t,r.argumentExpression=n,r.transformFlags|=lw(r.expression)|lw(r.questionDotToken)|lw(r.argumentExpression),r.jsDoc=void 0,r.flowNode=void 0,r}function lt(e,t){const n=ct(r().parenthesizeLeftSideOfAccess(e,!1),void 0,Pi(t));return yD(e)&&(n.transformFlags|=384),n}function _t(e,t,n){const i=ct(r().parenthesizeLeftSideOfAccess(e,!0),t,Pi(n));return i.flags|=64,i.transformFlags|=32,i}function ut(e,t,n,r){return un.assert(!!(64&e.flags),"Cannot update a ElementAccessExpression using updateElementAccessChain. Use updateElementAccess instead."),e.expression!==t||e.questionDotToken!==n||e.argumentExpression!==r?Oi(_t(t,n,r),e):e}function ft(e,t,n,r){const i=S(214);return i.expression=e,i.questionDotToken=t,i.typeArguments=n,i.arguments=r,i.transformFlags|=lw(i.expression)|lw(i.questionDotToken)|_w(i.typeArguments)|_w(i.arguments),i.typeArguments&&(i.transformFlags|=1),am(i.expression)&&(i.transformFlags|=16384),i}function mt(e,t,n){const i=ft(r().parenthesizeLeftSideOfAccess(e,!1),void 0,Fi(t),r().parenthesizeExpressionsOfCommaDelimitedList(x(n)));return vD(i.expression)&&(i.transformFlags|=8388608),i}function gt(e,t,n,i){const o=ft(r().parenthesizeLeftSideOfAccess(e,!0),t,Fi(n),r().parenthesizeExpressionsOfCommaDelimitedList(x(i)));return o.flags|=64,o.transformFlags|=32,o}function ht(e,t,n,r,i){return un.assert(!!(64&e.flags),"Cannot update a CallExpression using updateCallChain. Use updateCall instead."),e.expression!==t||e.questionDotToken!==n||e.typeArguments!==r||e.arguments!==i?Oi(gt(t,n,r,i),e):e}function yt(e,t,n){const i=S(215);return i.expression=r().parenthesizeExpressionOfNew(e),i.typeArguments=Fi(t),i.arguments=n?r().parenthesizeExpressionsOfCommaDelimitedList(n):void 0,i.transformFlags|=lw(i.expression)|_w(i.typeArguments)|_w(i.arguments)|32,i.typeArguments&&(i.transformFlags|=1),i}function vt(e,t,n){const i=k(216);return i.tag=r().parenthesizeLeftSideOfAccess(e,!1),i.typeArguments=Fi(t),i.template=n,i.transformFlags|=lw(i.tag)|_w(i.typeArguments)|lw(i.template)|1024,i.typeArguments&&(i.transformFlags|=1),fy(i.template)&&(i.transformFlags|=128),i}function bt(e,t){const n=k(217);return n.expression=r().parenthesizeOperandOfPrefixUnary(t),n.type=e,n.transformFlags|=lw(n.expression)|lw(n.type)|1,n}function xt(e,t,n){return e.type!==t||e.expression!==n?Oi(bt(t,n),e):e}function kt(e){const t=k(218);return t.expression=e,t.transformFlags=lw(t.expression),t.jsDoc=void 0,t}function St(e,t){return e.expression!==t?Oi(kt(t),e):e}function Tt(e,t,n,r,i,o,a){const s=S(219);s.modifiers=Fi(e),s.asteriskToken=t,s.name=Ei(n),s.typeParameters=Fi(r),s.parameters=x(i),s.type=o,s.body=a;const c=1024&$v(s.modifiers),l=!!s.asteriskToken,_=c&&l;return s.transformFlags=_w(s.modifiers)|lw(s.asteriskToken)|sw(s.name)|_w(s.typeParameters)|_w(s.parameters)|lw(s.type)|-67108865&lw(s.body)|(_?128:c?256:l?2048:0)|(s.typeParameters||s.type?1:0)|4194304,s.typeArguments=void 0,s.jsDoc=void 0,s.locals=void 0,s.nextContainer=void 0,s.flowNode=void 0,s.endFlowNode=void 0,s.returnFlowNode=void 0,s}function Ct(e,t,n,r,i,o,a,s){return e.name!==r||e.modifiers!==t||e.asteriskToken!==n||e.typeParameters!==i||e.parameters!==o||e.type!==a||e.body!==s?T(Tt(t,n,r,i,o,a,s),e):e}function wt(e,t,n,i,o,a){const s=S(220);s.modifiers=Fi(e),s.typeParameters=Fi(t),s.parameters=x(n),s.type=i,s.equalsGreaterThanToken=o??B(39),s.body=r().parenthesizeConciseBodyOfArrowFunction(a);const c=1024&$v(s.modifiers);return s.transformFlags=_w(s.modifiers)|_w(s.typeParameters)|_w(s.parameters)|lw(s.type)|lw(s.equalsGreaterThanToken)|-67108865&lw(s.body)|(s.typeParameters||s.type?1:0)|(c?16640:0)|1024,s.typeArguments=void 0,s.jsDoc=void 0,s.locals=void 0,s.nextContainer=void 0,s.flowNode=void 0,s.endFlowNode=void 0,s.returnFlowNode=void 0,s}function Nt(e,t,n,r,i,o,a){return e.modifiers!==t||e.typeParameters!==n||e.parameters!==r||e.type!==i||e.equalsGreaterThanToken!==o||e.body!==a?T(wt(t,n,r,i,o,a),e):e}function Dt(e){const t=k(221);return t.expression=r().parenthesizeOperandOfPrefixUnary(e),t.transformFlags|=lw(t.expression),t}function Ft(e){const t=k(222);return t.expression=r().parenthesizeOperandOfPrefixUnary(e),t.transformFlags|=lw(t.expression),t}function Et(e){const t=k(223);return t.expression=r().parenthesizeOperandOfPrefixUnary(e),t.transformFlags|=lw(t.expression),t}function Pt(e){const t=k(224);return t.expression=r().parenthesizeOperandOfPrefixUnary(e),t.transformFlags|=2097536|lw(t.expression),t}function At(e,t){const n=k(225);return n.operator=e,n.operand=r().parenthesizeOperandOfPrefixUnary(t),n.transformFlags|=lw(n.operand),46!==e&&47!==e||!aD(n.operand)||Wl(n.operand)||hA(n.operand)||(n.transformFlags|=268435456),n}function It(e,t){const n=k(226);return n.operator=t,n.operand=r().parenthesizeOperandOfPostfixUnary(e),n.transformFlags|=lw(n.operand),!aD(n.operand)||Wl(n.operand)||hA(n.operand)||(n.transformFlags|=268435456),n}function Ot(e,t,n){const i=S(227),o="number"==typeof(a=t)?B(a):a;var a;const s=o.kind;return i.left=r().parenthesizeLeftSideOfBinary(s,e),i.operatorToken=o,i.right=r().parenthesizeRightSideOfBinary(s,i.left,n),i.transformFlags|=lw(i.left)|lw(i.operatorToken)|lw(i.right),61===s?i.transformFlags|=32:64===s?uF(i.left)?i.transformFlags|=5248|Lt(i.left):_F(i.left)&&(i.transformFlags|=5120|Lt(i.left)):43===s||68===s?i.transformFlags|=512:Xv(s)&&(i.transformFlags|=16),103===s&&sD(i.left)&&(i.transformFlags|=536870912),i.jsDoc=void 0,i}function Lt(e){return bI(e)?65536:0}function jt(e,t,n,i,o){const a=k(228);return a.condition=r().parenthesizeConditionOfConditionalExpression(e),a.questionToken=t??B(58),a.whenTrue=r().parenthesizeBranchOfConditionalExpression(n),a.colonToken=i??B(59),a.whenFalse=r().parenthesizeBranchOfConditionalExpression(o),a.transformFlags|=lw(a.condition)|lw(a.questionToken)|lw(a.whenTrue)|lw(a.colonToken)|lw(a.whenFalse),a.flowNodeWhenFalse=void 0,a.flowNodeWhenTrue=void 0,a}function Mt(e,t){const n=k(229);return n.head=e,n.templateSpans=x(t),n.transformFlags|=lw(n.head)|_w(n.templateSpans)|1024,n}function Rt(e,t,n,r=0){let i;if(un.assert(!(-7177&r),"Unsupported template flags."),void 0!==n&&n!==t&&(i=function(e,t){switch(YC||(YC=gs(99,!1,0)),e){case 15:YC.setText("`"+t+"`");break;case 16:YC.setText("`"+t+"${");break;case 17:YC.setText("}"+t+"${");break;case 18:YC.setText("}"+t+"`")}let n,r=YC.scan();if(20===r&&(r=YC.reScanTemplateToken(!1)),YC.isUnterminated())return YC.setText(void 0),aw;switch(r){case 15:case 16:case 17:case 18:n=YC.getTokenValue()}return void 0===n||1!==YC.scan()?(YC.setText(void 0),aw):(YC.setText(void 0),n)}(e,n),"object"==typeof i))return un.fail("Invalid raw text");if(void 0===t){if(void 0===i)return un.fail("Arguments 'text' and 'rawText' may not both be undefined.");t=i}else void 0!==i&&un.assert(t===i,"Expected argument 'text' to be the normalized (i.e. 'cooked') version of argument 'rawText'.");return t}function Bt(e){let t=1024;return e&&(t|=128),t}function Jt(e,t,n,r){const i=S(e);return i.text=t,i.rawText=n,i.templateFlags=7176&r,i.transformFlags=Bt(i.templateFlags),i}function zt(e,t,n,r){return 15===e?Jt(e,t,n,r):function(e,t,n,r){const i=R(e);return i.text=t,i.rawText=n,i.templateFlags=7176&r,i.transformFlags=Bt(i.templateFlags),i}(e,t,n,r)}function qt(e,t){un.assert(!e||!!t,"A `YieldExpression` with an asteriskToken must have an expression.");const n=k(230);return n.expression=t&&r().parenthesizeExpressionForDisallowedComma(t),n.asteriskToken=e,n.transformFlags|=lw(n.expression)|lw(n.asteriskToken)|1049728,n}function Ut(e){const t=k(231);return t.expression=r().parenthesizeExpressionForDisallowedComma(e),t.transformFlags|=33792|lw(t.expression),t}function Vt(e,t,n,r,i){const o=S(232);return o.modifiers=Fi(e),o.name=Ei(t),o.typeParameters=Fi(n),o.heritageClauses=Fi(r),o.members=x(i),o.transformFlags|=_w(o.modifiers)|sw(o.name)|_w(o.typeParameters)|_w(o.heritageClauses)|_w(o.members)|(o.typeParameters?1:0)|1024,o.jsDoc=void 0,o}function Wt(e,t,n,r,i,o){return e.modifiers!==t||e.name!==n||e.typeParameters!==r||e.heritageClauses!==i||e.members!==o?Oi(Vt(t,n,r,i,o),e):e}function $t(e,t){const n=k(234);return n.expression=r().parenthesizeLeftSideOfAccess(e,!1),n.typeArguments=t&&r().parenthesizeTypeArguments(t),n.transformFlags|=lw(n.expression)|_w(n.typeArguments)|1024,n}function Ht(e,t,n){return e.expression!==t||e.typeArguments!==n?Oi($t(t,n),e):e}function Kt(e,t){const n=k(235);return n.expression=e,n.type=t,n.transformFlags|=lw(n.expression)|lw(n.type)|1,n}function Xt(e,t,n){return e.expression!==t||e.type!==n?Oi(Kt(t,n),e):e}function Qt(e){const t=k(236);return t.expression=r().parenthesizeLeftSideOfAccess(e,!1),t.transformFlags|=1|lw(t.expression),t}function Yt(e,t){return Tl(e)?nn(e,t):e.expression!==t?Oi(Qt(t),e):e}function Zt(e,t){const n=k(239);return n.expression=e,n.type=t,n.transformFlags|=lw(n.expression)|lw(n.type)|1,n}function en(e,t,n){return e.expression!==t||e.type!==n?Oi(Zt(t,n),e):e}function tn(e){const t=k(236);return t.flags|=64,t.expression=r().parenthesizeLeftSideOfAccess(e,!0),t.transformFlags|=1|lw(t.expression),t}function nn(e,t){return un.assert(!!(64&e.flags),"Cannot update a NonNullExpression using updateNonNullChain. Use updateNonNullExpression instead."),e.expression!==t?Oi(tn(t),e):e}function rn(e,t){const n=k(237);switch(n.keywordToken=e,n.name=t,n.transformFlags|=lw(n.name),e){case 105:n.transformFlags|=1024;break;case 102:n.transformFlags|=32;break;default:return un.assertNever(e)}return n.flowNode=void 0,n}function on(e,t){const n=k(240);return n.expression=e,n.literal=t,n.transformFlags|=lw(n.expression)|lw(n.literal)|1024,n}function an(e,t){const n=k(242);return n.statements=x(e),n.multiLine=t,n.transformFlags|=_w(n.statements),n.jsDoc=void 0,n.locals=void 0,n.nextContainer=void 0,n}function sn(e,t){const n=k(244);return n.modifiers=Fi(e),n.declarationList=Qe(t)?Dn(t):t,n.transformFlags|=_w(n.modifiers)|lw(n.declarationList),128&$v(n.modifiers)&&(n.transformFlags=1),n.jsDoc=void 0,n.flowNode=void 0,n}function cn(e,t,n){return e.modifiers!==t||e.declarationList!==n?Oi(sn(t,n),e):e}function ln(){const e=k(243);return e.jsDoc=void 0,e}function _n(e){const t=k(245);return t.expression=r().parenthesizeExpressionOfExpressionStatement(e),t.transformFlags|=lw(t.expression),t.jsDoc=void 0,t.flowNode=void 0,t}function dn(e,t,n){const r=k(246);return r.expression=e,r.thenStatement=Ii(t),r.elseStatement=Ii(n),r.transformFlags|=lw(r.expression)|lw(r.thenStatement)|lw(r.elseStatement),r.jsDoc=void 0,r.flowNode=void 0,r}function pn(e,t){const n=k(247);return n.statement=Ii(e),n.expression=t,n.transformFlags|=lw(n.statement)|lw(n.expression),n.jsDoc=void 0,n.flowNode=void 0,n}function fn(e,t){const n=k(248);return n.expression=e,n.statement=Ii(t),n.transformFlags|=lw(n.expression)|lw(n.statement),n.jsDoc=void 0,n.flowNode=void 0,n}function mn(e,t,n,r){const i=k(249);return i.initializer=e,i.condition=t,i.incrementor=n,i.statement=Ii(r),i.transformFlags|=lw(i.initializer)|lw(i.condition)|lw(i.incrementor)|lw(i.statement),i.jsDoc=void 0,i.locals=void 0,i.nextContainer=void 0,i.flowNode=void 0,i}function gn(e,t,n){const r=k(250);return r.initializer=e,r.expression=t,r.statement=Ii(n),r.transformFlags|=lw(r.initializer)|lw(r.expression)|lw(r.statement),r.jsDoc=void 0,r.locals=void 0,r.nextContainer=void 0,r.flowNode=void 0,r}function hn(e,t,n,i){const o=k(251);return o.awaitModifier=e,o.initializer=t,o.expression=r().parenthesizeExpressionForDisallowedComma(n),o.statement=Ii(i),o.transformFlags|=lw(o.awaitModifier)|lw(o.initializer)|lw(o.expression)|lw(o.statement)|1024,e&&(o.transformFlags|=128),o.jsDoc=void 0,o.locals=void 0,o.nextContainer=void 0,o.flowNode=void 0,o}function yn(e){const t=k(252);return t.label=Ei(e),t.transformFlags|=4194304|lw(t.label),t.jsDoc=void 0,t.flowNode=void 0,t}function vn(e){const t=k(253);return t.label=Ei(e),t.transformFlags|=4194304|lw(t.label),t.jsDoc=void 0,t.flowNode=void 0,t}function bn(e){const t=k(254);return t.expression=e,t.transformFlags|=4194432|lw(t.expression),t.jsDoc=void 0,t.flowNode=void 0,t}function xn(e,t){const n=k(255);return n.expression=e,n.statement=Ii(t),n.transformFlags|=lw(n.expression)|lw(n.statement),n.jsDoc=void 0,n.flowNode=void 0,n}function kn(e,t){const n=k(256);return n.expression=r().parenthesizeExpressionForDisallowedComma(e),n.caseBlock=t,n.transformFlags|=lw(n.expression)|lw(n.caseBlock),n.jsDoc=void 0,n.flowNode=void 0,n.possiblyExhaustive=!1,n}function Sn(e,t){const n=k(257);return n.label=Ei(e),n.statement=Ii(t),n.transformFlags|=lw(n.label)|lw(n.statement),n.jsDoc=void 0,n.flowNode=void 0,n}function Tn(e,t,n){return e.label!==t||e.statement!==n?Oi(Sn(t,n),e):e}function Cn(e){const t=k(258);return t.expression=e,t.transformFlags|=lw(t.expression),t.jsDoc=void 0,t.flowNode=void 0,t}function wn(e,t,n){const r=k(259);return r.tryBlock=e,r.catchClause=t,r.finallyBlock=n,r.transformFlags|=lw(r.tryBlock)|lw(r.catchClause)|lw(r.finallyBlock),r.jsDoc=void 0,r.flowNode=void 0,r}function Nn(e,t,n,r){const i=S(261);return i.name=Ei(e),i.exclamationToken=t,i.type=n,i.initializer=Ai(r),i.transformFlags|=sw(i.name)|lw(i.initializer)|(i.exclamationToken??i.type?1:0),i.jsDoc=void 0,i}function Dn(e,t=0){const n=k(262);return n.flags|=7&t,n.declarations=x(e),n.transformFlags|=4194304|_w(n.declarations),7&t&&(n.transformFlags|=263168),4&t&&(n.transformFlags|=4),n}function Fn(e,t,n,r,i,o,a){const s=S(263);if(s.modifiers=Fi(e),s.asteriskToken=t,s.name=Ei(n),s.typeParameters=Fi(r),s.parameters=x(i),s.type=o,s.body=a,!s.body||128&$v(s.modifiers))s.transformFlags=1;else{const e=1024&$v(s.modifiers),t=!!s.asteriskToken,n=e&&t;s.transformFlags=_w(s.modifiers)|lw(s.asteriskToken)|sw(s.name)|_w(s.typeParameters)|_w(s.parameters)|lw(s.type)|-67108865&lw(s.body)|(n?128:e?256:t?2048:0)|(s.typeParameters||s.type?1:0)|4194304}return s.typeArguments=void 0,s.jsDoc=void 0,s.locals=void 0,s.nextContainer=void 0,s.endFlowNode=void 0,s.returnFlowNode=void 0,s}function En(e,t,n,r,i,o,a,s){return e.modifiers!==t||e.asteriskToken!==n||e.name!==r||e.typeParameters!==i||e.parameters!==o||e.type!==a||e.body!==s?((c=Fn(t,n,r,i,o,a,s))!==(l=e)&&c.modifiers===l.modifiers&&(c.modifiers=l.modifiers),T(c,l)):e;var c,l}function Pn(e,t,n,r,i){const o=S(264);return o.modifiers=Fi(e),o.name=Ei(t),o.typeParameters=Fi(n),o.heritageClauses=Fi(r),o.members=x(i),128&$v(o.modifiers)?o.transformFlags=1:(o.transformFlags|=_w(o.modifiers)|sw(o.name)|_w(o.typeParameters)|_w(o.heritageClauses)|_w(o.members)|(o.typeParameters?1:0)|1024,8192&o.transformFlags&&(o.transformFlags|=1)),o.jsDoc=void 0,o}function An(e,t,n,r,i,o){return e.modifiers!==t||e.name!==n||e.typeParameters!==r||e.heritageClauses!==i||e.members!==o?Oi(Pn(t,n,r,i,o),e):e}function In(e,t,n,r,i){const o=S(265);return o.modifiers=Fi(e),o.name=Ei(t),o.typeParameters=Fi(n),o.heritageClauses=Fi(r),o.members=x(i),o.transformFlags=1,o.jsDoc=void 0,o}function On(e,t,n,r,i,o){return e.modifiers!==t||e.name!==n||e.typeParameters!==r||e.heritageClauses!==i||e.members!==o?Oi(In(t,n,r,i,o),e):e}function Ln(e,t,n,r){const i=S(266);return i.modifiers=Fi(e),i.name=Ei(t),i.typeParameters=Fi(n),i.type=r,i.transformFlags=1,i.jsDoc=void 0,i.locals=void 0,i.nextContainer=void 0,i}function jn(e,t,n,r,i){return e.modifiers!==t||e.name!==n||e.typeParameters!==r||e.type!==i?Oi(Ln(t,n,r,i),e):e}function Mn(e,t,n){const r=S(267);return r.modifiers=Fi(e),r.name=Ei(t),r.members=x(n),r.transformFlags|=_w(r.modifiers)|lw(r.name)|_w(r.members)|1,r.transformFlags&=-67108865,r.jsDoc=void 0,r}function Rn(e,t,n,r){return e.modifiers!==t||e.name!==n||e.members!==r?Oi(Mn(t,n,r),e):e}function Bn(e,t,n,r=0){const i=S(268);return i.modifiers=Fi(e),i.flags|=2088&r,i.name=t,i.body=n,128&$v(i.modifiers)?i.transformFlags=1:i.transformFlags|=_w(i.modifiers)|lw(i.name)|lw(i.body)|1,i.transformFlags&=-67108865,i.jsDoc=void 0,i.locals=void 0,i.nextContainer=void 0,i}function Jn(e,t,n,r){return e.modifiers!==t||e.name!==n||e.body!==r?Oi(Bn(t,n,r,e.flags),e):e}function zn(e){const t=k(269);return t.statements=x(e),t.transformFlags|=_w(t.statements),t.jsDoc=void 0,t}function qn(e){const t=k(270);return t.clauses=x(e),t.transformFlags|=_w(t.clauses),t.locals=void 0,t.nextContainer=void 0,t}function Un(e){const t=S(271);return t.name=Ei(e),t.transformFlags|=1|cw(t.name),t.modifiers=void 0,t.jsDoc=void 0,t}function Vn(e,t,n,r){const i=S(272);return i.modifiers=Fi(e),i.name=Ei(n),i.isTypeOnly=t,i.moduleReference=r,i.transformFlags|=_w(i.modifiers)|cw(i.name)|lw(i.moduleReference),JE(i.moduleReference)||(i.transformFlags|=1),i.transformFlags&=-67108865,i.jsDoc=void 0,i}function Wn(e,t,n,r,i){return e.modifiers!==t||e.isTypeOnly!==n||e.name!==r||e.moduleReference!==i?Oi(Vn(t,n,r,i),e):e}function $n(e,t,n,r){const i=k(273);return i.modifiers=Fi(e),i.importClause=t,i.moduleSpecifier=n,i.attributes=i.assertClause=r,i.transformFlags|=lw(i.importClause)|lw(i.moduleSpecifier),i.transformFlags&=-67108865,i.jsDoc=void 0,i}function Hn(e,t,n,r,i){return e.modifiers!==t||e.importClause!==n||e.moduleSpecifier!==r||e.attributes!==i?Oi($n(t,n,r,i),e):e}function Kn(e,t,n){const r=S(274);return"boolean"==typeof e&&(e=e?156:void 0),r.isTypeOnly=156===e,r.phaseModifier=e,r.name=t,r.namedBindings=n,r.transformFlags|=lw(r.name)|lw(r.namedBindings),156===e&&(r.transformFlags|=1),r.transformFlags&=-67108865,r}function Gn(e,t){const n=k(301);return n.elements=x(e),n.multiLine=t,n.token=132,n.transformFlags|=4,n}function Xn(e,t){const n=k(302);return n.name=e,n.value=t,n.transformFlags|=4,n}function Qn(e,t){const n=k(303);return n.assertClause=e,n.multiLine=t,n}function Yn(e,t,n){const r=k(301);return r.token=n??118,r.elements=x(e),r.multiLine=t,r.transformFlags|=4,r}function Zn(e,t){const n=k(302);return n.name=e,n.value=t,n.transformFlags|=4,n}function er(e){const t=S(275);return t.name=e,t.transformFlags|=lw(t.name),t.transformFlags&=-67108865,t}function tr(e){const t=S(281);return t.name=e,t.transformFlags|=32|lw(t.name),t.transformFlags&=-67108865,t}function nr(e){const t=k(276);return t.elements=x(e),t.transformFlags|=_w(t.elements),t.transformFlags&=-67108865,t}function rr(e,t,n){const r=S(277);return r.isTypeOnly=e,r.propertyName=t,r.name=n,r.transformFlags|=lw(r.propertyName)|lw(r.name),r.transformFlags&=-67108865,r}function ir(e,t,n){const i=S(278);return i.modifiers=Fi(e),i.isExportEquals=t,i.expression=t?r().parenthesizeRightSideOfBinary(64,void 0,n):r().parenthesizeExpressionOfExportDefault(n),i.transformFlags|=_w(i.modifiers)|lw(i.expression),i.transformFlags&=-67108865,i.jsDoc=void 0,i}function or(e,t,n){return e.modifiers!==t||e.expression!==n?Oi(ir(t,e.isExportEquals,n),e):e}function ar(e,t,n,r,i){const o=S(279);return o.modifiers=Fi(e),o.isTypeOnly=t,o.exportClause=n,o.moduleSpecifier=r,o.attributes=o.assertClause=i,o.transformFlags|=_w(o.modifiers)|lw(o.exportClause)|lw(o.moduleSpecifier),o.transformFlags&=-67108865,o.jsDoc=void 0,o}function sr(e,t,n,r,i,o){return e.modifiers!==t||e.isTypeOnly!==n||e.exportClause!==r||e.moduleSpecifier!==i||e.attributes!==o?((a=ar(t,n,r,i,o))!==(s=e)&&a.modifiers===s.modifiers&&(a.modifiers=s.modifiers),Oi(a,s)):e;var a,s}function cr(e){const t=k(280);return t.elements=x(e),t.transformFlags|=_w(t.elements),t.transformFlags&=-67108865,t}function lr(e,t,n){const r=k(282);return r.isTypeOnly=e,r.propertyName=Ei(t),r.name=Ei(n),r.transformFlags|=lw(r.propertyName)|lw(r.name),r.transformFlags&=-67108865,r.jsDoc=void 0,r}function _r(e){const t=k(284);return t.expression=e,t.transformFlags|=lw(t.expression),t.transformFlags&=-67108865,t}function ur(e,t,n=!1){const i=dr(e,n?t&&r().parenthesizeNonArrayTypeOfPostfixType(t):t);return i.postfix=n,i}function dr(e,t){const n=k(e);return n.type=t,n}function pr(e,t){const n=S(318);return n.parameters=Fi(e),n.type=t,n.transformFlags=_w(n.parameters)|(n.type?1:0),n.jsDoc=void 0,n.locals=void 0,n.nextContainer=void 0,n.typeArguments=void 0,n}function fr(e,t=!1){const n=S(323);return n.jsDocPropertyTags=Fi(e),n.isArrayType=t,n}function mr(e){const t=k(310);return t.type=e,t}function gr(e,t,n){const r=S(324);return r.typeParameters=Fi(e),r.parameters=x(t),r.type=n,r.jsDoc=void 0,r.locals=void 0,r.nextContainer=void 0,r}function hr(e){const t=ow(e.kind);return e.tagName.escapedText===fc(t)?e.tagName:A(t)}function yr(e,t,n){const r=k(e);return r.tagName=t,r.comment=n,r}function vr(e,t,n){const r=S(e);return r.tagName=t,r.comment=n,r}function br(e,t,n,r){const i=yr(346,e??A("template"),r);return i.constraint=t,i.typeParameters=x(n),i}function xr(e,t,n,r){const i=vr(347,e??A("typedef"),r);return i.typeExpression=t,i.fullName=n,i.name=UA(n),i.locals=void 0,i.nextContainer=void 0,i}function kr(e,t,n,r,i,o){const a=vr(342,e??A("param"),o);return a.typeExpression=r,a.name=t,a.isNameFirst=!!i,a.isBracketed=n,a}function Sr(e,t,n,r,i,o){const a=vr(349,e??A("prop"),o);return a.typeExpression=r,a.name=t,a.isNameFirst=!!i,a.isBracketed=n,a}function Tr(e,t,n,r){const i=vr(339,e??A("callback"),r);return i.typeExpression=t,i.fullName=n,i.name=UA(n),i.locals=void 0,i.nextContainer=void 0,i}function Cr(e,t,n){const r=yr(340,e??A("overload"),n);return r.typeExpression=t,r}function wr(e,t,n){const r=yr(329,e??A("augments"),n);return r.class=t,r}function Nr(e,t,n){const r=yr(330,e??A("implements"),n);return r.class=t,r}function Dr(e,t,n){const r=yr(348,e??A("see"),n);return r.name=t,r}function Fr(e){const t=k(311);return t.name=e,t}function Er(e,t){const n=k(312);return n.left=e,n.right=t,n.transformFlags|=lw(n.left)|lw(n.right),n}function Pr(e,t){const n=k(325);return n.name=e,n.text=t,n}function Ar(e,t){const n=k(326);return n.name=e,n.text=t,n}function Ir(e,t){const n=k(327);return n.name=e,n.text=t,n}function Or(e,t,n){return yr(e,t??A(ow(e)),n)}function Lr(e,t,n,r){const i=yr(e,t??A(ow(e)),r);return i.typeExpression=n,i}function jr(e,t){return yr(328,e,t)}function Mr(e,t,n){const r=vr(341,e??A(ow(341)),n);return r.typeExpression=t,r.locals=void 0,r.nextContainer=void 0,r}function Rr(e,t,n,r,i){const o=yr(352,e??A("import"),i);return o.importClause=t,o.moduleSpecifier=n,o.attributes=r,o.comment=i,o}function Br(e){const t=k(322);return t.text=e,t}function Jr(e,t){const n=k(321);return n.comment=e,n.tags=Fi(t),n}function zr(e,t,n){const r=k(285);return r.openingElement=e,r.children=x(t),r.closingElement=n,r.transformFlags|=lw(r.openingElement)|_w(r.children)|lw(r.closingElement)|2,r}function qr(e,t,n){const r=k(286);return r.tagName=e,r.typeArguments=Fi(t),r.attributes=n,r.transformFlags|=lw(r.tagName)|_w(r.typeArguments)|lw(r.attributes)|2,r.typeArguments&&(r.transformFlags|=1),r}function Ur(e,t,n){const r=k(287);return r.tagName=e,r.typeArguments=Fi(t),r.attributes=n,r.transformFlags|=lw(r.tagName)|_w(r.typeArguments)|lw(r.attributes)|2,t&&(r.transformFlags|=1),r}function Vr(e){const t=k(288);return t.tagName=e,t.transformFlags|=2|lw(t.tagName),t}function Wr(e,t,n){const r=k(289);return r.openingFragment=e,r.children=x(t),r.closingFragment=n,r.transformFlags|=lw(r.openingFragment)|_w(r.children)|lw(r.closingFragment)|2,r}function $r(e,t){const n=k(12);return n.text=e,n.containsOnlyTriviaWhiteSpaces=!!t,n.transformFlags|=2,n}function Hr(e,t){const n=S(292);return n.name=e,n.initializer=t,n.transformFlags|=lw(n.name)|lw(n.initializer)|2,n}function Kr(e){const t=S(293);return t.properties=x(e),t.transformFlags|=2|_w(t.properties),t}function Gr(e){const t=k(294);return t.expression=e,t.transformFlags|=2|lw(t.expression),t}function Xr(e,t){const n=k(295);return n.dotDotDotToken=e,n.expression=t,n.transformFlags|=lw(n.dotDotDotToken)|lw(n.expression)|2,n}function Qr(e,t){const n=k(296);return n.namespace=e,n.name=t,n.transformFlags|=lw(n.namespace)|lw(n.name)|2,n}function Yr(e,t){const n=k(297);return n.expression=r().parenthesizeExpressionForDisallowedComma(e),n.statements=x(t),n.transformFlags|=lw(n.expression)|_w(n.statements),n.jsDoc=void 0,n}function Zr(e){const t=k(298);return t.statements=x(e),t.transformFlags=_w(t.statements),t}function ei(e,t){const n=k(299);switch(n.token=e,n.types=x(t),n.transformFlags|=_w(n.types),e){case 96:n.transformFlags|=1024;break;case 119:n.transformFlags|=1;break;default:return un.assertNever(e)}return n}function ti(e,t){const n=k(300);return n.variableDeclaration=function(e){return"string"==typeof e||e&&!lE(e)?Nn(e,void 0,void 0,void 0):e}(e),n.block=t,n.transformFlags|=lw(n.variableDeclaration)|lw(n.block)|(e?0:64),n.locals=void 0,n.nextContainer=void 0,n}function ni(e,t){const n=S(304);return n.name=Ei(e),n.initializer=r().parenthesizeExpressionForDisallowedComma(t),n.transformFlags|=sw(n.name)|lw(n.initializer),n.modifiers=void 0,n.questionToken=void 0,n.exclamationToken=void 0,n.jsDoc=void 0,n}function ri(e,t,n){return e.name!==t||e.initializer!==n?((r=ni(t,n))!==(i=e)&&(r.modifiers=i.modifiers,r.questionToken=i.questionToken,r.exclamationToken=i.exclamationToken),Oi(r,i)):e;var r,i}function ii(e,t){const n=S(305);return n.name=Ei(e),n.objectAssignmentInitializer=t&&r().parenthesizeExpressionForDisallowedComma(t),n.transformFlags|=cw(n.name)|lw(n.objectAssignmentInitializer)|1024,n.equalsToken=void 0,n.modifiers=void 0,n.questionToken=void 0,n.exclamationToken=void 0,n.jsDoc=void 0,n}function oi(e){const t=S(306);return t.expression=r().parenthesizeExpressionForDisallowedComma(e),t.transformFlags|=65664|lw(t.expression),t.jsDoc=void 0,t}function ai(e,t){const n=S(307);return n.name=Ei(e),n.initializer=t&&r().parenthesizeExpressionForDisallowedComma(t),n.transformFlags|=lw(n.name)|lw(n.initializer)|1,n.jsDoc=void 0,n}function si(e){const t=Object.create(e.redirectTarget);return Object.defineProperties(t,{id:{get(){return this.redirectInfo.redirectTarget.id},set(e){this.redirectInfo.redirectTarget.id=e}},symbol:{get(){return this.redirectInfo.redirectTarget.symbol},set(e){this.redirectInfo.redirectTarget.symbol=e}}}),t.redirectInfo=e,t}function ci(e){const r=e.redirectInfo?function(e){const t=si(e.redirectInfo);return t.flags|=-17&e.flags,t.fileName=e.fileName,t.path=e.path,t.resolvedPath=e.resolvedPath,t.originalFileName=e.originalFileName,t.packageJsonLocations=e.packageJsonLocations,t.packageJsonScope=e.packageJsonScope,t.emitNode=void 0,t}(e):function(e){const n=t.createBaseSourceFileNode(308);n.flags|=-17&e.flags;for(const t in e)!De(n,t)&&De(e,t)&&("emitNode"!==t?n[t]=e[t]:n.emitNode=void 0);return n}(e);return n(r,e),r}function li(e){const t=k(309);return t.sourceFiles=e,t.syntheticFileReferences=void 0,t.syntheticTypeReferences=void 0,t.syntheticLibReferences=void 0,t.hasNoDefaultLib=void 0,t}function _i(e,t){const n=k(356);return n.expression=e,n.original=t,n.transformFlags|=1|lw(n.expression),xI(n,t),n}function ui(e,t){return e.expression!==t?Oi(_i(t,e.original),e):e}function di(e){if(ey(e)&&!dc(e)&&!e.original&&!e.emitNode&&!e.id){if(zF(e))return e.elements;if(NF(e)&&QN(e.operatorToken))return[e.left,e.right]}return e}function pi(e){const t=k(357);return t.elements=x(M(e,di)),t.transformFlags|=_w(t.elements),t}function fi(e,t){const n=k(358);return n.expression=e,n.thisArg=t,n.transformFlags|=lw(n.expression)|lw(n.thisArg),n}function mi(e){if(void 0===e)return e;if(sP(e))return ci(e);if(Wl(e))return function(e){const t=E(e.escapedText);return t.flags|=-17&e.flags,t.transformFlags=e.transformFlags,n(t,e),eN(t,{...e.emitNode.autoGenerate}),t}(e);if(aD(e))return function(e){const t=E(e.escapedText);t.flags|=-17&e.flags,t.jsDoc=e.jsDoc,t.flowNode=e.flowNode,t.symbol=e.symbol,t.transformFlags=e.transformFlags,n(t,e);const r=Zw(e);return r&&Yw(t,r),t}(e);if($l(e))return function(e){const t=L(e.escapedText);return t.flags|=-17&e.flags,t.transformFlags=e.transformFlags,n(t,e),eN(t,{...e.emitNode.autoGenerate}),t}(e);if(sD(e))return function(e){const t=L(e.escapedText);return t.flags|=-17&e.flags,t.transformFlags=e.transformFlags,n(t,e),t}(e);const r=Dl(e.kind)?t.createBaseNode(e.kind):t.createBaseTokenNode(e.kind);r.flags|=-17&e.flags,r.transformFlags=e.transformFlags,n(r,e);for(const t in e)!De(r,t)&&De(e,t)&&(r[t]=e[t]);return r}function gi(){return Et(C("0"))}function hi(e,t,n){return gl(e)?gt(it(e,void 0,t),void 0,void 0,n):mt(rt(e,t),void 0,n)}function yi(e,t,n){return hi(A(e),t,n)}function vi(e,t,n){return!!n&&(e.push(ni(t,n)),!0)}function bi(e,t){const n=ah(e);switch(n.kind){case 80:return t;case 110:case 9:case 10:case 11:return!1;case 210:return 0!==n.elements.length;case 211:return n.properties.length>0;default:return!0}}function xi(e,t,n,r=0,i){const o=i?e&&Tc(e):Cc(e);if(o&&aD(o)&&!Wl(o)){const e=DT(xI(mi(o),o),o.parent);return r|=Zd(o),n||(r|=96),t||(r|=3072),r&&xw(e,r),e}return O(e)}function ki(e,t,n){return xi(e,t,n,16384)}function Si(e,t,n,r){const i=rt(e,ey(t)?t:mi(t));xI(i,t);let o=0;return r||(o|=96),n||(o|=3072),o&&xw(i,o),i}function Ti(e){return UN(e.expression)&&"use strict"===e.expression.text}function Ci(){return FA(_n(D("use strict")))}function wi(e,t,n=0,r){un.assert(0===t.length,"Prologue directives should be at the first statement in the target statements array");let i=!1;const o=e.length;for(;n=183&&e<=206)return-2;switch(e){case 214:case 215:case 210:case 207:case 208:return-2147450880;case 268:return-1941676032;case 170:case 217:case 239:case 235:case 356:case 218:case 108:case 212:case 213:default:return-2147483648;case 220:return-2072174592;case 219:case 263:return-1937940480;case 262:return-2146893824;case 264:case 232:return-2147344384;case 177:return-1937948672;case 173:return-2013249536;case 175:case 178:case 179:return-2005057536;case 133:case 150:case 163:case 146:case 154:case 151:case 136:case 155:case 116:case 169:case 172:case 174:case 180:case 181:case 182:case 265:case 266:return-2;case 211:return-2147278848;case 300:return-2147418112}}(e.kind);return Sc(e)&&t_(e.name)?t|134234112&e.name.transformFlags:t}function _w(e){return e?e.transformFlags:0}function uw(e){let t=0;for(const n of e)t|=lw(n);e.transformFlags=t}var dw=KC();function pw(e){return e.flags|=16,e}var fw,mw=iw(4,{createBaseSourceFileNode:e=>pw(dw.createBaseSourceFileNode(e)),createBaseIdentifierNode:e=>pw(dw.createBaseIdentifierNode(e)),createBasePrivateIdentifierNode:e=>pw(dw.createBasePrivateIdentifierNode(e)),createBaseTokenNode:e=>pw(dw.createBaseTokenNode(e)),createBaseNode:e=>pw(dw.createBaseNode(e))});function gw(e,t,n){return new(fw||(fw=Mx.getSourceMapSourceConstructor()))(e,t,n)}function hw(e,t){if(e.original!==t&&(e.original=t,t)){const n=t.emitNode;n&&(e.emitNode=function(e,t){const{flags:n,internalFlags:r,leadingComments:i,trailingComments:o,commentRange:a,sourceMapRange:s,tokenSourceMapRanges:c,constantValue:l,helpers:_,startsOnNewLine:u,snippetElement:d,classThis:p,assignedName:f}=e;if(t||(t={}),n&&(t.flags=n),r&&(t.internalFlags=-9&r),i&&(t.leadingComments=se(i.slice(),t.leadingComments)),o&&(t.trailingComments=se(o.slice(),t.trailingComments)),a&&(t.commentRange=a),s&&(t.sourceMapRange=s),c&&(t.tokenSourceMapRanges=function(e,t){t||(t=[]);for(const n in e)t[n]=e[n];return t}(c,t.tokenSourceMapRanges)),void 0!==l&&(t.constantValue=l),_)for(const e of _)t.helpers=le(t.helpers,e);return void 0!==u&&(t.startsOnNewLine=u),void 0!==d&&(t.snippetElement=d),p&&(t.classThis=p),f&&(t.assignedName=f),t}(n,e.emitNode))}return e}function yw(e){if(e.emitNode)un.assert(!(8&e.emitNode.internalFlags),"Invalid attempt to mutate an immutable node.");else{if(dc(e)){if(308===e.kind)return e.emitNode={annotatedNodes:[e]};yw(vd(pc(vd(e)))??un.fail("Could not determine parsed source file.")).annotatedNodes.push(e)}e.emitNode={}}return e.emitNode}function vw(e){var t,n;const r=null==(n=null==(t=vd(pc(e)))?void 0:t.emitNode)?void 0:n.annotatedNodes;if(r)for(const e of r)e.emitNode=void 0}function bw(e){const t=yw(e);return t.flags|=3072,t.leadingComments=void 0,t.trailingComments=void 0,e}function xw(e,t){return yw(e).flags=t,e}function kw(e,t){const n=yw(e);return n.flags=n.flags|t,e}function Sw(e,t){return yw(e).internalFlags=t,e}function Tw(e,t){const n=yw(e);return n.internalFlags=n.internalFlags|t,e}function Cw(e){var t;return(null==(t=e.emitNode)?void 0:t.sourceMapRange)??e}function ww(e,t){return yw(e).sourceMapRange=t,e}function Nw(e,t){var n,r;return null==(r=null==(n=e.emitNode)?void 0:n.tokenSourceMapRanges)?void 0:r[t]}function Dw(e,t,n){const r=yw(e);return(r.tokenSourceMapRanges??(r.tokenSourceMapRanges=[]))[t]=n,e}function Fw(e){var t;return null==(t=e.emitNode)?void 0:t.startsOnNewLine}function Ew(e,t){return yw(e).startsOnNewLine=t,e}function Pw(e){var t;return(null==(t=e.emitNode)?void 0:t.commentRange)??e}function Aw(e,t){return yw(e).commentRange=t,e}function Iw(e){var t;return null==(t=e.emitNode)?void 0:t.leadingComments}function Ow(e,t){return yw(e).leadingComments=t,e}function Lw(e,t,n,r){return Ow(e,ie(Iw(e),{kind:t,pos:-1,end:-1,hasTrailingNewLine:r,text:n}))}function jw(e){var t;return null==(t=e.emitNode)?void 0:t.trailingComments}function Mw(e,t){return yw(e).trailingComments=t,e}function Rw(e,t,n,r){return Mw(e,ie(jw(e),{kind:t,pos:-1,end:-1,hasTrailingNewLine:r,text:n}))}function Bw(e,t){Ow(e,Iw(t)),Mw(e,jw(t));const n=yw(t);return n.leadingComments=void 0,n.trailingComments=void 0,e}function Jw(e){var t;return null==(t=e.emitNode)?void 0:t.constantValue}function zw(e,t){return yw(e).constantValue=t,e}function qw(e,t){const n=yw(e);return n.helpers=ie(n.helpers,t),e}function Uw(e,t){if($(t)){const n=yw(e);for(const e of t)n.helpers=le(n.helpers,e)}return e}function Vw(e,t){var n;const r=null==(n=e.emitNode)?void 0:n.helpers;return!!r&&zt(r,t)}function Ww(e){var t;return null==(t=e.emitNode)?void 0:t.helpers}function $w(e,t,n){const r=e.emitNode,i=r&&r.helpers;if(!$(i))return;const o=yw(t);let a=0;for(let e=0;e0&&(i[e-a]=t)}a>0&&(i.length-=a)}function Hw(e){var t;return null==(t=e.emitNode)?void 0:t.snippetElement}function Kw(e,t){return yw(e).snippetElement=t,e}function Gw(e){return yw(e).internalFlags|=4,e}function Xw(e,t){return yw(e).typeNode=t,e}function Qw(e){var t;return null==(t=e.emitNode)?void 0:t.typeNode}function Yw(e,t){return yw(e).identifierTypeArguments=t,e}function Zw(e){var t;return null==(t=e.emitNode)?void 0:t.identifierTypeArguments}function eN(e,t){return yw(e).autoGenerate=t,e}function tN(e){var t;return null==(t=e.emitNode)?void 0:t.autoGenerate}function nN(e,t){return yw(e).generatedImportReference=t,e}function rN(e){var t;return null==(t=e.emitNode)?void 0:t.generatedImportReference}var iN=(e=>(e.Field="f",e.Method="m",e.Accessor="a",e))(iN||{});function oN(e){const t=e.factory,n=dt(()=>Sw(t.createTrue(),8)),r=dt(()=>Sw(t.createFalse(),8));return{getUnscopedHelperName:i,createDecorateHelper:function(n,r,o,a){e.requestEmitHelper(cN);const s=[];return s.push(t.createArrayLiteralExpression(n,!0)),s.push(r),o&&(s.push(o),a&&s.push(a)),t.createCallExpression(i("__decorate"),void 0,s)},createMetadataHelper:function(n,r){return e.requestEmitHelper(lN),t.createCallExpression(i("__metadata"),void 0,[t.createStringLiteral(n),r])},createParamHelper:function(n,r,o){return e.requestEmitHelper(_N),xI(t.createCallExpression(i("__param"),void 0,[t.createNumericLiteral(r+""),n]),o)},createESDecorateHelper:function(n,r,o,s,c,l){return e.requestEmitHelper(uN),t.createCallExpression(i("__esDecorate"),void 0,[n??t.createNull(),r??t.createNull(),o,a(s),c,l])},createRunInitializersHelper:function(n,r,o){return e.requestEmitHelper(dN),t.createCallExpression(i("__runInitializers"),void 0,o?[n,r,o]:[n,r])},createAssignHelper:function(n){return yk(e.getCompilerOptions())>=2?t.createCallExpression(t.createPropertyAccessExpression(t.createIdentifier("Object"),"assign"),void 0,n):(e.requestEmitHelper(pN),t.createCallExpression(i("__assign"),void 0,n))},createAwaitHelper:function(n){return e.requestEmitHelper(fN),t.createCallExpression(i("__await"),void 0,[n])},createAsyncGeneratorHelper:function(n,r){return e.requestEmitHelper(fN),e.requestEmitHelper(mN),(n.emitNode||(n.emitNode={})).flags|=1572864,t.createCallExpression(i("__asyncGenerator"),void 0,[r?t.createThis():t.createVoidZero(),t.createIdentifier("arguments"),n])},createAsyncDelegatorHelper:function(n){return e.requestEmitHelper(fN),e.requestEmitHelper(gN),t.createCallExpression(i("__asyncDelegator"),void 0,[n])},createAsyncValuesHelper:function(n){return e.requestEmitHelper(hN),t.createCallExpression(i("__asyncValues"),void 0,[n])},createRestHelper:function(n,r,o,a){e.requestEmitHelper(yN);const s=[];let c=0;for(let e=0;e{let r="";for(let i=0;i= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n return c > 3 && r && Object.defineProperty(target, key, r), r;\n };'},lN={name:"typescript:metadata",importName:"__metadata",scoped:!1,priority:3,text:'\n var __metadata = (this && this.__metadata) || function (k, v) {\n if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);\n };'},_N={name:"typescript:param",importName:"__param",scoped:!1,priority:4,text:"\n var __param = (this && this.__param) || function (paramIndex, decorator) {\n return function (target, key) { decorator(target, key, paramIndex); }\n };"},uN={name:"typescript:esDecorate",importName:"__esDecorate",scoped:!1,priority:2,text:'\n var __esDecorate = (this && this.__esDecorate) || function (ctor, descriptorIn, decorators, contextIn, initializers, extraInitializers) {\n function accept(f) { if (f !== void 0 && typeof f !== "function") throw new TypeError("Function expected"); return f; }\n var kind = contextIn.kind, key = kind === "getter" ? "get" : kind === "setter" ? "set" : "value";\n var target = !descriptorIn && ctor ? contextIn["static"] ? ctor : ctor.prototype : null;\n var descriptor = descriptorIn || (target ? Object.getOwnPropertyDescriptor(target, contextIn.name) : {});\n var _, done = false;\n for (var i = decorators.length - 1; i >= 0; i--) {\n var context = {};\n for (var p in contextIn) context[p] = p === "access" ? {} : contextIn[p];\n for (var p in contextIn.access) context.access[p] = contextIn.access[p];\n context.addInitializer = function (f) { if (done) throw new TypeError("Cannot add initializers after decoration has completed"); extraInitializers.push(accept(f || null)); };\n var result = (0, decorators[i])(kind === "accessor" ? { get: descriptor.get, set: descriptor.set } : descriptor[key], context);\n if (kind === "accessor") {\n if (result === void 0) continue;\n if (result === null || typeof result !== "object") throw new TypeError("Object expected");\n if (_ = accept(result.get)) descriptor.get = _;\n if (_ = accept(result.set)) descriptor.set = _;\n if (_ = accept(result.init)) initializers.unshift(_);\n }\n else if (_ = accept(result)) {\n if (kind === "field") initializers.unshift(_);\n else descriptor[key] = _;\n }\n }\n if (target) Object.defineProperty(target, contextIn.name, descriptor);\n done = true;\n };'},dN={name:"typescript:runInitializers",importName:"__runInitializers",scoped:!1,priority:2,text:"\n var __runInitializers = (this && this.__runInitializers) || function (thisArg, initializers, value) {\n var useValue = arguments.length > 2;\n for (var i = 0; i < initializers.length; i++) {\n value = useValue ? initializers[i].call(thisArg, value) : initializers[i].call(thisArg);\n }\n return useValue ? value : void 0;\n };"},pN={name:"typescript:assign",importName:"__assign",scoped:!1,priority:1,text:"\n var __assign = (this && this.__assign) || function () {\n __assign = Object.assign || function(t) {\n for (var s, i = 1, n = arguments.length; i < n; i++) {\n s = arguments[i];\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))\n t[p] = s[p];\n }\n return t;\n };\n return __assign.apply(this, arguments);\n };"},fN={name:"typescript:await",importName:"__await",scoped:!1,text:"\n var __await = (this && this.__await) || function (v) { return this instanceof __await ? (this.v = v, this) : new __await(v); }"},mN={name:"typescript:asyncGenerator",importName:"__asyncGenerator",scoped:!1,dependencies:[fN],text:'\n var __asyncGenerator = (this && this.__asyncGenerator) || function (thisArg, _arguments, generator) {\n if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");\n var g = generator.apply(thisArg, _arguments || []), i, q = [];\n return i = Object.create((typeof AsyncIterator === "function" ? AsyncIterator : Object).prototype), verb("next"), verb("throw"), verb("return", awaitReturn), i[Symbol.asyncIterator] = function () { return this; }, i;\n function awaitReturn(f) { return function (v) { return Promise.resolve(v).then(f, reject); }; }\n function verb(n, f) { if (g[n]) { i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; if (f) i[n] = f(i[n]); } }\n function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } }\n function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }\n function fulfill(value) { resume("next", value); }\n function reject(value) { resume("throw", value); }\n function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); }\n };'},gN={name:"typescript:asyncDelegator",importName:"__asyncDelegator",scoped:!1,dependencies:[fN],text:'\n var __asyncDelegator = (this && this.__asyncDelegator) || function (o) {\n var i, p;\n return i = {}, verb("next"), verb("throw", function (e) { throw e; }), verb("return"), i[Symbol.iterator] = function () { return this; }, i;\n function verb(n, f) { i[n] = o[n] ? function (v) { return (p = !p) ? { value: __await(o[n](v)), done: false } : f ? f(v) : v; } : f; }\n };'},hN={name:"typescript:asyncValues",importName:"__asyncValues",scoped:!1,text:'\n var __asyncValues = (this && this.__asyncValues) || function (o) {\n if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");\n var m = o[Symbol.asyncIterator], i;\n return m ? m.call(o) : (o = typeof __values === "function" ? __values(o) : o[Symbol.iterator](), i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i);\n function verb(n) { i[n] = o[n] && function (v) { return new Promise(function (resolve, reject) { v = o[n](v), settle(resolve, reject, v.done, v.value); }); }; }\n function settle(resolve, reject, d, v) { Promise.resolve(v).then(function(v) { resolve({ value: v, done: d }); }, reject); }\n };'},yN={name:"typescript:rest",importName:"__rest",scoped:!1,text:'\n var __rest = (this && this.__rest) || function (s, e) {\n var t = {};\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)\n t[p] = s[p];\n if (s != null && typeof Object.getOwnPropertySymbols === "function")\n for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))\n t[p[i]] = s[p[i]];\n }\n return t;\n };'},vN={name:"typescript:awaiter",importName:"__awaiter",scoped:!1,priority:5,text:'\n var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {\n function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\n return new (P || (P = Promise))(function (resolve, reject) {\n function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\n function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }\n function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\n step((generator = generator.apply(thisArg, _arguments || [])).next());\n });\n };'},bN={name:"typescript:extends",importName:"__extends",scoped:!1,priority:0,text:'\n var __extends = (this && this.__extends) || (function () {\n var extendStatics = function (d, b) {\n extendStatics = Object.setPrototypeOf ||\n ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\n function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };\n return extendStatics(d, b);\n };\n\n return function (d, b) {\n if (typeof b !== "function" && b !== null)\n throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");\n extendStatics(d, b);\n function __() { this.constructor = d; }\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n })();'},xN={name:"typescript:makeTemplateObject",importName:"__makeTemplateObject",scoped:!1,priority:0,text:'\n var __makeTemplateObject = (this && this.__makeTemplateObject) || function (cooked, raw) {\n if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; }\n return cooked;\n };'},kN={name:"typescript:read",importName:"__read",scoped:!1,text:'\n var __read = (this && this.__read) || function (o, n) {\n var m = typeof Symbol === "function" && o[Symbol.iterator];\n if (!m) return o;\n var i = m.call(o), r, ar = [], e;\n try {\n while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);\n }\n catch (error) { e = { error: error }; }\n finally {\n try {\n if (r && !r.done && (m = i["return"])) m.call(i);\n }\n finally { if (e) throw e.error; }\n }\n return ar;\n };'},SN={name:"typescript:spreadArray",importName:"__spreadArray",scoped:!1,text:"\n var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {\n if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {\n if (ar || !(i in from)) {\n if (!ar) ar = Array.prototype.slice.call(from, 0, i);\n ar[i] = from[i];\n }\n }\n return to.concat(ar || Array.prototype.slice.call(from));\n };"},TN={name:"typescript:propKey",importName:"__propKey",scoped:!1,text:'\n var __propKey = (this && this.__propKey) || function (x) {\n return typeof x === "symbol" ? x : "".concat(x);\n };'},CN={name:"typescript:setFunctionName",importName:"__setFunctionName",scoped:!1,text:'\n var __setFunctionName = (this && this.__setFunctionName) || function (f, name, prefix) {\n if (typeof name === "symbol") name = name.description ? "[".concat(name.description, "]") : "";\n return Object.defineProperty(f, "name", { configurable: true, value: prefix ? "".concat(prefix, " ", name) : name });\n };'},wN={name:"typescript:values",importName:"__values",scoped:!1,text:'\n var __values = (this && this.__values) || function(o) {\n var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;\n if (m) return m.call(o);\n if (o && typeof o.length === "number") return {\n next: function () {\n if (o && i >= o.length) o = void 0;\n return { value: o && o[i++], done: !o };\n }\n };\n throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");\n };'},NN={name:"typescript:generator",importName:"__generator",scoped:!1,priority:6,text:'\n var __generator = (this && this.__generator) || function (thisArg, body) {\n var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g = Object.create((typeof Iterator === "function" ? Iterator : Object).prototype);\n return g.next = verb(0), g["throw"] = verb(1), g["return"] = verb(2), typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;\n function verb(n) { return function (v) { return step([n, v]); }; }\n function step(op) {\n if (f) throw new TypeError("Generator is already executing.");\n while (g && (g = 0, op[0] && (_ = 0)), _) try {\n if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;\n if (y = 0, t) op = [op[0] & 2, t.value];\n switch (op[0]) {\n case 0: case 1: t = op; break;\n case 4: _.label++; return { value: op[1], done: false };\n case 5: _.label++; y = op[1]; op = [0]; continue;\n case 7: op = _.ops.pop(); _.trys.pop(); continue;\n default:\n if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }\n if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }\n if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }\n if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }\n if (t[2]) _.ops.pop();\n _.trys.pop(); continue;\n }\n op = body.call(thisArg, _);\n } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }\n if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };\n }\n };'},DN={name:"typescript:commonjscreatebinding",importName:"__createBinding",scoped:!1,priority:1,text:'\n var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {\n if (k2 === undefined) k2 = k;\n var desc = Object.getOwnPropertyDescriptor(m, k);\n if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {\n desc = { enumerable: true, get: function() { return m[k]; } };\n }\n Object.defineProperty(o, k2, desc);\n }) : (function(o, m, k, k2) {\n if (k2 === undefined) k2 = k;\n o[k2] = m[k];\n }));'},FN={name:"typescript:commonjsimportstar",importName:"__importStar",scoped:!1,dependencies:[DN,{name:"typescript:commonjscreatevalue",importName:"__setModuleDefault",scoped:!1,priority:1,text:'\n var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {\n Object.defineProperty(o, "default", { enumerable: true, value: v });\n }) : function(o, v) {\n o["default"] = v;\n });'}],priority:2,text:'\n var __importStar = (this && this.__importStar) || (function () {\n var ownKeys = function(o) {\n ownKeys = Object.getOwnPropertyNames || function (o) {\n var ar = [];\n for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;\n return ar;\n };\n return ownKeys(o);\n };\n return function (mod) {\n if (mod && mod.__esModule) return mod;\n var result = {};\n if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);\n __setModuleDefault(result, mod);\n return result;\n };\n })();'},EN={name:"typescript:commonjsimportdefault",importName:"__importDefault",scoped:!1,text:'\n var __importDefault = (this && this.__importDefault) || function (mod) {\n return (mod && mod.__esModule) ? mod : { "default": mod };\n };'},PN={name:"typescript:export-star",importName:"__exportStar",scoped:!1,dependencies:[DN],priority:2,text:'\n var __exportStar = (this && this.__exportStar) || function(m, exports) {\n for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);\n };'},AN={name:"typescript:classPrivateFieldGet",importName:"__classPrivateFieldGet",scoped:!1,text:'\n var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (receiver, state, kind, f) {\n if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");\n if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");\n return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);\n };'},IN={name:"typescript:classPrivateFieldSet",importName:"__classPrivateFieldSet",scoped:!1,text:'\n var __classPrivateFieldSet = (this && this.__classPrivateFieldSet) || function (receiver, state, value, kind, f) {\n if (kind === "m") throw new TypeError("Private method is not writable");\n if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a setter");\n if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot write private member to an object whose class did not declare it");\n return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;\n };'},ON={name:"typescript:classPrivateFieldIn",importName:"__classPrivateFieldIn",scoped:!1,text:'\n var __classPrivateFieldIn = (this && this.__classPrivateFieldIn) || function(state, receiver) {\n if (receiver === null || (typeof receiver !== "object" && typeof receiver !== "function")) throw new TypeError("Cannot use \'in\' operator on non-object");\n return typeof state === "function" ? receiver === state : state.has(receiver);\n };'},LN={name:"typescript:addDisposableResource",importName:"__addDisposableResource",scoped:!1,text:'\n var __addDisposableResource = (this && this.__addDisposableResource) || function (env, value, async) {\n if (value !== null && value !== void 0) {\n if (typeof value !== "object" && typeof value !== "function") throw new TypeError("Object expected.");\n var dispose, inner;\n if (async) {\n if (!Symbol.asyncDispose) throw new TypeError("Symbol.asyncDispose is not defined.");\n dispose = value[Symbol.asyncDispose];\n }\n if (dispose === void 0) {\n if (!Symbol.dispose) throw new TypeError("Symbol.dispose is not defined.");\n dispose = value[Symbol.dispose];\n if (async) inner = dispose;\n }\n if (typeof dispose !== "function") throw new TypeError("Object not disposable.");\n if (inner) dispose = function() { try { inner.call(this); } catch (e) { return Promise.reject(e); } };\n env.stack.push({ value: value, dispose: dispose, async: async });\n }\n else if (async) {\n env.stack.push({ async: true });\n }\n return value;\n };'},jN={name:"typescript:disposeResources",importName:"__disposeResources",scoped:!1,text:'\n var __disposeResources = (this && this.__disposeResources) || (function (SuppressedError) {\n return function (env) {\n function fail(e) {\n env.error = env.hasError ? new SuppressedError(e, env.error, "An error was suppressed during disposal.") : e;\n env.hasError = true;\n }\n var r, s = 0;\n function next() {\n while (r = env.stack.pop()) {\n try {\n if (!r.async && s === 1) return s = 0, env.stack.push(r), Promise.resolve().then(next);\n if (r.dispose) {\n var result = r.dispose.call(r.value);\n if (r.async) return s |= 2, Promise.resolve(result).then(next, function(e) { fail(e); return next(); });\n }\n else s |= 1;\n }\n catch (e) {\n fail(e);\n }\n }\n if (s === 1) return env.hasError ? Promise.reject(env.error) : Promise.resolve();\n if (env.hasError) throw env.error;\n }\n return next();\n };\n })(typeof SuppressedError === "function" ? SuppressedError : function (error, suppressed, message) {\n var e = new Error(message);\n return e.name = "SuppressedError", e.error = error, e.suppressed = suppressed, e;\n });'},MN={name:"typescript:rewriteRelativeImportExtensions",importName:"__rewriteRelativeImportExtension",scoped:!1,text:'\n var __rewriteRelativeImportExtension = (this && this.__rewriteRelativeImportExtension) || function (path, preserveJsx) {\n if (typeof path === "string" && /^\\.\\.?\\//.test(path)) {\n return path.replace(/\\.(tsx)$|((?:\\.d)?)((?:\\.[^./]+?)?)\\.([cm]?)ts$/i, function (m, tsx, d, ext, cm) {\n return tsx ? preserveJsx ? ".jsx" : ".js" : d && (!ext || !cm) ? m : (d + ext + "." + cm.toLowerCase() + "js");\n });\n }\n return path;\n };'},RN={name:"typescript:async-super",scoped:!0,text:sN` - const ${"_superIndex"} = name => super[name];`},BN={name:"typescript:advanced-async-super",scoped:!0,text:sN` +var guts;(()=>{var e={421:function(e,t,n){"use strict";var r,i=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(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){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),a=this&&this.__importStar||(r=function(e){return r=Object.getOwnPropertyNames||function(e){var t=[];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[t.length]=n);return t},r(e)},function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n=r(e),a=0;a{var r="/index.js",i={};(e=>{"use strict";var t=Object.defineProperty,i=(Object.getOwnPropertyDescriptor,Object.getOwnPropertyNames,Object.prototype.hasOwnProperty,(e,n)=>{for(var r in n)t(e,r,{get:n[r],enumerable:!0})}),o={};i(o,{ANONYMOUS:()=>aZ,AccessFlags:()=>Xr,AssertionLevel:()=>ft,AssignmentDeclarationKind:()=>ai,AssignmentKind:()=>Hg,Associativity:()=>ey,BreakpointResolver:()=>$8,BuilderFileEmit:()=>jV,BuilderProgramKind:()=>_W,BuilderState:()=>OV,CallHierarchy:()=>K8,CharacterCodes:()=>ki,CheckFlags:()=>Ur,CheckMode:()=>EB,ClassificationType:()=>CG,ClassificationTypeNames:()=>TG,CommentDirectiveType:()=>Tr,Comparison:()=>c,CompletionInfoFlags:()=>hG,CompletionTriggerKind:()=>lG,Completions:()=>oae,ContainerFlags:()=>FM,ContextFlags:()=>Or,Debug:()=>un,DiagnosticCategory:()=>si,Diagnostics:()=>la,DocumentHighlights:()=>d0,ElementFlags:()=>Gr,EmitFlags:()=>wi,EmitHint:()=>Ei,EmitOnly:()=>Dr,EndOfLineState:()=>bG,ExitStatus:()=>Er,ExportKind:()=>YZ,Extension:()=>Si,ExternalEmitHelpers:()=>Fi,FileIncludeKind:()=>wr,FilePreprocessingDiagnosticsKind:()=>Nr,FileSystemEntryKind:()=>no,FileWatcherEventKind:()=>Bi,FindAllReferences:()=>ice,FlattenLevel:()=>oz,FlowFlags:()=>Sr,ForegroundColorEscapeSequences:()=>PU,FunctionFlags:()=>Ah,GeneratedIdentifierFlags:()=>br,GetLiteralTextFlags:()=>ep,GoToDefinition:()=>Wce,HighlightSpanKind:()=>uG,IdentifierNameMap:()=>OJ,ImportKind:()=>QZ,ImportsNotUsedAsValues:()=>gi,IndentStyle:()=>dG,IndexFlags:()=>Qr,IndexKind:()=>ti,InferenceFlags:()=>ii,InferencePriority:()=>ri,InlayHintKind:()=>_G,InlayHints:()=>lle,InternalEmitFlags:()=>Ni,InternalNodeBuilderFlags:()=>jr,InternalSymbolName:()=>Vr,IntersectionFlags:()=>Ir,InvalidatedProjectKind:()=>nH,JSDocParsingMode:()=>ji,JsDoc:()=>fle,JsTyping:()=>DK,JsxEmit:()=>mi,JsxFlags:()=>hr,JsxReferenceKind:()=>Yr,LanguageFeatureMinimumTarget:()=>Di,LanguageServiceMode:()=>oG,LanguageVariant:()=>bi,LexicalEnvironmentFlags:()=>Ai,ListFormat:()=>Ii,LogLevel:()=>dn,MapCode:()=>Ole,MemberOverrideStatus:()=>Pr,ModifierFlags:()=>gr,ModuleDetectionKind:()=>_i,ModuleInstanceState:()=>CM,ModuleKind:()=>fi,ModuleResolutionKind:()=>li,ModuleSpecifierEnding:()=>LS,NavigateTo:()=>R1,NavigationBar:()=>K1,NewLineKind:()=>hi,NodeBuilderFlags:()=>Lr,NodeCheckFlags:()=>Wr,NodeFactoryFlags:()=>jC,NodeFlags:()=>mr,NodeResolutionFeatures:()=>SR,ObjectFlags:()=>Hr,OperationCanceledException:()=>Cr,OperatorPrecedence:()=>oy,OrganizeImports:()=>Jle,OrganizeImportsMode:()=>cG,OuterExpressionKinds:()=>Pi,OutliningElementsCollector:()=>h_e,OutliningSpanKind:()=>yG,OutputFileType:()=>vG,PackageJsonAutoImportPreference:()=>iG,PackageJsonDependencyGroup:()=>rG,PatternMatchKind:()=>B0,PollingInterval:()=>Ji,PollingWatchKind:()=>pi,PragmaKindFlags:()=>Oi,PredicateSemantics:()=>vr,PreparePasteEdits:()=>Ype,PrivateIdentifierKind:()=>Bw,ProcessLevel:()=>wz,ProgramUpdateLevel:()=>cU,QuotePreference:()=>RQ,RegularExpressionFlags:()=>xr,RelationComparisonResult:()=>yr,Rename:()=>w_e,ScriptElementKind:()=>kG,ScriptElementKindModifier:()=>SG,ScriptKind:()=>yi,ScriptSnapshot:()=>XK,ScriptTarget:()=>vi,SemanticClassificationFormat:()=>sG,SemanticMeaning:()=>NG,SemicolonPreference:()=>pG,SignatureCheckMode:()=>PB,SignatureFlags:()=>ei,SignatureHelp:()=>I_e,SignatureInfo:()=>LV,SignatureKind:()=>Zr,SmartSelectionRange:()=>iue,SnippetKind:()=>Ci,StatisticType:()=>zH,StructureIsReused:()=>Fr,SymbolAccessibility:()=>Br,SymbolDisplay:()=>mue,SymbolDisplayPartKind:()=>gG,SymbolFlags:()=>qr,SymbolFormatFlags:()=>Mr,SyntaxKind:()=>fr,Ternary:()=>oi,ThrottledCancellationToken:()=>R8,TokenClass:()=>xG,TokenFlags:()=>kr,TransformFlags:()=>Ti,TypeFacts:()=>DB,TypeFlags:()=>$r,TypeFormatFlags:()=>Rr,TypeMapKind:()=>ni,TypePredicateKind:()=>Jr,TypeReferenceSerializationKind:()=>zr,UnionReduction:()=>Ar,UpToDateStatusType:()=>F$,VarianceFlags:()=>Kr,Version:()=>bn,VersionRange:()=>kn,WatchDirectoryFlags:()=>xi,WatchDirectoryKind:()=>di,WatchFileKind:()=>ui,WatchLogLevel:()=>gU,WatchType:()=>p$,accessPrivateIdentifier:()=>tz,addEmitFlags:()=>rw,addEmitHelper:()=>Sw,addEmitHelpers:()=>Tw,addInternalEmitFlags:()=>ow,addNodeFactoryPatcher:()=>MC,addObjectAllocatorPatcher:()=>Mx,addRange:()=>se,addRelatedInfo:()=>iT,addSyntheticLeadingComment:()=>gw,addSyntheticTrailingComment:()=>vw,addToSeen:()=>vx,advancedAsyncSuperHelper:()=>bN,affectsDeclarationPathOptionDeclarations:()=>yO,affectsEmitOptionDeclarations:()=>hO,allKeysStartWithDot:()=>ZR,altDirectorySeparator:()=>_o,and:()=>Zt,append:()=>ie,appendIfUnique:()=>le,arrayFrom:()=>Oe,arrayIsEqualTo:()=>te,arrayIsHomogeneous:()=>bT,arrayOf:()=>Ie,arrayReverseIterator:()=>ue,arrayToMap:()=>Re,arrayToMultiMap:()=>Be,arrayToNumericMap:()=>Me,assertType:()=>nn,assign:()=>Le,asyncSuperHelper:()=>vN,attachFileToDiagnostics:()=>Hx,base64decode:()=>Sb,base64encode:()=>kb,binarySearch:()=>Te,binarySearchKey:()=>Ce,bindSourceFile:()=>AM,breakIntoCharacterSpans:()=>t1,breakIntoWordSpans:()=>n1,buildLinkParts:()=>bY,buildOpts:()=>DO,buildOverload:()=>lfe,bundlerModuleNameResolver:()=>TR,canBeConvertedToAsync:()=>w1,canHaveDecorators:()=>iI,canHaveExportModifier:()=>UT,canHaveFlowNode:()=>Ig,canHaveIllegalDecorators:()=>NA,canHaveIllegalModifiers:()=>DA,canHaveIllegalType:()=>CA,canHaveIllegalTypeParameters:()=>wA,canHaveJSDoc:()=>Og,canHaveLocals:()=>au,canHaveModifiers:()=>rI,canHaveModuleSpecifier:()=>gg,canHaveSymbol:()=>ou,canIncludeBindAndCheckDiagnostics:()=>uT,canJsonReportNoInputFiles:()=>ZL,canProduceDiagnostics:()=>aq,canUsePropertyAccess:()=>WT,canWatchAffectingLocation:()=>IW,canWatchAtTypes:()=>EW,canWatchDirectoryOrFile:()=>DW,canWatchDirectoryOrFilePath:()=>FW,cartesianProduct:()=>an,cast:()=>nt,chainBundle:()=>NJ,chainDiagnosticMessages:()=>Yx,changeAnyExtension:()=>$o,changeCompilerHostLikeToUseCache:()=>NU,changeExtension:()=>VS,changeFullExtension:()=>Ho,changesAffectModuleResolution:()=>Qu,changesAffectingProgramStructure:()=>Yu,characterCodeToRegularExpressionFlag:()=>Aa,childIsDecorated:()=>fm,classElementOrClassElementParameterIsDecorated:()=>gm,classHasClassThisAssignment:()=>gz,classHasDeclaredOrExplicitlyAssignedName:()=>kz,classHasExplicitlyAssignedName:()=>xz,classOrConstructorParameterIsDecorated:()=>mm,classicNameResolver:()=>yM,classifier:()=>d7,cleanExtendedConfigCache:()=>uU,clear:()=>F,clearMap:()=>_x,clearSharedExtendedConfigFileWatcher:()=>_U,climbPastPropertyAccess:()=>zG,clone:()=>qe,cloneCompilerOptions:()=>sQ,closeFileWatcher:()=>tx,closeFileWatcherOf:()=>vU,codefix:()=>f7,collapseTextChangeRangesAcrossMultipleVersions:()=>Xs,collectExternalModuleInfo:()=>PJ,combine:()=>oe,combinePaths:()=>jo,commandLineOptionOfCustomType:()=>CO,commentPragmas:()=>Li,commonOptionsWithBuild:()=>uO,compact:()=>ne,compareBooleans:()=>Ot,compareDataObjects:()=>lx,compareDiagnostics:()=>tk,compareEmitHelpers:()=>zw,compareNumberOfDirectorySeparators:()=>BS,comparePaths:()=>Yo,comparePathsCaseInsensitive:()=>Qo,comparePathsCaseSensitive:()=>Xo,comparePatternKeys:()=>tM,compareProperties:()=>It,compareStringsCaseInsensitive:()=>St,compareStringsCaseInsensitiveEslintCompatible:()=>Tt,compareStringsCaseSensitive:()=>Ct,compareStringsCaseSensitiveUI:()=>At,compareTextSpans:()=>bt,compareValues:()=>vt,compilerOptionsAffectDeclarationPath:()=>Uk,compilerOptionsAffectEmit:()=>qk,compilerOptionsAffectSemanticDiagnostics:()=>zk,compilerOptionsDidYouMeanDiagnostics:()=>UO,compilerOptionsIndicateEsModules:()=>PQ,computeCommonSourceDirectoryOfFilenames:()=>kU,computeLineAndCharacterOfPosition:()=>Ra,computeLineOfPosition:()=>Ma,computeLineStarts:()=>Ia,computePositionOfLineAndCharacter:()=>La,computeSignatureWithDiagnostics:()=>pW,computeSuggestionDiagnostics:()=>g1,computedOptions:()=>mk,concatenate:()=>K,concatenateDiagnosticMessageChains:()=>Zx,consumesNodeCoreModules:()=>CZ,contains:()=>T,containsIgnoredPath:()=>PT,containsObjectRestOrSpread:()=>tI,containsParseError:()=>gd,containsPath:()=>Zo,convertCompilerOptionsForTelemetry:()=>Pj,convertCompilerOptionsFromJson:()=>ij,convertJsonOption:()=>dj,convertToBase64:()=>xb,convertToJson:()=>bL,convertToObject:()=>vL,convertToOptionsWithAbsolutePaths:()=>OL,convertToRelativePath:()=>ra,convertToTSConfig:()=>SL,convertTypeAcquisitionFromJson:()=>oj,copyComments:()=>UY,copyEntries:()=>rd,copyLeadingComments:()=>KY,copyProperties:()=>Ve,copyTrailingAsLeadingComments:()=>XY,copyTrailingComments:()=>GY,couldStartTrivia:()=>Ga,countWhere:()=>w,createAbstractBuilder:()=>CW,createAccessorPropertyBackingField:()=>GA,createAccessorPropertyGetRedirector:()=>XA,createAccessorPropertySetRedirector:()=>QA,createBaseNodeFactory:()=>FC,createBinaryExpressionTrampoline:()=>UA,createBuilderProgram:()=>fW,createBuilderProgramUsingIncrementalBuildInfo:()=>vW,createBuilderStatusReporter:()=>j$,createCacheableExportInfoMap:()=>ZZ,createCachedDirectoryStructureHost:()=>sU,createClassifier:()=>u0,createCommentDirectivesMap:()=>Md,createCompilerDiagnostic:()=>Xx,createCompilerDiagnosticForInvalidCustomType:()=>OO,createCompilerDiagnosticFromMessageChain:()=>Qx,createCompilerHost:()=>SU,createCompilerHostFromProgramHost:()=>m$,createCompilerHostWorker:()=>wU,createDetachedDiagnostic:()=>Vx,createDiagnosticCollection:()=>ly,createDiagnosticForFileFromMessageChain:()=>Up,createDiagnosticForNode:()=>jp,createDiagnosticForNodeArray:()=>Rp,createDiagnosticForNodeArrayFromMessageChain:()=>Jp,createDiagnosticForNodeFromMessageChain:()=>Bp,createDiagnosticForNodeInSourceFile:()=>Mp,createDiagnosticForRange:()=>Wp,createDiagnosticMessageChainFromDiagnostic:()=>Vp,createDiagnosticReporter:()=>VW,createDocumentPositionMapper:()=>kJ,createDocumentRegistry:()=>N0,createDocumentRegistryInternal:()=>D0,createEmitAndSemanticDiagnosticsBuilderProgram:()=>TW,createEmitHelperFactory:()=>Jw,createEmptyExports:()=>BP,createEvaluator:()=>fC,createExpressionForJsxElement:()=>VP,createExpressionForJsxFragment:()=>WP,createExpressionForObjectLiteralElementLike:()=>GP,createExpressionForPropertyName:()=>KP,createExpressionFromEntityName:()=>HP,createExternalHelpersImportDeclarationIfNeeded:()=>pA,createFileDiagnostic:()=>Kx,createFileDiagnosticFromMessageChain:()=>qp,createFlowNode:()=>EM,createForOfBindingStatement:()=>$P,createFutureSourceFile:()=>XZ,createGetCanonicalFileName:()=>Wt,createGetIsolatedDeclarationErrors:()=>lq,createGetSourceFile:()=>TU,createGetSymbolAccessibilityDiagnosticForNode:()=>cq,createGetSymbolAccessibilityDiagnosticForNodeName:()=>sq,createGetSymbolWalker:()=>MM,createIncrementalCompilerHost:()=>C$,createIncrementalProgram:()=>w$,createJsxFactoryExpression:()=>UP,createLanguageService:()=>J8,createLanguageServiceSourceFile:()=>I8,createMemberAccessForPropertyName:()=>JP,createModeAwareCache:()=>uR,createModeAwareCacheKey:()=>_R,createModeMismatchDetails:()=>ud,createModuleNotFoundChain:()=>_d,createModuleResolutionCache:()=>mR,createModuleResolutionLoader:()=>eV,createModuleResolutionLoaderUsingGlobalCache:()=>JW,createModuleSpecifierResolutionHost:()=>AQ,createMultiMap:()=>$e,createNameResolver:()=>hC,createNodeConverters:()=>AC,createNodeFactory:()=>BC,createOptionNameMap:()=>EO,createOverload:()=>cfe,createPackageJsonImportFilter:()=>TZ,createPackageJsonInfo:()=>SZ,createParenthesizerRules:()=>EC,createPatternMatcher:()=>z0,createPrinter:()=>rU,createPrinterWithDefaults:()=>Zq,createPrinterWithRemoveComments:()=>eU,createPrinterWithRemoveCommentsNeverAsciiEscape:()=>tU,createPrinterWithRemoveCommentsOmitTrailingSemicolon:()=>nU,createProgram:()=>bV,createProgramHost:()=>y$,createPropertyNameNodeForIdentifierOrLiteral:()=>BT,createQueue:()=>Ge,createRange:()=>Pb,createRedirectedBuilderProgram:()=>kW,createResolutionCache:()=>zW,createRuntimeTypeSerializer:()=>Oz,createScanner:()=>ms,createSemanticDiagnosticsBuilderProgram:()=>SW,createSet:()=>Xe,createSolutionBuilder:()=>J$,createSolutionBuilderHost:()=>M$,createSolutionBuilderWithWatch:()=>z$,createSolutionBuilderWithWatchHost:()=>B$,createSortedArray:()=>Y,createSourceFile:()=>LI,createSourceMapGenerator:()=>oJ,createSourceMapSource:()=>QC,createSuperAccessVariableStatement:()=>Mz,createSymbolTable:()=>Hu,createSymlinkCache:()=>Gk,createSyntacticTypeNodeBuilder:()=>NK,createSystemWatchFunctions:()=>oo,createTextChange:()=>vQ,createTextChangeFromStartLength:()=>yQ,createTextChangeRange:()=>Ks,createTextRangeFromNode:()=>mQ,createTextRangeFromSpan:()=>hQ,createTextSpan:()=>Vs,createTextSpanFromBounds:()=>Ws,createTextSpanFromNode:()=>pQ,createTextSpanFromRange:()=>gQ,createTextSpanFromStringLiteralLikeContent:()=>fQ,createTextWriter:()=>Iy,createTokenRange:()=>jb,createTypeChecker:()=>BB,createTypeReferenceDirectiveResolutionCache:()=>gR,createTypeReferenceResolutionLoader:()=>rV,createWatchCompilerHost:()=>N$,createWatchCompilerHostOfConfigFile:()=>x$,createWatchCompilerHostOfFilesAndCompilerOptions:()=>k$,createWatchFactory:()=>f$,createWatchHost:()=>d$,createWatchProgram:()=>D$,createWatchStatusReporter:()=>KW,createWriteFileMeasuringIO:()=>CU,declarationNameToString:()=>Ep,decodeMappings:()=>pJ,decodedTextSpanIntersectsWith:()=>Bs,deduplicate:()=>Q,defaultInitCompilerOptions:()=>IO,defaultMaximumTruncationLength:()=>Uu,diagnosticCategoryName:()=>ci,diagnosticToString:()=>UZ,diagnosticsEqualityComparer:()=>ok,directoryProbablyExists:()=>Nb,directorySeparator:()=>lo,displayPart:()=>sY,displayPartsToString:()=>D8,disposeEmitNodes:()=>ew,documentSpansEqual:()=>YQ,dumpTracingLegend:()=>pr,elementAt:()=>pe,elideNodes:()=>WA,emitDetachedComments:()=>vv,emitFiles:()=>Gq,emitFilesAndReportErrors:()=>c$,emitFilesAndReportErrorsAndGetExitStatus:()=>l$,emitModuleKindIsNonNodeESM:()=>Ik,emitNewLineBeforeLeadingCommentOfPosition:()=>yv,emitResolverSkipsTypeChecking:()=>Kq,emitSkippedWithNoDiagnostics:()=>CV,emptyArray:()=>l,emptyFileSystemEntries:()=>tT,emptyMap:()=>_,emptyOptions:()=>aG,endsWith:()=>Rt,ensurePathIsNonModuleName:()=>Wo,ensureScriptKind:()=>yS,ensureTrailingDirectorySeparator:()=>Vo,entityNameToString:()=>Lp,enumerateInsertsAndDeletes:()=>on,equalOwnProperties:()=>je,equateStringsCaseInsensitive:()=>gt,equateStringsCaseSensitive:()=>ht,equateValues:()=>mt,escapeJsxAttributeString:()=>Ny,escapeLeadingUnderscores:()=>pc,escapeNonAsciiString:()=>ky,escapeSnippetText:()=>RT,escapeString:()=>by,escapeTemplateSubstitution:()=>uy,evaluatorResult:()=>pC,every:()=>v,exclusivelyPrefixedNodeCoreModules:()=>TC,executeCommandLine:()=>rK,expandPreOrPostfixIncrementOrDecrementExpression:()=>XP,explainFiles:()=>n$,explainIfFileIsRedirectAndImpliedFormat:()=>r$,exportAssignmentIsAlias:()=>fh,expressionResultIsUnused:()=>ET,extend:()=>Ue,extensionFromPath:()=>QS,extensionIsTS:()=>GS,extensionsNotSupportingExtensionlessResolution:()=>FS,externalHelpersModuleNameText:()=>qu,factory:()=>XC,fileExtensionIs:()=>ko,fileExtensionIsOneOf:()=>So,fileIncludeReasonToDiagnostics:()=>a$,fileShouldUseJavaScriptRequire:()=>KZ,filter:()=>N,filterMutate:()=>D,filterSemanticDiagnostics:()=>NV,find:()=>b,findAncestor:()=>_c,findBestPatternMatch:()=>Kt,findChildOfKind:()=>yX,findComputedPropertyNameCacheAssignment:()=>YA,findConfigFile:()=>bU,findConstructorDeclaration:()=>gC,findContainingList:()=>vX,findDiagnosticForNode:()=>DZ,findFirstNonJsxWhitespaceToken:()=>IX,findIndex:()=>k,findLast:()=>x,findLastIndex:()=>S,findListItemInfo:()=>gX,findModifier:()=>KQ,findNextToken:()=>LX,findPackageJson:()=>kZ,findPackageJsons:()=>xZ,findPrecedingMatchingToken:()=>$X,findPrecedingToken:()=>jX,findSuperStatementIndexPath:()=>qJ,findTokenOnLeftOfPosition:()=>OX,findUseStrictPrologue:()=>tA,first:()=>ge,firstDefined:()=>f,firstDefinedIterator:()=>m,firstIterator:()=>he,firstOrOnly:()=>IZ,firstOrUndefined:()=>fe,firstOrUndefinedIterator:()=>me,fixupCompilerOptions:()=>j1,flatMap:()=>O,flatMapIterator:()=>j,flatMapToMutable:()=>L,flatten:()=>I,flattenCommaList:()=>eI,flattenDestructuringAssignment:()=>az,flattenDestructuringBinding:()=>lz,flattenDiagnosticMessageText:()=>UU,forEach:()=>d,forEachAncestor:()=>ed,forEachAncestorDirectory:()=>aa,forEachAncestorDirectoryStoppingAtGlobalCache:()=>sM,forEachChild:()=>PI,forEachChildRecursively:()=>AI,forEachDynamicImportOrRequireCall:()=>wC,forEachEmittedFile:()=>Fq,forEachEnclosingBlockScopeContainer:()=>Fp,forEachEntry:()=>td,forEachExternalModuleToImportFrom:()=>n0,forEachImportClauseDeclaration:()=>Tg,forEachKey:()=>nd,forEachLeadingCommentRange:()=>is,forEachNameInAccessChainWalkingLeft:()=>wx,forEachNameOfDefaultExport:()=>_0,forEachPropertyAssignment:()=>qf,forEachResolvedProjectReference:()=>oV,forEachReturnStatement:()=>wf,forEachRight:()=>p,forEachTrailingCommentRange:()=>os,forEachTsConfigPropArray:()=>$f,forEachUnique:()=>eY,forEachYieldExpression:()=>Nf,formatColorAndReset:()=>BU,formatDiagnostic:()=>EU,formatDiagnostics:()=>FU,formatDiagnosticsWithColorAndContext:()=>qU,formatGeneratedName:()=>KA,formatGeneratedNamePart:()=>HA,formatLocation:()=>zU,formatMessage:()=>Gx,formatStringFromArgs:()=>Jx,formatting:()=>Zue,generateDjb2Hash:()=>Ri,generateTSConfig:()=>IL,getAdjustedReferenceLocation:()=>NX,getAdjustedRenameLocation:()=>DX,getAliasDeclarationFromName:()=>dh,getAllAccessorDeclarations:()=>dv,getAllDecoratorsOfClass:()=>GJ,getAllDecoratorsOfClassElement:()=>XJ,getAllJSDocTags:()=>al,getAllJSDocTagsOfKind:()=>sl,getAllKeys:()=>Pe,getAllProjectOutputs:()=>Wq,getAllSuperTypeNodes:()=>bh,getAllowImportingTsExtensions:()=>gk,getAllowJSCompilerOption:()=>Pk,getAllowSyntheticDefaultImports:()=>Sk,getAncestor:()=>Sh,getAnyExtensionFromPath:()=>Po,getAreDeclarationMapsEnabled:()=>Ek,getAssignedExpandoInitializer:()=>Wm,getAssignedName:()=>Cc,getAssignmentDeclarationKind:()=>eg,getAssignmentDeclarationPropertyAccessKind:()=>_g,getAssignmentTargetKind:()=>Gg,getAutomaticTypeDirectiveNames:()=>rR,getBaseFileName:()=>Fo,getBinaryOperatorPrecedence:()=>sy,getBuildInfo:()=>Qq,getBuildInfoFileVersionMap:()=>bW,getBuildInfoText:()=>Xq,getBuildOrderFromAnyBuildOrder:()=>L$,getBuilderCreationParameters:()=>uW,getBuilderFileEmit:()=>MV,getCanonicalDiagnostic:()=>$p,getCheckFlags:()=>nx,getClassExtendsHeritageElement:()=>yh,getClassLikeDeclarationOfSymbol:()=>fx,getCombinedLocalAndExportSymbolFlags:()=>ox,getCombinedModifierFlags:()=>rc,getCombinedNodeFlags:()=>oc,getCombinedNodeFlagsAlwaysIncludeJSDoc:()=>ic,getCommentRange:()=>dw,getCommonSourceDirectory:()=>Uq,getCommonSourceDirectoryOfConfig:()=>Vq,getCompilerOptionValue:()=>Vk,getCompilerOptionsDiffValue:()=>PL,getConditions:()=>tR,getConfigFileParsingDiagnostics:()=>gV,getConstantValue:()=>xw,getContainerFlags:()=>jM,getContainerNode:()=>tX,getContainingClass:()=>Gf,getContainingClassExcludingClassDecorators:()=>Yf,getContainingClassStaticBlock:()=>Xf,getContainingFunction:()=>Hf,getContainingFunctionDeclaration:()=>Kf,getContainingFunctionOrClassStaticBlock:()=>Qf,getContainingNodeArray:()=>AT,getContainingObjectLiteralElement:()=>q8,getContextualTypeFromParent:()=>eZ,getContextualTypeFromParentOrAncestorTypeNode:()=>SX,getDeclarationDiagnostics:()=>_q,getDeclarationEmitExtensionForPath:()=>Vy,getDeclarationEmitOutputFilePath:()=>qy,getDeclarationEmitOutputFilePathWorker:()=>Uy,getDeclarationFileExtension:()=>HI,getDeclarationFromName:()=>lh,getDeclarationModifierFlagsFromSymbol:()=>rx,getDeclarationOfKind:()=>Wu,getDeclarationsOfKind:()=>$u,getDeclaredExpandoInitializer:()=>Vm,getDecorators:()=>wc,getDefaultCompilerOptions:()=>F8,getDefaultFormatCodeSettings:()=>fG,getDefaultLibFileName:()=>Ns,getDefaultLibFilePath:()=>V8,getDefaultLikeExportInfo:()=>c0,getDefaultLikeExportNameFromDeclaration:()=>LZ,getDefaultResolutionModeForFileWorker:()=>TV,getDiagnosticText:()=>XO,getDiagnosticsWithinSpan:()=>FZ,getDirectoryPath:()=>Do,getDirectoryToWatchFailedLookupLocation:()=>OW,getDirectoryToWatchFailedLookupLocationFromTypeRoot:()=>RW,getDocumentPositionMapper:()=>p1,getDocumentSpansEqualityComparer:()=>ZQ,getESModuleInterop:()=>kk,getEditsForFileRename:()=>P0,getEffectiveBaseTypeNode:()=>hh,getEffectiveConstraintOfTypeParameter:()=>_l,getEffectiveContainerForJSDocTemplateTag:()=>Bg,getEffectiveImplementsTypeNodes:()=>vh,getEffectiveInitializer:()=>Um,getEffectiveJSDocHost:()=>qg,getEffectiveModifierFlags:()=>Mv,getEffectiveModifierFlagsAlwaysIncludeJSDoc:()=>Bv,getEffectiveModifierFlagsNoCache:()=>Uv,getEffectiveReturnTypeNode:()=>mv,getEffectiveSetAccessorTypeAnnotationNode:()=>hv,getEffectiveTypeAnnotationNode:()=>pv,getEffectiveTypeParameterDeclarations:()=>ll,getEffectiveTypeRoots:()=>Gj,getElementOrPropertyAccessArgumentExpressionOrName:()=>cg,getElementOrPropertyAccessName:()=>lg,getElementsOfBindingOrAssignmentPattern:()=>SA,getEmitDeclarations:()=>Nk,getEmitFlags:()=>Qd,getEmitHelpers:()=>ww,getEmitModuleDetectionKind:()=>bk,getEmitModuleFormatOfFileWorker:()=>kV,getEmitModuleKind:()=>yk,getEmitModuleResolutionKind:()=>vk,getEmitScriptTarget:()=>hk,getEmitStandardClassFields:()=>Jk,getEnclosingBlockScopeContainer:()=>Dp,getEnclosingContainer:()=>Np,getEncodedSemanticClassifications:()=>b0,getEncodedSyntacticClassifications:()=>C0,getEndLinePosition:()=>Sd,getEntityNameFromTypeNode:()=>lm,getEntrypointsFromPackageJsonInfo:()=>UR,getErrorCountForSummary:()=>XW,getErrorSpanForNode:()=>Gp,getErrorSummaryText:()=>e$,getEscapedTextOfIdentifierOrLiteral:()=>qh,getEscapedTextOfJsxAttributeName:()=>ZT,getEscapedTextOfJsxNamespacedName:()=>nC,getExpandoInitializer:()=>$m,getExportAssignmentExpression:()=>mh,getExportInfoMap:()=>s0,getExportNeedsImportStarHelper:()=>DJ,getExpressionAssociativity:()=>ty,getExpressionPrecedence:()=>ry,getExternalHelpersModuleName:()=>uA,getExternalModuleImportEqualsDeclarationExpression:()=>Tm,getExternalModuleName:()=>xg,getExternalModuleNameFromDeclaration:()=>By,getExternalModuleNameFromPath:()=>Jy,getExternalModuleNameLiteral:()=>mA,getExternalModuleRequireArgument:()=>Cm,getFallbackOptions:()=>yU,getFileEmitOutput:()=>IV,getFileMatcherPatterns:()=>pS,getFileNamesFromConfigSpecs:()=>vj,getFileWatcherEventKind:()=>Xi,getFilesInErrorForSummary:()=>QW,getFirstConstructorWithBody:()=>rv,getFirstIdentifier:()=>ab,getFirstNonSpaceCharacterPosition:()=>IY,getFirstProjectOutput:()=>Hq,getFixableErrorSpanExpression:()=>PZ,getFormatCodeSettingsForWriting:()=>VZ,getFullWidth:()=>od,getFunctionFlags:()=>Ih,getHeritageClause:()=>kh,getHostSignatureFromJSDoc:()=>zg,getIdentifierAutoGenerate:()=>jw,getIdentifierGeneratedImportReference:()=>Mw,getIdentifierTypeArguments:()=>Ow,getImmediatelyInvokedFunctionExpression:()=>im,getImpliedNodeFormatForEmitWorker:()=>SV,getImpliedNodeFormatForFile:()=>hV,getImpliedNodeFormatForFileWorker:()=>yV,getImportNeedsImportDefaultHelper:()=>EJ,getImportNeedsImportStarHelper:()=>FJ,getIndentString:()=>Py,getInferredLibraryNameResolveFrom:()=>cV,getInitializedVariables:()=>Yb,getInitializerOfBinaryExpression:()=>ug,getInitializerOfBindingOrAssignmentElement:()=>hA,getInterfaceBaseTypeNodes:()=>xh,getInternalEmitFlags:()=>Yd,getInvokedExpression:()=>_m,getIsFileExcluded:()=>a0,getIsolatedModules:()=>xk,getJSDocAugmentsTag:()=>Lc,getJSDocClassTag:()=>Rc,getJSDocCommentRanges:()=>hf,getJSDocCommentsAndTags:()=>Lg,getJSDocDeprecatedTag:()=>Hc,getJSDocDeprecatedTagNoCache:()=>Kc,getJSDocEnumTag:()=>Gc,getJSDocHost:()=>Ug,getJSDocImplementsTags:()=>jc,getJSDocOverloadTags:()=>Jg,getJSDocOverrideTagNoCache:()=>$c,getJSDocParameterTags:()=>Fc,getJSDocParameterTagsNoCache:()=>Ec,getJSDocPrivateTag:()=>Jc,getJSDocPrivateTagNoCache:()=>zc,getJSDocProtectedTag:()=>qc,getJSDocProtectedTagNoCache:()=>Uc,getJSDocPublicTag:()=>Mc,getJSDocPublicTagNoCache:()=>Bc,getJSDocReadonlyTag:()=>Vc,getJSDocReadonlyTagNoCache:()=>Wc,getJSDocReturnTag:()=>Qc,getJSDocReturnType:()=>nl,getJSDocRoot:()=>Vg,getJSDocSatisfiesExpressionType:()=>QT,getJSDocSatisfiesTag:()=>Zc,getJSDocTags:()=>il,getJSDocTemplateTag:()=>Yc,getJSDocThisTag:()=>Xc,getJSDocType:()=>tl,getJSDocTypeAliasName:()=>TA,getJSDocTypeAssertionType:()=>aA,getJSDocTypeParameterDeclarations:()=>gv,getJSDocTypeParameterTags:()=>Ac,getJSDocTypeParameterTagsNoCache:()=>Ic,getJSDocTypeTag:()=>el,getJSXImplicitImportBase:()=>$k,getJSXRuntimeImport:()=>Hk,getJSXTransformEnabled:()=>Wk,getKeyForCompilerOptions:()=>sR,getLanguageVariant:()=>ck,getLastChild:()=>yx,getLeadingCommentRanges:()=>ls,getLeadingCommentRangesOfNode:()=>gf,getLeftmostAccessExpression:()=>Cx,getLeftmostExpression:()=>Nx,getLibraryNameFromLibFileName:()=>lV,getLineAndCharacterOfPosition:()=>Ja,getLineInfo:()=>lJ,getLineOfLocalPosition:()=>tv,getLineStartPositionForPosition:()=>oX,getLineStarts:()=>ja,getLinesBetweenPositionAndNextNonWhitespaceCharacter:()=>Kb,getLinesBetweenPositionAndPrecedingNonWhitespaceCharacter:()=>Hb,getLinesBetweenPositions:()=>Ba,getLinesBetweenRangeEndAndRangeStart:()=>qb,getLinesBetweenRangeEndPositions:()=>Ub,getLiteralText:()=>tp,getLocalNameForExternalImport:()=>fA,getLocalSymbolForExportDefault:()=>yb,getLocaleSpecificMessage:()=>Ux,getLocaleTimeString:()=>HW,getMappedContextSpan:()=>iY,getMappedDocumentSpan:()=>rY,getMappedLocation:()=>nY,getMatchedFileSpec:()=>i$,getMatchedIncludeSpec:()=>o$,getMeaningFromDeclaration:()=>DG,getMeaningFromLocation:()=>FG,getMembersOfDeclaration:()=>Ff,getModeForFileReference:()=>VU,getModeForResolutionAtIndex:()=>WU,getModeForUsageLocation:()=>HU,getModifiedTime:()=>qi,getModifiers:()=>Nc,getModuleInstanceState:()=>wM,getModuleNameStringLiteralAt:()=>AV,getModuleSpecifierEndingPreference:()=>jS,getModuleSpecifierResolverHost:()=>IQ,getNameForExportedSymbol:()=>OZ,getNameFromImportAttribute:()=>uC,getNameFromIndexInfo:()=>Pp,getNameFromPropertyName:()=>DQ,getNameOfAccessExpression:()=>Sx,getNameOfCompilerOptionValue:()=>DL,getNameOfDeclaration:()=>Tc,getNameOfExpando:()=>Km,getNameOfJSDocTypedef:()=>xc,getNameOfScriptTarget:()=>Bk,getNameOrArgument:()=>sg,getNameTable:()=>z8,getNamespaceDeclarationNode:()=>kg,getNewLineCharacter:()=>Eb,getNewLineKind:()=>qZ,getNewLineOrDefaultFromHost:()=>kY,getNewTargetContainer:()=>nm,getNextJSDocCommentLocation:()=>Rg,getNodeChildren:()=>LP,getNodeForGeneratedName:()=>$A,getNodeId:()=>jB,getNodeKind:()=>nX,getNodeModifiers:()=>ZX,getNodeModulePathParts:()=>zT,getNonAssignedNameOfDeclaration:()=>Sc,getNonAssignmentOperatorForCompoundAssignment:()=>BJ,getNonAugmentationDeclaration:()=>fp,getNonDecoratorTokenPosOfNode:()=>Jd,getNonIncrementalBuildInfoRoots:()=>xW,getNonModifierTokenPosOfNode:()=>zd,getNormalizedAbsolutePath:()=>Bo,getNormalizedAbsolutePathWithoutRoot:()=>zo,getNormalizedPathComponents:()=>Mo,getObjectFlags:()=>mx,getOperatorAssociativity:()=>ny,getOperatorPrecedence:()=>ay,getOptionFromName:()=>WO,getOptionsForLibraryResolution:()=>hR,getOptionsNameMap:()=>PO,getOrCreateEmitNode:()=>ZC,getOrUpdate:()=>z,getOriginalNode:()=>lc,getOriginalNodeId:()=>TJ,getOutputDeclarationFileName:()=>jq,getOutputDeclarationFileNameWorker:()=>Rq,getOutputExtension:()=>Oq,getOutputFileNames:()=>$q,getOutputJSFileNameWorker:()=>Bq,getOutputPathsFor:()=>Aq,getOwnEmitOutputFilePath:()=>zy,getOwnKeys:()=>Ee,getOwnValues:()=>Ae,getPackageJsonTypesVersionsPaths:()=>Kj,getPackageNameFromTypesPackageName:()=>mM,getPackageScopeForPath:()=>$R,getParameterSymbolFromJSDoc:()=>Mg,getParentNodeInSpan:()=>$Q,getParseTreeNode:()=>dc,getParsedCommandLineOfConfigFile:()=>QO,getPathComponents:()=>Ao,getPathFromPathComponents:()=>Io,getPathUpdater:()=>A0,getPathsBasePath:()=>Hy,getPatternFromSpec:()=>_S,getPendingEmitKindWithSeen:()=>GV,getPositionOfLineAndCharacter:()=>Oa,getPossibleGenericSignatures:()=>KX,getPossibleOriginalInputExtensionForExtension:()=>Wy,getPossibleOriginalInputPathWithoutChangingExt:()=>$y,getPossibleTypeArgumentsInfo:()=>GX,getPreEmitDiagnostics:()=>DU,getPrecedingNonSpaceCharacterPosition:()=>OY,getPrivateIdentifier:()=>ZJ,getProperties:()=>UJ,getProperty:()=>Fe,getPropertyArrayElementValue:()=>Uf,getPropertyAssignmentAliasLikeExpression:()=>gh,getPropertyNameForPropertyNameNode:()=>Bh,getPropertyNameFromType:()=>aC,getPropertyNameOfBindingOrAssignmentElement:()=>bA,getPropertySymbolFromBindingElement:()=>WQ,getPropertySymbolsFromContextualType:()=>U8,getQuoteFromPreference:()=>JQ,getQuotePreference:()=>BQ,getRangesWhere:()=>H,getRefactorContextSpan:()=>EZ,getReferencedFileLocation:()=>fV,getRegexFromPattern:()=>fS,getRegularExpressionForWildcard:()=>sS,getRegularExpressionsForWildcards:()=>cS,getRelativePathFromDirectory:()=>na,getRelativePathFromFile:()=>ia,getRelativePathToDirectoryOrUrl:()=>oa,getRenameLocation:()=>HY,getReplacementSpanForContextToken:()=>dQ,getResolutionDiagnostic:()=>EV,getResolutionModeOverride:()=>XU,getResolveJsonModule:()=>wk,getResolvePackageJsonExports:()=>Tk,getResolvePackageJsonImports:()=>Ck,getResolvedExternalModuleName:()=>Ry,getResolvedModuleFromResolution:()=>cd,getResolvedTypeReferenceDirectiveFromResolution:()=>ld,getRestIndicatorOfBindingOrAssignmentElement:()=>vA,getRestParameterElementType:()=>Df,getRightMostAssignedExpression:()=>Xm,getRootDeclaration:()=>Qh,getRootDirectoryOfResolutionCache:()=>MW,getRootLength:()=>No,getScriptKind:()=>FY,getScriptKindFromFileName:()=>vS,getScriptTargetFeatures:()=>Zd,getSelectedEffectiveModifierFlags:()=>Lv,getSelectedSyntacticModifierFlags:()=>jv,getSemanticClassifications:()=>y0,getSemanticJsxChildren:()=>cy,getSetAccessorTypeAnnotationNode:()=>ov,getSetAccessorValueParameter:()=>iv,getSetExternalModuleIndicator:()=>dk,getShebang:()=>us,getSingleVariableOfVariableStatement:()=>Pg,getSnapshotText:()=>CQ,getSnippetElement:()=>Dw,getSourceFileOfModule:()=>yd,getSourceFileOfNode:()=>hd,getSourceFilePathInNewDir:()=>Xy,getSourceFileVersionAsHashFromText:()=>g$,getSourceFilesToEmit:()=>Ky,getSourceMapRange:()=>aw,getSourceMapper:()=>d1,getSourceTextOfNodeFromSourceFile:()=>qd,getSpanOfTokenAtPosition:()=>Hp,getSpellingSuggestion:()=>Lt,getStartPositionOfLine:()=>xd,getStartPositionOfRange:()=>$b,getStartsOnNewLine:()=>_w,getStaticPropertiesAndClassStaticBlock:()=>WJ,getStrictOptionValue:()=>Mk,getStringComparer:()=>wt,getSubPatternFromSpec:()=>uS,getSuperCallFromStatement:()=>JJ,getSuperContainer:()=>rm,getSupportedCodeFixes:()=>E8,getSupportedExtensions:()=>ES,getSupportedExtensionsWithJsonIfResolveJsonModule:()=>PS,getSwitchedType:()=>oZ,getSymbolId:()=>RB,getSymbolNameForPrivateIdentifier:()=>Uh,getSymbolTarget:()=>EY,getSyntacticClassifications:()=>T0,getSyntacticModifierFlags:()=>Jv,getSyntacticModifierFlagsNoCache:()=>Vv,getSynthesizedDeepClone:()=>LY,getSynthesizedDeepCloneWithReplacements:()=>jY,getSynthesizedDeepClones:()=>MY,getSynthesizedDeepClonesWithReplacements:()=>BY,getSyntheticLeadingComments:()=>fw,getSyntheticTrailingComments:()=>hw,getTargetLabel:()=>qG,getTargetOfBindingOrAssignmentElement:()=>yA,getTemporaryModuleResolutionState:()=>WR,getTextOfConstantValue:()=>np,getTextOfIdentifierOrLiteral:()=>zh,getTextOfJSDocComment:()=>cl,getTextOfJsxAttributeName:()=>eC,getTextOfJsxNamespacedName:()=>rC,getTextOfNode:()=>Kd,getTextOfNodeFromSourceText:()=>Hd,getTextOfPropertyName:()=>Op,getThisContainer:()=>Zf,getThisParameter:()=>av,getTokenAtPosition:()=>PX,getTokenPosOfNode:()=>Bd,getTokenSourceMapRange:()=>cw,getTouchingPropertyName:()=>FX,getTouchingToken:()=>EX,getTrailingCommentRanges:()=>_s,getTrailingSemicolonDeferringWriter:()=>Oy,getTransformers:()=>hq,getTsBuildInfoEmitOutputFilePath:()=>Eq,getTsConfigObjectLiteralExpression:()=>Vf,getTsConfigPropArrayElementValue:()=>Wf,getTypeAnnotationNode:()=>fv,getTypeArgumentOrTypeParameterList:()=>eQ,getTypeKeywordOfTypeOnlyImport:()=>XQ,getTypeNode:()=>Aw,getTypeNodeIfAccessible:()=>sZ,getTypeParameterFromJsDoc:()=>Wg,getTypeParameterOwner:()=>Qs,getTypesPackageName:()=>pM,getUILocale:()=>Et,getUniqueName:()=>$Y,getUniqueSymbolId:()=>AY,getUseDefineForClassFields:()=>Ak,getWatchErrorSummaryDiagnosticMessage:()=>YW,getWatchFactory:()=>hU,group:()=>Je,groupBy:()=>ze,guessIndentation:()=>Ou,handleNoEmitOptions:()=>wV,handleWatchOptionsConfigDirTemplateSubstitution:()=>UL,hasAbstractModifier:()=>Ev,hasAccessorModifier:()=>Av,hasAmbientModifier:()=>Pv,hasChangesInResolutions:()=>md,hasContextSensitiveParameters:()=>IT,hasDecorators:()=>Ov,hasDocComment:()=>QX,hasDynamicName:()=>Rh,hasEffectiveModifier:()=>Cv,hasEffectiveModifiers:()=>Sv,hasEffectiveReadonlyModifier:()=>Iv,hasExtension:()=>xo,hasImplementationTSFileExtension:()=>OS,hasIndexSignature:()=>iZ,hasInferredType:()=>bC,hasInitializer:()=>Fu,hasInvalidEscape:()=>py,hasJSDocNodes:()=>Nu,hasJSDocParameterTags:()=>Oc,hasJSFileExtension:()=>AS,hasJsonModuleEmitEnabled:()=>Ok,hasOnlyExpressionInitializer:()=>Eu,hasOverrideModifier:()=>Fv,hasPossibleExternalModuleReference:()=>Cp,hasProperty:()=>De,hasPropertyAccessExpressionWithName:()=>UG,hasQuestionToken:()=>Cg,hasRecordedExternalHelpers:()=>dA,hasResolutionModeOverride:()=>cC,hasRestParameter:()=>Ru,hasScopeMarker:()=>H_,hasStaticModifier:()=>Dv,hasSyntacticModifier:()=>wv,hasSyntacticModifiers:()=>Tv,hasTSFileExtension:()=>IS,hasTabstop:()=>$T,hasTrailingDirectorySeparator:()=>To,hasType:()=>Du,hasTypeArguments:()=>$g,hasZeroOrOneAsteriskCharacter:()=>Kk,hostGetCanonicalFileName:()=>jy,hostUsesCaseSensitiveFileNames:()=>Ly,idText:()=>mc,identifierIsThisKeyword:()=>uv,identifierToKeywordKind:()=>gc,identity:()=>st,identitySourceMapConsumer:()=>SJ,ignoreSourceNewlines:()=>Ew,ignoredPaths:()=>Qi,importFromModuleSpecifier:()=>yg,importSyntaxAffectsModuleResolution:()=>pk,indexOfAnyCharCode:()=>C,indexOfNode:()=>Xd,indicesOf:()=>X,inferredTypesContainingFile:()=>sV,injectClassNamedEvaluationHelperBlockIfMissing:()=>Sz,injectClassThisAssignmentIfMissing:()=>hz,insertImports:()=>GQ,insertSorted:()=>Z,insertStatementAfterCustomPrologue:()=>Ld,insertStatementAfterStandardPrologue:()=>Od,insertStatementsAfterCustomPrologue:()=>Id,insertStatementsAfterStandardPrologue:()=>Ad,intersperse:()=>y,intrinsicTagNameToString:()=>iC,introducesArgumentsExoticObject:()=>Lf,inverseJsxOptionMap:()=>aO,isAbstractConstructorSymbol:()=>px,isAbstractModifier:()=>XN,isAccessExpression:()=>kx,isAccessibilityModifier:()=>aQ,isAccessor:()=>u_,isAccessorModifier:()=>YN,isAliasableExpression:()=>ph,isAmbientModule:()=>ap,isAmbientPropertyDeclaration:()=>hp,isAnyDirectorySeparator:()=>fo,isAnyImportOrBareOrAccessedRequire:()=>kp,isAnyImportOrReExport:()=>wp,isAnyImportOrRequireStatement:()=>Sp,isAnyImportSyntax:()=>xp,isAnySupportedFileExtension:()=>YS,isApplicableVersionedTypesKey:()=>iM,isArgumentExpressionOfElementAccess:()=>XG,isArray:()=>Qe,isArrayBindingElement:()=>S_,isArrayBindingOrAssignmentElement:()=>E_,isArrayBindingOrAssignmentPattern:()=>F_,isArrayBindingPattern:()=>UD,isArrayLiteralExpression:()=>WD,isArrayLiteralOrObjectLiteralDestructuringPattern:()=>cQ,isArrayTypeNode:()=>TD,isArrowFunction:()=>tF,isAsExpression:()=>gF,isAssertClause:()=>oE,isAssertEntry:()=>aE,isAssertionExpression:()=>V_,isAssertsKeyword:()=>$N,isAssignmentDeclaration:()=>qm,isAssignmentExpression:()=>nb,isAssignmentOperator:()=>Zv,isAssignmentPattern:()=>k_,isAssignmentTarget:()=>Xg,isAsteriskToken:()=>LN,isAsyncFunction:()=>Oh,isAsyncModifier:()=>WN,isAutoAccessorPropertyDeclaration:()=>d_,isAwaitExpression:()=>oF,isAwaitKeyword:()=>HN,isBigIntLiteral:()=>SN,isBinaryExpression:()=>cF,isBinaryLogicalOperator:()=>Hv,isBinaryOperatorToken:()=>jA,isBindableObjectDefinePropertyCall:()=>tg,isBindableStaticAccessExpression:()=>ig,isBindableStaticElementAccessExpression:()=>og,isBindableStaticNameExpression:()=>ag,isBindingElement:()=>VD,isBindingElementOfBareOrAccessedRequire:()=>Rm,isBindingName:()=>t_,isBindingOrAssignmentElement:()=>C_,isBindingOrAssignmentPattern:()=>w_,isBindingPattern:()=>x_,isBlock:()=>CF,isBlockLike:()=>GZ,isBlockOrCatchScoped:()=>ip,isBlockScope:()=>yp,isBlockScopedContainerTopLevel:()=>_p,isBooleanLiteral:()=>o_,isBreakOrContinueStatement:()=>Tl,isBreakStatement:()=>jF,isBuildCommand:()=>nK,isBuildInfoFile:()=>Dq,isBuilderProgram:()=>t$,isBundle:()=>UE,isCallChain:()=>ml,isCallExpression:()=>GD,isCallExpressionTarget:()=>PG,isCallLikeExpression:()=>O_,isCallLikeOrFunctionLikeExpression:()=>I_,isCallOrNewExpression:()=>L_,isCallOrNewExpressionTarget:()=>IG,isCallSignatureDeclaration:()=>mD,isCallToHelper:()=>xN,isCaseBlock:()=>ZF,isCaseClause:()=>OE,isCaseKeyword:()=>tD,isCaseOrDefaultClause:()=>xu,isCatchClause:()=>RE,isCatchClauseVariableDeclaration:()=>LT,isCatchClauseVariableDeclarationOrBindingElement:()=>op,isCheckJsEnabledForFile:()=>eT,isCircularBuildOrder:()=>O$,isClassDeclaration:()=>HF,isClassElement:()=>l_,isClassExpression:()=>pF,isClassInstanceProperty:()=>p_,isClassLike:()=>__,isClassMemberModifier:()=>Ql,isClassNamedEvaluationHelperBlock:()=>bz,isClassOrTypeElement:()=>h_,isClassStaticBlockDeclaration:()=>uD,isClassThisAssignmentBlock:()=>mz,isColonToken:()=>MN,isCommaExpression:()=>rA,isCommaListExpression:()=>kF,isCommaSequence:()=>iA,isCommaToken:()=>AN,isComment:()=>tQ,isCommonJsExportPropertyAssignment:()=>If,isCommonJsExportedExpression:()=>Af,isCompoundAssignment:()=>MJ,isComputedNonLiteralName:()=>Ap,isComputedPropertyName:()=>rD,isConciseBody:()=>Q_,isConditionalExpression:()=>lF,isConditionalTypeNode:()=>PD,isConstAssertion:()=>mC,isConstTypeReference:()=>xl,isConstructSignatureDeclaration:()=>gD,isConstructorDeclaration:()=>dD,isConstructorTypeNode:()=>xD,isContextualKeyword:()=>Nh,isContinueStatement:()=>LF,isCustomPrologue:()=>df,isDebuggerStatement:()=>UF,isDeclaration:()=>lu,isDeclarationBindingElement:()=>T_,isDeclarationFileName:()=>$I,isDeclarationName:()=>ch,isDeclarationNameOfEnumOrNamespace:()=>Qb,isDeclarationReadonly:()=>ef,isDeclarationStatement:()=>_u,isDeclarationWithTypeParameterChildren:()=>bp,isDeclarationWithTypeParameters:()=>vp,isDecorator:()=>aD,isDecoratorTarget:()=>LG,isDefaultClause:()=>LE,isDefaultImport:()=>Sg,isDefaultModifier:()=>VN,isDefaultedExpandoInitializer:()=>Hm,isDeleteExpression:()=>nF,isDeleteTarget:()=>ah,isDeprecatedDeclaration:()=>JZ,isDestructuringAssignment:()=>rb,isDiskPathRoot:()=>ho,isDoStatement:()=>EF,isDocumentRegistryEntry:()=>w0,isDotDotDotToken:()=>PN,isDottedName:()=>sb,isDynamicName:()=>Mh,isEffectiveExternalModule:()=>mp,isEffectiveStrictModeSourceFile:()=>gp,isElementAccessChain:()=>fl,isElementAccessExpression:()=>KD,isEmittedFileOfProgram:()=>mU,isEmptyArrayLiteral:()=>hb,isEmptyBindingElement:()=>ec,isEmptyBindingPattern:()=>Zs,isEmptyObjectLiteral:()=>gb,isEmptyStatement:()=>NF,isEmptyStringLiteral:()=>hm,isEntityName:()=>Zl,isEntityNameExpression:()=>ob,isEnumConst:()=>Zp,isEnumDeclaration:()=>XF,isEnumMember:()=>zE,isEqualityOperatorKind:()=>nZ,isEqualsGreaterThanToken:()=>JN,isExclamationToken:()=>jN,isExcludedFile:()=>bj,isExclusivelyTypeOnlyImportOrExport:()=>$U,isExpandoPropertyDeclaration:()=>sC,isExportAssignment:()=>pE,isExportDeclaration:()=>fE,isExportModifier:()=>UN,isExportName:()=>ZP,isExportNamespaceAsDefaultDeclaration:()=>Ud,isExportOrDefaultModifier:()=>VA,isExportSpecifier:()=>gE,isExportsIdentifier:()=>Qm,isExportsOrModuleExportsOrAlias:()=>LM,isExpression:()=>U_,isExpressionNode:()=>vm,isExpressionOfExternalModuleImportEqualsDeclaration:()=>eX,isExpressionOfOptionalChainRoot:()=>yl,isExpressionStatement:()=>DF,isExpressionWithTypeArguments:()=>mF,isExpressionWithTypeArgumentsInClassExtendsClause:()=>ib,isExternalModule:()=>MI,isExternalModuleAugmentation:()=>dp,isExternalModuleImportEqualsDeclaration:()=>Sm,isExternalModuleIndicator:()=>G_,isExternalModuleNameRelative:()=>Ts,isExternalModuleReference:()=>xE,isExternalModuleSymbol:()=>Gu,isExternalOrCommonJsModule:()=>Qp,isFileLevelReservedGeneratedIdentifier:()=>$l,isFileLevelUniqueName:()=>Td,isFileProbablyExternalModule:()=>_I,isFirstDeclarationOfSymbolParameter:()=>oY,isFixablePromiseHandler:()=>x1,isForInOrOfStatement:()=>X_,isForInStatement:()=>IF,isForInitializer:()=>Z_,isForOfStatement:()=>OF,isForStatement:()=>AF,isFullSourceFile:()=>Nm,isFunctionBlock:()=>Rf,isFunctionBody:()=>Y_,isFunctionDeclaration:()=>$F,isFunctionExpression:()=>eF,isFunctionExpressionOrArrowFunction:()=>jT,isFunctionLike:()=>n_,isFunctionLikeDeclaration:()=>i_,isFunctionLikeKind:()=>s_,isFunctionLikeOrClassStaticBlockDeclaration:()=>r_,isFunctionOrConstructorTypeNode:()=>b_,isFunctionOrModuleBlock:()=>c_,isFunctionSymbol:()=>mg,isFunctionTypeNode:()=>bD,isGeneratedIdentifier:()=>Vl,isGeneratedPrivateIdentifier:()=>Wl,isGetAccessor:()=>wu,isGetAccessorDeclaration:()=>pD,isGetOrSetAccessorDeclaration:()=>dl,isGlobalScopeAugmentation:()=>up,isGlobalSourceFile:()=>Xp,isGrammarError:()=>Nd,isHeritageClause:()=>jE,isHoistedFunction:()=>pf,isHoistedVariableStatement:()=>mf,isIdentifier:()=>zN,isIdentifierANonContextualKeyword:()=>Eh,isIdentifierName:()=>uh,isIdentifierOrThisTypeNode:()=>EA,isIdentifierPart:()=>ps,isIdentifierStart:()=>ds,isIdentifierText:()=>fs,isIdentifierTypePredicate:()=>Jf,isIdentifierTypeReference:()=>vT,isIfStatement:()=>FF,isIgnoredFileFromWildCardWatching:()=>fU,isImplicitGlob:()=>lS,isImportAttribute:()=>cE,isImportAttributeName:()=>Ul,isImportAttributes:()=>sE,isImportCall:()=>cf,isImportClause:()=>rE,isImportDeclaration:()=>nE,isImportEqualsDeclaration:()=>tE,isImportKeyword:()=>eD,isImportMeta:()=>lf,isImportOrExportSpecifier:()=>Rl,isImportOrExportSpecifierName:()=>DY,isImportSpecifier:()=>dE,isImportTypeAssertionContainer:()=>iE,isImportTypeNode:()=>BD,isImportable:()=>e0,isInComment:()=>XX,isInCompoundLikeAssignment:()=>Qg,isInExpressionContext:()=>bm,isInJSDoc:()=>Am,isInJSFile:()=>Fm,isInJSXText:()=>VX,isInJsonFile:()=>Em,isInNonReferenceComment:()=>_Q,isInReferenceComment:()=>lQ,isInRightSideOfInternalImportEqualsDeclaration:()=>EG,isInString:()=>JX,isInTemplateString:()=>UX,isInTopLevelContext:()=>tm,isInTypeQuery:()=>lv,isIncrementalBuildInfo:()=>aW,isIncrementalBundleEmitBuildInfo:()=>oW,isIncrementalCompilation:()=>Fk,isIndexSignatureDeclaration:()=>hD,isIndexedAccessTypeNode:()=>jD,isInferTypeNode:()=>AD,isInfinityOrNaNString:()=>OT,isInitializedProperty:()=>$J,isInitializedVariable:()=>Zb,isInsideJsxElement:()=>WX,isInsideJsxElementOrAttribute:()=>zX,isInsideNodeModules:()=>wZ,isInsideTemplateLiteral:()=>oQ,isInstanceOfExpression:()=>fb,isInstantiatedModule:()=>MB,isInterfaceDeclaration:()=>KF,isInternalDeclaration:()=>Ju,isInternalModuleImportEqualsDeclaration:()=>wm,isInternalName:()=>QP,isIntersectionTypeNode:()=>ED,isIntrinsicJsxName:()=>Fy,isIterationStatement:()=>W_,isJSDoc:()=>iP,isJSDocAllType:()=>XE,isJSDocAugmentsTag:()=>sP,isJSDocAuthorTag:()=>cP,isJSDocCallbackTag:()=>_P,isJSDocClassTag:()=>lP,isJSDocCommentContainingNode:()=>Su,isJSDocConstructSignature:()=>wg,isJSDocDeprecatedTag:()=>hP,isJSDocEnumTag:()=>vP,isJSDocFunctionType:()=>tP,isJSDocImplementsTag:()=>DP,isJSDocImportTag:()=>PP,isJSDocIndexSignature:()=>Im,isJSDocLikeText:()=>lI,isJSDocLink:()=>HE,isJSDocLinkCode:()=>KE,isJSDocLinkLike:()=>ju,isJSDocLinkPlain:()=>GE,isJSDocMemberName:()=>$E,isJSDocNameReference:()=>WE,isJSDocNamepathType:()=>rP,isJSDocNamespaceBody:()=>nu,isJSDocNode:()=>ku,isJSDocNonNullableType:()=>ZE,isJSDocNullableType:()=>YE,isJSDocOptionalParameter:()=>HT,isJSDocOptionalType:()=>eP,isJSDocOverloadTag:()=>gP,isJSDocOverrideTag:()=>mP,isJSDocParameterTag:()=>bP,isJSDocPrivateTag:()=>dP,isJSDocPropertyLikeTag:()=>wl,isJSDocPropertyTag:()=>NP,isJSDocProtectedTag:()=>pP,isJSDocPublicTag:()=>uP,isJSDocReadonlyTag:()=>fP,isJSDocReturnTag:()=>xP,isJSDocSatisfiesExpression:()=>XT,isJSDocSatisfiesTag:()=>FP,isJSDocSeeTag:()=>yP,isJSDocSignature:()=>aP,isJSDocTag:()=>Tu,isJSDocTemplateTag:()=>TP,isJSDocThisTag:()=>kP,isJSDocThrowsTag:()=>EP,isJSDocTypeAlias:()=>Ng,isJSDocTypeAssertion:()=>oA,isJSDocTypeExpression:()=>VE,isJSDocTypeLiteral:()=>oP,isJSDocTypeTag:()=>SP,isJSDocTypedefTag:()=>CP,isJSDocUnknownTag:()=>wP,isJSDocUnknownType:()=>QE,isJSDocVariadicType:()=>nP,isJSXTagName:()=>ym,isJsonEqual:()=>dT,isJsonSourceFile:()=>Yp,isJsxAttribute:()=>FE,isJsxAttributeLike:()=>hu,isJsxAttributeName:()=>tC,isJsxAttributes:()=>EE,isJsxCallLike:()=>bu,isJsxChild:()=>gu,isJsxClosingElement:()=>CE,isJsxClosingFragment:()=>DE,isJsxElement:()=>kE,isJsxExpression:()=>AE,isJsxFragment:()=>wE,isJsxNamespacedName:()=>IE,isJsxOpeningElement:()=>TE,isJsxOpeningFragment:()=>NE,isJsxOpeningLikeElement:()=>vu,isJsxOpeningLikeElementTagName:()=>jG,isJsxSelfClosingElement:()=>SE,isJsxSpreadAttribute:()=>PE,isJsxTagNameExpression:()=>mu,isJsxText:()=>CN,isJumpStatementTarget:()=>VG,isKeyword:()=>Th,isKeywordOrPunctuation:()=>wh,isKnownSymbol:()=>Vh,isLabelName:()=>$G,isLabelOfLabeledStatement:()=>WG,isLabeledStatement:()=>JF,isLateVisibilityPaintedStatement:()=>Tp,isLeftHandSideExpression:()=>R_,isLet:()=>af,isLineBreak:()=>Ua,isLiteralComputedPropertyDeclarationName:()=>_h,isLiteralExpression:()=>Al,isLiteralExpressionOfObject:()=>Il,isLiteralImportTypeNode:()=>_f,isLiteralKind:()=>Pl,isLiteralNameOfPropertyDeclarationOrIndexAccess:()=>ZG,isLiteralTypeLiteral:()=>q_,isLiteralTypeNode:()=>MD,isLocalName:()=>YP,isLogicalOperator:()=>Kv,isLogicalOrCoalescingAssignmentExpression:()=>Xv,isLogicalOrCoalescingAssignmentOperator:()=>Gv,isLogicalOrCoalescingBinaryExpression:()=>Yv,isLogicalOrCoalescingBinaryOperator:()=>Qv,isMappedTypeNode:()=>RD,isMemberName:()=>ul,isMetaProperty:()=>vF,isMethodDeclaration:()=>_D,isMethodOrAccessor:()=>f_,isMethodSignature:()=>lD,isMinusToken:()=>ON,isMissingDeclaration:()=>yE,isMissingPackageJsonInfo:()=>oR,isModifier:()=>Yl,isModifierKind:()=>Gl,isModifierLike:()=>m_,isModuleAugmentationExternal:()=>pp,isModuleBlock:()=>YF,isModuleBody:()=>eu,isModuleDeclaration:()=>QF,isModuleExportName:()=>hE,isModuleExportsAccessExpression:()=>Zm,isModuleIdentifier:()=>Ym,isModuleName:()=>IA,isModuleOrEnumDeclaration:()=>iu,isModuleReference:()=>fu,isModuleSpecifierLike:()=>UQ,isModuleWithStringLiteralName:()=>sp,isNameOfFunctionDeclaration:()=>YG,isNameOfModuleDeclaration:()=>QG,isNamedDeclaration:()=>kc,isNamedEvaluation:()=>Kh,isNamedEvaluationSource:()=>Hh,isNamedExportBindings:()=>Cl,isNamedExports:()=>mE,isNamedImportBindings:()=>ru,isNamedImports:()=>uE,isNamedImportsOrExports:()=>Tx,isNamedTupleMember:()=>wD,isNamespaceBody:()=>tu,isNamespaceExport:()=>_E,isNamespaceExportDeclaration:()=>eE,isNamespaceImport:()=>lE,isNamespaceReexportDeclaration:()=>km,isNewExpression:()=>XD,isNewExpressionTarget:()=>AG,isNewScopeNode:()=>DC,isNoSubstitutionTemplateLiteral:()=>NN,isNodeArray:()=>El,isNodeArrayMultiLine:()=>Vb,isNodeDescendantOf:()=>sh,isNodeKind:()=>Nl,isNodeLikeSystem:()=>_n,isNodeModulesDirectory:()=>sa,isNodeWithPossibleHoistedDeclaration:()=>Yg,isNonContextualKeyword:()=>Dh,isNonGlobalAmbientModule:()=>cp,isNonNullAccess:()=>GT,isNonNullChain:()=>Sl,isNonNullExpression:()=>yF,isNonStaticMethodOrAccessorWithPrivateName:()=>HJ,isNotEmittedStatement:()=>vE,isNullishCoalesce:()=>bl,isNumber:()=>et,isNumericLiteral:()=>kN,isNumericLiteralName:()=>MT,isObjectBindingElementWithoutPropertyName:()=>VQ,isObjectBindingOrAssignmentElement:()=>D_,isObjectBindingOrAssignmentPattern:()=>N_,isObjectBindingPattern:()=>qD,isObjectLiteralElement:()=>Pu,isObjectLiteralElementLike:()=>y_,isObjectLiteralExpression:()=>$D,isObjectLiteralMethod:()=>Mf,isObjectLiteralOrClassExpressionMethodOrAccessor:()=>Bf,isObjectTypeDeclaration:()=>bx,isOmittedExpression:()=>fF,isOptionalChain:()=>gl,isOptionalChainRoot:()=>hl,isOptionalDeclaration:()=>KT,isOptionalJSDocPropertyLikeTag:()=>VT,isOptionalTypeNode:()=>ND,isOuterExpression:()=>sA,isOutermostOptionalChain:()=>vl,isOverrideModifier:()=>QN,isPackageJsonInfo:()=>iR,isPackedArrayLiteral:()=>FT,isParameter:()=>oD,isParameterPropertyDeclaration:()=>Ys,isParameterPropertyModifier:()=>Xl,isParenthesizedExpression:()=>ZD,isParenthesizedTypeNode:()=>ID,isParseTreeNode:()=>uc,isPartOfParameterDeclaration:()=>Xh,isPartOfTypeNode:()=>Tf,isPartOfTypeOnlyImportOrExportDeclaration:()=>zl,isPartOfTypeQuery:()=>xm,isPartiallyEmittedExpression:()=>xF,isPatternMatch:()=>Yt,isPinnedComment:()=>Rd,isPlainJsFile:()=>vd,isPlusToken:()=>IN,isPossiblyTypeArgumentPosition:()=>HX,isPostfixUnaryExpression:()=>sF,isPrefixUnaryExpression:()=>aF,isPrimitiveLiteralValue:()=>yC,isPrivateIdentifier:()=>qN,isPrivateIdentifierClassElementDeclaration:()=>Hl,isPrivateIdentifierPropertyAccessExpression:()=>Kl,isPrivateIdentifierSymbol:()=>Wh,isProgramUptoDate:()=>mV,isPrologueDirective:()=>uf,isPropertyAccessChain:()=>pl,isPropertyAccessEntityNameExpression:()=>cb,isPropertyAccessExpression:()=>HD,isPropertyAccessOrQualifiedName:()=>A_,isPropertyAccessOrQualifiedNameOrImportTypeNode:()=>P_,isPropertyAssignment:()=>ME,isPropertyDeclaration:()=>cD,isPropertyName:()=>e_,isPropertyNameLiteral:()=>Jh,isPropertySignature:()=>sD,isPrototypeAccess:()=>_b,isPrototypePropertyAssignment:()=>dg,isPunctuation:()=>Ch,isPushOrUnshiftIdentifier:()=>Gh,isQualifiedName:()=>nD,isQuestionDotToken:()=>BN,isQuestionOrExclamationToken:()=>FA,isQuestionOrPlusOrMinusToken:()=>AA,isQuestionToken:()=>RN,isReadonlyKeyword:()=>KN,isReadonlyKeywordOrPlusOrMinusToken:()=>PA,isRecognizedTripleSlashComment:()=>jd,isReferenceFileLocation:()=>pV,isReferencedFile:()=>dV,isRegularExpressionLiteral:()=>wN,isRequireCall:()=>Om,isRequireVariableStatement:()=>Bm,isRestParameter:()=>Mu,isRestTypeNode:()=>DD,isReturnStatement:()=>RF,isReturnStatementWithFixablePromiseHandler:()=>b1,isRightSideOfAccessExpression:()=>db,isRightSideOfInstanceofExpression:()=>mb,isRightSideOfPropertyAccess:()=>GG,isRightSideOfQualifiedName:()=>KG,isRightSideOfQualifiedNameOrPropertyAccess:()=>ub,isRightSideOfQualifiedNameOrPropertyAccessOrJSDocMemberName:()=>pb,isRootedDiskPath:()=>go,isSameEntityName:()=>Gm,isSatisfiesExpression:()=>hF,isSemicolonClassElement:()=>TF,isSetAccessor:()=>Cu,isSetAccessorDeclaration:()=>fD,isShiftOperatorOrHigher:()=>OA,isShorthandAmbientModuleSymbol:()=>lp,isShorthandPropertyAssignment:()=>BE,isSideEffectImport:()=>xC,isSignedNumericLiteral:()=>jh,isSimpleCopiableExpression:()=>jJ,isSimpleInlineableExpression:()=>RJ,isSimpleParameterList:()=>rz,isSingleOrDoubleQuote:()=>Jm,isSolutionConfig:()=>YL,isSourceElement:()=>dC,isSourceFile:()=>qE,isSourceFileFromLibrary:()=>$Z,isSourceFileJS:()=>Dm,isSourceFileNotJson:()=>Pm,isSourceMapping:()=>mJ,isSpecialPropertyDeclaration:()=>pg,isSpreadAssignment:()=>JE,isSpreadElement:()=>dF,isStatement:()=>du,isStatementButNotDeclaration:()=>uu,isStatementOrBlock:()=>pu,isStatementWithLocals:()=>bd,isStatic:()=>Nv,isStaticModifier:()=>GN,isString:()=>Ze,isStringANonContextualKeyword:()=>Fh,isStringAndEmptyAnonymousObjectIntersection:()=>iQ,isStringDoubleQuoted:()=>zm,isStringLiteral:()=>TN,isStringLiteralLike:()=>Lu,isStringLiteralOrJsxExpression:()=>yu,isStringLiteralOrTemplate:()=>rZ,isStringOrNumericLiteralLike:()=>Lh,isStringOrRegularExpressionOrTemplateLiteral:()=>nQ,isStringTextContainingNode:()=>ql,isSuperCall:()=>sf,isSuperKeyword:()=>ZN,isSuperProperty:()=>om,isSupportedSourceFileName:()=>RS,isSwitchStatement:()=>BF,isSyntaxList:()=>AP,isSyntheticExpression:()=>bF,isSyntheticReference:()=>bE,isTagName:()=>HG,isTaggedTemplateExpression:()=>QD,isTaggedTemplateTag:()=>OG,isTemplateExpression:()=>_F,isTemplateHead:()=>DN,isTemplateLiteral:()=>j_,isTemplateLiteralKind:()=>Ol,isTemplateLiteralToken:()=>Ll,isTemplateLiteralTypeNode:()=>zD,isTemplateLiteralTypeSpan:()=>JD,isTemplateMiddle:()=>FN,isTemplateMiddleOrTemplateTail:()=>jl,isTemplateSpan:()=>SF,isTemplateTail:()=>EN,isTextWhiteSpaceLike:()=>tY,isThis:()=>rX,isThisContainerOrFunctionBlock:()=>em,isThisIdentifier:()=>cv,isThisInTypeQuery:()=>_v,isThisInitializedDeclaration:()=>sm,isThisInitializedObjectBindingExpression:()=>cm,isThisProperty:()=>am,isThisTypeNode:()=>OD,isThisTypeParameter:()=>JT,isThisTypePredicate:()=>zf,isThrowStatement:()=>zF,isToken:()=>Fl,isTokenKind:()=>Dl,isTraceEnabled:()=>Lj,isTransientSymbol:()=>Ku,isTrivia:()=>Ph,isTryStatement:()=>qF,isTupleTypeNode:()=>CD,isTypeAlias:()=>Dg,isTypeAliasDeclaration:()=>GF,isTypeAssertionExpression:()=>YD,isTypeDeclaration:()=>qT,isTypeElement:()=>g_,isTypeKeyword:()=>xQ,isTypeKeywordTokenOrIdentifier:()=>SQ,isTypeLiteralNode:()=>SD,isTypeNode:()=>v_,isTypeNodeKind:()=>xx,isTypeOfExpression:()=>rF,isTypeOnlyExportDeclaration:()=>Bl,isTypeOnlyImportDeclaration:()=>Ml,isTypeOnlyImportOrExportDeclaration:()=>Jl,isTypeOperatorNode:()=>LD,isTypeParameterDeclaration:()=>iD,isTypePredicateNode:()=>yD,isTypeQueryNode:()=>kD,isTypeReferenceNode:()=>vD,isTypeReferenceType:()=>Au,isTypeUsableAsPropertyName:()=>oC,isUMDExportSymbol:()=>gx,isUnaryExpression:()=>B_,isUnaryExpressionWithWrite:()=>z_,isUnicodeIdentifierStart:()=>Ca,isUnionTypeNode:()=>FD,isUrl:()=>mo,isValidBigIntString:()=>hT,isValidESSymbolDeclaration:()=>Of,isValidTypeOnlyAliasUseSite:()=>yT,isValueSignatureDeclaration:()=>Zg,isVarAwaitUsing:()=>tf,isVarConst:()=>rf,isVarConstLike:()=>of,isVarUsing:()=>nf,isVariableDeclaration:()=>VF,isVariableDeclarationInVariableStatement:()=>Pf,isVariableDeclarationInitializedToBareOrAccessedRequire:()=>jm,isVariableDeclarationInitializedToRequire:()=>Lm,isVariableDeclarationList:()=>WF,isVariableLike:()=>Ef,isVariableStatement:()=>wF,isVoidExpression:()=>iF,isWatchSet:()=>ex,isWhileStatement:()=>PF,isWhiteSpaceLike:()=>za,isWhiteSpaceSingleLine:()=>qa,isWithStatement:()=>MF,isWriteAccess:()=>sx,isWriteOnlyAccess:()=>ax,isYieldExpression:()=>uF,jsxModeNeedsExplicitImport:()=>WZ,keywordPart:()=>lY,last:()=>ve,lastOrUndefined:()=>ye,length:()=>u,libMap:()=>lO,libs:()=>cO,lineBreakPart:()=>SY,loadModuleFromGlobalCache:()=>xM,loadWithModeAwareCache:()=>iV,makeIdentifierFromModuleName:()=>rp,makeImport:()=>LQ,makeStringLiteral:()=>jQ,mangleScopedPackageName:()=>fM,map:()=>E,mapAllOrFail:()=>M,mapDefined:()=>B,mapDefinedIterator:()=>J,mapEntries:()=>W,mapIterator:()=>P,mapOneOrMany:()=>AZ,mapToDisplayParts:()=>TY,matchFiles:()=>mS,matchPatternOrExact:()=>nT,matchedText:()=>Ht,matchesExclude:()=>kj,matchesExcludeWorker:()=>Sj,maxBy:()=>xt,maybeBind:()=>We,maybeSetLocalizedDiagnosticMessages:()=>qx,memoize:()=>dt,memoizeOne:()=>pt,min:()=>kt,minAndMax:()=>oT,missingFileModifiedTime:()=>zi,modifierToFlag:()=>$v,modifiersToFlags:()=>Wv,moduleExportNameIsDefault:()=>$d,moduleExportNameTextEscaped:()=>Wd,moduleExportNameTextUnescaped:()=>Vd,moduleOptionDeclaration:()=>pO,moduleResolutionIsEqualTo:()=>sd,moduleResolutionNameAndModeGetter:()=>ZU,moduleResolutionOptionDeclarations:()=>vO,moduleResolutionSupportsPackageJsonExportsAndImports:()=>Rk,moduleResolutionUsesNodeModules:()=>OQ,moduleSpecifierToValidIdentifier:()=>RZ,moduleSpecifiers:()=>BM,moduleSymbolToValidIdentifier:()=>jZ,moveEmitHelpers:()=>Nw,moveRangeEnd:()=>Ab,moveRangePastDecorators:()=>Ob,moveRangePastModifiers:()=>Lb,moveRangePos:()=>Ib,moveSyntheticComments:()=>bw,mutateMap:()=>dx,mutateMapSkippingNewValues:()=>ux,needsParentheses:()=>ZY,needsScopeMarker:()=>K_,newCaseClauseTracker:()=>HZ,newPrivateEnvironment:()=>YJ,noEmitNotification:()=>Tq,noEmitSubstitution:()=>Sq,noTransformers:()=>gq,noTruncationMaximumTruncationLength:()=>Vu,nodeCanBeDecorated:()=>um,nodeCoreModules:()=>CC,nodeHasName:()=>bc,nodeIsDecorated:()=>dm,nodeIsMissing:()=>Cd,nodeIsPresent:()=>wd,nodeIsSynthesized:()=>Zh,nodeModuleNameResolver:()=>CR,nodeModulesPathPart:()=>PR,nodeNextJsonConfigResolver:()=>wR,nodeOrChildIsDecorated:()=>pm,nodeOverlapsWithStartEnd:()=>uX,nodePosToString:()=>kd,nodeSeenTracker:()=>TQ,nodeStartsNewLexicalEnvironment:()=>Yh,noop:()=>rt,noopFileWatcher:()=>_$,normalizePath:()=>Jo,normalizeSlashes:()=>Oo,normalizeSpans:()=>Us,not:()=>tn,notImplemented:()=>ut,notImplementedResolver:()=>Yq,nullNodeConverters:()=>OC,nullParenthesizerRules:()=>PC,nullTransformationContext:()=>wq,objectAllocator:()=>jx,operatorPart:()=>uY,optionDeclarations:()=>mO,optionMapToObject:()=>CL,optionsAffectingProgramStructure:()=>xO,optionsForBuild:()=>NO,optionsForWatch:()=>_O,optionsHaveChanges:()=>Zu,or:()=>en,orderedRemoveItem:()=>zt,orderedRemoveItemAt:()=>qt,packageIdToPackageName:()=>dd,packageIdToString:()=>pd,parameterIsThisKeyword:()=>sv,parameterNamePart:()=>dY,parseBaseNodeFactory:()=>oI,parseBigInt:()=>mT,parseBuildCommand:()=>GO,parseCommandLine:()=>VO,parseCommandLineWorker:()=>JO,parseConfigFileTextToJson:()=>ZO,parseConfigFileWithSystem:()=>GW,parseConfigHostFromCompilerHostLike:()=>DV,parseCustomTypeOption:()=>jO,parseIsolatedEntityName:()=>jI,parseIsolatedJSDocComment:()=>JI,parseJSDocTypeExpressionForTests:()=>zI,parseJsonConfigFileContent:()=>jL,parseJsonSourceFileConfigFileContent:()=>RL,parseJsonText:()=>RI,parseListTypeOption:()=>RO,parseNodeFactory:()=>aI,parseNodeModuleFromPath:()=>IR,parsePackageName:()=>YR,parsePseudoBigInt:()=>pT,parseValidBigInt:()=>gT,pasteEdits:()=>efe,patchWriteFileEnsuringDirectory:()=>ao,pathContainsNodeModules:()=>AR,pathIsAbsolute:()=>yo,pathIsBareSpecifier:()=>bo,pathIsRelative:()=>vo,patternText:()=>$t,performIncrementalCompilation:()=>S$,performance:()=>Vn,positionBelongsToNode:()=>pX,positionIsASICandidate:()=>pZ,positionIsSynthesized:()=>KS,positionsAreOnSameLine:()=>Wb,preProcessFile:()=>_1,probablyUsesSemicolons:()=>fZ,processCommentPragmas:()=>KI,processPragmasIntoFields:()=>GI,processTaggedTemplateExpression:()=>Nz,programContainsEsModules:()=>EQ,programContainsModules:()=>FQ,projectReferenceIsEqualTo:()=>ad,propertyNamePart:()=>pY,pseudoBigIntToString:()=>fT,punctuationPart:()=>_Y,pushIfUnique:()=>ce,quote:()=>tZ,quotePreferenceFromString:()=>MQ,rangeContainsPosition:()=>sX,rangeContainsPositionExclusive:()=>cX,rangeContainsRange:()=>Gb,rangeContainsRangeExclusive:()=>aX,rangeContainsStartEnd:()=>lX,rangeEndIsOnSameLineAsRangeStart:()=>zb,rangeEndPositionsAreOnSameLine:()=>Bb,rangeEquals:()=>de,rangeIsOnSingleLine:()=>Rb,rangeOfNode:()=>aT,rangeOfTypeParameters:()=>sT,rangeOverlapsWithStartEnd:()=>_X,rangeStartIsOnSameLineAsRangeEnd:()=>Jb,rangeStartPositionsAreOnSameLine:()=>Mb,readBuilderProgram:()=>T$,readConfigFile:()=>YO,readJson:()=>Cb,readJsonConfigFile:()=>eL,readJsonOrUndefined:()=>Tb,reduceEachLeadingCommentRange:()=>as,reduceEachTrailingCommentRange:()=>ss,reduceLeft:()=>we,reduceLeftIterator:()=>g,reducePathComponents:()=>Lo,refactor:()=>V2,regExpEscape:()=>Zk,regularExpressionFlagToCharacterCode:()=>Pa,relativeComplement:()=>re,removeAllComments:()=>tw,removeEmitHelper:()=>Cw,removeExtension:()=>US,removeFileExtension:()=>zS,removeIgnoredPath:()=>wW,removeMinAndVersionNumbers:()=>Jt,removePrefix:()=>Xt,removeSuffix:()=>Mt,removeTrailingDirectorySeparator:()=>Uo,repeatString:()=>wQ,replaceElement:()=>Se,replaceFirstStar:()=>_C,resolutionExtensionIsTSOrJson:()=>XS,resolveConfigFileProjectName:()=>E$,resolveJSModule:()=>kR,resolveLibrary:()=>yR,resolveModuleName:()=>bR,resolveModuleNameFromCache:()=>vR,resolvePackageNameToPackageJson:()=>nR,resolvePath:()=>Ro,resolveProjectReferencePath:()=>FV,resolveTripleslashReference:()=>xU,resolveTypeReferenceDirective:()=>Zj,resolvingEmptyArray:()=>zu,returnFalse:()=>it,returnNoopFileWatcher:()=>u$,returnTrue:()=>ot,returnUndefined:()=>at,returnsPromise:()=>v1,rewriteModuleSpecifier:()=>iz,sameFlatMap:()=>R,sameMap:()=>A,sameMapping:()=>fJ,scanTokenAtPosition:()=>Kp,scanner:()=>wG,semanticDiagnosticsOptionDeclarations:()=>gO,serializeCompilerOptions:()=>FL,server:()=>uhe,servicesVersion:()=>l8,setCommentRange:()=>pw,setConfigFileInOptions:()=>ML,setConstantValue:()=>kw,setEmitFlags:()=>nw,setGetSourceFileAsHashVersioned:()=>h$,setIdentifierAutoGenerate:()=>Lw,setIdentifierGeneratedImportReference:()=>Rw,setIdentifierTypeArguments:()=>Iw,setInternalEmitFlags:()=>iw,setLocalizedDiagnosticMessages:()=>zx,setNodeChildren:()=>jP,setNodeFlags:()=>CT,setObjectAllocator:()=>Bx,setOriginalNode:()=>YC,setParent:()=>wT,setParentRecursive:()=>NT,setPrivateIdentifier:()=>ez,setSnippetElement:()=>Fw,setSourceMapRange:()=>sw,setStackTraceLimit:()=>Mi,setStartsOnNewLine:()=>uw,setSyntheticLeadingComments:()=>mw,setSyntheticTrailingComments:()=>yw,setSys:()=>co,setSysLog:()=>eo,setTextRange:()=>nI,setTextRangeEnd:()=>kT,setTextRangePos:()=>xT,setTextRangePosEnd:()=>ST,setTextRangePosWidth:()=>TT,setTokenSourceMapRange:()=>lw,setTypeNode:()=>Pw,setUILocale:()=>Pt,setValueDeclaration:()=>fg,shouldAllowImportingTsExtension:()=>bM,shouldPreserveConstEnums:()=>Dk,shouldRewriteModuleSpecifier:()=>bg,shouldUseUriStyleNodeCoreModules:()=>zZ,showModuleSpecifier:()=>hx,signatureHasRestParameter:()=>UB,signatureToDisplayParts:()=>NY,single:()=>xe,singleElementArray:()=>rn,singleIterator:()=>U,singleOrMany:()=>ke,singleOrUndefined:()=>be,skipAlias:()=>ix,skipConstraint:()=>NQ,skipOuterExpressions:()=>cA,skipParentheses:()=>oh,skipPartiallyEmittedExpressions:()=>kl,skipTrivia:()=>Xa,skipTypeChecking:()=>cT,skipTypeCheckingIgnoringNoCheck:()=>lT,skipTypeParentheses:()=>ih,skipWhile:()=>ln,sliceAfter:()=>rT,some:()=>$,sortAndDeduplicate:()=>ee,sortAndDeduplicateDiagnostics:()=>Cs,sourceFileAffectingCompilerOptions:()=>bO,sourceFileMayBeEmitted:()=>Gy,sourceMapCommentRegExp:()=>sJ,sourceMapCommentRegExpDontCareLineStart:()=>aJ,spacePart:()=>cY,spanMap:()=>V,startEndContainsRange:()=>Xb,startEndOverlapsWithStartEnd:()=>dX,startOnNewLine:()=>_A,startTracing:()=>dr,startsWith:()=>Gt,startsWithDirectory:()=>ea,startsWithUnderscore:()=>BZ,startsWithUseStrict:()=>nA,stringContainsAt:()=>MZ,stringToToken:()=>Fa,stripQuotes:()=>Dy,supportedDeclarationExtensions:()=>NS,supportedJSExtensionsFlat:()=>TS,supportedLocaleDirectories:()=>sc,supportedTSExtensionsFlat:()=>xS,supportedTSImplementationExtensions:()=>DS,suppressLeadingAndTrailingTrivia:()=>JY,suppressLeadingTrivia:()=>zY,suppressTrailingTrivia:()=>qY,symbolEscapedNameNoDefault:()=>qQ,symbolName:()=>hc,symbolNameNoDefault:()=>zQ,symbolToDisplayParts:()=>wY,sys:()=>so,sysLog:()=>Zi,tagNamesAreEquivalent:()=>nO,takeWhile:()=>cn,targetOptionDeclaration:()=>dO,targetToLibMap:()=>ws,testFormatSettings:()=>mG,textChangeRangeIsUnchanged:()=>Hs,textChangeRangeNewSpan:()=>$s,textChanges:()=>Tue,textOrKeywordPart:()=>fY,textPart:()=>mY,textRangeContainsPositionInclusive:()=>Ps,textRangeContainsTextSpan:()=>Os,textRangeIntersectsWithTextSpan:()=>zs,textSpanContainsPosition:()=>Es,textSpanContainsTextRange:()=>Is,textSpanContainsTextSpan:()=>As,textSpanEnd:()=>Ds,textSpanIntersection:()=>qs,textSpanIntersectsWith:()=>Ms,textSpanIntersectsWithPosition:()=>Js,textSpanIntersectsWithTextSpan:()=>Rs,textSpanIsEmpty:()=>Fs,textSpanOverlap:()=>js,textSpanOverlapsWith:()=>Ls,textSpansEqual:()=>QQ,textToKeywordObj:()=>da,timestamp:()=>Un,toArray:()=>Ye,toBuilderFileEmit:()=>hW,toBuilderStateFileInfoForMultiEmit:()=>gW,toEditorSettings:()=>w8,toFileNameLowerCase:()=>_t,toPath:()=>qo,toProgramEmitPending:()=>yW,toSorted:()=>_e,tokenIsIdentifierOrKeyword:()=>_a,tokenIsIdentifierOrKeywordOrGreaterThan:()=>ua,tokenToString:()=>Da,trace:()=>Oj,tracing:()=>Hn,tracingEnabled:()=>Kn,transferSourceFileChildren:()=>MP,transform:()=>W8,transformClassFields:()=>Az,transformDeclarations:()=>pq,transformECMAScriptModule:()=>iq,transformES2015:()=>Zz,transformES2016:()=>Qz,transformES2017:()=>Rz,transformES2018:()=>Bz,transformES2019:()=>Jz,transformES2020:()=>zz,transformES2021:()=>qz,transformESDecorators:()=>jz,transformESNext:()=>Uz,transformGenerators:()=>eq,transformImpliedNodeFormatDependentModule:()=>oq,transformJsx:()=>Gz,transformLegacyDecorators:()=>Lz,transformModule:()=>tq,transformNamedEvaluation:()=>Cz,transformNodes:()=>Cq,transformSystemModule:()=>rq,transformTypeScript:()=>Pz,transpile:()=>L1,transpileDeclaration:()=>F1,transpileModule:()=>D1,transpileOptionValueCompilerOptions:()=>kO,tryAddToSet:()=>q,tryAndIgnoreErrors:()=>vZ,tryCast:()=>tt,tryDirectoryExists:()=>yZ,tryExtractTSExtension:()=>vb,tryFileExists:()=>hZ,tryGetClassExtendingExpressionWithTypeArguments:()=>eb,tryGetClassImplementingOrExtendingExpressionWithTypeArguments:()=>tb,tryGetDirectories:()=>mZ,tryGetExtensionFromPath:()=>ZS,tryGetImportFromModuleSpecifier:()=>vg,tryGetJSDocSatisfiesTypeNode:()=>YT,tryGetModuleNameFromFile:()=>gA,tryGetModuleSpecifierFromDeclaration:()=>hg,tryGetNativePerformanceHooks:()=>Jn,tryGetPropertyAccessOrIdentifierToString:()=>lb,tryGetPropertyNameOfBindingOrAssignmentElement:()=>xA,tryGetSourceMappingURL:()=>_J,tryGetTextOfPropertyName:()=>Ip,tryParseJson:()=>wb,tryParsePattern:()=>WS,tryParsePatterns:()=>HS,tryParseRawSourceMap:()=>dJ,tryReadDirectory:()=>gZ,tryReadFile:()=>tL,tryRemoveDirectoryPrefix:()=>Qk,tryRemoveExtension:()=>qS,tryRemovePrefix:()=>Qt,tryRemoveSuffix:()=>Bt,tscBuildOption:()=>wO,typeAcquisitionDeclarations:()=>FO,typeAliasNamePart:()=>gY,typeDirectiveIsEqualTo:()=>fd,typeKeywords:()=>bQ,typeParameterNamePart:()=>hY,typeToDisplayParts:()=>CY,unchangedPollThresholds:()=>$i,unchangedTextChangeRange:()=>Gs,unescapeLeadingUnderscores:()=>fc,unmangleScopedPackageName:()=>gM,unorderedRemoveItem:()=>Vt,unprefixedNodeCoreModules:()=>SC,unreachableCodeIsError:()=>Lk,unsetNodeChildren:()=>RP,unusedLabelIsError:()=>jk,unwrapInnermostStatementOfLabel:()=>jf,unwrapParenthesizedExpression:()=>vC,updateErrorForNoInputFiles:()=>ej,updateLanguageServiceSourceFile:()=>O8,updateMissingFilePathsWatch:()=>dU,updateResolutionField:()=>Vj,updateSharedExtendedConfigFileWatcher:()=>lU,updateSourceFile:()=>BI,updateWatchingWildcardDirectories:()=>pU,usingSingleLineStringWriter:()=>id,utf16EncodeAsString:()=>vs,validateLocaleAndSetLanguage:()=>cc,version:()=>s,versionMajorMinor:()=>a,visitArray:()=>KB,visitCommaListElements:()=>tJ,visitEachChild:()=>nJ,visitFunctionBody:()=>ZB,visitIterationBody:()=>eJ,visitLexicalEnvironment:()=>XB,visitNode:()=>$B,visitNodes:()=>HB,visitParameterList:()=>QB,walkUpBindingElementsAndPatterns:()=>tc,walkUpOuterExpressions:()=>lA,walkUpParenthesizedExpressions:()=>nh,walkUpParenthesizedTypes:()=>th,walkUpParenthesizedTypesAndGetParentAndChild:()=>rh,whitespaceOrMapCommentRegExp:()=>cJ,writeCommentRange:()=>bv,writeFile:()=>Yy,writeFileEnsuringDirectories:()=>ev,zipWith:()=>h}),e.exports=o;var a="5.7",s="5.7.2",c=(e=>(e[e.LessThan=-1]="LessThan",e[e.EqualTo=0]="EqualTo",e[e.GreaterThan=1]="GreaterThan",e))(c||{}),l=[],_=new Map;function u(e){return void 0!==e?e.length:0}function d(e,t){if(void 0!==e)for(let n=0;n=0;n--){const r=t(e[n],n);if(r)return r}}function f(e,t){if(void 0!==e)for(let n=0;n=0;r--){const n=e[r];if(t(n,r))return n}}function k(e,t,n){if(void 0===e)return-1;for(let r=n??0;r=0;r--)if(t(e[r],r))return r;return-1}function T(e,t,n=mt){if(void 0!==e)for(let r=0;r{const[i,o]=t(r,e);n.set(i,o)})),n}function $(e,t){if(void 0!==e){if(void 0===t)return e.length>0;for(let n=0;nn(e[t],e[r])||vt(t,r)))}(e,r,n);let i=e[r[0]];const o=[r[0]];for(let n=1;ne[t]))}(e,t,n):function(e,t){const n=[];for(let r=0;r0&&r(t,e[n-1]))return!1;if(n0&&un.assertGreaterThanOrEqual(n(t[o],t[o-1]),0);t:for(const a=i;ia&&un.assertGreaterThanOrEqual(n(e[i],e[i-1]),0),n(t[o],e[i])){case-1:r.push(t[o]);continue e;case 0:continue e;case 1:continue t}}return r}function ie(e,t){return void 0===t?e:void 0===e?[t]:(e.push(t),e)}function oe(e,t){return void 0===e?t:void 0===t?e:Qe(e)?Qe(t)?K(e,t):ie(e,t):Qe(t)?ie(t,e):[e,t]}function ae(e,t){return t<0?e.length+t:t}function se(e,t,n,r){if(void 0===t||0===t.length)return e;if(void 0===e)return t.slice(n,r);n=void 0===n?0:ae(t,n),r=void 0===r?t.length:ae(t,r);for(let i=n;i=0;t--)yield e[t]}function de(e,t,n,r){for(;nnull==e?void 0:e.at(t):(e,t)=>{if(void 0!==e&&(t=ae(e,t))>1);switch(r(n(e[i],i),t)){case-1:o=i+1;break;case 0:return i;case 1:a=i-1}}return~o}function we(e,t,n,r,i){if(e&&e.length>0){const o=e.length;if(o>0){let a=void 0===r||r<0?0:r;const s=void 0===i||a+i>o-1?o-1:a+i;let c;for(arguments.length<=2?(c=e[a],a++):c=n;a<=s;)c=t(c,e[a],a),a++;return c}}return n}var Ne=Object.prototype.hasOwnProperty;function De(e,t){return Ne.call(e,t)}function Fe(e,t){return Ne.call(e,t)?e[t]:void 0}function Ee(e){const t=[];for(const n in e)Ne.call(e,n)&&t.push(n);return t}function Pe(e){const t=[];do{const n=Object.getOwnPropertyNames(e);for(const e of n)ce(t,e)}while(e=Object.getPrototypeOf(e));return t}function Ae(e){const t=[];for(const n in e)Ne.call(e,n)&&t.push(e[n]);return t}function Ie(e,t){const n=new Array(e);for(let r=0;r100&&n>t.length>>1){const e=t.length-n;t.copyWithin(0,n),t.length=e,n=0}return e},isEmpty:r}}function Xe(e,t){const n=new Map;let r=0;function*i(){for(const e of n.values())Qe(e)?yield*e:yield e}const o={has(r){const i=e(r);if(!n.has(i))return!1;const o=n.get(i);return Qe(o)?T(o,r,t):t(o,r)},add(i){const o=e(i);if(n.has(o)){const e=n.get(o);if(Qe(e))T(e,i,t)||(e.push(i),r++);else{const a=e;t(a,i)||(n.set(o,[a,i]),r++)}}else n.set(o,i),r++;return this},delete(i){const o=e(i);if(!n.has(o))return!1;const a=n.get(o);if(Qe(a)){for(let e=0;ei(),values:()=>i(),*entries(){for(const e of i())yield[e,e]},[Symbol.iterator]:()=>i(),[Symbol.toStringTag]:n[Symbol.toStringTag]};return o}function Qe(e){return Array.isArray(e)}function Ye(e){return Qe(e)?e:[e]}function Ze(e){return"string"==typeof e}function et(e){return"number"==typeof e}function tt(e,t){return void 0!==e&&t(e)?e:void 0}function nt(e,t){return void 0!==e&&t(e)?e:un.fail(`Invalid cast. The supplied value ${e} did not pass the test '${un.getFunctionName(t)}'.`)}function rt(e){}function it(){return!1}function ot(){return!0}function at(){}function st(e){return e}function ct(e){return e.toLowerCase()}var lt=/[^\u0130\u0131\u00DFa-z0-9\\/:\-_. ]+/g;function _t(e){return lt.test(e)?e.replace(lt,ct):e}function ut(){throw new Error("Not implemented")}function dt(e){let t;return()=>(e&&(t=e(),e=void 0),t)}function pt(e){const t=new Map;return n=>{const r=`${typeof n}:${n}`;let i=t.get(r);return void 0!==i||t.has(r)||(i=e(n),t.set(r,i)),i}}var ft=(e=>(e[e.None=0]="None",e[e.Normal=1]="Normal",e[e.Aggressive=2]="Aggressive",e[e.VeryAggressive=3]="VeryAggressive",e))(ft||{});function mt(e,t){return e===t}function gt(e,t){return e===t||void 0!==e&&void 0!==t&&e.toUpperCase()===t.toUpperCase()}function ht(e,t){return mt(e,t)}function yt(e,t){return e===t?0:void 0===e?-1:void 0===t?1:e-1===t(e,n)?e:n))}function St(e,t){return e===t?0:void 0===e?-1:void 0===t?1:(e=e.toUpperCase())<(t=t.toUpperCase())?-1:e>t?1:0}function Tt(e,t){return e===t?0:void 0===e?-1:void 0===t?1:(e=e.toLowerCase())<(t=t.toLowerCase())?-1:e>t?1:0}function Ct(e,t){return yt(e,t)}function wt(e){return e?St:Ct}var Nt,Dt,Ft=(()=>function(e){const t=new Intl.Collator(e,{usage:"sort",sensitivity:"variant",numeric:!0}).compare;return(e,n)=>function(e,t,n){if(e===t)return 0;if(void 0===e)return-1;if(void 0===t)return 1;const r=n(e,t);return r<0?-1:r>0?1:0}(e,n,t)})();function Et(){return Dt}function Pt(e){Dt!==e&&(Dt=e,Nt=void 0)}function At(e,t){return Nt??(Nt=Ft(Dt)),Nt(e,t)}function It(e,t,n,r){return e===t?0:void 0===e?-1:void 0===t?1:r(e[n],t[n])}function Ot(e,t){return vt(e?1:0,t?1:0)}function Lt(e,t,n){const r=Math.max(2,Math.floor(.34*e.length));let i,o=Math.floor(.4*e.length)+1;for(const a of t){const t=n(a);if(void 0!==t&&Math.abs(t.length-e.length)<=r){if(t===e)continue;if(t.length<3&&t.toLowerCase()!==e.toLowerCase())continue;const n=jt(e,t,o-.1);if(void 0===n)continue;un.assert(nn?a-n:1),l=Math.floor(t.length>n+a?n+a:t.length);i[0]=a;let _=a;for(let e=1;en)return;const u=r;r=i,i=u}const a=r[t.length];return a>n?void 0:a}function Rt(e,t,n){const r=e.length-t.length;return r>=0&&(n?gt(e.slice(r),t):e.indexOf(t,r)===r)}function Mt(e,t){return Rt(e,t)?e.slice(0,e.length-t.length):e}function Bt(e,t){return Rt(e,t)?e.slice(0,e.length-t.length):void 0}function Jt(e){let t=e.length;for(let n=t-1;n>0;n--){let r=e.charCodeAt(n);if(r>=48&&r<=57)do{--n,r=e.charCodeAt(n)}while(n>0&&r>=48&&r<=57);else{if(!(n>4)||110!==r&&78!==r)break;if(--n,r=e.charCodeAt(n),105!==r&&73!==r)break;if(--n,r=e.charCodeAt(n),109!==r&&77!==r)break;--n,r=e.charCodeAt(n)}if(45!==r&&46!==r)break;t=n}return t===e.length?e:e.slice(0,t)}function zt(e,t){for(let n=0;ni&&Yt(s,n)&&(i=s.prefix.length,r=a)}return r}function Gt(e,t,n){return n?gt(e.slice(0,t.length),t):0===e.lastIndexOf(t,0)}function Xt(e,t){return Gt(e,t)?e.substr(t.length):e}function Qt(e,t,n=st){return Gt(n(e),n(t))?e.substring(t.length):void 0}function Yt({prefix:e,suffix:t},n){return n.length>=e.length+t.length&&Gt(n,e)&&Rt(n,t)}function Zt(e,t){return n=>e(n)&&t(n)}function en(...e){return(...t)=>{let n;for(const r of e)if(n=r(...t),n)return n;return n}}function tn(e){return(...t)=>!e(...t)}function nn(e){}function rn(e){return void 0===e?void 0:[e]}function on(e,t,n,r,i,o){o??(o=rt);let a=0,s=0;const c=e.length,l=t.length;let _=!1;for(;a(e[e.Off=0]="Off",e[e.Error=1]="Error",e[e.Warning=2]="Warning",e[e.Info=3]="Info",e[e.Verbose=4]="Verbose",e))(dn||{});(e=>{let t=0;function n(t){return e.currentLogLevel<=t}function r(t,r){e.loggingHost&&n(t)&&e.loggingHost.log(t,r)}function i(e){r(3,e)}var o;e.currentLogLevel=2,e.isDebugging=!1,e.shouldLog=n,e.log=i,(o=i=e.log||(e.log={})).error=function(e){r(1,e)},o.warn=function(e){r(2,e)},o.log=function(e){r(3,e)},o.trace=function(e){r(4,e)};const a={};function s(e){return t>=e}function c(t,n){return!!s(t)||(a[n]={level:t,assertion:e[n]},e[n]=rt,!1)}function l(e,t){const n=new Error(e?`Debug Failure. ${e}`:"Debug Failure.");throw Error.captureStackTrace&&Error.captureStackTrace(n,t||l),n}function _(e,t,n,r){e||(t=t?`False expression: ${t}`:"False expression.",n&&(t+="\r\nVerbose Debug Information: "+("string"==typeof n?n:n())),l(t,r||_))}function u(e,t,n){null==e&&l(t,n||u)}function d(e,t,n){for(const r of e)u(r,t,n||d)}function p(e,t="Illegal value:",n){return l(`${t} ${"object"==typeof e&&De(e,"kind")&&De(e,"pos")?"SyntaxKind: "+y(e.kind):JSON.stringify(e)}`,n||p)}function f(e){if("function"!=typeof e)return"";if(De(e,"name"))return e.name;{const t=Function.prototype.toString.call(e),n=/^function\s+([\w$]+)\s*\(/.exec(t);return n?n[1]:""}}function m(e=0,t,n){const r=function(e){const t=g.get(e);if(t)return t;const n=[];for(const t in e){const r=e[t];"number"==typeof r&&n.push([r,t])}const r=_e(n,((e,t)=>vt(e[0],t[0])));return g.set(e,r),r}(t);if(0===e)return r.length>0&&0===r[0][0]?r[0][1]:"0";if(n){const t=[];let n=e;for(const[i,o]of r){if(i>e)break;0!==i&&i&e&&(t.push(o),n&=~i)}if(0===n)return t.join("|")}else for(const[t,n]of r)if(t===e)return n;return e.toString()}e.getAssertionLevel=function(){return t},e.setAssertionLevel=function(n){const r=t;if(t=n,n>r)for(const t of Ee(a)){const r=a[t];void 0!==r&&e[t]!==r.assertion&&n>=r.level&&(e[t]=r,a[t]=void 0)}},e.shouldAssert=s,e.fail=l,e.failBadSyntaxKind=function e(t,n,r){return l(`${n||"Unexpected node."}\r\nNode ${y(t.kind)} was unexpected.`,r||e)},e.assert=_,e.assertEqual=function e(t,n,r,i,o){t!==n&&l(`Expected ${t} === ${n}. ${r?i?`${r} ${i}`:r:""}`,o||e)},e.assertLessThan=function e(t,n,r,i){t>=n&&l(`Expected ${t} < ${n}. ${r||""}`,i||e)},e.assertLessThanOrEqual=function e(t,n,r){t>n&&l(`Expected ${t} <= ${n}`,r||e)},e.assertGreaterThanOrEqual=function e(t,n,r){t= ${n}`,r||e)},e.assertIsDefined=u,e.checkDefined=function e(t,n,r){return u(t,n,r||e),t},e.assertEachIsDefined=d,e.checkEachDefined=function e(t,n,r){return d(t,n,r||e),t},e.assertNever=p,e.assertEachNode=function e(t,n,r,i){c(1,"assertEachNode")&&_(void 0===n||v(t,n),r||"Unexpected node.",(()=>`Node array did not pass test '${f(n)}'.`),i||e)},e.assertNode=function e(t,n,r,i){c(1,"assertNode")&&_(void 0!==t&&(void 0===n||n(t)),r||"Unexpected node.",(()=>`Node ${y(null==t?void 0:t.kind)} did not pass test '${f(n)}'.`),i||e)},e.assertNotNode=function e(t,n,r,i){c(1,"assertNotNode")&&_(void 0===t||void 0===n||!n(t),r||"Unexpected node.",(()=>`Node ${y(t.kind)} should not have passed test '${f(n)}'.`),i||e)},e.assertOptionalNode=function e(t,n,r,i){c(1,"assertOptionalNode")&&_(void 0===n||void 0===t||n(t),r||"Unexpected node.",(()=>`Node ${y(null==t?void 0:t.kind)} did not pass test '${f(n)}'.`),i||e)},e.assertOptionalToken=function e(t,n,r,i){c(1,"assertOptionalToken")&&_(void 0===n||void 0===t||t.kind===n,r||"Unexpected node.",(()=>`Node ${y(null==t?void 0:t.kind)} was not a '${y(n)}' token.`),i||e)},e.assertMissingNode=function e(t,n,r){c(1,"assertMissingNode")&&_(void 0===t,n||"Unexpected node.",(()=>`Node ${y(t.kind)} was unexpected'.`),r||e)},e.type=function(e){},e.getFunctionName=f,e.formatSymbol=function(e){return`{ name: ${fc(e.escapedName)}; flags: ${T(e.flags)}; declarations: ${E(e.declarations,(e=>y(e.kind)))} }`},e.formatEnum=m;const g=new Map;function y(e){return m(e,fr,!1)}function b(e){return m(e,mr,!0)}function x(e){return m(e,gr,!0)}function k(e){return m(e,Ti,!0)}function S(e){return m(e,wi,!0)}function T(e){return m(e,qr,!0)}function C(e){return m(e,$r,!0)}function w(e){return m(e,ei,!0)}function N(e){return m(e,Hr,!0)}function D(e){return m(e,Sr,!0)}e.formatSyntaxKind=y,e.formatSnippetKind=function(e){return m(e,Ci,!1)},e.formatScriptKind=function(e){return m(e,yi,!1)},e.formatNodeFlags=b,e.formatNodeCheckFlags=function(e){return m(e,Wr,!0)},e.formatModifierFlags=x,e.formatTransformFlags=k,e.formatEmitFlags=S,e.formatSymbolFlags=T,e.formatTypeFlags=C,e.formatSignatureFlags=w,e.formatObjectFlags=N,e.formatFlowFlags=D,e.formatRelationComparisonResult=function(e){return m(e,yr,!0)},e.formatCheckMode=function(e){return m(e,EB,!0)},e.formatSignatureCheckMode=function(e){return m(e,PB,!0)},e.formatTypeFacts=function(e){return m(e,DB,!0)};let F,P,A=!1;function I(e){"__debugFlowFlags"in e||Object.defineProperties(e,{__tsDebuggerDisplay:{value(){const e=2&this.flags?"FlowStart":4&this.flags?"FlowBranchLabel":8&this.flags?"FlowLoopLabel":16&this.flags?"FlowAssignment":32&this.flags?"FlowTrueCondition":64&this.flags?"FlowFalseCondition":128&this.flags?"FlowSwitchClause":256&this.flags?"FlowArrayMutation":512&this.flags?"FlowCall":1024&this.flags?"FlowReduceLabel":1&this.flags?"FlowUnreachable":"UnknownFlow",t=-2048&this.flags;return`${e}${t?` (${D(t)})`:""}`}},__debugFlowFlags:{get(){return m(this.flags,Sr,!0)}},__debugToString:{value(){return j(this)}}})}function O(e){"__tsDebuggerDisplay"in e||Object.defineProperties(e,{__tsDebuggerDisplay:{value:e=>`NodeArray ${e=String(e).replace(/(?:,[\s\w]+:[^,]+)+\]$/,"]")}`}})}e.attachFlowNodeDebugInfo=function(e){return A&&("function"==typeof Object.setPrototypeOf?(F||(F=Object.create(Object.prototype),I(F)),Object.setPrototypeOf(e,F)):I(e)),e},e.attachNodeArrayDebugInfo=function(e){A&&("function"==typeof Object.setPrototypeOf?(P||(P=Object.create(Array.prototype),O(P)),Object.setPrototypeOf(e,P)):O(e))},e.enableDebugInfo=function(){if(A)return;const e=new WeakMap,t=new WeakMap;Object.defineProperties(jx.getSymbolConstructor().prototype,{__tsDebuggerDisplay:{value(){const e=33554432&this.flags?"TransientSymbol":"Symbol",t=-33554433&this.flags;return`${e} '${hc(this)}'${t?` (${T(t)})`:""}`}},__debugFlags:{get(){return T(this.flags)}}}),Object.defineProperties(jx.getTypeConstructor().prototype,{__tsDebuggerDisplay:{value(){const e=67359327&this.flags?`IntrinsicType ${this.intrinsicName}${this.debugIntrinsicName?` (${this.debugIntrinsicName})`:""}`:98304&this.flags?"NullableType":384&this.flags?`LiteralType ${JSON.stringify(this.value)}`:2048&this.flags?`LiteralType ${this.value.negative?"-":""}${this.value.base10Value}n`:8192&this.flags?"UniqueESSymbolType":32&this.flags?"EnumType":1048576&this.flags?"UnionType":2097152&this.flags?"IntersectionType":4194304&this.flags?"IndexType":8388608&this.flags?"IndexedAccessType":16777216&this.flags?"ConditionalType":33554432&this.flags?"SubstitutionType":262144&this.flags?"TypeParameter":524288&this.flags?3&this.objectFlags?"InterfaceType":4&this.objectFlags?"TypeReference":8&this.objectFlags?"TupleType":16&this.objectFlags?"AnonymousType":32&this.objectFlags?"MappedType":1024&this.objectFlags?"ReverseMappedType":256&this.objectFlags?"EvolvingArrayType":"ObjectType":"Type",t=524288&this.flags?-1344&this.objectFlags:0;return`${e}${this.symbol?` '${hc(this.symbol)}'`:""}${t?` (${N(t)})`:""}`}},__debugFlags:{get(){return C(this.flags)}},__debugObjectFlags:{get(){return 524288&this.flags?N(this.objectFlags):""}},__debugTypeToString:{value(){let t=e.get(this);return void 0===t&&(t=this.checker.typeToString(this),e.set(this,t)),t}}}),Object.defineProperties(jx.getSignatureConstructor().prototype,{__debugFlags:{get(){return w(this.flags)}},__debugSignatureToString:{value(){var e;return null==(e=this.checker)?void 0:e.signatureToString(this)}}});const n=[jx.getNodeConstructor(),jx.getIdentifierConstructor(),jx.getTokenConstructor(),jx.getSourceFileConstructor()];for(const e of n)De(e.prototype,"__debugKind")||Object.defineProperties(e.prototype,{__tsDebuggerDisplay:{value(){return`${Vl(this)?"GeneratedIdentifier":zN(this)?`Identifier '${mc(this)}'`:qN(this)?`PrivateIdentifier '${mc(this)}'`:TN(this)?`StringLiteral ${JSON.stringify(this.text.length<10?this.text:this.text.slice(10)+"...")}`:kN(this)?`NumericLiteral ${this.text}`:SN(this)?`BigIntLiteral ${this.text}n`:iD(this)?"TypeParameterDeclaration":oD(this)?"ParameterDeclaration":dD(this)?"ConstructorDeclaration":pD(this)?"GetAccessorDeclaration":fD(this)?"SetAccessorDeclaration":mD(this)?"CallSignatureDeclaration":gD(this)?"ConstructSignatureDeclaration":hD(this)?"IndexSignatureDeclaration":yD(this)?"TypePredicateNode":vD(this)?"TypeReferenceNode":bD(this)?"FunctionTypeNode":xD(this)?"ConstructorTypeNode":kD(this)?"TypeQueryNode":SD(this)?"TypeLiteralNode":TD(this)?"ArrayTypeNode":CD(this)?"TupleTypeNode":ND(this)?"OptionalTypeNode":DD(this)?"RestTypeNode":FD(this)?"UnionTypeNode":ED(this)?"IntersectionTypeNode":PD(this)?"ConditionalTypeNode":AD(this)?"InferTypeNode":ID(this)?"ParenthesizedTypeNode":OD(this)?"ThisTypeNode":LD(this)?"TypeOperatorNode":jD(this)?"IndexedAccessTypeNode":RD(this)?"MappedTypeNode":MD(this)?"LiteralTypeNode":wD(this)?"NamedTupleMember":BD(this)?"ImportTypeNode":y(this.kind)}${this.flags?` (${b(this.flags)})`:""}`}},__debugKind:{get(){return y(this.kind)}},__debugNodeFlags:{get(){return b(this.flags)}},__debugModifierFlags:{get(){return x(Uv(this))}},__debugTransformFlags:{get(){return k(this.transformFlags)}},__debugIsParseTreeNode:{get(){return uc(this)}},__debugEmitFlags:{get(){return S(Qd(this))}},__debugGetText:{value(e){if(Zh(this))return"";let n=t.get(this);if(void 0===n){const r=dc(this),i=r&&hd(r);n=i?qd(i,r,e):"",t.set(this,n)}return n}}});A=!0},e.formatVariance=function(e){const t=7&e;let n=0===t?"in out":3===t?"[bivariant]":2===t?"in":1===t?"out":4===t?"[independent]":"";return 8&e?n+=" (unmeasurable)":16&e&&(n+=" (unreliable)"),n};class L{__debugToString(){var e;switch(this.kind){case 3:return(null==(e=this.debugInfo)?void 0:e.call(this))||"(function mapper)";case 0:return`${this.source.__debugTypeToString()} -> ${this.target.__debugTypeToString()}`;case 1:return h(this.sources,this.targets||E(this.sources,(()=>"any")),((e,t)=>`${e.__debugTypeToString()} -> ${"string"==typeof t?t:t.__debugTypeToString()}`)).join(", ");case 2:return h(this.sources,this.targets,((e,t)=>`${e.__debugTypeToString()} -> ${t().__debugTypeToString()}`)).join(", ");case 5:case 4:return`m1: ${this.mapper1.__debugToString().split("\n").join("\n ")}\nm2: ${this.mapper2.__debugToString().split("\n").join("\n ")}`;default:return p(this)}}}function j(e){let t,n=-1;function r(e){return e.id||(e.id=n,n--),e.id}var i;let o;var a;(i=t||(t={})).lr="─",i.ud="│",i.dr="╭",i.dl="╮",i.ul="╯",i.ur="╰",i.udr="├",i.udl="┤",i.dlr="┬",i.ulr="┴",i.udlr="╫",(a=o||(o={}))[a.None=0]="None",a[a.Up=1]="Up",a[a.Down=2]="Down",a[a.Left=4]="Left",a[a.Right=8]="Right",a[a.UpDown=3]="UpDown",a[a.LeftRight=12]="LeftRight",a[a.UpLeft=5]="UpLeft",a[a.UpRight=9]="UpRight",a[a.DownLeft=6]="DownLeft",a[a.DownRight=10]="DownRight",a[a.UpDownLeft=7]="UpDownLeft",a[a.UpDownRight=11]="UpDownRight",a[a.UpLeftRight=13]="UpLeftRight",a[a.DownLeftRight=14]="DownLeftRight",a[a.UpDownLeftRight=15]="UpDownLeftRight",a[a.NoChildren=16]="NoChildren";const s=Object.create(null),c=[],l=[],_=f(e,new Set);for(const e of c)e.text=y(e.flowNode,e.circular),g(e);const u=function(e){const t=b(Array(e),0);for(const e of c)t[e.level]=Math.max(t[e.level],e.text.length);return t}(function e(t){let n=0;for(const r of d(t))n=Math.max(n,e(r));return n+1}(_));return function e(t,n){if(-1===t.lane){t.lane=n,t.endLane=n;const r=d(t);for(let i=0;i0&&n++;const o=r[i];e(o,n),o.endLane>t.endLane&&(n=o.endLane)}t.endLane=n}}(_,0),function(){const e=u.length,t=xt(c,0,(e=>e.lane))+1,n=b(Array(t),""),r=u.map((()=>Array(t))),i=u.map((()=>b(Array(t),0)));for(const e of c){r[e.level][e.lane]=e;const t=d(e);for(let n=0;n0&&(o|=1),n0&&(o|=1),t0?i[n-1][e]:0,r=e>0?i[n][e-1]:0;let o=i[n][e];o||(8&t&&(o|=12),2&r&&(o|=3),i[n][e]=o)}for(let t=0;t0?e.repeat(t):"";let n="";for(;n.length=0,"Invalid argument: major"),un.assert(t>=0,"Invalid argument: minor"),un.assert(n>=0,"Invalid argument: patch");const o=r?Qe(r)?r:r.split("."):l,a=i?Qe(i)?i:i.split("."):l;un.assert(v(o,(e=>mn.test(e))),"Invalid argument: prerelease"),un.assert(v(a,(e=>hn.test(e))),"Invalid argument: build"),this.major=e,this.minor=t,this.patch=n,this.prerelease=o,this.build=a}static tryParse(t){const n=xn(t);if(!n)return;const{major:r,minor:i,patch:o,prerelease:a,build:s}=n;return new e(r,i,o,a,s)}compareTo(e){return this===e?0:void 0===e?1:vt(this.major,e.major)||vt(this.minor,e.minor)||vt(this.patch,e.patch)||function(e,t){if(e===t)return 0;if(0===e.length)return 0===t.length?0:1;if(0===t.length)return-1;const n=Math.min(e.length,t.length);for(let r=0;r=]|<=|>=)?\s*([a-z0-9-+.*]+)$/i;function Dn(e){const t=[];for(let n of e.trim().split(Sn)){if(!n)continue;const e=[];n=n.trim();const r=wn.exec(n);if(r){if(!En(r[1],r[2],e))return}else for(const t of n.split(Tn)){const n=Nn.exec(t.trim());if(!n||!Pn(n[1],n[2],e))return}t.push(e)}return t}function Fn(e){const t=Cn.exec(e);if(!t)return;const[,n,r="*",i="*",o,a]=t;return{version:new bn(An(n)?0:parseInt(n,10),An(n)||An(r)?0:parseInt(r,10),An(n)||An(r)||An(i)?0:parseInt(i,10),o,a),major:n,minor:r,patch:i}}function En(e,t,n){const r=Fn(e);if(!r)return!1;const i=Fn(t);return!!i&&(An(r.major)||n.push(In(">=",r.version)),An(i.major)||n.push(An(i.minor)?In("<",i.version.increment("major")):An(i.patch)?In("<",i.version.increment("minor")):In("<=",i.version)),!0)}function Pn(e,t,n){const r=Fn(t);if(!r)return!1;const{version:i,major:o,minor:a,patch:s}=r;if(An(o))"<"!==e&&">"!==e||n.push(In("<",bn.zero));else switch(e){case"~":n.push(In(">=",i)),n.push(In("<",i.increment(An(a)?"major":"minor")));break;case"^":n.push(In(">=",i)),n.push(In("<",i.increment(i.major>0||An(a)?"major":i.minor>0||An(s)?"minor":"patch")));break;case"<":case">=":n.push(An(a)||An(s)?In(e,i.with({prerelease:"0"})):In(e,i));break;case"<=":case">":n.push(An(a)?In("<="===e?"<":">=",i.increment("major").with({prerelease:"0"})):An(s)?In("<="===e?"<":">=",i.increment("minor").with({prerelease:"0"})):In(e,i));break;case"=":case void 0:An(a)||An(s)?(n.push(In(">=",i.with({prerelease:"0"}))),n.push(In("<",i.increment(An(a)?"major":"minor").with({prerelease:"0"})))):n.push(In("=",i));break;default:return!1}return!0}function An(e){return"*"===e||"x"===e||"X"===e}function In(e,t){return{operator:e,operand:t}}function On(e,t){for(const n of t)if(!Ln(e,n.operator,n.operand))return!1;return!0}function Ln(e,t,n){const r=e.compareTo(n);switch(t){case"<":return r<0;case"<=":return r<=0;case">":return r>0;case">=":return r>=0;case"=":return 0===r;default:return un.assertNever(t)}}function jn(e){return E(e,Rn).join(" ")}function Rn(e){return`${e.operator}${e.operand}`}var Mn=function(){const e=function(){if(_n())try{const{performance:e}=n(31);if(e)return{shouldWriteNativeEvents:!1,performance:e}}catch{}if("object"==typeof performance)return{shouldWriteNativeEvents:!0,performance}}();if(!e)return;const{shouldWriteNativeEvents:t,performance:r}=e,i={shouldWriteNativeEvents:t,performance:void 0,performanceTime:void 0};return"number"==typeof r.timeOrigin&&"function"==typeof r.now&&(i.performanceTime=r),i.performanceTime&&"function"==typeof r.mark&&"function"==typeof r.measure&&"function"==typeof r.clearMarks&&"function"==typeof r.clearMeasures&&(i.performance=r),i}(),Bn=null==Mn?void 0:Mn.performanceTime;function Jn(){return Mn}var zn,qn,Un=Bn?()=>Bn.now():Date.now,Vn={};function Wn(e,t,n,r){return e?$n(t,n,r):Gn}function $n(e,t,n){let r=0;return{enter:function(){1==++r&&tr(t)},exit:function(){0==--r?(tr(n),nr(e,t,n)):r<0&&un.fail("enter/exit count does not match.")}}}i(Vn,{clearMarks:()=>cr,clearMeasures:()=>sr,createTimer:()=>$n,createTimerIf:()=>Wn,disable:()=>ur,enable:()=>_r,forEachMark:()=>ar,forEachMeasure:()=>or,getCount:()=>rr,getDuration:()=>ir,isEnabled:()=>lr,mark:()=>tr,measure:()=>nr,nullTimer:()=>Gn});var Hn,Kn,Gn={enter:rt,exit:rt},Xn=!1,Qn=Un(),Yn=new Map,Zn=new Map,er=new Map;function tr(e){if(Xn){const t=Zn.get(e)??0;Zn.set(e,t+1),Yn.set(e,Un()),null==qn||qn.mark(e),"function"==typeof onProfilerEvent&&onProfilerEvent(e)}}function nr(e,t,n){if(Xn){const r=(void 0!==n?Yn.get(n):void 0)??Un(),i=(void 0!==t?Yn.get(t):void 0)??Qn,o=er.get(e)||0;er.set(e,o+(r-i)),null==qn||qn.measure(e,t,n)}}function rr(e){return Zn.get(e)||0}function ir(e){return er.get(e)||0}function or(e){er.forEach(((t,n)=>e(n,t)))}function ar(e){Yn.forEach(((t,n)=>e(n)))}function sr(e){void 0!==e?er.delete(e):er.clear(),null==qn||qn.clearMeasures(e)}function cr(e){void 0!==e?(Zn.delete(e),Yn.delete(e)):(Zn.clear(),Yn.clear()),null==qn||qn.clearMarks(e)}function lr(){return Xn}function _r(e=so){var t;return Xn||(Xn=!0,zn||(zn=Jn()),(null==zn?void 0:zn.performance)&&(Qn=zn.performance.timeOrigin,(zn.shouldWriteNativeEvents||(null==(t=null==e?void 0:e.cpuProfilingEnabled)?void 0:t.call(e))||(null==e?void 0:e.debugMode))&&(qn=zn.performance))),!0}function ur(){Xn&&(Yn.clear(),Zn.clear(),er.clear(),qn=void 0,Xn=!1)}(e=>{let t,r,i=0,o=0;const a=[];let s;const c=[];let l;var _;e.startTracing=function(l,_,u){if(un.assert(!Hn,"Tracing already started"),void 0===t)try{t=n(714)}catch(e){throw new Error(`tracing requires having fs\n(original error: ${e.message||e})`)}r=l,a.length=0,void 0===s&&(s=jo(_,"legend.json")),t.existsSync(_)||t.mkdirSync(_,{recursive:!0});const d="build"===r?`.${process.pid}-${++i}`:"server"===r?`.${process.pid}`:"",p=jo(_,`trace${d}.json`),f=jo(_,`types${d}.json`);c.push({configFilePath:u,tracePath:p,typesPath:f}),o=t.openSync(p,"w"),Hn=e;const m={cat:"__metadata",ph:"M",ts:1e3*Un(),pid:1,tid:1};t.writeSync(o,"[\n"+[{name:"process_name",args:{name:"tsc"},...m},{name:"thread_name",args:{name:"Main"},...m},{name:"TracingStartedInBrowser",...m,cat:"disabled-by-default-devtools.timeline"}].map((e=>JSON.stringify(e))).join(",\n"))},e.stopTracing=function(){un.assert(Hn,"Tracing is not in progress"),un.assert(!!a.length==("server"!==r)),t.writeSync(o,"\n]\n"),t.closeSync(o),Hn=void 0,a.length?function(e){var n,r,i,o,a,s,l,_,u,d,p,f,g,h,y,v,b,x,k;tr("beginDumpTypes");const S=c[c.length-1].typesPath,T=t.openSync(S,"w"),C=new Map;t.writeSync(T,"[");const w=e.length;for(let c=0;ce.id)),referenceLocation:m(e.node)}}let A={};if(16777216&S.flags){const e=S;A={conditionalCheckType:null==(s=e.checkType)?void 0:s.id,conditionalExtendsType:null==(l=e.extendsType)?void 0:l.id,conditionalTrueType:(null==(_=e.resolvedTrueType)?void 0:_.id)??-1,conditionalFalseType:(null==(u=e.resolvedFalseType)?void 0:u.id)??-1}}let I={};if(33554432&S.flags){const e=S;I={substitutionBaseType:null==(d=e.baseType)?void 0:d.id,constraintType:null==(p=e.constraint)?void 0:p.id}}let O={};if(1024&N){const e=S;O={reverseMappedSourceType:null==(f=e.source)?void 0:f.id,reverseMappedMappedType:null==(g=e.mappedType)?void 0:g.id,reverseMappedConstraintType:null==(h=e.constraintType)?void 0:h.id}}let L,j={};if(256&N){const e=S;j={evolvingArrayElementType:e.elementType.id,evolvingArrayFinalType:null==(y=e.finalArrayType)?void 0:y.id}}const R=S.checker.getRecursionIdentity(S);R&&(L=C.get(R),L||(L=C.size,C.set(R,L)));const M={id:S.id,intrinsicName:S.intrinsicName,symbolName:(null==D?void 0:D.escapedName)&&fc(D.escapedName),recursionId:L,isTuple:!!(8&N)||void 0,unionTypes:1048576&S.flags?null==(v=S.types)?void 0:v.map((e=>e.id)):void 0,intersectionTypes:2097152&S.flags?S.types.map((e=>e.id)):void 0,aliasTypeArguments:null==(b=S.aliasTypeArguments)?void 0:b.map((e=>e.id)),keyofType:4194304&S.flags?null==(x=S.type)?void 0:x.id:void 0,...E,...P,...A,...I,...O,...j,destructuringPattern:m(S.pattern),firstDeclaration:m(null==(k=null==D?void 0:D.declarations)?void 0:k[0]),flags:un.formatTypeFlags(S.flags).split("|"),display:F};t.writeSync(T,JSON.stringify(M)),c0),p(u.length-1,1e3*Un(),e),u.length--},e.popAll=function(){const e=1e3*Un();for(let t=u.length-1;t>=0;t--)p(t,e);u.length=0};const d=1e4;function p(e,t,n){const{phase:r,name:i,args:o,time:a,separateBeginAndEnd:s}=u[e];s?(un.assert(!n,"`results` are not supported for events with `separateBeginAndEnd`"),f("E",r,i,o,void 0,t)):d-a%d<=t-a&&f("X",r,i,{...o,results:n},'"dur":'+(t-a),a)}function f(e,n,i,a,s,c=1e3*Un()){"server"===r&&"checkTypes"===n||(tr("beginTracing"),t.writeSync(o,`,\n{"pid":1,"tid":1,"ph":"${e}","cat":"${n}","ts":${c},"name":"${i}"`),s&&t.writeSync(o,`,${s}`),a&&t.writeSync(o,`,"args":${JSON.stringify(a)}`),t.writeSync(o,"}"),tr("endTracing"),nr("Tracing","beginTracing","endTracing"))}function m(e){const t=hd(e);return t?{path:t.path,start:n(Ja(t,e.pos)),end:n(Ja(t,e.end))}:void 0;function n(e){return{line:e.line+1,character:e.character+1}}}e.dumpLegend=function(){s&&t.writeFileSync(s,JSON.stringify(c))}})(Kn||(Kn={}));var dr=Kn.startTracing,pr=Kn.dumpLegend,fr=(e=>(e[e.Unknown=0]="Unknown",e[e.EndOfFileToken=1]="EndOfFileToken",e[e.SingleLineCommentTrivia=2]="SingleLineCommentTrivia",e[e.MultiLineCommentTrivia=3]="MultiLineCommentTrivia",e[e.NewLineTrivia=4]="NewLineTrivia",e[e.WhitespaceTrivia=5]="WhitespaceTrivia",e[e.ShebangTrivia=6]="ShebangTrivia",e[e.ConflictMarkerTrivia=7]="ConflictMarkerTrivia",e[e.NonTextFileMarkerTrivia=8]="NonTextFileMarkerTrivia",e[e.NumericLiteral=9]="NumericLiteral",e[e.BigIntLiteral=10]="BigIntLiteral",e[e.StringLiteral=11]="StringLiteral",e[e.JsxText=12]="JsxText",e[e.JsxTextAllWhiteSpaces=13]="JsxTextAllWhiteSpaces",e[e.RegularExpressionLiteral=14]="RegularExpressionLiteral",e[e.NoSubstitutionTemplateLiteral=15]="NoSubstitutionTemplateLiteral",e[e.TemplateHead=16]="TemplateHead",e[e.TemplateMiddle=17]="TemplateMiddle",e[e.TemplateTail=18]="TemplateTail",e[e.OpenBraceToken=19]="OpenBraceToken",e[e.CloseBraceToken=20]="CloseBraceToken",e[e.OpenParenToken=21]="OpenParenToken",e[e.CloseParenToken=22]="CloseParenToken",e[e.OpenBracketToken=23]="OpenBracketToken",e[e.CloseBracketToken=24]="CloseBracketToken",e[e.DotToken=25]="DotToken",e[e.DotDotDotToken=26]="DotDotDotToken",e[e.SemicolonToken=27]="SemicolonToken",e[e.CommaToken=28]="CommaToken",e[e.QuestionDotToken=29]="QuestionDotToken",e[e.LessThanToken=30]="LessThanToken",e[e.LessThanSlashToken=31]="LessThanSlashToken",e[e.GreaterThanToken=32]="GreaterThanToken",e[e.LessThanEqualsToken=33]="LessThanEqualsToken",e[e.GreaterThanEqualsToken=34]="GreaterThanEqualsToken",e[e.EqualsEqualsToken=35]="EqualsEqualsToken",e[e.ExclamationEqualsToken=36]="ExclamationEqualsToken",e[e.EqualsEqualsEqualsToken=37]="EqualsEqualsEqualsToken",e[e.ExclamationEqualsEqualsToken=38]="ExclamationEqualsEqualsToken",e[e.EqualsGreaterThanToken=39]="EqualsGreaterThanToken",e[e.PlusToken=40]="PlusToken",e[e.MinusToken=41]="MinusToken",e[e.AsteriskToken=42]="AsteriskToken",e[e.AsteriskAsteriskToken=43]="AsteriskAsteriskToken",e[e.SlashToken=44]="SlashToken",e[e.PercentToken=45]="PercentToken",e[e.PlusPlusToken=46]="PlusPlusToken",e[e.MinusMinusToken=47]="MinusMinusToken",e[e.LessThanLessThanToken=48]="LessThanLessThanToken",e[e.GreaterThanGreaterThanToken=49]="GreaterThanGreaterThanToken",e[e.GreaterThanGreaterThanGreaterThanToken=50]="GreaterThanGreaterThanGreaterThanToken",e[e.AmpersandToken=51]="AmpersandToken",e[e.BarToken=52]="BarToken",e[e.CaretToken=53]="CaretToken",e[e.ExclamationToken=54]="ExclamationToken",e[e.TildeToken=55]="TildeToken",e[e.AmpersandAmpersandToken=56]="AmpersandAmpersandToken",e[e.BarBarToken=57]="BarBarToken",e[e.QuestionToken=58]="QuestionToken",e[e.ColonToken=59]="ColonToken",e[e.AtToken=60]="AtToken",e[e.QuestionQuestionToken=61]="QuestionQuestionToken",e[e.BacktickToken=62]="BacktickToken",e[e.HashToken=63]="HashToken",e[e.EqualsToken=64]="EqualsToken",e[e.PlusEqualsToken=65]="PlusEqualsToken",e[e.MinusEqualsToken=66]="MinusEqualsToken",e[e.AsteriskEqualsToken=67]="AsteriskEqualsToken",e[e.AsteriskAsteriskEqualsToken=68]="AsteriskAsteriskEqualsToken",e[e.SlashEqualsToken=69]="SlashEqualsToken",e[e.PercentEqualsToken=70]="PercentEqualsToken",e[e.LessThanLessThanEqualsToken=71]="LessThanLessThanEqualsToken",e[e.GreaterThanGreaterThanEqualsToken=72]="GreaterThanGreaterThanEqualsToken",e[e.GreaterThanGreaterThanGreaterThanEqualsToken=73]="GreaterThanGreaterThanGreaterThanEqualsToken",e[e.AmpersandEqualsToken=74]="AmpersandEqualsToken",e[e.BarEqualsToken=75]="BarEqualsToken",e[e.BarBarEqualsToken=76]="BarBarEqualsToken",e[e.AmpersandAmpersandEqualsToken=77]="AmpersandAmpersandEqualsToken",e[e.QuestionQuestionEqualsToken=78]="QuestionQuestionEqualsToken",e[e.CaretEqualsToken=79]="CaretEqualsToken",e[e.Identifier=80]="Identifier",e[e.PrivateIdentifier=81]="PrivateIdentifier",e[e.JSDocCommentTextToken=82]="JSDocCommentTextToken",e[e.BreakKeyword=83]="BreakKeyword",e[e.CaseKeyword=84]="CaseKeyword",e[e.CatchKeyword=85]="CatchKeyword",e[e.ClassKeyword=86]="ClassKeyword",e[e.ConstKeyword=87]="ConstKeyword",e[e.ContinueKeyword=88]="ContinueKeyword",e[e.DebuggerKeyword=89]="DebuggerKeyword",e[e.DefaultKeyword=90]="DefaultKeyword",e[e.DeleteKeyword=91]="DeleteKeyword",e[e.DoKeyword=92]="DoKeyword",e[e.ElseKeyword=93]="ElseKeyword",e[e.EnumKeyword=94]="EnumKeyword",e[e.ExportKeyword=95]="ExportKeyword",e[e.ExtendsKeyword=96]="ExtendsKeyword",e[e.FalseKeyword=97]="FalseKeyword",e[e.FinallyKeyword=98]="FinallyKeyword",e[e.ForKeyword=99]="ForKeyword",e[e.FunctionKeyword=100]="FunctionKeyword",e[e.IfKeyword=101]="IfKeyword",e[e.ImportKeyword=102]="ImportKeyword",e[e.InKeyword=103]="InKeyword",e[e.InstanceOfKeyword=104]="InstanceOfKeyword",e[e.NewKeyword=105]="NewKeyword",e[e.NullKeyword=106]="NullKeyword",e[e.ReturnKeyword=107]="ReturnKeyword",e[e.SuperKeyword=108]="SuperKeyword",e[e.SwitchKeyword=109]="SwitchKeyword",e[e.ThisKeyword=110]="ThisKeyword",e[e.ThrowKeyword=111]="ThrowKeyword",e[e.TrueKeyword=112]="TrueKeyword",e[e.TryKeyword=113]="TryKeyword",e[e.TypeOfKeyword=114]="TypeOfKeyword",e[e.VarKeyword=115]="VarKeyword",e[e.VoidKeyword=116]="VoidKeyword",e[e.WhileKeyword=117]="WhileKeyword",e[e.WithKeyword=118]="WithKeyword",e[e.ImplementsKeyword=119]="ImplementsKeyword",e[e.InterfaceKeyword=120]="InterfaceKeyword",e[e.LetKeyword=121]="LetKeyword",e[e.PackageKeyword=122]="PackageKeyword",e[e.PrivateKeyword=123]="PrivateKeyword",e[e.ProtectedKeyword=124]="ProtectedKeyword",e[e.PublicKeyword=125]="PublicKeyword",e[e.StaticKeyword=126]="StaticKeyword",e[e.YieldKeyword=127]="YieldKeyword",e[e.AbstractKeyword=128]="AbstractKeyword",e[e.AccessorKeyword=129]="AccessorKeyword",e[e.AsKeyword=130]="AsKeyword",e[e.AssertsKeyword=131]="AssertsKeyword",e[e.AssertKeyword=132]="AssertKeyword",e[e.AnyKeyword=133]="AnyKeyword",e[e.AsyncKeyword=134]="AsyncKeyword",e[e.AwaitKeyword=135]="AwaitKeyword",e[e.BooleanKeyword=136]="BooleanKeyword",e[e.ConstructorKeyword=137]="ConstructorKeyword",e[e.DeclareKeyword=138]="DeclareKeyword",e[e.GetKeyword=139]="GetKeyword",e[e.InferKeyword=140]="InferKeyword",e[e.IntrinsicKeyword=141]="IntrinsicKeyword",e[e.IsKeyword=142]="IsKeyword",e[e.KeyOfKeyword=143]="KeyOfKeyword",e[e.ModuleKeyword=144]="ModuleKeyword",e[e.NamespaceKeyword=145]="NamespaceKeyword",e[e.NeverKeyword=146]="NeverKeyword",e[e.OutKeyword=147]="OutKeyword",e[e.ReadonlyKeyword=148]="ReadonlyKeyword",e[e.RequireKeyword=149]="RequireKeyword",e[e.NumberKeyword=150]="NumberKeyword",e[e.ObjectKeyword=151]="ObjectKeyword",e[e.SatisfiesKeyword=152]="SatisfiesKeyword",e[e.SetKeyword=153]="SetKeyword",e[e.StringKeyword=154]="StringKeyword",e[e.SymbolKeyword=155]="SymbolKeyword",e[e.TypeKeyword=156]="TypeKeyword",e[e.UndefinedKeyword=157]="UndefinedKeyword",e[e.UniqueKeyword=158]="UniqueKeyword",e[e.UnknownKeyword=159]="UnknownKeyword",e[e.UsingKeyword=160]="UsingKeyword",e[e.FromKeyword=161]="FromKeyword",e[e.GlobalKeyword=162]="GlobalKeyword",e[e.BigIntKeyword=163]="BigIntKeyword",e[e.OverrideKeyword=164]="OverrideKeyword",e[e.OfKeyword=165]="OfKeyword",e[e.QualifiedName=166]="QualifiedName",e[e.ComputedPropertyName=167]="ComputedPropertyName",e[e.TypeParameter=168]="TypeParameter",e[e.Parameter=169]="Parameter",e[e.Decorator=170]="Decorator",e[e.PropertySignature=171]="PropertySignature",e[e.PropertyDeclaration=172]="PropertyDeclaration",e[e.MethodSignature=173]="MethodSignature",e[e.MethodDeclaration=174]="MethodDeclaration",e[e.ClassStaticBlockDeclaration=175]="ClassStaticBlockDeclaration",e[e.Constructor=176]="Constructor",e[e.GetAccessor=177]="GetAccessor",e[e.SetAccessor=178]="SetAccessor",e[e.CallSignature=179]="CallSignature",e[e.ConstructSignature=180]="ConstructSignature",e[e.IndexSignature=181]="IndexSignature",e[e.TypePredicate=182]="TypePredicate",e[e.TypeReference=183]="TypeReference",e[e.FunctionType=184]="FunctionType",e[e.ConstructorType=185]="ConstructorType",e[e.TypeQuery=186]="TypeQuery",e[e.TypeLiteral=187]="TypeLiteral",e[e.ArrayType=188]="ArrayType",e[e.TupleType=189]="TupleType",e[e.OptionalType=190]="OptionalType",e[e.RestType=191]="RestType",e[e.UnionType=192]="UnionType",e[e.IntersectionType=193]="IntersectionType",e[e.ConditionalType=194]="ConditionalType",e[e.InferType=195]="InferType",e[e.ParenthesizedType=196]="ParenthesizedType",e[e.ThisType=197]="ThisType",e[e.TypeOperator=198]="TypeOperator",e[e.IndexedAccessType=199]="IndexedAccessType",e[e.MappedType=200]="MappedType",e[e.LiteralType=201]="LiteralType",e[e.NamedTupleMember=202]="NamedTupleMember",e[e.TemplateLiteralType=203]="TemplateLiteralType",e[e.TemplateLiteralTypeSpan=204]="TemplateLiteralTypeSpan",e[e.ImportType=205]="ImportType",e[e.ObjectBindingPattern=206]="ObjectBindingPattern",e[e.ArrayBindingPattern=207]="ArrayBindingPattern",e[e.BindingElement=208]="BindingElement",e[e.ArrayLiteralExpression=209]="ArrayLiteralExpression",e[e.ObjectLiteralExpression=210]="ObjectLiteralExpression",e[e.PropertyAccessExpression=211]="PropertyAccessExpression",e[e.ElementAccessExpression=212]="ElementAccessExpression",e[e.CallExpression=213]="CallExpression",e[e.NewExpression=214]="NewExpression",e[e.TaggedTemplateExpression=215]="TaggedTemplateExpression",e[e.TypeAssertionExpression=216]="TypeAssertionExpression",e[e.ParenthesizedExpression=217]="ParenthesizedExpression",e[e.FunctionExpression=218]="FunctionExpression",e[e.ArrowFunction=219]="ArrowFunction",e[e.DeleteExpression=220]="DeleteExpression",e[e.TypeOfExpression=221]="TypeOfExpression",e[e.VoidExpression=222]="VoidExpression",e[e.AwaitExpression=223]="AwaitExpression",e[e.PrefixUnaryExpression=224]="PrefixUnaryExpression",e[e.PostfixUnaryExpression=225]="PostfixUnaryExpression",e[e.BinaryExpression=226]="BinaryExpression",e[e.ConditionalExpression=227]="ConditionalExpression",e[e.TemplateExpression=228]="TemplateExpression",e[e.YieldExpression=229]="YieldExpression",e[e.SpreadElement=230]="SpreadElement",e[e.ClassExpression=231]="ClassExpression",e[e.OmittedExpression=232]="OmittedExpression",e[e.ExpressionWithTypeArguments=233]="ExpressionWithTypeArguments",e[e.AsExpression=234]="AsExpression",e[e.NonNullExpression=235]="NonNullExpression",e[e.MetaProperty=236]="MetaProperty",e[e.SyntheticExpression=237]="SyntheticExpression",e[e.SatisfiesExpression=238]="SatisfiesExpression",e[e.TemplateSpan=239]="TemplateSpan",e[e.SemicolonClassElement=240]="SemicolonClassElement",e[e.Block=241]="Block",e[e.EmptyStatement=242]="EmptyStatement",e[e.VariableStatement=243]="VariableStatement",e[e.ExpressionStatement=244]="ExpressionStatement",e[e.IfStatement=245]="IfStatement",e[e.DoStatement=246]="DoStatement",e[e.WhileStatement=247]="WhileStatement",e[e.ForStatement=248]="ForStatement",e[e.ForInStatement=249]="ForInStatement",e[e.ForOfStatement=250]="ForOfStatement",e[e.ContinueStatement=251]="ContinueStatement",e[e.BreakStatement=252]="BreakStatement",e[e.ReturnStatement=253]="ReturnStatement",e[e.WithStatement=254]="WithStatement",e[e.SwitchStatement=255]="SwitchStatement",e[e.LabeledStatement=256]="LabeledStatement",e[e.ThrowStatement=257]="ThrowStatement",e[e.TryStatement=258]="TryStatement",e[e.DebuggerStatement=259]="DebuggerStatement",e[e.VariableDeclaration=260]="VariableDeclaration",e[e.VariableDeclarationList=261]="VariableDeclarationList",e[e.FunctionDeclaration=262]="FunctionDeclaration",e[e.ClassDeclaration=263]="ClassDeclaration",e[e.InterfaceDeclaration=264]="InterfaceDeclaration",e[e.TypeAliasDeclaration=265]="TypeAliasDeclaration",e[e.EnumDeclaration=266]="EnumDeclaration",e[e.ModuleDeclaration=267]="ModuleDeclaration",e[e.ModuleBlock=268]="ModuleBlock",e[e.CaseBlock=269]="CaseBlock",e[e.NamespaceExportDeclaration=270]="NamespaceExportDeclaration",e[e.ImportEqualsDeclaration=271]="ImportEqualsDeclaration",e[e.ImportDeclaration=272]="ImportDeclaration",e[e.ImportClause=273]="ImportClause",e[e.NamespaceImport=274]="NamespaceImport",e[e.NamedImports=275]="NamedImports",e[e.ImportSpecifier=276]="ImportSpecifier",e[e.ExportAssignment=277]="ExportAssignment",e[e.ExportDeclaration=278]="ExportDeclaration",e[e.NamedExports=279]="NamedExports",e[e.NamespaceExport=280]="NamespaceExport",e[e.ExportSpecifier=281]="ExportSpecifier",e[e.MissingDeclaration=282]="MissingDeclaration",e[e.ExternalModuleReference=283]="ExternalModuleReference",e[e.JsxElement=284]="JsxElement",e[e.JsxSelfClosingElement=285]="JsxSelfClosingElement",e[e.JsxOpeningElement=286]="JsxOpeningElement",e[e.JsxClosingElement=287]="JsxClosingElement",e[e.JsxFragment=288]="JsxFragment",e[e.JsxOpeningFragment=289]="JsxOpeningFragment",e[e.JsxClosingFragment=290]="JsxClosingFragment",e[e.JsxAttribute=291]="JsxAttribute",e[e.JsxAttributes=292]="JsxAttributes",e[e.JsxSpreadAttribute=293]="JsxSpreadAttribute",e[e.JsxExpression=294]="JsxExpression",e[e.JsxNamespacedName=295]="JsxNamespacedName",e[e.CaseClause=296]="CaseClause",e[e.DefaultClause=297]="DefaultClause",e[e.HeritageClause=298]="HeritageClause",e[e.CatchClause=299]="CatchClause",e[e.ImportAttributes=300]="ImportAttributes",e[e.ImportAttribute=301]="ImportAttribute",e[e.AssertClause=300]="AssertClause",e[e.AssertEntry=301]="AssertEntry",e[e.ImportTypeAssertionContainer=302]="ImportTypeAssertionContainer",e[e.PropertyAssignment=303]="PropertyAssignment",e[e.ShorthandPropertyAssignment=304]="ShorthandPropertyAssignment",e[e.SpreadAssignment=305]="SpreadAssignment",e[e.EnumMember=306]="EnumMember",e[e.SourceFile=307]="SourceFile",e[e.Bundle=308]="Bundle",e[e.JSDocTypeExpression=309]="JSDocTypeExpression",e[e.JSDocNameReference=310]="JSDocNameReference",e[e.JSDocMemberName=311]="JSDocMemberName",e[e.JSDocAllType=312]="JSDocAllType",e[e.JSDocUnknownType=313]="JSDocUnknownType",e[e.JSDocNullableType=314]="JSDocNullableType",e[e.JSDocNonNullableType=315]="JSDocNonNullableType",e[e.JSDocOptionalType=316]="JSDocOptionalType",e[e.JSDocFunctionType=317]="JSDocFunctionType",e[e.JSDocVariadicType=318]="JSDocVariadicType",e[e.JSDocNamepathType=319]="JSDocNamepathType",e[e.JSDoc=320]="JSDoc",e[e.JSDocComment=320]="JSDocComment",e[e.JSDocText=321]="JSDocText",e[e.JSDocTypeLiteral=322]="JSDocTypeLiteral",e[e.JSDocSignature=323]="JSDocSignature",e[e.JSDocLink=324]="JSDocLink",e[e.JSDocLinkCode=325]="JSDocLinkCode",e[e.JSDocLinkPlain=326]="JSDocLinkPlain",e[e.JSDocTag=327]="JSDocTag",e[e.JSDocAugmentsTag=328]="JSDocAugmentsTag",e[e.JSDocImplementsTag=329]="JSDocImplementsTag",e[e.JSDocAuthorTag=330]="JSDocAuthorTag",e[e.JSDocDeprecatedTag=331]="JSDocDeprecatedTag",e[e.JSDocClassTag=332]="JSDocClassTag",e[e.JSDocPublicTag=333]="JSDocPublicTag",e[e.JSDocPrivateTag=334]="JSDocPrivateTag",e[e.JSDocProtectedTag=335]="JSDocProtectedTag",e[e.JSDocReadonlyTag=336]="JSDocReadonlyTag",e[e.JSDocOverrideTag=337]="JSDocOverrideTag",e[e.JSDocCallbackTag=338]="JSDocCallbackTag",e[e.JSDocOverloadTag=339]="JSDocOverloadTag",e[e.JSDocEnumTag=340]="JSDocEnumTag",e[e.JSDocParameterTag=341]="JSDocParameterTag",e[e.JSDocReturnTag=342]="JSDocReturnTag",e[e.JSDocThisTag=343]="JSDocThisTag",e[e.JSDocTypeTag=344]="JSDocTypeTag",e[e.JSDocTemplateTag=345]="JSDocTemplateTag",e[e.JSDocTypedefTag=346]="JSDocTypedefTag",e[e.JSDocSeeTag=347]="JSDocSeeTag",e[e.JSDocPropertyTag=348]="JSDocPropertyTag",e[e.JSDocThrowsTag=349]="JSDocThrowsTag",e[e.JSDocSatisfiesTag=350]="JSDocSatisfiesTag",e[e.JSDocImportTag=351]="JSDocImportTag",e[e.SyntaxList=352]="SyntaxList",e[e.NotEmittedStatement=353]="NotEmittedStatement",e[e.NotEmittedTypeElement=354]="NotEmittedTypeElement",e[e.PartiallyEmittedExpression=355]="PartiallyEmittedExpression",e[e.CommaListExpression=356]="CommaListExpression",e[e.SyntheticReferenceExpression=357]="SyntheticReferenceExpression",e[e.Count=358]="Count",e[e.FirstAssignment=64]="FirstAssignment",e[e.LastAssignment=79]="LastAssignment",e[e.FirstCompoundAssignment=65]="FirstCompoundAssignment",e[e.LastCompoundAssignment=79]="LastCompoundAssignment",e[e.FirstReservedWord=83]="FirstReservedWord",e[e.LastReservedWord=118]="LastReservedWord",e[e.FirstKeyword=83]="FirstKeyword",e[e.LastKeyword=165]="LastKeyword",e[e.FirstFutureReservedWord=119]="FirstFutureReservedWord",e[e.LastFutureReservedWord=127]="LastFutureReservedWord",e[e.FirstTypeNode=182]="FirstTypeNode",e[e.LastTypeNode=205]="LastTypeNode",e[e.FirstPunctuation=19]="FirstPunctuation",e[e.LastPunctuation=79]="LastPunctuation",e[e.FirstToken=0]="FirstToken",e[e.LastToken=165]="LastToken",e[e.FirstTriviaToken=2]="FirstTriviaToken",e[e.LastTriviaToken=7]="LastTriviaToken",e[e.FirstLiteralToken=9]="FirstLiteralToken",e[e.LastLiteralToken=15]="LastLiteralToken",e[e.FirstTemplateToken=15]="FirstTemplateToken",e[e.LastTemplateToken=18]="LastTemplateToken",e[e.FirstBinaryOperator=30]="FirstBinaryOperator",e[e.LastBinaryOperator=79]="LastBinaryOperator",e[e.FirstStatement=243]="FirstStatement",e[e.LastStatement=259]="LastStatement",e[e.FirstNode=166]="FirstNode",e[e.FirstJSDocNode=309]="FirstJSDocNode",e[e.LastJSDocNode=351]="LastJSDocNode",e[e.FirstJSDocTagNode=327]="FirstJSDocTagNode",e[e.LastJSDocTagNode=351]="LastJSDocTagNode",e[e.FirstContextualKeyword=128]="FirstContextualKeyword",e[e.LastContextualKeyword=165]="LastContextualKeyword",e))(fr||{}),mr=(e=>(e[e.None=0]="None",e[e.Let=1]="Let",e[e.Const=2]="Const",e[e.Using=4]="Using",e[e.AwaitUsing=6]="AwaitUsing",e[e.NestedNamespace=8]="NestedNamespace",e[e.Synthesized=16]="Synthesized",e[e.Namespace=32]="Namespace",e[e.OptionalChain=64]="OptionalChain",e[e.ExportContext=128]="ExportContext",e[e.ContainsThis=256]="ContainsThis",e[e.HasImplicitReturn=512]="HasImplicitReturn",e[e.HasExplicitReturn=1024]="HasExplicitReturn",e[e.GlobalAugmentation=2048]="GlobalAugmentation",e[e.HasAsyncFunctions=4096]="HasAsyncFunctions",e[e.DisallowInContext=8192]="DisallowInContext",e[e.YieldContext=16384]="YieldContext",e[e.DecoratorContext=32768]="DecoratorContext",e[e.AwaitContext=65536]="AwaitContext",e[e.DisallowConditionalTypesContext=131072]="DisallowConditionalTypesContext",e[e.ThisNodeHasError=262144]="ThisNodeHasError",e[e.JavaScriptFile=524288]="JavaScriptFile",e[e.ThisNodeOrAnySubNodesHasError=1048576]="ThisNodeOrAnySubNodesHasError",e[e.HasAggregatedChildData=2097152]="HasAggregatedChildData",e[e.PossiblyContainsDynamicImport=4194304]="PossiblyContainsDynamicImport",e[e.PossiblyContainsImportMeta=8388608]="PossiblyContainsImportMeta",e[e.JSDoc=16777216]="JSDoc",e[e.Ambient=33554432]="Ambient",e[e.InWithStatement=67108864]="InWithStatement",e[e.JsonFile=134217728]="JsonFile",e[e.TypeCached=268435456]="TypeCached",e[e.Deprecated=536870912]="Deprecated",e[e.BlockScoped=7]="BlockScoped",e[e.Constant=6]="Constant",e[e.ReachabilityCheckFlags=1536]="ReachabilityCheckFlags",e[e.ReachabilityAndEmitFlags=5632]="ReachabilityAndEmitFlags",e[e.ContextFlags=101441536]="ContextFlags",e[e.TypeExcludesFlags=81920]="TypeExcludesFlags",e[e.PermanentlySetIncrementalFlags=12582912]="PermanentlySetIncrementalFlags",e[e.IdentifierHasExtendedUnicodeEscape=256]="IdentifierHasExtendedUnicodeEscape",e[e.IdentifierIsInJSDocNamespace=4096]="IdentifierIsInJSDocNamespace",e))(mr||{}),gr=(e=>(e[e.None=0]="None",e[e.Public=1]="Public",e[e.Private=2]="Private",e[e.Protected=4]="Protected",e[e.Readonly=8]="Readonly",e[e.Override=16]="Override",e[e.Export=32]="Export",e[e.Abstract=64]="Abstract",e[e.Ambient=128]="Ambient",e[e.Static=256]="Static",e[e.Accessor=512]="Accessor",e[e.Async=1024]="Async",e[e.Default=2048]="Default",e[e.Const=4096]="Const",e[e.In=8192]="In",e[e.Out=16384]="Out",e[e.Decorator=32768]="Decorator",e[e.Deprecated=65536]="Deprecated",e[e.JSDocPublic=8388608]="JSDocPublic",e[e.JSDocPrivate=16777216]="JSDocPrivate",e[e.JSDocProtected=33554432]="JSDocProtected",e[e.JSDocReadonly=67108864]="JSDocReadonly",e[e.JSDocOverride=134217728]="JSDocOverride",e[e.SyntacticOrJSDocModifiers=31]="SyntacticOrJSDocModifiers",e[e.SyntacticOnlyModifiers=65504]="SyntacticOnlyModifiers",e[e.SyntacticModifiers=65535]="SyntacticModifiers",e[e.JSDocCacheOnlyModifiers=260046848]="JSDocCacheOnlyModifiers",e[e.JSDocOnlyModifiers=65536]="JSDocOnlyModifiers",e[e.NonCacheOnlyModifiers=131071]="NonCacheOnlyModifiers",e[e.HasComputedJSDocModifiers=268435456]="HasComputedJSDocModifiers",e[e.HasComputedFlags=536870912]="HasComputedFlags",e[e.AccessibilityModifier=7]="AccessibilityModifier",e[e.ParameterPropertyModifier=31]="ParameterPropertyModifier",e[e.NonPublicAccessibilityModifier=6]="NonPublicAccessibilityModifier",e[e.TypeScriptModifier=28895]="TypeScriptModifier",e[e.ExportDefault=2080]="ExportDefault",e[e.All=131071]="All",e[e.Modifier=98303]="Modifier",e))(gr||{}),hr=(e=>(e[e.None=0]="None",e[e.IntrinsicNamedElement=1]="IntrinsicNamedElement",e[e.IntrinsicIndexedElement=2]="IntrinsicIndexedElement",e[e.IntrinsicElement=3]="IntrinsicElement",e))(hr||{}),yr=(e=>(e[e.None=0]="None",e[e.Succeeded=1]="Succeeded",e[e.Failed=2]="Failed",e[e.ReportsUnmeasurable=8]="ReportsUnmeasurable",e[e.ReportsUnreliable=16]="ReportsUnreliable",e[e.ReportsMask=24]="ReportsMask",e[e.ComplexityOverflow=32]="ComplexityOverflow",e[e.StackDepthOverflow=64]="StackDepthOverflow",e[e.Overflow=96]="Overflow",e))(yr||{}),vr=(e=>(e[e.None=0]="None",e[e.Always=1]="Always",e[e.Never=2]="Never",e[e.Sometimes=3]="Sometimes",e))(vr||{}),br=(e=>(e[e.None=0]="None",e[e.Auto=1]="Auto",e[e.Loop=2]="Loop",e[e.Unique=3]="Unique",e[e.Node=4]="Node",e[e.KindMask=7]="KindMask",e[e.ReservedInNestedScopes=8]="ReservedInNestedScopes",e[e.Optimistic=16]="Optimistic",e[e.FileLevel=32]="FileLevel",e[e.AllowNameSubstitution=64]="AllowNameSubstitution",e))(br||{}),xr=(e=>(e[e.None=0]="None",e[e.HasIndices=1]="HasIndices",e[e.Global=2]="Global",e[e.IgnoreCase=4]="IgnoreCase",e[e.Multiline=8]="Multiline",e[e.DotAll=16]="DotAll",e[e.Unicode=32]="Unicode",e[e.UnicodeSets=64]="UnicodeSets",e[e.Sticky=128]="Sticky",e[e.AnyUnicodeMode=96]="AnyUnicodeMode",e[e.Modifiers=28]="Modifiers",e))(xr||{}),kr=(e=>(e[e.None=0]="None",e[e.PrecedingLineBreak=1]="PrecedingLineBreak",e[e.PrecedingJSDocComment=2]="PrecedingJSDocComment",e[e.Unterminated=4]="Unterminated",e[e.ExtendedUnicodeEscape=8]="ExtendedUnicodeEscape",e[e.Scientific=16]="Scientific",e[e.Octal=32]="Octal",e[e.HexSpecifier=64]="HexSpecifier",e[e.BinarySpecifier=128]="BinarySpecifier",e[e.OctalSpecifier=256]="OctalSpecifier",e[e.ContainsSeparator=512]="ContainsSeparator",e[e.UnicodeEscape=1024]="UnicodeEscape",e[e.ContainsInvalidEscape=2048]="ContainsInvalidEscape",e[e.HexEscape=4096]="HexEscape",e[e.ContainsLeadingZero=8192]="ContainsLeadingZero",e[e.ContainsInvalidSeparator=16384]="ContainsInvalidSeparator",e[e.PrecedingJSDocLeadingAsterisks=32768]="PrecedingJSDocLeadingAsterisks",e[e.BinaryOrOctalSpecifier=384]="BinaryOrOctalSpecifier",e[e.WithSpecifier=448]="WithSpecifier",e[e.StringLiteralFlags=7176]="StringLiteralFlags",e[e.NumericLiteralFlags=25584]="NumericLiteralFlags",e[e.TemplateLiteralLikeFlags=7176]="TemplateLiteralLikeFlags",e[e.IsInvalid=26656]="IsInvalid",e))(kr||{}),Sr=(e=>(e[e.Unreachable=1]="Unreachable",e[e.Start=2]="Start",e[e.BranchLabel=4]="BranchLabel",e[e.LoopLabel=8]="LoopLabel",e[e.Assignment=16]="Assignment",e[e.TrueCondition=32]="TrueCondition",e[e.FalseCondition=64]="FalseCondition",e[e.SwitchClause=128]="SwitchClause",e[e.ArrayMutation=256]="ArrayMutation",e[e.Call=512]="Call",e[e.ReduceLabel=1024]="ReduceLabel",e[e.Referenced=2048]="Referenced",e[e.Shared=4096]="Shared",e[e.Label=12]="Label",e[e.Condition=96]="Condition",e))(Sr||{}),Tr=(e=>(e[e.ExpectError=0]="ExpectError",e[e.Ignore=1]="Ignore",e))(Tr||{}),Cr=class{},wr=(e=>(e[e.RootFile=0]="RootFile",e[e.SourceFromProjectReference=1]="SourceFromProjectReference",e[e.OutputFromProjectReference=2]="OutputFromProjectReference",e[e.Import=3]="Import",e[e.ReferenceFile=4]="ReferenceFile",e[e.TypeReferenceDirective=5]="TypeReferenceDirective",e[e.LibFile=6]="LibFile",e[e.LibReferenceDirective=7]="LibReferenceDirective",e[e.AutomaticTypeDirectiveFile=8]="AutomaticTypeDirectiveFile",e))(wr||{}),Nr=(e=>(e[e.FilePreprocessingLibReferenceDiagnostic=0]="FilePreprocessingLibReferenceDiagnostic",e[e.FilePreprocessingFileExplainingDiagnostic=1]="FilePreprocessingFileExplainingDiagnostic",e[e.ResolutionDiagnostics=2]="ResolutionDiagnostics",e))(Nr||{}),Dr=(e=>(e[e.Js=0]="Js",e[e.Dts=1]="Dts",e[e.BuilderSignature=2]="BuilderSignature",e))(Dr||{}),Fr=(e=>(e[e.Not=0]="Not",e[e.SafeModules=1]="SafeModules",e[e.Completely=2]="Completely",e))(Fr||{}),Er=(e=>(e[e.Success=0]="Success",e[e.DiagnosticsPresent_OutputsSkipped=1]="DiagnosticsPresent_OutputsSkipped",e[e.DiagnosticsPresent_OutputsGenerated=2]="DiagnosticsPresent_OutputsGenerated",e[e.InvalidProject_OutputsSkipped=3]="InvalidProject_OutputsSkipped",e[e.ProjectReferenceCycle_OutputsSkipped=4]="ProjectReferenceCycle_OutputsSkipped",e))(Er||{}),Pr=(e=>(e[e.Ok=0]="Ok",e[e.NeedsOverride=1]="NeedsOverride",e[e.HasInvalidOverride=2]="HasInvalidOverride",e))(Pr||{}),Ar=(e=>(e[e.None=0]="None",e[e.Literal=1]="Literal",e[e.Subtype=2]="Subtype",e))(Ar||{}),Ir=(e=>(e[e.None=0]="None",e[e.NoSupertypeReduction=1]="NoSupertypeReduction",e[e.NoConstraintReduction=2]="NoConstraintReduction",e))(Ir||{}),Or=(e=>(e[e.None=0]="None",e[e.Signature=1]="Signature",e[e.NoConstraints=2]="NoConstraints",e[e.Completions=4]="Completions",e[e.SkipBindingPatterns=8]="SkipBindingPatterns",e))(Or||{}),Lr=(e=>(e[e.None=0]="None",e[e.NoTruncation=1]="NoTruncation",e[e.WriteArrayAsGenericType=2]="WriteArrayAsGenericType",e[e.GenerateNamesForShadowedTypeParams=4]="GenerateNamesForShadowedTypeParams",e[e.UseStructuralFallback=8]="UseStructuralFallback",e[e.ForbidIndexedAccessSymbolReferences=16]="ForbidIndexedAccessSymbolReferences",e[e.WriteTypeArgumentsOfSignature=32]="WriteTypeArgumentsOfSignature",e[e.UseFullyQualifiedType=64]="UseFullyQualifiedType",e[e.UseOnlyExternalAliasing=128]="UseOnlyExternalAliasing",e[e.SuppressAnyReturnType=256]="SuppressAnyReturnType",e[e.WriteTypeParametersInQualifiedName=512]="WriteTypeParametersInQualifiedName",e[e.MultilineObjectLiterals=1024]="MultilineObjectLiterals",e[e.WriteClassExpressionAsTypeLiteral=2048]="WriteClassExpressionAsTypeLiteral",e[e.UseTypeOfFunction=4096]="UseTypeOfFunction",e[e.OmitParameterModifiers=8192]="OmitParameterModifiers",e[e.UseAliasDefinedOutsideCurrentScope=16384]="UseAliasDefinedOutsideCurrentScope",e[e.UseSingleQuotesForStringLiteralType=268435456]="UseSingleQuotesForStringLiteralType",e[e.NoTypeReduction=536870912]="NoTypeReduction",e[e.OmitThisParameter=33554432]="OmitThisParameter",e[e.AllowThisInObjectLiteral=32768]="AllowThisInObjectLiteral",e[e.AllowQualifiedNameInPlaceOfIdentifier=65536]="AllowQualifiedNameInPlaceOfIdentifier",e[e.AllowAnonymousIdentifier=131072]="AllowAnonymousIdentifier",e[e.AllowEmptyUnionOrIntersection=262144]="AllowEmptyUnionOrIntersection",e[e.AllowEmptyTuple=524288]="AllowEmptyTuple",e[e.AllowUniqueESSymbolType=1048576]="AllowUniqueESSymbolType",e[e.AllowEmptyIndexInfoType=2097152]="AllowEmptyIndexInfoType",e[e.AllowNodeModulesRelativePaths=67108864]="AllowNodeModulesRelativePaths",e[e.IgnoreErrors=70221824]="IgnoreErrors",e[e.InObjectTypeLiteral=4194304]="InObjectTypeLiteral",e[e.InTypeAlias=8388608]="InTypeAlias",e[e.InInitialEntityName=16777216]="InInitialEntityName",e))(Lr||{}),jr=(e=>(e[e.None=0]="None",e[e.WriteComputedProps=1]="WriteComputedProps",e[e.NoSyntacticPrinter=2]="NoSyntacticPrinter",e[e.DoNotIncludeSymbolChain=4]="DoNotIncludeSymbolChain",e[e.AllowUnresolvedNames=8]="AllowUnresolvedNames",e))(jr||{}),Rr=(e=>(e[e.None=0]="None",e[e.NoTruncation=1]="NoTruncation",e[e.WriteArrayAsGenericType=2]="WriteArrayAsGenericType",e[e.GenerateNamesForShadowedTypeParams=4]="GenerateNamesForShadowedTypeParams",e[e.UseStructuralFallback=8]="UseStructuralFallback",e[e.WriteTypeArgumentsOfSignature=32]="WriteTypeArgumentsOfSignature",e[e.UseFullyQualifiedType=64]="UseFullyQualifiedType",e[e.SuppressAnyReturnType=256]="SuppressAnyReturnType",e[e.MultilineObjectLiterals=1024]="MultilineObjectLiterals",e[e.WriteClassExpressionAsTypeLiteral=2048]="WriteClassExpressionAsTypeLiteral",e[e.UseTypeOfFunction=4096]="UseTypeOfFunction",e[e.OmitParameterModifiers=8192]="OmitParameterModifiers",e[e.UseAliasDefinedOutsideCurrentScope=16384]="UseAliasDefinedOutsideCurrentScope",e[e.UseSingleQuotesForStringLiteralType=268435456]="UseSingleQuotesForStringLiteralType",e[e.NoTypeReduction=536870912]="NoTypeReduction",e[e.OmitThisParameter=33554432]="OmitThisParameter",e[e.AllowUniqueESSymbolType=1048576]="AllowUniqueESSymbolType",e[e.AddUndefined=131072]="AddUndefined",e[e.WriteArrowStyleSignature=262144]="WriteArrowStyleSignature",e[e.InArrayType=524288]="InArrayType",e[e.InElementType=2097152]="InElementType",e[e.InFirstTypeArgument=4194304]="InFirstTypeArgument",e[e.InTypeAlias=8388608]="InTypeAlias",e[e.NodeBuilderFlagsMask=848330095]="NodeBuilderFlagsMask",e))(Rr||{}),Mr=(e=>(e[e.None=0]="None",e[e.WriteTypeParametersOrArguments=1]="WriteTypeParametersOrArguments",e[e.UseOnlyExternalAliasing=2]="UseOnlyExternalAliasing",e[e.AllowAnyNodeKind=4]="AllowAnyNodeKind",e[e.UseAliasDefinedOutsideCurrentScope=8]="UseAliasDefinedOutsideCurrentScope",e[e.WriteComputedProps=16]="WriteComputedProps",e[e.DoNotIncludeSymbolChain=32]="DoNotIncludeSymbolChain",e))(Mr||{}),Br=(e=>(e[e.Accessible=0]="Accessible",e[e.NotAccessible=1]="NotAccessible",e[e.CannotBeNamed=2]="CannotBeNamed",e[e.NotResolved=3]="NotResolved",e))(Br||{}),Jr=(e=>(e[e.This=0]="This",e[e.Identifier=1]="Identifier",e[e.AssertsThis=2]="AssertsThis",e[e.AssertsIdentifier=3]="AssertsIdentifier",e))(Jr||{}),zr=(e=>(e[e.Unknown=0]="Unknown",e[e.TypeWithConstructSignatureAndValue=1]="TypeWithConstructSignatureAndValue",e[e.VoidNullableOrNeverType=2]="VoidNullableOrNeverType",e[e.NumberLikeType=3]="NumberLikeType",e[e.BigIntLikeType=4]="BigIntLikeType",e[e.StringLikeType=5]="StringLikeType",e[e.BooleanType=6]="BooleanType",e[e.ArrayLikeType=7]="ArrayLikeType",e[e.ESSymbolType=8]="ESSymbolType",e[e.Promise=9]="Promise",e[e.TypeWithCallSignature=10]="TypeWithCallSignature",e[e.ObjectType=11]="ObjectType",e))(zr||{}),qr=(e=>(e[e.None=0]="None",e[e.FunctionScopedVariable=1]="FunctionScopedVariable",e[e.BlockScopedVariable=2]="BlockScopedVariable",e[e.Property=4]="Property",e[e.EnumMember=8]="EnumMember",e[e.Function=16]="Function",e[e.Class=32]="Class",e[e.Interface=64]="Interface",e[e.ConstEnum=128]="ConstEnum",e[e.RegularEnum=256]="RegularEnum",e[e.ValueModule=512]="ValueModule",e[e.NamespaceModule=1024]="NamespaceModule",e[e.TypeLiteral=2048]="TypeLiteral",e[e.ObjectLiteral=4096]="ObjectLiteral",e[e.Method=8192]="Method",e[e.Constructor=16384]="Constructor",e[e.GetAccessor=32768]="GetAccessor",e[e.SetAccessor=65536]="SetAccessor",e[e.Signature=131072]="Signature",e[e.TypeParameter=262144]="TypeParameter",e[e.TypeAlias=524288]="TypeAlias",e[e.ExportValue=1048576]="ExportValue",e[e.Alias=2097152]="Alias",e[e.Prototype=4194304]="Prototype",e[e.ExportStar=8388608]="ExportStar",e[e.Optional=16777216]="Optional",e[e.Transient=33554432]="Transient",e[e.Assignment=67108864]="Assignment",e[e.ModuleExports=134217728]="ModuleExports",e[e.All=-1]="All",e[e.Enum=384]="Enum",e[e.Variable=3]="Variable",e[e.Value=111551]="Value",e[e.Type=788968]="Type",e[e.Namespace=1920]="Namespace",e[e.Module=1536]="Module",e[e.Accessor=98304]="Accessor",e[e.FunctionScopedVariableExcludes=111550]="FunctionScopedVariableExcludes",e[e.BlockScopedVariableExcludes=111551]="BlockScopedVariableExcludes",e[e.ParameterExcludes=111551]="ParameterExcludes",e[e.PropertyExcludes=0]="PropertyExcludes",e[e.EnumMemberExcludes=900095]="EnumMemberExcludes",e[e.FunctionExcludes=110991]="FunctionExcludes",e[e.ClassExcludes=899503]="ClassExcludes",e[e.InterfaceExcludes=788872]="InterfaceExcludes",e[e.RegularEnumExcludes=899327]="RegularEnumExcludes",e[e.ConstEnumExcludes=899967]="ConstEnumExcludes",e[e.ValueModuleExcludes=110735]="ValueModuleExcludes",e[e.NamespaceModuleExcludes=0]="NamespaceModuleExcludes",e[e.MethodExcludes=103359]="MethodExcludes",e[e.GetAccessorExcludes=46015]="GetAccessorExcludes",e[e.SetAccessorExcludes=78783]="SetAccessorExcludes",e[e.AccessorExcludes=13247]="AccessorExcludes",e[e.TypeParameterExcludes=526824]="TypeParameterExcludes",e[e.TypeAliasExcludes=788968]="TypeAliasExcludes",e[e.AliasExcludes=2097152]="AliasExcludes",e[e.ModuleMember=2623475]="ModuleMember",e[e.ExportHasLocal=944]="ExportHasLocal",e[e.BlockScoped=418]="BlockScoped",e[e.PropertyOrAccessor=98308]="PropertyOrAccessor",e[e.ClassMember=106500]="ClassMember",e[e.ExportSupportsDefaultModifier=112]="ExportSupportsDefaultModifier",e[e.ExportDoesNotSupportDefaultModifier=-113]="ExportDoesNotSupportDefaultModifier",e[e.Classifiable=2885600]="Classifiable",e[e.LateBindingContainer=6256]="LateBindingContainer",e))(qr||{}),Ur=(e=>(e[e.None=0]="None",e[e.Instantiated=1]="Instantiated",e[e.SyntheticProperty=2]="SyntheticProperty",e[e.SyntheticMethod=4]="SyntheticMethod",e[e.Readonly=8]="Readonly",e[e.ReadPartial=16]="ReadPartial",e[e.WritePartial=32]="WritePartial",e[e.HasNonUniformType=64]="HasNonUniformType",e[e.HasLiteralType=128]="HasLiteralType",e[e.ContainsPublic=256]="ContainsPublic",e[e.ContainsProtected=512]="ContainsProtected",e[e.ContainsPrivate=1024]="ContainsPrivate",e[e.ContainsStatic=2048]="ContainsStatic",e[e.Late=4096]="Late",e[e.ReverseMapped=8192]="ReverseMapped",e[e.OptionalParameter=16384]="OptionalParameter",e[e.RestParameter=32768]="RestParameter",e[e.DeferredType=65536]="DeferredType",e[e.HasNeverType=131072]="HasNeverType",e[e.Mapped=262144]="Mapped",e[e.StripOptional=524288]="StripOptional",e[e.Unresolved=1048576]="Unresolved",e[e.Synthetic=6]="Synthetic",e[e.Discriminant=192]="Discriminant",e[e.Partial=48]="Partial",e))(Ur||{}),Vr=(e=>(e.Call="__call",e.Constructor="__constructor",e.New="__new",e.Index="__index",e.ExportStar="__export",e.Global="__global",e.Missing="__missing",e.Type="__type",e.Object="__object",e.JSXAttributes="__jsxAttributes",e.Class="__class",e.Function="__function",e.Computed="__computed",e.Resolving="__resolving__",e.ExportEquals="export=",e.Default="default",e.This="this",e.InstantiationExpression="__instantiationExpression",e.ImportAttributes="__importAttributes",e))(Vr||{}),Wr=(e=>(e[e.None=0]="None",e[e.TypeChecked=1]="TypeChecked",e[e.LexicalThis=2]="LexicalThis",e[e.CaptureThis=4]="CaptureThis",e[e.CaptureNewTarget=8]="CaptureNewTarget",e[e.SuperInstance=16]="SuperInstance",e[e.SuperStatic=32]="SuperStatic",e[e.ContextChecked=64]="ContextChecked",e[e.MethodWithSuperPropertyAccessInAsync=128]="MethodWithSuperPropertyAccessInAsync",e[e.MethodWithSuperPropertyAssignmentInAsync=256]="MethodWithSuperPropertyAssignmentInAsync",e[e.CaptureArguments=512]="CaptureArguments",e[e.EnumValuesComputed=1024]="EnumValuesComputed",e[e.LexicalModuleMergesWithClass=2048]="LexicalModuleMergesWithClass",e[e.LoopWithCapturedBlockScopedBinding=4096]="LoopWithCapturedBlockScopedBinding",e[e.ContainsCapturedBlockScopeBinding=8192]="ContainsCapturedBlockScopeBinding",e[e.CapturedBlockScopedBinding=16384]="CapturedBlockScopedBinding",e[e.BlockScopedBindingInLoop=32768]="BlockScopedBindingInLoop",e[e.NeedsLoopOutParameter=65536]="NeedsLoopOutParameter",e[e.AssignmentsMarked=131072]="AssignmentsMarked",e[e.ContainsConstructorReference=262144]="ContainsConstructorReference",e[e.ConstructorReference=536870912]="ConstructorReference",e[e.ContainsClassWithPrivateIdentifiers=1048576]="ContainsClassWithPrivateIdentifiers",e[e.ContainsSuperPropertyInStaticInitializer=2097152]="ContainsSuperPropertyInStaticInitializer",e[e.InCheckIdentifier=4194304]="InCheckIdentifier",e[e.PartiallyTypeChecked=8388608]="PartiallyTypeChecked",e[e.LazyFlags=539358128]="LazyFlags",e))(Wr||{}),$r=(e=>(e[e.Any=1]="Any",e[e.Unknown=2]="Unknown",e[e.String=4]="String",e[e.Number=8]="Number",e[e.Boolean=16]="Boolean",e[e.Enum=32]="Enum",e[e.BigInt=64]="BigInt",e[e.StringLiteral=128]="StringLiteral",e[e.NumberLiteral=256]="NumberLiteral",e[e.BooleanLiteral=512]="BooleanLiteral",e[e.EnumLiteral=1024]="EnumLiteral",e[e.BigIntLiteral=2048]="BigIntLiteral",e[e.ESSymbol=4096]="ESSymbol",e[e.UniqueESSymbol=8192]="UniqueESSymbol",e[e.Void=16384]="Void",e[e.Undefined=32768]="Undefined",e[e.Null=65536]="Null",e[e.Never=131072]="Never",e[e.TypeParameter=262144]="TypeParameter",e[e.Object=524288]="Object",e[e.Union=1048576]="Union",e[e.Intersection=2097152]="Intersection",e[e.Index=4194304]="Index",e[e.IndexedAccess=8388608]="IndexedAccess",e[e.Conditional=16777216]="Conditional",e[e.Substitution=33554432]="Substitution",e[e.NonPrimitive=67108864]="NonPrimitive",e[e.TemplateLiteral=134217728]="TemplateLiteral",e[e.StringMapping=268435456]="StringMapping",e[e.Reserved1=536870912]="Reserved1",e[e.Reserved2=1073741824]="Reserved2",e[e.AnyOrUnknown=3]="AnyOrUnknown",e[e.Nullable=98304]="Nullable",e[e.Literal=2944]="Literal",e[e.Unit=109472]="Unit",e[e.Freshable=2976]="Freshable",e[e.StringOrNumberLiteral=384]="StringOrNumberLiteral",e[e.StringOrNumberLiteralOrUnique=8576]="StringOrNumberLiteralOrUnique",e[e.DefinitelyFalsy=117632]="DefinitelyFalsy",e[e.PossiblyFalsy=117724]="PossiblyFalsy",e[e.Intrinsic=67359327]="Intrinsic",e[e.StringLike=402653316]="StringLike",e[e.NumberLike=296]="NumberLike",e[e.BigIntLike=2112]="BigIntLike",e[e.BooleanLike=528]="BooleanLike",e[e.EnumLike=1056]="EnumLike",e[e.ESSymbolLike=12288]="ESSymbolLike",e[e.VoidLike=49152]="VoidLike",e[e.Primitive=402784252]="Primitive",e[e.DefinitelyNonNullable=470302716]="DefinitelyNonNullable",e[e.DisjointDomains=469892092]="DisjointDomains",e[e.UnionOrIntersection=3145728]="UnionOrIntersection",e[e.StructuredType=3670016]="StructuredType",e[e.TypeVariable=8650752]="TypeVariable",e[e.InstantiableNonPrimitive=58982400]="InstantiableNonPrimitive",e[e.InstantiablePrimitive=406847488]="InstantiablePrimitive",e[e.Instantiable=465829888]="Instantiable",e[e.StructuredOrInstantiable=469499904]="StructuredOrInstantiable",e[e.ObjectFlagsType=3899393]="ObjectFlagsType",e[e.Simplifiable=25165824]="Simplifiable",e[e.Singleton=67358815]="Singleton",e[e.Narrowable=536624127]="Narrowable",e[e.IncludesMask=473694207]="IncludesMask",e[e.IncludesMissingType=262144]="IncludesMissingType",e[e.IncludesNonWideningType=4194304]="IncludesNonWideningType",e[e.IncludesWildcard=8388608]="IncludesWildcard",e[e.IncludesEmptyObject=16777216]="IncludesEmptyObject",e[e.IncludesInstantiable=33554432]="IncludesInstantiable",e[e.IncludesConstrainedTypeVariable=536870912]="IncludesConstrainedTypeVariable",e[e.IncludesError=1073741824]="IncludesError",e[e.NotPrimitiveUnion=36323331]="NotPrimitiveUnion",e))($r||{}),Hr=(e=>(e[e.None=0]="None",e[e.Class=1]="Class",e[e.Interface=2]="Interface",e[e.Reference=4]="Reference",e[e.Tuple=8]="Tuple",e[e.Anonymous=16]="Anonymous",e[e.Mapped=32]="Mapped",e[e.Instantiated=64]="Instantiated",e[e.ObjectLiteral=128]="ObjectLiteral",e[e.EvolvingArray=256]="EvolvingArray",e[e.ObjectLiteralPatternWithComputedProperties=512]="ObjectLiteralPatternWithComputedProperties",e[e.ReverseMapped=1024]="ReverseMapped",e[e.JsxAttributes=2048]="JsxAttributes",e[e.JSLiteral=4096]="JSLiteral",e[e.FreshLiteral=8192]="FreshLiteral",e[e.ArrayLiteral=16384]="ArrayLiteral",e[e.PrimitiveUnion=32768]="PrimitiveUnion",e[e.ContainsWideningType=65536]="ContainsWideningType",e[e.ContainsObjectOrArrayLiteral=131072]="ContainsObjectOrArrayLiteral",e[e.NonInferrableType=262144]="NonInferrableType",e[e.CouldContainTypeVariablesComputed=524288]="CouldContainTypeVariablesComputed",e[e.CouldContainTypeVariables=1048576]="CouldContainTypeVariables",e[e.ClassOrInterface=3]="ClassOrInterface",e[e.RequiresWidening=196608]="RequiresWidening",e[e.PropagatingFlags=458752]="PropagatingFlags",e[e.InstantiatedMapped=96]="InstantiatedMapped",e[e.ObjectTypeKindMask=1343]="ObjectTypeKindMask",e[e.ContainsSpread=2097152]="ContainsSpread",e[e.ObjectRestType=4194304]="ObjectRestType",e[e.InstantiationExpressionType=8388608]="InstantiationExpressionType",e[e.SingleSignatureType=134217728]="SingleSignatureType",e[e.IsClassInstanceClone=16777216]="IsClassInstanceClone",e[e.IdenticalBaseTypeCalculated=33554432]="IdenticalBaseTypeCalculated",e[e.IdenticalBaseTypeExists=67108864]="IdenticalBaseTypeExists",e[e.IsGenericTypeComputed=2097152]="IsGenericTypeComputed",e[e.IsGenericObjectType=4194304]="IsGenericObjectType",e[e.IsGenericIndexType=8388608]="IsGenericIndexType",e[e.IsGenericType=12582912]="IsGenericType",e[e.ContainsIntersections=16777216]="ContainsIntersections",e[e.IsUnknownLikeUnionComputed=33554432]="IsUnknownLikeUnionComputed",e[e.IsUnknownLikeUnion=67108864]="IsUnknownLikeUnion",e[e.IsNeverIntersectionComputed=16777216]="IsNeverIntersectionComputed",e[e.IsNeverIntersection=33554432]="IsNeverIntersection",e[e.IsConstrainedTypeVariable=67108864]="IsConstrainedTypeVariable",e))(Hr||{}),Kr=(e=>(e[e.Invariant=0]="Invariant",e[e.Covariant=1]="Covariant",e[e.Contravariant=2]="Contravariant",e[e.Bivariant=3]="Bivariant",e[e.Independent=4]="Independent",e[e.VarianceMask=7]="VarianceMask",e[e.Unmeasurable=8]="Unmeasurable",e[e.Unreliable=16]="Unreliable",e[e.AllowsStructuralFallback=24]="AllowsStructuralFallback",e))(Kr||{}),Gr=(e=>(e[e.Required=1]="Required",e[e.Optional=2]="Optional",e[e.Rest=4]="Rest",e[e.Variadic=8]="Variadic",e[e.Fixed=3]="Fixed",e[e.Variable=12]="Variable",e[e.NonRequired=14]="NonRequired",e[e.NonRest=11]="NonRest",e))(Gr||{}),Xr=(e=>(e[e.None=0]="None",e[e.IncludeUndefined=1]="IncludeUndefined",e[e.NoIndexSignatures=2]="NoIndexSignatures",e[e.Writing=4]="Writing",e[e.CacheSymbol=8]="CacheSymbol",e[e.AllowMissing=16]="AllowMissing",e[e.ExpressionPosition=32]="ExpressionPosition",e[e.ReportDeprecated=64]="ReportDeprecated",e[e.SuppressNoImplicitAnyError=128]="SuppressNoImplicitAnyError",e[e.Contextual=256]="Contextual",e[e.Persistent=1]="Persistent",e))(Xr||{}),Qr=(e=>(e[e.None=0]="None",e[e.StringsOnly=1]="StringsOnly",e[e.NoIndexSignatures=2]="NoIndexSignatures",e[e.NoReducibleCheck=4]="NoReducibleCheck",e))(Qr||{}),Yr=(e=>(e[e.Component=0]="Component",e[e.Function=1]="Function",e[e.Mixed=2]="Mixed",e))(Yr||{}),Zr=(e=>(e[e.Call=0]="Call",e[e.Construct=1]="Construct",e))(Zr||{}),ei=(e=>(e[e.None=0]="None",e[e.HasRestParameter=1]="HasRestParameter",e[e.HasLiteralTypes=2]="HasLiteralTypes",e[e.Abstract=4]="Abstract",e[e.IsInnerCallChain=8]="IsInnerCallChain",e[e.IsOuterCallChain=16]="IsOuterCallChain",e[e.IsUntypedSignatureInJSFile=32]="IsUntypedSignatureInJSFile",e[e.IsNonInferrable=64]="IsNonInferrable",e[e.IsSignatureCandidateForOverloadFailure=128]="IsSignatureCandidateForOverloadFailure",e[e.PropagatingFlags=167]="PropagatingFlags",e[e.CallChainFlags=24]="CallChainFlags",e))(ei||{}),ti=(e=>(e[e.String=0]="String",e[e.Number=1]="Number",e))(ti||{}),ni=(e=>(e[e.Simple=0]="Simple",e[e.Array=1]="Array",e[e.Deferred=2]="Deferred",e[e.Function=3]="Function",e[e.Composite=4]="Composite",e[e.Merged=5]="Merged",e))(ni||{}),ri=(e=>(e[e.None=0]="None",e[e.NakedTypeVariable=1]="NakedTypeVariable",e[e.SpeculativeTuple=2]="SpeculativeTuple",e[e.SubstituteSource=4]="SubstituteSource",e[e.HomomorphicMappedType=8]="HomomorphicMappedType",e[e.PartialHomomorphicMappedType=16]="PartialHomomorphicMappedType",e[e.MappedTypeConstraint=32]="MappedTypeConstraint",e[e.ContravariantConditional=64]="ContravariantConditional",e[e.ReturnType=128]="ReturnType",e[e.LiteralKeyof=256]="LiteralKeyof",e[e.NoConstraints=512]="NoConstraints",e[e.AlwaysStrict=1024]="AlwaysStrict",e[e.MaxValue=2048]="MaxValue",e[e.PriorityImpliesCombination=416]="PriorityImpliesCombination",e[e.Circularity=-1]="Circularity",e))(ri||{}),ii=(e=>(e[e.None=0]="None",e[e.NoDefault=1]="NoDefault",e[e.AnyDefault=2]="AnyDefault",e[e.SkippedGenericFunction=4]="SkippedGenericFunction",e))(ii||{}),oi=(e=>(e[e.False=0]="False",e[e.Unknown=1]="Unknown",e[e.Maybe=3]="Maybe",e[e.True=-1]="True",e))(oi||{}),ai=(e=>(e[e.None=0]="None",e[e.ExportsProperty=1]="ExportsProperty",e[e.ModuleExports=2]="ModuleExports",e[e.PrototypeProperty=3]="PrototypeProperty",e[e.ThisProperty=4]="ThisProperty",e[e.Property=5]="Property",e[e.Prototype=6]="Prototype",e[e.ObjectDefinePropertyValue=7]="ObjectDefinePropertyValue",e[e.ObjectDefinePropertyExports=8]="ObjectDefinePropertyExports",e[e.ObjectDefinePrototypeProperty=9]="ObjectDefinePrototypeProperty",e))(ai||{}),si=(e=>(e[e.Warning=0]="Warning",e[e.Error=1]="Error",e[e.Suggestion=2]="Suggestion",e[e.Message=3]="Message",e))(si||{});function ci(e,t=!0){const n=si[e.category];return t?n.toLowerCase():n}var li=(e=>(e[e.Classic=1]="Classic",e[e.NodeJs=2]="NodeJs",e[e.Node10=2]="Node10",e[e.Node16=3]="Node16",e[e.NodeNext=99]="NodeNext",e[e.Bundler=100]="Bundler",e))(li||{}),_i=(e=>(e[e.Legacy=1]="Legacy",e[e.Auto=2]="Auto",e[e.Force=3]="Force",e))(_i||{}),ui=(e=>(e[e.FixedPollingInterval=0]="FixedPollingInterval",e[e.PriorityPollingInterval=1]="PriorityPollingInterval",e[e.DynamicPriorityPolling=2]="DynamicPriorityPolling",e[e.FixedChunkSizePolling=3]="FixedChunkSizePolling",e[e.UseFsEvents=4]="UseFsEvents",e[e.UseFsEventsOnParentDirectory=5]="UseFsEventsOnParentDirectory",e))(ui||{}),di=(e=>(e[e.UseFsEvents=0]="UseFsEvents",e[e.FixedPollingInterval=1]="FixedPollingInterval",e[e.DynamicPriorityPolling=2]="DynamicPriorityPolling",e[e.FixedChunkSizePolling=3]="FixedChunkSizePolling",e))(di||{}),pi=(e=>(e[e.FixedInterval=0]="FixedInterval",e[e.PriorityInterval=1]="PriorityInterval",e[e.DynamicPriority=2]="DynamicPriority",e[e.FixedChunkSize=3]="FixedChunkSize",e))(pi||{}),fi=(e=>(e[e.None=0]="None",e[e.CommonJS=1]="CommonJS",e[e.AMD=2]="AMD",e[e.UMD=3]="UMD",e[e.System=4]="System",e[e.ES2015=5]="ES2015",e[e.ES2020=6]="ES2020",e[e.ES2022=7]="ES2022",e[e.ESNext=99]="ESNext",e[e.Node16=100]="Node16",e[e.NodeNext=199]="NodeNext",e[e.Preserve=200]="Preserve",e))(fi||{}),mi=(e=>(e[e.None=0]="None",e[e.Preserve=1]="Preserve",e[e.React=2]="React",e[e.ReactNative=3]="ReactNative",e[e.ReactJSX=4]="ReactJSX",e[e.ReactJSXDev=5]="ReactJSXDev",e))(mi||{}),gi=(e=>(e[e.Remove=0]="Remove",e[e.Preserve=1]="Preserve",e[e.Error=2]="Error",e))(gi||{}),hi=(e=>(e[e.CarriageReturnLineFeed=0]="CarriageReturnLineFeed",e[e.LineFeed=1]="LineFeed",e))(hi||{}),yi=(e=>(e[e.Unknown=0]="Unknown",e[e.JS=1]="JS",e[e.JSX=2]="JSX",e[e.TS=3]="TS",e[e.TSX=4]="TSX",e[e.External=5]="External",e[e.JSON=6]="JSON",e[e.Deferred=7]="Deferred",e))(yi||{}),vi=(e=>(e[e.ES3=0]="ES3",e[e.ES5=1]="ES5",e[e.ES2015=2]="ES2015",e[e.ES2016=3]="ES2016",e[e.ES2017=4]="ES2017",e[e.ES2018=5]="ES2018",e[e.ES2019=6]="ES2019",e[e.ES2020=7]="ES2020",e[e.ES2021=8]="ES2021",e[e.ES2022=9]="ES2022",e[e.ES2023=10]="ES2023",e[e.ES2024=11]="ES2024",e[e.ESNext=99]="ESNext",e[e.JSON=100]="JSON",e[e.Latest=99]="Latest",e))(vi||{}),bi=(e=>(e[e.Standard=0]="Standard",e[e.JSX=1]="JSX",e))(bi||{}),xi=(e=>(e[e.None=0]="None",e[e.Recursive=1]="Recursive",e))(xi||{}),ki=(e=>(e[e.EOF=-1]="EOF",e[e.nullCharacter=0]="nullCharacter",e[e.maxAsciiCharacter=127]="maxAsciiCharacter",e[e.lineFeed=10]="lineFeed",e[e.carriageReturn=13]="carriageReturn",e[e.lineSeparator=8232]="lineSeparator",e[e.paragraphSeparator=8233]="paragraphSeparator",e[e.nextLine=133]="nextLine",e[e.space=32]="space",e[e.nonBreakingSpace=160]="nonBreakingSpace",e[e.enQuad=8192]="enQuad",e[e.emQuad=8193]="emQuad",e[e.enSpace=8194]="enSpace",e[e.emSpace=8195]="emSpace",e[e.threePerEmSpace=8196]="threePerEmSpace",e[e.fourPerEmSpace=8197]="fourPerEmSpace",e[e.sixPerEmSpace=8198]="sixPerEmSpace",e[e.figureSpace=8199]="figureSpace",e[e.punctuationSpace=8200]="punctuationSpace",e[e.thinSpace=8201]="thinSpace",e[e.hairSpace=8202]="hairSpace",e[e.zeroWidthSpace=8203]="zeroWidthSpace",e[e.narrowNoBreakSpace=8239]="narrowNoBreakSpace",e[e.ideographicSpace=12288]="ideographicSpace",e[e.mathematicalSpace=8287]="mathematicalSpace",e[e.ogham=5760]="ogham",e[e.replacementCharacter=65533]="replacementCharacter",e[e._=95]="_",e[e.$=36]="$",e[e._0=48]="_0",e[e._1=49]="_1",e[e._2=50]="_2",e[e._3=51]="_3",e[e._4=52]="_4",e[e._5=53]="_5",e[e._6=54]="_6",e[e._7=55]="_7",e[e._8=56]="_8",e[e._9=57]="_9",e[e.a=97]="a",e[e.b=98]="b",e[e.c=99]="c",e[e.d=100]="d",e[e.e=101]="e",e[e.f=102]="f",e[e.g=103]="g",e[e.h=104]="h",e[e.i=105]="i",e[e.j=106]="j",e[e.k=107]="k",e[e.l=108]="l",e[e.m=109]="m",e[e.n=110]="n",e[e.o=111]="o",e[e.p=112]="p",e[e.q=113]="q",e[e.r=114]="r",e[e.s=115]="s",e[e.t=116]="t",e[e.u=117]="u",e[e.v=118]="v",e[e.w=119]="w",e[e.x=120]="x",e[e.y=121]="y",e[e.z=122]="z",e[e.A=65]="A",e[e.B=66]="B",e[e.C=67]="C",e[e.D=68]="D",e[e.E=69]="E",e[e.F=70]="F",e[e.G=71]="G",e[e.H=72]="H",e[e.I=73]="I",e[e.J=74]="J",e[e.K=75]="K",e[e.L=76]="L",e[e.M=77]="M",e[e.N=78]="N",e[e.O=79]="O",e[e.P=80]="P",e[e.Q=81]="Q",e[e.R=82]="R",e[e.S=83]="S",e[e.T=84]="T",e[e.U=85]="U",e[e.V=86]="V",e[e.W=87]="W",e[e.X=88]="X",e[e.Y=89]="Y",e[e.Z=90]="Z",e[e.ampersand=38]="ampersand",e[e.asterisk=42]="asterisk",e[e.at=64]="at",e[e.backslash=92]="backslash",e[e.backtick=96]="backtick",e[e.bar=124]="bar",e[e.caret=94]="caret",e[e.closeBrace=125]="closeBrace",e[e.closeBracket=93]="closeBracket",e[e.closeParen=41]="closeParen",e[e.colon=58]="colon",e[e.comma=44]="comma",e[e.dot=46]="dot",e[e.doubleQuote=34]="doubleQuote",e[e.equals=61]="equals",e[e.exclamation=33]="exclamation",e[e.greaterThan=62]="greaterThan",e[e.hash=35]="hash",e[e.lessThan=60]="lessThan",e[e.minus=45]="minus",e[e.openBrace=123]="openBrace",e[e.openBracket=91]="openBracket",e[e.openParen=40]="openParen",e[e.percent=37]="percent",e[e.plus=43]="plus",e[e.question=63]="question",e[e.semicolon=59]="semicolon",e[e.singleQuote=39]="singleQuote",e[e.slash=47]="slash",e[e.tilde=126]="tilde",e[e.backspace=8]="backspace",e[e.formFeed=12]="formFeed",e[e.byteOrderMark=65279]="byteOrderMark",e[e.tab=9]="tab",e[e.verticalTab=11]="verticalTab",e))(ki||{}),Si=(e=>(e.Ts=".ts",e.Tsx=".tsx",e.Dts=".d.ts",e.Js=".js",e.Jsx=".jsx",e.Json=".json",e.TsBuildInfo=".tsbuildinfo",e.Mjs=".mjs",e.Mts=".mts",e.Dmts=".d.mts",e.Cjs=".cjs",e.Cts=".cts",e.Dcts=".d.cts",e))(Si||{}),Ti=(e=>(e[e.None=0]="None",e[e.ContainsTypeScript=1]="ContainsTypeScript",e[e.ContainsJsx=2]="ContainsJsx",e[e.ContainsESNext=4]="ContainsESNext",e[e.ContainsES2022=8]="ContainsES2022",e[e.ContainsES2021=16]="ContainsES2021",e[e.ContainsES2020=32]="ContainsES2020",e[e.ContainsES2019=64]="ContainsES2019",e[e.ContainsES2018=128]="ContainsES2018",e[e.ContainsES2017=256]="ContainsES2017",e[e.ContainsES2016=512]="ContainsES2016",e[e.ContainsES2015=1024]="ContainsES2015",e[e.ContainsGenerator=2048]="ContainsGenerator",e[e.ContainsDestructuringAssignment=4096]="ContainsDestructuringAssignment",e[e.ContainsTypeScriptClassSyntax=8192]="ContainsTypeScriptClassSyntax",e[e.ContainsLexicalThis=16384]="ContainsLexicalThis",e[e.ContainsRestOrSpread=32768]="ContainsRestOrSpread",e[e.ContainsObjectRestOrSpread=65536]="ContainsObjectRestOrSpread",e[e.ContainsComputedPropertyName=131072]="ContainsComputedPropertyName",e[e.ContainsBlockScopedBinding=262144]="ContainsBlockScopedBinding",e[e.ContainsBindingPattern=524288]="ContainsBindingPattern",e[e.ContainsYield=1048576]="ContainsYield",e[e.ContainsAwait=2097152]="ContainsAwait",e[e.ContainsHoistedDeclarationOrCompletion=4194304]="ContainsHoistedDeclarationOrCompletion",e[e.ContainsDynamicImport=8388608]="ContainsDynamicImport",e[e.ContainsClassFields=16777216]="ContainsClassFields",e[e.ContainsDecorators=33554432]="ContainsDecorators",e[e.ContainsPossibleTopLevelAwait=67108864]="ContainsPossibleTopLevelAwait",e[e.ContainsLexicalSuper=134217728]="ContainsLexicalSuper",e[e.ContainsUpdateExpressionForIdentifier=268435456]="ContainsUpdateExpressionForIdentifier",e[e.ContainsPrivateIdentifierInExpression=536870912]="ContainsPrivateIdentifierInExpression",e[e.HasComputedFlags=-2147483648]="HasComputedFlags",e[e.AssertTypeScript=1]="AssertTypeScript",e[e.AssertJsx=2]="AssertJsx",e[e.AssertESNext=4]="AssertESNext",e[e.AssertES2022=8]="AssertES2022",e[e.AssertES2021=16]="AssertES2021",e[e.AssertES2020=32]="AssertES2020",e[e.AssertES2019=64]="AssertES2019",e[e.AssertES2018=128]="AssertES2018",e[e.AssertES2017=256]="AssertES2017",e[e.AssertES2016=512]="AssertES2016",e[e.AssertES2015=1024]="AssertES2015",e[e.AssertGenerator=2048]="AssertGenerator",e[e.AssertDestructuringAssignment=4096]="AssertDestructuringAssignment",e[e.OuterExpressionExcludes=-2147483648]="OuterExpressionExcludes",e[e.PropertyAccessExcludes=-2147483648]="PropertyAccessExcludes",e[e.NodeExcludes=-2147483648]="NodeExcludes",e[e.ArrowFunctionExcludes=-2072174592]="ArrowFunctionExcludes",e[e.FunctionExcludes=-1937940480]="FunctionExcludes",e[e.ConstructorExcludes=-1937948672]="ConstructorExcludes",e[e.MethodOrAccessorExcludes=-2005057536]="MethodOrAccessorExcludes",e[e.PropertyExcludes=-2013249536]="PropertyExcludes",e[e.ClassExcludes=-2147344384]="ClassExcludes",e[e.ModuleExcludes=-1941676032]="ModuleExcludes",e[e.TypeExcludes=-2]="TypeExcludes",e[e.ObjectLiteralExcludes=-2147278848]="ObjectLiteralExcludes",e[e.ArrayLiteralOrCallOrNewExcludes=-2147450880]="ArrayLiteralOrCallOrNewExcludes",e[e.VariableDeclarationListExcludes=-2146893824]="VariableDeclarationListExcludes",e[e.ParameterExcludes=-2147483648]="ParameterExcludes",e[e.CatchClauseExcludes=-2147418112]="CatchClauseExcludes",e[e.BindingPatternExcludes=-2147450880]="BindingPatternExcludes",e[e.ContainsLexicalThisOrSuper=134234112]="ContainsLexicalThisOrSuper",e[e.PropertyNamePropagatingFlags=134234112]="PropertyNamePropagatingFlags",e))(Ti||{}),Ci=(e=>(e[e.TabStop=0]="TabStop",e[e.Placeholder=1]="Placeholder",e[e.Choice=2]="Choice",e[e.Variable=3]="Variable",e))(Ci||{}),wi=(e=>(e[e.None=0]="None",e[e.SingleLine=1]="SingleLine",e[e.MultiLine=2]="MultiLine",e[e.AdviseOnEmitNode=4]="AdviseOnEmitNode",e[e.NoSubstitution=8]="NoSubstitution",e[e.CapturesThis=16]="CapturesThis",e[e.NoLeadingSourceMap=32]="NoLeadingSourceMap",e[e.NoTrailingSourceMap=64]="NoTrailingSourceMap",e[e.NoSourceMap=96]="NoSourceMap",e[e.NoNestedSourceMaps=128]="NoNestedSourceMaps",e[e.NoTokenLeadingSourceMaps=256]="NoTokenLeadingSourceMaps",e[e.NoTokenTrailingSourceMaps=512]="NoTokenTrailingSourceMaps",e[e.NoTokenSourceMaps=768]="NoTokenSourceMaps",e[e.NoLeadingComments=1024]="NoLeadingComments",e[e.NoTrailingComments=2048]="NoTrailingComments",e[e.NoComments=3072]="NoComments",e[e.NoNestedComments=4096]="NoNestedComments",e[e.HelperName=8192]="HelperName",e[e.ExportName=16384]="ExportName",e[e.LocalName=32768]="LocalName",e[e.InternalName=65536]="InternalName",e[e.Indented=131072]="Indented",e[e.NoIndentation=262144]="NoIndentation",e[e.AsyncFunctionBody=524288]="AsyncFunctionBody",e[e.ReuseTempVariableScope=1048576]="ReuseTempVariableScope",e[e.CustomPrologue=2097152]="CustomPrologue",e[e.NoHoisting=4194304]="NoHoisting",e[e.Iterator=8388608]="Iterator",e[e.NoAsciiEscaping=16777216]="NoAsciiEscaping",e))(wi||{}),Ni=(e=>(e[e.None=0]="None",e[e.TypeScriptClassWrapper=1]="TypeScriptClassWrapper",e[e.NeverApplyImportHelper=2]="NeverApplyImportHelper",e[e.IgnoreSourceNewlines=4]="IgnoreSourceNewlines",e[e.Immutable=8]="Immutable",e[e.IndirectCall=16]="IndirectCall",e[e.TransformPrivateStaticElements=32]="TransformPrivateStaticElements",e))(Ni||{}),Di={Classes:2,ForOf:2,Generators:2,Iteration:2,SpreadElements:2,RestElements:2,TaggedTemplates:2,DestructuringAssignment:2,BindingPatterns:2,ArrowFunctions:2,BlockScopedVariables:2,ObjectAssign:2,RegularExpressionFlagsUnicode:2,RegularExpressionFlagsSticky:2,Exponentiation:3,AsyncFunctions:4,ForAwaitOf:5,AsyncGenerators:5,AsyncIteration:5,ObjectSpreadRest:5,RegularExpressionFlagsDotAll:5,BindinglessCatch:6,BigInt:7,NullishCoalesce:7,OptionalChaining:7,LogicalAssignment:8,TopLevelAwait:9,ClassFields:9,PrivateNamesAndClassStaticBlocks:9,RegularExpressionFlagsHasIndices:9,ShebangComments:10,RegularExpressionFlagsUnicodeSets:11,UsingAndAwaitUsing:99,ClassAndClassElementDecorators:99},Fi=(e=>(e[e.Extends=1]="Extends",e[e.Assign=2]="Assign",e[e.Rest=4]="Rest",e[e.Decorate=8]="Decorate",e[e.ESDecorateAndRunInitializers=8]="ESDecorateAndRunInitializers",e[e.Metadata=16]="Metadata",e[e.Param=32]="Param",e[e.Awaiter=64]="Awaiter",e[e.Generator=128]="Generator",e[e.Values=256]="Values",e[e.Read=512]="Read",e[e.SpreadArray=1024]="SpreadArray",e[e.Await=2048]="Await",e[e.AsyncGenerator=4096]="AsyncGenerator",e[e.AsyncDelegator=8192]="AsyncDelegator",e[e.AsyncValues=16384]="AsyncValues",e[e.ExportStar=32768]="ExportStar",e[e.ImportStar=65536]="ImportStar",e[e.ImportDefault=131072]="ImportDefault",e[e.MakeTemplateObject=262144]="MakeTemplateObject",e[e.ClassPrivateFieldGet=524288]="ClassPrivateFieldGet",e[e.ClassPrivateFieldSet=1048576]="ClassPrivateFieldSet",e[e.ClassPrivateFieldIn=2097152]="ClassPrivateFieldIn",e[e.SetFunctionName=4194304]="SetFunctionName",e[e.PropKey=8388608]="PropKey",e[e.AddDisposableResourceAndDisposeResources=16777216]="AddDisposableResourceAndDisposeResources",e[e.RewriteRelativeImportExtension=33554432]="RewriteRelativeImportExtension",e[e.FirstEmitHelper=1]="FirstEmitHelper",e[e.LastEmitHelper=16777216]="LastEmitHelper",e[e.ForOfIncludes=256]="ForOfIncludes",e[e.ForAwaitOfIncludes=16384]="ForAwaitOfIncludes",e[e.AsyncGeneratorIncludes=6144]="AsyncGeneratorIncludes",e[e.AsyncDelegatorIncludes=26624]="AsyncDelegatorIncludes",e[e.SpreadIncludes=1536]="SpreadIncludes",e))(Fi||{}),Ei=(e=>(e[e.SourceFile=0]="SourceFile",e[e.Expression=1]="Expression",e[e.IdentifierName=2]="IdentifierName",e[e.MappedTypeParameter=3]="MappedTypeParameter",e[e.Unspecified=4]="Unspecified",e[e.EmbeddedStatement=5]="EmbeddedStatement",e[e.JsxAttributeValue=6]="JsxAttributeValue",e[e.ImportTypeNodeAttributes=7]="ImportTypeNodeAttributes",e))(Ei||{}),Pi=(e=>(e[e.Parentheses=1]="Parentheses",e[e.TypeAssertions=2]="TypeAssertions",e[e.NonNullAssertions=4]="NonNullAssertions",e[e.PartiallyEmittedExpressions=8]="PartiallyEmittedExpressions",e[e.ExpressionsWithTypeArguments=16]="ExpressionsWithTypeArguments",e[e.Assertions=6]="Assertions",e[e.All=31]="All",e[e.ExcludeJSDocTypeAssertion=-2147483648]="ExcludeJSDocTypeAssertion",e))(Pi||{}),Ai=(e=>(e[e.None=0]="None",e[e.InParameters=1]="InParameters",e[e.VariablesHoistedInParameters=2]="VariablesHoistedInParameters",e))(Ai||{}),Ii=(e=>(e[e.None=0]="None",e[e.SingleLine=0]="SingleLine",e[e.MultiLine=1]="MultiLine",e[e.PreserveLines=2]="PreserveLines",e[e.LinesMask=3]="LinesMask",e[e.NotDelimited=0]="NotDelimited",e[e.BarDelimited=4]="BarDelimited",e[e.AmpersandDelimited=8]="AmpersandDelimited",e[e.CommaDelimited=16]="CommaDelimited",e[e.AsteriskDelimited=32]="AsteriskDelimited",e[e.DelimitersMask=60]="DelimitersMask",e[e.AllowTrailingComma=64]="AllowTrailingComma",e[e.Indented=128]="Indented",e[e.SpaceBetweenBraces=256]="SpaceBetweenBraces",e[e.SpaceBetweenSiblings=512]="SpaceBetweenSiblings",e[e.Braces=1024]="Braces",e[e.Parenthesis=2048]="Parenthesis",e[e.AngleBrackets=4096]="AngleBrackets",e[e.SquareBrackets=8192]="SquareBrackets",e[e.BracketsMask=15360]="BracketsMask",e[e.OptionalIfUndefined=16384]="OptionalIfUndefined",e[e.OptionalIfEmpty=32768]="OptionalIfEmpty",e[e.Optional=49152]="Optional",e[e.PreferNewLine=65536]="PreferNewLine",e[e.NoTrailingNewLine=131072]="NoTrailingNewLine",e[e.NoInterveningComments=262144]="NoInterveningComments",e[e.NoSpaceIfEmpty=524288]="NoSpaceIfEmpty",e[e.SingleElement=1048576]="SingleElement",e[e.SpaceAfterList=2097152]="SpaceAfterList",e[e.Modifiers=2359808]="Modifiers",e[e.HeritageClauses=512]="HeritageClauses",e[e.SingleLineTypeLiteralMembers=768]="SingleLineTypeLiteralMembers",e[e.MultiLineTypeLiteralMembers=32897]="MultiLineTypeLiteralMembers",e[e.SingleLineTupleTypeElements=528]="SingleLineTupleTypeElements",e[e.MultiLineTupleTypeElements=657]="MultiLineTupleTypeElements",e[e.UnionTypeConstituents=516]="UnionTypeConstituents",e[e.IntersectionTypeConstituents=520]="IntersectionTypeConstituents",e[e.ObjectBindingPatternElements=525136]="ObjectBindingPatternElements",e[e.ArrayBindingPatternElements=524880]="ArrayBindingPatternElements",e[e.ObjectLiteralExpressionProperties=526226]="ObjectLiteralExpressionProperties",e[e.ImportAttributes=526226]="ImportAttributes",e[e.ImportClauseEntries=526226]="ImportClauseEntries",e[e.ArrayLiteralExpressionElements=8914]="ArrayLiteralExpressionElements",e[e.CommaListElements=528]="CommaListElements",e[e.CallExpressionArguments=2576]="CallExpressionArguments",e[e.NewExpressionArguments=18960]="NewExpressionArguments",e[e.TemplateExpressionSpans=262144]="TemplateExpressionSpans",e[e.SingleLineBlockStatements=768]="SingleLineBlockStatements",e[e.MultiLineBlockStatements=129]="MultiLineBlockStatements",e[e.VariableDeclarationList=528]="VariableDeclarationList",e[e.SingleLineFunctionBodyStatements=768]="SingleLineFunctionBodyStatements",e[e.MultiLineFunctionBodyStatements=1]="MultiLineFunctionBodyStatements",e[e.ClassHeritageClauses=0]="ClassHeritageClauses",e[e.ClassMembers=129]="ClassMembers",e[e.InterfaceMembers=129]="InterfaceMembers",e[e.EnumMembers=145]="EnumMembers",e[e.CaseBlockClauses=129]="CaseBlockClauses",e[e.NamedImportsOrExportsElements=525136]="NamedImportsOrExportsElements",e[e.JsxElementOrFragmentChildren=262144]="JsxElementOrFragmentChildren",e[e.JsxElementAttributes=262656]="JsxElementAttributes",e[e.CaseOrDefaultClauseStatements=163969]="CaseOrDefaultClauseStatements",e[e.HeritageClauseTypes=528]="HeritageClauseTypes",e[e.SourceFileStatements=131073]="SourceFileStatements",e[e.Decorators=2146305]="Decorators",e[e.TypeArguments=53776]="TypeArguments",e[e.TypeParameters=53776]="TypeParameters",e[e.Parameters=2576]="Parameters",e[e.IndexSignatureParameters=8848]="IndexSignatureParameters",e[e.JSDocComment=33]="JSDocComment",e))(Ii||{}),Oi=(e=>(e[e.None=0]="None",e[e.TripleSlashXML=1]="TripleSlashXML",e[e.SingleLine=2]="SingleLine",e[e.MultiLine=4]="MultiLine",e[e.All=7]="All",e[e.Default=7]="Default",e))(Oi||{}),Li={reference:{args:[{name:"types",optional:!0,captureSpan:!0},{name:"lib",optional:!0,captureSpan:!0},{name:"path",optional:!0,captureSpan:!0},{name:"no-default-lib",optional:!0},{name:"resolution-mode",optional:!0},{name:"preserve",optional:!0}],kind:1},"amd-dependency":{args:[{name:"path"},{name:"name",optional:!0}],kind:1},"amd-module":{args:[{name:"name"}],kind:1},"ts-check":{kind:2},"ts-nocheck":{kind:2},jsx:{args:[{name:"factory"}],kind:4},jsxfrag:{args:[{name:"factory"}],kind:4},jsximportsource:{args:[{name:"factory"}],kind:4},jsxruntime:{args:[{name:"factory"}],kind:4}},ji=(e=>(e[e.ParseAll=0]="ParseAll",e[e.ParseNone=1]="ParseNone",e[e.ParseForTypeErrors=2]="ParseForTypeErrors",e[e.ParseForTypeInfo=3]="ParseForTypeInfo",e))(ji||{});function Ri(e){let t=5381;for(let n=0;n(e[e.Created=0]="Created",e[e.Changed=1]="Changed",e[e.Deleted=2]="Deleted",e))(Bi||{}),Ji=(e=>(e[e.High=2e3]="High",e[e.Medium=500]="Medium",e[e.Low=250]="Low",e))(Ji||{}),zi=new Date(0);function qi(e,t){return e.getModifiedTime(t)||zi}function Ui(e){return{250:e.Low,500:e.Medium,2e3:e.High}}var Vi={Low:32,Medium:64,High:256},Wi=Ui(Vi),$i=Ui(Vi);function Hi(e,t,n,r,i){let o=n;for(let a=t.length;r&&a;++n===t.length&&(o{var i;return null==(i=e.get(o))?void 0:i.callbacks.slice().forEach((e=>e(t,n,r)))})),callbacks:[r]}),{close:()=>{const t=e.get(o);t&&zt(t.callbacks,r)&&!t.callbacks.length&&(e.delete(o),vU(t))}}}function Gi(e,t){const n=e.mtime.getTime(),r=t.getTime();return n!==r&&(e.mtime=t,e.callback(e.fileName,Xi(n,r),t),!0)}function Xi(e,t){return 0===e?0:0===t?2:1}var Qi=["/node_modules/.","/.git","/.#"],Yi=rt;function Zi(e){return Yi(e)}function eo(e){Yi=e}function to({watchDirectory:e,useCaseSensitiveFileNames:t,getCurrentDirectory:n,getAccessibleSortedChildDirectories:r,fileSystemEntryExists:i,realpath:o,setTimeout:a,clearTimeout:s}){const c=new Map,_=$e(),u=new Map;let d;const p=wt(!t),f=Wt(t);return(t,n,r,i)=>r?m(t,i,n):e(t,n,r,i);function m(t,n,r,o){const p=f(t);let m=c.get(p);m?m.refCount++:(m={watcher:e(t,(e=>{var r;x(e,n)||((null==n?void 0:n.synchronousWatchDirectory)?((null==(r=c.get(p))?void 0:r.targetWatcher)||g(t,p,e),b(t,p,n)):function(e,t,n,r){const o=c.get(t);o&&i(e,1)?function(e,t,n,r){const i=u.get(t);i?i.fileNames.push(n):u.set(t,{dirName:e,options:r,fileNames:[n]}),d&&(s(d),d=void 0),d=a(h,1e3,"timerToUpdateChildWatches")}(e,t,n,r):(g(e,t,n),v(o),y(o))}(t,p,e,n))}),!1,n),refCount:1,childWatches:l,targetWatcher:void 0,links:void 0},c.set(p,m),b(t,p,n)),o&&(m.links??(m.links=new Set)).add(o);const k=r&&{dirName:t,callback:r};return k&&_.add(p,k),{dirName:t,close:()=>{var e;const t=un.checkDefined(c.get(p));k&&_.remove(p,k),o&&(null==(e=t.links)||e.delete(o)),t.refCount--,t.refCount||(c.delete(p),t.links=void 0,vU(t),v(t),t.childWatches.forEach(tx))}}}function g(e,t,n,r){var i,o;let a,s;Ze(n)?a=n:s=n,_.forEach(((e,n)=>{if((!s||!0!==s.get(n))&&(n===t||Gt(t,n)&&t[n.length]===lo))if(s)if(r){const e=s.get(n);e?e.push(...r):s.set(n,r.slice())}else s.set(n,!0);else e.forEach((({callback:e})=>e(a)))})),null==(o=null==(i=c.get(t))?void 0:i.links)||o.forEach((t=>{const n=n=>jo(t,na(e,n,f));s?g(t,f(t),s,null==r?void 0:r.map(n)):g(t,f(t),n(a))}))}function h(){var e;d=void 0,Zi(`sysLog:: onTimerToUpdateChildWatches:: ${u.size}`);const t=Un(),n=new Map;for(;!d&&u.size;){const t=u.entries().next();un.assert(!t.done);const{value:[r,{dirName:i,options:o,fileNames:a}]}=t;u.delete(r);const s=b(i,r,o);(null==(e=c.get(r))?void 0:e.targetWatcher)||g(i,r,n,s?void 0:a)}Zi(`sysLog:: invokingWatchers:: Elapsed:: ${Un()-t}ms:: ${u.size}`),_.forEach(((e,t)=>{const r=n.get(t);r&&e.forEach((({callback:e,dirName:t})=>{Qe(r)?r.forEach(e):e(t)}))})),Zi(`sysLog:: Elapsed:: ${Un()-t}ms:: onTimerToUpdateChildWatches:: ${u.size} ${d}`)}function y(e){if(!e)return;const t=e.childWatches;e.childWatches=l;for(const e of t)e.close(),y(c.get(f(e.dirName)))}function v(e){(null==e?void 0:e.targetWatcher)&&(e.targetWatcher.close(),e.targetWatcher=void 0)}function b(e,t,n){const a=c.get(t);if(!a)return!1;const s=Jo(o(e));let _,u;return 0===p(s,e)?_=on(i(e,1)?B(r(e),(t=>{const r=Bo(t,e);return x(r,n)||0!==p(r,Jo(o(r)))?void 0:r})):l,a.childWatches,((e,t)=>p(e,t.dirName)),(function(e){d(m(e,n))}),tx,d):a.targetWatcher&&0===p(s,a.targetWatcher.dirName)?(_=!1,un.assert(a.childWatches===l)):(v(a),a.targetWatcher=m(s,n,void 0,e),a.childWatches.forEach(tx),_=!0),a.childWatches=u||l,_;function d(e){(u||(u=[])).push(e)}}function x(e,r){return $(Qi,(n=>function(e,n){return!!e.includes(n)||!t&&f(e).includes(n)}(e,n)))||ro(e,r,t,n)}}var no=(e=>(e[e.File=0]="File",e[e.Directory=1]="Directory",e))(no||{});function ro(e,t,n,r){return((null==t?void 0:t.excludeDirectories)||(null==t?void 0:t.excludeFiles))&&(kj(e,null==t?void 0:t.excludeFiles,n,r())||kj(e,null==t?void 0:t.excludeDirectories,n,r()))}function io(e,t,n,r,i){return(o,a)=>{if("rename"===o){const o=a?Jo(jo(e,a)):e;a&&ro(o,n,r,i)||t(o)}}}function oo({pollingWatchFileWorker:e,getModifiedTime:t,setTimeout:n,clearTimeout:r,fsWatchWorker:i,fileSystemEntryExists:o,useCaseSensitiveFileNames:a,getCurrentDirectory:s,fsSupportsRecursiveFsWatch:c,getAccessibleSortedChildDirectories:l,realpath:_,tscWatchFile:u,useNonPollingWatchers:d,tscWatchDirectory:p,inodeWatching:f,fsWatchWithTimestamp:m,sysLog:g}){const h=new Map,y=new Map,v=new Map;let b,x,k,S,T=!1;return{watchFile:C,watchDirectory:function(e,t,i,u){return c?P(e,1,io(e,t,u,a,s),i,500,yU(u)):(S||(S=to({useCaseSensitiveFileNames:a,getCurrentDirectory:s,fileSystemEntryExists:o,getAccessibleSortedChildDirectories:l,watchDirectory:F,realpath:_,setTimeout:n,clearTimeout:r})),S(e,t,i,u))}};function C(e,n,r,i){i=function(e,t){if(e&&void 0!==e.watchFile)return e;switch(u){case"PriorityPollingInterval":return{watchFile:1};case"DynamicPriorityPolling":return{watchFile:2};case"UseFsEvents":return D(4,1,e);case"UseFsEventsWithFallbackDynamicPolling":return D(4,2,e);case"UseFsEventsOnParentDirectory":t=!0;default:return t?D(5,1,e):{watchFile:4}}}(i,d);const o=un.checkDefined(i.watchFile);switch(o){case 0:return E(e,n,250,void 0);case 1:return E(e,n,r,void 0);case 2:return w()(e,n,r,void 0);case 3:return N()(e,n,void 0,void 0);case 4:return P(e,0,function(e,t,n){return(r,i,o)=>{"rename"===r?(o||(o=n(e)||zi),t(e,o!==zi?0:2,o)):t(e,1,o)}}(e,n,t),!1,r,yU(i));case 5:return k||(k=function(e,t,n,r){const i=$e(),o=r?new Map:void 0,a=new Map,s=Wt(t);return function(t,r,c,l){const _=s(t);1===i.add(_,r).length&&o&&o.set(_,n(t)||zi);const u=Do(_)||".",d=a.get(u)||function(t,r,c){const l=e(t,1,((e,r)=>{if(!Ze(r))return;const a=Bo(r,t),c=s(a),l=a&&i.get(c);if(l){let t,r=1;if(o){const i=o.get(c);if("change"===e&&(t=n(a)||zi,t.getTime()===i.getTime()))return;t||(t=n(a)||zi),o.set(c,t),i===zi?r=0:t===zi&&(r=2)}for(const e of l)e(a,r,t)}}),!1,500,c);return l.referenceCount=0,a.set(r,l),l}(Do(t)||".",u,l);return d.referenceCount++,{close:()=>{1===d.referenceCount?(d.close(),a.delete(u)):d.referenceCount--,i.remove(_,r)}}}}(P,a,t,m)),k(e,n,r,yU(i));default:un.assertNever(o)}}function w(){return b||(b=function(e){const t=[],n=[],r=a(250),i=a(500),o=a(2e3);return function(n,r,i){const o={fileName:n,callback:r,unchangedPolls:0,mtime:qi(e,n)};return t.push(o),u(o,i),{close:()=>{o.isClosed=!0,Vt(t,o)}}};function a(e){const t=[];return t.pollingInterval=e,t.pollIndex=0,t.pollScheduled=!1,t}function s(e,t){t.pollIndex=l(t,t.pollingInterval,t.pollIndex,Wi[t.pollingInterval]),t.length?p(t.pollingInterval):(un.assert(0===t.pollIndex),t.pollScheduled=!1)}function c(e,t){l(n,250,0,n.length),s(0,t),!t.pollScheduled&&n.length&&p(250)}function l(t,r,i,o){return Hi(e,t,i,o,(function(e,i,o){var a;o?(e.unchangedPolls=0,t!==n&&(t[i]=void 0,a=e,n.push(a),d(250))):e.unchangedPolls!==$i[r]?e.unchangedPolls++:t===n?(e.unchangedPolls=1,t[i]=void 0,u(e,250)):2e3!==r&&(e.unchangedPolls++,t[i]=void 0,u(e,250===r?500:2e3))}))}function _(e){switch(e){case 250:return r;case 500:return i;case 2e3:return o}}function u(e,t){_(t).push(e),d(t)}function d(e){_(e).pollScheduled||p(e)}function p(t){_(t).pollScheduled=e.setTimeout(250===t?c:s,t,250===t?"pollLowPollingIntervalQueue":"pollPollingIntervalQueue",_(t))}}({getModifiedTime:t,setTimeout:n}))}function N(){return x||(x=function(e){const t=[];let n,r=0;return function(n,r){const i={fileName:n,callback:r,mtime:qi(e,n)};return t.push(i),o(),{close:()=>{i.isClosed=!0,Vt(t,i)}}};function i(){n=void 0,r=Hi(e,t,r,Wi[250]),o()}function o(){t.length&&!n&&(n=e.setTimeout(i,2e3,"pollQueue"))}}({getModifiedTime:t,setTimeout:n}))}function D(e,t,n){const r=null==n?void 0:n.fallbackPolling;return{watchFile:e,fallbackPolling:void 0===r?t:r}}function F(e,t,n,r){un.assert(!n);const i=function(e){if(e&&void 0!==e.watchDirectory)return e;switch(p){case"RecursiveDirectoryUsingFsWatchFile":return{watchDirectory:1};case"RecursiveDirectoryUsingDynamicPriorityPolling":return{watchDirectory:2};default:const t=null==e?void 0:e.fallbackPolling;return{watchDirectory:0,fallbackPolling:void 0!==t?t:void 0}}}(r),o=un.checkDefined(i.watchDirectory);switch(o){case 1:return E(e,(()=>t(e)),500,void 0);case 2:return w()(e,(()=>t(e)),500,void 0);case 3:return N()(e,(()=>t(e)),void 0,void 0);case 0:return P(e,1,io(e,t,r,a,s),n,500,yU(i));default:un.assertNever(o)}}function E(t,n,r,i){return Ki(h,a,t,n,(n=>e(t,n,r,i)))}function P(e,n,r,s,c,l){return Ki(s?v:y,a,e,r,(r=>function(e,n,r,a,s,c){let l,_;f&&(l=e.substring(e.lastIndexOf(lo)),_=l.slice(lo.length));let u=o(e,n)?p():v();return{close:()=>{u&&(u.close(),u=void 0)}};function d(t){u&&(g(`sysLog:: ${e}:: Changing watcher to ${t===p?"Present":"Missing"}FileSystemEntryWatcher`),u.close(),u=t())}function p(){if(T)return g(`sysLog:: ${e}:: Defaulting to watchFile`),y();try{const t=(1!==n&&m?A:i)(e,a,f?h:r);return t.on("error",(()=>{r("rename",""),d(v)})),t}catch(t){return T||(T="ENOSPC"===t.code),g(`sysLog:: ${e}:: Changing to watchFile`),y()}}function h(n,i){let o;if(i&&Rt(i,"~")&&(o=i,i=i.slice(0,i.length-1)),"rename"!==n||i&&i!==_&&!Rt(i,l))o&&r(n,o),r(n,i);else{const a=t(e)||zi;o&&r(n,o,a),r(n,i,a),f?d(a===zi?v:p):a===zi&&d(v)}}function y(){return C(e,function(e){return(t,n,r)=>e(1===n?"change":"rename","",r)}(r),s,c)}function v(){return C(e,((n,i,o)=>{0===i&&(o||(o=t(e)||zi),o!==zi&&(r("rename","",o),d(p)))}),s,c)}}(e,n,r,s,c,l)))}function A(e,n,r){let o=t(e)||zi;return i(e,n,((n,i,a)=>{"change"===n&&(a||(a=t(e)||zi),a.getTime()===o.getTime())||(o=a||t(e)||zi,r(n,i,o))}))}}function ao(e){const t=e.writeFile;e.writeFile=(n,r,i)=>ev(n,r,!!i,((n,r,i)=>t.call(e,n,r,i)),(t=>e.createDirectory(t)),(t=>e.directoryExists(t)))}var so=(()=>{let e;return _n()&&(e=function(){const e=/^native |^\([^)]+\)$|^(?:internal[\\/]|[\w\s]+(?:\.js)?$)/,t=n(714),i=n(98),o=n(965);let a,s;try{a=n(728)}catch{a=void 0}let c="./profile.cpuprofile";const l="darwin"===process.platform,_="linux"===process.platform||l,u={throwIfNoEntry:!1},d=o.platform(),p="win32"!==d&&"win64"!==d&&!N((x=r,x.replace(/\w/g,(e=>{const t=e.toUpperCase();return e===t?e.toLowerCase():t})))),f=t.realpathSync.native?"win32"===process.platform?function(e){return e.length<260?t.realpathSync.native(e):t.realpathSync(e)}:t.realpathSync.native:t.realpathSync,m=r.endsWith("sys.js")?i.join(i.dirname("/"),"__fake__.js"):r,g="win32"===process.platform||l,h=dt((()=>process.cwd())),{watchFile:y,watchDirectory:v}=oo({pollingWatchFileWorker:function(e,n,r){let i;return t.watchFile(e,{persistent:!0,interval:r},o),{close:()=>t.unwatchFile(e,o)};function o(t,r){const o=0==+r.mtime||2===i;if(0==+t.mtime){if(o)return;i=2}else if(o)i=0;else{if(+t.mtime==+r.mtime)return;i=1}n(e,i,t.mtime)}},getModifiedTime:F,setTimeout,clearTimeout,fsWatchWorker:function(e,n,r){return t.watch(e,g?{persistent:!0,recursive:!!n}:{persistent:!0},r)},useCaseSensitiveFileNames:p,getCurrentDirectory:h,fileSystemEntryExists:w,fsSupportsRecursiveFsWatch:g,getAccessibleSortedChildDirectories:e=>C(e).directories,realpath:D,tscWatchFile:process.env.TSC_WATCHFILE,useNonPollingWatchers:!!process.env.TSC_NONPOLLING_WATCHER,tscWatchDirectory:process.env.TSC_WATCHDIRECTORY,inodeWatching:_,fsWatchWithTimestamp:l,sysLog:Zi}),b={args:process.argv.slice(2),newLine:o.EOL,useCaseSensitiveFileNames:p,write(e){process.stdout.write(e)},getWidthOfTerminal:()=>process.stdout.columns,writeOutputIsTTY:()=>process.stdout.isTTY,readFile:function(e,n){let r;try{r=t.readFileSync(e)}catch{return}let i=r.length;if(i>=2&&254===r[0]&&255===r[1]){i&=-2;for(let e=0;e=2&&255===r[0]&&254===r[1]?r.toString("utf16le",2):i>=3&&239===r[0]&&187===r[1]&&191===r[2]?r.toString("utf8",3):r.toString("utf8")},writeFile:function(e,n,r){let i;r&&(n="\ufeff"+n);try{i=t.openSync(e,"w"),t.writeSync(i,n,void 0,"utf8")}finally{void 0!==i&&t.closeSync(i)}},watchFile:y,watchDirectory:v,preferNonRecursiveWatch:!g,resolvePath:e=>i.resolve(e),fileExists:N,directoryExists:function(e){return w(e,1)},getAccessibleFileSystemEntries:C,createDirectory(e){if(!b.directoryExists(e))try{t.mkdirSync(e)}catch(e){if("EEXIST"!==e.code)throw e}},getExecutingFilePath:()=>m,getCurrentDirectory:h,getDirectories:function(e){return C(e).directories.slice()},getEnvironmentVariable:e=>process.env[e]||"",readDirectory:function(e,t,n,r,i){return mS(e,t,n,r,p,process.cwd(),i,C,D)},getModifiedTime:F,setModifiedTime:function(e,n){try{t.utimesSync(e,n,n)}catch{return}},deleteFile:function(e){try{return t.unlinkSync(e)}catch{return}},createHash:a?E:Ri,createSHA256Hash:a?E:void 0,getMemoryUsage:()=>(n.g.gc&&n.g.gc(),process.memoryUsage().heapUsed),getFileSize(e){const t=k(e);return(null==t?void 0:t.isFile())?t.size:0},exit(e){S((()=>process.exit(e)))},enableCPUProfiler:function(e,t){if(s)return t(),!1;const r=n(178);if(!r||!r.Session)return t(),!1;const i=new r.Session;return i.connect(),i.post("Profiler.enable",(()=>{i.post("Profiler.start",(()=>{s=i,c=e,t()}))})),!0},disableCPUProfiler:S,cpuProfilingEnabled:()=>!!s||T(process.execArgv,"--cpu-prof")||T(process.execArgv,"--prof"),realpath:D,debugMode:!!process.env.NODE_INSPECTOR_IPC||!!process.env.VSCODE_INSPECTOR_OPTIONS||$(process.execArgv,(e=>/^--(?:inspect|debug)(?:-brk)?(?:=\d+)?$/i.test(e)))||!!process.recordreplay,tryEnableSourceMapsForHost(){try{n(791).install()}catch{}},setTimeout,clearTimeout,clearScreen:()=>{process.stdout.write("")},setBlocking:()=>{var e;const t=null==(e=process.stdout)?void 0:e._handle;t&&t.setBlocking&&t.setBlocking(!0)},base64decode:e=>Buffer.from(e,"base64").toString("utf8"),base64encode:e=>Buffer.from(e).toString("base64"),require:(e,t)=>{try{const r=kR(t,e,b);return{module:n(992)(r),modulePath:r,error:void 0}}catch(e){return{module:void 0,modulePath:void 0,error:e}}}};var x;return b;function k(e){try{return t.statSync(e,u)}catch{return}}function S(n){if(s&&"stopping"!==s){const r=s;return s.post("Profiler.stop",((o,{profile:a})=>{var l;if(!o){(null==(l=k(c))?void 0:l.isDirectory())&&(c=i.join(c,`${(new Date).toISOString().replace(/:/g,"-")}+P${process.pid}.cpuprofile`));try{t.mkdirSync(i.dirname(c),{recursive:!0})}catch{}t.writeFileSync(c,JSON.stringify(function(t){let n=0;const r=new Map,o=Oo(i.dirname(m)),a=`file://${1===No(o)?"":"/"}${o}`;for(const i of t.nodes)if(i.callFrame.url){const t=Oo(i.callFrame.url);Zo(a,t,p)?i.callFrame.url=oa(a,t,a,Wt(p),!0):e.test(t)||(i.callFrame.url=(r.has(t)?r:r.set(t,`external${n}.js`)).get(t),n++)}return t}(a)))}s=void 0,r.disconnect(),n()})),s="stopping",!0}return n(),!1}function C(e){try{const n=t.readdirSync(e||".",{withFileTypes:!0}),r=[],i=[];for(const t of n){const n="string"==typeof t?t:t.name;if("."===n||".."===n)continue;let o;if("string"==typeof t||t.isSymbolicLink()){if(o=k(jo(e,n)),!o)continue}else o=t;o.isFile()?r.push(n):o.isDirectory()&&i.push(n)}return r.sort(),i.sort(),{files:r,directories:i}}catch{return tT}}function w(e,t){const n=k(e);if(!n)return!1;switch(t){case 0:return n.isFile();case 1:return n.isDirectory();default:return!1}}function N(e){return w(e,0)}function D(e){try{return f(e)}catch{return e}}function F(e){var t;return null==(t=k(e))?void 0:t.mtime}function E(e){const t=a.createHash("sha256");return t.update(e),t.digest("hex")}}()),e&&ao(e),e})();function co(e){so=e}so&&so.getEnvironmentVariable&&(function(e){if(!e.getEnvironmentVariable)return;const t=function(e,t){const r=n("TSC_WATCH_POLLINGINTERVAL");return!!r&&(i("Low"),i("Medium"),i("High"),!0);function i(e){t[e]=r[e]||t[e]}}(0,Ji);function n(t){let n;return r("Low"),r("Medium"),r("High"),n;function r(r){const i=function(t,n){return e.getEnvironmentVariable(`${t}_${n.toUpperCase()}`)}(t,r);i&&((n||(n={}))[r]=Number(i))}}function r(e,r){const i=n(e);return(t||i)&&Ui(i?{...r,...i}:r)}Wi=r("TSC_WATCH_POLLINGCHUNKSIZE",Vi)||Wi,$i=r("TSC_WATCH_UNCHANGEDPOLLTHRESHOLDS",Vi)||$i}(so),un.setAssertionLevel(/^development$/i.test(so.getEnvironmentVariable("NODE_ENV"))?1:0)),so&&so.debugMode&&(un.isDebugging=!0);var lo="/",_o="\\",uo="://",po=/\\/g;function fo(e){return 47===e||92===e}function mo(e){return wo(e)<0}function go(e){return wo(e)>0}function ho(e){const t=wo(e);return t>0&&t===e.length}function yo(e){return 0!==wo(e)}function vo(e){return/^\.\.?(?:$|[\\/])/.test(e)}function bo(e){return!yo(e)&&!vo(e)}function xo(e){return Fo(e).includes(".")}function ko(e,t){return e.length>t.length&&Rt(e,t)}function So(e,t){for(const n of t)if(ko(e,n))return!0;return!1}function To(e){return e.length>0&&fo(e.charCodeAt(e.length-1))}function Co(e){return e>=97&&e<=122||e>=65&&e<=90}function wo(e){if(!e)return 0;const t=e.charCodeAt(0);if(47===t||92===t){if(e.charCodeAt(1)!==t)return 1;const n=e.indexOf(47===t?lo:_o,2);return n<0?e.length:n+1}if(Co(t)&&58===e.charCodeAt(1)){const t=e.charCodeAt(2);if(47===t||92===t)return 3;if(2===e.length)return 2}const n=e.indexOf(uo);if(-1!==n){const t=n+uo.length,r=e.indexOf(lo,t);if(-1!==r){const i=e.slice(0,n),o=e.slice(t,r);if("file"===i&&(""===o||"localhost"===o)&&Co(e.charCodeAt(r+1))){const t=function(e,t){const n=e.charCodeAt(t);if(58===n)return t+1;if(37===n&&51===e.charCodeAt(t+1)){const n=e.charCodeAt(t+2);if(97===n||65===n)return t+3}return-1}(e,r+2);if(-1!==t){if(47===e.charCodeAt(t))return~(t+1);if(t===e.length)return~t}}return~(r+1)}return~e.length}return 0}function No(e){const t=wo(e);return t<0?~t:t}function Do(e){const t=No(e=Oo(e));return t===e.length?e:(e=Uo(e)).slice(0,Math.max(t,e.lastIndexOf(lo)))}function Fo(e,t,n){if(No(e=Oo(e))===e.length)return"";const r=(e=Uo(e)).slice(Math.max(No(e),e.lastIndexOf(lo)+1)),i=void 0!==t&&void 0!==n?Po(r,t,n):void 0;return i?r.slice(0,r.length-i.length):r}function Eo(e,t,n){if(Gt(t,".")||(t="."+t),e.length>=t.length&&46===e.charCodeAt(e.length-t.length)){const r=e.slice(e.length-t.length);if(n(r,t))return r}}function Po(e,t,n){if(t)return function(e,t,n){if("string"==typeof t)return Eo(e,t,n)||"";for(const r of t){const t=Eo(e,r,n);if(t)return t}return""}(Uo(e),t,n?gt:ht);const r=Fo(e),i=r.lastIndexOf(".");return i>=0?r.substring(i):""}function Ao(e,t=""){return function(e,t){const n=e.substring(0,t),r=e.substring(t).split(lo);return r.length&&!ye(r)&&r.pop(),[n,...r]}(e=jo(t,e),No(e))}function Io(e,t){return 0===e.length?"":(e[0]&&Vo(e[0]))+e.slice(1,t).join(lo)}function Oo(e){return e.includes("\\")?e.replace(po,lo):e}function Lo(e){if(!$(e))return[];const t=[e[0]];for(let n=1;n1){if(".."!==t[t.length-1]){t.pop();continue}}else if(t[0])continue;t.push(r)}}return t}function jo(e,...t){e&&(e=Oo(e));for(let n of t)n&&(n=Oo(n),e=e&&0===No(n)?Vo(e)+n:n);return e}function Ro(e,...t){return Jo($(t)?jo(e,...t):Oo(e))}function Mo(e,t){return Lo(Ao(e,t))}function Bo(e,t){return Io(Mo(e,t))}function Jo(e){if(e=Oo(e),!Ko.test(e))return e;const t=e.replace(/\/\.\//g,"/").replace(/^\.\//,"");if(t!==e&&(e=t,!Ko.test(e)))return e;const n=Io(Lo(Ao(e)));return n&&To(e)?Vo(n):n}function zo(e,t){return 0===(n=Mo(e,t)).length?"":n.slice(1).join(lo);var n}function qo(e,t,n){return n(go(e)?Jo(e):Bo(e,t))}function Uo(e){return To(e)?e.substr(0,e.length-1):e}function Vo(e){return To(e)?e:e+lo}function Wo(e){return yo(e)||vo(e)?e:"./"+e}function $o(e,t,n,r){const i=void 0!==n&&void 0!==r?Po(e,n,r):Po(e);return i?e.slice(0,e.length-i.length)+(Gt(t,".")?t:"."+t):e}function Ho(e,t){const n=HI(e);return n?e.slice(0,e.length-n.length)+(Gt(t,".")?t:"."+t):$o(e,t)}var Ko=/\/\/|(?:^|\/)\.\.?(?:$|\/)/;function Go(e,t,n){if(e===t)return 0;if(void 0===e)return-1;if(void 0===t)return 1;const r=e.substring(0,No(e)),i=t.substring(0,No(t)),o=St(r,i);if(0!==o)return o;const a=e.substring(r.length),s=t.substring(i.length);if(!Ko.test(a)&&!Ko.test(s))return n(a,s);const c=Lo(Ao(e)),l=Lo(Ao(t)),_=Math.min(c.length,l.length);for(let e=1;e<_;e++){const t=n(c[e],l[e]);if(0!==t)return t}return vt(c.length,l.length)}function Xo(e,t){return Go(e,t,Ct)}function Qo(e,t){return Go(e,t,St)}function Yo(e,t,n,r){return"string"==typeof n?(e=jo(n,e),t=jo(n,t)):"boolean"==typeof n&&(r=n),Go(e,t,wt(r))}function Zo(e,t,n,r){if("string"==typeof n?(e=jo(n,e),t=jo(n,t)):"boolean"==typeof n&&(r=n),void 0===e||void 0===t)return!1;if(e===t)return!0;const i=Lo(Ao(e)),o=Lo(Ao(t));if(o.length0==No(t)>0,"Paths must either both be absolute or both be relative"),Io(ta(e,t,"boolean"==typeof n&&n?gt:ht,"function"==typeof n?n:st))}function ra(e,t,n){return go(e)?oa(t,e,t,n,!1):e}function ia(e,t,n){return Wo(na(Do(e),t,n))}function oa(e,t,n,r,i){const o=ta(Ro(n,e),Ro(n,t),ht,r),a=o[0];if(i&&go(a)){const e=a.charAt(0)===lo?"file://":"file:///";o[0]=e+a}return Io(o)}function aa(e,t){for(;;){const n=t(e);if(void 0!==n)return n;const r=Do(e);if(r===e)return;e=r}}function sa(e){return Rt(e,"/node_modules")}function ca(e,t,n,r,i,o,a){return{code:e,category:t,key:n,message:r,reportsUnnecessary:i,elidedInCompatabilityPyramid:o,reportsDeprecated:a}}var la={Unterminated_string_literal:ca(1002,1,"Unterminated_string_literal_1002","Unterminated string literal."),Identifier_expected:ca(1003,1,"Identifier_expected_1003","Identifier expected."),_0_expected:ca(1005,1,"_0_expected_1005","'{0}' expected."),A_file_cannot_have_a_reference_to_itself:ca(1006,1,"A_file_cannot_have_a_reference_to_itself_1006","A file cannot have a reference to itself."),The_parser_expected_to_find_a_1_to_match_the_0_token_here:ca(1007,1,"The_parser_expected_to_find_a_1_to_match_the_0_token_here_1007","The parser expected to find a '{1}' to match the '{0}' token here."),Trailing_comma_not_allowed:ca(1009,1,"Trailing_comma_not_allowed_1009","Trailing comma not allowed."),Asterisk_Slash_expected:ca(1010,1,"Asterisk_Slash_expected_1010","'*/' expected."),An_element_access_expression_should_take_an_argument:ca(1011,1,"An_element_access_expression_should_take_an_argument_1011","An element access expression should take an argument."),Unexpected_token:ca(1012,1,"Unexpected_token_1012","Unexpected token."),A_rest_parameter_or_binding_pattern_may_not_have_a_trailing_comma:ca(1013,1,"A_rest_parameter_or_binding_pattern_may_not_have_a_trailing_comma_1013","A rest parameter or binding pattern may not have a trailing comma."),A_rest_parameter_must_be_last_in_a_parameter_list:ca(1014,1,"A_rest_parameter_must_be_last_in_a_parameter_list_1014","A rest parameter must be last in a parameter list."),Parameter_cannot_have_question_mark_and_initializer:ca(1015,1,"Parameter_cannot_have_question_mark_and_initializer_1015","Parameter cannot have question mark and initializer."),A_required_parameter_cannot_follow_an_optional_parameter:ca(1016,1,"A_required_parameter_cannot_follow_an_optional_parameter_1016","A required parameter cannot follow an optional parameter."),An_index_signature_cannot_have_a_rest_parameter:ca(1017,1,"An_index_signature_cannot_have_a_rest_parameter_1017","An index signature cannot have a rest parameter."),An_index_signature_parameter_cannot_have_an_accessibility_modifier:ca(1018,1,"An_index_signature_parameter_cannot_have_an_accessibility_modifier_1018","An index signature parameter cannot have an accessibility modifier."),An_index_signature_parameter_cannot_have_a_question_mark:ca(1019,1,"An_index_signature_parameter_cannot_have_a_question_mark_1019","An index signature parameter cannot have a question mark."),An_index_signature_parameter_cannot_have_an_initializer:ca(1020,1,"An_index_signature_parameter_cannot_have_an_initializer_1020","An index signature parameter cannot have an initializer."),An_index_signature_must_have_a_type_annotation:ca(1021,1,"An_index_signature_must_have_a_type_annotation_1021","An index signature must have a type annotation."),An_index_signature_parameter_must_have_a_type_annotation:ca(1022,1,"An_index_signature_parameter_must_have_a_type_annotation_1022","An index signature parameter must have a type annotation."),readonly_modifier_can_only_appear_on_a_property_declaration_or_index_signature:ca(1024,1,"readonly_modifier_can_only_appear_on_a_property_declaration_or_index_signature_1024","'readonly' modifier can only appear on a property declaration or index signature."),An_index_signature_cannot_have_a_trailing_comma:ca(1025,1,"An_index_signature_cannot_have_a_trailing_comma_1025","An index signature cannot have a trailing comma."),Accessibility_modifier_already_seen:ca(1028,1,"Accessibility_modifier_already_seen_1028","Accessibility modifier already seen."),_0_modifier_must_precede_1_modifier:ca(1029,1,"_0_modifier_must_precede_1_modifier_1029","'{0}' modifier must precede '{1}' modifier."),_0_modifier_already_seen:ca(1030,1,"_0_modifier_already_seen_1030","'{0}' modifier already seen."),_0_modifier_cannot_appear_on_class_elements_of_this_kind:ca(1031,1,"_0_modifier_cannot_appear_on_class_elements_of_this_kind_1031","'{0}' modifier cannot appear on class elements of this kind."),super_must_be_followed_by_an_argument_list_or_member_access:ca(1034,1,"super_must_be_followed_by_an_argument_list_or_member_access_1034","'super' must be followed by an argument list or member access."),Only_ambient_modules_can_use_quoted_names:ca(1035,1,"Only_ambient_modules_can_use_quoted_names_1035","Only ambient modules can use quoted names."),Statements_are_not_allowed_in_ambient_contexts:ca(1036,1,"Statements_are_not_allowed_in_ambient_contexts_1036","Statements are not allowed in ambient contexts."),A_declare_modifier_cannot_be_used_in_an_already_ambient_context:ca(1038,1,"A_declare_modifier_cannot_be_used_in_an_already_ambient_context_1038","A 'declare' modifier cannot be used in an already ambient context."),Initializers_are_not_allowed_in_ambient_contexts:ca(1039,1,"Initializers_are_not_allowed_in_ambient_contexts_1039","Initializers are not allowed in ambient contexts."),_0_modifier_cannot_be_used_in_an_ambient_context:ca(1040,1,"_0_modifier_cannot_be_used_in_an_ambient_context_1040","'{0}' modifier cannot be used in an ambient context."),_0_modifier_cannot_be_used_here:ca(1042,1,"_0_modifier_cannot_be_used_here_1042","'{0}' modifier cannot be used here."),_0_modifier_cannot_appear_on_a_module_or_namespace_element:ca(1044,1,"_0_modifier_cannot_appear_on_a_module_or_namespace_element_1044","'{0}' modifier cannot appear on a module or namespace element."),Top_level_declarations_in_d_ts_files_must_start_with_either_a_declare_or_export_modifier:ca(1046,1,"Top_level_declarations_in_d_ts_files_must_start_with_either_a_declare_or_export_modifier_1046","Top-level declarations in .d.ts files must start with either a 'declare' or 'export' modifier."),A_rest_parameter_cannot_be_optional:ca(1047,1,"A_rest_parameter_cannot_be_optional_1047","A rest parameter cannot be optional."),A_rest_parameter_cannot_have_an_initializer:ca(1048,1,"A_rest_parameter_cannot_have_an_initializer_1048","A rest parameter cannot have an initializer."),A_set_accessor_must_have_exactly_one_parameter:ca(1049,1,"A_set_accessor_must_have_exactly_one_parameter_1049","A 'set' accessor must have exactly one parameter."),A_set_accessor_cannot_have_an_optional_parameter:ca(1051,1,"A_set_accessor_cannot_have_an_optional_parameter_1051","A 'set' accessor cannot have an optional parameter."),A_set_accessor_parameter_cannot_have_an_initializer:ca(1052,1,"A_set_accessor_parameter_cannot_have_an_initializer_1052","A 'set' accessor parameter cannot have an initializer."),A_set_accessor_cannot_have_rest_parameter:ca(1053,1,"A_set_accessor_cannot_have_rest_parameter_1053","A 'set' accessor cannot have rest parameter."),A_get_accessor_cannot_have_parameters:ca(1054,1,"A_get_accessor_cannot_have_parameters_1054","A 'get' accessor cannot have parameters."),Type_0_is_not_a_valid_async_function_return_type_in_ES5_because_it_does_not_refer_to_a_Promise_compatible_constructor_value:ca(1055,1,"Type_0_is_not_a_valid_async_function_return_type_in_ES5_because_it_does_not_refer_to_a_Promise_compa_1055","Type '{0}' is not a valid async function return type in ES5 because it does not refer to a Promise-compatible constructor value."),Accessors_are_only_available_when_targeting_ECMAScript_5_and_higher:ca(1056,1,"Accessors_are_only_available_when_targeting_ECMAScript_5_and_higher_1056","Accessors are only available when targeting ECMAScript 5 and higher."),The_return_type_of_an_async_function_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member:ca(1058,1,"The_return_type_of_an_async_function_must_either_be_a_valid_promise_or_must_not_contain_a_callable_t_1058","The return type of an async function must either be a valid promise or must not contain a callable 'then' member."),A_promise_must_have_a_then_method:ca(1059,1,"A_promise_must_have_a_then_method_1059","A promise must have a 'then' method."),The_first_parameter_of_the_then_method_of_a_promise_must_be_a_callback:ca(1060,1,"The_first_parameter_of_the_then_method_of_a_promise_must_be_a_callback_1060","The first parameter of the 'then' method of a promise must be a callback."),Enum_member_must_have_initializer:ca(1061,1,"Enum_member_must_have_initializer_1061","Enum member must have initializer."),Type_is_referenced_directly_or_indirectly_in_the_fulfillment_callback_of_its_own_then_method:ca(1062,1,"Type_is_referenced_directly_or_indirectly_in_the_fulfillment_callback_of_its_own_then_method_1062","Type is referenced directly or indirectly in the fulfillment callback of its own 'then' method."),An_export_assignment_cannot_be_used_in_a_namespace:ca(1063,1,"An_export_assignment_cannot_be_used_in_a_namespace_1063","An export assignment cannot be used in a namespace."),The_return_type_of_an_async_function_or_method_must_be_the_global_Promise_T_type_Did_you_mean_to_write_Promise_0:ca(1064,1,"The_return_type_of_an_async_function_or_method_must_be_the_global_Promise_T_type_Did_you_mean_to_wri_1064","The return type of an async function or method must be the global Promise type. Did you mean to write 'Promise<{0}>'?"),The_return_type_of_an_async_function_or_method_must_be_the_global_Promise_T_type:ca(1065,1,"The_return_type_of_an_async_function_or_method_must_be_the_global_Promise_T_type_1065","The return type of an async function or method must be the global Promise type."),In_ambient_enum_declarations_member_initializer_must_be_constant_expression:ca(1066,1,"In_ambient_enum_declarations_member_initializer_must_be_constant_expression_1066","In ambient enum declarations member initializer must be constant expression."),Unexpected_token_A_constructor_method_accessor_or_property_was_expected:ca(1068,1,"Unexpected_token_A_constructor_method_accessor_or_property_was_expected_1068","Unexpected token. A constructor, method, accessor, or property was expected."),Unexpected_token_A_type_parameter_name_was_expected_without_curly_braces:ca(1069,1,"Unexpected_token_A_type_parameter_name_was_expected_without_curly_braces_1069","Unexpected token. A type parameter name was expected without curly braces."),_0_modifier_cannot_appear_on_a_type_member:ca(1070,1,"_0_modifier_cannot_appear_on_a_type_member_1070","'{0}' modifier cannot appear on a type member."),_0_modifier_cannot_appear_on_an_index_signature:ca(1071,1,"_0_modifier_cannot_appear_on_an_index_signature_1071","'{0}' modifier cannot appear on an index signature."),A_0_modifier_cannot_be_used_with_an_import_declaration:ca(1079,1,"A_0_modifier_cannot_be_used_with_an_import_declaration_1079","A '{0}' modifier cannot be used with an import declaration."),Invalid_reference_directive_syntax:ca(1084,1,"Invalid_reference_directive_syntax_1084","Invalid 'reference' directive syntax."),_0_modifier_cannot_appear_on_a_constructor_declaration:ca(1089,1,"_0_modifier_cannot_appear_on_a_constructor_declaration_1089","'{0}' modifier cannot appear on a constructor declaration."),_0_modifier_cannot_appear_on_a_parameter:ca(1090,1,"_0_modifier_cannot_appear_on_a_parameter_1090","'{0}' modifier cannot appear on a parameter."),Only_a_single_variable_declaration_is_allowed_in_a_for_in_statement:ca(1091,1,"Only_a_single_variable_declaration_is_allowed_in_a_for_in_statement_1091","Only a single variable declaration is allowed in a 'for...in' statement."),Type_parameters_cannot_appear_on_a_constructor_declaration:ca(1092,1,"Type_parameters_cannot_appear_on_a_constructor_declaration_1092","Type parameters cannot appear on a constructor declaration."),Type_annotation_cannot_appear_on_a_constructor_declaration:ca(1093,1,"Type_annotation_cannot_appear_on_a_constructor_declaration_1093","Type annotation cannot appear on a constructor declaration."),An_accessor_cannot_have_type_parameters:ca(1094,1,"An_accessor_cannot_have_type_parameters_1094","An accessor cannot have type parameters."),A_set_accessor_cannot_have_a_return_type_annotation:ca(1095,1,"A_set_accessor_cannot_have_a_return_type_annotation_1095","A 'set' accessor cannot have a return type annotation."),An_index_signature_must_have_exactly_one_parameter:ca(1096,1,"An_index_signature_must_have_exactly_one_parameter_1096","An index signature must have exactly one parameter."),_0_list_cannot_be_empty:ca(1097,1,"_0_list_cannot_be_empty_1097","'{0}' list cannot be empty."),Type_parameter_list_cannot_be_empty:ca(1098,1,"Type_parameter_list_cannot_be_empty_1098","Type parameter list cannot be empty."),Type_argument_list_cannot_be_empty:ca(1099,1,"Type_argument_list_cannot_be_empty_1099","Type argument list cannot be empty."),Invalid_use_of_0_in_strict_mode:ca(1100,1,"Invalid_use_of_0_in_strict_mode_1100","Invalid use of '{0}' in strict mode."),with_statements_are_not_allowed_in_strict_mode:ca(1101,1,"with_statements_are_not_allowed_in_strict_mode_1101","'with' statements are not allowed in strict mode."),delete_cannot_be_called_on_an_identifier_in_strict_mode:ca(1102,1,"delete_cannot_be_called_on_an_identifier_in_strict_mode_1102","'delete' cannot be called on an identifier in strict mode."),for_await_loops_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules:ca(1103,1,"for_await_loops_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules_1103","'for await' loops are only allowed within async functions and at the top levels of modules."),A_continue_statement_can_only_be_used_within_an_enclosing_iteration_statement:ca(1104,1,"A_continue_statement_can_only_be_used_within_an_enclosing_iteration_statement_1104","A 'continue' statement can only be used within an enclosing iteration statement."),A_break_statement_can_only_be_used_within_an_enclosing_iteration_or_switch_statement:ca(1105,1,"A_break_statement_can_only_be_used_within_an_enclosing_iteration_or_switch_statement_1105","A 'break' statement can only be used within an enclosing iteration or switch statement."),The_left_hand_side_of_a_for_of_statement_may_not_be_async:ca(1106,1,"The_left_hand_side_of_a_for_of_statement_may_not_be_async_1106","The left-hand side of a 'for...of' statement may not be 'async'."),Jump_target_cannot_cross_function_boundary:ca(1107,1,"Jump_target_cannot_cross_function_boundary_1107","Jump target cannot cross function boundary."),A_return_statement_can_only_be_used_within_a_function_body:ca(1108,1,"A_return_statement_can_only_be_used_within_a_function_body_1108","A 'return' statement can only be used within a function body."),Expression_expected:ca(1109,1,"Expression_expected_1109","Expression expected."),Type_expected:ca(1110,1,"Type_expected_1110","Type expected."),Private_field_0_must_be_declared_in_an_enclosing_class:ca(1111,1,"Private_field_0_must_be_declared_in_an_enclosing_class_1111","Private field '{0}' must be declared in an enclosing class."),A_default_clause_cannot_appear_more_than_once_in_a_switch_statement:ca(1113,1,"A_default_clause_cannot_appear_more_than_once_in_a_switch_statement_1113","A 'default' clause cannot appear more than once in a 'switch' statement."),Duplicate_label_0:ca(1114,1,"Duplicate_label_0_1114","Duplicate label '{0}'."),A_continue_statement_can_only_jump_to_a_label_of_an_enclosing_iteration_statement:ca(1115,1,"A_continue_statement_can_only_jump_to_a_label_of_an_enclosing_iteration_statement_1115","A 'continue' statement can only jump to a label of an enclosing iteration statement."),A_break_statement_can_only_jump_to_a_label_of_an_enclosing_statement:ca(1116,1,"A_break_statement_can_only_jump_to_a_label_of_an_enclosing_statement_1116","A 'break' statement can only jump to a label of an enclosing statement."),An_object_literal_cannot_have_multiple_properties_with_the_same_name:ca(1117,1,"An_object_literal_cannot_have_multiple_properties_with_the_same_name_1117","An object literal cannot have multiple properties with the same name."),An_object_literal_cannot_have_multiple_get_Slashset_accessors_with_the_same_name:ca(1118,1,"An_object_literal_cannot_have_multiple_get_Slashset_accessors_with_the_same_name_1118","An object literal cannot have multiple get/set accessors with the same name."),An_object_literal_cannot_have_property_and_accessor_with_the_same_name:ca(1119,1,"An_object_literal_cannot_have_property_and_accessor_with_the_same_name_1119","An object literal cannot have property and accessor with the same name."),An_export_assignment_cannot_have_modifiers:ca(1120,1,"An_export_assignment_cannot_have_modifiers_1120","An export assignment cannot have modifiers."),Octal_literals_are_not_allowed_Use_the_syntax_0:ca(1121,1,"Octal_literals_are_not_allowed_Use_the_syntax_0_1121","Octal literals are not allowed. Use the syntax '{0}'."),Variable_declaration_list_cannot_be_empty:ca(1123,1,"Variable_declaration_list_cannot_be_empty_1123","Variable declaration list cannot be empty."),Digit_expected:ca(1124,1,"Digit_expected_1124","Digit expected."),Hexadecimal_digit_expected:ca(1125,1,"Hexadecimal_digit_expected_1125","Hexadecimal digit expected."),Unexpected_end_of_text:ca(1126,1,"Unexpected_end_of_text_1126","Unexpected end of text."),Invalid_character:ca(1127,1,"Invalid_character_1127","Invalid character."),Declaration_or_statement_expected:ca(1128,1,"Declaration_or_statement_expected_1128","Declaration or statement expected."),Statement_expected:ca(1129,1,"Statement_expected_1129","Statement expected."),case_or_default_expected:ca(1130,1,"case_or_default_expected_1130","'case' or 'default' expected."),Property_or_signature_expected:ca(1131,1,"Property_or_signature_expected_1131","Property or signature expected."),Enum_member_expected:ca(1132,1,"Enum_member_expected_1132","Enum member expected."),Variable_declaration_expected:ca(1134,1,"Variable_declaration_expected_1134","Variable declaration expected."),Argument_expression_expected:ca(1135,1,"Argument_expression_expected_1135","Argument expression expected."),Property_assignment_expected:ca(1136,1,"Property_assignment_expected_1136","Property assignment expected."),Expression_or_comma_expected:ca(1137,1,"Expression_or_comma_expected_1137","Expression or comma expected."),Parameter_declaration_expected:ca(1138,1,"Parameter_declaration_expected_1138","Parameter declaration expected."),Type_parameter_declaration_expected:ca(1139,1,"Type_parameter_declaration_expected_1139","Type parameter declaration expected."),Type_argument_expected:ca(1140,1,"Type_argument_expected_1140","Type argument expected."),String_literal_expected:ca(1141,1,"String_literal_expected_1141","String literal expected."),Line_break_not_permitted_here:ca(1142,1,"Line_break_not_permitted_here_1142","Line break not permitted here."),or_expected:ca(1144,1,"or_expected_1144","'{' or ';' expected."),or_JSX_element_expected:ca(1145,1,"or_JSX_element_expected_1145","'{' or JSX element expected."),Declaration_expected:ca(1146,1,"Declaration_expected_1146","Declaration expected."),Import_declarations_in_a_namespace_cannot_reference_a_module:ca(1147,1,"Import_declarations_in_a_namespace_cannot_reference_a_module_1147","Import declarations in a namespace cannot reference a module."),Cannot_use_imports_exports_or_module_augmentations_when_module_is_none:ca(1148,1,"Cannot_use_imports_exports_or_module_augmentations_when_module_is_none_1148","Cannot use imports, exports, or module augmentations when '--module' is 'none'."),File_name_0_differs_from_already_included_file_name_1_only_in_casing:ca(1149,1,"File_name_0_differs_from_already_included_file_name_1_only_in_casing_1149","File name '{0}' differs from already included file name '{1}' only in casing."),_0_declarations_must_be_initialized:ca(1155,1,"_0_declarations_must_be_initialized_1155","'{0}' declarations must be initialized."),_0_declarations_can_only_be_declared_inside_a_block:ca(1156,1,"_0_declarations_can_only_be_declared_inside_a_block_1156","'{0}' declarations can only be declared inside a block."),Unterminated_template_literal:ca(1160,1,"Unterminated_template_literal_1160","Unterminated template literal."),Unterminated_regular_expression_literal:ca(1161,1,"Unterminated_regular_expression_literal_1161","Unterminated regular expression literal."),An_object_member_cannot_be_declared_optional:ca(1162,1,"An_object_member_cannot_be_declared_optional_1162","An object member cannot be declared optional."),A_yield_expression_is_only_allowed_in_a_generator_body:ca(1163,1,"A_yield_expression_is_only_allowed_in_a_generator_body_1163","A 'yield' expression is only allowed in a generator body."),Computed_property_names_are_not_allowed_in_enums:ca(1164,1,"Computed_property_names_are_not_allowed_in_enums_1164","Computed property names are not allowed in enums."),A_computed_property_name_in_an_ambient_context_must_refer_to_an_expression_whose_type_is_a_literal_type_or_a_unique_symbol_type:ca(1165,1,"A_computed_property_name_in_an_ambient_context_must_refer_to_an_expression_whose_type_is_a_literal_t_1165","A computed property name in an ambient context must refer to an expression whose type is a literal type or a 'unique symbol' type."),A_computed_property_name_in_a_class_property_declaration_must_have_a_simple_literal_type_or_a_unique_symbol_type:ca(1166,1,"A_computed_property_name_in_a_class_property_declaration_must_have_a_simple_literal_type_or_a_unique_1166","A computed property name in a class property declaration must have a simple literal type or a 'unique symbol' type."),A_computed_property_name_in_a_method_overload_must_refer_to_an_expression_whose_type_is_a_literal_type_or_a_unique_symbol_type:ca(1168,1,"A_computed_property_name_in_a_method_overload_must_refer_to_an_expression_whose_type_is_a_literal_ty_1168","A computed property name in a method overload must refer to an expression whose type is a literal type or a 'unique symbol' type."),A_computed_property_name_in_an_interface_must_refer_to_an_expression_whose_type_is_a_literal_type_or_a_unique_symbol_type:ca(1169,1,"A_computed_property_name_in_an_interface_must_refer_to_an_expression_whose_type_is_a_literal_type_or_1169","A computed property name in an interface must refer to an expression whose type is a literal type or a 'unique symbol' type."),A_computed_property_name_in_a_type_literal_must_refer_to_an_expression_whose_type_is_a_literal_type_or_a_unique_symbol_type:ca(1170,1,"A_computed_property_name_in_a_type_literal_must_refer_to_an_expression_whose_type_is_a_literal_type__1170","A computed property name in a type literal must refer to an expression whose type is a literal type or a 'unique symbol' type."),A_comma_expression_is_not_allowed_in_a_computed_property_name:ca(1171,1,"A_comma_expression_is_not_allowed_in_a_computed_property_name_1171","A comma expression is not allowed in a computed property name."),extends_clause_already_seen:ca(1172,1,"extends_clause_already_seen_1172","'extends' clause already seen."),extends_clause_must_precede_implements_clause:ca(1173,1,"extends_clause_must_precede_implements_clause_1173","'extends' clause must precede 'implements' clause."),Classes_can_only_extend_a_single_class:ca(1174,1,"Classes_can_only_extend_a_single_class_1174","Classes can only extend a single class."),implements_clause_already_seen:ca(1175,1,"implements_clause_already_seen_1175","'implements' clause already seen."),Interface_declaration_cannot_have_implements_clause:ca(1176,1,"Interface_declaration_cannot_have_implements_clause_1176","Interface declaration cannot have 'implements' clause."),Binary_digit_expected:ca(1177,1,"Binary_digit_expected_1177","Binary digit expected."),Octal_digit_expected:ca(1178,1,"Octal_digit_expected_1178","Octal digit expected."),Unexpected_token_expected:ca(1179,1,"Unexpected_token_expected_1179","Unexpected token. '{' expected."),Property_destructuring_pattern_expected:ca(1180,1,"Property_destructuring_pattern_expected_1180","Property destructuring pattern expected."),Array_element_destructuring_pattern_expected:ca(1181,1,"Array_element_destructuring_pattern_expected_1181","Array element destructuring pattern expected."),A_destructuring_declaration_must_have_an_initializer:ca(1182,1,"A_destructuring_declaration_must_have_an_initializer_1182","A destructuring declaration must have an initializer."),An_implementation_cannot_be_declared_in_ambient_contexts:ca(1183,1,"An_implementation_cannot_be_declared_in_ambient_contexts_1183","An implementation cannot be declared in ambient contexts."),Modifiers_cannot_appear_here:ca(1184,1,"Modifiers_cannot_appear_here_1184","Modifiers cannot appear here."),Merge_conflict_marker_encountered:ca(1185,1,"Merge_conflict_marker_encountered_1185","Merge conflict marker encountered."),A_rest_element_cannot_have_an_initializer:ca(1186,1,"A_rest_element_cannot_have_an_initializer_1186","A rest element cannot have an initializer."),A_parameter_property_may_not_be_declared_using_a_binding_pattern:ca(1187,1,"A_parameter_property_may_not_be_declared_using_a_binding_pattern_1187","A parameter property may not be declared using a binding pattern."),Only_a_single_variable_declaration_is_allowed_in_a_for_of_statement:ca(1188,1,"Only_a_single_variable_declaration_is_allowed_in_a_for_of_statement_1188","Only a single variable declaration is allowed in a 'for...of' statement."),The_variable_declaration_of_a_for_in_statement_cannot_have_an_initializer:ca(1189,1,"The_variable_declaration_of_a_for_in_statement_cannot_have_an_initializer_1189","The variable declaration of a 'for...in' statement cannot have an initializer."),The_variable_declaration_of_a_for_of_statement_cannot_have_an_initializer:ca(1190,1,"The_variable_declaration_of_a_for_of_statement_cannot_have_an_initializer_1190","The variable declaration of a 'for...of' statement cannot have an initializer."),An_import_declaration_cannot_have_modifiers:ca(1191,1,"An_import_declaration_cannot_have_modifiers_1191","An import declaration cannot have modifiers."),Module_0_has_no_default_export:ca(1192,1,"Module_0_has_no_default_export_1192","Module '{0}' has no default export."),An_export_declaration_cannot_have_modifiers:ca(1193,1,"An_export_declaration_cannot_have_modifiers_1193","An export declaration cannot have modifiers."),Export_declarations_are_not_permitted_in_a_namespace:ca(1194,1,"Export_declarations_are_not_permitted_in_a_namespace_1194","Export declarations are not permitted in a namespace."),export_Asterisk_does_not_re_export_a_default:ca(1195,1,"export_Asterisk_does_not_re_export_a_default_1195","'export *' does not re-export a default."),Catch_clause_variable_type_annotation_must_be_any_or_unknown_if_specified:ca(1196,1,"Catch_clause_variable_type_annotation_must_be_any_or_unknown_if_specified_1196","Catch clause variable type annotation must be 'any' or 'unknown' if specified."),Catch_clause_variable_cannot_have_an_initializer:ca(1197,1,"Catch_clause_variable_cannot_have_an_initializer_1197","Catch clause variable cannot have an initializer."),An_extended_Unicode_escape_value_must_be_between_0x0_and_0x10FFFF_inclusive:ca(1198,1,"An_extended_Unicode_escape_value_must_be_between_0x0_and_0x10FFFF_inclusive_1198","An extended Unicode escape value must be between 0x0 and 0x10FFFF inclusive."),Unterminated_Unicode_escape_sequence:ca(1199,1,"Unterminated_Unicode_escape_sequence_1199","Unterminated Unicode escape sequence."),Line_terminator_not_permitted_before_arrow:ca(1200,1,"Line_terminator_not_permitted_before_arrow_1200","Line terminator not permitted before arrow."),Import_assignment_cannot_be_used_when_targeting_ECMAScript_modules_Consider_using_import_Asterisk_as_ns_from_mod_import_a_from_mod_import_d_from_mod_or_another_module_format_instead:ca(1202,1,"Import_assignment_cannot_be_used_when_targeting_ECMAScript_modules_Consider_using_import_Asterisk_as_1202","Import assignment cannot be used when targeting ECMAScript modules. Consider using 'import * as ns from \"mod\"', 'import {a} from \"mod\"', 'import d from \"mod\"', or another module format instead."),Export_assignment_cannot_be_used_when_targeting_ECMAScript_modules_Consider_using_export_default_or_another_module_format_instead:ca(1203,1,"Export_assignment_cannot_be_used_when_targeting_ECMAScript_modules_Consider_using_export_default_or__1203","Export assignment cannot be used when targeting ECMAScript modules. Consider using 'export default' or another module format instead."),Re_exporting_a_type_when_0_is_enabled_requires_using_export_type:ca(1205,1,"Re_exporting_a_type_when_0_is_enabled_requires_using_export_type_1205","Re-exporting a type when '{0}' is enabled requires using 'export type'."),Decorators_are_not_valid_here:ca(1206,1,"Decorators_are_not_valid_here_1206","Decorators are not valid here."),Decorators_cannot_be_applied_to_multiple_get_Slashset_accessors_of_the_same_name:ca(1207,1,"Decorators_cannot_be_applied_to_multiple_get_Slashset_accessors_of_the_same_name_1207","Decorators cannot be applied to multiple get/set accessors of the same name."),Invalid_optional_chain_from_new_expression_Did_you_mean_to_call_0:ca(1209,1,"Invalid_optional_chain_from_new_expression_Did_you_mean_to_call_0_1209","Invalid optional chain from new expression. Did you mean to call '{0}()'?"),Code_contained_in_a_class_is_evaluated_in_JavaScript_s_strict_mode_which_does_not_allow_this_use_of_0_For_more_information_see_https_Colon_Slash_Slashdeveloper_mozilla_org_Slashen_US_Slashdocs_SlashWeb_SlashJavaScript_SlashReference_SlashStrict_mode:ca(1210,1,"Code_contained_in_a_class_is_evaluated_in_JavaScript_s_strict_mode_which_does_not_allow_this_use_of__1210","Code contained in a class is evaluated in JavaScript's strict mode which does not allow this use of '{0}'. For more information, see https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Strict_mode."),A_class_declaration_without_the_default_modifier_must_have_a_name:ca(1211,1,"A_class_declaration_without_the_default_modifier_must_have_a_name_1211","A class declaration without the 'default' modifier must have a name."),Identifier_expected_0_is_a_reserved_word_in_strict_mode:ca(1212,1,"Identifier_expected_0_is_a_reserved_word_in_strict_mode_1212","Identifier expected. '{0}' is a reserved word in strict mode."),Identifier_expected_0_is_a_reserved_word_in_strict_mode_Class_definitions_are_automatically_in_strict_mode:ca(1213,1,"Identifier_expected_0_is_a_reserved_word_in_strict_mode_Class_definitions_are_automatically_in_stric_1213","Identifier expected. '{0}' is a reserved word in strict mode. Class definitions are automatically in strict mode."),Identifier_expected_0_is_a_reserved_word_in_strict_mode_Modules_are_automatically_in_strict_mode:ca(1214,1,"Identifier_expected_0_is_a_reserved_word_in_strict_mode_Modules_are_automatically_in_strict_mode_1214","Identifier expected. '{0}' is a reserved word in strict mode. Modules are automatically in strict mode."),Invalid_use_of_0_Modules_are_automatically_in_strict_mode:ca(1215,1,"Invalid_use_of_0_Modules_are_automatically_in_strict_mode_1215","Invalid use of '{0}'. Modules are automatically in strict mode."),Identifier_expected_esModule_is_reserved_as_an_exported_marker_when_transforming_ECMAScript_modules:ca(1216,1,"Identifier_expected_esModule_is_reserved_as_an_exported_marker_when_transforming_ECMAScript_modules_1216","Identifier expected. '__esModule' is reserved as an exported marker when transforming ECMAScript modules."),Export_assignment_is_not_supported_when_module_flag_is_system:ca(1218,1,"Export_assignment_is_not_supported_when_module_flag_is_system_1218","Export assignment is not supported when '--module' flag is 'system'."),Generators_are_not_allowed_in_an_ambient_context:ca(1221,1,"Generators_are_not_allowed_in_an_ambient_context_1221","Generators are not allowed in an ambient context."),An_overload_signature_cannot_be_declared_as_a_generator:ca(1222,1,"An_overload_signature_cannot_be_declared_as_a_generator_1222","An overload signature cannot be declared as a generator."),_0_tag_already_specified:ca(1223,1,"_0_tag_already_specified_1223","'{0}' tag already specified."),Signature_0_must_be_a_type_predicate:ca(1224,1,"Signature_0_must_be_a_type_predicate_1224","Signature '{0}' must be a type predicate."),Cannot_find_parameter_0:ca(1225,1,"Cannot_find_parameter_0_1225","Cannot find parameter '{0}'."),Type_predicate_0_is_not_assignable_to_1:ca(1226,1,"Type_predicate_0_is_not_assignable_to_1_1226","Type predicate '{0}' is not assignable to '{1}'."),Parameter_0_is_not_in_the_same_position_as_parameter_1:ca(1227,1,"Parameter_0_is_not_in_the_same_position_as_parameter_1_1227","Parameter '{0}' is not in the same position as parameter '{1}'."),A_type_predicate_is_only_allowed_in_return_type_position_for_functions_and_methods:ca(1228,1,"A_type_predicate_is_only_allowed_in_return_type_position_for_functions_and_methods_1228","A type predicate is only allowed in return type position for functions and methods."),A_type_predicate_cannot_reference_a_rest_parameter:ca(1229,1,"A_type_predicate_cannot_reference_a_rest_parameter_1229","A type predicate cannot reference a rest parameter."),A_type_predicate_cannot_reference_element_0_in_a_binding_pattern:ca(1230,1,"A_type_predicate_cannot_reference_element_0_in_a_binding_pattern_1230","A type predicate cannot reference element '{0}' in a binding pattern."),An_export_assignment_must_be_at_the_top_level_of_a_file_or_module_declaration:ca(1231,1,"An_export_assignment_must_be_at_the_top_level_of_a_file_or_module_declaration_1231","An export assignment must be at the top level of a file or module declaration."),An_import_declaration_can_only_be_used_at_the_top_level_of_a_namespace_or_module:ca(1232,1,"An_import_declaration_can_only_be_used_at_the_top_level_of_a_namespace_or_module_1232","An import declaration can only be used at the top level of a namespace or module."),An_export_declaration_can_only_be_used_at_the_top_level_of_a_namespace_or_module:ca(1233,1,"An_export_declaration_can_only_be_used_at_the_top_level_of_a_namespace_or_module_1233","An export declaration can only be used at the top level of a namespace or module."),An_ambient_module_declaration_is_only_allowed_at_the_top_level_in_a_file:ca(1234,1,"An_ambient_module_declaration_is_only_allowed_at_the_top_level_in_a_file_1234","An ambient module declaration is only allowed at the top level in a file."),A_namespace_declaration_is_only_allowed_at_the_top_level_of_a_namespace_or_module:ca(1235,1,"A_namespace_declaration_is_only_allowed_at_the_top_level_of_a_namespace_or_module_1235","A namespace declaration is only allowed at the top level of a namespace or module."),The_return_type_of_a_property_decorator_function_must_be_either_void_or_any:ca(1236,1,"The_return_type_of_a_property_decorator_function_must_be_either_void_or_any_1236","The return type of a property decorator function must be either 'void' or 'any'."),The_return_type_of_a_parameter_decorator_function_must_be_either_void_or_any:ca(1237,1,"The_return_type_of_a_parameter_decorator_function_must_be_either_void_or_any_1237","The return type of a parameter decorator function must be either 'void' or 'any'."),Unable_to_resolve_signature_of_class_decorator_when_called_as_an_expression:ca(1238,1,"Unable_to_resolve_signature_of_class_decorator_when_called_as_an_expression_1238","Unable to resolve signature of class decorator when called as an expression."),Unable_to_resolve_signature_of_parameter_decorator_when_called_as_an_expression:ca(1239,1,"Unable_to_resolve_signature_of_parameter_decorator_when_called_as_an_expression_1239","Unable to resolve signature of parameter decorator when called as an expression."),Unable_to_resolve_signature_of_property_decorator_when_called_as_an_expression:ca(1240,1,"Unable_to_resolve_signature_of_property_decorator_when_called_as_an_expression_1240","Unable to resolve signature of property decorator when called as an expression."),Unable_to_resolve_signature_of_method_decorator_when_called_as_an_expression:ca(1241,1,"Unable_to_resolve_signature_of_method_decorator_when_called_as_an_expression_1241","Unable to resolve signature of method decorator when called as an expression."),abstract_modifier_can_only_appear_on_a_class_method_or_property_declaration:ca(1242,1,"abstract_modifier_can_only_appear_on_a_class_method_or_property_declaration_1242","'abstract' modifier can only appear on a class, method, or property declaration."),_0_modifier_cannot_be_used_with_1_modifier:ca(1243,1,"_0_modifier_cannot_be_used_with_1_modifier_1243","'{0}' modifier cannot be used with '{1}' modifier."),Abstract_methods_can_only_appear_within_an_abstract_class:ca(1244,1,"Abstract_methods_can_only_appear_within_an_abstract_class_1244","Abstract methods can only appear within an abstract class."),Method_0_cannot_have_an_implementation_because_it_is_marked_abstract:ca(1245,1,"Method_0_cannot_have_an_implementation_because_it_is_marked_abstract_1245","Method '{0}' cannot have an implementation because it is marked abstract."),An_interface_property_cannot_have_an_initializer:ca(1246,1,"An_interface_property_cannot_have_an_initializer_1246","An interface property cannot have an initializer."),A_type_literal_property_cannot_have_an_initializer:ca(1247,1,"A_type_literal_property_cannot_have_an_initializer_1247","A type literal property cannot have an initializer."),A_class_member_cannot_have_the_0_keyword:ca(1248,1,"A_class_member_cannot_have_the_0_keyword_1248","A class member cannot have the '{0}' keyword."),A_decorator_can_only_decorate_a_method_implementation_not_an_overload:ca(1249,1,"A_decorator_can_only_decorate_a_method_implementation_not_an_overload_1249","A decorator can only decorate a method implementation, not an overload."),Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES5:ca(1250,1,"Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES5_1250","Function declarations are not allowed inside blocks in strict mode when targeting 'ES5'."),Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES5_Class_definitions_are_automatically_in_strict_mode:ca(1251,1,"Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES5_Class_definiti_1251","Function declarations are not allowed inside blocks in strict mode when targeting 'ES5'. Class definitions are automatically in strict mode."),Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES5_Modules_are_automatically_in_strict_mode:ca(1252,1,"Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES5_Modules_are_au_1252","Function declarations are not allowed inside blocks in strict mode when targeting 'ES5'. Modules are automatically in strict mode."),Abstract_properties_can_only_appear_within_an_abstract_class:ca(1253,1,"Abstract_properties_can_only_appear_within_an_abstract_class_1253","Abstract properties can only appear within an abstract class."),A_const_initializer_in_an_ambient_context_must_be_a_string_or_numeric_literal_or_literal_enum_reference:ca(1254,1,"A_const_initializer_in_an_ambient_context_must_be_a_string_or_numeric_literal_or_literal_enum_refere_1254","A 'const' initializer in an ambient context must be a string or numeric literal or literal enum reference."),A_definite_assignment_assertion_is_not_permitted_in_this_context:ca(1255,1,"A_definite_assignment_assertion_is_not_permitted_in_this_context_1255","A definite assignment assertion '!' is not permitted in this context."),A_required_element_cannot_follow_an_optional_element:ca(1257,1,"A_required_element_cannot_follow_an_optional_element_1257","A required element cannot follow an optional element."),A_default_export_must_be_at_the_top_level_of_a_file_or_module_declaration:ca(1258,1,"A_default_export_must_be_at_the_top_level_of_a_file_or_module_declaration_1258","A default export must be at the top level of a file or module declaration."),Module_0_can_only_be_default_imported_using_the_1_flag:ca(1259,1,"Module_0_can_only_be_default_imported_using_the_1_flag_1259","Module '{0}' can only be default-imported using the '{1}' flag"),Keywords_cannot_contain_escape_characters:ca(1260,1,"Keywords_cannot_contain_escape_characters_1260","Keywords cannot contain escape characters."),Already_included_file_name_0_differs_from_file_name_1_only_in_casing:ca(1261,1,"Already_included_file_name_0_differs_from_file_name_1_only_in_casing_1261","Already included file name '{0}' differs from file name '{1}' only in casing."),Identifier_expected_0_is_a_reserved_word_at_the_top_level_of_a_module:ca(1262,1,"Identifier_expected_0_is_a_reserved_word_at_the_top_level_of_a_module_1262","Identifier expected. '{0}' is a reserved word at the top-level of a module."),Declarations_with_initializers_cannot_also_have_definite_assignment_assertions:ca(1263,1,"Declarations_with_initializers_cannot_also_have_definite_assignment_assertions_1263","Declarations with initializers cannot also have definite assignment assertions."),Declarations_with_definite_assignment_assertions_must_also_have_type_annotations:ca(1264,1,"Declarations_with_definite_assignment_assertions_must_also_have_type_annotations_1264","Declarations with definite assignment assertions must also have type annotations."),A_rest_element_cannot_follow_another_rest_element:ca(1265,1,"A_rest_element_cannot_follow_another_rest_element_1265","A rest element cannot follow another rest element."),An_optional_element_cannot_follow_a_rest_element:ca(1266,1,"An_optional_element_cannot_follow_a_rest_element_1266","An optional element cannot follow a rest element."),Property_0_cannot_have_an_initializer_because_it_is_marked_abstract:ca(1267,1,"Property_0_cannot_have_an_initializer_because_it_is_marked_abstract_1267","Property '{0}' cannot have an initializer because it is marked abstract."),An_index_signature_parameter_type_must_be_string_number_symbol_or_a_template_literal_type:ca(1268,1,"An_index_signature_parameter_type_must_be_string_number_symbol_or_a_template_literal_type_1268","An index signature parameter type must be 'string', 'number', 'symbol', or a template literal type."),Cannot_use_export_import_on_a_type_or_type_only_namespace_when_0_is_enabled:ca(1269,1,"Cannot_use_export_import_on_a_type_or_type_only_namespace_when_0_is_enabled_1269","Cannot use 'export import' on a type or type-only namespace when '{0}' is enabled."),Decorator_function_return_type_0_is_not_assignable_to_type_1:ca(1270,1,"Decorator_function_return_type_0_is_not_assignable_to_type_1_1270","Decorator function return type '{0}' is not assignable to type '{1}'."),Decorator_function_return_type_is_0_but_is_expected_to_be_void_or_any:ca(1271,1,"Decorator_function_return_type_is_0_but_is_expected_to_be_void_or_any_1271","Decorator function return type is '{0}' but is expected to be 'void' or 'any'."),A_type_referenced_in_a_decorated_signature_must_be_imported_with_import_type_or_a_namespace_import_when_isolatedModules_and_emitDecoratorMetadata_are_enabled:ca(1272,1,"A_type_referenced_in_a_decorated_signature_must_be_imported_with_import_type_or_a_namespace_import_w_1272","A type referenced in a decorated signature must be imported with 'import type' or a namespace import when 'isolatedModules' and 'emitDecoratorMetadata' are enabled."),_0_modifier_cannot_appear_on_a_type_parameter:ca(1273,1,"_0_modifier_cannot_appear_on_a_type_parameter_1273","'{0}' modifier cannot appear on a type parameter"),_0_modifier_can_only_appear_on_a_type_parameter_of_a_class_interface_or_type_alias:ca(1274,1,"_0_modifier_can_only_appear_on_a_type_parameter_of_a_class_interface_or_type_alias_1274","'{0}' modifier can only appear on a type parameter of a class, interface or type alias"),accessor_modifier_can_only_appear_on_a_property_declaration:ca(1275,1,"accessor_modifier_can_only_appear_on_a_property_declaration_1275","'accessor' modifier can only appear on a property declaration."),An_accessor_property_cannot_be_declared_optional:ca(1276,1,"An_accessor_property_cannot_be_declared_optional_1276","An 'accessor' property cannot be declared optional."),_0_modifier_can_only_appear_on_a_type_parameter_of_a_function_method_or_class:ca(1277,1,"_0_modifier_can_only_appear_on_a_type_parameter_of_a_function_method_or_class_1277","'{0}' modifier can only appear on a type parameter of a function, method or class"),The_runtime_will_invoke_the_decorator_with_1_arguments_but_the_decorator_expects_0:ca(1278,1,"The_runtime_will_invoke_the_decorator_with_1_arguments_but_the_decorator_expects_0_1278","The runtime will invoke the decorator with {1} arguments, but the decorator expects {0}."),The_runtime_will_invoke_the_decorator_with_1_arguments_but_the_decorator_expects_at_least_0:ca(1279,1,"The_runtime_will_invoke_the_decorator_with_1_arguments_but_the_decorator_expects_at_least_0_1279","The runtime will invoke the decorator with {1} arguments, but the decorator expects at least {0}."),Namespaces_are_not_allowed_in_global_script_files_when_0_is_enabled_If_this_file_is_not_intended_to_be_a_global_script_set_moduleDetection_to_force_or_add_an_empty_export_statement:ca(1280,1,"Namespaces_are_not_allowed_in_global_script_files_when_0_is_enabled_If_this_file_is_not_intended_to__1280","Namespaces are not allowed in global script files when '{0}' is enabled. If this file is not intended to be a global script, set 'moduleDetection' to 'force' or add an empty 'export {}' statement."),Cannot_access_0_from_another_file_without_qualification_when_1_is_enabled_Use_2_instead:ca(1281,1,"Cannot_access_0_from_another_file_without_qualification_when_1_is_enabled_Use_2_instead_1281","Cannot access '{0}' from another file without qualification when '{1}' is enabled. Use '{2}' instead."),An_export_declaration_must_reference_a_value_when_verbatimModuleSyntax_is_enabled_but_0_only_refers_to_a_type:ca(1282,1,"An_export_declaration_must_reference_a_value_when_verbatimModuleSyntax_is_enabled_but_0_only_refers__1282","An 'export =' declaration must reference a value when 'verbatimModuleSyntax' is enabled, but '{0}' only refers to a type."),An_export_declaration_must_reference_a_real_value_when_verbatimModuleSyntax_is_enabled_but_0_resolves_to_a_type_only_declaration:ca(1283,1,"An_export_declaration_must_reference_a_real_value_when_verbatimModuleSyntax_is_enabled_but_0_resolve_1283","An 'export =' declaration must reference a real value when 'verbatimModuleSyntax' is enabled, but '{0}' resolves to a type-only declaration."),An_export_default_must_reference_a_value_when_verbatimModuleSyntax_is_enabled_but_0_only_refers_to_a_type:ca(1284,1,"An_export_default_must_reference_a_value_when_verbatimModuleSyntax_is_enabled_but_0_only_refers_to_a_1284","An 'export default' must reference a value when 'verbatimModuleSyntax' is enabled, but '{0}' only refers to a type."),An_export_default_must_reference_a_real_value_when_verbatimModuleSyntax_is_enabled_but_0_resolves_to_a_type_only_declaration:ca(1285,1,"An_export_default_must_reference_a_real_value_when_verbatimModuleSyntax_is_enabled_but_0_resolves_to_1285","An 'export default' must reference a real value when 'verbatimModuleSyntax' is enabled, but '{0}' resolves to a type-only declaration."),ESM_syntax_is_not_allowed_in_a_CommonJS_module_when_verbatimModuleSyntax_is_enabled:ca(1286,1,"ESM_syntax_is_not_allowed_in_a_CommonJS_module_when_verbatimModuleSyntax_is_enabled_1286","ESM syntax is not allowed in a CommonJS module when 'verbatimModuleSyntax' is enabled."),A_top_level_export_modifier_cannot_be_used_on_value_declarations_in_a_CommonJS_module_when_verbatimModuleSyntax_is_enabled:ca(1287,1,"A_top_level_export_modifier_cannot_be_used_on_value_declarations_in_a_CommonJS_module_when_verbatimM_1287","A top-level 'export' modifier cannot be used on value declarations in a CommonJS module when 'verbatimModuleSyntax' is enabled."),An_import_alias_cannot_resolve_to_a_type_or_type_only_declaration_when_verbatimModuleSyntax_is_enabled:ca(1288,1,"An_import_alias_cannot_resolve_to_a_type_or_type_only_declaration_when_verbatimModuleSyntax_is_enabl_1288","An import alias cannot resolve to a type or type-only declaration when 'verbatimModuleSyntax' is enabled."),_0_resolves_to_a_type_only_declaration_and_must_be_marked_type_only_in_this_file_before_re_exporting_when_1_is_enabled_Consider_using_import_type_where_0_is_imported:ca(1289,1,"_0_resolves_to_a_type_only_declaration_and_must_be_marked_type_only_in_this_file_before_re_exporting_1289","'{0}' resolves to a type-only declaration and must be marked type-only in this file before re-exporting when '{1}' is enabled. Consider using 'import type' where '{0}' is imported."),_0_resolves_to_a_type_only_declaration_and_must_be_marked_type_only_in_this_file_before_re_exporting_when_1_is_enabled_Consider_using_export_type_0_as_default:ca(1290,1,"_0_resolves_to_a_type_only_declaration_and_must_be_marked_type_only_in_this_file_before_re_exporting_1290","'{0}' resolves to a type-only declaration and must be marked type-only in this file before re-exporting when '{1}' is enabled. Consider using 'export type { {0} as default }'."),_0_resolves_to_a_type_and_must_be_marked_type_only_in_this_file_before_re_exporting_when_1_is_enabled_Consider_using_import_type_where_0_is_imported:ca(1291,1,"_0_resolves_to_a_type_and_must_be_marked_type_only_in_this_file_before_re_exporting_when_1_is_enable_1291","'{0}' resolves to a type and must be marked type-only in this file before re-exporting when '{1}' is enabled. Consider using 'import type' where '{0}' is imported."),_0_resolves_to_a_type_and_must_be_marked_type_only_in_this_file_before_re_exporting_when_1_is_enabled_Consider_using_export_type_0_as_default:ca(1292,1,"_0_resolves_to_a_type_and_must_be_marked_type_only_in_this_file_before_re_exporting_when_1_is_enable_1292","'{0}' resolves to a type and must be marked type-only in this file before re-exporting when '{1}' is enabled. Consider using 'export type { {0} as default }'."),ESM_syntax_is_not_allowed_in_a_CommonJS_module_when_module_is_set_to_preserve:ca(1293,1,"ESM_syntax_is_not_allowed_in_a_CommonJS_module_when_module_is_set_to_preserve_1293","ESM syntax is not allowed in a CommonJS module when 'module' is set to 'preserve'."),with_statements_are_not_allowed_in_an_async_function_block:ca(1300,1,"with_statements_are_not_allowed_in_an_async_function_block_1300","'with' statements are not allowed in an async function block."),await_expressions_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules:ca(1308,1,"await_expressions_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules_1308","'await' expressions are only allowed within async functions and at the top levels of modules."),The_current_file_is_a_CommonJS_module_and_cannot_use_await_at_the_top_level:ca(1309,1,"The_current_file_is_a_CommonJS_module_and_cannot_use_await_at_the_top_level_1309","The current file is a CommonJS module and cannot use 'await' at the top level."),Did_you_mean_to_use_a_Colon_An_can_only_follow_a_property_name_when_the_containing_object_literal_is_part_of_a_destructuring_pattern:ca(1312,1,"Did_you_mean_to_use_a_Colon_An_can_only_follow_a_property_name_when_the_containing_object_literal_is_1312","Did you mean to use a ':'? An '=' can only follow a property name when the containing object literal is part of a destructuring pattern."),The_body_of_an_if_statement_cannot_be_the_empty_statement:ca(1313,1,"The_body_of_an_if_statement_cannot_be_the_empty_statement_1313","The body of an 'if' statement cannot be the empty statement."),Global_module_exports_may_only_appear_in_module_files:ca(1314,1,"Global_module_exports_may_only_appear_in_module_files_1314","Global module exports may only appear in module files."),Global_module_exports_may_only_appear_in_declaration_files:ca(1315,1,"Global_module_exports_may_only_appear_in_declaration_files_1315","Global module exports may only appear in declaration files."),Global_module_exports_may_only_appear_at_top_level:ca(1316,1,"Global_module_exports_may_only_appear_at_top_level_1316","Global module exports may only appear at top level."),A_parameter_property_cannot_be_declared_using_a_rest_parameter:ca(1317,1,"A_parameter_property_cannot_be_declared_using_a_rest_parameter_1317","A parameter property cannot be declared using a rest parameter."),An_abstract_accessor_cannot_have_an_implementation:ca(1318,1,"An_abstract_accessor_cannot_have_an_implementation_1318","An abstract accessor cannot have an implementation."),A_default_export_can_only_be_used_in_an_ECMAScript_style_module:ca(1319,1,"A_default_export_can_only_be_used_in_an_ECMAScript_style_module_1319","A default export can only be used in an ECMAScript-style module."),Type_of_await_operand_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member:ca(1320,1,"Type_of_await_operand_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member_1320","Type of 'await' operand must either be a valid promise or must not contain a callable 'then' member."),Type_of_yield_operand_in_an_async_generator_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member:ca(1321,1,"Type_of_yield_operand_in_an_async_generator_must_either_be_a_valid_promise_or_must_not_contain_a_cal_1321","Type of 'yield' operand in an async generator must either be a valid promise or must not contain a callable 'then' member."),Type_of_iterated_elements_of_a_yield_Asterisk_operand_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member:ca(1322,1,"Type_of_iterated_elements_of_a_yield_Asterisk_operand_must_either_be_a_valid_promise_or_must_not_con_1322","Type of iterated elements of a 'yield*' operand must either be a valid promise or must not contain a callable 'then' member."),Dynamic_imports_are_only_supported_when_the_module_flag_is_set_to_es2020_es2022_esnext_commonjs_amd_system_umd_node16_or_nodenext:ca(1323,1,"Dynamic_imports_are_only_supported_when_the_module_flag_is_set_to_es2020_es2022_esnext_commonjs_amd__1323","Dynamic imports are only supported when the '--module' flag is set to 'es2020', 'es2022', 'esnext', 'commonjs', 'amd', 'system', 'umd', 'node16', or 'nodenext'."),Dynamic_imports_only_support_a_second_argument_when_the_module_option_is_set_to_esnext_node16_nodenext_or_preserve:ca(1324,1,"Dynamic_imports_only_support_a_second_argument_when_the_module_option_is_set_to_esnext_node16_nodene_1324","Dynamic imports only support a second argument when the '--module' option is set to 'esnext', 'node16', 'nodenext', or 'preserve'."),Argument_of_dynamic_import_cannot_be_spread_element:ca(1325,1,"Argument_of_dynamic_import_cannot_be_spread_element_1325","Argument of dynamic import cannot be spread element."),This_use_of_import_is_invalid_import_calls_can_be_written_but_they_must_have_parentheses_and_cannot_have_type_arguments:ca(1326,1,"This_use_of_import_is_invalid_import_calls_can_be_written_but_they_must_have_parentheses_and_cannot__1326","This use of 'import' is invalid. 'import()' calls can be written, but they must have parentheses and cannot have type arguments."),String_literal_with_double_quotes_expected:ca(1327,1,"String_literal_with_double_quotes_expected_1327","String literal with double quotes expected."),Property_value_can_only_be_string_literal_numeric_literal_true_false_null_object_literal_or_array_literal:ca(1328,1,"Property_value_can_only_be_string_literal_numeric_literal_true_false_null_object_literal_or_array_li_1328","Property value can only be string literal, numeric literal, 'true', 'false', 'null', object literal or array literal."),_0_accepts_too_few_arguments_to_be_used_as_a_decorator_here_Did_you_mean_to_call_it_first_and_write_0:ca(1329,1,"_0_accepts_too_few_arguments_to_be_used_as_a_decorator_here_Did_you_mean_to_call_it_first_and_write__1329","'{0}' accepts too few arguments to be used as a decorator here. Did you mean to call it first and write '@{0}()'?"),A_property_of_an_interface_or_type_literal_whose_type_is_a_unique_symbol_type_must_be_readonly:ca(1330,1,"A_property_of_an_interface_or_type_literal_whose_type_is_a_unique_symbol_type_must_be_readonly_1330","A property of an interface or type literal whose type is a 'unique symbol' type must be 'readonly'."),A_property_of_a_class_whose_type_is_a_unique_symbol_type_must_be_both_static_and_readonly:ca(1331,1,"A_property_of_a_class_whose_type_is_a_unique_symbol_type_must_be_both_static_and_readonly_1331","A property of a class whose type is a 'unique symbol' type must be both 'static' and 'readonly'."),A_variable_whose_type_is_a_unique_symbol_type_must_be_const:ca(1332,1,"A_variable_whose_type_is_a_unique_symbol_type_must_be_const_1332","A variable whose type is a 'unique symbol' type must be 'const'."),unique_symbol_types_may_not_be_used_on_a_variable_declaration_with_a_binding_name:ca(1333,1,"unique_symbol_types_may_not_be_used_on_a_variable_declaration_with_a_binding_name_1333","'unique symbol' types may not be used on a variable declaration with a binding name."),unique_symbol_types_are_only_allowed_on_variables_in_a_variable_statement:ca(1334,1,"unique_symbol_types_are_only_allowed_on_variables_in_a_variable_statement_1334","'unique symbol' types are only allowed on variables in a variable statement."),unique_symbol_types_are_not_allowed_here:ca(1335,1,"unique_symbol_types_are_not_allowed_here_1335","'unique symbol' types are not allowed here."),An_index_signature_parameter_type_cannot_be_a_literal_type_or_generic_type_Consider_using_a_mapped_object_type_instead:ca(1337,1,"An_index_signature_parameter_type_cannot_be_a_literal_type_or_generic_type_Consider_using_a_mapped_o_1337","An index signature parameter type cannot be a literal type or generic type. Consider using a mapped object type instead."),infer_declarations_are_only_permitted_in_the_extends_clause_of_a_conditional_type:ca(1338,1,"infer_declarations_are_only_permitted_in_the_extends_clause_of_a_conditional_type_1338","'infer' declarations are only permitted in the 'extends' clause of a conditional type."),Module_0_does_not_refer_to_a_value_but_is_used_as_a_value_here:ca(1339,1,"Module_0_does_not_refer_to_a_value_but_is_used_as_a_value_here_1339","Module '{0}' does not refer to a value, but is used as a value here."),Module_0_does_not_refer_to_a_type_but_is_used_as_a_type_here_Did_you_mean_typeof_import_0:ca(1340,1,"Module_0_does_not_refer_to_a_type_but_is_used_as_a_type_here_Did_you_mean_typeof_import_0_1340","Module '{0}' does not refer to a type, but is used as a type here. Did you mean 'typeof import('{0}')'?"),Class_constructor_may_not_be_an_accessor:ca(1341,1,"Class_constructor_may_not_be_an_accessor_1341","Class constructor may not be an accessor."),The_import_meta_meta_property_is_only_allowed_when_the_module_option_is_es2020_es2022_esnext_system_node16_or_nodenext:ca(1343,1,"The_import_meta_meta_property_is_only_allowed_when_the_module_option_is_es2020_es2022_esnext_system__1343","The 'import.meta' meta-property is only allowed when the '--module' option is 'es2020', 'es2022', 'esnext', 'system', 'node16', or 'nodenext'."),A_label_is_not_allowed_here:ca(1344,1,"A_label_is_not_allowed_here_1344","'A label is not allowed here."),An_expression_of_type_void_cannot_be_tested_for_truthiness:ca(1345,1,"An_expression_of_type_void_cannot_be_tested_for_truthiness_1345","An expression of type 'void' cannot be tested for truthiness."),This_parameter_is_not_allowed_with_use_strict_directive:ca(1346,1,"This_parameter_is_not_allowed_with_use_strict_directive_1346","This parameter is not allowed with 'use strict' directive."),use_strict_directive_cannot_be_used_with_non_simple_parameter_list:ca(1347,1,"use_strict_directive_cannot_be_used_with_non_simple_parameter_list_1347","'use strict' directive cannot be used with non-simple parameter list."),Non_simple_parameter_declared_here:ca(1348,1,"Non_simple_parameter_declared_here_1348","Non-simple parameter declared here."),use_strict_directive_used_here:ca(1349,1,"use_strict_directive_used_here_1349","'use strict' directive used here."),Print_the_final_configuration_instead_of_building:ca(1350,3,"Print_the_final_configuration_instead_of_building_1350","Print the final configuration instead of building."),An_identifier_or_keyword_cannot_immediately_follow_a_numeric_literal:ca(1351,1,"An_identifier_or_keyword_cannot_immediately_follow_a_numeric_literal_1351","An identifier or keyword cannot immediately follow a numeric literal."),A_bigint_literal_cannot_use_exponential_notation:ca(1352,1,"A_bigint_literal_cannot_use_exponential_notation_1352","A bigint literal cannot use exponential notation."),A_bigint_literal_must_be_an_integer:ca(1353,1,"A_bigint_literal_must_be_an_integer_1353","A bigint literal must be an integer."),readonly_type_modifier_is_only_permitted_on_array_and_tuple_literal_types:ca(1354,1,"readonly_type_modifier_is_only_permitted_on_array_and_tuple_literal_types_1354","'readonly' type modifier is only permitted on array and tuple literal types."),A_const_assertions_can_only_be_applied_to_references_to_enum_members_or_string_number_boolean_array_or_object_literals:ca(1355,1,"A_const_assertions_can_only_be_applied_to_references_to_enum_members_or_string_number_boolean_array__1355","A 'const' assertions can only be applied to references to enum members, or string, number, boolean, array, or object literals."),Did_you_mean_to_mark_this_function_as_async:ca(1356,1,"Did_you_mean_to_mark_this_function_as_async_1356","Did you mean to mark this function as 'async'?"),An_enum_member_name_must_be_followed_by_a_or:ca(1357,1,"An_enum_member_name_must_be_followed_by_a_or_1357","An enum member name must be followed by a ',', '=', or '}'."),Tagged_template_expressions_are_not_permitted_in_an_optional_chain:ca(1358,1,"Tagged_template_expressions_are_not_permitted_in_an_optional_chain_1358","Tagged template expressions are not permitted in an optional chain."),Identifier_expected_0_is_a_reserved_word_that_cannot_be_used_here:ca(1359,1,"Identifier_expected_0_is_a_reserved_word_that_cannot_be_used_here_1359","Identifier expected. '{0}' is a reserved word that cannot be used here."),Type_0_does_not_satisfy_the_expected_type_1:ca(1360,1,"Type_0_does_not_satisfy_the_expected_type_1_1360","Type '{0}' does not satisfy the expected type '{1}'."),_0_cannot_be_used_as_a_value_because_it_was_imported_using_import_type:ca(1361,1,"_0_cannot_be_used_as_a_value_because_it_was_imported_using_import_type_1361","'{0}' cannot be used as a value because it was imported using 'import type'."),_0_cannot_be_used_as_a_value_because_it_was_exported_using_export_type:ca(1362,1,"_0_cannot_be_used_as_a_value_because_it_was_exported_using_export_type_1362","'{0}' cannot be used as a value because it was exported using 'export type'."),A_type_only_import_can_specify_a_default_import_or_named_bindings_but_not_both:ca(1363,1,"A_type_only_import_can_specify_a_default_import_or_named_bindings_but_not_both_1363","A type-only import can specify a default import or named bindings, but not both."),Convert_to_type_only_export:ca(1364,3,"Convert_to_type_only_export_1364","Convert to type-only export"),Convert_all_re_exported_types_to_type_only_exports:ca(1365,3,"Convert_all_re_exported_types_to_type_only_exports_1365","Convert all re-exported types to type-only exports"),Split_into_two_separate_import_declarations:ca(1366,3,"Split_into_two_separate_import_declarations_1366","Split into two separate import declarations"),Split_all_invalid_type_only_imports:ca(1367,3,"Split_all_invalid_type_only_imports_1367","Split all invalid type-only imports"),Class_constructor_may_not_be_a_generator:ca(1368,1,"Class_constructor_may_not_be_a_generator_1368","Class constructor may not be a generator."),Did_you_mean_0:ca(1369,3,"Did_you_mean_0_1369","Did you mean '{0}'?"),await_expressions_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_this_file_has_no_imports_or_exports_Consider_adding_an_empty_export_to_make_this_file_a_module:ca(1375,1,"await_expressions_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_this_fi_1375","'await' expressions are only allowed at the top level of a file when that file is a module, but this file has no imports or exports. Consider adding an empty 'export {}' to make this file a module."),_0_was_imported_here:ca(1376,3,"_0_was_imported_here_1376","'{0}' was imported here."),_0_was_exported_here:ca(1377,3,"_0_was_exported_here_1377","'{0}' was exported here."),Top_level_await_expressions_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_node16_nodenext_or_preserve_and_the_target_option_is_set_to_es2017_or_higher:ca(1378,1,"Top_level_await_expressions_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_n_1378","Top-level 'await' expressions are only allowed when the 'module' option is set to 'es2022', 'esnext', 'system', 'node16', 'nodenext', or 'preserve', and the 'target' option is set to 'es2017' or higher."),An_import_alias_cannot_reference_a_declaration_that_was_exported_using_export_type:ca(1379,1,"An_import_alias_cannot_reference_a_declaration_that_was_exported_using_export_type_1379","An import alias cannot reference a declaration that was exported using 'export type'."),An_import_alias_cannot_reference_a_declaration_that_was_imported_using_import_type:ca(1380,1,"An_import_alias_cannot_reference_a_declaration_that_was_imported_using_import_type_1380","An import alias cannot reference a declaration that was imported using 'import type'."),Unexpected_token_Did_you_mean_or_rbrace:ca(1381,1,"Unexpected_token_Did_you_mean_or_rbrace_1381","Unexpected token. Did you mean `{'}'}` or `}`?"),Unexpected_token_Did_you_mean_or_gt:ca(1382,1,"Unexpected_token_Did_you_mean_or_gt_1382","Unexpected token. Did you mean `{'>'}` or `>`?"),Function_type_notation_must_be_parenthesized_when_used_in_a_union_type:ca(1385,1,"Function_type_notation_must_be_parenthesized_when_used_in_a_union_type_1385","Function type notation must be parenthesized when used in a union type."),Constructor_type_notation_must_be_parenthesized_when_used_in_a_union_type:ca(1386,1,"Constructor_type_notation_must_be_parenthesized_when_used_in_a_union_type_1386","Constructor type notation must be parenthesized when used in a union type."),Function_type_notation_must_be_parenthesized_when_used_in_an_intersection_type:ca(1387,1,"Function_type_notation_must_be_parenthesized_when_used_in_an_intersection_type_1387","Function type notation must be parenthesized when used in an intersection type."),Constructor_type_notation_must_be_parenthesized_when_used_in_an_intersection_type:ca(1388,1,"Constructor_type_notation_must_be_parenthesized_when_used_in_an_intersection_type_1388","Constructor type notation must be parenthesized when used in an intersection type."),_0_is_not_allowed_as_a_variable_declaration_name:ca(1389,1,"_0_is_not_allowed_as_a_variable_declaration_name_1389","'{0}' is not allowed as a variable declaration name."),_0_is_not_allowed_as_a_parameter_name:ca(1390,1,"_0_is_not_allowed_as_a_parameter_name_1390","'{0}' is not allowed as a parameter name."),An_import_alias_cannot_use_import_type:ca(1392,1,"An_import_alias_cannot_use_import_type_1392","An import alias cannot use 'import type'"),Imported_via_0_from_file_1:ca(1393,3,"Imported_via_0_from_file_1_1393","Imported via {0} from file '{1}'"),Imported_via_0_from_file_1_with_packageId_2:ca(1394,3,"Imported_via_0_from_file_1_with_packageId_2_1394","Imported via {0} from file '{1}' with packageId '{2}'"),Imported_via_0_from_file_1_to_import_importHelpers_as_specified_in_compilerOptions:ca(1395,3,"Imported_via_0_from_file_1_to_import_importHelpers_as_specified_in_compilerOptions_1395","Imported via {0} from file '{1}' to import 'importHelpers' as specified in compilerOptions"),Imported_via_0_from_file_1_with_packageId_2_to_import_importHelpers_as_specified_in_compilerOptions:ca(1396,3,"Imported_via_0_from_file_1_with_packageId_2_to_import_importHelpers_as_specified_in_compilerOptions_1396","Imported via {0} from file '{1}' with packageId '{2}' to import 'importHelpers' as specified in compilerOptions"),Imported_via_0_from_file_1_to_import_jsx_and_jsxs_factory_functions:ca(1397,3,"Imported_via_0_from_file_1_to_import_jsx_and_jsxs_factory_functions_1397","Imported via {0} from file '{1}' to import 'jsx' and 'jsxs' factory functions"),Imported_via_0_from_file_1_with_packageId_2_to_import_jsx_and_jsxs_factory_functions:ca(1398,3,"Imported_via_0_from_file_1_with_packageId_2_to_import_jsx_and_jsxs_factory_functions_1398","Imported via {0} from file '{1}' with packageId '{2}' to import 'jsx' and 'jsxs' factory functions"),File_is_included_via_import_here:ca(1399,3,"File_is_included_via_import_here_1399","File is included via import here."),Referenced_via_0_from_file_1:ca(1400,3,"Referenced_via_0_from_file_1_1400","Referenced via '{0}' from file '{1}'"),File_is_included_via_reference_here:ca(1401,3,"File_is_included_via_reference_here_1401","File is included via reference here."),Type_library_referenced_via_0_from_file_1:ca(1402,3,"Type_library_referenced_via_0_from_file_1_1402","Type library referenced via '{0}' from file '{1}'"),Type_library_referenced_via_0_from_file_1_with_packageId_2:ca(1403,3,"Type_library_referenced_via_0_from_file_1_with_packageId_2_1403","Type library referenced via '{0}' from file '{1}' with packageId '{2}'"),File_is_included_via_type_library_reference_here:ca(1404,3,"File_is_included_via_type_library_reference_here_1404","File is included via type library reference here."),Library_referenced_via_0_from_file_1:ca(1405,3,"Library_referenced_via_0_from_file_1_1405","Library referenced via '{0}' from file '{1}'"),File_is_included_via_library_reference_here:ca(1406,3,"File_is_included_via_library_reference_here_1406","File is included via library reference here."),Matched_by_include_pattern_0_in_1:ca(1407,3,"Matched_by_include_pattern_0_in_1_1407","Matched by include pattern '{0}' in '{1}'"),File_is_matched_by_include_pattern_specified_here:ca(1408,3,"File_is_matched_by_include_pattern_specified_here_1408","File is matched by include pattern specified here."),Part_of_files_list_in_tsconfig_json:ca(1409,3,"Part_of_files_list_in_tsconfig_json_1409","Part of 'files' list in tsconfig.json"),File_is_matched_by_files_list_specified_here:ca(1410,3,"File_is_matched_by_files_list_specified_here_1410","File is matched by 'files' list specified here."),Output_from_referenced_project_0_included_because_1_specified:ca(1411,3,"Output_from_referenced_project_0_included_because_1_specified_1411","Output from referenced project '{0}' included because '{1}' specified"),Output_from_referenced_project_0_included_because_module_is_specified_as_none:ca(1412,3,"Output_from_referenced_project_0_included_because_module_is_specified_as_none_1412","Output from referenced project '{0}' included because '--module' is specified as 'none'"),File_is_output_from_referenced_project_specified_here:ca(1413,3,"File_is_output_from_referenced_project_specified_here_1413","File is output from referenced project specified here."),Source_from_referenced_project_0_included_because_1_specified:ca(1414,3,"Source_from_referenced_project_0_included_because_1_specified_1414","Source from referenced project '{0}' included because '{1}' specified"),Source_from_referenced_project_0_included_because_module_is_specified_as_none:ca(1415,3,"Source_from_referenced_project_0_included_because_module_is_specified_as_none_1415","Source from referenced project '{0}' included because '--module' is specified as 'none'"),File_is_source_from_referenced_project_specified_here:ca(1416,3,"File_is_source_from_referenced_project_specified_here_1416","File is source from referenced project specified here."),Entry_point_of_type_library_0_specified_in_compilerOptions:ca(1417,3,"Entry_point_of_type_library_0_specified_in_compilerOptions_1417","Entry point of type library '{0}' specified in compilerOptions"),Entry_point_of_type_library_0_specified_in_compilerOptions_with_packageId_1:ca(1418,3,"Entry_point_of_type_library_0_specified_in_compilerOptions_with_packageId_1_1418","Entry point of type library '{0}' specified in compilerOptions with packageId '{1}'"),File_is_entry_point_of_type_library_specified_here:ca(1419,3,"File_is_entry_point_of_type_library_specified_here_1419","File is entry point of type library specified here."),Entry_point_for_implicit_type_library_0:ca(1420,3,"Entry_point_for_implicit_type_library_0_1420","Entry point for implicit type library '{0}'"),Entry_point_for_implicit_type_library_0_with_packageId_1:ca(1421,3,"Entry_point_for_implicit_type_library_0_with_packageId_1_1421","Entry point for implicit type library '{0}' with packageId '{1}'"),Library_0_specified_in_compilerOptions:ca(1422,3,"Library_0_specified_in_compilerOptions_1422","Library '{0}' specified in compilerOptions"),File_is_library_specified_here:ca(1423,3,"File_is_library_specified_here_1423","File is library specified here."),Default_library:ca(1424,3,"Default_library_1424","Default library"),Default_library_for_target_0:ca(1425,3,"Default_library_for_target_0_1425","Default library for target '{0}'"),File_is_default_library_for_target_specified_here:ca(1426,3,"File_is_default_library_for_target_specified_here_1426","File is default library for target specified here."),Root_file_specified_for_compilation:ca(1427,3,"Root_file_specified_for_compilation_1427","Root file specified for compilation"),File_is_output_of_project_reference_source_0:ca(1428,3,"File_is_output_of_project_reference_source_0_1428","File is output of project reference source '{0}'"),File_redirects_to_file_0:ca(1429,3,"File_redirects_to_file_0_1429","File redirects to file '{0}'"),The_file_is_in_the_program_because_Colon:ca(1430,3,"The_file_is_in_the_program_because_Colon_1430","The file is in the program because:"),for_await_loops_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_this_file_has_no_imports_or_exports_Consider_adding_an_empty_export_to_make_this_file_a_module:ca(1431,1,"for_await_loops_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_this_file_1431","'for await' loops are only allowed at the top level of a file when that file is a module, but this file has no imports or exports. Consider adding an empty 'export {}' to make this file a module."),Top_level_for_await_loops_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_node16_nodenext_or_preserve_and_the_target_option_is_set_to_es2017_or_higher:ca(1432,1,"Top_level_for_await_loops_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_nod_1432","Top-level 'for await' loops are only allowed when the 'module' option is set to 'es2022', 'esnext', 'system', 'node16', 'nodenext', or 'preserve', and the 'target' option is set to 'es2017' or higher."),Neither_decorators_nor_modifiers_may_be_applied_to_this_parameters:ca(1433,1,"Neither_decorators_nor_modifiers_may_be_applied_to_this_parameters_1433","Neither decorators nor modifiers may be applied to 'this' parameters."),Unexpected_keyword_or_identifier:ca(1434,1,"Unexpected_keyword_or_identifier_1434","Unexpected keyword or identifier."),Unknown_keyword_or_identifier_Did_you_mean_0:ca(1435,1,"Unknown_keyword_or_identifier_Did_you_mean_0_1435","Unknown keyword or identifier. Did you mean '{0}'?"),Decorators_must_precede_the_name_and_all_keywords_of_property_declarations:ca(1436,1,"Decorators_must_precede_the_name_and_all_keywords_of_property_declarations_1436","Decorators must precede the name and all keywords of property declarations."),Namespace_must_be_given_a_name:ca(1437,1,"Namespace_must_be_given_a_name_1437","Namespace must be given a name."),Interface_must_be_given_a_name:ca(1438,1,"Interface_must_be_given_a_name_1438","Interface must be given a name."),Type_alias_must_be_given_a_name:ca(1439,1,"Type_alias_must_be_given_a_name_1439","Type alias must be given a name."),Variable_declaration_not_allowed_at_this_location:ca(1440,1,"Variable_declaration_not_allowed_at_this_location_1440","Variable declaration not allowed at this location."),Cannot_start_a_function_call_in_a_type_annotation:ca(1441,1,"Cannot_start_a_function_call_in_a_type_annotation_1441","Cannot start a function call in a type annotation."),Expected_for_property_initializer:ca(1442,1,"Expected_for_property_initializer_1442","Expected '=' for property initializer."),Module_declaration_names_may_only_use_or_quoted_strings:ca(1443,1,"Module_declaration_names_may_only_use_or_quoted_strings_1443","Module declaration names may only use ' or \" quoted strings."),_0_resolves_to_a_type_only_declaration_and_must_be_re_exported_using_a_type_only_re_export_when_1_is_enabled:ca(1448,1,"_0_resolves_to_a_type_only_declaration_and_must_be_re_exported_using_a_type_only_re_export_when_1_is_1448","'{0}' resolves to a type-only declaration and must be re-exported using a type-only re-export when '{1}' is enabled."),Preserve_unused_imported_values_in_the_JavaScript_output_that_would_otherwise_be_removed:ca(1449,3,"Preserve_unused_imported_values_in_the_JavaScript_output_that_would_otherwise_be_removed_1449","Preserve unused imported values in the JavaScript output that would otherwise be removed."),Dynamic_imports_can_only_accept_a_module_specifier_and_an_optional_set_of_attributes_as_arguments:ca(1450,3,"Dynamic_imports_can_only_accept_a_module_specifier_and_an_optional_set_of_attributes_as_arguments_1450","Dynamic imports can only accept a module specifier and an optional set of attributes as arguments"),Private_identifiers_are_only_allowed_in_class_bodies_and_may_only_be_used_as_part_of_a_class_member_declaration_property_access_or_on_the_left_hand_side_of_an_in_expression:ca(1451,1,"Private_identifiers_are_only_allowed_in_class_bodies_and_may_only_be_used_as_part_of_a_class_member__1451","Private identifiers are only allowed in class bodies and may only be used as part of a class member declaration, property access, or on the left-hand-side of an 'in' expression"),resolution_mode_should_be_either_require_or_import:ca(1453,1,"resolution_mode_should_be_either_require_or_import_1453","`resolution-mode` should be either `require` or `import`."),resolution_mode_can_only_be_set_for_type_only_imports:ca(1454,1,"resolution_mode_can_only_be_set_for_type_only_imports_1454","`resolution-mode` can only be set for type-only imports."),resolution_mode_is_the_only_valid_key_for_type_import_assertions:ca(1455,1,"resolution_mode_is_the_only_valid_key_for_type_import_assertions_1455","`resolution-mode` is the only valid key for type import assertions."),Type_import_assertions_should_have_exactly_one_key_resolution_mode_with_value_import_or_require:ca(1456,1,"Type_import_assertions_should_have_exactly_one_key_resolution_mode_with_value_import_or_require_1456","Type import assertions should have exactly one key - `resolution-mode` - with value `import` or `require`."),Matched_by_default_include_pattern_Asterisk_Asterisk_Slash_Asterisk:ca(1457,3,"Matched_by_default_include_pattern_Asterisk_Asterisk_Slash_Asterisk_1457","Matched by default include pattern '**/*'"),File_is_ECMAScript_module_because_0_has_field_type_with_value_module:ca(1458,3,"File_is_ECMAScript_module_because_0_has_field_type_with_value_module_1458",'File is ECMAScript module because \'{0}\' has field "type" with value "module"'),File_is_CommonJS_module_because_0_has_field_type_whose_value_is_not_module:ca(1459,3,"File_is_CommonJS_module_because_0_has_field_type_whose_value_is_not_module_1459",'File is CommonJS module because \'{0}\' has field "type" whose value is not "module"'),File_is_CommonJS_module_because_0_does_not_have_field_type:ca(1460,3,"File_is_CommonJS_module_because_0_does_not_have_field_type_1460","File is CommonJS module because '{0}' does not have field \"type\""),File_is_CommonJS_module_because_package_json_was_not_found:ca(1461,3,"File_is_CommonJS_module_because_package_json_was_not_found_1461","File is CommonJS module because 'package.json' was not found"),resolution_mode_is_the_only_valid_key_for_type_import_attributes:ca(1463,1,"resolution_mode_is_the_only_valid_key_for_type_import_attributes_1463","'resolution-mode' is the only valid key for type import attributes."),Type_import_attributes_should_have_exactly_one_key_resolution_mode_with_value_import_or_require:ca(1464,1,"Type_import_attributes_should_have_exactly_one_key_resolution_mode_with_value_import_or_require_1464","Type import attributes should have exactly one key - 'resolution-mode' - with value 'import' or 'require'."),The_import_meta_meta_property_is_not_allowed_in_files_which_will_build_into_CommonJS_output:ca(1470,1,"The_import_meta_meta_property_is_not_allowed_in_files_which_will_build_into_CommonJS_output_1470","The 'import.meta' meta-property is not allowed in files which will build into CommonJS output."),Module_0_cannot_be_imported_using_this_construct_The_specifier_only_resolves_to_an_ES_module_which_cannot_be_imported_with_require_Use_an_ECMAScript_import_instead:ca(1471,1,"Module_0_cannot_be_imported_using_this_construct_The_specifier_only_resolves_to_an_ES_module_which_c_1471","Module '{0}' cannot be imported using this construct. The specifier only resolves to an ES module, which cannot be imported with 'require'. Use an ECMAScript import instead."),catch_or_finally_expected:ca(1472,1,"catch_or_finally_expected_1472","'catch' or 'finally' expected."),An_import_declaration_can_only_be_used_at_the_top_level_of_a_module:ca(1473,1,"An_import_declaration_can_only_be_used_at_the_top_level_of_a_module_1473","An import declaration can only be used at the top level of a module."),An_export_declaration_can_only_be_used_at_the_top_level_of_a_module:ca(1474,1,"An_export_declaration_can_only_be_used_at_the_top_level_of_a_module_1474","An export declaration can only be used at the top level of a module."),Control_what_method_is_used_to_detect_module_format_JS_files:ca(1475,3,"Control_what_method_is_used_to_detect_module_format_JS_files_1475","Control what method is used to detect module-format JS files."),auto_Colon_Treat_files_with_imports_exports_import_meta_jsx_with_jsx_Colon_react_jsx_or_esm_format_with_module_Colon_node16_as_modules:ca(1476,3,"auto_Colon_Treat_files_with_imports_exports_import_meta_jsx_with_jsx_Colon_react_jsx_or_esm_format_w_1476",'"auto": Treat files with imports, exports, import.meta, jsx (with jsx: react-jsx), or esm format (with module: node16+) as modules.'),An_instantiation_expression_cannot_be_followed_by_a_property_access:ca(1477,1,"An_instantiation_expression_cannot_be_followed_by_a_property_access_1477","An instantiation expression cannot be followed by a property access."),Identifier_or_string_literal_expected:ca(1478,1,"Identifier_or_string_literal_expected_1478","Identifier or string literal expected."),The_current_file_is_a_CommonJS_module_whose_imports_will_produce_require_calls_however_the_referenced_file_is_an_ECMAScript_module_and_cannot_be_imported_with_require_Consider_writing_a_dynamic_import_0_call_instead:ca(1479,1,"The_current_file_is_a_CommonJS_module_whose_imports_will_produce_require_calls_however_the_reference_1479","The current file is a CommonJS module whose imports will produce 'require' calls; however, the referenced file is an ECMAScript module and cannot be imported with 'require'. Consider writing a dynamic 'import(\"{0}\")' call instead."),To_convert_this_file_to_an_ECMAScript_module_change_its_file_extension_to_0_or_create_a_local_package_json_file_with_type_Colon_module:ca(1480,3,"To_convert_this_file_to_an_ECMAScript_module_change_its_file_extension_to_0_or_create_a_local_packag_1480",'To convert this file to an ECMAScript module, change its file extension to \'{0}\' or create a local package.json file with `{ "type": "module" }`.'),To_convert_this_file_to_an_ECMAScript_module_change_its_file_extension_to_0_or_add_the_field_type_Colon_module_to_1:ca(1481,3,"To_convert_this_file_to_an_ECMAScript_module_change_its_file_extension_to_0_or_add_the_field_type_Co_1481","To convert this file to an ECMAScript module, change its file extension to '{0}', or add the field `\"type\": \"module\"` to '{1}'."),To_convert_this_file_to_an_ECMAScript_module_add_the_field_type_Colon_module_to_0:ca(1482,3,"To_convert_this_file_to_an_ECMAScript_module_add_the_field_type_Colon_module_to_0_1482",'To convert this file to an ECMAScript module, add the field `"type": "module"` to \'{0}\'.'),To_convert_this_file_to_an_ECMAScript_module_create_a_local_package_json_file_with_type_Colon_module:ca(1483,3,"To_convert_this_file_to_an_ECMAScript_module_create_a_local_package_json_file_with_type_Colon_module_1483",'To convert this file to an ECMAScript module, create a local package.json file with `{ "type": "module" }`.'),_0_is_a_type_and_must_be_imported_using_a_type_only_import_when_verbatimModuleSyntax_is_enabled:ca(1484,1,"_0_is_a_type_and_must_be_imported_using_a_type_only_import_when_verbatimModuleSyntax_is_enabled_1484","'{0}' is a type and must be imported using a type-only import when 'verbatimModuleSyntax' is enabled."),_0_resolves_to_a_type_only_declaration_and_must_be_imported_using_a_type_only_import_when_verbatimModuleSyntax_is_enabled:ca(1485,1,"_0_resolves_to_a_type_only_declaration_and_must_be_imported_using_a_type_only_import_when_verbatimMo_1485","'{0}' resolves to a type-only declaration and must be imported using a type-only import when 'verbatimModuleSyntax' is enabled."),Decorator_used_before_export_here:ca(1486,1,"Decorator_used_before_export_here_1486","Decorator used before 'export' here."),Octal_escape_sequences_are_not_allowed_Use_the_syntax_0:ca(1487,1,"Octal_escape_sequences_are_not_allowed_Use_the_syntax_0_1487","Octal escape sequences are not allowed. Use the syntax '{0}'."),Escape_sequence_0_is_not_allowed:ca(1488,1,"Escape_sequence_0_is_not_allowed_1488","Escape sequence '{0}' is not allowed."),Decimals_with_leading_zeros_are_not_allowed:ca(1489,1,"Decimals_with_leading_zeros_are_not_allowed_1489","Decimals with leading zeros are not allowed."),File_appears_to_be_binary:ca(1490,1,"File_appears_to_be_binary_1490","File appears to be binary."),_0_modifier_cannot_appear_on_a_using_declaration:ca(1491,1,"_0_modifier_cannot_appear_on_a_using_declaration_1491","'{0}' modifier cannot appear on a 'using' declaration."),_0_declarations_may_not_have_binding_patterns:ca(1492,1,"_0_declarations_may_not_have_binding_patterns_1492","'{0}' declarations may not have binding patterns."),The_left_hand_side_of_a_for_in_statement_cannot_be_a_using_declaration:ca(1493,1,"The_left_hand_side_of_a_for_in_statement_cannot_be_a_using_declaration_1493","The left-hand side of a 'for...in' statement cannot be a 'using' declaration."),The_left_hand_side_of_a_for_in_statement_cannot_be_an_await_using_declaration:ca(1494,1,"The_left_hand_side_of_a_for_in_statement_cannot_be_an_await_using_declaration_1494","The left-hand side of a 'for...in' statement cannot be an 'await using' declaration."),_0_modifier_cannot_appear_on_an_await_using_declaration:ca(1495,1,"_0_modifier_cannot_appear_on_an_await_using_declaration_1495","'{0}' modifier cannot appear on an 'await using' declaration."),Identifier_string_literal_or_number_literal_expected:ca(1496,1,"Identifier_string_literal_or_number_literal_expected_1496","Identifier, string literal, or number literal expected."),Expression_must_be_enclosed_in_parentheses_to_be_used_as_a_decorator:ca(1497,1,"Expression_must_be_enclosed_in_parentheses_to_be_used_as_a_decorator_1497","Expression must be enclosed in parentheses to be used as a decorator."),Invalid_syntax_in_decorator:ca(1498,1,"Invalid_syntax_in_decorator_1498","Invalid syntax in decorator."),Unknown_regular_expression_flag:ca(1499,1,"Unknown_regular_expression_flag_1499","Unknown regular expression flag."),Duplicate_regular_expression_flag:ca(1500,1,"Duplicate_regular_expression_flag_1500","Duplicate regular expression flag."),This_regular_expression_flag_is_only_available_when_targeting_0_or_later:ca(1501,1,"This_regular_expression_flag_is_only_available_when_targeting_0_or_later_1501","This regular expression flag is only available when targeting '{0}' or later."),The_Unicode_u_flag_and_the_Unicode_Sets_v_flag_cannot_be_set_simultaneously:ca(1502,1,"The_Unicode_u_flag_and_the_Unicode_Sets_v_flag_cannot_be_set_simultaneously_1502","The Unicode (u) flag and the Unicode Sets (v) flag cannot be set simultaneously."),Named_capturing_groups_are_only_available_when_targeting_ES2018_or_later:ca(1503,1,"Named_capturing_groups_are_only_available_when_targeting_ES2018_or_later_1503","Named capturing groups are only available when targeting 'ES2018' or later."),Subpattern_flags_must_be_present_when_there_is_a_minus_sign:ca(1504,1,"Subpattern_flags_must_be_present_when_there_is_a_minus_sign_1504","Subpattern flags must be present when there is a minus sign."),Incomplete_quantifier_Digit_expected:ca(1505,1,"Incomplete_quantifier_Digit_expected_1505","Incomplete quantifier. Digit expected."),Numbers_out_of_order_in_quantifier:ca(1506,1,"Numbers_out_of_order_in_quantifier_1506","Numbers out of order in quantifier."),There_is_nothing_available_for_repetition:ca(1507,1,"There_is_nothing_available_for_repetition_1507","There is nothing available for repetition."),Unexpected_0_Did_you_mean_to_escape_it_with_backslash:ca(1508,1,"Unexpected_0_Did_you_mean_to_escape_it_with_backslash_1508","Unexpected '{0}'. Did you mean to escape it with backslash?"),This_regular_expression_flag_cannot_be_toggled_within_a_subpattern:ca(1509,1,"This_regular_expression_flag_cannot_be_toggled_within_a_subpattern_1509","This regular expression flag cannot be toggled within a subpattern."),k_must_be_followed_by_a_capturing_group_name_enclosed_in_angle_brackets:ca(1510,1,"k_must_be_followed_by_a_capturing_group_name_enclosed_in_angle_brackets_1510","'\\k' must be followed by a capturing group name enclosed in angle brackets."),q_is_only_available_inside_character_class:ca(1511,1,"q_is_only_available_inside_character_class_1511","'\\q' is only available inside character class."),c_must_be_followed_by_an_ASCII_letter:ca(1512,1,"c_must_be_followed_by_an_ASCII_letter_1512","'\\c' must be followed by an ASCII letter."),Undetermined_character_escape:ca(1513,1,"Undetermined_character_escape_1513","Undetermined character escape."),Expected_a_capturing_group_name:ca(1514,1,"Expected_a_capturing_group_name_1514","Expected a capturing group name."),Named_capturing_groups_with_the_same_name_must_be_mutually_exclusive_to_each_other:ca(1515,1,"Named_capturing_groups_with_the_same_name_must_be_mutually_exclusive_to_each_other_1515","Named capturing groups with the same name must be mutually exclusive to each other."),A_character_class_range_must_not_be_bounded_by_another_character_class:ca(1516,1,"A_character_class_range_must_not_be_bounded_by_another_character_class_1516","A character class range must not be bounded by another character class."),Range_out_of_order_in_character_class:ca(1517,1,"Range_out_of_order_in_character_class_1517","Range out of order in character class."),Anything_that_would_possibly_match_more_than_a_single_character_is_invalid_inside_a_negated_character_class:ca(1518,1,"Anything_that_would_possibly_match_more_than_a_single_character_is_invalid_inside_a_negated_characte_1518","Anything that would possibly match more than a single character is invalid inside a negated character class."),Operators_must_not_be_mixed_within_a_character_class_Wrap_it_in_a_nested_class_instead:ca(1519,1,"Operators_must_not_be_mixed_within_a_character_class_Wrap_it_in_a_nested_class_instead_1519","Operators must not be mixed within a character class. Wrap it in a nested class instead."),Expected_a_class_set_operand:ca(1520,1,"Expected_a_class_set_operand_1520","Expected a class set operand."),q_must_be_followed_by_string_alternatives_enclosed_in_braces:ca(1521,1,"q_must_be_followed_by_string_alternatives_enclosed_in_braces_1521","'\\q' must be followed by string alternatives enclosed in braces."),A_character_class_must_not_contain_a_reserved_double_punctuator_Did_you_mean_to_escape_it_with_backslash:ca(1522,1,"A_character_class_must_not_contain_a_reserved_double_punctuator_Did_you_mean_to_escape_it_with_backs_1522","A character class must not contain a reserved double punctuator. Did you mean to escape it with backslash?"),Expected_a_Unicode_property_name:ca(1523,1,"Expected_a_Unicode_property_name_1523","Expected a Unicode property name."),Unknown_Unicode_property_name:ca(1524,1,"Unknown_Unicode_property_name_1524","Unknown Unicode property name."),Expected_a_Unicode_property_value:ca(1525,1,"Expected_a_Unicode_property_value_1525","Expected a Unicode property value."),Unknown_Unicode_property_value:ca(1526,1,"Unknown_Unicode_property_value_1526","Unknown Unicode property value."),Expected_a_Unicode_property_name_or_value:ca(1527,1,"Expected_a_Unicode_property_name_or_value_1527","Expected a Unicode property name or value."),Any_Unicode_property_that_would_possibly_match_more_than_a_single_character_is_only_available_when_the_Unicode_Sets_v_flag_is_set:ca(1528,1,"Any_Unicode_property_that_would_possibly_match_more_than_a_single_character_is_only_available_when_t_1528","Any Unicode property that would possibly match more than a single character is only available when the Unicode Sets (v) flag is set."),Unknown_Unicode_property_name_or_value:ca(1529,1,"Unknown_Unicode_property_name_or_value_1529","Unknown Unicode property name or value."),Unicode_property_value_expressions_are_only_available_when_the_Unicode_u_flag_or_the_Unicode_Sets_v_flag_is_set:ca(1530,1,"Unicode_property_value_expressions_are_only_available_when_the_Unicode_u_flag_or_the_Unicode_Sets_v__1530","Unicode property value expressions are only available when the Unicode (u) flag or the Unicode Sets (v) flag is set."),_0_must_be_followed_by_a_Unicode_property_value_expression_enclosed_in_braces:ca(1531,1,"_0_must_be_followed_by_a_Unicode_property_value_expression_enclosed_in_braces_1531","'\\{0}' must be followed by a Unicode property value expression enclosed in braces."),There_is_no_capturing_group_named_0_in_this_regular_expression:ca(1532,1,"There_is_no_capturing_group_named_0_in_this_regular_expression_1532","There is no capturing group named '{0}' in this regular expression."),This_backreference_refers_to_a_group_that_does_not_exist_There_are_only_0_capturing_groups_in_this_regular_expression:ca(1533,1,"This_backreference_refers_to_a_group_that_does_not_exist_There_are_only_0_capturing_groups_in_this_r_1533","This backreference refers to a group that does not exist. There are only {0} capturing groups in this regular expression."),This_backreference_refers_to_a_group_that_does_not_exist_There_are_no_capturing_groups_in_this_regular_expression:ca(1534,1,"This_backreference_refers_to_a_group_that_does_not_exist_There_are_no_capturing_groups_in_this_regul_1534","This backreference refers to a group that does not exist. There are no capturing groups in this regular expression."),This_character_cannot_be_escaped_in_a_regular_expression:ca(1535,1,"This_character_cannot_be_escaped_in_a_regular_expression_1535","This character cannot be escaped in a regular expression."),Octal_escape_sequences_and_backreferences_are_not_allowed_in_a_character_class_If_this_was_intended_as_an_escape_sequence_use_the_syntax_0_instead:ca(1536,1,"Octal_escape_sequences_and_backreferences_are_not_allowed_in_a_character_class_If_this_was_intended__1536","Octal escape sequences and backreferences are not allowed in a character class. If this was intended as an escape sequence, use the syntax '{0}' instead."),Decimal_escape_sequences_and_backreferences_are_not_allowed_in_a_character_class:ca(1537,1,"Decimal_escape_sequences_and_backreferences_are_not_allowed_in_a_character_class_1537","Decimal escape sequences and backreferences are not allowed in a character class."),Unicode_escape_sequences_are_only_available_when_the_Unicode_u_flag_or_the_Unicode_Sets_v_flag_is_set:ca(1538,1,"Unicode_escape_sequences_are_only_available_when_the_Unicode_u_flag_or_the_Unicode_Sets_v_flag_is_se_1538","Unicode escape sequences are only available when the Unicode (u) flag or the Unicode Sets (v) flag is set."),A_bigint_literal_cannot_be_used_as_a_property_name:ca(1539,1,"A_bigint_literal_cannot_be_used_as_a_property_name_1539","A 'bigint' literal cannot be used as a property name."),A_namespace_declaration_should_not_be_declared_using_the_module_keyword_Please_use_the_namespace_keyword_instead:ca(1540,2,"A_namespace_declaration_should_not_be_declared_using_the_module_keyword_Please_use_the_namespace_key_1540","A 'namespace' declaration should not be declared using the 'module' keyword. Please use the 'namespace' keyword instead.",void 0,void 0,!0),Type_only_import_of_an_ECMAScript_module_from_a_CommonJS_module_must_have_a_resolution_mode_attribute:ca(1541,1,"Type_only_import_of_an_ECMAScript_module_from_a_CommonJS_module_must_have_a_resolution_mode_attribut_1541","Type-only import of an ECMAScript module from a CommonJS module must have a 'resolution-mode' attribute."),Type_import_of_an_ECMAScript_module_from_a_CommonJS_module_must_have_a_resolution_mode_attribute:ca(1542,1,"Type_import_of_an_ECMAScript_module_from_a_CommonJS_module_must_have_a_resolution_mode_attribute_1542","Type import of an ECMAScript module from a CommonJS module must have a 'resolution-mode' attribute."),Importing_a_JSON_file_into_an_ECMAScript_module_requires_a_type_Colon_json_import_attribute_when_module_is_set_to_0:ca(1543,1,"Importing_a_JSON_file_into_an_ECMAScript_module_requires_a_type_Colon_json_import_attribute_when_mod_1543","Importing a JSON file into an ECMAScript module requires a 'type: \"json\"' import attribute when 'module' is set to '{0}'."),Named_imports_from_a_JSON_file_into_an_ECMAScript_module_are_not_allowed_when_module_is_set_to_0:ca(1544,1,"Named_imports_from_a_JSON_file_into_an_ECMAScript_module_are_not_allowed_when_module_is_set_to_0_1544","Named imports from a JSON file into an ECMAScript module are not allowed when 'module' is set to '{0}'."),The_types_of_0_are_incompatible_between_these_types:ca(2200,1,"The_types_of_0_are_incompatible_between_these_types_2200","The types of '{0}' are incompatible between these types."),The_types_returned_by_0_are_incompatible_between_these_types:ca(2201,1,"The_types_returned_by_0_are_incompatible_between_these_types_2201","The types returned by '{0}' are incompatible between these types."),Call_signature_return_types_0_and_1_are_incompatible:ca(2202,1,"Call_signature_return_types_0_and_1_are_incompatible_2202","Call signature return types '{0}' and '{1}' are incompatible.",void 0,!0),Construct_signature_return_types_0_and_1_are_incompatible:ca(2203,1,"Construct_signature_return_types_0_and_1_are_incompatible_2203","Construct signature return types '{0}' and '{1}' are incompatible.",void 0,!0),Call_signatures_with_no_arguments_have_incompatible_return_types_0_and_1:ca(2204,1,"Call_signatures_with_no_arguments_have_incompatible_return_types_0_and_1_2204","Call signatures with no arguments have incompatible return types '{0}' and '{1}'.",void 0,!0),Construct_signatures_with_no_arguments_have_incompatible_return_types_0_and_1:ca(2205,1,"Construct_signatures_with_no_arguments_have_incompatible_return_types_0_and_1_2205","Construct signatures with no arguments have incompatible return types '{0}' and '{1}'.",void 0,!0),The_type_modifier_cannot_be_used_on_a_named_import_when_import_type_is_used_on_its_import_statement:ca(2206,1,"The_type_modifier_cannot_be_used_on_a_named_import_when_import_type_is_used_on_its_import_statement_2206","The 'type' modifier cannot be used on a named import when 'import type' is used on its import statement."),The_type_modifier_cannot_be_used_on_a_named_export_when_export_type_is_used_on_its_export_statement:ca(2207,1,"The_type_modifier_cannot_be_used_on_a_named_export_when_export_type_is_used_on_its_export_statement_2207","The 'type' modifier cannot be used on a named export when 'export type' is used on its export statement."),This_type_parameter_might_need_an_extends_0_constraint:ca(2208,1,"This_type_parameter_might_need_an_extends_0_constraint_2208","This type parameter might need an `extends {0}` constraint."),The_project_root_is_ambiguous_but_is_required_to_resolve_export_map_entry_0_in_file_1_Supply_the_rootDir_compiler_option_to_disambiguate:ca(2209,1,"The_project_root_is_ambiguous_but_is_required_to_resolve_export_map_entry_0_in_file_1_Supply_the_roo_2209","The project root is ambiguous, but is required to resolve export map entry '{0}' in file '{1}'. Supply the `rootDir` compiler option to disambiguate."),The_project_root_is_ambiguous_but_is_required_to_resolve_import_map_entry_0_in_file_1_Supply_the_rootDir_compiler_option_to_disambiguate:ca(2210,1,"The_project_root_is_ambiguous_but_is_required_to_resolve_import_map_entry_0_in_file_1_Supply_the_roo_2210","The project root is ambiguous, but is required to resolve import map entry '{0}' in file '{1}'. Supply the `rootDir` compiler option to disambiguate."),Add_extends_constraint:ca(2211,3,"Add_extends_constraint_2211","Add `extends` constraint."),Add_extends_constraint_to_all_type_parameters:ca(2212,3,"Add_extends_constraint_to_all_type_parameters_2212","Add `extends` constraint to all type parameters"),Duplicate_identifier_0:ca(2300,1,"Duplicate_identifier_0_2300","Duplicate identifier '{0}'."),Initializer_of_instance_member_variable_0_cannot_reference_identifier_1_declared_in_the_constructor:ca(2301,1,"Initializer_of_instance_member_variable_0_cannot_reference_identifier_1_declared_in_the_constructor_2301","Initializer of instance member variable '{0}' cannot reference identifier '{1}' declared in the constructor."),Static_members_cannot_reference_class_type_parameters:ca(2302,1,"Static_members_cannot_reference_class_type_parameters_2302","Static members cannot reference class type parameters."),Circular_definition_of_import_alias_0:ca(2303,1,"Circular_definition_of_import_alias_0_2303","Circular definition of import alias '{0}'."),Cannot_find_name_0:ca(2304,1,"Cannot_find_name_0_2304","Cannot find name '{0}'."),Module_0_has_no_exported_member_1:ca(2305,1,"Module_0_has_no_exported_member_1_2305","Module '{0}' has no exported member '{1}'."),File_0_is_not_a_module:ca(2306,1,"File_0_is_not_a_module_2306","File '{0}' is not a module."),Cannot_find_module_0_or_its_corresponding_type_declarations:ca(2307,1,"Cannot_find_module_0_or_its_corresponding_type_declarations_2307","Cannot find module '{0}' or its corresponding type declarations."),Module_0_has_already_exported_a_member_named_1_Consider_explicitly_re_exporting_to_resolve_the_ambiguity:ca(2308,1,"Module_0_has_already_exported_a_member_named_1_Consider_explicitly_re_exporting_to_resolve_the_ambig_2308","Module {0} has already exported a member named '{1}'. Consider explicitly re-exporting to resolve the ambiguity."),An_export_assignment_cannot_be_used_in_a_module_with_other_exported_elements:ca(2309,1,"An_export_assignment_cannot_be_used_in_a_module_with_other_exported_elements_2309","An export assignment cannot be used in a module with other exported elements."),Type_0_recursively_references_itself_as_a_base_type:ca(2310,1,"Type_0_recursively_references_itself_as_a_base_type_2310","Type '{0}' recursively references itself as a base type."),Cannot_find_name_0_Did_you_mean_to_write_this_in_an_async_function:ca(2311,1,"Cannot_find_name_0_Did_you_mean_to_write_this_in_an_async_function_2311","Cannot find name '{0}'. Did you mean to write this in an async function?"),An_interface_can_only_extend_an_object_type_or_intersection_of_object_types_with_statically_known_members:ca(2312,1,"An_interface_can_only_extend_an_object_type_or_intersection_of_object_types_with_statically_known_me_2312","An interface can only extend an object type or intersection of object types with statically known members."),Type_parameter_0_has_a_circular_constraint:ca(2313,1,"Type_parameter_0_has_a_circular_constraint_2313","Type parameter '{0}' has a circular constraint."),Generic_type_0_requires_1_type_argument_s:ca(2314,1,"Generic_type_0_requires_1_type_argument_s_2314","Generic type '{0}' requires {1} type argument(s)."),Type_0_is_not_generic:ca(2315,1,"Type_0_is_not_generic_2315","Type '{0}' is not generic."),Global_type_0_must_be_a_class_or_interface_type:ca(2316,1,"Global_type_0_must_be_a_class_or_interface_type_2316","Global type '{0}' must be a class or interface type."),Global_type_0_must_have_1_type_parameter_s:ca(2317,1,"Global_type_0_must_have_1_type_parameter_s_2317","Global type '{0}' must have {1} type parameter(s)."),Cannot_find_global_type_0:ca(2318,1,"Cannot_find_global_type_0_2318","Cannot find global type '{0}'."),Named_property_0_of_types_1_and_2_are_not_identical:ca(2319,1,"Named_property_0_of_types_1_and_2_are_not_identical_2319","Named property '{0}' of types '{1}' and '{2}' are not identical."),Interface_0_cannot_simultaneously_extend_types_1_and_2:ca(2320,1,"Interface_0_cannot_simultaneously_extend_types_1_and_2_2320","Interface '{0}' cannot simultaneously extend types '{1}' and '{2}'."),Excessive_stack_depth_comparing_types_0_and_1:ca(2321,1,"Excessive_stack_depth_comparing_types_0_and_1_2321","Excessive stack depth comparing types '{0}' and '{1}'."),Type_0_is_not_assignable_to_type_1:ca(2322,1,"Type_0_is_not_assignable_to_type_1_2322","Type '{0}' is not assignable to type '{1}'."),Cannot_redeclare_exported_variable_0:ca(2323,1,"Cannot_redeclare_exported_variable_0_2323","Cannot redeclare exported variable '{0}'."),Property_0_is_missing_in_type_1:ca(2324,1,"Property_0_is_missing_in_type_1_2324","Property '{0}' is missing in type '{1}'."),Property_0_is_private_in_type_1_but_not_in_type_2:ca(2325,1,"Property_0_is_private_in_type_1_but_not_in_type_2_2325","Property '{0}' is private in type '{1}' but not in type '{2}'."),Types_of_property_0_are_incompatible:ca(2326,1,"Types_of_property_0_are_incompatible_2326","Types of property '{0}' are incompatible."),Property_0_is_optional_in_type_1_but_required_in_type_2:ca(2327,1,"Property_0_is_optional_in_type_1_but_required_in_type_2_2327","Property '{0}' is optional in type '{1}' but required in type '{2}'."),Types_of_parameters_0_and_1_are_incompatible:ca(2328,1,"Types_of_parameters_0_and_1_are_incompatible_2328","Types of parameters '{0}' and '{1}' are incompatible."),Index_signature_for_type_0_is_missing_in_type_1:ca(2329,1,"Index_signature_for_type_0_is_missing_in_type_1_2329","Index signature for type '{0}' is missing in type '{1}'."),_0_and_1_index_signatures_are_incompatible:ca(2330,1,"_0_and_1_index_signatures_are_incompatible_2330","'{0}' and '{1}' index signatures are incompatible."),this_cannot_be_referenced_in_a_module_or_namespace_body:ca(2331,1,"this_cannot_be_referenced_in_a_module_or_namespace_body_2331","'this' cannot be referenced in a module or namespace body."),this_cannot_be_referenced_in_current_location:ca(2332,1,"this_cannot_be_referenced_in_current_location_2332","'this' cannot be referenced in current location."),this_cannot_be_referenced_in_a_static_property_initializer:ca(2334,1,"this_cannot_be_referenced_in_a_static_property_initializer_2334","'this' cannot be referenced in a static property initializer."),super_can_only_be_referenced_in_a_derived_class:ca(2335,1,"super_can_only_be_referenced_in_a_derived_class_2335","'super' can only be referenced in a derived class."),super_cannot_be_referenced_in_constructor_arguments:ca(2336,1,"super_cannot_be_referenced_in_constructor_arguments_2336","'super' cannot be referenced in constructor arguments."),Super_calls_are_not_permitted_outside_constructors_or_in_nested_functions_inside_constructors:ca(2337,1,"Super_calls_are_not_permitted_outside_constructors_or_in_nested_functions_inside_constructors_2337","Super calls are not permitted outside constructors or in nested functions inside constructors."),super_property_access_is_permitted_only_in_a_constructor_member_function_or_member_accessor_of_a_derived_class:ca(2338,1,"super_property_access_is_permitted_only_in_a_constructor_member_function_or_member_accessor_of_a_der_2338","'super' property access is permitted only in a constructor, member function, or member accessor of a derived class."),Property_0_does_not_exist_on_type_1:ca(2339,1,"Property_0_does_not_exist_on_type_1_2339","Property '{0}' does not exist on type '{1}'."),Only_public_and_protected_methods_of_the_base_class_are_accessible_via_the_super_keyword:ca(2340,1,"Only_public_and_protected_methods_of_the_base_class_are_accessible_via_the_super_keyword_2340","Only public and protected methods of the base class are accessible via the 'super' keyword."),Property_0_is_private_and_only_accessible_within_class_1:ca(2341,1,"Property_0_is_private_and_only_accessible_within_class_1_2341","Property '{0}' is private and only accessible within class '{1}'."),This_syntax_requires_an_imported_helper_named_1_which_does_not_exist_in_0_Consider_upgrading_your_version_of_0:ca(2343,1,"This_syntax_requires_an_imported_helper_named_1_which_does_not_exist_in_0_Consider_upgrading_your_ve_2343","This syntax requires an imported helper named '{1}' which does not exist in '{0}'. Consider upgrading your version of '{0}'."),Type_0_does_not_satisfy_the_constraint_1:ca(2344,1,"Type_0_does_not_satisfy_the_constraint_1_2344","Type '{0}' does not satisfy the constraint '{1}'."),Argument_of_type_0_is_not_assignable_to_parameter_of_type_1:ca(2345,1,"Argument_of_type_0_is_not_assignable_to_parameter_of_type_1_2345","Argument of type '{0}' is not assignable to parameter of type '{1}'."),Untyped_function_calls_may_not_accept_type_arguments:ca(2347,1,"Untyped_function_calls_may_not_accept_type_arguments_2347","Untyped function calls may not accept type arguments."),Value_of_type_0_is_not_callable_Did_you_mean_to_include_new:ca(2348,1,"Value_of_type_0_is_not_callable_Did_you_mean_to_include_new_2348","Value of type '{0}' is not callable. Did you mean to include 'new'?"),This_expression_is_not_callable:ca(2349,1,"This_expression_is_not_callable_2349","This expression is not callable."),Only_a_void_function_can_be_called_with_the_new_keyword:ca(2350,1,"Only_a_void_function_can_be_called_with_the_new_keyword_2350","Only a void function can be called with the 'new' keyword."),This_expression_is_not_constructable:ca(2351,1,"This_expression_is_not_constructable_2351","This expression is not constructable."),Conversion_of_type_0_to_type_1_may_be_a_mistake_because_neither_type_sufficiently_overlaps_with_the_other_If_this_was_intentional_convert_the_expression_to_unknown_first:ca(2352,1,"Conversion_of_type_0_to_type_1_may_be_a_mistake_because_neither_type_sufficiently_overlaps_with_the__2352","Conversion of type '{0}' to type '{1}' may be a mistake because neither type sufficiently overlaps with the other. If this was intentional, convert the expression to 'unknown' first."),Object_literal_may_only_specify_known_properties_and_0_does_not_exist_in_type_1:ca(2353,1,"Object_literal_may_only_specify_known_properties_and_0_does_not_exist_in_type_1_2353","Object literal may only specify known properties, and '{0}' does not exist in type '{1}'."),This_syntax_requires_an_imported_helper_but_module_0_cannot_be_found:ca(2354,1,"This_syntax_requires_an_imported_helper_but_module_0_cannot_be_found_2354","This syntax requires an imported helper but module '{0}' cannot be found."),A_function_whose_declared_type_is_neither_undefined_void_nor_any_must_return_a_value:ca(2355,1,"A_function_whose_declared_type_is_neither_undefined_void_nor_any_must_return_a_value_2355","A function whose declared type is neither 'undefined', 'void', nor 'any' must return a value."),An_arithmetic_operand_must_be_of_type_any_number_bigint_or_an_enum_type:ca(2356,1,"An_arithmetic_operand_must_be_of_type_any_number_bigint_or_an_enum_type_2356","An arithmetic operand must be of type 'any', 'number', 'bigint' or an enum type."),The_operand_of_an_increment_or_decrement_operator_must_be_a_variable_or_a_property_access:ca(2357,1,"The_operand_of_an_increment_or_decrement_operator_must_be_a_variable_or_a_property_access_2357","The operand of an increment or decrement operator must be a variable or a property access."),The_left_hand_side_of_an_instanceof_expression_must_be_of_type_any_an_object_type_or_a_type_parameter:ca(2358,1,"The_left_hand_side_of_an_instanceof_expression_must_be_of_type_any_an_object_type_or_a_type_paramete_2358","The left-hand side of an 'instanceof' expression must be of type 'any', an object type or a type parameter."),The_right_hand_side_of_an_instanceof_expression_must_be_either_of_type_any_a_class_function_or_other_type_assignable_to_the_Function_interface_type_or_an_object_type_with_a_Symbol_hasInstance_method:ca(2359,1,"The_right_hand_side_of_an_instanceof_expression_must_be_either_of_type_any_a_class_function_or_other_2359","The right-hand side of an 'instanceof' expression must be either of type 'any', a class, function, or other type assignable to the 'Function' interface type, or an object type with a 'Symbol.hasInstance' method."),The_left_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type:ca(2362,1,"The_left_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type_2362","The left-hand side of an arithmetic operation must be of type 'any', 'number', 'bigint' or an enum type."),The_right_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type:ca(2363,1,"The_right_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type_2363","The right-hand side of an arithmetic operation must be of type 'any', 'number', 'bigint' or an enum type."),The_left_hand_side_of_an_assignment_expression_must_be_a_variable_or_a_property_access:ca(2364,1,"The_left_hand_side_of_an_assignment_expression_must_be_a_variable_or_a_property_access_2364","The left-hand side of an assignment expression must be a variable or a property access."),Operator_0_cannot_be_applied_to_types_1_and_2:ca(2365,1,"Operator_0_cannot_be_applied_to_types_1_and_2_2365","Operator '{0}' cannot be applied to types '{1}' and '{2}'."),Function_lacks_ending_return_statement_and_return_type_does_not_include_undefined:ca(2366,1,"Function_lacks_ending_return_statement_and_return_type_does_not_include_undefined_2366","Function lacks ending return statement and return type does not include 'undefined'."),This_comparison_appears_to_be_unintentional_because_the_types_0_and_1_have_no_overlap:ca(2367,1,"This_comparison_appears_to_be_unintentional_because_the_types_0_and_1_have_no_overlap_2367","This comparison appears to be unintentional because the types '{0}' and '{1}' have no overlap."),Type_parameter_name_cannot_be_0:ca(2368,1,"Type_parameter_name_cannot_be_0_2368","Type parameter name cannot be '{0}'."),A_parameter_property_is_only_allowed_in_a_constructor_implementation:ca(2369,1,"A_parameter_property_is_only_allowed_in_a_constructor_implementation_2369","A parameter property is only allowed in a constructor implementation."),A_rest_parameter_must_be_of_an_array_type:ca(2370,1,"A_rest_parameter_must_be_of_an_array_type_2370","A rest parameter must be of an array type."),A_parameter_initializer_is_only_allowed_in_a_function_or_constructor_implementation:ca(2371,1,"A_parameter_initializer_is_only_allowed_in_a_function_or_constructor_implementation_2371","A parameter initializer is only allowed in a function or constructor implementation."),Parameter_0_cannot_reference_itself:ca(2372,1,"Parameter_0_cannot_reference_itself_2372","Parameter '{0}' cannot reference itself."),Parameter_0_cannot_reference_identifier_1_declared_after_it:ca(2373,1,"Parameter_0_cannot_reference_identifier_1_declared_after_it_2373","Parameter '{0}' cannot reference identifier '{1}' declared after it."),Duplicate_index_signature_for_type_0:ca(2374,1,"Duplicate_index_signature_for_type_0_2374","Duplicate index signature for type '{0}'."),Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_types_of_the_target_s_properties:ca(2375,1,"Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefi_2375","Type '{0}' is not assignable to type '{1}' with 'exactOptionalPropertyTypes: true'. Consider adding 'undefined' to the types of the target's properties."),A_super_call_must_be_the_first_statement_in_the_constructor_to_refer_to_super_or_this_when_a_derived_class_contains_initialized_properties_parameter_properties_or_private_identifiers:ca(2376,1,"A_super_call_must_be_the_first_statement_in_the_constructor_to_refer_to_super_or_this_when_a_derived_2376","A 'super' call must be the first statement in the constructor to refer to 'super' or 'this' when a derived class contains initialized properties, parameter properties, or private identifiers."),Constructors_for_derived_classes_must_contain_a_super_call:ca(2377,1,"Constructors_for_derived_classes_must_contain_a_super_call_2377","Constructors for derived classes must contain a 'super' call."),A_get_accessor_must_return_a_value:ca(2378,1,"A_get_accessor_must_return_a_value_2378","A 'get' accessor must return a value."),Argument_of_type_0_is_not_assignable_to_parameter_of_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_types_of_the_target_s_properties:ca(2379,1,"Argument_of_type_0_is_not_assignable_to_parameter_of_type_1_with_exactOptionalPropertyTypes_Colon_tr_2379","Argument of type '{0}' is not assignable to parameter of type '{1}' with 'exactOptionalPropertyTypes: true'. Consider adding 'undefined' to the types of the target's properties."),Overload_signatures_must_all_be_exported_or_non_exported:ca(2383,1,"Overload_signatures_must_all_be_exported_or_non_exported_2383","Overload signatures must all be exported or non-exported."),Overload_signatures_must_all_be_ambient_or_non_ambient:ca(2384,1,"Overload_signatures_must_all_be_ambient_or_non_ambient_2384","Overload signatures must all be ambient or non-ambient."),Overload_signatures_must_all_be_public_private_or_protected:ca(2385,1,"Overload_signatures_must_all_be_public_private_or_protected_2385","Overload signatures must all be public, private or protected."),Overload_signatures_must_all_be_optional_or_required:ca(2386,1,"Overload_signatures_must_all_be_optional_or_required_2386","Overload signatures must all be optional or required."),Function_overload_must_be_static:ca(2387,1,"Function_overload_must_be_static_2387","Function overload must be static."),Function_overload_must_not_be_static:ca(2388,1,"Function_overload_must_not_be_static_2388","Function overload must not be static."),Function_implementation_name_must_be_0:ca(2389,1,"Function_implementation_name_must_be_0_2389","Function implementation name must be '{0}'."),Constructor_implementation_is_missing:ca(2390,1,"Constructor_implementation_is_missing_2390","Constructor implementation is missing."),Function_implementation_is_missing_or_not_immediately_following_the_declaration:ca(2391,1,"Function_implementation_is_missing_or_not_immediately_following_the_declaration_2391","Function implementation is missing or not immediately following the declaration."),Multiple_constructor_implementations_are_not_allowed:ca(2392,1,"Multiple_constructor_implementations_are_not_allowed_2392","Multiple constructor implementations are not allowed."),Duplicate_function_implementation:ca(2393,1,"Duplicate_function_implementation_2393","Duplicate function implementation."),This_overload_signature_is_not_compatible_with_its_implementation_signature:ca(2394,1,"This_overload_signature_is_not_compatible_with_its_implementation_signature_2394","This overload signature is not compatible with its implementation signature."),Individual_declarations_in_merged_declaration_0_must_be_all_exported_or_all_local:ca(2395,1,"Individual_declarations_in_merged_declaration_0_must_be_all_exported_or_all_local_2395","Individual declarations in merged declaration '{0}' must be all exported or all local."),Duplicate_identifier_arguments_Compiler_uses_arguments_to_initialize_rest_parameters:ca(2396,1,"Duplicate_identifier_arguments_Compiler_uses_arguments_to_initialize_rest_parameters_2396","Duplicate identifier 'arguments'. Compiler uses 'arguments' to initialize rest parameters."),Declaration_name_conflicts_with_built_in_global_identifier_0:ca(2397,1,"Declaration_name_conflicts_with_built_in_global_identifier_0_2397","Declaration name conflicts with built-in global identifier '{0}'."),constructor_cannot_be_used_as_a_parameter_property_name:ca(2398,1,"constructor_cannot_be_used_as_a_parameter_property_name_2398","'constructor' cannot be used as a parameter property name."),Duplicate_identifier_this_Compiler_uses_variable_declaration_this_to_capture_this_reference:ca(2399,1,"Duplicate_identifier_this_Compiler_uses_variable_declaration_this_to_capture_this_reference_2399","Duplicate identifier '_this'. Compiler uses variable declaration '_this' to capture 'this' reference."),Expression_resolves_to_variable_declaration_this_that_compiler_uses_to_capture_this_reference:ca(2400,1,"Expression_resolves_to_variable_declaration_this_that_compiler_uses_to_capture_this_reference_2400","Expression resolves to variable declaration '_this' that compiler uses to capture 'this' reference."),A_super_call_must_be_a_root_level_statement_within_a_constructor_of_a_derived_class_that_contains_initialized_properties_parameter_properties_or_private_identifiers:ca(2401,1,"A_super_call_must_be_a_root_level_statement_within_a_constructor_of_a_derived_class_that_contains_in_2401","A 'super' call must be a root-level statement within a constructor of a derived class that contains initialized properties, parameter properties, or private identifiers."),Expression_resolves_to_super_that_compiler_uses_to_capture_base_class_reference:ca(2402,1,"Expression_resolves_to_super_that_compiler_uses_to_capture_base_class_reference_2402","Expression resolves to '_super' that compiler uses to capture base class reference."),Subsequent_variable_declarations_must_have_the_same_type_Variable_0_must_be_of_type_1_but_here_has_type_2:ca(2403,1,"Subsequent_variable_declarations_must_have_the_same_type_Variable_0_must_be_of_type_1_but_here_has_t_2403","Subsequent variable declarations must have the same type. Variable '{0}' must be of type '{1}', but here has type '{2}'."),The_left_hand_side_of_a_for_in_statement_cannot_use_a_type_annotation:ca(2404,1,"The_left_hand_side_of_a_for_in_statement_cannot_use_a_type_annotation_2404","The left-hand side of a 'for...in' statement cannot use a type annotation."),The_left_hand_side_of_a_for_in_statement_must_be_of_type_string_or_any:ca(2405,1,"The_left_hand_side_of_a_for_in_statement_must_be_of_type_string_or_any_2405","The left-hand side of a 'for...in' statement must be of type 'string' or 'any'."),The_left_hand_side_of_a_for_in_statement_must_be_a_variable_or_a_property_access:ca(2406,1,"The_left_hand_side_of_a_for_in_statement_must_be_a_variable_or_a_property_access_2406","The left-hand side of a 'for...in' statement must be a variable or a property access."),The_right_hand_side_of_a_for_in_statement_must_be_of_type_any_an_object_type_or_a_type_parameter_but_here_has_type_0:ca(2407,1,"The_right_hand_side_of_a_for_in_statement_must_be_of_type_any_an_object_type_or_a_type_parameter_but_2407","The right-hand side of a 'for...in' statement must be of type 'any', an object type or a type parameter, but here has type '{0}'."),Setters_cannot_return_a_value:ca(2408,1,"Setters_cannot_return_a_value_2408","Setters cannot return a value."),Return_type_of_constructor_signature_must_be_assignable_to_the_instance_type_of_the_class:ca(2409,1,"Return_type_of_constructor_signature_must_be_assignable_to_the_instance_type_of_the_class_2409","Return type of constructor signature must be assignable to the instance type of the class."),The_with_statement_is_not_supported_All_symbols_in_a_with_block_will_have_type_any:ca(2410,1,"The_with_statement_is_not_supported_All_symbols_in_a_with_block_will_have_type_any_2410","The 'with' statement is not supported. All symbols in a 'with' block will have type 'any'."),Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_type_of_the_target:ca(2412,1,"Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefi_2412","Type '{0}' is not assignable to type '{1}' with 'exactOptionalPropertyTypes: true'. Consider adding 'undefined' to the type of the target."),Property_0_of_type_1_is_not_assignable_to_2_index_type_3:ca(2411,1,"Property_0_of_type_1_is_not_assignable_to_2_index_type_3_2411","Property '{0}' of type '{1}' is not assignable to '{2}' index type '{3}'."),_0_index_type_1_is_not_assignable_to_2_index_type_3:ca(2413,1,"_0_index_type_1_is_not_assignable_to_2_index_type_3_2413","'{0}' index type '{1}' is not assignable to '{2}' index type '{3}'."),Class_name_cannot_be_0:ca(2414,1,"Class_name_cannot_be_0_2414","Class name cannot be '{0}'."),Class_0_incorrectly_extends_base_class_1:ca(2415,1,"Class_0_incorrectly_extends_base_class_1_2415","Class '{0}' incorrectly extends base class '{1}'."),Property_0_in_type_1_is_not_assignable_to_the_same_property_in_base_type_2:ca(2416,1,"Property_0_in_type_1_is_not_assignable_to_the_same_property_in_base_type_2_2416","Property '{0}' in type '{1}' is not assignable to the same property in base type '{2}'."),Class_static_side_0_incorrectly_extends_base_class_static_side_1:ca(2417,1,"Class_static_side_0_incorrectly_extends_base_class_static_side_1_2417","Class static side '{0}' incorrectly extends base class static side '{1}'."),Type_of_computed_property_s_value_is_0_which_is_not_assignable_to_type_1:ca(2418,1,"Type_of_computed_property_s_value_is_0_which_is_not_assignable_to_type_1_2418","Type of computed property's value is '{0}', which is not assignable to type '{1}'."),Types_of_construct_signatures_are_incompatible:ca(2419,1,"Types_of_construct_signatures_are_incompatible_2419","Types of construct signatures are incompatible."),Class_0_incorrectly_implements_interface_1:ca(2420,1,"Class_0_incorrectly_implements_interface_1_2420","Class '{0}' incorrectly implements interface '{1}'."),A_class_can_only_implement_an_object_type_or_intersection_of_object_types_with_statically_known_members:ca(2422,1,"A_class_can_only_implement_an_object_type_or_intersection_of_object_types_with_statically_known_memb_2422","A class can only implement an object type or intersection of object types with statically known members."),Class_0_defines_instance_member_function_1_but_extended_class_2_defines_it_as_instance_member_accessor:ca(2423,1,"Class_0_defines_instance_member_function_1_but_extended_class_2_defines_it_as_instance_member_access_2423","Class '{0}' defines instance member function '{1}', but extended class '{2}' defines it as instance member accessor."),Class_0_defines_instance_member_property_1_but_extended_class_2_defines_it_as_instance_member_function:ca(2425,1,"Class_0_defines_instance_member_property_1_but_extended_class_2_defines_it_as_instance_member_functi_2425","Class '{0}' defines instance member property '{1}', but extended class '{2}' defines it as instance member function."),Class_0_defines_instance_member_accessor_1_but_extended_class_2_defines_it_as_instance_member_function:ca(2426,1,"Class_0_defines_instance_member_accessor_1_but_extended_class_2_defines_it_as_instance_member_functi_2426","Class '{0}' defines instance member accessor '{1}', but extended class '{2}' defines it as instance member function."),Interface_name_cannot_be_0:ca(2427,1,"Interface_name_cannot_be_0_2427","Interface name cannot be '{0}'."),All_declarations_of_0_must_have_identical_type_parameters:ca(2428,1,"All_declarations_of_0_must_have_identical_type_parameters_2428","All declarations of '{0}' must have identical type parameters."),Interface_0_incorrectly_extends_interface_1:ca(2430,1,"Interface_0_incorrectly_extends_interface_1_2430","Interface '{0}' incorrectly extends interface '{1}'."),Enum_name_cannot_be_0:ca(2431,1,"Enum_name_cannot_be_0_2431","Enum name cannot be '{0}'."),In_an_enum_with_multiple_declarations_only_one_declaration_can_omit_an_initializer_for_its_first_enum_element:ca(2432,1,"In_an_enum_with_multiple_declarations_only_one_declaration_can_omit_an_initializer_for_its_first_enu_2432","In an enum with multiple declarations, only one declaration can omit an initializer for its first enum element."),A_namespace_declaration_cannot_be_in_a_different_file_from_a_class_or_function_with_which_it_is_merged:ca(2433,1,"A_namespace_declaration_cannot_be_in_a_different_file_from_a_class_or_function_with_which_it_is_merg_2433","A namespace declaration cannot be in a different file from a class or function with which it is merged."),A_namespace_declaration_cannot_be_located_prior_to_a_class_or_function_with_which_it_is_merged:ca(2434,1,"A_namespace_declaration_cannot_be_located_prior_to_a_class_or_function_with_which_it_is_merged_2434","A namespace declaration cannot be located prior to a class or function with which it is merged."),Ambient_modules_cannot_be_nested_in_other_modules_or_namespaces:ca(2435,1,"Ambient_modules_cannot_be_nested_in_other_modules_or_namespaces_2435","Ambient modules cannot be nested in other modules or namespaces."),Ambient_module_declaration_cannot_specify_relative_module_name:ca(2436,1,"Ambient_module_declaration_cannot_specify_relative_module_name_2436","Ambient module declaration cannot specify relative module name."),Module_0_is_hidden_by_a_local_declaration_with_the_same_name:ca(2437,1,"Module_0_is_hidden_by_a_local_declaration_with_the_same_name_2437","Module '{0}' is hidden by a local declaration with the same name."),Import_name_cannot_be_0:ca(2438,1,"Import_name_cannot_be_0_2438","Import name cannot be '{0}'."),Import_or_export_declaration_in_an_ambient_module_declaration_cannot_reference_module_through_relative_module_name:ca(2439,1,"Import_or_export_declaration_in_an_ambient_module_declaration_cannot_reference_module_through_relati_2439","Import or export declaration in an ambient module declaration cannot reference module through relative module name."),Import_declaration_conflicts_with_local_declaration_of_0:ca(2440,1,"Import_declaration_conflicts_with_local_declaration_of_0_2440","Import declaration conflicts with local declaration of '{0}'."),Duplicate_identifier_0_Compiler_reserves_name_1_in_top_level_scope_of_a_module:ca(2441,1,"Duplicate_identifier_0_Compiler_reserves_name_1_in_top_level_scope_of_a_module_2441","Duplicate identifier '{0}'. Compiler reserves name '{1}' in top level scope of a module."),Types_have_separate_declarations_of_a_private_property_0:ca(2442,1,"Types_have_separate_declarations_of_a_private_property_0_2442","Types have separate declarations of a private property '{0}'."),Property_0_is_protected_but_type_1_is_not_a_class_derived_from_2:ca(2443,1,"Property_0_is_protected_but_type_1_is_not_a_class_derived_from_2_2443","Property '{0}' is protected but type '{1}' is not a class derived from '{2}'."),Property_0_is_protected_in_type_1_but_public_in_type_2:ca(2444,1,"Property_0_is_protected_in_type_1_but_public_in_type_2_2444","Property '{0}' is protected in type '{1}' but public in type '{2}'."),Property_0_is_protected_and_only_accessible_within_class_1_and_its_subclasses:ca(2445,1,"Property_0_is_protected_and_only_accessible_within_class_1_and_its_subclasses_2445","Property '{0}' is protected and only accessible within class '{1}' and its subclasses."),Property_0_is_protected_and_only_accessible_through_an_instance_of_class_1_This_is_an_instance_of_class_2:ca(2446,1,"Property_0_is_protected_and_only_accessible_through_an_instance_of_class_1_This_is_an_instance_of_cl_2446","Property '{0}' is protected and only accessible through an instance of class '{1}'. This is an instance of class '{2}'."),The_0_operator_is_not_allowed_for_boolean_types_Consider_using_1_instead:ca(2447,1,"The_0_operator_is_not_allowed_for_boolean_types_Consider_using_1_instead_2447","The '{0}' operator is not allowed for boolean types. Consider using '{1}' instead."),Block_scoped_variable_0_used_before_its_declaration:ca(2448,1,"Block_scoped_variable_0_used_before_its_declaration_2448","Block-scoped variable '{0}' used before its declaration."),Class_0_used_before_its_declaration:ca(2449,1,"Class_0_used_before_its_declaration_2449","Class '{0}' used before its declaration."),Enum_0_used_before_its_declaration:ca(2450,1,"Enum_0_used_before_its_declaration_2450","Enum '{0}' used before its declaration."),Cannot_redeclare_block_scoped_variable_0:ca(2451,1,"Cannot_redeclare_block_scoped_variable_0_2451","Cannot redeclare block-scoped variable '{0}'."),An_enum_member_cannot_have_a_numeric_name:ca(2452,1,"An_enum_member_cannot_have_a_numeric_name_2452","An enum member cannot have a numeric name."),Variable_0_is_used_before_being_assigned:ca(2454,1,"Variable_0_is_used_before_being_assigned_2454","Variable '{0}' is used before being assigned."),Type_alias_0_circularly_references_itself:ca(2456,1,"Type_alias_0_circularly_references_itself_2456","Type alias '{0}' circularly references itself."),Type_alias_name_cannot_be_0:ca(2457,1,"Type_alias_name_cannot_be_0_2457","Type alias name cannot be '{0}'."),An_AMD_module_cannot_have_multiple_name_assignments:ca(2458,1,"An_AMD_module_cannot_have_multiple_name_assignments_2458","An AMD module cannot have multiple name assignments."),Module_0_declares_1_locally_but_it_is_not_exported:ca(2459,1,"Module_0_declares_1_locally_but_it_is_not_exported_2459","Module '{0}' declares '{1}' locally, but it is not exported."),Module_0_declares_1_locally_but_it_is_exported_as_2:ca(2460,1,"Module_0_declares_1_locally_but_it_is_exported_as_2_2460","Module '{0}' declares '{1}' locally, but it is exported as '{2}'."),Type_0_is_not_an_array_type:ca(2461,1,"Type_0_is_not_an_array_type_2461","Type '{0}' is not an array type."),A_rest_element_must_be_last_in_a_destructuring_pattern:ca(2462,1,"A_rest_element_must_be_last_in_a_destructuring_pattern_2462","A rest element must be last in a destructuring pattern."),A_binding_pattern_parameter_cannot_be_optional_in_an_implementation_signature:ca(2463,1,"A_binding_pattern_parameter_cannot_be_optional_in_an_implementation_signature_2463","A binding pattern parameter cannot be optional in an implementation signature."),A_computed_property_name_must_be_of_type_string_number_symbol_or_any:ca(2464,1,"A_computed_property_name_must_be_of_type_string_number_symbol_or_any_2464","A computed property name must be of type 'string', 'number', 'symbol', or 'any'."),this_cannot_be_referenced_in_a_computed_property_name:ca(2465,1,"this_cannot_be_referenced_in_a_computed_property_name_2465","'this' cannot be referenced in a computed property name."),super_cannot_be_referenced_in_a_computed_property_name:ca(2466,1,"super_cannot_be_referenced_in_a_computed_property_name_2466","'super' cannot be referenced in a computed property name."),A_computed_property_name_cannot_reference_a_type_parameter_from_its_containing_type:ca(2467,1,"A_computed_property_name_cannot_reference_a_type_parameter_from_its_containing_type_2467","A computed property name cannot reference a type parameter from its containing type."),Cannot_find_global_value_0:ca(2468,1,"Cannot_find_global_value_0_2468","Cannot find global value '{0}'."),The_0_operator_cannot_be_applied_to_type_symbol:ca(2469,1,"The_0_operator_cannot_be_applied_to_type_symbol_2469","The '{0}' operator cannot be applied to type 'symbol'."),Spread_operator_in_new_expressions_is_only_available_when_targeting_ECMAScript_5_and_higher:ca(2472,1,"Spread_operator_in_new_expressions_is_only_available_when_targeting_ECMAScript_5_and_higher_2472","Spread operator in 'new' expressions is only available when targeting ECMAScript 5 and higher."),Enum_declarations_must_all_be_const_or_non_const:ca(2473,1,"Enum_declarations_must_all_be_const_or_non_const_2473","Enum declarations must all be const or non-const."),const_enum_member_initializers_must_be_constant_expressions:ca(2474,1,"const_enum_member_initializers_must_be_constant_expressions_2474","const enum member initializers must be constant expressions."),const_enums_can_only_be_used_in_property_or_index_access_expressions_or_the_right_hand_side_of_an_import_declaration_or_export_assignment_or_type_query:ca(2475,1,"const_enums_can_only_be_used_in_property_or_index_access_expressions_or_the_right_hand_side_of_an_im_2475","'const' enums can only be used in property or index access expressions or the right hand side of an import declaration or export assignment or type query."),A_const_enum_member_can_only_be_accessed_using_a_string_literal:ca(2476,1,"A_const_enum_member_can_only_be_accessed_using_a_string_literal_2476","A const enum member can only be accessed using a string literal."),const_enum_member_initializer_was_evaluated_to_a_non_finite_value:ca(2477,1,"const_enum_member_initializer_was_evaluated_to_a_non_finite_value_2477","'const' enum member initializer was evaluated to a non-finite value."),const_enum_member_initializer_was_evaluated_to_disallowed_value_NaN:ca(2478,1,"const_enum_member_initializer_was_evaluated_to_disallowed_value_NaN_2478","'const' enum member initializer was evaluated to disallowed value 'NaN'."),let_is_not_allowed_to_be_used_as_a_name_in_let_or_const_declarations:ca(2480,1,"let_is_not_allowed_to_be_used_as_a_name_in_let_or_const_declarations_2480","'let' is not allowed to be used as a name in 'let' or 'const' declarations."),Cannot_initialize_outer_scoped_variable_0_in_the_same_scope_as_block_scoped_declaration_1:ca(2481,1,"Cannot_initialize_outer_scoped_variable_0_in_the_same_scope_as_block_scoped_declaration_1_2481","Cannot initialize outer scoped variable '{0}' in the same scope as block scoped declaration '{1}'."),The_left_hand_side_of_a_for_of_statement_cannot_use_a_type_annotation:ca(2483,1,"The_left_hand_side_of_a_for_of_statement_cannot_use_a_type_annotation_2483","The left-hand side of a 'for...of' statement cannot use a type annotation."),Export_declaration_conflicts_with_exported_declaration_of_0:ca(2484,1,"Export_declaration_conflicts_with_exported_declaration_of_0_2484","Export declaration conflicts with exported declaration of '{0}'."),The_left_hand_side_of_a_for_of_statement_must_be_a_variable_or_a_property_access:ca(2487,1,"The_left_hand_side_of_a_for_of_statement_must_be_a_variable_or_a_property_access_2487","The left-hand side of a 'for...of' statement must be a variable or a property access."),Type_0_must_have_a_Symbol_iterator_method_that_returns_an_iterator:ca(2488,1,"Type_0_must_have_a_Symbol_iterator_method_that_returns_an_iterator_2488","Type '{0}' must have a '[Symbol.iterator]()' method that returns an iterator."),An_iterator_must_have_a_next_method:ca(2489,1,"An_iterator_must_have_a_next_method_2489","An iterator must have a 'next()' method."),The_type_returned_by_the_0_method_of_an_iterator_must_have_a_value_property:ca(2490,1,"The_type_returned_by_the_0_method_of_an_iterator_must_have_a_value_property_2490","The type returned by the '{0}()' method of an iterator must have a 'value' property."),The_left_hand_side_of_a_for_in_statement_cannot_be_a_destructuring_pattern:ca(2491,1,"The_left_hand_side_of_a_for_in_statement_cannot_be_a_destructuring_pattern_2491","The left-hand side of a 'for...in' statement cannot be a destructuring pattern."),Cannot_redeclare_identifier_0_in_catch_clause:ca(2492,1,"Cannot_redeclare_identifier_0_in_catch_clause_2492","Cannot redeclare identifier '{0}' in catch clause."),Tuple_type_0_of_length_1_has_no_element_at_index_2:ca(2493,1,"Tuple_type_0_of_length_1_has_no_element_at_index_2_2493","Tuple type '{0}' of length '{1}' has no element at index '{2}'."),Using_a_string_in_a_for_of_statement_is_only_supported_in_ECMAScript_5_and_higher:ca(2494,1,"Using_a_string_in_a_for_of_statement_is_only_supported_in_ECMAScript_5_and_higher_2494","Using a string in a 'for...of' statement is only supported in ECMAScript 5 and higher."),Type_0_is_not_an_array_type_or_a_string_type:ca(2495,1,"Type_0_is_not_an_array_type_or_a_string_type_2495","Type '{0}' is not an array type or a string type."),The_arguments_object_cannot_be_referenced_in_an_arrow_function_in_ES5_Consider_using_a_standard_function_expression:ca(2496,1,"The_arguments_object_cannot_be_referenced_in_an_arrow_function_in_ES5_Consider_using_a_standard_func_2496","The 'arguments' object cannot be referenced in an arrow function in ES5. Consider using a standard function expression."),This_module_can_only_be_referenced_with_ECMAScript_imports_Slashexports_by_turning_on_the_0_flag_and_referencing_its_default_export:ca(2497,1,"This_module_can_only_be_referenced_with_ECMAScript_imports_Slashexports_by_turning_on_the_0_flag_and_2497","This module can only be referenced with ECMAScript imports/exports by turning on the '{0}' flag and referencing its default export."),Module_0_uses_export_and_cannot_be_used_with_export_Asterisk:ca(2498,1,"Module_0_uses_export_and_cannot_be_used_with_export_Asterisk_2498","Module '{0}' uses 'export =' and cannot be used with 'export *'."),An_interface_can_only_extend_an_identifier_Slashqualified_name_with_optional_type_arguments:ca(2499,1,"An_interface_can_only_extend_an_identifier_Slashqualified_name_with_optional_type_arguments_2499","An interface can only extend an identifier/qualified-name with optional type arguments."),A_class_can_only_implement_an_identifier_Slashqualified_name_with_optional_type_arguments:ca(2500,1,"A_class_can_only_implement_an_identifier_Slashqualified_name_with_optional_type_arguments_2500","A class can only implement an identifier/qualified-name with optional type arguments."),A_rest_element_cannot_contain_a_binding_pattern:ca(2501,1,"A_rest_element_cannot_contain_a_binding_pattern_2501","A rest element cannot contain a binding pattern."),_0_is_referenced_directly_or_indirectly_in_its_own_type_annotation:ca(2502,1,"_0_is_referenced_directly_or_indirectly_in_its_own_type_annotation_2502","'{0}' is referenced directly or indirectly in its own type annotation."),Cannot_find_namespace_0:ca(2503,1,"Cannot_find_namespace_0_2503","Cannot find namespace '{0}'."),Type_0_must_have_a_Symbol_asyncIterator_method_that_returns_an_async_iterator:ca(2504,1,"Type_0_must_have_a_Symbol_asyncIterator_method_that_returns_an_async_iterator_2504","Type '{0}' must have a '[Symbol.asyncIterator]()' method that returns an async iterator."),A_generator_cannot_have_a_void_type_annotation:ca(2505,1,"A_generator_cannot_have_a_void_type_annotation_2505","A generator cannot have a 'void' type annotation."),_0_is_referenced_directly_or_indirectly_in_its_own_base_expression:ca(2506,1,"_0_is_referenced_directly_or_indirectly_in_its_own_base_expression_2506","'{0}' is referenced directly or indirectly in its own base expression."),Type_0_is_not_a_constructor_function_type:ca(2507,1,"Type_0_is_not_a_constructor_function_type_2507","Type '{0}' is not a constructor function type."),No_base_constructor_has_the_specified_number_of_type_arguments:ca(2508,1,"No_base_constructor_has_the_specified_number_of_type_arguments_2508","No base constructor has the specified number of type arguments."),Base_constructor_return_type_0_is_not_an_object_type_or_intersection_of_object_types_with_statically_known_members:ca(2509,1,"Base_constructor_return_type_0_is_not_an_object_type_or_intersection_of_object_types_with_statically_2509","Base constructor return type '{0}' is not an object type or intersection of object types with statically known members."),Base_constructors_must_all_have_the_same_return_type:ca(2510,1,"Base_constructors_must_all_have_the_same_return_type_2510","Base constructors must all have the same return type."),Cannot_create_an_instance_of_an_abstract_class:ca(2511,1,"Cannot_create_an_instance_of_an_abstract_class_2511","Cannot create an instance of an abstract class."),Overload_signatures_must_all_be_abstract_or_non_abstract:ca(2512,1,"Overload_signatures_must_all_be_abstract_or_non_abstract_2512","Overload signatures must all be abstract or non-abstract."),Abstract_method_0_in_class_1_cannot_be_accessed_via_super_expression:ca(2513,1,"Abstract_method_0_in_class_1_cannot_be_accessed_via_super_expression_2513","Abstract method '{0}' in class '{1}' cannot be accessed via super expression."),A_tuple_type_cannot_be_indexed_with_a_negative_value:ca(2514,1,"A_tuple_type_cannot_be_indexed_with_a_negative_value_2514","A tuple type cannot be indexed with a negative value."),Non_abstract_class_0_does_not_implement_inherited_abstract_member_1_from_class_2:ca(2515,1,"Non_abstract_class_0_does_not_implement_inherited_abstract_member_1_from_class_2_2515","Non-abstract class '{0}' does not implement inherited abstract member {1} from class '{2}'."),All_declarations_of_an_abstract_method_must_be_consecutive:ca(2516,1,"All_declarations_of_an_abstract_method_must_be_consecutive_2516","All declarations of an abstract method must be consecutive."),Cannot_assign_an_abstract_constructor_type_to_a_non_abstract_constructor_type:ca(2517,1,"Cannot_assign_an_abstract_constructor_type_to_a_non_abstract_constructor_type_2517","Cannot assign an abstract constructor type to a non-abstract constructor type."),A_this_based_type_guard_is_not_compatible_with_a_parameter_based_type_guard:ca(2518,1,"A_this_based_type_guard_is_not_compatible_with_a_parameter_based_type_guard_2518","A 'this'-based type guard is not compatible with a parameter-based type guard."),An_async_iterator_must_have_a_next_method:ca(2519,1,"An_async_iterator_must_have_a_next_method_2519","An async iterator must have a 'next()' method."),Duplicate_identifier_0_Compiler_uses_declaration_1_to_support_async_functions:ca(2520,1,"Duplicate_identifier_0_Compiler_uses_declaration_1_to_support_async_functions_2520","Duplicate identifier '{0}'. Compiler uses declaration '{1}' to support async functions."),The_arguments_object_cannot_be_referenced_in_an_async_function_or_method_in_ES5_Consider_using_a_standard_function_or_method:ca(2522,1,"The_arguments_object_cannot_be_referenced_in_an_async_function_or_method_in_ES5_Consider_using_a_sta_2522","The 'arguments' object cannot be referenced in an async function or method in ES5. Consider using a standard function or method."),yield_expressions_cannot_be_used_in_a_parameter_initializer:ca(2523,1,"yield_expressions_cannot_be_used_in_a_parameter_initializer_2523","'yield' expressions cannot be used in a parameter initializer."),await_expressions_cannot_be_used_in_a_parameter_initializer:ca(2524,1,"await_expressions_cannot_be_used_in_a_parameter_initializer_2524","'await' expressions cannot be used in a parameter initializer."),A_this_type_is_available_only_in_a_non_static_member_of_a_class_or_interface:ca(2526,1,"A_this_type_is_available_only_in_a_non_static_member_of_a_class_or_interface_2526","A 'this' type is available only in a non-static member of a class or interface."),The_inferred_type_of_0_references_an_inaccessible_1_type_A_type_annotation_is_necessary:ca(2527,1,"The_inferred_type_of_0_references_an_inaccessible_1_type_A_type_annotation_is_necessary_2527","The inferred type of '{0}' references an inaccessible '{1}' type. A type annotation is necessary."),A_module_cannot_have_multiple_default_exports:ca(2528,1,"A_module_cannot_have_multiple_default_exports_2528","A module cannot have multiple default exports."),Duplicate_identifier_0_Compiler_reserves_name_1_in_top_level_scope_of_a_module_containing_async_functions:ca(2529,1,"Duplicate_identifier_0_Compiler_reserves_name_1_in_top_level_scope_of_a_module_containing_async_func_2529","Duplicate identifier '{0}'. Compiler reserves name '{1}' in top level scope of a module containing async functions."),Property_0_is_incompatible_with_index_signature:ca(2530,1,"Property_0_is_incompatible_with_index_signature_2530","Property '{0}' is incompatible with index signature."),Object_is_possibly_null:ca(2531,1,"Object_is_possibly_null_2531","Object is possibly 'null'."),Object_is_possibly_undefined:ca(2532,1,"Object_is_possibly_undefined_2532","Object is possibly 'undefined'."),Object_is_possibly_null_or_undefined:ca(2533,1,"Object_is_possibly_null_or_undefined_2533","Object is possibly 'null' or 'undefined'."),A_function_returning_never_cannot_have_a_reachable_end_point:ca(2534,1,"A_function_returning_never_cannot_have_a_reachable_end_point_2534","A function returning 'never' cannot have a reachable end point."),Type_0_cannot_be_used_to_index_type_1:ca(2536,1,"Type_0_cannot_be_used_to_index_type_1_2536","Type '{0}' cannot be used to index type '{1}'."),Type_0_has_no_matching_index_signature_for_type_1:ca(2537,1,"Type_0_has_no_matching_index_signature_for_type_1_2537","Type '{0}' has no matching index signature for type '{1}'."),Type_0_cannot_be_used_as_an_index_type:ca(2538,1,"Type_0_cannot_be_used_as_an_index_type_2538","Type '{0}' cannot be used as an index type."),Cannot_assign_to_0_because_it_is_not_a_variable:ca(2539,1,"Cannot_assign_to_0_because_it_is_not_a_variable_2539","Cannot assign to '{0}' because it is not a variable."),Cannot_assign_to_0_because_it_is_a_read_only_property:ca(2540,1,"Cannot_assign_to_0_because_it_is_a_read_only_property_2540","Cannot assign to '{0}' because it is a read-only property."),Index_signature_in_type_0_only_permits_reading:ca(2542,1,"Index_signature_in_type_0_only_permits_reading_2542","Index signature in type '{0}' only permits reading."),Duplicate_identifier_newTarget_Compiler_uses_variable_declaration_newTarget_to_capture_new_target_meta_property_reference:ca(2543,1,"Duplicate_identifier_newTarget_Compiler_uses_variable_declaration_newTarget_to_capture_new_target_me_2543","Duplicate identifier '_newTarget'. Compiler uses variable declaration '_newTarget' to capture 'new.target' meta-property reference."),Expression_resolves_to_variable_declaration_newTarget_that_compiler_uses_to_capture_new_target_meta_property_reference:ca(2544,1,"Expression_resolves_to_variable_declaration_newTarget_that_compiler_uses_to_capture_new_target_meta__2544","Expression resolves to variable declaration '_newTarget' that compiler uses to capture 'new.target' meta-property reference."),A_mixin_class_must_have_a_constructor_with_a_single_rest_parameter_of_type_any:ca(2545,1,"A_mixin_class_must_have_a_constructor_with_a_single_rest_parameter_of_type_any_2545","A mixin class must have a constructor with a single rest parameter of type 'any[]'."),The_type_returned_by_the_0_method_of_an_async_iterator_must_be_a_promise_for_a_type_with_a_value_property:ca(2547,1,"The_type_returned_by_the_0_method_of_an_async_iterator_must_be_a_promise_for_a_type_with_a_value_pro_2547","The type returned by the '{0}()' method of an async iterator must be a promise for a type with a 'value' property."),Type_0_is_not_an_array_type_or_does_not_have_a_Symbol_iterator_method_that_returns_an_iterator:ca(2548,1,"Type_0_is_not_an_array_type_or_does_not_have_a_Symbol_iterator_method_that_returns_an_iterator_2548","Type '{0}' is not an array type or does not have a '[Symbol.iterator]()' method that returns an iterator."),Type_0_is_not_an_array_type_or_a_string_type_or_does_not_have_a_Symbol_iterator_method_that_returns_an_iterator:ca(2549,1,"Type_0_is_not_an_array_type_or_a_string_type_or_does_not_have_a_Symbol_iterator_method_that_returns__2549","Type '{0}' is not an array type or a string type or does not have a '[Symbol.iterator]()' method that returns an iterator."),Property_0_does_not_exist_on_type_1_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_2_or_later:ca(2550,1,"Property_0_does_not_exist_on_type_1_Do_you_need_to_change_your_target_library_Try_changing_the_lib_c_2550","Property '{0}' does not exist on type '{1}'. Do you need to change your target library? Try changing the 'lib' compiler option to '{2}' or later."),Property_0_does_not_exist_on_type_1_Did_you_mean_2:ca(2551,1,"Property_0_does_not_exist_on_type_1_Did_you_mean_2_2551","Property '{0}' does not exist on type '{1}'. Did you mean '{2}'?"),Cannot_find_name_0_Did_you_mean_1:ca(2552,1,"Cannot_find_name_0_Did_you_mean_1_2552","Cannot find name '{0}'. Did you mean '{1}'?"),Computed_values_are_not_permitted_in_an_enum_with_string_valued_members:ca(2553,1,"Computed_values_are_not_permitted_in_an_enum_with_string_valued_members_2553","Computed values are not permitted in an enum with string valued members."),Expected_0_arguments_but_got_1:ca(2554,1,"Expected_0_arguments_but_got_1_2554","Expected {0} arguments, but got {1}."),Expected_at_least_0_arguments_but_got_1:ca(2555,1,"Expected_at_least_0_arguments_but_got_1_2555","Expected at least {0} arguments, but got {1}."),A_spread_argument_must_either_have_a_tuple_type_or_be_passed_to_a_rest_parameter:ca(2556,1,"A_spread_argument_must_either_have_a_tuple_type_or_be_passed_to_a_rest_parameter_2556","A spread argument must either have a tuple type or be passed to a rest parameter."),Expected_0_type_arguments_but_got_1:ca(2558,1,"Expected_0_type_arguments_but_got_1_2558","Expected {0} type arguments, but got {1}."),Type_0_has_no_properties_in_common_with_type_1:ca(2559,1,"Type_0_has_no_properties_in_common_with_type_1_2559","Type '{0}' has no properties in common with type '{1}'."),Value_of_type_0_has_no_properties_in_common_with_type_1_Did_you_mean_to_call_it:ca(2560,1,"Value_of_type_0_has_no_properties_in_common_with_type_1_Did_you_mean_to_call_it_2560","Value of type '{0}' has no properties in common with type '{1}'. Did you mean to call it?"),Object_literal_may_only_specify_known_properties_but_0_does_not_exist_in_type_1_Did_you_mean_to_write_2:ca(2561,1,"Object_literal_may_only_specify_known_properties_but_0_does_not_exist_in_type_1_Did_you_mean_to_writ_2561","Object literal may only specify known properties, but '{0}' does not exist in type '{1}'. Did you mean to write '{2}'?"),Base_class_expressions_cannot_reference_class_type_parameters:ca(2562,1,"Base_class_expressions_cannot_reference_class_type_parameters_2562","Base class expressions cannot reference class type parameters."),The_containing_function_or_module_body_is_too_large_for_control_flow_analysis:ca(2563,1,"The_containing_function_or_module_body_is_too_large_for_control_flow_analysis_2563","The containing function or module body is too large for control flow analysis."),Property_0_has_no_initializer_and_is_not_definitely_assigned_in_the_constructor:ca(2564,1,"Property_0_has_no_initializer_and_is_not_definitely_assigned_in_the_constructor_2564","Property '{0}' has no initializer and is not definitely assigned in the constructor."),Property_0_is_used_before_being_assigned:ca(2565,1,"Property_0_is_used_before_being_assigned_2565","Property '{0}' is used before being assigned."),A_rest_element_cannot_have_a_property_name:ca(2566,1,"A_rest_element_cannot_have_a_property_name_2566","A rest element cannot have a property name."),Enum_declarations_can_only_merge_with_namespace_or_other_enum_declarations:ca(2567,1,"Enum_declarations_can_only_merge_with_namespace_or_other_enum_declarations_2567","Enum declarations can only merge with namespace or other enum declarations."),Property_0_may_not_exist_on_type_1_Did_you_mean_2:ca(2568,1,"Property_0_may_not_exist_on_type_1_Did_you_mean_2_2568","Property '{0}' may not exist on type '{1}'. Did you mean '{2}'?"),Could_not_find_name_0_Did_you_mean_1:ca(2570,1,"Could_not_find_name_0_Did_you_mean_1_2570","Could not find name '{0}'. Did you mean '{1}'?"),Object_is_of_type_unknown:ca(2571,1,"Object_is_of_type_unknown_2571","Object is of type 'unknown'."),A_rest_element_type_must_be_an_array_type:ca(2574,1,"A_rest_element_type_must_be_an_array_type_2574","A rest element type must be an array type."),No_overload_expects_0_arguments_but_overloads_do_exist_that_expect_either_1_or_2_arguments:ca(2575,1,"No_overload_expects_0_arguments_but_overloads_do_exist_that_expect_either_1_or_2_arguments_2575","No overload expects {0} arguments, but overloads do exist that expect either {1} or {2} arguments."),Property_0_does_not_exist_on_type_1_Did_you_mean_to_access_the_static_member_2_instead:ca(2576,1,"Property_0_does_not_exist_on_type_1_Did_you_mean_to_access_the_static_member_2_instead_2576","Property '{0}' does not exist on type '{1}'. Did you mean to access the static member '{2}' instead?"),Return_type_annotation_circularly_references_itself:ca(2577,1,"Return_type_annotation_circularly_references_itself_2577","Return type annotation circularly references itself."),Unused_ts_expect_error_directive:ca(2578,1,"Unused_ts_expect_error_directive_2578","Unused '@ts-expect-error' directive."),Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_node_Try_npm_i_save_dev_types_Slashnode:ca(2580,1,"Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_node_Try_npm_i_save_dev_types_Slashno_2580","Cannot find name '{0}'. Do you need to install type definitions for node? Try `npm i --save-dev @types/node`."),Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_jQuery_Try_npm_i_save_dev_types_Slashjquery:ca(2581,1,"Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_jQuery_Try_npm_i_save_dev_types_Slash_2581","Cannot find name '{0}'. Do you need to install type definitions for jQuery? Try `npm i --save-dev @types/jquery`."),Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_a_test_runner_Try_npm_i_save_dev_types_Slashjest_or_npm_i_save_dev_types_Slashmocha:ca(2582,1,"Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_a_test_runner_Try_npm_i_save_dev_type_2582","Cannot find name '{0}'. Do you need to install type definitions for a test runner? Try `npm i --save-dev @types/jest` or `npm i --save-dev @types/mocha`."),Cannot_find_name_0_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_1_or_later:ca(2583,1,"Cannot_find_name_0_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_2583","Cannot find name '{0}'. Do you need to change your target library? Try changing the 'lib' compiler option to '{1}' or later."),Cannot_find_name_0_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_include_dom:ca(2584,1,"Cannot_find_name_0_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_2584","Cannot find name '{0}'. Do you need to change your target library? Try changing the 'lib' compiler option to include 'dom'."),_0_only_refers_to_a_type_but_is_being_used_as_a_value_here_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_es2015_or_later:ca(2585,1,"_0_only_refers_to_a_type_but_is_being_used_as_a_value_here_Do_you_need_to_change_your_target_library_2585","'{0}' only refers to a type, but is being used as a value here. Do you need to change your target library? Try changing the 'lib' compiler option to es2015 or later."),Cannot_assign_to_0_because_it_is_a_constant:ca(2588,1,"Cannot_assign_to_0_because_it_is_a_constant_2588","Cannot assign to '{0}' because it is a constant."),Type_instantiation_is_excessively_deep_and_possibly_infinite:ca(2589,1,"Type_instantiation_is_excessively_deep_and_possibly_infinite_2589","Type instantiation is excessively deep and possibly infinite."),Expression_produces_a_union_type_that_is_too_complex_to_represent:ca(2590,1,"Expression_produces_a_union_type_that_is_too_complex_to_represent_2590","Expression produces a union type that is too complex to represent."),Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_node_Try_npm_i_save_dev_types_Slashnode_and_then_add_node_to_the_types_field_in_your_tsconfig:ca(2591,1,"Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_node_Try_npm_i_save_dev_types_Slashno_2591","Cannot find name '{0}'. Do you need to install type definitions for node? Try `npm i --save-dev @types/node` and then add 'node' to the types field in your tsconfig."),Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_jQuery_Try_npm_i_save_dev_types_Slashjquery_and_then_add_jquery_to_the_types_field_in_your_tsconfig:ca(2592,1,"Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_jQuery_Try_npm_i_save_dev_types_Slash_2592","Cannot find name '{0}'. Do you need to install type definitions for jQuery? Try `npm i --save-dev @types/jquery` and then add 'jquery' to the types field in your tsconfig."),Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_a_test_runner_Try_npm_i_save_dev_types_Slashjest_or_npm_i_save_dev_types_Slashmocha_and_then_add_jest_or_mocha_to_the_types_field_in_your_tsconfig:ca(2593,1,"Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_a_test_runner_Try_npm_i_save_dev_type_2593","Cannot find name '{0}'. Do you need to install type definitions for a test runner? Try `npm i --save-dev @types/jest` or `npm i --save-dev @types/mocha` and then add 'jest' or 'mocha' to the types field in your tsconfig."),This_module_is_declared_with_export_and_can_only_be_used_with_a_default_import_when_using_the_0_flag:ca(2594,1,"This_module_is_declared_with_export_and_can_only_be_used_with_a_default_import_when_using_the_0_flag_2594","This module is declared with 'export =', and can only be used with a default import when using the '{0}' flag."),_0_can_only_be_imported_by_using_a_default_import:ca(2595,1,"_0_can_only_be_imported_by_using_a_default_import_2595","'{0}' can only be imported by using a default import."),_0_can_only_be_imported_by_turning_on_the_esModuleInterop_flag_and_using_a_default_import:ca(2596,1,"_0_can_only_be_imported_by_turning_on_the_esModuleInterop_flag_and_using_a_default_import_2596","'{0}' can only be imported by turning on the 'esModuleInterop' flag and using a default import."),_0_can_only_be_imported_by_using_a_require_call_or_by_using_a_default_import:ca(2597,1,"_0_can_only_be_imported_by_using_a_require_call_or_by_using_a_default_import_2597","'{0}' can only be imported by using a 'require' call or by using a default import."),_0_can_only_be_imported_by_using_a_require_call_or_by_turning_on_the_esModuleInterop_flag_and_using_a_default_import:ca(2598,1,"_0_can_only_be_imported_by_using_a_require_call_or_by_turning_on_the_esModuleInterop_flag_and_using__2598","'{0}' can only be imported by using a 'require' call or by turning on the 'esModuleInterop' flag and using a default import."),JSX_element_implicitly_has_type_any_because_the_global_type_JSX_Element_does_not_exist:ca(2602,1,"JSX_element_implicitly_has_type_any_because_the_global_type_JSX_Element_does_not_exist_2602","JSX element implicitly has type 'any' because the global type 'JSX.Element' does not exist."),Property_0_in_type_1_is_not_assignable_to_type_2:ca(2603,1,"Property_0_in_type_1_is_not_assignable_to_type_2_2603","Property '{0}' in type '{1}' is not assignable to type '{2}'."),JSX_element_type_0_does_not_have_any_construct_or_call_signatures:ca(2604,1,"JSX_element_type_0_does_not_have_any_construct_or_call_signatures_2604","JSX element type '{0}' does not have any construct or call signatures."),Property_0_of_JSX_spread_attribute_is_not_assignable_to_target_property:ca(2606,1,"Property_0_of_JSX_spread_attribute_is_not_assignable_to_target_property_2606","Property '{0}' of JSX spread attribute is not assignable to target property."),JSX_element_class_does_not_support_attributes_because_it_does_not_have_a_0_property:ca(2607,1,"JSX_element_class_does_not_support_attributes_because_it_does_not_have_a_0_property_2607","JSX element class does not support attributes because it does not have a '{0}' property."),The_global_type_JSX_0_may_not_have_more_than_one_property:ca(2608,1,"The_global_type_JSX_0_may_not_have_more_than_one_property_2608","The global type 'JSX.{0}' may not have more than one property."),JSX_spread_child_must_be_an_array_type:ca(2609,1,"JSX_spread_child_must_be_an_array_type_2609","JSX spread child must be an array type."),_0_is_defined_as_an_accessor_in_class_1_but_is_overridden_here_in_2_as_an_instance_property:ca(2610,1,"_0_is_defined_as_an_accessor_in_class_1_but_is_overridden_here_in_2_as_an_instance_property_2610","'{0}' is defined as an accessor in class '{1}', but is overridden here in '{2}' as an instance property."),_0_is_defined_as_a_property_in_class_1_but_is_overridden_here_in_2_as_an_accessor:ca(2611,1,"_0_is_defined_as_a_property_in_class_1_but_is_overridden_here_in_2_as_an_accessor_2611","'{0}' is defined as a property in class '{1}', but is overridden here in '{2}' as an accessor."),Property_0_will_overwrite_the_base_property_in_1_If_this_is_intentional_add_an_initializer_Otherwise_add_a_declare_modifier_or_remove_the_redundant_declaration:ca(2612,1,"Property_0_will_overwrite_the_base_property_in_1_If_this_is_intentional_add_an_initializer_Otherwise_2612","Property '{0}' will overwrite the base property in '{1}'. If this is intentional, add an initializer. Otherwise, add a 'declare' modifier or remove the redundant declaration."),Module_0_has_no_default_export_Did_you_mean_to_use_import_1_from_0_instead:ca(2613,1,"Module_0_has_no_default_export_Did_you_mean_to_use_import_1_from_0_instead_2613","Module '{0}' has no default export. Did you mean to use 'import { {1} } from {0}' instead?"),Module_0_has_no_exported_member_1_Did_you_mean_to_use_import_1_from_0_instead:ca(2614,1,"Module_0_has_no_exported_member_1_Did_you_mean_to_use_import_1_from_0_instead_2614","Module '{0}' has no exported member '{1}'. Did you mean to use 'import {1} from {0}' instead?"),Type_of_property_0_circularly_references_itself_in_mapped_type_1:ca(2615,1,"Type_of_property_0_circularly_references_itself_in_mapped_type_1_2615","Type of property '{0}' circularly references itself in mapped type '{1}'."),_0_can_only_be_imported_by_using_import_1_require_2_or_a_default_import:ca(2616,1,"_0_can_only_be_imported_by_using_import_1_require_2_or_a_default_import_2616","'{0}' can only be imported by using 'import {1} = require({2})' or a default import."),_0_can_only_be_imported_by_using_import_1_require_2_or_by_turning_on_the_esModuleInterop_flag_and_using_a_default_import:ca(2617,1,"_0_can_only_be_imported_by_using_import_1_require_2_or_by_turning_on_the_esModuleInterop_flag_and_us_2617","'{0}' can only be imported by using 'import {1} = require({2})' or by turning on the 'esModuleInterop' flag and using a default import."),Source_has_0_element_s_but_target_requires_1:ca(2618,1,"Source_has_0_element_s_but_target_requires_1_2618","Source has {0} element(s) but target requires {1}."),Source_has_0_element_s_but_target_allows_only_1:ca(2619,1,"Source_has_0_element_s_but_target_allows_only_1_2619","Source has {0} element(s) but target allows only {1}."),Target_requires_0_element_s_but_source_may_have_fewer:ca(2620,1,"Target_requires_0_element_s_but_source_may_have_fewer_2620","Target requires {0} element(s) but source may have fewer."),Target_allows_only_0_element_s_but_source_may_have_more:ca(2621,1,"Target_allows_only_0_element_s_but_source_may_have_more_2621","Target allows only {0} element(s) but source may have more."),Source_provides_no_match_for_required_element_at_position_0_in_target:ca(2623,1,"Source_provides_no_match_for_required_element_at_position_0_in_target_2623","Source provides no match for required element at position {0} in target."),Source_provides_no_match_for_variadic_element_at_position_0_in_target:ca(2624,1,"Source_provides_no_match_for_variadic_element_at_position_0_in_target_2624","Source provides no match for variadic element at position {0} in target."),Variadic_element_at_position_0_in_source_does_not_match_element_at_position_1_in_target:ca(2625,1,"Variadic_element_at_position_0_in_source_does_not_match_element_at_position_1_in_target_2625","Variadic element at position {0} in source does not match element at position {1} in target."),Type_at_position_0_in_source_is_not_compatible_with_type_at_position_1_in_target:ca(2626,1,"Type_at_position_0_in_source_is_not_compatible_with_type_at_position_1_in_target_2626","Type at position {0} in source is not compatible with type at position {1} in target."),Type_at_positions_0_through_1_in_source_is_not_compatible_with_type_at_position_2_in_target:ca(2627,1,"Type_at_positions_0_through_1_in_source_is_not_compatible_with_type_at_position_2_in_target_2627","Type at positions {0} through {1} in source is not compatible with type at position {2} in target."),Cannot_assign_to_0_because_it_is_an_enum:ca(2628,1,"Cannot_assign_to_0_because_it_is_an_enum_2628","Cannot assign to '{0}' because it is an enum."),Cannot_assign_to_0_because_it_is_a_class:ca(2629,1,"Cannot_assign_to_0_because_it_is_a_class_2629","Cannot assign to '{0}' because it is a class."),Cannot_assign_to_0_because_it_is_a_function:ca(2630,1,"Cannot_assign_to_0_because_it_is_a_function_2630","Cannot assign to '{0}' because it is a function."),Cannot_assign_to_0_because_it_is_a_namespace:ca(2631,1,"Cannot_assign_to_0_because_it_is_a_namespace_2631","Cannot assign to '{0}' because it is a namespace."),Cannot_assign_to_0_because_it_is_an_import:ca(2632,1,"Cannot_assign_to_0_because_it_is_an_import_2632","Cannot assign to '{0}' because it is an import."),JSX_property_access_expressions_cannot_include_JSX_namespace_names:ca(2633,1,"JSX_property_access_expressions_cannot_include_JSX_namespace_names_2633","JSX property access expressions cannot include JSX namespace names"),_0_index_signatures_are_incompatible:ca(2634,1,"_0_index_signatures_are_incompatible_2634","'{0}' index signatures are incompatible."),Type_0_has_no_signatures_for_which_the_type_argument_list_is_applicable:ca(2635,1,"Type_0_has_no_signatures_for_which_the_type_argument_list_is_applicable_2635","Type '{0}' has no signatures for which the type argument list is applicable."),Type_0_is_not_assignable_to_type_1_as_implied_by_variance_annotation:ca(2636,1,"Type_0_is_not_assignable_to_type_1_as_implied_by_variance_annotation_2636","Type '{0}' is not assignable to type '{1}' as implied by variance annotation."),Variance_annotations_are_only_supported_in_type_aliases_for_object_function_constructor_and_mapped_types:ca(2637,1,"Variance_annotations_are_only_supported_in_type_aliases_for_object_function_constructor_and_mapped_t_2637","Variance annotations are only supported in type aliases for object, function, constructor, and mapped types."),Type_0_may_represent_a_primitive_value_which_is_not_permitted_as_the_right_operand_of_the_in_operator:ca(2638,1,"Type_0_may_represent_a_primitive_value_which_is_not_permitted_as_the_right_operand_of_the_in_operato_2638","Type '{0}' may represent a primitive value, which is not permitted as the right operand of the 'in' operator."),React_components_cannot_include_JSX_namespace_names:ca(2639,1,"React_components_cannot_include_JSX_namespace_names_2639","React components cannot include JSX namespace names"),Cannot_augment_module_0_with_value_exports_because_it_resolves_to_a_non_module_entity:ca(2649,1,"Cannot_augment_module_0_with_value_exports_because_it_resolves_to_a_non_module_entity_2649","Cannot augment module '{0}' with value exports because it resolves to a non-module entity."),Non_abstract_class_expression_is_missing_implementations_for_the_following_members_of_0_Colon_1_and_2_more:ca(2650,1,"Non_abstract_class_expression_is_missing_implementations_for_the_following_members_of_0_Colon_1_and__2650","Non-abstract class expression is missing implementations for the following members of '{0}': {1} and {2} more."),A_member_initializer_in_a_enum_declaration_cannot_reference_members_declared_after_it_including_members_defined_in_other_enums:ca(2651,1,"A_member_initializer_in_a_enum_declaration_cannot_reference_members_declared_after_it_including_memb_2651","A member initializer in a enum declaration cannot reference members declared after it, including members defined in other enums."),Merged_declaration_0_cannot_include_a_default_export_declaration_Consider_adding_a_separate_export_default_0_declaration_instead:ca(2652,1,"Merged_declaration_0_cannot_include_a_default_export_declaration_Consider_adding_a_separate_export_d_2652","Merged declaration '{0}' cannot include a default export declaration. Consider adding a separate 'export default {0}' declaration instead."),Non_abstract_class_expression_does_not_implement_inherited_abstract_member_0_from_class_1:ca(2653,1,"Non_abstract_class_expression_does_not_implement_inherited_abstract_member_0_from_class_1_2653","Non-abstract class expression does not implement inherited abstract member '{0}' from class '{1}'."),Non_abstract_class_0_is_missing_implementations_for_the_following_members_of_1_Colon_2:ca(2654,1,"Non_abstract_class_0_is_missing_implementations_for_the_following_members_of_1_Colon_2_2654","Non-abstract class '{0}' is missing implementations for the following members of '{1}': {2}."),Non_abstract_class_0_is_missing_implementations_for_the_following_members_of_1_Colon_2_and_3_more:ca(2655,1,"Non_abstract_class_0_is_missing_implementations_for_the_following_members_of_1_Colon_2_and_3_more_2655","Non-abstract class '{0}' is missing implementations for the following members of '{1}': {2} and {3} more."),Non_abstract_class_expression_is_missing_implementations_for_the_following_members_of_0_Colon_1:ca(2656,1,"Non_abstract_class_expression_is_missing_implementations_for_the_following_members_of_0_Colon_1_2656","Non-abstract class expression is missing implementations for the following members of '{0}': {1}."),JSX_expressions_must_have_one_parent_element:ca(2657,1,"JSX_expressions_must_have_one_parent_element_2657","JSX expressions must have one parent element."),Type_0_provides_no_match_for_the_signature_1:ca(2658,1,"Type_0_provides_no_match_for_the_signature_1_2658","Type '{0}' provides no match for the signature '{1}'."),super_is_only_allowed_in_members_of_object_literal_expressions_when_option_target_is_ES2015_or_higher:ca(2659,1,"super_is_only_allowed_in_members_of_object_literal_expressions_when_option_target_is_ES2015_or_highe_2659","'super' is only allowed in members of object literal expressions when option 'target' is 'ES2015' or higher."),super_can_only_be_referenced_in_members_of_derived_classes_or_object_literal_expressions:ca(2660,1,"super_can_only_be_referenced_in_members_of_derived_classes_or_object_literal_expressions_2660","'super' can only be referenced in members of derived classes or object literal expressions."),Cannot_export_0_Only_local_declarations_can_be_exported_from_a_module:ca(2661,1,"Cannot_export_0_Only_local_declarations_can_be_exported_from_a_module_2661","Cannot export '{0}'. Only local declarations can be exported from a module."),Cannot_find_name_0_Did_you_mean_the_static_member_1_0:ca(2662,1,"Cannot_find_name_0_Did_you_mean_the_static_member_1_0_2662","Cannot find name '{0}'. Did you mean the static member '{1}.{0}'?"),Cannot_find_name_0_Did_you_mean_the_instance_member_this_0:ca(2663,1,"Cannot_find_name_0_Did_you_mean_the_instance_member_this_0_2663","Cannot find name '{0}'. Did you mean the instance member 'this.{0}'?"),Invalid_module_name_in_augmentation_module_0_cannot_be_found:ca(2664,1,"Invalid_module_name_in_augmentation_module_0_cannot_be_found_2664","Invalid module name in augmentation, module '{0}' cannot be found."),Invalid_module_name_in_augmentation_Module_0_resolves_to_an_untyped_module_at_1_which_cannot_be_augmented:ca(2665,1,"Invalid_module_name_in_augmentation_Module_0_resolves_to_an_untyped_module_at_1_which_cannot_be_augm_2665","Invalid module name in augmentation. Module '{0}' resolves to an untyped module at '{1}', which cannot be augmented."),Exports_and_export_assignments_are_not_permitted_in_module_augmentations:ca(2666,1,"Exports_and_export_assignments_are_not_permitted_in_module_augmentations_2666","Exports and export assignments are not permitted in module augmentations."),Imports_are_not_permitted_in_module_augmentations_Consider_moving_them_to_the_enclosing_external_module:ca(2667,1,"Imports_are_not_permitted_in_module_augmentations_Consider_moving_them_to_the_enclosing_external_mod_2667","Imports are not permitted in module augmentations. Consider moving them to the enclosing external module."),export_modifier_cannot_be_applied_to_ambient_modules_and_module_augmentations_since_they_are_always_visible:ca(2668,1,"export_modifier_cannot_be_applied_to_ambient_modules_and_module_augmentations_since_they_are_always__2668","'export' modifier cannot be applied to ambient modules and module augmentations since they are always visible."),Augmentations_for_the_global_scope_can_only_be_directly_nested_in_external_modules_or_ambient_module_declarations:ca(2669,1,"Augmentations_for_the_global_scope_can_only_be_directly_nested_in_external_modules_or_ambient_module_2669","Augmentations for the global scope can only be directly nested in external modules or ambient module declarations."),Augmentations_for_the_global_scope_should_have_declare_modifier_unless_they_appear_in_already_ambient_context:ca(2670,1,"Augmentations_for_the_global_scope_should_have_declare_modifier_unless_they_appear_in_already_ambien_2670","Augmentations for the global scope should have 'declare' modifier unless they appear in already ambient context."),Cannot_augment_module_0_because_it_resolves_to_a_non_module_entity:ca(2671,1,"Cannot_augment_module_0_because_it_resolves_to_a_non_module_entity_2671","Cannot augment module '{0}' because it resolves to a non-module entity."),Cannot_assign_a_0_constructor_type_to_a_1_constructor_type:ca(2672,1,"Cannot_assign_a_0_constructor_type_to_a_1_constructor_type_2672","Cannot assign a '{0}' constructor type to a '{1}' constructor type."),Constructor_of_class_0_is_private_and_only_accessible_within_the_class_declaration:ca(2673,1,"Constructor_of_class_0_is_private_and_only_accessible_within_the_class_declaration_2673","Constructor of class '{0}' is private and only accessible within the class declaration."),Constructor_of_class_0_is_protected_and_only_accessible_within_the_class_declaration:ca(2674,1,"Constructor_of_class_0_is_protected_and_only_accessible_within_the_class_declaration_2674","Constructor of class '{0}' is protected and only accessible within the class declaration."),Cannot_extend_a_class_0_Class_constructor_is_marked_as_private:ca(2675,1,"Cannot_extend_a_class_0_Class_constructor_is_marked_as_private_2675","Cannot extend a class '{0}'. Class constructor is marked as private."),Accessors_must_both_be_abstract_or_non_abstract:ca(2676,1,"Accessors_must_both_be_abstract_or_non_abstract_2676","Accessors must both be abstract or non-abstract."),A_type_predicate_s_type_must_be_assignable_to_its_parameter_s_type:ca(2677,1,"A_type_predicate_s_type_must_be_assignable_to_its_parameter_s_type_2677","A type predicate's type must be assignable to its parameter's type."),Type_0_is_not_comparable_to_type_1:ca(2678,1,"Type_0_is_not_comparable_to_type_1_2678","Type '{0}' is not comparable to type '{1}'."),A_function_that_is_called_with_the_new_keyword_cannot_have_a_this_type_that_is_void:ca(2679,1,"A_function_that_is_called_with_the_new_keyword_cannot_have_a_this_type_that_is_void_2679","A function that is called with the 'new' keyword cannot have a 'this' type that is 'void'."),A_0_parameter_must_be_the_first_parameter:ca(2680,1,"A_0_parameter_must_be_the_first_parameter_2680","A '{0}' parameter must be the first parameter."),A_constructor_cannot_have_a_this_parameter:ca(2681,1,"A_constructor_cannot_have_a_this_parameter_2681","A constructor cannot have a 'this' parameter."),this_implicitly_has_type_any_because_it_does_not_have_a_type_annotation:ca(2683,1,"this_implicitly_has_type_any_because_it_does_not_have_a_type_annotation_2683","'this' implicitly has type 'any' because it does not have a type annotation."),The_this_context_of_type_0_is_not_assignable_to_method_s_this_of_type_1:ca(2684,1,"The_this_context_of_type_0_is_not_assignable_to_method_s_this_of_type_1_2684","The 'this' context of type '{0}' is not assignable to method's 'this' of type '{1}'."),The_this_types_of_each_signature_are_incompatible:ca(2685,1,"The_this_types_of_each_signature_are_incompatible_2685","The 'this' types of each signature are incompatible."),_0_refers_to_a_UMD_global_but_the_current_file_is_a_module_Consider_adding_an_import_instead:ca(2686,1,"_0_refers_to_a_UMD_global_but_the_current_file_is_a_module_Consider_adding_an_import_instead_2686","'{0}' refers to a UMD global, but the current file is a module. Consider adding an import instead."),All_declarations_of_0_must_have_identical_modifiers:ca(2687,1,"All_declarations_of_0_must_have_identical_modifiers_2687","All declarations of '{0}' must have identical modifiers."),Cannot_find_type_definition_file_for_0:ca(2688,1,"Cannot_find_type_definition_file_for_0_2688","Cannot find type definition file for '{0}'."),Cannot_extend_an_interface_0_Did_you_mean_implements:ca(2689,1,"Cannot_extend_an_interface_0_Did_you_mean_implements_2689","Cannot extend an interface '{0}'. Did you mean 'implements'?"),_0_only_refers_to_a_type_but_is_being_used_as_a_value_here_Did_you_mean_to_use_1_in_0:ca(2690,1,"_0_only_refers_to_a_type_but_is_being_used_as_a_value_here_Did_you_mean_to_use_1_in_0_2690","'{0}' only refers to a type, but is being used as a value here. Did you mean to use '{1} in {0}'?"),_0_is_a_primitive_but_1_is_a_wrapper_object_Prefer_using_0_when_possible:ca(2692,1,"_0_is_a_primitive_but_1_is_a_wrapper_object_Prefer_using_0_when_possible_2692","'{0}' is a primitive, but '{1}' is a wrapper object. Prefer using '{0}' when possible."),_0_only_refers_to_a_type_but_is_being_used_as_a_value_here:ca(2693,1,"_0_only_refers_to_a_type_but_is_being_used_as_a_value_here_2693","'{0}' only refers to a type, but is being used as a value here."),Namespace_0_has_no_exported_member_1:ca(2694,1,"Namespace_0_has_no_exported_member_1_2694","Namespace '{0}' has no exported member '{1}'."),Left_side_of_comma_operator_is_unused_and_has_no_side_effects:ca(2695,1,"Left_side_of_comma_operator_is_unused_and_has_no_side_effects_2695","Left side of comma operator is unused and has no side effects.",!0),The_Object_type_is_assignable_to_very_few_other_types_Did_you_mean_to_use_the_any_type_instead:ca(2696,1,"The_Object_type_is_assignable_to_very_few_other_types_Did_you_mean_to_use_the_any_type_instead_2696","The 'Object' type is assignable to very few other types. Did you mean to use the 'any' type instead?"),An_async_function_or_method_must_return_a_Promise_Make_sure_you_have_a_declaration_for_Promise_or_include_ES2015_in_your_lib_option:ca(2697,1,"An_async_function_or_method_must_return_a_Promise_Make_sure_you_have_a_declaration_for_Promise_or_in_2697","An async function or method must return a 'Promise'. Make sure you have a declaration for 'Promise' or include 'ES2015' in your '--lib' option."),Spread_types_may_only_be_created_from_object_types:ca(2698,1,"Spread_types_may_only_be_created_from_object_types_2698","Spread types may only be created from object types."),Static_property_0_conflicts_with_built_in_property_Function_0_of_constructor_function_1:ca(2699,1,"Static_property_0_conflicts_with_built_in_property_Function_0_of_constructor_function_1_2699","Static property '{0}' conflicts with built-in property 'Function.{0}' of constructor function '{1}'."),Rest_types_may_only_be_created_from_object_types:ca(2700,1,"Rest_types_may_only_be_created_from_object_types_2700","Rest types may only be created from object types."),The_target_of_an_object_rest_assignment_must_be_a_variable_or_a_property_access:ca(2701,1,"The_target_of_an_object_rest_assignment_must_be_a_variable_or_a_property_access_2701","The target of an object rest assignment must be a variable or a property access."),_0_only_refers_to_a_type_but_is_being_used_as_a_namespace_here:ca(2702,1,"_0_only_refers_to_a_type_but_is_being_used_as_a_namespace_here_2702","'{0}' only refers to a type, but is being used as a namespace here."),The_operand_of_a_delete_operator_must_be_a_property_reference:ca(2703,1,"The_operand_of_a_delete_operator_must_be_a_property_reference_2703","The operand of a 'delete' operator must be a property reference."),The_operand_of_a_delete_operator_cannot_be_a_read_only_property:ca(2704,1,"The_operand_of_a_delete_operator_cannot_be_a_read_only_property_2704","The operand of a 'delete' operator cannot be a read-only property."),An_async_function_or_method_in_ES5_requires_the_Promise_constructor_Make_sure_you_have_a_declaration_for_the_Promise_constructor_or_include_ES2015_in_your_lib_option:ca(2705,1,"An_async_function_or_method_in_ES5_requires_the_Promise_constructor_Make_sure_you_have_a_declaration_2705","An async function or method in ES5 requires the 'Promise' constructor. Make sure you have a declaration for the 'Promise' constructor or include 'ES2015' in your '--lib' option."),Required_type_parameters_may_not_follow_optional_type_parameters:ca(2706,1,"Required_type_parameters_may_not_follow_optional_type_parameters_2706","Required type parameters may not follow optional type parameters."),Generic_type_0_requires_between_1_and_2_type_arguments:ca(2707,1,"Generic_type_0_requires_between_1_and_2_type_arguments_2707","Generic type '{0}' requires between {1} and {2} type arguments."),Cannot_use_namespace_0_as_a_value:ca(2708,1,"Cannot_use_namespace_0_as_a_value_2708","Cannot use namespace '{0}' as a value."),Cannot_use_namespace_0_as_a_type:ca(2709,1,"Cannot_use_namespace_0_as_a_type_2709","Cannot use namespace '{0}' as a type."),_0_are_specified_twice_The_attribute_named_0_will_be_overwritten:ca(2710,1,"_0_are_specified_twice_The_attribute_named_0_will_be_overwritten_2710","'{0}' are specified twice. The attribute named '{0}' will be overwritten."),A_dynamic_import_call_returns_a_Promise_Make_sure_you_have_a_declaration_for_Promise_or_include_ES2015_in_your_lib_option:ca(2711,1,"A_dynamic_import_call_returns_a_Promise_Make_sure_you_have_a_declaration_for_Promise_or_include_ES20_2711","A dynamic import call returns a 'Promise'. Make sure you have a declaration for 'Promise' or include 'ES2015' in your '--lib' option."),A_dynamic_import_call_in_ES5_requires_the_Promise_constructor_Make_sure_you_have_a_declaration_for_the_Promise_constructor_or_include_ES2015_in_your_lib_option:ca(2712,1,"A_dynamic_import_call_in_ES5_requires_the_Promise_constructor_Make_sure_you_have_a_declaration_for_t_2712","A dynamic import call in ES5 requires the 'Promise' constructor. Make sure you have a declaration for the 'Promise' constructor or include 'ES2015' in your '--lib' option."),Cannot_access_0_1_because_0_is_a_type_but_not_a_namespace_Did_you_mean_to_retrieve_the_type_of_the_property_1_in_0_with_0_1:ca(2713,1,"Cannot_access_0_1_because_0_is_a_type_but_not_a_namespace_Did_you_mean_to_retrieve_the_type_of_the_p_2713","Cannot access '{0}.{1}' because '{0}' is a type, but not a namespace. Did you mean to retrieve the type of the property '{1}' in '{0}' with '{0}[\"{1}\"]'?"),The_expression_of_an_export_assignment_must_be_an_identifier_or_qualified_name_in_an_ambient_context:ca(2714,1,"The_expression_of_an_export_assignment_must_be_an_identifier_or_qualified_name_in_an_ambient_context_2714","The expression of an export assignment must be an identifier or qualified name in an ambient context."),Abstract_property_0_in_class_1_cannot_be_accessed_in_the_constructor:ca(2715,1,"Abstract_property_0_in_class_1_cannot_be_accessed_in_the_constructor_2715","Abstract property '{0}' in class '{1}' cannot be accessed in the constructor."),Type_parameter_0_has_a_circular_default:ca(2716,1,"Type_parameter_0_has_a_circular_default_2716","Type parameter '{0}' has a circular default."),Subsequent_property_declarations_must_have_the_same_type_Property_0_must_be_of_type_1_but_here_has_type_2:ca(2717,1,"Subsequent_property_declarations_must_have_the_same_type_Property_0_must_be_of_type_1_but_here_has_t_2717","Subsequent property declarations must have the same type. Property '{0}' must be of type '{1}', but here has type '{2}'."),Duplicate_property_0:ca(2718,1,"Duplicate_property_0_2718","Duplicate property '{0}'."),Type_0_is_not_assignable_to_type_1_Two_different_types_with_this_name_exist_but_they_are_unrelated:ca(2719,1,"Type_0_is_not_assignable_to_type_1_Two_different_types_with_this_name_exist_but_they_are_unrelated_2719","Type '{0}' is not assignable to type '{1}'. Two different types with this name exist, but they are unrelated."),Class_0_incorrectly_implements_class_1_Did_you_mean_to_extend_1_and_inherit_its_members_as_a_subclass:ca(2720,1,"Class_0_incorrectly_implements_class_1_Did_you_mean_to_extend_1_and_inherit_its_members_as_a_subclas_2720","Class '{0}' incorrectly implements class '{1}'. Did you mean to extend '{1}' and inherit its members as a subclass?"),Cannot_invoke_an_object_which_is_possibly_null:ca(2721,1,"Cannot_invoke_an_object_which_is_possibly_null_2721","Cannot invoke an object which is possibly 'null'."),Cannot_invoke_an_object_which_is_possibly_undefined:ca(2722,1,"Cannot_invoke_an_object_which_is_possibly_undefined_2722","Cannot invoke an object which is possibly 'undefined'."),Cannot_invoke_an_object_which_is_possibly_null_or_undefined:ca(2723,1,"Cannot_invoke_an_object_which_is_possibly_null_or_undefined_2723","Cannot invoke an object which is possibly 'null' or 'undefined'."),_0_has_no_exported_member_named_1_Did_you_mean_2:ca(2724,1,"_0_has_no_exported_member_named_1_Did_you_mean_2_2724","'{0}' has no exported member named '{1}'. Did you mean '{2}'?"),Class_name_cannot_be_Object_when_targeting_ES5_with_module_0:ca(2725,1,"Class_name_cannot_be_Object_when_targeting_ES5_with_module_0_2725","Class name cannot be 'Object' when targeting ES5 with module {0}."),Cannot_find_lib_definition_for_0:ca(2726,1,"Cannot_find_lib_definition_for_0_2726","Cannot find lib definition for '{0}'."),Cannot_find_lib_definition_for_0_Did_you_mean_1:ca(2727,1,"Cannot_find_lib_definition_for_0_Did_you_mean_1_2727","Cannot find lib definition for '{0}'. Did you mean '{1}'?"),_0_is_declared_here:ca(2728,3,"_0_is_declared_here_2728","'{0}' is declared here."),Property_0_is_used_before_its_initialization:ca(2729,1,"Property_0_is_used_before_its_initialization_2729","Property '{0}' is used before its initialization."),An_arrow_function_cannot_have_a_this_parameter:ca(2730,1,"An_arrow_function_cannot_have_a_this_parameter_2730","An arrow function cannot have a 'this' parameter."),Implicit_conversion_of_a_symbol_to_a_string_will_fail_at_runtime_Consider_wrapping_this_expression_in_String:ca(2731,1,"Implicit_conversion_of_a_symbol_to_a_string_will_fail_at_runtime_Consider_wrapping_this_expression_i_2731","Implicit conversion of a 'symbol' to a 'string' will fail at runtime. Consider wrapping this expression in 'String(...)'."),Cannot_find_module_0_Consider_using_resolveJsonModule_to_import_module_with_json_extension:ca(2732,1,"Cannot_find_module_0_Consider_using_resolveJsonModule_to_import_module_with_json_extension_2732","Cannot find module '{0}'. Consider using '--resolveJsonModule' to import module with '.json' extension."),Property_0_was_also_declared_here:ca(2733,1,"Property_0_was_also_declared_here_2733","Property '{0}' was also declared here."),Are_you_missing_a_semicolon:ca(2734,1,"Are_you_missing_a_semicolon_2734","Are you missing a semicolon?"),Did_you_mean_for_0_to_be_constrained_to_type_new_args_Colon_any_1:ca(2735,1,"Did_you_mean_for_0_to_be_constrained_to_type_new_args_Colon_any_1_2735","Did you mean for '{0}' to be constrained to type 'new (...args: any[]) => {1}'?"),Operator_0_cannot_be_applied_to_type_1:ca(2736,1,"Operator_0_cannot_be_applied_to_type_1_2736","Operator '{0}' cannot be applied to type '{1}'."),BigInt_literals_are_not_available_when_targeting_lower_than_ES2020:ca(2737,1,"BigInt_literals_are_not_available_when_targeting_lower_than_ES2020_2737","BigInt literals are not available when targeting lower than ES2020."),An_outer_value_of_this_is_shadowed_by_this_container:ca(2738,3,"An_outer_value_of_this_is_shadowed_by_this_container_2738","An outer value of 'this' is shadowed by this container."),Type_0_is_missing_the_following_properties_from_type_1_Colon_2:ca(2739,1,"Type_0_is_missing_the_following_properties_from_type_1_Colon_2_2739","Type '{0}' is missing the following properties from type '{1}': {2}"),Type_0_is_missing_the_following_properties_from_type_1_Colon_2_and_3_more:ca(2740,1,"Type_0_is_missing_the_following_properties_from_type_1_Colon_2_and_3_more_2740","Type '{0}' is missing the following properties from type '{1}': {2}, and {3} more."),Property_0_is_missing_in_type_1_but_required_in_type_2:ca(2741,1,"Property_0_is_missing_in_type_1_but_required_in_type_2_2741","Property '{0}' is missing in type '{1}' but required in type '{2}'."),The_inferred_type_of_0_cannot_be_named_without_a_reference_to_1_This_is_likely_not_portable_A_type_annotation_is_necessary:ca(2742,1,"The_inferred_type_of_0_cannot_be_named_without_a_reference_to_1_This_is_likely_not_portable_A_type_a_2742","The inferred type of '{0}' cannot be named without a reference to '{1}'. This is likely not portable. A type annotation is necessary."),No_overload_expects_0_type_arguments_but_overloads_do_exist_that_expect_either_1_or_2_type_arguments:ca(2743,1,"No_overload_expects_0_type_arguments_but_overloads_do_exist_that_expect_either_1_or_2_type_arguments_2743","No overload expects {0} type arguments, but overloads do exist that expect either {1} or {2} type arguments."),Type_parameter_defaults_can_only_reference_previously_declared_type_parameters:ca(2744,1,"Type_parameter_defaults_can_only_reference_previously_declared_type_parameters_2744","Type parameter defaults can only reference previously declared type parameters."),This_JSX_tag_s_0_prop_expects_type_1_which_requires_multiple_children_but_only_a_single_child_was_provided:ca(2745,1,"This_JSX_tag_s_0_prop_expects_type_1_which_requires_multiple_children_but_only_a_single_child_was_pr_2745","This JSX tag's '{0}' prop expects type '{1}' which requires multiple children, but only a single child was provided."),This_JSX_tag_s_0_prop_expects_a_single_child_of_type_1_but_multiple_children_were_provided:ca(2746,1,"This_JSX_tag_s_0_prop_expects_a_single_child_of_type_1_but_multiple_children_were_provided_2746","This JSX tag's '{0}' prop expects a single child of type '{1}', but multiple children were provided."),_0_components_don_t_accept_text_as_child_elements_Text_in_JSX_has_the_type_string_but_the_expected_type_of_1_is_2:ca(2747,1,"_0_components_don_t_accept_text_as_child_elements_Text_in_JSX_has_the_type_string_but_the_expected_t_2747","'{0}' components don't accept text as child elements. Text in JSX has the type 'string', but the expected type of '{1}' is '{2}'."),Cannot_access_ambient_const_enums_when_0_is_enabled:ca(2748,1,"Cannot_access_ambient_const_enums_when_0_is_enabled_2748","Cannot access ambient const enums when '{0}' is enabled."),_0_refers_to_a_value_but_is_being_used_as_a_type_here_Did_you_mean_typeof_0:ca(2749,1,"_0_refers_to_a_value_but_is_being_used_as_a_type_here_Did_you_mean_typeof_0_2749","'{0}' refers to a value, but is being used as a type here. Did you mean 'typeof {0}'?"),The_implementation_signature_is_declared_here:ca(2750,1,"The_implementation_signature_is_declared_here_2750","The implementation signature is declared here."),Circularity_originates_in_type_at_this_location:ca(2751,1,"Circularity_originates_in_type_at_this_location_2751","Circularity originates in type at this location."),The_first_export_default_is_here:ca(2752,1,"The_first_export_default_is_here_2752","The first export default is here."),Another_export_default_is_here:ca(2753,1,"Another_export_default_is_here_2753","Another export default is here."),super_may_not_use_type_arguments:ca(2754,1,"super_may_not_use_type_arguments_2754","'super' may not use type arguments."),No_constituent_of_type_0_is_callable:ca(2755,1,"No_constituent_of_type_0_is_callable_2755","No constituent of type '{0}' is callable."),Not_all_constituents_of_type_0_are_callable:ca(2756,1,"Not_all_constituents_of_type_0_are_callable_2756","Not all constituents of type '{0}' are callable."),Type_0_has_no_call_signatures:ca(2757,1,"Type_0_has_no_call_signatures_2757","Type '{0}' has no call signatures."),Each_member_of_the_union_type_0_has_signatures_but_none_of_those_signatures_are_compatible_with_each_other:ca(2758,1,"Each_member_of_the_union_type_0_has_signatures_but_none_of_those_signatures_are_compatible_with_each_2758","Each member of the union type '{0}' has signatures, but none of those signatures are compatible with each other."),No_constituent_of_type_0_is_constructable:ca(2759,1,"No_constituent_of_type_0_is_constructable_2759","No constituent of type '{0}' is constructable."),Not_all_constituents_of_type_0_are_constructable:ca(2760,1,"Not_all_constituents_of_type_0_are_constructable_2760","Not all constituents of type '{0}' are constructable."),Type_0_has_no_construct_signatures:ca(2761,1,"Type_0_has_no_construct_signatures_2761","Type '{0}' has no construct signatures."),Each_member_of_the_union_type_0_has_construct_signatures_but_none_of_those_signatures_are_compatible_with_each_other:ca(2762,1,"Each_member_of_the_union_type_0_has_construct_signatures_but_none_of_those_signatures_are_compatible_2762","Each member of the union type '{0}' has construct signatures, but none of those signatures are compatible with each other."),Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_for_of_will_always_send_0:ca(2763,1,"Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_for_of_will_always_s_2763","Cannot iterate value because the 'next' method of its iterator expects type '{1}', but for-of will always send '{0}'."),Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_array_spread_will_always_send_0:ca(2764,1,"Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_array_spread_will_al_2764","Cannot iterate value because the 'next' method of its iterator expects type '{1}', but array spread will always send '{0}'."),Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_array_destructuring_will_always_send_0:ca(2765,1,"Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_array_destructuring__2765","Cannot iterate value because the 'next' method of its iterator expects type '{1}', but array destructuring will always send '{0}'."),Cannot_delegate_iteration_to_value_because_the_next_method_of_its_iterator_expects_type_1_but_the_containing_generator_will_always_send_0:ca(2766,1,"Cannot_delegate_iteration_to_value_because_the_next_method_of_its_iterator_expects_type_1_but_the_co_2766","Cannot delegate iteration to value because the 'next' method of its iterator expects type '{1}', but the containing generator will always send '{0}'."),The_0_property_of_an_iterator_must_be_a_method:ca(2767,1,"The_0_property_of_an_iterator_must_be_a_method_2767","The '{0}' property of an iterator must be a method."),The_0_property_of_an_async_iterator_must_be_a_method:ca(2768,1,"The_0_property_of_an_async_iterator_must_be_a_method_2768","The '{0}' property of an async iterator must be a method."),No_overload_matches_this_call:ca(2769,1,"No_overload_matches_this_call_2769","No overload matches this call."),The_last_overload_gave_the_following_error:ca(2770,1,"The_last_overload_gave_the_following_error_2770","The last overload gave the following error."),The_last_overload_is_declared_here:ca(2771,1,"The_last_overload_is_declared_here_2771","The last overload is declared here."),Overload_0_of_1_2_gave_the_following_error:ca(2772,1,"Overload_0_of_1_2_gave_the_following_error_2772","Overload {0} of {1}, '{2}', gave the following error."),Did_you_forget_to_use_await:ca(2773,1,"Did_you_forget_to_use_await_2773","Did you forget to use 'await'?"),This_condition_will_always_return_true_since_this_function_is_always_defined_Did_you_mean_to_call_it_instead:ca(2774,1,"This_condition_will_always_return_true_since_this_function_is_always_defined_Did_you_mean_to_call_it_2774","This condition will always return true since this function is always defined. Did you mean to call it instead?"),Assertions_require_every_name_in_the_call_target_to_be_declared_with_an_explicit_type_annotation:ca(2775,1,"Assertions_require_every_name_in_the_call_target_to_be_declared_with_an_explicit_type_annotation_2775","Assertions require every name in the call target to be declared with an explicit type annotation."),Assertions_require_the_call_target_to_be_an_identifier_or_qualified_name:ca(2776,1,"Assertions_require_the_call_target_to_be_an_identifier_or_qualified_name_2776","Assertions require the call target to be an identifier or qualified name."),The_operand_of_an_increment_or_decrement_operator_may_not_be_an_optional_property_access:ca(2777,1,"The_operand_of_an_increment_or_decrement_operator_may_not_be_an_optional_property_access_2777","The operand of an increment or decrement operator may not be an optional property access."),The_target_of_an_object_rest_assignment_may_not_be_an_optional_property_access:ca(2778,1,"The_target_of_an_object_rest_assignment_may_not_be_an_optional_property_access_2778","The target of an object rest assignment may not be an optional property access."),The_left_hand_side_of_an_assignment_expression_may_not_be_an_optional_property_access:ca(2779,1,"The_left_hand_side_of_an_assignment_expression_may_not_be_an_optional_property_access_2779","The left-hand side of an assignment expression may not be an optional property access."),The_left_hand_side_of_a_for_in_statement_may_not_be_an_optional_property_access:ca(2780,1,"The_left_hand_side_of_a_for_in_statement_may_not_be_an_optional_property_access_2780","The left-hand side of a 'for...in' statement may not be an optional property access."),The_left_hand_side_of_a_for_of_statement_may_not_be_an_optional_property_access:ca(2781,1,"The_left_hand_side_of_a_for_of_statement_may_not_be_an_optional_property_access_2781","The left-hand side of a 'for...of' statement may not be an optional property access."),_0_needs_an_explicit_type_annotation:ca(2782,3,"_0_needs_an_explicit_type_annotation_2782","'{0}' needs an explicit type annotation."),_0_is_specified_more_than_once_so_this_usage_will_be_overwritten:ca(2783,1,"_0_is_specified_more_than_once_so_this_usage_will_be_overwritten_2783","'{0}' is specified more than once, so this usage will be overwritten."),get_and_set_accessors_cannot_declare_this_parameters:ca(2784,1,"get_and_set_accessors_cannot_declare_this_parameters_2784","'get' and 'set' accessors cannot declare 'this' parameters."),This_spread_always_overwrites_this_property:ca(2785,1,"This_spread_always_overwrites_this_property_2785","This spread always overwrites this property."),_0_cannot_be_used_as_a_JSX_component:ca(2786,1,"_0_cannot_be_used_as_a_JSX_component_2786","'{0}' cannot be used as a JSX component."),Its_return_type_0_is_not_a_valid_JSX_element:ca(2787,1,"Its_return_type_0_is_not_a_valid_JSX_element_2787","Its return type '{0}' is not a valid JSX element."),Its_instance_type_0_is_not_a_valid_JSX_element:ca(2788,1,"Its_instance_type_0_is_not_a_valid_JSX_element_2788","Its instance type '{0}' is not a valid JSX element."),Its_element_type_0_is_not_a_valid_JSX_element:ca(2789,1,"Its_element_type_0_is_not_a_valid_JSX_element_2789","Its element type '{0}' is not a valid JSX element."),The_operand_of_a_delete_operator_must_be_optional:ca(2790,1,"The_operand_of_a_delete_operator_must_be_optional_2790","The operand of a 'delete' operator must be optional."),Exponentiation_cannot_be_performed_on_bigint_values_unless_the_target_option_is_set_to_es2016_or_later:ca(2791,1,"Exponentiation_cannot_be_performed_on_bigint_values_unless_the_target_option_is_set_to_es2016_or_lat_2791","Exponentiation cannot be performed on 'bigint' values unless the 'target' option is set to 'es2016' or later."),Cannot_find_module_0_Did_you_mean_to_set_the_moduleResolution_option_to_nodenext_or_to_add_aliases_to_the_paths_option:ca(2792,1,"Cannot_find_module_0_Did_you_mean_to_set_the_moduleResolution_option_to_nodenext_or_to_add_aliases_t_2792","Cannot find module '{0}'. Did you mean to set the 'moduleResolution' option to 'nodenext', or to add aliases to the 'paths' option?"),The_call_would_have_succeeded_against_this_implementation_but_implementation_signatures_of_overloads_are_not_externally_visible:ca(2793,1,"The_call_would_have_succeeded_against_this_implementation_but_implementation_signatures_of_overloads_2793","The call would have succeeded against this implementation, but implementation signatures of overloads are not externally visible."),Expected_0_arguments_but_got_1_Did_you_forget_to_include_void_in_your_type_argument_to_Promise:ca(2794,1,"Expected_0_arguments_but_got_1_Did_you_forget_to_include_void_in_your_type_argument_to_Promise_2794","Expected {0} arguments, but got {1}. Did you forget to include 'void' in your type argument to 'Promise'?"),The_intrinsic_keyword_can_only_be_used_to_declare_compiler_provided_intrinsic_types:ca(2795,1,"The_intrinsic_keyword_can_only_be_used_to_declare_compiler_provided_intrinsic_types_2795","The 'intrinsic' keyword can only be used to declare compiler provided intrinsic types."),It_is_likely_that_you_are_missing_a_comma_to_separate_these_two_template_expressions_They_form_a_tagged_template_expression_which_cannot_be_invoked:ca(2796,1,"It_is_likely_that_you_are_missing_a_comma_to_separate_these_two_template_expressions_They_form_a_tag_2796","It is likely that you are missing a comma to separate these two template expressions. They form a tagged template expression which cannot be invoked."),A_mixin_class_that_extends_from_a_type_variable_containing_an_abstract_construct_signature_must_also_be_declared_abstract:ca(2797,1,"A_mixin_class_that_extends_from_a_type_variable_containing_an_abstract_construct_signature_must_also_2797","A mixin class that extends from a type variable containing an abstract construct signature must also be declared 'abstract'."),The_declaration_was_marked_as_deprecated_here:ca(2798,1,"The_declaration_was_marked_as_deprecated_here_2798","The declaration was marked as deprecated here."),Type_produces_a_tuple_type_that_is_too_large_to_represent:ca(2799,1,"Type_produces_a_tuple_type_that_is_too_large_to_represent_2799","Type produces a tuple type that is too large to represent."),Expression_produces_a_tuple_type_that_is_too_large_to_represent:ca(2800,1,"Expression_produces_a_tuple_type_that_is_too_large_to_represent_2800","Expression produces a tuple type that is too large to represent."),This_condition_will_always_return_true_since_this_0_is_always_defined:ca(2801,1,"This_condition_will_always_return_true_since_this_0_is_always_defined_2801","This condition will always return true since this '{0}' is always defined."),Type_0_can_only_be_iterated_through_when_using_the_downlevelIteration_flag_or_with_a_target_of_es2015_or_higher:ca(2802,1,"Type_0_can_only_be_iterated_through_when_using_the_downlevelIteration_flag_or_with_a_target_of_es201_2802","Type '{0}' can only be iterated through when using the '--downlevelIteration' flag or with a '--target' of 'es2015' or higher."),Cannot_assign_to_private_method_0_Private_methods_are_not_writable:ca(2803,1,"Cannot_assign_to_private_method_0_Private_methods_are_not_writable_2803","Cannot assign to private method '{0}'. Private methods are not writable."),Duplicate_identifier_0_Static_and_instance_elements_cannot_share_the_same_private_name:ca(2804,1,"Duplicate_identifier_0_Static_and_instance_elements_cannot_share_the_same_private_name_2804","Duplicate identifier '{0}'. Static and instance elements cannot share the same private name."),Private_accessor_was_defined_without_a_getter:ca(2806,1,"Private_accessor_was_defined_without_a_getter_2806","Private accessor was defined without a getter."),This_syntax_requires_an_imported_helper_named_1_with_2_parameters_which_is_not_compatible_with_the_one_in_0_Consider_upgrading_your_version_of_0:ca(2807,1,"This_syntax_requires_an_imported_helper_named_1_with_2_parameters_which_is_not_compatible_with_the_o_2807","This syntax requires an imported helper named '{1}' with {2} parameters, which is not compatible with the one in '{0}'. Consider upgrading your version of '{0}'."),A_get_accessor_must_be_at_least_as_accessible_as_the_setter:ca(2808,1,"A_get_accessor_must_be_at_least_as_accessible_as_the_setter_2808","A get accessor must be at least as accessible as the setter"),Declaration_or_statement_expected_This_follows_a_block_of_statements_so_if_you_intended_to_write_a_destructuring_assignment_you_might_need_to_wrap_the_whole_assignment_in_parentheses:ca(2809,1,"Declaration_or_statement_expected_This_follows_a_block_of_statements_so_if_you_intended_to_write_a_d_2809","Declaration or statement expected. This '=' follows a block of statements, so if you intended to write a destructuring assignment, you might need to wrap the whole assignment in parentheses."),Expected_1_argument_but_got_0_new_Promise_needs_a_JSDoc_hint_to_produce_a_resolve_that_can_be_called_without_arguments:ca(2810,1,"Expected_1_argument_but_got_0_new_Promise_needs_a_JSDoc_hint_to_produce_a_resolve_that_can_be_called_2810","Expected 1 argument, but got 0. 'new Promise()' needs a JSDoc hint to produce a 'resolve' that can be called without arguments."),Initializer_for_property_0:ca(2811,1,"Initializer_for_property_0_2811","Initializer for property '{0}'"),Property_0_does_not_exist_on_type_1_Try_changing_the_lib_compiler_option_to_include_dom:ca(2812,1,"Property_0_does_not_exist_on_type_1_Try_changing_the_lib_compiler_option_to_include_dom_2812","Property '{0}' does not exist on type '{1}'. Try changing the 'lib' compiler option to include 'dom'."),Class_declaration_cannot_implement_overload_list_for_0:ca(2813,1,"Class_declaration_cannot_implement_overload_list_for_0_2813","Class declaration cannot implement overload list for '{0}'."),Function_with_bodies_can_only_merge_with_classes_that_are_ambient:ca(2814,1,"Function_with_bodies_can_only_merge_with_classes_that_are_ambient_2814","Function with bodies can only merge with classes that are ambient."),arguments_cannot_be_referenced_in_property_initializers:ca(2815,1,"arguments_cannot_be_referenced_in_property_initializers_2815","'arguments' cannot be referenced in property initializers."),Cannot_use_this_in_a_static_property_initializer_of_a_decorated_class:ca(2816,1,"Cannot_use_this_in_a_static_property_initializer_of_a_decorated_class_2816","Cannot use 'this' in a static property initializer of a decorated class."),Property_0_has_no_initializer_and_is_not_definitely_assigned_in_a_class_static_block:ca(2817,1,"Property_0_has_no_initializer_and_is_not_definitely_assigned_in_a_class_static_block_2817","Property '{0}' has no initializer and is not definitely assigned in a class static block."),Duplicate_identifier_0_Compiler_reserves_name_1_when_emitting_super_references_in_static_initializers:ca(2818,1,"Duplicate_identifier_0_Compiler_reserves_name_1_when_emitting_super_references_in_static_initializer_2818","Duplicate identifier '{0}'. Compiler reserves name '{1}' when emitting 'super' references in static initializers."),Namespace_name_cannot_be_0:ca(2819,1,"Namespace_name_cannot_be_0_2819","Namespace name cannot be '{0}'."),Type_0_is_not_assignable_to_type_1_Did_you_mean_2:ca(2820,1,"Type_0_is_not_assignable_to_type_1_Did_you_mean_2_2820","Type '{0}' is not assignable to type '{1}'. Did you mean '{2}'?"),Import_assertions_are_only_supported_when_the_module_option_is_set_to_esnext_nodenext_or_preserve:ca(2821,1,"Import_assertions_are_only_supported_when_the_module_option_is_set_to_esnext_nodenext_or_preserve_2821","Import assertions are only supported when the '--module' option is set to 'esnext', 'nodenext', or 'preserve'."),Import_assertions_cannot_be_used_with_type_only_imports_or_exports:ca(2822,1,"Import_assertions_cannot_be_used_with_type_only_imports_or_exports_2822","Import assertions cannot be used with type-only imports or exports."),Import_attributes_are_only_supported_when_the_module_option_is_set_to_esnext_nodenext_or_preserve:ca(2823,1,"Import_attributes_are_only_supported_when_the_module_option_is_set_to_esnext_nodenext_or_preserve_2823","Import attributes are only supported when the '--module' option is set to 'esnext', 'nodenext', or 'preserve'."),Cannot_find_namespace_0_Did_you_mean_1:ca(2833,1,"Cannot_find_namespace_0_Did_you_mean_1_2833","Cannot find namespace '{0}'. Did you mean '{1}'?"),Relative_import_paths_need_explicit_file_extensions_in_ECMAScript_imports_when_moduleResolution_is_node16_or_nodenext_Consider_adding_an_extension_to_the_import_path:ca(2834,1,"Relative_import_paths_need_explicit_file_extensions_in_ECMAScript_imports_when_moduleResolution_is_n_2834","Relative import paths need explicit file extensions in ECMAScript imports when '--moduleResolution' is 'node16' or 'nodenext'. Consider adding an extension to the import path."),Relative_import_paths_need_explicit_file_extensions_in_ECMAScript_imports_when_moduleResolution_is_node16_or_nodenext_Did_you_mean_0:ca(2835,1,"Relative_import_paths_need_explicit_file_extensions_in_ECMAScript_imports_when_moduleResolution_is_n_2835","Relative import paths need explicit file extensions in ECMAScript imports when '--moduleResolution' is 'node16' or 'nodenext'. Did you mean '{0}'?"),Import_assertions_are_not_allowed_on_statements_that_compile_to_CommonJS_require_calls:ca(2836,1,"Import_assertions_are_not_allowed_on_statements_that_compile_to_CommonJS_require_calls_2836","Import assertions are not allowed on statements that compile to CommonJS 'require' calls."),Import_assertion_values_must_be_string_literal_expressions:ca(2837,1,"Import_assertion_values_must_be_string_literal_expressions_2837","Import assertion values must be string literal expressions."),All_declarations_of_0_must_have_identical_constraints:ca(2838,1,"All_declarations_of_0_must_have_identical_constraints_2838","All declarations of '{0}' must have identical constraints."),This_condition_will_always_return_0_since_JavaScript_compares_objects_by_reference_not_value:ca(2839,1,"This_condition_will_always_return_0_since_JavaScript_compares_objects_by_reference_not_value_2839","This condition will always return '{0}' since JavaScript compares objects by reference, not value."),An_interface_cannot_extend_a_primitive_type_like_0_It_can_only_extend_other_named_object_types:ca(2840,1,"An_interface_cannot_extend_a_primitive_type_like_0_It_can_only_extend_other_named_object_types_2840","An interface cannot extend a primitive type like '{0}'. It can only extend other named object types."),_0_is_an_unused_renaming_of_1_Did_you_intend_to_use_it_as_a_type_annotation:ca(2842,1,"_0_is_an_unused_renaming_of_1_Did_you_intend_to_use_it_as_a_type_annotation_2842","'{0}' is an unused renaming of '{1}'. Did you intend to use it as a type annotation?"),We_can_only_write_a_type_for_0_by_adding_a_type_for_the_entire_parameter_here:ca(2843,1,"We_can_only_write_a_type_for_0_by_adding_a_type_for_the_entire_parameter_here_2843","We can only write a type for '{0}' by adding a type for the entire parameter here."),Type_of_instance_member_variable_0_cannot_reference_identifier_1_declared_in_the_constructor:ca(2844,1,"Type_of_instance_member_variable_0_cannot_reference_identifier_1_declared_in_the_constructor_2844","Type of instance member variable '{0}' cannot reference identifier '{1}' declared in the constructor."),This_condition_will_always_return_0:ca(2845,1,"This_condition_will_always_return_0_2845","This condition will always return '{0}'."),A_declaration_file_cannot_be_imported_without_import_type_Did_you_mean_to_import_an_implementation_file_0_instead:ca(2846,1,"A_declaration_file_cannot_be_imported_without_import_type_Did_you_mean_to_import_an_implementation_f_2846","A declaration file cannot be imported without 'import type'. Did you mean to import an implementation file '{0}' instead?"),The_right_hand_side_of_an_instanceof_expression_must_not_be_an_instantiation_expression:ca(2848,1,"The_right_hand_side_of_an_instanceof_expression_must_not_be_an_instantiation_expression_2848","The right-hand side of an 'instanceof' expression must not be an instantiation expression."),Target_signature_provides_too_few_arguments_Expected_0_or_more_but_got_1:ca(2849,1,"Target_signature_provides_too_few_arguments_Expected_0_or_more_but_got_1_2849","Target signature provides too few arguments. Expected {0} or more, but got {1}."),The_initializer_of_a_using_declaration_must_be_either_an_object_with_a_Symbol_dispose_method_or_be_null_or_undefined:ca(2850,1,"The_initializer_of_a_using_declaration_must_be_either_an_object_with_a_Symbol_dispose_method_or_be_n_2850","The initializer of a 'using' declaration must be either an object with a '[Symbol.dispose]()' method, or be 'null' or 'undefined'."),The_initializer_of_an_await_using_declaration_must_be_either_an_object_with_a_Symbol_asyncDispose_or_Symbol_dispose_method_or_be_null_or_undefined:ca(2851,1,"The_initializer_of_an_await_using_declaration_must_be_either_an_object_with_a_Symbol_asyncDispose_or_2851","The initializer of an 'await using' declaration must be either an object with a '[Symbol.asyncDispose]()' or '[Symbol.dispose]()' method, or be 'null' or 'undefined'."),await_using_statements_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules:ca(2852,1,"await_using_statements_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules_2852","'await using' statements are only allowed within async functions and at the top levels of modules."),await_using_statements_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_this_file_has_no_imports_or_exports_Consider_adding_an_empty_export_to_make_this_file_a_module:ca(2853,1,"await_using_statements_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_th_2853","'await using' statements are only allowed at the top level of a file when that file is a module, but this file has no imports or exports. Consider adding an empty 'export {}' to make this file a module."),Top_level_await_using_statements_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_node16_nodenext_or_preserve_and_the_target_option_is_set_to_es2017_or_higher:ca(2854,1,"Top_level_await_using_statements_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_sys_2854","Top-level 'await using' statements are only allowed when the 'module' option is set to 'es2022', 'esnext', 'system', 'node16', 'nodenext', or 'preserve', and the 'target' option is set to 'es2017' or higher."),Class_field_0_defined_by_the_parent_class_is_not_accessible_in_the_child_class_via_super:ca(2855,1,"Class_field_0_defined_by_the_parent_class_is_not_accessible_in_the_child_class_via_super_2855","Class field '{0}' defined by the parent class is not accessible in the child class via super."),Import_attributes_are_not_allowed_on_statements_that_compile_to_CommonJS_require_calls:ca(2856,1,"Import_attributes_are_not_allowed_on_statements_that_compile_to_CommonJS_require_calls_2856","Import attributes are not allowed on statements that compile to CommonJS 'require' calls."),Import_attributes_cannot_be_used_with_type_only_imports_or_exports:ca(2857,1,"Import_attributes_cannot_be_used_with_type_only_imports_or_exports_2857","Import attributes cannot be used with type-only imports or exports."),Import_attribute_values_must_be_string_literal_expressions:ca(2858,1,"Import_attribute_values_must_be_string_literal_expressions_2858","Import attribute values must be string literal expressions."),Excessive_complexity_comparing_types_0_and_1:ca(2859,1,"Excessive_complexity_comparing_types_0_and_1_2859","Excessive complexity comparing types '{0}' and '{1}'."),The_left_hand_side_of_an_instanceof_expression_must_be_assignable_to_the_first_argument_of_the_right_hand_side_s_Symbol_hasInstance_method:ca(2860,1,"The_left_hand_side_of_an_instanceof_expression_must_be_assignable_to_the_first_argument_of_the_right_2860","The left-hand side of an 'instanceof' expression must be assignable to the first argument of the right-hand side's '[Symbol.hasInstance]' method."),An_object_s_Symbol_hasInstance_method_must_return_a_boolean_value_for_it_to_be_used_on_the_right_hand_side_of_an_instanceof_expression:ca(2861,1,"An_object_s_Symbol_hasInstance_method_must_return_a_boolean_value_for_it_to_be_used_on_the_right_han_2861","An object's '[Symbol.hasInstance]' method must return a boolean value for it to be used on the right-hand side of an 'instanceof' expression."),Type_0_is_generic_and_can_only_be_indexed_for_reading:ca(2862,1,"Type_0_is_generic_and_can_only_be_indexed_for_reading_2862","Type '{0}' is generic and can only be indexed for reading."),A_class_cannot_extend_a_primitive_type_like_0_Classes_can_only_extend_constructable_values:ca(2863,1,"A_class_cannot_extend_a_primitive_type_like_0_Classes_can_only_extend_constructable_values_2863","A class cannot extend a primitive type like '{0}'. Classes can only extend constructable values."),A_class_cannot_implement_a_primitive_type_like_0_It_can_only_implement_other_named_object_types:ca(2864,1,"A_class_cannot_implement_a_primitive_type_like_0_It_can_only_implement_other_named_object_types_2864","A class cannot implement a primitive type like '{0}'. It can only implement other named object types."),Import_0_conflicts_with_local_value_so_must_be_declared_with_a_type_only_import_when_isolatedModules_is_enabled:ca(2865,1,"Import_0_conflicts_with_local_value_so_must_be_declared_with_a_type_only_import_when_isolatedModules_2865","Import '{0}' conflicts with local value, so must be declared with a type-only import when 'isolatedModules' is enabled."),Import_0_conflicts_with_global_value_used_in_this_file_so_must_be_declared_with_a_type_only_import_when_isolatedModules_is_enabled:ca(2866,1,"Import_0_conflicts_with_global_value_used_in_this_file_so_must_be_declared_with_a_type_only_import_w_2866","Import '{0}' conflicts with global value used in this file, so must be declared with a type-only import when 'isolatedModules' is enabled."),Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_Bun_Try_npm_i_save_dev_types_Slashbun:ca(2867,1,"Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_Bun_Try_npm_i_save_dev_types_Slashbun_2867","Cannot find name '{0}'. Do you need to install type definitions for Bun? Try `npm i --save-dev @types/bun`."),Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_Bun_Try_npm_i_save_dev_types_Slashbun_and_then_add_bun_to_the_types_field_in_your_tsconfig:ca(2868,1,"Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_Bun_Try_npm_i_save_dev_types_Slashbun_2868","Cannot find name '{0}'. Do you need to install type definitions for Bun? Try `npm i --save-dev @types/bun` and then add 'bun' to the types field in your tsconfig."),Right_operand_of_is_unreachable_because_the_left_operand_is_never_nullish:ca(2869,1,"Right_operand_of_is_unreachable_because_the_left_operand_is_never_nullish_2869","Right operand of ?? is unreachable because the left operand is never nullish."),This_binary_expression_is_never_nullish_Are_you_missing_parentheses:ca(2870,1,"This_binary_expression_is_never_nullish_Are_you_missing_parentheses_2870","This binary expression is never nullish. Are you missing parentheses?"),This_expression_is_always_nullish:ca(2871,1,"This_expression_is_always_nullish_2871","This expression is always nullish."),This_kind_of_expression_is_always_truthy:ca(2872,1,"This_kind_of_expression_is_always_truthy_2872","This kind of expression is always truthy."),This_kind_of_expression_is_always_falsy:ca(2873,1,"This_kind_of_expression_is_always_falsy_2873","This kind of expression is always falsy."),This_JSX_tag_requires_0_to_be_in_scope_but_it_could_not_be_found:ca(2874,1,"This_JSX_tag_requires_0_to_be_in_scope_but_it_could_not_be_found_2874","This JSX tag requires '{0}' to be in scope, but it could not be found."),This_JSX_tag_requires_the_module_path_0_to_exist_but_none_could_be_found_Make_sure_you_have_types_for_the_appropriate_package_installed:ca(2875,1,"This_JSX_tag_requires_the_module_path_0_to_exist_but_none_could_be_found_Make_sure_you_have_types_fo_2875","This JSX tag requires the module path '{0}' to exist, but none could be found. Make sure you have types for the appropriate package installed."),This_relative_import_path_is_unsafe_to_rewrite_because_it_looks_like_a_file_name_but_actually_resolves_to_0:ca(2876,1,"This_relative_import_path_is_unsafe_to_rewrite_because_it_looks_like_a_file_name_but_actually_resolv_2876",'This relative import path is unsafe to rewrite because it looks like a file name, but actually resolves to "{0}".'),This_import_uses_a_0_extension_to_resolve_to_an_input_TypeScript_file_but_will_not_be_rewritten_during_emit_because_it_is_not_a_relative_path:ca(2877,1,"This_import_uses_a_0_extension_to_resolve_to_an_input_TypeScript_file_but_will_not_be_rewritten_duri_2877","This import uses a '{0}' extension to resolve to an input TypeScript file, but will not be rewritten during emit because it is not a relative path."),This_import_path_is_unsafe_to_rewrite_because_it_resolves_to_another_project_and_the_relative_path_between_the_projects_output_files_is_not_the_same_as_the_relative_path_between_its_input_files:ca(2878,1,"This_import_path_is_unsafe_to_rewrite_because_it_resolves_to_another_project_and_the_relative_path_b_2878","This import path is unsafe to rewrite because it resolves to another project, and the relative path between the projects' output files is not the same as the relative path between its input files."),Using_JSX_fragments_requires_fragment_factory_0_to_be_in_scope_but_it_could_not_be_found:ca(2879,1,"Using_JSX_fragments_requires_fragment_factory_0_to_be_in_scope_but_it_could_not_be_found_2879","Using JSX fragments requires fragment factory '{0}' to be in scope, but it could not be found."),Import_declaration_0_is_using_private_name_1:ca(4e3,1,"Import_declaration_0_is_using_private_name_1_4000","Import declaration '{0}' is using private name '{1}'."),Type_parameter_0_of_exported_class_has_or_is_using_private_name_1:ca(4002,1,"Type_parameter_0_of_exported_class_has_or_is_using_private_name_1_4002","Type parameter '{0}' of exported class has or is using private name '{1}'."),Type_parameter_0_of_exported_interface_has_or_is_using_private_name_1:ca(4004,1,"Type_parameter_0_of_exported_interface_has_or_is_using_private_name_1_4004","Type parameter '{0}' of exported interface has or is using private name '{1}'."),Type_parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_1:ca(4006,1,"Type_parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_1_4006","Type parameter '{0}' of constructor signature from exported interface has or is using private name '{1}'."),Type_parameter_0_of_call_signature_from_exported_interface_has_or_is_using_private_name_1:ca(4008,1,"Type_parameter_0_of_call_signature_from_exported_interface_has_or_is_using_private_name_1_4008","Type parameter '{0}' of call signature from exported interface has or is using private name '{1}'."),Type_parameter_0_of_public_static_method_from_exported_class_has_or_is_using_private_name_1:ca(4010,1,"Type_parameter_0_of_public_static_method_from_exported_class_has_or_is_using_private_name_1_4010","Type parameter '{0}' of public static method from exported class has or is using private name '{1}'."),Type_parameter_0_of_public_method_from_exported_class_has_or_is_using_private_name_1:ca(4012,1,"Type_parameter_0_of_public_method_from_exported_class_has_or_is_using_private_name_1_4012","Type parameter '{0}' of public method from exported class has or is using private name '{1}'."),Type_parameter_0_of_method_from_exported_interface_has_or_is_using_private_name_1:ca(4014,1,"Type_parameter_0_of_method_from_exported_interface_has_or_is_using_private_name_1_4014","Type parameter '{0}' of method from exported interface has or is using private name '{1}'."),Type_parameter_0_of_exported_function_has_or_is_using_private_name_1:ca(4016,1,"Type_parameter_0_of_exported_function_has_or_is_using_private_name_1_4016","Type parameter '{0}' of exported function has or is using private name '{1}'."),Implements_clause_of_exported_class_0_has_or_is_using_private_name_1:ca(4019,1,"Implements_clause_of_exported_class_0_has_or_is_using_private_name_1_4019","Implements clause of exported class '{0}' has or is using private name '{1}'."),extends_clause_of_exported_class_0_has_or_is_using_private_name_1:ca(4020,1,"extends_clause_of_exported_class_0_has_or_is_using_private_name_1_4020","'extends' clause of exported class '{0}' has or is using private name '{1}'."),extends_clause_of_exported_class_has_or_is_using_private_name_0:ca(4021,1,"extends_clause_of_exported_class_has_or_is_using_private_name_0_4021","'extends' clause of exported class has or is using private name '{0}'."),extends_clause_of_exported_interface_0_has_or_is_using_private_name_1:ca(4022,1,"extends_clause_of_exported_interface_0_has_or_is_using_private_name_1_4022","'extends' clause of exported interface '{0}' has or is using private name '{1}'."),Exported_variable_0_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:ca(4023,1,"Exported_variable_0_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named_4023","Exported variable '{0}' has or is using name '{1}' from external module {2} but cannot be named."),Exported_variable_0_has_or_is_using_name_1_from_private_module_2:ca(4024,1,"Exported_variable_0_has_or_is_using_name_1_from_private_module_2_4024","Exported variable '{0}' has or is using name '{1}' from private module '{2}'."),Exported_variable_0_has_or_is_using_private_name_1:ca(4025,1,"Exported_variable_0_has_or_is_using_private_name_1_4025","Exported variable '{0}' has or is using private name '{1}'."),Public_static_property_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:ca(4026,1,"Public_static_property_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot__4026","Public static property '{0}' of exported class has or is using name '{1}' from external module {2} but cannot be named."),Public_static_property_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:ca(4027,1,"Public_static_property_0_of_exported_class_has_or_is_using_name_1_from_private_module_2_4027","Public static property '{0}' of exported class has or is using name '{1}' from private module '{2}'."),Public_static_property_0_of_exported_class_has_or_is_using_private_name_1:ca(4028,1,"Public_static_property_0_of_exported_class_has_or_is_using_private_name_1_4028","Public static property '{0}' of exported class has or is using private name '{1}'."),Public_property_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:ca(4029,1,"Public_property_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_name_4029","Public property '{0}' of exported class has or is using name '{1}' from external module {2} but cannot be named."),Public_property_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:ca(4030,1,"Public_property_0_of_exported_class_has_or_is_using_name_1_from_private_module_2_4030","Public property '{0}' of exported class has or is using name '{1}' from private module '{2}'."),Public_property_0_of_exported_class_has_or_is_using_private_name_1:ca(4031,1,"Public_property_0_of_exported_class_has_or_is_using_private_name_1_4031","Public property '{0}' of exported class has or is using private name '{1}'."),Property_0_of_exported_interface_has_or_is_using_name_1_from_private_module_2:ca(4032,1,"Property_0_of_exported_interface_has_or_is_using_name_1_from_private_module_2_4032","Property '{0}' of exported interface has or is using name '{1}' from private module '{2}'."),Property_0_of_exported_interface_has_or_is_using_private_name_1:ca(4033,1,"Property_0_of_exported_interface_has_or_is_using_private_name_1_4033","Property '{0}' of exported interface has or is using private name '{1}'."),Parameter_type_of_public_static_setter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2:ca(4034,1,"Parameter_type_of_public_static_setter_0_from_exported_class_has_or_is_using_name_1_from_private_mod_4034","Parameter type of public static setter '{0}' from exported class has or is using name '{1}' from private module '{2}'."),Parameter_type_of_public_static_setter_0_from_exported_class_has_or_is_using_private_name_1:ca(4035,1,"Parameter_type_of_public_static_setter_0_from_exported_class_has_or_is_using_private_name_1_4035","Parameter type of public static setter '{0}' from exported class has or is using private name '{1}'."),Parameter_type_of_public_setter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2:ca(4036,1,"Parameter_type_of_public_setter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2_4036","Parameter type of public setter '{0}' from exported class has or is using name '{1}' from private module '{2}'."),Parameter_type_of_public_setter_0_from_exported_class_has_or_is_using_private_name_1:ca(4037,1,"Parameter_type_of_public_setter_0_from_exported_class_has_or_is_using_private_name_1_4037","Parameter type of public setter '{0}' from exported class has or is using private name '{1}'."),Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:ca(4038,1,"Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_name_1_from_external_modul_4038","Return type of public static getter '{0}' from exported class has or is using name '{1}' from external module {2} but cannot be named."),Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2:ca(4039,1,"Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_name_1_from_private_module_4039","Return type of public static getter '{0}' from exported class has or is using name '{1}' from private module '{2}'."),Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_private_name_1:ca(4040,1,"Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_private_name_1_4040","Return type of public static getter '{0}' from exported class has or is using private name '{1}'."),Return_type_of_public_getter_0_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:ca(4041,1,"Return_type_of_public_getter_0_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_4041","Return type of public getter '{0}' from exported class has or is using name '{1}' from external module {2} but cannot be named."),Return_type_of_public_getter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2:ca(4042,1,"Return_type_of_public_getter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2_4042","Return type of public getter '{0}' from exported class has or is using name '{1}' from private module '{2}'."),Return_type_of_public_getter_0_from_exported_class_has_or_is_using_private_name_1:ca(4043,1,"Return_type_of_public_getter_0_from_exported_class_has_or_is_using_private_name_1_4043","Return type of public getter '{0}' from exported class has or is using private name '{1}'."),Return_type_of_constructor_signature_from_exported_interface_has_or_is_using_name_0_from_private_module_1:ca(4044,1,"Return_type_of_constructor_signature_from_exported_interface_has_or_is_using_name_0_from_private_mod_4044","Return type of constructor signature from exported interface has or is using name '{0}' from private module '{1}'."),Return_type_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_0:ca(4045,1,"Return_type_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_0_4045","Return type of constructor signature from exported interface has or is using private name '{0}'."),Return_type_of_call_signature_from_exported_interface_has_or_is_using_name_0_from_private_module_1:ca(4046,1,"Return_type_of_call_signature_from_exported_interface_has_or_is_using_name_0_from_private_module_1_4046","Return type of call signature from exported interface has or is using name '{0}' from private module '{1}'."),Return_type_of_call_signature_from_exported_interface_has_or_is_using_private_name_0:ca(4047,1,"Return_type_of_call_signature_from_exported_interface_has_or_is_using_private_name_0_4047","Return type of call signature from exported interface has or is using private name '{0}'."),Return_type_of_index_signature_from_exported_interface_has_or_is_using_name_0_from_private_module_1:ca(4048,1,"Return_type_of_index_signature_from_exported_interface_has_or_is_using_name_0_from_private_module_1_4048","Return type of index signature from exported interface has or is using name '{0}' from private module '{1}'."),Return_type_of_index_signature_from_exported_interface_has_or_is_using_private_name_0:ca(4049,1,"Return_type_of_index_signature_from_exported_interface_has_or_is_using_private_name_0_4049","Return type of index signature from exported interface has or is using private name '{0}'."),Return_type_of_public_static_method_from_exported_class_has_or_is_using_name_0_from_external_module_1_but_cannot_be_named:ca(4050,1,"Return_type_of_public_static_method_from_exported_class_has_or_is_using_name_0_from_external_module__4050","Return type of public static method from exported class has or is using name '{0}' from external module {1} but cannot be named."),Return_type_of_public_static_method_from_exported_class_has_or_is_using_name_0_from_private_module_1:ca(4051,1,"Return_type_of_public_static_method_from_exported_class_has_or_is_using_name_0_from_private_module_1_4051","Return type of public static method from exported class has or is using name '{0}' from private module '{1}'."),Return_type_of_public_static_method_from_exported_class_has_or_is_using_private_name_0:ca(4052,1,"Return_type_of_public_static_method_from_exported_class_has_or_is_using_private_name_0_4052","Return type of public static method from exported class has or is using private name '{0}'."),Return_type_of_public_method_from_exported_class_has_or_is_using_name_0_from_external_module_1_but_cannot_be_named:ca(4053,1,"Return_type_of_public_method_from_exported_class_has_or_is_using_name_0_from_external_module_1_but_c_4053","Return type of public method from exported class has or is using name '{0}' from external module {1} but cannot be named."),Return_type_of_public_method_from_exported_class_has_or_is_using_name_0_from_private_module_1:ca(4054,1,"Return_type_of_public_method_from_exported_class_has_or_is_using_name_0_from_private_module_1_4054","Return type of public method from exported class has or is using name '{0}' from private module '{1}'."),Return_type_of_public_method_from_exported_class_has_or_is_using_private_name_0:ca(4055,1,"Return_type_of_public_method_from_exported_class_has_or_is_using_private_name_0_4055","Return type of public method from exported class has or is using private name '{0}'."),Return_type_of_method_from_exported_interface_has_or_is_using_name_0_from_private_module_1:ca(4056,1,"Return_type_of_method_from_exported_interface_has_or_is_using_name_0_from_private_module_1_4056","Return type of method from exported interface has or is using name '{0}' from private module '{1}'."),Return_type_of_method_from_exported_interface_has_or_is_using_private_name_0:ca(4057,1,"Return_type_of_method_from_exported_interface_has_or_is_using_private_name_0_4057","Return type of method from exported interface has or is using private name '{0}'."),Return_type_of_exported_function_has_or_is_using_name_0_from_external_module_1_but_cannot_be_named:ca(4058,1,"Return_type_of_exported_function_has_or_is_using_name_0_from_external_module_1_but_cannot_be_named_4058","Return type of exported function has or is using name '{0}' from external module {1} but cannot be named."),Return_type_of_exported_function_has_or_is_using_name_0_from_private_module_1:ca(4059,1,"Return_type_of_exported_function_has_or_is_using_name_0_from_private_module_1_4059","Return type of exported function has or is using name '{0}' from private module '{1}'."),Return_type_of_exported_function_has_or_is_using_private_name_0:ca(4060,1,"Return_type_of_exported_function_has_or_is_using_private_name_0_4060","Return type of exported function has or is using private name '{0}'."),Parameter_0_of_constructor_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:ca(4061,1,"Parameter_0_of_constructor_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_can_4061","Parameter '{0}' of constructor from exported class has or is using name '{1}' from external module {2} but cannot be named."),Parameter_0_of_constructor_from_exported_class_has_or_is_using_name_1_from_private_module_2:ca(4062,1,"Parameter_0_of_constructor_from_exported_class_has_or_is_using_name_1_from_private_module_2_4062","Parameter '{0}' of constructor from exported class has or is using name '{1}' from private module '{2}'."),Parameter_0_of_constructor_from_exported_class_has_or_is_using_private_name_1:ca(4063,1,"Parameter_0_of_constructor_from_exported_class_has_or_is_using_private_name_1_4063","Parameter '{0}' of constructor from exported class has or is using private name '{1}'."),Parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2:ca(4064,1,"Parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_name_1_from_private_mod_4064","Parameter '{0}' of constructor signature from exported interface has or is using name '{1}' from private module '{2}'."),Parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_1:ca(4065,1,"Parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_1_4065","Parameter '{0}' of constructor signature from exported interface has or is using private name '{1}'."),Parameter_0_of_call_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2:ca(4066,1,"Parameter_0_of_call_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2_4066","Parameter '{0}' of call signature from exported interface has or is using name '{1}' from private module '{2}'."),Parameter_0_of_call_signature_from_exported_interface_has_or_is_using_private_name_1:ca(4067,1,"Parameter_0_of_call_signature_from_exported_interface_has_or_is_using_private_name_1_4067","Parameter '{0}' of call signature from exported interface has or is using private name '{1}'."),Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:ca(4068,1,"Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_name_1_from_external_module__4068","Parameter '{0}' of public static method from exported class has or is using name '{1}' from external module {2} but cannot be named."),Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_name_1_from_private_module_2:ca(4069,1,"Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_name_1_from_private_module_2_4069","Parameter '{0}' of public static method from exported class has or is using name '{1}' from private module '{2}'."),Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_private_name_1:ca(4070,1,"Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_private_name_1_4070","Parameter '{0}' of public static method from exported class has or is using private name '{1}'."),Parameter_0_of_public_method_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:ca(4071,1,"Parameter_0_of_public_method_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_c_4071","Parameter '{0}' of public method from exported class has or is using name '{1}' from external module {2} but cannot be named."),Parameter_0_of_public_method_from_exported_class_has_or_is_using_name_1_from_private_module_2:ca(4072,1,"Parameter_0_of_public_method_from_exported_class_has_or_is_using_name_1_from_private_module_2_4072","Parameter '{0}' of public method from exported class has or is using name '{1}' from private module '{2}'."),Parameter_0_of_public_method_from_exported_class_has_or_is_using_private_name_1:ca(4073,1,"Parameter_0_of_public_method_from_exported_class_has_or_is_using_private_name_1_4073","Parameter '{0}' of public method from exported class has or is using private name '{1}'."),Parameter_0_of_method_from_exported_interface_has_or_is_using_name_1_from_private_module_2:ca(4074,1,"Parameter_0_of_method_from_exported_interface_has_or_is_using_name_1_from_private_module_2_4074","Parameter '{0}' of method from exported interface has or is using name '{1}' from private module '{2}'."),Parameter_0_of_method_from_exported_interface_has_or_is_using_private_name_1:ca(4075,1,"Parameter_0_of_method_from_exported_interface_has_or_is_using_private_name_1_4075","Parameter '{0}' of method from exported interface has or is using private name '{1}'."),Parameter_0_of_exported_function_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:ca(4076,1,"Parameter_0_of_exported_function_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named_4076","Parameter '{0}' of exported function has or is using name '{1}' from external module {2} but cannot be named."),Parameter_0_of_exported_function_has_or_is_using_name_1_from_private_module_2:ca(4077,1,"Parameter_0_of_exported_function_has_or_is_using_name_1_from_private_module_2_4077","Parameter '{0}' of exported function has or is using name '{1}' from private module '{2}'."),Parameter_0_of_exported_function_has_or_is_using_private_name_1:ca(4078,1,"Parameter_0_of_exported_function_has_or_is_using_private_name_1_4078","Parameter '{0}' of exported function has or is using private name '{1}'."),Exported_type_alias_0_has_or_is_using_private_name_1:ca(4081,1,"Exported_type_alias_0_has_or_is_using_private_name_1_4081","Exported type alias '{0}' has or is using private name '{1}'."),Default_export_of_the_module_has_or_is_using_private_name_0:ca(4082,1,"Default_export_of_the_module_has_or_is_using_private_name_0_4082","Default export of the module has or is using private name '{0}'."),Type_parameter_0_of_exported_type_alias_has_or_is_using_private_name_1:ca(4083,1,"Type_parameter_0_of_exported_type_alias_has_or_is_using_private_name_1_4083","Type parameter '{0}' of exported type alias has or is using private name '{1}'."),Exported_type_alias_0_has_or_is_using_private_name_1_from_module_2:ca(4084,1,"Exported_type_alias_0_has_or_is_using_private_name_1_from_module_2_4084","Exported type alias '{0}' has or is using private name '{1}' from module {2}."),Extends_clause_for_inferred_type_0_has_or_is_using_private_name_1:ca(4085,1,"Extends_clause_for_inferred_type_0_has_or_is_using_private_name_1_4085","Extends clause for inferred type '{0}' has or is using private name '{1}'."),Parameter_0_of_index_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2:ca(4091,1,"Parameter_0_of_index_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2_4091","Parameter '{0}' of index signature from exported interface has or is using name '{1}' from private module '{2}'."),Parameter_0_of_index_signature_from_exported_interface_has_or_is_using_private_name_1:ca(4092,1,"Parameter_0_of_index_signature_from_exported_interface_has_or_is_using_private_name_1_4092","Parameter '{0}' of index signature from exported interface has or is using private name '{1}'."),Property_0_of_exported_anonymous_class_type_may_not_be_private_or_protected:ca(4094,1,"Property_0_of_exported_anonymous_class_type_may_not_be_private_or_protected_4094","Property '{0}' of exported anonymous class type may not be private or protected."),Public_static_method_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:ca(4095,1,"Public_static_method_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_4095","Public static method '{0}' of exported class has or is using name '{1}' from external module {2} but cannot be named."),Public_static_method_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:ca(4096,1,"Public_static_method_0_of_exported_class_has_or_is_using_name_1_from_private_module_2_4096","Public static method '{0}' of exported class has or is using name '{1}' from private module '{2}'."),Public_static_method_0_of_exported_class_has_or_is_using_private_name_1:ca(4097,1,"Public_static_method_0_of_exported_class_has_or_is_using_private_name_1_4097","Public static method '{0}' of exported class has or is using private name '{1}'."),Public_method_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:ca(4098,1,"Public_method_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named_4098","Public method '{0}' of exported class has or is using name '{1}' from external module {2} but cannot be named."),Public_method_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:ca(4099,1,"Public_method_0_of_exported_class_has_or_is_using_name_1_from_private_module_2_4099","Public method '{0}' of exported class has or is using name '{1}' from private module '{2}'."),Public_method_0_of_exported_class_has_or_is_using_private_name_1:ca(4100,1,"Public_method_0_of_exported_class_has_or_is_using_private_name_1_4100","Public method '{0}' of exported class has or is using private name '{1}'."),Method_0_of_exported_interface_has_or_is_using_name_1_from_private_module_2:ca(4101,1,"Method_0_of_exported_interface_has_or_is_using_name_1_from_private_module_2_4101","Method '{0}' of exported interface has or is using name '{1}' from private module '{2}'."),Method_0_of_exported_interface_has_or_is_using_private_name_1:ca(4102,1,"Method_0_of_exported_interface_has_or_is_using_private_name_1_4102","Method '{0}' of exported interface has or is using private name '{1}'."),Type_parameter_0_of_exported_mapped_object_type_is_using_private_name_1:ca(4103,1,"Type_parameter_0_of_exported_mapped_object_type_is_using_private_name_1_4103","Type parameter '{0}' of exported mapped object type is using private name '{1}'."),The_type_0_is_readonly_and_cannot_be_assigned_to_the_mutable_type_1:ca(4104,1,"The_type_0_is_readonly_and_cannot_be_assigned_to_the_mutable_type_1_4104","The type '{0}' is 'readonly' and cannot be assigned to the mutable type '{1}'."),Private_or_protected_member_0_cannot_be_accessed_on_a_type_parameter:ca(4105,1,"Private_or_protected_member_0_cannot_be_accessed_on_a_type_parameter_4105","Private or protected member '{0}' cannot be accessed on a type parameter."),Parameter_0_of_accessor_has_or_is_using_private_name_1:ca(4106,1,"Parameter_0_of_accessor_has_or_is_using_private_name_1_4106","Parameter '{0}' of accessor has or is using private name '{1}'."),Parameter_0_of_accessor_has_or_is_using_name_1_from_private_module_2:ca(4107,1,"Parameter_0_of_accessor_has_or_is_using_name_1_from_private_module_2_4107","Parameter '{0}' of accessor has or is using name '{1}' from private module '{2}'."),Parameter_0_of_accessor_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:ca(4108,1,"Parameter_0_of_accessor_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named_4108","Parameter '{0}' of accessor has or is using name '{1}' from external module '{2}' but cannot be named."),Type_arguments_for_0_circularly_reference_themselves:ca(4109,1,"Type_arguments_for_0_circularly_reference_themselves_4109","Type arguments for '{0}' circularly reference themselves."),Tuple_type_arguments_circularly_reference_themselves:ca(4110,1,"Tuple_type_arguments_circularly_reference_themselves_4110","Tuple type arguments circularly reference themselves."),Property_0_comes_from_an_index_signature_so_it_must_be_accessed_with_0:ca(4111,1,"Property_0_comes_from_an_index_signature_so_it_must_be_accessed_with_0_4111","Property '{0}' comes from an index signature, so it must be accessed with ['{0}']."),This_member_cannot_have_an_override_modifier_because_its_containing_class_0_does_not_extend_another_class:ca(4112,1,"This_member_cannot_have_an_override_modifier_because_its_containing_class_0_does_not_extend_another__4112","This member cannot have an 'override' modifier because its containing class '{0}' does not extend another class."),This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0:ca(4113,1,"This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0_4113","This member cannot have an 'override' modifier because it is not declared in the base class '{0}'."),This_member_must_have_an_override_modifier_because_it_overrides_a_member_in_the_base_class_0:ca(4114,1,"This_member_must_have_an_override_modifier_because_it_overrides_a_member_in_the_base_class_0_4114","This member must have an 'override' modifier because it overrides a member in the base class '{0}'."),This_parameter_property_must_have_an_override_modifier_because_it_overrides_a_member_in_base_class_0:ca(4115,1,"This_parameter_property_must_have_an_override_modifier_because_it_overrides_a_member_in_base_class_0_4115","This parameter property must have an 'override' modifier because it overrides a member in base class '{0}'."),This_member_must_have_an_override_modifier_because_it_overrides_an_abstract_method_that_is_declared_in_the_base_class_0:ca(4116,1,"This_member_must_have_an_override_modifier_because_it_overrides_an_abstract_method_that_is_declared__4116","This member must have an 'override' modifier because it overrides an abstract method that is declared in the base class '{0}'."),This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0_Did_you_mean_1:ca(4117,1,"This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0_Did_you__4117","This member cannot have an 'override' modifier because it is not declared in the base class '{0}'. Did you mean '{1}'?"),The_type_of_this_node_cannot_be_serialized_because_its_property_0_cannot_be_serialized:ca(4118,1,"The_type_of_this_node_cannot_be_serialized_because_its_property_0_cannot_be_serialized_4118","The type of this node cannot be serialized because its property '{0}' cannot be serialized."),This_member_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_class_0:ca(4119,1,"This_member_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_4119","This member must have a JSDoc comment with an '@override' tag because it overrides a member in the base class '{0}'."),This_parameter_property_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_class_0:ca(4120,1,"This_parameter_property_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_4120","This parameter property must have a JSDoc comment with an '@override' tag because it overrides a member in the base class '{0}'."),This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_its_containing_class_0_does_not_extend_another_class:ca(4121,1,"This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_its_containing_class_0_does_not_4121","This member cannot have a JSDoc comment with an '@override' tag because its containing class '{0}' does not extend another class."),This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base_class_0:ca(4122,1,"This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base__4122","This member cannot have a JSDoc comment with an '@override' tag because it is not declared in the base class '{0}'."),This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base_class_0_Did_you_mean_1:ca(4123,1,"This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base__4123","This member cannot have a JSDoc comment with an 'override' tag because it is not declared in the base class '{0}'. Did you mean '{1}'?"),Compiler_option_0_of_value_1_is_unstable_Use_nightly_TypeScript_to_silence_this_error_Try_updating_with_npm_install_D_typescript_next:ca(4124,1,"Compiler_option_0_of_value_1_is_unstable_Use_nightly_TypeScript_to_silence_this_error_Try_updating_w_4124","Compiler option '{0}' of value '{1}' is unstable. Use nightly TypeScript to silence this error. Try updating with 'npm install -D typescript@next'."),Each_declaration_of_0_1_differs_in_its_value_where_2_was_expected_but_3_was_given:ca(4125,1,"Each_declaration_of_0_1_differs_in_its_value_where_2_was_expected_but_3_was_given_4125","Each declaration of '{0}.{1}' differs in its value, where '{2}' was expected but '{3}' was given."),One_value_of_0_1_is_the_string_2_and_the_other_is_assumed_to_be_an_unknown_numeric_value:ca(4126,1,"One_value_of_0_1_is_the_string_2_and_the_other_is_assumed_to_be_an_unknown_numeric_value_4126","One value of '{0}.{1}' is the string '{2}', and the other is assumed to be an unknown numeric value."),The_current_host_does_not_support_the_0_option:ca(5001,1,"The_current_host_does_not_support_the_0_option_5001","The current host does not support the '{0}' option."),Cannot_find_the_common_subdirectory_path_for_the_input_files:ca(5009,1,"Cannot_find_the_common_subdirectory_path_for_the_input_files_5009","Cannot find the common subdirectory path for the input files."),File_specification_cannot_end_in_a_recursive_directory_wildcard_Asterisk_Asterisk_Colon_0:ca(5010,1,"File_specification_cannot_end_in_a_recursive_directory_wildcard_Asterisk_Asterisk_Colon_0_5010","File specification cannot end in a recursive directory wildcard ('**'): '{0}'."),Cannot_read_file_0_Colon_1:ca(5012,1,"Cannot_read_file_0_Colon_1_5012","Cannot read file '{0}': {1}."),Unknown_compiler_option_0:ca(5023,1,"Unknown_compiler_option_0_5023","Unknown compiler option '{0}'."),Compiler_option_0_requires_a_value_of_type_1:ca(5024,1,"Compiler_option_0_requires_a_value_of_type_1_5024","Compiler option '{0}' requires a value of type {1}."),Unknown_compiler_option_0_Did_you_mean_1:ca(5025,1,"Unknown_compiler_option_0_Did_you_mean_1_5025","Unknown compiler option '{0}'. Did you mean '{1}'?"),Could_not_write_file_0_Colon_1:ca(5033,1,"Could_not_write_file_0_Colon_1_5033","Could not write file '{0}': {1}."),Option_project_cannot_be_mixed_with_source_files_on_a_command_line:ca(5042,1,"Option_project_cannot_be_mixed_with_source_files_on_a_command_line_5042","Option 'project' cannot be mixed with source files on a command line."),Option_isolatedModules_can_only_be_used_when_either_option_module_is_provided_or_option_target_is_ES2015_or_higher:ca(5047,1,"Option_isolatedModules_can_only_be_used_when_either_option_module_is_provided_or_option_target_is_ES_5047","Option 'isolatedModules' can only be used when either option '--module' is provided or option 'target' is 'ES2015' or higher."),Option_0_can_only_be_used_when_either_option_inlineSourceMap_or_option_sourceMap_is_provided:ca(5051,1,"Option_0_can_only_be_used_when_either_option_inlineSourceMap_or_option_sourceMap_is_provided_5051","Option '{0} can only be used when either option '--inlineSourceMap' or option '--sourceMap' is provided."),Option_0_cannot_be_specified_without_specifying_option_1:ca(5052,1,"Option_0_cannot_be_specified_without_specifying_option_1_5052","Option '{0}' cannot be specified without specifying option '{1}'."),Option_0_cannot_be_specified_with_option_1:ca(5053,1,"Option_0_cannot_be_specified_with_option_1_5053","Option '{0}' cannot be specified with option '{1}'."),A_tsconfig_json_file_is_already_defined_at_Colon_0:ca(5054,1,"A_tsconfig_json_file_is_already_defined_at_Colon_0_5054","A 'tsconfig.json' file is already defined at: '{0}'."),Cannot_write_file_0_because_it_would_overwrite_input_file:ca(5055,1,"Cannot_write_file_0_because_it_would_overwrite_input_file_5055","Cannot write file '{0}' because it would overwrite input file."),Cannot_write_file_0_because_it_would_be_overwritten_by_multiple_input_files:ca(5056,1,"Cannot_write_file_0_because_it_would_be_overwritten_by_multiple_input_files_5056","Cannot write file '{0}' because it would be overwritten by multiple input files."),Cannot_find_a_tsconfig_json_file_at_the_specified_directory_Colon_0:ca(5057,1,"Cannot_find_a_tsconfig_json_file_at_the_specified_directory_Colon_0_5057","Cannot find a tsconfig.json file at the specified directory: '{0}'."),The_specified_path_does_not_exist_Colon_0:ca(5058,1,"The_specified_path_does_not_exist_Colon_0_5058","The specified path does not exist: '{0}'."),Invalid_value_for_reactNamespace_0_is_not_a_valid_identifier:ca(5059,1,"Invalid_value_for_reactNamespace_0_is_not_a_valid_identifier_5059","Invalid value for '--reactNamespace'. '{0}' is not a valid identifier."),Pattern_0_can_have_at_most_one_Asterisk_character:ca(5061,1,"Pattern_0_can_have_at_most_one_Asterisk_character_5061","Pattern '{0}' can have at most one '*' character."),Substitution_0_in_pattern_1_can_have_at_most_one_Asterisk_character:ca(5062,1,"Substitution_0_in_pattern_1_can_have_at_most_one_Asterisk_character_5062","Substitution '{0}' in pattern '{1}' can have at most one '*' character."),Substitutions_for_pattern_0_should_be_an_array:ca(5063,1,"Substitutions_for_pattern_0_should_be_an_array_5063","Substitutions for pattern '{0}' should be an array."),Substitution_0_for_pattern_1_has_incorrect_type_expected_string_got_2:ca(5064,1,"Substitution_0_for_pattern_1_has_incorrect_type_expected_string_got_2_5064","Substitution '{0}' for pattern '{1}' has incorrect type, expected 'string', got '{2}'."),File_specification_cannot_contain_a_parent_directory_that_appears_after_a_recursive_directory_wildcard_Asterisk_Asterisk_Colon_0:ca(5065,1,"File_specification_cannot_contain_a_parent_directory_that_appears_after_a_recursive_directory_wildca_5065","File specification cannot contain a parent directory ('..') that appears after a recursive directory wildcard ('**'): '{0}'."),Substitutions_for_pattern_0_shouldn_t_be_an_empty_array:ca(5066,1,"Substitutions_for_pattern_0_shouldn_t_be_an_empty_array_5066","Substitutions for pattern '{0}' shouldn't be an empty array."),Invalid_value_for_jsxFactory_0_is_not_a_valid_identifier_or_qualified_name:ca(5067,1,"Invalid_value_for_jsxFactory_0_is_not_a_valid_identifier_or_qualified_name_5067","Invalid value for 'jsxFactory'. '{0}' is not a valid identifier or qualified-name."),Adding_a_tsconfig_json_file_will_help_organize_projects_that_contain_both_TypeScript_and_JavaScript_files_Learn_more_at_https_Colon_Slash_Slashaka_ms_Slashtsconfig:ca(5068,1,"Adding_a_tsconfig_json_file_will_help_organize_projects_that_contain_both_TypeScript_and_JavaScript__5068","Adding a tsconfig.json file will help organize projects that contain both TypeScript and JavaScript files. Learn more at https://aka.ms/tsconfig."),Option_0_cannot_be_specified_without_specifying_option_1_or_option_2:ca(5069,1,"Option_0_cannot_be_specified_without_specifying_option_1_or_option_2_5069","Option '{0}' cannot be specified without specifying option '{1}' or option '{2}'."),Option_resolveJsonModule_cannot_be_specified_when_moduleResolution_is_set_to_classic:ca(5070,1,"Option_resolveJsonModule_cannot_be_specified_when_moduleResolution_is_set_to_classic_5070","Option '--resolveJsonModule' cannot be specified when 'moduleResolution' is set to 'classic'."),Option_resolveJsonModule_cannot_be_specified_when_module_is_set_to_none_system_or_umd:ca(5071,1,"Option_resolveJsonModule_cannot_be_specified_when_module_is_set_to_none_system_or_umd_5071","Option '--resolveJsonModule' cannot be specified when 'module' is set to 'none', 'system', or 'umd'."),Unknown_build_option_0:ca(5072,1,"Unknown_build_option_0_5072","Unknown build option '{0}'."),Build_option_0_requires_a_value_of_type_1:ca(5073,1,"Build_option_0_requires_a_value_of_type_1_5073","Build option '{0}' requires a value of type {1}."),Option_incremental_can_only_be_specified_using_tsconfig_emitting_to_single_file_or_when_option_tsBuildInfoFile_is_specified:ca(5074,1,"Option_incremental_can_only_be_specified_using_tsconfig_emitting_to_single_file_or_when_option_tsBui_5074","Option '--incremental' can only be specified using tsconfig, emitting to single file or when option '--tsBuildInfoFile' is specified."),_0_is_assignable_to_the_constraint_of_type_1_but_1_could_be_instantiated_with_a_different_subtype_of_constraint_2:ca(5075,1,"_0_is_assignable_to_the_constraint_of_type_1_but_1_could_be_instantiated_with_a_different_subtype_of_5075","'{0}' is assignable to the constraint of type '{1}', but '{1}' could be instantiated with a different subtype of constraint '{2}'."),_0_and_1_operations_cannot_be_mixed_without_parentheses:ca(5076,1,"_0_and_1_operations_cannot_be_mixed_without_parentheses_5076","'{0}' and '{1}' operations cannot be mixed without parentheses."),Unknown_build_option_0_Did_you_mean_1:ca(5077,1,"Unknown_build_option_0_Did_you_mean_1_5077","Unknown build option '{0}'. Did you mean '{1}'?"),Unknown_watch_option_0:ca(5078,1,"Unknown_watch_option_0_5078","Unknown watch option '{0}'."),Unknown_watch_option_0_Did_you_mean_1:ca(5079,1,"Unknown_watch_option_0_Did_you_mean_1_5079","Unknown watch option '{0}'. Did you mean '{1}'?"),Watch_option_0_requires_a_value_of_type_1:ca(5080,1,"Watch_option_0_requires_a_value_of_type_1_5080","Watch option '{0}' requires a value of type {1}."),Cannot_find_a_tsconfig_json_file_at_the_current_directory_Colon_0:ca(5081,1,"Cannot_find_a_tsconfig_json_file_at_the_current_directory_Colon_0_5081","Cannot find a tsconfig.json file at the current directory: {0}."),_0_could_be_instantiated_with_an_arbitrary_type_which_could_be_unrelated_to_1:ca(5082,1,"_0_could_be_instantiated_with_an_arbitrary_type_which_could_be_unrelated_to_1_5082","'{0}' could be instantiated with an arbitrary type which could be unrelated to '{1}'."),Cannot_read_file_0:ca(5083,1,"Cannot_read_file_0_5083","Cannot read file '{0}'."),A_tuple_member_cannot_be_both_optional_and_rest:ca(5085,1,"A_tuple_member_cannot_be_both_optional_and_rest_5085","A tuple member cannot be both optional and rest."),A_labeled_tuple_element_is_declared_as_optional_with_a_question_mark_after_the_name_and_before_the_colon_rather_than_after_the_type:ca(5086,1,"A_labeled_tuple_element_is_declared_as_optional_with_a_question_mark_after_the_name_and_before_the_c_5086","A labeled tuple element is declared as optional with a question mark after the name and before the colon, rather than after the type."),A_labeled_tuple_element_is_declared_as_rest_with_a_before_the_name_rather_than_before_the_type:ca(5087,1,"A_labeled_tuple_element_is_declared_as_rest_with_a_before_the_name_rather_than_before_the_type_5087","A labeled tuple element is declared as rest with a '...' before the name, rather than before the type."),The_inferred_type_of_0_references_a_type_with_a_cyclic_structure_which_cannot_be_trivially_serialized_A_type_annotation_is_necessary:ca(5088,1,"The_inferred_type_of_0_references_a_type_with_a_cyclic_structure_which_cannot_be_trivially_serialize_5088","The inferred type of '{0}' references a type with a cyclic structure which cannot be trivially serialized. A type annotation is necessary."),Option_0_cannot_be_specified_when_option_jsx_is_1:ca(5089,1,"Option_0_cannot_be_specified_when_option_jsx_is_1_5089","Option '{0}' cannot be specified when option 'jsx' is '{1}'."),Non_relative_paths_are_not_allowed_when_baseUrl_is_not_set_Did_you_forget_a_leading_Slash:ca(5090,1,"Non_relative_paths_are_not_allowed_when_baseUrl_is_not_set_Did_you_forget_a_leading_Slash_5090","Non-relative paths are not allowed when 'baseUrl' is not set. Did you forget a leading './'?"),Option_preserveConstEnums_cannot_be_disabled_when_0_is_enabled:ca(5091,1,"Option_preserveConstEnums_cannot_be_disabled_when_0_is_enabled_5091","Option 'preserveConstEnums' cannot be disabled when '{0}' is enabled."),The_root_value_of_a_0_file_must_be_an_object:ca(5092,1,"The_root_value_of_a_0_file_must_be_an_object_5092","The root value of a '{0}' file must be an object."),Compiler_option_0_may_only_be_used_with_build:ca(5093,1,"Compiler_option_0_may_only_be_used_with_build_5093","Compiler option '--{0}' may only be used with '--build'."),Compiler_option_0_may_not_be_used_with_build:ca(5094,1,"Compiler_option_0_may_not_be_used_with_build_5094","Compiler option '--{0}' may not be used with '--build'."),Option_0_can_only_be_used_when_module_is_set_to_preserve_or_to_es2015_or_later:ca(5095,1,"Option_0_can_only_be_used_when_module_is_set_to_preserve_or_to_es2015_or_later_5095","Option '{0}' can only be used when 'module' is set to 'preserve' or to 'es2015' or later."),Option_allowImportingTsExtensions_can_only_be_used_when_either_noEmit_or_emitDeclarationOnly_is_set:ca(5096,1,"Option_allowImportingTsExtensions_can_only_be_used_when_either_noEmit_or_emitDeclarationOnly_is_set_5096","Option 'allowImportingTsExtensions' can only be used when either 'noEmit' or 'emitDeclarationOnly' is set."),An_import_path_can_only_end_with_a_0_extension_when_allowImportingTsExtensions_is_enabled:ca(5097,1,"An_import_path_can_only_end_with_a_0_extension_when_allowImportingTsExtensions_is_enabled_5097","An import path can only end with a '{0}' extension when 'allowImportingTsExtensions' is enabled."),Option_0_can_only_be_used_when_moduleResolution_is_set_to_node16_nodenext_or_bundler:ca(5098,1,"Option_0_can_only_be_used_when_moduleResolution_is_set_to_node16_nodenext_or_bundler_5098","Option '{0}' can only be used when 'moduleResolution' is set to 'node16', 'nodenext', or 'bundler'."),Option_0_is_deprecated_and_will_stop_functioning_in_TypeScript_1_Specify_compilerOption_ignoreDeprecations_Colon_2_to_silence_this_error:ca(5101,1,"Option_0_is_deprecated_and_will_stop_functioning_in_TypeScript_1_Specify_compilerOption_ignoreDeprec_5101","Option '{0}' is deprecated and will stop functioning in TypeScript {1}. Specify compilerOption '\"ignoreDeprecations\": \"{2}\"' to silence this error."),Option_0_has_been_removed_Please_remove_it_from_your_configuration:ca(5102,1,"Option_0_has_been_removed_Please_remove_it_from_your_configuration_5102","Option '{0}' has been removed. Please remove it from your configuration."),Invalid_value_for_ignoreDeprecations:ca(5103,1,"Invalid_value_for_ignoreDeprecations_5103","Invalid value for '--ignoreDeprecations'."),Option_0_is_redundant_and_cannot_be_specified_with_option_1:ca(5104,1,"Option_0_is_redundant_and_cannot_be_specified_with_option_1_5104","Option '{0}' is redundant and cannot be specified with option '{1}'."),Option_verbatimModuleSyntax_cannot_be_used_when_module_is_set_to_UMD_AMD_or_System:ca(5105,1,"Option_verbatimModuleSyntax_cannot_be_used_when_module_is_set_to_UMD_AMD_or_System_5105","Option 'verbatimModuleSyntax' cannot be used when 'module' is set to 'UMD', 'AMD', or 'System'."),Use_0_instead:ca(5106,3,"Use_0_instead_5106","Use '{0}' instead."),Option_0_1_is_deprecated_and_will_stop_functioning_in_TypeScript_2_Specify_compilerOption_ignoreDeprecations_Colon_3_to_silence_this_error:ca(5107,1,"Option_0_1_is_deprecated_and_will_stop_functioning_in_TypeScript_2_Specify_compilerOption_ignoreDepr_5107","Option '{0}={1}' is deprecated and will stop functioning in TypeScript {2}. Specify compilerOption '\"ignoreDeprecations\": \"{3}\"' to silence this error."),Option_0_1_has_been_removed_Please_remove_it_from_your_configuration:ca(5108,1,"Option_0_1_has_been_removed_Please_remove_it_from_your_configuration_5108","Option '{0}={1}' has been removed. Please remove it from your configuration."),Option_moduleResolution_must_be_set_to_0_or_left_unspecified_when_option_module_is_set_to_1:ca(5109,1,"Option_moduleResolution_must_be_set_to_0_or_left_unspecified_when_option_module_is_set_to_1_5109","Option 'moduleResolution' must be set to '{0}' (or left unspecified) when option 'module' is set to '{1}'."),Option_module_must_be_set_to_0_when_option_moduleResolution_is_set_to_1:ca(5110,1,"Option_module_must_be_set_to_0_when_option_moduleResolution_is_set_to_1_5110","Option 'module' must be set to '{0}' when option 'moduleResolution' is set to '{1}'."),Generates_a_sourcemap_for_each_corresponding_d_ts_file:ca(6e3,3,"Generates_a_sourcemap_for_each_corresponding_d_ts_file_6000","Generates a sourcemap for each corresponding '.d.ts' file."),Concatenate_and_emit_output_to_single_file:ca(6001,3,"Concatenate_and_emit_output_to_single_file_6001","Concatenate and emit output to single file."),Generates_corresponding_d_ts_file:ca(6002,3,"Generates_corresponding_d_ts_file_6002","Generates corresponding '.d.ts' file."),Specify_the_location_where_debugger_should_locate_TypeScript_files_instead_of_source_locations:ca(6004,3,"Specify_the_location_where_debugger_should_locate_TypeScript_files_instead_of_source_locations_6004","Specify the location where debugger should locate TypeScript files instead of source locations."),Watch_input_files:ca(6005,3,"Watch_input_files_6005","Watch input files."),Redirect_output_structure_to_the_directory:ca(6006,3,"Redirect_output_structure_to_the_directory_6006","Redirect output structure to the directory."),Do_not_erase_const_enum_declarations_in_generated_code:ca(6007,3,"Do_not_erase_const_enum_declarations_in_generated_code_6007","Do not erase const enum declarations in generated code."),Do_not_emit_outputs_if_any_errors_were_reported:ca(6008,3,"Do_not_emit_outputs_if_any_errors_were_reported_6008","Do not emit outputs if any errors were reported."),Do_not_emit_comments_to_output:ca(6009,3,"Do_not_emit_comments_to_output_6009","Do not emit comments to output."),Do_not_emit_outputs:ca(6010,3,"Do_not_emit_outputs_6010","Do not emit outputs."),Allow_default_imports_from_modules_with_no_default_export_This_does_not_affect_code_emit_just_typechecking:ca(6011,3,"Allow_default_imports_from_modules_with_no_default_export_This_does_not_affect_code_emit_just_typech_6011","Allow default imports from modules with no default export. This does not affect code emit, just typechecking."),Skip_type_checking_of_declaration_files:ca(6012,3,"Skip_type_checking_of_declaration_files_6012","Skip type checking of declaration files."),Do_not_resolve_the_real_path_of_symlinks:ca(6013,3,"Do_not_resolve_the_real_path_of_symlinks_6013","Do not resolve the real path of symlinks."),Only_emit_d_ts_declaration_files:ca(6014,3,"Only_emit_d_ts_declaration_files_6014","Only emit '.d.ts' declaration files."),Specify_ECMAScript_target_version:ca(6015,3,"Specify_ECMAScript_target_version_6015","Specify ECMAScript target version."),Specify_module_code_generation:ca(6016,3,"Specify_module_code_generation_6016","Specify module code generation."),Print_this_message:ca(6017,3,"Print_this_message_6017","Print this message."),Print_the_compiler_s_version:ca(6019,3,"Print_the_compiler_s_version_6019","Print the compiler's version."),Compile_the_project_given_the_path_to_its_configuration_file_or_to_a_folder_with_a_tsconfig_json:ca(6020,3,"Compile_the_project_given_the_path_to_its_configuration_file_or_to_a_folder_with_a_tsconfig_json_6020","Compile the project given the path to its configuration file, or to a folder with a 'tsconfig.json'."),Syntax_Colon_0:ca(6023,3,"Syntax_Colon_0_6023","Syntax: {0}"),options:ca(6024,3,"options_6024","options"),file:ca(6025,3,"file_6025","file"),Examples_Colon_0:ca(6026,3,"Examples_Colon_0_6026","Examples: {0}"),Options_Colon:ca(6027,3,"Options_Colon_6027","Options:"),Version_0:ca(6029,3,"Version_0_6029","Version {0}"),Insert_command_line_options_and_files_from_a_file:ca(6030,3,"Insert_command_line_options_and_files_from_a_file_6030","Insert command line options and files from a file."),Starting_compilation_in_watch_mode:ca(6031,3,"Starting_compilation_in_watch_mode_6031","Starting compilation in watch mode..."),File_change_detected_Starting_incremental_compilation:ca(6032,3,"File_change_detected_Starting_incremental_compilation_6032","File change detected. Starting incremental compilation..."),KIND:ca(6034,3,"KIND_6034","KIND"),FILE:ca(6035,3,"FILE_6035","FILE"),VERSION:ca(6036,3,"VERSION_6036","VERSION"),LOCATION:ca(6037,3,"LOCATION_6037","LOCATION"),DIRECTORY:ca(6038,3,"DIRECTORY_6038","DIRECTORY"),STRATEGY:ca(6039,3,"STRATEGY_6039","STRATEGY"),FILE_OR_DIRECTORY:ca(6040,3,"FILE_OR_DIRECTORY_6040","FILE OR DIRECTORY"),Errors_Files:ca(6041,3,"Errors_Files_6041","Errors Files"),Generates_corresponding_map_file:ca(6043,3,"Generates_corresponding_map_file_6043","Generates corresponding '.map' file."),Compiler_option_0_expects_an_argument:ca(6044,1,"Compiler_option_0_expects_an_argument_6044","Compiler option '{0}' expects an argument."),Unterminated_quoted_string_in_response_file_0:ca(6045,1,"Unterminated_quoted_string_in_response_file_0_6045","Unterminated quoted string in response file '{0}'."),Argument_for_0_option_must_be_Colon_1:ca(6046,1,"Argument_for_0_option_must_be_Colon_1_6046","Argument for '{0}' option must be: {1}."),Locale_must_be_of_the_form_language_or_language_territory_For_example_0_or_1:ca(6048,1,"Locale_must_be_of_the_form_language_or_language_territory_For_example_0_or_1_6048","Locale must be of the form or -. For example '{0}' or '{1}'."),Unable_to_open_file_0:ca(6050,1,"Unable_to_open_file_0_6050","Unable to open file '{0}'."),Corrupted_locale_file_0:ca(6051,1,"Corrupted_locale_file_0_6051","Corrupted locale file {0}."),Raise_error_on_expressions_and_declarations_with_an_implied_any_type:ca(6052,3,"Raise_error_on_expressions_and_declarations_with_an_implied_any_type_6052","Raise error on expressions and declarations with an implied 'any' type."),File_0_not_found:ca(6053,1,"File_0_not_found_6053","File '{0}' not found."),File_0_has_an_unsupported_extension_The_only_supported_extensions_are_1:ca(6054,1,"File_0_has_an_unsupported_extension_The_only_supported_extensions_are_1_6054","File '{0}' has an unsupported extension. The only supported extensions are {1}."),Suppress_noImplicitAny_errors_for_indexing_objects_lacking_index_signatures:ca(6055,3,"Suppress_noImplicitAny_errors_for_indexing_objects_lacking_index_signatures_6055","Suppress noImplicitAny errors for indexing objects lacking index signatures."),Do_not_emit_declarations_for_code_that_has_an_internal_annotation:ca(6056,3,"Do_not_emit_declarations_for_code_that_has_an_internal_annotation_6056","Do not emit declarations for code that has an '@internal' annotation."),Specify_the_root_directory_of_input_files_Use_to_control_the_output_directory_structure_with_outDir:ca(6058,3,"Specify_the_root_directory_of_input_files_Use_to_control_the_output_directory_structure_with_outDir_6058","Specify the root directory of input files. Use to control the output directory structure with --outDir."),File_0_is_not_under_rootDir_1_rootDir_is_expected_to_contain_all_source_files:ca(6059,1,"File_0_is_not_under_rootDir_1_rootDir_is_expected_to_contain_all_source_files_6059","File '{0}' is not under 'rootDir' '{1}'. 'rootDir' is expected to contain all source files."),Specify_the_end_of_line_sequence_to_be_used_when_emitting_files_Colon_CRLF_dos_or_LF_unix:ca(6060,3,"Specify_the_end_of_line_sequence_to_be_used_when_emitting_files_Colon_CRLF_dos_or_LF_unix_6060","Specify the end of line sequence to be used when emitting files: 'CRLF' (dos) or 'LF' (unix)."),NEWLINE:ca(6061,3,"NEWLINE_6061","NEWLINE"),Option_0_can_only_be_specified_in_tsconfig_json_file_or_set_to_null_on_command_line:ca(6064,1,"Option_0_can_only_be_specified_in_tsconfig_json_file_or_set_to_null_on_command_line_6064","Option '{0}' can only be specified in 'tsconfig.json' file or set to 'null' on command line."),Enables_experimental_support_for_ES7_decorators:ca(6065,3,"Enables_experimental_support_for_ES7_decorators_6065","Enables experimental support for ES7 decorators."),Enables_experimental_support_for_emitting_type_metadata_for_decorators:ca(6066,3,"Enables_experimental_support_for_emitting_type_metadata_for_decorators_6066","Enables experimental support for emitting type metadata for decorators."),Initializes_a_TypeScript_project_and_creates_a_tsconfig_json_file:ca(6070,3,"Initializes_a_TypeScript_project_and_creates_a_tsconfig_json_file_6070","Initializes a TypeScript project and creates a tsconfig.json file."),Successfully_created_a_tsconfig_json_file:ca(6071,3,"Successfully_created_a_tsconfig_json_file_6071","Successfully created a tsconfig.json file."),Suppress_excess_property_checks_for_object_literals:ca(6072,3,"Suppress_excess_property_checks_for_object_literals_6072","Suppress excess property checks for object literals."),Stylize_errors_and_messages_using_color_and_context_experimental:ca(6073,3,"Stylize_errors_and_messages_using_color_and_context_experimental_6073","Stylize errors and messages using color and context (experimental)."),Do_not_report_errors_on_unused_labels:ca(6074,3,"Do_not_report_errors_on_unused_labels_6074","Do not report errors on unused labels."),Report_error_when_not_all_code_paths_in_function_return_a_value:ca(6075,3,"Report_error_when_not_all_code_paths_in_function_return_a_value_6075","Report error when not all code paths in function return a value."),Report_errors_for_fallthrough_cases_in_switch_statement:ca(6076,3,"Report_errors_for_fallthrough_cases_in_switch_statement_6076","Report errors for fallthrough cases in switch statement."),Do_not_report_errors_on_unreachable_code:ca(6077,3,"Do_not_report_errors_on_unreachable_code_6077","Do not report errors on unreachable code."),Disallow_inconsistently_cased_references_to_the_same_file:ca(6078,3,"Disallow_inconsistently_cased_references_to_the_same_file_6078","Disallow inconsistently-cased references to the same file."),Specify_library_files_to_be_included_in_the_compilation:ca(6079,3,"Specify_library_files_to_be_included_in_the_compilation_6079","Specify library files to be included in the compilation."),Specify_JSX_code_generation:ca(6080,3,"Specify_JSX_code_generation_6080","Specify JSX code generation."),Only_amd_and_system_modules_are_supported_alongside_0:ca(6082,1,"Only_amd_and_system_modules_are_supported_alongside_0_6082","Only 'amd' and 'system' modules are supported alongside --{0}."),Base_directory_to_resolve_non_absolute_module_names:ca(6083,3,"Base_directory_to_resolve_non_absolute_module_names_6083","Base directory to resolve non-absolute module names."),Deprecated_Use_jsxFactory_instead_Specify_the_object_invoked_for_createElement_when_targeting_react_JSX_emit:ca(6084,3,"Deprecated_Use_jsxFactory_instead_Specify_the_object_invoked_for_createElement_when_targeting_react__6084","[Deprecated] Use '--jsxFactory' instead. Specify the object invoked for createElement when targeting 'react' JSX emit"),Enable_tracing_of_the_name_resolution_process:ca(6085,3,"Enable_tracing_of_the_name_resolution_process_6085","Enable tracing of the name resolution process."),Resolving_module_0_from_1:ca(6086,3,"Resolving_module_0_from_1_6086","======== Resolving module '{0}' from '{1}'. ========"),Explicitly_specified_module_resolution_kind_Colon_0:ca(6087,3,"Explicitly_specified_module_resolution_kind_Colon_0_6087","Explicitly specified module resolution kind: '{0}'."),Module_resolution_kind_is_not_specified_using_0:ca(6088,3,"Module_resolution_kind_is_not_specified_using_0_6088","Module resolution kind is not specified, using '{0}'."),Module_name_0_was_successfully_resolved_to_1:ca(6089,3,"Module_name_0_was_successfully_resolved_to_1_6089","======== Module name '{0}' was successfully resolved to '{1}'. ========"),Module_name_0_was_not_resolved:ca(6090,3,"Module_name_0_was_not_resolved_6090","======== Module name '{0}' was not resolved. ========"),paths_option_is_specified_looking_for_a_pattern_to_match_module_name_0:ca(6091,3,"paths_option_is_specified_looking_for_a_pattern_to_match_module_name_0_6091","'paths' option is specified, looking for a pattern to match module name '{0}'."),Module_name_0_matched_pattern_1:ca(6092,3,"Module_name_0_matched_pattern_1_6092","Module name '{0}', matched pattern '{1}'."),Trying_substitution_0_candidate_module_location_Colon_1:ca(6093,3,"Trying_substitution_0_candidate_module_location_Colon_1_6093","Trying substitution '{0}', candidate module location: '{1}'."),Resolving_module_name_0_relative_to_base_url_1_2:ca(6094,3,"Resolving_module_name_0_relative_to_base_url_1_2_6094","Resolving module name '{0}' relative to base url '{1}' - '{2}'."),Loading_module_as_file_Slash_folder_candidate_module_location_0_target_file_types_Colon_1:ca(6095,3,"Loading_module_as_file_Slash_folder_candidate_module_location_0_target_file_types_Colon_1_6095","Loading module as file / folder, candidate module location '{0}', target file types: {1}."),File_0_does_not_exist:ca(6096,3,"File_0_does_not_exist_6096","File '{0}' does not exist."),File_0_exists_use_it_as_a_name_resolution_result:ca(6097,3,"File_0_exists_use_it_as_a_name_resolution_result_6097","File '{0}' exists - use it as a name resolution result."),Loading_module_0_from_node_modules_folder_target_file_types_Colon_1:ca(6098,3,"Loading_module_0_from_node_modules_folder_target_file_types_Colon_1_6098","Loading module '{0}' from 'node_modules' folder, target file types: {1}."),Found_package_json_at_0:ca(6099,3,"Found_package_json_at_0_6099","Found 'package.json' at '{0}'."),package_json_does_not_have_a_0_field:ca(6100,3,"package_json_does_not_have_a_0_field_6100","'package.json' does not have a '{0}' field."),package_json_has_0_field_1_that_references_2:ca(6101,3,"package_json_has_0_field_1_that_references_2_6101","'package.json' has '{0}' field '{1}' that references '{2}'."),Allow_javascript_files_to_be_compiled:ca(6102,3,"Allow_javascript_files_to_be_compiled_6102","Allow javascript files to be compiled."),Checking_if_0_is_the_longest_matching_prefix_for_1_2:ca(6104,3,"Checking_if_0_is_the_longest_matching_prefix_for_1_2_6104","Checking if '{0}' is the longest matching prefix for '{1}' - '{2}'."),Expected_type_of_0_field_in_package_json_to_be_1_got_2:ca(6105,3,"Expected_type_of_0_field_in_package_json_to_be_1_got_2_6105","Expected type of '{0}' field in 'package.json' to be '{1}', got '{2}'."),baseUrl_option_is_set_to_0_using_this_value_to_resolve_non_relative_module_name_1:ca(6106,3,"baseUrl_option_is_set_to_0_using_this_value_to_resolve_non_relative_module_name_1_6106","'baseUrl' option is set to '{0}', using this value to resolve non-relative module name '{1}'."),rootDirs_option_is_set_using_it_to_resolve_relative_module_name_0:ca(6107,3,"rootDirs_option_is_set_using_it_to_resolve_relative_module_name_0_6107","'rootDirs' option is set, using it to resolve relative module name '{0}'."),Longest_matching_prefix_for_0_is_1:ca(6108,3,"Longest_matching_prefix_for_0_is_1_6108","Longest matching prefix for '{0}' is '{1}'."),Loading_0_from_the_root_dir_1_candidate_location_2:ca(6109,3,"Loading_0_from_the_root_dir_1_candidate_location_2_6109","Loading '{0}' from the root dir '{1}', candidate location '{2}'."),Trying_other_entries_in_rootDirs:ca(6110,3,"Trying_other_entries_in_rootDirs_6110","Trying other entries in 'rootDirs'."),Module_resolution_using_rootDirs_has_failed:ca(6111,3,"Module_resolution_using_rootDirs_has_failed_6111","Module resolution using 'rootDirs' has failed."),Do_not_emit_use_strict_directives_in_module_output:ca(6112,3,"Do_not_emit_use_strict_directives_in_module_output_6112","Do not emit 'use strict' directives in module output."),Enable_strict_null_checks:ca(6113,3,"Enable_strict_null_checks_6113","Enable strict null checks."),Unknown_option_excludes_Did_you_mean_exclude:ca(6114,1,"Unknown_option_excludes_Did_you_mean_exclude_6114","Unknown option 'excludes'. Did you mean 'exclude'?"),Raise_error_on_this_expressions_with_an_implied_any_type:ca(6115,3,"Raise_error_on_this_expressions_with_an_implied_any_type_6115","Raise error on 'this' expressions with an implied 'any' type."),Resolving_type_reference_directive_0_containing_file_1_root_directory_2:ca(6116,3,"Resolving_type_reference_directive_0_containing_file_1_root_directory_2_6116","======== Resolving type reference directive '{0}', containing file '{1}', root directory '{2}'. ========"),Type_reference_directive_0_was_successfully_resolved_to_1_primary_Colon_2:ca(6119,3,"Type_reference_directive_0_was_successfully_resolved_to_1_primary_Colon_2_6119","======== Type reference directive '{0}' was successfully resolved to '{1}', primary: {2}. ========"),Type_reference_directive_0_was_not_resolved:ca(6120,3,"Type_reference_directive_0_was_not_resolved_6120","======== Type reference directive '{0}' was not resolved. ========"),Resolving_with_primary_search_path_0:ca(6121,3,"Resolving_with_primary_search_path_0_6121","Resolving with primary search path '{0}'."),Root_directory_cannot_be_determined_skipping_primary_search_paths:ca(6122,3,"Root_directory_cannot_be_determined_skipping_primary_search_paths_6122","Root directory cannot be determined, skipping primary search paths."),Resolving_type_reference_directive_0_containing_file_1_root_directory_not_set:ca(6123,3,"Resolving_type_reference_directive_0_containing_file_1_root_directory_not_set_6123","======== Resolving type reference directive '{0}', containing file '{1}', root directory not set. ========"),Type_declaration_files_to_be_included_in_compilation:ca(6124,3,"Type_declaration_files_to_be_included_in_compilation_6124","Type declaration files to be included in compilation."),Looking_up_in_node_modules_folder_initial_location_0:ca(6125,3,"Looking_up_in_node_modules_folder_initial_location_0_6125","Looking up in 'node_modules' folder, initial location '{0}'."),Containing_file_is_not_specified_and_root_directory_cannot_be_determined_skipping_lookup_in_node_modules_folder:ca(6126,3,"Containing_file_is_not_specified_and_root_directory_cannot_be_determined_skipping_lookup_in_node_mod_6126","Containing file is not specified and root directory cannot be determined, skipping lookup in 'node_modules' folder."),Resolving_type_reference_directive_0_containing_file_not_set_root_directory_1:ca(6127,3,"Resolving_type_reference_directive_0_containing_file_not_set_root_directory_1_6127","======== Resolving type reference directive '{0}', containing file not set, root directory '{1}'. ========"),Resolving_type_reference_directive_0_containing_file_not_set_root_directory_not_set:ca(6128,3,"Resolving_type_reference_directive_0_containing_file_not_set_root_directory_not_set_6128","======== Resolving type reference directive '{0}', containing file not set, root directory not set. ========"),Resolving_real_path_for_0_result_1:ca(6130,3,"Resolving_real_path_for_0_result_1_6130","Resolving real path for '{0}', result '{1}'."),Cannot_compile_modules_using_option_0_unless_the_module_flag_is_amd_or_system:ca(6131,1,"Cannot_compile_modules_using_option_0_unless_the_module_flag_is_amd_or_system_6131","Cannot compile modules using option '{0}' unless the '--module' flag is 'amd' or 'system'."),File_name_0_has_a_1_extension_stripping_it:ca(6132,3,"File_name_0_has_a_1_extension_stripping_it_6132","File name '{0}' has a '{1}' extension - stripping it."),_0_is_declared_but_its_value_is_never_read:ca(6133,1,"_0_is_declared_but_its_value_is_never_read_6133","'{0}' is declared but its value is never read.",!0),Report_errors_on_unused_locals:ca(6134,3,"Report_errors_on_unused_locals_6134","Report errors on unused locals."),Report_errors_on_unused_parameters:ca(6135,3,"Report_errors_on_unused_parameters_6135","Report errors on unused parameters."),The_maximum_dependency_depth_to_search_under_node_modules_and_load_JavaScript_files:ca(6136,3,"The_maximum_dependency_depth_to_search_under_node_modules_and_load_JavaScript_files_6136","The maximum dependency depth to search under node_modules and load JavaScript files."),Cannot_import_type_declaration_files_Consider_importing_0_instead_of_1:ca(6137,1,"Cannot_import_type_declaration_files_Consider_importing_0_instead_of_1_6137","Cannot import type declaration files. Consider importing '{0}' instead of '{1}'."),Property_0_is_declared_but_its_value_is_never_read:ca(6138,1,"Property_0_is_declared_but_its_value_is_never_read_6138","Property '{0}' is declared but its value is never read.",!0),Import_emit_helpers_from_tslib:ca(6139,3,"Import_emit_helpers_from_tslib_6139","Import emit helpers from 'tslib'."),Auto_discovery_for_typings_is_enabled_in_project_0_Running_extra_resolution_pass_for_module_1_using_cache_location_2:ca(6140,1,"Auto_discovery_for_typings_is_enabled_in_project_0_Running_extra_resolution_pass_for_module_1_using__6140","Auto discovery for typings is enabled in project '{0}'. Running extra resolution pass for module '{1}' using cache location '{2}'."),Parse_in_strict_mode_and_emit_use_strict_for_each_source_file:ca(6141,3,"Parse_in_strict_mode_and_emit_use_strict_for_each_source_file_6141",'Parse in strict mode and emit "use strict" for each source file.'),Module_0_was_resolved_to_1_but_jsx_is_not_set:ca(6142,1,"Module_0_was_resolved_to_1_but_jsx_is_not_set_6142","Module '{0}' was resolved to '{1}', but '--jsx' is not set."),Module_0_was_resolved_as_locally_declared_ambient_module_in_file_1:ca(6144,3,"Module_0_was_resolved_as_locally_declared_ambient_module_in_file_1_6144","Module '{0}' was resolved as locally declared ambient module in file '{1}'."),Specify_the_JSX_factory_function_to_use_when_targeting_react_JSX_emit_e_g_React_createElement_or_h:ca(6146,3,"Specify_the_JSX_factory_function_to_use_when_targeting_react_JSX_emit_e_g_React_createElement_or_h_6146","Specify the JSX factory function to use when targeting 'react' JSX emit, e.g. 'React.createElement' or 'h'."),Resolution_for_module_0_was_found_in_cache_from_location_1:ca(6147,3,"Resolution_for_module_0_was_found_in_cache_from_location_1_6147","Resolution for module '{0}' was found in cache from location '{1}'."),Directory_0_does_not_exist_skipping_all_lookups_in_it:ca(6148,3,"Directory_0_does_not_exist_skipping_all_lookups_in_it_6148","Directory '{0}' does not exist, skipping all lookups in it."),Show_diagnostic_information:ca(6149,3,"Show_diagnostic_information_6149","Show diagnostic information."),Show_verbose_diagnostic_information:ca(6150,3,"Show_verbose_diagnostic_information_6150","Show verbose diagnostic information."),Emit_a_single_file_with_source_maps_instead_of_having_a_separate_file:ca(6151,3,"Emit_a_single_file_with_source_maps_instead_of_having_a_separate_file_6151","Emit a single file with source maps instead of having a separate file."),Emit_the_source_alongside_the_sourcemaps_within_a_single_file_requires_inlineSourceMap_or_sourceMap_to_be_set:ca(6152,3,"Emit_the_source_alongside_the_sourcemaps_within_a_single_file_requires_inlineSourceMap_or_sourceMap__6152","Emit the source alongside the sourcemaps within a single file; requires '--inlineSourceMap' or '--sourceMap' to be set."),Transpile_each_file_as_a_separate_module_similar_to_ts_transpileModule:ca(6153,3,"Transpile_each_file_as_a_separate_module_similar_to_ts_transpileModule_6153","Transpile each file as a separate module (similar to 'ts.transpileModule')."),Print_names_of_generated_files_part_of_the_compilation:ca(6154,3,"Print_names_of_generated_files_part_of_the_compilation_6154","Print names of generated files part of the compilation."),Print_names_of_files_part_of_the_compilation:ca(6155,3,"Print_names_of_files_part_of_the_compilation_6155","Print names of files part of the compilation."),The_locale_used_when_displaying_messages_to_the_user_e_g_en_us:ca(6156,3,"The_locale_used_when_displaying_messages_to_the_user_e_g_en_us_6156","The locale used when displaying messages to the user (e.g. 'en-us')"),Do_not_generate_custom_helper_functions_like_extends_in_compiled_output:ca(6157,3,"Do_not_generate_custom_helper_functions_like_extends_in_compiled_output_6157","Do not generate custom helper functions like '__extends' in compiled output."),Do_not_include_the_default_library_file_lib_d_ts:ca(6158,3,"Do_not_include_the_default_library_file_lib_d_ts_6158","Do not include the default library file (lib.d.ts)."),Do_not_add_triple_slash_references_or_imported_modules_to_the_list_of_compiled_files:ca(6159,3,"Do_not_add_triple_slash_references_or_imported_modules_to_the_list_of_compiled_files_6159","Do not add triple-slash references or imported modules to the list of compiled files."),Deprecated_Use_skipLibCheck_instead_Skip_type_checking_of_default_library_declaration_files:ca(6160,3,"Deprecated_Use_skipLibCheck_instead_Skip_type_checking_of_default_library_declaration_files_6160","[Deprecated] Use '--skipLibCheck' instead. Skip type checking of default library declaration files."),List_of_folders_to_include_type_definitions_from:ca(6161,3,"List_of_folders_to_include_type_definitions_from_6161","List of folders to include type definitions from."),Disable_size_limitations_on_JavaScript_projects:ca(6162,3,"Disable_size_limitations_on_JavaScript_projects_6162","Disable size limitations on JavaScript projects."),The_character_set_of_the_input_files:ca(6163,3,"The_character_set_of_the_input_files_6163","The character set of the input files."),Skipping_module_0_that_looks_like_an_absolute_URI_target_file_types_Colon_1:ca(6164,3,"Skipping_module_0_that_looks_like_an_absolute_URI_target_file_types_Colon_1_6164","Skipping module '{0}' that looks like an absolute URI, target file types: {1}."),Do_not_truncate_error_messages:ca(6165,3,"Do_not_truncate_error_messages_6165","Do not truncate error messages."),Output_directory_for_generated_declaration_files:ca(6166,3,"Output_directory_for_generated_declaration_files_6166","Output directory for generated declaration files."),A_series_of_entries_which_re_map_imports_to_lookup_locations_relative_to_the_baseUrl:ca(6167,3,"A_series_of_entries_which_re_map_imports_to_lookup_locations_relative_to_the_baseUrl_6167","A series of entries which re-map imports to lookup locations relative to the 'baseUrl'."),List_of_root_folders_whose_combined_content_represents_the_structure_of_the_project_at_runtime:ca(6168,3,"List_of_root_folders_whose_combined_content_represents_the_structure_of_the_project_at_runtime_6168","List of root folders whose combined content represents the structure of the project at runtime."),Show_all_compiler_options:ca(6169,3,"Show_all_compiler_options_6169","Show all compiler options."),Deprecated_Use_outFile_instead_Concatenate_and_emit_output_to_single_file:ca(6170,3,"Deprecated_Use_outFile_instead_Concatenate_and_emit_output_to_single_file_6170","[Deprecated] Use '--outFile' instead. Concatenate and emit output to single file"),Command_line_Options:ca(6171,3,"Command_line_Options_6171","Command-line Options"),Provide_full_support_for_iterables_in_for_of_spread_and_destructuring_when_targeting_ES5:ca(6179,3,"Provide_full_support_for_iterables_in_for_of_spread_and_destructuring_when_targeting_ES5_6179","Provide full support for iterables in 'for-of', spread, and destructuring when targeting 'ES5'."),Enable_all_strict_type_checking_options:ca(6180,3,"Enable_all_strict_type_checking_options_6180","Enable all strict type-checking options."),Scoped_package_detected_looking_in_0:ca(6182,3,"Scoped_package_detected_looking_in_0_6182","Scoped package detected, looking in '{0}'"),Reusing_resolution_of_module_0_from_1_of_old_program_it_was_successfully_resolved_to_2:ca(6183,3,"Reusing_resolution_of_module_0_from_1_of_old_program_it_was_successfully_resolved_to_2_6183","Reusing resolution of module '{0}' from '{1}' of old program, it was successfully resolved to '{2}'."),Reusing_resolution_of_module_0_from_1_of_old_program_it_was_successfully_resolved_to_2_with_Package_ID_3:ca(6184,3,"Reusing_resolution_of_module_0_from_1_of_old_program_it_was_successfully_resolved_to_2_with_Package__6184","Reusing resolution of module '{0}' from '{1}' of old program, it was successfully resolved to '{2}' with Package ID '{3}'."),Enable_strict_checking_of_function_types:ca(6186,3,"Enable_strict_checking_of_function_types_6186","Enable strict checking of function types."),Enable_strict_checking_of_property_initialization_in_classes:ca(6187,3,"Enable_strict_checking_of_property_initialization_in_classes_6187","Enable strict checking of property initialization in classes."),Numeric_separators_are_not_allowed_here:ca(6188,1,"Numeric_separators_are_not_allowed_here_6188","Numeric separators are not allowed here."),Multiple_consecutive_numeric_separators_are_not_permitted:ca(6189,1,"Multiple_consecutive_numeric_separators_are_not_permitted_6189","Multiple consecutive numeric separators are not permitted."),Whether_to_keep_outdated_console_output_in_watch_mode_instead_of_clearing_the_screen:ca(6191,3,"Whether_to_keep_outdated_console_output_in_watch_mode_instead_of_clearing_the_screen_6191","Whether to keep outdated console output in watch mode instead of clearing the screen."),All_imports_in_import_declaration_are_unused:ca(6192,1,"All_imports_in_import_declaration_are_unused_6192","All imports in import declaration are unused.",!0),Found_1_error_Watching_for_file_changes:ca(6193,3,"Found_1_error_Watching_for_file_changes_6193","Found 1 error. Watching for file changes."),Found_0_errors_Watching_for_file_changes:ca(6194,3,"Found_0_errors_Watching_for_file_changes_6194","Found {0} errors. Watching for file changes."),Resolve_keyof_to_string_valued_property_names_only_no_numbers_or_symbols:ca(6195,3,"Resolve_keyof_to_string_valued_property_names_only_no_numbers_or_symbols_6195","Resolve 'keyof' to string valued property names only (no numbers or symbols)."),_0_is_declared_but_never_used:ca(6196,1,"_0_is_declared_but_never_used_6196","'{0}' is declared but never used.",!0),Include_modules_imported_with_json_extension:ca(6197,3,"Include_modules_imported_with_json_extension_6197","Include modules imported with '.json' extension"),All_destructured_elements_are_unused:ca(6198,1,"All_destructured_elements_are_unused_6198","All destructured elements are unused.",!0),All_variables_are_unused:ca(6199,1,"All_variables_are_unused_6199","All variables are unused.",!0),Definitions_of_the_following_identifiers_conflict_with_those_in_another_file_Colon_0:ca(6200,1,"Definitions_of_the_following_identifiers_conflict_with_those_in_another_file_Colon_0_6200","Definitions of the following identifiers conflict with those in another file: {0}"),Conflicts_are_in_this_file:ca(6201,3,"Conflicts_are_in_this_file_6201","Conflicts are in this file."),Project_references_may_not_form_a_circular_graph_Cycle_detected_Colon_0:ca(6202,1,"Project_references_may_not_form_a_circular_graph_Cycle_detected_Colon_0_6202","Project references may not form a circular graph. Cycle detected: {0}"),_0_was_also_declared_here:ca(6203,3,"_0_was_also_declared_here_6203","'{0}' was also declared here."),and_here:ca(6204,3,"and_here_6204","and here."),All_type_parameters_are_unused:ca(6205,1,"All_type_parameters_are_unused_6205","All type parameters are unused."),package_json_has_a_typesVersions_field_with_version_specific_path_mappings:ca(6206,3,"package_json_has_a_typesVersions_field_with_version_specific_path_mappings_6206","'package.json' has a 'typesVersions' field with version-specific path mappings."),package_json_does_not_have_a_typesVersions_entry_that_matches_version_0:ca(6207,3,"package_json_does_not_have_a_typesVersions_entry_that_matches_version_0_6207","'package.json' does not have a 'typesVersions' entry that matches version '{0}'."),package_json_has_a_typesVersions_entry_0_that_matches_compiler_version_1_looking_for_a_pattern_to_match_module_name_2:ca(6208,3,"package_json_has_a_typesVersions_entry_0_that_matches_compiler_version_1_looking_for_a_pattern_to_ma_6208","'package.json' has a 'typesVersions' entry '{0}' that matches compiler version '{1}', looking for a pattern to match module name '{2}'."),package_json_has_a_typesVersions_entry_0_that_is_not_a_valid_semver_range:ca(6209,3,"package_json_has_a_typesVersions_entry_0_that_is_not_a_valid_semver_range_6209","'package.json' has a 'typesVersions' entry '{0}' that is not a valid semver range."),An_argument_for_0_was_not_provided:ca(6210,3,"An_argument_for_0_was_not_provided_6210","An argument for '{0}' was not provided."),An_argument_matching_this_binding_pattern_was_not_provided:ca(6211,3,"An_argument_matching_this_binding_pattern_was_not_provided_6211","An argument matching this binding pattern was not provided."),Did_you_mean_to_call_this_expression:ca(6212,3,"Did_you_mean_to_call_this_expression_6212","Did you mean to call this expression?"),Did_you_mean_to_use_new_with_this_expression:ca(6213,3,"Did_you_mean_to_use_new_with_this_expression_6213","Did you mean to use 'new' with this expression?"),Enable_strict_bind_call_and_apply_methods_on_functions:ca(6214,3,"Enable_strict_bind_call_and_apply_methods_on_functions_6214","Enable strict 'bind', 'call', and 'apply' methods on functions."),Using_compiler_options_of_project_reference_redirect_0:ca(6215,3,"Using_compiler_options_of_project_reference_redirect_0_6215","Using compiler options of project reference redirect '{0}'."),Found_1_error:ca(6216,3,"Found_1_error_6216","Found 1 error."),Found_0_errors:ca(6217,3,"Found_0_errors_6217","Found {0} errors."),Module_name_0_was_successfully_resolved_to_1_with_Package_ID_2:ca(6218,3,"Module_name_0_was_successfully_resolved_to_1_with_Package_ID_2_6218","======== Module name '{0}' was successfully resolved to '{1}' with Package ID '{2}'. ========"),Type_reference_directive_0_was_successfully_resolved_to_1_with_Package_ID_2_primary_Colon_3:ca(6219,3,"Type_reference_directive_0_was_successfully_resolved_to_1_with_Package_ID_2_primary_Colon_3_6219","======== Type reference directive '{0}' was successfully resolved to '{1}' with Package ID '{2}', primary: {3}. ========"),package_json_had_a_falsy_0_field:ca(6220,3,"package_json_had_a_falsy_0_field_6220","'package.json' had a falsy '{0}' field."),Disable_use_of_source_files_instead_of_declaration_files_from_referenced_projects:ca(6221,3,"Disable_use_of_source_files_instead_of_declaration_files_from_referenced_projects_6221","Disable use of source files instead of declaration files from referenced projects."),Emit_class_fields_with_Define_instead_of_Set:ca(6222,3,"Emit_class_fields_with_Define_instead_of_Set_6222","Emit class fields with Define instead of Set."),Generates_a_CPU_profile:ca(6223,3,"Generates_a_CPU_profile_6223","Generates a CPU profile."),Disable_solution_searching_for_this_project:ca(6224,3,"Disable_solution_searching_for_this_project_6224","Disable solution searching for this project."),Specify_strategy_for_watching_file_Colon_FixedPollingInterval_default_PriorityPollingInterval_DynamicPriorityPolling_FixedChunkSizePolling_UseFsEvents_UseFsEventsOnParentDirectory:ca(6225,3,"Specify_strategy_for_watching_file_Colon_FixedPollingInterval_default_PriorityPollingInterval_Dynami_6225","Specify strategy for watching file: 'FixedPollingInterval' (default), 'PriorityPollingInterval', 'DynamicPriorityPolling', 'FixedChunkSizePolling', 'UseFsEvents', 'UseFsEventsOnParentDirectory'."),Specify_strategy_for_watching_directory_on_platforms_that_don_t_support_recursive_watching_natively_Colon_UseFsEvents_default_FixedPollingInterval_DynamicPriorityPolling_FixedChunkSizePolling:ca(6226,3,"Specify_strategy_for_watching_directory_on_platforms_that_don_t_support_recursive_watching_natively__6226","Specify strategy for watching directory on platforms that don't support recursive watching natively: 'UseFsEvents' (default), 'FixedPollingInterval', 'DynamicPriorityPolling', 'FixedChunkSizePolling'."),Specify_strategy_for_creating_a_polling_watch_when_it_fails_to_create_using_file_system_events_Colon_FixedInterval_default_PriorityInterval_DynamicPriority_FixedChunkSize:ca(6227,3,"Specify_strategy_for_creating_a_polling_watch_when_it_fails_to_create_using_file_system_events_Colon_6227","Specify strategy for creating a polling watch when it fails to create using file system events: 'FixedInterval' (default), 'PriorityInterval', 'DynamicPriority', 'FixedChunkSize'."),Tag_0_expects_at_least_1_arguments_but_the_JSX_factory_2_provides_at_most_3:ca(6229,1,"Tag_0_expects_at_least_1_arguments_but_the_JSX_factory_2_provides_at_most_3_6229","Tag '{0}' expects at least '{1}' arguments, but the JSX factory '{2}' provides at most '{3}'."),Option_0_can_only_be_specified_in_tsconfig_json_file_or_set_to_false_or_null_on_command_line:ca(6230,1,"Option_0_can_only_be_specified_in_tsconfig_json_file_or_set_to_false_or_null_on_command_line_6230","Option '{0}' can only be specified in 'tsconfig.json' file or set to 'false' or 'null' on command line."),Could_not_resolve_the_path_0_with_the_extensions_Colon_1:ca(6231,1,"Could_not_resolve_the_path_0_with_the_extensions_Colon_1_6231","Could not resolve the path '{0}' with the extensions: {1}."),Declaration_augments_declaration_in_another_file_This_cannot_be_serialized:ca(6232,1,"Declaration_augments_declaration_in_another_file_This_cannot_be_serialized_6232","Declaration augments declaration in another file. This cannot be serialized."),This_is_the_declaration_being_augmented_Consider_moving_the_augmenting_declaration_into_the_same_file:ca(6233,1,"This_is_the_declaration_being_augmented_Consider_moving_the_augmenting_declaration_into_the_same_fil_6233","This is the declaration being augmented. Consider moving the augmenting declaration into the same file."),This_expression_is_not_callable_because_it_is_a_get_accessor_Did_you_mean_to_use_it_without:ca(6234,1,"This_expression_is_not_callable_because_it_is_a_get_accessor_Did_you_mean_to_use_it_without_6234","This expression is not callable because it is a 'get' accessor. Did you mean to use it without '()'?"),Disable_loading_referenced_projects:ca(6235,3,"Disable_loading_referenced_projects_6235","Disable loading referenced projects."),Arguments_for_the_rest_parameter_0_were_not_provided:ca(6236,1,"Arguments_for_the_rest_parameter_0_were_not_provided_6236","Arguments for the rest parameter '{0}' were not provided."),Generates_an_event_trace_and_a_list_of_types:ca(6237,3,"Generates_an_event_trace_and_a_list_of_types_6237","Generates an event trace and a list of types."),Specify_the_module_specifier_to_be_used_to_import_the_jsx_and_jsxs_factory_functions_from_eg_react:ca(6238,1,"Specify_the_module_specifier_to_be_used_to_import_the_jsx_and_jsxs_factory_functions_from_eg_react_6238","Specify the module specifier to be used to import the 'jsx' and 'jsxs' factory functions from. eg, react"),File_0_exists_according_to_earlier_cached_lookups:ca(6239,3,"File_0_exists_according_to_earlier_cached_lookups_6239","File '{0}' exists according to earlier cached lookups."),File_0_does_not_exist_according_to_earlier_cached_lookups:ca(6240,3,"File_0_does_not_exist_according_to_earlier_cached_lookups_6240","File '{0}' does not exist according to earlier cached lookups."),Resolution_for_type_reference_directive_0_was_found_in_cache_from_location_1:ca(6241,3,"Resolution_for_type_reference_directive_0_was_found_in_cache_from_location_1_6241","Resolution for type reference directive '{0}' was found in cache from location '{1}'."),Resolving_type_reference_directive_0_containing_file_1:ca(6242,3,"Resolving_type_reference_directive_0_containing_file_1_6242","======== Resolving type reference directive '{0}', containing file '{1}'. ========"),Interpret_optional_property_types_as_written_rather_than_adding_undefined:ca(6243,3,"Interpret_optional_property_types_as_written_rather_than_adding_undefined_6243","Interpret optional property types as written, rather than adding 'undefined'."),Modules:ca(6244,3,"Modules_6244","Modules"),File_Management:ca(6245,3,"File_Management_6245","File Management"),Emit:ca(6246,3,"Emit_6246","Emit"),JavaScript_Support:ca(6247,3,"JavaScript_Support_6247","JavaScript Support"),Type_Checking:ca(6248,3,"Type_Checking_6248","Type Checking"),Editor_Support:ca(6249,3,"Editor_Support_6249","Editor Support"),Watch_and_Build_Modes:ca(6250,3,"Watch_and_Build_Modes_6250","Watch and Build Modes"),Compiler_Diagnostics:ca(6251,3,"Compiler_Diagnostics_6251","Compiler Diagnostics"),Interop_Constraints:ca(6252,3,"Interop_Constraints_6252","Interop Constraints"),Backwards_Compatibility:ca(6253,3,"Backwards_Compatibility_6253","Backwards Compatibility"),Language_and_Environment:ca(6254,3,"Language_and_Environment_6254","Language and Environment"),Projects:ca(6255,3,"Projects_6255","Projects"),Output_Formatting:ca(6256,3,"Output_Formatting_6256","Output Formatting"),Completeness:ca(6257,3,"Completeness_6257","Completeness"),_0_should_be_set_inside_the_compilerOptions_object_of_the_config_json_file:ca(6258,1,"_0_should_be_set_inside_the_compilerOptions_object_of_the_config_json_file_6258","'{0}' should be set inside the 'compilerOptions' object of the config json file"),Found_1_error_in_0:ca(6259,3,"Found_1_error_in_0_6259","Found 1 error in {0}"),Found_0_errors_in_the_same_file_starting_at_Colon_1:ca(6260,3,"Found_0_errors_in_the_same_file_starting_at_Colon_1_6260","Found {0} errors in the same file, starting at: {1}"),Found_0_errors_in_1_files:ca(6261,3,"Found_0_errors_in_1_files_6261","Found {0} errors in {1} files."),File_name_0_has_a_1_extension_looking_up_2_instead:ca(6262,3,"File_name_0_has_a_1_extension_looking_up_2_instead_6262","File name '{0}' has a '{1}' extension - looking up '{2}' instead."),Module_0_was_resolved_to_1_but_allowArbitraryExtensions_is_not_set:ca(6263,1,"Module_0_was_resolved_to_1_but_allowArbitraryExtensions_is_not_set_6263","Module '{0}' was resolved to '{1}', but '--allowArbitraryExtensions' is not set."),Enable_importing_files_with_any_extension_provided_a_declaration_file_is_present:ca(6264,3,"Enable_importing_files_with_any_extension_provided_a_declaration_file_is_present_6264","Enable importing files with any extension, provided a declaration file is present."),Resolving_type_reference_directive_for_program_that_specifies_custom_typeRoots_skipping_lookup_in_node_modules_folder:ca(6265,3,"Resolving_type_reference_directive_for_program_that_specifies_custom_typeRoots_skipping_lookup_in_no_6265","Resolving type reference directive for program that specifies custom typeRoots, skipping lookup in 'node_modules' folder."),Option_0_can_only_be_specified_on_command_line:ca(6266,1,"Option_0_can_only_be_specified_on_command_line_6266","Option '{0}' can only be specified on command line."),Directory_0_has_no_containing_package_json_scope_Imports_will_not_resolve:ca(6270,3,"Directory_0_has_no_containing_package_json_scope_Imports_will_not_resolve_6270","Directory '{0}' has no containing package.json scope. Imports will not resolve."),Import_specifier_0_does_not_exist_in_package_json_scope_at_path_1:ca(6271,3,"Import_specifier_0_does_not_exist_in_package_json_scope_at_path_1_6271","Import specifier '{0}' does not exist in package.json scope at path '{1}'."),Invalid_import_specifier_0_has_no_possible_resolutions:ca(6272,3,"Invalid_import_specifier_0_has_no_possible_resolutions_6272","Invalid import specifier '{0}' has no possible resolutions."),package_json_scope_0_has_no_imports_defined:ca(6273,3,"package_json_scope_0_has_no_imports_defined_6273","package.json scope '{0}' has no imports defined."),package_json_scope_0_explicitly_maps_specifier_1_to_null:ca(6274,3,"package_json_scope_0_explicitly_maps_specifier_1_to_null_6274","package.json scope '{0}' explicitly maps specifier '{1}' to null."),package_json_scope_0_has_invalid_type_for_target_of_specifier_1:ca(6275,3,"package_json_scope_0_has_invalid_type_for_target_of_specifier_1_6275","package.json scope '{0}' has invalid type for target of specifier '{1}'"),Export_specifier_0_does_not_exist_in_package_json_scope_at_path_1:ca(6276,3,"Export_specifier_0_does_not_exist_in_package_json_scope_at_path_1_6276","Export specifier '{0}' does not exist in package.json scope at path '{1}'."),Resolution_of_non_relative_name_failed_trying_with_modern_Node_resolution_features_disabled_to_see_if_npm_library_needs_configuration_update:ca(6277,3,"Resolution_of_non_relative_name_failed_trying_with_modern_Node_resolution_features_disabled_to_see_i_6277","Resolution of non-relative name failed; trying with modern Node resolution features disabled to see if npm library needs configuration update."),There_are_types_at_0_but_this_result_could_not_be_resolved_when_respecting_package_json_exports_The_1_library_may_need_to_update_its_package_json_or_typings:ca(6278,3,"There_are_types_at_0_but_this_result_could_not_be_resolved_when_respecting_package_json_exports_The__6278","There are types at '{0}', but this result could not be resolved when respecting package.json \"exports\". The '{1}' library may need to update its package.json or typings."),Resolution_of_non_relative_name_failed_trying_with_moduleResolution_bundler_to_see_if_project_may_need_configuration_update:ca(6279,3,"Resolution_of_non_relative_name_failed_trying_with_moduleResolution_bundler_to_see_if_project_may_ne_6279","Resolution of non-relative name failed; trying with '--moduleResolution bundler' to see if project may need configuration update."),There_are_types_at_0_but_this_result_could_not_be_resolved_under_your_current_moduleResolution_setting_Consider_updating_to_node16_nodenext_or_bundler:ca(6280,3,"There_are_types_at_0_but_this_result_could_not_be_resolved_under_your_current_moduleResolution_setti_6280","There are types at '{0}', but this result could not be resolved under your current 'moduleResolution' setting. Consider updating to 'node16', 'nodenext', or 'bundler'."),package_json_has_a_peerDependencies_field:ca(6281,3,"package_json_has_a_peerDependencies_field_6281","'package.json' has a 'peerDependencies' field."),Found_peerDependency_0_with_1_version:ca(6282,3,"Found_peerDependency_0_with_1_version_6282","Found peerDependency '{0}' with '{1}' version."),Failed_to_find_peerDependency_0:ca(6283,3,"Failed_to_find_peerDependency_0_6283","Failed to find peerDependency '{0}'."),Enable_project_compilation:ca(6302,3,"Enable_project_compilation_6302","Enable project compilation"),Composite_projects_may_not_disable_declaration_emit:ca(6304,1,"Composite_projects_may_not_disable_declaration_emit_6304","Composite projects may not disable declaration emit."),Output_file_0_has_not_been_built_from_source_file_1:ca(6305,1,"Output_file_0_has_not_been_built_from_source_file_1_6305","Output file '{0}' has not been built from source file '{1}'."),Referenced_project_0_must_have_setting_composite_Colon_true:ca(6306,1,"Referenced_project_0_must_have_setting_composite_Colon_true_6306","Referenced project '{0}' must have setting \"composite\": true."),File_0_is_not_listed_within_the_file_list_of_project_1_Projects_must_list_all_files_or_use_an_include_pattern:ca(6307,1,"File_0_is_not_listed_within_the_file_list_of_project_1_Projects_must_list_all_files_or_use_an_includ_6307","File '{0}' is not listed within the file list of project '{1}'. Projects must list all files or use an 'include' pattern."),Referenced_project_0_may_not_disable_emit:ca(6310,1,"Referenced_project_0_may_not_disable_emit_6310","Referenced project '{0}' may not disable emit."),Project_0_is_out_of_date_because_output_1_is_older_than_input_2:ca(6350,3,"Project_0_is_out_of_date_because_output_1_is_older_than_input_2_6350","Project '{0}' is out of date because output '{1}' is older than input '{2}'"),Project_0_is_up_to_date_because_newest_input_1_is_older_than_output_2:ca(6351,3,"Project_0_is_up_to_date_because_newest_input_1_is_older_than_output_2_6351","Project '{0}' is up to date because newest input '{1}' is older than output '{2}'"),Project_0_is_out_of_date_because_output_file_1_does_not_exist:ca(6352,3,"Project_0_is_out_of_date_because_output_file_1_does_not_exist_6352","Project '{0}' is out of date because output file '{1}' does not exist"),Project_0_is_out_of_date_because_its_dependency_1_is_out_of_date:ca(6353,3,"Project_0_is_out_of_date_because_its_dependency_1_is_out_of_date_6353","Project '{0}' is out of date because its dependency '{1}' is out of date"),Project_0_is_up_to_date_with_d_ts_files_from_its_dependencies:ca(6354,3,"Project_0_is_up_to_date_with_d_ts_files_from_its_dependencies_6354","Project '{0}' is up to date with .d.ts files from its dependencies"),Projects_in_this_build_Colon_0:ca(6355,3,"Projects_in_this_build_Colon_0_6355","Projects in this build: {0}"),A_non_dry_build_would_delete_the_following_files_Colon_0:ca(6356,3,"A_non_dry_build_would_delete_the_following_files_Colon_0_6356","A non-dry build would delete the following files: {0}"),A_non_dry_build_would_build_project_0:ca(6357,3,"A_non_dry_build_would_build_project_0_6357","A non-dry build would build project '{0}'"),Building_project_0:ca(6358,3,"Building_project_0_6358","Building project '{0}'..."),Updating_output_timestamps_of_project_0:ca(6359,3,"Updating_output_timestamps_of_project_0_6359","Updating output timestamps of project '{0}'..."),Project_0_is_up_to_date:ca(6361,3,"Project_0_is_up_to_date_6361","Project '{0}' is up to date"),Skipping_build_of_project_0_because_its_dependency_1_has_errors:ca(6362,3,"Skipping_build_of_project_0_because_its_dependency_1_has_errors_6362","Skipping build of project '{0}' because its dependency '{1}' has errors"),Project_0_can_t_be_built_because_its_dependency_1_has_errors:ca(6363,3,"Project_0_can_t_be_built_because_its_dependency_1_has_errors_6363","Project '{0}' can't be built because its dependency '{1}' has errors"),Build_one_or_more_projects_and_their_dependencies_if_out_of_date:ca(6364,3,"Build_one_or_more_projects_and_their_dependencies_if_out_of_date_6364","Build one or more projects and their dependencies, if out of date"),Delete_the_outputs_of_all_projects:ca(6365,3,"Delete_the_outputs_of_all_projects_6365","Delete the outputs of all projects."),Show_what_would_be_built_or_deleted_if_specified_with_clean:ca(6367,3,"Show_what_would_be_built_or_deleted_if_specified_with_clean_6367","Show what would be built (or deleted, if specified with '--clean')"),Option_build_must_be_the_first_command_line_argument:ca(6369,1,"Option_build_must_be_the_first_command_line_argument_6369","Option '--build' must be the first command line argument."),Options_0_and_1_cannot_be_combined:ca(6370,1,"Options_0_and_1_cannot_be_combined_6370","Options '{0}' and '{1}' cannot be combined."),Updating_unchanged_output_timestamps_of_project_0:ca(6371,3,"Updating_unchanged_output_timestamps_of_project_0_6371","Updating unchanged output timestamps of project '{0}'..."),A_non_dry_build_would_update_timestamps_for_output_of_project_0:ca(6374,3,"A_non_dry_build_would_update_timestamps_for_output_of_project_0_6374","A non-dry build would update timestamps for output of project '{0}'"),Cannot_write_file_0_because_it_will_overwrite_tsbuildinfo_file_generated_by_referenced_project_1:ca(6377,1,"Cannot_write_file_0_because_it_will_overwrite_tsbuildinfo_file_generated_by_referenced_project_1_6377","Cannot write file '{0}' because it will overwrite '.tsbuildinfo' file generated by referenced project '{1}'"),Composite_projects_may_not_disable_incremental_compilation:ca(6379,1,"Composite_projects_may_not_disable_incremental_compilation_6379","Composite projects may not disable incremental compilation."),Specify_file_to_store_incremental_compilation_information:ca(6380,3,"Specify_file_to_store_incremental_compilation_information_6380","Specify file to store incremental compilation information"),Project_0_is_out_of_date_because_output_for_it_was_generated_with_version_1_that_differs_with_current_version_2:ca(6381,3,"Project_0_is_out_of_date_because_output_for_it_was_generated_with_version_1_that_differs_with_curren_6381","Project '{0}' is out of date because output for it was generated with version '{1}' that differs with current version '{2}'"),Skipping_build_of_project_0_because_its_dependency_1_was_not_built:ca(6382,3,"Skipping_build_of_project_0_because_its_dependency_1_was_not_built_6382","Skipping build of project '{0}' because its dependency '{1}' was not built"),Project_0_can_t_be_built_because_its_dependency_1_was_not_built:ca(6383,3,"Project_0_can_t_be_built_because_its_dependency_1_was_not_built_6383","Project '{0}' can't be built because its dependency '{1}' was not built"),Have_recompiles_in_incremental_and_watch_assume_that_changes_within_a_file_will_only_affect_files_directly_depending_on_it:ca(6384,3,"Have_recompiles_in_incremental_and_watch_assume_that_changes_within_a_file_will_only_affect_files_di_6384","Have recompiles in '--incremental' and '--watch' assume that changes within a file will only affect files directly depending on it."),_0_is_deprecated:ca(6385,2,"_0_is_deprecated_6385","'{0}' is deprecated.",void 0,void 0,!0),Performance_timings_for_diagnostics_or_extendedDiagnostics_are_not_available_in_this_session_A_native_implementation_of_the_Web_Performance_API_could_not_be_found:ca(6386,3,"Performance_timings_for_diagnostics_or_extendedDiagnostics_are_not_available_in_this_session_A_nativ_6386","Performance timings for '--diagnostics' or '--extendedDiagnostics' are not available in this session. A native implementation of the Web Performance API could not be found."),The_signature_0_of_1_is_deprecated:ca(6387,2,"The_signature_0_of_1_is_deprecated_6387","The signature '{0}' of '{1}' is deprecated.",void 0,void 0,!0),Project_0_is_being_forcibly_rebuilt:ca(6388,3,"Project_0_is_being_forcibly_rebuilt_6388","Project '{0}' is being forcibly rebuilt"),Reusing_resolution_of_module_0_from_1_of_old_program_it_was_not_resolved:ca(6389,3,"Reusing_resolution_of_module_0_from_1_of_old_program_it_was_not_resolved_6389","Reusing resolution of module '{0}' from '{1}' of old program, it was not resolved."),Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_successfully_resolved_to_2:ca(6390,3,"Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_successfully_resolved__6390","Reusing resolution of type reference directive '{0}' from '{1}' of old program, it was successfully resolved to '{2}'."),Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_successfully_resolved_to_2_with_Package_ID_3:ca(6391,3,"Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_successfully_resolved__6391","Reusing resolution of type reference directive '{0}' from '{1}' of old program, it was successfully resolved to '{2}' with Package ID '{3}'."),Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_not_resolved:ca(6392,3,"Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_not_resolved_6392","Reusing resolution of type reference directive '{0}' from '{1}' of old program, it was not resolved."),Reusing_resolution_of_module_0_from_1_found_in_cache_from_location_2_it_was_successfully_resolved_to_3:ca(6393,3,"Reusing_resolution_of_module_0_from_1_found_in_cache_from_location_2_it_was_successfully_resolved_to_6393","Reusing resolution of module '{0}' from '{1}' found in cache from location '{2}', it was successfully resolved to '{3}'."),Reusing_resolution_of_module_0_from_1_found_in_cache_from_location_2_it_was_successfully_resolved_to_3_with_Package_ID_4:ca(6394,3,"Reusing_resolution_of_module_0_from_1_found_in_cache_from_location_2_it_was_successfully_resolved_to_6394","Reusing resolution of module '{0}' from '{1}' found in cache from location '{2}', it was successfully resolved to '{3}' with Package ID '{4}'."),Reusing_resolution_of_module_0_from_1_found_in_cache_from_location_2_it_was_not_resolved:ca(6395,3,"Reusing_resolution_of_module_0_from_1_found_in_cache_from_location_2_it_was_not_resolved_6395","Reusing resolution of module '{0}' from '{1}' found in cache from location '{2}', it was not resolved."),Reusing_resolution_of_type_reference_directive_0_from_1_found_in_cache_from_location_2_it_was_successfully_resolved_to_3:ca(6396,3,"Reusing_resolution_of_type_reference_directive_0_from_1_found_in_cache_from_location_2_it_was_succes_6396","Reusing resolution of type reference directive '{0}' from '{1}' found in cache from location '{2}', it was successfully resolved to '{3}'."),Reusing_resolution_of_type_reference_directive_0_from_1_found_in_cache_from_location_2_it_was_successfully_resolved_to_3_with_Package_ID_4:ca(6397,3,"Reusing_resolution_of_type_reference_directive_0_from_1_found_in_cache_from_location_2_it_was_succes_6397","Reusing resolution of type reference directive '{0}' from '{1}' found in cache from location '{2}', it was successfully resolved to '{3}' with Package ID '{4}'."),Reusing_resolution_of_type_reference_directive_0_from_1_found_in_cache_from_location_2_it_was_not_resolved:ca(6398,3,"Reusing_resolution_of_type_reference_directive_0_from_1_found_in_cache_from_location_2_it_was_not_re_6398","Reusing resolution of type reference directive '{0}' from '{1}' found in cache from location '{2}', it was not resolved."),Project_0_is_out_of_date_because_buildinfo_file_1_indicates_that_some_of_the_changes_were_not_emitted:ca(6399,3,"Project_0_is_out_of_date_because_buildinfo_file_1_indicates_that_some_of_the_changes_were_not_emitte_6399","Project '{0}' is out of date because buildinfo file '{1}' indicates that some of the changes were not emitted"),Project_0_is_up_to_date_but_needs_to_update_timestamps_of_output_files_that_are_older_than_input_files:ca(6400,3,"Project_0_is_up_to_date_but_needs_to_update_timestamps_of_output_files_that_are_older_than_input_fil_6400","Project '{0}' is up to date but needs to update timestamps of output files that are older than input files"),Project_0_is_out_of_date_because_there_was_error_reading_file_1:ca(6401,3,"Project_0_is_out_of_date_because_there_was_error_reading_file_1_6401","Project '{0}' is out of date because there was error reading file '{1}'"),Resolving_in_0_mode_with_conditions_1:ca(6402,3,"Resolving_in_0_mode_with_conditions_1_6402","Resolving in {0} mode with conditions {1}."),Matched_0_condition_1:ca(6403,3,"Matched_0_condition_1_6403","Matched '{0}' condition '{1}'."),Using_0_subpath_1_with_target_2:ca(6404,3,"Using_0_subpath_1_with_target_2_6404","Using '{0}' subpath '{1}' with target '{2}'."),Saw_non_matching_condition_0:ca(6405,3,"Saw_non_matching_condition_0_6405","Saw non-matching condition '{0}'."),Project_0_is_out_of_date_because_buildinfo_file_1_indicates_there_is_change_in_compilerOptions:ca(6406,3,"Project_0_is_out_of_date_because_buildinfo_file_1_indicates_there_is_change_in_compilerOptions_6406","Project '{0}' is out of date because buildinfo file '{1}' indicates there is change in compilerOptions"),Allow_imports_to_include_TypeScript_file_extensions_Requires_moduleResolution_bundler_and_either_noEmit_or_emitDeclarationOnly_to_be_set:ca(6407,3,"Allow_imports_to_include_TypeScript_file_extensions_Requires_moduleResolution_bundler_and_either_noE_6407","Allow imports to include TypeScript file extensions. Requires '--moduleResolution bundler' and either '--noEmit' or '--emitDeclarationOnly' to be set."),Use_the_package_json_exports_field_when_resolving_package_imports:ca(6408,3,"Use_the_package_json_exports_field_when_resolving_package_imports_6408","Use the package.json 'exports' field when resolving package imports."),Use_the_package_json_imports_field_when_resolving_imports:ca(6409,3,"Use_the_package_json_imports_field_when_resolving_imports_6409","Use the package.json 'imports' field when resolving imports."),Conditions_to_set_in_addition_to_the_resolver_specific_defaults_when_resolving_imports:ca(6410,3,"Conditions_to_set_in_addition_to_the_resolver_specific_defaults_when_resolving_imports_6410","Conditions to set in addition to the resolver-specific defaults when resolving imports."),true_when_moduleResolution_is_node16_nodenext_or_bundler_otherwise_false:ca(6411,3,"true_when_moduleResolution_is_node16_nodenext_or_bundler_otherwise_false_6411","`true` when 'moduleResolution' is 'node16', 'nodenext', or 'bundler'; otherwise `false`."),Project_0_is_out_of_date_because_buildinfo_file_1_indicates_that_file_2_was_root_file_of_compilation_but_not_any_more:ca(6412,3,"Project_0_is_out_of_date_because_buildinfo_file_1_indicates_that_file_2_was_root_file_of_compilation_6412","Project '{0}' is out of date because buildinfo file '{1}' indicates that file '{2}' was root file of compilation but not any more."),Entering_conditional_exports:ca(6413,3,"Entering_conditional_exports_6413","Entering conditional exports."),Resolved_under_condition_0:ca(6414,3,"Resolved_under_condition_0_6414","Resolved under condition '{0}'."),Failed_to_resolve_under_condition_0:ca(6415,3,"Failed_to_resolve_under_condition_0_6415","Failed to resolve under condition '{0}'."),Exiting_conditional_exports:ca(6416,3,"Exiting_conditional_exports_6416","Exiting conditional exports."),Searching_all_ancestor_node_modules_directories_for_preferred_extensions_Colon_0:ca(6417,3,"Searching_all_ancestor_node_modules_directories_for_preferred_extensions_Colon_0_6417","Searching all ancestor node_modules directories for preferred extensions: {0}."),Searching_all_ancestor_node_modules_directories_for_fallback_extensions_Colon_0:ca(6418,3,"Searching_all_ancestor_node_modules_directories_for_fallback_extensions_Colon_0_6418","Searching all ancestor node_modules directories for fallback extensions: {0}."),Project_0_is_out_of_date_because_buildinfo_file_1_indicates_that_program_needs_to_report_errors:ca(6419,3,"Project_0_is_out_of_date_because_buildinfo_file_1_indicates_that_program_needs_to_report_errors_6419","Project '{0}' is out of date because buildinfo file '{1}' indicates that program needs to report errors."),Project_0_is_out_of_date_because_1:ca(6420,3,"Project_0_is_out_of_date_because_1_6420","Project '{0}' is out of date because {1}."),Rewrite_ts_tsx_mts_and_cts_file_extensions_in_relative_import_paths_to_their_JavaScript_equivalent_in_output_files:ca(6421,3,"Rewrite_ts_tsx_mts_and_cts_file_extensions_in_relative_import_paths_to_their_JavaScript_equivalent_i_6421","Rewrite '.ts', '.tsx', '.mts', and '.cts' file extensions in relative import paths to their JavaScript equivalent in output files."),The_expected_type_comes_from_property_0_which_is_declared_here_on_type_1:ca(6500,3,"The_expected_type_comes_from_property_0_which_is_declared_here_on_type_1_6500","The expected type comes from property '{0}' which is declared here on type '{1}'"),The_expected_type_comes_from_this_index_signature:ca(6501,3,"The_expected_type_comes_from_this_index_signature_6501","The expected type comes from this index signature."),The_expected_type_comes_from_the_return_type_of_this_signature:ca(6502,3,"The_expected_type_comes_from_the_return_type_of_this_signature_6502","The expected type comes from the return type of this signature."),Print_names_of_files_that_are_part_of_the_compilation_and_then_stop_processing:ca(6503,3,"Print_names_of_files_that_are_part_of_the_compilation_and_then_stop_processing_6503","Print names of files that are part of the compilation and then stop processing."),File_0_is_a_JavaScript_file_Did_you_mean_to_enable_the_allowJs_option:ca(6504,1,"File_0_is_a_JavaScript_file_Did_you_mean_to_enable_the_allowJs_option_6504","File '{0}' is a JavaScript file. Did you mean to enable the 'allowJs' option?"),Print_names_of_files_and_the_reason_they_are_part_of_the_compilation:ca(6505,3,"Print_names_of_files_and_the_reason_they_are_part_of_the_compilation_6505","Print names of files and the reason they are part of the compilation."),Consider_adding_a_declare_modifier_to_this_class:ca(6506,3,"Consider_adding_a_declare_modifier_to_this_class_6506","Consider adding a 'declare' modifier to this class."),Allow_JavaScript_files_to_be_a_part_of_your_program_Use_the_checkJS_option_to_get_errors_from_these_files:ca(6600,3,"Allow_JavaScript_files_to_be_a_part_of_your_program_Use_the_checkJS_option_to_get_errors_from_these__6600","Allow JavaScript files to be a part of your program. Use the 'checkJS' option to get errors from these files."),Allow_import_x_from_y_when_a_module_doesn_t_have_a_default_export:ca(6601,3,"Allow_import_x_from_y_when_a_module_doesn_t_have_a_default_export_6601","Allow 'import x from y' when a module doesn't have a default export."),Allow_accessing_UMD_globals_from_modules:ca(6602,3,"Allow_accessing_UMD_globals_from_modules_6602","Allow accessing UMD globals from modules."),Disable_error_reporting_for_unreachable_code:ca(6603,3,"Disable_error_reporting_for_unreachable_code_6603","Disable error reporting for unreachable code."),Disable_error_reporting_for_unused_labels:ca(6604,3,"Disable_error_reporting_for_unused_labels_6604","Disable error reporting for unused labels."),Ensure_use_strict_is_always_emitted:ca(6605,3,"Ensure_use_strict_is_always_emitted_6605","Ensure 'use strict' is always emitted."),Have_recompiles_in_projects_that_use_incremental_and_watch_mode_assume_that_changes_within_a_file_will_only_affect_files_directly_depending_on_it:ca(6606,3,"Have_recompiles_in_projects_that_use_incremental_and_watch_mode_assume_that_changes_within_a_file_wi_6606","Have recompiles in projects that use 'incremental' and 'watch' mode assume that changes within a file will only affect files directly depending on it."),Specify_the_base_directory_to_resolve_non_relative_module_names:ca(6607,3,"Specify_the_base_directory_to_resolve_non_relative_module_names_6607","Specify the base directory to resolve non-relative module names."),No_longer_supported_In_early_versions_manually_set_the_text_encoding_for_reading_files:ca(6608,3,"No_longer_supported_In_early_versions_manually_set_the_text_encoding_for_reading_files_6608","No longer supported. In early versions, manually set the text encoding for reading files."),Enable_error_reporting_in_type_checked_JavaScript_files:ca(6609,3,"Enable_error_reporting_in_type_checked_JavaScript_files_6609","Enable error reporting in type-checked JavaScript files."),Enable_constraints_that_allow_a_TypeScript_project_to_be_used_with_project_references:ca(6611,3,"Enable_constraints_that_allow_a_TypeScript_project_to_be_used_with_project_references_6611","Enable constraints that allow a TypeScript project to be used with project references."),Generate_d_ts_files_from_TypeScript_and_JavaScript_files_in_your_project:ca(6612,3,"Generate_d_ts_files_from_TypeScript_and_JavaScript_files_in_your_project_6612","Generate .d.ts files from TypeScript and JavaScript files in your project."),Specify_the_output_directory_for_generated_declaration_files:ca(6613,3,"Specify_the_output_directory_for_generated_declaration_files_6613","Specify the output directory for generated declaration files."),Create_sourcemaps_for_d_ts_files:ca(6614,3,"Create_sourcemaps_for_d_ts_files_6614","Create sourcemaps for d.ts files."),Output_compiler_performance_information_after_building:ca(6615,3,"Output_compiler_performance_information_after_building_6615","Output compiler performance information after building."),Disables_inference_for_type_acquisition_by_looking_at_filenames_in_a_project:ca(6616,3,"Disables_inference_for_type_acquisition_by_looking_at_filenames_in_a_project_6616","Disables inference for type acquisition by looking at filenames in a project."),Reduce_the_number_of_projects_loaded_automatically_by_TypeScript:ca(6617,3,"Reduce_the_number_of_projects_loaded_automatically_by_TypeScript_6617","Reduce the number of projects loaded automatically by TypeScript."),Remove_the_20mb_cap_on_total_source_code_size_for_JavaScript_files_in_the_TypeScript_language_server:ca(6618,3,"Remove_the_20mb_cap_on_total_source_code_size_for_JavaScript_files_in_the_TypeScript_language_server_6618","Remove the 20mb cap on total source code size for JavaScript files in the TypeScript language server."),Opt_a_project_out_of_multi_project_reference_checking_when_editing:ca(6619,3,"Opt_a_project_out_of_multi_project_reference_checking_when_editing_6619","Opt a project out of multi-project reference checking when editing."),Disable_preferring_source_files_instead_of_declaration_files_when_referencing_composite_projects:ca(6620,3,"Disable_preferring_source_files_instead_of_declaration_files_when_referencing_composite_projects_6620","Disable preferring source files instead of declaration files when referencing composite projects."),Emit_more_compliant_but_verbose_and_less_performant_JavaScript_for_iteration:ca(6621,3,"Emit_more_compliant_but_verbose_and_less_performant_JavaScript_for_iteration_6621","Emit more compliant, but verbose and less performant JavaScript for iteration."),Emit_a_UTF_8_Byte_Order_Mark_BOM_in_the_beginning_of_output_files:ca(6622,3,"Emit_a_UTF_8_Byte_Order_Mark_BOM_in_the_beginning_of_output_files_6622","Emit a UTF-8 Byte Order Mark (BOM) in the beginning of output files."),Only_output_d_ts_files_and_not_JavaScript_files:ca(6623,3,"Only_output_d_ts_files_and_not_JavaScript_files_6623","Only output d.ts files and not JavaScript files."),Emit_design_type_metadata_for_decorated_declarations_in_source_files:ca(6624,3,"Emit_design_type_metadata_for_decorated_declarations_in_source_files_6624","Emit design-type metadata for decorated declarations in source files."),Disable_the_type_acquisition_for_JavaScript_projects:ca(6625,3,"Disable_the_type_acquisition_for_JavaScript_projects_6625","Disable the type acquisition for JavaScript projects"),Emit_additional_JavaScript_to_ease_support_for_importing_CommonJS_modules_This_enables_allowSyntheticDefaultImports_for_type_compatibility:ca(6626,3,"Emit_additional_JavaScript_to_ease_support_for_importing_CommonJS_modules_This_enables_allowSyntheti_6626","Emit additional JavaScript to ease support for importing CommonJS modules. This enables 'allowSyntheticDefaultImports' for type compatibility."),Filters_results_from_the_include_option:ca(6627,3,"Filters_results_from_the_include_option_6627","Filters results from the `include` option."),Remove_a_list_of_directories_from_the_watch_process:ca(6628,3,"Remove_a_list_of_directories_from_the_watch_process_6628","Remove a list of directories from the watch process."),Remove_a_list_of_files_from_the_watch_mode_s_processing:ca(6629,3,"Remove_a_list_of_files_from_the_watch_mode_s_processing_6629","Remove a list of files from the watch mode's processing."),Enable_experimental_support_for_legacy_experimental_decorators:ca(6630,3,"Enable_experimental_support_for_legacy_experimental_decorators_6630","Enable experimental support for legacy experimental decorators."),Print_files_read_during_the_compilation_including_why_it_was_included:ca(6631,3,"Print_files_read_during_the_compilation_including_why_it_was_included_6631","Print files read during the compilation including why it was included."),Output_more_detailed_compiler_performance_information_after_building:ca(6632,3,"Output_more_detailed_compiler_performance_information_after_building_6632","Output more detailed compiler performance information after building."),Specify_one_or_more_path_or_node_module_references_to_base_configuration_files_from_which_settings_are_inherited:ca(6633,3,"Specify_one_or_more_path_or_node_module_references_to_base_configuration_files_from_which_settings_a_6633","Specify one or more path or node module references to base configuration files from which settings are inherited."),Specify_what_approach_the_watcher_should_use_if_the_system_runs_out_of_native_file_watchers:ca(6634,3,"Specify_what_approach_the_watcher_should_use_if_the_system_runs_out_of_native_file_watchers_6634","Specify what approach the watcher should use if the system runs out of native file watchers."),Include_a_list_of_files_This_does_not_support_glob_patterns_as_opposed_to_include:ca(6635,3,"Include_a_list_of_files_This_does_not_support_glob_patterns_as_opposed_to_include_6635","Include a list of files. This does not support glob patterns, as opposed to `include`."),Build_all_projects_including_those_that_appear_to_be_up_to_date:ca(6636,3,"Build_all_projects_including_those_that_appear_to_be_up_to_date_6636","Build all projects, including those that appear to be up to date."),Ensure_that_casing_is_correct_in_imports:ca(6637,3,"Ensure_that_casing_is_correct_in_imports_6637","Ensure that casing is correct in imports."),Emit_a_v8_CPU_profile_of_the_compiler_run_for_debugging:ca(6638,3,"Emit_a_v8_CPU_profile_of_the_compiler_run_for_debugging_6638","Emit a v8 CPU profile of the compiler run for debugging."),Allow_importing_helper_functions_from_tslib_once_per_project_instead_of_including_them_per_file:ca(6639,3,"Allow_importing_helper_functions_from_tslib_once_per_project_instead_of_including_them_per_file_6639","Allow importing helper functions from tslib once per project, instead of including them per-file."),Skip_building_downstream_projects_on_error_in_upstream_project:ca(6640,3,"Skip_building_downstream_projects_on_error_in_upstream_project_6640","Skip building downstream projects on error in upstream project."),Specify_a_list_of_glob_patterns_that_match_files_to_be_included_in_compilation:ca(6641,3,"Specify_a_list_of_glob_patterns_that_match_files_to_be_included_in_compilation_6641","Specify a list of glob patterns that match files to be included in compilation."),Save_tsbuildinfo_files_to_allow_for_incremental_compilation_of_projects:ca(6642,3,"Save_tsbuildinfo_files_to_allow_for_incremental_compilation_of_projects_6642","Save .tsbuildinfo files to allow for incremental compilation of projects."),Include_sourcemap_files_inside_the_emitted_JavaScript:ca(6643,3,"Include_sourcemap_files_inside_the_emitted_JavaScript_6643","Include sourcemap files inside the emitted JavaScript."),Include_source_code_in_the_sourcemaps_inside_the_emitted_JavaScript:ca(6644,3,"Include_source_code_in_the_sourcemaps_inside_the_emitted_JavaScript_6644","Include source code in the sourcemaps inside the emitted JavaScript."),Ensure_that_each_file_can_be_safely_transpiled_without_relying_on_other_imports:ca(6645,3,"Ensure_that_each_file_can_be_safely_transpiled_without_relying_on_other_imports_6645","Ensure that each file can be safely transpiled without relying on other imports."),Specify_what_JSX_code_is_generated:ca(6646,3,"Specify_what_JSX_code_is_generated_6646","Specify what JSX code is generated."),Specify_the_JSX_factory_function_used_when_targeting_React_JSX_emit_e_g_React_createElement_or_h:ca(6647,3,"Specify_the_JSX_factory_function_used_when_targeting_React_JSX_emit_e_g_React_createElement_or_h_6647","Specify the JSX factory function used when targeting React JSX emit, e.g. 'React.createElement' or 'h'."),Specify_the_JSX_Fragment_reference_used_for_fragments_when_targeting_React_JSX_emit_e_g_React_Fragment_or_Fragment:ca(6648,3,"Specify_the_JSX_Fragment_reference_used_for_fragments_when_targeting_React_JSX_emit_e_g_React_Fragme_6648","Specify the JSX Fragment reference used for fragments when targeting React JSX emit e.g. 'React.Fragment' or 'Fragment'."),Specify_module_specifier_used_to_import_the_JSX_factory_functions_when_using_jsx_Colon_react_jsx_Asterisk:ca(6649,3,"Specify_module_specifier_used_to_import_the_JSX_factory_functions_when_using_jsx_Colon_react_jsx_Ast_6649","Specify module specifier used to import the JSX factory functions when using 'jsx: react-jsx*'."),Make_keyof_only_return_strings_instead_of_string_numbers_or_symbols_Legacy_option:ca(6650,3,"Make_keyof_only_return_strings_instead_of_string_numbers_or_symbols_Legacy_option_6650","Make keyof only return strings instead of string, numbers or symbols. Legacy option."),Specify_a_set_of_bundled_library_declaration_files_that_describe_the_target_runtime_environment:ca(6651,3,"Specify_a_set_of_bundled_library_declaration_files_that_describe_the_target_runtime_environment_6651","Specify a set of bundled library declaration files that describe the target runtime environment."),Print_the_names_of_emitted_files_after_a_compilation:ca(6652,3,"Print_the_names_of_emitted_files_after_a_compilation_6652","Print the names of emitted files after a compilation."),Print_all_of_the_files_read_during_the_compilation:ca(6653,3,"Print_all_of_the_files_read_during_the_compilation_6653","Print all of the files read during the compilation."),Set_the_language_of_the_messaging_from_TypeScript_This_does_not_affect_emit:ca(6654,3,"Set_the_language_of_the_messaging_from_TypeScript_This_does_not_affect_emit_6654","Set the language of the messaging from TypeScript. This does not affect emit."),Specify_the_location_where_debugger_should_locate_map_files_instead_of_generated_locations:ca(6655,3,"Specify_the_location_where_debugger_should_locate_map_files_instead_of_generated_locations_6655","Specify the location where debugger should locate map files instead of generated locations."),Specify_the_maximum_folder_depth_used_for_checking_JavaScript_files_from_node_modules_Only_applicable_with_allowJs:ca(6656,3,"Specify_the_maximum_folder_depth_used_for_checking_JavaScript_files_from_node_modules_Only_applicabl_6656","Specify the maximum folder depth used for checking JavaScript files from 'node_modules'. Only applicable with 'allowJs'."),Specify_what_module_code_is_generated:ca(6657,3,"Specify_what_module_code_is_generated_6657","Specify what module code is generated."),Specify_how_TypeScript_looks_up_a_file_from_a_given_module_specifier:ca(6658,3,"Specify_how_TypeScript_looks_up_a_file_from_a_given_module_specifier_6658","Specify how TypeScript looks up a file from a given module specifier."),Set_the_newline_character_for_emitting_files:ca(6659,3,"Set_the_newline_character_for_emitting_files_6659","Set the newline character for emitting files."),Disable_emitting_files_from_a_compilation:ca(6660,3,"Disable_emitting_files_from_a_compilation_6660","Disable emitting files from a compilation."),Disable_generating_custom_helper_functions_like_extends_in_compiled_output:ca(6661,3,"Disable_generating_custom_helper_functions_like_extends_in_compiled_output_6661","Disable generating custom helper functions like '__extends' in compiled output."),Disable_emitting_files_if_any_type_checking_errors_are_reported:ca(6662,3,"Disable_emitting_files_if_any_type_checking_errors_are_reported_6662","Disable emitting files if any type checking errors are reported."),Disable_truncating_types_in_error_messages:ca(6663,3,"Disable_truncating_types_in_error_messages_6663","Disable truncating types in error messages."),Enable_error_reporting_for_fallthrough_cases_in_switch_statements:ca(6664,3,"Enable_error_reporting_for_fallthrough_cases_in_switch_statements_6664","Enable error reporting for fallthrough cases in switch statements."),Enable_error_reporting_for_expressions_and_declarations_with_an_implied_any_type:ca(6665,3,"Enable_error_reporting_for_expressions_and_declarations_with_an_implied_any_type_6665","Enable error reporting for expressions and declarations with an implied 'any' type."),Ensure_overriding_members_in_derived_classes_are_marked_with_an_override_modifier:ca(6666,3,"Ensure_overriding_members_in_derived_classes_are_marked_with_an_override_modifier_6666","Ensure overriding members in derived classes are marked with an override modifier."),Enable_error_reporting_for_codepaths_that_do_not_explicitly_return_in_a_function:ca(6667,3,"Enable_error_reporting_for_codepaths_that_do_not_explicitly_return_in_a_function_6667","Enable error reporting for codepaths that do not explicitly return in a function."),Enable_error_reporting_when_this_is_given_the_type_any:ca(6668,3,"Enable_error_reporting_when_this_is_given_the_type_any_6668","Enable error reporting when 'this' is given the type 'any'."),Disable_adding_use_strict_directives_in_emitted_JavaScript_files:ca(6669,3,"Disable_adding_use_strict_directives_in_emitted_JavaScript_files_6669","Disable adding 'use strict' directives in emitted JavaScript files."),Disable_including_any_library_files_including_the_default_lib_d_ts:ca(6670,3,"Disable_including_any_library_files_including_the_default_lib_d_ts_6670","Disable including any library files, including the default lib.d.ts."),Enforces_using_indexed_accessors_for_keys_declared_using_an_indexed_type:ca(6671,3,"Enforces_using_indexed_accessors_for_keys_declared_using_an_indexed_type_6671","Enforces using indexed accessors for keys declared using an indexed type."),Disallow_import_s_require_s_or_reference_s_from_expanding_the_number_of_files_TypeScript_should_add_to_a_project:ca(6672,3,"Disallow_import_s_require_s_or_reference_s_from_expanding_the_number_of_files_TypeScript_should_add__6672","Disallow 'import's, 'require's or ''s from expanding the number of files TypeScript should add to a project."),Disable_strict_checking_of_generic_signatures_in_function_types:ca(6673,3,"Disable_strict_checking_of_generic_signatures_in_function_types_6673","Disable strict checking of generic signatures in function types."),Add_undefined_to_a_type_when_accessed_using_an_index:ca(6674,3,"Add_undefined_to_a_type_when_accessed_using_an_index_6674","Add 'undefined' to a type when accessed using an index."),Enable_error_reporting_when_local_variables_aren_t_read:ca(6675,3,"Enable_error_reporting_when_local_variables_aren_t_read_6675","Enable error reporting when local variables aren't read."),Raise_an_error_when_a_function_parameter_isn_t_read:ca(6676,3,"Raise_an_error_when_a_function_parameter_isn_t_read_6676","Raise an error when a function parameter isn't read."),Deprecated_setting_Use_outFile_instead:ca(6677,3,"Deprecated_setting_Use_outFile_instead_6677","Deprecated setting. Use 'outFile' instead."),Specify_an_output_folder_for_all_emitted_files:ca(6678,3,"Specify_an_output_folder_for_all_emitted_files_6678","Specify an output folder for all emitted files."),Specify_a_file_that_bundles_all_outputs_into_one_JavaScript_file_If_declaration_is_true_also_designates_a_file_that_bundles_all_d_ts_output:ca(6679,3,"Specify_a_file_that_bundles_all_outputs_into_one_JavaScript_file_If_declaration_is_true_also_designa_6679","Specify a file that bundles all outputs into one JavaScript file. If 'declaration' is true, also designates a file that bundles all .d.ts output."),Specify_a_set_of_entries_that_re_map_imports_to_additional_lookup_locations:ca(6680,3,"Specify_a_set_of_entries_that_re_map_imports_to_additional_lookup_locations_6680","Specify a set of entries that re-map imports to additional lookup locations."),Specify_a_list_of_language_service_plugins_to_include:ca(6681,3,"Specify_a_list_of_language_service_plugins_to_include_6681","Specify a list of language service plugins to include."),Disable_erasing_const_enum_declarations_in_generated_code:ca(6682,3,"Disable_erasing_const_enum_declarations_in_generated_code_6682","Disable erasing 'const enum' declarations in generated code."),Disable_resolving_symlinks_to_their_realpath_This_correlates_to_the_same_flag_in_node:ca(6683,3,"Disable_resolving_symlinks_to_their_realpath_This_correlates_to_the_same_flag_in_node_6683","Disable resolving symlinks to their realpath. This correlates to the same flag in node."),Disable_wiping_the_console_in_watch_mode:ca(6684,3,"Disable_wiping_the_console_in_watch_mode_6684","Disable wiping the console in watch mode."),Enable_color_and_formatting_in_TypeScript_s_output_to_make_compiler_errors_easier_to_read:ca(6685,3,"Enable_color_and_formatting_in_TypeScript_s_output_to_make_compiler_errors_easier_to_read_6685","Enable color and formatting in TypeScript's output to make compiler errors easier to read."),Specify_the_object_invoked_for_createElement_This_only_applies_when_targeting_react_JSX_emit:ca(6686,3,"Specify_the_object_invoked_for_createElement_This_only_applies_when_targeting_react_JSX_emit_6686","Specify the object invoked for 'createElement'. This only applies when targeting 'react' JSX emit."),Specify_an_array_of_objects_that_specify_paths_for_projects_Used_in_project_references:ca(6687,3,"Specify_an_array_of_objects_that_specify_paths_for_projects_Used_in_project_references_6687","Specify an array of objects that specify paths for projects. Used in project references."),Disable_emitting_comments:ca(6688,3,"Disable_emitting_comments_6688","Disable emitting comments."),Enable_importing_json_files:ca(6689,3,"Enable_importing_json_files_6689","Enable importing .json files."),Specify_the_root_folder_within_your_source_files:ca(6690,3,"Specify_the_root_folder_within_your_source_files_6690","Specify the root folder within your source files."),Allow_multiple_folders_to_be_treated_as_one_when_resolving_modules:ca(6691,3,"Allow_multiple_folders_to_be_treated_as_one_when_resolving_modules_6691","Allow multiple folders to be treated as one when resolving modules."),Skip_type_checking_d_ts_files_that_are_included_with_TypeScript:ca(6692,3,"Skip_type_checking_d_ts_files_that_are_included_with_TypeScript_6692","Skip type checking .d.ts files that are included with TypeScript."),Skip_type_checking_all_d_ts_files:ca(6693,3,"Skip_type_checking_all_d_ts_files_6693","Skip type checking all .d.ts files."),Create_source_map_files_for_emitted_JavaScript_files:ca(6694,3,"Create_source_map_files_for_emitted_JavaScript_files_6694","Create source map files for emitted JavaScript files."),Specify_the_root_path_for_debuggers_to_find_the_reference_source_code:ca(6695,3,"Specify_the_root_path_for_debuggers_to_find_the_reference_source_code_6695","Specify the root path for debuggers to find the reference source code."),Check_that_the_arguments_for_bind_call_and_apply_methods_match_the_original_function:ca(6697,3,"Check_that_the_arguments_for_bind_call_and_apply_methods_match_the_original_function_6697","Check that the arguments for 'bind', 'call', and 'apply' methods match the original function."),When_assigning_functions_check_to_ensure_parameters_and_the_return_values_are_subtype_compatible:ca(6698,3,"When_assigning_functions_check_to_ensure_parameters_and_the_return_values_are_subtype_compatible_6698","When assigning functions, check to ensure parameters and the return values are subtype-compatible."),When_type_checking_take_into_account_null_and_undefined:ca(6699,3,"When_type_checking_take_into_account_null_and_undefined_6699","When type checking, take into account 'null' and 'undefined'."),Check_for_class_properties_that_are_declared_but_not_set_in_the_constructor:ca(6700,3,"Check_for_class_properties_that_are_declared_but_not_set_in_the_constructor_6700","Check for class properties that are declared but not set in the constructor."),Disable_emitting_declarations_that_have_internal_in_their_JSDoc_comments:ca(6701,3,"Disable_emitting_declarations_that_have_internal_in_their_JSDoc_comments_6701","Disable emitting declarations that have '@internal' in their JSDoc comments."),Disable_reporting_of_excess_property_errors_during_the_creation_of_object_literals:ca(6702,3,"Disable_reporting_of_excess_property_errors_during_the_creation_of_object_literals_6702","Disable reporting of excess property errors during the creation of object literals."),Suppress_noImplicitAny_errors_when_indexing_objects_that_lack_index_signatures:ca(6703,3,"Suppress_noImplicitAny_errors_when_indexing_objects_that_lack_index_signatures_6703","Suppress 'noImplicitAny' errors when indexing objects that lack index signatures."),Synchronously_call_callbacks_and_update_the_state_of_directory_watchers_on_platforms_that_don_t_support_recursive_watching_natively:ca(6704,3,"Synchronously_call_callbacks_and_update_the_state_of_directory_watchers_on_platforms_that_don_t_supp_6704","Synchronously call callbacks and update the state of directory watchers on platforms that don`t support recursive watching natively."),Set_the_JavaScript_language_version_for_emitted_JavaScript_and_include_compatible_library_declarations:ca(6705,3,"Set_the_JavaScript_language_version_for_emitted_JavaScript_and_include_compatible_library_declaratio_6705","Set the JavaScript language version for emitted JavaScript and include compatible library declarations."),Log_paths_used_during_the_moduleResolution_process:ca(6706,3,"Log_paths_used_during_the_moduleResolution_process_6706","Log paths used during the 'moduleResolution' process."),Specify_the_path_to_tsbuildinfo_incremental_compilation_file:ca(6707,3,"Specify_the_path_to_tsbuildinfo_incremental_compilation_file_6707","Specify the path to .tsbuildinfo incremental compilation file."),Specify_options_for_automatic_acquisition_of_declaration_files:ca(6709,3,"Specify_options_for_automatic_acquisition_of_declaration_files_6709","Specify options for automatic acquisition of declaration files."),Specify_multiple_folders_that_act_like_Slashnode_modules_Slash_types:ca(6710,3,"Specify_multiple_folders_that_act_like_Slashnode_modules_Slash_types_6710","Specify multiple folders that act like './node_modules/@types'."),Specify_type_package_names_to_be_included_without_being_referenced_in_a_source_file:ca(6711,3,"Specify_type_package_names_to_be_included_without_being_referenced_in_a_source_file_6711","Specify type package names to be included without being referenced in a source file."),Emit_ECMAScript_standard_compliant_class_fields:ca(6712,3,"Emit_ECMAScript_standard_compliant_class_fields_6712","Emit ECMAScript-standard-compliant class fields."),Enable_verbose_logging:ca(6713,3,"Enable_verbose_logging_6713","Enable verbose logging."),Specify_how_directories_are_watched_on_systems_that_lack_recursive_file_watching_functionality:ca(6714,3,"Specify_how_directories_are_watched_on_systems_that_lack_recursive_file_watching_functionality_6714","Specify how directories are watched on systems that lack recursive file-watching functionality."),Specify_how_the_TypeScript_watch_mode_works:ca(6715,3,"Specify_how_the_TypeScript_watch_mode_works_6715","Specify how the TypeScript watch mode works."),Require_undeclared_properties_from_index_signatures_to_use_element_accesses:ca(6717,3,"Require_undeclared_properties_from_index_signatures_to_use_element_accesses_6717","Require undeclared properties from index signatures to use element accesses."),Specify_emit_Slashchecking_behavior_for_imports_that_are_only_used_for_types:ca(6718,3,"Specify_emit_Slashchecking_behavior_for_imports_that_are_only_used_for_types_6718","Specify emit/checking behavior for imports that are only used for types."),Require_sufficient_annotation_on_exports_so_other_tools_can_trivially_generate_declaration_files:ca(6719,3,"Require_sufficient_annotation_on_exports_so_other_tools_can_trivially_generate_declaration_files_6719","Require sufficient annotation on exports so other tools can trivially generate declaration files."),Built_in_iterators_are_instantiated_with_a_TReturn_type_of_undefined_instead_of_any:ca(6720,3,"Built_in_iterators_are_instantiated_with_a_TReturn_type_of_undefined_instead_of_any_6720","Built-in iterators are instantiated with a 'TReturn' type of 'undefined' instead of 'any'."),Default_catch_clause_variables_as_unknown_instead_of_any:ca(6803,3,"Default_catch_clause_variables_as_unknown_instead_of_any_6803","Default catch clause variables as 'unknown' instead of 'any'."),Do_not_transform_or_elide_any_imports_or_exports_not_marked_as_type_only_ensuring_they_are_written_in_the_output_file_s_format_based_on_the_module_setting:ca(6804,3,"Do_not_transform_or_elide_any_imports_or_exports_not_marked_as_type_only_ensuring_they_are_written_i_6804","Do not transform or elide any imports or exports not marked as type-only, ensuring they are written in the output file's format based on the 'module' setting."),Disable_full_type_checking_only_critical_parse_and_emit_errors_will_be_reported:ca(6805,3,"Disable_full_type_checking_only_critical_parse_and_emit_errors_will_be_reported_6805","Disable full type checking (only critical parse and emit errors will be reported)."),Check_side_effect_imports:ca(6806,3,"Check_side_effect_imports_6806","Check side effect imports."),This_operation_can_be_simplified_This_shift_is_identical_to_0_1_2:ca(6807,1,"This_operation_can_be_simplified_This_shift_is_identical_to_0_1_2_6807","This operation can be simplified. This shift is identical to `{0} {1} {2}`."),one_of_Colon:ca(6900,3,"one_of_Colon_6900","one of:"),one_or_more_Colon:ca(6901,3,"one_or_more_Colon_6901","one or more:"),type_Colon:ca(6902,3,"type_Colon_6902","type:"),default_Colon:ca(6903,3,"default_Colon_6903","default:"),module_system_or_esModuleInterop:ca(6904,3,"module_system_or_esModuleInterop_6904",'module === "system" or esModuleInterop'),false_unless_strict_is_set:ca(6905,3,"false_unless_strict_is_set_6905","`false`, unless `strict` is set"),false_unless_composite_is_set:ca(6906,3,"false_unless_composite_is_set_6906","`false`, unless `composite` is set"),node_modules_bower_components_jspm_packages_plus_the_value_of_outDir_if_one_is_specified:ca(6907,3,"node_modules_bower_components_jspm_packages_plus_the_value_of_outDir_if_one_is_specified_6907",'`["node_modules", "bower_components", "jspm_packages"]`, plus the value of `outDir` if one is specified.'),if_files_is_specified_otherwise_Asterisk_Asterisk_Slash_Asterisk:ca(6908,3,"if_files_is_specified_otherwise_Asterisk_Asterisk_Slash_Asterisk_6908",'`[]` if `files` is specified, otherwise `["**/*"]`'),true_if_composite_false_otherwise:ca(6909,3,"true_if_composite_false_otherwise_6909","`true` if `composite`, `false` otherwise"),module_AMD_or_UMD_or_System_or_ES6_then_Classic_Otherwise_Node:ca(69010,3,"module_AMD_or_UMD_or_System_or_ES6_then_Classic_Otherwise_Node_69010","module === `AMD` or `UMD` or `System` or `ES6`, then `Classic`, Otherwise `Node`"),Computed_from_the_list_of_input_files:ca(6911,3,"Computed_from_the_list_of_input_files_6911","Computed from the list of input files"),Platform_specific:ca(6912,3,"Platform_specific_6912","Platform specific"),You_can_learn_about_all_of_the_compiler_options_at_0:ca(6913,3,"You_can_learn_about_all_of_the_compiler_options_at_0_6913","You can learn about all of the compiler options at {0}"),Including_watch_w_will_start_watching_the_current_project_for_the_file_changes_Once_set_you_can_config_watch_mode_with_Colon:ca(6914,3,"Including_watch_w_will_start_watching_the_current_project_for_the_file_changes_Once_set_you_can_conf_6914","Including --watch, -w will start watching the current project for the file changes. Once set, you can config watch mode with:"),Using_build_b_will_make_tsc_behave_more_like_a_build_orchestrator_than_a_compiler_This_is_used_to_trigger_building_composite_projects_which_you_can_learn_more_about_at_0:ca(6915,3,"Using_build_b_will_make_tsc_behave_more_like_a_build_orchestrator_than_a_compiler_This_is_used_to_tr_6915","Using --build, -b will make tsc behave more like a build orchestrator than a compiler. This is used to trigger building composite projects which you can learn more about at {0}"),COMMON_COMMANDS:ca(6916,3,"COMMON_COMMANDS_6916","COMMON COMMANDS"),ALL_COMPILER_OPTIONS:ca(6917,3,"ALL_COMPILER_OPTIONS_6917","ALL COMPILER OPTIONS"),WATCH_OPTIONS:ca(6918,3,"WATCH_OPTIONS_6918","WATCH OPTIONS"),BUILD_OPTIONS:ca(6919,3,"BUILD_OPTIONS_6919","BUILD OPTIONS"),COMMON_COMPILER_OPTIONS:ca(6920,3,"COMMON_COMPILER_OPTIONS_6920","COMMON COMPILER OPTIONS"),COMMAND_LINE_FLAGS:ca(6921,3,"COMMAND_LINE_FLAGS_6921","COMMAND LINE FLAGS"),tsc_Colon_The_TypeScript_Compiler:ca(6922,3,"tsc_Colon_The_TypeScript_Compiler_6922","tsc: The TypeScript Compiler"),Compiles_the_current_project_tsconfig_json_in_the_working_directory:ca(6923,3,"Compiles_the_current_project_tsconfig_json_in_the_working_directory_6923","Compiles the current project (tsconfig.json in the working directory.)"),Ignoring_tsconfig_json_compiles_the_specified_files_with_default_compiler_options:ca(6924,3,"Ignoring_tsconfig_json_compiles_the_specified_files_with_default_compiler_options_6924","Ignoring tsconfig.json, compiles the specified files with default compiler options."),Build_a_composite_project_in_the_working_directory:ca(6925,3,"Build_a_composite_project_in_the_working_directory_6925","Build a composite project in the working directory."),Creates_a_tsconfig_json_with_the_recommended_settings_in_the_working_directory:ca(6926,3,"Creates_a_tsconfig_json_with_the_recommended_settings_in_the_working_directory_6926","Creates a tsconfig.json with the recommended settings in the working directory."),Compiles_the_TypeScript_project_located_at_the_specified_path:ca(6927,3,"Compiles_the_TypeScript_project_located_at_the_specified_path_6927","Compiles the TypeScript project located at the specified path."),An_expanded_version_of_this_information_showing_all_possible_compiler_options:ca(6928,3,"An_expanded_version_of_this_information_showing_all_possible_compiler_options_6928","An expanded version of this information, showing all possible compiler options"),Compiles_the_current_project_with_additional_settings:ca(6929,3,"Compiles_the_current_project_with_additional_settings_6929","Compiles the current project, with additional settings."),true_for_ES2022_and_above_including_ESNext:ca(6930,3,"true_for_ES2022_and_above_including_ESNext_6930","`true` for ES2022 and above, including ESNext."),List_of_file_name_suffixes_to_search_when_resolving_a_module:ca(6931,1,"List_of_file_name_suffixes_to_search_when_resolving_a_module_6931","List of file name suffixes to search when resolving a module."),Variable_0_implicitly_has_an_1_type:ca(7005,1,"Variable_0_implicitly_has_an_1_type_7005","Variable '{0}' implicitly has an '{1}' type."),Parameter_0_implicitly_has_an_1_type:ca(7006,1,"Parameter_0_implicitly_has_an_1_type_7006","Parameter '{0}' implicitly has an '{1}' type."),Member_0_implicitly_has_an_1_type:ca(7008,1,"Member_0_implicitly_has_an_1_type_7008","Member '{0}' implicitly has an '{1}' type."),new_expression_whose_target_lacks_a_construct_signature_implicitly_has_an_any_type:ca(7009,1,"new_expression_whose_target_lacks_a_construct_signature_implicitly_has_an_any_type_7009","'new' expression, whose target lacks a construct signature, implicitly has an 'any' type."),_0_which_lacks_return_type_annotation_implicitly_has_an_1_return_type:ca(7010,1,"_0_which_lacks_return_type_annotation_implicitly_has_an_1_return_type_7010","'{0}', which lacks return-type annotation, implicitly has an '{1}' return type."),Function_expression_which_lacks_return_type_annotation_implicitly_has_an_0_return_type:ca(7011,1,"Function_expression_which_lacks_return_type_annotation_implicitly_has_an_0_return_type_7011","Function expression, which lacks return-type annotation, implicitly has an '{0}' return type."),This_overload_implicitly_returns_the_type_0_because_it_lacks_a_return_type_annotation:ca(7012,1,"This_overload_implicitly_returns_the_type_0_because_it_lacks_a_return_type_annotation_7012","This overload implicitly returns the type '{0}' because it lacks a return type annotation."),Construct_signature_which_lacks_return_type_annotation_implicitly_has_an_any_return_type:ca(7013,1,"Construct_signature_which_lacks_return_type_annotation_implicitly_has_an_any_return_type_7013","Construct signature, which lacks return-type annotation, implicitly has an 'any' return type."),Function_type_which_lacks_return_type_annotation_implicitly_has_an_0_return_type:ca(7014,1,"Function_type_which_lacks_return_type_annotation_implicitly_has_an_0_return_type_7014","Function type, which lacks return-type annotation, implicitly has an '{0}' return type."),Element_implicitly_has_an_any_type_because_index_expression_is_not_of_type_number:ca(7015,1,"Element_implicitly_has_an_any_type_because_index_expression_is_not_of_type_number_7015","Element implicitly has an 'any' type because index expression is not of type 'number'."),Could_not_find_a_declaration_file_for_module_0_1_implicitly_has_an_any_type:ca(7016,1,"Could_not_find_a_declaration_file_for_module_0_1_implicitly_has_an_any_type_7016","Could not find a declaration file for module '{0}'. '{1}' implicitly has an 'any' type."),Element_implicitly_has_an_any_type_because_type_0_has_no_index_signature:ca(7017,1,"Element_implicitly_has_an_any_type_because_type_0_has_no_index_signature_7017","Element implicitly has an 'any' type because type '{0}' has no index signature."),Object_literal_s_property_0_implicitly_has_an_1_type:ca(7018,1,"Object_literal_s_property_0_implicitly_has_an_1_type_7018","Object literal's property '{0}' implicitly has an '{1}' type."),Rest_parameter_0_implicitly_has_an_any_type:ca(7019,1,"Rest_parameter_0_implicitly_has_an_any_type_7019","Rest parameter '{0}' implicitly has an 'any[]' type."),Call_signature_which_lacks_return_type_annotation_implicitly_has_an_any_return_type:ca(7020,1,"Call_signature_which_lacks_return_type_annotation_implicitly_has_an_any_return_type_7020","Call signature, which lacks return-type annotation, implicitly has an 'any' return type."),_0_implicitly_has_type_any_because_it_does_not_have_a_type_annotation_and_is_referenced_directly_or_indirectly_in_its_own_initializer:ca(7022,1,"_0_implicitly_has_type_any_because_it_does_not_have_a_type_annotation_and_is_referenced_directly_or__7022","'{0}' implicitly has type 'any' because it does not have a type annotation and is referenced directly or indirectly in its own initializer."),_0_implicitly_has_return_type_any_because_it_does_not_have_a_return_type_annotation_and_is_referenced_directly_or_indirectly_in_one_of_its_return_expressions:ca(7023,1,"_0_implicitly_has_return_type_any_because_it_does_not_have_a_return_type_annotation_and_is_reference_7023","'{0}' implicitly has return type 'any' because it does not have a return type annotation and is referenced directly or indirectly in one of its return expressions."),Function_implicitly_has_return_type_any_because_it_does_not_have_a_return_type_annotation_and_is_referenced_directly_or_indirectly_in_one_of_its_return_expressions:ca(7024,1,"Function_implicitly_has_return_type_any_because_it_does_not_have_a_return_type_annotation_and_is_ref_7024","Function implicitly has return type 'any' because it does not have a return type annotation and is referenced directly or indirectly in one of its return expressions."),Generator_implicitly_has_yield_type_0_Consider_supplying_a_return_type_annotation:ca(7025,1,"Generator_implicitly_has_yield_type_0_Consider_supplying_a_return_type_annotation_7025","Generator implicitly has yield type '{0}'. Consider supplying a return type annotation."),JSX_element_implicitly_has_type_any_because_no_interface_JSX_0_exists:ca(7026,1,"JSX_element_implicitly_has_type_any_because_no_interface_JSX_0_exists_7026","JSX element implicitly has type 'any' because no interface 'JSX.{0}' exists."),Unreachable_code_detected:ca(7027,1,"Unreachable_code_detected_7027","Unreachable code detected.",!0),Unused_label:ca(7028,1,"Unused_label_7028","Unused label.",!0),Fallthrough_case_in_switch:ca(7029,1,"Fallthrough_case_in_switch_7029","Fallthrough case in switch."),Not_all_code_paths_return_a_value:ca(7030,1,"Not_all_code_paths_return_a_value_7030","Not all code paths return a value."),Binding_element_0_implicitly_has_an_1_type:ca(7031,1,"Binding_element_0_implicitly_has_an_1_type_7031","Binding element '{0}' implicitly has an '{1}' type."),Property_0_implicitly_has_type_any_because_its_set_accessor_lacks_a_parameter_type_annotation:ca(7032,1,"Property_0_implicitly_has_type_any_because_its_set_accessor_lacks_a_parameter_type_annotation_7032","Property '{0}' implicitly has type 'any', because its set accessor lacks a parameter type annotation."),Property_0_implicitly_has_type_any_because_its_get_accessor_lacks_a_return_type_annotation:ca(7033,1,"Property_0_implicitly_has_type_any_because_its_get_accessor_lacks_a_return_type_annotation_7033","Property '{0}' implicitly has type 'any', because its get accessor lacks a return type annotation."),Variable_0_implicitly_has_type_1_in_some_locations_where_its_type_cannot_be_determined:ca(7034,1,"Variable_0_implicitly_has_type_1_in_some_locations_where_its_type_cannot_be_determined_7034","Variable '{0}' implicitly has type '{1}' in some locations where its type cannot be determined."),Try_npm_i_save_dev_types_Slash_1_if_it_exists_or_add_a_new_declaration_d_ts_file_containing_declare_module_0:ca(7035,1,"Try_npm_i_save_dev_types_Slash_1_if_it_exists_or_add_a_new_declaration_d_ts_file_containing_declare__7035","Try `npm i --save-dev @types/{1}` if it exists or add a new declaration (.d.ts) file containing `declare module '{0}';`"),Dynamic_import_s_specifier_must_be_of_type_string_but_here_has_type_0:ca(7036,1,"Dynamic_import_s_specifier_must_be_of_type_string_but_here_has_type_0_7036","Dynamic import's specifier must be of type 'string', but here has type '{0}'."),Enables_emit_interoperability_between_CommonJS_and_ES_Modules_via_creation_of_namespace_objects_for_all_imports_Implies_allowSyntheticDefaultImports:ca(7037,3,"Enables_emit_interoperability_between_CommonJS_and_ES_Modules_via_creation_of_namespace_objects_for__7037","Enables emit interoperability between CommonJS and ES Modules via creation of namespace objects for all imports. Implies 'allowSyntheticDefaultImports'."),Type_originates_at_this_import_A_namespace_style_import_cannot_be_called_or_constructed_and_will_cause_a_failure_at_runtime_Consider_using_a_default_import_or_import_require_here_instead:ca(7038,3,"Type_originates_at_this_import_A_namespace_style_import_cannot_be_called_or_constructed_and_will_cau_7038","Type originates at this import. A namespace-style import cannot be called or constructed, and will cause a failure at runtime. Consider using a default import or import require here instead."),Mapped_object_type_implicitly_has_an_any_template_type:ca(7039,1,"Mapped_object_type_implicitly_has_an_any_template_type_7039","Mapped object type implicitly has an 'any' template type."),If_the_0_package_actually_exposes_this_module_consider_sending_a_pull_request_to_amend_https_Colon_Slash_Slashgithub_com_SlashDefinitelyTyped_SlashDefinitelyTyped_Slashtree_Slashmaster_Slashtypes_Slash_1:ca(7040,1,"If_the_0_package_actually_exposes_this_module_consider_sending_a_pull_request_to_amend_https_Colon_S_7040","If the '{0}' package actually exposes this module, consider sending a pull request to amend 'https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/{1}'"),The_containing_arrow_function_captures_the_global_value_of_this:ca(7041,1,"The_containing_arrow_function_captures_the_global_value_of_this_7041","The containing arrow function captures the global value of 'this'."),Module_0_was_resolved_to_1_but_resolveJsonModule_is_not_used:ca(7042,1,"Module_0_was_resolved_to_1_but_resolveJsonModule_is_not_used_7042","Module '{0}' was resolved to '{1}', but '--resolveJsonModule' is not used."),Variable_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage:ca(7043,2,"Variable_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage_7043","Variable '{0}' implicitly has an '{1}' type, but a better type may be inferred from usage."),Parameter_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage:ca(7044,2,"Parameter_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage_7044","Parameter '{0}' implicitly has an '{1}' type, but a better type may be inferred from usage."),Member_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage:ca(7045,2,"Member_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage_7045","Member '{0}' implicitly has an '{1}' type, but a better type may be inferred from usage."),Variable_0_implicitly_has_type_1_in_some_locations_but_a_better_type_may_be_inferred_from_usage:ca(7046,2,"Variable_0_implicitly_has_type_1_in_some_locations_but_a_better_type_may_be_inferred_from_usage_7046","Variable '{0}' implicitly has type '{1}' in some locations, but a better type may be inferred from usage."),Rest_parameter_0_implicitly_has_an_any_type_but_a_better_type_may_be_inferred_from_usage:ca(7047,2,"Rest_parameter_0_implicitly_has_an_any_type_but_a_better_type_may_be_inferred_from_usage_7047","Rest parameter '{0}' implicitly has an 'any[]' type, but a better type may be inferred from usage."),Property_0_implicitly_has_type_any_but_a_better_type_for_its_get_accessor_may_be_inferred_from_usage:ca(7048,2,"Property_0_implicitly_has_type_any_but_a_better_type_for_its_get_accessor_may_be_inferred_from_usage_7048","Property '{0}' implicitly has type 'any', but a better type for its get accessor may be inferred from usage."),Property_0_implicitly_has_type_any_but_a_better_type_for_its_set_accessor_may_be_inferred_from_usage:ca(7049,2,"Property_0_implicitly_has_type_any_but_a_better_type_for_its_set_accessor_may_be_inferred_from_usage_7049","Property '{0}' implicitly has type 'any', but a better type for its set accessor may be inferred from usage."),_0_implicitly_has_an_1_return_type_but_a_better_type_may_be_inferred_from_usage:ca(7050,2,"_0_implicitly_has_an_1_return_type_but_a_better_type_may_be_inferred_from_usage_7050","'{0}' implicitly has an '{1}' return type, but a better type may be inferred from usage."),Parameter_has_a_name_but_no_type_Did_you_mean_0_Colon_1:ca(7051,1,"Parameter_has_a_name_but_no_type_Did_you_mean_0_Colon_1_7051","Parameter has a name but no type. Did you mean '{0}: {1}'?"),Element_implicitly_has_an_any_type_because_type_0_has_no_index_signature_Did_you_mean_to_call_1:ca(7052,1,"Element_implicitly_has_an_any_type_because_type_0_has_no_index_signature_Did_you_mean_to_call_1_7052","Element implicitly has an 'any' type because type '{0}' has no index signature. Did you mean to call '{1}'?"),Element_implicitly_has_an_any_type_because_expression_of_type_0_can_t_be_used_to_index_type_1:ca(7053,1,"Element_implicitly_has_an_any_type_because_expression_of_type_0_can_t_be_used_to_index_type_1_7053","Element implicitly has an 'any' type because expression of type '{0}' can't be used to index type '{1}'."),No_index_signature_with_a_parameter_of_type_0_was_found_on_type_1:ca(7054,1,"No_index_signature_with_a_parameter_of_type_0_was_found_on_type_1_7054","No index signature with a parameter of type '{0}' was found on type '{1}'."),_0_which_lacks_return_type_annotation_implicitly_has_an_1_yield_type:ca(7055,1,"_0_which_lacks_return_type_annotation_implicitly_has_an_1_yield_type_7055","'{0}', which lacks return-type annotation, implicitly has an '{1}' yield type."),The_inferred_type_of_this_node_exceeds_the_maximum_length_the_compiler_will_serialize_An_explicit_type_annotation_is_needed:ca(7056,1,"The_inferred_type_of_this_node_exceeds_the_maximum_length_the_compiler_will_serialize_An_explicit_ty_7056","The inferred type of this node exceeds the maximum length the compiler will serialize. An explicit type annotation is needed."),yield_expression_implicitly_results_in_an_any_type_because_its_containing_generator_lacks_a_return_type_annotation:ca(7057,1,"yield_expression_implicitly_results_in_an_any_type_because_its_containing_generator_lacks_a_return_t_7057","'yield' expression implicitly results in an 'any' type because its containing generator lacks a return-type annotation."),If_the_0_package_actually_exposes_this_module_try_adding_a_new_declaration_d_ts_file_containing_declare_module_1:ca(7058,1,"If_the_0_package_actually_exposes_this_module_try_adding_a_new_declaration_d_ts_file_containing_decl_7058","If the '{0}' package actually exposes this module, try adding a new declaration (.d.ts) file containing `declare module '{1}';`"),This_syntax_is_reserved_in_files_with_the_mts_or_cts_extension_Use_an_as_expression_instead:ca(7059,1,"This_syntax_is_reserved_in_files_with_the_mts_or_cts_extension_Use_an_as_expression_instead_7059","This syntax is reserved in files with the .mts or .cts extension. Use an `as` expression instead."),This_syntax_is_reserved_in_files_with_the_mts_or_cts_extension_Add_a_trailing_comma_or_explicit_constraint:ca(7060,1,"This_syntax_is_reserved_in_files_with_the_mts_or_cts_extension_Add_a_trailing_comma_or_explicit_cons_7060","This syntax is reserved in files with the .mts or .cts extension. Add a trailing comma or explicit constraint."),A_mapped_type_may_not_declare_properties_or_methods:ca(7061,1,"A_mapped_type_may_not_declare_properties_or_methods_7061","A mapped type may not declare properties or methods."),You_cannot_rename_this_element:ca(8e3,1,"You_cannot_rename_this_element_8000","You cannot rename this element."),You_cannot_rename_elements_that_are_defined_in_the_standard_TypeScript_library:ca(8001,1,"You_cannot_rename_elements_that_are_defined_in_the_standard_TypeScript_library_8001","You cannot rename elements that are defined in the standard TypeScript library."),import_can_only_be_used_in_TypeScript_files:ca(8002,1,"import_can_only_be_used_in_TypeScript_files_8002","'import ... =' can only be used in TypeScript files."),export_can_only_be_used_in_TypeScript_files:ca(8003,1,"export_can_only_be_used_in_TypeScript_files_8003","'export =' can only be used in TypeScript files."),Type_parameter_declarations_can_only_be_used_in_TypeScript_files:ca(8004,1,"Type_parameter_declarations_can_only_be_used_in_TypeScript_files_8004","Type parameter declarations can only be used in TypeScript files."),implements_clauses_can_only_be_used_in_TypeScript_files:ca(8005,1,"implements_clauses_can_only_be_used_in_TypeScript_files_8005","'implements' clauses can only be used in TypeScript files."),_0_declarations_can_only_be_used_in_TypeScript_files:ca(8006,1,"_0_declarations_can_only_be_used_in_TypeScript_files_8006","'{0}' declarations can only be used in TypeScript files."),Type_aliases_can_only_be_used_in_TypeScript_files:ca(8008,1,"Type_aliases_can_only_be_used_in_TypeScript_files_8008","Type aliases can only be used in TypeScript files."),The_0_modifier_can_only_be_used_in_TypeScript_files:ca(8009,1,"The_0_modifier_can_only_be_used_in_TypeScript_files_8009","The '{0}' modifier can only be used in TypeScript files."),Type_annotations_can_only_be_used_in_TypeScript_files:ca(8010,1,"Type_annotations_can_only_be_used_in_TypeScript_files_8010","Type annotations can only be used in TypeScript files."),Type_arguments_can_only_be_used_in_TypeScript_files:ca(8011,1,"Type_arguments_can_only_be_used_in_TypeScript_files_8011","Type arguments can only be used in TypeScript files."),Parameter_modifiers_can_only_be_used_in_TypeScript_files:ca(8012,1,"Parameter_modifiers_can_only_be_used_in_TypeScript_files_8012","Parameter modifiers can only be used in TypeScript files."),Non_null_assertions_can_only_be_used_in_TypeScript_files:ca(8013,1,"Non_null_assertions_can_only_be_used_in_TypeScript_files_8013","Non-null assertions can only be used in TypeScript files."),Type_assertion_expressions_can_only_be_used_in_TypeScript_files:ca(8016,1,"Type_assertion_expressions_can_only_be_used_in_TypeScript_files_8016","Type assertion expressions can only be used in TypeScript files."),Signature_declarations_can_only_be_used_in_TypeScript_files:ca(8017,1,"Signature_declarations_can_only_be_used_in_TypeScript_files_8017","Signature declarations can only be used in TypeScript files."),Report_errors_in_js_files:ca(8019,3,"Report_errors_in_js_files_8019","Report errors in .js files."),JSDoc_types_can_only_be_used_inside_documentation_comments:ca(8020,1,"JSDoc_types_can_only_be_used_inside_documentation_comments_8020","JSDoc types can only be used inside documentation comments."),JSDoc_typedef_tag_should_either_have_a_type_annotation_or_be_followed_by_property_or_member_tags:ca(8021,1,"JSDoc_typedef_tag_should_either_have_a_type_annotation_or_be_followed_by_property_or_member_tags_8021","JSDoc '@typedef' tag should either have a type annotation or be followed by '@property' or '@member' tags."),JSDoc_0_is_not_attached_to_a_class:ca(8022,1,"JSDoc_0_is_not_attached_to_a_class_8022","JSDoc '@{0}' is not attached to a class."),JSDoc_0_1_does_not_match_the_extends_2_clause:ca(8023,1,"JSDoc_0_1_does_not_match_the_extends_2_clause_8023","JSDoc '@{0} {1}' does not match the 'extends {2}' clause."),JSDoc_param_tag_has_name_0_but_there_is_no_parameter_with_that_name:ca(8024,1,"JSDoc_param_tag_has_name_0_but_there_is_no_parameter_with_that_name_8024","JSDoc '@param' tag has name '{0}', but there is no parameter with that name."),Class_declarations_cannot_have_more_than_one_augments_or_extends_tag:ca(8025,1,"Class_declarations_cannot_have_more_than_one_augments_or_extends_tag_8025","Class declarations cannot have more than one '@augments' or '@extends' tag."),Expected_0_type_arguments_provide_these_with_an_extends_tag:ca(8026,1,"Expected_0_type_arguments_provide_these_with_an_extends_tag_8026","Expected {0} type arguments; provide these with an '@extends' tag."),Expected_0_1_type_arguments_provide_these_with_an_extends_tag:ca(8027,1,"Expected_0_1_type_arguments_provide_these_with_an_extends_tag_8027","Expected {0}-{1} type arguments; provide these with an '@extends' tag."),JSDoc_may_only_appear_in_the_last_parameter_of_a_signature:ca(8028,1,"JSDoc_may_only_appear_in_the_last_parameter_of_a_signature_8028","JSDoc '...' may only appear in the last parameter of a signature."),JSDoc_param_tag_has_name_0_but_there_is_no_parameter_with_that_name_It_would_match_arguments_if_it_had_an_array_type:ca(8029,1,"JSDoc_param_tag_has_name_0_but_there_is_no_parameter_with_that_name_It_would_match_arguments_if_it_h_8029","JSDoc '@param' tag has name '{0}', but there is no parameter with that name. It would match 'arguments' if it had an array type."),The_type_of_a_function_declaration_must_match_the_function_s_signature:ca(8030,1,"The_type_of_a_function_declaration_must_match_the_function_s_signature_8030","The type of a function declaration must match the function's signature."),You_cannot_rename_a_module_via_a_global_import:ca(8031,1,"You_cannot_rename_a_module_via_a_global_import_8031","You cannot rename a module via a global import."),Qualified_name_0_is_not_allowed_without_a_leading_param_object_1:ca(8032,1,"Qualified_name_0_is_not_allowed_without_a_leading_param_object_1_8032","Qualified name '{0}' is not allowed without a leading '@param {object} {1}'."),A_JSDoc_typedef_comment_may_not_contain_multiple_type_tags:ca(8033,1,"A_JSDoc_typedef_comment_may_not_contain_multiple_type_tags_8033","A JSDoc '@typedef' comment may not contain multiple '@type' tags."),The_tag_was_first_specified_here:ca(8034,1,"The_tag_was_first_specified_here_8034","The tag was first specified here."),You_cannot_rename_elements_that_are_defined_in_a_node_modules_folder:ca(8035,1,"You_cannot_rename_elements_that_are_defined_in_a_node_modules_folder_8035","You cannot rename elements that are defined in a 'node_modules' folder."),You_cannot_rename_elements_that_are_defined_in_another_node_modules_folder:ca(8036,1,"You_cannot_rename_elements_that_are_defined_in_another_node_modules_folder_8036","You cannot rename elements that are defined in another 'node_modules' folder."),Type_satisfaction_expressions_can_only_be_used_in_TypeScript_files:ca(8037,1,"Type_satisfaction_expressions_can_only_be_used_in_TypeScript_files_8037","Type satisfaction expressions can only be used in TypeScript files."),Decorators_may_not_appear_after_export_or_export_default_if_they_also_appear_before_export:ca(8038,1,"Decorators_may_not_appear_after_export_or_export_default_if_they_also_appear_before_export_8038","Decorators may not appear after 'export' or 'export default' if they also appear before 'export'."),A_JSDoc_template_tag_may_not_follow_a_typedef_callback_or_overload_tag:ca(8039,1,"A_JSDoc_template_tag_may_not_follow_a_typedef_callback_or_overload_tag_8039","A JSDoc '@template' tag may not follow a '@typedef', '@callback', or '@overload' tag"),Declaration_emit_for_this_file_requires_using_private_name_0_An_explicit_type_annotation_may_unblock_declaration_emit:ca(9005,1,"Declaration_emit_for_this_file_requires_using_private_name_0_An_explicit_type_annotation_may_unblock_9005","Declaration emit for this file requires using private name '{0}'. An explicit type annotation may unblock declaration emit."),Declaration_emit_for_this_file_requires_using_private_name_0_from_module_1_An_explicit_type_annotation_may_unblock_declaration_emit:ca(9006,1,"Declaration_emit_for_this_file_requires_using_private_name_0_from_module_1_An_explicit_type_annotati_9006","Declaration emit for this file requires using private name '{0}' from module '{1}'. An explicit type annotation may unblock declaration emit."),Function_must_have_an_explicit_return_type_annotation_with_isolatedDeclarations:ca(9007,1,"Function_must_have_an_explicit_return_type_annotation_with_isolatedDeclarations_9007","Function must have an explicit return type annotation with --isolatedDeclarations."),Method_must_have_an_explicit_return_type_annotation_with_isolatedDeclarations:ca(9008,1,"Method_must_have_an_explicit_return_type_annotation_with_isolatedDeclarations_9008","Method must have an explicit return type annotation with --isolatedDeclarations."),At_least_one_accessor_must_have_an_explicit_type_annotation_with_isolatedDeclarations:ca(9009,1,"At_least_one_accessor_must_have_an_explicit_type_annotation_with_isolatedDeclarations_9009","At least one accessor must have an explicit type annotation with --isolatedDeclarations."),Variable_must_have_an_explicit_type_annotation_with_isolatedDeclarations:ca(9010,1,"Variable_must_have_an_explicit_type_annotation_with_isolatedDeclarations_9010","Variable must have an explicit type annotation with --isolatedDeclarations."),Parameter_must_have_an_explicit_type_annotation_with_isolatedDeclarations:ca(9011,1,"Parameter_must_have_an_explicit_type_annotation_with_isolatedDeclarations_9011","Parameter must have an explicit type annotation with --isolatedDeclarations."),Property_must_have_an_explicit_type_annotation_with_isolatedDeclarations:ca(9012,1,"Property_must_have_an_explicit_type_annotation_with_isolatedDeclarations_9012","Property must have an explicit type annotation with --isolatedDeclarations."),Expression_type_can_t_be_inferred_with_isolatedDeclarations:ca(9013,1,"Expression_type_can_t_be_inferred_with_isolatedDeclarations_9013","Expression type can't be inferred with --isolatedDeclarations."),Computed_properties_must_be_number_or_string_literals_variables_or_dotted_expressions_with_isolatedDeclarations:ca(9014,1,"Computed_properties_must_be_number_or_string_literals_variables_or_dotted_expressions_with_isolatedD_9014","Computed properties must be number or string literals, variables or dotted expressions with --isolatedDeclarations."),Objects_that_contain_spread_assignments_can_t_be_inferred_with_isolatedDeclarations:ca(9015,1,"Objects_that_contain_spread_assignments_can_t_be_inferred_with_isolatedDeclarations_9015","Objects that contain spread assignments can't be inferred with --isolatedDeclarations."),Objects_that_contain_shorthand_properties_can_t_be_inferred_with_isolatedDeclarations:ca(9016,1,"Objects_that_contain_shorthand_properties_can_t_be_inferred_with_isolatedDeclarations_9016","Objects that contain shorthand properties can't be inferred with --isolatedDeclarations."),Only_const_arrays_can_be_inferred_with_isolatedDeclarations:ca(9017,1,"Only_const_arrays_can_be_inferred_with_isolatedDeclarations_9017","Only const arrays can be inferred with --isolatedDeclarations."),Arrays_with_spread_elements_can_t_inferred_with_isolatedDeclarations:ca(9018,1,"Arrays_with_spread_elements_can_t_inferred_with_isolatedDeclarations_9018","Arrays with spread elements can't inferred with --isolatedDeclarations."),Binding_elements_can_t_be_exported_directly_with_isolatedDeclarations:ca(9019,1,"Binding_elements_can_t_be_exported_directly_with_isolatedDeclarations_9019","Binding elements can't be exported directly with --isolatedDeclarations."),Enum_member_initializers_must_be_computable_without_references_to_external_symbols_with_isolatedDeclarations:ca(9020,1,"Enum_member_initializers_must_be_computable_without_references_to_external_symbols_with_isolatedDecl_9020","Enum member initializers must be computable without references to external symbols with --isolatedDeclarations."),Extends_clause_can_t_contain_an_expression_with_isolatedDeclarations:ca(9021,1,"Extends_clause_can_t_contain_an_expression_with_isolatedDeclarations_9021","Extends clause can't contain an expression with --isolatedDeclarations."),Inference_from_class_expressions_is_not_supported_with_isolatedDeclarations:ca(9022,1,"Inference_from_class_expressions_is_not_supported_with_isolatedDeclarations_9022","Inference from class expressions is not supported with --isolatedDeclarations."),Assigning_properties_to_functions_without_declaring_them_is_not_supported_with_isolatedDeclarations_Add_an_explicit_declaration_for_the_properties_assigned_to_this_function:ca(9023,1,"Assigning_properties_to_functions_without_declaring_them_is_not_supported_with_isolatedDeclarations__9023","Assigning properties to functions without declaring them is not supported with --isolatedDeclarations. Add an explicit declaration for the properties assigned to this function."),Declaration_emit_for_this_parameter_requires_implicitly_adding_undefined_to_its_type_This_is_not_supported_with_isolatedDeclarations:ca(9025,1,"Declaration_emit_for_this_parameter_requires_implicitly_adding_undefined_to_its_type_This_is_not_sup_9025","Declaration emit for this parameter requires implicitly adding undefined to its type. This is not supported with --isolatedDeclarations."),Declaration_emit_for_this_file_requires_preserving_this_import_for_augmentations_This_is_not_supported_with_isolatedDeclarations:ca(9026,1,"Declaration_emit_for_this_file_requires_preserving_this_import_for_augmentations_This_is_not_support_9026","Declaration emit for this file requires preserving this import for augmentations. This is not supported with --isolatedDeclarations."),Add_a_type_annotation_to_the_variable_0:ca(9027,1,"Add_a_type_annotation_to_the_variable_0_9027","Add a type annotation to the variable {0}."),Add_a_type_annotation_to_the_parameter_0:ca(9028,1,"Add_a_type_annotation_to_the_parameter_0_9028","Add a type annotation to the parameter {0}."),Add_a_type_annotation_to_the_property_0:ca(9029,1,"Add_a_type_annotation_to_the_property_0_9029","Add a type annotation to the property {0}."),Add_a_return_type_to_the_function_expression:ca(9030,1,"Add_a_return_type_to_the_function_expression_9030","Add a return type to the function expression."),Add_a_return_type_to_the_function_declaration:ca(9031,1,"Add_a_return_type_to_the_function_declaration_9031","Add a return type to the function declaration."),Add_a_return_type_to_the_get_accessor_declaration:ca(9032,1,"Add_a_return_type_to_the_get_accessor_declaration_9032","Add a return type to the get accessor declaration."),Add_a_type_to_parameter_of_the_set_accessor_declaration:ca(9033,1,"Add_a_type_to_parameter_of_the_set_accessor_declaration_9033","Add a type to parameter of the set accessor declaration."),Add_a_return_type_to_the_method:ca(9034,1,"Add_a_return_type_to_the_method_9034","Add a return type to the method"),Add_satisfies_and_a_type_assertion_to_this_expression_satisfies_T_as_T_to_make_the_type_explicit:ca(9035,1,"Add_satisfies_and_a_type_assertion_to_this_expression_satisfies_T_as_T_to_make_the_type_explicit_9035","Add satisfies and a type assertion to this expression (satisfies T as T) to make the type explicit."),Move_the_expression_in_default_export_to_a_variable_and_add_a_type_annotation_to_it:ca(9036,1,"Move_the_expression_in_default_export_to_a_variable_and_add_a_type_annotation_to_it_9036","Move the expression in default export to a variable and add a type annotation to it."),Default_exports_can_t_be_inferred_with_isolatedDeclarations:ca(9037,1,"Default_exports_can_t_be_inferred_with_isolatedDeclarations_9037","Default exports can't be inferred with --isolatedDeclarations."),Computed_property_names_on_class_or_object_literals_cannot_be_inferred_with_isolatedDeclarations:ca(9038,1,"Computed_property_names_on_class_or_object_literals_cannot_be_inferred_with_isolatedDeclarations_9038","Computed property names on class or object literals cannot be inferred with --isolatedDeclarations."),Type_containing_private_name_0_can_t_be_used_with_isolatedDeclarations:ca(9039,1,"Type_containing_private_name_0_can_t_be_used_with_isolatedDeclarations_9039","Type containing private name '{0}' can't be used with --isolatedDeclarations."),JSX_attributes_must_only_be_assigned_a_non_empty_expression:ca(17e3,1,"JSX_attributes_must_only_be_assigned_a_non_empty_expression_17000","JSX attributes must only be assigned a non-empty 'expression'."),JSX_elements_cannot_have_multiple_attributes_with_the_same_name:ca(17001,1,"JSX_elements_cannot_have_multiple_attributes_with_the_same_name_17001","JSX elements cannot have multiple attributes with the same name."),Expected_corresponding_JSX_closing_tag_for_0:ca(17002,1,"Expected_corresponding_JSX_closing_tag_for_0_17002","Expected corresponding JSX closing tag for '{0}'."),Cannot_use_JSX_unless_the_jsx_flag_is_provided:ca(17004,1,"Cannot_use_JSX_unless_the_jsx_flag_is_provided_17004","Cannot use JSX unless the '--jsx' flag is provided."),A_constructor_cannot_contain_a_super_call_when_its_class_extends_null:ca(17005,1,"A_constructor_cannot_contain_a_super_call_when_its_class_extends_null_17005","A constructor cannot contain a 'super' call when its class extends 'null'."),An_unary_expression_with_the_0_operator_is_not_allowed_in_the_left_hand_side_of_an_exponentiation_expression_Consider_enclosing_the_expression_in_parentheses:ca(17006,1,"An_unary_expression_with_the_0_operator_is_not_allowed_in_the_left_hand_side_of_an_exponentiation_ex_17006","An unary expression with the '{0}' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses."),A_type_assertion_expression_is_not_allowed_in_the_left_hand_side_of_an_exponentiation_expression_Consider_enclosing_the_expression_in_parentheses:ca(17007,1,"A_type_assertion_expression_is_not_allowed_in_the_left_hand_side_of_an_exponentiation_expression_Con_17007","A type assertion expression is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses."),JSX_element_0_has_no_corresponding_closing_tag:ca(17008,1,"JSX_element_0_has_no_corresponding_closing_tag_17008","JSX element '{0}' has no corresponding closing tag."),super_must_be_called_before_accessing_this_in_the_constructor_of_a_derived_class:ca(17009,1,"super_must_be_called_before_accessing_this_in_the_constructor_of_a_derived_class_17009","'super' must be called before accessing 'this' in the constructor of a derived class."),Unknown_type_acquisition_option_0:ca(17010,1,"Unknown_type_acquisition_option_0_17010","Unknown type acquisition option '{0}'."),super_must_be_called_before_accessing_a_property_of_super_in_the_constructor_of_a_derived_class:ca(17011,1,"super_must_be_called_before_accessing_a_property_of_super_in_the_constructor_of_a_derived_class_17011","'super' must be called before accessing a property of 'super' in the constructor of a derived class."),_0_is_not_a_valid_meta_property_for_keyword_1_Did_you_mean_2:ca(17012,1,"_0_is_not_a_valid_meta_property_for_keyword_1_Did_you_mean_2_17012","'{0}' is not a valid meta-property for keyword '{1}'. Did you mean '{2}'?"),Meta_property_0_is_only_allowed_in_the_body_of_a_function_declaration_function_expression_or_constructor:ca(17013,1,"Meta_property_0_is_only_allowed_in_the_body_of_a_function_declaration_function_expression_or_constru_17013","Meta-property '{0}' is only allowed in the body of a function declaration, function expression, or constructor."),JSX_fragment_has_no_corresponding_closing_tag:ca(17014,1,"JSX_fragment_has_no_corresponding_closing_tag_17014","JSX fragment has no corresponding closing tag."),Expected_corresponding_closing_tag_for_JSX_fragment:ca(17015,1,"Expected_corresponding_closing_tag_for_JSX_fragment_17015","Expected corresponding closing tag for JSX fragment."),The_jsxFragmentFactory_compiler_option_must_be_provided_to_use_JSX_fragments_with_the_jsxFactory_compiler_option:ca(17016,1,"The_jsxFragmentFactory_compiler_option_must_be_provided_to_use_JSX_fragments_with_the_jsxFactory_com_17016","The 'jsxFragmentFactory' compiler option must be provided to use JSX fragments with the 'jsxFactory' compiler option."),An_jsxFrag_pragma_is_required_when_using_an_jsx_pragma_with_JSX_fragments:ca(17017,1,"An_jsxFrag_pragma_is_required_when_using_an_jsx_pragma_with_JSX_fragments_17017","An @jsxFrag pragma is required when using an @jsx pragma with JSX fragments."),Unknown_type_acquisition_option_0_Did_you_mean_1:ca(17018,1,"Unknown_type_acquisition_option_0_Did_you_mean_1_17018","Unknown type acquisition option '{0}'. Did you mean '{1}'?"),_0_at_the_end_of_a_type_is_not_valid_TypeScript_syntax_Did_you_mean_to_write_1:ca(17019,1,"_0_at_the_end_of_a_type_is_not_valid_TypeScript_syntax_Did_you_mean_to_write_1_17019","'{0}' at the end of a type is not valid TypeScript syntax. Did you mean to write '{1}'?"),_0_at_the_start_of_a_type_is_not_valid_TypeScript_syntax_Did_you_mean_to_write_1:ca(17020,1,"_0_at_the_start_of_a_type_is_not_valid_TypeScript_syntax_Did_you_mean_to_write_1_17020","'{0}' at the start of a type is not valid TypeScript syntax. Did you mean to write '{1}'?"),Unicode_escape_sequence_cannot_appear_here:ca(17021,1,"Unicode_escape_sequence_cannot_appear_here_17021","Unicode escape sequence cannot appear here."),Circularity_detected_while_resolving_configuration_Colon_0:ca(18e3,1,"Circularity_detected_while_resolving_configuration_Colon_0_18000","Circularity detected while resolving configuration: {0}"),The_files_list_in_config_file_0_is_empty:ca(18002,1,"The_files_list_in_config_file_0_is_empty_18002","The 'files' list in config file '{0}' is empty."),No_inputs_were_found_in_config_file_0_Specified_include_paths_were_1_and_exclude_paths_were_2:ca(18003,1,"No_inputs_were_found_in_config_file_0_Specified_include_paths_were_1_and_exclude_paths_were_2_18003","No inputs were found in config file '{0}'. Specified 'include' paths were '{1}' and 'exclude' paths were '{2}'."),File_is_a_CommonJS_module_it_may_be_converted_to_an_ES_module:ca(80001,2,"File_is_a_CommonJS_module_it_may_be_converted_to_an_ES_module_80001","File is a CommonJS module; it may be converted to an ES module."),This_constructor_function_may_be_converted_to_a_class_declaration:ca(80002,2,"This_constructor_function_may_be_converted_to_a_class_declaration_80002","This constructor function may be converted to a class declaration."),Import_may_be_converted_to_a_default_import:ca(80003,2,"Import_may_be_converted_to_a_default_import_80003","Import may be converted to a default import."),JSDoc_types_may_be_moved_to_TypeScript_types:ca(80004,2,"JSDoc_types_may_be_moved_to_TypeScript_types_80004","JSDoc types may be moved to TypeScript types."),require_call_may_be_converted_to_an_import:ca(80005,2,"require_call_may_be_converted_to_an_import_80005","'require' call may be converted to an import."),This_may_be_converted_to_an_async_function:ca(80006,2,"This_may_be_converted_to_an_async_function_80006","This may be converted to an async function."),await_has_no_effect_on_the_type_of_this_expression:ca(80007,2,"await_has_no_effect_on_the_type_of_this_expression_80007","'await' has no effect on the type of this expression."),Numeric_literals_with_absolute_values_equal_to_2_53_or_greater_are_too_large_to_be_represented_accurately_as_integers:ca(80008,2,"Numeric_literals_with_absolute_values_equal_to_2_53_or_greater_are_too_large_to_be_represented_accur_80008","Numeric literals with absolute values equal to 2^53 or greater are too large to be represented accurately as integers."),JSDoc_typedef_may_be_converted_to_TypeScript_type:ca(80009,2,"JSDoc_typedef_may_be_converted_to_TypeScript_type_80009","JSDoc typedef may be converted to TypeScript type."),JSDoc_typedefs_may_be_converted_to_TypeScript_types:ca(80010,2,"JSDoc_typedefs_may_be_converted_to_TypeScript_types_80010","JSDoc typedefs may be converted to TypeScript types."),Add_missing_super_call:ca(90001,3,"Add_missing_super_call_90001","Add missing 'super()' call"),Make_super_call_the_first_statement_in_the_constructor:ca(90002,3,"Make_super_call_the_first_statement_in_the_constructor_90002","Make 'super()' call the first statement in the constructor"),Change_extends_to_implements:ca(90003,3,"Change_extends_to_implements_90003","Change 'extends' to 'implements'"),Remove_unused_declaration_for_Colon_0:ca(90004,3,"Remove_unused_declaration_for_Colon_0_90004","Remove unused declaration for: '{0}'"),Remove_import_from_0:ca(90005,3,"Remove_import_from_0_90005","Remove import from '{0}'"),Implement_interface_0:ca(90006,3,"Implement_interface_0_90006","Implement interface '{0}'"),Implement_inherited_abstract_class:ca(90007,3,"Implement_inherited_abstract_class_90007","Implement inherited abstract class"),Add_0_to_unresolved_variable:ca(90008,3,"Add_0_to_unresolved_variable_90008","Add '{0}.' to unresolved variable"),Remove_variable_statement:ca(90010,3,"Remove_variable_statement_90010","Remove variable statement"),Remove_template_tag:ca(90011,3,"Remove_template_tag_90011","Remove template tag"),Remove_type_parameters:ca(90012,3,"Remove_type_parameters_90012","Remove type parameters"),Import_0_from_1:ca(90013,3,"Import_0_from_1_90013","Import '{0}' from \"{1}\""),Change_0_to_1:ca(90014,3,"Change_0_to_1_90014","Change '{0}' to '{1}'"),Declare_property_0:ca(90016,3,"Declare_property_0_90016","Declare property '{0}'"),Add_index_signature_for_property_0:ca(90017,3,"Add_index_signature_for_property_0_90017","Add index signature for property '{0}'"),Disable_checking_for_this_file:ca(90018,3,"Disable_checking_for_this_file_90018","Disable checking for this file"),Ignore_this_error_message:ca(90019,3,"Ignore_this_error_message_90019","Ignore this error message"),Initialize_property_0_in_the_constructor:ca(90020,3,"Initialize_property_0_in_the_constructor_90020","Initialize property '{0}' in the constructor"),Initialize_static_property_0:ca(90021,3,"Initialize_static_property_0_90021","Initialize static property '{0}'"),Change_spelling_to_0:ca(90022,3,"Change_spelling_to_0_90022","Change spelling to '{0}'"),Declare_method_0:ca(90023,3,"Declare_method_0_90023","Declare method '{0}'"),Declare_static_method_0:ca(90024,3,"Declare_static_method_0_90024","Declare static method '{0}'"),Prefix_0_with_an_underscore:ca(90025,3,"Prefix_0_with_an_underscore_90025","Prefix '{0}' with an underscore"),Rewrite_as_the_indexed_access_type_0:ca(90026,3,"Rewrite_as_the_indexed_access_type_0_90026","Rewrite as the indexed access type '{0}'"),Declare_static_property_0:ca(90027,3,"Declare_static_property_0_90027","Declare static property '{0}'"),Call_decorator_expression:ca(90028,3,"Call_decorator_expression_90028","Call decorator expression"),Add_async_modifier_to_containing_function:ca(90029,3,"Add_async_modifier_to_containing_function_90029","Add async modifier to containing function"),Replace_infer_0_with_unknown:ca(90030,3,"Replace_infer_0_with_unknown_90030","Replace 'infer {0}' with 'unknown'"),Replace_all_unused_infer_with_unknown:ca(90031,3,"Replace_all_unused_infer_with_unknown_90031","Replace all unused 'infer' with 'unknown'"),Add_parameter_name:ca(90034,3,"Add_parameter_name_90034","Add parameter name"),Declare_private_property_0:ca(90035,3,"Declare_private_property_0_90035","Declare private property '{0}'"),Replace_0_with_Promise_1:ca(90036,3,"Replace_0_with_Promise_1_90036","Replace '{0}' with 'Promise<{1}>'"),Fix_all_incorrect_return_type_of_an_async_functions:ca(90037,3,"Fix_all_incorrect_return_type_of_an_async_functions_90037","Fix all incorrect return type of an async functions"),Declare_private_method_0:ca(90038,3,"Declare_private_method_0_90038","Declare private method '{0}'"),Remove_unused_destructuring_declaration:ca(90039,3,"Remove_unused_destructuring_declaration_90039","Remove unused destructuring declaration"),Remove_unused_declarations_for_Colon_0:ca(90041,3,"Remove_unused_declarations_for_Colon_0_90041","Remove unused declarations for: '{0}'"),Declare_a_private_field_named_0:ca(90053,3,"Declare_a_private_field_named_0_90053","Declare a private field named '{0}'."),Includes_imports_of_types_referenced_by_0:ca(90054,3,"Includes_imports_of_types_referenced_by_0_90054","Includes imports of types referenced by '{0}'"),Remove_type_from_import_declaration_from_0:ca(90055,3,"Remove_type_from_import_declaration_from_0_90055","Remove 'type' from import declaration from \"{0}\""),Remove_type_from_import_of_0_from_1:ca(90056,3,"Remove_type_from_import_of_0_from_1_90056","Remove 'type' from import of '{0}' from \"{1}\""),Add_import_from_0:ca(90057,3,"Add_import_from_0_90057",'Add import from "{0}"'),Update_import_from_0:ca(90058,3,"Update_import_from_0_90058",'Update import from "{0}"'),Export_0_from_module_1:ca(90059,3,"Export_0_from_module_1_90059","Export '{0}' from module '{1}'"),Export_all_referenced_locals:ca(90060,3,"Export_all_referenced_locals_90060","Export all referenced locals"),Update_modifiers_of_0:ca(90061,3,"Update_modifiers_of_0_90061","Update modifiers of '{0}'"),Add_annotation_of_type_0:ca(90062,3,"Add_annotation_of_type_0_90062","Add annotation of type '{0}'"),Add_return_type_0:ca(90063,3,"Add_return_type_0_90063","Add return type '{0}'"),Extract_base_class_to_variable:ca(90064,3,"Extract_base_class_to_variable_90064","Extract base class to variable"),Extract_default_export_to_variable:ca(90065,3,"Extract_default_export_to_variable_90065","Extract default export to variable"),Extract_binding_expressions_to_variable:ca(90066,3,"Extract_binding_expressions_to_variable_90066","Extract binding expressions to variable"),Add_all_missing_type_annotations:ca(90067,3,"Add_all_missing_type_annotations_90067","Add all missing type annotations"),Add_satisfies_and_an_inline_type_assertion_with_0:ca(90068,3,"Add_satisfies_and_an_inline_type_assertion_with_0_90068","Add satisfies and an inline type assertion with '{0}'"),Extract_to_variable_and_replace_with_0_as_typeof_0:ca(90069,3,"Extract_to_variable_and_replace_with_0_as_typeof_0_90069","Extract to variable and replace with '{0} as typeof {0}'"),Mark_array_literal_as_const:ca(90070,3,"Mark_array_literal_as_const_90070","Mark array literal as const"),Annotate_types_of_properties_expando_function_in_a_namespace:ca(90071,3,"Annotate_types_of_properties_expando_function_in_a_namespace_90071","Annotate types of properties expando function in a namespace"),Convert_function_to_an_ES2015_class:ca(95001,3,"Convert_function_to_an_ES2015_class_95001","Convert function to an ES2015 class"),Convert_0_to_1_in_0:ca(95003,3,"Convert_0_to_1_in_0_95003","Convert '{0}' to '{1} in {0}'"),Extract_to_0_in_1:ca(95004,3,"Extract_to_0_in_1_95004","Extract to {0} in {1}"),Extract_function:ca(95005,3,"Extract_function_95005","Extract function"),Extract_constant:ca(95006,3,"Extract_constant_95006","Extract constant"),Extract_to_0_in_enclosing_scope:ca(95007,3,"Extract_to_0_in_enclosing_scope_95007","Extract to {0} in enclosing scope"),Extract_to_0_in_1_scope:ca(95008,3,"Extract_to_0_in_1_scope_95008","Extract to {0} in {1} scope"),Annotate_with_type_from_JSDoc:ca(95009,3,"Annotate_with_type_from_JSDoc_95009","Annotate with type from JSDoc"),Infer_type_of_0_from_usage:ca(95011,3,"Infer_type_of_0_from_usage_95011","Infer type of '{0}' from usage"),Infer_parameter_types_from_usage:ca(95012,3,"Infer_parameter_types_from_usage_95012","Infer parameter types from usage"),Convert_to_default_import:ca(95013,3,"Convert_to_default_import_95013","Convert to default import"),Install_0:ca(95014,3,"Install_0_95014","Install '{0}'"),Replace_import_with_0:ca(95015,3,"Replace_import_with_0_95015","Replace import with '{0}'."),Use_synthetic_default_member:ca(95016,3,"Use_synthetic_default_member_95016","Use synthetic 'default' member."),Convert_to_ES_module:ca(95017,3,"Convert_to_ES_module_95017","Convert to ES module"),Add_undefined_type_to_property_0:ca(95018,3,"Add_undefined_type_to_property_0_95018","Add 'undefined' type to property '{0}'"),Add_initializer_to_property_0:ca(95019,3,"Add_initializer_to_property_0_95019","Add initializer to property '{0}'"),Add_definite_assignment_assertion_to_property_0:ca(95020,3,"Add_definite_assignment_assertion_to_property_0_95020","Add definite assignment assertion to property '{0}'"),Convert_all_type_literals_to_mapped_type:ca(95021,3,"Convert_all_type_literals_to_mapped_type_95021","Convert all type literals to mapped type"),Add_all_missing_members:ca(95022,3,"Add_all_missing_members_95022","Add all missing members"),Infer_all_types_from_usage:ca(95023,3,"Infer_all_types_from_usage_95023","Infer all types from usage"),Delete_all_unused_declarations:ca(95024,3,"Delete_all_unused_declarations_95024","Delete all unused declarations"),Prefix_all_unused_declarations_with_where_possible:ca(95025,3,"Prefix_all_unused_declarations_with_where_possible_95025","Prefix all unused declarations with '_' where possible"),Fix_all_detected_spelling_errors:ca(95026,3,"Fix_all_detected_spelling_errors_95026","Fix all detected spelling errors"),Add_initializers_to_all_uninitialized_properties:ca(95027,3,"Add_initializers_to_all_uninitialized_properties_95027","Add initializers to all uninitialized properties"),Add_definite_assignment_assertions_to_all_uninitialized_properties:ca(95028,3,"Add_definite_assignment_assertions_to_all_uninitialized_properties_95028","Add definite assignment assertions to all uninitialized properties"),Add_undefined_type_to_all_uninitialized_properties:ca(95029,3,"Add_undefined_type_to_all_uninitialized_properties_95029","Add undefined type to all uninitialized properties"),Change_all_jsdoc_style_types_to_TypeScript:ca(95030,3,"Change_all_jsdoc_style_types_to_TypeScript_95030","Change all jsdoc-style types to TypeScript"),Change_all_jsdoc_style_types_to_TypeScript_and_add_undefined_to_nullable_types:ca(95031,3,"Change_all_jsdoc_style_types_to_TypeScript_and_add_undefined_to_nullable_types_95031","Change all jsdoc-style types to TypeScript (and add '| undefined' to nullable types)"),Implement_all_unimplemented_interfaces:ca(95032,3,"Implement_all_unimplemented_interfaces_95032","Implement all unimplemented interfaces"),Install_all_missing_types_packages:ca(95033,3,"Install_all_missing_types_packages_95033","Install all missing types packages"),Rewrite_all_as_indexed_access_types:ca(95034,3,"Rewrite_all_as_indexed_access_types_95034","Rewrite all as indexed access types"),Convert_all_to_default_imports:ca(95035,3,"Convert_all_to_default_imports_95035","Convert all to default imports"),Make_all_super_calls_the_first_statement_in_their_constructor:ca(95036,3,"Make_all_super_calls_the_first_statement_in_their_constructor_95036","Make all 'super()' calls the first statement in their constructor"),Add_qualifier_to_all_unresolved_variables_matching_a_member_name:ca(95037,3,"Add_qualifier_to_all_unresolved_variables_matching_a_member_name_95037","Add qualifier to all unresolved variables matching a member name"),Change_all_extended_interfaces_to_implements:ca(95038,3,"Change_all_extended_interfaces_to_implements_95038","Change all extended interfaces to 'implements'"),Add_all_missing_super_calls:ca(95039,3,"Add_all_missing_super_calls_95039","Add all missing super calls"),Implement_all_inherited_abstract_classes:ca(95040,3,"Implement_all_inherited_abstract_classes_95040","Implement all inherited abstract classes"),Add_all_missing_async_modifiers:ca(95041,3,"Add_all_missing_async_modifiers_95041","Add all missing 'async' modifiers"),Add_ts_ignore_to_all_error_messages:ca(95042,3,"Add_ts_ignore_to_all_error_messages_95042","Add '@ts-ignore' to all error messages"),Annotate_everything_with_types_from_JSDoc:ca(95043,3,"Annotate_everything_with_types_from_JSDoc_95043","Annotate everything with types from JSDoc"),Add_to_all_uncalled_decorators:ca(95044,3,"Add_to_all_uncalled_decorators_95044","Add '()' to all uncalled decorators"),Convert_all_constructor_functions_to_classes:ca(95045,3,"Convert_all_constructor_functions_to_classes_95045","Convert all constructor functions to classes"),Generate_get_and_set_accessors:ca(95046,3,"Generate_get_and_set_accessors_95046","Generate 'get' and 'set' accessors"),Convert_require_to_import:ca(95047,3,"Convert_require_to_import_95047","Convert 'require' to 'import'"),Convert_all_require_to_import:ca(95048,3,"Convert_all_require_to_import_95048","Convert all 'require' to 'import'"),Move_to_a_new_file:ca(95049,3,"Move_to_a_new_file_95049","Move to a new file"),Remove_unreachable_code:ca(95050,3,"Remove_unreachable_code_95050","Remove unreachable code"),Remove_all_unreachable_code:ca(95051,3,"Remove_all_unreachable_code_95051","Remove all unreachable code"),Add_missing_typeof:ca(95052,3,"Add_missing_typeof_95052","Add missing 'typeof'"),Remove_unused_label:ca(95053,3,"Remove_unused_label_95053","Remove unused label"),Remove_all_unused_labels:ca(95054,3,"Remove_all_unused_labels_95054","Remove all unused labels"),Convert_0_to_mapped_object_type:ca(95055,3,"Convert_0_to_mapped_object_type_95055","Convert '{0}' to mapped object type"),Convert_namespace_import_to_named_imports:ca(95056,3,"Convert_namespace_import_to_named_imports_95056","Convert namespace import to named imports"),Convert_named_imports_to_namespace_import:ca(95057,3,"Convert_named_imports_to_namespace_import_95057","Convert named imports to namespace import"),Add_or_remove_braces_in_an_arrow_function:ca(95058,3,"Add_or_remove_braces_in_an_arrow_function_95058","Add or remove braces in an arrow function"),Add_braces_to_arrow_function:ca(95059,3,"Add_braces_to_arrow_function_95059","Add braces to arrow function"),Remove_braces_from_arrow_function:ca(95060,3,"Remove_braces_from_arrow_function_95060","Remove braces from arrow function"),Convert_default_export_to_named_export:ca(95061,3,"Convert_default_export_to_named_export_95061","Convert default export to named export"),Convert_named_export_to_default_export:ca(95062,3,"Convert_named_export_to_default_export_95062","Convert named export to default export"),Add_missing_enum_member_0:ca(95063,3,"Add_missing_enum_member_0_95063","Add missing enum member '{0}'"),Add_all_missing_imports:ca(95064,3,"Add_all_missing_imports_95064","Add all missing imports"),Convert_to_async_function:ca(95065,3,"Convert_to_async_function_95065","Convert to async function"),Convert_all_to_async_functions:ca(95066,3,"Convert_all_to_async_functions_95066","Convert all to async functions"),Add_missing_call_parentheses:ca(95067,3,"Add_missing_call_parentheses_95067","Add missing call parentheses"),Add_all_missing_call_parentheses:ca(95068,3,"Add_all_missing_call_parentheses_95068","Add all missing call parentheses"),Add_unknown_conversion_for_non_overlapping_types:ca(95069,3,"Add_unknown_conversion_for_non_overlapping_types_95069","Add 'unknown' conversion for non-overlapping types"),Add_unknown_to_all_conversions_of_non_overlapping_types:ca(95070,3,"Add_unknown_to_all_conversions_of_non_overlapping_types_95070","Add 'unknown' to all conversions of non-overlapping types"),Add_missing_new_operator_to_call:ca(95071,3,"Add_missing_new_operator_to_call_95071","Add missing 'new' operator to call"),Add_missing_new_operator_to_all_calls:ca(95072,3,"Add_missing_new_operator_to_all_calls_95072","Add missing 'new' operator to all calls"),Add_names_to_all_parameters_without_names:ca(95073,3,"Add_names_to_all_parameters_without_names_95073","Add names to all parameters without names"),Enable_the_experimentalDecorators_option_in_your_configuration_file:ca(95074,3,"Enable_the_experimentalDecorators_option_in_your_configuration_file_95074","Enable the 'experimentalDecorators' option in your configuration file"),Convert_parameters_to_destructured_object:ca(95075,3,"Convert_parameters_to_destructured_object_95075","Convert parameters to destructured object"),Extract_type:ca(95077,3,"Extract_type_95077","Extract type"),Extract_to_type_alias:ca(95078,3,"Extract_to_type_alias_95078","Extract to type alias"),Extract_to_typedef:ca(95079,3,"Extract_to_typedef_95079","Extract to typedef"),Infer_this_type_of_0_from_usage:ca(95080,3,"Infer_this_type_of_0_from_usage_95080","Infer 'this' type of '{0}' from usage"),Add_const_to_unresolved_variable:ca(95081,3,"Add_const_to_unresolved_variable_95081","Add 'const' to unresolved variable"),Add_const_to_all_unresolved_variables:ca(95082,3,"Add_const_to_all_unresolved_variables_95082","Add 'const' to all unresolved variables"),Add_await:ca(95083,3,"Add_await_95083","Add 'await'"),Add_await_to_initializer_for_0:ca(95084,3,"Add_await_to_initializer_for_0_95084","Add 'await' to initializer for '{0}'"),Fix_all_expressions_possibly_missing_await:ca(95085,3,"Fix_all_expressions_possibly_missing_await_95085","Fix all expressions possibly missing 'await'"),Remove_unnecessary_await:ca(95086,3,"Remove_unnecessary_await_95086","Remove unnecessary 'await'"),Remove_all_unnecessary_uses_of_await:ca(95087,3,"Remove_all_unnecessary_uses_of_await_95087","Remove all unnecessary uses of 'await'"),Enable_the_jsx_flag_in_your_configuration_file:ca(95088,3,"Enable_the_jsx_flag_in_your_configuration_file_95088","Enable the '--jsx' flag in your configuration file"),Add_await_to_initializers:ca(95089,3,"Add_await_to_initializers_95089","Add 'await' to initializers"),Extract_to_interface:ca(95090,3,"Extract_to_interface_95090","Extract to interface"),Convert_to_a_bigint_numeric_literal:ca(95091,3,"Convert_to_a_bigint_numeric_literal_95091","Convert to a bigint numeric literal"),Convert_all_to_bigint_numeric_literals:ca(95092,3,"Convert_all_to_bigint_numeric_literals_95092","Convert all to bigint numeric literals"),Convert_const_to_let:ca(95093,3,"Convert_const_to_let_95093","Convert 'const' to 'let'"),Prefix_with_declare:ca(95094,3,"Prefix_with_declare_95094","Prefix with 'declare'"),Prefix_all_incorrect_property_declarations_with_declare:ca(95095,3,"Prefix_all_incorrect_property_declarations_with_declare_95095","Prefix all incorrect property declarations with 'declare'"),Convert_to_template_string:ca(95096,3,"Convert_to_template_string_95096","Convert to template string"),Add_export_to_make_this_file_into_a_module:ca(95097,3,"Add_export_to_make_this_file_into_a_module_95097","Add 'export {}' to make this file into a module"),Set_the_target_option_in_your_configuration_file_to_0:ca(95098,3,"Set_the_target_option_in_your_configuration_file_to_0_95098","Set the 'target' option in your configuration file to '{0}'"),Set_the_module_option_in_your_configuration_file_to_0:ca(95099,3,"Set_the_module_option_in_your_configuration_file_to_0_95099","Set the 'module' option in your configuration file to '{0}'"),Convert_invalid_character_to_its_html_entity_code:ca(95100,3,"Convert_invalid_character_to_its_html_entity_code_95100","Convert invalid character to its html entity code"),Convert_all_invalid_characters_to_HTML_entity_code:ca(95101,3,"Convert_all_invalid_characters_to_HTML_entity_code_95101","Convert all invalid characters to HTML entity code"),Convert_all_const_to_let:ca(95102,3,"Convert_all_const_to_let_95102","Convert all 'const' to 'let'"),Convert_function_expression_0_to_arrow_function:ca(95105,3,"Convert_function_expression_0_to_arrow_function_95105","Convert function expression '{0}' to arrow function"),Convert_function_declaration_0_to_arrow_function:ca(95106,3,"Convert_function_declaration_0_to_arrow_function_95106","Convert function declaration '{0}' to arrow function"),Fix_all_implicit_this_errors:ca(95107,3,"Fix_all_implicit_this_errors_95107","Fix all implicit-'this' errors"),Wrap_invalid_character_in_an_expression_container:ca(95108,3,"Wrap_invalid_character_in_an_expression_container_95108","Wrap invalid character in an expression container"),Wrap_all_invalid_characters_in_an_expression_container:ca(95109,3,"Wrap_all_invalid_characters_in_an_expression_container_95109","Wrap all invalid characters in an expression container"),Visit_https_Colon_Slash_Slashaka_ms_Slashtsconfig_to_read_more_about_this_file:ca(95110,3,"Visit_https_Colon_Slash_Slashaka_ms_Slashtsconfig_to_read_more_about_this_file_95110","Visit https://aka.ms/tsconfig to read more about this file"),Add_a_return_statement:ca(95111,3,"Add_a_return_statement_95111","Add a return statement"),Remove_braces_from_arrow_function_body:ca(95112,3,"Remove_braces_from_arrow_function_body_95112","Remove braces from arrow function body"),Wrap_the_following_body_with_parentheses_which_should_be_an_object_literal:ca(95113,3,"Wrap_the_following_body_with_parentheses_which_should_be_an_object_literal_95113","Wrap the following body with parentheses which should be an object literal"),Add_all_missing_return_statement:ca(95114,3,"Add_all_missing_return_statement_95114","Add all missing return statement"),Remove_braces_from_all_arrow_function_bodies_with_relevant_issues:ca(95115,3,"Remove_braces_from_all_arrow_function_bodies_with_relevant_issues_95115","Remove braces from all arrow function bodies with relevant issues"),Wrap_all_object_literal_with_parentheses:ca(95116,3,"Wrap_all_object_literal_with_parentheses_95116","Wrap all object literal with parentheses"),Move_labeled_tuple_element_modifiers_to_labels:ca(95117,3,"Move_labeled_tuple_element_modifiers_to_labels_95117","Move labeled tuple element modifiers to labels"),Convert_overload_list_to_single_signature:ca(95118,3,"Convert_overload_list_to_single_signature_95118","Convert overload list to single signature"),Generate_get_and_set_accessors_for_all_overriding_properties:ca(95119,3,"Generate_get_and_set_accessors_for_all_overriding_properties_95119","Generate 'get' and 'set' accessors for all overriding properties"),Wrap_in_JSX_fragment:ca(95120,3,"Wrap_in_JSX_fragment_95120","Wrap in JSX fragment"),Wrap_all_unparented_JSX_in_JSX_fragment:ca(95121,3,"Wrap_all_unparented_JSX_in_JSX_fragment_95121","Wrap all unparented JSX in JSX fragment"),Convert_arrow_function_or_function_expression:ca(95122,3,"Convert_arrow_function_or_function_expression_95122","Convert arrow function or function expression"),Convert_to_anonymous_function:ca(95123,3,"Convert_to_anonymous_function_95123","Convert to anonymous function"),Convert_to_named_function:ca(95124,3,"Convert_to_named_function_95124","Convert to named function"),Convert_to_arrow_function:ca(95125,3,"Convert_to_arrow_function_95125","Convert to arrow function"),Remove_parentheses:ca(95126,3,"Remove_parentheses_95126","Remove parentheses"),Could_not_find_a_containing_arrow_function:ca(95127,3,"Could_not_find_a_containing_arrow_function_95127","Could not find a containing arrow function"),Containing_function_is_not_an_arrow_function:ca(95128,3,"Containing_function_is_not_an_arrow_function_95128","Containing function is not an arrow function"),Could_not_find_export_statement:ca(95129,3,"Could_not_find_export_statement_95129","Could not find export statement"),This_file_already_has_a_default_export:ca(95130,3,"This_file_already_has_a_default_export_95130","This file already has a default export"),Could_not_find_import_clause:ca(95131,3,"Could_not_find_import_clause_95131","Could not find import clause"),Could_not_find_namespace_import_or_named_imports:ca(95132,3,"Could_not_find_namespace_import_or_named_imports_95132","Could not find namespace import or named imports"),Selection_is_not_a_valid_type_node:ca(95133,3,"Selection_is_not_a_valid_type_node_95133","Selection is not a valid type node"),No_type_could_be_extracted_from_this_type_node:ca(95134,3,"No_type_could_be_extracted_from_this_type_node_95134","No type could be extracted from this type node"),Could_not_find_property_for_which_to_generate_accessor:ca(95135,3,"Could_not_find_property_for_which_to_generate_accessor_95135","Could not find property for which to generate accessor"),Name_is_not_valid:ca(95136,3,"Name_is_not_valid_95136","Name is not valid"),Can_only_convert_property_with_modifier:ca(95137,3,"Can_only_convert_property_with_modifier_95137","Can only convert property with modifier"),Switch_each_misused_0_to_1:ca(95138,3,"Switch_each_misused_0_to_1_95138","Switch each misused '{0}' to '{1}'"),Convert_to_optional_chain_expression:ca(95139,3,"Convert_to_optional_chain_expression_95139","Convert to optional chain expression"),Could_not_find_convertible_access_expression:ca(95140,3,"Could_not_find_convertible_access_expression_95140","Could not find convertible access expression"),Could_not_find_matching_access_expressions:ca(95141,3,"Could_not_find_matching_access_expressions_95141","Could not find matching access expressions"),Can_only_convert_logical_AND_access_chains:ca(95142,3,"Can_only_convert_logical_AND_access_chains_95142","Can only convert logical AND access chains"),Add_void_to_Promise_resolved_without_a_value:ca(95143,3,"Add_void_to_Promise_resolved_without_a_value_95143","Add 'void' to Promise resolved without a value"),Add_void_to_all_Promises_resolved_without_a_value:ca(95144,3,"Add_void_to_all_Promises_resolved_without_a_value_95144","Add 'void' to all Promises resolved without a value"),Use_element_access_for_0:ca(95145,3,"Use_element_access_for_0_95145","Use element access for '{0}'"),Use_element_access_for_all_undeclared_properties:ca(95146,3,"Use_element_access_for_all_undeclared_properties_95146","Use element access for all undeclared properties."),Delete_all_unused_imports:ca(95147,3,"Delete_all_unused_imports_95147","Delete all unused imports"),Infer_function_return_type:ca(95148,3,"Infer_function_return_type_95148","Infer function return type"),Return_type_must_be_inferred_from_a_function:ca(95149,3,"Return_type_must_be_inferred_from_a_function_95149","Return type must be inferred from a function"),Could_not_determine_function_return_type:ca(95150,3,"Could_not_determine_function_return_type_95150","Could not determine function return type"),Could_not_convert_to_arrow_function:ca(95151,3,"Could_not_convert_to_arrow_function_95151","Could not convert to arrow function"),Could_not_convert_to_named_function:ca(95152,3,"Could_not_convert_to_named_function_95152","Could not convert to named function"),Could_not_convert_to_anonymous_function:ca(95153,3,"Could_not_convert_to_anonymous_function_95153","Could not convert to anonymous function"),Can_only_convert_string_concatenations_and_string_literals:ca(95154,3,"Can_only_convert_string_concatenations_and_string_literals_95154","Can only convert string concatenations and string literals"),Selection_is_not_a_valid_statement_or_statements:ca(95155,3,"Selection_is_not_a_valid_statement_or_statements_95155","Selection is not a valid statement or statements"),Add_missing_function_declaration_0:ca(95156,3,"Add_missing_function_declaration_0_95156","Add missing function declaration '{0}'"),Add_all_missing_function_declarations:ca(95157,3,"Add_all_missing_function_declarations_95157","Add all missing function declarations"),Method_not_implemented:ca(95158,3,"Method_not_implemented_95158","Method not implemented."),Function_not_implemented:ca(95159,3,"Function_not_implemented_95159","Function not implemented."),Add_override_modifier:ca(95160,3,"Add_override_modifier_95160","Add 'override' modifier"),Remove_override_modifier:ca(95161,3,"Remove_override_modifier_95161","Remove 'override' modifier"),Add_all_missing_override_modifiers:ca(95162,3,"Add_all_missing_override_modifiers_95162","Add all missing 'override' modifiers"),Remove_all_unnecessary_override_modifiers:ca(95163,3,"Remove_all_unnecessary_override_modifiers_95163","Remove all unnecessary 'override' modifiers"),Can_only_convert_named_export:ca(95164,3,"Can_only_convert_named_export_95164","Can only convert named export"),Add_missing_properties:ca(95165,3,"Add_missing_properties_95165","Add missing properties"),Add_all_missing_properties:ca(95166,3,"Add_all_missing_properties_95166","Add all missing properties"),Add_missing_attributes:ca(95167,3,"Add_missing_attributes_95167","Add missing attributes"),Add_all_missing_attributes:ca(95168,3,"Add_all_missing_attributes_95168","Add all missing attributes"),Add_undefined_to_optional_property_type:ca(95169,3,"Add_undefined_to_optional_property_type_95169","Add 'undefined' to optional property type"),Convert_named_imports_to_default_import:ca(95170,3,"Convert_named_imports_to_default_import_95170","Convert named imports to default import"),Delete_unused_param_tag_0:ca(95171,3,"Delete_unused_param_tag_0_95171","Delete unused '@param' tag '{0}'"),Delete_all_unused_param_tags:ca(95172,3,"Delete_all_unused_param_tags_95172","Delete all unused '@param' tags"),Rename_param_tag_name_0_to_1:ca(95173,3,"Rename_param_tag_name_0_to_1_95173","Rename '@param' tag name '{0}' to '{1}'"),Use_0:ca(95174,3,"Use_0_95174","Use `{0}`."),Use_Number_isNaN_in_all_conditions:ca(95175,3,"Use_Number_isNaN_in_all_conditions_95175","Use `Number.isNaN` in all conditions."),Convert_typedef_to_TypeScript_type:ca(95176,3,"Convert_typedef_to_TypeScript_type_95176","Convert typedef to TypeScript type."),Convert_all_typedef_to_TypeScript_types:ca(95177,3,"Convert_all_typedef_to_TypeScript_types_95177","Convert all typedef to TypeScript types."),Move_to_file:ca(95178,3,"Move_to_file_95178","Move to file"),Cannot_move_to_file_selected_file_is_invalid:ca(95179,3,"Cannot_move_to_file_selected_file_is_invalid_95179","Cannot move to file, selected file is invalid"),Use_import_type:ca(95180,3,"Use_import_type_95180","Use 'import type'"),Use_type_0:ca(95181,3,"Use_type_0_95181","Use 'type {0}'"),Fix_all_with_type_only_imports:ca(95182,3,"Fix_all_with_type_only_imports_95182","Fix all with type-only imports"),Cannot_move_statements_to_the_selected_file:ca(95183,3,"Cannot_move_statements_to_the_selected_file_95183","Cannot move statements to the selected file"),Inline_variable:ca(95184,3,"Inline_variable_95184","Inline variable"),Could_not_find_variable_to_inline:ca(95185,3,"Could_not_find_variable_to_inline_95185","Could not find variable to inline."),Variables_with_multiple_declarations_cannot_be_inlined:ca(95186,3,"Variables_with_multiple_declarations_cannot_be_inlined_95186","Variables with multiple declarations cannot be inlined."),Add_missing_comma_for_object_member_completion_0:ca(95187,3,"Add_missing_comma_for_object_member_completion_0_95187","Add missing comma for object member completion '{0}'."),Add_missing_parameter_to_0:ca(95188,3,"Add_missing_parameter_to_0_95188","Add missing parameter to '{0}'"),Add_missing_parameters_to_0:ca(95189,3,"Add_missing_parameters_to_0_95189","Add missing parameters to '{0}'"),Add_all_missing_parameters:ca(95190,3,"Add_all_missing_parameters_95190","Add all missing parameters"),Add_optional_parameter_to_0:ca(95191,3,"Add_optional_parameter_to_0_95191","Add optional parameter to '{0}'"),Add_optional_parameters_to_0:ca(95192,3,"Add_optional_parameters_to_0_95192","Add optional parameters to '{0}'"),Add_all_optional_parameters:ca(95193,3,"Add_all_optional_parameters_95193","Add all optional parameters"),Wrap_in_parentheses:ca(95194,3,"Wrap_in_parentheses_95194","Wrap in parentheses"),Wrap_all_invalid_decorator_expressions_in_parentheses:ca(95195,3,"Wrap_all_invalid_decorator_expressions_in_parentheses_95195","Wrap all invalid decorator expressions in parentheses"),Add_resolution_mode_import_attribute:ca(95196,3,"Add_resolution_mode_import_attribute_95196","Add 'resolution-mode' import attribute"),Add_resolution_mode_import_attribute_to_all_type_only_imports_that_need_it:ca(95197,3,"Add_resolution_mode_import_attribute_to_all_type_only_imports_that_need_it_95197","Add 'resolution-mode' import attribute to all type-only imports that need it"),No_value_exists_in_scope_for_the_shorthand_property_0_Either_declare_one_or_provide_an_initializer:ca(18004,1,"No_value_exists_in_scope_for_the_shorthand_property_0_Either_declare_one_or_provide_an_initializer_18004","No value exists in scope for the shorthand property '{0}'. Either declare one or provide an initializer."),Classes_may_not_have_a_field_named_constructor:ca(18006,1,"Classes_may_not_have_a_field_named_constructor_18006","Classes may not have a field named 'constructor'."),JSX_expressions_may_not_use_the_comma_operator_Did_you_mean_to_write_an_array:ca(18007,1,"JSX_expressions_may_not_use_the_comma_operator_Did_you_mean_to_write_an_array_18007","JSX expressions may not use the comma operator. Did you mean to write an array?"),Private_identifiers_cannot_be_used_as_parameters:ca(18009,1,"Private_identifiers_cannot_be_used_as_parameters_18009","Private identifiers cannot be used as parameters."),An_accessibility_modifier_cannot_be_used_with_a_private_identifier:ca(18010,1,"An_accessibility_modifier_cannot_be_used_with_a_private_identifier_18010","An accessibility modifier cannot be used with a private identifier."),The_operand_of_a_delete_operator_cannot_be_a_private_identifier:ca(18011,1,"The_operand_of_a_delete_operator_cannot_be_a_private_identifier_18011","The operand of a 'delete' operator cannot be a private identifier."),constructor_is_a_reserved_word:ca(18012,1,"constructor_is_a_reserved_word_18012","'#constructor' is a reserved word."),Property_0_is_not_accessible_outside_class_1_because_it_has_a_private_identifier:ca(18013,1,"Property_0_is_not_accessible_outside_class_1_because_it_has_a_private_identifier_18013","Property '{0}' is not accessible outside class '{1}' because it has a private identifier."),The_property_0_cannot_be_accessed_on_type_1_within_this_class_because_it_is_shadowed_by_another_private_identifier_with_the_same_spelling:ca(18014,1,"The_property_0_cannot_be_accessed_on_type_1_within_this_class_because_it_is_shadowed_by_another_priv_18014","The property '{0}' cannot be accessed on type '{1}' within this class because it is shadowed by another private identifier with the same spelling."),Property_0_in_type_1_refers_to_a_different_member_that_cannot_be_accessed_from_within_type_2:ca(18015,1,"Property_0_in_type_1_refers_to_a_different_member_that_cannot_be_accessed_from_within_type_2_18015","Property '{0}' in type '{1}' refers to a different member that cannot be accessed from within type '{2}'."),Private_identifiers_are_not_allowed_outside_class_bodies:ca(18016,1,"Private_identifiers_are_not_allowed_outside_class_bodies_18016","Private identifiers are not allowed outside class bodies."),The_shadowing_declaration_of_0_is_defined_here:ca(18017,1,"The_shadowing_declaration_of_0_is_defined_here_18017","The shadowing declaration of '{0}' is defined here"),The_declaration_of_0_that_you_probably_intended_to_use_is_defined_here:ca(18018,1,"The_declaration_of_0_that_you_probably_intended_to_use_is_defined_here_18018","The declaration of '{0}' that you probably intended to use is defined here"),_0_modifier_cannot_be_used_with_a_private_identifier:ca(18019,1,"_0_modifier_cannot_be_used_with_a_private_identifier_18019","'{0}' modifier cannot be used with a private identifier."),An_enum_member_cannot_be_named_with_a_private_identifier:ca(18024,1,"An_enum_member_cannot_be_named_with_a_private_identifier_18024","An enum member cannot be named with a private identifier."),can_only_be_used_at_the_start_of_a_file:ca(18026,1,"can_only_be_used_at_the_start_of_a_file_18026","'#!' can only be used at the start of a file."),Compiler_reserves_name_0_when_emitting_private_identifier_downlevel:ca(18027,1,"Compiler_reserves_name_0_when_emitting_private_identifier_downlevel_18027","Compiler reserves name '{0}' when emitting private identifier downlevel."),Private_identifiers_are_only_available_when_targeting_ECMAScript_2015_and_higher:ca(18028,1,"Private_identifiers_are_only_available_when_targeting_ECMAScript_2015_and_higher_18028","Private identifiers are only available when targeting ECMAScript 2015 and higher."),Private_identifiers_are_not_allowed_in_variable_declarations:ca(18029,1,"Private_identifiers_are_not_allowed_in_variable_declarations_18029","Private identifiers are not allowed in variable declarations."),An_optional_chain_cannot_contain_private_identifiers:ca(18030,1,"An_optional_chain_cannot_contain_private_identifiers_18030","An optional chain cannot contain private identifiers."),The_intersection_0_was_reduced_to_never_because_property_1_has_conflicting_types_in_some_constituents:ca(18031,1,"The_intersection_0_was_reduced_to_never_because_property_1_has_conflicting_types_in_some_constituent_18031","The intersection '{0}' was reduced to 'never' because property '{1}' has conflicting types in some constituents."),The_intersection_0_was_reduced_to_never_because_property_1_exists_in_multiple_constituents_and_is_private_in_some:ca(18032,1,"The_intersection_0_was_reduced_to_never_because_property_1_exists_in_multiple_constituents_and_is_pr_18032","The intersection '{0}' was reduced to 'never' because property '{1}' exists in multiple constituents and is private in some."),Type_0_is_not_assignable_to_type_1_as_required_for_computed_enum_member_values:ca(18033,1,"Type_0_is_not_assignable_to_type_1_as_required_for_computed_enum_member_values_18033","Type '{0}' is not assignable to type '{1}' as required for computed enum member values."),Specify_the_JSX_fragment_factory_function_to_use_when_targeting_react_JSX_emit_with_jsxFactory_compiler_option_is_specified_e_g_Fragment:ca(18034,3,"Specify_the_JSX_fragment_factory_function_to_use_when_targeting_react_JSX_emit_with_jsxFactory_compi_18034","Specify the JSX fragment factory function to use when targeting 'react' JSX emit with 'jsxFactory' compiler option is specified, e.g. 'Fragment'."),Invalid_value_for_jsxFragmentFactory_0_is_not_a_valid_identifier_or_qualified_name:ca(18035,1,"Invalid_value_for_jsxFragmentFactory_0_is_not_a_valid_identifier_or_qualified_name_18035","Invalid value for 'jsxFragmentFactory'. '{0}' is not a valid identifier or qualified-name."),Class_decorators_can_t_be_used_with_static_private_identifier_Consider_removing_the_experimental_decorator:ca(18036,1,"Class_decorators_can_t_be_used_with_static_private_identifier_Consider_removing_the_experimental_dec_18036","Class decorators can't be used with static private identifier. Consider removing the experimental decorator."),await_expression_cannot_be_used_inside_a_class_static_block:ca(18037,1,"await_expression_cannot_be_used_inside_a_class_static_block_18037","'await' expression cannot be used inside a class static block."),for_await_loops_cannot_be_used_inside_a_class_static_block:ca(18038,1,"for_await_loops_cannot_be_used_inside_a_class_static_block_18038","'for await' loops cannot be used inside a class static block."),Invalid_use_of_0_It_cannot_be_used_inside_a_class_static_block:ca(18039,1,"Invalid_use_of_0_It_cannot_be_used_inside_a_class_static_block_18039","Invalid use of '{0}'. It cannot be used inside a class static block."),A_return_statement_cannot_be_used_inside_a_class_static_block:ca(18041,1,"A_return_statement_cannot_be_used_inside_a_class_static_block_18041","A 'return' statement cannot be used inside a class static block."),_0_is_a_type_and_cannot_be_imported_in_JavaScript_files_Use_1_in_a_JSDoc_type_annotation:ca(18042,1,"_0_is_a_type_and_cannot_be_imported_in_JavaScript_files_Use_1_in_a_JSDoc_type_annotation_18042","'{0}' is a type and cannot be imported in JavaScript files. Use '{1}' in a JSDoc type annotation."),Types_cannot_appear_in_export_declarations_in_JavaScript_files:ca(18043,1,"Types_cannot_appear_in_export_declarations_in_JavaScript_files_18043","Types cannot appear in export declarations in JavaScript files."),_0_is_automatically_exported_here:ca(18044,3,"_0_is_automatically_exported_here_18044","'{0}' is automatically exported here."),Properties_with_the_accessor_modifier_are_only_available_when_targeting_ECMAScript_2015_and_higher:ca(18045,1,"Properties_with_the_accessor_modifier_are_only_available_when_targeting_ECMAScript_2015_and_higher_18045","Properties with the 'accessor' modifier are only available when targeting ECMAScript 2015 and higher."),_0_is_of_type_unknown:ca(18046,1,"_0_is_of_type_unknown_18046","'{0}' is of type 'unknown'."),_0_is_possibly_null:ca(18047,1,"_0_is_possibly_null_18047","'{0}' is possibly 'null'."),_0_is_possibly_undefined:ca(18048,1,"_0_is_possibly_undefined_18048","'{0}' is possibly 'undefined'."),_0_is_possibly_null_or_undefined:ca(18049,1,"_0_is_possibly_null_or_undefined_18049","'{0}' is possibly 'null' or 'undefined'."),The_value_0_cannot_be_used_here:ca(18050,1,"The_value_0_cannot_be_used_here_18050","The value '{0}' cannot be used here."),Compiler_option_0_cannot_be_given_an_empty_string:ca(18051,1,"Compiler_option_0_cannot_be_given_an_empty_string_18051","Compiler option '{0}' cannot be given an empty string."),Its_type_0_is_not_a_valid_JSX_element_type:ca(18053,1,"Its_type_0_is_not_a_valid_JSX_element_type_18053","Its type '{0}' is not a valid JSX element type."),await_using_statements_cannot_be_used_inside_a_class_static_block:ca(18054,1,"await_using_statements_cannot_be_used_inside_a_class_static_block_18054","'await using' statements cannot be used inside a class static block."),_0_has_a_string_type_but_must_have_syntactically_recognizable_string_syntax_when_isolatedModules_is_enabled:ca(18055,1,"_0_has_a_string_type_but_must_have_syntactically_recognizable_string_syntax_when_isolatedModules_is__18055","'{0}' has a string type, but must have syntactically recognizable string syntax when 'isolatedModules' is enabled."),Enum_member_following_a_non_literal_numeric_member_must_have_an_initializer_when_isolatedModules_is_enabled:ca(18056,1,"Enum_member_following_a_non_literal_numeric_member_must_have_an_initializer_when_isolatedModules_is__18056","Enum member following a non-literal numeric member must have an initializer when 'isolatedModules' is enabled."),String_literal_import_and_export_names_are_not_supported_when_the_module_flag_is_set_to_es2015_or_es2020:ca(18057,1,"String_literal_import_and_export_names_are_not_supported_when_the_module_flag_is_set_to_es2015_or_es_18057","String literal import and export names are not supported when the '--module' flag is set to 'es2015' or 'es2020'.")};function _a(e){return e>=80}function ua(e){return 32===e||_a(e)}var da={abstract:128,accessor:129,any:133,as:130,asserts:131,assert:132,bigint:163,boolean:136,break:83,case:84,catch:85,class:86,continue:88,const:87,constructor:137,debugger:89,declare:138,default:90,delete:91,do:92,else:93,enum:94,export:95,extends:96,false:97,finally:98,for:99,from:161,function:100,get:139,if:101,implements:119,import:102,in:103,infer:140,instanceof:104,interface:120,intrinsic:141,is:142,keyof:143,let:121,module:144,namespace:145,never:146,new:105,null:106,number:150,object:151,package:122,private:123,protected:124,public:125,override:164,out:147,readonly:148,require:149,global:162,return:107,satisfies:152,set:153,static:126,string:154,super:108,switch:109,symbol:155,this:110,throw:111,true:112,try:113,type:156,typeof:114,undefined:157,unique:158,unknown:159,using:160,var:115,void:116,while:117,with:118,yield:127,async:134,await:135,of:165},pa=new Map(Object.entries(da)),fa=new Map(Object.entries({...da,"{":19,"}":20,"(":21,")":22,"[":23,"]":24,".":25,"...":26,";":27,",":28,"<":30,">":32,"<=":33,">=":34,"==":35,"!=":36,"===":37,"!==":38,"=>":39,"+":40,"-":41,"**":43,"*":42,"/":44,"%":45,"++":46,"--":47,"<<":48,">":49,">>>":50,"&":51,"|":52,"^":53,"!":54,"~":55,"&&":56,"||":57,"?":58,"??":61,"?.":29,":":59,"=":64,"+=":65,"-=":66,"*=":67,"**=":68,"/=":69,"%=":70,"<<=":71,">>=":72,">>>=":73,"&=":74,"|=":75,"^=":79,"||=":76,"&&=":77,"??=":78,"@":60,"#":63,"`":62})),ma=new Map([[100,1],[103,2],[105,4],[109,8],[115,16],[117,32],[118,64],[121,128]]),ga=new Map([[1,Di.RegularExpressionFlagsHasIndices],[16,Di.RegularExpressionFlagsDotAll],[32,Di.RegularExpressionFlagsUnicode],[64,Di.RegularExpressionFlagsUnicodeSets],[128,Di.RegularExpressionFlagsSticky]]),ha=[170,170,181,181,186,186,192,214,216,246,248,705,710,721,736,740,748,748,750,750,880,884,886,887,890,893,902,902,904,906,908,908,910,929,931,1013,1015,1153,1162,1319,1329,1366,1369,1369,1377,1415,1488,1514,1520,1522,1568,1610,1646,1647,1649,1747,1749,1749,1765,1766,1774,1775,1786,1788,1791,1791,1808,1808,1810,1839,1869,1957,1969,1969,1994,2026,2036,2037,2042,2042,2048,2069,2074,2074,2084,2084,2088,2088,2112,2136,2208,2208,2210,2220,2308,2361,2365,2365,2384,2384,2392,2401,2417,2423,2425,2431,2437,2444,2447,2448,2451,2472,2474,2480,2482,2482,2486,2489,2493,2493,2510,2510,2524,2525,2527,2529,2544,2545,2565,2570,2575,2576,2579,2600,2602,2608,2610,2611,2613,2614,2616,2617,2649,2652,2654,2654,2674,2676,2693,2701,2703,2705,2707,2728,2730,2736,2738,2739,2741,2745,2749,2749,2768,2768,2784,2785,2821,2828,2831,2832,2835,2856,2858,2864,2866,2867,2869,2873,2877,2877,2908,2909,2911,2913,2929,2929,2947,2947,2949,2954,2958,2960,2962,2965,2969,2970,2972,2972,2974,2975,2979,2980,2984,2986,2990,3001,3024,3024,3077,3084,3086,3088,3090,3112,3114,3123,3125,3129,3133,3133,3160,3161,3168,3169,3205,3212,3214,3216,3218,3240,3242,3251,3253,3257,3261,3261,3294,3294,3296,3297,3313,3314,3333,3340,3342,3344,3346,3386,3389,3389,3406,3406,3424,3425,3450,3455,3461,3478,3482,3505,3507,3515,3517,3517,3520,3526,3585,3632,3634,3635,3648,3654,3713,3714,3716,3716,3719,3720,3722,3722,3725,3725,3732,3735,3737,3743,3745,3747,3749,3749,3751,3751,3754,3755,3757,3760,3762,3763,3773,3773,3776,3780,3782,3782,3804,3807,3840,3840,3904,3911,3913,3948,3976,3980,4096,4138,4159,4159,4176,4181,4186,4189,4193,4193,4197,4198,4206,4208,4213,4225,4238,4238,4256,4293,4295,4295,4301,4301,4304,4346,4348,4680,4682,4685,4688,4694,4696,4696,4698,4701,4704,4744,4746,4749,4752,4784,4786,4789,4792,4798,4800,4800,4802,4805,4808,4822,4824,4880,4882,4885,4888,4954,4992,5007,5024,5108,5121,5740,5743,5759,5761,5786,5792,5866,5870,5872,5888,5900,5902,5905,5920,5937,5952,5969,5984,5996,5998,6e3,6016,6067,6103,6103,6108,6108,6176,6263,6272,6312,6314,6314,6320,6389,6400,6428,6480,6509,6512,6516,6528,6571,6593,6599,6656,6678,6688,6740,6823,6823,6917,6963,6981,6987,7043,7072,7086,7087,7098,7141,7168,7203,7245,7247,7258,7293,7401,7404,7406,7409,7413,7414,7424,7615,7680,7957,7960,7965,7968,8005,8008,8013,8016,8023,8025,8025,8027,8027,8029,8029,8031,8061,8064,8116,8118,8124,8126,8126,8130,8132,8134,8140,8144,8147,8150,8155,8160,8172,8178,8180,8182,8188,8305,8305,8319,8319,8336,8348,8450,8450,8455,8455,8458,8467,8469,8469,8473,8477,8484,8484,8486,8486,8488,8488,8490,8493,8495,8505,8508,8511,8517,8521,8526,8526,8544,8584,11264,11310,11312,11358,11360,11492,11499,11502,11506,11507,11520,11557,11559,11559,11565,11565,11568,11623,11631,11631,11648,11670,11680,11686,11688,11694,11696,11702,11704,11710,11712,11718,11720,11726,11728,11734,11736,11742,11823,11823,12293,12295,12321,12329,12337,12341,12344,12348,12353,12438,12445,12447,12449,12538,12540,12543,12549,12589,12593,12686,12704,12730,12784,12799,13312,19893,19968,40908,40960,42124,42192,42237,42240,42508,42512,42527,42538,42539,42560,42606,42623,42647,42656,42735,42775,42783,42786,42888,42891,42894,42896,42899,42912,42922,43e3,43009,43011,43013,43015,43018,43020,43042,43072,43123,43138,43187,43250,43255,43259,43259,43274,43301,43312,43334,43360,43388,43396,43442,43471,43471,43520,43560,43584,43586,43588,43595,43616,43638,43642,43642,43648,43695,43697,43697,43701,43702,43705,43709,43712,43712,43714,43714,43739,43741,43744,43754,43762,43764,43777,43782,43785,43790,43793,43798,43808,43814,43816,43822,43968,44002,44032,55203,55216,55238,55243,55291,63744,64109,64112,64217,64256,64262,64275,64279,64285,64285,64287,64296,64298,64310,64312,64316,64318,64318,64320,64321,64323,64324,64326,64433,64467,64829,64848,64911,64914,64967,65008,65019,65136,65140,65142,65276,65313,65338,65345,65370,65382,65470,65474,65479,65482,65487,65490,65495,65498,65500],ya=[170,170,181,181,186,186,192,214,216,246,248,705,710,721,736,740,748,748,750,750,768,884,886,887,890,893,902,902,904,906,908,908,910,929,931,1013,1015,1153,1155,1159,1162,1319,1329,1366,1369,1369,1377,1415,1425,1469,1471,1471,1473,1474,1476,1477,1479,1479,1488,1514,1520,1522,1552,1562,1568,1641,1646,1747,1749,1756,1759,1768,1770,1788,1791,1791,1808,1866,1869,1969,1984,2037,2042,2042,2048,2093,2112,2139,2208,2208,2210,2220,2276,2302,2304,2403,2406,2415,2417,2423,2425,2431,2433,2435,2437,2444,2447,2448,2451,2472,2474,2480,2482,2482,2486,2489,2492,2500,2503,2504,2507,2510,2519,2519,2524,2525,2527,2531,2534,2545,2561,2563,2565,2570,2575,2576,2579,2600,2602,2608,2610,2611,2613,2614,2616,2617,2620,2620,2622,2626,2631,2632,2635,2637,2641,2641,2649,2652,2654,2654,2662,2677,2689,2691,2693,2701,2703,2705,2707,2728,2730,2736,2738,2739,2741,2745,2748,2757,2759,2761,2763,2765,2768,2768,2784,2787,2790,2799,2817,2819,2821,2828,2831,2832,2835,2856,2858,2864,2866,2867,2869,2873,2876,2884,2887,2888,2891,2893,2902,2903,2908,2909,2911,2915,2918,2927,2929,2929,2946,2947,2949,2954,2958,2960,2962,2965,2969,2970,2972,2972,2974,2975,2979,2980,2984,2986,2990,3001,3006,3010,3014,3016,3018,3021,3024,3024,3031,3031,3046,3055,3073,3075,3077,3084,3086,3088,3090,3112,3114,3123,3125,3129,3133,3140,3142,3144,3146,3149,3157,3158,3160,3161,3168,3171,3174,3183,3202,3203,3205,3212,3214,3216,3218,3240,3242,3251,3253,3257,3260,3268,3270,3272,3274,3277,3285,3286,3294,3294,3296,3299,3302,3311,3313,3314,3330,3331,3333,3340,3342,3344,3346,3386,3389,3396,3398,3400,3402,3406,3415,3415,3424,3427,3430,3439,3450,3455,3458,3459,3461,3478,3482,3505,3507,3515,3517,3517,3520,3526,3530,3530,3535,3540,3542,3542,3544,3551,3570,3571,3585,3642,3648,3662,3664,3673,3713,3714,3716,3716,3719,3720,3722,3722,3725,3725,3732,3735,3737,3743,3745,3747,3749,3749,3751,3751,3754,3755,3757,3769,3771,3773,3776,3780,3782,3782,3784,3789,3792,3801,3804,3807,3840,3840,3864,3865,3872,3881,3893,3893,3895,3895,3897,3897,3902,3911,3913,3948,3953,3972,3974,3991,3993,4028,4038,4038,4096,4169,4176,4253,4256,4293,4295,4295,4301,4301,4304,4346,4348,4680,4682,4685,4688,4694,4696,4696,4698,4701,4704,4744,4746,4749,4752,4784,4786,4789,4792,4798,4800,4800,4802,4805,4808,4822,4824,4880,4882,4885,4888,4954,4957,4959,4992,5007,5024,5108,5121,5740,5743,5759,5761,5786,5792,5866,5870,5872,5888,5900,5902,5908,5920,5940,5952,5971,5984,5996,5998,6e3,6002,6003,6016,6099,6103,6103,6108,6109,6112,6121,6155,6157,6160,6169,6176,6263,6272,6314,6320,6389,6400,6428,6432,6443,6448,6459,6470,6509,6512,6516,6528,6571,6576,6601,6608,6617,6656,6683,6688,6750,6752,6780,6783,6793,6800,6809,6823,6823,6912,6987,6992,7001,7019,7027,7040,7155,7168,7223,7232,7241,7245,7293,7376,7378,7380,7414,7424,7654,7676,7957,7960,7965,7968,8005,8008,8013,8016,8023,8025,8025,8027,8027,8029,8029,8031,8061,8064,8116,8118,8124,8126,8126,8130,8132,8134,8140,8144,8147,8150,8155,8160,8172,8178,8180,8182,8188,8204,8205,8255,8256,8276,8276,8305,8305,8319,8319,8336,8348,8400,8412,8417,8417,8421,8432,8450,8450,8455,8455,8458,8467,8469,8469,8473,8477,8484,8484,8486,8486,8488,8488,8490,8493,8495,8505,8508,8511,8517,8521,8526,8526,8544,8584,11264,11310,11312,11358,11360,11492,11499,11507,11520,11557,11559,11559,11565,11565,11568,11623,11631,11631,11647,11670,11680,11686,11688,11694,11696,11702,11704,11710,11712,11718,11720,11726,11728,11734,11736,11742,11744,11775,11823,11823,12293,12295,12321,12335,12337,12341,12344,12348,12353,12438,12441,12442,12445,12447,12449,12538,12540,12543,12549,12589,12593,12686,12704,12730,12784,12799,13312,19893,19968,40908,40960,42124,42192,42237,42240,42508,42512,42539,42560,42607,42612,42621,42623,42647,42655,42737,42775,42783,42786,42888,42891,42894,42896,42899,42912,42922,43e3,43047,43072,43123,43136,43204,43216,43225,43232,43255,43259,43259,43264,43309,43312,43347,43360,43388,43392,43456,43471,43481,43520,43574,43584,43597,43600,43609,43616,43638,43642,43643,43648,43714,43739,43741,43744,43759,43762,43766,43777,43782,43785,43790,43793,43798,43808,43814,43816,43822,43968,44010,44012,44013,44016,44025,44032,55203,55216,55238,55243,55291,63744,64109,64112,64217,64256,64262,64275,64279,64285,64296,64298,64310,64312,64316,64318,64318,64320,64321,64323,64324,64326,64433,64467,64829,64848,64911,64914,64967,65008,65019,65024,65039,65056,65062,65075,65076,65101,65103,65136,65140,65142,65276,65296,65305,65313,65338,65343,65343,65345,65370,65382,65470,65474,65479,65482,65487,65490,65495,65498,65500],va=[65,90,97,122,170,170,181,181,186,186,192,214,216,246,248,705,710,721,736,740,748,748,750,750,880,884,886,887,890,893,895,895,902,902,904,906,908,908,910,929,931,1013,1015,1153,1162,1327,1329,1366,1369,1369,1376,1416,1488,1514,1519,1522,1568,1610,1646,1647,1649,1747,1749,1749,1765,1766,1774,1775,1786,1788,1791,1791,1808,1808,1810,1839,1869,1957,1969,1969,1994,2026,2036,2037,2042,2042,2048,2069,2074,2074,2084,2084,2088,2088,2112,2136,2144,2154,2160,2183,2185,2190,2208,2249,2308,2361,2365,2365,2384,2384,2392,2401,2417,2432,2437,2444,2447,2448,2451,2472,2474,2480,2482,2482,2486,2489,2493,2493,2510,2510,2524,2525,2527,2529,2544,2545,2556,2556,2565,2570,2575,2576,2579,2600,2602,2608,2610,2611,2613,2614,2616,2617,2649,2652,2654,2654,2674,2676,2693,2701,2703,2705,2707,2728,2730,2736,2738,2739,2741,2745,2749,2749,2768,2768,2784,2785,2809,2809,2821,2828,2831,2832,2835,2856,2858,2864,2866,2867,2869,2873,2877,2877,2908,2909,2911,2913,2929,2929,2947,2947,2949,2954,2958,2960,2962,2965,2969,2970,2972,2972,2974,2975,2979,2980,2984,2986,2990,3001,3024,3024,3077,3084,3086,3088,3090,3112,3114,3129,3133,3133,3160,3162,3165,3165,3168,3169,3200,3200,3205,3212,3214,3216,3218,3240,3242,3251,3253,3257,3261,3261,3293,3294,3296,3297,3313,3314,3332,3340,3342,3344,3346,3386,3389,3389,3406,3406,3412,3414,3423,3425,3450,3455,3461,3478,3482,3505,3507,3515,3517,3517,3520,3526,3585,3632,3634,3635,3648,3654,3713,3714,3716,3716,3718,3722,3724,3747,3749,3749,3751,3760,3762,3763,3773,3773,3776,3780,3782,3782,3804,3807,3840,3840,3904,3911,3913,3948,3976,3980,4096,4138,4159,4159,4176,4181,4186,4189,4193,4193,4197,4198,4206,4208,4213,4225,4238,4238,4256,4293,4295,4295,4301,4301,4304,4346,4348,4680,4682,4685,4688,4694,4696,4696,4698,4701,4704,4744,4746,4749,4752,4784,4786,4789,4792,4798,4800,4800,4802,4805,4808,4822,4824,4880,4882,4885,4888,4954,4992,5007,5024,5109,5112,5117,5121,5740,5743,5759,5761,5786,5792,5866,5870,5880,5888,5905,5919,5937,5952,5969,5984,5996,5998,6e3,6016,6067,6103,6103,6108,6108,6176,6264,6272,6312,6314,6314,6320,6389,6400,6430,6480,6509,6512,6516,6528,6571,6576,6601,6656,6678,6688,6740,6823,6823,6917,6963,6981,6988,7043,7072,7086,7087,7098,7141,7168,7203,7245,7247,7258,7293,7296,7304,7312,7354,7357,7359,7401,7404,7406,7411,7413,7414,7418,7418,7424,7615,7680,7957,7960,7965,7968,8005,8008,8013,8016,8023,8025,8025,8027,8027,8029,8029,8031,8061,8064,8116,8118,8124,8126,8126,8130,8132,8134,8140,8144,8147,8150,8155,8160,8172,8178,8180,8182,8188,8305,8305,8319,8319,8336,8348,8450,8450,8455,8455,8458,8467,8469,8469,8472,8477,8484,8484,8486,8486,8488,8488,8490,8505,8508,8511,8517,8521,8526,8526,8544,8584,11264,11492,11499,11502,11506,11507,11520,11557,11559,11559,11565,11565,11568,11623,11631,11631,11648,11670,11680,11686,11688,11694,11696,11702,11704,11710,11712,11718,11720,11726,11728,11734,11736,11742,12293,12295,12321,12329,12337,12341,12344,12348,12353,12438,12443,12447,12449,12538,12540,12543,12549,12591,12593,12686,12704,12735,12784,12799,13312,19903,19968,42124,42192,42237,42240,42508,42512,42527,42538,42539,42560,42606,42623,42653,42656,42735,42775,42783,42786,42888,42891,42954,42960,42961,42963,42963,42965,42969,42994,43009,43011,43013,43015,43018,43020,43042,43072,43123,43138,43187,43250,43255,43259,43259,43261,43262,43274,43301,43312,43334,43360,43388,43396,43442,43471,43471,43488,43492,43494,43503,43514,43518,43520,43560,43584,43586,43588,43595,43616,43638,43642,43642,43646,43695,43697,43697,43701,43702,43705,43709,43712,43712,43714,43714,43739,43741,43744,43754,43762,43764,43777,43782,43785,43790,43793,43798,43808,43814,43816,43822,43824,43866,43868,43881,43888,44002,44032,55203,55216,55238,55243,55291,63744,64109,64112,64217,64256,64262,64275,64279,64285,64285,64287,64296,64298,64310,64312,64316,64318,64318,64320,64321,64323,64324,64326,64433,64467,64829,64848,64911,64914,64967,65008,65019,65136,65140,65142,65276,65313,65338,65345,65370,65382,65470,65474,65479,65482,65487,65490,65495,65498,65500,65536,65547,65549,65574,65576,65594,65596,65597,65599,65613,65616,65629,65664,65786,65856,65908,66176,66204,66208,66256,66304,66335,66349,66378,66384,66421,66432,66461,66464,66499,66504,66511,66513,66517,66560,66717,66736,66771,66776,66811,66816,66855,66864,66915,66928,66938,66940,66954,66956,66962,66964,66965,66967,66977,66979,66993,66995,67001,67003,67004,67072,67382,67392,67413,67424,67431,67456,67461,67463,67504,67506,67514,67584,67589,67592,67592,67594,67637,67639,67640,67644,67644,67647,67669,67680,67702,67712,67742,67808,67826,67828,67829,67840,67861,67872,67897,67968,68023,68030,68031,68096,68096,68112,68115,68117,68119,68121,68149,68192,68220,68224,68252,68288,68295,68297,68324,68352,68405,68416,68437,68448,68466,68480,68497,68608,68680,68736,68786,68800,68850,68864,68899,69248,69289,69296,69297,69376,69404,69415,69415,69424,69445,69488,69505,69552,69572,69600,69622,69635,69687,69745,69746,69749,69749,69763,69807,69840,69864,69891,69926,69956,69956,69959,69959,69968,70002,70006,70006,70019,70066,70081,70084,70106,70106,70108,70108,70144,70161,70163,70187,70207,70208,70272,70278,70280,70280,70282,70285,70287,70301,70303,70312,70320,70366,70405,70412,70415,70416,70419,70440,70442,70448,70450,70451,70453,70457,70461,70461,70480,70480,70493,70497,70656,70708,70727,70730,70751,70753,70784,70831,70852,70853,70855,70855,71040,71086,71128,71131,71168,71215,71236,71236,71296,71338,71352,71352,71424,71450,71488,71494,71680,71723,71840,71903,71935,71942,71945,71945,71948,71955,71957,71958,71960,71983,71999,71999,72001,72001,72096,72103,72106,72144,72161,72161,72163,72163,72192,72192,72203,72242,72250,72250,72272,72272,72284,72329,72349,72349,72368,72440,72704,72712,72714,72750,72768,72768,72818,72847,72960,72966,72968,72969,72971,73008,73030,73030,73056,73061,73063,73064,73066,73097,73112,73112,73440,73458,73474,73474,73476,73488,73490,73523,73648,73648,73728,74649,74752,74862,74880,75075,77712,77808,77824,78895,78913,78918,82944,83526,92160,92728,92736,92766,92784,92862,92880,92909,92928,92975,92992,92995,93027,93047,93053,93071,93760,93823,93952,94026,94032,94032,94099,94111,94176,94177,94179,94179,94208,100343,100352,101589,101632,101640,110576,110579,110581,110587,110589,110590,110592,110882,110898,110898,110928,110930,110933,110933,110948,110951,110960,111355,113664,113770,113776,113788,113792,113800,113808,113817,119808,119892,119894,119964,119966,119967,119970,119970,119973,119974,119977,119980,119982,119993,119995,119995,119997,120003,120005,120069,120071,120074,120077,120084,120086,120092,120094,120121,120123,120126,120128,120132,120134,120134,120138,120144,120146,120485,120488,120512,120514,120538,120540,120570,120572,120596,120598,120628,120630,120654,120656,120686,120688,120712,120714,120744,120746,120770,120772,120779,122624,122654,122661,122666,122928,122989,123136,123180,123191,123197,123214,123214,123536,123565,123584,123627,124112,124139,124896,124902,124904,124907,124909,124910,124912,124926,124928,125124,125184,125251,125259,125259,126464,126467,126469,126495,126497,126498,126500,126500,126503,126503,126505,126514,126516,126519,126521,126521,126523,126523,126530,126530,126535,126535,126537,126537,126539,126539,126541,126543,126545,126546,126548,126548,126551,126551,126553,126553,126555,126555,126557,126557,126559,126559,126561,126562,126564,126564,126567,126570,126572,126578,126580,126583,126585,126588,126590,126590,126592,126601,126603,126619,126625,126627,126629,126633,126635,126651,131072,173791,173824,177977,177984,178205,178208,183969,183984,191456,191472,192093,194560,195101,196608,201546,201552,205743],ba=[48,57,65,90,95,95,97,122,170,170,181,181,183,183,186,186,192,214,216,246,248,705,710,721,736,740,748,748,750,750,768,884,886,887,890,893,895,895,902,906,908,908,910,929,931,1013,1015,1153,1155,1159,1162,1327,1329,1366,1369,1369,1376,1416,1425,1469,1471,1471,1473,1474,1476,1477,1479,1479,1488,1514,1519,1522,1552,1562,1568,1641,1646,1747,1749,1756,1759,1768,1770,1788,1791,1791,1808,1866,1869,1969,1984,2037,2042,2042,2045,2045,2048,2093,2112,2139,2144,2154,2160,2183,2185,2190,2200,2273,2275,2403,2406,2415,2417,2435,2437,2444,2447,2448,2451,2472,2474,2480,2482,2482,2486,2489,2492,2500,2503,2504,2507,2510,2519,2519,2524,2525,2527,2531,2534,2545,2556,2556,2558,2558,2561,2563,2565,2570,2575,2576,2579,2600,2602,2608,2610,2611,2613,2614,2616,2617,2620,2620,2622,2626,2631,2632,2635,2637,2641,2641,2649,2652,2654,2654,2662,2677,2689,2691,2693,2701,2703,2705,2707,2728,2730,2736,2738,2739,2741,2745,2748,2757,2759,2761,2763,2765,2768,2768,2784,2787,2790,2799,2809,2815,2817,2819,2821,2828,2831,2832,2835,2856,2858,2864,2866,2867,2869,2873,2876,2884,2887,2888,2891,2893,2901,2903,2908,2909,2911,2915,2918,2927,2929,2929,2946,2947,2949,2954,2958,2960,2962,2965,2969,2970,2972,2972,2974,2975,2979,2980,2984,2986,2990,3001,3006,3010,3014,3016,3018,3021,3024,3024,3031,3031,3046,3055,3072,3084,3086,3088,3090,3112,3114,3129,3132,3140,3142,3144,3146,3149,3157,3158,3160,3162,3165,3165,3168,3171,3174,3183,3200,3203,3205,3212,3214,3216,3218,3240,3242,3251,3253,3257,3260,3268,3270,3272,3274,3277,3285,3286,3293,3294,3296,3299,3302,3311,3313,3315,3328,3340,3342,3344,3346,3396,3398,3400,3402,3406,3412,3415,3423,3427,3430,3439,3450,3455,3457,3459,3461,3478,3482,3505,3507,3515,3517,3517,3520,3526,3530,3530,3535,3540,3542,3542,3544,3551,3558,3567,3570,3571,3585,3642,3648,3662,3664,3673,3713,3714,3716,3716,3718,3722,3724,3747,3749,3749,3751,3773,3776,3780,3782,3782,3784,3790,3792,3801,3804,3807,3840,3840,3864,3865,3872,3881,3893,3893,3895,3895,3897,3897,3902,3911,3913,3948,3953,3972,3974,3991,3993,4028,4038,4038,4096,4169,4176,4253,4256,4293,4295,4295,4301,4301,4304,4346,4348,4680,4682,4685,4688,4694,4696,4696,4698,4701,4704,4744,4746,4749,4752,4784,4786,4789,4792,4798,4800,4800,4802,4805,4808,4822,4824,4880,4882,4885,4888,4954,4957,4959,4969,4977,4992,5007,5024,5109,5112,5117,5121,5740,5743,5759,5761,5786,5792,5866,5870,5880,5888,5909,5919,5940,5952,5971,5984,5996,5998,6e3,6002,6003,6016,6099,6103,6103,6108,6109,6112,6121,6155,6157,6159,6169,6176,6264,6272,6314,6320,6389,6400,6430,6432,6443,6448,6459,6470,6509,6512,6516,6528,6571,6576,6601,6608,6618,6656,6683,6688,6750,6752,6780,6783,6793,6800,6809,6823,6823,6832,6845,6847,6862,6912,6988,6992,7001,7019,7027,7040,7155,7168,7223,7232,7241,7245,7293,7296,7304,7312,7354,7357,7359,7376,7378,7380,7418,7424,7957,7960,7965,7968,8005,8008,8013,8016,8023,8025,8025,8027,8027,8029,8029,8031,8061,8064,8116,8118,8124,8126,8126,8130,8132,8134,8140,8144,8147,8150,8155,8160,8172,8178,8180,8182,8188,8204,8205,8255,8256,8276,8276,8305,8305,8319,8319,8336,8348,8400,8412,8417,8417,8421,8432,8450,8450,8455,8455,8458,8467,8469,8469,8472,8477,8484,8484,8486,8486,8488,8488,8490,8505,8508,8511,8517,8521,8526,8526,8544,8584,11264,11492,11499,11507,11520,11557,11559,11559,11565,11565,11568,11623,11631,11631,11647,11670,11680,11686,11688,11694,11696,11702,11704,11710,11712,11718,11720,11726,11728,11734,11736,11742,11744,11775,12293,12295,12321,12335,12337,12341,12344,12348,12353,12438,12441,12447,12449,12543,12549,12591,12593,12686,12704,12735,12784,12799,13312,19903,19968,42124,42192,42237,42240,42508,42512,42539,42560,42607,42612,42621,42623,42737,42775,42783,42786,42888,42891,42954,42960,42961,42963,42963,42965,42969,42994,43047,43052,43052,43072,43123,43136,43205,43216,43225,43232,43255,43259,43259,43261,43309,43312,43347,43360,43388,43392,43456,43471,43481,43488,43518,43520,43574,43584,43597,43600,43609,43616,43638,43642,43714,43739,43741,43744,43759,43762,43766,43777,43782,43785,43790,43793,43798,43808,43814,43816,43822,43824,43866,43868,43881,43888,44010,44012,44013,44016,44025,44032,55203,55216,55238,55243,55291,63744,64109,64112,64217,64256,64262,64275,64279,64285,64296,64298,64310,64312,64316,64318,64318,64320,64321,64323,64324,64326,64433,64467,64829,64848,64911,64914,64967,65008,65019,65024,65039,65056,65071,65075,65076,65101,65103,65136,65140,65142,65276,65296,65305,65313,65338,65343,65343,65345,65370,65381,65470,65474,65479,65482,65487,65490,65495,65498,65500,65536,65547,65549,65574,65576,65594,65596,65597,65599,65613,65616,65629,65664,65786,65856,65908,66045,66045,66176,66204,66208,66256,66272,66272,66304,66335,66349,66378,66384,66426,66432,66461,66464,66499,66504,66511,66513,66517,66560,66717,66720,66729,66736,66771,66776,66811,66816,66855,66864,66915,66928,66938,66940,66954,66956,66962,66964,66965,66967,66977,66979,66993,66995,67001,67003,67004,67072,67382,67392,67413,67424,67431,67456,67461,67463,67504,67506,67514,67584,67589,67592,67592,67594,67637,67639,67640,67644,67644,67647,67669,67680,67702,67712,67742,67808,67826,67828,67829,67840,67861,67872,67897,67968,68023,68030,68031,68096,68099,68101,68102,68108,68115,68117,68119,68121,68149,68152,68154,68159,68159,68192,68220,68224,68252,68288,68295,68297,68326,68352,68405,68416,68437,68448,68466,68480,68497,68608,68680,68736,68786,68800,68850,68864,68903,68912,68921,69248,69289,69291,69292,69296,69297,69373,69404,69415,69415,69424,69456,69488,69509,69552,69572,69600,69622,69632,69702,69734,69749,69759,69818,69826,69826,69840,69864,69872,69881,69888,69940,69942,69951,69956,69959,69968,70003,70006,70006,70016,70084,70089,70092,70094,70106,70108,70108,70144,70161,70163,70199,70206,70209,70272,70278,70280,70280,70282,70285,70287,70301,70303,70312,70320,70378,70384,70393,70400,70403,70405,70412,70415,70416,70419,70440,70442,70448,70450,70451,70453,70457,70459,70468,70471,70472,70475,70477,70480,70480,70487,70487,70493,70499,70502,70508,70512,70516,70656,70730,70736,70745,70750,70753,70784,70853,70855,70855,70864,70873,71040,71093,71096,71104,71128,71133,71168,71232,71236,71236,71248,71257,71296,71352,71360,71369,71424,71450,71453,71467,71472,71481,71488,71494,71680,71738,71840,71913,71935,71942,71945,71945,71948,71955,71957,71958,71960,71989,71991,71992,71995,72003,72016,72025,72096,72103,72106,72151,72154,72161,72163,72164,72192,72254,72263,72263,72272,72345,72349,72349,72368,72440,72704,72712,72714,72758,72760,72768,72784,72793,72818,72847,72850,72871,72873,72886,72960,72966,72968,72969,72971,73014,73018,73018,73020,73021,73023,73031,73040,73049,73056,73061,73063,73064,73066,73102,73104,73105,73107,73112,73120,73129,73440,73462,73472,73488,73490,73530,73534,73538,73552,73561,73648,73648,73728,74649,74752,74862,74880,75075,77712,77808,77824,78895,78912,78933,82944,83526,92160,92728,92736,92766,92768,92777,92784,92862,92864,92873,92880,92909,92912,92916,92928,92982,92992,92995,93008,93017,93027,93047,93053,93071,93760,93823,93952,94026,94031,94087,94095,94111,94176,94177,94179,94180,94192,94193,94208,100343,100352,101589,101632,101640,110576,110579,110581,110587,110589,110590,110592,110882,110898,110898,110928,110930,110933,110933,110948,110951,110960,111355,113664,113770,113776,113788,113792,113800,113808,113817,113821,113822,118528,118573,118576,118598,119141,119145,119149,119154,119163,119170,119173,119179,119210,119213,119362,119364,119808,119892,119894,119964,119966,119967,119970,119970,119973,119974,119977,119980,119982,119993,119995,119995,119997,120003,120005,120069,120071,120074,120077,120084,120086,120092,120094,120121,120123,120126,120128,120132,120134,120134,120138,120144,120146,120485,120488,120512,120514,120538,120540,120570,120572,120596,120598,120628,120630,120654,120656,120686,120688,120712,120714,120744,120746,120770,120772,120779,120782,120831,121344,121398,121403,121452,121461,121461,121476,121476,121499,121503,121505,121519,122624,122654,122661,122666,122880,122886,122888,122904,122907,122913,122915,122916,122918,122922,122928,122989,123023,123023,123136,123180,123184,123197,123200,123209,123214,123214,123536,123566,123584,123641,124112,124153,124896,124902,124904,124907,124909,124910,124912,124926,124928,125124,125136,125142,125184,125259,125264,125273,126464,126467,126469,126495,126497,126498,126500,126500,126503,126503,126505,126514,126516,126519,126521,126521,126523,126523,126530,126530,126535,126535,126537,126537,126539,126539,126541,126543,126545,126546,126548,126548,126551,126551,126553,126553,126555,126555,126557,126557,126559,126559,126561,126562,126564,126564,126567,126570,126572,126578,126580,126583,126585,126588,126590,126590,126592,126601,126603,126619,126625,126627,126629,126633,126635,126651,130032,130041,131072,173791,173824,177977,177984,178205,178208,183969,183984,191456,191472,192093,194560,195101,196608,201546,201552,205743,917760,917999],xa=/^\/\/\/?\s*@(ts-expect-error|ts-ignore)/,ka=/^(?:\/|\*)*\s*@(ts-expect-error|ts-ignore)/,Sa=/@(?:see|link)/i;function Ta(e,t){if(e=2?va:ha)}function wa(e){const t=[];return e.forEach(((e,n)=>{t[e]=n})),t}var Na=wa(fa);function Da(e){return Na[e]}function Fa(e){return fa.get(e)}var Ea=wa(ma);function Pa(e){return Ea[e]}function Aa(e){return ma.get(e)}function Ia(e){const t=[];let n=0,r=0;for(;n127&&Ua(i)&&(t.push(r),r=n)}}return t.push(r),t}function Oa(e,t,n,r){return e.getPositionOfLineAndCharacter?e.getPositionOfLineAndCharacter(t,n,r):La(ja(e),t,n,e.text,r)}function La(e,t,n,r,i){(t<0||t>=e.length)&&(i?t=t<0?0:t>=e.length?e.length-1:t:un.fail(`Bad line number. Line: ${t}, lineStarts.length: ${e.length} , line map is correct? ${void 0!==r?te(e,Ia(r)):"unknown"}`));const o=e[t]+n;return i?o>e[t+1]?e[t+1]:"string"==typeof r&&o>r.length?r.length:o:(t=8192&&e<=8203||8239===e||8287===e||12288===e||65279===e}function Ua(e){return 10===e||13===e||8232===e||8233===e}function Va(e){return e>=48&&e<=57}function Wa(e){return Va(e)||e>=65&&e<=70||e>=97&&e<=102}function $a(e){return e>=65&&e<=90||e>=97&&e<=122}function Ha(e){return $a(e)||Va(e)||95===e}function Ka(e){return e>=48&&e<=55}function Ga(e,t){const n=e.charCodeAt(t);switch(n){case 13:case 10:case 9:case 11:case 12:case 32:case 47:case 60:case 124:case 61:case 62:return!0;case 35:return 0===t;default:return n>127}}function Xa(e,t,n,r,i){if(KS(t))return t;let o=!1;for(;;){const a=e.charCodeAt(t);switch(a){case 13:10===e.charCodeAt(t+1)&&t++;case 10:if(t++,n)return t;o=!!i;continue;case 9:case 11:case 12:case 32:t++;continue;case 47:if(r)break;if(47===e.charCodeAt(t+1)){for(t+=2;t127&&za(a)){t++;continue}}return t}}var Qa=7;function Ya(e,t){if(un.assert(t>=0),0===t||Ua(e.charCodeAt(t-1))){const n=e.charCodeAt(t);if(t+Qa=0&&n127&&za(a)){u&&Ua(a)&&(_=!0),n++;continue}break e}}return u&&(p=i(s,c,l,_,o,p)),p}function is(e,t,n,r){return rs(!1,e,t,!1,n,r)}function os(e,t,n,r){return rs(!1,e,t,!0,n,r)}function as(e,t,n,r,i){return rs(!0,e,t,!1,n,r,i)}function ss(e,t,n,r,i){return rs(!0,e,t,!0,n,r,i)}function cs(e,t,n,r,i,o=[]){return o.push({kind:n,pos:e,end:t,hasTrailingNewLine:r}),o}function ls(e,t){return as(e,t,cs,void 0,void 0)}function _s(e,t){return ss(e,t,cs,void 0,void 0)}function us(e){const t=es.exec(e);if(t)return t[0]}function ds(e,t){return $a(e)||36===e||95===e||e>127&&Ca(e,t)}function ps(e,t,n){return Ha(e)||36===e||1===n&&(45===e||58===e)||e>127&&function(e,t){return Ta(e,t>=2?ba:ya)}(e,t)}function fs(e,t,n){let r=gs(e,0);if(!ds(r,t))return!1;for(let i=hs(r);il,getStartPos:()=>l,getTokenEnd:()=>s,getTextPos:()=>s,getToken:()=>u,getTokenStart:()=>_,getTokenPos:()=>_,getTokenText:()=>g.substring(_,s),getTokenValue:()=>p,hasUnicodeEscape:()=>!!(1024&f),hasExtendedUnicodeEscape:()=>!!(8&f),hasPrecedingLineBreak:()=>!!(1&f),hasPrecedingJSDocComment:()=>!!(2&f),hasPrecedingJSDocLeadingAsterisks:()=>!!(32768&f),isIdentifier:()=>80===u||u>118,isReservedWord:()=>u>=83&&u<=118,isUnterminated:()=>!!(4&f),getCommentDirectives:()=>m,getNumericLiteralFlags:()=>25584&f,getTokenFlags:()=>f,reScanGreaterToken:function(){if(32===u){if(62===S(s))return 62===S(s+1)?61===S(s+2)?(s+=3,u=73):(s+=2,u=50):61===S(s+1)?(s+=2,u=72):(s++,u=49);if(61===S(s))return s++,u=34}return u},reScanAsteriskEqualsToken:function(){return un.assert(67===u,"'reScanAsteriskEqualsToken' should only be called on a '*='"),s=_+1,u=64},reScanSlashToken:function(t){if(44===u||69===u){const n=_+1;s=n;let r=!1,i=!1,a=!1;for(;;){const e=T(s);if(-1===e||Ua(e)){f|=4;break}if(r)r=!1;else{if(47===e&&!a)break;91===e?a=!0:92===e?r=!0:93===e?a=!1:a||40!==e||63!==T(s+1)||60!==T(s+2)||61===T(s+3)||33===T(s+3)||(i=!0)}s++}const l=s;if(4&f){s=n,r=!1;let e=0,t=!1,i=0;for(;s{!function(t,n,r){var i,a,l,u,f=!!(64&t),m=!!(96&t),h=m||!1,y=!1,v=0,b=[];function x(e){for(;;){if(b.push(u),u=void 0,w(e),u=b.pop(),124!==T(s))return;s++}}function w(t){let n=!1;for(;;){const r=s,i=T(s);switch(i){case-1:return;case 94:case 36:s++,n=!1;break;case 92:switch(T(++s)){case 98:case 66:s++,n=!1;break;default:D(),n=!0}break;case 40:if(63===T(++s))switch(T(++s)){case 61:case 33:s++,n=!h;break;case 60:const t=s;switch(T(++s)){case 61:case 33:s++,n=!1;break;default:P(!1),U(62),e<5&&C(la.Named_capturing_groups_are_only_available_when_targeting_ES2018_or_later,t,s-t),v++,n=!0}break;default:const r=s,i=N(0);45===T(s)&&(s++,N(i),s===r+1&&C(la.Subpattern_flags_must_be_present_when_there_is_a_minus_sign,r,s-r)),U(58),n=!0}else v++,n=!0;x(!0),U(41);break;case 123:const o=++s;F();const a=p;if(!h&&!a){n=!0;break}if(44===T(s)){s++,F();const e=p;if(a)e&&Number.parseInt(a)>Number.parseInt(e)&&(h||125===T(s))&&C(la.Numbers_out_of_order_in_quantifier,o,s-o);else{if(!e&&125!==T(s)){C(la.Unexpected_0_Did_you_mean_to_escape_it_with_backslash,r,1,String.fromCharCode(i)),n=!0;break}C(la.Incomplete_quantifier_Digit_expected,o,0)}}else if(!a){h&&C(la.Unexpected_0_Did_you_mean_to_escape_it_with_backslash,r,1,String.fromCharCode(i)),n=!0;break}if(125!==T(s)){if(!h){n=!0;break}C(la._0_expected,s,0,String.fromCharCode(125)),s--}case 42:case 43:case 63:63===T(++s)&&s++,n||C(la.There_is_nothing_available_for_repetition,r,s-r),n=!1;break;case 46:s++,n=!0;break;case 91:s++,f?L():I(),U(93),n=!0;break;case 41:if(t)return;case 93:case 125:(h||41===i)&&C(la.Unexpected_0_Did_you_mean_to_escape_it_with_backslash,s,1,String.fromCharCode(i)),s++,n=!0;break;case 47:case 124:return;default:q(),n=!0}}}function N(t){for(;;){const n=k(s);if(-1===n||!ps(n,e))break;const r=hs(n),i=Aa(n);void 0===i?C(la.Unknown_regular_expression_flag,s,r):t&i?C(la.Duplicate_regular_expression_flag,s,r):28&i?(t|=i,W(i,r)):C(la.This_regular_expression_flag_cannot_be_toggled_within_a_subpattern,s,r),s+=r}return t}function D(){switch(un.assertEqual(S(s-1),92),T(s)){case 107:60===T(++s)?(s++,P(!0),U(62)):(h||r)&&C(la.k_must_be_followed_by_a_capturing_group_name_enclosed_in_angle_brackets,s-2,2);break;case 113:if(f){s++,C(la.q_is_only_available_inside_character_class,s-2,2);break}default:un.assert(J()||function(){un.assertEqual(S(s-1),92);const e=T(s);if(e>=49&&e<=57){const e=s;return F(),l=ie(l,{pos:e,end:s,value:+p}),!0}return!1}()||E(!0))}}function E(e){un.assertEqual(S(s-1),92);let t=T(s);switch(t){case-1:return C(la.Undetermined_character_escape,s-1,1),"\\";case 99:if(t=T(++s),$a(t))return s++,String.fromCharCode(31&t);if(h)C(la.c_must_be_followed_by_an_ASCII_letter,s-2,2);else if(e)return s--,"\\";return String.fromCharCode(t);case 94:case 36:case 47:case 92:case 46:case 42:case 43:case 63:case 40:case 41:case 91:case 93:case 123:case 125:case 124:return s++,String.fromCharCode(t);default:return s--,O(12|(m?16:0)|(e?32:0))}}function P(t){un.assertEqual(S(s-1),60),_=s,V(k(s),e),s===_?C(la.Expected_a_capturing_group_name):t?a=ie(a,{pos:_,end:s,name:p}):(null==u?void 0:u.has(p))||b.some((e=>null==e?void 0:e.has(p)))?C(la.Named_capturing_groups_with_the_same_name_must_be_mutually_exclusive_to_each_other,_,s-_):(u??(u=new Set),u.add(p),i??(i=new Set),i.add(p))}function A(e){return 93===e||-1===e||s>=c}function I(){for(un.assertEqual(S(s-1),91),94===T(s)&&s++;;){if(A(T(s)))return;const e=s,t=B();if(45===T(s)){if(A(T(++s)))return;!t&&h&&C(la.A_character_class_range_must_not_be_bounded_by_another_character_class,e,s-1-e);const n=s,r=B();if(!r&&h){C(la.A_character_class_range_must_not_be_bounded_by_another_character_class,n,s-n);continue}if(!t)continue;const i=gs(t,0),o=gs(r,0);t.length===hs(i)&&r.length===hs(o)&&i>o&&C(la.Range_out_of_order_in_character_class,e,s-e)}}}function L(){un.assertEqual(S(s-1),91);let e=!1;94===T(s)&&(s++,e=!0);let t=!1,n=T(s);if(A(n))return;let r,i=s;switch(g.slice(s,s+2)){case"--":case"&&":C(la.Expected_a_class_set_operand),y=!1;break;default:r=R()}switch(T(s)){case 45:if(45===T(s+1))return e&&y&&C(la.Anything_that_would_possibly_match_more_than_a_single_character_is_invalid_inside_a_negated_character_class,i,s-i),t=y,j(3),void(y=!e&&t);break;case 38:if(38===T(s+1))return j(2),e&&y&&C(la.Anything_that_would_possibly_match_more_than_a_single_character_is_invalid_inside_a_negated_character_class,i,s-i),t=y,void(y=!e&&t);C(la.Unexpected_0_Did_you_mean_to_escape_it_with_backslash,s,1,String.fromCharCode(n));break;default:e&&y&&C(la.Anything_that_would_possibly_match_more_than_a_single_character_is_invalid_inside_a_negated_character_class,i,s-i),t=y}for(;n=T(s),-1!==n;){switch(n){case 45:if(n=T(++s),A(n))return void(y=!e&&t);if(45===n){s++,C(la.Operators_must_not_be_mixed_within_a_character_class_Wrap_it_in_a_nested_class_instead,s-2,2),i=s-2,r=g.slice(i,s);continue}{r||C(la.A_character_class_range_must_not_be_bounded_by_another_character_class,i,s-1-i);const n=s,o=R();if(e&&y&&C(la.Anything_that_would_possibly_match_more_than_a_single_character_is_invalid_inside_a_negated_character_class,n,s-n),t||(t=y),!o){C(la.A_character_class_range_must_not_be_bounded_by_another_character_class,n,s-n);break}if(!r)break;const a=gs(r,0),c=gs(o,0);r.length===hs(a)&&o.length===hs(c)&&a>c&&C(la.Range_out_of_order_in_character_class,i,s-i)}break;case 38:i=s,38===T(++s)?(s++,C(la.Operators_must_not_be_mixed_within_a_character_class_Wrap_it_in_a_nested_class_instead,s-2,2),38===T(s)&&(C(la.Unexpected_0_Did_you_mean_to_escape_it_with_backslash,s,1,String.fromCharCode(n)),s++)):C(la.Unexpected_0_Did_you_mean_to_escape_it_with_backslash,s-1,1,String.fromCharCode(n)),r=g.slice(i,s);continue}if(A(T(s)))break;switch(i=s,g.slice(s,s+2)){case"--":case"&&":C(la.Operators_must_not_be_mixed_within_a_character_class_Wrap_it_in_a_nested_class_instead,s,2),s+=2,r=g.slice(i,s);break;default:r=R()}}y=!e&&t}function j(e){let t=y;for(;;){let n=T(s);if(A(n))break;switch(n){case 45:45===T(++s)?(s++,3!==e&&C(la.Operators_must_not_be_mixed_within_a_character_class_Wrap_it_in_a_nested_class_instead,s-2,2)):C(la.Operators_must_not_be_mixed_within_a_character_class_Wrap_it_in_a_nested_class_instead,s-1,1);break;case 38:38===T(++s)?(s++,2!==e&&C(la.Operators_must_not_be_mixed_within_a_character_class_Wrap_it_in_a_nested_class_instead,s-2,2),38===T(s)&&(C(la.Unexpected_0_Did_you_mean_to_escape_it_with_backslash,s,1,String.fromCharCode(n)),s++)):C(la.Unexpected_0_Did_you_mean_to_escape_it_with_backslash,s-1,1,String.fromCharCode(n));break;default:switch(e){case 3:C(la._0_expected,s,0,"--");break;case 2:C(la._0_expected,s,0,"&&")}}if(n=T(s),A(n)){C(la.Expected_a_class_set_operand);break}R(),t&&(t=y)}y=t}function R(){switch(y=!1,T(s)){case-1:return"";case 91:return s++,L(),U(93),"";case 92:if(s++,J())return"";if(113===T(s))return 123===T(++s)?(s++,function(){un.assertEqual(S(s-1),123);let e=0;for(;;)switch(T(s)){case-1:return;case 125:return void(1!==e&&(y=!0));case 124:1!==e&&(y=!0),s++,o=s,e=0;break;default:M(),e++}}(),U(125),""):(C(la.q_must_be_followed_by_string_alternatives_enclosed_in_braces,s-2,2),"q");s--;default:return M()}}function M(){const e=T(s);if(-1===e)return"";if(92===e){const e=T(++s);switch(e){case 98:return s++,"\b";case 38:case 45:case 33:case 35:case 37:case 44:case 58:case 59:case 60:case 61:case 62:case 64:case 96:case 126:return s++,String.fromCharCode(e);default:return E(!1)}}else if(e===T(s+1))switch(e){case 38:case 33:case 35:case 37:case 42:case 43:case 44:case 46:case 58:case 59:case 60:case 61:case 62:case 63:case 64:case 96:case 126:return C(la.A_character_class_must_not_contain_a_reserved_double_punctuator_Did_you_mean_to_escape_it_with_backslash,s,2),s+=2,g.substring(s-2,s)}switch(e){case 47:case 40:case 41:case 91:case 93:case 123:case 125:case 45:case 124:return C(la.Unexpected_0_Did_you_mean_to_escape_it_with_backslash,s,1,String.fromCharCode(e)),s++,String.fromCharCode(e)}return q()}function B(){if(92!==T(s))return q();{const e=T(++s);switch(e){case 98:return s++,"\b";case 45:return s++,String.fromCharCode(e);default:return J()?"":E(!1)}}}function J(){un.assertEqual(S(s-1),92);let e=!1;const t=s-1,n=T(s);switch(n){case 100:case 68:case 115:case 83:case 119:case 87:return s++,!0;case 80:e=!0;case 112:if(123===T(++s)){const n=++s,r=z();if(61===T(s)){const e=bs.get(r);if(s===n)C(la.Expected_a_Unicode_property_name);else if(void 0===e){C(la.Unknown_Unicode_property_name,n,s-n);const e=Lt(r,bs.keys(),st);e&&C(la.Did_you_mean_0,n,s-n,e)}const t=++s,i=z();if(s===t)C(la.Expected_a_Unicode_property_value);else if(void 0!==e&&!Ss[e].has(i)){C(la.Unknown_Unicode_property_value,t,s-t);const n=Lt(i,Ss[e],st);n&&C(la.Did_you_mean_0,t,s-t,n)}}else if(s===n)C(la.Expected_a_Unicode_property_name_or_value);else if(ks.has(r))f?e?C(la.Anything_that_would_possibly_match_more_than_a_single_character_is_invalid_inside_a_negated_character_class,n,s-n):y=!0:C(la.Any_Unicode_property_that_would_possibly_match_more_than_a_single_character_is_only_available_when_the_Unicode_Sets_v_flag_is_set,n,s-n);else if(!Ss.General_Category.has(r)&&!xs.has(r)){C(la.Unknown_Unicode_property_name_or_value,n,s-n);const e=Lt(r,[...Ss.General_Category,...xs,...ks],st);e&&C(la.Did_you_mean_0,n,s-n,e)}U(125),m||C(la.Unicode_property_value_expressions_are_only_available_when_the_Unicode_u_flag_or_the_Unicode_Sets_v_flag_is_set,t,s-t)}else{if(!h)return s--,!1;C(la._0_must_be_followed_by_a_Unicode_property_value_expression_enclosed_in_braces,s-2,2,String.fromCharCode(n))}return!0}return!1}function z(){let e="";for(;;){const t=T(s);if(-1===t||!Ha(t))break;e+=String.fromCharCode(t),s++}return e}function q(){const e=m?hs(k(s)):1;return s+=e,e>0?g.substring(s-e,s):""}function U(e){T(s)===e?s++:C(la._0_expected,s,0,String.fromCharCode(e))}x(!1),d(a,(e=>{if(!(null==i?void 0:i.has(e.name))&&(C(la.There_is_no_capturing_group_named_0_in_this_regular_expression,e.pos,e.end-e.pos,e.name),i)){const t=Lt(e.name,i,st);t&&C(la.Did_you_mean_0,e.pos,e.end-e.pos,t)}})),d(l,(e=>{e.value>v&&(v?C(la.This_backreference_refers_to_a_group_that_does_not_exist_There_are_only_0_capturing_groups_in_this_regular_expression,e.pos,e.end-e.pos,v):C(la.This_backreference_refers_to_a_group_that_does_not_exist_There_are_no_capturing_groups_in_this_regular_expression,e.pos,e.end-e.pos))}))}(r,0,i)}))}p=g.substring(_,s),u=14}return u},reScanTemplateToken:function(e){return s=_,u=I(!e)},reScanTemplateHeadOrNoSubstitutionTemplate:function(){return s=_,u=I(!0)},scanJsxIdentifier:function(){if(_a(u)){for(;s=c)return u=1;for(let t=S(s);s=0&&qa(S(s-1))&&!(s+1{const e=b.getText();return e.slice(0,b.getTokenFullStart())+"â•‘"+e.slice(b.getTokenFullStart())}}),b;function x(e){return gs(g,e)}function k(e){return e>=0&&e=0&&e=65&&e<=70)e+=32;else if(!(e>=48&&e<=57||e>=97&&e<=102))break;r.push(e),s++,o=!1}}return r.length=c){n+=g.substring(r,s),f|=4,C(la.Unterminated_string_literal);break}const i=S(s);if(i===t){n+=g.substring(r,s),s++;break}if(92!==i||e){if((10===i||13===i)&&!e){n+=g.substring(r,s),f|=4,C(la.Unterminated_string_literal);break}s++}else n+=g.substring(r,s),n+=O(3),r=s}return n}function I(e){const t=96===S(s);let n,r=++s,i="";for(;;){if(s>=c){i+=g.substring(r,s),f|=4,C(la.Unterminated_template_literal),n=t?15:18;break}const o=S(s);if(96===o){i+=g.substring(r,s),s++,n=t?15:18;break}if(36===o&&s+1=c)return C(la.Unexpected_end_of_text),"";const r=S(s);switch(s++,r){case 48:if(s>=c||!Va(S(s)))return"\0";case 49:case 50:case 51:s=55296&&i<=56319&&s+6=56320&&n<=57343)return s=t,o+String.fromCharCode(n)}return o;case 120:for(;s1114111&&(e&&C(la.An_extended_Unicode_escape_value_must_be_between_0x0_and_0x10FFFF_inclusive,n,s-n),o=!0),s>=c?(e&&C(la.Unexpected_end_of_text),o=!0):125===S(s)?s++:(e&&C(la.Unterminated_Unicode_escape_sequence),o=!0),o?(f|=2048,g.substring(t,s)):(f|=8,vs(i))}function j(){if(s+5=0&&ps(r,e)){t+=L(!0),n=s;continue}if(r=j(),!(r>=0&&ps(r,e)))break;f|=1024,t+=g.substring(n,s),t+=vs(r),n=s+=6}}return t+=g.substring(n,s),t}function B(){const e=p.length;if(e>=2&&e<=12){const e=p.charCodeAt(0);if(e>=97&&e<=122){const e=pa.get(p);if(void 0!==e)return u=e}}return u=80}function J(e){let t="",n=!1,r=!1;for(;;){const i=S(s);if(95!==i){if(n=!0,!Va(i)||i-48>=e)break;t+=g[s],s++,r=!1}else f|=512,n?(n=!1,r=!0):C(r?la.Multiple_consecutive_numeric_separators_are_not_permitted:la.Numeric_separators_are_not_allowed_here,s,1),s++}return 95===S(s-1)&&C(la.Numeric_separators_are_not_allowed_here,s-1,1),t}function z(){if(110===S(s))return p+="n",384&f&&(p=pT(p)+"n"),s++,10;{const e=128&f?parseInt(p.slice(2),2):256&f?parseInt(p.slice(2),8):+p;return p=""+e,9}}function q(){for(l=s,f=0;;){if(_=s,s>=c)return u=1;const r=x(s);if(0===s&&35===r&&ts(g,s)){if(s=ns(g,s),t)continue;return u=6}switch(r){case 10:case 13:if(f|=1,t){s++;continue}return 13===r&&s+1=0&&ds(i,e))return p=L(!0)+M(),u=B();const o=j();return o>=0&&ds(o,e)?(s+=6,f|=1024,p=String.fromCharCode(o)+M(),u=B()):(C(la.Invalid_character),s++,u=0);case 35:if(0!==s&&"!"===g[s+1])return C(la.can_only_be_used_at_the_start_of_a_file,s,2),s++,u=0;const a=x(s+1);if(92===a){s++;const t=R();if(t>=0&&ds(t,e))return p="#"+L(!0)+M(),u=81;const n=j();if(n>=0&&ds(n,e))return s+=6,f|=1024,p="#"+String.fromCharCode(n)+M(),u=81;s--}return ds(a,e)?(s++,V(a,e)):(p="#",C(la.Invalid_character,s++,hs(r))),u=81;case 65533:return C(la.File_appears_to_be_binary,0,0),s=c,u=8;default:const l=V(r,e);if(l)return u=l;if(qa(r)){s+=hs(r);continue}if(Ua(r)){f|=1,s+=hs(r);continue}const d=hs(r);return C(la.Invalid_character,s,d),s+=d,u=0}}}function U(){switch(v){case 0:return!0;case 1:return!1}return 3!==y&&4!==y||3!==v&&Sa.test(g.slice(l,s))}function V(e,t){let n=e;if(ds(n,t)){for(s+=hs(n);s=c)return u=1;let t=S(s);if(60===t)return 47===S(s+1)?(s+=2,u=31):(s++,u=30);if(123===t)return s++,u=19;let n=0;for(;s0)break;za(t)||(n=s)}s++}return p=g.substring(l,s),-1===n?13:12}function K(){switch(l=s,S(s)){case 34:case 39:return p=A(!0),u=11;default:return q()}}function G(){if(l=_=s,f=0,s>=c)return u=1;const t=x(s);switch(s+=hs(t),t){case 9:case 11:case 12:case 32:for(;s=0&&ds(t,e))return p=L(!0)+M(),u=B();const n=j();return n>=0&&ds(n,e)?(s+=6,f|=1024,p=String.fromCharCode(n)+M(),u=B()):(s++,u=0)}if(ds(t,e)){let n=t;for(;s=0),s=e,l=e,_=e,u=0,p=void 0,f=0}}function gs(e,t){return e.codePointAt(t)}function hs(e){return e>=65536?2:-1===e?0:1}var ys=String.fromCodePoint?e=>String.fromCodePoint(e):function(e){if(un.assert(0<=e&&e<=1114111),e<=65535)return String.fromCharCode(e);const t=Math.floor((e-65536)/1024)+55296,n=(e-65536)%1024+56320;return String.fromCharCode(t,n)};function vs(e){return ys(e)}var bs=new Map(Object.entries({General_Category:"General_Category",gc:"General_Category",Script:"Script",sc:"Script",Script_Extensions:"Script_Extensions",scx:"Script_Extensions"})),xs=new Set(["ASCII","ASCII_Hex_Digit","AHex","Alphabetic","Alpha","Any","Assigned","Bidi_Control","Bidi_C","Bidi_Mirrored","Bidi_M","Case_Ignorable","CI","Cased","Changes_When_Casefolded","CWCF","Changes_When_Casemapped","CWCM","Changes_When_Lowercased","CWL","Changes_When_NFKC_Casefolded","CWKCF","Changes_When_Titlecased","CWT","Changes_When_Uppercased","CWU","Dash","Default_Ignorable_Code_Point","DI","Deprecated","Dep","Diacritic","Dia","Emoji","Emoji_Component","EComp","Emoji_Modifier","EMod","Emoji_Modifier_Base","EBase","Emoji_Presentation","EPres","Extended_Pictographic","ExtPict","Extender","Ext","Grapheme_Base","Gr_Base","Grapheme_Extend","Gr_Ext","Hex_Digit","Hex","IDS_Binary_Operator","IDSB","IDS_Trinary_Operator","IDST","ID_Continue","IDC","ID_Start","IDS","Ideographic","Ideo","Join_Control","Join_C","Logical_Order_Exception","LOE","Lowercase","Lower","Math","Noncharacter_Code_Point","NChar","Pattern_Syntax","Pat_Syn","Pattern_White_Space","Pat_WS","Quotation_Mark","QMark","Radical","Regional_Indicator","RI","Sentence_Terminal","STerm","Soft_Dotted","SD","Terminal_Punctuation","Term","Unified_Ideograph","UIdeo","Uppercase","Upper","Variation_Selector","VS","White_Space","space","XID_Continue","XIDC","XID_Start","XIDS"]),ks=new Set(["Basic_Emoji","Emoji_Keycap_Sequence","RGI_Emoji_Modifier_Sequence","RGI_Emoji_Flag_Sequence","RGI_Emoji_Tag_Sequence","RGI_Emoji_ZWJ_Sequence","RGI_Emoji"]),Ss={General_Category:new Set(["C","Other","Cc","Control","cntrl","Cf","Format","Cn","Unassigned","Co","Private_Use","Cs","Surrogate","L","Letter","LC","Cased_Letter","Ll","Lowercase_Letter","Lm","Modifier_Letter","Lo","Other_Letter","Lt","Titlecase_Letter","Lu","Uppercase_Letter","M","Mark","Combining_Mark","Mc","Spacing_Mark","Me","Enclosing_Mark","Mn","Nonspacing_Mark","N","Number","Nd","Decimal_Number","digit","Nl","Letter_Number","No","Other_Number","P","Punctuation","punct","Pc","Connector_Punctuation","Pd","Dash_Punctuation","Pe","Close_Punctuation","Pf","Final_Punctuation","Pi","Initial_Punctuation","Po","Other_Punctuation","Ps","Open_Punctuation","S","Symbol","Sc","Currency_Symbol","Sk","Modifier_Symbol","Sm","Math_Symbol","So","Other_Symbol","Z","Separator","Zl","Line_Separator","Zp","Paragraph_Separator","Zs","Space_Separator"]),Script:new Set(["Adlm","Adlam","Aghb","Caucasian_Albanian","Ahom","Arab","Arabic","Armi","Imperial_Aramaic","Armn","Armenian","Avst","Avestan","Bali","Balinese","Bamu","Bamum","Bass","Bassa_Vah","Batk","Batak","Beng","Bengali","Bhks","Bhaiksuki","Bopo","Bopomofo","Brah","Brahmi","Brai","Braille","Bugi","Buginese","Buhd","Buhid","Cakm","Chakma","Cans","Canadian_Aboriginal","Cari","Carian","Cham","Cher","Cherokee","Chrs","Chorasmian","Copt","Coptic","Qaac","Cpmn","Cypro_Minoan","Cprt","Cypriot","Cyrl","Cyrillic","Deva","Devanagari","Diak","Dives_Akuru","Dogr","Dogra","Dsrt","Deseret","Dupl","Duployan","Egyp","Egyptian_Hieroglyphs","Elba","Elbasan","Elym","Elymaic","Ethi","Ethiopic","Geor","Georgian","Glag","Glagolitic","Gong","Gunjala_Gondi","Gonm","Masaram_Gondi","Goth","Gothic","Gran","Grantha","Grek","Greek","Gujr","Gujarati","Guru","Gurmukhi","Hang","Hangul","Hani","Han","Hano","Hanunoo","Hatr","Hatran","Hebr","Hebrew","Hira","Hiragana","Hluw","Anatolian_Hieroglyphs","Hmng","Pahawh_Hmong","Hmnp","Nyiakeng_Puachue_Hmong","Hrkt","Katakana_Or_Hiragana","Hung","Old_Hungarian","Ital","Old_Italic","Java","Javanese","Kali","Kayah_Li","Kana","Katakana","Kawi","Khar","Kharoshthi","Khmr","Khmer","Khoj","Khojki","Kits","Khitan_Small_Script","Knda","Kannada","Kthi","Kaithi","Lana","Tai_Tham","Laoo","Lao","Latn","Latin","Lepc","Lepcha","Limb","Limbu","Lina","Linear_A","Linb","Linear_B","Lisu","Lyci","Lycian","Lydi","Lydian","Mahj","Mahajani","Maka","Makasar","Mand","Mandaic","Mani","Manichaean","Marc","Marchen","Medf","Medefaidrin","Mend","Mende_Kikakui","Merc","Meroitic_Cursive","Mero","Meroitic_Hieroglyphs","Mlym","Malayalam","Modi","Mong","Mongolian","Mroo","Mro","Mtei","Meetei_Mayek","Mult","Multani","Mymr","Myanmar","Nagm","Nag_Mundari","Nand","Nandinagari","Narb","Old_North_Arabian","Nbat","Nabataean","Newa","Nkoo","Nko","Nshu","Nushu","Ogam","Ogham","Olck","Ol_Chiki","Orkh","Old_Turkic","Orya","Oriya","Osge","Osage","Osma","Osmanya","Ougr","Old_Uyghur","Palm","Palmyrene","Pauc","Pau_Cin_Hau","Perm","Old_Permic","Phag","Phags_Pa","Phli","Inscriptional_Pahlavi","Phlp","Psalter_Pahlavi","Phnx","Phoenician","Plrd","Miao","Prti","Inscriptional_Parthian","Rjng","Rejang","Rohg","Hanifi_Rohingya","Runr","Runic","Samr","Samaritan","Sarb","Old_South_Arabian","Saur","Saurashtra","Sgnw","SignWriting","Shaw","Shavian","Shrd","Sharada","Sidd","Siddham","Sind","Khudawadi","Sinh","Sinhala","Sogd","Sogdian","Sogo","Old_Sogdian","Sora","Sora_Sompeng","Soyo","Soyombo","Sund","Sundanese","Sylo","Syloti_Nagri","Syrc","Syriac","Tagb","Tagbanwa","Takr","Takri","Tale","Tai_Le","Talu","New_Tai_Lue","Taml","Tamil","Tang","Tangut","Tavt","Tai_Viet","Telu","Telugu","Tfng","Tifinagh","Tglg","Tagalog","Thaa","Thaana","Thai","Tibt","Tibetan","Tirh","Tirhuta","Tnsa","Tangsa","Toto","Ugar","Ugaritic","Vaii","Vai","Vith","Vithkuqi","Wara","Warang_Citi","Wcho","Wancho","Xpeo","Old_Persian","Xsux","Cuneiform","Yezi","Yezidi","Yiii","Yi","Zanb","Zanabazar_Square","Zinh","Inherited","Qaai","Zyyy","Common","Zzzz","Unknown"]),Script_Extensions:void 0};function Ts(e){return vo(e)||go(e)}function Cs(e){return ee(e,tk,ok)}Ss.Script_Extensions=Ss.Script;var ws=new Map([[99,"lib.esnext.full.d.ts"],[10,"lib.es2023.full.d.ts"],[9,"lib.es2022.full.d.ts"],[8,"lib.es2021.full.d.ts"],[7,"lib.es2020.full.d.ts"],[6,"lib.es2019.full.d.ts"],[5,"lib.es2018.full.d.ts"],[4,"lib.es2017.full.d.ts"],[3,"lib.es2016.full.d.ts"],[2,"lib.es6.d.ts"]]);function Ns(e){const t=hk(e);switch(t){case 99:case 10:case 9:case 8:case 7:case 6:case 5:case 4:case 3:case 2:return ws.get(t);default:return"lib.d.ts"}}function Ds(e){return e.start+e.length}function Fs(e){return 0===e.length}function Es(e,t){return t>=e.start&&t=e.pos&&t<=e.end}function As(e,t){return t.start>=e.start&&Ds(t)<=Ds(e)}function Is(e,t){return t.pos>=e.start&&t.end<=Ds(e)}function Os(e,t){return t.start>=e.pos&&Ds(t)<=e.end}function Ls(e,t){return void 0!==js(e,t)}function js(e,t){const n=qs(e,t);return n&&0===n.length?void 0:n}function Rs(e,t){return Bs(e.start,e.length,t.start,t.length)}function Ms(e,t,n){return Bs(e.start,e.length,t,n)}function Bs(e,t,n,r){return n<=e+t&&n+r>=e}function Js(e,t){return t<=Ds(e)&&t>=e.start}function zs(e,t){return Ms(t,e.pos,e.end-e.pos)}function qs(e,t){const n=Math.max(e.start,t.start),r=Math.min(Ds(e),Ds(t));return n<=r?Ws(n,r):void 0}function Us(e){e=e.filter((e=>e.length>0)).sort(((e,t)=>e.start!==t.start?e.start-t.start:e.length-t.length));const t=[];let n=0;for(;n=2&&95===e.charCodeAt(0)&&95===e.charCodeAt(1)?"_"+e:e}function fc(e){const t=e;return t.length>=3&&95===t.charCodeAt(0)&&95===t.charCodeAt(1)&&95===t.charCodeAt(2)?t.substr(1):t}function mc(e){return fc(e.escapedText)}function gc(e){const t=Fa(e.escapedText);return t?tt(t,Th):void 0}function hc(e){return e.valueDeclaration&&Hl(e.valueDeclaration)?mc(e.valueDeclaration.name):fc(e.escapedName)}function yc(e){const t=e.parent.parent;if(t){if(lu(t))return vc(t);switch(t.kind){case 243:if(t.declarationList&&t.declarationList.declarations[0])return vc(t.declarationList.declarations[0]);break;case 244:let e=t.expression;switch(226===e.kind&&64===e.operatorToken.kind&&(e=e.left),e.kind){case 211:return e.name;case 212:const t=e.argumentExpression;if(zN(t))return t}break;case 217:return vc(t.expression);case 256:if(lu(t.statement)||U_(t.statement))return vc(t.statement)}}}function vc(e){const t=Tc(e);return t&&zN(t)?t:void 0}function bc(e,t){return!(!kc(e)||!zN(e.name)||mc(e.name)!==mc(t))||!(!wF(e)||!$(e.declarationList.declarations,(e=>bc(e,t))))}function xc(e){return e.name||yc(e)}function kc(e){return!!e.name}function Sc(e){switch(e.kind){case 80:return e;case 348:case 341:{const{name:t}=e;if(166===t.kind)return t.right;break}case 213:case 226:{const t=e;switch(eg(t)){case 1:case 4:case 5:case 3:return cg(t.left);case 7:case 8:case 9:return t.arguments[1];default:return}}case 346:return xc(e);case 340:return yc(e);case 277:{const{expression:t}=e;return zN(t)?t:void 0}case 212:const t=e;if(og(t))return t.argumentExpression}return e.name}function Tc(e){if(void 0!==e)return Sc(e)||(eF(e)||tF(e)||pF(e)?Cc(e):void 0)}function Cc(e){if(e.parent){if(ME(e.parent)||VD(e.parent))return e.parent.name;if(cF(e.parent)&&e===e.parent.right){if(zN(e.parent.left))return e.parent.left;if(kx(e.parent.left))return cg(e.parent.left)}else if(VF(e.parent)&&zN(e.parent.name))return e.parent.name}}function wc(e){if(Ov(e))return N(e.modifiers,aD)}function Nc(e){if(wv(e,98303))return N(e.modifiers,Yl)}function Dc(e,t){if(e.name){if(zN(e.name)){const n=e.name.escapedText;return rl(e.parent,t).filter((e=>bP(e)&&zN(e.name)&&e.name.escapedText===n))}{const n=e.parent.parameters.indexOf(e);un.assert(n>-1,"Parameters should always be in their parents' parameter list");const r=rl(e.parent,t).filter(bP);if(nTP(e)&&e.typeParameters.some((e=>e.name.escapedText===n))))}function Ac(e){return Pc(e,!1)}function Ic(e){return Pc(e,!0)}function Oc(e){return!!ol(e,bP)}function Lc(e){return ol(e,sP)}function jc(e){return al(e,DP)}function Rc(e){return ol(e,lP)}function Mc(e){return ol(e,uP)}function Bc(e){return ol(e,uP,!0)}function Jc(e){return ol(e,dP)}function zc(e){return ol(e,dP,!0)}function qc(e){return ol(e,pP)}function Uc(e){return ol(e,pP,!0)}function Vc(e){return ol(e,fP)}function Wc(e){return ol(e,fP,!0)}function $c(e){return ol(e,mP,!0)}function Hc(e){return ol(e,hP)}function Kc(e){return ol(e,hP,!0)}function Gc(e){return ol(e,vP)}function Xc(e){return ol(e,kP)}function Qc(e){return ol(e,xP)}function Yc(e){return ol(e,TP)}function Zc(e){return ol(e,FP)}function el(e){const t=ol(e,SP);if(t&&t.typeExpression&&t.typeExpression.type)return t}function tl(e){let t=ol(e,SP);return!t&&oD(e)&&(t=b(Fc(e),(e=>!!e.typeExpression))),t&&t.typeExpression&&t.typeExpression.type}function nl(e){const t=Qc(e);if(t&&t.typeExpression)return t.typeExpression.type;const n=el(e);if(n&&n.typeExpression){const e=n.typeExpression.type;if(SD(e)){const t=b(e.members,mD);return t&&t.type}if(bD(e)||tP(e))return e.type}}function rl(e,t){var n;if(!Og(e))return l;let r=null==(n=e.jsDoc)?void 0:n.jsDocCache;if(void 0===r||t){const n=Lg(e,t);un.assert(n.length<2||n[0]!==n[1]),r=O(n,(e=>iP(e)?e.tags:e)),t||(e.jsDoc??(e.jsDoc=[]),e.jsDoc.jsDocCache=r)}return r}function il(e){return rl(e,!1)}function ol(e,t,n){return b(rl(e,n),t)}function al(e,t){return il(e).filter(t)}function sl(e,t){return il(e).filter((e=>e.kind===t))}function cl(e){return"string"==typeof e?e:null==e?void 0:e.map((e=>{return 321===e.kind?e.text:`{@${324===(t=e).kind?"link":325===t.kind?"linkcode":"linkplain"} ${t.name?Lp(t.name):""}${t.name&&(""===t.text||t.text.startsWith("://"))?"":" "}${t.text}}`;var t})).join("")}function ll(e){if(aP(e)){if(gP(e.parent)){const t=Vg(e.parent);if(t&&u(t.tags))return O(t.tags,(e=>TP(e)?e.typeParameters:void 0))}return l}if(Ng(e))return un.assert(320===e.parent.kind),O(e.parent.tags,(e=>TP(e)?e.typeParameters:void 0));if(e.typeParameters)return e.typeParameters;if(wA(e)&&e.typeParameters)return e.typeParameters;if(Fm(e)){const t=gv(e);if(t.length)return t;const n=tl(e);if(n&&bD(n)&&n.typeParameters)return n.typeParameters}return l}function _l(e){return e.constraint?e.constraint:TP(e.parent)&&e===e.parent.typeParameters[0]?e.parent.constraint:void 0}function ul(e){return 80===e.kind||81===e.kind}function dl(e){return 178===e.kind||177===e.kind}function pl(e){return HD(e)&&!!(64&e.flags)}function fl(e){return KD(e)&&!!(64&e.flags)}function ml(e){return GD(e)&&!!(64&e.flags)}function gl(e){const t=e.kind;return!!(64&e.flags)&&(211===t||212===t||213===t||235===t)}function hl(e){return gl(e)&&!yF(e)&&!!e.questionDotToken}function yl(e){return hl(e.parent)&&e.parent.expression===e}function vl(e){return!gl(e.parent)||hl(e.parent)||e!==e.parent.expression}function bl(e){return 226===e.kind&&61===e.operatorToken.kind}function xl(e){return vD(e)&&zN(e.typeName)&&"const"===e.typeName.escapedText&&!e.typeArguments}function kl(e){return cA(e,8)}function Sl(e){return yF(e)&&!!(64&e.flags)}function Tl(e){return 252===e.kind||251===e.kind}function Cl(e){return 280===e.kind||279===e.kind}function wl(e){return 348===e.kind||341===e.kind}function Nl(e){return e>=166}function Dl(e){return e>=0&&e<=165}function Fl(e){return Dl(e.kind)}function El(e){return De(e,"pos")&&De(e,"end")}function Pl(e){return 9<=e&&e<=15}function Al(e){return Pl(e.kind)}function Il(e){switch(e.kind){case 210:case 209:case 14:case 218:case 231:return!0}return!1}function Ol(e){return 15<=e&&e<=18}function Ll(e){return Ol(e.kind)}function jl(e){const t=e.kind;return 17===t||18===t}function Rl(e){return dE(e)||gE(e)}function Ml(e){switch(e.kind){case 276:return e.isTypeOnly||e.parent.parent.isTypeOnly;case 274:return e.parent.isTypeOnly;case 273:case 271:return e.isTypeOnly}return!1}function Bl(e){switch(e.kind){case 281:return e.isTypeOnly||e.parent.parent.isTypeOnly;case 278:return e.isTypeOnly&&!!e.moduleSpecifier&&!e.exportClause;case 280:return e.parent.isTypeOnly}return!1}function Jl(e){return Ml(e)||Bl(e)}function zl(e){return void 0!==_c(e,Jl)}function ql(e){return 11===e.kind||Ol(e.kind)}function Ul(e){return TN(e)||zN(e)}function Vl(e){var t;return zN(e)&&void 0!==(null==(t=e.emitNode)?void 0:t.autoGenerate)}function Wl(e){var t;return qN(e)&&void 0!==(null==(t=e.emitNode)?void 0:t.autoGenerate)}function $l(e){const t=e.emitNode.autoGenerate.flags;return!!(32&t)&&!!(16&t)&&!!(8&t)}function Hl(e){return(cD(e)||f_(e))&&qN(e.name)}function Kl(e){return HD(e)&&qN(e.name)}function Gl(e){switch(e){case 128:case 129:case 134:case 87:case 138:case 90:case 95:case 103:case 125:case 123:case 124:case 148:case 126:case 147:case 164:return!0}return!1}function Xl(e){return!!(31&$v(e))}function Ql(e){return Xl(e)||126===e||164===e||129===e}function Yl(e){return Gl(e.kind)}function Zl(e){const t=e.kind;return 166===t||80===t}function e_(e){const t=e.kind;return 80===t||81===t||11===t||9===t||167===t}function t_(e){const t=e.kind;return 80===t||206===t||207===t}function n_(e){return!!e&&s_(e.kind)}function r_(e){return!!e&&(s_(e.kind)||uD(e))}function i_(e){return e&&a_(e.kind)}function o_(e){return 112===e.kind||97===e.kind}function a_(e){switch(e){case 262:case 174:case 176:case 177:case 178:case 218:case 219:return!0;default:return!1}}function s_(e){switch(e){case 173:case 179:case 323:case 180:case 181:case 184:case 317:case 185:return!0;default:return a_(e)}}function c_(e){return qE(e)||YF(e)||CF(e)&&n_(e.parent)}function l_(e){const t=e.kind;return 176===t||172===t||174===t||177===t||178===t||181===t||175===t||240===t}function __(e){return e&&(263===e.kind||231===e.kind)}function u_(e){return e&&(177===e.kind||178===e.kind)}function d_(e){return cD(e)&&Av(e)}function p_(e){return Fm(e)&&sC(e)?!(ig(e)&&_b(e.expression)||ag(e,!0)):e.parent&&__(e.parent)&&cD(e)&&!Av(e)}function f_(e){switch(e.kind){case 174:case 177:case 178:return!0;default:return!1}}function m_(e){return Yl(e)||aD(e)}function g_(e){const t=e.kind;return 180===t||179===t||171===t||173===t||181===t||177===t||178===t||354===t}function h_(e){return g_(e)||l_(e)}function y_(e){const t=e.kind;return 303===t||304===t||305===t||174===t||177===t||178===t}function v_(e){return xx(e.kind)}function b_(e){switch(e.kind){case 184:case 185:return!0}return!1}function x_(e){if(e){const t=e.kind;return 207===t||206===t}return!1}function k_(e){const t=e.kind;return 209===t||210===t}function S_(e){const t=e.kind;return 208===t||232===t}function T_(e){switch(e.kind){case 260:case 169:case 208:return!0}return!1}function C_(e){return VF(e)||oD(e)||D_(e)||E_(e)}function w_(e){return N_(e)||F_(e)}function N_(e){switch(e.kind){case 206:case 210:return!0}return!1}function D_(e){switch(e.kind){case 208:case 303:case 304:case 305:return!0}return!1}function F_(e){switch(e.kind){case 207:case 209:return!0}return!1}function E_(e){switch(e.kind){case 208:case 232:case 230:case 209:case 210:case 80:case 211:case 212:return!0}return nb(e,!0)}function P_(e){const t=e.kind;return 211===t||166===t||205===t}function A_(e){const t=e.kind;return 211===t||166===t}function I_(e){return O_(e)||jT(e)}function O_(e){switch(e.kind){case 213:case 214:case 215:case 170:case 286:case 285:case 289:return!0;case 226:return 104===e.operatorToken.kind;default:return!1}}function L_(e){return 213===e.kind||214===e.kind}function j_(e){const t=e.kind;return 228===t||15===t}function R_(e){return M_(kl(e).kind)}function M_(e){switch(e){case 211:case 212:case 214:case 213:case 284:case 285:case 288:case 215:case 209:case 217:case 210:case 231:case 218:case 80:case 81:case 14:case 9:case 10:case 11:case 15:case 228:case 97:case 106:case 110:case 112:case 108:case 235:case 233:case 236:case 102:case 282:return!0;default:return!1}}function B_(e){return J_(kl(e).kind)}function J_(e){switch(e){case 224:case 225:case 220:case 221:case 222:case 223:case 216:return!0;default:return M_(e)}}function z_(e){switch(e.kind){case 225:return!0;case 224:return 46===e.operator||47===e.operator;default:return!1}}function q_(e){switch(e.kind){case 106:case 112:case 97:case 224:return!0;default:return Al(e)}}function U_(e){return function(e){switch(e){case 227:case 229:case 219:case 226:case 230:case 234:case 232:case 356:case 355:case 238:return!0;default:return J_(e)}}(kl(e).kind)}function V_(e){const t=e.kind;return 216===t||234===t}function W_(e,t){switch(e.kind){case 248:case 249:case 250:case 246:case 247:return!0;case 256:return t&&W_(e.statement,t)}return!1}function $_(e){return pE(e)||fE(e)}function H_(e){return $(e,$_)}function K_(e){return!(wp(e)||pE(e)||wv(e,32)||ap(e))}function G_(e){return wp(e)||pE(e)||wv(e,32)}function X_(e){return 249===e.kind||250===e.kind}function Q_(e){return CF(e)||U_(e)}function Y_(e){return CF(e)}function Z_(e){return WF(e)||U_(e)}function eu(e){const t=e.kind;return 268===t||267===t||80===t}function tu(e){const t=e.kind;return 268===t||267===t}function nu(e){const t=e.kind;return 80===t||267===t}function ru(e){const t=e.kind;return 275===t||274===t}function iu(e){return 267===e.kind||266===e.kind}function ou(e){switch(e.kind){case 219:case 226:case 208:case 213:case 179:case 263:case 231:case 175:case 176:case 185:case 180:case 212:case 266:case 306:case 277:case 278:case 281:case 262:case 218:case 184:case 177:case 80:case 273:case 271:case 276:case 181:case 264:case 338:case 340:case 317:case 341:case 348:case 323:case 346:case 322:case 291:case 292:case 293:case 200:case 174:case 173:case 267:case 202:case 280:case 270:case 274:case 214:case 15:case 9:case 210:case 169:case 211:case 303:case 172:case 171:case 178:case 304:case 307:case 305:case 11:case 265:case 187:case 168:case 260:return!0;default:return!1}}function au(e){switch(e.kind){case 219:case 241:case 179:case 269:case 299:case 175:case 194:case 176:case 185:case 180:case 248:case 249:case 250:case 262:case 218:case 184:case 177:case 181:case 338:case 340:case 317:case 323:case 346:case 200:case 174:case 173:case 267:case 178:case 307:case 265:return!0;default:return!1}}function su(e){return 262===e||282===e||263===e||264===e||265===e||266===e||267===e||272===e||271===e||278===e||277===e||270===e}function cu(e){return 252===e||251===e||259===e||246===e||244===e||242===e||249===e||250===e||248===e||245===e||256===e||253===e||255===e||257===e||258===e||243===e||247===e||254===e||353===e}function lu(e){return 168===e.kind?e.parent&&345!==e.parent.kind||Fm(e):219===(t=e.kind)||208===t||263===t||231===t||175===t||176===t||266===t||306===t||281===t||262===t||218===t||177===t||273===t||271===t||276===t||264===t||291===t||174===t||173===t||267===t||270===t||274===t||280===t||169===t||303===t||172===t||171===t||178===t||304===t||265===t||168===t||260===t||346===t||338===t||348===t||202===t;var t}function _u(e){return su(e.kind)}function uu(e){return cu(e.kind)}function du(e){const t=e.kind;return cu(t)||su(t)||function(e){return 241===e.kind&&((void 0===e.parent||258!==e.parent.kind&&299!==e.parent.kind)&&!Rf(e))}(e)}function pu(e){const t=e.kind;return cu(t)||su(t)||241===t}function fu(e){const t=e.kind;return 283===t||166===t||80===t}function mu(e){const t=e.kind;return 110===t||80===t||211===t||295===t}function gu(e){const t=e.kind;return 284===t||294===t||285===t||12===t||288===t}function hu(e){const t=e.kind;return 291===t||293===t}function yu(e){const t=e.kind;return 11===t||294===t}function vu(e){const t=e.kind;return 286===t||285===t}function bu(e){const t=e.kind;return 286===t||285===t||289===t}function xu(e){const t=e.kind;return 296===t||297===t}function ku(e){return e.kind>=309&&e.kind<=351}function Su(e){return 320===e.kind||319===e.kind||321===e.kind||ju(e)||Tu(e)||oP(e)||aP(e)}function Tu(e){return e.kind>=327&&e.kind<=351}function Cu(e){return 178===e.kind}function wu(e){return 177===e.kind}function Nu(e){if(!Og(e))return!1;const{jsDoc:t}=e;return!!t&&t.length>0}function Du(e){return!!e.type}function Fu(e){return!!e.initializer}function Eu(e){switch(e.kind){case 260:case 169:case 208:case 172:case 303:case 306:return!0;default:return!1}}function Pu(e){return 291===e.kind||293===e.kind||y_(e)}function Au(e){return 183===e.kind||233===e.kind}var Iu=1073741823;function Ou(e){let t=Iu;for(const n of e){if(!n.length)continue;let e=0;for(;e0?n.parent.parameters[r-1]:void 0,o=t.text,a=i?K(_s(o,Xa(o,i.end+1,!1,!0)),ls(o,e.pos)):_s(o,Xa(o,e.pos,!1,!0));return $(a)&&Bu(ve(a),t)}return!!d(n&&gf(n,t),(e=>Bu(e,t)))}var zu=[],qu="tslib",Uu=160,Vu=1e6;function Wu(e,t){const n=e.declarations;if(n)for(const e of n)if(e.kind===t)return e}function $u(e,t){return N(e.declarations||l,(e=>e.kind===t))}function Hu(e){const t=new Map;if(e)for(const n of e)t.set(n.escapedName,n);return t}function Ku(e){return!!(33554432&e.flags)}function Gu(e){return!!(1536&e.flags)&&34===e.escapedName.charCodeAt(0)}var Xu=function(){var e="";const t=t=>e+=t;return{getText:()=>e,write:t,rawWrite:t,writeKeyword:t,writeOperator:t,writePunctuation:t,writeSpace:t,writeStringLiteral:t,writeLiteral:t,writeParameter:t,writeProperty:t,writeSymbol:(e,n)=>t(e),writeTrailingSemicolon:t,writeComment:t,getTextPos:()=>e.length,getLine:()=>0,getColumn:()=>0,getIndent:()=>0,isAtStartOfLine:()=>!1,hasTrailingComment:()=>!1,hasTrailingWhitespace:()=>!!e.length&&za(e.charCodeAt(e.length-1)),writeLine:()=>e+=" ",increaseIndent:rt,decreaseIndent:rt,clear:()=>e=""}}();function Qu(e,t){return e.configFilePath!==t.configFilePath||function(e,t){return Zu(e,t,vO)}(e,t)}function Yu(e,t){return Zu(e,t,xO)}function Zu(e,t,n){return e!==t&&n.some((n=>!dT(Vk(e,n),Vk(t,n))))}function ed(e,t){for(;;){const n=t(e);if("quit"===n)return;if(void 0!==n)return n;if(qE(e))return;e=e.parent}}function td(e,t){const n=e.entries();for(const[e,r]of n){const n=t(r,e);if(n)return n}}function nd(e,t){const n=e.keys();for(const e of n){const n=t(e);if(n)return n}}function rd(e,t){e.forEach(((e,n)=>{t.set(n,e)}))}function id(e){const t=Xu.getText();try{return e(Xu),Xu.getText()}finally{Xu.clear(),Xu.writeKeyword(t)}}function od(e){return e.end-e.pos}function ad(e,t){return e.path===t.path&&!e.prepend==!t.prepend&&!e.circular==!t.circular}function sd(e,t){return e===t||e.resolvedModule===t.resolvedModule||!!e.resolvedModule&&!!t.resolvedModule&&e.resolvedModule.isExternalLibraryImport===t.resolvedModule.isExternalLibraryImport&&e.resolvedModule.extension===t.resolvedModule.extension&&e.resolvedModule.resolvedFileName===t.resolvedModule.resolvedFileName&&e.resolvedModule.originalPath===t.resolvedModule.originalPath&&((n=e.resolvedModule.packageId)===(r=t.resolvedModule.packageId)||!!n&&!!r&&n.name===r.name&&n.subModuleName===r.subModuleName&&n.version===r.version&&n.peerDependencies===r.peerDependencies)&&e.alternateResult===t.alternateResult;var n,r}function cd(e){return e.resolvedModule}function ld(e){return e.resolvedTypeReferenceDirective}function _d(e,t,n,r,i){var o;const a=null==(o=t.getResolvedModule(e,n,r))?void 0:o.alternateResult,s=a&&(2===vk(t.getCompilerOptions())?[la.There_are_types_at_0_but_this_result_could_not_be_resolved_under_your_current_moduleResolution_setting_Consider_updating_to_node16_nodenext_or_bundler,[a]]:[la.There_are_types_at_0_but_this_result_could_not_be_resolved_when_respecting_package_json_exports_The_1_library_may_need_to_update_its_package_json_or_typings,[a,a.includes(PR+"@types/")?`@types/${fM(i)}`:i]]),c=s?Yx(void 0,s[0],...s[1]):t.typesPackageExists(i)?Yx(void 0,la.If_the_0_package_actually_exposes_this_module_consider_sending_a_pull_request_to_amend_https_Colon_Slash_Slashgithub_com_SlashDefinitelyTyped_SlashDefinitelyTyped_Slashtree_Slashmaster_Slashtypes_Slash_1,i,fM(i)):t.packageBundlesTypes(i)?Yx(void 0,la.If_the_0_package_actually_exposes_this_module_try_adding_a_new_declaration_d_ts_file_containing_declare_module_1,i,n):Yx(void 0,la.Try_npm_i_save_dev_types_Slash_1_if_it_exists_or_add_a_new_declaration_d_ts_file_containing_declare_module_0,n,fM(i));return c&&(c.repopulateInfo=()=>({moduleReference:n,mode:r,packageName:i===n?void 0:i})),c}function ud(e){const t=ZS(e.fileName),n=e.packageJsonScope,r=".ts"===t?".mts":".js"===t?".mjs":void 0,i=n&&!n.contents.packageJsonContent.type?r?Yx(void 0,la.To_convert_this_file_to_an_ECMAScript_module_change_its_file_extension_to_0_or_add_the_field_type_Colon_module_to_1,r,jo(n.packageDirectory,"package.json")):Yx(void 0,la.To_convert_this_file_to_an_ECMAScript_module_add_the_field_type_Colon_module_to_0,jo(n.packageDirectory,"package.json")):r?Yx(void 0,la.To_convert_this_file_to_an_ECMAScript_module_change_its_file_extension_to_0_or_create_a_local_package_json_file_with_type_Colon_module,r):Yx(void 0,la.To_convert_this_file_to_an_ECMAScript_module_create_a_local_package_json_file_with_type_Colon_module);return i.repopulateInfo=()=>!0,i}function dd({name:e,subModuleName:t}){return t?`${e}/${t}`:e}function pd(e){return`${dd(e)}@${e.version}${e.peerDependencies??""}`}function fd(e,t){return e===t||e.resolvedTypeReferenceDirective===t.resolvedTypeReferenceDirective||!!e.resolvedTypeReferenceDirective&&!!t.resolvedTypeReferenceDirective&&e.resolvedTypeReferenceDirective.resolvedFileName===t.resolvedTypeReferenceDirective.resolvedFileName&&!!e.resolvedTypeReferenceDirective.primary==!!t.resolvedTypeReferenceDirective.primary&&e.resolvedTypeReferenceDirective.originalPath===t.resolvedTypeReferenceDirective.originalPath}function md(e,t,n,r){un.assert(e.length===t.length);for(let i=0;i=0),ja(t)[e]}function kd(e){const t=hd(e),n=Ja(t,e.pos);return`${t.fileName}(${n.line+1},${n.character+1})`}function Sd(e,t){un.assert(e>=0);const n=ja(t),r=e,i=t.text;if(r+1===n.length)return i.length-1;{const e=n[r];let t=n[r+1]-1;for(un.assert(Ua(i.charCodeAt(t)));e<=t&&Ua(i.charCodeAt(t));)t--;return t}}function Td(e,t,n){return!(n&&n(t)||e.identifiers.has(t))}function Cd(e){return void 0===e||e.pos===e.end&&e.pos>=0&&1!==e.kind}function wd(e){return!Cd(e)}function Nd(e,t){return iD(e)?t===e.expression:uD(e)?t===e.modifiers:sD(e)?t===e.initializer:cD(e)?t===e.questionToken&&d_(e):ME(e)?t===e.modifiers||t===e.questionToken||t===e.exclamationToken||Dd(e.modifiers,t,m_):BE(e)?t===e.equalsToken||t===e.modifiers||t===e.questionToken||t===e.exclamationToken||Dd(e.modifiers,t,m_):_D(e)?t===e.exclamationToken:dD(e)?t===e.typeParameters||t===e.type||Dd(e.typeParameters,t,iD):pD(e)?t===e.typeParameters||Dd(e.typeParameters,t,iD):fD(e)?t===e.typeParameters||t===e.type||Dd(e.typeParameters,t,iD):!!eE(e)&&(t===e.modifiers||Dd(e.modifiers,t,m_))}function Dd(e,t,n){return!(!e||Qe(t)||!n(t))&&T(e,t)}function Fd(e,t,n){if(void 0===t||0===t.length)return e;let r=0;for(;r[`${Ja(e,t.range.end).line}`,t]))),r=new Map;return{getUnusedExpectations:function(){return Oe(n.entries()).filter((([e,t])=>0===t.type&&!r.get(e))).map((([e,t])=>t))},markUsed:function(e){return!!n.has(`${e}`)&&(r.set(`${e}`,!0),!0)}}}function Bd(e,t,n){if(Cd(e))return e.pos;if(ku(e)||12===e.kind)return Xa((t??hd(e)).text,e.pos,!1,!0);if(n&&Nu(e))return Bd(e.jsDoc[0],t);if(352===e.kind){t??(t=hd(e));const r=fe(LP(e,t));if(r)return Bd(r,t,n)}return Xa((t??hd(e)).text,e.pos,!1,!1,Am(e))}function Jd(e,t){const n=!Cd(e)&&rI(e)?x(e.modifiers,aD):void 0;return n?Xa((t||hd(e)).text,n.end):Bd(e,t)}function zd(e,t){const n=!Cd(e)&&rI(e)&&e.modifiers?ve(e.modifiers):void 0;return n?Xa((t||hd(e)).text,n.end):Bd(e,t)}function qd(e,t,n=!1){return Hd(e.text,t,n)}function Ud(e){return!!(fE(e)&&e.exportClause&&_E(e.exportClause)&&$d(e.exportClause.name))}function Vd(e){return 11===e.kind?e.text:fc(e.escapedText)}function Wd(e){return 11===e.kind?pc(e.text):e.escapedText}function $d(e){return"default"===(11===e.kind?e.text:e.escapedText)}function Hd(e,t,n=!1){if(Cd(t))return"";let r=e.substring(n?t.pos:Xa(e,t.pos),t.end);return function(e){return!!_c(e,VE)}(t)&&(r=r.split(/\r\n|\n|\r/).map((e=>e.replace(/^\s*\*/,"").trimStart())).join("\n")),r}function Kd(e,t=!1){return qd(hd(e),e,t)}function Gd(e){return e.pos}function Xd(e,t){return Te(e,t,Gd,vt)}function Qd(e){const t=e.emitNode;return t&&t.flags||0}function Yd(e){const t=e.emitNode;return t&&t.internalFlags||0}var Zd=dt((()=>new Map(Object.entries({Array:new Map(Object.entries({es2015:["find","findIndex","fill","copyWithin","entries","keys","values"],es2016:["includes"],es2019:["flat","flatMap"],es2022:["at"],es2023:["findLastIndex","findLast","toReversed","toSorted","toSpliced","with"]})),Iterator:new Map(Object.entries({es2015:l})),AsyncIterator:new Map(Object.entries({es2015:l})),ArrayBuffer:new Map(Object.entries({es2024:["maxByteLength","resizable","resize","detached","transfer","transferToFixedLength"]})),Atomics:new Map(Object.entries({es2017:["add","and","compareExchange","exchange","isLockFree","load","or","store","sub","wait","notify","xor"],es2024:["waitAsync"]})),SharedArrayBuffer:new Map(Object.entries({es2017:["byteLength","slice"],es2024:["growable","maxByteLength","grow"]})),AsyncIterable:new Map(Object.entries({es2018:l})),AsyncIterableIterator:new Map(Object.entries({es2018:l})),AsyncGenerator:new Map(Object.entries({es2018:l})),AsyncGeneratorFunction:new Map(Object.entries({es2018:l})),RegExp:new Map(Object.entries({es2015:["flags","sticky","unicode"],es2018:["dotAll"],es2024:["unicodeSets"]})),Reflect:new Map(Object.entries({es2015:["apply","construct","defineProperty","deleteProperty","get","getOwnPropertyDescriptor","getPrototypeOf","has","isExtensible","ownKeys","preventExtensions","set","setPrototypeOf"]})),ArrayConstructor:new Map(Object.entries({es2015:["from","of"],esnext:["fromAsync"]})),ObjectConstructor:new Map(Object.entries({es2015:["assign","getOwnPropertySymbols","keys","is","setPrototypeOf"],es2017:["values","entries","getOwnPropertyDescriptors"],es2019:["fromEntries"],es2022:["hasOwn"],es2024:["groupBy"]})),NumberConstructor:new Map(Object.entries({es2015:["isFinite","isInteger","isNaN","isSafeInteger","parseFloat","parseInt"]})),Math:new Map(Object.entries({es2015:["clz32","imul","sign","log10","log2","log1p","expm1","cosh","sinh","tanh","acosh","asinh","atanh","hypot","trunc","fround","cbrt"]})),Map:new Map(Object.entries({es2015:["entries","keys","values"]})),MapConstructor:new Map(Object.entries({es2024:["groupBy"]})),Set:new Map(Object.entries({es2015:["entries","keys","values"],esnext:["union","intersection","difference","symmetricDifference","isSubsetOf","isSupersetOf","isDisjointFrom"]})),PromiseConstructor:new Map(Object.entries({es2015:["all","race","reject","resolve"],es2020:["allSettled"],es2021:["any"],es2024:["withResolvers"]})),Symbol:new Map(Object.entries({es2015:["for","keyFor"],es2019:["description"]})),WeakMap:new Map(Object.entries({es2015:["entries","keys","values"]})),WeakSet:new Map(Object.entries({es2015:["entries","keys","values"]})),String:new Map(Object.entries({es2015:["codePointAt","includes","endsWith","normalize","repeat","startsWith","anchor","big","blink","bold","fixed","fontcolor","fontsize","italics","link","small","strike","sub","sup"],es2017:["padStart","padEnd"],es2019:["trimStart","trimEnd","trimLeft","trimRight"],es2020:["matchAll"],es2021:["replaceAll"],es2022:["at"],es2024:["isWellFormed","toWellFormed"]})),StringConstructor:new Map(Object.entries({es2015:["fromCodePoint","raw"]})),DateTimeFormat:new Map(Object.entries({es2017:["formatToParts"]})),Promise:new Map(Object.entries({es2015:l,es2018:["finally"]})),RegExpMatchArray:new Map(Object.entries({es2018:["groups"]})),RegExpExecArray:new Map(Object.entries({es2018:["groups"]})),Intl:new Map(Object.entries({es2018:["PluralRules"]})),NumberFormat:new Map(Object.entries({es2018:["formatToParts"]})),SymbolConstructor:new Map(Object.entries({es2020:["matchAll"],esnext:["metadata","dispose","asyncDispose"]})),DataView:new Map(Object.entries({es2020:["setBigInt64","setBigUint64","getBigInt64","getBigUint64"]})),BigInt:new Map(Object.entries({es2020:l})),RelativeTimeFormat:new Map(Object.entries({es2020:["format","formatToParts","resolvedOptions"]})),Int8Array:new Map(Object.entries({es2022:["at"],es2023:["findLastIndex","findLast","toReversed","toSorted","toSpliced","with"]})),Uint8Array:new Map(Object.entries({es2022:["at"],es2023:["findLastIndex","findLast","toReversed","toSorted","toSpliced","with"]})),Uint8ClampedArray:new Map(Object.entries({es2022:["at"],es2023:["findLastIndex","findLast","toReversed","toSorted","toSpliced","with"]})),Int16Array:new Map(Object.entries({es2022:["at"],es2023:["findLastIndex","findLast","toReversed","toSorted","toSpliced","with"]})),Uint16Array:new Map(Object.entries({es2022:["at"],es2023:["findLastIndex","findLast","toReversed","toSorted","toSpliced","with"]})),Int32Array:new Map(Object.entries({es2022:["at"],es2023:["findLastIndex","findLast","toReversed","toSorted","toSpliced","with"]})),Uint32Array:new Map(Object.entries({es2022:["at"],es2023:["findLastIndex","findLast","toReversed","toSorted","toSpliced","with"]})),Float32Array:new Map(Object.entries({es2022:["at"],es2023:["findLastIndex","findLast","toReversed","toSorted","toSpliced","with"]})),Float64Array:new Map(Object.entries({es2022:["at"],es2023:["findLastIndex","findLast","toReversed","toSorted","toSpliced","with"]})),BigInt64Array:new Map(Object.entries({es2020:l,es2022:["at"],es2023:["findLastIndex","findLast","toReversed","toSorted","toSpliced","with"]})),BigUint64Array:new Map(Object.entries({es2020:l,es2022:["at"],es2023:["findLastIndex","findLast","toReversed","toSorted","toSpliced","with"]})),Error:new Map(Object.entries({es2022:["cause"]}))})))),ep=(e=>(e[e.None=0]="None",e[e.NeverAsciiEscape=1]="NeverAsciiEscape",e[e.JsxAttributeEscape=2]="JsxAttributeEscape",e[e.TerminateUnterminatedLiterals=4]="TerminateUnterminatedLiterals",e[e.AllowNumericSeparator=8]="AllowNumericSeparator",e))(ep||{});function tp(e,t,n){if(t&&function(e,t){if(Zh(e)||!e.parent||4&t&&e.isUnterminated)return!1;if(kN(e)){if(26656&e.numericLiteralFlags)return!1;if(512&e.numericLiteralFlags)return!!(8&t)}return!SN(e)}(e,n))return qd(t,e);switch(e.kind){case 11:{const t=2&n?Ny:1&n||16777216&Qd(e)?by:ky;return e.singleQuote?"'"+t(e.text,39)+"'":'"'+t(e.text,34)+'"'}case 15:case 16:case 17:case 18:{const t=1&n||16777216&Qd(e)?by:ky,r=e.rawText??uy(t(e.text,96));switch(e.kind){case 15:return"`"+r+"`";case 16:return"`"+r+"${";case 17:return"}"+r+"${";case 18:return"}"+r+"`"}break}case 9:case 10:return e.text;case 14:return 4&n&&e.isUnterminated?e.text+(92===e.text.charCodeAt(e.text.length-1)?" /":"/"):e.text}return un.fail(`Literal kind '${e.kind}' not accounted for.`)}function np(e){return Ze(e)?`"${by(e)}"`:""+e}function rp(e){return Fo(e).replace(/^(\d)/,"_$1").replace(/\W/g,"_")}function ip(e){return!!(7&oc(e))||op(e)}function op(e){const t=Qh(e);return 260===t.kind&&299===t.parent.kind}function ap(e){return QF(e)&&(11===e.name.kind||up(e))}function sp(e){return QF(e)&&11===e.name.kind}function cp(e){return QF(e)&&TN(e.name)}function lp(e){return!!(t=e.valueDeclaration)&&267===t.kind&&!t.body;var t}function _p(e){return 307===e.kind||267===e.kind||r_(e)}function up(e){return!!(2048&e.flags)}function dp(e){return ap(e)&&pp(e)}function pp(e){switch(e.parent.kind){case 307:return MI(e.parent);case 268:return ap(e.parent.parent)&&qE(e.parent.parent.parent)&&!MI(e.parent.parent.parent)}return!1}function fp(e){var t;return null==(t=e.declarations)?void 0:t.find((e=>!(dp(e)||QF(e)&&up(e))))}function mp(e,t){return MI(e)||(1===(n=yk(t))||100===n||199===n)&&!!e.commonJsModuleIndicator;var n}function gp(e,t){switch(e.scriptKind){case 1:case 3:case 2:case 4:break;default:return!1}return!(e.isDeclarationFile||!Mk(t,"alwaysStrict")&&!nA(e.statements)&&!MI(e)&&!xk(t))}function hp(e){return!!(33554432&e.flags)||wv(e,128)}function yp(e,t){switch(e.kind){case 307:case 269:case 299:case 267:case 248:case 249:case 250:case 176:case 174:case 177:case 178:case 262:case 218:case 219:case 172:case 175:return!0;case 241:return!r_(t)}return!1}function vp(e){switch(un.type(e),e.kind){case 338:case 346:case 323:return!0;default:return bp(e)}}function bp(e){switch(un.type(e),e.kind){case 179:case 180:case 173:case 181:case 184:case 185:case 317:case 263:case 231:case 264:case 265:case 345:case 262:case 174:case 176:case 177:case 178:case 218:case 219:return!0;default:return!1}}function xp(e){switch(e.kind){case 272:case 271:return!0;default:return!1}}function kp(e){return xp(e)||jm(e)}function Sp(e){return xp(e)||Bm(e)}function Tp(e){switch(e.kind){case 272:case 271:case 243:case 263:case 262:case 267:case 265:case 264:case 266:return!0;default:return!1}}function Cp(e){return wp(e)||QF(e)||BD(e)||cf(e)}function wp(e){return xp(e)||fE(e)}function Np(e){return _c(e.parent,(e=>!!(1&jM(e))))}function Dp(e){return _c(e.parent,(e=>yp(e,e.parent)))}function Fp(e,t){let n=Dp(e);for(;n;)t(n),n=Dp(n)}function Ep(e){return e&&0!==od(e)?Kd(e):"(Missing)"}function Pp(e){return e.declaration?Ep(e.declaration.parameters[0].name):void 0}function Ap(e){return 167===e.kind&&!Lh(e.expression)}function Ip(e){var t;switch(e.kind){case 80:case 81:return(null==(t=e.emitNode)?void 0:t.autoGenerate)?void 0:e.escapedText;case 11:case 9:case 10:case 15:return pc(e.text);case 167:return Lh(e.expression)?pc(e.expression.text):void 0;case 295:return nC(e);default:return un.assertNever(e)}}function Op(e){return un.checkDefined(Ip(e))}function Lp(e){switch(e.kind){case 110:return"this";case 81:case 80:return 0===od(e)?mc(e):Kd(e);case 166:return Lp(e.left)+"."+Lp(e.right);case 211:return zN(e.name)||qN(e.name)?Lp(e.expression)+"."+Lp(e.name):un.assertNever(e.name);case 311:return Lp(e.left)+"#"+Lp(e.right);case 295:return Lp(e.namespace)+":"+Lp(e.name);default:return un.assertNever(e)}}function jp(e,t,...n){return Mp(hd(e),e,t,...n)}function Rp(e,t,n,...r){const i=Xa(e.text,t.pos);return Kx(e,i,t.end-i,n,...r)}function Mp(e,t,n,...r){const i=Gp(e,t);return Kx(e,i.start,i.length,n,...r)}function Bp(e,t,n,r){const i=Gp(e,t);return qp(e,i.start,i.length,n,r)}function Jp(e,t,n,r){const i=Xa(e.text,t.pos);return qp(e,i,t.end-i,n,r)}function zp(e,t,n){un.assertGreaterThanOrEqual(t,0),un.assertGreaterThanOrEqual(n,0),un.assertLessThanOrEqual(t,e.length),un.assertLessThanOrEqual(t+n,e.length)}function qp(e,t,n,r,i){return zp(e.text,t,n),{file:e,start:t,length:n,code:r.code,category:r.category,messageText:r.next?r:r.messageText,relatedInformation:i,canonicalHead:r.canonicalHead}}function Up(e,t,n){return{file:e,start:0,length:0,code:t.code,category:t.category,messageText:t.next?t:t.messageText,relatedInformation:n}}function Vp(e){return"string"==typeof e.messageText?{code:e.code,category:e.category,messageText:e.messageText,next:e.next}:e.messageText}function Wp(e,t,n){return{file:e,start:t.pos,length:t.end-t.pos,code:n.code,category:n.category,messageText:n.message}}function $p(e,...t){return{code:e.code,messageText:Gx(e,...t)}}function Hp(e,t){const n=ms(e.languageVersion,!0,e.languageVariant,e.text,void 0,t);return n.scan(),Ws(n.getTokenStart(),n.getTokenEnd())}function Kp(e,t){const n=ms(e.languageVersion,!0,e.languageVariant,e.text,void 0,t);return n.scan(),n.getToken()}function Gp(e,t){let n=t;switch(t.kind){case 307:{const t=Xa(e.text,0,!1);return t===e.text.length?Vs(0,0):Hp(e,t)}case 260:case 208:case 263:case 231:case 264:case 267:case 266:case 306:case 262:case 218:case 174:case 177:case 178:case 265:case 172:case 171:case 274:n=t.name;break;case 219:return function(e,t){const n=Xa(e.text,t.pos);if(t.body&&241===t.body.kind){const{line:r}=Ja(e,t.body.pos),{line:i}=Ja(e,t.body.end);if(r0?t.statements[0].pos:t.end);case 253:case 229:return Hp(e,Xa(e.text,t.pos));case 238:return Hp(e,Xa(e.text,t.expression.end));case 350:return Hp(e,Xa(e.text,t.tagName.pos));case 176:{const n=t,r=Xa(e.text,n.pos),i=ms(e.languageVersion,!0,e.languageVariant,e.text,void 0,r);let o=i.scan();for(;137!==o&&1!==o;)o=i.scan();return Ws(r,i.getTokenEnd())}}if(void 0===n)return Hp(e,t.pos);un.assert(!iP(n));const r=Cd(n),i=r||CN(t)?n.pos:Xa(e.text,n.pos);return r?(un.assert(i===n.pos,"This failure could trigger https://github.com/Microsoft/TypeScript/issues/20809"),un.assert(i===n.end,"This failure could trigger https://github.com/Microsoft/TypeScript/issues/20809")):(un.assert(i>=n.pos,"This failure could trigger https://github.com/Microsoft/TypeScript/issues/20809"),un.assert(i<=n.end,"This failure could trigger https://github.com/Microsoft/TypeScript/issues/20809")),Ws(i,n.end)}function Xp(e){return 307===e.kind&&!Qp(e)}function Qp(e){return void 0!==(e.externalModuleIndicator||e.commonJsModuleIndicator)}function Yp(e){return 6===e.scriptKind}function Zp(e){return!!(4096&rc(e))}function ef(e){return!(!(8&rc(e))||Ys(e,e.parent))}function tf(e){return 6==(7&oc(e))}function nf(e){return 4==(7&oc(e))}function rf(e){return 2==(7&oc(e))}function of(e){const t=7&oc(e);return 2===t||4===t||6===t}function af(e){return 1==(7&oc(e))}function sf(e){return 213===e.kind&&108===e.expression.kind}function cf(e){return 213===e.kind&&102===e.expression.kind}function lf(e){return vF(e)&&102===e.keywordToken&&"meta"===e.name.escapedText}function _f(e){return BD(e)&&MD(e.argument)&&TN(e.argument.literal)}function uf(e){return 244===e.kind&&11===e.expression.kind}function df(e){return!!(2097152&Qd(e))}function pf(e){return df(e)&&$F(e)}function ff(e){return zN(e.name)&&!e.initializer}function mf(e){return df(e)&&wF(e)&&v(e.declarationList.declarations,ff)}function gf(e,t){return 12!==e.kind?ls(t.text,e.pos):void 0}function hf(e,t){return N(169===e.kind||168===e.kind||218===e.kind||219===e.kind||217===e.kind||260===e.kind||281===e.kind?K(_s(t,e.pos),ls(t,e.pos)):ls(t,e.pos),(n=>n.end<=e.end&&42===t.charCodeAt(n.pos+1)&&42===t.charCodeAt(n.pos+2)&&47!==t.charCodeAt(n.pos+3)))}var yf=/^\/\/\/\s*/,vf=/^\/\/\/\s*/,bf=/^\/\/\/\s*/,xf=/^\/\/\/\s*/,kf=/^\/\/\/\s*/,Sf=/^\/\/\/\s*/;function Tf(e){if(182<=e.kind&&e.kind<=205)return!0;switch(e.kind){case 133:case 159:case 150:case 163:case 154:case 136:case 155:case 151:case 157:case 106:case 146:return!0;case 116:return 222!==e.parent.kind;case 233:return Cf(e);case 168:return 200===e.parent.kind||195===e.parent.kind;case 80:(166===e.parent.kind&&e.parent.right===e||211===e.parent.kind&&e.parent.name===e)&&(e=e.parent),un.assert(80===e.kind||166===e.kind||211===e.kind,"'node' was expected to be a qualified name, identifier or property access in 'isPartOfTypeNode'.");case 166:case 211:case 110:{const{parent:t}=e;if(186===t.kind)return!1;if(205===t.kind)return!t.isTypeOf;if(182<=t.kind&&t.kind<=205)return!0;switch(t.kind){case 233:return Cf(t);case 168:case 345:return e===t.constraint;case 172:case 171:case 169:case 260:case 262:case 218:case 219:case 176:case 174:case 173:case 177:case 178:case 179:case 180:case 181:case 216:return e===t.type;case 213:case 214:case 215:return T(t.typeArguments,e)}}}return!1}function Cf(e){return DP(e.parent)||sP(e.parent)||jE(e.parent)&&!ib(e)}function wf(e,t){return function e(n){switch(n.kind){case 253:return t(n);case 269:case 241:case 245:case 246:case 247:case 248:case 249:case 250:case 254:case 255:case 296:case 297:case 256:case 258:case 299:return PI(n,e)}}(e)}function Nf(e,t){return function e(n){switch(n.kind){case 229:t(n);const r=n.expression;return void(r&&e(r));case 266:case 264:case 267:case 265:return;default:if(n_(n)){if(n.name&&167===n.name.kind)return void e(n.name.expression)}else Tf(n)||PI(n,e)}}(e)}function Df(e){return e&&188===e.kind?e.elementType:e&&183===e.kind?be(e.typeArguments):void 0}function Ff(e){switch(e.kind){case 264:case 263:case 231:case 187:return e.members;case 210:return e.properties}}function Ef(e){if(e)switch(e.kind){case 208:case 306:case 169:case 303:case 172:case 171:case 304:case 260:return!0}return!1}function Pf(e){return 261===e.parent.kind&&243===e.parent.parent.kind}function Af(e){return!!Fm(e)&&($D(e.parent)&&cF(e.parent.parent)&&2===eg(e.parent.parent)||If(e.parent))}function If(e){return!!Fm(e)&&cF(e)&&1===eg(e)}function Of(e){return(VF(e)?rf(e)&&zN(e.name)&&Pf(e):cD(e)?Iv(e)&&Dv(e):sD(e)&&Iv(e))||If(e)}function Lf(e){switch(e.kind){case 174:case 173:case 176:case 177:case 178:case 262:case 218:return!0}return!1}function jf(e,t){for(;;){if(t&&t(e),256!==e.statement.kind)return e.statement;e=e.statement}}function Rf(e){return e&&241===e.kind&&n_(e.parent)}function Mf(e){return e&&174===e.kind&&210===e.parent.kind}function Bf(e){return!(174!==e.kind&&177!==e.kind&&178!==e.kind||210!==e.parent.kind&&231!==e.parent.kind)}function Jf(e){return e&&1===e.kind}function zf(e){return e&&0===e.kind}function qf(e,t,n,r){return d(null==e?void 0:e.properties,(e=>{if(!ME(e))return;const i=Ip(e.name);return t===i||r&&r===i?n(e):void 0}))}function Uf(e,t,n){return qf(e,t,(e=>WD(e.initializer)?b(e.initializer.elements,(e=>TN(e)&&e.text===n)):void 0))}function Vf(e){if(e&&e.statements.length)return tt(e.statements[0].expression,$D)}function Wf(e,t,n){return $f(e,t,(e=>WD(e.initializer)?b(e.initializer.elements,(e=>TN(e)&&e.text===n)):void 0))}function $f(e,t,n){return qf(Vf(e),t,n)}function Hf(e){return _c(e.parent,n_)}function Kf(e){return _c(e.parent,i_)}function Gf(e){return _c(e.parent,__)}function Xf(e){return _c(e.parent,(e=>__(e)||n_(e)?"quit":uD(e)))}function Qf(e){return _c(e.parent,r_)}function Yf(e){const t=_c(e.parent,(e=>__(e)?"quit":aD(e)));return t&&__(t.parent)?Gf(t.parent):Gf(t??e)}function Zf(e,t,n){for(un.assert(307!==e.kind);;){if(!(e=e.parent))return un.fail();switch(e.kind){case 167:if(n&&__(e.parent.parent))return e;e=e.parent.parent;break;case 170:169===e.parent.kind&&l_(e.parent.parent)?e=e.parent.parent:l_(e.parent)&&(e=e.parent);break;case 219:if(!t)continue;case 262:case 218:case 267:case 175:case 172:case 171:case 174:case 173:case 176:case 177:case 178:case 179:case 180:case 181:case 266:case 307:return e}}}function em(e){switch(e.kind){case 219:case 262:case 218:case 172:return!0;case 241:switch(e.parent.kind){case 176:case 174:case 177:case 178:return!0;default:return!1}default:return!1}}function tm(e){return zN(e)&&(HF(e.parent)||$F(e.parent))&&e.parent.name===e&&(e=e.parent),qE(Zf(e,!0,!1))}function nm(e){const t=Zf(e,!1,!1);if(t)switch(t.kind){case 176:case 262:case 218:return t}}function rm(e,t){for(;;){if(!(e=e.parent))return;switch(e.kind){case 167:e=e.parent;break;case 262:case 218:case 219:if(!t)continue;case 172:case 171:case 174:case 173:case 176:case 177:case 178:case 175:return e;case 170:169===e.parent.kind&&l_(e.parent.parent)?e=e.parent.parent:l_(e.parent)&&(e=e.parent)}}}function im(e){if(218===e.kind||219===e.kind){let t=e,n=e.parent;for(;217===n.kind;)t=n,n=n.parent;if(213===n.kind&&n.expression===t)return n}}function om(e){const t=e.kind;return(211===t||212===t)&&108===e.expression.kind}function am(e){const t=e.kind;return(211===t||212===t)&&110===e.expression.kind}function sm(e){var t;return!!e&&VF(e)&&110===(null==(t=e.initializer)?void 0:t.kind)}function cm(e){return!!e&&(BE(e)||ME(e))&&cF(e.parent.parent)&&64===e.parent.parent.operatorToken.kind&&110===e.parent.parent.right.kind}function lm(e){switch(e.kind){case 183:return e.typeName;case 233:return ob(e.expression)?e.expression:void 0;case 80:case 166:return e}}function _m(e){switch(e.kind){case 215:return e.tag;case 286:case 285:return e.tagName;case 226:return e.right;case 289:return e;default:return e.expression}}function um(e,t,n,r){if(e&&kc(t)&&qN(t.name))return!1;switch(t.kind){case 263:return!0;case 231:return!e;case 172:return void 0!==n&&(e?HF(n):__(n)&&!Ev(t)&&!Pv(t));case 177:case 178:case 174:return void 0!==t.body&&void 0!==n&&(e?HF(n):__(n));case 169:return!!e&&void 0!==n&&void 0!==n.body&&(176===n.kind||174===n.kind||178===n.kind)&&av(n)!==t&&void 0!==r&&263===r.kind}return!1}function dm(e,t,n,r){return Ov(t)&&um(e,t,n,r)}function pm(e,t,n,r){return dm(e,t,n,r)||fm(e,t,n)}function fm(e,t,n){switch(t.kind){case 263:return $(t.members,(r=>pm(e,r,t,n)));case 231:return!e&&$(t.members,(r=>pm(e,r,t,n)));case 174:case 178:case 176:return $(t.parameters,(r=>dm(e,r,t,n)));default:return!1}}function mm(e,t){if(dm(e,t))return!0;const n=rv(t);return!!n&&fm(e,n,t)}function gm(e,t,n){let r;if(u_(t)){const{firstAccessor:e,secondAccessor:i,setAccessor:o}=dv(n.members,t),a=Ov(e)?e:i&&Ov(i)?i:void 0;if(!a||t!==a)return!1;r=null==o?void 0:o.parameters}else _D(t)&&(r=t.parameters);if(dm(e,t,n))return!0;if(r)for(const i of r)if(!sv(i)&&dm(e,i,t,n))return!0;return!1}function hm(e){if(e.textSourceNode){switch(e.textSourceNode.kind){case 11:return hm(e.textSourceNode);case 15:return""===e.text}return!1}return""===e.text}function ym(e){const{parent:t}=e;return(286===t.kind||285===t.kind||287===t.kind)&&t.tagName===e}function vm(e){switch(e.kind){case 108:case 106:case 112:case 97:case 14:case 209:case 210:case 211:case 212:case 213:case 214:case 215:case 234:case 216:case 238:case 235:case 217:case 218:case 231:case 219:case 222:case 220:case 221:case 224:case 225:case 226:case 227:case 230:case 228:case 232:case 284:case 285:case 288:case 229:case 223:case 236:return!0;case 233:return!jE(e.parent)&&!sP(e.parent);case 166:for(;166===e.parent.kind;)e=e.parent;return 186===e.parent.kind||ju(e.parent)||WE(e.parent)||$E(e.parent)||ym(e);case 311:for(;$E(e.parent);)e=e.parent;return 186===e.parent.kind||ju(e.parent)||WE(e.parent)||$E(e.parent)||ym(e);case 81:return cF(e.parent)&&e.parent.left===e&&103===e.parent.operatorToken.kind;case 80:if(186===e.parent.kind||ju(e.parent)||WE(e.parent)||$E(e.parent)||ym(e))return!0;case 9:case 10:case 11:case 15:case 110:return bm(e);default:return!1}}function bm(e){const{parent:t}=e;switch(t.kind){case 260:case 169:case 172:case 171:case 306:case 303:case 208:return t.initializer===e;case 244:case 245:case 246:case 247:case 253:case 254:case 255:case 296:case 257:return t.expression===e;case 248:const n=t;return n.initializer===e&&261!==n.initializer.kind||n.condition===e||n.incrementor===e;case 249:case 250:const r=t;return r.initializer===e&&261!==r.initializer.kind||r.expression===e;case 216:case 234:case 239:case 167:case 238:return e===t.expression;case 170:case 294:case 293:case 305:return!0;case 233:return t.expression===e&&!Tf(t);case 304:return t.objectAssignmentInitializer===e;default:return vm(t)}}function xm(e){for(;166===e.kind||80===e.kind;)e=e.parent;return 186===e.kind}function km(e){return _E(e)&&!!e.parent.moduleSpecifier}function Sm(e){return 271===e.kind&&283===e.moduleReference.kind}function Tm(e){return un.assert(Sm(e)),e.moduleReference.expression}function Cm(e){return jm(e)&&Cx(e.initializer).arguments[0]}function wm(e){return 271===e.kind&&283!==e.moduleReference.kind}function Nm(e){return 307===(null==e?void 0:e.kind)}function Dm(e){return Fm(e)}function Fm(e){return!!e&&!!(524288&e.flags)}function Em(e){return!!e&&!!(134217728&e.flags)}function Pm(e){return!Yp(e)}function Am(e){return!!e&&!!(16777216&e.flags)}function Im(e){return vD(e)&&zN(e.typeName)&&"Object"===e.typeName.escapedText&&e.typeArguments&&2===e.typeArguments.length&&(154===e.typeArguments[0].kind||150===e.typeArguments[0].kind)}function Om(e,t){if(213!==e.kind)return!1;const{expression:n,arguments:r}=e;if(80!==n.kind||"require"!==n.escapedText)return!1;if(1!==r.length)return!1;const i=r[0];return!t||Lu(i)}function Lm(e){return Mm(e,!1)}function jm(e){return Mm(e,!0)}function Rm(e){return VD(e)&&jm(e.parent.parent)}function Mm(e,t){return VF(e)&&!!e.initializer&&Om(t?Cx(e.initializer):e.initializer,!0)}function Bm(e){return wF(e)&&e.declarationList.declarations.length>0&&v(e.declarationList.declarations,(e=>Lm(e)))}function Jm(e){return 39===e||34===e}function zm(e,t){return 34===qd(t,e).charCodeAt(0)}function qm(e){return cF(e)||kx(e)||zN(e)||GD(e)}function Um(e){return Fm(e)&&e.initializer&&cF(e.initializer)&&(57===e.initializer.operatorToken.kind||61===e.initializer.operatorToken.kind)&&e.name&&ob(e.name)&&Gm(e.name,e.initializer.left)?e.initializer.right:e.initializer}function Vm(e){const t=Um(e);return t&&$m(t,_b(e.name))}function Wm(e){if(e&&e.parent&&cF(e.parent)&&64===e.parent.operatorToken.kind){const t=_b(e.parent.left);return $m(e.parent.right,t)||function(e,t,n){const r=cF(t)&&(57===t.operatorToken.kind||61===t.operatorToken.kind)&&$m(t.right,n);if(r&&Gm(e,t.left))return r}(e.parent.left,e.parent.right,t)}if(e&&GD(e)&&tg(e)){const t=function(e,t){return d(e.properties,(e=>ME(e)&&zN(e.name)&&"value"===e.name.escapedText&&e.initializer&&$m(e.initializer,t)))}(e.arguments[2],"prototype"===e.arguments[1].text);if(t)return t}}function $m(e,t){if(GD(e)){const t=oh(e.expression);return 218===t.kind||219===t.kind?e:void 0}return 218===e.kind||231===e.kind||219===e.kind||$D(e)&&(0===e.properties.length||t)?e:void 0}function Hm(e){const t=VF(e.parent)?e.parent.name:cF(e.parent)&&64===e.parent.operatorToken.kind?e.parent.left:void 0;return t&&$m(e.right,_b(t))&&ob(t)&&Gm(t,e.left)}function Km(e){if(cF(e.parent)){const t=57!==e.parent.operatorToken.kind&&61!==e.parent.operatorToken.kind||!cF(e.parent.parent)?e.parent:e.parent.parent;if(64===t.operatorToken.kind&&zN(t.left))return t.left}else if(VF(e.parent))return e.parent.name}function Gm(e,t){return Jh(e)&&Jh(t)?zh(e)===zh(t):ul(e)&&ng(t)&&(110===t.expression.kind||zN(t.expression)&&("window"===t.expression.escapedText||"self"===t.expression.escapedText||"global"===t.expression.escapedText))?Gm(e,sg(t)):!(!ng(e)||!ng(t))&&lg(e)===lg(t)&&Gm(e.expression,t.expression)}function Xm(e){for(;nb(e,!0);)e=e.right;return e}function Qm(e){return zN(e)&&"exports"===e.escapedText}function Ym(e){return zN(e)&&"module"===e.escapedText}function Zm(e){return(HD(e)||rg(e))&&Ym(e.expression)&&"exports"===lg(e)}function eg(e){const t=function(e){if(GD(e)){if(!tg(e))return 0;const t=e.arguments[0];return Qm(t)||Zm(t)?8:ig(t)&&"prototype"===lg(t)?9:7}return 64!==e.operatorToken.kind||!kx(e.left)||iF(t=Xm(e))&&kN(t.expression)&&"0"===t.expression.text?0:ag(e.left.expression,!0)&&"prototype"===lg(e.left)&&$D(ug(e))?6:_g(e.left);var t}(e);return 5===t||Fm(e)?t:0}function tg(e){return 3===u(e.arguments)&&HD(e.expression)&&zN(e.expression.expression)&&"Object"===mc(e.expression.expression)&&"defineProperty"===mc(e.expression.name)&&Lh(e.arguments[1])&&ag(e.arguments[0],!0)}function ng(e){return HD(e)||rg(e)}function rg(e){return KD(e)&&Lh(e.argumentExpression)}function ig(e,t){return HD(e)&&(!t&&110===e.expression.kind||zN(e.name)&&ag(e.expression,!0))||og(e,t)}function og(e,t){return rg(e)&&(!t&&110===e.expression.kind||ob(e.expression)||ig(e.expression,!0))}function ag(e,t){return ob(e)||ig(e,t)}function sg(e){return HD(e)?e.name:e.argumentExpression}function cg(e){if(HD(e))return e.name;const t=oh(e.argumentExpression);return kN(t)||Lu(t)?t:e}function lg(e){const t=cg(e);if(t){if(zN(t))return t.escapedText;if(Lu(t)||kN(t))return pc(t.text)}}function _g(e){if(110===e.expression.kind)return 4;if(Zm(e))return 2;if(ag(e.expression,!0)){if(_b(e.expression))return 3;let t=e;for(;!zN(t.expression);)t=t.expression;const n=t.expression;if(("exports"===n.escapedText||"module"===n.escapedText&&"exports"===lg(t))&&ig(e))return 1;if(ag(e,!0)||KD(e)&&Mh(e))return 5}return 0}function ug(e){for(;cF(e.right);)e=e.right;return e.right}function dg(e){return cF(e)&&3===eg(e)}function pg(e){return Fm(e)&&e.parent&&244===e.parent.kind&&(!KD(e)||rg(e))&&!!el(e.parent)}function fg(e,t){const{valueDeclaration:n}=e;(!n||(!(33554432&t.flags)||Fm(t)||33554432&n.flags)&&qm(n)&&!qm(t)||n.kind!==t.kind&&function(e){return QF(e)||zN(e)}(n))&&(e.valueDeclaration=t)}function mg(e){if(!e||!e.valueDeclaration)return!1;const t=e.valueDeclaration;return 262===t.kind||VF(t)&&t.initializer&&n_(t.initializer)}function gg(e){switch(null==e?void 0:e.kind){case 260:case 208:case 272:case 278:case 271:case 273:case 280:case 274:case 281:case 276:case 205:return!0}return!1}function hg(e){var t,n;switch(e.kind){case 260:case 208:return null==(t=_c(e.initializer,(e=>Om(e,!0))))?void 0:t.arguments[0];case 272:case 278:case 351:return tt(e.moduleSpecifier,Lu);case 271:return tt(null==(n=tt(e.moduleReference,xE))?void 0:n.expression,Lu);case 273:case 280:return tt(e.parent.moduleSpecifier,Lu);case 274:case 281:return tt(e.parent.parent.moduleSpecifier,Lu);case 276:return tt(e.parent.parent.parent.moduleSpecifier,Lu);case 205:return _f(e)?e.argument.literal:void 0;default:un.assertNever(e)}}function yg(e){return vg(e)||un.failBadSyntaxKind(e.parent)}function vg(e){switch(e.parent.kind){case 272:case 278:case 351:return e.parent;case 283:return e.parent.parent;case 213:return cf(e.parent)||Om(e.parent,!1)?e.parent:void 0;case 201:if(!TN(e))break;return tt(e.parent.parent,BD);default:return}}function bg(e,t){return!!t.rewriteRelativeImportExtensions&&vo(e)&&!$I(e)&&IS(e)}function xg(e){switch(e.kind){case 272:case 278:case 351:return e.moduleSpecifier;case 271:return 283===e.moduleReference.kind?e.moduleReference.expression:void 0;case 205:return _f(e)?e.argument.literal:void 0;case 213:return e.arguments[0];case 267:return 11===e.name.kind?e.name:void 0;default:return un.assertNever(e)}}function kg(e){switch(e.kind){case 272:return e.importClause&&tt(e.importClause.namedBindings,lE);case 271:return e;case 278:return e.exportClause&&tt(e.exportClause,_E);default:return un.assertNever(e)}}function Sg(e){return!(272!==e.kind&&351!==e.kind||!e.importClause||!e.importClause.name)}function Tg(e,t){if(e.name){const n=t(e);if(n)return n}if(e.namedBindings){const n=lE(e.namedBindings)?t(e.namedBindings):d(e.namedBindings.elements,t);if(n)return n}}function Cg(e){switch(e.kind){case 169:case 174:case 173:case 304:case 303:case 172:case 171:return void 0!==e.questionToken}return!1}function wg(e){const t=tP(e)?fe(e.parameters):void 0,n=tt(t&&t.name,zN);return!!n&&"new"===n.escapedText}function Ng(e){return 346===e.kind||338===e.kind||340===e.kind}function Dg(e){return Ng(e)||GF(e)}function Fg(e){return DF(e)&&cF(e.expression)&&0!==eg(e.expression)&&cF(e.expression.right)&&(57===e.expression.right.operatorToken.kind||61===e.expression.right.operatorToken.kind)?e.expression.right.right:void 0}function Eg(e){switch(e.kind){case 243:const t=Pg(e);return t&&t.initializer;case 172:case 303:return e.initializer}}function Pg(e){return wF(e)?fe(e.declarationList.declarations):void 0}function Ag(e){return QF(e)&&e.body&&267===e.body.kind?e.body:void 0}function Ig(e){if(e.kind>=243&&e.kind<=259)return!0;switch(e.kind){case 80:case 110:case 108:case 166:case 236:case 212:case 211:case 208:case 218:case 219:case 174:case 177:case 178:return!0;default:return!1}}function Og(e){switch(e.kind){case 219:case 226:case 241:case 252:case 179:case 296:case 263:case 231:case 175:case 176:case 185:case 180:case 251:case 259:case 246:case 212:case 242:case 1:case 266:case 306:case 277:case 278:case 281:case 244:case 249:case 250:case 248:case 262:case 218:case 184:case 177:case 80:case 245:case 272:case 271:case 181:case 264:case 317:case 323:case 256:case 174:case 173:case 267:case 202:case 270:case 210:case 169:case 217:case 211:case 303:case 172:case 171:case 253:case 240:case 178:case 304:case 305:case 255:case 257:case 258:case 265:case 168:case 260:case 243:case 247:case 254:return!0;default:return!1}}function Lg(e,t){let n;Ef(e)&&Fu(e)&&Nu(e.initializer)&&(n=se(n,jg(e,e.initializer.jsDoc)));let r=e;for(;r&&r.parent;){if(Nu(r)&&(n=se(n,jg(e,r.jsDoc))),169===r.kind){n=se(n,(t?Ec:Fc)(r));break}if(168===r.kind){n=se(n,(t?Ic:Ac)(r));break}r=Rg(r)}return n||l}function jg(e,t){const n=ve(t);return O(t,(t=>{if(t===n){const n=N(t.tags,(t=>function(e,t){return!((SP(t)||FP(t))&&t.parent&&iP(t.parent)&&ZD(t.parent.parent)&&t.parent.parent!==e)}(e,t)));return t.tags===n?[t]:n}return N(t.tags,gP)}))}function Rg(e){const t=e.parent;return 303===t.kind||277===t.kind||172===t.kind||244===t.kind&&211===e.kind||253===t.kind||Ag(t)||nb(e)?t:t.parent&&(Pg(t.parent)===e||nb(t))?t.parent:t.parent&&t.parent.parent&&(Pg(t.parent.parent)||Eg(t.parent.parent)===e||Fg(t.parent.parent))?t.parent.parent:void 0}function Mg(e){if(e.symbol)return e.symbol;if(!zN(e.name))return;const t=e.name.escapedText,n=zg(e);if(!n)return;const r=b(n.parameters,(e=>80===e.name.kind&&e.name.escapedText===t));return r&&r.symbol}function Bg(e){if(iP(e.parent)&&e.parent.tags){const t=b(e.parent.tags,Ng);if(t)return t}return zg(e)}function Jg(e){return al(e,gP)}function zg(e){const t=qg(e);if(t)return sD(t)&&t.type&&n_(t.type)?t.type:n_(t)?t:void 0}function qg(e){const t=Ug(e);if(t)return Fg(t)||function(e){return DF(e)&&cF(e.expression)&&64===e.expression.operatorToken.kind?Xm(e.expression):void 0}(t)||Eg(t)||Pg(t)||Ag(t)||t}function Ug(e){const t=Vg(e);if(!t)return;const n=t.parent;return n&&n.jsDoc&&t===ye(n.jsDoc)?n:void 0}function Vg(e){return _c(e.parent,iP)}function Wg(e){const t=e.name.escapedText,{typeParameters:n}=e.parent.parent.parent;return n&&b(n,(e=>e.name.escapedText===t))}function $g(e){return!!e.typeArguments}var Hg=(e=>(e[e.None=0]="None",e[e.Definite=1]="Definite",e[e.Compound=2]="Compound",e))(Hg||{});function Kg(e){let t=e.parent;for(;;){switch(t.kind){case 226:const n=t;return Zv(n.operatorToken.kind)&&n.left===e?n:void 0;case 224:case 225:const r=t,i=r.operator;return 46===i||47===i?r:void 0;case 249:case 250:const o=t;return o.initializer===e?o:void 0;case 217:case 209:case 230:case 235:e=t;break;case 305:e=t.parent;break;case 304:if(t.name!==e)return;e=t.parent;break;case 303:if(t.name===e)return;e=t.parent;break;default:return}t=e.parent}}function Gg(e){const t=Kg(e);if(!t)return 0;switch(t.kind){case 226:const e=t.operatorToken.kind;return 64===e||Gv(e)?1:2;case 224:case 225:return 2;case 249:case 250:return 1}}function Xg(e){return!!Kg(e)}function Qg(e){const t=Kg(e);return!!t&&nb(t,!0)&&function(e){const t=oh(e.right);return 226===t.kind&&OA(t.operatorToken.kind)}(t)}function Yg(e){switch(e.kind){case 241:case 243:case 254:case 245:case 255:case 269:case 296:case 297:case 256:case 248:case 249:case 250:case 246:case 247:case 258:case 299:return!0}return!1}function Zg(e){return eF(e)||tF(e)||f_(e)||$F(e)||dD(e)}function eh(e,t){for(;e&&e.kind===t;)e=e.parent;return e}function th(e){return eh(e,196)}function nh(e){return eh(e,217)}function rh(e){let t;for(;e&&196===e.kind;)t=e,e=e.parent;return[t,e]}function ih(e){for(;ID(e);)e=e.type;return e}function oh(e,t){return cA(e,t?-2147483647:1)}function ah(e){return(211===e.kind||212===e.kind)&&(e=nh(e.parent))&&220===e.kind}function sh(e,t){for(;e;){if(e===t)return!0;e=e.parent}return!1}function ch(e){return!qE(e)&&!x_(e)&&lu(e.parent)&&e.parent.name===e}function lh(e){const t=e.parent;switch(e.kind){case 11:case 15:case 9:if(rD(t))return t.parent;case 80:if(lu(t))return t.name===e?t:void 0;if(nD(t)){const e=t.parent;return bP(e)&&e.name===t?e:void 0}{const n=t.parent;return cF(n)&&0!==eg(n)&&(n.left.symbol||n.symbol)&&Tc(n)===e?n:void 0}case 81:return lu(t)&&t.name===e?t:void 0;default:return}}function _h(e){return Lh(e)&&167===e.parent.kind&&lu(e.parent.parent)}function uh(e){const t=e.parent;switch(t.kind){case 172:case 171:case 174:case 173:case 177:case 178:case 306:case 303:case 211:return t.name===e;case 166:return t.right===e;case 208:case 276:return t.propertyName===e;case 281:case 291:case 285:case 286:case 287:return!0}return!1}function dh(e){switch(e.parent.kind){case 273:case 276:case 274:case 281:case 277:case 271:case 280:return e.parent;case 166:do{e=e.parent}while(166===e.parent.kind);return dh(e)}}function ph(e){return ob(e)||pF(e)}function fh(e){return ph(mh(e))}function mh(e){return pE(e)?e.expression:e.right}function gh(e){return 304===e.kind?e.name:303===e.kind?e.initializer:e.parent.right}function hh(e){const t=yh(e);if(t&&Fm(e)){const t=Lc(e);if(t)return t.class}return t}function yh(e){const t=kh(e.heritageClauses,96);return t&&t.types.length>0?t.types[0]:void 0}function vh(e){if(Fm(e))return jc(e).map((e=>e.class));{const t=kh(e.heritageClauses,119);return null==t?void 0:t.types}}function bh(e){return KF(e)?xh(e)||l:__(e)&&K(rn(hh(e)),vh(e))||l}function xh(e){const t=kh(e.heritageClauses,96);return t?t.types:void 0}function kh(e,t){if(e)for(const n of e)if(n.token===t)return n}function Sh(e,t){for(;e;){if(e.kind===t)return e;e=e.parent}}function Th(e){return 83<=e&&e<=165}function Ch(e){return 19<=e&&e<=79}function wh(e){return Th(e)||Ch(e)}function Nh(e){return 128<=e&&e<=165}function Dh(e){return Th(e)&&!Nh(e)}function Fh(e){const t=Fa(e);return void 0!==t&&Dh(t)}function Eh(e){const t=gc(e);return!!t&&!Nh(t)}function Ph(e){return 2<=e&&e<=7}var Ah=(e=>(e[e.Normal=0]="Normal",e[e.Generator=1]="Generator",e[e.Async=2]="Async",e[e.Invalid=4]="Invalid",e[e.AsyncGenerator=3]="AsyncGenerator",e))(Ah||{});function Ih(e){if(!e)return 4;let t=0;switch(e.kind){case 262:case 218:case 174:e.asteriskToken&&(t|=1);case 219:wv(e,1024)&&(t|=2)}return e.body||(t|=4),t}function Oh(e){switch(e.kind){case 262:case 218:case 219:case 174:return void 0!==e.body&&void 0===e.asteriskToken&&wv(e,1024)}return!1}function Lh(e){return Lu(e)||kN(e)}function jh(e){return aF(e)&&(40===e.operator||41===e.operator)&&kN(e.operand)}function Rh(e){const t=Tc(e);return!!t&&Mh(t)}function Mh(e){if(167!==e.kind&&212!==e.kind)return!1;const t=KD(e)?oh(e.argumentExpression):e.expression;return!Lh(t)&&!jh(t)}function Bh(e){switch(e.kind){case 80:case 81:return e.escapedText;case 11:case 15:case 9:case 10:return pc(e.text);case 167:const t=e.expression;return Lh(t)?pc(t.text):jh(t)?41===t.operator?Da(t.operator)+t.operand.text:t.operand.text:void 0;case 295:return nC(e);default:return un.assertNever(e)}}function Jh(e){switch(e.kind){case 80:case 11:case 15:case 9:return!0;default:return!1}}function zh(e){return ul(e)?mc(e):IE(e)?rC(e):e.text}function qh(e){return ul(e)?e.escapedText:IE(e)?nC(e):pc(e.text)}function Uh(e,t){return`__#${RB(e)}@${t}`}function Vh(e){return Gt(e.escapedName,"__@")}function Wh(e){return Gt(e.escapedName,"__#")}function $h(e,t){switch((e=cA(e)).kind){case 231:if(kz(e))return!1;break;case 218:if(e.name)return!1;break;case 219:break;default:return!1}return"function"!=typeof t||t(e)}function Hh(e){switch(e.kind){case 303:return!function(e){return zN(e)?"__proto__"===mc(e):TN(e)&&"__proto__"===e.text}(e.name);case 304:return!!e.objectAssignmentInitializer;case 260:return zN(e.name)&&!!e.initializer;case 169:case 208:return zN(e.name)&&!!e.initializer&&!e.dotDotDotToken;case 172:return!!e.initializer;case 226:switch(e.operatorToken.kind){case 64:case 77:case 76:case 78:return zN(e.left)}break;case 277:return!0}return!1}function Kh(e,t){if(!Hh(e))return!1;switch(e.kind){case 303:case 260:case 169:case 208:case 172:return $h(e.initializer,t);case 304:return $h(e.objectAssignmentInitializer,t);case 226:return $h(e.right,t);case 277:return $h(e.expression,t)}}function Gh(e){return"push"===e.escapedText||"unshift"===e.escapedText}function Xh(e){return 169===Qh(e).kind}function Qh(e){for(;208===e.kind;)e=e.parent.parent;return e}function Yh(e){const t=e.kind;return 176===t||218===t||262===t||219===t||174===t||177===t||178===t||267===t||307===t}function Zh(e){return KS(e.pos)||KS(e.end)}var ey=(e=>(e[e.Left=0]="Left",e[e.Right=1]="Right",e))(ey||{});function ty(e){const t=iy(e),n=214===e.kind&&void 0!==e.arguments;return ny(e.kind,t,n)}function ny(e,t,n){switch(e){case 214:return n?0:1;case 224:case 221:case 222:case 220:case 223:case 227:case 229:return 1;case 226:switch(t){case 43:case 64:case 65:case 66:case 68:case 67:case 69:case 70:case 71:case 72:case 73:case 74:case 79:case 75:case 76:case 77:case 78:return 1}}return 0}function ry(e){const t=iy(e),n=214===e.kind&&void 0!==e.arguments;return ay(e.kind,t,n)}function iy(e){return 226===e.kind?e.operatorToken.kind:224===e.kind||225===e.kind?e.operator:e.kind}var oy=(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",e))(oy||{});function ay(e,t,n){switch(e){case 356:return 0;case 230:return 1;case 229:return 2;case 227:return 4;case 226:switch(t){case 28:return 0;case 64:case 65:case 66:case 68:case 67:case 69:case 70:case 71:case 72:case 73:case 74:case 79:case 75:case 76:case 77:case 78:return 3;default:return sy(t)}case 216:case 235:case 224:case 221:case 222:case 220:case 223:return 16;case 225:return 17;case 213:return 18;case 214:return n?19:18;case 215:case 211:case 212:case 236:return 19;case 234:case 238:return 11;case 110:case 108:case 80:case 81:case 106:case 112:case 97:case 9:case 10:case 11:case 209:case 210:case 218:case 219:case 231:case 14:case 15:case 228:case 217:case 232:case 284:case 285:case 288:return 20;default:return-1}}function sy(e){switch(e){case 61:return 4;case 57:return 5;case 56:return 6;case 52:return 7;case 53:return 8;case 51:return 9;case 35:case 36:case 37:case 38:return 10;case 30:case 32:case 33:case 34:case 104:case 103:case 130:case 152:return 11;case 48:case 49:case 50:return 12;case 40:case 41:return 13;case 42:case 44:case 45:return 14;case 43:return 15}return-1}function cy(e){return N(e,(e=>{switch(e.kind){case 294:return!!e.expression;case 12:return!e.containsOnlyTriviaWhiteSpaces;default:return!0}}))}function ly(){let e=[];const t=[],n=new Map;let r=!1;return{add:function(i){let o;i.file?(o=n.get(i.file.fileName),o||(o=[],n.set(i.file.fileName,o),Z(t,i.file.fileName,Ct))):(r&&(r=!1,e=e.slice()),o=e),Z(o,i,nk,ok)},lookup:function(t){let r;if(r=t.file?n.get(t.file.fileName):e,!r)return;const i=Te(r,t,st,nk);return i>=0?r[i]:~i>0&&ok(t,r[~i-1])?r[~i-1]:void 0},getGlobalDiagnostics:function(){return r=!0,e},getDiagnostics:function(r){if(r)return n.get(r)||[];const i=L(t,(e=>n.get(e)));return e.length?(i.unshift(...e),i):i}}}var _y=/\$\{/g;function uy(e){return e.replace(_y,"\\${")}function dy(e){return!!(2048&(e.templateFlags||0))}function py(e){return e&&!!(NN(e)?dy(e):dy(e.head)||$(e.templateSpans,(e=>dy(e.literal))))}var fy=/[\\"\u0000-\u001f\u2028\u2029\u0085]/g,my=/[\\'\u0000-\u001f\u2028\u2029\u0085]/g,gy=/\r\n|[\\`\u0000-\u0009\u000b-\u001f\u2028\u2029\u0085]/g,hy=new Map(Object.entries({"\t":"\\t","\v":"\\v","\f":"\\f","\b":"\\b","\r":"\\r","\n":"\\n","\\":"\\\\",'"':'\\"',"'":"\\'","`":"\\`","\u2028":"\\u2028","\u2029":"\\u2029","Â…":"\\u0085","\r\n":"\\r\\n"}));function yy(e){return"\\u"+("0000"+e.toString(16).toUpperCase()).slice(-4)}function vy(e,t,n){if(0===e.charCodeAt(0)){const r=n.charCodeAt(t+e.length);return r>=48&&r<=57?"\\x00":"\\0"}return hy.get(e)||yy(e.charCodeAt(0))}function by(e,t){const n=96===t?gy:39===t?my:fy;return e.replace(n,vy)}var xy=/[^\u0000-\u007F]/g;function ky(e,t){return e=by(e,t),xy.test(e)?e.replace(xy,(e=>yy(e.charCodeAt(0)))):e}var Sy=/["\u0000-\u001f\u2028\u2029\u0085]/g,Ty=/['\u0000-\u001f\u2028\u2029\u0085]/g,Cy=new Map(Object.entries({'"':""","'":"'"}));function wy(e){return 0===e.charCodeAt(0)?"�":Cy.get(e)||"&#x"+e.charCodeAt(0).toString(16).toUpperCase()+";"}function Ny(e,t){const n=39===t?Ty:Sy;return e.replace(n,wy)}function Dy(e){const t=e.length;return t>=2&&e.charCodeAt(0)===e.charCodeAt(t-1)&&(39===(n=e.charCodeAt(0))||34===n||96===n)?e.substring(1,t-1):e;var n}function Fy(e){const t=e.charCodeAt(0);return t>=97&&t<=122||e.includes("-")}var Ey=[""," "];function Py(e){const t=Ey[1];for(let n=Ey.length;n<=e;n++)Ey.push(Ey[n-1]+t);return Ey[e]}function Ay(){return Ey[1].length}function Iy(e){var t,n,r,i,o,a=!1;function s(e){const n=Ia(e);n.length>1?(i=i+n.length-1,o=t.length-e.length+ve(n),r=o-t.length==0):r=!1}function c(e){e&&e.length&&(r&&(e=Py(n)+e,r=!1),t+=e,s(e))}function l(e){e&&(a=!1),c(e)}function _(){t="",n=0,r=!0,i=0,o=0,a=!1}return _(),{write:l,rawWrite:function(e){void 0!==e&&(t+=e,s(e),a=!1)},writeLiteral:function(e){e&&e.length&&l(e)},writeLine:function(n){r&&!n||(i++,o=(t+=e).length,r=!0,a=!1)},increaseIndent:()=>{n++},decreaseIndent:()=>{n--},getIndent:()=>n,getTextPos:()=>t.length,getLine:()=>i,getColumn:()=>r?n*Ay():t.length-o,getText:()=>t,isAtStartOfLine:()=>r,hasTrailingComment:()=>a,hasTrailingWhitespace:()=>!!t.length&&za(t.charCodeAt(t.length-1)),clear:_,writeKeyword:l,writeOperator:l,writeParameter:l,writeProperty:l,writePunctuation:l,writeSpace:l,writeStringLiteral:l,writeSymbol:(e,t)=>l(e),writeTrailingSemicolon:l,writeComment:function(e){e&&(a=!0),c(e)}}}function Oy(e){let t=!1;function n(){t&&(e.writeTrailingSemicolon(";"),t=!1)}return{...e,writeTrailingSemicolon(){t=!0},writeLiteral(t){n(),e.writeLiteral(t)},writeStringLiteral(t){n(),e.writeStringLiteral(t)},writeSymbol(t,r){n(),e.writeSymbol(t,r)},writePunctuation(t){n(),e.writePunctuation(t)},writeKeyword(t){n(),e.writeKeyword(t)},writeOperator(t){n(),e.writeOperator(t)},writeParameter(t){n(),e.writeParameter(t)},writeSpace(t){n(),e.writeSpace(t)},writeProperty(t){n(),e.writeProperty(t)},writeComment(t){n(),e.writeComment(t)},writeLine(){n(),e.writeLine()},increaseIndent(){n(),e.increaseIndent()},decreaseIndent(){n(),e.decreaseIndent()}}}function Ly(e){return!!e.useCaseSensitiveFileNames&&e.useCaseSensitiveFileNames()}function jy(e){return Wt(Ly(e))}function Ry(e,t,n){return t.moduleName||Jy(e,t.fileName,n&&n.fileName)}function My(e,t){return e.getCanonicalFileName(Bo(t,e.getCurrentDirectory()))}function By(e,t,n){const r=t.getExternalModuleFileFromDeclaration(n);if(!r||r.isDeclarationFile)return;const i=xg(n);return!i||!Lu(i)||vo(i.text)||My(e,r.path).includes(My(e,Vo(e.getCommonSourceDirectory())))?Ry(e,r):void 0}function Jy(e,t,n){const r=t=>e.getCanonicalFileName(t),i=qo(n?Do(n):e.getCommonSourceDirectory(),e.getCurrentDirectory(),r),o=zS(oa(i,Bo(t,e.getCurrentDirectory()),i,r,!1));return n?Wo(o):o}function zy(e,t,n){const r=t.getCompilerOptions();let i;return i=r.outDir?zS(Xy(e,t,r.outDir)):zS(e),i+n}function qy(e,t){return Uy(e,t.getCompilerOptions(),t)}function Uy(e,t,n){const r=t.declarationDir||t.outDir,i=r?Qy(e,r,n.getCurrentDirectory(),n.getCommonSourceDirectory(),(e=>n.getCanonicalFileName(e))):e,o=Vy(i);return zS(i)+o}function Vy(e){return So(e,[".mjs",".mts"])?".d.mts":So(e,[".cjs",".cts"])?".d.cts":So(e,[".json"])?".d.json.ts":".d.ts"}function Wy(e){return So(e,[".d.mts",".mjs",".mts"])?[".mts",".mjs"]:So(e,[".d.cts",".cjs",".cts"])?[".cts",".cjs"]:So(e,[".d.json.ts"])?[".json"]:[".tsx",".ts",".jsx",".js"]}function $y(e,t,n,r){return n?Ro(r(),na(n,e,t)):e}function Hy(e,t){var n;if(e.paths)return e.baseUrl??un.checkDefined(e.pathsBasePath||(null==(n=t.getCurrentDirectory)?void 0:n.call(t)),"Encountered 'paths' without a 'baseUrl', config file, or host 'getCurrentDirectory'.")}function Ky(e,t,n){const r=e.getCompilerOptions();if(r.outFile){const t=yk(r),i=r.emitDeclarationOnly||2===t||4===t;return N(e.getSourceFiles(),(t=>(i||!MI(t))&&Gy(t,e,n)))}return N(void 0===t?e.getSourceFiles():[t],(t=>Gy(t,e,n)))}function Gy(e,t,n){const r=t.getCompilerOptions();if(r.noEmitForJsFiles&&Dm(e))return!1;if(e.isDeclarationFile)return!1;if(t.isSourceFileFromExternalLibrary(e))return!1;if(n)return!0;if(t.isSourceOfProjectReferenceRedirect(e.fileName))return!1;if(!Yp(e))return!0;if(t.getResolvedProjectReferenceToRedirect(e.fileName))return!1;if(r.outFile)return!0;if(!r.outDir)return!1;if(r.rootDir||r.composite&&r.configFilePath){const n=Bo(Uq(r,(()=>[]),t.getCurrentDirectory(),t.getCanonicalFileName),t.getCurrentDirectory()),i=Qy(e.fileName,r.outDir,t.getCurrentDirectory(),n,t.getCanonicalFileName);if(0===Yo(e.fileName,i,t.getCurrentDirectory(),!t.useCaseSensitiveFileNames()))return!1}return!0}function Xy(e,t,n){return Qy(e,n,t.getCurrentDirectory(),t.getCommonSourceDirectory(),(e=>t.getCanonicalFileName(e)))}function Qy(e,t,n,r,i){let o=Bo(e,n);return o=0===i(o).indexOf(i(r))?o.substring(r.length):o,jo(t,o)}function Yy(e,t,n,r,i,o,a){e.writeFile(n,r,i,(e=>{t.add(Xx(la.Could_not_write_file_0_Colon_1,n,e))}),o,a)}function Zy(e,t,n){e.length>No(e)&&!n(e)&&(Zy(Do(e),t,n),t(e))}function ev(e,t,n,r,i,o){try{r(e,t,n)}catch{Zy(Do(Jo(e)),i,o),r(e,t,n)}}function tv(e,t){return Ma(ja(e),t)}function nv(e,t){return Ma(e,t)}function rv(e){return b(e.members,(e=>dD(e)&&wd(e.body)))}function iv(e){if(e&&e.parameters.length>0){const t=2===e.parameters.length&&sv(e.parameters[0]);return e.parameters[t?1:0]}}function ov(e){const t=iv(e);return t&&t.type}function av(e){if(e.parameters.length&&!aP(e)){const t=e.parameters[0];if(sv(t))return t}}function sv(e){return cv(e.name)}function cv(e){return!!e&&80===e.kind&&uv(e)}function lv(e){return!!_c(e,(e=>186===e.kind||80!==e.kind&&166!==e.kind&&"quit"))}function _v(e){if(!cv(e))return!1;for(;nD(e.parent)&&e.parent.left===e;)e=e.parent;return 186===e.parent.kind}function uv(e){return"this"===e.escapedText}function dv(e,t){let n,r,i,o;return Rh(t)?(n=t,177===t.kind?i=t:178===t.kind?o=t:un.fail("Accessor has wrong kind")):d(e,(e=>{u_(e)&&Nv(e)===Nv(t)&&Bh(e.name)===Bh(t.name)&&(n?r||(r=e):n=e,177!==e.kind||i||(i=e),178!==e.kind||o||(o=e))})),{firstAccessor:n,secondAccessor:r,getAccessor:i,setAccessor:o}}function pv(e){if(!Fm(e)&&$F(e))return;if(GF(e))return;const t=e.type;return t||!Fm(e)?t:wl(e)?e.typeExpression&&e.typeExpression.type:tl(e)}function fv(e){return e.type}function mv(e){return aP(e)?e.type&&e.type.typeExpression&&e.type.typeExpression.type:e.type||(Fm(e)?nl(e):void 0)}function gv(e){return O(il(e),(e=>function(e){return TP(e)&&!(320===e.parent.kind&&(e.parent.tags.some(Ng)||e.parent.tags.some(gP)))}(e)?e.typeParameters:void 0))}function hv(e){const t=iv(e);return t&&pv(t)}function yv(e,t,n,r){n!==r&&nv(e,n)!==nv(e,r)&&t.writeLine()}function vv(e,t,n,r,i,o,a){let s,c;if(a?0===i.pos&&(s=N(ls(e,i.pos),(function(t){return Rd(e,t.pos)}))):s=ls(e,i.pos),s){const a=[];let l;for(const e of s){if(l){const n=nv(t,l.end);if(nv(t,e.pos)>=n+2)break}a.push(e),l=e}if(a.length){const l=nv(t,ve(a).end);nv(t,Xa(e,i.pos))>=l+2&&(function(e,t,n,r){!function(e,t,n,r){r&&r.length&&n!==r[0].pos&&nv(e,n)!==nv(e,r[0].pos)&&t.writeLine()}(e,t,n.pos,r)}(t,n,i,s),function(e,t,n,r,i,o,a,s){if(r&&r.length>0){let i=!1;for(const o of r)i&&(n.writeSpace(" "),i=!1),s(e,t,n,o.pos,o.end,a),o.hasTrailingNewLine?n.writeLine():i=!0;i&&n.writeSpace(" ")}}(e,t,n,a,0,0,o,r),c={nodePos:i.pos,detachedCommentEndPos:ve(a).end})}}return c}function bv(e,t,n,r,i,o){if(42===e.charCodeAt(r+1)){const a=Ra(t,r),s=t.length;let c;for(let l=r,_=a.line;l0){let e=i%Ay();const t=Py((i-e)/Ay());for(n.rawWrite(t);e;)n.rawWrite(" "),e--}else n.rawWrite("")}xv(e,i,n,o,l,u),l=u}}else n.writeComment(e.substring(r,i))}function xv(e,t,n,r,i,o){const a=Math.min(t,o-1),s=e.substring(i,a).trim();s?(n.writeComment(s),a!==t&&n.writeLine()):n.rawWrite(r)}function kv(e,t,n){let r=0;for(;t=0&&e.kind<=165?0:(536870912&e.modifierFlagsCache||(e.modifierFlagsCache=536870912|Vv(e)),n||t&&Fm(e)?(268435456&e.modifierFlagsCache||!e.parent||(e.modifierFlagsCache|=268435456|zv(e)),qv(e.modifierFlagsCache)):65535&e.modifierFlagsCache)}function Mv(e){return Rv(e,!0)}function Bv(e){return Rv(e,!0,!0)}function Jv(e){return Rv(e,!1)}function zv(e){let t=0;return e.parent&&!oD(e)&&(Fm(e)&&(Bc(e)&&(t|=8388608),zc(e)&&(t|=16777216),Uc(e)&&(t|=33554432),Wc(e)&&(t|=67108864),$c(e)&&(t|=134217728)),Kc(e)&&(t|=65536)),t}function qv(e){return 131071&e|(260046848&e)>>>23}function Uv(e){return Vv(e)|function(e){return qv(zv(e))}(e)}function Vv(e){let t=rI(e)?Wv(e.modifiers):0;return(8&e.flags||80===e.kind&&4096&e.flags)&&(t|=32),t}function Wv(e){let t=0;if(e)for(const n of e)t|=$v(n.kind);return t}function $v(e){switch(e){case 126:return 256;case 125:return 1;case 124:return 4;case 123:return 2;case 128:return 64;case 129:return 512;case 95:return 32;case 138:return 128;case 87:return 4096;case 90:return 2048;case 134:return 1024;case 148:return 8;case 164:return 16;case 103:return 8192;case 147:return 16384;case 170:return 32768}return 0}function Hv(e){return 57===e||56===e}function Kv(e){return Hv(e)||54===e}function Gv(e){return 76===e||77===e||78===e}function Xv(e){return cF(e)&&Gv(e.operatorToken.kind)}function Qv(e){return Hv(e)||61===e}function Yv(e){return cF(e)&&Qv(e.operatorToken.kind)}function Zv(e){return e>=64&&e<=79}function eb(e){const t=tb(e);return t&&!t.isImplements?t.class:void 0}function tb(e){if(mF(e)){if(jE(e.parent)&&__(e.parent.parent))return{class:e.parent.parent,isImplements:119===e.parent.token};if(sP(e.parent)){const t=qg(e.parent);if(t&&__(t))return{class:t,isImplements:!1}}}}function nb(e,t){return cF(e)&&(t?64===e.operatorToken.kind:Zv(e.operatorToken.kind))&&R_(e.left)}function rb(e){if(nb(e,!0)){const t=e.left.kind;return 210===t||209===t}return!1}function ib(e){return void 0!==eb(e)}function ob(e){return 80===e.kind||cb(e)}function ab(e){switch(e.kind){case 80:return e;case 166:do{e=e.left}while(80!==e.kind);return e;case 211:do{e=e.expression}while(80!==e.kind);return e}}function sb(e){return 80===e.kind||110===e.kind||108===e.kind||236===e.kind||211===e.kind&&sb(e.expression)||217===e.kind&&sb(e.expression)}function cb(e){return HD(e)&&zN(e.name)&&ob(e.expression)}function lb(e){if(HD(e)){const t=lb(e.expression);if(void 0!==t)return t+"."+Lp(e.name)}else if(KD(e)){const t=lb(e.expression);if(void 0!==t&&e_(e.argumentExpression))return t+"."+Bh(e.argumentExpression)}else{if(zN(e))return fc(e.escapedText);if(IE(e))return rC(e)}}function _b(e){return ig(e)&&"prototype"===lg(e)}function ub(e){return 166===e.parent.kind&&e.parent.right===e||211===e.parent.kind&&e.parent.name===e||236===e.parent.kind&&e.parent.name===e}function db(e){return!!e.parent&&(HD(e.parent)&&e.parent.name===e||KD(e.parent)&&e.parent.argumentExpression===e)}function pb(e){return nD(e.parent)&&e.parent.right===e||HD(e.parent)&&e.parent.name===e||$E(e.parent)&&e.parent.right===e}function fb(e){return cF(e)&&104===e.operatorToken.kind}function mb(e){return fb(e.parent)&&e===e.parent.right}function gb(e){return 210===e.kind&&0===e.properties.length}function hb(e){return 209===e.kind&&0===e.elements.length}function yb(e){if(function(e){return e&&u(e.declarations)>0&&wv(e.declarations[0],2048)}(e)&&e.declarations)for(const t of e.declarations)if(t.localSymbol)return t.localSymbol}function vb(e){return b(SS,(t=>ko(e,t)))}var bb="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";function xb(e){let t="";const n=function(e){const t=[],n=e.length;for(let r=0;r>6|192),t.push(63&n|128)):n<65536?(t.push(n>>12|224),t.push(n>>6&63|128),t.push(63&n|128)):n<131072?(t.push(n>>18|240),t.push(n>>12&63|128),t.push(n>>6&63|128),t.push(63&n|128)):un.assert(!1,"Unexpected code point")}return t}(e);let r=0;const i=n.length;let o,a,s,c;for(;r>2,a=(3&n[r])<<4|n[r+1]>>4,s=(15&n[r+1])<<2|n[r+2]>>6,c=63&n[r+2],r+1>=i?s=c=64:r+2>=i&&(c=64),t+=bb.charAt(o)+bb.charAt(a)+bb.charAt(s)+bb.charAt(c),r+=3;return t}function kb(e,t){return e&&e.base64encode?e.base64encode(t):xb(t)}function Sb(e,t){if(e&&e.base64decode)return e.base64decode(t);const n=t.length,r=[];let i=0;for(;i>4&3,c=(15&n)<<4|o>>2&15,l=(3&o)<<6|63&a;0===c&&0!==o?r.push(s):0===l&&0!==a?r.push(s,c):r.push(s,c,l),i+=4}return function(e){let t="",n=0;const r=e.length;for(;n=e||-1===t),{pos:e,end:t}}function Ab(e,t){return Pb(e.pos,t)}function Ib(e,t){return Pb(t,e.end)}function Ob(e){const t=rI(e)?x(e.modifiers,aD):void 0;return t&&!KS(t.end)?Ib(e,t.end):e}function Lb(e){if(cD(e)||_D(e))return Ib(e,e.name.pos);const t=rI(e)?ye(e.modifiers):void 0;return t&&!KS(t.end)?Ib(e,t.end):Ob(e)}function jb(e,t){return Pb(e,e+Da(t).length)}function Rb(e,t){return Jb(e,e,t)}function Mb(e,t,n){return Wb($b(e,n,!1),$b(t,n,!1),n)}function Bb(e,t,n){return Wb(e.end,t.end,n)}function Jb(e,t,n){return Wb($b(e,n,!1),t.end,n)}function zb(e,t,n){return Wb(e.end,$b(t,n,!1),n)}function qb(e,t,n,r){const i=$b(t,n,r);return Ba(n,e.end,i)}function Ub(e,t,n){return Ba(n,e.end,t.end)}function Vb(e,t){return!Wb(e.pos,e.end,t)}function Wb(e,t,n){return 0===Ba(n,e,t)}function $b(e,t,n){return KS(e.pos)?-1:Xa(t.text,e.pos,!1,n)}function Hb(e,t,n,r){const i=Xa(n.text,e,!1,r),o=function(e,t=0,n){for(;e-- >t;)if(!za(n.text.charCodeAt(e)))return e}(i,t,n);return Ba(n,o??t,i)}function Kb(e,t,n,r){const i=Xa(n.text,e,!1,r);return Ba(n,e,Math.min(t,i))}function Gb(e,t){return Xb(e.pos,e.end,t)}function Xb(e,t,n){return e<=n.pos&&t>=n.end}function Qb(e){const t=dc(e);if(t)switch(t.parent.kind){case 266:case 267:return t===t.parent.name}return!1}function Yb(e){return N(e.declarations,Zb)}function Zb(e){return VF(e)&&void 0!==e.initializer}function ex(e){return e.watch&&De(e,"watch")}function tx(e){e.close()}function nx(e){return 33554432&e.flags?e.links.checkFlags:0}function rx(e,t=!1){if(e.valueDeclaration){const n=rc(t&&e.declarations&&b(e.declarations,fD)||32768&e.flags&&b(e.declarations,pD)||e.valueDeclaration);return e.parent&&32&e.parent.flags?n:-8&n}if(6&nx(e)){const t=e.links.checkFlags;return(1024&t?2:256&t?1:4)|(2048&t?256:0)}return 4194304&e.flags?257:0}function ix(e,t){return 2097152&e.flags?t.getAliasedSymbol(e):e}function ox(e){return e.exportSymbol?e.exportSymbol.flags|e.flags:e.flags}function ax(e){return 1===cx(e)}function sx(e){return 0!==cx(e)}function cx(e){const{parent:t}=e;switch(null==t?void 0:t.kind){case 217:case 209:return cx(t);case 225:case 224:const{operator:n}=t;return 46===n||47===n?2:0;case 226:const{left:r,operatorToken:i}=t;return r===e&&Zv(i.kind)?64===i.kind?1:2:0;case 211:return t.name!==e?0:cx(t);case 303:{const n=cx(t.parent);return e===t.name?function(e){switch(e){case 0:return 1;case 1:return 0;case 2:return 2;default:return un.assertNever(e)}}(n):n}case 304:return e===t.objectAssignmentInitializer?0:cx(t.parent);case 249:case 250:return e===t.initializer?1:0;default:return 0}}function lx(e,t){if(!e||!t||Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if("object"==typeof e[n]){if(!lx(e[n],t[n]))return!1}else if("function"!=typeof e[n]&&e[n]!==t[n])return!1;return!0}function _x(e,t){e.forEach(t),e.clear()}function ux(e,t,n){const{onDeleteValue:r,onExistingValue:i}=n;e.forEach(((n,o)=>{var a;(null==t?void 0:t.has(o))?i&&i(n,null==(a=t.get)?void 0:a.call(t,o),o):(e.delete(o),r(n,o))}))}function dx(e,t,n){ux(e,t,n);const{createNewValue:r}=n;null==t||t.forEach(((t,n)=>{e.has(n)||e.set(n,r(n,t))}))}function px(e){if(32&e.flags){const t=fx(e);return!!t&&wv(t,64)}return!1}function fx(e){var t;return null==(t=e.declarations)?void 0:t.find(__)}function mx(e){return 3899393&e.flags?e.objectFlags:0}function gx(e){return!!e&&!!e.declarations&&!!e.declarations[0]&&eE(e.declarations[0])}function hx({moduleSpecifier:e}){return TN(e)?e.text:Kd(e)}function yx(e){let t;return PI(e,(e=>{wd(e)&&(t=e)}),(e=>{for(let n=e.length-1;n>=0;n--)if(wd(e[n])){t=e[n];break}})),t}function vx(e,t){return!e.has(t)&&(e.add(t),!0)}function bx(e){return __(e)||KF(e)||SD(e)}function xx(e){return e>=182&&e<=205||133===e||159===e||150===e||163===e||151===e||136===e||154===e||155===e||116===e||157===e||146===e||141===e||233===e||312===e||313===e||314===e||315===e||316===e||317===e||318===e}function kx(e){return 211===e.kind||212===e.kind}function Sx(e){return 211===e.kind?e.name:(un.assert(212===e.kind),e.argumentExpression)}function Tx(e){return 275===e.kind||279===e.kind}function Cx(e){for(;kx(e);)e=e.expression;return e}function wx(e,t){if(kx(e.parent)&&db(e))return function e(n){if(211===n.kind){const e=t(n.name);if(void 0!==e)return e}else if(212===n.kind){if(!zN(n.argumentExpression)&&!Lu(n.argumentExpression))return;{const e=t(n.argumentExpression);if(void 0!==e)return e}}return kx(n.expression)?e(n.expression):zN(n.expression)?t(n.expression):void 0}(e.parent)}function Nx(e,t){for(;;){switch(e.kind){case 225:e=e.operand;continue;case 226:e=e.left;continue;case 227:e=e.condition;continue;case 215:e=e.tag;continue;case 213:if(t)return e;case 234:case 212:case 211:case 235:case 355:case 238:e=e.expression;continue}return e}}function Dx(e,t){this.flags=e,this.escapedName=t,this.declarations=void 0,this.valueDeclaration=void 0,this.id=0,this.mergeId=0,this.parent=void 0,this.members=void 0,this.exports=void 0,this.exportSymbol=void 0,this.constEnumOnlyModule=void 0,this.isReferenced=void 0,this.lastAssignmentPos=void 0,this.links=void 0}function Fx(e,t){this.flags=t,(un.isDebugging||Hn)&&(this.checker=e)}function Ex(e,t){this.flags=t,un.isDebugging&&(this.checker=e)}function Px(e,t,n){this.pos=t,this.end=n,this.kind=e,this.id=0,this.flags=0,this.modifierFlagsCache=0,this.transformFlags=0,this.parent=void 0,this.original=void 0,this.emitNode=void 0}function Ax(e,t,n){this.pos=t,this.end=n,this.kind=e,this.id=0,this.flags=0,this.transformFlags=0,this.parent=void 0,this.emitNode=void 0}function Ix(e,t,n){this.pos=t,this.end=n,this.kind=e,this.id=0,this.flags=0,this.transformFlags=0,this.parent=void 0,this.original=void 0,this.emitNode=void 0}function Ox(e,t,n){this.fileName=e,this.text=t,this.skipTrivia=n||(e=>e)}var Lx,jx={getNodeConstructor:()=>Px,getTokenConstructor:()=>Ax,getIdentifierConstructor:()=>Ix,getPrivateIdentifierConstructor:()=>Px,getSourceFileConstructor:()=>Px,getSymbolConstructor:()=>Dx,getTypeConstructor:()=>Fx,getSignatureConstructor:()=>Ex,getSourceMapSourceConstructor:()=>Ox},Rx=[];function Mx(e){Rx.push(e),e(jx)}function Bx(e){Object.assign(jx,e),d(Rx,(e=>e(jx)))}function Jx(e,t){return e.replace(/\{(\d+)\}/g,((e,n)=>""+un.checkDefined(t[+n])))}function zx(e){Lx=e}function qx(e){!Lx&&e&&(Lx=e())}function Ux(e){return Lx&&Lx[e.key]||e.message}function Vx(e,t,n,r,i,...o){n+r>t.length&&(r=t.length-n),zp(t,n,r);let a=Ux(i);return $(o)&&(a=Jx(a,o)),{file:void 0,start:n,length:r,messageText:a,category:i.category,code:i.code,reportsUnnecessary:i.reportsUnnecessary,fileName:e}}function Wx(e){return void 0===e.file&&void 0!==e.start&&void 0!==e.length&&"string"==typeof e.fileName}function $x(e,t){const n=t.fileName||"",r=t.text.length;un.assertEqual(e.fileName,n),un.assertLessThanOrEqual(e.start,r),un.assertLessThanOrEqual(e.start+e.length,r);const i={file:t,start:e.start,length:e.length,messageText:e.messageText,category:e.category,code:e.code,reportsUnnecessary:e.reportsUnnecessary};if(e.relatedInformation){i.relatedInformation=[];for(const o of e.relatedInformation)Wx(o)&&o.fileName===n?(un.assertLessThanOrEqual(o.start,r),un.assertLessThanOrEqual(o.start+o.length,r),i.relatedInformation.push($x(o,t))):i.relatedInformation.push(o)}return i}function Hx(e,t){const n=[];for(const r of e)n.push($x(r,t));return n}function Kx(e,t,n,r,...i){zp(e.text,t,n);let o=Ux(r);return $(i)&&(o=Jx(o,i)),{file:e,start:t,length:n,messageText:o,category:r.category,code:r.code,reportsUnnecessary:r.reportsUnnecessary,reportsDeprecated:r.reportsDeprecated}}function Gx(e,...t){let n=Ux(e);return $(t)&&(n=Jx(n,t)),n}function Xx(e,...t){let n=Ux(e);return $(t)&&(n=Jx(n,t)),{file:void 0,start:void 0,length:void 0,messageText:n,category:e.category,code:e.code,reportsUnnecessary:e.reportsUnnecessary,reportsDeprecated:e.reportsDeprecated}}function Qx(e,t){return{file:void 0,start:void 0,length:void 0,code:e.code,category:e.category,messageText:e.next?e:e.messageText,relatedInformation:t}}function Yx(e,t,...n){let r=Ux(t);return $(n)&&(r=Jx(r,n)),{messageText:r,category:t.category,code:t.code,next:void 0===e||Array.isArray(e)?e:[e]}}function Zx(e,t){let n=e;for(;n.next;)n=n.next[0];n.next=[t]}function ek(e){return e.file?e.file.path:void 0}function tk(e,t){return nk(e,t)||function(e,t){return e.relatedInformation||t.relatedInformation?e.relatedInformation&&t.relatedInformation?vt(t.relatedInformation.length,e.relatedInformation.length)||d(e.relatedInformation,((e,n)=>tk(e,t.relatedInformation[n])))||0:e.relatedInformation?-1:1:0}(e,t)||0}function nk(e,t){const n=ak(e),r=ak(t);return Ct(ek(e),ek(t))||vt(e.start,t.start)||vt(e.length,t.length)||vt(n,r)||function(e,t){let n=sk(e),r=sk(t);"string"!=typeof n&&(n=n.messageText),"string"!=typeof r&&(r=r.messageText);const i="string"!=typeof e.messageText?e.messageText.next:void 0,o="string"!=typeof t.messageText?t.messageText.next:void 0;let a=Ct(n,r);return a||(c=o,a=void 0===(s=i)&&void 0===c?0:void 0===s?1:void 0===c?-1:rk(s,c)||ik(s,c),a||(e.canonicalHead&&!t.canonicalHead?-1:t.canonicalHead&&!e.canonicalHead?1:0));var s,c}(e,t)||0}function rk(e,t){if(void 0===e&&void 0===t)return 0;if(void 0===e)return 1;if(void 0===t)return-1;let n=vt(t.length,e.length);if(n)return n;for(let r=0;r{e.externalModuleIndicator=_I(e)||!e.isDeclarationFile||void 0};case 1:return e=>{e.externalModuleIndicator=_I(e)};case 2:const t=[_I];4!==e.jsx&&5!==e.jsx||t.push(_k),t.push(uk);const n=en(...t);return t=>{t.externalModuleIndicator=n(t,e)}}}function pk(e){const t=vk(e);return 3<=t&&t<=99||Tk(e)||Ck(e)}var fk={allowImportingTsExtensions:{dependencies:["rewriteRelativeImportExtensions"],computeValue:e=>!(!e.allowImportingTsExtensions&&!e.rewriteRelativeImportExtensions)},target:{dependencies:["module"],computeValue:e=>(0===e.target?void 0:e.target)??((100===e.module?9:199===e.module&&99)||1)},module:{dependencies:["target"],computeValue:e=>"number"==typeof e.module?e.module:fk.target.computeValue(e)>=2?5:1},moduleResolution:{dependencies:["module","target"],computeValue:e=>{let t=e.moduleResolution;if(void 0===t)switch(fk.module.computeValue(e)){case 1:t=2;break;case 100:t=3;break;case 199:t=99;break;case 200:t=100;break;default:t=1}return t}},moduleDetection:{dependencies:["module","target"],computeValue:e=>e.moduleDetection||(100===fk.module.computeValue(e)||199===fk.module.computeValue(e)?3:2)},isolatedModules:{dependencies:["verbatimModuleSyntax"],computeValue:e=>!(!e.isolatedModules&&!e.verbatimModuleSyntax)},esModuleInterop:{dependencies:["module","target"],computeValue:e=>{if(void 0!==e.esModuleInterop)return e.esModuleInterop;switch(fk.module.computeValue(e)){case 100:case 199:case 200:return!0}return!1}},allowSyntheticDefaultImports:{dependencies:["module","target","moduleResolution"],computeValue:e=>void 0!==e.allowSyntheticDefaultImports?e.allowSyntheticDefaultImports:fk.esModuleInterop.computeValue(e)||4===fk.module.computeValue(e)||100===fk.moduleResolution.computeValue(e)},resolvePackageJsonExports:{dependencies:["moduleResolution"],computeValue:e=>{const t=fk.moduleResolution.computeValue(e);if(!Rk(t))return!1;if(void 0!==e.resolvePackageJsonExports)return e.resolvePackageJsonExports;switch(t){case 3:case 99:case 100:return!0}return!1}},resolvePackageJsonImports:{dependencies:["moduleResolution","resolvePackageJsonExports"],computeValue:e=>{const t=fk.moduleResolution.computeValue(e);if(!Rk(t))return!1;if(void 0!==e.resolvePackageJsonExports)return e.resolvePackageJsonExports;switch(t){case 3:case 99:case 100:return!0}return!1}},resolveJsonModule:{dependencies:["moduleResolution","module","target"],computeValue:e=>void 0!==e.resolveJsonModule?e.resolveJsonModule:100===fk.moduleResolution.computeValue(e)},declaration:{dependencies:["composite"],computeValue:e=>!(!e.declaration&&!e.composite)},preserveConstEnums:{dependencies:["isolatedModules","verbatimModuleSyntax"],computeValue:e=>!(!e.preserveConstEnums&&!fk.isolatedModules.computeValue(e))},incremental:{dependencies:["composite"],computeValue:e=>!(!e.incremental&&!e.composite)},declarationMap:{dependencies:["declaration","composite"],computeValue:e=>!(!e.declarationMap||!fk.declaration.computeValue(e))},allowJs:{dependencies:["checkJs"],computeValue:e=>void 0===e.allowJs?!!e.checkJs:e.allowJs},useDefineForClassFields:{dependencies:["target","module"],computeValue:e=>void 0===e.useDefineForClassFields?fk.target.computeValue(e)>=9:e.useDefineForClassFields},noImplicitAny:{dependencies:["strict"],computeValue:e=>Mk(e,"noImplicitAny")},noImplicitThis:{dependencies:["strict"],computeValue:e=>Mk(e,"noImplicitThis")},strictNullChecks:{dependencies:["strict"],computeValue:e=>Mk(e,"strictNullChecks")},strictFunctionTypes:{dependencies:["strict"],computeValue:e=>Mk(e,"strictFunctionTypes")},strictBindCallApply:{dependencies:["strict"],computeValue:e=>Mk(e,"strictBindCallApply")},strictPropertyInitialization:{dependencies:["strict"],computeValue:e=>Mk(e,"strictPropertyInitialization")},strictBuiltinIteratorReturn:{dependencies:["strict"],computeValue:e=>Mk(e,"strictBuiltinIteratorReturn")},alwaysStrict:{dependencies:["strict"],computeValue:e=>Mk(e,"alwaysStrict")},useUnknownInCatchVariables:{dependencies:["strict"],computeValue:e=>Mk(e,"useUnknownInCatchVariables")}},mk=fk,gk=fk.allowImportingTsExtensions.computeValue,hk=fk.target.computeValue,yk=fk.module.computeValue,vk=fk.moduleResolution.computeValue,bk=fk.moduleDetection.computeValue,xk=fk.isolatedModules.computeValue,kk=fk.esModuleInterop.computeValue,Sk=fk.allowSyntheticDefaultImports.computeValue,Tk=fk.resolvePackageJsonExports.computeValue,Ck=fk.resolvePackageJsonImports.computeValue,wk=fk.resolveJsonModule.computeValue,Nk=fk.declaration.computeValue,Dk=fk.preserveConstEnums.computeValue,Fk=fk.incremental.computeValue,Ek=fk.declarationMap.computeValue,Pk=fk.allowJs.computeValue,Ak=fk.useDefineForClassFields.computeValue;function Ik(e){return e>=5&&e<=99}function Ok(e){switch(yk(e)){case 0:case 4:case 3:return!1}return!0}function Lk(e){return!1===e.allowUnreachableCode}function jk(e){return!1===e.allowUnusedLabels}function Rk(e){return e>=3&&e<=99||100===e}function Mk(e,t){return void 0===e[t]?!!e.strict:!!e[t]}function Bk(e){return td(dO.type,((t,n)=>t===e?n:void 0))}function Jk(e){return!1!==e.useDefineForClassFields&&hk(e)>=9}function zk(e,t){return Zu(t,e,gO)}function qk(e,t){return Zu(t,e,hO)}function Uk(e,t){return Zu(t,e,yO)}function Vk(e,t){return t.strictFlag?Mk(e,t.name):t.allowJsFlag?Pk(e):e[t.name]}function Wk(e){const t=e.jsx;return 2===t||4===t||5===t}function $k(e,t){const n=null==t?void 0:t.pragmas.get("jsximportsource"),r=Qe(n)?n[n.length-1]:n,i=null==t?void 0:t.pragmas.get("jsxruntime"),o=Qe(i)?i[i.length-1]:i;if("classic"!==(null==o?void 0:o.arguments.factory))return 4===e.jsx||5===e.jsx||e.jsxImportSource||r||"automatic"===(null==o?void 0:o.arguments.factory)?(null==r?void 0:r.arguments.factory)||e.jsxImportSource||"react":void 0}function Hk(e,t){return e?`${e}/${5===t.jsx?"jsx-dev-runtime":"jsx-runtime"}`:void 0}function Kk(e){let t=!1;for(let n=0;ni,getSymlinkedDirectories:()=>n,getSymlinkedDirectoriesByRealpath:()=>r,setSymlinkedFile:(e,t)=>(i||(i=new Map)).set(e,t),setSymlinkedDirectory:(i,o)=>{let a=qo(i,e,t);PT(a)||(a=Vo(a),!1===o||(null==n?void 0:n.has(a))||(r||(r=$e())).add(o.realPath,i),(n||(n=new Map)).set(a,o))},setSymlinksFromResolutions(e,t,n){un.assert(!o),o=!0,e((e=>a(this,e.resolvedModule))),t((e=>a(this,e.resolvedTypeReferenceDirective))),n.forEach((e=>a(this,e.resolvedTypeReferenceDirective)))},hasProcessedResolutions:()=>o,setSymlinksFromResolution(e){a(this,e)},hasAnySymlinks:function(){return!!(null==i?void 0:i.size)||!!n&&!!td(n,(e=>!!e))}};function a(n,r){if(!r||!r.originalPath||!r.resolvedFileName)return;const{resolvedFileName:i,originalPath:o}=r;n.setSymlinkedFile(qo(o,e,t),i);const[a,s]=function(e,t,n,r){const i=Ao(Bo(e,n)),o=Ao(Bo(t,n));let a=!1;for(;i.length>=2&&o.length>=2&&!Xk(i[i.length-2],r)&&!Xk(o[o.length-2],r)&&r(i[i.length-1])===r(o[o.length-1]);)i.pop(),o.pop(),a=!0;return a?[Io(i),Io(o)]:void 0}(i,o,e,t)||l;a&&s&&n.setSymlinkedDirectory(s,{real:Vo(a),realPath:Vo(qo(a,e,t))})}}function Xk(e,t){return void 0!==e&&("node_modules"===t(e)||Gt(e,"@"))}function Qk(e,t,n){const r=Qt(e,t,n);return void 0===r?void 0:fo((i=r).charCodeAt(0))?i.slice(1):void 0;var i}var Yk=/[^\w\s/]/g;function Zk(e){return e.replace(Yk,eS)}function eS(e){return"\\"+e}var tS=[42,63],nS=`(?!(${["node_modules","bower_components","jspm_packages"].join("|")})(/|$))`,rS={singleAsteriskRegexFragment:"([^./]|(\\.(?!min\\.js$))?)*",doubleAsteriskRegexFragment:`(/${nS}[^/.][^/]*)*?`,replaceWildcardCharacter:e=>dS(e,rS.singleAsteriskRegexFragment)},iS={singleAsteriskRegexFragment:"[^/]*",doubleAsteriskRegexFragment:`(/${nS}[^/.][^/]*)*?`,replaceWildcardCharacter:e=>dS(e,iS.singleAsteriskRegexFragment)},oS={singleAsteriskRegexFragment:"[^/]*",doubleAsteriskRegexFragment:"(/.+?)?",replaceWildcardCharacter:e=>dS(e,oS.singleAsteriskRegexFragment)},aS={files:rS,directories:iS,exclude:oS};function sS(e,t,n){const r=cS(e,t,n);if(r&&r.length)return`^(${r.map((e=>`(${e})`)).join("|")})${"exclude"===n?"($|/)":"$"}`}function cS(e,t,n){if(void 0!==e&&0!==e.length)return O(e,(e=>e&&uS(e,t,n,aS[n])))}function lS(e){return!/[.*?]/.test(e)}function _S(e,t,n){const r=e&&uS(e,t,n,aS[n]);return r&&`^(${r})${"exclude"===n?"($|/)":"$"}`}function uS(e,t,n,{singleAsteriskRegexFragment:r,doubleAsteriskRegexFragment:i,replaceWildcardCharacter:o}=aS[n]){let a="",s=!1;const c=Mo(e,t),l=ve(c);if("exclude"!==n&&"**"===l)return;c[0]=Uo(c[0]),lS(l)&&c.push("**","*");let _=0;for(let e of c){if("**"===e)a+=i;else if("directories"===n&&(a+="(",_++),s&&(a+=lo),"exclude"!==n){let t="";42===e.charCodeAt(0)?(t+="([^./]"+r+")?",e=e.substr(1)):63===e.charCodeAt(0)&&(t+="[^./]",e=e.substr(1)),t+=e.replace(Yk,o),t!==e&&(a+=nS),a+=t}else a+=e.replace(Yk,o);s=!0}for(;_>0;)a+=")?",_--;return a}function dS(e,t){return"*"===e?t:"?"===e?"[^/]":"\\"+e}function pS(e,t,n,r,i){e=Jo(e);const o=jo(i=Jo(i),e);return{includeFilePatterns:E(cS(n,o,"files"),(e=>`^${e}$`)),includeFilePattern:sS(n,o,"files"),includeDirectoryPattern:sS(n,o,"directories"),excludePattern:sS(t,o,"exclude"),basePaths:gS(e,n,r)}}function fS(e,t){return new RegExp(e,t?"":"i")}function mS(e,t,n,r,i,o,a,s,c){e=Jo(e),o=Jo(o);const l=pS(e,n,r,i,o),_=l.includeFilePatterns&&l.includeFilePatterns.map((e=>fS(e,i))),u=l.includeDirectoryPattern&&fS(l.includeDirectoryPattern,i),d=l.excludePattern&&fS(l.excludePattern,i),p=_?_.map((()=>[])):[[]],f=new Map,m=Wt(i);for(const e of l.basePaths)g(e,jo(o,e),a);return I(p);function g(e,n,r){const i=m(c(n));if(f.has(i))return;f.set(i,!0);const{files:o,directories:a}=s(e);for(const r of _e(o,Ct)){const i=jo(e,r),o=jo(n,r);if((!t||So(i,t))&&(!d||!d.test(o)))if(_){const e=k(_,(e=>e.test(o)));-1!==e&&p[e].push(i)}else p[0].push(i)}if(void 0===r||0!=--r)for(const t of _e(a,Ct)){const i=jo(e,t),o=jo(n,t);u&&!u.test(o)||d&&d.test(o)||g(i,o,r)}}}function gS(e,t,n){const r=[e];if(t){const i=[];for(const n of t){const t=go(n)?n:Jo(jo(e,n));i.push(hS(t))}i.sort(wt(!n));for(const t of i)v(r,(r=>!Zo(r,t,e,!n)))&&r.push(t)}return r}function hS(e){const t=C(e,tS);return t<0?xo(e)?Uo(Do(e)):e:e.substring(0,e.lastIndexOf(lo,t))}function yS(e,t){return t||vS(e)||3}function vS(e){switch(e.substr(e.lastIndexOf(".")).toLowerCase()){case".js":case".cjs":case".mjs":return 1;case".jsx":return 2;case".ts":case".cts":case".mts":return 3;case".tsx":return 4;case".json":return 6;default:return 0}}var bS=[[".ts",".tsx",".d.ts"],[".cts",".d.cts"],[".mts",".d.mts"]],xS=I(bS),kS=[...bS,[".json"]],SS=[".d.ts",".d.cts",".d.mts",".cts",".mts",".ts",".tsx"],TS=I([[".js",".jsx"],[".mjs"],[".cjs"]]),CS=[[".ts",".tsx",".d.ts",".js",".jsx"],[".cts",".d.cts",".cjs"],[".mts",".d.mts",".mjs"]],wS=[...CS,[".json"]],NS=[".d.ts",".d.cts",".d.mts"],DS=[".ts",".cts",".mts",".tsx"],FS=[".mts",".d.mts",".mjs",".cts",".d.cts",".cjs"];function ES(e,t){const n=e&&Pk(e);if(!t||0===t.length)return n?CS:bS;const r=n?CS:bS,i=I(r);return[...r,...B(t,(e=>{return 7===e.scriptKind||n&&(1===(t=e.scriptKind)||2===t)&&!i.includes(e.extension)?[e.extension]:void 0;var t}))]}function PS(e,t){return e&&wk(e)?t===CS?wS:t===bS?kS:[...t,[".json"]]:t}function AS(e){return $(TS,(t=>ko(e,t)))}function IS(e){return $(xS,(t=>ko(e,t)))}function OS(e){return $(DS,(t=>ko(e,t)))&&!$I(e)}var LS=(e=>(e[e.Minimal=0]="Minimal",e[e.Index=1]="Index",e[e.JsExtension=2]="JsExtension",e[e.TsExtension=3]="TsExtension",e))(LS||{});function jS(e,t,n,r){const i=vk(n),o=3<=i&&i<=99;return"js"===e||99===t&&o?bM(n)&&2!==a()?3:2:"minimal"===e?0:"index"===e?1:bM(n)?a():r&&function({imports:e},t=en(AS,IS)){return f(e,(({text:e})=>vo(e)&&!So(e,FS)?t(e):void 0))||!1}(r)?2:0;function a(){let e=!1;const i=(null==r?void 0:r.imports.length)?r.imports:r&&Dm(r)?function(e){let t,n=0;for(const r of e.statements){if(n>3)break;Bm(r)?t=K(t,r.declarationList.declarations.map((e=>e.initializer))):DF(r)&&Om(r.expression,!0)?t=ie(t,r.expression):n++}return t||l}(r).map((e=>e.arguments[0])):l;for(const a of i)if(vo(a.text)){if(o&&1===t&&99===HU(r,a,n))continue;if(So(a.text,FS))continue;if(IS(a.text))return 3;AS(a.text)&&(e=!0)}return e?2:0}}function RS(e,t,n){if(!e)return!1;const r=ES(t,n);for(const n of I(PS(t,r)))if(ko(e,n))return!0;return!1}function MS(e){const t=e.match(/\//g);return t?t.length:0}function BS(e,t){return vt(MS(e),MS(t))}var JS=[".d.ts",".d.mts",".d.cts",".mjs",".mts",".cjs",".cts",".ts",".js",".tsx",".jsx",".json"];function zS(e){for(const t of JS){const n=qS(e,t);if(void 0!==n)return n}return e}function qS(e,t){return ko(e,t)?US(e,t):void 0}function US(e,t){return e.substring(0,e.length-t.length)}function VS(e,t){return $o(e,t,JS,!1)}function WS(e){const t=e.indexOf("*");return-1===t?e:-1!==e.indexOf("*",t+1)?void 0:{prefix:e.substr(0,t),suffix:e.substr(t+1)}}var $S=new WeakMap;function HS(e){let t,n,r=$S.get(e);if(void 0!==r)return r;const i=Ee(e);for(const e of i){const r=WS(e);void 0!==r&&("string"==typeof r?(t??(t=new Set)).add(r):(n??(n=[])).push(r))}return $S.set(e,r={matchableStringSet:t,patterns:n}),r}function KS(e){return!(e>=0)}function GS(e){return".ts"===e||".tsx"===e||".d.ts"===e||".cts"===e||".mts"===e||".d.mts"===e||".d.cts"===e||Gt(e,".d.")&&Rt(e,".ts")}function XS(e){return GS(e)||".json"===e}function QS(e){const t=ZS(e);return void 0!==t?t:un.fail(`File ${e} has unknown extension.`)}function YS(e){return void 0!==ZS(e)}function ZS(e){return b(JS,(t=>ko(e,t)))}function eT(e,t){return e.checkJsDirective?e.checkJsDirective.enabled:t.checkJs}var tT={files:l,directories:l};function nT(e,t){const{matchableStringSet:n,patterns:r}=e;return(null==n?void 0:n.has(t))?t:void 0!==r&&0!==r.length?Kt(r,(e=>e),t):void 0}function rT(e,t){const n=e.indexOf(t);return un.assert(-1!==n),e.slice(n)}function iT(e,...t){return t.length?(e.relatedInformation||(e.relatedInformation=[]),un.assert(e.relatedInformation!==l,"Diagnostic had empty array singleton for related info, but is still being constructed!"),e.relatedInformation.push(...t),e):e}function oT(e,t){un.assert(0!==e.length);let n=t(e[0]),r=n;for(let i=1;ir&&(r=o)}return{min:n,max:r}}function aT(e){return{pos:Bd(e),end:e.end}}function sT(e,t){return{pos:t.pos-1,end:Math.min(e.text.length,Xa(e.text,t.end)+1)}}function cT(e,t,n){return _T(e,t,n,!1)}function lT(e,t,n){return _T(e,t,n,!0)}function _T(e,t,n,r){return t.skipLibCheck&&e.isDeclarationFile||t.skipDefaultLibCheck&&e.hasNoDefaultLib||!r&&t.noCheck||n.isSourceOfProjectReferenceRedirect(e.fileName)||!uT(e,t)}function uT(e,t){if(e.checkJsDirective&&!1===e.checkJsDirective.enabled)return!1;if(3===e.scriptKind||4===e.scriptKind||5===e.scriptKind)return!0;const n=(1===e.scriptKind||2===e.scriptKind)&&eT(e,t);return vd(e,t.checkJs)||n||7===e.scriptKind}function dT(e,t){return e===t||"object"==typeof e&&null!==e&&"object"==typeof t&&null!==t&&je(e,t,dT)}function pT(e){let t;switch(e.charCodeAt(1)){case 98:case 66:t=1;break;case 111:case 79:t=3;break;case 120:case 88:t=4;break;default:const n=e.length-1;let r=0;for(;48===e.charCodeAt(r);)r++;return e.slice(r,n)||"0"}const n=e.length-1,r=(n-2)*t,i=new Uint16Array((r>>>4)+(15&r?1:0));for(let r=n-1,o=0;r>=2;r--,o+=t){const t=o>>>4,n=e.charCodeAt(r),a=(n<=57?n-48:10+n-(n<=70?65:97))<<(15&o);i[t]|=a;const s=a>>>16;s&&(i[t+1]|=s)}let o="",a=i.length-1,s=!0;for(;s;){let e=0;s=!1;for(let t=a;t>=0;t--){const n=e<<16|i[t],r=n/10|0;i[t]=r,e=n-10*r,r&&!s&&(a=t,s=!0)}o=e+o}return o}function fT({negative:e,base10Value:t}){return(e&&"0"!==t?"-":"")+t}function mT(e){if(hT(e,!1))return gT(e)}function gT(e){const t=e.startsWith("-");return{negative:t,base10Value:pT(`${t?e.slice(1):e}n`)}}function hT(e,t){if(""===e)return!1;const n=ms(99,!1);let r=!0;n.setOnError((()=>r=!1)),n.setText(e+"n");let i=n.scan();const o=41===i;o&&(i=n.scan());const a=n.getTokenFlags();return r&&10===i&&n.getTokenEnd()===e.length+1&&!(512&a)&&(!t||e===fT({negative:o,base10Value:pT(n.getTokenValue())}))}function yT(e){return!!(33554432&e.flags)||xm(e)||function(e){if(80!==e.kind)return!1;const t=_c(e.parent,(e=>{switch(e.kind){case 298:return!0;case 211:case 233:return!1;default:return"quit"}}));return 119===(null==t?void 0:t.token)||264===(null==t?void 0:t.parent.kind)}(e)||function(e){for(;80===e.kind||211===e.kind;)e=e.parent;if(167!==e.kind)return!1;if(wv(e.parent,64))return!0;const t=e.parent.parent.kind;return 264===t||187===t}(e)||!(vm(e)||function(e){return zN(e)&&BE(e.parent)&&e.parent.name===e}(e))}function vT(e){return vD(e)&&zN(e.typeName)}function bT(e,t=mt){if(e.length<2)return!0;const n=e[0];for(let r=1,i=e.length;re.includes(t)))}function AT(e){if(!e.parent)return;switch(e.kind){case 168:const{parent:t}=e;return 195===t.kind?void 0:t.typeParameters;case 169:return e.parent.parameters;case 204:case 239:return e.parent.templateSpans;case 170:{const{parent:t}=e;return iI(t)?t.modifiers:void 0}case 298:return e.parent.heritageClauses}const{parent:t}=e;if(Tu(e))return oP(e.parent)?void 0:e.parent.tags;switch(t.kind){case 187:case 264:return g_(e)?t.members:void 0;case 192:case 193:return t.types;case 189:case 209:case 356:case 275:case 279:return t.elements;case 210:case 292:return t.properties;case 213:case 214:return v_(e)?t.typeArguments:t.expression===e?void 0:t.arguments;case 284:case 288:return gu(e)?t.children:void 0;case 286:case 285:return v_(e)?t.typeArguments:void 0;case 241:case 296:case 297:case 268:case 307:return t.statements;case 269:return t.clauses;case 263:case 231:return l_(e)?t.members:void 0;case 266:return zE(e)?t.members:void 0}}function IT(e){if(!e.typeParameters){if($(e.parameters,(e=>!pv(e))))return!0;if(219!==e.kind){const t=fe(e.parameters);if(!t||!sv(t))return!0}}return!1}function OT(e){return"Infinity"===e||"-Infinity"===e||"NaN"===e}function LT(e){return 260===e.kind&&299===e.parent.kind}function jT(e){return 218===e.kind||219===e.kind}function RT(e){return e.replace(/\$/g,(()=>"\\$"))}function MT(e){return(+e).toString()===e}function BT(e,t,n,r,i){const o=i&&"new"===e;return!o&&fs(e,t)?XC.createIdentifier(e):!r&&!o&&MT(e)&&+e>=0?XC.createNumericLiteral(+e):XC.createStringLiteral(e,!!n)}function JT(e){return!!(262144&e.flags&&e.isThisType)}function zT(e){let t,n=0,r=0,i=0,o=0;var a;(a=t||(t={}))[a.BeforeNodeModules=0]="BeforeNodeModules",a[a.NodeModules=1]="NodeModules",a[a.Scope=2]="Scope",a[a.PackageContent=3]="PackageContent";let s=0,c=0,l=0;for(;c>=0;)switch(s=c,c=e.indexOf("/",s+1),l){case 0:e.indexOf(PR,s)===s&&(n=s,r=c,l=1);break;case 1:case 2:1===l&&"@"===e.charAt(s+1)?l=2:(i=c,l=3);break;case 3:l=e.indexOf(PR,s)===s?1:3}return o=s,l>1?{topLevelNodeModulesIndex:n,topLevelPackageNameIndex:r,packageRootIndex:i,fileNameIndex:o}:void 0}function qT(e){switch(e.kind){case 168:case 263:case 264:case 265:case 266:case 346:case 338:case 340:return!0;case 273:return e.isTypeOnly;case 276:case 281:return e.parent.parent.isTypeOnly;default:return!1}}function UT(e){return XF(e)||wF(e)||$F(e)||HF(e)||KF(e)||qT(e)||QF(e)&&!dp(e)&&!up(e)}function VT(e){if(!wl(e))return!1;const{isBracketed:t,typeExpression:n}=e;return t||!!n&&316===n.type.kind}function WT(e,t){if(0===e.length)return!1;const n=e.charCodeAt(0);return 35===n?e.length>1&&ds(e.charCodeAt(1),t):ds(n,t)}function $T(e){var t;return 0===(null==(t=Dw(e))?void 0:t.kind)}function HT(e){return Fm(e)&&(e.type&&316===e.type.kind||Fc(e).some(VT))}function KT(e){switch(e.kind){case 172:case 171:return!!e.questionToken;case 169:return!!e.questionToken||HT(e);case 348:case 341:return VT(e);default:return!1}}function GT(e){const t=e.kind;return(211===t||212===t)&&yF(e.expression)}function XT(e){return Fm(e)&&ZD(e)&&Nu(e)&&!!Zc(e)}function QT(e){return un.checkDefined(YT(e))}function YT(e){const t=Zc(e);return t&&t.typeExpression&&t.typeExpression.type}function ZT(e){return zN(e)?e.escapedText:nC(e)}function eC(e){return zN(e)?mc(e):rC(e)}function tC(e){const t=e.kind;return 80===t||295===t}function nC(e){return`${e.namespace.escapedText}:${mc(e.name)}`}function rC(e){return`${mc(e.namespace)}:${mc(e.name)}`}function iC(e){return zN(e)?mc(e):rC(e)}function oC(e){return!!(8576&e.flags)}function aC(e){return 8192&e.flags?e.escapedName:384&e.flags?pc(""+e.value):un.fail()}function sC(e){return!!e&&(HD(e)||KD(e)||cF(e))}function cC(e){return void 0!==e&&!!XU(e.attributes)}var lC=String.prototype.replace;function _C(e,t){return lC.call(e,"*",t)}function uC(e){return zN(e.name)?e.name.escapedText:pc(e.name.text)}function dC(e){switch(e.kind){case 168:case 169:case 172:case 171:case 185:case 184:case 179:case 180:case 181:case 174:case 173:case 175:case 176:case 177:case 178:case 183:case 182:case 186:case 187:case 188:case 189:case 192:case 193:case 196:case 190:case 191:case 197:case 198:case 194:case 195:case 203:case 205:case 202:case 328:case 329:case 346:case 338:case 340:case 345:case 344:case 324:case 325:case 326:case 341:case 348:case 317:case 315:case 314:case 312:case 313:case 322:case 318:case 309:case 333:case 335:case 334:case 350:case 343:case 199:case 200:case 262:case 241:case 268:case 243:case 244:case 245:case 246:case 247:case 248:case 249:case 250:case 251:case 252:case 253:case 254:case 255:case 256:case 257:case 258:case 260:case 208:case 263:case 264:case 265:case 266:case 267:case 272:case 271:case 278:case 277:case 242:case 259:case 282:return!0}return!1}function pC(e,t=!1,n=!1,r=!1){return{value:e,isSyntacticallyString:t,resolvedOtherFiles:n,hasExternalReferences:r}}function fC({evaluateElementAccessExpression:e,evaluateEntityNameExpression:t}){return function n(r,i){let o=!1,a=!1,s=!1;switch((r=oh(r)).kind){case 224:const c=n(r.operand,i);if(a=c.resolvedOtherFiles,s=c.hasExternalReferences,"number"==typeof c.value)switch(r.operator){case 40:return pC(c.value,o,a,s);case 41:return pC(-c.value,o,a,s);case 55:return pC(~c.value,o,a,s)}break;case 226:{const e=n(r.left,i),t=n(r.right,i);if(o=(e.isSyntacticallyString||t.isSyntacticallyString)&&40===r.operatorToken.kind,a=e.resolvedOtherFiles||t.resolvedOtherFiles,s=e.hasExternalReferences||t.hasExternalReferences,"number"==typeof e.value&&"number"==typeof t.value)switch(r.operatorToken.kind){case 52:return pC(e.value|t.value,o,a,s);case 51:return pC(e.value&t.value,o,a,s);case 49:return pC(e.value>>t.value,o,a,s);case 50:return pC(e.value>>>t.value,o,a,s);case 48:return pC(e.value<=2)break;case 174:case 176:case 177:case 178:case 262:if(3&d&&"arguments"===I){w=n;break e}break;case 218:if(3&d&&"arguments"===I){w=n;break e}if(16&d){const e=s.name;if(e&&I===e.escapedText){w=s.symbol;break e}}break;case 170:s.parent&&169===s.parent.kind&&(s=s.parent),s.parent&&(l_(s.parent)||263===s.parent.kind)&&(s=s.parent);break;case 346:case 338:case 340:case 351:const o=Vg(s);o&&(s=o.parent);break;case 169:N&&(N===s.initializer||N===s.name&&x_(N))&&(E||(E=s));break;case 208:N&&(N===s.initializer||N===s.name&&x_(N))&&Xh(s)&&!E&&(E=s);break;case 195:if(262144&d){const e=s.typeParameter.name;if(e&&I===e.escapedText){w=s.typeParameter.symbol;break e}}break;case 281:N&&N===s.propertyName&&s.parent.parent.moduleSpecifier&&(s=s.parent.parent.parent)}y(s,N)&&(D=s),N=s,s=TP(s)?Bg(s)||s.parent:(bP(s)||xP(s))&&zg(s)||s.parent}if(!b||!w||D&&w===D.symbol||(w.isReferenced|=d),!w){if(N&&(un.assertNode(N,qE),N.commonJsModuleIndicator&&"exports"===I&&d&N.symbol.flags))return N.symbol;x||(w=a(o,I,d))}if(!w&&C&&Fm(C)&&C.parent&&Om(C.parent,!1))return t;if(f){if(F&&l(C,I,F,w))return;w?u(C,w,d,N,E,A):_(C,c,d,f)}return w};function g(t,n,r){const i=hk(e),o=n;if(oD(r)&&o.body&&t.valueDeclaration&&t.valueDeclaration.pos>=o.body.pos&&t.valueDeclaration.end<=o.body.end&&i>=2){let e=c(o);return void 0===e&&(e=d(o.parameters,(function(e){return a(e.name)||!!e.initializer&&a(e.initializer)}))||!1,s(o,e)),!e}return!1;function a(e){switch(e.kind){case 219:case 218:case 262:case 176:return!1;case 174:case 177:case 178:case 303:return a(e.name);case 172:return Dv(e)?!f:a(e.name);default:return bl(e)||gl(e)?i<7:VD(e)&&e.dotDotDotToken&&qD(e.parent)?i<4:!v_(e)&&(PI(e,a)||!1)}}}function h(e,t){return 219!==e.kind&&218!==e.kind?kD(e)||(i_(e)||172===e.kind&&!Nv(e))&&(!t||t!==e.name):!(t&&t===e.name||!e.asteriskToken&&!wv(e,1024)&&im(e))}function y(e,t){switch(e.kind){case 169:return!!t&&t===e.name;case 262:case 263:case 264:case 266:case 265:case 267:return!0;default:return!1}}function v(e,t){if(e.declarations)for(const n of e.declarations)if(168===n.kind&&(TP(n.parent)?Ug(n.parent):n.parent)===t)return!(TP(n.parent)&&b(n.parent.parent.tags,Ng));return!1}}function yC(e,t=!0){switch(un.type(e),e.kind){case 112:case 97:case 9:case 11:case 15:return!0;case 10:return t;case 224:return 41===e.operator?kN(e.operand)||t&&SN(e.operand):40===e.operator&&kN(e.operand);default:return!1}}function vC(e){for(;217===e.kind;)e=e.expression;return e}function bC(e){switch(un.type(e),e.kind){case 169:case 171:case 172:case 208:case 211:case 212:case 226:case 260:case 277:case 303:case 304:case 341:case 348:return!0;default:return!1}}function xC(e){const t=_c(e,nE);return!!t&&!t.importClause}var kC=["assert","assert/strict","async_hooks","buffer","child_process","cluster","console","constants","crypto","dgram","diagnostics_channel","dns","dns/promises","domain","events","fs","fs/promises","http","http2","https","inspector","inspector/promises","module","net","os","path","path/posix","path/win32","perf_hooks","process","punycode","querystring","readline","readline/promises","repl","stream","stream/consumers","stream/promises","stream/web","string_decoder","sys","test/mock_loader","timers","timers/promises","tls","trace_events","tty","url","util","util/types","v8","vm","wasi","worker_threads","zlib"],SC=new Set(kC),TC=new Set(["node:sea","node:sqlite","node:test","node:test/reporters"]),CC=new Set([...kC,...kC.map((e=>`node:${e}`)),...TC]);function wC(e,t,n,r){const i=Fm(e),o=/import|require/g;for(;null!==o.exec(e.text);){const a=NC(e,o.lastIndex,t);if(i&&Om(a,n))r(a,a.arguments[0]);else if(cf(a)&&a.arguments.length>=1&&(!n||Lu(a.arguments[0])))r(a,a.arguments[0]);else if(t&&_f(a))r(a,a.argument.literal);else if(t&&PP(a)){const e=xg(a);e&&TN(e)&&e.text&&r(a,e)}}}function NC(e,t,n){const r=Fm(e);let i=e;const o=e=>{if(e.pos<=t&&(to(e,t),t.set(e,n)),n},getParenthesizeRightSideOfBinaryForOperator:function(e){n||(n=new Map);let t=n.get(e);return t||(t=t=>a(e,void 0,t),n.set(e,t)),t},parenthesizeLeftSideOfBinary:o,parenthesizeRightSideOfBinary:a,parenthesizeExpressionOfComputedPropertyName:function(t){return iA(t)?e.createParenthesizedExpression(t):t},parenthesizeConditionOfConditionalExpression:function(t){const n=ay(227,58);return 1!==vt(ry(kl(t)),n)?e.createParenthesizedExpression(t):t},parenthesizeBranchOfConditionalExpression:function(t){return iA(kl(t))?e.createParenthesizedExpression(t):t},parenthesizeExpressionOfExportDefault:function(t){const n=kl(t);let r=iA(n);if(!r)switch(Nx(n,!1).kind){case 231:case 218:r=!0}return r?e.createParenthesizedExpression(t):t},parenthesizeExpressionOfNew:function(t){const n=Nx(t,!0);switch(n.kind){case 213:return e.createParenthesizedExpression(t);case 214:return n.arguments?t:e.createParenthesizedExpression(t)}return s(t)},parenthesizeLeftSideOfAccess:s,parenthesizeOperandOfPostfixUnary:function(t){return R_(t)?t:nI(e.createParenthesizedExpression(t),t)},parenthesizeOperandOfPrefixUnary:function(t){return B_(t)?t:nI(e.createParenthesizedExpression(t),t)},parenthesizeExpressionsOfCommaDelimitedList:function(t){const n=A(t,c);return nI(e.createNodeArray(n,t.hasTrailingComma),t)},parenthesizeExpressionForDisallowedComma:c,parenthesizeExpressionOfExpressionStatement:function(t){const n=kl(t);if(GD(n)){const r=n.expression,i=kl(r).kind;if(218===i||219===i){const i=e.updateCallExpression(n,nI(e.createParenthesizedExpression(r),r),n.typeArguments,n.arguments);return e.restoreOuterExpressions(t,i,8)}}const r=Nx(n,!1).kind;return 210===r||218===r?nI(e.createParenthesizedExpression(t),t):t},parenthesizeConciseBodyOfArrowFunction:function(t){return CF(t)||!iA(t)&&210!==Nx(t,!1).kind?t:nI(e.createParenthesizedExpression(t),t)},parenthesizeCheckTypeOfConditionalType:l,parenthesizeExtendsTypeOfConditionalType:function(t){return 194===t.kind?e.createParenthesizedType(t):t},parenthesizeConstituentTypesOfUnionType:function(t){return e.createNodeArray(A(t,_))},parenthesizeConstituentTypeOfUnionType:_,parenthesizeConstituentTypesOfIntersectionType:function(t){return e.createNodeArray(A(t,u))},parenthesizeConstituentTypeOfIntersectionType:u,parenthesizeOperandOfTypeOperator:d,parenthesizeOperandOfReadonlyTypeOperator:function(t){return 198===t.kind?e.createParenthesizedType(t):d(t)},parenthesizeNonArrayTypeOfPostfixType:p,parenthesizeElementTypesOfTupleType:function(t){return e.createNodeArray(A(t,f))},parenthesizeElementTypeOfTupleType:f,parenthesizeTypeOfOptionalType:function(t){return m(t)?e.createParenthesizedType(t):p(t)},parenthesizeTypeArguments:function(t){if($(t))return e.createNodeArray(A(t,h))},parenthesizeLeadingTypeArgument:g};function r(e){if(Pl((e=kl(e)).kind))return e.kind;if(226===e.kind&&40===e.operatorToken.kind){if(void 0!==e.cachedLiteralKind)return e.cachedLiteralKind;const t=r(e.left),n=Pl(t)&&t===r(e.right)?t:0;return e.cachedLiteralKind=n,n}return 0}function i(t,n,i,o){return 217===kl(n).kind?n:function(e,t,n,i){const o=ay(226,e),a=ny(226,e),s=kl(t);if(!n&&219===t.kind&&o>3)return!0;switch(vt(ry(s),o)){case-1:return!(!n&&1===a&&229===t.kind);case 1:return!1;case 0:if(n)return 1===a;if(cF(s)&&s.operatorToken.kind===e){if(function(e){return 42===e||52===e||51===e||53===e||28===e}(e))return!1;if(40===e){const e=i?r(i):0;if(Pl(e)&&e===r(s))return!1}}return 0===ty(s)}}(t,n,i,o)?e.createParenthesizedExpression(n):n}function o(e,t){return i(e,t,!0)}function a(e,t,n){return i(e,n,!1,t)}function s(t,n){const r=kl(t);return!R_(r)||214===r.kind&&!r.arguments||!n&&gl(r)?nI(e.createParenthesizedExpression(t),t):t}function c(t){return ry(kl(t))>ay(226,28)?t:nI(e.createParenthesizedExpression(t),t)}function l(t){switch(t.kind){case 184:case 185:case 194:return e.createParenthesizedType(t)}return t}function _(t){switch(t.kind){case 192:case 193:return e.createParenthesizedType(t)}return l(t)}function u(t){switch(t.kind){case 192:case 193:return e.createParenthesizedType(t)}return _(t)}function d(t){return 193===t.kind?e.createParenthesizedType(t):u(t)}function p(t){switch(t.kind){case 195:case 198:case 186:return e.createParenthesizedType(t)}return d(t)}function f(t){return m(t)?e.createParenthesizedType(t):t}function m(e){return YE(e)?e.postfix:wD(e)||bD(e)||xD(e)||LD(e)?m(e.type):PD(e)?m(e.falseType):FD(e)||ED(e)?m(ve(e.types)):!!AD(e)&&!!e.typeParameter.constraint&&m(e.typeParameter.constraint)}function g(t){return b_(t)&&t.typeParameters?e.createParenthesizedType(t):t}function h(e,t){return 0===t?g(e):e}}var PC={getParenthesizeLeftSideOfBinaryForOperator:e=>st,getParenthesizeRightSideOfBinaryForOperator:e=>st,parenthesizeLeftSideOfBinary:(e,t)=>t,parenthesizeRightSideOfBinary:(e,t,n)=>n,parenthesizeExpressionOfComputedPropertyName:st,parenthesizeConditionOfConditionalExpression:st,parenthesizeBranchOfConditionalExpression:st,parenthesizeExpressionOfExportDefault:st,parenthesizeExpressionOfNew:e=>nt(e,R_),parenthesizeLeftSideOfAccess:e=>nt(e,R_),parenthesizeOperandOfPostfixUnary:e=>nt(e,R_),parenthesizeOperandOfPrefixUnary:e=>nt(e,B_),parenthesizeExpressionsOfCommaDelimitedList:e=>nt(e,El),parenthesizeExpressionForDisallowedComma:st,parenthesizeExpressionOfExpressionStatement:st,parenthesizeConciseBodyOfArrowFunction:st,parenthesizeCheckTypeOfConditionalType:st,parenthesizeExtendsTypeOfConditionalType:st,parenthesizeConstituentTypesOfUnionType:e=>nt(e,El),parenthesizeConstituentTypeOfUnionType:st,parenthesizeConstituentTypesOfIntersectionType:e=>nt(e,El),parenthesizeConstituentTypeOfIntersectionType:st,parenthesizeOperandOfTypeOperator:st,parenthesizeOperandOfReadonlyTypeOperator:st,parenthesizeNonArrayTypeOfPostfixType:st,parenthesizeElementTypesOfTupleType:e=>nt(e,El),parenthesizeElementTypeOfTupleType:st,parenthesizeTypeOfOptionalType:st,parenthesizeTypeArguments:e=>e&&nt(e,El),parenthesizeLeadingTypeArgument:st};function AC(e){return{convertToFunctionBlock:function(t,n){if(CF(t))return t;const r=e.createReturnStatement(t);nI(r,t);const i=e.createBlock([r],n);return nI(i,t),i},convertToFunctionExpression:function(t){var n;if(!t.body)return un.fail("Cannot convert a FunctionDeclaration without a body");const r=e.createFunctionExpression(null==(n=Nc(t))?void 0:n.filter((e=>!UN(e)&&!VN(e))),t.asteriskToken,t.name,t.typeParameters,t.parameters,t.type,t.body);return YC(r,t),nI(r,t),_w(t)&&uw(r,!0),r},convertToClassExpression:function(t){var n;const r=e.createClassExpression(null==(n=t.modifiers)?void 0:n.filter((e=>!UN(e)&&!VN(e))),t.name,t.typeParameters,t.heritageClauses,t.members);return YC(r,t),nI(r,t),_w(t)&&uw(r,!0),r},convertToArrayAssignmentElement:t,convertToObjectAssignmentElement:n,convertToAssignmentPattern:r,convertToObjectAssignmentPattern:i,convertToArrayAssignmentPattern:o,convertToAssignmentElementTarget:a};function t(t){if(VD(t)){if(t.dotDotDotToken)return un.assertNode(t.name,zN),YC(nI(e.createSpreadElement(t.name),t),t);const n=a(t.name);return t.initializer?YC(nI(e.createAssignment(n,t.initializer),t),t):n}return nt(t,U_)}function n(t){if(VD(t)){if(t.dotDotDotToken)return un.assertNode(t.name,zN),YC(nI(e.createSpreadAssignment(t.name),t),t);if(t.propertyName){const n=a(t.name);return YC(nI(e.createPropertyAssignment(t.propertyName,t.initializer?e.createAssignment(n,t.initializer):n),t),t)}return un.assertNode(t.name,zN),YC(nI(e.createShorthandPropertyAssignment(t.name,t.initializer),t),t)}return nt(t,y_)}function r(e){switch(e.kind){case 207:case 209:return o(e);case 206:case 210:return i(e)}}function i(t){return qD(t)?YC(nI(e.createObjectLiteralExpression(E(t.elements,n)),t),t):nt(t,$D)}function o(n){return UD(n)?YC(nI(e.createArrayLiteralExpression(E(n.elements,t)),n),n):nt(n,WD)}function a(e){return x_(e)?r(e):nt(e,U_)}}var IC,OC={convertToFunctionBlock:ut,convertToFunctionExpression:ut,convertToClassExpression:ut,convertToArrayAssignmentElement:ut,convertToObjectAssignmentElement:ut,convertToAssignmentPattern:ut,convertToObjectAssignmentPattern:ut,convertToArrayAssignmentPattern:ut,convertToAssignmentElementTarget:ut},LC=0,jC=(e=>(e[e.None=0]="None",e[e.NoParenthesizerRules=1]="NoParenthesizerRules",e[e.NoNodeConverters=2]="NoNodeConverters",e[e.NoIndentationOnFreshPropertyAccess=4]="NoIndentationOnFreshPropertyAccess",e[e.NoOriginalNode=8]="NoOriginalNode",e))(jC||{}),RC=[];function MC(e){RC.push(e)}function BC(e,t){const n=8&e?st:YC,r=dt((()=>1&e?PC:EC(b))),i=dt((()=>2&e?OC:AC(b))),o=pt((e=>(t,n)=>Ot(t,e,n))),a=pt((e=>t=>At(e,t))),s=pt((e=>t=>It(t,e))),c=pt((e=>()=>function(e){return k(e)}(e))),_=pt((e=>t=>dr(e,t))),u=pt((e=>(t,n)=>function(e,t,n){return t.type!==n?Ii(dr(e,n),t):t}(e,t,n))),p=pt((e=>(t,n)=>ur(e,t,n))),f=pt((e=>(t,n)=>function(e,t,n){return t.type!==n?Ii(ur(e,n,t.postfix),t):t}(e,t,n))),m=pt((e=>(t,n)=>Or(e,t,n))),g=pt((e=>(t,n,r)=>function(e,t,n=hr(t),r){return t.tagName!==n||t.comment!==r?Ii(Or(e,n,r),t):t}(e,t,n,r))),h=pt((e=>(t,n,r)=>Lr(e,t,n,r))),y=pt((e=>(t,n,r,i)=>function(e,t,n=hr(t),r,i){return t.tagName!==n||t.typeExpression!==r||t.comment!==i?Ii(Lr(e,n,r,i),t):t}(e,t,n,r,i))),b={get parenthesizer(){return r()},get converters(){return i()},baseFactory:t,flags:e,createNodeArray:x,createNumericLiteral:C,createBigIntLiteral:w,createStringLiteral:D,createStringLiteralFromNode:function(e){const t=N(zh(e),void 0);return t.textSourceNode=e,t},createRegularExpressionLiteral:F,createLiteralLikeNode:function(e,t){switch(e){case 9:return C(t,0);case 10:return w(t);case 11:return D(t,void 0);case 12:return $r(t,!1);case 13:return $r(t,!0);case 14:return F(t);case 15:return zt(e,t,void 0,0)}},createIdentifier:A,createTempVariable:I,createLoopVariable:function(e){let t=2;return e&&(t|=8),P("",t,void 0,void 0)},createUniqueName:function(e,t=0,n,r){return un.assert(!(7&t),"Argument out of range: flags"),un.assert(32!=(48&t),"GeneratedIdentifierFlags.FileLevel cannot be set without also setting GeneratedIdentifierFlags.Optimistic"),P(e,3|t,n,r)},getGeneratedNameForNode:O,createPrivateIdentifier:function(e){return Gt(e,"#")||un.fail("First character of private identifier must be #: "+e),L(pc(e))},createUniquePrivateName:function(e,t,n){return e&&!Gt(e,"#")&&un.fail("First character of private identifier must be #: "+e),j(e??"",8|(e?3:1),t,n)},getGeneratedPrivateNameForNode:function(e,t,n){const r=j(ul(e)?KA(!0,t,e,n,mc):`#generated@${jB(e)}`,4|(t||n?16:0),t,n);return r.original=e,r},createToken:B,createSuper:function(){return B(108)},createThis:J,createNull:z,createTrue:q,createFalse:U,createModifier:V,createModifiersFromModifierFlags:W,createQualifiedName:H,updateQualifiedName:function(e,t,n){return e.left!==t||e.right!==n?Ii(H(t,n),e):e},createComputedPropertyName:K,updateComputedPropertyName:function(e,t){return e.expression!==t?Ii(K(t),e):e},createTypeParameterDeclaration:G,updateTypeParameterDeclaration:X,createParameterDeclaration:Q,updateParameterDeclaration:Y,createDecorator:Z,updateDecorator:function(e,t){return e.expression!==t?Ii(Z(t),e):e},createPropertySignature:ee,updatePropertySignature:te,createPropertyDeclaration:ne,updatePropertyDeclaration:re,createMethodSignature:oe,updateMethodSignature:ae,createMethodDeclaration:se,updateMethodDeclaration:ce,createConstructorDeclaration:_e,updateConstructorDeclaration:ue,createGetAccessorDeclaration:de,updateGetAccessorDeclaration:pe,createSetAccessorDeclaration:fe,updateSetAccessorDeclaration:me,createCallSignature:ge,updateCallSignature:function(e,t,n,r){return e.typeParameters!==t||e.parameters!==n||e.type!==r?T(ge(t,n,r),e):e},createConstructSignature:he,updateConstructSignature:function(e,t,n,r){return e.typeParameters!==t||e.parameters!==n||e.type!==r?T(he(t,n,r),e):e},createIndexSignature:ve,updateIndexSignature:xe,createClassStaticBlockDeclaration:le,updateClassStaticBlockDeclaration:function(e,t){return e.body!==t?((n=le(t))!==(r=e)&&(n.modifiers=r.modifiers),Ii(n,r)):e;var n,r},createTemplateLiteralTypeSpan:ke,updateTemplateLiteralTypeSpan:function(e,t,n){return e.type!==t||e.literal!==n?Ii(ke(t,n),e):e},createKeywordTypeNode:function(e){return B(e)},createTypePredicateNode:Se,updateTypePredicateNode:function(e,t,n,r){return e.assertsModifier!==t||e.parameterName!==n||e.type!==r?Ii(Se(t,n,r),e):e},createTypeReferenceNode:Te,updateTypeReferenceNode:function(e,t,n){return e.typeName!==t||e.typeArguments!==n?Ii(Te(t,n),e):e},createFunctionTypeNode:Ce,updateFunctionTypeNode:function(e,t,n,r){return e.typeParameters!==t||e.parameters!==n||e.type!==r?((i=Ce(t,n,r))!==(o=e)&&(i.modifiers=o.modifiers),T(i,o)):e;var i,o},createConstructorTypeNode:Ne,updateConstructorTypeNode:function(...e){return 5===e.length?Ee(...e):4===e.length?function(e,t,n,r){return Ee(e,e.modifiers,t,n,r)}(...e):un.fail("Incorrect number of arguments specified.")},createTypeQueryNode:Pe,updateTypeQueryNode:function(e,t,n){return e.exprName!==t||e.typeArguments!==n?Ii(Pe(t,n),e):e},createTypeLiteralNode:Ae,updateTypeLiteralNode:function(e,t){return e.members!==t?Ii(Ae(t),e):e},createArrayTypeNode:Ie,updateArrayTypeNode:function(e,t){return e.elementType!==t?Ii(Ie(t),e):e},createTupleTypeNode:Oe,updateTupleTypeNode:function(e,t){return e.elements!==t?Ii(Oe(t),e):e},createNamedTupleMember:Le,updateNamedTupleMember:function(e,t,n,r,i){return e.dotDotDotToken!==t||e.name!==n||e.questionToken!==r||e.type!==i?Ii(Le(t,n,r,i),e):e},createOptionalTypeNode:je,updateOptionalTypeNode:function(e,t){return e.type!==t?Ii(je(t),e):e},createRestTypeNode:Re,updateRestTypeNode:function(e,t){return e.type!==t?Ii(Re(t),e):e},createUnionTypeNode:function(e){return Me(192,e,r().parenthesizeConstituentTypesOfUnionType)},updateUnionTypeNode:function(e,t){return Be(e,t,r().parenthesizeConstituentTypesOfUnionType)},createIntersectionTypeNode:function(e){return Me(193,e,r().parenthesizeConstituentTypesOfIntersectionType)},updateIntersectionTypeNode:function(e,t){return Be(e,t,r().parenthesizeConstituentTypesOfIntersectionType)},createConditionalTypeNode:Je,updateConditionalTypeNode:function(e,t,n,r,i){return e.checkType!==t||e.extendsType!==n||e.trueType!==r||e.falseType!==i?Ii(Je(t,n,r,i),e):e},createInferTypeNode:ze,updateInferTypeNode:function(e,t){return e.typeParameter!==t?Ii(ze(t),e):e},createImportTypeNode:Ue,updateImportTypeNode:function(e,t,n,r,i,o=e.isTypeOf){return e.argument!==t||e.attributes!==n||e.qualifier!==r||e.typeArguments!==i||e.isTypeOf!==o?Ii(Ue(t,n,r,i,o),e):e},createParenthesizedType:Ve,updateParenthesizedType:function(e,t){return e.type!==t?Ii(Ve(t),e):e},createThisTypeNode:function(){const e=k(197);return e.transformFlags=1,e},createTypeOperatorNode:We,updateTypeOperatorNode:function(e,t){return e.type!==t?Ii(We(e.operator,t),e):e},createIndexedAccessTypeNode:$e,updateIndexedAccessTypeNode:function(e,t,n){return e.objectType!==t||e.indexType!==n?Ii($e(t,n),e):e},createMappedTypeNode:He,updateMappedTypeNode:function(e,t,n,r,i,o,a){return e.readonlyToken!==t||e.typeParameter!==n||e.nameType!==r||e.questionToken!==i||e.type!==o||e.members!==a?Ii(He(t,n,r,i,o,a),e):e},createLiteralTypeNode:Ke,updateLiteralTypeNode:function(e,t){return e.literal!==t?Ii(Ke(t),e):e},createTemplateLiteralType:qe,updateTemplateLiteralType:function(e,t,n){return e.head!==t||e.templateSpans!==n?Ii(qe(t,n),e):e},createObjectBindingPattern:Ge,updateObjectBindingPattern:function(e,t){return e.elements!==t?Ii(Ge(t),e):e},createArrayBindingPattern:Xe,updateArrayBindingPattern:function(e,t){return e.elements!==t?Ii(Xe(t),e):e},createBindingElement:Ye,updateBindingElement:function(e,t,n,r,i){return e.propertyName!==n||e.dotDotDotToken!==t||e.name!==r||e.initializer!==i?Ii(Ye(t,n,r,i),e):e},createArrayLiteralExpression:Ze,updateArrayLiteralExpression:function(e,t){return e.elements!==t?Ii(Ze(t,e.multiLine),e):e},createObjectLiteralExpression:et,updateObjectLiteralExpression:function(e,t){return e.properties!==t?Ii(et(t,e.multiLine),e):e},createPropertyAccessExpression:4&e?(e,t)=>nw(rt(e,t),262144):rt,updatePropertyAccessExpression:function(e,t,n){return pl(e)?at(e,t,e.questionDotToken,nt(n,zN)):e.expression!==t||e.name!==n?Ii(rt(t,n),e):e},createPropertyAccessChain:4&e?(e,t,n)=>nw(it(e,t,n),262144):it,updatePropertyAccessChain:at,createElementAccessExpression:lt,updateElementAccessExpression:function(e,t,n){return fl(e)?ut(e,t,e.questionDotToken,n):e.expression!==t||e.argumentExpression!==n?Ii(lt(t,n),e):e},createElementAccessChain:_t,updateElementAccessChain:ut,createCallExpression:mt,updateCallExpression:function(e,t,n,r){return ml(e)?ht(e,t,e.questionDotToken,n,r):e.expression!==t||e.typeArguments!==n||e.arguments!==r?Ii(mt(t,n,r),e):e},createCallChain:gt,updateCallChain:ht,createNewExpression:yt,updateNewExpression:function(e,t,n,r){return e.expression!==t||e.typeArguments!==n||e.arguments!==r?Ii(yt(t,n,r),e):e},createTaggedTemplateExpression:vt,updateTaggedTemplateExpression:function(e,t,n,r){return e.tag!==t||e.typeArguments!==n||e.template!==r?Ii(vt(t,n,r),e):e},createTypeAssertion:bt,updateTypeAssertion:xt,createParenthesizedExpression:kt,updateParenthesizedExpression:St,createFunctionExpression:Tt,updateFunctionExpression:Ct,createArrowFunction:wt,updateArrowFunction:Nt,createDeleteExpression:Dt,updateDeleteExpression:function(e,t){return e.expression!==t?Ii(Dt(t),e):e},createTypeOfExpression:Ft,updateTypeOfExpression:function(e,t){return e.expression!==t?Ii(Ft(t),e):e},createVoidExpression:Et,updateVoidExpression:function(e,t){return e.expression!==t?Ii(Et(t),e):e},createAwaitExpression:Pt,updateAwaitExpression:function(e,t){return e.expression!==t?Ii(Pt(t),e):e},createPrefixUnaryExpression:At,updatePrefixUnaryExpression:function(e,t){return e.operand!==t?Ii(At(e.operator,t),e):e},createPostfixUnaryExpression:It,updatePostfixUnaryExpression:function(e,t){return e.operand!==t?Ii(It(t,e.operator),e):e},createBinaryExpression:Ot,updateBinaryExpression:function(e,t,n,r){return e.left!==t||e.operatorToken!==n||e.right!==r?Ii(Ot(t,n,r),e):e},createConditionalExpression:jt,updateConditionalExpression:function(e,t,n,r,i,o){return e.condition!==t||e.questionToken!==n||e.whenTrue!==r||e.colonToken!==i||e.whenFalse!==o?Ii(jt(t,n,r,i,o),e):e},createTemplateExpression:Rt,updateTemplateExpression:function(e,t,n){return e.head!==t||e.templateSpans!==n?Ii(Rt(t,n),e):e},createTemplateHead:function(e,t,n){return zt(16,e=Mt(16,e,t,n),t,n)},createTemplateMiddle:function(e,t,n){return zt(17,e=Mt(16,e,t,n),t,n)},createTemplateTail:function(e,t,n){return zt(18,e=Mt(16,e,t,n),t,n)},createNoSubstitutionTemplateLiteral:function(e,t,n){return Jt(15,e=Mt(16,e,t,n),t,n)},createTemplateLiteralLikeNode:zt,createYieldExpression:qt,updateYieldExpression:function(e,t,n){return e.expression!==n||e.asteriskToken!==t?Ii(qt(t,n),e):e},createSpreadElement:Ut,updateSpreadElement:function(e,t){return e.expression!==t?Ii(Ut(t),e):e},createClassExpression:Vt,updateClassExpression:Wt,createOmittedExpression:function(){return k(232)},createExpressionWithTypeArguments:$t,updateExpressionWithTypeArguments:Ht,createAsExpression:Kt,updateAsExpression:Xt,createNonNullExpression:Qt,updateNonNullExpression:Yt,createSatisfiesExpression:Zt,updateSatisfiesExpression:en,createNonNullChain:tn,updateNonNullChain:nn,createMetaProperty:rn,updateMetaProperty:function(e,t){return e.name!==t?Ii(rn(e.keywordToken,t),e):e},createTemplateSpan:on,updateTemplateSpan:function(e,t,n){return e.expression!==t||e.literal!==n?Ii(on(t,n),e):e},createSemicolonClassElement:function(){const e=k(240);return e.transformFlags|=1024,e},createBlock:an,updateBlock:function(e,t){return e.statements!==t?Ii(an(t,e.multiLine),e):e},createVariableStatement:sn,updateVariableStatement:cn,createEmptyStatement:ln,createExpressionStatement:_n,updateExpressionStatement:function(e,t){return e.expression!==t?Ii(_n(t),e):e},createIfStatement:dn,updateIfStatement:function(e,t,n,r){return e.expression!==t||e.thenStatement!==n||e.elseStatement!==r?Ii(dn(t,n,r),e):e},createDoStatement:pn,updateDoStatement:function(e,t,n){return e.statement!==t||e.expression!==n?Ii(pn(t,n),e):e},createWhileStatement:fn,updateWhileStatement:function(e,t,n){return e.expression!==t||e.statement!==n?Ii(fn(t,n),e):e},createForStatement:mn,updateForStatement:function(e,t,n,r,i){return e.initializer!==t||e.condition!==n||e.incrementor!==r||e.statement!==i?Ii(mn(t,n,r,i),e):e},createForInStatement:gn,updateForInStatement:function(e,t,n,r){return e.initializer!==t||e.expression!==n||e.statement!==r?Ii(gn(t,n,r),e):e},createForOfStatement:hn,updateForOfStatement:function(e,t,n,r,i){return e.awaitModifier!==t||e.initializer!==n||e.expression!==r||e.statement!==i?Ii(hn(t,n,r,i),e):e},createContinueStatement:yn,updateContinueStatement:function(e,t){return e.label!==t?Ii(yn(t),e):e},createBreakStatement:vn,updateBreakStatement:function(e,t){return e.label!==t?Ii(vn(t),e):e},createReturnStatement:bn,updateReturnStatement:function(e,t){return e.expression!==t?Ii(bn(t),e):e},createWithStatement:xn,updateWithStatement:function(e,t,n){return e.expression!==t||e.statement!==n?Ii(xn(t,n),e):e},createSwitchStatement:kn,updateSwitchStatement:function(e,t,n){return e.expression!==t||e.caseBlock!==n?Ii(kn(t,n),e):e},createLabeledStatement:Sn,updateLabeledStatement:Tn,createThrowStatement:Cn,updateThrowStatement:function(e,t){return e.expression!==t?Ii(Cn(t),e):e},createTryStatement:wn,updateTryStatement:function(e,t,n,r){return e.tryBlock!==t||e.catchClause!==n||e.finallyBlock!==r?Ii(wn(t,n,r),e):e},createDebuggerStatement:function(){const e=k(259);return e.jsDoc=void 0,e.flowNode=void 0,e},createVariableDeclaration:Nn,updateVariableDeclaration:function(e,t,n,r,i){return e.name!==t||e.type!==r||e.exclamationToken!==n||e.initializer!==i?Ii(Nn(t,n,r,i),e):e},createVariableDeclarationList:Dn,updateVariableDeclarationList:function(e,t){return e.declarations!==t?Ii(Dn(t,e.flags),e):e},createFunctionDeclaration:Fn,updateFunctionDeclaration:En,createClassDeclaration:Pn,updateClassDeclaration:An,createInterfaceDeclaration:In,updateInterfaceDeclaration:On,createTypeAliasDeclaration:Ln,updateTypeAliasDeclaration:jn,createEnumDeclaration:Rn,updateEnumDeclaration:Mn,createModuleDeclaration:Bn,updateModuleDeclaration:Jn,createModuleBlock:zn,updateModuleBlock:function(e,t){return e.statements!==t?Ii(zn(t),e):e},createCaseBlock:qn,updateCaseBlock:function(e,t){return e.clauses!==t?Ii(qn(t),e):e},createNamespaceExportDeclaration:Un,updateNamespaceExportDeclaration:function(e,t){return e.name!==t?((n=Un(t))!==(r=e)&&(n.modifiers=r.modifiers),Ii(n,r)):e;var n,r},createImportEqualsDeclaration:Vn,updateImportEqualsDeclaration:Wn,createImportDeclaration:$n,updateImportDeclaration:Hn,createImportClause:Kn,updateImportClause:function(e,t,n,r){return e.isTypeOnly!==t||e.name!==n||e.namedBindings!==r?Ii(Kn(t,n,r),e):e},createAssertClause:Gn,updateAssertClause:function(e,t,n){return e.elements!==t||e.multiLine!==n?Ii(Gn(t,n),e):e},createAssertEntry:Xn,updateAssertEntry:function(e,t,n){return e.name!==t||e.value!==n?Ii(Xn(t,n),e):e},createImportTypeAssertionContainer:Qn,updateImportTypeAssertionContainer:function(e,t,n){return e.assertClause!==t||e.multiLine!==n?Ii(Qn(t,n),e):e},createImportAttributes:Yn,updateImportAttributes:function(e,t,n){return e.elements!==t||e.multiLine!==n?Ii(Yn(t,n,e.token),e):e},createImportAttribute:Zn,updateImportAttribute:function(e,t,n){return e.name!==t||e.value!==n?Ii(Zn(t,n),e):e},createNamespaceImport:er,updateNamespaceImport:function(e,t){return e.name!==t?Ii(er(t),e):e},createNamespaceExport:tr,updateNamespaceExport:function(e,t){return e.name!==t?Ii(tr(t),e):e},createNamedImports:nr,updateNamedImports:function(e,t){return e.elements!==t?Ii(nr(t),e):e},createImportSpecifier:rr,updateImportSpecifier:function(e,t,n,r){return e.isTypeOnly!==t||e.propertyName!==n||e.name!==r?Ii(rr(t,n,r),e):e},createExportAssignment:ir,updateExportAssignment:or,createExportDeclaration:ar,updateExportDeclaration:sr,createNamedExports:cr,updateNamedExports:function(e,t){return e.elements!==t?Ii(cr(t),e):e},createExportSpecifier:lr,updateExportSpecifier:function(e,t,n,r){return e.isTypeOnly!==t||e.propertyName!==n||e.name!==r?Ii(lr(t,n,r),e):e},createMissingDeclaration:function(){const e=S(282);return e.jsDoc=void 0,e},createExternalModuleReference:_r,updateExternalModuleReference:function(e,t){return e.expression!==t?Ii(_r(t),e):e},get createJSDocAllType(){return c(312)},get createJSDocUnknownType(){return c(313)},get createJSDocNonNullableType(){return p(315)},get updateJSDocNonNullableType(){return f(315)},get createJSDocNullableType(){return p(314)},get updateJSDocNullableType(){return f(314)},get createJSDocOptionalType(){return _(316)},get updateJSDocOptionalType(){return u(316)},get createJSDocVariadicType(){return _(318)},get updateJSDocVariadicType(){return u(318)},get createJSDocNamepathType(){return _(319)},get updateJSDocNamepathType(){return u(319)},createJSDocFunctionType:pr,updateJSDocFunctionType:function(e,t,n){return e.parameters!==t||e.type!==n?Ii(pr(t,n),e):e},createJSDocTypeLiteral:fr,updateJSDocTypeLiteral:function(e,t,n){return e.jsDocPropertyTags!==t||e.isArrayType!==n?Ii(fr(t,n),e):e},createJSDocTypeExpression:mr,updateJSDocTypeExpression:function(e,t){return e.type!==t?Ii(mr(t),e):e},createJSDocSignature:gr,updateJSDocSignature:function(e,t,n,r){return e.typeParameters!==t||e.parameters!==n||e.type!==r?Ii(gr(t,n,r),e):e},createJSDocTemplateTag:br,updateJSDocTemplateTag:function(e,t=hr(e),n,r,i){return e.tagName!==t||e.constraint!==n||e.typeParameters!==r||e.comment!==i?Ii(br(t,n,r,i),e):e},createJSDocTypedefTag:xr,updateJSDocTypedefTag:function(e,t=hr(e),n,r,i){return e.tagName!==t||e.typeExpression!==n||e.fullName!==r||e.comment!==i?Ii(xr(t,n,r,i),e):e},createJSDocParameterTag:kr,updateJSDocParameterTag:function(e,t=hr(e),n,r,i,o,a){return e.tagName!==t||e.name!==n||e.isBracketed!==r||e.typeExpression!==i||e.isNameFirst!==o||e.comment!==a?Ii(kr(t,n,r,i,o,a),e):e},createJSDocPropertyTag:Sr,updateJSDocPropertyTag:function(e,t=hr(e),n,r,i,o,a){return e.tagName!==t||e.name!==n||e.isBracketed!==r||e.typeExpression!==i||e.isNameFirst!==o||e.comment!==a?Ii(Sr(t,n,r,i,o,a),e):e},createJSDocCallbackTag:Tr,updateJSDocCallbackTag:function(e,t=hr(e),n,r,i){return e.tagName!==t||e.typeExpression!==n||e.fullName!==r||e.comment!==i?Ii(Tr(t,n,r,i),e):e},createJSDocOverloadTag:Cr,updateJSDocOverloadTag:function(e,t=hr(e),n,r){return e.tagName!==t||e.typeExpression!==n||e.comment!==r?Ii(Cr(t,n,r),e):e},createJSDocAugmentsTag:wr,updateJSDocAugmentsTag:function(e,t=hr(e),n,r){return e.tagName!==t||e.class!==n||e.comment!==r?Ii(wr(t,n,r),e):e},createJSDocImplementsTag:Nr,updateJSDocImplementsTag:function(e,t=hr(e),n,r){return e.tagName!==t||e.class!==n||e.comment!==r?Ii(Nr(t,n,r),e):e},createJSDocSeeTag:Dr,updateJSDocSeeTag:function(e,t,n,r){return e.tagName!==t||e.name!==n||e.comment!==r?Ii(Dr(t,n,r),e):e},createJSDocImportTag:Mr,updateJSDocImportTag:function(e,t,n,r,i,o){return e.tagName!==t||e.comment!==o||e.importClause!==n||e.moduleSpecifier!==r||e.attributes!==i?Ii(Mr(t,n,r,i,o),e):e},createJSDocNameReference:Fr,updateJSDocNameReference:function(e,t){return e.name!==t?Ii(Fr(t),e):e},createJSDocMemberName:Er,updateJSDocMemberName:function(e,t,n){return e.left!==t||e.right!==n?Ii(Er(t,n),e):e},createJSDocLink:Pr,updateJSDocLink:function(e,t,n){return e.name!==t?Ii(Pr(t,n),e):e},createJSDocLinkCode:Ar,updateJSDocLinkCode:function(e,t,n){return e.name!==t?Ii(Ar(t,n),e):e},createJSDocLinkPlain:Ir,updateJSDocLinkPlain:function(e,t,n){return e.name!==t?Ii(Ir(t,n),e):e},get createJSDocTypeTag(){return h(344)},get updateJSDocTypeTag(){return y(344)},get createJSDocReturnTag(){return h(342)},get updateJSDocReturnTag(){return y(342)},get createJSDocThisTag(){return h(343)},get updateJSDocThisTag(){return y(343)},get createJSDocAuthorTag(){return m(330)},get updateJSDocAuthorTag(){return g(330)},get createJSDocClassTag(){return m(332)},get updateJSDocClassTag(){return g(332)},get createJSDocPublicTag(){return m(333)},get updateJSDocPublicTag(){return g(333)},get createJSDocPrivateTag(){return m(334)},get updateJSDocPrivateTag(){return g(334)},get createJSDocProtectedTag(){return m(335)},get updateJSDocProtectedTag(){return g(335)},get createJSDocReadonlyTag(){return m(336)},get updateJSDocReadonlyTag(){return g(336)},get createJSDocOverrideTag(){return m(337)},get updateJSDocOverrideTag(){return g(337)},get createJSDocDeprecatedTag(){return m(331)},get updateJSDocDeprecatedTag(){return g(331)},get createJSDocThrowsTag(){return h(349)},get updateJSDocThrowsTag(){return y(349)},get createJSDocSatisfiesTag(){return h(350)},get updateJSDocSatisfiesTag(){return y(350)},createJSDocEnumTag:Rr,updateJSDocEnumTag:function(e,t=hr(e),n,r){return e.tagName!==t||e.typeExpression!==n||e.comment!==r?Ii(Rr(t,n,r),e):e},createJSDocUnknownTag:jr,updateJSDocUnknownTag:function(e,t,n){return e.tagName!==t||e.comment!==n?Ii(jr(t,n),e):e},createJSDocText:Br,updateJSDocText:function(e,t){return e.text!==t?Ii(Br(t),e):e},createJSDocComment:Jr,updateJSDocComment:function(e,t,n){return e.comment!==t||e.tags!==n?Ii(Jr(t,n),e):e},createJsxElement:zr,updateJsxElement:function(e,t,n,r){return e.openingElement!==t||e.children!==n||e.closingElement!==r?Ii(zr(t,n,r),e):e},createJsxSelfClosingElement:qr,updateJsxSelfClosingElement:function(e,t,n,r){return e.tagName!==t||e.typeArguments!==n||e.attributes!==r?Ii(qr(t,n,r),e):e},createJsxOpeningElement:Ur,updateJsxOpeningElement:function(e,t,n,r){return e.tagName!==t||e.typeArguments!==n||e.attributes!==r?Ii(Ur(t,n,r),e):e},createJsxClosingElement:Vr,updateJsxClosingElement:function(e,t){return e.tagName!==t?Ii(Vr(t),e):e},createJsxFragment:Wr,createJsxText:$r,updateJsxText:function(e,t,n){return e.text!==t||e.containsOnlyTriviaWhiteSpaces!==n?Ii($r(t,n),e):e},createJsxOpeningFragment:function(){const e=k(289);return e.transformFlags|=2,e},createJsxJsxClosingFragment:function(){const e=k(290);return e.transformFlags|=2,e},updateJsxFragment:function(e,t,n,r){return e.openingFragment!==t||e.children!==n||e.closingFragment!==r?Ii(Wr(t,n,r),e):e},createJsxAttribute:Hr,updateJsxAttribute:function(e,t,n){return e.name!==t||e.initializer!==n?Ii(Hr(t,n),e):e},createJsxAttributes:Kr,updateJsxAttributes:function(e,t){return e.properties!==t?Ii(Kr(t),e):e},createJsxSpreadAttribute:Gr,updateJsxSpreadAttribute:function(e,t){return e.expression!==t?Ii(Gr(t),e):e},createJsxExpression:Xr,updateJsxExpression:function(e,t){return e.expression!==t?Ii(Xr(e.dotDotDotToken,t),e):e},createJsxNamespacedName:Qr,updateJsxNamespacedName:function(e,t,n){return e.namespace!==t||e.name!==n?Ii(Qr(t,n),e):e},createCaseClause:Yr,updateCaseClause:function(e,t,n){return e.expression!==t||e.statements!==n?Ii(Yr(t,n),e):e},createDefaultClause:Zr,updateDefaultClause:function(e,t){return e.statements!==t?Ii(Zr(t),e):e},createHeritageClause:ei,updateHeritageClause:function(e,t){return e.types!==t?Ii(ei(e.token,t),e):e},createCatchClause:ti,updateCatchClause:function(e,t,n){return e.variableDeclaration!==t||e.block!==n?Ii(ti(t,n),e):e},createPropertyAssignment:ni,updatePropertyAssignment:ri,createShorthandPropertyAssignment:ii,updateShorthandPropertyAssignment:function(e,t,n){return e.name!==t||e.objectAssignmentInitializer!==n?((r=ii(t,n))!==(i=e)&&(r.modifiers=i.modifiers,r.questionToken=i.questionToken,r.exclamationToken=i.exclamationToken,r.equalsToken=i.equalsToken),Ii(r,i)):e;var r,i},createSpreadAssignment:oi,updateSpreadAssignment:function(e,t){return e.expression!==t?Ii(oi(t),e):e},createEnumMember:ai,updateEnumMember:function(e,t,n){return e.name!==t||e.initializer!==n?Ii(ai(t,n),e):e},createSourceFile:function(e,n,r){const i=t.createBaseSourceFileNode(307);return i.statements=x(e),i.endOfFileToken=n,i.flags|=r,i.text="",i.fileName="",i.path="",i.resolvedPath="",i.originalFileName="",i.languageVersion=1,i.languageVariant=0,i.scriptKind=0,i.isDeclarationFile=!1,i.hasNoDefaultLib=!1,i.transformFlags|=WC(i.statements)|VC(i.endOfFileToken),i.locals=void 0,i.nextContainer=void 0,i.endFlowNode=void 0,i.nodeCount=0,i.identifierCount=0,i.symbolCount=0,i.parseDiagnostics=void 0,i.bindDiagnostics=void 0,i.bindSuggestionDiagnostics=void 0,i.lineMap=void 0,i.externalModuleIndicator=void 0,i.setExternalModuleIndicator=void 0,i.pragmas=void 0,i.checkJsDirective=void 0,i.referencedFiles=void 0,i.typeReferenceDirectives=void 0,i.libReferenceDirectives=void 0,i.amdDependencies=void 0,i.commentDirectives=void 0,i.identifiers=void 0,i.packageJsonLocations=void 0,i.packageJsonScope=void 0,i.imports=void 0,i.moduleAugmentations=void 0,i.ambientModuleNames=void 0,i.classifiableNames=void 0,i.impliedNodeFormat=void 0,i},updateSourceFile:function(e,t,n=e.isDeclarationFile,r=e.referencedFiles,i=e.typeReferenceDirectives,o=e.hasNoDefaultLib,a=e.libReferenceDirectives){return e.statements!==t||e.isDeclarationFile!==n||e.referencedFiles!==r||e.typeReferenceDirectives!==i||e.hasNoDefaultLib!==o||e.libReferenceDirectives!==a?Ii(function(e,t,n,r,i,o,a){const s=ci(e);return s.statements=x(t),s.isDeclarationFile=n,s.referencedFiles=r,s.typeReferenceDirectives=i,s.hasNoDefaultLib=o,s.libReferenceDirectives=a,s.transformFlags=WC(s.statements)|VC(s.endOfFileToken),s}(e,t,n,r,i,o,a),e):e},createRedirectedSourceFile:si,createBundle:li,updateBundle:function(e,t){return e.sourceFiles!==t?Ii(li(t),e):e},createSyntheticExpression:function(e,t=!1,n){const r=k(237);return r.type=e,r.isSpread=t,r.tupleNameSource=n,r},createSyntaxList:function(e){const t=k(352);return t._children=e,t},createNotEmittedStatement:function(e){const t=k(353);return t.original=e,nI(t,e),t},createNotEmittedTypeElement:function(){return k(354)},createPartiallyEmittedExpression:_i,updatePartiallyEmittedExpression:ui,createCommaListExpression:pi,updateCommaListExpression:function(e,t){return e.elements!==t?Ii(pi(t),e):e},createSyntheticReferenceExpression:fi,updateSyntheticReferenceExpression:function(e,t,n){return e.expression!==t||e.thisArg!==n?Ii(fi(t,n),e):e},cloneNode:mi,get createComma(){return o(28)},get createAssignment(){return o(64)},get createLogicalOr(){return o(57)},get createLogicalAnd(){return o(56)},get createBitwiseOr(){return o(52)},get createBitwiseXor(){return o(53)},get createBitwiseAnd(){return o(51)},get createStrictEquality(){return o(37)},get createStrictInequality(){return o(38)},get createEquality(){return o(35)},get createInequality(){return o(36)},get createLessThan(){return o(30)},get createLessThanEquals(){return o(33)},get createGreaterThan(){return o(32)},get createGreaterThanEquals(){return o(34)},get createLeftShift(){return o(48)},get createRightShift(){return o(49)},get createUnsignedRightShift(){return o(50)},get createAdd(){return o(40)},get createSubtract(){return o(41)},get createMultiply(){return o(42)},get createDivide(){return o(44)},get createModulo(){return o(45)},get createExponent(){return o(43)},get createPrefixPlus(){return a(40)},get createPrefixMinus(){return a(41)},get createPrefixIncrement(){return a(46)},get createPrefixDecrement(){return a(47)},get createBitwiseNot(){return a(55)},get createLogicalNot(){return a(54)},get createPostfixIncrement(){return s(46)},get createPostfixDecrement(){return s(47)},createImmediatelyInvokedFunctionExpression:function(e,t,n){return mt(Tt(void 0,void 0,void 0,void 0,t?[t]:[],void 0,an(e,!0)),void 0,n?[n]:[])},createImmediatelyInvokedArrowFunction:function(e,t,n){return mt(wt(void 0,void 0,t?[t]:[],void 0,void 0,an(e,!0)),void 0,n?[n]:[])},createVoidZero:gi,createExportDefault:function(e){return ir(void 0,!1,e)},createExternalModuleExport:function(e){return ar(void 0,!1,cr([lr(!1,void 0,e)]))},createTypeCheck:function(e,t){return"null"===t?b.createStrictEquality(e,z()):"undefined"===t?b.createStrictEquality(e,gi()):b.createStrictEquality(Ft(e),D(t))},createIsNotTypeCheck:function(e,t){return"null"===t?b.createStrictInequality(e,z()):"undefined"===t?b.createStrictInequality(e,gi()):b.createStrictInequality(Ft(e),D(t))},createMethodCall:hi,createGlobalMethodCall:yi,createFunctionBindCall:function(e,t,n){return hi(e,"bind",[t,...n])},createFunctionCallCall:function(e,t,n){return hi(e,"call",[t,...n])},createFunctionApplyCall:function(e,t,n){return hi(e,"apply",[t,n])},createArraySliceCall:function(e,t){return hi(e,"slice",void 0===t?[]:[Ei(t)])},createArrayConcatCall:function(e,t){return hi(e,"concat",t)},createObjectDefinePropertyCall:function(e,t,n){return yi("Object","defineProperty",[e,Ei(t),n])},createObjectGetOwnPropertyDescriptorCall:function(e,t){return yi("Object","getOwnPropertyDescriptor",[e,Ei(t)])},createReflectGetCall:function(e,t,n){return yi("Reflect","get",n?[e,t,n]:[e,t])},createReflectSetCall:function(e,t,n,r){return yi("Reflect","set",r?[e,t,n,r]:[e,t,n])},createPropertyDescriptor:function(e,t){const n=[];vi(n,"enumerable",Ei(e.enumerable)),vi(n,"configurable",Ei(e.configurable));let r=vi(n,"writable",Ei(e.writable));r=vi(n,"value",e.value)||r;let i=vi(n,"get",e.get);return i=vi(n,"set",e.set)||i,un.assert(!(r&&i),"A PropertyDescriptor may not be both an accessor descriptor and a data descriptor."),et(n,!t)},createCallBinding:function(e,t,n,i=!1){const o=cA(e,31);let a,s;return om(o)?(a=J(),s=o):ZN(o)?(a=J(),s=void 0!==n&&n<2?nI(A("_super"),o):o):8192&Qd(o)?(a=gi(),s=r().parenthesizeLeftSideOfAccess(o,!1)):HD(o)?bi(o.expression,i)?(a=I(t),s=rt(nI(b.createAssignment(a,o.expression),o.expression),o.name),nI(s,o)):(a=o.expression,s=o):KD(o)?bi(o.expression,i)?(a=I(t),s=lt(nI(b.createAssignment(a,o.expression),o.expression),o.argumentExpression),nI(s,o)):(a=o.expression,s=o):(a=gi(),s=r().parenthesizeLeftSideOfAccess(e,!1)),{target:s,thisArg:a}},createAssignmentTargetWrapper:function(e,t){return rt(kt(et([fe(void 0,"value",[Q(void 0,void 0,e,void 0,void 0,void 0)],an([_n(t)]))])),"value")},inlineExpressions:function(e){return e.length>10?pi(e):we(e,b.createComma)},getInternalName:function(e,t,n){return xi(e,t,n,98304)},getLocalName:function(e,t,n,r){return xi(e,t,n,32768,r)},getExportName:ki,getDeclarationName:function(e,t,n){return xi(e,t,n)},getNamespaceMemberName:Si,getExternalModuleOrNamespaceExportName:function(e,t,n,r){return e&&wv(t,32)?Si(e,xi(t),n,r):ki(t,n,r)},restoreOuterExpressions:function e(t,n,r=31){return t&&sA(t,r)&&(!(ZD(i=t)&&Zh(i)&&Zh(aw(i))&&Zh(dw(i)))||$(fw(i))||$(hw(i)))?function(e,t){switch(e.kind){case 217:return St(e,t);case 216:return xt(e,e.type,t);case 234:return Xt(e,t,e.type);case 238:return en(e,t,e.type);case 235:return Yt(e,t);case 233:return Ht(e,t,e.typeArguments);case 355:return ui(e,t)}}(t,e(t.expression,n)):n;var i},restoreEnclosingLabel:function e(t,n,r){if(!n)return t;const i=Tn(n,n.label,JF(n.statement)?e(t,n.statement):t);return r&&r(n),i},createUseStrictPrologue:Ti,copyPrologue:function(e,t,n,r){return wi(e,t,Ci(e,t,0,n),r)},copyStandardPrologue:Ci,copyCustomPrologue:wi,ensureUseStrict:function(e){return tA(e)?e:nI(x([Ti(),...e]),e)},liftToBlock:function(e){return un.assert(v(e,pu),"Cannot lift nodes to a Block."),be(e)||an(e)},mergeLexicalEnvironment:function(e,t){if(!$(t))return e;const n=Ni(e,uf,0),r=Ni(e,pf,n),i=Ni(e,mf,r),o=Ni(t,uf,0),a=Ni(t,pf,o),s=Ni(t,mf,a),c=Ni(t,df,s);un.assert(c===t.length,"Expected declarations to be valid standard or custom prologues");const l=El(e)?e.slice():e;if(c>s&&l.splice(i,0,...t.slice(s,c)),s>a&&l.splice(r,0,...t.slice(a,s)),a>o&&l.splice(n,0,...t.slice(o,a)),o>0)if(0===n)l.splice(0,0,...t.slice(0,o));else{const r=new Map;for(let t=0;t=0;e--){const n=t[e];r.has(n.expression.text)||l.unshift(n)}}return El(e)?nI(x(l,e.hasTrailingComma),e):e},replaceModifiers:function(e,t){let n;return n="number"==typeof t?W(t):t,iD(e)?X(e,n,e.name,e.constraint,e.default):oD(e)?Y(e,n,e.dotDotDotToken,e.name,e.questionToken,e.type,e.initializer):xD(e)?Ee(e,n,e.typeParameters,e.parameters,e.type):sD(e)?te(e,n,e.name,e.questionToken,e.type):cD(e)?re(e,n,e.name,e.questionToken??e.exclamationToken,e.type,e.initializer):lD(e)?ae(e,n,e.name,e.questionToken,e.typeParameters,e.parameters,e.type):_D(e)?ce(e,n,e.asteriskToken,e.name,e.questionToken,e.typeParameters,e.parameters,e.type,e.body):dD(e)?ue(e,n,e.parameters,e.body):pD(e)?pe(e,n,e.name,e.parameters,e.type,e.body):fD(e)?me(e,n,e.name,e.parameters,e.body):hD(e)?xe(e,n,e.parameters,e.type):eF(e)?Ct(e,n,e.asteriskToken,e.name,e.typeParameters,e.parameters,e.type,e.body):tF(e)?Nt(e,n,e.typeParameters,e.parameters,e.type,e.equalsGreaterThanToken,e.body):pF(e)?Wt(e,n,e.name,e.typeParameters,e.heritageClauses,e.members):wF(e)?cn(e,n,e.declarationList):$F(e)?En(e,n,e.asteriskToken,e.name,e.typeParameters,e.parameters,e.type,e.body):HF(e)?An(e,n,e.name,e.typeParameters,e.heritageClauses,e.members):KF(e)?On(e,n,e.name,e.typeParameters,e.heritageClauses,e.members):GF(e)?jn(e,n,e.name,e.typeParameters,e.type):XF(e)?Mn(e,n,e.name,e.members):QF(e)?Jn(e,n,e.name,e.body):tE(e)?Wn(e,n,e.isTypeOnly,e.name,e.moduleReference):nE(e)?Hn(e,n,e.importClause,e.moduleSpecifier,e.attributes):pE(e)?or(e,n,e.expression):fE(e)?sr(e,n,e.isTypeOnly,e.exportClause,e.moduleSpecifier,e.attributes):un.assertNever(e)},replaceDecoratorsAndModifiers:function(e,t){return oD(e)?Y(e,t,e.dotDotDotToken,e.name,e.questionToken,e.type,e.initializer):cD(e)?re(e,t,e.name,e.questionToken??e.exclamationToken,e.type,e.initializer):_D(e)?ce(e,t,e.asteriskToken,e.name,e.questionToken,e.typeParameters,e.parameters,e.type,e.body):pD(e)?pe(e,t,e.name,e.parameters,e.type,e.body):fD(e)?me(e,t,e.name,e.parameters,e.body):pF(e)?Wt(e,t,e.name,e.typeParameters,e.heritageClauses,e.members):HF(e)?An(e,t,e.name,e.typeParameters,e.heritageClauses,e.members):un.assertNever(e)},replacePropertyName:function(e,t){switch(e.kind){case 177:return pe(e,e.modifiers,t,e.parameters,e.type,e.body);case 178:return me(e,e.modifiers,t,e.parameters,e.body);case 174:return ce(e,e.modifiers,e.asteriskToken,t,e.questionToken,e.typeParameters,e.parameters,e.type,e.body);case 173:return ae(e,e.modifiers,t,e.questionToken,e.typeParameters,e.parameters,e.type);case 172:return re(e,e.modifiers,t,e.questionToken??e.exclamationToken,e.type,e.initializer);case 171:return te(e,e.modifiers,t,e.questionToken,e.type);case 303:return ri(e,t,e.initializer)}}};return d(RC,(e=>e(b))),b;function x(e,t){if(void 0===e||e===l)e=[];else if(El(e)){if(void 0===t||e.hasTrailingComma===t)return void 0===e.transformFlags&&$C(e),un.attachNodeArrayDebugInfo(e),e;const n=e.slice();return n.pos=e.pos,n.end=e.end,n.hasTrailingComma=t,n.transformFlags=e.transformFlags,un.attachNodeArrayDebugInfo(n),n}const n=e.length,r=n>=1&&n<=4?e.slice():e;return r.pos=-1,r.end=-1,r.hasTrailingComma=!!t,r.transformFlags=0,$C(r),un.attachNodeArrayDebugInfo(r),r}function k(e){return t.createBaseNode(e)}function S(e){const t=k(e);return t.symbol=void 0,t.localSymbol=void 0,t}function T(e,t){return e!==t&&(e.typeArguments=t.typeArguments),Ii(e,t)}function C(e,t=0){const n="number"==typeof e?e+"":e;un.assert(45!==n.charCodeAt(0),"Negative numbers should be created in combination with createPrefixUnaryExpression");const r=S(9);return r.text=n,r.numericLiteralFlags=t,384&t&&(r.transformFlags|=1024),r}function w(e){const t=M(10);return t.text="string"==typeof e?e:fT(e)+"n",t.transformFlags|=32,t}function N(e,t){const n=S(11);return n.text=e,n.singleQuote=t,n}function D(e,t,n){const r=N(e,t);return r.hasExtendedUnicodeEscape=n,n&&(r.transformFlags|=1024),r}function F(e){const t=M(14);return t.text=e,t}function E(e){const n=t.createBaseIdentifierNode(80);return n.escapedText=e,n.jsDoc=void 0,n.flowNode=void 0,n.symbol=void 0,n}function P(e,t,n,r){const i=E(pc(e));return Lw(i,{flags:t,id:LC,prefix:n,suffix:r}),LC++,i}function A(e,t,n){void 0===t&&e&&(t=Fa(e)),80===t&&(t=void 0);const r=E(pc(e));return n&&(r.flags|=256),"await"===r.escapedText&&(r.transformFlags|=67108864),256&r.flags&&(r.transformFlags|=1024),r}function I(e,t,n,r){let i=1;t&&(i|=8);const o=P("",i,n,r);return e&&e(o),o}function O(e,t=0,n,r){un.assert(!(7&t),"Argument out of range: flags"),(n||r)&&(t|=16);const i=P(e?ul(e)?KA(!1,n,e,r,mc):`generated@${jB(e)}`:"",4|t,n,r);return i.original=e,i}function L(e){const n=t.createBasePrivateIdentifierNode(81);return n.escapedText=e,n.transformFlags|=16777216,n}function j(e,t,n,r){const i=L(pc(e));return Lw(i,{flags:t,id:LC,prefix:n,suffix:r}),LC++,i}function M(e){return t.createBaseTokenNode(e)}function B(e){un.assert(e>=0&&e<=165,"Invalid token"),un.assert(e<=15||e>=18,"Invalid token. Use 'createTemplateLiteralLikeNode' to create template literals."),un.assert(e<=9||e>=15,"Invalid token. Use 'createLiteralLikeNode' to create literals."),un.assert(80!==e,"Invalid token. Use 'createIdentifier' to create identifiers");const t=M(e);let n=0;switch(e){case 134:n=384;break;case 160:n=4;break;case 125:case 123:case 124:case 148:case 128:case 138:case 87:case 133:case 150:case 163:case 146:case 151:case 103:case 147:case 164:case 154:case 136:case 155:case 116:case 159:case 157:n=1;break;case 108:n=134218752,t.flowNode=void 0;break;case 126:n=1024;break;case 129:n=16777216;break;case 110:n=16384,t.flowNode=void 0}return n&&(t.transformFlags|=n),t}function J(){return B(110)}function z(){return B(106)}function q(){return B(112)}function U(){return B(97)}function V(e){return B(e)}function W(e){const t=[];return 32&e&&t.push(V(95)),128&e&&t.push(V(138)),2048&e&&t.push(V(90)),4096&e&&t.push(V(87)),1&e&&t.push(V(125)),2&e&&t.push(V(123)),4&e&&t.push(V(124)),64&e&&t.push(V(128)),256&e&&t.push(V(126)),16&e&&t.push(V(164)),8&e&&t.push(V(148)),512&e&&t.push(V(129)),1024&e&&t.push(V(134)),8192&e&&t.push(V(103)),16384&e&&t.push(V(147)),t.length?t:void 0}function H(e,t){const n=k(166);return n.left=e,n.right=Fi(t),n.transformFlags|=VC(n.left)|UC(n.right),n.flowNode=void 0,n}function K(e){const t=k(167);return t.expression=r().parenthesizeExpressionOfComputedPropertyName(e),t.transformFlags|=132096|VC(t.expression),t}function G(e,t,n,r){const i=S(168);return i.modifiers=Di(e),i.name=Fi(t),i.constraint=n,i.default=r,i.transformFlags=1,i.expression=void 0,i.jsDoc=void 0,i}function X(e,t,n,r,i){return e.modifiers!==t||e.name!==n||e.constraint!==r||e.default!==i?Ii(G(t,n,r,i),e):e}function Q(e,t,n,r,i,o){const a=S(169);return a.modifiers=Di(e),a.dotDotDotToken=t,a.name=Fi(n),a.questionToken=r,a.type=i,a.initializer=Pi(o),cv(a.name)?a.transformFlags=1:a.transformFlags=WC(a.modifiers)|VC(a.dotDotDotToken)|qC(a.name)|VC(a.questionToken)|VC(a.initializer)|(a.questionToken??a.type?1:0)|(a.dotDotDotToken??a.initializer?1024:0)|(31&Wv(a.modifiers)?8192:0),a.jsDoc=void 0,a}function Y(e,t,n,r,i,o,a){return e.modifiers!==t||e.dotDotDotToken!==n||e.name!==r||e.questionToken!==i||e.type!==o||e.initializer!==a?Ii(Q(t,n,r,i,o,a),e):e}function Z(e){const t=k(170);return t.expression=r().parenthesizeLeftSideOfAccess(e,!1),t.transformFlags|=33562625|VC(t.expression),t}function ee(e,t,n,r){const i=S(171);return i.modifiers=Di(e),i.name=Fi(t),i.type=r,i.questionToken=n,i.transformFlags=1,i.initializer=void 0,i.jsDoc=void 0,i}function te(e,t,n,r,i){return e.modifiers!==t||e.name!==n||e.questionToken!==r||e.type!==i?((o=ee(t,n,r,i))!==(a=e)&&(o.initializer=a.initializer),Ii(o,a)):e;var o,a}function ne(e,t,n,r,i){const o=S(172);o.modifiers=Di(e),o.name=Fi(t),o.questionToken=n&&RN(n)?n:void 0,o.exclamationToken=n&&jN(n)?n:void 0,o.type=r,o.initializer=Pi(i);const a=33554432&o.flags||128&Wv(o.modifiers);return o.transformFlags=WC(o.modifiers)|qC(o.name)|VC(o.initializer)|(a||o.questionToken||o.exclamationToken||o.type?1:0)|(rD(o.name)||256&Wv(o.modifiers)&&o.initializer?8192:0)|16777216,o.jsDoc=void 0,o}function re(e,t,n,r,i,o){return e.modifiers!==t||e.name!==n||e.questionToken!==(void 0!==r&&RN(r)?r:void 0)||e.exclamationToken!==(void 0!==r&&jN(r)?r:void 0)||e.type!==i||e.initializer!==o?Ii(ne(t,n,r,i,o),e):e}function oe(e,t,n,r,i,o){const a=S(173);return a.modifiers=Di(e),a.name=Fi(t),a.questionToken=n,a.typeParameters=Di(r),a.parameters=Di(i),a.type=o,a.transformFlags=1,a.jsDoc=void 0,a.locals=void 0,a.nextContainer=void 0,a.typeArguments=void 0,a}function ae(e,t,n,r,i,o,a){return e.modifiers!==t||e.name!==n||e.questionToken!==r||e.typeParameters!==i||e.parameters!==o||e.type!==a?T(oe(t,n,r,i,o,a),e):e}function se(e,t,n,r,i,o,a,s){const c=S(174);if(c.modifiers=Di(e),c.asteriskToken=t,c.name=Fi(n),c.questionToken=r,c.exclamationToken=void 0,c.typeParameters=Di(i),c.parameters=x(o),c.type=a,c.body=s,c.body){const e=1024&Wv(c.modifiers),t=!!c.asteriskToken,n=e&&t;c.transformFlags=WC(c.modifiers)|VC(c.asteriskToken)|qC(c.name)|VC(c.questionToken)|WC(c.typeParameters)|WC(c.parameters)|VC(c.type)|-67108865&VC(c.body)|(n?128:e?256:t?2048:0)|(c.questionToken||c.typeParameters||c.type?1:0)|1024}else c.transformFlags=1;return c.typeArguments=void 0,c.jsDoc=void 0,c.locals=void 0,c.nextContainer=void 0,c.flowNode=void 0,c.endFlowNode=void 0,c.returnFlowNode=void 0,c}function ce(e,t,n,r,i,o,a,s,c){return e.modifiers!==t||e.asteriskToken!==n||e.name!==r||e.questionToken!==i||e.typeParameters!==o||e.parameters!==a||e.type!==s||e.body!==c?((l=se(t,n,r,i,o,a,s,c))!==(_=e)&&(l.exclamationToken=_.exclamationToken),Ii(l,_)):e;var l,_}function le(e){const t=S(175);return t.body=e,t.transformFlags=16777216|VC(e),t.modifiers=void 0,t.jsDoc=void 0,t.locals=void 0,t.nextContainer=void 0,t.endFlowNode=void 0,t.returnFlowNode=void 0,t}function _e(e,t,n){const r=S(176);return r.modifiers=Di(e),r.parameters=x(t),r.body=n,r.body?r.transformFlags=WC(r.modifiers)|WC(r.parameters)|-67108865&VC(r.body)|1024:r.transformFlags=1,r.typeParameters=void 0,r.type=void 0,r.typeArguments=void 0,r.jsDoc=void 0,r.locals=void 0,r.nextContainer=void 0,r.endFlowNode=void 0,r.returnFlowNode=void 0,r}function ue(e,t,n,r){return e.modifiers!==t||e.parameters!==n||e.body!==r?((i=_e(t,n,r))!==(o=e)&&(i.typeParameters=o.typeParameters,i.type=o.type),T(i,o)):e;var i,o}function de(e,t,n,r,i){const o=S(177);return o.modifiers=Di(e),o.name=Fi(t),o.parameters=x(n),o.type=r,o.body=i,o.body?o.transformFlags=WC(o.modifiers)|qC(o.name)|WC(o.parameters)|VC(o.type)|-67108865&VC(o.body)|(o.type?1:0):o.transformFlags=1,o.typeArguments=void 0,o.typeParameters=void 0,o.jsDoc=void 0,o.locals=void 0,o.nextContainer=void 0,o.flowNode=void 0,o.endFlowNode=void 0,o.returnFlowNode=void 0,o}function pe(e,t,n,r,i,o){return e.modifiers!==t||e.name!==n||e.parameters!==r||e.type!==i||e.body!==o?((a=de(t,n,r,i,o))!==(s=e)&&(a.typeParameters=s.typeParameters),T(a,s)):e;var a,s}function fe(e,t,n,r){const i=S(178);return i.modifiers=Di(e),i.name=Fi(t),i.parameters=x(n),i.body=r,i.body?i.transformFlags=WC(i.modifiers)|qC(i.name)|WC(i.parameters)|-67108865&VC(i.body)|(i.type?1:0):i.transformFlags=1,i.typeArguments=void 0,i.typeParameters=void 0,i.type=void 0,i.jsDoc=void 0,i.locals=void 0,i.nextContainer=void 0,i.flowNode=void 0,i.endFlowNode=void 0,i.returnFlowNode=void 0,i}function me(e,t,n,r,i){return e.modifiers!==t||e.name!==n||e.parameters!==r||e.body!==i?((o=fe(t,n,r,i))!==(a=e)&&(o.typeParameters=a.typeParameters,o.type=a.type),T(o,a)):e;var o,a}function ge(e,t,n){const r=S(179);return r.typeParameters=Di(e),r.parameters=Di(t),r.type=n,r.transformFlags=1,r.jsDoc=void 0,r.locals=void 0,r.nextContainer=void 0,r.typeArguments=void 0,r}function he(e,t,n){const r=S(180);return r.typeParameters=Di(e),r.parameters=Di(t),r.type=n,r.transformFlags=1,r.jsDoc=void 0,r.locals=void 0,r.nextContainer=void 0,r.typeArguments=void 0,r}function ve(e,t,n){const r=S(181);return r.modifiers=Di(e),r.parameters=Di(t),r.type=n,r.transformFlags=1,r.jsDoc=void 0,r.locals=void 0,r.nextContainer=void 0,r.typeArguments=void 0,r}function xe(e,t,n,r){return e.parameters!==n||e.type!==r||e.modifiers!==t?T(ve(t,n,r),e):e}function ke(e,t){const n=k(204);return n.type=e,n.literal=t,n.transformFlags=1,n}function Se(e,t,n){const r=k(182);return r.assertsModifier=e,r.parameterName=Fi(t),r.type=n,r.transformFlags=1,r}function Te(e,t){const n=k(183);return n.typeName=Fi(e),n.typeArguments=t&&r().parenthesizeTypeArguments(x(t)),n.transformFlags=1,n}function Ce(e,t,n){const r=S(184);return r.typeParameters=Di(e),r.parameters=Di(t),r.type=n,r.transformFlags=1,r.modifiers=void 0,r.jsDoc=void 0,r.locals=void 0,r.nextContainer=void 0,r.typeArguments=void 0,r}function Ne(...e){return 4===e.length?Fe(...e):3===e.length?function(e,t,n){return Fe(void 0,e,t,n)}(...e):un.fail("Incorrect number of arguments specified.")}function Fe(e,t,n,r){const i=S(185);return i.modifiers=Di(e),i.typeParameters=Di(t),i.parameters=Di(n),i.type=r,i.transformFlags=1,i.jsDoc=void 0,i.locals=void 0,i.nextContainer=void 0,i.typeArguments=void 0,i}function Ee(e,t,n,r,i){return e.modifiers!==t||e.typeParameters!==n||e.parameters!==r||e.type!==i?T(Ne(t,n,r,i),e):e}function Pe(e,t){const n=k(186);return n.exprName=e,n.typeArguments=t&&r().parenthesizeTypeArguments(t),n.transformFlags=1,n}function Ae(e){const t=S(187);return t.members=x(e),t.transformFlags=1,t}function Ie(e){const t=k(188);return t.elementType=r().parenthesizeNonArrayTypeOfPostfixType(e),t.transformFlags=1,t}function Oe(e){const t=k(189);return t.elements=x(r().parenthesizeElementTypesOfTupleType(e)),t.transformFlags=1,t}function Le(e,t,n,r){const i=S(202);return i.dotDotDotToken=e,i.name=t,i.questionToken=n,i.type=r,i.transformFlags=1,i.jsDoc=void 0,i}function je(e){const t=k(190);return t.type=r().parenthesizeTypeOfOptionalType(e),t.transformFlags=1,t}function Re(e){const t=k(191);return t.type=e,t.transformFlags=1,t}function Me(e,t,n){const r=k(e);return r.types=b.createNodeArray(n(t)),r.transformFlags=1,r}function Be(e,t,n){return e.types!==t?Ii(Me(e.kind,t,n),e):e}function Je(e,t,n,i){const o=k(194);return o.checkType=r().parenthesizeCheckTypeOfConditionalType(e),o.extendsType=r().parenthesizeExtendsTypeOfConditionalType(t),o.trueType=n,o.falseType=i,o.transformFlags=1,o.locals=void 0,o.nextContainer=void 0,o}function ze(e){const t=k(195);return t.typeParameter=e,t.transformFlags=1,t}function qe(e,t){const n=k(203);return n.head=e,n.templateSpans=x(t),n.transformFlags=1,n}function Ue(e,t,n,i,o=!1){const a=k(205);return a.argument=e,a.attributes=t,a.assertions&&a.assertions.assertClause&&a.attributes&&(a.assertions.assertClause=a.attributes),a.qualifier=n,a.typeArguments=i&&r().parenthesizeTypeArguments(i),a.isTypeOf=o,a.transformFlags=1,a}function Ve(e){const t=k(196);return t.type=e,t.transformFlags=1,t}function We(e,t){const n=k(198);return n.operator=e,n.type=148===e?r().parenthesizeOperandOfReadonlyTypeOperator(t):r().parenthesizeOperandOfTypeOperator(t),n.transformFlags=1,n}function $e(e,t){const n=k(199);return n.objectType=r().parenthesizeNonArrayTypeOfPostfixType(e),n.indexType=t,n.transformFlags=1,n}function He(e,t,n,r,i,o){const a=S(200);return a.readonlyToken=e,a.typeParameter=t,a.nameType=n,a.questionToken=r,a.type=i,a.members=o&&x(o),a.transformFlags=1,a.locals=void 0,a.nextContainer=void 0,a}function Ke(e){const t=k(201);return t.literal=e,t.transformFlags=1,t}function Ge(e){const t=k(206);return t.elements=x(e),t.transformFlags|=525312|WC(t.elements),32768&t.transformFlags&&(t.transformFlags|=65664),t}function Xe(e){const t=k(207);return t.elements=x(e),t.transformFlags|=525312|WC(t.elements),t}function Ye(e,t,n,r){const i=S(208);return i.dotDotDotToken=e,i.propertyName=Fi(t),i.name=Fi(n),i.initializer=Pi(r),i.transformFlags|=VC(i.dotDotDotToken)|qC(i.propertyName)|qC(i.name)|VC(i.initializer)|(i.dotDotDotToken?32768:0)|1024,i.flowNode=void 0,i}function Ze(e,t){const n=k(209),i=e&&ye(e),o=x(e,!(!i||!fF(i))||void 0);return n.elements=r().parenthesizeExpressionsOfCommaDelimitedList(o),n.multiLine=t,n.transformFlags|=WC(n.elements),n}function et(e,t){const n=S(210);return n.properties=x(e),n.multiLine=t,n.transformFlags|=WC(n.properties),n.jsDoc=void 0,n}function tt(e,t,n){const r=S(211);return r.expression=e,r.questionDotToken=t,r.name=n,r.transformFlags=VC(r.expression)|VC(r.questionDotToken)|(zN(r.name)?UC(r.name):536870912|VC(r.name)),r.jsDoc=void 0,r.flowNode=void 0,r}function rt(e,t){const n=tt(r().parenthesizeLeftSideOfAccess(e,!1),void 0,Fi(t));return ZN(e)&&(n.transformFlags|=384),n}function it(e,t,n){const i=tt(r().parenthesizeLeftSideOfAccess(e,!0),t,Fi(n));return i.flags|=64,i.transformFlags|=32,i}function at(e,t,n,r){return un.assert(!!(64&e.flags),"Cannot update a PropertyAccessExpression using updatePropertyAccessChain. Use updatePropertyAccess instead."),e.expression!==t||e.questionDotToken!==n||e.name!==r?Ii(it(t,n,r),e):e}function ct(e,t,n){const r=S(212);return r.expression=e,r.questionDotToken=t,r.argumentExpression=n,r.transformFlags|=VC(r.expression)|VC(r.questionDotToken)|VC(r.argumentExpression),r.jsDoc=void 0,r.flowNode=void 0,r}function lt(e,t){const n=ct(r().parenthesizeLeftSideOfAccess(e,!1),void 0,Ei(t));return ZN(e)&&(n.transformFlags|=384),n}function _t(e,t,n){const i=ct(r().parenthesizeLeftSideOfAccess(e,!0),t,Ei(n));return i.flags|=64,i.transformFlags|=32,i}function ut(e,t,n,r){return un.assert(!!(64&e.flags),"Cannot update a ElementAccessExpression using updateElementAccessChain. Use updateElementAccess instead."),e.expression!==t||e.questionDotToken!==n||e.argumentExpression!==r?Ii(_t(t,n,r),e):e}function ft(e,t,n,r){const i=S(213);return i.expression=e,i.questionDotToken=t,i.typeArguments=n,i.arguments=r,i.transformFlags|=VC(i.expression)|VC(i.questionDotToken)|WC(i.typeArguments)|WC(i.arguments),i.typeArguments&&(i.transformFlags|=1),om(i.expression)&&(i.transformFlags|=16384),i}function mt(e,t,n){const i=ft(r().parenthesizeLeftSideOfAccess(e,!1),void 0,Di(t),r().parenthesizeExpressionsOfCommaDelimitedList(x(n)));return eD(i.expression)&&(i.transformFlags|=8388608),i}function gt(e,t,n,i){const o=ft(r().parenthesizeLeftSideOfAccess(e,!0),t,Di(n),r().parenthesizeExpressionsOfCommaDelimitedList(x(i)));return o.flags|=64,o.transformFlags|=32,o}function ht(e,t,n,r,i){return un.assert(!!(64&e.flags),"Cannot update a CallExpression using updateCallChain. Use updateCall instead."),e.expression!==t||e.questionDotToken!==n||e.typeArguments!==r||e.arguments!==i?Ii(gt(t,n,r,i),e):e}function yt(e,t,n){const i=S(214);return i.expression=r().parenthesizeExpressionOfNew(e),i.typeArguments=Di(t),i.arguments=n?r().parenthesizeExpressionsOfCommaDelimitedList(n):void 0,i.transformFlags|=VC(i.expression)|WC(i.typeArguments)|WC(i.arguments)|32,i.typeArguments&&(i.transformFlags|=1),i}function vt(e,t,n){const i=k(215);return i.tag=r().parenthesizeLeftSideOfAccess(e,!1),i.typeArguments=Di(t),i.template=n,i.transformFlags|=VC(i.tag)|WC(i.typeArguments)|VC(i.template)|1024,i.typeArguments&&(i.transformFlags|=1),py(i.template)&&(i.transformFlags|=128),i}function bt(e,t){const n=k(216);return n.expression=r().parenthesizeOperandOfPrefixUnary(t),n.type=e,n.transformFlags|=VC(n.expression)|VC(n.type)|1,n}function xt(e,t,n){return e.type!==t||e.expression!==n?Ii(bt(t,n),e):e}function kt(e){const t=k(217);return t.expression=e,t.transformFlags=VC(t.expression),t.jsDoc=void 0,t}function St(e,t){return e.expression!==t?Ii(kt(t),e):e}function Tt(e,t,n,r,i,o,a){const s=S(218);s.modifiers=Di(e),s.asteriskToken=t,s.name=Fi(n),s.typeParameters=Di(r),s.parameters=x(i),s.type=o,s.body=a;const c=1024&Wv(s.modifiers),l=!!s.asteriskToken,_=c&&l;return s.transformFlags=WC(s.modifiers)|VC(s.asteriskToken)|qC(s.name)|WC(s.typeParameters)|WC(s.parameters)|VC(s.type)|-67108865&VC(s.body)|(_?128:c?256:l?2048:0)|(s.typeParameters||s.type?1:0)|4194304,s.typeArguments=void 0,s.jsDoc=void 0,s.locals=void 0,s.nextContainer=void 0,s.flowNode=void 0,s.endFlowNode=void 0,s.returnFlowNode=void 0,s}function Ct(e,t,n,r,i,o,a,s){return e.name!==r||e.modifiers!==t||e.asteriskToken!==n||e.typeParameters!==i||e.parameters!==o||e.type!==a||e.body!==s?T(Tt(t,n,r,i,o,a,s),e):e}function wt(e,t,n,i,o,a){const s=S(219);s.modifiers=Di(e),s.typeParameters=Di(t),s.parameters=x(n),s.type=i,s.equalsGreaterThanToken=o??B(39),s.body=r().parenthesizeConciseBodyOfArrowFunction(a);const c=1024&Wv(s.modifiers);return s.transformFlags=WC(s.modifiers)|WC(s.typeParameters)|WC(s.parameters)|VC(s.type)|VC(s.equalsGreaterThanToken)|-67108865&VC(s.body)|(s.typeParameters||s.type?1:0)|(c?16640:0)|1024,s.typeArguments=void 0,s.jsDoc=void 0,s.locals=void 0,s.nextContainer=void 0,s.flowNode=void 0,s.endFlowNode=void 0,s.returnFlowNode=void 0,s}function Nt(e,t,n,r,i,o,a){return e.modifiers!==t||e.typeParameters!==n||e.parameters!==r||e.type!==i||e.equalsGreaterThanToken!==o||e.body!==a?T(wt(t,n,r,i,o,a),e):e}function Dt(e){const t=k(220);return t.expression=r().parenthesizeOperandOfPrefixUnary(e),t.transformFlags|=VC(t.expression),t}function Ft(e){const t=k(221);return t.expression=r().parenthesizeOperandOfPrefixUnary(e),t.transformFlags|=VC(t.expression),t}function Et(e){const t=k(222);return t.expression=r().parenthesizeOperandOfPrefixUnary(e),t.transformFlags|=VC(t.expression),t}function Pt(e){const t=k(223);return t.expression=r().parenthesizeOperandOfPrefixUnary(e),t.transformFlags|=2097536|VC(t.expression),t}function At(e,t){const n=k(224);return n.operator=e,n.operand=r().parenthesizeOperandOfPrefixUnary(t),n.transformFlags|=VC(n.operand),46!==e&&47!==e||!zN(n.operand)||Vl(n.operand)||YP(n.operand)||(n.transformFlags|=268435456),n}function It(e,t){const n=k(225);return n.operator=t,n.operand=r().parenthesizeOperandOfPostfixUnary(e),n.transformFlags|=VC(n.operand),!zN(n.operand)||Vl(n.operand)||YP(n.operand)||(n.transformFlags|=268435456),n}function Ot(e,t,n){const i=S(226),o="number"==typeof(a=t)?B(a):a;var a;const s=o.kind;return i.left=r().parenthesizeLeftSideOfBinary(s,e),i.operatorToken=o,i.right=r().parenthesizeRightSideOfBinary(s,i.left,n),i.transformFlags|=VC(i.left)|VC(i.operatorToken)|VC(i.right),61===s?i.transformFlags|=32:64===s?$D(i.left)?i.transformFlags|=5248|Lt(i.left):WD(i.left)&&(i.transformFlags|=5120|Lt(i.left)):43===s||68===s?i.transformFlags|=512:Gv(s)&&(i.transformFlags|=16),103===s&&qN(i.left)&&(i.transformFlags|=536870912),i.jsDoc=void 0,i}function Lt(e){return tI(e)?65536:0}function jt(e,t,n,i,o){const a=k(227);return a.condition=r().parenthesizeConditionOfConditionalExpression(e),a.questionToken=t??B(58),a.whenTrue=r().parenthesizeBranchOfConditionalExpression(n),a.colonToken=i??B(59),a.whenFalse=r().parenthesizeBranchOfConditionalExpression(o),a.transformFlags|=VC(a.condition)|VC(a.questionToken)|VC(a.whenTrue)|VC(a.colonToken)|VC(a.whenFalse),a}function Rt(e,t){const n=k(228);return n.head=e,n.templateSpans=x(t),n.transformFlags|=VC(n.head)|WC(n.templateSpans)|1024,n}function Mt(e,t,n,r=0){let i;if(un.assert(!(-7177&r),"Unsupported template flags."),void 0!==n&&n!==t&&(i=function(e,t){switch(IC||(IC=ms(99,!1,0)),e){case 15:IC.setText("`"+t+"`");break;case 16:IC.setText("`"+t+"${");break;case 17:IC.setText("}"+t+"${");break;case 18:IC.setText("}"+t+"`")}let n,r=IC.scan();if(20===r&&(r=IC.reScanTemplateToken(!1)),IC.isUnterminated())return IC.setText(void 0),zC;switch(r){case 15:case 16:case 17:case 18:n=IC.getTokenValue()}return void 0===n||1!==IC.scan()?(IC.setText(void 0),zC):(IC.setText(void 0),n)}(e,n),"object"==typeof i))return un.fail("Invalid raw text");if(void 0===t){if(void 0===i)return un.fail("Arguments 'text' and 'rawText' may not both be undefined.");t=i}else void 0!==i&&un.assert(t===i,"Expected argument 'text' to be the normalized (i.e. 'cooked') version of argument 'rawText'.");return t}function Bt(e){let t=1024;return e&&(t|=128),t}function Jt(e,t,n,r){const i=S(e);return i.text=t,i.rawText=n,i.templateFlags=7176&r,i.transformFlags=Bt(i.templateFlags),i}function zt(e,t,n,r){return 15===e?Jt(e,t,n,r):function(e,t,n,r){const i=M(e);return i.text=t,i.rawText=n,i.templateFlags=7176&r,i.transformFlags=Bt(i.templateFlags),i}(e,t,n,r)}function qt(e,t){un.assert(!e||!!t,"A `YieldExpression` with an asteriskToken must have an expression.");const n=k(229);return n.expression=t&&r().parenthesizeExpressionForDisallowedComma(t),n.asteriskToken=e,n.transformFlags|=VC(n.expression)|VC(n.asteriskToken)|1049728,n}function Ut(e){const t=k(230);return t.expression=r().parenthesizeExpressionForDisallowedComma(e),t.transformFlags|=33792|VC(t.expression),t}function Vt(e,t,n,r,i){const o=S(231);return o.modifiers=Di(e),o.name=Fi(t),o.typeParameters=Di(n),o.heritageClauses=Di(r),o.members=x(i),o.transformFlags|=WC(o.modifiers)|qC(o.name)|WC(o.typeParameters)|WC(o.heritageClauses)|WC(o.members)|(o.typeParameters?1:0)|1024,o.jsDoc=void 0,o}function Wt(e,t,n,r,i,o){return e.modifiers!==t||e.name!==n||e.typeParameters!==r||e.heritageClauses!==i||e.members!==o?Ii(Vt(t,n,r,i,o),e):e}function $t(e,t){const n=k(233);return n.expression=r().parenthesizeLeftSideOfAccess(e,!1),n.typeArguments=t&&r().parenthesizeTypeArguments(t),n.transformFlags|=VC(n.expression)|WC(n.typeArguments)|1024,n}function Ht(e,t,n){return e.expression!==t||e.typeArguments!==n?Ii($t(t,n),e):e}function Kt(e,t){const n=k(234);return n.expression=e,n.type=t,n.transformFlags|=VC(n.expression)|VC(n.type)|1,n}function Xt(e,t,n){return e.expression!==t||e.type!==n?Ii(Kt(t,n),e):e}function Qt(e){const t=k(235);return t.expression=r().parenthesizeLeftSideOfAccess(e,!1),t.transformFlags|=1|VC(t.expression),t}function Yt(e,t){return Sl(e)?nn(e,t):e.expression!==t?Ii(Qt(t),e):e}function Zt(e,t){const n=k(238);return n.expression=e,n.type=t,n.transformFlags|=VC(n.expression)|VC(n.type)|1,n}function en(e,t,n){return e.expression!==t||e.type!==n?Ii(Zt(t,n),e):e}function tn(e){const t=k(235);return t.flags|=64,t.expression=r().parenthesizeLeftSideOfAccess(e,!0),t.transformFlags|=1|VC(t.expression),t}function nn(e,t){return un.assert(!!(64&e.flags),"Cannot update a NonNullExpression using updateNonNullChain. Use updateNonNullExpression instead."),e.expression!==t?Ii(tn(t),e):e}function rn(e,t){const n=k(236);switch(n.keywordToken=e,n.name=t,n.transformFlags|=VC(n.name),e){case 105:n.transformFlags|=1024;break;case 102:n.transformFlags|=32;break;default:return un.assertNever(e)}return n.flowNode=void 0,n}function on(e,t){const n=k(239);return n.expression=e,n.literal=t,n.transformFlags|=VC(n.expression)|VC(n.literal)|1024,n}function an(e,t){const n=k(241);return n.statements=x(e),n.multiLine=t,n.transformFlags|=WC(n.statements),n.jsDoc=void 0,n.locals=void 0,n.nextContainer=void 0,n}function sn(e,t){const n=k(243);return n.modifiers=Di(e),n.declarationList=Qe(t)?Dn(t):t,n.transformFlags|=WC(n.modifiers)|VC(n.declarationList),128&Wv(n.modifiers)&&(n.transformFlags=1),n.jsDoc=void 0,n.flowNode=void 0,n}function cn(e,t,n){return e.modifiers!==t||e.declarationList!==n?Ii(sn(t,n),e):e}function ln(){const e=k(242);return e.jsDoc=void 0,e}function _n(e){const t=k(244);return t.expression=r().parenthesizeExpressionOfExpressionStatement(e),t.transformFlags|=VC(t.expression),t.jsDoc=void 0,t.flowNode=void 0,t}function dn(e,t,n){const r=k(245);return r.expression=e,r.thenStatement=Ai(t),r.elseStatement=Ai(n),r.transformFlags|=VC(r.expression)|VC(r.thenStatement)|VC(r.elseStatement),r.jsDoc=void 0,r.flowNode=void 0,r}function pn(e,t){const n=k(246);return n.statement=Ai(e),n.expression=t,n.transformFlags|=VC(n.statement)|VC(n.expression),n.jsDoc=void 0,n.flowNode=void 0,n}function fn(e,t){const n=k(247);return n.expression=e,n.statement=Ai(t),n.transformFlags|=VC(n.expression)|VC(n.statement),n.jsDoc=void 0,n.flowNode=void 0,n}function mn(e,t,n,r){const i=k(248);return i.initializer=e,i.condition=t,i.incrementor=n,i.statement=Ai(r),i.transformFlags|=VC(i.initializer)|VC(i.condition)|VC(i.incrementor)|VC(i.statement),i.jsDoc=void 0,i.locals=void 0,i.nextContainer=void 0,i.flowNode=void 0,i}function gn(e,t,n){const r=k(249);return r.initializer=e,r.expression=t,r.statement=Ai(n),r.transformFlags|=VC(r.initializer)|VC(r.expression)|VC(r.statement),r.jsDoc=void 0,r.locals=void 0,r.nextContainer=void 0,r.flowNode=void 0,r}function hn(e,t,n,i){const o=k(250);return o.awaitModifier=e,o.initializer=t,o.expression=r().parenthesizeExpressionForDisallowedComma(n),o.statement=Ai(i),o.transformFlags|=VC(o.awaitModifier)|VC(o.initializer)|VC(o.expression)|VC(o.statement)|1024,e&&(o.transformFlags|=128),o.jsDoc=void 0,o.locals=void 0,o.nextContainer=void 0,o.flowNode=void 0,o}function yn(e){const t=k(251);return t.label=Fi(e),t.transformFlags|=4194304|VC(t.label),t.jsDoc=void 0,t.flowNode=void 0,t}function vn(e){const t=k(252);return t.label=Fi(e),t.transformFlags|=4194304|VC(t.label),t.jsDoc=void 0,t.flowNode=void 0,t}function bn(e){const t=k(253);return t.expression=e,t.transformFlags|=4194432|VC(t.expression),t.jsDoc=void 0,t.flowNode=void 0,t}function xn(e,t){const n=k(254);return n.expression=e,n.statement=Ai(t),n.transformFlags|=VC(n.expression)|VC(n.statement),n.jsDoc=void 0,n.flowNode=void 0,n}function kn(e,t){const n=k(255);return n.expression=r().parenthesizeExpressionForDisallowedComma(e),n.caseBlock=t,n.transformFlags|=VC(n.expression)|VC(n.caseBlock),n.jsDoc=void 0,n.flowNode=void 0,n.possiblyExhaustive=!1,n}function Sn(e,t){const n=k(256);return n.label=Fi(e),n.statement=Ai(t),n.transformFlags|=VC(n.label)|VC(n.statement),n.jsDoc=void 0,n.flowNode=void 0,n}function Tn(e,t,n){return e.label!==t||e.statement!==n?Ii(Sn(t,n),e):e}function Cn(e){const t=k(257);return t.expression=e,t.transformFlags|=VC(t.expression),t.jsDoc=void 0,t.flowNode=void 0,t}function wn(e,t,n){const r=k(258);return r.tryBlock=e,r.catchClause=t,r.finallyBlock=n,r.transformFlags|=VC(r.tryBlock)|VC(r.catchClause)|VC(r.finallyBlock),r.jsDoc=void 0,r.flowNode=void 0,r}function Nn(e,t,n,r){const i=S(260);return i.name=Fi(e),i.exclamationToken=t,i.type=n,i.initializer=Pi(r),i.transformFlags|=qC(i.name)|VC(i.initializer)|(i.exclamationToken??i.type?1:0),i.jsDoc=void 0,i}function Dn(e,t=0){const n=k(261);return n.flags|=7&t,n.declarations=x(e),n.transformFlags|=4194304|WC(n.declarations),7&t&&(n.transformFlags|=263168),4&t&&(n.transformFlags|=4),n}function Fn(e,t,n,r,i,o,a){const s=S(262);if(s.modifiers=Di(e),s.asteriskToken=t,s.name=Fi(n),s.typeParameters=Di(r),s.parameters=x(i),s.type=o,s.body=a,!s.body||128&Wv(s.modifiers))s.transformFlags=1;else{const e=1024&Wv(s.modifiers),t=!!s.asteriskToken,n=e&&t;s.transformFlags=WC(s.modifiers)|VC(s.asteriskToken)|qC(s.name)|WC(s.typeParameters)|WC(s.parameters)|VC(s.type)|-67108865&VC(s.body)|(n?128:e?256:t?2048:0)|(s.typeParameters||s.type?1:0)|4194304}return s.typeArguments=void 0,s.jsDoc=void 0,s.locals=void 0,s.nextContainer=void 0,s.endFlowNode=void 0,s.returnFlowNode=void 0,s}function En(e,t,n,r,i,o,a,s){return e.modifiers!==t||e.asteriskToken!==n||e.name!==r||e.typeParameters!==i||e.parameters!==o||e.type!==a||e.body!==s?((c=Fn(t,n,r,i,o,a,s))!==(l=e)&&c.modifiers===l.modifiers&&(c.modifiers=l.modifiers),T(c,l)):e;var c,l}function Pn(e,t,n,r,i){const o=S(263);return o.modifiers=Di(e),o.name=Fi(t),o.typeParameters=Di(n),o.heritageClauses=Di(r),o.members=x(i),128&Wv(o.modifiers)?o.transformFlags=1:(o.transformFlags|=WC(o.modifiers)|qC(o.name)|WC(o.typeParameters)|WC(o.heritageClauses)|WC(o.members)|(o.typeParameters?1:0)|1024,8192&o.transformFlags&&(o.transformFlags|=1)),o.jsDoc=void 0,o}function An(e,t,n,r,i,o){return e.modifiers!==t||e.name!==n||e.typeParameters!==r||e.heritageClauses!==i||e.members!==o?Ii(Pn(t,n,r,i,o),e):e}function In(e,t,n,r,i){const o=S(264);return o.modifiers=Di(e),o.name=Fi(t),o.typeParameters=Di(n),o.heritageClauses=Di(r),o.members=x(i),o.transformFlags=1,o.jsDoc=void 0,o}function On(e,t,n,r,i,o){return e.modifiers!==t||e.name!==n||e.typeParameters!==r||e.heritageClauses!==i||e.members!==o?Ii(In(t,n,r,i,o),e):e}function Ln(e,t,n,r){const i=S(265);return i.modifiers=Di(e),i.name=Fi(t),i.typeParameters=Di(n),i.type=r,i.transformFlags=1,i.jsDoc=void 0,i.locals=void 0,i.nextContainer=void 0,i}function jn(e,t,n,r,i){return e.modifiers!==t||e.name!==n||e.typeParameters!==r||e.type!==i?Ii(Ln(t,n,r,i),e):e}function Rn(e,t,n){const r=S(266);return r.modifiers=Di(e),r.name=Fi(t),r.members=x(n),r.transformFlags|=WC(r.modifiers)|VC(r.name)|WC(r.members)|1,r.transformFlags&=-67108865,r.jsDoc=void 0,r}function Mn(e,t,n,r){return e.modifiers!==t||e.name!==n||e.members!==r?Ii(Rn(t,n,r),e):e}function Bn(e,t,n,r=0){const i=S(267);return i.modifiers=Di(e),i.flags|=2088&r,i.name=t,i.body=n,128&Wv(i.modifiers)?i.transformFlags=1:i.transformFlags|=WC(i.modifiers)|VC(i.name)|VC(i.body)|1,i.transformFlags&=-67108865,i.jsDoc=void 0,i.locals=void 0,i.nextContainer=void 0,i}function Jn(e,t,n,r){return e.modifiers!==t||e.name!==n||e.body!==r?Ii(Bn(t,n,r,e.flags),e):e}function zn(e){const t=k(268);return t.statements=x(e),t.transformFlags|=WC(t.statements),t.jsDoc=void 0,t}function qn(e){const t=k(269);return t.clauses=x(e),t.transformFlags|=WC(t.clauses),t.locals=void 0,t.nextContainer=void 0,t}function Un(e){const t=S(270);return t.name=Fi(e),t.transformFlags|=1|UC(t.name),t.modifiers=void 0,t.jsDoc=void 0,t}function Vn(e,t,n,r){const i=S(271);return i.modifiers=Di(e),i.name=Fi(n),i.isTypeOnly=t,i.moduleReference=r,i.transformFlags|=WC(i.modifiers)|UC(i.name)|VC(i.moduleReference),xE(i.moduleReference)||(i.transformFlags|=1),i.transformFlags&=-67108865,i.jsDoc=void 0,i}function Wn(e,t,n,r,i){return e.modifiers!==t||e.isTypeOnly!==n||e.name!==r||e.moduleReference!==i?Ii(Vn(t,n,r,i),e):e}function $n(e,t,n,r){const i=k(272);return i.modifiers=Di(e),i.importClause=t,i.moduleSpecifier=n,i.attributes=i.assertClause=r,i.transformFlags|=VC(i.importClause)|VC(i.moduleSpecifier),i.transformFlags&=-67108865,i.jsDoc=void 0,i}function Hn(e,t,n,r,i){return e.modifiers!==t||e.importClause!==n||e.moduleSpecifier!==r||e.attributes!==i?Ii($n(t,n,r,i),e):e}function Kn(e,t,n){const r=S(273);return r.isTypeOnly=e,r.name=t,r.namedBindings=n,r.transformFlags|=VC(r.name)|VC(r.namedBindings),e&&(r.transformFlags|=1),r.transformFlags&=-67108865,r}function Gn(e,t){const n=k(300);return n.elements=x(e),n.multiLine=t,n.token=132,n.transformFlags|=4,n}function Xn(e,t){const n=k(301);return n.name=e,n.value=t,n.transformFlags|=4,n}function Qn(e,t){const n=k(302);return n.assertClause=e,n.multiLine=t,n}function Yn(e,t,n){const r=k(300);return r.token=n??118,r.elements=x(e),r.multiLine=t,r.transformFlags|=4,r}function Zn(e,t){const n=k(301);return n.name=e,n.value=t,n.transformFlags|=4,n}function er(e){const t=S(274);return t.name=e,t.transformFlags|=VC(t.name),t.transformFlags&=-67108865,t}function tr(e){const t=S(280);return t.name=e,t.transformFlags|=32|VC(t.name),t.transformFlags&=-67108865,t}function nr(e){const t=k(275);return t.elements=x(e),t.transformFlags|=WC(t.elements),t.transformFlags&=-67108865,t}function rr(e,t,n){const r=S(276);return r.isTypeOnly=e,r.propertyName=t,r.name=n,r.transformFlags|=VC(r.propertyName)|VC(r.name),r.transformFlags&=-67108865,r}function ir(e,t,n){const i=S(277);return i.modifiers=Di(e),i.isExportEquals=t,i.expression=t?r().parenthesizeRightSideOfBinary(64,void 0,n):r().parenthesizeExpressionOfExportDefault(n),i.transformFlags|=WC(i.modifiers)|VC(i.expression),i.transformFlags&=-67108865,i.jsDoc=void 0,i}function or(e,t,n){return e.modifiers!==t||e.expression!==n?Ii(ir(t,e.isExportEquals,n),e):e}function ar(e,t,n,r,i){const o=S(278);return o.modifiers=Di(e),o.isTypeOnly=t,o.exportClause=n,o.moduleSpecifier=r,o.attributes=o.assertClause=i,o.transformFlags|=WC(o.modifiers)|VC(o.exportClause)|VC(o.moduleSpecifier),o.transformFlags&=-67108865,o.jsDoc=void 0,o}function sr(e,t,n,r,i,o){return e.modifiers!==t||e.isTypeOnly!==n||e.exportClause!==r||e.moduleSpecifier!==i||e.attributes!==o?((a=ar(t,n,r,i,o))!==(s=e)&&a.modifiers===s.modifiers&&(a.modifiers=s.modifiers),Ii(a,s)):e;var a,s}function cr(e){const t=k(279);return t.elements=x(e),t.transformFlags|=WC(t.elements),t.transformFlags&=-67108865,t}function lr(e,t,n){const r=k(281);return r.isTypeOnly=e,r.propertyName=Fi(t),r.name=Fi(n),r.transformFlags|=VC(r.propertyName)|VC(r.name),r.transformFlags&=-67108865,r.jsDoc=void 0,r}function _r(e){const t=k(283);return t.expression=e,t.transformFlags|=VC(t.expression),t.transformFlags&=-67108865,t}function ur(e,t,n=!1){const i=dr(e,n?t&&r().parenthesizeNonArrayTypeOfPostfixType(t):t);return i.postfix=n,i}function dr(e,t){const n=k(e);return n.type=t,n}function pr(e,t){const n=S(317);return n.parameters=Di(e),n.type=t,n.transformFlags=WC(n.parameters)|(n.type?1:0),n.jsDoc=void 0,n.locals=void 0,n.nextContainer=void 0,n.typeArguments=void 0,n}function fr(e,t=!1){const n=S(322);return n.jsDocPropertyTags=Di(e),n.isArrayType=t,n}function mr(e){const t=k(309);return t.type=e,t}function gr(e,t,n){const r=S(323);return r.typeParameters=Di(e),r.parameters=x(t),r.type=n,r.jsDoc=void 0,r.locals=void 0,r.nextContainer=void 0,r}function hr(e){const t=JC(e.kind);return e.tagName.escapedText===pc(t)?e.tagName:A(t)}function yr(e,t,n){const r=k(e);return r.tagName=t,r.comment=n,r}function vr(e,t,n){const r=S(e);return r.tagName=t,r.comment=n,r}function br(e,t,n,r){const i=yr(345,e??A("template"),r);return i.constraint=t,i.typeParameters=x(n),i}function xr(e,t,n,r){const i=vr(346,e??A("typedef"),r);return i.typeExpression=t,i.fullName=n,i.name=TA(n),i.locals=void 0,i.nextContainer=void 0,i}function kr(e,t,n,r,i,o){const a=vr(341,e??A("param"),o);return a.typeExpression=r,a.name=t,a.isNameFirst=!!i,a.isBracketed=n,a}function Sr(e,t,n,r,i,o){const a=vr(348,e??A("prop"),o);return a.typeExpression=r,a.name=t,a.isNameFirst=!!i,a.isBracketed=n,a}function Tr(e,t,n,r){const i=vr(338,e??A("callback"),r);return i.typeExpression=t,i.fullName=n,i.name=TA(n),i.locals=void 0,i.nextContainer=void 0,i}function Cr(e,t,n){const r=yr(339,e??A("overload"),n);return r.typeExpression=t,r}function wr(e,t,n){const r=yr(328,e??A("augments"),n);return r.class=t,r}function Nr(e,t,n){const r=yr(329,e??A("implements"),n);return r.class=t,r}function Dr(e,t,n){const r=yr(347,e??A("see"),n);return r.name=t,r}function Fr(e){const t=k(310);return t.name=e,t}function Er(e,t){const n=k(311);return n.left=e,n.right=t,n.transformFlags|=VC(n.left)|VC(n.right),n}function Pr(e,t){const n=k(324);return n.name=e,n.text=t,n}function Ar(e,t){const n=k(325);return n.name=e,n.text=t,n}function Ir(e,t){const n=k(326);return n.name=e,n.text=t,n}function Or(e,t,n){return yr(e,t??A(JC(e)),n)}function Lr(e,t,n,r){const i=yr(e,t??A(JC(e)),r);return i.typeExpression=n,i}function jr(e,t){return yr(327,e,t)}function Rr(e,t,n){const r=vr(340,e??A(JC(340)),n);return r.typeExpression=t,r.locals=void 0,r.nextContainer=void 0,r}function Mr(e,t,n,r,i){const o=yr(351,e??A("import"),i);return o.importClause=t,o.moduleSpecifier=n,o.attributes=r,o.comment=i,o}function Br(e){const t=k(321);return t.text=e,t}function Jr(e,t){const n=k(320);return n.comment=e,n.tags=Di(t),n}function zr(e,t,n){const r=k(284);return r.openingElement=e,r.children=x(t),r.closingElement=n,r.transformFlags|=VC(r.openingElement)|WC(r.children)|VC(r.closingElement)|2,r}function qr(e,t,n){const r=k(285);return r.tagName=e,r.typeArguments=Di(t),r.attributes=n,r.transformFlags|=VC(r.tagName)|WC(r.typeArguments)|VC(r.attributes)|2,r.typeArguments&&(r.transformFlags|=1),r}function Ur(e,t,n){const r=k(286);return r.tagName=e,r.typeArguments=Di(t),r.attributes=n,r.transformFlags|=VC(r.tagName)|WC(r.typeArguments)|VC(r.attributes)|2,t&&(r.transformFlags|=1),r}function Vr(e){const t=k(287);return t.tagName=e,t.transformFlags|=2|VC(t.tagName),t}function Wr(e,t,n){const r=k(288);return r.openingFragment=e,r.children=x(t),r.closingFragment=n,r.transformFlags|=VC(r.openingFragment)|WC(r.children)|VC(r.closingFragment)|2,r}function $r(e,t){const n=k(12);return n.text=e,n.containsOnlyTriviaWhiteSpaces=!!t,n.transformFlags|=2,n}function Hr(e,t){const n=S(291);return n.name=e,n.initializer=t,n.transformFlags|=VC(n.name)|VC(n.initializer)|2,n}function Kr(e){const t=S(292);return t.properties=x(e),t.transformFlags|=2|WC(t.properties),t}function Gr(e){const t=k(293);return t.expression=e,t.transformFlags|=2|VC(t.expression),t}function Xr(e,t){const n=k(294);return n.dotDotDotToken=e,n.expression=t,n.transformFlags|=VC(n.dotDotDotToken)|VC(n.expression)|2,n}function Qr(e,t){const n=k(295);return n.namespace=e,n.name=t,n.transformFlags|=VC(n.namespace)|VC(n.name)|2,n}function Yr(e,t){const n=k(296);return n.expression=r().parenthesizeExpressionForDisallowedComma(e),n.statements=x(t),n.transformFlags|=VC(n.expression)|WC(n.statements),n.jsDoc=void 0,n}function Zr(e){const t=k(297);return t.statements=x(e),t.transformFlags=WC(t.statements),t}function ei(e,t){const n=k(298);switch(n.token=e,n.types=x(t),n.transformFlags|=WC(n.types),e){case 96:n.transformFlags|=1024;break;case 119:n.transformFlags|=1;break;default:return un.assertNever(e)}return n}function ti(e,t){const n=k(299);return n.variableDeclaration=function(e){return"string"==typeof e||e&&!VF(e)?Nn(e,void 0,void 0,void 0):e}(e),n.block=t,n.transformFlags|=VC(n.variableDeclaration)|VC(n.block)|(e?0:64),n.locals=void 0,n.nextContainer=void 0,n}function ni(e,t){const n=S(303);return n.name=Fi(e),n.initializer=r().parenthesizeExpressionForDisallowedComma(t),n.transformFlags|=qC(n.name)|VC(n.initializer),n.modifiers=void 0,n.questionToken=void 0,n.exclamationToken=void 0,n.jsDoc=void 0,n}function ri(e,t,n){return e.name!==t||e.initializer!==n?((r=ni(t,n))!==(i=e)&&(r.modifiers=i.modifiers,r.questionToken=i.questionToken,r.exclamationToken=i.exclamationToken),Ii(r,i)):e;var r,i}function ii(e,t){const n=S(304);return n.name=Fi(e),n.objectAssignmentInitializer=t&&r().parenthesizeExpressionForDisallowedComma(t),n.transformFlags|=UC(n.name)|VC(n.objectAssignmentInitializer)|1024,n.equalsToken=void 0,n.modifiers=void 0,n.questionToken=void 0,n.exclamationToken=void 0,n.jsDoc=void 0,n}function oi(e){const t=S(305);return t.expression=r().parenthesizeExpressionForDisallowedComma(e),t.transformFlags|=65664|VC(t.expression),t.jsDoc=void 0,t}function ai(e,t){const n=S(306);return n.name=Fi(e),n.initializer=t&&r().parenthesizeExpressionForDisallowedComma(t),n.transformFlags|=VC(n.name)|VC(n.initializer)|1,n.jsDoc=void 0,n}function si(e){const t=Object.create(e.redirectTarget);return Object.defineProperties(t,{id:{get(){return this.redirectInfo.redirectTarget.id},set(e){this.redirectInfo.redirectTarget.id=e}},symbol:{get(){return this.redirectInfo.redirectTarget.symbol},set(e){this.redirectInfo.redirectTarget.symbol=e}}}),t.redirectInfo=e,t}function ci(e){const r=e.redirectInfo?function(e){const t=si(e.redirectInfo);return t.flags|=-17&e.flags,t.fileName=e.fileName,t.path=e.path,t.resolvedPath=e.resolvedPath,t.originalFileName=e.originalFileName,t.packageJsonLocations=e.packageJsonLocations,t.packageJsonScope=e.packageJsonScope,t.emitNode=void 0,t}(e):function(e){const n=t.createBaseSourceFileNode(307);n.flags|=-17&e.flags;for(const t in e)!De(n,t)&&De(e,t)&&("emitNode"!==t?n[t]=e[t]:n.emitNode=void 0);return n}(e);return n(r,e),r}function li(e){const t=k(308);return t.sourceFiles=e,t.syntheticFileReferences=void 0,t.syntheticTypeReferences=void 0,t.syntheticLibReferences=void 0,t.hasNoDefaultLib=void 0,t}function _i(e,t){const n=k(355);return n.expression=e,n.original=t,n.transformFlags|=1|VC(n.expression),nI(n,t),n}function ui(e,t){return e.expression!==t?Ii(_i(t,e.original),e):e}function di(e){if(Zh(e)&&!uc(e)&&!e.original&&!e.emitNode&&!e.id){if(kF(e))return e.elements;if(cF(e)&&AN(e.operatorToken))return[e.left,e.right]}return e}function pi(e){const t=k(356);return t.elements=x(R(e,di)),t.transformFlags|=WC(t.elements),t}function fi(e,t){const n=k(357);return n.expression=e,n.thisArg=t,n.transformFlags|=VC(n.expression)|VC(n.thisArg),n}function mi(e){if(void 0===e)return e;if(qE(e))return ci(e);if(Vl(e))return function(e){const t=E(e.escapedText);return t.flags|=-17&e.flags,t.transformFlags=e.transformFlags,n(t,e),Lw(t,{...e.emitNode.autoGenerate}),t}(e);if(zN(e))return function(e){const t=E(e.escapedText);t.flags|=-17&e.flags,t.jsDoc=e.jsDoc,t.flowNode=e.flowNode,t.symbol=e.symbol,t.transformFlags=e.transformFlags,n(t,e);const r=Ow(e);return r&&Iw(t,r),t}(e);if(Wl(e))return function(e){const t=L(e.escapedText);return t.flags|=-17&e.flags,t.transformFlags=e.transformFlags,n(t,e),Lw(t,{...e.emitNode.autoGenerate}),t}(e);if(qN(e))return function(e){const t=L(e.escapedText);return t.flags|=-17&e.flags,t.transformFlags=e.transformFlags,n(t,e),t}(e);const r=Nl(e.kind)?t.createBaseNode(e.kind):t.createBaseTokenNode(e.kind);r.flags|=-17&e.flags,r.transformFlags=e.transformFlags,n(r,e);for(const t in e)!De(r,t)&&De(e,t)&&(r[t]=e[t]);return r}function gi(){return Et(C("0"))}function hi(e,t,n){return ml(e)?gt(it(e,void 0,t),void 0,void 0,n):mt(rt(e,t),void 0,n)}function yi(e,t,n){return hi(A(e),t,n)}function vi(e,t,n){return!!n&&(e.push(ni(t,n)),!0)}function bi(e,t){const n=oh(e);switch(n.kind){case 80:return t;case 110:case 9:case 10:case 11:return!1;case 209:return 0!==n.elements.length;case 210:return n.properties.length>0;default:return!0}}function xi(e,t,n,r=0,i){const o=i?e&&Sc(e):Tc(e);if(o&&zN(o)&&!Vl(o)){const e=wT(nI(mi(o),o),o.parent);return r|=Qd(o),n||(r|=96),t||(r|=3072),r&&nw(e,r),e}return O(e)}function ki(e,t,n){return xi(e,t,n,16384)}function Si(e,t,n,r){const i=rt(e,Zh(t)?t:mi(t));nI(i,t);let o=0;return r||(o|=96),n||(o|=3072),o&&nw(i,o),i}function Ti(){return _A(_n(D("use strict")))}function Ci(e,t,n=0,r){un.assert(0===t.length,"Prologue directives should be at the first statement in the target statements array");let i=!1;const o=e.length;for(;n=182&&e<=205)return-2;switch(e){case 213:case 214:case 209:case 206:case 207:return-2147450880;case 267:return-1941676032;case 169:case 216:case 238:case 234:case 355:case 217:case 108:case 211:case 212:default:return-2147483648;case 219:return-2072174592;case 218:case 262:return-1937940480;case 261:return-2146893824;case 263:case 231:return-2147344384;case 176:return-1937948672;case 172:return-2013249536;case 174:case 177:case 178:return-2005057536;case 133:case 150:case 163:case 146:case 154:case 151:case 136:case 155:case 116:case 168:case 171:case 173:case 179:case 180:case 181:case 264:case 265:return-2;case 210:return-2147278848;case 299:return-2147418112}}(e.kind);return kc(e)&&e_(e.name)?t|134234112&e.name.transformFlags:t}function WC(e){return e?e.transformFlags:0}function $C(e){let t=0;for(const n of e)t|=VC(n);e.transformFlags=t}var HC=FC();function KC(e){return e.flags|=16,e}var GC,XC=BC(4,{createBaseSourceFileNode:e=>KC(HC.createBaseSourceFileNode(e)),createBaseIdentifierNode:e=>KC(HC.createBaseIdentifierNode(e)),createBasePrivateIdentifierNode:e=>KC(HC.createBasePrivateIdentifierNode(e)),createBaseTokenNode:e=>KC(HC.createBaseTokenNode(e)),createBaseNode:e=>KC(HC.createBaseNode(e))});function QC(e,t,n){return new(GC||(GC=jx.getSourceMapSourceConstructor()))(e,t,n)}function YC(e,t){if(e.original!==t&&(e.original=t,t)){const n=t.emitNode;n&&(e.emitNode=function(e,t){const{flags:n,internalFlags:r,leadingComments:i,trailingComments:o,commentRange:a,sourceMapRange:s,tokenSourceMapRanges:c,constantValue:l,helpers:_,startsOnNewLine:u,snippetElement:d,classThis:p,assignedName:f}=e;if(t||(t={}),n&&(t.flags=n),r&&(t.internalFlags=-9&r),i&&(t.leadingComments=se(i.slice(),t.leadingComments)),o&&(t.trailingComments=se(o.slice(),t.trailingComments)),a&&(t.commentRange=a),s&&(t.sourceMapRange=s),c&&(t.tokenSourceMapRanges=function(e,t){t||(t=[]);for(const n in e)t[n]=e[n];return t}(c,t.tokenSourceMapRanges)),void 0!==l&&(t.constantValue=l),_)for(const e of _)t.helpers=le(t.helpers,e);return void 0!==u&&(t.startsOnNewLine=u),void 0!==d&&(t.snippetElement=d),p&&(t.classThis=p),f&&(t.assignedName=f),t}(n,e.emitNode))}return e}function ZC(e){if(e.emitNode)un.assert(!(8&e.emitNode.internalFlags),"Invalid attempt to mutate an immutable node.");else{if(uc(e)){if(307===e.kind)return e.emitNode={annotatedNodes:[e]};ZC(hd(dc(hd(e)))??un.fail("Could not determine parsed source file.")).annotatedNodes.push(e)}e.emitNode={}}return e.emitNode}function ew(e){var t,n;const r=null==(n=null==(t=hd(dc(e)))?void 0:t.emitNode)?void 0:n.annotatedNodes;if(r)for(const e of r)e.emitNode=void 0}function tw(e){const t=ZC(e);return t.flags|=3072,t.leadingComments=void 0,t.trailingComments=void 0,e}function nw(e,t){return ZC(e).flags=t,e}function rw(e,t){const n=ZC(e);return n.flags=n.flags|t,e}function iw(e,t){return ZC(e).internalFlags=t,e}function ow(e,t){const n=ZC(e);return n.internalFlags=n.internalFlags|t,e}function aw(e){var t;return(null==(t=e.emitNode)?void 0:t.sourceMapRange)??e}function sw(e,t){return ZC(e).sourceMapRange=t,e}function cw(e,t){var n,r;return null==(r=null==(n=e.emitNode)?void 0:n.tokenSourceMapRanges)?void 0:r[t]}function lw(e,t,n){const r=ZC(e);return(r.tokenSourceMapRanges??(r.tokenSourceMapRanges=[]))[t]=n,e}function _w(e){var t;return null==(t=e.emitNode)?void 0:t.startsOnNewLine}function uw(e,t){return ZC(e).startsOnNewLine=t,e}function dw(e){var t;return(null==(t=e.emitNode)?void 0:t.commentRange)??e}function pw(e,t){return ZC(e).commentRange=t,e}function fw(e){var t;return null==(t=e.emitNode)?void 0:t.leadingComments}function mw(e,t){return ZC(e).leadingComments=t,e}function gw(e,t,n,r){return mw(e,ie(fw(e),{kind:t,pos:-1,end:-1,hasTrailingNewLine:r,text:n}))}function hw(e){var t;return null==(t=e.emitNode)?void 0:t.trailingComments}function yw(e,t){return ZC(e).trailingComments=t,e}function vw(e,t,n,r){return yw(e,ie(hw(e),{kind:t,pos:-1,end:-1,hasTrailingNewLine:r,text:n}))}function bw(e,t){mw(e,fw(t)),yw(e,hw(t));const n=ZC(t);return n.leadingComments=void 0,n.trailingComments=void 0,e}function xw(e){var t;return null==(t=e.emitNode)?void 0:t.constantValue}function kw(e,t){return ZC(e).constantValue=t,e}function Sw(e,t){const n=ZC(e);return n.helpers=ie(n.helpers,t),e}function Tw(e,t){if($(t)){const n=ZC(e);for(const e of t)n.helpers=le(n.helpers,e)}return e}function Cw(e,t){var n;const r=null==(n=e.emitNode)?void 0:n.helpers;return!!r&&zt(r,t)}function ww(e){var t;return null==(t=e.emitNode)?void 0:t.helpers}function Nw(e,t,n){const r=e.emitNode,i=r&&r.helpers;if(!$(i))return;const o=ZC(t);let a=0;for(let e=0;e0&&(i[e-a]=t)}a>0&&(i.length-=a)}function Dw(e){var t;return null==(t=e.emitNode)?void 0:t.snippetElement}function Fw(e,t){return ZC(e).snippetElement=t,e}function Ew(e){return ZC(e).internalFlags|=4,e}function Pw(e,t){return ZC(e).typeNode=t,e}function Aw(e){var t;return null==(t=e.emitNode)?void 0:t.typeNode}function Iw(e,t){return ZC(e).identifierTypeArguments=t,e}function Ow(e){var t;return null==(t=e.emitNode)?void 0:t.identifierTypeArguments}function Lw(e,t){return ZC(e).autoGenerate=t,e}function jw(e){var t;return null==(t=e.emitNode)?void 0:t.autoGenerate}function Rw(e,t){return ZC(e).generatedImportReference=t,e}function Mw(e){var t;return null==(t=e.emitNode)?void 0:t.generatedImportReference}var Bw=(e=>(e.Field="f",e.Method="m",e.Accessor="a",e))(Bw||{});function Jw(e){const t=e.factory,n=dt((()=>iw(t.createTrue(),8))),r=dt((()=>iw(t.createFalse(),8)));return{getUnscopedHelperName:i,createDecorateHelper:function(n,r,o,a){e.requestEmitHelper(Uw);const s=[];return s.push(t.createArrayLiteralExpression(n,!0)),s.push(r),o&&(s.push(o),a&&s.push(a)),t.createCallExpression(i("__decorate"),void 0,s)},createMetadataHelper:function(n,r){return e.requestEmitHelper(Vw),t.createCallExpression(i("__metadata"),void 0,[t.createStringLiteral(n),r])},createParamHelper:function(n,r,o){return e.requestEmitHelper(Ww),nI(t.createCallExpression(i("__param"),void 0,[t.createNumericLiteral(r+""),n]),o)},createESDecorateHelper:function(n,r,o,s,c,l){return e.requestEmitHelper($w),t.createCallExpression(i("__esDecorate"),void 0,[n??t.createNull(),r??t.createNull(),o,a(s),c,l])},createRunInitializersHelper:function(n,r,o){return e.requestEmitHelper(Hw),t.createCallExpression(i("__runInitializers"),void 0,o?[n,r,o]:[n,r])},createAssignHelper:function(n){return hk(e.getCompilerOptions())>=2?t.createCallExpression(t.createPropertyAccessExpression(t.createIdentifier("Object"),"assign"),void 0,n):(e.requestEmitHelper(Kw),t.createCallExpression(i("__assign"),void 0,n))},createAwaitHelper:function(n){return e.requestEmitHelper(Gw),t.createCallExpression(i("__await"),void 0,[n])},createAsyncGeneratorHelper:function(n,r){return e.requestEmitHelper(Gw),e.requestEmitHelper(Xw),(n.emitNode||(n.emitNode={})).flags|=1572864,t.createCallExpression(i("__asyncGenerator"),void 0,[r?t.createThis():t.createVoidZero(),t.createIdentifier("arguments"),n])},createAsyncDelegatorHelper:function(n){return e.requestEmitHelper(Gw),e.requestEmitHelper(Qw),t.createCallExpression(i("__asyncDelegator"),void 0,[n])},createAsyncValuesHelper:function(n){return e.requestEmitHelper(Yw),t.createCallExpression(i("__asyncValues"),void 0,[n])},createRestHelper:function(n,r,o,a){e.requestEmitHelper(Zw);const s=[];let c=0;for(let e=0;e{let r="";for(let i=0;i= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n return c > 3 && r && Object.defineProperty(target, key, r), r;\n };'},Vw={name:"typescript:metadata",importName:"__metadata",scoped:!1,priority:3,text:'\n var __metadata = (this && this.__metadata) || function (k, v) {\n if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);\n };'},Ww={name:"typescript:param",importName:"__param",scoped:!1,priority:4,text:"\n var __param = (this && this.__param) || function (paramIndex, decorator) {\n return function (target, key) { decorator(target, key, paramIndex); }\n };"},$w={name:"typescript:esDecorate",importName:"__esDecorate",scoped:!1,priority:2,text:'\n var __esDecorate = (this && this.__esDecorate) || function (ctor, descriptorIn, decorators, contextIn, initializers, extraInitializers) {\n function accept(f) { if (f !== void 0 && typeof f !== "function") throw new TypeError("Function expected"); return f; }\n var kind = contextIn.kind, key = kind === "getter" ? "get" : kind === "setter" ? "set" : "value";\n var target = !descriptorIn && ctor ? contextIn["static"] ? ctor : ctor.prototype : null;\n var descriptor = descriptorIn || (target ? Object.getOwnPropertyDescriptor(target, contextIn.name) : {});\n var _, done = false;\n for (var i = decorators.length - 1; i >= 0; i--) {\n var context = {};\n for (var p in contextIn) context[p] = p === "access" ? {} : contextIn[p];\n for (var p in contextIn.access) context.access[p] = contextIn.access[p];\n context.addInitializer = function (f) { if (done) throw new TypeError("Cannot add initializers after decoration has completed"); extraInitializers.push(accept(f || null)); };\n var result = (0, decorators[i])(kind === "accessor" ? { get: descriptor.get, set: descriptor.set } : descriptor[key], context);\n if (kind === "accessor") {\n if (result === void 0) continue;\n if (result === null || typeof result !== "object") throw new TypeError("Object expected");\n if (_ = accept(result.get)) descriptor.get = _;\n if (_ = accept(result.set)) descriptor.set = _;\n if (_ = accept(result.init)) initializers.unshift(_);\n }\n else if (_ = accept(result)) {\n if (kind === "field") initializers.unshift(_);\n else descriptor[key] = _;\n }\n }\n if (target) Object.defineProperty(target, contextIn.name, descriptor);\n done = true;\n };'},Hw={name:"typescript:runInitializers",importName:"__runInitializers",scoped:!1,priority:2,text:"\n var __runInitializers = (this && this.__runInitializers) || function (thisArg, initializers, value) {\n var useValue = arguments.length > 2;\n for (var i = 0; i < initializers.length; i++) {\n value = useValue ? initializers[i].call(thisArg, value) : initializers[i].call(thisArg);\n }\n return useValue ? value : void 0;\n };"},Kw={name:"typescript:assign",importName:"__assign",scoped:!1,priority:1,text:"\n var __assign = (this && this.__assign) || function () {\n __assign = Object.assign || function(t) {\n for (var s, i = 1, n = arguments.length; i < n; i++) {\n s = arguments[i];\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))\n t[p] = s[p];\n }\n return t;\n };\n return __assign.apply(this, arguments);\n };"},Gw={name:"typescript:await",importName:"__await",scoped:!1,text:"\n var __await = (this && this.__await) || function (v) { return this instanceof __await ? (this.v = v, this) : new __await(v); }"},Xw={name:"typescript:asyncGenerator",importName:"__asyncGenerator",scoped:!1,dependencies:[Gw],text:'\n var __asyncGenerator = (this && this.__asyncGenerator) || function (thisArg, _arguments, generator) {\n if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");\n var g = generator.apply(thisArg, _arguments || []), i, q = [];\n return i = Object.create((typeof AsyncIterator === "function" ? AsyncIterator : Object).prototype), verb("next"), verb("throw"), verb("return", awaitReturn), i[Symbol.asyncIterator] = function () { return this; }, i;\n function awaitReturn(f) { return function (v) { return Promise.resolve(v).then(f, reject); }; }\n function verb(n, f) { if (g[n]) { i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; if (f) i[n] = f(i[n]); } }\n function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } }\n function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }\n function fulfill(value) { resume("next", value); }\n function reject(value) { resume("throw", value); }\n function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); }\n };'},Qw={name:"typescript:asyncDelegator",importName:"__asyncDelegator",scoped:!1,dependencies:[Gw],text:'\n var __asyncDelegator = (this && this.__asyncDelegator) || function (o) {\n var i, p;\n return i = {}, verb("next"), verb("throw", function (e) { throw e; }), verb("return"), i[Symbol.iterator] = function () { return this; }, i;\n function verb(n, f) { i[n] = o[n] ? function (v) { return (p = !p) ? { value: __await(o[n](v)), done: false } : f ? f(v) : v; } : f; }\n };'},Yw={name:"typescript:asyncValues",importName:"__asyncValues",scoped:!1,text:'\n var __asyncValues = (this && this.__asyncValues) || function (o) {\n if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");\n var m = o[Symbol.asyncIterator], i;\n return m ? m.call(o) : (o = typeof __values === "function" ? __values(o) : o[Symbol.iterator](), i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i);\n function verb(n) { i[n] = o[n] && function (v) { return new Promise(function (resolve, reject) { v = o[n](v), settle(resolve, reject, v.done, v.value); }); }; }\n function settle(resolve, reject, d, v) { Promise.resolve(v).then(function(v) { resolve({ value: v, done: d }); }, reject); }\n };'},Zw={name:"typescript:rest",importName:"__rest",scoped:!1,text:'\n var __rest = (this && this.__rest) || function (s, e) {\n var t = {};\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)\n t[p] = s[p];\n if (s != null && typeof Object.getOwnPropertySymbols === "function")\n for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))\n t[p[i]] = s[p[i]];\n }\n return t;\n };'},eN={name:"typescript:awaiter",importName:"__awaiter",scoped:!1,priority:5,text:'\n var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {\n function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\n return new (P || (P = Promise))(function (resolve, reject) {\n function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\n function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }\n function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\n step((generator = generator.apply(thisArg, _arguments || [])).next());\n });\n };'},tN={name:"typescript:extends",importName:"__extends",scoped:!1,priority:0,text:'\n var __extends = (this && this.__extends) || (function () {\n var extendStatics = function (d, b) {\n extendStatics = Object.setPrototypeOf ||\n ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\n function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };\n return extendStatics(d, b);\n };\n\n return function (d, b) {\n if (typeof b !== "function" && b !== null)\n throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");\n extendStatics(d, b);\n function __() { this.constructor = d; }\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n })();'},nN={name:"typescript:makeTemplateObject",importName:"__makeTemplateObject",scoped:!1,priority:0,text:'\n var __makeTemplateObject = (this && this.__makeTemplateObject) || function (cooked, raw) {\n if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; }\n return cooked;\n };'},rN={name:"typescript:read",importName:"__read",scoped:!1,text:'\n var __read = (this && this.__read) || function (o, n) {\n var m = typeof Symbol === "function" && o[Symbol.iterator];\n if (!m) return o;\n var i = m.call(o), r, ar = [], e;\n try {\n while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);\n }\n catch (error) { e = { error: error }; }\n finally {\n try {\n if (r && !r.done && (m = i["return"])) m.call(i);\n }\n finally { if (e) throw e.error; }\n }\n return ar;\n };'},iN={name:"typescript:spreadArray",importName:"__spreadArray",scoped:!1,text:"\n var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {\n if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {\n if (ar || !(i in from)) {\n if (!ar) ar = Array.prototype.slice.call(from, 0, i);\n ar[i] = from[i];\n }\n }\n return to.concat(ar || Array.prototype.slice.call(from));\n };"},oN={name:"typescript:propKey",importName:"__propKey",scoped:!1,text:'\n var __propKey = (this && this.__propKey) || function (x) {\n return typeof x === "symbol" ? x : "".concat(x);\n };'},aN={name:"typescript:setFunctionName",importName:"__setFunctionName",scoped:!1,text:'\n var __setFunctionName = (this && this.__setFunctionName) || function (f, name, prefix) {\n if (typeof name === "symbol") name = name.description ? "[".concat(name.description, "]") : "";\n return Object.defineProperty(f, "name", { configurable: true, value: prefix ? "".concat(prefix, " ", name) : name });\n };'},sN={name:"typescript:values",importName:"__values",scoped:!1,text:'\n var __values = (this && this.__values) || function(o) {\n var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;\n if (m) return m.call(o);\n if (o && typeof o.length === "number") return {\n next: function () {\n if (o && i >= o.length) o = void 0;\n return { value: o && o[i++], done: !o };\n }\n };\n throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");\n };'},cN={name:"typescript:generator",importName:"__generator",scoped:!1,priority:6,text:'\n var __generator = (this && this.__generator) || function (thisArg, body) {\n var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g = Object.create((typeof Iterator === "function" ? Iterator : Object).prototype);\n return g.next = verb(0), g["throw"] = verb(1), g["return"] = verb(2), typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;\n function verb(n) { return function (v) { return step([n, v]); }; }\n function step(op) {\n if (f) throw new TypeError("Generator is already executing.");\n while (g && (g = 0, op[0] && (_ = 0)), _) try {\n if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;\n if (y = 0, t) op = [op[0] & 2, t.value];\n switch (op[0]) {\n case 0: case 1: t = op; break;\n case 4: _.label++; return { value: op[1], done: false };\n case 5: _.label++; y = op[1]; op = [0]; continue;\n case 7: op = _.ops.pop(); _.trys.pop(); continue;\n default:\n if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }\n if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }\n if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }\n if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }\n if (t[2]) _.ops.pop();\n _.trys.pop(); continue;\n }\n op = body.call(thisArg, _);\n } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }\n if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };\n }\n };'},lN={name:"typescript:commonjscreatebinding",importName:"__createBinding",scoped:!1,priority:1,text:'\n var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {\n if (k2 === undefined) k2 = k;\n var desc = Object.getOwnPropertyDescriptor(m, k);\n if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {\n desc = { enumerable: true, get: function() { return m[k]; } };\n }\n Object.defineProperty(o, k2, desc);\n }) : (function(o, m, k, k2) {\n if (k2 === undefined) k2 = k;\n o[k2] = m[k];\n }));'},_N={name:"typescript:commonjsimportstar",importName:"__importStar",scoped:!1,dependencies:[lN,{name:"typescript:commonjscreatevalue",importName:"__setModuleDefault",scoped:!1,priority:1,text:'\n var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {\n Object.defineProperty(o, "default", { enumerable: true, value: v });\n }) : function(o, v) {\n o["default"] = v;\n });'}],priority:2,text:'\n var __importStar = (this && this.__importStar) || (function () {\n var ownKeys = function(o) {\n ownKeys = Object.getOwnPropertyNames || function (o) {\n var ar = [];\n for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;\n return ar;\n };\n return ownKeys(o);\n };\n return function (mod) {\n if (mod && mod.__esModule) return mod;\n var result = {};\n if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);\n __setModuleDefault(result, mod);\n return result;\n };\n })();'},uN={name:"typescript:commonjsimportdefault",importName:"__importDefault",scoped:!1,text:'\n var __importDefault = (this && this.__importDefault) || function (mod) {\n return (mod && mod.__esModule) ? mod : { "default": mod };\n };'},dN={name:"typescript:export-star",importName:"__exportStar",scoped:!1,dependencies:[lN],priority:2,text:'\n var __exportStar = (this && this.__exportStar) || function(m, exports) {\n for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);\n };'},pN={name:"typescript:classPrivateFieldGet",importName:"__classPrivateFieldGet",scoped:!1,text:'\n var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (receiver, state, kind, f) {\n if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");\n if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");\n return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);\n };'},fN={name:"typescript:classPrivateFieldSet",importName:"__classPrivateFieldSet",scoped:!1,text:'\n var __classPrivateFieldSet = (this && this.__classPrivateFieldSet) || function (receiver, state, value, kind, f) {\n if (kind === "m") throw new TypeError("Private method is not writable");\n if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a setter");\n if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot write private member to an object whose class did not declare it");\n return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;\n };'},mN={name:"typescript:classPrivateFieldIn",importName:"__classPrivateFieldIn",scoped:!1,text:'\n var __classPrivateFieldIn = (this && this.__classPrivateFieldIn) || function(state, receiver) {\n if (receiver === null || (typeof receiver !== "object" && typeof receiver !== "function")) throw new TypeError("Cannot use \'in\' operator on non-object");\n return typeof state === "function" ? receiver === state : state.has(receiver);\n };'},gN={name:"typescript:addDisposableResource",importName:"__addDisposableResource",scoped:!1,text:'\n var __addDisposableResource = (this && this.__addDisposableResource) || function (env, value, async) {\n if (value !== null && value !== void 0) {\n if (typeof value !== "object" && typeof value !== "function") throw new TypeError("Object expected.");\n var dispose, inner;\n if (async) {\n if (!Symbol.asyncDispose) throw new TypeError("Symbol.asyncDispose is not defined.");\n dispose = value[Symbol.asyncDispose];\n }\n if (dispose === void 0) {\n if (!Symbol.dispose) throw new TypeError("Symbol.dispose is not defined.");\n dispose = value[Symbol.dispose];\n if (async) inner = dispose;\n }\n if (typeof dispose !== "function") throw new TypeError("Object not disposable.");\n if (inner) dispose = function() { try { inner.call(this); } catch (e) { return Promise.reject(e); } };\n env.stack.push({ value: value, dispose: dispose, async: async });\n }\n else if (async) {\n env.stack.push({ async: true });\n }\n return value;\n };'},hN={name:"typescript:disposeResources",importName:"__disposeResources",scoped:!1,text:'\n var __disposeResources = (this && this.__disposeResources) || (function (SuppressedError) {\n return function (env) {\n function fail(e) {\n env.error = env.hasError ? new SuppressedError(e, env.error, "An error was suppressed during disposal.") : e;\n env.hasError = true;\n }\n var r, s = 0;\n function next() {\n while (r = env.stack.pop()) {\n try {\n if (!r.async && s === 1) return s = 0, env.stack.push(r), Promise.resolve().then(next);\n if (r.dispose) {\n var result = r.dispose.call(r.value);\n if (r.async) return s |= 2, Promise.resolve(result).then(next, function(e) { fail(e); return next(); });\n }\n else s |= 1;\n }\n catch (e) {\n fail(e);\n }\n }\n if (s === 1) return env.hasError ? Promise.reject(env.error) : Promise.resolve();\n if (env.hasError) throw env.error;\n }\n return next();\n };\n })(typeof SuppressedError === "function" ? SuppressedError : function (error, suppressed, message) {\n var e = new Error(message);\n return e.name = "SuppressedError", e.error = error, e.suppressed = suppressed, e;\n });'},yN={name:"typescript:rewriteRelativeImportExtensions",importName:"__rewriteRelativeImportExtension",scoped:!1,text:'\n var __rewriteRelativeImportExtension = (this && this.__rewriteRelativeImportExtension) || function (path, preserveJsx) {\n if (typeof path === "string" && /^\\.\\.?\\//.test(path)) {\n return path.replace(/\\.(tsx)$|((?:\\.d)?)((?:\\.[^./]+?)?)\\.([cm]?)ts$/i, function (m, tsx, d, ext, cm) {\n return tsx ? preserveJsx ? ".jsx" : ".js" : d && (!ext || !cm) ? m : (d + ext + "." + cm.toLowerCase() + "js");\n });\n }\n return path;\n };'},vN={name:"typescript:async-super",scoped:!0,text:qw` + const ${"_superIndex"} = name => super[name];`},bN={name:"typescript:advanced-async-super",scoped:!0,text:qw` const ${"_superIndex"} = (function (geti, seti) { const cache = Object.create(null); return name => cache[name] || (cache[name] = { get value() { return geti(name); }, set value(v) { seti(name, v); } }); - })(name => super[name], (name, value) => super[name] = value);`};function JN(e,t){return fF(e)&&aD(e.expression)&&!!(8192&Zd(e.expression))&&e.expression.escapedText===t}function zN(e){return 9===e.kind}function qN(e){return 10===e.kind}function UN(e){return 11===e.kind}function VN(e){return 12===e.kind}function WN(e){return 14===e.kind}function $N(e){return 15===e.kind}function HN(e){return 16===e.kind}function KN(e){return 17===e.kind}function GN(e){return 18===e.kind}function XN(e){return 26===e.kind}function QN(e){return 28===e.kind}function YN(e){return 40===e.kind}function ZN(e){return 41===e.kind}function eD(e){return 42===e.kind}function tD(e){return 54===e.kind}function nD(e){return 58===e.kind}function rD(e){return 59===e.kind}function iD(e){return 29===e.kind}function oD(e){return 39===e.kind}function aD(e){return 80===e.kind}function sD(e){return 81===e.kind}function cD(e){return 95===e.kind}function lD(e){return 90===e.kind}function _D(e){return 134===e.kind}function uD(e){return 131===e.kind}function dD(e){return 135===e.kind}function pD(e){return 148===e.kind}function fD(e){return 126===e.kind}function mD(e){return 128===e.kind}function gD(e){return 164===e.kind}function hD(e){return 129===e.kind}function yD(e){return 108===e.kind}function vD(e){return 102===e.kind}function bD(e){return 84===e.kind}function xD(e){return 167===e.kind}function kD(e){return 168===e.kind}function SD(e){return 169===e.kind}function TD(e){return 170===e.kind}function CD(e){return 171===e.kind}function wD(e){return 172===e.kind}function ND(e){return 173===e.kind}function DD(e){return 174===e.kind}function FD(e){return 175===e.kind}function ED(e){return 176===e.kind}function PD(e){return 177===e.kind}function AD(e){return 178===e.kind}function ID(e){return 179===e.kind}function OD(e){return 180===e.kind}function LD(e){return 181===e.kind}function jD(e){return 182===e.kind}function MD(e){return 183===e.kind}function RD(e){return 184===e.kind}function BD(e){return 185===e.kind}function JD(e){return 186===e.kind}function zD(e){return 187===e.kind}function qD(e){return 188===e.kind}function UD(e){return 189===e.kind}function VD(e){return 190===e.kind}function WD(e){return 203===e.kind}function $D(e){return 191===e.kind}function HD(e){return 192===e.kind}function KD(e){return 193===e.kind}function GD(e){return 194===e.kind}function XD(e){return 195===e.kind}function QD(e){return 196===e.kind}function YD(e){return 197===e.kind}function ZD(e){return 198===e.kind}function eF(e){return 199===e.kind}function tF(e){return 200===e.kind}function nF(e){return 201===e.kind}function rF(e){return 202===e.kind}function iF(e){return 206===e.kind}function oF(e){return 205===e.kind}function aF(e){return 204===e.kind}function sF(e){return 207===e.kind}function cF(e){return 208===e.kind}function lF(e){return 209===e.kind}function _F(e){return 210===e.kind}function uF(e){return 211===e.kind}function dF(e){return 212===e.kind}function pF(e){return 213===e.kind}function fF(e){return 214===e.kind}function mF(e){return 215===e.kind}function gF(e){return 216===e.kind}function hF(e){return 217===e.kind}function yF(e){return 218===e.kind}function vF(e){return 219===e.kind}function bF(e){return 220===e.kind}function xF(e){return 221===e.kind}function kF(e){return 222===e.kind}function SF(e){return 223===e.kind}function TF(e){return 224===e.kind}function CF(e){return 225===e.kind}function wF(e){return 226===e.kind}function NF(e){return 227===e.kind}function DF(e){return 228===e.kind}function FF(e){return 229===e.kind}function EF(e){return 230===e.kind}function PF(e){return 231===e.kind}function AF(e){return 232===e.kind}function IF(e){return 233===e.kind}function OF(e){return 234===e.kind}function LF(e){return 235===e.kind}function jF(e){return 239===e.kind}function MF(e){return 236===e.kind}function RF(e){return 237===e.kind}function BF(e){return 238===e.kind}function JF(e){return 356===e.kind}function zF(e){return 357===e.kind}function qF(e){return 240===e.kind}function UF(e){return 241===e.kind}function VF(e){return 242===e.kind}function WF(e){return 244===e.kind}function $F(e){return 243===e.kind}function HF(e){return 245===e.kind}function KF(e){return 246===e.kind}function GF(e){return 247===e.kind}function XF(e){return 248===e.kind}function QF(e){return 249===e.kind}function YF(e){return 250===e.kind}function ZF(e){return 251===e.kind}function eE(e){return 252===e.kind}function tE(e){return 253===e.kind}function nE(e){return 254===e.kind}function rE(e){return 255===e.kind}function iE(e){return 256===e.kind}function oE(e){return 257===e.kind}function aE(e){return 258===e.kind}function sE(e){return 259===e.kind}function cE(e){return 260===e.kind}function lE(e){return 261===e.kind}function _E(e){return 262===e.kind}function uE(e){return 263===e.kind}function dE(e){return 264===e.kind}function pE(e){return 265===e.kind}function fE(e){return 266===e.kind}function mE(e){return 267===e.kind}function gE(e){return 268===e.kind}function hE(e){return 269===e.kind}function yE(e){return 270===e.kind}function vE(e){return 271===e.kind}function bE(e){return 272===e.kind}function xE(e){return 273===e.kind}function kE(e){return 274===e.kind}function SE(e){return 303===e.kind}function TE(e){return 301===e.kind}function CE(e){return 302===e.kind}function wE(e){return 301===e.kind}function NE(e){return 302===e.kind}function DE(e){return 275===e.kind}function FE(e){return 281===e.kind}function EE(e){return 276===e.kind}function PE(e){return 277===e.kind}function AE(e){return 278===e.kind}function IE(e){return 279===e.kind}function OE(e){return 280===e.kind}function LE(e){return 282===e.kind}function jE(e){return 80===e.kind||11===e.kind}function ME(e){return 283===e.kind}function RE(e){return 354===e.kind}function BE(e){return 358===e.kind}function JE(e){return 284===e.kind}function zE(e){return 285===e.kind}function qE(e){return 286===e.kind}function UE(e){return 287===e.kind}function VE(e){return 288===e.kind}function WE(e){return 289===e.kind}function $E(e){return 290===e.kind}function HE(e){return 291===e.kind}function KE(e){return 292===e.kind}function GE(e){return 293===e.kind}function XE(e){return 294===e.kind}function QE(e){return 295===e.kind}function YE(e){return 296===e.kind}function ZE(e){return 297===e.kind}function eP(e){return 298===e.kind}function tP(e){return 299===e.kind}function nP(e){return 300===e.kind}function rP(e){return 304===e.kind}function iP(e){return 305===e.kind}function oP(e){return 306===e.kind}function aP(e){return 307===e.kind}function sP(e){return 308===e.kind}function cP(e){return 309===e.kind}function lP(e){return 310===e.kind}function _P(e){return 311===e.kind}function uP(e){return 312===e.kind}function dP(e){return 325===e.kind}function pP(e){return 326===e.kind}function fP(e){return 327===e.kind}function mP(e){return 313===e.kind}function gP(e){return 314===e.kind}function hP(e){return 315===e.kind}function yP(e){return 316===e.kind}function vP(e){return 317===e.kind}function bP(e){return 318===e.kind}function xP(e){return 319===e.kind}function kP(e){return 320===e.kind}function SP(e){return 321===e.kind}function TP(e){return 323===e.kind}function CP(e){return 324===e.kind}function wP(e){return 329===e.kind}function NP(e){return 331===e.kind}function DP(e){return 333===e.kind}function FP(e){return 339===e.kind}function EP(e){return 334===e.kind}function PP(e){return 335===e.kind}function AP(e){return 336===e.kind}function IP(e){return 337===e.kind}function OP(e){return 338===e.kind}function LP(e){return 340===e.kind}function jP(e){return 332===e.kind}function MP(e){return 348===e.kind}function RP(e){return 341===e.kind}function BP(e){return 342===e.kind}function JP(e){return 343===e.kind}function zP(e){return 344===e.kind}function qP(e){return 345===e.kind}function UP(e){return 346===e.kind}function VP(e){return 347===e.kind}function WP(e){return 328===e.kind}function $P(e){return 349===e.kind}function HP(e){return 330===e.kind}function KP(e){return 351===e.kind}function GP(e){return 350===e.kind}function XP(e){return 352===e.kind}function QP(e){return 353===e.kind}var YP,ZP=new WeakMap;function eA(e,t){var n;const r=e.kind;return Dl(r)?353===r?e._children:null==(n=ZP.get(t))?void 0:n.get(e):l}function tA(e,t,n){353===e.kind&&un.fail("Should not need to re-set the children of a SyntaxList.");let r=ZP.get(t);return void 0===r&&(r=new WeakMap,ZP.set(t,r)),r.set(e,n),n}function nA(e,t){var n;353===e.kind&&un.fail("Did not expect to unset the children of a SyntaxList."),null==(n=ZP.get(t))||n.delete(e)}function rA(e,t){const n=ZP.get(e);void 0!==n&&(ZP.delete(e),ZP.set(t,n))}function iA(e){return e.createExportDeclaration(void 0,!1,e.createNamedExports([]),void 0)}function oA(e,t,n,r){if(kD(n))return xI(e.createElementAccessExpression(t,n.expression),r);{const r=xI(dl(n)?e.createPropertyAccessExpression(t,n):e.createElementAccessExpression(t,n),n);return kw(r,128),r}}function aA(e,t){const n=CI.createIdentifier(e||"React");return DT(n,pc(t)),n}function sA(e,t,n){if(xD(t)){const r=sA(e,t.left,n),i=e.createIdentifier(gc(t.right));return i.escapedText=t.right.escapedText,e.createPropertyAccessExpression(r,i)}return aA(gc(t),n)}function cA(e,t,n,r){return t?sA(e,t,r):e.createPropertyAccessExpression(aA(n,r),"createElement")}function lA(e,t,n,r,i,o){const a=[n];if(r&&a.push(r),i&&i.length>0)if(r||a.push(e.createNull()),i.length>1)for(const e of i)FA(e),a.push(e);else a.push(i[0]);return xI(e.createCallExpression(t,void 0,a),o)}function _A(e,t,n,r,i,o,a){const s=function(e,t,n,r){return t?sA(e,t,r):e.createPropertyAccessExpression(aA(n,r),"Fragment")}(e,n,r,o),c=[s,e.createNull()];if(i&&i.length>0)if(i.length>1)for(const e of i)FA(e),c.push(e);else c.push(i[0]);return xI(e.createCallExpression(cA(e,t,r,o),void 0,c),a)}function uA(e,t,n){if(_E(t)){const r=ge(t.declarations),i=e.updateVariableDeclaration(r,r.name,void 0,void 0,n);return xI(e.createVariableStatement(void 0,e.updateVariableDeclarationList(t,[i])),t)}{const r=xI(e.createAssignment(t,n),t);return xI(e.createExpressionStatement(r),t)}}function dA(e,t){if(xD(t)){const n=dA(e,t.left),r=DT(xI(e.cloneNode(t.right),t.right),t.right.parent);return xI(e.createPropertyAccessExpression(n,r),t)}return DT(xI(e.cloneNode(t),t),t.parent)}function pA(e,t){return aD(t)?e.createStringLiteralFromNode(t):kD(t)?DT(xI(e.cloneNode(t.expression),t.expression),t.expression.parent):DT(xI(e.cloneNode(t),t),t.parent)}function fA(e,t,n,r){switch(n.name&&sD(n.name)&&un.failBadSyntaxKind(n.name,"Private identifiers are not allowed in object literals."),n.kind){case 178:case 179:return function(e,t,n,r,i){const{firstAccessor:o,getAccessor:a,setAccessor:s}=pv(t,n);if(n===o)return xI(e.createObjectDefinePropertyCall(r,pA(e,n.name),e.createPropertyDescriptor({enumerable:e.createFalse(),configurable:!0,get:a&&xI(hw(e.createFunctionExpression(Dc(a),void 0,void 0,void 0,a.parameters,void 0,a.body),a),a),set:s&&xI(hw(e.createFunctionExpression(Dc(s),void 0,void 0,void 0,s.parameters,void 0,s.body),s),s)},!i)),o)}(e,t.properties,n,r,!!t.multiLine);case 304:return function(e,t,n){return hw(xI(e.createAssignment(oA(e,n,t.name,t.name),t.initializer),t),t)}(e,n,r);case 305:return function(e,t,n){return hw(xI(e.createAssignment(oA(e,n,t.name,t.name),e.cloneNode(t.name)),t),t)}(e,n,r);case 175:return function(e,t,n){return hw(xI(e.createAssignment(oA(e,n,t.name,t.name),hw(xI(e.createFunctionExpression(Dc(t),t.asteriskToken,void 0,void 0,t.parameters,void 0,t.body),t),t)),t),t)}(e,n,r)}}function mA(e,t,n,r,i){const o=t.operator;un.assert(46===o||47===o,"Expected 'node' to be a pre- or post-increment or pre- or post-decrement expression");const a=e.createTempVariable(r);xI(n=e.createAssignment(a,n),t.operand);let s=CF(t)?e.createPrefixUnaryExpression(o,a):e.createPostfixUnaryExpression(a,o);return xI(s,t),i&&(s=e.createAssignment(i,s),xI(s,t)),xI(n=e.createComma(n,s),t),wF(t)&&xI(n=e.createComma(n,a),t),n}function gA(e){return!!(65536&Zd(e))}function hA(e){return!!(32768&Zd(e))}function yA(e){return!!(16384&Zd(e))}function vA(e){return UN(e.expression)&&"use strict"===e.expression.text}function bA(e){for(const t of e){if(!pf(t))break;if(vA(t))return t}}function xA(e){const t=fe(e);return void 0!==t&&pf(t)&&vA(t)}function kA(e){return 227===e.kind&&28===e.operatorToken.kind}function SA(e){return kA(e)||zF(e)}function TA(e){return yF(e)&&Em(e)&&!!tl(e)}function CA(e){const t=nl(e);return un.assertIsDefined(t),t}function wA(e,t=63){switch(e.kind){case 218:return!(-2147483648&t&&TA(e)||!(1&t));case 217:case 235:return!!(2&t);case 239:return!!(34&t);case 234:return!!(16&t);case 236:return!!(4&t);case 356:return!!(8&t)}return!1}function NA(e,t=63){for(;wA(e,t);)e=e.expression;return e}function DA(e,t=63){let n=e.parent;for(;wA(n,t);)n=n.parent,un.assert(n);return n}function FA(e){return Ew(e,!0)}function EA(e){const t=_c(e,sP),n=t&&t.emitNode;return n&&n.externalHelpersModuleName}function PA(e){const t=_c(e,sP),n=t&&t.emitNode;return!(!n||!n.externalHelpersModuleName&&!n.externalHelpers)}function AA(e,t,n,r,i,o,a){if(r.importHelpers&&hp(n,r)){const s=vk(r),c=RV(n,r),l=function(e){return N(Ww(e),e=>!e.scoped)}(n);if(1!==c&&(s>=5&&s<=99||99===c||void 0===c&&200===s)){if(l){const r=[];for(const e of l){const t=e.importName;t&&ce(r,t)}if($(r)){r.sort(Ct);const i=e.createNamedImports(E(r,r=>wd(n,r)?e.createImportSpecifier(!1,void 0,e.createIdentifier(r)):e.createImportSpecifier(!1,e.createIdentifier(r),t.getUnscopedHelperName(r))));yw(_c(n,sP)).externalHelpers=!0;const o=e.createImportDeclaration(void 0,e.createImportClause(void 0,void 0,i),e.createStringLiteral(Uu),void 0);return Tw(o,2),o}}}else{const t=function(e,t,n,r,i,o){const a=EA(t);if(a)return a;if($(r)||(i||Sk(n)&&o)&&MV(t,n)<4){const n=yw(_c(t,sP));return n.externalHelpersModuleName||(n.externalHelpersModuleName=e.createUniqueName(Uu))}}(e,n,r,l,i,o||a);if(t){const n=e.createImportEqualsDeclaration(void 0,!1,t,e.createExternalModuleReference(e.createStringLiteral(Uu)));return Tw(n,2),n}}}}function IA(e,t,n){const r=Sg(t);if(r&&!Tg(t)&&!Wd(t)){const i=r.name;return 11===i.kind?e.getGeneratedNameForNode(t):Wl(i)?i:e.createIdentifier(Vd(n,i)||gc(i))}return 273===t.kind&&t.importClause||279===t.kind&&t.moduleSpecifier?e.getGeneratedNameForNode(t):void 0}function OA(e,t,n,r,i,o){const a=kg(t);if(a&&UN(a))return function(e,t,n,r,i){return LA(n,r.getExternalModuleFileFromDeclaration(e),t,i)}(t,r,e,i,o)||function(e,t,n){const r=n.renamedDependencies&&n.renamedDependencies.get(t.text);return r?e.createStringLiteral(r):void 0}(e,a,n)||e.cloneNode(a)}function LA(e,t,n,r){if(t)return t.moduleName?e.createStringLiteral(t.moduleName):!t.isDeclarationFile&&r.outFile?e.createStringLiteral(zy(n,t.fileName)):void 0}function jA(e){if(C_(e))return e.initializer;if(rP(e)){const t=e.initializer;return rb(t,!0)?t.right:void 0}return iP(e)?e.objectAssignmentInitializer:rb(e,!0)?e.right:PF(e)?jA(e.expression):void 0}function MA(e){if(C_(e))return e.name;if(!v_(e))return rb(e,!0)?MA(e.left):PF(e)?MA(e.expression):e;switch(e.kind){case 304:return MA(e.initializer);case 305:return e.name;case 306:return MA(e.expression)}}function RA(e){switch(e.kind){case 170:case 209:return e.dotDotDotToken;case 231:case 306:return e}}function BA(e){const t=JA(e);return un.assert(!!t||oP(e),"Invalid property name for binding element."),t}function JA(e){switch(e.kind){case 209:if(e.propertyName){const t=e.propertyName;return sD(t)?un.failBadSyntaxKind(t):kD(t)&&zA(t.expression)?t.expression:t}break;case 304:if(e.name){const t=e.name;return sD(t)?un.failBadSyntaxKind(t):kD(t)&&zA(t.expression)?t.expression:t}break;case 306:return e.name&&sD(e.name)?un.failBadSyntaxKind(e.name):e.name}const t=MA(e);if(t&&t_(t))return t}function zA(e){const t=e.kind;return 11===t||9===t}function qA(e){switch(e.kind){case 207:case 208:case 210:return e.elements;case 211:return e.properties}}function UA(e){if(e){let t=e;for(;;){if(aD(t)||!t.body)return aD(t)?t:t.name;t=t.body}}}function VA(e){const t=e.kind;return 177===t||179===t}function WA(e){const t=e.kind;return 177===t||178===t||179===t}function $A(e){const t=e.kind;return 304===t||305===t||263===t||177===t||182===t||176===t||283===t||244===t||265===t||266===t||267===t||268===t||272===t||273===t||271===t||279===t||278===t}function HA(e){const t=e.kind;return 176===t||304===t||305===t||283===t||271===t}function KA(e){return nD(e)||tD(e)}function GA(e){return aD(e)||ZD(e)}function XA(e){return pD(e)||YN(e)||ZN(e)}function QA(e){return nD(e)||YN(e)||ZN(e)}function YA(e){return aD(e)||UN(e)}function ZA(e){return function(e){return 48===e||49===e||50===e}(e)||function(e){return function(e){return 40===e||41===e}(e)||function(e){return function(e){return 43===e}(e)||function(e){return 42===e||44===e||45===e}(e)}(e)}(e)}function eI(e){return function(e){return 56===e||57===e}(e)||function(e){return function(e){return 51===e||52===e||53===e}(e)||function(e){return function(e){return 35===e||37===e||36===e||38===e}(e)||function(e){return function(e){return 30===e||33===e||32===e||34===e||104===e||103===e}(e)||ZA(e)}(e)}(e)}(e)}function tI(e){return function(e){return 61===e||eI(e)||eb(e)}(t=e.kind)||28===t;var t}(e=>{function t(e,n,r,i,o,a,c){const l=n>0?o[n-1]:void 0;return un.assertEqual(r[n],t),o[n]=e.onEnter(i[n],l,c),r[n]=s(e,t),n}function n(e,t,r,i,o,a,_){un.assertEqual(r[t],n),un.assertIsDefined(e.onLeft),r[t]=s(e,n);const u=e.onLeft(i[t].left,o[t],i[t]);return u?(l(t,i,u),c(t,r,i,o,u)):t}function r(e,t,n,i,o,a,c){return un.assertEqual(n[t],r),un.assertIsDefined(e.onOperator),n[t]=s(e,r),e.onOperator(i[t].operatorToken,o[t],i[t]),t}function i(e,t,n,r,o,a,_){un.assertEqual(n[t],i),un.assertIsDefined(e.onRight),n[t]=s(e,i);const u=e.onRight(r[t].right,o[t],r[t]);return u?(l(t,r,u),c(t,n,r,o,u)):t}function o(e,t,n,r,i,a,c){un.assertEqual(n[t],o),n[t]=s(e,o);const l=e.onExit(r[t],i[t]);if(t>0){if(t--,e.foldState){const r=n[t]===o?"right":"left";i[t]=e.foldState(i[t],l,r)}}else a.value=l;return t}function a(e,t,n,r,i,o,s){return un.assertEqual(n[t],a),t}function s(e,s){switch(s){case t:if(e.onLeft)return n;case n:if(e.onOperator)return r;case r:if(e.onRight)return i;case i:return o;case o:case a:return a;default:un.fail("Invalid state")}}function c(e,n,r,i,o){return n[++e]=t,r[e]=o,i[e]=void 0,e}function l(e,t,n){if(un.shouldAssert(2))for(;e>=0;)un.assert(t[e]!==n,"Circular traversal detected."),e--}e.enter=t,e.left=n,e.operator=r,e.right=i,e.exit=o,e.done=a,e.nextState=s})(YP||(YP={}));var nI,rI,iI,oI,aI,sI=class{constructor(e,t,n,r,i,o){this.onEnter=e,this.onLeft=t,this.onOperator=n,this.onRight=r,this.onExit=i,this.foldState=o}};function cI(e,t,n,r,i,o){const a=new sI(e,t,n,r,i,o);return function(e,t){const n={value:void 0},r=[YP.enter],i=[e],o=[void 0];let s=0;for(;r[s]!==YP.done;)s=r[s](a,s,r,i,o,n,t);return un.assertEqual(s,0),n.value}}function lI(e){return 95===(t=e.kind)||90===t;var t}function _I(e,t){if(void 0!==t)return 0===t.length?t:xI(e.createNodeArray([],t.hasTrailingComma),t)}function uI(e){var t;const n=e.emitNode.autoGenerate;if(4&n.flags){const r=n.id;let i=e,o=i.original;for(;o;){i=o;const e=null==(t=i.emitNode)?void 0:t.autoGenerate;if(dl(i)&&(void 0===e||4&e.flags&&e.id!==r))break;o=i.original}return i}return e}function dI(e,t){return"object"==typeof e?pI(!1,e.prefix,e.node,e.suffix,t):"string"==typeof e?e.length>0&&35===e.charCodeAt(0)?e.slice(1):e:""}function pI(e,t,n,r,i){return t=dI(t,i),r=dI(r,i),`${e?"#":""}${t}${n=function(e,t){return"string"==typeof e?e:function(e,t){return $l(e)?t(e).slice(1):Wl(e)?t(e):sD(e)?e.escapedText.slice(1):gc(e)}(e,un.checkDefined(t))}(n,i)}${r}`}function fI(e,t,n,r){return e.updatePropertyDeclaration(t,n,e.getGeneratedPrivateNameForNode(t.name,void 0,"_accessor_storage"),void 0,void 0,r)}function mI(e,t,n,r,i=e.createThis()){return e.createGetAccessorDeclaration(n,r,[],void 0,e.createBlock([e.createReturnStatement(e.createPropertyAccessExpression(i,e.getGeneratedPrivateNameForNode(t.name,void 0,"_accessor_storage")))]))}function gI(e,t,n,r,i=e.createThis()){return e.createSetAccessorDeclaration(n,r,[e.createParameterDeclaration(void 0,void 0,"value")],e.createBlock([e.createExpressionStatement(e.createAssignment(e.createPropertyAccessExpression(i,e.getGeneratedPrivateNameForNode(t.name,void 0,"_accessor_storage")),e.createIdentifier("value")))]))}function hI(e){let t=e.expression;for(;;)if(t=NA(t),zF(t))t=ve(t.elements);else{if(!kA(t)){if(rb(t,!0)&&Wl(t.left))return t;break}t=t.right}}function yI(e,t){if(function(e){return yF(e)&&ey(e)&&!e.emitNode}(e))yI(e.expression,t);else if(kA(e))yI(e.left,t),yI(e.right,t);else if(zF(e))for(const n of e.elements)yI(n,t);else t.push(e)}function vI(e){const t=[];return yI(e,t),t}function bI(e){if(65536&e.transformFlags)return!0;if(128&e.transformFlags)for(const t of qA(e)){const e=MA(t);if(e&&S_(e)){if(65536&e.transformFlags)return!0;if(128&e.transformFlags&&bI(e))return!0}}return!1}function xI(e,t){return t?CT(e,t.pos,t.end):e}function kI(e){const t=e.kind;return 169===t||170===t||172===t||173===t||174===t||175===t||177===t||178===t||179===t||182===t||186===t||219===t||220===t||232===t||244===t||263===t||264===t||265===t||266===t||267===t||268===t||272===t||273===t||278===t||279===t}function SI(e){const t=e.kind;return 170===t||173===t||175===t||178===t||179===t||232===t||264===t}var TI={createBaseSourceFileNode:e=>new(aI||(aI=Mx.getSourceFileConstructor()))(e,-1,-1),createBaseIdentifierNode:e=>new(iI||(iI=Mx.getIdentifierConstructor()))(e,-1,-1),createBasePrivateIdentifierNode:e=>new(oI||(oI=Mx.getPrivateIdentifierConstructor()))(e,-1,-1),createBaseTokenNode:e=>new(rI||(rI=Mx.getTokenConstructor()))(e,-1,-1),createBaseNode:e=>new(nI||(nI=Mx.getNodeConstructor()))(e,-1,-1)},CI=iw(1,TI);function wI(e,t){return t&&e(t)}function NI(e,t,n){if(n){if(t)return t(n);for(const t of n){const n=e(t);if(n)return n}}}function DI(e,t){return 42===e.charCodeAt(t+1)&&42===e.charCodeAt(t+2)&&47!==e.charCodeAt(t+3)}function FI(e){return d(e.statements,EI)||function(e){return 8388608&e.flags?PI(e):void 0}(e)}function EI(e){return kI(e)&&function(e){return $(e.modifiers,e=>95===e.kind)}(e)||bE(e)&&JE(e.moduleReference)||xE(e)||AE(e)||IE(e)?e:void 0}function PI(e){return function(e){return RF(e)&&102===e.keywordToken&&"meta"===e.name.escapedText}(e)?e:XI(e,PI)}var AI,II={167:function(e,t,n){return wI(t,e.left)||wI(t,e.right)},169:function(e,t,n){return NI(t,n,e.modifiers)||wI(t,e.name)||wI(t,e.constraint)||wI(t,e.default)||wI(t,e.expression)},305:function(e,t,n){return NI(t,n,e.modifiers)||wI(t,e.name)||wI(t,e.questionToken)||wI(t,e.exclamationToken)||wI(t,e.equalsToken)||wI(t,e.objectAssignmentInitializer)},306:function(e,t,n){return wI(t,e.expression)},170:function(e,t,n){return NI(t,n,e.modifiers)||wI(t,e.dotDotDotToken)||wI(t,e.name)||wI(t,e.questionToken)||wI(t,e.type)||wI(t,e.initializer)},173:function(e,t,n){return NI(t,n,e.modifiers)||wI(t,e.name)||wI(t,e.questionToken)||wI(t,e.exclamationToken)||wI(t,e.type)||wI(t,e.initializer)},172:function(e,t,n){return NI(t,n,e.modifiers)||wI(t,e.name)||wI(t,e.questionToken)||wI(t,e.type)||wI(t,e.initializer)},304:function(e,t,n){return NI(t,n,e.modifiers)||wI(t,e.name)||wI(t,e.questionToken)||wI(t,e.exclamationToken)||wI(t,e.initializer)},261:function(e,t,n){return wI(t,e.name)||wI(t,e.exclamationToken)||wI(t,e.type)||wI(t,e.initializer)},209:function(e,t,n){return wI(t,e.dotDotDotToken)||wI(t,e.propertyName)||wI(t,e.name)||wI(t,e.initializer)},182:function(e,t,n){return NI(t,n,e.modifiers)||NI(t,n,e.typeParameters)||NI(t,n,e.parameters)||wI(t,e.type)},186:function(e,t,n){return NI(t,n,e.modifiers)||NI(t,n,e.typeParameters)||NI(t,n,e.parameters)||wI(t,e.type)},185:function(e,t,n){return NI(t,n,e.modifiers)||NI(t,n,e.typeParameters)||NI(t,n,e.parameters)||wI(t,e.type)},180:OI,181:OI,175:function(e,t,n){return NI(t,n,e.modifiers)||wI(t,e.asteriskToken)||wI(t,e.name)||wI(t,e.questionToken)||wI(t,e.exclamationToken)||NI(t,n,e.typeParameters)||NI(t,n,e.parameters)||wI(t,e.type)||wI(t,e.body)},174:function(e,t,n){return NI(t,n,e.modifiers)||wI(t,e.name)||wI(t,e.questionToken)||NI(t,n,e.typeParameters)||NI(t,n,e.parameters)||wI(t,e.type)},177:function(e,t,n){return NI(t,n,e.modifiers)||wI(t,e.name)||NI(t,n,e.typeParameters)||NI(t,n,e.parameters)||wI(t,e.type)||wI(t,e.body)},178:function(e,t,n){return NI(t,n,e.modifiers)||wI(t,e.name)||NI(t,n,e.typeParameters)||NI(t,n,e.parameters)||wI(t,e.type)||wI(t,e.body)},179:function(e,t,n){return NI(t,n,e.modifiers)||wI(t,e.name)||NI(t,n,e.typeParameters)||NI(t,n,e.parameters)||wI(t,e.type)||wI(t,e.body)},263:function(e,t,n){return NI(t,n,e.modifiers)||wI(t,e.asteriskToken)||wI(t,e.name)||NI(t,n,e.typeParameters)||NI(t,n,e.parameters)||wI(t,e.type)||wI(t,e.body)},219:function(e,t,n){return NI(t,n,e.modifiers)||wI(t,e.asteriskToken)||wI(t,e.name)||NI(t,n,e.typeParameters)||NI(t,n,e.parameters)||wI(t,e.type)||wI(t,e.body)},220:function(e,t,n){return NI(t,n,e.modifiers)||NI(t,n,e.typeParameters)||NI(t,n,e.parameters)||wI(t,e.type)||wI(t,e.equalsGreaterThanToken)||wI(t,e.body)},176:function(e,t,n){return NI(t,n,e.modifiers)||wI(t,e.body)},184:function(e,t,n){return wI(t,e.typeName)||NI(t,n,e.typeArguments)},183:function(e,t,n){return wI(t,e.assertsModifier)||wI(t,e.parameterName)||wI(t,e.type)},187:function(e,t,n){return wI(t,e.exprName)||NI(t,n,e.typeArguments)},188:function(e,t,n){return NI(t,n,e.members)},189:function(e,t,n){return wI(t,e.elementType)},190:function(e,t,n){return NI(t,n,e.elements)},193:LI,194:LI,195:function(e,t,n){return wI(t,e.checkType)||wI(t,e.extendsType)||wI(t,e.trueType)||wI(t,e.falseType)},196:function(e,t,n){return wI(t,e.typeParameter)},206:function(e,t,n){return wI(t,e.argument)||wI(t,e.attributes)||wI(t,e.qualifier)||NI(t,n,e.typeArguments)},303:function(e,t,n){return wI(t,e.assertClause)},197:jI,199:jI,200:function(e,t,n){return wI(t,e.objectType)||wI(t,e.indexType)},201:function(e,t,n){return wI(t,e.readonlyToken)||wI(t,e.typeParameter)||wI(t,e.nameType)||wI(t,e.questionToken)||wI(t,e.type)||NI(t,n,e.members)},202:function(e,t,n){return wI(t,e.literal)},203:function(e,t,n){return wI(t,e.dotDotDotToken)||wI(t,e.name)||wI(t,e.questionToken)||wI(t,e.type)},207:MI,208:MI,210:function(e,t,n){return NI(t,n,e.elements)},211:function(e,t,n){return NI(t,n,e.properties)},212:function(e,t,n){return wI(t,e.expression)||wI(t,e.questionDotToken)||wI(t,e.name)},213:function(e,t,n){return wI(t,e.expression)||wI(t,e.questionDotToken)||wI(t,e.argumentExpression)},214:RI,215:RI,216:function(e,t,n){return wI(t,e.tag)||wI(t,e.questionDotToken)||NI(t,n,e.typeArguments)||wI(t,e.template)},217:function(e,t,n){return wI(t,e.type)||wI(t,e.expression)},218:function(e,t,n){return wI(t,e.expression)},221:function(e,t,n){return wI(t,e.expression)},222:function(e,t,n){return wI(t,e.expression)},223:function(e,t,n){return wI(t,e.expression)},225:function(e,t,n){return wI(t,e.operand)},230:function(e,t,n){return wI(t,e.asteriskToken)||wI(t,e.expression)},224:function(e,t,n){return wI(t,e.expression)},226:function(e,t,n){return wI(t,e.operand)},227:function(e,t,n){return wI(t,e.left)||wI(t,e.operatorToken)||wI(t,e.right)},235:function(e,t,n){return wI(t,e.expression)||wI(t,e.type)},236:function(e,t,n){return wI(t,e.expression)},239:function(e,t,n){return wI(t,e.expression)||wI(t,e.type)},237:function(e,t,n){return wI(t,e.name)},228:function(e,t,n){return wI(t,e.condition)||wI(t,e.questionToken)||wI(t,e.whenTrue)||wI(t,e.colonToken)||wI(t,e.whenFalse)},231:function(e,t,n){return wI(t,e.expression)},242:BI,269:BI,308:function(e,t,n){return NI(t,n,e.statements)||wI(t,e.endOfFileToken)},244:function(e,t,n){return NI(t,n,e.modifiers)||wI(t,e.declarationList)},262:function(e,t,n){return NI(t,n,e.declarations)},245:function(e,t,n){return wI(t,e.expression)},246:function(e,t,n){return wI(t,e.expression)||wI(t,e.thenStatement)||wI(t,e.elseStatement)},247:function(e,t,n){return wI(t,e.statement)||wI(t,e.expression)},248:function(e,t,n){return wI(t,e.expression)||wI(t,e.statement)},249:function(e,t,n){return wI(t,e.initializer)||wI(t,e.condition)||wI(t,e.incrementor)||wI(t,e.statement)},250:function(e,t,n){return wI(t,e.initializer)||wI(t,e.expression)||wI(t,e.statement)},251:function(e,t,n){return wI(t,e.awaitModifier)||wI(t,e.initializer)||wI(t,e.expression)||wI(t,e.statement)},252:JI,253:JI,254:function(e,t,n){return wI(t,e.expression)},255:function(e,t,n){return wI(t,e.expression)||wI(t,e.statement)},256:function(e,t,n){return wI(t,e.expression)||wI(t,e.caseBlock)},270:function(e,t,n){return NI(t,n,e.clauses)},297:function(e,t,n){return wI(t,e.expression)||NI(t,n,e.statements)},298:function(e,t,n){return NI(t,n,e.statements)},257:function(e,t,n){return wI(t,e.label)||wI(t,e.statement)},258:function(e,t,n){return wI(t,e.expression)},259:function(e,t,n){return wI(t,e.tryBlock)||wI(t,e.catchClause)||wI(t,e.finallyBlock)},300:function(e,t,n){return wI(t,e.variableDeclaration)||wI(t,e.block)},171:function(e,t,n){return wI(t,e.expression)},264:zI,232:zI,265:function(e,t,n){return NI(t,n,e.modifiers)||wI(t,e.name)||NI(t,n,e.typeParameters)||NI(t,n,e.heritageClauses)||NI(t,n,e.members)},266:function(e,t,n){return NI(t,n,e.modifiers)||wI(t,e.name)||NI(t,n,e.typeParameters)||wI(t,e.type)},267:function(e,t,n){return NI(t,n,e.modifiers)||wI(t,e.name)||NI(t,n,e.members)},307:function(e,t,n){return wI(t,e.name)||wI(t,e.initializer)},268:function(e,t,n){return NI(t,n,e.modifiers)||wI(t,e.name)||wI(t,e.body)},272:function(e,t,n){return NI(t,n,e.modifiers)||wI(t,e.name)||wI(t,e.moduleReference)},273:function(e,t,n){return NI(t,n,e.modifiers)||wI(t,e.importClause)||wI(t,e.moduleSpecifier)||wI(t,e.attributes)},274:function(e,t,n){return wI(t,e.name)||wI(t,e.namedBindings)},301:function(e,t,n){return NI(t,n,e.elements)},302:function(e,t,n){return wI(t,e.name)||wI(t,e.value)},271:function(e,t,n){return NI(t,n,e.modifiers)||wI(t,e.name)},275:function(e,t,n){return wI(t,e.name)},281:function(e,t,n){return wI(t,e.name)},276:qI,280:qI,279:function(e,t,n){return NI(t,n,e.modifiers)||wI(t,e.exportClause)||wI(t,e.moduleSpecifier)||wI(t,e.attributes)},277:UI,282:UI,278:function(e,t,n){return NI(t,n,e.modifiers)||wI(t,e.expression)},229:function(e,t,n){return wI(t,e.head)||NI(t,n,e.templateSpans)},240:function(e,t,n){return wI(t,e.expression)||wI(t,e.literal)},204:function(e,t,n){return wI(t,e.head)||NI(t,n,e.templateSpans)},205:function(e,t,n){return wI(t,e.type)||wI(t,e.literal)},168:function(e,t,n){return wI(t,e.expression)},299:function(e,t,n){return NI(t,n,e.types)},234:function(e,t,n){return wI(t,e.expression)||NI(t,n,e.typeArguments)},284:function(e,t,n){return wI(t,e.expression)},283:function(e,t,n){return NI(t,n,e.modifiers)},357:function(e,t,n){return NI(t,n,e.elements)},285:function(e,t,n){return wI(t,e.openingElement)||NI(t,n,e.children)||wI(t,e.closingElement)},289:function(e,t,n){return wI(t,e.openingFragment)||NI(t,n,e.children)||wI(t,e.closingFragment)},286:VI,287:VI,293:function(e,t,n){return NI(t,n,e.properties)},292:function(e,t,n){return wI(t,e.name)||wI(t,e.initializer)},294:function(e,t,n){return wI(t,e.expression)},295:function(e,t,n){return wI(t,e.dotDotDotToken)||wI(t,e.expression)},288:function(e,t,n){return wI(t,e.tagName)},296:function(e,t,n){return wI(t,e.namespace)||wI(t,e.name)},191:WI,192:WI,310:WI,316:WI,315:WI,317:WI,319:WI,318:function(e,t,n){return NI(t,n,e.parameters)||wI(t,e.type)},321:function(e,t,n){return("string"==typeof e.comment?void 0:NI(t,n,e.comment))||NI(t,n,e.tags)},348:function(e,t,n){return wI(t,e.tagName)||wI(t,e.name)||("string"==typeof e.comment?void 0:NI(t,n,e.comment))},311:function(e,t,n){return wI(t,e.name)},312:function(e,t,n){return wI(t,e.left)||wI(t,e.right)},342:$I,349:$I,331:function(e,t,n){return wI(t,e.tagName)||("string"==typeof e.comment?void 0:NI(t,n,e.comment))},330:function(e,t,n){return wI(t,e.tagName)||wI(t,e.class)||("string"==typeof e.comment?void 0:NI(t,n,e.comment))},329:function(e,t,n){return wI(t,e.tagName)||wI(t,e.class)||("string"==typeof e.comment?void 0:NI(t,n,e.comment))},346:function(e,t,n){return wI(t,e.tagName)||wI(t,e.constraint)||NI(t,n,e.typeParameters)||("string"==typeof e.comment?void 0:NI(t,n,e.comment))},347:function(e,t,n){return wI(t,e.tagName)||(e.typeExpression&&310===e.typeExpression.kind?wI(t,e.typeExpression)||wI(t,e.fullName)||("string"==typeof e.comment?void 0:NI(t,n,e.comment)):wI(t,e.fullName)||wI(t,e.typeExpression)||("string"==typeof e.comment?void 0:NI(t,n,e.comment)))},339:function(e,t,n){return wI(t,e.tagName)||wI(t,e.fullName)||wI(t,e.typeExpression)||("string"==typeof e.comment?void 0:NI(t,n,e.comment))},343:HI,345:HI,344:HI,341:HI,351:HI,350:HI,340:HI,324:function(e,t,n){return d(e.typeParameters,t)||d(e.parameters,t)||wI(t,e.type)},325:KI,326:KI,327:KI,323:function(e,t,n){return d(e.jsDocPropertyTags,t)},328:GI,333:GI,334:GI,335:GI,336:GI,337:GI,332:GI,338:GI,352:function(e,t,n){return wI(t,e.tagName)||wI(t,e.importClause)||wI(t,e.moduleSpecifier)||wI(t,e.attributes)||("string"==typeof e.comment?void 0:NI(t,n,e.comment))},356:function(e,t,n){return wI(t,e.expression)}};function OI(e,t,n){return NI(t,n,e.typeParameters)||NI(t,n,e.parameters)||wI(t,e.type)}function LI(e,t,n){return NI(t,n,e.types)}function jI(e,t,n){return wI(t,e.type)}function MI(e,t,n){return NI(t,n,e.elements)}function RI(e,t,n){return wI(t,e.expression)||wI(t,e.questionDotToken)||NI(t,n,e.typeArguments)||NI(t,n,e.arguments)}function BI(e,t,n){return NI(t,n,e.statements)}function JI(e,t,n){return wI(t,e.label)}function zI(e,t,n){return NI(t,n,e.modifiers)||wI(t,e.name)||NI(t,n,e.typeParameters)||NI(t,n,e.heritageClauses)||NI(t,n,e.members)}function qI(e,t,n){return NI(t,n,e.elements)}function UI(e,t,n){return wI(t,e.propertyName)||wI(t,e.name)}function VI(e,t,n){return wI(t,e.tagName)||NI(t,n,e.typeArguments)||wI(t,e.attributes)}function WI(e,t,n){return wI(t,e.type)}function $I(e,t,n){return wI(t,e.tagName)||(e.isNameFirst?wI(t,e.name)||wI(t,e.typeExpression):wI(t,e.typeExpression)||wI(t,e.name))||("string"==typeof e.comment?void 0:NI(t,n,e.comment))}function HI(e,t,n){return wI(t,e.tagName)||wI(t,e.typeExpression)||("string"==typeof e.comment?void 0:NI(t,n,e.comment))}function KI(e,t,n){return wI(t,e.name)}function GI(e,t,n){return wI(t,e.tagName)||("string"==typeof e.comment?void 0:NI(t,n,e.comment))}function XI(e,t,n){if(void 0===e||e.kind<=166)return;const r=II[e.kind];return void 0===r?void 0:r(e,t,n)}function QI(e,t,n){const r=YI(e),i=[];for(;i.length=0;--t)r.push(e[t]),i.push(o)}else{const n=t(e,o);if(n){if("skip"===n)continue;return n}if(e.kind>=167)for(const t of YI(e))r.push(t),i.push(e)}}}function YI(e){const t=[];return XI(e,n,n),t;function n(e){t.unshift(e)}}function ZI(e){e.externalModuleIndicator=FI(e)}function eO(e,t,n,r=!1,i){var o,a;let s;null==(o=Hn)||o.push(Hn.Phase.Parse,"createSourceFile",{path:e},!0),tr("beforeParse");const{languageVersion:c,setExternalModuleIndicator:l,impliedNodeFormat:_,jsDocParsingMode:u}="object"==typeof n?n:{languageVersion:n};if(100===c)s=AI.parseSourceFile(e,t,c,void 0,r,6,rt,u);else{const n=void 0===_?l:e=>(e.impliedNodeFormat=_,(l||ZI)(e));s=AI.parseSourceFile(e,t,c,void 0,r,i,n,u)}return tr("afterParse"),nr("Parse","beforeParse","afterParse"),null==(a=Hn)||a.pop(),s}function tO(e,t){return AI.parseIsolatedEntityName(e,t)}function nO(e,t){return AI.parseJsonText(e,t)}function rO(e){return void 0!==e.externalModuleIndicator}function iO(e,t,n,r=!1){const i=sO.updateSourceFile(e,t,n,r);return i.flags|=12582912&e.flags,i}function oO(e,t,n){const r=AI.JSDocParser.parseIsolatedJSDocComment(e,t,n);return r&&r.jsDoc&&AI.fixupParentReferences(r.jsDoc),r}function aO(e,t,n){return AI.JSDocParser.parseJSDocTypeExpressionForTests(e,t,n)}(e=>{var t,n,r,i,o,a=gs(99,!0);function s(e){return b++,e}var c,u,d,p,f,m,g,h,y,v,b,x,S,T,C,w,N=iw(11,{createBaseSourceFileNode:e=>s(new o(e,0,0)),createBaseIdentifierNode:e=>s(new r(e,0,0)),createBasePrivateIdentifierNode:e=>s(new i(e,0,0)),createBaseTokenNode:e=>s(new n(e,0,0)),createBaseNode:e=>s(new t(e,0,0))}),{createNodeArray:D,createNumericLiteral:F,createStringLiteral:E,createLiteralLikeNode:P,createIdentifier:A,createPrivateIdentifier:I,createToken:O,createArrayLiteralExpression:L,createObjectLiteralExpression:j,createPropertyAccessExpression:M,createPropertyAccessChain:R,createElementAccessExpression:J,createElementAccessChain:z,createCallExpression:q,createCallChain:U,createNewExpression:V,createParenthesizedExpression:W,createBlock:H,createVariableStatement:G,createExpressionStatement:X,createIfStatement:Q,createWhileStatement:Y,createForStatement:Z,createForOfStatement:ee,createVariableDeclaration:te,createVariableDeclarationList:ne}=N,re=!0,oe=!1;function ae(e,t,n=2,r,i=!1){ce(e,t,n,r,6,0),u=w,Ve();const o=Be();let a,s;if(1===ze())a=bt([],o,o),s=gt();else{let e;for(;1!==ze();){let t;switch(ze()){case 23:t=ai();break;case 112:case 97:case 106:t=gt();break;case 41:t=tt(()=>9===Ve()&&59!==Ve())?Or():ci();break;case 9:case 11:if(tt(()=>59!==Ve())){t=fn();break}default:t=ci()}e&&Qe(e)?e.push(t):e?e=[e,t]:(e=t,1!==ze()&&Oe(_a.Unexpected_token))}const t=Qe(e)?xt(L(e),o):un.checkDefined(e),n=X(t);xt(n,o),a=bt([n],o),s=mt(1,_a.Unexpected_token)}const c=pe(e,2,6,!1,a,s,u,rt);i&&de(c),c.nodeCount=b,c.identifierCount=S,c.identifiers=x,c.parseDiagnostics=Kx(g,c),h&&(c.jsDocDiagnostics=Kx(h,c));const l=c;return le(),l}function ce(e,s,l,_,h,v){switch(t=Mx.getNodeConstructor(),n=Mx.getTokenConstructor(),r=Mx.getIdentifierConstructor(),i=Mx.getPrivateIdentifierConstructor(),o=Mx.getSourceFileConstructor(),c=Jo(e),d=s,p=l,y=_,f=h,m=lk(h),g=[],T=0,x=new Map,S=0,b=0,u=0,re=!0,f){case 1:case 2:w=524288;break;case 6:w=134742016;break;default:w=0}oe=!1,a.setText(d),a.setOnError(Re),a.setScriptTarget(p),a.setLanguageVariant(m),a.setScriptKind(f),a.setJSDocParsingMode(v)}function le(){a.clearCommentDirectives(),a.setText(""),a.setOnError(void 0),a.setScriptKind(0),a.setJSDocParsingMode(0),d=void 0,p=void 0,y=void 0,f=void 0,m=void 0,u=0,g=void 0,h=void 0,T=0,x=void 0,C=void 0,re=!0}e.parseSourceFile=function(e,t,n,r,i=!1,o,s,p=0){var f;if(6===(o=bS(e,o))){const o=ae(e,t,n,r,i);return BL(o,null==(f=o.statements[0])?void 0:f.expression,o.parseDiagnostics,!1,void 0),o.referencedFiles=l,o.typeReferenceDirectives=l,o.libReferenceDirectives=l,o.amdDependencies=l,o.hasNoDefaultLib=!1,o.pragmas=_,o}ce(e,t,n,r,o,p);const m=function(e,t,n,r,i){const o=uO(c);o&&(w|=33554432),u=w,Ve();const s=Xt(0,Fi);un.assert(1===ze());const l=Je(),_=ue(gt(),l),p=pe(c,e,n,o,s,_,u,r);return pO(p,d),fO(p,function(e,t,n){g.push(Wx(c,d,e,t,n))}),p.commentDirectives=a.getCommentDirectives(),p.nodeCount=b,p.identifierCount=S,p.identifiers=x,p.parseDiagnostics=Kx(g,p),p.jsDocParsingMode=i,h&&(p.jsDocDiagnostics=Kx(h,p)),t&&de(p),p}(n,i,o,s||ZI,p);return le(),m},e.parseIsolatedEntityName=function(e,t){ce("",e,t,void 0,1,0),Ve();const n=an(!0),r=1===ze()&&!g.length;return le(),r?n:void 0},e.parseJsonText=ae;let _e=!1;function ue(e,t){if(!t)return e;un.assert(!e.jsDoc);const n=B(vf(e,d),t=>Oo.parseJSDocComment(e,t.pos,t.end-t.pos));return n.length&&(e.jsDoc=n),_e&&(_e=!1,e.flags|=536870912),e}function de(e){FT(e,!0)}function pe(e,t,n,r,i,o,s,c){let l=N.createSourceFile(i,o,s);if(wT(l,0,d.length),_(l),!r&&rO(l)&&67108864&l.transformFlags){const e=l;l=function(e){const t=y,n=sO.createSyntaxCursor(e);y={currentNode:function(e){const t=n.currentNode(e);return re&&t&&c(t)&&_O(t),t}};const r=[],i=g;g=[];let o=0,s=l(e.statements,0);for(;-1!==s;){const t=e.statements[o],n=e.statements[s];se(r,e.statements,o,s),o=_(e.statements,s);const c=k(i,e=>e.start>=t.pos),u=c>=0?k(i,e=>e.start>=n.pos,c):-1;c>=0&&se(g,i,c,u>=0?u:void 0),et(()=>{const t=w;for(w|=65536,a.resetTokenState(n.pos),Ve();1!==ze();){const t=a.getTokenFullStart(),n=Qt(0,Fi);if(r.push(n),t===a.getTokenFullStart()&&Ve(),o>=0){const t=e.statements[o];if(n.end===t.pos)break;n.end>t.pos&&(o=_(e.statements,o+1))}}w=t},2),s=o>=0?l(e.statements,o):-1}if(o>=0){const t=e.statements[o];se(r,e.statements,o);const n=k(i,e=>e.start>=t.pos);n>=0&&se(g,i,n)}return y=t,N.updateSourceFile(e,xI(D(r),e.statements));function c(e){return!(65536&e.flags||!(67108864&e.transformFlags))}function l(e,t){for(let n=t;n118}function ot(){return 80===ze()||(127!==ze()||!Fe())&&(135!==ze()||!Ie())&&ze()>118}function at(e,t,n=!0){return ze()===e?(n&&Ve(),!0):(t?Oe(t):Oe(_a._0_expected,Fa(e)),!1)}e.fixupParentReferences=de;const ct=Object.keys(pa).filter(e=>e.length>2);function lt(e){if(gF(e))return void je(Qa(d,e.template.pos),e.template.end,_a.Module_declaration_names_may_only_use_or_quoted_strings);const t=aD(e)?gc(e):void 0;if(!t||!ms(t,p))return void Oe(_a._0_expected,Fa(27));const n=Qa(d,e.pos);switch(t){case"const":case"let":case"var":return void je(n,e.end,_a.Variable_declaration_not_allowed_at_this_location);case"declare":return;case"interface":return void _t(_a.Interface_name_cannot_be_0,_a.Interface_must_be_given_a_name,19);case"is":return void je(n,a.getTokenStart(),_a.A_type_predicate_is_only_allowed_in_return_type_position_for_functions_and_methods);case"module":case"namespace":return void _t(_a.Namespace_name_cannot_be_0,_a.Namespace_must_be_given_a_name,19);case"type":return void _t(_a.Type_alias_name_cannot_be_0,_a.Type_alias_must_be_given_a_name,64)}const r=Lt(t,ct,st)??function(e){for(const t of ct)if(e.length>t.length+2&&Gt(e,t))return`${t} ${e.slice(t.length)}`}(t);r?je(n,e.end,_a.Unknown_keyword_or_identifier_Did_you_mean_0,r):0!==ze()&&je(n,e.end,_a.Unexpected_keyword_or_identifier)}function _t(e,t,n){ze()===n?Oe(t):Oe(e,a.getTokenValue())}function ut(e){return ze()===e?(We(),!0):(un.assert(Nh(e)),Oe(_a._0_expected,Fa(e)),!1)}function dt(e,t,n,r){if(ze()===t)return void Ve();const i=Oe(_a._0_expected,Fa(t));n&&i&&aT(i,Wx(c,d,r,1,_a.The_parser_expected_to_find_a_1_to_match_the_0_token_here,Fa(e),Fa(t)))}function pt(e){return ze()===e&&(Ve(),!0)}function ft(e){if(ze()===e)return gt()}function mt(e,t,n){return ft(e)||kt(e,!1,t||_a._0_expected,n||Fa(e))}function gt(){const e=Be(),t=ze();return Ve(),xt(O(t),e)}function ht(){return 27===ze()||20===ze()||1===ze()||a.hasPrecedingLineBreak()}function yt(){return!!ht()&&(27===ze()&&Ve(),!0)}function vt(){return yt()||at(27)}function bt(e,t,n,r){const i=D(e,r);return CT(i,t,n??a.getTokenFullStart()),i}function xt(e,t,n){return CT(e,t,n??a.getTokenFullStart()),w&&(e.flags|=w),oe&&(oe=!1,e.flags|=262144),e}function kt(e,t,n,...r){t?Le(a.getTokenFullStart(),0,n,...r):n&&Oe(n,...r);const i=Be();return xt(80===e?A("",void 0):Ll(e)?N.createTemplateLiteralLikeNode(e,"","",void 0):9===e?F("",void 0):11===e?E("",void 0):283===e?N.createMissingDeclaration():O(e),i)}function St(e){let t=x.get(e);return void 0===t&&x.set(e,t=e),t}function Tt(e,t,n){if(e){S++;const e=a.hasPrecedingJSDocLeadingAsterisks()?a.getTokenStart():Be(),t=ze(),n=St(a.getTokenValue()),r=a.hasExtendedUnicodeEscape();return qe(),xt(A(n,t,r),e)}if(81===ze())return Oe(n||_a.Private_identifiers_are_not_allowed_outside_class_bodies),Tt(!0);if(0===ze()&&a.tryScan(()=>80===a.reScanInvalidIdentifier()))return Tt(!0);S++;const r=1===ze(),i=a.isReservedWord(),o=a.getTokenText(),s=i?_a.Identifier_expected_0_is_a_reserved_word_that_cannot_be_used_here:_a.Identifier_expected;return kt(80,r,t||s,o)}function Ct(e){return Tt(it(),void 0,e)}function wt(e,t){return Tt(ot(),e,t)}function Nt(e){return Tt(ua(ze()),e)}function Dt(){return(a.hasUnicodeEscape()||a.hasExtendedUnicodeEscape())&&Oe(_a.Unicode_escape_sequence_cannot_appear_here),Tt(ua(ze()))}function Ft(){return ua(ze())||11===ze()||9===ze()||10===ze()}function Et(){return function(e){if(11===ze()||9===ze()||10===ze()){const e=fn();return e.text=St(e.text),e}return e&&23===ze()?function(){const e=Be();at(23);const t=Se(yr);return at(24),xt(N.createComputedPropertyName(t),e)}():81===ze()?Pt():Nt()}(!0)}function Pt(){const e=Be(),t=I(St(a.getTokenValue()));return Ve(),xt(t,e)}function At(e){return ze()===e&&nt(Ot)}function It(){return Ve(),!a.hasPrecedingLineBreak()&&Rt()}function Ot(){switch(ze()){case 87:return 94===Ve();case 95:return Ve(),90===ze()?tt(Bt):156===ze()?tt(Mt):jt();case 90:return Bt();case 126:return Ve(),Rt();case 139:case 153:return Ve(),23===ze()||Ft();default:return It()}}function jt(){return 60===ze()||42!==ze()&&130!==ze()&&19!==ze()&&Rt()}function Mt(){return Ve(),jt()}function Rt(){return 23===ze()||19===ze()||42===ze()||26===ze()||Ft()}function Bt(){return Ve(),86===ze()||100===ze()||120===ze()||60===ze()||128===ze()&&tt(gi)||134===ze()&&tt(hi)}function Jt(e,t){if(Yt(e))return!0;switch(e){case 0:case 1:case 3:return!(27===ze()&&t)&&xi();case 2:return 84===ze()||90===ze();case 4:return tt(Mn);case 5:return tt(Qi)||27===ze()&&!t;case 6:return 23===ze()||Ft();case 12:switch(ze()){case 23:case 42:case 26:case 25:return!0;default:return Ft()}case 18:return Ft();case 9:return 23===ze()||26===ze()||Ft();case 24:return ua(ze())||11===ze();case 7:return 19===ze()?tt(zt):t?ot()&&!Wt():gr()&&!Wt();case 8:return Bi();case 10:return 28===ze()||26===ze()||Bi();case 19:return 103===ze()||87===ze()||ot();case 15:switch(ze()){case 28:case 25:return!0}case 11:return 26===ze()||hr();case 16:return wn(!1);case 17:return wn(!0);case 20:case 21:return 28===ze()||tr();case 22:return _o();case 23:return(161!==ze()||!tt(Ii))&&(11===ze()||ua(ze()));case 13:return ua(ze())||19===ze();case 14:case 25:return!0;case 26:return un.fail("ParsingContext.Count used as a context");default:un.assertNever(e,"Non-exhaustive case in 'isListElement'.")}}function zt(){if(un.assert(19===ze()),20===Ve()){const e=Ve();return 28===e||19===e||96===e||119===e}return!0}function qt(){return Ve(),ot()}function Ut(){return Ve(),ua(ze())}function Vt(){return Ve(),da(ze())}function Wt(){return(119===ze()||96===ze())&&tt($t)}function $t(){return Ve(),hr()}function Ht(){return Ve(),tr()}function Kt(e){if(1===ze())return!0;switch(e){case 1:case 2:case 4:case 5:case 6:case 12:case 9:case 23:case 24:return 20===ze();case 3:return 20===ze()||84===ze()||90===ze();case 7:return 19===ze()||96===ze()||119===ze();case 8:return!!ht()||!!Dr(ze())||39===ze();case 19:return 32===ze()||21===ze()||19===ze()||96===ze()||119===ze();case 11:return 22===ze()||27===ze();case 15:case 21:case 10:return 24===ze();case 17:case 16:case 18:return 22===ze()||24===ze();case 20:return 28!==ze();case 22:return 19===ze()||20===ze();case 13:return 32===ze()||44===ze();case 14:return 30===ze()&&tt(yo);default:return!1}}function Xt(e,t){const n=T;T|=1<=0)}function nn(e){return 6===e?_a.An_enum_member_name_must_be_followed_by_a_or:void 0}function rn(){const e=bt([],Be());return e.isMissingList=!0,e}function on(e,t,n,r){if(at(n)){const n=tn(e,t);return at(r),n}return rn()}function an(e,t){const n=Be();let r=e?Nt(t):wt(t);for(;pt(25)&&30!==ze();)r=xt(N.createQualifiedName(r,cn(e,!1,!0)),n);return r}function sn(e,t){return xt(N.createQualifiedName(e,t),e.pos)}function cn(e,t,n){if(a.hasPrecedingLineBreak()&&ua(ze())&&tt(mi))return kt(80,!0,_a.Identifier_expected);if(81===ze()){const e=Pt();return t?e:kt(80,!0,_a.Identifier_expected)}return e?n?Nt():Dt():wt()}function ln(e){const t=Be();return xt(N.createTemplateExpression(mn(e),function(e){const t=Be(),n=[];let r;do{r=pn(e),n.push(r)}while(17===r.literal.kind);return bt(n,t)}(e)),t)}function _n(){const e=Be();return xt(N.createTemplateLiteralTypeSpan(fr(),dn(!1)),e)}function dn(e){return 20===ze()?(Ke(e),function(){const e=gn(ze());return un.assert(17===e.kind||18===e.kind,"Template fragment has wrong token kind"),e}()):mt(18,_a._0_expected,Fa(20))}function pn(e){const t=Be();return xt(N.createTemplateSpan(Se(yr),dn(e)),t)}function fn(){return gn(ze())}function mn(e){!e&&26656&a.getTokenFlags()&&Ke(!1);const t=gn(ze());return un.assert(16===t.kind,"Template head has wrong token kind"),t}function gn(e){const t=Be(),n=Ll(e)?N.createTemplateLiteralLikeNode(e,a.getTokenValue(),function(e){const t=15===e||18===e,n=a.getTokenText();return n.substring(1,n.length-(a.isUnterminated()?0:t?1:2))}(e),7176&a.getTokenFlags()):9===e?F(a.getTokenValue(),a.getNumericLiteralFlags()):11===e?E(a.getTokenValue(),void 0,a.hasExtendedUnicodeEscape()):Al(e)?P(e,a.getTokenValue()):un.fail();return a.hasExtendedUnicodeEscape()&&(n.hasExtendedUnicodeEscape=!0),a.isUnterminated()&&(n.isUnterminated=!0),Ve(),xt(n,t)}function hn(){return an(!0,_a.Type_expected)}function yn(){if(!a.hasPrecedingLineBreak()&&30===Ge())return on(20,fr,30,32)}function vn(){const e=Be();return xt(N.createTypeReferenceNode(hn(),yn()),e)}function bn(e){switch(e.kind){case 184:return Nd(e.typeName);case 185:case 186:{const{parameters:t,type:n}=e;return!!t.isMissingList||bn(n)}case 197:return bn(e.type);default:return!1}}function xn(){const e=Be();return Ve(),xt(N.createThisTypeNode(),e)}function kn(){const e=Be();let t;return 110!==ze()&&105!==ze()||(t=Nt(),at(59)),xt(N.createParameterDeclaration(void 0,void 0,t,void 0,Sn(),void 0),e)}function Sn(){a.setSkipJsDocLeadingAsterisks(!0);const e=Be();if(pt(144)){const t=N.createJSDocNamepathType(void 0);e:for(;;)switch(ze()){case 20:case 1:case 28:case 5:break e;default:We()}return a.setSkipJsDocLeadingAsterisks(!1),xt(t,e)}const t=pt(26);let n=dr();return a.setSkipJsDocLeadingAsterisks(!1),t&&(n=xt(N.createJSDocVariadicType(n),e)),64===ze()?(Ve(),xt(N.createJSDocOptionalType(n),e)):n}function Tn(){const e=Be(),t=to(!1,!0),n=wt();let r,i;pt(96)&&(tr()||!hr()?r=fr():i=Lr());const o=pt(64)?fr():void 0,a=N.createTypeParameterDeclaration(t,n,r,o);return a.expression=i,xt(a,e)}function Cn(){if(30===ze())return on(19,Tn,30,32)}function wn(e){return 26===ze()||Bi()||Xl(ze())||60===ze()||tr(!e)}function Nn(e){return Dn(e)}function Dn(e,t=!0){const n=Be(),r=Je(),i=e?we(()=>to(!0)):Ne(()=>to(!0));if(110===ze()){const e=N.createParameterDeclaration(i,void 0,Tt(!0),void 0,mr(),void 0),t=fe(i);return t&&Me(t,_a.Neither_decorators_nor_modifiers_may_be_applied_to_this_parameters),ue(xt(e,n),r)}const o=re;re=!1;const a=ft(26);if(!t&&!it()&&23!==ze()&&19!==ze())return;const s=ue(xt(N.createParameterDeclaration(i,a,function(e){const t=Ji(_a.Private_identifiers_cannot_be_used_as_parameters);return 0===sd(t)&&!$(e)&&Xl(ze())&&Ve(),t}(i),ft(58),mr(),vr()),n),r);return re=o,s}function Fn(e,t){if(function(e,t){return 39===e?(at(e),!0):!!pt(59)||!(!t||39!==ze())&&(Oe(_a._0_expected,Fa(59)),Ve(),!0)}(e,t))return Te(dr)}function En(e,t){const n=Fe(),r=Ie();he(!!(1&e)),be(!!(2&e));const i=32&e?tn(17,kn):tn(16,()=>t?Nn(r):Dn(r,!1));return he(n),be(r),i}function Pn(e){if(!at(21))return rn();const t=En(e,!0);return at(22),t}function An(){pt(28)||vt()}function In(e){const t=Be(),n=Je();181===e&&at(105);const r=Cn(),i=Pn(4),o=Fn(59,!0);return An(),ue(xt(180===e?N.createCallSignature(r,i,o):N.createConstructSignature(r,i,o),t),n)}function On(){return 23===ze()&&tt(Ln)}function Ln(){if(Ve(),26===ze()||24===ze())return!0;if(Xl(ze())){if(Ve(),ot())return!0}else{if(!ot())return!1;Ve()}return 59===ze()||28===ze()||58===ze()&&(Ve(),59===ze()||28===ze()||24===ze())}function jn(e,t,n){const r=on(16,()=>Nn(!1),23,24),i=mr();return An(),ue(xt(N.createIndexSignature(n,r,i),e),t)}function Mn(){if(21===ze()||30===ze()||139===ze()||153===ze())return!0;let e=!1;for(;Xl(ze());)e=!0,Ve();return 23===ze()||(Ft()&&(e=!0,Ve()),!!e&&(21===ze()||30===ze()||58===ze()||59===ze()||28===ze()||ht()))}function Rn(){if(21===ze()||30===ze())return In(180);if(105===ze()&&tt(Bn))return In(181);const e=Be(),t=Je(),n=to(!1);return At(139)?Xi(e,t,n,178,4):At(153)?Xi(e,t,n,179,4):On()?jn(e,t,n):function(e,t,n){const r=Et(),i=ft(58);let o;if(21===ze()||30===ze()){const e=Cn(),t=Pn(4),a=Fn(59,!0);o=N.createMethodSignature(n,r,i,e,t,a)}else{const e=mr();o=N.createPropertySignature(n,r,i,e),64===ze()&&(o.initializer=vr())}return An(),ue(xt(o,e),t)}(e,t,n)}function Bn(){return Ve(),21===ze()||30===ze()}function Jn(){return 25===Ve()}function zn(){switch(Ve()){case 21:case 30:case 25:return!0}return!1}function qn(){let e;return at(19)?(e=Xt(4,Rn),at(20)):e=rn(),e}function Un(){return Ve(),40===ze()||41===ze()?148===Ve():(148===ze()&&Ve(),23===ze()&&qt()&&103===Ve())}function Vn(){const e=Be();if(pt(26))return xt(N.createRestTypeNode(fr()),e);const t=fr();if(hP(t)&&t.pos===t.type.pos){const e=N.createOptionalTypeNode(t.type);return xI(e,t),e.flags=t.flags,e}return t}function Wn(){return 59===Ve()||58===ze()&&59===Ve()}function $n(){return 26===ze()?ua(Ve())&&Wn():ua(ze())&&Wn()}function Hn(){if(tt($n)){const e=Be(),t=Je(),n=ft(26),r=Nt(),i=ft(58);at(59);const o=Vn();return ue(xt(N.createNamedTupleMember(n,r,i,o),e),t)}return Vn()}function Kn(){const e=Be(),t=Je(),n=function(){let e;if(128===ze()){const t=Be();Ve(),e=bt([xt(O(128),t)],t)}return e}(),r=pt(105);un.assert(!n||r,"Per isStartOfFunctionOrConstructorType, a function type cannot have modifiers.");const i=Cn(),o=Pn(4),a=Fn(39,!1);return ue(xt(r?N.createConstructorTypeNode(n,i,o,a):N.createFunctionTypeNode(i,o,a),e),t)}function Gn(){const e=gt();return 25===ze()?void 0:e}function Xn(e){const t=Be();e&&Ve();let n=112===ze()||97===ze()||106===ze()?gt():gn(ze());return e&&(n=xt(N.createPrefixUnaryExpression(41,n),t)),xt(N.createLiteralTypeNode(n),t)}function Qn(){return Ve(),102===ze()}function Yn(){u|=4194304;const e=Be(),t=pt(114);at(102),at(21);const n=fr();let r;if(pt(28)){const e=a.getTokenStart();at(19);const t=ze();if(118===t||132===t?Ve():Oe(_a._0_expected,Fa(118)),at(59),r=ko(t,!0),pt(28),!at(20)){const t=ye(g);t&&t.code===_a._0_expected.code&&aT(t,Wx(c,d,e,1,_a.The_parser_expected_to_find_a_1_to_match_the_0_token_here,"{","}"))}}at(22);const i=pt(25)?hn():void 0,o=yn();return xt(N.createImportTypeNode(n,r,i,o,t),e)}function Zn(){return Ve(),9===ze()||10===ze()}function er(){switch(ze()){case 133:case 159:case 154:case 150:case 163:case 155:case 136:case 157:case 146:case 151:return nt(Gn)||vn();case 67:a.reScanAsteriskEqualsToken();case 42:return function(){const e=Be();return Ve(),xt(N.createJSDocAllType(),e)}();case 61:a.reScanQuestionToken();case 58:return function(){const e=Be();return Ve(),28===ze()||20===ze()||22===ze()||32===ze()||64===ze()||52===ze()?xt(N.createJSDocUnknownType(),e):xt(N.createJSDocNullableType(fr(),!1),e)}();case 100:return function(){const e=Be(),t=Je();if(nt(go)){const n=Pn(36),r=Fn(59,!1);return ue(xt(N.createJSDocFunctionType(n,r),e),t)}return xt(N.createTypeReferenceNode(Nt(),void 0),e)}();case 54:return function(){const e=Be();return Ve(),xt(N.createJSDocNonNullableType(er(),!1),e)}();case 15:case 11:case 9:case 10:case 112:case 97:case 106:return Xn();case 41:return tt(Zn)?Xn(!0):vn();case 116:return gt();case 110:{const t=xn();return 142!==ze()||a.hasPrecedingLineBreak()?t:(e=t,Ve(),xt(N.createTypePredicateNode(void 0,e,fr()),e.pos))}case 114:return tt(Qn)?Yn():function(){const e=Be();at(114);const t=an(!0),n=a.hasPrecedingLineBreak()?void 0:lo();return xt(N.createTypeQueryNode(t,n),e)}();case 19:return tt(Un)?function(){const e=Be();let t;at(19),148!==ze()&&40!==ze()&&41!==ze()||(t=gt(),148!==t.kind&&at(148)),at(23);const n=function(){const e=Be(),t=Nt();at(103);const n=fr();return xt(N.createTypeParameterDeclaration(void 0,t,n,void 0),e)}(),r=pt(130)?fr():void 0;let i;at(24),58!==ze()&&40!==ze()&&41!==ze()||(i=gt(),58!==i.kind&&at(58));const o=mr();vt();const a=Xt(4,Rn);return at(20),xt(N.createMappedTypeNode(t,n,r,i,o,a),e)}():function(){const e=Be();return xt(N.createTypeLiteralNode(qn()),e)}();case 23:return function(){const e=Be();return xt(N.createTupleTypeNode(on(21,Hn,23,24)),e)}();case 21:return function(){const e=Be();at(21);const t=fr();return at(22),xt(N.createParenthesizedType(t),e)}();case 102:return Yn();case 131:return tt(mi)?function(){const e=Be(),t=mt(131),n=110===ze()?xn():wt(),r=pt(142)?fr():void 0;return xt(N.createTypePredicateNode(t,n,r),e)}():vn();case 16:return function(){const e=Be();return xt(N.createTemplateLiteralType(mn(!1),function(){const e=Be(),t=[];let n;do{n=_n(),t.push(n)}while(17===n.literal.kind);return bt(t,e)}()),e)}();default:return vn()}var e}function tr(e){switch(ze()){case 133:case 159:case 154:case 150:case 163:case 136:case 148:case 155:case 158:case 116:case 157:case 106:case 110:case 114:case 146:case 19:case 23:case 30:case 52:case 51:case 105:case 11:case 9:case 10:case 112:case 97:case 151:case 42:case 58:case 54:case 26:case 140:case 102:case 131:case 15:case 16:return!0;case 100:return!e;case 41:return!e&&tt(Zn);case 21:return!e&&tt(nr);default:return ot()}}function nr(){return Ve(),22===ze()||wn(!1)||tr()}function rr(){const e=Be();let t=er();for(;!a.hasPrecedingLineBreak();)switch(ze()){case 54:Ve(),t=xt(N.createJSDocNonNullableType(t,!0),e);break;case 58:if(tt(Ht))return t;Ve(),t=xt(N.createJSDocNullableType(t,!0),e);break;case 23:if(at(23),tr()){const n=fr();at(24),t=xt(N.createIndexedAccessTypeNode(t,n),e)}else at(24),t=xt(N.createArrayTypeNode(t),e);break;default:return t}return t}function ir(){if(pt(96)){const e=Ce(fr);if(Pe()||58!==ze())return e}}function or(){const e=ze();switch(e){case 143:case 158:case 148:return function(e){const t=Be();return at(e),xt(N.createTypeOperatorNode(e,or()),t)}(e);case 140:return function(){const e=Be();return at(140),xt(N.createInferTypeNode(function(){const e=Be(),t=wt(),n=nt(ir);return xt(N.createTypeParameterDeclaration(void 0,t,n),e)}()),e)}()}return Te(rr)}function ar(e){if(_r()){const t=Kn();let n;return n=BD(t)?e?_a.Function_type_notation_must_be_parenthesized_when_used_in_a_union_type:_a.Function_type_notation_must_be_parenthesized_when_used_in_an_intersection_type:e?_a.Constructor_type_notation_must_be_parenthesized_when_used_in_a_union_type:_a.Constructor_type_notation_must_be_parenthesized_when_used_in_an_intersection_type,Me(t,n),t}}function sr(e,t,n){const r=Be(),i=52===e,o=pt(e);let a=o&&ar(i)||t();if(ze()===e||o){const o=[a];for(;pt(e);)o.push(ar(i)||t());a=xt(n(bt(o,r)),r)}return a}function cr(){return sr(51,or,N.createIntersectionTypeNode)}function lr(){return Ve(),105===ze()}function _r(){return 30===ze()||!(21!==ze()||!tt(ur))||105===ze()||128===ze()&&tt(lr)}function ur(){if(Ve(),22===ze()||26===ze())return!0;if(function(){if(Xl(ze())&&to(!1),ot()||110===ze())return Ve(),!0;if(23===ze()||19===ze()){const e=g.length;return Ji(),e===g.length}return!1}()){if(59===ze()||28===ze()||58===ze()||64===ze())return!0;if(22===ze()&&(Ve(),39===ze()))return!0}return!1}function dr(){const e=Be(),t=ot()&&nt(pr),n=fr();return t?xt(N.createTypePredicateNode(void 0,t,n),e):n}function pr(){const e=wt();if(142===ze()&&!a.hasPrecedingLineBreak())return Ve(),e}function fr(){if(81920&w)return xe(81920,fr);if(_r())return Kn();const e=Be(),t=sr(52,cr,N.createUnionTypeNode);if(!Pe()&&!a.hasPrecedingLineBreak()&&pt(96)){const n=Ce(fr);at(58);const r=Te(fr);at(59);const i=Te(fr);return xt(N.createConditionalTypeNode(t,n,r,i),e)}return t}function mr(){return pt(59)?fr():void 0}function gr(){switch(ze()){case 110:case 108:case 106:case 112:case 97:case 9:case 10:case 11:case 15:case 16:case 21:case 23:case 19:case 100:case 86:case 105:case 44:case 69:case 80:return!0;case 102:return tt(zn);default:return ot()}}function hr(){if(gr())return!0;switch(ze()){case 40:case 41:case 55:case 54:case 91:case 114:case 116:case 46:case 47:case 30:case 135:case 127:case 81:case 60:return!0;default:return!!Er()||ot()}}function yr(){const e=Ae();e&&ve(!1);const t=Be();let n,r=br(!0);for(;n=ft(28);)r=Ar(r,n,br(!0),t);return e&&ve(!0),r}function vr(){return pt(64)?br(!0):void 0}function br(e){if(127===ze()&&(Fe()||tt(yi)))return function(){const e=Be();return Ve(),a.hasPrecedingLineBreak()||42!==ze()&&!hr()?xt(N.createYieldExpression(void 0,void 0),e):xt(N.createYieldExpression(ft(42),br(!0)),e)}();const t=function(e){const t=21===ze()||30===ze()||134===ze()?tt(Sr):39===ze()?1:0;if(0!==t)return 1===t?Cr(!0,!0):nt(()=>function(e){const t=a.getTokenStart();if(null==C?void 0:C.has(t))return;const n=Cr(!1,e);return n||(C||(C=new Set)).add(t),n}(e))}(e)||function(e){if(134===ze()&&1===tt(Tr)){const t=Be(),n=Je(),r=no();return kr(t,Nr(0),e,n,r)}}(e);if(t)return t;const n=Be(),r=Je(),i=Nr(0);return 80===i.kind&&39===ze()?kr(n,i,e,r,void 0):R_(i)&&eb(He())?Ar(i,gt(),br(e),n):function(e,t,n){const r=ft(58);if(!r)return e;let i;return xt(N.createConditionalExpression(e,r,xe(40960,()=>br(!1)),i=mt(59),Dd(i)?br(n):kt(80,!1,_a._0_expected,Fa(59))),t)}(i,n,e)}function xr(){return Ve(),!a.hasPrecedingLineBreak()&&ot()}function kr(e,t,n,r,i){un.assert(39===ze(),"parseSimpleArrowFunctionExpression should only have been called if we had a =>");const o=N.createParameterDeclaration(void 0,void 0,t,void 0,void 0,void 0);xt(o,t.pos);const a=bt([o],o.pos,o.end),s=mt(39),c=wr(!!i,n);return ue(xt(N.createArrowFunction(i,void 0,a,void 0,s,c),e),r)}function Sr(){if(134===ze()){if(Ve(),a.hasPrecedingLineBreak())return 0;if(21!==ze()&&30!==ze())return 0}const e=ze(),t=Ve();if(21===e){if(22===t)switch(Ve()){case 39:case 59:case 19:return 1;default:return 0}if(23===t||19===t)return 2;if(26===t)return 1;if(Xl(t)&&134!==t&&tt(qt))return 130===Ve()?0:1;if(!ot()&&110!==t)return 0;switch(Ve()){case 59:return 1;case 58:return Ve(),59===ze()||28===ze()||64===ze()||22===ze()?1:0;case 28:case 64:case 22:return 2}return 0}return un.assert(30===e),ot()||87===ze()?1===m?tt(()=>{pt(87);const e=Ve();if(96===e)switch(Ve()){case 64:case 32:case 44:return!1;default:return!0}else if(28===e||64===e)return!0;return!1})?1:0:2:0}function Tr(){if(134===ze()){if(Ve(),a.hasPrecedingLineBreak()||39===ze())return 0;const e=Nr(0);if(!a.hasPrecedingLineBreak()&&80===e.kind&&39===ze())return 1}return 0}function Cr(e,t){const n=Be(),r=Je(),i=no(),o=$(i,_D)?2:0,a=Cn();let s;if(at(21)){if(e)s=En(o,e);else{const t=En(o,e);if(!t)return;s=t}if(!at(22)&&!e)return}else{if(!e)return;s=rn()}const c=59===ze(),l=Fn(59,!1);if(l&&!e&&bn(l))return;let _=l;for(;197===(null==_?void 0:_.kind);)_=_.type;const u=_&&bP(_);if(!e&&39!==ze()&&(u||19!==ze()))return;const d=ze(),p=mt(39),f=39===d||19===d?wr($(i,_D),t):wt();return t||!c||59===ze()?ue(xt(N.createArrowFunction(i,a,s,l,p,f),n),r):void 0}function wr(e,t){if(19===ze())return di(e?2:0);if(27!==ze()&&100!==ze()&&86!==ze()&&xi()&&(19===ze()||100===ze()||86===ze()||60===ze()||!hr()))return di(16|(e?2:0));const n=Fe();he(!1);const r=re;re=!1;const i=e?we(()=>br(t)):Ne(()=>br(t));return re=r,he(n),i}function Nr(e){const t=Be();return Fr(e,Lr(),t)}function Dr(e){return 103===e||165===e}function Fr(e,t,n){for(;;){He();const r=cy(ze());if(!(43===ze()?r>=e:r>e))break;if(103===ze()&&Ee())break;if(130===ze()||152===ze()){if(a.hasPrecedingLineBreak())break;{const e=ze();Ve(),t=152===e?Pr(t,fr()):Ir(t,fr())}}else t=Ar(t,gt(),Nr(r),n)}return t}function Er(){return(!Ee()||103!==ze())&&cy(ze())>0}function Pr(e,t){return xt(N.createSatisfiesExpression(e,t),e.pos)}function Ar(e,t,n,r){return xt(N.createBinaryExpression(e,t,n),r)}function Ir(e,t){return xt(N.createAsExpression(e,t),e.pos)}function Or(){const e=Be();return xt(N.createPrefixUnaryExpression(ze(),Ue(jr)),e)}function Lr(){if(function(){switch(ze()){case 40:case 41:case 55:case 54:case 91:case 114:case 116:case 135:return!1;case 30:if(1!==m)return!1;default:return!0}}()){const e=Be(),t=Mr();return 43===ze()?Fr(cy(ze()),t,e):t}const e=ze(),t=jr();if(43===ze()){const n=Qa(d,t.pos),{end:r}=t;217===t.kind?je(n,r,_a.A_type_assertion_expression_is_not_allowed_in_the_left_hand_side_of_an_exponentiation_expression_Consider_enclosing_the_expression_in_parentheses):(un.assert(Nh(e)),je(n,r,_a.An_unary_expression_with_the_0_operator_is_not_allowed_in_the_left_hand_side_of_an_exponentiation_expression_Consider_enclosing_the_expression_in_parentheses,Fa(e)))}return t}function jr(){switch(ze()){case 40:case 41:case 55:case 54:return Or();case 91:return function(){const e=Be();return xt(N.createDeleteExpression(Ue(jr)),e)}();case 114:return function(){const e=Be();return xt(N.createTypeOfExpression(Ue(jr)),e)}();case 116:return function(){const e=Be();return xt(N.createVoidExpression(Ue(jr)),e)}();case 30:return 1===m?Jr(!0,void 0,void 0,!0):function(){un.assert(1!==m,"Type assertions should never be parsed in JSX; they should be parsed as comparisons or JSX elements/fragments.");const e=Be();at(30);const t=fr();at(32);const n=jr();return xt(N.createTypeAssertion(t,n),e)}();case 135:if(135===ze()&&(Ie()||tt(yi)))return function(){const e=Be();return xt(N.createAwaitExpression(Ue(jr)),e)}();default:return Mr()}}function Mr(){if(46===ze()||47===ze()){const e=Be();return xt(N.createPrefixUnaryExpression(ze(),Ue(Rr)),e)}if(1===m&&30===ze()&&tt(Vt))return Jr(!0);const e=Rr();if(un.assert(R_(e)),(46===ze()||47===ze())&&!a.hasPrecedingLineBreak()){const t=ze();return Ve(),xt(N.createPostfixUnaryExpression(e,t),e.pos)}return e}function Rr(){const e=Be();let t;return 102===ze()?tt(Bn)?(u|=4194304,t=gt()):tt(Jn)?(Ve(),Ve(),t=xt(N.createMetaProperty(102,Nt()),e),"defer"===t.name.escapedText?21!==ze()&&30!==ze()||(u|=4194304):u|=8388608):t=Br():t=108===ze()?function(){const e=Be();let t=gt();if(30===ze()){const e=Be(),n=nt(ni);void 0!==n&&(je(e,Be(),_a.super_may_not_use_type_arguments),Yr()||(t=N.createExpressionWithTypeArguments(t,n)))}return 21===ze()||25===ze()||23===ze()?t:(mt(25,_a.super_must_be_followed_by_an_argument_list_or_member_access),xt(M(t,cn(!0,!0,!0)),e))}():Br(),ei(e,t)}function Br(){return Qr(Be(),ri(),!0)}function Jr(e,t,n,r=!1){const i=Be(),o=function(e){const t=Be();if(at(30),32===ze())return Ze(),xt(N.createJsxOpeningFragment(),t);const n=Ur(),r=524288&w?void 0:lo(),i=function(){const e=Be();return xt(N.createJsxAttributes(Xt(13,Wr)),e)}();let o;return 32===ze()?(Ze(),o=N.createJsxOpeningElement(n,r,i)):(at(44),at(32,void 0,!1)&&(e?Ve():Ze()),o=N.createJsxSelfClosingElement(n,r,i)),xt(o,t)}(e);let a;if(287===o.kind){let t,r=qr(o);const s=r[r.length-1];if(285===(null==s?void 0:s.kind)&&!xO(s.openingElement.tagName,s.closingElement.tagName)&&xO(o.tagName,s.closingElement.tagName)){const e=s.children.end,n=xt(N.createJsxElement(s.openingElement,s.children,xt(N.createJsxClosingElement(xt(A(""),e,e)),e,e)),s.openingElement.pos,e);r=bt([...r.slice(0,r.length-1),n],r.pos,e),t=s.closingElement}else t=function(e,t){const n=Be();at(31);const r=Ur();return at(32,void 0,!1)&&(t||!xO(e.tagName,r)?Ve():Ze()),xt(N.createJsxClosingElement(r),n)}(o,e),xO(o.tagName,t.tagName)||(n&&UE(n)&&xO(t.tagName,n.tagName)?Me(o.tagName,_a.JSX_element_0_has_no_corresponding_closing_tag,Gd(d,o.tagName)):Me(t.tagName,_a.Expected_corresponding_JSX_closing_tag_for_0,Gd(d,o.tagName)));a=xt(N.createJsxElement(o,r,t),i)}else 290===o.kind?a=xt(N.createJsxFragment(o,qr(o),function(e){const t=Be();return at(31),at(32,_a.Expected_corresponding_closing_tag_for_JSX_fragment,!1)&&(e?Ve():Ze()),xt(N.createJsxJsxClosingFragment(),t)}(e)),i):(un.assert(286===o.kind),a=o);if(!r&&e&&30===ze()){const e=void 0===t?a.pos:t,n=nt(()=>Jr(!0,e));if(n){const t=kt(28,!1);return wT(t,n.pos,0),je(Qa(d,e),n.end,_a.JSX_expressions_must_have_one_parent_element),xt(N.createBinaryExpression(a,t,n),i)}}return a}function zr(e,t){switch(t){case 1:if($E(e))Me(e,_a.JSX_fragment_has_no_corresponding_closing_tag);else{const t=e.tagName;je(Math.min(Qa(d,t.pos),t.end),t.end,_a.JSX_element_0_has_no_corresponding_closing_tag,Gd(d,e.tagName))}return;case 31:case 7:return;case 12:case 13:return function(){const e=Be(),t=N.createJsxText(a.getTokenValue(),13===v);return v=a.scanJsxToken(),xt(t,e)}();case 19:return Vr(!1);case 30:return Jr(!1,void 0,e);default:return un.assertNever(t)}}function qr(e){const t=[],n=Be(),r=T;for(T|=16384;;){const n=zr(e,v=a.reScanJsxToken());if(!n)break;if(t.push(n),UE(e)&&285===(null==n?void 0:n.kind)&&!xO(n.openingElement.tagName,n.closingElement.tagName)&&xO(e.tagName,n.closingElement.tagName))break}return T=r,bt(t,n)}function Ur(){const e=Be(),t=function(){const e=Be();Ye();const t=110===ze(),n=Dt();return pt(59)?(Ye(),xt(N.createJsxNamespacedName(n,Dt()),e)):t?xt(N.createToken(110),e):n}();if(YE(t))return t;let n=t;for(;pt(25);)n=xt(M(n,cn(!0,!1,!1)),e);return n}function Vr(e){const t=Be();if(!at(19))return;let n,r;return 20!==ze()&&(e||(n=ft(26)),r=yr()),e?at(20):at(20,void 0,!1)&&Ze(),xt(N.createJsxExpression(n,r),t)}function Wr(){if(19===ze())return function(){const e=Be();at(19),at(26);const t=yr();return at(20),xt(N.createJsxSpreadAttribute(t),e)}();const e=Be();return xt(N.createJsxAttribute(function(){const e=Be();Ye();const t=Dt();return pt(59)?(Ye(),xt(N.createJsxNamespacedName(t,Dt()),e)):t}(),function(){if(64===ze()){if(11===(v=a.scanJsxAttributeValue()))return fn();if(19===ze())return Vr(!0);if(30===ze())return Jr(!0);Oe(_a.or_JSX_element_expected)}}()),e)}function $r(){return Ve(),ua(ze())||23===ze()||Yr()}function Hr(){return 29===ze()&&tt($r)}function Kr(e){if(64&e.flags)return!0;if(MF(e)){let t=e.expression;for(;MF(t)&&!(64&t.flags);)t=t.expression;if(64&t.flags){for(;MF(e);)e.flags|=64,e=e.expression;return!0}}return!1}function Gr(e,t,n){const r=cn(!0,!0,!0),i=n||Kr(t),o=i?R(t,n,r):M(t,r);return i&&sD(o.name)&&Me(o.name,_a.An_optional_chain_cannot_contain_private_identifiers),OF(t)&&t.typeArguments&&je(t.typeArguments.pos-1,Qa(d,t.typeArguments.end)+1,_a.An_instantiation_expression_cannot_be_followed_by_a_property_access),xt(o,e)}function Xr(e,t,n){let r;if(24===ze())r=kt(80,!0,_a.An_element_access_expression_should_take_an_argument);else{const e=Se(yr);jh(e)&&(e.text=St(e.text)),r=e}return at(24),xt(n||Kr(t)?z(t,n,r):J(t,r),e)}function Qr(e,t,n){for(;;){let r,i=!1;if(n&&Hr()?(r=mt(29),i=ua(ze())):i=pt(25),i)t=Gr(e,t,r);else if(!r&&Ae()||!pt(23)){if(!Yr()){if(!r){if(54===ze()&&!a.hasPrecedingLineBreak()){Ve(),t=xt(N.createNonNullExpression(t),e);continue}const n=nt(ni);if(n){t=xt(N.createExpressionWithTypeArguments(t,n),e);continue}}return t}t=r||234!==t.kind?Zr(e,t,r,void 0):Zr(e,t.expression,r,t.typeArguments)}else t=Xr(e,t,r)}}function Yr(){return 15===ze()||16===ze()}function Zr(e,t,n,r){const i=N.createTaggedTemplateExpression(t,r,15===ze()?(Ke(!0),fn()):ln(!0));return(n||64&t.flags)&&(i.flags|=64),i.questionDotToken=n,xt(i,e)}function ei(e,t){for(;;){let n;t=Qr(e,t,!0);const r=ft(29);if(!r||(n=nt(ni),!Yr())){if(n||21===ze()){r||234!==t.kind||(n=t.typeArguments,t=t.expression);const i=ti();t=xt(r||Kr(t)?U(t,r,n,i):q(t,n,i),e);continue}if(r){const n=kt(80,!1,_a.Identifier_expected);t=xt(R(t,r,n),e)}break}t=Zr(e,t,r,n)}return t}function ti(){at(21);const e=tn(11,oi);return at(22),e}function ni(){if(524288&w)return;if(30!==Ge())return;Ve();const e=tn(20,fr);return 32===He()?(Ve(),e&&function(){switch(ze()){case 21:case 15:case 16:return!0;case 30:case 32:case 40:case 41:return!1}return a.hasPrecedingLineBreak()||Er()||!hr()}()?e:void 0):void 0}function ri(){switch(ze()){case 15:26656&a.getTokenFlags()&&Ke(!1);case 9:case 10:case 11:return fn();case 110:case 108:case 106:case 112:case 97:return gt();case 21:return function(){const e=Be(),t=Je();at(21);const n=Se(yr);return at(22),ue(xt(W(n),e),t)}();case 23:return ai();case 19:return ci();case 134:if(!tt(hi))break;return li();case 60:return function(){const e=Be(),t=Je(),n=to(!0);if(86===ze())return oo(e,t,n,232);const r=kt(283,!0,_a.Expression_expected);return ST(r,e),r.modifiers=n,r}();case 86:return oo(Be(),Je(),void 0,232);case 100:return li();case 105:return function(){const e=Be();if(at(105),pt(25)){const t=Nt();return xt(N.createMetaProperty(105,t),e)}let t,n=Qr(Be(),ri(),!1);234===n.kind&&(t=n.typeArguments,n=n.expression),29===ze()&&Oe(_a.Invalid_optional_chain_from_new_expression_Did_you_mean_to_call_0,Gd(d,n));const r=21===ze()?ti():void 0;return xt(V(n,t,r),e)}();case 44:case 69:if(14===(v=a.reScanSlashToken()))return fn();break;case 16:return ln(!1);case 81:return Pt()}return wt(_a.Expression_expected)}function ii(){return 26===ze()?function(){const e=Be();at(26);const t=br(!0);return xt(N.createSpreadElement(t),e)}():28===ze()?xt(N.createOmittedExpression(),Be()):br(!0)}function oi(){return xe(40960,ii)}function ai(){const e=Be(),t=a.getTokenStart(),n=at(23),r=a.hasPrecedingLineBreak(),i=tn(15,ii);return dt(23,24,n,t),xt(L(i,r),e)}function si(){const e=Be(),t=Je();if(ft(26)){const n=br(!0);return ue(xt(N.createSpreadAssignment(n),e),t)}const n=to(!0);if(At(139))return Xi(e,t,n,178,0);if(At(153))return Xi(e,t,n,179,0);const r=ft(42),i=ot(),o=Et(),a=ft(58),s=ft(54);if(r||21===ze()||30===ze())return Hi(e,t,n,r,o,a,s);let c;if(i&&59!==ze()){const e=ft(64),t=e?Se(()=>br(!0)):void 0;c=N.createShorthandPropertyAssignment(o,t),c.equalsToken=e}else{at(59);const e=Se(()=>br(!0));c=N.createPropertyAssignment(o,e)}return c.modifiers=n,c.questionToken=a,c.exclamationToken=s,ue(xt(c,e),t)}function ci(){const e=Be(),t=a.getTokenStart(),n=at(19),r=a.hasPrecedingLineBreak(),i=tn(12,si,!0);return dt(19,20,n,t),xt(j(i,r),e)}function li(){const e=Ae();ve(!1);const t=Be(),n=Je(),r=to(!1);at(100);const i=ft(42),o=i?1:0,a=$(r,_D)?2:0,s=o&&a?ke(81920,_i):o?ke(16384,_i):a?we(_i):_i();const c=Cn(),l=Pn(o|a),_=Fn(59,!1),u=di(o|a);return ve(e),ue(xt(N.createFunctionExpression(r,i,s,c,l,_,u),t),n)}function _i(){return it()?Ct():void 0}function ui(e,t){const n=Be(),r=Je(),i=a.getTokenStart(),o=at(19,t);if(o||e){const e=a.hasPrecedingLineBreak(),t=Xt(1,Fi);dt(19,20,o,i);const s=ue(xt(H(t,e),n),r);return 64===ze()&&(Oe(_a.Declaration_or_statement_expected_This_follows_a_block_of_statements_so_if_you_intended_to_write_a_destructuring_assignment_you_might_need_to_wrap_the_whole_assignment_in_parentheses),Ve()),s}{const e=rn();return ue(xt(H(e,void 0),n),r)}}function di(e,t){const n=Fe();he(!!(1&e));const r=Ie();be(!!(2&e));const i=re;re=!1;const o=Ae();o&&ve(!1);const a=ui(!!(16&e),t);return o&&ve(!0),re=i,he(n),be(r),a}function pi(e){const t=Be(),n=Je();at(253===e?83:88);const r=ht()?void 0:wt();return vt(),ue(xt(253===e?N.createBreakStatement(r):N.createContinueStatement(r),t),n)}function fi(){return 84===ze()?function(){const e=Be(),t=Je();at(84);const n=Se(yr);at(59);const r=Xt(3,Fi);return ue(xt(N.createCaseClause(n,r),e),t)}():function(){const e=Be();at(90),at(59);const t=Xt(3,Fi);return xt(N.createDefaultClause(t),e)}()}function mi(){return Ve(),ua(ze())&&!a.hasPrecedingLineBreak()}function gi(){return Ve(),86===ze()&&!a.hasPrecedingLineBreak()}function hi(){return Ve(),100===ze()&&!a.hasPrecedingLineBreak()}function yi(){return Ve(),(ua(ze())||9===ze()||10===ze()||11===ze())&&!a.hasPrecedingLineBreak()}function vi(){for(;;)switch(ze()){case 115:case 121:case 87:case 100:case 86:case 94:return!0;case 160:return wi();case 135:return Di();case 120:case 156:case 166:return xr();case 144:case 145:return Li();case 128:case 129:case 134:case 138:case 123:case 124:case 125:case 148:const e=ze();if(Ve(),a.hasPrecedingLineBreak())return!1;if(138===e&&156===ze())return!0;continue;case 162:return Ve(),19===ze()||80===ze()||95===ze();case 102:return Ve(),166===ze()||11===ze()||42===ze()||19===ze()||ua(ze());case 95:let t=Ve();if(156===t&&(t=tt(Ve)),64===t||42===t||19===t||90===t||130===t||60===t)return!0;continue;case 126:Ve();continue;default:return!1}}function bi(){return tt(vi)}function xi(){switch(ze()){case 60:case 27:case 19:case 115:case 121:case 160:case 100:case 86:case 94:case 101:case 92:case 117:case 99:case 88:case 83:case 107:case 118:case 109:case 111:case 113:case 89:case 85:case 98:case 134:case 138:case 120:case 144:case 145:case 156:case 162:case 166:return!0;case 102:return bi()||tt(zn);case 87:case 95:return bi();case 129:case 125:case 123:case 124:case 126:case 148:return bi()||!tt(mi);default:return hr()}}function ki(){return Ve(),it()||19===ze()||23===ze()}function Si(){return Ci(!0)}function Ti(){return Ve(),64===ze()||27===ze()||59===ze()}function Ci(e){return Ve(),e&&165===ze()?tt(Ti):(it()||19===ze())&&!a.hasPrecedingLineBreak()}function wi(){return tt(Ci)}function Ni(e){return 160===Ve()&&Ci(e)}function Di(){return tt(Ni)}function Fi(){switch(ze()){case 27:return function(){const e=Be(),t=Je();return at(27),ue(xt(N.createEmptyStatement(),e),t)}();case 19:return ui(!1);case 115:return Wi(Be(),Je(),void 0);case 121:if(tt(ki))return Wi(Be(),Je(),void 0);break;case 135:if(Di())return Wi(Be(),Je(),void 0);break;case 160:if(wi())return Wi(Be(),Je(),void 0);break;case 100:return $i(Be(),Je(),void 0);case 86:return io(Be(),Je(),void 0);case 101:return function(){const e=Be(),t=Je();at(101);const n=a.getTokenStart(),r=at(21),i=Se(yr);dt(21,22,r,n);const o=Fi(),s=pt(93)?Fi():void 0;return ue(xt(Q(i,o,s),e),t)}();case 92:return function(){const e=Be(),t=Je();at(92);const n=Fi();at(117);const r=a.getTokenStart(),i=at(21),o=Se(yr);return dt(21,22,i,r),pt(27),ue(xt(N.createDoStatement(n,o),e),t)}();case 117:return function(){const e=Be(),t=Je();at(117);const n=a.getTokenStart(),r=at(21),i=Se(yr);dt(21,22,r,n);const o=Fi();return ue(xt(Y(i,o),e),t)}();case 99:return function(){const e=Be(),t=Je();at(99);const n=ft(135);let r,i;if(at(21),27!==ze()&&(r=115===ze()||121===ze()||87===ze()||160===ze()&&tt(Si)||135===ze()&&tt(Ni)?Ui(!0):ke(8192,yr)),n?at(165):pt(165)){const e=Se(()=>br(!0));at(22),i=ee(n,r,e,Fi())}else if(pt(103)){const e=Se(yr);at(22),i=N.createForInStatement(r,e,Fi())}else{at(27);const e=27!==ze()&&22!==ze()?Se(yr):void 0;at(27);const t=22!==ze()?Se(yr):void 0;at(22),i=Z(r,e,t,Fi())}return ue(xt(i,e),t)}();case 88:return pi(252);case 83:return pi(253);case 107:return function(){const e=Be(),t=Je();at(107);const n=ht()?void 0:Se(yr);return vt(),ue(xt(N.createReturnStatement(n),e),t)}();case 118:return function(){const e=Be(),t=Je();at(118);const n=a.getTokenStart(),r=at(21),i=Se(yr);dt(21,22,r,n);const o=ke(67108864,Fi);return ue(xt(N.createWithStatement(i,o),e),t)}();case 109:return function(){const e=Be(),t=Je();at(109),at(21);const n=Se(yr);at(22);const r=function(){const e=Be();at(19);const t=Xt(2,fi);return at(20),xt(N.createCaseBlock(t),e)}();return ue(xt(N.createSwitchStatement(n,r),e),t)}();case 111:return function(){const e=Be(),t=Je();at(111);let n=a.hasPrecedingLineBreak()?void 0:Se(yr);return void 0===n&&(S++,n=xt(A(""),Be())),yt()||lt(n),ue(xt(N.createThrowStatement(n),e),t)}();case 113:case 85:case 98:return function(){const e=Be(),t=Je();at(113);const n=ui(!1),r=85===ze()?function(){const e=Be();let t;at(85),pt(21)?(t=qi(),at(22)):t=void 0;const n=ui(!1);return xt(N.createCatchClause(t,n),e)}():void 0;let i;return r&&98!==ze()||(at(98,_a.catch_or_finally_expected),i=ui(!1)),ue(xt(N.createTryStatement(n,r,i),e),t)}();case 89:return function(){const e=Be(),t=Je();return at(89),vt(),ue(xt(N.createDebuggerStatement(),e),t)}();case 60:return Pi();case 134:case 120:case 156:case 144:case 145:case 138:case 87:case 94:case 95:case 102:case 123:case 124:case 125:case 128:case 129:case 126:case 148:case 162:if(bi())return Pi()}return function(){const e=Be();let t,n=Je();const r=21===ze(),i=Se(yr);return aD(i)&&pt(59)?t=N.createLabeledStatement(i,Fi()):(yt()||lt(i),t=X(i),r&&(n=!1)),ue(xt(t,e),n)}()}function Ei(e){return 138===e.kind}function Pi(){const e=Be(),t=Je(),n=to(!0);if($(n,Ei)){const r=function(e){return ke(33554432,()=>{const t=Yt(T,e);if(t)return Zt(t)})}(e);if(r)return r;for(const e of n)e.flags|=33554432;return ke(33554432,()=>Ai(e,t,n))}return Ai(e,t,n)}function Ai(e,t,n){switch(ze()){case 115:case 121:case 87:case 160:case 135:return Wi(e,t,n);case 100:return $i(e,t,n);case 86:return io(e,t,n);case 120:return function(e,t,n){at(120);const r=wt(),i=Cn(),o=ao(),a=qn();return ue(xt(N.createInterfaceDeclaration(n,r,i,o,a),e),t)}(e,t,n);case 156:return function(e,t,n){at(156),a.hasPrecedingLineBreak()&&Oe(_a.Line_break_not_permitted_here);const r=wt(),i=Cn();at(64);const o=141===ze()&&nt(Gn)||fr();return vt(),ue(xt(N.createTypeAliasDeclaration(n,r,i,o),e),t)}(e,t,n);case 94:return function(e,t,n){at(94);const r=wt();let i;return at(19)?(i=xe(81920,()=>tn(6,uo)),at(20)):i=rn(),ue(xt(N.createEnumDeclaration(n,r,i),e),t)}(e,t,n);case 162:case 144:case 145:return function(e,t,n){let r=0;if(162===ze())return mo(e,t,n);if(pt(145))r|=32;else if(at(144),11===ze())return mo(e,t,n);return fo(e,t,n,r)}(e,t,n);case 102:return function(e,t,n){at(102);const r=a.getTokenFullStart();let i,o;if(ot()&&(i=wt()),"type"===(null==i?void 0:i.escapedText)&&(161!==ze()||ot()&&tt(Oi))&&(ot()||42===ze()||19===ze())?(o=156,i=ot()?wt():void 0):"defer"!==(null==i?void 0:i.escapedText)||(161===ze()?tt(Ii):28===ze()||64===ze())||(o=166,i=ot()?wt():void 0),i&&28!==ze()&&161!==ze()&&166!==o)return function(e,t,n,r,i){at(64);const o=149===ze()&&tt(go)?function(){const e=Be();at(149),at(21);const t=So();return at(22),xt(N.createExternalModuleReference(t),e)}():an(!1);vt();return ue(xt(N.createImportEqualsDeclaration(n,i,r,o),e),t)}(e,t,n,i,156===o);const s=vo(i,r,o,void 0),c=So(),l=bo();return vt(),ue(xt(N.createImportDeclaration(n,s,c,l),e),t)}(e,t,n);case 95:switch(Ve(),ze()){case 90:case 64:return function(e,t,n){const r=Ie();let i;be(!0),pt(64)?i=!0:at(90);const o=br(!0);return vt(),be(r),ue(xt(N.createExportAssignment(n,i,o),e),t)}(e,t,n);case 130:return function(e,t,n){at(130),at(145);const r=wt();vt();const i=N.createNamespaceExportDeclaration(r);return i.modifiers=n,ue(xt(i,e),t)}(e,t,n);default:return function(e,t,n){const r=Ie();let i,o,s;be(!0);const c=pt(156),l=Be();pt(42)?(pt(130)&&(i=function(e){return xt(N.createNamespaceExport(Co(Nt)),e)}(l)),at(161),o=So()):(i=wo(280),(161===ze()||11===ze()&&!a.hasPrecedingLineBreak())&&(at(161),o=So()));const _=ze();return!o||118!==_&&132!==_||a.hasPrecedingLineBreak()||(s=ko(_)),vt(),be(r),ue(xt(N.createExportDeclaration(n,c,i,o,s),e),t)}(e,t,n)}default:if(n){const t=kt(283,!0,_a.Declaration_expected);return ST(t,e),t.modifiers=n,t}return}}function Ii(){return 11===Ve()}function Oi(){return Ve(),161===ze()||64===ze()}function Li(){return Ve(),!a.hasPrecedingLineBreak()&&(ot()||11===ze())}function ji(e,t){if(19!==ze()){if(4&e)return void An();if(ht())return void vt()}return di(e,t)}function Mi(){const e=Be();if(28===ze())return xt(N.createOmittedExpression(),e);const t=ft(26),n=Ji(),r=vr();return xt(N.createBindingElement(t,void 0,n,r),e)}function Ri(){const e=Be(),t=ft(26),n=it();let r,i=Et();n&&59!==ze()?(r=i,i=void 0):(at(59),r=Ji());const o=vr();return xt(N.createBindingElement(t,i,r,o),e)}function Bi(){return 19===ze()||23===ze()||81===ze()||it()}function Ji(e){return 23===ze()?function(){const e=Be();at(23);const t=Se(()=>tn(10,Mi));return at(24),xt(N.createArrayBindingPattern(t),e)}():19===ze()?function(){const e=Be();at(19);const t=Se(()=>tn(9,Ri));return at(20),xt(N.createObjectBindingPattern(t),e)}():Ct(e)}function zi(){return qi(!0)}function qi(e){const t=Be(),n=Je(),r=Ji(_a.Private_identifiers_are_not_allowed_in_variable_declarations);let i;e&&80===r.kind&&54===ze()&&!a.hasPrecedingLineBreak()&&(i=gt());const o=mr(),s=Dr(ze())?void 0:vr();return ue(xt(te(r,i,o,s),t),n)}function Ui(e){const t=Be();let n,r=0;switch(ze()){case 115:break;case 121:r|=1;break;case 87:r|=2;break;case 160:r|=4;break;case 135:un.assert(Di()),r|=6,Ve();break;default:un.fail()}if(Ve(),165===ze()&&tt(Vi))n=rn();else{const t=Ee();ge(e),n=tn(8,e?qi:zi),ge(t)}return xt(ne(n,r),t)}function Vi(){return qt()&&22===Ve()}function Wi(e,t,n){const r=Ui(!1);return vt(),ue(xt(G(n,r),e),t)}function $i(e,t,n){const r=Ie(),i=$v(n);at(100);const o=ft(42),a=2048&i?_i():Ct(),s=o?1:0,c=1024&i?2:0,l=Cn();32&i&&be(!0);const _=Pn(s|c),u=Fn(59,!1),d=ji(s|c,_a.or_expected);return be(r),ue(xt(N.createFunctionDeclaration(n,o,a,l,_,u,d),e),t)}function Hi(e,t,n,r,i,o,a,s){const c=r?1:0,l=$(n,_D)?2:0,_=Cn(),u=Pn(c|l),d=Fn(59,!1),p=ji(c|l,s),f=N.createMethodDeclaration(n,r,i,o,_,u,d,p);return f.exclamationToken=a,ue(xt(f,e),t)}function Ki(e,t,n,r,i){const o=i||a.hasPrecedingLineBreak()?void 0:ft(54),s=mr(),c=xe(90112,vr);return function(e,t,n){if(60!==ze()||a.hasPrecedingLineBreak())return 21===ze()?(Oe(_a.Cannot_start_a_function_call_in_a_type_annotation),void Ve()):void(!t||ht()?yt()||(n?Oe(_a._0_expected,Fa(27)):lt(e)):n?Oe(_a._0_expected,Fa(27)):Oe(_a.Expected_for_property_initializer));Oe(_a.Decorators_must_precede_the_name_and_all_keywords_of_property_declarations)}(r,s,c),ue(xt(N.createPropertyDeclaration(n,r,i||o,s,c),e),t)}function Gi(e,t,n){const r=ft(42),i=Et(),o=ft(58);return r||21===ze()||30===ze()?Hi(e,t,n,r,i,o,void 0,_a.or_expected):Ki(e,t,n,i,o)}function Xi(e,t,n,r,i){const o=Et(),a=Cn(),s=Pn(0),c=Fn(59,!1),l=ji(i),_=178===r?N.createGetAccessorDeclaration(n,o,s,c,l):N.createSetAccessorDeclaration(n,o,s,l);return _.typeParameters=a,ID(_)&&(_.type=c),ue(xt(_,e),t)}function Qi(){let e;if(60===ze())return!0;for(;Xl(ze());){if(e=ze(),Yl(e))return!0;Ve()}if(42===ze())return!0;if(Ft()&&(e=ze(),Ve()),23===ze())return!0;if(void 0!==e){if(!Ch(e)||153===e||139===e)return!0;switch(ze()){case 21:case 30:case 54:case 59:case 64:case 58:return!0;default:return ht()}}return!1}function Yi(){if(Ie()&&135===ze()){const e=Be(),t=wt(_a.Expression_expected);return Ve(),ei(e,Qr(e,t,!0))}return Rr()}function Zi(){const e=Be();if(!pt(60))return;const t=ke(32768,Yi);return xt(N.createDecorator(t),e)}function eo(e,t,n){const r=Be(),i=ze();if(87===ze()&&t){if(!nt(It))return}else{if(n&&126===ze()&&tt(ho))return;if(e&&126===ze())return;if(!Xl(ze())||!nt(Ot))return}return xt(O(i),r)}function to(e,t,n){const r=Be();let i,o,a,s=!1,c=!1,l=!1;if(e&&60===ze())for(;o=Zi();)i=ie(i,o);for(;a=eo(s,t,n);)126===a.kind&&(s=!0),i=ie(i,a),c=!0;if(c&&e&&60===ze())for(;o=Zi();)i=ie(i,o),l=!0;if(l)for(;a=eo(s,t,n);)126===a.kind&&(s=!0),i=ie(i,a);return i&&bt(i,r)}function no(){let e;if(134===ze()){const t=Be();Ve(),e=bt([xt(O(134),t)],t)}return e}function ro(){const e=Be(),t=Je();if(27===ze())return Ve(),ue(xt(N.createSemicolonClassElement(),e),t);const n=to(!0,!0,!0);if(126===ze()&&tt(ho))return function(e,t,n){mt(126);const r=function(){const e=Fe(),t=Ie();he(!1),be(!0);const n=ui(!1);return he(e),be(t),n}(),i=ue(xt(N.createClassStaticBlockDeclaration(r),e),t);return i.modifiers=n,i}(e,t,n);if(At(139))return Xi(e,t,n,178,0);if(At(153))return Xi(e,t,n,179,0);if(137===ze()||11===ze()){const r=function(e,t,n){return nt(()=>{if(137===ze()?at(137):11===ze()&&21===tt(Ve)?nt(()=>{const e=fn();return"constructor"===e.text?e:void 0}):void 0){const r=Cn(),i=Pn(0),o=Fn(59,!1),a=ji(0,_a.or_expected),s=N.createConstructorDeclaration(n,i,a);return s.typeParameters=r,s.type=o,ue(xt(s,e),t)}})}(e,t,n);if(r)return r}if(On())return jn(e,t,n);if(ua(ze())||11===ze()||9===ze()||10===ze()||42===ze()||23===ze()){if($(n,Ei)){for(const e of n)e.flags|=33554432;return ke(33554432,()=>Gi(e,t,n))}return Gi(e,t,n)}if(n){const r=kt(80,!0,_a.Declaration_expected);return Ki(e,t,n,r,void 0)}return un.fail("Should not have attempted to parse class member declaration.")}function io(e,t,n){return oo(e,t,n,264)}function oo(e,t,n,r){const i=Ie();at(86);const o=!it()||119===ze()&&tt(Ut)?void 0:Tt(it()),a=Cn();$(n,cD)&&be(!0);const s=ao();let c;return at(19)?(c=Xt(5,ro),at(20)):c=rn(),be(i),ue(xt(264===r?N.createClassDeclaration(n,o,a,s,c):N.createClassExpression(n,o,a,s,c),e),t)}function ao(){if(_o())return Xt(22,so)}function so(){const e=Be(),t=ze();un.assert(96===t||119===t),Ve();const n=tn(7,co);return xt(N.createHeritageClause(t,n),e)}function co(){const e=Be(),t=Rr();if(234===t.kind)return t;const n=lo();return xt(N.createExpressionWithTypeArguments(t,n),e)}function lo(){return 30===ze()?on(20,fr,30,32):void 0}function _o(){return 96===ze()||119===ze()}function uo(){const e=Be(),t=Je(),n=Et(),r=Se(vr);return ue(xt(N.createEnumMember(n,r),e),t)}function po(){const e=Be();let t;return at(19)?(t=Xt(1,Fi),at(20)):t=rn(),xt(N.createModuleBlock(t),e)}function fo(e,t,n,r){const i=32&r,o=8&r?Nt():wt(),a=pt(25)?fo(Be(),!1,void 0,8|i):po();return ue(xt(N.createModuleDeclaration(n,o,a,r),e),t)}function mo(e,t,n){let r,i,o=0;return 162===ze()?(r=wt(),o|=2048):(r=fn(),r.text=St(r.text)),19===ze()?i=po():vt(),ue(xt(N.createModuleDeclaration(n,r,i,o),e),t)}function go(){return 21===Ve()}function ho(){return 19===Ve()}function yo(){return 44===Ve()}function vo(e,t,n,r=!1){let i;return(e||42===ze()||19===ze())&&(i=function(e,t,n,r){let i;return e&&!pt(28)||(r&&a.setSkipJsDocLeadingAsterisks(!0),i=42===ze()?function(){const e=Be();at(42),at(130);const t=wt();return xt(N.createNamespaceImport(t),e)}():wo(276),r&&a.setSkipJsDocLeadingAsterisks(!1)),xt(N.createImportClause(n,e,i),t)}(e,t,n,r),at(161)),i}function bo(){const e=ze();if((118===e||132===e)&&!a.hasPrecedingLineBreak())return ko(e)}function xo(){const e=Be(),t=ua(ze())?Nt():gn(11);at(59);const n=br(!0);return xt(N.createImportAttribute(t,n),e)}function ko(e,t){const n=Be();t||at(e);const r=a.getTokenStart();if(at(19)){const t=a.hasPrecedingLineBreak(),i=tn(24,xo,!0);if(!at(20)){const e=ye(g);e&&e.code===_a._0_expected.code&&aT(e,Wx(c,d,r,1,_a.The_parser_expected_to_find_a_1_to_match_the_0_token_here,"{","}"))}return xt(N.createImportAttributes(i,t,e),n)}{const t=bt([],Be(),void 0,!1);return xt(N.createImportAttributes(t,!1,e),n)}}function So(){if(11===ze()){const e=fn();return e.text=St(e.text),e}return yr()}function To(){return ua(ze())||11===ze()}function Co(e){return 11===ze()?fn():e()}function wo(e){const t=Be();return xt(276===e?N.createNamedImports(on(23,Do,19,20)):N.createNamedExports(on(23,No,19,20)),t)}function No(){const e=Je();return ue(Fo(282),e)}function Do(){return Fo(277)}function Fo(e){const t=Be();let n,r=Ch(ze())&&!ot(),i=a.getTokenStart(),o=a.getTokenEnd(),s=!1,c=!0,l=Co(Nt);if(80===l.kind&&"type"===l.escapedText)if(130===ze()){const e=Nt();if(130===ze()){const t=Nt();To()?(s=!0,n=e,l=Co(_),c=!1):(n=l,l=t,c=!1)}else To()?(n=l,c=!1,l=Co(_)):(s=!0,l=e)}else To()&&(s=!0,l=Co(_));return c&&130===ze()&&(n=l,at(130),l=Co(_)),277===e&&(80!==l.kind?(je(Qa(d,l.pos),l.end,_a.Identifier_expected),l=CT(kt(80,!1),l.pos,l.pos)):r&&je(i,o,_a.Identifier_expected)),xt(277===e?N.createImportSpecifier(s,n,l):N.createExportSpecifier(s,n,l),t);function _(){return r=Ch(ze())&&!ot(),i=a.getTokenStart(),o=a.getTokenEnd(),Nt()}}let Eo;var Po;let Ao;var Io;let Oo;(Po=Eo||(Eo={}))[Po.SourceElements=0]="SourceElements",Po[Po.BlockStatements=1]="BlockStatements",Po[Po.SwitchClauses=2]="SwitchClauses",Po[Po.SwitchClauseStatements=3]="SwitchClauseStatements",Po[Po.TypeMembers=4]="TypeMembers",Po[Po.ClassMembers=5]="ClassMembers",Po[Po.EnumMembers=6]="EnumMembers",Po[Po.HeritageClauseElement=7]="HeritageClauseElement",Po[Po.VariableDeclarations=8]="VariableDeclarations",Po[Po.ObjectBindingElements=9]="ObjectBindingElements",Po[Po.ArrayBindingElements=10]="ArrayBindingElements",Po[Po.ArgumentExpressions=11]="ArgumentExpressions",Po[Po.ObjectLiteralMembers=12]="ObjectLiteralMembers",Po[Po.JsxAttributes=13]="JsxAttributes",Po[Po.JsxChildren=14]="JsxChildren",Po[Po.ArrayLiteralMembers=15]="ArrayLiteralMembers",Po[Po.Parameters=16]="Parameters",Po[Po.JSDocParameters=17]="JSDocParameters",Po[Po.RestProperties=18]="RestProperties",Po[Po.TypeParameters=19]="TypeParameters",Po[Po.TypeArguments=20]="TypeArguments",Po[Po.TupleElementTypes=21]="TupleElementTypes",Po[Po.HeritageClauses=22]="HeritageClauses",Po[Po.ImportOrExportSpecifiers=23]="ImportOrExportSpecifiers",Po[Po.ImportAttributes=24]="ImportAttributes",Po[Po.JSDocComment=25]="JSDocComment",Po[Po.Count=26]="Count",(Io=Ao||(Ao={}))[Io.False=0]="False",Io[Io.True=1]="True",Io[Io.Unknown=2]="Unknown",(e=>{function t(e){const t=Be(),n=(e?pt:at)(19),r=ke(16777216,Sn);e&&!n||ut(20);const i=N.createJSDocTypeExpression(r);return de(i),xt(i,t)}function n(){const e=Be(),t=pt(19),n=Be();let r=an(!1);for(;81===ze();)Xe(),We(),r=xt(N.createJSDocMemberName(r,wt()),n);t&&ut(20);const i=N.createJSDocNameReference(r);return de(i),xt(i,e)}let r;var i;let o;var s;function l(e=0,r){const i=d,o=void 0===r?i.length:e+r;if(r=o-e,un.assert(e>=0),un.assert(e<=o),un.assert(o<=i.length),!DI(i,e))return;let s,l,_,u,p,f=[];const m=[],g=T;T|=1<<25;const h=a.scanRange(e+3,r-5,function(){let t,n=1,r=e-(i.lastIndexOf("\n",e)+1)+4;function c(e){t||(t=r),f.push(e),r+=e.length}for(We();ee(5););ee(4)&&(n=0,r=0);e:for(;;){switch(ze()){case 60:v(f),p||(p=Be()),I(C(r)),n=0,t=void 0;break;case 4:f.push(a.getTokenText()),n=0,r=0;break;case 42:const i=a.getTokenText();1===n?(n=2,c(i)):(un.assert(0===n),n=1,r+=i.length);break;case 5:un.assert(2!==n,"whitespace shouldn't come from the scanner while saving top-level comment text");const o=a.getTokenText();void 0!==t&&r+o.length>t&&f.push(o.slice(t-r)),r+=o.length;break;case 1:break e;case 82:n=2,c(a.getTokenValue());break;case 19:n=2;const s=a.getTokenFullStart(),l=F(a.getTokenEnd()-1);if(l){u||y(f),m.push(xt(N.createJSDocText(f.join("")),u??e,s)),m.push(l),f=[],u=a.getTokenEnd();break}default:n=2,c(a.getTokenText())}2===n?$e(!1):We()}const d=f.join("").trimEnd();m.length&&d.length&&m.push(xt(N.createJSDocText(d),u??e,p)),m.length&&s&&un.assertIsDefined(p,"having parsed tags implies that the end of the comment span should be set");const g=s&&bt(s,l,_);return xt(N.createJSDocComment(m.length?bt(m,e,p):d.length?d:void 0,g),e,o)});return T=g,h;function y(e){for(;e.length&&("\n"===e[0]||"\r"===e[0]);)e.shift()}function v(e){for(;e.length;){const t=e[e.length-1].trimEnd();if(""!==t){if(t.lengthG(n)))&&346!==t.kind;)if(s=!0,345===t.kind){if(r){const e=Oe(_a.A_JSDoc_typedef_comment_may_not_contain_multiple_type_tags);e&&aT(e,Wx(c,d,0,0,_a.The_tag_was_first_specified_here));break}r=t}else o=ie(o,t);if(s){const t=i&&189===i.type.kind,n=N.createJSDocTypeLiteral(o,t);i=r&&r.typeExpression&&!R(r.typeExpression.type)?r.typeExpression:xt(n,e),a=i.end}}a=a||void 0!==s?Be():(o??i??t).end,s||(s=w(e,a,n,r));return xt(N.createJSDocTypedefTag(t,i,o,s),e,a)}(r,i,e,o);break;case"callback":l=function(e,t,n,r){const i=V();x();let o=D(n);const a=W(e,n);o||(o=w(e,Be(),n,r));const s=void 0!==o?Be():a.end;return xt(N.createJSDocCallbackTag(t,a,i,o),e,s)}(r,i,e,o);break;case"overload":l=function(e,t,n,r){x();let i=D(n);const o=W(e,n);i||(i=w(e,Be(),n,r));const a=void 0!==i?Be():o.end;return xt(N.createJSDocOverloadTag(t,o,i),e,a)}(r,i,e,o);break;case"satisfies":l=function(e,n,r,i){const o=t(!1),a=void 0!==r&&void 0!==i?w(e,Be(),r,i):void 0;return xt(N.createJSDocSatisfiesTag(n,o,a),e)}(r,i,e,o);break;case"see":l=function(e,t,r,i){const o=23===ze()||tt(()=>60===We()&&ua(We())&&P(a.getTokenValue()))?void 0:n(),s=void 0!==r&&void 0!==i?w(e,Be(),r,i):void 0;return xt(N.createJSDocSeeTag(t,o,s),e)}(r,i,e,o);break;case"exception":case"throws":l=function(e,t,n,r){const i=L(),o=w(e,Be(),n,r);return xt(N.createJSDocThrowsTag(t,i,o),e)}(r,i,e,o);break;case"import":l=function(e,t,n,r){const i=a.getTokenFullStart();let o;ot()&&(o=wt());const s=vo(o,i,156,!0),c=So(),l=bo(),_=void 0!==n&&void 0!==r?w(e,Be(),n,r):void 0;return xt(N.createJSDocImportTag(t,s,c,l,_),e)}(r,i,e,o);break;default:l=function(e,t,n,r){return xt(N.createJSDocUnknownTag(t,w(e,Be(),n,r)),e)}(r,i,e,o)}return l}function w(e,t,n,r){return r||(n+=t-e),D(n,r.slice(n))}function D(e,t){const n=Be();let r=[];const i=[];let o,s,c=0;function l(t){s||(s=e),r.push(t),e+=t.length}void 0!==t&&(""!==t&&l(t),c=1);let _=ze();e:for(;;){switch(_){case 4:c=0,r.push(a.getTokenText()),e=0;break;case 60:a.resetTokenState(a.getTokenEnd()-1);break e;case 1:break e;case 5:un.assert(2!==c&&3!==c,"whitespace shouldn't come from the scanner while saving comment text");const t=a.getTokenText();void 0!==s&&e+t.length>s&&(r.push(t.slice(s-e)),c=2),e+=t.length;break;case 19:c=2;const _=a.getTokenFullStart(),u=F(a.getTokenEnd()-1);u?(i.push(xt(N.createJSDocText(r.join("")),o??n,_)),i.push(u),r=[],o=a.getTokenEnd()):l(a.getTokenText());break;case 62:c=3===c?2:3,l(a.getTokenText());break;case 82:3!==c&&(c=2),l(a.getTokenValue());break;case 42:if(0===c){c=1,e+=1;break}default:3!==c&&(c=2),l(a.getTokenText())}_=2===c||3===c?$e(3===c):We()}y(r);const u=r.join("").trimEnd();return i.length?(u.length&&i.push(xt(N.createJSDocText(u),o??n)),bt(i,n,a.getTokenEnd())):u.length?u:void 0}function F(e){const t=nt(E);if(!t)return;We(),x();const n=function(){if(ua(ze())){const e=Be();let t=Nt();for(;pt(25);)t=xt(N.createQualifiedName(t,81===ze()?kt(80,!1):Nt()),e);for(;81===ze();)Xe(),We(),t=xt(N.createJSDocMemberName(t,wt()),e);return t}}(),r=[];for(;20!==ze()&&4!==ze()&&1!==ze();)r.push(a.getTokenText()),We();return xt(("link"===t?N.createJSDocLink:"linkcode"===t?N.createJSDocLinkCode:N.createJSDocLinkPlain)(n,r.join("")),e,a.getTokenEnd())}function E(){if(k(),19===ze()&&60===We()&&ua(We())){const e=a.getTokenValue();if(P(e))return e}}function P(e){return"link"===e||"linkcode"===e||"linkplain"===e}function I(e){e&&(s?s.push(e):(s=[e],l=e.pos),_=e.end)}function L(){return k(),19===ze()?t():void 0}function j(){const e=ee(23);e&&x();const t=ee(62),n=function(){let e=te();for(pt(23)&&at(24);pt(25);){const t=te();pt(23)&&at(24),e=sn(e,t)}return e}();return t&&(function(e){if(ze()===e)return function(){const e=Be(),t=ze();return We(),xt(O(t),e)}()}(62)||(un.assert(Nh(62)),kt(62,!1,_a._0_expected,Fa(62)))),e&&(x(),ft(64)&&yr(),at(24)),{name:n,isBracketed:e}}function R(e){switch(e.kind){case 151:return!0;case 189:return R(e.elementType);default:return RD(e)&&aD(e.typeName)&&"Object"===e.typeName.escapedText&&!e.typeArguments}}function B(e,t,n,r){let i=L(),o=!i;k();const{name:a,isBracketed:s}=j(),c=k();o&&!tt(E)&&(i=L());const l=w(e,Be(),r,c),_=function(e,t,n,r){if(e&&R(e.type)){const i=Be();let o,a;for(;o=nt(()=>X(n,r,t));)342===o.kind||349===o.kind?a=ie(a,o):346===o.kind&&Me(o.tagName,_a.A_JSDoc_template_tag_may_not_follow_a_typedef_callback_or_overload_tag);if(a){const t=xt(N.createJSDocTypeLiteral(a,189===e.type.kind),i);return xt(N.createJSDocTypeExpression(t),i)}}}(i,a,n,r);return _&&(i=_,o=!0),xt(1===n?N.createJSDocPropertyTag(t,a,s,i,o,l):N.createJSDocParameterTag(t,a,s,i,o,l),e)}function J(e,n,r,i){$(s,qP)&&je(n.pos,a.getTokenStart(),_a._0_tag_already_specified,mc(n.escapedText));const o=t(!0),c=void 0!==r&&void 0!==i?w(e,Be(),r,i):void 0;return xt(N.createJSDocTypeTag(n,o,c),e)}function z(){const e=pt(19),t=Be(),n=function(){const e=Be();let t=te();for(;pt(25);){const n=te();t=xt(M(t,n),e)}return t}();a.setSkipJsDocLeadingAsterisks(!0);const r=lo();a.setSkipJsDocLeadingAsterisks(!1);const i=xt(N.createExpressionWithTypeArguments(n,r),t);return e&&(x(),at(20)),i}function q(e,t,n,r,i){return xt(t(n,w(e,Be(),r,i)),e)}function U(e,n,r,i){const o=t(!0);return x(),xt(N.createJSDocThisTag(n,o,w(e,Be(),r,i)),e)}function V(e){const t=a.getTokenStart();if(!ua(ze()))return;const n=te();if(pt(25)){const r=V(!0);return xt(N.createModuleDeclaration(void 0,n,r,e?8:void 0),t)}return e&&(n.flags|=4096),n}function W(e,t){const n=function(e){const t=Be();let n,r;for(;n=nt(()=>X(4,e));){if(346===n.kind){Me(n.tagName,_a.A_JSDoc_template_tag_may_not_follow_a_typedef_callback_or_overload_tag);break}r=ie(r,n)}return bt(r||[],t)}(t),r=nt(()=>{if(ee(60)){const e=C(t);if(e&&343===e.kind)return e}});return xt(N.createJSDocSignature(void 0,n,r),e)}function H(e,t){for(;!aD(e)||!aD(t);){if(aD(e)||aD(t)||e.right.escapedText!==t.right.escapedText)return!1;e=e.left,t=t.left}return e.escapedText===t.escapedText}function G(e){return X(1,e)}function X(e,t,n){let r=!0,i=!1;for(;;)switch(We()){case 60:if(r){const r=Q(e,t);return!(r&&(342===r.kind||349===r.kind)&&n&&(aD(r.name)||!H(n,r.name.left)))&&r}i=!1;break;case 4:r=!0,i=!1;break;case 42:i&&(r=!1),i=!0;break;case 80:r=!1;break;case 1:return!1}}function Q(e,t){un.assert(60===ze());const n=a.getTokenFullStart();We();const r=te(),i=k();let o;switch(r.escapedText){case"type":return 1===e&&J(n,r);case"prop":case"property":o=1;break;case"arg":case"argument":case"param":o=6;break;case"template":return Z(n,r,t,i);case"this":return U(n,r,t,i);default:return!1}return!!(e&o)&&B(n,r,e,t)}function Y(){const e=Be(),t=ee(23);t&&x();const n=to(!1,!0),r=te(_a.Unexpected_token_A_type_parameter_name_was_expected_without_curly_braces);let i;if(t&&(x(),at(64),i=ke(16777216,Sn),at(24)),!Nd(r))return xt(N.createTypeParameterDeclaration(n,r,void 0,i),e)}function Z(e,n,r,i){const o=19===ze()?t():void 0,a=function(){const e=Be(),t=[];do{x();const e=Y();void 0!==e&&t.push(e),k()}while(ee(28));return bt(t,e)}();return xt(N.createJSDocTemplateTag(n,o,a,w(e,Be(),r,i)),e)}function ee(e){return ze()===e&&(We(),!0)}function te(e){if(!ua(ze()))return kt(80,!e,e||_a.Identifier_expected);S++;const t=a.getTokenStart(),n=a.getTokenEnd(),r=ze(),i=St(a.getTokenValue()),o=xt(A(i,r),t,n);return We(),o}}e.parseJSDocTypeExpressionForTests=function(e,n,r){ce("file.js",e,99,void 0,1,0),a.setText(e,n,r),v=a.scan();const i=t(),o=pe("file.js",99,1,!1,[],O(1),0,rt),s=Kx(g,o);return h&&(o.jsDocDiagnostics=Kx(h,o)),le(),i?{jsDocTypeExpression:i,diagnostics:s}:void 0},e.parseJSDocTypeExpression=t,e.parseJSDocNameReference=n,e.parseIsolatedJSDocComment=function(e,t,n){ce("",e,99,void 0,1,0);const r=ke(16777216,()=>l(t,n)),i=Kx(g,{languageVariant:0,text:e});return le(),r?{jsDoc:r,diagnostics:i}:void 0},e.parseJSDocComment=function(e,t,n){const r=v,i=g.length,o=oe,a=ke(16777216,()=>l(t,n));return DT(a,e),524288&w&&(h||(h=[]),se(h,g,i)),v=r,g.length=i,oe=o,a},(i=r||(r={}))[i.BeginningOfLine=0]="BeginningOfLine",i[i.SawAsterisk=1]="SawAsterisk",i[i.SavingComments=2]="SavingComments",i[i.SavingBackticks=3]="SavingBackticks",(s=o||(o={}))[s.Property=1]="Property",s[s.Parameter=2]="Parameter",s[s.CallbackParameter=4]="CallbackParameter"})(Oo=e.JSDocParser||(e.JSDocParser={}))})(AI||(AI={}));var sO,cO=new WeakSet,lO=new WeakSet;function _O(e){lO.add(e)}function uO(e){return void 0!==dO(e)}function dO(e){const t=Po(e,FS,!1);if(t)return t;if(ko(e,".ts")){const t=Fo(e),n=t.lastIndexOf(".d.");if(n>=0)return t.substring(n)}}function pO(e,t){const n=[];for(const e of _s(t,0)||l)vO(n,e,t.substring(e.pos,e.end));e.pragmas=new Map;for(const t of n){if(e.pragmas.has(t.name)){const n=e.pragmas.get(t.name);n instanceof Array?n.push(t.args):e.pragmas.set(t.name,[n,t.args]);continue}e.pragmas.set(t.name,t.args)}}function fO(e,t){e.checkJsDirective=void 0,e.referencedFiles=[],e.typeReferenceDirectives=[],e.libReferenceDirectives=[],e.amdDependencies=[],e.hasNoDefaultLib=!1,e.pragmas.forEach((n,r)=>{switch(r){case"reference":{const r=e.referencedFiles,i=e.typeReferenceDirectives,o=e.libReferenceDirectives;d(Ye(n),n=>{const{types:a,lib:s,path:c,"resolution-mode":l,preserve:_}=n.arguments,u="true"===_||void 0;if("true"===n.arguments["no-default-lib"])e.hasNoDefaultLib=!0;else if(a){const e=function(e,t,n,r){if(e)return"import"===e?99:"require"===e?1:void r(t,n-t,_a.resolution_mode_should_be_either_require_or_import)}(l,a.pos,a.end,t);i.push({pos:a.pos,end:a.end,fileName:a.value,...e?{resolutionMode:e}:{},...u?{preserve:u}:{}})}else s?o.push({pos:s.pos,end:s.end,fileName:s.value,...u?{preserve:u}:{}}):c?r.push({pos:c.pos,end:c.end,fileName:c.value,...u?{preserve:u}:{}}):t(n.range.pos,n.range.end-n.range.pos,_a.Invalid_reference_directive_syntax)});break}case"amd-dependency":e.amdDependencies=E(Ye(n),e=>({name:e.arguments.name,path:e.arguments.path}));break;case"amd-module":if(n instanceof Array)for(const r of n)e.moduleName&&t(r.range.pos,r.range.end-r.range.pos,_a.An_AMD_module_cannot_have_multiple_name_assignments),e.moduleName=r.arguments.name;else e.moduleName=n.arguments.name;break;case"ts-nocheck":case"ts-check":d(Ye(n),t=>{(!e.checkJsDirective||t.range.pos>e.checkJsDirective.pos)&&(e.checkJsDirective={enabled:"ts-check"===r,end:t.range.end,pos:t.range.pos})});break;case"jsx":case"jsxfrag":case"jsximportsource":case"jsxruntime":return;default:un.fail("Unhandled pragma kind")}})}(e=>{function t(e,t,r,o,a,s,c){return void(r?_(e):l(e));function l(e){let r="";if(c&&n(e)&&(r=a.substring(e.pos,e.end)),nA(e,t),CT(e,e.pos+o,e.end+o),c&&n(e)&&un.assert(r===s.substring(e.pos,e.end)),XI(e,l,_),Du(e))for(const t of e.jsDoc)l(t);i(e,c)}function _(e){CT(e,e.pos+o,e.end+o);for(const t of e)l(t)}}function n(e){switch(e.kind){case 11:case 9:case 80:return!0}return!1}function r(e,t,n,r,i){un.assert(e.end>=t,"Adjusting an element that was entirely before the change range"),un.assert(e.pos<=n,"Adjusting an element that was entirely after the change range"),un.assert(e.pos<=e.end);const o=Math.min(e.pos,r),a=e.end>=n?e.end+i:Math.min(e.end,r);if(un.assert(o<=a),e.parent){const t=e.parent;un.assertGreaterThanOrEqual(o,t.pos),un.assertLessThanOrEqual(a,t.end)}CT(e,o,a)}function i(e,t){if(t){let t=e.pos;const n=e=>{un.assert(e.pos>=t),t=e.end};if(Du(e))for(const t of e.jsDoc)n(t);XI(e,n),un.assert(t<=e.end)}}function o(e,t){let n,r=e;if(XI(e,function e(i){if(!Nd(i))return i.pos<=t?(i.pos>=r.pos&&(r=i),tt),!0)}),n){const e=function(e){for(;;){const t=vx(e);if(!t)return e;e=t}}(n);e.pos>r.pos&&(r=e)}return r}function a(e,t,n,r){const i=e.text;if(n&&(un.assert(i.length-n.span.length+n.newLength===t.length),r||un.shouldAssert(3))){const e=i.substr(0,n.span.start),r=t.substr(0,n.span.start);un.assert(e===r);const o=i.substring(Fs(n.span),i.length),a=t.substring(Fs(Hs(n)),t.length);un.assert(o===a)}}function s(e){let t=e.statements,n=0;un.assert(n(o!==i&&(r&&r.end===o&&n=e.pos&&i=e.pos&&i0&&t<=1;t++){const t=o(e,n);un.assert(t.pos<=n);const r=t.pos;n=Math.max(0,r-1)}return Gs($s(n,Fs(t.span)),t.newLength+(t.span.start-n))}(e,c);a(e,n,d,l),un.assert(d.span.start<=c.span.start),un.assert(Fs(d.span)===Fs(c.span)),un.assert(Fs(Hs(d))===Fs(Hs(c)));const p=Hs(d).length-d.span.length;!function(e,n,o,a,s,c,l,_){return void u(e);function u(p){if(un.assert(p.pos<=p.end),p.pos>o)return void t(p,e,!1,s,c,l,_);const f=p.end;if(f>=n){if(_O(p),nA(p,e),r(p,n,o,a,s),XI(p,u,d),Du(p))for(const e of p.jsDoc)u(e);i(p,_)}else un.assert(fo)return void t(i,e,!0,s,c,l,_);const d=i.end;if(d>=n){_O(i),r(i,n,o,a,s);for(const e of i)u(e)}else un.assert(dr){_();const t={range:{pos:e.pos+i,end:e.end+i},type:l};c=ie(c,t),s&&un.assert(o.substring(e.pos,e.end)===a.substring(t.range.pos,t.range.end))}}return _(),c;function _(){l||(l=!0,c?t&&c.push(...t):c=t)}}(e.commentDirectives,f.commentDirectives,d.span.start,Fs(d.span),p,_,n,l),f.impliedNodeFormat=e.impliedNodeFormat,rA(e,f),f},e.createSyntaxCursor=s,(l=c||(c={}))[l.Value=-1]="Value"})(sO||(sO={}));var mO=new Map;function gO(e){if(mO.has(e))return mO.get(e);const t=new RegExp(`(\\s${e}\\s*=\\s*)(?:(?:'([^']*)')|(?:"([^"]*)"))`,"im");return mO.set(e,t),t}var hO=/^\/\/\/\s*<(\S+)\s.*?\/>/m,yO=/^\/\/\/?\s*@([^\s:]+)((?:[^\S\r\n]|:).*)?$/m;function vO(e,t,n){const r=2===t.kind&&hO.exec(n);if(r){const i=r[1].toLowerCase(),o=Li[i];if(!(o&&1&o.kind))return;if(o.args){const r={};for(const e of o.args){const i=gO(e.name).exec(n);if(!i&&!e.optional)return;if(i){const n=i[2]||i[3];if(e.captureSpan){const o=t.pos+i.index+i[1].length+1;r[e.name]={value:n,pos:o,end:o+n.length}}else r[e.name]=n}}e.push({name:i,args:{arguments:r,range:t}})}else e.push({name:i,args:{arguments:{},range:t}});return}const i=2===t.kind&&yO.exec(n);if(i)return bO(e,t,2,i);if(3===t.kind){const r=/@(\S+)(\s+(?:\S.*)?)?$/gm;let i;for(;i=r.exec(n);)bO(e,t,4,i)}}function bO(e,t,n,r){if(!r)return;const i=r[1].toLowerCase(),o=Li[i];if(!(o&&o.kind&n))return;const a=function(e,t){if(!t)return{};if(!e.args)return{};const n=t.trim().split(/\s+/),r={};for(let t=0;t[""+t,e])),wO=[["es5","lib.es5.d.ts"],["es6","lib.es2015.d.ts"],["es2015","lib.es2015.d.ts"],["es7","lib.es2016.d.ts"],["es2016","lib.es2016.d.ts"],["es2017","lib.es2017.d.ts"],["es2018","lib.es2018.d.ts"],["es2019","lib.es2019.d.ts"],["es2020","lib.es2020.d.ts"],["es2021","lib.es2021.d.ts"],["es2022","lib.es2022.d.ts"],["es2023","lib.es2023.d.ts"],["es2024","lib.es2024.d.ts"],["esnext","lib.esnext.d.ts"],["dom","lib.dom.d.ts"],["dom.iterable","lib.dom.iterable.d.ts"],["dom.asynciterable","lib.dom.asynciterable.d.ts"],["webworker","lib.webworker.d.ts"],["webworker.importscripts","lib.webworker.importscripts.d.ts"],["webworker.iterable","lib.webworker.iterable.d.ts"],["webworker.asynciterable","lib.webworker.asynciterable.d.ts"],["scripthost","lib.scripthost.d.ts"],["es2015.core","lib.es2015.core.d.ts"],["es2015.collection","lib.es2015.collection.d.ts"],["es2015.generator","lib.es2015.generator.d.ts"],["es2015.iterable","lib.es2015.iterable.d.ts"],["es2015.promise","lib.es2015.promise.d.ts"],["es2015.proxy","lib.es2015.proxy.d.ts"],["es2015.reflect","lib.es2015.reflect.d.ts"],["es2015.symbol","lib.es2015.symbol.d.ts"],["es2015.symbol.wellknown","lib.es2015.symbol.wellknown.d.ts"],["es2016.array.include","lib.es2016.array.include.d.ts"],["es2016.intl","lib.es2016.intl.d.ts"],["es2017.arraybuffer","lib.es2017.arraybuffer.d.ts"],["es2017.date","lib.es2017.date.d.ts"],["es2017.object","lib.es2017.object.d.ts"],["es2017.sharedmemory","lib.es2017.sharedmemory.d.ts"],["es2017.string","lib.es2017.string.d.ts"],["es2017.intl","lib.es2017.intl.d.ts"],["es2017.typedarrays","lib.es2017.typedarrays.d.ts"],["es2018.asyncgenerator","lib.es2018.asyncgenerator.d.ts"],["es2018.asynciterable","lib.es2018.asynciterable.d.ts"],["es2018.intl","lib.es2018.intl.d.ts"],["es2018.promise","lib.es2018.promise.d.ts"],["es2018.regexp","lib.es2018.regexp.d.ts"],["es2019.array","lib.es2019.array.d.ts"],["es2019.object","lib.es2019.object.d.ts"],["es2019.string","lib.es2019.string.d.ts"],["es2019.symbol","lib.es2019.symbol.d.ts"],["es2019.intl","lib.es2019.intl.d.ts"],["es2020.bigint","lib.es2020.bigint.d.ts"],["es2020.date","lib.es2020.date.d.ts"],["es2020.promise","lib.es2020.promise.d.ts"],["es2020.sharedmemory","lib.es2020.sharedmemory.d.ts"],["es2020.string","lib.es2020.string.d.ts"],["es2020.symbol.wellknown","lib.es2020.symbol.wellknown.d.ts"],["es2020.intl","lib.es2020.intl.d.ts"],["es2020.number","lib.es2020.number.d.ts"],["es2021.promise","lib.es2021.promise.d.ts"],["es2021.string","lib.es2021.string.d.ts"],["es2021.weakref","lib.es2021.weakref.d.ts"],["es2021.intl","lib.es2021.intl.d.ts"],["es2022.array","lib.es2022.array.d.ts"],["es2022.error","lib.es2022.error.d.ts"],["es2022.intl","lib.es2022.intl.d.ts"],["es2022.object","lib.es2022.object.d.ts"],["es2022.string","lib.es2022.string.d.ts"],["es2022.regexp","lib.es2022.regexp.d.ts"],["es2023.array","lib.es2023.array.d.ts"],["es2023.collection","lib.es2023.collection.d.ts"],["es2023.intl","lib.es2023.intl.d.ts"],["es2024.arraybuffer","lib.es2024.arraybuffer.d.ts"],["es2024.collection","lib.es2024.collection.d.ts"],["es2024.object","lib.es2024.object.d.ts"],["es2024.promise","lib.es2024.promise.d.ts"],["es2024.regexp","lib.es2024.regexp.d.ts"],["es2024.sharedmemory","lib.es2024.sharedmemory.d.ts"],["es2024.string","lib.es2024.string.d.ts"],["esnext.array","lib.es2023.array.d.ts"],["esnext.collection","lib.esnext.collection.d.ts"],["esnext.symbol","lib.es2019.symbol.d.ts"],["esnext.asynciterable","lib.es2018.asynciterable.d.ts"],["esnext.intl","lib.esnext.intl.d.ts"],["esnext.disposable","lib.esnext.disposable.d.ts"],["esnext.bigint","lib.es2020.bigint.d.ts"],["esnext.string","lib.es2022.string.d.ts"],["esnext.promise","lib.es2024.promise.d.ts"],["esnext.weakref","lib.es2021.weakref.d.ts"],["esnext.decorators","lib.esnext.decorators.d.ts"],["esnext.object","lib.es2024.object.d.ts"],["esnext.array","lib.esnext.array.d.ts"],["esnext.regexp","lib.es2024.regexp.d.ts"],["esnext.string","lib.es2024.string.d.ts"],["esnext.iterator","lib.esnext.iterator.d.ts"],["esnext.promise","lib.esnext.promise.d.ts"],["esnext.float16","lib.esnext.float16.d.ts"],["esnext.error","lib.esnext.error.d.ts"],["esnext.sharedmemory","lib.esnext.sharedmemory.d.ts"],["decorators","lib.decorators.d.ts"],["decorators.legacy","lib.decorators.legacy.d.ts"]],NO=wO.map(e=>e[0]),DO=new Map(wO),FO=[{name:"watchFile",type:new Map(Object.entries({fixedpollinginterval:0,prioritypollinginterval:1,dynamicprioritypolling:2,fixedchunksizepolling:3,usefsevents:4,usefseventsonparentdirectory:5})),category:_a.Watch_and_Build_Modes,description:_a.Specify_how_the_TypeScript_watch_mode_works,defaultValueDescription:4},{name:"watchDirectory",type:new Map(Object.entries({usefsevents:0,fixedpollinginterval:1,dynamicprioritypolling:2,fixedchunksizepolling:3})),category:_a.Watch_and_Build_Modes,description:_a.Specify_how_directories_are_watched_on_systems_that_lack_recursive_file_watching_functionality,defaultValueDescription:0},{name:"fallbackPolling",type:new Map(Object.entries({fixedinterval:0,priorityinterval:1,dynamicpriority:2,fixedchunksize:3})),category:_a.Watch_and_Build_Modes,description:_a.Specify_what_approach_the_watcher_should_use_if_the_system_runs_out_of_native_file_watchers,defaultValueDescription:1},{name:"synchronousWatchDirectory",type:"boolean",category:_a.Watch_and_Build_Modes,description:_a.Synchronously_call_callbacks_and_update_the_state_of_directory_watchers_on_platforms_that_don_t_support_recursive_watching_natively,defaultValueDescription:!1},{name:"excludeDirectories",type:"list",element:{name:"excludeDirectory",type:"string",isFilePath:!0,extraValidation:qj},allowConfigDirTemplateSubstitution:!0,category:_a.Watch_and_Build_Modes,description:_a.Remove_a_list_of_directories_from_the_watch_process},{name:"excludeFiles",type:"list",element:{name:"excludeFile",type:"string",isFilePath:!0,extraValidation:qj},allowConfigDirTemplateSubstitution:!0,category:_a.Watch_and_Build_Modes,description:_a.Remove_a_list_of_files_from_the_watch_mode_s_processing}],EO=[{name:"help",shortName:"h",type:"boolean",showInSimplifiedHelpView:!0,isCommandLineOnly:!0,category:_a.Command_line_Options,description:_a.Print_this_message,defaultValueDescription:!1},{name:"help",shortName:"?",type:"boolean",isCommandLineOnly:!0,category:_a.Command_line_Options,defaultValueDescription:!1},{name:"watch",shortName:"w",type:"boolean",showInSimplifiedHelpView:!0,isCommandLineOnly:!0,category:_a.Command_line_Options,description:_a.Watch_input_files,defaultValueDescription:!1},{name:"preserveWatchOutput",type:"boolean",showInSimplifiedHelpView:!1,category:_a.Output_Formatting,description:_a.Disable_wiping_the_console_in_watch_mode,defaultValueDescription:!1},{name:"listFiles",type:"boolean",category:_a.Compiler_Diagnostics,description:_a.Print_all_of_the_files_read_during_the_compilation,defaultValueDescription:!1},{name:"explainFiles",type:"boolean",category:_a.Compiler_Diagnostics,description:_a.Print_files_read_during_the_compilation_including_why_it_was_included,defaultValueDescription:!1},{name:"listEmittedFiles",type:"boolean",category:_a.Compiler_Diagnostics,description:_a.Print_the_names_of_emitted_files_after_a_compilation,defaultValueDescription:!1},{name:"pretty",type:"boolean",showInSimplifiedHelpView:!0,category:_a.Output_Formatting,description:_a.Enable_color_and_formatting_in_TypeScript_s_output_to_make_compiler_errors_easier_to_read,defaultValueDescription:!0},{name:"traceResolution",type:"boolean",category:_a.Compiler_Diagnostics,description:_a.Log_paths_used_during_the_moduleResolution_process,defaultValueDescription:!1},{name:"diagnostics",type:"boolean",category:_a.Compiler_Diagnostics,description:_a.Output_compiler_performance_information_after_building,defaultValueDescription:!1},{name:"extendedDiagnostics",type:"boolean",category:_a.Compiler_Diagnostics,description:_a.Output_more_detailed_compiler_performance_information_after_building,defaultValueDescription:!1},{name:"generateCpuProfile",type:"string",isFilePath:!0,paramType:_a.FILE_OR_DIRECTORY,category:_a.Compiler_Diagnostics,description:_a.Emit_a_v8_CPU_profile_of_the_compiler_run_for_debugging,defaultValueDescription:"profile.cpuprofile"},{name:"generateTrace",type:"string",isFilePath:!0,paramType:_a.DIRECTORY,category:_a.Compiler_Diagnostics,description:_a.Generates_an_event_trace_and_a_list_of_types},{name:"incremental",shortName:"i",type:"boolean",category:_a.Projects,description:_a.Save_tsbuildinfo_files_to_allow_for_incremental_compilation_of_projects,transpileOptionValue:void 0,defaultValueDescription:_a.false_unless_composite_is_set},{name:"declaration",shortName:"d",type:"boolean",affectsBuildInfo:!0,showInSimplifiedHelpView:!0,category:_a.Emit,transpileOptionValue:void 0,description:_a.Generate_d_ts_files_from_TypeScript_and_JavaScript_files_in_your_project,defaultValueDescription:_a.false_unless_composite_is_set},{name:"declarationMap",type:"boolean",affectsBuildInfo:!0,showInSimplifiedHelpView:!0,category:_a.Emit,defaultValueDescription:!1,description:_a.Create_sourcemaps_for_d_ts_files},{name:"emitDeclarationOnly",type:"boolean",affectsBuildInfo:!0,showInSimplifiedHelpView:!0,category:_a.Emit,description:_a.Only_output_d_ts_files_and_not_JavaScript_files,transpileOptionValue:void 0,defaultValueDescription:!1},{name:"sourceMap",type:"boolean",affectsBuildInfo:!0,showInSimplifiedHelpView:!0,category:_a.Emit,defaultValueDescription:!1,description:_a.Create_source_map_files_for_emitted_JavaScript_files},{name:"inlineSourceMap",type:"boolean",affectsBuildInfo:!0,category:_a.Emit,description:_a.Include_sourcemap_files_inside_the_emitted_JavaScript,defaultValueDescription:!1},{name:"noCheck",type:"boolean",showInSimplifiedHelpView:!1,category:_a.Compiler_Diagnostics,description:_a.Disable_full_type_checking_only_critical_parse_and_emit_errors_will_be_reported,transpileOptionValue:!0,defaultValueDescription:!1},{name:"noEmit",type:"boolean",showInSimplifiedHelpView:!0,category:_a.Emit,description:_a.Disable_emitting_files_from_a_compilation,transpileOptionValue:void 0,defaultValueDescription:!1},{name:"assumeChangesOnlyAffectDirectDependencies",type:"boolean",affectsSemanticDiagnostics:!0,affectsEmit:!0,affectsBuildInfo:!0,category:_a.Watch_and_Build_Modes,description:_a.Have_recompiles_in_projects_that_use_incremental_and_watch_mode_assume_that_changes_within_a_file_will_only_affect_files_directly_depending_on_it,defaultValueDescription:!1},{name:"locale",type:"string",category:_a.Command_line_Options,isCommandLineOnly:!0,description:_a.Set_the_language_of_the_messaging_from_TypeScript_This_does_not_affect_emit,defaultValueDescription:_a.Platform_specific}],PO={name:"target",shortName:"t",type:new Map(Object.entries({es3:0,es5:1,es6:2,es2015:2,es2016:3,es2017:4,es2018:5,es2019:6,es2020:7,es2021:8,es2022:9,es2023:10,es2024:11,esnext:99})),affectsSourceFile:!0,affectsModuleResolution:!0,affectsEmit:!0,affectsBuildInfo:!0,deprecatedKeys:new Set(["es3"]),paramType:_a.VERSION,showInSimplifiedHelpView:!0,category:_a.Language_and_Environment,description:_a.Set_the_JavaScript_language_version_for_emitted_JavaScript_and_include_compatible_library_declarations,defaultValueDescription:1},AO={name:"module",shortName:"m",type:new Map(Object.entries({none:0,commonjs:1,amd:2,system:4,umd:3,es6:5,es2015:5,es2020:6,es2022:7,esnext:99,node16:100,node18:101,node20:102,nodenext:199,preserve:200})),affectsSourceFile:!0,affectsModuleResolution:!0,affectsEmit:!0,affectsBuildInfo:!0,paramType:_a.KIND,showInSimplifiedHelpView:!0,category:_a.Modules,description:_a.Specify_what_module_code_is_generated,defaultValueDescription:void 0},IO=[{name:"all",type:"boolean",showInSimplifiedHelpView:!0,category:_a.Command_line_Options,description:_a.Show_all_compiler_options,defaultValueDescription:!1},{name:"version",shortName:"v",type:"boolean",showInSimplifiedHelpView:!0,category:_a.Command_line_Options,description:_a.Print_the_compiler_s_version,defaultValueDescription:!1},{name:"init",type:"boolean",showInSimplifiedHelpView:!0,category:_a.Command_line_Options,description:_a.Initializes_a_TypeScript_project_and_creates_a_tsconfig_json_file,defaultValueDescription:!1},{name:"project",shortName:"p",type:"string",isFilePath:!0,showInSimplifiedHelpView:!0,category:_a.Command_line_Options,paramType:_a.FILE_OR_DIRECTORY,description:_a.Compile_the_project_given_the_path_to_its_configuration_file_or_to_a_folder_with_a_tsconfig_json},{name:"showConfig",type:"boolean",showInSimplifiedHelpView:!0,category:_a.Command_line_Options,isCommandLineOnly:!0,description:_a.Print_the_final_configuration_instead_of_building,defaultValueDescription:!1},{name:"listFilesOnly",type:"boolean",category:_a.Command_line_Options,isCommandLineOnly:!0,description:_a.Print_names_of_files_that_are_part_of_the_compilation_and_then_stop_processing,defaultValueDescription:!1},PO,AO,{name:"lib",type:"list",element:{name:"lib",type:DO,defaultValueDescription:void 0},affectsProgramStructure:!0,showInSimplifiedHelpView:!0,category:_a.Language_and_Environment,description:_a.Specify_a_set_of_bundled_library_declaration_files_that_describe_the_target_runtime_environment,transpileOptionValue:void 0},{name:"allowJs",type:"boolean",allowJsFlag:!0,affectsBuildInfo:!0,showInSimplifiedHelpView:!0,category:_a.JavaScript_Support,description:_a.Allow_JavaScript_files_to_be_a_part_of_your_program_Use_the_checkJs_option_to_get_errors_from_these_files,defaultValueDescription:!1},{name:"checkJs",type:"boolean",affectsModuleResolution:!0,affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,showInSimplifiedHelpView:!0,category:_a.JavaScript_Support,description:_a.Enable_error_reporting_in_type_checked_JavaScript_files,defaultValueDescription:!1},{name:"jsx",type:TO,affectsSourceFile:!0,affectsEmit:!0,affectsBuildInfo:!0,affectsModuleResolution:!0,affectsSemanticDiagnostics:!0,paramType:_a.KIND,showInSimplifiedHelpView:!0,category:_a.Language_and_Environment,description:_a.Specify_what_JSX_code_is_generated,defaultValueDescription:void 0},{name:"outFile",type:"string",affectsEmit:!0,affectsBuildInfo:!0,affectsDeclarationPath:!0,isFilePath:!0,paramType:_a.FILE,showInSimplifiedHelpView:!0,category:_a.Emit,description:_a.Specify_a_file_that_bundles_all_outputs_into_one_JavaScript_file_If_declaration_is_true_also_designates_a_file_that_bundles_all_d_ts_output,transpileOptionValue:void 0},{name:"outDir",type:"string",affectsEmit:!0,affectsBuildInfo:!0,affectsDeclarationPath:!0,isFilePath:!0,paramType:_a.DIRECTORY,showInSimplifiedHelpView:!0,category:_a.Emit,description:_a.Specify_an_output_folder_for_all_emitted_files},{name:"rootDir",type:"string",affectsEmit:!0,affectsBuildInfo:!0,affectsDeclarationPath:!0,isFilePath:!0,paramType:_a.LOCATION,category:_a.Modules,description:_a.Specify_the_root_folder_within_your_source_files,defaultValueDescription:_a.Computed_from_the_list_of_input_files},{name:"composite",type:"boolean",affectsBuildInfo:!0,isTSConfigOnly:!0,category:_a.Projects,transpileOptionValue:void 0,defaultValueDescription:!1,description:_a.Enable_constraints_that_allow_a_TypeScript_project_to_be_used_with_project_references},{name:"tsBuildInfoFile",type:"string",affectsEmit:!0,affectsBuildInfo:!0,isFilePath:!0,paramType:_a.FILE,category:_a.Projects,transpileOptionValue:void 0,defaultValueDescription:".tsbuildinfo",description:_a.Specify_the_path_to_tsbuildinfo_incremental_compilation_file},{name:"removeComments",type:"boolean",affectsEmit:!0,affectsBuildInfo:!0,showInSimplifiedHelpView:!0,category:_a.Emit,defaultValueDescription:!1,description:_a.Disable_emitting_comments},{name:"importHelpers",type:"boolean",affectsEmit:!0,affectsBuildInfo:!0,affectsSourceFile:!0,category:_a.Emit,description:_a.Allow_importing_helper_functions_from_tslib_once_per_project_instead_of_including_them_per_file,defaultValueDescription:!1},{name:"importsNotUsedAsValues",type:new Map(Object.entries({remove:0,preserve:1,error:2})),affectsEmit:!0,affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:_a.Backwards_Compatibility,description:_a.Specify_emit_Slashchecking_behavior_for_imports_that_are_only_used_for_types,defaultValueDescription:0},{name:"downlevelIteration",type:"boolean",affectsEmit:!0,affectsBuildInfo:!0,category:_a.Emit,description:_a.Emit_more_compliant_but_verbose_and_less_performant_JavaScript_for_iteration,defaultValueDescription:!1},{name:"isolatedModules",type:"boolean",category:_a.Interop_Constraints,description:_a.Ensure_that_each_file_can_be_safely_transpiled_without_relying_on_other_imports,transpileOptionValue:!0,defaultValueDescription:!1},{name:"verbatimModuleSyntax",type:"boolean",affectsEmit:!0,affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:_a.Interop_Constraints,description:_a.Do_not_transform_or_elide_any_imports_or_exports_not_marked_as_type_only_ensuring_they_are_written_in_the_output_file_s_format_based_on_the_module_setting,defaultValueDescription:!1},{name:"isolatedDeclarations",type:"boolean",category:_a.Interop_Constraints,description:_a.Require_sufficient_annotation_on_exports_so_other_tools_can_trivially_generate_declaration_files,defaultValueDescription:!1,affectsBuildInfo:!0,affectsSemanticDiagnostics:!0},{name:"erasableSyntaxOnly",type:"boolean",category:_a.Interop_Constraints,description:_a.Do_not_allow_runtime_constructs_that_are_not_part_of_ECMAScript,defaultValueDescription:!1,affectsBuildInfo:!0,affectsSemanticDiagnostics:!0},{name:"libReplacement",type:"boolean",affectsProgramStructure:!0,category:_a.Language_and_Environment,description:_a.Enable_lib_replacement,defaultValueDescription:!0},{name:"strict",type:"boolean",affectsBuildInfo:!0,showInSimplifiedHelpView:!0,category:_a.Type_Checking,description:_a.Enable_all_strict_type_checking_options,defaultValueDescription:!1},{name:"noImplicitAny",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,strictFlag:!0,category:_a.Type_Checking,description:_a.Enable_error_reporting_for_expressions_and_declarations_with_an_implied_any_type,defaultValueDescription:_a.false_unless_strict_is_set},{name:"strictNullChecks",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,strictFlag:!0,category:_a.Type_Checking,description:_a.When_type_checking_take_into_account_null_and_undefined,defaultValueDescription:_a.false_unless_strict_is_set},{name:"strictFunctionTypes",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,strictFlag:!0,category:_a.Type_Checking,description:_a.When_assigning_functions_check_to_ensure_parameters_and_the_return_values_are_subtype_compatible,defaultValueDescription:_a.false_unless_strict_is_set},{name:"strictBindCallApply",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,strictFlag:!0,category:_a.Type_Checking,description:_a.Check_that_the_arguments_for_bind_call_and_apply_methods_match_the_original_function,defaultValueDescription:_a.false_unless_strict_is_set},{name:"strictPropertyInitialization",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,strictFlag:!0,category:_a.Type_Checking,description:_a.Check_for_class_properties_that_are_declared_but_not_set_in_the_constructor,defaultValueDescription:_a.false_unless_strict_is_set},{name:"strictBuiltinIteratorReturn",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,strictFlag:!0,category:_a.Type_Checking,description:_a.Built_in_iterators_are_instantiated_with_a_TReturn_type_of_undefined_instead_of_any,defaultValueDescription:_a.false_unless_strict_is_set},{name:"noImplicitThis",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,strictFlag:!0,category:_a.Type_Checking,description:_a.Enable_error_reporting_when_this_is_given_the_type_any,defaultValueDescription:_a.false_unless_strict_is_set},{name:"useUnknownInCatchVariables",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,strictFlag:!0,category:_a.Type_Checking,description:_a.Default_catch_clause_variables_as_unknown_instead_of_any,defaultValueDescription:_a.false_unless_strict_is_set},{name:"alwaysStrict",type:"boolean",affectsSourceFile:!0,affectsEmit:!0,affectsBuildInfo:!0,strictFlag:!0,category:_a.Type_Checking,description:_a.Ensure_use_strict_is_always_emitted,defaultValueDescription:_a.false_unless_strict_is_set},{name:"noUnusedLocals",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:_a.Type_Checking,description:_a.Enable_error_reporting_when_local_variables_aren_t_read,defaultValueDescription:!1},{name:"noUnusedParameters",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:_a.Type_Checking,description:_a.Raise_an_error_when_a_function_parameter_isn_t_read,defaultValueDescription:!1},{name:"exactOptionalPropertyTypes",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:_a.Type_Checking,description:_a.Interpret_optional_property_types_as_written_rather_than_adding_undefined,defaultValueDescription:!1},{name:"noImplicitReturns",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:_a.Type_Checking,description:_a.Enable_error_reporting_for_codepaths_that_do_not_explicitly_return_in_a_function,defaultValueDescription:!1},{name:"noFallthroughCasesInSwitch",type:"boolean",affectsBindDiagnostics:!0,affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:_a.Type_Checking,description:_a.Enable_error_reporting_for_fallthrough_cases_in_switch_statements,defaultValueDescription:!1},{name:"noUncheckedIndexedAccess",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:_a.Type_Checking,description:_a.Add_undefined_to_a_type_when_accessed_using_an_index,defaultValueDescription:!1},{name:"noImplicitOverride",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:_a.Type_Checking,description:_a.Ensure_overriding_members_in_derived_classes_are_marked_with_an_override_modifier,defaultValueDescription:!1},{name:"noPropertyAccessFromIndexSignature",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,showInSimplifiedHelpView:!1,category:_a.Type_Checking,description:_a.Enforces_using_indexed_accessors_for_keys_declared_using_an_indexed_type,defaultValueDescription:!1},{name:"moduleResolution",type:new Map(Object.entries({node10:2,node:2,classic:1,node16:3,nodenext:99,bundler:100})),deprecatedKeys:new Set(["node"]),affectsSourceFile:!0,affectsModuleResolution:!0,paramType:_a.STRATEGY,category:_a.Modules,description:_a.Specify_how_TypeScript_looks_up_a_file_from_a_given_module_specifier,defaultValueDescription:_a.module_AMD_or_UMD_or_System_or_ES6_then_Classic_Otherwise_Node},{name:"baseUrl",type:"string",affectsModuleResolution:!0,isFilePath:!0,category:_a.Modules,description:_a.Specify_the_base_directory_to_resolve_non_relative_module_names},{name:"paths",type:"object",affectsModuleResolution:!0,allowConfigDirTemplateSubstitution:!0,isTSConfigOnly:!0,category:_a.Modules,description:_a.Specify_a_set_of_entries_that_re_map_imports_to_additional_lookup_locations,transpileOptionValue:void 0},{name:"rootDirs",type:"list",isTSConfigOnly:!0,element:{name:"rootDirs",type:"string",isFilePath:!0},affectsModuleResolution:!0,allowConfigDirTemplateSubstitution:!0,category:_a.Modules,description:_a.Allow_multiple_folders_to_be_treated_as_one_when_resolving_modules,transpileOptionValue:void 0,defaultValueDescription:_a.Computed_from_the_list_of_input_files},{name:"typeRoots",type:"list",element:{name:"typeRoots",type:"string",isFilePath:!0},affectsModuleResolution:!0,allowConfigDirTemplateSubstitution:!0,category:_a.Modules,description:_a.Specify_multiple_folders_that_act_like_Slashnode_modules_Slash_types},{name:"types",type:"list",element:{name:"types",type:"string"},affectsProgramStructure:!0,showInSimplifiedHelpView:!0,category:_a.Modules,description:_a.Specify_type_package_names_to_be_included_without_being_referenced_in_a_source_file,transpileOptionValue:void 0},{name:"allowSyntheticDefaultImports",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:_a.Interop_Constraints,description:_a.Allow_import_x_from_y_when_a_module_doesn_t_have_a_default_export,defaultValueDescription:_a.module_system_or_esModuleInterop},{name:"esModuleInterop",type:"boolean",affectsSemanticDiagnostics:!0,affectsEmit:!0,affectsBuildInfo:!0,showInSimplifiedHelpView:!0,category:_a.Interop_Constraints,description:_a.Emit_additional_JavaScript_to_ease_support_for_importing_CommonJS_modules_This_enables_allowSyntheticDefaultImports_for_type_compatibility,defaultValueDescription:!1},{name:"preserveSymlinks",type:"boolean",category:_a.Interop_Constraints,description:_a.Disable_resolving_symlinks_to_their_realpath_This_correlates_to_the_same_flag_in_node,defaultValueDescription:!1},{name:"allowUmdGlobalAccess",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:_a.Modules,description:_a.Allow_accessing_UMD_globals_from_modules,defaultValueDescription:!1},{name:"moduleSuffixes",type:"list",element:{name:"suffix",type:"string"},listPreserveFalsyValues:!0,affectsModuleResolution:!0,category:_a.Modules,description:_a.List_of_file_name_suffixes_to_search_when_resolving_a_module},{name:"allowImportingTsExtensions",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:_a.Modules,description:_a.Allow_imports_to_include_TypeScript_file_extensions_Requires_moduleResolution_bundler_and_either_noEmit_or_emitDeclarationOnly_to_be_set,defaultValueDescription:!1,transpileOptionValue:void 0},{name:"rewriteRelativeImportExtensions",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:_a.Modules,description:_a.Rewrite_ts_tsx_mts_and_cts_file_extensions_in_relative_import_paths_to_their_JavaScript_equivalent_in_output_files,defaultValueDescription:!1},{name:"resolvePackageJsonExports",type:"boolean",affectsModuleResolution:!0,category:_a.Modules,description:_a.Use_the_package_json_exports_field_when_resolving_package_imports,defaultValueDescription:_a.true_when_moduleResolution_is_node16_nodenext_or_bundler_otherwise_false},{name:"resolvePackageJsonImports",type:"boolean",affectsModuleResolution:!0,category:_a.Modules,description:_a.Use_the_package_json_imports_field_when_resolving_imports,defaultValueDescription:_a.true_when_moduleResolution_is_node16_nodenext_or_bundler_otherwise_false},{name:"customConditions",type:"list",element:{name:"condition",type:"string"},affectsModuleResolution:!0,category:_a.Modules,description:_a.Conditions_to_set_in_addition_to_the_resolver_specific_defaults_when_resolving_imports},{name:"noUncheckedSideEffectImports",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:_a.Modules,description:_a.Check_side_effect_imports,defaultValueDescription:!1},{name:"sourceRoot",type:"string",affectsEmit:!0,affectsBuildInfo:!0,paramType:_a.LOCATION,category:_a.Emit,description:_a.Specify_the_root_path_for_debuggers_to_find_the_reference_source_code},{name:"mapRoot",type:"string",affectsEmit:!0,affectsBuildInfo:!0,paramType:_a.LOCATION,category:_a.Emit,description:_a.Specify_the_location_where_debugger_should_locate_map_files_instead_of_generated_locations},{name:"inlineSources",type:"boolean",affectsEmit:!0,affectsBuildInfo:!0,category:_a.Emit,description:_a.Include_source_code_in_the_sourcemaps_inside_the_emitted_JavaScript,defaultValueDescription:!1},{name:"experimentalDecorators",type:"boolean",affectsEmit:!0,affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:_a.Language_and_Environment,description:_a.Enable_experimental_support_for_legacy_experimental_decorators,defaultValueDescription:!1},{name:"emitDecoratorMetadata",type:"boolean",affectsSemanticDiagnostics:!0,affectsEmit:!0,affectsBuildInfo:!0,category:_a.Language_and_Environment,description:_a.Emit_design_type_metadata_for_decorated_declarations_in_source_files,defaultValueDescription:!1},{name:"jsxFactory",type:"string",category:_a.Language_and_Environment,description:_a.Specify_the_JSX_factory_function_used_when_targeting_React_JSX_emit_e_g_React_createElement_or_h,defaultValueDescription:"`React.createElement`"},{name:"jsxFragmentFactory",type:"string",category:_a.Language_and_Environment,description:_a.Specify_the_JSX_Fragment_reference_used_for_fragments_when_targeting_React_JSX_emit_e_g_React_Fragment_or_Fragment,defaultValueDescription:"React.Fragment"},{name:"jsxImportSource",type:"string",affectsSemanticDiagnostics:!0,affectsEmit:!0,affectsBuildInfo:!0,affectsModuleResolution:!0,affectsSourceFile:!0,category:_a.Language_and_Environment,description:_a.Specify_module_specifier_used_to_import_the_JSX_factory_functions_when_using_jsx_Colon_react_jsx_Asterisk,defaultValueDescription:"react"},{name:"resolveJsonModule",type:"boolean",affectsModuleResolution:!0,category:_a.Modules,description:_a.Enable_importing_json_files,defaultValueDescription:!1},{name:"allowArbitraryExtensions",type:"boolean",affectsProgramStructure:!0,category:_a.Modules,description:_a.Enable_importing_files_with_any_extension_provided_a_declaration_file_is_present,defaultValueDescription:!1},{name:"out",type:"string",affectsEmit:!0,affectsBuildInfo:!0,affectsDeclarationPath:!0,isFilePath:!1,category:_a.Backwards_Compatibility,paramType:_a.FILE,transpileOptionValue:void 0,description:_a.Deprecated_setting_Use_outFile_instead},{name:"reactNamespace",type:"string",affectsEmit:!0,affectsBuildInfo:!0,category:_a.Language_and_Environment,description:_a.Specify_the_object_invoked_for_createElement_This_only_applies_when_targeting_react_JSX_emit,defaultValueDescription:"`React`"},{name:"skipDefaultLibCheck",type:"boolean",affectsBuildInfo:!0,category:_a.Completeness,description:_a.Skip_type_checking_d_ts_files_that_are_included_with_TypeScript,defaultValueDescription:!1},{name:"charset",type:"string",category:_a.Backwards_Compatibility,description:_a.No_longer_supported_In_early_versions_manually_set_the_text_encoding_for_reading_files,defaultValueDescription:"utf8"},{name:"emitBOM",type:"boolean",affectsEmit:!0,affectsBuildInfo:!0,category:_a.Emit,description:_a.Emit_a_UTF_8_Byte_Order_Mark_BOM_in_the_beginning_of_output_files,defaultValueDescription:!1},{name:"newLine",type:new Map(Object.entries({crlf:0,lf:1})),affectsEmit:!0,affectsBuildInfo:!0,paramType:_a.NEWLINE,category:_a.Emit,description:_a.Set_the_newline_character_for_emitting_files,defaultValueDescription:"lf"},{name:"noErrorTruncation",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:_a.Output_Formatting,description:_a.Disable_truncating_types_in_error_messages,defaultValueDescription:!1},{name:"noLib",type:"boolean",category:_a.Language_and_Environment,affectsProgramStructure:!0,description:_a.Disable_including_any_library_files_including_the_default_lib_d_ts,transpileOptionValue:!0,defaultValueDescription:!1},{name:"noResolve",type:"boolean",affectsModuleResolution:!0,category:_a.Modules,description:_a.Disallow_import_s_require_s_or_reference_s_from_expanding_the_number_of_files_TypeScript_should_add_to_a_project,transpileOptionValue:!0,defaultValueDescription:!1},{name:"stripInternal",type:"boolean",affectsEmit:!0,affectsBuildInfo:!0,category:_a.Emit,description:_a.Disable_emitting_declarations_that_have_internal_in_their_JSDoc_comments,defaultValueDescription:!1},{name:"disableSizeLimit",type:"boolean",affectsProgramStructure:!0,category:_a.Editor_Support,description:_a.Remove_the_20mb_cap_on_total_source_code_size_for_JavaScript_files_in_the_TypeScript_language_server,defaultValueDescription:!1},{name:"disableSourceOfProjectReferenceRedirect",type:"boolean",isTSConfigOnly:!0,category:_a.Projects,description:_a.Disable_preferring_source_files_instead_of_declaration_files_when_referencing_composite_projects,defaultValueDescription:!1},{name:"disableSolutionSearching",type:"boolean",isTSConfigOnly:!0,category:_a.Projects,description:_a.Opt_a_project_out_of_multi_project_reference_checking_when_editing,defaultValueDescription:!1},{name:"disableReferencedProjectLoad",type:"boolean",isTSConfigOnly:!0,category:_a.Projects,description:_a.Reduce_the_number_of_projects_loaded_automatically_by_TypeScript,defaultValueDescription:!1},{name:"noImplicitUseStrict",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:_a.Backwards_Compatibility,description:_a.Disable_adding_use_strict_directives_in_emitted_JavaScript_files,defaultValueDescription:!1},{name:"noEmitHelpers",type:"boolean",affectsEmit:!0,affectsBuildInfo:!0,category:_a.Emit,description:_a.Disable_generating_custom_helper_functions_like_extends_in_compiled_output,defaultValueDescription:!1},{name:"noEmitOnError",type:"boolean",affectsEmit:!0,affectsBuildInfo:!0,category:_a.Emit,transpileOptionValue:void 0,description:_a.Disable_emitting_files_if_any_type_checking_errors_are_reported,defaultValueDescription:!1},{name:"preserveConstEnums",type:"boolean",affectsEmit:!0,affectsBuildInfo:!0,category:_a.Emit,description:_a.Disable_erasing_const_enum_declarations_in_generated_code,defaultValueDescription:!1},{name:"declarationDir",type:"string",affectsEmit:!0,affectsBuildInfo:!0,affectsDeclarationPath:!0,isFilePath:!0,paramType:_a.DIRECTORY,category:_a.Emit,transpileOptionValue:void 0,description:_a.Specify_the_output_directory_for_generated_declaration_files},{name:"skipLibCheck",type:"boolean",affectsBuildInfo:!0,category:_a.Completeness,description:_a.Skip_type_checking_all_d_ts_files,defaultValueDescription:!1},{name:"allowUnusedLabels",type:"boolean",affectsBindDiagnostics:!0,affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:_a.Type_Checking,description:_a.Disable_error_reporting_for_unused_labels,defaultValueDescription:void 0},{name:"allowUnreachableCode",type:"boolean",affectsBindDiagnostics:!0,affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:_a.Type_Checking,description:_a.Disable_error_reporting_for_unreachable_code,defaultValueDescription:void 0},{name:"suppressExcessPropertyErrors",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:_a.Backwards_Compatibility,description:_a.Disable_reporting_of_excess_property_errors_during_the_creation_of_object_literals,defaultValueDescription:!1},{name:"suppressImplicitAnyIndexErrors",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:_a.Backwards_Compatibility,description:_a.Suppress_noImplicitAny_errors_when_indexing_objects_that_lack_index_signatures,defaultValueDescription:!1},{name:"forceConsistentCasingInFileNames",type:"boolean",affectsModuleResolution:!0,category:_a.Interop_Constraints,description:_a.Ensure_that_casing_is_correct_in_imports,defaultValueDescription:!0},{name:"maxNodeModuleJsDepth",type:"number",affectsModuleResolution:!0,category:_a.JavaScript_Support,description:_a.Specify_the_maximum_folder_depth_used_for_checking_JavaScript_files_from_node_modules_Only_applicable_with_allowJs,defaultValueDescription:0},{name:"noStrictGenericChecks",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:_a.Backwards_Compatibility,description:_a.Disable_strict_checking_of_generic_signatures_in_function_types,defaultValueDescription:!1},{name:"useDefineForClassFields",type:"boolean",affectsSemanticDiagnostics:!0,affectsEmit:!0,affectsBuildInfo:!0,category:_a.Language_and_Environment,description:_a.Emit_ECMAScript_standard_compliant_class_fields,defaultValueDescription:_a.true_for_ES2022_and_above_including_ESNext},{name:"preserveValueImports",type:"boolean",affectsEmit:!0,affectsBuildInfo:!0,category:_a.Backwards_Compatibility,description:_a.Preserve_unused_imported_values_in_the_JavaScript_output_that_would_otherwise_be_removed,defaultValueDescription:!1},{name:"keyofStringsOnly",type:"boolean",category:_a.Backwards_Compatibility,description:_a.Make_keyof_only_return_strings_instead_of_string_numbers_or_symbols_Legacy_option,defaultValueDescription:!1},{name:"plugins",type:"list",isTSConfigOnly:!0,element:{name:"plugin",type:"object"},description:_a.Specify_a_list_of_language_service_plugins_to_include,category:_a.Editor_Support},{name:"moduleDetection",type:new Map(Object.entries({auto:2,legacy:1,force:3})),affectsSourceFile:!0,affectsModuleResolution:!0,description:_a.Control_what_method_is_used_to_detect_module_format_JS_files,category:_a.Language_and_Environment,defaultValueDescription:_a.auto_Colon_Treat_files_with_imports_exports_import_meta_jsx_with_jsx_Colon_react_jsx_or_esm_format_with_module_Colon_node16_as_modules},{name:"ignoreDeprecations",type:"string",defaultValueDescription:void 0}],OO=[...EO,...IO],LO=OO.filter(e=>!!e.affectsSemanticDiagnostics),jO=OO.filter(e=>!!e.affectsEmit),MO=OO.filter(e=>!!e.affectsDeclarationPath),RO=OO.filter(e=>!!e.affectsModuleResolution),BO=OO.filter(e=>!!e.affectsSourceFile||!!e.affectsBindDiagnostics),JO=OO.filter(e=>!!e.affectsProgramStructure),zO=OO.filter(e=>De(e,"transpileOptionValue")),qO=OO.filter(e=>e.allowConfigDirTemplateSubstitution||!e.isCommandLineOnly&&e.isFilePath),UO=FO.filter(e=>e.allowConfigDirTemplateSubstitution||!e.isCommandLineOnly&&e.isFilePath),VO=OO.filter(function(e){return!Ze(e.type)}),WO={name:"build",type:"boolean",shortName:"b",showInSimplifiedHelpView:!0,category:_a.Command_line_Options,description:_a.Build_one_or_more_projects_and_their_dependencies_if_out_of_date,defaultValueDescription:!1},$O=[WO,{name:"verbose",shortName:"v",category:_a.Command_line_Options,description:_a.Enable_verbose_logging,type:"boolean",defaultValueDescription:!1},{name:"dry",shortName:"d",category:_a.Command_line_Options,description:_a.Show_what_would_be_built_or_deleted_if_specified_with_clean,type:"boolean",defaultValueDescription:!1},{name:"force",shortName:"f",category:_a.Command_line_Options,description:_a.Build_all_projects_including_those_that_appear_to_be_up_to_date,type:"boolean",defaultValueDescription:!1},{name:"clean",category:_a.Command_line_Options,description:_a.Delete_the_outputs_of_all_projects,type:"boolean",defaultValueDescription:!1},{name:"stopBuildOnErrors",category:_a.Command_line_Options,description:_a.Skip_building_downstream_projects_on_error_in_upstream_project,type:"boolean",defaultValueDescription:!1}],HO=[...EO,...$O],KO=[{name:"enable",type:"boolean",defaultValueDescription:!1},{name:"include",type:"list",element:{name:"include",type:"string"}},{name:"exclude",type:"list",element:{name:"exclude",type:"string"}},{name:"disableFilenameBasedTypeAcquisition",type:"boolean",defaultValueDescription:!1}];function GO(e){const t=new Map,n=new Map;return d(e,e=>{t.set(e.name.toLowerCase(),e),e.shortName&&n.set(e.shortName,e.name)}),{optionsNameMap:t,shortOptionNames:n}}function XO(){return kO||(kO=GO(OO))}var QO={diagnostic:_a.Compiler_option_0_may_only_be_used_with_build,getOptionsNameMap:dL},YO={module:1,target:3,strict:!0,esModuleInterop:!0,forceConsistentCasingInFileNames:!0,skipLibCheck:!0};function ZO(e){return eL(e,Qx)}function eL(e,t){const n=Oe(e.type.keys()),r=(e.deprecatedKeys?n.filter(t=>!e.deprecatedKeys.has(t)):n).map(e=>`'${e}'`).join(", ");return t(_a.Argument_for_0_option_must_be_Colon_1,`--${e.name}`,r)}function tL(e,t,n){return Pj(e,(t??"").trim(),n)}function nL(e,t="",n){if(Gt(t=t.trim(),"-"))return;if("listOrElement"===e.type&&!t.includes(","))return Ej(e,t,n);if(""===t)return[];const r=t.split(",");switch(e.element.type){case"number":return B(r,t=>Ej(e.element,parseInt(t),n));case"string":return B(r,t=>Ej(e.element,t||"",n));case"boolean":case"object":return un.fail(`List of ${e.element.type} is not yet supported.`);default:return B(r,t=>tL(e.element,t,n))}}function rL(e){return e.name}function iL(e,t,n,r,i){var o;const a=null==(o=t.alternateMode)?void 0:o.getOptionsNameMap().optionsNameMap.get(e.toLowerCase());if(a)return Dj(i,r,a!==WO?t.alternateMode.diagnostic:_a.Option_build_must_be_the_first_command_line_argument,e);const s=Lt(e,t.optionDeclarations,rL);return s?Dj(i,r,t.unknownDidYouMeanDiagnostic,n||e,s.name):Dj(i,r,t.unknownOptionDiagnostic,n||e)}function oL(e,t,n){const r={};let i;const o=[],a=[];return s(t),{options:r,watchOptions:i,fileNames:o,errors:a};function s(t){let n=0;for(;nso.readFile(e)));if(!Ze(t))return void a.push(t);const r=[];let i=0;for(;;){for(;i=t.length)break;const n=i;if(34===t.charCodeAt(n)){for(i++;i32;)i++;r.push(t.substring(n,i))}}s(r)}}function aL(e,t,n,r,i,o){if(r.isTSConfigOnly){const n=e[t];"null"===n?(i[r.name]=void 0,t++):"boolean"===r.type?"false"===n?(i[r.name]=Ej(r,!1,o),t++):("true"===n&&t++,o.push(Qx(_a.Option_0_can_only_be_specified_in_tsconfig_json_file_or_set_to_false_or_null_on_command_line,r.name))):(o.push(Qx(_a.Option_0_can_only_be_specified_in_tsconfig_json_file_or_set_to_null_on_command_line,r.name)),n&&!Gt(n,"-")&&t++)}else if(e[t]||"boolean"===r.type||o.push(Qx(n.optionTypeMismatchDiagnostic,r.name,JL(r))),"null"!==e[t])switch(r.type){case"number":i[r.name]=Ej(r,parseInt(e[t]),o),t++;break;case"boolean":const n=e[t];i[r.name]=Ej(r,"false"!==n,o),"false"!==n&&"true"!==n||t++;break;case"string":i[r.name]=Ej(r,e[t]||"",o),t++;break;case"list":const a=nL(r,e[t],o);i[r.name]=a||[],a&&t++;break;case"listOrElement":un.fail("listOrElement not supported here");break;default:i[r.name]=tL(r,e[t],o),t++}else i[r.name]=void 0,t++;return t}var sL,cL={alternateMode:QO,getOptionsNameMap:XO,optionDeclarations:OO,unknownOptionDiagnostic:_a.Unknown_compiler_option_0,unknownDidYouMeanDiagnostic:_a.Unknown_compiler_option_0_Did_you_mean_1,optionTypeMismatchDiagnostic:_a.Compiler_option_0_expects_an_argument};function lL(e,t){return oL(cL,e,t)}function _L(e,t){return uL(XO,e,t)}function uL(e,t,n=!1){t=t.toLowerCase();const{optionsNameMap:r,shortOptionNames:i}=e();if(n){const e=i.get(t);void 0!==e&&(t=e)}return r.get(t)}function dL(){return sL||(sL=GO(HO))}var pL={alternateMode:{diagnostic:_a.Compiler_option_0_may_not_be_used_with_build,getOptionsNameMap:XO},getOptionsNameMap:dL,optionDeclarations:HO,unknownOptionDiagnostic:_a.Unknown_build_option_0,unknownDidYouMeanDiagnostic:_a.Unknown_build_option_0_Did_you_mean_1,optionTypeMismatchDiagnostic:_a.Build_option_0_requires_a_value_of_type_1};function fL(e){const{options:t,watchOptions:n,fileNames:r,errors:i}=oL(pL,e),o=t;return 0===r.length&&r.push("."),o.clean&&o.force&&i.push(Qx(_a.Options_0_and_1_cannot_be_combined,"clean","force")),o.clean&&o.verbose&&i.push(Qx(_a.Options_0_and_1_cannot_be_combined,"clean","verbose")),o.clean&&o.watch&&i.push(Qx(_a.Options_0_and_1_cannot_be_combined,"clean","watch")),o.watch&&o.dry&&i.push(Qx(_a.Options_0_and_1_cannot_be_combined,"watch","dry")),{buildOptions:o,watchOptions:n,projects:r,errors:i}}function mL(e,...t){return nt(Qx(e,...t).messageText,Ze)}function gL(e,t,n,r,i,o){const a=bL(e,e=>n.readFile(e));if(!Ze(a))return void n.onUnRecoverableConfigFileDiagnostic(a);const s=nO(e,a),c=n.getCurrentDirectory();return s.path=Uo(e,c,Wt(n.useCaseSensitiveFileNames)),s.resolvedPath=s.path,s.originalFileName=s.fileName,ej(s,n,Bo(Do(e),c),t,Bo(e,c),void 0,o,r,i)}function hL(e,t){const n=bL(e,t);return Ze(n)?yL(e,n):{config:{},error:n}}function yL(e,t){const n=nO(e,t);return{config:ML(n,n.parseDiagnostics,void 0),error:n.parseDiagnostics.length?n.parseDiagnostics[0]:void 0}}function vL(e,t){const n=bL(e,t);return Ze(n)?nO(e,n):{fileName:e,parseDiagnostics:[n]}}function bL(e,t){let n;try{n=t(e)}catch(t){return Qx(_a.Cannot_read_file_0_Colon_1,e,t.message)}return void 0===n?Qx(_a.Cannot_read_file_0,e):n}function xL(e){return Me(e,rL)}var kL,SL={optionDeclarations:KO,unknownOptionDiagnostic:_a.Unknown_type_acquisition_option_0,unknownDidYouMeanDiagnostic:_a.Unknown_type_acquisition_option_0_Did_you_mean_1};function TL(){return kL||(kL=GO(FO))}var CL,wL,NL,DL={getOptionsNameMap:TL,optionDeclarations:FO,unknownOptionDiagnostic:_a.Unknown_watch_option_0,unknownDidYouMeanDiagnostic:_a.Unknown_watch_option_0_Did_you_mean_1,optionTypeMismatchDiagnostic:_a.Watch_option_0_requires_a_value_of_type_1};function FL(){return CL||(CL=xL(OO))}function EL(){return wL||(wL=xL(FO))}function PL(){return NL||(NL=xL(KO))}var AL,IL={name:"extends",type:"listOrElement",element:{name:"extends",type:"string"},category:_a.File_Management,disallowNullOrUndefined:!0},OL={name:"compilerOptions",type:"object",elementOptions:FL(),extraKeyDiagnostics:cL},LL={name:"watchOptions",type:"object",elementOptions:EL(),extraKeyDiagnostics:DL},jL={name:"typeAcquisition",type:"object",elementOptions:PL(),extraKeyDiagnostics:SL};function ML(e,t,n){var r;const i=null==(r=e.statements[0])?void 0:r.expression;if(i&&211!==i.kind){if(t.push(Jp(e,i,_a.The_root_value_of_a_0_file_must_be_an_object,"jsconfig.json"===Fo(e.fileName)?"jsconfig.json":"tsconfig.json")),_F(i)){const r=b(i.elements,uF);if(r)return BL(e,r,t,!0,n)}return{}}return BL(e,i,t,!0,n)}function RL(e,t){var n;return BL(e,null==(n=e.statements[0])?void 0:n.expression,t,!0,void 0)}function BL(e,t,n,r,i){return t?function t(a,s){switch(a.kind){case 112:return!0;case 97:return!1;case 106:return null;case 11:return o(a)||n.push(Jp(e,a,_a.String_literal_with_double_quotes_expected)),a.text;case 9:return Number(a.text);case 225:if(41!==a.operator||9!==a.operand.kind)break;return-Number(a.operand.text);case 211:return function(a,s){var c;const l=r?{}:void 0;for(const _ of a.properties){if(304!==_.kind){n.push(Jp(e,_,_a.Property_assignment_expected));continue}_.questionToken&&n.push(Jp(e,_.questionToken,_a.The_0_modifier_can_only_be_used_in_TypeScript_files,"?")),o(_.name)||n.push(Jp(e,_.name,_a.String_literal_with_double_quotes_expected));const a=Op(_.name)?void 0:jp(_.name),u=a&&mc(a),d=u?null==(c=null==s?void 0:s.elementOptions)?void 0:c.get(u):void 0,p=t(_.initializer,d);void 0!==u&&(r&&(l[u]=p),null==i||i.onPropertySet(u,p,_,s,d))}return l}(a,s);case 210:return function(e,n){if(r)return N(e.map(e=>t(e,n)),e=>void 0!==e);e.forEach(e=>t(e,n))}(a.elements,s&&s.element)}s?n.push(Jp(e,a,_a.Compiler_option_0_requires_a_value_of_type_1,s.name,JL(s))):n.push(Jp(e,a,_a.Property_value_can_only_be_string_literal_numeric_literal_true_false_null_object_literal_or_array_literal))}(t,null==i?void 0:i.rootOptions):r?{}:void 0;function o(t){return UN(t)&&qm(t,e)}}function JL(e){return"listOrElement"===e.type?`${JL(e.element)} or Array`:"list"===e.type?"Array":Ze(e.type)?e.type:"string"}function zL(e,t){return!!e&&(nj(t)?!e.disallowNullOrUndefined:"list"===e.type?Qe(t):"listOrElement"===e.type?Qe(t)||zL(e.element,t):typeof t===(Ze(e.type)?e.type:"string"))}function qL(e,t,n){var r,i,o;const a=Wt(n.useCaseSensitiveFileNames),s=E(N(e.fileNames,(null==(i=null==(r=e.options.configFile)?void 0:r.configFileSpecs)?void 0:i.validatedIncludeSpecs)?function(e,t,n,r){if(!t)return ot;const i=mS(e,n,t,r.useCaseSensitiveFileNames,r.getCurrentDirectory()),o=i.excludePattern&&gS(i.excludePattern,r.useCaseSensitiveFileNames),a=i.includeFilePattern&&gS(i.includeFilePattern,r.useCaseSensitiveFileNames);return a?o?e=>!(a.test(e)&&!o.test(e)):e=>!a.test(e):o?e=>o.test(e):ot}(t,e.options.configFile.configFileSpecs.validatedIncludeSpecs,e.options.configFile.configFileSpecs.validatedExcludeSpecs,n):ot),e=>oa(Bo(t,n.getCurrentDirectory()),Bo(e,n.getCurrentDirectory()),a)),c={configFilePath:Bo(t,n.getCurrentDirectory()),useCaseSensitiveFileNames:n.useCaseSensitiveFileNames},l=KL(e.options,c),_=e.watchOptions&&GL(e.watchOptions,TL()),d={compilerOptions:{...VL(l),showConfig:void 0,configFile:void 0,configFilePath:void 0,help:void 0,init:void 0,listFiles:void 0,listEmittedFiles:void 0,project:void 0,build:void 0,version:void 0},watchOptions:_&&VL(_),references:E(e.projectReferences,e=>({...e,path:e.originalPath?e.originalPath:"",originalPath:void 0})),files:u(s)?s:void 0,...(null==(o=e.options.configFile)?void 0:o.configFileSpecs)?{include:WL(e.options.configFile.configFileSpecs.validatedIncludeSpecs),exclude:e.options.configFile.configFileSpecs.validatedExcludeSpecs}:{},compileOnSave:!!e.compileOnSave||void 0},p=new Set(l.keys()),f={};for(const t in gk)!p.has(t)&&UL(t,p)&&gk[t].computeValue(e.options)!==gk[t].computeValue({})&&(f[t]=gk[t].computeValue(e.options));return Le(d.compilerOptions,VL(KL(f,c))),d}function UL(e,t){const n=new Set;return function e(r){var i;return!!bx(n,r)&&$(null==(i=gk[r])?void 0:i.dependencies,n=>t.has(n)||e(n))}(e)}function VL(e){return Object.fromEntries(e)}function WL(e){if(u(e)){if(1!==u(e))return e;if(e[0]!==ij)return e}}function $L(e){switch(e.type){case"string":case"number":case"boolean":case"object":return;case"list":case"listOrElement":return $L(e.element);default:return e.type}}function HL(e,t){return rd(t,(t,n)=>{if(t===e)return n})}function KL(e,t){return GL(e,XO(),t)}function GL(e,{optionsNameMap:t},n){const r=new Map,i=n&&Wt(n.useCaseSensitiveFileNames);for(const o in e)if(De(e,o)){if(t.has(o)&&(t.get(o).category===_a.Command_line_Options||t.get(o).category===_a.Output_Formatting))continue;const a=e[o],s=t.get(o.toLowerCase());if(s){un.assert("listOrElement"!==s.type);const e=$L(s);e?"list"===s.type?r.set(o,a.map(t=>HL(t,e))):r.set(o,HL(a,e)):n&&s.isFilePath?r.set(o,oa(n.configFilePath,Bo(a,Do(n.configFilePath)),i)):n&&"list"===s.type&&s.element.isFilePath?r.set(o,a.map(e=>oa(n.configFilePath,Bo(e,Do(n.configFilePath)),i))):r.set(o,a)}}return r}function XL(e,t){const n=" ",r=[],i=Object.keys(e).filter(e=>"init"!==e&&"help"!==e&&"watch"!==e);if(r.push("{"),r.push(`${n}// ${Vx(_a.Visit_https_Colon_Slash_Slashaka_ms_Slashtsconfig_to_read_more_about_this_file)}`),r.push(`${n}"compilerOptions": {`),a(_a.File_Layout),s("rootDir","./src","optional"),s("outDir","./dist","optional"),o(),a(_a.Environment_Settings),a(_a.See_also_https_Colon_Slash_Slashaka_ms_Slashtsconfig_Slashmodule),s("module",199),s("target",99),s("types",[]),e.lib&&s("lib",e.lib),a(_a.For_nodejs_Colon),r.push(`${n}${n}// "lib": ["esnext"],`),r.push(`${n}${n}// "types": ["node"],`),a(_a.and_npm_install_D_types_Slashnode),o(),a(_a.Other_Outputs),s("sourceMap",!0),s("declaration",!0),s("declarationMap",!0),o(),a(_a.Stricter_Typechecking_Options),s("noUncheckedIndexedAccess",!0),s("exactOptionalPropertyTypes",!0),o(),a(_a.Style_Options),s("noImplicitReturns",!0,"optional"),s("noImplicitOverride",!0,"optional"),s("noUnusedLocals",!0,"optional"),s("noUnusedParameters",!0,"optional"),s("noFallthroughCasesInSwitch",!0,"optional"),s("noPropertyAccessFromIndexSignature",!0,"optional"),o(),a(_a.Recommended_Options),s("strict",!0),s("jsx",4),s("verbatimModuleSyntax",!0),s("isolatedModules",!0),s("noUncheckedSideEffectImports",!0),s("moduleDetection",3),s("skipLibCheck",!0),i.length>0)for(o();i.length>0;)s(i[0],e[i[0]]);function o(){r.push("")}function a(e){r.push(`${n}${n}// ${Vx(e)}`)}function s(t,o,a="never"){const s=i.indexOf(t);let l;s>=0&&i.splice(s,1),l="always"===a||"never"!==a&&!De(e,t);const _=e[t]??o;l?r.push(`${n}${n}// "${t}": ${c(t,_)},`):r.push(`${n}${n}"${t}": ${c(t,_)},`)}function c(e,t){const n=OO.filter(t=>t.name===e)[0];n||un.fail(`No option named ${e}?`);const r=n.type instanceof Map?n.type:void 0;if(Qe(t)){const e="element"in n&&n.element.type instanceof Map?n.element.type:void 0;return`[${t.map(t=>l(t,e)).join(", ")}]`}return l(t,r)}function l(e,t){return t&&(e=HL(e,t)??un.fail(`No matching value of ${e}`)),JSON.stringify(e)}return r.push(`${n}}`),r.push("}"),r.push(""),r.join(t)}function QL(e,t){const n={},r=XO().optionsNameMap;for(const i in e)De(e,i)&&(n[i]=YL(r.get(i.toLowerCase()),e[i],t));return n.configFilePath&&(n.configFilePath=t(n.configFilePath)),n}function YL(e,t,n){if(e&&!nj(t)){if("list"===e.type){const r=t;if(e.element.isFilePath&&r.length)return r.map(n)}else if(e.isFilePath)return n(t);un.assert("listOrElement"!==e.type)}return t}function ZL(e,t,n,r,i,o,a,s,c){return oj(e,void 0,t,n,r,c,i,o,a,s)}function ej(e,t,n,r,i,o,a,s,c){var l,_;null==(l=Hn)||l.push(Hn.Phase.Parse,"parseJsonSourceFileConfigFileContent",{path:e.fileName});const u=oj(void 0,e,t,n,r,c,i,o,a,s);return null==(_=Hn)||_.pop(),u}function tj(e,t){t&&Object.defineProperty(e,"configFile",{enumerable:!1,writable:!1,value:t})}function nj(e){return null==e}function rj(e,t){return Do(Bo(e,t))}var ij="**/*";function oj(e,t,n,r,i={},o,a,s=[],c=[],l){un.assert(void 0===e&&void 0!==t||void 0!==e&&void 0===t);const _=[],u=yj(e,t,n,r,a,s,_,l),{raw:d}=u,p=sj(Ue(i,u.options||{}),qO,r),f=aj(o&&u.watchOptions?Ue(o,u.watchOptions):u.watchOptions||o,r);p.configFilePath=a&&Oo(a);const m=Jo(a?rj(a,r):r),g=function(){const e=b("references",e=>"object"==typeof e,"object"),n=h(y("files"));if(n){const r="no-prop"===e||Qe(e)&&0===e.length,i=De(d,"extends");if(0===n.length&&r&&!i)if(t){const e=a||"tsconfig.json",n=_a.The_files_list_in_config_file_0_is_empty,r=Hf(t,"files",e=>e.initializer),i=Dj(t,r,n,e);_.push(i)}else x(_a.The_files_list_in_config_file_0_is_empty,a||"tsconfig.json")}let r=h(y("include"));const i=y("exclude");let o,s,c,l,u=!1,f=h(i);if("no-prop"===i){const e=p.outDir,t=p.declarationDir;(e||t)&&(f=N([e,t],e=>!!e))}void 0===n&&void 0===r&&(r=[ij],u=!0),r&&(o=zj(r,_,!0,t,"include"),c=uj(o,m)||o),f&&(s=zj(f,_,!1,t,"exclude"),l=uj(s,m)||s);const g=N(n,Ze);return{filesSpecs:n,includeSpecs:r,excludeSpecs:f,validatedFilesSpec:uj(g,m)||g,validatedIncludeSpecs:c,validatedExcludeSpecs:l,validatedFilesSpecBeforeSubstitution:g,validatedIncludeSpecsBeforeSubstitution:o,validatedExcludeSpecsBeforeSubstitution:s,isDefaultIncludeSpec:u}}();return t&&(t.configFileSpecs=g),tj(p,t),{options:p,watchOptions:f,fileNames:function(e){const t=jj(g,e,p,n,c);return fj(t,gj(d),s)&&_.push(pj(g,a)),t}(m),projectReferences:function(e){let t;const n=b("references",e=>"object"==typeof e,"object");if(Qe(n))for(const r of n)"string"!=typeof r.path?x(_a.Compiler_option_0_requires_a_value_of_type_1,"reference.path","string"):(t||(t=[])).push({path:Bo(r.path,e),originalPath:r.path,prepend:r.prepend,circular:r.circular});return t}(m),typeAcquisition:u.typeAcquisition||Cj(),raw:d,errors:_,wildcardDirectories:Uj(g,m,n.useCaseSensitiveFileNames),compileOnSave:!!d.compileOnSave};function h(e){return Qe(e)?e:void 0}function y(e){return b(e,Ze,"string")}function b(e,n,r){if(De(d,e)&&!nj(d[e])){if(Qe(d[e])){const i=d[e];return t||v(i,n)||_.push(Qx(_a.Compiler_option_0_requires_a_value_of_type_1,e,r)),i}return x(_a.Compiler_option_0_requires_a_value_of_type_1,e,"Array"),"not-array"}return"no-prop"}function x(e,...n){t||_.push(Qx(e,...n))}}function aj(e,t){return sj(e,UO,t)}function sj(e,t,n){if(!e)return e;let r;for(const r of t)if(void 0!==e[r.name]){const t=e[r.name];switch(r.type){case"string":un.assert(r.isFilePath),lj(t)&&i(r,_j(t,n));break;case"list":un.assert(r.element.isFilePath);const e=uj(t,n);e&&i(r,e);break;case"object":un.assert("paths"===r.name);const o=dj(t,n);o&&i(r,o);break;default:un.fail("option type not supported")}}return r||e;function i(t,n){(r??(r=Le({},e)))[t.name]=n}}var cj="${configDir}";function lj(e){return Ze(e)&&Gt(e,cj,!0)}function _j(e,t){return Bo(e.replace(cj,"./"),t)}function uj(e,t){if(!e)return e;let n;return e.forEach((r,i)=>{lj(r)&&((n??(n=e.slice()))[i]=_j(r,t))}),n}function dj(e,t){let n;return Ee(e).forEach(r=>{if(!Qe(e[r]))return;const i=uj(e[r],t);i&&((n??(n=Le({},e)))[r]=i)}),n}function pj({includeSpecs:e,excludeSpecs:t},n){return Qx(_a.No_inputs_were_found_in_config_file_0_Specified_include_paths_were_1_and_exclude_paths_were_2,n||"tsconfig.json",JSON.stringify(e||[]),JSON.stringify(t||[]))}function fj(e,t,n){return 0===e.length&&t&&(!n||0===n.length)}function mj(e){return!e.fileNames.length&&De(e.raw,"references")}function gj(e){return!De(e,"files")&&!De(e,"references")}function hj(e,t,n,r,i){const o=r.length;return fj(e,i)?r.push(pj(n,t)):D(r,e=>!function(e){return e.code===_a.No_inputs_were_found_in_config_file_0_Specified_include_paths_were_1_and_exclude_paths_were_2.code}(e)),o!==r.length}function yj(e,t,n,r,i,o,a,s){var c;const l=Bo(i||"",r=Oo(r));if(o.includes(l))return a.push(Qx(_a.Circularity_detected_while_resolving_configuration_Colon_0,[...o,l].join(" -> "))),{raw:e||RL(t,a)};const _=e?function(e,t,n,r,i){De(e,"excludes")&&i.push(Qx(_a.Unknown_option_excludes_Did_you_mean_exclude));const o=Tj(e.compilerOptions,n,i,r),a=wj(e.typeAcquisition,n,i,r),s=function(e,t,n){return Nj(EL(),e,t,void 0,DL,n)}(e.watchOptions,n,i);e.compileOnSave=function(e,t,n){if(!De(e,SO.name))return!1;const r=Fj(SO,e.compileOnSave,t,n);return"boolean"==typeof r&&r}(e,n,i);return{raw:e,options:o,watchOptions:s,typeAcquisition:a,extendedConfigPath:e.extends||""===e.extends?vj(e.extends,t,n,r,i):void 0}}(e,n,r,i,a):function(e,t,n,r,i){const o=Sj(r);let a,s,c,l;const _=(void 0===AL&&(AL={name:void 0,type:"object",elementOptions:xL([OL,LL,jL,IL,{name:"references",type:"list",element:{name:"references",type:"object"},category:_a.Projects},{name:"files",type:"list",element:{name:"files",type:"string"},category:_a.File_Management},{name:"include",type:"list",element:{name:"include",type:"string"},category:_a.File_Management,defaultValueDescription:_a.if_files_is_specified_otherwise_Asterisk_Asterisk_Slash_Asterisk},{name:"exclude",type:"list",element:{name:"exclude",type:"string"},category:_a.File_Management,defaultValueDescription:_a.node_modules_bower_components_jspm_packages_plus_the_value_of_outDir_if_one_is_specified},SO])}),AL),u=ML(e,i,{rootOptions:_,onPropertySet:function(u,d,p,f,m){if(m&&m!==IL&&(d=Fj(m,d,n,i,p,p.initializer,e)),null==f?void 0:f.name)if(m){let e;f===OL?e=o:f===LL?e=s??(s={}):f===jL?e=a??(a=Cj(r)):un.fail("Unknown option"),e[m.name]=d}else u&&(null==f?void 0:f.extraKeyDiagnostics)&&(f.elementOptions?i.push(iL(u,f.extraKeyDiagnostics,void 0,p.name,e)):i.push(Jp(e,p.name,f.extraKeyDiagnostics.unknownOptionDiagnostic,u)));else f===_&&(m===IL?c=vj(d,t,n,r,i,p,p.initializer,e):m||("excludes"===u&&i.push(Jp(e,p.name,_a.Unknown_option_excludes_Did_you_mean_exclude)),b(IO,e=>e.name===u)&&(l=ie(l,p.name))))}});return a||(a=Cj(r)),l&&u&&void 0===u.compilerOptions&&i.push(Jp(e,l[0],_a._0_should_be_set_inside_the_compilerOptions_object_of_the_config_json_file,jp(l[0]))),{raw:u,options:o,watchOptions:s,typeAcquisition:a,extendedConfigPath:c}}(t,n,r,i,a);if((null==(c=_.options)?void 0:c.paths)&&(_.options.pathsBasePath=r),_.extendedConfigPath){o=o.concat([l]);const e={options:{}};Ze(_.extendedConfigPath)?u(e,_.extendedConfigPath):_.extendedConfigPath.forEach(t=>u(e,t)),e.include&&(_.raw.include=e.include),e.exclude&&(_.raw.exclude=e.exclude),e.files&&(_.raw.files=e.files),void 0===_.raw.compileOnSave&&e.compileOnSave&&(_.raw.compileOnSave=e.compileOnSave),t&&e.extendedSourceFiles&&(t.extendedSourceFiles=Oe(e.extendedSourceFiles.keys())),_.options=Le(e.options,_.options),_.watchOptions=_.watchOptions&&e.watchOptions?d(e,_.watchOptions):_.watchOptions||e.watchOptions}return _;function u(e,i){const c=function(e,t,n,r,i,o,a){const s=n.useCaseSensitiveFileNames?t:_t(t);let c,l,_;if(o&&(c=o.get(s))?({extendedResult:l,extendedConfig:_}=c):(l=vL(t,e=>n.readFile(e)),l.parseDiagnostics.length||(_=yj(void 0,l,n,Do(t),Fo(t),r,i,o)),o&&o.set(s,{extendedResult:l,extendedConfig:_})),e&&((a.extendedSourceFiles??(a.extendedSourceFiles=new Set)).add(l.fileName),l.extendedSourceFiles))for(const e of l.extendedSourceFiles)a.extendedSourceFiles.add(e);if(!l.parseDiagnostics.length)return _;i.push(...l.parseDiagnostics)}(t,i,n,o,a,s,e);if(c&&c.options){const t=c.raw;let o;const a=a=>{_.raw[a]||t[a]&&(e[a]=E(t[a],e=>lj(e)||go(e)?e:jo(o||(o=ia(Do(i),r,Wt(n.useCaseSensitiveFileNames))),e)))};a("include"),a("exclude"),a("files"),void 0!==t.compileOnSave&&(e.compileOnSave=t.compileOnSave),Le(e.options,c.options),e.watchOptions=e.watchOptions&&c.watchOptions?d(e,c.watchOptions):e.watchOptions||c.watchOptions}}function d(e,t){return e.watchOptionsCopied?Le(e.watchOptions,t):(e.watchOptionsCopied=!0,Le({},e.watchOptions,t))}}function vj(e,t,n,r,i,o,a,s){let c;const l=r?rj(r,n):n;if(Ze(e))c=bj(e,t,l,i,a,s);else if(Qe(e)){c=[];for(let r=0;rDj(i,r,e,...t)))}function Aj(e,t,n,r,i,o,a){return N(E(t,(t,s)=>Fj(e.element,t,n,r,i,null==o?void 0:o.elements[s],a)),t=>!!e.listPreserveFalsyValues||!!t)}var Ij,Oj=/(?:^|\/)\*\*\/?$/,Lj=/^[^*?]*(?=\/[^/]*[*?])/;function jj(e,t,n,r,i=l){t=Jo(t);const o=Wt(r.useCaseSensitiveFileNames),a=new Map,s=new Map,c=new Map,{validatedFilesSpec:_,validatedIncludeSpecs:u,validatedExcludeSpecs:d}=e,p=AS(n,i),f=IS(n,p);if(_)for(const e of _){const n=Bo(e,t);a.set(o(n),n)}let m;if(u&&u.length>0)for(const e of r.readDirectory(t,I(f),d,u,void 0)){if(ko(e,".json")){if(!m){const e=E(_S(u.filter(e=>Mt(e,".json")),t,"files"),e=>`^${e}$`);m=e?e.map(e=>gS(e,r.useCaseSensitiveFileNames)):l}if(-1!==k(m,t=>t.test(e))){const t=o(e);a.has(t)||c.has(t)||c.set(t,e)}continue}if($j(e,a,s,p,o))continue;Hj(e,s,p,o);const n=o(e);a.has(n)||s.has(n)||s.set(n,e)}const g=Oe(a.values()),h=Oe(s.values());return g.concat(h,Oe(c.values()))}function Mj(e,t,n,r,i){const{validatedFilesSpec:o,validatedIncludeSpecs:a,validatedExcludeSpecs:s}=t;if(!u(a)||!u(s))return!1;n=Jo(n);const c=Wt(r);if(o)for(const t of o)if(c(Bo(t,n))===e)return!1;return Jj(e,s,r,i,n)}function Rj(e){const t=Gt(e,"**/")?0:e.indexOf("/**/");return-1!==t&&(Mt(e,"/..")?e.length:e.lastIndexOf("/../"))>t}function Bj(e,t,n,r){return Jj(e,N(t,e=>!Rj(e)),n,r)}function Jj(e,t,n,r,i){const o=lS(t,jo(Jo(r),i),"exclude"),a=o&&gS(o,n);return!!a&&(!!a.test(e)||!xo(e)&&a.test(Wo(e)))}function zj(e,t,n,r,i){return e.filter(e=>{if(!Ze(e))return!1;const o=qj(e,n);return void 0!==o&&t.push(function(e,t){const n=$f(r,i,t);return Dj(r,n,e,t)}(...o)),void 0===o})}function qj(e,t){return un.assert("string"==typeof e),t&&Oj.test(e)?[_a.File_specification_cannot_end_in_a_recursive_directory_wildcard_Asterisk_Asterisk_Colon_0,e]:Rj(e)?[_a.File_specification_cannot_contain_a_parent_directory_that_appears_after_a_recursive_directory_wildcard_Asterisk_Asterisk_Colon_0,e]:void 0}function Uj({validatedIncludeSpecs:e,validatedExcludeSpecs:t},n,r){const i=lS(t,n,"exclude"),o=i&&new RegExp(i,r?"":"i"),a={},s=new Map;if(void 0!==e){const t=[];for(const i of e){const e=Jo(jo(n,i));if(o&&o.test(e))continue;const c=Wj(e,r);if(c){const{key:e,path:n,flags:r}=c,i=s.get(e),o=void 0!==i?a[i]:void 0;(void 0===o||oSo(e,t)?t:void 0);if(!o)return!1;for(const r of o){if(ko(e,r)&&(".ts"!==r||!ko(e,".d.ts")))return!1;const o=i($S(e,r));if(t.has(o)||n.has(o)){if(".d.ts"===r&&(ko(e,".js")||ko(e,".jsx")))continue;return!0}}return!1}function Hj(e,t,n,r){const i=d(n,t=>So(e,t)?t:void 0);if(i)for(let n=i.length-1;n>=0;n--){const o=i[n];if(ko(e,o))return;const a=r($S(e,o));t.delete(a)}}function Kj(e){const t={};for(const n in e)if(De(e,n)){const r=_L(n);void 0!==r&&(t[n]=Gj(e[n],r))}return t}function Gj(e,t){if(void 0===e)return e;switch(t.type){case"object":case"string":return"";case"number":return"number"==typeof e?e:"";case"boolean":return"boolean"==typeof e?e:"";case"listOrElement":if(!Qe(e))return Gj(e,t.element);case"list":const n=t.element;return Qe(e)?B(e,e=>Gj(e,n)):"";default:return rd(t.type,(t,n)=>{if(t===e)return n})}}function Xj(e,t,...n){e.trace(Xx(t,...n))}function Qj(e,t){return!!e.traceResolution&&void 0!==t.trace}function Yj(e,t,n){let r;if(t&&e){const i=e.contents.packageJsonContent;"string"==typeof i.name&&"string"==typeof i.version&&(r={name:i.name,subModuleName:t.path.slice(e.packageDirectory.length+lo.length),version:i.version,peerDependencies:uR(e,n)})}return t&&{path:t.path,extension:t.ext,packageId:r,resolvedUsingTsExtension:t.resolvedUsingTsExtension}}function Zj(e){return Yj(void 0,e,void 0)}function eM(e){if(e)return un.assert(void 0===e.packageId),{path:e.path,ext:e.extension,resolvedUsingTsExtension:e.resolvedUsingTsExtension}}function tM(e){const t=[];return 1&e&&t.push("TypeScript"),2&e&&t.push("JavaScript"),4&e&&t.push("Declaration"),8&e&&t.push("JSON"),t.join(", ")}function nM(e){if(e)return un.assert(QS(e.extension)),{fileName:e.path,packageId:e.packageId}}function rM(e,t,n,r,i,o,a,s,c){if(!a.resultFromCache&&!a.compilerOptions.preserveSymlinks&&t&&n&&!t.originalPath&&!Cs(e)){const{resolvedFileName:e,originalPath:n}=fM(t.path,a.host,a.traceEnabled);n&&(t={...t,path:e,originalPath:n})}return iM(t,n,r,i,o,a.resultFromCache,s,c)}function iM(e,t,n,r,i,o,a,s){return o?(null==a?void 0:a.isReadonly)?{...o,failedLookupLocations:sM(o.failedLookupLocations,n),affectingLocations:sM(o.affectingLocations,r),resolutionDiagnostics:sM(o.resolutionDiagnostics,i)}:(o.failedLookupLocations=aM(o.failedLookupLocations,n),o.affectingLocations=aM(o.affectingLocations,r),o.resolutionDiagnostics=aM(o.resolutionDiagnostics,i),o):{resolvedModule:e&&{resolvedFileName:e.path,originalPath:!0===e.originalPath?void 0:e.originalPath,extension:e.extension,isExternalLibraryImport:t,packageId:e.packageId,resolvedUsingTsExtension:!!e.resolvedUsingTsExtension},failedLookupLocations:oM(n),affectingLocations:oM(r),resolutionDiagnostics:oM(i),alternateResult:s}}function oM(e){return e.length?e:void 0}function aM(e,t){return(null==t?void 0:t.length)?(null==e?void 0:e.length)?(e.push(...t),e):t:e}function sM(e,t){return(null==e?void 0:e.length)?t.length?[...e,...t]:e.slice():oM(t)}function cM(e,t,n,r){if(!De(e,t))return void(r.traceEnabled&&Xj(r.host,_a.package_json_does_not_have_a_0_field,t));const i=e[t];if(typeof i===n&&null!==i)return i;r.traceEnabled&&Xj(r.host,_a.Expected_type_of_0_field_in_package_json_to_be_1_got_2,t,n,null===i?"null":typeof i)}function lM(e,t,n,r){const i=cM(e,t,"string",r);if(void 0===i)return;if(!i)return void(r.traceEnabled&&Xj(r.host,_a.package_json_had_a_falsy_0_field,t));const o=Jo(jo(n,i));return r.traceEnabled&&Xj(r.host,_a.package_json_has_0_field_1_that_references_2,t,i,o),o}function _M(e){Ij||(Ij=new bn(s));for(const t in e){if(!De(e,t))continue;const n=kn.tryParse(t);if(void 0!==n&&n.test(Ij))return{version:t,paths:e[t]}}}function uM(e,t){if(e.typeRoots)return e.typeRoots;let n;return e.configFilePath?n=Do(e.configFilePath):t.getCurrentDirectory&&(n=t.getCurrentDirectory()),void 0!==n?function(e){let t;return sa(Jo(e),e=>{const n=jo(e,dM);(t??(t=[])).push(n)}),t}(n):void 0}var dM=jo("node_modules","@types");function pM(e,t,n){return 0===Zo(e,t,!("function"==typeof n.useCaseSensitiveFileNames?n.useCaseSensitiveFileNames():n.useCaseSensitiveFileNames))}function fM(e,t,n){const r=$M(e,t,n),i=pM(e,r,t);return{resolvedFileName:i?e:r,originalPath:i?void 0:e}}function mM(e,t,n){return jo(e,Mt(e,"/node_modules/@types")||Mt(e,"/node_modules/@types/")?FR(t,n):t)}function gM(e,t,n,r,i,o,a){un.assert("string"==typeof e,"Non-string value passed to `ts.resolveTypeReferenceDirective`, likely by a wrapping package working with an outdated `resolveTypeReferenceDirectives` signature. This is probably not a problem in TS itself.");const s=Qj(n,r);i&&(n=i.commandLine.options);const c=t?Do(t):void 0;let l=c?null==o?void 0:o.getFromDirectoryCache(e,a,c,i):void 0;if(l||!c||Cs(e)||(l=null==o?void 0:o.getFromNonRelativeNameCache(e,a,c,i)),l)return s&&(Xj(r,_a.Resolving_type_reference_directive_0_containing_file_1,e,t),i&&Xj(r,_a.Using_compiler_options_of_project_reference_redirect_0,i.sourceFile.fileName),Xj(r,_a.Resolution_for_type_reference_directive_0_was_found_in_cache_from_location_1,e,c),k(l)),l;const _=uM(n,r);s&&(void 0===t?void 0===_?Xj(r,_a.Resolving_type_reference_directive_0_containing_file_not_set_root_directory_not_set,e):Xj(r,_a.Resolving_type_reference_directive_0_containing_file_not_set_root_directory_1,e,_):void 0===_?Xj(r,_a.Resolving_type_reference_directive_0_containing_file_1_root_directory_not_set,e,t):Xj(r,_a.Resolving_type_reference_directive_0_containing_file_1_root_directory_2,e,t,_),i&&Xj(r,_a.Using_compiler_options_of_project_reference_redirect_0,i.sourceFile.fileName));const u=[],d=[];let p=hM(n);void 0!==a&&(p|=30);const m=bk(n);99===a&&3<=m&&m<=99&&(p|=32);const g=8&p?yM(n,a):[],h=[],y={compilerOptions:n,host:r,traceEnabled:s,failedLookupLocations:u,affectingLocations:d,packageJsonInfoCache:o,features:p,conditions:g,requestContainingDirectory:c,reportDiagnostic:e=>{h.push(e)},isConfigLookup:!1,candidateIsFromPackageJsonField:!1,resolvedPackageDirectory:!1};let v,b=function(){if(_&&_.length)return s&&Xj(r,_a.Resolving_with_primary_search_path_0,_.join(", ")),f(_,t=>{const i=mM(t,e,y),o=Db(t,r);if(!o&&s&&Xj(r,_a.Directory_0_does_not_exist_skipping_all_lookups_in_it,t),n.typeRoots){const e=ZM(4,i,!o,y);if(e){const t=XM(e.path);return nM(Yj(t?dR(t,!1,y):void 0,e,y))}}return nM(oR(4,i,!o,y))});s&&Xj(r,_a.Root_directory_cannot_be_determined_skipping_primary_search_paths)}(),x=!0;if(b||(b=function(){const i=t&&Do(t);if(void 0!==i){let o;if(n.typeRoots&&Mt(t,TV))s&&Xj(r,_a.Resolving_type_reference_directive_for_program_that_specifies_custom_typeRoots_skipping_lookup_in_node_modules_folder);else if(s&&Xj(r,_a.Looking_up_in_node_modules_folder_initial_location_0,i),Cs(e)){const{path:t}=WM(i,e);o=HM(4,t,!1,y,!0)}else{const t=kR(4,e,i,y,void 0,void 0);o=t&&t.value}return nM(o)}s&&Xj(r,_a.Containing_file_is_not_specified_and_root_directory_cannot_be_determined_skipping_lookup_in_node_modules_folder)}(),x=!1),b){const{fileName:e,packageId:t}=b;let i,o=e;n.preserveSymlinks||({resolvedFileName:o,originalPath:i}=fM(e,r,s)),v={primary:x,resolvedFileName:o,originalPath:i,packageId:t,isExternalLibraryImport:GM(e)}}return l={resolvedTypeReferenceDirective:v,failedLookupLocations:oM(u),affectingLocations:oM(d),resolutionDiagnostics:oM(h)},c&&o&&!o.isReadonly&&(o.getOrCreateCacheForDirectory(c,i).set(e,a,l),Cs(e)||o.getOrCreateCacheForNonRelativeName(e,a,i).set(c,l)),s&&k(l),l;function k(t){var n;(null==(n=t.resolvedTypeReferenceDirective)?void 0:n.resolvedFileName)?t.resolvedTypeReferenceDirective.packageId?Xj(r,_a.Type_reference_directive_0_was_successfully_resolved_to_1_with_Package_ID_2_primary_Colon_3,e,t.resolvedTypeReferenceDirective.resolvedFileName,md(t.resolvedTypeReferenceDirective.packageId),t.resolvedTypeReferenceDirective.primary):Xj(r,_a.Type_reference_directive_0_was_successfully_resolved_to_1_primary_Colon_2,e,t.resolvedTypeReferenceDirective.resolvedFileName,t.resolvedTypeReferenceDirective.primary):Xj(r,_a.Type_reference_directive_0_was_not_resolved,e)}}function hM(e){let t=0;switch(bk(e)){case 3:case 99:case 100:t=30}return e.resolvePackageJsonExports?t|=8:!1===e.resolvePackageJsonExports&&(t&=-9),e.resolvePackageJsonImports?t|=2:!1===e.resolvePackageJsonImports&&(t&=-3),t}function yM(e,t){const n=bk(e);if(void 0===t)if(100===n)t=99;else if(2===n)return[];const r=99===t?["import"]:["require"];return e.noDtsResolution||r.push("types"),100!==n&&r.push("node"),K(r,e.customConditions)}function vM(e,t,n,r,i){const o=cR(null==i?void 0:i.getPackageJsonInfoCache(),r,n);return TR(r,t,t=>{if("node_modules"!==Fo(t)){const n=jo(t,"node_modules");return dR(jo(n,e),!1,o)}})}function bM(e,t){if(e.types)return e.types;const n=[];if(t.directoryExists&&t.getDirectories){const r=uM(e,t);if(r)for(const e of r)if(t.directoryExists(e))for(const r of t.getDirectories(e)){const i=Jo(r),o=jo(e,i,"package.json");if(!t.fileExists(o)||null!==wb(o,t).typings){const e=Fo(i);46!==e.charCodeAt(0)&&n.push(e)}}}return n}function xM(e){return!!(null==e?void 0:e.contents)}function kM(e){return!!e&&!e.contents}function SM(e){var t;if(null===e||"object"!=typeof e)return""+e;if(Qe(e))return`[${null==(t=e.map(e=>SM(e)))?void 0:t.join(",")}]`;let n="{";for(const t in e)De(e,t)&&(n+=`${t}: ${SM(e[t])}`);return n+"}"}function TM(e,t){return t.map(t=>SM($k(e,t))).join("|")+`|${e.pathsBasePath}`}function CM(e,t){const n=new Map,r=new Map;let i=new Map;return e&&n.set(e,i),{getMapOfCacheRedirects:function(e){return e?o(e.commandLine.options,!1):i},getOrCreateMapOfCacheRedirects:function(e){return e?o(e.commandLine.options,!0):i},update:function(t){e!==t&&(e?i=o(t,!0):n.set(t,i),e=t)},clear:function(){const o=e&&t.get(e);i.clear(),n.clear(),t.clear(),r.clear(),e&&(o&&t.set(e,o),n.set(e,i))},getOwnMap:()=>i};function o(t,o){let s=n.get(t);if(s)return s;const c=a(t);if(s=r.get(c),!s){if(e){const t=a(e);t===c?s=i:r.has(t)||r.set(t,i)}o&&(s??(s=new Map)),s&&r.set(c,s)}return s&&n.set(t,s),s}function a(e){let n=t.get(e);return n||t.set(e,n=TM(e,RO)),n}}function wM(e,t,n,r){const i=e.getOrCreateMapOfCacheRedirects(t);let o=i.get(n);return o||(o=r(),i.set(n,o)),o}function NM(e,t){return void 0===t?e:`${t}|${e}`}function DM(){const e=new Map,t=new Map,n={get:(t,n)=>e.get(r(t,n)),set:(t,i,o)=>(e.set(r(t,i),o),n),delete:(t,i)=>(e.delete(r(t,i)),n),has:(t,n)=>e.has(r(t,n)),forEach:n=>e.forEach((e,r)=>{const[i,o]=t.get(r);return n(e,i,o)}),size:()=>e.size};return n;function r(e,n){const r=NM(e,n);return t.set(r,[e,n]),r}}function FM(e){return e.resolvedModule&&(e.resolvedModule.originalPath||e.resolvedModule.resolvedFileName)}function EM(e){return e.resolvedTypeReferenceDirective&&(e.resolvedTypeReferenceDirective.originalPath||e.resolvedTypeReferenceDirective.resolvedFileName)}function PM(e,t,n,r,i,o){o??(o=new Map);const a=function(e,t,n,r){const i=CM(n,r);return{getFromDirectoryCache:function(n,r,o,a){var s,c;const l=Uo(o,e,t);return null==(c=null==(s=i.getMapOfCacheRedirects(a))?void 0:s.get(l))?void 0:c.get(n,r)},getOrCreateCacheForDirectory:function(n,r){const o=Uo(n,e,t);return wM(i,r,o,()=>DM())},clear:function(){i.clear()},update:function(e){i.update(e)},directoryToModuleNameMap:i}}(e,t,n,o),s=function(e,t,n,r,i){const o=CM(n,i);return{getFromNonRelativeNameCache:function(e,t,n,r){var i,a;return un.assert(!Cs(e)),null==(a=null==(i=o.getMapOfCacheRedirects(r))?void 0:i.get(NM(e,t)))?void 0:a.get(n)},getOrCreateCacheForNonRelativeName:function(e,t,n){return un.assert(!Cs(e)),wM(o,n,NM(e,t),a)},clear:function(){o.clear()},update:function(e){o.update(e)}};function a(){const n=new Map;return{get:function(r){return n.get(Uo(r,e,t))},set:function(i,o){const a=Uo(i,e,t);if(n.has(a))return;n.set(a,o);const s=r(o),c=s&&function(n,r){const i=Uo(Do(r),e,t);let o=0;const a=Math.min(n.length,i.length);for(;or,clearAllExceptPackageJsonInfoCache:c,optionsToRedirectsKey:o};function c(){a.clear(),s.clear()}}function AM(e,t,n,r,i){const o=PM(e,t,n,r,FM,i);return o.getOrCreateCacheForModuleName=(e,t,n)=>o.getOrCreateCacheForNonRelativeName(e,t,n),o}function IM(e,t,n,r,i){return PM(e,t,n,r,EM,i)}function OM(e){return{moduleResolution:2,traceResolution:e.traceResolution}}function LM(e,t,n,r,i){return MM(e,t,OM(n),r,i)}function jM(e,t,n,r){const i=Do(t);return n.getFromDirectoryCache(e,r,i,void 0)}function MM(e,t,n,r,i,o,a){const s=Qj(n,r);o&&(n=o.commandLine.options),s&&(Xj(r,_a.Resolving_module_0_from_1,e,t),o&&Xj(r,_a.Using_compiler_options_of_project_reference_redirect_0,o.sourceFile.fileName));const c=Do(t);let l=null==i?void 0:i.getFromDirectoryCache(e,a,c,o);if(l)s&&Xj(r,_a.Resolution_for_module_0_was_found_in_cache_from_location_1,e,c);else{let _=n.moduleResolution;switch(void 0===_?(_=bk(n),s&&Xj(r,_a.Module_resolution_kind_is_not_specified_using_0,li[_])):s&&Xj(r,_a.Explicitly_specified_module_resolution_kind_Colon_0,li[_]),_){case 3:case 99:l=function(e,t,n,r,i,o,a){return function(e,t,n,r,i,o,a,s,c){const l=Do(n),_=99===s?32:0;let u=r.noDtsResolution?3:7;return Nk(r)&&(u|=8),VM(e|_,t,l,r,i,o,u,!1,a,c)}(30,e,t,n,r,i,o,a)}(e,t,n,r,i,o,a);break;case 2:l=qM(e,t,n,r,i,o,a?yM(n,a):void 0);break;case 1:l=LR(e,t,n,r,i,o);break;case 100:l=zM(e,t,n,r,i,o,a?yM(n,a):void 0);break;default:return un.fail(`Unexpected moduleResolution: ${_}`)}i&&!i.isReadonly&&(i.getOrCreateCacheForDirectory(c,o).set(e,a,l),Cs(e)||i.getOrCreateCacheForNonRelativeName(e,a,o).set(c,l))}return s&&(l.resolvedModule?l.resolvedModule.packageId?Xj(r,_a.Module_name_0_was_successfully_resolved_to_1_with_Package_ID_2,e,l.resolvedModule.resolvedFileName,md(l.resolvedModule.packageId)):Xj(r,_a.Module_name_0_was_successfully_resolved_to_1,e,l.resolvedModule.resolvedFileName):Xj(r,_a.Module_name_0_was_not_resolved,e)),l}function RM(e,t,n,r,i){const o=function(e,t,n,r){const{baseUrl:i,paths:o}=r.compilerOptions;if(o&&!vo(t))return r.traceEnabled&&(i&&Xj(r.host,_a.baseUrl_option_is_set_to_0_using_this_value_to_resolve_non_relative_module_name_1,i,t),Xj(r.host,_a.paths_option_is_specified_looking_for_a_pattern_to_match_module_name_0,t)),NR(e,t,Ky(r.compilerOptions,r.host),o,GS(o),n,!1,r)}(e,t,r,i);return o?o.value:Cs(t)?function(e,t,n,r,i){if(!i.compilerOptions.rootDirs)return;i.traceEnabled&&Xj(i.host,_a.rootDirs_option_is_set_using_it_to_resolve_relative_module_name_0,t);const o=Jo(jo(n,t));let a,s;for(const e of i.compilerOptions.rootDirs){let t=Jo(e);Mt(t,lo)||(t+=lo);const n=Gt(o,t)&&(void 0===s||s.length(e[e.None=0]="None",e[e.Imports=2]="Imports",e[e.SelfName=4]="SelfName",e[e.Exports=8]="Exports",e[e.ExportsPatternTrailers=16]="ExportsPatternTrailers",e[e.AllFeatures=30]="AllFeatures",e[e.Node16Default=30]="Node16Default",e[e.NodeNextDefault=30]="NodeNextDefault",e[e.BundlerDefault=30]="BundlerDefault",e[e.EsmMode=32]="EsmMode",e))(JM||{});function zM(e,t,n,r,i,o,a){const s=Do(t);let c=n.noDtsResolution?3:7;return Nk(n)&&(c|=8),VM(hM(n),e,s,n,r,i,c,!1,o,a)}function qM(e,t,n,r,i,o,a,s){let c;return s?c=8:n.noDtsResolution?(c=3,Nk(n)&&(c|=8)):c=Nk(n)?15:7,VM(a?30:0,e,Do(t),n,r,i,c,!!s,o,a)}function UM(e,t,n){return VM(30,e,Do(t),{moduleResolution:99},n,void 0,8,!0,void 0,void 0)}function VM(e,t,n,r,i,o,a,s,c,_){var d,p,f,m,g;const h=Qj(r,i),y=[],b=[],x=bk(r);_??(_=yM(r,100===x||2===x?void 0:32&e?99:1));const k=[],S={compilerOptions:r,host:i,traceEnabled:h,failedLookupLocations:y,affectingLocations:b,packageJsonInfoCache:o,features:e,conditions:_??l,requestContainingDirectory:n,reportDiagnostic:e=>{k.push(e)},isConfigLookup:s,candidateIsFromPackageJsonField:!1,resolvedPackageDirectory:!1};let C,w;if(h&&Rk(x)&&Xj(i,_a.Resolving_in_0_mode_with_conditions_1,32&e?"ESM":"CJS",S.conditions.map(e=>`'${e}'`).join(", ")),2===x){const e=5&a,t=-6&a;C=e&&N(e,S)||t&&N(t,S)||void 0}else C=N(a,S);if(S.resolvedPackageDirectory&&!s&&!Cs(t)){const t=(null==C?void 0:C.value)&&5&a&&!fR(5,C.value.resolved.extension);if((null==(d=null==C?void 0:C.value)?void 0:d.isExternalLibraryImport)&&t&&8&e&&(null==_?void 0:_.includes("import"))){JR(S,_a.Resolution_of_non_relative_name_failed_trying_with_modern_Node_resolution_features_disabled_to_see_if_npm_library_needs_configuration_update);const e=N(5&a,{...S,features:-9&S.features,reportDiagnostic:rt});(null==(p=null==e?void 0:e.value)?void 0:p.isExternalLibraryImport)&&(w=e.value.resolved.path)}else if((!(null==C?void 0:C.value)||t)&&2===x){JR(S,_a.Resolution_of_non_relative_name_failed_trying_with_moduleResolution_bundler_to_see_if_project_may_need_configuration_update);const e={...S.compilerOptions,moduleResolution:100},t=N(5&a,{...S,compilerOptions:e,features:30,conditions:yM(e),reportDiagnostic:rt});(null==(f=null==t?void 0:t.value)?void 0:f.isExternalLibraryImport)&&(w=t.value.resolved.path)}}return rM(t,null==(m=null==C?void 0:C.value)?void 0:m.resolved,null==(g=null==C?void 0:C.value)?void 0:g.isExternalLibraryImport,y,b,k,S,o,w);function N(r,a){const s=RM(r,t,n,(e,t,n,r)=>HM(e,t,n,r,!0),a);if(s)return BR({resolved:s,isExternalLibraryImport:GM(s.path)});if(Cs(t)){const{path:e,parts:i}=WM(n,t),o=HM(r,e,!1,a,!0);return o&&BR({resolved:o,isExternalLibraryImport:T(i,"node_modules")})}{if(2&e&&Gt(t,"#")){const e=function(e,t,n,r,i,o){var a,s;if("#"===t||Gt(t,"#/"))return r.traceEnabled&&Xj(r.host,_a.Invalid_import_specifier_0_has_no_possible_resolutions,t),BR(void 0);const c=Bo(n,null==(s=(a=r.host).getCurrentDirectory)?void 0:s.call(a)),l=lR(c,r);if(!l)return r.traceEnabled&&Xj(r.host,_a.Directory_0_has_no_containing_package_json_scope_Imports_will_not_resolve,c),BR(void 0);if(!l.contents.packageJsonContent.imports)return r.traceEnabled&&Xj(r.host,_a.package_json_scope_0_has_no_imports_defined,l.packageDirectory),BR(void 0);const _=vR(e,r,i,o,t,l.contents.packageJsonContent.imports,l,!0);return _||(r.traceEnabled&&Xj(r.host,_a.Import_specifier_0_does_not_exist_in_package_json_scope_at_path_1,t,l.packageDirectory),BR(void 0))}(r,t,n,a,o,c);if(e)return e.value&&{value:{resolved:e.value,isExternalLibraryImport:!1}}}if(4&e){const e=function(e,t,n,r,i,o){var a,s;const c=lR(Bo(n,null==(s=(a=r.host).getCurrentDirectory)?void 0:s.call(a)),r);if(!c||!c.contents.packageJsonContent.exports)return;if("string"!=typeof c.contents.packageJsonContent.name)return;const l=Ao(t),_=Ao(c.contents.packageJsonContent.name);if(!v(_,(e,t)=>l[t]===e))return;const d=l.slice(_.length),p=u(d)?`.${lo}${d.join(lo)}`:".";if(Ak(r.compilerOptions)&&!GM(n))return hR(c,e,p,r,i,o);const f=-6&e;return hR(c,5&e,p,r,i,o)||hR(c,f,p,r,i,o)}(r,t,n,a,o,c);if(e)return e.value&&{value:{resolved:e.value,isExternalLibraryImport:!1}}}if(t.includes(":"))return void(h&&Xj(i,_a.Skipping_module_0_that_looks_like_an_absolute_URI_target_file_types_Colon_1,t,tM(r)));h&&Xj(i,_a.Loading_module_0_from_node_modules_folder_target_file_types_Colon_1,t,tM(r));let s=kR(r,t,n,a,o,c);return 4&r&&(s??(s=jR(t,a))),s&&{value:s.value&&{resolved:s.value,isExternalLibraryImport:!0}}}}}function WM(e,t){const n=jo(e,t),r=Ao(n),i=ye(r);return{path:"."===i||".."===i?Wo(Jo(n)):Jo(n),parts:r}}function $M(e,t,n){if(!t.realpath)return e;const r=Jo(t.realpath(e));return n&&Xj(t,_a.Resolving_real_path_for_0_result_1,e,r),r}function HM(e,t,n,r,i){if(r.traceEnabled&&Xj(r.host,_a.Loading_module_as_file_Slash_folder_candidate_module_location_0_target_file_types_Colon_1,t,tM(e)),!To(t)){if(!n){const e=Do(t);Db(e,r.host)||(r.traceEnabled&&Xj(r.host,_a.Directory_0_does_not_exist_skipping_all_lookups_in_it,e),n=!0)}const o=ZM(e,t,n,r);if(o){const e=i?XM(o.path):void 0;return Yj(e?dR(e,!1,r):void 0,o,r)}}if(n||Db(t,r.host)||(r.traceEnabled&&Xj(r.host,_a.Directory_0_does_not_exist_skipping_all_lookups_in_it,t),n=!0),!(32&r.features))return oR(e,t,n,r,i)}var KM="/node_modules/";function GM(e){return e.includes(KM)}function XM(e,t){const n=Jo(e),r=n.lastIndexOf(KM);if(-1===r)return;const i=r+KM.length;let o=QM(n,i,t);return 64===n.charCodeAt(i)&&(o=QM(n,o,t)),n.slice(0,o)}function QM(e,t,n){const r=e.indexOf(lo,t+1);return-1===r?n?e.length:t:r}function YM(e,t,n,r){return Zj(ZM(e,t,n,r))}function ZM(e,t,n,r){const i=eR(e,t,n,r);if(i)return i;if(!(32&r.features)){const i=nR(t,e,"",n,r);if(i)return i}}function eR(e,t,n,r){if(!Fo(t).includes("."))return;let i=US(t);i===t&&(i=t.substring(0,t.lastIndexOf(".")));const o=t.substring(i.length);return r.traceEnabled&&Xj(r.host,_a.File_name_0_has_a_1_extension_stripping_it,t,o),nR(i,e,o,n,r)}function tR(e,t,n,r,i){if(1&e&&So(t,ES)||4&e&&So(t,FS)){const e=rR(t,r,i),o=bb(t);return void 0!==e?{path:t,ext:o,resolvedUsingTsExtension:n?!Mt(n,o):void 0}:void 0}return i.isConfigLookup&&8===e&&ko(t,".json")?void 0!==rR(t,r,i)?{path:t,ext:".json",resolvedUsingTsExtension:void 0}:void 0:eR(e,t,r,i)}function nR(e,t,n,r,i){if(!r){const t=Do(e);t&&(r=!Db(t,i.host))}switch(n){case".mjs":case".mts":case".d.mts":return 1&t&&o(".mts",".mts"===n||".d.mts"===n)||4&t&&o(".d.mts",".mts"===n||".d.mts"===n)||2&t&&o(".mjs")||void 0;case".cjs":case".cts":case".d.cts":return 1&t&&o(".cts",".cts"===n||".d.cts"===n)||4&t&&o(".d.cts",".cts"===n||".d.cts"===n)||2&t&&o(".cjs")||void 0;case".json":return 4&t&&o(".d.json.ts")||8&t&&o(".json")||void 0;case".tsx":case".jsx":return 1&t&&(o(".tsx",".tsx"===n)||o(".ts",".tsx"===n))||4&t&&o(".d.ts",".tsx"===n)||2&t&&(o(".jsx")||o(".js"))||void 0;case".ts":case".d.ts":case".js":case"":return 1&t&&(o(".ts",".ts"===n||".d.ts"===n)||o(".tsx",".ts"===n||".d.ts"===n))||4&t&&o(".d.ts",".ts"===n||".d.ts"===n)||2&t&&(o(".js")||o(".jsx"))||i.isConfigLookup&&o(".json")||void 0;default:return 4&t&&!uO(e+n)&&o(`.d${n}.ts`)||void 0}function o(t,n){const o=rR(e+t,r,i);return void 0===o?void 0:{path:o,ext:t,resolvedUsingTsExtension:!i.candidateIsFromPackageJsonField&&n}}}function rR(e,t,n){var r;if(!(null==(r=n.compilerOptions.moduleSuffixes)?void 0:r.length))return iR(e,t,n);const i=tT(e)??"",o=i?WS(e,i):e;return d(n.compilerOptions.moduleSuffixes,e=>iR(o+e+i,t,n))}function iR(e,t,n){var r;if(!t){if(n.host.fileExists(e))return n.traceEnabled&&Xj(n.host,_a.File_0_exists_use_it_as_a_name_resolution_result,e),e;n.traceEnabled&&Xj(n.host,_a.File_0_does_not_exist,e)}null==(r=n.failedLookupLocations)||r.push(e)}function oR(e,t,n,r,i=!0){const o=i?dR(t,n,r):void 0;return Yj(o,pR(e,t,n,r,o),r)}function aR(e,t,n,r,i){if(!i&&void 0!==e.contents.resolvedEntrypoints)return e.contents.resolvedEntrypoints;let o;const a=5|(i?2:0),s=hM(t),c=cR(null==r?void 0:r.getPackageJsonInfoCache(),n,t);c.conditions=yM(t),c.requestContainingDirectory=e.packageDirectory;const l=pR(a,e.packageDirectory,!1,c,e);if(o=ie(o,null==l?void 0:l.path),8&s&&e.contents.packageJsonContent.exports){const r=Q([yM(t,99),yM(t,1)],te);for(const t of r){const r={...c,failedLookupLocations:[],conditions:t,host:n},i=sR(e,e.contents.packageJsonContent.exports,r,a);if(i)for(const e of i)o=le(o,e.path)}}return e.contents.resolvedEntrypoints=o||!1}function sR(e,t,n,r){let i;if(Qe(t))for(const e of t)o(e);else if("object"==typeof t&&null!==t&&gR(t))for(const e in t)o(t[e]);else o(t);return i;function o(t){var a,s;if("string"==typeof t&&Gt(t,"./"))if(t.includes("*")&&n.host.readDirectory){if(t.indexOf("*")!==t.lastIndexOf("*"))return!1;n.host.readDirectory(e.packageDirectory,function(e){const t=[];return 1&e&&t.push(...ES),2&e&&t.push(...wS),4&e&&t.push(...FS),8&e&&t.push(".json"),t}(r),void 0,[Ko(dC(t,"**/*"),".*")]).forEach(e=>{i=le(i,{path:e,ext:Po(e),resolvedUsingTsExtension:void 0})})}else{const o=Ao(t).slice(2);if(o.includes("..")||o.includes(".")||o.includes("node_modules"))return!1;const c=Bo(jo(e.packageDirectory,t),null==(s=(a=n.host).getCurrentDirectory)?void 0:s.call(a)),l=tR(r,c,t,!1,n);if(l)return i=le(i,l,(e,t)=>e.path===t.path),!0}else if(Array.isArray(t)){for(const e of t)if(o(e))return!0}else if("object"==typeof t&&null!==t)return d(Ee(t),e=>{if("default"===e||T(n.conditions,e)||xR(n.conditions,e))return o(t[e]),!0})}}function cR(e,t,n){return{host:t,compilerOptions:n,traceEnabled:Qj(n,t),failedLookupLocations:void 0,affectingLocations:void 0,packageJsonInfoCache:e,features:0,conditions:l,requestContainingDirectory:void 0,reportDiagnostic:rt,isConfigLookup:!1,candidateIsFromPackageJsonField:!1,resolvedPackageDirectory:!1}}function lR(e,t){return TR(t.host,e,e=>dR(e,!1,t))}function _R(e,t){return void 0===e.contents.versionPaths&&(e.contents.versionPaths=function(e,t){const n=function(e,t){const n=cM(e,"typesVersions","object",t);if(void 0!==n)return t.traceEnabled&&Xj(t.host,_a.package_json_has_a_typesVersions_field_with_version_specific_path_mappings),n}(e,t);if(void 0===n)return;if(t.traceEnabled)for(const e in n)De(n,e)&&!kn.tryParse(e)&&Xj(t.host,_a.package_json_has_a_typesVersions_entry_0_that_is_not_a_valid_semver_range,e);const r=_M(n);if(!r)return void(t.traceEnabled&&Xj(t.host,_a.package_json_does_not_have_a_typesVersions_entry_that_matches_version_0,a));const{version:i,paths:o}=r;if("object"==typeof o)return r;t.traceEnabled&&Xj(t.host,_a.Expected_type_of_0_field_in_package_json_to_be_1_got_2,`typesVersions['${i}']`,"object",typeof o)}(e.contents.packageJsonContent,t)||!1),e.contents.versionPaths||void 0}function uR(e,t){return void 0===e.contents.peerDependencies&&(e.contents.peerDependencies=function(e,t){const n=cM(e.contents.packageJsonContent,"peerDependencies","object",t);if(void 0===n)return;t.traceEnabled&&Xj(t.host,_a.package_json_has_a_peerDependencies_field);const r=$M(e.packageDirectory,t.host,t.traceEnabled),i=r.substring(0,r.lastIndexOf("node_modules")+12)+lo;let o="";for(const e in n)if(De(n,e)){const n=dR(i+e,!1,t);if(n){const r=n.contents.packageJsonContent.version;o+=`+${e}@${r}`,t.traceEnabled&&Xj(t.host,_a.Found_peerDependency_0_with_1_version,e,r)}else t.traceEnabled&&Xj(t.host,_a.Failed_to_find_peerDependency_0,e)}return o}(e,t)||!1),e.contents.peerDependencies||void 0}function dR(e,t,n){var r,i,o,a,s,c;const{host:l,traceEnabled:_}=n,u=jo(e,"package.json");if(t)return void(null==(r=n.failedLookupLocations)||r.push(u));const d=null==(i=n.packageJsonInfoCache)?void 0:i.getPackageJsonInfo(u);if(void 0!==d)return xM(d)?(_&&Xj(l,_a.File_0_exists_according_to_earlier_cached_lookups,u),null==(o=n.affectingLocations)||o.push(u),d.packageDirectory===e?d:{packageDirectory:e,contents:d.contents}):(d.directoryExists&&_&&Xj(l,_a.File_0_does_not_exist_according_to_earlier_cached_lookups,u),void(null==(a=n.failedLookupLocations)||a.push(u)));const p=Db(e,l);if(p&&l.fileExists(u)){const t=wb(u,l);_&&Xj(l,_a.Found_package_json_at_0,u);const r={packageDirectory:e,contents:{packageJsonContent:t,versionPaths:void 0,resolvedEntrypoints:void 0,peerDependencies:void 0}};return n.packageJsonInfoCache&&!n.packageJsonInfoCache.isReadonly&&n.packageJsonInfoCache.setPackageJsonInfo(u,r),null==(s=n.affectingLocations)||s.push(u),r}p&&_&&Xj(l,_a.File_0_does_not_exist,u),n.packageJsonInfoCache&&!n.packageJsonInfoCache.isReadonly&&n.packageJsonInfoCache.setPackageJsonInfo(u,{packageDirectory:e,directoryExists:p}),null==(c=n.failedLookupLocations)||c.push(u)}function pR(e,t,n,r,i){const o=i&&_R(i,r);let a;i&&pM(null==i?void 0:i.packageDirectory,t,r.host)&&(a=r.isConfigLookup?function(e,t,n){return lM(e,"tsconfig",t,n)}(i.contents.packageJsonContent,i.packageDirectory,r):4&e&&function(e,t,n){return lM(e,"typings",t,n)||lM(e,"types",t,n)}(i.contents.packageJsonContent,i.packageDirectory,r)||7&e&&function(e,t,n){return lM(e,"main",t,n)}(i.contents.packageJsonContent,i.packageDirectory,r)||void 0);const c=(e,t,n,r)=>{const o=tR(e,t,void 0,n,r);if(o)return Zj(o);const a=4===e?5:e,s=r.features,c=r.candidateIsFromPackageJsonField;r.candidateIsFromPackageJsonField=!0,"module"!==(null==i?void 0:i.contents.packageJsonContent.type)&&(r.features&=-33);const l=HM(a,t,n,r,!1);return r.features=s,r.candidateIsFromPackageJsonField=c,l},l=a?!Db(Do(a),r.host):void 0,_=n||!Db(t,r.host),u=jo(t,r.isConfigLookup?"tsconfig":"index");if(o&&(!a||ea(t,a))){const n=ra(t,a||u,!1);r.traceEnabled&&Xj(r.host,_a.package_json_has_a_typesVersions_entry_0_that_matches_compiler_version_1_looking_for_a_pattern_to_match_module_name_2,o.version,s,n);const i=GS(o.paths),d=NR(e,n,t,o.paths,i,c,l||_,r);if(d)return eM(d.value)}return a&&eM(c(e,a,l,r))||(32&r.features?void 0:ZM(e,u,_,r))}function fR(e,t){return 2&e&&(".js"===t||".jsx"===t||".mjs"===t||".cjs"===t)||1&e&&(".ts"===t||".tsx"===t||".mts"===t||".cts"===t)||4&e&&(".d.ts"===t||".d.mts"===t||".d.cts"===t)||8&e&&".json"===t||!1}function mR(e){let t=e.indexOf(lo);return"@"===e[0]&&(t=e.indexOf(lo,t+1)),-1===t?{packageName:e,rest:""}:{packageName:e.slice(0,t),rest:e.slice(t+1)}}function gR(e){return v(Ee(e),e=>Gt(e,"."))}function hR(e,t,n,r,i,o){if(e.contents.packageJsonContent.exports){if("."===n){let a;if("string"==typeof e.contents.packageJsonContent.exports||Array.isArray(e.contents.packageJsonContent.exports)||"object"==typeof e.contents.packageJsonContent.exports&&!$(Ee(e.contents.packageJsonContent.exports),e=>Gt(e,"."))?a=e.contents.packageJsonContent.exports:De(e.contents.packageJsonContent.exports,".")&&(a=e.contents.packageJsonContent.exports["."]),a)return bR(t,r,i,o,n,e,!1)(a,"",!1,".")}else if(gR(e.contents.packageJsonContent.exports)){if("object"!=typeof e.contents.packageJsonContent.exports)return r.traceEnabled&&Xj(r.host,_a.Export_specifier_0_does_not_exist_in_package_json_scope_at_path_1,n,e.packageDirectory),BR(void 0);const a=vR(t,r,i,o,n,e.contents.packageJsonContent.exports,e,!1);if(a)return a}return r.traceEnabled&&Xj(r.host,_a.Export_specifier_0_does_not_exist_in_package_json_scope_at_path_1,n,e.packageDirectory),BR(void 0)}}function yR(e,t){const n=e.indexOf("*"),r=t.indexOf("*"),i=-1===n?e.length:n+1,o=-1===r?t.length:r+1;return i>o?-1:o>i||-1===n?1:-1===r||e.length>t.length?-1:t.length>e.length?1:0}function vR(e,t,n,r,i,o,a,s){const c=bR(e,t,n,r,i,a,s);if(!Mt(i,lo)&&!i.includes("*")&&De(o,i))return c(o[i],"",!1,i);const l=_e(N(Ee(o),e=>function(e){const t=e.indexOf("*");return-1!==t&&t===e.lastIndexOf("*")}(e)||Mt(e,"/")),yR);for(const e of l){if(16&t.features&&_(e,i)){const t=o[e],n=e.indexOf("*");return c(t,i.substring(e.substring(0,n).length,i.length-(e.length-1-n)),!0,e)}if(Mt(e,"*")&&Gt(i,e.substring(0,e.length-1)))return c(o[e],i.substring(e.length-1),!0,e);if(Gt(i,e))return c(o[e],i.substring(e.length),!1,e)}function _(e,t){if(Mt(e,"*"))return!1;const n=e.indexOf("*");return-1!==n&&Gt(t,e.substring(0,n))&&Mt(t,e.substring(n+1))}}function bR(e,t,n,r,i,o,a){return function s(c,_,d,p){var f,m;if("string"==typeof c){if(!d&&_.length>0&&!Mt(c,"/"))return t.traceEnabled&&Xj(t.host,_a.package_json_scope_0_has_invalid_type_for_target_of_specifier_1,o.packageDirectory,i),BR(void 0);if(!Gt(c,"./")){if(a&&!Gt(c,"../")&&!Gt(c,"/")&&!go(c)){const i=d?c.replace(/\*/g,_):c+_;JR(t,_a.Using_0_subpath_1_with_target_2,"imports",p,i),JR(t,_a.Resolving_module_0_from_1,i,o.packageDirectory+"/");const a=VM(t.features,i,o.packageDirectory+"/",t.compilerOptions,t.host,n,e,!1,r,t.conditions);return null==(f=t.failedLookupLocations)||f.push(...a.failedLookupLocations??l),null==(m=t.affectingLocations)||m.push(...a.affectingLocations??l),BR(a.resolvedModule?{path:a.resolvedModule.resolvedFileName,extension:a.resolvedModule.extension,packageId:a.resolvedModule.packageId,originalPath:a.resolvedModule.originalPath,resolvedUsingTsExtension:a.resolvedModule.resolvedUsingTsExtension}:void 0)}return t.traceEnabled&&Xj(t.host,_a.package_json_scope_0_has_invalid_type_for_target_of_specifier_1,o.packageDirectory,i),BR(void 0)}const s=(vo(c)?Ao(c).slice(1):Ao(c)).slice(1);if(s.includes("..")||s.includes(".")||s.includes("node_modules"))return t.traceEnabled&&Xj(t.host,_a.package_json_scope_0_has_invalid_type_for_target_of_specifier_1,o.packageDirectory,i),BR(void 0);const u=jo(o.packageDirectory,c),y=Ao(_);if(y.includes("..")||y.includes(".")||y.includes("node_modules"))return t.traceEnabled&&Xj(t.host,_a.package_json_scope_0_has_invalid_type_for_target_of_specifier_1,o.packageDirectory,i),BR(void 0);t.traceEnabled&&Xj(t.host,_a.Using_0_subpath_1_with_target_2,a?"imports":"exports",p,d?c.replace(/\*/g,_):c+_);const v=g(d?u.replace(/\*/g,_):u+_),b=function(n,r,i,a){var s,c,l,_;if(!t.isConfigLookup&&(t.compilerOptions.declarationDir||t.compilerOptions.outDir)&&!n.includes("/node_modules/")&&(!t.compilerOptions.configFile||ea(o.packageDirectory,g(t.compilerOptions.configFile.fileName),!zR(t)))){const d=My({useCaseSensitiveFileNames:()=>zR(t)}),p=[];if(t.compilerOptions.rootDir||t.compilerOptions.composite&&t.compilerOptions.configFilePath){const e=g(cU(t.compilerOptions,()=>[],(null==(c=(s=t.host).getCurrentDirectory)?void 0:c.call(s))||"",d));p.push(e)}else if(t.requestContainingDirectory){const e=g(jo(t.requestContainingDirectory,"index.ts")),n=g(cU(t.compilerOptions,()=>[e,g(i)],(null==(_=(l=t.host).getCurrentDirectory)?void 0:_.call(l))||"",d));p.push(n);let r=Wo(n);for(;r&&r.length>1;){const e=Ao(r);e.pop();const t=Io(e);p.unshift(t),r=Wo(t)}}p.length>1&&t.reportDiagnostic(Qx(a?_a.The_project_root_is_ambiguous_but_is_required_to_resolve_import_map_entry_0_in_file_1_Supply_the_rootDir_compiler_option_to_disambiguate:_a.The_project_root_is_ambiguous_but_is_required_to_resolve_export_map_entry_0_in_file_1_Supply_the_rootDir_compiler_option_to_disambiguate,""===r?".":r,i));for(const r of p){const i=u(r);for(const a of i)if(ea(a,n,!zR(t))){const i=jo(r,n.slice(a.length+1)),s=[".mjs",".cjs",".js",".json",".d.mts",".d.cts",".d.ts"];for(const n of s)if(ko(i,n)){const r=$y(i);for(const a of r){if(!fR(e,a))continue;const r=Ho(i,a,n,!zR(t));if(t.host.fileExists(r))return BR(Yj(o,tR(e,r,void 0,!1,t),t))}}}}}return;function u(e){var n,r;const i=t.compilerOptions.configFile?(null==(r=(n=t.host).getCurrentDirectory)?void 0:r.call(n))||"":e,o=[];return t.compilerOptions.declarationDir&&o.push(g(h(i,t.compilerOptions.declarationDir))),t.compilerOptions.outDir&&t.compilerOptions.outDir!==t.compilerOptions.declarationDir&&o.push(g(h(i,t.compilerOptions.outDir))),o}}(v,_,jo(o.packageDirectory,"package.json"),a);return b||BR(Yj(o,tR(e,v,c,!1,t),t))}if("object"==typeof c&&null!==c){if(!Array.isArray(c)){JR(t,_a.Entering_conditional_exports);for(const e of Ee(c))if("default"===e||t.conditions.includes(e)||xR(t.conditions,e)){JR(t,_a.Matched_0_condition_1,a?"imports":"exports",e);const n=s(c[e],_,d,p);if(n)return JR(t,_a.Resolved_under_condition_0,e),JR(t,_a.Exiting_conditional_exports),n;JR(t,_a.Failed_to_resolve_under_condition_0,e)}else JR(t,_a.Saw_non_matching_condition_0,e);return void JR(t,_a.Exiting_conditional_exports)}if(!u(c))return t.traceEnabled&&Xj(t.host,_a.package_json_scope_0_has_invalid_type_for_target_of_specifier_1,o.packageDirectory,i),BR(void 0);for(const e of c){const t=s(e,_,d,p);if(t)return t}}else if(null===c)return t.traceEnabled&&Xj(t.host,_a.package_json_scope_0_explicitly_maps_specifier_1_to_null,o.packageDirectory,i),BR(void 0);return t.traceEnabled&&Xj(t.host,_a.package_json_scope_0_has_invalid_type_for_target_of_specifier_1,o.packageDirectory,i),BR(void 0);function g(e){var n,r;return void 0===e?e:Bo(e,null==(r=(n=t.host).getCurrentDirectory)?void 0:r.call(n))}function h(e,t){return Wo(jo(e,t))}}}function xR(e,t){if(!e.includes("types"))return!1;if(!Gt(t,"types@"))return!1;const n=kn.tryParse(t.substring(6));return!!n&&n.test(s)}function kR(e,t,n,r,i,o){return SR(e,t,n,r,!1,i,o)}function SR(e,t,n,r,i,o,a){const s=0===r.features?void 0:32&r.features||r.conditions.includes("import")?99:1,c=5&e,l=-6&e;if(c){JR(r,_a.Searching_all_ancestor_node_modules_directories_for_preferred_extensions_Colon_0,tM(c));const e=_(c);if(e)return e}if(l&&!i)return JR(r,_a.Searching_all_ancestor_node_modules_directories_for_fallback_extensions_Colon_0,tM(l)),_(l);function _(e){return TR(r.host,Oo(n),n=>{if("node_modules"!==Fo(n)){return OR(o,t,s,n,a,r)||BR(CR(e,t,n,r,i,o,a))}})}}function TR(e,t,n){var r;const i=null==(r=null==e?void 0:e.getGlobalTypingsCacheLocation)?void 0:r.call(e);return sa(t,e=>{const t=n(e);return void 0!==t?t:e!==i&&void 0})||void 0}function CR(e,t,n,r,i,o,a){const s=jo(n,"node_modules"),c=Db(s,r.host);if(!c&&r.traceEnabled&&Xj(r.host,_a.Directory_0_does_not_exist_skipping_all_lookups_in_it,s),!i){const n=wR(e,t,s,c,r,o,a);if(n)return n}if(4&e){const e=jo(s,"@types");let n=c;return c&&!Db(e,r.host)&&(r.traceEnabled&&Xj(r.host,_a.Directory_0_does_not_exist_skipping_all_lookups_in_it,e),n=!1),wR(4,FR(t,r),e,n,r,o,a)}}function wR(e,t,n,r,i,o,a){var c,_;const u=Jo(jo(n,t)),{packageName:d,rest:p}=mR(t),f=jo(n,d);let m,g=dR(u,!r,i);if(""!==p&&g&&(!(8&i.features)||!De((null==(c=m=dR(f,!r,i))?void 0:c.contents.packageJsonContent)??l,"exports"))){const t=ZM(e,u,!r,i);if(t)return Zj(t);const n=pR(e,u,!r,i,g);return Yj(g,n,i)}const h=(e,t,n,r)=>{let i=(p||!(32&r.features))&&ZM(e,t,n,r)||pR(e,t,n,r,g);return!i&&!p&&g&&(void 0===g.contents.packageJsonContent.exports||null===g.contents.packageJsonContent.exports)&&32&r.features&&(i=ZM(e,jo(t,"index.js"),n,r)),Yj(g,i,r)};if(""!==p&&(g=m??dR(f,!r,i)),g&&(i.resolvedPackageDirectory=!0),g&&g.contents.packageJsonContent.exports&&8&i.features)return null==(_=hR(g,e,jo(".",p),i,o,a))?void 0:_.value;const y=""!==p&&g?_R(g,i):void 0;if(y){i.traceEnabled&&Xj(i.host,_a.package_json_has_a_typesVersions_entry_0_that_matches_compiler_version_1_looking_for_a_pattern_to_match_module_name_2,y.version,s,p);const t=r&&Db(f,i.host),n=GS(y.paths),o=NR(e,p,f,y.paths,n,h,!t,i);if(o)return o.value}return h(e,u,!r,i)}function NR(e,t,n,r,i,o,a,s){const c=iT(i,t);if(c){const i=Ze(c)?void 0:Ht(c,t),l=Ze(c)?c:$t(c);return s.traceEnabled&&Xj(s.host,_a.Module_name_0_matched_pattern_1,t,l),{value:d(r[l],t=>{const r=i?dC(t,i):t,c=Jo(jo(n,r));s.traceEnabled&&Xj(s.host,_a.Trying_substitution_0_candidate_module_location_Colon_1,t,r);const l=tT(t);if(void 0!==l){const e=rR(c,a,s);if(void 0!==e)return Zj({path:e,ext:l,resolvedUsingTsExtension:void 0})}return o(e,c,a||!Db(Do(c),s.host),s)})}}}var DR="__";function FR(e,t){const n=PR(e);return t.traceEnabled&&n!==e&&Xj(t.host,_a.Scoped_package_detected_looking_in_0,n),n}function ER(e){return`@types/${PR(e)}`}function PR(e){if(Gt(e,"@")){const t=e.replace(lo,DR);if(t!==e)return t.slice(1)}return e}function AR(e){const t=Xt(e,"@types/");return t!==e?IR(t):e}function IR(e){return e.includes(DR)?"@"+e.replace(DR,lo):e}function OR(e,t,n,r,i,o){const a=e&&e.getFromNonRelativeNameCache(t,n,r,i);if(a)return o.traceEnabled&&Xj(o.host,_a.Resolution_for_module_0_was_found_in_cache_from_location_1,t,r),o.resultFromCache=a,{value:a.resolvedModule&&{path:a.resolvedModule.resolvedFileName,originalPath:a.resolvedModule.originalPath||!0,extension:a.resolvedModule.extension,packageId:a.resolvedModule.packageId,resolvedUsingTsExtension:a.resolvedModule.resolvedUsingTsExtension}}}function LR(e,t,n,r,i,o){const a=Qj(n,r),s=[],c=[],l=Do(t),_=[],u={compilerOptions:n,host:r,traceEnabled:a,failedLookupLocations:s,affectingLocations:c,packageJsonInfoCache:i,features:0,conditions:[],requestContainingDirectory:l,reportDiagnostic:e=>{_.push(e)},isConfigLookup:!1,candidateIsFromPackageJsonField:!1,resolvedPackageDirectory:!1},d=p(5)||p(2|(n.resolveJsonModule?8:0));return rM(e,d&&d.value,(null==d?void 0:d.value)&&GM(d.value.path),s,c,_,u,i);function p(t){const n=RM(t,e,l,YM,u);if(n)return{value:n};if(Cs(e)){const n=Jo(jo(l,e));return BR(YM(t,n,!1,u))}{const n=TR(u.host,l,n=>{const r=OR(i,e,void 0,n,o,u);if(r)return r;const a=Jo(jo(n,e));return BR(YM(t,a,!1,u))});if(n)return n;if(5&t){let n=function(e,t,n){return SR(4,e,t,n,!0,void 0,void 0)}(e,l,u);return 4&t&&(n??(n=jR(e,u))),n}}}}function jR(e,t){if(t.compilerOptions.typeRoots)for(const n of t.compilerOptions.typeRoots){const r=mM(n,e,t),i=Db(n,t.host);!i&&t.traceEnabled&&Xj(t.host,_a.Directory_0_does_not_exist_skipping_all_lookups_in_it,n);const o=ZM(4,r,!i,t);if(o){const e=XM(o.path);return BR(Yj(e?dR(e,!1,t):void 0,o,t))}const a=oR(4,r,!i,t);if(a)return BR(a)}}function MR(e,t){return hk(e)||!!t&&uO(t)}function RR(e,t,n,r,i,o){const a=Qj(n,r);a&&Xj(r,_a.Auto_discovery_for_typings_is_enabled_in_project_0_Running_extra_resolution_pass_for_module_1_using_cache_location_2,t,e,i);const s=[],c=[],l=[],_={compilerOptions:n,host:r,traceEnabled:a,failedLookupLocations:s,affectingLocations:c,packageJsonInfoCache:o,features:0,conditions:[],requestContainingDirectory:void 0,reportDiagnostic:e=>{l.push(e)},isConfigLookup:!1,candidateIsFromPackageJsonField:!1,resolvedPackageDirectory:!1};return iM(CR(4,e,i,_,!1,void 0,void 0),!0,s,c,l,_.resultFromCache,void 0)}function BR(e){return void 0!==e?{value:e}:void 0}function JR(e,t,...n){e.traceEnabled&&Xj(e.host,t,...n)}function zR(e){return!e.host.useCaseSensitiveFileNames||("boolean"==typeof e.host.useCaseSensitiveFileNames?e.host.useCaseSensitiveFileNames:e.host.useCaseSensitiveFileNames())}var qR=(e=>(e[e.NonInstantiated=0]="NonInstantiated",e[e.Instantiated=1]="Instantiated",e[e.ConstEnumOnly=2]="ConstEnumOnly",e))(qR||{});function UR(e,t){return e.body&&!e.body.parent&&(DT(e.body,e),FT(e.body,!1)),e.body?VR(e.body,t):1}function VR(e,t=new Map){const n=ZB(e);if(t.has(n))return t.get(n)||0;t.set(n,void 0);const r=function(e,t){switch(e.kind){case 265:case 266:return 0;case 267:if(tf(e))return 2;break;case 273:case 272:if(!Nv(e,32))return 0;break;case 279:const n=e;if(!n.moduleSpecifier&&n.exportClause&&280===n.exportClause.kind){let e=0;for(const r of n.exportClause.elements){const n=WR(r,t);if(n>e&&(e=n),1===e)return e}return e}break;case 269:{let n=0;return XI(e,e=>{const r=VR(e,t);switch(r){case 0:return;case 2:return void(n=2);case 1:return n=1,!0;default:un.assertNever(r)}}),n}case 268:return UR(e,t);case 80:if(4096&e.flags)return 0}return 1}(e,t);return t.set(n,r),r}function WR(e,t){const n=e.propertyName||e.name;if(80!==n.kind)return 1;let r=e.parent;for(;r;){if(VF(r)||hE(r)||sP(r)){const e=r.statements;let i;for(const o of e)if(xc(o,n)){o.parent||(DT(o,r),FT(o,!1));const e=VR(o,t);if((void 0===i||e>i)&&(i=e),1===i)return i;272===o.kind&&(i=1)}if(void 0!==i)return i}r=r.parent}return 1}var $R=(e=>(e[e.None=0]="None",e[e.IsContainer=1]="IsContainer",e[e.IsBlockScopedContainer=2]="IsBlockScopedContainer",e[e.IsControlFlowContainer=4]="IsControlFlowContainer",e[e.IsFunctionLike=8]="IsFunctionLike",e[e.IsFunctionExpression=16]="IsFunctionExpression",e[e.HasLocals=32]="HasLocals",e[e.IsInterface=64]="IsInterface",e[e.IsObjectLiteralOrClassExpressionMethodOrAccessor=128]="IsObjectLiteralOrClassExpressionMethodOrAccessor",e))($R||{});function HR(e,t,n){return un.attachFlowNodeDebugInfo({flags:e,id:0,node:t,antecedent:n})}var KR=XR();function GR(e,t){tr("beforeBind"),KR(e,t),tr("afterBind"),nr("Bind","beforeBind","afterBind")}function XR(){var e,t,n,r,i,o,a,s,c,l,_,p,f,m,g,h,y,b,x,k,S,C,w,N,D,F,E,P=!1,A=0,I=HR(1,void 0,void 0),O=HR(1,void 0,void 0),L=function(){return cI(function(e,t){if(t){t.stackIndex++,DT(e,r);const n=D;Ue(e);const i=r;r=e,t.skip=!1,t.inStrictModeStack[t.stackIndex]=n,t.parentStack[t.stackIndex]=i}else t={stackIndex:0,skip:!1,inStrictModeStack:[void 0],parentStack:[void 0]};const n=e.operatorToken.kind;if(Yv(n)||Xv(n)){if(fe(e)){const t=te(),n=p,r=w;w=!1,Se(e,t,t),p=w?de(t):n,w||(w=r)}else Se(e,h,y);t.skip=!0}return t},function(t,n,r){if(!n.skip){const n=e(t);return 28===r.operatorToken.kind&&be(t),n}},function(e,t,n){t.skip||Be(e)},function(t,n,r){if(!n.skip){const n=e(t);return 28===r.operatorToken.kind&&be(t),n}},function(e,t){if(!t.skip){const t=e.operatorToken.kind;eb(t)&&!Qg(e)&&(ke(e.left),64===t&&213===e.left.kind)&&ee(e.left.expression)&&(p=_e(256,p,e))}const n=t.inStrictModeStack[t.stackIndex],i=t.parentStack[t.stackIndex];void 0!==n&&(D=n),void 0!==i&&(r=i),t.skip=!1,t.stackIndex--},void 0);function e(e){if(e&&NF(e)&&!ib(e))return e;Be(e)}}();return function(u,d){var v,x;e=u,n=yk(t=d),D=function(e,t){return!(!Jk(t,"alwaysStrict")||e.isDeclarationFile)||!!e.externalModuleIndicator}(e,d),E=new Set,A=0,F=Mx.getSymbolConstructor(),un.attachFlowNodeDebugInfo(I),un.attachFlowNodeDebugInfo(O),e.locals||(null==(v=Hn)||v.push(Hn.Phase.Bind,"bindSourceFile",{path:e.path},!0),Be(e),null==(x=Hn)||x.pop(),e.symbolCount=A,e.classifiableNames=E,function(){if(!c)return;const t=i,n=s,o=a,l=r,_=p;for(const t of c){const n=t.parent.parent;i=Fp(n)||e,a=Ep(n)||e,p=HR(2,void 0,void 0),r=t,Be(t.typeExpression);const o=Cc(t);if((RP(t)||!t.fullName)&&o&&lb(o.parent)){const n=it(o.parent);if(n){et(e.symbol,o.parent,n,!!uc(o,e=>dF(e)&&"prototype"===e.name.escapedText),!1);const r=i;switch(ug(o.parent)){case 1:case 2:i=Zp(e)?e:void 0;break;case 4:i=o.parent.expression;break;case 3:i=o.parent.expression.name;break;case 5:i=YR(e,o.parent.expression)?e:dF(o.parent.expression)?o.parent.expression.name:o.parent.expression;break;case 0:return un.fail("Shouldn't have detected typedef or enum on non-assignment declaration")}i&&q(t,524288,788968),i=r}}else RP(t)||!t.fullName||80===t.fullName.kind?(r=t.parent,Oe(t,524288,788968)):Be(t.fullName)}i=t,s=n,a=o,r=l,p=_}(),function(){if(void 0===_)return;const t=i,n=s,o=a,c=r,l=p;for(const t of _){const n=Vg(t),o=n?Fp(n):void 0,s=n?Ep(n):void 0;i=o||e,a=s||e,p=HR(2,void 0,void 0),r=t,Be(t.importClause)}i=t,s=n,a=o,r=c,p=l}()),e=void 0,t=void 0,n=void 0,r=void 0,i=void 0,o=void 0,a=void 0,s=void 0,c=void 0,_=void 0,l=!1,p=void 0,f=void 0,m=void 0,g=void 0,h=void 0,y=void 0,b=void 0,k=void 0,S=!1,C=!1,w=!1,P=!1,N=0};function j(t,n,...r){return Jp(vd(t)||e,t,n,...r)}function M(e,t){return A++,new F(e,t)}function R(e,t,n){e.flags|=n,t.symbol=e,e.declarations=le(e.declarations,t),1955&n&&!e.exports&&(e.exports=Gu()),6240&n&&!e.members&&(e.members=Gu()),e.constEnumOnlyModule&&304&e.flags&&(e.constEnumOnlyModule=!1),111551&n&&mg(e,t)}function B(e){if(278===e.kind)return e.isExportEquals?"export=":"default";const t=Cc(e);if(t){if(cp(e)){const n=qh(t);return pp(e)?"__global":`"${n}"`}if(168===t.kind){const e=t.expression;if(jh(e))return fc(e.text);if(Mh(e))return Fa(e.operator)+e.operand.text;un.fail("Only computed properties with literal names have declaration names")}if(sD(t)){const n=Xf(e);if(!n)return;return Vh(n.symbol,t.escapedText)}return YE(t)?iC(t):zh(t)?Uh(t):void 0}switch(e.kind){case 177:return"__constructor";case 185:case 180:case 324:return"__call";case 186:case 181:return"__new";case 182:return"__index";case 279:return"__export";case 308:return"export=";case 227:if(2===tg(e))return"export=";un.fail("Unknown binary declaration kind");break;case 318:return Ng(e)?"__new":"__call";case 170:return un.assert(318===e.parent.kind,"Impossible parameter parent kind",()=>`parent is: ${un.formatSyntaxKind(e.parent.kind)}, expected JSDocFunctionType`),"arg"+e.parent.parameters.indexOf(e)}}function J(e){return Sc(e)?Ap(e.name):mc(un.checkDefined(B(e)))}function z(t,n,r,i,o,a,s){un.assert(s||!Rh(r));const c=Nv(r,2048)||LE(r)&&Kd(r.name),l=s?"__computed":c&&n?"default":B(r);let _;if(void 0===l)_=M(0,"__missing");else if(_=t.get(l),2885600&i&&E.add(l),_){if(a&&!_.isReplaceableByMethod)return _;if(_.flags&o)if(_.isReplaceableByMethod)t.set(l,_=M(0,l));else if(!(3&i&&67108864&_.flags)){Sc(r)&&DT(r.name,r);let t=2&_.flags?_a.Cannot_redeclare_block_scoped_variable_0:_a.Duplicate_identifier_0,n=!0;(384&_.flags||384&i)&&(t=_a.Enum_declarations_can_only_merge_with_namespace_or_other_enum_declarations,n=!1);let o=!1;u(_.declarations)&&(c||_.declarations&&_.declarations.length&&278===r.kind&&!r.isExportEquals)&&(t=_a.A_module_cannot_have_multiple_default_exports,n=!1,o=!0);const a=[];fE(r)&&Nd(r.type)&&Nv(r,32)&&2887656&_.flags&&a.push(j(r,_a.Did_you_mean_0,`export type { ${mc(r.name.escapedText)} }`));const s=Cc(r)||r;d(_.declarations,(r,i)=>{const c=Cc(r)||r,l=n?j(c,t,J(r)):j(c,t);e.bindDiagnostics.push(o?aT(l,j(s,0===i?_a.Another_export_default_is_here:_a.and_here)):l),o&&a.push(j(c,_a.The_first_export_default_is_here))});const p=n?j(s,t,J(r)):j(s,t);e.bindDiagnostics.push(aT(p,...a)),_=M(0,l)}}else t.set(l,_=M(0,l)),a&&(_.isReplaceableByMethod=!0);return R(_,r,i),_.parent?un.assert(_.parent===n,"Existing symbol parent should match new one"):_.parent=n,_}function q(e,t,n){const r=!!(32&ic(e))||function(e){if(e.parent&&gE(e)&&(e=e.parent),!Dg(e))return!1;if(!RP(e)&&e.fullName)return!0;const t=Cc(e);return!!(t&&(lb(t.parent)&&it(t.parent)||_u(t.parent)&&32&ic(t.parent)))}(e);if(2097152&t)return 282===e.kind||272===e.kind&&r?z(i.symbol.exports,i.symbol,e,t,n):(un.assertNode(i,su),z(i.locals,void 0,e,t,n));if(Dg(e)&&un.assert(Em(e)),!cp(e)&&(r||128&i.flags)){if(!su(i)||!i.locals||Nv(e,2048)&&!B(e))return z(i.symbol.exports,i.symbol,e,t,n);const r=111551&t?1048576:0,o=z(i.locals,void 0,e,r,n);return o.exportSymbol=z(i.symbol.exports,i.symbol,e,t,n),e.localSymbol=o,o}return un.assertNode(i,su),z(i.locals,void 0,e,t,n)}function U(e){V(e,e=>263===e.kind?Be(e):void 0),V(e,e=>263!==e.kind?Be(e):void 0)}function V(e,t=Be){void 0!==e&&d(e,t)}function W(e){XI(e,Be,V)}function G(e){const n=P;if(P=!1,function(e){if(!(1&p.flags))return!1;if(p===I){const n=du(e)&&243!==e.kind||264===e.kind||QR(e,t)||268===e.kind&&function(e){const n=UR(e);return 1===n||2===n&&Fk(t)}(e);if(n&&(p=O,!t.allowUnreachableCode)){const n=jk(t)&&!(33554432&e.flags)&&(!WF(e)||!!(7&ac(e.declarationList))||e.declarationList.declarations.some(e=>!!e.initializer));!function(e,t,n){if(pu(e)&&r(e)&&VF(e.parent)){const{statements:t}=e.parent,i=oT(t,e);H(i,r,(e,t)=>n(i[e],i[t-1]))}else n(e,e);function r(e){return!(uE(e)||function(e){switch(e.kind){case 265:case 266:return!0;case 268:return 1!==UR(e);case 267:return!QR(e,t);default:return!1}}(e)||WF(e)&&!(7&ac(e))&&e.declarationList.declarations.some(e=>!e.initializer))}}(e,t,(e,t)=>Re(n,e,t,_a.Unreachable_code_detected))}}return!0}(e))return Og(e)&&e.flowNode&&(e.flowNode=void 0),W(e),Je(e),void(P=n);switch(e.kind>=244&&e.kind<=260&&(!t.allowUnreachableCode||254===e.kind)&&(e.flowNode=p),e.kind){case 248:!function(e){const t=ye(e,ne()),n=te(),r=te();ae(t,p),p=t,ge(e.expression,n,r),p=de(n),he(e.statement,r,t),ae(t,p),p=de(r)}(e);break;case 247:!function(e){const t=ne(),n=ye(e,te()),r=te();ae(t,p),p=t,he(e.statement,r,n),ae(n,p),p=de(n),ge(e.expression,t,r),p=de(r)}(e);break;case 249:!function(e){const t=ye(e,ne()),n=te(),r=te(),i=te();Be(e.initializer),ae(t,p),p=t,ge(e.condition,n,i),p=de(n),he(e.statement,i,r),ae(r,p),p=de(r),Be(e.incrementor),ae(t,p),p=de(i)}(e);break;case 250:case 251:!function(e){const t=ye(e,ne()),n=te();Be(e.expression),ae(t,p),p=t,251===e.kind&&Be(e.awaitModifier),ae(n,p),Be(e.initializer),262!==e.initializer.kind&&ke(e.initializer),he(e.statement,n,t),ae(t,p),p=de(n)}(e);break;case 246:!function(e){const t=te(),n=te(),r=te();ge(e.expression,t,n),p=de(t),Be(e.thenStatement),ae(r,p),p=de(n),Be(e.elseStatement),ae(r,p),p=de(r)}(e);break;case 254:case 258:!function(e){const t=C;C=!0,Be(e.expression),C=t,254===e.kind&&(S=!0,g&&ae(g,p)),p=I,w=!0}(e);break;case 253:case 252:!function(e){if(Be(e.label),e.label){const t=function(e){for(let t=k;t;t=t.next)if(t.name===e)return t}(e.label.escapedText);t&&(t.referenced=!0,ve(e,t.breakTarget,t.continueTarget))}else ve(e,f,m)}(e);break;case 259:!function(e){const t=g,n=b,r=te(),i=te();let o=te();if(e.finallyBlock&&(g=i),ae(o,p),b=o,Be(e.tryBlock),ae(r,p),e.catchClause&&(p=de(o),o=te(),ae(o,p),b=o,Be(e.catchClause),ae(r,p)),g=t,b=n,e.finallyBlock){const t=te();t.antecedent=K(K(r.antecedent,o.antecedent),i.antecedent),p=t,Be(e.finallyBlock),1&p.flags?p=I:(g&&i.antecedent&&ae(g,re(t,i.antecedent,p)),b&&o.antecedent&&ae(b,re(t,o.antecedent,p)),p=r.antecedent?re(t,r.antecedent,p):I)}else p=de(r)}(e);break;case 256:!function(e){const t=te();Be(e.expression);const n=f,r=x;f=t,x=p,Be(e.caseBlock),ae(t,p);const i=d(e.caseBlock.clauses,e=>298===e.kind);e.possiblyExhaustive=!i&&!t.antecedent,i||ae(t,ce(x,e,0,0)),f=n,x=r,p=de(t)}(e);break;case 270:!function(e){const n=e.clauses,r=112===e.parent.expression.kind||X(e.parent.expression);let i=I;for(let o=0;oIE(e)||AE(e))}(e)?e.flags|=128:e.flags&=-129}function Ae(e){const t=UR(e),n=0!==t;return Ee(e,n?512:1024,n?110735:0),t}function Ie(e,t,n){const r=M(t,n);return 106508&t&&(r.parent=i.symbol),R(r,e,t),r}function Oe(e,t,n){switch(a.kind){case 268:q(e,t,n);break;case 308:if(Zp(i)){q(e,t,n);break}default:un.assertNode(a,su),a.locals||(a.locals=Gu(),Fe(a)),z(a.locals,void 0,e,t,n)}}function Le(t,n){if(n&&80===n.kind){const i=n;if(aD(r=i)&&("eval"===r.escapedText||"arguments"===r.escapedText)){const r=Qp(e,n);e.bindDiagnostics.push(Gx(e,r.start,r.length,function(t){return Xf(t)?_a.Code_contained_in_a_class_is_evaluated_in_JavaScript_s_strict_mode_which_does_not_allow_this_use_of_0_For_more_information_see_https_Colon_Slash_Slashdeveloper_mozilla_org_Slashen_US_Slashdocs_SlashWeb_SlashJavaScript_SlashReference_SlashStrict_mode:e.externalModuleIndicator?_a.Invalid_use_of_0_Modules_are_automatically_in_strict_mode:_a.Invalid_use_of_0_in_strict_mode}(t),gc(i)))}}var r}function je(e){!D||33554432&e.flags||Le(e,e.name)}function Me(t,n,...r){const i=Gp(e,t.pos);e.bindDiagnostics.push(Gx(e,i.start,i.length,n,...r))}function Re(t,n,r,i){!function(t,n,r){const i=Gx(e,n.pos,n.end-n.pos,r);t?e.bindDiagnostics.push(i):e.bindSuggestionDiagnostics=ie(e.bindSuggestionDiagnostics,{...i,category:2})}(t,{pos:zd(n,e),end:r.end},i)}function Be(t){if(!t)return;DT(t,r),Hn&&(t.tracingPath=e.path);const n=D;if(Ue(t),t.kind>166){const e=r;r=t;const n=ZR(t);0===n?G(t):function(e,t){const n=i,r=o,s=a,c=C;if(220===e.kind&&242!==e.body.kind&&(C=!0),1&t?(220!==e.kind&&(o=i),i=a=e,32&t&&(i.locals=Gu(),Fe(i))):2&t&&(a=e,32&t&&(a.locals=void 0)),4&t){const n=p,r=f,i=m,o=g,a=b,s=k,c=S,l=16&t&&!Nv(e,1024)&&!e.asteriskToken&&!!om(e)||176===e.kind;l||(p=HR(2,void 0,void 0),144&t&&(p.node=e)),g=l||177===e.kind||Em(e)&&(263===e.kind||219===e.kind)?te():void 0,b=void 0,f=void 0,m=void 0,k=void 0,S=!1,G(e),e.flags&=-5633,!(1&p.flags)&&8&t&&Dd(e.body)&&(e.flags|=512,S&&(e.flags|=1024),e.endFlowNode=p),308===e.kind&&(e.flags|=N,e.endFlowNode=p),g&&(ae(g,p),p=de(g),(177===e.kind||176===e.kind||Em(e)&&(263===e.kind||219===e.kind))&&(e.returnFlowNode=p)),l||(p=n),f=r,m=i,g=o,b=a,k=s,S=c}else 64&t?(l=!1,G(e),un.assertNotNode(e,aD),e.flags=l?256|e.flags:-257&e.flags):G(e);C=c,i=n,o=r,a=s}(t,n),r=e}else{const e=r;1===t.kind&&(r=t),Je(t),r=e}D=n}function Je(e){if(Du(e))if(Em(e))for(const t of e.jsDoc)Be(t);else for(const t of e.jsDoc)DT(t,e),FT(t,!1)}function ze(e){if(!D)for(const t of e){if(!pf(t))return;if(qe(t))return void(D=!0)}}function qe(t){const n=Vd(e,t.expression);return'"use strict"'===n||"'use strict'"===n}function Ue(o){switch(o.kind){case 80:if(4096&o.flags){let e=o.parent;for(;e&&!Dg(e);)e=e.parent;Oe(e,524288,788968);break}case 110:return p&&(V_(o)||305===r.kind)&&(o.flowNode=p),function(t){if(!(e.parseDiagnostics.length||33554432&t.flags||16777216&t.flags||dh(t))){const n=hc(t);if(void 0===n)return;D&&n>=119&&n<=127?e.bindDiagnostics.push(j(t,function(t){return Xf(t)?_a.Identifier_expected_0_is_a_reserved_word_in_strict_mode_Class_definitions_are_automatically_in_strict_mode:e.externalModuleIndicator?_a.Identifier_expected_0_is_a_reserved_word_in_strict_mode_Modules_are_automatically_in_strict_mode:_a.Identifier_expected_0_is_a_reserved_word_in_strict_mode}(t),Ap(t))):135===n?rO(e)&&nm(t)?e.bindDiagnostics.push(j(t,_a.Identifier_expected_0_is_a_reserved_word_at_the_top_level_of_a_module,Ap(t))):65536&t.flags&&e.bindDiagnostics.push(j(t,_a.Identifier_expected_0_is_a_reserved_word_that_cannot_be_used_here,Ap(t))):127===n&&16384&t.flags&&e.bindDiagnostics.push(j(t,_a.Identifier_expected_0_is_a_reserved_word_that_cannot_be_used_here,Ap(t)))}}(o);case 167:p&&km(o)&&(o.flowNode=p);break;case 237:case 108:o.flowNode=p;break;case 81:return function(t){"#constructor"===t.escapedText&&(e.parseDiagnostics.length||e.bindDiagnostics.push(j(t,_a.constructor_is_a_reserved_word,Ap(t))))}(o);case 212:case 213:const s=o;p&&Q(s)&&(s.flowNode=p),fg(s)&&function(e){110===e.expression.kind?Ke(e):og(e)&&308===e.parent.parent.kind&&(ub(e.expression)?Qe(e,e.parent):Ye(e))}(s),Em(s)&&e.commonJsModuleIndicator&&eg(s)&&!eB(a,"module")&&z(e.locals,void 0,s.expression,134217729,111550);break;case 227:switch(tg(o)){case 1:$e(o);break;case 2:!function(t){if(!We(t))return;const n=Qm(t.right);if(hb(n)||i===e&&YR(e,n))return;if(uF(n)&&v(n.properties,iP))return void d(n.properties,He);const r=mh(t)?2097152:1049092;mg(z(e.symbol.exports,e.symbol,t,67108864|r,0),t)}(o);break;case 3:Qe(o.left,o);break;case 6:!function(e){DT(e.left,e),DT(e.right,e),ot(e.left.expression,e.left,!1,!0)}(o);break;case 4:Ke(o);break;case 5:const t=o.left.expression;if(Em(o)&&aD(t)){const e=eB(a,t.escapedText);if(cm(null==e?void 0:e.valueDeclaration)){Ke(o);break}}!function(t){var n;const r=at(t.left.expression,a)||at(t.left.expression,i);if(!Em(t)&&!gg(r))return;const o=wx(t.left);aD(o)&&2097152&(null==(n=eB(i,o.escapedText))?void 0:n.flags)||(DT(t.left,t),DT(t.right,t),aD(t.left.expression)&&i===e&&YR(e,t.left.expression)?$e(t):Rh(t)?(Ie(t,67108868,"__computed"),Xe(t,et(r,t.left.expression,it(t.left),!1,!1))):Ye(nt(t.left,sg)))}(o);break;case 0:break;default:un.fail("Unknown binary expression special property assignment kind")}return function(e){D&&R_(e.left)&&eb(e.operatorToken.kind)&&Le(e,e.left)}(o);case 300:return function(e){D&&e.variableDeclaration&&Le(e,e.variableDeclaration.name)}(o);case 221:return function(t){if(D&&80===t.expression.kind){const n=Qp(e,t.expression);e.bindDiagnostics.push(Gx(e,n.start,n.length,_a.delete_cannot_be_called_on_an_identifier_in_strict_mode))}}(o);case 226:return function(e){D&&Le(e,e.operand)}(o);case 225:return function(e){D&&(46!==e.operator&&47!==e.operator||Le(e,e.operand))}(o);case 255:return function(e){D&&Me(e,_a.with_statements_are_not_allowed_in_strict_mode)}(o);case 257:return function(e){D&&yk(t)>=2&&(uu(e.statement)||WF(e.statement))&&Me(e.label,_a.A_label_is_not_allowed_here)}(o);case 198:return void(l=!0);case 183:break;case 169:return function(e){if(UP(e.parent)){const t=Jg(e.parent);t?(un.assertNode(t,su),t.locals??(t.locals=Gu()),z(t.locals,void 0,e,262144,526824)):Ee(e,262144,526824)}else if(196===e.parent.kind){const t=function(e){const t=uc(e,e=>e.parent&&XD(e.parent)&&e.parent.extendsType===e);return t&&t.parent}(e.parent);t?(un.assertNode(t,su),t.locals??(t.locals=Gu()),z(t.locals,void 0,e,262144,526824)):Ie(e,262144,B(e))}else Ee(e,262144,526824)}(o);case 170:return lt(o);case 261:return ct(o);case 209:return o.flowNode=p,ct(o);case 173:case 172:return function(e){const t=p_(e),n=t?13247:0;return _t(e,(t?98304:4)|(e.questionToken?16777216:0),n)}(o);case 304:case 305:return _t(o,4,0);case 307:return _t(o,8,900095);case 180:case 181:case 182:return Ee(o,131072,0);case 175:case 174:return _t(o,8192|(o.questionToken?16777216:0),Jf(o)?0:103359);case 263:return function(t){e.isDeclarationFile||33554432&t.flags||Lh(t)&&(N|=4096),je(t),D?(function(t){if(n<2&&308!==a.kind&&268!==a.kind&&!i_(a)){const n=Qp(e,t);e.bindDiagnostics.push(Gx(e,n.start,n.length,function(t){return Xf(t)?_a.Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES5_Class_definitions_are_automatically_in_strict_mode:e.externalModuleIndicator?_a.Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES5_Modules_are_automatically_in_strict_mode:_a.Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES5}(t)))}}(t),Oe(t,16,110991)):Ee(t,16,110991)}(o);case 177:return Ee(o,16384,0);case 178:return _t(o,32768,46015);case 179:return _t(o,65536,78783);case 185:case 318:case 324:case 186:return function(e){const t=M(131072,B(e));R(t,e,131072);const n=M(2048,"__type");R(n,e,2048),n.members=Gu(),n.members.set(t.escapedName,t)}(o);case 188:case 323:case 201:return function(e){return Ie(e,2048,"__type")}(o);case 333:return function(e){W(e);const t=qg(e);t&&175!==t.kind&&R(t.symbol,t,32)}(o);case 211:return function(e){return Ie(e,4096,"__object")}(o);case 219:case 220:return function(t){e.isDeclarationFile||33554432&t.flags||Lh(t)&&(N|=4096),p&&(t.flowNode=p),je(t);return Ie(t,16,t.name?t.name.escapedText:"__function")}(o);case 214:switch(tg(o)){case 7:return function(e){let t=at(e.arguments[0]);const n=308===e.parent.parent.kind;t=et(t,e.arguments[0],n,!1,!1),rt(e,t,!1)}(o);case 8:return function(e){if(!We(e))return;const t=st(e.arguments[0],void 0,(e,t)=>(t&&R(t,e,67110400),t));if(t){const n=1048580;z(t.exports,t,e,n,0)}}(o);case 9:return function(e){const t=at(e.arguments[0].expression);t&&t.valueDeclaration&&R(t,t.valueDeclaration,32),rt(e,t,!0)}(o);case 0:break;default:return un.fail("Unknown call expression assignment declaration kind")}Em(o)&&function(t){!e.commonJsModuleIndicator&&Lm(t,!1)&&We(t)}(o);break;case 232:case 264:return D=!0,function(t){264===t.kind?Oe(t,32,899503):(Ie(t,32,t.name?t.name.escapedText:"__class"),t.name&&E.add(t.name.escapedText));const{symbol:n}=t,r=M(4194308,"prototype"),i=n.exports.get(r.escapedName);i&&(t.name&&DT(t.name,t),e.bindDiagnostics.push(j(i.declarations[0],_a.Duplicate_identifier_0,yc(r)))),n.exports.set(r.escapedName,r),r.parent=n}(o);case 265:return Oe(o,64,788872);case 266:return Oe(o,524288,788968);case 267:return function(e){return tf(e)?Oe(e,128,899967):Oe(e,256,899327)}(o);case 268:return function(t){if(Pe(t),cp(t))if(Nv(t,32)&&Me(t,_a.export_modifier_cannot_be_applied_to_ambient_modules_and_module_augmentations_since_they_are_always_visible),mp(t))Ae(t);else{let n;if(11===t.name.kind){const{text:e}=t.name;n=HS(e),void 0===n&&Me(t.name,_a.Pattern_0_can_have_at_most_one_Asterisk_character,e)}const r=Ee(t,512,110735);e.patternAmbientModules=ie(e.patternAmbientModules,n&&!Ze(n)?{pattern:n,symbol:r}:void 0)}else{const e=Ae(t);if(0!==e){const{symbol:n}=t;n.constEnumOnlyModule=!(304&n.flags)&&2===e&&!1!==n.constEnumOnlyModule}}}(o);case 293:return function(e){return Ie(e,4096,"__jsxAttributes")}(o);case 292:return function(e){return Ee(e,4,0)}(o);case 272:case 275:case 277:case 282:return Ee(o,2097152,2097152);case 271:return function(t){$(t.modifiers)&&e.bindDiagnostics.push(j(t,_a.Modifiers_cannot_appear_here));const n=sP(t.parent)?rO(t.parent)?t.parent.isDeclarationFile?void 0:_a.Global_module_exports_may_only_appear_in_declaration_files:_a.Global_module_exports_may_only_appear_in_module_files:_a.Global_module_exports_may_only_appear_at_top_level;n?e.bindDiagnostics.push(j(t,n)):(e.symbol.globalExports=e.symbol.globalExports||Gu(),z(e.symbol.globalExports,e.symbol,t,2097152,2097152))}(o);case 274:return function(e){e.name&&Ee(e,2097152,2097152)}(o);case 279:return function(e){i.symbol&&i.symbol.exports?e.exportClause?FE(e.exportClause)&&(DT(e.exportClause,e),z(i.symbol.exports,i.symbol,e.exportClause,2097152,2097152)):z(i.symbol.exports,i.symbol,e,8388608,0):Ie(e,8388608,B(e))}(o);case 278:return function(e){if(i.symbol&&i.symbol.exports){const t=mh(e)?2097152:4,n=z(i.symbol.exports,i.symbol,e,t,-1);e.isExportEquals&&mg(n,e)}else Ie(e,111551,B(e))}(o);case 308:return ze(o.statements),function(){if(Pe(e),rO(e))Ve();else if(ef(e)){Ve();const t=e.symbol;z(e.symbol.exports,e.symbol,e,4,-1),e.symbol=t}}();case 242:if(!i_(o.parent))return;case 269:return ze(o.statements);case 342:if(324===o.parent.kind)return lt(o);if(323!==o.parent.kind)break;case 349:const u=o;return Ee(u,u.isBracketed||u.typeExpression&&317===u.typeExpression.type.kind?16777220:4,0);case 347:case 339:case 341:return(c||(c=[])).push(o);case 340:return Be(o.typeExpression);case 352:return(_||(_=[])).push(o)}}function Ve(){Ie(e,512,`"${US(e.fileName)}"`)}function We(t){return!(e.externalModuleIndicator&&!0!==e.externalModuleIndicator||(e.commonJsModuleIndicator||(e.commonJsModuleIndicator=t,e.externalModuleIndicator||Ve()),0))}function $e(e){if(!We(e))return;const t=st(e.left.expression,void 0,(e,t)=>(t&&R(t,e,67110400),t));if(t){const n=fh(e.right)&&(Ym(e.left.expression)||eg(e.left.expression))?2097152:1048580;DT(e.left,e),z(t.exports,t,e.left,n,0)}}function He(t){z(e.symbol.exports,e.symbol,t,69206016,0)}function Ke(e){if(un.assert(Em(e)),NF(e)&&dF(e.left)&&sD(e.left.name)||dF(e)&&sD(e.name))return;const t=em(e,!1,!1);switch(t.kind){case 263:case 219:let n=t.symbol;if(NF(t.parent)&&64===t.parent.operatorToken.kind){const e=t.parent.left;og(e)&&ub(e.expression)&&(n=at(e.expression.expression,o))}n&&n.valueDeclaration&&(n.members=n.members||Gu(),Rh(e)?Ge(e,n,n.members):z(n.members,n,e,67108868,0),R(n,n.valueDeclaration,32));break;case 177:case 173:case 175:case 178:case 179:case 176:const r=t.parent,i=Dv(t)?r.symbol.exports:r.symbol.members;Rh(e)?Ge(e,r.symbol,i):z(i,r.symbol,e,67108868,0,!0);break;case 308:if(Rh(e))break;t.commonJsModuleIndicator?z(t.symbol.exports,t.symbol,e,1048580,0):Ee(e,1,111550);break;case 268:break;default:un.failBadSyntaxKind(t)}}function Ge(e,t,n){z(n,t,e,4,0,!0,!0),Xe(e,t)}function Xe(e,t){t&&(t.assignmentDeclarationMembers||(t.assignmentDeclarationMembers=new Map)).set(ZB(e),e)}function Qe(e,t){const n=e.expression,r=n.expression;DT(r,n),DT(n,e),DT(e,t),ot(r,e,!0,!0)}function Ye(e){un.assert(!aD(e)),DT(e.expression,e),ot(e.expression,e,!1,!1)}function et(t,n,r,i,o){if(2097152&(null==t?void 0:t.flags))return t;if(r&&!i){const r=67110400,i=110735;t=st(n,t,(t,n,o)=>n?(R(n,t,r),n):z(o?o.exports:e.jsGlobalAugmentations||(e.jsGlobalAugmentations=Gu()),o,t,r,i))}return o&&t&&t.valueDeclaration&&R(t,t.valueDeclaration,32),t}function rt(e,t,n){if(!t||!function(e){if(1072&e.flags)return!0;const t=e.valueDeclaration;if(t&&fF(t))return!!$m(t);let n=t?lE(t)?t.initializer:NF(t)?t.right:dF(t)&&NF(t.parent)?t.parent.right:void 0:void 0;if(n=n&&Qm(n),n){const e=ub(lE(t)?t.name:NF(t)?t.left:t);return!!Hm(!NF(n)||57!==n.operatorToken.kind&&61!==n.operatorToken.kind?n:n.right,e)}return!1}(t))return;const r=n?t.members||(t.members=Gu()):t.exports||(t.exports=Gu());let i=0,o=0;o_($m(e))?(i=8192,o=103359):fF(e)&&ng(e)&&($(e.arguments[2].properties,e=>{const t=Cc(e);return!!t&&aD(t)&&"set"===gc(t)})&&(i|=65540,o|=78783),$(e.arguments[2].properties,e=>{const t=Cc(e);return!!t&&aD(t)&&"get"===gc(t)})&&(i|=32772,o|=46015)),0===i&&(i=4,o=0),z(r,t,e,67108864|i,-67108865&o)}function it(e){return NF(e.parent)?308===function(e){for(;NF(e.parent);)e=e.parent;return e.parent}(e.parent).parent.kind:308===e.parent.parent.kind}function ot(e,t,n,r){let o=at(e,a)||at(e,i);const s=it(t);o=et(o,t.expression,s,n,r),rt(t,o,n)}function at(e,t=i){if(aD(e))return eB(t,e.escapedText);{const t=at(e.expression);return t&&t.exports&&t.exports.get(_g(e))}}function st(t,n,r){if(YR(e,t))return e.symbol;if(aD(t))return r(t,at(t),n);{const e=st(t.expression,n,r),i=cg(t);return sD(i)&&un.fail("unexpected PrivateIdentifier"),r(i,e&&e.exports&&e.exports.get(_g(t)),e)}}function ct(e){if(D&&Le(e,e.name),!k_(e.name)){const t=261===e.kind?e:e.parent.parent;!Em(e)||!Mm(t)||tl(e)||32&ic(e)?ap(e)?Oe(e,2,111551):Qh(e)?Ee(e,1,111551):Ee(e,1,111550):Ee(e,2097152,2097152)}}function lt(e){if((342!==e.kind||324===i.kind)&&(!D||33554432&e.flags||Le(e,e.name),k_(e.name)?Ie(e,1,"__"+e.parent.parameters.indexOf(e)):Ee(e,1,111551),Zs(e,e.parent))){const t=e.parent.parent;z(t.symbol.members,t.symbol,e,4|(e.questionToken?16777216:0),0)}}function _t(t,n,r){return e.isDeclarationFile||33554432&t.flags||!Lh(t)||(N|=4096),p&&zf(t)&&(t.flowNode=p),Rh(t)?Ie(t,n,"__computed"):Ee(t,n,r)}}function QR(e,t){return 267===e.kind&&(!tf(e)||Fk(t))}function YR(e,t){let n=0;const r=Ge();for(r.enqueue(t);!r.isEmpty()&&n<100;){if(n++,Ym(t=r.dequeue())||eg(t))return!0;if(aD(t)){const n=eB(e,t.escapedText);if(n&&n.valueDeclaration&&lE(n.valueDeclaration)&&n.valueDeclaration.initializer){const e=n.valueDeclaration.initializer;r.enqueue(e),rb(e,!0)&&(r.enqueue(e.left),r.enqueue(e.right))}}}return!1}function ZR(e){switch(e.kind){case 232:case 264:case 267:case 211:case 188:case 323:case 293:return 1;case 265:return 65;case 268:case 266:case 201:case 182:return 33;case 308:return 37;case 178:case 179:case 175:if(zf(e))return 173;case 177:case 263:case 174:case 180:case 324:case 318:case 185:case 181:case 186:case 176:return 45;case 352:return 37;case 219:case 220:return 61;case 269:return 4;case 173:return e.initializer?4:0;case 300:case 249:case 250:case 251:case 270:return 34;case 242:return r_(e.parent)||ED(e.parent)?0:34}return 0}function eB(e,t){var n,r,i,o;const a=null==(r=null==(n=tt(e,su))?void 0:n.locals)?void 0:r.get(t);return a?a.exportSymbol??a:sP(e)&&e.jsGlobalAugmentations&&e.jsGlobalAugmentations.has(t)?e.jsGlobalAugmentations.get(t):au(e)?null==(o=null==(i=e.symbol)?void 0:i.exports)?void 0:o.get(t):void 0}function tB(e,t,n,r,i,o,a,s,c,l){return function(_=()=>!0){const u=[],p=[];return{walkType:e=>{try{return f(e),{visitedTypes:Ae(u),visitedSymbols:Ae(p)}}finally{F(u),F(p)}},walkSymbol:e=>{try{return h(e),{visitedTypes:Ae(u),visitedSymbols:Ae(p)}}finally{F(u),F(p)}}};function f(e){if(e&&!u[e.id]&&(u[e.id]=e,!h(e.symbol))){if(524288&e.flags){const n=e,i=n.objectFlags;4&i&&function(e){f(e.target),d(l(e),f)}(e),32&i&&function(e){f(e.typeParameter),f(e.constraintType),f(e.templateType),f(e.modifiersType)}(e),3&i&&(g(t=e),d(t.typeParameters,f),d(r(t),f),f(t.thisType)),24&i&&g(n)}var t;262144&e.flags&&function(e){f(s(e))}(e),3145728&e.flags&&function(e){d(e.types,f)}(e),4194304&e.flags&&function(e){f(e.type)}(e),8388608&e.flags&&function(e){f(e.objectType),f(e.indexType),f(e.constraint)}(e)}}function m(r){const i=t(r);i&&f(i.type),d(r.typeParameters,f);for(const e of r.parameters)h(e);f(e(r)),f(n(r))}function g(e){const t=i(e);for(const e of t.indexInfos)f(e.keyType),f(e.type);for(const e of t.callSignatures)m(e);for(const e of t.constructSignatures)m(e);for(const e of t.properties)h(e)}function h(e){if(!e)return!1;const t=eJ(e);return!p[t]&&(p[t]=e,!_(e)||(f(o(e)),e.exports&&e.exports.forEach(h),d(e.declarations,e=>{if(e.type&&187===e.type.kind){const t=e.type;h(a(c(t.exprName)))}}),!1))}}}var nB={};i(nB,{RelativePreference:()=>iB,countPathComponents:()=>yB,forEachFileNameOfModule:()=>xB,getLocalModuleSpecifierBetweenFileNames:()=>fB,getModuleSpecifier:()=>sB,getModuleSpecifierPreferences:()=>oB,getModuleSpecifiers:()=>dB,getModuleSpecifiersWithCacheInfo:()=>pB,getNodeModulesPackageName:()=>cB,tryGetJSExtensionForFile:()=>AB,tryGetModuleSpecifiersFromCache:()=>_B,tryGetRealFileNameForNonJsDeclarationFileName:()=>EB,updateModuleSpecifier:()=>aB});var rB=pt(e=>{try{let t=e.indexOf("/");if(0!==t)return new RegExp(e);const n=e.lastIndexOf("/");if(t===n)return new RegExp(e);for(;(t=e.indexOf("/",t+1))!==n;)if("\\"!==e[t-1])return new RegExp(e);const r=e.substring(n+1).replace(/[^iu]/g,"");return e=e.substring(1,n),new RegExp(e,r)}catch{return}}),iB=(e=>(e[e.Relative=0]="Relative",e[e.NonRelative=1]="NonRelative",e[e.Shortest=2]="Shortest",e[e.ExternalNonRelative=3]="ExternalNonRelative",e))(iB||{});function oB({importModuleSpecifierPreference:e,importModuleSpecifierEnding:t,autoImportSpecifierExcludeRegexes:n},r,i,o,a){const s=c();return{excludeRegexes:n,relativePreference:void 0!==a?Cs(a)?0:1:"relative"===e?0:"non-relative"===e?1:"project-relative"===e?3:2,getAllowedEndingsInPreferredOrder:e=>{const t=LB(o,r,i),n=e!==t?c(e):s,a=bk(i);if(99===(e??t)&&3<=a&&a<=99)return MR(i,o.fileName)?[3,2]:[2];if(1===bk(i))return 2===n?[2,1]:[1,2];const l=MR(i,o.fileName);switch(n){case 2:return l?[2,3,0,1]:[2,0,1];case 3:return[3,0,2,1];case 1:return l?[1,0,3,2]:[1,0,2];case 0:return l?[0,1,3,2]:[0,1,2];default:un.assertNever(n)}}};function c(e){if(void 0!==a){if(OS(a))return 2;if(Mt(a,"/index"))return 1}return RS(t,e??LB(o,r,i),i,Dm(o)?o:void 0)}}function aB(e,t,n,r,i,o,a={}){const s=lB(e,t,n,r,i,oB({},i,e,t,o),{},a);if(s!==o)return s}function sB(e,t,n,r,i,o={}){return lB(e,t,n,r,i,oB({},i,e,t),{},o)}function cB(e,t,n,r,i,o={}){const a=gB(t.fileName,r);return f(kB(a,n,r,i,e,o),n=>NB(n,a,t,r,e,i,!0,o.overrideImportMode))}function lB(e,t,n,r,i,o,a,s={}){const c=gB(n,i);return f(kB(c,r,i,a,e,s),n=>NB(n,c,t,i,e,a,void 0,s.overrideImportMode))||hB(r,c,e,i,s.overrideImportMode||LB(t,i,e),o)}function _B(e,t,n,r,i={}){const o=uB(e,t,n,r,i);return o[1]&&{kind:o[0],moduleSpecifiers:o[1],computedWithoutCache:!1}}function uB(e,t,n,r,i={}){var o;const a=bd(e);if(!a)return l;const s=null==(o=n.getModuleSpecifierCache)?void 0:o.call(n),c=null==s?void 0:s.get(t.path,a.path,r,i);return[null==c?void 0:c.kind,null==c?void 0:c.moduleSpecifiers,a,null==c?void 0:c.modulePaths,s]}function dB(e,t,n,r,i,o,a={}){return pB(e,t,n,r,i,o,a,!1).moduleSpecifiers}function pB(e,t,n,r,i,o,a={},s){let c=!1;const _=function(e,t){var n;const r=null==(n=e.declarations)?void 0:n.find(e=>_p(e)&&(!fp(e)||!Cs(qh(e.name))));if(r)return r.name.text;const i=B(e.declarations,e=>{var n,r,i,o;if(!gE(e))return;const a=function(e){for(;8&e.flags;)e=e.parent;return e}(e);if(!((null==(n=null==a?void 0:a.parent)?void 0:n.parent)&&hE(a.parent)&&cp(a.parent.parent)&&sP(a.parent.parent.parent)))return;const s=null==(o=null==(i=null==(r=a.parent.parent.symbol.exports)?void 0:r.get("export="))?void 0:i.valueDeclaration)?void 0:o.expression;if(!s)return;const c=t.getSymbolAtLocation(s);if(c&&(2097152&(null==c?void 0:c.flags)?t.getAliasedSymbol(c):c)===e.symbol)return a.parent.parent})[0];return i?i.name.text:void 0}(e,t);if(_)return{kind:"ambient",moduleSpecifiers:s&&mB(_,o.autoImportSpecifierExcludeRegexes)?l:[_],computedWithoutCache:c};let[u,p,f,m,g]=uB(e,r,i,o,a);if(p)return{kind:u,moduleSpecifiers:p,computedWithoutCache:c};if(!f)return{kind:void 0,moduleSpecifiers:l,computedWithoutCache:c};c=!0,m||(m=TB(gB(r.fileName,i),f.originalFileName,i,n,a));const h=function(e,t,n,r,i,o={},a){const s=gB(n.fileName,r),c=oB(i,r,t,n),_=Dm(n)&&d(e,e=>d(r.getFileIncludeReasons().get(Uo(e.path,r.getCurrentDirectory(),s.getCanonicalFileName)),e=>{if(3!==e.kind||e.file!==n.path)return;const t=r.getModeForResolutionAtIndex(n,e.index),i=o.overrideImportMode??r.getDefaultResolutionModeForFile(n);if(t!==i&&void 0!==t&&void 0!==i)return;const a=HV(n,e.index).text;return 1===c.relativePreference&&vo(a)?void 0:a}));if(_)return{kind:void 0,moduleSpecifiers:[_],computedWithoutCache:!0};const u=$(e,e=>e.isInNodeModules);let p,f,m,g;for(const l of e){const e=l.isInNodeModules?NB(l,s,n,r,t,i,void 0,o.overrideImportMode):void 0;if(e&&(!a||!mB(e,c.excludeRegexes))&&(p=ie(p,e),l.isRedirect))return{kind:"node_modules",moduleSpecifiers:p,computedWithoutCache:!0};const _=hB(l.path,s,t,r,o.overrideImportMode||n.impliedNodeFormat,c,l.isRedirect||!!e);!_||a&&mB(_,c.excludeRegexes)||(l.isRedirect?m=ie(m,_):bo(_)?GM(_)?g=ie(g,_):f=ie(f,_):(a||!u||l.isInNodeModules)&&(g=ie(g,_)))}return(null==f?void 0:f.length)?{kind:"paths",moduleSpecifiers:f,computedWithoutCache:!0}:(null==m?void 0:m.length)?{kind:"redirect",moduleSpecifiers:m,computedWithoutCache:!0}:(null==p?void 0:p.length)?{kind:"node_modules",moduleSpecifiers:p,computedWithoutCache:!0}:{kind:"relative",moduleSpecifiers:g??l,computedWithoutCache:!0}}(m,n,r,i,o,a,s);return null==g||g.set(r.path,f.path,o,a,h.kind,m,h.moduleSpecifiers),h}function fB(e,t,n,r,i,o={}){return hB(t,gB(e.fileName,r),n,r,o.overrideImportMode??e.impliedNodeFormat,oB(i,r,n,e))}function mB(e,t){return $(t,t=>{var n;return!!(null==(n=rB(t))?void 0:n.test(e))})}function gB(e,t){e=Bo(e,t.getCurrentDirectory());const n=Wt(!t.useCaseSensitiveFileNames||t.useCaseSensitiveFileNames()),r=Do(e);return{getCanonicalFileName:n,importingSourceFileName:e,sourceDirectory:r,canonicalSourceDirectory:n(r)}}function hB(e,t,n,r,i,{getAllowedEndingsInPreferredOrder:o,relativePreference:a,excludeRegexes:s},c){const{baseUrl:l,paths:_,rootDirs:u}=n;if(c&&!_)return;const{sourceDirectory:p,canonicalSourceDirectory:f,getCanonicalFileName:m}=t,g=o(i),h=u&&function(e,t,n,r,i,o){const a=DB(t,e,r);if(void 0===a)return;const s=kt(O(DB(n,e,r),e=>E(a,t=>$o(ra(e,t,r)))),zS);return s?FB(s,i,o):void 0}(u,e,p,m,g,n)||FB($o(ra(p,e,m)),g,n);if(!l&&!_&&!wk(n)||0===a)return c?void 0:h;const y=Bo(Ky(n,r)||l,r.getCurrentDirectory()),v=IB(e,y,m);if(!v)return c?void 0:h;const b=c?void 0:function(e,t,n,r,i,o){var a,s,c;if(!r.readFile||!wk(n))return;const l=bB(r,t);if(!l)return;const _=jo(l,"package.json"),u=null==(s=null==(a=r.getPackageJsonInfoCache)?void 0:a.call(r))?void 0:s.getPackageJsonInfo(_);if(kM(u)||!r.fileExists(_))return;const p=(null==u?void 0:u.contents.packageJsonContent)||Nb(r.readFile(_)),f=null==p?void 0:p.imports;if(!f)return;const m=yM(n,i);return null==(c=d(Ee(f),t=>{if(!Gt(t,"#")||"#"===t||Gt(t,"#/"))return;const i=Mt(t,"/")?1:t.includes("*")?2:0;return wB(n,r,e,l,t,f[t],m,i,!0,o)}))?void 0:c.moduleFileToTry}(e,p,n,r,i,function(e){const t=e.indexOf(3);return t>-1&&te.fileExists(jo(t,"package.json"))?t:void 0)}function xB(e,t,n,r,i){var o,a;const s=My(n),c=n.getCurrentDirectory(),_=n.isSourceOfProjectReferenceRedirect(t)?null==(o=n.getRedirectFromSourceFile(t))?void 0:o.outputDts:void 0,u=Uo(t,c,s),p=n.redirectTargetsMap.get(u)||l,f=[..._?[_]:l,t,...p].map(e=>Bo(e,c));let m=!v(f,IT);if(!r){const e=d(f,e=>!(m&&IT(e))&&i(e,_===e));if(e)return e}const g=null==(a=n.getSymlinkCache)?void 0:a.call(n).getSymlinkedDirectoriesByRealpath(),h=Bo(t,c);return g&&TR(n,Do(h),t=>{const n=g.get(Wo(Uo(t,c,s)));if(n)return!ta(e,t,s)&&d(f,e=>{if(!ta(e,t,s))return;const r=ra(t,e,s);for(const t of n){const n=Mo(t,r),o=i(n,e===_);if(m=!0,o)return o}})})||(r?d(f,e=>m&&IT(e)?void 0:i(e,e===_)):void 0)}function kB(e,t,n,r,i,o={}){var a;const s=Uo(e.importingSourceFileName,n.getCurrentDirectory(),My(n)),c=Uo(t,n.getCurrentDirectory(),My(n)),l=null==(a=n.getModuleSpecifierCache)?void 0:a.call(n);if(l){const e=l.get(s,c,r,o);if(null==e?void 0:e.modulePaths)return e.modulePaths}const _=TB(e,t,n,i,o);return l&&l.setModulePaths(s,c,r,o,_),_}var SB=["dependencies","peerDependencies","optionalDependencies"];function TB(e,t,n,r,i){var o,a;const s=null==(o=n.getModuleResolutionCache)?void 0:o.call(n),c=null==(a=n.getSymlinkCache)?void 0:a.call(n);if(s&&c&&n.readFile&&!GM(e.importingSourceFileName)){un.type(n);const t=cR(s.getPackageJsonInfoCache(),n,{}),o=lR(Do(e.importingSourceFileName),t);if(o){const e=function(e){let t;for(const n of SB){const r=e[n];r&&"object"==typeof r&&(t=K(t,Ee(r)))}return t}(o.contents.packageJsonContent);for(const t of e||l){const e=MM(t,jo(o.packageDirectory,"package.json"),r,n,s,void 0,i.overrideImportMode);c.setSymlinksFromResolution(e.resolvedModule)}}}const _=new Map;let u=!1;xB(e.importingSourceFileName,t,n,!0,(t,n)=>{const r=GM(t);_.set(t,{path:e.getCanonicalFileName(t),isRedirect:n,isInNodeModules:r}),u=u||r});const d=[];for(let t=e.canonicalSourceDirectory;0!==_.size;){const e=Wo(t);let n;_.forEach(({path:t,isRedirect:r,isInNodeModules:i},o)=>{Gt(t,e)&&((n||(n=[])).push({path:o,isRedirect:r,isInNodeModules:i}),_.delete(o))}),n&&(n.length>1&&n.sort(vB),d.push(...n));const r=Do(t);if(r===t)break;t=r}if(_.size){const e=Oe(_.entries(),([e,{isRedirect:t,isInNodeModules:n}])=>({path:e,isRedirect:t,isInNodeModules:n}));e.length>1&&e.sort(vB),d.push(...e)}return d}function CB(e,t,n,r,i,o,a){for(const o in t)for(const c of t[o]){const t=Jo(c),l=IB(t,r,i)??t,_=l.indexOf("*"),u=n.map(t=>({ending:t,value:FB(e,[t],a)}));if(tT(l)&&u.push({ending:void 0,value:e}),-1!==_){const e=l.substring(0,_),t=l.substring(_+1);for(const{ending:n,value:r}of u)if(r.length>=e.length+t.length&&Gt(r,e)&&Mt(r,t)&&s({ending:n,value:r})){const n=r.substring(e.length,r.length-t.length);if(!vo(n))return dC(o,n)}}else if($(u,e=>0!==e.ending&&l===e.value)||$(u,e=>0===e.ending&&l===e.value&&s(e)))return o}function s({ending:t,value:n}){return 0!==t||n===FB(e,[t],a,o)}}function wB(e,t,n,r,i,o,a,s,c,l){if("string"==typeof o){const a=!jy(t),_=()=>t.getCommonSourceDirectory(),u=c&&iU(n,e,a,_),d=c&&nU(n,e,a,_),p=Bo(jo(r,o),void 0),f=LS(n)?US(n)+AB(n,e):void 0,m=l&&jS(n);switch(s){case 0:if(f&&0===Zo(f,p,a)||0===Zo(n,p,a)||u&&0===Zo(u,p,a)||d&&0===Zo(d,p,a))return{moduleFileToTry:i};break;case 1:if(m&&ea(n,p,a)){const e=ra(p,n,!1);return{moduleFileToTry:Bo(jo(jo(i,o),e),void 0)}}if(f&&ea(p,f,a)){const e=ra(p,f,!1);return{moduleFileToTry:Bo(jo(jo(i,o),e),void 0)}}if(!m&&ea(p,n,a)){const e=ra(p,n,!1);return{moduleFileToTry:Bo(jo(jo(i,o),e),void 0)}}if(u&&ea(p,u,a)){const e=ra(p,u,!1);return{moduleFileToTry:jo(i,e)}}if(d&&ea(p,d,a)){const t=Ko(ra(p,d,!1),PB(d,e));return{moduleFileToTry:jo(i,t)}}break;case 2:const t=p.indexOf("*"),r=p.slice(0,t),s=p.slice(t+1);if(m&&Gt(n,r,a)&&Mt(n,s,a)){const e=n.slice(r.length,n.length-s.length);return{moduleFileToTry:dC(i,e)}}if(f&&Gt(f,r,a)&&Mt(f,s,a)){const e=f.slice(r.length,f.length-s.length);return{moduleFileToTry:dC(i,e)}}if(!m&&Gt(n,r,a)&&Mt(n,s,a)){const e=n.slice(r.length,n.length-s.length);return{moduleFileToTry:dC(i,e)}}if(u&&Gt(u,r,a)&&Mt(u,s,a)){const e=u.slice(r.length,u.length-s.length);return{moduleFileToTry:dC(i,e)}}if(d&&Gt(d,r,a)&&Mt(d,s,a)){const t=d.slice(r.length,d.length-s.length),n=dC(i,t),o=AB(d,e);return o?{moduleFileToTry:Ko(n,o)}:void 0}}}else{if(Array.isArray(o))return d(o,o=>wB(e,t,n,r,i,o,a,s,c,l));if("object"==typeof o&&null!==o)for(const _ of Ee(o))if("default"===_||a.indexOf(_)>=0||xR(a,_)){const u=o[_],d=wB(e,t,n,r,i,u,a,s,c,l);if(d)return d}}}function NB({path:e,isRedirect:t},{getCanonicalFileName:n,canonicalSourceDirectory:r},i,o,a,s,c,l){if(!o.fileExists||!o.readFile)return;const _=UT(e);if(!_)return;const u=oB(s,o,a,i).getAllowedEndingsInPreferredOrder();let p=e,f=!1;if(!c){let t,n=_.packageRootIndex;for(;;){const{moduleFileToTry:r,packageRootPath:i,blockedByExports:s,verbatimFromExports:c}=v(n);if(1!==bk(a)){if(s)return;if(c)return r}if(i){p=i,f=!0;break}if(t||(t=r),n=e.indexOf(lo,n+1),-1===n){p=FB(t,u,a,o);break}}}if(t&&!f)return;const m=o.getGlobalTypingsCacheLocation&&o.getGlobalTypingsCacheLocation(),g=n(p.substring(0,_.topLevelNodeModulesIndex));if(!(Gt(r,g)||m&&Gt(n(m),g)))return;const h=p.substring(_.topLevelPackageNameIndex+1),y=AR(h);return 1===bk(a)&&y===h?void 0:y;function v(t){var r,s;const c=e.substring(0,t),p=jo(c,"package.json");let f=e,m=!1;const g=null==(s=null==(r=o.getPackageJsonInfoCache)?void 0:r.call(o))?void 0:s.getPackageJsonInfo(p);if(xM(g)||void 0===g&&o.fileExists(p)){const t=(null==g?void 0:g.contents.packageJsonContent)||Nb(o.readFile(p)),r=l||LB(i,o,a);if(Ck(a)){const n=AR(c.substring(_.topLevelPackageNameIndex+1)),i=yM(a,r),s=(null==t?void 0:t.exports)?function(e,t,n,r,i,o,a){return"object"==typeof o&&null!==o&&!Array.isArray(o)&&gR(o)?d(Ee(o),s=>{const c=Bo(jo(i,s),void 0),l=Mt(s,"/")?1:s.includes("*")?2:0;return wB(e,t,n,r,c,o[s],a,l,!1,!1)}):wB(e,t,n,r,i,o,a,0,!1,!1)}(a,o,e,c,n,t.exports,i):void 0;if(s)return{...s,verbatimFromExports:!0};if(null==t?void 0:t.exports)return{moduleFileToTry:e,blockedByExports:!0}}const s=(null==t?void 0:t.typesVersions)?_M(t.typesVersions):void 0;if(s){const t=CB(e.slice(c.length+1),s.paths,u,c,n,o,a);void 0===t?m=!0:f=jo(c,t)}const h=(null==t?void 0:t.typings)||(null==t?void 0:t.types)||(null==t?void 0:t.main)||"index.js";if(Ze(h)&&(!m||!iT(GS(s.paths),h))){const e=Uo(h,c,n),r=n(f);if(US(e)===US(r))return{packageRootPath:c,moduleFileToTry:f};if("module"!==(null==t?void 0:t.type)&&!So(r,PS)&&Gt(r,e)&&Do(r)===Vo(e)&&"index"===US(Fo(r)))return{packageRootPath:c,moduleFileToTry:f}}}else{const e=n(f.substring(_.packageRootIndex+1));if("index.d.ts"===e||"index.js"===e||"index.ts"===e||"index.tsx"===e)return{moduleFileToTry:f,packageRootPath:c}}return{moduleFileToTry:f}}}function DB(e,t,n){return B(t,t=>{const r=IB(e,t,n);return void 0!==r&&OB(r)?void 0:r})}function FB(e,t,n,r){if(So(e,[".json",".mjs",".cjs"]))return e;const i=US(e);if(e===i)return e;const o=t.indexOf(2),a=t.indexOf(3);if(So(e,[".mts",".cts"])&&-1!==a&&a0===e||1===e);return-1!==r&&r(e[e.None=0]="None",e[e.TypeofEQString=1]="TypeofEQString",e[e.TypeofEQNumber=2]="TypeofEQNumber",e[e.TypeofEQBigInt=4]="TypeofEQBigInt",e[e.TypeofEQBoolean=8]="TypeofEQBoolean",e[e.TypeofEQSymbol=16]="TypeofEQSymbol",e[e.TypeofEQObject=32]="TypeofEQObject",e[e.TypeofEQFunction=64]="TypeofEQFunction",e[e.TypeofEQHostObject=128]="TypeofEQHostObject",e[e.TypeofNEString=256]="TypeofNEString",e[e.TypeofNENumber=512]="TypeofNENumber",e[e.TypeofNEBigInt=1024]="TypeofNEBigInt",e[e.TypeofNEBoolean=2048]="TypeofNEBoolean",e[e.TypeofNESymbol=4096]="TypeofNESymbol",e[e.TypeofNEObject=8192]="TypeofNEObject",e[e.TypeofNEFunction=16384]="TypeofNEFunction",e[e.TypeofNEHostObject=32768]="TypeofNEHostObject",e[e.EQUndefined=65536]="EQUndefined",e[e.EQNull=131072]="EQNull",e[e.EQUndefinedOrNull=262144]="EQUndefinedOrNull",e[e.NEUndefined=524288]="NEUndefined",e[e.NENull=1048576]="NENull",e[e.NEUndefinedOrNull=2097152]="NEUndefinedOrNull",e[e.Truthy=4194304]="Truthy",e[e.Falsy=8388608]="Falsy",e[e.IsUndefined=16777216]="IsUndefined",e[e.IsNull=33554432]="IsNull",e[e.IsUndefinedOrNull=50331648]="IsUndefinedOrNull",e[e.All=134217727]="All",e[e.BaseStringStrictFacts=3735041]="BaseStringStrictFacts",e[e.BaseStringFacts=12582401]="BaseStringFacts",e[e.StringStrictFacts=16317953]="StringStrictFacts",e[e.StringFacts=16776705]="StringFacts",e[e.EmptyStringStrictFacts=12123649]="EmptyStringStrictFacts",e[e.EmptyStringFacts=12582401]="EmptyStringFacts",e[e.NonEmptyStringStrictFacts=7929345]="NonEmptyStringStrictFacts",e[e.NonEmptyStringFacts=16776705]="NonEmptyStringFacts",e[e.BaseNumberStrictFacts=3734786]="BaseNumberStrictFacts",e[e.BaseNumberFacts=12582146]="BaseNumberFacts",e[e.NumberStrictFacts=16317698]="NumberStrictFacts",e[e.NumberFacts=16776450]="NumberFacts",e[e.ZeroNumberStrictFacts=12123394]="ZeroNumberStrictFacts",e[e.ZeroNumberFacts=12582146]="ZeroNumberFacts",e[e.NonZeroNumberStrictFacts=7929090]="NonZeroNumberStrictFacts",e[e.NonZeroNumberFacts=16776450]="NonZeroNumberFacts",e[e.BaseBigIntStrictFacts=3734276]="BaseBigIntStrictFacts",e[e.BaseBigIntFacts=12581636]="BaseBigIntFacts",e[e.BigIntStrictFacts=16317188]="BigIntStrictFacts",e[e.BigIntFacts=16775940]="BigIntFacts",e[e.ZeroBigIntStrictFacts=12122884]="ZeroBigIntStrictFacts",e[e.ZeroBigIntFacts=12581636]="ZeroBigIntFacts",e[e.NonZeroBigIntStrictFacts=7928580]="NonZeroBigIntStrictFacts",e[e.NonZeroBigIntFacts=16775940]="NonZeroBigIntFacts",e[e.BaseBooleanStrictFacts=3733256]="BaseBooleanStrictFacts",e[e.BaseBooleanFacts=12580616]="BaseBooleanFacts",e[e.BooleanStrictFacts=16316168]="BooleanStrictFacts",e[e.BooleanFacts=16774920]="BooleanFacts",e[e.FalseStrictFacts=12121864]="FalseStrictFacts",e[e.FalseFacts=12580616]="FalseFacts",e[e.TrueStrictFacts=7927560]="TrueStrictFacts",e[e.TrueFacts=16774920]="TrueFacts",e[e.SymbolStrictFacts=7925520]="SymbolStrictFacts",e[e.SymbolFacts=16772880]="SymbolFacts",e[e.ObjectStrictFacts=7888800]="ObjectStrictFacts",e[e.ObjectFacts=16736160]="ObjectFacts",e[e.FunctionStrictFacts=7880640]="FunctionStrictFacts",e[e.FunctionFacts=16728e3]="FunctionFacts",e[e.VoidFacts=9830144]="VoidFacts",e[e.UndefinedFacts=26607360]="UndefinedFacts",e[e.NullFacts=42917664]="NullFacts",e[e.EmptyObjectStrictFacts=83427327]="EmptyObjectStrictFacts",e[e.EmptyObjectFacts=83886079]="EmptyObjectFacts",e[e.UnknownFacts=83886079]="UnknownFacts",e[e.AllTypeofNE=556800]="AllTypeofNE",e[e.OrFactsMask=8256]="OrFactsMask",e[e.AndFactsMask=134209471]="AndFactsMask",e))(WB||{}),$B=new Map(Object.entries({string:256,number:512,bigint:1024,boolean:2048,symbol:4096,undefined:524288,object:8192,function:16384})),HB=(e=>(e[e.Normal=0]="Normal",e[e.Contextual=1]="Contextual",e[e.Inferential=2]="Inferential",e[e.SkipContextSensitive=4]="SkipContextSensitive",e[e.SkipGenericFunctions=8]="SkipGenericFunctions",e[e.IsForSignatureHelp=16]="IsForSignatureHelp",e[e.RestBindingElement=32]="RestBindingElement",e[e.TypeOnly=64]="TypeOnly",e))(HB||{}),KB=(e=>(e[e.None=0]="None",e[e.BivariantCallback=1]="BivariantCallback",e[e.StrictCallback=2]="StrictCallback",e[e.IgnoreReturnTypes=4]="IgnoreReturnTypes",e[e.StrictArity=8]="StrictArity",e[e.StrictTopSignature=16]="StrictTopSignature",e[e.Callback=3]="Callback",e))(KB||{}),GB=Zt(rJ,function(e){return!d_(e)}),XB=new Map(Object.entries({Uppercase:0,Lowercase:1,Capitalize:2,Uncapitalize:3,NoInfer:4})),QB=class{};function YB(){this.flags=0}function ZB(e){return e.id||(e.id=qB,qB++),e.id}function eJ(e){return e.id||(e.id=zB,zB++),e.id}function tJ(e,t){const n=UR(e);return 1===n||t&&2===n}function nJ(e){var t,n,r,i,o=[],a=e=>{o.push(e)},s=Mx.getSymbolConstructor(),c=Mx.getTypeConstructor(),_=Mx.getSignatureConstructor(),p=0,m=0,g=0,h=0,y=0,C=0,D=!1,P=Gu(),L=[1],j=e.getCompilerOptions(),M=yk(j),R=vk(j),J=!!j.experimentalDecorators,U=Ik(j),V=qk(j),W=Tk(j),H=Jk(j,"strictNullChecks"),G=Jk(j,"strictFunctionTypes"),Y=Jk(j,"strictBindCallApply"),Z=Jk(j,"strictPropertyInitialization"),ee=Jk(j,"strictBuiltinIteratorReturn"),ne=Jk(j,"noImplicitAny"),oe=Jk(j,"noImplicitThis"),ae=Jk(j,"useUnknownInCatchVariables"),_e=j.exactOptionalPropertyTypes,ue=!!j.noUncheckedSideEffectImports,pe=function(){const e=cI(function(e,t,r){return t?(t.stackIndex++,t.skip=!1,n(t,void 0),i(t,void 0)):t={checkMode:r,skip:!1,stackIndex:0,typeStack:[void 0,void 0]},Em(e)&&$m(e)?(t.skip=!0,i(t,eM(e.right,r)),t):(function(e){if(61===e.operatorToken.kind){if(NF(e.parent)){const{left:t,operatorToken:n}=e.parent;NF(t)&&57===n.kind&&kz(t,_a._0_and_1_operations_cannot_be_mixed_without_parentheses,Fa(61),Fa(n.kind))}else if(NF(e.left)){const{operatorToken:t}=e.left;57!==t.kind&&56!==t.kind||kz(e.left,_a._0_and_1_operations_cannot_be_mixed_without_parentheses,Fa(t.kind),Fa(61))}else if(NF(e.right)){const{operatorToken:t}=e.right;56===t.kind&&kz(e.right,_a._0_and_1_operations_cannot_be_mixed_without_parentheses,Fa(61),Fa(t.kind))}(function(e){const t=NA(e.left,63),n=Nj(t);3!==n&&zo(t,1===n?_a.This_expression_is_always_nullish:_a.Right_operand_of_is_unreachable_because_the_left_operand_is_never_nullish)})(e),function(e){const t=NA(e.right,63),n=Nj(t);(function(e){return!NF(e.parent)||61!==e.parent.operatorToken.kind})(e)||(1===n?zo(t,_a.This_expression_is_always_nullish):2===n&&zo(t,_a.This_expression_is_never_nullish))}(e)}}(e),64!==e.operatorToken.kind||211!==e.left.kind&&210!==e.left.kind||(t.skip=!0,i(t,Tj(e.left,eM(e.right,r),r,110===e.right.kind))),t)},function(e,n,r){if(!n.skip)return t(n,e)},function(e,t,o){if(!t.skip){const a=r(t);un.assertIsDefined(a),n(t,a),i(t,void 0);const s=e.kind;if(Yv(s)){let e=o.parent;for(;218===e.kind||Zv(e);)e=e.parent;(56===s||KF(e))&&yR(o.left,a,KF(e)?e.thenStatement:void 0),Kv(s)&&vR(a,o.left)}}},function(e,n,r){if(!n.skip)return t(n,e)},function(e,t){let o;if(t.skip)o=r(t);else{const n=function(e){return e.typeStack[e.stackIndex]}(t);un.assertIsDefined(n);const i=r(t);un.assertIsDefined(i),o=Dj(e.left,e.operatorToken,e.right,n,i,t.checkMode,e)}return t.skip=!1,n(t,void 0),i(t,void 0),t.stackIndex--,o},function(e,t,n){return i(e,t),e});return(t,n)=>{const r=e(t,n);return un.assertIsDefined(r),r};function t(e,t){if(NF(t))return t;i(e,eM(t,e.checkMode))}function n(e,t){e.typeStack[e.stackIndex]=t}function r(e){return e.typeStack[e.stackIndex+1]}function i(e,t){e.typeStack[e.stackIndex+1]=t}}(),be={getReferencedExportContainer:function(e,t){var n;const r=pc(e,aD);if(r){let e=qJ(r,function(e){return ou(e.parent)&&e===e.parent.name}(r));if(e){if(1048576&e.flags){const n=xs(e.exportSymbol);if(!t&&944&n.flags&&!(3&n.flags))return;e=n}const i=Ts(e);if(i){if(512&i.flags&&308===(null==(n=i.valueDeclaration)?void 0:n.kind)){const e=i.valueDeclaration;return e!==vd(r)?void 0:e}return uc(r.parent,e=>ou(e)&&ks(e)===i)}}}},getReferencedImportDeclaration:function(e){const t=rN(e);if(t)return t;const n=pc(e,aD);if(n){const e=function(e){const t=da(e).resolvedSymbol;return t&&t!==xt?t:Ue(e,e.escapedText,3257279,void 0,!0,void 0)}(n);if(Wa(e,111551)&&!Ya(e,111551))return Ca(e)}},getReferencedDeclarationWithCollidingName:function(e){if(!Wl(e)){const t=pc(e,aD);if(t){const e=qJ(t);if(e&&NJ(e))return e.valueDeclaration}}},isDeclarationWithCollidingName:function(e){const t=pc(e,_u);if(t){const e=ks(t);if(e)return NJ(e)}return!1},isValueAliasDeclaration:e=>{const t=pc(e);return!t||!Re||DJ(t)},hasGlobalName:function(e){return Ne.has(fc(e))},isReferencedAliasDeclaration:(e,t)=>{const n=pc(e);return!n||!Re||PJ(n,t)},hasNodeCheckFlag:(e,t)=>{const n=pc(e);return!!n&&jJ(n,t)},isTopLevelValueImportEqualsWithEntityName:function(e){const t=pc(e,bE);return!(void 0===t||308!==t.parent.kind||!Nm(t))&&(FJ(ks(t))&&t.moduleReference&&!Nd(t.moduleReference))},isDeclarationVisible:Vc,isImplementationOfOverload:AJ,requiresAddingImplicitUndefined:IJ,isExpandoFunctionDeclaration:OJ,getPropertiesOfContainerFunction:function(e){const t=pc(e,uE);if(!t)return l;const n=ks(t);return n&&Up(P_(n))||l},createTypeOfDeclaration:function(e,t,n,r,i){const o=pc(e,kC);if(!o)return mw.createToken(133);const a=ks(o);return xe.serializeTypeForDeclaration(o,a,t,1024|n,r,i)},createReturnTypeOfSignatureDeclaration:function(e,t,n,r,i){const o=pc(e,r_);return o?xe.serializeReturnTypeForSignature(o,t,1024|n,r,i):mw.createToken(133)},createTypeOfExpression:function(e,t,n,r,i){const o=pc(e,V_);return o?xe.serializeTypeForExpression(o,t,1024|n,r,i):mw.createToken(133)},createLiteralConstValue:function(e,t){return function(e,t,n){const r=1056&e.flags?xe.symbolToExpression(e.symbol,111551,t,void 0,void 0,n):e===Yt?mw.createTrue():e===Ht&&mw.createFalse();if(r)return r;const i=e.value;return"object"==typeof i?mw.createBigIntLiteral(i):"string"==typeof i?mw.createStringLiteral(i):i<0?mw.createPrefixUnaryExpression(41,mw.createNumericLiteral(-i)):mw.createNumericLiteral(i)}(P_(ks(e)),e,t)},isSymbolAccessible:tc,isEntityNameVisible:vc,getConstantValue:e=>{const t=pc(e,RJ);return t?BJ(t):void 0},getEnumMemberValue:e=>{const t=pc(e,aP);return t?MJ(t):void 0},collectLinkedAliases:Wc,markLinkedReferences:e=>{const t=pc(e);return t&&RE(t,0)},getReferencedValueDeclaration:function(e){if(!Wl(e)){const t=pc(e,aD);if(t){const e=qJ(t);if(e)return Os(e).valueDeclaration}}},getReferencedValueDeclarations:function(e){if(!Wl(e)){const t=pc(e,aD);if(t){const e=qJ(t);if(e)return N(Os(e).declarations,e=>{switch(e.kind){case 261:case 170:case 209:case 173:case 304:case 305:case 307:case 211:case 263:case 219:case 220:case 264:case 232:case 267:case 175:case 178:case 179:case 268:return!0}return!1})}}},getTypeReferenceSerializationKind:function(e,t){var n;const r=pc(e,e_);if(!r)return 0;if(t&&!(t=pc(t)))return 0;let i=!1;if(xD(r)){const e=ts(sb(r),111551,!0,!0,t);i=!!(null==(n=null==e?void 0:e.declarations)?void 0:n.every(zl))}const o=ts(r,111551,!0,!0,t),a=o&&2097152&o.flags?Ha(o):o;i||(i=!(!o||!Ya(o,111551)));const s=ts(r,788968,!0,!0,t),c=s&&2097152&s.flags?Ha(s):s;if(o||i||(i=!(!s||!Ya(s,788968))),a&&a===c){const e=nv(!1);if(e&&a===e)return 9;const t=P_(a);if(t&&tu(t))return i?10:1}if(!c)return i?11:0;const l=Au(c);return al(l)?i?11:0:3&l.flags?11:hj(l,245760)?2:hj(l,528)?6:hj(l,296)?3:hj(l,2112)?4:hj(l,402653316)?5:rw(l)?7:hj(l,12288)?8:JJ(l)?10:OC(l)?7:11},isOptionalParameter:vg,isArgumentsLocalBinding:function(e){if(Wl(e))return!1;const t=pc(e,aD);if(!t)return!1;const n=t.parent;return!!n&&(!((dF(n)||rP(n))&&n.name===t)&&qJ(t)===Le)},getExternalModuleFileFromDeclaration:e=>{const t=pc(e,Np);return t&&$J(t)},isLiteralConstDeclaration:function(e){return!!(nf(e)||lE(e)&&Az(e))&&pk(P_(ks(e)))},isLateBound:e=>{const t=pc(e,_u),n=t&&ks(t);return!!(n&&4096&rx(n))},getJsxFactoryEntity:UJ,getJsxFragmentFactoryEntity:VJ,isBindingCapturedByNode:(e,t)=>{const n=pc(e),r=pc(t);return!!n&&!!r&&(lE(r)||lF(r))&&function(e,t){const n=da(e);return!!n&&T(n.capturedBlockScopeBindings,ks(t))}(n,r)},getDeclarationStatementsForSourceFile:(e,t,n,r)=>{const i=pc(e);un.assert(i&&308===i.kind,"Non-sourcefile node passed into getDeclarationsForSourceFile");const o=ks(e);return o?(ss(o),o.exports?xe.symbolTableToDeclarationStatements(o.exports,e,t,n,r):[]):e.locals?xe.symbolTableToDeclarationStatements(e.locals,e,t,n,r):[]},isImportRequiredByAugmentation:function(e){const t=vd(e);if(!t.symbol)return!1;const n=$J(e);if(!n)return!1;if(n===t)return!1;const r=ys(t.symbol);for(const e of Oe(r.values()))if(e.mergeId){const t=xs(e);if(t.declarations)for(const e of t.declarations)if(vd(e)===n)return!0}return!1},isDefinitelyReferenceToGlobalSymbolObject:Io,createLateBoundIndexSignatures:(e,t,n,r,i)=>{const o=e.symbol,a=Jm(P_(o)),s=Fh(o),c=s&&Lh(s,Oe(Td(o).values()));let l;for(const e of[a,c])if(u(e)){l||(l=[]);for(const o of e){if(o.declaration)continue;if(o===di)continue;if(o.components&&v(o.components,e=>{var n;return!!(e.name&&kD(e.name)&&ab(e.name.expression)&&t&&0===(null==(n=vc(e.name.expression,t,!1))?void 0:n.accessibility))})){const s=N(o.components,e=>!_d(e));l.push(...E(s,s=>{_(s.name.expression);const c=e===a?[mw.createModifier(126)]:void 0;return mw.createPropertyDeclaration(ie(c,o.isReadonly?mw.createModifier(148):void 0),s.name,(wD(s)||ND(s)||DD(s)||FD(s)||Nu(s)||wu(s))&&s.questionToken?mw.createToken(58):void 0,xe.typeToTypeNode(P_(s.symbol),t,n,r,i),void 0)}));continue}const s=xe.indexInfoToIndexSignatureDeclaration(o,t,n,r,i);s&&e===a&&(s.modifiers||(s.modifiers=mw.createNodeArray())).unshift(mw.createModifier(126)),s&&l.push(s)}}return l;function _(e){if(!i.trackSymbol)return;const n=sb(e),r=Ue(n,n.escapedText,1160127,void 0,!0);r&&i.trackSymbol(r,t,111551)}},symbolToDeclarations:(e,t,n,r,i,o)=>xe.symbolToDeclarations(e,t,n,r,i,o)},xe=function(){return{syntacticBuilderResolver:{evaluateEntityNameExpression:vB,isExpandoFunctionDeclaration:OJ,hasLateBindableName:_d,shouldRemoveDeclaration:(e,t)=>!(8&e.internalFlags&&ab(t.name.expression)&&1&BA(t.name).flags),createRecoveryBoundary:e=>function(e){t&&t.throwIfCancellationRequested&&t.throwIfCancellationRequested();let n,r,i=!1;const o=e.tracker,a=e.trackedSymbols;e.trackedSymbols=void 0;const s=e.encounteredError;return e.tracker=new cJ(e,{...o.inner,reportCyclicStructureError(){c(()=>o.reportCyclicStructureError())},reportInaccessibleThisError(){c(()=>o.reportInaccessibleThisError())},reportInaccessibleUniqueSymbolError(){c(()=>o.reportInaccessibleUniqueSymbolError())},reportLikelyUnsafeImportRequiredError(e){c(()=>o.reportLikelyUnsafeImportRequiredError(e))},reportNonSerializableProperty(e){c(()=>o.reportNonSerializableProperty(e))},reportPrivateInBaseOfClassExpression(e){c(()=>o.reportPrivateInBaseOfClassExpression(e))},trackSymbol:(e,t,r)=>((n??(n=[])).push([e,t,r]),!1),moduleResolverHost:e.tracker.moduleResolverHost},e.tracker.moduleResolverHost),{startRecoveryScope:function(){const e=(null==n?void 0:n.length)??0,t=(null==r?void 0:r.length)??0;return()=>{i=!1,n&&(n.length=e),r&&(r.length=t)}},finalizeBoundary:function(){return e.tracker=o,e.trackedSymbols=a,e.encounteredError=s,null==r||r.forEach(e=>e()),!i&&(null==n||n.forEach(([t,n,r])=>e.tracker.trackSymbol(t,n,r)),!0)},markError:c,hadError:()=>i};function c(e){i=!0,e&&(r??(r=[])).push(e)}}(e),isDefinitelyReferenceToGlobalSymbolObject:Io,getAllAccessorDeclarations:zJ,requiresAddingImplicitUndefined(e,t,n){var r;switch(e.kind){case 173:case 172:case 349:t??(t=ks(e));const i=P_(t);return!!(4&t.flags&&16777216&t.flags&&XT(e)&&(null==(r=t.links)?void 0:r.mappedType)&&function(e){const t=1048576&e.flags?e.types[0]:e;return!!(32768&t.flags)&&t!==Rt}(i));case 170:case 342:return IJ(e,n);default:un.assertNever(e)}},isOptionalParameter:vg,isUndefinedIdentifierExpression:e=>yJ(e)===De,isEntityNameVisible:(e,t,n)=>vc(t,e.enclosingDeclaration,n),serializeExistingTypeNode:(e,t,r)=>function(e,t,r){const i=n(e,t);if(r&&!UD(i,e=>!!(32768&e.flags))&&Se(e,t)){const n=ke.tryReuseExistingTypeNode(e,t);if(n)return mw.createUnionTypeNode([n,mw.createKeywordTypeNode(157)])}return y(i,e)}(e,t,!!r),serializeReturnTypeForSignature(e,t,n){const r=e,i=Eg(t);n??(n=ks(t));const o=r.enclosingSymbolTypes.get(eJ(n))??fS(Gg(i),r.mapper);return be(r,i,o)},serializeTypeOfExpression(e,t){const n=e;return y(fS(jw(kJ(t)),n.mapper),n)},serializeTypeOfDeclaration(e,t,n){var r;const i=e;n??(n=ks(t));let o=null==(r=i.enclosingSymbolTypes)?void 0:r.get(eJ(n));return void 0===o&&(o=98304&n.flags&&179===t.kind?fS(E_(n),i.mapper):!n||133120&n.flags?Et:fS(ZC(P_(n)),i.mapper)),t&&(TD(t)||BP(t))&&IJ(t,i.enclosingDeclaration)&&(o=pw(o)),he(n,i,o)},serializeNameOfParameter:(e,t)=>V(ks(t),t,e),serializeEntityName(e,t){const n=e,r=yJ(t,!0);if(r&&Qs(r,n.enclosingDeclaration))return ce(r,n,1160127)},serializeTypeName:(e,t,n,r)=>function(e,t,n,r){const i=n?111551:788968,o=ts(t,i,!0);if(!o)return;const a=2097152&o.flags?Ha(o):o;return 0!==tc(o,e.enclosingDeclaration,i,!1).accessibility?void 0:re(a,e,i,r)}(e,t,n,r),getJsDocPropertyOverride(e,t,r){const i=e,o=aD(r.name)?r.name:r.name.right,a=el(n(i,t),o.escapedText);return a&&r.typeExpression&&n(i,r.typeExpression.type)!==a?y(a,i):void 0},enterNewScope(e,t){if(r_(t)||CP(t)){const n=Eg(t);return L(e,t,n.parameters,n.typeParameters)}return L(e,t,void 0,XD(t)?Vx(t):[Cu(ks(t.typeParameter))])},markNodeReuse:(e,t,n)=>r(e,t,n),trackExistingEntityName:(e,t)=>xe(t,e),trackComputedName(e,t){H(t,e.enclosingDeclaration,e)},getModuleSpecifierOverride(e,t,n){const r=e;if(r.bundled||r.enclosingFile!==vd(n)){let e=n.text;const i=e,o=da(t).resolvedSymbol,a=t.isTypeOf?111551:788968,s=o&&0===tc(o,r.enclosingDeclaration,a,!1).accessibility&&G(o,r,a,!0)[0];if(s&&Qu(s))e=te(s,r);else{const n=$J(t);n&&(e=te(n.symbol,r))}if(e.includes("/node_modules/")&&(r.encounteredError=!0,r.tracker.reportLikelyUnsafeImportRequiredError&&r.tracker.reportLikelyUnsafeImportRequiredError(e)),e!==i)return e}},canReuseTypeNode:(e,t)=>Se(e,t),canReuseTypeNodeAnnotation(e,t,n,r,i){var o;const a=e;if(void 0===a.enclosingDeclaration)return!1;r??(r=ks(t));let s=null==(o=a.enclosingSymbolTypes)?void 0:o.get(eJ(r));void 0===s&&(s=98304&r.flags?179===t.kind?E_(r):x_(r):eh(t)?Gg(Eg(t)):P_(r));let c=Oc(n);return!!al(c)||(i&&c&&(c=Pl(c,!TD(t))),!!c&&function(e,t,n){return n===t||!!e&&(((wD(e)||ND(e))&&e.questionToken||!(!TD(e)||!gg(e)))&&XN(t,524288)===n)}(t,s,c)&&me(n,s))}},typeToTypeNode:(e,t,n,r,i,o,a,c)=>s(t,n,r,i,o,a,t=>y(e,t),c),typePredicateToTypePredicateNode:(e,t,n,r,i)=>s(t,n,r,i,void 0,void 0,t=>z(e,t)),serializeTypeForDeclaration:(e,t,n,r,i,o)=>s(n,r,i,o,void 0,void 0,n=>ke.serializeTypeOfDeclaration(e,t,n)),serializeReturnTypeForSignature:(e,t,n,r,i)=>s(t,n,r,i,void 0,void 0,t=>ke.serializeReturnTypeForSignature(e,ks(e),t)),serializeTypeForExpression:(e,t,n,r,i)=>s(t,n,r,i,void 0,void 0,t=>ke.serializeTypeOfExpression(e,t)),indexInfoToIndexSignatureDeclaration:(e,t,n,r,i)=>s(t,n,r,i,void 0,void 0,t=>P(e,t,void 0)),signatureToSignatureDeclaration:(e,t,n,r,i,o,a,c,l)=>s(n,r,i,o,a,c,n=>I(e,t,n),l),symbolToEntityName:(e,t,n,r,i,o)=>s(n,r,i,o,void 0,void 0,n=>se(e,n,t,!1)),symbolToExpression:(e,t,n,r,i,o)=>s(n,r,i,o,void 0,void 0,n=>ce(e,n,t)),symbolToTypeParameterDeclarations:(e,t,n,r,i)=>s(t,n,r,i,void 0,void 0,t=>Y(e,t)),symbolToParameterDeclaration:(e,t,n,r,i)=>s(t,n,r,i,void 0,void 0,t=>U(e,t)),typeParameterToDeclaration:(e,t,n,r,i,o,a,c)=>s(t,n,r,i,o,a,t=>J(e,t),c),symbolTableToDeclarationStatements:(e,t,n,r,i)=>s(t,n,r,i,void 0,void 0,t=>Te(e,t)),symbolToNode:(e,t,n,r,i,a)=>s(n,r,i,a,void 0,void 0,n=>o(e,n,t)),symbolToDeclarations:function(e,t,n,r,i,o){return B(s(void 0,n,void 0,void 0,r,i,t=>function(e,t){const n=Au(e);t.typeStack.push(n.id),t.typeStack.push(-1);const r=Te(Gu([e]),t);return t.typeStack.pop(),t.typeStack.pop(),r}(e,t),o),n=>{switch(n.kind){case 264:return function(e,t){const n=N(t.declarations,u_),r=n&&n.length>0?n[0]:e,i=-161&Bv(r);return AF(r)&&(e=mw.updateClassDeclaration(e,e.modifiers,void 0,e.typeParameters,e.heritageClauses,e.members)),mw.replaceModifiers(e,i)}(n,e);case 267:return a(n,mE,e);case 265:return function(e,t,n){if(64&n)return a(e,pE,t)}(n,e,t);case 268:return a(n,gE,e);default:return}})}};function n(e,t,n){const r=Oc(t);if(!e.mapper)return r;const i=fS(r,e.mapper);return n&&i!==r?void 0:i}function r(e,t,n){if(ey(t)&&16&t.flags&&e.enclosingFile&&e.enclosingFile===vd(_c(t))||(t=mw.cloneNode(t)),t===n)return t;if(!n)return t;let r=t.original;for(;r&&r!==n;)r=r.original;return r||hw(t,n),e.enclosingFile&&e.enclosingFile===vd(_c(n))?xI(t,n):t}function o(e,t,n){if(1&t.internalFlags){if(e.valueDeclaration){const t=Cc(e.valueDeclaration);if(t&&kD(t))return t}const r=ua(e).nameType;if(r&&9216&r.flags)return t.enclosingDeclaration=r.symbol.valueDeclaration,mw.createComputedPropertyName(ce(r.symbol,t,n))}return ce(e,t,n)}function a(e,t,n){const r=N(n.declarations,t),i=-161&Bv(r&&r.length>0?r[0]:e);return mw.replaceModifiers(e,i)}function s(t,n,r,i,o,a,s,c){const l=(null==i?void 0:i.trackSymbol)?i.moduleResolverHost:4&(r||0)?function(e){return{getCommonSourceDirectory:e.getCommonSourceDirectory?()=>e.getCommonSourceDirectory():()=>"",getCurrentDirectory:()=>e.getCurrentDirectory(),getSymlinkCache:We(e,e.getSymlinkCache),getPackageJsonInfoCache:()=>{var t;return null==(t=e.getPackageJsonInfoCache)?void 0:t.call(e)},useCaseSensitiveFileNames:()=>e.useCaseSensitiveFileNames(),redirectTargetsMap:e.redirectTargetsMap,getRedirectFromSourceFile:t=>e.getRedirectFromSourceFile(t),isSourceOfProjectReferenceRedirect:t=>e.isSourceOfProjectReferenceRedirect(t),fileExists:t=>e.fileExists(t),getFileIncludeReasons:()=>e.getFileIncludeReasons(),readFile:e.readFile?t=>e.readFile(t):void 0,getDefaultResolutionModeForFile:t=>e.getDefaultResolutionModeForFile(t),getModeForResolutionAtIndex:(t,n)=>e.getModeForResolutionAtIndex(t,n),getGlobalTypingsCacheLocation:We(e,e.getGlobalTypingsCacheLocation)}}(e):void 0;n=n||0;const _=o||(1&n?Wu:Vu),u={enclosingDeclaration:t,enclosingFile:t&&vd(t),flags:n,internalFlags:r||0,tracker:void 0,maxTruncationLength:_,maxExpansionDepth:a??-1,encounteredError:!1,suppressReportInferenceFallback:!1,reportedDiagnostic:!1,visitedTypes:void 0,symbolDepth:void 0,inferTypeParameters:void 0,approximateLength:0,trackedSymbols:void 0,bundled:!!j.outFile&&!!t&&Zp(vd(t)),truncating:!1,usedSymbolNames:void 0,remappedSymbolNames:void 0,remappedSymbolReferences:void 0,reverseMappedStack:void 0,mustCreateTypeParameterSymbolList:!0,typeParameterSymbolList:void 0,mustCreateTypeParametersNamesLookups:!0,typeParameterNames:void 0,typeParameterNamesByText:void 0,typeParameterNamesByTextNextNameCount:void 0,enclosingSymbolTypes:new Map,mapper:void 0,depth:0,typeStack:[],out:{canIncreaseExpansionDepth:!1,truncated:!1}};u.tracker=new cJ(u,i,l);const d=s(u);return u.truncating&&1&u.flags&&u.tracker.reportTruncationError(),c&&(c.canIncreaseExpansionDepth=u.out.canIncreaseExpansionDepth,c.truncated=u.out.truncated),u.encounteredError?void 0:d}function c(e,t,n){const r=eJ(t),i=e.enclosingSymbolTypes.get(r);return e.enclosingSymbolTypes.set(r,n),function(){i?e.enclosingSymbolTypes.set(r,i):e.enclosingSymbolTypes.delete(r)}}function _(e){const t=e.flags,n=e.internalFlags,r=e.depth;return function(){e.flags=t,e.internalFlags=n,e.depth=r}}function p(e){return e.maxExpansionDepth>=0&&m(e)}function m(e){return e.truncating?e.truncating:e.truncating=e.approximateLength>e.maxTruncationLength}function g(e,t){for(let n=0;n0?1048576&e.flags?mw.createUnionTypeNode(n):mw.createIntersectionTypeNode(n):void(o.encounteredError||262144&o.flags||(o.encounteredError=!0))}if(48&f)return un.assert(!!(524288&e.flags)),S(e);if(4194304&e.flags){const t=e.type;o.approximateLength+=6;const n=y(t,o);return mw.createTypeOperatorNode(143,n)}if(134217728&e.flags){const t=e.texts,n=e.types,r=mw.createTemplateHead(t[0]),i=mw.createNodeArray(E(n,(e,r)=>mw.createTemplateLiteralTypeSpan(y(e,o),(rfunction(e){const t=y(e.checkType,o);if(o.approximateLength+=15,4&o.flags&&e.root.isDistributive&&!(262144&e.checkType.flags)){const r=zs(Xo(262144,"T")),i=ae(r,o),a=mw.createTypeReferenceNode(i);o.approximateLength+=37;const s=nS(e.root.checkType,r,e.mapper),c=o.inferTypeParameters;o.inferTypeParameters=e.root.inferTypeParameters;const l=y(fS(e.root.extendsType,s),o);o.inferTypeParameters=c;const _=g(fS(n(o,e.root.node.trueType),s)),u=g(fS(n(o,e.root.node.falseType),s));return mw.createConditionalTypeNode(t,mw.createInferTypeNode(mw.createTypeParameterDeclaration(void 0,mw.cloneNode(a.typeName))),mw.createConditionalTypeNode(mw.createTypeReferenceNode(mw.cloneNode(i)),y(e.checkType,o),mw.createConditionalTypeNode(a,l,_,u),mw.createKeywordTypeNode(146)),mw.createKeywordTypeNode(146))}const r=o.inferTypeParameters;o.inferTypeParameters=e.root.inferTypeParameters;const i=y(e.extendsType,o);o.inferTypeParameters=r;const a=g(qx(e)),s=g(Ux(e));return mw.createConditionalTypeNode(t,i,a,s)}(e));if(33554432&e.flags){const t=y(e.baseType,o),n=Sy(e)&&qy("NoInfer",!1);return n?re(n,o,788968,[t]):t}return un.fail("Should be unreachable.");function g(e){var t,n,r;return 1048576&e.flags?(null==(t=o.visitedTypes)?void 0:t.has(kb(e)))?(131072&o.flags||(o.encounteredError=!0,null==(r=null==(n=o.tracker)?void 0:n.reportCyclicStructureError)||r.call(n)),x(o)):D(e,e=>y(e,o)):y(e,o)}function b(e){return!!lS(e)}function k(e){return!!e.target&&b(e.target)&&!b(e)}function S(e,t=!1,r=!1){var i,a;const s=e.id,c=e.symbol;if(c){if(8388608&gx(e)){const t=e.node;if(zD(t)&&n(o,t)===e){const e=ke.tryReuseExistingTypeNode(o,t);if(e)return e}return(null==(i=o.visitedTypes)?void 0:i.has(s))?x(o):D(e,O)}const l=Ic(e)?788968:111551;if(sL(c.valueDeclaration))return re(c,o,l);if(!r&&(32&c.flags&&!t&&!C_(c)&&(!(c.valueDeclaration&&u_(c.valueDeclaration)&&2048&o.flags)||dE(c.valueDeclaration)&&0===tc(c,o.enclosingDeclaration,l,!1).accessibility)||896&c.flags||function(){var e;const t=!!(8192&c.flags)&&$(c.declarations,e=>Dv(e)&&!sd(Cc(e))),n=!!(16&c.flags)&&(c.parent||d(c.declarations,e=>308===e.parent.kind||269===e.parent.kind));if(t||n)return(!!(4096&o.flags)||(null==(e=o.visitedTypes)?void 0:e.has(s)))&&(!(8&o.flags)||Qs(c,o.enclosingDeclaration))}())){if(!h(e,o))return re(c,o,l);o.depth+=1}if(null==(a=o.visitedTypes)?void 0:a.has(s)){const t=function(e){if(e.symbol&&2048&e.symbol.flags&&e.symbol.declarations){const t=nh(e.symbol.declarations[0].parent);if(fE(t))return ks(t)}}(e);return t?re(t,o,788968):x(o)}return D(e,O)}return O(e)}function D(e,t){var n,i,a;const s=e.id,c=16&gx(e)&&e.symbol&&32&e.symbol.flags,l=4&gx(e)&&e.node?"N"+ZB(e.node):16777216&e.flags?"N"+ZB(e.root.node):e.symbol?(c?"+":"")+eJ(e.symbol):void 0;o.visitedTypes||(o.visitedTypes=new Set),l&&!o.symbolDepth&&(o.symbolDepth=new Map);const _=o.maxExpansionDepth>=0?void 0:o.enclosingDeclaration&&da(o.enclosingDeclaration),u=`${kb(e)}|${o.flags}|${o.internalFlags}`;_&&(_.serializedTypes||(_.serializedTypes=new Map));const d=null==(n=null==_?void 0:_.serializedTypes)?void 0:n.get(u);if(d)return null==(i=d.trackedSymbols)||i.forEach(([e,t,n])=>o.tracker.trackSymbol(e,t,n)),d.truncating&&(o.truncating=!0),o.approximateLength+=d.addedLength,function e(t){return ey(t)||pc(t)!==t?r(o,mw.cloneNode(vJ(t,e,void 0,y,e)),t):t}(d.node);let p;if(l){if(p=o.symbolDepth.get(l)||0,p>10)return x(o);o.symbolDepth.set(l,p+1)}o.visitedTypes.add(s);const f=o.trackedSymbols;o.trackedSymbols=void 0;const m=o.approximateLength,g=t(e),h=o.approximateLength-m;return o.reportedDiagnostic||o.encounteredError||null==(a=null==_?void 0:_.serializedTypes)||a.set(u,{node:g,truncating:o.truncating,addedLength:h,trackedSymbols:o.trackedSymbols}),o.visitedTypes.delete(s),l&&o.symbolDepth.set(l,p),o.trackedSymbols=f,g;function y(e,t,n,r,i){return e&&0===e.length?xI(mw.createNodeArray(void 0,e.hasTrailingComma),e):_J(e,t,n,r,i)}}function O(e){if(Sp(e)||e.containsError)return function(e){var t;un.assert(!!(524288&e.flags));const r=e.declaration.readonlyToken?mw.createToken(e.declaration.readonlyToken.kind):void 0,i=e.declaration.questionToken?mw.createToken(e.declaration.questionToken.kind):void 0;let a,s,c=_p(e);const l=rp(e),_=!yp(e)&&!(2&vp(e).flags)&&4&o.flags&&!(262144&ip(e).flags&&4194304&(null==(t=Hp(ip(e)))?void 0:t.flags));if(yp(e)){if(k(e)&&4&o.flags){const t=zs(Xo(262144,"T")),n=ae(t,o),r=e.target;s=mw.createTypeReferenceNode(n),c=fS(_p(r),$k([rp(r),vp(r)],[l,t]))}a=mw.createTypeOperatorNode(143,s||y(vp(e),o))}else if(_){const e=ae(zs(Xo(262144,"T")),o);s=mw.createTypeReferenceNode(e),a=s}else a=y(ip(e),o);const u=R(l,o,a),d=L(o,e.declaration,void 0,[Cu(ks(e.declaration.typeParameter))]),p=e.declaration.nameType?y(op(e),o):void 0,f=y(kw(c,!!(4&bp(e))),o);d();const m=mw.createMappedTypeNode(r,u,p,i,f,void 0);o.approximateLength+=10;const g=xw(m,1);if(k(e)&&4&o.flags){const t=fS(Hp(n(o,e.declaration.typeParameter.constraint.type))||Ot,e.mapper);return mw.createConditionalTypeNode(y(vp(e),o),mw.createInferTypeNode(mw.createTypeParameterDeclaration(void 0,mw.cloneNode(s.typeName),2&t.flags?void 0:y(t,o))),g,mw.createKeywordTypeNode(146))}return _?mw.createConditionalTypeNode(y(ip(e),o),mw.createInferTypeNode(mw.createTypeParameterDeclaration(void 0,mw.cloneNode(s.typeName),mw.createTypeOperatorNode(143,y(vp(e),o)))),g,mw.createKeywordTypeNode(146)):g}(e);const t=Cp(e);if(!t.properties.length&&!t.indexInfos.length){if(!t.callSignatures.length&&!t.constructSignatures.length)return o.approximateLength+=2,xw(mw.createTypeLiteralNode(void 0),1);if(1===t.callSignatures.length&&!t.constructSignatures.length)return I(t.callSignatures[0],185,o);if(1===t.constructSignatures.length&&!t.callSignatures.length)return I(t.constructSignatures[0],186,o)}const r=N(t.constructSignatures,e=>!!(4&e.flags));if($(r)){const e=E(r,Dh);return t.callSignatures.length+(t.constructSignatures.length-r.length)+t.indexInfos.length+(2048&o.flags?w(t.properties,e=>!(4194304&e.flags)):u(t.properties))&&e.push(function(e){if(0===e.constructSignatures.length)return e;if(e.objectTypeWithoutAbstractConstructSignatures)return e.objectTypeWithoutAbstractConstructSignatures;const t=N(e.constructSignatures,e=>!(4&e.flags));if(e.constructSignatures===t)return e;const n=$s(e.symbol,e.members,e.callSignatures,$(t)?t:l,e.indexInfos);return e.objectTypeWithoutAbstractConstructSignatures=n,n.objectTypeWithoutAbstractConstructSignatures=n,n}(t)),y(Bb(e),o)}const i=_(o);o.flags|=4194304;const a=function(e){if(m(o))return o.out.truncated=!0,1&o.flags?[Rw(mw.createNotEmittedTypeElement(),3,"elided")]:[mw.createPropertySignature(void 0,"...",void 0,void 0)];o.typeStack.push(-1);const t=[];for(const n of e.callSignatures)t.push(I(n,180,o));for(const n of e.constructSignatures)4&n.flags||t.push(I(n,181,o));for(const n of e.indexInfos)t.push(...J(n,o,1024&e.objectFlags?x(o):void 0));const n=e.properties;if(!n)return o.typeStack.pop(),t;let r=0;for(const e of n)if(!(Ce(o)&&4194304&e.flags)){if(r++,2048&o.flags){if(4194304&e.flags)continue;6&ix(e)&&o.tracker.reportPrivateInBaseOfClassExpression&&o.tracker.reportPrivateInBaseOfClassExpression(mc(e.escapedName))}if(m(o)&&r+20){let n=0;if(e.target.typeParameters&&(n=Math.min(e.target.typeParameters.length,t.length),(J_(e,dv(!1))||J_(e,pv(!1))||J_(e,rv(!1))||J_(e,av(!1)))&&(!e.node||!RD(e.node)||!e.node.typeArguments||e.node.typeArguments.length0;){const r=t[n-1],i=yf(e.target.typeParameters[n-1]);if(!i||!SS(r,i))break;n--}i=F(t.slice(a,n),o)}const s=_(o);o.flags|=16;const c=re(e.symbol,o,788968,i);return s(),r?M(r,c):c}}if(t=A(t,(t,n)=>kw(t,!!(2&e.target.elementFlags[n]))),t.length>0){const n=dy(e),r=F(t.slice(0,n),o);if(r){const{labeledElementDeclarations:t}=e.target;for(let n=0;n{var n;return!!(e.name&&kD(e.name)&&ab(e.name.expression)&&t.enclosingDeclaration&&0===(null==(n=vc(e.name.expression,t.enclosingDeclaration,!1))?void 0:n.accessibility))})?E(N(e.components,e=>!_d(e)),i=>(H(i.name.expression,t.enclosingDeclaration,t),r(t,mw.createPropertySignature(e.isReadonly?[mw.createModifier(148)]:void 0,i.name,(wD(i)||ND(i)||DD(i)||FD(i)||Nu(i)||wu(i))&&i.questionToken?mw.createToken(58):void 0,n||y(P_(i.symbol),t)),i))):[P(e,t,n)]}}(e,o);return e&&o.typeStack.pop(),a(),s}function x(e){return e.approximateLength+=3,1&e.flags?Lw(mw.createKeywordTypeNode(133),3,"elided"):mw.createTypeReferenceNode(mw.createIdentifier("..."),void 0)}function S(e,t){var n;return!!(8192&rx(e))&&(T(t.reverseMappedStack,e)||(null==(n=t.reverseMappedStack)?void 0:n[0])&&!(16&gx(ve(t.reverseMappedStack).links.propertyType))||function(){var n;if(((null==(n=t.reverseMappedStack)?void 0:n.length)??0)<3)return!1;for(let n=0;n<3;n++)if(t.reverseMappedStack[t.reverseMappedStack.length-1-n].links.mappedType.symbol!==e.links.mappedType.symbol)return!1;return!0}())}function C(e,t,n){var r;const i=!!(8192&rx(e)),o=S(e,t)?wt:M_(e),a=t.enclosingDeclaration;if(t.enclosingDeclaration=void 0,t.tracker.canTrackSymbol&&ld(e.escapedName))if(e.declarations){const n=ge(e.declarations);if(_d(n))if(NF(n)){const e=Cc(n);e&&pF(e)&&lb(e.argumentExpression)&&H(e.argumentExpression,a,t)}else H(n.name.expression,a,t)}else t.tracker.reportNonSerializableProperty(bc(e));t.enclosingDeclaration=e.valueDeclaration||(null==(r=e.declarations)?void 0:r[0])||a;const s=ue(e,t);if(t.enclosingDeclaration=a,t.approximateLength+=yc(e).length+1,98304&e.flags){const r=E_(e);if(!al(o)&&!al(r)){const i=ua(e).mapper,a=Hu(e,173);if(o!==r||32&e.parent.flags&&!a){const r=Hu(e,178);if(r){const e=Eg(r);n.push(D(t,I(i?aS(e,i):e,178,t,{name:s}),r))}const o=Hu(e,179);if(o){const e=Eg(o);n.push(D(t,I(i?aS(e,i):e,179,t,{name:s}),o))}return}if(32&e.parent.flags&&a&&b(a.modifiers,hD)){const e=Ed(void 0,void 0,void 0,l,o,void 0,0,0);n.push(D(t,I(e,178,t,{name:s}),a));const i=Xo(1,"arg");i.links.type=r;const c=Ed(void 0,void 0,void 0,[i],ln,void 0,0,0);return void n.push(I(c,179,t,{name:s}))}}}const c=16777216&e.flags?mw.createToken(58):void 0;if(8208&e.flags&&!Dp(o).length&&!_j(e)){const r=mm(GD(o,e=>!(32768&e.flags)),0);for(const i of r){const r=I(i,174,t,{name:s,questionToken:c});n.push(p(r,i.declaration||e.valueDeclaration))}if(r.length||!c)return}let _;S(e,t)?_=x(t):(i&&(t.reverseMappedStack||(t.reverseMappedStack=[]),t.reverseMappedStack.push(e)),_=o?ye(t,void 0,o,e):mw.createKeywordTypeNode(133),i&&t.reverseMappedStack.pop());const u=_j(e)?[mw.createToken(148)]:void 0;u&&(t.approximateLength+=9);const d=mw.createPropertySignature(u,s,c,_);function p(n,r){var i;const o=null==(i=e.declarations)?void 0:i.find(e=>349===e.kind);if(o){const e=ll(o.comment);e&&Ow(n,[{kind:3,text:"*\n * "+e.replace(/\n/g,"\n * ")+"\n ",pos:-1,end:-1,hasTrailingNewLine:!0}])}else r&&D(t,n,r);return n}n.push(p(d,e.valueDeclaration))}function D(e,t,n){return e.enclosingFile&&e.enclosingFile===vd(n)?Aw(t,n):t}function F(e,t,n){if($(e)){if(m(t)){if(t.out.truncated=!0,!n)return[1&t.flags?Lw(mw.createKeywordTypeNode(133),3,"elided"):mw.createTypeReferenceNode("...",void 0)];if(e.length>2)return[y(e[0],t),1&t.flags?Lw(mw.createKeywordTypeNode(133),3,`... ${e.length-2} more elided ...`):mw.createTypeReferenceNode(`... ${e.length-2} more ...`,void 0),y(e[e.length-1],t)]}const r=64&t.flags?void 0:$e(),i=[];let o=0;for(const n of e){if(o++,m(t)&&o+2{if(!kT(e,([e],[t])=>function(e,t){return e===t||!!e.symbol&&e.symbol===t.symbol||!!e.aliasSymbol&&e.aliasSymbol===t.aliasSymbol}(e,t)))for(const[n,r]of e)i[r]=y(n,t)}),e()}return i}}function P(e,t,n){const r=Ip(e)||"x",i=y(e.keyType,t),o=mw.createParameterDeclaration(void 0,void 0,r,void 0,i,void 0);return n||(n=y(e.type||wt,t)),e.type||2097152&t.flags||(t.encounteredError=!0),t.approximateLength+=r.length+4,mw.createIndexSignature(e.isReadonly?[mw.createToken(148)]:void 0,[o],n)}function I(e,t,r,i){var o;let a,s;const l=Od(e,!0)[0],u=L(r,e.declaration,l,e.typeParameters,e.parameters,e.mapper);r.approximateLength+=3,32&r.flags&&e.target&&e.mapper&&e.target.typeParameters?s=e.target.typeParameters.map(t=>y(fS(t,e.mapper),r)):a=e.typeParameters&&e.typeParameters.map(e=>J(e,r));const d=_(r);r.flags&=-257;const p=($(l,e=>e!==l[l.length-1]&&!!(32768&rx(e)))?e.parameters:l).map(e=>U(e,r,177===t)),f=33554432&r.flags?void 0:function(e,t){if(e.thisParameter)return U(e.thisParameter,t);if(e.declaration&&Em(e.declaration)){const r=Qc(e.declaration);if(r&&r.typeExpression)return mw.createParameterDeclaration(void 0,void 0,"this",void 0,y(n(t,r.typeExpression),t))}}(e,r);f&&p.unshift(f),d();const m=function(e,t){const n=256&e.flags,r=_(e);let i;n&&(e.flags&=-257);const o=Gg(t);if(!n||!il(o)){if(t.declaration&&!ey(t.declaration)&&!g(o,e)){const n=ks(t.declaration),r=c(e,n,o);i=ke.serializeReturnTypeForSignature(t.declaration,n,e),r()}i||(i=be(e,t,o))}return i||n||(i=mw.createKeywordTypeNode(133)),r(),i}(r,e);let h=null==i?void 0:i.modifiers;if(186===t&&4&e.flags){const e=$v(h);h=mw.createModifiersFromModifierFlags(64|e)}const v=180===t?mw.createCallSignature(a,p,m):181===t?mw.createConstructSignature(a,p,m):174===t?mw.createMethodSignature(h,(null==i?void 0:i.name)??mw.createIdentifier(""),null==i?void 0:i.questionToken,a,p,m):175===t?mw.createMethodDeclaration(h,void 0,(null==i?void 0:i.name)??mw.createIdentifier(""),void 0,a,p,m,void 0):177===t?mw.createConstructorDeclaration(h,p,void 0):178===t?mw.createGetAccessorDeclaration(h,(null==i?void 0:i.name)??mw.createIdentifier(""),p,m,void 0):179===t?mw.createSetAccessorDeclaration(h,(null==i?void 0:i.name)??mw.createIdentifier(""),p,void 0):182===t?mw.createIndexSignature(h,p,m):318===t?mw.createJSDocFunctionType(p,m):185===t?mw.createFunctionTypeNode(a,p,m??mw.createTypeReferenceNode(mw.createIdentifier(""))):186===t?mw.createConstructorTypeNode(h,a,p,m??mw.createTypeReferenceNode(mw.createIdentifier(""))):263===t?mw.createFunctionDeclaration(h,void 0,(null==i?void 0:i.name)?nt(i.name,aD):mw.createIdentifier(""),a,p,m,void 0):219===t?mw.createFunctionExpression(h,void 0,(null==i?void 0:i.name)?nt(i.name,aD):mw.createIdentifier(""),a,p,m,mw.createBlock([])):220===t?mw.createArrowFunction(h,a,p,m,void 0,mw.createBlock([])):un.assertNever(t);return s&&(v.typeArguments=mw.createNodeArray(s)),324===(null==(o=e.declaration)?void 0:o.kind)&&340===e.declaration.parent.kind&&Lw(v,3,Xd(e.declaration.parent.parent,!0).slice(2,-2).split(/\r\n|\n|\r/).map(e=>e.replace(/^\s+/," ")).join("\n"),!0),null==u||u(),v}function L(e,t,n,r,i,o){const a=pe(e);let s,c;const _=e.enclosingDeclaration,u=e.mapper;if(o&&(e.mapper=o),e.enclosingDeclaration&&t){let t=function(t,n){let r;un.assert(e.enclosingDeclaration),da(e.enclosingDeclaration).fakeScopeForSignatureDeclaration===t?r=e.enclosingDeclaration:e.enclosingDeclaration.parent&&da(e.enclosingDeclaration.parent).fakeScopeForSignatureDeclaration===t&&(r=e.enclosingDeclaration.parent),un.assertOptionalNode(r,VF);const i=(null==r?void 0:r.locals)??Gu();let o,a;if(n((e,t)=>{if(r){const t=i.get(e);t?a=ie(a,{name:e,oldSymbol:t}):o=ie(o,e)}i.set(e,t)}),r)return function(){d(o,e=>i.delete(e)),d(a,e=>i.set(e.name,e.oldSymbol))};{const n=mw.createBlock(l);da(n).fakeScopeForSignatureDeclaration=t,n.locals=i,DT(n,e.enclosingDeclaration),e.enclosingDeclaration=n}};s=$(n)?t("params",e=>{if(n)for(let t=0;tTD(t)&&k_(t.name)?(function t(n){d(n.elements,n=>{switch(n.kind){case 233:return;case 209:return function(n){if(k_(n.name))return t(n.name);const r=ks(n);e(r.escapedName,r)}(n);default:return un.assertNever(n)}})}(t.name),!0):void 0)||e(r.escapedName,r)}}):void 0,4&e.flags&&$(r)&&(c=t("typeParams",t=>{for(const n of r??l)t(ae(n,e).escapedText,n.symbol)}))}return()=>{null==s||s(),null==c||c(),a(),e.enclosingDeclaration=_,e.mapper=u}}function R(e,t,n){const r=_(t);t.flags&=-513;const i=mw.createModifiersFromModifierFlags(rC(e)),o=ae(e,t),a=yf(e),s=a&&y(a,t);return r(),mw.createTypeParameterDeclaration(i,o,n,s)}function J(e,t,r=Hp(e)){const i=r&&function(e,t,r){return!g(e,r)&&t&&n(r,t)===e&&ke.tryReuseExistingTypeNode(r,t)||y(e,r)}(r,$h(e),t);return R(e,t,i)}function z(e,t){const n=2===e.kind||3===e.kind?mw.createToken(131):void 0,r=1===e.kind||3===e.kind?xw(mw.createIdentifier(e.parameterName),16777216):mw.createThisTypeNode(),i=e.type&&y(e.type,t);return mw.createTypePredicateNode(n,r,i)}function q(e){return Hu(e,170)||(Xu(e)?void 0:Hu(e,342))}function U(e,t,n){const r=q(e),i=ye(t,r,P_(e),e),o=!(8192&t.flags)&&n&&r&&kI(r)?E(Dc(r),mw.cloneNode):void 0,a=r&&Bu(r)||32768&rx(e)?mw.createToken(26):void 0,s=V(e,r,t),c=r&&vg(r)||16384&rx(e)?mw.createToken(58):void 0,l=mw.createParameterDeclaration(o,a,s,c,i,void 0);return t.approximateLength+=yc(e).length+3,l}function V(e,t,n){return t&&t.name?80===t.name.kind?xw(mw.cloneNode(t.name),16777216):167===t.name.kind?xw(mw.cloneNode(t.name.right),16777216):function e(t){n.tracker.canTrackSymbol&&kD(t)&&nd(t)&&H(t.expression,n.enclosingDeclaration,n);let r=vJ(t,e,void 0,void 0,e);return lF(r)&&(r=mw.updateBindingElement(r,r.dotDotDotToken,r.propertyName,r.name,void 0)),ey(r)||(r=mw.cloneNode(r)),xw(r,16777217)}(t.name):yc(e)}function H(e,t,n){if(!n.tracker.canTrackSymbol)return;const r=sb(e),i=Ue(t,r.escapedText,1160127,void 0,!0);if(i)n.tracker.trackSymbol(i,t,111551);else{const e=Ue(r,r.escapedText,1160127,void 0,!0);e&&n.tracker.trackSymbol(e,t,111551)}}function G(e,t,n,r){return t.tracker.trackSymbol(e,t.enclosingDeclaration,n),Q(e,t,n,r)}function Q(e,t,n,r){let i;return 262144&e.flags||!(t.enclosingDeclaration||64&t.flags)||4&t.internalFlags?i=[e]:(i=un.checkDefined(function e(n,i,o){let a,s=Gs(n,t.enclosingDeclaration,i,!!(128&t.flags));if(!s||Xs(s[0],t.enclosingDeclaration,1===s.length?i:Ks(i))){const r=Ns(s?s[0]:n,t.enclosingDeclaration,i);if(u(r)){a=r.map(e=>$(e.declarations,cc)?te(e,t):void 0);const o=r.map((e,t)=>t);o.sort(function(e,t){const n=a[e],r=a[t];if(n&&r){const e=vo(r);return vo(n)===e?yB(n)-yB(r):e?-1:1}return 0});const c=o.map(e=>r[e]);for(const t of c){const r=e(t,Ks(i),!1);if(r){if(t.exports&&t.exports.get("export=")&&Is(t.exports.get("export="),n)){s=r;break}s=r.concat(s||[Es(t,n)||n]);break}}}}if(s)return s;if(o||!(6144&n.flags)){if(!o&&!r&&d(n.declarations,cc))return;return[n]}}(e,n,!0)),un.assert(i&&i.length>0)),i}function Y(e,t){let n;return 524384&uB(e).flags&&(n=mw.createNodeArray(E(Z_(e),e=>J(e,t)))),n}function Z(e,t,n){var r;un.assert(e&&0<=t&&tVk(e,o.links.mapper)),n)}else a=Y(i,n)}return a}function ee(e){return tF(e.objectType)?ee(e.objectType):e}function te(t,n,r){let i=Hu(t,308);if(!i){const e=f(t.declarations,e=>Ds(e,t));e&&(i=Hu(e,308))}if(i&&void 0!==i.moduleName)return i.moduleName;if(!i&&BB.test(t.escapedName))return t.escapedName.substring(1,t.escapedName.length-1);if(!n.enclosingFile||!n.tracker.moduleResolverHost)return BB.test(t.escapedName)?t.escapedName.substring(1,t.escapedName.length-1):vd(gp(t)).fileName;const o=_c(n.enclosingDeclaration),a=hg(o)?yg(o):void 0,s=n.enclosingFile,c=r||a&&e.getModeForUsageLocation(s,a)||s&&e.getDefaultResolutionModeForFile(s),l=NM(s.path,c),_=ua(t);let u=_.specifierCache&&_.specifierCache.get(l);if(!u){const e=!!j.outFile,{moduleResolverHost:i}=n.tracker,o=e?{...j,baseUrl:i.getCommonSourceDirectory()}:j;u=ge(dB(t,He,o,s,i,{importModuleSpecifierPreference:e?"non-relative":"project-relative",importModuleSpecifierEnding:e?"minimal":99===c?"js":void 0},{overrideImportMode:r})),_.specifierCache??(_.specifierCache=new Map),_.specifierCache.set(l,u)}return u}function ne(e){const t=mw.createIdentifier(mc(e.escapedName));return e.parent?mw.createQualifiedName(ne(e.parent),t):t}function re(e,t,n,r){const i=G(e,t,n,!(16384&t.flags)),o=111551===n;if($(i[0].declarations,cc)){const e=i.length>1?s(i,i.length-1,1):void 0,n=r||Z(i,0,t),a=vd(_c(t.enclosingDeclaration)),c=bd(i[0]);let l,_;if(3!==bk(j)&&99!==bk(j)||99===(null==c?void 0:c.impliedNodeFormat)&&c.impliedNodeFormat!==(null==a?void 0:a.impliedNodeFormat)&&(l=te(i[0],t,99),_=mw.createImportAttributes(mw.createNodeArray([mw.createImportAttribute(mw.createStringLiteral("resolution-mode"),mw.createStringLiteral("import"))]))),l||(l=te(i[0],t)),!(67108864&t.flags)&&1!==bk(j)&&l.includes("/node_modules/")){const e=l;if(3===bk(j)||99===bk(j)){const n=99===(null==a?void 0:a.impliedNodeFormat)?1:99;l=te(i[0],t,n),l.includes("/node_modules/")?l=e:_=mw.createImportAttributes(mw.createNodeArray([mw.createImportAttribute(mw.createStringLiteral("resolution-mode"),mw.createStringLiteral(99===n?"import":"require"))]))}_||(t.encounteredError=!0,t.tracker.reportLikelyUnsafeImportRequiredError&&t.tracker.reportLikelyUnsafeImportRequiredError(e))}const u=mw.createLiteralTypeNode(mw.createStringLiteral(l));if(t.approximateLength+=l.length+10,!e||e_(e))return e&&Yw(aD(e)?e:e.right,void 0),mw.createImportTypeNode(u,_,e,n,o);{const t=ee(e),r=t.objectType.typeName;return mw.createIndexedAccessTypeNode(mw.createImportTypeNode(u,_,r,n,o),t.indexType)}}const a=s(i,i.length-1,0);if(tF(a))return a;if(o)return mw.createTypeQueryNode(a);{const e=aD(a)?a:a.right,t=Zw(e);return Yw(e,void 0),mw.createTypeReferenceNode(a,t)}function s(e,n,i){const o=n===e.length-1?r:Z(e,n,t),a=e[n],c=e[n-1];let l;if(0===n?(t.flags|=16777216,l=Uc(a,t),t.approximateLength+=(l?l.length:0)+1,t.flags^=16777216):c&&hs(c)&&rd(hs(c),(e,t)=>{if(Is(e,a)&&!ld(t)&&"export="!==t)return l=mc(t),!0}),void 0===l){const r=f(a.declarations,Cc);if(r&&kD(r)&&e_(r.expression)){const t=s(e,n-1,i);return e_(t)?mw.createIndexedAccessTypeNode(mw.createParenthesizedType(mw.createTypeQueryNode(t)),mw.createTypeQueryNode(r.expression)):t}l=Uc(a,t)}if(t.approximateLength+=l.length+1,!(16&t.flags)&&c&&Td(c)&&Td(c).get(a.escapedName)&&Is(Td(c).get(a.escapedName),a)){const t=s(e,n-1,i);return tF(t)?mw.createIndexedAccessTypeNode(t,mw.createLiteralTypeNode(mw.createStringLiteral(l))):mw.createIndexedAccessTypeNode(mw.createTypeReferenceNode(t,o),mw.createLiteralTypeNode(mw.createStringLiteral(l)))}const _=xw(mw.createIdentifier(l),16777216);if(o&&Yw(_,mw.createNodeArray(o)),_.symbol=a,n>i){const t=s(e,n-1,i);return e_(t)?mw.createQualifiedName(t,_):un.fail("Impossible construct - an export of an indexed access cannot be reachable")}return _}}function oe(e,t,n){const r=Ue(t.enclosingDeclaration,e,788968,void 0,!1);return!!(r&&262144&r.flags)&&r!==n.symbol}function ae(e,t){var n,i,o,a;if(4&t.flags&&t.typeParameterNames){const n=t.typeParameterNames.get(kb(e));if(n)return n}let s=se(e.symbol,t,788968,!0);if(!(80&s.kind))return mw.createIdentifier("(Missing type parameter)");const c=null==(i=null==(n=e.symbol)?void 0:n.declarations)?void 0:i[0];if(c&&SD(c)&&(s=r(t,s,c.name)),4&t.flags){const n=s.escapedText;let r=(null==(o=t.typeParameterNamesByTextNextNameCount)?void 0:o.get(n))||0,i=n;for(;(null==(a=t.typeParameterNamesByText)?void 0:a.has(i))||oe(i,t,e);)r++,i=`${n}_${r}`;if(i!==n){const e=Zw(s);s=mw.createIdentifier(i),Yw(s,e)}t.mustCreateTypeParametersNamesLookups&&(t.mustCreateTypeParametersNamesLookups=!1,t.typeParameterNames=new Map(t.typeParameterNames),t.typeParameterNamesByTextNextNameCount=new Map(t.typeParameterNamesByTextNextNameCount),t.typeParameterNamesByText=new Set(t.typeParameterNamesByText)),t.typeParameterNamesByTextNextNameCount.set(n,r),t.typeParameterNames.set(kb(e),s),t.typeParameterNamesByText.add(i)}return s}function se(e,t,n,r){const i=G(e,t,n);return!r||1===i.length||t.encounteredError||65536&t.flags||(t.encounteredError=!0),function e(n,r){const i=Z(n,r,t),o=n[r];0===r&&(t.flags|=16777216);const a=Uc(o,t);0===r&&(t.flags^=16777216);const s=xw(mw.createIdentifier(a),16777216);return i&&Yw(s,mw.createNodeArray(i)),s.symbol=o,r>0?mw.createQualifiedName(e(n,r-1),s):s}(i,i.length-1)}function ce(e,t,n){const r=G(e,t,n);return function e(n,r){const i=Z(n,r,t),o=n[r];0===r&&(t.flags|=16777216);let a=Uc(o,t);0===r&&(t.flags^=16777216);let s=a.charCodeAt(0);if(zm(s)&&$(o.declarations,cc)){const e=te(o,t);return t.approximateLength+=2+e.length,mw.createStringLiteral(e)}if(0===r||HT(a,M)){const s=xw(mw.createIdentifier(a),16777216);return i&&Yw(s,mw.createNodeArray(i)),s.symbol=o,t.approximateLength+=1+a.length,r>0?mw.createPropertyAccessExpression(e(n,r-1),s):s}{let c;if(91===s&&(a=a.substring(1,a.length-1),s=a.charCodeAt(0)),!zm(s)||8&o.flags)""+ +a===a&&(t.approximateLength+=a.length,c=mw.createNumericLiteral(+a));else{const e=Fy(a).replace(/\\./g,e=>e.substring(1));t.approximateLength+=e.length+2,c=mw.createStringLiteral(e,39===s)}if(!c){const e=xw(mw.createIdentifier(a),16777216);i&&Yw(e,mw.createNodeArray(i)),e.symbol=o,t.approximateLength+=a.length,c=e}return t.approximateLength+=2,mw.createElementAccessExpression(e(n,r-1),c)}}(r,r.length-1)}function le(e){const t=Cc(e);return!!t&&(kD(t)?!!(402653316&eM(t.expression).flags):pF(t)?!!(402653316&eM(t.argumentExpression).flags):UN(t))}function _e(e){const t=Cc(e);return!!(t&&UN(t)&&(t.singleQuote||!ey(t)&&Gt(Xd(t,!1),"'")))}function ue(e,t){const n=function(e){if(e.valueDeclaration&&Sc(e.valueDeclaration)&&sD(e.valueDeclaration.name))return mw.cloneNode(e.valueDeclaration.name)}(e);if(n)return n;const r=!!u(e.declarations)&&v(e.declarations,le),i=!!u(e.declarations)&&v(e.declarations,_e),o=!!(8192&e.flags),a=function(e,t,n,r,i){const o=ua(e).nameType;if(o){if(384&o.flags){const e=""+o.value;return ms(e,yk(j))||!r&&JT(e)?JT(e)&&Gt(e,"-")?mw.createComputedPropertyName(mw.createPrefixUnaryExpression(41,mw.createNumericLiteral(-e))):zT(e,yk(j),n,r,i):mw.createStringLiteral(e,!!n)}if(8192&o.flags)return mw.createComputedPropertyName(ce(o.symbol,t,111551))}}(e,t,i,r,o);return a||zT(mc(e.escapedName),yk(j),i,r,o)}function pe(e){const t=e.mustCreateTypeParameterSymbolList,n=e.mustCreateTypeParametersNamesLookups;e.mustCreateTypeParameterSymbolList=!0,e.mustCreateTypeParametersNamesLookups=!0;const r=e.typeParameterNames,i=e.typeParameterNamesByText,o=e.typeParameterNamesByTextNextNameCount,a=e.typeParameterSymbolList;return()=>{e.typeParameterNames=r,e.typeParameterNamesByText=i,e.typeParameterNamesByTextNextNameCount=o,e.typeParameterSymbolList=a,e.mustCreateTypeParameterSymbolList=t,e.mustCreateTypeParametersNamesLookups=n}}function fe(e,t){return e.declarations&&b(e.declarations,e=>!(!WJ(e)||t&&!uc(e,e=>e===t)))}function me(e,t){if(!(4&gx(t)))return!0;if(!RD(e))return!0;jy(e);const n=da(e).resolvedSymbol,r=n&&Au(n);return!r||r!==t.target||u(e.typeArguments)>=Tg(t.target.typeParameters)}function he(e,t,n){return 8192&n.flags&&n.symbol===e&&(!t.enclosingDeclaration||$(e.declarations,e=>vd(e)===t.enclosingFile))&&(t.flags|=1048576),y(n,t)}function ye(e,t,n,r){var i;let o;const a=t&&(TD(t)||BP(t))&&IJ(t,e.enclosingDeclaration),s=t??r.valueDeclaration??fe(r)??(null==(i=r.declarations)?void 0:i[0]);if(!g(n,e)&&s){const t=c(e,r,n);d_(s)?o=ke.serializeTypeOfAccessor(s,r,e):!kC(s)||ey(s)||196608&gx(n)||(o=ke.serializeTypeOfDeclaration(s,r,e)),t()}return o||(a&&(n=pw(n)),o=he(r,e,n)),o??mw.createKeywordTypeNode(133)}function be(e,t,n){const r=e.suppressReportInferenceFallback;e.suppressReportInferenceFallback=!0;const i=Hg(t),o=i?z(e.mapper?oS(i,e.mapper):i,e):y(n,e);return e.suppressReportInferenceFallback=r,o}function xe(e,t,n=t.enclosingDeclaration){let i=!1;const o=sb(e);if(Em(e)&&(Ym(o)||eg(o.parent)||xD(o.parent)&&Zm(o.parent.left)&&Ym(o.parent.right)))return i=!0,{introducesError:i,node:e};const a=dc(e);let s;if(lv(o))return s=ks(em(o,!1,!1)),0!==tc(s,o,a,!1).accessibility&&(i=!0,t.tracker.reportInaccessibleThisError()),{introducesError:i,node:c(e)};if(s=ts(o,a,!0,!0),t.enclosingDeclaration&&!(s&&262144&s.flags)){s=Os(s);const n=ts(o,a,!0,!0,t.enclosingDeclaration);if(n===xt||void 0===n&&void 0!==s||n&&s&&!Is(Os(n),s))return n!==xt&&t.tracker.reportInferenceFallback(e),i=!0,{introducesError:i,node:e,sym:s};s=n}return s?(1&s.flags&&s.valueDeclaration&&(Qh(s.valueDeclaration)||BP(s.valueDeclaration))||(262144&s.flags||lh(e)||0===tc(s,n,a,!1).accessibility?t.tracker.trackSymbol(s,n,a):(t.tracker.reportInferenceFallback(e),i=!0)),{introducesError:i,node:c(e)}):{introducesError:i,node:e};function c(e){if(e===o){const n=Au(s),i=262144&s.flags?ae(n,t):mw.cloneNode(e);return i.symbol=s,r(t,xw(i,16777216),e)}const n=vJ(e,e=>c(e),void 0);return r(t,n,e)}}function Se(e,t){const r=n(e,t,!0);if(!r)return!1;if(Em(t)&&df(t)){Hx(t);const e=da(t).resolvedSymbol;return!e||!!((t.isTypeOf||788968&e.flags)&&u(t.typeArguments)>=Tg(Z_(e)))}if(RD(t)){if(kl(t))return!1;const n=da(t).resolvedSymbol;if(!n)return!1;if(262144&n.flags){const t=Au(n);return!(e.mapper&&Vk(t,e.mapper)!==t)}if(Im(t))return me(t,r)&&!Iy(t)&&!!(788968&n.flags)}if(eF(t)&&158===t.operator&&155===t.type.kind){const n=e.enclosingDeclaration&&function(e){for(;da(e).fakeScopeForSignatureDeclaration;)e=e.parent;return e}(e.enclosingDeclaration);return!!uc(t,e=>e===n)}return!0}function Te(e,t){var i;const a=_e(mw.createPropertyDeclaration,175,!0),s=_e((e,t,n,r)=>mw.createPropertySignature(e,t,n,r),174,!1),c=t.enclosingDeclaration;let m=[];const g=new Set,h=[],x=t;t={...x,usedSymbolNames:new Set(x.usedSymbolNames),remappedSymbolNames:new Map,remappedSymbolReferences:new Map(null==(i=x.remappedSymbolReferences)?void 0:i.entries()),tracker:void 0};const S={...x.tracker.inner,trackSymbol:(e,n,r)=>{var i,o;if(null==(i=t.remappedSymbolNames)?void 0:i.has(eJ(e)))return!1;if(0===tc(e,n,r,!1).accessibility){const n=Q(e,t,r);if(!(4&e.flags)){const e=n[0],t=vd(x.enclosingDeclaration);$(e.declarations,e=>vd(e)===t)&&z(e)}}else if(null==(o=x.tracker.inner)?void 0:o.trackSymbol)return x.tracker.inner.trackSymbol(e,n,r);return!1}};t.tracker=new cJ(t,S,x.tracker.moduleResolverHost),rd(e,(e,t)=>{Ne(e,mc(t))});let T=!t.bundled;const C=e.get("export=");return C&&e.size>1&&2098688&C.flags&&(e=Gu()).set("export=",C),L(e),w=function(e){const t=k(e,e=>IE(e)&&!e.moduleSpecifier&&!e.attributes&&!!e.exportClause&&OE(e.exportClause));if(t>=0){const n=e[t],r=B(n.exportClause.elements,t=>{if(!t.propertyName&&11!==t.name.kind){const n=t.name,r=N(X(e),t=>xc(e[t],n));if(u(r)&&v(r,t=>WT(e[t]))){for(const t of r)e[t]=F(e[t]);return}}return t});u(r)?e[t]=mw.updateExportDeclaration(n,n.modifiers,n.isTypeOnly,mw.updateNamedExports(n.exportClause,r),n.moduleSpecifier,n.attributes):qt(e,t)}return e}(w=function(e){const t=N(e,e=>IE(e)&&!e.moduleSpecifier&&!!e.exportClause&&OE(e.exportClause));u(t)>1&&(e=[...N(e,e=>!IE(e)||!!e.moduleSpecifier||!e.exportClause),mw.createExportDeclaration(void 0,!1,mw.createNamedExports(O(t,e=>nt(e.exportClause,OE).elements)),void 0)]);const n=N(e,e=>IE(e)&&!!e.moduleSpecifier&&!!e.exportClause&&OE(e.exportClause));if(u(n)>1){const t=Je(n,e=>UN(e.moduleSpecifier)?">"+e.moduleSpecifier.text:">");if(t.length!==n.length)for(const n of t)n.length>1&&(e=[...N(e,e=>!n.includes(e)),mw.createExportDeclaration(void 0,!1,mw.createNamedExports(O(n,e=>nt(e.exportClause,OE).elements)),n[0].moduleSpecifier)])}return e}(w=function(e){const t=b(e,AE),n=k(e,gE);let r=-1!==n?e[n]:void 0;if(r&&t&&t.isExportEquals&&aD(t.expression)&&aD(r.name)&&gc(r.name)===gc(t.expression)&&r.body&&hE(r.body)){const i=N(e,e=>!!(32&Bv(e))),o=r.name;let a=r.body;if(u(i)&&(r=mw.updateModuleDeclaration(r,r.modifiers,r.name,a=mw.updateModuleBlock(a,mw.createNodeArray([...r.body.statements,mw.createExportDeclaration(void 0,!1,mw.createNamedExports(E(O(i,e=>{return WF(t=e)?N(E(t.declarationList.declarations,Cc),D):N([Cc(t)],D);var t}),e=>mw.createExportSpecifier(!1,void 0,e))),void 0)]))),e=[...e.slice(0,n),r,...e.slice(n+1)]),!b(e,e=>e!==r&&xc(e,o))){m=[];const n=!$(a.statements,e=>Nv(e,32)||AE(e)||IE(e));d(a.statements,e=>{U(e,n?32:0)}),e=[...N(e,e=>e!==r&&e!==t),...m]}}return e}(w=m))),c&&(sP(c)&&Zp(c)||gE(c))&&(!$(w,X_)||!K_(w)&&$(w,G_))&&w.push(iA(mw)),w;var w;function D(e){return!!e&&80===e.kind}function F(e){const t=-129&Bv(e)|32;return mw.replaceModifiers(e,t)}function A(e){const t=-33&Bv(e);return mw.replaceModifiers(e,t)}function L(e,n,r){n||h.push(new Map);let i=0;const o=Array.from(e.values());for(const n of o){if(i++,p(t)&&i+2{j(e,!0,!!r)}),h.pop())}function j(e,n,r){Up(P_(e));const i=xs(e);if(!g.has(eJ(i))&&(g.add(eJ(i)),!n||u(e.declarations)&&$(e.declarations,e=>!!uc(e,e=>e===c)))){const i=pe(t);t.tracker.pushErrorFallbackNode(b(e.declarations,e=>vd(e)===t.enclosingFile)),R(e,n,r),t.tracker.popErrorFallbackNode(),i()}}function R(e,i,a,s=e.escapedName){var c,f,m,g,h,x,k;const S=mc(s),T="default"===s;if(i&&!(131072&t.flags)&&Eh(S)&&!T)return void(t.encounteredError=!0);let C=T&&!!(-113&e.flags||16&e.flags&&u(Up(P_(e))))&&!(2097152&e.flags),w=!C&&!i&&Eh(S)&&!T;(C||w)&&(i=!0);const D=(i?0:32)|(T&&!C?2048:0),F=1536&e.flags&&7&e.flags&&"export="!==s,P=F&&le(P_(e),e);if((8208&e.flags||P)&&Y(P_(e),e,Ne(e,S),D),524288&e.flags&&function(e,n,r){var i;const o=gu(e),a=E(ua(e).typeParameters,e=>J(e,t)),s=null==(i=e.declarations)?void 0:i.find(Dg),c=ll(s?s.comment||s.parent.comment:void 0),l=_(t);t.flags|=8388608;const u=t.enclosingDeclaration;t.enclosingDeclaration=s;const d=s&&s.typeExpression&&lP(s.typeExpression)&&ke.tryReuseExistingTypeNode(t,s.typeExpression.type)||y(o,t),p=Ne(e,n);t.approximateLength+=8+((null==c?void 0:c.length)??0)+p.length,U(Ow(mw.createTypeAliasDeclaration(void 0,p,a,d),c?[{kind:3,text:"*\n * "+c.replace(/\n/g,"\n * ")+"\n ",pos:-1,end:-1,hasTrailingNewLine:!0}]:[]),r),l(),t.enclosingDeclaration=u}(e,S,D),98311&e.flags&&"export="!==s&&!(4194304&e.flags)&&!(32&e.flags)&&!(8192&e.flags)&&!P)if(a)ae(e)&&(w=!1,C=!1);else{const n=P_(e),o=Ne(e,S);if(n.symbol&&n.symbol!==e&&16&n.symbol.flags&&$(n.symbol.declarations,RT)&&((null==(c=n.symbol.members)?void 0:c.size)||(null==(f=n.symbol.exports)?void 0:f.size)))t.remappedSymbolReferences||(t.remappedSymbolReferences=new Map),t.remappedSymbolReferences.set(eJ(n.symbol),e),R(n.symbol,i,a,s),t.remappedSymbolReferences.delete(eJ(n.symbol));else if(16&e.flags||!le(n,e)){const a=2&e.flags?TE(e)?2:1:(null==(m=e.parent)?void 0:m.valueDeclaration)&&sP(null==(g=e.parent)?void 0:g.valueDeclaration)?2:void 0,s=!C&&4&e.flags?Se(o,e):o;let c=e.declarations&&b(e.declarations,e=>lE(e));c&&_E(c.parent)&&1===c.parent.declarations.length&&(c=c.parent.parent);const l=null==(h=e.declarations)?void 0:h.find(dF);if(l&&NF(l.parent)&&aD(l.parent.right)&&(null==(x=n.symbol)?void 0:x.valueDeclaration)&&sP(n.symbol.valueDeclaration)){const e=o===l.parent.right.escapedText?void 0:l.parent.right;t.approximateLength+=12+((null==(k=null==e?void 0:e.escapedText)?void 0:k.length)??0),U(mw.createExportDeclaration(void 0,!1,mw.createNamedExports([mw.createExportSpecifier(!1,e,o)])),0),t.tracker.trackSymbol(n.symbol,t.enclosingDeclaration,111551)}else{const l=r(t,mw.createVariableStatement(void 0,mw.createVariableDeclarationList([mw.createVariableDeclaration(s,void 0,ye(t,void 0,n,e))],a)),c);t.approximateLength+=7+s.length,U(l,s!==o?-33&D:D),s===o||i||(t.approximateLength+=16+s.length+o.length,U(mw.createExportDeclaration(void 0,!1,mw.createNamedExports([mw.createExportSpecifier(!1,s,o)])),0),w=!1,C=!1)}}else Y(n,e,o,D)}if(384&e.flags&&function(e,n,r){const i=Ne(e,n);t.approximateLength+=9+i.length;const o=[],a=N(Up(P_(e)),e=>!!(8&e.flags));let s=0;for(const e of a){if(s++,p(t)&&s+2J(e,t));d(p,e=>t.approximateLength+=yc(e.symbol).length);const m=wd(mu(e)),g=uu(m),h=c&&bh(c),v=h&&function(e){const r=B(e,e=>{const r=t.enclosingDeclaration;t.enclosingDeclaration=e;let i=e.expression;if(ab(i)){if(aD(i)&&""===gc(i))return o(void 0);let e;if(({introducesError:e,node:i}=xe(i,t)),e)return o(void 0)}return o(mw.createExpressionWithTypeArguments(i,E(e.typeArguments,e=>ke.tryReuseExistingTypeNode(t,e)||y(n(t,e),t))));function o(e){return t.enclosingDeclaration=r,e}});if(r.length===e.length)return r}(h)||B(function(e){let t=l;if(e.symbol.declarations)for(const n of e.symbol.declarations){const e=bh(n);if(e)for(const n of e){const e=Pk(n);al(e)||(t===l?t=[e]:t.push(e))}}return t}(m),be),b=P_(e),x=!!(null==(s=b.symbol)?void 0:s.valueDeclaration)&&u_(b.symbol.valueDeclaration),k=x?cu(b):wt;t.approximateLength+=(u(g)?8:0)+(u(v)?11:0);const S=[...u(g)?[mw.createHeritageClause(96,E(g,e=>function(e,n,r){const i=ve(e,111551);if(i)return i;const o=Se(`${r}_base`);return U(mw.createVariableStatement(void 0,mw.createVariableDeclarationList([mw.createVariableDeclaration(o,void 0,y(n,t))],2)),0),mw.createExpressionWithTypeArguments(mw.createIdentifier(o),void 0)}(e,k,i)))]:[],...u(v)?[mw.createHeritageClause(119,v)]:[]],T=function(e,t,n){if(!u(t))return n;const r=new Map;d(n,e=>{r.set(e.escapedName,e)});for(const n of t){const t=Up(wd(n,e.thisType));for(const e of t){const t=r.get(e.escapedName);t&&e.parent===t.parent&&r.delete(e.escapedName)}}return Oe(r.values())}(m,g,Up(m)),C=N(T,e=>!we(e)),w=$(T,we),D=w?Ce(t)?H(N(T,we),!0,g[0],!1):[mw.createPropertyDeclaration(void 0,mw.createPrivateIdentifier("#private"),void 0,void 0,void 0)]:l;w&&!Ce(t)&&(t.approximateLength+=9);const F=H(C,!0,g[0],!1),P=H(N(Up(b),e=>!(4194304&e.flags||"prototype"===e.escapedName||re(e))),!0,k,!0),A=!x&&!!e.valueDeclaration&&Em(e.valueDeclaration)&&!$(mm(b,1));A&&(t.approximateLength+=21);const I=A?[mw.createConstructorDeclaration(mw.createModifiersFromModifierFlags(2),[],void 0)]:ge(1,b,k,177),O=he(m,g[0]);t.enclosingDeclaration=_,U(r(t,mw.createClassDeclaration(void 0,i,f,S,[...O,...P,...I,...F,...D]),e.declarations&&N(e.declarations,e=>dE(e)||AF(e))[0]),o)}(e,Ne(e,S),D)),(1536&e.flags&&(!F||function(e){return v(G(e),e=>!(111551&Ka($a(e))))}(e))||P)&&function(e,n,r){const i=G(e),a=Ce(t),s=Be(i,t=>t.parent&&t.parent===e||a?"real":"merged"),c=s.get("real")||l,_=s.get("merged")||l;if(u(c)||a){let i;if(a){const n=t.flags;t.flags|=514,i=o(e,t,-1),t.flags=n}else{const r=Ne(e,n);i=mw.createIdentifier(r),t.approximateLength+=r.length}ne(c,i,r,!!(67108880&e.flags))}if(u(_)){const r=vd(t.enclosingDeclaration),i=Ne(e,n),o=mw.createModuleBlock([mw.createExportDeclaration(void 0,!1,mw.createNamedExports(B(N(_,e=>"export="!==e.escapedName),n=>{var i,o;const a=mc(n.escapedName),s=Ne(n,a),c=n.declarations&&Ca(n);if(r&&(c?r!==vd(c):!$(n.declarations,e=>vd(e)===r)))return void(null==(o=null==(i=t.tracker)?void 0:i.reportNonlocalAugmentation)||o.call(i,r,e,n));const l=c&&Ua(c,!0);z(l||n);const _=l?Ne(l,mc(l.escapedName)):s;return mw.createExportSpecifier(!1,a===_?void 0:_,a)})))]);U(mw.createModuleDeclaration(void 0,mw.createIdentifier(i),o,32),0)}}(e,S,D),64&e.flags&&!(32&e.flags)&&function(e,n,r){const i=Ne(e,n);t.approximateLength+=14+i.length;const o=mu(e),a=E(Z_(e),e=>J(e,t)),s=uu(o),c=u(s)?Bb(s):void 0,l=H(Up(o),!1,c),_=ge(0,o,c,180),d=ge(1,o,c,181),p=he(o,c),f=u(s)?[mw.createHeritageClause(96,B(s,e=>ve(e,111551)))]:void 0;U(mw.createInterfaceDeclaration(void 0,i,a,f,[...p,...d,..._,...l]),r)}(e,S,D),2097152&e.flags&&ie(e,Ne(e,S),D),4&e.flags&&"export="===e.escapedName&&ae(e),8388608&e.flags&&e.declarations)for(const n of e.declarations){const e=rs(n,n.moduleSpecifier);if(!e)continue;const r=n.isTypeOnly,i=te(e,t);t.approximateLength+=17+i.length,U(mw.createExportDeclaration(void 0,r,void 0,mw.createStringLiteral(i)),0)}if(C){const n=Ne(e,S);t.approximateLength+=16+n.length,U(mw.createExportAssignment(void 0,!1,mw.createIdentifier(n)),0)}else if(w){const n=Ne(e,S);t.approximateLength+=22+S.length+n.length,U(mw.createExportDeclaration(void 0,!1,mw.createNamedExports([mw.createExportSpecifier(!1,n,S)])),0)}}function z(e){if($(e.declarations,Qh))return;un.assertIsDefined(h[h.length-1]),Se(mc(e.escapedName),e);const t=!!(2097152&e.flags)&&!$(e.declarations,e=>!!uc(e,IE)||FE(e)||bE(e)&&!JE(e.moduleReference));h[t?0:h.length-1].set(eJ(e),e)}function U(e,n){if(kI(e)){const r=Bv(e);let i=0;const o=t.enclosingDeclaration&&(Dg(t.enclosingDeclaration)?vd(t.enclosingDeclaration):t.enclosingDeclaration);32&n&&o&&(function(e){return sP(e)&&(Zp(e)||ef(e))||cp(e)&&!pp(e)}(o)||gE(o))&&WT(e)&&(i|=32),!T||32&i||o&&33554432&o.flags||!(mE(e)||WF(e)||uE(e)||dE(e)||gE(e))||(i|=128),2048&n&&(dE(e)||pE(e)||uE(e))&&(i|=2048),i&&(e=mw.replaceModifiers(e,i|r)),t.approximateLength+=de(i|r)}m.push(e)}function H(e,n,r,i){const o=[];let s=0;for(const c of e){if(s++,p(t)&&s+2re(e)&&ms(e.escapedName,99))}function Y(e,n,i,o){const a=mm(e,0);for(const e of a){t.approximateLength+=1;const n=I(e,263,t,{name:mw.createIdentifier(i)});U(r(t,n,ee(e)),o)}if(!(1536&n.flags&&n.exports&&n.exports.size)){const n=N(Up(e),re);t.approximateLength+=i.length,ne(n,mw.createIdentifier(i),o,!0)}}function Z(e){return 1&t.flags?Lw(mw.createEmptyStatement(),3,e):mw.createExpressionStatement(mw.createIdentifier(e))}function ee(e){if(e.declaration&&e.declaration.parent){if(NF(e.declaration.parent)&&5===tg(e.declaration.parent))return e.declaration.parent;if(lE(e.declaration.parent)&&e.declaration.parent.parent)return e.declaration.parent.parent}return e.declaration}function ne(e,n,r,i){const o=aD(n)?32:0,a=Ce(t);if(u(e)){t.approximateLength+=14;const s=Be(e,e=>!u(e.declarations)||$(e.declarations,e=>vd(e)===vd(t.enclosingDeclaration))||a?"local":"remote").get("local")||l;let _=CI.createModuleDeclaration(void 0,n,mw.createModuleBlock([]),o);DT(_,c),_.locals=Gu(e),_.symbol=e[0].parent;const d=m;m=[];const p=T;T=!1;const f={...t,enclosingDeclaration:_},g=t;t=f,L(Gu(s),i,!0),t=g,T=p;const h=m;m=d;const y=E(h,e=>AE(e)&&!e.isExportEquals&&aD(e.expression)?mw.createExportDeclaration(void 0,!1,mw.createNamedExports([mw.createExportSpecifier(!1,e.expression,mw.createIdentifier("default"))])):e),b=v(y,e=>Nv(e,32))?E(y,A):y;_=mw.updateModuleDeclaration(_,_.modifiers,_.name,mw.createModuleBlock(b)),U(_,r)}else a&&(t.approximateLength+=14,U(mw.createModuleDeclaration(void 0,n,mw.createModuleBlock([]),o),r))}function re(e){return!!(2887656&e.flags)||!(4194304&e.flags||"prototype"===e.escapedName||e.valueDeclaration&&Dv(e.valueDeclaration)&&u_(e.valueDeclaration.parent))}function ie(e,n,r){var i,o,a,s,c;const l=Ca(e);if(!l)return un.fail();const _=xs(Ua(l,!0));if(!_)return;let u=up(_)&&f(e.declarations,e=>{if(PE(e)||LE(e))return $d(e.propertyName||e.name);if(NF(e)||AE(e)){const t=AE(e)?e.expression:e.right;if(dF(t))return gc(t.name)}if(wa(e)){const t=Cc(e);if(t&&aD(t))return gc(t)}})||mc(_.escapedName);"export="===u&&W&&(u="default");const d=Ne(_,u);switch(z(_),l.kind){case 209:if(261===(null==(o=null==(i=l.parent)?void 0:i.parent)?void 0:o.kind)){const e=te(_.parent||_,t),{propertyName:r}=l,i=r&&aD(r)?gc(r):void 0;t.approximateLength+=24+n.length+e.length+((null==i?void 0:i.length)??0),U(mw.createImportDeclaration(void 0,mw.createImportClause(void 0,void 0,mw.createNamedImports([mw.createImportSpecifier(!1,i?mw.createIdentifier(i):void 0,mw.createIdentifier(n))])),mw.createStringLiteral(e),void 0),0);break}un.failBadSyntaxKind((null==(a=l.parent)?void 0:a.parent)||l,"Unhandled binding element grandparent kind in declaration serialization");break;case 305:227===(null==(c=null==(s=l.parent)?void 0:s.parent)?void 0:c.kind)&&oe(mc(e.escapedName),d);break;case 261:if(dF(l.initializer)){const e=l.initializer,i=mw.createUniqueName(n),o=te(_.parent||_,t);t.approximateLength+=22+o.length+gc(i).length,U(mw.createImportEqualsDeclaration(void 0,!1,i,mw.createExternalModuleReference(mw.createStringLiteral(o))),0),t.approximateLength+=12+n.length+gc(i).length+gc(e.name).length,U(mw.createImportEqualsDeclaration(void 0,!1,mw.createIdentifier(n),mw.createQualifiedName(i,e.name)),r);break}case 272:if("export="===_.escapedName&&$(_.declarations,e=>sP(e)&&ef(e))){ae(e);break}const p=!(512&_.flags||lE(l));t.approximateLength+=11+n.length+mc(_.escapedName).length,U(mw.createImportEqualsDeclaration(void 0,!1,mw.createIdentifier(n),p?se(_,t,-1,!1):mw.createExternalModuleReference(mw.createStringLiteral(te(_,t)))),p?r:0);break;case 271:U(mw.createNamespaceExportDeclaration(gc(l.name)),0);break;case 274:{const e=te(_.parent||_,t),r=t.bundled?mw.createStringLiteral(e):l.parent.moduleSpecifier,i=xE(l.parent)?l.parent.attributes:void 0,o=XP(l.parent);t.approximateLength+=14+n.length+3+(o?4:0),U(mw.createImportDeclaration(void 0,mw.createImportClause(o?156:void 0,mw.createIdentifier(n),void 0),r,i),0);break}case 275:{const e=te(_.parent||_,t),r=t.bundled?mw.createStringLiteral(e):l.parent.parent.moduleSpecifier,i=XP(l.parent.parent);t.approximateLength+=19+n.length+3+(i?4:0),U(mw.createImportDeclaration(void 0,mw.createImportClause(i?156:void 0,void 0,mw.createNamespaceImport(mw.createIdentifier(n))),r,l.parent.attributes),0);break}case 281:t.approximateLength+=19+n.length+3,U(mw.createExportDeclaration(void 0,!1,mw.createNamespaceExport(mw.createIdentifier(n)),mw.createStringLiteral(te(_,t))),0);break;case 277:{const e=te(_.parent||_,t),r=t.bundled?mw.createStringLiteral(e):l.parent.parent.parent.moduleSpecifier,i=XP(l.parent.parent.parent);t.approximateLength+=19+n.length+3+(i?4:0),U(mw.createImportDeclaration(void 0,mw.createImportClause(i?156:void 0,void 0,mw.createNamedImports([mw.createImportSpecifier(!1,n!==u?mw.createIdentifier(u):void 0,mw.createIdentifier(n))])),r,l.parent.parent.parent.attributes),0);break}case 282:const f=l.parent.parent.moduleSpecifier;if(f){const e=l.propertyName;e&&Kd(e)&&(u="default")}oe(mc(e.escapedName),f?u:d,f&&ju(f)?mw.createStringLiteral(f.text):void 0);break;case 278:ae(e);break;case 227:case 212:case 213:"default"===e.escapedName||"export="===e.escapedName?ae(e):oe(n,d);break;default:return un.failBadSyntaxKind(l,"Unhandled alias declaration kind in symbol serializer!")}}function oe(e,n,r){t.approximateLength+=16+e.length+(e!==n?n.length:0),U(mw.createExportDeclaration(void 0,!1,mw.createNamedExports([mw.createExportSpecifier(!1,e!==n?n:void 0,e)]),r),0)}function ae(e){var n;if(4194304&e.flags)return!1;const r=mc(e.escapedName),i="export="===r,o=i||"default"===r,a=e.declarations&&Ca(e),s=a&&Ua(a,!0);if(s&&u(s.declarations)&&$(s.declarations,e=>vd(e)===vd(c))){const n=a&&(AE(a)||NF(a)?gh(a):hh(a)),l=n&&ab(n)?function(e){switch(e.kind){case 80:return e;case 167:do{e=e.left}while(80!==e.kind);return e;case 212:do{if(eg(e.expression)&&!sD(e.name))return e.name;e=e.expression}while(80!==e.kind);return e}}(n):void 0,_=l&&ts(l,-1,!0,!0,c);(_||s)&&z(_||s);const u=t.tracker.disableTrackSymbol;if(t.tracker.disableTrackSymbol=!0,o)t.approximateLength+=10,m.push(mw.createExportAssignment(void 0,i,ce(s,t,-1)));else if(l===n&&l)oe(r,gc(l));else if(n&&AF(n))oe(r,Ne(s,yc(s)));else{const n=Se(r,e);t.approximateLength+=n.length+10,U(mw.createImportEqualsDeclaration(void 0,!1,mw.createIdentifier(n),se(s,t,-1,!1)),0),oe(r,n)}return t.tracker.disableTrackSymbol=u,!0}{const a=Se(r,e),c=jw(P_(xs(e)));if(le(c,e))Y(c,e,a,o?0:32);else{const i=268!==(null==(n=t.enclosingDeclaration)?void 0:n.kind)||98304&e.flags&&!(65536&e.flags)?2:1;t.approximateLength+=a.length+5,U(mw.createVariableStatement(void 0,mw.createVariableDeclarationList([mw.createVariableDeclaration(a,void 0,ye(t,void 0,c,e))],i)),s&&4&s.flags&&"export="===s.escapedName?128:r===a?32:0)}return o?(t.approximateLength+=a.length+10,m.push(mw.createExportAssignment(void 0,i,mw.createIdentifier(a))),!0):r!==a&&(oe(r,a),!0)}}function le(e,n){var r;const i=vd(t.enclosingDeclaration);return 48&gx(e)&&!$(null==(r=e.symbol)?void 0:r.declarations,b_)&&!u(Jm(e))&&!Ic(e)&&!(!u(N(Up(e),re))&&!u(mm(e,0)))&&!u(mm(e,1))&&!fe(n,c)&&!(e.symbol&&$(e.symbol.declarations,e=>vd(e)!==i))&&!$(Up(e),e=>ld(e.escapedName))&&!$(Up(e),e=>$(e.declarations,e=>vd(e)!==i))&&v(Up(e),e=>!(!ms(yc(e),M)||98304&e.flags&&M_(e)!==E_(e)))}function _e(e,n,i){return function(o,a,s){var c,l,_,u,p,f;const m=ix(o),g=!!(2&m)&&!Ce(t);if(a&&2887656&o.flags)return[];if(4194304&o.flags||"constructor"===o.escapedName||s&&pm(s,o.escapedName)&&_j(pm(s,o.escapedName))===_j(o)&&(16777216&o.flags)==(16777216&pm(s,o.escapedName).flags)&&SS(P_(o),el(s,o.escapedName)))return[];const h=-1025&m|(a?256:0),y=ue(o,t),v=null==(c=o.declarations)?void 0:c.find(en(ND,d_,lE,wD,NF,dF));if(98304&o.flags&&i){const e=[];if(65536&o.flags){const n=o.declarations&&d(o.declarations,e=>179===e.kind?e:fF(e)&&ng(e)?d(e.arguments[2].properties,e=>{const t=Cc(e);if(t&&aD(t)&&"set"===gc(t))return e}):void 0);un.assert(!!n);const i=o_(n)?Eg(n).parameters[0]:void 0,a=null==(l=o.declarations)?void 0:l.find(wu);t.approximateLength+=de(h)+7+(i?yc(i).length:5)+(g?0:2),e.push(r(t,mw.createSetAccessorDeclaration(mw.createModifiersFromModifierFlags(h),y,[mw.createParameterDeclaration(void 0,void 0,i?V(i,q(i),t):"value",void 0,g?void 0:ye(t,a,E_(o),o))],void 0),a??v))}if(32768&o.flags){const n=null==(_=o.declarations)?void 0:_.find(Nu);t.approximateLength+=de(h)+8+(g?0:2),e.push(r(t,mw.createGetAccessorDeclaration(mw.createModifiersFromModifierFlags(h),y,[],g?void 0:ye(t,n,P_(o),o),void 0),n??v))}return e}if(98311&o.flags){const n=(_j(o)?8:0)|h;return t.approximateLength+=2+(g?0:2)+de(n),r(t,e(mw.createModifiersFromModifierFlags(n),y,16777216&o.flags?mw.createToken(58):void 0,g?void 0:ye(t,null==(u=o.declarations)?void 0:u.find(ID),E_(o),o),void 0),(null==(p=o.declarations)?void 0:p.find(en(ND,lE)))||v)}if(8208&o.flags){const i=mm(P_(o),0);if(g){const n=(_j(o)?8:0)|h;return t.approximateLength+=1+de(n),r(t,e(mw.createModifiersFromModifierFlags(n),y,16777216&o.flags?mw.createToken(58):void 0,void 0,void 0),(null==(f=o.declarations)?void 0:f.find(o_))||i[0]&&i[0].declaration||o.declarations&&o.declarations[0])}const a=[];for(const e of i){t.approximateLength+=1;const i=I(e,n,t,{name:y,questionToken:16777216&o.flags?mw.createToken(58):void 0,modifiers:h?mw.createModifiersFromModifierFlags(h):void 0}),s=e.declaration&&pg(e.declaration.parent)?e.declaration.parent:e.declaration;a.push(r(t,i,s))}return a}return un.fail(`Unhandled class member kind! ${o.__debugFlags||o.flags}`)}}function de(e){let t=0;return 32&e&&(t+=7),128&e&&(t+=8),2048&e&&(t+=8),4096&e&&(t+=6),1&e&&(t+=7),2&e&&(t+=8),4&e&&(t+=10),64&e&&(t+=9),256&e&&(t+=7),16&e&&(t+=9),8&e&&(t+=9),512&e&&(t+=9),1024&e&&(t+=6),8192&e&&(t+=3),16384&e&&(t+=4),t}function me(e,t){return s(e,!1,t)}function ge(e,n,i,o){const a=mm(n,e);if(1===e){if(!i&&v(a,e=>0===u(e.parameters)))return[];if(i){const e=mm(i,1);if(!u(e)&&v(a,e=>0===u(e.parameters)))return[];if(e.length===a.length){let t=!1;for(let n=0;ny(e,t)),i=ce(e.target.symbol,t,788968)):e.symbol&&Ys(e.symbol,c,n)&&(i=ce(e.symbol,t,788968)),i)return mw.createExpressionWithTypeArguments(i,r)}function be(e){return ve(e,788968)||(e.symbol?mw.createExpressionWithTypeArguments(ce(e.symbol,t,788968),void 0):void 0)}function Se(e,n){var r,i;const o=n?eJ(n):void 0;if(o&&t.remappedSymbolNames.has(o))return t.remappedSymbolNames.get(o);n&&(e=Te(n,e));let a=0;const s=e;for(;null==(r=t.usedSymbolNames)?void 0:r.has(e);)a++,e=`${s}_${a}`;return null==(i=t.usedSymbolNames)||i.add(e),o&&t.remappedSymbolNames.set(o,e),e}function Te(e,n){if("default"===n||"__class"===n||"__function"===n){const r=_(t);t.flags|=16777216;const i=Uc(e,t);r(),n=i.length>0&&zm(i.charCodeAt(0))?Fy(i):i}return"default"===n?n="_default":"export="===n&&(n="_exports"),ms(n,M)&&!Eh(n)?n:"_"+n.replace(/[^a-z0-9]/gi,"_")}function Ne(e,n){const r=eJ(e);return t.remappedSymbolNames.has(r)?t.remappedSymbolNames.get(r):(n=Te(e,n),t.remappedSymbolNames.set(r,n),n)}}function Ce(e){return-1!==e.maxExpansionDepth}function we(e){return!!e.valueDeclaration&&Sc(e.valueDeclaration)&&sD(e.valueDeclaration.name)}}(),ke=UK(j,xe.syntacticBuilderResolver),Ce=gC({evaluateElementAccessExpression:function(e,t){const n=e.expression;if(ab(n)&&ju(e.argumentExpression)){const r=ts(n,111551,!0);if(r&&384&r.flags){const n=fc(e.argumentExpression.text),i=r.exports.get(n);if(i)return un.assert(vd(i.valueDeclaration)===vd(r.valueDeclaration)),t?bB(e,i,t):MJ(i.valueDeclaration)}}return mC(void 0)},evaluateEntityNameExpression:vB}),Ne=Gu(),De=Xo(4,"undefined");De.declarations=[];var Fe=Xo(1536,"globalThis",8);Fe.exports=Ne,Fe.declarations=[],Ne.set(Fe.escapedName,Fe);var Ee,Pe,Ae,Le=Xo(4,"arguments"),je=Xo(4,"require"),Me=j.verbatimModuleSyntax?"verbatimModuleSyntax":"isolatedModules",Re=!j.verbatimModuleSyntax,ze=0,qe=0,Ue=vC({compilerOptions:j,requireSymbol:je,argumentsSymbol:Le,globals:Ne,getSymbolOfDeclaration:ks,error:zo,getRequiresScopeChangeCache:ma,setRequiresScopeChangeCache:ga,lookup:pa,onPropertyWithInvalidInitializer:function(e,t,n,r){return!V&&(e&&!r&&va(e,t,t)||zo(e,e&&n.type&&As(n.type,e.pos)?_a.Type_of_instance_member_variable_0_cannot_reference_identifier_1_declared_in_the_constructor:_a.Initializer_of_instance_member_variable_0_cannot_reference_identifier_1_declared_in_the_constructor,Ap(n.name),ya(t)),!0)},onFailedToResolveSymbol:function(e,t,n,r){const i=Ze(t)?t:t.escapedText;a(()=>{if(!e||!(325===e.parent.kind||va(e,i,t)||ba(e)||function(e,t,n){const r=1920|(Em(e)?111551:0);if(n===r){const n=$a(Ue(e,t,788968&~r,void 0,!1)),i=e.parent;if(n){if(xD(i)){un.assert(i.left===e,"Should only be resolving left side of qualified name as a namespace");const r=i.right.escapedText;if(pm(Au(n),r))return zo(i,_a.Cannot_access_0_1_because_0_is_a_type_but_not_a_namespace_Did_you_mean_to_retrieve_the_type_of_the_property_1_in_0_with_0_1,mc(t),mc(r)),!0}return zo(e,_a._0_only_refers_to_a_type_but_is_being_used_as_a_namespace_here,mc(t)),!0}}return!1}(e,i,n)||function(e,t){return!(!ka(t)||282!==e.parent.kind)&&(zo(e,_a.Cannot_export_0_Only_local_declarations_can_be_exported_from_a_module,t),!0)}(e,i)||function(e,t,n){if(111127&n){if($a(Ue(e,t,1024,void 0,!1)))return zo(e,_a.Cannot_use_namespace_0_as_a_value,mc(t)),!0}else if(788544&n&&$a(Ue(e,t,1536,void 0,!1)))return zo(e,_a.Cannot_use_namespace_0_as_a_type,mc(t)),!0;return!1}(e,i,n)||function(e,t,n){if(111551&n){if(ka(t)){const n=e.parent.parent;if(n&&n.parent&&tP(n)){const r=n.token;265===n.parent.kind&&96===r?zo(e,_a.An_interface_cannot_extend_a_primitive_type_like_0_It_can_only_extend_other_named_object_types,mc(t)):u_(n.parent)&&96===r?zo(e,_a.A_class_cannot_extend_a_primitive_type_like_0_Classes_can_only_extend_constructable_values,mc(t)):u_(n.parent)&&119===r&&zo(e,_a.A_class_cannot_implement_a_primitive_type_like_0_It_can_only_implement_other_named_object_types,mc(t))}else zo(e,_a._0_only_refers_to_a_type_but_is_being_used_as_a_value_here,mc(t));return!0}const n=$a(Ue(e,t,788544,void 0,!1)),r=n&&Ka(n);if(n&&void 0!==r&&!(111551&r)){const r=mc(t);return function(e){switch(e){case"Promise":case"Symbol":case"Map":case"WeakMap":case"Set":case"WeakSet":return!0}return!1}(t)?zo(e,_a._0_only_refers_to_a_type_but_is_being_used_as_a_value_here_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_es2015_or_later,r):function(e,t){const n=uc(e.parent,e=>!kD(e)&&!wD(e)&&(qD(e)||"quit"));if(n&&1===n.members.length){const e=Au(t);return!!(1048576&e.flags)&&yj(e,384,!0)}return!1}(e,n)?zo(e,_a._0_only_refers_to_a_type_but_is_being_used_as_a_value_here_Did_you_mean_to_use_1_in_0,r,"K"===r?"P":"K"):zo(e,_a._0_only_refers_to_a_type_but_is_being_used_as_a_value_here,r),!0}}return!1}(e,i,n)||function(e,t,n){if(788584&n){const n=$a(Ue(e,t,111127,void 0,!1));if(n&&!(1920&n.flags))return zo(e,_a._0_refers_to_a_value_but_is_being_used_as_a_type_here_Did_you_mean_typeof_0,mc(t)),!0}return!1}(e,i,n))){let o,a;if(t&&(a=function(e){const t=ya(e),n=tp().get(t);return n&&he(n.keys())}(t),a&&zo(e,r,ya(t),a)),!a&&Ki{var a;const s=t.escapedName,c=r&&sP(r)&&Zp(r);if(e&&(2&n||(32&n||384&n)&&!(111551&~n))){const n=Os(t);(2&n.flags||32&n.flags||384&n.flags)&&function(e,t){var n;if(un.assert(!!(2&e.flags||32&e.flags||384&e.flags)),67108881&e.flags&&32&e.flags)return;const r=null==(n=e.declarations)?void 0:n.find(e=>ap(e)||u_(e)||267===e.kind);if(void 0===r)return un.fail("checkResolvedBlockScopedVariable could not find block-scoped declaration");if(!(33554432&r.flags||fa(r,t))){let n;const i=Ap(Cc(r));2&e.flags?n=zo(t,_a.Block_scoped_variable_0_used_before_its_declaration,i):32&e.flags?n=zo(t,_a.Class_0_used_before_its_declaration,i):256&e.flags?n=zo(t,_a.Enum_0_used_before_its_declaration,i):(un.assert(!!(128&e.flags)),kk(j)&&(n=zo(t,_a.Enum_0_used_before_its_declaration,i))),n&&aT(n,Rp(r,_a._0_is_declared_here,i))}}(n,e)}if(c&&!(111551&~n)&&!(16777216&e.flags)){const n=xs(t);u(n.declarations)&&v(n.declarations,e=>vE(e)||sP(e)&&!!e.symbol.globalExports)&&Vo(!j.allowUmdGlobalAccess,e,_a._0_refers_to_a_UMD_global_but_the_current_file_is_a_module_Consider_adding_an_import_instead,mc(s))}if(i&&!o&&!(111551&~n)){const r=xs(Cd(t)),o=Yh(i);r===ks(i)?zo(e,_a.Parameter_0_cannot_reference_itself,Ap(i.name)):r.valueDeclaration&&r.valueDeclaration.pos>i.pos&&o.parent.locals&&pa(o.parent.locals,r.escapedName,n)===r&&zo(e,_a.Parameter_0_cannot_reference_identifier_1_declared_after_it,Ap(i.name),Ap(e))}if(e&&111551&n&&2097152&t.flags&&!(111551&t.flags)&&!bT(e)){const n=Ya(t,111551);if(n){const t=282===n.kind||279===n.kind||281===n.kind?_a._0_cannot_be_used_as_a_value_because_it_was_exported_using_export_type:_a._0_cannot_be_used_as_a_value_because_it_was_imported_using_import_type,r=mc(s);ha(zo(e,t,r),n,r)}}if(j.isolatedModules&&t&&c&&!(111551&~n)){const e=pa(Ne,s,n)===t&&sP(r)&&r.locals&&pa(r.locals,s,-111552);if(e){const t=null==(a=e.declarations)?void 0:a.find(e=>277===e.kind||274===e.kind||275===e.kind||272===e.kind);t&&!Bl(t)&&zo(t,_a.Import_0_conflicts_with_global_value_used_in_this_file_so_must_be_declared_with_a_type_only_import_when_isolatedModules_is_enabled,mc(s))}}})}}),Ve=vC({compilerOptions:j,requireSymbol:je,argumentsSymbol:Le,globals:Ne,getSymbolOfDeclaration:ks,error:zo,getRequiresScopeChangeCache:ma,setRequiresScopeChangeCache:ga,lookup:function(e,t,n){const r=pa(e,t,n);if(r)return r;let i;return i=e===Ne?B(["string","number","boolean","object","bigint","symbol"],t=>e.has(t.charAt(0).toUpperCase()+t.slice(1))?Xo(524288,t):void 0).concat(Oe(e.values())):Oe(e.values()),iO(mc(t),i,n)}});const He={getNodeCount:()=>we(e.getSourceFiles(),(e,t)=>e+t.nodeCount,0),getIdentifierCount:()=>we(e.getSourceFiles(),(e,t)=>e+t.identifierCount,0),getSymbolCount:()=>we(e.getSourceFiles(),(e,t)=>e+t.symbolCount,m),getTypeCount:()=>p,getInstantiationCount:()=>g,getRelationCacheSizes:()=>({assignable:wo.size,identity:Fo.size,subtype:To.size,strictSubtype:Co.size}),isUndefinedSymbol:e=>e===De,isArgumentsSymbol:e=>e===Le,isUnknownSymbol:e=>e===xt,getMergedSymbol:xs,symbolIsValue:Ls,getDiagnostics:HB,getGlobalDiagnostics:function(){return KB(),ho.getGlobalDiagnostics()},getRecursionIdentity:DC,getUnmatchedProperties:sN,getTypeOfSymbolAtLocation:(e,t)=>{const n=pc(t);return n?function(e,t){if(e=Os(e),(80===t.kind||81===t.kind)&&(db(t)&&(t=t.parent),bm(t)&&(!Qg(t)||cx(t)))){const n=yw(cx(t)&&212===t.kind?OI(t,void 0,!0):Qj(t));if(Os(da(t).resolvedSymbol)===e)return n}return lh(t)&&wu(t.parent)&&h_(t.parent)?T_(t.parent.symbol):pb(t)&&cx(t.parent)?E_(e):M_(e)}(e,n):Et},getTypeOfSymbol:P_,getSymbolsOfParameterPropertyDeclaration:(e,t)=>{const n=pc(e,TD);return void 0===n?un.fail("Cannot get symbols of a synthetic parameter that cannot be resolved to a parse-tree node."):(un.assert(Zs(n,n.parent)),function(e,t){const n=e.parent,r=e.parent.parent,i=pa(n.locals,t,111551),o=pa(Td(r.symbol),t,111551);return i&&o?[i,o]:un.fail("There should exist two symbols, one as property declaration and one as parameter declaration")}(n,fc(t)))},getDeclaredTypeOfSymbol:Au,getPropertiesOfType:Up,getPropertyOfType:(e,t)=>pm(e,fc(t)),getPrivateIdentifierPropertyOfType:(e,t,n)=>{const r=pc(n);if(!r)return;const i=MI(fc(t),r);return i?BI(e,i):void 0},getTypeOfPropertyOfType:(e,t)=>el(e,fc(t)),getIndexInfoOfType:(e,t)=>qm(e,0===t?Vt:Wt),getIndexInfosOfType:Jm,getIndexInfosOfIndexSymbol:Lh,getSignaturesOfType:mm,getIndexTypeOfType:(e,t)=>Qm(e,0===t?Vt:Wt),getIndexType:e=>Yb(e),getBaseTypes:uu,getBaseTypeOfLiteralType:QC,getWidenedType:jw,getWidenedLiteralType:ZC,fillMissingTypeArguments:Cg,getTypeFromTypeNode:e=>{const t=pc(e,b_);return t?Pk(t):Et},getParameterType:AL,getParameterIdentifierInfoAtPosition:function(e,t){var n;if(318===(null==(n=e.declaration)?void 0:n.kind))return;const r=e.parameters.length-(aJ(e)?1:0);if(tPM(e),getReturnTypeOfSignature:Gg,isNullableType:NI,getNullableType:dw,getNonNullableType:fw,getNonOptionalType:yw,getTypeArguments:uy,typeToTypeNode:xe.typeToTypeNode,typePredicateToTypePredicateNode:xe.typePredicateToTypePredicateNode,indexInfoToIndexSignatureDeclaration:xe.indexInfoToIndexSignatureDeclaration,signatureToSignatureDeclaration:xe.signatureToSignatureDeclaration,symbolToEntityName:xe.symbolToEntityName,symbolToExpression:xe.symbolToExpression,symbolToNode:xe.symbolToNode,symbolToTypeParameterDeclarations:xe.symbolToTypeParameterDeclarations,symbolToParameterDeclaration:xe.symbolToParameterDeclaration,typeParameterToDeclaration:xe.typeParameterToDeclaration,getSymbolsInScope:(e,t)=>{const n=pc(e);return n?function(e,t){if(67108864&e.flags)return[];const n=Gu();let r=!1;return function(){for(;e;){switch(su(e)&&e.locals&&!Yp(e)&&o(e.locals,t),e.kind){case 308:if(!rO(e))break;case 268:a(ks(e).exports,2623475&t);break;case 267:o(ks(e).exports,8&t);break;case 232:e.name&&i(e.symbol,t);case 264:case 265:r||o(Td(ks(e)),788968&t);break;case 219:e.name&&i(e.symbol,t)}Mf(e)&&i(Le,t),r=Dv(e),e=e.parent}o(Ne,t)}(),n.delete("this"),lg(n);function i(e,t){if(ax(e)&t){const t=e.escapedName;n.has(t)||n.set(t,e)}}function o(e,t){t&&e.forEach(e=>{i(e,t)})}function a(e,t){t&&e.forEach(e=>{Hu(e,282)||Hu(e,281)||"default"===e.escapedName||i(e,t)})}}(n,t):[]},getSymbolAtLocation:e=>{const t=pc(e);return t?yJ(t,!0):void 0},getIndexInfosAtLocation:e=>{const t=pc(e);return t?function(e){if(aD(e)&&dF(e.parent)&&e.parent.name===e){const t=Hb(e),n=Qj(e.parent.expression);return O(1048576&n.flags?n.types:[n],e=>N(Jm(e),e=>jm(t,e.keyType)))}}(t):void 0},getShorthandAssignmentValueSymbol:e=>{const t=pc(e);return t?function(e){if(e&&305===e.kind)return ts(e.name,2208703,!0)}(t):void 0},getExportSpecifierLocalTargetSymbol:e=>{const t=pc(e,LE);return t?function(e){if(LE(e)){const t=e.propertyName||e.name;return e.parent.parent.moduleSpecifier?Ma(e.parent.parent,e):11===t.kind?void 0:ts(t,2998271,!0)}return ts(e,2998271,!0)}(t):void 0},getExportSymbolOfSymbol:e=>xs(e.exportSymbol||e),getTypeAtLocation:e=>{const t=pc(e);return t?bJ(t):Et},getTypeOfAssignmentPattern:e=>{const t=pc(e,S_);return t&&xJ(t)||Et},getPropertySymbolOfDestructuringAssignment:e=>{const t=pc(e,aD);return t?function(e){const t=xJ(nt(e.parent.parent,S_));return t&&pm(t,e.escapedText)}(t):void 0},signatureToString:(e,t,n,r)=>kc(e,pc(t),n,r),typeToString:(e,t,n)=>Tc(e,pc(t),n),symbolToString:(e,t,n,r)=>bc(e,pc(t),n,r),typePredicateToString:(e,t,n)=>Mc(e,pc(t),n),writeSignature:(e,t,n,r,i,o,a,s)=>kc(e,pc(t),n,r,i,o,a,s),writeType:(e,t,n,r,i,o,a)=>Tc(e,pc(t),n,r,i,o,a),writeSymbol:(e,t,n,r,i)=>bc(e,pc(t),n,r,i),writeTypePredicate:(e,t,n,r)=>Mc(e,pc(t),n,r),getAugmentedPropertiesOfType:CJ,getRootSymbols:function e(t){const n=function(e){if(6&rx(e))return B(ua(e).containingType.types,t=>pm(t,e.escapedName));if(33554432&e.flags){const{links:{leftSpread:t,rightSpread:n,syntheticOrigin:r}}=e;return t?[t,n]:r?[r]:rn(function(e){let t,n=e;for(;n=ua(n).target;)t=n;return t}(e))}}(t);return n?O(n,e):[t]},getSymbolOfExpando:lL,getContextualType:(e,t)=>{const n=pc(e,V_);if(n)return 4&t?Ge(n,()=>xA(n,t)):xA(n,t)},getContextualTypeForObjectLiteralElement:e=>{const t=pc(e,v_);return t?pA(t,void 0):void 0},getContextualTypeForArgumentAtIndex:(e,t)=>{const n=pc(e,L_);return n&&nA(n,t)},getContextualTypeForJsxAttribute:e=>{const t=pc(e,yu);return t&&mA(t,void 0)},isContextSensitive:vS,getTypeOfPropertyOfContextualType:sA,getFullyQualifiedName:es,getResolvedSignature:(e,t,n)=>Xe(e,t,n,0),getCandidateSignaturesForStringLiteralCompletions:function(e,t){const n=new Set,r=[];Ge(t,()=>Xe(e,r,void 0,0));for(const e of r)n.add(e);r.length=0,Ke(t,()=>Xe(e,r,void 0,0));for(const e of r)n.add(e);return Oe(n)},getResolvedSignatureForSignatureHelp:(e,t,n)=>Ke(e,()=>Xe(e,t,n,16)),getExpandedParameters:Od,hasEffectiveRestParameter:RL,containsArgumentsReference:Ig,getConstantValue:e=>{const t=pc(e,RJ);return t?BJ(t):void 0},isValidPropertyAccess:(e,t)=>{const n=pc(e,A_);return!!n&&function(e,t){switch(e.kind){case 212:return cO(e,108===e.expression.kind,t,jw(eM(e.expression)));case 167:return cO(e,!1,t,jw(eM(e.left)));case 206:return cO(e,!1,t,Pk(e))}}(n,fc(t))},isValidPropertyAccessForCompletions:(e,t,n)=>{const r=pc(e,dF);return!!r&&sO(r,t,n)},getSignatureFromDeclaration:e=>{const t=pc(e,r_);return t?Eg(t):void 0},isImplementationOfOverload:e=>{const t=pc(e,r_);return t?AJ(t):void 0},getImmediateAliasedSymbol:VA,getAliasedSymbol:Ha,getEmitResolver:function(e,t,n){return n||HB(e,t),be},requiresAddingImplicitUndefined:IJ,getExportsOfModule:ds,getExportsAndPropertiesOfModule:function(e){const t=ds(e),n=ss(e);if(n!==e){const e=P_(n);fs(e)&&se(t,Up(e))}return t},forEachExportAndPropertyOfModule:function(e,t){ys(e).forEach((e,n)=>{qs(n)||t(e,n)});const n=ss(e);if(n!==e){const e=P_(n);fs(e)&&function(e){3670016&(e=Tf(e)).flags&&Cp(e).members.forEach((e,n)=>{Vs(e,n)&&((e,n)=>{t(e,n)})(e,n)})}(e)}},getSymbolWalker:tB(function(e){return _h(e)||wt},Hg,Gg,uu,Cp,P_,NN,Hp,sb,uy),getAmbientModules:function(){return Wn||(Wn=[],Ne.forEach((e,t)=>{BB.test(t)&&Wn.push(e)})),Wn},getJsxIntrinsicTagNamesAt:function(e){const t=eI(jB.IntrinsicElements,e);return t?Up(t):l},isOptionalParameter:e=>{const t=pc(e,TD);return!!t&&vg(t)},tryGetMemberInModuleExports:(e,t)=>ps(fc(e),t),tryGetMemberInModuleExportsAndProperties:(e,t)=>function(e,t){const n=ps(e,t);if(n)return n;const r=ss(t);if(r===t)return;const i=P_(r);return fs(i)?pm(i,e):void 0}(fc(e),t),tryFindAmbientModule:e=>fg(e,!0),getApparentType:Sf,getUnionType:Pb,isTypeAssignableTo:FS,createAnonymousType:$s,createSignature:Ed,createSymbol:Xo,createIndexInfo:Ah,getAnyType:()=>wt,getStringType:()=>Vt,getStringLiteralType:fk,getNumberType:()=>Wt,getNumberLiteralType:mk,getBigIntType:()=>$t,getBigIntLiteralType:gk,getUnknownType:()=>Ot,createPromiseType:XL,createArrayType:Rv,getElementTypeOfArrayType:BC,getBooleanType:()=>sn,getFalseType:e=>e?Ht:Qt,getTrueType:e=>e?Yt:nn,getVoidType:()=>ln,getUndefinedType:()=>jt,getNullType:()=>zt,getESSymbolType:()=>cn,getNeverType:()=>_n,getNonPrimitiveType:()=>mn,getOptionalType:()=>Jt,getPromiseType:()=>ev(!1),getPromiseLikeType:()=>tv(!1),getAnyAsyncIterableType:()=>{const e=rv(!1);if(e!==On)return ay(e,[wt,wt,wt])},isSymbolAccessible:tc,isArrayType:OC,isTupleType:rw,isArrayLikeType:JC,isEmptyAnonymousObjectType:XS,isTypeInvalidDueToUnionDiscriminant:function(e,t){return t.properties.some(t=>{const n=t.name&&(YE(t.name)?fk(nC(t.name)):Hb(t.name)),r=n&&sC(n)?cC(n):void 0,i=void 0===r?void 0:el(e,r);return!!i&&XC(i)&&!FS(bJ(t),i)})},getExactOptionalProperties:function(e){return Up(e).filter(e=>Sw(P_(e)))},getAllPossiblePropertiesOfTypes:function(e){const t=Pb(e);if(!(1048576&t.flags))return CJ(t);const n=Gu();for(const r of e)for(const{escapedName:e}of CJ(r))if(!n.has(e)){const r=Cf(t,e);r&&n.set(e,r)}return Oe(n.values())},getSuggestedSymbolForNonexistentProperty:GI,getSuggestedSymbolForNonexistentJSXAttribute:YI,getSuggestedSymbolForNonexistentSymbol:(e,t,n)=>eO(e,fc(t),n),getSuggestedSymbolForNonexistentModule:nO,getSuggestedSymbolForNonexistentClassMember:KI,getBaseConstraintOfType:pf,getDefaultFromTypeParameter:e=>e&&262144&e.flags?yf(e):void 0,resolveName:(e,t,n,r)=>Ue(t,fc(e),n,void 0,!1,r),getJsxNamespace:e=>mc(jo(e)),getJsxFragmentFactory:e=>{const t=VJ(e);return t&&mc(sb(t).escapedText)},getAccessibleSymbolChain:Gs,getTypePredicateOfSignature:Hg,resolveExternalModuleName:e=>{const t=pc(e,V_);return t&&rs(t,t,!0)},resolveExternalModuleSymbol:ss,tryGetThisTypeAt:(e,t,n)=>{const r=pc(e);return r&&jP(r,t,n)},getTypeArgumentConstraint:e=>{const t=pc(e,b_);return t&&function(e){const t=tt(e.parent,Iu);if(!t)return;const n=mM(t);if(!n)return;const r=Hp(n[t.typeArguments.indexOf(e)]);return r&&fS(r,Uk(n,pM(t,n)))}(t)},getSuggestionDiagnostics:(n,r)=>{const i=pc(n,sP)||un.fail("Could not determine parsed source file.");if(_T(i,j,e))return l;let o;try{return t=r,nJ(i),un.assert(!!(1&da(i).flags)),o=se(o,yo.getDiagnostics(i.fileName)),WM(WB(i),(e,t,n)=>{yd(e)||qB(t,!!(33554432&e.flags))||(o||(o=[])).push({...n,category:2})}),o||l}finally{t=void 0}},runWithCancellationToken:(e,n)=>{try{return t=e,n(He)}finally{t=void 0}},getLocalTypeParametersOfClassOrInterfaceOrTypeAlias:Z_,isDeclarationVisible:Vc,isPropertyAccessible:lO,getTypeOnlyAliasDeclaration:Ya,getMemberOverrideModifierStatus:function(e,t,n){if(!t.name)return 0;const r=ks(e),i=Au(r),o=wd(i),a=P_(r),s=yh(e)&&uu(i),c=(null==s?void 0:s.length)?wd(ge(s),i.thisType):void 0;return lB(e,a,cu(i),c,i,o,t.parent?Ev(t):Nv(t,16),Pv(t),Dv(t),!1,n)},isTypeParameterPossiblyReferenced:cS,typeHasCallOrConstructSignatures:wJ,getSymbolFlags:Ka,getTypeArgumentsForResolvedSignature:function(e){return void 0===e.mapper?void 0:Mk((e.target||e).typeParameters,e.mapper)},isLibType:jc};function Ke(e,t){if(e=uc(e,O_)){const n=[],r=[];for(;e;){const t=da(e);if(n.push([t,t.resolvedSignature]),t.resolvedSignature=void 0,RT(e)){const t=ua(ks(e)),n=t.type;r.push([t,n]),t.type=void 0}e=uc(e.parent,O_)}const i=t();for(const[e,t]of n)e.resolvedSignature=t;for(const[e,t]of r)e.type=t;return i}return t()}function Ge(e,t){const n=uc(e,L_);if(n){let t=e;do{da(t).skipDirectInference=!0,t=t.parent}while(t&&t!==n)}D=!0;const r=Ke(e,t);if(D=!1,n){let t=e;do{da(t).skipDirectInference=void 0,t=t.parent}while(t&&t!==n)}return r}function Xe(e,t,n,r){const i=pc(e,L_);Ee=n;const o=i?aL(i,t,r):void 0;return Ee=void 0,o}var Ye=new Map,et=new Map,rt=new Map,it=new Map,ot=new Map,at=new Map,st=new Map,ct=new Map,lt=new Map,_t=new Map,ut=new Map,dt=new Map,pt=new Map,ft=new Map,gt=new Map,ht=[],yt=new Map,bt=new Set,xt=Xo(4,"unknown"),kt=Xo(0,"__resolving__"),St=new Map,Tt=new Map,Ct=new Set,wt=Bs(1,"any"),Nt=Bs(1,"any",262144,"auto"),Dt=Bs(1,"any",void 0,"wildcard"),Ft=Bs(1,"any",void 0,"blocked string"),Et=Bs(1,"error"),Pt=Bs(1,"unresolved"),At=Bs(1,"any",65536,"non-inferrable"),It=Bs(1,"intrinsic"),Ot=Bs(2,"unknown"),jt=Bs(32768,"undefined"),Mt=H?jt:Bs(32768,"undefined",65536,"widening"),Rt=Bs(32768,"undefined",void 0,"missing"),Bt=_e?Rt:jt,Jt=Bs(32768,"undefined",void 0,"optional"),zt=Bs(65536,"null"),Ut=H?zt:Bs(65536,"null",65536,"widening"),Vt=Bs(4,"string"),Wt=Bs(8,"number"),$t=Bs(64,"bigint"),Ht=Bs(512,"false",void 0,"fresh"),Qt=Bs(512,"false"),Yt=Bs(512,"true",void 0,"fresh"),nn=Bs(512,"true");Yt.regularType=nn,Yt.freshType=Yt,nn.regularType=nn,nn.freshType=Yt,Ht.regularType=Qt,Ht.freshType=Ht,Qt.regularType=Qt,Qt.freshType=Ht;var on,sn=Pb([Qt,nn]),cn=Bs(4096,"symbol"),ln=Bs(16384,"void"),_n=Bs(131072,"never"),dn=Bs(131072,"never",262144,"silent"),pn=Bs(131072,"never",void 0,"implicit"),fn=Bs(131072,"never",void 0,"unreachable"),mn=Bs(67108864,"object"),gn=Pb([Vt,Wt]),hn=Pb([Vt,Wt,cn]),yn=Pb([Wt,$t]),vn=Pb([Vt,Wt,sn,$t,zt,jt]),bn=ex(["",""],[Wt]),xn=Xk(e=>{return 262144&e.flags?!(t=e).constraint&&!$h(t)||t.constraint===jn?t:t.restrictiveInstantiation||(t.restrictiveInstantiation=zs(t.symbol),t.restrictiveInstantiation.constraint=jn,t.restrictiveInstantiation):e;var t},()=>"(restrictive mapper)"),kn=Xk(e=>262144&e.flags?Dt:e,()=>"(permissive mapper)"),Sn=Bs(131072,"never",void 0,"unique literal"),Tn=Xk(e=>262144&e.flags?Sn:e,()=>"(unique literal mapper)"),Cn=Xk(e=>(!on||e!==Bn&&e!==Jn&&e!==zn||on(!0),e),()=>"(unmeasurable reporter)"),wn=Xk(e=>(!on||e!==Bn&&e!==Jn&&e!==zn||on(!1),e),()=>"(unreliable reporter)"),Nn=$s(void 0,P,l,l,l),Dn=$s(void 0,P,l,l,l);Dn.objectFlags|=2048;var Fn=$s(void 0,P,l,l,l);Fn.objectFlags|=141440;var En=Xo(2048,"__type");En.members=Gu();var Pn=$s(En,P,l,l,l),An=$s(void 0,P,l,l,l),In=H?Pb([jt,zt,An]):Ot,On=$s(void 0,P,l,l,l);On.instantiations=new Map;var Ln=$s(void 0,P,l,l,l);Ln.objectFlags|=262144;var jn=$s(void 0,P,l,l,l),Mn=$s(void 0,P,l,l,l),Rn=$s(void 0,P,l,l,l),Bn=zs(),Jn=zs();Jn.constraint=Bn;var zn=zs(),qn=zs(),Un=zs();Un.constraint=qn;var Vn,Wn,$n,Kn,Gn,Xn,Qn,Yn,Zn,er,rr,ir,or,ar,sr,cr,lr,_r,ur,dr,pr,fr,mr,gr,hr,yr,vr,br,xr,kr,Sr,Tr,Cr,wr,Nr,Dr,Fr,Er,Pr,Ar,Ir,Or,Lr,jr,Mr,Rr,Br,Jr,zr,qr,Ur,Vr,Wr,$r,Hr,Kr,Gr,Xr,Qr,Yr,Zr,ei,ti,ni,ri,ii,oi,ai=bg(1,"<>",0,wt),si=Ed(void 0,void 0,void 0,l,wt,void 0,0,0),ci=Ed(void 0,void 0,void 0,l,Et,void 0,0,0),li=Ed(void 0,void 0,void 0,l,wt,void 0,0,0),_i=Ed(void 0,void 0,void 0,l,dn,void 0,0,0),ui=Ah(Wt,Vt,!0),di=Ah(Vt,wt,!1),pi=new Map,mi={get yieldType(){return un.fail("Not supported")},get returnType(){return un.fail("Not supported")},get nextType(){return un.fail("Not supported")}},gi=wR(wt,wt,wt),hi=wR(dn,dn,dn),yi={iterableCacheKey:"iterationTypesOfAsyncIterable",iteratorCacheKey:"iterationTypesOfAsyncIterator",iteratorSymbolName:"asyncIterator",getGlobalIteratorType:function(e){return Dr||(Dr=Wy("AsyncIterator",3,e))||On},getGlobalIterableType:rv,getGlobalIterableIteratorType:av,getGlobalIteratorObjectType:function(e){return Ar||(Ar=Wy("AsyncIteratorObject",3,e))||On},getGlobalGeneratorType:function(e){return Ir||(Ir=Wy("AsyncGenerator",3,e))||On},getGlobalBuiltinIteratorTypes:function(){return Pr??(Pr=$y(["ReadableStreamAsyncIterator"],1))},resolveIterationType:(e,t)=>PM(e,t,_a.Type_of_await_operand_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member),mustHaveANextMethodDiagnostic:_a.An_async_iterator_must_have_a_next_method,mustBeAMethodDiagnostic:_a.The_0_property_of_an_async_iterator_must_be_a_method,mustHaveAValueDiagnostic:_a.The_type_returned_by_the_0_method_of_an_async_iterator_must_be_a_promise_for_a_type_with_a_value_property},vi={iterableCacheKey:"iterationTypesOfIterable",iteratorCacheKey:"iterationTypesOfIterator",iteratorSymbolName:"iterator",getGlobalIteratorType:function(e){return xr||(xr=Wy("Iterator",3,e))||On},getGlobalIterableType:dv,getGlobalIterableIteratorType:pv,getGlobalIteratorObjectType:function(e){return Sr||(Sr=Wy("IteratorObject",3,e))||On},getGlobalGeneratorType:function(e){return Tr||(Tr=Wy("Generator",3,e))||On},getGlobalBuiltinIteratorTypes:function(){return Er??(Er=$y(["ArrayIterator","MapIterator","SetIterator","StringIterator"],1))},resolveIterationType:(e,t)=>e,mustHaveANextMethodDiagnostic:_a.An_iterator_must_have_a_next_method,mustBeAMethodDiagnostic:_a.The_0_property_of_an_iterator_must_be_a_method,mustHaveAValueDiagnostic:_a.The_type_returned_by_the_0_method_of_an_iterator_must_have_a_value_property},bi=new Map,xi=new Map,ki=new Map,Si=0,Ti=0,Ci=0,wi=!1,Ni=0,Fi=[],Ei=[],Pi=[],Ai=0,Ii=[],Oi=[],Li=[],ji=0,Mi=[],Ri=[],Bi=0,Ji=fk(""),zi=mk(0),qi=gk({negative:!1,base10Value:"0"}),Ui=[],Vi=[],Wi=[],$i=0,Hi=!1,Ki=0,Gi=10,Xi=[],Qi=[],Yi=[],Zi=[],eo=[],to=[],no=[],ro=[],io=[],oo=[],ao=[],so=[],co=[],lo=[],_o=[],uo=[],po=[],fo=[],mo=[],go=0,ho=_y(),yo=_y(),bo=Pb(Oe($B.keys(),fk)),To=new Map,Co=new Map,wo=new Map,No=new Map,Fo=new Map,Eo=new Map,Ao=[[".mts",".mjs"],[".ts",".js"],[".cts",".cjs"],[".mjs",".mjs"],[".js",".js"],[".cjs",".cjs"],[".tsx",1===j.jsx?".jsx":".js"],[".jsx",".jsx"],[".json",".json"]];return function(){for(const t of e.getSourceFiles())GR(t,j);let t;Vn=new Map;for(const n of e.getSourceFiles())if(!n.redirectInfo){if(!Zp(n)){const e=n.locals.get("globalThis");if(null==e?void 0:e.declarations)for(const t of e.declarations)ho.add(Rp(t,_a.Declaration_name_conflicts_with_built_in_global_identifier_0,"globalThis"));ca(Ne,n.locals)}n.jsGlobalAugmentations&&ca(Ne,n.jsGlobalAugmentations),n.patternAmbientModules&&n.patternAmbientModules.length&&($n=K($n,n.patternAmbientModules)),n.moduleAugmentations.length&&(t||(t=[])).push(n.moduleAugmentations),n.symbol&&n.symbol.globalExports&&n.symbol.globalExports.forEach((e,t)=>{Ne.has(t)||Ne.set(t,e)})}if(t)for(const e of t)for(const t of e)pp(t.parent)&&la(t);if(function(){const e=De.escapedName,t=Ne.get(e);t?d(t.declarations,t=>{VT(t)||ho.add(Rp(t,_a.Declaration_name_conflicts_with_built_in_global_identifier_0,mc(e)))}):Ne.set(e,De)}(),ua(De).type=Mt,ua(Le).type=Wy("IArguments",0,!0),ua(xt).type=Et,ua(Fe).type=Js(16,Fe),Zn=Wy("Array",1,!0),Gn=Wy("Object",0,!0),Xn=Wy("Function",0,!0),Qn=Y&&Wy("CallableFunction",0,!0)||Xn,Yn=Y&&Wy("NewableFunction",0,!0)||Xn,rr=Wy("String",0,!0),ir=Wy("Number",0,!0),or=Wy("Boolean",0,!0),ar=Wy("RegExp",0,!0),cr=Rv(wt),(lr=Rv(Nt))===Nn&&(lr=$s(void 0,P,l,l,l)),er=bv("ReadonlyArray",1)||Zn,_r=er?kv(er,[wt]):cr,sr=bv("ThisType",1),t)for(const e of t)for(const t of e)pp(t.parent)||la(t);Vn.forEach(({firstFile:e,secondFile:t,conflictingSymbols:n})=>{if(n.size<8)n.forEach(({isBlockScoped:e,firstFileLocations:t,secondFileLocations:n},r)=>{const i=e?_a.Cannot_redeclare_block_scoped_variable_0:_a.Duplicate_identifier_0;for(const e of t)sa(e,i,r,n);for(const e of n)sa(e,i,r,t)});else{const r=Oe(n.keys()).join(", ");ho.add(aT(Rp(e,_a.Definitions_of_the_following_identifiers_conflict_with_those_in_another_file_Colon_0,r),Rp(t,_a.Conflicts_are_in_this_file))),ho.add(aT(Rp(t,_a.Definitions_of_the_following_identifiers_conflict_with_those_in_another_file_Colon_0,r),Rp(e,_a.Conflicts_are_in_this_file)))}}),Vn=void 0}(),He;function Io(e){return!(!dF(e)||!aD(e.name)||!dF(e.expression)&&!aD(e.expression)||(aD(e.expression)?"Symbol"!==gc(e.expression)||NN(e.expression)!==(Vy("Symbol",1160127,void 0)||xt):!aD(e.expression.expression)||"Symbol"!==gc(e.expression.name)||"globalThis"!==gc(e.expression.expression)||NN(e.expression.expression)!==Fe))}function Oo(e){return e?gt.get(e):void 0}function Lo(e,t){return e&>.set(e,t),t}function jo(e){if(e){const t=vd(e);if(t)if($E(e)){if(t.localJsxFragmentNamespace)return t.localJsxFragmentNamespace;const n=t.pragmas.get("jsxfrag");if(n){const e=Qe(n)?n[0]:n;if(t.localJsxFragmentFactory=tO(e.arguments.factory,M),lJ(t.localJsxFragmentFactory,Mo,e_),t.localJsxFragmentFactory)return t.localJsxFragmentNamespace=sb(t.localJsxFragmentFactory).escapedText}const r=VJ(e);if(r)return t.localJsxFragmentFactory=r,t.localJsxFragmentNamespace=sb(r).escapedText}else{const e=function(e){if(e.localJsxNamespace)return e.localJsxNamespace;const t=e.pragmas.get("jsx");if(t){const n=Qe(t)?t[0]:t;if(e.localJsxFactory=tO(n.arguments.factory,M),lJ(e.localJsxFactory,Mo,e_),e.localJsxFactory)return e.localJsxNamespace=sb(e.localJsxFactory).escapedText}}(t);if(e)return t.localJsxNamespace=e}}return ii||(ii="React",j.jsxFactory?(lJ(oi=tO(j.jsxFactory,M),Mo),oi&&(ii=sb(oi).escapedText)):j.reactNamespace&&(ii=fc(j.reactNamespace))),oi||(oi=mw.createQualifiedName(mw.createIdentifier(mc(ii)),"createElement")),ii}function Mo(e){return CT(e,-1,-1),vJ(e,Mo,void 0)}function Ro(e,t,n,...r){const i=zo(t,n,...r);return i.skippedOn=e,i}function Jo(e,t,...n){return e?Rp(e,t,...n):Qx(t,...n)}function zo(e,t,...n){const r=Jo(e,t,...n);return ho.add(r),r}function qo(e){return So(vd(e).fileName,[".cts",".cjs"])?_a.ECMAScript_imports_and_exports_cannot_be_written_in_a_CommonJS_file_under_verbatimModuleSyntax:_a.ECMAScript_imports_and_exports_cannot_be_written_in_a_CommonJS_file_under_verbatimModuleSyntax_Adjust_the_type_field_in_the_nearest_package_json_to_make_this_file_an_ECMAScript_module_or_adjust_your_verbatimModuleSyntax_module_and_moduleResolution_settings_in_TypeScript}function Uo(e,t){e?ho.add(t):yo.add({...t,category:2})}function Vo(e,t,n,...r){if(t.pos<0||t.end<0){if(!e)return;const i=vd(t);return void Uo(e,"message"in n?Gx(i,0,0,n,...r):Wp(i,n))}Uo(e,"message"in n?Rp(t,n,...r):zp(vd(t),t,n))}function Wo(e,t,n,...r){const i=zo(e,n,...r);return t&&aT(i,Rp(e,_a.Did_you_forget_to_use_await)),i}function $o(e,t){const n=Array.isArray(e)?d(e,Kc):Kc(e);return n&&aT(t,Rp(n,_a.The_declaration_was_marked_as_deprecated_here)),yo.add(t),t}function Ho(e){const t=Ts(e);return t&&u(e.declarations)>1?64&t.flags?$(e.declarations,Ko):v(e.declarations,Ko):!!e.valueDeclaration&&Ko(e.valueDeclaration)||u(e.declarations)&&v(e.declarations,Ko)}function Ko(e){return!!(536870912&Pz(e))}function Go(e,t,n){return $o(t,Rp(e,_a._0_is_deprecated,n))}function Xo(e,t,n){m++;const r=new s(33554432|e,t);return r.links=new QB,r.links.checkFlags=n||0,r}function Qo(e,t){const n=Xo(1,e);return n.links.type=t,n}function Yo(e,t){const n=Xo(4,e);return n.links.type=t,n}function ea(e){let t=0;return 2&e&&(t|=111551),1&e&&(t|=111550),4&e&&(t|=0),8&e&&(t|=900095),16&e&&(t|=110991),32&e&&(t|=899503),64&e&&(t|=788872),256&e&&(t|=899327),128&e&&(t|=899967),512&e&&(t|=110735),8192&e&&(t|=103359),32768&e&&(t|=46015),65536&e&&(t|=78783),262144&e&&(t|=526824),524288&e&&(t|=788968),2097152&e&&(t|=2097152),t}function ta(e,t){t.mergeId||(t.mergeId=UB,UB++),Xi[t.mergeId]=e}function na(e){const t=Xo(e.flags,e.escapedName);return t.declarations=e.declarations?e.declarations.slice():[],t.parent=e.parent,e.valueDeclaration&&(t.valueDeclaration=e.valueDeclaration),e.constEnumOnlyModule&&(t.constEnumOnlyModule=!0),e.members&&(t.members=new Map(e.members)),e.exports&&(t.exports=new Map(e.exports)),ta(t,e),t}function ia(e,t,n=!1){if(!(e.flags&ea(t.flags))||67108864&(t.flags|e.flags)){if(t===e)return e;if(!(33554432&e.flags)){const n=$a(e);if(n===xt)return t;if(n.flags&ea(t.flags)&&!(67108864&(t.flags|n.flags)))return r(e,t),t;e=na(n)}512&t.flags&&512&e.flags&&e.constEnumOnlyModule&&!t.constEnumOnlyModule&&(e.constEnumOnlyModule=!1),e.flags|=t.flags,t.valueDeclaration&&mg(e,t.valueDeclaration),se(e.declarations,t.declarations),t.members&&(e.members||(e.members=Gu()),ca(e.members,t.members,n)),t.exports&&(e.exports||(e.exports=Gu()),ca(e.exports,t.exports,n,e)),n||ta(e,t)}else 1024&e.flags?e!==Fe&&zo(t.declarations&&Cc(t.declarations[0]),_a.Cannot_augment_module_0_with_value_exports_because_it_resolves_to_a_non_module_entity,bc(e)):r(e,t);return e;function r(e,t){const n=!!(384&e.flags||384&t.flags),r=!!(2&e.flags||2&t.flags),o=n?_a.Enum_declarations_can_only_merge_with_namespace_or_other_enum_declarations:r?_a.Cannot_redeclare_block_scoped_variable_0:_a.Duplicate_identifier_0,a=t.declarations&&vd(t.declarations[0]),s=e.declarations&&vd(e.declarations[0]),c=xd(a,j.checkJs),l=xd(s,j.checkJs),_=bc(t);if(a&&s&&Vn&&!n&&a!==s){const n=-1===Zo(a.path,s.path)?a:s,o=n===a?s:a,u=z(Vn,`${n.path}|${o.path}`,()=>({firstFile:n,secondFile:o,conflictingSymbols:new Map})),d=z(u.conflictingSymbols,_,()=>({isBlockScoped:r,firstFileLocations:[],secondFileLocations:[]}));c||i(d.firstFileLocations,t),l||i(d.secondFileLocations,e)}else c||aa(t,o,_,e),l||aa(e,o,_,t)}function i(e,t){if(t.declarations)for(const n of t.declarations)ce(e,n)}}function aa(e,t,n,r){d(e.declarations,e=>{sa(e,t,n,r.declarations)})}function sa(e,t,n,r){const i=(Hm(e,!1)?Gm(e):Cc(e))||e,o=function(e,t,...n){const r=e?Rp(e,t,...n):Qx(t,...n);return ho.lookup(r)||(ho.add(r),r)}(i,t,n);for(const e of r||l){const t=(Hm(e,!1)?Gm(e):Cc(e))||e;if(t===i)continue;o.relatedInformation=o.relatedInformation||[];const r=Rp(t,_a._0_was_also_declared_here,n),a=Rp(t,_a.and_here);u(o.relatedInformation)>=5||$(o.relatedInformation,e=>0===nk(e,a)||0===nk(e,r))||aT(o,u(o.relatedInformation)?a:r)}}function ca(e,t,n=!1,r){t.forEach((t,i)=>{const o=e.get(i),a=o?ia(o,t,n):xs(t);r&&o&&(a.parent=r),e.set(i,a)})}function la(e){var t,n,r;const i=e.parent;if((null==(t=i.symbol.declarations)?void 0:t[0])===i)if(pp(i))ca(Ne,i.symbol.exports);else{let t=is(e,e,33554432&e.parent.parent.flags?void 0:_a.Invalid_module_name_in_augmentation_module_0_cannot_be_found,!1,!0);if(!t)return;if(t=ss(t),1920&t.flags)if($($n,e=>t===e.symbol)){const n=ia(i.symbol,t,!0);Kn||(Kn=new Map),Kn.set(e.text,n)}else{if((null==(n=t.exports)?void 0:n.get("__export"))&&(null==(r=i.symbol.exports)?void 0:r.size)){const e=Sd(t,"resolvedExports");for(const[n,r]of Oe(i.symbol.exports.entries()))e.has(n)&&!t.exports.has(n)&&ia(e.get(n),r)}ia(t,i.symbol)}else zo(e,_a.Cannot_augment_module_0_because_it_resolves_to_a_non_module_entity,e.text)}else un.assert(i.symbol.declarations.length>1)}function ua(e){if(33554432&e.flags)return e.links;const t=eJ(e);return Qi[t]??(Qi[t]=new QB)}function da(e){const t=ZB(e);return Yi[t]||(Yi[t]=new YB)}function pa(e,t,n){if(n){const r=xs(e.get(t));if(r){if(r.flags&n)return r;if(2097152&r.flags&&Ka(r)&n)return r}}}function fa(t,n){const r=vd(t),i=vd(n),o=Ep(t);if(r!==i){if(R&&(r.externalModuleIndicator||i.externalModuleIndicator)||!j.outFile||_v(n)||33554432&t.flags)return!0;if(a(n,t))return!0;const o=e.getSourceFiles();return o.indexOf(r)<=o.indexOf(i)}if(16777216&n.flags||_v(n)||DN(n))return!0;if(t.pos<=n.pos&&(!ND(t)||!sm(n.parent)||t.initializer||t.exclamationToken)){if(209===t.kind){const e=Th(n,209);return e?uc(e,lF)!==uc(t,lF)||t.pose===t?"quit":kD(e)?e.parent.parent===t:!J&&CD(e)&&(e.parent===t||FD(e.parent)&&e.parent.parent===t||pl(e.parent)&&e.parent.parent===t||ND(e.parent)&&e.parent.parent===t||TD(e.parent)&&e.parent.parent.parent===t));return!e||!(J||!CD(e))&&!!uc(n,t=>t===e?"quit":r_(t)&&!om(t))}return ND(t)?!c(t,n,!1):!Zs(t,t.parent)||!(V&&Xf(t)===Xf(n)&&a(n,t))}return!(!(282===n.parent.kind||278===n.parent.kind&&n.parent.isExportEquals)&&(278!==n.kind||!n.isExportEquals)&&(!a(n,t)||V&&Xf(t)&&(ND(t)||Zs(t,t.parent))&&c(t,n,!0)));function a(e,t){return s(e,t)}function s(e,t){return!!uc(e,n=>{if(n===o)return"quit";if(r_(n))return!om(n);if(ED(n))return t.pos=r&&o.pos<=i){const n=mw.createPropertyAccessExpression(mw.createThis(),e);if(DT(n.expression,n),DT(n,o),n.flowNode=o.returnFlowNode,!QS(rE(n,t,pw(t))))return!0}return!1}(e,P_(ks(t)),N(t.parent.members,ED),t.parent.pos,n.pos))return!0}}else if(173!==t.kind||Dv(t)||Xf(e)!==Xf(t))return!0;const i=tt(n.parent,CD);if(i&&i.expression===n){if(TD(i.parent))return!!s(i.parent.parent.parent,t)||"quit";if(FD(i.parent))return!!s(i.parent.parent,t)||"quit"}return!1})}function c(e,t,n){return!(t.end>e.end)&&void 0===uc(t,t=>{if(t===e)return"quit";switch(t.kind){case 220:return!0;case 173:return!n||!(ND(e)&&t.parent===e.parent||Zs(e,e.parent)&&t.parent===e.parent.parent)||"quit";case 242:switch(t.parent.kind){case 178:case 175:case 179:return!0;default:return!1}default:return!1}})}}function ma(e){return da(e).declarationRequiresScopeChange}function ga(e,t){da(e).declarationRequiresScopeChange=t}function ha(e,t,n){return t?aT(e,Rp(t,282===t.kind||279===t.kind||281===t.kind?_a._0_was_exported_here:_a._0_was_imported_here,n)):e}function ya(e){return Ze(e)?mc(e):Ap(e)}function va(e,t,n){if(!aD(e)||e.escapedText!==t||uJ(e)||_v(e))return!1;const r=em(e,!1,!1);let i=r;for(;i;){if(u_(i.parent)){const o=ks(i.parent);if(!o)break;if(pm(P_(o),t))return zo(e,_a.Cannot_find_name_0_Did_you_mean_the_static_member_1_0,ya(n),bc(o)),!0;if(i===r&&!Dv(i)&&pm(Au(o).thisType,t))return zo(e,_a.Cannot_find_name_0_Did_you_mean_the_instance_member_this_0,ya(n)),!0}i=i.parent}return!1}function ba(e){const t=xa(e);return!(!t||!ts(t,64,!0)||(zo(e,_a.Cannot_extend_an_interface_0_Did_you_mean_implements,Xd(t)),0))}function xa(e){switch(e.kind){case 80:case 212:return e.parent?xa(e.parent):void 0;case 234:if(ab(e.expression))return e.expression;default:return}}function ka(e){return"any"===e||"string"===e||"number"===e||"boolean"===e||"never"===e||"unknown"===e}function Sa(e,t,n){return!!t&&!!uc(e,e=>e===t||!!(e===n||r_(e)&&(!om(e)||3&Oh(e)))&&"quit")}function Ta(e){switch(e.kind){case 272:return e;case 274:return e.parent;case 275:return e.parent.parent;case 277:return e.parent.parent.parent;default:return}}function Ca(e){return e.declarations&&x(e.declarations,wa)}function wa(e){return 272===e.kind||271===e.kind||274===e.kind&&!!e.name||275===e.kind||281===e.kind||277===e.kind||282===e.kind||278===e.kind&&mh(e)||NF(e)&&2===tg(e)&&mh(e)||Sx(e)&&NF(e.parent)&&e.parent.left===e&&64===e.parent.operatorToken.kind&&Na(e.parent.right)||305===e.kind||304===e.kind&&Na(e.initializer)||261===e.kind&&Mm(e)||209===e.kind&&Mm(e.parent.parent)}function Na(e){return fh(e)||vF(e)&&sL(e)}function Da(e,t,n,r){const i=e.exports.get("export="),o=i?pm(P_(i),t,!0):e.exports.get(t),a=$a(o,r);return Ga(n,o,a,!1),a}function Ea(e){return AE(e)&&!e.isExportEquals||Nv(e,2048)||LE(e)||FE(e)}function Pa(t){return ju(t)?e.getEmitSyntaxForUsageLocation(vd(t),t):void 0}function Aa(e,t){if(100<=R&&R<=199&&99===Pa(e)){t??(t=rs(e,e,!0));const n=t&&bd(t);return n&&(ef(n)||".d.json.ts"===dO(n.fileName))}return!1}function Ia(t,n,r,i){const o=t&&Pa(i);if(t&&void 0!==o){const n=e.getImpliedNodeFormatForEmit(t);if(99===o&&1===n&&100<=R&&R<=199)return!0;if(99===o&&99===n)return!1}if(!W)return!1;if(!t||t.isDeclarationFile){const e=Da(n,"default",void 0,!0);return!(e&&$(e.declarations,Ea)||Da(n,fc("__esModule"),void 0,r))}return Fm(t)?"object"!=typeof t.externalModuleIndicator&&!Da(n,fc("__esModule"),void 0,r):us(n)}function Oa(t,n,r){var i;const o=null==(i=t.declarations)?void 0:i.find(sP),a=La(n);let s,c;if(up(t))s=t;else{if(o&&a&&102<=R&&R<=199&&1===Pa(a)&&99===e.getImpliedNodeFormatForEmit(o)&&(c=Da(t,"module.exports",n,r)))return Sk(j)?(Ga(n,c,void 0,!1),c):void zo(n.name,_a.Module_0_can_only_be_default_imported_using_the_1_flag,bc(t),"esModuleInterop");s=Da(t,"default",n,r)}if(!a)return s;const l=Aa(a,t),_=Ia(o,t,r,a);if(s||_||l){if(_||l){const e=ss(t,r)||$a(t,r);return Ga(n,t,e,!1),e}}else if(us(t)&&!W){const e=R>=5?"allowSyntheticDefaultImports":"esModuleInterop",r=t.exports.get("export=").valueDeclaration,i=zo(n.name,_a.Module_0_can_only_be_default_imported_using_the_1_flag,bc(t),e);r&&aT(i,Rp(r,_a.This_module_is_declared_with_export_and_can_only_be_used_with_a_default_import_when_using_the_0_flag,e))}else kE(n)?function(e,t){var n,r,i;if(null==(n=e.exports)?void 0:n.has(t.symbol.escapedName))zo(t.name,_a.Module_0_has_no_default_export_Did_you_mean_to_use_import_1_from_0_instead,bc(e),bc(t.symbol));else{const n=zo(t.name,_a.Module_0_has_no_default_export,bc(e)),o=null==(r=e.exports)?void 0:r.get("__export");if(o){const e=null==(i=o.declarations)?void 0:i.find(e=>{var t,n;return!!(IE(e)&&e.moduleSpecifier&&(null==(n=null==(t=rs(e,e.moduleSpecifier))?void 0:t.exports)?void 0:n.has("default")))});e&&aT(n,Rp(e,_a.export_Asterisk_does_not_re_export_a_default))}}}(t,n):Ra(t,t,n,Rl(n)&&n.propertyName||n.name);return Ga(n,s,void 0,!1),s}function La(e){switch(e.kind){case 274:return e.parent.moduleSpecifier;case 272:return JE(e.moduleReference)?e.moduleReference.expression:void 0;case 275:case 282:return e.parent.parent.moduleSpecifier;case 277:return e.parent.parent.parent.moduleSpecifier;default:return un.assertNever(e)}}function ja(e,t,n,r){var i;if(1536&e.flags){const o=hs(e).get(t),a=$a(o,r);return Ga(n,o,a,!1,null==(i=ua(e).typeOnlyExportStarMap)?void 0:i.get(t),t),a}}function Ma(e,t,n=!1){var r;const i=wm(e)||e.moduleSpecifier,o=rs(e,i),a=!dF(t)&&t.propertyName||t.name;if(!aD(a)&&11!==a.kind)return;const s=Hd(a),c=cs(o,i,!1,"default"===s&&W);if(c&&(s||11===a.kind)){if(up(o))return o;let l;l=o&&o.exports&&o.exports.get("export=")?pm(P_(c),s,!0):function(e,t){if(3&e.flags){const n=e.valueDeclaration.type;if(n)return $a(pm(Pk(n),t))}}(c,s),l=$a(l,n);let _=ja(c,s,t,n);if(void 0===_&&"default"===s){const e=null==(r=o.declarations)?void 0:r.find(sP);(Aa(i,o)||Ia(e,o,n,i))&&(_=ss(o,n)||$a(o,n))}const u=_&&l&&_!==l?function(e,t){if(e===xt&&t===xt)return xt;if(790504&e.flags)return e;const n=Xo(e.flags|t.flags,e.escapedName);return un.assert(e.declarations||t.declarations),n.declarations=Q(K(e.declarations,t.declarations),mt),n.parent=e.parent||t.parent,e.valueDeclaration&&(n.valueDeclaration=e.valueDeclaration),t.members&&(n.members=new Map(t.members)),e.exports&&(n.exports=new Map(e.exports)),n}(l,_):_||l;return Rl(t)&&Aa(i,o)&&"default"!==s?zo(a,_a.Named_imports_from_a_JSON_file_into_an_ECMAScript_module_are_not_allowed_when_module_is_set_to_0,fi[R]):u||Ra(o,c,e,a),u}}function Ra(e,t,n,r){var i;const o=es(e,n),a=Ap(r),s=aD(r)?nO(r,t):void 0;if(void 0!==s){const e=bc(s),t=zo(r,_a._0_has_no_exported_member_named_1_Did_you_mean_2,o,a,e);s.valueDeclaration&&aT(t,Rp(s.valueDeclaration,_a._0_is_declared_here,e))}else(null==(i=e.exports)?void 0:i.has("default"))?zo(r,_a.Module_0_has_no_exported_member_1_Did_you_mean_to_use_import_1_from_0_instead,o,a):function(e,t,n,r,i){var o,a;const s=null==(a=null==(o=tt(r.valueDeclaration,su))?void 0:o.locals)?void 0:a.get(Hd(t)),c=r.exports;if(s){const r=null==c?void 0:c.get("export=");if(r)Is(r,s)?function(e,t,n,r){R>=5?zo(t,Sk(j)?_a._0_can_only_be_imported_by_using_a_default_import:_a._0_can_only_be_imported_by_turning_on_the_esModuleInterop_flag_and_using_a_default_import,n):Em(e)?zo(t,Sk(j)?_a._0_can_only_be_imported_by_using_a_require_call_or_by_using_a_default_import:_a._0_can_only_be_imported_by_using_a_require_call_or_by_turning_on_the_esModuleInterop_flag_and_using_a_default_import,n):zo(t,Sk(j)?_a._0_can_only_be_imported_by_using_import_1_require_2_or_a_default_import:_a._0_can_only_be_imported_by_using_import_1_require_2_or_by_turning_on_the_esModuleInterop_flag_and_using_a_default_import,n,n,r)}(e,t,n,i):zo(t,_a.Module_0_has_no_exported_member_1,i,n);else{const e=c?b(lg(c),e=>!!Is(e,s)):void 0,r=e?zo(t,_a.Module_0_declares_1_locally_but_it_is_exported_as_2,i,n,bc(e)):zo(t,_a.Module_0_declares_1_locally_but_it_is_not_exported,i,n);s.declarations&&aT(r,...E(s.declarations,(e,t)=>Rp(e,0===t?_a._0_is_declared_here:_a.and_here,n)))}}else zo(t,_a.Module_0_has_no_exported_member_1,i,n)}(n,r,a,e,o)}function Ba(e){if(lE(e)&&e.initializer&&dF(e.initializer))return e.initializer}function Ja(e,t,n){const r=e.propertyName||e.name;if(Kd(r)){const t=La(e),r=t&&rs(e,t);if(r)return Oa(r,e,!!n)}const i=e.parent.parent.moduleSpecifier?Ma(e.parent.parent,e,n):11===r.kind?void 0:ts(r,t,!1,n);return Ga(e,void 0,i,!1),i}function qa(e,t){if(AF(e))return Ij(e).symbol;if(!e_(e)&&!ab(e))return;return ts(e,901119,!0,t)||(Ij(e),da(e).resolvedSymbol)}function Ua(e,t=!1){switch(e.kind){case 272:case 261:return function(e,t){const n=Ba(e);if(n){const e=wx(n.expression).arguments[0];return aD(n.name)?$a(pm(Mg(e),n.name.escapedText)):void 0}if(lE(e)||284===e.moduleReference.kind){const n=rs(e,wm(e)||Cm(e)),r=ss(n);if(r&&102<=R&&R<=199){const n=ja(r,"module.exports",e,t);if(n)return n}return Ga(e,n,r,!1),r}const r=Za(e.moduleReference,t);return function(e,t){if(Ga(e,void 0,t,!1)&&!e.isTypeOnly){const t=Ya(ks(e)),n=282===t.kind||279===t.kind,r=n?_a.An_import_alias_cannot_reference_a_declaration_that_was_exported_using_export_type:_a.An_import_alias_cannot_reference_a_declaration_that_was_imported_using_import_type,i=n?_a._0_was_exported_here:_a._0_was_imported_here,o=279===t.kind?"*":$d(t.name);aT(zo(e.moduleReference,r),Rp(t,i,o))}}(e,r),r}(e,t);case 274:return function(e,t){const n=rs(e,e.parent.moduleSpecifier);if(n)return Oa(n,e,t)}(e,t);case 275:return function(e,t){const n=e.parent.parent.moduleSpecifier,r=rs(e,n),i=cs(r,n,t,!1);return Ga(e,r,i,!1),i}(e,t);case 281:return function(e,t){const n=e.parent.moduleSpecifier,r=n&&rs(e,n),i=n&&cs(r,n,t,!1);return Ga(e,r,i,!1),i}(e,t);case 277:case 209:return function(e,t){if(PE(e)&&Kd(e.propertyName||e.name)){const n=La(e),r=n&&rs(e,n);if(r)return Oa(r,e,t)}const n=lF(e)?Yh(e):e.parent.parent.parent,r=Ba(n),i=Ma(n,r||e,t),o=e.propertyName||e.name;return r&&i&&aD(o)?$a(pm(P_(i),o.escapedText),t):(Ga(e,void 0,i,!1),i)}(e,t);case 282:return Ja(e,901119,t);case 278:case 227:return function(e,t){const n=qa(AE(e)?e.expression:e.right,t);return Ga(e,void 0,n,!1),n}(e,t);case 271:return function(e,t){if(au(e.parent)){const n=ss(e.parent.symbol,t);return Ga(e,void 0,n,!1),n}}(e,t);case 305:return ts(e.name,901119,!0,t);case 304:return qa(e.initializer,t);case 213:case 212:return function(e,t){if(NF(e.parent)&&e.parent.left===e&&64===e.parent.operatorToken.kind)return qa(e.parent.right,t)}(e,t);default:return un.fail()}}function Wa(e,t=901119){return!(!e||2097152!=(e.flags&(2097152|t))&&!(2097152&e.flags&&67108864&e.flags))}function $a(e,t){return!t&&Wa(e)?Ha(e):e}function Ha(e){un.assert(!!(2097152&e.flags),"Should only get Alias here.");const t=ua(e);if(t.aliasTarget)t.aliasTarget===kt&&(t.aliasTarget=xt);else{t.aliasTarget=kt;const n=Ca(e);if(!n)return un.fail();const r=Ua(n);t.aliasTarget===kt?t.aliasTarget=r||xt:zo(n,_a.Circular_definition_of_import_alias_0,bc(e))}return t.aliasTarget}function Ka(e,t,n){const r=t&&Ya(e),i=r&&IE(r),o=r&&(i?rs(r.moduleSpecifier,r.moduleSpecifier,!0):Ha(r.symbol)),a=i&&o?ys(o):void 0;let s,c=n?0:e.flags;for(;2097152&e.flags;){const t=Os(Ha(e));if(!i&&t===o||(null==a?void 0:a.get(t.escapedName))===t)break;if(t===xt)return-1;if(t===e||(null==s?void 0:s.has(t)))break;2097152&t.flags&&(s?s.add(t):s=new Set([e,t])),c|=t.flags,e=t}return c}function Ga(e,t,n,r,i,o){if(!e||dF(e))return!1;const a=ks(e);if(zl(e))return ua(a).typeOnlyDeclaration=e,!0;if(i){const e=ua(a);return e.typeOnlyDeclaration=i,a.escapedName!==o&&(e.typeOnlyExportStarName=o),!0}const s=ua(a);return Xa(s,t,r)||Xa(s,n,r)}function Xa(e,t,n){var r;if(t&&(void 0===e.typeOnlyDeclaration||n&&!1===e.typeOnlyDeclaration)){const n=(null==(r=t.exports)?void 0:r.get("export="))??t,i=n.declarations&&b(n.declarations,zl);e.typeOnlyDeclaration=i??ua(n).typeOnlyDeclaration??!1}return!!e.typeOnlyDeclaration}function Ya(e,t){var n;if(!(2097152&e.flags))return;const r=ua(e);if(void 0===r.typeOnlyDeclaration){r.typeOnlyDeclaration=!1;const t=$a(e);Ga(null==(n=e.declarations)?void 0:n[0],Ca(e)&&VA(e),t,!0)}return void 0===t?r.typeOnlyDeclaration||void 0:r.typeOnlyDeclaration&&Ka(279===r.typeOnlyDeclaration.kind?$a(ys(r.typeOnlyDeclaration.symbol.parent).get(r.typeOnlyExportStarName||e.escapedName)):Ha(r.typeOnlyDeclaration.symbol))&t?r.typeOnlyDeclaration:void 0}function Za(e,t){return 80===e.kind&&db(e)&&(e=e.parent),80===e.kind||167===e.parent.kind?ts(e,1920,!1,t):(un.assert(272===e.parent.kind),ts(e,901119,!1,t))}function es(e,t){return e.parent?es(e.parent,t)+"."+bc(e):bc(e,t,void 0,36)}function ts(e,t,n,r,i){if(Nd(e))return;const o=1920|(Em(e)?111551&t:0);let a;if(80===e.kind){const r=t===o||ey(e)?_a.Cannot_find_namespace_0:wN(sb(e)),s=Em(e)&&!ey(e)?function(e,t){if(Py(e.parent)){const n=function(e){if(uc(e,e=>Su(e)||16777216&e.flags?Dg(e):"quit"))return;const t=Vg(e);if(t&&HF(t)&&pg(t.expression)){const e=ks(t.expression.left);if(e)return ns(e)}if(t&&vF(t)&&pg(t.parent)&&HF(t.parent.parent)){const e=ks(t.parent.left);if(e)return ns(e)}if(t&&(Jf(t)||rP(t))&&NF(t.parent.parent)&&6===tg(t.parent.parent)){const e=ks(t.parent.parent.left);if(e)return ns(e)}const n=Ug(e);if(n&&r_(n)){const e=ks(n);return e&&e.valueDeclaration}}(e.parent);if(n)return Ue(n,e,t,void 0,!0)}}(e,t):void 0;if(a=xs(Ue(i||e,e,t,n||s?void 0:r,!0,!1)),!a)return xs(s)}else if(167===e.kind||212===e.kind){const r=167===e.kind?e.left:e.expression,s=167===e.kind?e.right:e.name;let c=ts(r,o,n,!1,i);if(!c||Nd(s))return;if(c===xt)return c;if(c.valueDeclaration&&Em(c.valueDeclaration)&&100!==bk(j)&&lE(c.valueDeclaration)&&c.valueDeclaration.initializer&&gL(c.valueDeclaration.initializer)){const e=c.valueDeclaration.initializer.arguments[0],t=rs(e,e);if(t){const e=ss(t);e&&(c=e)}}if(a=xs(pa(hs(c),s.escapedText,t)),!a&&2097152&c.flags&&(a=xs(pa(hs(Ha(c)),s.escapedText,t))),!a){if(!n){const n=es(c),r=Ap(s),i=nO(s,c);if(i)return void zo(s,_a._0_has_no_exported_member_named_1_Did_you_mean_2,n,r,bc(i));const o=xD(e)&&function(e){for(;xD(e.parent);)e=e.parent;return e}(e),a=Gn&&788968&t&&o&&!kF(o.parent)&&function(e){let t=sb(e),n=Ue(t,t,111551,void 0,!0);if(n){for(;xD(t.parent);){if(n=pm(P_(n),t.parent.right.escapedText),!n)return;t=t.parent}return n}}(o);if(a)return void zo(o,_a._0_refers_to_a_value_but_is_being_used_as_a_type_here_Did_you_mean_typeof_0,Mp(o));if(1920&t&&xD(e.parent)){const t=xs(pa(hs(c),s.escapedText,788968));if(t)return void zo(e.parent.right,_a.Cannot_access_0_1_because_0_is_a_type_but_not_a_namespace_Did_you_mean_to_retrieve_the_type_of_the_property_1_in_0_with_0_1,bc(t),mc(e.parent.right.escapedText))}zo(s,_a.Namespace_0_has_no_exported_member_1,n,r)}return}}else un.assertNever(e,"Unknown entity name kind.");return!ey(e)&&e_(e)&&(2097152&a.flags||278===e.parent.kind)&&Ga(ph(e),a,void 0,!0),a.flags&t||r?a:Ha(a)}function ns(e){const t=e.parent.valueDeclaration;if(t)return(Um(t)?$m(t):Pu(t)?Wm(t):void 0)||t}function rs(e,t,n){const r=1===bk(j)?_a.Cannot_find_module_0_Did_you_mean_to_set_the_moduleResolution_option_to_nodenext_or_to_add_aliases_to_the_paths_option:_a.Cannot_find_module_0_or_its_corresponding_type_declarations;return is(e,t,n?void 0:r,n)}function is(e,t,n,r=!1,i=!1){return ju(t)?os(e,t.text,n,r?void 0:t,i):void 0}function os(t,n,r,i,o=!1){var a,s,c,l,_,u,d,p,f,m,g,h;i&&Gt(n,"@types/")&&zo(i,_a.Cannot_import_type_declaration_files_Consider_importing_0_instead_of_1,Xt(n,"@types/"),n);const y=fg(n,!0);if(y)return y;const v=vd(t),b=ju(t)?t:(null==(a=gE(t)?t:t.parent&&gE(t.parent)&&t.parent.name===t?t.parent:void 0)?void 0:a.name)||(null==(s=df(t)?t:void 0)?void 0:s.argument.literal)||(lE(t)&&t.initializer&&Lm(t.initializer,!0)?t.initializer.arguments[0]:void 0)||(null==(c=uc(t,_f))?void 0:c.arguments[0])||(null==(l=uc(t,en(xE,XP,IE)))?void 0:l.moduleSpecifier)||(null==(_=uc(t,Tm))?void 0:_.moduleReference.expression),x=b&&ju(b)?e.getModeForUsageLocation(v,b):e.getDefaultResolutionModeForFile(v),k=bk(j),S=null==(u=e.getResolvedModule(v,n,x))?void 0:u.resolvedModule,T=i&&S&&WV(j,S,v),C=S&&(!T||T===_a.Module_0_was_resolved_to_1_but_jsx_is_not_set)&&e.getSourceFile(S.resolvedFileName);if(C){if(T&&zo(i,T,n,S.resolvedFileName),S.resolvedUsingTsExtension&&uO(n)){const e=(null==(d=uc(t,xE))?void 0:d.importClause)||uc(t,en(bE,IE));(i&&e&&!e.isTypeOnly||uc(t,_f))&&zo(i,_a.A_declaration_file_cannot_be_imported_without_import_type_Did_you_mean_to_import_an_implementation_file_0_instead,function(e){const t=WS(n,e);if(Ok(R)||99===x){const r=uO(n)&&MR(j);return t+(".mts"===e||".d.mts"===e?r?".mts":".mjs":".cts"===e||".d.mts"===e?r?".cts":".cjs":r?".ts":".js")}return t}(un.checkDefined(bb(n))))}else if(S.resolvedUsingTsExtension&&!MR(j,v.fileName)){const e=(null==(p=uc(t,xE))?void 0:p.importClause)||uc(t,en(bE,IE));if(i&&!(null==e?void 0:e.isTypeOnly)&&!uc(t,iF)){const e=un.checkDefined(bb(n));zo(i,_a.An_import_path_can_only_end_with_a_0_extension_when_allowImportingTsExtensions_is_enabled,e)}}else if(j.rewriteRelativeImportExtensions&&!(33554432&t.flags)&&!uO(n)&&!df(t)&&!ql(t)){const t=xg(n,j);if(!S.resolvedUsingTsExtension&&t)zo(i,_a.This_relative_import_path_is_unsafe_to_rewrite_because_it_looks_like_a_file_name_but_actually_resolves_to_0,oa(Bo(v.fileName,e.getCurrentDirectory()),S.resolvedFileName,My(e)));else if(S.resolvedUsingTsExtension&&!t&&Xy(C,e))zo(i,_a.This_import_uses_a_0_extension_to_resolve_to_an_input_TypeScript_file_but_will_not_be_rewritten_during_emit_because_it_is_not_a_relative_path,Po(n));else if(S.resolvedUsingTsExtension&&t){const t=null==(f=e.getRedirectFromSourceFile(C.path))?void 0:f.resolvedRef;if(t){const n=!e.useCaseSensitiveFileNames(),r=e.getCommonSourceDirectory(),o=lU(t.commandLine,n);ra(r,o,n)!==ra(j.outDir||r,t.commandLine.options.outDir||o,n)&&zo(i,_a.This_import_path_is_unsafe_to_rewrite_because_it_resolves_to_another_project_and_the_relative_path_between_the_projects_output_files_is_not_the_same_as_the_relative_path_between_its_input_files)}}}if(C.symbol){if(i&&S.isExternalLibraryImport&&!YS(S.extension)&&as(!1,i,v,x,S,n),i&&(100===R||101===R)){const e=1===v.impliedNodeFormat&&!uc(t,_f)||!!uc(t,bE),r=uc(t,e=>iF(e)||IE(e)||xE(e)||XP(e));if(e&&99===C.impliedNodeFormat&&!_C(r))if(uc(t,bE))zo(i,_a.Module_0_cannot_be_imported_using_this_construct_The_specifier_only_resolves_to_an_ES_module_which_cannot_be_imported_with_require_Use_an_ECMAScript_import_instead,n);else{let e;const t=tT(v.fileName);".ts"!==t&&".js"!==t&&".tsx"!==t&&".jsx"!==t||(e=pd(v));const o=273===(null==r?void 0:r.kind)&&(null==(m=r.importClause)?void 0:m.isTypeOnly)?_a.Type_only_import_of_an_ECMAScript_module_from_a_CommonJS_module_must_have_a_resolution_mode_attribute:206===(null==r?void 0:r.kind)?_a.Type_import_of_an_ECMAScript_module_from_a_CommonJS_module_must_have_a_resolution_mode_attribute:_a.The_current_file_is_a_CommonJS_module_whose_imports_will_produce_require_calls_however_the_referenced_file_is_an_ECMAScript_module_and_cannot_be_imported_with_require_Consider_writing_a_dynamic_import_0_call_instead;ho.add(zp(vd(i),i,Zx(e,o,n)))}}return xs(C.symbol)}i&&r&&!SC(i)&&zo(i,_a.File_0_is_not_a_module,C.fileName)}else{if($n){const e=Kt($n,e=>e.pattern,n);if(e){const t=Kn&&Kn.get(n);return xs(t||e.symbol)}}if(i){if((!S||YS(S.extension)||void 0!==T)&&T!==_a.Could_not_find_a_declaration_file_for_module_0_1_implicitly_has_an_any_type){if(r){if(S){const t=e.getRedirectFromSourceFile(S.resolvedFileName);if(null==t?void 0:t.outputDts)return void zo(i,_a.Output_file_0_has_not_been_built_from_source_file_1,t.outputDts,S.resolvedFileName)}if(T)zo(i,T,n,S.resolvedFileName);else{const t=vo(n)&&!xo(n),o=3===k||99===k;if(!Nk(j)&&ko(n,".json")&&1!==k&&Lk(j))zo(i,_a.Cannot_find_module_0_Consider_using_resolveJsonModule_to_import_module_with_json_extension,n);else if(99===x&&o&&t){const t=Bo(n,Do(v.path)),r=null==(g=Ao.find(([n,r])=>e.fileExists(t+n)))?void 0:g[1];r?zo(i,_a.Relative_import_paths_need_explicit_file_extensions_in_ECMAScript_imports_when_moduleResolution_is_node16_or_nodenext_Did_you_mean_0,n+r):zo(i,_a.Relative_import_paths_need_explicit_file_extensions_in_ECMAScript_imports_when_moduleResolution_is_node16_or_nodenext_Consider_adding_an_extension_to_the_import_path)}else(null==(h=e.getResolvedModule(v,n,x))?void 0:h.alternateResult)?Vo(!0,i,Zx(dd(v,e,n,x,n),r,n)):zo(i,r,n)}}return}o?zo(i,_a.Invalid_module_name_in_augmentation_Module_0_resolves_to_an_untyped_module_at_1_which_cannot_be_augmented,n,S.resolvedFileName):as(ne&&!!r,i,v,x,S,n)}}}function as(t,n,r,i,{packageId:o,resolvedFileName:a},s){if(SC(n))return;let c;!Cs(s)&&o&&(c=dd(r,e,s,i,o.name)),Vo(t,n,Zx(c,_a.Could_not_find_a_declaration_file_for_module_0_1_implicitly_has_an_any_type,s,a))}function ss(e,t){if(null==e?void 0:e.exports){const n=function(e,t){if(!e||e===xt||e===t||1===t.exports.size||2097152&e.flags)return e;const n=ua(e);if(n.cjsExportMerged)return n.cjsExportMerged;const r=33554432&e.flags?e:na(e);return r.flags=512|r.flags,void 0===r.exports&&(r.exports=Gu()),t.exports.forEach((e,t)=>{"export="!==t&&r.exports.set(t,r.exports.has(t)?ia(r.exports.get(t),e):e)}),r===e&&(ua(r).resolvedExports=void 0,ua(r).resolvedMembers=void 0),ua(r).cjsExportMerged=r,n.cjsExportMerged=r}(xs($a(e.exports.get("export="),t)),xs(e));return xs(n)||e}}function cs(t,n,r,i){var o;const a=ss(t,r);if(!r&&a){if(!(i||1539&a.flags||Hu(a,308))){const e=R>=5?"allowSyntheticDefaultImports":"esModuleInterop";return zo(n,_a.This_module_can_only_be_referenced_with_ECMAScript_imports_Slashexports_by_turning_on_the_0_flag_and_referencing_its_default_export,e),a}const s=n.parent,c=xE(s)&&Sg(s);if(c||_f(s)){const l=_f(s)?s.arguments[0]:s.moduleSpecifier,_=P_(a),u=fL(_,a,t,l);if(u)return _s(a,u,s);const d=null==(o=null==t?void 0:t.declarations)?void 0:o.find(sP),p=Pa(l);let f;if(c&&d&&102<=R&&R<=199&&1===p&&99===e.getImpliedNodeFormatForEmit(d)&&(f=Da(a,"module.exports",c,r)))return i||1539&a.flags||zo(n,_a.This_module_can_only_be_referenced_with_ECMAScript_imports_Slashexports_by_turning_on_the_0_flag_and_referencing_its_default_export,"esModuleInterop"),Sk(j)&&ls(_)?_s(f,_,s):f;const m=d&&function(e,t){return 99===e&&1===t}(p,e.getImpliedNodeFormatForEmit(d));if((Sk(j)||m)&&(ls(_)||pm(_,"default",!0)||m))return _s(a,3670016&_.flags?mL(_,a,t,l):pL(a,a.parent),s)}}return a}function ls(e){return $(fm(e,0))||$(fm(e,1))}function _s(e,t,n){const r=Xo(e.flags,e.escapedName);r.declarations=e.declarations?e.declarations.slice():[],r.parent=e.parent,r.links.target=e,r.links.originatingImport=n,e.valueDeclaration&&(r.valueDeclaration=e.valueDeclaration),e.constEnumOnlyModule&&(r.constEnumOnlyModule=!0),e.members&&(r.members=new Map(e.members)),e.exports&&(r.exports=new Map(e.exports));const i=Cp(t);return r.links.type=$s(r,i.members,l,l,i.indexInfos),r}function us(e){return void 0!==e.exports.get("export=")}function ds(e){return lg(ys(e))}function ps(e,t){const n=ys(t);if(n)return n.get(e)}function fs(e){return!(402784252&e.flags||1&gx(e)||OC(e)||rw(e))}function hs(e){return 6256&e.flags?Sd(e,"resolvedExports"):1536&e.flags?ys(e):e.exports||P}function ys(e){const t=ua(e);if(!t.resolvedExports){const{exports:n,typeOnlyExportStarMap:r}=bs(e);t.resolvedExports=n,t.typeOnlyExportStarMap=r}return t.resolvedExports}function vs(e,t,n,r){t&&t.forEach((t,i)=>{if("default"===i)return;const o=e.get(i);if(o){if(n&&r&&o&&$a(o)!==$a(t)){const e=n.get(i);e.exportsWithDuplicate?e.exportsWithDuplicate.push(r):e.exportsWithDuplicate=[r]}}else e.set(i,t),n&&r&&n.set(i,{specifierText:Xd(r.moduleSpecifier)})})}function bs(e){const t=[];let n;const r=new Set,i=function e(i,o,a){if(!a&&(null==i?void 0:i.exports)&&i.exports.forEach((e,t)=>r.add(t)),!(i&&i.exports&&ce(t,i)))return;const s=new Map(i.exports),c=i.exports.get("__export");if(c){const t=Gu(),n=new Map;if(c.declarations)for(const r of c.declarations){vs(t,e(rs(r,r.moduleSpecifier),r,a||r.isTypeOnly),n,r)}n.forEach(({exportsWithDuplicate:e},t)=>{if("export="!==t&&e&&e.length&&!s.has(t))for(const r of e)ho.add(Rp(r,_a.Module_0_has_already_exported_a_member_named_1_Consider_explicitly_re_exporting_to_resolve_the_ambiguity,n.get(t).specifierText,mc(t)))}),vs(s,t)}return(null==o?void 0:o.isTypeOnly)&&(n??(n=new Map),s.forEach((e,t)=>n.set(t,o))),s}(e=ss(e))||P;return n&&r.forEach(e=>n.delete(e)),{exports:i,typeOnlyExportStarMap:n}}function xs(e){let t;return e&&e.mergeId&&(t=Xi[e.mergeId])?t:e}function ks(e){return xs(e.symbol&&Cd(e.symbol))}function Ss(e){return au(e)?ks(e):void 0}function Ts(e){return xs(e.parent&&Cd(e.parent))}function ws(e){var t,n;return(220===(null==(t=e.valueDeclaration)?void 0:t.kind)||219===(null==(n=e.valueDeclaration)?void 0:n.kind))&&Ss(e.valueDeclaration.parent)||e}function Ns(t,n,r){const i=Ts(t);if(i&&!(262144&t.flags))return _(i);const o=B(t.declarations,e=>{if(!cp(e)&&e.parent){if(cc(e.parent))return ks(e.parent);if(hE(e.parent)&&e.parent.parent&&ss(ks(e.parent.parent))===t)return ks(e.parent.parent)}if(AF(e)&&NF(e.parent)&&64===e.parent.operatorToken.kind&&Sx(e.parent.left)&&ab(e.parent.left.expression))return eg(e.parent.left)||Ym(e.parent.left.expression)?ks(vd(e)):(Ij(e.parent.left.expression),da(e.parent.left.expression).resolvedSymbol)});if(!u(o))return;const a=B(o,e=>Es(e,t)?e:void 0);let s=[],c=[];for(const e of a){const[t,...n]=_(e);s=ie(s,t),c=se(c,n)}return K(s,c);function _(i){const o=B(i.declarations,d),a=n&&function(t,n){const r=vd(n),i=ZB(r),o=ua(t);let a;if(o.extendedContainersByFile&&(a=o.extendedContainersByFile.get(i)))return a;if(r&&r.imports){for(const e of r.imports){if(ey(e))continue;const r=rs(n,e,!0);r&&Es(r,t)&&(a=ie(a,r))}if(u(a))return(o.extendedContainersByFile||(o.extendedContainersByFile=new Map)).set(i,a),a}if(o.extendedContainers)return o.extendedContainers;const s=e.getSourceFiles();for(const e of s){if(!rO(e))continue;const n=ks(e);Es(n,t)&&(a=ie(a,n))}return o.extendedContainers=a||l}(t,n),s=function(e,t){const n=!!u(e.declarations)&&ge(e.declarations);if(111551&t&&n&&n.parent&&lE(n.parent)&&(uF(n)&&n===n.parent.initializer||qD(n)&&n===n.parent.type))return ks(n.parent)}(i,r);if(n&&i.flags&Ks(r)&&Gs(i,n,1920,!1))return ie(K(K([i],o),a),s);const c=!(i.flags&Ks(r))&&788968&i.flags&&524288&Au(i).flags&&111551===r?Hs(n,e=>rd(e,e=>{if(e.flags&Ks(r)&&P_(e)===Au(i))return e})):void 0;let _=c?[c,...o,i]:[...o,i];return _=ie(_,s),_=se(_,a),_}function d(e){return i&&Ds(e,i)}}function Ds(e,t){const n=oc(e),r=n&&n.exports&&n.exports.get("export=");return r&&Is(r,t)?n:void 0}function Es(e,t){if(e===Ts(t))return t;const n=e.exports&&e.exports.get("export=");if(n&&Is(n,t))return e;const r=hs(e),i=r.get(t.escapedName);return i&&Is(i,t)?i:rd(r,e=>{if(Is(e,t))return e})}function Is(e,t){if(xs($a(xs(e)))===xs($a(xs(t))))return e}function Os(e){return xs(e&&!!(1048576&e.flags)&&e.exportSymbol||e)}function Ls(e,t){return!!(111551&e.flags||2097152&e.flags&&111551&Ka(e,!t))}function js(e){var t;const n=new c(He,e);return p++,n.id=p,null==(t=Hn)||t.recordType(n),n}function Ms(e,t){const n=js(e);return n.symbol=t,n}function Rs(e){return new c(He,e)}function Bs(e,t,n=0,r){!function(e,t){const n=`${e},${t??""}`;Ct.has(n)&&un.fail(`Duplicate intrinsic type name ${e}${t?` (${t})`:""}; you may need to pass a name to createIntrinsicType.`),Ct.add(n)}(t,r);const i=js(e);return i.intrinsicName=t,i.debugIntrinsicName=r,i.objectFlags=52953088|n,i}function Js(e,t){const n=Ms(524288,t);return n.objectFlags=e,n.members=void 0,n.properties=void 0,n.callSignatures=void 0,n.constructSignatures=void 0,n.indexInfos=void 0,n}function zs(e){return Ms(262144,e)}function qs(e){return 95===e.charCodeAt(0)&&95===e.charCodeAt(1)&&95!==e.charCodeAt(2)&&64!==e.charCodeAt(2)&&35!==e.charCodeAt(2)}function Us(e){let t;return e.forEach((e,n)=>{Vs(e,n)&&(t||(t=[])).push(e)}),t||l}function Vs(e,t){return!qs(t)&&Ls(e)}function Ws(e,t,n,r,i){const o=e;return o.members=t,o.properties=l,o.callSignatures=n,o.constructSignatures=r,o.indexInfos=i,t!==P&&(o.properties=Us(t)),o}function $s(e,t,n,r,i){return Ws(Js(16,e),t,n,r,i)}function Hs(e,t){let n;for(let r=e;r;r=r.parent){if(su(r)&&r.locals&&!Yp(r)&&(n=t(r.locals,void 0,!0,r)))return n;switch(r.kind){case 308:if(!Zp(r))break;case 268:const e=ks(r);if(n=t((null==e?void 0:e.exports)||P,void 0,!0,r))return n;break;case 264:case 232:case 265:let i;if((ks(r).members||P).forEach((e,t)=>{788968&e.flags&&(i||(i=Gu())).set(t,e)}),i&&(n=t(i,void 0,!1,r)))return n}}return t(Ne,void 0,!0)}function Ks(e){return 111551===e?111551:1920}function Gs(e,t,n,r,i=new Map){if(!e||function(e){if(e.declarations&&e.declarations.length){for(const t of e.declarations)switch(t.kind){case 173:case 175:case 178:case 179:continue;default:return!1}return!0}return!1}(e))return;const o=ua(e),a=o.accessibleChainCache||(o.accessibleChainCache=new Map),s=Hs(t,(e,t,n,r)=>r),c=`${r?0:1}|${s?ZB(s):0}|${n}`;if(a.has(c))return a.get(c);const l=eJ(e);let _=i.get(l);_||i.set(l,_=[]);const u=Hs(t,d);return a.set(c,u),u;function d(n,i,o){if(!ce(_,n))return;const a=function(n,i,o){if(f(n.get(e.escapedName),void 0,i))return[e];return rd(n,n=>{if(2097152&n.flags&&"export="!==n.escapedName&&"default"!==n.escapedName&&!(hx(n)&&t&&rO(vd(t)))&&(!r||$(n.declarations,Tm))&&(!o||!$(n.declarations,Sm))&&(i||!Hu(n,282))){const e=m(n,Ha(n),i);if(e)return e}if(n.escapedName===e.escapedName&&n.exportSymbol&&f(xs(n.exportSymbol),void 0,i))return[e]})||(n===Ne?m(Fe,Fe,i):void 0)}(n,i,o);return _.pop(),a}function p(e,n){return!Xs(e,t,n)||!!Gs(e.parent,t,Ks(n),r,i)}function f(t,r,i){return(e===(r||t)||xs(e)===xs(r||t))&&!$(t.declarations,cc)&&(i||p(xs(t),n))}function m(e,t,r){if(f(e,t,r))return[e];const i=hs(t),o=i&&d(i,!0);return o&&p(e,Ks(n))?[e].concat(o):void 0}}function Xs(e,t,n){let r=!1;return Hs(t,t=>{let i=xs(t.get(e.escapedName));if(!i)return!1;if(i===e)return!0;const o=2097152&i.flags&&!Hu(i,282);return i=o?Ha(i):i,!!((o?Ka(i):i.flags)&n)&&(r=!0,!0)}),r}function Qs(e,t){return 0===rc(e,t,111551,!1,!0).accessibility}function Ys(e,t,n){return 0===rc(e,t,n,!1,!1).accessibility}function ec(e,t,n,r,i,o){if(!u(e))return;let a,s=!1;for(const c of e){const e=Gs(c,t,r,!1);if(e){a=c;const t=lc(e[0],i);if(t)return t}if(o&&$(c.declarations,cc)){if(i){s=!0;continue}return{accessibility:0}}const l=ec(Ns(c,t,r),t,n,n===c?Ks(r):r,i,o);if(l)return l}return s?{accessibility:0}:a?{accessibility:1,errorSymbolName:bc(n,t,r),errorModuleName:a!==n?bc(a,t,1920):void 0}:void 0}function tc(e,t,n,r){return rc(e,t,n,r,!0)}function rc(e,t,n,r,i){if(e&&t){const o=ec([e],t,e,n,r,i);if(o)return o;const a=d(e.declarations,oc);return a&&a!==oc(t)?{accessibility:2,errorSymbolName:bc(e,t,n),errorModuleName:bc(a),errorNode:Em(t)?t:void 0}:{accessibility:1,errorSymbolName:bc(e,t,n)}}return{accessibility:0}}function oc(e){const t=uc(e,sc);return t&&ks(t)}function sc(e){return cp(e)||308===e.kind&&Zp(e)}function cc(e){return lp(e)||308===e.kind&&Zp(e)}function lc(e,t){let n;if(v(N(e.declarations,e=>80!==e.kind),function(t){var n,i;if(!Vc(t)){const o=Ta(t);if(o&&!Nv(o,32)&&Vc(o.parent))return r(t,o);if(lE(t)&&WF(t.parent.parent)&&!Nv(t.parent.parent,32)&&Vc(t.parent.parent.parent))return r(t,t.parent.parent);if(wp(t)&&!Nv(t,32)&&Vc(t.parent))return r(t,t);if(lF(t)){if(2097152&e.flags&&Em(t)&&(null==(n=t.parent)?void 0:n.parent)&&lE(t.parent.parent)&&(null==(i=t.parent.parent.parent)?void 0:i.parent)&&WF(t.parent.parent.parent.parent)&&!Nv(t.parent.parent.parent.parent,32)&&t.parent.parent.parent.parent.parent&&Vc(t.parent.parent.parent.parent.parent))return r(t,t.parent.parent.parent.parent);if(2&e.flags){const e=nc(t);if(170===e.kind)return!1;const n=e.parent.parent;return 244===n.kind&&(!!Nv(n,32)||!!Vc(n.parent)&&r(t,n))}}return!1}return!0}))return{accessibility:0,aliasesToMakeVisible:n};function r(e,r){return t&&(da(e).isVisible=!0,n=le(n,r)),!0}}function dc(e){let t;return t=187===e.parent.kind||234===e.parent.kind&&!wf(e.parent)||168===e.parent.kind||183===e.parent.kind&&e.parent.parameterName===e?1160127:167===e.kind||212===e.kind||272===e.parent.kind||167===e.parent.kind&&e.parent.left===e||212===e.parent.kind&&e.parent.expression===e||213===e.parent.kind&&e.parent.expression===e?1920:788968,t}function vc(e,t,n=!0){const r=dc(e),i=sb(e),o=Ue(t,i.escapedText,r,void 0,!1);return o&&262144&o.flags&&788968&r||!o&&lv(i)&&0===tc(ks(em(i,!1,!1)),i,r,!1).accessibility?{accessibility:0}:o?lc(o,n)||{accessibility:1,errorSymbolName:Xd(i),errorNode:i}:{accessibility:3,errorSymbolName:Xd(i),errorNode:i}}function bc(e,t,n,r=4,i){let o=70221824,a=0;2&r&&(o|=128),1&r&&(o|=512),8&r&&(o|=16384),32&r&&(a|=4),16&r&&(a|=1);const s=4&r?xe.symbolToNode:xe.symbolToEntityName;return i?c(i).getText():ad(c);function c(r){const i=s(e,n,t,o,a),c=308===(null==t?void 0:t.kind)?bU():vU(),l=t&&vd(t);return c.writeNode(4,i,l,r),r}}function kc(e,t,n=0,r,i,o,a,s){return i?c(i).getText():ad(c);function c(i){let c;c=262144&n?1===r?186:185:1===r?181:180;const l=xe.signatureToSignatureDeclaration(e,c,t,70222336|Ac(n),void 0,void 0,o,a,s),_=xU(),u=t&&vd(t);return _.writeNode(4,l,u,Ly(i)),i}}function Tc(e,t,n=1064960,r=Oy(""),i,o,a){const s=!i&&j.noErrorTruncation||1&n,c=xe.typeToTypeNode(e,t,70221824|Ac(n)|(s?1:0),void 0,void 0,i,o,a);if(void 0===c)return un.fail("should always get typenode");const l=e!==Pt?vU():yU(),_=t&&vd(t);l.writeNode(4,c,_,r);const u=r.getText(),d=i||(s?2*Wu:2*Vu);return d&&u&&u.length>=d?u.substr(0,d-3)+"...":u}function wc(e,t){let n=Pc(e.symbol)?Tc(e,e.symbol.valueDeclaration):Tc(e),r=Pc(t.symbol)?Tc(t,t.symbol.valueDeclaration):Tc(t);return n===r&&(n=Fc(e),r=Fc(t)),[n,r]}function Fc(e){return Tc(e,void 0,64)}function Pc(e){return e&&!!e.valueDeclaration&&V_(e.valueDeclaration)&&!vS(e.valueDeclaration)}function Ac(e=0){return 848330095&e}function Ic(e){return!!(e.symbol&&32&e.symbol.flags&&(e===mu(e.symbol)||524288&e.flags&&16777216&gx(e)))}function Oc(e){return Pk(e)}function jc(t){var n;const r=4&gx(t)?t.target.symbol:t.symbol;return rw(t)||!!(null==(n=null==r?void 0:r.declarations)?void 0:n.some(t=>e.isSourceFileDefaultLibrary(vd(t))))}function Mc(e,t,n=16384,r){return r?i(r).getText():ad(i);function i(r){const i=70222336|Ac(n),o=xe.typePredicateToTypePredicateNode(e,t,i),a=vU(),s=t&&vd(t);return a.writeNode(4,o,s,r),r}}function Bc(e){return 2===e?"private":4===e?"protected":"public"}function Jc(e){return e&&e.parent&&269===e.parent.kind&&fp(e.parent.parent)}function zc(e){return 308===e.kind||cp(e)}function qc(e,t){const n=ua(e).nameType;if(n){if(384&n.flags){const e=""+n.value;return ms(e,yk(j))||JT(e)?JT(e)&&Gt(e,"-")?`[${e}]`:e:`"${xy(e,34)}"`}if(8192&n.flags)return`[${Uc(n.symbol,t)}]`}}function Uc(e,t){var n;if((null==(n=null==t?void 0:t.remappedSymbolReferences)?void 0:n.has(eJ(e)))&&(e=t.remappedSymbolReferences.get(eJ(e))),t&&"default"===e.escapedName&&!(16384&t.flags)&&(!(16777216&t.flags)||!e.declarations||t.enclosingDeclaration&&uc(e.declarations[0],zc)!==uc(t.enclosingDeclaration,zc)))return"default";if(e.declarations&&e.declarations.length){let n=f(e.declarations,e=>Cc(e)?e:void 0);const r=n&&Cc(n);if(n&&r){if(fF(n)&&ng(n))return yc(e);if(kD(r)&&!(4096&rx(e))){const n=ua(e).nameType;if(n&&384&n.flags){const n=qc(e,t);if(void 0!==n)return n}}return Ap(r)}if(n||(n=e.declarations[0]),n.parent&&261===n.parent.kind)return Ap(n.parent.name);switch(n.kind){case 232:case 219:case 220:return!t||t.encounteredError||131072&t.flags||(t.encounteredError=!0),232===n.kind?"(Anonymous class)":"(Anonymous function)"}}const r=qc(e,t);return void 0!==r?r:yc(e)}function Vc(e){if(e){const t=da(e);return void 0===t.isVisible&&(t.isVisible=!!function(){switch(e.kind){case 339:case 347:case 341:return!!(e.parent&&e.parent.parent&&e.parent.parent.parent&&sP(e.parent.parent.parent));case 209:return Vc(e.parent.parent);case 261:if(k_(e.name)&&!e.name.elements.length)return!1;case 268:case 264:case 265:case 266:case 263:case 267:case 272:if(fp(e))return!0;const t=Zc(e);return 32&Ez(e)||272!==e.kind&&308!==t.kind&&33554432&t.flags?Vc(t):Yp(t);case 173:case 172:case 178:case 179:case 175:case 174:if(wv(e,6))return!1;case 177:case 181:case 180:case 182:case 170:case 269:case 185:case 186:case 188:case 184:case 189:case 190:case 193:case 194:case 197:case 203:return Vc(e.parent);case 274:case 275:case 277:return!1;case 169:case 308:case 271:return!0;default:return!1}}()),t.isVisible}return!1}function Wc(e,t){let n,r,i;return 11!==e.kind&&e.parent&&278===e.parent.kind?n=Ue(e,e,2998271,void 0,!1):282===e.parent.kind&&(n=Ja(e.parent,2998271)),n&&(i=new Set,i.add(eJ(n)),function e(n){d(n,n=>{const o=Ta(n)||n;if(t?da(n).isVisible=!0:(r=r||[],ce(r,o)),Nm(n)){const t=sb(n.moduleReference),r=Ue(n,t.escapedText,901119,void 0,!1);r&&i&&q(i,eJ(r))&&e(r.declarations)}})}(n.declarations)),r}function $c(e,t){const n=Hc(e,t);if(n>=0){const{length:e}=Ui;for(let t=n;t=$i;n--){if(Gc(Ui[n],Wi[n]))return-1;if(Ui[n]===e&&Wi[n]===t)return n}return-1}function Gc(e,t){switch(t){case 0:return!!ua(e).type;case 2:return!!ua(e).declaredType;case 1:return!!e.resolvedBaseConstructorType;case 3:return!!e.resolvedReturnType;case 4:return!!e.immediateBaseConstraint;case 5:return!!e.resolvedTypeArguments;case 6:return!!e.baseTypesResolved;case 7:return!!ua(e).writeType;case 8:return void 0!==da(e).parameterInitializerContainsUndefined}return un.assertNever(t)}function Yc(){return Ui.pop(),Wi.pop(),Vi.pop()}function Zc(e){return uc(Yh(e),e=>{switch(e.kind){case 261:case 262:case 277:case 276:case 275:case 274:return!1;default:return!0}}).parent}function el(e,t){const n=pm(e,t);return n?P_(n):void 0}function rl(e,t){var n;let r;return el(e,t)||(r=null==(n=og(e,t))?void 0:n.type)&&Pl(r,!0,!0)}function il(e){return e&&!!(1&e.flags)}function al(e){return e===Et||!!(1&e.flags&&e.aliasSymbol)}function cl(e,t){if(0!==t)return Al(e,!1,t);const n=ks(e);return n&&ua(n).type||Al(e,!1,t)}function dl(e,t,n){if(131072&(e=GD(e,e=>!(98304&e.flags))).flags)return Nn;if(1048576&e.flags)return nF(e,e=>dl(e,t,n));let r=Pb(E(t,Hb));const i=[],o=[];for(const t of Up(e)){const e=Kb(t,8576);FS(e,r)||6&ix(t)||!ck(t)?o.push(e):i.push(t)}if(Tx(e)||Cx(r)){if(o.length&&(r=Pb([r,...o])),131072&r.flags)return e;const t=(qr||(qr=Uy("Omit",2,!0)||xt),qr===xt?void 0:qr);return t?fy(t,[e,r]):Et}const a=Gu();for(const e of i)a.set(e.escapedName,lk(e,!1));const s=$s(n,a,l,l,Jm(e));return s.objectFlags|=4194304,s}function fl(e){return!!(465829888&e.flags)&&gj(pf(e)||Ot,32768)}function ml(e){return XN(UD(e,fl)?nF(e,e=>465829888&e.flags?ff(e):e):e,524288)}function xl(e,t){const n=Sl(e);return n?rE(n,t):t}function Sl(e){const t=function(e){const t=e.parent.parent;switch(t.kind){case 209:case 304:return Sl(t);case 210:return Sl(e.parent);case 261:return t.initializer;case 227:return t.right}}(e);if(t&&Og(t)&&t.flowNode){const n=Tl(e);if(n){const r=xI(CI.createStringLiteral(n),e),i=R_(t)?t:CI.createParenthesizedExpression(t),o=xI(CI.createElementAccessExpression(i,r),e);return DT(r,o),DT(o,e),i!==t&&DT(i,o),o.flowNode=t.flowNode,o}}}function Tl(e){const t=e.parent;return 209===e.kind&&207===t.kind?Cl(e.propertyName||e.name):304===e.kind||305===e.kind?Cl(e.name):""+t.elements.indexOf(e)}function Cl(e){const t=Hb(e);return 384&t.flags?""+t.value:void 0}function wl(e){const t=e.dotDotDotToken?32:0,n=cl(e.parent.parent,t);return n&&Dl(e,n,!1)}function Dl(e,t,n){if(il(t))return t;const r=e.parent;H&&33554432&e.flags&&Qh(e)?t=fw(t):H&&r.parent.initializer&&!KN(_D(r.parent.initializer),65536)&&(t=XN(t,524288));const i=32|(n||MA(e)?16:0);let o;if(207===r.kind)if(e.dotDotDotToken){if(2&(t=Bf(t)).flags||!WA(t))return zo(e,_a.Rest_types_may_only_be_created_from_object_types),Et;const n=[];for(const e of r.elements)e.dotDotDotToken||n.push(e.propertyName||e.name);o=dl(t,n,e.symbol)}else{const n=e.propertyName||e.name;o=xl(e,Ax(t,Hb(n),i,n))}else{const n=SR(65|(e.dotDotDotToken?0:128),t,jt,r),a=r.elements.indexOf(e);if(e.dotDotDotToken){const e=nF(t,e=>58982400&e.flags?ff(e):e);o=KD(e,rw)?nF(e,e=>ib(e,a)):Rv(n)}else o=JC(t)?xl(e,Ox(t,mk(a),i,e.name)||Et):n}return e.initializer?fv(nc(e))?H&&!KN(Lj(e,0),16777216)?ml(o):o:Mj(e,Pb([ml(o),Lj(e,0)],2)):o}function Fl(e){const t=nl(e);if(t)return Pk(t)}function El(e){const t=ah(e,!0);return 210===t.kind&&0===t.elements.length}function Pl(e,t=!1,n=!0){return H&&n?pw(e,t):e}function Al(e,t,n){if(lE(e)&&250===e.parent.parent.kind){const t=Yb(DI(eM(e.parent.parent.expression,n)));return 4456448&t.flags?Zb(t):Vt}if(lE(e)&&251===e.parent.parent.kind)return kR(e.parent.parent)||wt;if(k_(e.parent))return wl(e);const r=ND(e)&&!Iv(e)||wD(e)||$P(e),i=t&&XT(e),o=g_(e);if(sp(e))return o?il(o)||o===Ot?o:Et:ae?Ot:wt;if(o)return Pl(o,r,i);if((ne||Em(e))&&lE(e)&&!k_(e.name)&&!(32&Ez(e))&&!(33554432&e.flags)){if(!(6&Pz(e))&&(!e.initializer||function(e){const t=ah(e,!0);return 106===t.kind||80===t.kind&&NN(t)===De}(e.initializer)))return Nt;if(e.initializer&&El(e.initializer))return lr}if(TD(e)){if(!e.symbol)return;const t=e.parent;if(179===t.kind&&fd(t)){const n=Hu(ks(e.parent),178);if(n){const r=Eg(n),i=lz(t);return i&&e===i?(un.assert(!i.type),P_(r.thisParameter)):Gg(r)}}const n=function(e,t){const n=Pg(e);if(!n)return;const r=e.parameters.indexOf(t);return t.dotDotDotToken?OL(n,r):AL(n,r)}(t,e);if(n)return n;const r="this"===e.symbol.escapedName?HP(t):GP(e);if(r)return Pl(r,!1,i)}if(Pu(e)&&e.initializer){if(Em(e)&&!TD(e)){const t=$l(e,ks(e),Wm(e));if(t)return t}return Pl(Mj(e,Lj(e,n)),r,i)}if(ND(e)&&(ne||Em(e))){if(Fv(e)){const t=N(e.parent.members,ED),n=t.length?function(e,t){const n=Gt(e.escapedName,"__#")?mw.createPrivateIdentifier(e.escapedName.split("@")[1]):mc(e.escapedName);for(const r of t){const t=mw.createPropertyAccessExpression(mw.createThis(),n);DT(t.expression,t),DT(t,r),t.flowNode=r.returnFlowNode;const i=Ul(t,e);if(!ne||i!==Nt&&i!==lr||zo(e.valueDeclaration,_a.Member_0_implicitly_has_an_1_type,bc(e),Tc(i)),!KD(i,NI))return dR(i)}}(e.symbol,t):128&Bv(e)?xC(e.symbol):void 0;return n&&Pl(n,!0,i)}{const t=yC(e.parent),n=t?Jl(e.symbol,t):128&Bv(e)?xC(e.symbol):void 0;return n&&Pl(n,!0,i)}}return KE(e)?Yt:k_(e.name)?n_(e.name,!1,!0):void 0}function Ll(e){if(e.valueDeclaration&&NF(e.valueDeclaration)){const t=ua(e);return void 0===t.isConstructorDeclaredProperty&&(t.isConstructorDeclaredProperty=!1,t.isConstructorDeclaredProperty=!!Ml(e)&&v(e.declarations,t=>NF(t)&&rA(t)&&(213!==t.left.kind||jh(t.left.argumentExpression))&&!Hl(void 0,t,e,t))),t.isConstructorDeclaredProperty}return!1}function jl(e){const t=e.valueDeclaration;return t&&ND(t)&&!fv(t)&&!t.initializer&&(ne||Em(t))}function Ml(e){if(e.declarations)for(const t of e.declarations){const e=em(t,!1,!1);if(e&&(177===e.kind||sL(e)))return e}}function Jl(e,t){const n=Gt(e.escapedName,"__#")?mw.createPrivateIdentifier(e.escapedName.split("@")[1]):mc(e.escapedName),r=mw.createPropertyAccessExpression(mw.createThis(),n);DT(r.expression,r),DT(r,t),r.flowNode=t.returnFlowNode;const i=Ul(r,e);return!ne||i!==Nt&&i!==lr||zo(e.valueDeclaration,_a.Member_0_implicitly_has_an_1_type,bc(e),Tc(i)),KD(i,NI)?void 0:dR(i)}function Ul(e,t){const n=(null==t?void 0:t.valueDeclaration)&&(!jl(t)||128&Bv(t.valueDeclaration))&&xC(t)||jt;return rE(e,Nt,n)}function Vl(e,t){const n=$m(e.valueDeclaration);if(n){const t=Em(n)?tl(n):void 0;return t&&t.typeExpression?Pk(t.typeExpression):e.valueDeclaration&&$l(e.valueDeclaration,e,n)||ZC(Ij(n))}let r,i=!1,o=!1;if(Ll(e)&&(r=Jl(e,Ml(e))),!r){let n;if(e.declarations){let a;for(const r of e.declarations){const s=NF(r)||fF(r)?r:Sx(r)?NF(r.parent)?r.parent:r:void 0;if(!s)continue;const c=Sx(s)?ug(s):tg(s);(4===c||NF(s)&&rA(s,c))&&(Ql(s)?i=!0:o=!0),fF(s)||(a=Hl(a,s,e,r)),a||(n||(n=[])).push(NF(s)||fF(s)?Xl(e,t,s,c):_n)}r=a}if(!r){if(!u(n))return Et;let t=i&&e.declarations?function(e,t){return un.assert(e.length===t.length),e.filter((e,n)=>{const r=t[n],i=NF(r)?r:NF(r.parent)?r.parent:void 0;return i&&Ql(i)})}(n,e.declarations):void 0;if(o){const n=xC(e);n&&((t||(t=[])).push(n),i=!0)}r=Pb($(t,e=>!!(-98305&e.flags))?t:n)}}const a=jw(Pl(r,!1,o&&!i));return e.valueDeclaration&&Em(e.valueDeclaration)&&GD(a,e=>!!(-98305&e.flags))===_n?(Jw(e.valueDeclaration,wt),wt):a}function $l(e,t,n){var r,i;if(!Em(e)||!n||!uF(n)||n.properties.length)return;const o=Gu();for(;NF(e)||dF(e);){const t=Ss(e);(null==(r=null==t?void 0:t.exports)?void 0:r.size)&&ca(o,t.exports),e=NF(e)?e.parent:e.parent.parent}const a=Ss(e);(null==(i=null==a?void 0:a.exports)?void 0:i.size)&&ca(o,a.exports);const s=$s(t,o,l,l,l);return s.objectFlags|=4096,s}function Hl(e,t,n,r){var i;const o=fv(t.parent);if(o){const t=jw(Pk(o));if(!e)return t;al(e)||al(t)||SS(e,t)||fR(void 0,e,r,t)}if(null==(i=n.parent)?void 0:i.valueDeclaration){const e=ws(n.parent);if(e.valueDeclaration){const t=fv(e.valueDeclaration);if(t){const e=pm(Pk(t),n.escapedName);if(e)return M_(e)}}}return e}function Xl(e,t,n,r){if(fF(n)){if(t)return P_(t);const e=Ij(n.arguments[2]),r=el(e,"value");if(r)return r;const i=el(e,"get");if(i){const e=CO(i);if(e)return Gg(e)}const o=el(e,"set");if(o){const e=CO(o);if(e)return zL(e)}return wt}if(function(e,t){return dF(e)&&110===e.expression.kind&&QI(t,t=>EN(e,t))}(n.left,n.right))return wt;const i=1===r&&(dF(n.left)||pF(n.left))&&(eg(n.left.expression)||aD(n.left.expression)&&Ym(n.left.expression)),o=t?P_(t):i?dk(Ij(n.right)):ZC(Ij(n.right));if(524288&o.flags&&2===r&&"export="===e.escapedName){const n=Cp(o),r=Gu();od(n.members,r);const i=r.size;t&&!t.exports&&(t.exports=Gu()),(t||e).exports.forEach((e,t)=>{var n;const i=r.get(t);if(!i||i===e||2097152&e.flags)r.set(t,e);else if(111551&e.flags&&111551&i.flags){if(e.valueDeclaration&&i.valueDeclaration&&vd(e.valueDeclaration)!==vd(i.valueDeclaration)){const t=mc(e.escapedName),r=(null==(n=tt(i.valueDeclaration,Sc))?void 0:n.name)||i.valueDeclaration;aT(zo(e.valueDeclaration,_a.Duplicate_identifier_0,t),Rp(r,_a._0_was_also_declared_here,t)),aT(zo(r,_a.Duplicate_identifier_0,t),Rp(e.valueDeclaration,_a._0_was_also_declared_here,t))}const o=Xo(e.flags|i.flags,t);o.links.type=Pb([P_(e),P_(i)]),o.valueDeclaration=i.valueDeclaration,o.declarations=K(i.declarations,e.declarations),r.set(t,o)}else r.set(t,ia(e,i))});const a=$s(i!==r.size?void 0:n.symbol,r,n.callSignatures,n.constructSignatures,n.indexInfos);if(i===r.size&&(o.aliasSymbol&&(a.aliasSymbol=o.aliasSymbol,a.aliasTypeArguments=o.aliasTypeArguments),4&gx(o))){a.aliasSymbol=o.symbol;const e=uy(o);a.aliasTypeArguments=u(e)?e:void 0}return a.objectFlags|=iy([o])|20608&gx(o),a.symbol&&32&a.symbol.flags&&o===mu(a.symbol)&&(a.objectFlags|=16777216),a}return VC(o)?(Jw(n,cr),cr):o}function Ql(e){const t=em(e,!1,!1);return 177===t.kind||263===t.kind||219===t.kind&&!pg(t.parent)}function Yl(e,t,n){return e.initializer?Pl(Rj(e,Lj(e,0,k_(e.name)?n_(e.name,!0,!1):Ot))):k_(e.name)?n_(e.name,t,n):(n&&!m_(e)&&Jw(e,wt),t?At:wt)}function n_(e,t=!1,n=!1){t&&Ii.push(e);const r=207===e.kind?function(e,t,n){const r=Gu();let i,o=131200;d(e.elements,e=>{const a=e.propertyName||e.name;if(e.dotDotDotToken)return void(i=Ah(Vt,wt,!1));const s=Hb(a);if(!sC(s))return void(o|=512);const c=cC(s),l=Xo(4|(e.initializer?16777216:0),c);l.links.type=Yl(e,t,n),r.set(l.escapedName,l)});const a=$s(void 0,r,l,l,i?[i]:l);return a.objectFlags|=o,t&&(a.pattern=e,a.objectFlags|=131072),a}(e,t,n):function(e,t,n){const r=e.elements,i=ye(r),o=i&&209===i.kind&&i.dotDotDotToken?i:void 0;if(0===r.length||1===r.length&&o)return M>=2?Mv(wt):cr;const a=E(r,e=>IF(e)?wt:Yl(e,t,n)),s=S(r,e=>!(e===o||IF(e)||MA(e)),r.length-1)+1;let c=Gv(a,E(r,(e,t)=>e===o?4:t>=s?2:1));return t&&(c=sy(c),c.pattern=e,c.objectFlags|=131072),c}(e,t,n);return t&&Ii.pop(),r}function s_(e,t){return c_(Al(e,!0,0),e,t)}function c_(e,t,n){return e?(4096&e.flags&&function(e){const t=Ss(e),n=pr||(pr=qy("SymbolConstructor",!1));return n&&t&&t===n}(t.parent)&&(e=xk(t)),n&&zw(t,e),8192&e.flags&&(lF(t)||!g_(t))&&e.symbol!==ks(t)&&(e=cn),jw(e)):(e=TD(t)&&t.dotDotDotToken?cr:wt,n&&(m_(t)||Jw(t,e)),e)}function m_(e){const t=Yh(e);return vM(170===t.kind?t.parent:t)}function g_(e){const t=fv(e);if(t)return Pk(t)}function h_(e){if(e)switch(e.kind){case 178:return gv(e);case 179:return yv(e);case 173:return un.assert(Iv(e)),fv(e)}}function y_(e){const t=h_(e);return t&&Pk(t)}function x_(e){const t=ua(e);if(!t.type){if(!$c(e,0))return Et;const n=Hu(e,178),r=Hu(e,179),i=tt(Hu(e,173),p_);let o=n&&Em(n)&&Fl(n)||y_(n)||y_(r)||y_(i)||n&&n.body&&ZL(n)||i&&s_(i,!0);o||(r&&!vM(r)?Vo(ne,r,_a.Property_0_implicitly_has_type_any_because_its_set_accessor_lacks_a_parameter_type_annotation,bc(e)):n&&!vM(n)?Vo(ne,n,_a.Property_0_implicitly_has_type_any_because_its_get_accessor_lacks_a_return_type_annotation,bc(e)):i&&!vM(i)&&Vo(ne,i,_a.Member_0_implicitly_has_an_1_type,bc(e),"any"),o=wt),Yc()||(h_(n)?zo(n,_a._0_is_referenced_directly_or_indirectly_in_its_own_type_annotation,bc(e)):h_(r)||h_(i)?zo(r,_a._0_is_referenced_directly_or_indirectly_in_its_own_type_annotation,bc(e)):n&&ne&&zo(n,_a._0_implicitly_has_return_type_any_because_it_does_not_have_a_return_type_annotation_and_is_referenced_directly_or_indirectly_in_one_of_its_return_expressions,bc(e)),o=wt),t.type??(t.type=o)}return t.type}function T_(e){const t=ua(e);if(!t.writeType){if(!$c(e,7))return Et;const n=Hu(e,179)??tt(Hu(e,173),p_);let r=y_(n);Yc()||(h_(n)&&zo(n,_a._0_is_referenced_directly_or_indirectly_in_its_own_type_annotation,bc(e)),r=wt),t.writeType??(t.writeType=r||x_(e))}return t.writeType}function C_(e){const t=cu(mu(e));return 8650752&t.flags?t:2097152&t.flags?b(t.types,e=>!!(8650752&e.flags)):void 0}function w_(e){let t=ua(e);const n=t;if(!t.type){const r=e.valueDeclaration&&lL(e.valueDeclaration,!1);if(r){const n=cL(e,r);n&&(e=n,t=n.links)}n.type=t.type=function(e){const t=e.valueDeclaration;if(1536&e.flags&&up(e))return wt;if(t&&(227===t.kind||Sx(t)&&227===t.parent.kind))return Vl(e);if(512&e.flags&&t&&sP(t)&&t.commonJsModuleIndicator){const t=ss(e);if(t!==e){if(!$c(e,0))return Et;const n=xs(e.exports.get("export=")),r=Vl(n,n===t?void 0:t);return Yc()?r:D_(e)}}const n=Js(16,e);if(32&e.flags){const t=C_(e);return t?Bb([n,t]):n}return H&&16777216&e.flags?pw(n,!0):n}(e)}return t.type}function N_(e){const t=ua(e);return t.type||(t.type=Tu(e))}function D_(e){const t=e.valueDeclaration;if(t){if(fv(t))return zo(e.valueDeclaration,_a._0_is_referenced_directly_or_indirectly_in_its_own_type_annotation,bc(e)),Et;ne&&(170!==t.kind||t.initializer)&&zo(e.valueDeclaration,_a._0_implicitly_has_type_any_because_it_does_not_have_a_type_annotation_and_is_referenced_directly_or_indirectly_in_its_own_initializer,bc(e))}else if(2097152&e.flags){const t=Ca(e);t&&zo(t,_a.Circular_definition_of_import_alias_0,bc(e))}return wt}function F_(e){const t=ua(e);return t.type||(un.assertIsDefined(t.deferralParent),un.assertIsDefined(t.deferralConstituents),t.type=1048576&t.deferralParent.flags?Pb(t.deferralConstituents):Bb(t.deferralConstituents)),t.type}function E_(e){const t=rx(e);return 2&t?65536&t?function(e){const t=ua(e);return!t.writeType&&t.deferralWriteConstituents&&(un.assertIsDefined(t.deferralParent),un.assertIsDefined(t.deferralConstituents),t.writeType=1048576&t.deferralParent.flags?Pb(t.deferralWriteConstituents):Bb(t.deferralWriteConstituents)),t.writeType}(e)||F_(e):e.links.writeType||e.links.type:4&e.flags?kw(P_(e),!!(16777216&e.flags)):98304&e.flags?1&t?function(e){const t=ua(e);return t.writeType||(t.writeType=fS(E_(t.target),t.mapper))}(e):T_(e):P_(e)}function P_(e){const t=rx(e);return 65536&t?F_(e):1&t?function(e){const t=ua(e);return t.type||(t.type=fS(P_(t.target),t.mapper))}(e):262144&t?function(e){var t;if(!e.links.type){const n=e.links.mappedType;if(!$c(e,0))return n.containsError=!0,Et;const i=fS(_p(n.target||n),rS(n.mapper,rp(n),e.links.keyType));let o=H&&16777216&e.flags&&!gj(i,49152)?pw(i,!0):524288&e.links.checkFlags?Tw(i):i;Yc()||(zo(r,_a.Type_of_property_0_circularly_references_itself_in_mapped_type_1,bc(e),Tc(n)),o=Et),(t=e.links).type??(t.type=o)}return e.links.type}(e):8192&t?function(e){const t=ua(e);return t.type||(t.type=aN(e.links.propertyType,e.links.mappedType,e.links.constraintType)||Ot),t.type}(e):7&e.flags?function(e){const t=ua(e);if(!t.type){const n=function(e){if(4194304&e.flags)return function(e){const t=Au(Ts(e));return t.typeParameters?ay(t,E(t.typeParameters,e=>wt)):t}(e);if(e===je)return wt;if(134217728&e.flags&&e.valueDeclaration){const t=ks(vd(e.valueDeclaration)),n=Xo(t.flags,"exports");n.declarations=t.declarations?t.declarations.slice():[],n.parent=e,n.links.target=t,t.valueDeclaration&&(n.valueDeclaration=t.valueDeclaration),t.members&&(n.members=new Map(t.members)),t.exports&&(n.exports=new Map(t.exports));const r=Gu();return r.set("exports",n),$s(e,r,l,l,l)}un.assertIsDefined(e.valueDeclaration);const t=e.valueDeclaration;if(sP(t)&&ef(t))return t.statements.length?jw(ZC(eM(t.statements[0].expression))):Nn;if(d_(t))return x_(e);if(!$c(e,0))return 512&e.flags&&!(67108864&e.flags)?w_(e):D_(e);let n;if(278===t.kind)n=c_(g_(t)||Ij(t.expression),t);else if(NF(t)||Em(t)&&(fF(t)||(dF(t)||ag(t))&&NF(t.parent)))n=Vl(e);else if(dF(t)||pF(t)||aD(t)||ju(t)||zN(t)||dE(t)||uE(t)||FD(t)&&!Jf(t)||DD(t)||sP(t)){if(9136&e.flags)return w_(e);n=NF(t.parent)?Vl(e):g_(t)||wt}else if(rP(t))n=g_(t)||qj(t);else if(KE(t))n=g_(t)||XA(t);else if(iP(t))n=g_(t)||zj(t.name,0);else if(Jf(t))n=g_(t)||Uj(t,0);else if(TD(t)||ND(t)||wD(t)||lE(t)||lF(t)||Nl(t))n=s_(t,!0);else if(mE(t))n=w_(e);else{if(!aP(t))return un.fail("Unhandled declaration kind! "+un.formatSyntaxKind(t.kind)+" for "+un.formatSymbol(e));n=N_(e)}return Yc()?n:512&e.flags&&!(67108864&e.flags)?w_(e):D_(e)}(e);return t.type||function(e){let t=e.valueDeclaration;return!!t&&(lF(t)&&(t=nc(t)),!!TD(t)&&xS(t.parent))}(e)||(t.type=n),n}return t.type}(e):9136&e.flags?w_(e):8&e.flags?N_(e):98304&e.flags?x_(e):2097152&e.flags?function(e){const t=ua(e);if(!t.type){if(!$c(e,0))return Et;const n=Ha(e),r=e.declarations&&Ua(Ca(e),!0),i=f(null==r?void 0:r.declarations,e=>AE(e)?g_(e):void 0);if(t.type??(t.type=(null==r?void 0:r.declarations)&&PB(r.declarations)&&e.declarations.length?function(e){const t=vd(e.declarations[0]),n=mc(e.escapedName),r=e.declarations.every(e=>Em(e)&&Sx(e)&&eg(e.expression)),i=r?mw.createPropertyAccessExpression(mw.createPropertyAccessExpression(mw.createIdentifier("module"),mw.createIdentifier("exports")),n):mw.createPropertyAccessExpression(mw.createIdentifier("exports"),n);return r&&DT(i.expression.expression,i.expression),DT(i.expression,i),DT(i,t),i.flowNode=t.endFlowNode,rE(i,Nt,jt)}(r):PB(e.declarations)?Nt:i||(111551&Ka(n)?P_(n):Et)),!Yc())return D_(r??e),t.type??(t.type=Et)}return t.type}(e):Et}function M_(e){return kw(P_(e),!!(16777216&e.flags))}function B_(e,t){if(void 0===e||!(4&gx(e)))return!1;for(const n of t)if(e.target===n)return!0;return!1}function J_(e,t){return void 0!==e&&void 0!==t&&!!(4&gx(e))&&e.target===t}function z_(e){return 4&gx(e)?e.target:e}function q_(e,t){return function e(n){if(7&gx(n)){const r=z_(n);return r===t||$(uu(r),e)}return!!(2097152&n.flags)&&$(n.types,e)}(e)}function U_(e,t){for(const n of t)e=le(e,Cu(ks(n)));return e}function H_(e,t){for(;;){if((e=e.parent)&&NF(e)){const t=tg(e);if(6===t||3===t){const t=ks(e.left);t&&t.parent&&!uc(t.parent.valueDeclaration,t=>e===t)&&(e=t.parent.valueDeclaration)}}if(!e)return;const n=e.kind;switch(n){case 264:case 232:case 265:case 180:case 181:case 174:case 185:case 186:case 318:case 263:case 175:case 219:case 220:case 266:case 346:case 347:case 341:case 339:case 201:case 195:{const r=H_(e,t);if((219===n||220===n||Jf(e))&&vS(e)){const t=fe(mm(P_(ks(e)),0));if(t&&t.typeParameters)return[...r||l,...t.typeParameters]}if(201===n)return ie(r,Cu(ks(e.typeParameter)));if(195===n)return K(r,Vx(e));const i=U_(r,_l(e)),o=t&&(264===n||232===n||265===n||sL(e))&&mu(ks(e)).thisType;return o?ie(i,o):i}case 342:const r=Bg(e);r&&(e=r.valueDeclaration);break;case 321:{const n=H_(e,t);return e.tags?U_(n,O(e.tags,e=>UP(e)?e.typeParameters:void 0)):n}}}}function Y_(e){var t;const n=32&e.flags||16&e.flags?e.valueDeclaration:null==(t=e.declarations)?void 0:t.find(e=>{if(265===e.kind)return!0;if(261!==e.kind)return!1;const t=e.initializer;return!!t&&(219===t.kind||220===t.kind)});return un.assert(!!n,"Class was missing valueDeclaration -OR- non-class had no interface declarations"),H_(n)}function Z_(e){if(!e.declarations)return;let t;for(const n of e.declarations)(265===n.kind||264===n.kind||232===n.kind||sL(n)||Fg(n))&&(t=U_(t,_l(n)));return t}function eu(e){const t=mm(e,1);if(1===t.length){const e=t[0];if(!e.typeParameters&&1===e.parameters.length&&aJ(e)){const t=CL(e.parameters[0]);return il(t)||BC(t)===wt}}return!1}function tu(e){if(mm(e,1).length>0)return!0;if(8650752&e.flags){const t=pf(e);return!!t&&eu(t)}return!1}function nu(e){const t=mx(e.symbol);return t&&yh(t)}function ru(e,t,n){const r=u(t),i=Em(n);return N(mm(e,1),e=>(i||r>=Tg(e.typeParameters))&&r<=u(e.typeParameters))}function iu(e,t,n){const r=ru(e,t,n),i=E(t,Pk);return A(r,e=>$(e.typeParameters)?dh(e,i,Em(n)):e)}function cu(e){if(!e.resolvedBaseConstructorType){const t=mx(e.symbol),n=t&&yh(t),r=nu(e);if(!r)return e.resolvedBaseConstructorType=jt;if(!$c(e,1))return Et;const i=eM(r.expression);if(n&&r!==n&&(un.assert(!n.typeArguments),eM(n.expression)),2621440&i.flags&&Cp(i),!Yc())return zo(e.symbol.valueDeclaration,_a._0_is_referenced_directly_or_indirectly_in_its_own_base_expression,bc(e.symbol)),e.resolvedBaseConstructorType??(e.resolvedBaseConstructorType=Et);if(!(1&i.flags||i===Ut||tu(i))){const t=zo(r.expression,_a.Type_0_is_not_a_constructor_function_type,Tc(i));if(262144&i.flags){const e=Gh(i);let n=Ot;if(e){const t=mm(e,1);t[0]&&(n=Gg(t[0]))}i.symbol.declarations&&aT(t,Rp(i.symbol.declarations[0],_a.Did_you_mean_for_0_to_be_constrained_to_type_new_args_Colon_any_1,bc(i.symbol),Tc(n)))}return e.resolvedBaseConstructorType??(e.resolvedBaseConstructorType=Et)}e.resolvedBaseConstructorType??(e.resolvedBaseConstructorType=i)}return e.resolvedBaseConstructorType}function lu(e,t){zo(e,_a.Type_0_recursively_references_itself_as_a_base_type,Tc(t,void 0,2))}function uu(e){if(!e.baseTypesResolved){if($c(e,6)&&(8&e.objectFlags?e.resolvedBaseTypes=[du(e)]:96&e.symbol.flags?(32&e.symbol.flags&&function(e){e.resolvedBaseTypes=qu;const t=Sf(cu(e));if(!(2621441&t.flags))return e.resolvedBaseTypes=l;const n=nu(e);let r;const i=t.symbol?Au(t.symbol):void 0;if(t.symbol&&32&t.symbol.flags&&function(e){const t=e.outerTypeParameters;if(t){const n=t.length-1,r=uy(e);return t[n].symbol!==r[n].symbol}return!0}(i))r=py(n,t.symbol);else if(1&t.flags)r=t;else{const i=iu(t,n.typeArguments,n);if(!i.length)return zo(n.expression,_a.No_base_constructor_has_the_specified_number_of_type_arguments),e.resolvedBaseTypes=l;r=Gg(i[0])}if(al(r))return e.resolvedBaseTypes=l;const o=Bf(r);if(!fu(o)){const t=Zx(Gf(void 0,r),_a.Base_constructor_return_type_0_is_not_an_object_type_or_intersection_of_object_types_with_statically_known_members,Tc(o));return ho.add(zp(vd(n.expression),n.expression,t)),e.resolvedBaseTypes=l}if(e===o||q_(o,e))return zo(e.symbol.valueDeclaration,_a.Type_0_recursively_references_itself_as_a_base_type,Tc(e,void 0,2)),e.resolvedBaseTypes=l;e.resolvedBaseTypes===qu&&(e.members=void 0),e.resolvedBaseTypes=[o]}(e),64&e.symbol.flags&&function(e){if(e.resolvedBaseTypes=e.resolvedBaseTypes||l,e.symbol.declarations)for(const t of e.symbol.declarations)if(265===t.kind&&kh(t))for(const n of kh(t)){const r=Bf(Pk(n));al(r)||(fu(r)?e===r||q_(r,e)?lu(t,e):e.resolvedBaseTypes===l?e.resolvedBaseTypes=[r]:e.resolvedBaseTypes.push(r):zo(n,_a.An_interface_can_only_extend_an_object_type_or_intersection_of_object_types_with_statically_known_members))}}(e)):un.fail("type must be class or interface"),!Yc()&&e.symbol.declarations))for(const t of e.symbol.declarations)264!==t.kind&&265!==t.kind||lu(t,e);e.baseTypesResolved=!0}return e.resolvedBaseTypes}function du(e){return Rv(Pb(A(e.typeParameters,(t,n)=>8&e.elementFlags[n]?Ax(t,Wt):t)||l),e.readonly)}function fu(e){if(262144&e.flags){const t=pf(e);if(t)return fu(t)}return!!(67633153&e.flags&&!Sp(e)||2097152&e.flags&&v(e.types,fu))}function mu(e){let t=ua(e);const n=t;if(!t.declaredType){const r=32&e.flags?1:2,i=cL(e,e.valueDeclaration&&function(e){var t;const n=e&&lL(e,!0),r=null==(t=null==n?void 0:n.exports)?void 0:t.get("prototype"),i=(null==r?void 0:r.valueDeclaration)&&function(e){if(!e.parent)return!1;let t=e.parent;for(;t&&212===t.kind;)t=t.parent;if(t&&NF(t)&&ub(t.left)&&64===t.operatorToken.kind){const e=dg(t);return uF(e)&&e}}(r.valueDeclaration);return i?ks(i):void 0}(e.valueDeclaration));i&&(e=i,t=i.links);const o=n.declaredType=t.declaredType=Js(r,e),a=Y_(e),s=Z_(e);(a||s||1===r||!function(e){if(!e.declarations)return!0;for(const t of e.declarations)if(265===t.kind){if(256&t.flags)return!1;const e=kh(t);if(e)for(const t of e)if(ab(t.expression)){const e=ts(t.expression,788968,!0);if(!e||!(64&e.flags)||mu(e).thisType)return!1}}return!0}(e))&&(o.objectFlags|=4,o.typeParameters=K(a,s),o.outerTypeParameters=a,o.localTypeParameters=s,o.instantiations=new Map,o.instantiations.set(ny(o.typeParameters),o),o.target=o,o.resolvedTypeArguments=o.typeParameters,o.thisType=zs(e),o.thisType.isThisType=!0,o.thisType.constraint=o)}return t.declaredType}function gu(e){var t;const n=ua(e);if(!n.declaredType){if(!$c(e,2))return Et;const r=un.checkDefined(null==(t=e.declarations)?void 0:t.find(Fg),"Type alias symbol with no valid declaration found"),i=Dg(r)?r.typeExpression:r.type;let o=i?Pk(i):Et;if(Yc()){const t=Z_(e);t&&(n.typeParameters=t,n.instantiations=new Map,n.instantiations.set(ny(t),o)),o===It&&"BuiltinIteratorReturn"===e.escapedName&&(o=mv())}else o=Et,341===r.kind?zo(r.typeExpression.type,_a.Type_alias_0_circularly_references_itself,bc(e)):zo(Sc(r)&&r.name||r,_a.Type_alias_0_circularly_references_itself,bc(e));n.declaredType??(n.declaredType=o)}return n.declaredType}function hu(e){return 1056&e.flags&&8&e.symbol.flags?Au(Ts(e.symbol)):e}function vu(e){const t=ua(e);if(!t.declaredType){const n=[];if(e.declarations)for(const t of e.declarations)if(267===t.kind)for(const r of t.members)if(fd(r)){const t=ks(r),i=MJ(r).value,o=uk(void 0!==i?hk(i,eJ(e),t):ku(t));ua(t).declaredType=o,n.push(dk(o))}const r=n.length?Pb(n,1,e,void 0):ku(e);1048576&r.flags&&(r.flags|=1024,r.symbol=e),t.declaredType=r}return t.declaredType}function ku(e){const t=Ms(32,e),n=Ms(32,e);return t.regularType=t,t.freshType=n,n.regularType=t,n.freshType=n,t}function Tu(e){const t=ua(e);if(!t.declaredType){const n=vu(Ts(e));t.declaredType||(t.declaredType=n)}return t.declaredType}function Cu(e){const t=ua(e);return t.declaredType||(t.declaredType=zs(e))}function Au(e){return Ou(e)||Et}function Ou(e){return 96&e.flags?mu(e):524288&e.flags?gu(e):262144&e.flags?Cu(e):384&e.flags?vu(e):8&e.flags?Tu(e):2097152&e.flags?function(e){const t=ua(e);return t.declaredType||(t.declaredType=Au(Ha(e)))}(e):void 0}function Lu(e){switch(e.kind){case 133:case 159:case 154:case 150:case 163:case 136:case 155:case 151:case 116:case 157:case 146:case 202:return!0;case 189:return Lu(e.elementType);case 184:return!e.typeArguments||e.typeArguments.every(Lu)}return!1}function Ju(e){const t=ul(e);return!t||Lu(t)}function zu(e){const t=fv(e);return t?Lu(t):!Eu(e)}function $u(e){if(e.declarations&&1===e.declarations.length){const t=e.declarations[0];if(t)switch(t.kind){case 173:case 172:return zu(t);case 175:case 174:case 177:case 178:case 179:return function(e){const t=gv(e),n=_l(e);return(177===e.kind||!!t&&Lu(t))&&e.parameters.every(zu)&&n.every(Ju)}(t)}}return!1}function Yu(e,t,n){const r=Gu();for(const i of e)r.set(i.escapedName,n&&$u(i)?i:sS(i,t));return r}function Zu(e,t){for(const n of t){if(ed(n))continue;const t=e.get(n.escapedName);(!t||t.valueDeclaration&&NF(t.valueDeclaration)&&!Ll(t)&&!Qf(t.valueDeclaration))&&(e.set(n.escapedName,n),e.set(n.escapedName,n))}}function ed(e){return!!e.valueDeclaration&&Kl(e.valueDeclaration)&&Dv(e.valueDeclaration)}function td(e){if(!e.declaredProperties){const t=e.symbol,n=Td(t);e.declaredProperties=Us(n),e.declaredCallSignatures=l,e.declaredConstructSignatures=l,e.declaredIndexInfos=l,e.declaredCallSignatures=jg(n.get("__call")),e.declaredConstructSignatures=jg(n.get("__new")),e.declaredIndexInfos=Ih(t)}return e}function nd(e){return cd(e)&&sC(kD(e)?BA(e):Ij(e.argumentExpression))}function sd(e){return cd(e)&&FS(kD(e)?BA(e):Ij(e.argumentExpression),hn)}function cd(e){return!(!kD(e)&&!pF(e))&&ab(kD(e)?e.expression:e.argumentExpression)}function ld(e){return 95===e.charCodeAt(0)&&95===e.charCodeAt(1)&&64===e.charCodeAt(2)}function _d(e){const t=Cc(e);return!!t&&nd(t)}function ud(e){const t=Cc(e);return!!t&&sd(t)}function fd(e){return!Rh(e)||_d(e)}function md(e){return Bh(e)&&!nd(e)}function gd(e,t,n,r){un.assert(!!r.symbol,"The member is expected to have a symbol.");const i=da(r);if(!i.resolvedSymbol){i.resolvedSymbol=r.symbol;const o=NF(r)?r.left:r.name,a=pF(o)?Ij(o.argumentExpression):BA(o);if(sC(a)){const s=cC(a),c=r.symbol.flags;let l=n.get(s);l||n.set(s,l=Xo(0,s,4096));const _=t&&t.get(s);if(!(32&e.flags)&&l.flags&ea(c)){const e=_?K(_.declarations,l.declarations):l.declarations,t=!(8192&a.flags)&&mc(s)||Ap(o);d(e,e=>zo(Cc(e)||e,_a.Property_0_was_also_declared_here,t)),zo(o||r,_a.Duplicate_property_0,t),l=Xo(0,s,4096)}return l.links.nameType=a,function(e,t,n){un.assert(!!(4096&rx(e)),"Expected a late-bound symbol."),e.flags|=n,ua(t.symbol).lateSymbol=e,e.declarations?t.symbol.isReplaceableByMethod||e.declarations.push(t):e.declarations=[t],111551&n&&mg(e,t)}(l,r,c),l.parent?un.assert(l.parent===e,"Existing symbol parent should match new one"):l.parent=e,i.resolvedSymbol=l}}return i.resolvedSymbol}function hd(e,t,n,r){let i=n.get("__index");if(!i){const e=null==t?void 0:t.get("__index");e?(i=na(e),i.links.checkFlags|=4096):i=Xo(0,"__index",4096),n.set("__index",i)}i.declarations?r.symbol.isReplaceableByMethod||i.declarations.push(r):i.declarations=[r]}function Sd(e,t){const n=ua(e);if(!n[t]){const r="resolvedExports"===t,i=r?1536&e.flags?bs(e).exports:e.exports:e.members;n[t]=i||P;const o=Gu();for(const t of e.declarations||l){const n=Pf(t);if(n)for(const t of n)r===Fv(t)&&(_d(t)?gd(e,i,o,t):ud(t)&&hd(0,i,o,t))}const a=ws(e).assignmentDeclarationMembers;if(a){const t=Oe(a.values());for(const n of t){const t=tg(n);r===!(3===t||NF(n)&&rA(n,t)||9===t||6===t)&&_d(n)&&gd(e,i,o,n)}}let s=function(e,t){if(!(null==e?void 0:e.size))return t;if(!(null==t?void 0:t.size))return e;const n=Gu();return ca(n,e),ca(n,t),n}(i,o);if(33554432&e.flags&&n.cjsExportMerged&&e.declarations)for(const n of e.declarations){const e=ua(n.symbol)[t];s?e&&e.forEach((e,t)=>{const n=s.get(t);if(n){if(n===e)return;s.set(t,ia(n,e))}else s.set(t,e)}):s=e}n[t]=s||P}return n[t]}function Td(e){return 6256&e.flags?Sd(e,"resolvedMembers"):e.members||P}function Cd(e){if(106500&e.flags&&"__computed"===e.escapedName){const t=ua(e);if(!t.lateSymbol&&$(e.declarations,_d)){const t=xs(e.parent);$(e.declarations,Fv)?hs(t):Td(t)}return t.lateSymbol||(t.lateSymbol=e)}return e}function wd(e,t,n){if(4&gx(e)){const n=e.target,r=uy(e);return u(n.typeParameters)===u(r)?ay(n,K(r,[t||n.thisType])):e}if(2097152&e.flags){const r=A(e.types,e=>wd(e,t,n));return r!==e.types?Bb(r):e}return n?Sf(e):e}function Fd(e,t,n,r){let i,o,a,s,c;de(n,r,0,n.length)?(o=t.symbol?Td(t.symbol):Gu(t.declaredProperties),a=t.declaredCallSignatures,s=t.declaredConstructSignatures,c=t.declaredIndexInfos):(i=Uk(n,r),o=Yu(t.declaredProperties,i,1===n.length),a=Rk(t.declaredCallSignatures,i),s=Rk(t.declaredConstructSignatures,i),c=zk(t.declaredIndexInfos,i));const l=uu(t);if(l.length){if(t.symbol&&o===Td(t.symbol)){const e=Gu(t.declaredProperties),n=Fh(t.symbol);n&&e.set("__index",n),o=e}Ws(e,o,a,s,c);const n=ye(r);for(const e of l){const t=n?wd(fS(e,i),n):e;Zu(o,Up(t)),a=K(a,mm(t,0)),s=K(s,mm(t,1));const r=t!==wt?Jm(t):[di];c=K(c,N(r,e=>!Dm(c,e.keyType)))}}Ws(e,o,a,s,c)}function Ed(e,t,n,r,i,o,a,s){const c=new _(He,s);return c.declaration=e,c.typeParameters=t,c.parameters=r,c.thisParameter=n,c.resolvedReturnType=i,c.resolvedTypePredicate=o,c.minArgumentCount=a,c.resolvedMinArgumentCount=void 0,c.target=void 0,c.mapper=void 0,c.compositeSignatures=void 0,c.compositeKind=void 0,c}function Pd(e){const t=Ed(e.declaration,e.typeParameters,e.thisParameter,e.parameters,void 0,void 0,e.minArgumentCount,167&e.flags);return t.target=e.target,t.mapper=e.mapper,t.compositeSignatures=e.compositeSignatures,t.compositeKind=e.compositeKind,t}function Ad(e,t){const n=Pd(e);return n.compositeSignatures=t,n.compositeKind=1048576,n.target=void 0,n.mapper=void 0,n}function Id(e,t){if((24&e.flags)===t)return e;e.optionalCallSignatureCache||(e.optionalCallSignatureCache={});const n=8===t?"inner":"outer";return e.optionalCallSignatureCache[n]||(e.optionalCallSignatureCache[n]=function(e,t){un.assert(8===t||16===t,"An optional call signature can either be for an inner call chain or an outer call chain, but not both.");const n=Pd(e);return n.flags|=t,n}(e,t))}function Od(e,t){if(aJ(e)){const r=e.parameters.length-1,i=e.parameters[r],o=P_(i);if(rw(o))return[n(o,r,i)];if(!t&&1048576&o.flags&&v(o.types,rw))return E(o.types,e=>n(e,r,i))}return[e.parameters];function n(t,n,r){const i=uy(t),o=function(e,t){const n=E(e.target.labeledElementDeclarations,(n,r)=>NL(n,r,e.target.elementFlags[r],t));if(n){const e=[],t=new Set;for(let r=0;r{const a=o&&o[i]?o[i]:DL(e,n+i,t),s=t.target.elementFlags[i],c=Xo(1,a,12&s?32768:2&s?16384:0);return c.links.type=4&s?Rv(r):r,c});return K(e.parameters.slice(0,n),a)}}function Ld(e,t,n,r,i){for(const o of e)if(PC(o,t,n,r,i,n?wS:TS))return o}function jd(e,t,n){if(t.typeParameters){if(n>0)return;for(let n=1;n1&&(n=void 0===n?r:-1);for(const n of e[r])if(!t||!Ld(t,n,!1,!1,!0)){const i=jd(e,n,r);if(i){let e=n;if(i.length>1){let t=n.thisParameter;const r=d(i,e=>e.thisParameter);r&&(t=ww(r,Bb(B(i,e=>e.thisParameter&&P_(e.thisParameter))))),e=Ad(n,i),e.thisParameter=t}(t||(t=[])).push(e)}}}if(!u(t)&&-1!==n){const r=e[void 0!==n?n:0];let i=r.slice();for(const t of e)if(t!==r){const e=t[0];if(un.assert(!!e,"getUnionSignatures bails early on empty signature lists and should not have empty lists on second pass"),i=e.typeParameters&&$(i,t=>!!t.typeParameters&&!Rd(e.typeParameters,t.typeParameters))?void 0:E(i,t=>Bd(t,e)),!i)break}t=i}return t||l}function Rd(e,t){if(u(e)!==u(t))return!1;if(!e||!t)return!0;const n=Uk(t,e);for(let r=0;r=i?e:t,a=o===e?t:e,s=o===e?r:i,c=RL(e)||RL(t),l=c&&!RL(o),_=new Array(s+(l?1:0));for(let u=0;u=ML(o)&&u>=ML(a),h=u>=r?void 0:DL(e,u),y=u>=i?void 0:DL(t,u),v=Xo(1|(g&&!m?16777216:0),(h===y?h:h?y?void 0:h:y)||`arg${u}`,m?32768:g?16384:0);v.links.type=m?Rv(f):f,_[u]=v}if(l){const e=Xo(1,"args",32768);e.links.type=Rv(AL(a,s)),a===t&&(e.links.type=fS(e.links.type,n)),_[s]=e}return _}(e,t,r),s=ye(a);s&&32768&rx(s)&&(i|=1);const c=function(e,t,n){return e&&t?ww(e,Bb([P_(e),fS(P_(t),n)])):e||t}(e.thisParameter,t.thisParameter,r),l=Ed(o,n,c,a,void 0,void 0,Math.max(e.minArgumentCount,t.minArgumentCount),i);return l.compositeKind=1048576,l.compositeSignatures=K(2097152!==e.compositeKind&&e.compositeSignatures||[e],[t]),r?l.mapper=2097152!==e.compositeKind&&e.mapper&&e.compositeSignatures?eS(e.mapper,r):r:2097152!==e.compositeKind&&e.mapper&&e.compositeSignatures&&(l.mapper=e.mapper),l}function Jd(e){const t=Jm(e[0]);if(t){const n=[];for(const r of t){const t=r.keyType;v(e,e=>!!qm(e,t))&&n.push(Ah(t,Pb(E(e,e=>Qm(e,t))),$(e,e=>qm(e,t).isReadonly)))}return n}return l}function zd(e,t){return e?t?Bb([e,t]):e:t}function qd(e){const t=w(e,e=>mm(e,1).length>0),n=E(e,eu);if(t>0&&t===w(n,e=>e)){const e=n.indexOf(!0);n[e]=!1}return n}function Vd(e,t,n,r){const i=[];for(let o=0;o!PC(e,n,!1,!1,!1,TS))||(e=ie(e,n));return e}function Gd(e,t,n){if(e)for(let r=0;r0===n||kp(e)===t)?t:0}return 0}function Sp(e){if(32&gx(e)){const t=ip(e);if(Cx(t))return!0;const n=op(e);if(n&&Cx(fS(n,Wk(rp(e),t))))return!0}return!1}function Tp(e){const t=op(e);return t?FS(t,rp(e))?1:2:0}function Cp(e){return e.members||(524288&e.flags?4&e.objectFlags?function(e){const t=td(e.target),n=K(t.typeParameters,[t.thisType]),r=uy(e);Fd(e,t,n,r.length===n.length?r:K(r,[e]))}(e):3&e.objectFlags?function(e){Fd(e,td(e),l,l)}(e):1024&e.objectFlags?function(e){const t=qm(e.source,Vt),n=bp(e.mappedType),r=!(1&n),i=4&n?0:16777216,o=t?[Ah(Vt,aN(t.type,e.mappedType,e.constraintType)||Ot,r&&t.isReadonly)]:l,a=Gu(),s=function(e){const t=ip(e.mappedType);if(!(1048576&t.flags||2097152&t.flags))return;const n=1048576&t.flags?t.origin:t;if(!(n&&2097152&n.flags))return;const r=Bb(n.types.filter(t=>t!==e.constraintType));return r!==_n?r:void 0}(e);for(const t of Up(e.source)){if(s&&!FS(Kb(t,8576),s))continue;const n=8192|(r&&_j(t)?8:0),o=Xo(4|t.flags&i,t.escapedName,n);if(o.declarations=t.declarations,o.links.nameType=ua(t).nameType,o.links.propertyType=P_(t),8388608&e.constraintType.type.flags&&262144&e.constraintType.type.objectType.flags&&262144&e.constraintType.type.indexType.flags){const t=e.constraintType.type.objectType,n=Qd(e.mappedType,e.constraintType.type,t);o.links.mappedType=n,o.links.constraintType=Yb(t)}else o.links.mappedType=e.mappedType,o.links.constraintType=e.constraintType;a.set(t.escapedName,o)}Ws(e,a,l,l,o)}(e):16&e.objectFlags?function(e){if(e.target)return Ws(e,P,l,l,l),void Ws(e,Yu(Dp(e.target),e.mapper,!1),Rk(mm(e.target,0),e.mapper),Rk(mm(e.target,1),e.mapper),zk(Jm(e.target),e.mapper));const t=xs(e.symbol);if(2048&t.flags){Ws(e,P,l,l,l);const n=Td(t),r=jg(n.get("__call")),i=jg(n.get("__new"));return void Ws(e,n,r,i,Ih(t))}let n,r,i=hs(t);if(t===Fe){const e=new Map;i.forEach(t=>{var n;418&t.flags||512&t.flags&&(null==(n=t.declarations)?void 0:n.length)&&v(t.declarations,cp)||e.set(t.escapedName,t)}),i=e}if(Ws(e,i,l,l,l),32&t.flags){const e=cu(mu(t));11272192&e.flags?(i=Gu(function(e){const t=Us(e),n=Ph(e);return n?K(t,[n]):t}(i)),Zu(i,Up(e))):e===wt&&(r=di)}const o=Ph(i);if(o?n=Lh(o,Oe(i.values())):(r&&(n=ie(n,r)),384&t.flags&&(32&Au(t).flags||$(e.properties,e=>!!(296&P_(e).flags)))&&(n=ie(n,ui))),Ws(e,i,l,l,n||l),8208&t.flags&&(e.callSignatures=jg(t)),32&t.flags){const n=mu(t);let r=t.members?jg(t.members.get("__constructor")):l;16&t.flags&&(r=se(r.slice(),B(e.callSignatures,e=>sL(e.declaration)?Ed(e.declaration,e.typeParameters,e.thisParameter,e.parameters,n,void 0,e.minArgumentCount,167&e.flags):void 0))),r.length||(r=function(e){const t=mm(cu(e),1),n=mx(e.symbol),r=!!n&&Nv(n,64);if(0===t.length)return[Ed(void 0,e.localTypeParameters,void 0,l,e,void 0,0,r?4:0)];const i=nu(e),o=Em(i),a=Ry(i),s=u(a),c=[];for(const n of t){const t=Tg(n.typeParameters),i=u(n.typeParameters);if(o||s>=t&&s<=i){const s=i?Sh(n,Cg(a,n.typeParameters,t,o)):Pd(n);s.typeParameters=e.localTypeParameters,s.resolvedReturnType=e,s.flags=r?4|s.flags:-5&s.flags,c.push(s)}}return c}(n)),e.constructSignatures=r}}(e):32&e.objectFlags?function(e){const t=Gu();let n;Ws(e,P,l,l,l);const r=rp(e),i=ip(e),o=e.target||e,a=op(o),s=2!==Tp(o),c=_p(o),_=Sf(vp(e)),u=bp(e);function d(i){bD(a?fS(a,rS(e.mapper,r,i)):i,o=>function(i,o){if(sC(o)){const n=cC(o),r=t.get(n);if(r)r.links.nameType=Pb([r.links.nameType,o]),r.links.keyType=Pb([r.links.keyType,i]);else{const r=sC(i)?pm(_,cC(i)):void 0,a=!!(4&u||!(8&u)&&r&&16777216&r.flags),c=!!(1&u||!(2&u)&&r&&_j(r)),l=H&&!a&&r&&16777216&r.flags,d=Xo(4|(a?16777216:0),n,262144|(r?ep(r):0)|(c?8:0)|(l?524288:0));d.links.mappedType=e,d.links.nameType=o,d.links.keyType=i,r&&(d.links.syntheticOrigin=r,d.declarations=s?r.declarations:void 0),t.set(n,d)}}else if(Mh(o)||33&o.flags){const t=5&o.flags?Vt:40&o.flags?Wt:o,a=fS(c,rS(e.mapper,r,i)),s=ig(_,o),l=Ah(t,a,!!(1&u||!(2&u)&&(null==s?void 0:s.isReadonly)));n=Gd(n,l,!0)}}(i,o))}yp(e)?np(_,8576,!1,d):bD(Zd(i),d),Ws(e,t,l,l,n||l)}(e):un.fail("Unhandled object type "+un.formatObjectFlags(e.objectFlags)):1048576&e.flags?function(e){const t=Md(E(e.types,e=>e===Xn?[ci]:mm(e,0))),n=Md(E(e.types,e=>mm(e,1))),r=Jd(e.types);Ws(e,P,t,n,r)}(e):2097152&e.flags?function(e){let t,n,r;const i=e.types,o=qd(i),a=w(o,e=>e);for(let s=0;s0&&(e=E(e,e=>{const t=Pd(e);return t.resolvedReturnType=Vd(Gg(e),i,o,s),t})),n=Wd(n,e)}t=Wd(t,mm(c,0)),r=we(Jm(c),(e,t)=>Gd(e,t,!1),r)}Ws(e,P,t||l,n||l,r||l)}(e):un.fail("Unhandled type "+un.formatTypeFlags(e.flags))),e}function Dp(e){return 524288&e.flags?Cp(e).properties:l}function Lp(e,t){if(524288&e.flags){const n=Cp(e).members.get(t);if(n&&Ls(n))return n}}function Jp(e){if(!e.resolvedProperties){const t=Gu();for(const n of e.types){for(const r of Up(n))if(!t.has(r.escapedName)){const n=Rf(e,r.escapedName,!!(2097152&e.flags));n&&t.set(r.escapedName,n)}if(1048576&e.flags&&0===Jm(n).length)break}e.resolvedProperties=Us(t)}return e.resolvedProperties}function Up(e){return 3145728&(e=Tf(e)).flags?Jp(e):Dp(e)}function Vp(e){return 262144&e.flags?Hp(e):8388608&e.flags?function(e){return mf(e)?function(e){if(kf(e))return Px(e.objectType,e.indexType);const t=of(e.indexType);if(t&&t!==e.indexType){const n=Ox(e.objectType,t,e.accessFlags);if(n)return n}const n=of(e.objectType);return n&&n!==e.objectType?Ox(n,e.indexType,e.accessFlags):void 0}(e):void 0}(e):16777216&e.flags?uf(e):pf(e)}function Hp(e){return mf(e)?Gh(e):void 0}function rf(e,t=0){var n;return t<5&&!(!e||!(262144&e.flags&&$(null==(n=e.symbol)?void 0:n.declarations,e=>Nv(e,4096))||3145728&e.flags&&$(e.types,e=>rf(e,t))||8388608&e.flags&&rf(e.objectType,t+1)||16777216&e.flags&&rf(uf(e),t+1)||33554432&e.flags&&rf(e.baseType,t)||32&gx(e)&&function(e,t){const n=lS(e);return!!n&&rf(n,t)}(e,t)||iw(e)&&k(xb(e),(n,r)=>!!(8&e.target.elementFlags[r])&&rf(n,t))>=0))}function of(e){const t=Dx(e,!1);return t!==e?t:Vp(e)}function af(e){if(!e.resolvedDefaultConstraint){const t=function(e){return e.resolvedInferredTrueType||(e.resolvedInferredTrueType=e.combinedMapper?fS(Pk(e.root.node.trueType),e.combinedMapper):qx(e))}(e),n=Ux(e);e.resolvedDefaultConstraint=il(t)?n:il(n)?t:Pb([t,n])}return e.resolvedDefaultConstraint}function sf(e){if(void 0!==e.resolvedConstraintOfDistributive)return e.resolvedConstraintOfDistributive||void 0;if(e.root.isDistributive&&e.restrictiveInstantiation!==e){const t=Dx(e.checkType,!1),n=t===e.checkType?Vp(t):t;if(n&&n!==e.checkType){const t=pS(e,nS(e.root.checkType,n,e.mapper),!0);if(!(131072&t.flags))return e.resolvedConstraintOfDistributive=t,t}}e.resolvedConstraintOfDistributive=!1}function cf(e){return sf(e)||af(e)}function uf(e){return mf(e)?cf(e):void 0}function pf(e){if(464781312&e.flags||iw(e)){const t=gf(e);return t!==jn&&t!==Mn?t:void 0}return 4194304&e.flags?hn:void 0}function ff(e){return pf(e)||e}function mf(e){return gf(e)!==Mn}function gf(e){if(e.resolvedBaseConstraint)return e.resolvedBaseConstraint;const t=[];return e.resolvedBaseConstraint=n(e);function n(e){if(!e.immediateBaseConstraint){if(!$c(e,4))return Mn;let n;const o=DC(e);if((t.length<10||t.length<50&&!T(t,o))&&(t.push(o),n=function(e){if(262144&e.flags){const t=Gh(e);return e.isThisType||!t?t:i(t)}if(3145728&e.flags){const t=e.types,n=[];let r=!1;for(const e of t){const t=i(e);t?(t!==e&&(r=!0),n.push(t)):r=!0}return r?1048576&e.flags&&n.length===t.length?Pb(n):2097152&e.flags&&n.length?Bb(n):void 0:e}if(4194304&e.flags)return hn;if(134217728&e.flags){const t=e.types,n=B(t,i);return n.length===t.length?ex(e.texts,n):Vt}if(268435456&e.flags){const t=i(e.type);return t&&t!==e.type?nx(e.symbol,t):Vt}if(8388608&e.flags){if(kf(e))return i(Px(e.objectType,e.indexType));const t=i(e.objectType),n=i(e.indexType),r=t&&n&&Ox(t,n,e.accessFlags);return r&&i(r)}if(16777216&e.flags){const t=cf(e);return t&&i(t)}return 33554432&e.flags?i(wy(e)):iw(e)?Gv(E(xb(e),(t,n)=>{const r=262144&t.flags&&8&e.target.elementFlags[n]&&i(t)||t;return r!==t&&KD(r,e=>jC(e)&&!iw(e))?r:t}),e.target.elementFlags,e.target.readonly,e.target.labeledElementDeclarations):e}(Dx(e,!1)),t.pop()),!Yc()){if(262144&e.flags){const t=$h(e);if(t){const n=zo(t,_a.Type_parameter_0_has_a_circular_constraint,Tc(e));!r||ch(t,r)||ch(r,t)||aT(n,Rp(r,_a.Circularity_originates_in_type_at_this_location))}}n=Mn}e.immediateBaseConstraint??(e.immediateBaseConstraint=n||jn)}return e.immediateBaseConstraint}function i(e){const t=n(e);return t!==jn&&t!==Mn?t:void 0}}function hf(e){if(e.default)e.default===Rn&&(e.default=Mn);else if(e.target){const t=hf(e.target);e.default=t?fS(t,e.mapper):jn}else{e.default=Rn;const t=e.symbol&&d(e.symbol.declarations,e=>SD(e)&&e.default),n=t?Pk(t):jn;e.default===Rn&&(e.default=n)}return e.default}function yf(e){const t=hf(e);return t!==jn&&t!==Mn?t:void 0}function vf(e){return!(!e.symbol||!d(e.symbol.declarations,e=>SD(e)&&e.default))}function bf(e){return e.resolvedApparentType||(e.resolvedApparentType=function(e){const t=e.target??e,n=lS(t);if(n&&!t.declaration.nameType){const r=vp(e),i=Sp(r)?bf(r):pf(r);if(i&&KD(i,e=>jC(e)||xf(e)))return fS(t,nS(n,i,e.mapper))}return e}(e))}function xf(e){return!!(2097152&e.flags)&&v(e.types,jC)}function kf(e){let t;return!(!(8388608&e.flags&&32&gx(t=e.objectType)&&!Sp(t)&&Cx(e.indexType))||8&bp(t)||t.declaration.nameType)}function Sf(e){const t=465829888&e.flags?pf(e)||Ot:e,n=gx(t);return 32&n?bf(t):4&n&&t!==e?wd(t,e):2097152&t.flags?function(e,t){if(e===t)return e.resolvedApparentType||(e.resolvedApparentType=wd(e,t,!0));const n=`I${kb(e)},${kb(t)}`;return Oo(n)??Lo(n,wd(e,t,!0))}(t,e):402653316&t.flags?rr:296&t.flags?ir:2112&t.flags?Vr||(Vr=Wy("BigInt",0,!1))||Nn:528&t.flags?or:12288&t.flags?Zy():67108864&t.flags?Nn:4194304&t.flags?hn:2&t.flags&&!H?Nn:t}function Tf(e){return Bf(Sf(Bf(e)))}function Cf(e,t,n){var r,i,o;let a,s,c,l=0;const _=1048576&e.flags;let d,p=4,f=_?0:8,m=!1;for(const r of e.types){const e=Sf(r);if(!(al(e)||131072&e.flags)){const r=pm(e,t,n),i=r?ix(r):0;if(r){if(106500&r.flags&&(d??(d=_?0:16777216),_?d|=16777216&r.flags:d&=r.flags),a){if(r!==a){if((uB(r)||r)===(uB(a)||a)&&-1===EC(a,r,(e,t)=>e===t?-1:0))m=!!a.parent&&!!u(Z_(a.parent));else{s||(s=new Map,s.set(eJ(a),a));const e=eJ(r);s.has(e)||s.set(e,r)}98304&l&&(98304&r.flags)!=(98304&l)&&(l=-98305&l|4)}}else a=r,l=98304&r.flags||4;_&&_j(r)?f|=8:_||_j(r)||(f&=-9),f|=(6&i?0:256)|(4&i?512:0)|(2&i?1024:0)|(256&i?2048:0),yI(r)||(p=2)}else if(_){const n=!ld(t)&&og(e,t);n?(l=-98305&l|4,f|=32|(n.isReadonly?8:0),c=ie(c,rw(e)?aw(e)||jt:n.type)):!xN(e)||2097152&gx(e)?f|=16:(f|=32,c=ie(c,jt))}}}if(!a||_&&(s||48&f)&&1536&f&&(!s||!function(e){let t;for(const n of e){if(!n.declarations)return;if(t){if(t.forEach(e=>{T(n.declarations,e)||t.delete(e)}),0===t.size)return}else t=new Set(n.declarations)}return t}(s.values())))return;if(!(s||16&f||c)){if(m){const t=null==(r=tt(a,Xu))?void 0:r.links,n=ww(a,null==t?void 0:t.type);return n.parent=null==(o=null==(i=a.valueDeclaration)?void 0:i.symbol)?void 0:o.parent,n.links.containingType=e,n.links.mapper=null==t?void 0:t.mapper,n.links.writeType=E_(a),n}return a}const g=s?Oe(s.values()):[a];let h,y,v;const b=[];let x,k,S=!1;for(const e of g){k?e.valueDeclaration&&e.valueDeclaration!==k&&(S=!0):k=e.valueDeclaration,h=se(h,e.declarations);const t=P_(e);y||(y=t,v=ua(e).nameType);const n=E_(e);(x||n!==t)&&(x=ie(x||b.slice(),n)),t!==y&&(f|=64),(XC(t)||vx(t))&&(f|=128),131072&t.flags&&t!==Sn&&(f|=131072),b.push(t)}se(b,c);const C=Xo(l|(d??0),t,p|f);return C.links.containingType=e,!S&&k&&(C.valueDeclaration=k,k.symbol.parent&&(C.parent=k.symbol.parent)),C.declarations=h,C.links.nameType=v,b.length>2?(C.links.checkFlags|=65536,C.links.deferralParent=e,C.links.deferralConstituents=b,C.links.deferralWriteConstituents=x):(C.links.type=_?Pb(b):Bb(b),x&&(C.links.writeType=_?Pb(x):Bb(x))),C}function Nf(e,t,n){var r,i,o;let a=n?null==(r=e.propertyCacheWithoutObjectFunctionPropertyAugment)?void 0:r.get(t):null==(i=e.propertyCache)?void 0:i.get(t);return!a&&(a=Cf(e,t,n),a)&&((n?e.propertyCacheWithoutObjectFunctionPropertyAugment||(e.propertyCacheWithoutObjectFunctionPropertyAugment=Gu()):e.propertyCache||(e.propertyCache=Gu())).set(t,a),!n||48&rx(a)||(null==(o=e.propertyCache)?void 0:o.get(t))||(e.propertyCache||(e.propertyCache=Gu())).set(t,a)),a}function Rf(e,t,n){const r=Nf(e,t,n);return!r||16&rx(r)?void 0:r}function Bf(e){return 1048576&e.flags&&16777216&e.objectFlags?e.resolvedReducedType||(e.resolvedReducedType=function(e){const t=A(e.types,Bf);if(t===e.types)return e;const n=Pb(t);return 1048576&n.flags&&(n.resolvedReducedType=n),n}(e)):2097152&e.flags?(16777216&e.objectFlags||(e.objectFlags|=16777216|($(Jp(e),Vf)?33554432:0)),33554432&e.objectFlags?_n:e):e}function Vf(e){return Wf(e)||$f(e)}function Wf(e){return!(16777216&e.flags||192!=(131264&rx(e))||!(131072&P_(e).flags))}function $f(e){return!e.valueDeclaration&&!!(1024&rx(e))}function Hf(e){return!!(1048576&e.flags&&16777216&e.objectFlags&&$(e.types,Hf)||2097152&e.flags&&function(e){const t=e.uniqueLiteralFilledInstantiation||(e.uniqueLiteralFilledInstantiation=fS(e,Tn));return Bf(t)!==t}(e))}function Gf(e,t){if(2097152&t.flags&&33554432&gx(t)){const n=b(Jp(t),Wf);if(n)return Zx(e,_a.The_intersection_0_was_reduced_to_never_because_property_1_has_conflicting_types_in_some_constituents,Tc(t,void 0,536870912),bc(n));const r=b(Jp(t),$f);if(r)return Zx(e,_a.The_intersection_0_was_reduced_to_never_because_property_1_exists_in_multiple_constituents_and_is_private_in_some,Tc(t,void 0,536870912),bc(r))}return e}function pm(e,t,n,r){var i,o;if(524288&(e=Tf(e)).flags){const a=Cp(e),s=a.members.get(t);if(s&&!r&&512&(null==(i=e.symbol)?void 0:i.flags)&&(null==(o=ua(e.symbol).typeOnlyExportStarMap)?void 0:o.has(t)))return;if(s&&Ls(s,r))return s;if(n)return;const c=a===Ln?Xn:a.callSignatures.length?Qn:a.constructSignatures.length?Yn:void 0;if(c){const e=Lp(c,t);if(e)return e}return Lp(Gn,t)}if(2097152&e.flags){return Rf(e,t,!0)||(n?void 0:Rf(e,t,n))}if(1048576&e.flags)return Rf(e,t,n)}function fm(e,t){if(3670016&e.flags){const n=Cp(e);return 0===t?n.callSignatures:n.constructSignatures}return l}function mm(e,t){const n=fm(Tf(e),t);if(0===t&&!u(n)&&1048576&e.flags){if(e.arrayFallbackSignatures)return e.arrayFallbackSignatures;let r;if(KD(e,e=>{var t,n;return!(!(null==(t=e.symbol)?void 0:t.parent)||(n=e.symbol.parent,!(n&&Zn.symbol&&er.symbol)||!Is(n,Zn.symbol)&&!Is(n,er.symbol))||(r?r!==e.symbol.escapedName:(r=e.symbol.escapedName,0)))})){const n=Rv(nF(e,e=>Vk((ym(e.symbol.parent)?er:Zn).typeParameters[0],e.mapper)),UD(e,e=>ym(e.symbol.parent)));return e.arrayFallbackSignatures=mm(el(n,r),t)}e.arrayFallbackSignatures=n}return n}function ym(e){return!(!e||!er.symbol||!Is(e,er.symbol))}function Dm(e,t){return b(e,e=>e.keyType===t)}function Am(e,t){let n,r,i;for(const o of e)o.keyType===Vt?n=o:jm(t,o.keyType)&&(r?(i||(i=[r])).push(o):r=o);return i?Ah(Ot,Bb(E(i,e=>e.type)),we(i,(e,t)=>e&&t.isReadonly,!0)):r||(n&&jm(t,Vt)?n:void 0)}function jm(e,t){return FS(e,t)||t===Vt&&FS(e,Wt)||t===Wt&&(e===bn||!!(128&e.flags)&&JT(e.value))}function Bm(e){return 3670016&e.flags?Cp(e).indexInfos:l}function Jm(e){return Bm(Tf(e))}function qm(e,t){return Dm(Jm(e),t)}function Qm(e,t){var n;return null==(n=qm(e,t))?void 0:n.type}function rg(e,t){return Jm(e).filter(e=>jm(t,e.keyType))}function ig(e,t){return Am(Jm(e),t)}function og(e,t){return ig(e,ld(t)?cn:fk(mc(t)))}function cg(e){var t;let n;for(const t of _l(e))n=le(n,Cu(t.symbol));return(null==n?void 0:n.length)?n:uE(e)?null==(t=Pg(e))?void 0:t.typeParameters:void 0}function lg(e){const t=[];return e.forEach((e,n)=>{qs(n)||t.push(e)}),t}function fg(e,t){if(Cs(e))return;const n=pa(Ne,'"'+e+'"',512);return n&&t?xs(n):n}function gg(e){return wg(e)||$T(e)||TD(e)&>(e)}function vg(e){if(gg(e))return!0;if(!TD(e))return!1;if(e.initializer){const t=Eg(e.parent),n=e.parent.parameters.indexOf(e);return un.assert(n>=0),n>=ML(t,3)}const t=om(e.parent);return!!t&&!e.type&&!e.dotDotDotToken&&e.parent.parameters.indexOf(e)>=BO(t).length}function bg(e,t,n,r){return{kind:e,parameterName:t,parameterIndex:n,type:r}}function Tg(e){let t=0;if(e)for(let n=0;n=n&&o<=i){const n=e?e.slice():[];for(let e=o;e!!nl(e))&&!nl(e)&&!LA(e)&&(i|=32);for(let t=l?1:0;tc.arguments.length&&!u||(o=n.length)}if((178===e.kind||179===e.kind)&&fd(e)&&(!s||!r)){const t=178===e.kind?179:178,n=Hu(ks(e),t);n&&(r=function(e){const t=lz(e);return t&&t.symbol}(n))}a&&a.typeExpression&&(r=ww(Xo(1,"this"),Pk(a.typeExpression)));const _=CP(e)?Ug(e):e,u=_&&PD(_)?mu(xs(_.parent.symbol)):void 0,d=u?u.localTypeParameters:cg(e);(Ru(e)||Em(e)&&function(e,t){if(CP(e)||!Ig(e))return!1;const n=ye(e.parameters),r=f(n?Ec(n):ol(e).filter(BP),e=>e.typeExpression&&xP(e.typeExpression.type)?e.typeExpression.type:void 0),i=Xo(3,"args",32768);return r?i.links.type=Rv(Pk(r.type)):(i.links.checkFlags|=65536,i.links.deferralParent=_n,i.links.deferralConstituents=[cr],i.links.deferralWriteConstituents=[cr]),r&&t.pop(),t.push(i),!0}(e,n))&&(i|=1),(JD(e)&&Nv(e,64)||PD(e)&&Nv(e.parent,64))&&(i|=4),t.resolvedSignature=Ed(e,d,r,n,void 0,void 0,o,i)}return t.resolvedSignature}function Pg(e){if(!Em(e)||!o_(e))return;const t=tl(e);return(null==t?void 0:t.typeExpression)&&CO(Pk(t.typeExpression))}function Ig(e){const t=da(e);return void 0===t.containsArgumentsReference&&(512&t.flags?t.containsArgumentsReference=!0:t.containsArgumentsReference=function e(t){if(!t)return!1;switch(t.kind){case 80:return t.escapedText===Le.escapedName&&qJ(t)===Le;case 173:case 175:case 178:case 179:return 168===t.name.kind&&e(t.name);case 212:case 213:return e(t.expression);case 304:return e(t.initializer);default:return!Zh(t)&&!wf(t)&&!!XI(t,e)}}(e.body)),t.containsArgumentsReference}function jg(e){if(!e||!e.declarations)return l;const t=[];for(let n=0;n0&&r.body){const t=e.declarations[n-1];if(r.parent===t.parent&&r.kind===t.kind&&r.pos===t.end)continue}if(Em(r)&&r.jsDoc){const e=zg(r);if(u(e)){for(const n of e){const e=n.typeExpression;void 0!==e.type||PD(r)||Jw(e,wt),t.push(Eg(e))}continue}}t.push(!RT(r)&&!Jf(r)&&Pg(r)||Eg(r))}}return t}function Mg(e){const t=rs(e,e);if(t){const e=ss(t);if(e)return P_(e)}return wt}function Rg(e){if(e.thisParameter)return P_(e.thisParameter)}function Hg(e){if(!e.resolvedTypePredicate){if(e.target){const t=Hg(e.target);e.resolvedTypePredicate=t?oS(t,e.mapper):ai}else if(e.compositeSignatures)e.resolvedTypePredicate=function(e,t){let n;const r=[];for(const i of e){const e=Hg(i);if(e){if(0!==e.kind&&1!==e.kind||n&&!Ib(n,e))return;n=e,r.push(e.type)}else{const e=2097152!==t?Gg(i):void 0;if(e!==Ht&&e!==Qt)return}}if(!n)return;const i=Kg(r,t);return bg(n.kind,n.parameterName,n.parameterIndex,i)}(e.compositeSignatures,e.compositeKind)||ai;else{const t=e.declaration&&gv(e.declaration);let n;if(!t){const t=Pg(e.declaration);t&&e!==t&&(n=Hg(t))}if(t||n)e.resolvedTypePredicate=t&&MD(t)?function(e,t){const n=e.parameterName,r=e.type&&Pk(e.type);return 198===n.kind?bg(e.assertsModifier?2:0,void 0,void 0,r):bg(e.assertsModifier?3:1,n.escapedText,k(t.parameters,e=>e.escapedName===n.escapedText),r)}(t,e):n||ai;else if(e.declaration&&o_(e.declaration)&&(!e.resolvedReturnType||16&e.resolvedReturnType.flags)&&jL(e)>0){const{declaration:t}=e;e.resolvedTypePredicate=ai,e.resolvedTypePredicate=function(e){switch(e.kind){case 177:case 178:case 179:return}if(0!==Oh(e))return;let t;if(e.body&&242!==e.body.kind)t=e.body;else if(Df(e.body,e=>{if(t||!e.expression)return!0;t=e.expression})||!t||ij(e))return;return function(e,t){return 16&Ij(t=ah(t,!0)).flags?d(e.parameters,(n,r)=>{const i=P_(n.symbol);if(!i||16&i.flags||!aD(n.name)||oE(n.symbol)||Bu(n))return;const o=function(e,t,n,r){const i=Og(t)&&t.flowNode||254===t.parent.kind&&t.parent.flowNode||HR(2,void 0,void 0),o=HR(32,t,i),a=rE(n.name,r,r,e,o);if(a===r)return;const s=HR(64,t,i);return 131072&Bf(rE(n.name,r,a,e,s)).flags?a:void 0}(e,t,n,i);return o?bg(1,mc(n.name.escapedText),r,o):void 0}):void 0}(e,t)}(t)||ai}else e.resolvedTypePredicate=ai}un.assert(!!e.resolvedTypePredicate)}return e.resolvedTypePredicate===ai?void 0:e.resolvedTypePredicate}function Kg(e,t,n){return 2097152!==t?Pb(e,n):Bb(e)}function Gg(e){if(!e.resolvedReturnType){if(!$c(e,3))return Et;let t=e.target?fS(Gg(e.target),e.mapper):e.compositeSignatures?fS(Kg(E(e.compositeSignatures,Gg),e.compositeKind,2),e.mapper):Zg(e.declaration)||(Nd(e.declaration.body)?wt:ZL(e.declaration));if(8&e.flags?t=gw(t):16&e.flags&&(t=pw(t)),!Yc()){if(e.declaration){const t=gv(e.declaration);if(t)zo(t,_a.Return_type_annotation_circularly_references_itself);else if(ne){const t=e.declaration,n=Cc(t);n?zo(n,_a._0_implicitly_has_return_type_any_because_it_does_not_have_a_return_type_annotation_and_is_referenced_directly_or_indirectly_in_one_of_its_return_expressions,Ap(n)):zo(t,_a.Function_implicitly_has_return_type_any_because_it_does_not_have_a_return_type_annotation_and_is_referenced_directly_or_indirectly_in_one_of_its_return_expressions)}}t=wt}e.resolvedReturnType??(e.resolvedReturnType=t)}return e.resolvedReturnType}function Zg(e){if(177===e.kind)return mu(xs(e.parent.symbol));const t=gv(e);if(CP(e)){const n=Wg(e);if(n&&PD(n.parent)&&!t)return mu(xs(n.parent.parent.symbol))}if(Ng(e))return Pk(e.parameters[0].type);if(t)return Pk(t);if(178===e.kind&&fd(e)){const t=Em(e)&&Fl(e);if(t)return t;const n=y_(Hu(ks(e),179));if(n)return n}return function(e){const t=Pg(e);return t&&Gg(t)}(e)}function th(e){return e.compositeSignatures&&$(e.compositeSignatures,th)||!e.resolvedReturnType&&Hc(e,3)>=0}function _h(e){if(aJ(e)){const t=P_(e.parameters[e.parameters.length-1]),n=rw(t)?aw(t):t;return n&&Qm(n,Wt)}}function dh(e,t,n,r){const i=xh(e,Cg(t,e.typeParameters,Tg(e.typeParameters),n));if(r){const e=wO(Gg(i));if(e){const t=Pd(e);t.typeParameters=r;const n=Dh(t);n.mapper=i.mapper;const o=Pd(i);return o.resolvedReturnType=n,o}}return i}function xh(e,t){const n=e.instantiations||(e.instantiations=new Map),r=ny(t);let i=n.get(r);return i||n.set(r,i=Sh(e,t)),i}function Sh(e,t){return aS(e,function(e,t){return Uk(Ch(e),t)}(e,t),!0)}function Ch(e){return A(e.typeParameters,e=>e.mapper?fS(e,e.mapper):e)}function wh(e){return e.typeParameters?e.erasedSignatureCache||(e.erasedSignatureCache=function(e){return aS(e,Zk(e.typeParameters),!0)}(e)):e}function Nh(e){const t=e.typeParameters;if(t){if(e.baseSignatureCache)return e.baseSignatureCache;const n=Zk(t),r=Uk(t,E(t,e=>Hp(e)||Ot));let i=E(t,e=>fS(e,r)||Ot);for(let e=0;e{Mh(e)&&!Dm(n,e)&&n.push(Ah(e,t.type?Pk(t.type):wt,wv(t,8),t))})}}else if(ud(t)){const e=NF(t)?t.left:t.name,_=pF(e)?Ij(e.argumentExpression):BA(e);if(Dm(n,_))continue;FS(_,hn)&&(FS(_,Wt)?(r=!0,Ov(t)||(i=!1)):FS(_,cn)?(o=!0,Ov(t)||(a=!1)):(s=!0,Ov(t)||(c=!1)),l.push(t.symbol))}const _=K(l,N(t,t=>t!==e));return s&&!Dm(n,Vt)&&n.push(UA(c,0,_,Vt)),r&&!Dm(n,Wt)&&n.push(UA(i,0,_,Wt)),o&&!Dm(n,cn)&&n.push(UA(a,0,_,cn)),n}return l}function Mh(e){return!!(4108&e.flags)||vx(e)||!!(2097152&e.flags)&&!xx(e)&&$(e.types,Mh)}function $h(e){return B(N(e.symbol&&e.symbol.declarations,SD),ul)[0]}function Hh(e,t){var n;let r;if(null==(n=e.symbol)?void 0:n.declarations)for(const n of e.symbol.declarations)if(196===n.parent.kind){const[i=n.parent,o]=ih(n.parent.parent);if(184!==o.kind||t){if(170===o.kind&&o.dotDotDotToken||192===o.kind||203===o.kind&&o.dotDotDotToken)r=ie(r,Rv(Ot));else if(205===o.kind)r=ie(r,Vt);else if(169===o.kind&&201===o.parent.kind)r=ie(r,hn);else if(201===o.kind&&o.type&&ah(o.type)===n.parent&&195===o.parent.kind&&o.parent.extendsType===o&&201===o.parent.checkType.kind&&o.parent.checkType.type){const e=o.parent.checkType;r=ie(r,fS(Pk(e.type),Wk(Cu(ks(e.typeParameter)),e.typeParameter.constraint?Pk(e.typeParameter.constraint):hn)))}}else{const t=o,n=mM(t);if(n){const o=t.typeArguments.indexOf(i);if(o()=>dM(t,n,r))));o!==e&&(r=ie(r,o))}}}}}return r&&Bb(r)}function Gh(e){if(!e.constraint)if(e.target){const t=Hp(e.target);e.constraint=t?fS(t,e.mapper):jn}else{const t=$h(e);if(t){let n=Pk(t);1&n.flags&&!al(n)&&(n=201===t.parent.parent.kind?hn:Ot),e.constraint=n}else e.constraint=Hh(e)||jn}return e.constraint===jn?void 0:e.constraint}function ty(e){const t=Hu(e.symbol,169),n=UP(t.parent)?Jg(t.parent):t.parent;return n&&Ss(n)}function ny(e){let t="";if(e){const n=e.length;let r=0;for(;r1&&(t+=":"+o),r+=o}}return t}function ry(e,t){return e?`@${eJ(e)}`+(t?`:${ny(t)}`:""):""}function iy(e,t){let n=0;for(const r of e)void 0!==t&&r.flags&t||(n|=gx(r));return 458752&n}function oy(e,t){return $(t)&&e===On?Ot:ay(e,t)}function ay(e,t){const n=ny(t);let r=e.instantiations.get(n);return r||(r=Js(4,e.symbol),e.instantiations.set(n,r),r.objectFlags|=t?iy(t):0,r.target=e,r.resolvedTypeArguments=t),r}function sy(e){const t=Ms(e.flags,e.symbol);return t.objectFlags=e.objectFlags,t.target=e.target,t.resolvedTypeArguments=e.resolvedTypeArguments,t}function cy(e,t,n,r,i){if(!r){const e=rk(r=tk(t));i=n?Mk(e,n):e}const o=Js(4,e.symbol);return o.target=e,o.node=t,o.mapper=n,o.aliasSymbol=r,o.aliasTypeArguments=i,o}function uy(e){var t,n;if(!e.resolvedTypeArguments){if(!$c(e,5))return K(e.target.outerTypeParameters,null==(t=e.target.localTypeParameters)?void 0:t.map(()=>Et))||l;const i=e.node,o=i?184===i.kind?K(e.target.outerTypeParameters,pM(i,e.target.localTypeParameters)):189===i.kind?[Pk(i.elementType)]:E(i.elements,Pk):l;Yc()?e.resolvedTypeArguments??(e.resolvedTypeArguments=e.mapper?Mk(o,e.mapper):o):(e.resolvedTypeArguments??(e.resolvedTypeArguments=K(e.target.outerTypeParameters,(null==(n=e.target.localTypeParameters)?void 0:n.map(()=>Et))||l)),zo(e.node||r,e.target.symbol?_a.Type_arguments_for_0_circularly_reference_themselves:_a.Tuple_type_arguments_circularly_reference_themselves,e.target.symbol&&bc(e.target.symbol)))}return e.resolvedTypeArguments}function dy(e){return u(e.target.typeParameters)}function py(e,t){const n=Au(xs(t)),r=n.localTypeParameters;if(r){const t=u(e.typeArguments),i=Tg(r),o=Em(e);if((ne||!o)&&(tr.length)){const t=o&&OF(e)&&!wP(e.parent);if(zo(e,i===r.length?t?_a.Expected_0_type_arguments_provide_these_with_an_extends_tag:_a.Generic_type_0_requires_1_type_argument_s:t?_a.Expected_0_1_type_arguments_provide_these_with_an_extends_tag:_a.Generic_type_0_requires_between_1_and_2_type_arguments,Tc(n,void 0,2),i,r.length),!o)return Et}return 184===e.kind&&Uv(e,u(e.typeArguments)!==r.length)?cy(n,e,void 0):ay(n,K(n.outerTypeParameters,Cg(Ry(e),r,i,o)))}return Ay(e,t)?n:Et}function fy(e,t,n,r){const i=Au(e);if(i===It){const n=XB.get(e.escapedName);if(void 0!==n&&t&&1===t.length)return 4===n?by(t[0]):nx(e,t[0])}const o=ua(e),a=o.typeParameters,s=ny(t)+ry(n,r);let c=o.instantiations.get(s);return c||o.instantiations.set(s,c=mS(i,Uk(a,Cg(t,a,Tg(a),Em(e.valueDeclaration))),n,r)),c}function my(e){var t;const n=null==(t=e.declarations)?void 0:t.find(Fg);return!(!n||!Kf(n))}function gy(e){return e.parent?`${gy(e.parent)}.${e.escapedName}`:e.escapedName}function hy(e){const t=(167===e.kind?e.right:212===e.kind?e.name:e).escapedText;if(t){const n=167===e.kind?hy(e.left):212===e.kind?hy(e.expression):void 0,r=n?`${gy(n)}.${t}`:t;let i=St.get(r);return i||(St.set(r,i=Xo(524288,t,1048576)),i.parent=n,i.links.declaredType=Pt),i}return xt}function yy(e,t,n){const r=function(e){switch(e.kind){case 184:return e.typeName;case 234:const t=e.expression;if(ab(t))return t}}(e);if(!r)return xt;const i=ts(r,t,n);return i&&i!==xt?i:n?xt:hy(r)}function vy(e,t){if(t===xt)return Et;if(96&(t=function(e){const t=e.valueDeclaration;if(!t||!Em(t)||524288&e.flags||Hm(t,!1))return;const n=lE(t)?Wm(t):$m(t);if(n){const t=Ss(n);if(t)return cL(t,e)}}(t)||t).flags)return py(e,t);if(524288&t.flags)return function(e,t){if(1048576&rx(t)){const n=Ry(e),r=ry(t,n);let i=Tt.get(r);return i||(i=Bs(1,"error",void 0,`alias ${r}`),i.aliasSymbol=t,i.aliasTypeArguments=n,Tt.set(r,i)),i}const n=Au(t),r=ua(t).typeParameters;if(r){const n=u(e.typeArguments),i=Tg(r);if(nr.length)return zo(e,i===r.length?_a.Generic_type_0_requires_1_type_argument_s:_a.Generic_type_0_requires_between_1_and_2_type_arguments,bc(t),i,r.length),Et;const o=tk(e);let a,s=!o||!my(t)&&my(o)?void 0:o;if(s)a=rk(s);else if(Iu(e)){const t=yy(e,2097152,!0);if(t&&t!==xt){const n=Ha(t);n&&524288&n.flags&&(s=n,a=Ry(e)||(r?[]:void 0))}}return fy(t,Ry(e),s,a)}return Ay(e,t)?n:Et}(e,t);const n=Ou(t);if(n)return Ay(e,t)?dk(n):Et;if(111551&t.flags&&Py(e)){const n=function(e,t){const n=da(e);if(!n.resolvedJSDocType){const r=P_(t);let i=r;if(t.valueDeclaration){const n=206===e.kind&&e.qualifier;r.symbol&&r.symbol!==t&&n&&(i=vy(e,r.symbol))}n.resolvedJSDocType=i}return n.resolvedJSDocType}(e,t);return n||(yy(e,788968),P_(t))}return Et}function by(e){return ky(e)?Cy(e,Ot):e}function ky(e){return!!(3145728&e.flags&&$(e.types,ky)||33554432&e.flags&&!Sy(e)&&ky(e.baseType)||524288&e.flags&&!XS(e)||432275456&e.flags&&!vx(e))}function Sy(e){return!!(33554432&e.flags&&2&e.constraint.flags)}function Ty(e,t){return 3&t.flags||t===e||1&e.flags?e:Cy(e,t)}function Cy(e,t){const n=`${kb(e)}>${kb(t)}`,r=dt.get(n);if(r)return r;const i=js(33554432);return i.baseType=e,i.constraint=t,dt.set(n,i),i}function wy(e){return Sy(e)?e.baseType:Bb([e.constraint,e.baseType])}function Ny(e){return 190===e.kind&&1===e.elements.length}function Dy(e,t,n){return Ny(t)&&Ny(n)?Dy(e,t.elements[0],n.elements[0]):Rx(Pk(t))===Rx(e)?Pk(n):void 0}function Py(e){return!!(16777216&e.flags)&&(184===e.kind||206===e.kind)}function Ay(e,t){return!e.typeArguments||(zo(e,_a.Type_0_is_not_generic,t?bc(t):e.typeName?Ap(e.typeName):JB),!1)}function Iy(e){if(aD(e.typeName)){const t=e.typeArguments;switch(e.typeName.escapedText){case"String":return Ay(e),Vt;case"Number":return Ay(e),Wt;case"BigInt":return Ay(e),$t;case"Boolean":return Ay(e),sn;case"Void":return Ay(e),ln;case"Undefined":return Ay(e),jt;case"Null":return Ay(e),zt;case"Function":case"function":return Ay(e),Xn;case"array":return t&&t.length||ne?void 0:cr;case"promise":return t&&t.length||ne?void 0:XL(wt);case"Object":if(t&&2===t.length){if(Om(e)){const e=Pk(t[0]),n=Pk(t[1]),r=e===Vt||e===Wt?[Ah(e,n,!1)]:l;return $s(void 0,P,l,l,r)}return wt}return Ay(e),ne?void 0:wt}}}function jy(e){const t=da(e);if(!t.resolvedType){if(kl(e)&&W_(e.parent))return t.resolvedSymbol=xt,t.resolvedType=Ij(e.parent.expression);let n,r;const i=788968;Py(e)&&(r=Iy(e),r||(n=yy(e,i,!0),n===xt?n=yy(e,111551|i):yy(e,i),r=vy(e,n))),r||(n=yy(e,i),r=vy(e,n)),t.resolvedSymbol=n,t.resolvedType=r}return t.resolvedType}function Ry(e){return E(e.typeArguments,Pk)}function By(e){const t=da(e);if(!t.resolvedType){const n=bL(e);t.resolvedType=dk(jw(n))}return t.resolvedType}function Jy(e,t){function n(e){const t=e.declarations;if(t)for(const e of t)switch(e.kind){case 264:case 265:case 267:return e}}if(!e)return t?On:Nn;const r=Au(e);return 524288&r.flags?u(r.typeParameters)!==t?(zo(n(e),_a.Global_type_0_must_have_1_type_parameter_s,yc(e),t),t?On:Nn):r:(zo(n(e),_a.Global_type_0_must_be_a_class_or_interface_type,yc(e)),t?On:Nn)}function zy(e,t){return Vy(e,111551,t?_a.Cannot_find_global_value_0:void 0)}function qy(e,t){return Vy(e,788968,t?_a.Cannot_find_global_type_0:void 0)}function Uy(e,t,n){const r=Vy(e,788968,n?_a.Cannot_find_global_type_0:void 0);if(!r||(Au(r),u(ua(r).typeParameters)===t))return r;zo(r.declarations&&b(r.declarations,fE),_a.Global_type_0_must_have_1_type_parameter_s,yc(r),t)}function Vy(e,t,n){return Ue(void 0,e,t,n,!1,!1)}function Wy(e,t,n){const r=qy(e,n);return r||n?Jy(r,t):void 0}function $y(e,t){let n;for(const r of e)n=ie(n,Wy(r,t,!1));return n??l}function Hy(){return Lr||(Lr=Wy("ImportMeta",0,!0)||Nn)}function Ky(){if(!jr){const e=Xo(0,"ImportMetaExpression"),t=Hy(),n=Xo(4,"meta",8);n.parent=e,n.links.type=t;const r=Gu([n]);e.members=r,jr=$s(e,r,l,l,l)}return jr}function Gy(e){return Mr||(Mr=Wy("ImportCallOptions",0,e))||Nn}function Qy(e){return Rr||(Rr=Wy("ImportAttributes",0,e))||Nn}function Yy(e){return dr||(dr=zy("Symbol",e))}function Zy(){return fr||(fr=Wy("Symbol",0,!1))||Nn}function ev(e){return gr||(gr=Wy("Promise",1,e))||On}function tv(e){return hr||(hr=Wy("PromiseLike",1,e))||On}function nv(e){return yr||(yr=zy("Promise",e))}function rv(e){return Nr||(Nr=Wy("AsyncIterable",3,e))||On}function av(e){return Fr||(Fr=Wy("AsyncIterableIterator",3,e))||On}function dv(e){return br||(br=Wy("Iterable",3,e))||On}function pv(e){return kr||(kr=Wy("IterableIterator",3,e))||On}function mv(){return ee?jt:wt}function vv(e){return Br||(Br=Wy("Disposable",0,e))||Nn}function bv(e,t=0){const n=Vy(e,788968,void 0);return n&&Jy(n,t)}function xv(e){return Ur||(Ur=Uy("Awaited",1,e)||(e?xt:void 0)),Ur===xt?void 0:Ur}function kv(e,t){return e!==On?ay(e,t):Nn}function Sv(e){return kv(mr||(mr=Wy("TypedPropertyDescriptor",1,!0)||On),[e])}function Mv(e){return kv(dv(!0),[e,ln,jt])}function Rv(e,t){return kv(t?er:Zn,[e])}function Jv(e){switch(e.kind){case 191:return 2;case 192:return zv(e);case 203:return e.questionToken?2:e.dotDotDotToken?zv(e):1;default:return 1}}function zv(e){return Ek(e.type)?4:8}function qv(e){return WD(e)||TD(e)?e:void 0}function Uv(e,t){return!!tk(e)||Vv(e)&&(189===e.kind?Wv(e.elementType):190===e.kind?$(e.elements,Wv):t||$(e.typeArguments,Wv))}function Vv(e){const t=e.parent;switch(t.kind){case 197:case 203:case 184:case 193:case 194:case 200:case 195:case 199:case 189:case 190:return Vv(t);case 266:return!0}return!1}function Wv(e){switch(e.kind){case 184:return Py(e)||!!(524288&yy(e,788968).flags);case 187:return!0;case 199:return 158!==e.operator&&Wv(e.type);case 197:case 191:case 203:case 317:case 315:case 316:case 310:return Wv(e.type);case 192:return 189!==e.type.kind||Wv(e.type.elementType);case 193:case 194:return $(e.types,Wv);case 200:return Wv(e.objectType)||Wv(e.indexType);case 195:return Wv(e.checkType)||Wv(e.extendsType)||Wv(e.trueType)||Wv(e.falseType)}return!1}function Gv(e,t,n=!1,r=[]){const i=Xv(t||E(e,e=>1),n,r);return i===On?Nn:e.length?Qv(i,e):i}function Xv(e,t,n){if(1===e.length&&4&e[0])return t?er:Zn;const r=E(e,e=>1&e?"#":2&e?"?":4&e?".":"*").join()+(t?"R":"")+($(n,e=>!!e)?","+E(n,e=>e?ZB(e):"_").join(","):"");let i=Ye.get(r);return i||Ye.set(r,i=function(e,t,n){const r=e.length,i=w(e,e=>!!(9&e));let o;const a=[];let s=0;if(r){o=new Array(r);for(let i=0;i!!(8&e.elementFlags[n]&&1179648&t.flags));if(n>=0)return zb(E(t,(t,n)=>8&e.elementFlags[n]?t:Ot))?nF(t[n],r=>tb(e,Se(t,n,r))):Et}const s=[],c=[],l=[];let _=-1,u=-1,p=-1;for(let c=0;c=1e4)return zo(r,wf(r)?_a.Type_produces_a_tuple_type_that_is_too_large_to_represent:_a.Expression_produces_a_tuple_type_that_is_too_large_to_represent),Et;d(e,(e,t)=>{var n;return m(e,l.target.elementFlags[t],null==(n=l.target.labeledElementDeclarations)?void 0:n[t])})}else m(JC(l)&&Qm(l,Wt)||Et,4,null==(o=e.labeledElementDeclarations)?void 0:o[c]);else m(l,_,null==(a=e.labeledElementDeclarations)?void 0:a[c])}for(let e=0;e<_;e++)2&c[e]&&(c[e]=1);u>=0&&u8&c[u+t]?Ax(e,Wt):e)),s.splice(u+1,p-u),c.splice(u+1,p-u),l.splice(u+1,p-u));const f=Xv(c,e.readonly,l);return f===On?Nn:c.length?ay(f,s):f;function m(e,t,n){1&t&&(_=c.length),4&t&&u<0&&(u=c.length),6&t&&(p=c.length),s.push(2&t?Pl(e,!0):e),c.push(t),l.push(n)}}function ib(e,t,n=0){const r=e.target,i=dy(e)-n;return t>r.fixedLength?function(e){const t=aw(e);return t&&Rv(t)}(e)||Gv(l):Gv(uy(e).slice(t,i),r.elementFlags.slice(t,i),!1,r.labeledElementDeclarations&&r.labeledElementDeclarations.slice(t,i))}function hb(e){return Pb(ie(Ie(e.target.fixedLength,e=>fk(""+e)),Yb(e.target.readonly?er:Zn)))}function yb(e,t){return e.elementFlags.length-S(e.elementFlags,e=>!(e&t))-1}function vb(e){return e.fixedLength+yb(e,3)}function xb(e){const t=uy(e),n=dy(e);return t.length===n?t:t.slice(0,n)}function kb(e){return e.id}function Sb(e,t){return Te(e,t,kb,vt)>=0}function Tb(e,t){const n=Te(e,t,kb,vt);return n<0&&(e.splice(~n,0,t),!0)}function Cb(e,t,n){const r=n.flags;if(!(131072&r))if(t|=473694207&r,465829888&r&&(t|=33554432),2097152&r&&67108864&gx(n)&&(t|=536870912),n===Dt&&(t|=8388608),al(n)&&(t|=1073741824),!H&&98304&r)65536&gx(n)||(t|=4194304);else{const t=e.length,r=t&&n.id>e[t-1].id?~t:Te(e,n,kb,vt);r<0&&e.splice(~r,0,n)}return t}function wb(e,t,n){let r;for(const i of n)i!==r&&(t=1048576&i.flags?wb(e,t|(Db(i)?1048576:0),i.types):Cb(e,t,i),r=i);return t}function Nb(e,t){return 134217728&t.flags?gN(e,t):pN(e,t)}function Db(e){return!!(1048576&e.flags&&(e.aliasSymbol||e.origin))}function Fb(e,t){for(const n of t)if(1048576&n.flags){const t=n.origin;n.aliasSymbol||t&&!(1048576&t.flags)?ce(e,n):t&&1048576&t.flags&&Fb(e,t.types)}}function Eb(e,t){const n=Rs(e);return n.types=t,n}function Pb(e,t=1,n,r,i){if(0===e.length)return _n;if(1===e.length)return e[0];if(2===e.length&&!i&&(1048576&e[0].flags||1048576&e[1].flags)){const i=0===t?"N":2===t?"S":"L",o=e[0].id=2&&a[0]===jt&&a[1]===Rt&&qt(a,1),(402664352&s||16384&s&&32768&s)&&function(e,t,n){let r=e.length;for(;r>0;){r--;const i=e[r],o=i.flags;(402653312&o&&4&t||256&o&&8&t||2048&o&&64&t||8192&o&&4096&t||n&&32768&o&&16384&t||pk(i)&&Sb(e,i.regularType))&&qt(e,r)}}(a,s,!!(2&t)),128&s&&402653184&s&&function(e){const t=N(e,vx);if(t.length){let n=e.length;for(;n>0;){n--;const r=e[n];128&r.flags&&$(t,e=>Nb(r,e))&&qt(e,n)}}}(a),536870912&s&&function(e){const t=[];for(const n of e)if(2097152&n.flags&&67108864&gx(n)){const e=8650752&n.types[0].flags?0:1;ce(t,n.types[e])}for(const n of t){const t=[];for(const r of e)if(2097152&r.flags&&67108864&gx(r)){const e=8650752&r.types[0].flags?0:1;r.types[e]===n&&Tb(t,r.types[1-e])}if(KD(pf(n),e=>Sb(t,e))){let r=e.length;for(;r>0;){r--;const i=e[r];if(2097152&i.flags&&67108864&gx(i)){const o=8650752&i.types[0].flags?0:1;i.types[o]===n&&Sb(t,i.types[1-o])&&qt(e,r)}}Tb(e,n)}}}(a),2===t&&(a=function(e,t){var n;if(e.length<2)return e;const i=ny(e),o=pt.get(i);if(o)return o;const a=t&&$(e,e=>!!(524288&e.flags)&&!Sp(e)&&KS(Cp(e))),s=e.length;let c=s,l=0;for(;c>0;){c--;const t=e[c];if(a||469499904&t.flags){if(262144&t.flags&&1048576&ff(t).flags){iT(t,Pb(E(e,e=>e===t?_n:e)),Co)&&qt(e,c);continue}const i=61603840&t.flags?b(Up(t),e=>KC(P_(e))):void 0,o=i&&dk(P_(i));for(const a of e)if(t!==a){if(1e5===l&&l/(s-c)*s>1e6)return null==(n=Hn)||n.instant(Hn.Phase.CheckTypes,"removeSubtypes_DepthLimit",{typeIds:e.map(e=>e.id)}),void zo(r,_a.Expression_produces_a_union_type_that_is_too_complex_to_represent);if(l++,i&&61603840&a.flags){const e=el(a,i.escapedName);if(e&&KC(e)&&dk(e)!==o)continue}if(iT(t,a,Co)&&(!(1&gx(z_(t)))||!(1&gx(z_(a)))||ES(t,a))){qt(e,c);break}}}}return pt.set(i,e),e}(a,!!(524288&s)),!a))return Et;if(0===a.length)return 65536&s?4194304&s?zt:Ut:32768&s?4194304&s?jt:Mt:_n}if(!o&&1048576&s){const t=[];Fb(t,e);const r=[];for(const e of a)$(t,t=>Sb(t.types,e))||r.push(e);if(!n&&1===t.length&&0===r.length)return t[0];if(we(t,(e,t)=>e+t.types.length,0)+r.length===a.length){for(const e of t)Tb(r,e);o=Eb(1048576,r)}}return Ob(a,(36323331&s?0:32768)|(2097152&s?16777216:0),n,i,o)}function Ib(e,t){return e.kind===t.kind&&e.parameterIndex===t.parameterIndex}function Ob(e,t,n,r,i){if(0===e.length)return _n;if(1===e.length)return e[0];const o=(i?1048576&i.flags?`|${ny(i.types)}`:2097152&i.flags?`&${ny(i.types)}`:`#${i.type.id}|${ny(e)}`:ny(e))+ry(n,r);let a=et.get(o);return a||(a=js(1048576),a.objectFlags=t|iy(e,98304),a.types=e,a.origin=i,a.aliasSymbol=n,a.aliasTypeArguments=r,2===e.length&&512&e[0].flags&&512&e[1].flags&&(a.flags|=16,a.intrinsicName="boolean"),et.set(o,a)),a}function Lb(e,t,n){const r=n.flags;return 2097152&r?jb(e,t,n.types):(XS(n)?16777216&t||(t|=16777216,e.set(n.id.toString(),n)):(3&r?(n===Dt&&(t|=8388608),al(n)&&(t|=1073741824)):!H&&98304&r||(n===Rt&&(t|=262144,n=jt),e.has(n.id.toString())||(109472&n.flags&&109472&t&&(t|=67108864),e.set(n.id.toString(),n))),t|=473694207&r),t)}function jb(e,t,n){for(const r of n)t=Lb(e,t,dk(r));return t}function Mb(e,t){for(const n of e)if(!Sb(n.types,t)){if(t===Rt)return Sb(n.types,jt);if(t===jt)return Sb(n.types,Rt);const e=128&t.flags?Vt:288&t.flags?Wt:2048&t.flags?$t:8192&t.flags?cn:void 0;if(!e||!Sb(n.types,e))return!1}return!0}function Rb(e,t){for(let n=0;n!(e.flags&t))}function Bb(e,t=0,n,r){const i=new Map,o=jb(i,0,e),a=Oe(i.values());let s=0;if(131072&o)return T(a,dn)?dn:_n;if(H&&98304&o&&84410368&o||67108864&o&&402783228&o||402653316&o&&67238776&o||296&o&&469891796&o||2112&o&&469889980&o||12288&o&&469879804&o||49152&o&&469842940&o)return _n;if(402653184&o&&128&o&&function(e){let t=e.length;const n=N(e,e=>!!(128&e.flags));for(;t>0;){t--;const r=e[t];if(402653184&r.flags)for(const i of n){if(NS(i,r)){qt(e,t);break}if(vx(r))return!0}}return!1}(a))return _n;if(1&o)return 8388608&o?Dt:1073741824&o?Et:wt;if(!H&&98304&o)return 16777216&o?_n:32768&o?jt:zt;if((4&o&&402653312&o||8&o&&256&o||64&o&&2048&o||4096&o&&8192&o||16384&o&&32768&o||16777216&o&&470302716&o)&&(1&t||function(e,t){let n=e.length;for(;n>0;){n--;const r=e[n];(4&r.flags&&402653312&t||8&r.flags&&256&t||64&r.flags&&2048&t||4096&r.flags&&8192&t||16384&r.flags&&32768&t||XS(r)&&470302716&t)&&qt(e,n)}}(a,o)),262144&o&&(a[a.indexOf(jt)]=Rt),0===a.length)return Ot;if(1===a.length)return a[0];if(2===a.length&&!(2&t)){const e=8650752&a[0].flags?0:1,t=a[e],n=a[1-e];if(8650752&t.flags&&(469893116&n.flags&&!bx(n)||16777216&o)){const e=pf(t);if(e&&KD(e,e=>!!(469893116&e.flags)||XS(e))){if(DS(e,n))return t;if(!(1048576&e.flags&&UD(e,e=>DS(e,n))||DS(n,e)))return _n;s=67108864}}}const c=ny(a)+(2&t?"*":ry(n,r));let l=it.get(c);if(!l){if(1048576&o)if(function(e){let t;const n=k(e,e=>!!(32768&gx(e)));if(n<0)return!1;let r=n+1;for(;r!!(1048576&e.flags&&32768&e.types[0].flags))){const e=$(a,Sw)?Rt:jt;Rb(a,32768),l=Pb([Bb(a,t),e],1,n,r)}else if(v(a,e=>!!(1048576&e.flags&&(65536&e.types[0].flags||65536&e.types[1].flags))))Rb(a,65536),l=Pb([Bb(a,t),zt],1,n,r);else if(a.length>=3&&e.length>2){const e=Math.floor(a.length/2);l=Bb([Bb(a.slice(0,e),t),Bb(a.slice(e),t)],t,n,r)}else{if(!zb(a))return Et;const e=function(e,t){const n=Jb(e),r=[];for(let i=0;i=0;t--)if(1048576&e[t].flags){const r=e[t].types,i=r.length;n[t]=r[o%i],o=Math.floor(o/i)}const a=Bb(n,t);131072&a.flags||r.push(a)}return r}(a,t);l=Pb(e,1,n,r,$(e,e=>!!(2097152&e.flags))&&Ub(e)>Ub(a)?Eb(2097152,a):void 0)}else l=function(e,t,n,r){const i=js(2097152);return i.objectFlags=t|iy(e,98304),i.types=e,i.aliasSymbol=n,i.aliasTypeArguments=r,i}(a,s,n,r);it.set(c,l)}return l}function Jb(e){return we(e,(e,t)=>1048576&t.flags?e*t.types.length:131072&t.flags?0:e,1)}function zb(e){var t;const n=Jb(e);return!(n>=1e5&&(null==(t=Hn)||t.instant(Hn.Phase.CheckTypes,"checkCrossProductUnion_DepthLimit",{typeIds:e.map(e=>e.id),size:n}),zo(r,_a.Expression_produces_a_union_type_that_is_too_complex_to_represent),1))}function qb(e){return 3145728&e.flags&&!e.aliasSymbol?1048576&e.flags&&e.origin?qb(e.origin):Ub(e.types):1}function Ub(e){return we(e,(e,t)=>e+qb(t),0)}function Vb(e,t){const n=js(4194304);return n.type=e,n.indexFlags=t,n}function Wb(e,t){return 1&t?e.resolvedStringIndexType||(e.resolvedStringIndexType=Vb(e,1)):e.resolvedIndexType||(e.resolvedIndexType=Vb(e,0))}function $b(e,t){const n=rp(e),r=ip(e),i=op(e.target||e);if(!(i||2&t))return r;const o=[];if(Cx(r)){if(yp(e))return Wb(e,t);bD(r,s)}else yp(e)?np(Sf(vp(e)),8576,!!(1&t),s):bD(Zd(r),s);const a=2&t?GD(Pb(o),e=>!(5&e.flags)):Pb(o);return 1048576&a.flags&&1048576&r.flags&&ny(a.types)===ny(r.types)?r:a;function s(t){const r=i?fS(i,rS(e.mapper,n,t)):t;o.push(r===Vt?gn:r)}}function Hb(e){if(sD(e))return _n;if(zN(e))return dk(eM(e));if(kD(e))return dk(BA(e));const t=Jh(e);return void 0!==t?fk(mc(t)):V_(e)?dk(eM(e)):_n}function Kb(e,t,n){if(n||!(6&ix(e))){let n=ua(Cd(e)).nameType;if(!n){const t=Cc(e.valueDeclaration);n="default"===e.escapedName?fk("default"):t&&Hb(t)||(Wh(e)?void 0:fk(yc(e)))}if(n&&n.flags&t)return n}return _n}function Gb(e,t){return!!(e.flags&t||2097152&e.flags&&$(e.types,e=>Gb(e,t)))}function Xb(e,t,n){const r=n&&(7&gx(e)||e.aliasSymbol)?function(e){const t=Rs(4194304);return t.type=e,t}(e):void 0;return Pb(K(E(Up(e),e=>Kb(e,t)),E(Jm(e),e=>e!==ui&&Gb(e.keyType,t)?e.keyType===Vt&&8&t?gn:e.keyType:_n)),1,void 0,void 0,r)}function Qb(e,t=0){return!!(58982400&e.flags||iw(e)||Sp(e)&&(!function(e){const t=rp(e);return function e(n){return!!(470810623&n.flags)||(16777216&n.flags?n.root.isDistributive&&n.checkType===t:137363456&n.flags?v(n.types,e):8388608&n.flags?e(n.objectType)&&e(n.indexType):33554432&n.flags?e(n.baseType)&&e(n.constraint):!!(268435456&n.flags)&&e(n.type))}(op(e)||t)}(e)||2===Tp(e))||1048576&e.flags&&!(4&t)&&Hf(e)||2097152&e.flags&&gj(e,465829888)&&$(e.types,XS))}function Yb(e,t=0){return Sy(e=Bf(e))?by(Yb(e.baseType,t)):Qb(e,t)?Wb(e,t):1048576&e.flags?Bb(E(e.types,e=>Yb(e,t))):2097152&e.flags?Pb(E(e.types,e=>Yb(e,t))):32&gx(e)?$b(e,t):e===Dt?Dt:2&e.flags?_n:131073&e.flags?hn:Xb(e,(2&t?128:402653316)|(1&t?0:12584),0===t)}function Zb(e){const t=(zr||(zr=Uy("Extract",2,!0)||xt),zr===xt?void 0:zr);return t?fy(t,[e,Vt]):Vt}function ex(e,t){const n=k(t,e=>!!(1179648&e.flags));if(n>=0)return zb(t)?nF(t[n],r=>ex(e,Se(t,n,r))):Et;if(T(t,Dt))return Dt;const r=[],i=[];let o=e[0];if(!function e(t,n){for(let a=0;a""===e)){if(v(r,e=>!!(4&e.flags)))return Vt;if(1===r.length&&vx(r[0]))return r[0]}const a=`${ny(r)}|${E(i,e=>e.length).join(",")}|${i.join("")}`;let s=_t.get(a);return s||_t.set(a,s=function(e,t){const n=js(134217728);return n.texts=e,n.types=t,n}(i,r)),s}function tx(e){return 128&e.flags?e.value:256&e.flags?""+e.value:2048&e.flags?gT(e.value):98816&e.flags?e.intrinsicName:void 0}function nx(e,t){return 1179648&t.flags?nF(t,t=>nx(e,t)):128&t.flags?fk(ox(e,t.value)):134217728&t.flags?ex(...function(e,t,n){switch(XB.get(e.escapedName)){case 0:return[t.map(e=>e.toUpperCase()),n.map(t=>nx(e,t))];case 1:return[t.map(e=>e.toLowerCase()),n.map(t=>nx(e,t))];case 2:return[""===t[0]?t:[t[0].charAt(0).toUpperCase()+t[0].slice(1),...t.slice(1)],""===t[0]?[nx(e,n[0]),...n.slice(1)]:n];case 3:return[""===t[0]?t:[t[0].charAt(0).toLowerCase()+t[0].slice(1),...t.slice(1)],""===t[0]?[nx(e,n[0]),...n.slice(1)]:n]}return[t,n]}(e,t.texts,t.types)):268435456&t.flags&&e===t.symbol?t:268435461&t.flags||Cx(t)?lx(e,t):yx(t)?lx(e,ex(["",""],[t])):t}function ox(e,t){switch(XB.get(e.escapedName)){case 0:return t.toUpperCase();case 1:return t.toLowerCase();case 2:return t.charAt(0).toUpperCase()+t.slice(1);case 3:return t.charAt(0).toLowerCase()+t.slice(1)}return t}function lx(e,t){const n=`${eJ(e)},${kb(t)}`;let r=ut.get(n);return r||ut.set(n,r=function(e,t){const n=Ms(268435456,e);return n.type=t,n}(e,t)),r}function _x(e){if(ne)return!1;if(4096&gx(e))return!0;if(1048576&e.flags)return v(e.types,_x);if(2097152&e.flags)return $(e.types,_x);if(465829888&e.flags){const t=gf(e);return t!==e&&_x(t)}return!1}function ux(e,t){return sC(e)?cC(e):t&&t_(t)?Jh(t):void 0}function dx(e,t){if(8208&t.flags){const n=uc(e.parent,e=>!Sx(e))||e.parent;return L_(n)?j_(n)&&aD(e)&&VN(n,e):v(t.declarations,e=>!r_(e)||Ko(e))}return!0}function px(e,t,n,r,i,o){const a=i&&213===i.kind?i:void 0,s=i&&sD(i)?void 0:ux(n,i);if(void 0!==s){if(256&o)return sA(t,s)||wt;const e=pm(t,s);if(e){if(64&o&&i&&e.declarations&&Ho(e)&&dx(i,e)&&Go((null==a?void 0:a.argumentExpression)??(tF(i)?i.indexType:i),e.declarations,s),a){if(oO(e,a,aO(a.expression,t.symbol)),uj(a,e,Xg(a)))return void zo(a.argumentExpression,_a.Cannot_assign_to_0_because_it_is_a_read_only_property,bc(e));if(8&o&&(da(i).resolvedSymbol=e),JI(a,e))return Nt}const n=4&o?E_(e):P_(e);return a&&1!==Xg(a)?rE(a,n):i&&tF(i)&&Sw(n)?Pb([n,jt]):n}if(KD(t,rw)&&JT(s)){const e=+s;if(i&&KD(t,e=>!(12&e.target.combinedFlags))&&!(16&o)){const n=fx(i);if(rw(t)){if(e<0)return zo(n,_a.A_tuple_type_cannot_be_indexed_with_a_negative_value),jt;zo(n,_a.Tuple_type_0_of_length_1_has_no_element_at_index_2,Tc(t),dy(t),mc(s))}else zo(n,_a.Property_0_does_not_exist_on_type_1,mc(s),Tc(t))}if(e>=0)return c(qm(t,Wt)),sw(t,e,1&o?Rt:void 0)}}if(!(98304&n.flags)&&hj(n,402665900)){if(131073&t.flags)return t;const l=ig(t,n)||qm(t,Vt);if(l)return 2&o&&l.keyType!==Wt?void(a&&(4&o?zo(a,_a.Type_0_is_generic_and_can_only_be_indexed_for_reading,Tc(e)):zo(a,_a.Type_0_cannot_be_used_to_index_type_1,Tc(n),Tc(e)))):i&&l.keyType===Vt&&!hj(n,12)?(zo(fx(i),_a.Type_0_cannot_be_used_as_an_index_type,Tc(n)),1&o?Pb([l.type,Rt]):l.type):(c(l),1&o&&!(t.symbol&&384&t.symbol.flags&&n.symbol&&1024&n.flags&&Ts(n.symbol)===t.symbol)?Pb([l.type,Rt]):l.type);if(131072&n.flags)return _n;if(_x(t))return wt;if(a&&!vj(t)){if(xN(t)){if(ne&&384&n.flags)return ho.add(Rp(a,_a.Property_0_does_not_exist_on_type_1,n.value,Tc(t))),jt;if(12&n.flags)return Pb(ie(E(t.properties,e=>P_(e)),jt))}if(t.symbol===Fe&&void 0!==s&&Fe.exports.has(s)&&418&Fe.exports.get(s).flags)zo(a,_a.Property_0_does_not_exist_on_type_1,mc(s),Tc(t));else if(ne&&!(128&o))if(void 0!==s&&HI(s,t)){const e=Tc(t);zo(a,_a.Property_0_does_not_exist_on_type_1_Did_you_mean_to_access_the_static_member_2_instead,s,e,e+"["+Xd(a.argumentExpression)+"]")}else if(Qm(t,Wt))zo(a.argumentExpression,_a.Element_implicitly_has_an_any_type_because_index_expression_is_not_of_type_number);else{let e;if(void 0!==s&&(e=ZI(s,t)))void 0!==e&&zo(a.argumentExpression,_a.Property_0_does_not_exist_on_type_1_Did_you_mean_2,s,Tc(t),e);else{const e=function(e,t,n){const r=Qg(t)?"set":"get";if(!function(t){const r=Lp(e,t);if(r){const e=CO(P_(r));return!!e&&ML(e)>=1&&FS(n,AL(e,0))}return!1}(r))return;let i=_b(t.expression);return void 0===i?i=r:i+="."+r,i}(t,a,n);if(void 0!==e)zo(a,_a.Element_implicitly_has_an_any_type_because_type_0_has_no_index_signature_Did_you_mean_to_call_1,Tc(t),e);else{let e;if(1024&n.flags)e=Zx(void 0,_a.Property_0_does_not_exist_on_type_1,"["+Tc(n)+"]",Tc(t));else if(8192&n.flags){const r=es(n.symbol,a);e=Zx(void 0,_a.Property_0_does_not_exist_on_type_1,"["+r+"]",Tc(t))}else 128&n.flags||256&n.flags?e=Zx(void 0,_a.Property_0_does_not_exist_on_type_1,n.value,Tc(t)):12&n.flags&&(e=Zx(void 0,_a.No_index_signature_with_a_parameter_of_type_0_was_found_on_type_1,Tc(n),Tc(t)));e=Zx(e,_a.Element_implicitly_has_an_any_type_because_expression_of_type_0_can_t_be_used_to_index_type_1,Tc(r),Tc(t)),ho.add(zp(vd(a),a,e))}}}return}}if(16&o&&xN(t))return jt;if(_x(t))return wt;if(i){const e=fx(i);if(10!==e.kind&&384&n.flags)zo(e,_a.Property_0_does_not_exist_on_type_1,""+n.value,Tc(t));else if(12&n.flags)zo(e,_a.Type_0_has_no_matching_index_signature_for_type_1,Tc(t),Tc(n));else{const t=10===e.kind?"bigint":Tc(n);zo(e,_a.Type_0_cannot_be_used_as_an_index_type,t)}}return il(n)?n:void 0;function c(e){e&&e.isReadonly&&a&&(Qg(a)||sh(a))&&zo(a,_a.Index_signature_in_type_0_only_permits_reading,Tc(t))}}function fx(e){return 213===e.kind?e.argumentExpression:200===e.kind?e.indexType:168===e.kind?e.expression:e}function yx(e){if(2097152&e.flags){let t=!1;for(const n of e.types)if(101248&n.flags||yx(n))t=!0;else if(!(524288&n.flags))return!1;return t}return!!(77&e.flags)||vx(e)}function vx(e){return!!(134217728&e.flags)&&v(e.types,yx)||!!(268435456&e.flags)&&yx(e.type)}function bx(e){return!!(402653184&e.flags)&&!vx(e)}function xx(e){return!!Nx(e)}function Tx(e){return!!(4194304&Nx(e))}function Cx(e){return!!(8388608&Nx(e))}function Nx(e){return 3145728&e.flags?(2097152&e.objectFlags||(e.objectFlags|=2097152|we(e.types,(e,t)=>e|Nx(t),0)),12582912&e.objectFlags):33554432&e.flags?(2097152&e.objectFlags||(e.objectFlags|=2097152|Nx(e.baseType)|Nx(e.constraint)),12582912&e.objectFlags):(58982400&e.flags||Sp(e)||iw(e)?4194304:0)|(63176704&e.flags||bx(e)?8388608:0)}function Dx(e,t){return 8388608&e.flags?function(e,t){const n=t?"simplifiedForWriting":"simplifiedForReading";if(e[n])return e[n]===Mn?e:e[n];e[n]=Mn;const r=Dx(e.objectType,t),i=Dx(e.indexType,t),o=function(e,t,n){if(1048576&t.flags){const r=E(t.types,t=>Dx(Ax(e,t),n));return n?Bb(r):Pb(r)}}(r,i,t);if(o)return e[n]=o;if(!(465829888&i.flags)){const o=Fx(r,i,t);if(o)return e[n]=o}if(iw(r)&&296&i.flags){const o=cw(r,8&i.flags?0:r.target.fixedLength,0,t);if(o)return e[n]=o}return Sp(r)&&2!==Tp(r)?e[n]=nF(Px(r,e.indexType),e=>Dx(e,t)):e[n]=e}(e,t):16777216&e.flags?function(e,t){const n=e.checkType,r=e.extendsType,i=qx(e),o=Ux(e);if(131072&o.flags&&Rx(i)===Rx(n)){if(1&n.flags||FS(hS(n),hS(r)))return Dx(i,t);if(Ex(n,r))return _n}else if(131072&i.flags&&Rx(o)===Rx(n)){if(!(1&n.flags)&&FS(hS(n),hS(r)))return _n;if(1&n.flags||Ex(n,r))return Dx(o,t)}return e}(e,t):e}function Fx(e,t,n){if(1048576&e.flags||2097152&e.flags&&!Qb(e)){const r=E(e.types,e=>Dx(Ax(e,t),n));return 2097152&e.flags||n?Bb(r):Pb(r)}}function Ex(e,t){return!!(131072&Pb([zd(e,t),_n]).flags)}function Px(e,t){const n=Uk([rp(e)],[t]),r=eS(e.mapper,n),i=fS(_p(e.target||e),r),o=xp(e)>0||(xx(e)?kp(vp(e))>0:function(e,t){const n=pf(t);return!!n&&$(Up(e),e=>!!(16777216&e.flags)&&FS(Kb(e,8576),n))}(e,t));return Pl(i,!0,o)}function Ax(e,t,n=0,r,i,o){return Ox(e,t,n,r,i,o)||(r?Et:Ot)}function Ix(e,t){return KD(e,e=>{if(384&e.flags){const n=cC(e);if(JT(n)){const e=+n;return e>=0&&e0&&!$(e.elements,e=>$D(e)||HD(e)||WD(e)&&!(!e.questionToken&&!e.dotDotDotToken))}function Jx(e,t){return xx(e)||t&&rw(e)&&$(xb(e),xx)}function zx(e,t,n,i,o){let a,s,c=0;for(;;){if(1e3===c)return zo(r,_a.Type_instantiation_is_excessively_deep_and_possibly_infinite),Et;const _=fS(Rx(e.checkType),t),d=fS(e.extendsType,t);if(_===Et||d===Et)return Et;if(_===Dt||d===Dt)return Dt;const p=oh(e.node.checkType),f=oh(e.node.extendsType),m=Bx(p)&&Bx(f)&&u(p.elements)===u(f.elements),g=Jx(_,m);let h;if(e.inferTypeParameters){const n=Vw(e.inferTypeParameters,void 0,0);t&&(n.nonFixingMapper=eS(n.nonFixingMapper,t)),g||yN(n.inferences,_,d,1536),h=t?eS(n.mapper,t):n.mapper}const y=h?fS(e.extendsType,h):d;if(!g&&!Jx(y,m)){if(!(3&y.flags)&&(1&_.flags||!FS(gS(_),gS(y)))){(1&_.flags||n&&!(131072&y.flags)&&UD(gS(y),e=>FS(e,gS(_))))&&(s||(s=[])).push(fS(Pk(e.node.trueType),h||t));const r=Pk(e.node.falseType);if(16777216&r.flags){const n=r.root;if(n.node.parent===e.node&&(!n.isDistributive||n.checkType===e.checkType)){e=n;continue}if(l(r,t))continue}a=fS(r,t);break}if(3&y.flags||FS(hS(_),hS(y))){const n=Pk(e.node.trueType),r=h||t;if(l(n,r))continue;a=fS(n,r);break}}a=js(16777216),a.root=e,a.checkType=fS(e.checkType,t),a.extendsType=fS(e.extendsType,t),a.mapper=t,a.combinedMapper=h,a.aliasSymbol=i||e.aliasSymbol,a.aliasTypeArguments=i?o:Mk(e.aliasTypeArguments,t);break}return s?Pb(ie(s,a)):a;function l(n,r){if(16777216&n.flags&&r){const a=n.root;if(a.outerTypeParameters){const s=eS(n.mapper,r),l=E(a.outerTypeParameters,e=>Vk(e,s)),_=Uk(a.outerTypeParameters,l),u=a.isDistributive?Vk(a.checkType,_):void 0;if(!(u&&u!==a.checkType&&1179648&u.flags))return e=a,t=_,i=void 0,o=void 0,a.aliasSymbol&&c++,!0}}return!1}}function qx(e){return e.resolvedTrueType||(e.resolvedTrueType=fS(Pk(e.root.node.trueType),e.mapper))}function Ux(e){return e.resolvedFalseType||(e.resolvedFalseType=fS(Pk(e.root.node.falseType),e.mapper))}function Vx(e){let t;return e.locals&&e.locals.forEach(e=>{262144&e.flags&&(t=ie(t,Au(e)))}),t}function $x(e){return aD(e)?[e]:ie($x(e.left),e.right)}function Hx(e){var t;const n=da(e);if(!n.resolvedType){if(!df(e))return zo(e.argument,_a.String_literal_expected),n.resolvedSymbol=xt,n.resolvedType=Et;const r=e.isTypeOf?111551:16777216&e.flags?900095:788968,i=rs(e,e.argument.literal);if(!i)return n.resolvedSymbol=xt,n.resolvedType=Et;const o=!!(null==(t=i.exports)?void 0:t.get("export=")),a=ss(i,!1);if(Nd(e.qualifier))a.flags&r?n.resolvedType=Kx(e,n,a,r):(zo(e,111551===r?_a.Module_0_does_not_refer_to_a_value_but_is_used_as_a_value_here:_a.Module_0_does_not_refer_to_a_type_but_is_used_as_a_type_here_Did_you_mean_typeof_import_0,e.argument.literal.text),n.resolvedSymbol=xt,n.resolvedType=Et);else{const t=$x(e.qualifier);let i,s=a;for(;i=t.shift();){const a=t.length?1920:r,c=xs($a(s)),l=e.isTypeOf||Em(e)&&o?pm(P_(c),i.escapedText,!1,!0):void 0,_=(e.isTypeOf?void 0:pa(hs(c),i.escapedText,a))??l;if(!_)return zo(i,_a.Namespace_0_has_no_exported_member_1,es(s),Ap(i)),n.resolvedType=Et;da(i).resolvedSymbol=_,da(i.parent).resolvedSymbol=_,s=_}n.resolvedType=Kx(e,n,s,r)}}return n.resolvedType}function Kx(e,t,n,r){const i=$a(n);return t.resolvedSymbol=i,111551===r?xL(P_(n),e):vy(e,i)}function Yx(e){const t=da(e);if(!t.resolvedType){const n=tk(e);if(!e.symbol||0===Td(e.symbol).size&&!n)t.resolvedType=Pn;else{let r=Js(16,e.symbol);r.aliasSymbol=n,r.aliasTypeArguments=rk(n),TP(e)&&e.isArrayType&&(r=Rv(r)),t.resolvedType=r}}return t.resolvedType}function tk(e){let t=e.parent;for(;YD(t)||lP(t)||eF(t)&&148===t.operator;)t=t.parent;return Fg(t)?ks(t):void 0}function rk(e){return e?Z_(e):void 0}function ik(e){return!!(524288&e.flags)&&!Sp(e)}function ok(e){return GS(e)||!!(474058748&e.flags)}function ak(e,t){if(!(1048576&e.flags))return e;if(v(e.types,ok))return b(e.types,GS)||Nn;const n=b(e.types,e=>!ok(e));return n?b(e.types,e=>e!==n&&!ok(e))?e:function(e){const n=Gu();for(const r of Up(e))if(6&ix(r));else if(ck(r)){const e=65536&r.flags&&!(32768&r.flags),i=Xo(16777220,r.escapedName,ep(r)|(t?8:0));i.links.type=e?jt:Pl(P_(r),!0),i.declarations=r.declarations,i.links.nameType=ua(r).nameType,i.links.syntheticOrigin=r,n.set(r.escapedName,i)}const r=$s(e.symbol,n,l,l,Jm(e));return r.objectFlags|=131200,r}(n):e}function sk(e,t,n,r,i){if(1&e.flags||1&t.flags)return wt;if(2&e.flags||2&t.flags)return Ot;if(131072&e.flags)return t;if(131072&t.flags)return e;if(1048576&(e=ak(e,i)).flags)return zb([e,t])?nF(e,e=>sk(e,t,n,r,i)):Et;if(1048576&(t=ak(t,i)).flags)return zb([e,t])?nF(t,t=>sk(e,t,n,r,i)):Et;if(473960444&t.flags)return e;if(Tx(e)||Tx(t)){if(GS(e))return t;if(2097152&e.flags){const o=e.types,a=o[o.length-1];if(ik(a)&&ik(t))return Bb(K(o.slice(0,o.length-1),[sk(a,t,n,r,i)]))}return Bb([e,t])}const o=Gu(),a=new Set,s=e===Nn?Jm(t):Jd([e,t]);for(const e of Up(t))6&ix(e)?a.add(e.escapedName):ck(e)&&o.set(e.escapedName,lk(e,i));for(const t of Up(e))if(!a.has(t.escapedName)&&ck(t))if(o.has(t.escapedName)){const e=o.get(t.escapedName),n=P_(e);if(16777216&e.flags){const r=K(t.declarations,e.declarations),i=Xo(4|16777216&t.flags,t.escapedName),a=P_(t),s=Tw(a),c=Tw(n);i.links.type=s===c?a:Pb([a,c],2),i.links.leftSpread=t,i.links.rightSpread=e,i.declarations=r,i.links.nameType=ua(t).nameType,o.set(t.escapedName,i)}}else o.set(t.escapedName,lk(t,i));const c=$s(n,o,l,l,A(s,e=>function(e,t){return e.isReadonly!==t?Ah(e.keyType,e.type,t,e.declaration,e.components):e}(e,i)));return c.objectFlags|=2228352|r,c}function ck(e){var t;return!($(e.declarations,Kl)||106496&e.flags&&(null==(t=e.declarations)?void 0:t.some(e=>u_(e.parent))))}function lk(e,t){const n=65536&e.flags&&!(32768&e.flags);if(!n&&t===_j(e))return e;const r=Xo(4|16777216&e.flags,e.escapedName,ep(e)|(t?8:0));return r.links.type=n?jt:P_(e),r.declarations=e.declarations,r.links.nameType=ua(e).nameType,r.links.syntheticOrigin=e,r}function _k(e,t,n,r){const i=Ms(e,n);return i.value=t,i.regularType=r||i,i}function uk(e){if(2976&e.flags){if(!e.freshType){const t=_k(e.flags,e.value,e.symbol,e);t.freshType=t,e.freshType=t}return e.freshType}return e}function dk(e){return 2976&e.flags?e.regularType:1048576&e.flags?e.regularType||(e.regularType=nF(e,dk)):e}function pk(e){return!!(2976&e.flags)&&e.freshType===e}function fk(e){let t;return ot.get(e)||(ot.set(e,t=_k(128,e)),t)}function mk(e){let t;return at.get(e)||(at.set(e,t=_k(256,e)),t)}function gk(e){let t;const n=gT(e);return st.get(n)||(st.set(n,t=_k(2048,e)),t)}function hk(e,t,n){let r;const i=`${t}${"string"==typeof e?"@":"#"}${e}`,o=1024|("string"==typeof e?128:256);return ct.get(i)||(ct.set(i,r=_k(o,e,n)),r)}function xk(e){if(Em(e)&&lP(e)){const t=Vg(e);t&&(e=Ag(t)||t)}if(jf(e)){const t=Lf(e)?Ss(e.left):Ss(e);if(t){const e=ua(t);return e.uniqueESSymbolType||(e.uniqueESSymbolType=function(e){const t=Ms(8192,e);return t.escapedName=`__@${t.symbol.escapedName}@${eJ(t.symbol)}`,t}(t))}}return cn}function Ck(e){const t=da(e);return t.resolvedType||(t.resolvedType=function(e){const t=em(e,!1,!1),n=t&&t.parent;if(n&&(u_(n)||265===n.kind)&&!Dv(t)&&(!PD(t)||ch(e,t.body)))return mu(ks(n)).thisType;if(n&&uF(n)&&NF(n.parent)&&6===tg(n.parent))return mu(Ss(n.parent.left).parent).thisType;const r=16777216&e.flags?qg(e):void 0;return r&&vF(r)&&NF(r.parent)&&3===tg(r.parent)?mu(Ss(r.parent.left).parent).thisType:sL(t)&&ch(e,t.body)?mu(ks(t)).thisType:(zo(e,_a.A_this_type_is_available_only_in_a_non_static_member_of_a_class_or_interface),Et)}(e)),t.resolvedType}function wk(e){return Pk(Ek(e.type)||e.type)}function Ek(e){switch(e.kind){case 197:return Ek(e.type);case 190:if(1===e.elements.length&&(192===(e=e.elements[0]).kind||203===e.kind&&e.dotDotDotToken))return Ek(e.type);break;case 189:return e.elementType}}function Pk(e){return function(e,t){let n,r=!0;for(;t&&!pu(t)&&321!==t.kind;){const i=t.parent;if(170===i.kind&&(r=!r),(r||8650752&e.flags)&&195===i.kind&&t===i.trueType){const t=Dy(e,i.checkType,i.extendsType);t&&(n=ie(n,t))}else if(262144&e.flags&&201===i.kind&&!i.nameType&&t===i.type){const t=Pk(i);if(rp(t)===Rx(e)){const e=lS(t);if(e){const t=Hp(e);t&&KD(t,jC)&&(n=ie(n,Pb([Wt,bn])))}}}t=i}return n?Ty(e,Bb(n)):e}(Ak(e),e)}function Ak(e){switch(e.kind){case 133:case 313:case 314:return wt;case 159:return Ot;case 154:return Vt;case 150:return Wt;case 163:return $t;case 136:return sn;case 155:return cn;case 116:return ln;case 157:return jt;case 106:return zt;case 146:return _n;case 151:return 524288&e.flags&&!ne?wt:mn;case 141:return It;case 198:case 110:return Ck(e);case 202:return function(e){if(106===e.literal.kind)return zt;const t=da(e);return t.resolvedType||(t.resolvedType=dk(eM(e.literal))),t.resolvedType}(e);case 184:case 234:return jy(e);case 183:return e.assertsModifier?ln:sn;case 187:return By(e);case 189:case 190:return function(e){const t=da(e);if(!t.resolvedType){const n=function(e){const t=function(e){return eF(e)&&148===e.operator}(e.parent);return Ek(e)?t?er:Zn:Xv(E(e.elements,Jv),t,E(e.elements,qv))}(e);if(n===On)t.resolvedType=Nn;else if(190===e.kind&&$(e.elements,e=>!!(8&Jv(e)))||!Uv(e)){const r=189===e.kind?[Pk(e.elementType)]:E(e.elements,Pk);t.resolvedType=Qv(n,r)}else t.resolvedType=190===e.kind&&0===e.elements.length?n:cy(n,e,void 0)}return t.resolvedType}(e);case 191:return function(e){return Pl(Pk(e.type),!0)}(e);case 193:return function(e){const t=da(e);if(!t.resolvedType){const n=tk(e);t.resolvedType=Pb(E(e.types,Pk),1,n,rk(n))}return t.resolvedType}(e);case 194:return function(e){const t=da(e);if(!t.resolvedType){const n=tk(e),r=E(e.types,Pk),i=2===r.length?r.indexOf(Pn):-1,o=i>=0?r[1-i]:Ot,a=!!(76&o.flags||134217728&o.flags&&vx(o));t.resolvedType=Bb(r,a?1:0,n,rk(n))}return t.resolvedType}(e);case 315:return function(e){const t=Pk(e.type);return H?dw(t,65536):t}(e);case 317:return Pl(Pk(e.type));case 203:return function(e){const t=da(e);return t.resolvedType||(t.resolvedType=e.dotDotDotToken?wk(e):Pl(Pk(e.type),!0,!!e.questionToken))}(e);case 197:case 316:case 310:return Pk(e.type);case 192:return wk(e);case 319:return function(e){const t=Pk(e.type),{parent:n}=e,r=e.parent.parent;if(lP(e.parent)&&BP(r)){const e=qg(r),n=FP(r.parent.parent);if(e||n){const i=ye(n?r.parent.parent.typeExpression.parameters:e.parameters),o=Bg(r);if(!i||o&&i.symbol===o&&Bu(i))return Rv(t)}}return TD(n)&&bP(n.parent)?Rv(t):Pl(t)}(e);case 185:case 186:case 188:case 323:case 318:case 324:return Yx(e);case 199:return function(e){const t=da(e);if(!t.resolvedType)switch(e.operator){case 143:t.resolvedType=Yb(Pk(e.type));break;case 158:t.resolvedType=155===e.type.kind?xk(nh(e.parent)):Et;break;case 148:t.resolvedType=Pk(e.type);break;default:un.assertNever(e.operator)}return t.resolvedType}(e);case 200:return Lx(e);case 201:return jx(e);case 195:return function(e){const t=da(e);if(!t.resolvedType){const n=Pk(e.checkType),r=tk(e),i=rk(r),o=H_(e,!0),a=i?o:N(o,t=>cS(t,e)),s={node:e,checkType:n,extendsType:Pk(e.extendsType),isDistributive:!!(262144&n.flags),inferTypeParameters:Vx(e),outerTypeParameters:a,instantiations:void 0,aliasSymbol:r,aliasTypeArguments:i};t.resolvedType=zx(s,void 0,!1),a&&(s.instantiations=new Map,s.instantiations.set(ny(a),t.resolvedType))}return t.resolvedType}(e);case 196:return function(e){const t=da(e);return t.resolvedType||(t.resolvedType=Cu(ks(e.typeParameter))),t.resolvedType}(e);case 204:return function(e){const t=da(e);return t.resolvedType||(t.resolvedType=ex([e.head.text,...E(e.templateSpans,e=>e.literal.text)],E(e.templateSpans,e=>Pk(e.type)))),t.resolvedType}(e);case 206:return Hx(e);case 80:case 167:case 212:const t=yJ(e);return t?Au(t):Et;default:return Et}}function jk(e,t,n){if(e&&e.length)for(let r=0;rch(e,a))||$(t.typeArguments,n)}return!0;case 175:case 174:return!t.type&&!!t.body||$(t.typeParameters,n)||$(t.parameters,n)||!!t.type&&n(t.type)}return!!XI(t,n)}}function lS(e){const t=ip(e);if(4194304&t.flags){const e=Rx(t.type);if(262144&e.flags)return e}}function _S(e,t){return!!(1&t)||!(2&t)&&e}function uS(e,t,n,r){const i=rS(r,rp(e),t),o=fS(_p(e.target||e),i),a=bp(e);return H&&4&a&&!gj(o,49152)?pw(o,!0):H&&8&a&&n?XN(o,524288):o}function dS(e,t,n,r){un.assert(e.symbol,"anonymous type must have symbol to be instantiated");const i=Js(-1572865&e.objectFlags|64,e.symbol);if(32&e.objectFlags){i.declaration=e.declaration;const n=rp(e),r=iS(n);i.typeParameter=r,t=eS(Wk(n,r),t),r.mapper=t}return 8388608&e.objectFlags&&(i.node=e.node),i.target=e,i.mapper=t,i.aliasSymbol=n||e.aliasSymbol,i.aliasTypeArguments=n?r:Mk(e.aliasTypeArguments,t),i.objectFlags|=i.aliasTypeArguments?iy(i.aliasTypeArguments):0,i}function pS(e,t,n,r,i){const o=e.root;if(o.outerTypeParameters){const e=E(o.outerTypeParameters,e=>Vk(e,t)),a=(n?"C":"")+ny(e)+ry(r,i);let s=o.instantiations.get(a);if(!s){const t=Uk(o.outerTypeParameters,e),c=o.checkType,l=o.isDistributive?Bf(Vk(c,t)):void 0;s=l&&c!==l&&1179648&l.flags?oF(l,e=>zx(o,nS(c,e,t),n),r,i):zx(o,t,n,r,i),o.instantiations.set(a,s)}return s}return e}function fS(e,t){return e&&t?mS(e,t,void 0,void 0):e}function mS(e,t,n,i){var o;if(!eN(e))return e;if(100===y||h>=5e6)return null==(o=Hn)||o.instant(Hn.Phase.CheckTypes,"instantiateType_DepthLimit",{typeId:e.id,instantiationDepth:y,instantiationCount:h}),zo(r,_a.Type_instantiation_is_excessively_deep_and_possibly_infinite),Et;const a=function(e){for(let t=Bi-1;t>=0;t--)if(e===Mi[t])return t;return-1}(t);-1===a&&function(e){Mi[Bi]=e,Ri[Bi]??(Ri[Bi]=new Map),Bi++}(t);const s=e.id+ry(n,i),c=Ri[-1!==a?a:Bi-1],_=c.get(s);if(_)return _;g++,h++,y++;const u=function(e,t,n,r){const i=e.flags;if(262144&i)return Vk(e,t);if(524288&i){const i=e.objectFlags;if(52&i){if(4&i&&!e.node){const n=e.resolvedTypeArguments,r=Mk(n,t);return r!==n?Qv(e.target,r):e}return 1024&i?function(e,t){const n=fS(e.mappedType,t);if(!(32&gx(n)))return e;const r=fS(e.constraintType,t);if(!(4194304&r.flags))return e;const i=iN(fS(e.source,t),n,r);return i||e}(e,t):function(e,t,n,r){const i=4&e.objectFlags||8388608&e.objectFlags?e.node:e.symbol.declarations[0],o=da(i),a=4&e.objectFlags?o.resolvedType:64&e.objectFlags?e.target:e;let s=o.outerTypeParameters;if(!s){let t=H_(i,!0);sL(i)&&(t=se(t,cg(i))),s=t||l;const n=8388612&e.objectFlags?[i]:e.symbol.declarations;s=(8388612&a.objectFlags||8192&a.symbol.flags||2048&a.symbol.flags)&&!a.aliasTypeArguments?N(s,e=>$(n,t=>cS(e,t))):s,o.outerTypeParameters=s}if(s.length){const i=eS(e.mapper,t),o=E(s,e=>Vk(e,i)),c=n||e.aliasSymbol,l=n?r:Mk(e.aliasTypeArguments,t),_=ny(o)+ry(c,l);a.instantiations||(a.instantiations=new Map,a.instantiations.set(ny(s)+ry(a.aliasSymbol,a.aliasTypeArguments),a));let u=a.instantiations.get(_);if(!u){let n=Uk(s,o);134217728&a.objectFlags&&t&&(n=eS(n,t)),u=4&a.objectFlags?cy(e.target,e.node,n,c,l):32&a.objectFlags?function(e,t,n,r){const i=lS(e);if(i){const o=fS(i,t);if(i!==o)return oF(Bf(o),function n(r){if(61603843&r.flags&&r!==Dt&&!al(r)){if(!e.declaration.nameType){let o;if(OC(r)||1&r.flags&&Hc(i,4)<0&&(o=Hp(i))&&KD(o,jC))return function(e,t,n){const r=uS(t,Wt,!0,n);return al(r)?Et:Rv(r,_S(LC(e),bp(t)))}(r,e,nS(i,r,t));if(rw(r))return function(e,t,n,r){const i=e.target.elementFlags,o=e.target.fixedLength,a=o?nS(n,e,r):r,s=E(xb(e),(e,s)=>{const c=i[s];return s1&e?2:e):8&c?E(i,e=>2&e?1:e):i,_=_S(e.target.readonly,bp(t));return T(s,Et)?Et:Gv(s,l,_,e.target.labeledElementDeclarations)}(r,e,i,t);if(xf(r))return Bb(E(r.types,n))}return dS(e,nS(i,r,t))}return r},n,r)}return fS(ip(e),t)===Dt?Dt:dS(e,t,n,r)}(a,n,c,l):dS(a,n,c,l),a.instantiations.set(_,u);const r=gx(u);if(3899393&u.flags&&!(524288&r)){const e=$(o,eN);524288&gx(u)||(u.objectFlags|=52&r?524288|(e?1048576:0):e?0:524288)}}return u}return e}(e,t,n,r)}return e}if(3145728&i){const o=1048576&e.flags?e.origin:void 0,a=o&&3145728&o.flags?o.types:e.types,s=Mk(a,t);if(s===a&&n===e.aliasSymbol)return e;const c=n||e.aliasSymbol,l=n?r:Mk(e.aliasTypeArguments,t);return 2097152&i||o&&2097152&o.flags?Bb(s,0,c,l):Pb(s,1,c,l)}if(4194304&i)return Yb(fS(e.type,t));if(134217728&i)return ex(e.texts,Mk(e.types,t));if(268435456&i)return nx(e.symbol,fS(e.type,t));if(8388608&i){const i=n||e.aliasSymbol,o=n?r:Mk(e.aliasTypeArguments,t);return Ax(fS(e.objectType,t),fS(e.indexType,t),e.accessFlags,void 0,i,o)}if(16777216&i)return pS(e,eS(e.mapper,t),!1,n,r);if(33554432&i){const n=fS(e.baseType,t);if(Sy(e))return by(n);const r=fS(e.constraint,t);return 8650752&n.flags&&xx(r)?Ty(n,r):3&r.flags||FS(hS(n),hS(r))?n:8650752&n.flags?Ty(n,r):Bb([r,n])}return e}(e,t,n,i);return-1===a?(Bi--,Mi[Bi]=void 0,Ri[Bi].clear()):c.set(s,u),y--,u}function gS(e){return 402915327&e.flags?e:e.permissiveInstantiation||(e.permissiveInstantiation=fS(e,kn))}function hS(e){return 402915327&e.flags?e:(e.restrictiveInstantiation||(e.restrictiveInstantiation=fS(e,xn),e.restrictiveInstantiation.restrictiveInstantiation=e.restrictiveInstantiation),e.restrictiveInstantiation)}function yS(e,t){return Ah(e.keyType,fS(e.type,t),e.isReadonly,e.declaration,e.components)}function vS(e){switch(un.assert(175!==e.kind||Jf(e)),e.kind){case 219:case 220:case 175:case 263:return bS(e);case 211:return $(e.properties,vS);case 210:return $(e.elements,vS);case 228:return vS(e.whenTrue)||vS(e.whenFalse);case 227:return(57===e.operatorToken.kind||61===e.operatorToken.kind)&&(vS(e.left)||vS(e.right));case 304:return vS(e.initializer);case 218:return vS(e.expression);case 293:return $(e.properties,vS)||UE(e.parent)&&$(e.parent.parent.children,vS);case 292:{const{initializer:t}=e;return!!t&&vS(t)}case 295:{const{expression:t}=e;return!!t&&vS(t)}}return!1}function bS(e){return LT(e)||function(e){return!(e.typeParameters||gv(e)||!e.body)&&(242!==e.body.kind?vS(e.body):!!Df(e.body,e=>!!e.expression&&vS(e.expression)))}(e)}function xS(e){return(RT(e)||Jf(e))&&bS(e)}function kS(e){if(524288&e.flags){const t=Cp(e);if(t.constructSignatures.length||t.callSignatures.length){const n=Js(16,e.symbol);return n.members=t.members,n.properties=t.properties,n.callSignatures=l,n.constructSignatures=l,n.indexInfos=l,n}}else if(2097152&e.flags)return Bb(E(e.types,kS));return e}function SS(e,t){return iT(e,t,Fo)}function TS(e,t){return iT(e,t,Fo)?-1:0}function CS(e,t){return iT(e,t,wo)?-1:0}function wS(e,t){return iT(e,t,To)?-1:0}function NS(e,t){return iT(e,t,To)}function DS(e,t){return iT(e,t,Co)}function FS(e,t){return iT(e,t,wo)}function ES(e,t){return 1048576&e.flags?v(e.types,e=>ES(e,t)):1048576&t.flags?$(t.types,t=>ES(e,t)):2097152&e.flags?$(e.types,e=>ES(e,t)):58982400&e.flags?ES(pf(e)||Ot,t):XS(t)?!!(67633152&e.flags):t===Gn?!!(67633152&e.flags)&&!XS(e):t===Xn?!!(524288&e.flags)&&$N(e):q_(e,z_(t))||OC(t)&&!LC(t)&&ES(e,er)}function PS(e,t){return iT(e,t,No)}function AS(e,t){return PS(e,t)||PS(t,e)}function IS(e,t,n,r,i,o){return hT(e,t,wo,n,r,i,o)}function OS(e,t,n,r,i,o){return LS(e,t,wo,n,r,i,o,void 0)}function LS(e,t,n,r,i,o,a,s){return!!iT(e,t,n)||(!r||!MS(i,e,t,n,o,a,s))&&hT(e,t,n,r,o,a,s)}function jS(e){return!!(16777216&e.flags||2097152&e.flags&&$(e.types,jS))}function MS(e,t,n,r,i,o,a){if(!e||jS(n))return!1;if(!hT(t,n,r,void 0)&&function(e,t,n,r,i,o,a){const s=mm(t,0),c=mm(t,1);for(const l of[c,s])if($(l,e=>{const t=Gg(e);return!(131073&t.flags)&&hT(t,n,r,void 0)})){const r=a||{};return IS(t,n,e,i,o,r),aT(r.errors[r.errors.length-1],Rp(e,l===c?_a.Did_you_mean_to_use_new_with_this_expression:_a.Did_you_mean_to_call_this_expression)),!0}return!1}(e,t,n,r,i,o,a))return!0;switch(e.kind){case 235:if(!hC(e))break;case 295:case 218:return MS(e.expression,t,n,r,i,o,a);case 227:switch(e.operatorToken.kind){case 64:case 28:return MS(e.right,t,n,r,i,o,a)}break;case 211:return function(e,t,n,r,i,o){return!(402915324&n.flags)&&JS(function*(e){if(u(e.properties))for(const t of e.properties){if(oP(t))continue;const e=Kb(ks(t),8576);if(e&&!(131072&e.flags))switch(t.kind){case 179:case 178:case 175:case 305:yield{errorNode:t.name,innerExpression:void 0,nameType:e};break;case 304:yield{errorNode:t.name,innerExpression:t.initializer,nameType:e,errorMessage:Op(t.name)?_a.Type_of_computed_property_s_value_is_0_which_is_not_assignable_to_type_1:void 0};break;default:un.assertNever(t)}}}(e),t,n,r,i,o)}(e,t,n,r,o,a);case 210:return function(e,t,n,r,i,o){if(402915324&n.flags)return!1;if(WC(t))return JS(qS(e,n),t,n,r,i,o);wA(e,n,!1);const a=RA(e,1,!0);return FA(),!!WC(a)&&JS(qS(e,n),a,n,r,i,o)}(e,t,n,r,o,a);case 293:return function(e,t,n,r,i,o){let a,s=JS(function*(e){if(u(e.properties))for(const t of e.properties)XE(t)||KA(nC(t.name))||(yield{errorNode:t.name,innerExpression:t.initializer,nameType:fk(nC(t.name))})}(e),t,n,r,i,o);if(UE(e.parent)&&zE(e.parent.parent)){const a=e.parent.parent,l=oI(rI(e)),_=void 0===l?"children":mc(l),d=fk(_),p=Ax(n,d),f=ly(a.children);if(!u(f))return s;const m=u(f)>1;let g,h;if(dv(!1)!==On){const e=Mv(wt);g=GD(p,t=>FS(t,e)),h=GD(p,t=>!FS(t,e))}else g=GD(p,$C),h=GD(p,e=>!$C(e));if(m){if(g!==_n){const e=Gv(YA(a,0)),t=function*(e,t){if(!u(e.children))return;let n=0;for(let r=0;r!$C(e)),c=s!==_n?CR(13,0,s,void 0):void 0;let l=!1;for(let n=e.next();!n.done;n=e.next()){const{errorNode:e,innerExpression:s,nameType:_,errorMessage:u}=n.value;let d=c;const p=a!==_n?RS(t,a,_):void 0;if(!p||8388608&p.flags||(d=c?Pb([c,p]):p),!d)continue;let f=Ox(t,_);if(!f)continue;const m=ux(_,void 0);if(!hT(f,d,r,void 0)&&(l=!0,!s||!MS(s,f,d,r,void 0,i,o))){const n=o||{},c=s?BS(s,f):f;if(_e&&wT(c,d)){const t=Rp(e,_a.Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_type_of_the_target,Tc(c),Tc(d));ho.add(t),n.errors=[t]}else{const o=!!(m&&16777216&(pm(a,m)||xt).flags),s=!!(m&&16777216&(pm(t,m)||xt).flags);d=kw(d,o),f=kw(f,o&&s),hT(c,d,r,e,u,i,n)&&c!==f&&hT(f,d,r,e,u,i,n)}}}return l}(t,e,g,r,i,o)||s}else if(!iT(Ax(t,d),p,r)){s=!0;const e=zo(a.openingElement.tagName,_a.This_JSX_tag_s_0_prop_expects_a_single_child_of_type_1_but_multiple_children_were_provided,_,Tc(p));o&&o.skipLogging&&(o.errors||(o.errors=[])).push(e)}}else if(h!==_n){const e=zS(f[0],d,c);e&&(s=JS(function*(){yield e}(),t,n,r,i,o)||s)}else if(!iT(Ax(t,d),p,r)){s=!0;const e=zo(a.openingElement.tagName,_a.This_JSX_tag_s_0_prop_expects_type_1_which_requires_multiple_children_but_only_a_single_child_was_provided,_,Tc(p));o&&o.skipLogging&&(o.errors||(o.errors=[])).push(e)}}return s;function c(){if(!a){const t=Xd(e.parent.tagName),r=oI(rI(e)),i=void 0===r?"children":mc(r),o=Ax(n,fk(i)),s=_a._0_components_don_t_accept_text_as_child_elements_Text_in_JSX_has_the_type_string_but_the_expected_type_of_1_is_2;a={...s,key:"!!ALREADY FORMATTED!!",message:Xx(s,t,i,Tc(o))}}return a}}(e,t,n,r,o,a);case 220:return function(e,t,n,r,i,o){if(VF(e.body))return!1;if($(e.parameters,Fu))return!1;const a=CO(t);if(!a)return!1;const s=mm(n,0);if(!u(s))return!1;const c=e.body,l=Gg(a),_=Pb(E(s,Gg));if(!hT(l,_,r,void 0)){const t=c&&MS(c,l,_,r,void 0,i,o);if(t)return t;const a=o||{};if(hT(l,_,r,c,void 0,i,a),a.errors)return n.symbol&&u(n.symbol.declarations)&&aT(a.errors[a.errors.length-1],Rp(n.symbol.declarations[0],_a.The_expected_type_comes_from_the_return_type_of_this_signature)),2&Oh(e)||el(l,"then")||!hT(XL(l),_,r,void 0)||aT(a.errors[a.errors.length-1],Rp(e,_a.Did_you_mean_to_mark_this_function_as_async)),!0}return!1}(e,t,n,r,o,a)}return!1}function RS(e,t,n){const r=Ox(t,n);if(r)return r;if(1048576&t.flags){const r=FT(e,t);if(r)return Ox(r,n)}}function BS(e,t){wA(e,t,!1);const n=zj(e,1);return FA(),n}function JS(e,t,n,r,i,o){let a=!1;for(const s of e){const{errorNode:e,innerExpression:c,nameType:l,errorMessage:_}=s;let d=RS(t,n,l);if(!d||8388608&d.flags)continue;let p=Ox(t,l);if(!p)continue;const f=ux(l,void 0);if(!hT(p,d,r,void 0)&&(a=!0,!c||!MS(c,p,d,r,void 0,i,o))){const a=o||{},s=c?BS(c,p):p;if(_e&&wT(s,d)){const t=Rp(e,_a.Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_type_of_the_target,Tc(s),Tc(d));ho.add(t),a.errors=[t]}else{const o=!!(f&&16777216&(pm(n,f)||xt).flags),c=!!(f&&16777216&(pm(t,f)||xt).flags);d=kw(d,o),p=kw(p,o&&c),hT(s,d,r,e,_,i,a)&&s!==p&&hT(p,d,r,e,_,i,a)}if(a.errors){const e=a.errors[a.errors.length-1],t=sC(l)?cC(l):void 0,r=void 0!==t?pm(n,t):void 0;let i=!1;if(!r){const t=ig(n,l);t&&t.declaration&&!vd(t.declaration).hasNoDefaultLib&&(i=!0,aT(e,Rp(t.declaration,_a.The_expected_type_comes_from_this_index_signature)))}if(!i&&(r&&u(r.declarations)||n.symbol&&u(n.symbol.declarations))){const i=r&&u(r.declarations)?r.declarations[0]:n.symbol.declarations[0];vd(i).hasNoDefaultLib||aT(e,Rp(i,_a.The_expected_type_comes_from_property_0_which_is_declared_here_on_type_1,!t||8192&l.flags?Tc(l):mc(t),Tc(n)))}}}}return a}function zS(e,t,n){switch(e.kind){case 295:return{errorNode:e,innerExpression:e.expression,nameType:t};case 12:if(e.containsOnlyTriviaWhiteSpaces)break;return{errorNode:e,innerExpression:void 0,nameType:t,errorMessage:n()};case 285:case 286:case 289:return{errorNode:e,innerExpression:e,nameType:t};default:return un.assertNever(e,"Found invalid jsx child")}}function*qS(e,t){const n=u(e.elements);if(n)for(let r=0;rc:ML(e)>c))return!r||8&n||i(_a.Target_signature_provides_too_few_arguments_Expected_0_or_more_but_got_1,ML(e),c),0;var l;e.typeParameters&&e.typeParameters!==t.typeParameters&&(e=DO(e,t=(l=t).typeParameters?l.canonicalSignatureCache||(l.canonicalSignatureCache=function(e){return dh(e,E(e.typeParameters,e=>e.target&&!Hp(e.target)?e.target:e),Em(e.declaration))}(l)):l,void 0,a));const _=jL(e),u=JL(e),d=JL(t);(u||d)&&fS(u||d,s);const p=t.declaration?t.declaration.kind:0,f=!(3&n)&&G&&175!==p&&174!==p&&177!==p;let m=-1;const g=Rg(e);if(g&&g!==ln){const e=Rg(t);if(e){const t=!f&&a(g,e,!1)||a(e,g,r);if(!t)return r&&i(_a.The_this_types_of_each_signature_are_incompatible),0;m&=t}}const h=u||d?Math.min(_,c):Math.max(_,c),y=u||d?h-1:-1;for(let c=0;c=ML(e)&&c=3&&32768&t[0].flags&&65536&t[1].flags&&$(t,XS)?67108864:0)}return!!(67108864&e.objectFlags)}return!1}(t))return!0}return!1}function iT(e,t,n){if(pk(e)&&(e=e.regularType),pk(t)&&(t=t.regularType),e===t)return!0;if(n!==Fo){if(n===No&&!(131072&t.flags)&&rT(t,e,n)||rT(e,t,n))return!0}else if(!(61865984&(e.flags|t.flags))){if(e.flags!==t.flags)return!1;if(67358815&e.flags)return!0}if(524288&e.flags&&524288&t.flags){const r=n.get(dC(e,t,0,n,!1));if(void 0!==r)return!!(1&r)}return!!(469499904&e.flags||469499904&t.flags)&&hT(e,t,n,void 0)}function oT(e,t){return 2048&gx(e)&&KA(t.escapedName)}function uT(e,t){for(;;){const n=pk(e)?e.regularType:iw(e)?fT(e,t):4&gx(e)?e.node?ay(e.target,uy(e)):qC(e)||e:3145728&e.flags?dT(e,t):33554432&e.flags?t?e.baseType:wy(e):25165824&e.flags?Dx(e,t):e;if(n===e)return n;e=n}}function dT(e,t){const n=Bf(e);if(n!==e)return n;if(2097152&e.flags&&function(e){let t=!1,n=!1;for(const r of e.types)if(t||(t=!!(465829888&r.flags)),n||(n=!!(98304&r.flags)||XS(r)),t&&n)return!0;return!1}(e)){const n=A(e.types,e=>uT(e,t));if(n!==e.types)return Bb(n)}return e}function fT(e,t){const n=xb(e),r=A(n,e=>25165824&e.flags?Dx(e,t):e);return n!==r?tb(e.target,r):e}function hT(e,t,n,i,o,a,s){var c;let _,d,p,f,m,g,h,y,v=0,b=0,x=0,S=0,C=!1,w=0,N=0,D=16e6-n.size>>3;un.assert(n!==Fo||!i,"no error reporting in identity checking");const F=U(e,t,3,!!i,o);if(y&&L(),C){const o=dC(e,t,0,n,!1);n.set(o,2|(D<=0?32:64)),null==(c=Hn)||c.instant(Hn.Phase.CheckTypes,"checkTypeRelatedTo_DepthLimit",{sourceId:e.id,targetId:t.id,depth:b,targetDepth:x});const a=D<=0?_a.Excessive_complexity_comparing_types_0_and_1:_a.Excessive_stack_depth_comparing_types_0_and_1,l=zo(i||r,a,Tc(e),Tc(t));s&&(s.errors||(s.errors=[])).push(l)}else if(_){if(a){const e=a();e&&(ek(e,_),_=e)}let r;if(o&&i&&!F&&e.symbol){const i=ua(e.symbol);i.originatingImport&&!_f(i.originatingImport)&&hT(P_(i.target),t,n,void 0)&&(r=ie(r,Rp(i.originatingImport,_a.Type_originates_at_this_import_A_namespace_style_import_cannot_be_called_or_constructed_and_will_cause_a_failure_at_runtime_Consider_using_a_default_import_or_import_require_here_instead)))}const c=zp(vd(i),i,_,r);d&&aT(c,...d),s&&(s.errors||(s.errors=[])).push(c),s&&s.skipLogging||ho.add(c)}return i&&s&&s.skipLogging&&0===F&&un.assert(!!s.errors,"missed opportunity to interact with error."),0!==F;function P(e){_=e.errorInfo,h=e.lastSkippedInfo,y=e.incompatibleStack,w=e.overrideNextErrorInfo,N=e.skipParentCounter,d=e.relatedInfo}function I(){return{errorInfo:_,lastSkippedInfo:h,incompatibleStack:null==y?void 0:y.slice(),overrideNextErrorInfo:w,skipParentCounter:N,relatedInfo:null==d?void 0:d.slice()}}function O(e,...t){w++,h=void 0,(y||(y=[])).push([e,...t])}function L(){const e=y||[];y=void 0;const t=h;if(h=void 0,1===e.length)return M(...e[0]),void(t&&J(void 0,...t));let n="";const r=[];for(;e.length;){const[t,...i]=e.pop();switch(t.code){case _a.Types_of_property_0_are_incompatible.code:{0===n.indexOf("new ")&&(n=`(${n})`);const e=""+i[0];n=0===n.length?`${e}`:ms(e,yk(j))?`${n}.${e}`:"["===e[0]&&"]"===e[e.length-1]?`${n}${e}`:`${n}[${e}]`;break}case _a.Call_signature_return_types_0_and_1_are_incompatible.code:case _a.Construct_signature_return_types_0_and_1_are_incompatible.code:case _a.Call_signatures_with_no_arguments_have_incompatible_return_types_0_and_1.code:case _a.Construct_signatures_with_no_arguments_have_incompatible_return_types_0_and_1.code:if(0===n.length){let e=t;t.code===_a.Call_signatures_with_no_arguments_have_incompatible_return_types_0_and_1.code?e=_a.Call_signature_return_types_0_and_1_are_incompatible:t.code===_a.Construct_signatures_with_no_arguments_have_incompatible_return_types_0_and_1.code&&(e=_a.Construct_signature_return_types_0_and_1_are_incompatible),r.unshift([e,i[0],i[1]])}else n=`${t.code===_a.Construct_signature_return_types_0_and_1_are_incompatible.code||t.code===_a.Construct_signatures_with_no_arguments_have_incompatible_return_types_0_and_1.code?"new ":""}${n}(${t.code===_a.Call_signatures_with_no_arguments_have_incompatible_return_types_0_and_1.code||t.code===_a.Construct_signatures_with_no_arguments_have_incompatible_return_types_0_and_1.code?"":"..."})`;break;case _a.Type_at_position_0_in_source_is_not_compatible_with_type_at_position_1_in_target.code:r.unshift([_a.Type_at_position_0_in_source_is_not_compatible_with_type_at_position_1_in_target,i[0],i[1]]);break;case _a.Type_at_positions_0_through_1_in_source_is_not_compatible_with_type_at_position_2_in_target.code:r.unshift([_a.Type_at_positions_0_through_1_in_source_is_not_compatible_with_type_at_position_2_in_target,i[0],i[1],i[2]]);break;default:return un.fail(`Unhandled Diagnostic: ${t.code}`)}}n?M(")"===n[n.length-1]?_a.The_types_returned_by_0_are_incompatible_between_these_types:_a.The_types_of_0_are_incompatible_between_these_types,n):r.shift();for(const[e,...t]of r){const n=e.elidedInCompatabilityPyramid;e.elidedInCompatabilityPyramid=!1,M(e,...t),e.elidedInCompatabilityPyramid=n}t&&J(void 0,...t)}function M(e,...t){un.assert(!!i),y&&L(),e.elidedInCompatabilityPyramid||(0===N?_=Zx(_,e,...t):N--)}function R(e,...t){M(e,...t),N++}function B(e){un.assert(!!_),d?d.push(e):d=[e]}function J(e,t,r){y&&L();const[i,o]=wc(t,r);let a=t,s=i;if(131072&r.flags||!XC(t)||ST(r)||(a=QC(t),un.assert(!FS(a,r),"generalized source shouldn't be assignable"),s=Fc(a)),262144&(8388608&r.flags&&!(8388608&t.flags)?r.objectType.flags:r.flags)&&r!==qn&&r!==Un){const e=pf(r);let n;e&&(FS(a,e)||(n=FS(t,e)))?M(_a._0_is_assignable_to_the_constraint_of_type_1_but_1_could_be_instantiated_with_a_different_subtype_of_constraint_2,n?i:s,o,Tc(e)):(_=void 0,M(_a._0_could_be_instantiated_with_an_arbitrary_type_which_could_be_unrelated_to_1,o,s))}if(e)e===_a.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1&&_e&&TT(t,r).length&&(e=_a.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_types_of_the_target_s_properties);else if(n===No)e=_a.Type_0_is_not_comparable_to_type_1;else if(i===o)e=_a.Type_0_is_not_assignable_to_type_1_Two_different_types_with_this_name_exist_but_they_are_unrelated;else if(_e&&TT(t,r).length)e=_a.Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_types_of_the_target_s_properties;else{if(128&t.flags&&1048576&r.flags){const e=function(e,t){const n=t.types.filter(e=>!!(128&e.flags));return Lt(e.value,n,e=>e.value)}(t,r);if(e)return void M(_a.Type_0_is_not_assignable_to_type_1_Did_you_mean_2,s,o,Tc(e))}e=_a.Type_0_is_not_assignable_to_type_1}M(e,s,o)}function z(e,t,n){return rw(e)?e.target.readonly&&MC(t)?(n&&M(_a.The_type_0_is_readonly_and_cannot_be_assigned_to_the_mutable_type_1,Tc(e),Tc(t)),!1):jC(t):LC(e)&&MC(t)?(n&&M(_a.The_type_0_is_readonly_and_cannot_be_assigned_to_the_mutable_type_1,Tc(e),Tc(t)),!1):!rw(t)||OC(e)}function q(e,t,n){return U(e,t,3,n)}function U(e,t,r=3,o=!1,a,s=0){if(e===t)return-1;if(524288&e.flags&&402784252&t.flags)return n===No&&!(131072&t.flags)&&rT(t,e,n)||rT(e,t,n,o?M:void 0)?-1:(o&&V(e,t,e,t,a),0);const c=uT(e,!1);let l=uT(t,!0);if(c===l)return-1;if(n===Fo)return c.flags!==l.flags?0:67358815&c.flags?-1:(W(c,l),ee(c,l,!1,0,r));if(262144&c.flags&&Vp(c)===l)return-1;if(470302716&c.flags&&1048576&l.flags){const e=l.types,t=2===e.length&&98304&e[0].flags?e[1]:3===e.length&&98304&e[0].flags&&98304&e[1].flags?e[2]:void 0;if(t&&!(98304&t.flags)&&(l=uT(t,!0),c===l))return-1}if(n===No&&!(131072&l.flags)&&rT(l,c,n)||rT(c,l,n,o?M:void 0))return-1;if(469499904&c.flags||469499904&l.flags){if(!(2&s)&&xN(c)&&8192&gx(c)&&function(e,t,r){var o;if(!gI(t)||!ne&&4096&gx(t))return!1;const a=!!(2048&gx(e));if((n===wo||n===No)&&(yD(Gn,t)||!a&&GS(t)))return!1;let s,c=t;1048576&t.flags&&(c=Dz(e,t,U)||function(e){if(gj(e,67108864)){const t=GD(e,e=>!(402784252&e.flags));if(!(131072&t.flags))return t}return e}(t),s=1048576&c.flags?c.types:[c]);for(const t of Up(e))if(G(t,e.symbol)&&!oT(e,t)){if(!mI(c,t.escapedName,a)){if(r){const n=GD(c,gI);if(!i)return un.fail();if(GE(i)||bu(i)||bu(i.parent)){t.valueDeclaration&&KE(t.valueDeclaration)&&vd(i)===vd(t.valueDeclaration.name)&&(i=t.valueDeclaration.name);const e=bc(t),r=YI(e,n),o=r?bc(r):void 0;o?M(_a.Property_0_does_not_exist_on_type_1_Did_you_mean_2,e,Tc(n),o):M(_a.Property_0_does_not_exist_on_type_1,e,Tc(n))}else{const r=(null==(o=e.symbol)?void 0:o.declarations)&&fe(e.symbol.declarations);let a;if(t.valueDeclaration&&uc(t.valueDeclaration,e=>e===r)&&vd(r)===vd(i)){const e=t.valueDeclaration;un.assertNode(e,v_);const r=e.name;i=r,aD(r)&&(a=ZI(r,n))}void 0!==a?R(_a.Object_literal_may_only_specify_known_properties_but_0_does_not_exist_in_type_1_Did_you_mean_to_write_2,bc(t),Tc(n),a):R(_a.Object_literal_may_only_specify_known_properties_and_0_does_not_exist_in_type_1,bc(t),Tc(n))}}return!0}if(s&&!U(P_(t),K(s,t.escapedName),3,r))return r&&O(_a.Types_of_property_0_are_incompatible,bc(t)),!0}return!1}(c,l,o))return o&&J(a,c,t.aliasSymbol?t:l),0;const _=(n!==No||KC(c))&&!(2&s)&&405405692&c.flags&&c!==Gn&&2621440&l.flags&&PT(l)&&(Up(c).length>0||wJ(c)),u=!!(2048&gx(c));if(_&&!function(e,t,n){for(const r of Up(e))if(mI(t,r.escapedName,n))return!0;return!1}(c,l,u)){if(o){const n=Tc(e.aliasSymbol?e:c),r=Tc(t.aliasSymbol?t:l),i=mm(c,0),o=mm(c,1);i.length>0&&U(Gg(i[0]),l,1,!1)||o.length>0&&U(Gg(o[0]),l,1,!1)?M(_a.Value_of_type_0_has_no_properties_in_common_with_type_1_Did_you_mean_to_call_it,n,r):M(_a.Type_0_has_no_properties_in_common_with_type_1,n,r)}return 0}W(c,l);const d=1048576&c.flags&&c.types.length<4&&!(1048576&l.flags)||1048576&l.flags&&l.types.length<4&&!(469499904&c.flags)?X(c,l,o,s):ee(c,l,o,s,r);if(d)return d}return o&&V(e,t,c,l,a),0}function V(e,t,n,r,o){var a,s;const c=!!qC(e),l=!!qC(t);n=e.aliasSymbol||c?e:n,r=t.aliasSymbol||l?t:r;let u=w>0;if(u&&w--,524288&n.flags&&524288&r.flags){const e=_;z(n,r,!0),_!==e&&(u=!!_)}if(524288&n.flags&&402784252&r.flags)!function(e,t){const n=Pc(e.symbol)?Tc(e,e.symbol.valueDeclaration):Tc(e),r=Pc(t.symbol)?Tc(t,t.symbol.valueDeclaration):Tc(t);(rr===e&&Vt===t||ir===e&&Wt===t||or===e&&sn===t||Zy()===e&&cn===t)&&M(_a._0_is_a_primitive_but_1_is_a_wrapper_object_Prefer_using_0_when_possible,r,n)}(n,r);else if(n.symbol&&524288&n.flags&&Gn===n)M(_a.The_Object_type_is_assignable_to_very_few_other_types_Did_you_mean_to_use_the_any_type_instead);else if(2048&gx(n)&&2097152&r.flags){const e=r.types,t=eI(jB.IntrinsicAttributes,i),n=eI(jB.IntrinsicClassAttributes,i);if(!al(t)&&!al(n)&&(T(e,t)||T(e,n)))return}else _=Gf(_,t);if(!o&&u){const e=I();let t;return J(o,n,r),_&&_!==e.errorInfo&&(t={code:_.code,messageText:_.messageText}),P(e),t&&_&&(_.canonicalHead=t),void(h=[n,r])}if(J(o,n,r),262144&n.flags&&(null==(s=null==(a=n.symbol)?void 0:a.declarations)?void 0:s[0])&&!Vp(n)){const e=iS(n);if(e.constraint=fS(r,Wk(n,e)),mf(e)){const e=Tc(r,n.symbol.declarations[0]);B(Rp(n.symbol.declarations[0],_a.This_type_parameter_might_need_an_extends_0_constraint,e))}}}function W(e,t){if(Hn&&3145728&e.flags&&3145728&t.flags){const n=e,r=t;if(n.objectFlags&r.objectFlags&32768)return;const o=n.types.length,a=r.types.length;o*a>1e6&&Hn.instant(Hn.Phase.CheckTypes,"traceUnionsOrIntersectionsTooLarge_DepthLimit",{sourceId:e.id,sourceSize:o,targetId:t.id,targetSize:a,pos:null==i?void 0:i.pos,end:null==i?void 0:i.end})}}function K(e,t){return Pb(we(e,(e,n)=>{var r;const i=3145728&(n=Sf(n)).flags?Rf(n,t):Lp(n,t);return ie(e,i&&P_(i)||(null==(r=og(n,t))?void 0:r.type)||jt)},void 0)||l)}function G(e,t){return e.valueDeclaration&&t.valueDeclaration&&e.valueDeclaration.parent===t.valueDeclaration}function X(e,t,r,i){if(1048576&e.flags){if(1048576&t.flags){const n=e.origin;if(n&&2097152&n.flags&&t.aliasSymbol&&T(n.types,t))return-1;const r=t.origin;if(r&&1048576&r.flags&&e.aliasSymbol&&T(r.types,e))return-1}return n===No?Z(e,t,r&&!(402784252&e.flags),i):function(e,t,n,r){let i=-1;const o=e.types,a=function(e,t){return 1048576&e.flags&&1048576&t.flags&&!(32768&e.types[0].flags)&&32768&t.types[0].flags?aF(t,-32769):t}(e,t);for(let e=0;e=a.types.length&&o.length%a.types.length===0){const t=U(s,a.types[e%a.types.length],3,!1,void 0,r);if(t){i&=t;continue}}const c=U(s,t,1,n,void 0,r);if(!c)return 0;i&=c}return i}(e,t,r&&!(402784252&e.flags),i)}if(1048576&t.flags)return Y(Nw(e),t,r&&!(402784252&e.flags)&&!(402784252&t.flags),i);if(2097152&t.flags)return function(e,t,n){let r=-1;const i=t.types;for(const t of i){const i=U(e,t,2,n,void 0,2);if(!i)return 0;r&=i}return r}(e,t,r);if(n===No&&402784252&t.flags){const n=A(e.types,e=>465829888&e.flags?pf(e)||Ot:e);if(n!==e.types){if(131072&(e=Bb(n)).flags)return 0;if(!(2097152&e.flags))return U(e,t,1,!1)||U(t,e,1,!1)}}return Z(e,t,!1,1)}function Q(e,t){let n=-1;const r=e.types;for(const e of r){const r=Y(e,t,!1,0);if(!r)return 0;n&=r}return n}function Y(e,t,r,i){const o=t.types;if(1048576&t.flags){if(Sb(o,e))return-1;if(n!==No&&32768&gx(t)&&!(1024&e.flags)&&(2688&e.flags||(n===To||n===Co)&&256&e.flags)){const t=e===e.regularType?e.freshType:e.regularType,n=128&e.flags?Vt:256&e.flags?Wt:2048&e.flags?$t:void 0;return n&&Sb(o,n)||t&&Sb(o,t)?-1:0}const r=BN(t,e);if(r){const t=U(e,r,2,!1,void 0,i);if(t)return t}}for(const t of o){const n=U(e,t,2,!1,void 0,i);if(n)return n}if(r){const n=FT(e,t,U);n&&U(e,n,2,!0,void 0,i)}return 0}function Z(e,t,n,r){const i=e.types;if(1048576&e.flags&&Sb(i,t))return-1;const o=i.length;for(let e=0;e(N|=e?16:8,k(e))),3===S?(null==(a=Hn)||a.instant(Hn.Phase.CheckTypes,"recursiveTypeRelatedTo_DepthLimit",{sourceId:e.id,sourceIdStack:m.map(e=>e.id),targetId:t.id,targetIdStack:g.map(e=>e.id),depth:b,targetDepth:x}),T=3):(null==(s=Hn)||s.push(Hn.Phase.CheckTypes,"structuredTypeRelatedTo",{sourceId:e.id,targetId:t.id}),T=function(e,t,r,i){const o=I();let a=function(e,t,r,i,o){let a,s,c=!1,u=e.flags;const d=t.flags;if(n===Fo){if(3145728&u){let n=Q(e,t);return n&&(n&=Q(t,e)),n}if(4194304&u)return U(e.type,t.type,3,!1);if(8388608&u&&(a=U(e.objectType,t.objectType,3,!1))&&(a&=U(e.indexType,t.indexType,3,!1)))return a;if(16777216&u&&e.root.isDistributive===t.root.isDistributive&&(a=U(e.checkType,t.checkType,3,!1))&&(a&=U(e.extendsType,t.extendsType,3,!1))&&(a&=U(qx(e),qx(t),3,!1))&&(a&=U(Ux(e),Ux(t),3,!1)))return a;if(33554432&u&&(a=U(e.baseType,t.baseType,3,!1))&&(a&=U(e.constraint,t.constraint,3,!1)))return a;if(134217728&u&&te(e.texts,t.texts)){const n=e.types,r=t.types;a=-1;for(let e=0;e!!(262144&e.flags));){if(a=U(n,t,1,!1))return a;n=Hp(n)}return 0}}else if(4194304&d){const n=t.type;if(4194304&u&&(a=U(n,e.type,3,!1)))return a;if(rw(n)){if(a=U(e,hb(n),2,r))return a}else{const i=of(n);if(i){if(-1===U(e,Yb(i,4|t.indexFlags),2,r))return-1}else if(Sp(n)){const t=op(n),i=ip(n);let o;if(o=t&&yp(n)?Pb([re(t,n),t]):t||i,-1===U(e,o,2,r))return-1}}}else if(8388608&d){if(8388608&u){if((a=U(e.objectType,t.objectType,3,r))&&(a&=U(e.indexType,t.indexType,3,r)),a)return a;r&&(s=_)}if(n===wo||n===No){const n=t.objectType,c=t.indexType,l=pf(n)||n,u=pf(c)||c;if(!Tx(l)&&!Cx(u)){const t=Ox(l,u,4|(l!==n?2:0));if(t){if(r&&s&&P(o),a=U(e,t,2,r,void 0,i))return a;r&&s&&_&&(_=h([s])<=h([_])?s:_)}}}r&&(s=void 0)}else if(Sp(t)&&n!==Fo){const n=!!t.declaration.nameType,i=_p(t),c=bp(t);if(!(8&c)){if(!n&&8388608&i.flags&&i.objectType===e&&i.indexType===rp(t))return-1;if(!Sp(e)){const i=n?op(t):ip(t),l=Yb(e,2),u=4&c,d=u?zd(i,l):void 0;if(u?!(131072&d.flags):U(i,l,3)){const o=_p(t),s=rp(t),c=aF(o,-98305);if(!n&&8388608&c.flags&&c.indexType===s){if(a=U(e,c.objectType,2,r))return a}else{const t=Ax(e,n?d||i:d?Bb([d,s]):s);if(a=U(t,o,3,r))return a}}s=_,P(o)}}}else if(16777216&d){if(CC(t,g,x,10))return 3;const n=t;if(!(n.root.inferTypeParameters||(p=n.root,p.isDistributive&&(cS(p.checkType,p.node.trueType)||cS(p.checkType,p.node.falseType)))||16777216&e.flags&&e.root===n.root)){const t=!FS(gS(n.checkType),gS(n.extendsType)),r=!t&&FS(hS(n.checkType),hS(n.extendsType));if((a=t?-1:U(e,qx(n),2,!1,void 0,i))&&(a&=r?-1:U(e,Ux(n),2,!1,void 0,i),a))return a}}else if(134217728&d){if(134217728&u){if(n===No)return function(e,t){const n=e.texts[0],r=t.texts[0],i=e.texts[e.texts.length-1],o=t.texts[t.texts.length-1],a=Math.min(n.length,r.length),s=Math.min(i.length,o.length);return n.slice(0,a)!==r.slice(0,a)||i.slice(i.length-s)!==o.slice(o.length-s)}(e,t)?0:-1;fS(e,Cn)}if(gN(e,t))return-1}else if(268435456&t.flags&&!(268435456&e.flags)&&pN(e,t))return-1;var p,f;if(8650752&u){if(!(8388608&u&&8388608&d)){const n=Vp(e)||Ot;if(a=U(n,t,1,!1,void 0,i))return a;if(a=U(wd(n,e),t,1,r&&n!==Ot&&!(d&u&262144),void 0,i))return a;if(kf(e)){const n=Vp(e.indexType);if(n&&(a=U(Ax(e.objectType,n),t,1,r)))return a}}}else if(4194304&u){const n=Qb(e.type,e.indexFlags)&&32&gx(e.type);if(a=U(hn,t,1,r&&!n))return a;if(n){const n=e.type,i=op(n),o=i&&yp(n)?re(i,n):i||ip(n);if(a=U(o,t,1,r))return a}}else if(134217728&u&&!(524288&d)){if(!(134217728&d)){const n=pf(e);if(n&&n!==e&&(a=U(n,t,1,r)))return a}}else if(268435456&u)if(268435456&d){if(e.symbol!==t.symbol)return 0;if(a=U(e.type,t.type,3,r))return a}else{const n=pf(e);if(n&&(a=U(n,t,1,r)))return a}else if(16777216&u){if(CC(e,m,b,10))return 3;if(16777216&d){const n=e.root.inferTypeParameters;let i,o=e.extendsType;if(n){const e=Vw(n,void 0,0,q);yN(e.inferences,t.extendsType,o,1536),o=fS(o,e.mapper),i=e.mapper}if(SS(o,t.extendsType)&&(U(e.checkType,t.checkType,3)||U(t.checkType,e.checkType,3))&&((a=U(fS(qx(e),i),qx(t),3,r))&&(a&=U(Ux(e),Ux(t),3,r)),a))return a}const n=af(e);if(n&&(a=U(n,t,1,r)))return a;const i=16777216&d||!mf(e)?void 0:sf(e);if(i&&(P(o),a=U(i,t,1,r)))return a}else{if(n!==To&&n!==Co&&32&gx(f=t)&&4&bp(f)&&GS(e))return-1;if(Sp(t))return Sp(e)&&(a=function(e,t,r){if(n===No||(n===Fo?bp(e)===bp(t):kp(e)<=kp(t))){let n;if(n=U(ip(t),fS(ip(e),kp(e)<0?wn:Cn),3,r)){const i=Uk([rp(e)],[rp(t)]);if(fS(op(e),i)===fS(op(t),i))return n&U(fS(_p(e),i),_p(t),3,r)}}return 0}(e,t,r))?a:0;const p=!!(402784252&u);if(n!==Fo)u=(e=Sf(e)).flags;else if(Sp(e))return 0;if(4&gx(e)&&4&gx(t)&&e.target===t.target&&!rw(e)&&!KT(e)&&!KT(t)){if(VC(e))return-1;const n=IT(e.target);if(n===l)return 1;const r=y(uy(e),uy(t),n,i);if(void 0!==r)return r}else{if(LC(t)?KD(e,jC):OC(t)&&KD(e,e=>rw(e)&&!e.target.readonly))return n!==Fo?U(Qm(e,Wt)||wt,Qm(t,Wt)||wt,3,r):0;if(iw(e)&&rw(t)&&!iw(t)){const n=ff(e);if(n!==e)return U(n,t,1,r)}else if((n===To||n===Co)&&GS(t)&&8192&gx(t)&&!GS(e))return 0}if(2621440&u&&524288&d){const n=r&&_===o.errorInfo&&!p;if(a=se(e,t,n,void 0,!1,i),a&&(a&=le(e,t,0,n,i),a&&(a&=le(e,t,1,n,i),a&&(a&=he(e,t,p,n,i)))),c&&a)_=s||_||o.errorInfo;else if(a)return a}if(2621440&u&&1048576&d){const r=aF(t,36175872);if(1048576&r.flags){const t=function(e,t){var r;const i=jN(Up(e),t);if(!i)return 0;let o=1;for(const n of i)if(o*=ZD(M_(n)),o>25)return null==(r=Hn)||r.instant(Hn.Phase.CheckTypes,"typeRelatedToDiscriminatedType_DepthLimit",{sourceId:e.id,targetId:t.id,numCombinations:o}),0;const a=new Array(i.length),s=new Set;for(let e=0;er[o],!1,0,H||n===No))continue e}ce(l,a,mt),o=!0}if(!o)return 0}let _=-1;for(const t of l)if(_&=se(e,t,!1,s,!1,0),_&&(_&=le(e,t,0,!1,0),_&&(_&=le(e,t,1,!1,0),!_||rw(e)&&rw(t)||(_&=he(e,t,!1,!1,0)))),!_)return _;return _}(e,r);if(t)return t}}}return 0;function h(e){return e?we(e,(e,t)=>e+1+h(t.next),0):0}function y(e,t,i,u){if(a=function(e=l,t=l,r=l,i,o){if(e.length!==t.length&&n===Fo)return 0;const a=e.length<=t.length?e.length:t.length;let s=-1;for(let c=0;c!!(24&e)))return s=void 0,void P(o);const d=t&&function(e,t){for(let n=0;n!(7&e))))return 0;s=_,P(o)}}}(e,t,r,i,o);if(n!==Fo){if(!a&&(2097152&e.flags||262144&e.flags&&1048576&t.flags)){const n=function(e,t){let n,r=!1;for(const i of e)if(465829888&i.flags){let e=Vp(i);for(;e&&21233664&e.flags;)e=Vp(e);e&&(n=ie(n,e),t&&(n=ie(n,i)))}else(469892092&i.flags||XS(i))&&(r=!0);if(n&&(t||r)){if(r)for(const t of e)(469892092&t.flags||XS(t))&&(n=ie(n,t));return uT(Bb(n,2),!1)}}(2097152&e.flags?e.types:[e],!!(1048576&t.flags));n&&KD(n,t=>t!==e)&&(a=U(n,t,1,!1,void 0,i))}a&&!(2&i)&&2097152&t.flags&&!Tx(t)&&2621440&e.flags?(a&=se(e,t,r,void 0,!1,0),a&&xN(e)&&8192&gx(e)&&(a&=he(e,t,!1,r,0))):a&&ik(t)&&!jC(t)&&2097152&e.flags&&3670016&Sf(e).flags&&!$(e.types,e=>e===t||!!(262144&gx(e)))&&(a&=se(e,t,r,void 0,!0,i))}return a&&P(o),a}(e,t,r,i),null==(c=Hn)||c.pop()),on&&(on=k),1&o&&b--,2&o&&x--,S=y,T?(-1===T||0===b&&0===x)&&F(-1===T||3===T):(n.set(u,2|N),D--,F(!1)),T;function F(e){for(let t=h;t{r.push(fS(e,rS(t.mapper,rp(t),n)))}),Pb(r)}function oe(e,t){if(!t||0===e.length)return e;let n;for(let r=0;r{return!!(4&ix(t))&&(n=e,r=bC(t),!fC(n,e=>{const t=bC(e);return!!t&&q_(t,r)}));var n,r})}(r,i))return a&&M(_a.Property_0_is_protected_but_type_1_is_not_a_class_derived_from_2,bc(i),Tc(bC(r)||e),Tc(bC(i)||t)),0}else if(4&l)return a&&M(_a.Property_0_is_protected_in_type_1_but_public_in_type_2,bc(i),Tc(e),Tc(t)),0;if(n===Co&&_j(r)&&!_j(i))return 0;const u=function(e,t,r,i,o){const a=H&&!!(48&rx(t)),s=Pl(M_(t),!1,a);return s.flags&(n===Co?1:3)?-1:U(r(e),s,3,i,void 0,o)}(r,i,o,a,s);return u?!c&&16777216&r.flags&&106500&i.flags&&!(16777216&i.flags)?(a&&M(_a.Property_0_is_optional_in_type_1_but_required_in_type_2,bc(i),Tc(e),Tc(t)),0):u:(a&&O(_a.Types_of_property_0_are_incompatible,bc(i)),0)}function se(e,t,r,i,a,s){if(n===Fo)return function(e,t,n){if(!(524288&e.flags&&524288&t.flags))return 0;const r=oe(Dp(e),n),i=oe(Dp(t),n);if(r.length!==i.length)return 0;let o=-1;for(const e of r){const n=Lp(t,e.escapedName);if(!n)return 0;const r=EC(e,n,U);if(!r)return 0;o&=r}return o}(e,t,i);let c=-1;if(rw(t)){if(jC(e)){if(!t.target.readonly&&(LC(e)||rw(e)&&e.target.readonly))return 0;const n=dy(e),o=dy(t),a=rw(e)?4&e.target.combinedFlags:4,l=!!(12&t.target.combinedFlags),_=rw(e)?e.target.minLength:0,u=t.target.minLength;if(!a&&n!(11&e));return t>=0?t:e.elementFlags.length}(t.target),m=yb(t.target,11);let g=!!i;for(let a=0;a=f?o-1-Math.min(u,m):a,y=t.target.elementFlags[h];if(8&y&&!(8&_))return r&&M(_a.Source_provides_no_match_for_variadic_element_at_position_0_in_target,h),0;if(8&_&&!(12&y))return r&&M(_a.Variadic_element_at_position_0_in_source_does_not_match_element_at_position_1_in_target,a,h),0;if(1&y&&!(1&_))return r&&M(_a.Source_provides_no_match_for_required_element_at_position_0_in_target,h),0;if(g&&((12&_||12&y)&&(g=!1),g&&(null==i?void 0:i.has(""+a))))continue;const v=kw(d[a],!!(_&y&2)),b=p[h],x=U(v,8&_&&4&y?Rv(b):kw(b,!!(2&y)),3,r,void 0,s);if(!x)return r&&(o>1||n>1)&&(l&&a>=f&&u>=m&&f!==n-m-1?O(_a.Type_at_positions_0_through_1_in_source_is_not_compatible_with_type_at_position_2_in_target,f,n-m-1,h):O(_a.Type_at_position_0_in_source_is_not_compatible_with_type_at_position_1_in_target,a,h)),0;c&=x}return c}if(12&t.target.combinedFlags)return 0}const l=!(n!==To&&n!==Co||xN(e)||VC(e)||rw(e)),d=cN(e,t,l,!1);if(d)return r&&function(e,t){const n=fm(e,0),r=fm(e,1),i=Dp(e);return!((n.length||r.length)&&!i.length)||!!(mm(t,0).length&&n.length||mm(t,1).length&&r.length)}(e,t)&&function(e,t,n,r){let i=!1;if(n.valueDeclaration&&Sc(n.valueDeclaration)&&sD(n.valueDeclaration.name)&&e.symbol&&32&e.symbol.flags){const r=n.valueDeclaration.name.escapedText,i=Vh(e.symbol,r);if(i&&pm(e,i)){const n=mw.getDeclarationName(e.symbol.valueDeclaration),i=mw.getDeclarationName(t.symbol.valueDeclaration);return void M(_a.Property_0_in_type_1_refers_to_a_different_member_that_cannot_be_accessed_from_within_type_2,ya(r),ya(""===n.escapedText?JB:n),ya(""===i.escapedText?JB:i))}}const a=Oe(sN(e,t,r,!1));if((!o||o.code!==_a.Class_0_incorrectly_implements_interface_1.code&&o.code!==_a.Class_0_incorrectly_implements_class_1_Did_you_mean_to_extend_1_and_inherit_its_members_as_a_subclass.code)&&(i=!0),1===a.length){const r=bc(n,void 0,0,20);M(_a.Property_0_is_missing_in_type_1_but_required_in_type_2,r,...wc(e,t)),u(n.declarations)&&B(Rp(n.declarations[0],_a._0_is_declared_here,r)),i&&_&&w++}else z(e,t,!1)&&(a.length>5?M(_a.Type_0_is_missing_the_following_properties_from_type_1_Colon_2_and_3_more,Tc(e),Tc(t),E(a.slice(0,4),e=>bc(e)).join(", "),a.length-4):M(_a.Type_0_is_missing_the_following_properties_from_type_1_Colon_2,Tc(e),Tc(t),E(a,e=>bc(e)).join(", ")),i&&_&&w++)}(e,t,d,l),0;if(xN(t))for(const n of oe(Up(e),i))if(!(Lp(t,n.escapedName)||32768&P_(n).flags))return r&&M(_a.Property_0_does_not_exist_on_type_1,bc(n),Tc(t)),0;const p=Up(t),f=rw(e)&&rw(t);for(const o of oe(p,i)){const i=o.escapedName;if(!(4194304&o.flags)&&(!f||JT(i)||"length"===i)&&(!a||16777216&o.flags)){const a=pm(e,i);if(a&&a!==o){const i=ae(e,t,a,o,M_,r,s,n===No);if(!i)return 0;c&=i}}}return c}function le(e,t,r,i,o){var a,s;if(n===Fo)return function(e,t,n){const r=mm(e,n),i=mm(t,n);if(r.length!==i.length)return 0;let o=-1;for(let e=0;ekc(e,void 0,262144,r);return M(_a.Type_0_is_not_assignable_to_type_1,e(t),e(c)),M(_a.Types_of_construct_signatures_are_incompatible),d}}else e:for(const t of u){const n=I();let a=i;for(const e of _){const r=pe(e,t,!0,a,o,p(e,t));if(r){d&=r,P(n);continue e}a=!1}return a&&M(_a.Type_0_provides_no_match_for_the_signature_1,Tc(e),kc(t,void 0,void 0,r)),0}return d}function ue(e,t){return 0===e.parameters.length&&0===t.parameters.length?(e,t)=>O(_a.Call_signatures_with_no_arguments_have_incompatible_return_types_0_and_1,Tc(e),Tc(t)):(e,t)=>O(_a.Call_signature_return_types_0_and_1_are_incompatible,Tc(e),Tc(t))}function de(e,t){return 0===e.parameters.length&&0===t.parameters.length?(e,t)=>O(_a.Construct_signatures_with_no_arguments_have_incompatible_return_types_0_and_1,Tc(e),Tc(t)):(e,t)=>O(_a.Construct_signature_return_types_0_and_1_are_incompatible,Tc(e),Tc(t))}function pe(e,t,r,i,o,a){const s=n===To?16:n===Co?24:0;return $S(r?wh(e):e,r?wh(t):t,s,i,M,a,function(e,t,n){return U(e,t,3,n,void 0,o)},Cn)}function me(e,t,n,r){const i=U(e.type,t.type,3,n,void 0,r);return!i&&n&&(e.keyType===t.keyType?M(_a._0_index_signatures_are_incompatible,Tc(e.keyType)):M(_a._0_and_1_index_signatures_are_incompatible,Tc(e.keyType),Tc(t.keyType))),i}function he(e,t,r,i,o){if(n===Fo)return function(e,t){const n=Jm(e),r=Jm(t);if(n.length!==r.length)return 0;for(const t of r){const n=qm(e,t.keyType);if(!n||!U(n.type,t.type,3)||n.isReadonly!==t.isReadonly)return 0}return-1}(e,t);const a=Jm(t),s=$(a,e=>e.keyType===Vt);let c=-1;for(const t of a){const a=n!==Co&&!r&&s&&1&t.type.flags?-1:Sp(e)&&s?U(_p(e),t.type,3,i):ye(e,t,i,o);if(!a)return 0;c&=a}return c}function ye(e,t,r,i){const o=ig(e,t.keyType);return o?me(o,t,r,i):1&i||!(n!==Co||8192&gx(e))||!Cw(e)?(r&&M(_a.Index_signature_for_type_0_is_missing_in_type_1,Tc(t.keyType),Tc(e)),0):function(e,t,n,r){let i=-1;const o=t.keyType,a=2097152&e.flags?Jp(e):Dp(e);for(const s of a)if(!oT(e,s)&&jm(Kb(s,8576),o)){const e=M_(s),a=U(_e||32768&e.flags||o===Wt||!(16777216&s.flags)?e:XN(e,524288),t.type,3,n,void 0,r);if(!a)return n&&M(_a.Property_0_is_incompatible_with_index_signature,bc(s)),0;i&=a}for(const a of Jm(e))if(jm(a.keyType,o)){const e=me(a,t,n,r);if(!e)return 0;i&=e}return i}(e,t,r,i)}}function ST(e){if(16&e.flags)return!1;if(3145728&e.flags)return!!d(e.types,ST);if(465829888&e.flags){const t=Vp(e);if(t&&t!==e)return ST(t)}return KC(e)||!!(134217728&e.flags)||!!(268435456&e.flags)}function TT(e,t){return rw(e)&&rw(t)?l:Up(t).filter(t=>wT(el(e,t.escapedName),P_(t)))}function wT(e,t){return!!e&&!!t&&gj(e,32768)&&!!Sw(t)}function FT(e,t,n=CS){return Dz(e,t,n)||function(e,t){const n=gx(e);if(20&n&&1048576&t.flags)return b(t.types,t=>{if(524288&t.flags){const r=n&gx(t);if(4&r)return e.target===t.target;if(16&r)return!!e.aliasSymbol&&e.aliasSymbol===t.aliasSymbol}return!1})}(e,t)||function(e,t){if(128&gx(e)&&UD(t,JC))return b(t.types,e=>!JC(e))}(e,t)||function(e,t){let n=0;if(mm(e,n).length>0||(n=1,mm(e,n).length>0))return b(t.types,e=>mm(e,n).length>0)}(e,t)||function(e,t){let n;if(!(406978556&e.flags)){let r=0;for(const i of t.types)if(!(406978556&i.flags)){const t=Bb([Yb(e),Yb(i)]);if(4194304&t.flags)return i;if(KC(t)||1048576&t.flags){const e=1048576&t.flags?w(t.types,KC):1;e>=r&&(n=i,r=e)}}}return n}(e,t)}function ET(e,t,n){const r=e.types,i=r.map(e=>402784252&e.flags?0:-1);for(const[e,o]of t){let t=!1;for(let a=0;a!!n(e,s))?t=!0:i[a]=3)}for(let e=0;ei[t]),0):e;return 131072&o.flags?e:o}function PT(e){if(524288&e.flags){const t=Cp(e);return 0===t.callSignatures.length&&0===t.constructSignatures.length&&0===t.indexInfos.length&&t.properties.length>0&&v(t.properties,e=>!!(16777216&e.flags))}return 33554432&e.flags?PT(e.baseType):!!(2097152&e.flags)&&v(e.types,PT)}function IT(e){return e===Zn||e===er||8&e.objectFlags?L:BT(e.symbol,e.typeParameters)}function OT(e){return BT(e,ua(e).typeParameters)}function BT(e,t=l){var n,r;const i=ua(e);if(!i.variances){null==(n=Hn)||n.push(Hn.Phase.CheckTypes,"getVariancesWorker",{arity:t.length,id:kb(Au(e))});const o=Hi,a=$i;Hi||(Hi=!0,$i=Ui.length),i.variances=l;const s=[];for(const n of t){const t=rC(n);let r=16384&t?8192&t?0:1:8192&t?2:void 0;if(void 0===r){let t=!1,i=!1;const o=on;on=e=>e?i=!0:t=!0;const a=UT(e,n,Bn),s=UT(e,n,Jn);r=(FS(s,a)?1:0)|(FS(a,s)?2:0),3===r&&FS(UT(e,n,zn),a)&&(r=4),on=o,(t||i)&&(t&&(r|=8),i&&(r|=16))}s.push(r)}o||(Hi=!1,$i=a),i.variances=s,null==(r=Hn)||r.pop({variances:s.map(un.formatVariance)})}return i.variances}function UT(e,t,n){const r=Wk(t,n),i=Au(e);if(al(i))return i;const o=524288&e.flags?fy(e,Mk(ua(e).typeParameters,r)):ay(i,Mk(i.typeParameters,r));return bt.add(kb(o)),o}function KT(e){return bt.has(kb(e))}function rC(e){var t;return 28672&we(null==(t=e.symbol)?void 0:t.declarations,(e,t)=>e|Bv(t),0)}function oC(e){return 262144&e.flags&&!Hp(e)}function uC(e){return function(e){return!!(4&gx(e))&&!e.node}(e)&&$(uy(e),e=>!!(262144&e.flags)||uC(e))}function dC(e,t,n,r,i){if(r===Fo&&e.id>t.id){const n=e;e=t,t=n}const o=n?":"+n:"";return uC(e)&&uC(t)?function(e,t,n,r){const i=[];let o="";const a=c(e,0),s=c(t,0);return`${o}${a},${s}${n}`;function c(e,t=0){let n=""+e.target.id;for(const a of uy(e)){if(262144&a.flags){if(r||oC(a)){let e=i.indexOf(a);e<0&&(e=i.length,i.push(a)),n+="="+e;continue}o="*"}else if(t<4&&uC(a)){n+="<"+c(a,t+1)+">";continue}n+="-"+a.id}return n}}(e,t,o,i):`${e.id},${t.id}${o}`}function fC(e,t){if(!(6&rx(e)))return t(e);for(const n of e.links.containingType.types){const r=pm(n,e.escapedName),i=r&&fC(r,t);if(i)return i}}function bC(e){return e.parent&&32&e.parent.flags?Au(Ts(e)):void 0}function xC(e){const t=bC(e),n=t&&uu(t)[0];return n&&el(n,e.escapedName)}function TC(e,t,n){return fC(t,t=>!!(4&ix(t,n))&&!q_(e,bC(t)))?void 0:e}function CC(e,t,n,r=3){if(n>=r){if(96&~gx(e)||(e=wC(e)),2097152&e.flags)return $(e.types,e=>CC(e,t,n,r));const i=DC(e);let o=0,a=0;for(let e=0;e=a&&(o++,o>=r))return!0;a=n.id}}}return!1}function wC(e){let t;for(;!(96&~gx(e))&&(t=vp(e))&&(t.symbol||2097152&t.flags&&$(t.types,e=>!!e.symbol));)e=t;return e}function NC(e,t){return 96&~gx(e)||(e=wC(e)),2097152&e.flags?$(e.types,e=>NC(e,t)):DC(e)===t}function DC(e){if(524288&e.flags&&!kN(e)){if(4&gx(e)&&e.node)return e.node;if(e.symbol&&!(16&gx(e)&&32&e.symbol.flags))return e.symbol;if(rw(e))return e.target}if(262144&e.flags)return e.symbol;if(8388608&e.flags){do{e=e.objectType}while(8388608&e.flags);return e}return 16777216&e.flags?e.root:e}function FC(e,t){return 0!==EC(e,t,TS)}function EC(e,t,n){if(e===t)return-1;const r=6&ix(e);if(r!==(6&ix(t)))return 0;if(r){if(uB(e)!==uB(t))return 0}else if((16777216&e.flags)!=(16777216&t.flags))return 0;return _j(e)!==_j(t)?0:n(P_(e),P_(t))}function PC(e,t,n,r,i,o){if(e===t)return-1;if(!function(e,t,n){const r=jL(e),i=jL(t),o=ML(e),a=ML(t),s=RL(e),c=RL(t);return r===i&&o===a&&s===c||!!(n&&o<=a)}(e,t,n))return 0;if(u(e.typeParameters)!==u(t.typeParameters))return 0;if(t.typeParameters){const n=Uk(e.typeParameters,t.typeParameters);for(let r=0;re|(1048576&t.flags?AC(t.types):t.flags),0)}function IC(e){if(1===e.length)return e[0];const t=H?A(e,e=>GD(e,e=>!(98304&e.flags))):e,n=function(e){let t;for(const n of e)if(!(131072&n.flags)){const e=QC(n);if(t??(t=e),e===n||e!==t)return!1}return!0}(t)?Pb(t):function(e){const t=we(e,(e,t)=>DS(e,t)?t:e);return v(e,e=>e===t||DS(e,t))?t:we(e,(e,t)=>NS(e,t)?t:e)}(t);return t===e?n:dw(n,98304&AC(e))}function OC(e){return!!(4&gx(e))&&(e.target===Zn||e.target===er)}function LC(e){return!!(4&gx(e))&&e.target===er}function jC(e){return OC(e)||rw(e)}function MC(e){return OC(e)&&!LC(e)||rw(e)&&!e.target.readonly}function BC(e){return OC(e)?uy(e)[0]:void 0}function JC(e){return OC(e)||!(98304&e.flags)&&FS(e,_r)}function zC(e){return MC(e)||!(98305&e.flags)&&FS(e,cr)}function qC(e){if(!(4&gx(e)&&3&gx(e.target)))return;if(33554432&gx(e))return 67108864&gx(e)?e.cachedEquivalentBaseType:void 0;e.objectFlags|=33554432;const t=e.target;if(1&gx(t)){const e=nu(t);if(e&&80!==e.expression.kind&&212!==e.expression.kind)return}const n=uu(t);if(1!==n.length)return;if(Td(e.symbol).size)return;let r=u(t.typeParameters)?fS(n[0],Uk(t.typeParameters,uy(e).slice(0,t.typeParameters.length))):n[0];return u(uy(e))>u(t.typeParameters)&&(r=wd(r,ve(uy(e)))),e.objectFlags|=67108864,e.cachedEquivalentBaseType=r}function UC(e){return H?e===pn:e===Mt}function VC(e){const t=BC(e);return!!t&&UC(t)}function WC(e){let t;return rw(e)||!!pm(e,"0")||JC(e)&&!!(t=el(e,"length"))&&KD(t,e=>!!(256&e.flags))}function $C(e){return JC(e)||WC(e)}function HC(e){return!(240544&e.flags)}function KC(e){return!!(109472&e.flags)}function GC(e){const t=ff(e);return 2097152&t.flags?$(t.types,KC):KC(t)}function XC(e){return!!(16&e.flags)||(1048576&e.flags?!!(1024&e.flags)||v(e.types,KC):KC(e))}function QC(e){return 1056&e.flags?hu(e):402653312&e.flags?Vt:256&e.flags?Wt:2048&e.flags?$t:512&e.flags?sn:1048576&e.flags?function(e){const t=`B${kb(e)}`;return Oo(t)??Lo(t,nF(e,QC))}(e):e}function YC(e){return 402653312&e.flags?Vt:288&e.flags?Wt:2048&e.flags?$t:512&e.flags?sn:1048576&e.flags?nF(e,YC):e}function ZC(e){return 1056&e.flags&&pk(e)?hu(e):128&e.flags&&pk(e)?Vt:256&e.flags&&pk(e)?Wt:2048&e.flags&&pk(e)?$t:512&e.flags&&pk(e)?sn:1048576&e.flags?nF(e,ZC):e}function ew(e){return 8192&e.flags?cn:1048576&e.flags?nF(e,ew):e}function tw(e,t){return Bj(e,t)||(e=ew(ZC(e))),dk(e)}function nw(e,t,n,r){return e&&KC(e)&&(e=tw(e,t?WR(n,t,r):void 0)),e}function rw(e){return!!(4&gx(e)&&8&e.target.objectFlags)}function iw(e){return rw(e)&&!!(8&e.target.combinedFlags)}function ow(e){return iw(e)&&1===e.target.elementFlags.length}function aw(e){return cw(e,e.target.fixedLength)}function sw(e,t,n){return nF(e,e=>{const r=e,i=aw(r);return i?n&&t>=vb(r.target)?Pb([i,n]):i:jt})}function cw(e,t,n=0,r=!1,i=!1){const o=dy(e)-n;if(tKN(e,4194304))}function uw(e){return 4&e.flags?Ji:8&e.flags?zi:64&e.flags?qi:e===Qt||e===Ht||114691&e.flags||128&e.flags&&""===e.value||256&e.flags&&0===e.value||2048&e.flags&&lw(e)?e:_n}function dw(e,t){const n=t&~e.flags&98304;return 0===n?e:Pb(32768===n?[e,jt]:65536===n?[e,zt]:[e,jt,zt])}function pw(e,t=!1){un.assert(H);const n=t?Bt:jt;return e===n||1048576&e.flags&&e.types[0]===n?e:Pb([e,n])}function fw(e){return H?QN(e,2097152):e}function gw(e){return H?Pb([e,Jt]):e}function yw(e){return H?QD(e,Jt):e}function vw(e,t,n){return n?bl(t)?pw(e):gw(e):e}function bw(e,t){return vl(t)?fw(e):hl(t)?yw(e):e}function kw(e,t){return _e&&t?QD(e,Rt):e}function Sw(e){return e===Rt||!!(1048576&e.flags)&&e.types[0]===Rt}function Tw(e){return _e?QD(e,Rt):XN(e,524288)}function Cw(e){const t=gx(e);return 2097152&e.flags?v(e.types,Cw):!(!(e.symbol&&7040&e.symbol.flags)||32&e.symbol.flags||wJ(e))||!!(4194304&t)||!!(1024&t&&Cw(e.source))}function ww(e,t){const n=Xo(e.flags,e.escapedName,8&rx(e));n.declarations=e.declarations,n.parent=e.parent,n.links.type=t,n.links.target=e,e.valueDeclaration&&(n.valueDeclaration=e.valueDeclaration);const r=ua(e).nameType;return r&&(n.links.nameType=r),n}function Nw(e){if(!(xN(e)&&8192&gx(e)))return e;const t=e.regularType;if(t)return t;const n=e,r=function(e,t){const n=Gu();for(const r of Dp(e)){const e=P_(r),i=t(e);n.set(r.escapedName,i===e?r:ww(r,i))}return n}(e,Nw),i=$s(n.symbol,r,n.callSignatures,n.constructSignatures,n.indexInfos);return i.flags=n.flags,i.objectFlags|=-8193&n.objectFlags,e.regularType=i,i}function Dw(e,t,n){return{parent:e,propertyName:t,siblings:n,resolvedProperties:void 0}}function Fw(e){if(!e.siblings){const t=[];for(const n of Fw(e.parent))if(xN(n)){const r=Lp(n,e.propertyName);r&&bD(P_(r),e=>{t.push(e)})}e.siblings=t}return e.siblings}function Ew(e){if(!e.resolvedProperties){const t=new Map;for(const n of Fw(e))if(xN(n)&&!(2097152&gx(n)))for(const e of Up(n))t.set(e.escapedName,e);e.resolvedProperties=Oe(t.values())}return e.resolvedProperties}function Pw(e,t){if(!(4&e.flags))return e;const n=P_(e),r=Mw(n,t&&Dw(t,e.escapedName,void 0));return r===n?e:ww(e,r)}function Iw(e){const t=yt.get(e.escapedName);if(t)return t;const n=ww(e,Bt);return n.flags|=16777216,yt.set(e.escapedName,n),n}function jw(e){return Mw(e,void 0)}function Mw(e,t){if(196608&gx(e)){if(void 0===t&&e.widened)return e.widened;let n;if(98305&e.flags)n=wt;else if(xN(e))n=function(e,t){const n=Gu();for(const r of Dp(e))n.set(r.escapedName,Pw(r,t));if(t)for(const e of Ew(t))n.has(e.escapedName)||n.set(e.escapedName,Iw(e));const r=$s(e.symbol,n,l,l,A(Jm(e),e=>Ah(e.keyType,jw(e.type),e.isReadonly,e.declaration,e.components)));return r.objectFlags|=266240&gx(e),r}(e,t);else if(1048576&e.flags){const r=t||Dw(void 0,void 0,e.types),i=A(e.types,e=>98304&e.flags?e:Mw(e,r));n=Pb(i,$(i,GS)?2:1)}else 2097152&e.flags?n=Bb(A(e.types,jw)):jC(e)&&(n=ay(e.target,A(uy(e),jw)));return n&&void 0===t&&(e.widened=n),n||e}return e}function Bw(e){var t;let n=!1;if(65536&gx(e))if(1048576&e.flags)if($(e.types,GS))n=!0;else for(const t of e.types)n||(n=Bw(t));else if(jC(e))for(const t of uy(e))n||(n=Bw(t));else if(xN(e))for(const r of Dp(e)){const i=P_(r);if(65536&gx(i)&&(n=Bw(i),!n)){const o=null==(t=r.declarations)?void 0:t.find(t=>{var n;return(null==(n=t.symbol.valueDeclaration)?void 0:n.parent)===e.symbol.valueDeclaration});o&&(zo(o,_a.Object_literal_s_property_0_implicitly_has_an_1_type,bc(r),Tc(jw(i))),n=!0)}}return n}function Jw(e,t,n){const r=Tc(jw(t));if(Em(e)&&!nT(vd(e),j))return;let i;switch(e.kind){case 227:case 173:case 172:i=ne?_a.Member_0_implicitly_has_an_1_type:_a.Member_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage;break;case 170:const t=e;if(aD(t.name)){const n=hc(t.name);if((OD(t.parent)||DD(t.parent)||BD(t.parent))&&t.parent.parameters.includes(t)&&(Ue(t,t.name.escapedText,788968,void 0,!0)||n&&kx(n))){const n="arg"+t.parent.parameters.indexOf(t),r=Ap(t.name)+(t.dotDotDotToken?"[]":"");return void Vo(ne,e,_a.Parameter_has_a_name_but_no_type_Did_you_mean_0_Colon_1,n,r)}}i=e.dotDotDotToken?ne?_a.Rest_parameter_0_implicitly_has_an_any_type:_a.Rest_parameter_0_implicitly_has_an_any_type_but_a_better_type_may_be_inferred_from_usage:ne?_a.Parameter_0_implicitly_has_an_1_type:_a.Parameter_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage;break;case 209:if(i=_a.Binding_element_0_implicitly_has_an_1_type,!ne)return;break;case 318:return void zo(e,_a.Function_type_which_lacks_return_type_annotation_implicitly_has_an_0_return_type,r);case 324:return void(ne&&LP(e.parent)&&zo(e.parent.tagName,_a.This_overload_implicitly_returns_the_type_0_because_it_lacks_a_return_type_annotation,r));case 263:case 175:case 174:case 178:case 179:case 219:case 220:if(ne&&!e.name)return void zo(e,3===n?_a.Generator_implicitly_has_yield_type_0_Consider_supplying_a_return_type_annotation:_a.Function_expression_which_lacks_return_type_annotation_implicitly_has_an_0_return_type,r);i=ne?3===n?_a._0_which_lacks_return_type_annotation_implicitly_has_an_1_yield_type:_a._0_which_lacks_return_type_annotation_implicitly_has_an_1_return_type:_a._0_implicitly_has_an_1_return_type_but_a_better_type_may_be_inferred_from_usage;break;case 201:return void(ne&&zo(e,_a.Mapped_object_type_implicitly_has_an_any_template_type));default:i=ne?_a.Variable_0_implicitly_has_an_1_type:_a.Variable_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage}Vo(ne,e,i,Ap(Cc(e)),r)}function zw(e,t,n){a(()=>{ne&&65536&gx(t)&&(!n||o_(e)&&function(e,t){const n=LA(e);if(!n)return!0;let r=Gg(n);const i=Oh(e);switch(t){case 1:return 1&i?r=WR(1,r,!!(2&i))??r:2&i&&(r=AM(r)??r),xx(r);case 3:const e=WR(0,r,!!(2&i));return!!e&&xx(e);case 2:const t=WR(2,r,!!(2&i));return!!t&&xx(t)}return!1}(e,n))&&(Bw(t)||Jw(e,t,n))})}function qw(e,t,n){const r=jL(e),i=jL(t),o=BL(e),a=BL(t),s=a?i-1:i,c=o?s:Math.min(r,s),l=Rg(e);if(l){const e=Rg(t);e&&n(l,e)}for(let r=0;re.typeParameter),E(e.inferences,(t,n)=>()=>(t.isFixed||(function(e){if(e.intraExpressionInferenceSites){for(const{node:t,type:n}of e.intraExpressionInferenceSites){const r=175===t.kind?dA(t,2):xA(t,2);r&&yN(e.inferences,n,r)}e.intraExpressionInferenceSites=void 0}}(e),Hw(e.inferences),t.isFixed=!0),SN(e,n))))}(i),i.nonFixingMapper=function(e){return Qk(E(e.inferences,e=>e.typeParameter),E(e.inferences,(t,n)=>()=>SN(e,n)))}(i),i}function Hw(e){for(const t of e)t.isFixed||(t.inferredType=void 0)}function Kw(e,t,n){(e.intraExpressionInferenceSites??(e.intraExpressionInferenceSites=[])).push({node:t,type:n})}function Gw(e){return{typeParameter:e,candidates:void 0,contraCandidates:void 0,inferredType:void 0,priority:void 0,topLevel:!0,isFixed:!1,impliedArity:void 0}}function Xw(e){return{typeParameter:e.typeParameter,candidates:e.candidates&&e.candidates.slice(),contraCandidates:e.contraCandidates&&e.contraCandidates.slice(),inferredType:e.inferredType,priority:e.priority,topLevel:e.topLevel,isFixed:e.isFixed,impliedArity:e.impliedArity}}function Qw(e){return e&&e.mapper}function eN(e){const t=gx(e);if(524288&t)return!!(1048576&t);const n=!!(465829888&e.flags||524288&e.flags&&!tN(e)&&(4&t&&(e.node||$(uy(e),eN))||16&t&&e.symbol&&14384&e.symbol.flags&&e.symbol.declarations||12583968&t)||3145728&e.flags&&!(1024&e.flags)&&!tN(e)&&$(e.types,eN));return 3899393&e.flags&&(e.objectFlags|=524288|(n?1048576:0)),n}function tN(e){if(e.aliasSymbol&&!e.aliasTypeArguments){const t=Hu(e.aliasSymbol,266);return!(!t||!uc(t.parent,e=>308===e.kind||268!==e.kind&&"quit"))}return!1}function nN(e,t,n=0){return!!(e===t||3145728&e.flags&&$(e.types,e=>nN(e,t,n))||n<3&&16777216&e.flags&&(nN(qx(e),t,n+1)||nN(Ux(e),t,n+1)))}function iN(e,t,n){const r=e.id+","+t.id+","+n.id;if(xi.has(r))return xi.get(r);const i=function(e,t,n){if(!(qm(e,Vt)||0!==Up(e).length&&oN(e)))return;if(OC(e)){const r=aN(uy(e)[0],t,n);if(!r)return;return Rv(r,LC(e))}if(rw(e)){const r=E(xb(e),e=>aN(e,t,n));if(!v(r,e=>!!e))return;return Gv(r,4&bp(t)?A(e.target.elementFlags,e=>2&e?1:e):e.target.elementFlags,e.target.readonly,e.target.labeledElementDeclarations)}const r=Js(1040,void 0);return r.source=e,r.mappedType=t,r.constraintType=n,r}(e,t,n);return xi.set(r,i),i}function oN(e){return!(262144&gx(e))||xN(e)&&$(Up(e),e=>oN(P_(e)))||rw(e)&&$(xb(e),oN)}function aN(e,t,n){const r=e.id+","+t.id+","+n.id;if(bi.has(r))return bi.get(r)||Ot;fo.push(e),mo.push(t);const i=go;let o;return CC(e,fo,fo.length,2)&&(go|=1),CC(t,mo,mo.length,2)&&(go|=2),3!==go&&(o=function(e,t,n){const r=Ax(n.type,rp(t)),i=_p(t),o=Gw(r);return yN([o],e,i),lN(o)||Ot}(e,t,n)),fo.pop(),mo.pop(),go=i,bi.set(r,o),o}function*sN(e,t,n,r){const i=Up(t);for(const t of i)if(!ed(t)&&(n||!(16777216&t.flags||48&rx(t)))){const n=pm(e,t.escapedName);if(n){if(r){const e=P_(t);if(109472&e.flags){const r=P_(n);1&r.flags||dk(r)===dk(e)||(yield t)}}}else yield t}}function cN(e,t,n,r){return me(sN(e,t,n,r))}function lN(e){return e.candidates?Pb(e.candidates,2):e.contraCandidates?Bb(e.contraCandidates):void 0}function _N(e){return!!da(e).skipDirectInference}function uN(e){return!(!e.symbol||!$(e.symbol.declarations,_N))}function dN(e,t){if(""===e)return!1;const n=+e;return isFinite(n)&&(!t||""+n===e)}function pN(e,t){if(1&t.flags)return!0;if(134217732&t.flags)return FS(e,t);if(268435456&t.flags){const n=[];for(;268435456&t.flags;)n.unshift(t.symbol),t=t.type;return we(n,(e,t)=>nx(t,e),e)===e&&pN(e,t)}return!1}function fN(e,t){if(2097152&t.flags)return v(t.types,t=>t===Pn||fN(e,t));if(4&t.flags||FS(e,t))return!0;if(128&e.flags){const n=e.value;return!!(8&t.flags&&dN(n,!1)||64&t.flags&&vT(n,!1)||98816&t.flags&&n===t.intrinsicName||268435456&t.flags&&pN(e,t)||134217728&t.flags&&gN(e,t))}if(134217728&e.flags){const n=e.texts;return 2===n.length&&""===n[0]&&""===n[1]&&FS(e.types[0],t)}return!1}function mN(e,t){return 128&e.flags?hN([e.value],l,t):134217728&e.flags?te(e.texts,t.texts)?E(e.types,(e,n)=>{return FS(ff(e),ff(t.types[n]))?e:402653317&(r=e).flags?r:ex(["",""],[r]);var r}):hN(e.texts,e.types,t):void 0}function gN(e,t){const n=mN(e,t);return!!n&&v(n,(e,n)=>fN(e,t.types[n]))}function hN(e,t,n){const r=e.length-1,i=e[0],o=e[r],a=n.texts,s=a.length-1,c=a[0],l=a[s];if(0===r&&i.length0){let t=d,r=p;for(;r=f(t).indexOf(n,r),!(r>=0);){if(t++,t===e.length)return;r=0}m(t,r),p+=n.length}else if(p{if(!(128&e.flags))return;const n=fc(e.value),r=Xo(4,n);r.links.type=wt,e.symbol&&(r.declarations=e.symbol.declarations,r.valueDeclaration=e.symbol.valueDeclaration),t.set(n,r)});const n=4&e.flags?[Ah(Vt,Nn,!1)]:l;return $s(void 0,t,l,l,n)}(t),a.type);else if(8388608&t.flags&&8388608&a.flags)p(t.objectType,a.objectType),p(t.indexType,a.indexType);else if(268435456&t.flags&&268435456&a.flags)t.symbol===a.symbol&&p(t.type,a.type);else if(33554432&t.flags)p(t.baseType,a),f(wy(t),a,4);else if(16777216&a.flags)m(t,a,w);else if(3145728&a.flags)S(t,a.types,a.flags);else if(1048576&t.flags){const e=t.types;for(const t of e)p(t,a)}else if(134217728&a.flags)!function(e,t){const n=mN(e,t),r=t.types;if(n||v(t.texts,e=>0===e.length))for(let e=0;ee|t.flags,0);if(!(4&r)){const n=t.value;296&r&&!dN(n,!0)&&(r&=-297),2112&r&&!vT(n,!0)&&(r&=-2113);const o=we(e,(e,i)=>i.flags&r?4&e.flags?e:4&i.flags?t:134217728&e.flags?e:134217728&i.flags&&gN(t,i)?t:268435456&e.flags?e:268435456&i.flags&&n===ox(i.symbol,n)?t:128&e.flags?e:128&i.flags&&i.value===n?i:8&e.flags?e:8&i.flags?mk(+n):32&e.flags?e:32&i.flags?mk(+n):256&e.flags?e:256&i.flags&&i.value===+n?i:64&e.flags?e:64&i.flags?gk(yT(n)):2048&e.flags?e:2048&i.flags&&gT(i.value)===n?i:16&e.flags?e:16&i.flags?"true"===n?Yt:"false"===n?Ht:sn:512&e.flags?e:512&i.flags&&i.intrinsicName===n?i:32768&e.flags?e:32768&i.flags&&i.intrinsicName===n?i:65536&e.flags?e:65536&i.flags&&i.intrinsicName===n?i:e:e,_n);if(!(131072&o.flags)){p(o,i);continue}}}}p(t,i)}}(t,a);else{if(Sp(t=Bf(t))&&Sp(a)&&m(t,a,D),!(512&r&&467927040&t.flags)){const e=Sf(t);if(e!==t&&!(2621440&e.flags))return p(e,a);t=e}2621440&t.flags&&m(t,a,F)}else h(uy(t),uy(a),IT(t.target))}}}function f(e,t,n){const i=r;r|=n,p(e,t),r=i}function m(e,t,n){const r=e.id+","+t.id,i=a&&a.get(r);if(void 0!==i)return void(u=Math.min(u,i));(a||(a=new Map)).set(r,-1);const o=u;u=2048;const l=d;(s??(s=[])).push(e),(c??(c=[])).push(t),CC(e,s,s.length,2)&&(d|=1),CC(t,c,c.length,2)&&(d|=2),3!==d?n(e,t):u=-1,c.pop(),s.pop(),d=l,a.set(r,u),u=Math.min(u,o)}function g(e,t,n){let r,i;for(const o of t)for(const t of e)n(t,o)&&(p(t,o),r=le(r,t),i=le(i,o));return[r?N(e,e=>!T(r,e)):e,i?N(t,e=>!T(i,e)):t]}function h(e,t,n){const r=e.length!!k(e));if(!e||t&&e!==t)return;t=e}return t}(t);return void(n&&f(e,n,1))}if(1===i&&!s){const e=O(o,(e,t)=>a[t]?void 0:e);if(e.length)return void p(Pb(e),n)}}else for(const n of t)k(n)?i++:p(e,n);if(2097152&n?1===i:i>0)for(const n of t)k(n)&&f(e,n,1)}function C(e,t,n){if(1048576&n.flags||2097152&n.flags){let r=!1;for(const i of n.types)r=C(e,t,i)||r;return r}if(4194304&n.flags){const r=k(n.type);if(r&&!r.isFixed&&!uN(e)){const i=iN(e,t,n);i&&f(i,r.typeParameter,262144&gx(e)?16:8)}return!0}if(262144&n.flags){f(Yb(e,e.pattern?2:0),n,32);const r=Vp(n);return r&&C(e,t,r)||p(Pb(K(E(Up(e),P_),E(Jm(e),e=>e!==ui?e.type:_n))),_p(t)),!0}return!1}function w(e,t){16777216&e.flags?(p(e.checkType,t.checkType),p(e.extendsType,t.extendsType),p(qx(e),qx(t)),p(Ux(e),Ux(t))):function(e,t,n,i){const o=r;r|=i,S(e,t,n),r=o}(e,[qx(t),Ux(t)],t.flags,i?64:0)}function D(e,t){p(ip(e),ip(t)),p(_p(e),_p(t));const n=op(e),r=op(t);n&&r&&p(n,r)}function F(e,t){var n,r;if(4&gx(e)&&4&gx(t)&&(e.target===t.target||OC(e)&&OC(t)))h(uy(e),uy(t),IT(e.target));else{if(Sp(e)&&Sp(t)&&D(e,t),32&gx(t)&&!t.declaration.nameType&&C(e,t,ip(t)))return;if(!function(e,t){return rw(e)&&rw(t)?function(e,t){return!(8&t.target.combinedFlags)&&t.target.minLength>e.target.minLength||!(12&t.target.combinedFlags)&&(!!(12&e.target.combinedFlags)||t.target.fixedLength(12&e)==(12&o.target.elementFlags[t])))){for(let t=0;t0){const e=mm(t,n),o=e.length;for(let t=0;t1){const t=N(e,kN);if(t.length){const n=Pb(t,2);return K(N(e,e=>!kN(e)),[n])}}return e}(e.candidates),r=function(e){const t=Hp(e);return!!t&&gj(16777216&t.flags?af(t):t,406978556)}(e.typeParameter)||rf(e.typeParameter),i=!r&&e.topLevel&&(e.isFixed||!function(e,t){const n=Hg(e);return n?!!n.type&&nN(n.type,t):nN(Gg(e),t)}(t,e.typeParameter)),o=r?A(n,dk):i?A(n,ZC):n;return jw(416&e.priority?Pb(o,2):IC(o))}(n,e.signature):void 0,a=n.contraCandidates?function(e){return 416&e.priority?Bb(e.contraCandidates):we(e.contraCandidates,(e,t)=>NS(t,e)?t:e)}(n):void 0;if(o||a){const t=o&&(!a||!(131073&o.flags)&&$(n.contraCandidates,e=>FS(o,e))&&v(e.inferences,e=>e!==n&&Hp(e.typeParameter)!==n.typeParameter||v(e.candidates,e=>FS(e,o))));r=t?o:a,i=t?a:o}else if(1&e.flags)r=dn;else{const i=yf(n.typeParameter);i&&(r=fS(i,tS(function(e,t){const n=e.inferences.slice(t);return Uk(E(n,e=>e.typeParameter),E(n,()=>Ot))}(e,t),e.nonFixingMapper)))}}else r=lN(n);n.inferredType=r||TN(!!(2&e.flags));const o=Hp(n.typeParameter);if(o){const t=fS(o,e.nonFixingMapper);r&&e.compareTypes(r,wd(t,r))||(n.inferredType=i&&e.compareTypes(i,wd(t,i))?i:t)}!function(){for(let e=Bi-1;e>=0;e--)Ri[e].clear()}()}return n.inferredType}function TN(e){return e?wt:Ot}function CN(e){const t=[];for(let n=0;npE(e)||fE(e)||qD(e)))}function FN(e,t,n,r){switch(e.kind){case 80:if(!uv(e)){const i=NN(e);return i!==xt?`${r?ZB(r):"-1"}|${kb(t)}|${kb(n)}|${eJ(i)}`:void 0}case 110:return`0|${r?ZB(r):"-1"}|${kb(t)}|${kb(n)}`;case 236:case 218:return FN(e.expression,t,n,r);case 167:const i=FN(e.left,t,n,r);return i&&`${i}.${e.right.escapedText}`;case 212:case 213:const o=PN(e);if(void 0!==o){const i=FN(e.expression,t,n,r);return i&&`${i}.${o}`}if(pF(e)&&aD(e.argumentExpression)){const i=NN(e.argumentExpression);if(TE(i)||CE(i)&&!oE(i)){const o=FN(e.expression,t,n,r);return o&&`${o}.@${eJ(i)}`}}break;case 207:case 208:case 263:case 219:case 220:case 175:return`${ZB(e)}#${kb(t)}`}}function EN(e,t){switch(t.kind){case 218:case 236:return EN(e,t.expression);case 227:return rb(t)&&EN(e,t.left)||NF(t)&&28===t.operatorToken.kind&&EN(e,t.right)}switch(e.kind){case 237:return 237===t.kind&&e.keywordToken===t.keywordToken&&e.name.escapedText===t.name.escapedText;case 80:case 81:return uv(e)?110===t.kind:80===t.kind&&NN(e)===NN(t)||(lE(t)||lF(t))&&Os(NN(e))===ks(t);case 110:return 110===t.kind;case 108:return 108===t.kind;case 236:case 218:case 239:return EN(e.expression,t);case 212:case 213:const n=PN(e);if(void 0!==n){const r=Sx(t)?PN(t):void 0;if(void 0!==r)return r===n&&EN(e.expression,t.expression)}if(pF(e)&&pF(t)&&aD(e.argumentExpression)&&aD(t.argumentExpression)){const n=NN(e.argumentExpression);if(n===NN(t.argumentExpression)&&(TE(n)||CE(n)&&!oE(n)))return EN(e.expression,t.expression)}break;case 167:return Sx(t)&&e.right.escapedText===PN(t)&&EN(e.left,t.expression);case 227:return NF(e)&&28===e.operatorToken.kind&&EN(e.right,t)}return!1}function PN(e){if(dF(e))return e.name.escapedText;if(pF(e))return jh((t=e).argumentExpression)?fc(t.argumentExpression.text):ab(t.argumentExpression)?function(e){const t=ts(e,111551,!0);if(!t||!(TE(t)||8&t.flags))return;const n=t.valueDeclaration;if(void 0===n)return;const r=g_(n);if(r){const e=AN(r);if(void 0!==e)return e}if(Pu(n)&&fa(n,e)){const e=Vm(n);if(e){const t=k_(n.parent)?wl(n):Qj(e);return t&&AN(t)}if(aP(n))return jp(n.name)}}(t.argumentExpression):void 0;var t;if(lF(e)){const t=Tl(e);return t?fc(t):void 0}return TD(e)?""+e.parent.parameters.indexOf(e):void 0}function AN(e){return 8192&e.flags?e.escapedName:384&e.flags?fc(""+e.value):void 0}function IN(e,t){for(;Sx(e);)if(EN(e=e.expression,t))return!0;return!1}function ON(e,t){for(;hl(e);)if(EN(e=e.expression,t))return!0;return!1}function LN(e,t){if(e&&1048576&e.flags){const n=Nf(e,t);if(n&&2&rx(n))return void 0===n.links.isDiscriminantProperty&&(n.links.isDiscriminantProperty=!(192&~n.links.checkFlags||xx(P_(n)))),!!n.links.isDiscriminantProperty}return!1}function jN(e,t){let n;for(const r of e)if(LN(t,r.escapedName)){if(n){n.push(r);continue}n=[r]}return n}function MN(e){const t=e.types;if(!(t.length<10||32768&gx(e)||w(t,e=>!!(59506688&e.flags))<10)){if(void 0===e.keyPropertyName){const n=d(t,e=>59506688&e.flags?d(Up(e),e=>KC(P_(e))?e.escapedName:void 0):void 0),r=n&&function(e,t){const n=new Map;let r=0;for(const i of e)if(61603840&i.flags){const e=el(i,t);if(e){if(!XC(e))return;let t=!1;bD(e,e=>{const r=kb(dk(e)),o=n.get(r);o?o!==Ot&&(n.set(r,Ot),t=!0):n.set(r,i)}),t||r++}}return r>=10&&2*r>=e.length?n:void 0}(t,n);e.keyPropertyName=r?n:"",e.constituentMap=r}return e.keyPropertyName.length?e.keyPropertyName:void 0}}function RN(e,t){var n;const r=null==(n=e.constituentMap)?void 0:n.get(kb(dk(t)));return r!==Ot?r:void 0}function BN(e,t){const n=MN(e),r=n&&el(t,n);return r&&RN(e,r)}function JN(e,t){return EN(e,t)||IN(e,t)}function VN(e,t){if(e.arguments)for(const n of e.arguments)if(JN(t,n)||ON(n,t))return!0;return!(212!==e.expression.kind||!JN(t,e.expression.expression))}function WN(e){return e.id<=0&&(e.id=VB,VB++),e.id}function $N(e){if(256&gx(e))return!1;const t=Cp(e);return!!(t.callSignatures.length||t.constructSignatures.length||t.members.get("bind")&&NS(e,Xn))}function HN(e,t){return GN(e,t)&t}function KN(e,t){return 0!==HN(e,t)}function GN(e,t){467927040&e.flags&&(e=pf(e)||Ot);const n=e.flags;if(268435460&n)return H?16317953:16776705;if(134217856&n){const t=128&n&&""===e.value;return H?t?12123649:7929345:t?12582401:16776705}if(40&n)return H?16317698:16776450;if(256&n){const t=0===e.value;return H?t?12123394:7929090:t?12582146:16776450}if(64&n)return H?16317188:16775940;if(2048&n){const t=lw(e);return H?t?12122884:7928580:t?12581636:16775940}return 16&n?H?16316168:16774920:528&n?H?e===Ht||e===Qt?12121864:7927560:e===Ht||e===Qt?12580616:16774920:524288&n?t&(H?83427327:83886079)?16&gx(e)&&GS(e)?H?83427327:83886079:$N(e)?H?7880640:16728e3:H?7888800:16736160:0:16384&n?9830144:32768&n?26607360:65536&n?42917664:12288&n?H?7925520:16772880:67108864&n?H?7888800:16736160:131072&n?0:1048576&n?we(e.types,(e,n)=>e|GN(n,t),0):2097152&n?function(e,t){const n=gj(e,402784252);let r=0,i=134217727;for(const o of e.types)if(!(n&&524288&o.flags)){const e=GN(o,t);r|=e,i&=e}return 8256&r|134209471&i}(e,t):83886079}function XN(e,t){return GD(e,e=>KN(e,t))}function QN(e,t){const n=ZN(XN(H&&2&e.flags?In:e,t));if(H)switch(t){case 524288:return YN(n,65536,131072,33554432,zt);case 1048576:return YN(n,131072,65536,16777216,jt);case 2097152:case 4194304:return nF(n,e=>KN(e,262144)?function(e){return ur||(ur=Vy("NonNullable",524288,void 0)||xt),ur!==xt?fy(ur,[e]):Bb([e,Nn])}(e):e)}return n}function YN(e,t,n,r,i){const o=HN(e,50528256);if(!(o&t))return e;const a=Pb([Nn,i]);return nF(e,e=>KN(e,t)?Bb([e,o&r||!KN(e,n)?Nn:a]):e)}function ZN(e){return e===In?Ot:e}function eD(e,t){return t?Pb([ml(e),Qj(t)]):e}function tD(e,t){var n;const r=Hb(t);if(!sC(r))return Et;const i=cC(r);return el(e,i)||rD(null==(n=og(e,i))?void 0:n.type)||Et}function nD(e,t){return KD(e,WC)&&function(e,t){return el(e,""+t)||(KD(e,rw)?sw(e,t,j.noUncheckedIndexedAccess?jt:void 0):void 0)}(e,t)||rD(SR(65,e,jt,void 0))||Et}function rD(e){return e&&j.noUncheckedIndexedAccess?Pb([e,Rt]):e}function iD(e){return Rv(SR(65,e,jt,void 0)||Et)}function oD(e){return 227===e.parent.kind&&e.parent.left===e||251===e.parent.kind&&e.parent.initializer===e}function cD(e){return tD(lD(e.parent),e.name)}function lD(e){const{parent:t}=e;switch(t.kind){case 250:return Vt;case 251:return kR(t)||Et;case 227:return function(e){return 210===e.parent.kind&&oD(e.parent)||304===e.parent.kind&&oD(e.parent.parent)?eD(lD(e),e.right):Qj(e.right)}(t);case 221:return jt;case 210:return function(e,t){return nD(lD(e),e.elements.indexOf(t))}(t,e);case 231:return function(e){return iD(lD(e.parent))}(t);case 304:return cD(t);case 305:return function(e){return eD(cD(e),e.objectAssignmentInitializer)}(t)}return Et}function _D(e){return da(e).resolvedType||Qj(e)}function uD(e){return 261===e.kind?function(e){return e.initializer?_D(e.initializer):250===e.parent.parent.kind?Vt:251===e.parent.parent.kind&&kR(e.parent.parent)||Et}(e):function(e){const t=e.parent,n=uD(t.parent);return eD(207===t.kind?tD(n,e.propertyName||e.name):e.dotDotDotToken?iD(n):nD(n,t.elements.indexOf(e)),e.initializer)}(e)}function dD(e){switch(e.kind){case 218:return dD(e.expression);case 227:switch(e.operatorToken.kind){case 64:case 76:case 77:case 78:return dD(e.left);case 28:return dD(e.right)}}return e}function pD(e){const{parent:t}=e;return 218===t.kind||227===t.kind&&64===t.operatorToken.kind&&t.left===e||227===t.kind&&28===t.operatorToken.kind&&t.right===e?pD(t):e}function fD(e){return 297===e.kind?dk(Qj(e.expression)):_n}function mD(e){const t=da(e);if(!t.switchTypes){t.switchTypes=[];for(const n of e.caseBlock.clauses)t.switchTypes.push(fD(n))}return t.switchTypes}function gD(e){if($(e.caseBlock.clauses,e=>297===e.kind&&!ju(e.expression)))return;const t=[];for(const n of e.caseBlock.clauses){const e=297===n.kind?n.expression.text:void 0;t.push(e&&!T(t,e)?e:void 0)}return t}function yD(e,t){return!!(e===t||131072&e.flags||1048576&t.flags&&function(e,t){if(1048576&e.flags){for(const n of e.types)if(!Sb(t.types,n))return!1;return!0}return!!(1056&e.flags&&hu(e)===t)||Sb(t.types,e)}(e,t))}function bD(e,t){return 1048576&e.flags?d(e.types,t):t(e)}function UD(e,t){return 1048576&e.flags?$(e.types,t):t(e)}function KD(e,t){return 1048576&e.flags?v(e.types,t):t(e)}function GD(e,t){if(1048576&e.flags){const n=e.types,r=N(n,t);if(r===n)return e;const i=e.origin;let o;if(i&&1048576&i.flags){const e=i.types,a=N(e,e=>!!(1048576&e.flags)||t(e));if(e.length-a.length===n.length-r.length){if(1===a.length)return a[0];o=Eb(1048576,a)}}return Ob(r,16809984&e.objectFlags,void 0,void 0,o)}return 131072&e.flags||t(e)?e:_n}function QD(e,t){return GD(e,e=>e!==t)}function ZD(e){return 1048576&e.flags?e.types.length:1}function nF(e,t,n){if(131072&e.flags)return e;if(!(1048576&e.flags))return t(e);const r=e.origin,i=r&&1048576&r.flags?r.types:e.types;let o,a=!1;for(const e of i){const r=1048576&e.flags?nF(e,t,n):t(e);a||(a=e!==r),r&&(o?o.push(r):o=[r])}return a?o&&Pb(o,n?0:1):e}function oF(e,t,n,r){return 1048576&e.flags&&n?Pb(E(e.types,t),1,n,r):nF(e,t)}function aF(e,t){return GD(e,e=>0!==(e.flags&t))}function hF(e,t){return gj(e,134217804)&&gj(t,402655616)?nF(e,e=>4&e.flags?aF(t,402653316):vx(e)&&!gj(t,402653188)?aF(t,128):8&e.flags?aF(t,264):64&e.flags?aF(t,2112):e):e}function xF(e){return 0===e.flags}function SF(e){return 0===e.flags?e.type:e}function wF(e,t){return t?{flags:0,type:131072&e.flags?dn:e}:e}function FF(e){return ht[e.id]||(ht[e.id]=function(e){const t=Js(256);return t.elementType=e,t}(e))}function EF(e,t){const n=Nw(QC(Zj(t)));return yD(n,e.elementType)?e:FF(Pb([e.elementType,n]))}function LF(e){return 256&gx(e)?(t=e).finalArrayType||(t.finalArrayType=131072&(n=t.elementType).flags?lr:Rv(1048576&n.flags?Pb(n.types,2):n)):e;var t,n}function jF(e){return 256&gx(e)?e.elementType:_n}function BF(e){const t=pD(e),n=t.parent,r=dF(n)&&("length"===n.name.escapedText||214===n.parent.kind&&aD(n.name)&&Xh(n.name)),i=213===n.kind&&n.expression===t&&227===n.parent.kind&&64===n.parent.operatorToken.kind&&n.parent.left===n&&!Qg(n.parent)&&hj(Qj(n.argumentExpression),296);return r||i}function JF(e,t){if(8752&(e=$a(e)).flags)return P_(e);if(7&e.flags){if(262144&rx(e)){const t=e.links.syntheticOrigin;if(t&&JF(t))return P_(e)}const r=e.valueDeclaration;if(r){if((lE(n=r)||ND(n)||wD(n)||TD(n))&&(fv(n)||Em(n)&&Eu(n)&&n.initializer&&RT(n.initializer)&&gv(n.initializer)))return P_(e);if(lE(r)&&251===r.parent.parent.kind){const e=r.parent.parent,t=zF(e.expression,void 0);if(t)return SR(e.awaitModifier?15:13,t,jt,void 0)}t&&aT(t,Rp(r,_a._0_needs_an_explicit_type_annotation,bc(e)))}}var n}function zF(e,t){if(!(67108864&e.flags))switch(e.kind){case 80:return JF(Os(NN(e)),t);case 110:return function(e){const t=em(e,!1,!1);if(r_(t)){const e=Eg(t);if(e.thisParameter)return JF(e.thisParameter)}if(u_(t.parent)){const e=ks(t.parent);return Dv(t)?P_(e):Au(e).thisType}}(e);case 108:return MP(e);case 212:{const n=zF(e.expression,t);if(n){const r=e.name;let i;if(sD(r)){if(!n.symbol)return;i=pm(n,Vh(n.symbol,r.escapedText))}else i=pm(n,r.escapedText);return i&&JF(i,t)}return}case 218:return zF(e.expression,t)}}function UF(e){const t=da(e);let n=t.effectsSignature;if(void 0===n){let r;NF(e)?r=xj(wI(e.right)):245===e.parent.kind?r=zF(e.expression,void 0):108!==e.expression.kind&&(r=hl(e)?AI(bw(eM(e.expression),e.expression),e.expression):wI(e.expression));const i=mm(r&&Sf(r)||Ot,0),o=1!==i.length||i[0].typeParameters?$(i,$F)?aL(e):void 0:i[0];n=t.effectsSignature=o&&$F(o)?o:ci}return n===ci?void 0:n}function $F(e){return!!(Hg(e)||e.declaration&&131072&(Zg(e.declaration)||Ot).flags)}function GF(e){const t=eE(e,!1);return ti=e,ni=t,t}function XF(e){const t=ah(e,!0);return 97===t.kind||227===t.kind&&(56===t.operatorToken.kind&&(XF(t.left)||XF(t.right))||57===t.operatorToken.kind&&XF(t.left)&&XF(t.right))}function eE(e,t){for(;;){if(e===ti)return ni;const n=e.flags;if(4096&n){if(!t){const t=WN(e),n=oo[t];return void 0!==n?n:oo[t]=eE(e,!0)}t=!1}if(368&n)e=e.antecedent;else if(512&n){const t=UF(e.node);if(t){const n=Hg(t);if(n&&3===n.kind&&!n.type){const t=e.node.arguments[n.parameterIndex];if(t&&XF(t))return!1}if(131072&Gg(t).flags)return!1}e=e.antecedent}else{if(4&n)return $(e.antecedent,e=>eE(e,!1));if(8&n){const t=e.antecedent;if(void 0===t||0===t.length)return!1;e=t[0]}else{if(!(128&n)){if(1024&n){ti=void 0;const t=e.node.target,n=t.antecedent;t.antecedent=e.node.antecedents;const r=eE(e.antecedent,!1);return t.antecedent=n,r}return!(1&n)}{const t=e.node;if(t.clauseStart===t.clauseEnd&&rj(t.switchStatement))return!1;e=e.antecedent}}}}}function tE(e,t){for(;;){const n=e.flags;if(4096&n){if(!t){const t=WN(e),n=ao[t];return void 0!==n?n:ao[t]=tE(e,!0)}t=!1}if(496&n)e=e.antecedent;else if(512&n){if(108===e.node.expression.kind)return!0;e=e.antecedent}else{if(4&n)return v(e.antecedent,e=>tE(e,!1));if(!(8&n)){if(1024&n){const t=e.node.target,n=t.antecedent;t.antecedent=e.node.antecedents;const r=tE(e.antecedent,!1);return t.antecedent=n,r}return!!(1&n)}e=e.antecedent[0]}}}function nE(e){switch(e.kind){case 110:return!0;case 80:if(!uv(e)){const t=NN(e);return TE(t)||CE(t)&&!oE(t)||!!t.valueDeclaration&&vF(t.valueDeclaration)}break;case 212:case 213:return nE(e.expression)&&_j(da(e).resolvedSymbol||xt);case 207:case 208:const t=Yh(e.parent);return TD(t)||MT(t)?!sE(t):lE(t)&&Az(t)}return!1}function rE(e,t,n=t,r,i=(t=>null==(t=tt(e,Og))?void 0:t.flowNode)()){let o,a=!1,s=0;if(wi)return Et;if(!i)return t;Ni++;const c=Ci,l=SF(d(i));Ci=c;const _=256&gx(l)&&BF(e)?lr:LF(l);return _===fn||e.parent&&236===e.parent.kind&&!(131072&_.flags)&&131072&XN(_,2097152).flags?t:_;function u(){return a?o:(a=!0,o=FN(e,t,n,r))}function d(i){var o;if(2e3===s)return null==(o=Hn)||o.instant(Hn.Phase.CheckTypes,"getTypeAtFlowNode_DepthLimit",{flowId:i.id}),wi=!0,function(e){const t=uc(e,l_),n=vd(e),r=Gp(n,t.statements.pos);ho.add(Gx(n,r.start,r.length,_a.The_containing_function_or_module_body_is_too_large_for_control_flow_analysis))}(e),Et;let a;for(s++;;){const o=i.flags;if(4096&o){for(let e=c;efunction(e,t){if(!(1048576&e.flags))return FS(e,t);for(const n of e.types)if(FS(n,t))return!0;return!1}(t,e)),r=512&t.flags&&pk(t)?nF(n,uk):n;return FS(t,r)?r:e}(e,t))}(e,p(n)):e}if(IN(e,r)){if(!GF(n))return fn;if(lE(r)&&(Em(r)||Az(r))){const e=Wm(r);if(e&&(219===e.kind||220===e.kind))return d(n.antecedent)}return t}if(lE(r)&&250===r.parent.parent.kind&&(EN(e,r.parent.parent.expression)||ON(r.parent.parent.expression,e)))return DI(LF(SF(d(n.antecedent))))}function m(e,t){const n=ah(t,!0);if(97===n.kind)return fn;if(227===n.kind){if(56===n.operatorToken.kind)return m(m(e,n.left),n.right);if(57===n.operatorToken.kind)return Pb([m(e,n.left),m(e,n.right)])}return Q(e,n,!0)}function g(e){const t=UF(e.node);if(t){const n=Hg(t);if(n&&(2===n.kind||3===n.kind)){const t=d(e.antecedent),r=LF(SF(t)),i=n.type?X(r,n,e.node,!0):3===n.kind&&n.parameterIndex>=0&&n.parameterIndex298===e.kind);if(n===r||o>=n&&oHN(e,t)===t)}return Pb(E(i.slice(n,r),t=>t?U(e,t):_n))}(i,t.node);else if(112===n.kind)i=function(e,{switchStatement:t,clauseStart:n,clauseEnd:r}){const i=k(t.caseBlock.clauses,e=>298===e.kind),o=n===r||i>=n&&i297===t.kind?Q(e,t.expression,!0):_n))}(i,t.node);else{H&&(ON(n,e)?i=z(i,t.node,e=>!(163840&e.flags)):222===n.kind&&ON(n.expression,e)&&(i=z(i,t.node,e=>!(131072&e.flags||128&e.flags&&"undefined"===e.value))));const r=D(n,i);r&&(i=function(e,t,n){if(n.clauseStartRN(e,t)||Ot));if(t!==Ot)return t}return F(e,t,e=>q(e,n))}(i,r,t.node))}return wF(i,xF(r))}function S(e){const r=[];let i,o=!1,a=!1;for(const s of e.antecedent){if(!i&&128&s.flags&&s.node.clauseStart===s.node.clauseEnd){i=s;continue}const e=d(s),c=SF(e);if(c===t&&t===n)return c;ce(r,c),yD(c,n)||(o=!0),xF(e)&&(a=!0)}if(i){const e=d(i),s=SF(e);if(!(131072&s.flags||T(r,s)||rj(i.node.switchStatement))){if(s===t&&t===n)return s;r.push(s),yD(s,n)||(o=!0),xF(e)&&(a=!0)}}return wF(N(r,o?2:1),a)}function w(e){const r=WN(e),i=Zi[r]||(Zi[r]=new Map),o=u();if(!o)return t;const a=i.get(o);if(a)return a;for(let t=Si;t{const t=rl(e,r)||Ot;return!(131072&t.flags)&&!(131072&s.flags)&&AS(s,t)})}function P(e,t,n,r,i){if((37===n||38===n)&&1048576&e.flags){const o=MN(e);if(o&&o===PN(t)){const t=RN(e,Qj(r));if(t)return n===(i?37:38)?t:KC(el(t,o)||Ot)?QD(e,t):e}}return F(e,t,e=>R(e,n,r,i))}function I(t,n,r){if(EN(e,n))return QN(t,r?4194304:8388608);H&&r&&ON(n,e)&&(t=QN(t,2097152));const i=D(n,t);return i?F(t,i,e=>XN(e,r?4194304:8388608)):t}function O(e,t,n){const r=pm(e,t);return r?!!(16777216&r.flags||48&rx(r))||n:!!og(e,t)||!n}function L(e,t,n,r,i){return Q(e,t,i=i!==(112===n.kind)!=(38!==r&&36!==r))}function j(t,n,r){switch(n.operatorToken.kind){case 64:case 76:case 77:case 78:return I(Q(t,n.right,r),n.left,r);case 35:case 36:case 37:case 38:const i=n.operatorToken.kind,o=dD(n.left),a=dD(n.right);if(222===o.kind&&ju(a))return B(t,o,i,a,r);if(222===a.kind&&ju(o))return B(t,a,i,o,r);if(EN(e,o))return R(t,i,a,r);if(EN(e,a))return R(t,i,o,r);H&&(ON(o,e)?t=M(t,i,a,r):ON(a,e)&&(t=M(t,i,o,r)));const s=D(o,t);if(s)return P(t,s,i,a,r);const c=D(a,t);if(c)return P(t,c,i,o,r);if(W(o))return $(t,i,a,r);if(W(a))return $(t,i,o,r);if(a_(a)&&!Sx(o))return L(t,o,a,i,r);if(a_(o)&&!Sx(a))return L(t,a,o,i,r);break;case 104:return function(t,n,r){const i=dD(n.left);if(!EN(e,i))return r&&H&&ON(i,e)?QN(t,2097152):t;const o=Qj(n.right);if(!ES(o,Gn))return t;const a=UF(n),s=a&&Hg(a);if(s&&1===s.kind&&0===s.parameterIndex)return G(t,s.type,r,!0);if(!ES(o,Xn))return t;const c=nF(o,K);return(!il(t)||c!==Gn&&c!==Xn)&&(r||524288&c.flags&&!XS(c))?G(t,c,r,!0):t}(t,n,r);case 103:if(sD(n.left))return function(t,n,r){const i=dD(n.right);if(!EN(e,i))return t;un.assertNode(n.left,sD);const o=RI(n.left);if(void 0===o)return t;const a=o.parent;return G(t,Fv(un.checkDefined(o.valueDeclaration,"should always have a declaration"))?P_(a):Au(a),r,!0)}(t,n,r);const l=dD(n.right);if(Sw(t)&&Sx(e)&&EN(e.expression,l)){const i=Qj(n.left);if(sC(i)&&PN(e)===cC(i))return XN(t,r?524288:65536)}if(EN(e,l)){const e=Qj(n.left);if(sC(e))return function(e,t,n){const r=cC(t);if(UD(e,e=>O(e,r,!0)))return GD(e,e=>O(e,r,n));if(n){const n=($r||($r=Uy("Record",2,!0)||xt),$r===xt?void 0:$r);if(n)return Bb([e,fy(n,[t,Ot])])}return e}(t,e,r)}break;case 28:return Q(t,n.right,r);case 56:return r?Q(Q(t,n.left,!0),n.right,!0):Pb([Q(t,n.left,!1),Q(t,n.right,!1)]);case 57:return r?Pb([Q(t,n.left,!0),Q(t,n.right,!0)]):Q(Q(t,n.left,!1),n.right,!1)}return t}function M(e,t,n,r){const i=35===t||37===t,o=35===t||36===t?98304:32768,a=Qj(n);return i!==r&&KD(a,e=>!!(e.flags&o))||i===r&&KD(a,e=>!(e.flags&(3|o)))?QN(e,2097152):e}function R(e,t,n,r){if(1&e.flags)return e;36!==t&&38!==t||(r=!r);const i=Qj(n),o=35===t||36===t;if(98304&i.flags)return H?QN(e,o?r?262144:2097152:65536&i.flags?r?131072:1048576:r?65536:524288):e;if(r){if(!o&&(2&e.flags||UD(e,XS))){if(469893116&i.flags||XS(i))return i;if(524288&i.flags)return mn}return hF(GD(e,e=>{return AS(e,i)||o&&(t=i,!!(524&e.flags)&&!!(28&t.flags));var t}),i)}return KC(i)?GD(e,e=>!(GC(e)&&AS(e,i))):e}function B(t,n,r,i,o){36!==r&&38!==r||(o=!o);const a=dD(n.expression);if(!EN(e,a)){H&&ON(a,e)&&o===("undefined"!==i.text)&&(t=QN(t,2097152));const n=D(a,t);return n?F(t,n,e=>J(e,i,o)):t}return J(t,i,o)}function J(e,t,n){return n?U(e,t.text):QN(e,$B.get(t.text)||32768)}function z(e,{switchStatement:t,clauseStart:n,clauseEnd:r},i){return n!==r&&v(mD(t).slice(n,r),i)?XN(e,2097152):e}function q(e,{switchStatement:t,clauseStart:n,clauseEnd:r}){const i=mD(t);if(!i.length)return e;const o=i.slice(n,r),a=n===r||T(o,_n);if(2&e.flags&&!a){let t;for(let n=0;nAS(s,e)),s);if(!a)return c;const l=GD(e,e=>!(GC(e)&&T(i,32768&e.flags?jt:dk(function(e){return 2097152&e.flags&&b(e.types,KC)||e}(e)))));return 131072&c.flags?l:Pb([c,l])}function U(e,t){switch(t){case"string":return V(e,Vt,1);case"number":return V(e,Wt,2);case"bigint":return V(e,$t,4);case"boolean":return V(e,sn,8);case"symbol":return V(e,cn,16);case"object":return 1&e.flags?e:Pb([V(e,mn,32),V(e,zt,131072)]);case"function":return 1&e.flags?e:V(e,Xn,64);case"undefined":return V(e,jt,65536)}return V(e,mn,128)}function V(e,t,n){return nF(e,e=>iT(e,t,Co)?KN(e,n)?e:_n:NS(t,e)?t:KN(e,n)?Bb([e,t]):_n)}function W(t){return(dF(t)&&"constructor"===gc(t.name)||pF(t)&&ju(t.argumentExpression)&&"constructor"===t.argumentExpression.text)&&EN(e,t.expression)}function $(e,t,n,r){if(r?35!==t&&37!==t:36!==t&&38!==t)return e;const i=Qj(n);if(!JJ(i)&&!tu(i))return e;const o=pm(i,"prototype");if(!o)return e;const a=P_(o),s=il(a)?void 0:a;return s&&s!==Gn&&s!==Xn?il(e)?s:GD(e,e=>{return n=s,524288&(t=e).flags&&1&gx(t)||524288&n.flags&&1&gx(n)?t.symbol===n.symbol:NS(t,n);var t,n}):e}function K(e){const t=el(e,"prototype");if(t&&!il(t))return t;const n=mm(e,1);return n.length?Pb(E(n,e=>Gg(wh(e)))):Nn}function G(e,t,n,r){const i=1048576&e.flags?`N${kb(e)},${kb(t)},${(n?1:0)|(r?2:0)}`:void 0;return Oo(i)??Lo(i,function(e,t,n,r){if(!n){if(e===t)return _n;if(r)return GD(e,e=>!ES(e,t));const n=G(e=2&e.flags?In:e,t,!0,!1);return ZN(GD(e,e=>!yD(e,n)))}if(3&e.flags)return t;if(e===t)return t;const i=r?ES:NS,o=1048576&e.flags?MN(e):void 0,a=nF(t,t=>{const n=o&&el(t,o),a=nF(n&&RN(e,n)||e,r?e=>ES(e,t)?e:ES(t,e)?t:_n:e=>DS(e,t)?e:DS(t,e)?t:NS(e,t)?e:NS(t,e)?t:_n);return 131072&a.flags?nF(e,e=>gj(e,465829888)&&i(t,pf(e)||Ot)?Bb([e,t]):_n):a});return 131072&a.flags?NS(t,e)?t:FS(e,t)?e:FS(t,e)?t:Bb([e,t]):a}(e,t,n,r))}function X(t,n,r,i){if(n.type&&(!il(t)||n.type!==Gn&&n.type!==Xn)){const o=function(e,t){if(1===e.kind||3===e.kind)return t.arguments[e.parameterIndex];const n=ah(t.expression);return Sx(n)?ah(n.expression):void 0}(n,r);if(o){if(EN(e,o))return G(t,n.type,i,!1);H&&ON(o,e)&&(i&&!KN(n.type,65536)||!i&&KD(n.type,NI))&&(t=QN(t,2097152));const r=D(o,t);if(r)return F(t,r,e=>G(e,n.type,i,!1))}}return t}function Q(t,n,r){if(vl(n)||NF(n.parent)&&(61===n.parent.operatorToken.kind||78===n.parent.operatorToken.kind)&&n.parent.left===n)return function(t,n,r){if(EN(e,n))return QN(t,r?2097152:262144);const i=D(n,t);return i?F(t,i,e=>XN(e,r?2097152:262144)):t}(t,n,r);switch(n.kind){case 80:if(!EN(e,n)&&C<5){const i=NN(n);if(TE(i)){const n=i.valueDeclaration;if(n&&lE(n)&&!n.type&&n.initializer&&nE(e)){C++;const e=Q(t,n.initializer,r);return C--,e}}}case 110:case 108:case 212:case 213:return I(t,n,r);case 214:return function(t,n,r){if(VN(n,e)){const e=r||!gl(n)?UF(n):void 0,i=e&&Hg(e);if(i&&(0===i.kind||1===i.kind))return X(t,i,n,r)}if(Sw(t)&&Sx(e)&&dF(n.expression)){const i=n.expression;if(EN(e.expression,dD(i.expression))&&aD(i.name)&&"hasOwnProperty"===i.name.escapedText&&1===n.arguments.length){const i=n.arguments[0];if(ju(i)&&PN(e)===fc(i.text))return XN(t,r?524288:65536)}}return t}(t,n,r);case 218:case 236:case 239:return Q(t,n.expression,r);case 227:return j(t,n,r);case 225:if(54===n.operator)return Q(t,n.operand,!r)}return t}}function iE(e){return uc(e.parent,e=>r_(e)&&!om(e)||269===e.kind||308===e.kind||173===e.kind)}function oE(e){return!aE(e,void 0)}function aE(e,t){const n=uc(e.valueDeclaration,yE);if(!n)return!1;const r=da(n);return 131072&r.flags||(r.flags|=131072,uc(n.parent,e=>yE(e)&&!!(131072&da(e).flags))||SE(n)),!e.lastAssignmentPos||t&&Math.abs(e.lastAssignmentPos)233!==e.kind&&cE(e.name))}function yE(e){return o_(e)||sP(e)}function SE(e){switch(e.kind){case 80:const t=Xg(e);if(0!==t){const n=NN(e),r=1===t||void 0!==n.lastAssignmentPos&&n.lastAssignmentPos<0;if(CE(n)){if(void 0===n.lastAssignmentPos||Math.abs(n.lastAssignmentPos)!==Number.MAX_VALUE){const t=uc(e,yE),r=uc(n.valueDeclaration,yE);n.lastAssignmentPos=t===r?function(e,t){let n=e.pos;for(;e&&e.pos>t.pos;){switch(e.kind){case 244:case 245:case 246:case 247:case 248:case 249:case 250:case 251:case 255:case 256:case 259:case 264:n=e.end}e=e.parent}return n}(e,n.valueDeclaration):Number.MAX_VALUE}r&&n.lastAssignmentPos>0&&(n.lastAssignmentPos*=-1)}}return;case 282:const n=e.parent.parent,r=e.propertyName||e.name;if(!e.isTypeOnly&&!n.isTypeOnly&&!n.moduleSpecifier&&11!==r.kind){const e=ts(r,111551,!0,!0);if(e&&CE(e)){const t=void 0!==e.lastAssignmentPos&&e.lastAssignmentPos<0?-1:1;e.lastAssignmentPos=t*Number.MAX_VALUE}}return;case 265:case 266:case 267:return}b_(e)||XI(e,SE)}function TE(e){return 3&e.flags&&!!(6&hI(e))}function CE(e){const t=e.valueDeclaration&&Yh(e.valueDeclaration);return!!t&&(TD(t)||lE(t)&&(nP(t.parent)||NE(t)))}function NE(e){return!!(1&e.parent.flags)&&!(32&ic(e)||244===e.parent.parent.kind&&Yp(e.parent.parent.parent))}function DE(e){return 2097152&e.flags?$(e.types,DE):!!(465829888&e.flags&&1146880&ff(e).flags)}function EE(e){return 2097152&e.flags?$(e.types,EE):!(!(465829888&e.flags)||gj(ff(e),98304))}function jE(e,t,n){Sy(e)&&(e=e.baseType);const r=!(n&&2&n)&&UD(e,DE)&&(function(e,t){const n=t.parent;return 212===n.kind||167===n.kind||214===n.kind&&n.expression===t||215===n.kind&&n.expression===t||213===n.kind&&n.expression===t&&!(UD(e,EE)&&Cx(Qj(n.argumentExpression)))}(e,t)||function(e,t){const n=(aD(e)||dF(e)||pF(e))&&!((UE(e.parent)||qE(e.parent))&&e.parent.tagName===e)&&xA(e,t&&32&t?8:void 0);return n&&!xx(n)}(t,n));return r?nF(e,ff):e}function ME(e){return!!uc(e,e=>{const t=e.parent;return void 0===t?"quit":AE(t)?t.expression===e&&ab(e):!!LE(t)&&(t.name===e||t.propertyName===e)})}function RE(e,t,n,r){if(Re&&(!(33554432&e.flags)||wD(e)||ND(e)))switch(t){case 1:return BE(e);case 2:return VE(e,n,r);case 3:return HE(e);case 4:return QE(e);case 5:return ZE(e);case 6:return eP(e);case 7:return cP(e);case 8:return dP(e);case 0:if(aD(e)&&(bm(e)||iP(e.parent)||bE(e.parent)&&e.parent.moduleReference===e)&&NP(e)){if(I_(e.parent)&&(dF(e.parent)?e.parent.expression:e.parent.left)!==e)return;return void BE(e)}if(I_(e)){let t=e;for(;I_(t);){if(wf(t))return;t=t.parent}return VE(e)}if(AE(e))return HE(e);if(bu(e)||$E(e))return QE(e);if(bE(e))return Nm(e)||kB(e)?eP(e):void 0;if(LE(e))return cP(e);if((o_(e)||DD(e))&&ZE(e),!j.emitDecoratorMetadata)return;if(!(SI(e)&&Lv(e)&&e.modifiers&&dm(J,e,e.parent,e.parent.parent)))return;return dP(e);default:un.assertNever(t,`Unhandled reference hint: ${t}`)}}function BE(e){const t=NN(e);t&&t!==Le&&t!==xt&&!uv(e)&&pP(t,e)}function VE(e,t,n){const r=dF(e)?e.expression:e.left;if(lv(r)||!aD(r))return;const i=NN(r);if(!i||i===xt)return;if(kk(j)||Fk(j)&&ME(e))return void pP(i,e);const o=n||Ij(r);if(il(o)||o===dn)return void pP(i,e);let a=t;if(!a&&!n){const t=dF(e)?e.name:e.right,n=sD(t)&&MI(t.escapedText,t),r=Sf(0!==Xg(e)||jI(e)?jw(o):o);a=sD(t)?n&&BI(r,n)||void 0:pm(r,t.escapedText)}a&&(EJ(a)||8&a.flags&&307===e.parent.kind)||pP(i,e)}function HE(e){if(aD(e.expression)){const t=e.expression,n=Os(ts(t,-1,!0,!0,e));n&&pP(n,t)}}function QE(e){if(!nI(e)){const t=ho&&2===j.jsx?_a.This_JSX_tag_requires_0_to_be_in_scope_but_it_could_not_be_found:void 0,n=jo(e),r=bu(e)?e.tagName:e,i=1!==j.jsx&&3!==j.jsx;let o;if($E(e)&&"null"===n||(o=Ue(r,n,i?111551:111167,t,!0)),o&&(o.isReferenced=-1,Re&&2097152&o.flags&&!Ya(o)&&fP(o)),$E(e)){const n=UJ(vd(e));if(n){const e=sb(n).escapedText;Ue(r,e,i?111551:111167,t,!0)}}}}function ZE(e){if(M<2&&2&Oh(e)){gP((t=gv(e))&&_m(t),!1)}var t}function eP(e){Nv(e,32)&&mP(e)}function cP(e){if(!e.parent.parent.moduleSpecifier&&!e.isTypeOnly&&!e.parent.parent.isTypeOnly){const t=e.propertyName||e.name;if(11===t.kind)return;const n=Ue(t,t.escapedText,2998271,void 0,!0);if(n&&(n===De||n===Fe||n.declarations&&Yp(Zc(n.declarations[0]))));else{const r=n&&(2097152&n.flags?Ha(n):n);(!r||111551&Ka(r))&&(mP(e),BE(t))}return}}function dP(e){if(j.emitDecoratorMetadata){const t=b(e.modifiers,CD);if(!t)return;switch(HJ(t,16),e.kind){case 264:const t=iv(e);if(t)for(const e of t.parameters)vP(JM(e));break;case 178:case 179:const n=178===e.kind?179:178,r=Hu(ks(e),n);vP(h_(e)||r&&h_(r));break;case 175:for(const t of e.parameters)vP(JM(t));vP(gv(e));break;case 173:vP(fv(e));break;case 170:vP(JM(e));const i=e.parent;for(const e of i.parameters)vP(JM(e));vP(gv(i))}}}function pP(e,t){if(Re&&Wa(e,111551)&&!_v(t)){const n=Ha(e);1160127&Ka(e,!0)&&(kk(j)||Fk(j)&&ME(t)||!EJ(Os(n)))&&fP(e)}}function fP(e){un.assert(Re);const t=ua(e);if(!t.referenced){t.referenced=!0;const n=Ca(e);if(!n)return un.fail();Nm(n)&&111551&Ka($a(e))&&BE(sb(n.moduleReference))}}function mP(e){const t=ks(e),n=Ha(t);n&&(n===xt||111551&Ka(t,!0)&&!EJ(n))&&fP(t)}function gP(e,t){if(!e)return;const n=sb(e),r=2097152|(80===e.kind?788968:1920),i=Ue(n,n.escapedText,r,void 0,!0);if(i&&2097152&i.flags)if(Re&&Ls(i)&&!EJ(Ha(i))&&!Ya(i))fP(i);else if(t&&kk(j)&&vk(j)>=5&&!Ls(i)&&!$(i.declarations,zl)){const t=zo(e,_a.A_type_referenced_in_a_decorated_signature_must_be_imported_with_import_type_or_a_namespace_import_when_isolatedModules_and_emitDecoratorMetadata_are_enabled),r=b(i.declarations||l,wa);r&&aT(t,Rp(r,_a._0_was_imported_here,gc(n)))}}function vP(e){const t=RM(e);t&&e_(t)&&gP(t,!0)}function kP(e,t){if(uv(e))return;if(t===Le){if(VI(e,!0))return void zo(e,_a.arguments_cannot_be_referenced_in_property_initializers_or_class_static_initialization_blocks);let t=Kf(e);if(t)for(M<2&&(220===t.kind?zo(e,_a.The_arguments_object_cannot_be_referenced_in_an_arrow_function_in_ES5_Consider_using_a_standard_function_expression):Nv(t,1024)&&zo(e,_a.The_arguments_object_cannot_be_referenced_in_an_async_function_or_method_in_ES5_Consider_using_a_standard_function_or_method)),da(t).flags|=512;t&&bF(t);)t=Kf(t),t&&(da(t).flags|=512);return}const n=Os(t),r=CB(n,e);Ho(r)&&dx(e,r)&&r.declarations&&Go(e,r.declarations,e.escapedText);const i=n.valueDeclaration;if(i&&32&n.flags&&u_(i)&&i.name!==e){let t=em(e,!1,!1);for(;308!==t.kind&&t.parent!==i;)t=em(t,!1,!1);308!==t.kind&&(da(i).flags|=262144,da(t).flags|=262144,da(e).flags|=536870912)}!function(e,t){if(M>=2||!(34&t.flags)||!t.valueDeclaration||sP(t.valueDeclaration)||300===t.valueDeclaration.parent.kind)return;const n=Ep(t.valueDeclaration),r=function(e,t){return!!uc(e,e=>e===t?"quit":r_(e)||e.parent&&ND(e.parent)&&!Fv(e.parent)&&e.parent.initializer===e)}(e,n),i=DP(n);if(i){if(r){let r=!0;if(QF(n)){const i=Th(t.valueDeclaration,262);if(i&&i.parent===n){const i=function(e,t){return uc(e,e=>e===t?"quit":e===t.initializer||e===t.condition||e===t.incrementor||e===t.statement)}(e.parent,n);if(i){const e=da(i);e.flags|=8192,ce(e.capturedBlockScopeBindings||(e.capturedBlockScopeBindings=[]),t),i===n.initializer&&(r=!1)}}}r&&(da(i).flags|=4096)}if(QF(n)){const r=Th(t.valueDeclaration,262);r&&r.parent===n&&function(e,t){let n=e;for(;218===n.parent.kind;)n=n.parent;let r=!1;if(Qg(n))r=!0;else if(225===n.parent.kind||226===n.parent.kind){const e=n.parent;r=46===e.operator||47===e.operator}return!!r&&!!uc(n,e=>e===t?"quit":e===t.statement)}(e,n)&&(da(t.valueDeclaration).flags|=65536)}da(t.valueDeclaration).flags|=32768}r&&(da(t.valueDeclaration).flags|=16384)}(e,t)}function SP(e,t){if(uv(e))return OP(e);const n=NN(e);if(n===xt)return Et;if(kP(e,n),n===Le)return VI(e)?Et:P_(n);NP(e)&&RE(e,1);const r=Os(n);let i=r.valueDeclaration;const o=i;if(i&&209===i.kind&&T(Ii,i.parent)&&uc(e,e=>e===i.parent))return At;let a=function(e,t){var n;const r=P_(e),i=e.valueDeclaration;if(i){if(lF(i)&&!i.initializer&&!i.dotDotDotToken&&i.parent.elements.length>=2){const e=i.parent.parent,n=Yh(e);if(261===n.kind&&6&Pz(n)||170===n.kind){const r=da(e);if(!(4194304&r.flags)){r.flags|=4194304;const o=cl(e,0),a=o&&nF(o,ff);if(r.flags&=-4194305,a&&1048576&a.flags&&(170!==n.kind||!sE(n))){const e=rE(i.parent,a,a,void 0,t.flowNode);return 131072&e.flags?_n:Dl(i,e,!0)}}}}if(TD(i)&&!i.type&&!i.initializer&&!i.dotDotDotToken){const e=i.parent;if(e.parameters.length>=2&&xS(e)){const r=jA(e);if(r&&1===r.parameters.length&&aJ(r)){const o=Tf(fS(P_(r.parameters[0]),null==(n=PA(e))?void 0:n.nonFixingMapper));if(1048576&o.flags&&KD(o,rw)&&!$(e.parameters,sE))return Ax(rE(e,o,o,void 0,t.flowNode),mk(e.parameters.indexOf(i)-(sv(e)?1:0)))}}}}return r}(r,e);const s=Xg(e);if(s){if(!(3&r.flags||Em(e)&&512&r.flags))return zo(e,384&r.flags?_a.Cannot_assign_to_0_because_it_is_an_enum:32&r.flags?_a.Cannot_assign_to_0_because_it_is_a_class:1536&r.flags?_a.Cannot_assign_to_0_because_it_is_a_namespace:16&r.flags?_a.Cannot_assign_to_0_because_it_is_a_function:2097152&r.flags?_a.Cannot_assign_to_0_because_it_is_an_import:_a.Cannot_assign_to_0_because_it_is_not_a_variable,bc(n)),Et;if(_j(r))return 3&r.flags?zo(e,_a.Cannot_assign_to_0_because_it_is_a_constant,bc(n)):zo(e,_a.Cannot_assign_to_0_because_it_is_a_read_only_property,bc(n)),Et}const c=2097152&r.flags;if(3&r.flags){if(1===s)return Yg(e)?QC(a):a}else{if(!c)return a;i=Ca(n)}if(!i)return a;a=jE(a,e,t);const l=170===Yh(i).kind,_=iE(i);let u=iE(e);const d=u!==_,p=e.parent&&e.parent.parent&&oP(e.parent)&&oD(e.parent.parent),f=134217728&n.flags,m=a===Nt||a===lr,g=m&&236===e.parent.kind;for(;u!==_&&(219===u.kind||220===u.kind||zf(u))&&(TE(r)&&a!==lr||CE(r)&&aE(r,e));)u=iE(u);const h=o&&lE(o)&&!o.initializer&&!o.exclamationToken&&NE(o)&&!function(e){return(void 0!==e.lastAssignmentPos||oE(e)&&void 0!==e.lastAssignmentPos)&&e.lastAssignmentPos<0}(n),y=l||c||d&&!h||p||f||function(e,t){if(lF(t)){const n=uc(e,lF);return n&&Yh(n)===Yh(t)}}(e,i)||a!==Nt&&a!==lr&&(!H||!!(16387&a.flags)||_v(e)||DN(e)||282===e.parent.kind)||236===e.parent.kind||261===i.kind&&i.exclamationToken||33554432&i.flags,v=g?jt:y?l?function(e,t){const n=H&&170===t.kind&&t.initializer&&KN(e,16777216)&&!function(e){const t=da(e);if(void 0===t.parameterInitializerContainsUndefined){if(!$c(e,8))return D_(e.symbol),!0;const n=!!KN(Lj(e,0),16777216);if(!Yc())return D_(e.symbol),!0;t.parameterInitializerContainsUndefined??(t.parameterInitializerContainsUndefined=n)}return t.parameterInitializerContainsUndefined}(t);return n?XN(e,524288):e}(a,i):a:m?jt:pw(a),b=g?fw(rE(e,a,v,u)):rE(e,a,v,u);if(BF(e)||a!==Nt&&a!==lr){if(!y&&!QS(a)&&QS(b))return zo(e,_a.Variable_0_is_used_before_being_assigned,bc(n)),a}else if(b===Nt||b===lr)return ne&&(zo(Cc(i),_a.Variable_0_implicitly_has_type_1_in_some_locations_where_its_type_cannot_be_determined,bc(n),Tc(b)),zo(e,_a.Variable_0_implicitly_has_an_1_type,bc(n),Tc(b))),dR(b);return s?QC(b):b}function NP(e){var t;const n=e.parent;if(n){if(dF(n)&&n.expression===e)return!1;if(LE(n)&&n.isTypeOnly)return!1;const r=null==(t=n.parent)?void 0:t.parent;if(r&&IE(r)&&r.isTypeOnly)return!1}return!0}function DP(e){return uc(e,e=>!e||Zh(e)?"quit":$_(e,!1))}function EP(e,t){da(e).flags|=2,173===t.kind||177===t.kind?da(t.parent).flags|=4:da(t).flags|=4}function PP(e){return lf(e)?e:r_(e)?void 0:XI(e,PP)}function AP(e){return cu(Au(ks(e)))===Ut}function IP(e,t,n){const r=t.parent;vh(r)&&!AP(r)&&Og(e)&&e.flowNode&&!tE(e.flowNode,!1)&&zo(e,n)}function OP(e){const t=_v(e);let n=em(e,!0,!0),r=!1,i=!1;for(177===n.kind&&IP(e,n,_a.super_must_be_called_before_accessing_this_in_the_constructor_of_a_derived_class);220===n.kind&&(n=em(n,!1,!i),r=!0),168===n.kind;)n=em(n,!r,!1),i=!0;if(function(e,t){ND(t)&&Fv(t)&&J&&t.initializer&&As(t.initializer,e.pos)&&Lv(t.parent)&&zo(e,_a.Cannot_use_this_in_a_static_property_initializer_of_a_decorated_class)}(e,n),i)zo(e,_a.this_cannot_be_referenced_in_a_computed_property_name);else switch(n.kind){case 268:zo(e,_a.this_cannot_be_referenced_in_a_module_or_namespace_body);break;case 267:zo(e,_a.this_cannot_be_referenced_in_current_location)}!t&&r&&M<2&&EP(e,n);const o=jP(e,!0,n);if(oe){const t=P_(Fe);if(o===t&&r)zo(e,_a.The_containing_arrow_function_captures_the_global_value_of_this);else if(!o){const r=zo(e,_a.this_implicitly_has_type_any_because_it_does_not_have_a_type_annotation);if(!sP(n)){const e=jP(n);e&&e!==t&&aT(r,Rp(n,_a.An_outer_value_of_this_is_shadowed_by_this_container))}}}return o||wt}function jP(e,t=!0,n=em(e,!1,!1)){const r=Em(e);if(r_(n)&&(!YP(e)||sv(n))){let t=Rg(Eg(n))||r&&function(e){const t=Qc(e);if(t&&t.typeExpression)return Pk(t.typeExpression);const n=Pg(e);return n?Rg(n):void 0}(n);if(!t){const e=function(e){return 219===e.kind&&NF(e.parent)&&3===tg(e.parent)?e.parent.left.expression.expression:175===e.kind&&211===e.parent.kind&&NF(e.parent.parent)&&6===tg(e.parent.parent)?e.parent.parent.left.expression:219===e.kind&&304===e.parent.kind&&211===e.parent.parent.kind&&NF(e.parent.parent.parent)&&6===tg(e.parent.parent.parent)?e.parent.parent.parent.left.expression:219===e.kind&&rP(e.parent)&&aD(e.parent.name)&&("value"===e.parent.name.escapedText||"get"===e.parent.name.escapedText||"set"===e.parent.name.escapedText)&&uF(e.parent.parent)&&fF(e.parent.parent.parent)&&e.parent.parent.parent.arguments[2]===e.parent.parent&&9===tg(e.parent.parent.parent)?e.parent.parent.parent.arguments[0].expression:FD(e)&&aD(e.name)&&("value"===e.name.escapedText||"get"===e.name.escapedText||"set"===e.name.escapedText)&&uF(e.parent)&&fF(e.parent.parent)&&e.parent.parent.arguments[2]===e.parent&&9===tg(e.parent.parent)?e.parent.parent.arguments[0].expression:void 0}(n);if(r&&e){const n=eM(e).symbol;n&&n.members&&16&n.flags&&(t=Au(n).thisType)}else sL(n)&&(t=Au(xs(n.symbol)).thisType);t||(t=HP(n))}if(t)return rE(e,t)}if(u_(n.parent)){const t=ks(n.parent);return rE(e,Dv(n)?P_(t):Au(t).thisType)}if(sP(n)){if(n.commonJsModuleIndicator){const e=ks(n);return e&&P_(e)}if(n.externalModuleIndicator)return jt;if(t)return P_(Fe)}}function MP(e){const t=214===e.parent.kind&&e.parent.expression===e,n=im(e,!0);let r=n,i=!1,o=!1;if(!t){for(;r&&220===r.kind;)Nv(r,1024)&&(o=!0),r=im(r,!0),i=M<2;r&&Nv(r,1024)&&(o=!0)}let a=0;if(!r||(s=r,!(t?177===s.kind:(u_(s.parent)||211===s.parent.kind)&&(Dv(s)?175===s.kind||174===s.kind||178===s.kind||179===s.kind||173===s.kind||176===s.kind:175===s.kind||174===s.kind||178===s.kind||179===s.kind||173===s.kind||172===s.kind||177===s.kind)))){const n=uc(e,e=>e===r?"quit":168===e.kind);return n&&168===n.kind?zo(e,_a.super_cannot_be_referenced_in_a_computed_property_name):t?zo(e,_a.Super_calls_are_not_permitted_outside_constructors_or_in_nested_functions_inside_constructors):r&&r.parent&&(u_(r.parent)||211===r.parent.kind)?zo(e,_a.super_property_access_is_permitted_only_in_a_constructor_member_function_or_member_accessor_of_a_derived_class):zo(e,_a.super_can_only_be_referenced_in_members_of_derived_classes_or_object_literal_expressions),Et}var s;if(t||177!==n.kind||IP(e,r,_a.super_must_be_called_before_accessing_a_property_of_super_in_the_constructor_of_a_derived_class),Dv(r)||t?(a=32,!t&&M>=2&&M<=8&&(ND(r)||ED(r))&&Pp(e.parent,e=>{sP(e)&&!Zp(e)||(da(e).flags|=2097152)})):a=16,da(e).flags|=a,175===r.kind&&o&&(am(e.parent)&&Qg(e.parent)?da(r).flags|=256:da(r).flags|=128),i&&EP(e.parent,r),211===r.parent.kind)return M<2?(zo(e,_a.super_is_only_allowed_in_members_of_object_literal_expressions_when_option_target_is_ES2015_or_higher),Et):wt;const c=r.parent;if(!vh(c))return zo(e,_a.super_can_only_be_referenced_in_a_derived_class),Et;if(AP(c))return t?Et:Ut;const l=Au(ks(c)),_=l&&uu(l)[0];return _?177===r.kind&&function(e,t){return!!uc(e,e=>o_(e)?"quit":170===e.kind&&e.parent===t)}(e,r)?(zo(e,_a.super_cannot_be_referenced_in_constructor_arguments),Et):32===a?cu(l):wd(_,l.thisType):Et}function RP(e){return 175!==e.kind&&178!==e.kind&&179!==e.kind||211!==e.parent.kind?219===e.kind&&304===e.parent.kind?e.parent.parent:void 0:e.parent}function JP(e){return 4&gx(e)&&e.target===sr?uy(e)[0]:void 0}function qP(e){return nF(e,e=>2097152&e.flags?d(e.types,JP):JP(e))}function WP(e,t){let n=e,r=t;for(;r;){const e=qP(r);if(e)return e;if(304!==n.parent.kind)break;n=n.parent.parent,r=hA(n,void 0)}}function HP(e){if(220===e.kind)return;if(xS(e)){const t=jA(e);if(t){const e=t.thisParameter;if(e)return P_(e)}}const t=Em(e);if(oe||t){const n=RP(e);if(n){const e=hA(n,void 0),t=WP(n,e);return t?fS(t,Qw(PA(n))):jw(e?fw(e):Ij(n))}const r=rh(e.parent);if(rb(r)){const e=r.left;if(Sx(e)){const{expression:n}=e;if(t&&aD(n)){const e=vd(r);if(e.commonJsModuleIndicator&&NN(n)===e.symbol)return}return jw(Ij(n))}}}}function GP(e){const t=e.parent;if(!xS(t))return;const n=om(t);if(n&&n.arguments){const r=BO(n),i=t.parameters.indexOf(e);if(e.dotDotDotToken)return AO(r,i,r.length,wt,void 0,0);const o=da(n),a=o.resolvedSignature;o.resolvedSignature=si;const s=i!!(58998787&e.flags)||oM(e,n,void 0)):2&n?GD(t,e=>!!(58998787&e.flags)||!!SM(e)):t}const i=om(e);return i?xA(i,t):void 0}function tA(e,t){const n=BO(e).indexOf(t);return-1===n?void 0:nA(e,n)}function nA(e,t){if(_f(e))return 0===t?Vt:1===t?Gy(!1):wt;const n=da(e).resolvedSignature===li?li:aL(e);if(bu(e)&&0===t)return AA(n,e);const r=n.parameters.length-1;return aJ(n)&&t>=r?Ax(P_(n.parameters[r]),mk(t-r),256):AL(n,t)}function rA(e,t=tg(e)){if(4===t)return!0;if(!Em(e)||5!==t||!aD(e.left.expression))return!1;const n=e.left.expression.escapedText,r=Ue(e.left,n,111551,void 0,!0,!0);return cm(null==r?void 0:r.valueDeclaration)}function oA(e){if(!e.symbol)return Qj(e.left);if(e.symbol.valueDeclaration){const t=fv(e.symbol.valueDeclaration);if(t){const e=Pk(t);if(e)return e}}const t=nt(e.left,Sx);if(!Jf(em(t.expression,!1,!1)))return;const n=OP(t.expression),r=_g(t);return void 0!==r&&sA(n,r)||void 0}function aA(e,t){if(16777216&e.flags){const n=e;return!!(131072&Bf(qx(n)).flags)&&Rx(Ux(n))===Rx(n.checkType)&&FS(t,n.extendsType)}return!!(2097152&e.flags)&&$(e.types,e=>aA(e,t))}function sA(e,t,n){return nF(e,e=>{if(2097152&e.flags){let r,i,o=!1;for(const a of e.types){if(!(524288&a.flags))continue;if(Sp(a)&&2!==Tp(a)){r=cA(r,lA(a,t,n));continue}const e=_A(a,t);e?(o=!0,i=void 0,r=cA(r,e)):o||(i=ie(i,a))}if(i)for(const e of i)r=cA(r,uA(e,t,n));if(!r)return;return 1===r.length?r[0]:Bb(r)}if(524288&e.flags)return Sp(e)&&2!==Tp(e)?lA(e,t,n):_A(e,t)??uA(e,t,n)},!0)}function cA(e,t){return t?ie(e,1&t.flags?Ot:t):e}function lA(e,t,n){const r=n||fk(mc(t)),i=ip(e);if(!(e.nameType&&aA(e.nameType,r)||aA(i,r)))return FS(r,pf(i)||i)?Px(e,r):void 0}function _A(e,t){const n=pm(e,t);var r;if(n&&!(262144&rx(r=n)&&!r.links.type&&Hc(r,0)>=0))return kw(P_(n),!!(16777216&n.flags))}function uA(e,t,n){var r;if(rw(e)&&JT(t)&&+t>=0){const t=cw(e,e.target.fixedLength,0,!1,!0);if(t)return t}return null==(r=Am(Bm(e),n||fk(mc(t))))?void 0:r.type}function dA(e,t){if(un.assert(Jf(e)),!(67108864&e.flags))return pA(e,t)}function pA(e,t){const n=e.parent,r=rP(e)&&QP(e,t);if(r)return r;const i=hA(n,t);if(i){if(fd(e)){const t=ks(e);return sA(i,t.escapedName,ua(t).nameType)}if(Rh(e)){const t=Cc(e);if(t&&kD(t)){const e=eM(t.expression),n=sC(e)&&sA(i,cC(e));if(n)return n}}if(e.name){const t=Hb(e.name);return nF(i,e=>{var n;return null==(n=Am(Bm(e),t))?void 0:n.type},!0)}}}function fA(e,t,n,r,i){return e&&nF(e,e=>{if(rw(e)){if((void 0===r||ti)?n-t:0,a=o>0&&12&e.target.combinedFlags?yb(e.target,3):0;return o>0&&o<=a?uy(e)[dy(e)-o]:cw(e,void 0===r?e.target.fixedLength:Math.min(e.target.fixedLength,r),void 0===n||void 0===i?a:Math.min(a,n-i),!1,!0)}return(!r||t32&gx(e)?e:Sf(e),!0);return 1048576&t.flags&&uF(e)?function(e,t){const n=`D${ZB(e)},${kb(t)}`;return Oo(n)??Lo(n,function(e,t){const n=MN(e),r=n&&b(t.properties,e=>e.symbol&&304===e.kind&&e.symbol.escapedName===n&&gA(e.initializer)),i=r&&Zj(r.initializer);return i&&RN(e,i)}(t,e)??ET(t,K(E(N(e.properties,e=>!!e.symbol&&(304===e.kind?gA(e.initializer)&&LN(t,e.symbol.escapedName):305===e.kind&&LN(t,e.symbol.escapedName))),e=>[()=>Zj(304===e.kind?e.initializer:e.name),e.symbol.escapedName]),E(N(Up(t),n=>{var r;return!!(16777216&n.flags)&&!!(null==(r=null==e?void 0:e.symbol)?void 0:r.members)&&!e.symbol.members.has(n.escapedName)&&LN(t,n.escapedName)}),e=>[()=>jt,e.escapedName])),FS))}(e,t):1048576&t.flags&&GE(e)?function(e,t){const n=`D${ZB(e)},${kb(t)}`,r=Oo(n);if(r)return r;const i=oI(rI(e));return Lo(n,ET(t,K(E(N(e.properties,e=>!!e.symbol&&292===e.kind&&LN(t,e.symbol.escapedName)&&(!e.initializer||gA(e.initializer))),e=>[e.initializer?()=>Zj(e.initializer):()=>Yt,e.symbol.escapedName]),E(N(Up(t),n=>{var r;if(!(16777216&n.flags&&(null==(r=null==e?void 0:e.symbol)?void 0:r.members)))return!1;const o=e.parent.parent;return(n.escapedName!==i||!zE(o)||!ly(o.children).length)&&!e.symbol.members.has(n.escapedName)&&LN(t,n.escapedName)}),e=>[()=>jt,e.escapedName])),FS))}(e,t):t}}function yA(e,t,n){if(e&&gj(e,465829888)){const r=PA(t);if(r&&1&n&&$(r.inferences,Hj))return vA(e,r.nonFixingMapper);if(null==r?void 0:r.returnMapper){const t=vA(e,r.returnMapper);return 1048576&t.flags&&Sb(t.types,Qt)&&Sb(t.types,nn)?GD(t,e=>e!==Qt&&e!==nn):t}}return e}function vA(e,t){return 465829888&e.flags?fS(e,t):1048576&e.flags?Pb(E(e.types,e=>vA(e,t)),0):2097152&e.flags?Bb(E(e.types,e=>vA(e,t))):e}function xA(e,t){var n;if(67108864&e.flags)return;const r=EA(e,!t);if(r>=0)return Ei[r];const{parent:i}=e;switch(i.kind){case 261:case 170:case 173:case 172:case 209:return function(e,t){const n=e.parent;if(Eu(n)&&e===n.initializer){const e=QP(n,t);if(e)return e;if(!(8&t)&&k_(n.name)&&n.name.elements.length>0)return n_(n.name,!0,!1)}}(e,t);case 220:case 254:return function(e,t){const n=Kf(e);if(n){let e=eA(n,t);if(e){const t=Oh(n);if(1&t){const n=!!(2&t);1048576&e.flags&&(e=GD(e,e=>!!WR(1,e,n)));const r=WR(1,e,!!(2&t));if(!r)return;e=r}if(2&t){const t=nF(e,AM);return t&&Pb([t,QL(t)])}return e}}}(e,t);case 230:return function(e,t){const n=Kf(e);if(n){const r=Oh(n);let i=eA(n,t);if(i){const n=!!(2&r);if(!e.asteriskToken&&1048576&i.flags&&(i=GD(i,e=>!!WR(1,e,n))),e.asteriskToken){const r=$R(i,n),o=(null==r?void 0:r.yieldType)??dn,a=xA(e,t)??dn,s=(null==r?void 0:r.nextType)??Ot,c=ej(o,a,s,!1);return n?Pb([c,ej(o,a,s,!0)]):c}return WR(0,i,n)}}}(i,t);case 224:return function(e,t){const n=xA(e,t);if(n){const e=AM(n);return e&&Pb([e,QL(e)])}}(i,t);case 214:case 215:return tA(i,e);case 171:return function(e){const t=GL(e);return t?Dh(t):void 0}(i);case 217:case 235:return kl(i.type)?xA(i,t):Pk(i.type);case 227:return function(e,t){const n=e.parent,{left:r,operatorToken:i,right:o}=n;switch(i.kind){case 64:case 77:case 76:case 78:return e===o?function(e){var t,n;const r=tg(e);switch(r){case 0:case 4:const i=function(e){if(au(e)&&e.symbol)return e.symbol;if(aD(e))return NN(e);if(dF(e)){const t=Qj(e.expression);return sD(e.name)?function(e,t){const n=MI(t.escapedText,t);return n&&BI(e,n)}(t,e.name):pm(t,e.name.escapedText)}if(pF(e)){const t=Ij(e.argumentExpression);if(!sC(t))return;return pm(Qj(e.expression),cC(t))}}(e.left),o=i&&i.valueDeclaration;if(o&&(ND(o)||wD(o))){const t=fv(o);return t&&fS(Pk(t),ua(i).mapper)||(ND(o)?o.initializer&&Qj(e.left):void 0)}return 0===r?Qj(e.left):oA(e);case 5:if(rA(e,r))return oA(e);if(au(e.left)&&e.left.symbol){const t=e.left.symbol.valueDeclaration;if(!t)return;const n=nt(e.left,Sx),r=fv(t);if(r)return Pk(r);if(aD(n.expression)){const e=n.expression,t=Ue(e,e.escapedText,111551,void 0,!0);if(t){const e=t.valueDeclaration&&fv(t.valueDeclaration);if(e){const t=_g(n);if(void 0!==t)return sA(Pk(e),t)}return}}return Em(t)||t===e.left?void 0:Qj(e.left)}return Qj(e.left);case 1:case 6:case 3:case 2:let a;2!==r&&(a=au(e.left)?null==(t=e.left.symbol)?void 0:t.valueDeclaration:void 0),a||(a=null==(n=e.symbol)?void 0:n.valueDeclaration);const s=a&&fv(a);return s?Pk(s):void 0;case 7:case 8:case 9:return un.fail("Does not apply");default:return un.assertNever(r)}}(n):void 0;case 57:case 61:const i=xA(n,t);return e===o&&(i&&i.pattern||!i&&!Km(n))?Qj(r):i;case 56:case 28:return e===o?xA(n,t):void 0;default:return}}(e,t);case 304:case 305:return pA(i,t);case 306:return xA(i.parent,t);case 210:{const r=i,o=hA(r,t),a=Yd(r.elements,e),s=(n=da(r)).spreadIndices??(n.spreadIndices=function(e){let t,n;for(let r=0;rJC(e)?Ax(e,mk(a)):e,!0))}(n,e,t):void 0}(i,t);case 292:case 294:return mA(i,t);case 287:case 286:return function(e,t){if(UE(e)&&4!==t){const n=EA(e.parent,!t);if(n>=0)return Ei[n]}return nA(e,0)}(i,t);case 302:return function(e){return sA(Qy(!1),pC(e))}(i)}}function kA(e){wA(e,xA(e,void 0),!0)}function wA(e,t,n){Fi[Ai]=e,Ei[Ai]=t,Pi[Ai]=n,Ai++}function FA(){Ai--,Fi[Ai]=void 0,Ei[Ai]=void 0,Pi[Ai]=void 0}function EA(e,t){for(let n=Ai-1;n>=0;n--)if(e===Fi[n]&&(t||!Pi[n]))return n;return-1}function PA(e){for(let t=ji-1;t>=0;t--)if(ch(e,Oi[t]))return Li[t]}function AA(e,t){return $E(t)||0!==OO(t)?function(e,t){let n=qL(e,Ot);n=IA(t,rI(t),n);const r=eI(jB.IntrinsicAttributes,t);return al(r)||(n=zd(r,n)),n}(e,t):function(e,t){const n=rI(t),r=(i=n,iI(jB.ElementAttributesPropertyNameContainer,i));var i;let o=void 0===r?qL(e,Ot):""===r?Gg(e):function(e,t){if(e.compositeSignatures){const n=[];for(const r of e.compositeSignatures){const e=Gg(r);if(il(e))return e;const i=el(e,t);if(!i)return;n.push(i)}return Bb(n)}const n=Gg(e);return il(n)?n:el(n,t)}(e,r);if(!o)return r&&u(t.attributes.properties)&&zo(t,_a.JSX_element_class_does_not_support_attributes_because_it_does_not_have_a_0_property,mc(r)),Ot;if(o=IA(t,n,o),il(o))return o;{let n=o;const r=eI(jB.IntrinsicClassAttributes,t);if(!al(r)){const i=Z_(r.symbol),o=Gg(e);let a;a=i?fS(r,Uk(i,Cg([o],i,Tg(i),Em(t)))):r,n=zd(a,n)}const i=eI(jB.IntrinsicAttributes,t);return al(i)||(n=zd(i,n)),n}}(e,t)}function IA(e,t,n){const r=(i=t)&&pa(i.exports,jB.LibraryManagedAttributes,788968);var i;if(r){const t=function(e){if($E(e))return rL(e);if(GA(e.tagName))return Dh(nL(e,lI(e)));const t=Ij(e.tagName);if(128&t.flags){const n=sI(t,e);return n?Dh(nL(e,n)):Et}return t}(e),i=pI(r,Em(e),t,n);if(i)return i}return n}function OA(e,t){const n=N(mm(e,0),e=>!function(e,t){let n=0;for(;ne!==t&&e?Rd(e.typeParameters,t.typeParameters)?function(e,t){const n=e.typeParameters||t.typeParameters;let r;e.typeParameters&&t.typeParameters&&(r=Uk(t.typeParameters,e.typeParameters));let i=166&(e.flags|t.flags);const o=e.declaration,a=function(e,t,n){const r=jL(e),i=jL(t),o=r>=i?e:t,a=o===e?t:e,s=o===e?r:i,c=RL(e)||RL(t),l=c&&!RL(o),_=new Array(s+(l?1:0));for(let u=0;u=ML(o)&&u>=ML(a),h=u>=r?void 0:DL(e,u),y=u>=i?void 0:DL(t,u),v=Xo(1|(g&&!m?16777216:0),(h===y?h:h?y?void 0:h:y)||`arg${u}`,m?32768:g?16384:0);v.links.type=m?Rv(f):f,_[u]=v}if(l){const e=Xo(1,"args",32768);e.links.type=Rv(AL(a,s)),a===t&&(e.links.type=fS(e.links.type,n)),_[s]=e}return _}(e,t,r),s=ye(a);s&&32768&rx(s)&&(i|=1);const c=function(e,t,n){return e&&t?ww(e,Pb([P_(e),fS(P_(t),n)])):e||t}(e.thisParameter,t.thisParameter,r),l=Ed(o,n,c,a,void 0,void 0,Math.max(e.minArgumentCount,t.minArgumentCount),i);return l.compositeKind=2097152,l.compositeSignatures=K(2097152===e.compositeKind&&e.compositeSignatures||[e],[t]),r&&(l.mapper=2097152===e.compositeKind&&e.mapper&&e.compositeSignatures?eS(e.mapper,r):r),l}(e,t):void 0:e):void 0);var r}function LA(e){return RT(e)||Jf(e)?jA(e):void 0}function jA(e){un.assert(175!==e.kind||Jf(e));const t=Pg(e);if(t)return t;const n=hA(e,1);if(!n)return;if(!(1048576&n.flags))return OA(n,e);let r;const i=n.types;for(const t of i){const n=OA(t,e);if(n)if(r){if(!PC(r[0],n,!1,!0,!0,TS))return;r.push(n)}else r=[n]}return r?1===r.length?r[0]:Ad(r[0],r):void 0}function MA(e){return 209===e.kind&&!!e.initializer||304===e.kind&&MA(e.initializer)||305===e.kind&&!!e.objectAssignmentInitializer||227===e.kind&&64===e.operatorToken.kind}function RA(e,t,n){const r=e.elements,i=r.length,o=[],a=[];kA(e);const s=Qg(e),c=Jj(e),l=hA(e,void 0),_=function(e){const t=rh(e.parent);return PF(t)&&j_(t.parent)}(e)||!!l&&UD(l,e=>WC(e)||Sp(e)&&!e.nameType&&!!lS(e.target||e));let u=!1;for(let c=0;c8&a[t]?Ox(e,Wt)||wt:e),2):H?pn:Mt,c))}function BA(e){const t=da(e.expression);if(!t.resolvedType){if((qD(e.parent.parent)||u_(e.parent.parent)||pE(e.parent.parent))&&NF(e.expression)&&103===e.expression.operatorToken.kind&&178!==e.parent.kind&&179!==e.parent.kind)return t.resolvedType=Et;if(t.resolvedType=eM(e.expression),ND(e.parent)&&!Fv(e.parent)&&AF(e.parent.parent)){const t=DP(Ep(e.parent.parent));t&&(da(t).flags|=4096,da(e).flags|=32768,da(e.parent.parent).flags|=32768)}(98304&t.resolvedType.flags||!hj(t.resolvedType,402665900)&&!FS(t.resolvedType,hn))&&zo(e,_a.A_computed_property_name_must_be_of_type_string_number_symbol_or_any)}return t.resolvedType}function JA(e){var t;const n=null==(t=e.declarations)?void 0:t[0];return JT(e.escapedName)||n&&Sc(n)&&function(e){switch(e.kind){case 168:return function(e){return hj(BA(e),296)}(e);case 80:return JT(e.escapedText);case 9:case 11:return JT(e.text);default:return!1}}(n.name)}function zA(e){var t;const n=null==(t=e.declarations)?void 0:t[0];return Wh(e)||n&&Sc(n)&&kD(n.name)&&hj(BA(n.name),4096)}function qA(e){var t;const n=null==(t=e.declarations)?void 0:t[0];return n&&Sc(n)&&kD(n.name)}function UA(e,t,n,r){var i;const o=[];let a;for(let e=t;e0&&(o=sk(o,f(),l.symbol,c,!1),i=Gu());const s=Bf(eM(e.expression,2&t));il(s)&&(a=!0),WA(s)?(o=sk(o,s,l.symbol,c,!1),n&&ZA(s,n,e)):(zo(e.expression,_a.Spread_types_may_only_be_created_from_object_types),r=r?Bb([r,s]):s)}}a||i.size>0&&(o=sk(o,f(),l.symbol,c,!1))}const p=e.parent;if((zE(p)&&p.openingElement===e||WE(p)&&p.openingFragment===e)&&ly(p.children).length>0){const n=YA(p,t);if(!a&&_&&""!==_){s&&zo(d,_a._0_are_specified_twice_The_attribute_named_0_will_be_overwritten,mc(_));const t=UE(e)?hA(e.attributes,void 0):void 0,r=t&&sA(t,_),i=Xo(4,_);i.links.type=1===n.length?n[0]:r&&UD(r,WC)?Gv(n):Rv(Pb(n)),i.valueDeclaration=mw.createPropertySignature(void 0,mc(_),void 0,void 0),DT(i.valueDeclaration,d),i.valueDeclaration.symbol=i;const a=Gu();a.set(_,i),o=sk(o,$s(u,a,l,l,l),u,c,!1)}}return a?wt:r&&o!==Dn?Bb([r,o]):r||(o===Dn?f():o);function f(){return c|=8192,function(e,t,n){const r=$s(t,n,l,l,l);return r.objectFlags|=139392|e,r}(c,u,i)}}function YA(e,t){const n=[];for(const r of e.children)if(12===r.kind)r.containsOnlyTriviaWhiteSpaces||n.push(Vt);else{if(295===r.kind&&!r.expression)continue;n.push(zj(r,t))}return n}function ZA(e,t,n){for(const r of Up(e))if(!(16777216&r.flags)){const e=t.get(r.escapedName);e&&aT(zo(e.valueDeclaration,_a._0_is_specified_more_than_once_so_this_usage_will_be_overwritten,mc(e.escapedName)),Rp(n,_a.This_spread_always_overwrites_this_property))}}function eI(e,t){const n=rI(t),r=n&&hs(n),i=r&&pa(r,e,788968);return i?Au(i):Et}function tI(e){const t=da(e);if(!t.resolvedSymbol){const n=eI(jB.IntrinsicElements,e);if(al(n))return ne&&zo(e,_a.JSX_element_implicitly_has_type_any_because_no_interface_JSX_0_exists,mc(jB.IntrinsicElements)),t.resolvedSymbol=xt;{if(!aD(e.tagName)&&!YE(e.tagName))return un.fail();const r=YE(e.tagName)?iC(e.tagName):e.tagName.escapedText,i=pm(n,r);if(i)return t.jsxFlags|=1,t.resolvedSymbol=i;const o=gJ(n,fk(mc(r)));return o?(t.jsxFlags|=2,t.resolvedSymbol=o):rl(n,r)?(t.jsxFlags|=2,t.resolvedSymbol=n.symbol):(zo(e,_a.Property_0_does_not_exist_on_type_1,aC(e.tagName),"JSX."+jB.IntrinsicElements),t.resolvedSymbol=xt)}}return t.resolvedSymbol}function nI(e){const t=e&&vd(e),n=t&&da(t);if(n&&!1===n.jsxImplicitImportContainer)return;if(n&&n.jsxImplicitImportContainer)return n.jsxImplicitImportContainer;const r=Gk(Kk(j,t),j);if(!r)return;const i=1===bk(j)?_a.Cannot_find_module_0_Did_you_mean_to_set_the_moduleResolution_option_to_nodenext_or_to_add_aliases_to_the_paths_option:_a.This_JSX_tag_requires_the_module_path_0_to_exist_but_none_could_be_found_Make_sure_you_have_types_for_the_appropriate_package_installed,o=function(e,t){const n=j.importHelpers?1:0,r=null==e?void 0:e.imports[n];return r&&un.assert(ey(r)&&r.text===t,`Expected sourceFile.imports[${n}] to be the synthesized JSX runtime import`),r}(t,r),a=os(o||e,r,i,e),s=a&&a!==xt?xs($a(a)):void 0;return n&&(n.jsxImplicitImportContainer=s||!1),s}function rI(e){const t=e&&da(e);if(t&&t.jsxNamespace)return t.jsxNamespace;if(!t||!1!==t.jsxNamespace){let n=nI(e);if(!n||n===xt){const t=jo(e);n=Ue(e,t,1920,void 0,!1)}if(n){const e=$a(pa(hs($a(n)),jB.JSX,1920));if(e&&e!==xt)return t&&(t.jsxNamespace=e),e}t&&(t.jsxNamespace=!1)}const n=$a(Vy(jB.JSX,1920,void 0));return n!==xt?n:void 0}function iI(e,t){const n=t&&pa(t.exports,e,788968),r=n&&Au(n),i=r&&Up(r);if(i){if(0===i.length)return"";if(1===i.length)return i[0].escapedName;i.length>1&&n.declarations&&zo(n.declarations[0],_a.The_global_type_JSX_0_may_not_have_more_than_one_property,mc(e))}}function oI(e){return 4===j.jsx||5===j.jsx?"children":iI(jB.ElementChildrenAttributeNameContainer,e)}function aI(e,t){if(4&e.flags)return[si];if(128&e.flags){const n=sI(e,t);return n?[nL(t,n)]:(zo(t,_a.Property_0_does_not_exist_on_type_1,e.value,"JSX."+jB.IntrinsicElements),l)}const n=Sf(e);let r=mm(n,1);return 0===r.length&&(r=mm(n,0)),0===r.length&&1048576&n.flags&&(r=Md(E(n.types,e=>aI(e,t)))),r}function sI(e,t){const n=eI(jB.IntrinsicElements,t);if(!al(n)){const t=pm(n,fc(e.value));if(t)return P_(t);return Qm(n,Vt)||void 0}return wt}function lI(e){var t;un.assert(GA(e.tagName));const n=da(e);if(!n.resolvedJsxElementAttributesType){const r=tI(e);if(1&n.jsxFlags)return n.resolvedJsxElementAttributesType=P_(r)||Et;if(2&n.jsxFlags){const r=YE(e.tagName)?iC(e.tagName):e.tagName.escapedText;return n.resolvedJsxElementAttributesType=(null==(t=og(eI(jB.IntrinsicElements,e),r))?void 0:t.type)||Et}return n.resolvedJsxElementAttributesType=Et}return n.resolvedJsxElementAttributesType}function _I(e){const t=eI(jB.ElementClass,e);if(!al(t))return t}function uI(e){return eI(jB.Element,e)}function dI(e){const t=uI(e);if(t)return Pb([t,zt])}function pI(e,t,...n){const r=Au(e);if(524288&e.flags){const i=ua(e).typeParameters;if(u(i)>=n.length){const o=Cg(n,i,n.length,t);return 0===u(o)?r:fy(e,o)}}if(u(r.typeParameters)>=n.length)return ay(r,Cg(n,r.typeParameters,n.length,t))}function fI(e){const t=bu(e);var n;t&&function(e){(function(e){if(dF(e)&&YE(e.expression))return kz(e.expression,_a.JSX_property_access_expressions_cannot_include_JSX_namespace_names);YE(e)&&Hk(j)&&!Ey(e.namespace.escapedText)&&kz(e,_a.React_components_cannot_include_JSX_namespace_names)})(e.tagName),ez(e,e.typeArguments);const t=new Map;for(const n of e.attributes.properties){if(294===n.kind)continue;const{name:e,initializer:r}=n,i=tC(e);if(t.get(i))return kz(e,_a.JSX_elements_cannot_have_multiple_attributes_with_the_same_name);if(t.set(i,!0),r&&295===r.kind&&!r.expression)return kz(r,_a.JSX_attributes_must_only_be_assigned_a_non_empty_expression)}}(e),n=e,0===(j.jsx||0)&&zo(n,_a.Cannot_use_JSX_unless_the_jsx_flag_is_provided),void 0===uI(n)&&ne&&zo(n,_a.JSX_element_implicitly_has_type_any_because_the_global_type_JSX_Element_does_not_exist),QE(e);const r=aL(e);if(_L(r,e),t){const t=e,n=function(e){const t=rI(e);if(!t)return;const n=(r=t)&&pa(r.exports,jB.ElementType,788968);var r;if(!n)return;const i=pI(n,Em(e));return i&&!al(i)?i:void 0}(t);if(void 0!==n){const e=t.tagName;hT(GA(e)?fk(aC(e)):eM(e),n,wo,e,_a.Its_type_0_is_not_a_valid_JSX_element_type,()=>{const t=Xd(e);return Zx(void 0,_a._0_cannot_be_used_as_a_JSX_component,t)})}else!function(e,t,n){if(1===e){const e=dI(n);e&&hT(t,e,wo,n.tagName,_a.Its_return_type_0_is_not_a_valid_JSX_element,r)}else if(0===e){const e=_I(n);e&&hT(t,e,wo,n.tagName,_a.Its_instance_type_0_is_not_a_valid_JSX_element,r)}else{const e=dI(n),i=_I(n);if(!e||!i)return;hT(t,Pb([e,i]),wo,n.tagName,_a.Its_element_type_0_is_not_a_valid_JSX_element,r)}function r(){const e=Xd(n.tagName);return Zx(void 0,_a._0_cannot_be_used_as_a_JSX_component,e)}}(OO(t),Gg(r),t)}}function mI(e,t,n){if(524288&e.flags&&(Lp(e,t)||og(e,t)||ld(t)&&qm(e,Vt)||n&&KA(t)))return!0;if(33554432&e.flags)return mI(e.baseType,t,n);if(3145728&e.flags&&gI(e))for(const r of e.types)if(mI(r,t,n))return!0;return!1}function gI(e){return!!(524288&e.flags&&!(512&gx(e))||67108864&e.flags||33554432&e.flags&&gI(e.baseType)||1048576&e.flags&&$(e.types,gI)||2097152&e.flags&&v(e.types,gI))}function hI(e){return e.valueDeclaration?Pz(e.valueDeclaration):0}function yI(e){if(8192&e.flags||4&rx(e))return!0;if(Em(e.valueDeclaration)){const t=e.valueDeclaration.parent;return t&&NF(t)&&3===tg(t)}}function vI(e,t,n,r,i,o=!0){return bI(e,t,n,r,i,o?167===e.kind?e.right:206===e.kind?e:209===e.kind&&e.propertyName?e.propertyName:e.name:void 0)}function bI(e,t,n,r,i,o){var a;const s=ix(i,n);if(t){if(M<2&&TI(i))return o&&zo(o,_a.Only_public_and_protected_methods_of_the_base_class_are_accessible_via_the_super_keyword),!1;if(64&s)return o&&zo(o,_a.Abstract_method_0_in_class_1_cannot_be_accessed_via_super_expression,bc(i),Tc(bC(i))),!1;if(!(256&s)&&(null==(a=i.declarations)?void 0:a.some(f_)))return o&&zo(o,_a.Class_field_0_defined_by_the_parent_class_is_not_accessible_in_the_child_class_via_super,bc(i)),!1}if(64&s&&TI(i)&&(sm(e)||lm(e)||sF(e.parent)&&cm(e.parent.parent))){const t=mx(Ts(i));if(t&&uc(e,e=>!!(PD(e)&&Dd(e.body)||ND(e))||!(!u_(e)&&!o_(e))&&"quit"))return o&&zo(o,_a.Abstract_property_0_in_class_1_cannot_be_accessed_in_the_constructor,bc(i),qh(t.name)),!1}if(!(6&s))return!0;if(2&s)return!!pJ(e,mx(Ts(i)))||(o&&zo(o,_a.Property_0_is_private_and_only_accessible_within_class_1,bc(i),Tc(bC(i))),!1);if(t)return!0;let c=dJ(e,e=>TC(Au(ks(e)),i,n));return!c&&(c=function(e){const t=function(e){const t=em(e,!1,!1);return t&&r_(t)?sv(t):void 0}(e);let n=(null==t?void 0:t.type)&&Pk(t.type);if(n)262144&n.flags&&(n=Hp(n));else{const t=em(e,!1,!1);r_(t)&&(n=HP(t))}if(n&&7&gx(n))return z_(n)}(e),c=c&&TC(c,i,n),256&s||!c)?(o&&zo(o,_a.Property_0_is_protected_and_only_accessible_within_class_1_and_its_subclasses,bc(i),Tc(bC(i)||r)),!1):!!(256&s)||(262144&r.flags&&(r=r.isThisType?Hp(r):pf(r)),!(!r||!q_(r,c))||(o&&zo(o,_a.Property_0_is_protected_and_only_accessible_through_an_instance_of_class_1_This_is_an_instance_of_class_2,bc(i),Tc(c),Tc(r)),!1))}function TI(e){return!!fC(e,e=>!(8192&e.flags))}function wI(e){return AI(eM(e),e)}function NI(e){return KN(e,50331648)}function DI(e){return NI(e)?fw(e):e}function FI(e,t){const n=ab(e)?Mp(e):void 0;if(106!==e.kind)if(void 0!==n&&n.length<100){if(aD(e)&&"undefined"===n)return void zo(e,_a.The_value_0_cannot_be_used_here,"undefined");zo(e,16777216&t?33554432&t?_a._0_is_possibly_null_or_undefined:_a._0_is_possibly_undefined:_a._0_is_possibly_null,n)}else zo(e,16777216&t?33554432&t?_a.Object_is_possibly_null_or_undefined:_a.Object_is_possibly_undefined:_a.Object_is_possibly_null);else zo(e,_a.The_value_0_cannot_be_used_here,"null")}function EI(e,t){zo(e,16777216&t?33554432&t?_a.Cannot_invoke_an_object_which_is_possibly_null_or_undefined:_a.Cannot_invoke_an_object_which_is_possibly_undefined:_a.Cannot_invoke_an_object_which_is_possibly_null)}function PI(e,t,n){if(H&&2&e.flags){if(ab(t)){const e=Mp(t);if(e.length<100)return zo(t,_a._0_is_of_type_unknown,e),Et}return zo(t,_a.Object_is_of_type_unknown),Et}const r=HN(e,50331648);if(50331648&r){n(t,r);const i=fw(e);return 229376&i.flags?Et:i}return e}function AI(e,t){return PI(e,t,FI)}function II(e,t){const n=AI(e,t);if(16384&n.flags){if(ab(t)){const e=Mp(t);if(aD(t)&&"undefined"===e)return zo(t,_a.The_value_0_cannot_be_used_here,e),n;if(e.length<100)return zo(t,_a._0_is_possibly_undefined,e),n}zo(t,_a.Object_is_possibly_undefined)}return n}function OI(e,t,n){return 64&e.flags?function(e,t){const n=eM(e.expression),r=bw(n,e.expression);return vw(zI(e,e.expression,AI(r,e.expression),e.name,t),e,r!==n)}(e,t):zI(e,e.expression,wI(e.expression),e.name,t,n)}function LI(e,t){const n=km(e)&&lv(e.left)?AI(OP(e.left),e.left):wI(e.left);return zI(e,e.left,n,e.right,t)}function jI(e){for(;218===e.parent.kind;)e=e.parent;return j_(e.parent)&&e.parent.expression===e}function MI(e,t){for(let n=Zf(t);n;n=Xf(n)){const{symbol:t}=n,r=Vh(t,e),i=t.members&&t.members.get(r)||t.exports&&t.exports.get(r);if(i)return i}}function RI(e){if(!bm(e))return;const t=da(e);return void 0===t.resolvedSymbol&&(t.resolvedSymbol=MI(e.escapedText,e)),t.resolvedSymbol}function BI(e,t){return pm(e,t.escapedName)}function JI(e,t){return(Ll(t)||sm(e)&&jl(t))&&em(e,!0,!1)===Ml(t)}function zI(e,t,n,r,i,o){const a=da(t).resolvedSymbol,s=Xg(e),c=Sf(0!==s||jI(e)?jw(n):n),l=il(c)||c===dn;let _,u;if(sD(r)){(M{const n=e.valueDeclaration;if(n&&Sc(n)&&sD(n.name)&&n.name.escapedText===t.escapedText)return r=e,!0});const o=ya(t);if(r){const i=un.checkDefined(r.valueDeclaration),a=un.checkDefined(Xf(i));if(null==n?void 0:n.valueDeclaration){const r=n.valueDeclaration,s=Xf(r);if(un.assert(!!s),uc(s,e=>a===e))return aT(zo(t,_a.The_property_0_cannot_be_accessed_on_type_1_within_this_class_because_it_is_shadowed_by_another_private_identifier_with_the_same_spelling,o,Tc(e)),Rp(r,_a.The_shadowing_declaration_of_0_is_defined_here,o),Rp(i,_a.The_declaration_of_0_that_you_probably_intended_to_use_is_defined_here,o)),!0}return zo(t,_a.Property_0_is_not_accessible_outside_class_1_because_it_has_a_private_identifier,o,ya(a.name||JB)),!0}return!1}(n,r,t))return Et;const e=Zf(r);e&&xd(vd(e),j.checkJs)&&kz(r,_a.Private_field_0_must_be_declared_in_an_enclosing_class,gc(r))}else 65536&_.flags&&!(32768&_.flags)&&1!==s&&zo(e,_a.Private_accessor_was_defined_without_a_getter)}else{if(l)return aD(t)&&a&&RE(e,2,void 0,n),al(c)?Et:c;_=pm(c,r.escapedText,vj(c),167===e.kind)}if(RE(e,2,_,n),_){const n=CB(_,r);if(Ho(n)&&dx(e,n)&&n.declarations&&Go(r,n.declarations,r.escapedText),function(e,t,n){const{valueDeclaration:r}=e;if(!r||vd(t).isDeclarationFile)return;let i;const o=gc(n);!VI(t)||function(e){return ND(e)&&!Iv(e)&&e.questionToken}(r)||Sx(t)&&Sx(t.expression)||fa(r,n)||FD(r)&&256&Ez(r)||!U&&function(e){if(!(32&e.parent.flags))return!1;let t=P_(e.parent);for(;;){if(t=t.symbol&&WI(t),!t)return!1;const n=pm(t,e.escapedName);if(n&&n.valueDeclaration)return!0}}(e)?264!==r.kind||184===t.parent.kind||33554432&r.flags||fa(r,n)||(i=zo(n,_a.Class_0_used_before_its_declaration,o)):i=zo(n,_a.Property_0_is_used_before_its_initialization,o),i&&aT(i,Rp(r,_a._0_is_declared_here,o))}(_,e,r),oO(_,e,aO(t,a)),da(e).resolvedSymbol=_,vI(e,108===t.kind,cx(e),c,_),uj(e,_,s))return zo(r,_a.Cannot_assign_to_0_because_it_is_a_read_only_property,gc(r)),Et;u=JI(e,_)?Nt:o||sx(e)?E_(_):P_(_)}else{const t=sD(r)||0!==s&&Tx(n)&&!qT(n)?void 0:og(c,r.escapedText);if(!t||!t.type){const t=qI(e,n.symbol,!0);return!t&&_x(n)?wt:n.symbol===Fe?(Fe.exports.has(r.escapedText)&&418&Fe.exports.get(r.escapedText).flags?zo(r,_a.Property_0_does_not_exist_on_type_1,mc(r.escapedText),Tc(n)):ne&&zo(r,_a.Element_implicitly_has_an_any_type_because_type_0_has_no_index_signature,Tc(n)),wt):(r.escapedText&&!ba(e)&&$I(r,qT(n)?c:n,t),Et)}t.isReadonly&&(Qg(e)||sh(e))&&zo(e,_a.Index_signature_in_type_0_only_permits_reading,Tc(c)),u=t.type,j.noUncheckedIndexedAccess&&1!==Xg(e)&&(u=Pb([u,Rt])),j.noPropertyAccessFromIndexSignature&&dF(e)&&zo(r,_a.Property_0_comes_from_an_index_signature_so_it_must_be_accessed_with_0,mc(r.escapedText)),t.declaration&&Ko(t.declaration)&&Go(r,[t.declaration],r.escapedText)}return UI(e,_,u,r,i)}function qI(e,t,n){var r;const i=vd(e);if(i&&void 0===j.checkJs&&void 0===i.checkJsDirective&&(1===i.scriptKind||2===i.scriptKind)){const o=d(null==t?void 0:t.declarations,vd),a=!(null==t?void 0:t.valueDeclaration)||!u_(t.valueDeclaration)||(null==(r=t.valueDeclaration.heritageClauses)?void 0:r.length)||gm(!1,t.valueDeclaration);return!(i!==o&&o&&Yp(o)||n&&t&&32&t.flags&&a||e&&n&&dF(e)&&110===e.expression.kind&&a)}return!1}function UI(e,t,n,r,i){const o=Xg(e);if(1===o)return kw(n,!!(t&&16777216&t.flags));if(t&&!(98311&t.flags)&&!(8192&t.flags&&1048576&n.flags)&&!PB(t.declarations))return n;if(n===Nt)return Ul(e,t);n=jE(n,e,i);let a=!1;if(H&&Z&&Sx(e)&&110===e.expression.kind){const n=t&&t.valueDeclaration;if(n&&fB(n)&&!Dv(n)){const t=iE(e);177!==t.kind||t.parent!==n.parent||33554432&n.flags||(a=!0)}}else H&&t&&t.valueDeclaration&&dF(t.valueDeclaration)&&ug(t.valueDeclaration)&&iE(e)===iE(t.valueDeclaration)&&(a=!0);const s=rE(e,n,a?pw(n):n);return a&&!QS(n)&&QS(s)?(zo(r,_a.Property_0_is_used_before_being_assigned,bc(t)),n):o?QC(s):s}function VI(e,t){return!!uc(e,e=>{switch(e.kind){case 173:case 176:return!0;case 187:case 288:return"quit";case 220:return!t&&"quit";case 242:return!(!o_(e.parent)||220===e.parent.kind)&&"quit";default:return!1}})}function WI(e){const t=uu(e);if(0!==t.length)return Bb(t)}function $I(e,t,n){const r=da(e),i=r.nonExistentPropCheckCache||(r.nonExistentPropCheckCache=new Set),o=`${kb(t)}|${n}`;if(i.has(o))return;let a,s;if(i.add(o),!sD(e)&&1048576&t.flags&&!(402784252&t.flags))for(const n of t.types)if(!pm(n,e.escapedText)&&!og(n,e.escapedText)){a=Zx(a,_a.Property_0_does_not_exist_on_type_1,Ap(e),Tc(n));break}if(HI(e.escapedText,t)){const n=Ap(e),r=Tc(t);a=Zx(a,_a.Property_0_does_not_exist_on_type_1_Did_you_mean_to_access_the_static_member_2_instead,n,r,r+"."+n)}else{const r=TM(t);if(r&&pm(r,e.escapedText))a=Zx(a,_a.Property_0_does_not_exist_on_type_1,Ap(e),Tc(t)),s=Rp(e,_a.Did_you_forget_to_use_await);else{const r=Ap(e),i=Tc(t),o=function(e,t){const n=Sf(t).symbol;if(!n)return;const r=yc(n),i=tp().get(r);if(i)for(const[t,n]of i)if(T(n,e))return t}(r,t);if(void 0!==o)a=Zx(a,_a.Property_0_does_not_exist_on_type_1_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_2_or_later,r,i,o);else{const o=GI(e,t);if(void 0!==o){const e=yc(o);a=Zx(a,n?_a.Property_0_may_not_exist_on_type_1_Did_you_mean_2:_a.Property_0_does_not_exist_on_type_1_Did_you_mean_2,r,i,e),s=o.valueDeclaration&&Rp(o.valueDeclaration,_a._0_is_declared_here,e)}else{const e=function(e){return j.lib&&!j.lib.includes("lib.dom.d.ts")&&(n=e=>e.symbol&&/^(?:EventTarget|Node|(?:HTML[a-zA-Z]*)?Element)$/.test(mc(e.symbol.escapedName)),3145728&(t=e).flags?v(t.types,n):n(t))&&GS(e);var t,n}(t)?_a.Property_0_does_not_exist_on_type_1_Try_changing_the_lib_compiler_option_to_include_dom:_a.Property_0_does_not_exist_on_type_1;a=Zx(Gf(a,t),e,r,i)}}}}const c=zp(vd(e),e,a);s&&aT(c,s),Uo(!n||a.code!==_a.Property_0_may_not_exist_on_type_1_Did_you_mean_2.code,c)}function HI(e,t){const n=t.symbol&&pm(P_(t.symbol),e);return void 0!==n&&!!n.valueDeclaration&&Dv(n.valueDeclaration)}function KI(e,t){return iO(e,Up(t),106500)}function GI(e,t){let n=Up(t);if("string"!=typeof e){const r=e.parent;dF(r)&&(n=N(n,e=>sO(r,t,e))),e=gc(e)}return iO(e,n,111551)}function YI(e,t){const n=Ze(e)?e:gc(e),r=Up(t);return("for"===n?b(r,e=>"htmlFor"===yc(e)):"class"===n?b(r,e=>"className"===yc(e)):void 0)??iO(n,r,111551)}function ZI(e,t){const n=GI(e,t);return n&&yc(n)}function eO(e,t,n){return un.assert(void 0!==t,"outername should always be defined"),Ve(e,t,n,void 0,!1,!1)}function nO(e,t){return t.exports&&iO(gc(e),ds(t),2623475)}function iO(e,t,n){return Lt(e,t,function(e){const t=yc(e);if(!Gt(t,'"')){if(e.flags&n)return t;if(2097152&e.flags){const r=function(e){if(ua(e).aliasTarget!==kt)return Ha(e)}(e);if(r&&r.flags&n)return t}}})}function oO(e,t,n){const r=e&&106500&e.flags&&e.valueDeclaration;if(!r)return;const i=wv(r,2),o=e.valueDeclaration&&Sc(e.valueDeclaration)&&sD(e.valueDeclaration.name);if((i||o)&&(!t||!sx(t)||65536&e.flags)){if(n){const n=uc(t,o_);if(n&&n.symbol===e)return}(1&rx(e)?ua(e).target:e).isReferenced=-1}}function aO(e,t){return 110===e.kind||!!t&&ab(e)&&t===NN(sb(e))}function sO(e,t,n){return lO(e,212===e.kind&&108===e.expression.kind,!1,t,n)}function cO(e,t,n,r){if(il(r))return!0;const i=pm(r,n);return!!i&&lO(e,t,!1,r,i)}function lO(e,t,n,r,i){if(il(r))return!0;if(i.valueDeclaration&&Kl(i.valueDeclaration)){const t=Xf(i.valueDeclaration);return!hl(e)&&!!uc(e,e=>e===t)}return bI(e,t,n,r,i)}function _O(e){const t=e.initializer;if(262===t.kind){const e=t.declarations[0];if(e&&!k_(e.name))return ks(e)}else if(80===t.kind)return NN(t)}function pO(e){return 1===Jm(e).length&&!!qm(e,Wt)}function fO(e,t,n){const r=0!==Xg(e)||jI(e)?jw(t):t,i=e.argumentExpression,o=eM(i);if(al(r)||r===dn)return r;if(vj(r)&&!ju(i))return zo(i,_a.A_const_enum_member_can_only_be_accessed_using_a_string_literal),Et;const a=function(e){const t=ah(e);if(80===t.kind){const n=NN(t);if(3&n.flags){let t=e,r=e.parent;for(;r;){if(250===r.kind&&t===r.statement&&_O(r)===n&&pO(Qj(r.expression)))return!0;t=r,r=r.parent}}}return!1}(i)?Wt:o,s=Xg(e);let c;0===s?c=32:(c=4|(Tx(r)&&!qT(r)?2:0),2===s&&(c|=32));const l=Ox(r,a,c,e)||Et;return yM(UI(e,da(e).resolvedSymbol,l,i,n),e)}function mO(e){return j_(e)||gF(e)||bu(e)}function gO(e){return mO(e)&&d(e.typeArguments,AB),216===e.kind?eM(e.template):bu(e)?eM(e.attributes):NF(e)?eM(e.left):j_(e)&&d(e.arguments,e=>{eM(e)}),si}function hO(e){return gO(e),ci}function yO(e){return!!e&&(231===e.kind||238===e.kind&&e.isSpread)}function vO(e){return k(e,yO)}function bO(e){return!!(16384&e.flags)}function xO(e){return!!(49155&e.flags)}function kO(e,t,n,r=!1){if($E(e))return!0;let i,o=!1,a=jL(n),s=ML(n);if(216===e.kind)if(i=t.length,229===e.template.kind){const t=ve(e.template.templateSpans);o=Nd(t.literal)||!!t.literal.isUnterminated}else{const t=e.template;un.assert(15===t.kind),o=!!t.isUnterminated}else if(171===e.kind)i=JO(e,n);else if(227===e.kind)i=1;else if(bu(e)){if(o=e.attributes.end===e.end,o)return!0;i=0===s?t.length:1,a=0===t.length?a:1,s=Math.min(s,1)}else{if(!e.arguments)return un.assert(215===e.kind),0===ML(n);{i=r?t.length+1:t.length,o=e.arguments.end===e.end;const a=vO(t);if(a>=0)return a>=ML(n)&&(RL(n)||aa)return!1;if(o||i>=s)return!0;for(let t=i;t=r&&t.length<=n}function TO(e,t){let n;return!!(e.target&&(n=IL(e.target,t))&&xx(n))}function CO(e){return NO(e,0,!1)}function wO(e){return NO(e,0,!1)||NO(e,1,!1)}function NO(e,t,n){if(524288&e.flags){const r=Cp(e);if(n||0===r.properties.length&&0===r.indexInfos.length){if(0===t&&1===r.callSignatures.length&&0===r.constructSignatures.length)return r.callSignatures[0];if(1===t&&1===r.constructSignatures.length&&0===r.callSignatures.length)return r.constructSignatures[0]}}}function DO(e,t,n,r){const i=Vw(Ch(e),e,0,r),o=BL(t),a=n&&(o&&262144&o.flags?n.nonFixingMapper:n.mapper);return qw(a?aS(t,a):t,e,(e,t)=>{yN(i.inferences,e,t)}),n||Uw(t,e,(e,t)=>{yN(i.inferences,e,t,128)}),dh(e,CN(i),Em(t.declaration))}function FO(e){if(!e)return ln;const t=eM(e);return gb(e)?t:yl(e.parent)?fw(t):hl(e.parent)?yw(t):t}function EO(e,t,n,r,i){if(bu(e))return function(e,t,n,r){const i=AA(t,e),o=Aj(e.attributes,i,r,n);return yN(r.inferences,o,i),CN(r)}(e,t,r,i);if(171!==e.kind&&227!==e.kind){const n=v(t.typeParameters,e=>!!yf(e)),r=xA(e,n?8:0);if(r){const o=Gg(t);if(eN(o)){const a=PA(e);if(n||xA(e,8)===r){const e=fS(r,Qw(Ww(a,1))),t=CO(e),n=t&&t.typeParameters?Dh(xh(t,t.typeParameters)):e;yN(i.inferences,n,o,128)}const s=Vw(t.typeParameters,t,i.flags),c=fS(r,a&&function(e){return e.outerReturnMapper??(e.outerReturnMapper=tS(e.returnMapper,Ww(e).mapper))}(a));yN(s.inferences,c,o),i.returnMapper=$(s.inferences,$j)?Qw(function(e){const t=N(e.inferences,$j);return t.length?$w(E(t,Xw),e.signature,e.flags,e.compareTypes):void 0}(s)):void 0}}}const o=JL(t),a=o?Math.min(jL(t)-1,n.length):n.length;if(o&&262144&o.flags){const e=b(i.inferences,e=>e.typeParameter===o);e&&(e.impliedArity=k(n,yO,a)<0?n.length-a:void 0)}const s=Rg(t);if(s&&eN(s)){const t=MO(e);yN(i.inferences,FO(t),s)}for(let e=0;e=n-1){const t=e[n-1];if(yO(t)){const e=238===t.kind?t.type:Aj(t.expression,r,i,o);return JC(e)?PO(e):Rv(SR(33,e,jt,231===t.kind?t.expression:t),a)}}const s=[],c=[],l=[];for(let _=t;_Zx(void 0,_a.Type_0_does_not_satisfy_the_constraint_1):void 0,l=r||_a.Type_0_does_not_satisfy_the_constraint_1;s||(s=Uk(o,a));const _=a[e];if(!IS(_,wd(fS(i,s),_),n?t[e]:void 0,l,c))return}}return a}function OO(e){if(GA(e.tagName))return 2;const t=Sf(eM(e.tagName));return u(mm(t,1))?0:u(mm(t,0))?1:2}function LO(e){return NA(e,Em(e)?-2147483615:33)}function jO(e,t,n,r,i,o,a){const s={errors:void 0,skipLogging:!0};if(xu(e))return function(e,t,n,r,i,o,a){const s=AA(t,e),c=$E(e)?QA(e):Aj(e.attributes,s,void 0,r),l=4&r?Nw(c):c;return function(){var t;if(nI(e))return!0;const n=!UE(e)&&!qE(e)||GA(e.tagName)||YE(e.tagName)?void 0:eM(e.tagName);if(!n)return!0;const r=mm(n,0);if(!u(r))return!0;const o=UJ(e);if(!o)return!0;const s=ts(o,111551,!0,!1,e);if(!s)return!0;const c=mm(P_(s),0);if(!u(c))return!0;let l=!1,_=0;for(const e of c){const t=mm(AL(e,0),0);if(u(t))for(const e of t){if(l=!0,RL(e))return!0;const t=jL(e);t>_&&(_=t)}}if(!l)return!0;let d=1/0;for(const e of r){const t=ML(e);t{n.push(e.expression)}),n}if(171===e.kind)return function(e){const t=e.expression,n=GL(e);if(n){const e=[];for(const r of n.parameters){const n=P_(r);e.push(RO(t,n))}return e}return un.fail()}(e);if(227===e.kind)return[e.left];if(bu(e))return e.attributes.properties.length>0||UE(e)&&e.parent.children.length>0?[e.attributes]:l;const t=e.arguments||l,n=vO(t);if(n>=0){const e=t.slice(0,n);for(let r=n;r{var o;const a=i.target.elementFlags[r],s=RO(n,4&a?Rv(t):t,!!(12&a),null==(o=i.target.labeledElementDeclarations)?void 0:o[r]);e.push(s)}):e.push(n)}return e}return t}function JO(e,t){return j.experimentalDecorators?function(e,t){switch(e.parent.kind){case 264:case 232:return 1;case 173:return Iv(e.parent)?3:2;case 175:case 178:case 179:return t.parameters.length<=2?2:3;case 170:return 3;default:return un.fail()}}(e,t):Math.min(Math.max(jL(t),1),2)}function zO(e){const t=vd(e),{start:n,length:r}=Qp(t,dF(e.expression)?e.expression.name:e.expression);return{start:n,length:r,sourceFile:t}}function qO(e,t,...n){if(fF(e)){const{sourceFile:r,start:i,length:o}=zO(e);return"message"in t?Gx(r,i,o,t,...n):Wp(r,t)}return"message"in t?Rp(e,t,...n):zp(vd(e),e,t)}function UO(e,t,n,r){var i;const o=vO(n);if(o>-1)return Rp(n[o],_a.A_spread_argument_must_either_have_a_tuple_type_or_be_passed_to_a_rest_parameter);let a,s=Number.POSITIVE_INFINITY,c=Number.NEGATIVE_INFINITY,l=Number.NEGATIVE_INFINITY,_=Number.POSITIVE_INFINITY;for(const e of t){const t=ML(e),r=jL(e);tl&&(l=t),n.length1&&(y=L(S,To,C,w)),y||(y=L(S,wo,C,w));const F=da(e);if(F.resolvedSignature!==li&&!n)return un.assert(F.resolvedSignature),F.resolvedSignature;if(y)return y;if(y=function(e,t,n,r,i){return un.assert(t.length>0),LB(e),r||1===t.length||t.some(e=>!!e.typeParameters)?function(e,t,n,r){const i=function(e,t){let n=-1,r=-1;for(let i=0;i=t)return i;a>r&&(r=a,n=i)}return n}(t,void 0===Ee?n.length:Ee),o=t[i],{typeParameters:a}=o;if(!a)return o;const s=mO(e)?e.typeArguments:void 0,c=s?Sh(o,function(e,t,n){const r=e.map(bJ);for(;r.length>t.length;)r.pop();for(;r.lengthe.thisParameter);let n;t.length&&(n=$O(t,t.map(CL)));const{min:r,max:i}=sT(e,WO),o=[];for(let t=0;taJ(e)?tIL(e,t))))}const a=B(e,e=>aJ(e)?ve(e.parameters):void 0);let s=128;if(0!==a.length){const t=Rv(Pb(B(e,_h),2));o.push(HO(a,t)),s|=1}return e.some(sJ)&&(s|=2),Ed(e[0].declaration,void 0,n,o,Bb(e.map(Gg)),void 0,r,s)}(t)}(e,S,T,!!n,r),F.resolvedSignature=y,f)if(!o&&p&&(o=_a.The_left_hand_side_of_an_instanceof_expression_must_be_assignable_to_the_first_argument_of_the_right_hand_side_s_Symbol_hasInstance_method),m)if(1===m.length||m.length>3){const t=m[m.length-1];let n;m.length>3&&(n=Zx(n,_a.The_last_overload_gave_the_following_error),n=Zx(n,_a.No_overload_matches_this_call)),o&&(n=Zx(n,o));const r=jO(e,T,t,wo,0,!0,()=>n);if(r)for(const e of r)t.declaration&&m.length>3&&aT(e,Rp(t.declaration,_a.The_last_overload_is_declared_here)),A(t,e),ho.add(e);else un.fail("No error for last overload signature")}else{const t=[];let n=0,r=Number.MAX_VALUE,i=0,a=0;for(const o of m){const s=jO(e,T,o,wo,0,!0,()=>Zx(void 0,_a.Overload_0_of_1_2_gave_the_following_error,a+1,S.length,kc(o)));s?(s.length<=r&&(r=s.length,i=a),n=Math.max(n,s.length),t.push(s)):un.fail("No error for 3 or fewer overload signatures"),a++}const s=n>1?t[i]:I(t);un.assert(s.length>0,"No errors reported for 3 or fewer overload signatures");let c=Zx(E(s,$p),_a.No_overload_matches_this_call);o&&(c=Zx(c,o));const l=[...O(s,e=>e.relatedInformation)];let _;if(v(s,e=>e.start===s[0].start&&e.length===s[0].length&&e.file===s[0].file)){const{file:e,start:t,length:n}=s[0];_={file:e,start:t,length:n,code:c.code,category:c.category,messageText:c,relatedInformation:l}}else _=zp(vd(e),j_(P=e)?dF(P.expression)?P.expression.name:P.expression:gF(P)?dF(P.tag)?P.tag.name:P.tag:bu(P)?P.tagName:P,c,l);A(m[0],_),ho.add(_)}else if(g)ho.add(UO(e,[g],T,o));else if(h)IO(h,e.typeArguments,!0,o);else if(!_){const n=N(t,e=>SO(e,x));0===n.length?ho.add(function(e,t,n,r){const i=n.length;if(1===t.length){const o=t[0],a=Tg(o.typeParameters),s=u(o.typeParameters);if(r){let t=Zx(void 0,_a.Expected_0_type_arguments_but_got_1,ai?a=Math.min(a,t):n1?b(s,e=>o_(e)&&Dd(e.body)):void 0;if(c){const e=Eg(c),n=!e.typeParameters;L([e],wo,n)&&aT(t,Rp(c,_a.The_call_would_have_succeeded_against_this_implementation_but_implementation_signatures_of_overloads_are_not_externally_visible))}m=i,g=o,h=a}function L(t,n,r,i=!1){if(m=void 0,g=void 0,h=void 0,r){const r=t[0];if($(x)||!kO(e,T,r,i))return;return jO(e,T,r,n,0,!1,void 0)?void(m=[r]):r}for(let r=0;r!!(4&e.flags)))return zo(e,_a.Cannot_create_an_instance_of_an_abstract_class),hO(e);const o=r.symbol&&mx(r.symbol);return o&&Nv(o,64)?(zo(e,_a.Cannot_create_an_instance_of_an_abstract_class),hO(e)):VO(e,i,t,n,0)}const o=mm(r,0);if(o.length){const r=VO(e,o,t,n,0);return ne||(r.declaration&&!sL(r.declaration)&&Gg(r)!==ln&&zo(e,_a.Only_a_void_function_can_be_called_with_the_new_keyword),Rg(r)===ln&&zo(e,_a.A_function_that_is_called_with_the_new_keyword_cannot_have_a_this_type_that_is_void)),r}return eL(e.expression,r,1),hO(e)}function QO(e,t){return Qe(e)?$(e,e=>QO(e,t)):1048576===e.compositeKind?$(e.compositeSignatures,t):t(e)}function YO(e,t){const n=uu(t);if(!u(n))return!1;const r=n[0];if(2097152&r.flags){const t=qd(r.types);let n=0;for(const i of r.types){if(!t[n]&&3&gx(i)){if(i.symbol===e)return!0;if(YO(e,i))return!0}n++}return!1}return r.symbol===e||YO(e,r)}function ZO(e,t,n){let r;const i=0===n,o=PM(t),a=o&&mm(o,n).length>0;if(1048576&t.flags){const e=t.types;let o=!1;for(const a of e)if(0!==mm(a,n).length){if(o=!0,r)break}else if(r||(r=Zx(r,i?_a.Type_0_has_no_call_signatures:_a.Type_0_has_no_construct_signatures,Tc(a)),r=Zx(r,i?_a.Not_all_constituents_of_type_0_are_callable:_a.Not_all_constituents_of_type_0_are_constructable,Tc(t))),o)break;o||(r=Zx(void 0,i?_a.No_constituent_of_type_0_is_callable:_a.No_constituent_of_type_0_is_constructable,Tc(t))),r||(r=Zx(r,i?_a.Each_member_of_the_union_type_0_has_signatures_but_none_of_those_signatures_are_compatible_with_each_other:_a.Each_member_of_the_union_type_0_has_construct_signatures_but_none_of_those_signatures_are_compatible_with_each_other,Tc(t)))}else r=Zx(r,i?_a.Type_0_has_no_call_signatures:_a.Type_0_has_no_construct_signatures,Tc(t));let s=i?_a.This_expression_is_not_callable:_a.This_expression_is_not_constructable;if(fF(e.parent)&&0===e.parent.arguments.length){const{resolvedSymbol:t}=da(e);t&&32768&t.flags&&(s=_a.This_expression_is_not_callable_because_it_is_a_get_accessor_Did_you_mean_to_use_it_without)}return{messageChain:Zx(r,s),relatedMessage:a?_a.Did_you_forget_to_use_await:void 0}}function eL(e,t,n,r){const{messageChain:i,relatedMessage:o}=ZO(e,t,n),a=zp(vd(e),e,i);if(o&&aT(a,Rp(e,o)),fF(e.parent)){const{start:t,length:n}=zO(e.parent);a.start=t,a.length=n}ho.add(a),tL(t,n,r?aT(a,r):a)}function tL(e,t,n){if(!e.symbol)return;const r=ua(e.symbol).originatingImport;if(r&&!_f(r)){const i=mm(P_(ua(e.symbol).target),t);if(!i||!i.length)return;aT(n,Rp(r,_a.Type_originates_at_this_import_A_namespace_style_import_cannot_be_called_or_constructed_and_will_cause_a_failure_at_runtime_Consider_using_a_default_import_or_import_require_here_instead))}}function nL(e,t){const n=rI(e),r=n&&hs(n),i=r&&pa(r,jB.Element,788968),o=i&&xe.symbolToEntityName(i,788968,e),a=mw.createFunctionTypeNode(void 0,[mw.createParameterDeclaration(void 0,void 0,"props",void 0,xe.typeToTypeNode(t,e))],o?mw.createTypeReferenceNode(o,void 0):mw.createKeywordTypeNode(133)),s=Xo(1,"props");return s.links.type=t,Ed(a,void 0,void 0,[s],i?Au(i):Et,void 0,1,0)}function rL(e){const t=da(vd(e));if(void 0!==t.jsxFragmentType)return t.jsxFragmentType;const n=jo(e);if(2!==j.jsx&&void 0===j.jsxFragmentFactory||"null"===n)return t.jsxFragmentType=wt;const r=1!==j.jsx&&3!==j.jsx,i=ho?_a.Using_JSX_fragments_requires_fragment_factory_0_to_be_in_scope_but_it_could_not_be_found:void 0,o=nI(e)??Ue(e,n,r?111551:111167,i,!0);if(void 0===o)return t.jsxFragmentType=Et;if(o.escapedName===RB.Fragment)return t.jsxFragmentType=P_(o);const a=2097152&o.flags?Ha(o):o,s=o&&hs(a),c=s&&pa(s,RB.Fragment,2),l=c&&P_(c);return t.jsxFragmentType=void 0===l?Et:l}function iL(e,t,n){const r=$E(e);let i;if(r)i=rL(e);else{if(GA(e.tagName)){const t=lI(e),n=nL(e,t);return OS(Aj(e.attributes,AA(n,e),void 0,0),t,e.tagName,e.attributes),u(e.typeArguments)&&(d(e.typeArguments,AB),ho.add(Bp(vd(e),e.typeArguments,_a.Expected_0_type_arguments_but_got_1,0,u(e.typeArguments)))),n}i=eM(e.tagName)}const o=Sf(i);if(al(o))return hO(e);const a=aI(i,e);return GO(i,o,a.length,0)?gO(e):0===a.length?(r?zo(e,_a.JSX_element_type_0_does_not_have_any_construct_or_call_signatures,Xd(e)):zo(e.tagName,_a.JSX_element_type_0_does_not_have_any_construct_or_call_signatures,Xd(e.tagName)),hO(e)):VO(e,a,t,n,0)}function oL(e,t,n){switch(e.kind){case 214:return function(e,t,n){if(108===e.expression.kind){const r=MP(e.expression);if(il(r)){for(const t of e.arguments)eM(t);return si}if(!al(r)){const i=yh(Xf(e));if(i)return VO(e,iu(r,i.typeArguments,i),t,n,0)}return gO(e)}let r,i=eM(e.expression);if(gl(e)){const t=bw(i,e.expression);r=t===i?0:bl(e)?16:8,i=t}else r=0;if(i=PI(i,e.expression,EI),i===dn)return _i;const o=Sf(i);if(al(o))return hO(e);const a=mm(o,0),s=mm(o,1).length;if(GO(i,o,a.length,s))return!al(i)&&e.typeArguments&&zo(e,_a.Untyped_function_calls_may_not_accept_type_arguments),gO(e);if(!a.length){if(s)zo(e,_a.Value_of_type_0_is_not_callable_Did_you_mean_to_include_new,Tc(i));else{let t;if(1===e.arguments.length){const n=vd(e).text;Va(n.charCodeAt(Qa(n,e.expression.end,!0)-1))&&(t=Rp(e.expression,_a.Are_you_missing_a_semicolon))}eL(e.expression,o,0,t)}return hO(e)}return 8&n&&!e.typeArguments&&a.some(KO)?(Wj(e,n),li):a.some(e=>Em(e.declaration)&&!!Rc(e.declaration))?(zo(e,_a.Value_of_type_0_is_not_callable_Did_you_mean_to_include_new,Tc(i)),hO(e)):VO(e,a,t,n,r)}(e,t,n);case 215:return XO(e,t,n);case 216:return function(e,t,n){const r=eM(e.tag),i=Sf(r);if(al(i))return hO(e);const o=mm(i,0),a=mm(i,1).length;if(GO(r,i,o.length,a))return gO(e);if(!o.length){if(_F(e.parent)){const t=Rp(e.tag,_a.It_is_likely_that_you_are_missing_a_comma_to_separate_these_two_template_expressions_They_form_a_tagged_template_expression_which_cannot_be_invoked);return ho.add(t),hO(e)}return eL(e.tag,i,0),hO(e)}return VO(e,o,t,n,0)}(e,t,n);case 171:return function(e,t,n){const r=eM(e.expression),i=Sf(r);if(al(i))return hO(e);const o=mm(i,0),a=mm(i,1).length;if(GO(r,i,o.length,a))return gO(e);if(s=e,(c=o).length&&v(c,e=>0===e.minArgumentCount&&!aJ(e)&&e.parameters.length!!e.typeParameters&&SO(e,n)),e=>{const t=IO(e,n,!0);return t?dh(e,t,Em(e.declaration)):e})}}function kL(e,t,n){const r=eM(e,n),i=Pk(t);return al(i)?i:(OS(r,i,uc(t.parent,e=>239===e.kind||351===e.kind),e,_a.Type_0_does_not_satisfy_the_expected_type_1),r)}function SL(e){switch(e.keywordToken){case 102:return Ky();case 105:const t=TL(e);return al(t)?Et:function(e){const t=Xo(0,"NewTargetExpression"),n=Xo(4,"target",8);n.parent=t,n.links.type=e;const r=Gu([n]);return t.members=r,$s(t,r,l,l,l)}(t);default:un.assertNever(e.keywordToken)}}function TL(e){const t=rm(e);return t?177===t.kind?P_(ks(t.parent)):P_(ks(t)):(zo(e,_a.Meta_property_0_is_only_allowed_in_the_body_of_a_function_declaration_function_expression_or_constructor,"new.target"),Et)}function CL(e){const t=e.valueDeclaration;return Pl(P_(e),!1,!!t&&(Eu(t)||XT(t)))}function wL(e,t,n){switch(e.name.kind){case 80:{const r=e.name.escapedText;return e.dotDotDotToken?12&n?r:`${r}_${t}`:3&n?r:`${r}_n`}case 208:if(e.dotDotDotToken){const r=e.name.elements,i=tt(ye(r),lF),o=r.length-((null==i?void 0:i.dotDotDotToken)?1:0);if(t=r-1)return t===r-1?o:Rv(Ax(o,Wt));const a=[],s=[],c=[];for(let n=t;n!(1&e)),i=r<0?n.target.fixedLength:r;i>0&&(t=e.parameters.length-1+i)}}if(void 0===t){if(!n&&32&e.flags)return 0;t=e.minArgumentCount}if(r)return t;for(let n=t-1;n>=0&&!(131072&GD(AL(e,n),bO).flags);n--)t=n;e.resolvedMinArgumentCount=t}return e.resolvedMinArgumentCount}function RL(e){if(aJ(e)){const t=P_(e.parameters[e.parameters.length-1]);return!rw(t)||!!(12&t.target.combinedFlags)}return!1}function BL(e){if(aJ(e)){const t=P_(e.parameters[e.parameters.length-1]);if(!rw(t))return il(t)?cr:t;if(12&t.target.combinedFlags)return ib(t,t.target.fixedLength)}}function JL(e){const t=BL(e);return!t||OC(t)||il(t)?void 0:t}function zL(e){return qL(e,_n)}function qL(e,t){return e.parameters.length>0?AL(e,0):t}function UL(e,t,n){const r=e.parameters.length-(aJ(e)?1:0);for(let i=0;i=0);const i=PD(e.parent)?P_(ks(e.parent.parent)):SJ(e.parent),o=PD(e.parent)?jt:TJ(e.parent),a=mk(r),s=Qo("target",i),c=Qo("propertyKey",o),l=Qo("parameterIndex",a);n.decoratorSignature=OM(void 0,void 0,[s,c,l],ln);break}case 175:case 178:case 179:case 173:{const e=t;if(!u_(e.parent))break;const r=Qo("target",SJ(e)),i=Qo("propertyKey",TJ(e)),o=ND(e)?ln:Sv(bJ(e));if(!ND(t)||Iv(t)){const t=Qo("descriptor",Sv(bJ(e)));n.decoratorSignature=OM(void 0,void 0,[r,i,t],Pb([o,ln]))}else n.decoratorSignature=OM(void 0,void 0,[r,i],Pb([o,ln]));break}}return n.decoratorSignature===si?void 0:n.decoratorSignature}(e):KL(e)}function XL(e){const t=ev(!0);return t!==On?ay(t,[e=AM(FM(e))||Ot]):Ot}function QL(e){const t=tv(!0);return t!==On?ay(t,[e=AM(FM(e))||Ot]):Ot}function YL(e,t){const n=XL(t);return n===Ot?(zo(e,_f(e)?_a.A_dynamic_import_call_returns_a_Promise_Make_sure_you_have_a_declaration_for_Promise_or_include_ES2015_in_your_lib_option:_a.An_async_function_or_method_must_return_a_Promise_Make_sure_you_have_a_declaration_for_Promise_or_include_ES2015_in_your_lib_option),Et):(nv(!0)||zo(e,_f(e)?_a.A_dynamic_import_call_in_ES5_requires_the_Promise_constructor_Make_sure_you_have_a_declaration_for_the_Promise_constructor_or_include_ES2015_in_your_lib_option:_a.An_async_function_or_method_in_ES5_requires_the_Promise_constructor_Make_sure_you_have_a_declaration_for_the_Promise_constructor_or_include_ES2015_in_your_lib_option),n)}function ZL(e,t){if(!e.body)return Et;const n=Oh(e),r=!!(2&n),i=!!(1&n);let o,a,s,c=ln;if(242!==e.body.kind)o=Ij(e.body,t&&-9&t),r&&(o=FM(CM(o,!1,e,_a.The_return_type_of_an_async_function_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member)));else if(i){const n=oj(e,t);n?n.length>0&&(o=Pb(n,2)):c=_n;const{yieldTypes:r,nextTypes:i}=function(e,t){const n=[],r=[],i=!!(2&Oh(e));return Ff(e.body,e=>{const o=e.expression?eM(e.expression,t):Mt;let a;if(ce(n,tj(e,o,wt,i)),e.asteriskToken){const t=ER(o,i?19:17,e.expression);a=t&&t.nextType}else a=xA(e,void 0);a&&ce(r,a)}),{yieldTypes:n,nextTypes:r}}(e,t);a=$(r)?Pb(r,2):void 0,s=$(i)?Bb(i):void 0}else{const r=oj(e,t);if(!r)return 2&n?YL(e,_n):_n;if(0===r.length){const t=eA(e,void 0),r=t&&32768&(KR(t,n)||ln).flags?jt:ln;return 2&n?YL(e,r):r}o=Pb(r,2)}if(o||a||s){if(a&&zw(e,a,3),o&&zw(e,o,1),s&&zw(e,s,2),o&&KC(o)||a&&KC(a)||s&&KC(s)){const t=LA(e),n=t?t===Eg(e)?i?void 0:o:yA(Gg(t),e,void 0):void 0;i?(a=nw(a,n,0,r),o=nw(o,n,1,r),s=nw(s,n,2,r)):o=function(e,t,n){return e&&KC(e)&&(e=tw(e,t?n?TM(t):t:void 0)),e}(o,n,r)}a&&(a=jw(a)),o&&(o=jw(o)),s&&(s=jw(s))}return i?ej(a||_n,o||c,s||ZP(2,e)||Ot,r):r?XL(o||c):o||c}function ej(e,t,n,r){const i=r?yi:vi,o=i.getGlobalGeneratorType(!1);if(e=i.resolveIterationType(e,void 0)||Ot,t=i.resolveIterationType(t,void 0)||Ot,o===On){const r=i.getGlobalIterableIteratorType(!1);return r!==On?kv(r,[e,t,n]):(i.getGlobalIterableIteratorType(!0),Nn)}return kv(o,[e,t,n])}function tj(e,t,n,r){if(t===dn)return dn;const i=e.expression||e,o=e.asteriskToken?SR(r?19:17,t,n,i):t;return r?PM(o,i,e.asteriskToken?_a.Type_of_iterated_elements_of_a_yield_Asterisk_operand_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member:_a.Type_of_yield_operand_in_an_async_generator_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member):o}function nj(e,t,n){let r=0;for(let i=0;i=t?n[i]:void 0;r|=void 0!==o?$B.get(o)||32768:0}return r}function rj(e){const t=da(e);if(void 0===t.isExhaustive){t.isExhaustive=0;const n=function(e){if(222===e.expression.kind){const t=gD(e);if(!t)return!1;const n=ff(Ij(e.expression.expression)),r=nj(0,0,t);return 3&n.flags?!(556800&~r):!UD(n,e=>HN(e,r)===r)}const t=ff(Ij(e.expression));if(!XC(t))return!1;const n=mD(e);return!(!n.length||$(n,HC))&&(r=nF(t,dk),i=n,1048576&r.flags?!d(r.types,e=>!T(i,e)):T(i,r));var r,i}(e);0===t.isExhaustive&&(t.isExhaustive=n)}else 0===t.isExhaustive&&(t.isExhaustive=!1);return t.isExhaustive}function ij(e){return e.endFlowNode&&GF(e.endFlowNode)}function oj(e,t){const n=Oh(e),r=[];let i=ij(e),o=!1;if(Df(e.body,a=>{let s=a.expression;if(s){if(s=ah(s,!0),2&n&&224===s.kind&&(s=ah(s.expression,!0)),214===s.kind&&80===s.expression.kind&&Ij(s.expression).symbol===xs(e.symbol)&&(!RT(e.symbol.valueDeclaration)||nE(s.expression)))return void(o=!0);let i=Ij(s,t&&-9&t);2&n&&(i=FM(CM(i,!1,e,_a.The_return_type_of_an_async_function_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member))),131072&i.flags&&(o=!0),ce(r,i)}else i=!0}),0!==r.length||i||!o&&!function(e){switch(e.kind){case 219:case 220:return!0;case 175:return 211===e.parent.kind;default:return!1}}(e))return!(H&&r.length&&i)||sL(e)&&r.some(t=>t.symbol===e.symbol)||ce(r,jt),r}function aj(e,t){a(function(){const n=Oh(e),r=t&&KR(t,n);if(r&&(gj(r,16384)||32769&r.flags))return;if(174===e.kind||Nd(e.body)||242!==e.body.kind||!ij(e))return;const i=1024&e.flags,o=gv(e)||e;if(r&&131072&r.flags)zo(o,_a.A_function_returning_never_cannot_have_a_reachable_end_point);else if(r&&!i)zo(o,_a.A_function_whose_declared_type_is_neither_undefined_void_nor_any_must_return_a_value);else if(r&&H&&!FS(jt,r))zo(o,_a.Function_lacks_ending_return_statement_and_return_type_does_not_include_undefined);else if(j.noImplicitReturns){if(!r){if(!i)return;const t=Gg(Eg(e));if(XR(e,t))return}zo(o,_a.Not_all_code_paths_return_a_value)}})}function sj(e,t){if(un.assert(175!==e.kind||Jf(e)),LB(e),vF(e)&&uR(e,e.name),t&&4&t&&vS(e)){if(!gv(e)&&!LT(e)){const n=jA(e);if(n&&eN(Gg(n))){const n=da(e);if(n.contextFreeType)return n.contextFreeType;const r=ZL(e,t),i=Ed(void 0,void 0,void 0,l,r,void 0,0,64),o=$s(e.symbol,P,[i],l,l);return o.objectFlags|=262144,n.contextFreeType=o}}return Ln}return ZJ(e)||219!==e.kind||oz(e),function(e,t){const n=da(e);if(!(64&n.flags)){const r=jA(e);if(!(64&n.flags)){n.flags|=64;const i=fe(mm(P_(ks(e)),0));if(!i)return;if(vS(e))if(r){const n=PA(e);let o;if(t&&2&t){UL(i,r,n);const e=BL(r);e&&262144&e.flags&&(o=aS(r,n.nonFixingMapper))}o||(o=n?aS(r,n.mapper):r),function(e,t){if(t.typeParameters){if(e.typeParameters)return;e.typeParameters=t.typeParameters}if(t.thisParameter){const n=e.thisParameter;(!n||n.valueDeclaration&&!n.valueDeclaration.type)&&(n||(e.thisParameter=ww(t.thisParameter,void 0)),VL(e.thisParameter,P_(t.thisParameter)))}const n=e.parameters.length-(aJ(e)?1:0);for(let r=0;re.parameters.length){const n=PA(e);t&&2&t&&UL(i,r,n)}if(r&&!Zg(e)&&!i.resolvedReturnType){const n=ZL(e,t);i.resolvedReturnType||(i.resolvedReturnType=n)}iM(e)}}}(e,t),P_(ks(e))}function cj(e,t,n,r=!1){if(!FS(t,yn)){const i=r&&SM(t);return Wo(e,!!i&&FS(i,yn),n),!1}return!0}function lj(e){if(!fF(e))return!1;if(!ng(e))return!1;const t=Ij(e.arguments[2]);if(el(t,"value")){const e=pm(t,"writable"),n=e&&P_(e);if(!n||n===Ht||n===Qt)return!0;if(e&&e.valueDeclaration&&rP(e.valueDeclaration)){const t=eM(e.valueDeclaration.initializer);if(t===Ht||t===Qt)return!0}return!1}return!pm(t,"set")}function _j(e){return!!(8&rx(e)||4&e.flags&&8&ix(e)||3&e.flags&&6&hI(e)||98304&e.flags&&!(65536&e.flags)||8&e.flags||$(e.declarations,lj))}function uj(e,t,n){var r,i;if(0===n)return!1;if(_j(t)){if(4&t.flags&&Sx(e)&&110===e.expression.kind){const n=iE(e);if(!n||177!==n.kind&&!sL(n))return!0;if(t.valueDeclaration){const e=NF(t.valueDeclaration),o=n.parent===t.valueDeclaration.parent,a=n===t.valueDeclaration.parent,s=e&&(null==(r=t.parent)?void 0:r.valueDeclaration)===n.parent,c=e&&(null==(i=t.parent)?void 0:i.valueDeclaration)===n;return!(o||a||s||c)}}return!0}if(Sx(e)){const t=ah(e.expression);if(80===t.kind){const e=da(t).resolvedSymbol;if(2097152&e.flags){const t=Ca(e);return!!t&&275===t.kind}}}return!1}function dj(e,t,n){const r=NA(e,39);return 80===r.kind||Sx(r)?!(64&r.flags&&(zo(e,n),1)):(zo(e,t),!1)}function pj(e){let t=!1;const n=Yf(e);if(n&&ED(n))zo(e,TF(e)?_a.await_expression_cannot_be_used_inside_a_class_static_block:_a.await_using_statements_cannot_be_used_inside_a_class_static_block),t=!0;else if(!(65536&e.flags))if(nm(e)){const n=vd(e);if(!vz(n)){let r;if(!hp(n,j)){r??(r=Gp(n,e.pos));const i=TF(e)?_a.await_expressions_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_this_file_has_no_imports_or_exports_Consider_adding_an_empty_export_to_make_this_file_a_module:_a.await_using_statements_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_this_file_has_no_imports_or_exports_Consider_adding_an_empty_export_to_make_this_file_a_module,o=Gx(n,r.start,r.length,i);ho.add(o),t=!0}switch(R){case 100:case 101:case 102:case 199:if(1===n.impliedNodeFormat){r??(r=Gp(n,e.pos)),ho.add(Gx(n,r.start,r.length,_a.The_current_file_is_a_CommonJS_module_and_cannot_use_await_at_the_top_level)),t=!0;break}case 7:case 99:case 200:case 4:if(M>=4)break;default:r??(r=Gp(n,e.pos));const i=TF(e)?_a.Top_level_await_expressions_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_node16_node18_node20_nodenext_or_preserve_and_the_target_option_is_set_to_es2017_or_higher:_a.Top_level_await_using_statements_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_node16_node18_node20_nodenext_or_preserve_and_the_target_option_is_set_to_es2017_or_higher;ho.add(Gx(n,r.start,r.length,i)),t=!0}}}else{const r=vd(e);if(!vz(r)){const i=Gp(r,e.pos),o=TF(e)?_a.await_expressions_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules:_a.await_using_statements_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules,a=Gx(r,i.start,i.length,o);!n||177===n.kind||2&Oh(n)||aT(a,Rp(n,_a.Did_you_mean_to_mark_this_function_as_async)),ho.add(a),t=!0}}return TF(e)&&YP(e)&&(zo(e,_a.await_expressions_cannot_be_used_in_a_parameter_initializer),t=!0),t}function fj(e){return gj(e,2112)?hj(e,3)||gj(e,296)?yn:$t:Wt}function mj(e,t){if(gj(e,t))return!0;const n=ff(e);return!!n&&gj(n,t)}function gj(e,t){if(e.flags&t)return!0;if(3145728&e.flags){const n=e.types;for(const e of n)if(gj(e,t))return!0}return!1}function hj(e,t,n){return!!(e.flags&t)||!(n&&114691&e.flags)&&(!!(296&t)&&FS(e,Wt)||!!(2112&t)&&FS(e,$t)||!!(402653316&t)&&FS(e,Vt)||!!(528&t)&&FS(e,sn)||!!(16384&t)&&FS(e,ln)||!!(131072&t)&&FS(e,_n)||!!(65536&t)&&FS(e,zt)||!!(32768&t)&&FS(e,jt)||!!(4096&t)&&FS(e,cn)||!!(67108864&t)&&FS(e,mn))}function yj(e,t,n){return 1048576&e.flags?v(e.types,e=>yj(e,t,n)):hj(e,t,n)}function vj(e){return!!(16&gx(e))&&!!e.symbol&&bj(e.symbol)}function bj(e){return!!(128&e.flags)}function xj(e){const t=LR("hasInstance");if(yj(e,67108864)){const n=pm(e,t);if(n){const e=P_(n);if(e&&0!==mm(e,0).length)return e}}}function kj(e,t,n,r,i=!1){const o=e.properties,a=o[n];if(304===a.kind||305===a.kind){const e=a.name,n=Hb(e);if(sC(n)){const e=pm(t,cC(n));e&&(oO(e,a,i),vI(a,!1,!0,t,e))}const r=xl(a,Ax(t,n,32|(MA(a)?16:0),e));return Tj(305===a.kind?a:a.initializer,r)}if(306===a.kind){if(!(nib(e,n)):Rv(r),i);zo(o.operatorToken,_a.A_rest_element_cannot_have_an_initializer)}}}function Tj(e,t,n,r){let i;if(305===e.kind){const r=e;r.objectAssignmentInitializer&&(H&&!KN(eM(r.objectAssignmentInitializer),16777216)&&(t=XN(t,524288)),function(e,t,n,r){const i=t.kind;if(64===i&&(211===e.kind||210===e.kind))return Tj(e,eM(n,r),r,110===n.kind);let o;o=Kv(i)?xR(e,r):eM(e,r);Dj(e,t,n,o,eM(n,r),r,void 0)}(r.name,r.equalsToken,r.objectAssignmentInitializer,n)),i=e.name}else i=e;return 227===i.kind&&64===i.operatorToken.kind&&(pe(i,n),i=i.left,H&&(t=XN(t,524288))),211===i.kind?function(e,t,n){const r=e.properties;if(H&&0===r.length)return AI(t,e);for(let i=0;i=32&&Vo(aP(rh(n.parent.parent)),s||t,_a.This_operation_can_be_simplified_This_shift_is_identical_to_0_1_2,Xd(e),Fa(c),r.value%32)}return l}case 40:case 65:if(r===dn||i===dn)return dn;let h;if(hj(r,402653316)||hj(i,402653316)||(r=AI(r,e),i=AI(i,n)),hj(r,296,!0)&&hj(i,296,!0)?h=Wt:hj(r,2112,!0)&&hj(i,2112,!0)?h=$t:hj(r,402653316,!0)||hj(i,402653316,!0)?h=Vt:(il(r)||il(i))&&(h=al(r)||al(i)?Et:wt),h&&!d(c))return h;if(!h){const e=402655727;return m((t,n)=>hj(t,e)&&hj(n,e)),wt}return 65===c&&p(h),h;case 30:case 32:case 33:case 34:return d(c)&&(r=YC(AI(r,e)),i=YC(AI(i,n)),f((e,t)=>{if(il(e)||il(t))return!0;const n=FS(e,yn),r=FS(t,yn);return n&&r||!n&&!r&&AS(e,t)})),sn;case 35:case 36:case 37:case 38:if(!(o&&64&o)){if((Ol(e)||Ol(n))&&(!Em(e)||37===c||38===c)){const e=35===c||37===c;zo(s,_a.This_condition_will_always_return_0_since_JavaScript_compares_objects_by_reference_not_value,e?"false":"true")}!function(e,t,n,r){const i=g(ah(n)),o=g(ah(r));if(i||o){const a=zo(e,_a.This_condition_will_always_return_0,Fa(37===t||35===t?97:112));if(i&&o)return;const s=38===t||36===t?Fa(54):"",c=i?r:n,l=ah(c);aT(a,Rp(c,_a.Did_you_mean_0,`${s}Number.isNaN(${ab(l)?Mp(l):"..."})`))}}(s,c,e,n),f((e,t)=>wj(e,t)||wj(t,e))}return sn;case 104:return function(e,t,n,r,i){if(n===dn||r===dn)return dn;!il(n)&&yj(n,402784252)&&zo(e,_a.The_left_hand_side_of_an_instanceof_expression_must_be_of_type_any_an_object_type_or_a_type_parameter),un.assert(mb(e.parent));const o=aL(e.parent,void 0,i);return o===li?dn:(IS(Gg(o),sn,t,_a.An_object_s_Symbol_hasInstance_method_must_return_a_boolean_value_for_it_to_be_used_on_the_right_hand_side_of_an_instanceof_expression),sn)}(e,n,r,i,o);case 103:return function(e,t,n,r){return n===dn||r===dn?dn:(sD(e)?((Me===An||!!(2097152&e.flags)&&XS(ff(e)))&&zo(t,_a.Type_0_may_represent_a_primitive_value_which_is_not_permitted_as_the_right_operand_of_the_in_operator,Tc(r)),sn)}(e,n,r,i);case 56:case 77:{const e=KN(r,4194304)?Pb([(_=H?r:QC(i),nF(_,uw)),i]):r;return 77===c&&p(i),e}case 57:case 76:{const e=KN(r,8388608)?Pb([fw(_w(r)),i],2):r;return 76===c&&p(i),e}case 61:case 78:{const e=KN(r,262144)?Pb([fw(r),i],2):r;return 78===c&&p(i),e}case 64:const y=NF(e.parent)?tg(e.parent):0;return function(e,t){if(2===e)for(const e of Dp(t)){const t=P_(e);if(t.symbol&&32&t.symbol.flags){const t=e.escapedName,n=Ue(e.valueDeclaration,t,788968,void 0,!1);(null==n?void 0:n.declarations)&&n.declarations.some(VP)&&(aa(n,_a.Duplicate_identifier_0,mc(t),e),aa(e,_a.Duplicate_identifier_0,mc(t),n))}}}(y,i),function(t){var r;switch(t){case 2:return!0;case 1:case 5:case 6:case 3:case 4:const t=Ss(e),i=$m(n);return!!i&&uF(i)&&!!(null==(r=null==t?void 0:t.exports)?void 0:r.size);default:return!1}}(y)?(524288&i.flags&&(2===y||6===y||GS(i)||$N(i)||1&gx(i))||p(i),r):(p(i),i);case 28:if(!j.allowUnreachableCode&&Cj(e)&&!(218===(l=e.parent).parent.kind&&zN(l.left)&&"0"===l.left.text&&(fF(l.parent.parent)&&l.parent.parent.expression===l.parent||216===l.parent.parent.kind)&&(Sx(l.right)||aD(l.right)&&"eval"===l.right.escapedText))){const t=vd(e),n=Qa(t.text,e.pos);t.parseDiagnostics.some(e=>e.code===_a.JSX_expressions_must_have_one_parent_element.code&&Ps(e,n))||zo(e,_a.Left_side_of_comma_operator_is_unused_and_has_no_side_effects)}return i;default:return un.fail()}var l,_;function u(e,t){return hj(e,2112)&&hj(t,2112)}function d(t){const o=mj(r,12288)?e:mj(i,12288)?n:void 0;return!o||(zo(o,_a.The_0_operator_cannot_be_applied_to_type_symbol,Fa(t)),!1)}function p(i){eb(c)&&a(function(){let o=r;if(rz(t.kind)&&212===e.kind&&(o=OI(e,void 0,!0)),dj(e,_a.The_left_hand_side_of_an_assignment_expression_must_be_a_variable_or_a_property_access,_a.The_left_hand_side_of_an_assignment_expression_may_not_be_an_optional_property_access)){let t;if(_e&&dF(e)&&gj(i,32768)){const n=el(Qj(e.expression),e.name.escapedText);wT(i,n)&&(t=_a.Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_type_of_the_target)}OS(i,o,e,n,t)}})}function f(e){return!e(r,i)&&(m(e),!0)}function m(e){let n=!1;const o=s||t;if(e){const t=AM(r),o=AM(i);n=!(t===r&&o===i)&&!(!t||!o)&&e(t,o)}let a=r,c=i;!n&&e&&([a,c]=function(e,t,n){let r=e,i=t;const o=QC(e),a=QC(t);return n(o,a)||(r=o,i=a),[r,i]}(r,i,e));const[l,_]=wc(a,c);(function(e,n,r,i){switch(t.kind){case 37:case 35:case 38:case 36:return Wo(e,n,_a.This_comparison_appears_to_be_unintentional_because_the_types_0_and_1_have_no_overlap,r,i);default:return}})(o,n,l,_)||Wo(o,n,_a.Operator_0_cannot_be_applied_to_types_1_and_2,Fa(t.kind),l,_)}function g(e){if(aD(e)&&"NaN"===e.escapedText){const t=Wr||(Wr=zy("NaN",!1));return!!t&&t===NN(e)}return!1}}function Fj(e){const t=e.parent;return yF(t)&&Fj(t)||pF(t)&&t.argumentExpression===e}function Ej(e){const t=[e.head.text],n=[];for(const r of e.templateSpans){const e=eM(r.expression);mj(e,12288)&&zo(r.expression,_a.Implicit_conversion_of_a_symbol_to_a_string_will_fail_at_runtime_Consider_wrapping_this_expression_in_String),t.push(r.literal.text),n.push(FS(e,vn)?e:Vt)}const r=216!==e.parent.kind&&Ce(e).value;return r?uk(fk(r)):Jj(e)||Fj(e)||UD(xA(e,void 0)||Ot,Pj)?ex(t,n):Vt}function Pj(e){return!!(134217856&e.flags||58982400&e.flags&&gj(pf(e)||Ot,402653316))}function Aj(e,t,n,r){const i=function(e){return GE(e)&&!qE(e.parent)?e.parent.parent:e}(e);wA(i,t,!1),function(e,t){Oi[ji]=e,Li[ji]=t,ji++}(i,n);const o=eM(e,1|r|(n?2:0));n&&n.intraExpressionInferenceSites&&(n.intraExpressionInferenceSites=void 0);const a=gj(o,2944)&&Bj(o,yA(t,e,void 0))?dk(o):o;return ji--,Oi[ji]=void 0,Li[ji]=void 0,FA(),a}function Ij(e,t){if(t)return eM(e,t);const n=da(e);if(!n.resolvedType){const r=Si,i=ri;Si=Ti,ri=void 0,n.resolvedType=eM(e,t),ri=i,Si=r}return n.resolvedType}function Oj(e){return 217===(e=ah(e,!0)).kind||235===e.kind||TA(e)}function Lj(e,t,n){const r=Vm(e);if(Em(e)){const n=eC(e);if(n)return kL(r,n,t)}const i=Yj(r)||(n?Aj(r,n,void 0,t||0):Ij(r,t));if(TD(lF(e)?nc(e):e)){if(207===e.name.kind&&xN(i))return function(e,t){let n;for(const r of t.elements)if(r.initializer){const t=jj(r);t&&!pm(e,t)&&(n=ie(n,r))}if(!n)return e;const r=Gu();for(const t of Dp(e))r.set(t.escapedName,t);for(const e of n){const t=Xo(16777220,jj(e));t.links.type=Yl(e,!1,!1),r.set(t.escapedName,t)}const i=$s(e.symbol,r,l,l,Jm(e));return i.objectFlags=e.objectFlags,i}(i,e.name);if(208===e.name.kind&&rw(i))return function(e,t){if(12&e.target.combinedFlags||dy(e)>=t.elements.length)return e;const n=t.elements,r=xb(e).slice(),i=e.target.elementFlags.slice();for(let t=dy(e);tBj(e,t));if(58982400&t.flags){const n=pf(t)||Ot;return gj(n,4)&&gj(e,128)||gj(n,8)&&gj(e,256)||gj(n,64)&&gj(e,2048)||gj(n,4096)&&gj(e,8192)||Bj(e,n)}return!!(406847616&t.flags&&gj(e,128)||256&t.flags&&gj(e,256)||2048&t.flags&&gj(e,2048)||512&t.flags&&gj(e,512)||8192&t.flags&&gj(e,8192))}return!1}function Jj(e){const t=e.parent;return W_(t)&&kl(t.type)||TA(t)&&kl(CA(t))||hL(e)&&rf(xA(e,0))||(yF(t)||_F(t)||PF(t))&&Jj(t)||(rP(t)||iP(t)||qF(t))&&Jj(t.parent)}function zj(e,t,n){const r=eM(e,t,n);return Jj(e)||Of(e)?dk(r):Oj(e)?r:tw(r,yA(xA(e,void 0),e,void 0))}function qj(e,t){return 168===e.name.kind&&BA(e.name),zj(e.initializer,t)}function Uj(e,t){return dz(e),168===e.name.kind&&BA(e.name),Vj(e,sj(e,t),t)}function Vj(e,t,n){if(n&&10&n){const r=NO(t,0,!0),i=NO(t,1,!0),o=r||i;if(o&&o.typeParameters){const t=hA(e,2);if(t){const i=NO(fw(t),r?0:1,!1);if(i&&!i.typeParameters){if(8&n)return Wj(e,n),Ln;const t=PA(e),r=t.signature&&Gg(t.signature),a=r&&wO(r);if(a&&!a.typeParameters&&!v(t.inferences,$j)){const e=function(e,t){const n=[];let r,i;for(const o of t){const t=o.symbol.escapedName;if(Kj(e.inferredTypeParameters,t)||Kj(n,t)){const a=zs(Xo(262144,Gj(K(e.inferredTypeParameters,n),t)));a.target=o,r=ie(r,o),i=ie(i,a),n.push(a)}else n.push(o)}if(i){const e=Uk(r,i);for(const t of i)t.mapper=e}return n}(t,o.typeParameters),n=xh(o,e),r=E(t.inferences,e=>Gw(e.typeParameter));if(qw(n,i,(e,t)=>{yN(r,e,t,0,!0)}),$(r,$j)&&(Uw(n,i,(e,t)=>{yN(r,e,t)}),!function(e,t){for(let n=0;ne.symbol.escapedName===t)}function Gj(e,t){let n=t.length;for(;n>1&&t.charCodeAt(n-1)>=48&&t.charCodeAt(n-1)<=57;)n--;const r=t.slice(0,n);for(let t=1;;t++){const n=r+t;if(!Kj(e,n))return n}}function Xj(e){const t=CO(e);if(t&&!t.typeParameters)return Gg(t)}function Qj(e){const t=Yj(e);if(t)return t;if(268435456&e.flags&&ri){const t=ri[ZB(e)];if(t)return t}const n=Ni,r=eM(e,64);return Ni!==n&&((ri||(ri=[]))[ZB(e)]=r,NT(e,268435456|e.flags)),r}function Yj(e){let t=ah(e,!0);if(TA(t)){const e=CA(t);if(!kl(e))return Pk(e)}if(t=ah(e),TF(t)){const e=Yj(t.expression);return e?PM(e):void 0}return!fF(t)||108===t.expression.kind||Lm(t,!0)||dL(t)||_f(t)?W_(t)&&!kl(t.type)?Pk(t.type):Il(e)||a_(e)?eM(e):void 0:gl(t)?function(e){const t=eM(e.expression),n=bw(t,e.expression),r=Xj(t);return r&&vw(r,e,n!==t)}(t):Xj(wI(t.expression))}function Zj(e){const t=da(e);if(t.contextFreeType)return t.contextFreeType;wA(e,wt,!1);const n=t.contextFreeType=eM(e,4);return FA(),n}function eM(i,o,s){var c,_;null==(c=Hn)||c.push(Hn.Phase.Check,"checkExpression",{kind:i.kind,pos:i.pos,end:i.end,path:i.tracingPath});const u=r;r=i,h=0;const d=function(e,r,i){const o=e.kind;if(t)switch(o){case 232:case 219:case 220:t.throwIfCancellationRequested()}switch(o){case 80:return SP(e,r);case 81:return function(e){!function(e){if(!Xf(e))return kz(e,_a.Private_identifiers_are_not_allowed_outside_class_bodies);if(!YF(e.parent)){if(!bm(e))return kz(e,_a.Private_identifiers_are_only_allowed_in_class_bodies_and_may_only_be_used_as_part_of_a_class_member_declaration_property_access_or_on_the_left_hand_side_of_an_in_expression);const t=NF(e.parent)&&103===e.parent.operatorToken.kind;RI(e)||t||kz(e,_a.Cannot_find_name_0,gc(e))}}(e);const t=RI(e);return t&&oO(t,void 0,!1),wt}(e);case 110:return OP(e);case 108:return MP(e);case 106:return Ut;case 15:case 11:return _N(e)?Ft:uk(fk(e.text));case 9:return wz(e),uk(mk(+e.text));case 10:return function(e){if(!(rF(e.parent)||CF(e.parent)&&rF(e.parent.parent))&&!(33554432&e.flags)&&M<7&&kz(e,_a.BigInt_literals_are_not_available_when_targeting_lower_than_ES2020));}(e),uk(gk({negative:!1,base10Value:mT(e.text)}));case 112:return Yt;case 97:return Ht;case 229:return Ej(e);case 14:return function(e){const t=da(e);return 1&t.flags||(t.flags|=1,a(()=>function(e){const t=vd(e);if(!vz(t)&&!e.isUnterminated){let r;n??(n=gs(99,!0)),n.setScriptTarget(t.languageVersion),n.setLanguageVariant(t.languageVariant),n.setOnError((e,i,o)=>{const a=n.getTokenEnd();if(3===e.category&&r&&a===r.start&&i===r.length){const n=Wx(t.fileName,t.text,a,i,e,o);aT(r,n)}else r&&a===r.start||(r=Gx(t,a,i,e,o),ho.add(r))}),n.setText(t.text,e.pos,e.end-e.pos);try{return n.scan(),un.assert(14===n.reScanSlashToken(!0),"Expected scanner to rescan RegularExpressionLiteral"),!!r}finally{n.setText(""),n.setOnError(void 0)}}return!1}(e))),ar}(e);case 210:return RA(e,r,i);case 211:return function(e,t=0){const n=Qg(e);!function(e,t){const n=new Map;for(const r of e.properties){if(306===r.kind){if(t){const e=ah(r.expression);if(_F(e)||uF(e))return kz(r.expression,_a.A_rest_element_cannot_contain_a_binding_pattern)}continue}const e=r.name;if(168===e.kind&&iz(e),305===r.kind&&!t&&r.objectAssignmentInitializer&&kz(r.equalsToken,_a.Did_you_mean_to_use_a_Colon_An_can_only_follow_a_property_name_when_the_containing_object_literal_is_part_of_a_destructuring_pattern),81===e.kind&&kz(e,_a.Private_identifiers_are_not_allowed_outside_class_bodies),kI(r)&&r.modifiers)for(const e of r.modifiers)!Zl(e)||134===e.kind&&175===r.kind||kz(e,_a._0_modifier_cannot_be_used_here,Xd(e));else if(HA(r)&&r.modifiers)for(const e of r.modifiers)Zl(e)&&kz(e,_a._0_modifier_cannot_be_used_here,Xd(e));let i;switch(r.kind){case 305:case 304:sz(r.exclamationToken,_a.A_definite_assignment_assertion_is_not_permitted_in_this_context),az(r.questionToken,_a.An_object_member_cannot_be_declared_optional),9===e.kind&&wz(e),10===e.kind&&Uo(!0,Rp(e,_a.A_bigint_literal_cannot_be_used_as_a_property_name)),i=4;break;case 175:i=8;break;case 178:i=1;break;case 179:i=2;break;default:un.assertNever(r,"Unexpected syntax kind:"+r.kind)}if(!t){const t=Fz(e);if(void 0===t)continue;const r=n.get(t);if(r)if(8&i&&8&r)kz(e,_a.Duplicate_identifier_0,Xd(e));else if(4&i&&4&r)kz(e,_a.An_object_literal_cannot_have_multiple_properties_with_the_same_name,Xd(e));else{if(!(3&i&&3&r))return kz(e,_a.An_object_literal_cannot_have_property_and_accessor_with_the_same_name);if(3===r||i===r)return kz(e,_a.An_object_literal_cannot_have_multiple_get_Slashset_accessors_with_the_same_name);n.set(t,i|r)}else n.set(t,i)}}}(e,n);const r=H?Gu():void 0;let i=Gu(),o=[],a=Nn;kA(e);const s=hA(e,void 0),c=s&&s.pattern&&(207===s.pattern.kind||211===s.pattern.kind),_=Jj(e),u=_?8:0,d=Em(e)&&!Pm(e),p=d?Xc(e):void 0,f=!s&&d&&!p;let m=8192,g=!1,h=!1,y=!1,v=!1;for(const t of e.properties)t.name&&kD(t.name)&&BA(t.name);let b=0;for(const l of e.properties){let f=ks(l);const k=l.name&&168===l.name.kind?BA(l.name):void 0;if(304===l.kind||305===l.kind||Jf(l)){let i=304===l.kind?qj(l,t):305===l.kind?zj(!n&&l.objectAssignmentInitializer?l.objectAssignmentInitializer:l.name,t):Uj(l,t);if(d){const e=Fl(l);e?(IS(i,e,l),i=e):p&&p.typeExpression&&IS(i,Pk(p.typeExpression),l)}m|=458752&gx(i);const o=k&&sC(k)?k:void 0,a=o?Xo(4|f.flags,cC(o),4096|u):Xo(4|f.flags,f.escapedName,u);if(o&&(a.links.nameType=o),n&&MA(l))a.flags|=16777216;else if(c&&!(512&gx(s))){const e=pm(s,f.escapedName);e?a.flags|=16777216&e.flags:qm(s,Vt)||zo(l.name,_a.Object_literal_may_only_specify_known_properties_and_0_does_not_exist_in_type_1,bc(f),Tc(s))}if(a.declarations=f.declarations,a.parent=f.parent,f.valueDeclaration&&(a.valueDeclaration=f.valueDeclaration),a.links.type=i,a.links.target=f,f=a,null==r||r.set(a.escapedName,a),s&&2&t&&!(4&t)&&(304===l.kind||175===l.kind)&&vS(l)){const t=PA(e);un.assert(t),Kw(t,304===l.kind?l.initializer:l,i)}}else{if(306===l.kind){M0&&(a=sk(a,x(),e.symbol,m,_),o=[],i=Gu(),h=!1,y=!1,v=!1);const n=Bf(eM(l.expression,2&t));if(WA(n)){const t=ak(n,_);if(r&&ZA(t,r,l),b=o.length,al(a))continue;a=sk(a,t,e.symbol,m,_)}else zo(l,_a.Spread_types_may_only_be_created_from_object_types),a=Et;continue}un.assert(178===l.kind||179===l.kind),LB(l)}!k||8576&k.flags?i.set(f.escapedName,f):FS(k,hn)&&(FS(k,Wt)?y=!0:FS(k,cn)?v=!0:h=!0,n&&(g=!0)),o.push(f)}return FA(),al(a)?Et:a!==Nn?(o.length>0&&(a=sk(a,x(),e.symbol,m,_),o=[],i=Gu(),h=!1,y=!1),nF(a,e=>e===Nn?x():e)):x();function x(){const t=[],r=Jj(e);h&&t.push(UA(r,b,o,Vt)),y&&t.push(UA(r,b,o,Wt)),v&&t.push(UA(r,b,o,cn));const a=$s(e.symbol,i,l,l,t);return a.objectFlags|=131200|m,f&&(a.objectFlags|=4096),g&&(a.objectFlags|=512),n&&(a.pattern=e),a}}(e,r);case 212:return OI(e,r);case 167:return LI(e,r);case 213:return function(e,t){return 64&e.flags?function(e,t){const n=eM(e.expression),r=bw(n,e.expression);return vw(fO(e,AI(r,e.expression),t),e,r!==n)}(e,t):fO(e,wI(e.expression),t)}(e,r);case 214:if(_f(e))return function(e){if(function(e){if(j.verbatimModuleSyntax&&1===R)return kz(e,qo(e));if(237===e.expression.kind){if(99!==R&&200!==R)return kz(e,_a.Deferred_imports_are_only_supported_when_the_module_flag_is_set_to_esnext_or_preserve)}else if(5===R)return kz(e,_a.Dynamic_imports_are_only_supported_when_the_module_flag_is_set_to_es2020_es2022_esnext_commonjs_amd_system_umd_node16_node18_node20_or_nodenext);if(e.typeArguments)return kz(e,_a.This_use_of_import_is_invalid_import_calls_can_be_written_but_they_must_have_parentheses_and_cannot_have_type_arguments);const t=e.arguments;if(!(100<=R&&R<=199)&&99!==R&&200!==R&&(QJ(t),t.length>1))return kz(t[1],_a.Dynamic_imports_only_support_a_second_argument_when_the_module_option_is_set_to_esnext_node16_node18_node20_nodenext_or_preserve);if(0===t.length||t.length>2)return kz(e,_a.Dynamic_imports_can_only_accept_a_module_specifier_and_an_optional_set_of_attributes_as_arguments);const n=b(t,PF);n&&kz(n,_a.Argument_of_dynamic_import_cannot_be_spread_element)}(e),0===e.arguments.length)return YL(e,wt);const t=e.arguments[0],n=Ij(t),r=e.arguments.length>1?Ij(e.arguments[1]):void 0;for(let t=2;tpj(e));const t=eM(e.expression),n=CM(t,!0,e,_a.Type_of_await_operand_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member);return n!==t||al(n)||3&t.flags||Uo(!1,Rp(e,_a.await_has_no_effect_on_the_type_of_this_expression)),n}(e);case 225:return function(e){const t=eM(e.operand);if(t===dn)return dn;switch(e.operand.kind){case 9:switch(e.operator){case 41:return uk(mk(-e.operand.text));case 40:return uk(mk(+e.operand.text))}break;case 10:if(41===e.operator)return uk(gk({negative:!0,base10Value:mT(e.operand.text)}))}switch(e.operator){case 40:case 41:case 55:return AI(t,e.operand),mj(t,12288)&&zo(e.operand,_a.The_0_operator_cannot_be_applied_to_type_symbol,Fa(e.operator)),40===e.operator?(mj(t,2112)&&zo(e.operand,_a.Operator_0_cannot_be_applied_to_type_1,Fa(e.operator),Tc(QC(t))),Wt):fj(t);case 54:vR(t,e.operand);const n=HN(t,12582912);return 4194304===n?Ht:8388608===n?Yt:sn;case 46:case 47:return cj(e.operand,AI(t,e.operand),_a.An_arithmetic_operand_must_be_of_type_any_number_bigint_or_an_enum_type)&&dj(e.operand,_a.The_operand_of_an_increment_or_decrement_operator_must_be_a_variable_or_a_property_access,_a.The_operand_of_an_increment_or_decrement_operator_may_not_be_an_optional_property_access),fj(t)}return Et}(e);case 226:return function(e){const t=eM(e.operand);return t===dn?dn:(cj(e.operand,AI(t,e.operand),_a.An_arithmetic_operand_must_be_of_type_any_number_bigint_or_an_enum_type)&&dj(e.operand,_a.The_operand_of_an_increment_or_decrement_operator_must_be_a_variable_or_a_property_access,_a.The_operand_of_an_increment_or_decrement_operator_may_not_be_an_optional_property_access),fj(t))}(e);case 227:return pe(e,r);case 228:return function(e,t){const n=xR(e.condition,t);return yR(e.condition,n,e.whenTrue),Pb([eM(e.whenTrue,t),eM(e.whenFalse,t)],2)}(e,r);case 231:return function(e,t){return MoM(e,n,void 0)));const o=i&&$R(i,r),s=o&&o.yieldType||wt,c=o&&o.nextType||wt,l=e.expression?eM(e.expression):Mt,_=tj(e,l,c,r);if(i&&_&&OS(_,s,e.expression||e,e.expression),e.asteriskToken)return CR(r?19:17,1,l,e.expression)||wt;if(i)return WR(2,i,r)||wt;let u=ZP(2,t);return u||(u=wt,a(()=>{if(ne&&!AT(e)){const t=xA(e,void 0);t&&!il(t)||zo(e,_a.yield_expression_implicitly_results_in_an_any_type_because_its_containing_generator_lacks_a_return_type_annotation)}})),u}(e);case 238:return function(e){return e.isSpread?Ax(e.type,Wt):e.type}(e);case 295:return function(e,t){if(function(e){e.expression&&SA(e.expression)&&kz(e.expression,_a.JSX_expressions_may_not_use_the_comma_operator_Did_you_mean_to_write_an_array)}(e),e.expression){const n=eM(e.expression,t);return e.dotDotDotToken&&n!==wt&&!OC(n)&&zo(e,_a.JSX_spread_child_must_be_an_array_type),n}return Et}(e,r);case 285:case 286:return function(e){return LB(e),uI(e)||wt}(e);case 289:return function(e){fI(e.openingFragment);const t=vd(e);!Hk(j)||!j.jsxFactory&&!t.pragmas.has("jsx")||j.jsxFragmentFactory||t.pragmas.has("jsxfrag")||zo(e,j.jsxFactory?_a.The_jsxFragmentFactory_compiler_option_must_be_provided_to_use_JSX_fragments_with_the_jsxFactory_compiler_option:_a.An_jsxFrag_pragma_is_required_when_using_an_jsx_pragma_with_JSX_fragments),YA(e);const n=uI(e);return al(n)?wt:n}(e);case 293:return function(e,t){return QA(e.parent,t)}(e,r);case 287:un.fail("Shouldn't ever directly check a JsxOpeningElement")}return Et}(i,o,s),p=Vj(i,d,o);return vj(p)&&function(t,n){var r;const i=212===t.parent.kind&&t.parent.expression===t||213===t.parent.kind&&t.parent.expression===t||(80===t.kind||167===t.kind)&&fJ(t)||187===t.parent.kind&&t.parent.exprName===t||282===t.parent.kind;if(i||zo(t,_a.const_enums_can_only_be_used_in_property_or_index_access_expressions_or_the_right_hand_side_of_an_import_declaration_or_export_assignment_or_type_query),j.isolatedModules||j.verbatimModuleSyntax&&i&&!Ue(t,sb(t),2097152,void 0,!1,!0)){un.assert(!!(128&n.symbol.flags));const i=n.symbol.valueDeclaration,o=null==(r=e.getRedirectFromOutput(vd(i).resolvedPath))?void 0:r.resolvedRef;!(33554432&i.flags)||bT(t)||o&&Fk(o.commandLine.options)||zo(t,_a.Cannot_access_ambient_const_enums_when_0_is_enabled,Me)}}(i,p),r=u,null==(_=Hn)||_.pop(),p}function tM(e){GJ(e),e.expression&&bz(e.expression,_a.Type_expected),AB(e.constraint),AB(e.default);const t=Cu(ks(e));pf(t),function(e){return hf(e)!==Mn}(t)||zo(e.default,_a.Type_parameter_0_has_a_circular_default,Tc(t));const n=Hp(t),r=yf(t);n&&r&&IS(r,wd(fS(n,Wk(t,r)),r),e.default,_a.Type_0_does_not_satisfy_the_constraint_1),LB(e),a(()=>nB(e.name,_a.Type_parameter_name_cannot_be_0))}function nM(e){GJ(e),pR(e);const t=Kf(e);Nv(e,31)&&(j.erasableSyntaxOnly&&zo(e,_a.This_syntax_is_not_allowed_when_erasableSyntaxOnly_is_enabled),177===t.kind&&Dd(t.body)||zo(e,_a.A_parameter_property_is_only_allowed_in_a_constructor_implementation),177===t.kind&&aD(e.name)&&"constructor"===e.name.escapedText&&zo(e.name,_a.constructor_cannot_be_used_as_a_parameter_property_name)),!e.initializer&&XT(e)&&k_(e.name)&&t.body&&zo(e,_a.A_binding_pattern_parameter_cannot_be_optional_in_an_implementation_signature),e.name&&aD(e.name)&&("this"===e.name.escapedText||"new"===e.name.escapedText)&&(0!==t.parameters.indexOf(e)&&zo(e,_a.A_0_parameter_must_be_the_first_parameter,e.name.escapedText),177!==t.kind&&181!==t.kind&&186!==t.kind||zo(e,_a.A_constructor_cannot_have_a_this_parameter),220===t.kind&&zo(e,_a.An_arrow_function_cannot_have_a_this_parameter),178!==t.kind&&179!==t.kind||zo(e,_a.get_and_set_accessors_cannot_declare_this_parameters)),!e.dotDotDotToken||k_(e.name)||FS(Bf(P_(e.symbol)),_r)||zo(e,_a.A_rest_parameter_must_be_of_an_array_type)}function rM(e,t,n){for(const r of e.elements){if(IF(r))continue;const e=r.name;if(80===e.kind&&e.escapedText===n)return zo(t,_a.A_type_predicate_cannot_reference_element_0_in_a_binding_pattern,n),!0;if((208===e.kind||207===e.kind)&&rM(e,t,n))return!0}}function iM(e){182===e.kind?function(e){GJ(e)||function(e){const t=e.parameters[0];if(1!==e.parameters.length)return kz(t?t.name:e,_a.An_index_signature_must_have_exactly_one_parameter);if(QJ(e.parameters,_a.An_index_signature_cannot_have_a_trailing_comma),t.dotDotDotToken)return kz(t.dotDotDotToken,_a.An_index_signature_cannot_have_a_rest_parameter);if(Tv(t))return kz(t.name,_a.An_index_signature_parameter_cannot_have_an_accessibility_modifier);if(t.questionToken)return kz(t.questionToken,_a.An_index_signature_parameter_cannot_have_a_question_mark);if(t.initializer)return kz(t.name,_a.An_index_signature_parameter_cannot_have_an_initializer);if(!t.type)return kz(t.name,_a.An_index_signature_parameter_must_have_a_type_annotation);const n=Pk(t.type);UD(n,e=>!!(8576&e.flags))||xx(n)?kz(t.name,_a.An_index_signature_parameter_type_cannot_be_a_literal_type_or_generic_type_Consider_using_a_mapped_object_type_instead):KD(n,Mh)?e.type||kz(e,_a.An_index_signature_must_have_a_type_annotation):kz(t.name,_a.An_index_signature_parameter_type_must_be_string_number_symbol_or_a_template_literal_type)}(e)}(e):185!==e.kind&&263!==e.kind&&186!==e.kind&&180!==e.kind&&177!==e.kind&&181!==e.kind||ZJ(e);const t=Oh(e);4&t||(!(3&~t)&&M{aD(e)&&r.add(e.escapedText),k_(e)&&i.add(t)});if(Ig(e)){const e=t.length-1,o=t[e];n&&o&&aD(o.name)&&o.typeExpression&&o.typeExpression.type&&!r.has(o.name.escapedText)&&!i.has(e)&&!OC(Pk(o.typeExpression.type))&&zo(o.name,_a.JSDoc_param_tag_has_name_0_but_there_is_no_parameter_with_that_name_It_would_match_arguments_if_it_had_an_array_type,gc(o.name))}else d(t,({name:e,isNameFirst:t},o)=>{i.has(o)||aD(e)&&r.has(e.escapedText)||(xD(e)?n&&zo(e,_a.Qualified_name_0_is_not_allowed_without_a_leading_param_object_1,Mp(e),Mp(e.left)):t||Vo(n,e,_a.JSDoc_param_tag_has_name_0_but_there_is_no_parameter_with_that_name,gc(e)))})}(e),d(e.parameters,nM),e.type&&AB(e.type),a(function(){!function(e){M>=2||!Ru(e)||33554432&e.flags||Nd(e.body)||d(e.parameters,e=>{e.name&&!k_(e.name)&&e.name.escapedText===Le.escapedName&&Ro("noEmit",e,_a.Duplicate_identifier_arguments_Compiler_uses_arguments_to_initialize_rest_parameters)})}(e);let t=gv(e),n=t;if(Em(e)){const r=tl(e);if(r&&r.typeExpression&&RD(r.typeExpression.type)){const e=CO(Pk(r.typeExpression));e&&e.declaration&&(t=gv(e.declaration),n=r.typeExpression.type)}}if(ne&&!t)switch(e.kind){case 181:zo(e,_a.Construct_signature_which_lacks_return_type_annotation_implicitly_has_an_any_return_type);break;case 180:zo(e,_a.Call_signature_which_lacks_return_type_annotation_implicitly_has_an_any_return_type)}if(t&&n){const r=Oh(e);if(1==(5&r)){const e=Pk(t);e===ln?zo(n,_a.A_generator_cannot_have_a_void_type_annotation):oM(e,r,n)}else 2==(3&r)&&function(e,t,n){const r=Pk(t);if(M>=2){if(al(r))return;const e=ev(!0);if(e!==On&&!J_(r,e))return void i(_a.The_return_type_of_an_async_function_or_method_must_be_the_global_Promise_T_type_Did_you_mean_to_write_Promise_0,t,n,Tc(AM(r)||ln))}else{if(RE(e,5),al(r))return;const o=_m(t);if(void 0===o)return void i(_a.Type_0_is_not_a_valid_async_function_return_type_in_ES5_because_it_does_not_refer_to_a_Promise_compatible_constructor_value,t,n,Tc(r));const a=ts(o,111551,!0),s=a?P_(a):Et;if(al(s))return void(80===o.kind&&"Promise"===o.escapedText&&z_(r)===ev(!1)?zo(n,_a.An_async_function_or_method_in_ES5_requires_the_Promise_constructor_Make_sure_you_have_a_declaration_for_the_Promise_constructor_or_include_ES2015_in_your_lib_option):i(_a.Type_0_is_not_a_valid_async_function_return_type_in_ES5_because_it_does_not_refer_to_a_Promise_compatible_constructor_value,t,n,Mp(o)));const c=vr||(vr=Wy("PromiseConstructorLike",0,true))||Nn;if(c===Nn)return void i(_a.Type_0_is_not_a_valid_async_function_return_type_in_ES5_because_it_does_not_refer_to_a_Promise_compatible_constructor_value,t,n,Mp(o));const l=_a.Type_0_is_not_a_valid_async_function_return_type_in_ES5_because_it_does_not_refer_to_a_Promise_compatible_constructor_value;if(!IS(s,c,n,l,()=>t===n?void 0:Zx(void 0,_a.The_return_type_of_an_async_function_or_method_must_be_the_global_Promise_T_type)))return;const _=o&&sb(o),u=pa(e.locals,_.escapedText,111551);if(u)return void zo(u.valueDeclaration,_a.Duplicate_identifier_0_Compiler_uses_declaration_1_to_support_async_functions,gc(_),Mp(o))}function i(e,t,n,r){t===n?zo(n,e,r):aT(zo(n,_a.The_return_type_of_an_async_function_or_method_must_be_the_global_Promise_T_type),Rp(t,e,r))}CM(r,!1,e,_a.The_return_type_of_an_async_function_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member)}(e,t,n)}182!==e.kind&&318!==e.kind&&VM(e)})}function oM(e,t,n){const r=WR(0,e,!!(2&t))||wt;return IS(ej(r,WR(1,e,!!(2&t))||r,WR(2,e,!!(2&t))||Ot,!!(2&t)),e,n)}function aM(e){const t=new Map;for(const n of e.members)if(172===n.kind){let e;const r=n.name;switch(r.kind){case 11:case 9:e=r.text;break;case 80:e=gc(r);break;default:continue}t.get(e)?(zo(Cc(n.symbol.valueDeclaration),_a.Duplicate_identifier_0,e),zo(n.name,_a.Duplicate_identifier_0,e)):t.set(e,!0)}}function sM(e){if(265===e.kind){const t=ks(e);if(t.declarations&&t.declarations.length>0&&t.declarations[0]!==e)return}const t=Fh(ks(e));if(null==t?void 0:t.declarations){const e=new Map;for(const n of t.declarations)jD(n)&&1===n.parameters.length&&n.parameters[0].type&&bD(Pk(n.parameters[0].type),t=>{const r=e.get(kb(t));r?r.declarations.push(n):e.set(kb(t),{type:t,declarations:[n]})});e.forEach(e=>{if(e.declarations.length>1)for(const t of e.declarations)zo(t,_a.Duplicate_index_signature_for_type_0,Tc(e.type))})}}function cM(e){GJ(e)||function(e){if(kD(e.name)&&NF(e.name.expression)&&103===e.name.expression.operatorToken.kind)return kz(e.parent.members[0],_a.A_mapped_type_may_not_declare_properties_or_methods);if(u_(e.parent)){if(UN(e.name)&&"constructor"===e.name.text)return kz(e.name,_a.Classes_may_not_have_a_field_named_constructor);if(_z(e.name,_a.A_computed_property_name_in_a_class_property_declaration_must_have_a_simple_literal_type_or_a_unique_symbol_type))return!0;if(M<2&&sD(e.name))return kz(e.name,_a.Private_identifiers_are_only_available_when_targeting_ECMAScript_2015_and_higher);if(M<2&&p_(e)&&!(33554432&e.flags))return kz(e.name,_a.Properties_with_the_accessor_modifier_are_only_available_when_targeting_ECMAScript_2015_and_higher);if(p_(e)&&az(e.questionToken,_a.An_accessor_property_cannot_be_declared_optional))return!0}else if(265===e.parent.kind){if(_z(e.name,_a.A_computed_property_name_in_an_interface_must_refer_to_an_expression_whose_type_is_a_literal_type_or_a_unique_symbol_type))return!0;if(un.assertNode(e,wD),e.initializer)return kz(e.initializer,_a.An_interface_property_cannot_have_an_initializer)}else if(qD(e.parent)){if(_z(e.name,_a.A_computed_property_name_in_a_type_literal_must_refer_to_an_expression_whose_type_is_a_literal_type_or_a_unique_symbol_type))return!0;if(un.assertNode(e,wD),e.initializer)return kz(e.initializer,_a.A_type_literal_property_cannot_have_an_initializer)}if(33554432&e.flags&&fz(e),ND(e)&&e.exclamationToken&&(!u_(e.parent)||!e.type||e.initializer||33554432&e.flags||Dv(e)||Pv(e))){const t=e.initializer?_a.Declarations_with_initializers_cannot_also_have_definite_assignment_assertions:e.type?_a.A_definite_assignment_assertion_is_not_permitted_in_this_context:_a.Declarations_with_definite_assignment_assertions_must_also_have_type_annotations;return kz(e.exclamationToken,t)}}(e)||iz(e.name),pR(e),lM(e),Nv(e,64)&&173===e.kind&&e.initializer&&zo(e,_a.Property_0_cannot_have_an_initializer_because_it_is_marked_abstract,Ap(e.name))}function lM(e){if(sD(e.name)&&(M{const t=mM(e);t&&fM(e,t)});const t=da(e).resolvedSymbol;t&&$(t.declarations,e=>VT(e)&&!!(536870912&e.flags))&&Go(uL(e),t.declarations,t.escapedName)}}function yM(e,t){if(!(8388608&e.flags))return e;const n=e.objectType,r=e.indexType,i=Sp(n)&&2===Tp(n)?$b(n,0):Yb(n,0),o=!!qm(n,Wt);if(KD(r,e=>FS(e,i)||o&&jm(e,Wt)))return 213===t.kind&&Qg(t)&&32&gx(n)&&1&bp(n)&&zo(t,_a.Index_signature_in_type_0_only_permits_reading,Tc(n)),e;if(Tx(n)){const e=ux(r,t);if(e){const r=bD(Sf(n),t=>pm(t,e));if(r&&6&ix(r))return zo(t,_a.Private_or_protected_member_0_cannot_be_accessed_on_a_type_parameter,mc(e)),Et}}return zo(t,_a.Type_0_cannot_be_used_to_index_type_1,Tc(r),Tc(n)),Et}function vM(e){return(wv(e,2)||Kl(e))&&!!(33554432&e.flags)}function bM(e,t){let n=Ez(e);if(265!==e.parent.kind&&264!==e.parent.kind&&232!==e.parent.kind&&33554432&e.flags){const t=Fp(e);!(t&&128&t.flags)||128&n||hE(e.parent)&&gE(e.parent.parent)&&pp(e.parent.parent)||(n|=32),n|=128}return n&t}function xM(e){a(()=>function(e){function t(e,t){return void 0!==t&&t.parent===e[0].parent?t:e[0]}let n,r,i,o=0,a=230,s=!1,c=!0,l=!1;const _=e.declarations,p=!!(16384&e.flags);function f(e){if(e.name&&Nd(e.name))return;let t=!1;const n=XI(e.parent,n=>{if(t)return n;t=n===e});if(n&&n.pos===e.end&&n.kind===e.kind){const t=n.name||n,r=n.name;if(e.name&&r&&(sD(e.name)&&sD(r)&&e.name.escapedText===r.escapedText||kD(e.name)&&kD(r)&&SS(BA(e.name),BA(r))||zh(e.name)&&zh(r)&&Uh(e.name)===Uh(r)))return void(175!==e.kind&&174!==e.kind||Dv(e)===Dv(n)||zo(t,Dv(e)?_a.Function_overload_must_be_static:_a.Function_overload_must_not_be_static));if(Dd(n.body))return void zo(t,_a.Function_implementation_name_must_be_0,Ap(e.name))}const r=e.name||e;p?zo(r,_a.Constructor_implementation_is_missing):Nv(e,64)?zo(r,_a.All_declarations_of_an_abstract_method_must_be_consecutive):zo(r,_a.Function_implementation_is_missing_or_not_immediately_following_the_declaration)}let m=!1,g=!1,h=!1;const y=[];if(_)for(const e of _){const t=e,_=33554432&t.flags,d=t.parent&&(265===t.parent.kind||188===t.parent.kind)||_;if(d&&(i=void 0),264!==t.kind&&232!==t.kind||_||(h=!0),263===t.kind||175===t.kind||174===t.kind||177===t.kind){y.push(t);const e=bM(t,230);o|=e,a&=e,s=s||wg(t),c=c&&wg(t);const _=Dd(t.body);_&&n?p?g=!0:m=!0:(null==i?void 0:i.parent)===t.parent&&i.end!==t.pos&&f(i),_?n||(n=t):l=!0,i=t,d||(r=t)}Em(e)&&r_(e)&&e.jsDoc&&(l=u(zg(e))>0)}if(g&&d(y,e=>{zo(e,_a.Multiple_constructor_implementations_are_not_allowed)}),m&&d(y,e=>{zo(Cc(e)||e,_a.Duplicate_function_implementation)}),h&&!p&&16&e.flags&&_){const t=N(_,e=>264===e.kind).map(e=>Rp(e,_a.Consider_adding_a_declare_modifier_to_this_class));d(_,n=>{const r=264===n.kind?_a.Class_declaration_cannot_implement_overload_list_for_0:263===n.kind?_a.Function_with_bodies_can_only_merge_with_classes_that_are_ambient:void 0;r&&aT(zo(Cc(n)||n,r,yc(e)),...t)})}if(!r||r.body||Nv(r,64)||r.questionToken||f(r),l&&(_&&(function(e,n,r,i,o){if(0!==(i^o)){const i=bM(t(e,n),r);Je(e,e=>vd(e).fileName).forEach(e=>{const o=bM(t(e,n),r);for(const t of e){const e=bM(t,r)^i,n=bM(t,r)^o;32&n?zo(Cc(t),_a.Overload_signatures_must_all_be_exported_or_non_exported):128&n?zo(Cc(t),_a.Overload_signatures_must_all_be_ambient_or_non_ambient):6&e?zo(Cc(t)||t,_a.Overload_signatures_must_all_be_public_private_or_protected):64&e&&zo(Cc(t),_a.Overload_signatures_must_all_be_abstract_or_non_abstract)}})}}(_,n,230,o,a),function(e,n,r,i){if(r!==i){const r=wg(t(e,n));d(e,e=>{wg(e)!==r&&zo(Cc(e),_a.Overload_signatures_must_all_be_optional_or_required)})}}(_,n,s,c)),n)){const t=jg(e),r=Eg(n);for(const e of t)if(!HS(r,e)){aT(zo(e.declaration&&CP(e.declaration)?e.declaration.parent.tagName:e.declaration,_a.This_overload_signature_is_not_compatible_with_its_implementation_signature),Rp(n,_a.The_implementation_signature_is_declared_here));break}}}(e))}function kM(e){a(()=>function(e){let t=e.localSymbol;if(!t&&(t=ks(e),!t.exportSymbol))return;if(Hu(t,e.kind)!==e)return;let n=0,r=0,i=0;for(const e of t.declarations){const t=s(e),o=bM(e,2080);32&o?2048&o?i|=t:n|=t:r|=t}const o=n&r,a=i&(n|r);if(o||a)for(const e of t.declarations){const t=s(e),n=Cc(e);t&a?zo(n,_a.Merged_declaration_0_cannot_include_a_default_export_declaration_Consider_adding_a_separate_export_default_0_declaration_instead,Ap(n)):t&o&&zo(n,_a.Individual_declarations_in_merged_declaration_0_must_be_all_exported_or_all_local,Ap(n))}function s(e){let t=e;switch(t.kind){case 265:case 266:case 347:case 339:case 341:return 2;case 268:return cp(t)||0!==UR(t)?5:4;case 264:case 267:case 307:return 3;case 308:return 7;case 278:case 227:const e=t,n=AE(e)?e.expression:e.right;if(!ab(n))return 1;t=n;case 272:case 275:case 274:let r=0;return d(Ha(ks(t)).declarations,e=>{r|=s(e)}),r;case 261:case 209:case 263:case 277:case 80:return 1;case 174:case 172:return 2;default:return un.failBadSyntaxKind(t)}}}(e))}function SM(e,t,n,...r){const i=TM(e,t);return i&&PM(i,t,n,...r)}function TM(e,t,n){if(il(e))return;const r=e;if(r.promisedTypeOfPromise)return r.promisedTypeOfPromise;if(J_(e,ev(!1)))return r.promisedTypeOfPromise=uy(e)[0];if(yj(ff(e),402915324))return;const i=el(e,"then");if(il(i))return;const o=i?mm(i,0):l;if(0===o.length)return void(t&&zo(t,_a.A_promise_must_have_a_then_method));let a,s;for(const t of o){const n=Rg(t);n&&n!==ln&&!iT(e,n,To)?a=n:s=ie(s,t)}if(!s)return un.assertIsDefined(a),n&&(n.value=a),void(t&&zo(t,_a.The_this_context_of_type_0_is_not_assignable_to_method_s_this_of_type_1,Tc(e),Tc(a)));const c=XN(Pb(E(s,zL)),2097152);if(il(c))return;const _=mm(c,0);if(0!==_.length)return r.promisedTypeOfPromise=Pb(E(_,zL),2);t&&zo(t,_a.The_first_parameter_of_the_then_method_of_a_promise_must_be_a_callback)}function CM(e,t,n,r,...i){return(t?PM(e,n,r,...i):AM(e,n,r,...i))||Et}function wM(e){if(yj(ff(e),402915324))return!1;const t=el(e,"then");return!!t&&mm(XN(t,2097152),0).length>0}function DM(e){var t;if(16777216&e.flags){const n=xv(!1);return!!n&&e.aliasSymbol===n&&1===(null==(t=e.aliasTypeArguments)?void 0:t.length)}return!1}function FM(e){return 1048576&e.flags?nF(e,FM):DM(e)?e.aliasTypeArguments[0]:e}function EM(e){if(il(e)||DM(e))return!1;if(Tx(e)){const t=pf(e);if(t?3&t.flags||GS(t)||UD(t,wM):gj(e,8650752))return!0}return!1}function PM(e,t,n,...r){const i=AM(e,t,n,...r);return i&&function(e){return EM(e)?function(e){const t=xv(!0);if(t)return fy(t,[FM(e)])}(e)??e:(un.assert(DM(e)||void 0===TM(e),"type provided should not be a non-generic 'promise'-like."),e)}(i)}function AM(e,t,n,...r){if(il(e))return e;if(DM(e))return e;const i=e;if(i.awaitedTypeOfType)return i.awaitedTypeOfType;if(1048576&e.flags){if(po.lastIndexOf(e.id)>=0)return void(t&&zo(t,_a.Type_is_referenced_directly_or_indirectly_in_the_fulfillment_callback_of_its_own_then_method));const o=t?e=>AM(e,t,n,...r):AM;po.push(e.id);const a=nF(e,o);return po.pop(),i.awaitedTypeOfType=a}if(EM(e))return i.awaitedTypeOfType=e;const o={value:void 0},a=TM(e,void 0,o);if(a){if(e.id===a.id||po.lastIndexOf(a.id)>=0)return void(t&&zo(t,_a.Type_is_referenced_directly_or_indirectly_in_the_fulfillment_callback_of_its_own_then_method));po.push(e.id);const o=AM(a,t,n,...r);if(po.pop(),!o)return;return i.awaitedTypeOfType=o}if(!wM(e))return i.awaitedTypeOfType=e;if(t){let i;un.assertIsDefined(n),o.value&&(i=Zx(i,_a.The_this_context_of_type_0_is_not_assignable_to_method_s_this_of_type_1,Tc(e),Tc(o.value))),i=Zx(i,n,...r),ho.add(zp(vd(t),t,i))}}function IM(e){!function(e){if(!vz(vd(e))){let t=e.expression;if(yF(t))return!1;let n,r=!0;for(;;)if(OF(t)||MF(t))t=t.expression;else if(fF(t))r||(n=t),t.questionDotToken&&(n=t.questionDotToken),t=t.expression,r=!1;else{if(!dF(t)){aD(t)||(n=t);break}t.questionDotToken&&(n=t.questionDotToken),t=t.expression,r=!1}if(n)aT(zo(e.expression,_a.Expression_must_be_enclosed_in_parentheses_to_be_used_as_a_decorator),Rp(n,_a.Invalid_syntax_in_decorator))}}(e);const t=aL(e);_L(t,e);const n=Gg(t);if(1&n.flags)return;const r=GL(e);if(!(null==r?void 0:r.resolvedReturnType))return;let i;const o=r.resolvedReturnType;switch(e.parent.kind){case 264:case 232:i=_a.Decorator_function_return_type_0_is_not_assignable_to_type_1;break;case 173:if(!J){i=_a.Decorator_function_return_type_0_is_not_assignable_to_type_1;break}case 170:i=_a.Decorator_function_return_type_is_0_but_is_expected_to_be_void_or_any;break;case 175:case 178:case 179:i=_a.Decorator_function_return_type_0_is_not_assignable_to_type_1;break;default:return un.failBadSyntaxKind(e.parent)}IS(n,o,e.expression,i)}function OM(e,t,n,r,i,o=n.length,a=0){return Ed(mw.createFunctionTypeNode(void 0,l,mw.createKeywordTypeNode(133)),e,t,n,r,i,o,a)}function LM(e,t,n,r,i,o,a){return Dh(OM(e,t,n,r,i,o,a))}function jM(e){return LM(void 0,void 0,l,e)}function MM(e){return LM(void 0,void 0,[Qo("value",e)],ln)}function RM(e){if(e)switch(e.kind){case 194:case 193:return BM(e.types);case 195:return BM([e.trueType,e.falseType]);case 197:case 203:return RM(e.type);case 184:return e.typeName}}function BM(e){let t;for(let n of e){for(;197===n.kind||203===n.kind;)n=n.type;if(146===n.kind)continue;if(!H&&(202===n.kind&&106===n.literal.kind||157===n.kind))continue;const e=RM(n);if(!e)return;if(t){if(!aD(t)||!aD(e)||t.escapedText!==e.escapedText)return}else t=e}return t}function JM(e){const t=fv(e);return Bu(e)?Ef(t):t}function zM(e){if(!(SI(e)&&Lv(e)&&e.modifiers&&dm(J,e,e.parent,e.parent.parent)))return;const t=b(e.modifiers,CD);if(t){J?(HJ(t,8),170===e.kind&&HJ(t,32)):Mt.kind===e.kind&&!(524288&t.flags));e===i&&xM(r),n.parent&&xM(n)}const r=174===e.kind?void 0:e.body;if(AB(r),aj(e,Zg(e)),a(function(){gv(e)||(Nd(r)&&!vM(e)&&Jw(e,wt),1&n&&Dd(r)&&Gg(Eg(e)))}),Em(e)){const t=tl(e);t&&t.typeExpression&&!OA(Pk(t.typeExpression),e)&&zo(t.typeExpression.type,_a.The_type_of_a_function_declaration_must_match_the_function_s_signature)}}function VM(e){a(function(){const t=vd(e);let n=ki.get(t.path);n||(n=[],ki.set(t.path,n)),n.push(e)})}function WM(e,t){for(const n of e)switch(n.kind){case 264:case 232:KM(n,t),XM(n,t);break;case 308:case 268:case 242:case 270:case 249:case 250:case 251:tR(n,t);break;case 177:case 219:case 263:case 220:case 175:case 178:case 179:n.body&&tR(n,t),XM(n,t);break;case 174:case 180:case 181:case 185:case 186:case 266:case 265:XM(n,t);break;case 196:GM(n,t);break;default:un.assertNever(n,"Node should not have been registered for unused identifiers check")}}function $M(e,t,n){n(e,0,Rp(Cc(e)||e,VT(e)?_a._0_is_declared_but_never_used:_a._0_is_declared_but_its_value_is_never_read,t))}function HM(e){return aD(e)&&95===gc(e).charCodeAt(0)}function KM(e,t){for(const n of e.members)switch(n.kind){case 175:case 173:case 178:case 179:if(179===n.kind&&32768&n.symbol.flags)break;const e=ks(n);e.isReferenced||!(wv(n,2)||Sc(n)&&sD(n.name))||33554432&n.flags||t(n,0,Rp(n.name,_a._0_is_declared_but_its_value_is_never_read,bc(e)));break;case 177:for(const e of n.parameters)!e.symbol.isReferenced&&Nv(e,2)&&t(e,0,Rp(e.name,_a.Property_0_is_declared_but_its_value_is_never_read,yc(e.symbol)));break;case 182:case 241:case 176:break;default:un.fail("Unexpected class member")}}function GM(e,t){const{typeParameter:n}=e;QM(n)&&t(e,1,Rp(e,_a._0_is_declared_but_its_value_is_never_read,gc(n.name)))}function XM(e,t){const n=ks(e).declarations;if(!n||ve(n)!==e)return;const r=_l(e),i=new Set;for(const e of r){if(!QM(e))continue;const n=gc(e.name),{parent:r}=e;if(196!==r.kind&&r.typeParameters.every(QM)){if(q(i,r)){const i=vd(r),o=UP(r)?cT(r):lT(i,r.typeParameters),a=1===r.typeParameters.length?[_a._0_is_declared_but_its_value_is_never_read,n]:[_a.All_type_parameters_are_unused];t(e,1,Gx(i,o.pos,o.end-o.pos,...a))}}else t(e,1,Rp(e,_a._0_is_declared_but_its_value_is_never_read,n))}}function QM(e){return!(262144&xs(e.symbol).isReferenced||HM(e.name))}function YM(e,t,n,r){const i=String(r(t)),o=e.get(i);o?o[1].push(n):e.set(i,[t,[n]])}function ZM(e){return tt(Yh(e),TD)}function eR(e){return lF(e)?sF(e.parent)?!(!e.propertyName||!HM(e.name)):HM(e.name):cp(e)||(lE(e)&&Q_(e.parent.parent)||rR(e))&&HM(e.name)}function tR(e,t){const n=new Map,r=new Map,i=new Map;e.locals.forEach(e=>{if(!(262144&e.flags?!(3&e.flags)||3&e.isReferenced:e.isReferenced||e.exportSymbol)&&e.declarations)for(const o of e.declarations)if(!eR(o))if(rR(o))YM(n,iR(o),o,ZB);else if(lF(o)&&sF(o.parent))o!==ve(o.parent.elements)&&ve(o.parent.elements).dotDotDotToken||YM(r,o.parent,o,ZB);else if(lE(o)){const e=7&Pz(o),t=Cc(o);(4===e||6===e)&&t&&HM(t)||YM(i,o.parent,o,ZB)}else{const n=e.valueDeclaration&&ZM(e.valueDeclaration),i=e.valueDeclaration&&Cc(e.valueDeclaration);n&&i?Zs(n,n.parent)||cv(n)||HM(i)||(lF(o)&&cF(o.parent)?YM(r,o.parent,o,ZB):t(n,1,Rp(i,_a._0_is_declared_but_its_value_is_never_read,yc(e)))):$M(o,yc(e),t)}}),n.forEach(([e,n])=>{const r=e.parent;if((e.name?1:0)+(e.namedBindings?275===e.namedBindings.kind?1:e.namedBindings.elements.length:0)===n.length)t(r,0,1===n.length?Rp(r,_a._0_is_declared_but_its_value_is_never_read,gc(ge(n).name)):Rp(r,_a.All_imports_in_import_declaration_are_unused));else for(const e of n)$M(e,gc(e.name),t)}),r.forEach(([e,n])=>{const r=ZM(e.parent)?1:0;if(e.elements.length===n.length)1===n.length&&261===e.parent.kind&&262===e.parent.parent.kind?YM(i,e.parent.parent,e.parent,ZB):t(e,r,1===n.length?Rp(e,_a._0_is_declared_but_its_value_is_never_read,nR(ge(n).name)):Rp(e,_a.All_destructured_elements_are_unused));else for(const e of n)t(e,r,Rp(e,_a._0_is_declared_but_its_value_is_never_read,nR(e.name)))}),i.forEach(([e,n])=>{if(e.declarations.length===n.length)t(e,0,1===n.length?Rp(ge(n).name,_a._0_is_declared_but_its_value_is_never_read,nR(ge(n).name)):Rp(244===e.parent.kind?e.parent:e,_a.All_variables_are_unused));else for(const e of n)t(e,0,Rp(e,_a._0_is_declared_but_its_value_is_never_read,nR(e.name)))})}function nR(e){switch(e.kind){case 80:return gc(e);case 208:case 207:return nR(nt(ge(e.elements),lF).name);default:return un.assertNever(e)}}function rR(e){return 274===e.kind||277===e.kind||275===e.kind}function iR(e){return 274===e.kind?e:275===e.kind?e.parent:e.parent.parent}function oR(e){if(242===e.kind&&Cz(e),l_(e)){const t=wi;d(e.statements,AB),wi=t}else d(e.statements,AB);e.locals&&VM(e)}function aR(e,t,n){if((null==t?void 0:t.escapedText)!==n)return!1;if(173===e.kind||172===e.kind||175===e.kind||174===e.kind||178===e.kind||179===e.kind||304===e.kind)return!1;if(33554432&e.flags)return!1;if((kE(e)||bE(e)||PE(e))&&zl(e))return!1;const r=Yh(e);return!TD(r)||!Nd(r.parent.body)}function sR(e){uc(e,t=>!!(4&LJ(t))&&(80!==e.kind?zo(Cc(e),_a.Duplicate_identifier_this_Compiler_uses_variable_declaration_this_to_capture_this_reference):zo(e,_a.Expression_resolves_to_variable_declaration_this_that_compiler_uses_to_capture_this_reference),!0))}function cR(e){uc(e,t=>!!(8&LJ(t))&&(80!==e.kind?zo(Cc(e),_a.Duplicate_identifier_newTarget_Compiler_uses_variable_declaration_newTarget_to_capture_new_target_meta_property_reference):zo(e,_a.Expression_resolves_to_variable_declaration_newTarget_that_compiler_uses_to_capture_new_target_meta_property_reference),!0))}function lR(e){1048576&LJ(Ep(e))&&(un.assert(Sc(e)&&aD(e.name)&&"string"==typeof e.name.escapedText,"The target of a WeakMap/WeakSet collision check should be an identifier"),Ro("noEmit",e,_a.Compiler_reserves_name_0_when_emitting_private_identifier_downlevel,e.name.escapedText))}function _R(e){let t=!1;if(AF(e)){for(const n of e.members)if(2097152&LJ(n)){t=!0;break}}else if(vF(e))2097152&LJ(e)&&(t=!0);else{const n=Ep(e);n&&2097152&LJ(n)&&(t=!0)}t&&(un.assert(Sc(e)&&aD(e.name),"The target of a Reflect collision check should be an identifier"),Ro("noEmit",e,_a.Duplicate_identifier_0_Compiler_reserves_name_1_when_emitting_super_references_in_static_initializers,Ap(e.name),"Reflect"))}function uR(t,n){n&&(function(t,n){if(e.getEmitModuleFormatOfFile(vd(t))>=5)return;if(!n||!aR(t,n,"require")&&!aR(t,n,"exports"))return;if(gE(t)&&1!==UR(t))return;const r=Zc(t);308===r.kind&&Zp(r)&&Ro("noEmit",n,_a.Duplicate_identifier_0_Compiler_reserves_name_1_in_top_level_scope_of_a_module,Ap(n),Ap(n))}(t,n),function(e,t){if(!t||M>=4||!aR(e,t,"Promise"))return;if(gE(e)&&1!==UR(e))return;const n=Zc(e);308===n.kind&&Zp(n)&&4096&n.flags&&Ro("noEmit",t,_a.Duplicate_identifier_0_Compiler_reserves_name_1_in_top_level_scope_of_a_module_containing_async_functions,Ap(t),Ap(t))}(t,n),function(e,t){M<=8&&(aR(e,t,"WeakMap")||aR(e,t,"WeakSet"))&&lo.push(e)}(t,n),function(e,t){t&&M>=2&&M<=8&&aR(e,t,"Reflect")&&_o.push(e)}(t,n),u_(t)?(nB(n,_a.Class_name_cannot_be_0),33554432&t.flags||function(t){M>=1&&"Object"===t.escapedText&&e.getEmitModuleFormatOfFile(vd(t))<5&&zo(t,_a.Class_name_cannot_be_Object_when_targeting_ES5_and_above_with_module_0,fi[R])}(n)):mE(t)&&nB(n,_a.Enum_name_cannot_be_0))}function dR(e){return e===Nt?wt:e===lr?cr:e}function pR(e){var t;if(zM(e),lF(e)||AB(e.type),!e.name)return;if(168===e.name.kind&&(BA(e.name),Pu(e)&&e.initializer&&Ij(e.initializer)),lF(e)){if(e.propertyName&&aD(e.name)&&Qh(e)&&Nd(Kf(e).body))return void uo.push(e);sF(e.parent)&&e.dotDotDotToken&&M1&&$(n.declarations,t=>t!==e&&Af(t)&&!mR(t,e))&&zo(e.name,_a.All_declarations_of_0_must_have_identical_modifiers,Ap(e.name))}else{const t=dR(s_(e));al(r)||al(t)||SS(r,t)||67108864&n.flags||fR(n.valueDeclaration,r,e,t),Pu(e)&&e.initializer&&OS(Ij(e.initializer),t,e,e.initializer,void 0),n.valueDeclaration&&!mR(e,n.valueDeclaration)&&zo(e.name,_a.All_declarations_of_0_must_have_identical_modifiers,Ap(e.name))}173!==e.kind&&172!==e.kind&&(kM(e),261!==e.kind&&209!==e.kind||function(e){if(7&Pz(e)||Qh(e))return;const t=ks(e);if(1&t.flags){if(!aD(e.name))return un.fail();const n=Ue(e,e.name.escapedText,3,void 0,!1);if(n&&n!==t&&2&n.flags&&7&hI(n)){const t=Th(n.valueDeclaration,262),r=244===t.parent.kind&&t.parent.parent?t.parent.parent:void 0;if(!r||!(242===r.kind&&r_(r.parent)||269===r.kind||268===r.kind||308===r.kind)){const t=bc(n);zo(e,_a.Cannot_initialize_outer_scoped_variable_0_in_the_same_scope_as_block_scoped_declaration_1,t,t)}}}}(e),uR(e,e.name))}function fR(e,t,n,r){const i=Cc(n),o=173===n.kind||172===n.kind?_a.Subsequent_property_declarations_must_have_the_same_type_Property_0_must_be_of_type_1_but_here_has_type_2:_a.Subsequent_variable_declarations_must_have_the_same_type_Variable_0_must_be_of_type_1_but_here_has_type_2,a=Ap(i),s=zo(i,o,a,Tc(t),Tc(r));e&&aT(s,Rp(e,_a._0_was_also_declared_here,a))}function mR(e,t){return 170===e.kind&&261===t.kind||261===e.kind&&170===t.kind||wg(e)===wg(t)&&jv(e,1358)===jv(t,1358)}function gR(t){var n,r;null==(n=Hn)||n.push(Hn.Phase.Check,"checkVariableDeclaration",{kind:t.kind,pos:t.pos,end:t.end,path:t.tracingPath}),function(t){const n=Pz(t),r=7&n;if(k_(t.name))switch(r){case 6:return kz(t,_a._0_declarations_may_not_have_binding_patterns,"await using");case 4:return kz(t,_a._0_declarations_may_not_have_binding_patterns,"using")}if(250!==t.parent.parent.kind&&251!==t.parent.parent.kind)if(33554432&n)fz(t);else if(!t.initializer){if(k_(t.name)&&!k_(t.parent))return kz(t,_a.A_destructuring_declaration_must_have_an_initializer);switch(r){case 6:return kz(t,_a._0_declarations_must_be_initialized,"await using");case 4:return kz(t,_a._0_declarations_must_be_initialized,"using");case 2:return kz(t,_a._0_declarations_must_be_initialized,"const")}}if(t.exclamationToken&&(244!==t.parent.parent.kind||!t.type||t.initializer||33554432&n)){const e=t.initializer?_a.Declarations_with_initializers_cannot_also_have_definite_assignment_assertions:t.type?_a.A_definite_assignment_assertion_is_not_permitted_in_this_context:_a.Declarations_with_definite_assignment_assertions_must_also_have_type_annotations;return kz(t.exclamationToken,e)}e.getEmitModuleFormatOfFile(vd(t))<4&&!(33554432&t.parent.parent.flags)&&Nv(t.parent.parent,32)&&mz(t.name),r&&gz(t.name)}(t),pR(t),null==(r=Hn)||r.pop()}function hR(e){const t=7&ac(e);(4===t||6===t)&&M=2,s=!a&&j.downlevelIteration,c=j.noUncheckedIndexedAccess&&!!(128&e);if(a||s||o){const o=ER(t,e,a?r:void 0);if(i&&o){const t=8&e?_a.Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_for_of_will_always_send_0:32&e?_a.Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_array_spread_will_always_send_0:64&e?_a.Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_array_destructuring_will_always_send_0:16&e?_a.Cannot_delegate_iteration_to_value_because_the_next_method_of_its_iterator_expects_type_1_but_the_containing_generator_will_always_send_0:void 0;t&&IS(n,o.nextType,r,t)}if(o||a)return c?rD(o&&o.yieldType):o&&o.yieldType}let l=t,_=!1;if(4&e){if(1048576&l.flags){const e=t.types,n=N(e,e=>!(402653316&e.flags));n!==e&&(l=Pb(n,2))}else 402653316&l.flags&&(l=_n);if(_=l!==t,_&&131072&l.flags)return c?rD(Vt):Vt}if(!JC(l)){if(r){const n=!!(4&e)&&!_,[i,o]=function(n,r){var i;return r?n?[_a.Type_0_is_not_an_array_type_or_a_string_type_or_does_not_have_a_Symbol_iterator_method_that_returns_an_iterator,!0]:[_a.Type_0_is_not_an_array_type_or_does_not_have_a_Symbol_iterator_method_that_returns_an_iterator,!0]:CR(e,0,t,void 0)?[_a.Type_0_can_only_be_iterated_through_when_using_the_downlevelIteration_flag_or_with_a_target_of_es2015_or_higher,!1]:function(e){switch(e){case"Float32Array":case"Float64Array":case"Int16Array":case"Int32Array":case"Int8Array":case"NodeList":case"Uint16Array":case"Uint32Array":case"Uint8Array":case"Uint8ClampedArray":return!0}return!1}(null==(i=t.symbol)?void 0:i.escapedName)?[_a.Type_0_can_only_be_iterated_through_when_using_the_downlevelIteration_flag_or_with_a_target_of_es2015_or_higher,!0]:n?[_a.Type_0_is_not_an_array_type_or_a_string_type,!0]:[_a.Type_0_is_not_an_array_type,!0]}(n,s);Wo(r,o&&!!SM(l),i,Tc(l))}return _?c?rD(Vt):Vt:void 0}const u=Qm(l,Wt);return _&&u?402653316&u.flags&&!j.noUncheckedIndexedAccess?Vt:Pb(c?[u,Vt,jt]:[u,Vt],2):128&e?rD(u):u}function CR(e,t,n,r){if(il(n))return;const i=ER(n,e,r);return i&&i[oJ(t)]}function wR(e=_n,t=_n,n=Ot){if(67359327&e.flags&&180227&t.flags&&180227&n.flags){const r=ny([e,t,n]);let i=pi.get(r);return i||(i={yieldType:e,returnType:t,nextType:n},pi.set(r,i)),i}return{yieldType:e,returnType:t,nextType:n}}function NR(e){let t,n,r;for(const i of e)if(void 0!==i&&i!==mi){if(i===gi)return gi;t=ie(t,i.yieldType),n=ie(n,i.returnType),r=ie(r,i.nextType)}return t||n||r?wR(t&&Pb(t),n&&Pb(n),r&&Bb(r)):mi}function DR(e,t){return e[t]}function FR(e,t,n){return e[t]=n}function ER(e,t,n){var r,i;if(e===dn)return hi;if(il(e))return gi;if(!(1048576&e.flags)){const i=n?{errors:void 0,skipLogging:!0}:void 0,o=AR(e,t,n,i);if(o===mi){if(n){const r=RR(n,e,!!(2&t));(null==i?void 0:i.errors)&&aT(r,...i.errors)}return}if(null==(r=null==i?void 0:i.errors)?void 0:r.length)for(const e of i.errors)ho.add(e);return o}const o=2&t?"iterationTypesOfAsyncIterable":"iterationTypesOfIterable",a=DR(e,o);if(a)return a===mi?void 0:a;let s;for(const r of e.types){const a=n?{errors:void 0}:void 0,c=AR(r,t,n,a);if(c===mi){if(n){const r=RR(n,e,!!(2&t));(null==a?void 0:a.errors)&&aT(r,...a.errors)}return void FR(e,o,mi)}if(null==(i=null==a?void 0:a.errors)?void 0:i.length)for(const e of a.errors)ho.add(e);s=ie(s,c)}const c=s?NR(s):mi;return FR(e,o,c),c===mi?void 0:c}function PR(e,t){if(e===mi)return mi;if(e===gi)return gi;const{yieldType:n,returnType:r,nextType:i}=e;return t&&xv(!0),wR(PM(n,t)||wt,PM(r,t)||wt,i)}function AR(e,t,n,r){if(il(e))return gi;let i=!1;if(2&t){const r=IR(e,yi)||OR(e,yi);if(r){if(r!==mi||!n)return 8&t?PR(r,n):r;i=!0}}if(1&t){let r=IR(e,vi)||OR(e,vi);if(r)if(r===mi&&n)i=!0;else{if(!(2&t))return r;if(r!==mi)return r=PR(r,n),i?r:FR(e,"iterationTypesOfAsyncIterable",r)}}if(2&t){const t=jR(e,yi,n,r,i);if(t!==mi)return t}if(1&t){let o=jR(e,vi,n,r,i);if(o!==mi)return 2&t?(o=PR(o,n),i?o:FR(e,"iterationTypesOfAsyncIterable",o)):o}return mi}function IR(e,t){return DR(e,t.iterableCacheKey)}function OR(e,t){if(J_(e,t.getGlobalIterableType(!1))||J_(e,t.getGlobalIteratorObjectType(!1))||J_(e,t.getGlobalIterableIteratorType(!1))||J_(e,t.getGlobalGeneratorType(!1))){const[n,r,i]=uy(e);return FR(e,t.iterableCacheKey,wR(t.resolveIterationType(n,void 0)||n,t.resolveIterationType(r,void 0)||r,i))}if(B_(e,t.getGlobalBuiltinIteratorTypes())){const[n]=uy(e),r=mv(),i=Ot;return FR(e,t.iterableCacheKey,wR(t.resolveIterationType(n,void 0)||n,t.resolveIterationType(r,void 0)||r,i))}}function LR(e){const t=Yy(!1),n=t&&el(P_(t),fc(e));return n&&sC(n)?cC(n):`__@${e}`}function jR(e,t,n,r,i){const o=pm(e,LR(t.iteratorSymbolName)),a=!o||16777216&o.flags?void 0:P_(o);if(il(a))return i?gi:FR(e,t.iterableCacheKey,gi);const s=a?mm(a,0):void 0,c=N(s,e=>0===ML(e));if(!$(c))return n&&$(s)&&IS(e,t.getGlobalIterableType(!0),n,void 0,void 0,r),i?mi:FR(e,t.iterableCacheKey,mi);const l=BR(Bb(E(c,Gg)),t,n,r,i)??mi;return i?l:FR(e,t.iterableCacheKey,l)}function RR(e,t,n){const r=n?_a.Type_0_must_have_a_Symbol_asyncIterator_method_that_returns_an_async_iterator:_a.Type_0_must_have_a_Symbol_iterator_method_that_returns_an_iterator;return Wo(e,!!SM(t)||!n&&ZF(e.parent)&&e.parent.expression===e&&rv(!1)!==On&&FS(t,kv(rv(!1),[wt,wt,wt])),r,Tc(t))}function BR(e,t,n,r,i){if(il(e))return gi;let o=function(e,t){return DR(e,t.iteratorCacheKey)}(e,t)||function(e,t){if(J_(e,t.getGlobalIterableIteratorType(!1))||J_(e,t.getGlobalIteratorType(!1))||J_(e,t.getGlobalIteratorObjectType(!1))||J_(e,t.getGlobalGeneratorType(!1))){const[n,r,i]=uy(e);return FR(e,t.iteratorCacheKey,wR(n,r,i))}if(B_(e,t.getGlobalBuiltinIteratorTypes())){const[n]=uy(e),r=mv(),i=Ot;return FR(e,t.iteratorCacheKey,wR(n,r,i))}}(e,t);return o===mi&&n&&(o=void 0,i=!0),o??(o=function(e,t,n,r,i){const o=NR([VR(e,t,"next",n,r),VR(e,t,"return",n,r),VR(e,t,"throw",n,r)]);return i?o:FR(e,t.iteratorCacheKey,o)}(e,t,n,r,i)),o===mi?void 0:o}function JR(e,t){const n=el(e,"done")||Ht;return FS(0===t?Ht:Yt,n)}function zR(e){return JR(e,0)}function qR(e){return JR(e,1)}function VR(e,t,n,r,i){var o,a,s,c;const _=pm(e,n);if(!_&&"next"!==n)return;const u=!_||"next"===n&&16777216&_.flags?void 0:"next"===n?P_(_):XN(P_(_),2097152);if(il(u))return gi;const d=u?mm(u,0):l;if(0===d.length){if(r){const e="next"===n?t.mustHaveANextMethodDiagnostic:t.mustBeAMethodDiagnostic;i?(i.errors??(i.errors=[]),i.errors.push(Rp(r,e,n))):zo(r,e,n)}return"next"===n?mi:void 0}if((null==u?void 0:u.symbol)&&1===d.length){const e=t.getGlobalGeneratorType(!1),r=t.getGlobalIteratorType(!1),i=(null==(a=null==(o=e.symbol)?void 0:o.members)?void 0:a.get(n))===u.symbol,l=!i&&(null==(c=null==(s=r.symbol)?void 0:s.members)?void 0:c.get(n))===u.symbol;if(i||l){const t=i?e:r,{mapper:o}=u;return wR(Vk(t.typeParameters[0],o),Vk(t.typeParameters[1],o),"next"===n?Vk(t.typeParameters[2],o):void 0)}}let p,f,m,g,h;for(const e of d)"throw"!==n&&$(e.parameters)&&(p=ie(p,AL(e,0))),f=ie(f,Gg(e));if("throw"!==n){const e=p?Pb(p):Ot;"next"===n?g=e:"return"===n&&(m=ie(m,t.resolveIterationType(e,r)||wt))}const y=f?Bb(f):_n,v=function(e){if(il(e))return gi;const t=DR(e,"iterationTypesOfIteratorResult");if(t)return t;if(J_(e,Cr||(Cr=Wy("IteratorYieldResult",1,!1))||On))return FR(e,"iterationTypesOfIteratorResult",wR(uy(e)[0],void 0,void 0));if(J_(e,wr||(wr=Wy("IteratorReturnResult",1,!1))||On))return FR(e,"iterationTypesOfIteratorResult",wR(void 0,uy(e)[0],void 0));const n=GD(e,zR),r=n!==_n?el(n,"value"):void 0,i=GD(e,qR),o=i!==_n?el(i,"value"):void 0;return FR(e,"iterationTypesOfIteratorResult",r||o?wR(r,o||ln,void 0):mi)}(t.resolveIterationType(y,r)||wt);return v===mi?(r&&(i?(i.errors??(i.errors=[]),i.errors.push(Rp(r,t.mustHaveAValueDiagnostic,n))):zo(r,t.mustHaveAValueDiagnostic,n)),h=wt,m=ie(m,wt)):(h=v.yieldType,m=ie(m,v.returnType)),wR(h,Pb(m),g)}function WR(e,t,n){if(il(t))return;const r=$R(t,n);return r&&r[oJ(e)]}function $R(e,t){if(il(e))return gi;const n=t?yi:vi;return ER(e,t?2:1,void 0)||function(e,t){return BR(e,t,void 0,void 0,!1)}(e,n)}function KR(e,t){const n=!!(2&t);if(1&t){const t=WR(1,e,n);return t?n?AM(FM(t)):t:Et}return n?AM(e)||Et:e}function XR(e,t){const n=KR(t,Oh(e));return!(!n||!(gj(n,16384)||32769&n.flags))}function QR(e,t,n,r,i,o=!1){const a=Em(n),s=Oh(e);if(r){const i=ah(r,a);if(DF(i))return QR(e,t,n,i.whenTrue,eM(i.whenTrue),!0),void QR(e,t,n,i.whenFalse,eM(i.whenFalse),!0)}const c=254===n.kind,l=2&s?CM(i,!1,n,_a.The_return_type_of_an_async_function_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member):i,_=r&&LO(r);OS(l,t,c&&!o?n:_,_)}function YR(e,t,n){const r=Jm(e);if(0===r.length)return;for(const t of Dp(e))n&&4194304&t.flags||ZR(e,t,Kb(t,8576,!0),M_(t));const i=t.valueDeclaration;if(i&&u_(i))for(const t of i.members)if((!n&&!Dv(t)||n&&Dv(t))&&!fd(t)){const n=ks(t);ZR(e,n,Qj(t.name.expression),M_(n))}if(r.length>1)for(const t of r)eB(e,t)}function ZR(e,t,n,r){const i=t.valueDeclaration,o=Cc(i);if(o&&sD(o))return;const a=rg(e,n),s=2&gx(e)?Hu(e.symbol,265):void 0,c=i&&227===i.kind||o&&168===o.kind?i:void 0,l=Ts(t)===e.symbol?i:void 0;for(const n of a){const i=n.declaration&&Ts(ks(n.declaration))===e.symbol?n.declaration:void 0,o=l||i||(s&&!$(uu(e),e=>!!Lp(e,t.escapedName)&&!!Qm(e,n.keyType))?s:void 0);if(o&&!FS(r,n.type)){const e=Jo(o,_a.Property_0_of_type_1_is_not_assignable_to_2_index_type_3,bc(t),Tc(r),Tc(n.keyType),Tc(n.type));c&&o!==c&&aT(e,Rp(c,_a._0_is_declared_here,bc(t))),ho.add(e)}}}function eB(e,t){const n=t.declaration,r=rg(e,t.keyType),i=2&gx(e)?Hu(e.symbol,265):void 0,o=n&&Ts(ks(n))===e.symbol?n:void 0;for(const n of r){if(n===t)continue;const r=n.declaration&&Ts(ks(n.declaration))===e.symbol?n.declaration:void 0,a=o||r||(i&&!$(uu(e),e=>!!qm(e,t.keyType)&&!!Qm(e,n.keyType))?i:void 0);a&&!FS(t.type,n.type)&&zo(a,_a._0_index_type_1_is_not_assignable_to_2_index_type_3,Tc(t.keyType),Tc(t.type),Tc(n.keyType),Tc(n.type))}}function nB(e,t){switch(e.escapedText){case"any":case"unknown":case"never":case"number":case"bigint":case"boolean":case"string":case"symbol":case"void":case"object":case"undefined":zo(e,t,e.escapedText)}}function rB(e){let t=!1;if(e)for(let t=0;t{var i,o,a;n.default?(t=!0,i=n.default,o=e,a=r,function e(t){if(184===t.kind){const e=jy(t);if(262144&e.flags)for(let n=a;n264===e.kind||265===e.kind)}(e);if(!n||n.length<=1)return;if(!oB(n,Au(e).localTypeParameters,_l)){const t=bc(e);for(const e of n)zo(e.name,_a.All_declarations_of_0_must_have_identical_type_parameters,t)}}}function oB(e,t,n){const r=u(t),i=Tg(t);for(const o of e){const e=n(o),a=e.length;if(ar)return!1;for(let n=0;n1)return bz(r.types[1],_a.Classes_can_only_extend_a_single_class);t=!0}else{if(un.assert(119===r.token),n)return bz(r,_a.implements_clause_already_seen);n=!0}tz(r)}})(e)||YJ(e.typeParameters,t)}(e),zM(e),uR(e,e.name),rB(_l(e)),kM(e);const t=ks(e),n=Au(t),r=wd(n),i=P_(t);iB(t),xM(t),function(e){const t=new Map,n=new Map,r=new Map;for(const o of e.members)if(177===o.kind)for(const e of o.parameters)Zs(e,o)&&!k_(e.name)&&i(t,e.name,e.name.escapedText,3);else{const e=Dv(o),a=o.name;if(!a)continue;const s=sD(a),c=s&&e?16:0,l=s?r:e?n:t,_=a&&Fz(a);if(_)switch(o.kind){case 178:i(l,a,_,1|c);break;case 179:i(l,a,_,2|c);break;case 173:i(l,a,_,3|c);break;case 175:i(l,a,_,8|c)}}function i(e,t,n,r){const i=e.get(n);if(i)if((16&i)!=(16&r))zo(t,_a.Duplicate_identifier_0_Static_and_instance_elements_cannot_share_the_same_private_name,Xd(t));else{const o=!!(8&i),a=!!(8&r);o||a?o!==a&&zo(t,_a.Duplicate_identifier_0,Xd(t)):i&r&-17?zo(t,_a.Duplicate_identifier_0,Xd(t)):e.set(n,i|r)}else e.set(n,r)}}(e),33554432&e.flags||function(e){for(const t of e.members){const n=t.name;if(Dv(t)&&n){const t=Fz(n);switch(t){case"name":case"length":case"caller":case"arguments":if(U)break;case"prototype":zo(n,_a.Static_property_0_conflicts_with_built_in_property_Function_0_of_constructor_function_1,t,Uc(ks(e)))}}}}(e);const o=yh(e);if(o){d(o.typeArguments,AB),M{const t=s[0],a=cu(n),c=Sf(a);if(function(e,t){const n=mm(e,1);if(n.length){const r=n[0].declaration;r&&wv(r,2)&&(pJ(t,mx(e.symbol))||zo(t,_a.Cannot_extend_a_class_0_Class_constructor_is_marked_as_private,es(e.symbol)))}}(c,o),AB(o.expression),$(o.typeArguments)){d(o.typeArguments,AB);for(const e of ru(c,o.typeArguments,o))if(!fM(o,e.typeParameters))break}const l=wd(t,n.thisType);IS(r,l,void 0)?IS(i,kS(c),e.name||e,_a.Class_static_side_0_incorrectly_extends_base_class_static_side_1):_B(e,r,l,_a.Class_0_incorrectly_extends_base_class_1),8650752&a.flags&&(eu(i)?mm(a,1).some(e=>4&e.flags)&&!Nv(e,64)&&zo(e.name||e,_a.A_mixin_class_that_extends_from_a_type_variable_containing_an_abstract_construct_signature_must_also_be_declared_abstract):zo(e.name||e,_a.A_mixin_class_must_have_a_constructor_with_a_single_rest_parameter_of_type_any)),c.symbol&&32&c.symbol.flags||8650752&a.flags||d(iu(c,o.typeArguments,o),e=>!sL(e.declaration)&&!SS(Gg(e),t))&&zo(o.expression,_a.Base_constructors_must_all_have_the_same_return_type),function(e,t){var n,r,i,o,a;const s=Up(t),c=new Map;e:for(const l of s){const s=uB(l);if(4194304&s.flags)continue;const _=Lp(e,s.escapedName);if(!_)continue;const u=uB(_),d=ix(s);if(un.assert(!!u,"derived should point to something, even if it is the base class' declaration."),u===s){const r=mx(e.symbol);if(64&d&&(!r||!Nv(r,64))){for(const n of uu(e)){if(n===t)continue;const e=Lp(n,s.escapedName),r=e&&uB(e);if(r&&r!==s)continue e}const i=Tc(t),o=Tc(e),a=bc(l),_=ie(null==(n=c.get(r))?void 0:n.missedProperties,a);c.set(r,{baseTypeName:i,typeName:o,missedProperties:_})}}else{const n=ix(u);if(2&d||2&n)continue;let c;const l=98308&s.flags,_=98308&u.flags;if(l&&_){if((6&rx(s)?null==(r=s.declarations)?void 0:r.some(e=>pB(e,d)):null==(i=s.declarations)?void 0:i.every(e=>pB(e,d)))||262144&rx(s)||u.valueDeclaration&&NF(u.valueDeclaration))continue;const c=4!==l&&4===_;if(c||4===l&&4!==_){const n=c?_a._0_is_defined_as_an_accessor_in_class_1_but_is_overridden_here_in_2_as_an_instance_property:_a._0_is_defined_as_a_property_in_class_1_but_is_overridden_here_in_2_as_an_accessor;zo(Cc(u.valueDeclaration)||u.valueDeclaration,n,bc(s),Tc(t),Tc(e))}else if(U){const r=null==(o=u.declarations)?void 0:o.find(e=>173===e.kind&&!e.initializer);if(r&&!(33554432&u.flags)&&!(64&d)&&!(64&n)&&!(null==(a=u.declarations)?void 0:a.some(e=>!!(33554432&e.flags)))){const n=yC(mx(e.symbol)),i=r.name;if(r.exclamationToken||!n||!aD(i)||!H||!mB(i,e,n)){const e=_a.Property_0_will_overwrite_the_base_property_in_1_If_this_is_intentional_add_an_initializer_Otherwise_add_a_declare_modifier_or_remove_the_redundant_declaration;zo(Cc(u.valueDeclaration)||u.valueDeclaration,e,bc(s),Tc(t))}}}continue}if(yI(s)){if(yI(u)||4&u.flags)continue;un.assert(!!(98304&u.flags)),c=_a.Class_0_defines_instance_member_function_1_but_extended_class_2_defines_it_as_instance_member_accessor}else c=98304&s.flags?_a.Class_0_defines_instance_member_accessor_1_but_extended_class_2_defines_it_as_instance_member_function:_a.Class_0_defines_instance_member_property_1_but_extended_class_2_defines_it_as_instance_member_function;zo(Cc(u.valueDeclaration)||u.valueDeclaration,c,Tc(t),bc(s),Tc(e))}}for(const[e,t]of c)if(1===u(t.missedProperties))AF(e)?zo(e,_a.Non_abstract_class_expression_does_not_implement_inherited_abstract_member_0_from_class_1,ge(t.missedProperties),t.baseTypeName):zo(e,_a.Non_abstract_class_0_does_not_implement_inherited_abstract_member_1_from_class_2,t.typeName,ge(t.missedProperties),t.baseTypeName);else if(u(t.missedProperties)>5){const n=E(t.missedProperties.slice(0,4),e=>`'${e}'`).join(", "),r=u(t.missedProperties)-4;AF(e)?zo(e,_a.Non_abstract_class_expression_is_missing_implementations_for_the_following_members_of_0_Colon_1_and_2_more,t.baseTypeName,n,r):zo(e,_a.Non_abstract_class_0_is_missing_implementations_for_the_following_members_of_1_Colon_2_and_3_more,t.typeName,t.baseTypeName,n,r)}else{const n=E(t.missedProperties,e=>`'${e}'`).join(", ");AF(e)?zo(e,_a.Non_abstract_class_expression_is_missing_implementations_for_the_following_members_of_0_Colon_1,t.baseTypeName,n):zo(e,_a.Non_abstract_class_0_is_missing_implementations_for_the_following_members_of_1_Colon_2,t.typeName,t.baseTypeName,n)}}(n,t)})}!function(e,t,n,r){const i=yh(e)&&uu(t),o=(null==i?void 0:i.length)?wd(ge(i),t.thisType):void 0,a=cu(t);for(const i of e.members)Av(i)||(PD(i)&&d(i.parameters,s=>{Zs(s,i)&&cB(e,r,a,o,t,n,s,!0)}),cB(e,r,a,o,t,n,i,!1))}(e,n,r,i);const s=bh(e);if(s)for(const e of s)ab(e.expression)&&!hl(e.expression)||zo(e.expression,_a.A_class_can_only_implement_an_identifier_Slashqualified_name_with_optional_type_arguments),gM(e),a(c(e));function c(t){return()=>{const i=Bf(Pk(t));if(!al(i))if(fu(i)){const t=i.symbol&&32&i.symbol.flags?_a.Class_0_incorrectly_implements_class_1_Did_you_mean_to_extend_1_and_inherit_its_members_as_a_subclass:_a.Class_0_incorrectly_implements_interface_1,o=wd(i,n.thisType);IS(r,o,void 0)||_B(e,r,o,t)}else zo(t,_a.A_class_can_only_implement_an_object_type_or_intersection_of_object_types_with_statically_known_members)}}a(()=>{YR(n,t),YR(i,t,!0),sM(e),function(e){if(!H||!Z||33554432&e.flags)return;const t=yC(e);for(const n of e.members)if(!(128&Bv(n))&&!Dv(n)&&fB(n)){const e=n.name;if(aD(e)||sD(e)||kD(e)){const r=P_(ks(n));3&r.flags||QS(r)||t&&mB(e,r,t)||zo(n.name,_a.Property_0_has_no_initializer_and_is_not_definitely_assigned_in_the_constructor,Ap(e))}}}(e)})}function cB(e,t,n,r,i,o,a,s,c=!0){const l=a.name&&yJ(a.name)||yJ(a);return l?lB(e,t,n,r,i,o,Ev(a),Pv(a),Dv(a),s,l,c?a:void 0):0}function lB(e,t,n,r,i,o,a,s,c,l,_,u){const d=Em(e),p=!!(33554432&e.flags);if(a&&(null==_?void 0:_.valueDeclaration)&&__(_.valueDeclaration)&&_.valueDeclaration.name&&md(_.valueDeclaration.name))return zo(u,d?_a.This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_its_name_is_dynamic:_a.This_member_cannot_have_an_override_modifier_because_its_name_is_dynamic),2;if(r&&(a||j.noImplicitOverride)){const e=c?n:r,i=pm(c?t:o,_.escapedName),f=pm(e,_.escapedName),m=Tc(r);if(i&&!f&&a){if(u){const t=KI(yc(_),e);t?zo(u,d?_a.This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base_class_0_Did_you_mean_1:_a.This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0_Did_you_mean_1,m,bc(t)):zo(u,d?_a.This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base_class_0:_a.This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0,m)}return 2}if(i&&(null==f?void 0:f.declarations)&&j.noImplicitOverride&&!p){const e=$(f.declarations,Pv);if(a)return 0;if(!e)return u&&zo(u,l?d?_a.This_parameter_property_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_class_0:_a.This_parameter_property_must_have_an_override_modifier_because_it_overrides_a_member_in_base_class_0:d?_a.This_member_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_class_0:_a.This_member_must_have_an_override_modifier_because_it_overrides_a_member_in_the_base_class_0,m),1;if(s&&e)return u&&zo(u,_a.This_member_must_have_an_override_modifier_because_it_overrides_an_abstract_method_that_is_declared_in_the_base_class_0,m),1}}else if(a){if(u){const e=Tc(i);zo(u,d?_a.This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_its_containing_class_0_does_not_extend_another_class:_a.This_member_cannot_have_an_override_modifier_because_its_containing_class_0_does_not_extend_another_class,e)}return 2}return 0}function _B(e,t,n,r){let i=!1;for(const r of e.members){if(Dv(r))continue;const e=r.name&&yJ(r.name)||yJ(r);if(e){const o=pm(t,e.escapedName),a=pm(n,e.escapedName);if(o&&a){const s=()=>Zx(void 0,_a.Property_0_in_type_1_is_not_assignable_to_the_same_property_in_base_type_2,bc(e),Tc(t),Tc(n));IS(P_(o),P_(a),r.name||r,void 0,s)||(i=!0)}}}i||IS(t,n,e.name||e,r)}function uB(e){return 1&rx(e)?e.links.target:e}function pB(e,t){return 64&t&&(!ND(e)||!e.initializer)||pE(e.parent)}function fB(e){return 173===e.kind&&!Pv(e)&&!e.exclamationToken&&!e.initializer}function mB(e,t,n){const r=kD(e)?mw.createElementAccessExpression(mw.createThis(),e.expression):mw.createPropertyAccessExpression(mw.createThis(),e);return DT(r.expression,r),DT(r,n),r.flowNode=n.returnFlowNode,!QS(rE(r,t,pw(t)))}function gB(e){const t=da(e);if(!(1024&t.flags)){t.flags|=1024;let n,r=0;for(const t of e.members){const e=hB(t,r,n);da(t).enumMemberValue=e,r="number"==typeof e.value?e.value+1:void 0,n=t}}}function hB(e,t,n){if(Op(e.name))zo(e.name,_a.Computed_property_names_are_not_allowed_in_enums);else if(qN(e.name))zo(e.name,_a.An_enum_member_cannot_have_a_numeric_name);else{const t=jp(e.name);JT(t)&&!jT(t)&&zo(e.name,_a.An_enum_member_cannot_have_a_numeric_name)}if(e.initializer)return function(e){const t=tf(e.parent),n=e.initializer,r=Ce(n,e);return void 0!==r.value?t&&"number"==typeof r.value&&!isFinite(r.value)?zo(n,isNaN(r.value)?_a.const_enum_member_initializer_was_evaluated_to_disallowed_value_NaN:_a.const_enum_member_initializer_was_evaluated_to_a_non_finite_value):kk(j)&&"string"==typeof r.value&&!r.isSyntacticallyString&&zo(n,_a._0_has_a_string_type_but_must_have_syntactically_recognizable_string_syntax_when_isolatedModules_is_enabled,`${gc(e.parent.name)}.${jp(e.name)}`):t?zo(n,_a.const_enum_member_initializers_must_be_constant_expressions):33554432&e.parent.flags?zo(n,_a.In_ambient_enum_declarations_member_initializer_must_be_constant_expression):IS(eM(n),Wt,n,_a.Type_0_is_not_assignable_to_type_1_as_required_for_computed_enum_member_values),r}(e);if(33554432&e.parent.flags&&!tf(e.parent))return mC(void 0);if(void 0===t)return zo(e.name,_a.Enum_member_must_have_initializer),mC(void 0);if(kk(j)&&(null==n?void 0:n.initializer)){const t=MJ(n);("number"!=typeof t.value||t.resolvedOtherFiles)&&zo(e.name,_a.Enum_member_following_a_non_literal_numeric_member_must_have_an_initializer_when_isolatedModules_is_enabled)}return mC(t)}function vB(e,t){const n=ts(e,111551,!0);if(!n)return mC(void 0);if(80===e.kind){const t=e;if(jT(t.escapedText)&&n===Vy(t.escapedText,111551,void 0))return mC(+t.escapedText,!1)}if(8&n.flags)return t?bB(e,n,t):MJ(n.valueDeclaration);if(TE(n)){const e=n.valueDeclaration;if(e&&lE(e)&&!e.type&&e.initializer&&(!t||e!==t&&fa(e,t))){const n=Ce(e.initializer,e);return t&&vd(t)!==vd(e)?mC(n.value,!1,!0,!0):mC(n.value,n.isSyntacticallyString,n.resolvedOtherFiles,!0)}}return mC(void 0)}function bB(e,t,n){const r=t.valueDeclaration;if(!r||r===n)return zo(e,_a.Property_0_is_used_before_being_assigned,bc(t)),mC(void 0);if(!fa(r,n))return zo(e,_a.A_member_initializer_in_a_enum_declaration_cannot_reference_members_declared_after_it_including_members_defined_in_other_enums),mC(0);const i=MJ(r);return n.parent!==r.parent?mC(i.value,i.isSyntacticallyString,i.resolvedOtherFiles,!0):i}function xB(e,t){switch(e.kind){case 244:for(const n of e.declarationList.declarations)xB(n,t);break;case 278:case 279:bz(e,_a.Exports_and_export_assignments_are_not_permitted_in_module_augmentations);break;case 272:if(Nm(e))break;case 273:bz(e,_a.Imports_are_not_permitted_in_module_augmentations_Consider_moving_them_to_the_enclosing_external_module);break;case 209:case 261:const n=e.name;if(k_(n)){for(const e of n.elements)xB(e,t);break}case 264:case 267:case 263:case 265:case 268:case 266:if(t)return}}function kB(e){const t=kg(e);if(!t||Nd(t))return!1;if(!UN(t))return zo(t,_a.String_literal_expected),!1;const n=269===e.parent.kind&&cp(e.parent.parent);if(308!==e.parent.kind&&!n)return zo(t,279===e.kind?_a.Export_declarations_are_not_permitted_in_a_namespace:_a.Import_declarations_in_a_namespace_cannot_reference_a_module),!1;if(n&&Cs(t.text)&&!Jc(e))return zo(e,_a.Import_or_export_declaration_in_an_ambient_module_declaration_cannot_reference_module_through_relative_module_name),!1;if(!bE(e)&&e.attributes){const t=118===e.attributes.token?_a.Import_attribute_values_must_be_string_literal_expressions:_a.Import_assertion_values_must_be_string_literal_expressions;let n=!1;for(const r of e.attributes.elements)UN(r.value)||(n=!0,zo(r.value,t));return!n}return!0}function SB(e,t=!0){void 0!==e&&11===e.kind&&(t?5!==R&&6!==R||kz(e,_a.String_literal_import_and_export_names_are_not_supported_when_the_module_flag_is_set_to_es2015_or_es2020):kz(e,_a.Identifier_expected))}function TB(t){var n,r,i,o,a;let s=ks(t);const c=Ha(s);if(c!==xt){if(s=xs(s.exportSymbol||s),Em(t)&&!(111551&c.flags)&&!zl(t)){const e=Rl(t)?t.propertyName||t.name:Sc(t)?t.name:t;if(un.assert(281!==t.kind),282===t.kind){const o=zo(e,_a.Types_cannot_appear_in_export_declarations_in_JavaScript_files),a=null==(r=null==(n=vd(t).symbol)?void 0:n.exports)?void 0:r.get(Hd(t.propertyName||t.name));if(a===c){const e=null==(i=a.declarations)?void 0:i.find(Su);e&&aT(o,Rp(e,_a._0_is_automatically_exported_here,mc(a.escapedName)))}}else{un.assert(261!==t.kind);const n=uc(t,en(xE,bE)),r=(n&&(null==(o=yg(n))?void 0:o.text))??"...",i=mc(aD(e)?e.escapedText:s.escapedName);zo(e,_a._0_is_a_type_and_cannot_be_imported_in_JavaScript_files_Use_1_in_a_JSDoc_type_annotation,i,`import("${r}").${i}`)}return}const l=Ka(c);if(l&((1160127&s.flags?111551:0)|(788968&s.flags?788968:0)|(1920&s.flags?1920:0))?zo(t,282===t.kind?_a.Export_declaration_conflicts_with_exported_declaration_of_0:_a.Import_declaration_conflicts_with_local_declaration_of_0,bc(s)):282!==t.kind&&j.isolatedModules&&!uc(t,zl)&&1160127&s.flags&&zo(t,_a.Import_0_conflicts_with_local_value_so_must_be_declared_with_a_type_only_import_when_isolatedModules_is_enabled,bc(s),Me),kk(j)&&!zl(t)&&!(33554432&t.flags)){const n=Ya(s),r=!(111551&l);if(r||n)switch(t.kind){case 274:case 277:case 272:if(j.verbatimModuleSyntax){un.assertIsDefined(t.name,"An ImportClause with a symbol should have a name");const e=j.verbatimModuleSyntax&&Nm(t)?_a.An_import_alias_cannot_resolve_to_a_type_or_type_only_declaration_when_verbatimModuleSyntax_is_enabled:r?_a._0_is_a_type_and_must_be_imported_using_a_type_only_import_when_verbatimModuleSyntax_is_enabled:_a._0_resolves_to_a_type_only_declaration_and_must_be_imported_using_a_type_only_import_when_verbatimModuleSyntax_is_enabled,i=$d(277===t.kind&&t.propertyName||t.name);ha(zo(t,e,i),r?void 0:n,i)}r&&272===t.kind&&wv(t,32)&&zo(t,_a.Cannot_use_export_import_on_a_type_or_type_only_namespace_when_0_is_enabled,Me);break;case 282:if(j.verbatimModuleSyntax||vd(n)!==vd(t)){const e=$d(t.propertyName||t.name);ha(r?zo(t,_a.Re_exporting_a_type_when_0_is_enabled_requires_using_export_type,Me):zo(t,_a._0_resolves_to_a_type_only_declaration_and_must_be_re_exported_using_a_type_only_re_export_when_1_is_enabled,e,Me),r?void 0:n,e);break}}if(j.verbatimModuleSyntax&&272!==t.kind&&!Em(t)&&1===e.getEmitModuleFormatOfFile(vd(t))?zo(t,qo(t)):200===R&&272!==t.kind&&261!==t.kind&&1===e.getEmitModuleFormatOfFile(vd(t))&&zo(t,_a.ECMAScript_module_syntax_is_not_allowed_in_a_CommonJS_module_when_module_is_set_to_preserve),j.verbatimModuleSyntax&&!zl(t)&&!(33554432&t.flags)&&128&l){const n=c.valueDeclaration,r=null==(a=e.getRedirectFromOutput(vd(n).resolvedPath))?void 0:a.resolvedRef;!(33554432&n.flags)||r&&Fk(r.commandLine.options)||zo(t,_a.Cannot_access_ambient_const_enums_when_0_is_enabled,Me)}}if(PE(t)){const e=CB(s,t);Ho(e)&&e.declarations&&Go(t,e.declarations,e.escapedName)}}}function CB(e,t){if(!(2097152&e.flags)||Ho(e)||!Ca(e))return e;const n=Ha(e);if(n===xt)return n;for(;2097152&e.flags;){const r=VA(e);if(!r)break;if(r===n)break;if(r.declarations&&u(r.declarations)){if(Ho(r)){Go(t,r.declarations,r.escapedName);break}if(e===n)break;e=r}}return n}function wB(t){uR(t,t.name),TB(t),277===t.kind&&(SB(t.propertyName),Kd(t.propertyName||t.name)&&Sk(j)&&e.getEmitModuleFormatOfFile(vd(t))<4&&HJ(t,131072))}function NB(e){var t;const n=e.attributes;if(n){const r=Qy(!0);r!==Nn&&IS(function(e){const t=da(e);if(!t.resolvedType){const n=Xo(4096,"__importAttributes"),r=Gu();d(e.elements,e=>{const t=Xo(4,pC(e));t.parent=n,t.links.type=function(e){return dk(Ij(e.value))}(e),t.links.target=t,r.set(t.escapedName,t)});const i=$s(n,r,l,l,l);i.objectFlags|=262272,t.resolvedType=i}return t.resolvedType}(n),dw(r,32768),n);const i=uV(e),o=mV(n,i?kz:void 0),a=118===e.attributes.token;if(i&&o)return;if(!Bk(R))return kz(n,a?_a.Import_attributes_are_only_supported_when_the_module_option_is_set_to_esnext_node18_node20_nodenext_or_preserve:_a.Import_assertions_are_only_supported_when_the_module_option_is_set_to_esnext_node18_node20_nodenext_or_preserve);if(102<=R&&R<=199&&!a)return bz(n,_a.Import_assertions_have_been_replaced_by_import_attributes_Use_with_instead_of_assert);if(e.moduleSpecifier&&1===Pa(e.moduleSpecifier))return kz(n,a?_a.Import_attributes_are_not_allowed_on_statements_that_compile_to_CommonJS_require_calls:_a.Import_assertions_are_not_allowed_on_statements_that_compile_to_CommonJS_require_calls);if(XP(e)||(xE(e)?null==(t=e.importClause)?void 0:t.isTypeOnly:e.isTypeOnly))return kz(n,a?_a.Import_attributes_cannot_be_used_with_type_only_imports_or_exports:_a.Import_assertions_cannot_be_used_with_type_only_imports_or_exports);if(o)return kz(n,_a.resolution_mode_can_only_be_set_for_type_only_imports)}}function DB(e,t){const n=308===e.parent.kind||269===e.parent.kind||268===e.parent.kind;return n||bz(e,t),!n}function FB(t){TB(t);const n=void 0!==t.parent.parent.moduleSpecifier;if(SB(t.propertyName,n),SB(t.name),Dk(j)&&Wc(t.propertyName||t.name,!0),n)Sk(j)&&e.getEmitModuleFormatOfFile(vd(t))<4&&Kd(t.propertyName||t.name)&&HJ(t,131072);else{const e=t.propertyName||t.name;if(11===e.kind)return;const n=Ue(e,e.escapedText,2998271,void 0,!0);n&&(n===De||n===Fe||n.declarations&&Yp(Zc(n.declarations[0])))?zo(e,_a.Cannot_export_0_Only_local_declarations_can_be_exported_from_a_module,gc(e)):RE(t,7)}}function EB(e){const t=ks(e),n=ua(t);if(!n.exportsChecked){const e=t.exports.get("export=");if(e&&function(e){return rd(e.exports,(e,t)=>"export="!==t)}(t)){const t=Ca(e)||e.valueDeclaration;!t||Jc(t)||Em(t)||zo(t,_a.An_export_assignment_cannot_be_used_in_a_module_with_other_exported_elements)}const r=ys(t);r&&r.forEach(({declarations:e,flags:t},n)=>{if("__export"===n)return;if(1920&t)return;const r=w(e,Zt(GB,tn(pE)));if(!(524288&t&&r<=2)&&r>1&&!PB(e))for(const t of e)rJ(t)&&ho.add(Rp(t,_a.Cannot_redeclare_exported_variable_0,mc(n)))}),n.exportsChecked=!0}}function PB(e){return e&&e.length>1&&e.every(e=>Em(e)&&Sx(e)&&(Ym(e.expression)||eg(e.expression)))}function AB(n){if(n){const i=r;r=n,h=0,function(n){if(8388608&LJ(n))return;Lg(n)&&d(n.jsDoc,({comment:e,tags:t})=>{IB(e),d(t,e=>{IB(e.comment),Em(n)&&AB(e)})});const r=n.kind;if(t)switch(r){case 268:case 264:case 265:case 263:t.throwIfCancellationRequested()}switch(r>=244&&r<=260&&Og(n)&&n.flowNode&&!GF(n.flowNode)&&Vo(!1===j.allowUnreachableCode,n,_a.Unreachable_code_detected),r){case 169:return tM(n);case 170:return nM(n);case 173:return cM(n);case 172:return function(e){return sD(e.name)&&zo(e,_a.Private_identifiers_are_not_allowed_outside_class_bodies),cM(e)}(n);case 186:case 185:case 180:case 181:case 182:return iM(n);case 175:case 174:return function(e){dz(e)||iz(e.name),FD(e)&&e.asteriskToken&&aD(e.name)&&"constructor"===gc(e.name)&&zo(e.name,_a.Class_constructor_may_not_be_a_generator),UM(e),Nv(e,64)&&175===e.kind&&e.body&&zo(e,_a.Method_0_cannot_have_an_implementation_because_it_is_marked_abstract,Ap(e.name)),sD(e.name)&&!Xf(e)&&zo(e,_a.Private_identifiers_are_not_allowed_outside_class_bodies),lM(e)}(n);case 176:return function(e){GJ(e),XI(e,AB)}(n);case 177:return function(e){iM(e),function(e){const t=Em(e)?hv(e):void 0,n=e.typeParameters||t&&fe(t);if(n){const t=n.pos===n.end?n.pos:Qa(vd(e).text,n.pos);return xz(e,t,n.end-t,_a.Type_parameters_cannot_appear_on_a_constructor_declaration)}}(e)||function(e){const t=e.type||gv(e);t&&kz(t,_a.Type_annotation_cannot_appear_on_a_constructor_declaration)}(e),AB(e.body);const t=ks(e),n=Hu(t,e.kind);function r(e){return!!Kl(e)||173===e.kind&&!Dv(e)&&!!e.initializer}e===n&&xM(t),Nd(e.body)||a(function(){const t=e.parent;if(vh(t)){EP(e.parent,t);const n=AP(t),i=PP(e.body);if(i){if(n&&zo(i,_a.A_constructor_cannot_contain_a_super_call_when_its_class_extends_null),!V&&($(e.parent.members,r)||$(e.parameters,e=>Nv(e,31))))if(function(e,t){const n=rh(e.parent);return HF(n)&&n.parent===t}(i,e.body)){let t;for(const n of e.body.statements){if(HF(n)&&lf(NA(n.expression))){t=n;break}if(_M(n))break}void 0===t&&zo(e,_a.A_super_call_must_be_the_first_statement_in_the_constructor_to_refer_to_super_or_this_when_a_derived_class_contains_initialized_properties_parameter_properties_or_private_identifiers)}else zo(i,_a.A_super_call_must_be_a_root_level_statement_within_a_constructor_of_a_derived_class_that_contains_initialized_properties_parameter_properties_or_private_identifiers)}else n||zo(e,_a.Constructors_for_derived_classes_must_contain_a_super_call)}})}(n);case 178:case 179:return uM(n);case 184:return gM(n);case 183:return function(e){const t=function(e){switch(e.parent.kind){case 220:case 180:case 263:case 219:case 185:case 175:case 174:const t=e.parent;if(e===t.type)return t}}(e);if(!t)return void zo(e,_a.A_type_predicate_is_only_allowed_in_return_type_position_for_functions_and_methods);const n=Eg(t),r=Hg(n);if(!r)return;AB(e.type);const{parameterName:i}=e;if(0!==r.kind&&2!==r.kind)if(r.parameterIndex>=0){if(aJ(n)&&r.parameterIndex===n.parameters.length-1)zo(i,_a.A_type_predicate_cannot_reference_a_rest_parameter);else if(r.type){const t=()=>Zx(void 0,_a.A_type_predicate_s_type_must_be_assignable_to_its_parameter_s_type);IS(r.type,P_(n.parameters[r.parameterIndex]),e.type,void 0,t)}}else if(i){let n=!1;for(const{name:e}of t.parameters)if(k_(e)&&rM(e,i,r.parameterName)){n=!0;break}n||zo(e.parameterName,_a.Cannot_find_parameter_0,r.parameterName)}}(n);case 187:return function(e){By(e)}(n);case 188:return function(e){d(e.members,AB),a(function(){const t=Yx(e);YR(t,t.symbol),sM(e),aM(e)})}(n);case 189:return function(e){AB(e.elementType)}(n);case 190:return function(e){let t=!1,n=!1;for(const r of e.elements){let e=Jv(r);if(8&e){const t=Pk(r.type);if(!JC(t)){zo(r,_a.A_rest_element_type_must_be_an_array_type);break}(OC(t)||rw(t)&&4&t.target.combinedFlags)&&(e|=4)}if(4&e){if(n){kz(r,_a.A_rest_element_cannot_follow_another_rest_element);break}n=!0}else if(2&e){if(n){kz(r,_a.An_optional_element_cannot_follow_a_rest_element);break}t=!0}else if(1&e&&t){kz(r,_a.A_required_element_cannot_follow_an_optional_element);break}}d(e.elements,AB),Pk(e)}(n);case 193:case 194:return function(e){d(e.types,AB),Pk(e)}(n);case 197:case 191:case 192:return AB(n.type);case 198:return function(e){Ck(e)}(n);case 199:return function(e){!function(e){if(158===e.operator){if(155!==e.type.kind)return kz(e.type,_a._0_expected,Fa(155));let t=nh(e.parent);if(Em(t)&&lP(t)){const e=Vg(t);e&&(t=Ag(e)||e)}switch(t.kind){case 261:const n=t;if(80!==n.name.kind)return kz(e,_a.unique_symbol_types_may_not_be_used_on_a_variable_declaration_with_a_binding_name);if(!If(n))return kz(e,_a.unique_symbol_types_are_only_allowed_on_variables_in_a_variable_statement);if(!(2&n.parent.flags))return kz(t.name,_a.A_variable_whose_type_is_a_unique_symbol_type_must_be_const);break;case 173:if(!Dv(t)||!Ov(t))return kz(t.name,_a.A_property_of_a_class_whose_type_is_a_unique_symbol_type_must_be_both_static_and_readonly);break;case 172:if(!Nv(t,8))return kz(t.name,_a.A_property_of_an_interface_or_type_literal_whose_type_is_a_unique_symbol_type_must_be_readonly);break;default:kz(e,_a.unique_symbol_types_are_not_allowed_here)}}else 148===e.operator&&189!==e.type.kind&&190!==e.type.kind&&bz(e,_a.readonly_type_modifier_is_only_permitted_on_array_and_tuple_literal_types,Fa(155))}(e),AB(e.type)}(n);case 195:return function(e){XI(e,AB)}(n);case 196:return function(e){uc(e,e=>e.parent&&195===e.parent.kind&&e.parent.extendsType===e)||kz(e,_a.infer_declarations_are_only_permitted_in_the_extends_clause_of_a_conditional_type),AB(e.typeParameter);const t=ks(e.typeParameter);if(t.declarations&&t.declarations.length>1){const e=ua(t);if(!e.typeParametersChecked){e.typeParametersChecked=!0;const n=Cu(t),r=Ku(t,169);if(!oB(r,[n],e=>[e])){const e=bc(t);for(const t of r)zo(t.name,_a.All_declarations_of_0_must_have_identical_constraints,e)}}}VM(e)}(n);case 204:return function(e){for(const t of e.templateSpans)AB(t.type),IS(Pk(t.type),vn,t.type);Pk(e)}(n);case 206:return function(e){AB(e.argument),e.attributes&&mV(e.attributes,kz),hM(e)}(n);case 203:return function(e){e.dotDotDotToken&&e.questionToken&&kz(e,_a.A_tuple_member_cannot_be_both_optional_and_rest),191===e.type.kind&&kz(e.type,_a.A_labeled_tuple_element_is_declared_as_optional_with_a_question_mark_after_the_name_and_before_the_colon_rather_than_after_the_type),192===e.type.kind&&kz(e.type,_a.A_labeled_tuple_element_is_declared_as_rest_with_a_before_the_name_rather_than_before_the_type),AB(e.type),Pk(e)}(n);case 329:return function(e){const t=Ug(e);if(!t||!dE(t)&&!AF(t))return void zo(t,_a.JSDoc_0_is_not_attached_to_a_class,gc(e.tagName));const n=ol(t).filter(wP);un.assert(n.length>0),n.length>1&&zo(n[1],_a.Class_declarations_cannot_have_more_than_one_augments_or_extends_tag);const r=qM(e.class.expression),i=vh(t);if(i){const t=qM(i.expression);t&&r.escapedText!==t.escapedText&&zo(r,_a.JSDoc_0_1_does_not_match_the_extends_2_clause,gc(e.tagName),gc(r),gc(t))}}(n);case 330:return function(e){const t=Ug(e);t&&(dE(t)||AF(t))||zo(t,_a.JSDoc_0_is_not_attached_to_a_class,gc(e.tagName))}(n);case 347:case 339:case 341:return function(e){e.typeExpression||zo(e.name,_a.JSDoc_typedef_tag_should_either_have_a_type_annotation_or_be_followed_by_property_or_member_tags),e.name&&nB(e.name,_a.Type_alias_name_cannot_be_0),AB(e.typeExpression),rB(_l(e))}(n);case 346:return function(e){AB(e.constraint);for(const t of e.typeParameters)AB(t)}(n);case 345:return function(e){AB(e.typeExpression)}(n);case 325:case 326:case 327:return function(e){e.name&&hJ(e.name,!0)}(n);case 342:case 349:return function(e){AB(e.typeExpression)}(n);case 318:!function(e){a(function(){e.type||Ng(e)||Jw(e,wt)}),iM(e)}(n);case 316:case 315:case 313:case 314:case 323:return OB(n),void XI(n,AB);case 319:return void function(e){OB(e),AB(e.type);const{parent:t}=e;if(TD(t)&&bP(t.parent))return void(ve(t.parent.parameters)!==t&&zo(e,_a.A_rest_parameter_must_be_last_in_a_parameter_list));lP(t)||zo(e,_a.JSDoc_may_only_appear_in_the_last_parameter_of_a_signature);const n=e.parent.parent;if(!BP(n))return void zo(e,_a.JSDoc_may_only_appear_in_the_last_parameter_of_a_signature);const r=Bg(n);if(!r)return;const i=qg(n);i&&ve(i.parameters).symbol===r||zo(e,_a.A_rest_parameter_must_be_last_in_a_parameter_list)}(n);case 310:return AB(n.type);case 334:case 336:case 335:return function(e){const t=Vg(e);t&&Kl(t)&&zo(e,_a.An_accessibility_modifier_cannot_be_used_with_a_private_identifier)}(n);case 351:return function(e){AB(e.typeExpression);const t=Ug(e);if(t){const e=sl(t,KP);if(u(e)>1)for(let t=1;t{var i;298!==e.kind||n||(void 0===t?t=e:(kz(e,_a.A_default_clause_cannot_appear_more_than_once_in_a_switch_statement),n=!0)),297===e.kind&&a((i=e,()=>{const e=eM(i.expression);wj(r,e)||US(e,r,i.expression,void 0)})),d(e.statements,AB),j.noFallthroughCasesInSwitch&&e.fallthroughFlowNode&&GF(e.fallthroughFlowNode)&&zo(e,_a.Fallthrough_case_in_switch)}),e.caseBlock.locals&&VM(e.caseBlock)}(n);case 257:return function(e){Cz(e)||uc(e.parent,t=>r_(t)?"quit":257===t.kind&&t.label.escapedText===e.label.escapedText&&(kz(e.label,_a.Duplicate_label_0,Xd(e.label)),!0)),AB(e.statement)}(n);case 258:return function(e){Cz(e)||aD(e.expression)&&!e.expression.escapedText&&function(e,t,...n){const r=vd(e);if(!vz(r)){const i=Gp(r,e.pos);ho.add(Gx(r,Fs(i),0,t,...n))}}(e,_a.Line_break_not_permitted_here),e.expression&&eM(e.expression)}(n);case 259:return function(e){Cz(e),oR(e.tryBlock);const t=e.catchClause;if(t){if(t.variableDeclaration){const e=t.variableDeclaration;pR(e);const n=fv(e);if(n){const e=Pk(n);!e||3&e.flags||bz(n,_a.Catch_clause_variable_type_annotation_must_be_any_or_unknown_if_specified)}else if(e.initializer)bz(e.initializer,_a.Catch_clause_variable_cannot_have_an_initializer);else{const e=t.block.locals;e&&id(t.locals,t=>{const n=e.get(t);(null==n?void 0:n.valueDeclaration)&&2&n.flags&&kz(n.valueDeclaration,_a.Cannot_redeclare_identifier_0_in_catch_clause,mc(t))})}}oR(t.block)}e.finallyBlock&&oR(e.finallyBlock)}(n);case 261:return gR(n);case 209:return function(e){return function(e){if(e.dotDotDotToken){const t=e.parent.elements;if(e!==ve(t))return kz(e,_a.A_rest_element_must_be_last_in_a_destructuring_pattern);if(QJ(t,_a.A_rest_parameter_or_binding_pattern_may_not_have_a_trailing_comma),e.propertyName)return kz(e.name,_a.A_rest_element_cannot_have_a_property_name)}e.dotDotDotToken&&e.initializer&&xz(e,e.initializer.pos-1,1,_a.A_rest_element_cannot_have_an_initializer)}(e),pR(e)}(n);case 264:return function(e){const t=b(e.modifiers,CD);J&&t&&$(e.members,e=>Fv(e)&&Kl(e))&&kz(t,_a.Class_decorators_can_t_be_used_with_static_private_identifier_Consider_removing_the_experimental_decorator),e.name||Nv(e,2048)||bz(e,_a.A_class_declaration_without_the_default_modifier_must_have_a_name),sB(e),d(e.members,AB),VM(e)}(n);case 265:return function(e){GJ(e)||function(e){let t=!1;if(e.heritageClauses)for(const n of e.heritageClauses){if(96!==n.token)return un.assert(119===n.token),bz(n,_a.Interface_declaration_cannot_have_implements_clause);if(t)return bz(n,_a.extends_clause_already_seen);t=!0,tz(n)}}(e),yz(e.parent)||kz(e,_a._0_declarations_can_only_be_declared_inside_a_block,"interface"),rB(e.typeParameters),a(()=>{nB(e.name,_a.Interface_name_cannot_be_0),kM(e);const t=ks(e);iB(t);const n=Hu(t,265);if(e===n){const n=Au(t),r=wd(n);if(function(e,t){const n=uu(e);if(n.length<2)return!0;const r=new Map;d(td(e).declaredProperties,t=>{r.set(t.escapedName,{prop:t,containingType:e})});let i=!0;for(const o of n){const n=Up(wd(o,e.thisType));for(const a of n){const n=r.get(a.escapedName);if(n){if(n.containingType!==e&&!FC(n.prop,a)){i=!1;const r=Tc(n.containingType),s=Tc(o);let c=Zx(void 0,_a.Named_property_0_of_types_1_and_2_are_not_identical,bc(a),r,s);c=Zx(c,_a.Interface_0_cannot_simultaneously_extend_types_1_and_2,Tc(e),r,s),ho.add(zp(vd(t),t,c))}}else r.set(a.escapedName,{prop:a,containingType:o})}}return i}(n,e.name)){for(const t of uu(n))IS(r,wd(t,n.thisType),e.name,_a.Interface_0_incorrectly_extends_interface_1);YR(n,t)}}aM(e)}),d(kh(e),e=>{ab(e.expression)&&!hl(e.expression)||zo(e.expression,_a.An_interface_can_only_extend_an_identifier_Slashqualified_name_with_optional_type_arguments),gM(e)}),d(e.members,AB),a(()=>{sM(e),VM(e)})}(n);case 266:return function(e){if(GJ(e),nB(e.name,_a.Type_alias_name_cannot_be_0),yz(e.parent)||kz(e,_a._0_declarations_can_only_be_declared_inside_a_block,"type"),kM(e),rB(e.typeParameters),141===e.type.kind){const t=u(e.typeParameters);(0===t?"BuiltinIteratorReturn"===e.name.escapedText:1===t&&XB.has(e.name.escapedText))||zo(e.type,_a.The_intrinsic_keyword_can_only_be_used_to_declare_compiler_provided_intrinsic_types)}else AB(e.type),VM(e)}(n);case 267:return function(e){a(()=>function(e){GJ(e),uR(e,e.name),kM(e),e.members.forEach(AB),!j.erasableSyntaxOnly||33554432&e.flags||zo(e,_a.This_syntax_is_not_allowed_when_erasableSyntaxOnly_is_enabled),gB(e);const t=ks(e);if(e===Hu(t,e.kind)){if(t.declarations&&t.declarations.length>1){const n=tf(e);d(t.declarations,e=>{mE(e)&&tf(e)!==n&&zo(Cc(e),_a.Enum_declarations_must_all_be_const_or_non_const)})}let n=!1;d(t.declarations,e=>{if(267!==e.kind)return!1;const t=e;if(!t.members.length)return!1;const r=t.members[0];r.initializer||(n?zo(r.name,_a.In_an_enum_with_multiple_declarations_only_one_declaration_can_omit_an_initializer_for_its_first_enum_element):n=!0)})}}(e))}(n);case 307:return function(e){sD(e.name)&&zo(e,_a.An_enum_member_cannot_be_named_with_a_private_identifier),e.initializer&&eM(e.initializer)}(n);case 268:return function(t){t.body&&(AB(t.body),pp(t)||VM(t)),a(function(){var n,r;const i=pp(t),o=33554432&t.flags;i&&!o&&zo(t.name,_a.Augmentations_for_the_global_scope_should_have_declare_modifier_unless_they_appear_in_already_ambient_context);const a=cp(t),s=a?_a.An_ambient_module_declaration_is_only_allowed_at_the_top_level_in_a_file:_a.A_namespace_declaration_is_only_allowed_at_the_top_level_of_a_namespace_or_module;if(DB(t,s))return;if(GJ(t)||o||11!==t.name.kind||kz(t.name,_a.Only_ambient_modules_can_use_quoted_names),aD(t.name)&&(uR(t,t.name),!(2080&t.flags))){const e=vd(t),n=Gp(e,Ud(t));yo.add(Gx(e,n.start,n.length,_a.A_namespace_declaration_should_not_be_declared_using_the_module_keyword_Please_use_the_namespace_keyword_instead))}kM(t);const c=ks(t);if(512&c.flags&&!o&&tJ(t,Fk(j))){if(j.erasableSyntaxOnly&&zo(t.name,_a.This_syntax_is_not_allowed_when_erasableSyntaxOnly_is_enabled),kk(j)&&!vd(t).externalModuleIndicator&&zo(t.name,_a.Namespaces_are_not_allowed_in_global_script_files_when_0_is_enabled_If_this_file_is_not_intended_to_be_a_global_script_set_moduleDetection_to_force_or_add_an_empty_export_statement,Me),(null==(n=c.declarations)?void 0:n.length)>1){const e=function(e){const t=e.declarations;if(t)for(const e of t)if((264===e.kind||263===e.kind&&Dd(e.body))&&!(33554432&e.flags))return e}(c);e&&(vd(t)!==vd(e)?zo(t.name,_a.A_namespace_declaration_cannot_be_in_a_different_file_from_a_class_or_function_with_which_it_is_merged):t.pos95===e.kind);e&&zo(e,_a.A_top_level_export_modifier_cannot_be_used_on_value_declarations_in_a_CommonJS_module_when_verbatimModuleSyntax_is_enabled)}}if(a)if(fp(t)){if((i||33554432&ks(t).flags)&&t.body)for(const e of t.body.statements)xB(e,i)}else Yp(t.parent)?i?zo(t.name,_a.Augmentations_for_the_global_scope_can_only_be_directly_nested_in_external_modules_or_ambient_module_declarations):Cs(qh(t.name))&&zo(t.name,_a.Ambient_module_declaration_cannot_specify_relative_module_name):zo(t.name,i?_a.Augmentations_for_the_global_scope_can_only_be_directly_nested_in_external_modules_or_ambient_module_declarations:_a.Ambient_modules_cannot_be_nested_in_other_modules_or_namespaces)})}(n);case 273:return function(t){if(!DB(t,Em(t)?_a.An_import_declaration_can_only_be_used_at_the_top_level_of_a_module:_a.An_import_declaration_can_only_be_used_at_the_top_level_of_a_namespace_or_module)){if(!GJ(t)&&t.modifiers&&bz(t,_a.An_import_declaration_cannot_have_modifiers),kB(t)){let n;const r=t.importClause;r&&!function(e){var t,n;if(156===e.phaseModifier){if(e.name&&e.namedBindings)return kz(e,_a.A_type_only_import_can_specify_a_default_import_or_named_bindings_but_not_both);if(276===(null==(t=e.namedBindings)?void 0:t.kind))return Nz(e.namedBindings)}else if(166===e.phaseModifier){if(e.name)return kz(e,_a.Default_imports_are_not_allowed_in_a_deferred_import);if(276===(null==(n=e.namedBindings)?void 0:n.kind))return kz(e,_a.Named_imports_are_not_allowed_in_a_deferred_import);if(99!==R&&200!==R)return kz(e,_a.Deferred_imports_are_only_supported_when_the_module_flag_is_set_to_esnext_or_preserve)}return!1}(r)?(r.name&&wB(r),r.namedBindings&&(275===r.namedBindings.kind?(wB(r.namedBindings),e.getEmitModuleFormatOfFile(vd(t))<4&&Sk(j)&&HJ(t,65536)):(n=rs(t,t.moduleSpecifier),n&&d(r.namedBindings.elements,wB))),!r.isTypeOnly&&101<=R&&R<=199&&Aa(t.moduleSpecifier,n)&&!function(e){return!!e.attributes&&e.attributes.elements.some(e=>{var t;return"type"===qh(e.name)&&"json"===(null==(t=tt(e.value,ju))?void 0:t.text)})}(t)&&zo(t.moduleSpecifier,_a.Importing_a_JSON_file_into_an_ECMAScript_module_requires_a_type_Colon_json_import_attribute_when_module_is_set_to_0,fi[R])):ue&&!r&&rs(t,t.moduleSpecifier)}NB(t)}}(n);case 272:return function(e){if(!DB(e,Em(e)?_a.An_import_declaration_can_only_be_used_at_the_top_level_of_a_module:_a.An_import_declaration_can_only_be_used_at_the_top_level_of_a_namespace_or_module)&&(GJ(e),!j.erasableSyntaxOnly||33554432&e.flags||zo(e,_a.This_syntax_is_not_allowed_when_erasableSyntaxOnly_is_enabled),Nm(e)||kB(e)))if(wB(e),RE(e,6),284!==e.moduleReference.kind){const t=Ha(ks(e));if(t!==xt){const n=Ka(t);if(111551&n){const t=sb(e.moduleReference);1920&ts(t,112575).flags||zo(t,_a.Module_0_is_hidden_by_a_local_declaration_with_the_same_name,Ap(t))}788968&n&&nB(e.name,_a.Import_name_cannot_be_0)}e.isTypeOnly&&kz(e,_a.An_import_alias_cannot_use_import_type)}else!(5<=R&&R<=99)||e.isTypeOnly||33554432&e.flags||kz(e,_a.Import_assignment_cannot_be_used_when_targeting_ECMAScript_modules_Consider_using_import_Asterisk_as_ns_from_mod_import_a_from_mod_import_d_from_mod_or_another_module_format_instead)}(n);case 279:return function(t){if(!DB(t,Em(t)?_a.An_export_declaration_can_only_be_used_at_the_top_level_of_a_module:_a.An_export_declaration_can_only_be_used_at_the_top_level_of_a_namespace_or_module)){if(!GJ(t)&&Cv(t)&&bz(t,_a.An_export_declaration_cannot_have_modifiers),function(e){var t;e.isTypeOnly&&280===(null==(t=e.exportClause)?void 0:t.kind)&&Nz(e.exportClause)}(t),!t.moduleSpecifier||kB(t))if(t.exportClause&&!FE(t.exportClause)){d(t.exportClause.elements,FB);const e=269===t.parent.kind&&cp(t.parent.parent),n=!e&&269===t.parent.kind&&!t.moduleSpecifier&&33554432&t.flags;308===t.parent.kind||e||n||zo(t,_a.Export_declarations_are_not_permitted_in_a_namespace)}else{const n=rs(t,t.moduleSpecifier);n&&us(n)?zo(t.moduleSpecifier,_a.Module_0_uses_export_and_cannot_be_used_with_export_Asterisk,bc(n)):t.exportClause&&(TB(t.exportClause),SB(t.exportClause.name)),e.getEmitModuleFormatOfFile(vd(t))<4&&(t.exportClause?Sk(j)&&HJ(t,65536):HJ(t,32768))}NB(t)}}(n);case 278:return function(t){if(DB(t,t.isExportEquals?_a.An_export_assignment_must_be_at_the_top_level_of_a_file_or_module_declaration:_a.A_default_export_must_be_at_the_top_level_of_a_file_or_module_declaration))return;!j.erasableSyntaxOnly||!t.isExportEquals||33554432&t.flags||zo(t,_a.This_syntax_is_not_allowed_when_erasableSyntaxOnly_is_enabled);const n=308===t.parent.kind?t.parent:t.parent.parent;if(268===n.kind&&!cp(n))return void(t.isExportEquals?zo(t,_a.An_export_assignment_cannot_be_used_in_a_namespace):zo(t,_a.A_default_export_can_only_be_used_in_an_ECMAScript_style_module));!GJ(t)&&Tv(t)&&bz(t,_a.An_export_assignment_cannot_have_modifiers);const r=fv(t);r&&IS(Ij(t.expression),Pk(r),t.expression);const i=!t.isExportEquals&&!(33554432&t.flags)&&j.verbatimModuleSyntax&&1===e.getEmitModuleFormatOfFile(vd(t));if(80===t.expression.kind){const e=t.expression,n=Os(ts(e,-1,!0,!0,t));if(n){RE(t,3);const r=Ya(n,111551);if(111551&Ka(n)?(Ij(e),i||33554432&t.flags||!j.verbatimModuleSyntax||!r||zo(e,t.isExportEquals?_a.An_export_declaration_must_reference_a_real_value_when_verbatimModuleSyntax_is_enabled_but_0_resolves_to_a_type_only_declaration:_a.An_export_default_must_reference_a_real_value_when_verbatimModuleSyntax_is_enabled_but_0_resolves_to_a_type_only_declaration,gc(e))):i||33554432&t.flags||!j.verbatimModuleSyntax||zo(e,t.isExportEquals?_a.An_export_declaration_must_reference_a_value_when_verbatimModuleSyntax_is_enabled_but_0_only_refers_to_a_type:_a.An_export_default_must_reference_a_value_when_verbatimModuleSyntax_is_enabled_but_0_only_refers_to_a_type,gc(e)),!i&&!(33554432&t.flags)&&kk(j)&&!(111551&n.flags)){const i=Ka(n,!1,!0);!(2097152&n.flags&&788968&i)||111551&i||r&&vd(r)===vd(t)?r&&vd(r)!==vd(t)&&ha(zo(e,t.isExportEquals?_a._0_resolves_to_a_type_only_declaration_and_must_be_marked_type_only_in_this_file_before_re_exporting_when_1_is_enabled_Consider_using_import_type_where_0_is_imported:_a._0_resolves_to_a_type_only_declaration_and_must_be_marked_type_only_in_this_file_before_re_exporting_when_1_is_enabled_Consider_using_export_type_0_as_default,gc(e),Me),r,gc(e)):zo(e,t.isExportEquals?_a._0_resolves_to_a_type_and_must_be_marked_type_only_in_this_file_before_re_exporting_when_1_is_enabled_Consider_using_import_type_where_0_is_imported:_a._0_resolves_to_a_type_and_must_be_marked_type_only_in_this_file_before_re_exporting_when_1_is_enabled_Consider_using_export_type_0_as_default,gc(e),Me)}}else Ij(e);Dk(j)&&Wc(e,!0)}else Ij(t.expression);i&&zo(t,qo(t)),EB(n),33554432&t.flags&&!ab(t.expression)&&kz(t.expression,_a.The_expression_of_an_export_assignment_must_be_an_identifier_or_qualified_name_in_an_ambient_context),t.isExportEquals&&(R>=5&&200!==R&&(33554432&t.flags&&99===e.getImpliedNodeFormatForEmit(vd(t))||!(33554432&t.flags)&&1!==e.getImpliedNodeFormatForEmit(vd(t)))?kz(t,_a.Export_assignment_cannot_be_used_when_targeting_ECMAScript_modules_Consider_using_export_default_or_another_module_format_instead):4!==R||33554432&t.flags||kz(t,_a.Export_assignment_is_not_supported_when_module_flag_is_system))}(n);case 243:case 260:return void Cz(n);case 283:!function(e){zM(e)}(n)}}(n),r=i}}function IB(e){Qe(e)&&d(e,e=>{Mu(e)&&AB(e)})}function OB(e){if(!Em(e))if(yP(e)||hP(e)){const t=Fa(yP(e)?54:58),n=e.postfix?_a._0_at_the_end_of_a_type_is_not_valid_TypeScript_syntax_Did_you_mean_to_write_1:_a._0_at_the_start_of_a_type_is_not_valid_TypeScript_syntax_Did_you_mean_to_write_1,r=Pk(e.type);kz(e,n,t,Tc(hP(e)&&r!==_n&&r!==ln?Pb(ie([r,jt],e.postfix?void 0:zt)):r))}else kz(e,_a.JSDoc_types_can_only_be_used_inside_documentation_comments)}function LB(e){const t=da(vd(e));1&t.flags?un.assert(!t.deferredNodes,"A type-checked file should have no deferred nodes."):(t.deferredNodes||(t.deferredNodes=new Set),t.deferredNodes.add(e))}function MB(e){const t=da(e);t.deferredNodes&&t.deferredNodes.forEach(zB),t.deferredNodes=void 0}function zB(e){var t,n;null==(t=Hn)||t.push(Hn.Phase.Check,"checkDeferredNode",{kind:e.kind,pos:e.pos,end:e.end,path:e.tracingPath});const o=r;switch(r=e,h=0,e.kind){case 214:case 215:case 216:case 171:case 287:gO(e);break;case 219:case 220:case 175:case 174:!function(e){un.assert(175!==e.kind||Jf(e));const t=Oh(e),n=Zg(e);if(aj(e,n),e.body)if(gv(e)||Gg(Eg(e)),242===e.body.kind)AB(e.body);else{const r=eM(e.body),i=n&&KR(n,t);i&&QR(e,i,e.body,e.body,r)}}(e);break;case 178:case 179:uM(e);break;case 232:!function(e){d(e.members,AB),VM(e)}(e);break;case 169:!function(e){var t,n;if(pE(e.parent)||u_(e.parent)||fE(e.parent)){const r=Cu(ks(e)),o=24576&rC(r);if(o){const a=ks(e.parent);if(!fE(e.parent)||48&gx(Au(a))){if(8192===o||16384===o){null==(t=Hn)||t.push(Hn.Phase.CheckTypes,"checkTypeParameterDeferred",{parent:kb(Au(a)),id:kb(r)});const s=UT(a,r,16384===o?Un:qn),c=UT(a,r,16384===o?qn:Un),l=r;i=r,IS(s,c,e,_a.Type_0_is_not_assignable_to_type_1_as_implied_by_variance_annotation),i=l,null==(n=Hn)||n.pop()}}else zo(e,_a.Variance_annotations_are_only_supported_in_type_aliases_for_object_function_constructor_and_mapped_types)}}}(e);break;case 286:!function(e){fI(e)}(e);break;case 285:!function(e){fI(e.openingElement),GA(e.closingElement.tagName)?tI(e.closingElement):eM(e.closingElement.tagName),YA(e)}(e);break;case 217:case 235:case 218:!function(e){const{type:t}=vL(e),n=yF(e)?t:e,r=da(e);un.assertIsDefined(r.assertionExpressionType);const i=Nw(QC(r.assertionExpressionType)),o=Pk(t);al(o)||a(()=>{const e=jw(i);PS(o,e)||US(i,o,n,_a.Conversion_of_type_0_to_type_1_may_be_a_mistake_because_neither_type_sufficiently_overlaps_with_the_other_If_this_was_intentional_convert_the_expression_to_unknown_first)})}(e);break;case 223:eM(e.expression);break;case 227:mb(e)&&gO(e)}r=o,null==(n=Hn)||n.pop()}function qB(e,t){if(t)return!1;switch(e){case 0:return!!j.noUnusedLocals;case 1:return!!j.noUnusedParameters;default:return un.assertNever(e)}}function WB(e){return ki.get(e.path)||l}function HB(n,r,i){try{return t=r,function(t,n){if(t){KB();const e=ho.getGlobalDiagnostics(),r=e.length;nJ(t,n);const i=ho.getDiagnostics(t.fileName);if(n)return i;const o=ho.getGlobalDiagnostics();return o!==e?K(re(e,o,nk),i):0===r&&o.length>0?K(o,i):i}return d(e.getSourceFiles(),e=>nJ(e)),ho.getDiagnostics()}(n,i)}finally{t=void 0}}function KB(){for(const e of o)e();o=[]}function nJ(t,n){KB();const r=a;a=e=>e(),function(t,n){var r,i;null==(r=Hn)||r.push(Hn.Phase.Check,n?"checkSourceFileNodes":"checkSourceFile",{path:t.path},!0);const o=n?"beforeCheckNodes":"beforeCheck",s=n?"afterCheckNodes":"afterCheck";tr(o),n?function(t,n){const r=da(t);if(!(1&r.flags)){if(_T(t,j,e))return;Tz(t),F(so),F(co),F(lo),F(_o),F(uo),d(n,AB),MB(t),(r.potentialThisCollisions||(r.potentialThisCollisions=[])).push(...so),(r.potentialNewTargetCollisions||(r.potentialNewTargetCollisions=[])).push(...co),(r.potentialWeakMapSetCollisions||(r.potentialWeakMapSetCollisions=[])).push(...lo),(r.potentialReflectCollisions||(r.potentialReflectCollisions=[])).push(..._o),(r.potentialUnusedRenamedBindingElementsInTypes||(r.potentialUnusedRenamedBindingElementsInTypes=[])).push(...uo),r.flags|=8388608;for(const e of n)da(e).flags|=8388608}}(t,n):function(t){const n=da(t);if(!(1&n.flags)){if(_T(t,j,e))return;Tz(t),F(so),F(co),F(lo),F(_o),F(uo),8388608&n.flags&&(so=n.potentialThisCollisions,co=n.potentialNewTargetCollisions,lo=n.potentialWeakMapSetCollisions,_o=n.potentialReflectCollisions,uo=n.potentialUnusedRenamedBindingElementsInTypes),d(t.statements,AB),AB(t.endOfFileToken),MB(t),Zp(t)&&VM(t),a(()=>{t.isDeclarationFile||!j.noUnusedLocals&&!j.noUnusedParameters||WM(WB(t),(e,t,n)=>{!yd(e)&&qB(t,!!(33554432&e.flags))&&ho.add(n)}),t.isDeclarationFile||function(){var e;for(const t of uo)if(!(null==(e=ks(t))?void 0:e.isReferenced)){const e=nc(t);un.assert(Qh(e),"Only parameter declaration should be checked here");const n=Rp(t.name,_a._0_is_an_unused_renaming_of_1_Did_you_intend_to_use_it_as_a_type_annotation,Ap(t.name),Ap(t.propertyName));e.type||aT(n,Gx(vd(e),e.end,0,_a.We_can_only_write_a_type_for_0_by_adding_a_type_for_the_entire_parameter_here,Ap(t.propertyName))),ho.add(n)}}()}),Zp(t)&&EB(t),so.length&&(d(so,sR),F(so)),co.length&&(d(co,cR),F(co)),lo.length&&(d(lo,lR),F(lo)),_o.length&&(d(_o,_R),F(_o)),n.flags|=1}}(t),tr(s),nr("Check",o,s),null==(i=Hn)||i.pop()}(t,n),a=r}function uJ(e){for(;167===e.parent.kind;)e=e.parent;return 184===e.parent.kind}function dJ(e,t){let n,r=Xf(e);for(;r&&!(n=t(r));)r=Xf(r);return n}function pJ(e,t){return!!dJ(e,e=>e===t)}function fJ(e){return void 0!==function(e){for(;167===e.parent.kind;)e=e.parent;return 272===e.parent.kind?e.parent.moduleReference===e?e.parent:void 0:278===e.parent.kind&&e.parent.expression===e?e.parent:void 0}(e)}function mJ(e){if(lh(e))return Ss(e.parent);if(Em(e)&&212===e.parent.kind&&e.parent===e.parent.parent.left&&!sD(e)&&!uP(e)&&!function(e){if(110===e.expression.kind){const t=em(e,!1,!1);if(r_(t)){const e=RP(t);if(e){const t=WP(e,hA(e,void 0));return t&&!il(t)}}}}(e.parent)){const t=function(e){switch(tg(e.parent.parent)){case 1:case 3:return Ss(e.parent);case 5:if(dF(e.parent)&&wx(e.parent)===e)return;case 4:case 2:return ks(e.parent.parent)}}(e);if(t)return t}if(278===e.parent.kind&&ab(e)){const t=ts(e,2998271,!0);if(t&&t!==xt)return t}else if(e_(e)&&fJ(e)){const t=Th(e,272);return un.assert(void 0!==t),Za(e,!0)}if(e_(e)){const t=function(e){let t=e.parent;for(;xD(t);)e=t,t=t.parent;if(t&&206===t.kind&&t.qualifier===e)return t}(e);if(t){Pk(t);const n=da(e).resolvedSymbol;return n===xt?void 0:n}}for(;fb(e);)e=e.parent;if(function(e){for(;212===e.parent.kind;)e=e.parent;return 234===e.parent.kind}(e)){let t=0;234===e.parent.kind?(t=wf(e)?788968:111551,ob(e.parent)&&(t|=111551)):t=1920,t|=2097152;const n=ab(e)?ts(e,t,!0):void 0;if(n)return n}if(342===e.parent.kind)return Bg(e.parent);if(169===e.parent.kind&&346===e.parent.parent.kind){un.assert(!Em(e));const t=$g(e.parent);return t&&t.symbol}if(bm(e)){if(Nd(e))return;const t=uc(e,en(Mu,_P,uP)),n=t?901119:111551;if(80===e.kind){if(vm(e)&&GA(e)){const t=tI(e.parent);return t===xt?void 0:t}const r=ts(e,n,!0,!0,qg(e));if(!r&&t){const t=uc(e,en(u_,pE));if(t)return hJ(e,!0,ks(t))}if(r&&t){const t=Vg(e);if(t&&aP(t)&&t===r.valueDeclaration)return ts(e,n,!0,!0,vd(t))||r}return r}if(sD(e))return RI(e);if(212===e.kind||167===e.kind){const n=da(e);return n.resolvedSymbol?n.resolvedSymbol:(212===e.kind?(OI(e,0),n.resolvedSymbol||(n.resolvedSymbol=gJ(Ij(e.expression),Hb(e.name)))):LI(e,0),!n.resolvedSymbol&&t&&xD(e)?hJ(e):n.resolvedSymbol)}if(uP(e))return hJ(e)}else if(e_(e)&&uJ(e)){const t=ts(e,184===e.parent.kind?788968:1920,!0,!0);return t&&t!==xt?t:hy(e)}return 183===e.parent.kind?ts(e,1,!0):void 0}function gJ(e,t){const n=rg(e,t);if(n.length&&e.members){const t=Ph(Cp(e).members);if(n===Jm(e))return t;if(t){const r=ua(t),i=E(B(n,e=>e.declaration),ZB).join(",");if(r.filteredIndexSymbolCache||(r.filteredIndexSymbolCache=new Map),r.filteredIndexSymbolCache.has(i))return r.filteredIndexSymbolCache.get(i);{const t=Xo(131072,"__index");return t.declarations=B(n,e=>e.declaration),t.parent=e.aliasSymbol?e.aliasSymbol:e.symbol?e.symbol:yJ(t.declarations[0].parent),r.filteredIndexSymbolCache.set(i,t),t}}}}function hJ(e,t,n){if(e_(e)){const r=901119;let i=ts(e,r,t,!0,qg(e));if(!i&&aD(e)&&n&&(i=xs(pa(hs(n),e.escapedText,r))),i)return i}const r=aD(e)?n:hJ(e.left,t,n),i=aD(e)?e.escapedText:e.right.escapedText;if(r){const e=111551&r.flags&&pm(P_(r),"prototype");return pm(e?P_(e):Au(r),i)}}function yJ(e,t){if(sP(e))return rO(e)?xs(e.symbol):void 0;const{parent:n}=e,r=n.parent;if(!(67108864&e.flags)){if(iJ(e)){const t=ks(n);return Rl(e.parent)&&e.parent.propertyName===e?VA(t):t}if(uh(e))return ks(n.parent);if(80===e.kind){if(fJ(e))return mJ(e);if(209===n.kind&&207===r.kind&&e===n.propertyName){const t=pm(bJ(r),e.escapedText);if(t)return t}else if(RF(n)&&n.name===e)return 105===n.keywordToken&&"target"===gc(e)?TL(n).symbol:102===n.keywordToken&&"meta"===gc(e)?Ky().members.get("meta"):void 0}switch(e.kind){case 80:case 81:case 212:case 167:if(!uv(e))return mJ(e);case 110:const i=em(e,!1,!1);if(r_(i)){const e=Eg(i);if(e.thisParameter)return e.thisParameter}if(xm(e))return eM(e).symbol;case 198:return Ck(e).symbol;case 108:return eM(e).symbol;case 137:const o=e.parent;return o&&177===o.kind?o.parent.symbol:void 0;case 11:case 15:if(Tm(e.parent.parent)&&Cm(e.parent.parent)===e||(273===e.parent.kind||279===e.parent.kind)&&e.parent.moduleSpecifier===e||Em(e)&&XP(e.parent)&&e.parent.moduleSpecifier===e||Em(e)&&Lm(e.parent,!1)||_f(e.parent)||rF(e.parent)&&df(e.parent.parent)&&e.parent.parent.argument===e.parent)return rs(e,e,t);if(fF(n)&&ng(n)&&n.arguments[1]===e)return ks(n);case 9:const a=pF(n)?n.argumentExpression===e?Qj(n.expression):void 0:rF(n)&&tF(r)?Pk(r.objectType):void 0;return a&&pm(a,fc(e.text));case 90:case 100:case 39:case 86:return Ss(e.parent);case 206:return df(e)?yJ(e.argument.literal,t):void 0;case 95:return AE(e.parent)?un.checkDefined(e.parent.symbol):void 0;case 102:if(RF(e.parent)&&"defer"===e.parent.name.escapedText)return;case 105:return RF(e.parent)?SL(e.parent).symbol:void 0;case 104:if(NF(e.parent)){const t=Qj(e.parent.right),n=xj(t);return(null==n?void 0:n.symbol)??t.symbol}return;case 237:return eM(e).symbol;case 296:if(vm(e)&&GA(e)){const t=tI(e.parent);return t===xt?void 0:t}default:return}}}function bJ(e){if(sP(e)&&!rO(e))return Et;if(67108864&e.flags)return Et;const t=nb(e),n=t&&mu(ks(t.class));if(wf(e)){const t=Pk(e);return n?wd(t,n.thisType):t}if(bm(e))return kJ(e);if(n&&!t.isImplements){const e=fe(uu(n));return e?wd(e,n.thisType):Et}if(VT(e))return Au(ks(e));if(80===(r=e).kind&&VT(r.parent)&&Cc(r.parent)===r){const t=yJ(e);return t?Au(t):Et}var r;if(lF(e))return Al(e,!0,0)||Et;if(_u(e)){const t=ks(e);return t?P_(t):Et}if(iJ(e)){const t=yJ(e);return t?P_(t):Et}if(k_(e))return Al(e.parent,!0,0)||Et;if(fJ(e)){const t=yJ(e);if(t){const e=Au(t);return al(e)?P_(t):e}}return RF(e.parent)&&e.parent.keywordToken===e.kind?SL(e.parent):wE(e)?Qy(!1):Et}function xJ(e){if(un.assert(211===e.kind||210===e.kind),251===e.parent.kind)return Tj(e,kR(e.parent)||Et);if(227===e.parent.kind)return Tj(e,Qj(e.parent.right)||Et);if(304===e.parent.kind){const t=nt(e.parent.parent,uF);return kj(t,xJ(t)||Et,Yd(t.properties,e.parent))}const t=nt(e.parent,_F),n=xJ(t)||Et,r=SR(65,n,jt,e.parent)||Et;return Sj(t,n,t.elements.indexOf(e),r)}function kJ(e){return db(e)&&(e=e.parent),dk(Qj(e))}function SJ(e){const t=Ss(e.parent);return Dv(e)?P_(t):Au(t)}function TJ(e){const t=e.name;switch(t.kind){case 80:return fk(gc(t));case 9:case 11:return fk(t.text);case 168:const e=BA(t);return hj(e,12288)?e:Vt;default:return un.fail("Unsupported property name.")}}function CJ(e){const t=Gu(Up(e=Sf(e))),n=mm(e,0).length?Qn:mm(e,1).length?Yn:void 0;return n&&d(Up(n),e=>{t.has(e.escapedName)||t.set(e.escapedName,e)}),Us(t)}function wJ(e){return 0!==mm(e,0).length||0!==mm(e,1).length}function NJ(e){if(418&e.flags&&e.valueDeclaration&&!sP(e.valueDeclaration)){const t=ua(e);if(void 0===t.isDeclarationWithCollidingName){const n=Ep(e.valueDeclaration);if(kd(n)||function(e){return e.valueDeclaration&&lF(e.valueDeclaration)&&300===nc(e.valueDeclaration).parent.kind}(e))if(Ue(n.parent,e.escapedName,111551,void 0,!1))t.isDeclarationWithCollidingName=!0;else if(jJ(e.valueDeclaration,16384)){const r=jJ(e.valueDeclaration,32768),i=$_(n,!1),o=242===n.kind&&$_(n.parent,!1);t.isDeclarationWithCollidingName=!(dp(n)||r&&(i||o))}else t.isDeclarationWithCollidingName=!1}return t.isDeclarationWithCollidingName}return!1}function DJ(e){switch(un.assert(Re),e.kind){case 272:return FJ(ks(e));case 274:case 275:case 277:case 282:const t=ks(e);return!!t&&FJ(t,!0);case 279:const n=e.exportClause;return!!n&&(FE(n)||$(n.elements,DJ));case 278:return!e.expression||80!==e.expression.kind||FJ(ks(e),!0)}return!1}function FJ(e,t){if(!e)return!1;const n=vd(e.valueDeclaration);ss(n&&ks(n));const r=Os(Ha(e));return r===xt?!t||!Ya(e):!!(111551&Ka(e,t,!0))&&(Fk(j)||!EJ(r))}function EJ(e){return bj(e)||!!e.constEnumOnlyModule}function PJ(e,t){if(un.assert(Re),wa(e)){const t=ks(e),n=t&&ua(t);if(null==n?void 0:n.referenced)return!0;const r=ua(t).aliasTarget;if(r&&32&Bv(e)&&111551&Ka(r)&&(Fk(j)||!EJ(r)))return!0}return!!t&&!!XI(e,e=>PJ(e,t))}function AJ(e){if(Dd(e.body)){if(Nu(e)||wu(e))return!1;const t=jg(ks(e));return t.length>1||1===t.length&&t[0].declaration!==e}return!1}function IJ(e,t){return(function(e,t){return!(!H||vg(e)||BP(e)||!e.initializer)&&(!Nv(e,31)||!!t&&o_(t))}(e,t)||function(e){return H&&vg(e)&&(BP(e)||!e.initializer)&&Nv(e,31)}(e))&&!function(e){const t=WJ(e);if(!t)return!1;const n=Pk(t);return al(n)||QS(n)}(e)}function OJ(e){const t=pc(e,e=>uE(e)||lE(e));if(!t)return!1;let n;if(lE(t)){if(t.type||!Em(t)&&!Az(t))return!1;const e=Wm(t);if(!e||!au(e))return!1;n=ks(e)}else n=ks(t);return!!(n&&16&n.flags|3)&&!!rd(hs(n),e=>111551&e.flags&&lC(e.valueDeclaration))}function LJ(e){var t;const n=e.id||0;return n<0||n>=Yi.length?0:(null==(t=Yi[n])?void 0:t.flags)||0}function jJ(e,t){return function(e,t){if(!j.noCheck&&pT(vd(e),j))return;if(!(da(e).calculatedFlags&t))switch(t){case 16:case 32:return i(e);case 128:case 256:case 2097152:return void n(e,r);case 512:case 8192:case 65536:case 262144:return function(e){n(e,o)}(e);case 536870912:return a(e);case 4096:case 32768:case 16384:return function(e){n(Ep(lh(e)?e.parent:e),s)}(e);default:return un.assertNever(t,`Unhandled node check flag calculation: ${un.formatNodeCheckFlags(t)}`)}function n(e,t){const n=t(e,e.parent);if("skip"!==n)return n||QI(e,t)}function r(e){const n=da(e);if(n.calculatedFlags&t)return"skip";n.calculatedFlags|=2097536,i(e)}function i(e){da(e).calculatedFlags|=48,108===e.kind&&MP(e)}function o(e){const n=da(e);if(n.calculatedFlags&t)return"skip";n.calculatedFlags|=336384,a(e)}function a(e){const t=da(e);if(t.calculatedFlags|=536870912,aD(e)&&(t.calculatedFlags|=49152,function(e){return bm(e)||iP(e.parent)&&(e.parent.objectAssignmentInitializer??e.parent.name)===e}(e)&&(!dF(e.parent)||e.parent.name!==e))){const t=NN(e);t&&t!==xt&&kP(e,t)}}function s(e){const n=da(e);if(n.calculatedFlags&t)return"skip";n.calculatedFlags|=53248,function(e){a(e),kD(e)&&BA(e),sD(e)&&__(e.parent)&&lM(e.parent)}(e)}}(e,t),!!(LJ(e)&t)}function MJ(e){return gB(e.parent),da(e).enumMemberValue??mC(void 0)}function RJ(e){switch(e.kind){case 307:case 212:case 213:return!0}return!1}function BJ(e){if(307===e.kind)return MJ(e).value;da(e).resolvedSymbol||Ij(e);const t=da(e).resolvedSymbol||(ab(e)?ts(e,111551,!0):void 0);if(t&&8&t.flags){const e=t.valueDeclaration;if(tf(e.parent))return MJ(e).value}}function JJ(e){return!!(524288&e.flags)&&mm(e,0).length>0}function zJ(e){const t=179===(e=pc(e,pl)).kind?178:179,n=Hu(ks(e),t);return{firstAccessor:n&&n.posjL(e)>3)||zo(e,_a.This_syntax_requires_an_imported_helper_named_1_with_2_parameters_which_is_not_compatible_with_the_one_in_0_Consider_upgrading_your_version_of_0,Uu,n,4):1048576&t?$(jg(i),e=>jL(e)>4)||zo(e,_a.This_syntax_requires_an_imported_helper_named_1_with_2_parameters_which_is_not_compatible_with_the_one_in_0_Consider_upgrading_your_version_of_0,Uu,n,5):1024&t&&($(jg(i),e=>jL(e)>2)||zo(e,_a.This_syntax_requires_an_imported_helper_named_1_with_2_parameters_which_is_not_compatible_with_the_one_in_0_Consider_upgrading_your_version_of_0,Uu,n,3)):zo(e,_a.This_syntax_requires_an_imported_helper_named_1_which_does_not_exist_in_0_Consider_upgrading_your_version_of_0,Uu,n)}}n.requestedExternalEmitHelpers|=t}}}}function KJ(e){switch(e){case 1:return["__extends"];case 2:return["__assign"];case 4:return["__rest"];case 8:return J?["__decorate"]:["__esDecorate","__runInitializers"];case 16:return["__metadata"];case 32:return["__param"];case 64:return["__awaiter"];case 128:return["__generator"];case 256:return["__values"];case 512:return["__read"];case 1024:return["__spreadArray"];case 2048:return["__await"];case 4096:return["__asyncGenerator"];case 8192:return["__asyncDelegator"];case 16384:return["__asyncValues"];case 32768:return["__exportStar"];case 65536:return["__importStar"];case 131072:return["__importDefault"];case 262144:return["__makeTemplateObject"];case 524288:return["__classPrivateFieldGet"];case 1048576:return["__classPrivateFieldSet"];case 2097152:return["__classPrivateFieldIn"];case 4194304:return["__setFunctionName"];case 8388608:return["__propKey"];case 16777216:return["__addDisposableResource","__disposeResources"];case 33554432:return["__rewriteRelativeImportExtension"];default:return un.fail("Unrecognized helper")}}function GJ(t){var n;const r=function(e){const t=function(e){return $A(e)?b(e.modifiers,CD):void 0}(e);return t&&bz(t,_a.Decorators_are_not_valid_here)}(t)||function(e){if(!e.modifiers)return!1;const t=function(e){switch(e.kind){case 178:case 179:case 177:case 173:case 172:case 175:case 174:case 182:case 268:case 273:case 272:case 279:case 278:case 219:case 220:case 170:case 169:return;case 176:case 304:case 305:case 271:case 283:return b(e.modifiers,Zl);default:if(269===e.parent.kind||308===e.parent.kind)return;switch(e.kind){case 263:return XJ(e,134);case 264:case 186:return XJ(e,128);case 232:case 265:case 266:return b(e.modifiers,Zl);case 244:return 4&e.declarationList.flags?XJ(e,135):b(e.modifiers,Zl);case 267:return XJ(e,87);default:un.assertNever(e)}}}(e);return t&&bz(t,_a.Modifiers_cannot_appear_here)}(t);if(void 0!==r)return r;if(TD(t)&&cv(t))return bz(t,_a.Neither_decorators_nor_modifiers_may_be_applied_to_this_parameters);const i=WF(t)?7&t.declarationList.flags:0;let o,a,s,c,l,_=0,u=!1,d=!1;for(const r of t.modifiers)if(CD(r)){if(!dm(J,t,t.parent,t.parent.parent))return 175!==t.kind||Dd(t.body)?bz(t,_a.Decorators_are_not_valid_here):bz(t,_a.A_decorator_can_only_decorate_a_method_implementation_not_an_overload);if(J&&(178===t.kind||179===t.kind)){const e=zJ(t);if(Lv(e.firstAccessor)&&t===e.secondAccessor)return bz(t,_a.Decorators_cannot_be_applied_to_multiple_get_Slashset_accessors_of_the_same_name)}if(-34849&_)return kz(r,_a.Decorators_are_not_valid_here);if(d&&98303&_)return un.assertIsDefined(l),!vz(vd(r))&&(aT(zo(r,_a.Decorators_may_not_appear_after_export_or_export_default_if_they_also_appear_before_export),Rp(l,_a.Decorator_used_before_export_here)),!0);_|=32768,98303&_?32&_&&(u=!0):d=!0,l??(l=r)}else{if(148!==r.kind){if(172===t.kind||174===t.kind)return kz(r,_a._0_modifier_cannot_appear_on_a_type_member,Fa(r.kind));if(182===t.kind&&(126!==r.kind||!u_(t.parent)))return kz(r,_a._0_modifier_cannot_appear_on_an_index_signature,Fa(r.kind))}if(103!==r.kind&&147!==r.kind&&87!==r.kind&&169===t.kind)return kz(r,_a._0_modifier_cannot_appear_on_a_type_parameter,Fa(r.kind));switch(r.kind){case 87:{if(267!==t.kind&&169!==t.kind)return kz(t,_a.A_class_member_cannot_have_the_0_keyword,Fa(87));const e=UP(t.parent)&&Ug(t.parent)||t.parent;if(169===t.kind&&!(o_(e)||u_(e)||BD(e)||JD(e)||OD(e)||LD(e)||DD(e)))return kz(r,_a._0_modifier_can_only_appear_on_a_type_parameter_of_a_function_method_or_class,Fa(r.kind));break}case 164:if(16&_)return kz(r,_a._0_modifier_already_seen,"override");if(128&_)return kz(r,_a._0_modifier_cannot_be_used_with_1_modifier,"override","declare");if(8&_)return kz(r,_a._0_modifier_must_precede_1_modifier,"override","readonly");if(512&_)return kz(r,_a._0_modifier_must_precede_1_modifier,"override","accessor");if(1024&_)return kz(r,_a._0_modifier_must_precede_1_modifier,"override","async");_|=16,c=r;break;case 125:case 124:case 123:const d=Bc(Hv(r.kind));if(7&_)return kz(r,_a.Accessibility_modifier_already_seen);if(16&_)return kz(r,_a._0_modifier_must_precede_1_modifier,d,"override");if(256&_)return kz(r,_a._0_modifier_must_precede_1_modifier,d,"static");if(512&_)return kz(r,_a._0_modifier_must_precede_1_modifier,d,"accessor");if(8&_)return kz(r,_a._0_modifier_must_precede_1_modifier,d,"readonly");if(1024&_)return kz(r,_a._0_modifier_must_precede_1_modifier,d,"async");if(269===t.parent.kind||308===t.parent.kind)return kz(r,_a._0_modifier_cannot_appear_on_a_module_or_namespace_element,d);if(64&_)return 123===r.kind?kz(r,_a._0_modifier_cannot_be_used_with_1_modifier,d,"abstract"):kz(r,_a._0_modifier_must_precede_1_modifier,d,"abstract");if(Kl(t))return kz(r,_a.An_accessibility_modifier_cannot_be_used_with_a_private_identifier);_|=Hv(r.kind);break;case 126:if(256&_)return kz(r,_a._0_modifier_already_seen,"static");if(8&_)return kz(r,_a._0_modifier_must_precede_1_modifier,"static","readonly");if(1024&_)return kz(r,_a._0_modifier_must_precede_1_modifier,"static","async");if(512&_)return kz(r,_a._0_modifier_must_precede_1_modifier,"static","accessor");if(269===t.parent.kind||308===t.parent.kind)return kz(r,_a._0_modifier_cannot_appear_on_a_module_or_namespace_element,"static");if(170===t.kind)return kz(r,_a._0_modifier_cannot_appear_on_a_parameter,"static");if(64&_)return kz(r,_a._0_modifier_cannot_be_used_with_1_modifier,"static","abstract");if(16&_)return kz(r,_a._0_modifier_must_precede_1_modifier,"static","override");_|=256,o=r;break;case 129:if(512&_)return kz(r,_a._0_modifier_already_seen,"accessor");if(8&_)return kz(r,_a._0_modifier_cannot_be_used_with_1_modifier,"accessor","readonly");if(128&_)return kz(r,_a._0_modifier_cannot_be_used_with_1_modifier,"accessor","declare");if(173!==t.kind)return kz(r,_a.accessor_modifier_can_only_appear_on_a_property_declaration);_|=512;break;case 148:if(8&_)return kz(r,_a._0_modifier_already_seen,"readonly");if(173!==t.kind&&172!==t.kind&&182!==t.kind&&170!==t.kind)return kz(r,_a.readonly_modifier_can_only_appear_on_a_property_declaration_or_index_signature);if(512&_)return kz(r,_a._0_modifier_cannot_be_used_with_1_modifier,"readonly","accessor");_|=8;break;case 95:if(j.verbatimModuleSyntax&&!(33554432&t.flags)&&266!==t.kind&&265!==t.kind&&268!==t.kind&&308===t.parent.kind&&1===e.getEmitModuleFormatOfFile(vd(t)))return kz(r,_a.A_top_level_export_modifier_cannot_be_used_on_value_declarations_in_a_CommonJS_module_when_verbatimModuleSyntax_is_enabled);if(32&_)return kz(r,_a._0_modifier_already_seen,"export");if(128&_)return kz(r,_a._0_modifier_must_precede_1_modifier,"export","declare");if(64&_)return kz(r,_a._0_modifier_must_precede_1_modifier,"export","abstract");if(1024&_)return kz(r,_a._0_modifier_must_precede_1_modifier,"export","async");if(u_(t.parent))return kz(r,_a._0_modifier_cannot_appear_on_class_elements_of_this_kind,"export");if(170===t.kind)return kz(r,_a._0_modifier_cannot_appear_on_a_parameter,"export");if(4===i)return kz(r,_a._0_modifier_cannot_appear_on_a_using_declaration,"export");if(6===i)return kz(r,_a._0_modifier_cannot_appear_on_an_await_using_declaration,"export");_|=32;break;case 90:const p=308===t.parent.kind?t.parent:t.parent.parent;if(268===p.kind&&!cp(p))return kz(r,_a.A_default_export_can_only_be_used_in_an_ECMAScript_style_module);if(4===i)return kz(r,_a._0_modifier_cannot_appear_on_a_using_declaration,"default");if(6===i)return kz(r,_a._0_modifier_cannot_appear_on_an_await_using_declaration,"default");if(!(32&_))return kz(r,_a._0_modifier_must_precede_1_modifier,"export","default");if(u)return kz(l,_a.Decorators_are_not_valid_here);_|=2048;break;case 138:if(128&_)return kz(r,_a._0_modifier_already_seen,"declare");if(1024&_)return kz(r,_a._0_modifier_cannot_be_used_in_an_ambient_context,"async");if(16&_)return kz(r,_a._0_modifier_cannot_be_used_in_an_ambient_context,"override");if(u_(t.parent)&&!ND(t))return kz(r,_a._0_modifier_cannot_appear_on_class_elements_of_this_kind,"declare");if(170===t.kind)return kz(r,_a._0_modifier_cannot_appear_on_a_parameter,"declare");if(4===i)return kz(r,_a._0_modifier_cannot_appear_on_a_using_declaration,"declare");if(6===i)return kz(r,_a._0_modifier_cannot_appear_on_an_await_using_declaration,"declare");if(33554432&t.parent.flags&&269===t.parent.kind)return kz(r,_a.A_declare_modifier_cannot_be_used_in_an_already_ambient_context);if(Kl(t))return kz(r,_a._0_modifier_cannot_be_used_with_a_private_identifier,"declare");if(512&_)return kz(r,_a._0_modifier_cannot_be_used_with_1_modifier,"declare","accessor");_|=128,a=r;break;case 128:if(64&_)return kz(r,_a._0_modifier_already_seen,"abstract");if(264!==t.kind&&186!==t.kind){if(175!==t.kind&&173!==t.kind&&178!==t.kind&&179!==t.kind)return kz(r,_a.abstract_modifier_can_only_appear_on_a_class_method_or_property_declaration);if(264!==t.parent.kind||!Nv(t.parent,64))return kz(r,173===t.kind?_a.Abstract_properties_can_only_appear_within_an_abstract_class:_a.Abstract_methods_can_only_appear_within_an_abstract_class);if(256&_)return kz(r,_a._0_modifier_cannot_be_used_with_1_modifier,"static","abstract");if(2&_)return kz(r,_a._0_modifier_cannot_be_used_with_1_modifier,"private","abstract");if(1024&_&&s)return kz(s,_a._0_modifier_cannot_be_used_with_1_modifier,"async","abstract");if(16&_)return kz(r,_a._0_modifier_must_precede_1_modifier,"abstract","override");if(512&_)return kz(r,_a._0_modifier_must_precede_1_modifier,"abstract","accessor")}if(Sc(t)&&81===t.name.kind)return kz(r,_a._0_modifier_cannot_be_used_with_a_private_identifier,"abstract");_|=64;break;case 134:if(1024&_)return kz(r,_a._0_modifier_already_seen,"async");if(128&_||33554432&t.parent.flags)return kz(r,_a._0_modifier_cannot_be_used_in_an_ambient_context,"async");if(170===t.kind)return kz(r,_a._0_modifier_cannot_appear_on_a_parameter,"async");if(64&_)return kz(r,_a._0_modifier_cannot_be_used_with_1_modifier,"async","abstract");_|=1024,s=r;break;case 103:case 147:{const e=103===r.kind?8192:16384,i=103===r.kind?"in":"out",o=UP(t.parent)&&(Ug(t.parent)||b(null==(n=Wg(t.parent))?void 0:n.tags,VP))||t.parent;if(169!==t.kind||o&&!(pE(o)||u_(o)||fE(o)||VP(o)))return kz(r,_a._0_modifier_can_only_appear_on_a_type_parameter_of_a_class_interface_or_type_alias,i);if(_&e)return kz(r,_a._0_modifier_already_seen,i);if(8192&e&&16384&_)return kz(r,_a._0_modifier_must_precede_1_modifier,"in","out");_|=e;break}}}return 177===t.kind?256&_?kz(o,_a._0_modifier_cannot_appear_on_a_constructor_declaration,"static"):16&_?kz(c,_a._0_modifier_cannot_appear_on_a_constructor_declaration,"override"):!!(1024&_)&&kz(s,_a._0_modifier_cannot_appear_on_a_constructor_declaration,"async"):(273===t.kind||272===t.kind)&&128&_?kz(a,_a.A_0_modifier_cannot_be_used_with_an_import_declaration,"declare"):170===t.kind&&31&_&&k_(t.name)?kz(t,_a.A_parameter_property_may_not_be_declared_using_a_binding_pattern):170===t.kind&&31&_&&t.dotDotDotToken?kz(t,_a.A_parameter_property_cannot_be_declared_using_a_rest_parameter):!!(1024&_)&&function(e,t){switch(e.kind){case 175:case 263:case 219:case 220:return!1}return kz(t,_a._0_modifier_cannot_be_used_here,"async")}(t,s)}function XJ(e,t){const n=b(e.modifiers,Zl);return n&&n.kind!==t?n:void 0}function QJ(e,t=_a.Trailing_comma_not_allowed){return!(!e||!e.hasTrailingComma)&&xz(e[0],e.end-1,1,t)}function YJ(e,t){if(e&&0===e.length){const n=e.pos-1;return xz(t,n,Qa(t.text,e.end)+1-n,_a.Type_parameter_list_cannot_be_empty)}return!1}function ZJ(e){const t=vd(e);return GJ(e)||YJ(e.typeParameters,t)||function(e){let t=!1;const n=e.length;for(let r=0;r1||e.typeParameters.hasTrailingComma||e.typeParameters[0].constraint)&&t&&So(t.fileName,[".mts",".cts"])&&kz(e.typeParameters[0],_a.This_syntax_is_reserved_in_files_with_the_mts_or_cts_extension_Add_a_trailing_comma_or_explicit_constraint);const{equalsGreaterThanToken:n}=e;return za(t,n.pos).line!==za(t,n.end).line&&kz(n,_a.Line_terminator_not_permitted_before_arrow)}(e,t)||o_(e)&&function(e){if(M>=3){const t=e.body&&VF(e.body)&&bA(e.body.statements);if(t){const n=N(e.parameters,e=>!!e.initializer||k_(e.name)||Bu(e));if(u(n)){d(n,e=>{aT(zo(e,_a.This_parameter_is_not_allowed_with_use_strict_directive),Rp(t,_a.use_strict_directive_used_here))});const e=n.map((e,t)=>Rp(e,0===t?_a.Non_simple_parameter_declared_here:_a.and_here));return aT(zo(t,_a.use_strict_directive_cannot_be_used_with_non_simple_parameter_list),...e),!0}}}return!1}(e)}function ez(e,t){return QJ(t)||function(e,t){if(t&&0===t.length){const n=vd(e),r=t.pos-1;return xz(n,r,Qa(n.text,t.end)+1-r,_a.Type_argument_list_cannot_be_empty)}return!1}(e,t)}function tz(e){const t=e.types;if(QJ(t))return!0;if(t&&0===t.length){const n=Fa(e.token);return xz(e,t.pos,0,_a._0_list_cannot_be_empty,n)}return $(t,nz)}function nz(e){return OF(e)&&vD(e.expression)&&e.typeArguments?kz(e,_a.This_use_of_import_is_invalid_import_calls_can_be_written_but_they_must_have_parentheses_and_cannot_have_type_arguments):ez(e,e.typeArguments)}function iz(e){if(168!==e.kind)return!1;const t=e;return 227===t.expression.kind&&28===t.expression.operatorToken.kind&&kz(t.expression,_a.A_comma_expression_is_not_allowed_in_a_computed_property_name)}function oz(e){if(e.asteriskToken){if(un.assert(263===e.kind||219===e.kind||175===e.kind),33554432&e.flags)return kz(e.asteriskToken,_a.Generators_are_not_allowed_in_an_ambient_context);if(!e.body)return kz(e.asteriskToken,_a.An_overload_signature_cannot_be_declared_as_a_generator)}}function az(e,t){return!!e&&kz(e,t)}function sz(e,t){return!!e&&kz(e,t)}function cz(e){if(Cz(e))return!0;if(251===e.kind&&e.awaitModifier&&!(65536&e.flags)){const t=vd(e);if(nm(e)){if(!vz(t))switch(hp(t,j)||ho.add(Rp(e.awaitModifier,_a.for_await_loops_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_this_file_has_no_imports_or_exports_Consider_adding_an_empty_export_to_make_this_file_a_module)),R){case 100:case 101:case 102:case 199:if(1===t.impliedNodeFormat){ho.add(Rp(e.awaitModifier,_a.The_current_file_is_a_CommonJS_module_and_cannot_use_await_at_the_top_level));break}case 7:case 99:case 200:case 4:if(M>=4)break;default:ho.add(Rp(e.awaitModifier,_a.Top_level_for_await_loops_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_node16_node18_node20_nodenext_or_preserve_and_the_target_option_is_set_to_es2017_or_higher))}}else if(!vz(t)){const t=Rp(e.awaitModifier,_a.for_await_loops_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules),n=Kf(e);return n&&177!==n.kind&&(un.assert(!(2&Oh(n)),"Enclosing function should never be an async function."),aT(t,Rp(n,_a.Did_you_mean_to_mark_this_function_as_async))),ho.add(t),!0}}if(ZF(e)&&!(65536&e.flags)&&aD(e.initializer)&&"async"===e.initializer.escapedText)return kz(e.initializer,_a.The_left_hand_side_of_a_for_of_statement_may_not_be_async),!1;if(262===e.initializer.kind){const t=e.initializer;if(!hz(t)){const n=t.declarations;if(!n.length)return!1;if(n.length>1){const n=250===e.kind?_a.Only_a_single_variable_declaration_is_allowed_in_a_for_in_statement:_a.Only_a_single_variable_declaration_is_allowed_in_a_for_of_statement;return bz(t.declarations[1],n)}const r=n[0];if(r.initializer){const t=250===e.kind?_a.The_variable_declaration_of_a_for_in_statement_cannot_have_an_initializer:_a.The_variable_declaration_of_a_for_of_statement_cannot_have_an_initializer;return kz(r.name,t)}if(r.type)return kz(r,250===e.kind?_a.The_left_hand_side_of_a_for_in_statement_cannot_use_a_type_annotation:_a.The_left_hand_side_of_a_for_of_statement_cannot_use_a_type_annotation)}}return!1}function lz(e){if(e.parameters.length===(178===e.kind?1:2))return sv(e)}function _z(e,t){if(md(e)&&!ab(pF(e)?ah(e.argumentExpression):e.expression))return kz(e,t)}function dz(e){if(ZJ(e))return!0;if(175===e.kind){if(211===e.parent.kind){if(e.modifiers&&(1!==e.modifiers.length||134!==ge(e.modifiers).kind))return bz(e,_a.Modifiers_cannot_appear_here);if(az(e.questionToken,_a.An_object_member_cannot_be_declared_optional))return!0;if(sz(e.exclamationToken,_a.A_definite_assignment_assertion_is_not_permitted_in_this_context))return!0;if(void 0===e.body)return xz(e,e.end-1,1,_a._0_expected,"{")}if(oz(e))return!0}if(u_(e.parent)){if(M<2&&sD(e.name))return kz(e.name,_a.Private_identifiers_are_only_available_when_targeting_ECMAScript_2015_and_higher);if(33554432&e.flags)return _z(e.name,_a.A_computed_property_name_in_an_ambient_context_must_refer_to_an_expression_whose_type_is_a_literal_type_or_a_unique_symbol_type);if(175===e.kind&&!e.body)return _z(e.name,_a.A_computed_property_name_in_a_method_overload_must_refer_to_an_expression_whose_type_is_a_literal_type_or_a_unique_symbol_type)}else{if(265===e.parent.kind)return _z(e.name,_a.A_computed_property_name_in_an_interface_must_refer_to_an_expression_whose_type_is_a_literal_type_or_a_unique_symbol_type);if(188===e.parent.kind)return _z(e.name,_a.A_computed_property_name_in_a_type_literal_must_refer_to_an_expression_whose_type_is_a_literal_type_or_a_unique_symbol_type)}}function pz(e){return jh(e)||225===e.kind&&41===e.operator&&9===e.operand.kind}function fz(e){const t=e.initializer;if(t){const r=!(pz(t)||function(e){if((dF(e)||pF(e)&&pz(e.argumentExpression))&&ab(e.expression))return!!(1056&Ij(e).flags)}(t)||112===t.kind||97===t.kind||(n=t,10===n.kind||225===n.kind&&41===n.operator&&10===n.operand.kind));if(!(nf(e)||lE(e)&&Az(e))||e.type)return kz(t,_a.Initializers_are_not_allowed_in_ambient_contexts);if(r)return kz(t,_a.A_const_initializer_in_an_ambient_context_must_be_a_string_or_numeric_literal_or_literal_enum_reference)}var n}function mz(e){if(80===e.kind){if("__esModule"===gc(e))return function(e,t,n,...r){return!vz(vd(t))&&(Ro(e,t,n,...r),!0)}("noEmit",e,_a.Identifier_expected_esModule_is_reserved_as_an_exported_marker_when_transforming_ECMAScript_modules)}else{const t=e.elements;for(const e of t)if(!IF(e))return mz(e.name)}return!1}function gz(e){if(80===e.kind){if("let"===e.escapedText)return kz(e,_a.let_is_not_allowed_to_be_used_as_a_name_in_let_or_const_declarations)}else{const t=e.elements;for(const e of t)IF(e)||gz(e.name)}return!1}function hz(e){const t=e.declarations;if(QJ(e.declarations))return!0;if(!e.declarations.length)return xz(e,t.pos,t.end-t.pos,_a.Variable_declaration_list_cannot_be_empty);const n=7&e.flags;if(4===n||6===n){if(YF(e.parent))return kz(e,4===n?_a.The_left_hand_side_of_a_for_in_statement_cannot_be_a_using_declaration:_a.The_left_hand_side_of_a_for_in_statement_cannot_be_an_await_using_declaration);if(33554432&e.flags)return kz(e,4===n?_a.using_declarations_are_not_allowed_in_ambient_contexts:_a.await_using_declarations_are_not_allowed_in_ambient_contexts);if(6===n)return pj(e)}return!1}function yz(e){switch(e.kind){case 246:case 247:case 248:case 255:case 249:case 250:case 251:return!1;case 257:return yz(e.parent)}return!0}function vz(e){return e.parseDiagnostics.length>0}function bz(e,t,...n){const r=vd(e);if(!vz(r)){const i=Gp(r,e.pos);return ho.add(Gx(r,i.start,i.length,t,...n)),!0}return!1}function xz(e,t,n,r,...i){const o=vd(e);return!vz(o)&&(ho.add(Gx(o,t,n,r,...i)),!0)}function kz(e,t,...n){return!vz(vd(e))&&(zo(e,t,...n),!0)}function Sz(e){return 265!==e.kind&&266!==e.kind&&273!==e.kind&&272!==e.kind&&279!==e.kind&&278!==e.kind&&271!==e.kind&&!Nv(e,2208)&&bz(e,_a.Top_level_declarations_in_d_ts_files_must_start_with_either_a_declare_or_export_modifier)}function Tz(e){return!!(33554432&e.flags)&&function(e){for(const t of e.statements)if((_u(t)||244===t.kind)&&Sz(t))return!0;return!1}(e)}function Cz(e){if(33554432&e.flags){if(!da(e).hasReportedStatementInAmbientContext&&(r_(e.parent)||d_(e.parent)))return da(e).hasReportedStatementInAmbientContext=bz(e,_a.An_implementation_cannot_be_declared_in_ambient_contexts);if(242===e.parent.kind||269===e.parent.kind||308===e.parent.kind){const t=da(e.parent);if(!t.hasReportedStatementInAmbientContext)return t.hasReportedStatementInAmbientContext=bz(e,_a.Statements_are_not_allowed_in_ambient_contexts)}}return!1}function wz(e){const t=Xd(e).includes("."),n=16&e.numericLiteralFlags;t||n||+e.text<=2**53-1||Uo(!1,Rp(e,_a.Numeric_literals_with_absolute_values_equal_to_2_53_or_greater_are_too_large_to_be_represented_accurately_as_integers))}function Nz(e){return!!d(e.elements,e=>{if(e.isTypeOnly)return bz(e,277===e.kind?_a.The_type_modifier_cannot_be_used_on_a_named_import_when_import_type_is_used_on_its_import_statement:_a.The_type_modifier_cannot_be_used_on_a_named_export_when_export_type_is_used_on_its_export_statement)})}function Dz(e,t,n){if(1048576&t.flags&&2621440&e.flags){const r=BN(t,e);if(r)return r;const i=Up(e);if(i){const e=jN(i,t);if(e){const r=ET(t,E(e,e=>[()=>P_(e),e.escapedName]),n);if(r!==t)return r}}}}function Fz(e){return Jh(e)||(kD(e)?AN(Qj(e.expression)):void 0)}function Ez(e){return Ae===e?qe:(Ae=e,qe=ic(e))}function Pz(e){return Pe===e?ze:(Pe=e,ze=ac(e))}function Az(e){const t=7&Pz(e);return 2===t||4===t||6===t}}function rJ(e){return 263!==e.kind&&175!==e.kind||!!e.body}function iJ(e){switch(e.parent.kind){case 277:case 282:return aD(e)||11===e.kind;default:return lh(e)}}function oJ(e){switch(e){case 0:return"yieldType";case 1:return"returnType";case 2:return"nextType"}}function aJ(e){return!!(1&e.flags)}function sJ(e){return!!(2&e.flags)}(MB=jB||(jB={})).JSX="JSX",MB.IntrinsicElements="IntrinsicElements",MB.ElementClass="ElementClass",MB.ElementAttributesPropertyNameContainer="ElementAttributesProperty",MB.ElementChildrenAttributeNameContainer="ElementChildrenAttribute",MB.Element="Element",MB.ElementType="ElementType",MB.IntrinsicAttributes="IntrinsicAttributes",MB.IntrinsicClassAttributes="IntrinsicClassAttributes",MB.LibraryManagedAttributes="LibraryManagedAttributes",(RB||(RB={})).Fragment="Fragment";var cJ=class e{constructor(t,n,r){var i;for(this.moduleResolverHost=void 0,this.inner=void 0,this.disableTrackSymbol=!1;n instanceof e;)n=n.inner;this.inner=n,this.moduleResolverHost=r,this.context=t,this.canTrackSymbol=!!(null==(i=this.inner)?void 0:i.trackSymbol)}trackSymbol(e,t,n){var r,i;if((null==(r=this.inner)?void 0:r.trackSymbol)&&!this.disableTrackSymbol){if(this.inner.trackSymbol(e,t,n))return this.onDiagnosticReported(),!0;262144&e.flags||((i=this.context).trackedSymbols??(i.trackedSymbols=[])).push([e,t,n])}return!1}reportInaccessibleThisError(){var e;(null==(e=this.inner)?void 0:e.reportInaccessibleThisError)&&(this.onDiagnosticReported(),this.inner.reportInaccessibleThisError())}reportPrivateInBaseOfClassExpression(e){var t;(null==(t=this.inner)?void 0:t.reportPrivateInBaseOfClassExpression)&&(this.onDiagnosticReported(),this.inner.reportPrivateInBaseOfClassExpression(e))}reportInaccessibleUniqueSymbolError(){var e;(null==(e=this.inner)?void 0:e.reportInaccessibleUniqueSymbolError)&&(this.onDiagnosticReported(),this.inner.reportInaccessibleUniqueSymbolError())}reportCyclicStructureError(){var e;(null==(e=this.inner)?void 0:e.reportCyclicStructureError)&&(this.onDiagnosticReported(),this.inner.reportCyclicStructureError())}reportLikelyUnsafeImportRequiredError(e){var t;(null==(t=this.inner)?void 0:t.reportLikelyUnsafeImportRequiredError)&&(this.onDiagnosticReported(),this.inner.reportLikelyUnsafeImportRequiredError(e))}reportTruncationError(){var e;(null==(e=this.inner)?void 0:e.reportTruncationError)&&(this.onDiagnosticReported(),this.inner.reportTruncationError())}reportNonlocalAugmentation(e,t,n){var r;(null==(r=this.inner)?void 0:r.reportNonlocalAugmentation)&&(this.onDiagnosticReported(),this.inner.reportNonlocalAugmentation(e,t,n))}reportNonSerializableProperty(e){var t;(null==(t=this.inner)?void 0:t.reportNonSerializableProperty)&&(this.onDiagnosticReported(),this.inner.reportNonSerializableProperty(e))}onDiagnosticReported(){this.context.reportedDiagnostic=!0}reportInferenceFallback(e){var t;(null==(t=this.inner)?void 0:t.reportInferenceFallback)&&!this.context.suppressReportInferenceFallback&&(this.onDiagnosticReported(),this.inner.reportInferenceFallback(e))}pushErrorFallbackNode(e){var t,n;return null==(n=null==(t=this.inner)?void 0:t.pushErrorFallbackNode)?void 0:n.call(t,e)}popErrorFallbackNode(){var e,t;return null==(t=null==(e=this.inner)?void 0:e.popErrorFallbackNode)?void 0:t.call(e)}};function lJ(e,t,n,r){if(void 0===e)return e;const i=t(e);let o;return void 0!==i?(o=Qe(i)?(r||xJ)(i):i,un.assertNode(o,n),o):void 0}function _J(e,t,n,r,i){if(void 0===e)return e;const o=e.length;let a;(void 0===r||r<0)&&(r=0),(void 0===i||i>o-r)&&(i=o-r);let s=-1,c=-1;r>0||io-r)&&(i=o-r),dJ(e,t,n,r,i)}function dJ(e,t,n,r,i){let o;const a=e.length;(r>0||i=2&&(i=function(e,t){let n;for(let r=0;r{const o=rl,addSource:P,setSourceContent:A,addName:I,addMapping:O,appendSourceMap:function(e,t,n,r,i,o){un.assert(e>=k,"generatedLine cannot backtrack"),un.assert(t>=0,"generatedCharacter cannot be negative"),s();const a=[];let l;const _=EJ(n.mappings);for(const s of _){if(o&&(s.generatedLine>o.line||s.generatedLine===o.line&&s.generatedCharacter>o.character))break;if(i&&(s.generatedLineJSON.stringify(R())};function P(t){s();const n=aa(r,t,e.getCurrentDirectory(),e.getCanonicalFileName,!0);let i=u.get(n);return void 0===i&&(i=_.length,_.push(n),l.push(t),u.set(n,i)),c(),i}function A(e,t){if(s(),null!==t){for(o||(o=[]);o.length=k,"generatedLine cannot backtrack"),un.assert(t>=0,"generatedCharacter cannot be negative"),un.assert(void 0===n||n>=0,"sourceIndex cannot be negative"),un.assert(void 0===r||r>=0,"sourceLine cannot be negative"),un.assert(void 0===i||i>=0,"sourceCharacter cannot be negative"),s(),(function(e,t){return!D||k!==e||S!==t}(e,t)||function(e,t,n){return void 0!==e&&void 0!==t&&void 0!==n&&T===e&&(C>t||C===t&&w>n)}(n,r,i))&&(j(),k=e,S=t,F=!1,E=!1,D=!0),void 0!==n&&void 0!==r&&void 0!==i&&(T=n,C=r,w=i,F=!0,void 0!==o&&(N=o,E=!0)),c()}function L(e){p.push(e),p.length>=1024&&M()}function j(){if(D&&(!x||m!==k||g!==S||h!==T||y!==C||v!==w||b!==N)){if(s(),m0&&(f+=String.fromCharCode.apply(void 0,p),p.length=0)}function R(){return j(),M(),{version:3,file:t,sourceRoot:n,sources:_,names:d,mappings:f,sourcesContent:o}}function B(e){e<0?e=1+(-e<<1):e<<=1;do{let t=31&e;(e>>=5)>0&&(t|=32),L(IJ(t))}while(e>0)}}var SJ=/\/\/[@#] source[M]appingURL=(.+)\r?\n?$/,TJ=/^\/\/[@#] source[M]appingURL=(.+)\r?\n?$/,CJ=/^\s*(\/\/[@#] .*)?$/;function wJ(e,t){return{getLineCount:()=>t.length,getLineText:n=>e.substring(t[n],t[n+1])}}function NJ(e){for(let t=e.getLineCount()-1;t>=0;t--){const n=e.getLineText(t),r=TJ.exec(n);if(r)return r[1].trimEnd();if(!n.match(CJ))break}}function DJ(e){return"string"==typeof e||null===e}function FJ(e){try{const n=JSON.parse(e);if(null!==(t=n)&&"object"==typeof t&&3===t.version&&"string"==typeof t.file&&"string"==typeof t.mappings&&Qe(t.sources)&&v(t.sources,Ze)&&(void 0===t.sourceRoot||null===t.sourceRoot||"string"==typeof t.sourceRoot)&&(void 0===t.sourcesContent||null===t.sourcesContent||Qe(t.sourcesContent)&&v(t.sourcesContent,DJ))&&(void 0===t.names||null===t.names||Qe(t.names)&&v(t.names,Ze)))return n}catch{}var t}function EJ(e){let t,n=!1,r=0,i=0,o=0,a=0,s=0,c=0,l=0;return{get pos(){return r},get error(){return t},get state(){return _(!0,!0)},next(){for(;!n&&r=e.length)return d("Error in decoding base64VLQFormatDecode, past the mapping string"),-1;const o=OJ(e.charCodeAt(r));if(-1===o)return d("Invalid character in VLQ"),-1;t=!!(32&o),i|=(31&o)<>=1,i=-i):i>>=1,i}}function PJ(e,t){return e===t||e.generatedLine===t.generatedLine&&e.generatedCharacter===t.generatedCharacter&&e.sourceIndex===t.sourceIndex&&e.sourceLine===t.sourceLine&&e.sourceCharacter===t.sourceCharacter&&e.nameIndex===t.nameIndex}function AJ(e){return void 0!==e.sourceIndex&&void 0!==e.sourceLine&&void 0!==e.sourceCharacter}function IJ(e){return e>=0&&e<26?65+e:e>=26&&e<52?97+e-26:e>=52&&e<62?48+e-52:62===e?43:63===e?47:un.fail(`${e}: not a base64 value`)}function OJ(e){return e>=65&&e<=90?e-65:e>=97&&e<=122?e-97+26:e>=48&&e<=57?e-48+52:43===e?62:47===e?63:-1}function LJ(e){return void 0!==e.sourceIndex&&void 0!==e.sourcePosition}function jJ(e,t){return e.generatedPosition===t.generatedPosition&&e.sourceIndex===t.sourceIndex&&e.sourcePosition===t.sourcePosition}function MJ(e,t){return un.assert(e.sourceIndex===t.sourceIndex),vt(e.sourcePosition,t.sourcePosition)}function RJ(e,t){return vt(e.generatedPosition,t.generatedPosition)}function BJ(e){return e.sourcePosition}function JJ(e){return e.generatedPosition}function zJ(e,t,n){const r=Do(n),i=t.sourceRoot?Bo(t.sourceRoot,r):r,o=Bo(t.file,r),a=e.getSourceFileLike(o),s=t.sources.map(e=>Bo(e,i)),c=new Map(s.map((t,n)=>[e.getCanonicalFileName(t),n]));let _,u,d;return{getSourcePosition:function(e){const t=function(){if(void 0===u){const e=[];for(const t of f())e.push(t);u=ee(e,RJ,jJ)}return u}();if(!$(t))return e;let n=Ce(t,e.pos,JJ,vt);n<0&&(n=~n);const r=t[n];return void 0!==r&&LJ(r)?{fileName:s[r.sourceIndex],pos:r.sourcePosition}:e},getGeneratedPosition:function(t){const n=c.get(e.getCanonicalFileName(t.fileName));if(void 0===n)return t;const r=function(e){if(void 0===d){const e=[];for(const t of f()){if(!LJ(t))continue;let n=e[t.sourceIndex];n||(e[t.sourceIndex]=n=[]),n.push(t)}d=e.map(e=>ee(e,MJ,jJ))}return d[e]}(n);if(!$(r))return t;let i=Ce(r,t.pos,BJ,vt);i<0&&(i=~i);const a=r[i];return void 0===a||a.sourceIndex!==n?t:{fileName:o,pos:a.generatedPosition}}};function p(n){const r=void 0!==a?La(a,n.generatedLine,n.generatedCharacter,!0):-1;let i,o;if(AJ(n)){const r=e.getSourceFileLike(s[n.sourceIndex]);i=t.sources[n.sourceIndex],o=void 0!==r?La(r,n.sourceLine,n.sourceCharacter,!0):-1}return{generatedPosition:r,source:i,sourceIndex:n.sourceIndex,sourcePosition:o,nameIndex:n.nameIndex}}function f(){if(void 0===_){const n=EJ(t.mappings),r=Oe(n,p);void 0!==n.error?(e.log&&e.log(`Encountered error while decoding sourcemap: ${n.error}`),_=l):_=r}return _}}var qJ={getSourcePosition:st,getGeneratedPosition:st};function UJ(e){return(e=_c(e))?ZB(e):0}function VJ(e){return!!e&&!(!EE(e)&&!OE(e))&&$(e.elements,WJ)}function WJ(e){return Kd(e.propertyName||e.name)}function $J(e,t){return function(n){return 308===n.kind?t(n):function(n){return e.factory.createBundle(E(n.sourceFiles,t))}(n)}}function HJ(e){return!!Sg(e)}function KJ(e){if(Sg(e))return!0;const t=e.importClause&&e.importClause.namedBindings;if(!t)return!1;if(!EE(t))return!1;let n=0;for(const e of t.elements)WJ(e)&&n++;return n>0&&n!==t.elements.length||!!(t.elements.length-n)&&Tg(e)}function GJ(e){return!KJ(e)&&(Tg(e)||!!e.importClause&&EE(e.importClause.namedBindings)&&VJ(e.importClause.namedBindings))}function XJ(e,t){const n=e.getEmitResolver(),r=e.getCompilerOptions(),i=[],o=new ez,a=[],s=new Map,c=new Set;let l,_,u=!1,d=!1,p=!1,f=!1;for(const n of t.statements)switch(n.kind){case 273:i.push(n),!p&&KJ(n)&&(p=!0),!f&&GJ(n)&&(f=!0);break;case 272:284===n.moduleReference.kind&&i.push(n);break;case 279:if(n.moduleSpecifier)if(n.exportClause)if(i.push(n),OE(n.exportClause))g(n),f||(f=VJ(n.exportClause));else{const e=n.exportClause.name,t=$d(e);s.get(t)||(YJ(a,UJ(n),e),s.set(t,!0),l=ie(l,e)),p=!0}else i.push(n),d=!0;else g(n);break;case 278:n.isExportEquals&&!_&&(_=n);break;case 244:if(Nv(n,32))for(const e of n.declarationList.declarations)l=QJ(e,s,l,a);break;case 263:Nv(n,32)&&h(n,void 0,Nv(n,2048));break;case 264:if(Nv(n,32))if(Nv(n,2048))u||(YJ(a,UJ(n),e.factory.getDeclarationName(n)),u=!0);else{const e=n.name;e&&!s.get(gc(e))&&(YJ(a,UJ(n),e),s.set(gc(e),!0),l=ie(l,e))}}const m=AA(e.factory,e.getEmitHelperFactory(),t,r,d,p,f);return m&&i.unshift(m),{externalImports:i,exportSpecifiers:o,exportEquals:_,hasExportStarsToExportValues:d,exportedBindings:a,exportedNames:l,exportedFunctions:c,externalHelpersImportDeclaration:m};function g(e){for(const t of nt(e.exportClause,OE).elements){const r=$d(t.name);if(!s.get(r)){const i=t.propertyName||t.name;if(11!==i.kind){e.moduleSpecifier||o.add(i,t);const r=n.getReferencedImportDeclaration(i)||n.getReferencedValueDeclaration(i);if(r){if(263===r.kind){h(r,t.name,Kd(t.name));continue}YJ(a,UJ(r),t.name)}}s.set(r,!0),l=ie(l,t.name)}}}function h(t,n,r){if(c.add(_c(t,uE)),r)u||(YJ(a,UJ(t),n??e.factory.getDeclarationName(t)),u=!0);else{n??(n=t.name);const e=$d(n);s.get(e)||(YJ(a,UJ(t),n),s.set(e,!0))}}}function QJ(e,t,n,r){if(k_(e.name))for(const i of e.name.elements)IF(i)||(n=QJ(i,t,n,r));else if(!Wl(e.name)){const i=gc(e.name);t.get(i)||(t.set(i,!0),n=ie(n,e.name),hA(e.name)&&YJ(r,UJ(e),e.name))}return n}function YJ(e,t,n){let r=e[t];return r?r.push(n):e[t]=r=[n],r}var ZJ=class e{constructor(){this._map=new Map}get size(){return this._map.size}has(t){return this._map.has(e.toKey(t))}get(t){return this._map.get(e.toKey(t))}set(t,n){return this._map.set(e.toKey(t),n),this}delete(t){var n;return(null==(n=this._map)?void 0:n.delete(e.toKey(t)))??!1}clear(){this._map.clear()}values(){return this._map.values()}static toKey(t){if($l(t)||Wl(t)){const n=t.emitNode.autoGenerate;if(4==(7&n.flags)){const r=uI(t),i=dl(r)&&r!==t?e.toKey(r):`(generated@${ZB(r)})`;return pI(!1,n.prefix,i,n.suffix,e.toKey)}{const t=`(auto@${n.id})`;return pI(!1,n.prefix,t,n.suffix,e.toKey)}}return sD(t)?gc(t).slice(1):gc(t)}},ez=class extends ZJ{add(e,t){let n=this.get(e);return n?n.push(t):this.set(e,n=[t]),n}remove(e,t){const n=this.get(e);n&&(Vt(n,t),n.length||this.delete(e))}};function tz(e){return ju(e)||9===e.kind||Ch(e.kind)||aD(e)}function nz(e){return!aD(e)&&tz(e)}function rz(e){return e>=65&&e<=79}function iz(e){switch(e){case 65:return 40;case 66:return 41;case 67:return 42;case 68:return 43;case 69:return 44;case 70:return 45;case 71:return 48;case 72:return 49;case 73:return 50;case 74:return 51;case 75:return 52;case 79:return 53;case 76:return 57;case 77:return 56;case 78:return 61}}function oz(e){if(!HF(e))return;const t=ah(e.expression);return lf(t)?t:void 0}function az(e,t,n){for(let r=t;rfunction(e,t,n){return ND(e)&&(!!e.initializer||!t)&&Fv(e)===n}(e,t,n))}function lz(e){return ND(t=e)&&Fv(t)||ED(e);var t}function _z(e){return N(e.members,lz)}function uz(e){return 173===e.kind&&void 0!==e.initializer}function dz(e){return!Dv(e)&&(m_(e)||p_(e))&&sD(e.name)}function pz(e){let t;if(e){const n=e.parameters,r=n.length>0&&cv(n[0]),i=r?1:0,o=r?n.length-1:n.length;for(let e=0;eyz(e.privateEnv,t))}function xz(e){return!e.initializer&&aD(e.name)}function kz(e){return v(e,xz)}function Sz(e,t){if(!e||!UN(e)||!xg(e.text,t))return e;const n=$S(e.text,Zq(e.text,t));return n!==e.text?hw(xI(mw.createStringLiteral(n,e.singleQuote),e),e):e}var Tz=(e=>(e[e.All=0]="All",e[e.ObjectRest=1]="ObjectRest",e))(Tz||{});function Cz(e,t,n,r,i,o){let a,s,c=e;if(ib(e))for(a=e.right;yb(e.left)||hb(e.left);){if(!ib(a))return un.checkDefined(lJ(a,t,V_));c=e=a,a=e.right}const l={context:n,level:r,downlevelIteration:!!n.getCompilerOptions().downlevelIteration,hoistTempVariables:!0,emitExpression:_,emitBindingOrAssignment:function(e,r,i,a){un.assertNode(e,o?aD:V_);const s=o?o(e,r,i):xI(n.factory.createAssignment(un.checkDefined(lJ(e,t,V_)),r),i);s.original=a,_(s)},createArrayBindingOrAssignmentPattern:e=>function(e,t){return un.assertEachNode(t,P_),e.createArrayLiteralExpression(E(t,e.converters.convertToArrayAssignmentElement))}(n.factory,e),createObjectBindingOrAssignmentPattern:e=>function(e,t){return un.assertEachNode(t,F_),e.createObjectLiteralExpression(E(t,e.converters.convertToObjectAssignmentElement))}(n.factory,e),createArrayBindingOrAssignmentElement:Iz,visitor:t};if(a&&(a=lJ(a,t,V_),un.assert(a),aD(a)&&wz(e,a.escapedText)||Nz(e)?a=Az(l,a,!1,c):i?a=Az(l,a,!0,c):ey(e)&&(c=a)),Fz(l,e,a,c,ib(e)),a&&i){if(!$(s))return a;s.push(a)}return n.factory.inlineExpressions(s)||n.factory.createOmittedExpression();function _(e){s=ie(s,e)}}function wz(e,t){const n=MA(e);return N_(n)?function(e,t){const n=qA(e);for(const e of n)if(wz(e,t))return!0;return!1}(n,t):!!aD(n)&&n.escapedText===t}function Nz(e){const t=JA(e);if(t&&kD(t)&&!Il(t.expression))return!0;const n=MA(e);return!!n&&N_(n)&&!!d(qA(n),Nz)}function Dz(e,t,n,r,i,o=!1,a){let s;const c=[],l=[],_={context:n,level:r,downlevelIteration:!!n.getCompilerOptions().downlevelIteration,hoistTempVariables:o,emitExpression:function(e){s=ie(s,e)},emitBindingOrAssignment:u,createArrayBindingOrAssignmentPattern:e=>function(e,t){return un.assertEachNode(t,T_),e.createArrayBindingPattern(t)}(n.factory,e),createObjectBindingOrAssignmentPattern:e=>function(e,t){return un.assertEachNode(t,lF),e.createObjectBindingPattern(t)}(n.factory,e),createArrayBindingOrAssignmentElement:e=>function(e,t){return e.createBindingElement(void 0,void 0,t)}(n.factory,e),visitor:t};if(lE(e)){let t=jA(e);t&&(aD(t)&&wz(e,t.escapedText)||Nz(e))&&(t=Az(_,un.checkDefined(lJ(t,_.visitor,V_)),!1,t),e=n.factory.updateVariableDeclaration(e,e.name,void 0,void 0,t))}if(Fz(_,e,i,e,a),s){const e=n.factory.createTempVariable(void 0);if(o){const t=n.factory.inlineExpressions(s);s=void 0,u(e,t,void 0,void 0)}else{n.hoistVariableDeclaration(e);const t=ve(c);t.pendingExpressions=ie(t.pendingExpressions,n.factory.createAssignment(e,t.value)),se(t.pendingExpressions,s),t.value=e}}for(const{pendingExpressions:e,name:t,value:r,location:i,original:o}of c){const a=n.factory.createVariableDeclaration(t,void 0,void 0,e?n.factory.inlineExpressions(ie(e,r)):r);a.original=o,xI(a,i),l.push(a)}return l;function u(e,t,r,i){un.assertNode(e,n_),s&&(t=n.factory.inlineExpressions(ie(s,t)),s=void 0),c.push({pendingExpressions:s,name:e,value:t,location:r,original:i})}}function Fz(e,t,n,r,i){const o=MA(t);if(!i){const i=lJ(jA(t),e.visitor,V_);i?n?(n=function(e,t,n,r){return t=Az(e,t,!0,r),e.context.factory.createConditionalExpression(e.context.factory.createTypeCheck(t,"undefined"),void 0,n,void 0,t)}(e,n,i,r),!nz(i)&&N_(o)&&(n=Az(e,n,!0,r))):n=i:n||(n=e.context.factory.createVoidZero())}D_(o)?function(e,t,n,r,i){const o=qA(n),a=o.length;let s,c;1!==a&&(r=Az(e,r,!C_(t)||0!==a,i));for(let t=0;t=1)||98304&l.transformFlags||98304&MA(l).transformFlags||kD(t)){s&&(e.emitBindingOrAssignment(e.createObjectBindingOrAssignmentPattern(s),r,i,n),s=void 0);const o=Pz(e,r,t);kD(t)&&(c=ie(c,o.argumentExpression)),Fz(e,l,o,l)}else s=ie(s,lJ(l,e.visitor,w_))}}s&&e.emitBindingOrAssignment(e.createObjectBindingOrAssignmentPattern(s),r,i,n)}(e,t,o,n,r):E_(o)?function(e,t,n,r,i){const o=qA(n),a=o.length;let s,c;e.level<1&&e.downlevelIteration?r=Az(e,xI(e.context.getEmitHelperFactory().createReadHelper(r,a>0&&RA(o[a-1])?void 0:a),i),!1,i):(1!==a&&(e.level<1||0===a)||v(o,IF))&&(r=Az(e,r,!C_(t)||0!==a,i));for(let t=0;t=1)if(65536&n.transformFlags||e.hasTransformedPriorElement&&!Ez(n)){e.hasTransformedPriorElement=!0;const t=e.context.factory.createTempVariable(void 0);e.hoistTempVariables&&e.context.hoistVariableDeclaration(t),c=ie(c,[t,n]),s=ie(s,e.createArrayBindingOrAssignmentElement(t))}else s=ie(s,n);else{if(IF(n))continue;if(RA(n)){if(t===a-1){const i=e.context.factory.createArraySliceCall(r,t);Fz(e,n,i,n)}}else{const i=e.context.factory.createElementAccessExpression(r,t);Fz(e,n,i,n)}}}if(s&&e.emitBindingOrAssignment(e.createArrayBindingOrAssignmentPattern(s),r,i,n),c)for(const[t,n]of c)Fz(e,n,t,n)}(e,t,o,n,r):e.emitBindingOrAssignment(o,n,r,t)}function Ez(e){const t=MA(e);if(!t||IF(t))return!0;const n=JA(e);if(n&&!zh(n))return!1;const r=jA(e);return!(r&&!nz(r))&&(N_(t)?v(qA(t),Ez):aD(t))}function Pz(e,t,n){const{factory:r}=e.context;if(kD(n)){const r=Az(e,un.checkDefined(lJ(n.expression,e.visitor,V_)),!1,n);return e.context.factory.createElementAccessExpression(t,r)}if(jh(n)||qN(n)){const i=r.cloneNode(n);return e.context.factory.createElementAccessExpression(t,i)}{const r=e.context.factory.createIdentifier(gc(n));return e.context.factory.createPropertyAccessExpression(t,r)}}function Az(e,t,n,r){if(aD(t)&&n)return t;{const n=e.context.factory.createTempVariable(void 0);return e.hoistTempVariables?(e.context.hoistVariableDeclaration(n),e.emitExpression(xI(e.context.factory.createAssignment(n,t),r))):e.emitBindingOrAssignment(n,t,r,void 0),n}}function Iz(e){return e}function Oz(e){var t;if(!ED(e)||1!==e.body.statements.length)return!1;const n=e.body.statements[0];return HF(n)&&rb(n.expression,!0)&&aD(n.expression.left)&&(null==(t=e.emitNode)?void 0:t.classThis)===n.expression.left&&110===n.expression.right.kind}function Lz(e){var t;return!!(null==(t=e.emitNode)?void 0:t.classThis)&&$(e.members,Oz)}function jz(e,t,n,r){if(Lz(t))return t;const i=function(e,t,n=e.createThis()){const r=e.createAssignment(t,n),i=e.createExpressionStatement(r),o=e.createBlock([i],!1),a=e.createClassStaticBlockDeclaration(o);return yw(a).classThis=t,a}(e,n,r);t.name&&ww(i.body.statements[0],t.name);const o=e.createNodeArray([i,...t.members]);xI(o,t.members);const a=dE(t)?e.updateClassDeclaration(t,t.modifiers,t.name,t.typeParameters,t.heritageClauses,o):e.updateClassExpression(t,t.modifiers,t.name,t.typeParameters,t.heritageClauses,o);return yw(a).classThis=n,a}function Mz(e,t,n){const r=_c(NA(n));return(dE(r)||uE(r))&&!r.name&&Nv(r,2048)?e.createStringLiteral("default"):e.createStringLiteralFromNode(t)}function Rz(e,t,n){const{factory:r}=e;if(void 0!==n)return{assignedName:r.createStringLiteral(n),name:t};if(zh(t)||sD(t))return{assignedName:r.createStringLiteralFromNode(t),name:t};if(zh(t.expression)&&!aD(t.expression))return{assignedName:r.createStringLiteralFromNode(t.expression),name:t};const i=r.getGeneratedNameForNode(t);e.hoistVariableDeclaration(i);const o=e.getEmitHelperFactory().createPropKeyHelper(t.expression),a=r.createAssignment(i,o);return{assignedName:i,name:r.updateComputedPropertyName(t,a)}}function Bz(e){var t;if(!ED(e)||1!==e.body.statements.length)return!1;const n=e.body.statements[0];return HF(n)&&JN(n.expression,"___setFunctionName")&&n.expression.arguments.length>=2&&n.expression.arguments[1]===(null==(t=e.emitNode)?void 0:t.assignedName)}function Jz(e){var t;return!!(null==(t=e.emitNode)?void 0:t.assignedName)&&$(e.members,Bz)}function zz(e){return!!e.name||Jz(e)}function qz(e,t,n,r){if(Jz(t))return t;const{factory:i}=e,o=function(e,t,n=e.factory.createThis()){const{factory:r}=e,i=e.getEmitHelperFactory().createSetFunctionNameHelper(n,t),o=r.createExpressionStatement(i),a=r.createBlock([o],!1),s=r.createClassStaticBlockDeclaration(a);return yw(s).assignedName=t,s}(e,n,r);t.name&&ww(o.body.statements[0],t.name);const a=k(t.members,Oz)+1,s=t.members.slice(0,a),c=t.members.slice(a),l=i.createNodeArray([...s,o,...c]);return xI(l,t.members),yw(t=dE(t)?i.updateClassDeclaration(t,t.modifiers,t.name,t.typeParameters,t.heritageClauses,l):i.updateClassExpression(t,t.modifiers,t.name,t.typeParameters,t.heritageClauses,l)).assignedName=n,t}function Uz(e,t,n,r){if(r&&UN(n)&&ym(n))return t;const{factory:i}=e,o=NA(t),a=AF(o)?nt(qz(e,o,n),AF):e.getEmitHelperFactory().createSetFunctionNameHelper(o,n);return i.restoreOuterExpressions(t,a)}function Vz(e,t,n,r){switch(t.kind){case 304:return function(e,t,n,r){const{factory:i}=e,{assignedName:o,name:a}=Rz(e,t.name,r),s=Uz(e,t.initializer,o,n);return i.updatePropertyAssignment(t,a,s)}(e,t,n,r);case 305:return function(e,t,n,r){const{factory:i}=e,o=void 0!==r?i.createStringLiteral(r):Mz(i,t.name,t.objectAssignmentInitializer),a=Uz(e,t.objectAssignmentInitializer,o,n);return i.updateShorthandPropertyAssignment(t,t.name,a)}(e,t,n,r);case 261:return function(e,t,n,r){const{factory:i}=e,o=void 0!==r?i.createStringLiteral(r):Mz(i,t.name,t.initializer),a=Uz(e,t.initializer,o,n);return i.updateVariableDeclaration(t,t.name,t.exclamationToken,t.type,a)}(e,t,n,r);case 170:return function(e,t,n,r){const{factory:i}=e,o=void 0!==r?i.createStringLiteral(r):Mz(i,t.name,t.initializer),a=Uz(e,t.initializer,o,n);return i.updateParameterDeclaration(t,t.modifiers,t.dotDotDotToken,t.name,t.questionToken,t.type,a)}(e,t,n,r);case 209:return function(e,t,n,r){const{factory:i}=e,o=void 0!==r?i.createStringLiteral(r):Mz(i,t.name,t.initializer),a=Uz(e,t.initializer,o,n);return i.updateBindingElement(t,t.dotDotDotToken,t.propertyName,t.name,a)}(e,t,n,r);case 173:return function(e,t,n,r){const{factory:i}=e,{assignedName:o,name:a}=Rz(e,t.name,r),s=Uz(e,t.initializer,o,n);return i.updatePropertyDeclaration(t,t.modifiers,a,t.questionToken??t.exclamationToken,t.type,s)}(e,t,n,r);case 227:return function(e,t,n,r){const{factory:i}=e,o=void 0!==r?i.createStringLiteral(r):Mz(i,t.left,t.right),a=Uz(e,t.right,o,n);return i.updateBinaryExpression(t,t.left,t.operatorToken,a)}(e,t,n,r);case 278:return function(e,t,n,r){const{factory:i}=e,o=void 0!==r?i.createStringLiteral(r):i.createStringLiteral(t.isExportEquals?"":"default"),a=Uz(e,t.expression,o,n);return i.updateExportAssignment(t,t.modifiers,a)}(e,t,n,r)}}var Wz=(e=>(e[e.LiftRestriction=0]="LiftRestriction",e[e.All=1]="All",e))(Wz||{});function $z(e,t,n,r,i,o){const a=lJ(t.tag,n,V_);un.assert(a);const s=[void 0],c=[],l=[],_=t.template;if(0===o&&!fy(_))return vJ(t,n,e);const{factory:u}=e;if($N(_))c.push(Hz(u,_)),l.push(Kz(u,_,r));else{c.push(Hz(u,_.head)),l.push(Kz(u,_.head,r));for(const e of _.templateSpans)c.push(Hz(u,e.literal)),l.push(Kz(u,e.literal,r)),s.push(un.checkDefined(lJ(e.expression,n,V_)))}const d=e.getEmitHelperFactory().createTemplateObjectHelper(u.createArrayLiteralExpression(c),u.createArrayLiteralExpression(l));if(rO(r)){const e=u.createUniqueName("templateObject");i(e),s[0]=u.createLogicalOr(e,u.createAssignment(e,d))}else s[0]=d;return u.createCallExpression(a,void 0,s)}function Hz(e,t){return 26656&t.templateFlags?e.createVoidZero():e.createStringLiteral(t.text)}function Kz(e,t,n){let r=t.rawText;if(void 0===r){un.assertIsDefined(n,"Template literal node is missing 'rawText' and does not have a source file. Possibly bad transform."),r=Vd(n,t);const e=15===t.kind||18===t.kind;r=r.substring(1,r.length-(e?1:2))}return r=r.replace(/\r\n?/g,"\n"),xI(e.createStringLiteral(r),t)}var Gz=!1;function Xz(e){const{factory:t,getEmitHelperFactory:n,startLexicalEnvironment:r,resumeLexicalEnvironment:i,endLexicalEnvironment:o,hoistVariableDeclaration:a}=e,s=e.getEmitResolver(),c=e.getCompilerOptions(),l=yk(c),_=vk(c),u=!!c.experimentalDecorators,d=c.emitDecoratorMetadata?Zz(e):void 0,p=e.onEmitNode,f=e.onSubstituteNode;let m,g,h,y,v;e.onEmitNode=function(e,t,n){const r=b,i=m;sP(t)&&(m=t),2&x&&function(e){return 268===_c(e).kind}(t)&&(b|=2),8&x&&function(e){return 267===_c(e).kind}(t)&&(b|=8),p(e,t,n),b=r,m=i},e.onSubstituteNode=function(e,n){return n=f(e,n),1===e?function(e){switch(e.kind){case 80:return function(e){return Ce(e)||e}(e);case 212:case 213:return function(e){return function(e){const n=function(e){if(!kk(c))return dF(e)||pF(e)?s.getConstantValue(e):void 0}(e);if(void 0!==n){zw(e,n);const i="string"==typeof n?t.createStringLiteral(n):n<0?t.createPrefixUnaryExpression(41,t.createNumericLiteral(-n)):t.createNumericLiteral(n);if(!c.removeComments){Rw(i,3,` ${r=Xd(_c(e,Sx)),r.replace(/\*\//g,"*_/")} `)}return i}var r;return e}(e)}(e)}return e}(n):iP(n)?function(e){if(2&x){const n=e.name,r=Ce(n);if(r){if(e.objectAssignmentInitializer){const i=t.createAssignment(r,e.objectAssignmentInitializer);return xI(t.createPropertyAssignment(n,i),e)}return xI(t.createPropertyAssignment(n,r),e)}}return e}(n):n},e.enableSubstitution(212),e.enableSubstitution(213);let b,x=0;return function(e){return 309===e.kind?function(e){return t.createBundle(e.sourceFiles.map(k))}(e):k(e)};function k(t){if(t.isDeclarationFile)return t;m=t;const n=S(t,M);return Uw(n,e.readEmitHelpers()),m=void 0,n}function S(e,t){const n=y,r=v;!function(e){switch(e.kind){case 308:case 270:case 269:case 242:y=e,v=void 0;break;case 264:case 263:if(Nv(e,128))break;e.name?ae(e):un.assert(264===e.kind||Nv(e,2048))}}(e);const i=t(e);return y!==n&&(v=r),y=n,i}function T(e){return S(e,C)}function C(e){return 1&e.transformFlags?j(e):e}function w(e){return S(e,D)}function D(n){switch(n.kind){case 273:case 272:case 278:case 279:return function(n){if(function(e){const t=pc(e);if(t===e||AE(e))return!1;if(!t||t.kind!==e.kind)return!0;switch(e.kind){case 273:if(un.assertNode(t,xE),e.importClause!==t.importClause)return!0;if(e.attributes!==t.attributes)return!0;break;case 272:if(un.assertNode(t,bE),e.name!==t.name)return!0;if(e.isTypeOnly!==t.isTypeOnly)return!0;if(e.moduleReference!==t.moduleReference&&(e_(e.moduleReference)||e_(t.moduleReference)))return!0;break;case 279:if(un.assertNode(t,IE),e.exportClause!==t.exportClause)return!0;if(e.attributes!==t.attributes)return!0}return!1}(n))return 1&n.transformFlags?vJ(n,T,e):n;switch(n.kind){case 273:return function(e){if(!e.importClause)return e;if(e.importClause.isTypeOnly)return;const n=lJ(e.importClause,de,kE);return n?t.updateImportDeclaration(e,void 0,n,e.moduleSpecifier,e.attributes):void 0}(n);case 272:return ge(n);case 278:return function(t){return c.verbatimModuleSyntax||s.isValueAliasDeclaration(t)?vJ(t,T,e):void 0}(n);case 279:return function(e){if(e.isTypeOnly)return;if(!e.exportClause||FE(e.exportClause))return t.updateExportDeclaration(e,e.modifiers,e.isTypeOnly,e.exportClause,e.moduleSpecifier,e.attributes);const n=!!c.verbatimModuleSyntax,r=lJ(e.exportClause,e=>function(e,n){return FE(e)?function(e){return t.updateNamespaceExport(e,un.checkDefined(lJ(e.name,T,aD)))}(e):function(e,n){const r=_J(e.elements,me,LE);return n||$(r)?t.updateNamedExports(e,r):void 0}(e,n)}(e,n),wl);return r?t.updateExportDeclaration(e,void 0,e.isTypeOnly,r,e.moduleSpecifier,e.attributes):void 0}(n);default:un.fail("Unhandled ellided statement")}}(n);default:return C(n)}}function F(e){return S(e,P)}function P(e){if(279!==e.kind&&273!==e.kind&&274!==e.kind&&(272!==e.kind||284!==e.moduleReference.kind))return 1&e.transformFlags||Nv(e,32)?j(e):e}function A(n){return r=>S(r,r=>function(n,r){switch(n.kind){case 177:return function(n){if(X(n))return t.updateConstructorDeclaration(n,void 0,fJ(n.parameters,T,e),function(n,r){const a=r&&N(r.parameters,e=>Zs(e,r));if(!$(a))return gJ(n,T,e);let s=[];i();const c=t.copyPrologue(n.statements,s,!1,T),l=sz(n.statements,c),_=B(a,Y);l.length?Q(s,n.statements,c,l,0,_):(se(s,_),se(s,_J(n.statements,T,pu,c))),s=t.mergeLexicalEnvironment(s,o());const u=t.createBlock(xI(t.createNodeArray(s),n.statements),!0);return xI(u,n),hw(u,n),u}(n.body,n))}(n);case 173:return function(e,n){const r=33554432&e.flags||Nv(e,64);if(r&&(!u||!Lv(e)))return;let i=u_(n)?_J(e.modifiers,r?O:T,g_):_J(e.modifiers,I,g_);return i=q(i,e,n),r?t.updatePropertyDeclaration(e,K(i,t.createModifiersFromModifierFlags(128)),un.checkDefined(lJ(e.name,T,t_)),void 0,void 0,void 0):t.updatePropertyDeclaration(e,i,G(e),void 0,void 0,lJ(e.initializer,T,V_))}(n,r);case 178:return te(n,r);case 179:return ne(n,r);case 175:return Z(n,r);case 176:return vJ(n,T,e);case 241:return n;case 182:return;default:return un.failBadSyntaxKind(n)}}(r,n))}function I(e){return CD(e)?void 0:T(e)}function O(e){return Zl(e)?void 0:T(e)}function L(e){if(!CD(e)&&!(28895&Hv(e.kind)||g&&95===e.kind))return e}function j(n){if(pu(n)&&Nv(n,128))return t.createNotEmittedStatement(n);switch(n.kind){case 95:case 90:return g?void 0:n;case 125:case 123:case 124:case 128:case 164:case 87:case 138:case 148:case 103:case 147:case 189:case 190:case 191:case 192:case 188:case 183:case 169:case 133:case 159:case 136:case 154:case 150:case 146:case 116:case 155:case 186:case 185:case 187:case 184:case 193:case 194:case 195:case 197:case 198:case 199:case 200:case 201:case 202:case 182:case 271:return;case 266:case 265:return t.createNotEmittedStatement(n);case 264:return function(n){const r=function(e){let t=0;$(cz(e,!0,!0))&&(t|=1);const n=yh(e);return n&&106!==NA(n.expression).kind&&(t|=64),gm(u,e)&&(t|=2),mm(u,e)&&(t|=4),he(e)?t|=8:function(e){return ye(e)&&Nv(e,2048)}(e)?t|=32:ve(e)&&(t|=16),t}(n),i=l<=1&&!!(7&r);if(!function(e){return Lv(e)||$(e.typeParameters)||$(e.heritageClauses,R)||$(e.members,R)}(n)&&!gm(u,n)&&!he(n))return t.updateClassDeclaration(n,_J(n.modifiers,L,Zl),n.name,void 0,_J(n.heritageClauses,T,tP),_J(n.members,A(n),__));i&&e.startLexicalEnvironment();const o=i||8&r;let a=_J(n.modifiers,o?O:T,g_);2&r&&(a=z(a,n));const s=o&&!n.name||4&r||1&r?n.name??t.getGeneratedNameForNode(n):n.name,c=t.updateClassDeclaration(n,a,s,void 0,_J(n.heritageClauses,T,tP),J(n));let _,d=Zd(n);if(1&r&&(d|=64),xw(c,d),i){const r=[c],i=Mb(Qa(m.text,n.members.end),20),o=t.getInternalName(n),a=t.createPartiallyEmittedExpression(o);TT(a,i.end),xw(a,3072);const s=t.createReturnStatement(a);ST(s,i.pos),xw(s,3840),r.push(s),Od(r,e.endLexicalEnvironment());const l=t.createImmediatelyInvokedArrowFunction(r);Sw(l,1);const u=t.createVariableDeclaration(t.getLocalName(n,!1,!1),void 0,void 0,l);hw(u,n);const d=t.createVariableStatement(void 0,t.createVariableDeclarationList([u],1));hw(d,n),Aw(d,n),ww(d,Lb(n)),FA(d),_=d}else _=c;if(o){if(8&r)return[_,be(n)];if(32&r)return[_,t.createExportDefault(t.getLocalName(n,!1,!0))];if(16&r)return[_,t.createExternalModuleExport(t.getDeclarationName(n,!1,!0))]}return _}(n);case 232:return function(e){let n=_J(e.modifiers,O,g_);return gm(u,e)&&(n=z(n,e)),t.updateClassExpression(e,n,e.name,void 0,_J(e.heritageClauses,T,tP),J(e))}(n);case 299:return function(t){if(119!==t.token)return vJ(t,T,e)}(n);case 234:return function(e){return t.updateExpressionWithTypeArguments(e,un.checkDefined(lJ(e.expression,T,R_)),void 0)}(n);case 211:return function(e){return t.updateObjectLiteralExpression(e,_J(e.properties,(n=e,e=>S(e,e=>function(e,t){switch(e.kind){case 304:case 305:case 306:return T(e);case 178:return te(e,t);case 179:return ne(e,t);case 175:return Z(e,t);default:return un.failBadSyntaxKind(e)}}(e,n))),v_));var n}(n);case 177:case 173:case 175:case 178:case 179:case 176:return un.fail("Class and object literal elements must be visited with their respective visitors");case 263:return function(n){if(!X(n))return t.createNotEmittedStatement(n);const r=t.updateFunctionDeclaration(n,_J(n.modifiers,L,Zl),n.asteriskToken,n.name,void 0,fJ(n.parameters,T,e),void 0,gJ(n.body,T,e)||t.createBlock([]));if(he(n)){const e=[r];return function(e,t){e.push(be(t))}(e,n),e}return r}(n);case 219:return function(n){if(!X(n))return t.createOmittedExpression();return t.updateFunctionExpression(n,_J(n.modifiers,L,Zl),n.asteriskToken,n.name,void 0,fJ(n.parameters,T,e),void 0,gJ(n.body,T,e)||t.createBlock([]))}(n);case 220:return function(n){return t.updateArrowFunction(n,_J(n.modifiers,L,Zl),void 0,fJ(n.parameters,T,e),void 0,n.equalsGreaterThanToken,gJ(n.body,T,e))}(n);case 170:return function(e){if(cv(e))return;const n=t.updateParameterDeclaration(e,_J(e.modifiers,e=>CD(e)?T(e):void 0,g_),e.dotDotDotToken,un.checkDefined(lJ(e.name,T,n_)),void 0,void 0,lJ(e.initializer,T,V_));return n!==e&&(Aw(n,e),xI(n,jb(e)),ww(n,jb(e)),xw(n.name,64)),n}(n);case 218:return function(n){const r=NA(n.expression,-55);if(W_(r)||jF(r)){const e=lJ(n.expression,T,V_);return un.assert(e),t.createPartiallyEmittedExpression(e,n)}return vJ(n,T,e)}(n);case 217:case 235:return function(e){const n=lJ(e.expression,T,V_);return un.assert(n),t.createPartiallyEmittedExpression(n,e)}(n);case 239:return function(e){const n=lJ(e.expression,T,V_);return un.assert(n),t.createPartiallyEmittedExpression(n,e)}(n);case 214:return function(e){return t.updateCallExpression(e,un.checkDefined(lJ(e.expression,T,V_)),void 0,_J(e.arguments,T,V_))}(n);case 215:return function(e){return t.updateNewExpression(e,un.checkDefined(lJ(e.expression,T,V_)),void 0,_J(e.arguments,T,V_))}(n);case 216:return function(e){return t.updateTaggedTemplateExpression(e,un.checkDefined(lJ(e.tag,T,V_)),void 0,un.checkDefined(lJ(e.template,T,M_)))}(n);case 236:return function(e){const n=lJ(e.expression,T,R_);return un.assert(n),t.createPartiallyEmittedExpression(n,e)}(n);case 267:return function(e){if(!function(e){return!tf(e)||Fk(c)}(e))return t.createNotEmittedStatement(e);const n=[];let i=4;const a=le(n,e);a&&(4===_&&y===m||(i|=1024));const s=Se(e),l=Te(e),u=he(e)?t.getExternalModuleOrNamespaceExportName(h,e,!1,!0):t.getDeclarationName(e,!1,!0);let d=t.createLogicalOr(u,t.createAssignment(u,t.createObjectLiteralExpression()));if(he(e)){const n=t.getLocalName(e,!1,!0);d=t.createAssignment(n,d)}const p=t.createExpressionStatement(t.createCallExpression(t.createFunctionExpression(void 0,void 0,void 0,void 0,[t.createParameterDeclaration(void 0,void 0,s)],void 0,function(e,n){const i=h;h=n;const a=[];r();const s=E(e.members,oe);return Od(a,o()),se(a,s),h=i,t.createBlock(xI(t.createNodeArray(a),e.members),!0)}(e,l)),void 0,[d]));return hw(p,e),a&&(Ow(p,void 0),Mw(p,void 0)),xI(p,e),kw(p,i),n.push(p),n}(n);case 244:return function(n){if(he(n)){const e=Zb(n.declarationList);if(0===e.length)return;return xI(t.createExpressionStatement(t.inlineExpressions(E(e,re))),n)}return vJ(n,T,e)}(n);case 261:return function(e){const n=t.updateVariableDeclaration(e,un.checkDefined(lJ(e.name,T,n_)),void 0,void 0,lJ(e.initializer,T,V_));return e.type&&Xw(n.name,e.type),n}(n);case 268:return _e(n);case 272:return ge(n);case 286:return function(e){return t.updateJsxSelfClosingElement(e,un.checkDefined(lJ(e.tagName,T,gu)),void 0,un.checkDefined(lJ(e.attributes,T,GE)))}(n);case 287:return function(e){return t.updateJsxOpeningElement(e,un.checkDefined(lJ(e.tagName,T,gu)),void 0,un.checkDefined(lJ(e.attributes,T,GE)))}(n);default:return vJ(n,T,e)}}function M(n){const r=Jk(c,"alwaysStrict")&&!(rO(n)&&_>=5)&&!ef(n);return t.updateSourceFile(n,pJ(n.statements,w,e,0,r))}function R(e){return!!(8192&e.transformFlags)}function J(e){const n=_J(e.members,A(e),__);let r;const i=iv(e),o=i&&N(i.parameters,e=>Zs(e,i));if(o)for(const e of o){const n=t.createPropertyDeclaration(void 0,e.name,void 0,void 0,void 0);hw(n,e),r=ie(r,n)}return r?(r=se(r,n),xI(t.createNodeArray(r),e.members)):n}function z(e,n){const r=U(n,n);if($(r)){const n=[];se(n,cn(e,lI)),se(n,N(e,CD)),se(n,r),se(n,N(ln(e,lI),Zl)),e=xI(t.createNodeArray(n),e)}return e}function q(e,n,r){if(u_(r)&&hm(u,n,r)){const i=U(n,r);if($(i)){const n=[];se(n,N(e,CD)),se(n,i),se(n,N(e,Zl)),e=xI(t.createNodeArray(n),e)}}return e}function U(e,r){if(u)return Gz?function(e,r){if(d){let i;if(V(e)&&(i=ie(i,t.createPropertyAssignment("type",t.createArrowFunction(void 0,void 0,[],void 0,t.createToken(39),d.serializeTypeOfNode({currentLexicalScope:y,currentNameScope:r},e,r))))),H(e)&&(i=ie(i,t.createPropertyAssignment("paramTypes",t.createArrowFunction(void 0,void 0,[],void 0,t.createToken(39),d.serializeParameterTypesOfNode({currentLexicalScope:y,currentNameScope:r},e,r))))),W(e)&&(i=ie(i,t.createPropertyAssignment("returnType",t.createArrowFunction(void 0,void 0,[],void 0,t.createToken(39),d.serializeReturnTypeOfNode({currentLexicalScope:y,currentNameScope:r},e))))),i){const e=n().createMetadataHelper("design:typeinfo",t.createObjectLiteralExpression(i,!0));return[t.createDecorator(e)]}}}(e,r):function(e,r){if(d){let i;if(V(e)){const o=n().createMetadataHelper("design:type",d.serializeTypeOfNode({currentLexicalScope:y,currentNameScope:r},e,r));i=ie(i,t.createDecorator(o))}if(H(e)){const o=n().createMetadataHelper("design:paramtypes",d.serializeParameterTypesOfNode({currentLexicalScope:y,currentNameScope:r},e,r));i=ie(i,t.createDecorator(o))}if(W(e)){const o=n().createMetadataHelper("design:returntype",d.serializeReturnTypeOfNode({currentLexicalScope:y,currentNameScope:r},e));i=ie(i,t.createDecorator(o))}return i}}(e,r)}function V(e){const t=e.kind;return 175===t||178===t||179===t||173===t}function W(e){return 175===e.kind}function H(e){switch(e.kind){case 264:case 232:return void 0!==iv(e);case 175:case 178:case 179:return!0}return!1}function G(e){const n=e.name;if(u&&kD(n)&&Lv(e)){const e=lJ(n.expression,T,V_);if(un.assert(e),!nz(Sl(e))){const r=t.getGeneratedNameForNode(n);return a(r),t.updateComputedPropertyName(n,t.createAssignment(r,e))}}return un.checkDefined(lJ(n,T,t_))}function X(e){return!Nd(e.body)}function Q(e,n,r,i,o,a){const s=i[o],c=n[s];if(se(e,_J(n,T,pu,r,s-r)),sE(c)){const n=[];Q(n,c.tryBlock.statements,0,i,o+1,a),xI(t.createNodeArray(n),c.tryBlock.statements),e.push(t.updateTryStatement(c,t.updateBlock(c.tryBlock,n),lJ(c.catchClause,T,nP),lJ(c.finallyBlock,T,VF)))}else se(e,_J(n,T,pu,s,1)),se(e,a);se(e,_J(n,T,pu,s+1))}function Y(e){const n=e.name;if(!aD(n))return;const r=DT(xI(t.cloneNode(n),n),n.parent);xw(r,3168);const i=DT(xI(t.cloneNode(n),n),n.parent);return xw(i,3072),FA(bw(xI(hw(t.createExpressionStatement(t.createAssignment(xI(t.createPropertyAccessExpression(t.createThis(),r),e.name),i)),e),Ob(e,-1))))}function Z(n,r){if(!(1&n.transformFlags))return n;if(!X(n))return;let i=u_(r)?_J(n.modifiers,T,g_):_J(n.modifiers,I,g_);return i=q(i,n,r),t.updateMethodDeclaration(n,i,n.asteriskToken,G(n),void 0,void 0,fJ(n.parameters,T,e),void 0,gJ(n.body,T,e))}function ee(e){return!(Nd(e.body)&&Nv(e,64))}function te(n,r){if(!(1&n.transformFlags))return n;if(!ee(n))return;let i=u_(r)?_J(n.modifiers,T,g_):_J(n.modifiers,I,g_);return i=q(i,n,r),t.updateGetAccessorDeclaration(n,i,G(n),fJ(n.parameters,T,e),void 0,gJ(n.body,T,e)||t.createBlock([]))}function ne(n,r){if(!(1&n.transformFlags))return n;if(!ee(n))return;let i=u_(r)?_J(n.modifiers,T,g_):_J(n.modifiers,I,g_);return i=q(i,n,r),t.updateSetAccessorDeclaration(n,i,G(n),fJ(n.parameters,T,e),gJ(n.body,T,e)||t.createBlock([]))}function re(n){const r=n.name;return k_(r)?Cz(n,T,e,0,!1,xe):xI(t.createAssignment(ke(r),un.checkDefined(lJ(n.initializer,T,V_))),n)}function oe(n){const r=function(e){const n=e.name;return sD(n)?t.createIdentifier(""):kD(n)?n.expression:aD(n)?t.createStringLiteral(gc(n)):t.cloneNode(n)}(n),i=s.getEnumMemberValue(n),o=function(n,r){return void 0!==r?"string"==typeof r?t.createStringLiteral(r):r<0?t.createPrefixUnaryExpression(41,t.createNumericLiteral(-r)):t.createNumericLiteral(r):(8&x||(x|=8,e.enableSubstitution(80)),n.initializer?un.checkDefined(lJ(n.initializer,T,V_)):t.createVoidZero())}(n,null==i?void 0:i.value),a=t.createAssignment(t.createElementAccessExpression(h,r),o),c="string"==typeof(null==i?void 0:i.value)||(null==i?void 0:i.isSyntacticallyString)?a:t.createAssignment(t.createElementAccessExpression(h,a),r);return xI(t.createExpressionStatement(xI(c,n)),n)}function ae(e){v||(v=new Map);const t=ce(e);v.has(t)||v.set(t,e)}function ce(e){return un.assertNode(e.name,aD),e.name.escapedText}function le(e,n){const r=t.createVariableDeclaration(t.getLocalName(n,!1,!0)),i=308===y.kind?0:1,o=t.createVariableStatement(_J(n.modifiers,L,Zl),t.createVariableDeclarationList([r],i));return hw(r,n),Ow(r,void 0),Mw(r,void 0),hw(o,n),ae(n),!!function(e){if(v){const t=ce(e);return v.get(t)===e}return!0}(n)&&(267===n.kind?ww(o.declarationList,n):ww(o,n),Aw(o,n),kw(o,2048),e.push(o),!0)}function _e(n){if(!function(e){const t=pc(e,gE);return!t||tJ(t,Fk(c))}(n))return t.createNotEmittedStatement(n);un.assertNode(n.name,aD,"A TypeScript namespace should have an Identifier name."),2&x||(x|=2,e.enableSubstitution(80),e.enableSubstitution(305),e.enableEmitNotification(268));const i=[];let a=4;const s=le(i,n);s&&(4===_&&y===m||(a|=1024));const l=Se(n),u=Te(n),d=he(n)?t.getExternalModuleOrNamespaceExportName(h,n,!1,!0):t.getDeclarationName(n,!1,!0);let p=t.createLogicalOr(d,t.createAssignment(d,t.createObjectLiteralExpression()));if(he(n)){const e=t.getLocalName(n,!1,!0);p=t.createAssignment(e,p)}const f=t.createExpressionStatement(t.createCallExpression(t.createFunctionExpression(void 0,void 0,void 0,void 0,[t.createParameterDeclaration(void 0,void 0,l)],void 0,function(e,n){const i=h,a=g,s=v;h=n,g=e,v=void 0;const c=[];let l,_;if(r(),e.body)if(269===e.body.kind)S(e.body,e=>se(c,_J(e.statements,F,pu))),l=e.body.statements,_=e.body;else{const t=_e(e.body);t&&(Qe(t)?se(c,t):c.push(t)),l=Ob(ue(e).body.statements,-1)}Od(c,o()),h=i,g=a,v=s;const u=t.createBlock(xI(t.createNodeArray(c),l),!0);return xI(u,_),e.body&&269===e.body.kind||xw(u,3072|Zd(u)),u}(n,u)),void 0,[p]));return hw(f,n),s&&(Ow(f,void 0),Mw(f,void 0)),xI(f,n),kw(f,a),i.push(f),i}function ue(e){if(268===e.body.kind)return ue(e.body)||e.body}function de(e){un.assert(156!==e.phaseModifier);const n=we(e)?e.name:void 0,r=lJ(e.namedBindings,pe,iu);return n||r?t.updateImportClause(e,e.phaseModifier,n,r):void 0}function pe(e){if(275===e.kind)return we(e)?e:void 0;{const n=c.verbatimModuleSyntax,r=_J(e.elements,fe,PE);return n||$(r)?t.updateNamedImports(e,r):void 0}}function fe(e){return!e.isTypeOnly&&we(e)?e:void 0}function me(e){return e.isTypeOnly||!c.verbatimModuleSyntax&&!s.isValueAliasDeclaration(e)?void 0:e}function ge(n){if(n.isTypeOnly)return;if(Tm(n)){if(!we(n))return;return vJ(n,T,e)}if(!function(e){return we(e)||!rO(m)&&s.isTopLevelValueImportEqualsWithEntityName(e)}(n))return;const r=dA(t,n.moduleReference);return xw(r,7168),ve(n)||!he(n)?hw(xI(t.createVariableStatement(_J(n.modifiers,L,Zl),t.createVariableDeclarationList([hw(t.createVariableDeclaration(n.name,void 0,void 0,r),n)])),n),n):hw((i=n.name,o=r,a=n,xI(t.createExpressionStatement(t.createAssignment(t.getNamespaceMemberName(h,i,!1,!0),o)),a)),n);var i,o,a}function he(e){return void 0!==g&&Nv(e,32)}function ye(e){return void 0===g&&Nv(e,32)}function ve(e){return ye(e)&&!Nv(e,2048)}function be(e){const n=t.createAssignment(t.getExternalModuleOrNamespaceExportName(h,e,!1,!0),t.getLocalName(e));ww(n,Ab(e.name?e.name.pos:e.pos,e.end));const r=t.createExpressionStatement(n);return ww(r,Ab(-1,e.end)),r}function xe(e,n,r){return xI(t.createAssignment(ke(e),n),r)}function ke(e){return t.getNamespaceMemberName(h,e,!1,!0)}function Se(e){const n=t.getGeneratedNameForNode(e);return ww(n,e.name),n}function Te(e){return t.getGeneratedNameForNode(e)}function Ce(e){if(x&b&&!Wl(e)&&!hA(e)){const n=s.getReferencedExportContainer(e,!1);if(n&&308!==n.kind&&(2&b&&268===n.kind||8&b&&267===n.kind))return xI(t.createPropertyAccessExpression(t.getGeneratedNameForNode(n),e),e)}}function we(e){return c.verbatimModuleSyntax||Em(e)||s.isReferencedAliasDeclaration(e)}}function Qz(e){const{factory:t,getEmitHelperFactory:n,hoistVariableDeclaration:r,endLexicalEnvironment:i,startLexicalEnvironment:o,resumeLexicalEnvironment:a,addBlockScopedVariable:s}=e,c=e.getEmitResolver(),l=e.getCompilerOptions(),_=yk(l),u=Ik(l),d=!!l.experimentalDecorators,p=!u,f=u&&_<9,m=p||f,g=_<9,h=_<99?-1:u?0:3,y=_<9,v=y&&_>=2,x=m||g||-1===h,k=e.onSubstituteNode;e.onSubstituteNode=function(e,n){return n=k(e,n),1===e?function(e){switch(e.kind){case 80:return function(e){return function(e){if(1&P&&c.hasNodeCheckFlag(e,536870912)){const n=c.getReferencedValueDeclaration(e);if(n){const r=T[n.id];if(r){const n=t.cloneNode(r);return ww(n,e),Aw(n,e),n}}}}(e)||e}(e);case 110:return function(e){if(2&P&&(null==D?void 0:D.data)&&!I.has(e)){const{facts:n,classConstructor:r,classThis:i}=D.data,o=j?i??r:r;if(o)return xI(hw(t.cloneNode(o),e),e);if(1&n&&d)return t.createParenthesizedExpression(t.createVoidZero())}return e}(e)}return e}(n):n};const S=e.onEmitNode;e.onEmitNode=function(e,t,n){const r=_c(t),i=A.get(r);if(i){const o=D,a=M;return D=i,M=j,j=!(ED(r)&&32&ep(r)),S(e,t,n),j=M,M=a,void(D=o)}switch(t.kind){case 219:if(bF(r)||524288&Zd(t))break;case 263:case 177:case 178:case 179:case 175:case 173:{const r=D,i=M;return D=void 0,M=j,j=!1,S(e,t,n),j=M,M=i,void(D=r)}case 168:{const r=D,i=j;return D=null==D?void 0:D.previous,j=M,S(e,t,n),j=i,void(D=r)}}S(e,t,n)};let T,C,w,D,F=!1,P=0;const A=new Map,I=new Set;let O,L,j=!1,M=!1;return $J(e,function(t){if(t.isDeclarationFile)return t;if(D=void 0,F=!!(32&ep(t)),!x&&!F)return t;const n=vJ(t,B,e);return Uw(n,e.readEmitHelpers()),n});function R(e){return 129===e.kind?ee()?void 0:e:tt(e,Zl)}function B(n){if(!(16777216&n.transformFlags||134234112&n.transformFlags))return n;switch(n.kind){case 264:return function(e){return ge(e,he)}(n);case 232:return function(e){return ge(e,ye)}(n);case 176:case 173:return un.fail("Use `classElementVisitor` instead.");case 304:case 261:case 170:case 209:return function(t){return Gh(t,ue)&&(t=Vz(e,t)),vJ(t,B,e)}(n);case 244:return function(t){const n=w;w=[];const r=vJ(t,B,e),i=$(w)?[r,...w]:r;return w=n,i}(n);case 278:return function(t){return Gh(t,ue)&&(t=Vz(e,t,!0,t.isExportEquals?"":"default")),vJ(t,B,e)}(n);case 81:return function(e){return g?pu(e.parent)?e:hw(t.createIdentifier(""),e):e}(n);case 212:return function(n){if(sD(n.name)){const e=je(n.name);if(e)return xI(hw(oe(e,n.expression),n),n)}if(v&&L&&am(n)&&aD(n.name)&&Yz(L)&&(null==D?void 0:D.data)){const{classConstructor:e,superClassReference:r,facts:i}=D.data;if(1&i)return Ne(n);if(e&&r){const i=t.createReflectGetCall(r,t.createStringLiteralFromNode(n.name),e);return hw(i,n.expression),xI(i,n.expression),i}}return vJ(n,B,e)}(n);case 213:return function(n){if(v&&L&&am(n)&&Yz(L)&&(null==D?void 0:D.data)){const{classConstructor:e,superClassReference:r,facts:i}=D.data;if(1&i)return Ne(n);if(e&&r){const i=t.createReflectGetCall(r,lJ(n.argumentExpression,B,V_),e);return hw(i,n.expression),xI(i,n.expression),i}}return vJ(n,B,e)}(n);case 225:case 226:return ce(n,!1);case 227:return de(n,!1);case 218:return pe(n,!1);case 214:return function(n){var i;if(Gl(n.expression)&&je(n.expression.name)){const{thisArg:e,target:i}=t.createCallBinding(n.expression,r,_);return gl(n)?t.updateCallChain(n,t.createPropertyAccessChain(lJ(i,B,V_),n.questionDotToken,"call"),void 0,void 0,[lJ(e,B,V_),..._J(n.arguments,B,V_)]):t.updateCallExpression(n,t.createPropertyAccessExpression(lJ(i,B,V_),"call"),void 0,[lJ(e,B,V_),..._J(n.arguments,B,V_)])}if(v&&L&&am(n.expression)&&Yz(L)&&(null==(i=null==D?void 0:D.data)?void 0:i.classConstructor)){const e=t.createFunctionCallCall(lJ(n.expression,B,V_),D.data.classConstructor,_J(n.arguments,B,V_));return hw(e,n),xI(e,n),e}return vJ(n,B,e)}(n);case 245:return function(e){return t.updateExpressionStatement(e,lJ(e.expression,z,V_))}(n);case 216:return function(n){var i;if(Gl(n.tag)&&je(n.tag.name)){const{thisArg:e,target:i}=t.createCallBinding(n.tag,r,_);return t.updateTaggedTemplateExpression(n,t.createCallExpression(t.createPropertyAccessExpression(lJ(i,B,V_),"bind"),void 0,[lJ(e,B,V_)]),void 0,lJ(n.template,B,M_))}if(v&&L&&am(n.tag)&&Yz(L)&&(null==(i=null==D?void 0:D.data)?void 0:i.classConstructor)){const e=t.createFunctionBindCall(lJ(n.tag,B,V_),D.data.classConstructor,[]);return hw(e,n),xI(e,n),t.updateTaggedTemplateExpression(n,e,void 0,lJ(n.template,B,M_))}return vJ(n,B,e)}(n);case 249:return function(n){return t.updateForStatement(n,lJ(n.initializer,z,eu),lJ(n.condition,B,V_),lJ(n.incrementor,z,V_),hJ(n.statement,B,e))}(n);case 110:return function(e){if(y&&L&&ED(L)&&(null==D?void 0:D.data)){const{classThis:t,classConstructor:n}=D.data;return t??n??e}return e}(n);case 263:case 219:return Y(void 0,J,n);case 177:case 175:case 178:case 179:return Y(n,J,n);default:return J(n)}}function J(t){return vJ(t,B,e)}function z(e){switch(e.kind){case 225:case 226:return ce(e,!0);case 227:return de(e,!0);case 357:return function(e){const n=yJ(e.elements,z);return t.updateCommaListExpression(e,n)}(e);case 218:return pe(e,!0);default:return B(e)}}function q(n){switch(n.kind){case 299:return vJ(n,q,e);case 234:return function(n){var i;if(4&((null==(i=null==D?void 0:D.data)?void 0:i.facts)||0)){const e=t.createTempVariable(r,!0);return De().superClassReference=e,t.updateExpressionWithTypeArguments(n,t.createAssignment(e,lJ(n.expression,B,V_)),void 0)}return vJ(n,B,e)}(n);default:return B(n)}}function U(e){switch(e.kind){case 211:case 210:return ze(e);default:return B(e)}}function V(e){switch(e.kind){case 177:return Y(e,G,e);case 178:case 179:case 175:return Y(e,Q,e);case 173:return Y(e,te,e);case 176:return Y(e,ve,e);case 168:return K(e);case 241:return e;default:return g_(e)?R(e):B(e)}}function W(e){return 168===e.kind?K(e):B(e)}function H(e){switch(e.kind){case 173:return Z(e);case 178:case 179:return V(e);default:un.assertMissingNode(e,"Expected node to either be a PropertyDeclaration, GetAccessorDeclaration, or SetAccessorDeclaration")}}function K(e){const n=lJ(e.expression,B,V_);return t.updateComputedPropertyName(e,function(e){return $(C)&&(yF(e)?(C.push(e.expression),e=t.updateParenthesizedExpression(e,t.inlineExpressions(C))):(C.push(e),e=t.inlineExpressions(C)),C=void 0),e}(n))}function G(e){return O?xe(e,O):J(e)}function X(e){return!!g||!!(Fv(e)&&32&ep(e))}function Q(n){if(un.assert(!Lv(n)),!Kl(n)||!X(n))return vJ(n,V,e);const r=je(n.name);if(un.assert(r,"Undeclared private name for property declaration."),!r.isValid)return n;const i=function(e){un.assert(sD(e.name));const t=je(e.name);if(un.assert(t,"Undeclared private name for property declaration."),"m"===t.kind)return t.methodName;if("a"===t.kind){if(Nu(e))return t.getterName;if(wu(e))return t.setterName}}(n);i&&Ee().push(t.createAssignment(i,t.createFunctionExpression(N(n.modifiers,e=>Zl(e)&&!fD(e)&&!hD(e)),n.asteriskToken,i,void 0,fJ(n.parameters,B,e),void 0,gJ(n.body,B,e))))}function Y(e,t,n){if(e!==L){const r=L;L=e;const i=t(n);return L=r,i}return t(n)}function Z(n){return un.assert(!Lv(n),"Decorators should already have been transformed and elided."),Kl(n)?function(n){if(X(n)){const e=je(n.name);if(un.assert(e,"Undeclared private name for property declaration."),!e.isValid)return n;if(e.isStatic&&!g){const e=Te(n,t.createThis());if(e)return t.createClassStaticBlockDeclaration(t.createBlock([e],!0))}return}return p&&!Dv(n)&&(null==D?void 0:D.data)&&16&D.data.facts?t.updatePropertyDeclaration(n,_J(n.modifiers,B,g_),n.name,void 0,void 0,void 0):(Gh(n,ue)&&(n=Vz(e,n)),t.updatePropertyDeclaration(n,_J(n.modifiers,R,Zl),lJ(n.name,W,t_),void 0,void 0,lJ(n.initializer,B,V_)))}(n):function(e){if(m&&!p_(e)){const n=function(e,n){if(kD(e)){const i=hI(e),o=lJ(e.expression,B,V_),a=Sl(o),l=nz(a);if(!(i||rb(a)&&Wl(a.left))&&!l&&n){const n=t.getGeneratedNameForNode(e);return c.hasNodeCheckFlag(e,32768)?s(n):r(n),t.createAssignment(n,o)}return l||aD(a)?void 0:o}}(e.name,!!e.initializer||u);if(n&&Ee().push(...vI(n)),Dv(e)&&!g){const n=Te(e,t.createThis());if(n){const r=t.createClassStaticBlockDeclaration(t.createBlock([n]));return hw(r,e),Aw(r,e),Aw(n,{pos:-1,end:-1}),Ow(n,void 0),Mw(n,void 0),r}}return}return t.updatePropertyDeclaration(e,_J(e.modifiers,R,Zl),lJ(e.name,W,t_),void 0,void 0,lJ(e.initializer,B,V_))}(n)}function ee(){return-1===h||3===h&&!!(null==D?void 0:D.data)&&!!(16&D.data.facts)}function te(e){return p_(e)&&(ee()||Fv(e)&&32&ep(e))?function(e){const n=Pw(e),i=Cw(e),o=e.name;let a=o,s=o;if(kD(o)&&!nz(o.expression)){const e=hI(o);if(e)a=t.updateComputedPropertyName(o,lJ(o.expression,B,V_)),s=t.updateComputedPropertyName(o,e.left);else{const e=t.createTempVariable(r);ww(e,o.expression);const n=lJ(o.expression,B,V_),i=t.createAssignment(e,n);ww(i,o.expression),a=t.updateComputedPropertyName(o,i),s=t.updateComputedPropertyName(o,e)}}const c=_J(e.modifiers,R,Zl),l=fI(t,e,c,e.initializer);hw(l,e),xw(l,3072),ww(l,i);const _=Dv(e)?function(){const e=De();return e.classThis??e.classConstructor??(null==O?void 0:O.name)}()??t.createThis():t.createThis(),u=mI(t,e,c,a,_);hw(u,e),Aw(u,n),ww(u,i);const d=t.createModifiersFromModifierFlags($v(c)),p=gI(t,e,d,s,_);return hw(p,e),xw(p,3072),ww(p,i),uJ([l,u,p],H,__)}(e):Z(e)}function re(e){if(L&&Fv(L)&&d_(L)&&p_(_c(L))){const t=NA(e);110===t.kind&&I.add(t)}}function oe(e,t){return re(t=lJ(t,B,V_)),ae(e,t)}function ae(e,t){switch(Aw(t,Ob(t,-1)),e.kind){case"a":return n().createClassPrivateFieldGetHelper(t,e.brandCheckIdentifier,e.kind,e.getterName);case"m":return n().createClassPrivateFieldGetHelper(t,e.brandCheckIdentifier,e.kind,e.methodName);case"f":return n().createClassPrivateFieldGetHelper(t,e.brandCheckIdentifier,e.kind,e.isStatic?e.variableName:void 0);case"untransformed":return un.fail("Access helpers should not be created for untransformed private elements");default:un.assertNever(e,"Unknown private element type")}}function ce(n,i){if(46===n.operator||47===n.operator){const e=ah(n.operand);if(Gl(e)){let o;if(o=je(e.name)){const a=lJ(e.expression,B,V_);re(a);const{readExpression:s,initializeExpression:c}=le(a);let l=oe(o,s);const _=CF(n)||i?void 0:t.createTempVariable(r);return l=mA(t,n,l,r,_),l=fe(o,c||s,l,64),hw(l,n),xI(l,n),_&&(l=t.createComma(l,_),xI(l,n)),l}}else if(v&&L&&am(e)&&Yz(L)&&(null==D?void 0:D.data)){const{classConstructor:o,superClassReference:a,facts:s}=D.data;if(1&s){const r=Ne(e);return CF(n)?t.updatePrefixUnaryExpression(n,r):t.updatePostfixUnaryExpression(n,r)}if(o&&a){let s,c;if(dF(e)?aD(e.name)&&(c=s=t.createStringLiteralFromNode(e.name)):nz(e.argumentExpression)?c=s=e.argumentExpression:(c=t.createTempVariable(r),s=t.createAssignment(c,lJ(e.argumentExpression,B,V_))),s&&c){let l=t.createReflectGetCall(a,c,o);xI(l,e);const _=i?void 0:t.createTempVariable(r);return l=mA(t,n,l,r,_),l=t.createReflectSetCall(a,s,l,o),hw(l,n),xI(l,n),_&&(l=t.createComma(l,_),xI(l,n)),l}}}}return vJ(n,B,e)}function le(e){const n=ey(e)?e:t.cloneNode(e);if(110===e.kind&&I.has(e)&&I.add(n),nz(e))return{readExpression:n,initializeExpression:void 0};const i=t.createTempVariable(r);return{readExpression:i,initializeExpression:t.createAssignment(i,n)}}function _e(e){if(D&&A.set(_c(e),D),g){if(Oz(e)){const t=lJ(e.body.statements[0].expression,B,V_);if(rb(t,!0)&&t.left===t.right)return;return t}if(Bz(e))return lJ(e.body.statements[0].expression,B,V_);o();let n=Y(e,e=>_J(e,B,pu),e.body.statements);n=t.mergeLexicalEnvironment(n,i());const r=t.createImmediatelyInvokedArrowFunction(n);return hw(ah(r.expression),e),kw(ah(r.expression),4),hw(r,e),xI(r,e),r}}function ue(e){if(AF(e)&&!e.name){const t=_z(e);return!$(t,Bz)&&((g||!!ep(e))&&$(t,e=>ED(e)||Kl(e)||m&&uz(e)))}return!1}function de(i,o){if(ib(i)){const e=C;C=void 0,i=t.updateBinaryExpression(i,lJ(i.left,U,V_),i.operatorToken,lJ(i.right,B,V_));const n=$(C)?t.inlineExpressions(ne([...C,i])):i;return C=e,n}if(rb(i)){Gh(i,ue)&&(i=Vz(e,i),un.assertNode(i,rb));const n=NA(i.left,9);if(Gl(n)){const e=je(n.name);if(e)return xI(hw(fe(e,n.expression,i.right,i.operatorToken.kind),i),i)}else if(v&&L&&am(i.left)&&Yz(L)&&(null==D?void 0:D.data)){const{classConstructor:e,superClassReference:n,facts:a}=D.data;if(1&a)return t.updateBinaryExpression(i,Ne(i.left),i.operatorToken,lJ(i.right,B,V_));if(e&&n){let a=pF(i.left)?lJ(i.left.argumentExpression,B,V_):aD(i.left.name)?t.createStringLiteralFromNode(i.left.name):void 0;if(a){let s=lJ(i.right,B,V_);if(rz(i.operatorToken.kind)){let o=a;nz(a)||(o=t.createTempVariable(r),a=t.createAssignment(o,a));const c=t.createReflectGetCall(n,o,e);hw(c,i.left),xI(c,i.left),s=t.createBinaryExpression(c,iz(i.operatorToken.kind),s),xI(s,i)}const c=o?void 0:t.createTempVariable(r);return c&&(s=t.createAssignment(c,s),xI(c,i)),s=t.createReflectSetCall(n,a,s,e),hw(s,i),xI(s,i),c&&(s=t.createComma(s,c),xI(s,i)),s}}}}return function(e){return sD(e.left)&&103===e.operatorToken.kind}(i)?function(t){const r=je(t.left);if(r){const e=lJ(t.right,B,V_);return hw(n().createClassPrivateFieldInHelper(r.brandCheckIdentifier,e),t)}return vJ(t,B,e)}(i):vJ(i,B,e)}function pe(e,n){const r=n?z:B,i=lJ(e.expression,r,V_);return t.updateParenthesizedExpression(e,i)}function fe(e,r,i,o){if(r=lJ(r,B,V_),i=lJ(i,B,V_),re(r),rz(o)){const{readExpression:n,initializeExpression:a}=le(r);r=a||n,i=t.createBinaryExpression(ae(e,n),iz(o),i)}switch(Aw(r,Ob(r,-1)),e.kind){case"a":return n().createClassPrivateFieldSetHelper(r,e.brandCheckIdentifier,i,e.kind,e.setterName);case"m":return n().createClassPrivateFieldSetHelper(r,e.brandCheckIdentifier,i,e.kind,void 0);case"f":return n().createClassPrivateFieldSetHelper(r,e.brandCheckIdentifier,i,e.kind,e.isStatic?e.variableName:void 0);case"untransformed":return un.fail("Access helpers should not be created for untransformed private elements");default:un.assertNever(e,"Unknown private element type")}}function me(e){return N(e.members,dz)}function ge(n,r){var i;const o=O,a=C,s=D;O=n,C=void 0,D={previous:D,data:void 0};const l=32&ep(n);if(g||l){const e=Cc(n);if(e&&aD(e))Fe().data.className=e;else if((null==(i=n.emitNode)?void 0:i.assignedName)&&UN(n.emitNode.assignedName))if(n.emitNode.assignedName.textSourceNode&&aD(n.emitNode.assignedName.textSourceNode))Fe().data.className=n.emitNode.assignedName.textSourceNode;else if(ms(n.emitNode.assignedName.text,_)){const e=t.createIdentifier(n.emitNode.assignedName.text);Fe().data.className=e}}if(g){const e=me(n);$(e)&&(Fe().data.weakSetName=Oe("instances",e[0].name))}const u=function(e){var t;let n=0;const r=_c(e);u_(r)&&gm(d,r)&&(n|=1),g&&(Lz(e)||Jz(e))&&(n|=2);let i=!1,o=!1,a=!1,s=!1;for(const r of e.members)Dv(r)?(r.name&&(sD(r.name)||p_(r))&&g?n|=2:!p_(r)||-1!==h||e.name||(null==(t=e.emitNode)?void 0:t.classThis)||(n|=2),(ND(r)||ED(r))&&(y&&16384&r.transformFlags&&(n|=8,1&n||(n|=2)),v&&134217728&r.transformFlags&&(1&n||(n|=6)))):Pv(_c(r))||(p_(r)?(s=!0,a||(a=Kl(r))):Kl(r)?(a=!0,c.hasNodeCheckFlag(r,262144)&&(n|=2)):ND(r)&&(i=!0,o||(o=!!r.initializer)));return(f&&i||p&&o||g&&a||g&&s&&-1===h)&&(n|=16),n}(n);u&&(De().facts=u),8&u&&(2&P||(P|=2,e.enableSubstitution(110),e.enableEmitNotification(263),e.enableEmitNotification(219),e.enableEmitNotification(177),e.enableEmitNotification(178),e.enableEmitNotification(179),e.enableEmitNotification(175),e.enableEmitNotification(173),e.enableEmitNotification(168)));const m=r(n,u);return D=null==D?void 0:D.previous,un.assert(D===s),O=o,C=a,m}function he(e,n){var i,o;let a;if(2&n)if(g&&(null==(i=e.emitNode)?void 0:i.classThis))De().classConstructor=e.emitNode.classThis,a=t.createAssignment(e.emitNode.classThis,t.getInternalName(e));else{const n=t.createTempVariable(r,!0);De().classConstructor=t.cloneNode(n),a=t.createAssignment(n,t.getInternalName(e))}(null==(o=e.emitNode)?void 0:o.classThis)&&(De().classThis=e.emitNode.classThis);const s=c.hasNodeCheckFlag(e,262144),l=Nv(e,32),_=Nv(e,2048);let u=_J(e.modifiers,R,Zl);const d=_J(e.heritageClauses,q,tP),{members:f,prologue:m}=be(e),h=[];if(a&&Ee().unshift(a),$(C)&&h.push(t.createExpressionStatement(t.inlineExpressions(C))),p||g||32&ep(e)){const n=_z(e);$(n)&&Se(h,n,t.getInternalName(e))}h.length>0&&l&&_&&(u=_J(u,e=>lI(e)?void 0:e,Zl),h.push(t.createExportAssignment(void 0,!1,t.getLocalName(e,!1,!0))));const y=De().classConstructor;s&&y&&(we(),T[UJ(e)]=y);const v=t.updateClassDeclaration(e,u,e.name,void 0,d,f);return h.unshift(v),m&&h.unshift(t.createExpressionStatement(m)),h}function ye(e,n){var i,o,a;const l=!!(1&n),_=_z(e),u=c.hasNodeCheckFlag(e,262144),d=c.hasNodeCheckFlag(e,32768);let p;function f(){var n;if(g&&(null==(n=e.emitNode)?void 0:n.classThis))return De().classConstructor=e.emitNode.classThis;const i=t.createTempVariable(d?s:r,!0);return De().classConstructor=t.cloneNode(i),i}(null==(i=e.emitNode)?void 0:i.classThis)&&(De().classThis=e.emitNode.classThis),2&n&&(p??(p=f()));const h=_J(e.modifiers,R,Zl),y=_J(e.heritageClauses,q,tP),{members:v,prologue:b}=be(e),x=t.updateClassExpression(e,h,e.name,void 0,y,v),k=[];if(b&&k.push(b),(g||32&ep(e))&&$(_,e=>ED(e)||Kl(e)||m&&uz(e))||$(C))if(l)un.assertIsDefined(w,"Decorated classes transformed by TypeScript are expected to be within a variable declaration."),$(C)&&se(w,E(C,t.createExpressionStatement)),$(_)&&Se(w,_,(null==(o=e.emitNode)?void 0:o.classThis)??t.getInternalName(e)),p?k.push(t.createAssignment(p,x)):g&&(null==(a=e.emitNode)?void 0:a.classThis)?k.push(t.createAssignment(e.emitNode.classThis,x)):k.push(x);else{if(p??(p=f()),u){we();const n=t.cloneNode(p);n.emitNode.autoGenerate.flags&=-9,T[UJ(e)]=n}k.push(t.createAssignment(p,x)),se(k,C),se(k,function(e,t){const n=[];for(const r of e){const e=ED(r)?Y(r,_e,r):Y(r,()=>Ce(r,t),void 0);e&&(FA(e),hw(e,r),kw(e,3072&Zd(r)),ww(e,jb(r)),Aw(e,r),n.push(e))}return n}(_,p)),k.push(t.cloneNode(p))}else k.push(x);return k.length>1&&(kw(x,131072),k.forEach(FA)),t.inlineExpressions(k)}function ve(t){if(!g)return vJ(t,B,e)}function be(e){const n=!!(32&ep(e));if(g||F){for(const t of e.members)Kl(t)&&(X(t)?Ie(t,t.name,Pe):vz(Fe(),t.name,{kind:"untransformed"}));if(g&&$(me(e))&&function(){const{weakSetName:e}=Fe().data;un.assert(e,"weakSetName should be set in private identifier environment"),Ee().push(t.createAssignment(e,t.createNewExpression(t.createIdentifier("WeakSet"),void 0,[])))}(),ee())for(const r of e.members)if(p_(r)){const e=t.getGeneratedPrivateNameForNode(r.name,void 0,"_accessor_storage");g||n&&Fv(r)?Ie(r,e,Ae):vz(Fe(),e,{kind:"untransformed"})}}let i,o,a,s=_J(e.members,V,__);if($(s,PD)||(i=xe(void 0,e)),!g&&$(C)){let e=t.createExpressionStatement(t.inlineExpressions(C));if(134234112&e.transformFlags){const n=t.createTempVariable(r),i=t.createArrowFunction(void 0,void 0,[],void 0,void 0,t.createBlock([e]));o=t.createAssignment(n,i),e=t.createExpressionStatement(t.createCallExpression(n,void 0,[]))}const n=t.createBlock([e]);a=t.createClassStaticBlockDeclaration(n),C=void 0}if(i||a){let n;const r=b(s,Oz),o=b(s,Bz);n=ie(n,r),n=ie(n,o),n=ie(n,i),n=ie(n,a),n=se(n,r||o?N(s,e=>e!==r&&e!==o):s),s=xI(t.createNodeArray(n),e.members)}return{members:s,prologue:o}}function xe(n,r){if(n=lJ(n,B,PD),!((null==D?void 0:D.data)&&16&D.data.facts))return n;const o=yh(r),s=!(!o||106===NA(o.expression).kind),c=fJ(n?n.parameters:void 0,B,e),l=function(n,r,o){var s;const c=cz(n,!1,!1);let l=c;u||(l=N(l,e=>!!e.initializer||sD(e.name)||Iv(e)));const _=me(n),d=$(l)||$(_);if(!r&&!d)return gJ(void 0,B,e);a();const p=!r&&o;let f=0,m=[];const h=[],y=t.createThis();if(function(e,n,r){if(!g||!$(n))return;const{weakSetName:i}=Fe().data;un.assert(i,"weakSetName should be set in private identifier environment"),e.push(t.createExpressionStatement(function(e,t,n){return e.createCallExpression(e.createPropertyAccessExpression(n,"add"),void 0,[t])}(t,r,i)))}(h,_,y),r){const e=N(c,e=>Zs(_c(e),r)),t=N(l,e=>!Zs(_c(e),r));Se(h,e,y),Se(h,t,y)}else Se(h,l,y);if(null==r?void 0:r.body){f=t.copyPrologue(r.body.statements,m,!1,B);const e=sz(r.body.statements,f);if(e.length)ke(m,r.body.statements,f,e,0,h,r);else{for(;f=m.length?r.body.multiLine??m.length>0:m.length>0;return xI(t.createBlock(xI(t.createNodeArray(m),(null==(s=null==r?void 0:r.body)?void 0:s.statements)??n.members),v),null==r?void 0:r.body)}(r,n,s);return l?n?(un.assert(c),t.updateConstructorDeclaration(n,void 0,c,l)):FA(hw(xI(t.createConstructorDeclaration(void 0,c??[],l),n||r),n)):n}function ke(e,n,r,i,o,a,s){const c=i[o],l=n[c];if(se(e,_J(n,B,pu,r,c-r)),r=c+1,sE(l)){const n=[];ke(n,l.tryBlock.statements,0,i,o+1,a,s),xI(t.createNodeArray(n),l.tryBlock.statements),e.push(t.updateTryStatement(l,t.updateBlock(l.tryBlock,n),lJ(l.catchClause,B,nP),lJ(l.finallyBlock,B,VF)))}else{for(se(e,_J(n,B,pu,c,1));rl(e,p,t),serializeTypeOfNode:(e,t,n)=>l(e,_,t,n),serializeParameterTypesOfNode:(e,t,n)=>l(e,u,t,n),serializeReturnTypeOfNode:(e,t)=>l(e,d,t)};function l(e,t,n,r){const i=s,o=c;s=e.currentLexicalScope,c=e.currentNameScope;const a=void 0===r?t(n):t(n,r);return s=i,c=o,a}function _(e,n){switch(e.kind){case 173:case 170:return p(e.type);case 179:case 178:return p(function(e,t){const n=pv(t.members,e);return n.setAccessor&&av(n.setAccessor)||n.getAccessor&&gv(n.getAccessor)}(e,n));case 264:case 232:case 175:return t.createIdentifier("Function");default:return t.createVoidZero()}}function u(e,n){const r=u_(e)?iv(e):r_(e)&&Dd(e.body)?e:void 0,i=[];if(r){const e=function(e,t){if(t&&178===e.kind){const{setAccessor:n}=pv(t.members,e);if(n)return n.parameters}return e.parameters}(r,n),t=e.length;for(let r=0;re.parent&&XD(e.parent)&&(e.parent.trueType===e||e.parent.falseType===e)))return t.createIdentifier("Object");const r=y(e.typeName),o=t.createTempVariable(n);return t.createConditionalExpression(t.createTypeCheck(t.createAssignment(o,r),"function"),void 0,o,void 0,t.createIdentifier("Object"));case 1:return v(e.typeName);case 2:return t.createVoidZero();case 4:return b("BigInt",7);case 6:return t.createIdentifier("Boolean");case 3:return t.createIdentifier("Number");case 5:return t.createIdentifier("String");case 7:return t.createIdentifier("Array");case 8:return b("Symbol",2);case 10:return t.createIdentifier("Function");case 9:return t.createIdentifier("Promise");case 11:return t.createIdentifier("Object");default:return un.assertNever(i)}}(e);case 194:return m(e.types,!0);case 193:return m(e.types,!1);case 195:return m([e.trueType,e.falseType],!1);case 199:if(148===e.operator)return p(e.type);break;case 187:case 200:case 201:case 188:case 133:case 159:case 198:case 206:case 313:case 314:case 318:case 319:case 320:break;case 315:case 316:case 317:return p(e.type);default:return un.failBadSyntaxKind(e)}return t.createIdentifier("Object")}function f(e){switch(e.kind){case 11:case 15:return t.createIdentifier("String");case 225:{const t=e.operand;switch(t.kind){case 9:case 10:return f(t);default:return un.failBadSyntaxKind(t)}}case 9:return t.createIdentifier("Number");case 10:return b("BigInt",7);case 112:case 97:return t.createIdentifier("Boolean");case 106:return t.createVoidZero();default:return un.failBadSyntaxKind(e)}}function m(e,n){let r;for(let i of e){if(i=oh(i),146===i.kind){if(n)return t.createVoidZero();continue}if(159===i.kind){if(!n)return t.createIdentifier("Object");continue}if(133===i.kind)return t.createIdentifier("Object");if(!a&&(rF(i)&&106===i.literal.kind||157===i.kind))continue;const e=p(i);if(aD(e)&&"Object"===e.escapedText)return e;if(r){if(!g(r,e))return t.createIdentifier("Object")}else r=e}return r??t.createVoidZero()}function g(e,t){return Wl(e)?Wl(t):aD(e)?aD(t)&&e.escapedText===t.escapedText:dF(e)?dF(t)&&g(e.expression,t.expression)&&g(e.name,t.name):SF(e)?SF(t)&&zN(e.expression)&&"0"===e.expression.text&&zN(t.expression)&&"0"===t.expression.text:UN(e)?UN(t)&&e.text===t.text:kF(e)?kF(t)&&g(e.expression,t.expression):yF(e)?yF(t)&&g(e.expression,t.expression):DF(e)?DF(t)&&g(e.condition,t.condition)&&g(e.whenTrue,t.whenTrue)&&g(e.whenFalse,t.whenFalse):!!NF(e)&&NF(t)&&e.operatorToken.kind===t.operatorToken.kind&&g(e.left,t.left)&&g(e.right,t.right)}function h(e,n){return t.createLogicalAnd(t.createStrictInequality(t.createTypeOfExpression(e),t.createStringLiteral("undefined")),n)}function y(e){if(80===e.kind){const t=v(e);return h(t,t)}if(80===e.left.kind)return h(v(e.left),v(e));const r=y(e.left),i=t.createTempVariable(n);return t.createLogicalAnd(t.createLogicalAnd(r.left,t.createStrictInequality(t.createAssignment(i,r.right),t.createVoidZero())),t.createPropertyAccessExpression(i,e.right))}function v(e){switch(e.kind){case 80:const n=DT(xI(CI.cloneNode(e),e),e.parent);return n.original=void 0,DT(n,pc(s)),n;case 167:return function(e){return t.createPropertyAccessExpression(v(e.left),e.right)}(e)}}function b(e,n){return olI(e)||CD(e)?void 0:e,g_),f=jb(o),m=function(n){if(i.hasNodeCheckFlag(n,262144)){c||(e.enableSubstitution(80),c=[]);const i=t.createUniqueName(n.name&&!Wl(n.name)?gc(n.name):"default");return c[UJ(n)]=i,r(i),i}}(o),h=a<2?t.getInternalName(o,!1,!0):t.getLocalName(o,!1,!0),y=_J(o.heritageClauses,_,tP);let v=_J(o.members,_,__),b=[];({members:v,decorationStatements:b}=p(o,v));const x=a>=9&&!!m&&$(v,e=>ND(e)&&Nv(e,256)||ED(e));x&&(v=xI(t.createNodeArray([t.createClassStaticBlockDeclaration(t.createBlock([t.createExpressionStatement(t.createAssignment(m,t.createThis()))])),...v]),v));const k=t.createClassExpression(d,s&&Wl(s)?void 0:s,void 0,y,v);hw(k,o),xI(k,f);const S=m&&!x?t.createAssignment(m,k):k,T=t.createVariableDeclaration(h,void 0,void 0,S);hw(T,o);const C=t.createVariableDeclarationList([T],1),w=t.createVariableStatement(void 0,C);hw(w,o),xI(w,f),Aw(w,o);const N=[w];if(se(N,b),function(e,r){const i=function(e){const r=g(fz(e,!0));if(!r)return;const i=c&&c[UJ(e)],o=a<2?t.getInternalName(e,!1,!0):t.getDeclarationName(e,!1,!0),s=n().createDecorateHelper(r,o),l=t.createAssignment(o,i?t.createAssignment(i,s):s);return xw(l,3072),ww(l,jb(e)),l}(r);i&&e.push(hw(t.createExpressionStatement(i),r))}(N,o),l)if(u){const e=t.createExportDefault(h);N.push(e)}else{const e=t.createExternalModuleExport(t.getDeclarationName(o));N.push(e)}return N}(o,o.name):function(e,n){const r=_J(e.modifiers,l,Zl),i=_J(e.heritageClauses,_,tP);let o=_J(e.members,_,__),a=[];({members:o,decorationStatements:a}=p(e,o));return se([t.updateClassDeclaration(e,r,n,void 0,i,o)],a)}(o,o.name);return ke(s)}(o);case 232:return function(e){return t.updateClassExpression(e,_J(e.modifiers,l,Zl),e.name,void 0,_J(e.heritageClauses,_,tP),_J(e.members,_,__))}(o);case 177:return function(e){return t.updateConstructorDeclaration(e,_J(e.modifiers,l,Zl),_J(e.parameters,_,TD),lJ(e.body,_,VF))}(o);case 175:return function(e){return f(t.updateMethodDeclaration(e,_J(e.modifiers,l,Zl),e.asteriskToken,un.checkDefined(lJ(e.name,_,t_)),void 0,void 0,_J(e.parameters,_,TD),void 0,lJ(e.body,_,VF)),e)}(o);case 179:return function(e){return f(t.updateSetAccessorDeclaration(e,_J(e.modifiers,l,Zl),un.checkDefined(lJ(e.name,_,t_)),_J(e.parameters,_,TD),lJ(e.body,_,VF)),e)}(o);case 178:return function(e){return f(t.updateGetAccessorDeclaration(e,_J(e.modifiers,l,Zl),un.checkDefined(lJ(e.name,_,t_)),_J(e.parameters,_,TD),void 0,lJ(e.body,_,VF)),e)}(o);case 173:return function(e){if(!(33554432&e.flags||Nv(e,128)))return f(t.updatePropertyDeclaration(e,_J(e.modifiers,l,Zl),un.checkDefined(lJ(e.name,_,t_)),void 0,void 0,lJ(e.initializer,_,V_)),e)}(o);case 170:return function(e){const n=t.updateParameterDeclaration(e,_I(t,e.modifiers),e.dotDotDotToken,un.checkDefined(lJ(e.name,_,n_)),void 0,void 0,lJ(e.initializer,_,V_));return n!==e&&(Aw(n,e),xI(n,jb(e)),ww(n,jb(e)),xw(n.name,64)),n}(o);default:return vJ(o,_,e)}}function u(e){return!!(536870912&e.transformFlags)}function d(e){return $(e,u)}function p(e,n){let r=[];return h(r,e,!1),h(r,e,!0),function(e){for(const t of e.members){if(!SI(t))continue;const n=mz(t,e,!0);if($(null==n?void 0:n.decorators,u))return!0;if($(null==n?void 0:n.parameters,d))return!0}return!1}(e)&&(n=xI(t.createNodeArray([...n,t.createClassStaticBlockDeclaration(t.createBlock(r,!0))]),n),r=void 0),{decorationStatements:r,members:n}}function f(e,t){return e!==t&&(Aw(e,t),ww(e,jb(t))),e}function m(e){return JN(e.expression,"___metadata")}function g(e){if(!e)return;const{false:t,true:n}=ze(e.decorators,m),r=[];return se(r,E(t,v)),se(r,O(e.parameters,b)),se(r,E(n,v)),r}function h(e,n,r){se(e,E(function(e,t){const n=function(e,t){return N(e.members,n=>{return i=t,fm(!0,r=n,e)&&i===Dv(r);var r,i})}(e,t);let r;for(const t of n)r=ie(r,y(e,t));return r}(n,r),e=>t.createExpressionStatement(e)))}function y(e,r){const i=g(mz(r,e,!0));if(!i)return;const o=function(e,n){return Dv(n)?t.getDeclarationName(e):function(e){return t.createPropertyAccessExpression(t.getDeclarationName(e),"prototype")}(e)}(e,r),a=function(e,n){const r=e.name;return sD(r)?t.createIdentifier(""):kD(r)?n&&!nz(r.expression)?t.getGeneratedNameForNode(r):r.expression:aD(r)?t.createStringLiteral(gc(r)):t.cloneNode(r)}(r,!Nv(r,128)),s=ND(r)&&!Iv(r)?t.createVoidZero():t.createNull(),c=n().createDecorateHelper(i,o,a,s);return xw(c,3072),ww(c,jb(r)),c}function v(e){return un.checkDefined(lJ(e.expression,_,V_))}function b(e,t){let r;if(e){r=[];for(const i of e){const e=n().createParamHelper(v(i),t);xI(e,i.expression),xw(e,3072),r.push(e)}}return r}}function tq(e){const{factory:t,getEmitHelperFactory:n,startLexicalEnvironment:r,endLexicalEnvironment:i,hoistVariableDeclaration:o}=e,a=yk(e.getCompilerOptions());let s,c,l,_,u,d;return $J(e,function(t){s=void 0,d=!1;const n=vJ(t,b,e);return Uw(n,e.readEmitHelpers()),d&&(Tw(n,32),d=!1),n});function p(){switch(c=void 0,l=void 0,_=void 0,null==s?void 0:s.kind){case"class":c=s.classInfo;break;case"class-element":c=s.next.classInfo,l=s.classThis,_=s.classSuper;break;case"name":const e=s.next.next.next;"class-element"===(null==e?void 0:e.kind)&&(c=e.next.classInfo,l=e.classThis,_=e.classSuper)}}function f(e){s={kind:"class",next:s,classInfo:e,savedPendingExpressions:u},u=void 0,p()}function m(){un.assert("class"===(null==s?void 0:s.kind),"Incorrect value for top.kind.",()=>`Expected top.kind to be 'class' but got '${null==s?void 0:s.kind}' instead.`),u=s.savedPendingExpressions,s=s.next,p()}function g(e){var t,n;un.assert("class"===(null==s?void 0:s.kind),"Incorrect value for top.kind.",()=>`Expected top.kind to be 'class' but got '${null==s?void 0:s.kind}' instead.`),s={kind:"class-element",next:s},(ED(e)||ND(e)&&Fv(e))&&(s.classThis=null==(t=s.next.classInfo)?void 0:t.classThis,s.classSuper=null==(n=s.next.classInfo)?void 0:n.classSuper),p()}function h(){var e;un.assert("class-element"===(null==s?void 0:s.kind),"Incorrect value for top.kind.",()=>`Expected top.kind to be 'class-element' but got '${null==s?void 0:s.kind}' instead.`),un.assert("class"===(null==(e=s.next)?void 0:e.kind),"Incorrect value for top.next.kind.",()=>{var e;return`Expected top.next.kind to be 'class' but got '${null==(e=s.next)?void 0:e.kind}' instead.`}),s=s.next,p()}function y(){un.assert("class-element"===(null==s?void 0:s.kind),"Incorrect value for top.kind.",()=>`Expected top.kind to be 'class-element' but got '${null==s?void 0:s.kind}' instead.`),s={kind:"name",next:s},p()}function v(){un.assert("name"===(null==s?void 0:s.kind),"Incorrect value for top.kind.",()=>`Expected top.kind to be 'name' but got '${null==s?void 0:s.kind}' instead.`),s=s.next,p()}function b(n){if(!function(e){return!!(33554432&e.transformFlags)||!!l&&!!(16384&e.transformFlags)||!!l&&!!_&&!!(134217728&e.transformFlags)}(n))return n;switch(n.kind){case 171:return un.fail("Use `modifierVisitor` instead.");case 264:return function(n){if(D(n)){const r=[],i=_c(n,u_)??n,o=i.name?t.createStringLiteralFromNode(i.name):t.createStringLiteral("default"),a=Nv(n,32),s=Nv(n,2048);if(n.name||(n=qz(e,n,o)),a&&s){const e=N(n);if(n.name){const i=t.createVariableDeclaration(t.getLocalName(n),void 0,void 0,e);hw(i,n);const o=t.createVariableDeclarationList([i],1),a=t.createVariableStatement(void 0,o);r.push(a);const s=t.createExportDefault(t.getDeclarationName(n));hw(s,n),Aw(s,Pw(n)),ww(s,Lb(n)),r.push(s)}else{const i=t.createExportDefault(e);hw(i,n),Aw(i,Pw(n)),ww(i,Lb(n)),r.push(i)}}else{un.assertIsDefined(n.name,"A class declaration that is not a default export must have a name.");const e=N(n),i=a?e=>cD(e)?void 0:k(e):k,o=_J(n.modifiers,i,Zl),s=t.getLocalName(n,!1,!0),c=t.createVariableDeclaration(s,void 0,void 0,e);hw(c,n);const l=t.createVariableDeclarationList([c],1),_=t.createVariableStatement(o,l);if(hw(_,n),Aw(_,Pw(n)),r.push(_),a){const e=t.createExternalModuleExport(s);hw(e,n),r.push(e)}}return ke(r)}{const e=_J(n.modifiers,k,Zl),r=_J(n.heritageClauses,b,tP);f(void 0);const i=_J(n.members,S,__);return m(),t.updateClassDeclaration(n,e,n.name,void 0,r,i)}}(n);case 232:return function(e){if(D(e)){const t=N(e);return hw(t,e),t}{const n=_J(e.modifiers,k,Zl),r=_J(e.heritageClauses,b,tP);f(void 0);const i=_J(e.members,S,__);return m(),t.updateClassExpression(e,n,e.name,void 0,r,i)}}(n);case 177:case 173:case 176:return un.fail("Not supported outside of a class. Use 'classElementVisitor' instead.");case 170:return function(n){Gh(n,O)&&(n=Vz(e,n,L(n.initializer)));const r=t.updateParameterDeclaration(n,void 0,n.dotDotDotToken,lJ(n.name,b,n_),void 0,void 0,lJ(n.initializer,b,V_));return r!==n&&(Aw(r,n),xI(r,jb(n)),ww(r,jb(n)),xw(r.name,64)),r}(n);case 227:return j(n,!1);case 304:case 261:case 209:return function(t){return Gh(t,O)&&(t=Vz(e,t,L(t.initializer))),vJ(t,b,e)}(n);case 278:return function(t){return Gh(t,O)&&(t=Vz(e,t,L(t.expression))),vJ(t,b,e)}(n);case 110:return function(e){return l??e}(n);case 249:return function(n){return t.updateForStatement(n,lJ(n.initializer,T,eu),lJ(n.condition,b,V_),lJ(n.incrementor,T,V_),hJ(n.statement,b,e))}(n);case 245:return function(t){return vJ(t,T,e)}(n);case 357:return R(n,!1);case 218:return H(n,!1);case 356:return function(e){const n=b,r=lJ(e.expression,n,V_);return t.updatePartiallyEmittedExpression(e,r)}(n);case 214:return function(n){if(am(n.expression)&&l){const e=lJ(n.expression,b,V_),r=_J(n.arguments,b,V_),i=t.createFunctionCallCall(e,l,r);return hw(i,n),xI(i,n),i}return vJ(n,b,e)}(n);case 216:return function(n){if(am(n.tag)&&l){const e=lJ(n.tag,b,V_),r=t.createFunctionBindCall(e,l,[]);hw(r,n),xI(r,n);const i=lJ(n.template,b,M_);return t.updateTaggedTemplateExpression(n,r,void 0,i)}return vJ(n,b,e)}(n);case 225:case 226:return M(n,!1);case 212:return function(n){if(am(n)&&aD(n.name)&&l&&_){const e=t.createStringLiteralFromNode(n.name),r=t.createReflectGetCall(_,e,l);return hw(r,n.expression),xI(r,n.expression),r}return vJ(n,b,e)}(n);case 213:return function(n){if(am(n)&&l&&_){const e=lJ(n.argumentExpression,b,V_),r=t.createReflectGetCall(_,e,l);return hw(r,n.expression),xI(r,n.expression),r}return vJ(n,b,e)}(n);case 168:return J(n);case 175:case 179:case 178:case 219:case 263:{"other"===(null==s?void 0:s.kind)?(un.assert(!u),s.depth++):(s={kind:"other",next:s,depth:0,savedPendingExpressions:u},u=void 0,p());const t=vJ(n,x,e);return un.assert("other"===(null==s?void 0:s.kind),"Incorrect value for top.kind.",()=>`Expected top.kind to be 'other' but got '${null==s?void 0:s.kind}' instead.`),s.depth>0?(un.assert(!u),s.depth--):(u=s.savedPendingExpressions,s=s.next,p()),t}default:return vJ(n,x,e)}}function x(e){if(171!==e.kind)return b(e)}function k(e){if(171!==e.kind)return e}function S(a){switch(a.kind){case 177:return function(e){g(e);const n=_J(e.modifiers,k,Zl),r=_J(e.parameters,b,TD);let i;if(e.body&&c){const n=F(c.class,c);if(n){const r=[],o=t.copyPrologue(e.body.statements,r,!1,b),a=sz(e.body.statements,o);a.length>0?P(r,e.body.statements,o,a,0,n):(se(r,n),se(r,_J(e.body.statements,b,pu))),i=t.createBlock(r,!0),hw(i,e.body),xI(i,e.body)}}return i??(i=lJ(e.body,b,VF)),h(),t.updateConstructorDeclaration(e,n,r,i)}(a);case 175:return function(e){g(e);const{modifiers:n,name:r,descriptorName:i}=I(e,c,ee);if(i)return h(),A(function(e,n,r){return e=_J(e,e=>fD(e)?e:void 0,Zl),t.createGetAccessorDeclaration(e,n,[],void 0,t.createBlock([t.createReturnStatement(t.createPropertyAccessExpression(r,t.createIdentifier("value")))]))}(n,r,i),e);{const i=_J(e.parameters,b,TD),o=lJ(e.body,b,VF);return h(),A(t.updateMethodDeclaration(e,n,e.asteriskToken,r,void 0,void 0,i,void 0,o),e)}}(a);case 178:return function(e){g(e);const{modifiers:n,name:r,descriptorName:i}=I(e,c,te);if(i)return h(),A(oe(n,r,i),e);{const i=_J(e.parameters,b,TD),o=lJ(e.body,b,VF);return h(),A(t.updateGetAccessorDeclaration(e,n,r,i,void 0,o),e)}}(a);case 179:return function(e){g(e);const{modifiers:n,name:r,descriptorName:i}=I(e,c,ne);if(i)return h(),A(ae(n,r,i),e);{const i=_J(e.parameters,b,TD),o=lJ(e.body,b,VF);return h(),A(t.updateSetAccessorDeclaration(e,n,r,i,o),e)}}(a);case 173:return function(a){Gh(a,O)&&(a=Vz(e,a,L(a.initializer))),g(a),un.assert(!vp(a),"Not yet implemented.");const{modifiers:s,name:l,initializersName:_,extraInitializersName:u,descriptorName:d,thisArg:p}=I(a,c,Iv(a)?re:void 0);r();let f=lJ(a.initializer,b,V_);_&&(f=n().createRunInitializersHelper(p??t.createThis(),_,f??t.createVoidZero())),Dv(a)&&c&&f&&(c.hasStaticInitializers=!0);const m=i();if($(m)&&(f=t.createImmediatelyInvokedArrowFunction([...m,t.createReturnStatement(f)])),c&&(Dv(a)?(f=X(c,!0,f),u&&(c.pendingStaticInitializers??(c.pendingStaticInitializers=[]),c.pendingStaticInitializers.push(n().createRunInitializersHelper(c.classThis??t.createThis(),u)))):(f=X(c,!1,f),u&&(c.pendingInstanceInitializers??(c.pendingInstanceInitializers=[]),c.pendingInstanceInitializers.push(n().createRunInitializersHelper(t.createThis(),u))))),h(),Iv(a)&&d){const e=Pw(a),n=Cw(a),r=a.name;let i=r,c=r;if(kD(r)&&!nz(r.expression)){const e=hI(r);if(e)i=t.updateComputedPropertyName(r,lJ(r.expression,b,V_)),c=t.updateComputedPropertyName(r,e.left);else{const e=t.createTempVariable(o);ww(e,r.expression);const n=lJ(r.expression,b,V_),a=t.createAssignment(e,n);ww(a,r.expression),i=t.updateComputedPropertyName(r,a),c=t.updateComputedPropertyName(r,e)}}const l=_J(s,e=>129!==e.kind?e:void 0,Zl),_=fI(t,a,l,f);hw(_,a),xw(_,3072),ww(_,n),ww(_.name,a.name);const u=oe(l,i,d);hw(u,a),Aw(u,e),ww(u,n);const p=ae(l,c,d);return hw(p,a),xw(p,3072),ww(p,n),[_,u,p]}return A(t.updatePropertyDeclaration(a,s,l,void 0,void 0,f),a)}(a);case 176:return function(n){let r;if(g(n),Bz(n))r=vJ(n,b,e);else if(Oz(n)){const t=l;l=void 0,r=vJ(n,b,e),l=t}else if(r=n=vJ(n,b,e),c&&(c.hasStaticInitializers=!0,$(c.pendingStaticInitializers))){const e=[];for(const n of c.pendingStaticInitializers){const r=t.createExpressionStatement(n);ww(r,Cw(n)),e.push(r)}const n=t.createBlock(e,!0);r=[t.createClassStaticBlockDeclaration(n),r],c.pendingStaticInitializers=void 0}return h(),r}(a);default:return b(a)}}function T(e){switch(e.kind){case 225:case 226:return M(e,!0);case 227:return j(e,!0);case 357:return R(e,!0);case 218:return H(e,!0);default:return b(e)}}function C(e,n){return t.createUniqueName(`${function(e){let t=e.name&&aD(e.name)&&!Wl(e.name)?gc(e.name):e.name&&sD(e.name)&&!Wl(e.name)?gc(e.name).slice(1):e.name&&UN(e.name)&&ms(e.name.text,99)?e.name.text:u_(e)?"class":"member";return Nu(e)&&(t=`get_${t}`),wu(e)&&(t=`set_${t}`),e.name&&sD(e.name)&&(t=`private_${t}`),Dv(e)&&(t=`static_${t}`),"_"+t}(e)}_${n}`,24)}function w(e,n){return t.createVariableStatement(void 0,t.createVariableDeclarationList([t.createVariableDeclaration(e,void 0,void 0,n)],1))}function N(o){r(),!zz(o)&&gm(!1,o)&&(o=qz(e,o,t.createStringLiteral("")));const a=t.getLocalName(o,!1,!1,!0),s=function(e){const r=t.createUniqueName("_metadata",48);let i,o,a,s,c,l=!1,_=!1,u=!1;if(pm(!1,e)){const n=$(e.members,e=>(Kl(e)||p_(e))&&Fv(e));a=t.createUniqueName("_classThis",n?24:48)}for(const r of e.members){if(m_(r)&&fm(!1,r,e))if(Fv(r)){if(!o){o=t.createUniqueName("_staticExtraInitializers",48);const r=n().createRunInitializersHelper(a??t.createThis(),o);ww(r,e.name??Lb(e)),s??(s=[]),s.push(r)}}else{if(!i){i=t.createUniqueName("_instanceExtraInitializers",48);const r=n().createRunInitializersHelper(t.createThis(),i);ww(r,e.name??Lb(e)),c??(c=[]),c.push(r)}i??(i=t.createUniqueName("_instanceExtraInitializers",48))}if(ED(r)?Bz(r)||(l=!0):ND(r)&&(Fv(r)?l||(l=!!r.initializer||Lv(r)):_||(_=!vp(r))),(Kl(r)||p_(r))&&Fv(r)&&(u=!0),o&&i&&l&&_&&u)break}return{class:e,classThis:a,metadataReference:r,instanceMethodExtraInitializersName:i,staticMethodExtraInitializersName:o,hasStaticInitializers:l,hasNonAmbientInstanceFields:_,hasStaticPrivateClassElements:u,pendingStaticInitializers:s,pendingInstanceInitializers:c}}(o),c=[];let l,_,p,g,h=!1;const y=Q(fz(o,!1));y&&(s.classDecoratorsName=t.createUniqueName("_classDecorators",48),s.classDescriptorName=t.createUniqueName("_classDescriptor",48),s.classExtraInitializersName=t.createUniqueName("_classExtraInitializers",48),un.assertIsDefined(s.classThis),c.push(w(s.classDecoratorsName,t.createArrayLiteralExpression(y)),w(s.classDescriptorName),w(s.classExtraInitializersName,t.createArrayLiteralExpression()),w(s.classThis)),s.hasStaticPrivateClassElements&&(h=!0,d=!0));const v=Sh(o.heritageClauses,96),x=v&&fe(v.types),k=x&&lJ(x.expression,b,V_);if(k){s.classSuper=t.createUniqueName("_classSuper",48);const e=NA(k),n=AF(e)&&!e.name||vF(e)&&!e.name||bF(e)?t.createComma(t.createNumericLiteral(0),k):k;c.push(w(s.classSuper,n));const r=t.updateExpressionWithTypeArguments(x,s.classSuper,void 0),i=t.updateHeritageClause(v,[r]);g=t.createNodeArray([i])}const T=s.classThis??t.createThis();f(s),l=ie(l,function(e,n){const r=t.createVariableDeclaration(e,void 0,void 0,t.createConditionalExpression(t.createLogicalAnd(t.createTypeCheck(t.createIdentifier("Symbol"),"function"),t.createPropertyAccessExpression(t.createIdentifier("Symbol"),"metadata")),t.createToken(58),t.createCallExpression(t.createPropertyAccessExpression(t.createIdentifier("Object"),"create"),void 0,[n?ce(n):t.createNull()]),t.createToken(59),t.createVoidZero()));return t.createVariableStatement(void 0,t.createVariableDeclarationList([r],2))}(s.metadataReference,s.classSuper));let C=o.members;if(C=_J(C,e=>PD(e)?e:S(e),__),C=_J(C,e=>PD(e)?S(e):e,__),u){let n;for(let r of u)r=lJ(r,function r(i){return 16384&i.transformFlags?110===i.kind?(n||(n=t.createUniqueName("_outerThis",16),c.unshift(w(n,t.createThis()))),n):vJ(i,r,e):i},V_),l=ie(l,t.createExpressionStatement(r));u=void 0}if(m(),$(s.pendingInstanceInitializers)&&!iv(o)){const e=F(0,s);if(e){const n=yh(o),r=[];if(n&&106!==NA(n.expression).kind){const e=t.createSpreadElement(t.createIdentifier("arguments")),n=t.createCallExpression(t.createSuper(),void 0,[e]);r.push(t.createExpressionStatement(n))}se(r,e);const i=t.createBlock(r,!0);p=t.createConstructorDeclaration(void 0,[],i)}}if(s.staticMethodExtraInitializersName&&c.push(w(s.staticMethodExtraInitializersName,t.createArrayLiteralExpression())),s.instanceMethodExtraInitializersName&&c.push(w(s.instanceMethodExtraInitializersName,t.createArrayLiteralExpression())),s.memberInfos&&rd(s.memberInfos,(e,n)=>{Dv(n)&&(c.push(w(e.memberDecoratorsName)),e.memberInitializersName&&c.push(w(e.memberInitializersName,t.createArrayLiteralExpression())),e.memberExtraInitializersName&&c.push(w(e.memberExtraInitializersName,t.createArrayLiteralExpression())),e.memberDescriptorName&&c.push(w(e.memberDescriptorName)))}),s.memberInfos&&rd(s.memberInfos,(e,n)=>{Dv(n)||(c.push(w(e.memberDecoratorsName)),e.memberInitializersName&&c.push(w(e.memberInitializersName,t.createArrayLiteralExpression())),e.memberExtraInitializersName&&c.push(w(e.memberExtraInitializersName,t.createArrayLiteralExpression())),e.memberDescriptorName&&c.push(w(e.memberDescriptorName)))}),l=se(l,s.staticNonFieldDecorationStatements),l=se(l,s.nonStaticNonFieldDecorationStatements),l=se(l,s.staticFieldDecorationStatements),l=se(l,s.nonStaticFieldDecorationStatements),s.classDescriptorName&&s.classDecoratorsName&&s.classExtraInitializersName&&s.classThis){l??(l=[]);const e=t.createPropertyAssignment("value",T),r=t.createObjectLiteralExpression([e]),i=t.createAssignment(s.classDescriptorName,r),c=t.createPropertyAccessExpression(T,"name"),_=n().createESDecorateHelper(t.createNull(),i,s.classDecoratorsName,{kind:"class",name:c,metadata:s.metadataReference},t.createNull(),s.classExtraInitializersName),u=t.createExpressionStatement(_);ww(u,Lb(o)),l.push(u);const d=t.createPropertyAccessExpression(s.classDescriptorName,"value"),p=t.createAssignment(s.classThis,d),f=t.createAssignment(a,p);l.push(t.createExpressionStatement(f))}if(l.push(function(e,n){const r=t.createObjectDefinePropertyCall(e,t.createPropertyAccessExpression(t.createIdentifier("Symbol"),"metadata"),t.createPropertyDescriptor({configurable:!0,writable:!0,enumerable:!0,value:n},!0));return xw(t.createIfStatement(n,t.createExpressionStatement(r)),1)}(T,s.metadataReference)),$(s.pendingStaticInitializers)){for(const e of s.pendingStaticInitializers){const n=t.createExpressionStatement(e);ww(n,Cw(e)),_=ie(_,n)}s.pendingStaticInitializers=void 0}if(s.classExtraInitializersName){const e=n().createRunInitializersHelper(T,s.classExtraInitializersName),r=t.createExpressionStatement(e);ww(r,o.name??Lb(o)),_=ie(_,r)}l&&_&&!s.hasStaticInitializers&&(se(l,_),_=void 0);const N=l&&t.createClassStaticBlockDeclaration(t.createBlock(l,!0));N&&h&&Sw(N,32);const D=_&&t.createClassStaticBlockDeclaration(t.createBlock(_,!0));if(N||p||D){const e=[],n=C.findIndex(Bz);N?(se(e,C,0,n+1),e.push(N),se(e,C,n+1)):se(e,C),p&&e.push(p),D&&e.push(D),C=xI(t.createNodeArray(e),C)}const E=i();let P;if(y){P=t.createClassExpression(void 0,void 0,void 0,g,C),s.classThis&&(P=jz(t,P,s.classThis));const e=t.createVariableDeclaration(a,void 0,void 0,P),n=t.createVariableDeclarationList([e]),r=s.classThis?t.createAssignment(a,s.classThis):a;c.push(t.createVariableStatement(void 0,n),t.createReturnStatement(r))}else P=t.createClassExpression(void 0,o.name,void 0,g,C),c.push(t.createReturnStatement(P));if(h){Tw(P,32);for(const e of P.members)(Kl(e)||p_(e))&&Fv(e)&&Tw(e,32)}return hw(P,o),t.createImmediatelyInvokedArrowFunction(t.mergeLexicalEnvironment(c,E))}function D(e){return gm(!1,e)||mm(!1,e)}function F(e,n){if($(n.pendingInstanceInitializers)){const e=[];return e.push(t.createExpressionStatement(t.inlineExpressions(n.pendingInstanceInitializers))),n.pendingInstanceInitializers=void 0,e}}function P(e,n,r,i,o,a){const s=i[o],c=n[s];if(se(e,_J(n,b,pu,r,s-r)),sE(c)){const n=[];P(n,c.tryBlock.statements,0,i,o+1,a),xI(t.createNodeArray(n),c.tryBlock.statements),e.push(t.updateTryStatement(c,t.updateBlock(c.tryBlock,n),lJ(c.catchClause,b,nP),lJ(c.finallyBlock,b,VF)))}else se(e,_J(n,b,pu,s,1)),se(e,a);se(e,_J(n,b,pu,s+1))}function A(e,t){return e!==t&&(Aw(e,t),ww(e,Lb(t))),e}function I(e,r,i){let a,s,c,l,_,d;if(!r){const t=_J(e.modifiers,k,Zl);return y(),s=B(e.name),v(),{modifiers:t,referencedName:a,name:s,initializersName:c,descriptorName:d,thisArg:_}}const p=Q(mz(e,r.class,!1)),f=_J(e.modifiers,k,Zl);if(p){const m=C(e,"decorators"),g=t.createArrayLiteralExpression(p),h=t.createAssignment(m,g),x={memberDecoratorsName:m};r.memberInfos??(r.memberInfos=new Map),r.memberInfos.set(e,x),u??(u=[]),u.push(h);const k=m_(e)||p_(e)?Dv(e)?r.staticNonFieldDecorationStatements??(r.staticNonFieldDecorationStatements=[]):r.nonStaticNonFieldDecorationStatements??(r.nonStaticNonFieldDecorationStatements=[]):ND(e)&&!p_(e)?Dv(e)?r.staticFieldDecorationStatements??(r.staticFieldDecorationStatements=[]):r.nonStaticFieldDecorationStatements??(r.nonStaticFieldDecorationStatements=[]):un.fail(),S=AD(e)?"getter":ID(e)?"setter":FD(e)?"method":p_(e)?"accessor":ND(e)?"field":un.fail();let T;if(aD(e.name)||sD(e.name))T={computed:!1,name:e.name};else if(zh(e.name))T={computed:!0,name:t.createStringLiteralFromNode(e.name)};else{const r=e.name.expression;zh(r)&&!aD(r)?T={computed:!0,name:t.createStringLiteralFromNode(r)}:(y(),({referencedName:a,name:s}=function(e){if(zh(e)||sD(e))return{referencedName:t.createStringLiteralFromNode(e),name:lJ(e,b,t_)};if(zh(e.expression)&&!aD(e.expression))return{referencedName:t.createStringLiteralFromNode(e.expression),name:lJ(e,b,t_)};const r=t.getGeneratedNameForNode(e);o(r);const i=n().createPropKeyHelper(lJ(e.expression,b,V_)),a=t.createAssignment(r,i);return{referencedName:r,name:t.updateComputedPropertyName(e,G(a))}}(e.name)),T={computed:!0,name:a},v())}const w={kind:S,name:T,static:Dv(e),private:sD(e.name),access:{get:ND(e)||AD(e)||FD(e),set:ND(e)||ID(e)},metadata:r.metadataReference};if(m_(e)){const o=Dv(e)?r.staticMethodExtraInitializersName:r.instanceMethodExtraInitializersName;let a;un.assertIsDefined(o),Kl(e)&&i&&(a=i(e,_J(f,e=>tt(e,_D),Zl)),x.memberDescriptorName=d=C(e,"descriptor"),a=t.createAssignment(d,a));const s=n().createESDecorateHelper(t.createThis(),a??t.createNull(),m,w,t.createNull(),o),c=t.createExpressionStatement(s);ww(c,Lb(e)),k.push(c)}else if(ND(e)){let o;c=x.memberInitializersName??(x.memberInitializersName=C(e,"initializers")),l=x.memberExtraInitializersName??(x.memberExtraInitializersName=C(e,"extraInitializers")),Dv(e)&&(_=r.classThis),Kl(e)&&Iv(e)&&i&&(o=i(e,void 0),x.memberDescriptorName=d=C(e,"descriptor"),o=t.createAssignment(d,o));const a=n().createESDecorateHelper(p_(e)?t.createThis():t.createNull(),o??t.createNull(),m,w,c,l),s=t.createExpressionStatement(a);ww(s,Lb(e)),k.push(s)}}return void 0===s&&(y(),s=B(e.name),v()),$(f)||!FD(e)&&!ND(e)||xw(s,1024),{modifiers:f,referencedName:a,name:s,initializersName:c,extraInitializersName:l,descriptorName:d,thisArg:_}}function O(e){return AF(e)&&!e.name&&D(e)}function L(e){const t=NA(e);return AF(t)&&!t.name&&!gm(!1,t)}function j(n,r){if(ib(n)){const e=W(n.left),r=lJ(n.right,b,V_);return t.updateBinaryExpression(n,e,n.operatorToken,r)}if(rb(n)){if(Gh(n,O))return vJ(n=Vz(e,n,L(n.right)),b,e);if(am(n.left)&&l&&_){let e=pF(n.left)?lJ(n.left.argumentExpression,b,V_):aD(n.left.name)?t.createStringLiteralFromNode(n.left.name):void 0;if(e){let i=lJ(n.right,b,V_);if(rz(n.operatorToken.kind)){let r=e;nz(e)||(r=t.createTempVariable(o),e=t.createAssignment(r,e));const a=t.createReflectGetCall(_,r,l);hw(a,n.left),xI(a,n.left),i=t.createBinaryExpression(a,iz(n.operatorToken.kind),i),xI(i,n)}const a=r?void 0:t.createTempVariable(o);return a&&(i=t.createAssignment(a,i),xI(a,n)),i=t.createReflectSetCall(_,e,i,l),hw(i,n),xI(i,n),a&&(i=t.createComma(i,a),xI(i,n)),i}}}if(28===n.operatorToken.kind){const e=lJ(n.left,T,V_),i=lJ(n.right,r?T:b,V_);return t.updateBinaryExpression(n,e,n.operatorToken,i)}return vJ(n,b,e)}function M(n,r){if(46===n.operator||47===n.operator){const e=ah(n.operand);if(am(e)&&l&&_){let i=pF(e)?lJ(e.argumentExpression,b,V_):aD(e.name)?t.createStringLiteralFromNode(e.name):void 0;if(i){let e=i;nz(i)||(e=t.createTempVariable(o),i=t.createAssignment(e,i));let a=t.createReflectGetCall(_,e,l);hw(a,n),xI(a,n);const s=r?void 0:t.createTempVariable(o);return a=mA(t,n,a,o,s),a=t.createReflectSetCall(_,i,a,l),hw(a,n),xI(a,n),s&&(a=t.createComma(a,s),xI(a,n)),a}}}return vJ(n,b,e)}function R(e,n){const r=n?yJ(e.elements,T):yJ(e.elements,b,T);return t.updateCommaListExpression(e,r)}function B(e){return kD(e)?J(e):lJ(e,b,t_)}function J(e){let n=lJ(e.expression,b,V_);return nz(n)||(n=G(n)),t.updateComputedPropertyName(e,n)}function z(n){if(uF(n)||_F(n))return W(n);if(am(n)&&l&&_){const e=pF(n)?lJ(n.argumentExpression,b,V_):aD(n.name)?t.createStringLiteralFromNode(n.name):void 0;if(e){const r=t.createTempVariable(void 0),i=t.createAssignmentTargetWrapper(r,t.createReflectSetCall(_,e,r,l));return hw(i,n),xI(i,n),i}}return vJ(n,b,e)}function q(n){if(rb(n,!0)){Gh(n,O)&&(n=Vz(e,n,L(n.right)));const r=z(n.left),i=lJ(n.right,b,V_);return t.updateBinaryExpression(n,r,n.operatorToken,i)}return z(n)}function U(n){return un.assertNode(n,P_),PF(n)?function(n){if(R_(n.expression)){const e=z(n.expression);return t.updateSpreadElement(n,e)}return vJ(n,b,e)}(n):IF(n)?vJ(n,b,e):q(n)}function V(n){return un.assertNode(n,F_),oP(n)?function(n){if(R_(n.expression)){const e=z(n.expression);return t.updateSpreadAssignment(n,e)}return vJ(n,b,e)}(n):iP(n)?function(t){return Gh(t,O)&&(t=Vz(e,t,L(t.objectAssignmentInitializer))),vJ(t,b,e)}(n):rP(n)?function(n){const r=lJ(n.name,b,t_);if(rb(n.initializer,!0)){const e=q(n.initializer);return t.updatePropertyAssignment(n,r,e)}if(R_(n.initializer)){const e=z(n.initializer);return t.updatePropertyAssignment(n,r,e)}return vJ(n,b,e)}(n):vJ(n,b,e)}function W(e){if(_F(e)){const n=_J(e.elements,U,V_);return t.updateArrayLiteralExpression(e,n)}{const n=_J(e.properties,V,v_);return t.updateObjectLiteralExpression(e,n)}}function H(e,n){const r=n?T:b,i=lJ(e.expression,r,V_);return t.updateParenthesizedExpression(e,i)}function K(e,n){return $(e)&&(n?yF(n)?(e.push(n.expression),n=t.updateParenthesizedExpression(n,t.inlineExpressions(e))):(e.push(n),n=t.inlineExpressions(e)):n=t.inlineExpressions(e)),n}function G(e){const t=K(u,e);return un.assertIsDefined(t),t!==e&&(u=void 0),t}function X(e,t,n){const r=K(t?e.pendingStaticInitializers:e.pendingInstanceInitializers,n);return r!==n&&(t?e.pendingStaticInitializers=void 0:e.pendingInstanceInitializers=void 0),r}function Q(e){if(!e)return;const t=[];return se(t,E(e.decorators,Y)),t}function Y(e){const n=lJ(e.expression,b,V_);if(xw(n,3072),Sx(NA(n))){const{target:e,thisArg:r}=t.createCallBinding(n,o,a,!0);return t.restoreOuterExpressions(n,t.createFunctionBindCall(e,r,[]))}return n}function Z(e,r,i,o,a,s,c){const l=t.createFunctionExpression(i,o,void 0,void 0,s,void 0,c??t.createBlock([]));hw(l,e),ww(l,Lb(e)),xw(l,3072);const _="get"===a||"set"===a?a:void 0,u=t.createStringLiteralFromNode(r,void 0),d=n().createSetFunctionNameHelper(l,u,_),p=t.createPropertyAssignment(t.createIdentifier(a),d);return hw(p,e),ww(p,Lb(e)),xw(p,3072),p}function ee(e,n){return t.createObjectLiteralExpression([Z(e,e.name,n,e.asteriskToken,"value",_J(e.parameters,b,TD),lJ(e.body,b,VF))])}function te(e,n){return t.createObjectLiteralExpression([Z(e,e.name,n,void 0,"get",[],lJ(e.body,b,VF))])}function ne(e,n){return t.createObjectLiteralExpression([Z(e,e.name,n,void 0,"set",_J(e.parameters,b,TD),lJ(e.body,b,VF))])}function re(e,n){return t.createObjectLiteralExpression([Z(e,e.name,n,void 0,"get",[],t.createBlock([t.createReturnStatement(t.createPropertyAccessExpression(t.createThis(),t.getGeneratedPrivateNameForNode(e.name)))])),Z(e,e.name,n,void 0,"set",[t.createParameterDeclaration(void 0,void 0,"value")],t.createBlock([t.createExpressionStatement(t.createAssignment(t.createPropertyAccessExpression(t.createThis(),t.getGeneratedPrivateNameForNode(e.name)),t.createIdentifier("value")))]))])}function oe(e,n,r){return e=_J(e,e=>fD(e)?e:void 0,Zl),t.createGetAccessorDeclaration(e,n,[],void 0,t.createBlock([t.createReturnStatement(t.createFunctionCallCall(t.createPropertyAccessExpression(r,t.createIdentifier("get")),t.createThis(),[]))]))}function ae(e,n,r){return e=_J(e,e=>fD(e)?e:void 0,Zl),t.createSetAccessorDeclaration(e,n,[t.createParameterDeclaration(void 0,void 0,"value")],t.createBlock([t.createReturnStatement(t.createFunctionCallCall(t.createPropertyAccessExpression(r,t.createIdentifier("set")),t.createThis(),[t.createIdentifier("value")]))]))}function ce(e){return t.createBinaryExpression(t.createElementAccessExpression(e,t.createPropertyAccessExpression(t.createIdentifier("Symbol"),"metadata")),61,t.createNull())}}function nq(e){const{factory:t,getEmitHelperFactory:n,resumeLexicalEnvironment:r,endLexicalEnvironment:i,hoistVariableDeclaration:o}=e,a=e.getEmitResolver(),s=e.getCompilerOptions(),c=yk(s);let l,_,u,p,f=0,m=0;const g=[];let h=0;const y=e.onEmitNode,v=e.onSubstituteNode;return e.onEmitNode=function(e,t,n){if(1&f&&function(e){const t=e.kind;return 264===t||177===t||175===t||178===t||179===t}(t)){const r=(a.hasNodeCheckFlag(t,128)?128:0)|(a.hasNodeCheckFlag(t,256)?256:0);if(r!==m){const i=m;return m=r,y(e,t,n),void(m=i)}}else if(f&&g[ZB(t)]){const r=m;return m=0,y(e,t,n),void(m=r)}y(e,t,n)},e.onSubstituteNode=function(e,n){return n=v(e,n),1===e&&m?function(e){switch(e.kind){case 212:return $(e);case 213:return H(e);case 214:return function(e){const n=e.expression;if(am(n)){const r=dF(n)?$(n):H(n);return t.createCallExpression(t.createPropertyAccessExpression(r,"call"),void 0,[t.createThis(),...e.arguments])}return e}(e)}return e}(n):n},$J(e,function(t){if(t.isDeclarationFile)return t;b(1,!1),b(2,!yp(t,s));const n=vJ(t,C,e);return Uw(n,e.readEmitHelpers()),n});function b(e,t){h=t?h|e:h&~e}function x(e){return 0!==(h&e)}function k(e,t,n){const r=e&~h;if(r){b(r,!0);const e=t(n);return b(r,!1),e}return t(n)}function S(t){return vJ(t,C,e)}function T(t){switch(t.kind){case 219:case 263:case 175:case 178:case 179:case 177:return t;case 170:case 209:case 261:break;case 80:if(p&&a.isArgumentsLocalBinding(t))return p}return vJ(t,T,e)}function C(n){if(!(256&n.transformFlags))return p?T(n):n;switch(n.kind){case 134:return;case 224:return function(n){return x(1)?hw(xI(t.createYieldExpression(void 0,lJ(n.expression,C,V_)),n),n):vJ(n,C,e)}(n);case 175:return k(3,D,n);case 263:return k(3,A,n);case 219:return k(3,I,n);case 220:return k(1,O,n);case 212:return _&&dF(n)&&108===n.expression.kind&&_.add(n.name.escapedText),vJ(n,C,e);case 213:return _&&108===n.expression.kind&&(u=!0),vJ(n,C,e);case 178:return k(3,F,n);case 179:return k(3,P,n);case 177:return k(3,N,n);case 264:case 232:return k(3,S,n);default:return vJ(n,C,e)}}function w(n){if(Zg(n))switch(n.kind){case 244:return function(n){if(j(n.declarationList)){const e=M(n.declarationList,!1);return e?t.createExpressionStatement(e):void 0}return vJ(n,C,e)}(n);case 249:return function(n){const r=n.initializer;return t.updateForStatement(n,j(r)?M(r,!1):lJ(n.initializer,C,eu),lJ(n.condition,C,V_),lJ(n.incrementor,C,V_),hJ(n.statement,w,e))}(n);case 250:return function(n){return t.updateForInStatement(n,j(n.initializer)?M(n.initializer,!0):un.checkDefined(lJ(n.initializer,C,eu)),un.checkDefined(lJ(n.expression,C,V_)),hJ(n.statement,w,e))}(n);case 251:return function(n){return t.updateForOfStatement(n,lJ(n.awaitModifier,C,dD),j(n.initializer)?M(n.initializer,!0):un.checkDefined(lJ(n.initializer,C,eu)),un.checkDefined(lJ(n.expression,C,V_)),hJ(n.statement,w,e))}(n);case 300:return function(t){const n=new Set;let r;if(L(t.variableDeclaration,n),n.forEach((e,t)=>{l.has(t)&&(r||(r=new Set(l)),r.delete(t))}),r){const n=l;l=r;const i=vJ(t,w,e);return l=n,i}return vJ(t,w,e)}(n);case 242:case 256:case 270:case 297:case 298:case 259:case 247:case 248:case 246:case 255:case 257:return vJ(n,w,e);default:return un.assertNever(n,"Unhandled node.")}return C(n)}function N(n){const r=p;p=void 0;const i=t.updateConstructorDeclaration(n,_J(n.modifiers,C,Zl),fJ(n.parameters,C,e),z(n));return p=r,i}function D(n){let r;const i=Oh(n),o=p;p=void 0;const a=t.updateMethodDeclaration(n,_J(n.modifiers,C,g_),n.asteriskToken,n.name,void 0,void 0,r=2&i?U(n):fJ(n.parameters,C,e),void 0,2&i?V(n,r):z(n));return p=o,a}function F(n){const r=p;p=void 0;const i=t.updateGetAccessorDeclaration(n,_J(n.modifiers,C,g_),n.name,fJ(n.parameters,C,e),void 0,z(n));return p=r,i}function P(n){const r=p;p=void 0;const i=t.updateSetAccessorDeclaration(n,_J(n.modifiers,C,g_),n.name,fJ(n.parameters,C,e),z(n));return p=r,i}function A(n){let r;const i=p;p=void 0;const o=Oh(n),a=t.updateFunctionDeclaration(n,_J(n.modifiers,C,g_),n.asteriskToken,n.name,void 0,r=2&o?U(n):fJ(n.parameters,C,e),void 0,2&o?V(n,r):gJ(n.body,C,e));return p=i,a}function I(n){let r;const i=p;p=void 0;const o=Oh(n),a=t.updateFunctionExpression(n,_J(n.modifiers,C,Zl),n.asteriskToken,n.name,void 0,r=2&o?U(n):fJ(n.parameters,C,e),void 0,2&o?V(n,r):gJ(n.body,C,e));return p=i,a}function O(n){let r;const i=Oh(n);return t.updateArrowFunction(n,_J(n.modifiers,C,Zl),void 0,r=2&i?U(n):fJ(n.parameters,C,e),void 0,n.equalsGreaterThanToken,2&i?V(n,r):gJ(n.body,C,e))}function L({name:e},t){if(aD(e))t.add(e.escapedText);else for(const n of e.elements)IF(n)||L(n,t)}function j(e){return!!e&&_E(e)&&!(7&e.flags)&&e.declarations.some(J)}function M(e,n){!function(e){d(e.declarations,R)}(e);const r=Zb(e);return 0===r.length?n?lJ(t.converters.convertToAssignmentElementTarget(e.declarations[0].name),C,V_):void 0:t.inlineExpressions(E(r,B))}function R({name:e}){if(aD(e))o(e);else for(const t of e.elements)IF(t)||R(t)}function B(e){const n=ww(t.createAssignment(t.converters.convertToAssignmentElementTarget(e.name),e.initializer),e);return un.checkDefined(lJ(n,C,V_))}function J({name:e}){if(aD(e))return l.has(e.escapedText);for(const t of e.elements)if(!IF(t)&&J(t))return!0;return!1}function z(n){un.assertIsDefined(n.body);const r=_,i=u;_=new Set,u=!1;let o=gJ(n.body,C,e);const s=_c(n,o_);if(c>=2&&(a.hasNodeCheckFlag(n,256)||a.hasNodeCheckFlag(n,128))&&3&~Oh(s)){if(W(),_.size){const e=rq(t,a,n,_);g[ZB(e)]=!0;const r=o.statements.slice();Od(r,[e]),o=t.updateBlock(o,r)}u&&(a.hasNodeCheckFlag(n,256)?qw(o,BN):a.hasNodeCheckFlag(n,128)&&qw(o,RN))}return _=r,u=i,o}function q(){un.assert(p);const e=t.createVariableDeclaration(p,void 0,void 0,t.createIdentifier("arguments")),n=t.createVariableStatement(void 0,[e]);return FA(n),kw(n,2097152),n}function U(n){if(kz(n.parameters))return fJ(n.parameters,C,e);const r=[];for(const e of n.parameters){if(e.initializer||e.dotDotDotToken){if(220===n.kind){const e=t.createParameterDeclaration(void 0,t.createToken(26),t.createUniqueName("args",8));r.push(e)}break}const i=t.createParameterDeclaration(void 0,void 0,t.getGeneratedNameForNode(e.name,8));r.push(i)}const i=t.createNodeArray(r);return xI(i,n.parameters),i}function V(o,s){const d=kz(o.parameters)?void 0:fJ(o.parameters,C,e);r();const f=_c(o,r_).type,m=c<2?function(e){const t=e&&_m(e);if(t&&e_(t)){const e=a.getTypeReferenceSerializationKind(t);if(1===e||0===e)return t}}(f):void 0,h=220===o.kind,y=p,v=a.hasNodeCheckFlag(o,512)&&!p;let b;if(v&&(p=t.createUniqueName("arguments")),d)if(h){const e=[];un.assert(s.length<=o.parameters.length);for(let n=0;n=2&&(a.hasNodeCheckFlag(o,256)||a.hasNodeCheckFlag(o,128));if(r&&(W(),_.size)){const n=rq(t,a,o,_);g[ZB(n)]=!0,Od(e,[n])}v&&Od(e,[q()]);const i=t.createBlock(e,!0);xI(i,o.body),r&&u&&(a.hasNodeCheckFlag(o,256)?qw(i,BN):a.hasNodeCheckFlag(o,128)&&qw(i,RN)),E=i}return l=k,h||(_=S,u=T,p=y),E}function W(){1&f||(f|=1,e.enableSubstitution(214),e.enableSubstitution(212),e.enableSubstitution(213),e.enableEmitNotification(264),e.enableEmitNotification(175),e.enableEmitNotification(178),e.enableEmitNotification(179),e.enableEmitNotification(177),e.enableEmitNotification(244))}function $(e){return 108===e.expression.kind?xI(t.createPropertyAccessExpression(t.createUniqueName("_super",48),e.name),e):e}function H(e){return 108===e.expression.kind?(n=e.argumentExpression,r=e,xI(256&m?t.createPropertyAccessExpression(t.createCallExpression(t.createUniqueName("_superIndex",48),void 0,[n]),"value"):t.createCallExpression(t.createUniqueName("_superIndex",48),void 0,[n]),r)):e;var n,r}}function rq(e,t,n,r){const i=t.hasNodeCheckFlag(n,256),o=[];return r.forEach((t,n)=>{const r=mc(n),a=[];a.push(e.createPropertyAssignment("get",e.createArrowFunction(void 0,void 0,[],void 0,void 0,xw(e.createPropertyAccessExpression(xw(e.createSuper(),8),r),8)))),i&&a.push(e.createPropertyAssignment("set",e.createArrowFunction(void 0,void 0,[e.createParameterDeclaration(void 0,void 0,"v",void 0,void 0,void 0)],void 0,void 0,e.createAssignment(xw(e.createPropertyAccessExpression(xw(e.createSuper(),8),r),8),e.createIdentifier("v"))))),o.push(e.createPropertyAssignment(r,e.createObjectLiteralExpression(a)))}),e.createVariableStatement(void 0,e.createVariableDeclarationList([e.createVariableDeclaration(e.createUniqueName("_super",48),void 0,void 0,e.createCallExpression(e.createPropertyAccessExpression(e.createIdentifier("Object"),"create"),void 0,[e.createNull(),e.createObjectLiteralExpression(o,!0)]))],2))}function iq(e){const{factory:t,getEmitHelperFactory:n,resumeLexicalEnvironment:r,endLexicalEnvironment:i,hoistVariableDeclaration:o}=e,a=e.getEmitResolver(),s=e.getCompilerOptions(),c=yk(s),l=e.onEmitNode;e.onEmitNode=function(e,t,n){if(1&y&&function(e){const t=e.kind;return 264===t||177===t||175===t||178===t||179===t}(t)){const r=(a.hasNodeCheckFlag(t,128)?128:0)|(a.hasNodeCheckFlag(t,256)?256:0);if(r!==v){const i=v;return v=r,l(e,t,n),void(v=i)}}else if(y&&x[ZB(t)]){const r=v;return v=0,l(e,t,n),void(v=r)}l(e,t,n)};const _=e.onSubstituteNode;e.onSubstituteNode=function(e,n){return n=_(e,n),1===e&&v?function(e){switch(e.kind){case 212:return Q(e);case 213:return Y(e);case 214:return function(e){const n=e.expression;if(am(n)){const r=dF(n)?Q(n):Y(n);return t.createCallExpression(t.createPropertyAccessExpression(r,"call"),void 0,[t.createThis(),...e.arguments])}return e}(e)}return e}(n):n};let u,d,p,f,m,g,h=!1,y=0,v=0,b=0;const x=[];return $J(e,function(n){if(n.isDeclarationFile)return n;p=n;const r=function(n){const r=k(2,yp(n,s)?0:1);h=!1;const i=vJ(n,C,e),o=K(i.statements,f&&[t.createVariableStatement(void 0,t.createVariableDeclarationList(f))]),a=t.updateSourceFile(i,xI(t.createNodeArray(o),n.statements));return S(r),a}(n);return Uw(r,e.readEmitHelpers()),p=void 0,f=void 0,r});function k(e,t){const n=b;return b=3&(b&~e|t),n}function S(e){b=e}function T(e){f=ie(f,t.createVariableDeclaration(e))}function C(e){return E(e,!1)}function w(e){return E(e,!0)}function N(e){if(134!==e.kind)return e}function D(e,t,n,r){if(function(e,t){return b!==(b&~e|t)}(n,r)){const i=k(n,r),o=e(t);return S(i),o}return e(t)}function F(t){return vJ(t,C,e)}function E(r,i){if(!(128&r.transformFlags))return r;switch(r.kind){case 224:return function(r){return 2&u&&1&u?hw(xI(t.createYieldExpression(void 0,n().createAwaitHelper(lJ(r.expression,C,V_))),r),r):vJ(r,C,e)}(r);case 230:return function(r){if(2&u&&1&u){if(r.asteriskToken){const e=lJ(un.checkDefined(r.expression),C,V_);return hw(xI(t.createYieldExpression(void 0,n().createAwaitHelper(t.updateYieldExpression(r,r.asteriskToken,xI(n().createAsyncDelegatorHelper(xI(n().createAsyncValuesHelper(e),e)),e)))),r),r)}return hw(xI(t.createYieldExpression(void 0,O(r.expression?lJ(r.expression,C,V_):t.createVoidZero())),r),r)}return vJ(r,C,e)}(r);case 254:return function(n){return 2&u&&1&u?t.updateReturnStatement(n,O(n.expression?lJ(n.expression,C,V_):t.createVoidZero())):vJ(n,C,e)}(r);case 257:return function(n){if(2&u){const e=Rf(n);return 251===e.kind&&e.awaitModifier?I(e,n):t.restoreEnclosingLabel(lJ(e,C,pu,t.liftToBlock),n)}return vJ(n,C,e)}(r);case 211:return function(r){if(65536&r.transformFlags){const e=function(e){let n;const r=[];for(const i of e)if(306===i.kind){n&&(r.push(t.createObjectLiteralExpression(n)),n=void 0);const e=i.expression;r.push(lJ(e,C,V_))}else n=ie(n,304===i.kind?t.createPropertyAssignment(i.name,lJ(i.initializer,C,V_)):lJ(i,C,v_));return n&&r.push(t.createObjectLiteralExpression(n)),r}(r.properties);e.length&&211!==e[0].kind&&e.unshift(t.createObjectLiteralExpression());let i=e[0];if(e.length>1){for(let t=1;t=2&&(a.hasNodeCheckFlag(o,256)||a.hasNodeCheckFlag(o,128));if(f){1&y||(y|=1,e.enableSubstitution(214),e.enableSubstitution(212),e.enableSubstitution(213),e.enableEmitNotification(264),e.enableEmitNotification(175),e.enableEmitNotification(178),e.enableEmitNotification(179),e.enableEmitNotification(177),e.enableEmitNotification(244));const n=rq(t,a,o,m);x[ZB(n)]=!0,Od(u,[n])}u.push(p);const h=t.updateBlock(o.body,u);return f&&g&&(a.hasNodeCheckFlag(o,256)?qw(h,BN):a.hasNodeCheckFlag(o,128)&&qw(h,RN)),m=l,g=_,h}function G(e){r();let n=0;const o=[],a=lJ(e.body,C,Y_)??t.createBlock([]);VF(a)&&(n=t.copyPrologue(a.statements,o,!1,C)),se(o,X(void 0,e));const s=i();if(n>0||$(o)||$(s)){const e=t.converters.convertToFunctionBlock(a,!0);return Od(o,s),se(o,e.statements.slice(n)),t.updateBlock(e,xI(t.createNodeArray(o),e.statements))}return a}function X(n,r){let i=!1;for(const o of r.parameters)if(i){if(k_(o.name)){if(o.name.elements.length>0){const r=Dz(o,C,e,0,t.getGeneratedNameForNode(o));if($(r)){const e=t.createVariableDeclarationList(r),i=t.createVariableStatement(void 0,e);xw(i,2097152),n=ie(n,i)}}else if(o.initializer){const e=t.getGeneratedNameForNode(o),r=lJ(o.initializer,C,V_),i=t.createAssignment(e,r),a=t.createExpressionStatement(i);xw(a,2097152),n=ie(n,a)}}else if(o.initializer){const e=t.cloneNode(o.name);xI(e,o.name),xw(e,96);const r=lJ(o.initializer,C,V_);kw(r,3168);const i=t.createAssignment(e,r);xI(i,o),xw(i,3072);const a=t.createBlock([t.createExpressionStatement(i)]);xI(a,o),xw(a,3905);const s=t.createTypeCheck(t.cloneNode(o.name),"undefined"),c=t.createIfStatement(s,a);FA(c),xI(c,o),xw(c,2101056),n=ie(n,c)}}else if(65536&o.transformFlags){i=!0;const r=Dz(o,C,e,1,t.getGeneratedNameForNode(o),!1,!0);if($(r)){const e=t.createVariableDeclarationList(r),i=t.createVariableStatement(void 0,e);xw(i,2097152),n=ie(n,i)}}return n}function Q(e){return 108===e.expression.kind?xI(t.createPropertyAccessExpression(t.createUniqueName("_super",48),e.name),e):e}function Y(e){return 108===e.expression.kind?(n=e.argumentExpression,r=e,xI(256&v?t.createPropertyAccessExpression(t.createCallExpression(t.createIdentifier("_superIndex"),void 0,[n]),"value"):t.createCallExpression(t.createIdentifier("_superIndex"),void 0,[n]),r)):e;var n,r}}function oq(e){const t=e.factory;return $J(e,function(t){return t.isDeclarationFile?t:vJ(t,n,e)});function n(r){return 64&r.transformFlags?300===r.kind?function(r){return r.variableDeclaration?vJ(r,n,e):t.updateCatchClause(r,t.createVariableDeclaration(t.createTempVariable(void 0)),lJ(r.block,n,VF))}(r):vJ(r,n,e):r}}function aq(e){const{factory:t,hoistVariableDeclaration:n}=e;return $J(e,function(t){return t.isDeclarationFile?t:vJ(t,r,e)});function r(i){if(!(32&i.transformFlags))return i;switch(i.kind){case 214:{const e=o(i,!1);return un.assertNotNode(e,BE),e}case 212:case 213:if(hl(i)){const e=s(i,!1,!1);return un.assertNotNode(e,BE),e}return vJ(i,r,e);case 227:return 61===i.operatorToken.kind?function(e){let i=lJ(e.left,r,V_),o=i;return tz(i)||(o=t.createTempVariable(n),i=t.createAssignment(o,i)),xI(t.createConditionalExpression(c(i,o),void 0,o,void 0,lJ(e.right,r,V_)),e)}(i):vJ(i,r,e);case 221:return function(e){return hl(ah(e.expression))?hw(a(e.expression,!1,!0),e):t.updateDeleteExpression(e,lJ(e.expression,r,V_))}(i);default:return vJ(i,r,e)}}function i(e,n,r){const i=a(e.expression,n,r);return BE(i)?t.createSyntheticReferenceExpression(t.updateParenthesizedExpression(e,i.expression),i.thisArg):t.updateParenthesizedExpression(e,i)}function o(n,o){if(hl(n))return s(n,o,!1);if(yF(n.expression)&&hl(ah(n.expression))){const e=i(n.expression,!0,!1),o=_J(n.arguments,r,V_);return BE(e)?xI(t.createFunctionCallCall(e.expression,e.thisArg,o),n):t.updateCallExpression(n,e,void 0,o)}return vJ(n,r,e)}function a(e,a,c){switch(e.kind){case 218:return i(e,a,c);case 212:case 213:return function(e,i,o){if(hl(e))return s(e,i,o);let a,c=lJ(e.expression,r,V_);return un.assertNotNode(c,BE),i&&(tz(c)?a=c:(a=t.createTempVariable(n),c=t.createAssignment(a,c))),c=212===e.kind?t.updatePropertyAccessExpression(e,c,lJ(e.name,r,aD)):t.updateElementAccessExpression(e,c,lJ(e.argumentExpression,r,V_)),a?t.createSyntheticReferenceExpression(c,a):c}(e,a,c);case 214:return o(e,a);default:return lJ(e,r,V_)}}function s(e,i,o){const{expression:s,chain:l}=function(e){un.assertNotNode(e,Tl);const t=[e];for(;!e.questionDotToken&&!gF(e);)e=nt(Sl(e.expression),hl),un.assertNotNode(e,Tl),t.unshift(e);return{expression:e.expression,chain:t}}(e),_=a(Sl(s),gl(l[0]),!1);let u=BE(_)?_.thisArg:void 0,d=BE(_)?_.expression:_,p=t.restoreOuterExpressions(s,d,8);tz(d)||(d=t.createTempVariable(n),p=t.createAssignment(d,p));let f,m=d;for(let e=0;ee&&se(c,_J(n.statements,_,pu,e,d-e));break}d++}un.assert(dt&&(t=e)}return t}(n.caseBlock.clauses);if(r){const i=m();return g([t.updateSwitchStatement(n,lJ(n.expression,_,V_),t.updateCaseBlock(n.caseBlock,n.caseBlock.clauses.map(n=>function(n,r){return 0!==pq(n.statements)?ZE(n)?t.updateCaseClause(n,lJ(n.expression,_,V_),u(n.statements,0,n.statements.length,r,void 0)):t.updateDefaultClause(n,u(n.statements,0,n.statements.length,r,void 0)):vJ(n,_,e)}(n,i))))],i,2===r)}return vJ(n,_,e)}(n);default:return vJ(n,_,e)}}function u(i,o,a,s,u){const m=[];for(let r=o;rt&&(t=e)}return t}function fq(e){const{factory:t,getEmitHelperFactory:n}=e,r=e.getCompilerOptions();let i,o;return $J(e,function(n){if(n.isDeclarationFile)return n;i=n,o={},o.importSpecifier=Kk(r,n);let a=vJ(n,c,e);Uw(a,e.readEmitHelpers());let s=a.statements;if(o.filenameDeclaration&&(s=Md(s.slice(),t.createVariableStatement(void 0,t.createVariableDeclarationList([o.filenameDeclaration],2)))),o.utilizedImplicitRuntimeImports)for(const[e,r]of Oe(o.utilizedImplicitRuntimeImports.entries()))if(rO(n)){const n=t.createImportDeclaration(void 0,t.createImportClause(void 0,void 0,t.createNamedImports(Oe(r.values()))),t.createStringLiteral(e),void 0);FT(n,!1),s=Md(s.slice(),n)}else if(Zp(n)){const n=t.createVariableStatement(void 0,t.createVariableDeclarationList([t.createVariableDeclaration(t.createObjectBindingPattern(Oe(r.values(),e=>t.createBindingElement(void 0,e.propertyName,e.name))),void 0,void 0,t.createCallExpression(t.createIdentifier("require"),void 0,[t.createStringLiteral(e)]))],2));FT(n,!1),s=Md(s.slice(),n)}return s!==a.statements&&(a=t.updateSourceFile(a,s)),o=void 0,a});function a(){if(o.filenameDeclaration)return o.filenameDeclaration.name;const e=t.createVariableDeclaration(t.createUniqueName("_jsxFileName",48),void 0,void 0,t.createStringLiteral(i.fileName));return o.filenameDeclaration=e,o.filenameDeclaration.name}function s(e){var n,i;const a="createElement"===e?o.importSpecifier:Gk(o.importSpecifier,r),s=null==(i=null==(n=o.utilizedImplicitRuntimeImports)?void 0:n.get(a))?void 0:i.get(e);if(s)return s.name;o.utilizedImplicitRuntimeImports||(o.utilizedImplicitRuntimeImports=new Map);let c=o.utilizedImplicitRuntimeImports.get(a);c||(c=new Map,o.utilizedImplicitRuntimeImports.set(a,c));const l=t.createUniqueName(`_${e}`,112),_=t.createImportSpecifier(!1,t.createIdentifier(e),l);return nN(l,_),c.set(e,_),l}function c(t){return 2&t.transformFlags?function(t){switch(t.kind){case 285:return f(t,!1);case 286:return m(t,!1);case 289:return g(t,!1);case 295:return O(t);default:return vJ(t,c,e)}}(t):t}function _(e){switch(e.kind){case 12:return function(e){const n=function(e){let t,n=0,r=-1;for(let i=0;irP(e)&&(aD(e.name)&&"__proto__"===gc(e.name)||UN(e.name)&&"__proto__"===e.name.text))}function p(e){return void 0===o.importSpecifier||function(e){let t=!1;for(const n of e.attributes.properties)if(!XE(n)||uF(n.expression)&&!n.expression.properties.some(oP)){if(t&&KE(n)&&aD(n.name)&&"key"===n.name.escapedText)return!0}else t=!0;return!1}(e)}function f(e,t){return(p(e.openingElement)?x:y)(e.openingElement,e.children,t,e)}function m(e,t){return(p(e)?x:y)(e,void 0,t,e)}function g(e,t){return(void 0===o.importSpecifier?S:k)(e.openingFragment,e.children,t,e)}function h(e){const n=ly(e);if(1===u(n)&&!n[0].dotDotDotToken){const e=_(n[0]);return e&&t.createPropertyAssignment("children",e)}const r=B(e,_);return u(r)?t.createPropertyAssignment("children",t.createArrayLiteralExpression(r)):void 0}function y(e,n,r,i){const o=P(e),a=n&&n.length?h(n):void 0,s=b(e.attributes.properties,e=>!!e.name&&aD(e.name)&&"key"===e.name.escapedText),c=s?N(e.attributes.properties,e=>e!==s):e.attributes.properties;return v(o,u(c)?T(c,a):t.createObjectLiteralExpression(a?[a]:l),s,n||l,r,i)}function v(e,n,o,c,l,_){var d;const p=ly(c),f=u(p)>1||!!(null==(d=p[0])?void 0:d.dotDotDotToken),m=[e,n];if(o&&m.push(w(o.initializer)),5===r.jsx){const e=_c(i);if(e&&sP(e)){void 0===o&&m.push(t.createVoidZero()),m.push(f?t.createTrue():t.createFalse());const n=za(e,_.pos);m.push(t.createObjectLiteralExpression([t.createPropertyAssignment("fileName",a()),t.createPropertyAssignment("lineNumber",t.createNumericLiteral(n.line+1)),t.createPropertyAssignment("columnNumber",t.createNumericLiteral(n.character+1))])),m.push(t.createThis())}}const g=xI(t.createCallExpression(function(e){const t=function(e){return 5===r.jsx?"jsxDEV":e?"jsxs":"jsx"}(e);return s(t)}(f),void 0,m),_);return l&&FA(g),g}function x(n,a,c,l){const d=P(n),p=n.attributes.properties,f=u(p)?T(p):t.createNull(),m=void 0===o.importSpecifier?cA(t,e.getEmitResolver().getJsxFactoryEntity(i),r.reactNamespace,n):s("createElement"),g=lA(t,m,d,f,B(a,_),l);return c&&FA(g),g}function k(e,n,r,i){let o;if(n&&n.length){const e=function(e){const n=h(e);return n&&t.createObjectLiteralExpression([n])}(n);e&&(o=e)}return v(s("Fragment"),o||t.createObjectLiteralExpression([]),void 0,n,r,i)}function S(n,o,a,s){const c=_A(t,e.getEmitResolver().getJsxFactoryEntity(i),e.getEmitResolver().getJsxFragmentFactoryEntity(i),r.reactNamespace,B(o,_),n,s);return a&&FA(c),c}function T(e,i){const o=yk(r);return o&&o>=5?t.createObjectLiteralExpression(function(e,n){const r=I(V(e,XE,(e,n)=>I(E(e,e=>{return n?uF((r=e).expression)&&!d(r.expression)?A(r.expression.properties,e=>un.checkDefined(lJ(e,c,v_))):t.createSpreadAssignment(un.checkDefined(lJ(r.expression,c,V_))):C(e);var r}))));return n&&r.push(n),r}(e,i)):function(e,r){const i=[];let o=[];for(const t of e)if(XE(t)){if(uF(t.expression)&&!d(t.expression)){for(const e of t.expression.properties)oP(e)?(a(),i.push(un.checkDefined(lJ(e.expression,c,V_)))):o.push(un.checkDefined(lJ(e,c)));continue}a(),i.push(un.checkDefined(lJ(t.expression,c,V_)))}else o.push(C(t));return r&&o.push(r),a(),i.length&&!uF(i[0])&&i.unshift(t.createObjectLiteralExpression()),be(i)||n().createAssignHelper(i);function a(){o.length&&(i.push(t.createObjectLiteralExpression(o)),o=[])}}(e,i)}function C(e){const n=function(e){const n=e.name;if(aD(n)){const e=gc(n);return/^[A-Z_]\w*$/i.test(e)?n:t.createStringLiteral(e)}return t.createStringLiteral(gc(n.namespace)+":"+gc(n.name))}(e),r=w(e.initializer);return t.createPropertyAssignment(n,r)}function w(e){if(void 0===e)return t.createTrue();if(11===e.kind){const n=void 0!==e.singleQuote?e.singleQuote:!qm(e,i);return xI(t.createStringLiteral(function(e){const t=F(e);return t===e?void 0:t}(e.text)||e.text,n),e)}return 295===e.kind?void 0===e.expression?t.createTrue():un.checkDefined(lJ(e.expression,c,V_)):zE(e)?f(e,!1):qE(e)?m(e,!1):WE(e)?g(e,!1):un.failBadSyntaxKind(e)}function D(e,t){const n=F(t);return void 0===e?n:e+" "+n}function F(e){return e.replace(/&((#((\d+)|x([\da-fA-F]+)))|(\w+));/g,(e,t,n,r,i,o,a)=>{if(i)return bs(parseInt(i,10));if(o)return bs(parseInt(o,16));{const t=mq.get(a);return t?bs(t):e}})}function P(e){if(285===e.kind)return P(e.openingElement);{const n=e.tagName;return aD(n)&&Ey(n.escapedText)?t.createStringLiteral(gc(n)):YE(n)?t.createStringLiteral(gc(n.namespace)+":"+gc(n.name)):dA(t,n)}}function O(e){const n=lJ(e.expression,c,V_);return e.dotDotDotToken?t.createSpreadElement(n):n}}var mq=new Map(Object.entries({quot:34,amp:38,apos:39,lt:60,gt:62,nbsp:160,iexcl:161,cent:162,pound:163,curren:164,yen:165,brvbar:166,sect:167,uml:168,copy:169,ordf:170,laquo:171,not:172,shy:173,reg:174,macr:175,deg:176,plusmn:177,sup2:178,sup3:179,acute:180,micro:181,para:182,middot:183,cedil:184,sup1:185,ordm:186,raquo:187,frac14:188,frac12:189,frac34:190,iquest:191,Agrave:192,Aacute:193,Acirc:194,Atilde:195,Auml:196,Aring:197,AElig:198,Ccedil:199,Egrave:200,Eacute:201,Ecirc:202,Euml:203,Igrave:204,Iacute:205,Icirc:206,Iuml:207,ETH:208,Ntilde:209,Ograve:210,Oacute:211,Ocirc:212,Otilde:213,Ouml:214,times:215,Oslash:216,Ugrave:217,Uacute:218,Ucirc:219,Uuml:220,Yacute:221,THORN:222,szlig:223,agrave:224,aacute:225,acirc:226,atilde:227,auml:228,aring:229,aelig:230,ccedil:231,egrave:232,eacute:233,ecirc:234,euml:235,igrave:236,iacute:237,icirc:238,iuml:239,eth:240,ntilde:241,ograve:242,oacute:243,ocirc:244,otilde:245,ouml:246,divide:247,oslash:248,ugrave:249,uacute:250,ucirc:251,uuml:252,yacute:253,thorn:254,yuml:255,OElig:338,oelig:339,Scaron:352,scaron:353,Yuml:376,fnof:402,circ:710,tilde:732,Alpha:913,Beta:914,Gamma:915,Delta:916,Epsilon:917,Zeta:918,Eta:919,Theta:920,Iota:921,Kappa:922,Lambda:923,Mu:924,Nu:925,Xi:926,Omicron:927,Pi:928,Rho:929,Sigma:931,Tau:932,Upsilon:933,Phi:934,Chi:935,Psi:936,Omega:937,alpha:945,beta:946,gamma:947,delta:948,epsilon:949,zeta:950,eta:951,theta:952,iota:953,kappa:954,lambda:955,mu:956,nu:957,xi:958,omicron:959,pi:960,rho:961,sigmaf:962,sigma:963,tau:964,upsilon:965,phi:966,chi:967,psi:968,omega:969,thetasym:977,upsih:978,piv:982,ensp:8194,emsp:8195,thinsp:8201,zwnj:8204,zwj:8205,lrm:8206,rlm:8207,ndash:8211,mdash:8212,lsquo:8216,rsquo:8217,sbquo:8218,ldquo:8220,rdquo:8221,bdquo:8222,dagger:8224,Dagger:8225,bull:8226,hellip:8230,permil:8240,prime:8242,Prime:8243,lsaquo:8249,rsaquo:8250,oline:8254,frasl:8260,euro:8364,image:8465,weierp:8472,real:8476,trade:8482,alefsym:8501,larr:8592,uarr:8593,rarr:8594,darr:8595,harr:8596,crarr:8629,lArr:8656,uArr:8657,rArr:8658,dArr:8659,hArr:8660,forall:8704,part:8706,exist:8707,empty:8709,nabla:8711,isin:8712,notin:8713,ni:8715,prod:8719,sum:8721,minus:8722,lowast:8727,radic:8730,prop:8733,infin:8734,ang:8736,and:8743,or:8744,cap:8745,cup:8746,int:8747,there4:8756,sim:8764,cong:8773,asymp:8776,ne:8800,equiv:8801,le:8804,ge:8805,sub:8834,sup:8835,nsub:8836,sube:8838,supe:8839,oplus:8853,otimes:8855,perp:8869,sdot:8901,lceil:8968,rceil:8969,lfloor:8970,rfloor:8971,lang:9001,rang:9002,loz:9674,spades:9824,clubs:9827,hearts:9829,diams:9830}));function gq(e){const{factory:t,hoistVariableDeclaration:n}=e;return $J(e,function(t){return t.isDeclarationFile?t:vJ(t,r,e)});function r(i){return 512&i.transformFlags?227===i.kind?function(i){switch(i.operatorToken.kind){case 68:return function(e){let i,o;const a=lJ(e.left,r,V_),s=lJ(e.right,r,V_);if(pF(a)){const e=t.createTempVariable(n),r=t.createTempVariable(n);i=xI(t.createElementAccessExpression(xI(t.createAssignment(e,a.expression),a.expression),xI(t.createAssignment(r,a.argumentExpression),a.argumentExpression)),a),o=xI(t.createElementAccessExpression(e,r),a)}else if(dF(a)){const e=t.createTempVariable(n);i=xI(t.createPropertyAccessExpression(xI(t.createAssignment(e,a.expression),a.expression),a.name),a),o=xI(t.createPropertyAccessExpression(e,a.name),a)}else i=a,o=a;return xI(t.createAssignment(i,xI(t.createGlobalMethodCall("Math","pow",[o,s]),e)),e)}(i);case 43:return function(e){const n=lJ(e.left,r,V_),i=lJ(e.right,r,V_);return xI(t.createGlobalMethodCall("Math","pow",[n,i]),e)}(i);default:return vJ(i,r,e)}}(i):vJ(i,r,e):i}}function hq(e,t){return{kind:e,expression:t}}function yq(e){const{factory:t,getEmitHelperFactory:n,startLexicalEnvironment:r,resumeLexicalEnvironment:i,endLexicalEnvironment:o,hoistVariableDeclaration:a}=e,s=e.getCompilerOptions(),c=e.getEmitResolver(),l=e.onSubstituteNode,_=e.onEmitNode;let u,d,p,f,m;function g(e){f=ie(f,t.createVariableDeclaration(e))}e.onEmitNode=function(e,t,n){if(1&h&&r_(t)){const r=y(32670,16&Zd(t)?81:65);return _(e,t,n),void b(r,0,0)}_(e,t,n)},e.onSubstituteNode=function(e,n){return n=l(e,n),1===e?function(e){switch(e.kind){case 80:return function(e){if(2&h&&!gA(e)){const n=c.getReferencedDeclarationWithCollidingName(e);if(n&&(!u_(n)||!function(e,t){let n=pc(t);if(!n||n===e||n.end<=e.pos||n.pos>=e.end)return!1;const r=Ep(e);for(;n;){if(n===r||n===e)return!1;if(__(n)&&n.parent===e)return!0;n=n.parent}return!1}(n,e)))return xI(t.getGeneratedNameForNode(Cc(n)),e)}return e}(e);case 110:return function(e){return 1&h&&16&p?xI(P(),e):e}(e)}return e}(n):aD(n)?function(e){if(2&h&&!gA(e)){const n=pc(e,aD);if(n&&function(e){switch(e.parent.kind){case 209:case 264:case 267:case 261:return e.parent.name===e&&c.isDeclarationWithCollidingName(e.parent)}return!1}(n))return xI(t.getGeneratedNameForNode(n),e)}return e}(n):n};let h=0;return $J(e,function(n){if(n.isDeclarationFile)return n;u=n,d=n.text;const i=function(e){const n=y(8064,64),i=[],a=[];r();const s=t.copyPrologue(e.statements,i,!1,S);return se(a,_J(e.statements,S,pu,s)),f&&a.push(t.createVariableStatement(void 0,t.createVariableDeclarationList(f))),t.mergeLexicalEnvironment(i,o()),ce(i,e),b(n,0,0),t.updateSourceFile(e,xI(t.createNodeArray(K(i,a)),e.statements))}(n);return Uw(i,e.readEmitHelpers()),u=void 0,d=void 0,f=void 0,p=0,i});function y(e,t){const n=p;return p=32767&(p&~e|t),n}function b(e,t,n){p=-32768&(p&~t|n)|e}function x(e){return!!(8192&p)&&254===e.kind&&!e.expression}function k(e){return!!(1024&e.transformFlags)||void 0!==m||8192&p&&function(e){return 4194304&e.transformFlags&&(nE(e)||KF(e)||rE(e)||iE(e)||yE(e)||ZE(e)||eP(e)||sE(e)||nP(e)||oE(e)||$_(e,!1)||VF(e))}(e)||$_(e,!1)&&qe(e)||!!(1&ep(e))}function S(e){return k(e)?D(e,!1):e}function T(e){return k(e)?D(e,!0):e}function C(e){if(k(e)){const t=_c(e);if(ND(t)&&Fv(t)){const t=y(32670,16449),n=D(e,!1);return b(t,229376,0),n}return D(e,!1)}return e}function w(e){return 108===e.kind?lt(e,!0):S(e)}function D(n,r){switch(n.kind){case 126:return;case 264:return function(e){const n=t.createVariableDeclaration(t.getLocalName(e,!0),void 0,void 0,O(e));hw(n,e);const r=[],i=t.createVariableStatement(void 0,t.createVariableDeclarationList([n]));if(hw(i,e),xI(i,e),FA(i),r.push(i),Nv(e,32)){const n=Nv(e,2048)?t.createExportDefault(t.getLocalName(e)):t.createExternalModuleExport(t.getLocalName(e));hw(n,i),r.push(n)}return ke(r)}(n);case 232:return function(e){return O(e)}(n);case 170:return function(e){return e.dotDotDotToken?void 0:k_(e.name)?hw(xI(t.createParameterDeclaration(void 0,void 0,t.getGeneratedNameForNode(e),void 0,void 0,void 0),e),e):e.initializer?hw(xI(t.createParameterDeclaration(void 0,void 0,e.name,void 0,void 0,void 0),e),e):e}(n);case 263:return function(n){const r=m;m=void 0;const i=y(32670,65),o=fJ(n.parameters,S,e),a=Se(n),s=32768&p?t.getLocalName(n):n.name;return b(i,229376,0),m=r,t.updateFunctionDeclaration(n,_J(n.modifiers,S,Zl),n.asteriskToken,s,void 0,o,void 0,a)}(n);case 220:return function(n){16384&n.transformFlags&&!(16384&p)&&(p|=131072);const r=m;m=void 0;const i=y(15232,66),o=t.createFunctionExpression(void 0,void 0,void 0,void 0,fJ(n.parameters,S,e),void 0,Se(n));return xI(o,n),hw(o,n),xw(o,16),b(i,0,0),m=r,o}(n);case 219:return function(n){const r=524288&Zd(n)?y(32662,69):y(32670,65),i=m;m=void 0;const o=fJ(n.parameters,S,e),a=Se(n),s=32768&p?t.getLocalName(n):n.name;return b(r,229376,0),m=i,t.updateFunctionExpression(n,void 0,n.asteriskToken,s,void 0,o,void 0,a)}(n);case 261:return we(n);case 80:return A(n);case 262:return function(n){if(7&n.flags||524288&n.transformFlags){7&n.flags&&_t();const e=_J(n.declarations,1&n.flags?Ce:we,lE),r=t.createVariableDeclarationList(e);return hw(r,n),xI(r,n),Aw(r,n),524288&n.transformFlags&&(k_(n.declarations[0].name)||k_(ve(n.declarations).name))&&ww(r,function(e){let t=-1,n=-1;for(const r of e)t=-1===t?r.pos:-1===r.pos?t:Math.min(t,r.pos),n=Math.max(n,r.end);return Ab(t,n)}(e)),r}return vJ(n,S,e)}(n);case 256:return function(t){if(void 0!==m){const n=m.allowedNonLabeledJumps;m.allowedNonLabeledJumps|=2;const r=vJ(t,S,e);return m.allowedNonLabeledJumps=n,r}return vJ(t,S,e)}(n);case 270:return function(t){const n=y(7104,0),r=vJ(t,S,e);return b(n,0,0),r}(n);case 242:return function(t){const n=256&p?y(7104,512):y(6976,128),r=vJ(t,S,e);return b(n,0,0),r}(n);case 253:case 252:return function(n){if(m){const e=253===n.kind?2:4;if(!(n.label&&m.labels&&m.labels.get(gc(n.label))||!n.label&&m.allowedNonLabeledJumps&e)){let e;const r=n.label;r?253===n.kind?(e=`break-${r.escapedText}`,Ge(m,!0,gc(r),e)):(e=`continue-${r.escapedText}`,Ge(m,!1,gc(r),e)):253===n.kind?(m.nonLocalJumps|=2,e="break"):(m.nonLocalJumps|=4,e="continue");let i=t.createStringLiteral(e);if(m.loopOutParameters.length){const e=m.loopOutParameters;let n;for(let r=0;rWF(e)&&!!ge(e.declarationList.declarations).initializer,i=m;m=void 0;const o=_J(n.statements,C,pu);m=i;const a=N(o,r),s=N(o,e=>!r(e)),c=nt(ge(a),WF).declarationList.declarations[0],l=NA(c.initializer);let _=tt(l,rb);!_&&NF(l)&&28===l.operatorToken.kind&&(_=tt(l.left,rb));const u=nt(_?NA(_.right):l,fF),d=nt(NA(u.expression),vF),p=d.body.statements;let f=0,g=-1;const h=[];if(_){const e=tt(p[f],HF);e&&(h.push(e),f++),h.push(p[f]),f++,h.push(t.createExpressionStatement(t.createAssignment(_.left,nt(c.name,aD))))}for(;!nE(pe(p,g));)g--;se(h,p,f,g),g<-1&&se(h,p,g+1);const y=tt(pe(p,g),nE);for(const e of s)nE(e)&&(null==y?void 0:y.expression)&&!aD(y.expression)?h.push(y):h.push(e);return se(h,a,1),t.restoreOuterExpressions(e.expression,t.restoreOuterExpressions(c.initializer,t.restoreOuterExpressions(_&&_.right,t.updateCallExpression(u,t.restoreOuterExpressions(u.expression,t.updateFunctionExpression(d,void 0,void 0,void 0,void 0,d.parameters,void 0,t.updateBlock(d.body,h))),void 0,u.arguments))))}(n);const r=NA(n.expression);return 108===r.kind||am(r)||$(n.arguments,PF)?function(n){if(32768&n.transformFlags||108===n.expression.kind||am(NA(n.expression))){const{target:e,thisArg:r}=t.createCallBinding(n.expression,a);let i;if(108===n.expression.kind&&xw(r,8),i=32768&n.transformFlags?t.createFunctionApplyCall(un.checkDefined(lJ(e,w,V_)),108===n.expression.kind?r:un.checkDefined(lJ(r,S,V_)),rt(n.arguments,!0,!1,!1)):xI(t.createFunctionCallCall(un.checkDefined(lJ(e,w,V_)),108===n.expression.kind?r:un.checkDefined(lJ(r,S,V_)),_J(n.arguments,S,V_)),n),108===n.expression.kind){const e=t.createLogicalOr(i,Z());i=t.createAssignment(P(),e)}return hw(i,n)}return lf(n)&&(p|=131072),vJ(n,S,e)}(n):t.updateCallExpression(n,un.checkDefined(lJ(n.expression,w,V_)),void 0,_J(n.arguments,S,V_))}(n);case 215:return function(n){if($(n.arguments,PF)){const{target:e,thisArg:r}=t.createCallBinding(t.createPropertyAccessExpression(n.expression,"bind"),a);return t.createNewExpression(t.createFunctionApplyCall(un.checkDefined(lJ(e,S,V_)),r,rt(t.createNodeArray([t.createVoidZero(),...n.arguments]),!0,!1,!1)),void 0,[])}return vJ(n,S,e)}(n);case 218:return function(t,n){return vJ(t,n?T:S,e)}(n,r);case 227:return Te(n,r);case 357:return function(n,r){if(r)return vJ(n,T,e);let i;for(let e=0;e0&&e.push(t.createStringLiteral(r.literal.text)),n=t.createCallExpression(t.createPropertyAccessExpression(n,"concat"),void 0,e)}return xI(n,e)}(n);case 231:return function(e){return lJ(e.expression,S,V_)}(n);case 108:return lt(n,!1);case 110:return function(e){return p|=65536,2&p&&!(16384&p)&&(p|=131072),m?2&p?(m.containsLexicalThis=!0,e):m.thisName||(m.thisName=t.createUniqueName("this")):e}(n);case 237:return function(e){return 105===e.keywordToken&&"target"===e.name.escapedText?(p|=32768,t.createUniqueName("_newTarget",48)):e}(n);case 175:return function(e){un.assert(!kD(e.name));const n=xe(e,Ob(e,-1),void 0,void 0);return xw(n,1024|Zd(n)),xI(t.createPropertyAssignment(e.name,n),e)}(n);case 178:case 179:return function(n){un.assert(!kD(n.name));const r=m;m=void 0;const i=y(32670,65);let o;const a=fJ(n.parameters,S,e),s=Se(n);return o=178===n.kind?t.updateGetAccessorDeclaration(n,n.modifiers,n.name,a,n.type,s):t.updateSetAccessorDeclaration(n,n.modifiers,n.name,a,s),b(i,229376,0),m=r,o}(n);case 244:return function(n){const r=y(0,Nv(n,32)?32:0);let i;if(!m||7&n.declarationList.flags||function(e){return 1===e.declarationList.declarations.length&&!!e.declarationList.declarations[0].initializer&&!!(1&ep(e.declarationList.declarations[0].initializer))}(n))i=vJ(n,S,e);else{let r;for(const i of n.declarationList.declarations)if(Ve(m,i),i.initializer){let n;k_(i.name)?n=Cz(i,S,e,0):(n=t.createBinaryExpression(i.name,64,un.checkDefined(lJ(i.initializer,S,V_))),xI(n,i)),r=ie(r,n)}i=r?xI(t.createExpressionStatement(t.inlineExpressions(r)),n):void 0}return b(r,0,0),i}(n);case 254:return function(n){return m?(m.nonLocalJumps|=8,x(n)&&(n=F(n)),t.createReturnStatement(t.createObjectLiteralExpression([t.createPropertyAssignment(t.createIdentifier("value"),n.expression?un.checkDefined(lJ(n.expression,S,V_)):t.createVoidZero())]))):x(n)?F(n):vJ(n,S,e)}(n);default:return vJ(n,S,e)}}function F(e){return hw(t.createReturnStatement(P()),e)}function P(){return t.createUniqueName("_this",48)}function A(e){return m&&c.isArgumentsLocalBinding(e)?m.argumentsName||(m.argumentsName=t.createUniqueName("arguments")):256&e.flags?hw(xI(t.createIdentifier(mc(e.escapedText)),e),e):e}function O(a){a.name&&_t();const s=vh(a),c=t.createFunctionExpression(void 0,void 0,void 0,void 0,s?[t.createParameterDeclaration(void 0,void 0,ct())]:[],void 0,function(a,s){const c=[],l=t.getInternalName(a),_=Ph(l)?t.getGeneratedNameForNode(l):l;r(),function(e,r,i){i&&e.push(xI(t.createExpressionStatement(n().createExtendsHelper(t.getInternalName(r))),i))}(c,a,s),function(n,r,a,s){const c=m;m=void 0;const l=y(32662,73),_=iv(r),u=function(e,t){if(!e||!t)return!1;if($(e.parameters))return!1;const n=fe(e.body.statements);if(!n||!ey(n)||245!==n.kind)return!1;const r=n.expression;if(!ey(r)||214!==r.kind)return!1;const i=r.expression;if(!ey(i)||108!==i.kind)return!1;const o=be(r.arguments);if(!o||!ey(o)||231!==o.kind)return!1;const a=o.expression;return aD(a)&&"arguments"===a.escapedText}(_,void 0!==s),d=t.createFunctionDeclaration(void 0,void 0,a,void 0,function(t,n){return fJ(t&&!n?t.parameters:void 0,S,e)||[]}(_,u),void 0,function(e,n,r,a){const s=!!r&&106!==NA(r.expression).kind;if(!e)return function(e,n){const r=[];i(),t.mergeLexicalEnvironment(r,o()),n&&r.push(t.createReturnStatement(t.createLogicalOr(t.createLogicalAnd(t.createStrictInequality(ct(),t.createNull()),t.createFunctionApplyCall(ct(),Z(),t.createIdentifier("arguments"))),Z())));const a=t.createNodeArray(r);xI(a,e.members);const s=t.createBlock(a,!0);return xI(s,e),xw(s,3072),s}(n,s);const c=[],l=[];i();const _=t.copyStandardPrologue(e.body.statements,c,0);(a||j(e.body))&&(p|=8192),se(l,_J(e.body.statements,S,pu,_));const u=s||8192&p;ne(c,e),ae(c,e,a),_e(c,e),u?le(c,e,Z()):ce(c,e),t.mergeLexicalEnvironment(c,o()),u&&!Y(e.body)&&l.push(t.createReturnStatement(P()));const d=t.createBlock(xI(t.createNodeArray([...c,...l]),e.body.statements),!0);return xI(d,e.body),function(e,n,r){const i=e;return e=function(e){for(let n=0;n0;n--){const i=e.statements[n];if(nE(i)&&i.expression&&M(i.expression)){const i=e.statements[n-1];let o;if(HF(i)&&H(NA(i.expression)))o=i.expression;else if(r&&B(i)){const e=i.declarationList.declarations[0];G(NA(e.initializer))&&(o=t.createAssignment(P(),e.initializer))}if(!o)break;const a=t.createReturnStatement(o);hw(a,i),xI(a,i);const s=t.createNodeArray([...e.statements.slice(0,n-1),a,...e.statements.slice(n+1)]);return xI(s,e.statements),t.updateBlock(e,s)}}return e}(e,n),e!==i&&(e=function(e,n){if(16384&n.transformFlags||65536&p||131072&p)return e;for(const t of n.statements)if(134217728&t.transformFlags&&!oz(t))return e;return t.updateBlock(e,_J(e.statements,X,pu))}(e,n)),r&&(e=function(e){return t.updateBlock(e,_J(e.statements,Q,pu))}(e)),e}(d,e.body,a)}(_,r,s,u));xI(d,_||r),s&&xw(d,16),n.push(d),b(l,229376,0),m=c}(c,a,_,s),function(e,t){for(const n of t.members)switch(n.kind){case 241:e.push(ue(n));break;case 175:e.push(de(ut(t,n),n,t));break;case 178:case 179:const r=pv(t.members,n);n===r.firstAccessor&&e.push(me(ut(t,n),r,t));break;case 177:case 176:break;default:un.failBadSyntaxKind(n,u&&u.fileName)}}(c,a);const f=Mb(Qa(d,a.members.end),20),g=t.createPartiallyEmittedExpression(_);TT(g,f.end),xw(g,3072);const h=t.createReturnStatement(g);ST(h,f.pos),xw(h,3840),c.push(h),Od(c,o());const v=t.createBlock(xI(t.createNodeArray(c),a.members),!0);return xw(v,3072),v}(a,s));xw(c,131072&Zd(a)|1048576);const l=t.createPartiallyEmittedExpression(c);TT(l,a.end),xw(l,3072);const _=t.createPartiallyEmittedExpression(l);TT(_,Qa(d,a.pos)),xw(_,3072);const f=t.createParenthesizedExpression(t.createCallExpression(_,void 0,s?[un.checkDefined(lJ(s.expression,S,V_))]:[]));return Lw(f,3,"* @class "),f}function L(e){return WF(e)&&v(e.declarationList.declarations,e=>aD(e.name)&&!e.initializer)}function j(e){if(lf(e))return!0;if(!(134217728&e.transformFlags))return!1;switch(e.kind){case 220:case 219:case 263:case 177:case 176:return!1;case 178:case 179:case 175:case 173:{const t=e;return!!kD(t.name)&&!!XI(t.name,j)}}return!!XI(e,j)}function M(e){return Wl(e)&&"_this"===gc(e)}function R(e){return Wl(e)&&"_super"===gc(e)}function B(e){return WF(e)&&1===e.declarationList.declarations.length&&function(e){return lE(e)&&M(e.name)&&!!e.initializer}(e.declarationList.declarations[0])}function J(e){return rb(e,!0)&&M(e.left)}function z(e){return fF(e)&&dF(e.expression)&&R(e.expression.expression)&&aD(e.expression.name)&&("call"===gc(e.expression.name)||"apply"===gc(e.expression.name))&&e.arguments.length>=1&&110===e.arguments[0].kind}function q(e){return NF(e)&&57===e.operatorToken.kind&&110===e.right.kind&&z(e.left)}function U(e){return NF(e)&&56===e.operatorToken.kind&&NF(e.left)&&38===e.left.operatorToken.kind&&R(e.left.left)&&106===e.left.right.kind&&z(e.right)&&"apply"===gc(e.right.expression.name)}function W(e){return NF(e)&&57===e.operatorToken.kind&&110===e.right.kind&&U(e.left)}function H(e){return J(e)&&q(e.right)}function G(e){return z(e)||q(e)||H(e)||U(e)||W(e)||function(e){return J(e)&&W(e.right)}(e)}function X(e){if(B(e)){if(110===e.declarationList.declarations[0].initializer.kind)return}else if(J(e))return t.createPartiallyEmittedExpression(e.right,e);switch(e.kind){case 220:case 219:case 263:case 177:case 176:return e;case 178:case 179:case 175:case 173:{const n=e;return kD(n.name)?t.replacePropertyName(n,vJ(n.name,X,void 0)):e}}return vJ(e,X,void 0)}function Q(e){if(z(e)&&2===e.arguments.length&&aD(e.arguments[1])&&"arguments"===gc(e.arguments[1]))return t.createLogicalAnd(t.createStrictInequality(ct(),t.createNull()),e);switch(e.kind){case 220:case 219:case 263:case 177:case 176:return e;case 178:case 179:case 175:case 173:{const n=e;return kD(n.name)?t.replacePropertyName(n,vJ(n.name,Q,void 0)):e}}return vJ(e,Q,void 0)}function Y(e){if(254===e.kind)return!0;if(246===e.kind){const t=e;if(t.elseStatement)return Y(t.thenStatement)&&Y(t.elseStatement)}else if(242===e.kind){const t=ye(e.statements);if(t&&Y(t))return!0}return!1}function Z(){return xw(t.createThis(),8)}function ee(e){return void 0!==e.initializer||k_(e.name)}function ne(e,t){if(!$(t.parameters,ee))return!1;let n=!1;for(const r of t.parameters){const{name:t,initializer:i,dotDotDotToken:o}=r;o||(k_(t)?n=re(e,r,t,i)||n:i&&(oe(e,r,t,i),n=!0))}return n}function re(n,r,i,o){return i.elements.length>0?(Md(n,xw(t.createVariableStatement(void 0,t.createVariableDeclarationList(Dz(r,S,e,0,t.getGeneratedNameForNode(r)))),2097152)),!0):!!o&&(Md(n,xw(t.createExpressionStatement(t.createAssignment(t.getGeneratedNameForNode(r),un.checkDefined(lJ(o,S,V_)))),2097152)),!0)}function oe(e,n,r,i){i=un.checkDefined(lJ(i,S,V_));const o=t.createIfStatement(t.createTypeCheck(t.cloneNode(r),"undefined"),xw(xI(t.createBlock([t.createExpressionStatement(xw(xI(t.createAssignment(xw(DT(xI(t.cloneNode(r),r),r.parent),96),xw(i,3168|Zd(i))),n),3072))]),n),3905));FA(o),xI(o,n),xw(o,2101056),Md(e,o)}function ae(n,r,i){const o=[],a=ye(r.parameters);if(!function(e,t){return!(!e||!e.dotDotDotToken||t)}(a,i))return!1;const s=80===a.name.kind?DT(xI(t.cloneNode(a.name),a.name),a.name.parent):t.createTempVariable(void 0);xw(s,96);const c=80===a.name.kind?t.cloneNode(a.name):s,l=r.parameters.length-1,_=t.createLoopVariable();o.push(xw(xI(t.createVariableStatement(void 0,t.createVariableDeclarationList([t.createVariableDeclaration(s,void 0,void 0,t.createArrayLiteralExpression([]))])),a),2097152));const u=t.createForStatement(xI(t.createVariableDeclarationList([t.createVariableDeclaration(_,void 0,void 0,t.createNumericLiteral(l))]),a),xI(t.createLessThan(_,t.createPropertyAccessExpression(t.createIdentifier("arguments"),"length")),a),xI(t.createPostfixIncrement(_),a),t.createBlock([FA(xI(t.createExpressionStatement(t.createAssignment(t.createElementAccessExpression(c,0===l?_:t.createSubtract(_,t.createNumericLiteral(l))),t.createElementAccessExpression(t.createIdentifier("arguments"),_))),a))]));return xw(u,2097152),FA(u),o.push(u),80!==a.name.kind&&o.push(xw(xI(t.createVariableStatement(void 0,t.createVariableDeclarationList(Dz(a,S,e,0,c))),a),2097152)),Ld(n,o),!0}function ce(e,n){return!!(131072&p&&220!==n.kind)&&(le(e,n,t.createThis()),!0)}function le(n,r,i){1&h||(h|=1,e.enableSubstitution(110),e.enableEmitNotification(177),e.enableEmitNotification(175),e.enableEmitNotification(178),e.enableEmitNotification(179),e.enableEmitNotification(220),e.enableEmitNotification(219),e.enableEmitNotification(263));const o=t.createVariableStatement(void 0,t.createVariableDeclarationList([t.createVariableDeclaration(P(),void 0,void 0,i)]));xw(o,2100224),ww(o,r),Md(n,o)}function _e(e,n){if(32768&p){let r;switch(n.kind){case 220:return e;case 175:case 178:case 179:r=t.createVoidZero();break;case 177:r=t.createPropertyAccessExpression(xw(t.createThis(),8),"constructor");break;case 263:case 219:r=t.createConditionalExpression(t.createLogicalAnd(xw(t.createThis(),8),t.createBinaryExpression(xw(t.createThis(),8),104,t.getLocalName(n))),void 0,t.createPropertyAccessExpression(xw(t.createThis(),8),"constructor"),void 0,t.createVoidZero());break;default:return un.failBadSyntaxKind(n)}const i=t.createVariableStatement(void 0,t.createVariableDeclarationList([t.createVariableDeclaration(t.createUniqueName("_newTarget",48),void 0,void 0,r)]));xw(i,2100224),Md(e,i)}return e}function ue(e){return xI(t.createEmptyStatement(),e)}function de(n,r,i){const o=Pw(r),a=Cw(r),s=xe(r,r,void 0,i),c=lJ(r.name,S,t_);let l;if(un.assert(c),!sD(c)&&Ik(e.getCompilerOptions())){const e=kD(c)?c.expression:aD(c)?t.createStringLiteral(mc(c.escapedText)):c;l=t.createObjectDefinePropertyCall(n,e,t.createPropertyDescriptor({value:s,enumerable:!1,writable:!0,configurable:!0}))}else{const e=oA(t,n,c,r.name);l=t.createAssignment(e,s)}xw(s,3072),ww(s,a);const _=xI(t.createExpressionStatement(l),r);return hw(_,r),Aw(_,o),xw(_,96),_}function me(e,n,r){const i=t.createExpressionStatement(he(e,n,r,!1));return xw(i,3072),ww(i,Cw(n.firstAccessor)),i}function he(e,{firstAccessor:n,getAccessor:r,setAccessor:i},o,a){const s=DT(xI(t.cloneNode(e),e),e.parent);xw(s,3136),ww(s,n.name);const c=lJ(n.name,S,t_);if(un.assert(c),sD(c))return un.failBadSyntaxKind(c,"Encountered unhandled private identifier while transforming ES2015.");const l=pA(t,c);xw(l,3104),ww(l,n.name);const _=[];if(r){const e=xe(r,void 0,void 0,o);ww(e,Cw(r)),xw(e,1024);const n=t.createPropertyAssignment("get",e);Aw(n,Pw(r)),_.push(n)}if(i){const e=xe(i,void 0,void 0,o);ww(e,Cw(i)),xw(e,1024);const n=t.createPropertyAssignment("set",e);Aw(n,Pw(i)),_.push(n)}_.push(t.createPropertyAssignment("enumerable",r||i?t.createFalse():t.createTrue()),t.createPropertyAssignment("configurable",t.createTrue()));const u=t.createCallExpression(t.createPropertyAccessExpression(t.createIdentifier("Object"),"defineProperty"),void 0,[s,l,t.createObjectLiteralExpression(_,!0)]);return a&&FA(u),u}function xe(n,r,i,o){const a=m;m=void 0;const s=o&&u_(o)&&!Dv(n)?y(32670,73):y(32670,65),c=fJ(n.parameters,S,e),l=Se(n);return 32768&p&&!i&&(263===n.kind||219===n.kind)&&(i=t.getGeneratedNameForNode(n)),b(s,229376,0),m=a,hw(xI(t.createFunctionExpression(void 0,n.asteriskToken,i,void 0,c,void 0,l),r),n)}function Se(e){let n,r,a=!1,s=!1;const c=[],l=[],_=e.body;let d;if(i(),VF(_)&&(d=t.copyStandardPrologue(_.statements,c,0,!1),d=t.copyCustomPrologue(_.statements,l,d,S,mf),d=t.copyCustomPrologue(_.statements,l,d,S,hf)),a=ne(l,e)||a,a=ae(l,e,!1)||a,VF(_))d=t.copyCustomPrologue(_.statements,l,d,S),n=_.statements,se(l,_J(_.statements,S,pu,d)),!a&&_.multiLine&&(a=!0);else{un.assert(220===e.kind),n=Ib(_,-1);const i=e.equalsGreaterThanToken;ey(i)||ey(_)||(qb(i,_,u)?s=!0:a=!0);const o=lJ(_,S,V_),c=t.createReturnStatement(o);xI(c,_),Bw(c,_),xw(c,2880),l.push(c),r=_}if(t.mergeLexicalEnvironment(c,o()),_e(c,e),ce(c,e),$(c)&&(a=!0),l.unshift(...c),VF(_)&&te(l,_.statements))return _;const p=t.createBlock(xI(t.createNodeArray(l),n),a);return xI(p,e.body),!a&&s&&xw(p,1),r&&Dw(p,20,r),hw(p,e.body),p}function Te(n,r){return ib(n)?Cz(n,S,e,0,!r):28===n.operatorToken.kind?t.updateBinaryExpression(n,un.checkDefined(lJ(n.left,T,V_)),n.operatorToken,un.checkDefined(lJ(n.right,r?T:S,V_))):vJ(n,S,e)}function Ce(n){return k_(n.name)?we(n):!n.initializer&&function(e){const t=c.hasNodeCheckFlag(e,16384),n=c.hasNodeCheckFlag(e,32768);return!(64&p||t&&n&&512&p)&&!(4096&p)&&(!c.isDeclarationWithCollidingName(e)||n&&!t&&!(6144&p))}(n)?t.updateVariableDeclaration(n,n.name,void 0,void 0,t.createVoidZero()):vJ(n,S,e)}function we(t){const n=y(32,0);let r;return r=k_(t.name)?Dz(t,S,e,0,void 0,!!(32&n)):vJ(t,S,e),b(n,0,0),r}function Ne(e){m.labels.set(gc(e.label),!0)}function De(e){m.labels.set(gc(e.label),!1)}function Fe(n,i,a,s,c){const l=y(n,i),_=function(n,i,a,s){if(!qe(n)){let r;m&&(r=m.allowedNonLabeledJumps,m.allowedNonLabeledJumps=6);const o=s?s(n,i,void 0,a):t.restoreEnclosingLabel(QF(n)?function(e){return t.updateForStatement(e,lJ(e.initializer,T,eu),lJ(e.condition,S,V_),lJ(e.incrementor,T,V_),un.checkDefined(lJ(e.statement,S,pu,t.liftToBlock)))}(n):vJ(n,S,e),i,m&&De);return m&&(m.allowedNonLabeledJumps=r),o}const c=function(e){let t;switch(e.kind){case 249:case 250:case 251:const n=e.initializer;n&&262===n.kind&&(t=n)}const n=[],r=[];if(t&&7&ac(t)){const i=Be(e)||Je(e)||ze(e);for(const o of t.declarations)Qe(e,o,n,r,i)}const i={loopParameters:n,loopOutParameters:r};return m&&(m.argumentsName&&(i.argumentsName=m.argumentsName),m.thisName&&(i.thisName=m.thisName),m.hoistedLocalVariables&&(i.hoistedLocalVariables=m.hoistedLocalVariables)),i}(n),l=[],_=m;m=c;const u=Be(n)?function(e,n){const r=t.createUniqueName("_loop_init"),i=!!(1048576&e.initializer.transformFlags);let o=0;n.containsLexicalThis&&(o|=16),i&&4&p&&(o|=524288);const a=[];a.push(t.createVariableStatement(void 0,e.initializer)),Ke(n.loopOutParameters,2,1,a);return{functionName:r,containsYield:i,functionDeclaration:t.createVariableStatement(void 0,xw(t.createVariableDeclarationList([t.createVariableDeclaration(r,void 0,void 0,xw(t.createFunctionExpression(void 0,i?t.createToken(42):void 0,void 0,void 0,void 0,void 0,un.checkDefined(lJ(t.createBlock(a,!0),S,VF))),o))]),4194304)),part:t.createVariableDeclarationList(E(n.loopOutParameters,$e))}}(n,c):void 0,d=Ue(n)?function(e,n,i){const a=t.createUniqueName("_loop");r();const s=lJ(e.statement,S,pu,t.liftToBlock),c=o(),l=[];(Je(e)||ze(e))&&(n.conditionVariable=t.createUniqueName("inc"),e.incrementor?l.push(t.createIfStatement(n.conditionVariable,t.createExpressionStatement(un.checkDefined(lJ(e.incrementor,S,V_))),t.createExpressionStatement(t.createAssignment(n.conditionVariable,t.createTrue())))):l.push(t.createIfStatement(t.createLogicalNot(n.conditionVariable),t.createExpressionStatement(t.createAssignment(n.conditionVariable,t.createTrue())))),Je(e)&&l.push(t.createIfStatement(t.createPrefixUnaryExpression(54,un.checkDefined(lJ(e.condition,S,V_))),un.checkDefined(lJ(t.createBreakStatement(),S,pu))))),un.assert(s),VF(s)?se(l,s.statements):l.push(s),Ke(n.loopOutParameters,1,1,l),Od(l,c);const _=t.createBlock(l,!0);VF(s)&&hw(_,s);const u=!!(1048576&e.statement.transformFlags);let d=1048576;n.containsLexicalThis&&(d|=16),u&&4&p&&(d|=524288);const f=t.createVariableStatement(void 0,xw(t.createVariableDeclarationList([t.createVariableDeclaration(a,void 0,void 0,xw(t.createFunctionExpression(void 0,u?t.createToken(42):void 0,void 0,void 0,n.loopParameters,void 0,_),d))]),4194304)),m=function(e,n,r,i){const o=[],a=!(-5&n.nonLocalJumps||n.labeledNonLocalBreaks||n.labeledNonLocalContinues),s=t.createCallExpression(e,void 0,E(n.loopParameters,e=>e.name)),c=i?t.createYieldExpression(t.createToken(42),xw(s,8388608)):s;if(a)o.push(t.createExpressionStatement(c)),Ke(n.loopOutParameters,1,0,o);else{const e=t.createUniqueName("state"),i=t.createVariableStatement(void 0,t.createVariableDeclarationList([t.createVariableDeclaration(e,void 0,void 0,c)]));if(o.push(i),Ke(n.loopOutParameters,1,0,o),8&n.nonLocalJumps){let n;r?(r.nonLocalJumps|=8,n=t.createReturnStatement(e)):n=t.createReturnStatement(t.createPropertyAccessExpression(e,"value")),o.push(t.createIfStatement(t.createTypeCheck(e,"object"),n))}if(2&n.nonLocalJumps&&o.push(t.createIfStatement(t.createStrictEquality(e,t.createStringLiteral("break")),t.createBreakStatement())),n.labeledNonLocalBreaks||n.labeledNonLocalContinues){const i=[];Xe(n.labeledNonLocalBreaks,!0,e,r,i),Xe(n.labeledNonLocalContinues,!1,e,r,i),o.push(t.createSwitchStatement(e,t.createCaseBlock(i)))}}return o}(a,n,i,u);return{functionName:a,containsYield:u,functionDeclaration:f,part:m}}(n,c,_):void 0;let f;if(m=_,u&&l.push(u.functionDeclaration),d&&l.push(d.functionDeclaration),function(e,n,r){let i;if(n.argumentsName&&(r?r.argumentsName=n.argumentsName:(i||(i=[])).push(t.createVariableDeclaration(n.argumentsName,void 0,void 0,t.createIdentifier("arguments")))),n.thisName&&(r?r.thisName=n.thisName:(i||(i=[])).push(t.createVariableDeclaration(n.thisName,void 0,void 0,t.createIdentifier("this")))),n.hoistedLocalVariables)if(r)r.hoistedLocalVariables=n.hoistedLocalVariables;else{i||(i=[]);for(const e of n.hoistedLocalVariables)i.push(t.createVariableDeclaration(e))}if(n.loopOutParameters.length){i||(i=[]);for(const e of n.loopOutParameters)i.push(t.createVariableDeclaration(e.outParamName))}n.conditionVariable&&(i||(i=[]),i.push(t.createVariableDeclaration(n.conditionVariable,void 0,void 0,t.createFalse()))),i&&e.push(t.createVariableStatement(void 0,t.createVariableDeclarationList(i)))}(l,c,_),u&&l.push(function(e,n){const r=t.createCallExpression(e,void 0,[]),i=n?t.createYieldExpression(t.createToken(42),xw(r,8388608)):r;return t.createExpressionStatement(i)}(u.functionName,u.containsYield)),d)if(s)f=s(n,i,d.part,a);else{const e=We(n,u,t.createBlock(d.part,!0));f=t.restoreEnclosingLabel(e,i,m&&De)}else{const e=We(n,u,un.checkDefined(lJ(n.statement,S,pu,t.liftToBlock)));f=t.restoreEnclosingLabel(e,i,m&&De)}return l.push(f),l}(a,s,l,c);return b(l,0,0),_}function Ee(e,t){return Fe(0,1280,e,t)}function Pe(e,t){return Fe(5056,3328,e,t)}function Ae(e,t){return Fe(3008,5376,e,t)}function Ie(e,t){return Fe(3008,5376,e,t,s.downlevelIteration?Me:je)}function Oe(n,r,i){const o=[],a=n.initializer;if(_E(a)){7&n.initializer.flags&&_t();const i=fe(a.declarations);if(i&&k_(i.name)){const a=Dz(i,S,e,0,r),s=xI(t.createVariableDeclarationList(a),n.initializer);hw(s,n.initializer),ww(s,Ab(a[0].pos,ve(a).end)),o.push(t.createVariableStatement(void 0,s))}else o.push(xI(t.createVariableStatement(void 0,hw(xI(t.createVariableDeclarationList([t.createVariableDeclaration(i?i.name:t.createTempVariable(void 0),void 0,void 0,r)]),Ob(a,-1)),a)),Ib(a,-1)))}else{const e=t.createAssignment(a,r);ib(e)?o.push(t.createExpressionStatement(Te(e,!0))):(TT(e,a.end),o.push(xI(t.createExpressionStatement(un.checkDefined(lJ(e,S,V_))),Ib(a,-1))))}if(i)return Le(se(o,i));{const e=lJ(n.statement,S,pu,t.liftToBlock);return un.assert(e),VF(e)?t.updateBlock(e,xI(t.createNodeArray(K(o,e.statements)),e.statements)):(o.push(e),Le(o))}}function Le(e){return xw(t.createBlock(t.createNodeArray(e),!0),864)}function je(e,n,r){const i=lJ(e.expression,S,V_);un.assert(i);const o=t.createLoopVariable(),a=aD(i)?t.getGeneratedNameForNode(i):t.createTempVariable(void 0);xw(i,96|Zd(i));const s=xI(t.createForStatement(xw(xI(t.createVariableDeclarationList([xI(t.createVariableDeclaration(o,void 0,void 0,t.createNumericLiteral(0)),Ob(e.expression,-1)),xI(t.createVariableDeclaration(a,void 0,void 0,i),e.expression)]),e.expression),4194304),xI(t.createLessThan(o,t.createPropertyAccessExpression(a,"length")),e.expression),xI(t.createPostfixIncrement(o),e.expression),Oe(e,t.createElementAccessExpression(a,o),r)),e);return xw(s,512),xI(s,e),t.restoreEnclosingLabel(s,n,m&&De)}function Me(e,r,i,o){const s=lJ(e.expression,S,V_);un.assert(s);const c=aD(s)?t.getGeneratedNameForNode(s):t.createTempVariable(void 0),l=aD(s)?t.getGeneratedNameForNode(c):t.createTempVariable(void 0),_=t.createUniqueName("e"),u=t.getGeneratedNameForNode(_),d=t.createTempVariable(void 0),p=xI(n().createValuesHelper(s),e.expression),f=t.createCallExpression(t.createPropertyAccessExpression(c,"next"),void 0,[]);a(_),a(d);const g=1024&o?t.inlineExpressions([t.createAssignment(_,t.createVoidZero()),p]):p,h=xw(xI(t.createForStatement(xw(xI(t.createVariableDeclarationList([xI(t.createVariableDeclaration(c,void 0,void 0,g),e.expression),t.createVariableDeclaration(l,void 0,void 0,f)]),e.expression),4194304),t.createLogicalNot(t.createPropertyAccessExpression(l,"done")),t.createAssignment(l,f),Oe(e,t.createPropertyAccessExpression(l,"value"),i)),e),512);return t.createTryStatement(t.createBlock([t.restoreEnclosingLabel(h,r,m&&De)]),t.createCatchClause(t.createVariableDeclaration(u),xw(t.createBlock([t.createExpressionStatement(t.createAssignment(_,t.createObjectLiteralExpression([t.createPropertyAssignment("error",u)])))]),1)),t.createBlock([t.createTryStatement(t.createBlock([xw(t.createIfStatement(t.createLogicalAnd(t.createLogicalAnd(l,t.createLogicalNot(t.createPropertyAccessExpression(l,"done"))),t.createAssignment(d,t.createPropertyAccessExpression(c,"return"))),t.createExpressionStatement(t.createFunctionCallCall(d,c,[]))),1)]),void 0,xw(t.createBlock([xw(t.createIfStatement(_,t.createThrowStatement(t.createPropertyAccessExpression(_,"error"))),1)]),1))]))}function Re(e){return c.hasNodeCheckFlag(e,8192)}function Be(e){return QF(e)&&!!e.initializer&&Re(e.initializer)}function Je(e){return QF(e)&&!!e.condition&&Re(e.condition)}function ze(e){return QF(e)&&!!e.incrementor&&Re(e.incrementor)}function qe(e){return Ue(e)||Be(e)}function Ue(e){return c.hasNodeCheckFlag(e,4096)}function Ve(e,t){e.hoistedLocalVariables||(e.hoistedLocalVariables=[]),function t(n){if(80===n.kind)e.hoistedLocalVariables.push(n);else for(const e of n.elements)IF(e)||t(e.name)}(t.name)}function We(e,n,r){switch(e.kind){case 249:return function(e,n,r){const i=e.condition&&Re(e.condition),o=i||e.incrementor&&Re(e.incrementor);return t.updateForStatement(e,lJ(n?n.part:e.initializer,T,eu),lJ(i?void 0:e.condition,S,V_),lJ(o?void 0:e.incrementor,T,V_),r)}(e,n,r);case 250:return function(e,n){return t.updateForInStatement(e,un.checkDefined(lJ(e.initializer,S,eu)),un.checkDefined(lJ(e.expression,S,V_)),n)}(e,r);case 251:return function(e,n){return t.updateForOfStatement(e,void 0,un.checkDefined(lJ(e.initializer,S,eu)),un.checkDefined(lJ(e.expression,S,V_)),n)}(e,r);case 247:return function(e,n){return t.updateDoStatement(e,n,un.checkDefined(lJ(e.expression,S,V_)))}(e,r);case 248:return function(e,n){return t.updateWhileStatement(e,un.checkDefined(lJ(e.expression,S,V_)),n)}(e,r);default:return un.failBadSyntaxKind(e,"IterationStatement expected")}}function $e(e){return t.createVariableDeclaration(e.originalName,void 0,void 0,e.outParamName)}function He(e,n){const r=0===n?e.outParamName:e.originalName,i=0===n?e.originalName:e.outParamName;return t.createBinaryExpression(i,64,r)}function Ke(e,n,r,i){for(const o of e)o.flags&n&&i.push(t.createExpressionStatement(He(o,r)))}function Ge(e,t,n,r){t?(e.labeledNonLocalBreaks||(e.labeledNonLocalBreaks=new Map),e.labeledNonLocalBreaks.set(n,r)):(e.labeledNonLocalContinues||(e.labeledNonLocalContinues=new Map),e.labeledNonLocalContinues.set(n,r))}function Xe(e,n,r,i,o){e&&e.forEach((e,a)=>{const s=[];if(!i||i.labels&&i.labels.get(a)){const e=t.createIdentifier(a);s.push(n?t.createBreakStatement(e):t.createContinueStatement(e))}else Ge(i,n,a,e),s.push(t.createReturnStatement(r));o.push(t.createCaseClause(t.createStringLiteral(e),s))})}function Qe(e,n,r,i,o){const a=n.name;if(k_(a))for(const t of a.elements)IF(t)||Qe(e,t,r,i,o);else{r.push(t.createParameterDeclaration(void 0,void 0,a));const s=c.hasNodeCheckFlag(n,65536);if(s||o){const r=t.createUniqueName("out_"+gc(a));let o=0;s&&(o|=1),QF(e)&&(e.initializer&&c.isBindingCapturedByNode(e.initializer,n)&&(o|=2),(e.condition&&c.isBindingCapturedByNode(e.condition,n)||e.incrementor&&c.isBindingCapturedByNode(e.incrementor,n))&&(o|=1)),i.push({flags:o,originalName:a,outParamName:r})}}}function Ye(e,n,r){const i=t.createAssignment(oA(t,n,un.checkDefined(lJ(e.name,S,t_))),un.checkDefined(lJ(e.initializer,S,V_)));return xI(i,e),r&&FA(i),i}function Ze(e,n,r){const i=t.createAssignment(oA(t,n,un.checkDefined(lJ(e.name,S,t_))),t.cloneNode(e.name));return xI(i,e),r&&FA(i),i}function et(e,n,r,i){const o=t.createAssignment(oA(t,n,un.checkDefined(lJ(e.name,S,t_))),xe(e,e,void 0,r));return xI(o,e),i&&FA(o),o}function rt(e,r,i,o){const a=e.length,c=I(V(e,it,(e,t,n,r)=>t(e,i,o&&r===a)));if(1===c.length){const e=c[0];if(r&&!s.downlevelIteration||PT(e.expression)||JN(e.expression,"___spreadArray"))return e.expression}const l=n(),_=0!==c[0].kind;let u=_?t.createArrayLiteralExpression():c[0].expression;for(let e=_?0:1;e0?t.inlineExpressions(E(i,G)):void 0,lJ(n.condition,R,V_),lJ(n.incrementor,R,V_),hJ(n.statement,R,e))}else n=vJ(n,R,e);return m&&ce(),n}(r);case 250:return function(n){m&&ae();const r=n.initializer;if(_E(r)){for(const e of r.declarations)a(e.name);n=t.updateForInStatement(n,r.declarations[0].name,un.checkDefined(lJ(n.expression,R,V_)),un.checkDefined(lJ(n.statement,R,pu,t.liftToBlock)))}else n=vJ(n,R,e);return m&&ce(),n}(r);case 253:return function(t){if(m){const e=me(t.label&&gc(t.label));if(e>0)return be(e,t)}return vJ(t,R,e)}(r);case 252:return function(t){if(m){const e=ge(t.label&&gc(t.label));if(e>0)return be(e,t)}return vJ(t,R,e)}(r);case 254:return function(e){return n=lJ(e.expression,R,V_),r=e,xI(t.createReturnStatement(t.createArrayLiteralExpression(n?[ve(2),n]:[ve(2)])),r);var n,r}(r);default:return 1048576&r.transformFlags?function(r){switch(r.kind){case 227:return function(n){const r=ny(n);switch(r){case 0:return function(n){return X(n.right)?Gv(n.operatorToken.kind)?function(e){const t=ee(),n=Z();return Se(n,un.checkDefined(lJ(e.left,R,V_)),e.left),56===e.operatorToken.kind?Ne(t,n,e.left):Ce(t,n,e.left),Se(n,un.checkDefined(lJ(e.right,R,V_)),e.right),te(t),n}(n):28===n.operatorToken.kind?U(n):t.updateBinaryExpression(n,Y(un.checkDefined(lJ(n.left,R,V_))),n.operatorToken,un.checkDefined(lJ(n.right,R,V_))):vJ(n,R,e)}(n);case 1:return function(n){const{left:r,right:i}=n;if(X(i)){let e;switch(r.kind){case 212:e=t.updatePropertyAccessExpression(r,Y(un.checkDefined(lJ(r.expression,R,R_))),r.name);break;case 213:e=t.updateElementAccessExpression(r,Y(un.checkDefined(lJ(r.expression,R,R_))),Y(un.checkDefined(lJ(r.argumentExpression,R,V_))));break;default:e=un.checkDefined(lJ(r,R,V_))}const o=n.operatorToken.kind;return rz(o)?xI(t.createAssignment(e,xI(t.createBinaryExpression(Y(e),iz(o),un.checkDefined(lJ(i,R,V_))),n)),n):t.updateBinaryExpression(n,e,n.operatorToken,un.checkDefined(lJ(i,R,V_)))}return vJ(n,R,e)}(n);default:return un.assertNever(r)}}(r);case 357:return function(e){let n=[];for(const r of e.elements)NF(r)&&28===r.operatorToken.kind?n.push(U(r)):(X(r)&&n.length>0&&(De(1,[t.createExpressionStatement(t.inlineExpressions(n))]),n=[]),n.push(un.checkDefined(lJ(r,R,V_))));return t.inlineExpressions(n)}(r);case 228:return function(t){if(X(t.whenTrue)||X(t.whenFalse)){const e=ee(),n=ee(),r=Z();return Ne(e,un.checkDefined(lJ(t.condition,R,V_)),t.condition),Se(r,un.checkDefined(lJ(t.whenTrue,R,V_)),t.whenTrue),Te(n),te(e),Se(r,un.checkDefined(lJ(t.whenFalse,R,V_)),t.whenFalse),te(n),r}return vJ(t,R,e)}(r);case 230:return function(e){const r=ee(),i=lJ(e.expression,R,V_);return e.asteriskToken?function(e,t){De(7,[e],t)}(8388608&Zd(e.expression)?i:xI(n().createValuesHelper(i),e),e):function(e,t){De(6,[e],t)}(i,e),te(r),o=e,xI(t.createCallExpression(t.createPropertyAccessExpression(C,"sent"),void 0,[]),o);var o}(r);case 210:return function(e){return V(e.elements,void 0,void 0,e.multiLine)}(r);case 211:return function(e){const n=e.properties,r=e.multiLine,i=Q(n),o=Z();Se(o,t.createObjectLiteralExpression(_J(n,R,v_,0,i),r));const a=we(n,function(n,i){X(i)&&n.length>0&&(ke(t.createExpressionStatement(t.inlineExpressions(n))),n=[]);const a=lJ(fA(t,e,i,o),R,V_);return a&&(r&&FA(a),n.push(a)),n},[],i);return a.push(r?FA(DT(xI(t.cloneNode(o),o),o.parent)):o),t.inlineExpressions(a)}(r);case 213:return function(n){return X(n.argumentExpression)?t.updateElementAccessExpression(n,Y(un.checkDefined(lJ(n.expression,R,R_))),un.checkDefined(lJ(n.argumentExpression,R,V_))):vJ(n,R,e)}(r);case 214:return function(n){if(!_f(n)&&d(n.arguments,X)){const{target:e,thisArg:r}=t.createCallBinding(n.expression,a,c,!0);return hw(xI(t.createFunctionApplyCall(Y(un.checkDefined(lJ(e,R,R_))),r,V(n.arguments)),n),n)}return vJ(n,R,e)}(r);case 215:return function(n){if(d(n.arguments,X)){const{target:e,thisArg:r}=t.createCallBinding(t.createPropertyAccessExpression(n.expression,"bind"),a);return hw(xI(t.createNewExpression(t.createFunctionApplyCall(Y(un.checkDefined(lJ(e,R,V_))),r,V(n.arguments,t.createVoidZero())),void 0,[]),n),n)}return vJ(n,R,e)}(r);default:return vJ(r,R,e)}}(r):4196352&r.transformFlags?vJ(r,R,e):r}}function J(n){if(n.asteriskToken)n=hw(xI(t.createFunctionDeclaration(n.modifiers,void 0,n.name,void 0,fJ(n.parameters,R,e),void 0,q(n.body)),n),n);else{const t=f,r=m;f=!1,m=!1,n=vJ(n,R,e),f=t,m=r}return f?void o(n):n}function z(n){if(n.asteriskToken)n=hw(xI(t.createFunctionExpression(void 0,void 0,n.name,void 0,fJ(n.parameters,R,e),void 0,q(n.body)),n),n);else{const t=f,r=m;f=!1,m=!1,n=vJ(n,R,e),f=t,m=r}return n}function q(e){const o=[],a=f,s=m,c=g,l=h,_=y,u=v,d=b,p=x,E=L,B=k,J=S,z=T,q=C;f=!0,m=!1,g=void 0,h=void 0,y=void 0,v=void 0,b=void 0,x=void 0,L=1,k=void 0,S=void 0,T=void 0,C=t.createTempVariable(void 0),r();const U=t.copyPrologue(e.statements,o,!1,R);W(e.statements,U);const V=function(){j=0,M=0,w=void 0,N=!1,D=!1,F=void 0,P=void 0,A=void 0,I=void 0,O=void 0;const e=function(){if(k){for(let e=0;e0)),1048576))}();return Od(o,i()),o.push(t.createReturnStatement(V)),f=a,m=s,g=c,h=l,y=_,v=u,b=d,x=p,L=E,k=B,S=J,T=z,C=q,xI(t.createBlock(o,e.multiLine),e)}function U(e){let n=[];return r(e.left),r(e.right),t.inlineExpressions(n);function r(e){NF(e)&&28===e.operatorToken.kind?(r(e.left),r(e.right)):(X(e)&&n.length>0&&(De(1,[t.createExpressionStatement(t.inlineExpressions(n))]),n=[]),n.push(un.checkDefined(lJ(e,R,V_))))}}function V(e,n,r,i){const o=Q(e);let a;if(o>0){a=Z();const r=_J(e,R,V_,0,o);Se(a,t.createArrayLiteralExpression(n?[n,...r]:r)),n=void 0}const s=we(e,function(e,r){if(X(r)&&e.length>0){const r=void 0!==a;a||(a=Z()),Se(a,r?t.createArrayConcatCall(a,[t.createArrayLiteralExpression(e,i)]):t.createArrayLiteralExpression(n?[n,...e]:e,i)),n=void 0,e=[]}return e.push(un.checkDefined(lJ(r,R,V_))),e},[],o);return a?t.createArrayConcatCall(a,[t.createArrayLiteralExpression(s,i)]):xI(t.createArrayLiteralExpression(n?[n,...s]:s,i),r)}function W(e,t=0){const n=e.length;for(let r=t;r0?Te(t,e):ke(e)}(n);case 253:return function(e){const t=me(e.label?gc(e.label):void 0);t>0?Te(t,e):ke(e)}(n);case 254:return function(e){De(8,[lJ(e.expression,R,V_)],e)}(n);case 255:return function(e){X(e)?(function(e){const t=ee(),n=ee();te(t),ne({kind:1,expression:e,startLabel:t,endLabel:n})}(Y(un.checkDefined(lJ(e.expression,R,V_)))),$(e.statement),un.assert(1===oe()),te(re().endLabel)):ke(lJ(e,R,pu))}(n);case 256:return function(e){if(X(e.caseBlock)){const n=e.caseBlock,r=n.clauses.length,i=function(){const e=ee();return ne({kind:2,isScript:!1,breakLabel:e}),e}(),o=Y(un.checkDefined(lJ(e.expression,R,V_))),a=[];let s=-1;for(let e=0;e0)break;l.push(t.createCaseClause(un.checkDefined(lJ(r.expression,R,V_)),[be(a[i],r.expression)]))}else e++}l.length&&(ke(t.createSwitchStatement(o,t.createCaseBlock(l))),c+=l.length,l=[]),e>0&&(c+=e,e=0)}Te(s>=0?a[s]:i);for(let e=0;e0)break;o.push(G(t))}o.length&&(ke(t.createExpressionStatement(t.inlineExpressions(o))),i+=o.length,o=[])}}function G(e){return ww(t.createAssignment(ww(t.cloneNode(e.name),e.name),un.checkDefined(lJ(e.initializer,R,V_))),e)}function X(e){return!!e&&!!(1048576&e.transformFlags)}function Q(e){const t=e.length;for(let n=0;n=0;n--){const t=v[n];if(!de(t))break;if(t.labelText===e)return!0}return!1}function me(e){if(v)if(e)for(let t=v.length-1;t>=0;t--){const n=v[t];if(de(n)&&n.labelText===e)return n.breakLabel;if(ue(n)&&fe(e,t-1))return n.breakLabel}else for(let e=v.length-1;e>=0;e--){const t=v[e];if(ue(t))return t.breakLabel}return 0}function ge(e){if(v)if(e)for(let t=v.length-1;t>=0;t--){const n=v[t];if(pe(n)&&fe(e,t-1))return n.continueLabel}else for(let e=v.length-1;e>=0;e--){const t=v[e];if(pe(t))return t.continueLabel}return 0}function he(e){if(void 0!==e&&e>0){void 0===x&&(x=[]);const n=t.createNumericLiteral(Number.MAX_SAFE_INTEGER);return void 0===x[e]?x[e]=[n]:x[e].push(n),n}return t.createOmittedExpression()}function ve(e){const n=t.createNumericLiteral(e);return Rw(n,3,function(e){switch(e){case 2:return"return";case 3:return"break";case 4:return"yield";case 5:return"yield*";case 7:return"endfinally";default:return}}(e)),n}function be(e,n){return un.assertLessThan(0,e,"Invalid label"),xI(t.createReturnStatement(t.createArrayLiteralExpression([ve(3),he(e)])),n)}function xe(){De(0)}function ke(e){e?De(1,[e]):xe()}function Se(e,t,n){De(2,[e,t],n)}function Te(e,t){De(3,[e],t)}function Ce(e,t,n){De(4,[e,t],n)}function Ne(e,t,n){De(5,[e,t],n)}function De(e,t,n){void 0===k&&(k=[],S=[],T=[]),void 0===b&&te(ee());const r=k.length;k[r]=e,S[r]=t,T[r]=n}function Fe(){P&&(Pe(!N),N=!1,D=!1,M++)}function Ee(e){(function(e){if(!D)return!0;if(!b||!x)return!1;for(let t=0;t=0;e--){const n=O[e];P=[t.createWithStatement(n.expression,t.createBlock(P))]}if(I){const{startLabel:e,catchLabel:n,finallyLabel:r,endLabel:i}=I;P.unshift(t.createExpressionStatement(t.createCallExpression(t.createPropertyAccessExpression(t.createPropertyAccessExpression(C,"trys"),"push"),void 0,[t.createArrayLiteralExpression([he(e),he(n),he(r),he(i)])]))),I=void 0}e&&P.push(t.createExpressionStatement(t.createAssignment(t.createPropertyAccessExpression(C,"label"),t.createNumericLiteral(M+1))))}F.push(t.createCaseClause(t.createNumericLiteral(M),P||[])),P=void 0}function Ae(e){if(b)for(let t=0;t{ju(e.arguments[0])&&!xg(e.arguments[0].text,a)||(y=ie(y,e))});const n=function(e){switch(e){case 2:return S;case 3:return T;default:return k}}(d)(t);return g=void 0,h=void 0,b=!1,n});function x(){return!(OS(g.fileName)&&g.commonJsModuleIndicator&&(!g.externalModuleIndicator||!0===g.externalModuleIndicator)||h.exportEquals||!rO(g))}function k(n){r();const o=[],s=Jk(a,"alwaysStrict")||rO(g),c=t.copyPrologue(n.statements,o,s&&!ef(n),F);if(x()&&ie(o,G()),$(h.exportedNames)){const e=50;for(let n=0;n11===n.kind?t.createAssignment(t.createElementAccessExpression(t.createIdentifier("exports"),t.createStringLiteral(n.text)),e):t.createAssignment(t.createPropertyAccessExpression(t.createIdentifier("exports"),t.createIdentifier(gc(n))),e),t.createVoidZero())))}for(const e of h.exportedFunctions)W(o,e);ie(o,lJ(h.externalHelpersImportDeclaration,F,pu)),se(o,_J(n.statements,F,pu,c)),D(o,!1),Od(o,i());const l=t.updateSourceFile(n,xI(t.createNodeArray(o),n.statements));return Uw(l,e.readEmitHelpers()),l}function S(n){const r=t.createIdentifier("define"),i=LA(t,n,c,a),o=ef(n)&&n,{aliasedModuleNames:s,unaliasedModuleNames:_,importAliasNames:u}=C(n,!0),d=t.updateSourceFile(n,xI(t.createNodeArray([t.createExpressionStatement(t.createCallExpression(r,void 0,[...i?[i]:[],t.createArrayLiteralExpression(o?l:[t.createStringLiteral("require"),t.createStringLiteral("exports"),...s,..._]),o?o.statements.length?o.statements[0].expression:t.createObjectLiteralExpression():t.createFunctionExpression(void 0,void 0,void 0,void 0,[t.createParameterDeclaration(void 0,void 0,"require"),t.createParameterDeclaration(void 0,void 0,"exports"),...u],void 0,N(n))]))]),n.statements));return Uw(d,e.readEmitHelpers()),d}function T(n){const{aliasedModuleNames:r,unaliasedModuleNames:i,importAliasNames:o}=C(n,!1),s=LA(t,n,c,a),l=t.createFunctionExpression(void 0,void 0,void 0,void 0,[t.createParameterDeclaration(void 0,void 0,"factory")],void 0,xI(t.createBlock([t.createIfStatement(t.createLogicalAnd(t.createTypeCheck(t.createIdentifier("module"),"object"),t.createTypeCheck(t.createPropertyAccessExpression(t.createIdentifier("module"),"exports"),"object")),t.createBlock([t.createVariableStatement(void 0,[t.createVariableDeclaration("v",void 0,void 0,t.createCallExpression(t.createIdentifier("factory"),void 0,[t.createIdentifier("require"),t.createIdentifier("exports")]))]),xw(t.createIfStatement(t.createStrictInequality(t.createIdentifier("v"),t.createIdentifier("undefined")),t.createExpressionStatement(t.createAssignment(t.createPropertyAccessExpression(t.createIdentifier("module"),"exports"),t.createIdentifier("v")))),1)]),t.createIfStatement(t.createLogicalAnd(t.createTypeCheck(t.createIdentifier("define"),"function"),t.createPropertyAccessExpression(t.createIdentifier("define"),"amd")),t.createBlock([t.createExpressionStatement(t.createCallExpression(t.createIdentifier("define"),void 0,[...s?[s]:[],t.createArrayLiteralExpression([t.createStringLiteral("require"),t.createStringLiteral("exports"),...r,...i]),t.createIdentifier("factory")]))])))],!0),void 0)),_=t.updateSourceFile(n,xI(t.createNodeArray([t.createExpressionStatement(t.createCallExpression(l,void 0,[t.createFunctionExpression(void 0,void 0,void 0,void 0,[t.createParameterDeclaration(void 0,void 0,"require"),t.createParameterDeclaration(void 0,void 0,"exports"),...o],void 0,N(n))]))]),n.statements));return Uw(_,e.readEmitHelpers()),_}function C(e,n){const r=[],i=[],o=[];for(const n of e.amdDependencies)n.name?(r.push(t.createStringLiteral(n.path)),o.push(t.createParameterDeclaration(void 0,void 0,n.name))):i.push(t.createStringLiteral(n.path));for(const e of h.externalImports){const l=OA(t,e,g,c,s,a),_=IA(t,e,g);l&&(n&&_?(xw(_,8),r.push(l),o.push(t.createParameterDeclaration(void 0,void 0,_))):i.push(l))}return{aliasedModuleNames:r,unaliasedModuleNames:i,importAliasNames:o}}function w(e){if(bE(e)||IE(e)||!OA(t,e,g,c,s,a))return;const n=IA(t,e,g),r=R(e,n);return r!==n?t.createExpressionStatement(t.createAssignment(n,r)):void 0}function N(e){r();const n=[],o=t.copyPrologue(e.statements,n,!0,F);x()&&ie(n,G()),$(h.exportedNames)&&ie(n,t.createExpressionStatement(we(h.exportedNames,(e,n)=>11===n.kind?t.createAssignment(t.createElementAccessExpression(t.createIdentifier("exports"),t.createStringLiteral(n.text)),e):t.createAssignment(t.createPropertyAccessExpression(t.createIdentifier("exports"),t.createIdentifier(gc(n))),e),t.createVoidZero())));for(const e of h.exportedFunctions)W(n,e);ie(n,lJ(h.externalHelpersImportDeclaration,F,pu)),2===d&&se(n,B(h.externalImports,w)),se(n,_J(e.statements,F,pu,o)),D(n,!0),Od(n,i());const a=t.createBlock(n,!0);return b&&qw(a,xq),a}function D(e,n){if(h.exportEquals){const r=lJ(h.exportEquals.expression,A,V_);if(r)if(n){const n=t.createReturnStatement(r);xI(n,h.exportEquals),xw(n,3840),e.push(n)}else{const n=t.createExpressionStatement(t.createAssignment(t.createPropertyAccessExpression(t.createIdentifier("module"),"exports"),r));xI(n,h.exportEquals),xw(n,3072),e.push(n)}}}function F(e){switch(e.kind){case 273:return function(e){let n;const r=Sg(e);if(2!==d){if(!e.importClause)return hw(xI(t.createExpressionStatement(J(e)),e),e);{const i=[];r&&!Tg(e)?i.push(t.createVariableDeclaration(t.cloneNode(r.name),void 0,void 0,R(e,J(e)))):(i.push(t.createVariableDeclaration(t.getGeneratedNameForNode(e),void 0,void 0,R(e,J(e)))),r&&Tg(e)&&i.push(t.createVariableDeclaration(t.cloneNode(r.name),void 0,void 0,t.getGeneratedNameForNode(e)))),n=ie(n,hw(xI(t.createVariableStatement(void 0,t.createVariableDeclarationList(i,_>=2?2:0)),e),e))}}else r&&Tg(e)&&(n=ie(n,t.createVariableStatement(void 0,t.createVariableDeclarationList([hw(xI(t.createVariableDeclaration(t.cloneNode(r.name),void 0,void 0,t.getGeneratedNameForNode(e)),e),e)],_>=2?2:0))));return n=function(e,t){if(h.exportEquals)return e;const n=t.importClause;if(!n)return e;const r=new ZJ;n.name&&(e=H(e,r,n));const i=n.namedBindings;if(i)switch(i.kind){case 275:e=H(e,r,i);break;case 276:for(const t of i.elements)e=H(e,r,t,!0)}return e}(n,e),ke(n)}(e);case 272:return function(e){let n;return un.assert(Tm(e),"import= for internal module references should be handled in an earlier transformer."),2!==d?n=Nv(e,32)?ie(n,hw(xI(t.createExpressionStatement(Q(e.name,J(e))),e),e)):ie(n,hw(xI(t.createVariableStatement(void 0,t.createVariableDeclarationList([t.createVariableDeclaration(t.cloneNode(e.name),void 0,void 0,J(e))],_>=2?2:0)),e),e)):Nv(e,32)&&(n=ie(n,hw(xI(t.createExpressionStatement(Q(t.getExportName(e),t.getLocalName(e))),e),e))),n=function(e,t){return h.exportEquals?e:H(e,new ZJ,t)}(n,e),ke(n)}(e);case 279:return function(e){if(!e.moduleSpecifier)return;const r=t.getGeneratedNameForNode(e);if(e.exportClause&&OE(e.exportClause)){const i=[];2!==d&&i.push(hw(xI(t.createVariableStatement(void 0,t.createVariableDeclarationList([t.createVariableDeclaration(r,void 0,void 0,J(e))])),e),e));for(const o of e.exportClause.elements){const s=o.propertyName||o.name,c=!Sk(a)||2&ep(e)||!Kd(s)?r:n().createImportDefaultHelper(r),l=11===s.kind?t.createElementAccessExpression(c,s):t.createPropertyAccessExpression(c,s);i.push(hw(xI(t.createExpressionStatement(Q(11===o.name.kind?t.cloneNode(o.name):t.getExportName(o),l,void 0,!0)),o),o))}return ke(i)}if(e.exportClause){const i=[];return i.push(hw(xI(t.createExpressionStatement(Q(t.cloneNode(e.exportClause.name),function(e,t){return!Sk(a)||2&ep(e)?t:HJ(e)?n().createImportStarHelper(t):t}(e,2!==d?J(e):Wd(e)||11===e.exportClause.name.kind?r:t.createIdentifier(gc(e.exportClause.name))))),e),e)),ke(i)}return hw(xI(t.createExpressionStatement(n().createExportStarHelper(2!==d?J(e):r)),e),e)}(e);case 278:return function(e){if(!e.isExportEquals)return X(t.createIdentifier("default"),lJ(e.expression,A,V_),e,!0)}(e);default:return E(e)}}function E(n){switch(n.kind){case 244:return function(n){let r,i,o;if(Nv(n,32)){let e,a=!1;for(const r of n.declarationList.declarations)if(aD(r.name)&&hA(r.name))e||(e=_J(n.modifiers,Y,Zl)),i=r.initializer?ie(i,t.updateVariableDeclaration(r,r.name,void 0,void 0,Q(r.name,lJ(r.initializer,A,V_)))):ie(i,r);else if(r.initializer)if(!k_(r.name)&&(bF(r.initializer)||vF(r.initializer)||AF(r.initializer))){const e=t.createAssignment(xI(t.createPropertyAccessExpression(t.createIdentifier("exports"),r.name),r.name),t.createIdentifier(qh(r.name)));i=ie(i,t.createVariableDeclaration(r.name,r.exclamationToken,r.type,lJ(r.initializer,A,V_))),o=ie(o,e),a=!0}else o=ie(o,q(r));if(i&&(r=ie(r,t.updateVariableStatement(n,e,t.updateVariableDeclarationList(n.declarationList,i)))),o){const e=hw(xI(t.createExpressionStatement(t.inlineExpressions(o)),n),n);a&&bw(e),r=ie(r,e)}}else r=ie(r,vJ(n,A,e));return r=function(e,t){return U(e,t.declarationList,!1)}(r,n),ke(r)}(n);case 263:return function(n){let r;return r=Nv(n,32)?ie(r,hw(xI(t.createFunctionDeclaration(_J(n.modifiers,Y,Zl),n.asteriskToken,t.getDeclarationName(n,!0,!0),void 0,_J(n.parameters,A,TD),void 0,vJ(n.body,A,e)),n),n)):ie(r,vJ(n,A,e)),ke(r)}(n);case 264:return function(n){let r;return r=Nv(n,32)?ie(r,hw(xI(t.createClassDeclaration(_J(n.modifiers,Y,g_),t.getDeclarationName(n,!0,!0),void 0,_J(n.heritageClauses,A,tP),_J(n.members,A,__)),n),n)):ie(r,vJ(n,A,e)),r=W(r,n),ke(r)}(n);case 249:return L(n,!0);case 250:return function(n){if(_E(n.initializer)&&!(7&n.initializer.flags)){const r=U(void 0,n.initializer,!0);if($(r)){const i=lJ(n.initializer,I,eu),o=lJ(n.expression,A,V_),a=hJ(n.statement,E,e),s=VF(a)?t.updateBlock(a,[...r,...a.statements]):t.createBlock([...r,a],!0);return t.updateForInStatement(n,i,o,s)}}return t.updateForInStatement(n,lJ(n.initializer,I,eu),lJ(n.expression,A,V_),hJ(n.statement,E,e))}(n);case 251:return function(n){if(_E(n.initializer)&&!(7&n.initializer.flags)){const r=U(void 0,n.initializer,!0),i=lJ(n.initializer,I,eu),o=lJ(n.expression,A,V_);let a=hJ(n.statement,E,e);return $(r)&&(a=VF(a)?t.updateBlock(a,[...r,...a.statements]):t.createBlock([...r,a],!0)),t.updateForOfStatement(n,n.awaitModifier,i,o,a)}return t.updateForOfStatement(n,n.awaitModifier,lJ(n.initializer,I,eu),lJ(n.expression,A,V_),hJ(n.statement,E,e))}(n);case 247:return function(n){return t.updateDoStatement(n,hJ(n.statement,E,e),lJ(n.expression,A,V_))}(n);case 248:return function(n){return t.updateWhileStatement(n,lJ(n.expression,A,V_),hJ(n.statement,E,e))}(n);case 257:return function(e){return t.updateLabeledStatement(e,e.label,lJ(e.statement,E,pu,t.liftToBlock)??xI(t.createEmptyStatement(),e.statement))}(n);case 255:return function(e){return t.updateWithStatement(e,lJ(e.expression,A,V_),un.checkDefined(lJ(e.statement,E,pu,t.liftToBlock)))}(n);case 246:return function(e){return t.updateIfStatement(e,lJ(e.expression,A,V_),lJ(e.thenStatement,E,pu,t.liftToBlock)??t.createBlock([]),lJ(e.elseStatement,E,pu,t.liftToBlock))}(n);case 256:return function(e){return t.updateSwitchStatement(e,lJ(e.expression,A,V_),un.checkDefined(lJ(e.caseBlock,E,yE)))}(n);case 270:return function(e){return t.updateCaseBlock(e,_J(e.clauses,E,ku))}(n);case 297:return function(e){return t.updateCaseClause(e,lJ(e.expression,A,V_),_J(e.statements,E,pu))}(n);case 298:case 259:return function(t){return vJ(t,E,e)}(n);case 300:return function(e){return t.updateCatchClause(e,e.variableDeclaration,un.checkDefined(lJ(e.block,E,VF)))}(n);case 242:return function(t){return t=vJ(t,E,e)}(n);default:return A(n)}}function P(r,i){if(!(276828160&r.transformFlags||(null==y?void 0:y.length)))return r;switch(r.kind){case 249:return L(r,!1);case 245:return function(e){return t.updateExpressionStatement(e,lJ(e.expression,I,V_))}(r);case 218:return function(e,n){return t.updateParenthesizedExpression(e,lJ(e.expression,n?I:A,V_))}(r,i);case 356:return function(e,n){return t.updatePartiallyEmittedExpression(e,lJ(e.expression,n?I:A,V_))}(r,i);case 214:const l=r===fe(y);if(l&&y.shift(),_f(r)&&c.shouldTransformImportCall(g))return function(r,i){if(0===d&&_>=7)return vJ(r,A,e);const l=OA(t,r,g,c,s,a),u=lJ(fe(r.arguments),A,V_),p=!l||u&&UN(u)&&u.text===l.text?u&&i?UN(u)?Sz(u,a):n().createRewriteRelativeImportExtensionsHelper(u):u:l,f=!!(16384&r.transformFlags);switch(a.module){case 2:return j(p,f);case 3:return function(e,n){if(b=!0,tz(e)){const r=Wl(e)?e:UN(e)?t.createStringLiteralFromNode(e):xw(xI(t.cloneNode(e),e),3072);return t.createConditionalExpression(t.createIdentifier("__syncRequire"),void 0,M(e),void 0,j(r,n))}{const r=t.createTempVariable(o);return t.createComma(t.createAssignment(r,e),t.createConditionalExpression(t.createIdentifier("__syncRequire"),void 0,M(r,!0),void 0,j(r,n)))}}(p??t.createVoidZero(),f);default:return M(p)}}(r,l);if(l)return function(e){return t.updateCallExpression(e,e.expression,void 0,_J(e.arguments,t=>t===e.arguments[0]?ju(t)?Sz(t,a):n().createRewriteRelativeImportExtensionsHelper(t):A(t),V_))}(r);break;case 227:if(ib(r))return function(t,n){return O(t.left)?Cz(t,A,e,0,!n,z):vJ(t,A,e)}(r,i);break;case 225:case 226:return function(n,r){if((46===n.operator||47===n.operator)&&aD(n.operand)&&!Wl(n.operand)&&!hA(n.operand)&&!Yb(n.operand)){const e=ee(n.operand);if(e){let i,a=lJ(n.operand,A,V_);CF(n)?a=t.updatePrefixUnaryExpression(n,a):(a=t.updatePostfixUnaryExpression(n,a),r||(i=t.createTempVariable(o),a=t.createAssignment(i,a),xI(a,n)),a=t.createComma(a,t.cloneNode(n.operand)),xI(a,n));for(const t of e)v[ZB(a)]=!0,a=Q(t,a),xI(a,n);return i&&(v[ZB(a)]=!0,a=t.createComma(a,i),xI(a,n)),a}}return vJ(n,A,e)}(r,i)}return vJ(r,A,e)}function A(e){return P(e,!1)}function I(e){return P(e,!0)}function O(e){if(uF(e))for(const t of e.properties)switch(t.kind){case 304:if(O(t.initializer))return!0;break;case 305:if(O(t.name))return!0;break;case 306:if(O(t.expression))return!0;break;case 175:case 178:case 179:return!1;default:un.assertNever(t,"Unhandled object member kind")}else if(_F(e)){for(const t of e.elements)if(PF(t)){if(O(t.expression))return!0}else if(O(t))return!0}else if(aD(e))return u(ee(e))>(yA(e)?1:0);return!1}function L(n,r){if(r&&n.initializer&&_E(n.initializer)&&!(7&n.initializer.flags)){const i=U(void 0,n.initializer,!1);if(i){const o=[],a=lJ(n.initializer,I,_E),s=t.createVariableStatement(void 0,a);o.push(s),se(o,i);const c=lJ(n.condition,A,V_),l=lJ(n.incrementor,I,V_),_=hJ(n.statement,r?E:A,e);return o.push(t.updateForStatement(n,void 0,c,l,_)),o}}return t.updateForStatement(n,lJ(n.initializer,I,eu),lJ(n.condition,A,V_),lJ(n.incrementor,I,V_),hJ(n.statement,r?E:A,e))}function j(e,r){const i=t.createUniqueName("resolve"),o=t.createUniqueName("reject"),s=[t.createParameterDeclaration(void 0,void 0,i),t.createParameterDeclaration(void 0,void 0,o)],c=t.createBlock([t.createExpressionStatement(t.createCallExpression(t.createIdentifier("require"),void 0,[t.createArrayLiteralExpression([e||t.createOmittedExpression()]),i,o]))]);let l;_>=2?l=t.createArrowFunction(void 0,void 0,s,void 0,void 0,c):(l=t.createFunctionExpression(void 0,void 0,void 0,void 0,s,void 0,c),r&&xw(l,16));const u=t.createNewExpression(t.createIdentifier("Promise"),void 0,[l]);return Sk(a)?t.createCallExpression(t.createPropertyAccessExpression(u,t.createIdentifier("then")),void 0,[n().createImportStarCallbackHelper()]):u}function M(e,r){const i=e&&!nz(e)&&!r,o=t.createCallExpression(t.createPropertyAccessExpression(t.createIdentifier("Promise"),"resolve"),void 0,i?_>=2?[t.createTemplateExpression(t.createTemplateHead(""),[t.createTemplateSpan(e,t.createTemplateTail(""))])]:[t.createCallExpression(t.createPropertyAccessExpression(t.createStringLiteral(""),"concat"),void 0,[e])]:[]);let s=t.createCallExpression(t.createIdentifier("require"),void 0,i?[t.createIdentifier("s")]:e?[e]:[]);Sk(a)&&(s=n().createImportStarHelper(s));const c=i?[t.createParameterDeclaration(void 0,void 0,"s")]:[];let l;return l=_>=2?t.createArrowFunction(void 0,void 0,c,void 0,void 0,s):t.createFunctionExpression(void 0,void 0,void 0,void 0,c,void 0,t.createBlock([t.createReturnStatement(s)])),t.createCallExpression(t.createPropertyAccessExpression(o,"then"),void 0,[l])}function R(e,t){return!Sk(a)||2&ep(e)?t:KJ(e)?n().createImportStarHelper(t):GJ(e)?n().createImportDefaultHelper(t):t}function J(e){const n=OA(t,e,g,c,s,a),r=[];return n&&r.push(Sz(n,a)),t.createCallExpression(t.createIdentifier("require"),void 0,r)}function z(e,n,r){const i=ee(e);if(i){let o=yA(e)?n:t.createAssignment(e,n);for(const e of i)xw(o,8),o=Q(e,o,r);return o}return t.createAssignment(e,n)}function q(n){return k_(n.name)?Cz(lJ(n,A,ex),A,e,0,!1,z):t.createAssignment(xI(t.createPropertyAccessExpression(t.createIdentifier("exports"),n.name),n.name),n.initializer?lJ(n.initializer,A,V_):t.createVoidZero())}function U(e,t,n){if(h.exportEquals)return e;for(const r of t.declarations)e=V(e,r,n);return e}function V(e,t,n){if(h.exportEquals)return e;if(k_(t.name))for(const r of t.name.elements)IF(r)||(e=V(e,r,n));else Wl(t.name)||lE(t)&&!t.initializer&&!n||(e=H(e,new ZJ,t));return e}function W(e,n){if(h.exportEquals)return e;const r=new ZJ;return Nv(n,32)&&(e=K(e,r,Nv(n,2048)?t.createIdentifier("default"):t.getDeclarationName(n),t.getLocalName(n),n)),n.name&&(e=H(e,r,n)),e}function H(e,n,r,i){const o=t.getDeclarationName(r),a=h.exportSpecifiers.get(o);if(a)for(const t of a)e=K(e,n,t.name,o,t.name,void 0,i);return e}function K(e,t,n,r,i,o,a){if(11!==n.kind){if(t.has(n))return e;t.set(n,!0)}return ie(e,X(n,r,i,o,a))}function G(){const e=t.createExpressionStatement(t.createCallExpression(t.createPropertyAccessExpression(t.createIdentifier("Object"),"defineProperty"),void 0,[t.createIdentifier("exports"),t.createStringLiteral("__esModule"),t.createObjectLiteralExpression([t.createPropertyAssignment("value",t.createTrue())])]));return xw(e,2097152),e}function X(e,n,r,i,o){const a=xI(t.createExpressionStatement(Q(e,n,void 0,o)),r);return FA(a),i||xw(a,3072),a}function Q(e,n,r,i){return xI(i?t.createCallExpression(t.createPropertyAccessExpression(t.createIdentifier("Object"),"defineProperty"),void 0,[t.createIdentifier("exports"),t.createStringLiteralFromNode(e),t.createObjectLiteralExpression([t.createPropertyAssignment("enumerable",t.createTrue()),t.createPropertyAssignment("get",t.createFunctionExpression(void 0,void 0,void 0,void 0,[],void 0,t.createBlock([t.createReturnStatement(n)])))])]):t.createAssignment(11===e.kind?t.createElementAccessExpression(t.createIdentifier("exports"),t.cloneNode(e)):t.createPropertyAccessExpression(t.createIdentifier("exports"),t.cloneNode(e)),n),r)}function Y(e){switch(e.kind){case 95:case 90:return}return e}function Z(e){var n,r;if(8192&Zd(e)){const n=EA(g);return n?t.createPropertyAccessExpression(n,e):e}if((!Wl(e)||64&e.emitNode.autoGenerate.flags)&&!hA(e)){const i=s.getReferencedExportContainer(e,yA(e));if(i&&308===i.kind)return xI(t.createPropertyAccessExpression(t.createIdentifier("exports"),t.cloneNode(e)),e);const o=s.getReferencedImportDeclaration(e);if(o){if(kE(o))return xI(t.createPropertyAccessExpression(t.getGeneratedNameForNode(o.parent),t.createIdentifier("default")),e);if(PE(o)){const i=o.propertyName||o.name,a=t.getGeneratedNameForNode((null==(r=null==(n=o.parent)?void 0:n.parent)?void 0:r.parent)||o);return xI(11===i.kind?t.createElementAccessExpression(a,t.cloneNode(i)):t.createPropertyAccessExpression(a,t.cloneNode(i)),e)}}}return e}function ee(e){if(Wl(e)){if(Hl(e)){const t=null==h?void 0:h.exportSpecifiers.get(e);if(t){const e=[];for(const n of t)e.push(n.name);return e}}}else{const t=s.getReferencedImportDeclaration(e);if(t)return null==h?void 0:h.exportedBindings[UJ(t)];const n=new Set,r=s.getReferencedValueDeclarations(e);if(r){for(const e of r){const t=null==h?void 0:h.exportedBindings[UJ(e)];if(t)for(const e of t)n.add(e)}if(n.size)return Oe(n)}}}}var xq={name:"typescript:dynamicimport-sync-require",scoped:!0,text:'\n var __syncRequire = typeof module === "object" && typeof module.exports === "object";'};function kq(e){const{factory:t,startLexicalEnvironment:n,endLexicalEnvironment:r,hoistVariableDeclaration:i}=e,o=e.getCompilerOptions(),a=e.getEmitResolver(),s=e.getEmitHost(),c=e.onSubstituteNode,l=e.onEmitNode;e.onSubstituteNode=function(e,n){return function(e){return x&&e.id&&x[e.id]}(n=c(e,n))?n:1===e?function(e){switch(e.kind){case 80:return function(e){var n,r;if(8192&Zd(e)){const n=EA(m);return n?t.createPropertyAccessExpression(n,e):e}if(!Wl(e)&&!hA(e)){const i=a.getReferencedImportDeclaration(e);if(i){if(kE(i))return xI(t.createPropertyAccessExpression(t.getGeneratedNameForNode(i.parent),t.createIdentifier("default")),e);if(PE(i)){const o=i.propertyName||i.name,a=t.getGeneratedNameForNode((null==(r=null==(n=i.parent)?void 0:n.parent)?void 0:r.parent)||i);return xI(11===o.kind?t.createElementAccessExpression(a,t.cloneNode(o)):t.createPropertyAccessExpression(a,t.cloneNode(o)),e)}}}return e}(e);case 227:return function(e){if(eb(e.operatorToken.kind)&&aD(e.left)&&(!Wl(e.left)||Hl(e.left))&&!hA(e.left)){const t=H(e.left);if(t){let n=e;for(const e of t)n=M(e,K(n));return n}}return e}(e);case 237:return function(e){return uf(e)?t.createPropertyAccessExpression(y,t.createIdentifier("meta")):e}(e)}return e}(n):4===e?function(e){return 305===e.kind?function(e){var n,r;const i=e.name;if(!Wl(i)&&!hA(i)){const o=a.getReferencedImportDeclaration(i);if(o){if(kE(o))return xI(t.createPropertyAssignment(t.cloneNode(i),t.createPropertyAccessExpression(t.getGeneratedNameForNode(o.parent),t.createIdentifier("default"))),e);if(PE(o)){const a=o.propertyName||o.name,s=t.getGeneratedNameForNode((null==(r=null==(n=o.parent)?void 0:n.parent)?void 0:r.parent)||o);return xI(t.createPropertyAssignment(t.cloneNode(i),11===a.kind?t.createElementAccessExpression(s,t.cloneNode(a)):t.createPropertyAccessExpression(s,t.cloneNode(a))),e)}}}return e}(e):e}(n):n},e.onEmitNode=function(e,t,n){if(308===t.kind){const r=UJ(t);m=t,g=_[r],h=u[r],x=p[r],y=f[r],x&&delete p[r],l(e,t,n),m=void 0,g=void 0,h=void 0,y=void 0,x=void 0}else l(e,t,n)},e.enableSubstitution(80),e.enableSubstitution(305),e.enableSubstitution(227),e.enableSubstitution(237),e.enableEmitNotification(308);const _=[],u=[],p=[],f=[];let m,g,h,y,v,b,x;return $J(e,function(i){if(i.isDeclarationFile||!(hp(i,o)||8388608&i.transformFlags))return i;const c=UJ(i);m=i,b=i,g=_[c]=XJ(e,i),h=t.createUniqueName("exports"),u[c]=h,y=f[c]=t.createUniqueName("context");const l=function(e){const n=new Map,r=[];for(const i of e){const e=OA(t,i,m,s,a,o);if(e){const t=e.text,o=n.get(t);void 0!==o?r[o].externalImports.push(i):(n.set(t,r.length),r.push({name:e,externalImports:[i]}))}}return r}(g.externalImports),d=function(e,i){const a=[];n();const s=Jk(o,"alwaysStrict")||rO(m),c=t.copyPrologue(e.statements,a,s,T);a.push(t.createVariableStatement(void 0,t.createVariableDeclarationList([t.createVariableDeclaration("__moduleName",void 0,void 0,t.createLogicalAnd(y,t.createPropertyAccessExpression(y,"id")))]))),lJ(g.externalHelpersImportDeclaration,T,pu);const l=_J(e.statements,T,pu,c);se(a,v),Od(a,r());const _=function(e){if(!g.hasExportStarsToExportValues)return;if(!$(g.exportedNames)&&0===g.exportedFunctions.size&&0===g.exportSpecifiers.size){let t=!1;for(const e of g.externalImports)if(279===e.kind&&e.exportClause){t=!0;break}if(!t){const t=k(void 0);return e.push(t),t.name}}const n=[];if(g.exportedNames)for(const e of g.exportedNames)Kd(e)||n.push(t.createPropertyAssignment(t.createStringLiteralFromNode(e),t.createTrue()));for(const e of g.exportedFunctions)Nv(e,2048)||(un.assert(!!e.name),n.push(t.createPropertyAssignment(t.createStringLiteralFromNode(e.name),t.createTrue())));const r=t.createUniqueName("exportedNames");e.push(t.createVariableStatement(void 0,t.createVariableDeclarationList([t.createVariableDeclaration(r,void 0,void 0,t.createObjectLiteralExpression(n,!0))])));const i=k(r);return e.push(i),i.name}(a),u=2097152&e.transformFlags?t.createModifiersFromModifierFlags(1024):void 0,d=t.createObjectLiteralExpression([t.createPropertyAssignment("setters",S(_,i)),t.createPropertyAssignment("execute",t.createFunctionExpression(u,void 0,void 0,void 0,[],void 0,t.createBlock(l,!0)))],!0);return a.push(t.createReturnStatement(d)),t.createBlock(a,!0)}(i,l),C=t.createFunctionExpression(void 0,void 0,void 0,void 0,[t.createParameterDeclaration(void 0,void 0,h),t.createParameterDeclaration(void 0,void 0,y)],void 0,d),w=LA(t,i,s,o),N=t.createArrayLiteralExpression(E(l,e=>e.name)),D=xw(t.updateSourceFile(i,xI(t.createNodeArray([t.createExpressionStatement(t.createCallExpression(t.createPropertyAccessExpression(t.createIdentifier("System"),"register"),void 0,w?[w,N,C]:[N,C]))]),i.statements)),2048);return o.outFile||$w(D,d,e=>!e.scoped),x&&(p[c]=x,x=void 0),m=void 0,g=void 0,h=void 0,y=void 0,v=void 0,b=void 0,D});function k(e){const n=t.createUniqueName("exportStar"),r=t.createIdentifier("m"),i=t.createIdentifier("n"),o=t.createIdentifier("exports");let a=t.createStrictInequality(i,t.createStringLiteral("default"));return e&&(a=t.createLogicalAnd(a,t.createLogicalNot(t.createCallExpression(t.createPropertyAccessExpression(e,"hasOwnProperty"),void 0,[i])))),t.createFunctionDeclaration(void 0,void 0,n,void 0,[t.createParameterDeclaration(void 0,void 0,r)],void 0,t.createBlock([t.createVariableStatement(void 0,t.createVariableDeclarationList([t.createVariableDeclaration(o,void 0,void 0,t.createObjectLiteralExpression([]))])),t.createForInStatement(t.createVariableDeclarationList([t.createVariableDeclaration(i)]),r,t.createBlock([xw(t.createIfStatement(a,t.createExpressionStatement(t.createAssignment(t.createElementAccessExpression(o,i),t.createElementAccessExpression(r,i)))),1)])),t.createExpressionStatement(t.createCallExpression(h,void 0,[o]))],!0))}function S(e,n){const r=[];for(const i of n){const n=d(i.externalImports,e=>IA(t,e,m)),o=n?t.getGeneratedNameForNode(n):t.createUniqueName(""),a=[];for(const n of i.externalImports){const r=IA(t,n,m);switch(n.kind){case 273:if(!n.importClause)break;case 272:un.assert(void 0!==r),a.push(t.createExpressionStatement(t.createAssignment(r,o))),Nv(n,32)&&a.push(t.createExpressionStatement(t.createCallExpression(h,void 0,[t.createStringLiteral(gc(r)),o])));break;case 279:if(un.assert(void 0!==r),n.exportClause)if(OE(n.exportClause)){const e=[];for(const r of n.exportClause.elements)e.push(t.createPropertyAssignment(t.createStringLiteral($d(r.name)),t.createElementAccessExpression(o,t.createStringLiteral($d(r.propertyName||r.name)))));a.push(t.createExpressionStatement(t.createCallExpression(h,void 0,[t.createObjectLiteralExpression(e,!0)])))}else a.push(t.createExpressionStatement(t.createCallExpression(h,void 0,[t.createStringLiteral($d(n.exportClause.name)),o])));else a.push(t.createExpressionStatement(t.createCallExpression(e,void 0,[o])))}}r.push(t.createFunctionExpression(void 0,void 0,void 0,void 0,[t.createParameterDeclaration(void 0,void 0,o)],void 0,t.createBlock(a,!0)))}return t.createArrayLiteralExpression(r,!0)}function T(e){switch(e.kind){case 273:return function(e){return e.importClause&&i(IA(t,e,m)),ke(function(e,t){if(g.exportEquals)return e;const n=t.importClause;if(!n)return e;n.name&&(e=O(e,n));const r=n.namedBindings;if(r)switch(r.kind){case 275:e=O(e,r);break;case 276:for(const t of r.elements)e=O(e,t)}return e}(undefined,e))}(e);case 272:return function(e){return un.assert(Tm(e),"import= for internal module references should be handled in an earlier transformer."),i(IA(t,e,m)),ke(function(e,t){return g.exportEquals?e:O(e,t)}(undefined,e))}(e);case 279:return function(e){un.assertIsDefined(e)}(e);case 278:return function(e){if(e.isExportEquals)return;const n=lJ(e.expression,q,V_);return j(t.createIdentifier("default"),n,!0)}(e);default:return R(e)}}function C(e){if(k_(e.name))for(const t of e.name.elements)IF(t)||C(t);else i(t.cloneNode(e.name))}function w(e){return!(4194304&Zd(e)||308!==b.kind&&7&_c(e).flags)}function N(t,n){const r=n?D:F;return k_(t.name)?Cz(t,q,e,0,!1,r):t.initializer?r(t.name,lJ(t.initializer,q,V_)):t.name}function D(e,t,n){return P(e,t,n,!0)}function F(e,t,n){return P(e,t,n,!1)}function P(e,n,r,o){return i(t.cloneNode(e)),o?M(e,K(xI(t.createAssignment(e,n),r))):K(xI(t.createAssignment(e,n),r))}function A(e,n,r){if(g.exportEquals)return e;if(k_(n.name))for(const t of n.name.elements)IF(t)||(e=A(e,t,r));else if(!Wl(n.name)){let i;r&&(e=L(e,n.name,t.getLocalName(n)),i=gc(n.name)),e=O(e,n,i)}return e}function I(e,n){if(g.exportEquals)return e;let r;if(Nv(n,32)){const i=Nv(n,2048)?t.createStringLiteral("default"):n.name;e=L(e,i,t.getLocalName(n)),r=qh(i)}return n.name&&(e=O(e,n,r)),e}function O(e,n,r){if(g.exportEquals)return e;const i=t.getDeclarationName(n),o=g.exportSpecifiers.get(i);if(o)for(const t of o)$d(t.name)!==r&&(e=L(e,t.name,i));return e}function L(e,t,n,r){return ie(e,j(t,n,r))}function j(e,n,r){const i=t.createExpressionStatement(M(e,n));return FA(i),r||xw(i,3072),i}function M(e,n){const r=aD(e)?t.createStringLiteralFromNode(e):e;return xw(n,3072|Zd(n)),Aw(t.createCallExpression(h,void 0,[r,n]),n)}function R(n){switch(n.kind){case 244:return function(e){if(!w(e.declarationList))return lJ(e,q,pu);let n;if(of(e.declarationList)||rf(e.declarationList)){const r=_J(e.modifiers,W,g_),i=[];for(const n of e.declarationList.declarations)i.push(t.updateVariableDeclaration(n,t.getGeneratedNameForNode(n.name),void 0,void 0,N(n,!1)));const o=t.updateVariableDeclarationList(e.declarationList,i);n=ie(n,t.updateVariableStatement(e,r,o))}else{let r;const i=Nv(e,32);for(const t of e.declarationList.declarations)t.initializer?r=ie(r,N(t,i)):C(t);r&&(n=ie(n,xI(t.createExpressionStatement(t.inlineExpressions(r)),e)))}return n=function(e,t,n){if(g.exportEquals)return e;for(const r of t.declarationList.declarations)r.initializer&&(e=A(e,r,n));return e}(n,e,!1),ke(n)}(n);case 263:return function(n){v=Nv(n,32)?ie(v,t.updateFunctionDeclaration(n,_J(n.modifiers,W,g_),n.asteriskToken,t.getDeclarationName(n,!0,!0),void 0,_J(n.parameters,q,TD),void 0,lJ(n.body,q,VF))):ie(v,vJ(n,q,e)),v=I(v,n)}(n);case 264:return function(e){let n;const r=t.getLocalName(e);return i(r),n=ie(n,xI(t.createExpressionStatement(t.createAssignment(r,xI(t.createClassExpression(_J(e.modifiers,W,g_),e.name,void 0,_J(e.heritageClauses,q,tP),_J(e.members,q,__)),e))),e)),n=I(n,e),ke(n)}(n);case 249:return B(n,!0);case 250:return function(n){const r=b;return b=n,n=t.updateForInStatement(n,J(n.initializer),lJ(n.expression,q,V_),hJ(n.statement,R,e)),b=r,n}(n);case 251:return function(n){const r=b;return b=n,n=t.updateForOfStatement(n,n.awaitModifier,J(n.initializer),lJ(n.expression,q,V_),hJ(n.statement,R,e)),b=r,n}(n);case 247:return function(n){return t.updateDoStatement(n,hJ(n.statement,R,e),lJ(n.expression,q,V_))}(n);case 248:return function(n){return t.updateWhileStatement(n,lJ(n.expression,q,V_),hJ(n.statement,R,e))}(n);case 257:return function(e){return t.updateLabeledStatement(e,e.label,lJ(e.statement,R,pu,t.liftToBlock)??t.createExpressionStatement(t.createIdentifier("")))}(n);case 255:return function(e){return t.updateWithStatement(e,lJ(e.expression,q,V_),un.checkDefined(lJ(e.statement,R,pu,t.liftToBlock)))}(n);case 246:return function(e){return t.updateIfStatement(e,lJ(e.expression,q,V_),lJ(e.thenStatement,R,pu,t.liftToBlock)??t.createBlock([]),lJ(e.elseStatement,R,pu,t.liftToBlock))}(n);case 256:return function(e){return t.updateSwitchStatement(e,lJ(e.expression,q,V_),un.checkDefined(lJ(e.caseBlock,R,yE)))}(n);case 270:return function(e){const n=b;return b=e,e=t.updateCaseBlock(e,_J(e.clauses,R,ku)),b=n,e}(n);case 297:return function(e){return t.updateCaseClause(e,lJ(e.expression,q,V_),_J(e.statements,R,pu))}(n);case 298:case 259:return function(t){return vJ(t,R,e)}(n);case 300:return function(e){const n=b;return b=e,e=t.updateCatchClause(e,e.variableDeclaration,un.checkDefined(lJ(e.block,R,VF))),b=n,e}(n);case 242:return function(t){const n=b;return b=t,t=vJ(t,R,e),b=n,t}(n);default:return q(n)}}function B(n,r){const i=b;return b=n,n=t.updateForStatement(n,lJ(n.initializer,r?J:U,eu),lJ(n.condition,q,V_),lJ(n.incrementor,U,V_),hJ(n.statement,r?R:q,e)),b=i,n}function J(e){if(function(e){return _E(e)&&w(e)}(e)){let n;for(const t of e.declarations)n=ie(n,N(t,!1)),t.initializer||C(t);return n?t.inlineExpressions(n):t.createOmittedExpression()}return lJ(e,U,eu)}function z(n,r){if(!(276828160&n.transformFlags))return n;switch(n.kind){case 249:return B(n,!1);case 245:return function(e){return t.updateExpressionStatement(e,lJ(e.expression,U,V_))}(n);case 218:return function(e,n){return t.updateParenthesizedExpression(e,lJ(e.expression,n?U:q,V_))}(n,r);case 356:return function(e,n){return t.updatePartiallyEmittedExpression(e,lJ(e.expression,n?U:q,V_))}(n,r);case 227:if(ib(n))return function(t,n){return V(t.left)?Cz(t,q,e,0,!n):vJ(t,q,e)}(n,r);break;case 214:if(_f(n))return function(e){const n=OA(t,e,m,s,a,o),r=lJ(fe(e.arguments),q,V_),i=!n||r&&UN(r)&&r.text===n.text?r:n;return t.createCallExpression(t.createPropertyAccessExpression(y,t.createIdentifier("import")),void 0,i?[i]:[])}(n);break;case 225:case 226:return function(n,r){if((46===n.operator||47===n.operator)&&aD(n.operand)&&!Wl(n.operand)&&!hA(n.operand)&&!Yb(n.operand)){const e=H(n.operand);if(e){let o,a=lJ(n.operand,q,V_);CF(n)?a=t.updatePrefixUnaryExpression(n,a):(a=t.updatePostfixUnaryExpression(n,a),r||(o=t.createTempVariable(i),a=t.createAssignment(o,a),xI(a,n)),a=t.createComma(a,t.cloneNode(n.operand)),xI(a,n));for(const t of e)a=M(t,K(a));return o&&(a=t.createComma(a,o),xI(a,n)),a}}return vJ(n,q,e)}(n,r)}return vJ(n,q,e)}function q(e){return z(e,!1)}function U(e){return z(e,!0)}function V(e){if(rb(e,!0))return V(e.left);if(PF(e))return V(e.expression);if(uF(e))return $(e.properties,V);if(_F(e))return $(e.elements,V);if(iP(e))return V(e.name);if(rP(e))return V(e.initializer);if(aD(e)){const t=a.getReferencedExportContainer(e);return void 0!==t&&308===t.kind}return!1}function W(e){switch(e.kind){case 95:case 90:return}return e}function H(e){let n;const r=function(e){if(!Wl(e)){const t=a.getReferencedImportDeclaration(e);if(t)return t;const n=a.getReferencedValueDeclaration(e);if(n&&(null==g?void 0:g.exportedBindings[UJ(n)]))return n;const r=a.getReferencedValueDeclarations(e);if(r)for(const e of r)if(e!==n&&(null==g?void 0:g.exportedBindings[UJ(e)]))return e;return n}}(e);if(r){const i=a.getReferencedExportContainer(e,!1);i&&308===i.kind&&(n=ie(n,t.getDeclarationName(r))),n=se(n,null==g?void 0:g.exportedBindings[UJ(r)])}else if(Wl(e)&&Hl(e)){const t=null==g?void 0:g.exportSpecifiers.get(e);if(t){const e=[];for(const n of t)e.push(n.name);return e}}return n}function K(e){return void 0===x&&(x=[]),x[ZB(e)]=!0,e}}function Sq(e){const{factory:t,getEmitHelperFactory:n}=e,r=e.getEmitHost(),i=e.getEmitResolver(),o=e.getCompilerOptions(),a=yk(o),s=e.onEmitNode,c=e.onSubstituteNode;e.onEmitNode=function(e,t,n){sP(t)?((rO(t)||kk(o))&&o.importHelpers&&(u=new Map),d=t,s(e,t,n),d=void 0,u=void 0):s(e,t,n)},e.onSubstituteNode=function(e,n){return(n=c(e,n)).id&&l.has(n.id)?n:aD(n)&&8192&Zd(n)?function(e){const n=d&&EA(d);if(n)return l.add(ZB(e)),t.createPropertyAccessExpression(n,e);if(u){const n=gc(e);let r=u.get(n);return r||u.set(n,r=t.createUniqueName(n,48)),r}return e}(n):n},e.enableEmitNotification(308),e.enableSubstitution(80);const l=new Set;let _,u,d,p;return $J(e,function(r){if(r.isDeclarationFile)return r;if(rO(r)||kk(o)){d=r,p=void 0,o.rewriteRelativeImportExtensions&&(4194304&d.flags||Em(r))&&DC(r,!1,!1,e=>{ju(e.arguments[0])&&!xg(e.arguments[0].text,o)||(_=ie(_,e))});let i=function(r){const i=AA(t,n(),r,o);if(i){const e=[],n=t.copyPrologue(r.statements,e);return se(e,uJ([i],f,pu)),se(e,_J(r.statements,f,pu,n)),t.updateSourceFile(r,xI(t.createNodeArray(e),r.statements))}return vJ(r,f,e)}(r);return Uw(i,e.readEmitHelpers()),d=void 0,p&&(i=t.updateSourceFile(i,xI(t.createNodeArray(Ld(i.statements.slice(),p)),i.statements))),!rO(r)||200===vk(o)||$(i.statements,X_)?i:t.updateSourceFile(i,xI(t.createNodeArray([...i.statements,iA(t)]),i.statements))}return r});function f(r){switch(r.kind){case 272:return vk(o)>=100?function(e){let n;return un.assert(Tm(e),"import= for internal module references should be handled in an earlier transformer."),n=ie(n,hw(xI(t.createVariableStatement(void 0,t.createVariableDeclarationList([t.createVariableDeclaration(t.cloneNode(e.name),void 0,void 0,m(e))],a>=2?2:0)),e),e)),n=function(e,n){return Nv(n,32)&&(e=ie(e,t.createExportDeclaration(void 0,n.isTypeOnly,t.createNamedExports([t.createExportSpecifier(!1,void 0,gc(n.name))])))),e}(n,e),ke(n)}(r):void 0;case 278:return function(e){return e.isExportEquals?200===vk(o)?hw(t.createExpressionStatement(t.createAssignment(t.createPropertyAccessExpression(t.createIdentifier("module"),"exports"),e.expression)),e):void 0:e}(r);case 279:return function(e){const n=Sz(e.moduleSpecifier,o);if(void 0!==o.module&&o.module>5||!e.exportClause||!FE(e.exportClause)||!e.moduleSpecifier)return e.moduleSpecifier&&n!==e.moduleSpecifier?t.updateExportDeclaration(e,e.modifiers,e.isTypeOnly,e.exportClause,n,e.attributes):e;const r=e.exportClause.name,i=t.getGeneratedNameForNode(r),a=t.createImportDeclaration(void 0,t.createImportClause(void 0,void 0,t.createNamespaceImport(i)),n,e.attributes);hw(a,e.exportClause);const s=Wd(e)?t.createExportDefault(i):t.createExportDeclaration(void 0,!1,t.createNamedExports([t.createExportSpecifier(!1,i,r)]));return hw(s,e),[a,s]}(r);case 273:return function(e){if(!o.rewriteRelativeImportExtensions)return e;const n=Sz(e.moduleSpecifier,o);return n===e.moduleSpecifier?e:t.updateImportDeclaration(e,e.modifiers,e.importClause,n,e.attributes)}(r);case 214:if(r===(null==_?void 0:_[0]))return function(e){return t.updateCallExpression(e,e.expression,e.typeArguments,[ju(e.arguments[0])?Sz(e.arguments[0],o):n().createRewriteRelativeImportExtensionsHelper(e.arguments[0]),...e.arguments.slice(1)])}(_.shift());default:if((null==_?void 0:_.length)&&Xb(r,_[0]))return vJ(r,f,e)}return r}function m(e){const n=OA(t,e,un.checkDefined(d),r,i,o),s=[];if(n&&s.push(Sz(n,o)),200===vk(o))return t.createCallExpression(t.createIdentifier("require"),void 0,s);if(!p){const e=t.createUniqueName("_createRequire",48),n=t.createImportDeclaration(void 0,t.createImportClause(void 0,void 0,t.createNamedImports([t.createImportSpecifier(!1,t.createIdentifier("createRequire"),e)])),t.createStringLiteral("module"),void 0),r=t.createUniqueName("__require",48),i=t.createVariableStatement(void 0,t.createVariableDeclarationList([t.createVariableDeclaration(r,void 0,void 0,t.createCallExpression(t.cloneNode(e),void 0,[t.createPropertyAccessExpression(t.createMetaProperty(102,t.createIdentifier("meta")),t.createIdentifier("url"))]))],a>=2?2:0));p=[n,i]}const c=p[1].declarationList.declarations[0].name;return un.assertNode(c,aD),t.createCallExpression(t.cloneNode(c),void 0,s)}}function Tq(e){const t=e.onSubstituteNode,n=e.onEmitNode,r=Sq(e),i=e.onSubstituteNode,o=e.onEmitNode;e.onSubstituteNode=t,e.onEmitNode=n;const a=bq(e),s=e.onSubstituteNode,c=e.onEmitNode,l=t=>e.getEmitHost().getEmitModuleFormatOfFile(t);let _;return e.onSubstituteNode=function(e,n){return sP(n)?(_=n,t(e,n)):_?l(_)>=5?i(e,n):s(e,n):t(e,n)},e.onEmitNode=function(e,t,r){return sP(t)&&(_=t),_?l(_)>=5?o(e,t,r):c(e,t,r):n(e,t,r)},e.enableSubstitution(308),e.enableEmitNotification(308),function(t){return 308===t.kind?u(t):function(t){return e.factory.createBundle(E(t.sourceFiles,u))}(t)};function u(e){if(e.isDeclarationFile)return e;_=e;const t=(l(e)>=5?r:a)(e);return _=void 0,un.assert(sP(t)),t}}function Cq(e){return lE(e)||ND(e)||wD(e)||lF(e)||wu(e)||Nu(e)||LD(e)||OD(e)||FD(e)||DD(e)||uE(e)||TD(e)||SD(e)||OF(e)||bE(e)||fE(e)||PD(e)||jD(e)||dF(e)||pF(e)||NF(e)||Dg(e)}function wq(e){return wu(e)||Nu(e)?function(t){const n=function(t){return Dv(e)?t.errorModuleName?2===t.accessibility?_a.Public_static_property_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:_a.Public_static_property_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:_a.Public_static_property_0_of_exported_class_has_or_is_using_private_name_1:264===e.parent.kind?t.errorModuleName?2===t.accessibility?_a.Public_property_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:_a.Public_property_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:_a.Public_property_0_of_exported_class_has_or_is_using_private_name_1:t.errorModuleName?_a.Property_0_of_exported_interface_has_or_is_using_name_1_from_private_module_2:_a.Property_0_of_exported_interface_has_or_is_using_private_name_1}(t);return void 0!==n?{diagnosticMessage:n,errorNode:e,typeName:e.name}:void 0}:DD(e)||FD(e)?function(t){const n=function(t){return Dv(e)?t.errorModuleName?2===t.accessibility?_a.Public_static_method_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:_a.Public_static_method_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:_a.Public_static_method_0_of_exported_class_has_or_is_using_private_name_1:264===e.parent.kind?t.errorModuleName?2===t.accessibility?_a.Public_method_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:_a.Public_method_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:_a.Public_method_0_of_exported_class_has_or_is_using_private_name_1:t.errorModuleName?_a.Method_0_of_exported_interface_has_or_is_using_name_1_from_private_module_2:_a.Method_0_of_exported_interface_has_or_is_using_private_name_1}(t);return void 0!==n?{diagnosticMessage:n,errorNode:e,typeName:e.name}:void 0}:Nq(e)}function Nq(e){return lE(e)||ND(e)||wD(e)||dF(e)||pF(e)||NF(e)||lF(e)||PD(e)?t:wu(e)||Nu(e)?function(t){let n;return n=179===e.kind?Dv(e)?t.errorModuleName?_a.Parameter_type_of_public_static_setter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2:_a.Parameter_type_of_public_static_setter_0_from_exported_class_has_or_is_using_private_name_1:t.errorModuleName?_a.Parameter_type_of_public_setter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2:_a.Parameter_type_of_public_setter_0_from_exported_class_has_or_is_using_private_name_1:Dv(e)?t.errorModuleName?2===t.accessibility?_a.Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:_a.Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2:_a.Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_private_name_1:t.errorModuleName?2===t.accessibility?_a.Return_type_of_public_getter_0_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:_a.Return_type_of_public_getter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2:_a.Return_type_of_public_getter_0_from_exported_class_has_or_is_using_private_name_1,{diagnosticMessage:n,errorNode:e.name,typeName:e.name}}:LD(e)||OD(e)||FD(e)||DD(e)||uE(e)||jD(e)?function(t){let n;switch(e.kind){case 181:n=t.errorModuleName?_a.Return_type_of_constructor_signature_from_exported_interface_has_or_is_using_name_0_from_private_module_1:_a.Return_type_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_0;break;case 180:n=t.errorModuleName?_a.Return_type_of_call_signature_from_exported_interface_has_or_is_using_name_0_from_private_module_1:_a.Return_type_of_call_signature_from_exported_interface_has_or_is_using_private_name_0;break;case 182:n=t.errorModuleName?_a.Return_type_of_index_signature_from_exported_interface_has_or_is_using_name_0_from_private_module_1:_a.Return_type_of_index_signature_from_exported_interface_has_or_is_using_private_name_0;break;case 175:case 174:n=Dv(e)?t.errorModuleName?2===t.accessibility?_a.Return_type_of_public_static_method_from_exported_class_has_or_is_using_name_0_from_external_module_1_but_cannot_be_named:_a.Return_type_of_public_static_method_from_exported_class_has_or_is_using_name_0_from_private_module_1:_a.Return_type_of_public_static_method_from_exported_class_has_or_is_using_private_name_0:264===e.parent.kind?t.errorModuleName?2===t.accessibility?_a.Return_type_of_public_method_from_exported_class_has_or_is_using_name_0_from_external_module_1_but_cannot_be_named:_a.Return_type_of_public_method_from_exported_class_has_or_is_using_name_0_from_private_module_1:_a.Return_type_of_public_method_from_exported_class_has_or_is_using_private_name_0:t.errorModuleName?_a.Return_type_of_method_from_exported_interface_has_or_is_using_name_0_from_private_module_1:_a.Return_type_of_method_from_exported_interface_has_or_is_using_private_name_0;break;case 263:n=t.errorModuleName?2===t.accessibility?_a.Return_type_of_exported_function_has_or_is_using_name_0_from_external_module_1_but_cannot_be_named:_a.Return_type_of_exported_function_has_or_is_using_name_0_from_private_module_1:_a.Return_type_of_exported_function_has_or_is_using_private_name_0;break;default:return un.fail("This is unknown kind for signature: "+e.kind)}return{diagnosticMessage:n,errorNode:e.name||e}}:TD(e)?Zs(e,e.parent)&&Nv(e.parent,2)?t:function(t){const n=function(t){switch(e.parent.kind){case 177:return t.errorModuleName?2===t.accessibility?_a.Parameter_0_of_constructor_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:_a.Parameter_0_of_constructor_from_exported_class_has_or_is_using_name_1_from_private_module_2:_a.Parameter_0_of_constructor_from_exported_class_has_or_is_using_private_name_1;case 181:case 186:return t.errorModuleName?_a.Parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2:_a.Parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_1;case 180:return t.errorModuleName?_a.Parameter_0_of_call_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2:_a.Parameter_0_of_call_signature_from_exported_interface_has_or_is_using_private_name_1;case 182:return t.errorModuleName?_a.Parameter_0_of_index_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2:_a.Parameter_0_of_index_signature_from_exported_interface_has_or_is_using_private_name_1;case 175:case 174:return Dv(e.parent)?t.errorModuleName?2===t.accessibility?_a.Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:_a.Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_name_1_from_private_module_2:_a.Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_private_name_1:264===e.parent.parent.kind?t.errorModuleName?2===t.accessibility?_a.Parameter_0_of_public_method_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:_a.Parameter_0_of_public_method_from_exported_class_has_or_is_using_name_1_from_private_module_2:_a.Parameter_0_of_public_method_from_exported_class_has_or_is_using_private_name_1:t.errorModuleName?_a.Parameter_0_of_method_from_exported_interface_has_or_is_using_name_1_from_private_module_2:_a.Parameter_0_of_method_from_exported_interface_has_or_is_using_private_name_1;case 263:case 185:return t.errorModuleName?2===t.accessibility?_a.Parameter_0_of_exported_function_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:_a.Parameter_0_of_exported_function_has_or_is_using_name_1_from_private_module_2:_a.Parameter_0_of_exported_function_has_or_is_using_private_name_1;case 179:case 178:return t.errorModuleName?2===t.accessibility?_a.Parameter_0_of_accessor_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:_a.Parameter_0_of_accessor_has_or_is_using_name_1_from_private_module_2:_a.Parameter_0_of_accessor_has_or_is_using_private_name_1;default:return un.fail(`Unknown parent for parameter: ${un.formatSyntaxKind(e.parent.kind)}`)}}(t);return void 0!==n?{diagnosticMessage:n,errorNode:e,typeName:e.name}:void 0}:SD(e)?function(){let t;switch(e.parent.kind){case 264:t=_a.Type_parameter_0_of_exported_class_has_or_is_using_private_name_1;break;case 265:t=_a.Type_parameter_0_of_exported_interface_has_or_is_using_private_name_1;break;case 201:t=_a.Type_parameter_0_of_exported_mapped_object_type_is_using_private_name_1;break;case 186:case 181:t=_a.Type_parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_1;break;case 180:t=_a.Type_parameter_0_of_call_signature_from_exported_interface_has_or_is_using_private_name_1;break;case 175:case 174:t=Dv(e.parent)?_a.Type_parameter_0_of_public_static_method_from_exported_class_has_or_is_using_private_name_1:264===e.parent.parent.kind?_a.Type_parameter_0_of_public_method_from_exported_class_has_or_is_using_private_name_1:_a.Type_parameter_0_of_method_from_exported_interface_has_or_is_using_private_name_1;break;case 185:case 263:t=_a.Type_parameter_0_of_exported_function_has_or_is_using_private_name_1;break;case 196:t=_a.Extends_clause_for_inferred_type_0_has_or_is_using_private_name_1;break;case 266:t=_a.Type_parameter_0_of_exported_type_alias_has_or_is_using_private_name_1;break;default:return un.fail("This is unknown parent for type parameter: "+e.parent.kind)}return{diagnosticMessage:t,errorNode:e,typeName:e.name}}:OF(e)?function(){let t;return t=dE(e.parent.parent)?tP(e.parent)&&119===e.parent.token?_a.Implements_clause_of_exported_class_0_has_or_is_using_private_name_1:e.parent.parent.name?_a.extends_clause_of_exported_class_0_has_or_is_using_private_name_1:_a.extends_clause_of_exported_class_has_or_is_using_private_name_0:_a.extends_clause_of_exported_interface_0_has_or_is_using_private_name_1,{diagnosticMessage:t,errorNode:e,typeName:Cc(e.parent.parent)}}:bE(e)?function(){return{diagnosticMessage:_a.Import_declaration_0_is_using_private_name_1,errorNode:e,typeName:e.name}}:fE(e)||Dg(e)?function(t){return{diagnosticMessage:t.errorModuleName?_a.Exported_type_alias_0_has_or_is_using_private_name_1_from_module_2:_a.Exported_type_alias_0_has_or_is_using_private_name_1,errorNode:Dg(e)?un.checkDefined(e.typeExpression):e.type,typeName:Dg(e)?Cc(e):e.name}}:un.assertNever(e,`Attempted to set a declaration diagnostic context for unhandled node kind: ${un.formatSyntaxKind(e.kind)}`);function t(t){const n=function(t){return 261===e.kind||209===e.kind?t.errorModuleName?2===t.accessibility?_a.Exported_variable_0_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:_a.Exported_variable_0_has_or_is_using_name_1_from_private_module_2:_a.Exported_variable_0_has_or_is_using_private_name_1:173===e.kind||212===e.kind||213===e.kind||227===e.kind||172===e.kind||170===e.kind&&Nv(e.parent,2)?Dv(e)?t.errorModuleName?2===t.accessibility?_a.Public_static_property_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:_a.Public_static_property_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:_a.Public_static_property_0_of_exported_class_has_or_is_using_private_name_1:264===e.parent.kind||170===e.kind?t.errorModuleName?2===t.accessibility?_a.Public_property_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:_a.Public_property_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:_a.Public_property_0_of_exported_class_has_or_is_using_private_name_1:t.errorModuleName?_a.Property_0_of_exported_interface_has_or_is_using_name_1_from_private_module_2:_a.Property_0_of_exported_interface_has_or_is_using_private_name_1:void 0}(t);return void 0!==n?{diagnosticMessage:n,errorNode:e,typeName:e.name}:void 0}}function Dq(e){const t={220:_a.Add_a_return_type_to_the_function_expression,219:_a.Add_a_return_type_to_the_function_expression,175:_a.Add_a_return_type_to_the_method,178:_a.Add_a_return_type_to_the_get_accessor_declaration,179:_a.Add_a_type_to_parameter_of_the_set_accessor_declaration,263:_a.Add_a_return_type_to_the_function_declaration,181:_a.Add_a_return_type_to_the_function_declaration,170:_a.Add_a_type_annotation_to_the_parameter_0,261:_a.Add_a_type_annotation_to_the_variable_0,173:_a.Add_a_type_annotation_to_the_property_0,172:_a.Add_a_type_annotation_to_the_property_0,278:_a.Move_the_expression_in_default_export_to_a_variable_and_add_a_type_annotation_to_it},n={219:_a.Function_must_have_an_explicit_return_type_annotation_with_isolatedDeclarations,263:_a.Function_must_have_an_explicit_return_type_annotation_with_isolatedDeclarations,220:_a.Function_must_have_an_explicit_return_type_annotation_with_isolatedDeclarations,175:_a.Method_must_have_an_explicit_return_type_annotation_with_isolatedDeclarations,181:_a.Method_must_have_an_explicit_return_type_annotation_with_isolatedDeclarations,178:_a.At_least_one_accessor_must_have_an_explicit_type_annotation_with_isolatedDeclarations,179:_a.At_least_one_accessor_must_have_an_explicit_type_annotation_with_isolatedDeclarations,170:_a.Parameter_must_have_an_explicit_type_annotation_with_isolatedDeclarations,261:_a.Variable_must_have_an_explicit_type_annotation_with_isolatedDeclarations,173:_a.Property_must_have_an_explicit_type_annotation_with_isolatedDeclarations,172:_a.Property_must_have_an_explicit_type_annotation_with_isolatedDeclarations,168:_a.Computed_property_names_on_class_or_object_literals_cannot_be_inferred_with_isolatedDeclarations,306:_a.Objects_that_contain_spread_assignments_can_t_be_inferred_with_isolatedDeclarations,305:_a.Objects_that_contain_shorthand_properties_can_t_be_inferred_with_isolatedDeclarations,210:_a.Only_const_arrays_can_be_inferred_with_isolatedDeclarations,278:_a.Default_exports_can_t_be_inferred_with_isolatedDeclarations,231:_a.Arrays_with_spread_elements_can_t_inferred_with_isolatedDeclarations};return function(r){if(uc(r,tP))return Rp(r,_a.Extends_clause_can_t_contain_an_expression_with_isolatedDeclarations);if((wf(r)||zD(r.parent))&&(e_(r)||ab(r)))return function(e){const t=Rp(e,_a.Type_containing_private_name_0_can_t_be_used_with_isolatedDeclarations,Xd(e,!1));return o(e,t),t}(r);switch(un.type(r),r.kind){case 178:case 179:return i(r);case 168:case 305:case 306:return function(e){const t=Rp(e,n[e.kind]);return o(e,t),t}(r);case 210:case 231:return function(e){const t=Rp(e,n[e.kind]);return o(e,t),t}(r);case 175:case 181:case 219:case 220:case 263:return function(e){const r=Rp(e,n[e.kind]);return o(e,r),aT(r,Rp(e,t[e.kind])),r}(r);case 209:return function(e){return Rp(e,_a.Binding_elements_can_t_be_exported_directly_with_isolatedDeclarations)}(r);case 173:case 261:return function(e){const r=Rp(e,n[e.kind]),i=Xd(e.name,!1);return aT(r,Rp(e,t[e.kind],i)),r}(r);case 170:return function(r){if(wu(r.parent))return i(r.parent);const o=e.requiresAddingImplicitUndefined(r,r.parent);if(!o&&r.initializer)return a(r.initializer);const s=Rp(r,o?_a.Declaration_emit_for_this_parameter_requires_implicitly_adding_undefined_to_its_type_This_is_not_supported_with_isolatedDeclarations:n[r.kind]),c=Xd(r.name,!1);return aT(s,Rp(r,t[r.kind],c)),s}(r);case 304:return a(r.initializer);case 232:return function(e){return a(e,_a.Inference_from_class_expressions_is_not_supported_with_isolatedDeclarations)}(r);default:return a(r)}};function r(e){const t=uc(e,e=>AE(e)||pu(e)||lE(e)||ND(e)||TD(e));if(t)return AE(t)?t:nE(t)?uc(t,e=>o_(e)&&!PD(e)):pu(t)?void 0:t}function i(e){const{getAccessor:r,setAccessor:i}=pv(e.symbol.declarations,e),o=Rp((wu(e)?e.parameters[0]:e)??e,n[e.kind]);return i&&aT(o,Rp(i,t[i.kind])),r&&aT(o,Rp(r,t[r.kind])),o}function o(e,n){const i=r(e);if(i){const e=AE(i)||!i.name?"":Xd(i.name,!1);aT(n,Rp(i,t[i.kind],e))}return n}function a(e,i){const o=r(e);let a;if(o){const r=AE(o)||!o.name?"":Xd(o.name,!1);o===uc(e.parent,e=>AE(e)||(pu(e)?"quit":!yF(e)&&!hF(e)&&!LF(e)))?(a=Rp(e,i??n[o.kind]),aT(a,Rp(o,t[o.kind],r))):(a=Rp(e,i??_a.Expression_type_can_t_be_inferred_with_isolatedDeclarations),aT(a,Rp(o,t[o.kind],r)),aT(a,Rp(e,_a.Add_satisfies_and_a_type_assertion_to_this_expression_satisfies_T_as_T_to_make_the_type_explicit)))}else a=Rp(e,i??_a.Expression_type_can_t_be_inferred_with_isolatedDeclarations);return a}}function Fq(e,t,n){const r=e.getCompilerOptions();return T(N(Gy(e,n),Am),n)?Vq(t,e,mw,r,[n],[Aq],!1).diagnostics:void 0}var Eq=531469,Pq=8;function Aq(e){const t=()=>un.fail("Diagnostic emitted without context");let n,r,i,o,a=t,s=!0,c=!1,_=!1,p=!1,f=!1;const{factory:m}=e,g=e.getEmitHost();let h=()=>{};const y={trackSymbol:function(e,t,n){return!(262144&e.flags)&&M(w.isSymbolAccessible(e,t,n,!0))},reportInaccessibleThisError:function(){(v||b)&&e.addDiagnostic(Rp(v||b,_a.The_inferred_type_of_0_references_an_inaccessible_1_type_A_type_annotation_is_necessary,R(),"this"))},reportInaccessibleUniqueSymbolError:function(){(v||b)&&e.addDiagnostic(Rp(v||b,_a.The_inferred_type_of_0_references_an_inaccessible_1_type_A_type_annotation_is_necessary,R(),"unique symbol"))},reportCyclicStructureError:function(){(v||b)&&e.addDiagnostic(Rp(v||b,_a.The_inferred_type_of_0_references_a_type_with_a_cyclic_structure_which_cannot_be_trivially_serialized_A_type_annotation_is_necessary,R()))},reportPrivateInBaseOfClassExpression:function(t){(v||b)&&e.addDiagnostic(aT(Rp(v||b,_a.Property_0_of_exported_anonymous_class_type_may_not_be_private_or_protected,t),...lE((v||b).parent)?[Rp(v||b,_a.Add_a_type_annotation_to_the_variable_0,R())]:[]))},reportLikelyUnsafeImportRequiredError:function(t){(v||b)&&e.addDiagnostic(Rp(v||b,_a.The_inferred_type_of_0_cannot_be_named_without_a_reference_to_1_This_is_likely_not_portable_A_type_annotation_is_necessary,R(),t))},reportTruncationError:function(){(v||b)&&e.addDiagnostic(Rp(v||b,_a.The_inferred_type_of_this_node_exceeds_the_maximum_length_the_compiler_will_serialize_An_explicit_type_annotation_is_needed))},moduleResolverHost:g,reportNonlocalAugmentation:function(t,n,r){var i;const o=null==(i=n.declarations)?void 0:i.find(e=>vd(e)===t),a=N(r.declarations,e=>vd(e)!==t);if(o&&a)for(const t of a)e.addDiagnostic(aT(Rp(t,_a.Declaration_augments_declaration_in_another_file_This_cannot_be_serialized),Rp(o,_a.This_is_the_declaration_being_augmented_Consider_moving_the_augmenting_declaration_into_the_same_file)))},reportNonSerializableProperty:function(t){(v||b)&&e.addDiagnostic(Rp(v||b,_a.The_type_of_this_node_cannot_be_serialized_because_its_property_0_cannot_be_serialized,t))},reportInferenceFallback:j,pushErrorFallbackNode(e){const t=b,n=h;h=()=>{h=n,b=t},b=e},popErrorFallbackNode(){h()}};let v,b,x,k,S,C;const w=e.getEmitResolver(),D=e.getCompilerOptions(),F=Dq(w),{stripInternal:P,isolatedDeclarations:A}=D;return function(l){if(308===l.kind&&l.isDeclarationFile)return l;if(309===l.kind){c=!0,k=[],S=[],C=[];let u=!1;const d=m.createBundle(E(l.sourceFiles,c=>{if(c.isDeclarationFile)return;if(u=u||c.hasNoDefaultLib,x=c,n=c,r=void 0,o=!1,i=new Map,a=t,p=!1,f=!1,h(c),Zp(c)||ef(c)){_=!1,s=!1;const t=Fm(c)?m.createNodeArray(J(c)):_J(c.statements,le,pu);return m.updateSourceFile(c,[m.createModuleDeclaration([m.createModifier(138)],m.createStringLiteral(Ry(e.getEmitHost(),c)),m.createModuleBlock(xI(m.createNodeArray(ae(t)),c.statements)))],!0,[],[],!1,[])}s=!0;const l=Fm(c)?m.createNodeArray(J(c)):_J(c.statements,le,pu);return m.updateSourceFile(c,ae(l),!0,[],[],!1,[])})),y=Do(Oo(Qq(l,g,!0).declarationFilePath));return d.syntheticFileReferences=w(y),d.syntheticTypeReferences=v(),d.syntheticLibReferences=b(),d.hasNoDefaultLib=u,d}let u;if(s=!0,p=!1,f=!1,n=l,x=l,a=t,c=!1,_=!1,o=!1,r=void 0,i=new Map,k=[],S=[],C=[],h(x),Fm(x))u=m.createNodeArray(J(l));else{const e=_J(l.statements,le,pu);u=xI(m.createNodeArray(ae(e)),l.statements),rO(l)&&(!_||p&&!f)&&(u=xI(m.createNodeArray([...u,iA(m)]),u))}const d=Do(Oo(Qq(l,g,!0).declarationFilePath));return m.updateSourceFile(l,u,!0,w(d),v(),l.hasNoDefaultLib,b());function h(e){k=K(k,E(e.referencedFiles,t=>[e,t])),S=K(S,e.typeReferenceDirectives),C=K(C,e.libReferenceDirectives)}function y(e){const t={...e};return t.pos=-1,t.end=-1,t}function v(){return B(S,e=>{if(e.preserve)return y(e)})}function b(){return B(C,e=>{if(e.preserve)return y(e)})}function w(e){return B(k,([t,n])=>{if(!n.preserve)return;const r=g.getSourceFileFromReference(t,n);if(!r)return;let i;if(r.isDeclarationFile)i=r.fileName;else{if(c&&T(l.sourceFiles,r))return;const e=Qq(r,g,!0);i=e.declarationFilePath||e.jsFilePath||r.fileName}if(!i)return;const o=aa(e,i,g.getCurrentDirectory(),g.getCanonicalFileName,!1),a=y(n);return a.fileName=o,a})}};function L(t){w.getPropertiesOfContainerFunction(t).forEach(t=>{if(lC(t.valueDeclaration)){const n=NF(t.valueDeclaration)?t.valueDeclaration.left:t.valueDeclaration;e.addDiagnostic(Rp(n,_a.Assigning_properties_to_functions_without_declaring_them_is_not_supported_with_isolatedDeclarations_Add_an_explicit_declaration_for_the_properties_assigned_to_this_function))}})}function j(t){A&&!Fm(x)&&vd(t)===x&&(lE(t)&&w.isExpandoFunctionDeclaration(t)?L(t):e.addDiagnostic(F(t)))}function M(t){if(0===t.accessibility){if(t.aliasesToMakeVisible)if(r)for(const e of t.aliasesToMakeVisible)ce(r,e);else r=t.aliasesToMakeVisible}else if(3!==t.accessibility){const n=a(t);if(n)return n.typeName?e.addDiagnostic(Rp(t.errorNode||n.errorNode,n.diagnosticMessage,Xd(n.typeName),t.errorSymbolName,t.errorModuleName)):e.addDiagnostic(Rp(t.errorNode||n.errorNode,n.diagnosticMessage,t.errorSymbolName,t.errorModuleName)),!0}return!1}function R(){return v?Ap(v):b&&Cc(b)?Ap(Cc(b)):b&&AE(b)?b.isExportEquals?"export=":"default":"(Missing)"}function J(e){const t=a;a=t=>t.errorNode&&Cq(t.errorNode)?Nq(t.errorNode)(t):{diagnosticMessage:t.errorModuleName?_a.Declaration_emit_for_this_file_requires_using_private_name_0_from_module_1_An_explicit_type_annotation_may_unblock_declaration_emit:_a.Declaration_emit_for_this_file_requires_using_private_name_0_An_explicit_type_annotation_may_unblock_declaration_emit,errorNode:t.errorNode||e};const n=w.getDeclarationStatementsForSourceFile(e,Eq,Pq,y);return a=t,n}function z(e){return 80===e.kind?e:208===e.kind?m.updateArrayBindingPattern(e,_J(e.elements,t,T_)):m.updateObjectBindingPattern(e,_J(e.elements,t,lF));function t(e){return 233===e.kind?e:(e.propertyName&&kD(e.propertyName)&&ab(e.propertyName.expression)&&ee(e.propertyName.expression,n),m.updateBindingElement(e,e.dotDotDotToken,e.propertyName,z(e.name),void 0))}}function q(e,t){let n;o||(n=a,a=Nq(e));const r=m.updateParameterDeclaration(e,function(e,t,n){return e.createModifiersFromModifierFlags(Iq(t,n,void 0))}(m,e,t),e.dotDotDotToken,z(e.name),w.isOptionalParameter(e)?e.questionToken||m.createToken(58):void 0,W(e,!0),V(e));return o||(a=n),r}function U(e){return Oq(e)&&!!e.initializer&&w.isLiteralConstDeclaration(pc(e))}function V(e){if(U(e))return bC(xC(e.initializer))||j(e),w.createLiteralConstValue(pc(e,Oq),y)}function W(e,t){if(!t&&wv(e,2))return;if(U(e))return;if(!AE(e)&&!lF(e)&&e.type&&(!TD(e)||!w.requiresAddingImplicitUndefined(e,n)))return lJ(e.type,se,b_);const r=v;let i,s;return v=e.name,o||(i=a,Cq(e)&&(a=Nq(e))),kC(e)?s=w.createTypeOfDeclaration(e,n,Eq,Pq,y):r_(e)?s=w.createReturnTypeOfSignatureDeclaration(e,n,Eq,Pq,y):un.assertNever(e),v=r,o||(a=i),s??m.createKeywordTypeNode(133)}function H(e){switch((e=pc(e)).kind){case 263:case 268:case 265:case 264:case 266:case 267:return!w.isDeclarationVisible(e);case 261:return!G(e);case 272:case 273:case 279:case 278:return!1;case 176:return!0}return!1}function G(e){return!IF(e)&&(k_(e.name)?$(e.name.elements,G):w.isDeclarationVisible(e))}function X(e,t,n){if(wv(e,2))return m.createNodeArray();const r=E(t,e=>q(e,n));return r?m.createNodeArray(r,t.hasTrailingComma):m.createNodeArray()}function Q(e,t){let n;if(!t){const t=sv(e);t&&(n=[q(t)])}if(ID(e)){let r;if(!t){const t=ov(e);t&&(r=q(t))}r||(r=m.createParameterDeclaration(void 0,void 0,"value")),n=ie(n,r)}return m.createNodeArray(n||l)}function Y(e,t){return wv(e,2)?void 0:_J(t,se,SD)}function Z(e){return sP(e)||fE(e)||gE(e)||dE(e)||pE(e)||r_(e)||jD(e)||nF(e)}function ee(e,t){M(w.isEntityNameVisible(e,t))}function te(e,t){return Du(e)&&Du(t)&&(e.jsDoc=t.jsDoc),Aw(e,Pw(t))}function re(t,n){if(n){if(_=_||268!==t.kind&&206!==t.kind,ju(n)&&c){const n=Jy(e.getEmitHost(),w,t);if(n)return m.createStringLiteral(n)}return n}}function oe(e){const t=mV(e);return e&&void 0!==t?e:void 0}function ae(e){for(;u(r);){const e=r.shift();if(!wp(e))return un.fail(`Late replaced statement was found which is not handled by the declaration transformer!: ${un.formatSyntaxKind(e.kind)}`);const t=s;s=e.parent&&sP(e.parent)&&!(rO(e.parent)&&c);const n=de(e);s=t,i.set(UJ(e),n)}return _J(e,function(e){if(wp(e)){const t=UJ(e);if(i.has(t)){const n=i.get(t);return i.delete(t),n&&((Qe(n)?$(n,G_):G_(n))&&(p=!0),sP(e.parent)&&(Qe(n)?$(n,X_):X_(n))&&(_=!0)),n}}return e},pu)}function se(t){if(fe(t))return;if(_u(t)){if(H(t))return;if(Rh(t))if(A){if(!w.isDefinitelyReferenceToGlobalSymbolObject(t.name.expression)){if(dE(t.parent)||uF(t.parent))return void e.addDiagnostic(Rp(t,_a.Computed_property_names_on_class_or_object_literals_cannot_be_inferred_with_isolatedDeclarations));if((pE(t.parent)||qD(t.parent))&&!ab(t.name.expression))return void e.addDiagnostic(Rp(t,_a.Computed_properties_must_be_number_or_string_literals_variables_or_dotted_expressions_with_isolatedDeclarations))}}else if(!w.isLateBound(pc(t))||!ab(t.name.expression))return}if(r_(t)&&w.isImplementationOfOverload(t))return;if(UF(t))return;let r;Z(t)&&(r=n,n=t);const i=a,s=Cq(t),c=o;let l=(188===t.kind||201===t.kind)&&266!==t.parent.kind;if((FD(t)||DD(t))&&wv(t,2)){if(t.symbol&&t.symbol.declarations&&t.symbol.declarations[0]!==t)return;return u(m.createPropertyDeclaration(ge(t),t.name,void 0,void 0,void 0))}if(s&&!o&&(a=Nq(t)),zD(t)&&ee(t.exprName,n),l&&(o=!0),function(e){switch(e.kind){case 181:case 177:case 175:case 178:case 179:case 173:case 172:case 174:case 180:case 182:case 261:case 169:case 234:case 184:case 195:case 185:case 186:case 206:return!0}return!1}(t))switch(t.kind){case 234:{(e_(t.expression)||ab(t.expression))&&ee(t.expression,n);const r=vJ(t,se,e);return u(m.updateExpressionWithTypeArguments(r,r.expression,r.typeArguments))}case 184:{ee(t.typeName,n);const r=vJ(t,se,e);return u(m.updateTypeReferenceNode(r,r.typeName,r.typeArguments))}case 181:return u(m.updateConstructSignature(t,Y(t,t.typeParameters),X(t,t.parameters),W(t)));case 177:return u(m.createConstructorDeclaration(ge(t),X(t,t.parameters,0),void 0));case 175:return sD(t.name)?u(void 0):u(m.createMethodDeclaration(ge(t),void 0,t.name,t.questionToken,Y(t,t.typeParameters),X(t,t.parameters),W(t),void 0));case 178:return sD(t.name)?u(void 0):u(m.updateGetAccessorDeclaration(t,ge(t),t.name,Q(t,wv(t,2)),W(t),void 0));case 179:return sD(t.name)?u(void 0):u(m.updateSetAccessorDeclaration(t,ge(t),t.name,Q(t,wv(t,2)),void 0));case 173:return sD(t.name)?u(void 0):u(m.updatePropertyDeclaration(t,ge(t),t.name,t.questionToken,W(t),V(t)));case 172:return sD(t.name)?u(void 0):u(m.updatePropertySignature(t,ge(t),t.name,t.questionToken,W(t)));case 174:return sD(t.name)?u(void 0):u(m.updateMethodSignature(t,ge(t),t.name,t.questionToken,Y(t,t.typeParameters),X(t,t.parameters),W(t)));case 180:return u(m.updateCallSignature(t,Y(t,t.typeParameters),X(t,t.parameters),W(t)));case 182:return u(m.updateIndexSignature(t,ge(t),X(t,t.parameters),lJ(t.type,se,b_)||m.createKeywordTypeNode(133)));case 261:return k_(t.name)?pe(t.name):(l=!0,o=!0,u(m.updateVariableDeclaration(t,t.name,void 0,W(t),V(t))));case 169:return 175===(_=t).parent.kind&&wv(_.parent,2)&&(t.default||t.constraint)?u(m.updateTypeParameterDeclaration(t,t.modifiers,t.name,void 0,void 0)):u(vJ(t,se,e));case 195:{const e=lJ(t.checkType,se,b_),r=lJ(t.extendsType,se,b_),i=n;n=t.trueType;const o=lJ(t.trueType,se,b_);n=i;const a=lJ(t.falseType,se,b_);return un.assert(e),un.assert(r),un.assert(o),un.assert(a),u(m.updateConditionalTypeNode(t,e,r,o,a))}case 185:return u(m.updateFunctionTypeNode(t,_J(t.typeParameters,se,SD),X(t,t.parameters),un.checkDefined(lJ(t.type,se,b_))));case 186:return u(m.updateConstructorTypeNode(t,ge(t),_J(t.typeParameters,se,SD),X(t,t.parameters),un.checkDefined(lJ(t.type,se,b_))));case 206:return df(t)?u(m.updateImportTypeNode(t,m.updateLiteralTypeNode(t.argument,re(t,t.argument.literal)),t.attributes,t.qualifier,_J(t.typeArguments,se,b_),t.isTypeOf)):u(t);default:un.assertNever(t,`Attempted to process unhandled node kind: ${un.formatSyntaxKind(t.kind)}`)}var _;return VD(t)&&za(x,t.pos).line===za(x,t.end).line&&xw(t,1),u(vJ(t,se,e));function u(e){return e&&s&&Rh(t)&&function(e){let t;o||(t=a,a=wq(e)),v=e.name,un.assert(Rh(e));ee(e.name.expression,n),o||(a=t),v=void 0}(t),Z(t)&&(n=r),s&&!o&&(a=i),l&&(o=c),e===t?e:e&&hw(te(e,t),t)}}function le(e){if(!function(e){switch(e.kind){case 263:case 268:case 272:case 265:case 264:case 266:case 267:case 244:case 273:case 279:case 278:return!0}return!1}(e))return;if(fe(e))return;switch(e.kind){case 279:return sP(e.parent)&&(_=!0),f=!0,m.updateExportDeclaration(e,e.modifiers,e.isTypeOnly,e.exportClause,re(e,e.moduleSpecifier),oe(e.attributes));case 278:if(sP(e.parent)&&(_=!0),f=!0,80===e.expression.kind)return e;{const t=m.createUniqueName("_default",16);a=()=>({diagnosticMessage:_a.Default_export_of_the_module_has_or_is_using_private_name_0,errorNode:e}),b=e;const n=W(e),r=m.createVariableDeclaration(t,void 0,n,void 0);b=void 0;const i=m.createVariableStatement(s?[m.createModifier(138)]:[],m.createVariableDeclarationList([r],2));return te(i,e),bw(e),[i,m.updateExportAssignment(e,e.modifiers,t)]}}const t=de(e);return i.set(UJ(e),t),e}function _e(e){if(bE(e)||wv(e,2048)||!kI(e))return e;const t=m.createModifiersFromModifierFlags(131039&Bv(e));return m.replaceModifiers(e,t)}function ue(e,t,n,r){const i=m.updateModuleDeclaration(e,t,n,r);if(cp(i)||32&i.flags)return i;const o=m.createModuleDeclaration(i.modifiers,i.name,i.body,32|i.flags);return hw(o,i),xI(o,i),o}function de(t){if(r)for(;zt(r,t););if(fe(t))return;switch(t.kind){case 272:return function(e){if(w.isDeclarationVisible(e)){if(284===e.moduleReference.kind){const t=Cm(e);return m.updateImportEqualsDeclaration(e,e.modifiers,e.isTypeOnly,e.name,m.updateExternalModuleReference(e.moduleReference,re(e,t)))}{const t=a;return a=Nq(e),ee(e.moduleReference,n),a=t,e}}}(t);case 273:return function(t){if(!t.importClause)return m.updateImportDeclaration(t,t.modifiers,t.importClause,re(t,t.moduleSpecifier),oe(t.attributes));const n=166===t.importClause.phaseModifier?void 0:t.importClause.phaseModifier,r=t.importClause&&t.importClause.name&&w.isDeclarationVisible(t.importClause)?t.importClause.name:void 0;if(!t.importClause.namedBindings)return r&&m.updateImportDeclaration(t,t.modifiers,m.updateImportClause(t.importClause,n,r,void 0),re(t,t.moduleSpecifier),oe(t.attributes));if(275===t.importClause.namedBindings.kind){const e=w.isDeclarationVisible(t.importClause.namedBindings)?t.importClause.namedBindings:void 0;return r||e?m.updateImportDeclaration(t,t.modifiers,m.updateImportClause(t.importClause,n,r,e),re(t,t.moduleSpecifier),oe(t.attributes)):void 0}const i=B(t.importClause.namedBindings.elements,e=>w.isDeclarationVisible(e)?e:void 0);return i&&i.length||r?m.updateImportDeclaration(t,t.modifiers,m.updateImportClause(t.importClause,n,r,i&&i.length?m.updateNamedImports(t.importClause.namedBindings,i):void 0),re(t,t.moduleSpecifier),oe(t.attributes)):w.isImportRequiredByAugmentation(t)?(A&&e.addDiagnostic(Rp(t,_a.Declaration_emit_for_this_file_requires_preserving_this_import_for_augmentations_This_is_not_supported_with_isolatedDeclarations)),m.updateImportDeclaration(t,t.modifiers,void 0,re(t,t.moduleSpecifier),oe(t.attributes))):void 0}(t)}if(_u(t)&&H(t))return;if(XP(t))return;if(r_(t)&&w.isImplementationOfOverload(t))return;let o;Z(t)&&(o=n,n=t);const c=Cq(t),l=a;c&&(a=Nq(t));const g=s;switch(t.kind){case 266:{s=!1;const e=h(m.updateTypeAliasDeclaration(t,ge(t),t.name,_J(t.typeParameters,se,SD),un.checkDefined(lJ(t.type,se,b_))));return s=g,e}case 265:return h(m.updateInterfaceDeclaration(t,ge(t),t.name,Y(t,t.typeParameters),he(t.heritageClauses),_J(t.members,se,h_)));case 263:{const e=h(m.updateFunctionDeclaration(t,ge(t),void 0,t.name,Y(t,t.typeParameters),X(t,t.parameters),W(t),void 0));if(e&&w.isExpandoFunctionDeclaration(t)&&function(e){var t;if(e.body)return!0;const n=null==(t=e.symbol.declarations)?void 0:t.filter(e=>uE(e)&&!e.body);return!n||n.indexOf(e)===n.length-1}(t)){const r=w.getPropertiesOfContainerFunction(t);A&&L(t);const i=CI.createModuleDeclaration(void 0,e.name||m.createIdentifier("_default"),m.createModuleBlock([]),32);DT(i,n),i.locals=Gu(r),i.symbol=r[0].parent;const o=[];let s=B(r,e=>{if(!lC(e.valueDeclaration))return;const t=mc(e.escapedName);if(!ms(t,99))return;a=Nq(e.valueDeclaration);const n=w.createTypeOfDeclaration(e.valueDeclaration,i,Eq,2|Pq,y);a=l;const r=Eh(t),s=r?m.getGeneratedNameForNode(e.valueDeclaration):m.createIdentifier(t);r&&o.push([s,t]);const c=m.createVariableDeclaration(s,void 0,n,void 0);return m.createVariableStatement(r?void 0:[m.createToken(95)],m.createVariableDeclarationList([c]))});o.length?s.push(m.createExportDeclaration(void 0,!1,m.createNamedExports(E(o,([e,t])=>m.createExportSpecifier(!1,e,t))))):s=B(s,e=>m.replaceModifiers(e,0));const c=m.createModuleDeclaration(ge(t),t.name,m.createModuleBlock(s),32);if(!wv(e,2048))return[e,c];const u=m.createModifiersFromModifierFlags(-2081&Bv(e)|128),d=m.updateFunctionDeclaration(e,u,void 0,e.name,e.typeParameters,e.parameters,e.type,void 0),p=m.updateModuleDeclaration(c,u,c.name,c.body),g=m.createExportAssignment(void 0,!1,c.name);return sP(t.parent)&&(_=!0),f=!0,[d,p,g]}return e}case 268:{s=!1;const e=t.body;if(e&&269===e.kind){const n=p,r=f;f=!1,p=!1;let i=ae(_J(e.statements,le,pu));33554432&t.flags&&(p=!1),pp(t)||$(i,me)||f||(i=p?m.createNodeArray([...i,iA(m)]):_J(i,_e,pu));const o=m.updateModuleBlock(e,i);s=g,p=n,f=r;const a=ge(t);return h(ue(t,a,fp(t)?re(t,t.name):t.name,o))}{s=g;const n=ge(t);s=!1,lJ(e,le);const r=UJ(e),o=i.get(r);return i.delete(r),h(ue(t,n,t.name,o))}}case 264:{v=t.name,b=t;const e=m.createNodeArray(ge(t)),r=Y(t,t.typeParameters),i=iv(t);let o;if(i){const e=a;o=ne(O(i.parameters,e=>{if(Nv(e,31)&&!fe(e))return a=Nq(e),80===e.name.kind?te(m.createPropertyDeclaration(ge(e),e.name,e.questionToken,W(e),V(e)),e):function t(n){let r;for(const i of n.elements)IF(i)||(k_(i.name)&&(r=K(r,t(i.name))),r=r||[],r.push(m.createPropertyDeclaration(ge(e),i.name,void 0,W(i),void 0)));return r}(e.name)})),a=e}const c=K(K(K($(t.members,e=>!!e.name&&sD(e.name))?[m.createPropertyDeclaration(void 0,m.createPrivateIdentifier("#private"),void 0,void 0,void 0)]:void 0,w.createLateBoundIndexSignatures(t,n,Eq,Pq,y)),o),_J(t.members,se,__)),l=m.createNodeArray(c),_=yh(t);if(_&&!ab(_.expression)&&106!==_.expression.kind){const n=t.name?mc(t.name.escapedText):"default",i=m.createUniqueName(`${n}_base`,16);a=()=>({diagnosticMessage:_a.extends_clause_of_exported_class_0_has_or_is_using_private_name_1,errorNode:_,typeName:t.name});const o=m.createVariableDeclaration(i,void 0,w.createTypeOfExpression(_.expression,t,Eq,Pq,y),void 0),c=m.createVariableStatement(s?[m.createModifier(138)]:[],m.createVariableDeclarationList([o],2)),u=m.createNodeArray(E(t.heritageClauses,e=>{if(96===e.token){const t=a;a=Nq(e.types[0]);const n=m.updateHeritageClause(e,E(e.types,e=>m.updateExpressionWithTypeArguments(e,i,_J(e.typeArguments,se,b_))));return a=t,n}return m.updateHeritageClause(e,_J(m.createNodeArray(N(e.types,e=>ab(e.expression)||106===e.expression.kind)),se,OF))}));return[c,h(m.updateClassDeclaration(t,e,t.name,r,u,l))]}{const n=he(t.heritageClauses);return h(m.updateClassDeclaration(t,e,t.name,r,n,l))}}case 244:return h(function(e){if(!d(e.declarationList.declarations,G))return;const t=_J(e.declarationList.declarations,se,lE);if(!u(t))return;const n=m.createNodeArray(ge(e));let r;return of(e.declarationList)||rf(e.declarationList)?(r=m.createVariableDeclarationList(t,2),hw(r,e.declarationList),xI(r,e.declarationList),Aw(r,e.declarationList)):r=m.updateVariableDeclarationList(e.declarationList,t),m.updateVariableStatement(e,n,r)}(t));case 267:return h(m.updateEnumDeclaration(t,m.createNodeArray(ge(t)),t.name,m.createNodeArray(B(t.members,t=>{if(fe(t))return;const n=w.getEnumMemberValue(t),r=null==n?void 0:n.value;A&&t.initializer&&(null==n?void 0:n.hasExternalReferences)&&!kD(t.name)&&e.addDiagnostic(Rp(t,_a.Enum_member_initializers_must_be_computable_without_references_to_external_symbols_with_isolatedDeclarations));const i=void 0===r?void 0:"string"==typeof r?m.createStringLiteral(r):r<0?m.createPrefixUnaryExpression(41,m.createNumericLiteral(-r)):m.createNumericLiteral(r);return te(m.updateEnumMember(t,t.name,i),t)}))))}return un.assertNever(t,`Unhandled top-level node in declaration emit: ${un.formatSyntaxKind(t.kind)}`);function h(e){return Z(t)&&(n=o),c&&(a=l),268===t.kind&&(s=g),e===t?e:(b=void 0,v=void 0,e&&hw(te(e,t),t))}}function pe(e){return I(B(e.elements,e=>function(e){if(233!==e.kind&&e.name){if(!G(e))return;return k_(e.name)?pe(e.name):m.createVariableDeclaration(e.name,void 0,W(e),void 0)}}(e)))}function fe(e){return!!P&&!!e&&zu(e,x)}function me(e){return AE(e)||IE(e)}function ge(e){const t=Bv(e),n=function(e){let t=130030,n=s&&!function(e){return 265===e.kind}(e)?128:0;const r=308===e.parent.kind;return(!r||c&&r&&rO(e.parent))&&(t^=128,n=0),Iq(e,t,n)}(e);return t===n?uJ(e.modifiers,e=>tt(e,Zl),Zl):m.createModifiersFromModifierFlags(n)}function he(e){return m.createNodeArray(N(E(e,e=>m.updateHeritageClause(e,_J(m.createNodeArray(N(e.types,t=>ab(t.expression)||96===e.token&&106===t.expression.kind)),se,OF))),e=>e.types&&!!e.types.length))}}function Iq(e,t=131070,n=0){let r=Bv(e)&t|n;return 2048&r&&!(32&r)&&(r^=32),2048&r&&128&r&&(r^=128),r}function Oq(e){switch(e.kind){case 173:case 172:return!wv(e,2);case 170:case 261:return!0}return!1}var Lq={scriptTransformers:l,declarationTransformers:l};function jq(e,t,n){return{scriptTransformers:Mq(e,t,n),declarationTransformers:Rq(t)}}function Mq(e,t,n){if(n)return l;const r=yk(e),i=vk(e),o=Ik(e),a=[];return se(a,t&&E(t.before,Jq)),a.push(Xz),e.experimentalDecorators&&a.push(eq),Hk(e)&&a.push(fq),r<99&&a.push(cq),e.experimentalDecorators||!(r<99)&&o||a.push(tq),a.push(Qz),r<8&&a.push(sq),r<7&&a.push(aq),r<6&&a.push(oq),r<5&&a.push(iq),r<4&&a.push(nq),r<3&&a.push(gq),r<2&&(a.push(yq),a.push(vq)),a.push(function(e){switch(e){case 200:return Sq;case 99:case 7:case 6:case 5:case 100:case 101:case 102:case 199:case 1:return Tq;case 4:return kq;default:return bq}}(i)),se(a,t&&E(t.after,Jq)),a}function Rq(e){const t=[];return t.push(Aq),se(t,e&&E(e.afterDeclarations,zq)),t}function Bq(e,t){return n=>{const r=e(n);return"function"==typeof r?t(n,r):function(e){return t=>cP(t)?e.transformBundle(t):e.transformSourceFile(t)}(r)}}function Jq(e){return Bq(e,$J)}function zq(e){return Bq(e,(e,t)=>t)}function qq(e,t){return t}function Uq(e,t,n){n(e,t)}function Vq(e,t,n,r,i,o,a){var s,c;const l=new Array(359);let _,u,d,p,f,m=0,g=[],h=[],y=[],v=[],b=0,x=!1,k=[],S=0,T=qq,C=Uq,w=0;const N=[],D={factory:n,getCompilerOptions:()=>r,getEmitResolver:()=>e,getEmitHost:()=>t,getEmitHelperFactory:dt(()=>oN(D)),startLexicalEnvironment:function(){un.assert(w>0,"Cannot modify the lexical environment during initialization."),un.assert(w<2,"Cannot modify the lexical environment after transformation has completed."),un.assert(!x,"Lexical environment is suspended."),g[b]=_,h[b]=u,y[b]=d,v[b]=m,b++,_=void 0,u=void 0,d=void 0,m=0},suspendLexicalEnvironment:function(){un.assert(w>0,"Cannot modify the lexical environment during initialization."),un.assert(w<2,"Cannot modify the lexical environment after transformation has completed."),un.assert(!x,"Lexical environment is already suspended."),x=!0},resumeLexicalEnvironment:function(){un.assert(w>0,"Cannot modify the lexical environment during initialization."),un.assert(w<2,"Cannot modify the lexical environment after transformation has completed."),un.assert(x,"Lexical environment is not suspended."),x=!1},endLexicalEnvironment:function(){let e;if(un.assert(w>0,"Cannot modify the lexical environment during initialization."),un.assert(w<2,"Cannot modify the lexical environment after transformation has completed."),un.assert(!x,"Lexical environment is suspended."),_||u||d){if(u&&(e=[...u]),_){const t=n.createVariableStatement(void 0,n.createVariableDeclarationList(_));xw(t,2097152),e?e.push(t):e=[t]}d&&(e=e?[...e,...d]:[...d])}return b--,_=g[b],u=h[b],d=y[b],m=v[b],0===b&&(g=[],h=[],y=[],v=[]),e},setLexicalEnvironmentFlags:function(e,t){m=t?m|e:m&~e},getLexicalEnvironmentFlags:function(){return m},hoistVariableDeclaration:function(e){un.assert(w>0,"Cannot modify the lexical environment during initialization."),un.assert(w<2,"Cannot modify the lexical environment after transformation has completed.");const t=xw(n.createVariableDeclaration(e),128);_?_.push(t):_=[t],1&m&&(m|=2)},hoistFunctionDeclaration:function(e){un.assert(w>0,"Cannot modify the lexical environment during initialization."),un.assert(w<2,"Cannot modify the lexical environment after transformation has completed."),xw(e,2097152),u?u.push(e):u=[e]},addInitializationStatement:function(e){un.assert(w>0,"Cannot modify the lexical environment during initialization."),un.assert(w<2,"Cannot modify the lexical environment after transformation has completed."),xw(e,2097152),d?d.push(e):d=[e]},startBlockScope:function(){un.assert(w>0,"Cannot start a block scope during initialization."),un.assert(w<2,"Cannot start a block scope after transformation has completed."),k[S]=p,S++,p=void 0},endBlockScope:function(){un.assert(w>0,"Cannot end a block scope during initialization."),un.assert(w<2,"Cannot end a block scope after transformation has completed.");const e=$(p)?[n.createVariableStatement(void 0,n.createVariableDeclarationList(p.map(e=>n.createVariableDeclaration(e)),1))]:void 0;return S--,p=k[S],0===S&&(k=[]),e},addBlockScopedVariable:function(e){un.assert(S>0,"Cannot add a block scoped variable outside of an iteration body."),(p||(p=[])).push(e)},requestEmitHelper:function e(t){if(un.assert(w>0,"Cannot modify the transformation context during initialization."),un.assert(w<2,"Cannot modify the transformation context after transformation has completed."),un.assert(!t.scoped,"Cannot request a scoped emit helper."),t.dependencies)for(const n of t.dependencies)e(n);f=ie(f,t)},readEmitHelpers:function(){un.assert(w>0,"Cannot modify the transformation context during initialization."),un.assert(w<2,"Cannot modify the transformation context after transformation has completed.");const e=f;return f=void 0,e},enableSubstitution:function(e){un.assert(w<2,"Cannot modify the transformation context after transformation has completed."),l[e]|=1},enableEmitNotification:function(e){un.assert(w<2,"Cannot modify the transformation context after transformation has completed."),l[e]|=2},isSubstitutionEnabled:I,isEmitNotificationEnabled:O,get onSubstituteNode(){return T},set onSubstituteNode(e){un.assert(w<1,"Cannot modify transformation hooks after initialization has completed."),un.assert(void 0!==e,"Value must not be 'undefined'"),T=e},get onEmitNode(){return C},set onEmitNode(e){un.assert(w<1,"Cannot modify transformation hooks after initialization has completed."),un.assert(void 0!==e,"Value must not be 'undefined'"),C=e},addDiagnostic(e){N.push(e)}};for(const e of i)vw(vd(pc(e)));tr("beforeTransform");const F=o.map(e=>e(D)),E=e=>{for(const t of F)e=t(e);return e};w=1;const P=[];for(const e of i)null==(s=Hn)||s.push(Hn.Phase.Emit,"transformNodes",308===e.kind?{path:e.path}:{kind:e.kind,pos:e.pos,end:e.end}),P.push((a?E:A)(e)),null==(c=Hn)||c.pop();return w=2,tr("afterTransform"),nr("transformTime","beforeTransform","afterTransform"),{transformed:P,substituteNode:function(e,t){return un.assert(w<3,"Cannot substitute a node after the result is disposed."),t&&I(t)&&T(e,t)||t},emitNodeWithNotification:function(e,t,n){un.assert(w<3,"Cannot invoke TransformationResult callbacks after the result is disposed."),t&&(O(t)?C(e,t,n):n(e,t))},isEmitNotificationEnabled:O,dispose:function(){if(w<3){for(const e of i)vw(vd(pc(e)));_=void 0,g=void 0,u=void 0,h=void 0,T=void 0,C=void 0,f=void 0,w=3}},diagnostics:N};function A(e){return!e||sP(e)&&e.isDeclarationFile?e:E(e)}function I(e){return!(!(1&l[e.kind])||8&Zd(e))}function O(e){return!!(2&l[e.kind])||!!(4&Zd(e))}}var Wq={factory:mw,getCompilerOptions:()=>({}),getEmitResolver:ut,getEmitHost:ut,getEmitHelperFactory:ut,startLexicalEnvironment:rt,resumeLexicalEnvironment:rt,suspendLexicalEnvironment:rt,endLexicalEnvironment:at,setLexicalEnvironmentFlags:rt,getLexicalEnvironmentFlags:()=>0,hoistVariableDeclaration:rt,hoistFunctionDeclaration:rt,addInitializationStatement:rt,startBlockScope:rt,endBlockScope:at,addBlockScopedVariable:rt,requestEmitHelper:rt,readEmitHelpers:ut,enableSubstitution:rt,enableEmitNotification:rt,isSubstitutionEnabled:ut,isEmitNotificationEnabled:ut,onSubstituteNode:qq,onEmitNode:Uq,addDiagnostic:rt},$q=function(){const e=[];return e[1024]=["{","}"],e[2048]=["(",")"],e[4096]=["<",">"],e[8192]=["[","]"],e}();function Hq(e){return ko(e,".tsbuildinfo")}function Kq(e,t,n,r=!1,i,o){const a=Qe(n)?n:Gy(e,n,r),s=e.getCompilerOptions();if(!i)if(s.outFile){if(a.length){const n=mw.createBundle(a),i=t(Qq(n,e,r),n);if(i)return i}}else for(const n of a){const i=t(Qq(n,e,r),n);if(i)return i}if(o){const e=Gq(s);if(e)return t({buildInfoPath:e},void 0)}}function Gq(e){const t=e.configFilePath;if(!function(e){return Ek(e)||!!e.tscBuild}(e))return;if(e.tsBuildInfoFile)return e.tsBuildInfoFile;const n=e.outFile;let r;if(n)r=US(n);else{if(!t)return;const n=US(t);r=e.outDir?e.rootDir?Mo(e.outDir,ra(e.rootDir,n,!0)):jo(e.outDir,Fo(n)):n}return r+".tsbuildinfo"}function Xq(e,t){const n=e.outFile,r=e.emitDeclarationOnly?void 0:n,i=r&&Yq(r,e),o=t||Dk(e)?US(n)+".d.ts":void 0;return{jsFilePath:r,sourceMapFilePath:i,declarationFilePath:o,declarationMapPath:o&&Pk(e)?o+".map":void 0}}function Qq(e,t,n){const r=t.getCompilerOptions();if(309===e.kind)return Xq(r,n);{const i=qy(e.fileName,t,Zq(e.fileName,r)),o=ef(e),a=o&&0===Zo(e.fileName,i,t.getCurrentDirectory(),!t.useCaseSensitiveFileNames()),s=r.emitDeclarationOnly||a?void 0:i,c=!s||ef(e)?void 0:Yq(s,r),l=n||Dk(r)&&!o?Uy(e.fileName,t):void 0;return{jsFilePath:s,sourceMapFilePath:c,declarationFilePath:l,declarationMapPath:l&&Pk(r)?l+".map":void 0}}}function Yq(e,t){return t.sourceMap&&!t.inlineSourceMap?e+".map":void 0}function Zq(e,t){return ko(e,".json")?".json":1===t.jsx&&So(e,[".jsx",".tsx"])?".jsx":So(e,[".mts",".mjs"])?".mjs":So(e,[".cts",".cjs"])?".cjs":".js"}function eU(e,t,n,r){return n?Mo(n,ra(r(),e,t)):e}function tU(e,t,n,r=()=>lU(t,n)){return nU(e,t.options,n,r)}function nU(e,t,n,r){return $S(eU(e,n,t.declarationDir||t.outDir,r),Wy(e))}function rU(e,t,n,r=()=>lU(t,n)){if(t.options.emitDeclarationOnly)return;const i=ko(e,".json"),o=iU(e,t.options,n,r);return i&&0===Zo(e,o,un.checkDefined(t.options.configFilePath),n)?void 0:o}function iU(e,t,n,r){return $S(eU(e,n,t.outDir,r),Zq(e,t))}function oU(){let e;return{addOutput:function(t){t&&(e||(e=[])).push(t)},getOutputs:function(){return e||l}}}function aU(e,t){const{jsFilePath:n,sourceMapFilePath:r,declarationFilePath:i,declarationMapPath:o}=Xq(e.options,!1);t(n),t(r),t(i),t(o)}function sU(e,t,n,r,i){if(uO(t))return;const o=rU(t,e,n,i);if(r(o),!ko(t,".json")&&(o&&e.options.sourceMap&&r(`${o}.map`),Dk(e.options))){const o=tU(t,e,n,i);r(o),e.options.declarationMap&&r(`${o}.map`)}}function cU(e,t,n,r,i){let o;return e.rootDir?(o=Bo(e.rootDir,n),null==i||i(e.rootDir)):e.composite&&e.configFilePath?(o=Do(Oo(e.configFilePath)),null==i||i(o)):o=zU(t(),n,r),o&&o[o.length-1]!==lo&&(o+=lo),o}function lU({options:e,fileNames:t},n){return cU(e,()=>N(t,t=>!(e.noEmitForJsFiles&&So(t,wS)||uO(t))),Do(Oo(un.checkDefined(e.configFilePath))),Wt(!n))}function _U(e,t){const{addOutput:n,getOutputs:r}=oU();if(e.options.outFile)aU(e,n);else{const r=dt(()=>lU(e,t));for(const i of e.fileNames)sU(e,i,t,n,r)}return n(Gq(e.options)),r()}function uU(e,t,n){t=Jo(t),un.assert(T(e.fileNames,t),"Expected fileName to be present in command line");const{addOutput:r,getOutputs:i}=oU();return e.options.outFile?aU(e,r):sU(e,t,n,r),i()}function dU(e,t){if(e.options.outFile){const{jsFilePath:t,declarationFilePath:n}=Xq(e.options,!1);return un.checkDefined(t||n,`project ${e.options.configFilePath} expected to have at least one output`)}const n=dt(()=>lU(e,t));for(const r of e.fileNames){if(uO(r))continue;const i=rU(r,e,t,n);if(i)return i;if(!ko(r,".json")&&Dk(e.options))return tU(r,e,t,n)}return Gq(e.options)||un.fail(`project ${e.options.configFilePath} expected to have at least one output`)}function pU(e,t){return!!t&&!!e}function fU(e,t,n,{scriptTransformers:r,declarationTransformers:i},o,a,c,l){var _=t.getCompilerOptions(),d=_.sourceMap||_.inlineSourceMap||Pk(_)?[]:void 0,p=_.listEmittedFiles?[]:void 0,f=_y(),m=Pb(_),g=Oy(m),{enter:h,exit:y}=$n("printTime","beforePrint","afterPrint"),v=!1;return h(),Kq(t,function({jsFilePath:a,sourceMapFilePath:l,declarationFilePath:d,declarationMapPath:m,buildInfoPath:g},h){var y,k,S,T,C,w;null==(y=Hn)||y.push(Hn.Phase.Emit,"emitJsFileOrBundle",{jsFilePath:a}),function(n,i,a){if(!n||o||!i)return;if(t.isEmitBlocked(i)||_.noEmit)return void(v=!0);(sP(n)?[n]:N(n.sourceFiles,Am)).forEach(t=>{var n;!_.noCheck&&pT(t,_)||(Fm(n=t)||QI(n,t=>!bE(t)||32&zv(t)?xE(t)?"skip":void e.markLinkedReferences(t):"skip"))});const s=Vq(e,t,mw,_,[n],r,!1),c=kU({removeComments:_.removeComments,newLine:_.newLine,noEmitHelpers:_.noEmitHelpers,module:vk(_),moduleResolution:bk(_),target:yk(_),sourceMap:_.sourceMap,inlineSourceMap:_.inlineSourceMap,inlineSources:_.inlineSources,extendedDiagnostics:_.extendedDiagnostics},{hasGlobalName:e.hasGlobalName,onEmitNode:s.emitNodeWithNotification,isEmitNotificationEnabled:s.isEmitNotificationEnabled,substituteNode:s.substituteNode});un.assert(1===s.transformed.length,"Should only see one output from the transform"),x(i,a,s,c,_),s.dispose(),p&&(p.push(i),a&&p.push(a))}(h,a,l),null==(k=Hn)||k.pop(),null==(S=Hn)||S.push(Hn.Phase.Emit,"emitDeclarationFileOrBundle",{declarationFilePath:d}),function(n,r,a){if(!n||0===o)return;if(!r)return void((o||_.emitDeclarationOnly)&&(v=!0));const s=sP(n)?[n]:n.sourceFiles,l=c?s:N(s,Am),d=_.outFile?[mw.createBundle(l)]:l;l.forEach(e=>{(o&&!Dk(_)||_.noCheck||pU(o,c)||!pT(e,_))&&b(e)});const m=Vq(e,t,mw,_,d,i,!1);if(u(m.diagnostics))for(const e of m.diagnostics)f.add(e);const g=!!m.diagnostics&&!!m.diagnostics.length||!!t.isEmitBlocked(r)||!!_.noEmit;if(v=v||g,!g||c){un.assert(1===m.transformed.length,"Should only see one output from the decl transform");const t={removeComments:_.removeComments,newLine:_.newLine,noEmitHelpers:!0,module:_.module,moduleResolution:_.moduleResolution,target:_.target,sourceMap:2!==o&&_.declarationMap,inlineSourceMap:_.inlineSourceMap,extendedDiagnostics:_.extendedDiagnostics,onlyPrintJsDocStyle:!0,omitBraceSourceMapPositions:!0},n=x(r,a,m,kU(t,{hasGlobalName:e.hasGlobalName,onEmitNode:m.emitNodeWithNotification,isEmitNotificationEnabled:m.isEmitNotificationEnabled,substituteNode:m.substituteNode}),{sourceMap:t.sourceMap,sourceRoot:_.sourceRoot,mapRoot:_.mapRoot,extendedDiagnostics:_.extendedDiagnostics});p&&(n&&p.push(r),a&&p.push(a))}m.dispose()}(h,d,m),null==(T=Hn)||T.pop(),null==(C=Hn)||C.push(Hn.Phase.Emit,"emitBuildInfo",{buildInfoPath:g}),function(e){if(!e||n)return;if(t.isEmitBlocked(e))return void(v=!0);const r=t.getBuildInfo()||{version:s};Zy(t,f,e,mU(r),!1,void 0,{buildInfo:r}),null==p||p.push(e)}(g),null==(w=Hn)||w.pop()},Gy(t,n,c),c,a,!n&&!l),y(),{emitSkipped:v,diagnostics:f.getDiagnostics(),emittedFiles:p,sourceMaps:d};function b(t){AE(t)?80===t.expression.kind&&e.collectLinkedAliases(t.expression,!0):LE(t)?e.collectLinkedAliases(t.propertyName||t.name,!0):XI(t,b)}function x(e,n,r,i,o){const a=r.transformed[0],s=309===a.kind?a:void 0,c=308===a.kind?a:void 0,l=s?s.sourceFiles:[c];let u,p;if(function(e,t){return(e.sourceMap||e.inlineSourceMap)&&(308!==t.kind||!ko(t.fileName,".json"))}(o,a)&&(u=kJ(t,Fo(Oo(e)),function(e){const t=Oo(e.sourceRoot||"");return t?Wo(t):t}(o),function(e,n,r){if(e.sourceRoot)return t.getCommonSourceDirectory();if(e.mapRoot){let n=Oo(e.mapRoot);return r&&(n=Do(Qy(r.fileName,t,n))),0===No(n)&&(n=jo(t.getCommonSourceDirectory(),n)),n}return Do(Jo(n))}(o,e,c),o)),s?i.writeBundle(s,g,u):i.writeFile(c,g,u),u){d&&d.push({inputSourceFileNames:u.getSources(),sourceMap:u.toJSON()});const r=function(e,n,r,i,o){if(e.inlineSourceMap){const e=n.toString();return`data:application/json;base64,${Sb(so,e)}`}const a=Fo(Oo(un.checkDefined(i)));if(e.mapRoot){let n=Oo(e.mapRoot);return o&&(n=Do(Qy(o.fileName,t,n))),0===No(n)?(n=jo(t.getCommonSourceDirectory(),n),encodeURI(aa(Do(Jo(r)),jo(n,a),t.getCurrentDirectory(),t.getCanonicalFileName,!0))):encodeURI(jo(n,a))}return encodeURI(a)}(o,u,e,n,c);if(r&&(g.isAtStartOfLine()||g.rawWrite(m),p=g.getTextPos(),g.writeComment(`//# sourceMappingURL=${r}`)),n){const e=u.toString();Zy(t,f,n,e,!1,l)}}else g.writeLine();const h=g.getText(),y={sourceMapUrlPos:p,diagnostics:r.diagnostics};return Zy(t,f,e,h,!!_.emitBOM,l,y),g.clear(),!y.skippedDtsWrite}}function mU(e){return JSON.stringify(e)}function gU(e,t){return Cb(e,t)}var hU={hasGlobalName:ut,getReferencedExportContainer:ut,getReferencedImportDeclaration:ut,getReferencedDeclarationWithCollidingName:ut,isDeclarationWithCollidingName:ut,isValueAliasDeclaration:ut,isReferencedAliasDeclaration:ut,isTopLevelValueImportEqualsWithEntityName:ut,hasNodeCheckFlag:ut,isDeclarationVisible:ut,isLateBound:e=>!1,collectLinkedAliases:ut,markLinkedReferences:ut,isImplementationOfOverload:ut,requiresAddingImplicitUndefined:ut,isExpandoFunctionDeclaration:ut,getPropertiesOfContainerFunction:ut,createTypeOfDeclaration:ut,createReturnTypeOfSignatureDeclaration:ut,createTypeOfExpression:ut,createLiteralConstValue:ut,isSymbolAccessible:ut,isEntityNameVisible:ut,getConstantValue:ut,getEnumMemberValue:ut,getReferencedValueDeclaration:ut,getReferencedValueDeclarations:ut,getTypeReferenceSerializationKind:ut,isOptionalParameter:ut,isArgumentsLocalBinding:ut,getExternalModuleFileFromDeclaration:ut,isLiteralConstDeclaration:ut,getJsxFactoryEntity:ut,getJsxFragmentFactoryEntity:ut,isBindingCapturedByNode:ut,getDeclarationStatementsForSourceFile:ut,isImportRequiredByAugmentation:ut,isDefinitelyReferenceToGlobalSymbolObject:ut,createLateBoundIndexSignatures:ut,symbolToDeclarations:ut},yU=dt(()=>kU({})),vU=dt(()=>kU({removeComments:!0})),bU=dt(()=>kU({removeComments:!0,neverAsciiEscape:!0})),xU=dt(()=>kU({removeComments:!0,omitTrailingSemicolon:!0}));function kU(e={},t={}){var n,r,i,o,a,s,c,l,_,u,p,f,m,g,h,y,b,x,S,T,C,w,N,D,F,E,{hasGlobalName:P,onEmitNode:A=Uq,isEmitNotificationEnabled:I,substituteNode:O=qq,onBeforeEmitNode:L,onAfterEmitNode:j,onBeforeEmitNodeArray:M,onAfterEmitNodeArray:R,onBeforeEmitToken:B,onAfterEmitToken:J}=t,z=!!e.extendedDiagnostics,q=!!e.omitBraceSourceMapPositions,U=Pb(e),V=vk(e),W=new Map,H=e.preserveSourceNewlines,K=function(e){b.write(e)},G=!0,X=-1,Q=-1,Y=-1,Z=-1,ee=-1,te=!1,ne=!!e.removeComments,{enter:re,exit:ie}=Wn(z,"commentTime","beforeComment","afterComment"),oe=mw.parenthesizer,ae={select:e=>0===e?oe.parenthesizeLeadingTypeArgument:void 0},se=function(){return cI(function(e,t){if(t){t.stackIndex++,t.preserveSourceNewlinesStack[t.stackIndex]=H,t.containerPosStack[t.stackIndex]=Y,t.containerEndStack[t.stackIndex]=Z,t.declarationListContainerEndStack[t.stackIndex]=ee;const n=t.shouldEmitCommentsStack[t.stackIndex]=Ie(e),r=t.shouldEmitSourceMapsStack[t.stackIndex]=Oe(e);null==L||L(e),n&&Hn(e),r&&mr(e),Ee(e)}else t={stackIndex:0,preserveSourceNewlinesStack:[void 0],containerPosStack:[-1],containerEndStack:[-1],declarationListContainerEndStack:[-1],shouldEmitCommentsStack:[!1],shouldEmitSourceMapsStack:[!1]};return t},function(t,n,r){return e(t,r,"left")},function(e,t,n){const r=28!==e.kind,i=Sn(n,n.left,e),o=Sn(n,e,n.right);fn(i,r),or(e.pos),ln(e,103===e.kind?Qt:Yt),sr(e.end,!0),fn(o,!0)},function(t,n,r){return e(t,r,"right")},function(e,t){if(mn(Sn(e,e.left,e.operatorToken),Sn(e,e.operatorToken,e.right)),t.stackIndex>0){const n=t.preserveSourceNewlinesStack[t.stackIndex],r=t.containerPosStack[t.stackIndex],i=t.containerEndStack[t.stackIndex],o=t.declarationListContainerEndStack[t.stackIndex],a=t.shouldEmitCommentsStack[t.stackIndex],s=t.shouldEmitSourceMapsStack[t.stackIndex];Pe(n),s&&gr(e),a&&Kn(e,r,i,o),null==j||j(e),t.stackIndex--}},void 0);function e(e,t,n){const r="left"===n?oe.getParenthesizeLeftSideOfBinaryForOperator(t.operatorToken.kind):oe.getParenthesizeRightSideOfBinaryForOperator(t.operatorToken.kind);let i=Le(0,1,e);if(i===Je&&(un.assertIsDefined(F),i=je(1,1,e=r(nt(F,V_))),F=void 0),(i===$n||i===fr||i===Re)&&NF(e))return e;E=r,i(1,e)}}();return Te(),{printNode:function(e,t,n){switch(e){case 0:un.assert(sP(t),"Expected a SourceFile node.");break;case 2:un.assert(aD(t),"Expected an Identifier node.");break;case 1:un.assert(V_(t),"Expected an Expression node.")}switch(t.kind){case 308:return le(t);case 309:return ce(t)}return ue(e,t,n,ge()),he()},printList:function(e,t,n){return de(e,t,n,ge()),he()},printFile:le,printBundle:ce,writeNode:ue,writeList:de,writeFile:me,writeBundle:pe};function ce(e){return pe(e,ge(),void 0),he()}function le(e){return me(e,ge(),void 0),he()}function ue(e,t,n,r){const i=b;Se(r,void 0),xe(e,t,n),Te(),b=i}function de(e,t,n,r){const i=b;Se(r,void 0),n&&ke(n),Ut(void 0,t,e),Te(),b=i}function pe(e,t,n){S=!1;const r=b;var i;Se(t,n),Ft(e),Dt(e),ze(e),Ct(!!(i=e).hasNoDefaultLib,i.syntheticFileReferences||[],i.syntheticTypeReferences||[],i.syntheticLibReferences||[]);for(const t of e.sourceFiles)xe(0,t,t);Te(),b=r}function me(e,t,n){S=!0;const r=b;Se(t,n),Ft(e),Dt(e),xe(0,e,e),Te(),b=r}function ge(){return x||(x=Oy(U))}function he(){const e=x.getText();return x.clear(),e}function xe(e,t,n){n&&ke(n),Ae(e,t,void 0)}function ke(e){n=e,N=void 0,D=void 0,e&&xr(e)}function Se(t,n){t&&e.omitTrailingSemicolon&&(t=Ly(t)),T=n,G=!(b=t)||!T}function Te(){r=[],i=[],o=[],a=new Set,s=[],c=new Map,l=[],_=0,u=[],p=0,f=[],m=void 0,g=[],h=void 0,n=void 0,N=void 0,D=void 0,Se(void 0,void 0)}function Ce(){return N||(N=Ma(un.checkDefined(n)))}function we(e,t){void 0!==e&&Ae(4,e,t)}function Ne(e){void 0!==e&&Ae(2,e,void 0)}function De(e,t){void 0!==e&&Ae(1,e,t)}function Fe(e){Ae(UN(e)?6:4,e)}function Ee(e){H&&4&ep(e)&&(H=!1)}function Pe(e){H=e}function Ae(e,t,n){E=n,Le(0,e,t)(e,t),E=void 0}function Ie(e){return!ne&&!sP(e)}function Oe(e){return!G&&!sP(e)&&!Pm(e)}function Le(e,t,n){switch(e){case 0:if(A!==Uq&&(!I||I(n)))return Me;case 1:if(O!==qq&&(F=O(t,n)||n)!==n)return E&&(F=E(F)),Je;case 2:if(Ie(n))return $n;case 3:if(Oe(n))return fr;case 4:return Re;default:return un.assertNever(e)}}function je(e,t,n){return Le(e+1,t,n)}function Me(e,t){const n=je(0,e,t);A(e,t,n)}function Re(e,t){if(null==L||L(t),H){const n=H;Ee(t),Be(e,t),Pe(n)}else Be(e,t);null==j||j(t),E=void 0}function Be(e,t,r=!0){if(r){const n=Hw(t);if(n)return function(e,t,n){switch(n.kind){case 1:!function(e,t,n){rn(`\${${n.order}:`),Be(e,t,!1),rn("}")}(e,t,n);break;case 0:!function(e,t,n){un.assert(243===t.kind,`A tab stop cannot be attached to a node of kind ${un.formatSyntaxKind(t.kind)}.`),un.assert(5!==e,"A tab stop cannot be attached to an embedded statement."),rn(`$${n.order}`)}(e,t,n)}}(e,t,n)}if(0===e)return Tt(nt(t,sP));if(2===e)return Ve(nt(t,aD));if(6===e)return Ue(nt(t,UN),!0);if(3===e)return function(e){we(e.name),tn(),Qt("in"),tn(),we(e.constraint)}(nt(t,SD));if(7===e)return function(e){Gt("{"),tn(),Qt(132===e.token?"assert":"with"),Gt(":"),tn();Ut(e,e.elements,526226),tn(),Gt("}")}(nt(t,wE));if(5===e)return un.assertNode(t,$F),Ye(!0);if(4===e){switch(t.kind){case 16:case 17:case 18:return Ue(t,!1);case 80:return Ve(t);case 81:return We(t);case 167:return function(e){(function(e){80===e.kind?De(e):we(e)})(e.left),Gt("."),we(e.right)}(t);case 168:return function(e){Gt("["),De(e.expression,oe.parenthesizeExpressionOfComputedPropertyName),Gt("]")}(t);case 169:return function(e){At(e,e.modifiers),we(e.name),e.constraint&&(tn(),Qt("extends"),tn(),we(e.constraint)),e.default&&(tn(),Yt("="),tn(),we(e.default))}(t);case 170:return function(e){Pt(e,e.modifiers,!0),we(e.dotDotDotToken),Et(e.name,Zt),we(e.questionToken),e.parent&&318===e.parent.kind&&!e.name?we(e.type):It(e.type),Ot(e.initializer,e.type?e.type.end:e.questionToken?e.questionToken.end:e.name?e.name.end:e.modifiers?e.modifiers.end:e.pos,e,oe.parenthesizeExpressionForDisallowedComma)}(t);case 171:return a=t,Gt("@"),void De(a.expression,oe.parenthesizeLeftSideOfAccess);case 172:return function(e){At(e,e.modifiers),Et(e.name,nn),we(e.questionToken),It(e.type),Xt()}(t);case 173:return function(e){Pt(e,e.modifiers,!0),we(e.name),we(e.questionToken),we(e.exclamationToken),It(e.type),Ot(e.initializer,e.type?e.type.end:e.questionToken?e.questionToken.end:e.name.end,e),Xt()}(t);case 174:return function(e){At(e,e.modifiers),we(e.name),we(e.questionToken),lt(e,dt,ut)}(t);case 175:return function(e){Pt(e,e.modifiers,!0),we(e.asteriskToken),we(e.name),we(e.questionToken),lt(e,dt,_t)}(t);case 176:return function(e){Qt("static"),Dn(e),pt(e.body),Fn(e)}(t);case 177:return function(e){Pt(e,e.modifiers,!1),Qt("constructor"),lt(e,dt,_t)}(t);case 178:case 179:return function(e){const t=Pt(e,e.modifiers,!0);rt(178===e.kind?139:153,t,Qt,e),tn(),we(e.name),lt(e,dt,_t)}(t);case 180:return function(e){lt(e,dt,ut)}(t);case 181:return function(e){Qt("new"),tn(),lt(e,dt,ut)}(t);case 182:return function(e){Pt(e,e.modifiers,!1),Ut(e,e.parameters,8848),It(e.type),Xt()}(t);case 183:return function(e){e.assertsModifier&&(we(e.assertsModifier),tn()),we(e.parameterName),e.type&&(tn(),Qt("is"),tn(),we(e.type))}(t);case 184:return function(e){we(e.typeName),Rt(e,e.typeArguments)}(t);case 185:return function(e){lt(e,$e,He)}(t);case 186:return function(e){At(e,e.modifiers),Qt("new"),tn(),lt(e,$e,He)}(t);case 187:return function(e){Qt("typeof"),tn(),we(e.exprName),Rt(e,e.typeArguments)}(t);case 188:return function(e){Dn(e),d(e.members,In),Gt("{");const t=1&Zd(e)?768:32897;Ut(e,e.members,524288|t),Gt("}"),Fn(e)}(t);case 189:return function(e){we(e.elementType,oe.parenthesizeNonArrayTypeOfPostfixType),Gt("["),Gt("]")}(t);case 190:return function(e){rt(23,e.pos,Gt,e);const t=1&Zd(e)?528:657;Ut(e,e.elements,524288|t,oe.parenthesizeElementTypeOfTupleType),rt(24,e.elements.end,Gt,e)}(t);case 191:return function(e){we(e.type,oe.parenthesizeTypeOfOptionalType),Gt("?")}(t);case 193:return function(e){Ut(e,e.types,516,oe.parenthesizeConstituentTypeOfUnionType)}(t);case 194:return function(e){Ut(e,e.types,520,oe.parenthesizeConstituentTypeOfIntersectionType)}(t);case 195:return function(e){we(e.checkType,oe.parenthesizeCheckTypeOfConditionalType),tn(),Qt("extends"),tn(),we(e.extendsType,oe.parenthesizeExtendsTypeOfConditionalType),tn(),Gt("?"),tn(),we(e.trueType),tn(),Gt(":"),tn(),we(e.falseType)}(t);case 196:return function(e){Qt("infer"),tn(),we(e.typeParameter)}(t);case 197:return function(e){Gt("("),we(e.type),Gt(")")}(t);case 234:return Xe(t);case 198:return void Qt("this");case 199:return function(e){_n(e.operator,Qt),tn();const t=148===e.operator?oe.parenthesizeOperandOfReadonlyTypeOperator:oe.parenthesizeOperandOfTypeOperator;we(e.type,t)}(t);case 200:return function(e){we(e.objectType,oe.parenthesizeNonArrayTypeOfPostfixType),Gt("["),we(e.indexType),Gt("]")}(t);case 201:return function(e){const t=Zd(e);Gt("{"),1&t?tn():(on(),an()),e.readonlyToken&&(we(e.readonlyToken),148!==e.readonlyToken.kind&&Qt("readonly"),tn()),Gt("["),Ae(3,e.typeParameter),e.nameType&&(tn(),Qt("as"),tn(),we(e.nameType)),Gt("]"),e.questionToken&&(we(e.questionToken),58!==e.questionToken.kind&&Gt("?")),Gt(":"),tn(),we(e.type),Xt(),1&t?tn():(on(),sn()),Ut(e,e.members,2),Gt("}")}(t);case 202:return function(e){De(e.literal)}(t);case 203:return function(e){we(e.dotDotDotToken),we(e.name),we(e.questionToken),rt(59,e.name.end,Gt,e),tn(),we(e.type)}(t);case 204:return function(e){we(e.head),Ut(e,e.templateSpans,262144)}(t);case 205:return function(e){we(e.type),we(e.literal)}(t);case 206:return function(e){e.isTypeOf&&(Qt("typeof"),tn()),Qt("import"),Gt("("),we(e.argument),e.attributes&&(Gt(","),tn(),Ae(7,e.attributes)),Gt(")"),e.qualifier&&(Gt("."),we(e.qualifier)),Rt(e,e.typeArguments)}(t);case 207:return function(e){Gt("{"),Ut(e,e.elements,525136),Gt("}")}(t);case 208:return function(e){Gt("["),Ut(e,e.elements,524880),Gt("]")}(t);case 209:return function(e){we(e.dotDotDotToken),e.propertyName&&(we(e.propertyName),Gt(":"),tn()),we(e.name),Ot(e.initializer,e.name.end,e,oe.parenthesizeExpressionForDisallowedComma)}(t);case 240:return function(e){De(e.expression),we(e.literal)}(t);case 241:return void Xt();case 242:return function(e){Qe(e,!e.multiLine&&Tn(e))}(t);case 244:return function(e){Pt(e,e.modifiers,!1),we(e.declarationList),Xt()}(t);case 243:return Ye(!1);case 245:return function(e){De(e.expression,oe.parenthesizeExpressionOfExpressionStatement),n&&ef(n)&&!ey(e.expression)||Xt()}(t);case 246:return function(e){const t=rt(101,e.pos,Qt,e);tn(),rt(21,t,Gt,e),De(e.expression),rt(22,e.expression.end,Gt,e),Mt(e,e.thenStatement),e.elseStatement&&(dn(e,e.thenStatement,e.elseStatement),rt(93,e.thenStatement.end,Qt,e),246===e.elseStatement.kind?(tn(),we(e.elseStatement)):Mt(e,e.elseStatement))}(t);case 247:return function(e){rt(92,e.pos,Qt,e),Mt(e,e.statement),VF(e.statement)&&!H?tn():dn(e,e.statement,e.expression),Ze(e,e.statement.end),Xt()}(t);case 248:return function(e){Ze(e,e.pos),Mt(e,e.statement)}(t);case 249:return function(e){const t=rt(99,e.pos,Qt,e);tn();let n=rt(21,t,Gt,e);et(e.initializer),n=rt(27,e.initializer?e.initializer.end:n,Gt,e),jt(e.condition),n=rt(27,e.condition?e.condition.end:n,Gt,e),jt(e.incrementor),rt(22,e.incrementor?e.incrementor.end:n,Gt,e),Mt(e,e.statement)}(t);case 250:return function(e){const t=rt(99,e.pos,Qt,e);tn(),rt(21,t,Gt,e),et(e.initializer),tn(),rt(103,e.initializer.end,Qt,e),tn(),De(e.expression),rt(22,e.expression.end,Gt,e),Mt(e,e.statement)}(t);case 251:return function(e){const t=rt(99,e.pos,Qt,e);tn(),function(e){e&&(we(e),tn())}(e.awaitModifier),rt(21,t,Gt,e),et(e.initializer),tn(),rt(165,e.initializer.end,Qt,e),tn(),De(e.expression),rt(22,e.expression.end,Gt,e),Mt(e,e.statement)}(t);case 252:return function(e){rt(88,e.pos,Qt,e),Lt(e.label),Xt()}(t);case 253:return function(e){rt(83,e.pos,Qt,e),Lt(e.label),Xt()}(t);case 254:return function(e){rt(107,e.pos,Qt,e),jt(e.expression&&at(e.expression),at),Xt()}(t);case 255:return function(e){const t=rt(118,e.pos,Qt,e);tn(),rt(21,t,Gt,e),De(e.expression),rt(22,e.expression.end,Gt,e),Mt(e,e.statement)}(t);case 256:return function(e){const t=rt(109,e.pos,Qt,e);tn(),rt(21,t,Gt,e),De(e.expression),rt(22,e.expression.end,Gt,e),tn(),we(e.caseBlock)}(t);case 257:return function(e){we(e.label),rt(59,e.label.end,Gt,e),tn(),we(e.statement)}(t);case 258:return function(e){rt(111,e.pos,Qt,e),jt(at(e.expression),at),Xt()}(t);case 259:return function(e){rt(113,e.pos,Qt,e),tn(),we(e.tryBlock),e.catchClause&&(dn(e,e.tryBlock,e.catchClause),we(e.catchClause)),e.finallyBlock&&(dn(e,e.catchClause||e.tryBlock,e.finallyBlock),rt(98,(e.catchClause||e.tryBlock).end,Qt,e),tn(),we(e.finallyBlock))}(t);case 260:return function(e){cn(89,e.pos,Qt),Xt()}(t);case 261:return function(e){var t,n,r;we(e.name),we(e.exclamationToken),It(e.type),Ot(e.initializer,(null==(t=e.type)?void 0:t.end)??(null==(r=null==(n=e.name.emitNode)?void 0:n.typeNode)?void 0:r.end)??e.name.end,e,oe.parenthesizeExpressionForDisallowedComma)}(t);case 262:return function(e){rf(e)?(Qt("await"),tn(),Qt("using")):Qt(cf(e)?"let":af(e)?"const":of(e)?"using":"var"),tn(),Ut(e,e.declarations,528)}(t);case 263:return function(e){ct(e)}(t);case 264:return function(e){gt(e)}(t);case 265:return function(e){Pt(e,e.modifiers,!1),Qt("interface"),tn(),we(e.name),Bt(e,e.typeParameters),Ut(e,e.heritageClauses,512),tn(),Gt("{"),Dn(e),d(e.members,In),Ut(e,e.members,129),Fn(e),Gt("}")}(t);case 266:return function(e){Pt(e,e.modifiers,!1),Qt("type"),tn(),we(e.name),Bt(e,e.typeParameters),tn(),Gt("="),tn(),we(e.type),Xt()}(t);case 267:return function(e){Pt(e,e.modifiers,!1),Qt("enum"),tn(),we(e.name),tn(),Gt("{"),Ut(e,e.members,145),Gt("}")}(t);case 268:return function(e){Pt(e,e.modifiers,!1),2048&~e.flags&&(Qt(32&e.flags?"namespace":"module"),tn()),we(e.name);let t=e.body;if(!t)return Xt();for(;t&&gE(t);)Gt("."),we(t.name),t=t.body;tn(),we(t)}(t);case 269:return function(e){Dn(e),d(e.statements,An),Qe(e,Tn(e)),Fn(e)}(t);case 270:return function(e){rt(19,e.pos,Gt,e),Ut(e,e.clauses,129),rt(20,e.clauses.end,Gt,e,!0)}(t);case 271:return function(e){let t=rt(95,e.pos,Qt,e);tn(),t=rt(130,t,Qt,e),tn(),t=rt(145,t,Qt,e),tn(),we(e.name),Xt()}(t);case 272:return function(e){Pt(e,e.modifiers,!1),rt(102,e.modifiers?e.modifiers.end:e.pos,Qt,e),tn(),e.isTypeOnly&&(rt(156,e.pos,Qt,e),tn()),we(e.name),tn(),rt(64,e.name.end,Gt,e),tn(),function(e){80===e.kind?De(e):we(e)}(e.moduleReference),Xt()}(t);case 273:return function(e){Pt(e,e.modifiers,!1),rt(102,e.modifiers?e.modifiers.end:e.pos,Qt,e),tn(),e.importClause&&(we(e.importClause),tn(),rt(161,e.importClause.end,Qt,e),tn()),De(e.moduleSpecifier),e.attributes&&Lt(e.attributes),Xt()}(t);case 274:return function(e){void 0!==e.phaseModifier&&(rt(e.phaseModifier,e.pos,Qt,e),tn()),we(e.name),e.name&&e.namedBindings&&(rt(28,e.name.end,Gt,e),tn()),we(e.namedBindings)}(t);case 275:return function(e){const t=rt(42,e.pos,Gt,e);tn(),rt(130,t,Qt,e),tn(),we(e.name)}(t);case 281:return function(e){const t=rt(42,e.pos,Gt,e);tn(),rt(130,t,Qt,e),tn(),we(e.name)}(t);case 276:case 280:return function(e){!function(e){Gt("{"),Ut(e,e.elements,525136),Gt("}")}(e)}(t);case 277:case 282:return function(e){!function(e){e.isTypeOnly&&(Qt("type"),tn()),e.propertyName&&(we(e.propertyName),tn(),rt(130,e.propertyName.end,Qt,e),tn()),we(e.name)}(e)}(t);case 278:return function(e){const t=rt(95,e.pos,Qt,e);tn(),e.isExportEquals?rt(64,t,Yt,e):rt(90,t,Qt,e),tn(),De(e.expression,e.isExportEquals?oe.getParenthesizeRightSideOfBinaryForOperator(64):oe.parenthesizeExpressionOfExportDefault),Xt()}(t);case 279:return function(e){Pt(e,e.modifiers,!1);let t=rt(95,e.pos,Qt,e);tn(),e.isTypeOnly&&(t=rt(156,t,Qt,e),tn()),e.exportClause?we(e.exportClause):t=rt(42,t,Gt,e),e.moduleSpecifier&&(tn(),rt(161,e.exportClause?e.exportClause.end:t,Qt,e),tn(),De(e.moduleSpecifier)),e.attributes&&Lt(e.attributes),Xt()}(t);case 301:return function(e){rt(e.token,e.pos,Qt,e),tn();Ut(e,e.elements,526226)}(t);case 302:return function(e){we(e.name),Gt(":"),tn();const t=e.value;1024&Zd(t)||sr(Pw(t).pos),we(t)}(t);case 283:case 320:case 331:case 332:case 334:case 335:case 336:case 337:case 354:case 355:return;case 284:return function(e){Qt("require"),Gt("("),De(e.expression),Gt(")")}(t);case 12:return function(e){b.writeLiteral(e.text)}(t);case 287:case 290:return function(e){if(Gt("<"),UE(e)){const t=bn(e.tagName,e);ht(e.tagName),Rt(e,e.typeArguments),e.attributes.properties&&e.attributes.properties.length>0&&tn(),we(e.attributes),xn(e.attributes,e),mn(t)}Gt(">")}(t);case 288:case 291:return function(e){Gt("")}(t);case 292:return function(e){we(e.name),function(e,t,n,r){n&&(t("="),r(n))}(0,Gt,e.initializer,Fe)}(t);case 293:return function(e){Ut(e,e.properties,262656)}(t);case 294:return function(e){Gt("{..."),De(e.expression),Gt("}")}(t);case 295:return function(e){var t,r;if(e.expression||!ne&&!ey(e)&&(function(e){let t=!1;return as((null==n?void 0:n.text)||"",e+1,()=>t=!0),t}(r=e.pos)||function(e){let t=!1;return os((null==n?void 0:n.text)||"",e+1,()=>t=!0),t}(r))){const r=n&&!ey(e)&&za(n,e.pos).line!==za(n,e.end).line;r&&b.increaseIndent();const i=rt(19,e.pos,Gt,e);we(e.dotDotDotToken),De(e.expression),rt(20,(null==(t=e.expression)?void 0:t.end)||i,Gt,e),r&&b.decreaseIndent()}}(t);case 296:return function(e){Ne(e.namespace),Gt(":"),Ne(e.name)}(t);case 297:return function(e){rt(84,e.pos,Qt,e),tn(),De(e.expression,oe.parenthesizeExpressionForDisallowedComma),yt(e,e.statements,e.expression.end)}(t);case 298:return function(e){const t=rt(90,e.pos,Qt,e);yt(e,e.statements,t)}(t);case 299:return function(e){tn(),_n(e.token,Qt),tn(),Ut(e,e.types,528)}(t);case 300:return function(e){const t=rt(85,e.pos,Qt,e);tn(),e.variableDeclaration&&(rt(21,t,Gt,e),we(e.variableDeclaration),rt(22,e.variableDeclaration.end,Gt,e),tn()),we(e.block)}(t);case 304:return function(e){we(e.name),Gt(":"),tn();const t=e.initializer;1024&Zd(t)||sr(Pw(t).pos),De(t,oe.parenthesizeExpressionForDisallowedComma)}(t);case 305:return function(e){we(e.name),e.objectAssignmentInitializer&&(tn(),Gt("="),tn(),De(e.objectAssignmentInitializer,oe.parenthesizeExpressionForDisallowedComma))}(t);case 306:return function(e){e.expression&&(rt(26,e.pos,Gt,e),De(e.expression,oe.parenthesizeExpressionForDisallowedComma))}(t);case 307:return function(e){we(e.name),Ot(e.initializer,e.name.end,e,oe.parenthesizeExpressionForDisallowedComma)}(t);case 308:return Tt(t);case 309:return un.fail("Bundles should be printed using printBundle");case 310:return St(t);case 311:return function(e){tn(),Gt("{"),we(e.name),Gt("}")}(t);case 313:return Gt("*");case 314:return Gt("?");case 315:return function(e){Gt("?"),we(e.type)}(t);case 316:return function(e){Gt("!"),we(e.type)}(t);case 317:return function(e){we(e.type),Gt("=")}(t);case 318:return function(e){Qt("function"),Jt(e,e.parameters),Gt(":"),we(e.type)}(t);case 192:case 319:return function(e){Gt("..."),we(e.type)}(t);case 321:return function(e){if(K("/**"),e.comment){const t=ll(e.comment);if(t){const e=t.split(/\r\n?|\n/);for(const t of e)on(),tn(),Gt("*"),tn(),K(t)}}e.tags&&(1!==e.tags.length||345!==e.tags[0].kind||e.comment?Ut(e,e.tags,33):(tn(),we(e.tags[0]))),tn(),K("*/")}(t);case 323:return vt(t);case 324:return bt(t);case 328:case 333:case 338:return xt((o=t).tagName),void kt(o.comment);case 329:case 330:return function(e){xt(e.tagName),tn(),Gt("{"),we(e.class),Gt("}"),kt(e.comment)}(t);case 339:return function(e){xt(e.tagName),e.name&&(tn(),we(e.name)),kt(e.comment),bt(e.typeExpression)}(t);case 340:return function(e){kt(e.comment),bt(e.typeExpression)}(t);case 342:case 349:return xt((i=t).tagName),St(i.typeExpression),tn(),i.isBracketed&&Gt("["),we(i.name),i.isBracketed&&Gt("]"),void kt(i.comment);case 341:case 343:case 344:case 345:case 350:case 351:return function(e){xt(e.tagName),St(e.typeExpression),kt(e.comment)}(t);case 346:return function(e){xt(e.tagName),St(e.constraint),tn(),Ut(e,e.typeParameters,528),kt(e.comment)}(t);case 347:return function(e){xt(e.tagName),e.typeExpression&&(310===e.typeExpression.kind?St(e.typeExpression):(tn(),Gt("{"),K("Object"),e.typeExpression.isArrayType&&(Gt("["),Gt("]")),Gt("}"))),e.fullName&&(tn(),we(e.fullName)),kt(e.comment),e.typeExpression&&323===e.typeExpression.kind&&vt(e.typeExpression)}(t);case 348:return function(e){xt(e.tagName),we(e.name),kt(e.comment)}(t);case 352:return function(e){xt(e.tagName),tn(),e.importClause&&(we(e.importClause),tn(),rt(161,e.importClause.end,Qt,e),tn()),De(e.moduleSpecifier),e.attributes&&Lt(e.attributes),kt(e.comment)}(t)}if(V_(t)&&(e=1,O!==qq)){const n=O(e,t)||t;n!==t&&(t=n,E&&(t=E(t)))}}var i,o,a;if(1===e)switch(t.kind){case 9:case 10:return function(e){Ue(e,!1)}(t);case 11:case 14:case 15:return Ue(t,!1);case 80:return Ve(t);case 81:return We(t);case 210:return function(e){Vt(e,e.elements,8914|(e.multiLine?65536:0),oe.parenthesizeExpressionForDisallowedComma)}(t);case 211:return function(e){Dn(e),d(e.properties,In);const t=131072&Zd(e);t&&an();const r=e.multiLine?65536:0,i=n&&n.languageVersion>=1&&!ef(n)?64:0;Ut(e,e.properties,526226|i|r),t&&sn(),Fn(e)}(t);case 212:return function(e){De(e.expression,oe.parenthesizeLeftSideOfAccess);const t=e.questionDotToken||CT(mw.createToken(25),e.expression.end,e.name.pos),n=Sn(e,e.expression,t),r=Sn(e,t,e.name);fn(n,!1);29!==t.kind&&function(e){if(zN(e=Sl(e))){const t=Nn(e,void 0,!0,!1);return!(448&e.numericLiteralFlags||t.includes(Fa(25))||t.includes(String.fromCharCode(69))||t.includes(String.fromCharCode(101)))}if(Sx(e)){const t=Jw(e);return"number"==typeof t&&isFinite(t)&&t>=0&&Math.floor(t)===t}}(e.expression)&&!b.hasTrailingComment()&&!b.hasTrailingWhitespace()&&Gt("."),e.questionDotToken?we(t):rt(t.kind,e.expression.end,Gt,e),fn(r,!1),we(e.name),mn(n,r)}(t);case 213:return function(e){De(e.expression,oe.parenthesizeLeftSideOfAccess),we(e.questionDotToken),rt(23,e.expression.end,Gt,e),De(e.argumentExpression),rt(24,e.argumentExpression.end,Gt,e)}(t);case 214:return function(e){const t=16&ep(e);t&&(Gt("("),Ht("0"),Gt(","),tn()),De(e.expression,oe.parenthesizeLeftSideOfAccess),t&&Gt(")"),we(e.questionDotToken),Rt(e,e.typeArguments),Vt(e,e.arguments,2576,oe.parenthesizeExpressionForDisallowedComma)}(t);case 215:return function(e){rt(105,e.pos,Qt,e),tn(),De(e.expression,oe.parenthesizeExpressionOfNew),Rt(e,e.typeArguments),Vt(e,e.arguments,18960,oe.parenthesizeExpressionForDisallowedComma)}(t);case 216:return function(e){const t=16&ep(e);t&&(Gt("("),Ht("0"),Gt(","),tn()),De(e.tag,oe.parenthesizeLeftSideOfAccess),t&&Gt(")"),Rt(e,e.typeArguments),tn(),De(e.template)}(t);case 217:return function(e){Gt("<"),we(e.type),Gt(">"),De(e.expression,oe.parenthesizeOperandOfPrefixUnary)}(t);case 218:return function(e){const t=rt(21,e.pos,Gt,e),n=bn(e.expression,e);De(e.expression,void 0),xn(e.expression,e),mn(n),rt(22,e.expression?e.expression.end:t,Gt,e)}(t);case 219:return function(e){On(e.name),ct(e)}(t);case 220:return function(e){At(e,e.modifiers),lt(e,Ke,Ge)}(t);case 221:return function(e){rt(91,e.pos,Qt,e),tn(),De(e.expression,oe.parenthesizeOperandOfPrefixUnary)}(t);case 222:return function(e){rt(114,e.pos,Qt,e),tn(),De(e.expression,oe.parenthesizeOperandOfPrefixUnary)}(t);case 223:return function(e){rt(116,e.pos,Qt,e),tn(),De(e.expression,oe.parenthesizeOperandOfPrefixUnary)}(t);case 224:return function(e){rt(135,e.pos,Qt,e),tn(),De(e.expression,oe.parenthesizeOperandOfPrefixUnary)}(t);case 225:return function(e){_n(e.operator,Yt),function(e){const t=e.operand;return 225===t.kind&&(40===e.operator&&(40===t.operator||46===t.operator)||41===e.operator&&(41===t.operator||47===t.operator))}(e)&&tn(),De(e.operand,oe.parenthesizeOperandOfPrefixUnary)}(t);case 226:return function(e){De(e.operand,oe.parenthesizeOperandOfPostfixUnary),_n(e.operator,Yt)}(t);case 227:return se(t);case 228:return function(e){const t=Sn(e,e.condition,e.questionToken),n=Sn(e,e.questionToken,e.whenTrue),r=Sn(e,e.whenTrue,e.colonToken),i=Sn(e,e.colonToken,e.whenFalse);De(e.condition,oe.parenthesizeConditionOfConditionalExpression),fn(t,!0),we(e.questionToken),fn(n,!0),De(e.whenTrue,oe.parenthesizeBranchOfConditionalExpression),mn(t,n),fn(r,!0),we(e.colonToken),fn(i,!0),De(e.whenFalse,oe.parenthesizeBranchOfConditionalExpression),mn(r,i)}(t);case 229:return function(e){we(e.head),Ut(e,e.templateSpans,262144)}(t);case 230:return function(e){rt(127,e.pos,Qt,e),we(e.asteriskToken),jt(e.expression&&at(e.expression),st)}(t);case 231:return function(e){rt(26,e.pos,Gt,e),De(e.expression,oe.parenthesizeExpressionForDisallowedComma)}(t);case 232:return function(e){On(e.name),gt(e)}(t);case 233:case 283:case 354:return;case 235:return function(e){De(e.expression,void 0),e.type&&(tn(),Qt("as"),tn(),we(e.type))}(t);case 236:return function(e){De(e.expression,oe.parenthesizeLeftSideOfAccess),Yt("!")}(t);case 234:return Xe(t);case 239:return function(e){De(e.expression,void 0),e.type&&(tn(),Qt("satisfies"),tn(),we(e.type))}(t);case 237:return function(e){cn(e.keywordToken,e.pos,Gt),Gt("."),we(e.name)}(t);case 238:return un.fail("SyntheticExpression should never be printed.");case 285:return function(e){we(e.openingElement),Ut(e,e.children,262144),we(e.closingElement)}(t);case 286:return function(e){Gt("<"),ht(e.tagName),Rt(e,e.typeArguments),tn(),we(e.attributes),Gt("/>")}(t);case 289:return function(e){we(e.openingFragment),Ut(e,e.children,262144),we(e.closingFragment)}(t);case 353:return un.fail("SyntaxList should not be printed");case 356:return function(e){const t=Zd(e);1024&t||e.pos===e.expression.pos||sr(e.expression.pos),De(e.expression),2048&t||e.end===e.expression.end||or(e.expression.end)}(t);case 357:return function(e){Vt(e,e.elements,528,void 0)}(t);case 358:return un.fail("SyntheticReferenceExpression should not be printed")}return Ch(t.kind)?ln(t,Qt):Fl(t.kind)?ln(t,Gt):void un.fail(`Unhandled SyntaxKind: ${un.formatSyntaxKind(t.kind)}.`)}function Je(e,t){const n=je(1,e,t);un.assertIsDefined(F),t=F,F=void 0,n(e,t)}function ze(t){let r=!1;const i=309===t.kind?t:void 0;if(i&&0===V)return;const o=i?i.sourceFiles.length:1;for(let a=0;a")}function He(e){tn(),we(e.type)}function Ke(e){Bt(e,e.typeParameters),zt(e,e.parameters),It(e.type),tn(),we(e.equalsGreaterThanToken)}function Ge(e){VF(e.body)?pt(e.body):(tn(),De(e.body,oe.parenthesizeConciseBodyOfArrowFunction))}function Xe(e){De(e.expression,oe.parenthesizeLeftSideOfAccess),Rt(e,e.typeArguments)}function Qe(e,t){rt(19,e.pos,Gt,e);const n=t||1&Zd(e)?768:129;Ut(e,e.statements,n),rt(20,e.statements.end,Gt,e,!!(1&n))}function Ye(e){e?Gt(";"):Xt()}function Ze(e,t){const n=rt(117,t,Qt,e);tn(),rt(21,n,Gt,e),De(e.expression),rt(22,e.expression.end,Gt,e)}function et(e){void 0!==e&&(262===e.kind?we(e):De(e))}function rt(e,t,r,i,o){const a=pc(i),s=a&&a.kind===i.kind,c=t;if(s&&n&&(t=Qa(n.text,t)),s&&i.pos!==c){const e=o&&n&&!$b(c,t,n);e&&an(),or(c),e&&sn()}if(t=q||19!==e&&20!==e?_n(e,r,t):cn(e,t,r,i),s&&i.end!==t){const e=295===i.kind;sr(t,!e,e)}return t}function it(e){return 2===e.kind||!!e.hasTrailingNewLine}function ot(e){if(!n)return!1;const t=_s(n.text,e.pos);if(t){const t=pc(e);if(t&&yF(t.parent))return!0}return!!$(t,it)||!!$(Iw(e),it)||!!JF(e)&&(!(e.pos===e.expression.pos||!$(us(n.text,e.expression.pos),it))||ot(e.expression))}function at(e){if(!ne)switch(e.kind){case 356:if(ot(e)){const t=pc(e);if(t&&yF(t)){const n=mw.createParenthesizedExpression(e.expression);return hw(n,e),xI(n,t),n}return mw.createParenthesizedExpression(e)}return mw.updatePartiallyEmittedExpression(e,at(e.expression));case 212:return mw.updatePropertyAccessExpression(e,at(e.expression),e.name);case 213:return mw.updateElementAccessExpression(e,at(e.expression),e.argumentExpression);case 214:return mw.updateCallExpression(e,at(e.expression),e.typeArguments,e.arguments);case 216:return mw.updateTaggedTemplateExpression(e,at(e.tag),e.typeArguments,e.template);case 226:return mw.updatePostfixUnaryExpression(e,at(e.operand));case 227:return mw.updateBinaryExpression(e,at(e.left),e.operatorToken,e.right);case 228:return mw.updateConditionalExpression(e,at(e.condition),e.questionToken,e.whenTrue,e.colonToken,e.whenFalse);case 235:return mw.updateAsExpression(e,at(e.expression),e.type);case 239:return mw.updateSatisfiesExpression(e,at(e.expression),e.type);case 236:return mw.updateNonNullExpression(e,at(e.expression))}return e}function st(e){return at(oe.parenthesizeExpressionForDisallowedComma(e))}function ct(e){Pt(e,e.modifiers,!1),Qt("function"),we(e.asteriskToken),tn(),Ne(e.name),lt(e,dt,_t)}function lt(e,t,n){const r=131072&Zd(e);r&&an(),Dn(e),d(e.parameters,An),t(e),n(e),Fn(e),r&&sn()}function _t(e){const t=e.body;t?pt(t):Xt()}function ut(e){Xt()}function dt(e){Bt(e,e.typeParameters),Jt(e,e.parameters),It(e.type)}function pt(e){An(e),null==L||L(e),tn(),Gt("{"),an();const t=function(e){if(1&Zd(e))return!0;if(e.multiLine)return!1;if(!ey(e)&&n&&!Rb(e,n))return!1;if(gn(e,fe(e.statements),2)||yn(e,ye(e.statements),2,e.statements))return!1;let t;for(const n of e.statements){if(hn(t,n,2)>0)return!1;t=n}return!0}(e)?ft:mt;Zn(e,e.statements,t),sn(),cn(20,e.statements.end,Gt,e),null==j||j(e)}function ft(e){mt(e,!0)}function mt(e,t){const n=Nt(e.statements),r=b.getTextPos();ze(e),0===n&&r===b.getTextPos()&&t?(sn(),Ut(e,e.statements,768),an()):Ut(e,e.statements,1,void 0,n)}function gt(e){Pt(e,e.modifiers,!0),rt(86,jb(e).pos,Qt,e),e.name&&(tn(),Ne(e.name));const t=131072&Zd(e);t&&an(),Bt(e,e.typeParameters),Ut(e,e.heritageClauses,0),tn(),Gt("{"),Dn(e),d(e.members,In),Ut(e,e.members,129),Fn(e),Gt("}"),t&&sn()}function ht(e){80===e.kind?De(e):we(e)}function yt(e,t,r){let i=163969;1===t.length&&(!n||ey(e)||ey(t[0])||Bb(e,t[0],n))?(cn(59,r,Gt,e),tn(),i&=-130):rt(59,r,Gt,e),Ut(e,t,i)}function vt(e){Ut(e,mw.createNodeArray(e.jsDocPropertyTags),33)}function bt(e){e.typeParameters&&Ut(e,mw.createNodeArray(e.typeParameters),33),e.parameters&&Ut(e,mw.createNodeArray(e.parameters),33),e.type&&(on(),tn(),Gt("*"),tn(),we(e.type))}function xt(e){Gt("@"),we(e)}function kt(e){const t=ll(e);t&&(tn(),K(t))}function St(e){e&&(tn(),Gt("{"),we(e.type),Gt("}"))}function Tt(e){on();const t=e.statements;0===t.length||!pf(t[0])||ey(t[0])?Zn(e,t,wt):wt(e)}function Ct(e,t,r,i){if(e&&(en('/// '),on()),n&&n.moduleName&&(en(`/// `),on()),n&&n.amdDependencies)for(const e of n.amdDependencies)e.name?en(`/// `):en(`/// `),on();function o(e,t){for(const n of t){const t=n.resolutionMode?`resolution-mode="${99===n.resolutionMode?"import":"require"}" `:"",r=n.preserve?'preserve="true" ':"";en(`/// `),on()}}o("path",t),o("types",r),o("lib",i)}function wt(e){const t=e.statements;Dn(e),d(e.statements,An),ze(e);const n=k(t,e=>!pf(e));!function(e){e.isDeclarationFile&&Ct(e.hasNoDefaultLib,e.referencedFiles,e.typeReferenceDirectives,e.libReferenceDirectives)}(e),Ut(e,t,1,void 0,-1===n?t.length:n),Fn(e)}function Nt(e,t,n){let r=!!t;for(let i=0;i=r.length||0===s;if(c&&32768&i)return null==M||M(r),void(null==R||R(r));15360&i&&(Gt(function(e){return $q[15360&e][0]}(i)),c&&r&&sr(r.pos,!0)),null==M||M(r),c?!(1&i)||H&&(!t||n&&Rb(t,n))?256&i&&!(524288&i)&&tn():on():$t(e,t,r,i,o,a,s,r.hasTrailingComma,r),null==R||R(r),15360&i&&(c&&r&&or(r.end),Gt(function(e){return $q[15360&e][1]}(i)))}function $t(e,t,n,r,i,o,a,s,c){const l=!(262144&r);let _=l;const u=gn(t,n[o],r);u?(on(u),_=!1):256&r&&tn(),128&r&&an();const d=function(e,t){return 1===e.length?SU:"object"==typeof t?TU:CU}(e,i);let p,f=!1;for(let s=0;s0?(131&r||(an(),f=!0),_&&60&r&&!XS(a.pos)&&sr(Pw(a).pos,!!(512&r),!0),on(e),_=!1):p&&512&r&&tn()}_?sr(Pw(a).pos):_=l,y=a.pos,d(a,e,i,s),f&&(sn(),f=!1),p=a}const m=p?Zd(p):0,g=ne||!!(2048&m),h=s&&64&r&&16&r;h&&(p&&!g?rt(28,p.end,Gt,p):Gt(",")),p&&(t?t.end:-1)!==p.end&&60&r&&!g&&or(h&&(null==c?void 0:c.end)?c.end:p.end),128&r&&sn();const v=yn(t,n[o+a-1],r,c);v?on(v):2097408&r&&tn()}function Ht(e){b.writeLiteral(e)}function Kt(e,t){b.writeSymbol(e,t)}function Gt(e){b.writePunctuation(e)}function Xt(){b.writeTrailingSemicolon(";")}function Qt(e){b.writeKeyword(e)}function Yt(e){b.writeOperator(e)}function Zt(e){b.writeParameter(e)}function en(e){b.writeComment(e)}function tn(){b.writeSpace(" ")}function nn(e){b.writeProperty(e)}function rn(e){b.nonEscapingWrite?b.nonEscapingWrite(e):b.write(e)}function on(e=1){for(let t=0;t0)}function an(){b.increaseIndent()}function sn(){b.decreaseIndent()}function cn(e,t,n,r){return G?_n(e,n,t):function(e,t,n,r,i){if(G||e&&Pm(e))return i(t,n,r);const o=e&&e.emitNode,a=o&&o.flags||0,s=o&&o.tokenSourceMapRanges&&o.tokenSourceMapRanges[t],c=s&&s.source||C;return r=hr(c,s?s.pos:r),!(256&a)&&r>=0&&vr(c,r),r=i(t,n,r),s&&(r=s.end),!(512&a)&&r>=0&&vr(c,r),r}(r,e,n,t,_n)}function ln(e,t){B&&B(e),t(Fa(e.kind)),J&&J(e)}function _n(e,t,n){const r=Fa(e);return t(r),n<0?n:n+r.length}function dn(e,t,n){if(1&Zd(e))tn();else if(H){const r=Sn(e,t,n);r?on(r):tn()}else on()}function pn(e){const t=e.split(/\r\n?|\n/),n=Lu(t);for(const e of t){const t=n?e.slice(n):e;t.length&&(on(),K(t))}}function fn(e,t){e?(an(),on(e)):t&&tn()}function mn(e,t){e&&sn(),t&&sn()}function gn(e,t,r){if(2&r||H){if(65536&r)return 1;if(void 0===t)return!e||n&&Rb(e,n)?0:1;if(t.pos===y)return 0;if(12===t.kind)return 0;if(n&&e&&!XS(e.pos)&&!ey(t)&&(!t.parent||_c(t.parent)===_c(e)))return H?vn(r=>Kb(t.pos,e.pos,n,r)):Bb(e,t,n)?0:1;if(kn(t,r))return 1}return 1&r?1:0}function hn(e,t,r){if(2&r||H){if(void 0===e||void 0===t)return 0;if(12===t.kind)return 0;if(n&&!ey(e)&&!ey(t))return H&&function(e,t){if(t.pos-1&&r.indexOf(t)===i+1}(e,t)?vn(r=>Ub(e,t,n,r)):!H&&(o=t,(i=_c(i=e)).parent&&i.parent===_c(o).parent)?qb(e,t,n)?0:1:65536&r?1:0;if(kn(e,r)||kn(t,r))return 1}else if(Fw(t))return 1;var i,o;return 1&r?1:0}function yn(e,t,r,i){if(2&r||H){if(65536&r)return 1;if(void 0===t)return!e||n&&Rb(e,n)?0:1;if(n&&e&&!XS(e.pos)&&!ey(t)&&(!t.parent||t.parent===e)){if(H){const r=i&&!XS(i.end)?i.end:t.end;return vn(t=>Gb(r,e.end,n,t))}return Jb(e,t,n)?0:1}if(kn(t,r))return 1}return 1&r&&!(131072&r)?1:0}function vn(e){un.assert(!!H);const t=e(!0);return 0===t?e(!1):t}function bn(e,t){const n=H&&gn(t,e,0);return n&&fn(n,!1),!!n}function xn(e,t){const n=H&&yn(t,e,0,void 0);n&&on(n)}function kn(e,t){if(ey(e)){const n=Fw(e);return void 0===n?!!(65536&t):n}return!!(65536&t)}function Sn(e,t,r){return 262144&Zd(e)?0:(e=Cn(e),t=Cn(t),Fw(r=Cn(r))?1:!n||ey(e)||ey(t)||ey(r)?0:H?vn(e=>Ub(t,r,n,e)):qb(t,r,n)?0:1)}function Tn(e){return 0===e.statements.length&&(!n||qb(e,e,n))}function Cn(e){for(;218===e.kind&&ey(e);)e=e.expression;return e}function wn(e,t){if(Wl(e)||$l(e))return Ln(e);if(UN(e)&&e.textSourceNode)return wn(e.textSourceNode,t);const r=n,i=!!r&&!!e.parent&&!ey(e);if(dl(e)){if(!i||vd(e)!==_c(r))return gc(e)}else if(YE(e)){if(!i||vd(e)!==_c(r))return oC(e)}else if(un.assertNode(e,Il),!i)return e.text;return Vd(r,e,t)}function Nn(t,r=n,i,o){if(11===t.kind&&t.textSourceNode){const e=t.textSourceNode;if(aD(e)||sD(e)||zN(e)||YE(e)){const n=zN(e)?e.text:wn(e);return o?`"${Dy(n)}"`:i||16777216&Zd(t)?`"${xy(n)}"`:`"${Sy(n)}"`}return Nn(e,vd(e),i,o)}return rp(t,r,(i?1:0)|(o?2:0)|(e.terminateUnterminatedLiterals?4:0)|(e.target&&e.target>=8?8:0))}function Dn(e){l.push(_),_=0,g.push(h),e&&1048576&Zd(e)||(u.push(p),p=0,s.push(c),c=void 0,f.push(m))}function Fn(e){_=l.pop(),h=g.pop(),e&&1048576&Zd(e)||(p=u.pop(),c=s.pop(),m=f.pop())}function En(e){m&&m!==ye(f)||(m=new Set),m.add(e)}function Pn(e){h&&h!==ye(g)||(h=new Set),h.add(e)}function An(e){if(e)switch(e.kind){case 242:case 297:case 298:d(e.statements,An);break;case 257:case 255:case 247:case 248:An(e.statement);break;case 246:An(e.thenStatement),An(e.elseStatement);break;case 249:case 251:case 250:An(e.initializer),An(e.statement);break;case 256:An(e.caseBlock);break;case 270:d(e.clauses,An);break;case 259:An(e.tryBlock),An(e.catchClause),An(e.finallyBlock);break;case 300:An(e.variableDeclaration),An(e.block);break;case 244:An(e.declarationList);break;case 262:d(e.declarations,An);break;case 261:case 170:case 209:case 264:case 275:case 281:On(e.name);break;case 263:On(e.name),1048576&Zd(e)&&(d(e.parameters,An),An(e.body));break;case 207:case 208:case 276:d(e.elements,An);break;case 273:An(e.importClause);break;case 274:On(e.name),An(e.namedBindings);break;case 277:On(e.propertyName||e.name)}}function In(e){if(e)switch(e.kind){case 304:case 305:case 173:case 172:case 175:case 174:case 178:case 179:On(e.name)}}function On(e){e&&(Wl(e)||$l(e)?Ln(e):k_(e)&&An(e))}function Ln(e){const t=e.emitNode.autoGenerate;if(4==(7&t.flags))return jn(uI(e),sD(e),t.flags,t.prefix,t.suffix);{const n=t.id;return o[n]||(o[n]=function(e){const t=e.emitNode.autoGenerate,n=dI(t.prefix,Ln),r=dI(t.suffix);switch(7&t.flags){case 1:return Jn(0,!!(8&t.flags),sD(e),n,r);case 2:return un.assertNode(e,aD),Jn(268435456,!!(8&t.flags),!1,n,r);case 3:return zn(gc(e),32&t.flags?Rn:Mn,!!(16&t.flags),!!(8&t.flags),sD(e),n,r)}return un.fail(`Unsupported GeneratedIdentifierKind: ${un.formatEnum(7&t.flags,br,!0)}.`)}(e))}}function jn(e,t,n,o,a){const s=ZB(e),c=t?i:r;return c[s]||(c[s]=Vn(e,t,n??0,dI(o,Ln),dI(a)))}function Mn(e,t){return Rn(e)&&!function(e,t){let n,r;if(t?(n=h,r=g):(n=m,r=f),null==n?void 0:n.has(e))return!0;for(let t=r.length-1;t>=0;t--)if(n!==r[t]&&(n=r[t],null==n?void 0:n.has(e)))return!0;return!1}(e,t)&&!a.has(e)}function Rn(e,t){return!n||wd(n,e,P)}function Bn(e,t){switch(e){case"":p=t;break;case"#":_=t;break;default:c??(c=new Map),c.set(e,t)}}function Jn(e,t,n,r,i){r.length>0&&35===r.charCodeAt(0)&&(r=r.slice(1));const o=pI(n,r,"",i);let a=function(e){switch(e){case"":return p;case"#":return _;default:return(null==c?void 0:c.get(e))??0}}(o);if(e&&!(a&e)){const s=pI(n,r,268435456===e?"_i":"_n",i);if(Mn(s,n))return a|=e,n?Pn(s):t&&En(s),Bn(o,a),s}for(;;){const e=268435455&a;if(a++,8!==e&&13!==e){const s=pI(n,r,e<26?"_"+String.fromCharCode(97+e):"_"+(e-26),i);if(Mn(s,n))return n?Pn(s):t&&En(s),Bn(o,a),s}}}function zn(e,t=Mn,n,r,i,o,s){if(e.length>0&&35===e.charCodeAt(0)&&(e=e.slice(1)),o.length>0&&35===o.charCodeAt(0)&&(o=o.slice(1)),n){const n=pI(i,o,e,s);if(t(n,i))return i?Pn(n):r?En(n):a.add(n),n}95!==e.charCodeAt(e.length-1)&&(e+="_");let c=1;for(;;){const n=pI(i,o,e+c,s);if(t(n,i))return i?Pn(n):r?En(n):a.add(n),n;c++}}function qn(e){return zn(e,Rn,!0,!1,!1,"","")}function Un(){return zn("default",Mn,!1,!1,!1,"","")}function Vn(e,t,n,r,i){switch(e.kind){case 80:case 81:return zn(wn(e),Mn,!!(16&n),!!(8&n),t,r,i);case 268:case 267:return un.assert(!r&&!i&&!t),function(e){const t=wn(e.name);return function(e,t){for(let n=t;n&&ch(n,t);n=n.nextContainer)if(su(n)&&n.locals){const t=n.locals.get(fc(e));if(t&&3257279&t.flags)return!1}return!0}(t,tt(e,su))?t:zn(t,Mn,!1,!1,!1,"","")}(e);case 273:case 279:return un.assert(!r&&!i&&!t),function(e){const t=kg(e);return zn(UN(t)?op(t.text):"module",Mn,!1,!1,!1,"","")}(e);case 263:case 264:{un.assert(!r&&!i&&!t);const o=e.name;return o&&!Wl(o)?Vn(o,!1,n,r,i):Un()}case 278:return un.assert(!r&&!i&&!t),Un();case 232:return un.assert(!r&&!i&&!t),zn("class",Mn,!1,!1,!1,"","");case 175:case 178:case 179:return function(e,t,n,r){return aD(e.name)?jn(e.name,t):Jn(0,!1,t,n,r)}(e,t,r,i);case 168:return Jn(0,!0,t,r,i);default:return Jn(0,!1,t,r,i)}}function $n(e,t){const n=je(2,e,t),r=Y,i=Z,o=ee;Hn(t),n(e,t),Kn(t,r,i,o)}function Hn(e){const t=Zd(e),n=Pw(e);!function(e,t,n,r){re(),te=!1;const i=n<0||!!(1024&t)||12===e.kind,o=r<0||!!(2048&t)||12===e.kind;(n>0||r>0)&&n!==r&&(i||er(n,354!==e.kind),(!i||n>=0&&1024&t)&&(Y=n),(!o||r>=0&&2048&t)&&(Z=r,262===e.kind&&(ee=r))),d(Iw(e),Xn),ie()}(e,t,n.pos,n.end),4096&t&&(ne=!0)}function Kn(e,t,n,r){const i=Zd(e),o=Pw(e);4096&i&&(ne=!1),Gn(e,i,o.pos,o.end,t,n,r);const a=Qw(e);a&&Gn(e,i,a.pos,a.end,t,n,r)}function Gn(e,t,n,r,i,o,a){re();const s=r<0||!!(2048&t)||12===e.kind;d(jw(e),Qn),(n>0||r>0)&&n!==r&&(Y=i,Z=o,ee=a,s||354===e.kind||function(e){ur(e,ar)}(r)),ie()}function Xn(e){(e.hasLeadingNewline||2===e.kind)&&b.writeLine(),Yn(e),e.hasTrailingNewLine||2===e.kind?b.writeLine():b.writeSpace(" ")}function Qn(e){b.isAtStartOfLine()||b.writeSpace(" "),Yn(e),e.hasTrailingNewLine&&b.writeLine()}function Yn(e){const t=function(e){return 3===e.kind?`/*${e.text}*/`:`//${e.text}`}(e);xv(t,3===e.kind?Oa(t):void 0,b,0,t.length,U)}function Zn(e,t,r){re();const{pos:i,end:o}=t,a=Zd(e),s=ne||o<0||!!(2048&a);i<0||!!(1024&a)||function(e){const t=n&&bv(n.text,Ce(),b,dr,e,U,ne);t&&(D?D.push(t):D=[t])}(t),ie(),4096&a&&!ne?(ne=!0,r(e),ne=!1):r(e),re(),s||(er(t.end,!0),te&&!b.isAtStartOfLine()&&b.writeLine()),ie()}function er(e,t){te=!1,t?0===e&&(null==n?void 0:n.isDeclarationFile)?_r(e,nr):_r(e,ir):0===e&&_r(e,tr)}function tr(e,t,n,r,i){pr(e,t)&&ir(e,t,n,r,i)}function nr(e,t,n,r,i){pr(e,t)||ir(e,t,n,r,i)}function rr(t,n){return!e.onlyPrintJsDocStyle||DI(t,n)||Bd(t,n)}function ir(e,t,r,i,o){n&&rr(n.text,e)&&(te||(vv(Ce(),b,o,e),te=!0),yr(e),xv(n.text,Ce(),b,e,t,U),yr(t),i?b.writeLine():3===r&&b.writeSpace(" "))}function or(e){ne||-1===e||er(e,!0)}function ar(e,t,r,i){n&&rr(n.text,e)&&(b.isAtStartOfLine()||b.writeSpace(" "),yr(e),xv(n.text,Ce(),b,e,t,U),yr(t),i&&b.writeLine())}function sr(e,t,n){ne||(re(),ur(e,t?ar:n?cr:lr),ie())}function cr(e,t,r){n&&(yr(e),xv(n.text,Ce(),b,e,t,U),yr(t),2===r&&b.writeLine())}function lr(e,t,r,i){n&&(yr(e),xv(n.text,Ce(),b,e,t,U),yr(t),i?b.writeLine():b.writeSpace(" "))}function _r(e,t){!n||-1!==Y&&e===Y||(function(e){return void 0!==D&&ve(D).nodePos===e}(e)?function(e){if(!n)return;const t=ve(D).detachedCommentEndPos;D.length-1?D.pop():D=void 0,os(n.text,t,e,t)}(t):os(n.text,e,t,e))}function ur(e,t){n&&(-1===Z||e!==Z&&e!==ee)&&as(n.text,e,t)}function dr(e,t,r,i,o,a){n&&rr(n.text,i)&&(yr(i),xv(e,t,r,i,o,a),yr(o))}function pr(e,t){return!!n&&Rd(n.text,e,t)}function fr(e,t){const n=je(3,e,t);mr(t),n(e,t),gr(t)}function mr(e){const t=Zd(e),n=Cw(e),r=n.source||C;354!==e.kind&&!(32&t)&&n.pos>=0&&vr(n.source||C,hr(r,n.pos)),128&t&&(G=!0)}function gr(e){const t=Zd(e),n=Cw(e);128&t&&(G=!1),354!==e.kind&&!(64&t)&&n.end>=0&&vr(n.source||C,n.end)}function hr(e,t){return e.skipTrivia?e.skipTrivia(t):Qa(e.text,t)}function yr(e){if(G||XS(e)||kr(C))return;const{line:t,character:n}=za(C,e);T.addMapping(b.getLine(),b.getColumn(),X,t,n,void 0)}function vr(e,t){if(e!==C){const n=C,r=X;xr(e),yr(t),function(e,t){C=e,X=t}(n,r)}else yr(t)}function xr(t){G||(C=t,t!==w?kr(t)||(X=T.addSource(t.fileName),e.inlineSources&&T.setSourceContent(X,t.text),w=t,Q=X):X=Q)}function kr(e){return ko(e.fileName,".json")}}function SU(e,t,n,r){t(e)}function TU(e,t,n,r){t(e,n.select(r))}function CU(e,t,n,r){t(e,n)}function wU(e,t,n){if(!e.getDirectories||!e.readDirectory)return;const r=new Map,i=Wt(n);return{useCaseSensitiveFileNames:n,fileExists:function(t){const n=s(o(t));return n&&u(n.sortedAndCanonicalizedFiles,i(c(t)))||e.fileExists(t)},readFile:(t,n)=>e.readFile(t,n),directoryExists:e.directoryExists&&function(t){const n=o(t);return r.has(Wo(n))||e.directoryExists(t)},getDirectories:function(t){const n=_(t,o(t));return n?n.directories.slice():e.getDirectories(t)},readDirectory:function(r,i,a,s,u){const p=o(r),f=_(r,p);let m;return void 0!==f?hS(r,i,a,s,n,t,u,function(e){const t=o(e);if(t===p)return f||g(e,t);const n=_(e,t);return void 0!==n?n||g(e,t):rT},d):e.readDirectory(r,i,a,s,u);function g(t,n){if(m&&n===p)return m;const r={files:E(e.readDirectory(t,void 0,void 0,["*.*"]),c)||l,directories:e.getDirectories(t)||l};return n===p&&(m=r),r}},createDirectory:e.createDirectory&&function(t){const n=s(o(t));if(n){const e=c(t),r=i(e);Z(n.sortedAndCanonicalizedDirectories,r,Ct)&&n.directories.push(e)}e.createDirectory(t)},writeFile:e.writeFile&&function(t,n,r){const i=s(o(t));return i&&f(i,c(t),!0),e.writeFile(t,n,r)},addOrDeleteFileOrDirectory:function(t,n){if(void 0!==a(n))return void m();const r=s(n);if(!r)return void p(n);if(!e.directoryExists)return void m();const o=c(t),l={fileExists:e.fileExists(t),directoryExists:e.directoryExists(t)};return l.directoryExists||u(r.sortedAndCanonicalizedDirectories,i(o))?m():f(r,o,l.fileExists),l},addOrDeleteFile:function(e,t,n){if(1===n)return;const r=s(t);r?f(r,c(e),0===n):p(t)},clearCache:m,realpath:e.realpath&&d};function o(e){return Uo(e,t,i)}function a(e){return r.get(Wo(e))}function s(e){const t=a(Do(e));return t?(t.sortedAndCanonicalizedFiles||(t.sortedAndCanonicalizedFiles=t.files.map(i).sort(),t.sortedAndCanonicalizedDirectories=t.directories.map(i).sort()),t):t}function c(e){return Fo(Jo(e))}function _(t,n){const i=a(n=Wo(n));if(i)return i;try{return function(t,n){var i;if(!e.realpath||Wo(o(e.realpath(t)))===n){const i={files:E(e.readDirectory(t,void 0,void 0,["*.*"]),c)||[],directories:e.getDirectories(t)||[]};return r.set(Wo(n),i),i}if(null==(i=e.directoryExists)?void 0:i.call(e,t))return r.set(n,!1),!1}(t,n)}catch{return void un.assert(!r.has(Wo(n)))}}function u(e,t){return Te(e,t,st,Ct)>=0}function d(t){return e.realpath?e.realpath(t):t}function p(e){sa(Do(e),e=>!!r.delete(Wo(e))||void 0)}function f(e,t,n){const r=e.sortedAndCanonicalizedFiles,o=i(t);if(n)Z(r,o,Ct)&&e.files.push(t);else{const t=Te(r,o,st,Ct);if(t>=0){r.splice(t,1);const n=e.files.findIndex(e=>i(e)===o);e.files.splice(n,1)}}}function m(){r.clear()}}var NU=(e=>(e[e.Update=0]="Update",e[e.RootNamesAndUpdate=1]="RootNamesAndUpdate",e[e.Full=2]="Full",e))(NU||{});function DU(e,t,n,r,i){var o;const a=Me((null==(o=null==t?void 0:t.configFile)?void 0:o.extendedSourceFiles)||l,i);n.forEach((t,n)=>{a.has(n)||(t.projects.delete(e),t.close())}),a.forEach((t,i)=>{const o=n.get(i);o?o.projects.add(e):n.set(i,{projects:new Set([e]),watcher:r(t,i),close:()=>{const e=n.get(i);e&&0===e.projects.size&&(e.watcher.close(),n.delete(i))}})})}function FU(e,t){t.forEach(t=>{t.projects.delete(e)&&t.close()})}function EU(e,t,n){e.delete(t)&&e.forEach(({extendedResult:r},i)=>{var o;(null==(o=r.extendedSourceFiles)?void 0:o.some(e=>n(e)===t))&&EU(e,i,n)})}function PU(e,t,n){px(t,e.getMissingFilePaths(),{createNewValue:n,onDeleteValue:nx})}function AU(e,t,n){function r(e,t){return{watcher:n(e,t),flags:t}}t?px(e,new Map(Object.entries(t)),{createNewValue:r,onDeleteValue:RU,onExistingValue:function(t,n,i){t.flags!==n&&(t.watcher.close(),e.set(i,r(i,n)))}}):ux(e,RU)}function IU({watchedDirPath:e,fileOrDirectory:t,fileOrDirectoryPath:n,configFileName:r,options:i,program:o,extraFileExtensions:a,currentDirectory:s,useCaseSensitiveFileNames:c,writeLog:l,toPath:_,getScriptKind:u}){const d=qW(n);if(!d)return l(`Project: ${r} Detected ignored path: ${t}`),!0;if((n=d)===e)return!1;if(xo(n)&&!BS(t,i,a)&&!function(){if(!u)return!1;switch(u(t)){case 3:case 4:case 7:case 5:return!0;case 1:case 2:return Ak(i);case 6:return Nk(i);case 0:return!1}}())return l(`Project: ${r} Detected file add/remove of non supported extension: ${t}`),!0;if(Mj(t,i.configFile.configFileSpecs,Bo(Do(r),s),c,s))return l(`Project: ${r} Detected excluded file: ${t}`),!0;if(!o)return!1;if(i.outFile||i.outDir)return!1;if(uO(n)){if(i.declarationDir)return!1}else if(!So(n,wS))return!1;const p=US(n),f=Qe(o)?void 0:h$(o)?o.getProgramOrUndefined():o,m=f||Qe(o)?void 0:o;return!(!g(p+".ts")&&!g(p+".tsx")||(l(`Project: ${r} Detected output file: ${t}`),0));function g(e){return f?!!f.getSourceFileByPath(e):m?m.state.fileInfos.has(e):!!b(o,t=>_(t)===e)}}function OU(e,t){return!!e&&e.isEmittedFile(t)}var LU=(e=>(e[e.None=0]="None",e[e.TriggerOnly=1]="TriggerOnly",e[e.Verbose=2]="Verbose",e))(LU||{});function jU(e,t,n,r){eo(2===t?n:rt);const i={watchFile:(t,n,r,i)=>e.watchFile(t,n,r,i),watchDirectory:(t,n,r,i)=>e.watchDirectory(t,n,!!(1&r),i)},o=0!==t?{watchFile:l("watchFile"),watchDirectory:l("watchDirectory")}:void 0,a=2===t?{watchFile:function(e,t,i,a,s,c){n(`FileWatcher:: Added:: ${_(e,i,a,s,c,r)}`);const l=o.watchFile(e,t,i,a,s,c);return{close:()=>{n(`FileWatcher:: Close:: ${_(e,i,a,s,c,r)}`),l.close()}}},watchDirectory:function(e,t,i,a,s,c){const l=`DirectoryWatcher:: Added:: ${_(e,i,a,s,c,r)}`;n(l);const u=Un(),d=o.watchDirectory(e,t,i,a,s,c),p=Un()-u;return n(`Elapsed:: ${p}ms ${l}`),{close:()=>{const t=`DirectoryWatcher:: Close:: ${_(e,i,a,s,c,r)}`;n(t);const o=Un();d.close();const l=Un()-o;n(`Elapsed:: ${l}ms ${t}`)}}}}:o||i,s=2===t?function(e,t,i,o,a){return n(`ExcludeWatcher:: Added:: ${_(e,t,i,o,a,r)}`),{close:()=>n(`ExcludeWatcher:: Close:: ${_(e,t,i,o,a,r)}`)}}:N$;return{watchFile:c("watchFile"),watchDirectory:c("watchDirectory")};function c(t){return(n,r,i,o,c,l)=>{var _;return Bj(n,"watchFile"===t?null==o?void 0:o.excludeFiles:null==o?void 0:o.excludeDirectories,"boolean"==typeof e.useCaseSensitiveFileNames?e.useCaseSensitiveFileNames:e.useCaseSensitiveFileNames(),(null==(_=e.getCurrentDirectory)?void 0:_.call(e))||"")?s(n,i,o,c,l):a[t].call(void 0,n,r,i,o,c,l)}}function l(e){return(t,o,a,s,c,l)=>i[e].call(void 0,t,(...i)=>{const u=`${"watchFile"===e?"FileWatcher":"DirectoryWatcher"}:: Triggered with ${i[0]} ${void 0!==i[1]?i[1]:""}:: ${_(t,a,s,c,l,r)}`;n(u);const d=Un();o.call(void 0,...i);const p=Un()-d;n(`Elapsed:: ${p}ms ${u}`)},a,s,c,l)}function _(e,t,n,r,i,o){return`WatchInfo: ${e} ${t} ${JSON.stringify(n)} ${o?o(r,i):void 0===i?r:`${r} ${i}`}`}}function MU(e){const t=null==e?void 0:e.fallbackPolling;return{watchFile:void 0!==t?t:1}}function RU(e){e.watcher.close()}function BU(e,t,n="tsconfig.json"){return sa(e,e=>{const r=jo(e,n);return t(r)?r:void 0})}function JU(e,t){const n=Do(t);return Jo(go(e)?e:jo(n,e))}function zU(e,t,n){let r;return d(e,e=>{const i=Ro(e,t);if(i.pop(),!r)return void(r=i);const o=Math.min(r.length,i.length);for(let e=0;e{let o;try{tr("beforeIORead"),o=e(n),tr("afterIORead"),nr("I/O Read","beforeIORead","afterIORead")}catch(e){i&&i(e.message),o=""}return void 0!==o?eO(n,o,r,t):void 0}}function VU(e,t,n){return(r,i,o,a)=>{try{tr("beforeIOWrite"),tv(r,i,o,e,t,n),tr("afterIOWrite"),nr("I/O Write","beforeIOWrite","afterIOWrite")}catch(e){a&&a(e.message)}}}function WU(e,t,n=so){const r=new Map,i=Wt(n.useCaseSensitiveFileNames);function o(){return Do(Jo(n.getExecutingFilePath()))}const a=Pb(e),s=n.realpath&&(e=>n.realpath(e)),c={getSourceFile:UU(e=>c.readFile(e),t),getDefaultLibLocation:o,getDefaultLibFileName:e=>jo(o(),Ds(e)),writeFile:VU((e,t,r)=>n.writeFile(e,t,r),e=>(c.createDirectory||n.createDirectory)(e),e=>{return t=e,!!r.has(t)||!!(c.directoryExists||n.directoryExists)(t)&&(r.set(t,!0),!0);var t}),getCurrentDirectory:dt(()=>n.getCurrentDirectory()),useCaseSensitiveFileNames:()=>n.useCaseSensitiveFileNames,getCanonicalFileName:i,getNewLine:()=>a,fileExists:e=>n.fileExists(e),readFile:e=>n.readFile(e),trace:e=>n.write(e+a),directoryExists:e=>n.directoryExists(e),getEnvironmentVariable:e=>n.getEnvironmentVariable?n.getEnvironmentVariable(e):"",getDirectories:e=>n.getDirectories(e),realpath:s,readDirectory:(e,t,r,i,o)=>n.readDirectory(e,t,r,i,o),createDirectory:e=>n.createDirectory(e),createHash:We(n,n.createHash)};return c}function $U(e,t,n){const r=e.readFile,i=e.fileExists,o=e.directoryExists,a=e.createDirectory,s=e.writeFile,c=new Map,l=new Map,_=new Map,u=new Map,d=(t,n)=>{const i=r.call(e,n);return c.set(t,void 0!==i&&i),i};e.readFile=n=>{const i=t(n),o=c.get(i);return void 0!==o?!1!==o?o:void 0:ko(n,".json")||Hq(n)?d(i,n):r.call(e,n)};const p=n?(e,r,i,o)=>{const a=t(e),s="object"==typeof r?r.impliedNodeFormat:void 0,c=u.get(s),l=null==c?void 0:c.get(a);if(l)return l;const _=n(e,r,i,o);return _&&(uO(e)||ko(e,".json"))&&u.set(s,(c||new Map).set(a,_)),_}:void 0;return e.fileExists=n=>{const r=t(n),o=l.get(r);if(void 0!==o)return o;const a=i.call(e,n);return l.set(r,!!a),a},s&&(e.writeFile=(n,r,...i)=>{const o=t(n);l.delete(o);const a=c.get(o);void 0!==a&&a!==r?(c.delete(o),u.forEach(e=>e.delete(o))):p&&u.forEach(e=>{const t=e.get(o);t&&t.text!==r&&e.delete(o)}),s.call(e,n,r,...i)}),o&&(e.directoryExists=n=>{const r=t(n),i=_.get(r);if(void 0!==i)return i;const a=o.call(e,n);return _.set(r,!!a),a},a&&(e.createDirectory=n=>{const r=t(n);_.delete(r),a.call(e,n)})),{originalReadFile:r,originalFileExists:i,originalDirectoryExists:o,originalCreateDirectory:a,originalWriteFile:s,getSourceFileWithCache:p,readFileWithCache:e=>{const n=t(e),r=c.get(n);return void 0!==r?!1!==r?r:void 0:d(n,e)}}}function HU(e,t,n){let r;return r=se(r,e.getConfigFileParsingDiagnostics()),r=se(r,e.getOptionsDiagnostics(n)),r=se(r,e.getSyntacticDiagnostics(t,n)),r=se(r,e.getGlobalDiagnostics(n)),r=se(r,e.getSemanticDiagnostics(t,n)),Dk(e.getCompilerOptions())&&(r=se(r,e.getDeclarationDiagnostics(t,n))),ws(r||l)}function KU(e,t){let n="";for(const r of e)n+=GU(r,t);return n}function GU(e,t){const n=`${ci(e)} TS${e.code}: ${cV(e.messageText,t.getNewLine())}${t.getNewLine()}`;if(e.file){const{line:r,character:i}=za(e.file,e.start);return`${ia(e.file.fileName,t.getCurrentDirectory(),e=>t.getCanonicalFileName(e))}(${r+1},${i+1}): `+n}return n}var XU=(e=>(e.Grey="",e.Red="",e.Yellow="",e.Blue="",e.Cyan="",e))(XU||{}),QU="",YU=" ",ZU="",eV="...",tV=" ",nV=" ";function rV(e){switch(e){case 1:return"";case 0:return"";case 2:return un.fail("Should never get an Info diagnostic on the command line.");case 3:return""}}function iV(e,t){return t+e+ZU}function oV(e,t,n,r,i,o){const{line:a,character:s}=za(e,t),{line:c,character:l}=za(e,t+n),_=za(e,e.text.length).line,u=c-a>=4;let d=(c+1+"").length;u&&(d=Math.max(eV.length,d));let p="";for(let t=a;t<=c;t++){p+=o.getNewLine(),u&&a+1n.getCanonicalFileName(e)):e.fileName,""),a+=":",a+=r(`${i+1}`,""),a+=":",a+=r(`${o+1}`,""),a}function sV(e,t){let n="";for(const r of e){if(r.file){const{file:e,start:i}=r;n+=aV(e,i,t),n+=" - "}if(n+=iV(ci(r),rV(r.category)),n+=iV(` TS${r.code}: `,""),n+=cV(r.messageText,t.getNewLine()),r.file&&r.code!==_a.File_appears_to_be_binary.code&&(n+=t.getNewLine(),n+=oV(r.file,r.start,r.length,"",rV(r.category),t)),r.relatedInformation){n+=t.getNewLine();for(const{file:e,start:i,length:o,messageText:a}of r.relatedInformation)e&&(n+=t.getNewLine(),n+=tV+aV(e,i,t),n+=oV(e,i,o,nV,"",t)),n+=t.getNewLine(),n+=nV+cV(a,t.getNewLine())}n+=t.getNewLine()}return n}function cV(e,t,n=0){if(Ze(e))return e;if(void 0===e)return"";let r="";if(n){r+=t;for(let e=0;edV(t,e,n)};function vV(e,t,n,r,i){return{nameAndMode:yV,resolve:(o,a)=>MM(o,e,n,r,i,t,a)}}function bV(e){return Ze(e)?e:e.fileName}var xV={getName:bV,getMode:(e,t,n)=>lV(e,t&&BV(t,n))};function kV(e,t,n,r,i){return{nameAndMode:xV,resolve:(o,a)=>gM(o,e,n,r,t,i,a)}}function SV(e,t,n,r,i,o,a,s){if(0===e.length)return l;const c=[],_=new Map,u=s(t,n,r,o,a);for(const t of e){const e=u.nameAndMode.getName(t),o=u.nameAndMode.getMode(t,i,(null==n?void 0:n.commandLine.options)||r),a=NM(e,o);let s=_.get(a);s||_.set(a,s=u.resolve(e,o)),c.push(s)}return c}var TV="__inferred type names__.ts";function CV(e,t,n){return jo(e.configFilePath?Do(e.configFilePath):t,`__lib_node_modules_lookup_${n}__.ts`)}function wV(e){const t=e.split(".");let n=t[1],r=2;for(;t[r]&&"d"!==t[r];)n+=(2===r?"/":"-")+t[r],r++;return"@typescript/lib-"+n}function NV(e){switch(null==e?void 0:e.kind){case 3:case 4:case 5:case 7:return!0;default:return!1}}function DV(e){return void 0!==e.pos}function FV(e,t){var n,r,i,o;const a=un.checkDefined(e.getSourceFileByPath(t.file)),{kind:s,index:c}=t;let l,_,u;switch(s){case 3:const t=HV(a,c);if(u=null==(r=null==(n=e.getResolvedModuleFromModuleSpecifier(t,a))?void 0:n.resolvedModule)?void 0:r.packageId,-1===t.pos)return{file:a,packageId:u,text:t.text};l=Qa(a.text,t.pos),_=t.end;break;case 4:({pos:l,end:_}=a.referencedFiles[c]);break;case 5:({pos:l,end:_}=a.typeReferenceDirectives[c]),u=null==(o=null==(i=e.getResolvedTypeReferenceDirectiveFromTypeReferenceDirective(a.typeReferenceDirectives[c],a))?void 0:i.resolvedTypeReferenceDirective)?void 0:o.packageId;break;case 7:({pos:l,end:_}=a.libReferenceDirectives[c]);break;default:return un.assertNever(s)}return{file:a,pos:l,end:_,packageId:u}}function EV(e,t,n,r,i,o,a,s,c,l){if(!e||(null==s?void 0:s()))return!1;if(!te(e.getRootFileNames(),t))return!1;let _;if(!te(e.getProjectReferences(),l,function(t,n,r){return cd(t,n)&&f(e.getResolvedProjectReferences()[r],t)}))return!1;if(e.getSourceFiles().some(function(e){return!function(e){return e.version===r(e.resolvedPath,e.fileName)}(e)||o(e.path)}))return!1;const u=e.getMissingFilePaths();if(u&&rd(u,i))return!1;const p=e.getCompilerOptions();return!(!_x(p,n)||e.resolvedLibReferences&&rd(e.resolvedLibReferences,(e,t)=>a(t))||p.configFile&&n.configFile&&p.configFile.text!==n.configFile.text);function f(e,t){if(e){if(T(_,e))return!0;const n=VV(t),r=c(n);return!!r&&e.commandLine.options.configFile===r.options.configFile&&!!te(e.commandLine.fileNames,r.fileNames)&&((_||(_=[])).push(e),!d(e.references,(t,n)=>!f(t,e.commandLine.projectReferences[n])))}const n=VV(t);return!c(n)}}function PV(e){return e.options.configFile?[...e.options.configFile.parseDiagnostics,...e.errors]:e.errors}function AV(e,t,n,r){const i=IV(e,t,n,r);return"object"==typeof i?i.impliedNodeFormat:i}function IV(e,t,n,r){const i=bk(r),o=3<=i&&i<=99||GM(e);return So(e,[".d.mts",".mts",".mjs"])?99:So(e,[".d.cts",".cts",".cjs"])?1:o&&So(e,[".d.ts",".ts",".tsx",".js",".jsx"])?function(){const i=cR(t,n,r),o=[];i.failedLookupLocations=o,i.affectingLocations=o;const a=lR(Do(e),i);return{impliedNodeFormat:"module"===(null==a?void 0:a.contents.packageJsonContent.type)?99:1,packageJsonLocations:o,packageJsonScope:a}}():void 0}var OV=new Set([_a.Cannot_redeclare_block_scoped_variable_0.code,_a.A_module_cannot_have_multiple_default_exports.code,_a.Another_export_default_is_here.code,_a.The_first_export_default_is_here.code,_a.Identifier_expected_0_is_a_reserved_word_at_the_top_level_of_a_module.code,_a.Identifier_expected_0_is_a_reserved_word_in_strict_mode_Modules_are_automatically_in_strict_mode.code,_a.Identifier_expected_0_is_a_reserved_word_that_cannot_be_used_here.code,_a.constructor_is_a_reserved_word.code,_a.delete_cannot_be_called_on_an_identifier_in_strict_mode.code,_a.Code_contained_in_a_class_is_evaluated_in_JavaScript_s_strict_mode_which_does_not_allow_this_use_of_0_For_more_information_see_https_Colon_Slash_Slashdeveloper_mozilla_org_Slashen_US_Slashdocs_SlashWeb_SlashJavaScript_SlashReference_SlashStrict_mode.code,_a.Invalid_use_of_0_Modules_are_automatically_in_strict_mode.code,_a.Invalid_use_of_0_in_strict_mode.code,_a.A_label_is_not_allowed_here.code,_a.with_statements_are_not_allowed_in_strict_mode.code,_a.A_break_statement_can_only_be_used_within_an_enclosing_iteration_or_switch_statement.code,_a.A_break_statement_can_only_jump_to_a_label_of_an_enclosing_statement.code,_a.A_class_declaration_without_the_default_modifier_must_have_a_name.code,_a.A_class_member_cannot_have_the_0_keyword.code,_a.A_comma_expression_is_not_allowed_in_a_computed_property_name.code,_a.A_continue_statement_can_only_be_used_within_an_enclosing_iteration_statement.code,_a.A_continue_statement_can_only_jump_to_a_label_of_an_enclosing_iteration_statement.code,_a.A_continue_statement_can_only_jump_to_a_label_of_an_enclosing_iteration_statement.code,_a.A_default_clause_cannot_appear_more_than_once_in_a_switch_statement.code,_a.A_default_export_must_be_at_the_top_level_of_a_file_or_module_declaration.code,_a.A_definite_assignment_assertion_is_not_permitted_in_this_context.code,_a.A_destructuring_declaration_must_have_an_initializer.code,_a.A_get_accessor_cannot_have_parameters.code,_a.A_rest_element_cannot_contain_a_binding_pattern.code,_a.A_rest_element_cannot_have_a_property_name.code,_a.A_rest_element_cannot_have_an_initializer.code,_a.A_rest_element_must_be_last_in_a_destructuring_pattern.code,_a.A_rest_parameter_cannot_have_an_initializer.code,_a.A_rest_parameter_must_be_last_in_a_parameter_list.code,_a.A_rest_parameter_or_binding_pattern_may_not_have_a_trailing_comma.code,_a.A_return_statement_cannot_be_used_inside_a_class_static_block.code,_a.A_set_accessor_cannot_have_rest_parameter.code,_a.A_set_accessor_must_have_exactly_one_parameter.code,_a.An_export_declaration_can_only_be_used_at_the_top_level_of_a_module.code,_a.An_export_declaration_cannot_have_modifiers.code,_a.An_import_declaration_can_only_be_used_at_the_top_level_of_a_module.code,_a.An_import_declaration_cannot_have_modifiers.code,_a.An_object_member_cannot_be_declared_optional.code,_a.Argument_of_dynamic_import_cannot_be_spread_element.code,_a.Cannot_assign_to_private_method_0_Private_methods_are_not_writable.code,_a.Cannot_redeclare_identifier_0_in_catch_clause.code,_a.Catch_clause_variable_cannot_have_an_initializer.code,_a.Class_decorators_can_t_be_used_with_static_private_identifier_Consider_removing_the_experimental_decorator.code,_a.Classes_can_only_extend_a_single_class.code,_a.Classes_may_not_have_a_field_named_constructor.code,_a.Did_you_mean_to_use_a_Colon_An_can_only_follow_a_property_name_when_the_containing_object_literal_is_part_of_a_destructuring_pattern.code,_a.Duplicate_label_0.code,_a.Dynamic_imports_can_only_accept_a_module_specifier_and_an_optional_set_of_attributes_as_arguments.code,_a.for_await_loops_cannot_be_used_inside_a_class_static_block.code,_a.JSX_attributes_must_only_be_assigned_a_non_empty_expression.code,_a.JSX_elements_cannot_have_multiple_attributes_with_the_same_name.code,_a.JSX_expressions_may_not_use_the_comma_operator_Did_you_mean_to_write_an_array.code,_a.JSX_property_access_expressions_cannot_include_JSX_namespace_names.code,_a.Jump_target_cannot_cross_function_boundary.code,_a.Line_terminator_not_permitted_before_arrow.code,_a.Modifiers_cannot_appear_here.code,_a.Only_a_single_variable_declaration_is_allowed_in_a_for_in_statement.code,_a.Only_a_single_variable_declaration_is_allowed_in_a_for_of_statement.code,_a.Private_identifiers_are_not_allowed_outside_class_bodies.code,_a.Private_identifiers_are_only_allowed_in_class_bodies_and_may_only_be_used_as_part_of_a_class_member_declaration_property_access_or_on_the_left_hand_side_of_an_in_expression.code,_a.Property_0_is_not_accessible_outside_class_1_because_it_has_a_private_identifier.code,_a.Tagged_template_expressions_are_not_permitted_in_an_optional_chain.code,_a.The_left_hand_side_of_a_for_of_statement_may_not_be_async.code,_a.The_variable_declaration_of_a_for_in_statement_cannot_have_an_initializer.code,_a.The_variable_declaration_of_a_for_of_statement_cannot_have_an_initializer.code,_a.Trailing_comma_not_allowed.code,_a.Variable_declaration_list_cannot_be_empty.code,_a._0_and_1_operations_cannot_be_mixed_without_parentheses.code,_a._0_expected.code,_a._0_is_not_a_valid_meta_property_for_keyword_1_Did_you_mean_2.code,_a._0_list_cannot_be_empty.code,_a._0_modifier_already_seen.code,_a._0_modifier_cannot_appear_on_a_constructor_declaration.code,_a._0_modifier_cannot_appear_on_a_module_or_namespace_element.code,_a._0_modifier_cannot_appear_on_a_parameter.code,_a._0_modifier_cannot_appear_on_class_elements_of_this_kind.code,_a._0_modifier_cannot_be_used_here.code,_a._0_modifier_must_precede_1_modifier.code,_a._0_declarations_can_only_be_declared_inside_a_block.code,_a._0_declarations_must_be_initialized.code,_a.extends_clause_already_seen.code,_a.let_is_not_allowed_to_be_used_as_a_name_in_let_or_const_declarations.code,_a.Class_constructor_may_not_be_a_generator.code,_a.Class_constructor_may_not_be_an_accessor.code,_a.await_expressions_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules.code,_a.await_using_statements_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules.code,_a.Private_field_0_must_be_declared_in_an_enclosing_class.code,_a.This_condition_will_always_return_0_since_JavaScript_compares_objects_by_reference_not_value.code]);function LV(e,t,n,r,i){var o,s,c,_,u,p,f,g,h,y,v,x,S,C,w,D;let F=Qe(e)?function(e,t,n,r,i){return{rootNames:e,options:t,host:n,oldProgram:r,configFileParsingDiagnostics:i,typeScriptVersion:void 0}}(e,t,n,r,i):e;const{rootNames:E,options:P,configFileParsingDiagnostics:A,projectReferences:L,typeScriptVersion:j,host:M}=F;let{oldProgram:R}=F;F=void 0,e=void 0;for(const e of VO)if(De(P,e.name)&&"string"==typeof P[e.name])throw new Error(`${e.name} is a string value; tsconfig JSON must be parsed with parseJsonSourceFileConfigFileContent or getParsedCommandLineOfConfigFile before passing to createProgram`);const J=dt(()=>An("ignoreDeprecations",_a.Invalid_value_for_ignoreDeprecations));let z,q,U,V,W,H,G,X,Q;const Y=KV(jn);let Z,ee,ne,re,oe,ae,se,ce,le;const ue="number"==typeof P.maxNodeModuleJsDepth?P.maxNodeModuleJsDepth:0;let de=0;const pe=new Map,fe=new Map;null==(o=Hn)||o.push(Hn.Phase.Program,"createProgram",{configFilePath:P.configFilePath,rootDir:P.rootDir},!0),tr("beforeProgram");const me=M||qU(P),ge=UV(me);let he=P.noLib;const ye=dt(()=>me.getDefaultLibFileName(P)),ve=me.getDefaultLibLocation?me.getDefaultLibLocation():Do(ye());let be=!1;const xe=me.getCurrentDirectory(),ke=AS(P),Se=IS(P,ke),Te=new Map;let Ce,we,Ne,Fe;const Ee=me.hasInvalidatedResolutions||it;let Pe;if(me.resolveModuleNameLiterals?(Fe=me.resolveModuleNameLiterals.bind(me),Ne=null==(s=me.getModuleResolutionCache)?void 0:s.call(me)):me.resolveModuleNames?(Fe=(e,t,n,r,i,o)=>me.resolveModuleNames(e.map(hV),t,null==o?void 0:o.map(hV),n,r,i).map(e=>e?void 0!==e.extension?{resolvedModule:e}:{resolvedModule:{...e,extension:ZS(e.resolvedFileName)}}:gV),Ne=null==(c=me.getModuleResolutionCache)?void 0:c.call(me)):(Ne=AM(xe,Sn,P),Fe=(e,t,n,r,i)=>SV(e,t,n,r,i,me,Ne,vV)),me.resolveTypeReferenceDirectiveReferences)Pe=me.resolveTypeReferenceDirectiveReferences.bind(me);else if(me.resolveTypeReferenceDirectives)Pe=(e,t,n,r,i)=>me.resolveTypeReferenceDirectives(e.map(bV),t,n,r,null==i?void 0:i.impliedNodeFormat).map(e=>({resolvedTypeReferenceDirective:e}));else{const e=IM(xe,Sn,void 0,null==Ne?void 0:Ne.getPackageJsonInfoCache(),null==Ne?void 0:Ne.optionsToRedirectsKey);Pe=(t,n,r,i,o)=>SV(t,n,r,i,o,me,e,kV)}const Ae=me.hasInvalidatedLibResolutions||it;let Ie;if(me.resolveLibrary)Ie=me.resolveLibrary.bind(me);else{const e=AM(xe,Sn,P,null==Ne?void 0:Ne.getPackageJsonInfoCache());Ie=(t,n,r)=>LM(t,n,r,me,e)}const Oe=new Map;let Le,je=new Map,Me=$e();const Re=new Map;let Be=new Map;const Je=me.useCaseSensitiveFileNames()?new Map:void 0;let ze,qe,Ue,Ve;const He=!!(null==(_=me.useSourceOfProjectReferenceRedirect)?void 0:_.call(me))&&!P.disableSourceOfProjectReferenceRedirect,{onProgramCreateComplete:Ke,fileExists:Ge,directoryExists:Xe}=function(e){let t;const n=e.compilerHost.fileExists,r=e.compilerHost.directoryExists,i=e.compilerHost.getDirectories,o=e.compilerHost.realpath;if(!e.useSourceOfProjectReferenceRedirect)return{onProgramCreateComplete:rt,fileExists:s};let a;return e.compilerHost.fileExists=s,r&&(a=e.compilerHost.directoryExists=n=>r.call(e.compilerHost,n)?(function(t){var n;if(!e.getResolvedProjectReferences()||IT(t))return;if(!o||!t.includes(KM))return;const r=e.getSymlinkCache(),i=Wo(e.toPath(t));if(null==(n=r.getSymlinkedDirectories())?void 0:n.has(i))return;const a=Jo(o.call(e.compilerHost,t));let s;a!==t&&(s=Wo(e.toPath(a)))!==i?r.setSymlinkedDirectory(t,{real:Wo(a),realPath:s}):r.setSymlinkedDirectory(i,!1)}(n),!0):!!e.getResolvedProjectReferences()&&(t||(t=new Set,e.forEachResolvedProjectReference(n=>{const r=n.commandLine.options.outFile;if(r)t.add(Do(e.toPath(r)));else{const r=n.commandLine.options.declarationDir||n.commandLine.options.outDir;r&&t.add(e.toPath(r))}})),_(n,!1))),i&&(e.compilerHost.getDirectories=t=>!e.getResolvedProjectReferences()||r&&r.call(e.compilerHost,t)?i.call(e.compilerHost,t):[]),o&&(e.compilerHost.realpath=t=>{var n;return(null==(n=e.getSymlinkCache().getSymlinkedFiles())?void 0:n.get(e.toPath(t)))||o.call(e.compilerHost,t)}),{onProgramCreateComplete:function(){e.compilerHost.fileExists=n,e.compilerHost.directoryExists=r,e.compilerHost.getDirectories=i},fileExists:s,directoryExists:a};function s(t){return!!n.call(e.compilerHost,t)||!!e.getResolvedProjectReferences()&&!!uO(t)&&_(t,!0)}function c(t){const r=e.getRedirectFromOutput(e.toPath(t));return void 0!==r?!Ze(r.source)||n.call(e.compilerHost,r.source):void 0}function l(n){const r=e.toPath(n),i=`${r}${lo}`;return id(t,e=>r===e||Gt(e,i)||Gt(r,`${e}/`))}function _(t,n){var r;const i=n?c:l,o=i(t);if(void 0!==o)return o;const a=e.getSymlinkCache(),s=a.getSymlinkedDirectories();if(!s)return!1;const _=e.toPath(t);return!!_.includes(KM)&&(!(!n||!(null==(r=a.getSymlinkedFiles())?void 0:r.has(_)))||m(s.entries(),([r,o])=>{if(!o||!Gt(_,r))return;const s=i(_.replace(r,o.realPath));if(n&&s){const n=Bo(t,e.compilerHost.getCurrentDirectory());a.setSymlinkedFile(_,`${o.real}${n.replace(new RegExp(r,"i"),"")}`)}return s})||!1)}}({compilerHost:me,getSymlinkCache:zn,useSourceOfProjectReferenceRedirect:He,toPath:Tt,getResolvedProjectReferences:Pt,getRedirectFromOutput:dn,forEachResolvedProjectReference:_n}),Ye=me.readFile.bind(me);null==(u=Hn)||u.push(Hn.Phase.Program,"shouldProgramCreateNewSourceFiles",{hasOldProgram:!!R});const et=function(e,t){return!!e&&td(e.getCompilerOptions(),t,BO)}(R,P);let nt;if(null==(p=Hn)||p.pop(),null==(f=Hn)||f.push(Hn.Phase.Program,"tryReuseStructureFromOldProgram",{}),nt=function(){var e;if(!R)return 0;const t=R.getCompilerOptions();if(Zu(t,P))return 0;if(!te(R.getRootFileNames(),E))return 0;if(OC(R.getProjectReferences(),R.getResolvedProjectReferences(),(e,t,n)=>{const r=Cn((t?t.commandLine.projectReferences:L)[n]);return e?!r||r.sourceFile!==e.sourceFile||!te(e.commandLine.fileNames,r.commandLine.fileNames):void 0!==r},(e,t)=>!te(e,t?fn(t.sourceFile.path).commandLine.projectReferences:L,cd)))return 0;L&&(ze=L.map(Cn));const n=[],r=[];if(nt=2,rd(R.getMissingFilePaths(),e=>me.fileExists(e)))return 0;const i=R.getSourceFiles();let o;var a;(a=o||(o={}))[a.Exists=0]="Exists",a[a.Modified=1]="Modified";const s=new Map;for(const t of i){const i=on(t.fileName,Ne,me,P);let o,a=me.getSourceFileByPath?me.getSourceFileByPath(t.fileName,t.resolvedPath,i,void 0,et):me.getSourceFile(t.fileName,i,void 0,et);if(!a)return 0;if(a.packageJsonLocations=(null==(e=i.packageJsonLocations)?void 0:e.length)?i.packageJsonLocations:void 0,a.packageJsonScope=i.packageJsonScope,un.assert(!a.redirectInfo,"Host should not return a redirect source file from `getSourceFile`"),t.redirectInfo){if(a!==t.redirectInfo.unredirected)return 0;o=!1,a=t}else if(R.redirectTargetsMap.has(t.path)){if(a!==t)return 0;o=!1}else o=a!==t;a.path=t.path,a.originalFileName=t.originalFileName,a.resolvedPath=t.resolvedPath,a.fileName=t.fileName;const c=R.sourceFileToPackageName.get(t.path);if(void 0!==c){const e=s.get(c),t=o?1:0;if(void 0!==e&&1===t||1===e)return 0;s.set(c,t)}o?(t.impliedNodeFormat!==a.impliedNodeFormat?nt=1:te(t.libReferenceDirectives,a.libReferenceDirectives,Ht)?t.hasNoDefaultLib!==a.hasNoDefaultLib?nt=1:te(t.referencedFiles,a.referencedFiles,Ht)?(Yt(a),te(t.imports,a.imports,Kt)&&te(t.moduleAugmentations,a.moduleAugmentations,Kt)?(12582912&t.flags)!=(12582912&a.flags)?nt=1:te(t.typeReferenceDirectives,a.typeReferenceDirectives,Ht)||(nt=1):nt=1):nt=1:nt=1,r.push(a)):Ee(t.path)&&(nt=1,r.push(a)),n.push(a)}if(2!==nt)return nt;for(const e of r){const t=$V(e),n=wt(t,e);(ae??(ae=new Map)).set(e.path,n);const r=hn(e);hd(t,n,t=>R.getResolvedModule(e,t.text,pV(e,t,r)),ld)&&(nt=1);const i=e.typeReferenceDirectives,o=Nt(i,e);(ce??(ce=new Map)).set(e.path,o),hd(i,o,t=>R.getResolvedTypeReferenceDirective(e,bV(t),Kn(t,e)),gd)&&(nt=1)}if(2!==nt)return nt;if(ed(t,P))return 1;if(R.resolvedLibReferences&&rd(R.resolvedLibReferences,(e,t)=>xn(t).actual!==e.actual))return 1;if(me.hasChangedAutomaticTypeDirectiveNames){if(me.hasChangedAutomaticTypeDirectiveNames())return 1}else if(Z=bM(P,me),!te(R.getAutomaticTypeDirectiveNames(),Z))return 1;Be=R.getMissingFilePaths(),un.assert(n.length===R.getSourceFiles().length);for(const e of n)Re.set(e.path,e);R.getFilesByNameMap().forEach((e,t)=>{e?e.path!==t?Re.set(t,Re.get(e.path)):R.isSourceFileFromExternalLibrary(e)&&fe.set(e.path,!0):Re.set(t,e)});const c=t.configFile&&t.configFile===P.configFile||!t.configFile&&!P.configFile&&!td(t,P,OO);return Y.reuseStateFromOldProgram(R.getProgramDiagnosticsContainer(),c),be=c,U=n,Z=R.getAutomaticTypeDirectiveNames(),ee=R.getAutomaticTypeDirectiveResolutions(),je=R.sourceFileToPackageName,Me=R.redirectTargetsMap,Le=R.usesUriStyleNodeCoreModules,oe=R.resolvedModules,se=R.resolvedTypeReferenceDirectiveNames,ne=R.resolvedLibReferences,le=R.getCurrentPackagesMap(),2}(),null==(g=Hn)||g.pop(),2!==nt){if(z=[],q=[],L&&(ze||(ze=L.map(Cn)),E.length&&(null==ze||ze.forEach((e,t)=>{if(!e)return;const n=e.commandLine.options.outFile;if(He){if(n||0===vk(e.commandLine.options))for(const n of e.commandLine.fileNames)tn(n,{kind:1,index:t})}else if(n)tn($S(n,".d.ts"),{kind:2,index:t});else if(0===vk(e.commandLine.options)){const n=dt(()=>lU(e.commandLine,!me.useCaseSensitiveFileNames()));for(const r of e.commandLine.fileNames)uO(r)||ko(r,".json")||tn(tU(r,e.commandLine,!me.useCaseSensitiveFileNames(),n),{kind:2,index:t})}}))),null==(h=Hn)||h.push(Hn.Phase.Program,"processRootFiles",{count:E.length}),d(E,(e,t)=>$t(e,!1,!1,{kind:0,index:t})),null==(y=Hn)||y.pop(),Z??(Z=E.length?bM(P,me):l),ee=DM(),Z.length){null==(v=Hn)||v.push(Hn.Phase.Program,"processTypeReferences",{count:Z.length});const e=jo(P.configFilePath?Do(P.configFilePath):xe,TV),t=Nt(Z,e);for(let e=0;e{$t(vn(e),!0,!1,{kind:6,index:t})})}U=_e(z,function(e,t){return vt(St(e),St(t))}).concat(q),z=void 0,q=void 0,G=void 0}if(R&&me.onReleaseOldSourceFile){const e=R.getSourceFiles();for(const t of e){const e=jt(t.resolvedPath);(et||!e||e.impliedNodeFormat!==t.impliedNodeFormat||t.resolvedPath===t.path&&e.resolvedPath!==t.path)&&me.onReleaseOldSourceFile(t,R.getCompilerOptions(),!!jt(t.path),e)}me.getParsedCommandLine||R.forEachResolvedProjectReference(e=>{fn(e.sourceFile.path)||me.onReleaseOldSourceFile(e.sourceFile,R.getCompilerOptions(),!1,void 0)})}R&&me.onReleaseParsedCommandLine&&OC(R.getProjectReferences(),R.getResolvedProjectReferences(),(e,t,n)=>{const r=VV((null==t?void 0:t.commandLine.projectReferences[n])||R.getProjectReferences()[n]);(null==qe?void 0:qe.has(Tt(r)))||me.onReleaseParsedCommandLine(r,e,R.getCompilerOptions())}),R=void 0,re=void 0,ae=void 0,ce=void 0;const ot={getRootFileNames:()=>E,getSourceFile:Lt,getSourceFileByPath:jt,getSourceFiles:()=>U,getMissingFilePaths:()=>Be,getModuleResolutionCache:()=>Ne,getFilesByNameMap:()=>Re,getCompilerOptions:()=>P,getSyntacticDiagnostics:function(e,t){return Mt(e,Jt,t)},getOptionsDiagnostics:function(){return ws(K(Y.getCombinedDiagnostics(ot).getGlobalDiagnostics(),function(){if(!P.configFile)return l;let e=Y.getCombinedDiagnostics(ot).getDiagnostics(P.configFile.fileName);return _n(t=>{e=K(e,Y.getCombinedDiagnostics(ot).getDiagnostics(t.sourceFile.fileName))}),e}()))},getGlobalDiagnostics:function(){return E.length?ws(It().getGlobalDiagnostics().slice()):l},getSemanticDiagnostics:function(e,t,n){return Mt(e,(e,t)=>function(e,t,n){return K(qV(qt(e,t,n),P),Bt(e))}(e,t,n),t)},getCachedSemanticDiagnostics:function(e){return null==X?void 0:X.get(e.path)},getSuggestionDiagnostics:function(e,t){return zt(()=>It().getSuggestionDiagnostics(e,t))},getDeclarationDiagnostics:function(e,t){return Mt(e,Wt,t)},getBindAndCheckDiagnostics:function(e,t){return qt(e,t,void 0)},getProgramDiagnostics:Bt,getTypeChecker:It,getClassifiableNames:function(){var e;if(!H){It(),H=new Set;for(const t of U)null==(e=t.classifiableNames)||e.forEach(e=>H.add(e))}return H},getCommonSourceDirectory:Ct,emit:function(e,t,n,r,i,o,a){var s,c;null==(s=Hn)||s.push(Hn.Phase.Emit,"emit",{path:null==e?void 0:e.path},!0);const l=zt(()=>function(e,t,n,r,i,o,a,s){if(!a){const i=zV(e,t,n,r);if(i)return i}const c=It(),l=c.getEmitResolver(P.outFile?void 0:t,r,pU(i,a));tr("beforeEmit");const _=c.runWithCancellationToken(r,()=>fU(l,Ft(n),t,jq(P,o,i),i,!1,a,s));return tr("afterEmit"),nr("Emit","beforeEmit","afterEmit"),_}(ot,e,t,n,r,i,o,a));return null==(c=Hn)||c.pop(),l},getCurrentDirectory:()=>xe,getNodeCount:()=>It().getNodeCount(),getIdentifierCount:()=>It().getIdentifierCount(),getSymbolCount:()=>It().getSymbolCount(),getTypeCount:()=>It().getTypeCount(),getInstantiationCount:()=>It().getInstantiationCount(),getRelationCacheSizes:()=>It().getRelationCacheSizes(),getFileProcessingDiagnostics:()=>Y.getFileProcessingDiagnostics(),getAutomaticTypeDirectiveNames:()=>Z,getAutomaticTypeDirectiveResolutions:()=>ee,isSourceFileFromExternalLibrary:At,isSourceFileDefaultLibrary:function(e){if(!e.isDeclarationFile)return!1;if(e.hasNoDefaultLib)return!0;if(P.noLib)return!1;const t=me.useCaseSensitiveFileNames()?ht:gt;return P.lib?$(P.lib,n=>{const r=ne.get(n);return!!r&&t(e.fileName,r.actual)}):t(e.fileName,ye())},getModeForUsageLocation:qn,getEmitSyntaxForUsageLocation:function(e,t){return fV(e,t,hn(e))},getModeForResolutionAtIndex:Un,getSourceFileFromReference:function(e,t){return Zt(JU(t.fileName,e.fileName),Lt)},getLibFileFromReference:function(e){var t;const n=AC(e),r=n&&(null==(t=null==ne?void 0:ne.get(n))?void 0:t.actual);return void 0!==r?Lt(r):void 0},sourceFileToPackageName:je,redirectTargetsMap:Me,usesUriStyleNodeCoreModules:Le,resolvedModules:oe,resolvedTypeReferenceDirectiveNames:se,resolvedLibReferences:ne,getProgramDiagnosticsContainer:()=>Y,getResolvedModule:at,getResolvedModuleFromModuleSpecifier:function(e,t){return t??(t=vd(e)),un.assertIsDefined(t,"`moduleSpecifier` must have a `SourceFile` ancestor. Use `program.getResolvedModule` instead to provide the containing file and resolution mode."),at(t,e.text,qn(t,e))},getResolvedTypeReferenceDirective:ct,getResolvedTypeReferenceDirectiveFromTypeReferenceDirective:function(e,t){return ct(t,e.fileName,Kn(e,t))},forEachResolvedModule:lt,forEachResolvedTypeReferenceDirective:ut,getCurrentPackagesMap:()=>le,typesPackageExists:function(e){return ft().has(ER(e))},packageBundlesTypes:function(e){return!!ft().get(e)},isEmittedFile:function(e){if(P.noEmit)return!1;const t=Tt(e);if(jt(t))return!1;const n=P.outFile;if(n)return Jn(t,n)||Jn(t,US(n)+".d.ts");if(P.declarationDir&&ea(P.declarationDir,t,xe,!me.useCaseSensitiveFileNames()))return!0;if(P.outDir)return ea(P.outDir,t,xe,!me.useCaseSensitiveFileNames());if(So(t,wS)||uO(t)){const e=US(t);return!!jt(e+".ts")||!!jt(e+".tsx")}return!1},getConfigFileParsingDiagnostics:function(){return A||l},getProjectReferences:function(){return L},getResolvedProjectReferences:Pt,getRedirectFromSourceFile:ln,getResolvedProjectReferenceByPath:fn,forEachResolvedProjectReference:_n,isSourceOfProjectReferenceRedirect:pn,getRedirectFromOutput:dn,getCompilerOptionsForFile:hn,getDefaultResolutionModeForFile:Vn,getEmitModuleFormatOfFile:Wn,getImpliedNodeFormatForEmit:function(e){return RV(e,hn(e))},shouldTransformImportCall:$n,emitBuildInfo:function(e){var t,n;null==(t=Hn)||t.push(Hn.Phase.Emit,"emitBuildInfo",{},!0),tr("beforeEmit");const r=fU(hU,Ft(e),void 0,Lq,!1,!0);return tr("afterEmit"),nr("Emit","beforeEmit","afterEmit"),null==(n=Hn)||n.pop(),r},fileExists:Ge,readFile:Ye,directoryExists:Xe,getSymlinkCache:zn,realpath:null==(w=me.realpath)?void 0:w.bind(me),useCaseSensitiveFileNames:()=>me.useCaseSensitiveFileNames(),getCanonicalFileName:Sn,getFileIncludeReasons:()=>Y.getFileReasons(),structureIsReused:nt,writeFile:Et,getGlobalTypingsCacheLocation:We(me,me.getGlobalTypingsCacheLocation)};return Ke(),be||function(){P.strictPropertyInitialization&&!Jk(P,"strictNullChecks")&&Pn(_a.Option_0_cannot_be_specified_without_specifying_option_1,"strictPropertyInitialization","strictNullChecks"),P.exactOptionalPropertyTypes&&!Jk(P,"strictNullChecks")&&Pn(_a.Option_0_cannot_be_specified_without_specifying_option_1,"exactOptionalPropertyTypes","strictNullChecks"),(P.isolatedModules||P.verbatimModuleSyntax)&&P.outFile&&Pn(_a.Option_0_cannot_be_specified_with_option_1,"outFile",P.verbatimModuleSyntax?"verbatimModuleSyntax":"isolatedModules"),P.isolatedDeclarations&&(Ak(P)&&Pn(_a.Option_0_cannot_be_specified_with_option_1,"allowJs","isolatedDeclarations"),Dk(P)||Pn(_a.Option_0_cannot_be_specified_without_specifying_option_1_or_option_2,"isolatedDeclarations","declaration","composite")),P.inlineSourceMap&&(P.sourceMap&&Pn(_a.Option_0_cannot_be_specified_with_option_1,"sourceMap","inlineSourceMap"),P.mapRoot&&Pn(_a.Option_0_cannot_be_specified_with_option_1,"mapRoot","inlineSourceMap")),P.composite&&(!1===P.declaration&&Pn(_a.Composite_projects_may_not_disable_declaration_emit,"declaration"),!1===P.incremental&&Pn(_a.Composite_projects_may_not_disable_incremental_compilation,"declaration"));const e=P.outFile;if(P.tsBuildInfoFile||!P.incremental||e||P.configFilePath||Y.addConfigDiagnostic(Qx(_a.Option_incremental_can_only_be_specified_using_tsconfig_emitting_to_single_file_or_when_option_tsBuildInfoFile_is_specified)),wn("5.0","5.5",function(e,t,n,r,...i){if(n){const o=Zx(void 0,_a.Use_0_instead,n);On(!t,e,void 0,Zx(o,r,...i))}else On(!t,e,void 0,r,...i)},e=>{0===P.target&&e("target","ES3"),P.noImplicitUseStrict&&e("noImplicitUseStrict"),P.keyofStringsOnly&&e("keyofStringsOnly"),P.suppressExcessPropertyErrors&&e("suppressExcessPropertyErrors"),P.suppressImplicitAnyIndexErrors&&e("suppressImplicitAnyIndexErrors"),P.noStrictGenericChecks&&e("noStrictGenericChecks"),P.charset&&e("charset"),P.out&&e("out",void 0,"outFile"),P.importsNotUsedAsValues&&e("importsNotUsedAsValues",void 0,"verbatimModuleSyntax"),P.preserveValueImports&&e("preserveValueImports",void 0,"verbatimModuleSyntax")}),function(){const e=P.suppressOutputPathCheck?void 0:Gq(P);OC(L,ze,(t,n,r)=>{const i=(n?n.commandLine.projectReferences:L)[r],o=n&&n.sourceFile;if(function(e,t,n){wn("5.0","5.5",function(e,r,i,o,...a){In(t,n,o,...a)},t=>{e.prepend&&t("prepend")})}(i,o,r),!t)return void In(o,r,_a.File_0_not_found,i.path);const a=t.commandLine.options;a.composite&&!a.noEmit||(n?n.commandLine.fileNames:E).length&&(a.composite||In(o,r,_a.Referenced_project_0_must_have_setting_composite_Colon_true,i.path),a.noEmit&&In(o,r,_a.Referenced_project_0_may_not_disable_emit,i.path)),!n&&e&&e===Gq(a)&&(In(o,r,_a.Cannot_write_file_0_because_it_will_overwrite_tsbuildinfo_file_generated_by_referenced_project_1,e,i.path),Te.set(Tt(e),!0))})}(),P.composite){const e=new Set(E.map(Tt));for(const t of U)Xy(t,ot)&&!e.has(t.path)&&Y.addLazyConfigDiagnostic(t,_a.File_0_is_not_listed_within_the_file_list_of_project_1_Projects_must_list_all_files_or_use_an_include_pattern,t.fileName,P.configFilePath||"")}if(P.paths)for(const e in P.paths)if(De(P.paths,e))if(Xk(e)||Fn(!0,e,_a.Pattern_0_can_have_at_most_one_Asterisk_character,e),Qe(P.paths[e])){const t=P.paths[e].length;0===t&&Fn(!1,e,_a.Substitutions_for_pattern_0_shouldn_t_be_an_empty_array,e);for(let n=0;nrO(e)&&!e.isDeclarationFile);if(P.isolatedModules||P.verbatimModuleSyntax)0===P.module&&t<2&&P.isolatedModules&&Pn(_a.Option_isolatedModules_can_only_be_used_when_either_option_module_is_provided_or_option_target_is_ES2015_or_higher,"isolatedModules","target"),!1===P.preserveConstEnums&&Pn(_a.Option_preserveConstEnums_cannot_be_disabled_when_0_is_enabled,P.verbatimModuleSyntax?"verbatimModuleSyntax":"isolatedModules","preserveConstEnums");else if(n&&t<2&&0===P.module){const e=Qp(n,"boolean"==typeof n.externalModuleIndicator?n:n.externalModuleIndicator);Y.addConfigDiagnostic(Gx(n,e.start,e.length,_a.Cannot_use_imports_exports_or_module_augmentations_when_module_is_none))}if(e&&!P.emitDeclarationOnly)if(P.module&&2!==P.module&&4!==P.module)Pn(_a.Only_amd_and_system_modules_are_supported_alongside_0,"outFile","module");else if(void 0===P.module&&n){const e=Qp(n,"boolean"==typeof n.externalModuleIndicator?n:n.externalModuleIndicator);Y.addConfigDiagnostic(Gx(n,e.start,e.length,_a.Cannot_compile_modules_using_option_0_unless_the_module_flag_is_amd_or_system,"outFile"))}if(Nk(P)&&(1===bk(P)?Pn(_a.Option_resolveJsonModule_cannot_be_specified_when_moduleResolution_is_set_to_classic,"resolveJsonModule"):Lk(P)||Pn(_a.Option_resolveJsonModule_cannot_be_specified_when_module_is_set_to_none_system_or_umd,"resolveJsonModule","module")),P.outDir||P.rootDir||P.sourceRoot||P.mapRoot||Dk(P)&&P.declarationDir){const e=Ct();P.outDir&&""===e&&U.some(e=>No(e.fileName)>1)&&Pn(_a.Cannot_find_the_common_subdirectory_path_for_the_input_files,"outDir")}P.checkJs&&!Ak(P)&&Pn(_a.Option_0_cannot_be_specified_without_specifying_option_1,"checkJs","allowJs"),P.emitDeclarationOnly&&(Dk(P)||Pn(_a.Option_0_cannot_be_specified_without_specifying_option_1_or_option_2,"emitDeclarationOnly","declaration","composite")),P.emitDecoratorMetadata&&!P.experimentalDecorators&&Pn(_a.Option_0_cannot_be_specified_without_specifying_option_1,"emitDecoratorMetadata","experimentalDecorators"),P.jsxFactory?(P.reactNamespace&&Pn(_a.Option_0_cannot_be_specified_with_option_1,"reactNamespace","jsxFactory"),4!==P.jsx&&5!==P.jsx||Pn(_a.Option_0_cannot_be_specified_when_option_jsx_is_1,"jsxFactory",CO.get(""+P.jsx)),tO(P.jsxFactory,t)||An("jsxFactory",_a.Invalid_value_for_jsxFactory_0_is_not_a_valid_identifier_or_qualified_name,P.jsxFactory)):P.reactNamespace&&!ms(P.reactNamespace,t)&&An("reactNamespace",_a.Invalid_value_for_reactNamespace_0_is_not_a_valid_identifier,P.reactNamespace),P.jsxFragmentFactory&&(P.jsxFactory||Pn(_a.Option_0_cannot_be_specified_without_specifying_option_1,"jsxFragmentFactory","jsxFactory"),4!==P.jsx&&5!==P.jsx||Pn(_a.Option_0_cannot_be_specified_when_option_jsx_is_1,"jsxFragmentFactory",CO.get(""+P.jsx)),tO(P.jsxFragmentFactory,t)||An("jsxFragmentFactory",_a.Invalid_value_for_jsxFragmentFactory_0_is_not_a_valid_identifier_or_qualified_name,P.jsxFragmentFactory)),P.reactNamespace&&(4!==P.jsx&&5!==P.jsx||Pn(_a.Option_0_cannot_be_specified_when_option_jsx_is_1,"reactNamespace",CO.get(""+P.jsx))),P.jsxImportSource&&2===P.jsx&&Pn(_a.Option_0_cannot_be_specified_when_option_jsx_is_1,"jsxImportSource",CO.get(""+P.jsx));const r=vk(P);P.verbatimModuleSyntax&&(2!==r&&3!==r&&4!==r||Pn(_a.Option_verbatimModuleSyntax_cannot_be_used_when_module_is_set_to_UMD_AMD_or_System,"verbatimModuleSyntax")),P.allowImportingTsExtensions&&!(P.noEmit||P.emitDeclarationOnly||P.rewriteRelativeImportExtensions)&&An("allowImportingTsExtensions",_a.Option_allowImportingTsExtensions_can_only_be_used_when_either_noEmit_or_emitDeclarationOnly_is_set);const i=bk(P);if(P.resolvePackageJsonExports&&!Rk(i)&&Pn(_a.Option_0_can_only_be_used_when_moduleResolution_is_set_to_node16_nodenext_or_bundler,"resolvePackageJsonExports"),P.resolvePackageJsonImports&&!Rk(i)&&Pn(_a.Option_0_can_only_be_used_when_moduleResolution_is_set_to_node16_nodenext_or_bundler,"resolvePackageJsonImports"),P.customConditions&&!Rk(i)&&Pn(_a.Option_0_can_only_be_used_when_moduleResolution_is_set_to_node16_nodenext_or_bundler,"customConditions"),100!==i||Ok(r)||200===r||An("moduleResolution",_a.Option_0_can_only_be_used_when_module_is_set_to_preserve_or_to_es2015_or_later,"bundler"),fi[r]&&100<=r&&r<=199&&!(3<=i&&i<=99)){const e=fi[r],t=li[e]?e:"Node16";An("moduleResolution",_a.Option_moduleResolution_must_be_set_to_0_or_left_unspecified_when_option_module_is_set_to_1,t,e)}else if(li[i]&&3<=i&&i<=99&&!(100<=r&&r<=199)){const e=li[i];An("module",_a.Option_module_must_be_set_to_0_when_option_moduleResolution_is_set_to_1,e,e)}if(!P.noEmit&&!P.suppressOutputPathCheck){const e=Ft(),t=new Set;Kq(e,e=>{P.emitDeclarationOnly||o(e.jsFilePath,t),o(e.declarationFilePath,t)})}function o(e,t){if(e){const n=Tt(e);if(Re.has(n)){let t;P.configFilePath||(t=Zx(void 0,_a.Adding_a_tsconfig_json_file_will_help_organize_projects_that_contain_both_TypeScript_and_JavaScript_files_Learn_more_at_https_Colon_Slash_Slashaka_ms_Slashtsconfig)),t=Zx(t,_a.Cannot_write_file_0_because_it_would_overwrite_input_file,e),Bn(e,Yx(t))}const r=me.useCaseSensitiveFileNames()?n:_t(n);t.has(r)?Bn(e,Qx(_a.Cannot_write_file_0_because_it_would_be_overwritten_by_multiple_input_files,e)):t.add(r)}}}(),tr("afterProgram"),nr("Program","beforeProgram","afterProgram"),null==(D=Hn)||D.pop(),ot;function at(e,t,n){var r;return null==(r=null==oe?void 0:oe.get(e.path))?void 0:r.get(t,n)}function ct(e,t,n){var r;return null==(r=null==se?void 0:se.get(e.path))?void 0:r.get(t,n)}function lt(e,t){pt(oe,e,t)}function ut(e,t){pt(se,e,t)}function pt(e,t,n){var r;n?null==(r=null==e?void 0:e.get(n.path))||r.forEach((e,r,i)=>t(e,r,i,n.path)):null==e||e.forEach((e,n)=>e.forEach((e,r,i)=>t(e,r,i,n)))}function ft(){return le||(le=new Map,lt(({resolvedModule:e})=>{(null==e?void 0:e.packageId)&&le.set(e.packageId.name,".d.ts"===e.extension||!!le.get(e.packageId.name))}),le)}function mt(e){var t;(null==(t=e.resolutionDiagnostics)?void 0:t.length)&&Y.addFileProcessingDiagnostic({kind:2,diagnostics:e.resolutionDiagnostics})}function yt(e,t,n,r){if(me.resolveModuleNameLiterals||!me.resolveModuleNames)return mt(n);if(!Ne||Cs(t))return;const i=Do(Bo(e.originalFileName,xe)),o=kt(e),a=Ne.getFromNonRelativeNameCache(t,r,i,o);a&&mt(a)}function bt(e,t,n){var r,i;const o=Bo(t.originalFileName,xe),a=kt(t);null==(r=Hn)||r.push(Hn.Phase.Program,"resolveModuleNamesWorker",{containingFileName:o}),tr("beforeResolveModule");const s=Fe(e,o,a,P,t,n);return tr("afterResolveModule"),nr("ResolveModule","beforeResolveModule","afterResolveModule"),null==(i=Hn)||i.pop(),s}function xt(e,t,n){var r,i;const o=Ze(t)?void 0:t,a=Ze(t)?t:Bo(t.originalFileName,xe),s=o&&kt(o);null==(r=Hn)||r.push(Hn.Phase.Program,"resolveTypeReferenceDirectiveNamesWorker",{containingFileName:a}),tr("beforeResolveTypeReference");const c=Pe(e,a,s,P,o,n);return tr("afterResolveTypeReference"),nr("ResolveTypeReference","beforeResolveTypeReference","afterResolveTypeReference"),null==(i=Hn)||i.pop(),c}function kt(e){var t,n;const r=ln(e.originalFileName);if(r||!uO(e.originalFileName))return null==r?void 0:r.resolvedRef;const i=null==(t=dn(e.path))?void 0:t.resolvedRef;if(i)return i;if(!me.realpath||!P.preserveSymlinks||!e.originalFileName.includes(KM))return;const o=Tt(me.realpath(e.originalFileName));return o===e.path||null==(n=dn(o))?void 0:n.resolvedRef}function St(e){if(ea(ve,e.fileName,!1)){const t=Fo(e.fileName);if("lib.d.ts"===t||"lib.es6.d.ts"===t)return 0;const n=Rt(Xt(t,"lib."),".d.ts"),r=NO.indexOf(n);if(-1!==r)return r+1}return NO.length+2}function Tt(e){return Uo(e,xe,Sn)}function Ct(){let e=Y.getCommonSourceDirectory();if(void 0!==e)return e;const t=N(U,e=>Xy(e,ot));return e=cU(P,()=>B(t,e=>e.isDeclarationFile?void 0:e.fileName),xe,Sn,e=>function(e,t){let n=!0;const r=me.getCanonicalFileName(Bo(t,xe));for(const i of e)i.isDeclarationFile||0!==me.getCanonicalFileName(Bo(i.fileName,xe)).indexOf(r)&&(Y.addLazyConfigDiagnostic(i,_a.File_0_is_not_under_rootDir_1_rootDir_is_expected_to_contain_all_source_files,i.fileName,t),n=!1);return n}(t,e)),Y.setCommonSourceDirectory(e),e}function wt(e,t){return Dt({entries:e,containingFile:t,containingSourceFile:t,redirectedReference:kt(t),nameAndModeGetter:yV,resolutionWorker:bt,getResolutionFromOldProgram:(e,n)=>null==R?void 0:R.getResolvedModule(t,e,n),getResolved:_d,canReuseResolutionsInFile:()=>t===(null==R?void 0:R.getSourceFile(t.fileName))&&!Ee(t.path),resolveToOwnAmbientModule:!0})}function Nt(e,t){const n=Ze(t)?void 0:t;return Dt({entries:e,containingFile:t,containingSourceFile:n,redirectedReference:n&&kt(n),nameAndModeGetter:xV,resolutionWorker:xt,getResolutionFromOldProgram:(e,t)=>{var r;return n?null==R?void 0:R.getResolvedTypeReferenceDirective(n,e,t):null==(r=null==R?void 0:R.getAutomaticTypeDirectiveResolutions())?void 0:r.get(e,t)},getResolved:ud,canReuseResolutionsInFile:()=>n?n===(null==R?void 0:R.getSourceFile(n.fileName))&&!Ee(n.path):!Ee(Tt(t))})}function Dt({entries:e,containingFile:t,containingSourceFile:n,redirectedReference:r,nameAndModeGetter:i,resolutionWorker:o,getResolutionFromOldProgram:a,getResolved:s,canReuseResolutionsInFile:c,resolveToOwnAmbientModule:_}){if(!e.length)return l;if(!(0!==nt||_&&n.ambientModuleNames.length))return o(e,t,void 0);let u,d,p,f;const m=c();for(let c=0;cp[d[t]]=e),p):g}function Ft(e){return{getCanonicalFileName:Sn,getCommonSourceDirectory:ot.getCommonSourceDirectory,getCompilerOptions:ot.getCompilerOptions,getCurrentDirectory:()=>xe,getSourceFile:ot.getSourceFile,getSourceFileByPath:ot.getSourceFileByPath,getSourceFiles:ot.getSourceFiles,isSourceFileFromExternalLibrary:At,getRedirectFromSourceFile:ln,isSourceOfProjectReferenceRedirect:pn,getSymlinkCache:zn,writeFile:e||Et,isEmitBlocked:Ot,shouldTransformImportCall:$n,getEmitModuleFormatOfFile:Wn,getDefaultResolutionModeForFile:Vn,getModeForResolutionAtIndex:Un,readFile:e=>me.readFile(e),fileExists:e=>{const t=Tt(e);return!!jt(t)||!Be.has(t)&&me.fileExists(e)},realpath:We(me,me.realpath),useCaseSensitiveFileNames:()=>me.useCaseSensitiveFileNames(),getBuildInfo:()=>{var e;return null==(e=ot.getBuildInfo)?void 0:e.call(ot)},getSourceFileFromReference:(e,t)=>ot.getSourceFileFromReference(e,t),redirectTargetsMap:Me,getFileIncludeReasons:ot.getFileIncludeReasons,createHash:We(me,me.createHash),getModuleResolutionCache:()=>ot.getModuleResolutionCache(),trace:We(me,me.trace),getGlobalTypingsCacheLocation:ot.getGlobalTypingsCacheLocation}}function Et(e,t,n,r,i,o){me.writeFile(e,t,n,r,i,o)}function Pt(){return ze}function At(e){return!!fe.get(e.path)}function It(){return W||(W=nJ(ot))}function Ot(e){return Te.has(Tt(e))}function Lt(e){return jt(Tt(e))}function jt(e){return Re.get(e)||void 0}function Mt(e,t,n){return ws(e?t(e,n):O(ot.getSourceFiles(),e=>(n&&n.throwIfCancellationRequested(),t(e,n))))}function Bt(e){var t;if(_T(e,P,ot))return l;const n=Y.getCombinedDiagnostics(ot).getDiagnostics(e.fileName);return(null==(t=e.commentDirectives)?void 0:t.length)?Vt(e,e.commentDirectives,n).diagnostics:n}function Jt(e){return Fm(e)?(e.additionalSyntacticDiagnostics||(e.additionalSyntacticDiagnostics=function(e){return zt(()=>{const t=[];return n(e,e),QI(e,n,function(e,n){if($A(n)){const e=b(n.modifiers,CD);e&&t.push(i(e,_a.Decorators_are_not_valid_here))}else if(SI(n)&&n.modifiers){const e=k(n.modifiers,CD);if(e>=0)if(TD(n)&&!P.experimentalDecorators)t.push(i(n.modifiers[e],_a.Decorators_are_not_valid_here));else if(dE(n)){const r=k(n.modifiers,cD);if(r>=0){const o=k(n.modifiers,lD);if(e>r&&o>=0&&e=0&&e=0&&t.push(aT(i(n.modifiers[o],_a.Decorators_may_not_appear_after_export_or_export_default_if_they_also_appear_before_export),i(n.modifiers[e],_a.Decorator_used_before_export_here)))}}}}switch(n.kind){case 264:case 232:case 175:case 177:case 178:case 179:case 219:case 263:case 220:if(e===n.typeParameters)return t.push(r(e,_a.Type_parameter_declarations_can_only_be_used_in_TypeScript_files)),"skip";case 244:if(e===n.modifiers)return function(e,n){for(const r of e)switch(r.kind){case 87:if(n)continue;case 125:case 123:case 124:case 148:case 138:case 128:case 164:case 103:case 147:t.push(i(r,_a.The_0_modifier_can_only_be_used_in_TypeScript_files,Fa(r.kind)))}}(n.modifiers,244===n.kind),"skip";break;case 173:if(e===n.modifiers){for(const n of e)Zl(n)&&126!==n.kind&&129!==n.kind&&t.push(i(n,_a.The_0_modifier_can_only_be_used_in_TypeScript_files,Fa(n.kind)));return"skip"}break;case 170:if(e===n.modifiers&&$(e,Zl))return t.push(r(e,_a.Parameter_modifiers_can_only_be_used_in_TypeScript_files)),"skip";break;case 214:case 215:case 234:case 286:case 287:case 216:if(e===n.typeArguments)return t.push(r(e,_a.Type_arguments_can_only_be_used_in_TypeScript_files)),"skip"}}),t;function n(e,n){switch(n.kind){case 170:case 173:case 175:if(n.questionToken===e)return t.push(i(e,_a.The_0_modifier_can_only_be_used_in_TypeScript_files,"?")),"skip";case 174:case 177:case 178:case 179:case 219:case 263:case 220:case 261:if(n.type===e)return t.push(i(e,_a.Type_annotations_can_only_be_used_in_TypeScript_files)),"skip"}switch(e.kind){case 274:if(e.isTypeOnly)return t.push(i(n,_a._0_declarations_can_only_be_used_in_TypeScript_files,"import type")),"skip";break;case 279:if(e.isTypeOnly)return t.push(i(e,_a._0_declarations_can_only_be_used_in_TypeScript_files,"export type")),"skip";break;case 277:case 282:if(e.isTypeOnly)return t.push(i(e,_a._0_declarations_can_only_be_used_in_TypeScript_files,PE(e)?"import...type":"export...type")),"skip";break;case 272:return t.push(i(e,_a.import_can_only_be_used_in_TypeScript_files)),"skip";case 278:if(e.isExportEquals)return t.push(i(e,_a.export_can_only_be_used_in_TypeScript_files)),"skip";break;case 299:if(119===e.token)return t.push(i(e,_a.implements_clauses_can_only_be_used_in_TypeScript_files)),"skip";break;case 265:const r=Fa(120);return un.assertIsDefined(r),t.push(i(e,_a._0_declarations_can_only_be_used_in_TypeScript_files,r)),"skip";case 268:const o=32&e.flags?Fa(145):Fa(144);return un.assertIsDefined(o),t.push(i(e,_a._0_declarations_can_only_be_used_in_TypeScript_files,o)),"skip";case 266:return t.push(i(e,_a.Type_aliases_can_only_be_used_in_TypeScript_files)),"skip";case 177:case 175:case 263:return e.body?void 0:(t.push(i(e,_a.Signature_declarations_can_only_be_used_in_TypeScript_files)),"skip");case 267:const a=un.checkDefined(Fa(94));return t.push(i(e,_a._0_declarations_can_only_be_used_in_TypeScript_files,a)),"skip";case 236:return t.push(i(e,_a.Non_null_assertions_can_only_be_used_in_TypeScript_files)),"skip";case 235:return t.push(i(e.type,_a.Type_assertion_expressions_can_only_be_used_in_TypeScript_files)),"skip";case 239:return t.push(i(e.type,_a.Type_satisfaction_expressions_can_only_be_used_in_TypeScript_files)),"skip";case 217:un.fail()}}function r(t,n,...r){const i=t.pos;return Gx(e,i,t.end-i,n,...r)}function i(t,n,...r){return Jp(e,t,n,...r)}})}(e)),K(e.additionalSyntacticDiagnostics,e.parseDiagnostics)):e.parseDiagnostics}function zt(e){try{return e()}catch(e){throw e instanceof Cr&&(W=void 0),e}}function qt(e,t,n){if(n)return Ut(e,t,n);let r=null==X?void 0:X.get(e.path);return r||(X??(X=new Map)).set(e.path,r=Ut(e,t)),r}function Ut(e,t,n){return zt(()=>{if(_T(e,P,ot))return l;const r=It();un.assert(!!e.bindDiagnostics);const i=1===e.scriptKind||2===e.scriptKind,o=xd(e,P.checkJs),a=i&&nT(e,P);let s=e.bindDiagnostics,c=r.getDiagnostics(e,t,n);return o&&(s=N(s,e=>OV.has(e.code)),c=N(c,e=>OV.has(e.code))),function(e,t,n,...r){var i;const o=I(r);if(!t||!(null==(i=e.commentDirectives)?void 0:i.length))return o;const{diagnostics:a,directives:s}=Vt(e,e.commentDirectives,o);if(n)return a;for(const t of s.getUnusedExpectations())a.push(Hp(e,t.range,_a.Unused_ts_expect_error_directive));return a}(e,!o,!!n,s,c,a?e.jsDocDiagnostics:void 0)})}function Vt(e,t,n){const r=Jd(e,t),i=n.filter(e=>-1===function(e,t){const{file:n,start:r}=e;if(!n)return-1;const i=Ma(n);let o=Ra(i,r).line-1;for(;o>=0;){if(t.markUsed(o))return o;const e=n.text.slice(i[o],i[o+1]).trim();if(""!==e&&!/^\s*\/\/.*$/.test(e))return-1;o--}return-1}(e,r));return{diagnostics:i,directives:r}}function Wt(e,t){return e.isDeclarationFile?l:function(e,t){let n=null==Q?void 0:Q.get(e.path);return n||(Q??(Q=new Map)).set(e.path,n=function(e,t){return zt(()=>{const n=It().getEmitResolver(e,t);return Fq(Ft(rt),n,e)||l})}(e,t)),n}(e,t)}function $t(e,t,n,r){en(Jo(e),t,n,void 0,r)}function Ht(e,t){return e.fileName===t.fileName}function Kt(e,t){return 80===e.kind?80===t.kind&&e.escapedText===t.escapedText:11===t.kind&&e.text===t.text}function Qt(e,t){const n=mw.createStringLiteral(e),r=mw.createImportDeclaration(void 0,void 0,n);return Tw(r,2),DT(n,r),DT(r,t),n.flags&=-17,r.flags&=-17,n}function Yt(e){if(e.imports)return;const t=Fm(e),n=rO(e);let r,i,o;if(t||!e.isDeclarationFile&&(kk(P)||rO(e))){P.importHelpers&&(r=[Qt(Uu,e)]);const t=Gk(Kk(P,e),P);t&&(r||(r=[])).push(Qt(t,e))}for(const t of e.statements)a(t,!1);return(4194304&e.flags||t)&&DC(e,!0,!0,(e,t)=>{FT(e,!1),r=ie(r,t)}),e.imports=r||l,e.moduleAugmentations=i||l,void(e.ambientModuleNames=o||l);function a(t,s){if(Dp(t)){const n=kg(t);!(n&&UN(n)&&n.text)||s&&Cs(n.text)||(FT(t,!1),r=ie(r,n),Le||0!==de||e.isDeclarationFile||(Gt(n.text,"node:")&&!wC.has(n.text)?Le=!0:void 0===Le&&CC.has(n.text)&&(Le=!1)))}else if(gE(t)&&cp(t)&&(s||Nv(t,128)||e.isDeclarationFile)){t.name.parent=t;const r=qh(t.name);if(n||s&&!Cs(r))(i||(i=[])).push(t.name);else if(!s){e.isDeclarationFile&&(o||(o=[])).push(r);const n=t.body;if(n)for(const e of n.statements)a(e,!0)}}}}function Zt(e,t,n,r){if(xo(e)){const i=me.getCanonicalFileName(e);if(!P.allowNonTsExtensions&&!d(I(Se),e=>ko(i,e)))return void(n&&(OS(i)?n(_a.File_0_is_a_JavaScript_file_Did_you_mean_to_enable_the_allowJs_option,e):n(_a.File_0_has_an_unsupported_extension_The_only_supported_extensions_are_1,e,"'"+I(ke).join("', '")+"'")));const o=t(e);if(n)if(o)NV(r)&&i===me.getCanonicalFileName(jt(r.file).fileName)&&n(_a.A_file_cannot_have_a_reference_to_itself);else{const t=ln(e);(null==t?void 0:t.outputDts)?n(_a.Output_file_0_has_not_been_built_from_source_file_1,t.outputDts,e):n(_a.File_0_not_found,e)}return o}{const r=P.allowNonTsExtensions&&t(e);if(r)return r;if(n&&P.allowNonTsExtensions)return void n(_a.File_0_not_found,e);const i=d(ke[0],n=>t(e+n));return n&&!i&&n(_a.Could_not_resolve_the_path_0_with_the_extensions_Colon_1,e,"'"+I(ke).join("', '")+"'"),i}}function en(e,t,n,r,i){Zt(e,e=>rn(e,t,n,i,r),(e,...t)=>Nn(void 0,i,e,t),i)}function tn(e,t){return en(e,!1,!1,void 0,t)}function nn(e,t,n){!NV(n)&&$(Y.getFileReasons().get(t.path),NV)?Nn(t,n,_a.Already_included_file_name_0_differs_from_file_name_1_only_in_casing,[t.fileName,e]):Nn(t,n,_a.File_name_0_differs_from_already_included_file_name_1_only_in_casing,[e,t.fileName])}function rn(e,t,n,r,i){var o,a;null==(o=Hn)||o.push(Hn.Phase.Program,"findSourceFile",{fileName:e,isDefaultLib:t||void 0,fileIncludeKind:wr[r.kind]});const s=function(e,t,n,r,i){var o,a;const s=Tt(e);if(He){let o=dn(s);if(!o&&me.realpath&&P.preserveSymlinks&&uO(e)&&e.includes(KM)){const t=Tt(me.realpath(e));t!==s&&(o=dn(t))}if(null==o?void 0:o.source){const a=rn(o.source,t,n,r,i);return a&&sn(a,s,e,void 0),a}}const c=e;if(Re.has(s)){const n=Re.get(s),i=an(n||void 0,r,!0);if(n&&i&&!1!==P.forceConsistentCasingInFileNames){const t=n.fileName;Tt(t)!==Tt(e)&&(e=(null==(o=ln(e))?void 0:o.outputDts)||e),qo(t,xe)!==qo(e,xe)&&nn(e,n,r)}return n&&fe.get(n.path)&&0===de?(fe.set(n.path,!1),P.noResolve||(mn(n,t),gn(n)),P.noLib||kn(n),pe.set(n.path,!1),Tn(n)):n&&pe.get(n.path)&&deNn(void 0,r,_a.Cannot_read_file_0_Colon_1,[e,t]),et);if(i){const t=md(i),n=Oe.get(t);if(n){const t=function(e,t,n,r,i,o,a){var s;const c=CI.createRedirectedSourceFile({redirectTarget:e,unredirected:t});return c.fileName=n,c.path=r,c.resolvedPath=i,c.originalFileName=o,c.packageJsonLocations=(null==(s=a.packageJsonLocations)?void 0:s.length)?a.packageJsonLocations:void 0,c.packageJsonScope=a.packageJsonScope,fe.set(r,de>0),c}(n,u,e,s,Tt(e),c,_);return Me.add(n.path,e),sn(t,s,e,l),an(t,r,!1),je.set(s,fd(i)),q.push(t),t}u&&(Oe.set(t,u),je.set(s,fd(i)))}if(sn(u,s,e,l),u){if(fe.set(s,de>0),u.fileName=e,u.path=s,u.resolvedPath=Tt(e),u.originalFileName=c,u.packageJsonLocations=(null==(a=_.packageJsonLocations)?void 0:a.length)?_.packageJsonLocations:void 0,u.packageJsonScope=_.packageJsonScope,an(u,r,!1),me.useCaseSensitiveFileNames()){const t=_t(s),n=Je.get(t);n?nn(e,n,r):Je.set(t,u)}he=he||u.hasNoDefaultLib&&!n,P.noResolve||(mn(u,t),gn(u)),P.noLib||kn(u),Tn(u),t?z.push(u):q.push(u),(G??(G=new Set)).add(u.path)}return u}(e,t,n,r,i);return null==(a=Hn)||a.pop(),s}function on(e,t,n,r){const i=IV(Bo(e,xe),null==t?void 0:t.getPackageJsonInfoCache(),n,r),o=yk(r),a=pk(r);return"object"==typeof i?{...i,languageVersion:o,setExternalModuleIndicator:a,jsDocParsingMode:n.jsDocParsingMode}:{languageVersion:o,impliedNodeFormat:i,setExternalModuleIndicator:a,jsDocParsingMode:n.jsDocParsingMode}}function an(e,t,n){return!(!e||n&&NV(t)&&(null==G?void 0:G.has(t.file))||(Y.getFileReasons().add(e.path,t),0))}function sn(e,t,n,r){r?(cn(n,r,e),cn(n,t,e||!1)):cn(n,t,e)}function cn(e,t,n){Re.set(t,n),void 0!==n?Be.delete(t):Be.set(t,e)}function ln(e){return null==Ue?void 0:Ue.get(Tt(e))}function _n(e){return IC(ze,e)}function dn(e){return null==Ve?void 0:Ve.get(e)}function pn(e){return He&&!!ln(e)}function fn(e){if(qe)return qe.get(e)||void 0}function mn(e,t){d(e.referencedFiles,(n,r)=>{en(JU(n.fileName,e.fileName),t,!1,void 0,{kind:4,file:e.path,index:r})})}function gn(e){const t=e.typeReferenceDirectives;if(!t.length)return;const n=(null==ce?void 0:ce.get(e.path))||Nt(t,e),r=DM();(se??(se=new Map)).set(e.path,r);for(let i=0;i{const r=AC(t);r?$t(vn(r),!0,!0,{kind:7,file:e.path,index:n}):Y.addFileProcessingDiagnostic({kind:0,reason:{kind:7,file:e.path,index:n}})})}function Sn(e){return me.getCanonicalFileName(e)}function Tn(e){if(Yt(e),e.imports.length||e.moduleAugmentations.length){const t=$V(e),n=(null==ae?void 0:ae.get(e.path))||wt(t,e);un.assert(n.length===t.length);const r=hn(e),i=DM();(oe??(oe=new Map)).set(e.path,i);for(let o=0;oue,f=d&&!WV(r,a,e)&&!r.noResolve&&olU(a.commandLine,!me.useCaseSensitiveFileNames()));i.fileNames.forEach(n=>{if(uO(n))return;const r=Tt(n);let o;ko(n,".json")||(i.options.outFile?o=e:(o=tU(n,a.commandLine,!me.useCaseSensitiveFileNames(),t),Ve.set(Tt(o),{resolvedRef:a,source:n}))),Ue.set(r,{resolvedRef:a,outputDts:o})})}return i.projectReferences&&(a.references=i.projectReferences.map(Cn)),a}function wn(e,t,n,r){const i=new bn(e),o=new bn(t),s=new bn(j||a),c=function(){const e=P.ignoreDeprecations;if(e){if("5.0"===e)return new bn(e);J()}return bn.zero}(),l=!(1===o.compareTo(s)),_=!l&&-1===c.compareTo(i);(l||_)&&r((r,i,o)=>{l?void 0===i?n(r,i,o,_a.Option_0_has_been_removed_Please_remove_it_from_your_configuration,r):n(r,i,o,_a.Option_0_1_has_been_removed_Please_remove_it_from_your_configuration,r,i):void 0===i?n(r,i,o,_a.Option_0_is_deprecated_and_will_stop_functioning_in_TypeScript_1_Specify_compilerOption_ignoreDeprecations_Colon_2_to_silence_this_error,r,t,e):n(r,i,o,_a.Option_0_1_is_deprecated_and_will_stop_functioning_in_TypeScript_2_Specify_compilerOption_ignoreDeprecations_Colon_3_to_silence_this_error,r,i,t,e)})}function Nn(e,t,n,r){Y.addFileProcessingDiagnostic({kind:1,file:e&&e.path,fileProcessingReason:t,diagnostic:n,args:r})}function Dn(e,t,n,...r){let i=!0;En(o=>{uF(o.initializer)&&Vf(o.initializer,e,e=>{const o=e.initializer;_F(o)&&o.elements.length>t&&(Y.addConfigDiagnostic(Jp(P.configFile,o.elements[t],n,...r)),i=!1)})}),i&&Ln(n,...r)}function Fn(e,t,n,...r){let i=!0;En(o=>{uF(o.initializer)&&Rn(o.initializer,e,t,void 0,n,...r)&&(i=!1)}),i&&Ln(n,...r)}function En(e){return MC(jn(),"paths",e)}function Pn(e,t,n,r){On(!0,t,n,e,t,n,r)}function An(e,t,...n){On(!1,e,void 0,t,...n)}function In(e,t,n,...r){const i=Hf(e||P.configFile,"references",e=>_F(e.initializer)?e.initializer:void 0);i&&i.elements.length>t?Y.addConfigDiagnostic(Jp(e||P.configFile,i.elements[t],n,...r)):Y.addConfigDiagnostic(Qx(n,...r))}function On(e,t,n,r,...i){const o=jn();(!o||!Rn(o,e,t,n,r,...i))&&Ln(r,...i)}function Ln(e,...t){const n=Mn();n?"messageText"in e?Y.addConfigDiagnostic(zp(P.configFile,n.name,e)):Y.addConfigDiagnostic(Jp(P.configFile,n.name,e,...t)):"messageText"in e?Y.addConfigDiagnostic(Yx(e)):Y.addConfigDiagnostic(Qx(e,...t))}function jn(){if(void 0===Ce){const e=Mn();Ce=e&&tt(e.initializer,uF)||!1}return Ce||void 0}function Mn(){return void 0===we&&(we=Vf(Wf(P.configFile),"compilerOptions",st)||!1),we||void 0}function Rn(e,t,n,r,i,...o){let a=!1;return Vf(e,n,e=>{"messageText"in i?Y.addConfigDiagnostic(zp(P.configFile,t?e.name:e.initializer,i)):Y.addConfigDiagnostic(Jp(P.configFile,t?e.name:e.initializer,i,...o)),a=!0},r),a}function Bn(e,t){Te.set(Tt(e),!0),Y.addConfigDiagnostic(t)}function Jn(e,t){return 0===Zo(e,t,xe,!me.useCaseSensitiveFileNames())}function zn(){return me.getSymlinkCache?me.getSymlinkCache():(V||(V=Qk(xe,Sn)),U&&!V.hasProcessedResolutions()&&V.setSymlinksFromResolutions(lt,ut,ee),V)}function qn(e,t){return pV(e,t,hn(e))}function Un(e,t){return qn(e,HV(e,t))}function Vn(e){return BV(e,hn(e))}function Wn(e){return MV(e,hn(e))}function $n(e){return jV(e,hn(e))}function Kn(e,t){return e.resolutionMode||Vn(t)}}function jV(e,t){const n=vk(t);return!(100<=n&&n<=199||200===n)&&MV(e,t)<5}function MV(e,t){return RV(e,t)??vk(t)}function RV(e,t){var n,r;const i=vk(t);return 100<=i&&i<=199?e.impliedNodeFormat:1!==e.impliedNodeFormat||"commonjs"!==(null==(n=e.packageJsonScope)?void 0:n.contents.packageJsonContent.type)&&!So(e.fileName,[".cjs",".cts"])?99!==e.impliedNodeFormat||"module"!==(null==(r=e.packageJsonScope)?void 0:r.contents.packageJsonContent.type)&&!So(e.fileName,[".mjs",".mts"])?void 0:99:1}function BV(e,t){return fk(t)?RV(e,t):void 0}var JV={diagnostics:l,sourceMaps:void 0,emittedFiles:void 0,emitSkipped:!0};function zV(e,t,n,r){const i=e.getCompilerOptions();if(i.noEmit)return t?JV:e.emitBuildInfo(n,r);if(!i.noEmitOnError)return;let o,a=[...e.getOptionsDiagnostics(r),...e.getSyntacticDiagnostics(t,r),...e.getGlobalDiagnostics(r),...e.getSemanticDiagnostics(t,r)];if(0===a.length&&Dk(e.getCompilerOptions())&&(a=e.getDeclarationDiagnostics(void 0,r)),a.length){if(!t){const t=e.emitBuildInfo(n,r);t.diagnostics&&(a=[...a,...t.diagnostics]),o=t.emittedFiles}return{diagnostics:a,sourceMaps:void 0,emittedFiles:o,emitSkipped:!0}}}function qV(e,t){return N(e,e=>!e.skippedOn||!t[e.skippedOn])}function UV(e,t=e){return{fileExists:e=>t.fileExists(e),readDirectory:(e,n,r,i,o)=>(un.assertIsDefined(t.readDirectory,"'CompilerHost.readDirectory' must be implemented to correctly process 'projectReferences'"),t.readDirectory(e,n,r,i,o)),readFile:e=>t.readFile(e),directoryExists:We(t,t.directoryExists),getDirectories:We(t,t.getDirectories),realpath:We(t,t.realpath),useCaseSensitiveFileNames:e.useCaseSensitiveFileNames(),getCurrentDirectory:()=>e.getCurrentDirectory(),onUnRecoverableConfigFileDiagnostic:e.onUnRecoverableConfigFileDiagnostic||at,trace:e.trace?t=>e.trace(t):void 0}}function VV(e){return $$(e.path)}function WV(e,{extension:t},{isDeclarationFile:n}){switch(t){case".ts":case".d.ts":case".mts":case".d.mts":case".cts":case".d.cts":return;case".tsx":return r();case".jsx":return r()||i();case".js":case".mjs":case".cjs":return i();case".json":return Nk(e)?void 0:_a.Module_0_was_resolved_to_1_but_resolveJsonModule_is_not_used;default:return n||e.allowArbitraryExtensions?void 0:_a.Module_0_was_resolved_to_1_but_allowArbitraryExtensions_is_not_set}function r(){return e.jsx?void 0:_a.Module_0_was_resolved_to_1_but_jsx_is_not_set}function i(){return Ak(e)||!Jk(e,"noImplicitAny")?void 0:_a.Could_not_find_a_declaration_file_for_module_0_1_implicitly_has_an_any_type}}function $V({imports:e,moduleAugmentations:t}){const n=e.map(e=>e);for(const e of t)11===e.kind&&n.push(e);return n}function HV({imports:e,moduleAugmentations:t},n){if(nn,getFileReasons:()=>c,getCommonSourceDirectory:()=>r,getConfigDiagnostics:()=>i,getLazyConfigDiagnostics:()=>o,getCombinedDiagnostics:e=>t||(t=_y(),null==i||i.getDiagnostics().forEach(e=>t.add(e)),null==n||n.forEach(n=>{switch(n.kind){case 1:return t.add(_(e,n.file&&e.getSourceFileByPath(n.file),n.fileProcessingReason,n.diagnostic,n.args||l));case 0:return t.add(function(e,{reason:t}){const{file:n,pos:r,end:i}=FV(e,t),o=PC(n.libReferenceDirectives[t.index]),a=Lt(Rt(Xt(o,"lib."),".d.ts"),NO,st);return Gx(n,un.checkDefined(r),un.checkDefined(i)-r,a?_a.Cannot_find_lib_definition_for_0_Did_you_mean_1:_a.Cannot_find_lib_definition_for_0,o,a)}(e,n));case 2:return n.diagnostics.forEach(e=>t.add(e));default:un.assertNever(n)}}),null==o||o.forEach(({file:n,diagnostic:r,args:i})=>t.add(_(e,n,void 0,r,i))),a=void 0,s=void 0,t)};function _(t,n,r,i,o){let _,u,d,p,f,m;const g=n&&c.get(n.path);let h=NV(r)?r:void 0,y=n&&(null==a?void 0:a.get(n.path));y?(y.fileIncludeReasonDetails?(_=new Set(g),null==g||g.forEach(k)):null==g||g.forEach(x),f=y.redirectInfo):(null==g||g.forEach(x),f=n&&v$(n,t.getCompilerOptionsForFile(n))),r&&x(r);const v=(null==_?void 0:_.size)!==(null==g?void 0:g.length);h&&1===(null==_?void 0:_.size)&&(_=void 0),_&&y&&(y.details&&!v?m=Zx(y.details,i,...o??l):y.fileIncludeReasonDetails&&(v?u=S()?ie(y.fileIncludeReasonDetails.next.slice(0,g.length),u[0]):[...y.fileIncludeReasonDetails.next,u[0]]:S()?u=y.fileIncludeReasonDetails.next.slice(0,g.length):p=y.fileIncludeReasonDetails)),m||(p||(p=_&&Zx(u,_a.The_file_is_in_the_program_because_Colon)),m=Zx(f?p?[p,...f]:f:p,i,...o||l)),n&&(y?(!y.fileIncludeReasonDetails||!v&&p)&&(y.fileIncludeReasonDetails=p):(a??(a=new Map)).set(n.path,y={fileIncludeReasonDetails:p,redirectInfo:f}),y.details||v||(y.details=m.next));const b=h&&FV(t,h);return b&&DV(b)?Vp(b.file,b.pos,b.end-b.pos,m,d):Yx(m,d);function x(e){(null==_?void 0:_.has(e))||((_??(_=new Set)).add(e),(u??(u=[])).push(k$(t,e)),k(e))}function k(n){!h&&NV(n)?h=n:h!==n&&(d=ie(d,function(t,n){let r=null==s?void 0:s.get(n);return void 0===r&&(s??(s=new Map)).set(n,r=function(t,n){if(NV(n)){const e=FV(t,n);let r;switch(n.kind){case 3:r=_a.File_is_included_via_import_here;break;case 4:r=_a.File_is_included_via_reference_here;break;case 5:r=_a.File_is_included_via_type_library_reference_here;break;case 7:r=_a.File_is_included_via_library_reference_here;break;default:un.assertNever(n)}return DV(e)?Gx(e.file,e.pos,e.end-e.pos,r):void 0}const r=t.getCurrentDirectory(),i=t.getRootFileNames(),o=t.getCompilerOptions();if(!o.configFile)return;let a,s;switch(n.kind){case 0:if(!o.configFile.configFileSpecs)return;const c=Bo(i[n.index],r),l=b$(t,c);if(l){a=$f(o.configFile,"files",l),s=_a.File_is_matched_by_files_list_specified_here;break}const _=x$(t,c);if(!_||!Ze(_))return;a=$f(o.configFile,"include",_),s=_a.File_is_matched_by_include_pattern_specified_here;break;case 1:case 2:const u=t.getResolvedProjectReferences(),d=t.getProjectReferences(),p=un.checkDefined(null==u?void 0:u[n.index]),f=OC(d,u,(e,t,n)=>e===p?{sourceFile:(null==t?void 0:t.sourceFile)||o.configFile,index:n}:void 0);if(!f)return;const{sourceFile:m,index:g}=f,h=Hf(m,"references",e=>_F(e.initializer)?e.initializer:void 0);return h&&h.elements.length>g?Jp(m,h.elements[g],2===n.kind?_a.File_is_output_from_referenced_project_specified_here:_a.File_is_source_from_referenced_project_specified_here):void 0;case 8:if(!o.types)return;a=LC(e(),"types",n.typeReference),s=_a.File_is_entry_point_of_type_library_specified_here;break;case 6:if(void 0!==n.index){a=LC(e(),"lib",o.lib[n.index]),s=_a.File_is_library_specified_here;break}const y=zk(yk(o));a=y?jC(e(),"target",y):void 0,s=_a.File_is_default_library_for_target_specified_here;break;default:un.assertNever(n)}return a&&Jp(o.configFile,a,s)}(t,n)??!1),r||void 0}(t,n)))}function S(){var e;return(null==(e=y.fileIncludeReasonDetails.next)?void 0:e.length)!==(null==g?void 0:g.length)}}}function GV(e,t,n,r,i,o){const a=[],{emitSkipped:s,diagnostics:c}=e.emit(t,function(e,t,n){a.push({name:e,writeByteOrderMark:n,text:t})},r,n,i,o);return{outputFiles:a,emitSkipped:s,diagnostics:c}}var XV,QV=(e=>(e[e.ComputedDts=0]="ComputedDts",e[e.StoredSignatureAtEmit=1]="StoredSignatureAtEmit",e[e.UsedVersion=2]="UsedVersion",e))(QV||{});(e=>{function t(){return function(e,t,r){const i={getKeys:e=>t.get(e),getValues:t=>e.get(t),keys:()=>e.keys(),size:()=>e.size,deleteKey:i=>{(r||(r=new Set)).add(i);const o=e.get(i);return!!o&&(o.forEach(e=>n(t,e,i)),e.delete(i),!0)},set:(o,a)=>{null==r||r.delete(o);const s=e.get(o);return e.set(o,a),null==s||s.forEach(e=>{a.has(e)||n(t,e,o)}),a.forEach(e=>{(null==s?void 0:s.has(e))||function(e,t,n){let r=e.get(t);r||(r=new Set,e.set(t,r)),r.add(n)}(t,e,o)}),i}};return i}(new Map,new Map,void 0)}function n(e,t,n){const r=e.get(t);return!!(null==r?void 0:r.delete(n))&&(r.size||e.delete(t),!0)}function r(e,t){const n=e.getSymbolAtLocation(t);return n&&function(e){return B(e.declarations,e=>{var t;return null==(t=vd(e))?void 0:t.resolvedPath})}(n)}function i(e,t,n,r){var i;return Uo((null==(i=e.getRedirectFromSourceFile(t))?void 0:i.outputDts)||t,n,r)}function o(e,t,n){let o;if(t.imports&&t.imports.length>0){const n=e.getTypeChecker();for(const e of t.imports){const t=r(n,e);null==t||t.forEach(c)}}const a=Do(t.resolvedPath);if(t.referencedFiles&&t.referencedFiles.length>0)for(const r of t.referencedFiles)c(i(e,r.fileName,a,n));if(e.forEachResolvedTypeReferenceDirective(({resolvedTypeReferenceDirective:t})=>{if(!t)return;const r=t.resolvedFileName;c(i(e,r,a,n))},t),t.moduleAugmentations.length){const n=e.getTypeChecker();for(const e of t.moduleAugmentations){if(!UN(e))continue;const t=n.getSymbolAtLocation(e);t&&s(t)}}for(const t of e.getTypeChecker().getAmbientModules())t.declarations&&t.declarations.length>1&&s(t);return o;function s(e){if(e.declarations)for(const n of e.declarations){const e=vd(n);e&&e!==t&&c(e.resolvedPath)}}function c(e){(o||(o=new Set)).add(e)}}function a(e,t){return t&&!t.referencedMap==!e}function s(e){return 0===e.module||e.outFile?void 0:t()}function c(e,t,n,r,i){const o=t.getSourceFileByPath(n);return o?u(e,t,o,r,i)?(e.referencedMap?h:g)(e,t,o,r,i):[o]:l}function _(e,t,n,r,i){e.emit(t,(n,o,a,s,c,l)=>{un.assert(uO(n),`File extension for signature expected to be dts: Got:: ${n}`),i(FW(e,t,o,r,l),c)},n,2,void 0,!0)}function u(e,t,n,r,i,o=e.useFileVersionAsSignature){var a;if(null==(a=e.hasCalledUpdateShapeSignature)?void 0:a.has(n.resolvedPath))return!1;const s=e.fileInfos.get(n.resolvedPath),c=s.signature;let l;return n.isDeclarationFile||o||_(t,n,r,i,t=>{l=t,i.storeSignatureInfo&&(e.signatureInfo??(e.signatureInfo=new Map)).set(n.resolvedPath,0)}),void 0===l&&(l=n.version,i.storeSignatureInfo&&(e.signatureInfo??(e.signatureInfo=new Map)).set(n.resolvedPath,2)),(e.oldSignatures||(e.oldSignatures=new Map)).set(n.resolvedPath,c||!1),(e.hasCalledUpdateShapeSignature||(e.hasCalledUpdateShapeSignature=new Set)).add(n.resolvedPath),s.signature=l,l!==c}function d(e,t){if(!e.allFileNames){const n=t.getSourceFiles();e.allFileNames=n===l?l:n.map(e=>e.fileName)}return e.allFileNames}function p(e,t){const n=e.referencedMap.getKeys(t);return n?Oe(n.keys()):[]}function f(e){return function(e){return $(e.moduleAugmentations,e=>pp(e.parent))}(e)||!Zp(e)&&!ef(e)&&!function(e){for(const t of e.statements)if(!lp(t))return!1;return!0}(e)}function m(e,t,n){if(e.allFilesExcludingDefaultLibraryFile)return e.allFilesExcludingDefaultLibraryFile;let r;n&&i(n);for(const e of t.getSourceFiles())e!==n&&i(e);return e.allFilesExcludingDefaultLibraryFile=r||l,e.allFilesExcludingDefaultLibraryFile;function i(e){t.isSourceFileDefaultLibrary(e)||(r||(r=[])).push(e)}}function g(e,t,n){const r=t.getCompilerOptions();return r&&r.outFile?[n]:m(e,t,n)}function h(e,t,n,r,i){if(f(n))return m(e,t,n);const o=t.getCompilerOptions();if(o&&(kk(o)||o.outFile))return[n];const a=new Map;a.set(n.resolvedPath,n);const s=p(e,n.resolvedPath);for(;s.length>0;){const n=s.pop();if(!a.has(n)){const o=t.getSourceFileByPath(n);a.set(n,o),o&&u(e,t,o,r,i)&&s.push(...p(e,o.resolvedPath))}}return Oe(J(a.values(),e=>e))}e.createManyToManyPathMap=t,e.canReuseOldState=a,e.createReferencedMap=s,e.create=function(e,t,n){var r,i;const c=new Map,l=e.getCompilerOptions(),_=s(l),u=a(_,t);e.getTypeChecker();for(const n of e.getSourceFiles()){const a=un.checkDefined(n.version,"Program intended to be used with Builder should have source files with versions set"),s=u?null==(r=t.oldSignatures)?void 0:r.get(n.resolvedPath):void 0,d=void 0===s?u?null==(i=t.fileInfos.get(n.resolvedPath))?void 0:i.signature:void 0:s||void 0;if(_){const t=o(e,n,e.getCanonicalFileName);t&&_.set(n.resolvedPath,t)}c.set(n.resolvedPath,{version:a,signature:d,affectsGlobalScope:l.outFile?void 0:f(n)||void 0,impliedFormat:n.impliedNodeFormat})}return{fileInfos:c,referencedMap:_,useFileVersionAsSignature:!n&&!u}},e.releaseCache=function(e){e.allFilesExcludingDefaultLibraryFile=void 0,e.allFileNames=void 0},e.getFilesAffectedBy=function(e,t,n,r,i){var o;const a=c(e,t,n,r,i);return null==(o=e.oldSignatures)||o.clear(),a},e.getFilesAffectedByWithOldState=c,e.updateSignatureOfFile=function(e,t,n){e.fileInfos.get(n).signature=t,(e.hasCalledUpdateShapeSignature||(e.hasCalledUpdateShapeSignature=new Set)).add(n)},e.computeDtsSignature=_,e.updateShapeSignature=u,e.getAllDependencies=function(e,t,n){if(t.getCompilerOptions().outFile)return d(e,t);if(!e.referencedMap||f(n))return d(e,t);const r=new Set,i=[n.resolvedPath];for(;i.length;){const t=i.pop();if(!r.has(t)){r.add(t);const n=e.referencedMap.getValues(t);if(n)for(const e of n.keys())i.push(e)}}return Oe(J(r.keys(),e=>{var n;return(null==(n=t.getSourceFileByPath(e))?void 0:n.fileName)??e}))},e.getReferencedByPaths=p,e.getAllFilesExcludingDefaultLibraryFile=m})(XV||(XV={}));var YV=(e=>(e[e.None=0]="None",e[e.Js=1]="Js",e[e.JsMap=2]="JsMap",e[e.JsInlineMap=4]="JsInlineMap",e[e.DtsErrors=8]="DtsErrors",e[e.DtsEmit=16]="DtsEmit",e[e.DtsMap=32]="DtsMap",e[e.Dts=24]="Dts",e[e.AllJs=7]="AllJs",e[e.AllDtsEmit=48]="AllDtsEmit",e[e.AllDts=56]="AllDts",e[e.All=63]="All",e))(YV||{});function ZV(e){return void 0!==e.program}function eW(e){let t=1;return e.sourceMap&&(t|=2),e.inlineSourceMap&&(t|=4),Dk(e)&&(t|=24),e.declarationMap&&(t|=32),e.emitDeclarationOnly&&(t&=56),t}function tW(e,t){const n=t&&(et(t)?t:eW(t)),r=et(e)?e:eW(e);if(n===r)return 0;if(!n||!r)return r;const i=n^r;let o=0;return 7&i&&(o=7&r),8&i&&(o|=8&r),48&i&&(o|=48&r),o}function nW(e,t,n){return!!e.declarationMap==!!t.declarationMap?n:Ze(n)?[n]:n[0]}function rW(e,t){return e.length?A(e,e=>{if(Ze(e.messageText))return e;const n=iW(e.messageText,e.file,t,e=>{var t;return null==(t=e.repopulateInfo)?void 0:t.call(e)});return n===e.messageText?e:{...e,messageText:n}}):e}function iW(e,t,n,r){const i=r(e);if(!0===i)return{...pd(t),next:oW(e.next,t,n,r)};if(i)return{...dd(t,n,i.moduleReference,i.mode,i.packageName||i.moduleReference),next:oW(e.next,t,n,r)};const o=oW(e.next,t,n,r);return o===e.next?e:{...e,next:o}}function oW(e,t,n,r){return A(e,e=>iW(e,t,n,r))}function aW(e,t,n){if(!e.length)return l;let r;return e.map(e=>{const r=sW(e,t,n,i);r.reportsUnnecessary=e.reportsUnnecessary,r.reportsDeprecated=e.reportDeprecated,r.source=e.source,r.skippedOn=e.skippedOn;const{relatedInformation:o}=e;return r.relatedInformation=o?o.length?o.map(e=>sW(e,t,n,i)):[]:void 0,r});function i(e){return r??(r=Do(Bo(Gq(n.getCompilerOptions()),n.getCurrentDirectory()))),Uo(e,r,n.getCanonicalFileName)}}function sW(e,t,n,r){const{file:i}=e,o=!1!==i?n.getSourceFileByPath(i?r(i):t):void 0;return{...e,file:o,messageText:Ze(e.messageText)?e.messageText:iW(e.messageText,o,n,e=>e.info)}}function cW(e,t){un.assert(!t||!e.affectedFiles||e.affectedFiles[e.affectedFilesIndex-1]!==t||!e.semanticDiagnosticsPerFile.has(t.resolvedPath))}function lW(e,t,n){for(var r;;){const{affectedFiles:i}=e;if(i){const o=e.seenAffectedFiles;let a=e.affectedFilesIndex;for(;a{const i=n?55&t:7&t;i?e.affectedFilesPendingEmit.set(r,i):e.affectedFilesPendingEmit.delete(r)}),e.programEmitPending)){const t=n?55&e.programEmitPending:7&e.programEmitPending;e.programEmitPending=t||void 0}}function uW(e,t,n,r){let i=tW(e,t);return n&&(i&=56),r&&(i&=8),i}function dW(e){return e?8:56}function pW(e){if(!e.cleanedDiagnosticsOfLibFiles){e.cleanedDiagnosticsOfLibFiles=!0;const t=e.program.getCompilerOptions();d(e.program.getSourceFiles(),n=>e.program.isSourceFileDefaultLibrary(n)&&!uT(n,t,e.program)&&gW(e,n.resolvedPath))}}function fW(e,t,n,r){if(gW(e,t.resolvedPath),e.allFilesExcludingDefaultLibraryFile===e.affectedFiles)return pW(e),void XV.updateShapeSignature(e,e.program,t,n,r);e.compilerOptions.assumeChangesOnlyAffectDirectDependencies||function(e,t,n,r){var i,o;if(!e.referencedMap||!e.changedFilesSet.has(t.resolvedPath))return;if(!hW(e,t.resolvedPath))return;if(kk(e.compilerOptions)){const i=new Map;i.set(t.resolvedPath,!0);const o=XV.getReferencedByPaths(e,t.resolvedPath);for(;o.length>0;){const t=o.pop();if(!i.has(t)){if(i.set(t,!0),yW(e,t,!1,n,r))return;if(mW(e,t,!1,n,r),hW(e,t)){const n=e.program.getSourceFileByPath(t);o.push(...XV.getReferencedByPaths(e,n.resolvedPath))}}}}const a=new Set,s=!!(null==(i=t.symbol)?void 0:i.exports)&&!!rd(t.symbol.exports,n=>{if(128&n.flags)return!0;const r=ox(n,e.program.getTypeChecker());return r!==n&&!!(128&r.flags)&&$(r.declarations,e=>vd(e)===t)});null==(o=e.referencedMap.getKeys(t.resolvedPath))||o.forEach(t=>{if(yW(e,t,s,n,r))return!0;const i=e.referencedMap.getKeys(t);return i&&id(i,t=>vW(e,t,s,a,n,r))})}(e,t,n,r)}function mW(e,t,n,r,i){if(gW(e,t),!e.changedFilesSet.has(t)){const o=e.program.getSourceFileByPath(t);o&&(XV.updateShapeSignature(e,e.program,o,r,i,!0),n?PW(e,t,eW(e.compilerOptions)):Dk(e.compilerOptions)&&PW(e,t,e.compilerOptions.declarationMap?56:24))}}function gW(e,t){return!e.semanticDiagnosticsFromOldState||(e.semanticDiagnosticsFromOldState.delete(t),e.semanticDiagnosticsPerFile.delete(t),!e.semanticDiagnosticsFromOldState.size)}function hW(e,t){const n=un.checkDefined(e.oldSignatures).get(t)||void 0;return un.checkDefined(e.fileInfos.get(t)).signature!==n}function yW(e,t,n,r,i){var o;return!!(null==(o=e.fileInfos.get(t))?void 0:o.affectsGlobalScope)&&(XV.getAllFilesExcludingDefaultLibraryFile(e,e.program,void 0).forEach(t=>mW(e,t.resolvedPath,n,r,i)),pW(e),!0)}function vW(e,t,n,r,i,o){var a;if(q(r,t)){if(yW(e,t,n,i,o))return!0;mW(e,t,n,i,o),null==(a=e.referencedMap.getKeys(t))||a.forEach(t=>vW(e,t,n,r,i,o))}}function bW(e,t,n,r){return e.compilerOptions.noCheck?l:K(function(e,t,n,r){r??(r=e.semanticDiagnosticsPerFile);const i=t.resolvedPath,o=r.get(i);if(o)return qV(o,e.compilerOptions);const a=e.program.getBindAndCheckDiagnostics(t,n);return r.set(i,a),e.buildInfoEmitPending=!0,qV(a,e.compilerOptions)}(e,t,n,r),e.program.getProgramDiagnostics(t))}function xW(e){var t;return!!(null==(t=e.options)?void 0:t.outFile)}function kW(e){return!!e.fileNames}function SW(e){void 0===e.hasErrors&&(Ek(e.compilerOptions)?e.hasErrors=!$(e.program.getSourceFiles(),t=>{var n,r;const i=e.semanticDiagnosticsPerFile.get(t.resolvedPath);return void 0===i||!!i.length||!!(null==(r=null==(n=e.emitDiagnosticsPerFile)?void 0:n.get(t.resolvedPath))?void 0:r.length)})&&(TW(e)||$(e.program.getSourceFiles(),t=>!!e.program.getProgramDiagnostics(t).length)):e.hasErrors=$(e.program.getSourceFiles(),t=>{var n,r;const i=e.semanticDiagnosticsPerFile.get(t.resolvedPath);return!!(null==i?void 0:i.length)||!!(null==(r=null==(n=e.emitDiagnosticsPerFile)?void 0:n.get(t.resolvedPath))?void 0:r.length)})||TW(e))}function TW(e){return!!(e.program.getConfigFileParsingDiagnostics().length||e.program.getSyntacticDiagnostics().length||e.program.getOptionsDiagnostics().length||e.program.getGlobalDiagnostics().length)}function CW(e){return SW(e),e.buildInfoEmitPending??(e.buildInfoEmitPending=!!e.hasErrorsFromOldState!=!!e.hasErrors)}var wW=(e=>(e[e.SemanticDiagnosticsBuilderProgram=0]="SemanticDiagnosticsBuilderProgram",e[e.EmitAndSemanticDiagnosticsBuilderProgram=1]="EmitAndSemanticDiagnosticsBuilderProgram",e))(wW||{});function NW(e,t,n,r,i,o){let a,s,c;return void 0===e?(un.assert(void 0===t),a=n,c=r,un.assert(!!c),s=c.getProgram()):Qe(e)?(c=r,s=LV({rootNames:e,options:t,host:n,oldProgram:c&&c.getProgramOrUndefined(),configFileParsingDiagnostics:i,projectReferences:o}),a=n):(s=e,a=t,c=n,i=r),{host:a,newProgram:s,oldProgram:c,configFileParsingDiagnostics:i||l}}function DW(e,t){return void 0!==(null==t?void 0:t.sourceMapUrlPos)?e.substring(0,t.sourceMapUrlPos):e}function FW(e,t,n,r,i){var o;let a;return n=DW(n,i),(null==(o=null==i?void 0:i.diagnostics)?void 0:o.length)&&(n+=i.diagnostics.map(n=>`${function(n){return n.file.resolvedPath===t.resolvedPath?`(${n.start},${n.length})`:(void 0===a&&(a=Do(t.resolvedPath)),`${$o(ra(a,n.file.resolvedPath,e.getCanonicalFileName))}(${n.start},${n.length})`)}(n)}${si[n.category]}${n.code}: ${s(n.messageText)}`).join("\n")),(r.createHash??Mi)(n);function s(e){return Ze(e)?e:void 0===e?"":e.next?e.messageText+e.next.map(s).join("\n"):e.messageText}}function EW(e,{newProgram:t,host:n,oldProgram:r,configFileParsingDiagnostics:i}){let o=r&&r.state;if(o&&t===o.program&&i===t.getConfigFileParsingDiagnostics())return t=void 0,o=void 0,r;const a=function(e,t){var n,r;const i=XV.create(e,t,!1);i.program=e;const o=e.getCompilerOptions();i.compilerOptions=o;const a=o.outFile;i.semanticDiagnosticsPerFile=new Map,a&&o.composite&&(null==t?void 0:t.outSignature)&&a===t.compilerOptions.outFile&&(i.outSignature=t.outSignature&&nW(o,t.compilerOptions,t.outSignature)),i.changedFilesSet=new Set,i.latestChangedDtsFile=o.composite?null==t?void 0:t.latestChangedDtsFile:void 0,i.checkPending=!!i.compilerOptions.noCheck||void 0;const s=XV.canReuseOldState(i.referencedMap,t),c=s?t.compilerOptions:void 0;let l=s&&!Uk(o,c);const _=o.composite&&(null==t?void 0:t.emitSignatures)&&!a&&!Wk(o,t.compilerOptions);let u=!0;s?(null==(n=t.changedFilesSet)||n.forEach(e=>i.changedFilesSet.add(e)),!a&&(null==(r=t.affectedFilesPendingEmit)?void 0:r.size)&&(i.affectedFilesPendingEmit=new Map(t.affectedFilesPendingEmit),i.seenAffectedFiles=new Set),i.programEmitPending=t.programEmitPending,a&&i.changedFilesSet.size&&(l=!1,u=!1),i.hasErrorsFromOldState=t.hasErrors):i.buildInfoEmitPending=Ek(o);const d=i.referencedMap,p=s?t.referencedMap:void 0,f=l&&!o.skipLibCheck==!c.skipLibCheck,m=f&&!o.skipDefaultLibCheck==!c.skipDefaultLibCheck;if(i.fileInfos.forEach((n,r)=>{var a;let c,h;if(!s||!(c=t.fileInfos.get(r))||c.version!==n.version||c.impliedFormat!==n.impliedFormat||(y=h=d&&d.getValues(r))!==(v=p&&p.getValues(r))&&(void 0===y||void 0===v||y.size!==v.size||id(y,e=>!v.has(e)))||h&&id(h,e=>!i.fileInfos.has(e)&&t.fileInfos.has(e)))g(r);else{const n=e.getSourceFileByPath(r),o=u?null==(a=t.emitDiagnosticsPerFile)?void 0:a.get(r):void 0;if(o&&(i.emitDiagnosticsPerFile??(i.emitDiagnosticsPerFile=new Map)).set(r,t.hasReusableDiagnostic?aW(o,r,e):rW(o,e)),l){if(n.isDeclarationFile&&!f)return;if(n.hasNoDefaultLib&&!m)return;const o=t.semanticDiagnosticsPerFile.get(r);o&&(i.semanticDiagnosticsPerFile.set(r,t.hasReusableDiagnostic?aW(o,r,e):rW(o,e)),(i.semanticDiagnosticsFromOldState??(i.semanticDiagnosticsFromOldState=new Set)).add(r))}}var y,v;if(_){const e=t.emitSignatures.get(r);e&&(i.emitSignatures??(i.emitSignatures=new Map)).set(r,nW(o,t.compilerOptions,e))}}),s&&rd(t.fileInfos,(e,t)=>!(i.fileInfos.has(t)||!e.affectsGlobalScope&&(i.buildInfoEmitPending=!0,!a))))XV.getAllFilesExcludingDefaultLibraryFile(i,e,void 0).forEach(e=>g(e.resolvedPath));else if(c){const t=Vk(o,c)?eW(o):tW(o,c);0!==t&&(a?i.changedFilesSet.size||(i.programEmitPending=i.programEmitPending?i.programEmitPending|t:t):(e.getSourceFiles().forEach(e=>{i.changedFilesSet.has(e.resolvedPath)||PW(i,e.resolvedPath,t)}),un.assert(!i.seenAffectedFiles||!i.seenAffectedFiles.size),i.seenAffectedFiles=i.seenAffectedFiles||new Set),i.buildInfoEmitPending=!0)}return s&&i.semanticDiagnosticsPerFile.size!==i.fileInfos.size&&t.checkPending!==i.checkPending&&(i.buildInfoEmitPending=!0),i;function g(e){i.changedFilesSet.add(e),a&&(l=!1,u=!1,i.semanticDiagnosticsFromOldState=void 0,i.semanticDiagnosticsPerFile.clear(),i.emitDiagnosticsPerFile=void 0),i.buildInfoEmitPending=!0,i.programEmitPending=void 0}}(t,o);t.getBuildInfo=()=>function(e){var t,n;const r=e.program.getCurrentDirectory(),i=Do(Bo(Gq(e.compilerOptions),r)),o=e.latestChangedDtsFile?b(e.latestChangedDtsFile):void 0,a=[],c=new Map,_=new Set(e.program.getRootFileNames().map(t=>Uo(t,r,e.program.getCanonicalFileName)));if(SW(e),!Ek(e.compilerOptions))return{root:Oe(_,e=>x(e)),errors:!!e.hasErrors||void 0,checkPending:e.checkPending,version:s};const u=[];if(e.compilerOptions.outFile){const t=Oe(e.fileInfos.entries(),([e,t])=>(T(e,k(e)),t.impliedFormat?{version:t.version,impliedFormat:t.impliedFormat,signature:void 0,affectsGlobalScope:void 0}:t.version));return{fileNames:a,fileInfos:t,root:u,resolvedRoot:C(),options:w(e.compilerOptions),semanticDiagnosticsPerFile:e.changedFilesSet.size?void 0:D(),emitDiagnosticsPerFile:F(),changeFileSet:O(),outSignature:e.outSignature,latestChangedDtsFile:o,pendingEmit:e.programEmitPending?e.programEmitPending!==eW(e.compilerOptions)&&e.programEmitPending:void 0,errors:!!e.hasErrors||void 0,checkPending:e.checkPending,version:s}}let p,f,m;const g=Oe(e.fileInfos.entries(),([t,n])=>{var r,i;const o=k(t);T(t,o),un.assert(a[o-1]===x(t));const s=null==(r=e.oldSignatures)?void 0:r.get(t),c=void 0!==s?s||void 0:n.signature;if(e.compilerOptions.composite){const n=e.program.getSourceFileByPath(t);if(!ef(n)&&Xy(n,e.program)){const n=null==(i=e.emitSignatures)?void 0:i.get(t);n!==c&&(m=ie(m,void 0===n?o:[o,Ze(n)||n[0]!==c?n:l]))}}return n.version===c?n.affectsGlobalScope||n.impliedFormat?{version:n.version,signature:void 0,affectsGlobalScope:n.affectsGlobalScope,impliedFormat:n.impliedFormat}:n.version:void 0!==c?void 0===s?n:{version:n.version,signature:c,affectsGlobalScope:n.affectsGlobalScope,impliedFormat:n.impliedFormat}:{version:n.version,signature:!1,affectsGlobalScope:n.affectsGlobalScope,impliedFormat:n.impliedFormat}});let h;(null==(t=e.referencedMap)?void 0:t.size())&&(h=Oe(e.referencedMap.keys()).sort(Ct).map(t=>[k(t),S(e.referencedMap.getValues(t))]));const y=D();let v;if(null==(n=e.affectedFilesPendingEmit)?void 0:n.size){const t=eW(e.compilerOptions),n=new Set;for(const r of Oe(e.affectedFilesPendingEmit.keys()).sort(Ct))if(q(n,r)){const n=e.program.getSourceFileByPath(r);if(!n||!Xy(n,e.program))continue;const i=k(r),o=e.affectedFilesPendingEmit.get(r);v=ie(v,o===t?i:24===o?[i]:[i,o])}}return{fileNames:a,fileIdsList:p,fileInfos:g,root:u,resolvedRoot:C(),options:w(e.compilerOptions),referencedMap:h,semanticDiagnosticsPerFile:y,emitDiagnosticsPerFile:F(),changeFileSet:O(),affectedFilesPendingEmit:v,emitSignatures:m,latestChangedDtsFile:o,errors:!!e.hasErrors||void 0,checkPending:e.checkPending,version:s};function b(e){return x(Bo(e,r))}function x(t){return $o(ra(i,t,e.program.getCanonicalFileName))}function k(e){let t=c.get(e);return void 0===t&&(a.push(x(e)),c.set(e,t=a.length)),t}function S(e){const t=Oe(e.keys(),k).sort(vt),n=t.join();let r=null==f?void 0:f.get(n);return void 0===r&&(p=ie(p,t),(f??(f=new Map)).set(n,r=p.length)),r}function T(t,n){const r=e.program.getSourceFile(t);if(!e.program.getFileIncludeReasons().get(r.path).some(e=>0===e.kind))return;if(!u.length)return u.push(n);const i=u[u.length-1],o=Qe(i);if(o&&i[1]===n-1)return i[1]=n;if(o||1===u.length||i!==n-1)return u.push(n);const a=u[u.length-2];return et(a)&&a===i-1?(u[u.length-2]=[a,n],u.length=u.length-1):u.push(n)}function C(){let t;return _.forEach(n=>{const r=e.program.getSourceFileByPath(n);r&&n!==r.resolvedPath&&(t=ie(t,[k(r.resolvedPath),k(n)]))}),t}function w(e){let t;const{optionsNameMap:n}=XO();for(const r of Ee(e).sort(Ct)){const i=n.get(r.toLowerCase());(null==i?void 0:i.affectsBuildInfo)&&((t||(t={}))[r]=N(i,e[r]))}return t}function N(e,t){if(e)if(un.assert("listOrElement"!==e.type),"list"===e.type){const n=t;if(e.element.isFilePath&&n.length)return n.map(b)}else if(e.isFilePath)return b(t);return t}function D(){let t;return e.fileInfos.forEach((n,r)=>{const i=e.semanticDiagnosticsPerFile.get(r);i?i.length&&(t=ie(t,[k(r),E(i,r)])):e.changedFilesSet.has(r)||(t=ie(t,k(r)))}),t}function F(){var t;let n;if(!(null==(t=e.emitDiagnosticsPerFile)?void 0:t.size))return n;for(const t of Oe(e.emitDiagnosticsPerFile.keys()).sort(Ct)){const r=e.emitDiagnosticsPerFile.get(t);n=ie(n,[k(t),E(r,t)])}return n}function E(e,t){return un.assert(!!e.length),e.map(e=>{const n=P(e,t);n.reportsUnnecessary=e.reportsUnnecessary,n.reportDeprecated=e.reportsDeprecated,n.source=e.source,n.skippedOn=e.skippedOn;const{relatedInformation:r}=e;return n.relatedInformation=r?r.length?r.map(e=>P(e,t)):[]:void 0,n})}function P(e,t){const{file:n}=e;return{...e,file:!!n&&(n.resolvedPath===t?void 0:x(n.resolvedPath)),messageText:Ze(e.messageText)?e.messageText:A(e.messageText)}}function A(e){if(e.repopulateInfo)return{info:e.repopulateInfo(),next:I(e.next)};const t=I(e.next);return t===e.next?e:{...e,next:t}}function I(e){return e&&d(e,(t,n)=>{const r=A(t);if(t===r)return;const i=n>0?e.slice(0,n-1):[];i.push(r);for(let t=n+1;t!!a.hasChangedEmitSignature,c.getAllDependencies=e=>XV.getAllDependencies(a,un.checkDefined(a.program),e),c.getSemanticDiagnostics=function(e,t){if(un.assert(ZV(a)),cW(a,e),e)return bW(a,e,t);for(;;){const e=g(t);if(!e)break;if(e.affected===a.program)return e.result}let n;for(const e of a.program.getSourceFiles())n=se(n,bW(a,e,t));return a.checkPending&&!a.compilerOptions.noCheck&&(a.checkPending=void 0,a.buildInfoEmitPending=!0),n||l},c.getDeclarationDiagnostics=function(t,n){var r;if(un.assert(ZV(a)),1===e){let e,i;for(cW(a,t);e=_(void 0,n,void 0,void 0,!0);)t||(i=se(i,e.result.diagnostics));return(t?null==(r=a.emitDiagnosticsPerFile)?void 0:r.get(t.resolvedPath):i)||l}{const e=a.program.getDeclarationDiagnostics(t,n);return m(t,void 0,!0,e),e}},c.emit=function(t,n,r,i,o){un.assert(ZV(a)),1===e&&cW(a,t);const s=zV(c,t,n,r);if(s)return s;if(!t){if(1===e){let e,t,a=[],s=!1,c=[];for(;t=p(n,r,i,o);)s=s||t.result.emitSkipped,e=se(e,t.result.diagnostics),c=se(c,t.result.emittedFiles),a=se(a,t.result.sourceMaps);return{emitSkipped:s,diagnostics:e||l,emittedFiles:c,sourceMaps:a}}_W(a,i,!1)}const _=a.program.emit(t,f(n,o),r,i,o);return m(t,i,!1,_.diagnostics),_},c.releaseProgram=()=>function(e){XV.releaseCache(e),e.program=void 0}(a),0===e?c.getSemanticDiagnosticsOfNextAffectedFile=g:1===e?(c.getSemanticDiagnosticsOfNextAffectedFile=g,c.emitNextAffectedFile=p,c.emitBuildInfo=function(e,t){if(un.assert(ZV(a)),CW(a)){const r=a.program.emitBuildInfo(e||We(n,n.writeFile),t);return a.buildInfoEmitPending=!1,r}return JV}):ut(),c;function _(e,t,r,i,o){var s,c,l,_;un.assert(ZV(a));let d=lW(a,t,n);const p=eW(a.compilerOptions);let m,g=o?8:r?56&p:p;if(!d){if(a.compilerOptions.outFile){if(a.programEmitPending&&(g=uW(a.programEmitPending,a.seenProgramEmit,r,o),g&&(d=a.program)),!d&&(null==(s=a.emitDiagnosticsPerFile)?void 0:s.size)){const e=a.seenProgramEmit||0;if(!(e&dW(o))){a.seenProgramEmit=dW(o)|e;const t=[];return a.emitDiagnosticsPerFile.forEach(e=>se(t,e)),{result:{emitSkipped:!0,diagnostics:t},affected:a.program}}}}else{const e=function(e,t,n){var r;if(null==(r=e.affectedFilesPendingEmit)?void 0:r.size)return rd(e.affectedFilesPendingEmit,(r,i)=>{var o;const a=e.program.getSourceFileByPath(i);if(!a||!Xy(a,e.program))return void e.affectedFilesPendingEmit.delete(i);const s=uW(r,null==(o=e.seenEmittedFiles)?void 0:o.get(a.resolvedPath),t,n);return s?{affectedFile:a,emitKind:s}:void 0})}(a,r,o);if(e)({affectedFile:d,emitKind:g}=e);else{const e=function(e,t){var n;if(null==(n=e.emitDiagnosticsPerFile)?void 0:n.size)return rd(e.emitDiagnosticsPerFile,(n,r)=>{var i;const o=e.program.getSourceFileByPath(r);if(!o||!Xy(o,e.program))return void e.emitDiagnosticsPerFile.delete(r);const a=(null==(i=e.seenEmittedFiles)?void 0:i.get(o.resolvedPath))||0;return a&dW(t)?void 0:{affectedFile:o,diagnostics:n,seenKind:a}})}(a,o);if(e)return(a.seenEmittedFiles??(a.seenEmittedFiles=new Map)).set(e.affectedFile.resolvedPath,e.seenKind|dW(o)),{result:{emitSkipped:!0,diagnostics:e.diagnostics},affected:e.affectedFile}}}if(!d){if(o||!CW(a))return;const r=a.program,i=r.emitBuildInfo(e||We(n,n.writeFile),t);return a.buildInfoEmitPending=!1,{result:i,affected:r}}}7&g&&(m=0),56&g&&(m=void 0===m?1:void 0);const h=o?{emitSkipped:!0,diagnostics:a.program.getDeclarationDiagnostics(d===a.program?void 0:d,t)}:a.program.emit(d===a.program?void 0:d,f(e,i),t,m,i,void 0,!0);if(d!==a.program){const e=d;a.seenAffectedFiles.add(e.resolvedPath),void 0!==a.affectedFilesIndex&&a.affectedFilesIndex++,a.buildInfoEmitPending=!0;const t=(null==(c=a.seenEmittedFiles)?void 0:c.get(e.resolvedPath))||0;(a.seenEmittedFiles??(a.seenEmittedFiles=new Map)).set(e.resolvedPath,g|t);const n=tW((null==(l=a.affectedFilesPendingEmit)?void 0:l.get(e.resolvedPath))||p,g|t);n?(a.affectedFilesPendingEmit??(a.affectedFilesPendingEmit=new Map)).set(e.resolvedPath,n):null==(_=a.affectedFilesPendingEmit)||_.delete(e.resolvedPath),h.diagnostics.length&&(a.emitDiagnosticsPerFile??(a.emitDiagnosticsPerFile=new Map)).set(e.resolvedPath,h.diagnostics)}else a.changedFilesSet.clear(),a.programEmitPending=a.changedFilesSet.size?tW(p,g):a.programEmitPending?tW(a.programEmitPending,g):void 0,a.seenProgramEmit=g|(a.seenProgramEmit||0),u(h.diagnostics),a.buildInfoEmitPending=!0;return{result:h,affected:d}}function u(e){let t;e.forEach(e=>{if(!e.file)return;let n=null==t?void 0:t.get(e.file.resolvedPath);n||(t??(t=new Map)).set(e.file.resolvedPath,n=[]),n.push(e)}),t&&(a.emitDiagnosticsPerFile=t)}function p(e,t,n,r){return _(e,t,n,r,!1)}function f(e,t){return un.assert(ZV(a)),Dk(a.compilerOptions)?(r,i,o,s,c,l)=>{var _,u,d;if(uO(r))if(a.compilerOptions.outFile){if(a.compilerOptions.composite){const e=p(a.outSignature,void 0);if(!e)return l.skippedDtsWrite=!0;a.outSignature=e}}else{let e;if(un.assert(1===(null==c?void 0:c.length)),!t){const t=c[0],r=a.fileInfos.get(t.resolvedPath);if(r.signature===t.version){const o=FW(a.program,t,i,n,l);(null==(_=null==l?void 0:l.diagnostics)?void 0:_.length)||(e=o),o!==t.version&&(n.storeSignatureInfo&&(a.signatureInfo??(a.signatureInfo=new Map)).set(t.resolvedPath,1),a.affectedFiles?(void 0===(null==(u=a.oldSignatures)?void 0:u.get(t.resolvedPath))&&(a.oldSignatures??(a.oldSignatures=new Map)).set(t.resolvedPath,r.signature||!1),r.signature=o):r.signature=o)}}if(a.compilerOptions.composite){const t=c[0].resolvedPath;if(e=p(null==(d=a.emitSignatures)?void 0:d.get(t),e),!e)return l.skippedDtsWrite=!0;(a.emitSignatures??(a.emitSignatures=new Map)).set(t,e)}}function p(e,t){const o=!e||Ze(e)?e:e[0];if(t??(t=function(e,t,n){return(t.createHash??Mi)(DW(e,n))}(i,n,l)),t===o){if(e===o)return;l?l.differsOnlyInMap=!0:l={differsOnlyInMap:!0}}else a.hasChangedEmitSignature=!0,a.latestChangedDtsFile=r;return t}e?e(r,i,o,s,c,l):n.writeFile?n.writeFile(r,i,o,s,c,l):a.program.writeFile(r,i,o,s,c,l)}:e||We(n,n.writeFile)}function m(t,n,r,i){t||1===e||(_W(a,n,r),u(i))}function g(e,t){for(un.assert(ZV(a));;){const r=lW(a,e,n);let i;if(!r)return void(a.checkPending&&!a.compilerOptions.noCheck&&(a.checkPending=void 0,a.buildInfoEmitPending=!0));if(r!==a.program){const n=r;if(t&&t(n)||(i=bW(a,n,e)),a.seenAffectedFiles.add(n.resolvedPath),a.affectedFilesIndex++,a.buildInfoEmitPending=!0,!i)continue}else{let t;const n=new Map;a.program.getSourceFiles().forEach(r=>t=se(t,bW(a,r,e,n))),a.semanticDiagnosticsPerFile=n,i=t||l,a.changedFilesSet.clear(),a.programEmitPending=eW(a.compilerOptions),a.compilerOptions.noCheck||(a.checkPending=void 0),a.buildInfoEmitPending=!0}return{result:i,affected:r}}}}function PW(e,t,n){var r,i;const o=(null==(r=e.affectedFilesPendingEmit)?void 0:r.get(t))||0;(e.affectedFilesPendingEmit??(e.affectedFilesPendingEmit=new Map)).set(t,o|n),null==(i=e.emitDiagnosticsPerFile)||i.delete(t)}function AW(e){return Ze(e)?{version:e,signature:e,affectsGlobalScope:void 0,impliedFormat:void 0}:Ze(e.signature)?e:{version:e.version,signature:!1===e.signature?void 0:e.version,affectsGlobalScope:e.affectsGlobalScope,impliedFormat:e.impliedFormat}}function IW(e,t){return et(e)?t:e[1]||24}function OW(e,t){return e||eW(t||{})}function LW(e,t,n){var r,i,o,a;const s=Do(Bo(t,n.getCurrentDirectory())),c=Wt(n.useCaseSensitiveFileNames());let _;const u=null==(r=e.fileNames)?void 0:r.map(function(e){return Uo(e,s,c)});let d;const p=e.latestChangedDtsFile?g(e.latestChangedDtsFile):void 0,f=new Map,m=new Set(E(e.changeFileSet,h));if(xW(e))e.fileInfos.forEach((e,t)=>{const n=h(t+1);f.set(n,Ze(e)?{version:e,signature:void 0,affectsGlobalScope:void 0,impliedFormat:void 0}:e)}),_={fileInfos:f,compilerOptions:e.options?QL(e.options,g):{},semanticDiagnosticsPerFile:y(e.semanticDiagnosticsPerFile),emitDiagnosticsPerFile:v(e.emitDiagnosticsPerFile),hasReusableDiagnostic:!0,changedFilesSet:m,latestChangedDtsFile:p,outSignature:e.outSignature,programEmitPending:void 0===e.pendingEmit?void 0:OW(e.pendingEmit,e.options),hasErrors:e.errors,checkPending:e.checkPending};else{d=null==(i=e.fileIdsList)?void 0:i.map(e=>new Set(e.map(h)));const t=(null==(o=e.options)?void 0:o.composite)&&!e.options.outFile?new Map:void 0;e.fileInfos.forEach((e,n)=>{const r=h(n+1),i=AW(e);f.set(r,i),t&&i.signature&&t.set(r,i.signature)}),null==(a=e.emitSignatures)||a.forEach(e=>{if(et(e))t.delete(h(e));else{const n=h(e[0]);t.set(n,Ze(e[1])||e[1].length?e[1]:[t.get(n)])}});const n=e.affectedFilesPendingEmit?eW(e.options||{}):void 0;_={fileInfos:f,compilerOptions:e.options?QL(e.options,g):{},referencedMap:function(e,t){const n=XV.createReferencedMap(t);return n&&e?(e.forEach(([e,t])=>n.set(h(e),d[t-1])),n):n}(e.referencedMap,e.options??{}),semanticDiagnosticsPerFile:y(e.semanticDiagnosticsPerFile),emitDiagnosticsPerFile:v(e.emitDiagnosticsPerFile),hasReusableDiagnostic:!0,changedFilesSet:m,affectedFilesPendingEmit:e.affectedFilesPendingEmit&&Me(e.affectedFilesPendingEmit,e=>h(et(e)?e:e[0]),e=>IW(e,n)),latestChangedDtsFile:p,emitSignatures:(null==t?void 0:t.size)?t:void 0,hasErrors:e.errors,checkPending:e.checkPending}}return{state:_,getProgram:ut,getProgramOrUndefined:at,releaseProgram:rt,getCompilerOptions:()=>_.compilerOptions,getSourceFile:ut,getSourceFiles:ut,getOptionsDiagnostics:ut,getGlobalDiagnostics:ut,getConfigFileParsingDiagnostics:ut,getSyntacticDiagnostics:ut,getDeclarationDiagnostics:ut,getSemanticDiagnostics:ut,emit:ut,getAllDependencies:ut,getCurrentDirectory:ut,emitNextAffectedFile:ut,getSemanticDiagnosticsOfNextAffectedFile:ut,emitBuildInfo:ut,close:rt,hasChangedEmitSignature:it};function g(e){return Bo(e,s)}function h(e){return u[e-1]}function y(e){const t=new Map(J(f.keys(),e=>m.has(e)?void 0:[e,l]));return null==e||e.forEach(e=>{et(e)?t.delete(h(e)):t.set(h(e[0]),e[1])}),t}function v(e){return e&&Me(e,e=>h(e[0]),e=>e[1])}}function jW(e,t,n){const r=Do(Bo(t,n.getCurrentDirectory())),i=Wt(n.useCaseSensitiveFileNames()),o=new Map;let a=0;const s=new Map,c=new Map(e.resolvedRoot);return e.fileInfos.forEach((t,n)=>{const s=Uo(e.fileNames[n],r,i),c=Ze(t)?t:t.version;if(o.set(s,c),aUo(e,i,o))}function RW(e,t){return{state:void 0,getProgram:n,getProgramOrUndefined:()=>e.program,releaseProgram:()=>e.program=void 0,getCompilerOptions:()=>e.compilerOptions,getSourceFile:e=>n().getSourceFile(e),getSourceFiles:()=>n().getSourceFiles(),getOptionsDiagnostics:e=>n().getOptionsDiagnostics(e),getGlobalDiagnostics:e=>n().getGlobalDiagnostics(e),getConfigFileParsingDiagnostics:()=>t,getSyntacticDiagnostics:(e,t)=>n().getSyntacticDiagnostics(e,t),getDeclarationDiagnostics:(e,t)=>n().getDeclarationDiagnostics(e,t),getSemanticDiagnostics:(e,t)=>n().getSemanticDiagnostics(e,t),emit:(e,t,r,i,o)=>n().emit(e,t,r,i,o),emitBuildInfo:(e,t)=>n().emitBuildInfo(e,t),getAllDependencies:ut,getCurrentDirectory:()=>n().getCurrentDirectory(),close:rt};function n(){return un.checkDefined(e.program)}}function BW(e,t,n,r,i,o){return EW(0,NW(e,t,n,r,i,o))}function JW(e,t,n,r,i,o){return EW(1,NW(e,t,n,r,i,o))}function zW(e,t,n,r,i,o){const{newProgram:a,configFileParsingDiagnostics:s}=NW(e,t,n,r,i,o);return RW({program:a,compilerOptions:a.getCompilerOptions()},s)}function qW(e){return Mt(e,"/node_modules/.staging")?Rt(e,"/.staging"):$(Qi,t=>e.includes(t))?void 0:e}function UW(e,t){if(t<=1)return 1;let n=1,r=0===e[0].search(/[a-z]:/i);if(e[0]!==lo&&!r&&0===e[1].search(/[a-z]\$$/i)){if(2===t)return 2;n=2,r=!0}return r&&!e[n].match(/^users$/i)?n:e[n].match(/^workspaces$/i)?n+1:n+2}function VW(e,t){return void 0===t&&(t=e.length),!(t<=2)&&t>UW(e,t)+1}function WW(e){return VW(Ao(e))}function $W(e){return KW(Do(e))}function HW(e,t){if(t.lengthi.length+1?YW(l,c,Math.max(i.length+1,_+1),d):{dir:n,dirPath:r,nonRecursive:!0}:QW(l,c,c.length-1,_,u,i,d,s)}function QW(e,t,n,r,i,o,a,s){if(-1!==i)return YW(e,t,i+1,a);let c=!0,l=n;if(!s)for(let e=0;e=n&&r+2function(e,t,n,r,i,o,a){const s=t$(e),c=MM(n,r,i,s,t,o,a);if(!e.getGlobalTypingsCacheLocation)return c;const l=e.getGlobalTypingsCacheLocation();if(!(void 0===l||Cs(n)||c.resolvedModule&&QS(c.resolvedModule.extension))){const{resolvedModule:r,failedLookupLocations:o,affectingLocations:a,resolutionDiagnostics:_}=RR(un.checkDefined(e.globalCacheResolutionModuleName)(n),e.projectName,i,s,l,t);if(r)return c.resolvedModule=r,c.failedLookupLocations=aM(c.failedLookupLocations,o),c.affectingLocations=aM(c.affectingLocations,a),c.resolutionDiagnostics=aM(c.resolutionDiagnostics,_),c}return c}(r,i,o,e,n,t,a)}}function r$(e,t,n){let r,i,o;const a=new Set,s=new Set,c=new Set,_=new Map,u=new Map;let d,p,f,g,h,y=!1,v=!1;const b=dt(()=>e.getCurrentDirectory()),x=e.getCachedDirectoryStructureHost(),k=new Map,S=AM(b(),e.getCanonicalFileName,e.getCompilationSettings()),T=new Map,C=IM(b(),e.getCanonicalFileName,e.getCompilationSettings(),S.getPackageJsonInfoCache(),S.optionsToRedirectsKey),w=new Map,N=AM(b(),e.getCanonicalFileName,OM(e.getCompilationSettings()),S.getPackageJsonInfoCache()),D=new Map,F=new Map,E=e$(t,b),P=e.toPath(E),A=Ao(P),I=VW(A),O=new Map,L=new Map,j=new Map,M=new Map;return{rootDirForResolution:t,resolvedModuleNames:k,resolvedTypeReferenceDirectives:T,resolvedLibraries:w,resolvedFileToResolution:_,resolutionsWithFailedLookups:s,resolutionsWithOnlyAffectingLocations:c,directoryWatchesOfFailedLookups:D,fileWatchesOfAffectingLocations:F,packageDirWatchers:L,dirPathToSymlinkPackageRefCount:j,watchFailedLookupLocationsOfExternalModuleResolutions:V,getModuleResolutionCache:()=>S,startRecordingFilesWithChangedResolutions:function(){r=[]},finishRecordingFilesWithChangedResolutions:function(){const e=r;return r=void 0,e},startCachingPerDirectoryResolution:function(){S.isReadonly=void 0,C.isReadonly=void 0,N.isReadonly=void 0,S.getPackageJsonInfoCache().isReadonly=void 0,S.clearAllExceptPackageJsonInfoCache(),C.clearAllExceptPackageJsonInfoCache(),N.clearAllExceptPackageJsonInfoCache(),X(),O.clear()},finishCachingPerDirectoryResolution:function(t,n){o=void 0,v=!1,X(),t!==n&&(function(t){w.forEach((n,r)=>{var i;(null==(i=null==t?void 0:t.resolvedLibReferences)?void 0:i.has(r))||(ee(n,e.toPath(CV(e.getCompilationSettings(),b(),r)),_d),w.delete(r))})}(t),null==t||t.getSourceFiles().forEach(e=>{var t;const n=(null==(t=e.packageJsonLocations)?void 0:t.length)??0,r=u.get(e.resolvedPath)??l;for(let t=r.length;tn)for(let e=n;e{const r=null==t?void 0:t.getSourceFileByPath(n);r&&r.resolvedPath===n||(e.forEach(e=>F.get(e).files--),u.delete(n))})),D.forEach(J),F.forEach(z),L.forEach(B),y=!1,S.isReadonly=!0,C.isReadonly=!0,N.isReadonly=!0,S.getPackageJsonInfoCache().isReadonly=!0,O.clear()},resolveModuleNameLiterals:function(t,r,i,o,a,s){return q({entries:t,containingFile:r,containingSourceFile:a,redirectedReference:i,options:o,reusedNames:s,perFileCache:k,loader:n$(r,i,o,e,S),getResolutionWithResolvedFileName:_d,shouldRetryResolution:e=>!e.resolvedModule||!YS(e.resolvedModule.extension),logChanges:n,deferWatchingNonRelativeResolution:!0})},resolveTypeReferenceDirectiveReferences:function(t,n,r,i,o,a){return q({entries:t,containingFile:n,containingSourceFile:o,redirectedReference:r,options:i,reusedNames:a,perFileCache:T,loader:kV(n,r,i,t$(e),C),getResolutionWithResolvedFileName:ud,shouldRetryResolution:e=>void 0===e.resolvedTypeReferenceDirective,deferWatchingNonRelativeResolution:!1})},resolveLibrary:function(t,n,r,i){const o=t$(e);let a=null==w?void 0:w.get(i);if(!a||a.isInvalidated){const s=a;a=LM(t,n,r,o,N);const c=e.toPath(n);V(t,a,c,_d,!1),w.set(i,a),s&&ee(s,c,_d)}else if(Qj(r,o)){const e=_d(a);Xj(o,(null==e?void 0:e.resolvedFileName)?e.packageId?_a.Reusing_resolution_of_module_0_from_1_of_old_program_it_was_successfully_resolved_to_2_with_Package_ID_3:_a.Reusing_resolution_of_module_0_from_1_of_old_program_it_was_successfully_resolved_to_2:_a.Reusing_resolution_of_module_0_from_1_of_old_program_it_was_not_resolved,t,n,null==e?void 0:e.resolvedFileName,(null==e?void 0:e.packageId)&&md(e.packageId))}return a},resolveSingleModuleNameWithoutWatching:function(t,n){var r,i;const o=e.toPath(n),a=k.get(o),s=null==a?void 0:a.get(t,void 0);if(s&&!s.isInvalidated)return s;const c=null==(r=e.beforeResolveSingleModuleNameWithoutWatching)?void 0:r.call(e,S),l=t$(e),_=MM(t,n,e.getCompilationSettings(),l,S);return null==(i=e.afterResolveSingleModuleNameWithoutWatching)||i.call(e,S,t,n,_,c),_},removeResolutionsFromProjectReferenceRedirects:function(t){if(!ko(t,".json"))return;const n=e.getCurrentProgram();if(!n)return;const r=n.getResolvedProjectReferenceByPath(t);r&&r.commandLine.fileNames.forEach(t=>ie(e.toPath(t)))},removeResolutionsOfFile:ie,hasChangedAutomaticTypeDirectiveNames:()=>y,invalidateResolutionOfFile:function(t){ie(t);const n=y;oe(_.get(t),ot)&&y&&!n&&e.onChangedAutomaticTypeDirectiveNames()},invalidateResolutionsOfFailedLookupLocations:ce,setFilesWithInvalidatedNonRelativeUnresolvedImports:function(e){un.assert(o===e||void 0===o),o=e},createHasInvalidatedResolutions:function(e,t){ce();const n=i;return i=void 0,{hasInvalidatedResolutions:t=>e(t)||v||!!(null==n?void 0:n.has(t))||R(t),hasInvalidatedLibResolutions:e=>{var n;return t(e)||!!(null==(n=null==w?void 0:w.get(e))?void 0:n.isInvalidated)}}},isFileWithInvalidatedNonRelativeUnresolvedImports:R,updateTypeRootsWatch:function(){const t=e.getCompilationSettings();if(t.types)return void de();const n=uM(t,{getCurrentDirectory:b});n?px(M,new Set(n),{createNewValue:pe,onDeleteValue:nx}):de()},closeTypeRootsWatch:de,clear:function(){ux(D,RU),ux(F,RU),O.clear(),L.clear(),j.clear(),a.clear(),de(),k.clear(),T.clear(),_.clear(),s.clear(),c.clear(),f=void 0,g=void 0,h=void 0,p=void 0,d=void 0,v=!1,S.clear(),C.clear(),S.update(e.getCompilationSettings()),C.update(e.getCompilationSettings()),N.clear(),u.clear(),w.clear(),y=!1},onChangesAffectModuleResolution:function(){v=!0,S.clearAllExceptPackageJsonInfoCache(),C.clearAllExceptPackageJsonInfoCache(),S.update(e.getCompilationSettings()),C.update(e.getCompilationSettings())}};function R(e){if(!o)return!1;const t=o.get(e);return!!t&&!!t.length}function B(e,t){0===e.dirPathToWatcher.size&&L.delete(t)}function J(e,t){0===e.refCount&&(D.delete(t),e.watcher.close())}function z(e,t){var n;0!==e.files||0!==e.resolutions||(null==(n=e.symlinks)?void 0:n.size)||(F.delete(t),e.watcher.close())}function q({entries:t,containingFile:n,containingSourceFile:i,redirectedReference:o,options:a,perFileCache:s,reusedNames:c,loader:l,getResolutionWithResolvedFileName:_,deferWatchingNonRelativeResolution:u,shouldRetryResolution:d,logChanges:p}){var f;const m=e.toPath(n),g=s.get(m)||s.set(m,DM()).get(m),h=[],y=p&&R(m),b=e.getCurrentProgram(),x=b&&(null==(f=b.getRedirectFromSourceFile(n))?void 0:f.resolvedRef),S=x?!o||o.sourceFile.path!==x.sourceFile.path:!!o,T=DM();for(const c of t){const t=l.nameAndMode.getName(c),f=l.nameAndMode.getMode(c,i,(null==o?void 0:o.commandLine.options)||a);let b=g.get(t,f);if(!T.has(t,f)&&(v||S||!b||b.isInvalidated||y&&!Cs(t)&&d(b))){const n=b;b=l.resolve(t,f),e.onDiscoveredSymlink&&i$(b)&&e.onDiscoveredSymlink(),g.set(t,f,b),b!==n&&(V(t,b,m,_,u),n&&ee(n,m,_)),p&&r&&!C(n,b)&&(r.push(m),p=!1)}else{const r=t$(e);if(Qj(a,r)&&!T.has(t,f)){const e=_(b);Xj(r,s===k?(null==e?void 0:e.resolvedFileName)?e.packageId?_a.Reusing_resolution_of_module_0_from_1_of_old_program_it_was_successfully_resolved_to_2_with_Package_ID_3:_a.Reusing_resolution_of_module_0_from_1_of_old_program_it_was_successfully_resolved_to_2:_a.Reusing_resolution_of_module_0_from_1_of_old_program_it_was_not_resolved:(null==e?void 0:e.resolvedFileName)?e.packageId?_a.Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_successfully_resolved_to_2_with_Package_ID_3:_a.Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_successfully_resolved_to_2:_a.Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_not_resolved,t,n,null==e?void 0:e.resolvedFileName,(null==e?void 0:e.packageId)&&md(e.packageId))}}un.assert(void 0!==b&&!b.isInvalidated),T.set(t,f,!0),h.push(b)}return null==c||c.forEach(e=>T.set(l.nameAndMode.getName(e),l.nameAndMode.getMode(e,i,(null==o?void 0:o.commandLine.options)||a),!0)),g.size()!==T.size()&&g.forEach((e,t,n)=>{T.has(t,n)||(ee(e,m,_),g.delete(t,n))}),h;function C(e,t){if(e===t)return!0;if(!e||!t)return!1;const n=_(e),r=_(t);return n===r||!(!n||!r)&&n.resolvedFileName===r.resolvedFileName}}function U(e){return Mt(e,"/node_modules/@types")}function V(t,n,r,i,o){if((n.files??(n.files=new Set)).add(r),1!==n.files.size)return;!o||Cs(t)?H(n):a.add(n);const s=i(n);if(s&&s.resolvedFileName){const t=e.toPath(s.resolvedFileName);let r=_.get(t);r||_.set(t,r=new Set),r.add(n)}}function W(t,n){const r=XW(t,e.toPath(t),E,P,A,I,b,e.preferNonRecursiveWatch);if(r){const{dir:e,dirPath:t,nonRecursive:i,packageDir:o,packageDirPath:a}=r;t===P?(un.assert(i),un.assert(!o),n=!0):Q(e,t,o,a,i)}return n}function H(e){var t;un.assert(!!(null==(t=e.files)?void 0:t.size));const{failedLookupLocations:n,affectingLocations:r,alternateResult:i}=e;if(!(null==n?void 0:n.length)&&!(null==r?void 0:r.length)&&!i)return;((null==n?void 0:n.length)||i)&&s.add(e);let o=!1;if(n)for(const e of n)o=W(e,o);i&&(o=W(i,o)),o&&Q(E,P,void 0,void 0,!0),function(e,t){var n;un.assert(!!(null==(n=e.files)?void 0:n.size));const{affectingLocations:r}=e;if(null==r?void 0:r.length){t&&c.add(e);for(const e of r)K(e,!0)}}(e,!(null==n?void 0:n.length)&&!i)}function K(t,n){const r=F.get(t);if(r)return void(n?r.resolutions++:r.files++);let i,o=t,a=!1;e.realpath&&(o=e.realpath(t),t!==o&&(a=!0,i=F.get(o)));const s=n?1:0,c=n?0:1;if(!a||!i){const t={watcher:GW(e.toPath(o))?e.watchAffectingFileLocation(o,(t,n)=>{null==x||x.addOrDeleteFile(t,e.toPath(o),n),G(o,S.getPackageJsonInfoCache().getInternalMap()),e.scheduleInvalidateResolutionsOfFailedLookupLocations()}):w$,resolutions:a?0:s,files:a?0:c,symlinks:void 0};F.set(o,t),a&&(i=t)}if(a){un.assert(!!i);const e={watcher:{close:()=>{var e;const n=F.get(o);!(null==(e=null==n?void 0:n.symlinks)?void 0:e.delete(t))||n.symlinks.size||n.resolutions||n.files||(F.delete(o),n.watcher.close())}},resolutions:s,files:c,symlinks:void 0};F.set(t,e),(i.symlinks??(i.symlinks=new Set)).add(t)}}function G(t,n){var r;const i=F.get(t);(null==i?void 0:i.resolutions)&&(p??(p=new Set)).add(t),(null==i?void 0:i.files)&&(d??(d=new Set)).add(t),null==(r=null==i?void 0:i.symlinks)||r.forEach(e=>G(e,n)),null==n||n.delete(e.toPath(t))}function X(){a.forEach(H),a.clear()}function Q(t,n,r,i,o){i&&e.realpath?function(t,n,r,i,o){un.assert(!o);let a=O.get(i),s=L.get(i);if(void 0===a){const t=e.realpath(r);a=t!==r&&e.toPath(t)!==i,O.set(i,a),s?s.isSymlink!==a&&(s.dirPathToWatcher.forEach(e=>{te(s.isSymlink?i:n),e.watcher=l()}),s.isSymlink=a):L.set(i,s={dirPathToWatcher:new Map,isSymlink:a})}else un.assertIsDefined(s),un.assert(a===s.isSymlink);const c=s.dirPathToWatcher.get(n);function l(){return a?Y(r,i,o):Y(t,n,o)}c?c.refCount++:(s.dirPathToWatcher.set(n,{watcher:l(),refCount:1}),a&&j.set(n,(j.get(n)??0)+1))}(t,n,r,i,o):Y(t,n,o)}function Y(e,t,n){let r=D.get(t);return r?(un.assert(!!n==!!r.nonRecursive),r.refCount++):D.set(t,r={watcher:ne(e,t,n),refCount:1,nonRecursive:n}),r}function Z(t,n){const r=XW(t,e.toPath(t),E,P,A,I,b,e.preferNonRecursiveWatch);if(r){const{dirPath:t,packageDirPath:i}=r;if(t===P)n=!0;else if(i&&e.realpath){const e=L.get(i),n=e.dirPathToWatcher.get(t);if(n.refCount--,0===n.refCount&&(te(e.isSymlink?i:t),e.dirPathToWatcher.delete(t),e.isSymlink)){const e=j.get(t)-1;0===e?j.delete(t):j.set(t,e)}}else te(t)}return n}function ee(t,n,r){if(un.checkDefined(t.files).delete(n),t.files.size)return;t.files=void 0;const i=r(t);if(i&&i.resolvedFileName){const n=e.toPath(i.resolvedFileName),r=_.get(n);(null==r?void 0:r.delete(t))&&!r.size&&_.delete(n)}const{failedLookupLocations:o,affectingLocations:a,alternateResult:l}=t;if(s.delete(t)){let e=!1;if(o)for(const t of o)e=Z(t,e);l&&(e=Z(l,e)),e&&te(P)}else(null==a?void 0:a.length)&&c.delete(t);if(a)for(const e of a)F.get(e).resolutions--}function te(e){D.get(e).refCount--}function ne(t,n,r){return e.watchDirectoryOfFailedLookupLocation(t,t=>{const r=e.toPath(t);x&&x.addOrDeleteFileOrDirectory(t,r),ae(r,n===r)},r?0:1)}function re(e,t,n){const r=e.get(t);r&&(r.forEach(e=>ee(e,t,n)),e.delete(t))}function ie(e){re(k,e,_d),re(T,e,ud)}function oe(e,t){if(!e)return!1;let n=!1;return e.forEach(e=>{if(!e.isInvalidated&&t(e)){e.isInvalidated=n=!0;for(const t of un.checkDefined(e.files))(i??(i=new Set)).add(t),y=y||Mt(t,TV)}}),n}function ae(t,n){if(n)(h||(h=new Set)).add(t);else{const n=qW(t);if(!n)return!1;if(t=n,e.fileIsOpen(t))return!1;const r=Do(t);if(U(t)||ca(t)||U(r)||ca(r))(f||(f=new Set)).add(t),(g||(g=new Set)).add(t);else{if(OU(e.getCurrentProgram(),t))return!1;if(ko(t,".map"))return!1;(f||(f=new Set)).add(t),(g||(g=new Set)).add(t);const n=XM(t,!0);n&&(g||(g=new Set)).add(n)}}e.scheduleInvalidateResolutionsOfFailedLookupLocations()}function se(){const e=S.getPackageJsonInfoCache().getInternalMap();e&&(f||g||h)&&e.forEach((t,n)=>_e(n)?e.delete(n):void 0)}function ce(){var t;if(v)return d=void 0,se(),(f||g||h||p)&&oe(w,le),f=void 0,g=void 0,h=void 0,p=void 0,!0;let n=!1;return d&&(null==(t=e.getCurrentProgram())||t.getSourceFiles().forEach(e=>{$(e.packageJsonLocations,e=>d.has(e))&&((i??(i=new Set)).add(e.path),n=!0)}),d=void 0),f||g||h||p?(n=oe(s,le)||n,se(),f=void 0,g=void 0,h=void 0,n=oe(c,ue)||n,p=void 0,n):n}function le(t){var n;return!!ue(t)||!!(f||g||h)&&((null==(n=t.failedLookupLocations)?void 0:n.some(t=>_e(e.toPath(t))))||!!t.alternateResult&&_e(e.toPath(t.alternateResult)))}function _e(e){return(null==f?void 0:f.has(e))||m((null==g?void 0:g.keys())||[],t=>!!Gt(e,t)||void 0)||m((null==h?void 0:h.keys())||[],t=>!(!(e.length>t.length&&Gt(e,t))||!ho(t)&&e[t.length]!==lo)||void 0)}function ue(e){var t;return!!p&&(null==(t=e.affectingLocations)?void 0:t.some(e=>p.has(e)))}function de(){ux(M,nx)}function pe(t){return function(t){return!!e.getCompilationSettings().typeRoots||$W(e.toPath(t))}(t)?e.watchTypeRootsDirectory(t,n=>{const r=e.toPath(n);x&&x.addOrDeleteFileOrDirectory(n,r),y=!0,e.onChangedAutomaticTypeDirectiveNames();const i=ZW(t,e.toPath(t),P,A,I,b,e.preferNonRecursiveWatch,e=>D.has(e)||j.has(e));i&&ae(r,i===r)},1):w$}}function i$(e){var t,n;return!(!(null==(t=e.resolvedModule)?void 0:t.originalPath)&&!(null==(n=e.resolvedTypeReferenceDirective)?void 0:n.originalPath))}var o$=so?{getCurrentDirectory:()=>so.getCurrentDirectory(),getNewLine:()=>so.newLine,getCanonicalFileName:Wt(so.useCaseSensitiveFileNames)}:void 0;function a$(e,t){const n=e===so&&o$?o$:{getCurrentDirectory:()=>e.getCurrentDirectory(),getNewLine:()=>e.newLine,getCanonicalFileName:Wt(e.useCaseSensitiveFileNames)};if(!t)return t=>e.write(GU(t,n));const r=new Array(1);return t=>{r[0]=t,e.write(sV(r,n)+n.getNewLine()),r[0]=void 0}}function s$(e,t,n){return!(!e.clearScreen||n.preserveWatchOutput||n.extendedDiagnostics||n.diagnostics||!T(c$,t.code)||(e.clearScreen(),0))}var c$=[_a.Starting_compilation_in_watch_mode.code,_a.File_change_detected_Starting_incremental_compilation.code];function l$(e){return e.now?e.now().toLocaleTimeString("en-US",{timeZone:"UTC"}).replace(" "," "):(new Date).toLocaleTimeString()}function _$(e,t){return t?(t,n,r)=>{s$(e,t,r);let i=`[${iV(l$(e),"")}] `;i+=`${cV(t.messageText,e.newLine)}${n+n}`,e.write(i)}:(t,n,r)=>{let i="";s$(e,t,r)||(i+=n),i+=`${l$(e)} - `,i+=`${cV(t.messageText,e.newLine)}${function(e,t){return T(c$,e.code)?t+t:t}(t,n)}`,e.write(i)}}function u$(e,t,n,r,i,o){const a=i;a.onUnRecoverableConfigFileDiagnostic=e=>j$(i,o,e);const s=gL(e,t,a,n,r);return a.onUnRecoverableConfigFileDiagnostic=void 0,s}function d$(e){return w(e,e=>1===e.category)}function p$(e){return N(e,e=>1===e.category).map(e=>{if(void 0!==e.file)return`${e.file.fileName}`}).map(t=>{if(void 0===t)return;const n=b(e,e=>void 0!==e.file&&e.file.fileName===t);if(void 0!==n){const{line:e}=za(n.file,n.start);return{fileName:t,line:e+1}}})}function f$(e){return 1===e?_a.Found_1_error_Watching_for_file_changes:_a.Found_0_errors_Watching_for_file_changes}function m$(e,t){const n=iV(":"+e.line,"");return yo(e.fileName)&&yo(t)?ra(t,e.fileName,!1)+n:e.fileName+n}function g$(e,t,n,r){if(0===e)return"";const i=t.filter(e=>void 0!==e),o=i.map(e=>`${e.fileName}:${e.line}`).filter((e,t,n)=>n.indexOf(e)===t),a=i[0]&&m$(i[0],r.getCurrentDirectory());let s;s=1===e?void 0!==t[0]?[_a.Found_1_error_in_0,a]:[_a.Found_1_error]:0===o.length?[_a.Found_0_errors,e]:1===o.length?[_a.Found_0_errors_in_the_same_file_starting_at_Colon_1,e,a]:[_a.Found_0_errors_in_1_files,e,o.length];const c=Qx(...s),l=o.length>1?function(e,t){const n=e.filter((e,t,n)=>t===n.findIndex(t=>(null==t?void 0:t.fileName)===(null==e?void 0:e.fileName)));if(0===n.length)return"";const r=e=>Math.log(e)*Math.LOG10E+1,i=n.map(t=>[t,w(e,e=>e.fileName===t.fileName)]),o=xt(i,0,e=>e[1]),a=_a.Errors_Files.message,s=a.split(" ")[0].length,c=Math.max(s,r(o)),l=Math.max(r(o)-s,0);let _="";return _+=" ".repeat(l)+a+"\n",i.forEach(e=>{const[n,r]=e,i=Math.log(r)*Math.LOG10E+1|0,o=iia(t,e.getCurrentDirectory(),e.getCanonicalFileName);for(const a of e.getSourceFiles())t(`${S$(a,o)}`),null==(n=i.get(a.path))||n.forEach(n=>t(` ${k$(e,n,o).messageText}`)),null==(r=v$(a,e.getCompilerOptionsForFile(a),o))||r.forEach(e=>t(` ${e.messageText}`))}function v$(e,t,n){var r;let i;if(e.path!==e.resolvedPath&&(i??(i=[])).push(Zx(void 0,_a.File_is_output_of_project_reference_source_0,S$(e.originalFileName,n))),e.redirectInfo&&(i??(i=[])).push(Zx(void 0,_a.File_redirects_to_file_0,S$(e.redirectInfo.redirectTarget,n))),Zp(e))switch(RV(e,t)){case 99:e.packageJsonScope&&(i??(i=[])).push(Zx(void 0,_a.File_is_ECMAScript_module_because_0_has_field_type_with_value_module,S$(ve(e.packageJsonLocations),n)));break;case 1:e.packageJsonScope?(i??(i=[])).push(Zx(void 0,e.packageJsonScope.contents.packageJsonContent.type?_a.File_is_CommonJS_module_because_0_has_field_type_whose_value_is_not_module:_a.File_is_CommonJS_module_because_0_does_not_have_field_type,S$(ve(e.packageJsonLocations),n))):(null==(r=e.packageJsonLocations)?void 0:r.length)&&(i??(i=[])).push(Zx(void 0,_a.File_is_CommonJS_module_because_package_json_was_not_found))}return i}function b$(e,t){var n;const r=e.getCompilerOptions().configFile;if(!(null==(n=null==r?void 0:r.configFileSpecs)?void 0:n.validatedFilesSpec))return;const i=e.getCanonicalFileName(t),o=Do(Bo(r.fileName,e.getCurrentDirectory())),a=k(r.configFileSpecs.validatedFilesSpec,t=>e.getCanonicalFileName(Bo(t,o))===i);return-1!==a?r.configFileSpecs.validatedFilesSpecBeforeSubstitution[a]:void 0}function x$(e,t){var n,r;const i=e.getCompilerOptions().configFile;if(!(null==(n=null==i?void 0:i.configFileSpecs)?void 0:n.validatedIncludeSpecs))return;if(i.configFileSpecs.isDefaultIncludeSpec)return!0;const o=ko(t,".json"),a=Do(Bo(i.fileName,e.getCurrentDirectory())),s=e.useCaseSensitiveFileNames(),c=k(null==(r=null==i?void 0:i.configFileSpecs)?void 0:r.validatedIncludeSpecs,e=>{if(o&&!Mt(e,".json"))return!1;const n=dS(e,a,"files");return!!n&&gS(`(?:${n})$`,s).test(t)});return-1!==c?i.configFileSpecs.validatedIncludeSpecsBeforeSubstitution[c]:void 0}function k$(e,t,n){var r,i;const o=e.getCompilerOptions();if(NV(t)){const r=FV(e,t),i=DV(r)?r.file.text.substring(r.pos,r.end):`"${r.text}"`;let o;switch(un.assert(DV(r)||3===t.kind,"Only synthetic references are imports"),t.kind){case 3:o=DV(r)?r.packageId?_a.Imported_via_0_from_file_1_with_packageId_2:_a.Imported_via_0_from_file_1:r.text===Uu?r.packageId?_a.Imported_via_0_from_file_1_with_packageId_2_to_import_importHelpers_as_specified_in_compilerOptions:_a.Imported_via_0_from_file_1_to_import_importHelpers_as_specified_in_compilerOptions:r.packageId?_a.Imported_via_0_from_file_1_with_packageId_2_to_import_jsx_and_jsxs_factory_functions:_a.Imported_via_0_from_file_1_to_import_jsx_and_jsxs_factory_functions;break;case 4:un.assert(!r.packageId),o=_a.Referenced_via_0_from_file_1;break;case 5:o=r.packageId?_a.Type_library_referenced_via_0_from_file_1_with_packageId_2:_a.Type_library_referenced_via_0_from_file_1;break;case 7:un.assert(!r.packageId),o=_a.Library_referenced_via_0_from_file_1;break;default:un.assertNever(t)}return Zx(void 0,o,i,S$(r.file,n),r.packageId&&md(r.packageId))}switch(t.kind){case 0:if(!(null==(r=o.configFile)?void 0:r.configFileSpecs))return Zx(void 0,_a.Root_file_specified_for_compilation);const a=Bo(e.getRootFileNames()[t.index],e.getCurrentDirectory());if(b$(e,a))return Zx(void 0,_a.Part_of_files_list_in_tsconfig_json);const s=x$(e,a);return Ze(s)?Zx(void 0,_a.Matched_by_include_pattern_0_in_1,s,S$(o.configFile,n)):Zx(void 0,s?_a.Matched_by_default_include_pattern_Asterisk_Asterisk_Slash_Asterisk:_a.Root_file_specified_for_compilation);case 1:case 2:const c=2===t.kind,l=un.checkDefined(null==(i=e.getResolvedProjectReferences())?void 0:i[t.index]);return Zx(void 0,o.outFile?c?_a.Output_from_referenced_project_0_included_because_1_specified:_a.Source_from_referenced_project_0_included_because_1_specified:c?_a.Output_from_referenced_project_0_included_because_module_is_specified_as_none:_a.Source_from_referenced_project_0_included_because_module_is_specified_as_none,S$(l.sourceFile.fileName,n),o.outFile?"--outFile":"--out");case 8:return Zx(void 0,...o.types?t.packageId?[_a.Entry_point_of_type_library_0_specified_in_compilerOptions_with_packageId_1,t.typeReference,md(t.packageId)]:[_a.Entry_point_of_type_library_0_specified_in_compilerOptions,t.typeReference]:t.packageId?[_a.Entry_point_for_implicit_type_library_0_with_packageId_1,t.typeReference,md(t.packageId)]:[_a.Entry_point_for_implicit_type_library_0,t.typeReference]);case 6:{if(void 0!==t.index)return Zx(void 0,_a.Library_0_specified_in_compilerOptions,o.lib[t.index]);const e=zk(yk(o));return Zx(void 0,...e?[_a.Default_library_for_target_0,e]:[_a.Default_library])}default:un.assertNever(t)}}function S$(e,t){const n=Ze(e)?e:e.fileName;return t?t(n):n}function T$(e,t,n,r,i,o,a,s){const c=e.getCompilerOptions(),_=e.getConfigFileParsingDiagnostics().slice(),u=_.length;se(_,e.getSyntacticDiagnostics(void 0,o)),_.length===u&&(se(_,e.getOptionsDiagnostics(o)),c.listFilesOnly||(se(_,e.getGlobalDiagnostics(o)),_.length===u&&se(_,e.getSemanticDiagnostics(void 0,o)),c.noEmit&&Dk(c)&&_.length===u&&se(_,e.getDeclarationDiagnostics(void 0,o))));const p=c.listFilesOnly?{emitSkipped:!0,diagnostics:l}:e.emit(void 0,i,o,a,s);se(_,p.diagnostics);const f=ws(_);if(f.forEach(t),n){const t=e.getCurrentDirectory();d(p.emittedFiles,e=>{const r=Bo(e,t);n(`TSFILE: ${r}`)}),function(e,t){const n=e.getCompilerOptions();n.explainFiles?y$(h$(e)?e.getProgram():e,t):(n.listFiles||n.listFilesOnly)&&d(e.getSourceFiles(),e=>{t(e.fileName)})}(e,n)}return r&&r(d$(f),p$(f)),{emitResult:p,diagnostics:f}}function C$(e,t,n,r,i,o,a,s){const{emitResult:c,diagnostics:l}=T$(e,t,n,r,i,o,a,s);return c.emitSkipped&&l.length>0?1:l.length>0?2:0}var w$={close:rt},N$=()=>w$;function D$(e=so,t){return{onWatchStatusChange:t||_$(e),watchFile:We(e,e.watchFile)||N$,watchDirectory:We(e,e.watchDirectory)||N$,setTimeout:We(e,e.setTimeout)||rt,clearTimeout:We(e,e.clearTimeout)||rt,preferNonRecursiveWatch:e.preferNonRecursiveWatch}}var F$={ConfigFile:"Config file",ExtendedConfigFile:"Extended config file",SourceFile:"Source file",MissingFile:"Missing file",WildcardDirectory:"Wild card directory",FailedLookupLocations:"Failed Lookup Locations",AffectingFileLocation:"File location affecting resolution",TypeRoots:"Type roots",ConfigFileOfReferencedProject:"Config file of referened project",ExtendedConfigOfReferencedProject:"Extended config file of referenced project",WildcardDirectoryOfReferencedProject:"Wild card directory of referenced project",PackageJson:"package.json file",ClosedScriptInfo:"Closed Script info",ConfigFileForInferredRoot:"Config file for the inferred project root",NodeModules:"node_modules for closed script infos and package.jsons affecting module specifier cache",MissingSourceMapFile:"Missing source map file",NoopConfigFileForInferredRoot:"Noop Config file for the inferred project root",MissingGeneratedFile:"Missing generated file",NodeModulesForModuleSpecifierCache:"node_modules for module specifier cache invalidation",TypingInstallerLocationFile:"File location for typing installer",TypingInstallerLocationDirectory:"Directory location for typing installer"};function E$(e,t){const n=e.trace?t.extendedDiagnostics?2:t.diagnostics?1:0:0,r=0!==n?t=>e.trace(t):rt,i=jU(e,n,r);return i.writeLog=r,i}function P$(e,t,n=e){const r=e.useCaseSensitiveFileNames(),i={getSourceFile:UU((t,n)=>n?e.readFile(t,n):i.readFile(t),void 0),getDefaultLibLocation:We(e,e.getDefaultLibLocation),getDefaultLibFileName:t=>e.getDefaultLibFileName(t),writeFile:VU((t,n,r)=>e.writeFile(t,n,r),t=>e.createDirectory(t),t=>e.directoryExists(t)),getCurrentDirectory:dt(()=>e.getCurrentDirectory()),useCaseSensitiveFileNames:()=>r,getCanonicalFileName:Wt(r),getNewLine:()=>Pb(t()),fileExists:t=>e.fileExists(t),readFile:t=>e.readFile(t),trace:We(e,e.trace),directoryExists:We(n,n.directoryExists),getDirectories:We(n,n.getDirectories),realpath:We(e,e.realpath),getEnvironmentVariable:We(e,e.getEnvironmentVariable)||(()=>""),createHash:We(e,e.createHash),readDirectory:We(e,e.readDirectory),storeSignatureInfo:e.storeSignatureInfo,jsDocParsingMode:e.jsDocParsingMode};return i}function A$(e,t){if(t.match(SJ)){let e=t.length,n=e;for(let r=e-1;r>=0;r--){const i=t.charCodeAt(r);switch(i){case 10:r&&13===t.charCodeAt(r-1)&&r--;case 13:break;default:if(i<127||!Va(i)){n=r;continue}}const o=t.substring(n,e);if(o.match(TJ)){t=t.substring(0,n);break}if(!o.match(CJ))break;e=n}}return(e.createHash||Mi)(t)}function I$(e){const t=e.getSourceFile;e.getSourceFile=(...n)=>{const r=t.call(e,...n);return r&&(r.version=A$(e,r.text)),r}}function O$(e,t){const n=dt(()=>Do(Jo(e.getExecutingFilePath())));return{useCaseSensitiveFileNames:()=>e.useCaseSensitiveFileNames,getNewLine:()=>e.newLine,getCurrentDirectory:dt(()=>e.getCurrentDirectory()),getDefaultLibLocation:n,getDefaultLibFileName:e=>jo(n(),Ds(e)),fileExists:t=>e.fileExists(t),readFile:(t,n)=>e.readFile(t,n),directoryExists:t=>e.directoryExists(t),getDirectories:t=>e.getDirectories(t),readDirectory:(t,n,r,i,o)=>e.readDirectory(t,n,r,i,o),realpath:We(e,e.realpath),getEnvironmentVariable:We(e,e.getEnvironmentVariable),trace:t=>e.write(t+e.newLine),createDirectory:t=>e.createDirectory(t),writeFile:(t,n,r)=>e.writeFile(t,n,r),createHash:We(e,e.createHash),createProgram:t||JW,storeSignatureInfo:e.storeSignatureInfo,now:We(e,e.now)}}function L$(e=so,t,n,r){const i=t=>e.write(t+e.newLine),o=O$(e,t);return Ve(o,D$(e,r)),o.afterProgramCreate=e=>{const t=e.getCompilerOptions(),r=Pb(t);T$(e,n,i,e=>o.onWatchStatusChange(Qx(f$(e),e),r,t,e))},o}function j$(e,t,n){t(n),e.exit(1)}function M$({configFileName:e,optionsToExtend:t,watchOptionsToExtend:n,extraFileExtensions:r,system:i,createProgram:o,reportDiagnostic:a,reportWatchStatus:s}){const c=a||a$(i),l=L$(i,o,c,s);return l.onUnRecoverableConfigFileDiagnostic=e=>j$(i,c,e),l.configFileName=e,l.optionsToExtend=t,l.watchOptionsToExtend=n,l.extraFileExtensions=r,l}function R$({rootFiles:e,options:t,watchOptions:n,projectReferences:r,system:i,createProgram:o,reportDiagnostic:a,reportWatchStatus:s}){const c=L$(i,o,a||a$(i),s);return c.rootFiles=e,c.options=t,c.watchOptions=n,c.projectReferences=r,c}function B$(e){const t=e.system||so,n=e.host||(e.host=z$(e.options,t)),r=q$(e),i=C$(r,e.reportDiagnostic||a$(t),e=>n.trace&&n.trace(e),e.reportErrorSummary||e.options.pretty?(e,r)=>t.write(g$(e,r,t.newLine,n)):void 0);return e.afterProgramEmitAndDiagnostics&&e.afterProgramEmitAndDiagnostics(r),i}function J$(e,t){const n=Gq(e);if(!n)return;let r;if(t.getBuildInfo)r=t.getBuildInfo(n,e.configFilePath);else{const e=t.readFile(n);if(!e)return;r=gU(n,e)}return r&&r.version===s&&kW(r)?LW(r,n,t):void 0}function z$(e,t=so){const n=WU(e,void 0,t);return n.createHash=We(t,t.createHash),n.storeSignatureInfo=t.storeSignatureInfo,I$(n),$U(n,e=>Uo(e,n.getCurrentDirectory(),n.getCanonicalFileName)),n}function q$({rootNames:e,options:t,configFileParsingDiagnostics:n,projectReferences:r,host:i,createProgram:o}){return(o=o||JW)(e,t,i=i||z$(t),J$(t,i),n,r)}function U$(e,t,n,r,i,o,a,s){return Qe(e)?R$({rootFiles:e,options:t,watchOptions:s,projectReferences:a,system:n,createProgram:r,reportDiagnostic:i,reportWatchStatus:o}):M$({configFileName:e,optionsToExtend:t,watchOptionsToExtend:a,extraFileExtensions:s,system:n,createProgram:r,reportDiagnostic:i,reportWatchStatus:o})}function V$(e){let t,n,r,i,o,a,s,c,l=new Map([[void 0,void 0]]),_=e.extendedConfigCache,u=!1;const d=new Map;let p,f=!1;const m=e.useCaseSensitiveFileNames(),g=e.getCurrentDirectory(),{configFileName:h,optionsToExtend:y={},watchOptionsToExtend:v,extraFileExtensions:b,createProgram:x}=e;let k,S,{rootFiles:T,options:C,watchOptions:w,projectReferences:N}=e,D=!1,F=!1;const E=void 0===h?void 0:wU(e,g,m),P=E||e,A=UV(e,P);let I=G();h&&e.configFileParsingResult&&(ce(e.configFileParsingResult),I=G()),ee(_a.Starting_compilation_in_watch_mode),h&&!e.configFileParsingResult&&(I=Pb(y),un.assert(!T),se(),I=G()),un.assert(C),un.assert(T);const{watchFile:O,watchDirectory:L,writeLog:j}=E$(e,C),M=Wt(m);let R;j(`Current directory: ${g} CaseSensitiveFileNames: ${m}`),h&&(R=O(h,function(){un.assert(!!h),n=2,ie()},2e3,w,F$.ConfigFile));const B=P$(e,()=>C,P);I$(B);const J=B.getSourceFile;B.getSourceFile=(e,...t)=>Y(e,X(e),...t),B.getSourceFileByPath=Y,B.getNewLine=()=>I,B.fileExists=function(e){const t=X(e);return!Q(d.get(t))&&P.fileExists(e)},B.onReleaseOldSourceFile=function(e,t,n){const r=d.get(e.resolvedPath);void 0!==r&&(Q(r)?(p||(p=[])).push(e.path):r.sourceFile===e&&(r.fileWatcher&&r.fileWatcher.close(),d.delete(e.resolvedPath),n||z.removeResolutionsOfFile(e.path)))},B.onReleaseParsedCommandLine=function(e){var t;const n=X(e),r=null==s?void 0:s.get(n);r&&(s.delete(n),r.watchedDirectories&&ux(r.watchedDirectories,RU),null==(t=r.watcher)||t.close(),FU(n,c))},B.toPath=X,B.getCompilationSettings=()=>C,B.useSourceOfProjectReferenceRedirect=We(e,e.useSourceOfProjectReferenceRedirect),B.preferNonRecursiveWatch=e.preferNonRecursiveWatch,B.watchDirectoryOfFailedLookupLocation=(e,t,n)=>L(e,t,n,w,F$.FailedLookupLocations),B.watchAffectingFileLocation=(e,t)=>O(e,t,2e3,w,F$.AffectingFileLocation),B.watchTypeRootsDirectory=(e,t,n)=>L(e,t,n,w,F$.TypeRoots),B.getCachedDirectoryStructureHost=()=>E,B.scheduleInvalidateResolutionsOfFailedLookupLocations=function(){if(!e.setTimeout||!e.clearTimeout)return z.invalidateResolutionsOfFailedLookupLocations();const t=ne();j("Scheduling invalidateFailedLookup"+(t?", Cancelled earlier one":"")),a=e.setTimeout(re,250,"timerToInvalidateFailedLookupResolutions")},B.onInvalidatedResolution=ie,B.onChangedAutomaticTypeDirectiveNames=ie,B.fileIsOpen=it,B.getCurrentProgram=H,B.writeLog=j,B.getParsedCommandLine=le;const z=r$(B,h?Do(Bo(h,g)):g,!1);B.resolveModuleNameLiterals=We(e,e.resolveModuleNameLiterals),B.resolveModuleNames=We(e,e.resolveModuleNames),B.resolveModuleNameLiterals||B.resolveModuleNames||(B.resolveModuleNameLiterals=z.resolveModuleNameLiterals.bind(z)),B.resolveTypeReferenceDirectiveReferences=We(e,e.resolveTypeReferenceDirectiveReferences),B.resolveTypeReferenceDirectives=We(e,e.resolveTypeReferenceDirectives),B.resolveTypeReferenceDirectiveReferences||B.resolveTypeReferenceDirectives||(B.resolveTypeReferenceDirectiveReferences=z.resolveTypeReferenceDirectiveReferences.bind(z)),B.resolveLibrary=e.resolveLibrary?e.resolveLibrary.bind(e):z.resolveLibrary.bind(z),B.getModuleResolutionCache=e.resolveModuleNameLiterals||e.resolveModuleNames?We(e,e.getModuleResolutionCache):()=>z.getModuleResolutionCache();const q=e.resolveModuleNameLiterals||e.resolveTypeReferenceDirectiveReferences||e.resolveModuleNames||e.resolveTypeReferenceDirectives?We(e,e.hasInvalidatedResolutions)||ot:it,U=e.resolveLibrary?We(e,e.hasInvalidatedLibResolutions)||ot:it;return t=J$(C,B),K(),h?{getCurrentProgram:$,getProgram:ae,close:V,getResolutionCache:W}:{getCurrentProgram:$,getProgram:ae,updateRootFileNames:function(e){un.assert(!h,"Cannot update root file names with config file watch mode"),T=e,ie()},close:V,getResolutionCache:W};function V(){ne(),z.clear(),ux(d,e=>{e&&e.fileWatcher&&(e.fileWatcher.close(),e.fileWatcher=void 0)}),R&&(R.close(),R=void 0),null==_||_.clear(),_=void 0,c&&(ux(c,RU),c=void 0),i&&(ux(i,RU),i=void 0),r&&(ux(r,nx),r=void 0),s&&(ux(s,e=>{var t;null==(t=e.watcher)||t.close(),e.watcher=void 0,e.watchedDirectories&&ux(e.watchedDirectories,RU),e.watchedDirectories=void 0}),s=void 0),t=void 0}function W(){return z}function $(){return t}function H(){return t&&t.getProgramOrUndefined()}function K(){j("Synchronizing program"),un.assert(C),un.assert(T),ne();const n=$();f&&(I=G(),n&&Zu(n.getCompilerOptions(),C)&&z.onChangesAffectModuleResolution());const{hasInvalidatedResolutions:o,hasInvalidatedLibResolutions:a}=z.createHasInvalidatedResolutions(q,U),{originalReadFile:c,originalFileExists:_,originalDirectoryExists:y,originalCreateDirectory:v,originalWriteFile:b,readFileWithCache:D}=$U(B,X);return EV(H(),T,C,e=>function(e,t){const n=d.get(e);if(!n)return;if(n.version)return n.version;const r=t(e);return void 0!==r?A$(B,r):void 0}(e,D),e=>B.fileExists(e),o,a,te,le,N)?F&&(u&&ee(_a.File_change_detected_Starting_incremental_compilation),t=x(void 0,void 0,B,t,S,N),F=!1):(u&&ee(_a.File_change_detected_Starting_incremental_compilation),function(e,n){j("CreatingProgramWith::"),j(` roots: ${JSON.stringify(T)}`),j(` options: ${JSON.stringify(C)}`),N&&j(` projectReferences: ${JSON.stringify(N)}`);const i=f||!H();f=!1,F=!1,z.startCachingPerDirectoryResolution(),B.hasInvalidatedResolutions=e,B.hasInvalidatedLibResolutions=n,B.hasChangedAutomaticTypeDirectiveNames=te;const o=H();if(t=x(T,C,B,t,S,N),z.finishCachingPerDirectoryResolution(t.getProgram(),o),PU(t.getProgram(),r||(r=new Map),pe),i&&z.updateTypeRootsWatch(),p){for(const e of p)r.has(e)||d.delete(e);p=void 0}}(o,a)),u=!1,e.afterProgramCreate&&n!==t&&e.afterProgramCreate(t),B.readFile=c,B.fileExists=_,B.directoryExists=y,B.createDirectory=v,B.writeFile=b,null==l||l.forEach((e,t)=>{if(t){const n=null==s?void 0:s.get(t);n&&function(e,t,n){var r,i,o,a;n.watcher||(n.watcher=O(e,(n,r)=>{de(e,t,r);const i=null==s?void 0:s.get(t);i&&(i.updateLevel=2),z.removeResolutionsFromProjectReferenceRedirects(t),ie()},2e3,(null==(r=n.parsedCommandLine)?void 0:r.watchOptions)||w,F$.ConfigFileOfReferencedProject)),AU(n.watchedDirectories||(n.watchedDirectories=new Map),null==(i=n.parsedCommandLine)?void 0:i.wildcardDirectories,(r,i)=>{var o;return L(r,n=>{const i=X(n);E&&E.addOrDeleteFileOrDirectory(n,i),Z(i);const o=null==s?void 0:s.get(t);(null==o?void 0:o.parsedCommandLine)&&(IU({watchedDirPath:X(r),fileOrDirectory:n,fileOrDirectoryPath:i,configFileName:e,options:o.parsedCommandLine.options,program:o.parsedCommandLine.fileNames,currentDirectory:g,useCaseSensitiveFileNames:m,writeLog:j,toPath:X})||2!==o.updateLevel&&(o.updateLevel=1,ie()))},i,(null==(o=n.parsedCommandLine)?void 0:o.watchOptions)||w,F$.WildcardDirectoryOfReferencedProject)}),ge(t,null==(o=n.parsedCommandLine)?void 0:o.options,(null==(a=n.parsedCommandLine)?void 0:a.watchOptions)||w,F$.ExtendedConfigOfReferencedProject)}(e,t,n)}else AU(i||(i=new Map),k,me),h&&ge(X(h),C,w,F$.ExtendedConfigFile)}),l=void 0,t}function G(){return Pb(C||y)}function X(e){return Uo(e,g,M)}function Q(e){return"boolean"==typeof e}function Y(e,t,n,r,i){const o=d.get(t);if(Q(o))return;const a="object"==typeof n?n.impliedNodeFormat:void 0;if(void 0===o||i||function(e){return"boolean"==typeof e.version}(o)||o.sourceFile.impliedNodeFormat!==a){const i=J(e,n,r);if(o)i?(o.sourceFile=i,o.version=i.version,o.fileWatcher||(o.fileWatcher=_e(t,e,ue,250,w,F$.SourceFile))):(o.fileWatcher&&o.fileWatcher.close(),d.set(t,!1));else if(i){const n=_e(t,e,ue,250,w,F$.SourceFile);d.set(t,{sourceFile:i,version:i.version,fileWatcher:n})}else d.set(t,!1);return i}return o.sourceFile}function Z(e){const t=d.get(e);void 0!==t&&(Q(t)?d.set(e,{version:!1}):t.version=!1)}function ee(t){e.onWatchStatusChange&&e.onWatchStatusChange(Qx(t),I,C||y)}function te(){return z.hasChangedAutomaticTypeDirectiveNames()}function ne(){return!!a&&(e.clearTimeout(a),a=void 0,!0)}function re(){a=void 0,z.invalidateResolutionsOfFailedLookupLocations()&&ie()}function ie(){e.setTimeout&&e.clearTimeout&&(o&&e.clearTimeout(o),j("Scheduling update"),o=e.setTimeout(oe,250,"timerToUpdateProgram"))}function oe(){o=void 0,u=!0,ae()}function ae(){switch(n){case 1:j("Reloading new file names and options"),un.assert(C),un.assert(h),n=0,T=jj(C.configFile.configFileSpecs,Bo(Do(h),g),C,A,b),hj(T,Bo(h,g),C.configFile.configFileSpecs,S,D)&&(F=!0),K();break;case 2:un.assert(h),j(`Reloading config file: ${h}`),n=0,E&&E.clearCache(),se(),f=!0,(l??(l=new Map)).set(void 0,void 0),K();break;default:K()}return $()}function se(){un.assert(h),ce(gL(h,y,A,_||(_=new Map),v,b))}function ce(e){T=e.fileNames,C=e.options,w=e.watchOptions,N=e.projectReferences,k=e.wildcardDirectories,S=PV(e).slice(),D=gj(e.raw),F=!0}function le(t){const n=X(t);let r=null==s?void 0:s.get(n);if(r){if(!r.updateLevel)return r.parsedCommandLine;if(r.parsedCommandLine&&1===r.updateLevel&&!e.getParsedCommandLine){j("Reloading new file names and options"),un.assert(C);const e=jj(r.parsedCommandLine.options.configFile.configFileSpecs,Bo(Do(t),g),C,A);return r.parsedCommandLine={...r.parsedCommandLine,fileNames:e},r.updateLevel=void 0,r.parsedCommandLine}}j(`Loading config file: ${t}`);const i=e.getParsedCommandLine?e.getParsedCommandLine(t):function(e){const t=A.onUnRecoverableConfigFileDiagnostic;A.onUnRecoverableConfigFileDiagnostic=rt;const n=gL(e,void 0,A,_||(_=new Map),v);return A.onUnRecoverableConfigFileDiagnostic=t,n}(t);return r?(r.parsedCommandLine=i,r.updateLevel=void 0):(s||(s=new Map)).set(n,r={parsedCommandLine:i}),(l??(l=new Map)).set(n,t),i}function _e(e,t,n,r,i,o){return O(t,(t,r)=>n(t,r,e),r,i,o)}function ue(e,t,n){de(e,n,t),2===t&&d.has(n)&&z.invalidateResolutionOfFile(n),Z(n),ie()}function de(e,t,n){E&&E.addOrDeleteFile(e,t,n)}function pe(e,t){return(null==s?void 0:s.has(e))?w$:_e(e,t,fe,500,w,F$.MissingFile)}function fe(e,t,n){de(e,n,t),0===t&&r.has(n)&&(r.get(n).close(),r.delete(n),Z(n),ie())}function me(e,t){return L(e,t=>{un.assert(h),un.assert(C);const r=X(t);E&&E.addOrDeleteFileOrDirectory(t,r),Z(r),IU({watchedDirPath:X(e),fileOrDirectory:t,fileOrDirectoryPath:r,configFileName:h,extraFileExtensions:b,options:C,program:$()||T,currentDirectory:g,useCaseSensitiveFileNames:m,writeLog:j,toPath:X})||2!==n&&(n=1,ie())},t,w,F$.WildcardDirectory)}function ge(e,t,r,i){DU(e,t,c||(c=new Map),(e,t)=>O(e,(r,i)=>{var o;de(e,t,i),_&&EU(_,t,X);const a=null==(o=c.get(t))?void 0:o.projects;(null==a?void 0:a.size)&&a.forEach(e=>{if(h&&X(h)===e)n=2;else{const t=null==s?void 0:s.get(e);t&&(t.updateLevel=2),z.removeResolutionsFromProjectReferenceRedirects(e)}ie()})},2e3,r,i),X)}}var W$=(e=>(e[e.Unbuildable=0]="Unbuildable",e[e.UpToDate=1]="UpToDate",e[e.UpToDateWithUpstreamTypes=2]="UpToDateWithUpstreamTypes",e[e.OutputMissing=3]="OutputMissing",e[e.ErrorReadingFile=4]="ErrorReadingFile",e[e.OutOfDateWithSelf=5]="OutOfDateWithSelf",e[e.OutOfDateWithUpstream=6]="OutOfDateWithUpstream",e[e.OutOfDateBuildInfoWithPendingEmit=7]="OutOfDateBuildInfoWithPendingEmit",e[e.OutOfDateBuildInfoWithErrors=8]="OutOfDateBuildInfoWithErrors",e[e.OutOfDateOptions=9]="OutOfDateOptions",e[e.OutOfDateRoots=10]="OutOfDateRoots",e[e.UpstreamOutOfDate=11]="UpstreamOutOfDate",e[e.UpstreamBlocked=12]="UpstreamBlocked",e[e.ComputingUpstream=13]="ComputingUpstream",e[e.TsVersionOutputOfDate=14]="TsVersionOutputOfDate",e[e.UpToDateWithInputFileText=15]="UpToDateWithInputFileText",e[e.ContainerOnly=16]="ContainerOnly",e[e.ForceBuild=17]="ForceBuild",e))(W$||{});function $$(e){return ko(e,".json")?e:jo(e,"tsconfig.json")}var H$=new Date(-864e13);function K$(e,t){return function(e,t){const n=e.get(t);let r;return n||(r=new Map,e.set(t,r)),n||r}(e,t)}function G$(e){return e.now?e.now():new Date}function X$(e){return!!e&&!!e.buildOrder}function Q$(e){return X$(e)?e.buildOrder:e}function Y$(e,t){return n=>{let r=t?`[${iV(l$(e),"")}] `:`${l$(e)} - `;r+=`${cV(n.messageText,e.newLine)}${e.newLine+e.newLine}`,e.write(r)}}function Z$(e,t,n,r){const i=O$(e,t);return i.getModifiedTime=e.getModifiedTime?t=>e.getModifiedTime(t):at,i.setModifiedTime=e.setModifiedTime?(t,n)=>e.setModifiedTime(t,n):rt,i.deleteFile=e.deleteFile?t=>e.deleteFile(t):rt,i.reportDiagnostic=n||a$(e),i.reportSolutionBuilderStatus=r||Y$(e),i.now=We(e,e.now),i}function eH(e=so,t,n,r,i){const o=Z$(e,t,n,r);return o.reportErrorSummary=i,o}function tH(e=so,t,n,r,i){const o=Z$(e,t,n,r);return Ve(o,D$(e,i)),o}function nH(e,t,n){return HH(!1,e,t,n)}function rH(e,t,n,r){return HH(!0,e,t,n,r)}function iH(e,t){return Uo(t,e.compilerHost.getCurrentDirectory(),e.compilerHost.getCanonicalFileName)}function oH(e,t){const{resolvedConfigFilePaths:n}=e,r=n.get(t);if(void 0!==r)return r;const i=iH(e,t);return n.set(t,i),i}function aH(e){return!!e.options}function sH(e,t){const n=e.configFileCache.get(t);return n&&aH(n)?n:void 0}function cH(e,t,n){const{configFileCache:r}=e,i=r.get(n);if(i)return aH(i)?i:void 0;let o;tr("SolutionBuilder::beforeConfigFileParsing");const{parseConfigFileHost:a,baseCompilerOptions:s,baseWatchOptions:c,extendedConfigCache:l,host:_}=e;let u;return _.getParsedCommandLine?(u=_.getParsedCommandLine(t),u||(o=Qx(_a.File_0_not_found,t))):(a.onUnRecoverableConfigFileDiagnostic=e=>o=e,u=gL(t,s,a,l,c),a.onUnRecoverableConfigFileDiagnostic=rt),r.set(n,u||o),tr("SolutionBuilder::afterConfigFileParsing"),nr("SolutionBuilder::Config file parsing","SolutionBuilder::beforeConfigFileParsing","SolutionBuilder::afterConfigFileParsing"),u}function lH(e,t){return $$(Mo(e.compilerHost.getCurrentDirectory(),t))}function _H(e,t){const n=new Map,r=new Map,i=[];let o,a;for(const e of t)s(e);return a?{buildOrder:o||l,circularDiagnostics:a}:o||l;function s(t,c){const l=oH(e,t);if(r.has(l))return;if(n.has(l))return void(c||(a||(a=[])).push(Qx(_a.Project_references_may_not_form_a_circular_graph_Cycle_detected_Colon_0,i.join("\r\n"))));n.set(l,!0),i.push(t);const _=cH(e,t,l);if(_&&_.projectReferences)for(const t of _.projectReferences)s(lH(e,t.path),c||t.circular);i.pop(),r.set(l,!0),(o||(o=[])).push(t)}}function uH(e){return e.buildOrder||function(e){const t=_H(e,e.rootNames.map(t=>lH(e,t)));e.resolvedConfigFilePaths.clear();const n=new Set(Q$(t).map(t=>oH(e,t))),r={onDeleteValue:rt};return dx(e.configFileCache,n,r),dx(e.projectStatus,n,r),dx(e.builderPrograms,n,r),dx(e.diagnostics,n,r),dx(e.projectPendingBuild,n,r),dx(e.projectErrorsReported,n,r),dx(e.buildInfoCache,n,r),dx(e.outputTimeStamps,n,r),dx(e.lastCachedPackageJsonLookups,n,r),e.watch&&(dx(e.allWatchedConfigFiles,n,{onDeleteValue:nx}),e.allWatchedExtendedConfigFiles.forEach(e=>{e.projects.forEach(t=>{n.has(t)||e.projects.delete(t)}),e.close()}),dx(e.allWatchedWildcardDirectories,n,{onDeleteValue:e=>e.forEach(RU)}),dx(e.allWatchedInputFiles,n,{onDeleteValue:e=>e.forEach(nx)}),dx(e.allWatchedPackageJsonFiles,n,{onDeleteValue:e=>e.forEach(nx)})),e.buildOrder=t}(e)}function dH(e,t,n){const r=t&&lH(e,t),i=uH(e);if(X$(i))return i;if(r){const t=oH(e,r);if(-1===k(i,n=>oH(e,n)===t))return}const o=r?_H(e,[r]):i;return un.assert(!X$(o)),un.assert(!n||void 0!==r),un.assert(!n||o[o.length-1]===r),n?o.slice(0,o.length-1):o}function pH(e){e.cache&&fH(e);const{compilerHost:t,host:n}=e,r=e.readFileWithCache,i=t.getSourceFile,{originalReadFile:o,originalFileExists:a,originalDirectoryExists:s,originalCreateDirectory:c,originalWriteFile:l,getSourceFileWithCache:_,readFileWithCache:u}=$U(n,t=>iH(e,t),(...e)=>i.call(t,...e));e.readFileWithCache=u,t.getSourceFile=_,e.cache={originalReadFile:o,originalFileExists:a,originalDirectoryExists:s,originalCreateDirectory:c,originalWriteFile:l,originalReadFileWithCache:r,originalGetSourceFile:i}}function fH(e){if(!e.cache)return;const{cache:t,host:n,compilerHost:r,extendedConfigCache:i,moduleResolutionCache:o,typeReferenceDirectiveResolutionCache:a,libraryResolutionCache:s}=e;n.readFile=t.originalReadFile,n.fileExists=t.originalFileExists,n.directoryExists=t.originalDirectoryExists,n.createDirectory=t.originalCreateDirectory,n.writeFile=t.originalWriteFile,r.getSourceFile=t.originalGetSourceFile,e.readFileWithCache=t.originalReadFileWithCache,i.clear(),null==o||o.clear(),null==a||a.clear(),null==s||s.clear(),e.cache=void 0}function mH(e,t){e.projectStatus.delete(t),e.diagnostics.delete(t)}function gH({projectPendingBuild:e},t,n){const r=e.get(t);(void 0===r||re.projectPendingBuild.set(oH(e,t),0)),t&&t.throwIfCancellationRequested())}var yH=(e=>(e[e.Build=0]="Build",e[e.UpdateOutputFileStamps=1]="UpdateOutputFileStamps",e))(yH||{});function vH(e,t){return e.projectPendingBuild.delete(t),e.diagnostics.has(t)?1:0}function bH(e,t,n){if(!e.projectPendingBuild.size)return;if(X$(t))return;const{options:r,projectPendingBuild:i}=e;for(let o=0;oi.options,getCurrentDirectory:()=>e.compilerHost.getCurrentDirectory(),getBuilderProgram:()=>u(st),getProgram:()=>u(e=>e.getProgramOrUndefined()),getSourceFile:e=>u(t=>t.getSourceFile(e)),getSourceFiles:()=>d(e=>e.getSourceFiles()),getOptionsDiagnostics:e=>d(t=>t.getOptionsDiagnostics(e)),getGlobalDiagnostics:e=>d(t=>t.getGlobalDiagnostics(e)),getConfigFileParsingDiagnostics:()=>d(e=>e.getConfigFileParsingDiagnostics()),getSyntacticDiagnostics:(e,t)=>d(n=>n.getSyntacticDiagnostics(e,t)),getAllDependencies:e=>d(t=>t.getAllDependencies(e)),getSemanticDiagnostics:(e,t)=>d(n=>n.getSemanticDiagnostics(e,t)),getSemanticDiagnosticsOfNextAffectedFile:(e,t)=>u(n=>n.getSemanticDiagnosticsOfNextAffectedFile&&n.getSemanticDiagnosticsOfNextAffectedFile(e,t)),emit:(n,r,i,o,a)=>n||o?u(s=>{var c,l;return s.emit(n,r,i,o,a||(null==(l=(c=e.host).getCustomTransformers)?void 0:l.call(c,t)))}):(m(0,i),f(r,i,a)),done:function(t,r,i){return m(3,t,r,i),tr("SolutionBuilder::Projects built"),vH(e,n)}};function u(e){return m(0),s&&e(s)}function d(e){return u(e)||l}function p(){var r,o,a;if(un.assert(void 0===s),e.options.dry)return GH(e,_a.A_non_dry_build_would_build_project_0,t),c=1,void(_=2);if(e.options.verbose&&GH(e,_a.Building_project_0,t),0===i.fileNames.length)return YH(e,n,PV(i)),c=0,void(_=2);const{host:l,compilerHost:u}=e;if(e.projectCompilerOptions=i.options,null==(r=e.moduleResolutionCache)||r.update(i.options),null==(o=e.typeReferenceDirectiveResolutionCache)||o.update(i.options),s=l.createProgram(i.fileNames,i.options,u,function({options:e,builderPrograms:t,compilerHost:n},r,i){if(!e.force)return t.get(r)||J$(i.options,n)}(e,n,i),PV(i),i.projectReferences),e.watch){const t=null==(a=e.moduleResolutionCache)?void 0:a.getPackageJsonInfoCache().getInternalMap();e.lastCachedPackageJsonLookups.set(n,t&&new Set(Oe(t.values(),t=>e.host.realpath&&(xM(t)||t.directoryExists)?e.host.realpath(jo(t.packageDirectory,"package.json")):jo(t.packageDirectory,"package.json")))),e.builderPrograms.set(n,s)}_++}function f(r,a,l){var u,d,p;un.assertIsDefined(s),un.assert(1===_);const{host:f,compilerHost:m}=e,g=new Map,h=s.getCompilerOptions(),y=Ek(h);let v,b;const{emitResult:x,diagnostics:k}=T$(s,e=>f.reportDiagnostic(e),e.write,void 0,(t,i,o,a,c,l)=>{var _;const u=iH(e,t);if(g.set(iH(e,t),t),null==l?void 0:l.buildInfo){b||(b=G$(e.host));const r=null==(_=s.hasChangedEmitSignature)?void 0:_.call(s),i=NH(e,t,n);i?(i.buildInfo=l.buildInfo,i.modifiedTime=b,r&&(i.latestChangedDtsTime=b)):e.buildInfoCache.set(n,{path:iH(e,t),buildInfo:l.buildInfo,modifiedTime:b,latestChangedDtsTime:r?b:void 0})}const d=(null==l?void 0:l.differsOnlyInMap)?qi(e.host,t):void 0;(r||m.writeFile)(t,i,o,a,c,l),(null==l?void 0:l.differsOnlyInMap)?e.host.setModifiedTime(t,d):!y&&e.watch&&(v||(v=wH(e,n))).set(u,b||(b=G$(e.host)))},a,void 0,l||(null==(d=(u=e.host).getCustomTransformers)?void 0:d.call(u,t)));return h.noEmitOnError&&k.length||!g.size&&8===o.type||AH(e,i,n,_a.Updating_unchanged_output_timestamps_of_project_0,g),e.projectErrorsReported.set(n,!0),c=(null==(p=s.hasChangedEmitSignature)?void 0:p.call(s))?0:2,k.length?(e.diagnostics.set(n,k),e.projectStatus.set(n,{type:0,reason:"it had errors"}),c|=4):(e.diagnostics.delete(n),e.projectStatus.set(n,{type:1,oldestOutputFileName:me(g.values())??dU(i,!f.useCaseSensitiveFileNames())})),function(e,t){t&&(e.host.afterProgramEmitAndDiagnostics&&e.host.afterProgramEmitAndDiagnostics(t),t.releaseProgram()),e.projectCompilerOptions=e.baseCompilerOptions}(e,s),_=2,x}function m(o,s,l,u){for(;_<=o&&_<3;){const o=_;switch(_){case 0:p();break;case 1:f(l,s,u);break;case 2:LH(e,t,n,r,i,a,un.checkDefined(c)),_++;break;default:nn()}un.assert(_>o)}}}(e,t.project,t.projectPath,t.projectIndex,t.config,t.status,n):function(e,t,n,r,i){let o=!0;return{kind:1,project:t,projectPath:n,buildOrder:i,getCompilerOptions:()=>r.options,getCurrentDirectory:()=>e.compilerHost.getCurrentDirectory(),updateOutputFileStatmps:()=>{OH(e,r,n),o=!1},done:()=>(o&&OH(e,r,n),tr("SolutionBuilder::Timestamps only updates"),vH(e,n))}}(e,t.project,t.projectPath,t.config,n)}function kH(e,t,n){const r=bH(e,t,n);return r?xH(e,r,t):r}function SH(e){return!!e.watcher}function TH(e,t){const n=iH(e,t),r=e.filesWatched.get(n);if(e.watch&&r){if(!SH(r))return r;if(r.modifiedTime)return r.modifiedTime}const i=qi(e.host,t);return e.watch&&(r?r.modifiedTime=i:e.filesWatched.set(n,i)),i}function CH(e,t,n,r,i,o,a){const s=iH(e,t),c=e.filesWatched.get(s);if(c&&SH(c))c.callbacks.push(n);else{const l=e.watchFile(t,(t,n,r)=>{const i=un.checkDefined(e.filesWatched.get(s));un.assert(SH(i)),i.modifiedTime=r,i.callbacks.forEach(e=>e(t,n,r))},r,i,o,a);e.filesWatched.set(s,{callbacks:[n],watcher:l,modifiedTime:c})}return{close:()=>{const t=un.checkDefined(e.filesWatched.get(s));un.assert(SH(t)),1===t.callbacks.length?(e.filesWatched.delete(s),RU(t)):Vt(t.callbacks,n)}}}function wH(e,t){if(!e.watch)return;let n=e.outputTimeStamps.get(t);return n||e.outputTimeStamps.set(t,n=new Map),n}function NH(e,t,n){const r=iH(e,t),i=e.buildInfoCache.get(n);return(null==i?void 0:i.path)===r?i:void 0}function DH(e,t,n,r){const i=iH(e,t),o=e.buildInfoCache.get(n);if(void 0!==o&&o.path===i)return o.buildInfo||void 0;const a=e.readFileWithCache(t),s=a?gU(t,a):void 0;return e.buildInfoCache.set(n,{path:i,buildInfo:s||!1,modifiedTime:r||zi}),s}function FH(e,t,n,r){if(nS&&(b=n,S=t),C.add(r)}if(v?(w||(w=jW(v,f,p)),N=rd(w.roots,(e,t)=>C.has(t)?void 0:t)):N=d(MW(y,f,p),e=>C.has(e)?void 0:e),N)return{type:10,buildInfoFile:f,inputFile:N};if(!m){const r=_U(t,!p.useCaseSensitiveFileNames()),i=wH(e,n);for(const t of r){if(t===f)continue;const n=iH(e,t);let r=null==i?void 0:i.get(n);if(r||(r=qi(e.host,t),null==i||i.set(n,r)),r===zi)return{type:3,missingOutputFileName:t};if(rFH(e,t,x,k));if(E)return E;const P=e.lastCachedPackageJsonLookups.get(n);return P&&id(P,t=>FH(e,t,x,k))||{type:D?2:T?15:1,newestInputFileTime:S,newestInputFileName:b,oldestOutputFileName:k}}(e,t,n);return tr("SolutionBuilder::afterUpToDateCheck"),nr("SolutionBuilder::Up-to-date check","SolutionBuilder::beforeUpToDateCheck","SolutionBuilder::afterUpToDateCheck"),e.projectStatus.set(n,i),i}function AH(e,t,n,r,i){if(t.options.noEmit)return;let o;const a=Gq(t.options),s=Ek(t.options);if(a&&s)return(null==i?void 0:i.has(iH(e,a)))||(e.options.verbose&&GH(e,r,t.options.configFilePath),e.host.setModifiedTime(a,o=G$(e.host)),NH(e,a,n).modifiedTime=o),void e.outputTimeStamps.delete(n);const{host:c}=e,l=_U(t,!c.useCaseSensitiveFileNames()),_=wH(e,n),u=_?new Set:void 0;if(!i||l.length!==i.size){let s=!!e.options.verbose;for(const d of l){const l=iH(e,d);(null==i?void 0:i.has(l))||(s&&(s=!1,GH(e,r,t.options.configFilePath)),c.setModifiedTime(d,o||(o=G$(e.host))),d===a?NH(e,a,n).modifiedTime=o:_&&(_.set(l,o),u.add(l)))}}null==_||_.forEach((e,t)=>{(null==i?void 0:i.has(t))||u.has(t)||_.delete(t)})}function IH(e,t,n){if(!t.composite)return;const r=un.checkDefined(e.buildInfoCache.get(n));if(void 0!==r.latestChangedDtsTime)return r.latestChangedDtsTime||void 0;const i=r.buildInfo&&kW(r.buildInfo)&&r.buildInfo.latestChangedDtsFile?e.host.getModifiedTime(Bo(r.buildInfo.latestChangedDtsFile,Do(r.path))):void 0;return r.latestChangedDtsTime=i||!1,i}function OH(e,t,n){if(e.options.dry)return GH(e,_a.A_non_dry_build_would_update_timestamps_for_output_of_project_0,t.options.configFilePath);AH(e,t,n,_a.Updating_output_timestamps_of_project_0),e.projectStatus.set(n,{type:1,oldestOutputFileName:dU(t,!e.host.useCaseSensitiveFileNames())})}function LH(e,t,n,r,i,o,a){if(!(e.options.stopBuildOnErrors&&4&a)&&i.options.composite)for(let i=r+1;ie.diagnostics.has(oH(e,t)))?c?2:1:0}(e,t,n,r,i,o);return tr("SolutionBuilder::afterBuild"),nr("SolutionBuilder::Build","SolutionBuilder::beforeBuild","SolutionBuilder::afterBuild"),a}function MH(e,t,n){tr("SolutionBuilder::beforeClean");const r=function(e,t,n){const r=dH(e,t,n);if(!r)return 3;if(X$(r))return QH(e,r.circularDiagnostics),4;const{options:i,host:o}=e,a=i.dry?[]:void 0;for(const t of r){const n=oH(e,t),r=cH(e,t,n);if(void 0===r){ZH(e,n);continue}const i=_U(r,!o.useCaseSensitiveFileNames());if(!i.length)continue;const s=new Set(r.fileNames.map(t=>iH(e,t)));for(const t of i)s.has(iH(e,t))||o.fileExists(t)&&(a?a.push(t):(o.deleteFile(t),RH(e,n,0)))}return a&&GH(e,_a.A_non_dry_build_would_delete_the_following_files_Colon_0,a.map(e=>`\r\n * ${e}`).join("")),0}(e,t,n);return tr("SolutionBuilder::afterClean"),nr("SolutionBuilder::Clean","SolutionBuilder::beforeClean","SolutionBuilder::afterClean"),r}function RH(e,t,n){e.host.getParsedCommandLine&&1===n&&(n=2),2===n&&(e.configFileCache.delete(t),e.buildOrder=void 0),e.needsSummary=!0,mH(e,t),gH(e,t,n),pH(e)}function BH(e,t,n){e.reportFileChangeDetected=!0,RH(e,t,n),JH(e,250,!0)}function JH(e,t,n){const{hostWithWatch:r}=e;r.setTimeout&&r.clearTimeout&&(e.timerToBuildInvalidatedProject&&r.clearTimeout(e.timerToBuildInvalidatedProject),e.timerToBuildInvalidatedProject=r.setTimeout(zH,t,"timerToBuildInvalidatedProject",e,n))}function zH(e,t,n){tr("SolutionBuilder::beforeBuild");const r=function(e,t){e.timerToBuildInvalidatedProject=void 0,e.reportFileChangeDetected&&(e.reportFileChangeDetected=!1,e.projectErrorsReported.clear(),XH(e,_a.File_change_detected_Starting_incremental_compilation));let n=0;const r=uH(e),i=kH(e,r,!1);if(i)for(i.done(),n++;e.projectPendingBuild.size;){if(e.timerToBuildInvalidatedProject)return;const i=bH(e,r,!1);if(!i)break;if(1!==i.kind&&(t||5===n))return void JH(e,100,!1);xH(e,i,r).done(),1!==i.kind&&n++}return fH(e),r}(t,n);tr("SolutionBuilder::afterBuild"),nr("SolutionBuilder::Build","SolutionBuilder::beforeBuild","SolutionBuilder::afterBuild"),r&&eK(t,r)}function qH(e,t,n,r){e.watch&&!e.allWatchedConfigFiles.has(n)&&e.allWatchedConfigFiles.set(n,CH(e,t,()=>BH(e,n,2),2e3,null==r?void 0:r.watchOptions,F$.ConfigFile,t))}function UH(e,t,n){DU(t,null==n?void 0:n.options,e.allWatchedExtendedConfigFiles,(t,r)=>CH(e,t,()=>{var t;return null==(t=e.allWatchedExtendedConfigFiles.get(r))?void 0:t.projects.forEach(t=>BH(e,t,2))},2e3,null==n?void 0:n.watchOptions,F$.ExtendedConfigFile),t=>iH(e,t))}function VH(e,t,n,r){e.watch&&AU(K$(e.allWatchedWildcardDirectories,n),r.wildcardDirectories,(i,o)=>e.watchDirectory(i,o=>{var a;IU({watchedDirPath:iH(e,i),fileOrDirectory:o,fileOrDirectoryPath:iH(e,o),configFileName:t,currentDirectory:e.compilerHost.getCurrentDirectory(),options:r.options,program:e.builderPrograms.get(n)||(null==(a=sH(e,n))?void 0:a.fileNames),useCaseSensitiveFileNames:e.parseConfigFileHost.useCaseSensitiveFileNames,writeLog:t=>e.writeLog(t),toPath:t=>iH(e,t)})||BH(e,n,1)},o,null==r?void 0:r.watchOptions,F$.WildcardDirectory,t))}function WH(e,t,n,r){e.watch&&px(K$(e.allWatchedInputFiles,n),new Set(r.fileNames),{createNewValue:i=>CH(e,i,()=>BH(e,n,0),250,null==r?void 0:r.watchOptions,F$.SourceFile,t),onDeleteValue:nx})}function $H(e,t,n,r){e.watch&&e.lastCachedPackageJsonLookups&&px(K$(e.allWatchedPackageJsonFiles,n),e.lastCachedPackageJsonLookups.get(n),{createNewValue:i=>CH(e,i,()=>BH(e,n,0),2e3,null==r?void 0:r.watchOptions,F$.PackageJson,t),onDeleteValue:nx})}function HH(e,t,n,r,i){const o=function(e,t,n,r,i){const o=t,a=t,s=function(e){const t={};return EO.forEach(n=>{De(e,n.name)&&(t[n.name]=e[n.name])}),t.tscBuild=!0,t}(r),c=P$(o,()=>m.projectCompilerOptions);let l,_,u;I$(c),c.getParsedCommandLine=e=>cH(m,e,oH(m,e)),c.resolveModuleNameLiterals=We(o,o.resolveModuleNameLiterals),c.resolveTypeReferenceDirectiveReferences=We(o,o.resolveTypeReferenceDirectiveReferences),c.resolveLibrary=We(o,o.resolveLibrary),c.resolveModuleNames=We(o,o.resolveModuleNames),c.resolveTypeReferenceDirectives=We(o,o.resolveTypeReferenceDirectives),c.getModuleResolutionCache=We(o,o.getModuleResolutionCache),c.resolveModuleNameLiterals||c.resolveModuleNames||(l=AM(c.getCurrentDirectory(),c.getCanonicalFileName),c.resolveModuleNameLiterals=(e,t,n,r,i)=>SV(e,t,n,r,i,o,l,vV),c.getModuleResolutionCache=()=>l),c.resolveTypeReferenceDirectiveReferences||c.resolveTypeReferenceDirectives||(_=IM(c.getCurrentDirectory(),c.getCanonicalFileName,void 0,null==l?void 0:l.getPackageJsonInfoCache(),null==l?void 0:l.optionsToRedirectsKey),c.resolveTypeReferenceDirectiveReferences=(e,t,n,r,i)=>SV(e,t,n,r,i,o,_,kV)),c.resolveLibrary||(u=AM(c.getCurrentDirectory(),c.getCanonicalFileName,void 0,null==l?void 0:l.getPackageJsonInfoCache()),c.resolveLibrary=(e,t,n)=>LM(e,t,n,o,u)),c.getBuildInfo=(e,t)=>DH(m,e,oH(m,t),void 0);const{watchFile:d,watchDirectory:p,writeLog:f}=E$(a,r),m={host:o,hostWithWatch:a,parseConfigFileHost:UV(o),write:We(o,o.trace),options:r,baseCompilerOptions:s,rootNames:n,baseWatchOptions:i,resolvedConfigFilePaths:new Map,configFileCache:new Map,projectStatus:new Map,extendedConfigCache:new Map,buildInfoCache:new Map,outputTimeStamps:new Map,builderPrograms:new Map,diagnostics:new Map,projectPendingBuild:new Map,projectErrorsReported:new Map,compilerHost:c,moduleResolutionCache:l,typeReferenceDirectiveResolutionCache:_,libraryResolutionCache:u,buildOrder:void 0,readFileWithCache:e=>o.readFile(e),projectCompilerOptions:s,cache:void 0,allProjectBuildPending:!0,needsSummary:!0,watchAllProjectsPending:e,watch:e,allWatchedWildcardDirectories:new Map,allWatchedInputFiles:new Map,allWatchedConfigFiles:new Map,allWatchedExtendedConfigFiles:new Map,allWatchedPackageJsonFiles:new Map,filesWatched:new Map,lastCachedPackageJsonLookups:new Map,timerToBuildInvalidatedProject:void 0,reportFileChangeDetected:!1,watchFile:d,watchDirectory:p,writeLog:f};return m}(e,t,n,r,i);return{build:(e,t,n,r)=>jH(o,e,t,n,r),clean:e=>MH(o,e),buildReferences:(e,t,n,r)=>jH(o,e,t,n,r,!0),cleanReferences:e=>MH(o,e,!0),getNextInvalidatedProject:e=>(hH(o,e),kH(o,uH(o),!1)),getBuildOrder:()=>uH(o),getUpToDateStatusOfProject:e=>{const t=lH(o,e),n=oH(o,t);return PH(o,cH(o,t,n),n)},invalidateProject:(e,t)=>RH(o,e,t||0),close:()=>function(e){ux(e.allWatchedConfigFiles,nx),ux(e.allWatchedExtendedConfigFiles,RU),ux(e.allWatchedWildcardDirectories,e=>ux(e,RU)),ux(e.allWatchedInputFiles,e=>ux(e,nx)),ux(e.allWatchedPackageJsonFiles,e=>ux(e,nx))}(o)}}function KH(e,t){return ia(t,e.compilerHost.getCurrentDirectory(),e.compilerHost.getCanonicalFileName)}function GH(e,t,...n){e.host.reportSolutionBuilderStatus(Qx(t,...n))}function XH(e,t,...n){var r,i;null==(i=(r=e.hostWithWatch).onWatchStatusChange)||i.call(r,Qx(t,...n),e.host.getNewLine(),e.baseCompilerOptions)}function QH({host:e},t){t.forEach(t=>e.reportDiagnostic(t))}function YH(e,t,n){QH(e,n),e.projectErrorsReported.set(t,!0),n.length&&e.diagnostics.set(t,n)}function ZH(e,t){YH(e,t,[e.configFileCache.get(t)])}function eK(e,t){if(!e.needsSummary)return;e.needsSummary=!1;const n=e.watch||!!e.host.reportErrorSummary,{diagnostics:r}=e;let i=0,o=[];X$(t)?(tK(e,t.buildOrder),QH(e,t.circularDiagnostics),n&&(i+=d$(t.circularDiagnostics)),n&&(o=[...o,...p$(t.circularDiagnostics)])):(t.forEach(t=>{const n=oH(e,t);e.projectErrorsReported.has(n)||QH(e,r.get(n)||l)}),n&&r.forEach(e=>i+=d$(e)),n&&r.forEach(e=>[...o,...p$(e)])),e.watch?XH(e,f$(i),i):e.host.reportErrorSummary&&e.host.reportErrorSummary(i,o)}function tK(e,t){e.options.verbose&&GH(e,_a.Projects_in_this_build_Colon_0,t.map(t=>"\r\n * "+KH(e,t)).join(""))}function nK(e,t,n){e.options.verbose&&function(e,t,n){switch(n.type){case 5:return GH(e,_a.Project_0_is_out_of_date_because_output_1_is_older_than_input_2,KH(e,t),KH(e,n.outOfDateOutputFileName),KH(e,n.newerInputFileName));case 6:return GH(e,_a.Project_0_is_out_of_date_because_output_1_is_older_than_input_2,KH(e,t),KH(e,n.outOfDateOutputFileName),KH(e,n.newerProjectName));case 3:return GH(e,_a.Project_0_is_out_of_date_because_output_file_1_does_not_exist,KH(e,t),KH(e,n.missingOutputFileName));case 4:return GH(e,_a.Project_0_is_out_of_date_because_there_was_error_reading_file_1,KH(e,t),KH(e,n.fileName));case 7:return GH(e,_a.Project_0_is_out_of_date_because_buildinfo_file_1_indicates_that_some_of_the_changes_were_not_emitted,KH(e,t),KH(e,n.buildInfoFile));case 8:return GH(e,_a.Project_0_is_out_of_date_because_buildinfo_file_1_indicates_that_program_needs_to_report_errors,KH(e,t),KH(e,n.buildInfoFile));case 9:return GH(e,_a.Project_0_is_out_of_date_because_buildinfo_file_1_indicates_there_is_change_in_compilerOptions,KH(e,t),KH(e,n.buildInfoFile));case 10:return GH(e,_a.Project_0_is_out_of_date_because_buildinfo_file_1_indicates_that_file_2_was_root_file_of_compilation_but_not_any_more,KH(e,t),KH(e,n.buildInfoFile),KH(e,n.inputFile));case 1:if(void 0!==n.newestInputFileTime)return GH(e,_a.Project_0_is_up_to_date_because_newest_input_1_is_older_than_output_2,KH(e,t),KH(e,n.newestInputFileName||""),KH(e,n.oldestOutputFileName||""));break;case 2:return GH(e,_a.Project_0_is_up_to_date_with_d_ts_files_from_its_dependencies,KH(e,t));case 15:return GH(e,_a.Project_0_is_up_to_date_but_needs_to_update_timestamps_of_output_files_that_are_older_than_input_files,KH(e,t));case 11:return GH(e,_a.Project_0_is_out_of_date_because_its_dependency_1_is_out_of_date,KH(e,t),KH(e,n.upstreamProjectName));case 12:return GH(e,n.upstreamProjectBlocked?_a.Project_0_can_t_be_built_because_its_dependency_1_was_not_built:_a.Project_0_can_t_be_built_because_its_dependency_1_has_errors,KH(e,t),KH(e,n.upstreamProjectName));case 0:return GH(e,_a.Project_0_is_out_of_date_because_1,KH(e,t),n.reason);case 14:return GH(e,_a.Project_0_is_out_of_date_because_output_for_it_was_generated_with_version_1_that_differs_with_current_version_2,KH(e,t),n.version,s);case 17:GH(e,_a.Project_0_is_being_forcibly_rebuilt,KH(e,t))}}(e,t,n)}var rK=(e=>(e[e.time=0]="time",e[e.count=1]="count",e[e.memory=2]="memory",e))(rK||{});function iK(e,t,n){return aK(e,n)?a$(e,!0):t}function oK(e){return!!e.writeOutputIsTTY&&e.writeOutputIsTTY()&&!e.getEnvironmentVariable("NO_COLOR")}function aK(e,t){return t&&void 0!==t.pretty?t.pretty:oK(e)}function sK(e){return e.options.all?_e(OO.concat(WO),(e,t)=>St(e.name,t.name)):N(OO.concat(WO),e=>!!e.showInSimplifiedHelpView)}function cK(e){e.write(mL(_a.Version_0,s)+e.newLine)}function lK(e){if(!oK(e))return{bold:e=>e,blue:e=>e,blueBackground:e=>e,brightWhite:e=>e};const t=e.getEnvironmentVariable("OS")&&e.getEnvironmentVariable("OS").toLowerCase().includes("windows"),n=e.getEnvironmentVariable("WT_SESSION"),r=e.getEnvironmentVariable("TERM_PROGRAM")&&"vscode"===e.getEnvironmentVariable("TERM_PROGRAM"),i="truecolor"===e.getEnvironmentVariable("COLORTERM")||"xterm-256color"===e.getEnvironmentVariable("TERM");function o(e){return`${e}`}return{bold:function(e){return`${e}`},blue:function(e){return!t||n||r?`${e}`:o(e)},brightWhite:o,blueBackground:function(e){return i?`${e}`:`${e}`}}}function _K(e){return`--${e.name}${e.shortName?`, -${e.shortName}`:""}`}function uK(e,t,n,r){var i;const o=[],a=lK(e),s=_K(t),c=function(e){if("object"!==e.type)return{valueType:function(e){switch(un.assert("listOrElement"!==e.type),e.type){case"string":case"number":case"boolean":return mL(_a.type_Colon);case"list":return mL(_a.one_or_more_Colon);default:return mL(_a.one_of_Colon)}}(e),possibleValues:function e(t){let n;switch(t.type){case"string":case"number":case"boolean":n=t.type;break;case"list":case"listOrElement":n=e(t.element);break;case"object":n="";break;default:const r={};return t.type.forEach((e,n)=>{var i;(null==(i=t.deprecatedKeys)?void 0:i.has(n))||(r[e]||(r[e]=[])).push(n)}),Object.entries(r).map(([,e])=>e.join("/")).join(", ")}return n}(e)}}(t),l="object"==typeof t.defaultValueDescription?mL(t.defaultValueDescription):(_=t.defaultValueDescription,u="list"===t.type||"listOrElement"===t.type?t.element.type:t.type,void 0!==_&&"object"==typeof u?Oe(u.entries()).filter(([,e])=>e===_).map(([e])=>e).join("/"):String(_));var _,u;const d=(null==(i=e.getWidthOfTerminal)?void 0:i.call(e))??0;if(d>=80){let i="";t.description&&(i=mL(t.description)),o.push(...f(s,i,n,r,d,!0),e.newLine),p(c,t)&&(c&&o.push(...f(c.valueType,c.possibleValues,n,r,d,!1),e.newLine),l&&o.push(...f(mL(_a.default_Colon),l,n,r,d,!1),e.newLine)),o.push(e.newLine)}else{if(o.push(a.blue(s),e.newLine),t.description){const e=mL(t.description);o.push(e)}if(o.push(e.newLine),p(c,t)){if(c&&o.push(`${c.valueType} ${c.possibleValues}`),l){c&&o.push(e.newLine);const t=mL(_a.default_Colon);o.push(`${t} ${l}`)}o.push(e.newLine)}o.push(e.newLine)}return o;function p(e,t){const n=t.defaultValueDescription;return!(t.category===_a.Command_line_Options||T(["string"],null==e?void 0:e.possibleValues)&&T([void 0,"false","n/a"],n))}function f(e,t,n,r,i,o){const s=[];let c=!0,l=t;const _=i-r;for(;l.length>0;){let t="";c?(t=e.padStart(n),t=t.padEnd(r),t=o?a.blue(t):t):t="".padStart(r);const i=l.substr(0,_);l=l.slice(_),s.push(`${t}${i}`),c=!1}return s}}function dK(e,t){let n=0;for(const e of t){const t=_K(e).length;n=n>t?n:t}const r=n+2,i=r+2;let o=[];for(const n of t){const t=uK(e,n,r,i);o=[...o,...t]}return o[o.length-2]!==e.newLine&&o.push(e.newLine),o}function pK(e,t,n,r,i,o){let a=[];if(a.push(lK(e).bold(t)+e.newLine+e.newLine),i&&a.push(i+e.newLine+e.newLine),!r)return a=[...a,...dK(e,n)],o&&a.push(o+e.newLine+e.newLine),a;const s=new Map;for(const e of n){if(!e.category)continue;const t=mL(e.category),n=s.get(t)??[];n.push(e),s.set(t,n)}return s.forEach((t,n)=>{a.push(`### ${n}${e.newLine}${e.newLine}`),a=[...a,...dK(e,t)]}),o&&a.push(o+e.newLine+e.newLine),a}function fK(e,t){let n=[...mK(e,`${mL(_a.tsc_Colon_The_TypeScript_Compiler)} - ${mL(_a.Version_0,s)}`)];n=[...n,...pK(e,mL(_a.BUILD_OPTIONS),N(t,e=>e!==WO),!1,Xx(_a.Using_build_b_will_make_tsc_behave_more_like_a_build_orchestrator_than_a_compiler_This_is_used_to_trigger_building_composite_projects_which_you_can_learn_more_about_at_0,"https://aka.ms/tsc-composite-builds"))];for(const t of n)e.write(t)}function mK(e,t){var n;const r=lK(e),i=[],o=(null==(n=e.getWidthOfTerminal)?void 0:n.call(e))??0,a=r.blueBackground("".padStart(5)),s=r.blueBackground(r.brightWhite("TS ".padStart(5)));if(o>=t.length+5){const n=(o>120?120:o)-5;i.push(t.padEnd(n)+a+e.newLine),i.push("".padStart(n)+s+e.newLine)}else i.push(t+e.newLine),i.push(e.newLine);return i}function gK(e,t){t.options.all?function(e,t,n,r){let i=[...mK(e,`${mL(_a.tsc_Colon_The_TypeScript_Compiler)} - ${mL(_a.Version_0,s)}`)];i=[...i,...pK(e,mL(_a.ALL_COMPILER_OPTIONS),t,!0,void 0,Xx(_a.You_can_learn_about_all_of_the_compiler_options_at_0,"https://aka.ms/tsc"))],i=[...i,...pK(e,mL(_a.WATCH_OPTIONS),r,!1,mL(_a.Including_watch_w_will_start_watching_the_current_project_for_the_file_changes_Once_set_you_can_config_watch_mode_with_Colon))],i=[...i,...pK(e,mL(_a.BUILD_OPTIONS),N(n,e=>e!==WO),!1,Xx(_a.Using_build_b_will_make_tsc_behave_more_like_a_build_orchestrator_than_a_compiler_This_is_used_to_trigger_building_composite_projects_which_you_can_learn_more_about_at_0,"https://aka.ms/tsc-composite-builds"))];for(const t of i)e.write(t)}(e,sK(t),$O,FO):function(e,t){const n=lK(e);let r=[...mK(e,`${mL(_a.tsc_Colon_The_TypeScript_Compiler)} - ${mL(_a.Version_0,s)}`)];r.push(n.bold(mL(_a.COMMON_COMMANDS))+e.newLine+e.newLine),a("tsc",_a.Compiles_the_current_project_tsconfig_json_in_the_working_directory),a("tsc app.ts util.ts",_a.Ignoring_tsconfig_json_compiles_the_specified_files_with_default_compiler_options),a("tsc -b",_a.Build_a_composite_project_in_the_working_directory),a("tsc --init",_a.Creates_a_tsconfig_json_with_the_recommended_settings_in_the_working_directory),a("tsc -p ./path/to/tsconfig.json",_a.Compiles_the_TypeScript_project_located_at_the_specified_path),a("tsc --help --all",_a.An_expanded_version_of_this_information_showing_all_possible_compiler_options),a(["tsc --noEmit","tsc --target esnext"],_a.Compiles_the_current_project_with_additional_settings);const i=t.filter(e=>e.isCommandLineOnly||e.category===_a.Command_line_Options),o=t.filter(e=>!T(i,e));r=[...r,...pK(e,mL(_a.COMMAND_LINE_FLAGS),i,!1,void 0,void 0),...pK(e,mL(_a.COMMON_COMPILER_OPTIONS),o,!1,void 0,Xx(_a.You_can_learn_about_all_of_the_compiler_options_at_0,"https://aka.ms/tsc"))];for(const t of r)e.write(t);function a(t,i){const o="string"==typeof t?[t]:t;for(const t of o)r.push(" "+n.blue(t)+e.newLine);r.push(" "+mL(i)+e.newLine+e.newLine)}}(e,sK(t))}function hK(e,t,n){let r,i=a$(e);if(n.options.locale&&lc(n.options.locale,e,n.errors),n.errors.length>0)return n.errors.forEach(i),e.exit(1);if(n.options.init)return function(e,t,n){const r=Jo(jo(e.getCurrentDirectory(),"tsconfig.json"));if(e.fileExists(r))t(Qx(_a.A_tsconfig_json_file_is_already_defined_at_Colon_0,r));else{e.writeFile(r,XL(n,e.newLine));const t=[e.newLine,...mK(e,"Created a new tsconfig.json")];t.push("You can learn more at https://aka.ms/tsconfig"+e.newLine);for(const n of t)e.write(n)}}(e,i,n.options),e.exit(0);if(n.options.version)return cK(e),e.exit(0);if(n.options.help||n.options.all)return gK(e,n),e.exit(0);if(n.options.watch&&n.options.listFilesOnly)return i(Qx(_a.Options_0_and_1_cannot_be_combined,"watch","listFilesOnly")),e.exit(1);if(n.options.project){if(0!==n.fileNames.length)return i(Qx(_a.Option_project_cannot_be_mixed_with_source_files_on_a_command_line)),e.exit(1);const t=Jo(n.options.project);if(!t||e.directoryExists(t)){if(r=jo(t,"tsconfig.json"),!e.fileExists(r))return i(Qx(_a.Cannot_find_a_tsconfig_json_file_at_the_specified_directory_Colon_0,n.options.project)),e.exit(1)}else if(r=t,!e.fileExists(r))return i(Qx(_a.The_specified_path_does_not_exist_Colon_0,n.options.project)),e.exit(1)}else 0===n.fileNames.length&&(r=BU(Jo(e.getCurrentDirectory()),t=>e.fileExists(t)));if(0===n.fileNames.length&&!r)return n.options.showConfig?i(Qx(_a.Cannot_find_a_tsconfig_json_file_at_the_current_directory_Colon_0,Jo(e.getCurrentDirectory()))):(cK(e),gK(e,n)),e.exit(1);const o=e.getCurrentDirectory(),a=QL(n.options,e=>Bo(e,o));if(r){const o=new Map,s=u$(r,a,o,n.watchOptions,e,i);if(a.showConfig)return 0!==s.errors.length?(i=iK(e,i,s.options),s.errors.forEach(i),e.exit(1)):(e.write(JSON.stringify(qL(s,r,e),null,4)+e.newLine),e.exit(0));if(i=iK(e,i,s.options),tx(s.options)){if(bK(e,i))return;return function(e,t,n,r,i,o,a){const s=M$({configFileName:r.options.configFilePath,optionsToExtend:i,watchOptionsToExtend:o,system:e,reportDiagnostic:n,reportWatchStatus:FK(e,r.options)});return DK(e,t,s),s.configFileParsingResult=r,s.extendedConfigCache=a,V$(s)}(e,t,i,s,a,n.watchOptions,o)}Ek(s.options)?CK(e,t,i,s):TK(e,t,i,s)}else{if(a.showConfig)return e.write(JSON.stringify(qL(n,jo(o,"tsconfig.json"),e),null,4)+e.newLine),e.exit(0);if(i=iK(e,i,a),tx(a)){if(bK(e,i))return;return function(e,t,n,r,i,o){const a=R$({rootFiles:r,options:i,watchOptions:o,system:e,reportDiagnostic:n,reportWatchStatus:FK(e,i)});return DK(e,t,a),V$(a)}(e,t,i,n.fileNames,a,n.watchOptions)}Ek(a)?CK(e,t,i,{...n,options:a}):TK(e,t,i,{...n,options:a})}}function yK(e){if(e.length>0&&45===e[0].charCodeAt(0)){const t=e[0].slice(45===e[0].charCodeAt(1)?2:1).toLowerCase();return t===WO.name||t===WO.shortName}return!1}function vK(e,t,n){if(yK(n)){const{buildOptions:r,watchOptions:i,projects:o,errors:a}=fL(n);if(!r.generateCpuProfile||!e.enableCPUProfiler)return kK(e,t,r,i,o,a);e.enableCPUProfiler(r.generateCpuProfile,()=>kK(e,t,r,i,o,a))}const r=lL(n,t=>e.readFile(t));if(!r.options.generateCpuProfile||!e.enableCPUProfiler)return hK(e,t,r);e.enableCPUProfiler(r.options.generateCpuProfile,()=>hK(e,t,r))}function bK(e,t){return!(e.watchFile&&e.watchDirectory||(t(Qx(_a.The_current_host_does_not_support_the_0_option,"--watch")),e.exit(1),0))}var xK=2;function kK(e,t,n,r,i,o){const a=iK(e,a$(e),n);if(n.locale&&lc(n.locale,e,o),o.length>0)return o.forEach(a),e.exit(1);if(n.help)return cK(e),fK(e,HO),e.exit(0);if(0===i.length)return cK(e),fK(e,HO),e.exit(0);if(!e.getModifiedTime||!e.setModifiedTime||n.clean&&!e.deleteFile)return a(Qx(_a.The_current_host_does_not_support_the_0_option,"--build")),e.exit(1);if(n.watch){if(bK(e,a))return;const o=tH(e,void 0,a,Y$(e,aK(e,n)),FK(e,n));o.jsDocParsingMode=xK;const s=EK(e,n);wK(e,t,o,s);const c=o.onWatchStatusChange;let l=!1;o.onWatchStatusChange=(e,t,n,r)=>{null==c||c(e,t,n,r),!l||e.code!==_a.Found_0_errors_Watching_for_file_changes.code&&e.code!==_a.Found_1_error_Watching_for_file_changes.code||PK(_,s)};const _=rH(o,i,n,r);return _.build(),PK(_,s),l=!0,_}const s=eH(e,void 0,a,Y$(e,aK(e,n)),SK(e,n));s.jsDocParsingMode=xK;const c=EK(e,n);wK(e,t,s,c);const l=nH(s,i,n),_=n.clean?l.clean():l.build();return PK(l,c),pr(),e.exit(_)}function SK(e,t){return aK(e,t)?(t,n)=>e.write(g$(t,n,e.newLine,e)):void 0}function TK(e,t,n,r){const{fileNames:i,options:o,projectReferences:a}=r,s=WU(o,void 0,e);s.jsDocParsingMode=xK;const c=s.getCurrentDirectory(),l=Wt(s.useCaseSensitiveFileNames());$U(s,e=>Uo(e,c,l)),OK(e,o,!1);const _=LV({rootNames:i,options:o,projectReferences:a,host:s,configFileParsingDiagnostics:PV(r)}),u=C$(_,n,t=>e.write(t+e.newLine),SK(e,o));return jK(e,_,void 0),t(_),e.exit(u)}function CK(e,t,n,r){const{options:i,fileNames:o,projectReferences:a}=r;OK(e,i,!1);const s=z$(i,e);s.jsDocParsingMode=xK;const c=B$({host:s,system:e,rootNames:o,options:i,configFileParsingDiagnostics:PV(r),projectReferences:a,reportDiagnostic:n,reportErrorSummary:SK(e,i),afterProgramEmitAndDiagnostics:n=>{jK(e,n.getProgram(),void 0),t(n)}});return e.exit(c)}function wK(e,t,n,r){NK(e,n,!0),n.afterProgramEmitAndDiagnostics=n=>{jK(e,n.getProgram(),r),t(n)}}function NK(e,t,n){const r=t.createProgram;t.createProgram=(t,i,o,a,s,c)=>(un.assert(void 0!==t||void 0===i&&!!a),void 0!==i&&OK(e,i,n),r(t,i,o,a,s,c))}function DK(e,t,n){n.jsDocParsingMode=xK,NK(e,n,!1);const r=n.afterProgramCreate;n.afterProgramCreate=n=>{r(n),jK(e,n.getProgram(),void 0),t(n)}}function FK(e,t){return _$(e,aK(e,t))}function EK(e,t){if(e===so&&t.extendedDiagnostics)return _r(),function(){let e;return{addAggregateStatistic:function(t){const n=null==e?void 0:e.get(t.name);n?2===n.type?n.value=Math.max(n.value,t.value):n.value+=t.value:(e??(e=new Map)).set(t.name,t)},forEachAggregateStatistics:function(t){null==e||e.forEach(t)},clear:function(){e=void 0}}}()}function PK(e,t){if(!t)return;if(!lr())return void so.write(_a.Performance_timings_for_diagnostics_or_extendedDiagnostics_are_not_available_in_this_session_A_native_implementation_of_the_Web_Performance_API_could_not_be_found.message+"\n");const n=[];function r(e){const t=rr(e);t&&n.push({name:i(e),value:t,type:1})}function i(e){return e.replace("SolutionBuilder::","")}n.push({name:"Projects in scope",value:Q$(e.getBuildOrder()).length,type:1}),r("SolutionBuilder::Projects built"),r("SolutionBuilder::Timestamps only updates"),r("SolutionBuilder::Bundles updated"),t.forEachAggregateStatistics(e=>{e.name=`Aggregate ${e.name}`,n.push(e)}),or((e,t)=>{LK(e)&&n.push({name:`${i(e)} time`,value:t,type:0})}),ur(),_r(),t.clear(),MK(so,n)}function AK(e,t){return e===so&&(t.diagnostics||t.extendedDiagnostics)}function IK(e,t){return e===so&&t.generateTrace}function OK(e,t,n){AK(e,t)&&_r(e),IK(e,t)&&dr(n?"build":"project",t.generateTrace,t.configFilePath)}function LK(e){return Gt(e,"SolutionBuilder::")}function jK(e,t,n){var r;const i=t.getCompilerOptions();let o;if(IK(e,i)&&(null==(r=Hn)||r.stopTracing()),AK(e,i)){o=[];const r=e.getMemoryUsage?e.getMemoryUsage():-1;s("Files",t.getSourceFiles().length);const l=function(e){const t=function(){const e=new Map;return e.set("Library",0),e.set("Definitions",0),e.set("TypeScript",0),e.set("JavaScript",0),e.set("JSON",0),e.set("Other",0),e}();return d(e.getSourceFiles(),n=>{const r=function(e,t){if(e.isSourceFileDefaultLibrary(t))return"Library";if(t.isDeclarationFile)return"Definitions";const n=t.path;return So(n,SS)?"TypeScript":So(n,wS)?"JavaScript":ko(n,".json")?"JSON":"Other"}(e,n),i=Ma(n).length;t.set(r,t.get(r)+i)}),t}(t);if(i.extendedDiagnostics)for(const[e,t]of l.entries())s("Lines of "+e,t);else s("Lines",g(l.values(),(e,t)=>e+t,0));s("Identifiers",t.getIdentifierCount()),s("Symbols",t.getSymbolCount()),s("Types",t.getTypeCount()),s("Instantiations",t.getInstantiationCount()),r>=0&&a({name:"Memory used",value:r,type:2},!0);const _=lr(),u=_?ir("Program"):0,p=_?ir("Bind"):0,f=_?ir("Check"):0,m=_?ir("Emit"):0;if(i.extendedDiagnostics){const e=t.getRelationCacheSizes();s("Assignability cache size",e.assignable),s("Identity cache size",e.identity),s("Subtype cache size",e.subtype),s("Strict subtype cache size",e.strictSubtype),_&&or((e,t)=>{LK(e)||c(`${e} time`,t,!0)})}else _&&(c("I/O read",ir("I/O Read"),!0),c("I/O write",ir("I/O Write"),!0),c("Parse time",u,!0),c("Bind time",p,!0),c("Check time",f,!0),c("Emit time",m,!0));_&&c("Total time",u+p+f+m,!1),MK(e,o),_?n?(or(e=>{LK(e)||sr(e)}),ar(e=>{LK(e)||cr(e)})):ur():e.write(_a.Performance_timings_for_diagnostics_or_extendedDiagnostics_are_not_available_in_this_session_A_native_implementation_of_the_Web_Performance_API_could_not_be_found.message+"\n")}function a(e,t){o.push(e),t&&(null==n||n.addAggregateStatistic(e))}function s(e,t){a({name:e,value:t,type:1},!0)}function c(e,t,n){a({name:e,value:t,type:0},n)}}function MK(e,t){let n=0,r=0;for(const e of t){e.name.length>n&&(n=e.name.length);const t=RK(e);t.length>r&&(r=t.length)}for(const i of t)e.write(`${i.name}:`.padEnd(n+2)+RK(i).toString().padStart(r)+e.newLine)}function RK(e){switch(e.type){case 1:return""+e.value;case 0:return(e.value/1e3).toFixed(2)+"s";case 2:return Math.round(e.value/1e3)+"K";default:un.assertNever(e.type)}}function BK(e,t=!0){return{type:e,reportFallback:t}}var JK=BK(void 0,!1),zK=BK(void 0,!1),qK=BK(void 0,!0);function UK(e,t){const n=Jk(e,"strictNullChecks");return{serializeTypeOfDeclaration:function(e,n,r){switch(e.kind){case 170:case 342:return u(e,n,r);case 261:return function(e,n,r){var i;const o=fv(e);let s=qK;return o?s=BK(a(o,r,e,n)):!e.initializer||1!==(null==(i=n.declarations)?void 0:i.length)&&1!==w(n.declarations,lE)||t.isExpandoFunctionDeclaration(e)||F(e)||(s=h(e.initializer,r,void 0,void 0,sf(e))),void 0!==s.type?s.type:d(e,n,r,s.reportFallback)}(e,n,r);case 172:case 349:case 173:return function(e,n,r){const i=fv(e),o=t.requiresAddingImplicitUndefined(e,n,r.enclosingDeclaration);let s=qK;if(i)s=BK(a(i,r,e,n,o));else{const t=ND(e)?e.initializer:void 0;t&&!F(e)&&(s=h(t,r,void 0,o,nf(e)))}return void 0!==s.type?s.type:d(e,n,r,s.reportFallback)}(e,n,r);case 209:return d(e,n,r);case 278:return l(e.expression,r,void 0,!0);case 212:case 213:case 227:return function(e,t,n){const r=fv(e);let i;r&&(i=a(r,n,e,t));const o=n.suppressReportInferenceFallback;n.suppressReportInferenceFallback=!0;const s=i??d(e,t,n,!1);return n.suppressReportInferenceFallback=o,s}(e,n,r);case 304:case 305:return function(e,n,r){const i=fv(e);let a;if(i&&t.canReuseTypeNodeAnnotation(r,e,i,n)&&(a=o(i,r)),!a&&304===e.kind){const i=e.initializer,s=TA(i)?CA(i):235===i.kind||217===i.kind?i.type:void 0;s&&!kl(s)&&t.canReuseTypeNodeAnnotation(r,e,s,n)&&(a=o(s,r))}return a??d(e,n,r,!1)}(e,n,r);default:un.assertNever(e,`Node needs to be an inferrable node, found ${un.formatSyntaxKind(e.kind)}`)}},serializeReturnTypeForSignature:function(e,t,n){switch(e.kind){case 178:return c(e,t,n);case 175:case 263:case 181:case 174:case 180:case 177:case 179:case 182:case 185:case 186:case 219:case 220:case 318:case 324:return D(e,t,n);default:un.assertNever(e,`Node needs to be an inferrable node, found ${un.formatSyntaxKind(e.kind)}`)}},serializeTypeOfExpression:l,serializeTypeOfAccessor:c,tryReuseExistingTypeNode(e,n){if(t.canReuseTypeNode(e,n))return i(e,n)}};function r(e,n,r=n){return void 0===n?void 0:t.markNodeReuse(e,16&n.flags?n:mw.cloneNode(n),r??n)}function i(n,i){const{finalizeBoundary:o,startRecoveryScope:a,hadError:s,markError:c}=t.createRecoveryBoundary(n),l=lJ(i,_,b_);if(o())return n.approximateLength+=i.end-i.pos,l;function _(i){if(s())return i;const o=a(),l=EC(i)?t.enterNewScope(n,i):void 0,u=function(i){var o;if(lP(i))return lJ(i.type,_,b_);if(mP(i)||320===i.kind)return mw.createKeywordTypeNode(133);if(gP(i))return mw.createKeywordTypeNode(159);if(hP(i))return mw.createUnionTypeNode([lJ(i.type,_,b_),mw.createLiteralTypeNode(mw.createNull())]);if(vP(i))return mw.createUnionTypeNode([lJ(i.type,_,b_),mw.createKeywordTypeNode(157)]);if(yP(i))return lJ(i.type,_);if(xP(i))return mw.createArrayTypeNode(lJ(i.type,_,b_));if(TP(i))return mw.createTypeLiteralNode(E(i.jsDocPropertyTags,e=>{const r=lJ(aD(e.name)?e.name:e.name.right,_,aD),o=t.getJsDocPropertyOverride(n,i,e);return mw.createPropertySignature(void 0,r,e.isBracketed||e.typeExpression&&vP(e.typeExpression.type)?mw.createToken(58):void 0,o||e.typeExpression&&lJ(e.typeExpression.type,_,b_)||mw.createKeywordTypeNode(133))}));if(RD(i)&&aD(i.typeName)&&""===i.typeName.escapedText)return hw(mw.createKeywordTypeNode(133),i);if((OF(i)||RD(i))&&Om(i))return mw.createTypeLiteralNode([mw.createIndexSignature(void 0,[mw.createParameterDeclaration(void 0,void 0,"x",void 0,lJ(i.typeArguments[0],_,b_))],lJ(i.typeArguments[1],_,b_))]);if(bP(i)){if(Ng(i)){let e;return mw.createConstructorTypeNode(void 0,_J(i.typeParameters,_,SD),B(i.parameters,(r,i)=>r.name&&aD(r.name)&&"new"===r.name.escapedText?void(e=r.type):mw.createParameterDeclaration(void 0,l(r),t.markNodeReuse(n,mw.createIdentifier(u(r,i)),r),mw.cloneNode(r.questionToken),lJ(r.type,_,b_),void 0)),lJ(e||i.type,_,b_)||mw.createKeywordTypeNode(133))}return mw.createFunctionTypeNode(_J(i.typeParameters,_,SD),E(i.parameters,(e,r)=>mw.createParameterDeclaration(void 0,l(e),t.markNodeReuse(n,mw.createIdentifier(u(e,r)),e),mw.cloneNode(e.questionToken),lJ(e.type,_,b_),void 0)),lJ(i.type,_,b_)||mw.createKeywordTypeNode(133))}if(ZD(i))return t.canReuseTypeNode(n,i)||c(),i;if(SD(i)){const{node:e}=t.trackExistingEntityName(n,i.name);return mw.updateTypeParameterDeclaration(i,_J(i.modifiers,_,Zl),e,lJ(i.constraint,_,b_),lJ(i.default,_,b_))}if(tF(i)){return d(i)||(c(),i)}if(RD(i)){return m(i)||(c(),i)}if(df(i)){if(132===(null==(o=i.attributes)?void 0:o.token))return c(),i;if(!t.canReuseTypeNode(n,i))return t.serializeExistingTypeNode(n,i);const e=function(e,r){const i=t.getModuleSpecifierOverride(n,e,r);return i?hw(mw.createStringLiteral(i),r):r}(i,i.argument.literal),a=e===i.argument.literal?r(n,i.argument.literal):e;return mw.updateImportTypeNode(i,a===i.argument.literal?r(n,i.argument):mw.createLiteralTypeNode(a),lJ(i.attributes,_,wE),lJ(i.qualifier,_,e_),_J(i.typeArguments,_,b_),i.isTypeOf)}if(Sc(i)&&168===i.name.kind&&!t.hasLateBindableName(i)){if(!Rh(i))return a(i,_);if(t.shouldRemoveDeclaration(n,i))return}if(r_(i)&&!i.type||ND(i)&&!i.type&&!i.initializer||wD(i)&&!i.type&&!i.initializer||TD(i)&&!i.type&&!i.initializer){let e=a(i,_);return e===i&&(e=t.markNodeReuse(n,mw.cloneNode(i),i)),e.type=mw.createKeywordTypeNode(133),TD(i)&&(e.modifiers=void 0),e}if(zD(i)){return f(i)||(c(),i)}if(kD(i)&&ab(i.expression)){const{node:r,introducesError:o}=t.trackExistingEntityName(n,i.expression);if(o){const r=t.serializeTypeOfExpression(n,i.expression);let o;if(rF(r))o=r.literal;else{const e=t.evaluateEntityNameExpression(i.expression),a="string"==typeof e.value?mw.createStringLiteral(e.value,void 0):"number"==typeof e.value?mw.createNumericLiteral(e.value,0):void 0;if(!a)return iF(r)&&t.trackComputedName(n,i.expression),i;o=a}return 11===o.kind&&ms(o.text,yk(e))?mw.createIdentifier(o.text):9!==o.kind||o.text.startsWith("-")?mw.updateComputedPropertyName(i,o):o}return mw.updateComputedPropertyName(i,r)}if(MD(i)){let e;if(aD(i.parameterName)){const{node:r,introducesError:o}=t.trackExistingEntityName(n,i.parameterName);o&&c(),e=r}else e=mw.cloneNode(i.parameterName);return mw.updateTypePredicateNode(i,mw.cloneNode(i.assertsModifier),e,lJ(i.type,_,b_))}if(VD(i)||qD(i)||nF(i)){const e=a(i,_),r=t.markNodeReuse(n,e===i?mw.cloneNode(i):e,i);return xw(r,Zd(r)|(1024&n.flags&&qD(i)?0:1)),r}if(UN(i)&&268435456&n.flags&&!i.singleQuote){const e=mw.cloneNode(i);return e.singleQuote=!0,e}if(XD(i)){const e=lJ(i.checkType,_,b_),r=t.enterNewScope(n,i),o=lJ(i.extendsType,_,b_),a=lJ(i.trueType,_,b_);r();const s=lJ(i.falseType,_,b_);return mw.updateConditionalTypeNode(i,e,o,a,s)}if(eF(i))if(158===i.operator&&155===i.type.kind){if(!t.canReuseTypeNode(n,i))return c(),i}else if(143===i.operator){return p(i)||(c(),i)}return a(i,_);function a(e,t){return vJ(e,t,void 0,n.enclosingFile&&n.enclosingFile===vd(e)?void 0:s)}function s(e,t,n,r,i){let o=_J(e,t,n,r,i);return o&&(-1===o.pos&&-1===o.end||(o===e&&(o=mw.createNodeArray(e.slice(),e.hasTrailingComma)),CT(o,-1,-1))),o}function l(e){return e.dotDotDotToken||(e.type&&xP(e.type)?mw.createToken(26):void 0)}function u(e,t){return e.name&&aD(e.name)&&"this"===e.name.escapedText?"this":l(e)?"args":`arg${t}`}}(i);return null==l||l(),s()?b_(i)&&!MD(i)?(o(),t.serializeExistingTypeNode(n,i)):i:u?t.markNodeReuse(n,u,i):void 0}function u(e){const t=oh(e);switch(t.kind){case 184:return m(t);case 187:return f(t);case 200:return d(t);case 199:const e=t;if(143===e.operator)return p(e)}return lJ(e,_,b_)}function d(e){const t=u(e.objectType);if(void 0!==t)return mw.updateIndexedAccessTypeNode(e,t,lJ(e.indexType,_,b_))}function p(e){un.assertEqual(e.operator,143);const t=u(e.type);if(void 0!==t)return mw.updateTypeOperatorNode(e,t)}function f(e){const{introducesError:r,node:i}=t.trackExistingEntityName(n,e.exprName);if(!r)return mw.updateTypeQueryNode(e,i,_J(e.typeArguments,_,b_));const o=t.serializeTypeName(n,e.exprName,!0);return o?t.markNodeReuse(n,o,e.exprName):void 0}function m(e){if(t.canReuseTypeNode(n,e)){const{introducesError:r,node:i}=t.trackExistingEntityName(n,e.typeName),o=_J(e.typeArguments,_,b_);if(!r){const r=mw.updateTypeReferenceNode(e,i,o);return t.markNodeReuse(n,r,e)}{const r=t.serializeTypeName(n,e.typeName,!1,o);if(r)return t.markNodeReuse(n,r,e.typeName)}}}}function o(e,n,r){if(!e)return;let o;return r&&!N(e)||!t.canReuseTypeNode(n,e)||(o=i(n,e),void 0!==o&&(o=C(o,r,void 0,n))),o}function a(e,n,r,i,a,s=void 0!==a){if(!e)return;if(!(t.canReuseTypeNodeAnnotation(n,r,e,i,a)||a&&t.canReuseTypeNodeAnnotation(n,r,e,i,!1)))return;let c;return a&&!N(e)||(c=o(e,n,a)),void 0===c&&s?(n.tracker.reportInferenceFallback(r),t.serializeExistingTypeNode(n,e,a)??mw.createKeywordTypeNode(133)):c}function s(e,n,r,i){if(!e)return;const a=o(e,n,r);return void 0!==a?a:(n.tracker.reportInferenceFallback(i??e),t.serializeExistingTypeNode(n,e,r)??mw.createKeywordTypeNode(133))}function c(e,n,r){return function(e,n,r){const i=t.getAllAccessorDeclarations(e),o=function(e,t){let n=_(e);return n||e===t.firstAccessor||(n=_(t.firstAccessor)),!n&&t.secondAccessor&&e!==t.secondAccessor&&(n=_(t.secondAccessor)),n}(e,i);return o&&!MD(o)?m(r,e,()=>a(o,r,e,n)??d(e,n,r)):i.getAccessor?m(r,i.getAccessor,()=>D(i.getAccessor,n,r)):void 0}(e,n,r)??f(e,t.getAllAccessorDeclarations(e),r,n)}function l(e,t,n,r){const i=h(e,t,!1,n,r);return void 0!==i.type?i.type:p(e,t,i.reportFallback)}function _(e){if(e)return 178===e.kind?Em(e)&&nl(e)||gv(e):yv(e)}function u(e,n,r){const i=e.parent;if(179===i.kind)return c(i,void 0,r);const o=fv(e),s=t.requiresAddingImplicitUndefined(e,n,r.enclosingDeclaration);let l=qK;return o?l=BK(a(o,r,e,n,s)):TD(e)&&e.initializer&&aD(e.name)&&!F(e)&&(l=h(e.initializer,r,void 0,s)),void 0!==l.type?l.type:d(e,n,r,l.reportFallback)}function d(e,n,r,i=!0){return i&&r.tracker.reportInferenceFallback(e),!0===r.noInferenceFallback?mw.createKeywordTypeNode(133):t.serializeTypeOfDeclaration(r,e,n)}function p(e,n,r=!0,i){return un.assert(!i),r&&n.tracker.reportInferenceFallback(e),!0===n.noInferenceFallback?mw.createKeywordTypeNode(133):t.serializeTypeOfExpression(n,e)??mw.createKeywordTypeNode(133)}function f(e,n,r,i,o=!0){return 178===e.kind?D(e,i,r,o):(o&&r.tracker.reportInferenceFallback(e),(n.getAccessor&&D(n.getAccessor,i,r,o))??t.serializeTypeOfDeclaration(r,e,i)??mw.createKeywordTypeNode(133))}function m(e,n,r){const i=t.enterNewScope(e,n),o=r();return i(),o}function g(e,t,n,r){return kl(t)?h(e,n,!0,r):BK(s(t,n,r))}function h(e,r,i=!1,o=!1,a=!1){switch(e.kind){case 218:return TA(e)?g(e.expression,CA(e),r,o):h(e.expression,r,i,o);case 80:if(t.isUndefinedIdentifierExpression(e))return BK(S());break;case 106:return BK(n?C(mw.createLiteralTypeNode(mw.createNull()),o,e,r):mw.createKeywordTypeNode(133));case 220:case 219:return un.type(e),m(r,e,()=>function(e,t){const n=D(e,void 0,t),r=b(e.typeParameters,t),i=e.parameters.map(e=>v(e,t));return BK(mw.createFunctionTypeNode(r,i,n))}(e,r));case 217:case 235:const s=e;return g(s.expression,s.type,r,o);case 225:const c=e;if(bC(c))return T(40===c.operator?c.operand:c,10===c.operand.kind?163:150,r,i||a,o);break;case 210:return function(e,t,n,r){if(!function(e,t,n){if(!n)return t.tracker.reportInferenceFallback(e),!1;for(const n of e.elements)if(231===n.kind)return t.tracker.reportInferenceFallback(n),!1;return!0}(e,t,n))return r||_u(rh(e).parent)?zK:BK(p(e,t,!1,r));const i=t.noInferenceFallback;t.noInferenceFallback=!0;const o=[];for(const r of e.elements)if(un.assert(231!==r.kind),233===r.kind)o.push(S());else{const e=h(r,t,n),i=void 0!==e.type?e.type:p(r,t,e.reportFallback);o.push(i)}return mw.createTupleTypeNode(o).emitNode={flags:1,autoGenerate:void 0,internalFlags:0},t.noInferenceFallback=i,JK}(e,r,i,o);case 211:return function(e,n,r,i){if(!function(e,n){let r=!0;for(const i of e.properties){if(262144&i.flags){r=!1;break}if(305===i.kind||306===i.kind)n.tracker.reportInferenceFallback(i),r=!1;else{if(262144&i.name.flags){r=!1;break}if(81===i.name.kind)r=!1;else if(168===i.name.kind){const e=i.name.expression;bC(e,!1)||t.isDefinitelyReferenceToGlobalSymbolObject(e)||(n.tracker.reportInferenceFallback(i.name),r=!1)}}}return r}(e,n))return i||_u(rh(e).parent)?zK:BK(p(e,n,!1,i));const o=n.noInferenceFallback;n.noInferenceFallback=!0;const a=[],s=n.flags;n.flags|=4194304;for(const t of e.properties){un.assert(!iP(t)&&!oP(t));const e=t.name;let i;switch(t.kind){case 175:i=m(n,t,()=>x(t,e,n,r));break;case 304:i=y(t,e,n,r);break;case 179:case 178:i=k(t,e,n)}i&&(Aw(i,t),a.push(i))}n.flags=s;const c=mw.createTypeLiteralNode(a);return 1024&n.flags||xw(c,1),n.noInferenceFallback=o,JK}(e,r,i,o);case 232:return BK(p(e,r,!0,o));case 229:if(!i&&!a)return BK(mw.createKeywordTypeNode(154));break;default:let l,_=e;switch(e.kind){case 9:l=150;break;case 15:_=mw.createStringLiteral(e.text),l=154;break;case 11:l=154;break;case 10:l=163;break;case 112:case 97:l=136}if(l)return T(_,l,r,i||a,o)}return qK}function y(e,t,n,i){const o=i?[mw.createModifier(148)]:[],a=h(e.initializer,n,i),s=void 0!==a.type?a.type:d(e,void 0,n,a.reportFallback);return mw.createPropertySignature(o,r(n,t),void 0,s)}function v(e,n){return mw.updateParameterDeclaration(e,void 0,r(n,e.dotDotDotToken),t.serializeNameOfParameter(n,e),t.isOptionalParameter(e)?mw.createToken(58):void 0,u(e,void 0,n),void 0)}function b(e,n){return null==e?void 0:e.map(e=>{var i;const{node:o}=t.trackExistingEntityName(n,e.name);return mw.updateTypeParameterDeclaration(e,null==(i=e.modifiers)?void 0:i.map(e=>r(n,e)),o,s(e.constraint,n),s(e.default,n))})}function x(e,t,n,i){const o=D(e,void 0,n),a=b(e.typeParameters,n),s=e.parameters.map(e=>v(e,n));return i?mw.createPropertySignature([mw.createModifier(148)],r(n,t),r(n,e.questionToken),mw.createFunctionTypeNode(a,s,o)):(aD(t)&&"new"===t.escapedText&&(t=mw.createStringLiteral("new")),mw.createMethodSignature([],r(n,t),r(n,e.questionToken),a,s,o))}function k(e,n,i){const o=t.getAllAccessorDeclarations(e),a=o.getAccessor&&_(o.getAccessor),c=o.setAccessor&&_(o.setAccessor);if(void 0!==a&&void 0!==c)return m(i,e,()=>{const t=e.parameters.map(e=>v(e,i));return Nu(e)?mw.updateGetAccessorDeclaration(e,[],r(i,n),t,s(a,i),void 0):mw.updateSetAccessorDeclaration(e,[],r(i,n),t,void 0)});if(o.firstAccessor===e){const t=(a?m(i,o.getAccessor,()=>s(a,i)):c?m(i,o.setAccessor,()=>s(c,i)):void 0)??f(e,o,i,void 0);return mw.createPropertySignature(void 0===o.setAccessor?[mw.createModifier(148)]:[],r(i,n),void 0,t)}}function S(){return n?mw.createKeywordTypeNode(157):mw.createKeywordTypeNode(133)}function T(e,t,n,i,o){let a;return i?(225===e.kind&&40===e.operator&&(a=mw.createLiteralTypeNode(r(n,e.operand))),a=mw.createLiteralTypeNode(r(n,e))):a=mw.createKeywordTypeNode(t),BK(C(a,o,e,n))}function C(e,t,r,i){const o=r&&rh(r).parent,a=o&&_u(o)&&XT(o);return n&&(t||a)?(N(e)||i.tracker.reportInferenceFallback(e),KD(e)?mw.createUnionTypeNode([...e.types,mw.createKeywordTypeNode(157)]):mw.createUnionTypeNode([e,mw.createKeywordTypeNode(157)])):e}function N(e){return!n||!(!Ch(e.kind)&&202!==e.kind&&185!==e.kind&&186!==e.kind&&189!==e.kind&&190!==e.kind&&188!==e.kind&&204!==e.kind&&198!==e.kind)||(197===e.kind?N(e.type):(193===e.kind||194===e.kind)&&e.types.every(N))}function D(e,n,r,i=!0){let s=qK;const c=Ng(e)?fv(e.parameters[0]):gv(e);return c?s=BK(a(c,r,e,n)):eh(e)&&(s=function(e,t){let n;if(e&&!Nd(e.body)){if(3&Oh(e))return qK;const t=e.body;t&&VF(t)?Df(t,e=>e.parent!==t||n?(n=void 0,!0):void(n=e.expression)):n=t}if(n){if(!F(n))return h(n,t);{const e=TA(n)?CA(n):LF(n)||hF(n)?n.type:void 0;if(e&&!kl(e))return BK(o(e,t))}}return qK}(e,r)),void 0!==s.type?s.type:function(e,n,r,i){return i&&n.tracker.reportInferenceFallback(e),!0===n.noInferenceFallback?mw.createKeywordTypeNode(133):t.serializeReturnTypeForSignature(n,e,r)??mw.createKeywordTypeNode(133)}(e,r,n,i&&s.reportFallback&&!c)}function F(e){return uc(e.parent,e=>fF(e)||!o_(e)&&!!fv(e)||zE(e)||QE(e))}}var VK={};i(VK,{NameValidationResult:()=>pG,discoverTypings:()=>uG,isTypingUpToDate:()=>sG,loadSafeList:()=>lG,loadTypesMap:()=>_G,nonRelativeModuleNameForTypingCache:()=>cG,renderPackageNameValidationFailure:()=>hG,validatePackageName:()=>mG});var WK,$K,HK="action::set",KK="action::invalidate",GK="action::packageInstalled",XK="event::typesRegistry",QK="event::beginInstallTypes",YK="event::endInstallTypes",ZK="event::initializationFailed",eG="action::watchTypingLocations";function tG(e){return so.args.includes(e)}function nG(e){const t=so.args.indexOf(e);return t>=0&&te.readFile(t));return new Map(Object.entries(n.config))}function _G(e,t){var n;const r=hL(t,t=>e.readFile(t));if(null==(n=r.config)?void 0:n.simpleMap)return new Map(Object.entries(r.config.simpleMap))}function uG(e,t,n,r,i,o,a,s,c,l){if(!a||!a.enable)return{cachedTypingPaths:[],newTypingNames:[],filesToWatch:[]};const _=new Map;n=B(n,e=>{const t=Jo(e);if(OS(t))return t});const u=[];a.include&&y(a.include,"Explicitly included types");const p=a.exclude||[];if(!l.types){const e=new Set(n.map(Do));e.add(r),e.forEach(e=>{v(e,"bower.json","bower_components",u),v(e,"package.json","node_modules",u)})}a.disableFilenameBasedTypeAcquisition||function(e){const n=B(e,e=>{if(!OS(e))return;const t=Jt(US(_t(Fo(e))));return i.get(t)});n.length&&y(n,"Inferred typings from file names"),$(e,e=>ko(e,".jsx"))&&(t&&t("Inferred 'react' typings due to presence of '.jsx' extension"),h("react"))}(n),s&&y(Q(s.map(cG),ht,Ct),"Inferred typings from unresolved imports");for(const e of p)_.delete(e)&&t&&t(`Typing for ${e} is in exclude list, will be ignored.`);o.forEach((e,t)=>{const n=c.get(t);!1===_.get(t)&&void 0!==n&&sG(e,n)&&_.set(t,e.typingLocation)});const f=[],m=[];_.forEach((e,t)=>{e?m.push(e):f.push(t)});const g={cachedTypingPaths:m,newTypingNames:f,filesToWatch:u};return t&&t(`Finished typings discovery:${aG(g)}`),g;function h(e){_.has(e)||_.set(e,!1)}function y(e,n){t&&t(`${n}: ${JSON.stringify(e)}`),d(e,h)}function v(n,r,i,o){const a=jo(n,r);let s,c;e.fileExists(a)&&(o.push(a),s=hL(a,t=>e.readFile(t)).config,c=O([s.dependencies,s.devDependencies,s.optionalDependencies,s.peerDependencies],Ee),y(c,`Typing names in '${a}' dependencies`));const l=jo(n,i);if(o.push(l),!e.directoryExists(l))return;const u=[],d=c?c.map(e=>jo(l,e,r)):e.readDirectory(l,[".json"],void 0,void 0,3).filter(e=>{if(Fo(e)!==r)return!1;const t=Ao(Jo(e)),n="@"===t[t.length-3][0];return n&&_t(t[t.length-4])===i||!n&&_t(t[t.length-3])===i});t&&t(`Searching for typing names in ${l}; all files: ${JSON.stringify(d)}`);for(const n of d){const r=Jo(n),i=hL(r,t=>e.readFile(t)).config;if(!i.name)continue;const o=i.types||i.typings;if(o){const n=Bo(o,Do(r));e.fileExists(n)?(t&&t(` Package '${i.name}' provides its own types.`),_.set(i.name,n)):t&&t(` Package '${i.name}' provides its own types but they are missing.`)}else u.push(i.name)}y(u," Found package names")}}var dG,pG=(e=>(e[e.Ok=0]="Ok",e[e.EmptyName=1]="EmptyName",e[e.NameTooLong=2]="NameTooLong",e[e.NameStartsWithDot=3]="NameStartsWithDot",e[e.NameStartsWithUnderscore=4]="NameStartsWithUnderscore",e[e.NameContainsNonURISafeCharacters=5]="NameContainsNonURISafeCharacters",e))(pG||{}),fG=214;function mG(e){return gG(e,!0)}function gG(e,t){if(!e)return 1;if(e.length>fG)return 2;if(46===e.charCodeAt(0))return 3;if(95===e.charCodeAt(0))return 4;if(t){const t=/^@([^/]+)\/([^/]+)$/.exec(e);if(t){const e=gG(t[1],!1);if(0!==e)return{name:t[1],isScopeName:!0,result:e};const n=gG(t[2],!1);return 0!==n?{name:t[2],isScopeName:!1,result:n}:0}}return encodeURIComponent(e)!==e?5:0}function hG(e,t){return"object"==typeof e?yG(t,e.result,e.name,e.isScopeName):yG(t,e,t,!1)}function yG(e,t,n,r){const i=r?"Scope":"Package";switch(t){case 1:return`'${e}':: ${i} name '${n}' cannot be empty`;case 2:return`'${e}':: ${i} name '${n}' should be less than ${fG} characters`;case 3:return`'${e}':: ${i} name '${n}' cannot start with '.'`;case 4:return`'${e}':: ${i} name '${n}' cannot start with '_'`;case 5:return`'${e}':: ${i} name '${n}' contains non URI safe characters`;case 0:return un.fail();default:un.assertNever(t)}}(e=>{class t{constructor(e){this.text=e}getText(e,t){return 0===e&&t===this.text.length?this.text:this.text.substring(e,t)}getLength(){return this.text.length}getChangeRange(){}}e.fromString=function(e){return new t(e)}})(dG||(dG={}));var vG=(e=>(e[e.Dependencies=1]="Dependencies",e[e.DevDependencies=2]="DevDependencies",e[e.PeerDependencies=4]="PeerDependencies",e[e.OptionalDependencies=8]="OptionalDependencies",e[e.All=15]="All",e))(vG||{}),bG=(e=>(e[e.Off=0]="Off",e[e.On=1]="On",e[e.Auto=2]="Auto",e))(bG||{}),xG=(e=>(e[e.Semantic=0]="Semantic",e[e.PartialSemantic=1]="PartialSemantic",e[e.Syntactic=2]="Syntactic",e))(xG||{}),kG={},SG=(e=>(e.Original="original",e.TwentyTwenty="2020",e))(SG||{}),TG=(e=>(e.All="All",e.SortAndCombine="SortAndCombine",e.RemoveUnused="RemoveUnused",e))(TG||{}),CG=(e=>(e[e.Invoked=1]="Invoked",e[e.TriggerCharacter=2]="TriggerCharacter",e[e.TriggerForIncompleteCompletions=3]="TriggerForIncompleteCompletions",e))(CG||{}),wG=(e=>(e.Type="Type",e.Parameter="Parameter",e.Enum="Enum",e))(wG||{}),NG=(e=>(e.none="none",e.definition="definition",e.reference="reference",e.writtenReference="writtenReference",e))(NG||{}),DG=(e=>(e[e.None=0]="None",e[e.Block=1]="Block",e[e.Smart=2]="Smart",e))(DG||{}),FG=(e=>(e.Ignore="ignore",e.Insert="insert",e.Remove="remove",e))(FG||{});function EG(e){return{indentSize:4,tabSize:4,newLineCharacter:e||"\n",convertTabsToSpaces:!0,indentStyle:2,insertSpaceAfterConstructor:!1,insertSpaceAfterCommaDelimiter:!0,insertSpaceAfterSemicolonInForStatements:!0,insertSpaceBeforeAndAfterBinaryOperators:!0,insertSpaceAfterKeywordsInControlFlowStatements:!0,insertSpaceAfterFunctionKeywordForAnonymousFunctions:!1,insertSpaceAfterOpeningAndBeforeClosingNonemptyParenthesis:!1,insertSpaceAfterOpeningAndBeforeClosingNonemptyBrackets:!1,insertSpaceAfterOpeningAndBeforeClosingNonemptyBraces:!0,insertSpaceAfterOpeningAndBeforeClosingTemplateStringBraces:!1,insertSpaceAfterOpeningAndBeforeClosingJsxExpressionBraces:!1,insertSpaceBeforeFunctionParenthesis:!1,placeOpenBraceOnNewLineForFunctions:!1,placeOpenBraceOnNewLineForControlBlocks:!1,semicolons:"ignore",trimTrailingWhitespace:!0,indentSwitchCase:!0}}var PG=EG("\n"),AG=(e=>(e[e.aliasName=0]="aliasName",e[e.className=1]="className",e[e.enumName=2]="enumName",e[e.fieldName=3]="fieldName",e[e.interfaceName=4]="interfaceName",e[e.keyword=5]="keyword",e[e.lineBreak=6]="lineBreak",e[e.numericLiteral=7]="numericLiteral",e[e.stringLiteral=8]="stringLiteral",e[e.localName=9]="localName",e[e.methodName=10]="methodName",e[e.moduleName=11]="moduleName",e[e.operator=12]="operator",e[e.parameterName=13]="parameterName",e[e.propertyName=14]="propertyName",e[e.punctuation=15]="punctuation",e[e.space=16]="space",e[e.text=17]="text",e[e.typeParameterName=18]="typeParameterName",e[e.enumMemberName=19]="enumMemberName",e[e.functionName=20]="functionName",e[e.regularExpressionLiteral=21]="regularExpressionLiteral",e[e.link=22]="link",e[e.linkName=23]="linkName",e[e.linkText=24]="linkText",e))(AG||{}),IG=(e=>(e[e.None=0]="None",e[e.MayIncludeAutoImports=1]="MayIncludeAutoImports",e[e.IsImportStatementCompletion=2]="IsImportStatementCompletion",e[e.IsContinuation=4]="IsContinuation",e[e.ResolvedModuleSpecifiers=8]="ResolvedModuleSpecifiers",e[e.ResolvedModuleSpecifiersBeyondLimit=16]="ResolvedModuleSpecifiersBeyondLimit",e[e.MayIncludeMethodSnippets=32]="MayIncludeMethodSnippets",e))(IG||{}),OG=(e=>(e.Comment="comment",e.Region="region",e.Code="code",e.Imports="imports",e))(OG||{}),LG=(e=>(e[e.JavaScript=0]="JavaScript",e[e.SourceMap=1]="SourceMap",e[e.Declaration=2]="Declaration",e))(LG||{}),jG=(e=>(e[e.None=0]="None",e[e.InMultiLineCommentTrivia=1]="InMultiLineCommentTrivia",e[e.InSingleQuoteStringLiteral=2]="InSingleQuoteStringLiteral",e[e.InDoubleQuoteStringLiteral=3]="InDoubleQuoteStringLiteral",e[e.InTemplateHeadOrNoSubstitutionTemplate=4]="InTemplateHeadOrNoSubstitutionTemplate",e[e.InTemplateMiddleOrTail=5]="InTemplateMiddleOrTail",e[e.InTemplateSubstitutionPosition=6]="InTemplateSubstitutionPosition",e))(jG||{}),MG=(e=>(e[e.Punctuation=0]="Punctuation",e[e.Keyword=1]="Keyword",e[e.Operator=2]="Operator",e[e.Comment=3]="Comment",e[e.Whitespace=4]="Whitespace",e[e.Identifier=5]="Identifier",e[e.NumberLiteral=6]="NumberLiteral",e[e.BigIntLiteral=7]="BigIntLiteral",e[e.StringLiteral=8]="StringLiteral",e[e.RegExpLiteral=9]="RegExpLiteral",e))(MG||{}),RG=(e=>(e.unknown="",e.warning="warning",e.keyword="keyword",e.scriptElement="script",e.moduleElement="module",e.classElement="class",e.localClassElement="local class",e.interfaceElement="interface",e.typeElement="type",e.enumElement="enum",e.enumMemberElement="enum member",e.variableElement="var",e.localVariableElement="local var",e.variableUsingElement="using",e.variableAwaitUsingElement="await using",e.functionElement="function",e.localFunctionElement="local function",e.memberFunctionElement="method",e.memberGetAccessorElement="getter",e.memberSetAccessorElement="setter",e.memberVariableElement="property",e.memberAccessorVariableElement="accessor",e.constructorImplementationElement="constructor",e.callSignatureElement="call",e.indexSignatureElement="index",e.constructSignatureElement="construct",e.parameterElement="parameter",e.typeParameterElement="type parameter",e.primitiveType="primitive type",e.label="label",e.alias="alias",e.constElement="const",e.letElement="let",e.directory="directory",e.externalModuleName="external module name",e.jsxAttribute="JSX attribute",e.string="string",e.link="link",e.linkName="link name",e.linkText="link text",e))(RG||{}),BG=(e=>(e.none="",e.publicMemberModifier="public",e.privateMemberModifier="private",e.protectedMemberModifier="protected",e.exportedModifier="export",e.ambientModifier="declare",e.staticModifier="static",e.abstractModifier="abstract",e.optionalModifier="optional",e.deprecatedModifier="deprecated",e.dtsModifier=".d.ts",e.tsModifier=".ts",e.tsxModifier=".tsx",e.jsModifier=".js",e.jsxModifier=".jsx",e.jsonModifier=".json",e.dmtsModifier=".d.mts",e.mtsModifier=".mts",e.mjsModifier=".mjs",e.dctsModifier=".d.cts",e.ctsModifier=".cts",e.cjsModifier=".cjs",e))(BG||{}),JG=(e=>(e.comment="comment",e.identifier="identifier",e.keyword="keyword",e.numericLiteral="number",e.bigintLiteral="bigint",e.operator="operator",e.stringLiteral="string",e.whiteSpace="whitespace",e.text="text",e.punctuation="punctuation",e.className="class name",e.enumName="enum name",e.interfaceName="interface name",e.moduleName="module name",e.typeParameterName="type parameter name",e.typeAliasName="type alias name",e.parameterName="parameter name",e.docCommentTagName="doc comment tag name",e.jsxOpenTagName="jsx open tag name",e.jsxCloseTagName="jsx close tag name",e.jsxSelfClosingTagName="jsx self closing tag name",e.jsxAttribute="jsx attribute",e.jsxText="jsx text",e.jsxAttributeStringLiteralValue="jsx attribute string literal value",e))(JG||{}),zG=(e=>(e[e.comment=1]="comment",e[e.identifier=2]="identifier",e[e.keyword=3]="keyword",e[e.numericLiteral=4]="numericLiteral",e[e.operator=5]="operator",e[e.stringLiteral=6]="stringLiteral",e[e.regularExpressionLiteral=7]="regularExpressionLiteral",e[e.whiteSpace=8]="whiteSpace",e[e.text=9]="text",e[e.punctuation=10]="punctuation",e[e.className=11]="className",e[e.enumName=12]="enumName",e[e.interfaceName=13]="interfaceName",e[e.moduleName=14]="moduleName",e[e.typeParameterName=15]="typeParameterName",e[e.typeAliasName=16]="typeAliasName",e[e.parameterName=17]="parameterName",e[e.docCommentTagName=18]="docCommentTagName",e[e.jsxOpenTagName=19]="jsxOpenTagName",e[e.jsxCloseTagName=20]="jsxCloseTagName",e[e.jsxSelfClosingTagName=21]="jsxSelfClosingTagName",e[e.jsxAttribute=22]="jsxAttribute",e[e.jsxText=23]="jsxText",e[e.jsxAttributeStringLiteralValue=24]="jsxAttributeStringLiteralValue",e[e.bigintLiteral=25]="bigintLiteral",e))(zG||{}),qG=gs(99,!0),UG=(e=>(e[e.None=0]="None",e[e.Value=1]="Value",e[e.Type=2]="Type",e[e.Namespace=4]="Namespace",e[e.All=7]="All",e))(UG||{});function VG(e){switch(e.kind){case 261:return Em(e)&&Xc(e)?7:1;case 170:case 209:case 173:case 172:case 304:case 305:case 175:case 174:case 177:case 178:case 179:case 263:case 219:case 220:case 300:case 292:return 1;case 169:case 265:case 266:case 188:return 2;case 347:return void 0===e.name?3:2;case 307:case 264:return 3;case 268:return cp(e)||1===UR(e)?5:4;case 267:case 276:case 277:case 272:case 273:case 278:case 279:return 7;case 308:return 5}return 7}function WG(e){const t=(e=UX(e)).parent;return 308===e.kind?1:AE(t)||LE(t)||JE(t)||PE(t)||kE(t)||bE(t)&&e===t.name?7:$G(e)?function(e){const t=167===e.kind?e:xD(e.parent)&&e.parent.right===e?e.parent:void 0;return t&&272===t.parent.kind?7:4}(e):lh(e)?VG(t):e_(e)&&uc(e,en(_P,Mu,uP))?7:function(e){switch(db(e)&&(e=e.parent),e.kind){case 110:return!bm(e);case 198:return!0}switch(e.parent.kind){case 184:return!0;case 206:return!e.parent.isTypeOf;case 234:return wf(e.parent)}return!1}(e)?2:function(e){return function(e){let t=e,n=!0;if(167===t.parent.kind){for(;t.parent&&167===t.parent.kind;)t=t.parent;n=t.right===e}return 184===t.parent.kind&&!n}(e)||function(e){let t=e,n=!0;if(212===t.parent.kind){for(;t.parent&&212===t.parent.kind;)t=t.parent;n=t.name===e}if(!n&&234===t.parent.kind&&299===t.parent.parent.kind){const e=t.parent.parent.parent;return 264===e.kind&&119===t.parent.parent.token||265===e.kind&&96===t.parent.parent.token}return!1}(e)}(e)?4:SD(t)?(un.assert(UP(t.parent)),2):rF(t)?3:1}function $G(e){if(!e.parent)return!1;for(;167===e.parent.kind;)e=e.parent;return Nm(e.parent)&&e.parent.moduleReference===e}function HG(e,t=!1,n=!1){return nX(e,fF,ZG,t,n)}function KG(e,t=!1,n=!1){return nX(e,mF,ZG,t,n)}function GG(e,t=!1,n=!1){return nX(e,j_,ZG,t,n)}function XG(e,t=!1,n=!1){return nX(e,gF,eX,t,n)}function QG(e,t=!1,n=!1){return nX(e,CD,ZG,t,n)}function YG(e,t=!1,n=!1){return nX(e,bu,tX,t,n)}function ZG(e){return e.expression}function eX(e){return e.tag}function tX(e){return e.tagName}function nX(e,t,n,r,i){let o=r?function(e){return uX(e)||dX(e)?e.parent:e}(e):rX(e);return i&&(o=NA(o)),!!o&&!!o.parent&&t(o.parent)&&n(o.parent)===o}function rX(e){return uX(e)?e.parent:e}function iX(e,t){for(;e;){if(257===e.kind&&e.label.escapedText===t)return e.label;e=e.parent}}function oX(e,t){return!!dF(e.expression)&&e.expression.name.text===t}function aX(e){var t;return aD(e)&&(null==(t=tt(e.parent,Cl))?void 0:t.label)===e}function sX(e){var t;return aD(e)&&(null==(t=tt(e.parent,oE))?void 0:t.label)===e}function cX(e){return sX(e)||aX(e)}function lX(e){var t;return(null==(t=tt(e.parent,Cu))?void 0:t.tagName)===e}function _X(e){var t;return(null==(t=tt(e.parent,xD))?void 0:t.right)===e}function uX(e){var t;return(null==(t=tt(e.parent,dF))?void 0:t.name)===e}function dX(e){var t;return(null==(t=tt(e.parent,pF))?void 0:t.argumentExpression)===e}function pX(e){var t;return(null==(t=tt(e.parent,gE))?void 0:t.name)===e}function fX(e){var t;return aD(e)&&(null==(t=tt(e.parent,r_))?void 0:t.name)===e}function mX(e){switch(e.parent.kind){case 173:case 172:case 304:case 307:case 175:case 174:case 178:case 179:case 268:return Cc(e.parent)===e;case 213:return e.parent.argumentExpression===e;case 168:return!0;case 202:return 200===e.parent.parent.kind;default:return!1}}function gX(e){return Tm(e.parent.parent)&&Cm(e.parent.parent)===e}function hX(e){for(Dg(e)&&(e=e.parent.parent);;){if(!(e=e.parent))return;switch(e.kind){case 308:case 175:case 174:case 263:case 219:case 178:case 179:case 264:case 265:case 267:case 268:return e}}}function yX(e){switch(e.kind){case 308:return rO(e)?"module":"script";case 268:return"module";case 264:case 232:return"class";case 265:return"interface";case 266:case 339:case 347:return"type";case 267:return"enum";case 261:return t(e);case 209:return t(Yh(e));case 220:case 263:case 219:return"function";case 178:return"getter";case 179:return"setter";case 175:case 174:return"method";case 304:const{initializer:n}=e;return r_(n)?"method":"property";case 173:case 172:case 305:case 306:return"property";case 182:return"index";case 181:return"construct";case 180:return"call";case 177:case 176:return"constructor";case 169:return"type parameter";case 307:return"enum member";case 170:return Nv(e,31)?"property":"parameter";case 272:case 277:case 282:case 275:case 281:return"alias";case 227:const r=tg(e),{right:i}=e;switch(r){case 7:case 8:case 9:case 0:default:return"";case 1:case 2:const e=yX(i);return""===e?"const":e;case 3:case 5:return vF(i)?"method":"property";case 4:return"property";case 6:return"local class"}case 80:return kE(e.parent)?"alias":"";case 278:const o=yX(e.expression);return""===o?"const":o;default:return""}function t(e){return af(e)?"const":cf(e)?"let":"var"}}function vX(e){switch(e.kind){case 110:return!0;case 80:return dv(e)&&170===e.parent.kind;default:return!1}}var bX=/^\/\/\/\s*=n}function wX(e,t,n){return DX(e.pos,e.end,t,n)}function NX(e,t,n,r){return DX(e.getStart(t),e.end,n,r)}function DX(e,t,n,r){return Math.max(e,n)e.kind===t)}function LX(e){const t=b(e.parent.getChildren(),t=>QP(t)&&Xb(t,e));return un.assert(!t||T(t.getChildren(),e)),t}function jX(e){return 90===e.kind}function MX(e){return 86===e.kind}function RX(e){return 100===e.kind}function BX(e,t){if(16777216&e.flags)return;const n=aZ(e,t);if(n)return n;const r=function(e){let t;return uc(e,e=>(b_(e)&&(t=e),!xD(e.parent)&&!b_(e.parent)&&!h_(e.parent))),t}(e);return r&&t.getTypeAtLocation(r)}function JX(e,t){if(e.importClause){if(e.importClause.name&&e.importClause.namedBindings)return;if(e.importClause.name)return e.importClause.name;if(e.importClause.namedBindings){if(EE(e.importClause.namedBindings)){const t=be(e.importClause.namedBindings.elements);if(!t)return;return t.name}if(DE(e.importClause.namedBindings))return e.importClause.namedBindings.name}}if(!t)return e.moduleSpecifier}function zX(e,t){if(e.exportClause){if(OE(e.exportClause)){if(!be(e.exportClause.elements))return;return e.exportClause.elements[0].name}if(FE(e.exportClause))return e.exportClause.name}if(!t)return e.moduleSpecifier}function qX(e,t){const{parent:n}=e;if(Zl(e)&&(t||90!==e.kind)?kI(n)&&T(n.modifiers,e):86===e.kind?dE(n)||AF(e):100===e.kind?uE(n)||vF(e):120===e.kind?pE(n):94===e.kind?mE(n):156===e.kind?fE(n):145===e.kind||144===e.kind?gE(n):102===e.kind?bE(n):139===e.kind?AD(n):153===e.kind&&ID(n)){const e=function(e,t){if(!t)switch(e.kind){case 264:case 232:return function(e){if(Sc(e))return e.name;if(dE(e)){const t=e.modifiers&&b(e.modifiers,jX);if(t)return t}if(AF(e)){const t=b(e.getChildren(),MX);if(t)return t}}(e);case 263:case 219:return function(e){if(Sc(e))return e.name;if(uE(e)){const t=b(e.modifiers,jX);if(t)return t}if(vF(e)){const t=b(e.getChildren(),RX);if(t)return t}}(e);case 177:return e}if(Sc(e))return e.name}(n,t);if(e)return e}if((115===e.kind||87===e.kind||121===e.kind)&&_E(n)&&1===n.declarations.length){const e=n.declarations[0];if(aD(e.name))return e.name}if(156===e.kind){if(kE(n)&&n.isTypeOnly){const e=JX(n.parent,t);if(e)return e}if(IE(n)&&n.isTypeOnly){const e=zX(n,t);if(e)return e}}if(130===e.kind){if(PE(n)&&n.propertyName||LE(n)&&n.propertyName||DE(n)||FE(n))return n.name;if(IE(n)&&n.exportClause&&FE(n.exportClause))return n.exportClause.name}if(102===e.kind&&xE(n)){const e=JX(n,t);if(e)return e}if(95===e.kind){if(IE(n)){const e=zX(n,t);if(e)return e}if(AE(n))return NA(n.expression)}if(149===e.kind&&JE(n))return n.expression;if(161===e.kind&&(xE(n)||IE(n))&&n.moduleSpecifier)return n.moduleSpecifier;if((96===e.kind||119===e.kind)&&tP(n)&&n.token===e.kind){const e=function(e){if(1===e.types.length)return e.types[0].expression}(n);if(e)return e}if(96===e.kind){if(SD(n)&&n.constraint&&RD(n.constraint))return n.constraint.typeName;if(XD(n)&&RD(n.extendsType))return n.extendsType.typeName}if(140===e.kind&&QD(n))return n.typeParameter.name;if(103===e.kind&&SD(n)&&nF(n.parent))return n.name;if(143===e.kind&&eF(n)&&143===n.operator&&RD(n.type))return n.type.typeName;if(148===e.kind&&eF(n)&&148===n.operator&&UD(n.type)&&RD(n.type.elementType))return n.type.elementType.typeName;if(!t){if((105===e.kind&&mF(n)||116===e.kind&&SF(n)||114===e.kind&&kF(n)||135===e.kind&&TF(n)||127===e.kind&&EF(n)||91===e.kind&&xF(n))&&n.expression)return NA(n.expression);if((103===e.kind||104===e.kind)&&NF(n)&&n.operatorToken===e)return NA(n.right);if(130===e.kind&&LF(n)&&RD(n.type))return n.type.typeName;if(103===e.kind&&YF(n)||165===e.kind&&ZF(n))return NA(n.expression)}return e}function UX(e){return qX(e,!1)}function VX(e){return qX(e,!0)}function WX(e,t){return $X(e,t,e=>zh(e)||Ch(e.kind)||sD(e))}function $X(e,t,n){return KX(e,t,!1,n,!1)}function HX(e,t){return KX(e,t,!0,void 0,!1)}function KX(e,t,n,r,i){let o,a=e;for(;;){const i=a.getChildren(e),c=Ce(i,t,(e,t)=>t,(o,a)=>{const c=i[o].getEnd();if(ct?1:s(i[o],l,c)?i[o-1]&&s(i[o-1])?1:0:r&&l===t&&i[o-1]&&i[o-1].getEnd()===t&&s(i[o-1])?1:-1});if(o)return o;if(!(c>=0&&i[c]))return a;a=i[c]}function s(a,s,c){if(c??(c=a.getEnd()),ct)return!1;if(tn.getStart(e)&&t(r.pos<=e.pos&&r.end>e.end||r.pos===e.end)&&fQ(r,n)?t(r):void 0)}(t)}function YX(e,t,n,r){const i=function i(o){if(ZX(o)&&1!==o.kind)return o;const a=o.getChildren(t),s=Ce(a,e,(e,t)=>t,(t,n)=>e=a[t-1].end?0:1:-1);if(s>=0&&a[s]){const n=a[s];if(e=e||!fQ(n,t)||iQ(n)){const e=tQ(a,s,t,o.kind);return e?!r&&Tu(e)&&e.getChildren(t).length?i(e):eQ(e,t):void 0}return i(n)}}un.assert(void 0!==n||308===o.kind||1===o.kind||Tu(o));const c=tQ(a,a.length,t,o.kind);return c&&eQ(c,t)}(n||t);return un.assert(!(i&&iQ(i))),i}function ZX(e){return El(e)&&!iQ(e)}function eQ(e,t){if(ZX(e))return e;const n=e.getChildren(t);if(0===n.length)return e;const r=tQ(n,n.length,t,e.kind);return r&&eQ(r,t)}function tQ(e,t,n,r){for(let i=t-1;i>=0;i--)if(iQ(e[i]))0!==i||12!==r&&286!==r||un.fail("`JsxText` tokens should not be the first child of `JsxElement | JsxSelfClosingElement`");else if(fQ(e[i],n))return e[i]}function nQ(e,t,n=YX(t,e)){if(n&&Ul(n)){const r=n.getStart(e),i=n.getEnd();if(rn.getStart(e)}function aQ(e,t){const n=HX(e,t);return!!VN(n)||!(19!==n.kind||!QE(n.parent)||!zE(n.parent.parent))||!(30!==n.kind||!bu(n.parent)||!zE(n.parent.parent))}function sQ(e,t){return function(n){for(;n;)if(n.kind>=286&&n.kind<=295||12===n.kind||30===n.kind||32===n.kind||80===n.kind||20===n.kind||19===n.kind||44===n.kind||31===n.kind)n=n.parent;else{if(285!==n.kind)return!1;if(t>n.getStart(e))return!0;n=n.parent}return!1}(HX(e,t))}function cQ(e,t,n){const r=Fa(e.kind),i=Fa(t),o=e.getFullStart(),a=n.text.lastIndexOf(i,o);if(-1===a)return;if(n.text.lastIndexOf(r,o-1)!!e.typeParameters&&e.typeParameters.length>=t)}function uQ(e,t){if(-1===t.text.lastIndexOf("<",e?e.pos:t.text.length))return;let n=e,r=0,i=0;for(;n;){switch(n.kind){case 30:if(n=YX(n.getFullStart(),t),n&&29===n.kind&&(n=YX(n.getFullStart(),t)),!n||!aD(n))return;if(!r)return lh(n)?void 0:{called:n,nTypeArguments:i};r--;break;case 50:r=3;break;case 49:r=2;break;case 32:r++;break;case 20:if(n=cQ(n,19,t),!n)return;break;case 22:if(n=cQ(n,21,t),!n)return;break;case 24:if(n=cQ(n,23,t),!n)return;break;case 28:i++;break;case 39:case 80:case 11:case 9:case 10:case 112:case 97:case 114:case 96:case 143:case 25:case 52:case 58:case 59:break;default:if(b_(n))break;return}n=YX(n.getFullStart(),t)}}function dQ(e,t,n){return ude.getRangeOfEnclosingComment(e,t,void 0,n)}function pQ(e,t){return!!uc(HX(e,t),SP)}function fQ(e,t){return 1===e.kind?!!e.jsDoc:0!==e.getWidth(t)}function mQ(e,t=0){const n=[],r=_u(e)?oc(e)&~t:0;return 2&r&&n.push("private"),4&r&&n.push("protected"),1&r&&n.push("public"),(256&r||ED(e))&&n.push("static"),64&r&&n.push("abstract"),32&r&&n.push("export"),65536&r&&n.push("deprecated"),33554432&e.flags&&n.push("declare"),278===e.kind&&n.push("export"),n.length>0?n.join(","):""}function gQ(e){return 184===e.kind||214===e.kind?e.typeArguments:r_(e)||264===e.kind||265===e.kind?e.typeParameters:void 0}function hQ(e){return 2===e||3===e}function yQ(e){return!(11!==e&&14!==e&&!Ll(e))}function vQ(e,t,n){return!!(4&t.flags)&&e.isEmptyAnonymousObjectType(n)}function bQ(e){if(!e.isIntersection())return!1;const{types:t,checker:n}=e;return 2===t.length&&(vQ(n,t[0],t[1])||vQ(n,t[1],t[0]))}function xQ(e,t,n){return Ll(e.kind)&&e.getStart(n){const n=ZB(t);return!e[n]&&(e[n]=!0)}}function zQ(e){return e.getText(0,e.getLength())}function qQ(e,t){let n="";for(let r=0;r!(t.isDeclarationFile||e.isSourceFileFromExternalLibrary(t)||!t.externalModuleIndicator&&!t.commonJsModuleIndicator))}function $Q(e){return e.getSourceFiles().some(t=>!t.isDeclarationFile&&!e.isSourceFileFromExternalLibrary(t)&&!!t.externalModuleIndicator)}function HQ(e){return!!e.module||yk(e)>=2||!!e.noEmit}function KQ(e,t){return{fileExists:t=>e.fileExists(t),getCurrentDirectory:()=>t.getCurrentDirectory(),readFile:We(t,t.readFile),useCaseSensitiveFileNames:We(t,t.useCaseSensitiveFileNames)||e.useCaseSensitiveFileNames,getSymlinkCache:We(t,t.getSymlinkCache)||e.getSymlinkCache,getModuleSpecifierCache:We(t,t.getModuleSpecifierCache),getPackageJsonInfoCache:()=>{var t;return null==(t=e.getModuleResolutionCache())?void 0:t.getPackageJsonInfoCache()},getGlobalTypingsCacheLocation:We(t,t.getGlobalTypingsCacheLocation),redirectTargetsMap:e.redirectTargetsMap,getRedirectFromSourceFile:t=>e.getRedirectFromSourceFile(t),isSourceOfProjectReferenceRedirect:t=>e.isSourceOfProjectReferenceRedirect(t),getNearestAncestorDirectoryWithPackageJson:We(t,t.getNearestAncestorDirectoryWithPackageJson),getFileIncludeReasons:()=>e.getFileIncludeReasons(),getCommonSourceDirectory:()=>e.getCommonSourceDirectory(),getDefaultResolutionModeForFile:t=>e.getDefaultResolutionModeForFile(t),getModeForResolutionAtIndex:(t,n)=>e.getModeForResolutionAtIndex(t,n)}}function GQ(e,t){return{...KQ(e,t),getCommonSourceDirectory:()=>e.getCommonSourceDirectory()}}function XQ(e){return 2===e||e>=3&&e<=99||100===e}function QQ(e,t,n,r,i){return mw.createImportDeclaration(void 0,e||t?mw.createImportClause(i?156:void 0,e,t&&t.length?mw.createNamedImports(t):void 0):void 0,"string"==typeof n?YQ(n,r):n,void 0)}function YQ(e,t){return mw.createStringLiteral(e,0===t)}var ZQ=(e=>(e[e.Single=0]="Single",e[e.Double=1]="Double",e))(ZQ||{});function eY(e,t){return qm(e,t)?1:0}function tY(e,t){if(t.quotePreference&&"auto"!==t.quotePreference)return"single"===t.quotePreference?0:1;{const t=Dm(e)&&e.imports&&b(e.imports,e=>UN(e)&&!ey(e.parent));return t?eY(t,e):1}}function nY(e){switch(e){case 0:return"'";case 1:return'"';default:return un.assertNever(e)}}function rY(e){const t=iY(e);return void 0===t?void 0:mc(t)}function iY(e){return"default"!==e.escapedName?e.escapedName:f(e.declarations,e=>{const t=Cc(e);return t&&80===t.kind?t.escapedText:void 0})}function oY(e){return ju(e)&&(JE(e.parent)||xE(e.parent)||XP(e.parent)||Lm(e.parent,!1)&&e.parent.arguments[0]===e||_f(e.parent)&&e.parent.arguments[0]===e)}function aY(e){return lF(e)&&sF(e.parent)&&aD(e.name)&&!e.propertyName}function sY(e,t){const n=e.getTypeAtLocation(t.parent);return n&&e.getPropertyOfType(n,t.name.text)}function cY(e,t,n){if(e)for(;e.parent;){if(sP(e.parent)||!lY(n,e.parent,t))return e;e=e.parent}}function lY(e,t,n){return Ps(e,t.getStart(n))&&t.getEnd()<=Fs(e)}function _Y(e,t){return kI(e)?b(e.modifiers,e=>e.kind===t):void 0}function uY(e,t,n,r,i){var o;const a=244===(Qe(n)?n[0]:n).kind?Jm:Sp,s=N(t.statements,a),{comparer:c,isSorted:l}=Yle.getOrganizeImportsStringComparerWithDetection(s,i),_=Qe(n)?_e(n,(e,t)=>Yle.compareImportsOrRequireStatements(e,t,c)):[n];if(null==s?void 0:s.length)if(un.assert(Dm(t)),s&&l)for(const n of _){const r=Yle.getImportDeclarationInsertionIndex(s,n,c);if(0===r){const r=s[0]===t.statements[0]?{leadingTriviaOption:jue.LeadingTriviaOption.Exclude}:{};e.insertNodeBefore(t,s[0],n,!1,r)}else{const i=s[r-1];e.insertNodeAfter(t,i,n)}}else{const n=ye(s);n?e.insertNodesAfter(t,n,_):e.insertNodesAtTopOfFile(t,_,r)}else if(Dm(t))e.insertNodesAtTopOfFile(t,_,r);else for(const n of _)e.insertStatementsInNewFile(t.fileName,[n],null==(o=_c(n))?void 0:o.getSourceFile())}function dY(e,t){return un.assert(e.isTypeOnly),nt(e.getChildAt(0,t),RQ)}function pY(e,t){return!!e&&!!t&&e.start===t.start&&e.length===t.length}function fY(e,t,n){return(n?ht:gt)(e.fileName,t.fileName)&&pY(e.textSpan,t.textSpan)}function mY(e){return(t,n)=>fY(t,n,e)}function gY(e,t){if(e)for(let n=0;n!!TD(e)||!(lF(e)||sF(e)||cF(e))&&"quit")}var kY=new Map;function SY(e,t){return{text:e,kind:AG[t]}}function TY(){return SY(" ",16)}function CY(e){return SY(Fa(e),5)}function wY(e){return SY(Fa(e),15)}function NY(e){return SY(Fa(e),12)}function DY(e){return SY(e,13)}function FY(e){return SY(e,14)}function EY(e){const t=Ea(e);return void 0===t?PY(e):CY(t)}function PY(e){return SY(e,17)}function AY(e){return SY(e,0)}function IY(e){return SY(e,18)}function OY(e){return SY(e,24)}function LY(e){return SY(e,22)}function jY(e,t){var n;const r=[LY(`{@${dP(e)?"link":pP(e)?"linkcode":"linkplain"} `)];if(e.name){const i=null==t?void 0:t.getSymbolAtLocation(e.name),o=i&&t?$Y(i,t):void 0,a=function(e){let t=e.indexOf("://");if(0===t){for(;t"===e[n]&&t--,n++,!t)return n}return 0}(e.text),s=Xd(e.name)+e.text.slice(0,a),c=function(e){let t=0;if(124===e.charCodeAt(t++)){for(;tc(e,17);return{displayParts:()=>{const e=n.length&&n[n.length-1].text;return o>t&&e&&"..."!==e&&(qa(e.charCodeAt(e.length-1))||n.push(SY(" ",16)),n.push(SY("...",15))),n},writeKeyword:e=>c(e,5),writeOperator:e=>c(e,12),writePunctuation:e=>c(e,15),writeTrailingSemicolon:e=>c(e,15),writeSpace:e=>c(e,16),writeStringLiteral:e=>c(e,8),writeParameter:e=>c(e,13),writeProperty:e=>c(e,14),writeLiteral:e=>c(e,8),writeSymbol:function(e,r){o>t||(s(),o+=e.length,n.push(function(e,t){return SY(e,function(e){const t=e.flags;return 3&t?xY(e)?13:9:4&t||32768&t||65536&t?14:8&t?19:16&t?20:32&t?1:64&t?4:384&t?2:1536&t?11:8192&t?10:262144&t?18:524288&t||2097152&t?0:17}(t))}(e,r)))},writeLine:function(){o>t||(o+=1,n.push(BY()),r=!0)},write:a,writeComment:a,getText:()=>"",getTextPos:()=>0,getColumn:()=>0,getLine:()=>0,isAtStartOfLine:()=>!1,hasTrailingWhitespace:()=>!1,hasTrailingComment:()=>!1,rawWrite:ut,getIndent:()=>i,increaseIndent:()=>{i++},decreaseIndent:()=>{i--},clear:l};function s(){if(!(o>t)&&r){const e=Ay(i);e&&(o+=e.length,n.push(SY(e,16))),r=!1}}function c(e,r){o>t||(s(),o+=e.length,n.push(SY(e,r)))}function l(){n=[],r=!0,i=0,o=0}}(e)),kY.get(e)}(t);try{return e(n),n.displayParts()}finally{n.clear()}}function zY(e,t,n,r=0,i,o,a){return JY(s=>{e.writeType(t,n,17408|r,s,i,o,a)},i)}function qY(e,t,n,r,i=0){return JY(o=>{e.writeSymbol(t,n,r,8|i,o)})}function UY(e,t,n,r=0,i,o,a){return r|=25632,JY(s=>{e.writeSignature(t,n,r,void 0,s,i,o,a)},i)}function VY(e){return!!e.parent&&Rl(e.parent)&&e.parent.propertyName===e}function WY(e,t){return bS(e,t.getScriptKind&&t.getScriptKind(e))}function $Y(e,t){let n=e;for(;HY(n)||Xu(n)&&n.links.target;)n=Xu(n)&&n.links.target?n.links.target:ox(n,t);return n}function HY(e){return!!(2097152&e.flags)}function KY(e,t){return eJ(ox(e,t))}function GY(e,t){for(;qa(e.charCodeAt(t));)t+=1;return t}function XY(e,t){for(;t>-1&&Ua(e.charCodeAt(t));)t-=1;return t+1}function QY(e,t){const n=e.getSourceFile();!function(e,t){const n=e.getFullStart(),r=e.getStart();for(let e=n;e=0),o}function eZ(e,t,n,r,i){os(n.text,e.pos,rZ(t,n,r,i,Lw))}function tZ(e,t,n,r,i){as(n.text,e.end,rZ(t,n,r,i,Rw))}function nZ(e,t,n,r,i){as(n.text,e.pos,rZ(t,n,r,i,Lw))}function rZ(e,t,n,r,i){return(o,a,s,c)=>{3===s?(o+=2,a-=2):o+=2,i(e,n||s,t.text.slice(o,a),void 0!==r?r:c)}}function iZ(e,t){if(Gt(e,t))return 0;let n=e.indexOf(" "+t);return-1===n&&(n=e.indexOf("."+t)),-1===n&&(n=e.indexOf('"'+t)),-1===n?-1:n+1}function oZ(e){return NF(e)&&28===e.operatorToken.kind||uF(e)||(LF(e)||jF(e))&&uF(e.expression)}function aZ(e,t,n){const r=rh(e.parent);switch(r.kind){case 215:return t.getContextualType(r,n);case 227:{const{left:i,operatorToken:o,right:a}=r;return cZ(o.kind)?t.getTypeAtLocation(e===a?i:a):t.getContextualType(e,n)}case 297:return uZ(r,t);default:return t.getContextualType(e,n)}}function sZ(e,t,n){const r=tY(e,t),i=JSON.stringify(n);return 0===r?`'${Fy(i).replace(/'/g,()=>"\\'").replace(/\\"/g,'"')}'`:i}function cZ(e){switch(e){case 37:case 35:case 38:case 36:return!0;default:return!1}}function lZ(e){switch(e.kind){case 11:case 15:case 229:case 216:return!0;default:return!1}}function _Z(e){return!!e.getStringIndexType()||!!e.getNumberIndexType()}function uZ(e,t){return t.getTypeAtLocation(e.parent.parent.expression)}var dZ="anonymous function";function pZ(e,t,n,r){const i=n.getTypeChecker();let o=!0;const a=()=>o=!1,s=i.typeToTypeNode(e,t,1,8,{trackSymbol:(e,t,n)=>(o=o&&0===i.isSymbolAccessible(e,t,n,!1).accessibility,!o),reportInaccessibleThisError:a,reportPrivateInBaseOfClassExpression:a,reportInaccessibleUniqueSymbolError:a,moduleResolverHost:GQ(n,r)});return o?s:void 0}function fZ(e){return 180===e||181===e||182===e||172===e||174===e}function mZ(e){return 263===e||177===e||175===e||178===e||179===e}function gZ(e){return 268===e}function hZ(e){return 244===e||245===e||247===e||252===e||253===e||254===e||258===e||260===e||173===e||266===e||273===e||272===e||279===e||271===e||278===e}var yZ=en(fZ,mZ,gZ,hZ);function vZ(e,t,n){const r=uc(t,t=>t.end!==e?"quit":yZ(t.kind));return!!r&&function(e,t){const n=e.getLastToken(t);if(n&&27===n.kind)return!1;if(fZ(e.kind)){if(n&&28===n.kind)return!1}else if(gZ(e.kind)){const n=ve(e.getChildren(t));if(n&&hE(n))return!1}else if(mZ(e.kind)){const n=ve(e.getChildren(t));if(n&&Bf(n))return!1}else if(!hZ(e.kind))return!1;if(247===e.kind)return!0;const r=QX(e,uc(e,e=>!e.parent),t);return!r||20===r.kind||t.getLineAndCharacterOfPosition(e.getEnd()).line!==t.getLineAndCharacterOfPosition(r.getStart(t)).line}(r,n)}function bZ(e){let t=0,n=0;return XI(e,function r(i){if(hZ(i.kind)){const r=i.getLastToken(e);27===(null==r?void 0:r.kind)?t++:n++}else if(fZ(i.kind)){const r=i.getLastToken(e);27===(null==r?void 0:r.kind)?t++:r&&28!==r.kind&&za(e,r.getStart(e)).line!==za(e,Gp(e,r.end).start).line&&n++}return t+n>=5||XI(i,r)}),0===t&&n<=1||t/n>.2}function xZ(e,t){return wZ(e,e.getDirectories,t)||[]}function kZ(e,t,n,r,i){return wZ(e,e.readDirectory,t,n,r,i)||l}function SZ(e,t){return wZ(e,e.fileExists,t)}function TZ(e,t){return CZ(()=>Db(t,e))||!1}function CZ(e){try{return e()}catch{return}}function wZ(e,t,...n){return CZ(()=>t&&t.apply(e,n))}function NZ(e,t){const n=[];return TR(t,e,e=>{const r=jo(e,"package.json");SZ(t,r)&&n.push(r)}),n}function DZ(e,t){let n;return TR(t,e,e=>"node_modules"===e||(n=BU(e,e=>SZ(t,e),"package.json"),!!n||void 0)),n}function FZ(e,t){if(!t.readFile)return;const n=["dependencies","devDependencies","optionalDependencies","peerDependencies"],r=Nb(t.readFile(e)||""),i={};if(r)for(const e of n){const t=r[e];if(!t)continue;const n=new Map;for(const e in t)n.set(e,t[e]);i[e]=n}const o=[[1,i.dependencies],[2,i.devDependencies],[8,i.optionalDependencies],[4,i.peerDependencies]];return{...i,parseable:!!r,fileName:e,get:a,has:(e,t)=>!!a(e,t)};function a(e,t=15){for(const[n,r]of o)if(r&&t&n){const t=r.get(e);if(void 0!==t)return t}}}function EZ(e,t,n){const r=(n.getPackageJsonsVisibleToFile&&n.getPackageJsonsVisibleToFile(e.fileName)||function(e,t){if(!t.fileExists)return[];const n=[];return TR(t,Do(e),e=>{const r=jo(e,"package.json");if(t.fileExists(r)){const e=FZ(r,t);e&&n.push(e)}}),n}(e.fileName,n)).filter(e=>e.parseable);let i,o,a;return{allowsImportingAmbientModule:function(e,t){if(!r.length||!e.valueDeclaration)return!0;if(o){const t=o.get(e);if(void 0!==t)return t}else o=new Map;const n=Fy(e.getName());if(c(n))return o.set(e,!0),!0;const i=l(e.valueDeclaration.getSourceFile().fileName,t);if(void 0===i)return o.set(e,!0),!0;const a=s(i)||s(n);return o.set(e,a),a},getSourceFileInfo:function(e,t){if(!r.length)return{importable:!0,packageName:void 0};if(a){const t=a.get(e);if(void 0!==t)return t}else a=new Map;const n=l(e.fileName,t);if(!n){const t={importable:!0,packageName:n};return a.set(e,t),t}const i={importable:s(n),packageName:n};return a.set(e,i),i},allowsImportingSpecifier:function(e){return!(r.length&&!c(e))||(!(!vo(e)&&!go(e))||s(e))}};function s(e){const t=_(e);for(const e of r)if(e.has(t)||e.has(ER(t)))return!0;return!1}function c(t){return!!(Dm(e)&&Fm(e)&&NC.has(t)&&(void 0===i&&(i=PZ(e)),i))}function l(r,i){if(!r.includes("node_modules"))return;const o=nB.getNodeModulesPackageName(n.getCompilationSettings(),e,r,i,t);return o?vo(o)||go(o)?void 0:_(o):void 0}function _(e){const t=Ao(AR(e)).slice(1);return Gt(t[0],"@")?`${t[0]}/${t[1]}`:t[0]}}function PZ(e){return $(e.imports,({text:e})=>NC.has(e))}function AZ(e){return T(Ao(e),"node_modules")}function IZ(e){return void 0!==e.file&&void 0!==e.start&&void 0!==e.length}function OZ(e,t){const n=Ce(t,FQ(e),st,bt);if(n>=0){const r=t[n];return un.assertEqual(r.file,e.getSourceFile(),"Diagnostics proided to 'findDiagnosticForNode' must be from a single SourceFile"),nt(r,IZ)}}function LZ(e,t){var n;let r=Ce(t,e.start,e=>e.start,vt);for(r<0&&(r=~r);(null==(n=t[r-1])?void 0:n.start)===e.start;)r--;const i=[],o=Fs(e);for(;;){const n=tt(t[r],IZ);if(!n||n.start>o)break;Is(e,n)&&i.push(n),r++}return i}function jZ({startPosition:e,endPosition:t}){return $s(e,void 0===t?e:t)}function MZ(e,t){return uc(HX(e,t.start),n=>n.getStart(e)Fs(t)?"quit":V_(n)&&pY(t,FQ(n,e)))}function RZ(e,t,n=st){return e?Qe(e)?n(E(e,t)):t(e,0):void 0}function BZ(e){return Qe(e)?ge(e):e}function JZ(e,t,n){return"export="===e.escapedName||"default"===e.escapedName?zZ(e)||qZ(function(e){var t;return un.checkDefined(e.parent,`Symbol parent was undefined. Flags: ${un.formatSymbolFlags(e.flags)}. Declarations: ${null==(t=e.declarations)?void 0:t.map(e=>{const t=un.formatSyntaxKind(e.kind),n=Em(e),{expression:r}=e;return(n?"[JS]":"")+t+(r?` (expression: ${un.formatSyntaxKind(r.kind)})`:"")}).join(", ")}.`)}(e),t,!!n):e.name}function zZ(e){return f(e.declarations,t=>{var n,r,i;if(AE(t))return null==(n=tt(NA(t.expression),aD))?void 0:n.text;if(LE(t)&&2097152===t.symbol.flags)return null==(r=tt(t.propertyName,aD))?void 0:r.text;return(null==(i=tt(Cc(t),aD))?void 0:i.text)||(e.parent&&!Qu(e.parent)?e.parent.getName():void 0)})}function qZ(e,t,n){return UZ(US(Fy(e.name)),t,n)}function UZ(e,t,n){const r=Fo(Rt(US(e),"/index"));let i="",o=!0;const a=r.charCodeAt(0);ps(a,t)?(i+=String.fromCharCode(a),n&&(i=i.toUpperCase())):o=!1;for(let e=1;ee.length)return!1;for(let i=0;i(e[e.Named=0]="Named",e[e.Default=1]="Default",e[e.Namespace=2]="Namespace",e[e.CommonJS=3]="CommonJS",e))(r0||{}),i0=(e=>(e[e.Named=0]="Named",e[e.Default=1]="Default",e[e.ExportEquals=2]="ExportEquals",e[e.UMD=3]="UMD",e[e.Module=4]="Module",e))(i0||{});function o0(e){let t=1;const n=$e(),r=new Map,i=new Map;let o;const a={isUsableByFile:e=>e===o,isEmpty:()=>!n.size,clear:()=>{n.clear(),r.clear(),o=void 0},add:(e,s,c,l,_,u,d,p)=>{let f;if(e!==o&&(a.clear(),o=e),_){const t=UT(_.fileName);if(t){const{topLevelNodeModulesIndex:n,topLevelPackageNameIndex:r,packageRootIndex:o}=t;if(f=IR(AR(_.fileName.substring(r+1,o))),Gt(e,_.path.substring(0,n))){const e=i.get(f),t=_.fileName.substring(0,r+1);e?n>e.indexOf(KM)&&i.set(f,t):i.set(f,t)}}}const m=1===u&&vb(s)||s,g=0===u||Qu(m)?mc(c):function(e,t){let n;return g0(e,t,void 0,(e,t)=>(n=t?[e,t]:e,!0)),un.checkDefined(n)}(m,p),h="string"==typeof g?g:g[0],y="string"==typeof g?void 0:g[1],v=Fy(l.name),b=t++,x=ox(s,p),k=33554432&s.flags?void 0:s,S=33554432&l.flags?void 0:l;k&&S||r.set(b,[s,l]),n.add(function(e,t,n,r){const i=n||"";return`${e.length} ${eJ(ox(t,r))} ${e} ${i}`}(h,s,Cs(v)?void 0:v,p),{id:b,symbolTableKey:c,symbolName:h,capitalizedSymbolName:y,moduleName:v,moduleFile:_,moduleFileName:null==_?void 0:_.fileName,packageName:f,exportKind:u,targetFlags:x.flags,isFromPackageJson:d,symbol:k,moduleSymbol:S})},get:(e,t)=>{if(e!==o)return;const r=n.get(t);return null==r?void 0:r.map(s)},search:(t,r,a,c)=>{if(t===o)return rd(n,(t,n)=>{const{symbolName:o,ambientModuleName:l}=function(e){const t=e.indexOf(" "),n=e.indexOf(" ",t+1),r=parseInt(e.substring(0,t),10),i=e.substring(n+1),o=i.substring(0,r),a=i.substring(r+1);return{symbolName:o,ambientModuleName:""===a?void 0:a}}(n),_=r&&t[0].capitalizedSymbolName||o;if(a(_,t[0].targetFlags)){const r=t.map(s).filter((n,r)=>function(t,n){if(!n||!t.moduleFileName)return!0;const r=e.getGlobalTypingsCacheLocation();if(r&&Gt(t.moduleFileName,r))return!0;const o=i.get(n);return!o||Gt(t.moduleFileName,o)}(n,t[r].packageName));if(r.length){const e=c(r,_,!!l,n);if(void 0!==e)return e}}})},releaseSymbols:()=>{r.clear()},onFileChanged:(e,t,n)=>!(c(e)&&c(t)||(o&&o!==t.path||n&&PZ(e)!==PZ(t)||!te(e.moduleAugmentations,t.moduleAugmentations)||!function(e,t){if(!te(e.ambientModuleNames,t.ambientModuleNames))return!1;let n=-1,r=-1;for(const i of t.ambientModuleNames){const o=e=>_p(e)&&e.name.text===i;if(n=k(e.statements,o,n+1),r=k(t.statements,o,r+1),e.statements[n]!==t.statements[r])return!1}return!0}(e,t)?(a.clear(),0):(o=t.path,1)))};return un.isDebugging&&Object.defineProperty(a,"__cache",{value:n}),a;function s(t){if(t.symbol&&t.moduleSymbol)return t;const{id:n,exportKind:i,targetFlags:o,isFromPackageJson:a,moduleFileName:s}=t,[c,_]=r.get(n)||l;if(c&&_)return{symbol:c,moduleSymbol:_,moduleFileName:s,exportKind:i,targetFlags:o,isFromPackageJson:a};const u=(a?e.getPackageJsonAutoImportProvider():e.getCurrentProgram()).getTypeChecker(),d=t.moduleSymbol||_||un.checkDefined(t.moduleFile?u.getMergedSymbol(t.moduleFile.symbol):u.tryFindAmbientModule(t.moduleName)),p=t.symbol||c||un.checkDefined(2===i?u.resolveExternalModuleSymbol(d):u.tryGetMemberInModuleExportsAndProperties(mc(t.symbolTableKey),d),`Could not find symbol '${t.symbolName}' by key '${t.symbolTableKey}' in module ${d.name}`);return r.set(n,[p,d]),{symbol:p,moduleSymbol:d,moduleFileName:s,exportKind:i,targetFlags:o,isFromPackageJson:a}}function c(e){return!(e.commonJsModuleIndicator||e.externalModuleIndicator||e.moduleAugmentations||e.ambientModuleNames)}}function a0(e,t,n,r,i,o,a,s){var c;if(!n){let n;const i=Fy(r.name);return NC.has(i)&&void 0!==(n=HZ(t,e))?n===Gt(i,"node:"):!o||o.allowsImportingAmbientModule(r,a)||s0(t,i)}if(un.assertIsDefined(n),t===n)return!1;const l=null==s?void 0:s.get(t.path,n.path,i,{});if(void 0!==(null==l?void 0:l.isBlockedByPackageJsonDependencies))return!l.isBlockedByPackageJsonDependencies||!!l.packageName&&s0(t,l.packageName);const _=My(a),u=null==(c=a.getGlobalTypingsCacheLocation)?void 0:c.call(a),d=!!nB.forEachFileNameOfModule(t.fileName,n.fileName,a,!1,r=>{const i=e.getSourceFile(r);return(i===n||!i)&&function(e,t,n,r,i){const o=TR(i,t,e=>"node_modules"===Fo(e)?e:void 0),a=o&&Do(n(o));return void 0===a||Gt(n(e),a)||!!r&&Gt(n(r),a)}(t.fileName,r,_,u,a)});if(o){const e=d?o.getSourceFileInfo(n,a):void 0;return null==s||s.setBlockedByPackageJsonDependencies(t.path,n.path,i,{},null==e?void 0:e.packageName,!(null==e?void 0:e.importable)),!!(null==e?void 0:e.importable)||d&&!!(null==e?void 0:e.packageName)&&s0(t,e.packageName)}return d}function s0(e,t){return e.imports&&e.imports.some(e=>e.text===t||e.text.startsWith(t+"/"))}function c0(e,t,n,r,i){var o,a;const s=jy(t),c=n.autoImportFileExcludePatterns&&l0(n,s);_0(e.getTypeChecker(),e.getSourceFiles(),c,t,(t,n)=>i(t,n,e,!1));const l=r&&(null==(o=t.getPackageJsonAutoImportProvider)?void 0:o.call(t));if(l){const n=Un(),r=e.getTypeChecker();_0(l.getTypeChecker(),l.getSourceFiles(),c,t,(t,n)=>{(n&&!e.getSourceFile(n.fileName)||!n&&!r.resolveName(t.name,void 0,1536,!1))&&i(t,n,l,!0)}),null==(a=t.log)||a.call(t,"forEachExternalModuleToImportFrom autoImportProvider: "+(Un()-n))}}function l0(e,t){return B(e.autoImportFileExcludePatterns,e=>{const n=pS(e,"","exclude");return n?gS(n,t):void 0})}function _0(e,t,n,r,i){var o;const a=n&&u0(n,r);for(const t of e.getAmbientModules())t.name.includes("*")||n&&(null==(o=t.declarations)?void 0:o.every(e=>a(e.getSourceFile())))||i(t,void 0);for(const n of t)Zp(n)&&!(null==a?void 0:a(n))&&i(e.getMergedSymbol(n.symbol),n)}function u0(e,t){var n;const r=null==(n=t.getSymlinkCache)?void 0:n.call(t).getSymlinkedDirectoriesByRealpath();return({fileName:n,path:i})=>{if(e.some(e=>e.test(n)))return!0;if((null==r?void 0:r.size)&&GM(n)){let o=Do(n);return TR(t,Do(i),t=>{const i=r.get(Wo(t));if(i)return i.some(t=>e.some(e=>e.test(n.replace(o,t))));o=Do(o)})??!1}return!1}}function d0(e,t){return t.autoImportFileExcludePatterns?u0(l0(t,jy(e)),e):()=>!1}function p0(e,t,n,r,i){var o,a,s,c,l;const _=Un();null==(o=t.getPackageJsonAutoImportProvider)||o.call(t);const u=(null==(a=t.getCachedExportInfoMap)?void 0:a.call(t))||o0({getCurrentProgram:()=>n,getPackageJsonAutoImportProvider:()=>{var e;return null==(e=t.getPackageJsonAutoImportProvider)?void 0:e.call(t)},getGlobalTypingsCacheLocation:()=>{var e;return null==(e=t.getGlobalTypingsCacheLocation)?void 0:e.call(t)}});if(u.isUsableByFile(e.path))return null==(s=t.log)||s.call(t,"getExportInfoMap: cache hit"),u;null==(c=t.log)||c.call(t,"getExportInfoMap: cache miss or empty; calculating new results");let d=0;try{c0(n,t,r,!0,(t,n,r,o)=>{++d%100==0&&(null==i||i.throwIfCancellationRequested());const a=new Set,s=r.getTypeChecker(),c=f0(t,s);c&&m0(c.symbol,s)&&u.add(e.path,c.symbol,1===c.exportKind?"default":"export=",t,n,c.exportKind,o,s),s.forEachExportAndPropertyOfModule(t,(r,i)=>{r!==(null==c?void 0:c.symbol)&&m0(r,s)&&bx(a,i)&&u.add(e.path,r,i,t,n,0,o,s)})})}catch(e){throw u.clear(),e}return null==(l=t.log)||l.call(t,`getExportInfoMap: done in ${Un()-_} ms`),u}function f0(e,t){const n=t.resolveExternalModuleSymbol(e);if(n!==e){const e=t.tryGetMemberInModuleExports("default",n);return e?{symbol:e,exportKind:1}:{symbol:n,exportKind:2}}const r=t.tryGetMemberInModuleExports("default",e);if(r)return{symbol:r,exportKind:1}}function m0(e,t){return!(t.isUndefinedSymbol(e)||t.isUnknownSymbol(e)||Wh(e)||$h(e))}function g0(e,t,n,r){let i,o=e;const a=new Set;for(;o;){const e=zZ(o);if(e){const t=r(e);if(t)return t}if("default"!==o.escapedName&&"export="!==o.escapedName){const e=r(o.name);if(e)return e}if(i=ie(i,o),!bx(a,o))break;o=2097152&o.flags?t.getImmediateAliasedSymbol(o):void 0}for(const e of i??l)if(e.parent&&Qu(e.parent)){const t=r(qZ(e.parent,n,!1),qZ(e.parent,n,!0));if(t)return t}}function h0(){const e=gs(99,!1);function t(t,n,r){let i=0,o=0;const a=[],{prefix:s,pushTemplate:c}=function(e){switch(e){case 3:return{prefix:'"\\\n'};case 2:return{prefix:"'\\\n"};case 1:return{prefix:"/*\n"};case 4:return{prefix:"`\n"};case 5:return{prefix:"}\n",pushTemplate:!0};case 6:return{prefix:"",pushTemplate:!0};case 0:return{prefix:""};default:return un.assertNever(e)}}(n);t=s+t;const l=s.length;c&&a.push(16),e.setText(t);let _=0;const u=[];let d=0;do{i=e.scan(),Ah(i)||(p(),o=i);const n=e.getTokenEnd();if(x0(e.getTokenStart(),n,l,S0(i),u),n>=t.length){const t=b0(e,i,ye(a));void 0!==t&&(_=t)}}while(1!==i);function p(){switch(i){case 44:case 69:v0[o]||14!==e.reScanSlashToken()||(i=14);break;case 30:80===o&&d++;break;case 32:d>0&&d--;break;case 133:case 154:case 150:case 136:case 155:d>0&&!r&&(i=80);break;case 16:a.push(i);break;case 19:a.length>0&&a.push(i);break;case 20:if(a.length>0){const t=ye(a);16===t?(i=e.reScanTemplateToken(!1),18===i?a.pop():un.assertEqual(i,17,"Should have been a template middle.")):(un.assertEqual(t,19,"Should have been an open brace"),a.pop())}break;default:if(!Ch(i))break;(25===o||Ch(o)&&Ch(i)&&!function(e,t){if(!kQ(e))return!0;switch(t){case 139:case 153:case 137:case 126:case 129:return!0;default:return!1}}(o,i))&&(i=80)}}return{endOfLineState:_,spans:u}}return{getClassificationsForLine:function(e,n,r){return function(e,t){const n=[],r=e.spans;let i=0;for(let e=0;e=0){const e=t-i;e>0&&n.push({length:e,classification:4})}n.push({length:o,classification:k0(a)}),i=t+o}const o=t.length-i;return o>0&&n.push({length:o,classification:4}),{entries:n,finalLexState:e.endOfLineState}}(t(e,n,r),e)},getEncodedLexicalClassifications:t}}var y0,v0=Re([80,11,9,10,14,110,46,47,22,24,20,112,97],e=>e,()=>!0);function b0(e,t,n){switch(t){case 11:{if(!e.isUnterminated())return;const t=e.getTokenText(),n=t.length-1;let r=0;for(;92===t.charCodeAt(n-r);)r++;if(!(1&r))return;return 34===t.charCodeAt(0)?3:2}case 3:return e.isUnterminated()?1:void 0;default:if(Ll(t)){if(!e.isUnterminated())return;switch(t){case 18:return 5;case 15:return 4;default:return un.fail("Only 'NoSubstitutionTemplateLiteral's and 'TemplateTail's can be unterminated; got SyntaxKind #"+t)}}return 16===n?6:void 0}}function x0(e,t,n,r,i){if(8===r)return;0===e&&n>0&&(e+=n);const o=t-e;o>0&&i.push(e-n,o,r)}function k0(e){switch(e){case 1:return 3;case 3:return 1;case 4:return 6;case 25:return 7;case 5:return 2;case 6:return 8;case 8:return 4;case 10:return 0;case 2:case 11:case 12:case 13:case 14:case 15:case 16:case 9:case 17:return 5;default:return}}function S0(e){if(Ch(e))return 3;if(function(e){switch(e){case 42:case 44:case 45:case 40:case 41:case 48:case 49:case 50:case 30:case 32:case 33:case 34:case 104:case 103:case 130:case 152:case 35:case 36:case 37:case 38:case 51:case 53:case 52:case 56:case 57:case 75:case 74:case 79:case 71:case 72:case 73:case 65:case 66:case 67:case 69:case 70:case 64:case 28:case 61:case 76:case 77:case 78:return!0;default:return!1}}(e)||function(e){switch(e){case 40:case 41:case 55:case 54:case 46:case 47:return!0;default:return!1}}(e))return 5;if(e>=19&&e<=79)return 10;switch(e){case 9:return 4;case 10:return 25;case 11:return 6;case 14:return 7;case 7:case 3:case 2:return 1;case 5:case 4:return 8;default:return Ll(e)?6:2}}function T0(e,t,n,r,i){return F0(w0(e,t,n,r,i))}function C0(e,t){switch(t){case 268:case 264:case 265:case 263:case 232:case 219:case 220:e.throwIfCancellationRequested()}}function w0(e,t,n,r,i){const o=[];return n.forEachChild(function a(s){if(s&&Bs(i,s.pos,s.getFullWidth())){if(C0(t,s.kind),aD(s)&&!Nd(s)&&r.has(s.escapedText)){const t=e.getSymbolAtLocation(s),r=t&&N0(t,WG(s),e);r&&function(e,t,n){const r=t-e;un.assert(r>0,`Classification had non-positive length of ${r}`),o.push(e),o.push(r),o.push(n)}(s.getStart(n),s.getEnd(),r)}s.forEachChild(a)}}),{spans:o,endOfLineState:0}}function N0(e,t,n){const r=e.getFlags();return 2885600&r?32&r?11:384&r?12:524288&r?16:1536&r?4&t||1&t&&function(e){return $(e.declarations,e=>gE(e)&&1===UR(e))}(e)?14:void 0:2097152&r?N0(n.getAliasedSymbol(e),t,n):2&t?64&r?13:262144&r?15:void 0:void 0:void 0}function D0(e){switch(e){case 1:return"comment";case 2:return"identifier";case 3:return"keyword";case 4:return"number";case 25:return"bigint";case 5:return"operator";case 6:return"string";case 8:return"whitespace";case 9:return"text";case 10:return"punctuation";case 11:return"class name";case 12:return"enum name";case 13:return"interface name";case 14:return"module name";case 15:return"type parameter name";case 16:return"type alias name";case 17:return"parameter name";case 18:return"doc comment tag name";case 19:return"jsx open tag name";case 20:return"jsx close tag name";case 21:return"jsx self closing tag name";case 22:return"jsx attribute";case 23:return"jsx text";case 24:return"jsx attribute string literal value";default:return}}function F0(e){un.assert(e.spans.length%3==0);const t=e.spans,n=[];for(let e=0;e])*)(\/>)?)?/m.exec(i);if(!o)return!1;if(!o[3]||!(o[3]in Li))return!1;let a=e;_(a,o[1].length),a+=o[1].length,c(a,o[2].length,10),a+=o[2].length,c(a,o[3].length,21),a+=o[3].length;const s=o[4];let l=a;for(;;){const e=r.exec(s);if(!e)break;const t=a+e.index+e[1].length;t>l&&(_(l,t-l),l=t),c(l,e[2].length,22),l+=e[2].length,e[3].length&&(_(l,e[3].length),l+=e[3].length),c(l,e[4].length,5),l+=e[4].length,e[5].length&&(_(l,e[5].length),l+=e[5].length),c(l,e[6].length,24),l+=e[6].length}a+=o[4].length,a>l&&_(l,a-l),o[5]&&(c(a,o[5].length,10),a+=o[5].length);const u=e+n;return a=0),i>0){const t=n||m(e.kind,e);t&&c(r,i,t)}return!0}function m(e,t){if(Ch(e))return 3;if((30===e||32===e)&&t&&gQ(t.parent))return 10;if(wh(e)){if(t){const n=t.parent;if(64===e&&(261===n.kind||173===n.kind||170===n.kind||292===n.kind))return 5;if(227===n.kind||225===n.kind||226===n.kind||228===n.kind)return 5}return 10}if(9===e)return 4;if(10===e)return 25;if(11===e)return t&&292===t.parent.kind?24:6;if(14===e)return 6;if(Ll(e))return 6;if(12===e)return 23;if(80===e){if(t){switch(t.parent.kind){case 264:return t.parent.name===t?11:void 0;case 169:return t.parent.name===t?15:void 0;case 265:return t.parent.name===t?13:void 0;case 267:return t.parent.name===t?12:void 0;case 268:return t.parent.name===t?14:void 0;case 170:return t.parent.name===t?lv(t)?3:17:void 0}if(kl(t.parent))return 3}return 2}}function g(n){if(n&&Js(r,i,n.pos,n.getFullWidth())){C0(e,n.kind);for(const e of n.getChildren(t))f(e)||g(e)}}}function A0(e){return!!e.sourceFile}function I0(e,t,n){return O0(e,t,n)}function O0(e,t="",n,r){const i=new Map,o=Wt(!!e);function a(e){return"function"==typeof e.getCompilationSettings?e.getCompilationSettings():e}function s(e,t,n,r,i,o,a,s){return _(e,t,n,r,i,o,!0,a,s)}function c(e,t,n,r,i,o,s,c){return _(e,t,a(n),r,i,o,!1,s,c)}function l(e,t){const n=A0(e)?e:e.get(un.checkDefined(t,"If there are more than one scriptKind's for same document the scriptKind should be provided"));return un.assert(void 0===t||!n||n.sourceFile.scriptKind===t,`Script kind should match provided ScriptKind:${t} and sourceFile.scriptKind: ${null==n?void 0:n.sourceFile.scriptKind}, !entry: ${!n}`),n}function _(e,t,o,s,c,_,u,d,p){var f,m,g,h;d=bS(e,d);const y=a(o),v=o===y?void 0:o,b=6===d?100:yk(y),x="object"==typeof p?p:{languageVersion:b,impliedNodeFormat:v&&AV(t,null==(h=null==(g=null==(m=null==(f=v.getCompilerHost)?void 0:f.call(v))?void 0:m.getModuleResolutionCache)?void 0:g.call(m))?void 0:h.getPackageJsonInfoCache(),v,y),setExternalModuleIndicator:pk(y),jsDocParsingMode:n};x.languageVersion=b,un.assertEqual(n,x.jsDocParsingMode);const k=i.size,S=j0(s,x.impliedNodeFormat),T=z(i,S,()=>new Map);if(Hn){i.size>k&&Hn.instant(Hn.Phase.Session,"createdDocumentRegistryBucket",{configFilePath:y.configFilePath,key:S});const e=!uO(t)&&rd(i,(e,n)=>n!==S&&e.has(t)&&n);e&&Hn.instant(Hn.Phase.Session,"documentRegistryBucketOverlap",{path:t,key1:e,key2:S})}const C=T.get(t);let w=C&&l(C,d);if(!w&&r){const e=r.getDocument(S,t);e&&e.scriptKind===d&&e.text===zQ(c)&&(un.assert(u),w={sourceFile:e,languageServiceRefCount:0},N())}if(w)w.sourceFile.version!==_&&(w.sourceFile=V8(w.sourceFile,c,_,c.getChangeRange(w.sourceFile.scriptSnapshot)),r&&r.setDocument(S,t,w.sourceFile)),u&&w.languageServiceRefCount++;else{const n=U8(e,c,x,_,!1,d);r&&r.setDocument(S,t,n),w={sourceFile:n,languageServiceRefCount:1},N()}return un.assert(0!==w.languageServiceRefCount),w.sourceFile;function N(){if(C)if(A0(C)){const e=new Map;e.set(C.sourceFile.scriptKind,C),e.set(d,w),T.set(t,e)}else C.set(d,w);else T.set(t,w)}}function u(e,t,n,r){const o=un.checkDefined(i.get(j0(t,r))),a=o.get(e),s=l(a,n);s.languageServiceRefCount--,un.assert(s.languageServiceRefCount>=0),0===s.languageServiceRefCount&&(A0(a)?o.delete(e):(a.delete(n),1===a.size&&o.set(e,m(a.values(),st))))}return{acquireDocument:function(e,n,r,i,c,l){return s(e,Uo(e,t,o),n,L0(a(n)),r,i,c,l)},acquireDocumentWithKey:s,updateDocument:function(e,n,r,i,s,l){return c(e,Uo(e,t,o),n,L0(a(n)),r,i,s,l)},updateDocumentWithKey:c,releaseDocument:function(e,n,r,i){return u(Uo(e,t,o),L0(n),r,i)},releaseDocumentWithKey:u,getKeyForCompilationSettings:L0,getDocumentRegistryBucketKeyWithMode:j0,reportStats:function(){const e=Oe(i.keys()).filter(e=>e&&"_"===e.charAt(0)).map(e=>{const t=i.get(e),n=[];return t.forEach((e,t)=>{A0(e)?n.push({name:t,scriptKind:e.sourceFile.scriptKind,refCount:e.languageServiceRefCount}):e.forEach((e,r)=>n.push({name:t,scriptKind:r,refCount:e.languageServiceRefCount}))}),n.sort((e,t)=>t.refCount-e.refCount),{bucket:e,sourceFiles:n}});return JSON.stringify(e,void 0,2)},getBuckets:()=>i}}function L0(e){return TM(e,BO)}function j0(e,t){return t?`${e}|${t}`:e}function M0(e,t,n,r,i,o,a){const s=jy(r),c=Wt(s),l=R0(t,n,c,a),_=R0(n,t,c,a);return jue.ChangeTracker.with({host:r,formatContext:i,preferences:o},i=>{!function(e,t,n,r,i,o,a){const{configFile:s}=e.getCompilerOptions();if(!s)return;const c=Do(s.fileName),l=Wf(s);function _(e){const t=_F(e.initializer)?e.initializer.elements:[e.initializer];let n=!1;for(const e of t)n=u(e)||n;return n}function u(e){if(!UN(e))return!1;const r=B0(c,e.text),i=n(r);return void 0!==i&&(t.replaceRangeWithText(s,U0(e,s),d(i)),!0)}function d(e){return ra(c,e,!a)}l&&V0(l,(e,n)=>{switch(n){case"files":case"include":case"exclude":{if(_(e)||"include"!==n||!_F(e.initializer))return;const l=B(e.initializer.elements,e=>UN(e)?e.text:void 0);if(0===l.length)return;const u=mS(c,[],l,a,o);return void(gS(un.checkDefined(u.includeFilePattern),a).test(r)&&!gS(un.checkDefined(u.includeFilePattern),a).test(i)&&t.insertNodeAfter(s,ve(e.initializer.elements),mw.createStringLiteral(d(i))))}case"compilerOptions":return void V0(e.initializer,(e,t)=>{const n=_L(t);un.assert("listOrElement"!==(null==n?void 0:n.type)),n&&(n.isFilePath||"list"===n.type&&n.element.isFilePath)?_(e):"paths"===t&&V0(e.initializer,e=>{if(_F(e.initializer))for(const t of e.initializer.elements)u(t)})})}})}(e,i,l,t,n,r.getCurrentDirectory(),s),function(e,t,n,r,i,o){const a=e.getSourceFiles();for(const s of a){const c=n(s.fileName),l=c??s.fileName,_=Do(l),u=r(s.fileName),d=u||s.fileName,p=Do(d),f=void 0!==c||void 0!==u;q0(s,t,e=>{if(!vo(e))return;const t=B0(p,e),r=n(t);return void 0===r?void 0:$o(ra(_,r,o))},t=>{const r=e.getTypeChecker().getSymbolAtLocation(t);if((null==r?void 0:r.declarations)&&r.declarations.some(e=>cp(e)))return;const o=void 0!==u?z0(t,MM(t.text,d,e.getCompilerOptions(),i),n,a):J0(r,t,s,e,i,n);return void 0!==o&&(o.updated||f&&vo(t.text))?nB.updateModuleSpecifier(e.getCompilerOptions(),s,l,o.newFileName,KQ(e,i),t.text):void 0})}}(e,i,l,_,r,c)})}function R0(e,t,n,r){const i=n(e);return e=>{const o=r&&r.tryGetSourcePosition({fileName:e,pos:0}),a=function(e){if(n(e)===i)return t;const r=Zk(e,i,n);return void 0===r?void 0:t+"/"+r}(o?o.fileName:e);return o?void 0===a?void 0:function(e,t,n,r){const i=oa(e,t,r);return B0(Do(n),i)}(o.fileName,a,e,n):a}}function B0(e,t){return $o(function(e,t){return Jo(jo(e,t))}(e,t))}function J0(e,t,n,r,i,o){if(e){const t=b(e.declarations,sP).fileName,n=o(t);return void 0===n?{newFileName:t,updated:!1}:{newFileName:n,updated:!0}}{const e=r.getModeForUsageLocation(n,t);return z0(t,i.resolveModuleNameLiterals||!i.resolveModuleNames?r.getResolvedModuleFromModuleSpecifier(t,n):i.getResolvedModuleWithFailedLookupLocationsFromCache&&i.getResolvedModuleWithFailedLookupLocationsFromCache(t.text,n.fileName,e),o,r.getSourceFiles())}}function z0(e,t,n,r){if(!t)return;if(t.resolvedModule){const e=o(t.resolvedModule.resolvedFileName);if(e)return e}return d(t.failedLookupLocations,function(e){const t=n(e);return t&&b(r,e=>e.fileName===t)?i(e):void 0})||vo(e.text)&&d(t.failedLookupLocations,i)||t.resolvedModule&&{newFileName:t.resolvedModule.resolvedFileName,updated:!1};function i(e){return Mt(e,"/package.json")?void 0:o(e)}function o(e){const t=n(e);return t&&{newFileName:t,updated:!0}}}function q0(e,t,n,r){for(const r of e.referencedFiles||l){const i=n(r.fileName);void 0!==i&&i!==e.text.slice(r.pos,r.end)&&t.replaceRangeWithText(e,r,i)}for(const n of e.imports){const i=r(n);void 0!==i&&i!==n.text&&t.replaceRangeWithText(e,U0(n,e),i)}}function U0(e,t){return Ab(e.getStart(t)+1,e.end-1)}function V0(e,t){if(uF(e))for(const n of e.properties)rP(n)&&UN(n.name)&&t(n,n.name.text)}(e=>{function t(e,t){return{fileName:t.fileName,textSpan:FQ(e,t),kind:"none"}}function n(e){return aE(e)?[e]:sE(e)?K(e.catchClause?n(e.catchClause):e.tryBlock&&n(e.tryBlock),e.finallyBlock&&n(e.finallyBlock)):r_(e)?void 0:i(e,n)}function r(e){return Cl(e)?[e]:r_(e)?void 0:i(e,r)}function i(e,t){const n=[];return e.forEachChild(e=>{const r=t(e);void 0!==r&&n.push(...Ye(r))}),n}function o(e,t){const n=a(t);return!!n&&n===e}function a(e){return uc(e,t=>{switch(t.kind){case 256:if(252===e.kind)return!1;case 249:case 250:case 251:case 248:case 247:return!e.label||function(e,t){return!!uc(e.parent,e=>oE(e)?e.label.escapedText===t:"quit")}(t,e.label.escapedText);default:return r_(t)&&"quit"}})}function s(e,t,...n){return!(!t||!T(n,t.kind)||(e.push(t),0))}function c(e){const t=[];if(s(t,e.getFirstToken(),99,117,92)&&247===e.kind){const n=e.getChildren();for(let e=n.length-1;e>=0&&!s(t,n[e],117);e--);}return d(r(e.statement),n=>{o(e,n)&&s(t,n.getFirstToken(),83,88)}),t}function l(e){const t=a(e);if(t)switch(t.kind){case 249:case 250:case 251:case 247:case 248:return c(t);case 256:return _(t)}}function _(e){const t=[];return s(t,e.getFirstToken(),109),d(e.caseBlock.clauses,n=>{s(t,n.getFirstToken(),84,90),d(r(n),n=>{o(e,n)&&s(t,n.getFirstToken(),83)})}),t}function u(e,t){const n=[];return s(n,e.getFirstToken(),113),e.catchClause&&s(n,e.catchClause.getFirstToken(),85),e.finallyBlock&&s(n,OX(e,98,t),98),n}function p(e,t){const r=function(e){let t=e;for(;t.parent;){const e=t.parent;if(Bf(e)||308===e.kind)return e;if(sE(e)&&e.tryBlock===t&&e.catchClause)return t;t=e}}(e);if(!r)return;const i=[];return d(n(r),e=>{i.push(OX(e,111,t))}),Bf(r)&&Df(r,e=>{i.push(OX(e,107,t))}),i}function f(e,t){const r=Kf(e);if(!r)return;const i=[];return Df(nt(r.body,VF),e=>{i.push(OX(e,107,t))}),d(n(r.body),e=>{i.push(OX(e,111,t))}),i}function m(e){const t=Kf(e);if(!t)return;const n=[];return t.modifiers&&t.modifiers.forEach(e=>{s(n,e,134)}),XI(t,e=>{g(e,e=>{TF(e)&&s(n,e.getFirstToken(),135)})}),n}function g(e,t){t(e),r_(e)||u_(e)||pE(e)||gE(e)||fE(e)||b_(e)||XI(e,e=>g(e,t))}e.getDocumentHighlights=function(e,n,r,i,o){const a=WX(r,i);if(a.parent&&(UE(a.parent)&&a.parent.tagName===a||VE(a.parent))){const{openingElement:e,closingElement:n}=a.parent.parent,i=[e,n].map(({tagName:e})=>t(e,r));return[{fileName:r.fileName,highlightSpans:i}]}return function(e,t,n,r,i){const o=new Set(i.map(e=>e.fileName)),a=gce.getReferenceEntriesForNode(e,t,n,i,r,void 0,o);if(!a)return;const s=Be(a.map(gce.toHighlightSpan),e=>e.fileName,e=>e.span),c=Wt(n.useCaseSensitiveFileNames());return Oe(J(s.entries(),([e,t])=>{if(!o.has(e)){if(!n.redirectTargetsMap.has(Uo(e,n.getCurrentDirectory(),c)))return;const t=n.getSourceFile(e);e=b(i,e=>!!e.redirectInfo&&e.redirectInfo.redirectTarget===t).fileName,un.assert(o.has(e))}return{fileName:e,highlightSpans:t}}))}(i,a,e,n,o)||function(e,n){const r=function(e,n){switch(e.kind){case 101:case 93:return KF(e.parent)?function(e,n){const r=function(e,t){const n=[];for(;KF(e.parent)&&e.parent.elseStatement===e;)e=e.parent;for(;;){const r=e.getChildren(t);s(n,r[0],101);for(let e=r.length-1;e>=0&&!s(n,r[e],93);e--);if(!e.elseStatement||!KF(e.elseStatement))break;e=e.elseStatement}return n}(e,n),i=[];for(let e=0;e=t.end;e--)if(!Ua(n.text.charCodeAt(e))){a=!1;break}if(a){i.push({fileName:n.fileName,textSpan:$s(t.getStart(),o.end),kind:"reference"}),e++;continue}}i.push(t(r[e],n))}return i}(e.parent,n):void 0;case 107:return o(e.parent,nE,f);case 111:return o(e.parent,aE,p);case 113:case 85:case 98:return o(85===e.kind?e.parent.parent:e.parent,sE,u);case 109:return o(e.parent,iE,_);case 84:case 90:return eP(e.parent)||ZE(e.parent)?o(e.parent.parent.parent,iE,_):void 0;case 83:case 88:return o(e.parent,Cl,l);case 99:case 117:case 92:return o(e.parent,e=>$_(e,!0),c);case 137:return i(PD,[137]);case 139:case 153:return i(d_,[139,153]);case 135:return o(e.parent,TF,m);case 134:return a(m(e));case 127:return a(function(e){const t=Kf(e);if(!t)return;const n=[];return XI(t,e=>{g(e,e=>{EF(e)&&s(n,e.getFirstToken(),127)})}),n}(e));case 103:case 147:return;default:return Xl(e.kind)&&(_u(e.parent)||WF(e.parent))?a((r=e.kind,B(function(e,t){const n=e.parent;switch(n.kind){case 269:case 308:case 242:case 297:case 298:return 64&t&&dE(e)?[...e.members,e]:n.statements;case 177:case 175:case 263:return[...n.parameters,...u_(n.parent)?n.parent.members:[]];case 264:case 232:case 265:case 188:const r=n.members;if(15&t){const e=b(n.members,PD);if(e)return[...r,...e.parameters]}else if(64&t)return[...r,n];return r;default:return}}(e.parent,Hv(r)),e=>_Y(e,r)))):void 0}var r;function i(t,r){return o(e.parent,t,e=>{var i;return B(null==(i=tt(e,au))?void 0:i.symbol.declarations,e=>t(e)?b(e.getChildren(n),e=>T(r,e.kind)):void 0)})}function o(e,t,r){return t(e)?a(r(e,n)):void 0}function a(e){return e&&e.map(e=>t(e,n))}}(e,n);return r&&[{fileName:n.fileName,highlightSpans:r}]}(a,r)}})(y0||(y0={}));var W0=(e=>(e[e.exact=0]="exact",e[e.prefix=1]="prefix",e[e.substring=2]="substring",e[e.camelCase=3]="camelCase",e))(W0||{});function $0(e,t){return{kind:e,isCaseSensitive:t}}function H0(e){const t=new Map,n=e.trim().split(".").map(e=>{return{totalTextChunk:s1(t=e.trim()),subWordTextChunks:a1(t)};var t});return 1===n.length&&""===n[0].totalTextChunk.text?{getMatchForLastSegmentOfPattern:()=>$0(2,!0),getFullMatch:()=>$0(2,!0),patternContainsDots:!1}:n.some(e=>!e.subWordTextChunks.length)?void 0:{getFullMatch:(e,r)=>function(e,t,n,r){if(!X0(t,ve(n),r))return;if(n.length-1>e.length)return;let i;for(let t=n.length-2,o=e.length-1;t>=0;t-=1,o-=1)i=Q0(i,X0(e[o],n[t],r));return i}(e,r,n,t),getMatchForLastSegmentOfPattern:e=>X0(e,ve(n),t),patternContainsDots:n.length>1}}function K0(e,t){let n=t.get(e);return n||t.set(e,n=l1(e)),n}function G0(e,t,n){const r=function(e,t){const n=e.length-t.length;for(let r=0;r<=n;r++)if(g1(t,(t,n)=>r1(e.charCodeAt(n+r))===t))return r;return-1}(e,t.textLowerCase);if(0===r)return $0(t.text.length===e.length?0:1,Gt(e,t.text));if(t.isLowerCase){if(-1===r)return;const i=K0(e,n);for(const n of i)if(Z0(e,n,t.text,!0))return $0(2,Z0(e,n,t.text,!1));if(t.text.length0)return $0(2,!0);if(t.characterSpans.length>0){const r=K0(e,n),i=!!e1(e,r,t,!1)||!e1(e,r,t,!0)&&void 0;if(void 0!==i)return $0(3,i)}}}function X0(e,t,n){if(g1(t.totalTextChunk.text,e=>32!==e&&42!==e)){const r=G0(e,t.totalTextChunk,n);if(r)return r}const r=t.subWordTextChunks;let i;for(const t of r)i=Q0(i,G0(e,t,n));return i}function Q0(e,t){return kt([e,t],Y0)}function Y0(e,t){return void 0===e?1:void 0===t?-1:vt(e.kind,t.kind)||Ot(!e.isCaseSensitive,!t.isCaseSensitive)}function Z0(e,t,n,r,i={start:0,length:n.length}){return i.length<=t.length&&m1(0,i.length,o=>function(e,t,n){return n?r1(e)===r1(t):e===t}(n.charCodeAt(i.start+o),e.charCodeAt(t.start+o),r))}function e1(e,t,n,r){const i=n.characterSpans;let o,a,s=0,c=0;for(;;){if(c===i.length)return!0;if(s===t.length)return!1;let l=t[s],_=!1;for(;c=65&&e<=90)return!0;if(e<127||!wa(e,99))return!1;const t=String.fromCharCode(e);return t===t.toUpperCase()}function n1(e){if(e>=97&&e<=122)return!0;if(e<127||!wa(e,99))return!1;const t=String.fromCharCode(e);return t===t.toLowerCase()}function r1(e){return e>=65&&e<=90?e-65+97:e<127?e:String.fromCharCode(e).toLowerCase().charCodeAt(0)}function i1(e){return e>=48&&e<=57}function o1(e){return t1(e)||n1(e)||i1(e)||95===e||36===e}function a1(e){const t=[];let n=0,r=0;for(let i=0;i0&&(t.push(s1(e.substr(n,r))),r=0);return r>0&&t.push(s1(e.substr(n,r))),t}function s1(e){const t=e.toLowerCase();return{text:e,textLowerCase:t,isLowerCase:e===t,characterSpans:c1(e)}}function c1(e){return _1(e,!1)}function l1(e){return _1(e,!0)}function _1(e,t){const n=[];let r=0;for(let i=1;iu1(e)&&95!==e,t,n)}function p1(e,t,n){return t!==n&&t+1t(e.charCodeAt(n),n))}function h1(e,t=!0,n=!1){const r={languageVersion:1,pragmas:void 0,checkJsDirective:void 0,referencedFiles:[],typeReferenceDirectives:[],libReferenceDirectives:[],amdDependencies:[],hasNoDefaultLib:void 0,moduleName:void 0},i=[];let o,a,s,c=0,l=!1;function _(){return a=s,s=qG.scan(),19===s?c++:20===s&&c--,s}function d(){const e=qG.getTokenValue(),t=qG.getTokenStart();return{fileName:e,pos:t,end:t+e.length}}function p(){i.push(d()),f()}function f(){0===c&&(l=!0)}function m(){let e=qG.getToken();return 138===e&&(e=_(),144===e&&(e=_(),11===e&&(o||(o=[]),o.push({ref:d(),depth:c}))),!0)}function g(){if(25===a)return!1;let e=qG.getToken();if(102===e){if(e=_(),21===e){if(e=_(),11===e||15===e)return p(),!0}else{if(11===e)return p(),!0;if(156===e&&qG.lookAhead(()=>{const e=qG.scan();return 161!==e&&(42===e||19===e||80===e||Ch(e))})&&(e=_()),80===e||Ch(e))if(e=_(),161===e){if(e=_(),11===e)return p(),!0}else if(64===e){if(y(!0))return!0}else{if(28!==e)return!0;e=_()}if(19===e){for(e=_();20!==e&&1!==e;)e=_();20===e&&(e=_(),161===e&&(e=_(),11===e&&p()))}else 42===e&&(e=_(),130===e&&(e=_(),(80===e||Ch(e))&&(e=_(),161===e&&(e=_(),11===e&&p()))))}return!0}return!1}function h(){let e=qG.getToken();if(95===e){if(f(),e=_(),156===e&&qG.lookAhead(()=>{const e=qG.scan();return 42===e||19===e})&&(e=_()),19===e){for(e=_();20!==e&&1!==e;)e=_();20===e&&(e=_(),161===e&&(e=_(),11===e&&p()))}else if(42===e)e=_(),161===e&&(e=_(),11===e&&p());else if(102===e&&(e=_(),156===e&&qG.lookAhead(()=>{const e=qG.scan();return 80===e||Ch(e)})&&(e=_()),(80===e||Ch(e))&&(e=_(),64===e&&y(!0))))return!0;return!0}return!1}function y(e,t=!1){let n=e?_():qG.getToken();return 149===n&&(n=_(),21===n&&(n=_(),(11===n||t&&15===n)&&p()),!0)}function v(){let e=qG.getToken();if(80===e&&"define"===qG.getTokenValue()){if(e=_(),21!==e)return!0;if(e=_(),11===e||15===e){if(e=_(),28!==e)return!0;e=_()}if(23!==e)return!0;for(e=_();24!==e&&1!==e;)11!==e&&15!==e||p(),e=_();return!0}return!1}if(t&&function(){for(qG.setText(e),_();1!==qG.getToken();){if(16===qG.getToken()){const e=[qG.getToken()];e:for(;u(e);){const t=qG.scan();switch(t){case 1:break e;case 102:g();break;case 16:e.push(t);break;case 19:u(e)&&e.push(t);break;case 20:u(e)&&(16===ye(e)?18===qG.reScanTemplateToken(!1)&&e.pop():e.pop())}}_()}m()||g()||h()||n&&(y(!1,!0)||v())||_()}qG.setText(void 0)}(),pO(r,e),fO(r,rt),l){if(o)for(const e of o)i.push(e.ref);return{referencedFiles:r.referencedFiles,typeReferenceDirectives:r.typeReferenceDirectives,libReferenceDirectives:r.libReferenceDirectives,importedFiles:i,isLibFile:!!r.hasNoDefaultLib,ambientExternalModules:void 0}}{let e;if(o)for(const t of o)0===t.depth?(e||(e=[]),e.push(t.ref.fileName)):i.push(t.ref);return{referencedFiles:r.referencedFiles,typeReferenceDirectives:r.typeReferenceDirectives,libReferenceDirectives:r.libReferenceDirectives,importedFiles:i,isLibFile:!!r.hasNoDefaultLib,ambientExternalModules:e}}}var y1=/^data:(?:application\/json;charset=[uU][tT][fF]-8;base64,([A-Za-z0-9+/=]+)$)?/;function v1(e){const t=Wt(e.useCaseSensitiveFileNames()),n=e.getCurrentDirectory(),r=new Map,i=new Map;return{tryGetSourcePosition:function e(t){if(!uO(t.fileName))return;if(!s(t.fileName))return;const n=a(t.fileName).getSourcePosition(t);return n&&n!==t?e(n)||n:void 0},tryGetGeneratedPosition:function(t){if(uO(t.fileName))return;const n=s(t.fileName);if(!n)return;const r=e.getProgram();if(r.isSourceOfProjectReferenceRedirect(n.fileName))return;const i=r.getCompilerOptions().outFile,o=i?US(i)+".d.ts":Vy(t.fileName,r.getCompilerOptions(),r);if(void 0===o)return;const c=a(o,t.fileName).getGeneratedPosition(t);return c===t?void 0:c},toLineColumnOffset:function(e,t){return c(e).getLineAndCharacterOfPosition(t)},clearCache:function(){r.clear(),i.clear()},documentPositionMappers:i};function o(e){return Uo(e,n,t)}function a(n,r){const a=o(n),s=i.get(a);if(s)return s;let l;if(e.getDocumentPositionMapper)l=e.getDocumentPositionMapper(n,r);else if(e.readFile){const r=c(n);l=r&&b1({getSourceFileLike:c,getCanonicalFileName:t,log:t=>e.log(t)},n,wJ(r.text,Ma(r)),t=>!e.fileExists||e.fileExists(t)?e.readFile(t):void 0)}return i.set(a,l||qJ),l||qJ}function s(t){const n=e.getProgram();if(!n)return;const r=o(t),i=n.getSourceFileByPath(r);return i&&i.resolvedPath===r?i:void 0}function c(t){return e.getSourceFileLike?e.getSourceFileLike(t):s(t)||function(t){const n=o(t),i=r.get(n);if(void 0!==i)return i||void 0;if(!e.readFile||e.fileExists&&!e.fileExists(t))return void r.set(n,!1);const a=e.readFile(t),s=!!a&&function(e){return{text:e,lineMap:void 0,getLineAndCharacterOfPosition(e){return Ra(Ma(this),e)}}}(a);return r.set(n,s),s||void 0}(t)}}function b1(e,t,n,r){let i=NJ(n);if(i){const n=y1.exec(i);if(n){if(n[1]){const r=n[1];return x1(e,Tb(so,r),t)}i=void 0}}const o=[];i&&o.push(i),o.push(t+".map");const a=i&&Bo(i,Do(t));for(const n of o){const i=Bo(n,Do(t)),o=r(i,a);if(Ze(o))return x1(e,o,i);if(void 0!==o)return o||void 0}}function x1(e,t,n){const r=FJ(t);if(r&&r.sources&&r.file&&r.mappings&&(!r.sourcesContent||!r.sourcesContent.some(Ze)))return zJ(e,r,n)}var k1=new Map;function S1(e,t,n){var r;t.getSemanticDiagnostics(e,n);const i=[],o=t.getTypeChecker();var a;1!==t.getImpliedNodeFormatForEmit(e)&&!So(e.fileName,[".cts",".cjs"])&&e.commonJsModuleIndicator&&($Q(t)||HQ(t.getCompilerOptions()))&&function(e){return e.statements.some(e=>{switch(e.kind){case 244:return e.declarationList.declarations.some(e=>!!e.initializer&&Lm(T1(e.initializer),!0));case 245:{const{expression:t}=e;if(!NF(t))return Lm(t,!0);const n=tg(t);return 1===n||2===n}default:return!1}})}(e)&&i.push(Rp(NF(a=e.commonJsModuleIndicator)?a.left:a,_a.File_is_a_CommonJS_module_it_may_be_converted_to_an_ES_module));const s=Fm(e);if(k1.clear(),function t(n){if(s)(function(e,t){var n,r,i,o;if(vF(e)){if(lE(e.parent)&&(null==(n=e.symbol.members)?void 0:n.size))return!0;const o=t.getSymbolOfExpando(e,!1);return!(!o||!(null==(r=o.exports)?void 0:r.size)&&!(null==(i=o.members)?void 0:i.size))}return!!uE(e)&&!!(null==(o=e.symbol.members)?void 0:o.size)})(n,o)&&i.push(Rp(lE(n.parent)?n.parent.name:n,_a.This_constructor_function_may_be_converted_to_a_class_declaration));else{if(WF(n)&&n.parent===e&&2&n.declarationList.flags&&1===n.declarationList.declarations.length){const e=n.declarationList.declarations[0].initializer;e&&Lm(e,!0)&&i.push(Rp(e,_a.require_call_may_be_converted_to_an_import))}const t=T7.getJSDocTypedefNodes(n);for(const e of t)i.push(Rp(e,_a.JSDoc_typedef_may_be_converted_to_TypeScript_type));T7.parameterShouldGetTypeFromJSDoc(n)&&i.push(Rp(n.name||n,_a.JSDoc_types_may_be_moved_to_TypeScript_types))}I1(n)&&function(e,t,n){(function(e,t){return!Lh(e)&&e.body&&VF(e.body)&&function(e,t){return!!Df(e,e=>N1(e,t))}(e.body,t)&&w1(e,t)})(e,t)&&!k1.has(A1(e))&&n.push(Rp(!e.name&&lE(e.parent)&&aD(e.parent.name)?e.parent.name:e,_a.This_may_be_converted_to_an_async_function))}(n,o,i),n.forEachChild(t)}(e),Tk(t.getCompilerOptions()))for(const n of e.imports){const o=vg(n);if(bE(o)&&Nv(o,32))continue;const a=C1(o);if(!a)continue;const s=null==(r=t.getResolvedModuleFromModuleSpecifier(n,e))?void 0:r.resolvedModule,c=s&&t.getSourceFile(s.resolvedFileName);c&&c.externalModuleIndicator&&!0!==c.externalModuleIndicator&&AE(c.externalModuleIndicator)&&c.externalModuleIndicator.isExportEquals&&i.push(Rp(a,_a.Import_may_be_converted_to_a_default_import))}return se(i,e.bindSuggestionDiagnostics),se(i,t.getSuggestionDiagnostics(e,n)),i.sort((e,t)=>e.start-t.start),i}function T1(e){return dF(e)?T1(e.expression):e}function C1(e){switch(e.kind){case 273:const{importClause:t,moduleSpecifier:n}=e;return t&&!t.name&&t.namedBindings&&275===t.namedBindings.kind&&UN(n)?t.namedBindings.name:void 0;case 272:return e.name;default:return}}function w1(e,t){const n=t.getSignatureFromDeclaration(e),r=n?t.getReturnTypeOfSignature(n):void 0;return!!r&&!!t.getPromisedTypeOfPromise(r)}function N1(e,t){return nE(e)&&!!e.expression&&D1(e.expression,t)}function D1(e,t){if(!F1(e)||!E1(e)||!e.arguments.every(e=>P1(e,t)))return!1;let n=e.expression.expression;for(;F1(n)||dF(n);)if(fF(n)){if(!E1(n)||!n.arguments.every(e=>P1(e,t)))return!1;n=n.expression.expression}else n=n.expression;return!0}function F1(e){return fF(e)&&(oX(e,"then")||oX(e,"catch")||oX(e,"finally"))}function E1(e){const t=e.expression.name.text,n="then"===t?2:"catch"===t||"finally"===t?1:0;return!(e.arguments.length>n)&&(e.arguments.length106===e.kind||aD(e)&&"undefined"===e.text))}function P1(e,t){switch(e.kind){case 263:case 219:if(1&Oh(e))return!1;case 220:k1.set(A1(e),!0);case 106:return!0;case 80:case 212:{const n=t.getSymbolAtLocation(e);return!!n&&(t.isUndefinedSymbol(n)||$(ox(n,t).declarations,e=>r_(e)||Eu(e)&&!!e.initializer&&r_(e.initializer)))}default:return!1}}function A1(e){return`${e.pos.toString()}:${e.end.toString()}`}function I1(e){switch(e.kind){case 263:case 175:case 219:case 220:return!0;default:return!1}}var O1=new Set(["isolatedModules"]);function L1(e,t){return z1(e,t,!1)}function j1(e,t){return z1(e,t,!0)}var M1,R1,B1='/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number {}\ninterface Object {}\ninterface RegExp {}\ninterface String {}\ninterface Array { length: number; [n: number]: T; }\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}',J1="lib.d.ts";function z1(e,t,n){M1??(M1=eO(J1,B1,{languageVersion:99}));const r=[],i=t.compilerOptions?U1(t.compilerOptions,r):{},o={target:1,jsx:1};for(const e in o)De(o,e)&&void 0===i[e]&&(i[e]=o[e]);for(const e of zO)i.verbatimModuleSyntax&&O1.has(e.name)||(i[e.name]=e.transpileOptionValue);i.suppressOutputPathCheck=!0,i.allowNonTsExtensions=!0,n?(i.declaration=!0,i.emitDeclarationOnly=!0,i.isolatedDeclarations=!0):(i.declaration=!1,i.declarationMap=!1);const a=Pb(i),s={getSourceFile:e=>e===Jo(c)?l:e===Jo(J1)?M1:void 0,writeFile:(e,t)=>{ko(e,".map")?(un.assertEqual(u,void 0,"Unexpected multiple source map outputs, file:",e),u=t):(un.assertEqual(_,void 0,"Unexpected multiple outputs, file:",e),_=t)},getDefaultLibFileName:()=>J1,useCaseSensitiveFileNames:()=>!1,getCanonicalFileName:e=>e,getCurrentDirectory:()=>"",getNewLine:()=>a,fileExists:e=>e===c||!!n&&e===J1,readFile:()=>"",directoryExists:()=>!0,getDirectories:()=>[]},c=t.fileName||(t.compilerOptions&&t.compilerOptions.jsx?"module.tsx":"module.ts"),l=eO(c,e,{languageVersion:yk(i),impliedNodeFormat:AV(Uo(c,"",s.getCanonicalFileName),void 0,s,i),setExternalModuleIndicator:pk(i),jsDocParsingMode:t.jsDocParsingMode??0});let _,u;t.moduleName&&(l.moduleName=t.moduleName),t.renamedDependencies&&(l.renamedDependencies=new Map(Object.entries(t.renamedDependencies)));const d=LV(n?[c,J1]:[c],i,s);return t.reportDiagnostics&&(se(r,d.getSyntacticDiagnostics(l)),se(r,d.getOptionsDiagnostics())),se(r,d.emit(void 0,void 0,void 0,n,t.transformers,n).diagnostics),void 0===_?un.fail("Output generation failed"):{outputText:_,diagnostics:r,sourceMapText:u}}function q1(e,t,n,r,i){const o=L1(e,{compilerOptions:t,fileName:n,reportDiagnostics:!!r,moduleName:i});return se(r,o.diagnostics),o.outputText}function U1(e,t){R1=R1||N(OO,e=>"object"==typeof e.type&&!rd(e.type,e=>"number"!=typeof e)),e=SQ(e);for(const n of R1){if(!De(e,n.name))continue;const r=e[n.name];Ze(r)?e[n.name]=tL(n,r,t):rd(n.type,e=>e===r)||t.push(ZO(n))}return e}var V1={};function W1(e,t,n,r,i,o,a){const s=H0(r);if(!s)return l;const c=[],_=1===e.length?e[0]:void 0;for(const r of e)n.throwIfCancellationRequested(),o&&r.isDeclarationFile||$1(r,!!a,_)||r.getNamedDeclarations().forEach((e,n)=>{H1(s,n,e,t,r.fileName,!!a,_,c)});return c.sort(Z1),(void 0===i?c:c.slice(0,i)).map(e2)}function $1(e,t,n){return e!==n&&t&&(AZ(e.path)||e.hasNoDefaultLib)}function H1(e,t,n,r,i,o,a,s){const c=e.getMatchForLastSegmentOfPattern(t);if(c)for(const l of n)if(K1(l,r,o,a))if(e.patternContainsDots){const n=e.getFullMatch(Y1(l),t);n&&s.push({name:t,fileName:i,matchKind:n.kind,isCaseSensitive:n.isCaseSensitive,declaration:l})}else s.push({name:t,fileName:i,matchKind:c.kind,isCaseSensitive:c.isCaseSensitive,declaration:l})}function K1(e,t,n,r){var i;switch(e.kind){case 274:case 277:case 272:const o=t.getSymbolAtLocation(e.name),a=t.getAliasedSymbol(o);return o.escapedName!==a.escapedName&&!(null==(i=a.declarations)?void 0:i.every(e=>$1(e.getSourceFile(),n,r)));default:return!0}}function G1(e,t){const n=Cc(e);return!!n&&(Q1(n,t)||168===n.kind&&X1(n.expression,t))}function X1(e,t){return Q1(e,t)||dF(e)&&(t.push(e.name.text),!0)&&X1(e.expression,t)}function Q1(e,t){return zh(e)&&(t.push(qh(e)),!0)}function Y1(e){const t=[],n=Cc(e);if(n&&168===n.kind&&!X1(n.expression,t))return l;t.shift();let r=hX(e);for(;r;){if(!G1(r,t))return l;r=hX(r)}return t.reverse(),t}function Z1(e,t){return vt(e.matchKind,t.matchKind)||At(e.name,t.name)}function e2(e){const t=e.declaration,n=hX(t),r=n&&Cc(n);return{name:e.name,kind:yX(t),kindModifiers:mQ(t),matchKind:W0[e.matchKind],isCaseSensitive:e.isCaseSensitive,fileName:e.fileName,textSpan:FQ(t),containerName:r?r.text:"",containerKind:r?yX(n):""}}i(V1,{getNavigateToItems:()=>W1});var t2={};i(t2,{getNavigationBarItems:()=>u2,getNavigationTree:()=>d2});var n2,r2,i2,o2,a2=/\s+/g,s2=150,c2=[],l2=[],_2=[];function u2(e,t){n2=t,r2=e;try{return E(function(e){const t=[];return function e(n){if(function(e){if(e.children)return!0;switch(m2(e)){case 264:case 232:case 267:case 265:case 268:case 308:case 266:case 347:case 339:return!0;case 220:case 263:case 219:return t(e);default:return!1}function t(e){if(!e.node.body)return!1;switch(m2(e.parent)){case 269:case 308:case 175:case 177:return!0;default:return!1}}}(n)&&(t.push(n),n.children))for(const t of n.children)e(t)}(e),t}(h2(e)),J2)}finally{p2()}}function d2(e,t){n2=t,r2=e;try{return B2(h2(e))}finally{p2()}}function p2(){r2=void 0,n2=void 0,c2=[],i2=void 0,_2=[]}function f2(e){return X2(e.getText(r2))}function m2(e){return e.node.kind}function g2(e,t){e.children?e.children.push(t):e.children=[t]}function h2(e){un.assert(!c2.length);const t={node:e,name:void 0,additionalNodes:void 0,parent:void 0,children:void 0,indent:0};i2=t;for(const t of e.statements)D2(t);return T2(),un.assert(!i2&&!c2.length),t}function y2(e,t){g2(i2,v2(e,t))}function v2(e,t){return{node:e,name:t||(_u(e)||V_(e)?Cc(e):void 0),additionalNodes:void 0,parent:i2,children:void 0,indent:i2.indent+1}}function b2(e){o2||(o2=new Map),o2.set(e,!0)}function x2(e){for(let t=0;t0;t--)S2(e,n[t]);return[n.length-1,n[0]]}function S2(e,t){const n=v2(e,t);g2(i2,n),c2.push(i2),l2.push(o2),o2=void 0,i2=n}function T2(){i2.children&&(F2(i2.children,i2),L2(i2.children)),i2=c2.pop(),o2=l2.pop()}function C2(e,t,n){S2(e,n),D2(t),T2()}function w2(e){e.initializer&&function(e){switch(e.kind){case 220:case 219:case 232:return!0;default:return!1}}(e.initializer)?(S2(e),XI(e.initializer,D2),T2()):C2(e,e.initializer)}function N2(e){const t=Cc(e);if(void 0===t)return!1;if(kD(t)){const e=t.expression;return ab(e)||zN(e)||jh(e)}return!!t}function D2(e){if(n2.throwIfCancellationRequested(),e&&!El(e))switch(e.kind){case 177:const t=e;C2(t,t.body);for(const e of t.parameters)Zs(e,t)&&y2(e);break;case 175:case 178:case 179:case 174:N2(e)&&C2(e,e.body);break;case 173:N2(e)&&w2(e);break;case 172:N2(e)&&y2(e);break;case 274:const n=e;n.name&&y2(n.name);const{namedBindings:r}=n;if(r)if(275===r.kind)y2(r);else for(const e of r.elements)y2(e);break;case 305:C2(e,e.name);break;case 306:const{expression:i}=e;aD(i)?y2(e,i):y2(e);break;case 209:case 304:case 261:{const t=e;k_(t.name)?D2(t.name):w2(t);break}case 263:const o=e.name;o&&aD(o)&&b2(o.text),C2(e,e.body);break;case 220:case 219:C2(e,e.body);break;case 267:S2(e);for(const t of e.members)W2(t)||y2(t);T2();break;case 264:case 232:case 265:S2(e);for(const t of e.members)D2(t);T2();break;case 268:C2(e,V2(e).body);break;case 278:{const t=e.expression,n=uF(t)||fF(t)?t:bF(t)||vF(t)?t.body:void 0;n?(S2(e),D2(n),T2()):y2(e);break}case 282:case 272:case 182:case 180:case 181:case 266:y2(e);break;case 214:case 227:{const t=tg(e);switch(t){case 1:case 2:return void C2(e,e.right);case 6:case 3:{const n=e,r=n.left,i=3===t?r.expression:r;let o,a=0;return aD(i.expression)?(b2(i.expression.text),o=i.expression):[a,o]=k2(n,i.expression),6===t?uF(n.right)&&n.right.properties.length>0&&(S2(n,o),XI(n.right,D2),T2()):vF(n.right)||bF(n.right)?C2(e,n.right,o):(S2(n,o),C2(e,n.right,r.name),T2()),void x2(a)}case 7:case 9:{const n=e,r=7===t?n.arguments[0]:n.arguments[0].expression,i=n.arguments[1],[o,a]=k2(e,r);return S2(e,a),S2(e,xI(mw.createIdentifier(i.text),i)),D2(e.arguments[2]),T2(),T2(),void x2(o)}case 5:{const t=e,n=t.left,r=n.expression;if(aD(r)&&"prototype"!==_g(n)&&o2&&o2.has(r.text))return void(vF(t.right)||bF(t.right)?C2(e,t.right,r):og(n)&&(S2(t,r),C2(t.left,t.right,cg(n)),T2()));break}case 4:case 0:case 8:break;default:un.assertNever(t)}}default:Du(e)&&d(e.jsDoc,e=>{d(e.tags,e=>{Dg(e)&&y2(e)})}),XI(e,D2)}}function F2(e,t){const n=new Map;D(e,(e,r)=>{const i=e.name||Cc(e.node),o=i&&f2(i);if(!o)return!0;const a=n.get(o);if(!a)return n.set(o,e),!0;if(a instanceof Array){for(const n of a)if(P2(n,e,r,t))return!1;return a.push(e),!0}{const i=a;return!P2(i,e,r,t)&&(n.set(o,[i,e]),!0)}})}var E2={5:!0,3:!0,7:!0,9:!0,0:!1,1:!1,2:!1,8:!1,6:!0,4:!1};function P2(e,t,n,r){return!!function(e,t,n,r){function i(e){return vF(e)||uE(e)||lE(e)}const o=NF(t.node)||fF(t.node)?tg(t.node):0,a=NF(e.node)||fF(e.node)?tg(e.node):0;if(E2[o]&&E2[a]||i(e.node)&&E2[o]||i(t.node)&&E2[a]||dE(e.node)&&A2(e.node)&&E2[o]||dE(t.node)&&E2[a]||dE(e.node)&&A2(e.node)&&i(t.node)||dE(t.node)&&i(e.node)&&A2(e.node)){let o=e.additionalNodes&&ye(e.additionalNodes)||e.node;if(!dE(e.node)&&!dE(t.node)||i(e.node)||i(t.node)){const n=i(e.node)?e.node:i(t.node)?t.node:void 0;if(void 0!==n){const r=v2(xI(mw.createConstructorDeclaration(void 0,[],void 0),n));r.indent=e.indent+1,r.children=e.node===n?e.children:t.children,e.children=e.node===n?K([r],t.children||[t]):K(e.children||[{...e}],[r])}else(e.children||t.children)&&(e.children=K(e.children||[{...e}],t.children||[t]),e.children&&(F2(e.children,e),L2(e.children)));o=e.node=xI(mw.createClassDeclaration(void 0,e.name||mw.createIdentifier("__class__"),void 0,void 0,[]),e.node)}else e.children=K(e.children,t.children),e.children&&F2(e.children,e);const a=t.node;return r.children[n-1].node.end===o.end?xI(o,{pos:o.pos,end:a.end}):(e.additionalNodes||(e.additionalNodes=[]),e.additionalNodes.push(xI(mw.createClassDeclaration(void 0,e.name||mw.createIdentifier("__class__"),void 0,void 0,[]),t.node))),!0}return 0!==o}(e,t,n,r)||!!function(e,t,n){if(e.kind!==t.kind||e.parent!==t.parent&&(!I2(e,n)||!I2(t,n)))return!1;switch(e.kind){case 173:case 175:case 178:case 179:return Dv(e)===Dv(t);case 268:return O2(e,t)&&U2(e)===U2(t);default:return!0}}(e.node,t.node,r)&&(o=t,(i=e).additionalNodes=i.additionalNodes||[],i.additionalNodes.push(o.node),o.additionalNodes&&i.additionalNodes.push(...o.additionalNodes),i.children=K(i.children,o.children),i.children&&(F2(i.children,i),L2(i.children)),!0);var i,o}function A2(e){return!!(16&e.flags)}function I2(e,t){if(void 0===e.parent)return!1;const n=hE(e.parent)?e.parent.parent:e.parent;return n===t.node||T(t.additionalNodes,n)}function O2(e,t){return e.body&&t.body?e.body.kind===t.body.kind&&(268!==e.body.kind||O2(e.body,t.body)):e.body===t.body}function L2(e){e.sort(j2)}function j2(e,t){return At(M2(e.node),M2(t.node))||vt(m2(e),m2(t))}function M2(e){if(268===e.kind)return q2(e);const t=Cc(e);if(t&&t_(t)){const e=Jh(t);return e&&mc(e)}switch(e.kind){case 219:case 220:case 232:return K2(e);default:return}}function R2(e,t){if(268===e.kind)return X2(q2(e));if(t){const e=aD(t)?t.text:pF(t)?`[${f2(t.argumentExpression)}]`:f2(t);if(e.length>0)return X2(e)}switch(e.kind){case 308:const t=e;return rO(t)?`"${xy(Fo(US(Jo(t.fileName))))}"`:"";case 278:return AE(e)&&e.isExportEquals?"export=":"default";case 220:case 263:case 219:case 264:case 232:return 2048&zv(e)?"default":K2(e);case 177:return"constructor";case 181:return"new()";case 180:return"()";case 182:return"[]";default:return""}}function B2(e){return{text:R2(e.node,e.name),kind:yX(e.node),kindModifiers:H2(e.node),spans:z2(e),nameSpan:e.name&&$2(e.name),childItems:E(e.children,B2)}}function J2(e){return{text:R2(e.node,e.name),kind:yX(e.node),kindModifiers:H2(e.node),spans:z2(e),childItems:E(e.children,function(e){return{text:R2(e.node,e.name),kind:yX(e.node),kindModifiers:mQ(e.node),spans:z2(e),childItems:_2,indent:0,bolded:!1,grayed:!1}})||_2,indent:e.indent,bolded:!1,grayed:!1}}function z2(e){const t=[$2(e.node)];if(e.additionalNodes)for(const n of e.additionalNodes)t.push($2(n));return t}function q2(e){return cp(e)?Xd(e.name):U2(e)}function U2(e){const t=[qh(e.name)];for(;e.body&&268===e.body.kind;)e=e.body,t.push(qh(e.name));return t.join(".")}function V2(e){return e.body&&gE(e.body)?V2(e.body):e}function W2(e){return!e.name||168===e.name.kind}function $2(e){return 308===e.kind?AQ(e):FQ(e,r2)}function H2(e){return e.parent&&261===e.parent.kind&&(e=e.parent),mQ(e)}function K2(e){const{parent:t}=e;if(e.name&&sd(e.name)>0)return X2(Ap(e.name));if(lE(t))return X2(Ap(t.name));if(NF(t)&&64===t.operatorToken.kind)return f2(t.left).replace(a2,"");if(rP(t))return f2(t.name);if(2048&zv(e))return"default";if(u_(e))return"";if(fF(t)){let e=G2(t.expression);if(void 0!==e)return e=X2(e),e.length>s2?`${e} callback`:`${e}(${X2(B(t.arguments,e=>ju(e)||M_(e)?e.getText(r2):void 0).join(", "))}) callback`}return""}function G2(e){if(aD(e))return e.text;if(dF(e)){const t=G2(e.expression),n=e.name.text;return void 0===t?n:`${t}.${n}`}}function X2(e){return(e=e.length>s2?e.substring(0,s2)+"...":e).replace(/\\?(?:\r?\n|[\r\u2028\u2029])/g,"")}var Q2={};i(Q2,{addExportsInOldFile:()=>E6,addImportsForMovedSymbols:()=>j6,addNewFileToTsconfig:()=>F6,addOrRemoveBracesToArrowFunction:()=>k3,addTargetFileImports:()=>_3,containsJsx:()=>G6,convertArrowFunctionOrFunctionExpression:()=>I3,convertParamsToDestructuredObject:()=>U3,convertStringOrTemplateLiteral:()=>l4,convertToOptionalChainExpression:()=>T4,createNewFileName:()=>H6,doChangeNamedToNamespaceOrDefault:()=>p6,extractSymbol:()=>j4,generateGetAccessorAndSetAccessor:()=>t8,getApplicableRefactors:()=>e6,getEditsForRefactor:()=>t6,getExistingLocals:()=>a3,getIdentifierForNode:()=>l3,getNewStatementsAndRemoveFromOldFile:()=>D6,getStatementsToMove:()=>K6,getUsageInfo:()=>Q6,inferFunctionReturnType:()=>o8,isInImport:()=>e3,isRefactorErrorInfo:()=>s3,refactorKindBeginsWith:()=>c3,registerRefactor:()=>Z2});var Y2=new Map;function Z2(e,t){Y2.set(e,t)}function e6(e,t){return Oe(j(Y2.values(),n=>{var r;return e.cancellationToken&&e.cancellationToken.isCancellationRequested()||!(null==(r=n.kinds)?void 0:r.some(t=>c3(t,e.kind)))?void 0:n.getAvailableActions(e,t)}))}function t6(e,t,n,r){const i=Y2.get(t);return i&&i.getEditsForAction(e,n,r)}var n6="Convert export",r6={name:"Convert default export to named export",description:Vx(_a.Convert_default_export_to_named_export),kind:"refactor.rewrite.export.named"},i6={name:"Convert named export to default export",description:Vx(_a.Convert_named_export_to_default_export),kind:"refactor.rewrite.export.default"};function o6(e,t=!0){const{file:n,program:r}=e,i=jZ(e),o=HX(n,i.start),a=o.parent&&32&zv(o.parent)&&t?o.parent:cY(o,n,i);if(!a||!(sP(a.parent)||hE(a.parent)&&cp(a.parent.parent)))return{error:Vx(_a.Could_not_find_export_statement)};const s=r.getTypeChecker(),c=function(e,t){if(sP(e))return e.symbol;const n=e.parent.symbol;return n.valueDeclaration&&fp(n.valueDeclaration)?t.getMergedSymbol(n):n}(a.parent,s),l=zv(a)||(AE(a)&&!a.isExportEquals?2080:0),_=!!(2048&l);if(!(32&l)||!_&&c.exports.has("default"))return{error:Vx(_a.This_file_already_has_a_default_export)};const u=e=>aD(e)&&s.getSymbolAtLocation(e)?void 0:{error:Vx(_a.Can_only_convert_named_export)};switch(a.kind){case 263:case 264:case 265:case 267:case 266:case 268:{const e=a;if(!e.name)return;return u(e.name)||{exportNode:e,exportName:e.name,wasDefault:_,exportingModuleSymbol:c}}case 244:{const e=a;if(!(2&e.declarationList.flags)||1!==e.declarationList.declarations.length)return;const t=ge(e.declarationList.declarations);if(!t.initializer)return;return un.assert(!_,"Can't have a default flag here"),u(t.name)||{exportNode:e,exportName:t.name,wasDefault:_,exportingModuleSymbol:c}}case 278:{const e=a;if(e.isExportEquals)return;return u(e.expression)||{exportNode:e,exportName:e.expression,wasDefault:_,exportingModuleSymbol:c}}default:return}}function a6(e,t){return mw.createImportSpecifier(!1,e===t?void 0:mw.createIdentifier(e),mw.createIdentifier(t))}function s6(e,t){return mw.createExportSpecifier(!1,e===t?void 0:mw.createIdentifier(e),mw.createIdentifier(t))}Z2(n6,{kinds:[r6.kind,i6.kind],getAvailableActions:function(e){const t=o6(e,"invoked"===e.triggerReason);if(!t)return l;if(!s3(t)){const e=t.wasDefault?r6:i6;return[{name:n6,description:e.description,actions:[e]}]}return e.preferences.provideRefactorNotApplicableReason?[{name:n6,description:Vx(_a.Convert_default_export_to_named_export),actions:[{...r6,notApplicableReason:t.error},{...i6,notApplicableReason:t.error}]}]:l},getEditsForAction:function(e,t){un.assert(t===r6.name||t===i6.name,"Unexpected action name");const n=o6(e);un.assert(n&&!s3(n),"Expected applicable refactor info");const r=jue.ChangeTracker.with(e,t=>function(e,t,n,r,i){(function(e,{wasDefault:t,exportNode:n,exportName:r},i,o){if(t)if(AE(n)&&!n.isExportEquals){const t=n.expression,r=s6(t.text,t.text);i.replaceNode(e,n,mw.createExportDeclaration(void 0,!1,mw.createNamedExports([r])))}else i.delete(e,un.checkDefined(_Y(n,90),"Should find a default keyword in modifier list"));else{const t=un.checkDefined(_Y(n,95),"Should find an export keyword in modifier list");switch(n.kind){case 263:case 264:case 265:i.insertNodeAfter(e,t,mw.createToken(90));break;case 244:const a=ge(n.declarationList.declarations);if(!gce.Core.isSymbolReferencedInFile(r,o,e)&&!a.type){i.replaceNode(e,n,mw.createExportDefault(un.checkDefined(a.initializer,"Initializer was previously known to be present")));break}case 267:case 266:case 268:i.deleteModifier(e,t),i.insertNodeAfter(e,n,mw.createExportDefault(mw.createIdentifier(r.text)));break;default:un.fail(`Unexpected exportNode kind ${n.kind}`)}}})(e,n,r,t.getTypeChecker()),function(e,{wasDefault:t,exportName:n,exportingModuleSymbol:r},i,o){const a=e.getTypeChecker(),s=un.checkDefined(a.getSymbolAtLocation(n),"Export name should resolve to a symbol");gce.Core.eachExportReference(e.getSourceFiles(),a,o,s,r,n.text,t,e=>{if(n===e)return;const r=e.getSourceFile();t?function(e,t,n,r){const{parent:i}=t;switch(i.kind){case 212:n.replaceNode(e,t,mw.createIdentifier(r));break;case 277:case 282:{const t=i;n.replaceNode(e,t,a6(r,t.name.text));break}case 274:{const o=i;un.assert(o.name===t,"Import clause name should match provided ref");const a=a6(r,t.text),{namedBindings:s}=o;if(s)if(275===s.kind){n.deleteRange(e,{pos:t.getStart(e),end:s.getStart(e)});const i=UN(o.parent.moduleSpecifier)?eY(o.parent.moduleSpecifier,e):1,a=QQ(void 0,[a6(r,t.text)],o.parent.moduleSpecifier,i);n.insertNodeAfter(e,o.parent,a)}else n.delete(e,t),n.insertNodeAtEndOfList(e,s.elements,a);else n.replaceNode(e,t,mw.createNamedImports([a]));break}case 206:const o=i;n.replaceNode(e,i,mw.createImportTypeNode(o.argument,o.attributes,mw.createIdentifier(r),o.typeArguments,o.isTypeOf));break;default:un.failBadSyntaxKind(i)}}(r,e,i,n.text):function(e,t,n){const r=t.parent;switch(r.kind){case 212:n.replaceNode(e,t,mw.createIdentifier("default"));break;case 277:{const t=mw.createIdentifier(r.name.text);1===r.parent.elements.length?n.replaceNode(e,r.parent,t):(n.delete(e,r),n.insertNodeBefore(e,r.parent,t));break}case 282:n.replaceNode(e,r,s6("default",r.name.text));break;default:un.assertNever(r,`Unexpected parent kind ${r.kind}`)}}(r,e,i)})}(t,n,r,i)}(e.file,e.program,n,t,e.cancellationToken));return{edits:r,renameFilename:void 0,renameLocation:void 0}}});var c6="Convert import",l6={0:{name:"Convert namespace import to named imports",description:Vx(_a.Convert_namespace_import_to_named_imports),kind:"refactor.rewrite.import.named"},2:{name:"Convert named imports to namespace import",description:Vx(_a.Convert_named_imports_to_namespace_import),kind:"refactor.rewrite.import.namespace"},1:{name:"Convert named imports to default import",description:Vx(_a.Convert_named_imports_to_default_import),kind:"refactor.rewrite.import.default"}};function _6(e,t=!0){const{file:n}=e,r=jZ(e),i=HX(n,r.start),o=t?uc(i,en(xE,XP)):cY(i,n,r);if(void 0===o||!xE(o)&&!XP(o))return{error:"Selection is not an import declaration."};const a=r.start+r.length,s=QX(o,o.parent,n);if(s&&a>s.getStart())return;const{importClause:c}=o;return c?c.namedBindings?275===c.namedBindings.kind?{convertTo:0,import:c.namedBindings}:u6(e.program,c)?{convertTo:1,import:c.namedBindings}:{convertTo:2,import:c.namedBindings}:{error:Vx(_a.Could_not_find_namespace_import_or_named_imports)}:{error:Vx(_a.Could_not_find_import_clause)}}function u6(e,t){return Tk(e.getCompilerOptions())&&function(e,t){const n=t.resolveExternalModuleName(e);if(!n)return!1;return n!==t.resolveExternalModuleSymbol(n)}(t.parent.moduleSpecifier,e.getTypeChecker())}function d6(e){return dF(e)?e.name:e.right}function p6(e,t,n,r,i=u6(t,r.parent)){const o=t.getTypeChecker(),a=r.parent.parent,{moduleSpecifier:s}=a,c=new Set;r.elements.forEach(e=>{const t=o.getSymbolAtLocation(e.name);t&&c.add(t)});const l=s&&UN(s)?UZ(s.text,99):"module",_=r.elements.some(function(t){return!!gce.Core.eachSymbolReferenceInFile(t.name,o,e,e=>{const t=o.resolveName(l,e,-1,!0);return!!t&&(!c.has(t)||LE(e.parent))})})?YY(l,e):l,u=new Set;for(const t of r.elements){const r=t.propertyName||t.name;gce.Core.eachSymbolReferenceInFile(t.name,o,e,i=>{const o=11===r.kind?mw.createElementAccessExpression(mw.createIdentifier(_),mw.cloneNode(r)):mw.createPropertyAccessExpression(mw.createIdentifier(_),mw.cloneNode(r));iP(i.parent)?n.replaceNode(e,i.parent,mw.createPropertyAssignment(i.text,o)):LE(i.parent)?u.add(t):n.replaceNode(e,i,o)})}if(n.replaceNode(e,r,i?mw.createIdentifier(_):mw.createNamespaceImport(mw.createIdentifier(_))),u.size&&xE(a)){const t=Oe(u.values(),e=>mw.createImportSpecifier(e.isTypeOnly,e.propertyName&&mw.cloneNode(e.propertyName),mw.cloneNode(e.name)));n.insertNodeAfter(e,r.parent.parent,f6(a,void 0,t))}}function f6(e,t,n){return mw.createImportDeclaration(void 0,m6(t,n),e.moduleSpecifier,void 0)}function m6(e,t){return mw.createImportClause(void 0,e,t&&t.length?mw.createNamedImports(t):void 0)}Z2(c6,{kinds:Ae(l6).map(e=>e.kind),getAvailableActions:function(e){const t=_6(e,"invoked"===e.triggerReason);if(!t)return l;if(!s3(t)){const e=l6[t.convertTo];return[{name:c6,description:e.description,actions:[e]}]}return e.preferences.provideRefactorNotApplicableReason?Ae(l6).map(e=>({name:c6,description:e.description,actions:[{...e,notApplicableReason:t.error}]})):l},getEditsForAction:function(e,t){un.assert($(Ae(l6),e=>e.name===t),"Unexpected action name");const n=_6(e);un.assert(n&&!s3(n),"Expected applicable refactor info");const r=jue.ChangeTracker.with(e,t=>function(e,t,n,r){const i=t.getTypeChecker();0===r.convertTo?function(e,t,n,r,i){let o=!1;const a=[],s=new Map;gce.Core.eachSymbolReferenceInFile(r.name,t,e,e=>{if(I_(e.parent)){const r=d6(e.parent).text;t.resolveName(r,e,-1,!0)&&s.set(r,!0),un.assert((dF(n=e.parent)?n.expression:n.left)===e,"Parent expression should match id"),a.push(e.parent)}else o=!0;var n});const c=new Map;for(const t of a){const r=d6(t).text;let i=c.get(r);void 0===i&&c.set(r,i=s.has(r)?YY(r,e):r),n.replaceNode(e,t,mw.createIdentifier(i))}const l=[];c.forEach((e,t)=>{l.push(mw.createImportSpecifier(!1,e===t?void 0:mw.createIdentifier(t),mw.createIdentifier(e)))});const _=r.parent.parent;if(o&&!i&&xE(_))n.insertNodeAfter(e,_,f6(_,void 0,l));else{const t=o?mw.createIdentifier(r.name.text):void 0;n.replaceNode(e,r.parent,m6(t,l))}}(e,i,n,r.import,Tk(t.getCompilerOptions())):p6(e,t,n,r.import,1===r.convertTo)}(e.file,e.program,t,n));return{edits:r,renameFilename:void 0,renameLocation:void 0}}});var g6="Extract type",h6={name:"Extract to type alias",description:Vx(_a.Extract_to_type_alias),kind:"refactor.extract.type"},y6={name:"Extract to interface",description:Vx(_a.Extract_to_interface),kind:"refactor.extract.interface"},v6={name:"Extract to typedef",description:Vx(_a.Extract_to_typedef),kind:"refactor.extract.typedef"};function b6(e,t=!0){const{file:n,startPosition:r}=e,i=Fm(n),o=IQ(jZ(e)),a=o.pos===o.end&&t,s=function(e,t,n,r){const i=[()=>HX(e,t),()=>$X(e,t,()=>!0)];for(const t of i){const i=t(),o=NX(i,e,n.pos,n.end),a=uc(i,t=>t.parent&&b_(t)&&!k6(n,t.parent,e)&&(r||o));if(a)return a}}(n,r,o,a);if(!s||!b_(s))return{info:{error:Vx(_a.Selection_is_not_a_valid_type_node)},affectedTextRange:void 0};const c=e.program.getTypeChecker(),_=function(e,t){return uc(e,pu)||(t?uc(e,SP):void 0)}(s,i);if(void 0===_)return{info:{error:Vx(_a.No_type_could_be_extracted_from_this_type_node)},affectedTextRange:void 0};const u=function(e,t){return uc(e,e=>e===t?"quit":!(!KD(e.parent)&&!GD(e.parent)))??e}(s,_);if(!b_(u))return{info:{error:Vx(_a.Selection_is_not_a_valid_type_node)},affectedTextRange:void 0};const d=[];(KD(u.parent)||GD(u.parent))&&o.end>s.end&&se(d,u.parent.types.filter(e=>NX(e,n,o.pos,o.end)));const p=d.length>1?d:u,{typeParameters:f,affectedTextRange:m}=function(e,t,n,r){const i=[],o=Ye(t),a={pos:o[0].getStart(r),end:o[o.length-1].end};for(const e of o)if(s(e))return{typeParameters:void 0,affectedTextRange:void 0};return{typeParameters:i,affectedTextRange:a};function s(t){if(RD(t)){if(aD(t.typeName)){const o=t.typeName,s=e.resolveName(o.text,o,262144,!0);for(const e of(null==s?void 0:s.declarations)||l)if(SD(e)&&e.getSourceFile()===r){if(e.name.escapedText===o.escapedText&&k6(e,a,r))return!0;if(k6(n,e,r)&&!k6(a,e,r)){ce(i,e);break}}}}else if(QD(t)){const e=uc(t,e=>XD(e)&&k6(e.extendsType,t,r));if(!e||!k6(a,e,r))return!0}else if(MD(t)||ZD(t)){const e=uc(t.parent,r_);if(e&&e.type&&k6(e.type,t,r)&&!k6(a,e,r))return!0}else if(zD(t))if(aD(t.exprName)){const i=e.resolveName(t.exprName.text,t.exprName,111551,!1);if((null==i?void 0:i.valueDeclaration)&&k6(n,i.valueDeclaration,r)&&!k6(a,i.valueDeclaration,r))return!0}else if(lv(t.exprName.left)&&!k6(a,t.parent,r))return!0;return r&&VD(t)&&za(r,t.pos).line===za(r,t.end).line&&xw(t,1),XI(t,s)}}(c,p,_,n);return f?{info:{isJS:i,selection:p,enclosingNode:_,typeParameters:f,typeElements:x6(c,p)},affectedTextRange:m}:{info:{error:Vx(_a.No_type_could_be_extracted_from_this_type_node)},affectedTextRange:void 0}}function x6(e,t){if(t){if(Qe(t)){const n=[];for(const r of t){const t=x6(e,r);if(!t)return;se(n,t)}return n}if(GD(t)){const n=[],r=new Set;for(const i of t.types){const t=x6(e,i);if(!t||!t.every(e=>e.name&&bx(r,VQ(e.name))))return;se(n,t)}return n}return YD(t)?x6(e,t.type):qD(t)?t.members:void 0}}function k6(e,t,n){return CX(e,Qa(n.text,t.pos),t.end)}function S6(e){return Qe(e.selection)?{firstTypeNode:e.selection[0],lastTypeNode:e.selection[e.selection.length-1],newTypeNode:KD(e.selection[0].parent)?mw.createUnionTypeNode(e.selection):mw.createIntersectionTypeNode(e.selection)}:{firstTypeNode:e.selection,lastTypeNode:e.selection,newTypeNode:e.selection}}Z2(g6,{kinds:[h6.kind,y6.kind,v6.kind],getAvailableActions:function(e){const{info:t,affectedTextRange:n}=b6(e,"invoked"===e.triggerReason);return t?s3(t)?e.preferences.provideRefactorNotApplicableReason?[{name:g6,description:Vx(_a.Extract_type),actions:[{...v6,notApplicableReason:t.error},{...h6,notApplicableReason:t.error},{...y6,notApplicableReason:t.error}]}]:l:[{name:g6,description:Vx(_a.Extract_type),actions:t.isJS?[v6]:ie([h6],t.typeElements&&y6)}].map(t=>({...t,actions:t.actions.map(t=>({...t,range:n?{start:{line:za(e.file,n.pos).line,offset:za(e.file,n.pos).character},end:{line:za(e.file,n.end).line,offset:za(e.file,n.end).character}}:void 0}))})):l},getEditsForAction:function(e,t){const{file:n}=e,{info:r}=b6(e);un.assert(r&&!s3(r),"Expected to find a range to extract");const i=YY("NewType",n),o=jue.ChangeTracker.with(e,o=>{switch(t){case h6.name:return un.assert(!r.isJS,"Invalid actionName/JS combo"),function(e,t,n,r){const{enclosingNode:i,typeParameters:o}=r,{firstTypeNode:a,lastTypeNode:s,newTypeNode:c}=S6(r),l=mw.createTypeAliasDeclaration(void 0,n,o.map(e=>mw.updateTypeParameterDeclaration(e,e.modifiers,e.name,e.constraint,void 0)),c);e.insertNodeBefore(t,i,Gw(l),!0),e.replaceNodeRange(t,a,s,mw.createTypeReferenceNode(n,o.map(e=>mw.createTypeReferenceNode(e.name,void 0))),{leadingTriviaOption:jue.LeadingTriviaOption.Exclude,trailingTriviaOption:jue.TrailingTriviaOption.ExcludeWhitespace})}(o,n,i,r);case v6.name:return un.assert(r.isJS,"Invalid actionName/JS combo"),function(e,t,n,r,i){var o;Ye(i.selection).forEach(e=>{xw(e,7168)});const{enclosingNode:a,typeParameters:s}=i,{firstTypeNode:c,lastTypeNode:l,newTypeNode:_}=S6(i),u=mw.createJSDocTypedefTag(mw.createIdentifier("typedef"),mw.createJSDocTypeExpression(_),mw.createIdentifier(r)),p=[];d(s,e=>{const t=ul(e),n=mw.createTypeParameterDeclaration(void 0,e.name),r=mw.createJSDocTemplateTag(mw.createIdentifier("template"),t&&nt(t,lP),[n]);p.push(r)});const f=mw.createJSDocComment(void 0,mw.createNodeArray(K(p,[u])));if(SP(a)){const r=a.getStart(n),i=RY(t.host,null==(o=t.formatContext)?void 0:o.options);e.insertNodeAt(n,a.getStart(n),f,{suffix:i+i+n.text.slice(XY(n.text,r-1),r)})}else e.insertNodeBefore(n,a,f,!0);e.replaceNodeRange(n,c,l,mw.createTypeReferenceNode(r,s.map(e=>mw.createTypeReferenceNode(e.name,void 0))))}(o,e,n,i,r);case y6.name:return un.assert(!r.isJS&&!!r.typeElements,"Invalid actionName/JS combo"),function(e,t,n,r){var i;const{enclosingNode:o,typeParameters:a,typeElements:s}=r,c=mw.createInterfaceDeclaration(void 0,n,a,void 0,s);xI(c,null==(i=s[0])?void 0:i.parent),e.insertNodeBefore(t,o,Gw(c),!0);const{firstTypeNode:l,lastTypeNode:_}=S6(r);e.replaceNodeRange(t,l,_,mw.createTypeReferenceNode(n,a.map(e=>mw.createTypeReferenceNode(e.name,void 0))),{leadingTriviaOption:jue.LeadingTriviaOption.Exclude,trailingTriviaOption:jue.TrailingTriviaOption.ExcludeWhitespace})}(o,n,i,r);default:un.fail("Unexpected action name")}}),a=n.fileName;return{edits:o,renameFilename:a,renameLocation:ZY(o,a,i,!1)}}});var T6="Move to file",C6=Vx(_a.Move_to_file),w6={name:"Move to file",description:C6,kind:"refactor.move.file"};function N6(e){return{edits:[],renameFilename:void 0,renameLocation:void 0,notApplicableReason:e}}function D6(e,t,n,r,i,o,a,s,c,l){const _=o.getTypeChecker(),d=cn(e.statements,pf),p=!e0(t.fileName,o,a,!!e.commonJsModuleIndicator),m=tY(e,s);j6(n.oldFileImportsFromTargetFile,t.fileName,l,o),function(e,t,n,r){for(const i of e.statements)T(t,i)||O6(i,e=>{L6(e,e=>{n.has(e.symbol)&&r.removeExistingImport(e)})})}(e,i.all,n.unusedImportsFromOldFile,l),l.writeFixes(r,m),function(e,t,n){for(const{first:r,afterLast:i}of t)n.deleteNodeRangeExcludingEnd(e,r,i)}(e,i.ranges,r),function(e,t,n,r,i,o,a){const s=t.getTypeChecker();for(const c of t.getSourceFiles())if(c!==r)for(const l of c.statements)O6(l,_=>{if(s.getSymbolAtLocation(273===(u=_).kind?u.moduleSpecifier:272===u.kind?u.moduleReference.expression:u.initializer.arguments[0])!==r.symbol)return;var u;const d=e=>{const t=lF(e.parent)?sY(s,e.parent):ox(s.getSymbolAtLocation(e),s);return!!t&&i.has(t)};R6(c,_,e,d);const p=Mo(Do(Bo(r.fileName,t.getCurrentDirectory())),o);if(0===wt(!t.useCaseSensitiveFileNames())(p,c.fileName))return;const f=nB.getModuleSpecifier(t.getCompilerOptions(),c,c.fileName,p,KQ(t,n)),m=U6(_,YQ(f,a),d);m&&e.insertNodeAfter(c,l,m);const g=P6(_);g&&A6(e,c,s,i,f,g,_,a)})}(r,o,a,e,n.movedSymbols,t.fileName,m),E6(e,n.targetFileImportsFromOldFile,r,p),_3(e,n.oldImportsNeededByTargetFile,n.targetFileImportsFromOldFile,_,o,c),!Dm(t)&&d.length&&r.insertStatementsInNewFile(t.fileName,d,e),c.writeFixes(r,m);const g=function(e,t,n,r){return O(t,t=>{if(B6(t)&&!M6(e,t,r)&&Z6(t,e=>{var t;return n.includes(un.checkDefined(null==(t=tt(e,au))?void 0:t.symbol))})){const e=function(e,t){return t?[J6(e)]:function(e){return[e,...q6(e).map(z6)]}(e)}(RC(t),r);if(e)return e}return RC(t)})}(e,i.all,Oe(n.oldFileImportsFromTargetFile.keys()),p);Dm(t)&&t.statements.length>0?function(e,t,n,r,i){var o;const a=new Set,s=null==(o=r.symbol)?void 0:o.exports;if(s){const n=t.getTypeChecker(),o=new Map;for(const e of i.all)B6(e)&&Nv(e,32)&&Z6(e,e=>{var t;const n=f(au(e)?null==(t=s.get(e.symbol.escapedName))?void 0:t.declarations:void 0,e=>IE(e)?e:LE(e)?tt(e.parent.parent,IE):void 0);n&&n.moduleSpecifier&&o.set(n,(o.get(n)||new Set).add(e))});for(const[t,i]of Oe(o))if(t.exportClause&&OE(t.exportClause)&&u(t.exportClause.elements)){const o=t.exportClause.elements,s=N(o,e=>void 0===b(ox(e.symbol,n).declarations,e=>n3(e)&&i.has(e)));if(0===u(s)){e.deleteNode(r,t),a.add(t);continue}u(s)IE(e)&&!!e.moduleSpecifier&&!a.has(e));c?e.insertNodesBefore(r,c,n,!0):e.insertNodesAfter(r,r.statements[r.statements.length-1],n)}(r,o,g,t,i):Dm(t)?r.insertNodesAtEndOfFile(t,g,!1):r.insertStatementsInNewFile(t.fileName,c.hasFixes()?[4,...g]:g,e)}function F6(e,t,n,r,i){const o=e.getCompilerOptions().configFile;if(!o)return;const a=Jo(jo(n,"..",r)),s=oa(o.fileName,a,i),c=o.statements[0]&&tt(o.statements[0].expression,uF),l=c&&b(c.properties,e=>rP(e)&&UN(e.name)&&"files"===e.name.text);l&&_F(l.initializer)&&t.insertNodeInListAfter(o,ve(l.initializer.elements),mw.createStringLiteral(s),l.initializer.elements)}function E6(e,t,n,r){const i=JQ();t.forEach((t,o)=>{if(o.declarations)for(const t of o.declarations){if(!n3(t))continue;const o=V6(t);if(!o)continue;const a=W6(t);i(a)&&$6(e,a,o,n,r)}})}function P6(e){switch(e.kind){case 273:return e.importClause&&e.importClause.namedBindings&&275===e.importClause.namedBindings.kind?e.importClause.namedBindings.name:void 0;case 272:return e.name;case 261:return tt(e.name,aD);default:return un.assertNever(e,`Unexpected node kind ${e.kind}`)}}function A6(e,t,n,r,i,o,a,s){const c=UZ(i,99);let l=!1;const _=[];if(gce.Core.eachSymbolReferenceInFile(o,n,t,e=>{dF(e.parent)&&(l=l||!!n.resolveName(c,e,-1,!0),r.has(n.getSymbolAtLocation(e.parent.name))&&_.push(e))}),_.length){const n=l?YY(c,t):c;for(const r of _)e.replaceNode(t,r,mw.createIdentifier(n));e.insertNodeAfter(t,a,function(e,t,n,r){const i=mw.createIdentifier(t),o=YQ(n,r);switch(e.kind){case 273:return mw.createImportDeclaration(void 0,mw.createImportClause(void 0,void 0,mw.createNamespaceImport(i)),o,void 0);case 272:return mw.createImportEqualsDeclaration(void 0,!1,i,mw.createExternalModuleReference(o));case 261:return mw.createVariableDeclaration(i,void 0,void 0,I6(o));default:return un.assertNever(e,`Unexpected node kind ${e.kind}`)}}(a,c,i,s))}}function I6(e){return mw.createCallExpression(mw.createIdentifier("require"),void 0,[e])}function O6(e,t){if(xE(e))UN(e.moduleSpecifier)&&t(e);else if(bE(e))JE(e.moduleReference)&&ju(e.moduleReference.expression)&&t(e);else if(WF(e))for(const n of e.declarationList.declarations)n.initializer&&Lm(n.initializer,!0)&&t(n)}function L6(e,t){var n,r,i,o,a;if(273===e.kind){if((null==(n=e.importClause)?void 0:n.name)&&t(e.importClause),275===(null==(i=null==(r=e.importClause)?void 0:r.namedBindings)?void 0:i.kind)&&t(e.importClause.namedBindings),276===(null==(a=null==(o=e.importClause)?void 0:o.namedBindings)?void 0:a.kind))for(const n of e.importClause.namedBindings.elements)t(n)}else if(272===e.kind)t(e);else if(261===e.kind)if(80===e.name.kind)t(e);else if(207===e.name.kind)for(const n of e.name.elements)aD(n.name)&&t(n)}function j6(e,t,n,r){for(const[i,o]of e){const e=JZ(i,yk(r.getCompilerOptions())),a="default"===i.name&&i.parent?1:0;n.addImportForNonExistentExport(e,t,a,i.flags,o)}}function M6(e,t,n,r){var i;return n?!HF(t)&&Nv(t,32)||!!(r&&e.symbol&&(null==(i=e.symbol.exports)?void 0:i.has(r.escapedText))):!!e.symbol&&!!e.symbol.exports&&q6(t).some(t=>e.symbol.exports.has(fc(t)))}function R6(e,t,n,r){if(273===t.kind&&t.importClause){const{name:i,namedBindings:o}=t.importClause;if((!i||r(i))&&(!o||276===o.kind&&0!==o.elements.length&&o.elements.every(e=>r(e.name))))return n.delete(e,t)}L6(t,t=>{t.name&&aD(t.name)&&r(t.name)&&n.delete(e,t)})}function B6(e){return un.assert(sP(e.parent),"Node parent should be a SourceFile"),i3(e)||WF(e)}function J6(e){const t=kI(e)?K([mw.createModifier(95)],Dc(e)):void 0;switch(e.kind){case 263:return mw.updateFunctionDeclaration(e,t,e.asteriskToken,e.name,e.typeParameters,e.parameters,e.type,e.body);case 264:const n=SI(e)?Nc(e):void 0;return mw.updateClassDeclaration(e,K(n,t),e.name,e.typeParameters,e.heritageClauses,e.members);case 244:return mw.updateVariableStatement(e,t,e.declarationList);case 268:return mw.updateModuleDeclaration(e,t,e.name,e.body);case 267:return mw.updateEnumDeclaration(e,t,e.name,e.members);case 266:return mw.updateTypeAliasDeclaration(e,t,e.name,e.typeParameters,e.type);case 265:return mw.updateInterfaceDeclaration(e,t,e.name,e.typeParameters,e.heritageClauses,e.members);case 272:return mw.updateImportEqualsDeclaration(e,t,e.isTypeOnly,e.name,e.moduleReference);case 245:return un.fail();default:return un.assertNever(e,`Unexpected declaration kind ${e.kind}`)}}function z6(e){return mw.createExpressionStatement(mw.createBinaryExpression(mw.createPropertyAccessExpression(mw.createIdentifier("exports"),mw.createIdentifier(e)),64,mw.createIdentifier(e)))}function q6(e){switch(e.kind){case 263:case 264:return[e.name.text];case 244:return B(e.declarationList.declarations,e=>aD(e.name)?e.name.text:void 0);case 268:case 267:case 266:case 265:case 272:return l;case 245:return un.fail("Can't export an ExpressionStatement");default:return un.assertNever(e,`Unexpected decl kind ${e.kind}`)}}function U6(e,t,n){switch(e.kind){case 273:{const r=e.importClause;if(!r)return;const i=r.name&&n(r.name)?r.name:void 0,o=r.namedBindings&&function(e,t){if(275===e.kind)return t(e.name)?e:void 0;{const n=e.elements.filter(e=>t(e.name));return n.length?mw.createNamedImports(n):void 0}}(r.namedBindings,n);return i||o?mw.createImportDeclaration(void 0,mw.createImportClause(r.phaseModifier,i,o),RC(t),void 0):void 0}case 272:return n(e.name)?e:void 0;case 261:{const r=function(e,t){switch(e.kind){case 80:return t(e)?e:void 0;case 208:return e;case 207:{const n=e.elements.filter(e=>e.propertyName||!aD(e.name)||t(e.name));return n.length?mw.createObjectBindingPattern(n):void 0}}}(e.name,n);return r?function(e,t,n,r=2){return mw.createVariableStatement(void 0,mw.createVariableDeclarationList([mw.createVariableDeclaration(e,void 0,t,n)],r))}(r,e.type,I6(t),e.parent.flags):void 0}default:return un.assertNever(e,`Unexpected import kind ${e.kind}`)}}function V6(e){return HF(e)?tt(e.expression.left.name,aD):tt(e.name,aD)}function W6(e){switch(e.kind){case 261:return e.parent.parent;case 209:return W6(nt(e.parent.parent,e=>lE(e)||lF(e)));default:return e}}function $6(e,t,n,r,i){if(!M6(e,t,i,n))if(i)HF(t)||r.insertExportModifier(e,t);else{const n=q6(t);0!==n.length&&r.insertNodesAfter(e,t,n.map(z6))}}function H6(e,t,n,r){const i=t.getTypeChecker();if(r){const t=Q6(e,r.all,i),s=Do(e.fileName),c=ZS(e.fileName),l=jo(s,function(e,t,n,r){let i=e;for(let o=1;;o++){const a=jo(n,i+t);if(!r.fileExists(a))return i;i=`${e}.${o}`}}((o=t.oldFileImportsFromTargetFile,a=t.movedSymbols,id(o,rY)||id(a,rY)||"newFile"),c,s,n))+c;return l}var o,a;return""}function K6(e){const t=function(e){const{file:t}=e,n=IQ(jZ(e)),{statements:r}=t;let i=k(r,e=>e.end>n.pos);if(-1===i)return;const o=o3(t,r[i]);o&&(i=o.start);let a=k(r,e=>e.end>=n.end,i);-1!==a&&n.end<=r[a].getStart()&&a--;const s=o3(t,r[a]);return s&&(a=s.end),{toMove:r.slice(i,-1===a?r.length:a+1),afterLast:-1===a?void 0:r[a+1]}}(e);if(void 0===t)return;const n=[],r=[],{toMove:i,afterLast:o}=t;return H(i,X6,(e,t)=>{for(let r=e;r!!(2&e.transformFlags))}function X6(e){return!function(e){switch(e.kind){case 273:return!0;case 272:return!Nv(e,32);case 244:return e.declarationList.declarations.every(e=>!!e.initializer&&Lm(e.initializer,!0));default:return!1}}(e)&&!pf(e)}function Q6(e,t,n,r=new Set,i){var o;const a=new Set,s=new Map,c=new Map,l=function(e){if(void 0===e)return;const t=n.getJsxNamespace(e),r=n.resolveName(t,e,1920,!0);return r&&$(r.declarations,e3)?r:void 0}(G6(t));l&&s.set(l,[!1,tt(null==(o=l.declarations)?void 0:o[0],e=>PE(e)||kE(e)||DE(e)||bE(e)||lF(e)||lE(e))]);for(const e of t)Z6(e,e=>{a.add(un.checkDefined(HF(e)?n.getSymbolAtLocation(e.expression.left):e.symbol,"Need a symbol here"))});const _=new Set;for(const o of t)Y6(o,n,i,(t,i)=>{if(!$(t.declarations))return;if(r.has(ox(t,n)))return void _.add(t);const o=b(t.declarations,e3);if(o){const e=s.get(t);s.set(t,[(void 0===e||e)&&i,tt(o,e=>PE(e)||kE(e)||DE(e)||bE(e)||lF(e)||lE(e))])}else!a.has(t)&&v(t.declarations,t=>{return n3(t)&&(lE(n=t)?n.parent.parent.parent:n.parent)===e;var n})&&c.set(t,i)});for(const e of s.keys())_.add(e);const u=new Map;for(const r of e.statements)T(t,r)||(l&&2&r.transformFlags&&_.delete(l),Y6(r,n,i,(e,t)=>{a.has(e)&&u.set(e,t),_.delete(e)}));return{movedSymbols:a,targetFileImportsFromOldFile:c,oldFileImportsFromTargetFile:u,oldImportsNeededByTargetFile:s,unusedImportsFromOldFile:_}}function Y6(e,t,n,r){e.forEachChild(function e(i){if(aD(i)&&!lh(i)){if(n&&!Xb(n,i))return;const e=t.getSymbolAtLocation(i);e&&r(e,bT(i))}else i.forEachChild(e)})}function Z6(e,t){switch(e.kind){case 263:case 264:case 268:case 267:case 266:case 265:case 272:return t(e);case 244:return f(e.declarationList.declarations,e=>r3(e.name,t));case 245:{const{expression:n}=e;return NF(n)&&1===tg(n)?t(e):void 0}}}function e3(e){switch(e.kind){case 272:case 277:case 274:case 275:return!0;case 261:return t3(e);case 209:return lE(e.parent.parent)&&t3(e.parent.parent);default:return!1}}function t3(e){return sP(e.parent.parent.parent)&&!!e.initializer&&Lm(e.initializer,!0)}function n3(e){return i3(e)&&sP(e.parent)||lE(e)&&sP(e.parent.parent.parent)}function r3(e,t){switch(e.kind){case 80:return t(nt(e.parent,e=>lE(e)||lF(e)));case 208:case 207:return f(e.elements,e=>IF(e)?void 0:r3(e.name,t));default:return un.assertNever(e,`Unexpected name kind ${e.kind}`)}}function i3(e){switch(e.kind){case 263:case 264:case 268:case 267:case 266:case 265:case 272:return!0;default:return!1}}function o3(e,t){if(o_(t)){const n=t.symbol.declarations;if(void 0===n||u(n)<=1||!T(n,t))return;const r=n[0],i=n[u(n)-1],o=B(n,t=>vd(t)===e&&pu(t)?t:void 0),a=k(e.statements,e=>e.end>=i.end);return{toMove:o,start:k(e.statements,e=>e.end>=r.end),end:a}}}function a3(e,t,n){const r=new Set;for(const t of e.imports){const e=vg(t);if(xE(e)&&e.importClause&&e.importClause.namedBindings&&EE(e.importClause.namedBindings))for(const t of e.importClause.namedBindings.elements){const e=n.getSymbolAtLocation(t.propertyName||t.name);e&&r.add(ox(e,n))}if(jm(e.parent)&&sF(e.parent.name))for(const t of e.parent.name.elements){const e=n.getSymbolAtLocation(t.propertyName||t.name);e&&r.add(ox(e,n))}}for(const i of t)Y6(i,n,void 0,t=>{const i=ox(t,n);i.valueDeclaration&&vd(i.valueDeclaration).path===e.path&&r.add(i)});return r}function s3(e){return void 0!==e.error}function c3(e,t){return!t||e.substr(0,t.length)===t}function l3(e,t,n,r){return!dF(e)||u_(t)||n.resolveName(e.name.text,e,111551,!1)||sD(e.name)||hc(e.name)?YY(u_(t)?"newProperty":"newLocal",r):e.name.text}function _3(e,t,n,r,i,o){t.forEach(([e,t],n)=>{var i;const a=ox(n,r);r.isUnknownSymbol(a)?o.addVerbatimImport(un.checkDefined(t??uc(null==(i=n.declarations)?void 0:i[0],Cp))):void 0===a.parent?(un.assert(void 0!==t,"expected module symbol to have a declaration"),o.addImportForModuleSymbol(n,e,t)):o.addImportFromExportedSymbol(a,e,t)}),j6(n,e.fileName,o,i)}Z2(T6,{kinds:[w6.kind],getAvailableActions:function(e,t){const n=e.file,r=K6(e);if(!t)return l;if("implicit"===e.triggerReason&&void 0!==e.endPosition){const t=uc(HX(n,e.startPosition),t0),r=uc(HX(n,e.endPosition),t0);if(t&&!sP(t)&&r&&!sP(r))return l}if(e.preferences.allowTextChangesInNewFiles&&r){const e={start:{line:za(n,r.all[0].getStart(n)).line,offset:za(n,r.all[0].getStart(n)).character},end:{line:za(n,ve(r.all).end).line,offset:za(n,ve(r.all).end).character}};return[{name:T6,description:C6,actions:[{...w6,range:e}]}]}return e.preferences.provideRefactorNotApplicableReason?[{name:T6,description:C6,actions:[{...w6,notApplicableReason:Vx(_a.Selection_is_not_a_valid_statement_or_statements)}]}]:l},getEditsForAction:function(e,t,n){un.assert(t===T6,"Wrong refactor invoked");const r=un.checkDefined(K6(e)),{host:i,program:o}=e;un.assert(n,"No interactive refactor arguments available");const a=n.targetFile;if(OS(a)||LS(a)){if(i.fileExists(a)&&void 0===o.getSourceFile(a))return N6(Vx(_a.Cannot_move_statements_to_the_selected_file));const t=jue.ChangeTracker.with(e,t=>function(e,t,n,r,i,o,a,s){const c=r.getTypeChecker(),l=!a.fileExists(n),_=l?n0(n,t.externalModuleIndicator?99:t.commonJsModuleIndicator?1:void 0,r,a):un.checkDefined(r.getSourceFile(n)),u=T7.createImportAdder(t,e.program,e.preferences,e.host),d=T7.createImportAdder(_,e.program,e.preferences,e.host);D6(t,_,Q6(t,i.all,c,l?void 0:a3(_,i.all,c)),o,i,r,a,s,d,u),l&&F6(r,o,t.fileName,n,My(a))}(e,e.file,n.targetFile,e.program,r,t,e.host,e.preferences));return{edits:t,renameFilename:void 0,renameLocation:void 0}}return N6(Vx(_a.Cannot_move_to_file_selected_file_is_invalid))}});var u3="Inline variable",d3=Vx(_a.Inline_variable),p3={name:u3,description:d3,kind:"refactor.inline.variable"};function f3(e,t,n,r){var i,o;const a=r.getTypeChecker(),s=WX(e,t),c=s.parent;if(aD(s)){if(ex(c)&&If(c)&&aD(c.name)){if(1!==(null==(i=a.getMergedSymbol(c.symbol).declarations)?void 0:i.length))return{error:Vx(_a.Variables_with_multiple_declarations_cannot_be_inlined)};if(m3(c))return;const t=g3(c,a,e);return t&&{references:t,declaration:c,replacement:c.initializer}}if(n){let t=a.resolveName(s.text,s,111551,!1);if(t=t&&a.getMergedSymbol(t),1!==(null==(o=null==t?void 0:t.declarations)?void 0:o.length))return{error:Vx(_a.Variables_with_multiple_declarations_cannot_be_inlined)};const n=t.declarations[0];if(!ex(n)||!If(n)||!aD(n.name))return;if(m3(n))return;const r=g3(n,a,e);return r&&{references:r,declaration:n,replacement:n.initializer}}return{error:Vx(_a.Could_not_find_variable_to_inline)}}}function m3(e){return $(nt(e.parent.parent,WF).modifiers,cD)}function g3(e,t,n){const r=[],i=gce.Core.eachSymbolReferenceInFile(e.name,t,n,t=>!(!gce.isWriteAccessForReference(t)||iP(t.parent))||!(!LE(t.parent)&&!AE(t.parent))||!!zD(t.parent)||!!As(e,t.pos)||void r.push(t));return 0===r.length||i?void 0:r}function h3(e,t){t=RC(t);const{parent:n}=e;return V_(n)&&(iy(t){for(const t of a){const r=UN(c)&&aD(t)&&rh(t.parent);r&&qF(r)&&!gF(r.parent.parent)?y3(e,n,r,c):e.replaceNode(n,t,h3(t,c))}e.delete(n,s)})}}});var v3="Move to a new file",b3=Vx(_a.Move_to_a_new_file),x3={name:v3,description:b3,kind:"refactor.move.newFile"};Z2(v3,{kinds:[x3.kind],getAvailableActions:function(e){const t=K6(e),n=e.file;if("implicit"===e.triggerReason&&void 0!==e.endPosition){const t=uc(HX(n,e.startPosition),t0),r=uc(HX(n,e.endPosition),t0);if(t&&!sP(t)&&r&&!sP(r))return l}if(e.preferences.allowTextChangesInNewFiles&&t){const n=e.file,r={start:{line:za(n,t.all[0].getStart(n)).line,offset:za(n,t.all[0].getStart(n)).character},end:{line:za(n,ve(t.all).end).line,offset:za(n,ve(t.all).end).character}};return[{name:v3,description:b3,actions:[{...x3,range:r}]}]}return e.preferences.provideRefactorNotApplicableReason?[{name:v3,description:b3,actions:[{...x3,notApplicableReason:Vx(_a.Selection_is_not_a_valid_statement_or_statements)}]}]:l},getEditsForAction:function(e,t){un.assert(t===v3,"Wrong refactor invoked");const n=un.checkDefined(K6(e)),r=jue.ChangeTracker.with(e,t=>function(e,t,n,r,i,o,a){const s=t.getTypeChecker(),c=Q6(e,n.all,s),l=H6(e,t,i,n),_=n0(l,e.externalModuleIndicator?99:e.commonJsModuleIndicator?1:void 0,t,i),u=T7.createImportAdder(e,o.program,o.preferences,o.host);D6(e,_,c,r,n,t,i,a,T7.createImportAdder(_,o.program,o.preferences,o.host),u),F6(t,r,e.fileName,l,My(i))}(e.file,e.program,n,t,e.host,e,e.preferences));return{edits:r,renameFilename:void 0,renameLocation:void 0}}});var k3={},S3="Convert overload list to single signature",T3=Vx(_a.Convert_overload_list_to_single_signature),C3={name:S3,description:T3,kind:"refactor.rewrite.function.overloadList"};function w3(e){switch(e.kind){case 174:case 175:case 180:case 177:case 181:case 263:return!0}return!1}function N3(e,t,n){const r=uc(HX(e,t),w3);if(!r)return;if(o_(r)&&r.body&&SX(r.body,t))return;const i=n.getTypeChecker(),o=r.symbol;if(!o)return;const a=o.declarations;if(u(a)<=1)return;if(!v(a,t=>vd(t)===e))return;if(!w3(a[0]))return;const s=a[0].kind;if(!v(a,e=>e.kind===s))return;const c=a;if($(c,e=>!!e.typeParameters||$(e.parameters,e=>!!e.modifiers||!aD(e.name))))return;const l=B(c,e=>i.getSignatureFromDeclaration(e));if(u(l)!==u(a))return;const _=i.getReturnTypeOfSignature(l[0]);return v(l,e=>i.getReturnTypeOfSignature(e)===_)?c:void 0}Z2(S3,{kinds:[C3.kind],getEditsForAction:function(e){const{file:t,startPosition:n,program:r}=e,i=N3(t,n,r);if(!i)return;const o=r.getTypeChecker(),a=i[i.length-1];let s=a;switch(a.kind){case 174:s=mw.updateMethodSignature(a,a.modifiers,a.name,a.questionToken,a.typeParameters,c(i),a.type);break;case 175:s=mw.updateMethodDeclaration(a,a.modifiers,a.asteriskToken,a.name,a.questionToken,a.typeParameters,c(i),a.type,a.body);break;case 180:s=mw.updateCallSignature(a,a.typeParameters,c(i),a.type);break;case 177:s=mw.updateConstructorDeclaration(a,a.modifiers,c(i),a.body);break;case 181:s=mw.updateConstructSignature(a,a.typeParameters,c(i),a.type);break;case 263:s=mw.updateFunctionDeclaration(a,a.modifiers,a.asteriskToken,a.name,a.typeParameters,c(i),a.type,a.body);break;default:return un.failBadSyntaxKind(a,"Unhandled signature kind in overload list conversion refactoring")}if(s!==a)return{renameFilename:void 0,renameLocation:void 0,edits:jue.ChangeTracker.with(e,e=>{e.replaceNodeRange(t,i[0],i[i.length-1],s)})};function c(e){const t=e[e.length-1];return o_(t)&&t.body&&(e=e.slice(0,e.length-1)),mw.createNodeArray([mw.createParameterDeclaration(void 0,mw.createToken(26),"args",void 0,mw.createUnionTypeNode(E(e,l)))])}function l(e){const t=E(e.parameters,_);return xw(mw.createTupleTypeNode(t),$(t,e=>!!u(Iw(e)))?0:1)}function _(e){un.assert(aD(e.name));const t=xI(mw.createNamedTupleMember(e.dotDotDotToken,e.name,e.questionToken,e.type||mw.createKeywordTypeNode(133)),e),n=e.symbol&&e.symbol.getDocumentationComment(o);if(n){const e=R8(n);e.length&&Ow(t,[{text:`*\n${e.split("\n").map(e=>` * ${e}`).join("\n")}\n `,kind:3,pos:-1,end:-1,hasTrailingNewLine:!0,hasLeadingNewline:!0}])}return t}},getAvailableActions:function(e){const{file:t,startPosition:n,program:r}=e;return N3(t,n,r)?[{name:S3,description:T3,actions:[C3]}]:l}});var D3="Add or remove braces in an arrow function",F3=Vx(_a.Add_or_remove_braces_in_an_arrow_function),E3={name:"Add braces to arrow function",description:Vx(_a.Add_braces_to_arrow_function),kind:"refactor.rewrite.arrow.braces.add"},P3={name:"Remove braces from arrow function",description:Vx(_a.Remove_braces_from_arrow_function),kind:"refactor.rewrite.arrow.braces.remove"};function A3(e,t,n=!0,r){const i=HX(e,t),o=Kf(i);if(!o)return{error:Vx(_a.Could_not_find_a_containing_arrow_function)};if(!bF(o))return{error:Vx(_a.Containing_function_is_not_an_arrow_function)};if(Xb(o,i)&&(!Xb(o.body,i)||n)){if(c3(E3.kind,r)&&V_(o.body))return{func:o,addBraces:!0,expression:o.body};if(c3(P3.kind,r)&&VF(o.body)&&1===o.body.statements.length){const e=ge(o.body.statements);if(nE(e))return{func:o,addBraces:!1,expression:e.expression&&uF(Dx(e.expression,!1))?mw.createParenthesizedExpression(e.expression):e.expression,returnStatement:e}}}}Z2(D3,{kinds:[P3.kind],getEditsForAction:function(e,t){const{file:n,startPosition:r}=e,i=A3(n,r);un.assert(i&&!s3(i),"Expected applicable refactor info");const{expression:o,returnStatement:a,func:s}=i;let c;if(t===E3.name){const e=mw.createReturnStatement(o);c=mw.createBlock([e],!0),eZ(o,e,n,3,!0)}else if(t===P3.name&&a){const e=o||mw.createVoidZero();c=oZ(e)?mw.createParenthesizedExpression(e):e,nZ(a,c,n,3,!1),eZ(a,c,n,3,!1),tZ(a,c,n,3,!1)}else un.fail("invalid action");return{renameFilename:void 0,renameLocation:void 0,edits:jue.ChangeTracker.with(e,e=>{e.replaceNode(n,s.body,c)})}},getAvailableActions:function(e){const{file:t,startPosition:n,triggerReason:r}=e,i=A3(t,n,"invoked"===r);return i?s3(i)?e.preferences.provideRefactorNotApplicableReason?[{name:D3,description:F3,actions:[{...E3,notApplicableReason:i.error},{...P3,notApplicableReason:i.error}]}]:l:[{name:D3,description:F3,actions:[i.addBraces?E3:P3]}]:l}});var I3={},O3="Convert arrow function or function expression",L3=Vx(_a.Convert_arrow_function_or_function_expression),j3={name:"Convert to anonymous function",description:Vx(_a.Convert_to_anonymous_function),kind:"refactor.rewrite.function.anonymous"},M3={name:"Convert to named function",description:Vx(_a.Convert_to_named_function),kind:"refactor.rewrite.function.named"},R3={name:"Convert to arrow function",description:Vx(_a.Convert_to_arrow_function),kind:"refactor.rewrite.function.arrow"};function B3(e){let t=!1;return e.forEachChild(function e(n){vX(n)?t=!0:u_(n)||uE(n)||vF(n)||XI(n,e)}),t}function J3(e,t,n){const r=HX(e,t),i=n.getTypeChecker(),o=function(e,t,n){if(!function(e){return lE(e)||_E(e)&&1===e.declarations.length}(n))return;const r=(lE(n)?n:ge(n.declarations)).initializer;return r&&(bF(r)||vF(r)&&!q3(e,t,r))?r:void 0}(e,i,r.parent);if(o&&!B3(o.body)&&!i.containsArgumentsReference(o))return{selectedVariableDeclaration:!0,func:o};const a=Kf(r);if(a&&(vF(a)||bF(a))&&!Xb(a.body,r)&&!B3(a.body)&&!i.containsArgumentsReference(a)){if(vF(a)&&q3(e,i,a))return;return{selectedVariableDeclaration:!1,func:a}}}function z3(e){if(V_(e)){const t=mw.createReturnStatement(e),n=e.getSourceFile();return xI(t,e),UC(t),nZ(e,t,n,void 0,!0),mw.createBlock([t],!0)}return e}function q3(e,t,n){return!!n.name&&gce.Core.isSymbolReferencedInFile(n.name,t,e)}Z2(O3,{kinds:[j3.kind,M3.kind,R3.kind],getEditsForAction:function(e,t){const{file:n,startPosition:r,program:i}=e,o=J3(n,r,i);if(!o)return;const{func:a}=o,s=[];switch(t){case j3.name:s.push(...function(e,t){const{file:n}=e,r=z3(t.body),i=mw.createFunctionExpression(t.modifiers,t.asteriskToken,void 0,t.typeParameters,t.parameters,t.type,r);return jue.ChangeTracker.with(e,e=>e.replaceNode(n,t,i))}(e,a));break;case M3.name:const t=function(e){const t=e.parent;if(!lE(t)||!If(t))return;const n=t.parent,r=n.parent;return _E(n)&&WF(r)&&aD(t.name)?{variableDeclaration:t,variableDeclarationList:n,statement:r,name:t.name}:void 0}(a);if(!t)return;s.push(...function(e,t,n){const{file:r}=e,i=z3(t.body),{variableDeclaration:o,variableDeclarationList:a,statement:s,name:c}=n;VC(s);const l=32&ic(o)|Bv(t),_=mw.createModifiersFromModifierFlags(l),d=mw.createFunctionDeclaration(u(_)?_:void 0,t.asteriskToken,c,t.typeParameters,t.parameters,t.type,i);return 1===a.declarations.length?jue.ChangeTracker.with(e,e=>e.replaceNode(r,s,d)):jue.ChangeTracker.with(e,e=>{e.delete(r,o),e.insertNodeAfter(r,s,d)})}(e,a,t));break;case R3.name:if(!vF(a))return;s.push(...function(e,t){const{file:n}=e,r=t.body.statements[0];let i;!function(e,t){return 1===e.statements.length&&nE(t)&&!!t.expression}(t.body,r)?i=t.body:(i=r.expression,UC(i),QY(r,i));const o=mw.createArrowFunction(t.modifiers,t.typeParameters,t.parameters,t.type,mw.createToken(39),i);return jue.ChangeTracker.with(e,e=>e.replaceNode(n,t,o))}(e,a));break;default:return un.fail("invalid action")}return{renameFilename:void 0,renameLocation:void 0,edits:s}},getAvailableActions:function(e){const{file:t,startPosition:n,program:r,kind:i}=e,o=J3(t,n,r);if(!o)return l;const{selectedVariableDeclaration:a,func:s}=o,c=[],_=[];if(c3(M3.kind,i)){const e=a||bF(s)&&lE(s.parent)?void 0:Vx(_a.Could_not_convert_to_named_function);e?_.push({...M3,notApplicableReason:e}):c.push(M3)}if(c3(j3.kind,i)){const e=!a&&bF(s)?void 0:Vx(_a.Could_not_convert_to_anonymous_function);e?_.push({...j3,notApplicableReason:e}):c.push(j3)}if(c3(R3.kind,i)){const e=vF(s)?void 0:Vx(_a.Could_not_convert_to_arrow_function);e?_.push({...R3,notApplicableReason:e}):c.push(R3)}return[{name:O3,description:L3,actions:0===c.length&&e.preferences.provideRefactorNotApplicableReason?_:c}]}});var U3={},V3="Convert parameters to destructured object",W3=Vx(_a.Convert_parameters_to_destructured_object),$3={name:V3,description:W3,kind:"refactor.rewrite.parameters.toDestructured"};function H3(e,t){const n=Y8(e);if(n){const e=t.getContextualTypeForObjectLiteralElement(n),r=null==e?void 0:e.getSymbol();if(r&&!(6&rx(r)))return r}}function K3(e){const t=e.node;return PE(t.parent)||kE(t.parent)||bE(t.parent)||DE(t.parent)||LE(t.parent)||AE(t.parent)?t:void 0}function G3(e){if(_u(e.node.parent))return e.node}function X3(e){if(e.node.parent){const t=e.node,n=t.parent;switch(n.kind){case 214:case 215:const e=tt(n,j_);if(e&&e.expression===t)return e;break;case 212:const r=tt(n,dF);if(r&&r.parent&&r.name===t){const e=tt(r.parent,j_);if(e&&e.expression===r)return e}break;case 213:const i=tt(n,pF);if(i&&i.parent&&i.argumentExpression===t){const e=tt(i.parent,j_);if(e&&e.expression===i)return e}}}}function Q3(e){if(e.node.parent){const t=e.node,n=t.parent;switch(n.kind){case 212:const e=tt(n,dF);if(e&&e.expression===t)return e;break;case 213:const r=tt(n,pF);if(r&&r.expression===t)return r}}}function Y3(e){const t=e.node;if(2===WG(t)||ob(t.parent))return t}function Z3(e,t,n){const r=$X(e,t),i=Gf(r);if(!function(e){const t=uc(e,Su);if(t){const e=uc(t,e=>!Su(e));return!!e&&o_(e)}return!1}(r))return!(i&&function(e,t){var n;if(!function(e,t){return function(e){return i4(e)?e.length-1:e.length}(e)>=1&&v(e,e=>function(e,t){if(Bu(e)){const n=t.getTypeAtLocation(e);if(!t.isArrayType(n)&&!t.isTupleType(n))return!1}return!e.modifiers&&aD(e.name)}(e,t))}(e.parameters,t))return!1;switch(e.kind){case 263:return n4(e)&&t4(e,t);case 175:if(uF(e.parent)){const r=H3(e.name,t);return 1===(null==(n=null==r?void 0:r.declarations)?void 0:n.length)&&t4(e,t)}return t4(e,t);case 177:return dE(e.parent)?n4(e.parent)&&t4(e,t):r4(e.parent.parent)&&t4(e,t);case 219:case 220:return r4(e.parent)}return!1}(i,n)&&Xb(i,r))||i.body&&Xb(i.body,r)?void 0:i}function e4(e){return DD(e)&&(pE(e.parent)||qD(e.parent))}function t4(e,t){return!!e.body&&!t.isImplementationOfOverload(e)}function n4(e){return!!e.name||!!_Y(e,90)}function r4(e){return lE(e)&&af(e)&&aD(e.name)&&!e.type}function i4(e){return e.length>0&&vX(e[0].name)}function o4(e){return i4(e)&&(e=mw.createNodeArray(e.slice(1),e.hasTrailingComma)),e}function a4(e,t){const n=o4(e.parameters),r=Bu(ve(n)),i=E(r?t.slice(0,n.length-1):t,(e,t)=>{const r=(i=c4(n[t]),aD(o=e)&&qh(o)===i?mw.createShorthandPropertyAssignment(i):mw.createPropertyAssignment(i,o));var i,o;return UC(r.name),rP(r)&&UC(r.initializer),QY(e,r),r});if(r&&t.length>=n.length){const e=t.slice(n.length-1),r=mw.createPropertyAssignment(c4(ve(n)),mw.createArrayLiteralExpression(e));i.push(r)}return mw.createObjectLiteralExpression(i,!1)}function s4(e,t,n){const r=t.getTypeChecker(),i=o4(e.parameters),o=E(i,function(e){const t=mw.createBindingElement(void 0,void 0,c4(e),Bu(e)&&u(e)?mw.createArrayLiteralExpression():e.initializer);return UC(t),e.initializer&&t.initializer&&QY(e.initializer,t.initializer),t}),a=mw.createObjectBindingPattern(o),s=function(e){const t=E(e,_);return kw(mw.createTypeLiteralNode(t),1)}(i);let c;v(i,u)&&(c=mw.createObjectLiteralExpression());const l=mw.createParameterDeclaration(void 0,void 0,a,void 0,s,c);if(i4(e.parameters)){const t=e.parameters[0],n=mw.createParameterDeclaration(void 0,void 0,t.name,void 0,t.type);return UC(n.name),QY(t.name,n.name),t.type&&(UC(n.type),QY(t.type,n.type)),mw.createNodeArray([n,l])}return mw.createNodeArray([l]);function _(e){let i=e.type;var o;i||!e.initializer&&!Bu(e)||(o=e,i=pZ(r.getTypeAtLocation(o),o,t,n));const a=mw.createPropertySignature(void 0,c4(e),u(e)?mw.createToken(58):e.questionToken,i);return UC(a),QY(e.name,a.name),e.type&&a.type&&QY(e.type,a.type),a}function u(e){if(Bu(e)){const t=r.getTypeAtLocation(e);return!r.isTupleType(t)}return r.isOptionalParameter(e)}}function c4(e){return qh(e.name)}Z2(V3,{kinds:[$3.kind],getEditsForAction:function(e,t){un.assert(t===V3,"Unexpected action name");const{file:n,startPosition:r,program:i,cancellationToken:o,host:a}=e,s=Z3(n,r,i.getTypeChecker());if(!s||!o)return;const c=function(e,t,n){const r=function(e){switch(e.kind){case 263:return e.name?[e.name]:[un.checkDefined(_Y(e,90),"Nameless function declaration should be a default export")];case 175:return[e.name];case 177:const t=un.checkDefined(OX(e,137,e.getSourceFile()),"Constructor declaration should have constructor keyword");return 232===e.parent.kind?[e.parent.parent.name,t]:[t];case 220:return[e.parent.name];case 219:return e.name?[e.name,e.parent.name]:[e.parent.name];default:return un.assertNever(e,`Unexpected function declaration kind ${e.kind}`)}}(e),i=PD(e)?function(e){switch(e.parent.kind){case 264:const t=e.parent;return t.name?[t.name]:[un.checkDefined(_Y(t,90),"Nameless class declaration should be a default export")];case 232:const n=e.parent,r=e.parent.parent,i=n.name;return i?[i,r.name]:[r.name]}}(e):[],o=Q([...r,...i],mt),a=t.getTypeChecker(),s=function(t){const n={accessExpressions:[],typeUsages:[]},o={functionCalls:[],declarations:[],classReferences:n,valid:!0},s=E(r,c),l=E(i,c),_=PD(e),u=E(r,e=>H3(e,a));for(const r of t){if(r.kind===gce.EntryKind.Span){o.valid=!1;continue}if(T(u,c(r.node))){if(e4(r.node.parent)){o.signature=r.node.parent;continue}const e=X3(r);if(e){o.functionCalls.push(e);continue}}const t=H3(r.node,a);if(t&&T(u,t)){const e=G3(r);if(e){o.declarations.push(e);continue}}if(T(s,c(r.node))||KG(r.node)){if(K3(r))continue;const e=G3(r);if(e){o.declarations.push(e);continue}const t=X3(r);if(t){o.functionCalls.push(t);continue}}if(_&&T(l,c(r.node))){if(K3(r))continue;const t=G3(r);if(t){o.declarations.push(t);continue}const i=Q3(r);if(i){n.accessExpressions.push(i);continue}if(dE(e.parent)){const e=Y3(r);if(e){n.typeUsages.push(e);continue}}}o.valid=!1}return o}(O(o,e=>gce.getReferenceEntriesForNode(-1,e,t,t.getSourceFiles(),n)));return v(s.declarations,e=>T(o,e))||(s.valid=!1),s;function c(e){const t=a.getSymbolAtLocation(e);return t&&$Y(t,a)}}(s,i,o);if(c.valid){const t=jue.ChangeTracker.with(e,e=>function(e,t,n,r,i,o){const a=o.signature,s=E(s4(i,t,n),e=>RC(e));a&&l(a,E(s4(a,t,n),e=>RC(e))),l(i,s);const c=ee(o.functionCalls,(e,t)=>vt(e.pos,t.pos));for(const e of c)if(e.arguments&&e.arguments.length){const t=RC(a4(i,e.arguments),!0);r.replaceNodeRange(vd(e),ge(e.arguments),ve(e.arguments),t,{leadingTriviaOption:jue.LeadingTriviaOption.IncludeAll,trailingTriviaOption:jue.TrailingTriviaOption.Include})}function l(t,n){r.replaceNodeRangeWithNodes(e,ge(t.parameters),ve(t.parameters),n,{joiner:", ",indentation:0,leadingTriviaOption:jue.LeadingTriviaOption.IncludeAll,trailingTriviaOption:jue.TrailingTriviaOption.Include})}}(n,i,a,e,s,c));return{renameFilename:void 0,renameLocation:void 0,edits:t}}return{edits:[]}},getAvailableActions:function(e){const{file:t,startPosition:n}=e;return Fm(t)?l:Z3(t,n,e.program.getTypeChecker())?[{name:V3,description:W3,actions:[$3]}]:l}});var l4={},_4="Convert to template string",u4=Vx(_a.Convert_to_template_string),d4={name:_4,description:u4,kind:"refactor.rewrite.string"};function p4(e,t){const n=HX(e,t),r=m4(n);return!g4(r).isValidConcatenation&&yF(r.parent)&&NF(r.parent.parent)?r.parent.parent:n}function f4(e,t){const n=m4(t),r=e.file,i=function({nodes:e,operators:t},n){const r=h4(t,n),i=y4(e,n,r),[o,a,s,c]=x4(0,e);if(o===e.length){const e=mw.createNoSubstitutionTemplateLiteral(a,s);return i(c,e),e}const l=[],_=mw.createTemplateHead(a,s);i(c,_);for(let t=o;t{k4(e);const r=t===n.templateSpans.length-1,i=e.literal.text+(r?a:""),o=b4(e.literal)+(r?s:"");return mw.createTemplateSpan(e.expression,_&&r?mw.createTemplateTail(i,o):mw.createTemplateMiddle(i,o))});l.push(...e)}else{const e=_?mw.createTemplateTail(a,s):mw.createTemplateMiddle(a,s);i(c,e),l.push(mw.createTemplateSpan(n,e))}}return mw.createTemplateExpression(_,l)}(g4(n),r),o=us(r.text,n.end);if(o){const t=o[o.length-1],a={pos:o[0].pos,end:t.end};return jue.ChangeTracker.with(e,e=>{e.deleteRange(r,a),e.replaceNode(r,n,i)})}return jue.ChangeTracker.with(e,e=>e.replaceNode(r,n,i))}function m4(e){return uc(e.parent,e=>{switch(e.kind){case 212:case 213:return!1;case 229:case 227:return!(NF(e.parent)&&(t=e.parent,64!==t.operatorToken.kind&&65!==t.operatorToken.kind));default:return"quit"}var t})||e}function g4(e){const t=e=>{if(!NF(e))return{nodes:[e],operators:[],validOperators:!0,hasString:UN(e)||$N(e)};const{nodes:n,operators:r,hasString:i,validOperators:o}=t(e.left);if(!(i||UN(e.right)||FF(e.right)))return{nodes:[e],operators:[],hasString:!1,validOperators:!0};const a=40===e.operatorToken.kind,s=o&&a;return n.push(e.right),r.push(e.operatorToken),{nodes:n,operators:r,hasString:!0,validOperators:s}},{nodes:n,operators:r,validOperators:i,hasString:o}=t(e);return{nodes:n,operators:r,isValidConcatenation:i&&o}}Z2(_4,{kinds:[d4.kind],getEditsForAction:function(e,t){const{file:n,startPosition:r}=e,i=p4(n,r);return t===u4?{edits:f4(e,i)}:un.fail("invalid action")},getAvailableActions:function(e){const{file:t,startPosition:n}=e,r=m4(p4(t,n)),i=UN(r),o={name:_4,description:u4,actions:[]};return i&&"invoked"!==e.triggerReason?l:bm(r)&&(i||NF(r)&&g4(r).isValidConcatenation)?(o.actions.push(d4),[o]):e.preferences.provideRefactorNotApplicableReason?(o.actions.push({...d4,notApplicableReason:Vx(_a.Can_only_convert_string_concatenations_and_string_literals)}),[o]):l}});var h4=(e,t)=>(n,r)=>{n(r,i)=>{for(;r.length>0;){const o=r.shift();tZ(e[o],i,t,3,!1),n(o,i)}};function v4(e){return e.replace(/\\.|[$`]/g,e=>"\\"===e[0]?e:"\\"+e)}function b4(e){const t=HN(e)||KN(e)?-2:-1;return Xd(e).slice(1,t)}function x4(e,t){const n=[];let r="",i="";for(;e=a.pos?s.getEnd():a.getEnd()),l=o?function(e){for(;e.parent;){if(F4(e)&&!F4(e.parent))return e;e=e.parent}}(a):function(e,t){for(;e.parent;){if(F4(e)&&0!==t.length&&e.end>=t.start+t.length)return e;e=e.parent}}(a,c),_=l&&F4(l)?function(e){if(D4(e))return e;if(WF(e)){const t=Ag(e),n=null==t?void 0:t.initializer;return n&&D4(n)?n:void 0}return e.expression&&D4(e.expression)?e.expression:void 0}(l):void 0;if(!_)return{error:Vx(_a.Could_not_find_convertible_access_expression)};const u=r.getTypeChecker();return DF(_)?function(e,t){const n=e.condition,r=O4(e.whenTrue);if(!r||t.isNullableType(t.getTypeAtLocation(r)))return{error:Vx(_a.Could_not_find_convertible_access_expression)};if((dF(n)||aD(n))&&A4(n,r.expression))return{finalExpression:r,occurrences:[n],expression:e};if(NF(n)){const t=P4(r.expression,n);return t?{finalExpression:r,occurrences:t,expression:e}:{error:Vx(_a.Could_not_find_matching_access_expressions)}}}(_,u):function(e){if(56!==e.operatorToken.kind)return{error:Vx(_a.Can_only_convert_logical_AND_access_chains)};const t=O4(e.right);if(!t)return{error:Vx(_a.Could_not_find_convertible_access_expression)};const n=P4(t.expression,e.left);return n?{finalExpression:t,occurrences:n,expression:e}:{error:Vx(_a.Could_not_find_matching_access_expressions)}}(_)}function P4(e,t){const n=[];for(;NF(t)&&56===t.operatorToken.kind;){const r=A4(ah(e),ah(t.right));if(!r)break;n.push(r),e=r,t=t.left}const r=A4(e,t);return r&&n.push(r),n.length>0?n:void 0}function A4(e,t){if(aD(t)||dF(t)||pF(t))return function(e,t){for(;(fF(e)||dF(e)||pF(e))&&I4(e)!==I4(t);)e=e.expression;for(;dF(e)&&dF(t)||pF(e)&&pF(t);){if(I4(e)!==I4(t))return!1;e=e.expression,t=t.expression}return aD(e)&&aD(t)&&e.getText()===t.getText()}(e,t)?t:void 0}function I4(e){return aD(e)||jh(e)?e.getText():dF(e)?I4(e.name):pF(e)?I4(e.argumentExpression):void 0}function O4(e){return NF(e=ah(e))?O4(e.left):(dF(e)||pF(e)||fF(e))&&!hl(e)?e:void 0}function L4(e,t,n){if(dF(t)||pF(t)||fF(t)){const r=L4(e,t.expression,n),i=n.length>0?n[n.length-1]:void 0,o=(null==i?void 0:i.getText())===t.expression.getText();if(o&&n.pop(),fF(t))return o?mw.createCallChain(r,mw.createToken(29),t.typeArguments,t.arguments):mw.createCallChain(r,t.questionDotToken,t.typeArguments,t.arguments);if(dF(t))return o?mw.createPropertyAccessChain(r,mw.createToken(29),t.name):mw.createPropertyAccessChain(r,t.questionDotToken,t.name);if(pF(t))return o?mw.createElementAccessChain(r,mw.createToken(29),t.argumentExpression):mw.createElementAccessChain(r,t.questionDotToken,t.argumentExpression)}return t}Z2(C4,{kinds:[N4.kind],getEditsForAction:function(e,t){const n=E4(e);return un.assert(n&&!s3(n),"Expected applicable refactor info"),{edits:jue.ChangeTracker.with(e,t=>function(e,t,n,r){const{finalExpression:i,occurrences:o,expression:a}=r,s=o[o.length-1],c=L4(t,i,o);c&&(dF(c)||pF(c)||fF(c))&&(NF(a)?n.replaceNodeRange(e,s,i,c):DF(a)&&n.replaceNode(e,a,mw.createBinaryExpression(c,mw.createToken(61),a.whenFalse)))}(e.file,e.program.getTypeChecker(),t,n)),renameFilename:void 0,renameLocation:void 0}},getAvailableActions:function(e){const t=E4(e,"invoked"===e.triggerReason);return t?s3(t)?e.preferences.provideRefactorNotApplicableReason?[{name:C4,description:w4,actions:[{...N4,notApplicableReason:t.error}]}]:l:[{name:C4,description:w4,actions:[N4]}]:l}});var j4={};i(j4,{Messages:()=>M4,RangeFacts:()=>U4,getRangeToExtract:()=>V4,getRefactorActionsToExtractSymbol:()=>z4,getRefactorEditsToExtractSymbol:()=>q4});var M4,R4="Extract Symbol",B4={name:"Extract Constant",description:Vx(_a.Extract_constant),kind:"refactor.extract.constant"},J4={name:"Extract Function",description:Vx(_a.Extract_function),kind:"refactor.extract.function"};function z4(e){const t=e.kind,n=V4(e.file,jZ(e),"invoked"===e.triggerReason),r=n.targetRange;if(void 0===r){if(!n.errors||0===n.errors.length||!e.preferences.provideRefactorNotApplicableReason)return l;const r=[];return c3(J4.kind,t)&&r.push({name:R4,description:J4.description,actions:[{...J4,notApplicableReason:m(n.errors)}]}),c3(B4.kind,t)&&r.push({name:R4,description:B4.description,actions:[{...B4,notApplicableReason:m(n.errors)}]}),r}const{affectedTextRange:i,extractions:o}=function(e,t){const{scopes:n,affectedTextRange:r,readsAndWrites:{functionErrorsPerScope:i,constantErrorsPerScope:o}}=H4(e,t),a=n.map((e,t)=>{const n=function(e){return o_(e)?"inner function":u_(e)?"method":"function"}(e),r=function(e){return u_(e)?"readonly field":"constant"}(e),a=o_(e)?function(e){switch(e.kind){case 177:return"constructor";case 219:case 263:return e.name?`function '${e.name.text}'`:dZ;case 220:return"arrow function";case 175:return`method '${e.name.getText()}'`;case 178:return`'get ${e.name.getText()}'`;case 179:return`'set ${e.name.getText()}'`;default:un.assertNever(e,`Unexpected scope kind ${e.kind}`)}}(e):u_(e)?function(e){return 264===e.kind?e.name?`class '${e.name.text}'`:"anonymous class declaration":e.name?`class expression '${e.name.text}'`:"anonymous class expression"}(e):function(e){return 269===e.kind?`namespace '${e.parent.name.getText()}'`:e.externalModuleIndicator?0:1}(e);let s,c;return 1===a?(s=zx(Vx(_a.Extract_to_0_in_1_scope),[n,"global"]),c=zx(Vx(_a.Extract_to_0_in_1_scope),[r,"global"])):0===a?(s=zx(Vx(_a.Extract_to_0_in_1_scope),[n,"module"]),c=zx(Vx(_a.Extract_to_0_in_1_scope),[r,"module"])):(s=zx(Vx(_a.Extract_to_0_in_1),[n,a]),c=zx(Vx(_a.Extract_to_0_in_1),[r,a])),0!==t||u_(e)||(c=zx(Vx(_a.Extract_to_0_in_enclosing_scope),[r])),{functionExtraction:{description:s,errors:i[t]},constantExtraction:{description:c,errors:o[t]}}});return{affectedTextRange:r,extractions:a}}(r,e);if(void 0===o)return l;const a=[],s=new Map;let c;const _=[],u=new Map;let d,p=0;for(const{functionExtraction:n,constantExtraction:r}of o){if(c3(J4.kind,t)){const t=n.description;0===n.errors.length?s.has(t)||(s.set(t,!0),a.push({description:t,name:`function_scope_${p}`,kind:J4.kind,range:{start:{line:za(e.file,i.pos).line,offset:za(e.file,i.pos).character},end:{line:za(e.file,i.end).line,offset:za(e.file,i.end).character}}})):c||(c={description:t,name:`function_scope_${p}`,notApplicableReason:m(n.errors),kind:J4.kind})}if(c3(B4.kind,t)){const t=r.description;0===r.errors.length?u.has(t)||(u.set(t,!0),_.push({description:t,name:`constant_scope_${p}`,kind:B4.kind,range:{start:{line:za(e.file,i.pos).line,offset:za(e.file,i.pos).character},end:{line:za(e.file,i.end).line,offset:za(e.file,i.end).character}}})):d||(d={description:t,name:`constant_scope_${p}`,notApplicableReason:m(r.errors),kind:B4.kind})}p++}const f=[];return a.length?f.push({name:R4,description:Vx(_a.Extract_function),actions:a}):e.preferences.provideRefactorNotApplicableReason&&c&&f.push({name:R4,description:Vx(_a.Extract_function),actions:[c]}),_.length?f.push({name:R4,description:Vx(_a.Extract_constant),actions:_}):e.preferences.provideRefactorNotApplicableReason&&d&&f.push({name:R4,description:Vx(_a.Extract_constant),actions:[d]}),f.length?f:l;function m(e){let t=e[0].messageText;return"string"!=typeof t&&(t=t.messageText),t}}function q4(e,t){const n=V4(e.file,jZ(e)).targetRange,r=/^function_scope_(\d+)$/.exec(t);if(r){const t=+r[1];return un.assert(isFinite(t),"Expected to parse a finite number from the function scope index"),function(e,t,n){const{scopes:r,readsAndWrites:{target:i,usagesPerScope:o,functionErrorsPerScope:a,exposedVariableDeclarations:s}}=H4(e,t);return un.assert(!a[n].length,"The extraction went missing? How?"),t.cancellationToken.throwIfCancellationRequested(),function(e,t,{usages:n,typeParameterUsages:r,substitutions:i},o,a,s){const c=s.program.getTypeChecker(),_=yk(s.program.getCompilerOptions()),u=T7.createImportAdder(s.file,s.program,s.preferences,s.host),d=t.getSourceFile(),p=YY(u_(t)?"newMethod":"newFunction",d),f=Em(t),m=mw.createIdentifier(p);let g;const h=[],y=[];let v;n.forEach((e,n)=>{let r;if(!f){let n=c.getTypeOfSymbolAtLocation(e.symbol,e.node);n=c.getBaseTypeOfLiteralType(n),r=T7.typeToAutoImportableTypeNode(c,u,n,t,_,1,8)}const i=mw.createParameterDeclaration(void 0,void 0,n,void 0,r);h.push(i),2===e.usage&&(v||(v=[])).push(e),y.push(mw.createIdentifier(n))});const x=Oe(r.values(),e=>({type:e,declaration:K4(e,s.startPosition)}));x.sort(G4);const k=0===x.length?void 0:B(x,({declaration:e})=>e),S=void 0!==k?k.map(e=>mw.createTypeReferenceNode(e.name,void 0)):void 0;if(V_(e)&&!f){const n=c.getContextualType(e);g=c.typeToTypeNode(n,t,1,8)}const{body:T,returnValueProperty:C}=function(e,t,n,r,i){const o=void 0!==n||t.length>0;if(VF(e)&&!o&&0===r.size)return{body:mw.createBlock(e.statements,!0),returnValueProperty:void 0};let a,s=!1;const c=mw.createNodeArray(VF(e)?e.statements.slice(0):[pu(e)?e:mw.createReturnStatement(ah(e))]);if(o||r.size){const l=_J(c,function e(i){if(!s&&nE(i)&&o){const r=X4(t,n);return i.expression&&(a||(a="__return"),r.unshift(mw.createPropertyAssignment(a,lJ(i.expression,e,V_)))),1===r.length?mw.createReturnStatement(r[0].name):mw.createReturnStatement(mw.createObjectLiteralExpression(r))}{const t=s;s=s||o_(i)||u_(i);const n=r.get(ZB(i).toString()),o=n?RC(n):vJ(i,e,void 0);return s=t,o}},pu).slice();if(o&&!i&&pu(e)){const e=X4(t,n);1===e.length?l.push(mw.createReturnStatement(e[0].name)):l.push(mw.createReturnStatement(mw.createObjectLiteralExpression(e)))}return{body:mw.createBlock(l,!0),returnValueProperty:a}}return{body:mw.createBlock(c,!0),returnValueProperty:void 0}}(e,o,v,i,!!(1&a.facts));let w;UC(T);const N=!!(16&a.facts);if(u_(t)){const e=f?[]:[mw.createModifier(123)];32&a.facts&&e.push(mw.createModifier(126)),4&a.facts&&e.push(mw.createModifier(134)),w=mw.createMethodDeclaration(e.length?e:void 0,2&a.facts?mw.createToken(42):void 0,m,void 0,k,h,g,T)}else N&&h.unshift(mw.createParameterDeclaration(void 0,void 0,"this",void 0,c.typeToTypeNode(c.getTypeAtLocation(a.thisNode),t,1,8),void 0)),w=mw.createFunctionDeclaration(4&a.facts?[mw.createToken(134)]:void 0,2&a.facts?mw.createToken(42):void 0,m,k,h,g,T);const D=jue.ChangeTracker.fromContext(s),F=function(e,t){return b(function(e){if(o_(e)){const t=e.body;if(VF(t))return t.statements}else{if(hE(e)||sP(e))return e.statements;if(u_(e))return e.members}return l}(t),t=>t.pos>=e&&o_(t)&&!PD(t))}((Q4(a.range)?ve(a.range):a.range).end,t);F?D.insertNodeBefore(s.file,F,w,!0):D.insertNodeAtEndOfScope(s.file,t,w),u.writeFixes(D);const E=[],P=function(e,t,n){const r=mw.createIdentifier(n);if(u_(e)){const n=32&t.facts?mw.createIdentifier(e.name.text):mw.createThis();return mw.createPropertyAccessExpression(n,r)}return r}(t,a,p);N&&y.unshift(mw.createIdentifier("this"));let A=mw.createCallExpression(N?mw.createPropertyAccessExpression(P,"call"):P,S,y);if(2&a.facts&&(A=mw.createYieldExpression(mw.createToken(42),A)),4&a.facts&&(A=mw.createAwaitExpression(A)),Z4(e)&&(A=mw.createJsxExpression(void 0,A)),o.length&&!v)if(un.assert(!C,"Expected no returnValueProperty"),un.assert(!(1&a.facts),"Expected RangeFacts.HasReturn flag to be unset"),1===o.length){const e=o[0];E.push(mw.createVariableStatement(void 0,mw.createVariableDeclarationList([mw.createVariableDeclaration(RC(e.name),void 0,RC(e.type),A)],e.parent.flags)))}else{const e=[],n=[];let r=o[0].parent.flags,i=!1;for(const a of o){e.push(mw.createBindingElement(void 0,void 0,RC(a.name)));const o=c.typeToTypeNode(c.getBaseTypeOfLiteralType(c.getTypeAtLocation(a)),t,1,8);n.push(mw.createPropertySignature(void 0,a.symbol.name,void 0,o)),i=i||void 0!==a.type,r&=a.parent.flags}const a=i?mw.createTypeLiteralNode(n):void 0;a&&xw(a,1),E.push(mw.createVariableStatement(void 0,mw.createVariableDeclarationList([mw.createVariableDeclaration(mw.createObjectBindingPattern(e),void 0,a,A)],r)))}else if(o.length||v){if(o.length)for(const e of o){let t=e.parent.flags;2&t&&(t=-3&t|1),E.push(mw.createVariableStatement(void 0,mw.createVariableDeclarationList([mw.createVariableDeclaration(e.symbol.name,void 0,L(e.type))],t)))}C&&E.push(mw.createVariableStatement(void 0,mw.createVariableDeclarationList([mw.createVariableDeclaration(C,void 0,L(g))],1)));const e=X4(o,v);C&&e.unshift(mw.createShorthandPropertyAssignment(C)),1===e.length?(un.assert(!C,"Shouldn't have returnValueProperty here"),E.push(mw.createExpressionStatement(mw.createAssignment(e[0].name,A))),1&a.facts&&E.push(mw.createReturnStatement())):(E.push(mw.createExpressionStatement(mw.createAssignment(mw.createObjectLiteralExpression(e),A))),C&&E.push(mw.createReturnStatement(mw.createIdentifier(C))))}else 1&a.facts?E.push(mw.createReturnStatement(A)):Q4(a.range)?E.push(mw.createExpressionStatement(A)):E.push(A);Q4(a.range)?D.replaceNodeRangeWithNodes(s.file,ge(a.range),ve(a.range),E):D.replaceNodeWithNodes(s.file,a.range,E);const I=D.getChanges(),O=(Q4(a.range)?ge(a.range):a.range).getSourceFile().fileName;return{renameFilename:O,renameLocation:ZY(I,O,p,!1),edits:I};function L(e){if(void 0===e)return;const t=RC(e);let n=t;for(;YD(n);)n=n.type;return KD(n)&&b(n.types,e=>157===e.kind)?t:mw.createUnionTypeNode([t,mw.createKeywordTypeNode(157)])}}(i,r[n],o[n],s,e,t)}(n,e,t)}const i=/^constant_scope_(\d+)$/.exec(t);if(i){const t=+i[1];return un.assert(isFinite(t),"Expected to parse a finite number from the constant scope index"),function(e,t,n){const{scopes:r,readsAndWrites:{target:i,usagesPerScope:o,constantErrorsPerScope:a,exposedVariableDeclarations:s}}=H4(e,t);return un.assert(!a[n].length,"The extraction went missing? How?"),un.assert(0===s.length,"Extract constant accepted a range containing a variable declaration?"),t.cancellationToken.throwIfCancellationRequested(),function(e,t,{substitutions:n},r,i){const o=i.program.getTypeChecker(),a=t.getSourceFile(),s=l3(e,t,o,a),c=Em(t);let l=c||!o.isContextSensitive(e)?void 0:o.typeToTypeNode(o.getContextualType(e),t,1,8),_=function(e,t){return t.size?function e(n){const r=t.get(ZB(n).toString());return r?RC(r):vJ(n,e,void 0)}(e):e}(ah(e),n);({variableType:l,initializer:_}=function(n,r){if(void 0===n)return{variableType:n,initializer:r};if(!vF(r)&&!bF(r)||r.typeParameters)return{variableType:n,initializer:r};const i=o.getTypeAtLocation(e),a=be(o.getSignaturesOfType(i,0));if(!a)return{variableType:n,initializer:r};if(a.getTypeParameters())return{variableType:n,initializer:r};const s=[];let c=!1;for(const e of r.parameters)if(e.type)s.push(e);else{const n=o.getTypeAtLocation(e);n===o.getAnyType()&&(c=!0),s.push(mw.updateParameterDeclaration(e,e.modifiers,e.dotDotDotToken,e.name,e.questionToken,e.type||o.typeToTypeNode(n,t,1,8),e.initializer))}if(c)return{variableType:n,initializer:r};if(n=void 0,bF(r))r=mw.updateArrowFunction(r,kI(e)?Dc(e):void 0,r.typeParameters,s,r.type||o.typeToTypeNode(a.getReturnType(),t,1,8),r.equalsGreaterThanToken,r.body);else{if(a&&a.thisParameter){const n=fe(s);if(!n||aD(n.name)&&"this"!==n.name.escapedText){const n=o.getTypeOfSymbolAtLocation(a.thisParameter,e);s.splice(0,0,mw.createParameterDeclaration(void 0,void 0,"this",void 0,o.typeToTypeNode(n,t,1,8)))}}r=mw.updateFunctionExpression(r,kI(e)?Dc(e):void 0,r.asteriskToken,r.name,r.typeParameters,s,r.type||o.typeToTypeNode(a.getReturnType(),t,1),r.body)}return{variableType:n,initializer:r}}(l,_)),UC(_);const u=jue.ChangeTracker.fromContext(i);if(u_(t)){un.assert(!c,"Cannot extract to a JS class");const n=[];n.push(mw.createModifier(123)),32&r&&n.push(mw.createModifier(126)),n.push(mw.createModifier(148));const o=mw.createPropertyDeclaration(n,s,void 0,l,_);let a=mw.createPropertyAccessExpression(32&r?mw.createIdentifier(t.name.getText()):mw.createThis(),mw.createIdentifier(s));Z4(e)&&(a=mw.createJsxExpression(void 0,a));const d=function(e,t){const n=t.members;let r;un.assert(n.length>0,"Found no members");let i=!0;for(const t of n){if(t.pos>e)return r||n[0];if(i&&!ND(t)){if(void 0!==r)return t;i=!1}r=t}return void 0===r?un.fail():r}(e.pos,t);u.insertNodeBefore(i.file,d,o,!0),u.replaceNode(i.file,e,a)}else{const n=mw.createVariableDeclaration(s,void 0,l,_),r=function(e,t){let n;for(;void 0!==e&&e!==t;){if(lE(e)&&e.initializer===n&&_E(e.parent)&&e.parent.declarations.length>1)return e;n=e,e=e.parent}}(e,t);if(r){u.insertNodeBefore(i.file,r,n);const t=mw.createIdentifier(s);u.replaceNode(i.file,e,t)}else if(245===e.parent.kind&&t===uc(e,$4)){const t=mw.createVariableStatement(void 0,mw.createVariableDeclarationList([n],2));u.replaceNode(i.file,e.parent,t)}else{const r=mw.createVariableStatement(void 0,mw.createVariableDeclarationList([n],2)),o=function(e,t){let n;un.assert(!u_(t));for(let r=e;r!==t;r=r.parent)$4(r)&&(n=r);for(let r=(n||e).parent;;r=r.parent){if(t0(r)){let t;for(const n of r.statements){if(n.pos>e.pos)break;t=n}return!t&&ZE(r)?(un.assert(iE(r.parent.parent),"Grandparent isn't a switch statement"),r.parent.parent):un.checkDefined(t,"prevStatement failed to get set")}un.assert(r!==t,"Didn't encounter a block-like before encountering scope")}}(e,t);if(0===o.pos?u.insertNodeAtTopOfFile(i.file,r,!1):u.insertNodeBefore(i.file,o,r,!1),245===e.parent.kind)u.delete(i.file,e.parent);else{let t=mw.createIdentifier(s);Z4(e)&&(t=mw.createJsxExpression(void 0,t)),u.replaceNode(i.file,e,t)}}}const d=u.getChanges(),p=e.getSourceFile().fileName;return{renameFilename:p,renameLocation:ZY(d,p,s,!0),edits:d}}(V_(i)?i:i.statements[0].expression,r[n],o[n],e.facts,t)}(n,e,t)}un.fail("Unrecognized action name")}Z2(R4,{kinds:[B4.kind,J4.kind],getEditsForAction:q4,getAvailableActions:z4}),(e=>{function t(e){return{message:e,code:0,category:3,key:e}}e.cannotExtractRange=t("Cannot extract range."),e.cannotExtractImport=t("Cannot extract import statement."),e.cannotExtractSuper=t("Cannot extract super call."),e.cannotExtractJSDoc=t("Cannot extract JSDoc."),e.cannotExtractEmpty=t("Cannot extract empty range."),e.expressionExpected=t("expression expected."),e.uselessConstantType=t("No reason to extract constant of type."),e.statementOrExpressionExpected=t("Statement or expression expected."),e.cannotExtractRangeContainingConditionalBreakOrContinueStatements=t("Cannot extract range containing conditional break or continue statements."),e.cannotExtractRangeContainingConditionalReturnStatement=t("Cannot extract range containing conditional return statement."),e.cannotExtractRangeContainingLabeledBreakOrContinueStatementWithTargetOutsideOfTheRange=t("Cannot extract range containing labeled break or continue with target outside of the range."),e.cannotExtractRangeThatContainsWritesToReferencesLocatedOutsideOfTheTargetRangeInGenerators=t("Cannot extract range containing writes to references located outside of the target range in generators."),e.typeWillNotBeVisibleInTheNewScope=t("Type will not visible in the new scope."),e.functionWillNotBeVisibleInTheNewScope=t("Function will not visible in the new scope."),e.cannotExtractIdentifier=t("Select more than a single identifier."),e.cannotExtractExportedEntity=t("Cannot extract exported declaration"),e.cannotWriteInExpression=t("Cannot write back side-effects when extracting an expression"),e.cannotExtractReadonlyPropertyInitializerOutsideConstructor=t("Cannot move initialization of read-only class property outside of the constructor"),e.cannotExtractAmbientBlock=t("Cannot extract code from ambient contexts"),e.cannotAccessVariablesFromNestedScopes=t("Cannot access variables from nested scopes"),e.cannotExtractToJSClass=t("Cannot extract constant to a class scope in JS"),e.cannotExtractToExpressionArrowFunction=t("Cannot extract constant to an arrow function without a block"),e.cannotExtractFunctionsContainingThisToMethod=t("Cannot extract functions containing this to method")})(M4||(M4={}));var U4=(e=>(e[e.None=0]="None",e[e.HasReturn=1]="HasReturn",e[e.IsGenerator=2]="IsGenerator",e[e.IsAsyncFunction=4]="IsAsyncFunction",e[e.UsesThis=8]="UsesThis",e[e.UsesThisInFunction=16]="UsesThisInFunction",e[e.InStaticRegion=32]="InStaticRegion",e))(U4||{});function V4(e,t,n=!0){const{length:r}=t;if(0===r&&!n)return{errors:[Gx(e,t.start,r,M4.cannotExtractEmpty)]};const i=0===r&&n,o=GX(e,t.start),a=XX(e,Fs(t)),s=o&&a&&n?function(e,t,n){const r=e.getStart(n);let i=t.getEnd();return 59===n.text.charCodeAt(i)&&i++,{start:r,length:i-r}}(o,a,e):t,c=i?function(e){return uc(e,e=>e.parent&&Y4(e)&&!NF(e.parent))}(o):cY(o,e,s),l=i?c:cY(a,e,s);let _,u=0;if(!c||!l)return{errors:[Gx(e,t.start,r,M4.cannotExtractRange)]};if(16777216&c.flags)return{errors:[Gx(e,t.start,r,M4.cannotExtractJSDoc)]};if(c.parent!==l.parent)return{errors:[Gx(e,t.start,r,M4.cannotExtractRange)]};if(c!==l){if(!t0(c.parent))return{errors:[Gx(e,t.start,r,M4.cannotExtractRange)]};const n=[];for(const e of c.parent.statements){if(e===c||n.length){const t=f(e);if(t)return{errors:t};n.push(e)}if(e===l)break}return n.length?{targetRange:{range:n,facts:u,thisNode:_}}:{errors:[Gx(e,t.start,r,M4.cannotExtractRange)]}}if(nE(c)&&!c.expression)return{errors:[Gx(e,t.start,r,M4.cannotExtractRange)]};const d=function(e){if(nE(e)){if(e.expression)return e.expression}else if(WF(e)||_E(e)){const t=WF(e)?e.declarationList.declarations:e.declarations;let n,r=0;for(const e of t)e.initializer&&(r++,n=e.initializer);if(1===r)return n}else if(lE(e)&&e.initializer)return e.initializer;return e}(c),p=function(e){if(aD(HF(e)?e.expression:e))return[Rp(e,M4.cannotExtractIdentifier)]}(d)||f(d);return p?{errors:p}:{targetRange:{range:W4(d),facts:u,thisNode:_}};function f(e){let n;var r;if((r=n||(n={}))[r.None=0]="None",r[r.Break=1]="Break",r[r.Continue=2]="Continue",r[r.Return=4]="Return",un.assert(e.pos<=e.end,"This failure could trigger https://github.com/Microsoft/TypeScript/issues/20809 (1)"),un.assert(!XS(e.pos),"This failure could trigger https://github.com/Microsoft/TypeScript/issues/20809 (2)"),!(pu(e)||bm(e)&&Y4(e)||e8(e)))return[Rp(e,M4.statementOrExpressionExpected)];if(33554432&e.flags)return[Rp(e,M4.cannotExtractAmbientBlock)];const i=Xf(e);let o;i&&function(e,t){let n=e;for(;n!==t;){if(173===n.kind){Dv(n)&&(u|=32);break}if(170===n.kind){177===Kf(n).kind&&(u|=32);break}175===n.kind&&Dv(n)&&(u|=32),n=n.parent}}(e,i);let a,s=4;if(function e(n){if(o)return!0;if(_u(n)&&Nv(261===n.kind?n.parent.parent:n,32))return(o||(o=[])).push(Rp(n,M4.cannotExtractExportedEntity)),!0;switch(n.kind){case 273:return(o||(o=[])).push(Rp(n,M4.cannotExtractImport)),!0;case 278:return(o||(o=[])).push(Rp(n,M4.cannotExtractExportedEntity)),!0;case 108:if(214===n.parent.kind){const e=Xf(n);if(void 0===e||e.pos=t.start+t.length)return(o||(o=[])).push(Rp(n,M4.cannotExtractSuper)),!0}else u|=8,_=n;break;case 220:XI(n,function e(t){if(vX(t))u|=8,_=n;else{if(u_(t)||r_(t)&&!bF(t))return!1;XI(t,e)}});case 264:case 263:sP(n.parent)&&void 0===n.parent.externalModuleIndicator&&(o||(o=[])).push(Rp(n,M4.functionWillNotBeVisibleInTheNewScope));case 232:case 219:case 175:case 177:case 178:case 179:return!1}const r=s;switch(n.kind){case 246:s&=-5;break;case 259:s=0;break;case 242:n.parent&&259===n.parent.kind&&n.parent.finallyBlock===n&&(s=4);break;case 298:case 297:s|=1;break;default:$_(n,!1)&&(s|=3)}switch(n.kind){case 198:case 110:u|=8,_=n;break;case 257:{const t=n.label;(a||(a=[])).push(t.escapedText),XI(n,e),a.pop();break}case 253:case 252:{const e=n.label;e?T(a,e.escapedText)||(o||(o=[])).push(Rp(n,M4.cannotExtractRangeContainingLabeledBreakOrContinueStatementWithTargetOutsideOfTheRange)):s&(253===n.kind?1:2)||(o||(o=[])).push(Rp(n,M4.cannotExtractRangeContainingConditionalBreakOrContinueStatements));break}case 224:u|=4;break;case 230:u|=2;break;case 254:4&s?u|=1:(o||(o=[])).push(Rp(n,M4.cannotExtractRangeContainingConditionalReturnStatement));break;default:XI(n,e)}s=r}(e),8&u){const t=em(e,!1,!1);(263===t.kind||175===t.kind&&211===t.parent.kind||219===t.kind)&&(u|=16)}return o}}function W4(e){return pu(e)?[e]:bm(e)?HF(e.parent)?[e.parent]:e:e8(e)?e:void 0}function $4(e){return bF(e)?Z_(e.body):o_(e)||sP(e)||hE(e)||u_(e)}function H4(e,t){const{file:n}=t,r=function(e){let t=Q4(e.range)?ge(e.range):e.range;if(8&e.facts&&!(16&e.facts)){const e=Xf(t);if(e){const n=uc(t,o_);return n?[n,e]:[e]}}const n=[];for(;;)if(t=t.parent,170===t.kind&&(t=uc(t,e=>o_(e)).parent),$4(t)&&(n.push(t),308===t.kind))return n}(e),i=function(e,t){return Q4(e.range)?{pos:ge(e.range).getStart(t),end:ve(e.range).getEnd()}:e.range}(e,n),o=function(e,t,n,r,i,o){const a=new Map,s=[],c=[],l=[],_=[],u=[],d=new Map,p=[];let f;const m=Q4(e.range)?1===e.range.length&&HF(e.range[0])?e.range[0].expression:void 0:e.range;let g;if(void 0===m){const t=e.range,n=ge(t).getStart(),i=ve(t).end;g=Gx(r,n,i-n,M4.expressionExpected)}else 147456&i.getTypeAtLocation(m).flags&&(g=Rp(m,M4.uselessConstantType));for(const e of t){s.push({usages:new Map,typeParameterUsages:new Map,substitutions:new Map}),c.push(new Map),l.push([]);const t=[];g&&t.push(g),u_(e)&&Em(e)&&t.push(Rp(e,M4.cannotExtractToJSClass)),bF(e)&&!VF(e.body)&&t.push(Rp(e,M4.cannotExtractToExpressionArrowFunction)),_.push(t)}const h=new Map,y=Q4(e.range)?mw.createBlock(e.range):e.range,v=Q4(e.range)?ge(e.range):e.range,x=!!uc(v,e=>xp(e)&&0!==_l(e).length);if(function o(a,d=1){x&&k(i.getTypeAtLocation(a));if(_u(a)&&a.symbol&&u.push(a),rb(a))o(a.left,2),o(a.right);else if(q_(a))o(a.operand,2);else if(dF(a)||pF(a))XI(a,o);else if(aD(a)){if(!a.parent)return;if(xD(a.parent)&&a!==a.parent.left)return;if(dF(a.parent)&&a!==a.parent.expression)return;!function(o,a,u){const d=function(o,a,u){const d=S(o);if(!d)return;const p=eJ(d).toString(),f=h.get(p);if(f&&f>=a)return p;if(h.set(p,a),f){for(const e of s)e.usages.get(o.text)&&e.usages.set(o.text,{usage:a,symbol:d,node:o});return p}const m=d.getDeclarations(),g=m&&b(m,e=>e.getSourceFile()===r);if(g&&!CX(n,g.getStart(),g.end)){if(2&e.facts&&2===a){const e=Rp(o,M4.cannotExtractRangeThatContainsWritesToReferencesLocatedOutsideOfTheTargetRangeInGenerators);for(const t of l)t.push(e);for(const t of _)t.push(e)}for(let e=0;e0){const e=new Map;let n=0;for(let r=v;void 0!==r&&n{s[n].typeParameterUsages.set(t,e)}),n++),xp(r))for(const t of _l(r)){const n=i.getTypeAtLocation(t);a.has(n.id.toString())&&e.set(n.id.toString(),n)}un.assert(n===t.length,"Should have iterated all scopes")}u.length&&XI(bp(t[0],t[0].parent)?t[0]:Ep(t[0]),function t(n){if(n===e.range||Q4(e.range)&&e.range.includes(n))return;const r=aD(n)?S(n):i.getSymbolAtLocation(n);if(r){const e=b(u,e=>e.symbol===r);if(e)if(lE(e)){const t=e.symbol.id.toString();d.has(t)||(p.push(e),d.set(t,!0))}else f=f||e}XI(n,t)});for(let n=0;n0&&(r.usages.size>0||r.typeParameterUsages.size>0)){const t=Q4(e.range)?e.range[0]:e.range;_[n].push(Rp(t,M4.cannotAccessVariablesFromNestedScopes))}16&e.facts&&u_(t[n])&&l[n].push(Rp(e.thisNode,M4.cannotExtractFunctionsContainingThisToMethod));let i,o=!1;if(s[n].usages.forEach(e=>{2===e.usage&&(o=!0,106500&e.symbol.flags&&e.symbol.valueDeclaration&&wv(e.symbol.valueDeclaration,8)&&(i=e.symbol.valueDeclaration))}),un.assert(Q4(e.range)||0===p.length,"No variable declarations expected if something was extracted"),o&&!Q4(e.range)){const t=Rp(e.range,M4.cannotWriteInExpression);l[n].push(t),_[n].push(t)}else if(i&&n>0){const e=Rp(i,M4.cannotExtractReadonlyPropertyInitializerOutsideConstructor);l[n].push(e),_[n].push(e)}else if(f){const e=Rp(f,M4.cannotExtractExportedEntity);l[n].push(e),_[n].push(e)}}return{target:y,usagesPerScope:s,functionErrorsPerScope:l,constantErrorsPerScope:_,exposedVariableDeclarations:p};function k(e){const t=i.getSymbolWalker(()=>(o.throwIfCancellationRequested(),!0)),{visitedTypes:n}=t.walkType(e);for(const e of n)e.isTypeParameter()&&a.set(e.id.toString(),e)}function S(e){return e.parent&&iP(e.parent)&&e.parent.name===e?i.getShorthandAssignmentValueSymbol(e.parent):i.getSymbolAtLocation(e)}function T(e,t,n){if(!e)return;const r=e.getDeclarations();if(r&&r.some(e=>e.parent===t))return mw.createIdentifier(e.name);const i=T(e.parent,t,n);return void 0!==i?n?mw.createQualifiedName(i,mw.createIdentifier(e.name)):mw.createPropertyAccessExpression(i,e.name):void 0}}(e,r,i,n,t.program.getTypeChecker(),t.cancellationToken);return{scopes:r,affectedTextRange:i,readsAndWrites:o}}function K4(e,t){let n;const r=e.symbol;if(r&&r.declarations)for(const e of r.declarations)(void 0===n||e.posmw.createShorthandPropertyAssignment(e.symbol.name)),r=E(t,e=>mw.createShorthandPropertyAssignment(e.symbol.name));return void 0===n?r:void 0===r?n:n.concat(r)}function Q4(e){return Qe(e)}function Y4(e){const{parent:t}=e;if(307===t.kind)return!1;switch(e.kind){case 11:return 273!==t.kind&&277!==t.kind;case 231:case 207:case 209:return!1;case 80:return 209!==t.kind&&277!==t.kind&&282!==t.kind}return!0}function Z4(e){return e8(e)||(zE(e)||qE(e)||WE(e))&&(zE(e.parent)||WE(e.parent))}function e8(e){return UN(e)&&e.parent&&KE(e.parent)}var t8={},n8="Generate 'get' and 'set' accessors",r8=Vx(_a.Generate_get_and_set_accessors),i8={name:n8,description:r8,kind:"refactor.rewrite.property.generateAccessors"};Z2(n8,{kinds:[i8.kind],getEditsForAction:function(e,t){if(!e.endPosition)return;const n=T7.getAccessorConvertiblePropertyAtPosition(e.file,e.program,e.startPosition,e.endPosition);un.assert(n&&!s3(n),"Expected applicable refactor info");const r=T7.generateAccessorFromProperty(e.file,e.program,e.startPosition,e.endPosition,e,t);if(!r)return;const i=e.file.fileName,o=n.renameAccessor?n.accessorName:n.fieldName;return{renameFilename:i,renameLocation:(aD(o)?0:-1)+ZY(r,i,o.text,TD(n.declaration)),edits:r}},getAvailableActions(e){if(!e.endPosition)return l;const t=T7.getAccessorConvertiblePropertyAtPosition(e.file,e.program,e.startPosition,e.endPosition,"invoked"===e.triggerReason);return t?s3(t)?e.preferences.provideRefactorNotApplicableReason?[{name:n8,description:r8,actions:[{...i8,notApplicableReason:t.error}]}]:l:[{name:n8,description:r8,actions:[i8]}]:l}});var o8={},a8="Infer function return type",s8=Vx(_a.Infer_function_return_type),c8={name:a8,description:s8,kind:"refactor.rewrite.function.returnType"};function l8(e){if(Em(e.file)||!c3(c8.kind,e.kind))return;const t=uc(WX(e.file,e.startPosition),e=>VF(e)||e.parent&&bF(e.parent)&&(39===e.kind||e.parent.body===e)?"quit":function(e){switch(e.kind){case 263:case 219:case 220:case 175:return!0;default:return!1}}(e));if(!t||!t.body||t.type)return{error:Vx(_a.Return_type_must_be_inferred_from_a_function)};const n=e.program.getTypeChecker();let r;if(n.isImplementationOfOverload(t)){const e=n.getTypeAtLocation(t).getCallSignatures();e.length>1&&(r=n.getUnionType(B(e,e=>e.getReturnType())))}if(!r){const e=n.getSignatureFromDeclaration(t);if(e){const i=n.getTypePredicateOfSignature(e);if(i&&i.type){const e=n.typePredicateToTypePredicateNode(i,t,1,8);if(e)return{declaration:t,returnTypeNode:e}}else r=n.getReturnTypeOfSignature(e)}}if(!r)return{error:Vx(_a.Could_not_determine_function_return_type)};const i=n.typeToTypeNode(r,t,1,8);return i?{declaration:t,returnTypeNode:i}:void 0}Z2(a8,{kinds:[c8.kind],getEditsForAction:function(e){const t=l8(e);if(t&&!s3(t))return{renameFilename:void 0,renameLocation:void 0,edits:jue.ChangeTracker.with(e,n=>function(e,t,n,r){const i=OX(n,22,e),o=bF(n)&&void 0===i,a=o?ge(n.parameters):i;a&&(o&&(t.insertNodeBefore(e,a,mw.createToken(21)),t.insertNodeAfter(e,a,mw.createToken(22))),t.insertNodeAt(e,a.end,r,{prefix:": "}))}(e.file,n,t.declaration,t.returnTypeNode))}},getAvailableActions:function(e){const t=l8(e);return t?s3(t)?e.preferences.provideRefactorNotApplicableReason?[{name:a8,description:s8,actions:[{...c8,notApplicableReason:t.error}]}]:l:[{name:a8,description:s8,actions:[c8]}]:l}});var _8=(e=>(e[e.typeOffset=8]="typeOffset",e[e.modifierMask=255]="modifierMask",e))(_8||{}),u8=(e=>(e[e.class=0]="class",e[e.enum=1]="enum",e[e.interface=2]="interface",e[e.namespace=3]="namespace",e[e.typeParameter=4]="typeParameter",e[e.type=5]="type",e[e.parameter=6]="parameter",e[e.variable=7]="variable",e[e.enumMember=8]="enumMember",e[e.property=9]="property",e[e.function=10]="function",e[e.member=11]="member",e))(u8||{}),d8=(e=>(e[e.declaration=0]="declaration",e[e.static=1]="static",e[e.async=2]="async",e[e.readonly=3]="readonly",e[e.defaultLibrary=4]="defaultLibrary",e[e.local=5]="local",e))(d8||{});function p8(e,t,n,r){const i=f8(e,t,n,r);un.assert(i.spans.length%3==0);const o=i.spans,a=[];for(let e=0;ee(r)||r.isUnion()&&r.types.some(e);if(6!==n&&e(e=>e.getConstructSignatures().length>0))return 0;if(e(e=>e.getCallSignatures().length>0)&&!e(e=>e.getProperties().length>0)||function(e){for(;h8(e);)e=e.parent;return fF(e.parent)&&e.parent.expression===e}(t))return 9===n?11:10}}return n}(o,c,i);const s=n.valueDeclaration;if(s){const r=ic(s),o=ac(s);256&r&&(a|=2),1024&r&&(a|=4),0!==i&&2!==i&&(8&r||2&o||8&n.getFlags())&&(a|=8),7!==i&&10!==i||!function(e,t){return lF(e)&&(e=g8(e)),lE(e)?(!sP(e.parent.parent.parent)||nP(e.parent))&&e.getSourceFile()===t:!!uE(e)&&(!sP(e.parent)&&e.getSourceFile()===t)}(s,t)||(a|=32),e.isSourceFileDefaultLibrary(s.getSourceFile())&&(a|=16)}else n.declarations&&n.declarations.some(t=>e.isSourceFileDefaultLibrary(t.getSourceFile()))&&(a|=16);r(c,i,a)}}}XI(c,s),a=l}(t)}(e,t,n,(e,n,r)=>{i.push(e.getStart(t),e.getWidth(t),(n+1<<8)+r)},r),i}function g8(e){for(;;){if(!lF(e.parent.parent))return e.parent.parent;e=e.parent.parent}}function h8(e){return xD(e.parent)&&e.parent.right===e||dF(e.parent)&&e.parent.name===e}var y8=new Map([[261,7],[170,6],[173,9],[268,3],[267,1],[307,8],[264,0],[175,11],[263,10],[219,10],[174,11],[178,9],[179,9],[172,9],[265,2],[266,5],[169,4],[304,9],[305,9]]),v8="0.8";function b8(e,t,n,r){const i=Dl(e)?new x8(e,t,n):80===e?new w8(80,t,n):81===e?new N8(81,t,n):new C8(e,t,n);return i.parent=r,i.flags=101441536&r.flags,i}var x8=class{constructor(e,t,n){this.pos=t,this.end=n,this.kind=e,this.id=0,this.flags=0,this.modifierFlagsCache=0,this.transformFlags=0,this.parent=void 0,this.original=void 0,this.emitNode=void 0}assertHasRealPosition(e){un.assert(!XS(this.pos)&&!XS(this.end),e||"Node must have a real position for this operation")}getSourceFile(){return vd(this)}getStart(e,t){return this.assertHasRealPosition(),zd(this,e,t)}getFullStart(){return this.assertHasRealPosition(),this.pos}getEnd(){return this.assertHasRealPosition(),this.end}getWidth(e){return this.assertHasRealPosition(),this.getEnd()-this.getStart(e)}getFullWidth(){return this.assertHasRealPosition(),this.end-this.pos}getLeadingTriviaWidth(e){return this.assertHasRealPosition(),this.getStart(e)-this.pos}getFullText(e){return this.assertHasRealPosition(),(e||this.getSourceFile()).text.substring(this.pos,this.end)}getText(e){return this.assertHasRealPosition(),e||(e=this.getSourceFile()),e.text.substring(this.getStart(e),this.getEnd())}getChildCount(e){return this.getChildren(e).length}getChildAt(e,t){return this.getChildren(t)[e]}getChildren(e=vd(this)){return this.assertHasRealPosition("Node without a real position cannot be scanned and thus has no token nodes - use forEachChild and collect the result if that's fine"),eA(this,e)??tA(this,e,function(e,t){const n=[];if(Tu(e))return e.forEachChild(e=>{n.push(e)}),n;const r=(null==t?void 0:t.languageVariant)??0;qG.setText((t||e.getSourceFile()).text),qG.setLanguageVariant(r);let i=e.pos;const o=t=>{k8(n,i,t.pos,e),n.push(t),i=t.end};return d(e.jsDoc,o),i=e.pos,e.forEachChild(o,t=>{k8(n,i,t.pos,e),n.push(function(e,t){const n=b8(353,e.pos,e.end,t),r=[];let i=e.pos;for(const n of e)k8(r,i,n.pos,t),r.push(n),i=n.end;return k8(r,i,e.end,t),n._children=r,n}(t,e)),i=t.end}),k8(n,i,e.end,e),qG.setText(void 0),qG.setLanguageVariant(0),n}(this,e))}getFirstToken(e){this.assertHasRealPosition();const t=this.getChildren(e);if(!t.length)return;const n=b(t,e=>e.kind<310||e.kind>352);return n.kind<167?n:n.getFirstToken(e)}getLastToken(e){this.assertHasRealPosition();const t=ye(this.getChildren(e));if(t)return t.kind<167?t:t.getLastToken(e)}forEachChild(e,t){return XI(this,e,t)}};function k8(e,t,n,r){for(qG.resetTokenState(t);t"inheritDoc"===e.tagName.text||"inheritdoc"===e.tagName.text)}function P8(e,t){if(!e)return l;let n=wle.getJsDocTagsFromDeclarations(e,t);if(t&&(0===n.length||e.some(E8))){const r=new Set;for(const i of e){const e=I8(t,i,e=>{var n;if(!r.has(e))return r.add(e),178===i.kind||179===i.kind?e.getContextualJsDocTags(i,t):1===(null==(n=e.declarations)?void 0:n.length)?e.getJsDocTags(t):void 0});e&&(n=[...e,...n])}}return n}function A8(e,t){if(!e)return l;let n=wle.getJsDocCommentsFromDeclarations(e,t);if(t&&(0===n.length||e.some(E8))){const r=new Set;for(const i of e){const e=I8(t,i,e=>{if(!r.has(e))return r.add(e),178===i.kind||179===i.kind?e.getContextualDocumentationComment(i,t):e.getDocumentationComment(t)});e&&(n=0===n.length?e.slice():e.concat(BY(),n))}}return n}function I8(e,t,n){var r;const i=177===(null==(r=t.parent)?void 0:r.kind)?t.parent.parent:t.parent;if(!i)return;const o=Fv(t);return f(xh(i),r=>{const i=e.getTypeAtLocation(r),a=o&&i.symbol?e.getTypeOfSymbol(i.symbol):i,s=e.getPropertyOfType(a,t.symbol.name);return s?n(s):void 0})}var O8=class extends x8{constructor(e,t,n){super(e,t,n)}update(e,t){return iO(this,e,t)}getLineAndCharacterOfPosition(e){return za(this,e)}getLineStarts(){return Ma(this)}getPositionOfLineAndCharacter(e,t,n){return ja(Ma(this),e,t,this.text,n)}getLineEndOfPosition(e){const{line:t}=this.getLineAndCharacterOfPosition(e),n=this.getLineStarts();let r;t+1>=n.length&&(r=this.getEnd()),r||(r=n[t+1]-1);const i=this.getFullText();return"\n"===i[r]&&"\r"===i[r-1]?r-1:r}getNamedDeclarations(){return this.namedDeclarations||(this.namedDeclarations=this.computeNamedDeclarations()),this.namedDeclarations}computeNamedDeclarations(){const e=$e();return this.forEachChild(function r(i){switch(i.kind){case 263:case 219:case 175:case 174:const o=i,a=n(o);if(a){const t=function(t){let n=e.get(t);return n||e.set(t,n=[]),n}(a),n=ye(t);n&&o.parent===n.parent&&o.symbol===n.symbol?o.body&&!n.body&&(t[t.length-1]=o):t.push(o)}XI(i,r);break;case 264:case 232:case 265:case 266:case 267:case 268:case 272:case 282:case 277:case 274:case 275:case 178:case 179:case 188:t(i),XI(i,r);break;case 170:if(!Nv(i,31))break;case 261:case 209:{const e=i;if(k_(e.name)){XI(e.name,r);break}e.initializer&&r(e.initializer)}case 307:case 173:case 172:t(i);break;case 279:const s=i;s.exportClause&&(OE(s.exportClause)?d(s.exportClause.elements,r):r(s.exportClause.name));break;case 273:const c=i.importClause;c&&(c.name&&t(c.name),c.namedBindings&&(275===c.namedBindings.kind?t(c.namedBindings):d(c.namedBindings.elements,r)));break;case 227:0!==tg(i)&&t(i);default:XI(i,r)}}),e;function t(t){const r=n(t);r&&e.add(r,t)}function n(e){const t=Tc(e);return t&&(kD(t)&&dF(t.expression)?t.expression.name.text:t_(t)?VQ(t):void 0)}}},L8=class{constructor(e,t,n){this.fileName=e,this.text=t,this.skipTrivia=n||(e=>e)}getLineAndCharacterOfPosition(e){return za(this,e)}};function j8(e){let t=!0;for(const n in e)if(De(e,n)&&!M8(n)){t=!1;break}if(t)return e;const n={};for(const t in e)De(e,t)&&(n[M8(t)?t:t.charAt(0).toLowerCase()+t.substr(1)]=e[t]);return n}function M8(e){return!e.length||e.charAt(0)===e.charAt(0).toLowerCase()}function R8(e){return e?E(e,e=>e.text).join(""):""}function B8(){return{target:1,jsx:1}}function J8(){return T7.getSupportedErrorCodes()}var z8=class{constructor(e){this.host=e}getCurrentSourceFile(e){var t,n,r,i,o,a,s,c;const l=this.host.getScriptSnapshot(e);if(!l)throw new Error("Could not find file: '"+e+"'.");const _=WY(e,this.host),u=this.host.getScriptVersion(e);let d;if(this.currentFileName!==e)d=U8(e,l,{languageVersion:99,impliedNodeFormat:AV(Uo(e,this.host.getCurrentDirectory(),(null==(r=null==(n=(t=this.host).getCompilerHost)?void 0:n.call(t))?void 0:r.getCanonicalFileName)||My(this.host)),null==(c=null==(s=null==(a=null==(o=(i=this.host).getCompilerHost)?void 0:o.call(i))?void 0:a.getModuleResolutionCache)?void 0:s.call(a))?void 0:c.getPackageJsonInfoCache(),this.host,this.host.getCompilationSettings()),setExternalModuleIndicator:pk(this.host.getCompilationSettings()),jsDocParsingMode:0},u,!0,_);else if(this.currentFileVersion!==u){const e=l.getChangeRange(this.currentFileScriptSnapshot);d=V8(this.currentSourceFile,l,u,e)}return d&&(this.currentFileVersion=u,this.currentFileName=e,this.currentFileScriptSnapshot=l,this.currentSourceFile=d),this.currentSourceFile}};function q8(e,t,n){e.version=n,e.scriptSnapshot=t}function U8(e,t,n,r,i,o){const a=eO(e,zQ(t),n,i,o);return q8(a,t,r),a}function V8(e,t,n,r,i){if(r&&n!==e.version){let o;const a=0!==r.span.start?e.text.substr(0,r.span.start):"",s=Fs(r.span)!==e.text.length?e.text.substr(Fs(r.span)):"";if(0===r.newLength)o=a&&s?a+s:a||s;else{const e=t.getText(r.span.start,r.span.start+r.newLength);o=a&&s?a+e+s:a?a+e:e+s}const c=iO(e,o,r,i);return q8(c,t,n),c.nameTable=void 0,e!==c&&e.scriptSnapshot&&(e.scriptSnapshot.dispose&&e.scriptSnapshot.dispose(),e.scriptSnapshot=void 0),c}const o={languageVersion:e.languageVersion,impliedNodeFormat:e.impliedNodeFormat,setExternalModuleIndicator:e.setExternalModuleIndicator,jsDocParsingMode:e.jsDocParsingMode};return U8(e.fileName,t,o,n,!0,e.scriptKind)}var W8={isCancellationRequested:it,throwIfCancellationRequested:rt},$8=class{constructor(e){this.cancellationToken=e}isCancellationRequested(){return this.cancellationToken.isCancellationRequested()}throwIfCancellationRequested(){var e;if(this.isCancellationRequested())throw null==(e=Hn)||e.instant(Hn.Phase.Session,"cancellationThrown",{kind:"CancellationTokenObject"}),new Cr}},H8=class{constructor(e,t=20){this.hostCancellationToken=e,this.throttleWaitMilliseconds=t,this.lastCancellationCheckTime=0}isCancellationRequested(){const e=Un();return Math.abs(e-this.lastCancellationCheckTime)>=this.throttleWaitMilliseconds&&(this.lastCancellationCheckTime=e,this.hostCancellationToken.isCancellationRequested())}throwIfCancellationRequested(){var e;if(this.isCancellationRequested())throw null==(e=Hn)||e.instant(Hn.Phase.Session,"cancellationThrown",{kind:"ThrottledCancellationToken"}),new Cr}},K8=["getSemanticDiagnostics","getSuggestionDiagnostics","getCompilerOptionsDiagnostics","getSemanticClassifications","getEncodedSemanticClassifications","getCodeFixesAtPosition","getCombinedCodeFix","applyCodeActionCommand","organizeImports","getEditsForFileRename","getEmitOutput","getApplicableRefactors","getEditsForRefactor","prepareCallHierarchy","provideCallHierarchyIncomingCalls","provideCallHierarchyOutgoingCalls","provideInlayHints","getSupportedCodeFixes","getPasteEdits"],G8=[...K8,"getCompletionsAtPosition","getCompletionEntryDetails","getCompletionEntrySymbol","getSignatureHelpItems","getQuickInfoAtPosition","getDefinitionAtPosition","getDefinitionAndBoundSpan","getImplementationAtPosition","getTypeDefinitionAtPosition","getReferencesAtPosition","findReferences","getDocumentHighlights","getNavigateToItems","getRenameInfo","findRenameLocations","getApplicableRefactors","preparePasteEditsForFile"];function X8(e,t=I0(e.useCaseSensitiveFileNames&&e.useCaseSensitiveFileNames(),e.getCurrentDirectory(),e.jsDocParsingMode),n){var r;let i;i=void 0===n?0:"boolean"==typeof n?n?2:0:n;const o=new z8(e);let a,s,c=0;const _=e.getCancellationToken?new $8(e.getCancellationToken()):W8,u=e.getCurrentDirectory();function p(t){e.log&&e.log(t)}Ux(null==(r=e.getLocalizedDiagnosticMessages)?void 0:r.bind(e));const f=jy(e),m=Wt(f),g=v1({useCaseSensitiveFileNames:()=>f,getCurrentDirectory:()=>u,getProgram:v,fileExists:We(e,e.fileExists),readFile:We(e,e.readFile),getDocumentPositionMapper:We(e,e.getDocumentPositionMapper),getSourceFileLike:We(e,e.getSourceFileLike),log:p});function h(e){const t=a.getSourceFile(e);if(!t){const t=new Error(`Could not find source file: '${e}'.`);throw t.ProgramFiles=a.getSourceFiles().map(e=>e.fileName),t}return t}function y(){e.updateFromProject&&!e.updateFromProjectInProgress?e.updateFromProject():function(){var n,r,o;if(un.assert(2!==i),e.getProjectVersion){const t=e.getProjectVersion();if(t){if(s===t&&!(null==(n=e.hasChangedAutomaticTypeDirectiveNames)?void 0:n.call(e)))return;s=t}}const l=e.getTypeRootsVersion?e.getTypeRootsVersion():0;c!==l&&(p("TypeRoots version has changed; provide new program"),a=void 0,c=l);const d=e.getScriptFileNames().slice(),h=e.getCompilationSettings()||{target:1,jsx:1},y=e.hasInvalidatedResolutions||it,v=We(e,e.hasInvalidatedLibResolutions)||it,b=We(e,e.hasChangedAutomaticTypeDirectiveNames),x=null==(r=e.getProjectReferences)?void 0:r.call(e);let k,S={getSourceFile:P,getSourceFileByPath:A,getCancellationToken:()=>_,getCanonicalFileName:m,useCaseSensitiveFileNames:()=>f,getNewLine:()=>Pb(h),getDefaultLibFileName:t=>e.getDefaultLibFileName(t),writeFile:rt,getCurrentDirectory:()=>u,fileExists:t=>e.fileExists(t),readFile:t=>e.readFile&&e.readFile(t),getSymlinkCache:We(e,e.getSymlinkCache),realpath:We(e,e.realpath),directoryExists:t=>Db(t,e),getDirectories:t=>e.getDirectories?e.getDirectories(t):[],readDirectory:(t,n,r,i,o)=>(un.checkDefined(e.readDirectory,"'LanguageServiceHost.readDirectory' must be implemented to correctly process 'projectReferences'"),e.readDirectory(t,n,r,i,o)),onReleaseOldSourceFile:function(t,n,r,i){var o;E(t,n),null==(o=e.onReleaseOldSourceFile)||o.call(e,t,n,r,i)},onReleaseParsedCommandLine:function(t,n,r){var i;e.getParsedCommandLine?null==(i=e.onReleaseParsedCommandLine)||i.call(e,t,n,r):n&&E(n.sourceFile,r)},hasInvalidatedResolutions:y,hasInvalidatedLibResolutions:v,hasChangedAutomaticTypeDirectiveNames:b,trace:We(e,e.trace),resolveModuleNames:We(e,e.resolveModuleNames),getModuleResolutionCache:We(e,e.getModuleResolutionCache),createHash:We(e,e.createHash),resolveTypeReferenceDirectives:We(e,e.resolveTypeReferenceDirectives),resolveModuleNameLiterals:We(e,e.resolveModuleNameLiterals),resolveTypeReferenceDirectiveReferences:We(e,e.resolveTypeReferenceDirectiveReferences),resolveLibrary:We(e,e.resolveLibrary),useSourceOfProjectReferenceRedirect:We(e,e.useSourceOfProjectReferenceRedirect),getParsedCommandLine:F,jsDocParsingMode:e.jsDocParsingMode,getGlobalTypingsCacheLocation:We(e,e.getGlobalTypingsCacheLocation)};const T=S.getSourceFile,{getSourceFileWithCache:C}=$U(S,e=>Uo(e,u,m),(...e)=>T.call(S,...e));S.getSourceFile=C,null==(o=e.setCompilerHost)||o.call(e,S);const w={useCaseSensitiveFileNames:f,fileExists:e=>S.fileExists(e),readFile:e=>S.readFile(e),directoryExists:e=>S.directoryExists(e),getDirectories:e=>S.getDirectories(e),realpath:S.realpath,readDirectory:(...e)=>S.readDirectory(...e),trace:S.trace,getCurrentDirectory:S.getCurrentDirectory,onUnRecoverableConfigFileDiagnostic:rt},N=t.getKeyForCompilationSettings(h);let D=new Set;return EV(a,d,h,(t,n)=>e.getScriptVersion(n),e=>S.fileExists(e),y,v,b,F,x)?(S=void 0,k=void 0,void(D=void 0)):(a=LV({rootNames:d,options:h,host:S,oldProgram:a,projectReferences:x}),S=void 0,k=void 0,D=void 0,g.clearCache(),void a.getTypeChecker());function F(t){const n=Uo(t,u,m),r=null==k?void 0:k.get(n);if(void 0!==r)return r||void 0;const i=e.getParsedCommandLine?e.getParsedCommandLine(t):function(e){const t=P(e,100);if(t)return t.path=Uo(e,u,m),t.resolvedPath=t.path,t.originalFileName=t.fileName,ej(t,w,Bo(Do(e),u),void 0,Bo(e,u))}(t);return(k||(k=new Map)).set(n,i||!1),i}function E(e,n){const r=t.getKeyForCompilationSettings(n);t.releaseDocumentWithKey(e.resolvedPath,r,e.scriptKind,e.impliedNodeFormat)}function P(e,t,n,r){return A(e,Uo(e,u,m),t,0,r)}function A(n,r,i,o,s){un.assert(S,"getOrCreateSourceFileByPath called after typical CompilerHost lifetime, check the callstack something with a reference to an old host.");const c=e.getScriptSnapshot(n);if(!c)return;const l=WY(n,e),_=e.getScriptVersion(n);if(!s){const o=a&&a.getSourceFileByPath(r);if(o){if(l===o.scriptKind||D.has(o.resolvedPath))return t.updateDocumentWithKey(n,r,e,N,c,_,l,i);t.releaseDocumentWithKey(o.resolvedPath,t.getKeyForCompilationSettings(a.getCompilerOptions()),o.scriptKind,o.impliedNodeFormat),D.add(o.resolvedPath)}}return t.acquireDocumentWithKey(n,r,e,N,c,_,l,i)}}()}function v(){if(2!==i)return y(),a;un.assert(void 0===a)}function b(){if(a){const e=t.getKeyForCompilationSettings(a.getCompilerOptions());d(a.getSourceFiles(),n=>t.releaseDocumentWithKey(n.resolvedPath,e,n.scriptKind,n.impliedNodeFormat)),a=void 0}}function x(e,t){if(Os(t,e))return;const n=uc(XX(e,Fs(t))||e,e=>Ls(e,t)),r=[];return k(t,n,r),e.end===t.start+t.length&&r.push(e.endOfFileToken),$(r,sP)?void 0:r}function k(e,t,n){return!!function(e,t){const n=t.start+t.length;return e.post.start}(t,e)&&(Os(e,t)?(S(t,n),!0):t0(t)?function(e,t,n){const r=[];return t.statements.filter(t=>k(e,t,r)).length===t.statements.length?(S(t,n),!0):(n.push(...r),!1)}(e,t,n):u_(t)?function(e,t,n){var r,i,o;const a=t=>qs(t,e);if((null==(r=t.modifiers)?void 0:r.some(a))||t.name&&a(t.name)||(null==(i=t.typeParameters)?void 0:i.some(a))||(null==(o=t.heritageClauses)?void 0:o.some(a)))return S(t,n),!0;const s=[];return t.members.filter(t=>k(e,t,s)).length===t.members.length?(S(t,n),!0):(n.push(...s),!1)}(e,t,n):(S(t,n),!0))}function S(e,t){for(;e.parent&&!fC(e);)e=e.parent;t.push(e)}function T(e,t,n,r){y();const i=n&&n.use===gce.FindReferencesUse.Rename?a.getSourceFiles().filter(e=>!a.isSourceFileDefaultLibrary(e)):a.getSourceFiles();return gce.findReferenceOrRenameEntries(a,_,i,e,t,n,r)}const C=new Map(Object.entries({19:20,21:22,23:24,32:30}));function w(t){return un.assertEqual(t.type,"install package"),e.installPackage?e.installPackage({fileName:(n=t.file,Uo(n,u,m)),packageName:t.packageName}):Promise.reject("Host does not implement `installPackage`");var n}function N(e,t){return{lineStarts:e.getLineStarts(),firstLine:e.getLineAndCharacterOfPosition(t.pos).line,lastLine:e.getLineAndCharacterOfPosition(t.end).line}}function D(e,t,n){const r=o.getCurrentSourceFile(e),i=[],{lineStarts:a,firstLine:s,lastLine:c}=N(r,t);let l=n||!1,_=Number.MAX_VALUE;const u=new Map,d=new RegExp(/\S/),p=sQ(r,a[s]),f=p?"{/*":"//";for(let e=s;e<=c;e++){const t=r.text.substring(a[e],r.getLineEndOfPosition(a[e])),i=d.exec(t);i&&(_=Math.min(_,i.index),u.set(e.toString(),i.index),t.substr(i.index,f.length)!==f&&(l=void 0===n||n))}for(let n=s;n<=c;n++){if(s!==c&&a[n]===t.end)continue;const o=u.get(n.toString());void 0!==o&&(p?i.push(...F(e,{pos:a[n]+_,end:r.getLineEndOfPosition(a[n])},l,p)):l?i.push({newText:f,span:{length:0,start:a[n]+_}}):r.text.substr(a[n]+o,f.length)===f&&i.push({newText:"",span:{length:f.length,start:a[n]+o}}))}return i}function F(e,t,n,r){var i;const a=o.getCurrentSourceFile(e),s=[],{text:c}=a;let l=!1,_=n||!1;const u=[];let{pos:d}=t;const p=void 0!==r?r:sQ(a,d),f=p?"{/*":"/*",m=p?"*/}":"*/",g=p?"\\{\\/\\*":"\\/\\*",h=p?"\\*\\/\\}":"\\*\\/";for(;d<=t.end;){const e=dQ(a,d+(c.substr(d,f.length)===f?f.length:0));if(e)p&&(e.pos--,e.end++),u.push(e.pos),3===e.kind&&u.push(e.end),l=!0,d=e.end+1;else{const e=c.substring(d,t.end).search(`(${g})|(${h})`);_=void 0!==n?n:_||!hY(c,d,-1===e?t.end:d+e),d=-1===e?t.end+1:d+e+m.length}}if(_||!l){2!==(null==(i=dQ(a,t.pos))?void 0:i.kind)&&Z(u,t.pos,vt),Z(u,t.end,vt);const e=u[0];c.substr(e,f.length)!==f&&s.push({newText:f,span:{length:0,start:e}});for(let e=1;e0?e-m.length:0,n=c.substr(t,m.length)===m?m.length:0;s.push({newText:"",span:{length:f.length,start:e-n}})}return s}function P({openingElement:e,closingElement:t,parent:n}){return!xO(e.tagName,t.tagName)||zE(n)&&xO(e.tagName,n.openingElement.tagName)&&P(n)}function A({closingFragment:e,parent:t}){return!!(262144&e.flags)||WE(t)&&A(t)}function I(t,n,r,i,o,a){const[s,c]="number"==typeof n?[n,void 0]:[n.pos,n.end];return{file:t,startPosition:s,endPosition:c,program:v(),host:e,formatContext:ude.getFormatContext(i,e),cancellationToken:_,preferences:r,triggerReason:o,kind:a}}C.forEach((e,t)=>C.set(e.toString(),Number(t)));const L={dispose:function(){b(),e=void 0},cleanupSemanticCache:b,getSyntacticDiagnostics:function(e){return y(),a.getSyntacticDiagnostics(h(e),_).slice()},getSemanticDiagnostics:function(e){y();const t=h(e),n=a.getSemanticDiagnostics(t,_);if(!Dk(a.getCompilerOptions()))return n.slice();const r=a.getDeclarationDiagnostics(t,_);return[...n,...r]},getRegionSemanticDiagnostics:function(e,t){y();const n=h(e),r=a.getCompilerOptions();if(_T(n,r,a)||!pT(n,r)||a.getCachedSemanticDiagnostics(n))return;const i=function(e,t){const n=[],r=Vs(t.map(e=>AQ(e)));for(const t of r){const r=x(e,t);if(!r)return;n.push(...r)}if(n.length)return n}(n,t);if(!i)return;const o=Vs(i.map(e=>$s(e.getFullStart(),e.getEnd())));return{diagnostics:a.getSemanticDiagnostics(n,_,i).slice(),spans:o}},getSuggestionDiagnostics:function(e){return y(),S1(h(e),a,_)},getCompilerOptionsDiagnostics:function(){return y(),[...a.getOptionsDiagnostics(_),...a.getGlobalDiagnostics(_)]},getSyntacticClassifications:function(e,t){return E0(_,o.getCurrentSourceFile(e),t)},getSemanticClassifications:function(e,t,n){return y(),"2020"===(n||"original")?p8(a,_,h(e),t):T0(a.getTypeChecker(),_,h(e),a.getClassifiableNames(),t)},getEncodedSyntacticClassifications:function(e,t){return P0(_,o.getCurrentSourceFile(e),t)},getEncodedSemanticClassifications:function(e,t,n){return y(),"original"===(n||"original")?w0(a.getTypeChecker(),_,h(e),a.getClassifiableNames(),t):f8(a,_,h(e),t)},getCompletionsAtPosition:function(t,n,r=kG,i){const o={...r,includeCompletionsForModuleExports:r.includeCompletionsForModuleExports||r.includeExternalModuleExports,includeCompletionsWithInsertText:r.includeCompletionsWithInsertText||r.includeInsertTextCompletions};return y(),mae.getCompletionsAtPosition(e,a,p,h(t),n,o,r.triggerCharacter,r.triggerKind,_,i&&ude.getFormatContext(i,e),r.includeSymbol)},getCompletionEntryDetails:function(t,n,r,i,o,s=kG,c){return y(),mae.getCompletionEntryDetails(a,p,h(t),n,{name:r,source:o,data:c},e,i&&ude.getFormatContext(i,e),s,_)},getCompletionEntrySymbol:function(t,n,r,i,o=kG){return y(),mae.getCompletionEntrySymbol(a,p,h(t),n,{name:r,source:i},e,o)},getSignatureHelpItems:function(e,t,{triggerReason:n}=kG){y();const r=h(e);return W_e.getSignatureHelpItems(a,r,t,n,_)},getQuickInfoAtPosition:function(e,t,n,r){y();const i=h(e),o=WX(i,t);if(o===i)return;const s=a.getTypeChecker(),c=function(e){return mF(e.parent)&&e.pos===e.parent.pos?e.parent.expression:WD(e.parent)&&e.pos===e.parent.pos||uf(e.parent)&&e.parent.name===e||YE(e.parent)?e.parent:e}(o),l=function(e,t){const n=Y8(e);if(n){const e=t.getContextualType(n.parent),r=e&&Z8(n,t,e,!1);if(r&&1===r.length)return ge(r)}return t.getSymbolAtLocation(e)}(c,s);if(!l||s.isUnknownSymbol(l)){const e=function(e,t,n){switch(t.kind){case 80:return!(16777216&t.flags&&!Em(t)&&(172===t.parent.kind&&t.parent.name===t||uc(t,e=>170===e.kind))||cX(t)||lX(t)||kl(t.parent));case 212:case 167:return!dQ(e,n);case 110:case 198:case 108:case 203:return!0;case 237:return uf(t);default:return!1}}(i,c,t)?s.getTypeAtLocation(c):void 0;return e&&{kind:"",kindModifiers:"",textSpan:FQ(c,i),displayParts:s.runWithCancellationToken(_,t=>zY(t,e,hX(c),void 0,r)),documentation:e.symbol?e.symbol.getDocumentationComment(s):void 0,tags:e.symbol?e.symbol.getJsDocTags(s):void 0}}const{symbolKind:u,displayParts:d,documentation:p,tags:f,canIncreaseVerbosityLevel:m}=s.runWithCancellationToken(_,e=>Nue.getSymbolDisplayPartsDocumentationAndSymbolKind(e,l,i,hX(c),c,void 0,void 0,n??$u,r));return{kind:u,kindModifiers:Nue.getSymbolModifiers(s,l),textSpan:FQ(c,i),displayParts:d,documentation:p,tags:f,canIncreaseVerbosityLevel:m}},getDefinitionAtPosition:function(e,t,n,r){return y(),rle.getDefinitionAtPosition(a,h(e),t,n,r)},getDefinitionAndBoundSpan:function(e,t){return y(),rle.getDefinitionAndBoundSpan(a,h(e),t)},getImplementationAtPosition:function(e,t){return y(),gce.getImplementationsAtPosition(a,_,a.getSourceFiles(),h(e),t)},getTypeDefinitionAtPosition:function(e,t){return y(),rle.getTypeDefinitionAtPosition(a.getTypeChecker(),h(e),t)},getReferencesAtPosition:function(e,t){return y(),T(WX(h(e),t),t,{use:gce.FindReferencesUse.References},gce.toReferenceEntry)},findReferences:function(e,t){return y(),gce.findReferencedSymbols(a,_,a.getSourceFiles(),h(e),t)},getFileReferences:function(e){return y(),gce.Core.getReferencesForFileName(e,a,a.getSourceFiles()).map(gce.toReferenceEntry)},getDocumentHighlights:function(e,t,n){const r=Jo(e);un.assert(n.some(e=>Jo(e)===r)),y();const i=B(n,e=>a.getSourceFile(e)),o=h(e);return y0.getDocumentHighlights(a,_,o,t,i)},getNameOrDottedNameSpan:function(e,t,n){const r=o.getCurrentSourceFile(e),i=WX(r,t);if(i===r)return;switch(i.kind){case 212:case 167:case 11:case 97:case 112:case 106:case 108:case 110:case 198:case 80:break;default:return}let a=i;for(;;)if(uX(a)||_X(a))a=a.parent;else{if(!pX(a))break;if(268!==a.parent.parent.kind||a.parent.parent.body!==a.parent)break;a=a.parent.parent.name}return $s(a.getStart(),i.getEnd())},getBreakpointStatementAtPosition:function(e,t){const n=o.getCurrentSourceFile(e);return n7.spanInSourceFileAtLocation(n,t)},getNavigateToItems:function(e,t,n,r=!1,i=!1){return y(),W1(n?[h(n)]:a.getSourceFiles(),a.getTypeChecker(),_,e,t,r,i)},getRenameInfo:function(e,t,n){return y(),R_e.getRenameInfo(a,h(e),t,n||{})},getSmartSelectionRange:function(e,t){return gue.getSmartSelectionRange(t,o.getCurrentSourceFile(e))},findRenameLocations:function(e,t,n,r,i){y();const o=h(e),a=VX(WX(o,t));if(R_e.nodeIsEligibleForRename(a)){if(aD(a)&&(UE(a.parent)||VE(a.parent))&&Ey(a.escapedText)){const{openingElement:e,closingElement:t}=a.parent.parent;return[e,t].map(e=>{const t=FQ(e.tagName,o);return{fileName:o.fileName,textSpan:t,...gce.toContextSpan(t,o,e.parent)}})}{const e=tY(o,i??kG),s="boolean"==typeof i?i:null==i?void 0:i.providePrefixAndSuffixTextForRename;return T(a,t,{findInStrings:n,findInComments:r,providePrefixAndSuffixTextForRename:s,use:gce.FindReferencesUse.Rename},(t,n,r)=>gce.toRenameLocation(t,n,r,s||!1,e))}}},getNavigationBarItems:function(e){return u2(o.getCurrentSourceFile(e),_)},getNavigationTree:function(e){return d2(o.getCurrentSourceFile(e),_)},getOutliningSpans:function(e){const t=o.getCurrentSourceFile(e);return F_e.collectElements(t,_)},getTodoComments:function(e,t){y();const n=h(e);_.throwIfCancellationRequested();const r=n.text,i=[];if(t.length>0&&!n.fileName.includes("/node_modules/")){const e=function(){const e="("+/(?:^(?:\s|\*)*)/.source+"|"+/(?:\/{2,}\s*)/.source+"|"+/(?:\/\*+\s*)/.source+")",n="(?:"+E(t,e=>"("+e.text.replace(/[-[\]/{}()*+?.\\^$|]/g,"\\$&")+")").join("|")+")";return new RegExp(e+"("+n+/(?:.*?)/.source+")"+/(?:$|\*\/)/.source,"gim")}();let a;for(;a=e.exec(r);){_.throwIfCancellationRequested();const e=3;un.assert(a.length===t.length+e);const s=a[1],c=a.index+s.length;if(!dQ(n,c))continue;let l;for(let n=0;n=97&&e<=122||e>=65&&e<=90||e>=48&&e<=57}},getBraceMatchingAtPosition:function(e,t){const n=o.getCurrentSourceFile(e),r=$X(n,t),i=r.getStart(n)===t?C.get(r.kind.toString()):void 0,a=i&&OX(r.parent,i,n);return a?[FQ(r,n),FQ(a,n)].sort((e,t)=>e.start-t.start):l},getIndentationAtPosition:function(e,t,n){let r=Un();const i=j8(n),a=o.getCurrentSourceFile(e);p("getIndentationAtPosition: getCurrentSourceFile: "+(Un()-r)),r=Un();const s=ude.SmartIndenter.getIndentation(t,a,i);return p("getIndentationAtPosition: computeIndentation : "+(Un()-r)),s},getFormattingEditsForRange:function(t,n,r,i){const a=o.getCurrentSourceFile(t);return ude.formatSelection(n,r,a,ude.getFormatContext(j8(i),e))},getFormattingEditsForDocument:function(t,n){return ude.formatDocument(o.getCurrentSourceFile(t),ude.getFormatContext(j8(n),e))},getFormattingEditsAfterKeystroke:function(t,n,r,i){const a=o.getCurrentSourceFile(t),s=ude.getFormatContext(j8(i),e);if(!dQ(a,n))switch(r){case"{":return ude.formatOnOpeningCurly(n,a,s);case"}":return ude.formatOnClosingCurly(n,a,s);case";":return ude.formatOnSemicolon(n,a,s);case"\n":return ude.formatOnEnter(n,a,s)}return[]},getDocCommentTemplateAtPosition:function(t,n,r,i){const a=i?ude.getFormatContext(i,e).options:void 0;return wle.getDocCommentTemplateAtPosition(RY(e,a),o.getCurrentSourceFile(t),n,r)},isValidBraceCompletionAtPosition:function(e,t,n){if(60===n)return!1;const r=o.getCurrentSourceFile(e);if(nQ(r,t))return!1;if(rQ(r,t))return 123===n;if(oQ(r,t))return!1;switch(n){case 39:case 34:case 96:return!dQ(r,t)}return!0},getJsxClosingTagAtPosition:function(e,t){const n=o.getCurrentSourceFile(e),r=YX(t,n);if(!r)return;const i=32===r.kind&&UE(r.parent)?r.parent.parent:VN(r)&&zE(r.parent)?r.parent:void 0;if(i&&P(i))return{newText:``};const a=32===r.kind&&$E(r.parent)?r.parent.parent:VN(r)&&WE(r.parent)?r.parent:void 0;return a&&A(a)?{newText:""}:void 0},getLinkedEditingRangeAtPosition:function(e,t){const n=o.getCurrentSourceFile(e),r=YX(t,n);if(!r||308===r.parent.kind)return;const i="[a-zA-Z0-9:\\-\\._$]*";if(WE(r.parent.parent)){const e=r.parent.parent.openingFragment,o=r.parent.parent.closingFragment;if(yd(e)||yd(o))return;const a=e.getStart(n)+1,s=o.getStart(n)+2;if(t!==a&&t!==s)return;return{ranges:[{start:a,length:0},{start:s,length:0}],wordPattern:i}}{const e=uc(r.parent,e=>!(!UE(e)&&!VE(e)));if(!e)return;un.assert(UE(e)||VE(e),"tag should be opening or closing element");const o=e.parent.openingElement,a=e.parent.closingElement,s=o.tagName.getStart(n),c=o.tagName.end,l=a.tagName.getStart(n),_=a.tagName.end;if(s===o.getStart(n)||l===a.getStart(n)||c===o.getEnd()||_===a.getEnd())return;if(!(s<=t&&t<=c||l<=t&&t<=_))return;if(o.tagName.getText(n)!==a.tagName.getText(n))return;return{ranges:[{start:s,length:c-s},{start:l,length:_-l}],wordPattern:i}}},getSpanOfEnclosingComment:function(e,t,n){const r=o.getCurrentSourceFile(e),i=ude.getRangeOfEnclosingComment(r,t);return!i||n&&3!==i.kind?void 0:AQ(i)},getCodeFixesAtPosition:function(t,n,r,i,o,s=kG){y();const c=h(t),l=$s(n,r),u=ude.getFormatContext(o,e);return O(Q(i,mt,vt),t=>(_.throwIfCancellationRequested(),T7.getFixes({errorCode:t,sourceFile:c,span:l,program:a,host:e,cancellationToken:_,formatContext:u,preferences:s})))},getCombinedCodeFix:function(t,n,r,i=kG){y(),un.assert("file"===t.type);const o=h(t.fileName),s=ude.getFormatContext(r,e);return T7.getAllFixes({fixId:n,sourceFile:o,program:a,host:e,cancellationToken:_,formatContext:s,preferences:i})},applyCodeActionCommand:function(e,t){const n="string"==typeof e?t:e;return Qe(n)?Promise.all(n.map(e=>w(e))):w(n)},organizeImports:function(t,n,r=kG){y(),un.assert("file"===t.type);const i=h(t.fileName);if(yd(i))return l;const o=ude.getFormatContext(n,e),s=t.mode??(t.skipDestructiveCodeActions?"SortAndCombine":"All");return Yle.organizeImports(i,o,e,a,r,s)},getEditsForFileRename:function(t,n,r,i=kG){return M0(v(),t,n,e,ude.getFormatContext(r,e),i,g)},getEmitOutput:function(t,n,r){y();const i=h(t),o=e.getCustomTransformers&&e.getCustomTransformers();return GV(a,i,!!n,_,o,r)},getNonBoundSourceFile:function(e){return o.getCurrentSourceFile(e)},getProgram:v,getCurrentProgram:()=>a,getAutoImportProvider:function(){var t;return null==(t=e.getPackageJsonAutoImportProvider)?void 0:t.call(e)},updateIsDefinitionOfReferencedSymbols:function(t,n){const r=a.getTypeChecker(),i=function(){for(const i of t)for(const t of i.references){if(n.has(t)){const e=o(t);return un.assertIsDefined(e),r.getSymbolAtLocation(e)}const i=vY(t,g,We(e,e.fileExists));if(i&&n.has(i)){const e=o(i);if(e)return r.getSymbolAtLocation(e)}}}();if(!i)return!1;for(const r of t)for(const t of r.references){const r=o(t);if(un.assertIsDefined(r),n.has(t)||gce.isDeclarationOfSymbol(r,i)){n.add(t),t.isDefinition=!0;const r=vY(t,g,We(e,e.fileExists));r&&n.add(r)}else t.isDefinition=!1}return!0;function o(e){const t=a.getSourceFile(e.fileName);if(!t)return;const n=WX(t,e.textSpan.start);return gce.Core.getAdjustedNode(n,{use:gce.FindReferencesUse.References})}},getApplicableRefactors:function(e,t,n=kG,r,i,o){y();const a=h(e);return Q2.getApplicableRefactors(I(a,t,n,kG,r,i),o)},getEditsForRefactor:function(e,t,n,r,i,o=kG,a){y();const s=h(e);return Q2.getEditsForRefactor(I(s,n,o,t),r,i,a)},getMoveToRefactoringFileSuggestions:function(t,n,r=kG){y();const i=h(t),o=un.checkDefined(a.getSourceFiles()),s=ZS(t),c=K6(I(i,n,r,kG)),l=G6(null==c?void 0:c.all),_=B(o,e=>{const t=ZS(e.fileName);return(null==a?void 0:a.isSourceFileFromExternalLibrary(i))||i===h(e.fileName)||".ts"===s&&".d.ts"===t||".d.ts"===s&&Gt(Fo(e.fileName),"lib.")&&".d.ts"===t||s!==t&&(!(".tsx"===s&&".ts"===t||".jsx"===s&&".js"===t)||l)?void 0:e.fileName});return{newFileName:H6(i,a,e,c),files:_}},toLineColumnOffset:function(e,t){return 0===t?{line:0,character:0}:g.toLineColumnOffset(e,t)},getSourceMapper:()=>g,clearSourceMapperCache:()=>g.clearCache(),prepareCallHierarchy:function(e,t){y();const n=i7.resolveCallHierarchyDeclaration(a,WX(h(e),t));return n&&RZ(n,e=>i7.createCallHierarchyItem(a,e))},provideCallHierarchyIncomingCalls:function(e,t){y();const n=h(e),r=BZ(i7.resolveCallHierarchyDeclaration(a,0===t?n:WX(n,t)));return r?i7.getIncomingCalls(a,r,_):[]},provideCallHierarchyOutgoingCalls:function(e,t){y();const n=h(e),r=BZ(i7.resolveCallHierarchyDeclaration(a,0===t?n:WX(n,t)));return r?i7.getOutgoingCalls(a,r):[]},toggleLineComment:D,toggleMultilineComment:F,commentSelection:function(e,t){const n=o.getCurrentSourceFile(e),{firstLine:r,lastLine:i}=N(n,t);return r===i&&t.pos!==t.end?F(e,t,!0):D(e,t,!0)},uncommentSelection:function(e,t){const n=o.getCurrentSourceFile(e),r=[],{pos:i}=t;let{end:a}=t;i===a&&(a+=sQ(n,i)?2:1);for(let t=i;t<=a;t++){const i=dQ(n,t);if(i){switch(i.kind){case 2:r.push(...D(e,{end:i.end,pos:i.pos+1},!1));break;case 3:r.push(...F(e,{end:i.end,pos:i.pos+1},!1))}t=i.end+1}}return r},provideInlayHints:function(t,n,r=kG){y();const i=h(t);return xle.provideInlayHints(function(t,n,r){return{file:t,program:v(),host:e,span:n,preferences:r,cancellationToken:_}}(i,n,r))},getSupportedCodeFixes:J8,preparePasteEditsForFile:function(e,t){return y(),_fe.preparePasteEdits(h(e),t,a.getTypeChecker())},getPasteEdits:function(t,n){return y(),dfe.pasteEditsProvider(h(t.targetFile),t.pastedText,t.pasteLocations,t.copiedFrom?{file:h(t.copiedFrom.file),range:t.copiedFrom.range}:void 0,e,t.preferences,ude.getFormatContext(n,e),_)},mapCode:function(t,n,r,i,a){return $le.mapCode(o.getCurrentSourceFile(t),n,r,e,ude.getFormatContext(i,e),a)}};switch(i){case 0:break;case 1:K8.forEach(e=>L[e]=()=>{throw new Error(`LanguageService Operation: ${e} not allowed in LanguageServiceMode.PartialSemantic`)});break;case 2:G8.forEach(e=>L[e]=()=>{throw new Error(`LanguageService Operation: ${e} not allowed in LanguageServiceMode.Syntactic`)});break;default:un.assertNever(i)}return L}function Q8(e){return e.nameTable||function(e){const t=e.nameTable=new Map;e.forEachChild(function e(n){if(aD(n)&&!lX(n)&&n.escapedText||jh(n)&&function(e){return lh(e)||284===e.parent.kind||function(e){return e&&e.parent&&213===e.parent.kind&&e.parent.argumentExpression===e}(e)||uh(e)}(n)){const e=Uh(n);t.set(e,void 0===t.get(e)?n.pos:-1)}else if(sD(n)){const e=n.escapedText;t.set(e,void 0===t.get(e)?n.pos:-1)}if(XI(n,e),Du(n))for(const t of n.jsDoc)XI(t,e)})}(e),e.nameTable}function Y8(e){const t=function(e){switch(e.kind){case 11:case 15:case 9:if(168===e.parent.kind)return Au(e.parent.parent)?e.parent.parent:void 0;case 80:case 296:return!Au(e.parent)||211!==e.parent.parent.kind&&293!==e.parent.parent.kind||e.parent.name!==e?void 0:e.parent}}(e);return t&&(uF(t.parent)||GE(t.parent))?t:void 0}function Z8(e,t,n,r){const i=VQ(e.name);if(!i)return l;if(!n.isUnion()){const e=n.getProperty(i);return e?[e]:l}const o=uF(e.parent)||GE(e.parent)?N(n.types,n=>!t.isTypeInvalidDueToUnionDiscriminant(n,e.parent)):n.types,a=B(o,e=>e.getProperty(i));if(r&&(0===a.length||a.length===n.types.length)){const e=n.getProperty(i);if(e)return[e]}return o.length||a.length?Q(a,mt):B(n.types,e=>e.getProperty(i))}function e7(e){if(so)return jo(Do(Jo(so.getExecutingFilePath())),Ds(e));throw new Error("getDefaultLibFilePath is only supported when consumed as a node module. ")}function t7(e,t,n){const r=[];n=U1(n,r);const i=Qe(e)?e:[e],o=Vq(void 0,void 0,mw,n,i,t,!0);return o.diagnostics=K(o.diagnostics,r),o}Jx({getNodeConstructor:()=>x8,getTokenConstructor:()=>C8,getIdentifierConstructor:()=>w8,getPrivateIdentifierConstructor:()=>N8,getSourceFileConstructor:()=>O8,getSymbolConstructor:()=>T8,getTypeConstructor:()=>D8,getSignatureConstructor:()=>F8,getSourceMapSourceConstructor:()=>L8});var n7={};function r7(e,t){if(e.isDeclarationFile)return;let n=HX(e,t);const r=e.getLineAndCharacterOfPosition(t).line;if(e.getLineAndCharacterOfPosition(n.getStart(e)).line>r){const t=YX(n.pos,e);if(!t||e.getLineAndCharacterOfPosition(t.getEnd()).line!==r)return;n=t}if(!(33554432&n.flags))return l(n);function i(t,n){const r=SI(t)?x(t.modifiers,CD):void 0;return $s(r?Qa(e.text,r.end):t.getStart(e),(n||t).getEnd())}function o(t,n){return i(t,QX(n,n.parent,e))}function a(t,n){return t&&r===e.getLineAndCharacterOfPosition(t.getStart(e)).line?l(t):l(n)}function s(t){return l(YX(t.pos,e))}function c(t){return l(QX(t,t.parent,e))}function l(t){if(t){const{parent:_}=t;switch(t.kind){case 244:return u(t.declarationList.declarations[0]);case 261:case 173:case 172:return u(t);case 170:return function e(t){if(k_(t.name))return g(t.name);if(function(e){return!!e.initializer||void 0!==e.dotDotDotToken||Nv(e,3)}(t))return i(t);{const n=t.parent,r=n.parameters.indexOf(t);return un.assert(-1!==r),0!==r?e(n.parameters[r-1]):l(n.body)}}(t);case 263:case 175:case 174:case 178:case 179:case 177:case 219:case 220:return function(e){if(e.body)return p(e)?i(e):l(e.body)}(t);case 242:if(Bf(t))return function(e){const t=e.statements.length?e.statements[0]:e.getLastToken();return p(e.parent)?a(e.parent,t):l(t)}(t);case 269:return f(t);case 300:return f(t.block);case 245:return i(t.expression);case 254:return i(t.getChildAt(0),t.expression);case 248:return o(t,t.expression);case 247:return l(t.statement);case 260:return i(t.getChildAt(0));case 246:return o(t,t.expression);case 257:return l(t.statement);case 253:case 252:return i(t.getChildAt(0),t.label);case 249:return(r=t).initializer?m(r):r.condition?i(r.condition):r.incrementor?i(r.incrementor):void 0;case 250:return o(t,t.expression);case 251:return m(t);case 256:return o(t,t.expression);case 297:case 298:return l(t.statements[0]);case 259:return f(t.tryBlock);case 258:case 278:return i(t,t.expression);case 272:return i(t,t.moduleReference);case 273:case 279:return i(t,t.moduleSpecifier);case 268:if(1!==UR(t))return;case 264:case 267:case 307:case 209:return i(t);case 255:return l(t.statement);case 171:return function(t,n,r){if(t){const i=t.indexOf(n);if(i>=0){let n=i,o=i+1;for(;n>0&&r(t[n-1]);)n--;for(;o0)return l(t.declarations[0])}}function g(e){const t=d(e.elements,e=>233!==e.kind?e:void 0);return t?l(t):209===e.parent.kind?i(e.parent):_(e.parent)}function h(e){un.assert(208!==e.kind&&207!==e.kind);const t=d(210===e.kind?e.elements:e.properties,e=>233!==e.kind?e:void 0);return t?l(t):i(227===e.parent.kind?e.parent:e)}}}i(n7,{spanInSourceFileAtLocation:()=>r7});var i7={};function o7(e){return ND(e)||lE(e)}function a7(e){return(vF(e)||bF(e)||AF(e))&&o7(e.parent)&&e===e.parent.initializer&&aD(e.parent.name)&&(!!(2&ac(e.parent))||ND(e.parent))}function s7(e){return sP(e)||gE(e)||uE(e)||vF(e)||dE(e)||AF(e)||ED(e)||FD(e)||DD(e)||AD(e)||ID(e)}function c7(e){return sP(e)||gE(e)&&aD(e.name)||uE(e)||dE(e)||ED(e)||FD(e)||DD(e)||AD(e)||ID(e)||function(e){return(vF(e)||AF(e))&&Sc(e)}(e)||a7(e)}function l7(e){return sP(e)?e:Sc(e)?e.name:a7(e)?e.parent.name:un.checkDefined(e.modifiers&&b(e.modifiers,_7))}function _7(e){return 90===e.kind}function u7(e,t){const n=l7(t);return n&&e.getSymbolAtLocation(n)}function d7(e,t){if(t.body)return t;if(PD(t))return iv(t.parent);if(uE(t)||FD(t)){const n=u7(e,t);return n&&n.valueDeclaration&&o_(n.valueDeclaration)&&n.valueDeclaration.body?n.valueDeclaration:void 0}return t}function p7(e,t){const n=u7(e,t);let r;if(n&&n.declarations){const e=X(n.declarations),t=E(n.declarations,e=>({file:e.getSourceFile().fileName,pos:e.pos}));e.sort((e,n)=>Ct(t[e].file,t[n].file)||t[e].pos-t[n].pos);const i=E(e,e=>n.declarations[e]);let o;for(const e of i)c7(e)&&(o&&o.parent===e.parent&&o.end===e.pos||(r=ie(r,e)),o=e)}return r}function f7(e,t){return ED(t)?t:o_(t)?d7(e,t)??p7(e,t)??t:p7(e,t)??t}function m7(e,t){const n=e.getTypeChecker();let r=!1;for(;;){if(c7(t))return f7(n,t);if(s7(t)){const e=uc(t,c7);return e&&f7(n,e)}if(lh(t)){if(c7(t.parent))return f7(n,t.parent);if(s7(t.parent)){const e=uc(t.parent,c7);return e&&f7(n,e)}return o7(t.parent)&&t.parent.initializer&&a7(t.parent.initializer)?t.parent.initializer:void 0}if(PD(t))return c7(t.parent)?t.parent:void 0;if(126!==t.kind||!ED(t.parent)){if(lE(t)&&t.initializer&&a7(t.initializer))return t.initializer;if(!r){let e=n.getSymbolAtLocation(t);if(e&&(2097152&e.flags&&(e=n.getAliasedSymbol(e)),e.valueDeclaration)){r=!0,t=e.valueDeclaration;continue}}return}t=t.parent}}function g7(e,t){const n=t.getSourceFile(),r=function(e,t){if(sP(t))return{text:t.fileName,pos:0,end:0};if((uE(t)||dE(t))&&!Sc(t)){const e=t.modifiers&&b(t.modifiers,_7);if(e)return{text:"default",pos:e.getStart(),end:e.getEnd()}}if(ED(t)){const n=Qa(t.getSourceFile().text,jb(t).pos),r=n+6,i=e.getTypeChecker(),o=i.getSymbolAtLocation(t.parent);return{text:(o?`${i.symbolToString(o,t.parent)} `:"")+"static {}",pos:n,end:r}}const n=a7(t)?t.parent.name:un.checkDefined(Cc(t),"Expected call hierarchy item to have a name");let r=aD(n)?gc(n):jh(n)?n.text:kD(n)&&jh(n.expression)?n.expression.text:void 0;if(void 0===r){const i=e.getTypeChecker(),o=i.getSymbolAtLocation(n);o&&(r=i.symbolToString(o,t))}if(void 0===r){const e=xU();r=ad(n=>e.writeNode(4,t,t.getSourceFile(),n))}return{text:r,pos:n.getStart(),end:n.getEnd()}}(e,t),i=function(e){var t,n,r,i;if(a7(e))return ND(e.parent)&&u_(e.parent.parent)?AF(e.parent.parent)?null==(t=wc(e.parent.parent))?void 0:t.getText():null==(n=e.parent.parent.name)?void 0:n.getText():hE(e.parent.parent.parent.parent)&&aD(e.parent.parent.parent.parent.parent.name)?e.parent.parent.parent.parent.parent.name.getText():void 0;switch(e.kind){case 178:case 179:case 175:return 211===e.parent.kind?null==(r=wc(e.parent))?void 0:r.getText():null==(i=Cc(e.parent))?void 0:i.getText();case 263:case 264:case 268:if(hE(e.parent)&&aD(e.parent.parent.name))return e.parent.parent.name.getText()}}(t),o=yX(t),a=mQ(t),s=$s(Qa(n.text,t.getFullStart(),!1,!0),t.getEnd()),c=$s(r.pos,r.end);return{file:n.fileName,kind:o,kindModifiers:a,name:r.text,containerName:i,span:s,selectionSpan:c}}function h7(e){return void 0!==e}function y7(e){if(e.kind===gce.EntryKind.Node){const{node:t}=e;if(GG(t,!0,!0)||XG(t,!0,!0)||QG(t,!0,!0)||YG(t,!0,!0)||uX(t)||dX(t)){const e=t.getSourceFile();return{declaration:uc(t,c7)||e,range:PQ(t,e)}}}}function v7(e){return ZB(e.declaration)}function b7(e,t,n){if(sP(t)||gE(t)||ED(t))return[];const r=l7(t),i=N(gce.findReferenceOrRenameEntries(e,n,e.getSourceFiles(),r,0,{use:gce.FindReferencesUse.References},y7),h7);return i?Je(i,v7,t=>function(e,t){return{from:g7(e,t[0].declaration),fromSpans:E(t,e=>AQ(e.range))}}(e,t)):[]}function x7(e,t){return 33554432&t.flags||DD(t)?[]:Je(function(e,t){const n=[],r=function(e,t){function n(n){const r=gF(n)?n.tag:bu(n)?n.tagName:Sx(n)||ED(n)?n:n.expression,i=m7(e,r);if(i){const e=PQ(r,n.getSourceFile());if(Qe(i))for(const n of i)t.push({declaration:n,range:e});else t.push({declaration:i,range:e})}}return function e(t){if(t&&!(33554432&t.flags))if(c7(t)){if(u_(t))for(const n of t.members)n.name&&kD(n.name)&&e(n.name.expression)}else{switch(t.kind){case 80:case 272:case 273:case 279:case 265:case 266:return;case 176:return void n(t);case 217:case 235:case 239:return void e(t.expression);case 261:case 170:return e(t.name),void e(t.initializer);case 214:case 215:return n(t),e(t.expression),void d(t.arguments,e);case 216:return n(t),e(t.tag),void e(t.template);case 287:case 286:return n(t),e(t.tagName),void e(t.attributes);case 171:return n(t),void e(t.expression);case 212:case 213:n(t),XI(t,e)}wf(t)||XI(t,e)}}}(e,n);switch(t.kind){case 308:!function(e,t){d(e.statements,t)}(t,r);break;case 268:!function(e,t){!Nv(e,128)&&e.body&&hE(e.body)&&d(e.body.statements,t)}(t,r);break;case 263:case 219:case 220:case 175:case 178:case 179:!function(e,t,n){const r=d7(e,t);r&&(d(r.parameters,n),n(r.body))}(e.getTypeChecker(),t,r);break;case 264:case 232:!function(e,t){d(e.modifiers,t);const n=vh(e);n&&t(n.expression);for(const n of e.members)kI(n)&&d(n.modifiers,t),ND(n)?t(n.initializer):PD(n)&&n.body?(d(n.parameters,t),t(n.body)):ED(n)&&t(n)}(t,r);break;case 176:!function(e,t){t(e.body)}(t,r);break;default:un.assertNever(t)}return n}(e,t),v7,t=>function(e,t){return{to:g7(e,t[0].declaration),fromSpans:E(t,e=>AQ(e.range))}}(e,t))}i(i7,{createCallHierarchyItem:()=>g7,getIncomingCalls:()=>b7,getOutgoingCalls:()=>x7,resolveCallHierarchyDeclaration:()=>m7});var k7={};i(k7,{v2020:()=>S7});var S7={};i(S7,{TokenEncodingConsts:()=>_8,TokenModifier:()=>d8,TokenType:()=>u8,getEncodedSemanticClassifications:()=>f8,getSemanticClassifications:()=>p8});var T7={};i(T7,{PreserveOptionalFlags:()=>Oie,addNewNodeForMemberSymbol:()=>Lie,codeFixAll:()=>R7,createCodeFixAction:()=>F7,createCodeFixActionMaybeFixAll:()=>E7,createCodeFixActionWithoutFixAll:()=>D7,createCombinedCodeActions:()=>j7,createFileTextChanges:()=>M7,createImportAdder:()=>lee,createImportSpecifierResolver:()=>uee,createMissingMemberNodes:()=>Aie,createSignatureDeclarationFromCallExpression:()=>Mie,createSignatureDeclarationFromSignature:()=>jie,createStubbedBody:()=>Kie,eachDiagnostic:()=>B7,findAncestorMatchingSpan:()=>noe,generateAccessorFromProperty:()=>roe,getAccessorConvertiblePropertyAtPosition:()=>soe,getAllFixes:()=>L7,getFixes:()=>O7,getImportCompletionAction:()=>dee,getImportKind:()=>Dee,getJSDocTypedefNodes:()=>X9,getNoopSymbolTrackerWithResolver:()=>Iie,getPromoteTypeOnlyCompletionAction:()=>pee,getSupportedErrorCodes:()=>I7,importFixName:()=>aee,importSymbols:()=>toe,parameterShouldGetTypeFromJSDoc:()=>F5,registerCodeFix:()=>A7,setJsonCompilerOptionValue:()=>Xie,setJsonCompilerOptionValues:()=>Gie,tryGetAutoImportableReferenceFromTypeNode:()=>Zie,typeNodeToAutoImportableTypeNode:()=>Jie,typePredicateToAutoImportableTypeNode:()=>qie,typeToAutoImportableTypeNode:()=>Bie,typeToMinimizedReferenceType:()=>zie});var C7,w7=$e(),N7=new Map;function D7(e,t,n){return P7(e,GZ(n),t,void 0,void 0)}function F7(e,t,n,r,i,o){return P7(e,GZ(n),t,r,GZ(i),o)}function E7(e,t,n,r,i,o){return P7(e,GZ(n),t,r,i&&GZ(i),o)}function P7(e,t,n,r,i,o){return{fixName:e,description:t,changes:n,fixId:r,fixAllDescription:i,commands:o?[o]:void 0}}function A7(e){for(const t of e.errorCodes)C7=void 0,w7.add(String(t),e);if(e.fixIds)for(const t of e.fixIds)un.assert(!N7.has(t)),N7.set(t,e)}function I7(){return C7??(C7=Oe(w7.keys()))}function O7(e){const t=J7(e);return O(w7.get(String(e.errorCode)),n=>E(n.getCodeActions(e),function(e,t){const{errorCodes:n}=e;let r=0;for(const e of t)if(T(n,e.code)&&r++,r>1)break;const i=r<2;return({fixId:e,fixAllDescription:t,...n})=>i?n:{...n,fixId:e,fixAllDescription:t}}(n,t)))}function L7(e){return N7.get(nt(e.fixId,Ze)).getAllCodeActions(e)}function j7(e,t){return{changes:e,commands:t}}function M7(e,t){return{fileName:e,textChanges:t}}function R7(e,t,n){const r=[];return j7(jue.ChangeTracker.with(e,i=>B7(e,t,e=>n(i,e,r))),0===r.length?void 0:r)}function B7(e,t,n){for(const r of J7(e))T(t,r.code)&&n(r)}function J7({program:e,sourceFile:t,cancellationToken:n}){const r=[...e.getSemanticDiagnostics(t,n),...e.getSyntacticDiagnostics(t,n),...S1(t,e,n)];return Dk(e.getCompilerOptions())&&r.push(...e.getDeclarationDiagnostics(t,n)),r}var z7="addConvertToUnknownForNonOverlappingTypes",q7=[_a.Conversion_of_type_0_to_type_1_may_be_a_mistake_because_neither_type_sufficiently_overlaps_with_the_other_If_this_was_intentional_convert_the_expression_to_unknown_first.code];function U7(e,t,n){const r=LF(n)?mw.createAsExpression(n.expression,mw.createKeywordTypeNode(159)):mw.createTypeAssertion(mw.createKeywordTypeNode(159),n.expression);e.replaceNode(t,n.expression,r)}function V7(e,t){if(!Em(e))return uc(HX(e,t),e=>LF(e)||hF(e))}A7({errorCodes:q7,getCodeActions:function(e){const t=V7(e.sourceFile,e.span.start);if(void 0===t)return;const n=jue.ChangeTracker.with(e,n=>U7(n,e.sourceFile,t));return[F7(z7,n,_a.Add_unknown_conversion_for_non_overlapping_types,z7,_a.Add_unknown_to_all_conversions_of_non_overlapping_types)]},fixIds:[z7],getAllCodeActions:e=>R7(e,q7,(e,t)=>{const n=V7(t.file,t.start);n&&U7(e,t.file,n)})}),A7({errorCodes:[_a.await_expressions_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_this_file_has_no_imports_or_exports_Consider_adding_an_empty_export_to_make_this_file_a_module.code,_a.await_using_statements_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_this_file_has_no_imports_or_exports_Consider_adding_an_empty_export_to_make_this_file_a_module.code,_a.for_await_loops_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_this_file_has_no_imports_or_exports_Consider_adding_an_empty_export_to_make_this_file_a_module.code],getCodeActions:function(e){const{sourceFile:t}=e;return[D7("addEmptyExportDeclaration",jue.ChangeTracker.with(e,e=>{const n=mw.createExportDeclaration(void 0,!1,mw.createNamedExports([]),void 0);e.insertNodeAtEndOfScope(t,t,n)}),_a.Add_export_to_make_this_file_into_a_module)]}});var W7="addMissingAsync",$7=[_a.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1.code,_a.Type_0_is_not_assignable_to_type_1.code,_a.Type_0_is_not_comparable_to_type_1.code];function H7(e,t,n,r){const i=n(n=>function(e,t,n,r){if(r&&r.has(ZB(n)))return;null==r||r.add(ZB(n));const i=mw.replaceModifiers(RC(n,!0),mw.createNodeArray(mw.createModifiersFromModifierFlags(1024|zv(n))));e.replaceNode(t,n,i)}(n,e.sourceFile,t,r));return F7(W7,i,_a.Add_async_modifier_to_containing_function,W7,_a.Add_all_missing_async_modifiers)}function K7(e,t){if(t)return uc(HX(e,t.start),n=>n.getStart(e)Fs(t)?"quit":(bF(n)||FD(n)||vF(n)||uE(n))&&pY(t,FQ(n,e)))}A7({fixIds:[W7],errorCodes:$7,getCodeActions:function(e){const{sourceFile:t,errorCode:n,cancellationToken:r,program:i,span:o}=e,a=b(i.getTypeChecker().getDiagnostics(t,r),function(e,t){return({start:n,length:r,relatedInformation:i,code:o})=>et(n)&&et(r)&&pY({start:n,length:r},e)&&o===t&&!!i&&$(i,e=>e.code===_a.Did_you_mean_to_mark_this_function_as_async.code)}(o,n)),s=K7(t,a&&a.relatedInformation&&b(a.relatedInformation,e=>e.code===_a.Did_you_mean_to_mark_this_function_as_async.code));if(s)return[H7(e,s,t=>jue.ChangeTracker.with(e,t))]},getAllCodeActions:e=>{const{sourceFile:t}=e,n=new Set;return R7(e,$7,(r,i)=>{const o=i.relatedInformation&&b(i.relatedInformation,e=>e.code===_a.Did_you_mean_to_mark_this_function_as_async.code),a=K7(t,o);if(a)return H7(e,a,e=>(e(r),[]),n)})}});var G7="addMissingAwait",X7=_a.Property_0_does_not_exist_on_type_1.code,Q7=[_a.This_expression_is_not_callable.code,_a.This_expression_is_not_constructable.code],Y7=[_a.An_arithmetic_operand_must_be_of_type_any_number_bigint_or_an_enum_type.code,_a.The_left_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type.code,_a.The_right_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type.code,_a.Operator_0_cannot_be_applied_to_type_1.code,_a.Operator_0_cannot_be_applied_to_types_1_and_2.code,_a.This_comparison_appears_to_be_unintentional_because_the_types_0_and_1_have_no_overlap.code,_a.This_condition_will_always_return_true_since_this_0_is_always_defined.code,_a.Type_0_is_not_an_array_type.code,_a.Type_0_is_not_an_array_type_or_a_string_type.code,_a.Type_0_can_only_be_iterated_through_when_using_the_downlevelIteration_flag_or_with_a_target_of_es2015_or_higher.code,_a.Type_0_is_not_an_array_type_or_a_string_type_or_does_not_have_a_Symbol_iterator_method_that_returns_an_iterator.code,_a.Type_0_is_not_an_array_type_or_does_not_have_a_Symbol_iterator_method_that_returns_an_iterator.code,_a.Type_0_must_have_a_Symbol_iterator_method_that_returns_an_iterator.code,_a.Type_0_must_have_a_Symbol_asyncIterator_method_that_returns_an_async_iterator.code,_a.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1.code,X7,...Q7];function Z7(e,t,n,r,i){const o=MZ(e,n);return o&&function(e,t,n,r,i){return $(i.getTypeChecker().getDiagnostics(e,r),({start:e,length:r,relatedInformation:i,code:o})=>et(e)&&et(r)&&pY({start:e,length:r},n)&&o===t&&!!i&&$(i,e=>e.code===_a.Did_you_forget_to_use_await.code))}(e,t,n,r,i)&&r5(o)?o:void 0}function e5(e,t,n,r,i,o){const{sourceFile:a,program:s,cancellationToken:c}=e,l=function(e,t,n,r,i){const o=function(e,t){if(dF(e.parent)&&aD(e.parent.expression))return{identifiers:[e.parent.expression],isCompleteFix:!0};if(aD(e))return{identifiers:[e],isCompleteFix:!0};if(NF(e)){let n,r=!0;for(const i of[e.left,e.right]){const e=t.getTypeAtLocation(i);if(t.getPromisedTypeOfPromise(e)){if(!aD(i)){r=!1;continue}(n||(n=[])).push(i)}}return n&&{identifiers:n,isCompleteFix:r}}}(e,i);if(!o)return;let a,s=o.isCompleteFix;for(const e of o.identifiers){const o=i.getSymbolAtLocation(e);if(!o)continue;const c=tt(o.valueDeclaration,lE),l=c&&tt(c.name,aD),_=Th(c,244);if(!c||!_||c.type||!c.initializer||_.getSourceFile()!==t||Nv(_,32)||!l||!r5(c.initializer)){s=!1;continue}const u=r.getSemanticDiagnostics(t,n);gce.Core.eachSymbolReferenceInFile(l,i,t,n=>e!==n&&!n5(n,u,t,i))?s=!1:(a||(a=[])).push({expression:c.initializer,declarationSymbol:o})}return a&&{initializers:a,needsSecondPassForFixAll:!s}}(t,a,c,s,r);if(l)return D7("addMissingAwaitToInitializer",i(e=>{d(l.initializers,({expression:t})=>i5(e,n,a,r,t,o)),o&&l.needsSecondPassForFixAll&&i5(e,n,a,r,t,o)}),1===l.initializers.length?[_a.Add_await_to_initializer_for_0,l.initializers[0].declarationSymbol.name]:_a.Add_await_to_initializers)}function t5(e,t,n,r,i,o){const a=i(i=>i5(i,n,e.sourceFile,r,t,o));return F7(G7,a,_a.Add_await,G7,_a.Fix_all_expressions_possibly_missing_await)}function n5(e,t,n,r){const i=dF(e.parent)?e.parent.name:NF(e.parent)?e.parent:e,o=b(t,e=>e.start===i.getStart(n)&&e.start+e.length===i.getEnd());return o&&T(Y7,o.code)||1&r.getTypeAtLocation(i).flags}function r5(e){return 65536&e.flags||!!uc(e,e=>e.parent&&bF(e.parent)&&e.parent.body===e||VF(e)&&(263===e.parent.kind||219===e.parent.kind||220===e.parent.kind||175===e.parent.kind))}function i5(e,t,n,r,i,o){if(ZF(i.parent)&&!i.parent.awaitModifier){const t=r.getTypeAtLocation(i),o=r.getAnyAsyncIterableType();if(o&&r.isTypeAssignableTo(t,o)){const t=i.parent;return void e.replaceNode(n,t,mw.updateForOfStatement(t,mw.createToken(135),t.initializer,t.expression,t.statement))}}if(NF(i))for(const t of[i.left,i.right]){if(o&&aD(t)){const e=r.getSymbolAtLocation(t);if(e&&o.has(eJ(e)))continue}const i=r.getTypeAtLocation(t),a=r.getPromisedTypeOfPromise(i)?mw.createAwaitExpression(t):t;e.replaceNode(n,t,a)}else if(t===X7&&dF(i.parent)){if(o&&aD(i.parent.expression)){const e=r.getSymbolAtLocation(i.parent.expression);if(e&&o.has(eJ(e)))return}e.replaceNode(n,i.parent.expression,mw.createParenthesizedExpression(mw.createAwaitExpression(i.parent.expression))),o5(e,i.parent.expression,n)}else if(T(Q7,t)&&j_(i.parent)){if(o&&aD(i)){const e=r.getSymbolAtLocation(i);if(e&&o.has(eJ(e)))return}e.replaceNode(n,i,mw.createParenthesizedExpression(mw.createAwaitExpression(i))),o5(e,i,n)}else{if(o&&lE(i.parent)&&aD(i.parent.name)){const e=r.getSymbolAtLocation(i.parent.name);if(e&&!q(o,eJ(e)))return}e.replaceNode(n,i,mw.createAwaitExpression(i))}}function o5(e,t,n){const r=YX(t.pos,n);r&&vZ(r.end,r.parent,n)&&e.insertText(n,t.getStart(n),";")}A7({fixIds:[G7],errorCodes:Y7,getCodeActions:function(e){const{sourceFile:t,errorCode:n,span:r,cancellationToken:i,program:o}=e,a=Z7(t,n,r,i,o);if(!a)return;const s=e.program.getTypeChecker(),c=t=>jue.ChangeTracker.with(e,t);return ne([e5(e,a,n,s,c),t5(e,a,n,s,c)])},getAllCodeActions:e=>{const{sourceFile:t,program:n,cancellationToken:r}=e,i=e.program.getTypeChecker(),o=new Set;return R7(e,Y7,(a,s)=>{const c=Z7(t,s.code,s,r,n);if(!c)return;const l=e=>(e(a),[]);return e5(e,c,s.code,i,l,o)||t5(e,c,s.code,i,l,o)})}});var a5="addMissingConst",s5=[_a.Cannot_find_name_0.code,_a.No_value_exists_in_scope_for_the_shorthand_property_0_Either_declare_one_or_provide_an_initializer.code];function c5(e,t,n,r,i){const o=HX(t,n),a=uc(o,e=>Q_(e.parent)?e.parent.initializer===e:!function(e){switch(e.kind){case 80:case 210:case 211:case 304:case 305:return!0;default:return!1}}(e)&&"quit");if(a)return l5(e,a,t,i);const s=o.parent;if(NF(s)&&64===s.operatorToken.kind&&HF(s.parent))return l5(e,o,t,i);if(_F(s)){const n=r.getTypeChecker();if(!v(s.elements,e=>function(e,t){const n=aD(e)?e:rb(e,!0)&&aD(e.left)?e.left:void 0;return!!n&&!t.getSymbolAtLocation(n)}(e,n)))return;return l5(e,s,t,i)}const c=uc(o,e=>!!HF(e.parent)||!function(e){switch(e.kind){case 80:case 227:case 28:return!0;default:return!1}}(e)&&"quit");if(c){if(!_5(c,r.getTypeChecker()))return;return l5(e,c,t,i)}}function l5(e,t,n,r){r&&!q(r,t)||e.insertModifierBefore(n,87,t)}function _5(e,t){return!!NF(e)&&(28===e.operatorToken.kind?v([e.left,e.right],e=>_5(e,t)):64===e.operatorToken.kind&&aD(e.left)&&!t.getSymbolAtLocation(e.left))}A7({errorCodes:s5,getCodeActions:function(e){const t=jue.ChangeTracker.with(e,t=>c5(t,e.sourceFile,e.span.start,e.program));if(t.length>0)return[F7(a5,t,_a.Add_const_to_unresolved_variable,a5,_a.Add_const_to_all_unresolved_variables)]},fixIds:[a5],getAllCodeActions:e=>{const t=new Set;return R7(e,s5,(n,r)=>c5(n,r.file,r.start,e.program,t))}});var u5="addMissingDeclareProperty",d5=[_a.Property_0_will_overwrite_the_base_property_in_1_If_this_is_intentional_add_an_initializer_Otherwise_add_a_declare_modifier_or_remove_the_redundant_declaration.code];function p5(e,t,n,r){const i=HX(t,n);if(!aD(i))return;const o=i.parent;173!==o.kind||r&&!q(r,o)||e.insertModifierBefore(t,138,o)}A7({errorCodes:d5,getCodeActions:function(e){const t=jue.ChangeTracker.with(e,t=>p5(t,e.sourceFile,e.span.start));if(t.length>0)return[F7(u5,t,_a.Prefix_with_declare,u5,_a.Prefix_all_incorrect_property_declarations_with_declare)]},fixIds:[u5],getAllCodeActions:e=>{const t=new Set;return R7(e,d5,(e,n)=>p5(e,n.file,n.start,t))}});var f5="addMissingInvocationForDecorator",m5=[_a._0_accepts_too_few_arguments_to_be_used_as_a_decorator_here_Did_you_mean_to_call_it_first_and_write_0.code];function g5(e,t,n){const r=uc(HX(t,n),CD);un.assert(!!r,"Expected position to be owned by a decorator.");const i=mw.createCallExpression(r.expression,void 0,void 0);e.replaceNode(t,r.expression,i)}A7({errorCodes:m5,getCodeActions:function(e){const t=jue.ChangeTracker.with(e,t=>g5(t,e.sourceFile,e.span.start));return[F7(f5,t,_a.Call_decorator_expression,f5,_a.Add_to_all_uncalled_decorators)]},fixIds:[f5],getAllCodeActions:e=>R7(e,m5,(e,t)=>g5(e,t.file,t.start))});var h5="addMissingResolutionModeImportAttribute",y5=[_a.Type_only_import_of_an_ECMAScript_module_from_a_CommonJS_module_must_have_a_resolution_mode_attribute.code,_a.Type_import_of_an_ECMAScript_module_from_a_CommonJS_module_must_have_a_resolution_mode_attribute.code];function v5(e,t,n,r,i,o){var a,s,c;const l=uc(HX(t,n),en(xE,iF));un.assert(!!l,"Expected position to be owned by an ImportDeclaration or ImportType.");const _=0===tY(t,o),u=yg(l),d=!u||(null==(a=MM(u.text,t.fileName,r.getCompilerOptions(),i,r.getModuleResolutionCache(),void 0,99).resolvedModule)?void 0:a.resolvedFileName)===(null==(c=null==(s=r.getResolvedModuleFromModuleSpecifier(u,t))?void 0:s.resolvedModule)?void 0:c.resolvedFileName),p=l.attributes?mw.updateImportAttributes(l.attributes,mw.createNodeArray([...l.attributes.elements,mw.createImportAttribute(mw.createStringLiteral("resolution-mode",_),mw.createStringLiteral(d?"import":"require",_))],l.attributes.elements.hasTrailingComma),l.attributes.multiLine):mw.createImportAttributes(mw.createNodeArray([mw.createImportAttribute(mw.createStringLiteral("resolution-mode",_),mw.createStringLiteral(d?"import":"require",_))]));273===l.kind?e.replaceNode(t,l,mw.updateImportDeclaration(l,l.modifiers,l.importClause,l.moduleSpecifier,p)):e.replaceNode(t,l,mw.updateImportTypeNode(l,l.argument,p,l.qualifier,l.typeArguments))}A7({errorCodes:y5,getCodeActions:function(e){const t=jue.ChangeTracker.with(e,t=>v5(t,e.sourceFile,e.span.start,e.program,e.host,e.preferences));return[F7(h5,t,_a.Add_resolution_mode_import_attribute,h5,_a.Add_resolution_mode_import_attribute_to_all_type_only_imports_that_need_it)]},fixIds:[h5],getAllCodeActions:e=>R7(e,y5,(t,n)=>v5(t,n.file,n.start,e.program,e.host,e.preferences))});var b5="addNameToNamelessParameter",x5=[_a.Parameter_has_a_name_but_no_type_Did_you_mean_0_Colon_1.code];function k5(e,t,n){const r=HX(t,n),i=r.parent;if(!TD(i))return un.fail("Tried to add a parameter name to a non-parameter: "+un.formatSyntaxKind(r.kind));const o=i.parent.parameters.indexOf(i);un.assert(!i.type,"Tried to add a parameter name to a parameter that already had one."),un.assert(o>-1,"Parameter not found in parent parameter list.");let a=i.name.getEnd(),s=mw.createTypeReferenceNode(i.name,void 0),c=S5(t,i);for(;c;)s=mw.createArrayTypeNode(s),a=c.getEnd(),c=S5(t,c);const l=mw.createParameterDeclaration(i.modifiers,i.dotDotDotToken,"arg"+o,i.questionToken,i.dotDotDotToken&&!UD(s)?mw.createArrayTypeNode(s):s,i.initializer);e.replaceRange(t,Ab(i.getStart(t),a),l)}function S5(e,t){const n=QX(t.name,t.parent,e);if(n&&23===n.kind&&cF(n.parent)&&TD(n.parent.parent))return n.parent.parent}A7({errorCodes:x5,getCodeActions:function(e){const t=jue.ChangeTracker.with(e,t=>k5(t,e.sourceFile,e.span.start));return[F7(b5,t,_a.Add_parameter_name,b5,_a.Add_names_to_all_parameters_without_names)]},fixIds:[b5],getAllCodeActions:e=>R7(e,x5,(e,t)=>k5(e,t.file,t.start))});var T5="addOptionalPropertyUndefined";function C5(e,t){var n;if(e){if(NF(e.parent)&&64===e.parent.operatorToken.kind)return{source:e.parent.right,target:e.parent.left};if(lE(e.parent)&&e.parent.initializer)return{source:e.parent.initializer,target:e.parent.name};if(fF(e.parent)){const n=t.getSymbolAtLocation(e.parent.expression);if(!(null==n?void 0:n.valueDeclaration)||!c_(n.valueDeclaration.kind))return;if(!V_(e))return;const r=e.parent.arguments.indexOf(e);if(-1===r)return;const i=n.valueDeclaration.parameters[r].name;if(aD(i))return{source:e,target:i}}else if(rP(e.parent)&&aD(e.parent.name)||iP(e.parent)){const r=C5(e.parent.parent,t);if(!r)return;const i=t.getPropertyOfType(t.getTypeAtLocation(r.target),e.parent.name.text),o=null==(n=null==i?void 0:i.declarations)?void 0:n[0];if(!o)return;return{source:rP(e.parent)?e.parent.initializer:e.parent.name,target:o}}}}A7({errorCodes:[_a.Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_type_of_the_target.code,_a.Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_types_of_the_target_s_properties.code,_a.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_types_of_the_target_s_properties.code],getCodeActions(e){const t=e.program.getTypeChecker(),n=function(e,t,n){var r,i;const o=C5(MZ(e,t),n);if(!o)return l;const{source:a,target:s}=o,c=function(e,t,n){return dF(t)&&!!n.getExactOptionalProperties(n.getTypeAtLocation(t.expression)).length&&n.getTypeAtLocation(e)===n.getUndefinedType()}(a,s,n)?n.getTypeAtLocation(s.expression):n.getTypeAtLocation(s);return(null==(i=null==(r=c.symbol)?void 0:r.declarations)?void 0:i.some(e=>vd(e).fileName.match(/\.d\.ts$/)))?l:n.getExactOptionalProperties(c)}(e.sourceFile,e.span,t);if(!n.length)return;const r=jue.ChangeTracker.with(e,e=>function(e,t){for(const n of t){const t=n.valueDeclaration;if(t&&(wD(t)||ND(t))&&t.type){const n=mw.createUnionTypeNode([...193===t.type.kind?t.type.types:[t.type],mw.createTypeReferenceNode("undefined")]);e.replaceNode(t.getSourceFile(),t.type,n)}}}(e,n));return[D7(T5,r,_a.Add_undefined_to_optional_property_type)]},fixIds:[T5]});var w5="annotateWithTypeFromJSDoc",N5=[_a.JSDoc_types_may_be_moved_to_TypeScript_types.code];function D5(e,t){const n=HX(e,t);return tt(TD(n.parent)?n.parent.parent:n.parent,F5)}function F5(e){return function(e){return o_(e)||261===e.kind||172===e.kind||173===e.kind}(e)&&E5(e)}function E5(e){return o_(e)?e.parameters.some(E5)||!e.type&&!!rl(e):!e.type&&!!nl(e)}function P5(e,t,n){if(o_(n)&&(rl(n)||n.parameters.some(e=>!!nl(e)))){if(!n.typeParameters){const r=hv(n);r.length&&e.insertTypeParameters(t,n,r)}const r=bF(n)&&!OX(n,21,t);r&&e.insertNodeBefore(t,ge(n.parameters),mw.createToken(21));for(const r of n.parameters)if(!r.type){const n=nl(r);n&&e.tryInsertTypeAnnotation(t,r,lJ(n,A5,b_))}if(r&&e.insertNodeAfter(t,ve(n.parameters),mw.createToken(22)),!n.type){const r=rl(n);r&&e.tryInsertTypeAnnotation(t,n,lJ(r,A5,b_))}}else{const r=un.checkDefined(nl(n),"A JSDocType for this declaration should exist");un.assert(!n.type,"The JSDocType decl should have a type"),e.tryInsertTypeAnnotation(t,n,lJ(r,A5,b_))}}function A5(e){switch(e.kind){case 313:case 314:return mw.createTypeReferenceNode("any",l);case 317:return function(e){return mw.createUnionTypeNode([lJ(e.type,A5,b_),mw.createTypeReferenceNode("undefined",l)])}(e);case 316:return A5(e.type);case 315:return function(e){return mw.createUnionTypeNode([lJ(e.type,A5,b_),mw.createTypeReferenceNode("null",l)])}(e);case 319:return function(e){return mw.createArrayTypeNode(lJ(e.type,A5,b_))}(e);case 318:return function(e){return mw.createFunctionTypeNode(l,e.parameters.map(I5),e.type??mw.createKeywordTypeNode(133))}(e);case 184:return function(e){let t=e.typeName,n=e.typeArguments;if(aD(e.typeName)){if(Om(e))return function(e){const t=mw.createParameterDeclaration(void 0,void 0,150===e.typeArguments[0].kind?"n":"s",void 0,mw.createTypeReferenceNode(150===e.typeArguments[0].kind?"number":"string",[]),void 0),n=mw.createTypeLiteralNode([mw.createIndexSignature(void 0,[t],e.typeArguments[1])]);return xw(n,1),n}(e);let r=e.typeName.text;switch(e.typeName.text){case"String":case"Boolean":case"Object":case"Number":r=r.toLowerCase();break;case"array":case"date":case"promise":r=r[0].toUpperCase()+r.slice(1)}t=mw.createIdentifier(r),n="Array"!==r&&"Promise"!==r||e.typeArguments?_J(e.typeArguments,A5,b_):mw.createNodeArray([mw.createTypeReferenceNode("any",l)])}return mw.createTypeReferenceNode(t,n)}(e);case 323:return function(e){const t=mw.createTypeLiteralNode(E(e.jsDocPropertyTags,e=>mw.createPropertySignature(void 0,aD(e.name)?e.name:e.name.right,$T(e)?mw.createToken(58):void 0,e.typeExpression&&lJ(e.typeExpression.type,A5,b_)||mw.createKeywordTypeNode(133))));return xw(t,1),t}(e);default:const t=vJ(e,A5,void 0);return xw(t,1),t}}function I5(e){const t=e.parent.parameters.indexOf(e),n=319===e.type.kind&&t===e.parent.parameters.length-1,r=e.name||(n?"rest":"arg"+t),i=n?mw.createToken(26):e.dotDotDotToken;return mw.createParameterDeclaration(e.modifiers,i,r,e.questionToken,lJ(e.type,A5,b_),e.initializer)}A7({errorCodes:N5,getCodeActions(e){const t=D5(e.sourceFile,e.span.start);if(!t)return;const n=jue.ChangeTracker.with(e,n=>P5(n,e.sourceFile,t));return[F7(w5,n,_a.Annotate_with_type_from_JSDoc,w5,_a.Annotate_everything_with_types_from_JSDoc)]},fixIds:[w5],getAllCodeActions:e=>R7(e,N5,(e,t)=>{const n=D5(t.file,t.start);n&&P5(e,t.file,n)})});var O5="convertFunctionToEs6Class",L5=[_a.This_constructor_function_may_be_converted_to_a_class_declaration.code];function j5(e,t,n,r,i,o){const a=r.getSymbolAtLocation(HX(t,n));if(!(a&&a.valueDeclaration&&19&a.flags))return;const s=a.valueDeclaration;if(uE(s)||vF(s))e.replaceNode(t,s,function(e){const t=c(a);e.body&&t.unshift(mw.createConstructorDeclaration(void 0,e.parameters,e.body));const n=M5(e,95);return mw.createClassDeclaration(n,e.name,void 0,void 0,t)}(s));else if(lE(s)){const n=function(e){const t=e.initializer;if(!t||!vF(t)||!aD(e.name))return;const n=c(e.symbol);t.body&&n.unshift(mw.createConstructorDeclaration(void 0,t.parameters,t.body));const r=M5(e.parent.parent,95);return mw.createClassDeclaration(r,e.name,void 0,void 0,n)}(s);if(!n)return;const r=s.parent.parent;_E(s.parent)&&s.parent.declarations.length>1?(e.delete(t,s),e.insertNodeAfter(t,r,n)):e.replaceNode(t,r,n)}function c(n){const r=[];return n.exports&&n.exports.forEach(e=>{if("prototype"===e.name&&e.declarations){const t=e.declarations[0];1===e.declarations.length&&dF(t)&&NF(t.parent)&&64===t.parent.operatorToken.kind&&uF(t.parent.right)&&a(t.parent.right.symbol,void 0,r)}else a(e,[mw.createToken(126)],r)}),n.members&&n.members.forEach((i,o)=>{var s,c,l,_;if("constructor"===o&&i.valueDeclaration){const r=null==(_=null==(l=null==(c=null==(s=n.exports)?void 0:s.get("prototype"))?void 0:c.declarations)?void 0:l[0])?void 0:_.parent;return void(r&&NF(r)&&uF(r.right)&&$(r.right.properties,R5)||e.delete(t,i.valueDeclaration.parent))}a(i,void 0,r)}),r;function a(n,r,a){if(!(8192&n.flags||4096&n.flags))return;const s=n.valueDeclaration,c=s.parent,l=c.right;if(u=l,!(Sx(_=s)?dF(_)&&R5(_)||r_(u):v(_.properties,e=>!!(FD(e)||pl(e)||rP(e)&&vF(e.initializer)&&e.name||R5(e)))))return;var _,u;if($(a,e=>{const t=Cc(e);return!(!t||!aD(t)||gc(t)!==yc(n))}))return;const p=c.parent&&245===c.parent.kind?c.parent:c;if(e.delete(t,p),l){if(Sx(s)&&(vF(l)||bF(l))){const e=tY(t,i),n=function(e,t,n){if(dF(e))return e.name;const r=e.argumentExpression;return zN(r)?r:ju(r)?ms(r.text,yk(t))?mw.createIdentifier(r.text):$N(r)?mw.createStringLiteral(r.text,0===n):r:void 0}(s,o,e);return void(n&&f(a,l,n))}if(!uF(l)){if(Fm(t))return;if(!dF(s))return;const e=mw.createPropertyDeclaration(r,s.name,void 0,void 0,l);return eZ(c.parent,e,t),void a.push(e)}d(l.properties,e=>{(FD(e)||pl(e))&&a.push(e),rP(e)&&vF(e.initializer)&&f(a,e.initializer,e.name),R5(e)})}else a.push(mw.createPropertyDeclaration(r,n.name,void 0,void 0,void 0));function f(e,n,i){return vF(n)?function(e,n,i){const o=K(r,M5(n,134)),a=mw.createMethodDeclaration(o,void 0,i,void 0,void 0,n.parameters,void 0,n.body);return eZ(c,a,t),void e.push(a)}(e,n,i):function(e,n,i){const o=n.body;let a;a=242===o.kind?o:mw.createBlock([mw.createReturnStatement(o)]);const s=K(r,M5(n,134)),l=mw.createMethodDeclaration(s,void 0,i,void 0,void 0,n.parameters,void 0,a);eZ(c,l,t),e.push(l)}(e,n,i)}}}}function M5(e,t){return kI(e)?N(e.modifiers,e=>e.kind===t):void 0}function R5(e){return!!e.name&&!(!aD(e.name)||"constructor"!==e.name.text)}A7({errorCodes:L5,getCodeActions(e){const t=jue.ChangeTracker.with(e,t=>j5(t,e.sourceFile,e.span.start,e.program.getTypeChecker(),e.preferences,e.program.getCompilerOptions()));return[F7(O5,t,_a.Convert_function_to_an_ES2015_class,O5,_a.Convert_all_constructor_functions_to_classes)]},fixIds:[O5],getAllCodeActions:e=>R7(e,L5,(t,n)=>j5(t,n.file,n.start,e.program.getTypeChecker(),e.preferences,e.program.getCompilerOptions()))});var B5="convertToAsyncFunction",J5=[_a.This_may_be_converted_to_an_async_function.code],z5=!0;function q5(e,t,n,r){const i=HX(t,n);let o;if(o=aD(i)&&lE(i.parent)&&i.parent.initializer&&o_(i.parent.initializer)?i.parent.initializer:tt(Kf(HX(t,n)),I1),!o)return;const a=new Map,s=Em(o),c=function(e,t){if(!e.body)return new Set;const n=new Set;return XI(e.body,function e(r){U5(r,t,"then")?(n.add(ZB(r)),d(r.arguments,e)):U5(r,t,"catch")||U5(r,t,"finally")?(n.add(ZB(r)),XI(r,e)):$5(r,t)?n.add(ZB(r)):XI(r,e)}),n}(o,r),_=function(e,t,n){const r=new Map,i=$e();return XI(e,function e(o){if(!aD(o))return void XI(o,e);const a=t.getSymbolAtLocation(o);if(a){const e=o9(t.getTypeAtLocation(o),t),s=eJ(a).toString();if(!e||TD(o.parent)||o_(o.parent)||n.has(s)){if(o.parent&&(TD(o.parent)||lE(o.parent)||lF(o.parent))){const e=o.text,t=i.get(e);if(t&&t.some(e=>e!==a)){const t=H5(o,i);r.set(s,t.identifier),n.set(s,t),i.add(e,a)}else{const t=RC(o);n.set(s,l9(t)),i.add(e,a)}}}else{const t=fe(e.parameters),r=(null==t?void 0:t.valueDeclaration)&&TD(t.valueDeclaration)&&tt(t.valueDeclaration.name,aD)||mw.createUniqueName("result",16),o=H5(r,i);n.set(s,o),i.add(r.text,a)}}}),BC(e,!0,e=>{if(lF(e)&&aD(e.name)&&sF(e.parent)){const n=t.getSymbolAtLocation(e.name),i=n&&r.get(String(eJ(n)));if(i&&i.text!==(e.name||e.propertyName).getText())return mw.createBindingElement(e.dotDotDotToken,e.propertyName||e.name,i,e.initializer)}else if(aD(e)){const n=t.getSymbolAtLocation(e),i=n&&r.get(String(eJ(n)));if(i)return mw.createIdentifier(i.text)}})}(o,r,a);if(!w1(_,r))return;const u=_.body&&VF(_.body)?function(e,t){const n=[];return Df(e,e=>{N1(e,t)&&n.push(e)}),n}(_.body,r):l,p={checker:r,synthNamesMap:a,setOfExpressionsToReturn:c,isInJSFile:s};if(!u.length)return;const f=Qa(t.text,jb(o).pos);e.insertModifierAt(t,f,134,{suffix:" "});for(const n of u)if(XI(n,function r(i){if(fF(i)){const r=X5(i,i,p,!1);if(K5())return!0;e.replaceNodeWithNodes(t,n,r)}else if(!r_(i)&&(XI(i,r),K5()))return!0}),K5())return}function U5(e,t,n){if(!fF(e))return!1;const r=oX(e,n)&&t.getTypeAtLocation(e);return!(!r||!t.getPromisedTypeOfPromise(r))}function V5(e,t){return!!(4&gx(e))&&e.target===t}function W5(e,t,n){if("finally"===e.expression.name.escapedText)return;const r=n.getTypeAtLocation(e.expression.expression);if(V5(r,n.getPromiseType())||V5(r,n.getPromiseLikeType())){if("then"!==e.expression.name.escapedText)return pe(e.typeArguments,0);if(t===pe(e.arguments,0))return pe(e.typeArguments,0);if(t===pe(e.arguments,1))return pe(e.typeArguments,1)}}function $5(e,t){return!!V_(e)&&!!t.getPromisedTypeOfPromise(t.getTypeAtLocation(e))}function H5(e,t){const n=(t.get(e.text)||l).length;return l9(0===n?e:mw.createIdentifier(e.text+"_"+n))}function K5(){return!z5}function G5(){return z5=!1,l}function X5(e,t,n,r,i){if(U5(t,n.checker,"then"))return function(e,t,n,r,i,o){if(!t||Q5(r,t))return e9(e,n,r,i,o);if(n&&!Q5(r,n))return G5();const a=s9(t,r),s=X5(e.expression.expression,e.expression.expression,r,!0,a);if(K5())return G5();const c=r9(t,i,o,a,e,r);return K5()?G5():K(s,c)}(t,pe(t.arguments,0),pe(t.arguments,1),n,r,i);if(U5(t,n.checker,"catch"))return e9(t,pe(t.arguments,0),n,r,i);if(U5(t,n.checker,"finally"))return function(e,t,n,r,i){if(!t||Q5(n,t))return X5(e,e.expression.expression,n,r,i);const o=Y5(e,n,i),a=X5(e,e.expression.expression,n,!0,o);if(K5())return G5();const s=r9(t,r,void 0,void 0,e,n);if(K5())return G5();const c=mw.createBlock(a),l=mw.createBlock(s);return Z5(e,n,mw.createTryStatement(c,void 0,l),o,i)}(t,pe(t.arguments,0),n,r,i);if(dF(t))return X5(e,t.expression,n,r,i);const o=n.checker.getTypeAtLocation(t);return o&&n.checker.getPromisedTypeOfPromise(o)?(un.assertNode(_c(t).parent,dF),function(e,t,n,r,i){if(m9(e,n)){let e=RC(t);return r&&(e=mw.createAwaitExpression(e)),[mw.createReturnStatement(e)]}return t9(i,mw.createAwaitExpression(t),void 0)}(e,t,n,r,i)):G5()}function Q5({checker:e},t){if(106===t.kind)return!0;if(aD(t)&&!Wl(t)&&"undefined"===gc(t)){const n=e.getSymbolAtLocation(t);return!n||e.isUndefinedSymbol(n)}return!1}function Y5(e,t,n){let r;return n&&!m9(e,t)&&(f9(n)?(r=n,t.synthNamesMap.forEach((e,r)=>{if(e.identifier.text===n.identifier.text){const e=(i=n,l9(mw.createUniqueName(i.identifier.text,16)));t.synthNamesMap.set(r,e)}var i})):r=l9(mw.createUniqueName("result",16),n.types),p9(r)),r}function Z5(e,t,n,r,i){const o=[];let a;if(r&&!m9(e,t)){a=RC(p9(r));const e=r.types,n=t.checker.getUnionType(e,2),i=t.isInJSFile?void 0:t.checker.typeToTypeNode(n,void 0,void 0),s=[mw.createVariableDeclaration(a,void 0,i)],c=mw.createVariableStatement(void 0,mw.createVariableDeclarationList(s,1));o.push(c)}return o.push(n),i&&a&&1===i.kind&&o.push(mw.createVariableStatement(void 0,mw.createVariableDeclarationList([mw.createVariableDeclaration(RC(d9(i)),void 0,void 0,a)],2))),o}function e9(e,t,n,r,i){if(!t||Q5(n,t))return X5(e,e.expression.expression,n,r,i);const o=s9(t,n),a=Y5(e,n,i),s=X5(e,e.expression.expression,n,!0,a);if(K5())return G5();const c=r9(t,r,a,o,e,n);if(K5())return G5();const l=mw.createBlock(s),_=mw.createCatchClause(o&&RC(u9(o)),mw.createBlock(c));return Z5(e,n,mw.createTryStatement(l,_,void 0),a,i)}function t9(e,t,n){return!e||c9(e)?[mw.createExpressionStatement(t)]:f9(e)&&e.hasBeenDeclared?[mw.createExpressionStatement(mw.createAssignment(RC(_9(e)),t))]:[mw.createVariableStatement(void 0,mw.createVariableDeclarationList([mw.createVariableDeclaration(RC(u9(e)),void 0,n,t)],2))]}function n9(e,t){if(t&&e){const n=mw.createUniqueName("result",16);return[...t9(l9(n),e,t),mw.createReturnStatement(n)]}return[mw.createReturnStatement(e)]}function r9(e,t,n,r,i,o){var a;switch(e.kind){case 106:break;case 212:case 80:if(!r)break;const s=mw.createCallExpression(RC(e),void 0,f9(r)?[_9(r)]:[]);if(m9(i,o))return n9(s,W5(i,e,o.checker));const c=o.checker.getTypeAtLocation(e),_=o.checker.getSignaturesOfType(c,0);if(!_.length)return G5();const u=_[0].getReturnType(),d=t9(n,mw.createAwaitExpression(s),W5(i,e,o.checker));return n&&n.types.push(o.checker.getAwaitedType(u)||u),d;case 219:case 220:{const r=e.body,s=null==(a=o9(o.checker.getTypeAtLocation(e),o.checker))?void 0:a.getReturnType();if(VF(r)){let a=[],c=!1;for(const l of r.statements)if(nE(l))if(c=!0,N1(l,o.checker))a=a.concat(a9(o,l,t,n));else{const t=s&&l.expression?i9(o.checker,s,l.expression):l.expression;a.push(...n9(t,W5(i,e,o.checker)))}else{if(t&&Df(l,ot))return G5();a.push(l)}return m9(i,o)?a.map(e=>RC(e)):function(e,t,n,r){const i=[];for(const r of e)if(nE(r)){if(r.expression){const e=$5(r.expression,n.checker)?mw.createAwaitExpression(r.expression):r.expression;void 0===t?i.push(mw.createExpressionStatement(e)):f9(t)&&t.hasBeenDeclared?i.push(mw.createExpressionStatement(mw.createAssignment(_9(t),e))):i.push(mw.createVariableStatement(void 0,mw.createVariableDeclarationList([mw.createVariableDeclaration(u9(t),void 0,void 0,e)],2)))}}else i.push(RC(r));return r||void 0===t||i.push(mw.createVariableStatement(void 0,mw.createVariableDeclarationList([mw.createVariableDeclaration(u9(t),void 0,void 0,mw.createIdentifier("undefined"))],2))),i}(a,n,o,c)}{const a=D1(r,o.checker)?a9(o,mw.createReturnStatement(r),t,n):l;if(a.length>0)return a;if(s){const t=i9(o.checker,s,r);if(m9(i,o))return n9(t,W5(i,e,o.checker));{const e=t9(n,t,void 0);return n&&n.types.push(o.checker.getAwaitedType(s)||s),e}}return G5()}}default:return G5()}return l}function i9(e,t,n){const r=RC(n);return e.getPromisedTypeOfPromise(t)?mw.createAwaitExpression(r):r}function o9(e,t){return ye(t.getSignaturesOfType(e,0))}function a9(e,t,n,r){let i=[];return XI(t,function t(o){if(fF(o)){const t=X5(o,o,e,n,r);if(i=i.concat(t),i.length>0)return}else r_(o)||XI(o,t)}),i}function s9(e,t){const n=[];let r;if(o_(e)?e.parameters.length>0&&(r=function e(t){if(aD(t))return i(t);return function(e,t=l,n=[]){return{kind:1,bindingPattern:e,elements:t,types:n}}(t,O(t.elements,t=>IF(t)?[]:[e(t.name)]))}(e.parameters[0].name)):aD(e)?r=i(e):dF(e)&&aD(e.name)&&(r=i(e.name)),r&&(!("identifier"in r)||"undefined"!==r.identifier.text))return r;function i(e){var r;const i=function(e){var n;return(null==(n=tt(e,au))?void 0:n.symbol)??t.checker.getSymbolAtLocation(e)}((r=e).original?r.original:r);return i&&t.synthNamesMap.get(eJ(i).toString())||l9(e,n)}}function c9(e){return!e||(f9(e)?!e.identifier.text:v(e.elements,c9))}function l9(e,t=[]){return{kind:0,identifier:e,types:t,hasBeenDeclared:!1,hasBeenReferenced:!1}}function _9(e){return e.hasBeenReferenced=!0,e.identifier}function u9(e){return f9(e)?p9(e):d9(e)}function d9(e){for(const t of e.elements)u9(t);return e.bindingPattern}function p9(e){return e.hasBeenDeclared=!0,e.identifier}function f9(e){return 0===e.kind}function m9(e,t){return!!e.original&&t.setOfExpressionsToReturn.has(ZB(e.original))}function g9(e,t,n,r,i){var o;for(const a of e.imports){const s=null==(o=n.getResolvedModuleFromModuleSpecifier(a,e))?void 0:o.resolvedModule;if(!s||s.resolvedFileName!==t.fileName)continue;const c=vg(a);switch(c.kind){case 272:r.replaceNode(e,c,QQ(c.name,void 0,a,i));break;case 214:Lm(c,!1)&&r.replaceNode(e,c,mw.createPropertyAccessExpression(RC(c),"default"))}}}function h9(e,t){e.forEachChild(function n(r){if(dF(r)&&YR(e,r.expression)&&aD(r.name)){const{parent:e}=r;t(r,NF(e)&&e.left===r&&64===e.operatorToken.kind)}r.forEachChild(n)})}function y9(e,t,n,r,i,o,a,s,c){switch(t.kind){case 244:return v9(e,t,r,n,i,o,c),!1;case 245:{const{expression:i}=t;switch(i.kind){case 214:return Lm(i,!0)&&r.replaceNode(e,t,QQ(void 0,void 0,i.arguments[0],c)),!1;case 227:{const{operatorToken:t}=i;return 64===t.kind&&function(e,t,n,r,i,o){const{left:a,right:s}=n;if(!dF(a))return!1;if(YR(e,a)){if(!YR(e,s)){const i=uF(s)?function(e,t){const n=R(e.properties,e=>{switch(e.kind){case 178:case 179:case 305:case 306:return;case 304:return aD(e.name)?function(e,t,n){const r=[mw.createToken(95)];switch(t.kind){case 219:{const{name:n}=t;if(n&&n.text!==e)return i()}case 220:return w9(e,r,t,n);case 232:return function(e,t,n,r){return mw.createClassDeclaration(K(t,zC(n.modifiers)),e,zC(n.typeParameters),zC(n.heritageClauses),k9(n.members,r))}(e,r,t,n);default:return i()}function i(){return F9(r,mw.createIdentifier(e),k9(t,n))}}(e.name.text,e.initializer,t):void 0;case 175:return aD(e.name)?w9(e.name.text,[mw.createToken(95)],e,t):void 0;default:un.assertNever(e,`Convert to ES6 got invalid prop kind ${e.kind}`)}});return n&&[n,!1]}(s,o):Lm(s,!0)?function(e,t){const n=e.text,r=t.getSymbolAtLocation(e),i=r?r.exports:_;return i.has("export=")?[[x9(n)],!0]:i.has("default")?i.size>1?[[b9(n),x9(n)],!0]:[[x9(n)],!0]:[[b9(n)],!1]}(s.arguments[0],t):void 0;return i?(r.replaceNodeWithNodes(e,n.parent,i[0]),i[1]):(r.replaceRangeWithText(e,Ab(a.getStart(e),s.pos),"export default"),!0)}r.delete(e,n.parent)}else YR(e,a.expression)&&function(e,t,n,r){const{text:i}=t.left.name,o=r.get(i);if(void 0!==o){const r=[F9(void 0,o,t.right),E9([mw.createExportSpecifier(!1,o,i)])];n.replaceNodeWithNodes(e,t.parent,r)}else!function({left:e,right:t,parent:n},r,i){const o=e.name.text;if(!(vF(t)||bF(t)||AF(t))||t.name&&t.name.text!==o)i.replaceNodeRangeWithNodes(r,e.expression,OX(e,25,r),[mw.createToken(95),mw.createToken(87)],{joiner:" ",suffix:" "});else{i.replaceRange(r,{pos:e.getStart(r),end:t.getStart(r)},mw.createToken(95),{suffix:" "}),t.name||i.insertName(r,t,o);const a=OX(n,27,r);a&&i.delete(r,a)}}(t,e,n)}(e,n,r,i);return!1}(e,n,i,r,a,s)}}}default:return!1}}function v9(e,t,n,r,i,o,a){const{declarationList:s}=t;let c=!1;const l=E(s.declarations,t=>{const{name:n,initializer:l}=t;if(l){if(YR(e,l))return c=!0,P9([]);if(Lm(l,!0))return c=!0,function(e,t,n,r,i,o){switch(e.kind){case 207:{const n=R(e.elements,e=>e.dotDotDotToken||e.initializer||e.propertyName&&!aD(e.propertyName)||!aD(e.name)?void 0:D9(e.propertyName&&e.propertyName.text,e.name.text));if(n)return P9([QQ(void 0,n,t,o)])}case 208:{const n=S9(UZ(t.text,i),r);return P9([QQ(mw.createIdentifier(n),void 0,t,o),F9(void 0,RC(e),mw.createIdentifier(n))])}case 80:return function(e,t,n,r,i){const o=n.getSymbolAtLocation(e),a=new Map;let s,c=!1;for(const t of r.original.get(e.text)){if(n.getSymbolAtLocation(t)!==o||t===e)continue;const{parent:i}=t;if(dF(i)){const{name:{text:e}}=i;if("default"===e){c=!0;const e=t.getText();(s??(s=new Map)).set(i,mw.createIdentifier(e))}else{un.assert(i.expression===t,"Didn't expect expression === use");let n=a.get(e);void 0===n&&(n=S9(e,r),a.set(e,n)),(s??(s=new Map)).set(i,mw.createIdentifier(n))}}else c=!0}const l=0===a.size?void 0:Oe(P(a.entries(),([e,t])=>mw.createImportSpecifier(!1,e===t?void 0:mw.createIdentifier(e),mw.createIdentifier(t))));return l||(c=!0),P9([QQ(c?RC(e):void 0,l,t,i)],s)}(e,t,n,r,o);default:return un.assertNever(e,`Convert to ES module got invalid name kind ${e.kind}`)}}(n,l.arguments[0],r,i,o,a);if(dF(l)&&Lm(l.expression,!0))return c=!0,function(e,t,n,r,i){switch(e.kind){case 207:case 208:{const o=S9(t,r);return P9([N9(o,t,n,i),F9(void 0,e,mw.createIdentifier(o))])}case 80:return P9([N9(e.text,t,n,i)]);default:return un.assertNever(e,`Convert to ES module got invalid syntax form ${e.kind}`)}}(n,l.name.text,l.expression.arguments[0],i,a)}return P9([mw.createVariableStatement(void 0,mw.createVariableDeclarationList([t],s.flags))])});if(c){let r;return n.replaceNodeWithNodes(e,t,O(l,e=>e.newImports)),d(l,e=>{e.useSitesToUnqualify&&od(e.useSitesToUnqualify,r??(r=new Map))}),r}}function b9(e){return E9(void 0,e)}function x9(e){return E9([mw.createExportSpecifier(!1,void 0,"default")],e)}function k9(e,t){return t&&$(Oe(t.keys()),t=>Xb(e,t))?Qe(e)?qC(e,!0,n):BC(e,!0,n):e;function n(e){if(212===e.kind){const n=t.get(e);return t.delete(e),n}}}function S9(e,t){for(;t.original.has(e)||t.additional.has(e);)e=`_${e}`;return t.additional.add(e),e}function T9(e){const t=$e();return C9(e,e=>t.add(e.text,e)),t}function C9(e,t){aD(e)&&function(e){const{parent:t}=e;switch(t.kind){case 212:return t.name!==e;case 209:case 277:return t.propertyName!==e;default:return!0}}(e)&&t(e),e.forEachChild(e=>C9(e,t))}function w9(e,t,n,r){return mw.createFunctionDeclaration(K(t,zC(n.modifiers)),RC(n.asteriskToken),e,zC(n.typeParameters),zC(n.parameters),RC(n.type),mw.converters.convertToFunctionBlock(k9(n.body,r)))}function N9(e,t,n,r){return"default"===t?QQ(mw.createIdentifier(e),void 0,n,r):QQ(void 0,[D9(t,e)],n,r)}function D9(e,t){return mw.createImportSpecifier(!1,void 0!==e&&e!==t?mw.createIdentifier(e):void 0,mw.createIdentifier(t))}function F9(e,t,n){return mw.createVariableStatement(e,mw.createVariableDeclarationList([mw.createVariableDeclaration(t,void 0,void 0,n)],2))}function E9(e,t){return mw.createExportDeclaration(void 0,!1,e&&mw.createNamedExports(e),void 0===t?void 0:mw.createStringLiteral(t))}function P9(e,t){return{newImports:e,useSitesToUnqualify:t}}A7({errorCodes:J5,getCodeActions(e){z5=!0;const t=jue.ChangeTracker.with(e,t=>q5(t,e.sourceFile,e.span.start,e.program.getTypeChecker()));return z5?[F7(B5,t,_a.Convert_to_async_function,B5,_a.Convert_all_to_async_functions)]:[]},fixIds:[B5],getAllCodeActions:e=>R7(e,J5,(t,n)=>q5(t,n.file,n.start,e.program.getTypeChecker()))}),A7({errorCodes:[_a.File_is_a_CommonJS_module_it_may_be_converted_to_an_ES_module.code],getCodeActions(e){const{sourceFile:t,program:n,preferences:r}=e;return[D7("convertToEsModule",jue.ChangeTracker.with(e,e=>{const i=function(e,t,n,r,i){const o={original:T9(e),additional:new Set},a=function(e,t,n){const r=new Map;return h9(e,e=>{const{text:i}=e.name;r.has(i)||!Ph(e.name)&&!t.resolveName(i,e,111551,!0)||r.set(i,S9(`_${i}`,n))}),r}(e,t,o);!function(e,t,n){h9(e,(r,i)=>{if(i)return;const{text:o}=r.name;n.replaceNode(e,r,mw.createIdentifier(t.get(o)||o))})}(e,a,n);let s,c=!1;for(const a of N(e.statements,WF)){const c=v9(e,a,n,t,o,r,i);c&&od(c,s??(s=new Map))}for(const l of N(e.statements,e=>!WF(e))){const _=y9(e,l,t,n,o,r,a,s,i);c=c||_}return null==s||s.forEach((t,r)=>{n.replaceNode(e,r,t)}),c}(t,n.getTypeChecker(),e,yk(n.getCompilerOptions()),tY(t,r));if(i)for(const i of n.getSourceFiles())g9(i,t,n,e,tY(i,r))}),_a.Convert_to_ES_module)]}});var A9="correctQualifiedNameToIndexedAccessType",I9=[_a.Cannot_access_0_1_because_0_is_a_type_but_not_a_namespace_Did_you_mean_to_retrieve_the_type_of_the_property_1_in_0_with_0_1.code];function O9(e,t){const n=uc(HX(e,t),xD);return un.assert(!!n,"Expected position to be owned by a qualified name."),aD(n.left)?n:void 0}function L9(e,t,n){const r=n.right.text,i=mw.createIndexedAccessTypeNode(mw.createTypeReferenceNode(n.left,void 0),mw.createLiteralTypeNode(mw.createStringLiteral(r)));e.replaceNode(t,n,i)}A7({errorCodes:I9,getCodeActions(e){const t=O9(e.sourceFile,e.span.start);if(!t)return;const n=jue.ChangeTracker.with(e,n=>L9(n,e.sourceFile,t)),r=`${t.left.text}["${t.right.text}"]`;return[F7(A9,n,[_a.Rewrite_as_the_indexed_access_type_0,r],A9,_a.Rewrite_all_as_indexed_access_types)]},fixIds:[A9],getAllCodeActions:e=>R7(e,I9,(e,t)=>{const n=O9(t.file,t.start);n&&L9(e,t.file,n)})});var j9=[_a.Re_exporting_a_type_when_0_is_enabled_requires_using_export_type.code],M9="convertToTypeOnlyExport";function R9(e,t){return tt(HX(t,e.start).parent,LE)}function B9(e,t,n){if(!t)return;const r=t.parent,i=r.parent,o=function(e,t){const n=e.parent;if(1===n.elements.length)return n.elements;const r=LZ(FQ(n),t.program.getSemanticDiagnostics(t.sourceFile,t.cancellationToken));return N(n.elements,t=>{var n;return t===e||(null==(n=OZ(t,r))?void 0:n.code)===j9[0]})}(t,n);if(o.length===r.elements.length)e.insertModifierBefore(n.sourceFile,156,r);else{const t=mw.updateExportDeclaration(i,i.modifiers,!1,mw.updateNamedExports(r,N(r.elements,e=>!T(o,e))),i.moduleSpecifier,void 0),a=mw.createExportDeclaration(void 0,!0,mw.createNamedExports(o),i.moduleSpecifier,void 0);e.replaceNode(n.sourceFile,i,t,{leadingTriviaOption:jue.LeadingTriviaOption.IncludeAll,trailingTriviaOption:jue.TrailingTriviaOption.Exclude}),e.insertNodeAfter(n.sourceFile,i,a)}}A7({errorCodes:j9,getCodeActions:function(e){const t=jue.ChangeTracker.with(e,t=>B9(t,R9(e.span,e.sourceFile),e));if(t.length)return[F7(M9,t,_a.Convert_to_type_only_export,M9,_a.Convert_all_re_exported_types_to_type_only_exports)]},fixIds:[M9],getAllCodeActions:function(e){const t=new Set;return R7(e,j9,(n,r)=>{const i=R9(r,e.sourceFile);i&&bx(t,ZB(i.parent.parent))&&B9(n,i,e)})}});var J9=[_a._0_is_a_type_and_must_be_imported_using_a_type_only_import_when_verbatimModuleSyntax_is_enabled.code,_a._0_resolves_to_a_type_only_declaration_and_must_be_imported_using_a_type_only_import_when_verbatimModuleSyntax_is_enabled.code],z9="convertToTypeOnlyImport";function q9(e,t){const{parent:n}=HX(e,t);return PE(n)||xE(n)&&n.importClause?n:void 0}function U9(e,t,n){if(e.parent.parent.name)return!1;const r=e.parent.elements.filter(e=>!e.isTypeOnly);if(1===r.length)return!0;const i=n.getTypeChecker();for(const e of r)if(gce.Core.eachSymbolReferenceInFile(e.name,i,t,e=>{const t=i.getSymbolAtLocation(e);return!!t&&i.symbolIsValue(t)||!bT(e)}))return!1;return!0}function V9(e,t,n){var r;if(PE(n))e.replaceNode(t,n,mw.updateImportSpecifier(n,!0,n.propertyName,n.name));else{const i=n.importClause;if(i.name&&i.namedBindings)e.replaceNodeWithNodes(t,n,[mw.createImportDeclaration(zC(n.modifiers,!0),mw.createImportClause(156,RC(i.name,!0),void 0),RC(n.moduleSpecifier,!0),RC(n.attributes,!0)),mw.createImportDeclaration(zC(n.modifiers,!0),mw.createImportClause(156,void 0,RC(i.namedBindings,!0)),RC(n.moduleSpecifier,!0),RC(n.attributes,!0))]);else{const o=276===(null==(r=i.namedBindings)?void 0:r.kind)?mw.updateNamedImports(i.namedBindings,A(i.namedBindings.elements,e=>mw.updateImportSpecifier(e,!1,e.propertyName,e.name))):i.namedBindings,a=mw.updateImportDeclaration(n,n.modifiers,mw.updateImportClause(i,156,i.name,o),n.moduleSpecifier,n.attributes);e.replaceNode(t,n,a)}}}A7({errorCodes:J9,getCodeActions:function(e){var t;const n=q9(e.sourceFile,e.span.start);if(n){const r=jue.ChangeTracker.with(e,t=>V9(t,e.sourceFile,n)),i=277===n.kind&&xE(n.parent.parent.parent)&&U9(n,e.sourceFile,e.program)?jue.ChangeTracker.with(e,t=>V9(t,e.sourceFile,n.parent.parent.parent)):void 0,o=F7(z9,r,277===n.kind?[_a.Use_type_0,(null==(t=n.propertyName)?void 0:t.text)??n.name.text]:_a.Use_import_type,z9,_a.Fix_all_with_type_only_imports);return $(i)?[D7(z9,i,_a.Use_import_type),o]:[o]}},fixIds:[z9],getAllCodeActions:function(e){const t=new Set;return R7(e,J9,(n,r)=>{const i=q9(r.file,r.start);273!==(null==i?void 0:i.kind)||t.has(i)?277===(null==i?void 0:i.kind)&&xE(i.parent.parent.parent)&&!t.has(i.parent.parent.parent)&&U9(i,r.file,e.program)?(V9(n,r.file,i.parent.parent.parent),t.add(i.parent.parent.parent)):277===(null==i?void 0:i.kind)&&V9(n,r.file,i):(V9(n,r.file,i),t.add(i))})}});var W9="convertTypedefToType",$9=[_a.JSDoc_typedef_may_be_converted_to_TypeScript_type.code];function H9(e,t,n,r,i=!1){if(!VP(t))return;const o=function(e){var t;const{typeExpression:n}=e;if(!n)return;const r=null==(t=e.name)?void 0:t.getText();return r?323===n.kind?function(e,t){const n=G9(t);if($(n))return mw.createInterfaceDeclaration(void 0,e,void 0,void 0,n)}(r,n):310===n.kind?function(e,t){const n=RC(t.type);if(n)return mw.createTypeAliasDeclaration(void 0,mw.createIdentifier(e),void 0,n)}(r,n):void 0:void 0}(t);if(!o)return;const a=t.parent,{leftSibling:s,rightSibling:c}=function(e){const t=e.parent,n=t.getChildCount()-1,r=t.getChildren().findIndex(t=>t.getStart()===e.getStart()&&t.getEnd()===e.getEnd());return{leftSibling:r>0?t.getChildAt(r-1):void 0,rightSibling:r0;e--)if(!/[*/\s]/.test(r.substring(e-1,e)))return t+e;return n}function G9(e){const t=e.jsDocPropertyTags;if($(t))return B(t,e=>{var t;const n=function(e){return 80===e.name.kind?e.name.text:e.name.right.text}(e),r=null==(t=e.typeExpression)?void 0:t.type,i=e.isBracketed;let o;if(r&&TP(r)){const e=G9(r);o=mw.createTypeLiteralNode(e)}else r&&(o=RC(r));if(o&&n){const e=i?mw.createToken(58):void 0;return mw.createPropertySignature(void 0,n,e,o)}})}function X9(e){return Du(e)?O(e.jsDoc,e=>{var t;return null==(t=e.tags)?void 0:t.filter(e=>VP(e))}):[]}A7({fixIds:[W9],errorCodes:$9,getCodeActions(e){const t=RY(e.host,e.formatContext.options),n=HX(e.sourceFile,e.span.start);if(!n)return;const r=jue.ChangeTracker.with(e,r=>H9(r,n,e.sourceFile,t));return r.length>0?[F7(W9,r,_a.Convert_typedef_to_TypeScript_type,W9,_a.Convert_all_typedef_to_TypeScript_types)]:void 0},getAllCodeActions:e=>R7(e,$9,(t,n)=>{const r=RY(e.host,e.formatContext.options),i=HX(n.file,n.start);i&&H9(t,i,n.file,r,!0)})});var Q9="convertLiteralTypeToMappedType",Y9=[_a._0_only_refers_to_a_type_but_is_being_used_as_a_value_here_Did_you_mean_to_use_1_in_0.code];function Z9(e,t){const n=HX(e,t);if(aD(n)){const t=nt(n.parent.parent,wD),r=n.getText(e);return{container:nt(t.parent,qD),typeNode:t.type,constraint:r,name:"K"===r?"P":"K"}}}function eee(e,t,{container:n,typeNode:r,constraint:i,name:o}){e.replaceNode(t,n,mw.createMappedTypeNode(void 0,mw.createTypeParameterDeclaration(void 0,o,mw.createTypeReferenceNode(i)),void 0,void 0,r,void 0))}A7({errorCodes:Y9,getCodeActions:function(e){const{sourceFile:t,span:n}=e,r=Z9(t,n.start);if(!r)return;const{name:i,constraint:o}=r,a=jue.ChangeTracker.with(e,e=>eee(e,t,r));return[F7(Q9,a,[_a.Convert_0_to_1_in_0,o,i],Q9,_a.Convert_all_type_literals_to_mapped_type)]},fixIds:[Q9],getAllCodeActions:e=>R7(e,Y9,(e,t)=>{const n=Z9(t.file,t.start);n&&eee(e,t.file,n)})});var tee=[_a.Class_0_incorrectly_implements_interface_1.code,_a.Class_0_incorrectly_implements_class_1_Did_you_mean_to_extend_1_and_inherit_its_members_as_a_subclass.code],nee="fixClassIncorrectlyImplementsInterface";function ree(e,t){return un.checkDefined(Xf(HX(e,t)),"There should be a containing class")}function iee(e){return!(e.valueDeclaration&&2&Bv(e.valueDeclaration))}function oee(e,t,n,r,i,o){const a=e.program.getTypeChecker(),s=function(e,t){const n=yh(e);if(!n)return Gu();const r=t.getTypeAtLocation(n);return Gu(t.getPropertiesOfType(r).filter(iee))}(r,a),c=a.getTypeAtLocation(t),l=a.getPropertiesOfType(c).filter(Zt(iee,e=>!s.has(e.escapedName))),_=a.getTypeAtLocation(r),u=b(r.members,e=>PD(e));_.getNumberIndexType()||p(c,1),_.getStringIndexType()||p(c,0);const d=lee(n,e.program,o,e.host);function p(t,i){const o=a.getIndexInfoOfType(t,i);o&&f(n,r,a.indexInfoToIndexSignatureDeclaration(o,r,void 0,void 0,Iie(e)))}function f(e,t,n){u?i.insertNodeAfter(e,u,n):i.insertMemberAtStart(e,t,n)}Aie(r,l,n,e,o,d,e=>f(n,r,e)),d.writeFixes(i)}A7({errorCodes:tee,getCodeActions(e){const{sourceFile:t,span:n}=e,r=ree(t,n.start);return B(bh(r),n=>{const i=jue.ChangeTracker.with(e,i=>oee(e,n,t,r,i,e.preferences));return 0===i.length?void 0:F7(nee,i,[_a.Implement_interface_0,n.getText(t)],nee,_a.Implement_all_unimplemented_interfaces)})},fixIds:[nee],getAllCodeActions(e){const t=new Set;return R7(e,tee,(n,r)=>{const i=ree(r.file,r.start);if(bx(t,ZB(i)))for(const t of bh(i))oee(e,t,r.file,i,n,e.preferences)})}});var aee="import",see="fixMissingImport",cee=[_a.Cannot_find_name_0.code,_a.Cannot_find_name_0_Did_you_mean_1.code,_a.Cannot_find_name_0_Did_you_mean_the_instance_member_this_0.code,_a.Cannot_find_name_0_Did_you_mean_the_static_member_1_0.code,_a.Cannot_find_namespace_0.code,_a._0_refers_to_a_UMD_global_but_the_current_file_is_a_module_Consider_adding_an_import_instead.code,_a._0_only_refers_to_a_type_but_is_being_used_as_a_value_here.code,_a.No_value_exists_in_scope_for_the_shorthand_property_0_Either_declare_one_or_provide_an_initializer.code,_a._0_cannot_be_used_as_a_value_because_it_was_imported_using_import_type.code,_a.Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_jQuery_Try_npm_i_save_dev_types_Slashjquery.code,_a.Cannot_find_name_0_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_1_or_later.code,_a.Cannot_find_name_0_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_include_dom.code,_a.Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_a_test_runner_Try_npm_i_save_dev_types_Slashjest_or_npm_i_save_dev_types_Slashmocha_and_then_add_jest_or_mocha_to_the_types_field_in_your_tsconfig.code,_a.Cannot_find_name_0_Did_you_mean_to_write_this_in_an_async_function.code,_a.Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_jQuery_Try_npm_i_save_dev_types_Slashjquery_and_then_add_jquery_to_the_types_field_in_your_tsconfig.code,_a.Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_a_test_runner_Try_npm_i_save_dev_types_Slashjest_or_npm_i_save_dev_types_Slashmocha.code,_a.Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_node_Try_npm_i_save_dev_types_Slashnode.code,_a.Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_node_Try_npm_i_save_dev_types_Slashnode_and_then_add_node_to_the_types_field_in_your_tsconfig.code,_a.Cannot_find_namespace_0_Did_you_mean_1.code,_a.Cannot_extend_an_interface_0_Did_you_mean_implements.code,_a.This_JSX_tag_requires_0_to_be_in_scope_but_it_could_not_be_found.code];function lee(e,t,n,r,i){return _ee(e,t,!1,n,r,i)}function _ee(e,t,n,r,i,o){const a=t.getCompilerOptions(),s=[],c=[],l=new Map,_=new Set,u=new Set,d=new Map;return{addImportFromDiagnostic:function(e,t){const r=See(t,e.code,e.start,n);r&&r.length&&p(ge(r))},addImportFromExportedSymbol:function(n,s,c){var l,_;const u=un.checkDefined(n.parent,"Expected exported symbol to have module symbol as parent"),d=JZ(n,yk(a)),f=t.getTypeChecker(),m=f.getMergedSymbol(ox(n,f)),g=gee(e,m,d,u,!1,t,i,r,o);if(!g)return void un.assert(null==(l=r.autoImportFileExcludePatterns)?void 0:l.length);const h=xee(e,t);let y=fee(e,g,t,void 0,!!s,h,i,r);if(y){const e=(null==(_=tt(null==c?void 0:c.name,aD))?void 0:_.text)??d;let t,r;c&&Bl(c)&&(3===y.kind||2===y.kind)&&1===y.addAsTypeOnly&&(t=2),n.name!==e&&(r=n.name),y={...y,...void 0===t?{}:{addAsTypeOnly:t},...void 0===r?{}:{propertyName:r}},p({fix:y,symbolName:e??d,errorIdentifierText:void 0})}},addImportForModuleSymbol:function(n,o,s){var c,l,_;const u=t.getTypeChecker(),d=u.getAliasedSymbol(n);un.assert(1536&d.flags,"Expected symbol to be a module");const f=KQ(t,i),m=nB.getModuleSpecifiersWithCacheInfo(d,u,a,e,f,r,void 0,!0),g=xee(e,t);let h=vee(o,0,void 0,n.flags,t.getTypeChecker(),a);h=1===h&&Bl(s)?2:1;const y=xE(s)?Tg(s)?1:2:PE(s)?0:kE(s)&&s.name?1:2,v=[{symbol:n,moduleSymbol:d,moduleFileName:null==(_=null==(l=null==(c=d.declarations)?void 0:c[0])?void 0:l.getSourceFile())?void 0:_.fileName,exportKind:4,targetFlags:n.flags,isFromPackageJson:!1}],b=fee(e,v,t,void 0,!!o,g,i,r);let x;x=b&&2!==y&&0!==b.kind&&1!==b.kind?{...b,addAsTypeOnly:h,importKind:y}:{kind:3,moduleSpecifierKind:void 0!==b?b.moduleSpecifierKind:m.kind,moduleSpecifier:void 0!==b?b.moduleSpecifier:ge(m.moduleSpecifiers),importKind:y,addAsTypeOnly:h,useRequire:g},p({fix:x,symbolName:n.name,errorIdentifierText:void 0})},writeFixes:function(t,n){var i,o;let p,f,m;p=void 0!==e.imports&&0===e.imports.length&&void 0!==n?n:tY(e,r);for(const n of s)Lee(t,e,n);for(const n of c)jee(t,e,n,p);if(_.size){un.assert(Dm(e),"Cannot remove imports from a future source file");const n=new Set(B([..._],e=>uc(e,xE))),r=new Set(B([..._],e=>uc(e,jm))),a=[...n].filter(e=>{var t,n,r;return!l.has(e.importClause)&&(!(null==(t=e.importClause)?void 0:t.name)||_.has(e.importClause))&&(!tt(null==(n=e.importClause)?void 0:n.namedBindings,DE)||_.has(e.importClause.namedBindings))&&(!tt(null==(r=e.importClause)?void 0:r.namedBindings,EE)||v(e.importClause.namedBindings.elements,e=>_.has(e)))}),s=[...r].filter(e=>(207!==e.name.kind||!l.has(e.name))&&(207!==e.name.kind||v(e.name.elements,e=>_.has(e)))),c=[...n].filter(e=>{var t,n;return(null==(t=e.importClause)?void 0:t.namedBindings)&&-1===a.indexOf(e)&&!(null==(n=l.get(e.importClause))?void 0:n.namedImports)&&(275===e.importClause.namedBindings.kind||v(e.importClause.namedBindings.elements,e=>_.has(e)))});for(const n of[...a,...s])t.delete(e,n);for(const n of c)t.replaceNode(e,n.importClause,mw.updateImportClause(n.importClause,n.importClause.phaseModifier,n.importClause.name,void 0));for(const n of _){const r=uc(n,xE);r&&-1===a.indexOf(r)&&-1===c.indexOf(r)?274===n.kind?t.delete(e,n.name):(un.assert(277===n.kind,"NamespaceImport should have been handled earlier"),(null==(i=l.get(r.importClause))?void 0:i.namedImports)?(f??(f=new Set)).add(n):t.delete(e,n)):209===n.kind?(null==(o=l.get(n.parent))?void 0:o.namedImports)?(f??(f=new Set)).add(n):t.delete(e,n):272===n.kind&&t.delete(e,n)}}l.forEach(({importClauseOrBindingPattern:n,defaultImport:i,namedImports:o})=>{Oee(t,e,n,i,Oe(o.entries(),([e,{addAsTypeOnly:t,propertyName:n}])=>({addAsTypeOnly:t,propertyName:n,name:e})),f,r)}),d.forEach(({useRequire:e,defaultImport:t,namedImports:n,namespaceLikeImport:i},o)=>{const s=(e?zee:Jee)(o.slice(2),p,t,n&&Oe(n.entries(),([e,[t,n]])=>({addAsTypeOnly:t,propertyName:n,name:e})),i,a,r);m=oe(m,s)}),m=oe(m,function(){if(!u.size)return;const e=new Set(B([...u],e=>uc(e,xE))),t=new Set(B([...u],e=>uc(e,Jm)));return[...B([...u],e=>272===e.kind?RC(e,!0):void 0),...[...e].map(e=>{var t;return u.has(e)?RC(e,!0):RC(mw.updateImportDeclaration(e,e.modifiers,e.importClause&&mw.updateImportClause(e.importClause,e.importClause.phaseModifier,u.has(e.importClause)?e.importClause.name:void 0,u.has(e.importClause.namedBindings)?e.importClause.namedBindings:(null==(t=tt(e.importClause.namedBindings,EE))?void 0:t.elements.some(e=>u.has(e)))?mw.updateNamedImports(e.importClause.namedBindings,e.importClause.namedBindings.elements.filter(e=>u.has(e))):void 0),e.moduleSpecifier,e.attributes),!0)}),...[...t].map(e=>u.has(e)?RC(e,!0):RC(mw.updateVariableStatement(e,e.modifiers,mw.updateVariableDeclarationList(e.declarationList,B(e.declarationList.declarations,e=>u.has(e)?e:mw.updateVariableDeclaration(e,207===e.name.kind?mw.updateObjectBindingPattern(e.name,e.name.elements.filter(e=>u.has(e))):e.name,e.exclamationToken,e.type,e.initializer)))),!0))]}()),m&&uY(t,e,m,!0,r)},hasFixes:function(){return s.length>0||c.length>0||l.size>0||d.size>0||u.size>0||_.size>0},addImportForUnresolvedIdentifier:function(e,t,n){const r=function(e,t,n){const r=Fee(e,t,n),i=EZ(e.sourceFile,e.preferences,e.host);return r&&Tee(r,e.sourceFile,e.program,i,e.host,e.preferences)}(e,t,n);r&&r.length&&p(ge(r))},addImportForNonExistentExport:function(n,o,s,c,l){const _=t.getSourceFile(o),u=xee(e,t);if(_&&_.symbol){const{fixes:a}=yee([{exportKind:s,isFromPackageJson:!1,moduleFileName:o,moduleSymbol:_.symbol,targetFlags:c}],void 0,l,u,t,e,i,r);a.length&&p({fix:a[0],symbolName:n,errorIdentifierText:n})}else{const _=n0(o,99,t,i);p({fix:{kind:3,moduleSpecifierKind:"relative",moduleSpecifier:nB.getLocalModuleSpecifierBetweenFileNames(e,o,a,KQ(t,i),r),importKind:Dee(_,s,t),addAsTypeOnly:vee(l,0,void 0,c,t.getTypeChecker(),a),useRequire:u},symbolName:n,errorIdentifierText:n})}},removeExistingImport:function(e){274===e.kind&&un.assertIsDefined(e.name,"ImportClause should have a name if it's being removed"),_.add(e)},addVerbatimImport:function(e){u.add(e)}};function p(e){var t,n,r;const{fix:i,symbolName:o}=e;switch(i.kind){case 0:s.push(i);break;case 1:c.push(i);break;case 2:{const{importClauseOrBindingPattern:e,importKind:r,addAsTypeOnly:a,propertyName:s}=i;let c=l.get(e);if(c||l.set(e,c={importClauseOrBindingPattern:e,defaultImport:void 0,namedImports:new Map}),0===r){const e=null==(t=null==c?void 0:c.namedImports.get(o))?void 0:t.addAsTypeOnly;c.namedImports.set(o,{addAsTypeOnly:_(e,a),propertyName:s})}else un.assert(void 0===c.defaultImport||c.defaultImport.name===o,"(Add to Existing) Default import should be missing or match symbolName"),c.defaultImport={name:o,addAsTypeOnly:_(null==(n=c.defaultImport)?void 0:n.addAsTypeOnly,a)};break}case 3:{const{moduleSpecifier:e,importKind:t,useRequire:n,addAsTypeOnly:s,propertyName:c}=i,l=function(e,t,n,r){const i=u(e,!0),o=u(e,!1),a=d.get(i),s=d.get(o),c={defaultImport:void 0,namedImports:void 0,namespaceLikeImport:void 0,useRequire:n};return 1===t&&2===r?a||(d.set(i,c),c):1===r&&(a||s)?a||s:s||(d.set(o,c),c)}(e,t,n,s);switch(un.assert(l.useRequire===n,"(Add new) Tried to add an `import` and a `require` for the same module"),t){case 1:un.assert(void 0===l.defaultImport||l.defaultImport.name===o,"(Add new) Default import should be missing or match symbolName"),l.defaultImport={name:o,addAsTypeOnly:_(null==(r=l.defaultImport)?void 0:r.addAsTypeOnly,s)};break;case 0:const e=(l.namedImports||(l.namedImports=new Map)).get(o);l.namedImports.set(o,[_(e,s),c]);break;case 3:if(a.verbatimModuleSyntax){const e=(l.namedImports||(l.namedImports=new Map)).get(o);l.namedImports.set(o,[_(e,s),c])}else un.assert(void 0===l.namespaceLikeImport||l.namespaceLikeImport.name===o,"Namespacelike import shoudl be missing or match symbolName"),l.namespaceLikeImport={importKind:t,name:o,addAsTypeOnly:s};break;case 2:un.assert(void 0===l.namespaceLikeImport||l.namespaceLikeImport.name===o,"Namespacelike import shoudl be missing or match symbolName"),l.namespaceLikeImport={importKind:t,name:o,addAsTypeOnly:s}}break}case 4:break;default:un.assertNever(i,`fix wasn't never - got kind ${i.kind}`)}function _(e,t){return Math.max(e??0,t)}function u(e,t){return`${t?1:0}|${e}`}}}function uee(e,t,n,r){const i=EZ(e,r,n),o=bee(e,t);return{getModuleSpecifierForBestExportInfo:function(a,s,c,l){const{fixes:_,computedWithoutCacheCount:u}=yee(a,s,c,!1,t,e,n,r,o,l),d=Cee(_,e,t,i,n,r);return d&&{...d,computedWithoutCacheCount:u}}}}function dee(e,t,n,r,i,o,a,s,c,l,_,u){let d;n?(d=p0(r,a,s,_,u).get(r.path,n),un.assertIsDefined(d,"Some exportInfo should match the specified exportMapKey")):(d=bo(Fy(t.name))?[hee(e,i,t,s,a)]:gee(r,e,i,t,o,s,a,_,u),un.assertIsDefined(d,"Some exportInfo should match the specified symbol / moduleSymbol"));const p=xee(r,s),f=bT(HX(r,l)),m=un.checkDefined(fee(r,d,s,l,f,p,a,_));return{moduleSpecifier:m.moduleSpecifier,codeAction:mee(Aee({host:a,formatContext:c,preferences:_},r,i,m,!1,s,_))}}function pee(e,t,n,r,i,o){const a=n.getCompilerOptions(),s=xe(Pee(e,n.getTypeChecker(),t,a)),c=Eee(e,t,s,n),l=s!==t.text;return c&&mee(Aee({host:r,formatContext:i,preferences:o},e,s,c,l,n,o))}function fee(e,t,n,r,i,o,a,s){const c=EZ(e,s,a);return Cee(yee(t,r,i,o,n,e,a,s).fixes,e,n,c,a,s)}function mee({description:e,changes:t,commands:n}){return{description:e,changes:t,commands:n}}function gee(e,t,n,r,i,o,a,s,c){const l=kee(o,a),_=s.autoImportFileExcludePatterns&&d0(a,s),u=o.getTypeChecker().getMergedSymbol(r),d=_&&u.declarations&&Hu(u,308),p=d&&_(d);return p0(e,a,o,s,c).search(e.path,i,e=>e===n,e=>{const n=l(e[0].isFromPackageJson);if(n.getMergedSymbol(ox(e[0].symbol,n))===t&&(p||e.some(e=>n.getMergedSymbol(e.moduleSymbol)===r||e.symbol.parent===r)))return e})}function hee(e,t,n,r,i){var o,a;const s=l(r.getTypeChecker(),!1);if(s)return s;const c=null==(a=null==(o=i.getPackageJsonAutoImportProvider)?void 0:o.call(i))?void 0:a.getTypeChecker();return un.checkDefined(c&&l(c,!0),"Could not find symbol in specified module for code actions");function l(r,i){const o=f0(n,r);if(o&&ox(o.symbol,r)===e)return{symbol:o.symbol,moduleSymbol:n,moduleFileName:void 0,exportKind:o.exportKind,targetFlags:ox(e,r).flags,isFromPackageJson:i};const a=r.tryGetMemberInModuleExportsAndProperties(t,n);return a&&ox(a,r)===e?{symbol:a,moduleSymbol:n,moduleFileName:void 0,exportKind:0,targetFlags:ox(e,r).flags,isFromPackageJson:i}:void 0}}function yee(e,t,n,r,i,o,a,s,c=(Dm(o)?bee(o,i):void 0),_){const u=i.getTypeChecker(),d=c?O(e,c.getImportsForExportInfo):l,p=void 0!==t&&function(e,t){return f(e,({declaration:e,importKind:n})=>{var r;if(0!==n)return;const i=function(e){var t,n,r;switch(e.kind){case 261:return null==(t=tt(e.name,aD))?void 0:t.text;case 272:return e.name.text;case 352:case 273:return null==(r=tt(null==(n=e.importClause)?void 0:n.namedBindings,DE))?void 0:r.name.text;default:return un.assertNever(e)}}(e),o=i&&(null==(r=yg(e))?void 0:r.text);return o?{kind:0,namespacePrefix:i,usagePosition:t,moduleSpecifierKind:void 0,moduleSpecifier:o}:void 0})}(d,t),m=function(e,t,n,r){let i;for(const t of e){const e=o(t);if(!e)continue;const n=Bl(e.importClauseOrBindingPattern);if(4!==e.addAsTypeOnly&&n||4===e.addAsTypeOnly&&!n)return e;i??(i=e)}return i;function o({declaration:e,importKind:i,symbol:o,targetFlags:a}){if(3===i||2===i||272===e.kind)return;if(261===e.kind)return 0!==i&&1!==i||207!==e.name.kind?void 0:{kind:2,importClauseOrBindingPattern:e.name,importKind:i,moduleSpecifierKind:void 0,moduleSpecifier:e.initializer.arguments[0].text,addAsTypeOnly:4};const{importClause:s}=e;if(!s||!ju(e.moduleSpecifier))return;const{name:c,namedBindings:l}=s;if(s.isTypeOnly&&(0!==i||!l))return;const _=vee(t,0,o,a,n,r);return 1===i&&(c||2===_&&l)||0===i&&275===(null==l?void 0:l.kind)?void 0:{kind:2,importClauseOrBindingPattern:s,importKind:i,moduleSpecifierKind:void 0,moduleSpecifier:e.moduleSpecifier.text,addAsTypeOnly:_}}}(d,n,u,i.getCompilerOptions());if(m)return{computedWithoutCacheCount:0,fixes:[...p?[p]:l,m]};const{fixes:g,computedWithoutCacheCount:h=0}=function(e,t,n,r,i,o,a,s,c,l){const _=f(t,e=>function({declaration:e,importKind:t,symbol:n,targetFlags:r},i,o,a,s){var c;const l=null==(c=yg(e))?void 0:c.text;if(l)return{kind:3,moduleSpecifierKind:void 0,moduleSpecifier:l,importKind:t,addAsTypeOnly:o?4:vee(i,0,n,r,a,s),useRequire:o}}(e,o,a,n.getTypeChecker(),n.getCompilerOptions()));return _?{fixes:[_]}:function(e,t,n,r,i,o,a,s,c){const l=OS(t.fileName),_=e.getCompilerOptions(),u=KQ(e,a),d=kee(e,a),p=XQ(bk(_)),f=c?e=>nB.tryGetModuleSpecifiersFromCache(e.moduleSymbol,t,u,s):(e,n)=>nB.getModuleSpecifiersWithCacheInfo(e.moduleSymbol,n,_,t,u,s,void 0,!0);let m=0;const g=O(o,(o,a)=>{const s=d(o.isFromPackageJson),{computedWithoutCache:c,moduleSpecifiers:u,kind:g}=f(o,s)??{},h=!!(111551&o.targetFlags),y=vee(r,0,o.symbol,o.targetFlags,s,_);return m+=c?1:0,B(u,r=>{if(p&&GM(r))return;if(!h&&l&&void 0!==n)return{kind:1,moduleSpecifierKind:g,moduleSpecifier:r,usagePosition:n,exportInfo:o,isReExport:a>0};const c=Dee(t,o.exportKind,e);let u;if(void 0!==n&&3===c&&0===o.exportKind){const e=s.resolveExternalModuleSymbol(o.moduleSymbol);let t;e!==o.moduleSymbol&&(t=g0(e,s,yk(_),st)),t||(t=qZ(o.moduleSymbol,yk(_),!1)),u={namespacePrefix:t,usagePosition:n}}return{kind:3,moduleSpecifierKind:g,moduleSpecifier:r,importKind:c,useRequire:i,addAsTypeOnly:y,exportInfo:o,isReExport:a>0,qualification:u}})});return{computedWithoutCacheCount:m,fixes:g}}(n,r,i,o,a,e,s,c,l)}(e,d,i,o,t,n,r,a,s,_);return{computedWithoutCacheCount:h,fixes:[...p?[p]:l,...g]}}function vee(e,t,n,r,i,o){return e?!n||!o.verbatimModuleSyntax||111551&r&&!i.getTypeOnlyAliasDeclaration(n)?1:2:4}function bee(e,t){const n=t.getTypeChecker();let r;for(const t of e.imports){const e=vg(t);if(jm(e.parent)){const i=n.resolveExternalModuleName(t);i&&(r||(r=$e())).add(eJ(i),e.parent)}else if(273===e.kind||272===e.kind||352===e.kind){const i=n.getSymbolAtLocation(t);i&&(r||(r=$e())).add(eJ(i),e)}}return{getImportsForExportInfo:({moduleSymbol:n,exportKind:i,targetFlags:o,symbol:a})=>{const s=null==r?void 0:r.get(eJ(n));if(!s)return l;if(Fm(e)&&!(111551&o)&&!v(s,XP))return l;const c=Dee(e,i,t);return s.map(e=>({declaration:e,importKind:c,symbol:a,targetFlags:o}))}}}function xee(e,t){if(!OS(e.fileName))return!1;if(e.commonJsModuleIndicator&&!e.externalModuleIndicator)return!0;if(e.externalModuleIndicator&&!e.commonJsModuleIndicator)return!1;const n=t.getCompilerOptions();if(n.configFile)return vk(n)<5;if(1===Vee(e,t))return!0;if(99===Vee(e,t))return!1;for(const n of t.getSourceFiles())if(n!==e&&Fm(n)&&!t.isSourceFileFromExternalLibrary(n)){if(n.commonJsModuleIndicator&&!n.externalModuleIndicator)return!0;if(n.externalModuleIndicator&&!n.commonJsModuleIndicator)return!1}return!0}function kee(e,t){return pt(n=>n?t.getPackageJsonAutoImportProvider().getTypeChecker():e.getTypeChecker())}function See(e,t,n,r){const i=HX(e.sourceFile,n);let o;if(t===_a._0_refers_to_a_UMD_global_but_the_current_file_is_a_module_Consider_adding_an_import_instead.code)o=function({sourceFile:e,program:t,host:n,preferences:r},i){const o=t.getTypeChecker(),a=function(e,t){const n=aD(e)?t.getSymbolAtLocation(e):void 0;if(hx(n))return n;const{parent:r}=e;if(bu(r)&&r.tagName===e||$E(r)){const n=t.resolveName(t.getJsxNamespace(r),bu(r)?e:r,111551,!1);if(hx(n))return n}}(i,o);if(!a)return;const s=o.getAliasedSymbol(a),c=a.name;return yee([{symbol:a,moduleSymbol:s,moduleFileName:void 0,exportKind:3,targetFlags:s.flags,isFromPackageJson:!1}],void 0,!1,xee(e,t),t,e,n,r).fixes.map(e=>{var t;return{fix:e,symbolName:c,errorIdentifierText:null==(t=tt(i,aD))?void 0:t.text}})}(e,i);else{if(!aD(i))return;if(t===_a._0_cannot_be_used_as_a_value_because_it_was_imported_using_import_type.code){const t=xe(Pee(e.sourceFile,e.program.getTypeChecker(),i,e.program.getCompilerOptions())),n=Eee(e.sourceFile,i,t,e.program);return n&&[{fix:n,symbolName:t,errorIdentifierText:i.text}]}o=Fee(e,i,r)}const a=EZ(e.sourceFile,e.preferences,e.host);return o&&Tee(o,e.sourceFile,e.program,a,e.host,e.preferences)}function Tee(e,t,n,r,i,o){const a=e=>Uo(e,i.getCurrentDirectory(),My(i));return _e(e,(e,i)=>Ot(!!e.isJsxNamespaceFix,!!i.isJsxNamespaceFix)||vt(e.fix.kind,i.fix.kind)||wee(e.fix,i.fix,t,n,o,r.allowsImportingSpecifier,a))}function Cee(e,t,n,r,i,o){if($(e))return 0===e[0].kind||2===e[0].kind?e[0]:e.reduce((e,a)=>-1===wee(a,e,t,n,o,r.allowsImportingSpecifier,e=>Uo(e,i.getCurrentDirectory(),My(i)))?a:e)}function wee(e,t,n,r,i,o,a){return 0!==e.kind&&0!==t.kind?Ot("node_modules"!==t.moduleSpecifierKind||o(t.moduleSpecifier),"node_modules"!==e.moduleSpecifierKind||o(e.moduleSpecifier))||function(e,t,n){return"non-relative"===n.importModuleSpecifierPreference||"project-relative"===n.importModuleSpecifierPreference?Ot("relative"===e.moduleSpecifierKind,"relative"===t.moduleSpecifierKind):0}(e,t,i)||function(e,t,n,r){return Gt(e,"node:")&&!Gt(t,"node:")?HZ(n,r)?-1:1:Gt(t,"node:")&&!Gt(e,"node:")?HZ(n,r)?1:-1:0}(e.moduleSpecifier,t.moduleSpecifier,n,r)||Ot(Nee(e,n.path,a),Nee(t,n.path,a))||zS(e.moduleSpecifier,t.moduleSpecifier):0}function Nee(e,t,n){var r;return!(!e.isReExport||!(null==(r=e.exportInfo)?void 0:r.moduleFileName)||"index"!==Fo(e.exportInfo.moduleFileName,[".js",".jsx",".d.ts",".ts",".tsx"],!0))&&Gt(t,n(Do(e.exportInfo.moduleFileName)))}function Dee(e,t,n,r){if(n.getCompilerOptions().verbatimModuleSyntax&&1===function(e,t){return Dm(e)?t.getEmitModuleFormatOfFile(e):MV(e,t.getCompilerOptions())}(e,n))return 3;switch(t){case 0:return 0;case 1:return 1;case 2:return function(e,t,n){const r=Tk(t),i=OS(e.fileName);if(!i&&vk(t)>=5)return r?1:2;if(i)return e.externalModuleIndicator||n?r?1:2:3;for(const t of e.statements??l)if(bE(t)&&!Nd(t.moduleReference))return 3;return r?1:3}(e,n.getCompilerOptions(),!!r);case 3:return function(e,t,n){if(Tk(t.getCompilerOptions()))return 1;const r=vk(t.getCompilerOptions());switch(r){case 2:case 1:case 3:return OS(e.fileName)&&(e.externalModuleIndicator||n)?2:3;case 4:case 5:case 6:case 7:case 99:case 0:case 200:return 2;case 100:case 101:case 102:case 199:return 99===Vee(e,t)?2:3;default:return un.assertNever(r,`Unexpected moduleKind ${r}`)}}(e,n,!!r);case 4:return 2;default:return un.assertNever(t)}}function Fee({sourceFile:e,program:t,cancellationToken:n,host:r,preferences:i},o,a){const s=t.getTypeChecker(),c=t.getCompilerOptions();return O(Pee(e,s,o,c),s=>{if("default"===s)return;const c=bT(o),l=xee(e,t),_=function(e,t,n,r,i,o,a,s,c){var l;const _=$e(),u=EZ(i,c,s),d=null==(l=s.getModuleSpecifierCache)?void 0:l.call(s),p=pt(e=>KQ(e?s.getPackageJsonAutoImportProvider():o,s));function f(e,t,n,r,o,a){const s=p(a);if(a0(o,i,t,e,c,u,s,d)){const i=o.getTypeChecker();_.add(KY(n,i).toString(),{symbol:n,moduleSymbol:e,moduleFileName:null==t?void 0:t.fileName,exportKind:r,targetFlags:ox(n,i).flags,isFromPackageJson:a})}}return c0(o,s,c,a,(i,o,a,s)=>{const c=a.getTypeChecker();r.throwIfCancellationRequested();const l=a.getCompilerOptions(),_=f0(i,c);_&&Uee(c.getSymbolFlags(_.symbol),n)&&g0(_.symbol,c,yk(l),(n,r)=>(t?r??n:n)===e)&&f(i,o,_.symbol,_.exportKind,a,s);const u=c.tryGetMemberInModuleExportsAndProperties(e,i);u&&Uee(c.getSymbolFlags(u),n)&&f(i,o,u,0,a,s)}),_}(s,vm(o),WG(o),n,e,t,a,r,i);return Oe(j(_.values(),n=>yee(n,o.getStart(e),c,l,t,e,r,i).fixes),e=>({fix:e,symbolName:s,errorIdentifierText:o.text,isJsxNamespaceFix:s!==o.text}))})}function Eee(e,t,n,r){const i=r.getTypeChecker(),o=i.resolveName(n,t,111551,!0);if(!o)return;const a=i.getTypeOnlyAliasDeclaration(o);return a&&vd(a)===e?{kind:4,typeOnlyAliasDeclaration:a}:void 0}function Pee(e,t,n,r){const i=n.parent;if((bu(i)||VE(i))&&i.tagName===n&&QZ(r.jsx)){const r=t.getJsxNamespace(e);if(function(e,t,n){if(Ey(t.text))return!0;const r=n.resolveName(e,t,111551,!0);return!r||$(r.declarations,zl)&&!(111551&r.flags)}(r,n,t))return Ey(n.text)||t.resolveName(n.text,n,111551,!1)?[r]:[n.text,r]}return[n.text]}function Aee(e,t,n,r,i,o,a){let s;const c=jue.ChangeTracker.with(e,e=>{s=function(e,t,n,r,i,o,a){const s=tY(t,a);switch(r.kind){case 0:return Lee(e,t,r),[_a.Change_0_to_1,n,`${r.namespacePrefix}.${n}`];case 1:return jee(e,t,r,s),[_a.Change_0_to_1,n,Mee(r.moduleSpecifier,s)+n];case 2:{const{importClauseOrBindingPattern:o,importKind:s,addAsTypeOnly:c,moduleSpecifier:_}=r;Oee(e,t,o,1===s?{name:n,addAsTypeOnly:c}:void 0,0===s?[{name:n,addAsTypeOnly:c}]:l,void 0,a);const u=Fy(_);return i?[_a.Import_0_from_1,n,u]:[_a.Update_import_from_0,u]}case 3:{const{importKind:c,moduleSpecifier:l,addAsTypeOnly:_,useRequire:u,qualification:d}=r;return uY(e,t,(u?zee:Jee)(l,s,1===c?{name:n,addAsTypeOnly:_}:void 0,0===c?[{name:n,addAsTypeOnly:_}]:void 0,2===c||3===c?{importKind:c,name:(null==d?void 0:d.namespacePrefix)||n,addAsTypeOnly:_}:void 0,o.getCompilerOptions(),a),!0,a),d&&Lee(e,t,d),i?[_a.Import_0_from_1,n,l]:[_a.Add_import_from_0,l]}case 4:{const{typeOnlyAliasDeclaration:i}=r,s=function(e,t,n,r,i){const o=n.getCompilerOptions(),a=o.verbatimModuleSyntax;switch(t.kind){case 277:if(t.isTypeOnly){if(t.parent.elements.length>1){const n=mw.updateImportSpecifier(t,!1,t.propertyName,t.name),{specifierComparer:o}=Yle.getNamedImportSpecifierComparerWithDetection(t.parent.parent.parent,i,r),a=Yle.getImportSpecifierInsertionIndex(t.parent.elements,n,o);if(a!==t.parent.elements.indexOf(t))return e.delete(r,t),e.insertImportSpecifierAtIndex(r,n,t.parent,a),t}return e.deleteRange(r,{pos:zd(t.getFirstToken()),end:zd(t.propertyName??t.name)}),t}return un.assert(t.parent.parent.isTypeOnly),s(t.parent.parent),t.parent.parent;case 274:return s(t),t;case 275:return s(t.parent),t.parent;case 272:return e.deleteRange(r,t.getChildAt(1)),t;default:un.failBadSyntaxKind(t)}function s(s){var c;if(e.delete(r,dY(s,r)),!o.allowImportingTsExtensions){const t=yg(s.parent),i=t&&(null==(c=n.getResolvedModuleFromModuleSpecifier(t,r))?void 0:c.resolvedModule);if(null==i?void 0:i.resolvedUsingTsExtension){const n=Ho(t.text,Zq(t.text,o));e.replaceNode(r,t,mw.createStringLiteral(n))}}if(a){const n=tt(s.namedBindings,EE);if(n&&n.elements.length>1){!1!==Yle.getNamedImportSpecifierComparerWithDetection(s.parent,i,r).isSorted&&277===t.kind&&0!==n.elements.indexOf(t)&&(e.delete(r,t),e.insertImportSpecifierAtIndex(r,t,n,0));for(const i of n.elements)i===t||i.isTypeOnly||e.insertModifierBefore(r,156,i)}}}}(e,i,o,t,a);return 277===s.kind?[_a.Remove_type_from_import_of_0_from_1,n,Iee(s.parent.parent)]:[_a.Remove_type_from_import_declaration_from_0,Iee(s)]}default:return un.assertNever(r,`Unexpected fix kind ${r.kind}`)}}(e,t,n,r,i,o,a)});return F7(aee,c,s,see,_a.Add_all_missing_imports)}function Iee(e){var t,n;return 272===e.kind?(null==(n=tt(null==(t=tt(e.moduleReference,JE))?void 0:t.expression,ju))?void 0:n.text)||e.moduleReference.getText():nt(e.parent.moduleSpecifier,UN).text}function Oee(e,t,n,r,i,o,a){var s;if(207===n.kind){if(o&&n.elements.some(e=>o.has(e)))return void e.replaceNode(t,n,mw.createObjectBindingPattern([...n.elements.filter(e=>!o.has(e)),...r?[mw.createBindingElement(void 0,"default",r.name)]:l,...i.map(e=>mw.createBindingElement(void 0,e.propertyName,e.name))]));r&&u(n,r.name,"default");for(const e of i)u(n,e.name,e.propertyName);return}const c=n.isTypeOnly&&$([r,...i],e=>4===(null==e?void 0:e.addAsTypeOnly)),_=n.namedBindings&&(null==(s=tt(n.namedBindings,EE))?void 0:s.elements);if(r&&(un.assert(!n.name,"Cannot add a default import to an import clause that already has one"),e.insertNodeAt(t,n.getStart(t),mw.createIdentifier(r.name),{suffix:", "})),i.length){const{specifierComparer:r,isSorted:s}=Yle.getNamedImportSpecifierComparerWithDetection(n.parent,a,t),l=_e(i.map(e=>mw.createImportSpecifier((!n.isTypeOnly||c)&&Bee(e,a),void 0===e.propertyName?void 0:mw.createIdentifier(e.propertyName),mw.createIdentifier(e.name))),r);if(o)e.replaceNode(t,n.namedBindings,mw.updateNamedImports(n.namedBindings,_e([..._.filter(e=>!o.has(e)),...l],r)));else if((null==_?void 0:_.length)&&!1!==s){const i=c&&_?mw.updateNamedImports(n.namedBindings,A(_,e=>mw.updateImportSpecifier(e,!0,e.propertyName,e.name))).elements:_;for(const o of l){const a=Yle.getImportSpecifierInsertionIndex(i,o,r);e.insertImportSpecifierAtIndex(t,o,n.namedBindings,a)}}else if(null==_?void 0:_.length)for(const n of l)e.insertNodeInListAfter(t,ve(_),n,_);else if(l.length){const r=mw.createNamedImports(l);n.namedBindings?e.replaceNode(t,n.namedBindings,r):e.insertNodeAfter(t,un.checkDefined(n.name,"Import clause must have either named imports or a default import"),r)}}if(c&&(e.delete(t,dY(n,t)),_))for(const n of _)e.insertModifierBefore(t,156,n);function u(n,r,i){const o=mw.createBindingElement(void 0,i,r);n.elements.length?e.insertNodeInListAfter(t,ve(n.elements),o):e.replaceNode(t,n,mw.createObjectBindingPattern([o]))}}function Lee(e,t,{namespacePrefix:n,usagePosition:r}){e.insertText(t,r,n+".")}function jee(e,t,{moduleSpecifier:n,usagePosition:r},i){e.insertText(t,r,Mee(n,i))}function Mee(e,t){const n=nY(t);return`import(${n}${e}${n}).`}function Ree({addAsTypeOnly:e}){return 2===e}function Bee(e,t){return Ree(e)||!!t.preferTypeOnlyAutoImports&&4!==e.addAsTypeOnly}function Jee(e,t,n,r,i,o,a){const s=YQ(e,t);let c;if(void 0!==n||(null==r?void 0:r.length)){const i=(!n||Ree(n))&&v(r,Ree)||(o.verbatimModuleSyntax||a.preferTypeOnlyAutoImports)&&4!==(null==n?void 0:n.addAsTypeOnly)&&!$(r,e=>4===e.addAsTypeOnly);c=oe(c,QQ(n&&mw.createIdentifier(n.name),null==r?void 0:r.map(e=>mw.createImportSpecifier(!i&&Bee(e,a),void 0===e.propertyName?void 0:mw.createIdentifier(e.propertyName),mw.createIdentifier(e.name))),e,t,i))}return i&&(c=oe(c,3===i.importKind?mw.createImportEqualsDeclaration(void 0,Bee(i,a),mw.createIdentifier(i.name),mw.createExternalModuleReference(s)):mw.createImportDeclaration(void 0,mw.createImportClause(Bee(i,a)?156:void 0,void 0,mw.createNamespaceImport(mw.createIdentifier(i.name))),s,void 0))),un.checkDefined(c)}function zee(e,t,n,r,i){const o=YQ(e,t);let a;if(n||(null==r?void 0:r.length)){const e=(null==r?void 0:r.map(({name:e,propertyName:t})=>mw.createBindingElement(void 0,t,e)))||[];n&&e.unshift(mw.createBindingElement(void 0,"default",n.name)),a=oe(a,qee(mw.createObjectBindingPattern(e),o))}return i&&(a=oe(a,qee(i.name,o))),un.checkDefined(a)}function qee(e,t){return mw.createVariableStatement(void 0,mw.createVariableDeclarationList([mw.createVariableDeclaration("string"==typeof e?mw.createIdentifier(e):e,void 0,void 0,mw.createCallExpression(mw.createIdentifier("require"),void 0,[t]))],2))}function Uee(e,t){return!!(7===t||(1&t?111551&e:2&t?788968&e:4&t&&1920&e))}function Vee(e,t){return Dm(e)?t.getImpliedNodeFormatForEmit(e):RV(e,t.getCompilerOptions())}A7({errorCodes:cee,getCodeActions(e){const{errorCode:t,preferences:n,sourceFile:r,span:i,program:o}=e,a=See(e,t,i.start,!0);if(a)return a.map(({fix:t,symbolName:i,errorIdentifierText:a})=>Aee(e,r,i,t,i!==a,o,n))},fixIds:[see],getAllCodeActions:e=>{const{sourceFile:t,program:n,preferences:r,host:i,cancellationToken:o}=e,a=_ee(t,n,!0,r,i,o);return B7(e,cee,t=>a.addImportFromDiagnostic(t,e)),j7(jue.ChangeTracker.with(e,a.writeFixes))}});var Wee="addMissingConstraint",$ee=[_a.Type_0_is_not_comparable_to_type_1.code,_a.Type_0_is_not_assignable_to_type_1_Two_different_types_with_this_name_exist_but_they_are_unrelated.code,_a.Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_types_of_the_target_s_properties.code,_a.Type_0_is_not_assignable_to_type_1.code,_a.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_types_of_the_target_s_properties.code,_a.Property_0_is_incompatible_with_index_signature.code,_a.Property_0_in_type_1_is_not_assignable_to_type_2.code,_a.Type_0_does_not_satisfy_the_constraint_1.code];function Hee(e,t,n){const r=b(e.getSemanticDiagnostics(t),e=>e.start===n.start&&e.length===n.length);if(void 0===r||void 0===r.relatedInformation)return;const i=b(r.relatedInformation,e=>e.code===_a.This_type_parameter_might_need_an_extends_0_constraint.code);if(void 0===i||void 0===i.file||void 0===i.start||void 0===i.length)return;let o=noe(i.file,Ws(i.start,i.length));if(void 0!==o&&(aD(o)&&SD(o.parent)&&(o=o.parent),SD(o))){if(nF(o.parent))return;const r=HX(t,n.start);return{constraint:function(e,t){if(b_(t.parent))return e.getTypeArgumentConstraint(t.parent);return(V_(t)?e.getContextualType(t):void 0)||e.getTypeAtLocation(t)}(e.getTypeChecker(),r)||function(e){const[,t]=cV(e,"\n",0).match(/`extends (.*)`/)||[];return t}(i.messageText),declaration:o,token:r}}}function Kee(e,t,n,r,i,o){const{declaration:a,constraint:s}=o,c=t.getTypeChecker();if(Ze(s))e.insertText(i,a.name.end,` extends ${s}`);else{const o=yk(t.getCompilerOptions()),l=Iie({program:t,host:r}),_=lee(i,t,n,r),u=Bie(c,_,s,void 0,o,void 0,void 0,l);u&&(e.replaceNode(i,a,mw.updateTypeParameterDeclaration(a,void 0,a.name,u,a.default)),_.writeFixes(e))}}A7({errorCodes:$ee,getCodeActions(e){const{sourceFile:t,span:n,program:r,preferences:i,host:o}=e,a=Hee(r,t,n);if(void 0===a)return;const s=jue.ChangeTracker.with(e,e=>Kee(e,r,i,o,t,a));return[F7(Wee,s,_a.Add_extends_constraint,Wee,_a.Add_extends_constraint_to_all_type_parameters)]},fixIds:[Wee],getAllCodeActions:e=>{const{program:t,preferences:n,host:r}=e,i=new Set;return j7(jue.ChangeTracker.with(e,o=>{B7(e,$ee,e=>{const a=Hee(t,e.file,Ws(e.start,e.length));if(a&&bx(i,ZB(a.declaration)))return Kee(o,t,n,r,e.file,a)})}))}});var Gee="fixOverrideModifier",Xee="fixAddOverrideModifier",Qee="fixRemoveOverrideModifier",Yee=[_a.This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0.code,_a.This_member_cannot_have_an_override_modifier_because_its_containing_class_0_does_not_extend_another_class.code,_a.This_member_must_have_an_override_modifier_because_it_overrides_an_abstract_method_that_is_declared_in_the_base_class_0.code,_a.This_member_must_have_an_override_modifier_because_it_overrides_a_member_in_the_base_class_0.code,_a.This_parameter_property_must_have_an_override_modifier_because_it_overrides_a_member_in_base_class_0.code,_a.This_member_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_class_0.code,_a.This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_its_containing_class_0_does_not_extend_another_class.code,_a.This_parameter_property_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_class_0.code,_a.This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base_class_0.code],Zee={[_a.This_member_must_have_an_override_modifier_because_it_overrides_a_member_in_the_base_class_0.code]:{descriptions:_a.Add_override_modifier,fixId:Xee,fixAllDescriptions:_a.Add_all_missing_override_modifiers},[_a.This_member_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_class_0.code]:{descriptions:_a.Add_override_modifier,fixId:Xee,fixAllDescriptions:_a.Add_all_missing_override_modifiers},[_a.This_member_cannot_have_an_override_modifier_because_its_containing_class_0_does_not_extend_another_class.code]:{descriptions:_a.Remove_override_modifier,fixId:Qee,fixAllDescriptions:_a.Remove_all_unnecessary_override_modifiers},[_a.This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_its_containing_class_0_does_not_extend_another_class.code]:{descriptions:_a.Remove_override_modifier,fixId:Qee,fixAllDescriptions:_a.Remove_override_modifier},[_a.This_parameter_property_must_have_an_override_modifier_because_it_overrides_a_member_in_base_class_0.code]:{descriptions:_a.Add_override_modifier,fixId:Xee,fixAllDescriptions:_a.Add_all_missing_override_modifiers},[_a.This_parameter_property_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_class_0.code]:{descriptions:_a.Add_override_modifier,fixId:Xee,fixAllDescriptions:_a.Add_all_missing_override_modifiers},[_a.This_member_must_have_an_override_modifier_because_it_overrides_an_abstract_method_that_is_declared_in_the_base_class_0.code]:{descriptions:_a.Add_override_modifier,fixId:Xee,fixAllDescriptions:_a.Remove_all_unnecessary_override_modifiers},[_a.This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0.code]:{descriptions:_a.Remove_override_modifier,fixId:Qee,fixAllDescriptions:_a.Remove_all_unnecessary_override_modifiers},[_a.This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base_class_0.code]:{descriptions:_a.Remove_override_modifier,fixId:Qee,fixAllDescriptions:_a.Remove_all_unnecessary_override_modifiers}};function ete(e,t,n,r){switch(n){case _a.This_member_must_have_an_override_modifier_because_it_overrides_a_member_in_the_base_class_0.code:case _a.This_member_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_class_0.code:case _a.This_member_must_have_an_override_modifier_because_it_overrides_an_abstract_method_that_is_declared_in_the_base_class_0.code:case _a.This_parameter_property_must_have_an_override_modifier_because_it_overrides_a_member_in_base_class_0.code:case _a.This_parameter_property_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_class_0.code:return function(e,t,n){const r=nte(t,n);if(Fm(t))return void e.addJSDocTags(t,r,[mw.createJSDocOverrideTag(mw.createIdentifier("override"))]);const i=r.modifiers||l,o=b(i,fD),a=b(i,mD),s=b(i,e=>kQ(e.kind)),c=x(i,CD),_=a?a.end:o?o.end:s?s.end:c?Qa(t.text,c.end):r.getStart(t),u=s||o||a?{prefix:" "}:{suffix:" "};e.insertModifierAt(t,_,164,u)}(e,t.sourceFile,r);case _a.This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0.code:case _a.This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base_class_0.code:case _a.This_member_cannot_have_an_override_modifier_because_its_containing_class_0_does_not_extend_another_class.code:case _a.This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_its_containing_class_0_does_not_extend_another_class.code:return function(e,t,n){const r=nte(t,n);if(Fm(t))return void e.filterJSDocTags(t,r,tn(OP));const i=b(r.modifiers,gD);un.assertIsDefined(i),e.deleteModifier(t,i)}(e,t.sourceFile,r);default:un.fail("Unexpected error code: "+n)}}function tte(e){switch(e.kind){case 177:case 173:case 175:case 178:case 179:return!0;case 170:return Zs(e,e.parent);default:return!1}}function nte(e,t){const n=uc(HX(e,t),e=>u_(e)?"quit":tte(e));return un.assert(n&&tte(n)),n}A7({errorCodes:Yee,getCodeActions:function(e){const{errorCode:t,span:n}=e,r=Zee[t];if(!r)return l;const{descriptions:i,fixId:o,fixAllDescriptions:a}=r,s=jue.ChangeTracker.with(e,r=>ete(r,e,t,n.start));return[E7(Gee,s,i,o,a)]},fixIds:[Gee,Xee,Qee],getAllCodeActions:e=>R7(e,Yee,(t,n)=>{const{code:r,start:i}=n,o=Zee[r];o&&o.fixId===e.fixId&&ete(t,e,r,i)})});var rte="fixNoPropertyAccessFromIndexSignature",ite=[_a.Property_0_comes_from_an_index_signature_so_it_must_be_accessed_with_0.code];function ote(e,t,n,r){const i=tY(t,r),o=mw.createStringLiteral(n.name.text,0===i);e.replaceNode(t,n,fl(n)?mw.createElementAccessChain(n.expression,n.questionDotToken,o):mw.createElementAccessExpression(n.expression,o))}function ate(e,t){return nt(HX(e,t).parent,dF)}A7({errorCodes:ite,fixIds:[rte],getCodeActions(e){const{sourceFile:t,span:n,preferences:r}=e,i=ate(t,n.start),o=jue.ChangeTracker.with(e,t=>ote(t,e.sourceFile,i,r));return[F7(rte,o,[_a.Use_element_access_for_0,i.name.text],rte,_a.Use_element_access_for_all_undeclared_properties)]},getAllCodeActions:e=>R7(e,ite,(t,n)=>ote(t,n.file,ate(n.file,n.start),e.preferences))});var ste="fixImplicitThis",cte=[_a.this_implicitly_has_type_any_because_it_does_not_have_a_type_annotation.code];function lte(e,t,n,r){const i=HX(t,n);if(!vX(i))return;const o=em(i,!1,!1);if((uE(o)||vF(o))&&!sP(em(o,!1,!1))){const n=un.checkDefined(OX(o,100,t)),{name:i}=o,a=un.checkDefined(o.body);if(vF(o)){if(i&&gce.Core.isSymbolReferencedInFile(i,r,t,a))return;return e.delete(t,n),i&&e.delete(t,i),e.insertText(t,a.pos," =>"),[_a.Convert_function_expression_0_to_arrow_function,i?i.text:dZ]}return e.replaceNode(t,n,mw.createToken(87)),e.insertText(t,i.end," = "),e.insertText(t,a.pos," =>"),[_a.Convert_function_declaration_0_to_arrow_function,i.text]}}A7({errorCodes:cte,getCodeActions:function(e){const{sourceFile:t,program:n,span:r}=e;let i;const o=jue.ChangeTracker.with(e,e=>{i=lte(e,t,r.start,n.getTypeChecker())});return i?[F7(ste,o,i,ste,_a.Fix_all_implicit_this_errors)]:l},fixIds:[ste],getAllCodeActions:e=>R7(e,cte,(t,n)=>{lte(t,n.file,n.start,e.program.getTypeChecker())})});var _te="fixImportNonExportedMember",ute=[_a.Module_0_declares_1_locally_but_it_is_not_exported.code];function dte(e,t,n){var r,i;const o=HX(e,t);if(aD(o)){const t=uc(o,xE);if(void 0===t)return;const a=UN(t.moduleSpecifier)?t.moduleSpecifier:void 0;if(void 0===a)return;const s=null==(r=n.getResolvedModuleFromModuleSpecifier(a,e))?void 0:r.resolvedModule;if(void 0===s)return;const c=n.getSourceFile(s.resolvedFileName);if(void 0===c||YZ(n,c))return;const l=null==(i=tt(c.symbol.valueDeclaration,su))?void 0:i.locals;if(void 0===l)return;const _=l.get(o.escapedText);if(void 0===_)return;const d=function(e){if(void 0===e.valueDeclaration)return fe(e.declarations);const t=e.valueDeclaration,n=lE(t)?tt(t.parent.parent,WF):void 0;return n&&1===u(n.declarationList.declarations)?n:t}(_);if(void 0===d)return;return{exportName:{node:o,isTypeOnly:VT(d)},node:d,moduleSourceFile:c,moduleSpecifier:a.text}}}function pte(e,t,n,r,i){u(r)&&(i?mte(e,t,n,i,r):gte(e,t,n,r))}function fte(e,t){return x(e.statements,e=>IE(e)&&(t&&e.isTypeOnly||!e.isTypeOnly))}function mte(e,t,n,r,i){const o=r.exportClause&&OE(r.exportClause)?r.exportClause.elements:mw.createNodeArray([]),a=!(r.isTypeOnly||!kk(t.getCompilerOptions())&&!b(o,e=>e.isTypeOnly));e.replaceNode(n,r,mw.updateExportDeclaration(r,r.modifiers,r.isTypeOnly,mw.createNamedExports(mw.createNodeArray([...o,...hte(i,a)],o.hasTrailingComma)),r.moduleSpecifier,r.attributes))}function gte(e,t,n,r){e.insertNodeAtEndOfScope(n,n,mw.createExportDeclaration(void 0,!1,mw.createNamedExports(hte(r,kk(t.getCompilerOptions()))),void 0,void 0))}function hte(e,t){return mw.createNodeArray(E(e,e=>mw.createExportSpecifier(t&&e.isTypeOnly,void 0,e.node)))}A7({errorCodes:ute,fixIds:[_te],getCodeActions(e){const{sourceFile:t,span:n,program:r}=e,i=dte(t,n.start,r);if(void 0===i)return;const o=jue.ChangeTracker.with(e,e=>function(e,t,{exportName:n,node:r,moduleSourceFile:i}){const o=fte(i,n.isTypeOnly);o?mte(e,t,i,o,[n]):WT(r)?e.insertExportModifier(i,r):gte(e,t,i,[n])}(e,r,i));return[F7(_te,o,[_a.Export_0_from_module_1,i.exportName.node.text,i.moduleSpecifier],_te,_a.Export_all_referenced_locals)]},getAllCodeActions(e){const{program:t}=e;return j7(jue.ChangeTracker.with(e,n=>{const r=new Map;B7(e,ute,e=>{const i=dte(e.file,e.start,t);if(void 0===i)return;const{exportName:o,node:a,moduleSourceFile:s}=i;if(void 0===fte(s,o.isTypeOnly)&&WT(a))n.insertExportModifier(s,a);else{const e=r.get(s)||{typeOnlyExports:[],exports:[]};o.isTypeOnly?e.typeOnlyExports.push(o):e.exports.push(o),r.set(s,e)}}),r.forEach((e,r)=>{const i=fte(r,!0);i&&i.isTypeOnly?(pte(n,t,r,e.typeOnlyExports,i),pte(n,t,r,e.exports,fte(r,!1))):pte(n,t,r,[...e.exports,...e.typeOnlyExports],i)})}))}});var yte="fixIncorrectNamedTupleSyntax";A7({errorCodes:[_a.A_labeled_tuple_element_is_declared_as_optional_with_a_question_mark_after_the_name_and_before_the_colon_rather_than_after_the_type.code,_a.A_labeled_tuple_element_is_declared_as_rest_with_a_before_the_name_rather_than_before_the_type.code],getCodeActions:function(e){const{sourceFile:t,span:n}=e,r=function(e,t){return uc(HX(e,t),e=>203===e.kind)}(t,n.start),i=jue.ChangeTracker.with(e,e=>function(e,t,n){if(!n)return;let r=n.type,i=!1,o=!1;for(;191===r.kind||192===r.kind||197===r.kind;)191===r.kind?i=!0:192===r.kind&&(o=!0),r=r.type;const a=mw.updateNamedTupleMember(n,n.dotDotDotToken||(o?mw.createToken(26):void 0),n.name,n.questionToken||(i?mw.createToken(58):void 0),r);a!==n&&e.replaceNode(t,n,a)}(e,t,r));return[F7(yte,i,_a.Move_labeled_tuple_element_modifiers_to_labels,yte,_a.Move_labeled_tuple_element_modifiers_to_labels)]},fixIds:[yte]});var vte="fixSpelling",bte=[_a.Property_0_does_not_exist_on_type_1_Did_you_mean_2.code,_a.Property_0_may_not_exist_on_type_1_Did_you_mean_2.code,_a.Cannot_find_name_0_Did_you_mean_1.code,_a.Could_not_find_name_0_Did_you_mean_1.code,_a.Cannot_find_namespace_0_Did_you_mean_1.code,_a.Cannot_find_name_0_Did_you_mean_the_instance_member_this_0.code,_a.Cannot_find_name_0_Did_you_mean_the_static_member_1_0.code,_a._0_has_no_exported_member_named_1_Did_you_mean_2.code,_a.This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0_Did_you_mean_1.code,_a.This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base_class_0_Did_you_mean_1.code,_a.No_overload_matches_this_call.code,_a.Type_0_is_not_assignable_to_type_1.code];function xte(e,t,n,r){const i=HX(e,t),o=i.parent;if((r===_a.No_overload_matches_this_call.code||r===_a.Type_0_is_not_assignable_to_type_1.code)&&!KE(o))return;const a=n.program.getTypeChecker();let s;if(dF(o)&&o.name===i){un.assert(dl(i),"Expected an identifier for spelling (property access)");let e=a.getTypeAtLocation(o.expression);64&o.flags&&(e=a.getNonNullableType(e)),s=a.getSuggestedSymbolForNonexistentProperty(i,e)}else if(NF(o)&&103===o.operatorToken.kind&&o.left===i&&sD(i)){const e=a.getTypeAtLocation(o.right);s=a.getSuggestedSymbolForNonexistentProperty(i,e)}else if(xD(o)&&o.right===i){const e=a.getSymbolAtLocation(o.left);e&&1536&e.flags&&(s=a.getSuggestedSymbolForNonexistentModule(o.right,e))}else if(PE(o)&&o.name===i){un.assertNode(i,aD,"Expected an identifier for spelling (import)");const t=function(e,t,n){var r;if(!t||!ju(t.moduleSpecifier))return;const i=null==(r=e.program.getResolvedModuleFromModuleSpecifier(t.moduleSpecifier,n))?void 0:r.resolvedModule;return i?e.program.getSourceFile(i.resolvedFileName):void 0}(n,uc(i,xE),e);t&&t.symbol&&(s=a.getSuggestedSymbolForNonexistentModule(i,t.symbol))}else if(KE(o)&&o.name===i){un.assertNode(i,aD,"Expected an identifier for JSX attribute");const e=uc(i,bu),t=a.getContextualTypeForArgumentAtIndex(e,0);s=a.getSuggestedSymbolForNonexistentJSXAttribute(i,t)}else if(Ev(o)&&__(o)&&o.name===i){const e=uc(i,u_),t=e?yh(e):void 0,n=t?a.getTypeAtLocation(t):void 0;n&&(s=a.getSuggestedSymbolForNonexistentClassMember(Xd(i),n))}else{const e=WG(i),t=Xd(i);un.assert(void 0!==t,"name should be defined"),s=a.getSuggestedSymbolForNonexistentSymbol(i,t,function(e){let t=0;return 4&e&&(t|=1920),2&e&&(t|=788968),1&e&&(t|=111551),t}(e))}return void 0===s?void 0:{node:i,suggestedSymbol:s}}function kte(e,t,n,r,i){const o=yc(r);if(!ms(o,i)&&dF(n.parent)){const i=r.valueDeclaration;i&&Sc(i)&&sD(i.name)?e.replaceNode(t,n,mw.createIdentifier(o)):e.replaceNode(t,n.parent,mw.createElementAccessExpression(n.parent.expression,mw.createStringLiteral(o)))}else e.replaceNode(t,n,mw.createIdentifier(o))}A7({errorCodes:bte,getCodeActions(e){const{sourceFile:t,errorCode:n}=e,r=xte(t,e.span.start,e,n);if(!r)return;const{node:i,suggestedSymbol:o}=r,a=yk(e.host.getCompilationSettings());return[F7("spelling",jue.ChangeTracker.with(e,e=>kte(e,t,i,o,a)),[_a.Change_spelling_to_0,yc(o)],vte,_a.Fix_all_detected_spelling_errors)]},fixIds:[vte],getAllCodeActions:e=>R7(e,bte,(t,n)=>{const r=xte(n.file,n.start,e,n.code),i=yk(e.host.getCompilationSettings());r&&kte(t,e.sourceFile,r.node,r.suggestedSymbol,i)})});var Ste="returnValueCorrect",Tte="fixAddReturnStatement",Cte="fixRemoveBracesFromArrowFunctionBody",wte="fixWrapTheBlockWithParen",Nte=[_a.A_function_whose_declared_type_is_neither_undefined_void_nor_any_must_return_a_value.code,_a.Type_0_is_not_assignable_to_type_1.code,_a.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1.code];function Dte(e,t,n){const r=e.createSymbol(4,t.escapedText);r.links.type=e.getTypeAtLocation(n);const i=Gu([r]);return e.createAnonymousType(void 0,i,[],[],[])}function Fte(e,t,n,r){if(!t.body||!VF(t.body)||1!==u(t.body.statements))return;const i=ge(t.body.statements);if(HF(i)&&Ete(e,t,e.getTypeAtLocation(i.expression),n,r))return{declaration:t,kind:0,expression:i.expression,statement:i,commentSource:i.expression};if(oE(i)&&HF(i.statement)){const o=mw.createObjectLiteralExpression([mw.createPropertyAssignment(i.label,i.statement.expression)]);if(Ete(e,t,Dte(e,i.label,i.statement.expression),n,r))return bF(t)?{declaration:t,kind:1,expression:o,statement:i,commentSource:i.statement.expression}:{declaration:t,kind:0,expression:o,statement:i,commentSource:i.statement.expression}}else if(VF(i)&&1===u(i.statements)){const o=ge(i.statements);if(oE(o)&&HF(o.statement)){const a=mw.createObjectLiteralExpression([mw.createPropertyAssignment(o.label,o.statement.expression)]);if(Ete(e,t,Dte(e,o.label,o.statement.expression),n,r))return{declaration:t,kind:0,expression:a,statement:i,commentSource:o}}}}function Ete(e,t,n,r,i){if(i){const r=e.getSignatureFromDeclaration(t);if(r){Nv(t,1024)&&(n=e.createPromiseType(n));const i=e.createSignature(t,r.typeParameters,r.thisParameter,r.parameters,n,void 0,r.minArgumentCount,r.flags);n=e.createAnonymousType(void 0,Gu(),[i],[],[])}else n=e.getAnyType()}return e.isTypeAssignableTo(n,r)}function Pte(e,t,n,r){const i=HX(t,n);if(!i.parent)return;const o=uc(i.parent,o_);switch(r){case _a.A_function_whose_declared_type_is_neither_undefined_void_nor_any_must_return_a_value.code:if(!(o&&o.body&&o.type&&Xb(o.type,i)))return;return Fte(e,o,e.getTypeFromTypeNode(o.type),!1);case _a.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1.code:if(!o||!fF(o.parent)||!o.body)return;const t=o.parent.arguments.indexOf(o);if(-1===t)return;const n=e.getContextualTypeForArgumentAtIndex(o.parent,t);if(!n)return;return Fte(e,o,n,!0);case _a.Type_0_is_not_assignable_to_type_1.code:if(!lh(i)||!Af(i.parent)&&!KE(i.parent))return;const r=function(e){switch(e.kind){case 261:case 170:case 209:case 173:case 304:return e.initializer;case 292:return e.initializer&&(QE(e.initializer)?e.initializer.expression:void 0);case 305:case 172:case 307:case 349:case 342:return}}(i.parent);if(!r||!o_(r)||!r.body)return;return Fte(e,r,e.getTypeAtLocation(i.parent),!0)}}function Ate(e,t,n,r){UC(n);const i=bZ(t);e.replaceNode(t,r,mw.createReturnStatement(n),{leadingTriviaOption:jue.LeadingTriviaOption.Exclude,trailingTriviaOption:jue.TrailingTriviaOption.Exclude,suffix:i?";":void 0})}function Ite(e,t,n,r,i,o){const a=o||oZ(r)?mw.createParenthesizedExpression(r):r;UC(i),QY(i,a),e.replaceNode(t,n.body,a)}function Ote(e,t,n,r){e.replaceNode(t,n.body,mw.createParenthesizedExpression(r))}function Lte(e,t,n){const r=jue.ChangeTracker.with(e,r=>Ate(r,e.sourceFile,t,n));return F7(Ste,r,_a.Add_a_return_statement,Tte,_a.Add_all_missing_return_statement)}function jte(e,t,n){const r=jue.ChangeTracker.with(e,r=>Ote(r,e.sourceFile,t,n));return F7(Ste,r,_a.Wrap_the_following_body_with_parentheses_which_should_be_an_object_literal,wte,_a.Wrap_all_object_literal_with_parentheses)}A7({errorCodes:Nte,fixIds:[Tte,Cte,wte],getCodeActions:function(e){const{program:t,sourceFile:n,span:{start:r},errorCode:i}=e,o=Pte(t.getTypeChecker(),n,r,i);if(o)return 0===o.kind?ie([Lte(e,o.expression,o.statement)],bF(o.declaration)?function(e,t,n,r){const i=jue.ChangeTracker.with(e,i=>Ite(i,e.sourceFile,t,n,r,!1));return F7(Ste,i,_a.Remove_braces_from_arrow_function_body,Cte,_a.Remove_braces_from_all_arrow_function_bodies_with_relevant_issues)}(e,o.declaration,o.expression,o.commentSource):void 0):[jte(e,o.declaration,o.expression)]},getAllCodeActions:e=>R7(e,Nte,(t,n)=>{const r=Pte(e.program.getTypeChecker(),n.file,n.start,n.code);if(r)switch(e.fixId){case Tte:Ate(t,n.file,r.expression,r.statement);break;case Cte:if(!bF(r.declaration))return;Ite(t,n.file,r.declaration,r.expression,r.commentSource,!1);break;case wte:if(!bF(r.declaration))return;Ote(t,n.file,r.declaration,r.expression);break;default:un.fail(JSON.stringify(e.fixId))}})});var Mte="fixMissingMember",Rte="fixMissingProperties",Bte="fixMissingAttributes",Jte="fixMissingFunctionDeclaration",zte=[_a.Property_0_does_not_exist_on_type_1.code,_a.Property_0_does_not_exist_on_type_1_Did_you_mean_2.code,_a.Property_0_is_missing_in_type_1_but_required_in_type_2.code,_a.Type_0_is_missing_the_following_properties_from_type_1_Colon_2.code,_a.Type_0_is_missing_the_following_properties_from_type_1_Colon_2_and_3_more.code,_a.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1.code,_a.Cannot_find_name_0.code,_a.Type_0_does_not_satisfy_the_expected_type_1.code];function qte(e,t,n,r,i){var o,a;const s=HX(e,t),c=s.parent;if(n===_a.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1.code){if(19!==s.kind||!uF(c)||!fF(c.parent))return;const e=k(c.parent.arguments,e=>e===c);if(e<0)return;const t=r.getResolvedSignature(c.parent);if(!(t&&t.declaration&&t.parameters[e]))return;const n=t.parameters[e].valueDeclaration;if(!(n&&TD(n)&&aD(n.name)))return;const i=Oe(r.getUnmatchedProperties(r.getTypeAtLocation(c),r.getParameterType(t,e).getNonNullableType(),!1,!1));if(!u(i))return;return{kind:3,token:n.name,identifier:n.name.text,properties:i,parentDeclaration:c}}if(19===s.kind||jF(c)||nE(c)){const e=(jF(c)||nE(c))&&c.expression?c.expression:c;if(uF(e)){const t=jF(c)?r.getTypeFromTypeNode(c.type):r.getContextualType(e)||r.getTypeAtLocation(e),n=Oe(r.getUnmatchedProperties(r.getTypeAtLocation(c),t.getNonNullableType(),!1,!1));if(!u(n))return;return{kind:3,token:c,identifier:void 0,properties:n,parentDeclaration:e,indentation:nE(e.parent)||EF(e.parent)?0:void 0}}}if(!dl(s))return;if(aD(s)&&Eu(c)&&c.initializer&&uF(c.initializer)){const e=null==(o=r.getContextualType(s)||r.getTypeAtLocation(s))?void 0:o.getNonNullableType(),t=Oe(r.getUnmatchedProperties(r.getTypeAtLocation(c.initializer),e,!1,!1));if(!u(t))return;return{kind:3,token:s,identifier:s.text,properties:t,parentDeclaration:c.initializer}}if(aD(s)&&bu(s.parent)){const e=function(e,t,n){const r=e.getContextualType(n.attributes);if(void 0===r)return l;const i=r.getProperties();if(!u(i))return l;const o=new Set;for(const t of n.attributes.properties)if(KE(t)&&o.add(tC(t.name)),XE(t)){const n=e.getTypeAtLocation(t.expression);for(const e of n.getProperties())o.add(e.escapedName)}return N(i,e=>ms(e.name,t,1)&&!(16777216&e.flags||48&rx(e)||o.has(e.escapedName)))}(r,yk(i.getCompilerOptions()),s.parent);if(!u(e))return;return{kind:4,token:s,attributes:e,parentDeclaration:s.parent}}if(aD(s)){const t=null==(a=r.getContextualType(s))?void 0:a.getNonNullableType();if(t&&16&gx(t)){const n=fe(r.getSignaturesOfType(t,0));if(void 0===n)return;return{kind:5,token:s,signature:n,sourceFile:e,parentDeclaration:tne(s)}}if(fF(c)&&c.expression===s)return{kind:2,token:s,call:c,sourceFile:e,modifierFlags:0,parentDeclaration:tne(s)}}if(!dF(c))return;const _=UQ(r.getTypeAtLocation(c.expression)),d=_.symbol;if(!d||!d.declarations)return;if(aD(s)&&fF(c.parent)){const t=b(d.declarations,gE),n=null==t?void 0:t.getSourceFile();if(t&&n&&!YZ(i,n))return{kind:2,token:s,call:c.parent,sourceFile:n,modifierFlags:32,parentDeclaration:t};const r=b(d.declarations,sP);if(e.commonJsModuleIndicator)return;if(r&&!YZ(i,r))return{kind:2,token:s,call:c.parent,sourceFile:r,modifierFlags:32,parentDeclaration:r}}const p=b(d.declarations,u_);if(!p&&sD(s))return;const f=p||b(d.declarations,e=>pE(e)||qD(e));if(f&&!YZ(i,f.getSourceFile())){const e=!qD(f)&&(_.target||_)!==r.getDeclaredTypeOfSymbol(d);if(e&&(sD(s)||pE(f)))return;const t=f.getSourceFile(),n=qD(f)?0:(e?256:0)|(WZ(s.text)?2:0),i=Fm(t);return{kind:0,token:s,call:tt(c.parent,fF),modifierFlags:n,parentDeclaration:f,declSourceFile:t,isJSFile:i}}const m=b(d.declarations,mE);return!m||1056&_.flags||sD(s)||YZ(i,m.getSourceFile())?void 0:{kind:1,token:s,parentDeclaration:m}}function Ute(e,t,n,r,i){const o=r.text;if(i){if(232===n.kind)return;const r=n.name.getText(),i=Vte(mw.createIdentifier(r),o);e.insertNodeAfter(t,n,i)}else if(sD(r)){const r=mw.createPropertyDeclaration(void 0,o,void 0,void 0,void 0),i=Hte(n);i?e.insertNodeAfter(t,i,r):e.insertMemberAtStart(t,n,r)}else{const r=iv(n);if(!r)return;const i=Vte(mw.createThis(),o);e.insertNodeAtConstructorEnd(t,r,i)}}function Vte(e,t){return mw.createExpressionStatement(mw.createAssignment(mw.createPropertyAccessExpression(e,t),ene()))}function Wte(e,t,n){let r;if(227===n.parent.parent.kind){const i=n.parent.parent,o=n.parent===i.left?i.right:i.left,a=e.getWidenedType(e.getBaseTypeOfLiteralType(e.getTypeAtLocation(o)));r=e.typeToTypeNode(a,t,1,8)}else{const t=e.getContextualType(n.parent);r=t?e.typeToTypeNode(t,void 0,1,8):void 0}return r||mw.createKeywordTypeNode(133)}function $te(e,t,n,r,i,o){const a=o?mw.createNodeArray(mw.createModifiersFromModifierFlags(o)):void 0,s=u_(n)?mw.createPropertyDeclaration(a,r,void 0,i,void 0):mw.createPropertySignature(void 0,r,void 0,i),c=Hte(n);c?e.insertNodeAfter(t,c,s):e.insertMemberAtStart(t,n,s)}function Hte(e){let t;for(const n of e.members){if(!ND(n))break;t=n}return t}function Kte(e,t,n,r,i,o,a){const s=lee(a,e.program,e.preferences,e.host),c=Mie(u_(o)?175:174,e,s,n,r,i,o),l=function(e,t){if(qD(e))return;const n=uc(t,e=>FD(e)||PD(e));return n&&n.parent===e?n:void 0}(o,n);l?t.insertNodeAfter(a,l,c):t.insertMemberAtStart(a,o,c),s.writeFixes(t)}function Gte(e,t,{token:n,parentDeclaration:r}){const i=$(r.members,e=>{const n=t.getTypeAtLocation(e);return!!(n&&402653316&n.flags)}),o=r.getSourceFile(),a=mw.createEnumMember(n,i?mw.createStringLiteral(n.text):void 0),s=ye(r.members);s?e.insertNodeInListAfter(o,s,a,r.members):e.insertMemberAtStart(o,r,a)}function Xte(e,t,n){const r=tY(t.sourceFile,t.preferences),i=lee(t.sourceFile,t.program,t.preferences,t.host),o=2===n.kind?Mie(263,t,i,n.call,gc(n.token),n.modifierFlags,n.parentDeclaration):jie(263,t,r,n.signature,Kie(_a.Function_not_implemented.message,r),n.token,void 0,void 0,void 0,i);void 0===o&&un.fail("fixMissingFunctionDeclaration codefix got unexpected error."),nE(n.parentDeclaration)?e.insertNodeBefore(n.sourceFile,n.parentDeclaration,o,!0):e.insertNodeAtEndOfScope(n.sourceFile,n.parentDeclaration,o),i.writeFixes(e)}function Qte(e,t,n){const r=lee(t.sourceFile,t.program,t.preferences,t.host),i=tY(t.sourceFile,t.preferences),o=t.program.getTypeChecker(),a=n.parentDeclaration.attributes,s=$(a.properties,XE),c=E(n.attributes,e=>{const a=Zte(t,o,r,i,o.getTypeOfSymbol(e),n.parentDeclaration),s=mw.createIdentifier(e.name),c=mw.createJsxAttribute(s,mw.createJsxExpression(void 0,a));return DT(s,c),c}),l=mw.createJsxAttributes(s?[...c,...a.properties]:[...a.properties,...c]),_={prefix:a.pos===a.end?" ":void 0};e.replaceNode(t.sourceFile,a,l,_),r.writeFixes(e)}function Yte(e,t,n){const r=lee(t.sourceFile,t.program,t.preferences,t.host),i=tY(t.sourceFile,t.preferences),o=yk(t.program.getCompilerOptions()),a=t.program.getTypeChecker(),s=E(n.properties,e=>{const s=Zte(t,a,r,i,a.getTypeOfSymbol(e),n.parentDeclaration);return mw.createPropertyAssignment(function(e,t,n,r){if(Xu(e)){const t=r.symbolToNode(e,111551,void 0,void 0,1);if(t&&kD(t))return t}return zT(e.name,t,0===n,!1,!1)}(e,o,i,a),s)}),c={leadingTriviaOption:jue.LeadingTriviaOption.Exclude,trailingTriviaOption:jue.TrailingTriviaOption.Exclude,indentation:n.indentation};e.replaceNode(t.sourceFile,n.parentDeclaration,mw.createObjectLiteralExpression([...n.parentDeclaration.properties,...s],!0),c),r.writeFixes(e)}function Zte(e,t,n,r,i,o){if(3&i.flags)return ene();if(134217732&i.flags)return mw.createStringLiteral("",0===r);if(8&i.flags)return mw.createNumericLiteral(0);if(64&i.flags)return mw.createBigIntLiteral("0n");if(16&i.flags)return mw.createFalse();if(1056&i.flags){const e=i.symbol.exports?me(i.symbol.exports.values()):i.symbol,n=i.symbol.parent&&256&i.symbol.parent.flags?i.symbol.parent:i.symbol,r=t.symbolToExpression(n,111551,void 0,64);return void 0===e||void 0===r?mw.createNumericLiteral(0):mw.createPropertyAccessExpression(r,t.symbolToString(e))}if(256&i.flags)return mw.createNumericLiteral(i.value);if(2048&i.flags)return mw.createBigIntLiteral(i.value);if(128&i.flags)return mw.createStringLiteral(i.value,0===r);if(512&i.flags)return i===t.getFalseType()||i===t.getFalseType(!0)?mw.createFalse():mw.createTrue();if(65536&i.flags)return mw.createNull();if(1048576&i.flags)return f(i.types,i=>Zte(e,t,n,r,i,o))??ene();if(t.isArrayLikeType(i))return mw.createArrayLiteralExpression();if(function(e){return 524288&e.flags&&(128&gx(e)||e.symbol&&tt(be(e.symbol.declarations),qD))}(i)){const a=E(t.getPropertiesOfType(i),i=>{const a=Zte(e,t,n,r,t.getTypeOfSymbol(i),o);return mw.createPropertyAssignment(i.name,a)});return mw.createObjectLiteralExpression(a,!0)}if(16&gx(i)){if(void 0===b(i.symbol.declarations||l,en(BD,DD,FD)))return ene();const a=t.getSignaturesOfType(i,0);return void 0===a?ene():jie(219,e,r,a[0],Kie(_a.Function_not_implemented.message,r),void 0,void 0,void 0,o,n)??ene()}if(1&gx(i)){const e=mx(i.symbol);if(void 0===e||Pv(e))return ene();const t=iv(e);return t&&u(t.parameters)?ene():mw.createNewExpression(mw.createIdentifier(i.symbol.name),void 0,void 0)}return ene()}function ene(){return mw.createIdentifier("undefined")}function tne(e){if(uc(e,QE)){const t=uc(e.parent,nE);if(t)return t}return vd(e)}A7({errorCodes:zte,getCodeActions(e){const t=e.program.getTypeChecker(),n=qte(e.sourceFile,e.span.start,e.errorCode,t,e.program);if(n){if(3===n.kind){const t=jue.ChangeTracker.with(e,t=>Yte(t,e,n));return[F7(Rte,t,_a.Add_missing_properties,Rte,_a.Add_all_missing_properties)]}if(4===n.kind){const t=jue.ChangeTracker.with(e,t=>Qte(t,e,n));return[F7(Bte,t,_a.Add_missing_attributes,Bte,_a.Add_all_missing_attributes)]}if(2===n.kind||5===n.kind){const t=jue.ChangeTracker.with(e,t=>Xte(t,e,n));return[F7(Jte,t,[_a.Add_missing_function_declaration_0,n.token.text],Jte,_a.Add_all_missing_function_declarations)]}if(1===n.kind){const t=jue.ChangeTracker.with(e,t=>Gte(t,e.program.getTypeChecker(),n));return[F7(Mte,t,[_a.Add_missing_enum_member_0,n.token.text],Mte,_a.Add_all_missing_members)]}return K(function(e,t){const{parentDeclaration:n,declSourceFile:r,modifierFlags:i,token:o,call:a}=t;if(void 0===a)return;const s=o.text,c=t=>jue.ChangeTracker.with(e,i=>Kte(e,i,a,o,t,n,r)),l=[F7(Mte,c(256&i),[256&i?_a.Declare_static_method_0:_a.Declare_method_0,s],Mte,_a.Add_all_missing_members)];return 2&i&&l.unshift(D7(Mte,c(2),[_a.Declare_private_method_0,s])),l}(e,n),function(e,t){return t.isJSFile?rn(function(e,{parentDeclaration:t,declSourceFile:n,modifierFlags:r,token:i}){if(pE(t)||qD(t))return;const o=jue.ChangeTracker.with(e,e=>Ute(e,n,t,i,!!(256&r)));if(0===o.length)return;const a=256&r?_a.Initialize_static_property_0:sD(i)?_a.Declare_a_private_field_named_0:_a.Initialize_property_0_in_the_constructor;return F7(Mte,o,[a,i.text],Mte,_a.Add_all_missing_members)}(e,t)):function(e,{parentDeclaration:t,declSourceFile:n,modifierFlags:r,token:i}){const o=i.text,a=256&r,s=Wte(e.program.getTypeChecker(),t,i),c=r=>jue.ChangeTracker.with(e,e=>$te(e,n,t,o,s,r)),l=[F7(Mte,c(256&r),[a?_a.Declare_static_property_0:_a.Declare_property_0,o],Mte,_a.Add_all_missing_members)];return a||sD(i)||(2&r&&l.unshift(D7(Mte,c(2),[_a.Declare_private_property_0,o])),l.push(function(e,t,n,r,i){const o=mw.createKeywordTypeNode(154),a=mw.createParameterDeclaration(void 0,void 0,"x",void 0,o,void 0),s=mw.createIndexSignature(void 0,[a],i),c=jue.ChangeTracker.with(e,e=>e.insertMemberAtStart(t,n,s));return D7(Mte,c,[_a.Add_index_signature_for_property_0,r])}(e,n,t,i.text,s))),l}(e,t)}(e,n))}},fixIds:[Mte,Jte,Rte,Bte],getAllCodeActions:e=>{const{program:t,fixId:n}=e,r=t.getTypeChecker(),i=new Set,o=new Map;return j7(jue.ChangeTracker.with(e,t=>{B7(e,zte,a=>{const s=qte(a.file,a.start,a.code,r,e.program);if(void 0===s)return;const c=ZB(s.parentDeclaration)+"#"+(3===s.kind?s.identifier||ZB(s.token):s.token.text);if(bx(i,c))if(n!==Jte||2!==s.kind&&5!==s.kind){if(n===Rte&&3===s.kind)Yte(t,e,s);else if(n===Bte&&4===s.kind)Qte(t,e,s);else if(1===s.kind&&Gte(t,r,s),0===s.kind){const{parentDeclaration:e,token:t}=s,n=z(o,e,()=>[]);n.some(e=>e.token.text===t.text)||n.push(s)}}else Xte(t,e,s)}),o.forEach((n,i)=>{const a=qD(i)?void 0:function(e,t){const n=[];for(;e;){const r=vh(e),i=r&&t.getSymbolAtLocation(r.expression);if(!i)break;const o=2097152&i.flags?t.getAliasedSymbol(i):i,a=o.declarations&&b(o.declarations,u_);if(!a)break;n.push(a),e=a}return n}(i,r);for(const i of n){if(null==a?void 0:a.some(e=>{const t=o.get(e);return!!t&&t.some(({token:e})=>e.text===i.token.text)}))continue;const{parentDeclaration:n,declSourceFile:s,modifierFlags:c,token:l,call:_,isJSFile:u}=i;if(_&&!sD(l))Kte(e,t,_,l,256&c,n,s);else if(!u||pE(n)||qD(n)){const e=Wte(r,n,l);$te(t,s,n,l.text,e,256&c)}else Ute(t,s,n,l,!!(256&c))}})}))}});var nne="addMissingNewOperator",rne=[_a.Value_of_type_0_is_not_callable_Did_you_mean_to_include_new.code];function ine(e,t,n){const r=nt(function(e,t){let n=HX(e,t.start);const r=Fs(t);for(;n.endine(e,t,n));return[F7(nne,r,_a.Add_missing_new_operator_to_call,nne,_a.Add_missing_new_operator_to_all_calls)]},fixIds:[nne],getAllCodeActions:e=>R7(e,rne,(t,n)=>ine(t,e.sourceFile,n))});var one="addMissingParam",ane="addOptionalParam",sne=[_a.Expected_0_arguments_but_got_1.code];function cne(e,t,n){const r=uc(HX(e,n),fF);if(void 0===r||0===u(r.arguments))return;const i=t.getTypeChecker(),o=N(i.getTypeAtLocation(r.expression).symbol.declarations,une);if(void 0===o)return;const a=ye(o);if(void 0===a||void 0===a.body||YZ(t,a.getSourceFile()))return;const s=function(e){const t=Cc(e);return t||(lE(e.parent)&&aD(e.parent.name)||ND(e.parent)||TD(e.parent)?e.parent.name:void 0)}(a);if(void 0===s)return;const c=[],l=[],_=u(a.parameters),d=u(r.arguments);if(_>d)return;const p=[a,...pne(a,o)];for(let e=0,t=0,n=0;e{const s=vd(i),c=lee(s,t,n,r);u(i.parameters)?e.replaceNodeRangeWithNodes(s,ge(i.parameters),ve(i.parameters),dne(c,a,i,o),{joiner:", ",indentation:0,leadingTriviaOption:jue.LeadingTriviaOption.IncludeAll,trailingTriviaOption:jue.TrailingTriviaOption.Include}):d(dne(c,a,i,o),(t,n)=>{0===u(i.parameters)&&0===n?e.insertNodeAt(s,i.parameters.end,t):e.insertNodeAtEndOfList(s,i.parameters,t)}),c.writeFixes(e)})}function une(e){switch(e.kind){case 263:case 219:case 175:case 220:return!0;default:return!1}}function dne(e,t,n,r){const i=E(n.parameters,e=>mw.createParameterDeclaration(e.modifiers,e.dotDotDotToken,e.name,e.questionToken,e.type,e.initializer));for(const{pos:n,declaration:o}of r){const r=n>0?i[n-1]:void 0;i.splice(n,0,mw.updateParameterDeclaration(o,o.modifiers,o.dotDotDotToken,o.name,r&&r.questionToken?mw.createToken(58):o.questionToken,hne(e,o.type,t),o.initializer))}return i}function pne(e,t){const n=[];for(const r of t)if(fne(r)){if(u(r.parameters)===u(e.parameters)){n.push(r);continue}if(u(r.parameters)>u(e.parameters))return[]}return n}function fne(e){return une(e)&&void 0===e.body}function mne(e,t,n){return mw.createParameterDeclaration(void 0,void 0,e,n,t,void 0)}function gne(e,t){return u(e)&&$(e,e=>t_ne(t,e.program,e.preferences,e.host,r,i)),[u(i)>1?_a.Add_missing_parameters_to_0:_a.Add_missing_parameter_to_0,n],one,_a.Add_all_missing_parameters)),u(o)&&ie(a,F7(ane,jue.ChangeTracker.with(e,t=>_ne(t,e.program,e.preferences,e.host,r,o)),[u(o)>1?_a.Add_optional_parameters_to_0:_a.Add_optional_parameter_to_0,n],ane,_a.Add_all_optional_parameters)),a},getAllCodeActions:e=>R7(e,sne,(t,n)=>{const r=cne(e.sourceFile,e.program,n.start);if(r){const{declarations:n,newParameters:i,newOptionalParameters:o}=r;e.fixId===one&&_ne(t,e.program,e.preferences,e.host,n,i),e.fixId===ane&&_ne(t,e.program,e.preferences,e.host,n,o)}})});var yne="installTypesPackage",vne=_a.Cannot_find_module_0_or_its_corresponding_type_declarations.code,bne=_a.This_JSX_tag_requires_the_module_path_0_to_exist_but_none_could_be_found_Make_sure_you_have_types_for_the_appropriate_package_installed.code,xne=[vne,_a.Could_not_find_a_declaration_file_for_module_0_1_implicitly_has_an_any_type.code,bne];function kne(e,t){return{type:"install package",file:e,packageName:t}}function Sne(e,t){const n=tt(HX(e,t),UN);if(!n)return;const r=n.text,{packageName:i}=mR(r);return Cs(i)?void 0:i}function Tne(e,t,n){var r;return n===vne?NC.has(e)?"@types/node":void 0:(null==(r=t.isKnownTypesPackageName)?void 0:r.call(t,e))?ER(e):void 0}A7({errorCodes:xne,getCodeActions:function(e){const{host:t,sourceFile:n,span:{start:r},errorCode:i}=e,o=i===bne?Kk(e.program.getCompilerOptions(),n):Sne(n,r);if(void 0===o)return;const a=Tne(o,t,i);return void 0===a?[]:[F7("fixCannotFindModule",[],[_a.Install_0,a],yne,_a.Install_all_missing_types_packages,kne(n.fileName,a))]},fixIds:[yne],getAllCodeActions:e=>R7(e,xne,(t,n,r)=>{const i=Sne(n.file,n.start);if(void 0!==i)switch(e.fixId){case yne:{const t=Tne(i,e.host,n.code);t&&r.push(kne(n.file.fileName,t));break}default:un.fail(`Bad fixId: ${e.fixId}`)}})});var Cne=[_a.Non_abstract_class_0_does_not_implement_inherited_abstract_member_1_from_class_2.code,_a.Non_abstract_class_0_is_missing_implementations_for_the_following_members_of_1_Colon_2.code,_a.Non_abstract_class_0_is_missing_implementations_for_the_following_members_of_1_Colon_2_and_3_more.code,_a.Non_abstract_class_expression_does_not_implement_inherited_abstract_member_0_from_class_1.code,_a.Non_abstract_class_expression_is_missing_implementations_for_the_following_members_of_0_Colon_1.code,_a.Non_abstract_class_expression_is_missing_implementations_for_the_following_members_of_0_Colon_1_and_2_more.code],wne="fixClassDoesntImplementInheritedAbstractMember";function Nne(e,t){return nt(HX(e,t).parent,u_)}function Dne(e,t,n,r,i){const o=yh(e),a=n.program.getTypeChecker(),s=a.getTypeAtLocation(o),c=a.getPropertiesOfType(s).filter(Fne),l=lee(t,n.program,i,n.host);Aie(e,c,t,n,i,l,n=>r.insertMemberAtStart(t,e,n)),l.writeFixes(r)}function Fne(e){const t=zv(ge(e.getDeclarations()));return!(2&t||!(64&t))}A7({errorCodes:Cne,getCodeActions:function(e){const{sourceFile:t,span:n}=e,r=jue.ChangeTracker.with(e,r=>Dne(Nne(t,n.start),t,e,r,e.preferences));return 0===r.length?void 0:[F7(wne,r,_a.Implement_inherited_abstract_class,wne,_a.Implement_all_inherited_abstract_classes)]},fixIds:[wne],getAllCodeActions:function(e){const t=new Set;return R7(e,Cne,(n,r)=>{const i=Nne(r.file,r.start);bx(t,ZB(i))&&Dne(i,e.sourceFile,e,n,e.preferences)})}});var Ene="classSuperMustPrecedeThisAccess",Pne=[_a.super_must_be_called_before_accessing_this_in_the_constructor_of_a_derived_class.code];function Ane(e,t,n,r){e.insertNodeAtConstructorStart(t,n,r),e.delete(t,r)}function Ine(e,t){const n=HX(e,t);if(110!==n.kind)return;const r=Kf(n),i=One(r.body);return i&&!i.expression.arguments.some(e=>dF(e)&&e.expression===n)?{constructor:r,superCall:i}:void 0}function One(e){return HF(e)&&lf(e.expression)?e:r_(e)?void 0:XI(e,One)}A7({errorCodes:Pne,getCodeActions(e){const{sourceFile:t,span:n}=e,r=Ine(t,n.start);if(!r)return;const{constructor:i,superCall:o}=r,a=jue.ChangeTracker.with(e,e=>Ane(e,t,i,o));return[F7(Ene,a,_a.Make_super_call_the_first_statement_in_the_constructor,Ene,_a.Make_all_super_calls_the_first_statement_in_their_constructor)]},fixIds:[Ene],getAllCodeActions(e){const{sourceFile:t}=e,n=new Set;return R7(e,Pne,(e,r)=>{const i=Ine(r.file,r.start);if(!i)return;const{constructor:o,superCall:a}=i;bx(n,ZB(o.parent))&&Ane(e,t,o,a)})}});var Lne="constructorForDerivedNeedSuperCall",jne=[_a.Constructors_for_derived_classes_must_contain_a_super_call.code];function Mne(e,t){const n=HX(e,t);return un.assert(PD(n.parent),"token should be at the constructor declaration"),n.parent}function Rne(e,t,n){const r=mw.createExpressionStatement(mw.createCallExpression(mw.createSuper(),void 0,l));e.insertNodeAtConstructorStart(t,n,r)}A7({errorCodes:jne,getCodeActions(e){const{sourceFile:t,span:n}=e,r=Mne(t,n.start),i=jue.ChangeTracker.with(e,e=>Rne(e,t,r));return[F7(Lne,i,_a.Add_missing_super_call,Lne,_a.Add_all_missing_super_calls)]},fixIds:[Lne],getAllCodeActions:e=>R7(e,jne,(t,n)=>Rne(t,e.sourceFile,Mne(n.file,n.start)))});var Bne="fixEnableJsxFlag",Jne=[_a.Cannot_use_JSX_unless_the_jsx_flag_is_provided.code];function zne(e,t){Xie(e,t,"jsx",mw.createStringLiteral("react"))}A7({errorCodes:Jne,getCodeActions:function(e){const{configFile:t}=e.program.getCompilerOptions();if(void 0===t)return;const n=jue.ChangeTracker.with(e,e=>zne(e,t));return[D7(Bne,n,_a.Enable_the_jsx_flag_in_your_configuration_file)]},fixIds:[Bne],getAllCodeActions:e=>R7(e,Jne,t=>{const{configFile:n}=e.program.getCompilerOptions();void 0!==n&&zne(t,n)})});var qne="fixNaNEquality",Une=[_a.This_condition_will_always_return_0.code];function Vne(e,t,n){const r=b(e.getSemanticDiagnostics(t),e=>e.start===n.start&&e.length===n.length);if(void 0===r||void 0===r.relatedInformation)return;const i=b(r.relatedInformation,e=>e.code===_a.Did_you_mean_0.code);if(void 0===i||void 0===i.file||void 0===i.start||void 0===i.length)return;const o=noe(i.file,Ws(i.start,i.length));return void 0!==o&&V_(o)&&NF(o.parent)?{suggestion:$ne(i.messageText),expression:o.parent,arg:o}:void 0}function Wne(e,t,n,r){const i=mw.createCallExpression(mw.createPropertyAccessExpression(mw.createIdentifier("Number"),mw.createIdentifier("isNaN")),void 0,[n]),o=r.operatorToken.kind;e.replaceNode(t,r,38===o||36===o?mw.createPrefixUnaryExpression(54,i):i)}function $ne(e){const[,t]=cV(e,"\n",0).match(/'(.*)'/)||[];return t}A7({errorCodes:Une,getCodeActions(e){const{sourceFile:t,span:n,program:r}=e,i=Vne(r,t,n);if(void 0===i)return;const{suggestion:o,expression:a,arg:s}=i,c=jue.ChangeTracker.with(e,e=>Wne(e,t,s,a));return[F7(qne,c,[_a.Use_0,o],qne,_a.Use_Number_isNaN_in_all_conditions)]},fixIds:[qne],getAllCodeActions:e=>R7(e,Une,(t,n)=>{const r=Vne(e.program,n.file,Ws(n.start,n.length));r&&Wne(t,n.file,r.arg,r.expression)})}),A7({errorCodes:[_a.Top_level_await_expressions_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_node16_node18_node20_nodenext_or_preserve_and_the_target_option_is_set_to_es2017_or_higher.code,_a.Top_level_await_using_statements_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_node16_node18_node20_nodenext_or_preserve_and_the_target_option_is_set_to_es2017_or_higher.code,_a.Top_level_for_await_loops_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_node16_node18_node20_nodenext_or_preserve_and_the_target_option_is_set_to_es2017_or_higher.code],getCodeActions:function(e){const t=e.program.getCompilerOptions(),{configFile:n}=t;if(void 0===n)return;const r=[],i=vk(t);if(i>=5&&i<99){const t=jue.ChangeTracker.with(e,e=>{Xie(e,n,"module",mw.createStringLiteral("esnext"))});r.push(D7("fixModuleOption",t,[_a.Set_the_module_option_in_your_configuration_file_to_0,"esnext"]))}const o=yk(t);if(o<4||o>99){const t=jue.ChangeTracker.with(e,e=>{if(!Wf(n))return;const t=[["target",mw.createStringLiteral("es2017")]];1===i&&t.push(["module",mw.createStringLiteral("commonjs")]),Gie(e,n,t)});r.push(D7("fixTargetOption",t,[_a.Set_the_target_option_in_your_configuration_file_to_0,"es2017"]))}return r.length?r:void 0}});var Hne="fixPropertyAssignment",Kne=[_a.Did_you_mean_to_use_a_Colon_An_can_only_follow_a_property_name_when_the_containing_object_literal_is_part_of_a_destructuring_pattern.code];function Gne(e,t,n){e.replaceNode(t,n,mw.createPropertyAssignment(n.name,n.objectAssignmentInitializer))}function Xne(e,t){return nt(HX(e,t).parent,iP)}A7({errorCodes:Kne,fixIds:[Hne],getCodeActions(e){const{sourceFile:t,span:n}=e,r=Xne(t,n.start),i=jue.ChangeTracker.with(e,t=>Gne(t,e.sourceFile,r));return[F7(Hne,i,[_a.Change_0_to_1,"=",":"],Hne,[_a.Switch_each_misused_0_to_1,"=",":"])]},getAllCodeActions:e=>R7(e,Kne,(e,t)=>Gne(e,t.file,Xne(t.file,t.start)))});var Qne="extendsInterfaceBecomesImplements",Yne=[_a.Cannot_extend_an_interface_0_Did_you_mean_implements.code];function Zne(e,t){const n=Xf(HX(e,t)).heritageClauses,r=n[0].getFirstToken();return 96===r.kind?{extendsToken:r,heritageClauses:n}:void 0}function ere(e,t,n,r){if(e.replaceNode(t,n,mw.createToken(119)),2===r.length&&96===r[0].token&&119===r[1].token){const n=r[1].getFirstToken(),i=n.getFullStart();e.replaceRange(t,{pos:i,end:i},mw.createToken(28));const o=t.text;let a=n.end;for(;aere(e,t,r,i));return[F7(Qne,o,_a.Change_extends_to_implements,Qne,_a.Change_all_extended_interfaces_to_implements)]},fixIds:[Qne],getAllCodeActions:e=>R7(e,Yne,(e,t)=>{const n=Zne(t.file,t.start);n&&ere(e,t.file,n.extendsToken,n.heritageClauses)})});var tre="forgottenThisPropertyAccess",nre=_a.Cannot_find_name_0_Did_you_mean_the_static_member_1_0.code,rre=[_a.Cannot_find_name_0_Did_you_mean_the_instance_member_this_0.code,_a.Private_identifiers_are_only_allowed_in_class_bodies_and_may_only_be_used_as_part_of_a_class_member_declaration_property_access_or_on_the_left_hand_side_of_an_in_expression.code,nre];function ire(e,t,n){const r=HX(e,t);if(aD(r)||sD(r))return{node:r,className:n===nre?Xf(r).name.text:void 0}}function ore(e,t,{node:n,className:r}){UC(n),e.replaceNode(t,n,mw.createPropertyAccessExpression(r?mw.createIdentifier(r):mw.createThis(),n))}A7({errorCodes:rre,getCodeActions(e){const{sourceFile:t}=e,n=ire(t,e.span.start,e.errorCode);if(!n)return;const r=jue.ChangeTracker.with(e,e=>ore(e,t,n));return[F7(tre,r,[_a.Add_0_to_unresolved_variable,n.className||"this"],tre,_a.Add_qualifier_to_all_unresolved_variables_matching_a_member_name)]},fixIds:[tre],getAllCodeActions:e=>R7(e,rre,(t,n)=>{const r=ire(n.file,n.start,n.code);r&&ore(t,e.sourceFile,r)})});var are="fixInvalidJsxCharacters_expression",sre="fixInvalidJsxCharacters_htmlEntity",cre=[_a.Unexpected_token_Did_you_mean_or_gt.code,_a.Unexpected_token_Did_you_mean_or_rbrace.code];A7({errorCodes:cre,fixIds:[are,sre],getCodeActions(e){const{sourceFile:t,preferences:n,span:r}=e,i=jue.ChangeTracker.with(e,e=>_re(e,n,t,r.start,!1)),o=jue.ChangeTracker.with(e,e=>_re(e,n,t,r.start,!0));return[F7(are,i,_a.Wrap_invalid_character_in_an_expression_container,are,_a.Wrap_all_invalid_characters_in_an_expression_container),F7(sre,o,_a.Convert_invalid_character_to_its_html_entity_code,sre,_a.Convert_all_invalid_characters_to_HTML_entity_code)]},getAllCodeActions:e=>R7(e,cre,(t,n)=>_re(t,e.preferences,n.file,n.start,e.fixId===sre))});var lre={">":">","}":"}"};function _re(e,t,n,r,i){const o=n.getText()[r];if(!function(e){return De(lre,e)}(o))return;const a=i?lre[o]:`{${sZ(n,t,o)}}`;e.replaceRangeWithText(n,{pos:r,end:r+1},a)}var ure="deleteUnmatchedParameter",dre="renameUnmatchedParameter",pre=[_a.JSDoc_param_tag_has_name_0_but_there_is_no_parameter_with_that_name.code];function fre(e,t){const n=HX(e,t);if(n.parent&&BP(n.parent)&&aD(n.parent.name)){const e=n.parent,t=Vg(e),r=qg(e);if(t&&r)return{jsDocHost:t,signature:r,name:n.parent.name,jsDocParameterTag:e}}}A7({fixIds:[ure,dre],errorCodes:pre,getCodeActions:function(e){const{sourceFile:t,span:n}=e,r=[],i=fre(t,n.start);if(i)return ie(r,function(e,{name:t,jsDocHost:n,jsDocParameterTag:r}){const i=jue.ChangeTracker.with(e,t=>t.filterJSDocTags(e.sourceFile,n,e=>e!==r));return F7(ure,i,[_a.Delete_unused_param_tag_0,t.getText(e.sourceFile)],ure,_a.Delete_all_unused_param_tags)}(e,i)),ie(r,function(e,{name:t,jsDocHost:n,signature:r,jsDocParameterTag:i}){if(!u(r.parameters))return;const o=e.sourceFile,a=ol(r),s=new Set;for(const e of a)BP(e)&&aD(e.name)&&s.add(e.name.escapedText);const c=f(r.parameters,e=>aD(e.name)&&!s.has(e.name.escapedText)?e.name.getText(o):void 0);if(void 0===c)return;const l=mw.updateJSDocParameterTag(i,i.tagName,mw.createIdentifier(c),i.isBracketed,i.typeExpression,i.isNameFirst,i.comment),_=jue.ChangeTracker.with(e,e=>e.replaceJSDocComment(o,n,E(a,e=>e===i?l:e)));return D7(dre,_,[_a.Rename_param_tag_name_0_to_1,t.getText(o),c])}(e,i)),r},getAllCodeActions:function(e){const t=new Map;return j7(jue.ChangeTracker.with(e,n=>{B7(e,pre,({file:e,start:n})=>{const r=fre(e,n);r&&t.set(r.signature,ie(t.get(r.signature),r.jsDocParameterTag))}),t.forEach((t,r)=>{if(e.fixId===ure){const e=new Set(t);n.filterJSDocTags(r.getSourceFile(),r,t=>!e.has(t))}})}))}});var mre="fixUnreferenceableDecoratorMetadata";A7({errorCodes:[_a.A_type_referenced_in_a_decorated_signature_must_be_imported_with_import_type_or_a_namespace_import_when_isolatedModules_and_emitDecoratorMetadata_are_enabled.code],getCodeActions:e=>{const t=function(e,t,n){const r=tt(HX(e,n),aD);if(!r||184!==r.parent.kind)return;const i=t.getTypeChecker().getSymbolAtLocation(r);return b((null==i?void 0:i.declarations)||l,en(kE,PE,bE))}(e.sourceFile,e.program,e.span.start);if(!t)return;const n=jue.ChangeTracker.with(e,n=>277===t.kind&&function(e,t,n,r){Q2.doChangeNamedToNamespaceOrDefault(t,r,e,n.parent)}(n,e.sourceFile,t,e.program)),r=jue.ChangeTracker.with(e,n=>function(e,t,n,r){if(272===n.kind)return void e.insertModifierBefore(t,156,n.name);const i=274===n.kind?n:n.parent.parent;if(i.name&&i.namedBindings)return;const o=r.getTypeChecker();Cg(i,e=>{if(111551&ox(e.symbol,o).flags)return!0})||e.insertModifierBefore(t,156,i)}(n,e.sourceFile,t,e.program));let i;return n.length&&(i=ie(i,D7(mre,n,_a.Convert_named_imports_to_namespace_import))),r.length&&(i=ie(i,D7(mre,r,_a.Use_import_type))),i},fixIds:[mre]});var gre="unusedIdentifier",hre="unusedIdentifier_prefix",yre="unusedIdentifier_delete",vre="unusedIdentifier_deleteImports",bre="unusedIdentifier_infer",xre=[_a._0_is_declared_but_its_value_is_never_read.code,_a._0_is_declared_but_never_used.code,_a.Property_0_is_declared_but_its_value_is_never_read.code,_a.All_imports_in_import_declaration_are_unused.code,_a.All_destructured_elements_are_unused.code,_a.All_variables_are_unused.code,_a.All_type_parameters_are_unused.code];function kre(e,t,n){e.replaceNode(t,n.parent,mw.createKeywordTypeNode(159))}function Sre(e,t){return F7(gre,e,t,yre,_a.Delete_all_unused_declarations)}function Tre(e,t,n){e.delete(t,un.checkDefined(nt(n.parent,kp).typeParameters,"The type parameter to delete should exist"))}function Cre(e){return 102===e.kind||80===e.kind&&(277===e.parent.kind||274===e.parent.kind)}function wre(e){return 102===e.kind?tt(e.parent,xE):void 0}function Nre(e,t){return _E(t.parent)&&ge(t.parent.getChildren(e))===t}function Dre(e,t,n){e.delete(t,244===n.parent.kind?n.parent:n)}function Fre(e,t,n,r){t!==_a.Property_0_is_declared_but_its_value_is_never_read.code&&(140===r.kind&&(r=nt(r.parent,QD).typeParameter.name),aD(r)&&function(e){switch(e.parent.kind){case 170:case 169:return!0;case 261:switch(e.parent.parent.parent.kind){case 251:case 250:return!0}}return!1}(r)&&(e.replaceNode(n,r,mw.createIdentifier(`_${r.text}`)),TD(r.parent)&&Ec(r.parent).forEach(t=>{aD(t.name)&&e.replaceNode(n,t.name,mw.createIdentifier(`_${t.name.text}`))})))}function Ere(e,t,n,r,i,o,a,s){!function(e,t,n,r,i,o,a,s){const{parent:c}=e;if(TD(c))!function(e,t,n,r,i,o,a,s=!1){if(function(e,t,n,r,i,o,a){const{parent:s}=n;switch(s.kind){case 175:case 177:const c=s.parameters.indexOf(n),l=FD(s)?s.name:s,_=gce.Core.getReferencedSymbolsForNode(s.pos,l,i,r,o);if(_)for(const e of _)for(const t of e.references)if(t.kind===gce.EntryKind.Node){const e=yD(t.node)&&fF(t.node.parent)&&t.node.parent.arguments.length>c,r=dF(t.node.parent)&&yD(t.node.parent.expression)&&fF(t.node.parent.parent)&&t.node.parent.parent.arguments.length>c,i=(FD(t.node.parent)||DD(t.node.parent))&&t.node.parent!==n.parent&&t.node.parent.parameters.length>c;if(e||r||i)return!1}return!0;case 263:return!s.name||!function(e,t,n){return!!gce.Core.eachSymbolReferenceInFile(n,e,t,e=>aD(e)&&fF(e.parent)&&e.parent.arguments.includes(e))}(e,t,s.name)||Are(s,n,a);case 219:case 220:return Are(s,n,a);case 179:return!1;case 178:return!0;default:return un.failBadSyntaxKind(s)}}(r,t,n,i,o,a,s))if(n.modifiers&&n.modifiers.length>0&&(!aD(n.name)||gce.Core.isSymbolReferencedInFile(n.name,r,t)))for(const r of n.modifiers)Zl(r)&&e.deleteModifier(t,r);else!n.initializer&&Pre(n,r,i)&&e.delete(t,n)}(t,n,c,r,i,o,a,s);else if(!(s&&aD(e)&&gce.Core.isSymbolReferencedInFile(e,r,n))){const r=kE(c)?e:kD(c)?c.parent:c;un.assert(r!==n,"should not delete whole source file"),t.delete(n,r)}}(t,n,e,r,i,o,a,s),aD(t)&&gce.Core.eachSymbolReferenceInFile(t,r,e,t=>{var r;dF(t.parent)&&t.parent.name===t&&(t=t.parent),!s&&(NF((r=t).parent)&&r.parent.left===r||(wF(r.parent)||CF(r.parent))&&r.parent.operand===r)&&HF(r.parent.parent)&&n.delete(e,t.parent.parent)})}function Pre(e,t,n){const r=e.parent.parameters.indexOf(e);return!gce.Core.someSignatureUsage(e.parent,n,t,(e,t)=>!t||t.arguments.length>r)}function Are(e,t,n){const r=e.parameters,i=r.indexOf(t);return un.assert(-1!==i,"The parameter should already be in the list"),n?r.slice(i+1).every(e=>aD(e.name)&&!e.symbol.isReferenced):i===r.length-1}function Ire(e,t,n){const r=n.symbol.declarations;if(r)for(const n of r)e.delete(t,n)}A7({errorCodes:xre,getCodeActions(e){const{errorCode:t,sourceFile:n,program:r,cancellationToken:i}=e,o=r.getTypeChecker(),a=r.getSourceFiles(),s=HX(n,e.span.start);if(UP(s))return[Sre(jue.ChangeTracker.with(e,e=>e.delete(n,s)),_a.Remove_template_tag)];if(30===s.kind)return[Sre(jue.ChangeTracker.with(e,e=>Tre(e,n,s)),_a.Remove_type_parameters)];const c=wre(s);if(c){const t=jue.ChangeTracker.with(e,e=>e.delete(n,c));return[F7(gre,t,[_a.Remove_import_from_0,yx(c)],vre,_a.Delete_all_unused_imports)]}if(Cre(s)){const t=jue.ChangeTracker.with(e,e=>Ere(n,s,e,o,a,r,i,!1));if(t.length)return[F7(gre,t,[_a.Remove_unused_declaration_for_Colon_0,s.getText(n)],vre,_a.Delete_all_unused_imports)]}if(sF(s.parent)||cF(s.parent)){if(TD(s.parent.parent)){const t=s.parent.elements,r=[t.length>1?_a.Remove_unused_declarations_for_Colon_0:_a.Remove_unused_declaration_for_Colon_0,E(t,e=>e.getText(n)).join(", ")];return[Sre(jue.ChangeTracker.with(e,e=>function(e,t,n){d(n.elements,n=>e.delete(t,n))}(e,n,s.parent)),r)]}return[Sre(jue.ChangeTracker.with(e,t=>function(e,t,n,{parent:r}){if(lE(r)&&r.initializer&&L_(r.initializer))if(_E(r.parent)&&u(r.parent.declarations)>1){const i=r.parent.parent,o=i.getStart(n),a=i.end;t.delete(n,r),t.insertNodeAt(n,a,r.initializer,{prefix:RY(e.host,e.formatContext.options)+n.text.slice(XY(n.text,o-1),o),suffix:bZ(n)?";":""})}else t.replaceNode(n,r.parent,r.initializer);else t.delete(n,r)}(e,t,n,s.parent)),_a.Remove_unused_destructuring_declaration)]}if(Nre(n,s))return[Sre(jue.ChangeTracker.with(e,e=>Dre(e,n,s.parent)),_a.Remove_variable_statement)];if(aD(s)&&uE(s.parent))return[Sre(jue.ChangeTracker.with(e,e=>Ire(e,n,s.parent)),[_a.Remove_unused_declaration_for_Colon_0,s.getText(n)])];const l=[];if(140===s.kind){const t=jue.ChangeTracker.with(e,e=>kre(e,n,s)),r=nt(s.parent,QD).typeParameter.name.text;l.push(F7(gre,t,[_a.Replace_infer_0_with_unknown,r],bre,_a.Replace_all_unused_infer_with_unknown))}else{const t=jue.ChangeTracker.with(e,e=>Ere(n,s,e,o,a,r,i,!1));if(t.length){const e=kD(s.parent)?s.parent:s;l.push(Sre(t,[_a.Remove_unused_declaration_for_Colon_0,e.getText(n)]))}}const _=jue.ChangeTracker.with(e,e=>Fre(e,t,n,s));return _.length&&l.push(F7(gre,_,[_a.Prefix_0_with_an_underscore,s.getText(n)],hre,_a.Prefix_all_unused_declarations_with_where_possible)),l},fixIds:[hre,yre,vre,bre],getAllCodeActions:e=>{const{sourceFile:t,program:n,cancellationToken:r}=e,i=n.getTypeChecker(),o=n.getSourceFiles();return R7(e,xre,(a,s)=>{const c=HX(t,s.start);switch(e.fixId){case hre:Fre(a,s.code,t,c);break;case vre:{const e=wre(c);e?a.delete(t,e):Cre(c)&&Ere(t,c,a,i,o,n,r,!0);break}case yre:if(140===c.kind||Cre(c))break;if(UP(c))a.delete(t,c);else if(30===c.kind)Tre(a,t,c);else if(sF(c.parent)){if(c.parent.parent.initializer)break;TD(c.parent.parent)&&!Pre(c.parent.parent,i,o)||a.delete(t,c.parent.parent)}else{if(cF(c.parent.parent)&&c.parent.parent.parent.initializer)break;Nre(t,c)?Dre(a,t,c.parent):aD(c)&&uE(c.parent)?Ire(a,t,c.parent):Ere(t,c,a,i,o,n,r,!0)}break;case bre:140===c.kind&&kre(a,t,c);break;default:un.fail(JSON.stringify(e.fixId))}})}});var Ore="fixUnreachableCode",Lre=[_a.Unreachable_code_detected.code];function jre(e,t,n,r,i){const o=HX(t,n),a=uc(o,pu);if(a.getStart(t)!==o.getStart(t)){const e=JSON.stringify({statementKind:un.formatSyntaxKind(a.kind),tokenKind:un.formatSyntaxKind(o.kind),errorCode:i,start:n,length:r});un.fail("Token and statement should start at the same point. "+e)}const s=(VF(a.parent)?a.parent:a).parent;if(!VF(a.parent)||a===ge(a.parent.statements))switch(s.kind){case 246:if(s.elseStatement){if(VF(a.parent))break;return void e.replaceNode(t,a,mw.createBlock(l))}case 248:case 249:return void e.delete(t,s)}if(VF(a.parent)){const i=n+r,o=un.checkDefined(function(e,t){let n;for(const r of e){if(!t(r))break;n=r}return n}(oT(a.parent.statements,a),e=>e.posjre(t,e.sourceFile,e.span.start,e.span.length,e.errorCode));return[F7(Ore,t,_a.Remove_unreachable_code,Ore,_a.Remove_all_unreachable_code)]},fixIds:[Ore],getAllCodeActions:e=>R7(e,Lre,(e,t)=>jre(e,t.file,t.start,t.length,t.code))});var Mre="fixUnusedLabel",Rre=[_a.Unused_label.code];function Bre(e,t,n){const r=HX(t,n),i=nt(r.parent,oE),o=r.getStart(t),a=i.statement.getStart(t),s=$b(o,a,t)?a:Qa(t.text,OX(i,59,t).end,!0);e.deleteRange(t,{pos:o,end:s})}A7({errorCodes:Rre,getCodeActions(e){const t=jue.ChangeTracker.with(e,t=>Bre(t,e.sourceFile,e.span.start));return[F7(Mre,t,_a.Remove_unused_label,Mre,_a.Remove_all_unused_labels)]},fixIds:[Mre],getAllCodeActions:e=>R7(e,Rre,(e,t)=>Bre(e,t.file,t.start))});var Jre="fixJSDocTypes_plain",zre="fixJSDocTypes_nullable",qre=[_a.JSDoc_types_can_only_be_used_inside_documentation_comments.code,_a._0_at_the_end_of_a_type_is_not_valid_TypeScript_syntax_Did_you_mean_to_write_1.code,_a._0_at_the_start_of_a_type_is_not_valid_TypeScript_syntax_Did_you_mean_to_write_1.code];function Ure(e,t,n,r,i){e.replaceNode(t,n,i.typeToTypeNode(r,n,void 0))}function Vre(e,t,n){const r=uc(HX(e,t),Wre),i=r&&r.type;return i&&{typeNode:i,type:$re(n,i)}}function Wre(e){switch(e.kind){case 235:case 180:case 181:case 263:case 178:case 182:case 201:case 175:case 174:case 170:case 173:case 172:case 179:case 266:case 217:case 261:return!0;default:return!1}}function $re(e,t){if(hP(t)){const n=e.getTypeFromTypeNode(t.type);return n===e.getNeverType()||n===e.getVoidType()?n:e.getUnionType(ie([n,e.getUndefinedType()],t.postfix?void 0:e.getNullType()))}return e.getTypeFromTypeNode(t)}A7({errorCodes:qre,getCodeActions(e){const{sourceFile:t}=e,n=e.program.getTypeChecker(),r=Vre(t,e.span.start,n);if(!r)return;const{typeNode:i,type:o}=r,a=i.getText(t),s=[c(o,Jre,_a.Change_all_jsdoc_style_types_to_TypeScript)];return 315===i.kind&&s.push(c(o,zre,_a.Change_all_jsdoc_style_types_to_TypeScript_and_add_undefined_to_nullable_types)),s;function c(r,o,s){return F7("jdocTypes",jue.ChangeTracker.with(e,e=>Ure(e,t,i,r,n)),[_a.Change_0_to_1,a,n.typeToString(r)],o,s)}},fixIds:[Jre,zre],getAllCodeActions(e){const{fixId:t,program:n,sourceFile:r}=e,i=n.getTypeChecker();return R7(e,qre,(e,n)=>{const o=Vre(n.file,n.start,i);if(!o)return;const{typeNode:a,type:s}=o,c=315===a.kind&&t===zre?i.getNullableType(s,32768):s;Ure(e,r,a,c,i)})}});var Hre="fixMissingCallParentheses",Kre=[_a.This_condition_will_always_return_true_since_this_function_is_always_defined_Did_you_mean_to_call_it_instead.code];function Gre(e,t,n){e.replaceNodeWithText(t,n,`${n.text}()`)}function Xre(e,t){const n=HX(e,t);if(dF(n.parent)){let e=n.parent;for(;dF(e.parent);)e=e.parent;return e.name}if(aD(n))return n}A7({errorCodes:Kre,fixIds:[Hre],getCodeActions(e){const{sourceFile:t,span:n}=e,r=Xre(t,n.start);if(!r)return;const i=jue.ChangeTracker.with(e,t=>Gre(t,e.sourceFile,r));return[F7(Hre,i,_a.Add_missing_call_parentheses,Hre,_a.Add_all_missing_call_parentheses)]},getAllCodeActions:e=>R7(e,Kre,(e,t)=>{const n=Xre(t.file,t.start);n&&Gre(e,t.file,n)})});var Qre="fixMissingTypeAnnotationOnExports",Yre="add-annotation",Zre="add-type-assertion",eie=[_a.Function_must_have_an_explicit_return_type_annotation_with_isolatedDeclarations.code,_a.Method_must_have_an_explicit_return_type_annotation_with_isolatedDeclarations.code,_a.At_least_one_accessor_must_have_an_explicit_type_annotation_with_isolatedDeclarations.code,_a.Variable_must_have_an_explicit_type_annotation_with_isolatedDeclarations.code,_a.Parameter_must_have_an_explicit_type_annotation_with_isolatedDeclarations.code,_a.Property_must_have_an_explicit_type_annotation_with_isolatedDeclarations.code,_a.Expression_type_can_t_be_inferred_with_isolatedDeclarations.code,_a.Binding_elements_can_t_be_exported_directly_with_isolatedDeclarations.code,_a.Computed_property_names_on_class_or_object_literals_cannot_be_inferred_with_isolatedDeclarations.code,_a.Computed_properties_must_be_number_or_string_literals_variables_or_dotted_expressions_with_isolatedDeclarations.code,_a.Enum_member_initializers_must_be_computable_without_references_to_external_symbols_with_isolatedDeclarations.code,_a.Extends_clause_can_t_contain_an_expression_with_isolatedDeclarations.code,_a.Objects_that_contain_shorthand_properties_can_t_be_inferred_with_isolatedDeclarations.code,_a.Objects_that_contain_spread_assignments_can_t_be_inferred_with_isolatedDeclarations.code,_a.Arrays_with_spread_elements_can_t_inferred_with_isolatedDeclarations.code,_a.Default_exports_can_t_be_inferred_with_isolatedDeclarations.code,_a.Only_const_arrays_can_be_inferred_with_isolatedDeclarations.code,_a.Assigning_properties_to_functions_without_declaring_them_is_not_supported_with_isolatedDeclarations_Add_an_explicit_declaration_for_the_properties_assigned_to_this_function.code,_a.Declaration_emit_for_this_parameter_requires_implicitly_adding_undefined_to_its_type_This_is_not_supported_with_isolatedDeclarations.code,_a.Type_containing_private_name_0_can_t_be_used_with_isolatedDeclarations.code,_a.Add_satisfies_and_a_type_assertion_to_this_expression_satisfies_T_as_T_to_make_the_type_explicit.code],tie=new Set([178,175,173,263,219,220,261,170,278,264,207,208]),nie=531469;function rie(e,t,n,r,i){const o=iie(n,r,i);o.result&&o.textChanges.length&&t.push(F7(e,o.textChanges,o.result,Qre,_a.Add_all_missing_type_annotations))}function iie(e,t,n){const r={typeNode:void 0,mutatedTarget:!1},i=jue.ChangeTracker.fromContext(e),o=e.sourceFile,a=e.program,s=a.getTypeChecker(),c=yk(a.getCompilerOptions()),l=lee(e.sourceFile,e.program,e.preferences,e.host),_=new Set,u=new Set,d=kU({preserveSourceNewlines:!1}),p=n({addTypeAnnotation:function(t){e.cancellationToken.throwIfCancellationRequested();const n=HX(o,t.start),r=g(n);if(r)return uE(r)?function(e){var t;if(null==u?void 0:u.has(e))return;null==u||u.add(e);const n=s.getTypeAtLocation(e),r=s.getPropertiesOfType(n);if(!e.name||0===r.length)return;const c=[];for(const t of r)ms(t.name,yk(a.getCompilerOptions()))&&(t.valueDeclaration&&lE(t.valueDeclaration)||c.push(mw.createVariableStatement([mw.createModifier(95)],mw.createVariableDeclarationList([mw.createVariableDeclaration(t.name,void 0,w(s.getTypeOfSymbol(t),e),void 0)]))));if(0===c.length)return;const l=[];(null==(t=e.modifiers)?void 0:t.some(e=>95===e.kind))&&l.push(mw.createModifier(95)),l.push(mw.createModifier(138));const _=mw.createModuleDeclaration(l,e.name,mw.createModuleBlock(c),101441696);return i.insertNodeAfter(o,e,_),[_a.Annotate_types_of_properties_expando_function_in_a_namespace]}(r):h(r);const c=uc(n,e=>tie.has(e.kind)&&(!sF(e)&&!cF(e)||lE(e.parent)));return c?h(c):void 0},addInlineAssertion:function(t){e.cancellationToken.throwIfCancellationRequested();const n=HX(o,t.start);if(g(n))return;const r=F(n,t);if(!r||eh(r)||eh(r.parent))return;const a=V_(r),c=iP(r);if(!c&&_u(r))return;if(uc(r,k_))return;if(uc(r,aP))return;if(a&&(uc(r,tP)||uc(r,b_)))return;if(PF(r))return;const l=uc(r,lE),_=l&&s.getTypeAtLocation(l);if(_&&8192&_.flags)return;if(!a&&!c)return;const{typeNode:u,mutatedTarget:d}=x(r,_);return u&&!d?(c?i.insertNodeAt(o,r.end,m(RC(r.name),u),{prefix:": "}):a?i.replaceNode(o,r,function(e,t){return f(e)&&(e=mw.createParenthesizedExpression(e)),mw.createAsExpression(mw.createSatisfiesExpression(e,RC(t)),t)}(RC(r),u)):un.assertNever(r),[_a.Add_satisfies_and_an_inline_type_assertion_with_0,D(u)]):void 0},extractAsVariable:function(t){e.cancellationToken.throwIfCancellationRequested();const n=F(HX(o,t.start),t);if(!n||eh(n)||eh(n.parent))return;if(!V_(n))return;if(_F(n))return i.replaceNode(o,n,m(n,mw.createTypeReferenceNode("const"))),[_a.Mark_array_literal_as_const];const r=uc(n,rP);if(r){if(r===n.parent&&ab(n))return;const e=mw.createUniqueName(l3(n,o,s,o),16);let t=n,a=n;if(PF(t)&&(t=rh(t.parent),a=T(t.parent)?t=t.parent:m(t,mw.createTypeReferenceNode("const"))),ab(t))return;const c=mw.createVariableStatement(void 0,mw.createVariableDeclarationList([mw.createVariableDeclaration(e,void 0,void 0,a)],2)),l=uc(n,pu);return i.insertNodeBefore(o,l,c),i.replaceNode(o,t,mw.createAsExpression(mw.cloneNode(e),mw.createTypeQueryNode(mw.cloneNode(e)))),[_a.Extract_to_variable_and_replace_with_0_as_typeof_0,D(e)]}}});return l.writeFixes(i),{result:p,textChanges:i.getChanges()};function f(e){return!(ab(e)||fF(e)||uF(e)||_F(e))}function m(e,t){return f(e)&&(e=mw.createParenthesizedExpression(e)),mw.createAsExpression(e,t)}function g(e){const t=uc(e,e=>pu(e)?"quit":lC(e));if(t&&lC(t)){let e=t;if(NF(e)&&(e=e.left,!lC(e)))return;const n=s.getTypeAtLocation(e.expression);if(!n)return;if($(s.getPropertiesOfType(n),e=>e.valueDeclaration===t||e.valueDeclaration===t.parent)){const e=n.symbol.valueDeclaration;if(e){if(RT(e)&&lE(e.parent))return e.parent;if(uE(e))return e}}}}function h(e){if(!(null==_?void 0:_.has(e)))switch(null==_||_.add(e),e.kind){case 170:case 173:case 261:return function(e){const{typeNode:t}=x(e);if(t)return e.type?i.replaceNode(vd(e),e.type,t):i.tryInsertTypeAnnotation(vd(e),e,t),[_a.Add_annotation_of_type_0,D(t)]}(e);case 220:case 219:case 263:case 175:case 178:return function(e,t){if(e.type)return;const{typeNode:n}=x(e);return n?(i.tryInsertTypeAnnotation(t,e,n),[_a.Add_return_type_0,D(n)]):void 0}(e,o);case 278:return function(e){if(e.isExportEquals)return;const{typeNode:t}=x(e.expression);if(!t)return;const n=mw.createUniqueName("_default");return i.replaceNodeWithNodes(o,e,[mw.createVariableStatement(void 0,mw.createVariableDeclarationList([mw.createVariableDeclaration(n,void 0,t,e.expression)],2)),mw.updateExportAssignment(e,null==e?void 0:e.modifiers,n)]),[_a.Extract_default_export_to_variable]}(e);case 264:return function(e){var t,n;const r=null==(t=e.heritageClauses)?void 0:t.find(e=>96===e.token),a=null==r?void 0:r.types[0];if(!a)return;const{typeNode:s}=x(a.expression);if(!s)return;const c=mw.createUniqueName(e.name?e.name.text+"Base":"Anonymous",16),l=mw.createVariableStatement(void 0,mw.createVariableDeclarationList([mw.createVariableDeclaration(c,void 0,s,a.expression)],2));i.insertNodeBefore(o,e,l);const _=us(o.text,a.end),u=(null==(n=null==_?void 0:_[_.length-1])?void 0:n.end)??a.end;return i.replaceRange(o,{pos:a.getFullStart(),end:u},c,{prefix:" "}),[_a.Extract_base_class_to_variable]}(e);case 207:case 208:return function(e){var t;const n=e.parent,r=e.parent.parent.parent;if(!n.initializer)return;let a;const s=[];if(aD(n.initializer))a={expression:{kind:3,identifier:n.initializer}};else{const e=mw.createUniqueName("dest",16);a={expression:{kind:3,identifier:e}},s.push(mw.createVariableStatement(void 0,mw.createVariableDeclarationList([mw.createVariableDeclaration(e,void 0,void 0,n.initializer)],2)))}const c=[];cF(e)?y(e,c,a):v(e,c,a);const l=new Map;for(const e of c){if(e.element.propertyName&&kD(e.element.propertyName)){const t=e.element.propertyName.expression,n=mw.getGeneratedNameForNode(t),r=mw.createVariableDeclaration(n,void 0,void 0,t),i=mw.createVariableDeclarationList([r],2),o=mw.createVariableStatement(void 0,i);s.push(o),l.set(t,n)}const n=e.element.name;if(cF(n))y(n,c,e);else if(sF(n))v(n,c,e);else{const{typeNode:i}=x(n);let o=b(e,l);if(e.element.initializer){const n=null==(t=e.element)?void 0:t.propertyName,r=mw.createUniqueName(n&&aD(n)?n.text:"temp",16);s.push(mw.createVariableStatement(void 0,mw.createVariableDeclarationList([mw.createVariableDeclaration(r,void 0,void 0,o)],2))),o=mw.createConditionalExpression(mw.createBinaryExpression(r,mw.createToken(37),mw.createIdentifier("undefined")),mw.createToken(58),e.element.initializer,mw.createToken(59),o)}const a=Nv(r,32)?[mw.createToken(95)]:void 0;s.push(mw.createVariableStatement(a,mw.createVariableDeclarationList([mw.createVariableDeclaration(n,void 0,i,o)],2)))}}return r.declarationList.declarations.length>1&&s.push(mw.updateVariableStatement(r,r.modifiers,mw.updateVariableDeclarationList(r.declarationList,r.declarationList.declarations.filter(t=>t!==e.parent)))),i.replaceNodeWithNodes(o,r,s),[_a.Extract_binding_expressions_to_variable]}(e);default:throw new Error(`Cannot find a fix for the given node ${e.kind}`)}}function y(e,t,n){for(let r=0;r=0;--e){const i=n[e].expression;0===i.kind?r=mw.createPropertyAccessChain(r,void 0,mw.createIdentifier(i.text)):1===i.kind?r=mw.createElementAccessExpression(r,t.get(i.computed)):2===i.kind&&(r=mw.createElementAccessExpression(r,i.arrayIndex))}return r}function x(e,n){if(1===t)return C(e);let i;if(eh(e)){const t=s.getSignatureFromDeclaration(e);if(t){const n=s.getTypePredicateOfSignature(t);if(n)return n.type?{typeNode:N(n,uc(e,_u)??o,c(n.type)),mutatedTarget:!1}:r;i=s.getReturnTypeOfSignature(t)}}else i=s.getTypeAtLocation(e);if(!i)return r;if(2===t){n&&(i=n);const e=s.getWidenedLiteralType(i);if(s.isTypeAssignableTo(e,i))return r;i=e}const a=uc(e,_u)??o;return TD(e)&&s.requiresAddingImplicitUndefined(e,a)&&(i=s.getUnionType([s.getUndefinedType(),i],0)),{typeNode:w(i,a,c(i)),mutatedTarget:!1};function c(t){return(lE(e)||ND(e)&&Nv(e,264))&&8192&t.flags?1048576:0}}function k(e){return mw.createTypeQueryNode(RC(e))}function S(e,t,n,a,s,c,l,_){const u=[],d=[];let p;const f=uc(e,pu);for(const t of a(e))s(t)?(g(),ab(t.expression)?(u.push(k(t.expression)),d.push(t)):m(t.expression)):(p??(p=[])).push(t);return 0===d.length?r:(g(),i.replaceNode(o,e,l(d)),{typeNode:_(u),mutatedTarget:!0});function m(e){const r=mw.createUniqueName(t+"_Part"+(d.length+1),16),a=n?mw.createAsExpression(e,mw.createTypeReferenceNode("const")):e,s=mw.createVariableStatement(void 0,mw.createVariableDeclarationList([mw.createVariableDeclaration(r,void 0,void 0,a)],2));i.insertNodeBefore(o,f,s),u.push(k(r)),d.push(c(r))}function g(){p&&(m(l(p)),p=void 0)}}function T(e){return W_(e)&&kl(e.type)}function C(e){if(TD(e))return r;if(iP(e))return{typeNode:k(e.name),mutatedTarget:!1};if(ab(e))return{typeNode:k(e),mutatedTarget:!1};if(T(e))return C(e.expression);if(_F(e)){const t=uc(e,lE);return function(e,t="temp"){const n=!!uc(e,T);return n?S(e,t,n,e=>e.elements,PF,mw.createSpreadElement,e=>mw.createArrayLiteralExpression(e,!0),e=>mw.createTupleTypeNode(e.map(mw.createRestTypeNode))):r}(e,t&&aD(t.name)?t.name.text:void 0)}if(uF(e)){const t=uc(e,lE);return function(e,t="temp"){return S(e,t,!!uc(e,T),e=>e.properties,oP,mw.createSpreadAssignment,e=>mw.createObjectLiteralExpression(e,!0),mw.createIntersectionTypeNode)}(e,t&&aD(t.name)?t.name.text:void 0)}if(lE(e)&&e.initializer)return C(e.initializer);if(DF(e)){const{typeNode:t,mutatedTarget:n}=C(e.whenTrue);if(!t)return r;const{typeNode:i,mutatedTarget:o}=C(e.whenFalse);return i?{typeNode:mw.createUnionTypeNode([t,i]),mutatedTarget:n||o}:r}return r}function w(e,t,n=0){let r=!1;const i=zie(s,e,t,nie|n,1,{moduleResolverHost:a,trackSymbol:()=>!0,reportTruncationError(){r=!0}});if(!i)return;const o=Jie(i,l,c);return r?mw.createKeywordTypeNode(133):o}function N(e,t,n=0){let r=!1;const i=qie(s,l,e,t,c,nie|n,1,{moduleResolverHost:a,trackSymbol:()=>!0,reportTruncationError(){r=!0}});return r?mw.createKeywordTypeNode(133):i}function D(e){xw(e,1);const t=d.printNode(4,e,o);return t.length>Vu?t.substring(0,Vu-3)+"...":(xw(e,0),t)}function F(e,t){for(;e&&e.endt.addTypeAnnotation(e.span)),rie(Yre,t,e,1,t=>t.addTypeAnnotation(e.span)),rie(Yre,t,e,2,t=>t.addTypeAnnotation(e.span)),rie(Zre,t,e,0,t=>t.addInlineAssertion(e.span)),rie(Zre,t,e,1,t=>t.addInlineAssertion(e.span)),rie(Zre,t,e,2,t=>t.addInlineAssertion(e.span)),rie("extract-expression",t,e,0,t=>t.extractAsVariable(e.span)),t},getAllCodeActions:e=>j7(iie(e,0,t=>{B7(e,eie,e=>{t.addTypeAnnotation(e)})}).textChanges)});var oie="fixAwaitInSyncFunction",aie=[_a.await_expressions_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules.code,_a.await_using_statements_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules.code,_a.for_await_loops_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules.code,_a.Cannot_find_name_0_Did_you_mean_to_write_this_in_an_async_function.code];function sie(e,t){const n=Kf(HX(e,t));if(!n)return;let r;switch(n.kind){case 175:r=n.name;break;case 263:case 219:r=OX(n,100,e);break;case 220:r=OX(n,n.typeParameters?30:21,e)||ge(n.parameters);break;default:return}return r&&{insertBefore:r,returnType:(i=n,i.type?i.type:lE(i.parent)&&i.parent.type&&BD(i.parent.type)?i.parent.type.type:void 0)};var i}function cie(e,t,{insertBefore:n,returnType:r}){if(r){const n=_m(r);n&&80===n.kind&&"Promise"===n.text||e.replaceNode(t,r,mw.createTypeReferenceNode("Promise",mw.createNodeArray([r])))}e.insertModifierBefore(t,134,n)}A7({errorCodes:aie,getCodeActions(e){const{sourceFile:t,span:n}=e,r=sie(t,n.start);if(!r)return;const i=jue.ChangeTracker.with(e,e=>cie(e,t,r));return[F7(oie,i,_a.Add_async_modifier_to_containing_function,oie,_a.Add_all_missing_async_modifiers)]},fixIds:[oie],getAllCodeActions:function(e){const t=new Set;return R7(e,aie,(n,r)=>{const i=sie(r.file,r.start);i&&bx(t,ZB(i.insertBefore))&&cie(n,e.sourceFile,i)})}});var lie=[_a._0_is_defined_as_an_accessor_in_class_1_but_is_overridden_here_in_2_as_an_instance_property.code,_a._0_is_defined_as_a_property_in_class_1_but_is_overridden_here_in_2_as_an_accessor.code],_ie="fixPropertyOverrideAccessor";function uie(e,t,n,r,i){let o,a;if(r===_a._0_is_defined_as_an_accessor_in_class_1_but_is_overridden_here_in_2_as_an_instance_property.code)o=t,a=t+n;else if(r===_a._0_is_defined_as_a_property_in_class_1_but_is_overridden_here_in_2_as_an_accessor.code){const n=i.program.getTypeChecker(),r=HX(e,t).parent;if(kD(r))return;un.assert(d_(r),"error span of fixPropertyOverrideAccessor should only be on an accessor");const s=r.parent;un.assert(u_(s),"erroneous accessors should only be inside classes");const c=yh(s);if(!c)return;const l=ah(c.expression),_=AF(l)?l.symbol:n.getSymbolAtLocation(l);if(!_)return;const u=n.getDeclaredTypeOfSymbol(_),d=n.getPropertyOfType(u,mc(jp(r.name)));if(!d||!d.valueDeclaration)return;o=d.valueDeclaration.pos,a=d.valueDeclaration.end,e=vd(d.valueDeclaration)}else un.fail("fixPropertyOverrideAccessor codefix got unexpected error code "+r);return roe(e,i.program,o,a,i,_a.Generate_get_and_set_accessors.message)}A7({errorCodes:lie,getCodeActions(e){const t=uie(e.sourceFile,e.span.start,e.span.length,e.errorCode,e);if(t)return[F7(_ie,t,_a.Generate_get_and_set_accessors,_ie,_a.Generate_get_and_set_accessors_for_all_overriding_properties)]},fixIds:[_ie],getAllCodeActions:e=>R7(e,lie,(t,n)=>{const r=uie(n.file,n.start,n.length,n.code,e);if(r)for(const n of r)t.pushRaw(e.sourceFile,n)})});var die="inferFromUsage",pie=[_a.Variable_0_implicitly_has_type_1_in_some_locations_where_its_type_cannot_be_determined.code,_a.Variable_0_implicitly_has_an_1_type.code,_a.Parameter_0_implicitly_has_an_1_type.code,_a.Rest_parameter_0_implicitly_has_an_any_type.code,_a.Property_0_implicitly_has_type_any_because_its_get_accessor_lacks_a_return_type_annotation.code,_a._0_which_lacks_return_type_annotation_implicitly_has_an_1_return_type.code,_a.Property_0_implicitly_has_type_any_because_its_set_accessor_lacks_a_parameter_type_annotation.code,_a.Member_0_implicitly_has_an_1_type.code,_a.Variable_0_implicitly_has_type_1_in_some_locations_but_a_better_type_may_be_inferred_from_usage.code,_a.Variable_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage.code,_a.Parameter_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage.code,_a.Rest_parameter_0_implicitly_has_an_any_type_but_a_better_type_may_be_inferred_from_usage.code,_a.Property_0_implicitly_has_type_any_but_a_better_type_for_its_get_accessor_may_be_inferred_from_usage.code,_a._0_implicitly_has_an_1_return_type_but_a_better_type_may_be_inferred_from_usage.code,_a.Property_0_implicitly_has_type_any_but_a_better_type_for_its_set_accessor_may_be_inferred_from_usage.code,_a.Member_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage.code,_a.this_implicitly_has_type_any_because_it_does_not_have_a_type_annotation.code];function fie(e,t){switch(e){case _a.Parameter_0_implicitly_has_an_1_type.code:case _a.Parameter_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage.code:return ID(Kf(t))?_a.Infer_type_of_0_from_usage:_a.Infer_parameter_types_from_usage;case _a.Rest_parameter_0_implicitly_has_an_any_type.code:case _a.Rest_parameter_0_implicitly_has_an_any_type_but_a_better_type_may_be_inferred_from_usage.code:return _a.Infer_parameter_types_from_usage;case _a.this_implicitly_has_type_any_because_it_does_not_have_a_type_annotation.code:return _a.Infer_this_type_of_0_from_usage;default:return _a.Infer_type_of_0_from_usage}}function mie(e,t,n,r,i,o,a,s,c){if(!Ql(n.kind)&&80!==n.kind&&26!==n.kind&&110!==n.kind)return;const{parent:l}=n,_=lee(t,i,c,s);switch(r=function(e){switch(e){case _a.Variable_0_implicitly_has_type_1_in_some_locations_but_a_better_type_may_be_inferred_from_usage.code:return _a.Variable_0_implicitly_has_type_1_in_some_locations_where_its_type_cannot_be_determined.code;case _a.Variable_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage.code:return _a.Variable_0_implicitly_has_an_1_type.code;case _a.Parameter_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage.code:return _a.Parameter_0_implicitly_has_an_1_type.code;case _a.Rest_parameter_0_implicitly_has_an_any_type_but_a_better_type_may_be_inferred_from_usage.code:return _a.Rest_parameter_0_implicitly_has_an_any_type.code;case _a.Property_0_implicitly_has_type_any_but_a_better_type_for_its_get_accessor_may_be_inferred_from_usage.code:return _a.Property_0_implicitly_has_type_any_because_its_get_accessor_lacks_a_return_type_annotation.code;case _a._0_implicitly_has_an_1_return_type_but_a_better_type_may_be_inferred_from_usage.code:return _a._0_which_lacks_return_type_annotation_implicitly_has_an_1_return_type.code;case _a.Property_0_implicitly_has_type_any_but_a_better_type_for_its_set_accessor_may_be_inferred_from_usage.code:return _a.Property_0_implicitly_has_type_any_because_its_set_accessor_lacks_a_parameter_type_annotation.code;case _a.Member_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage.code:return _a.Member_0_implicitly_has_an_1_type.code}return e}(r)){case _a.Member_0_implicitly_has_an_1_type.code:case _a.Variable_0_implicitly_has_type_1_in_some_locations_where_its_type_cannot_be_determined.code:if(lE(l)&&a(l)||ND(l)||wD(l))return gie(e,_,t,l,i,s,o),_.writeFixes(e),l;if(dF(l)){const n=pZ(xie(l.name,i,o),l,i,s);if(n){const r=mw.createJSDocTypeTag(void 0,mw.createJSDocTypeExpression(n),void 0);e.addJSDocTags(t,nt(l.parent.parent,HF),[r])}return _.writeFixes(e),l}return;case _a.Variable_0_implicitly_has_an_1_type.code:{const t=i.getTypeChecker().getSymbolAtLocation(n);return t&&t.valueDeclaration&&lE(t.valueDeclaration)&&a(t.valueDeclaration)?(gie(e,_,vd(t.valueDeclaration),t.valueDeclaration,i,s,o),_.writeFixes(e),t.valueDeclaration):void 0}}const u=Kf(n);if(void 0===u)return;let d;switch(r){case _a.Parameter_0_implicitly_has_an_1_type.code:if(ID(u)){hie(e,_,t,u,i,s,o),d=u;break}case _a.Rest_parameter_0_implicitly_has_an_any_type.code:if(a(u)){const n=nt(l,TD);!function(e,t,n,r,i,o,a,s){if(!aD(r.name))return;const c=function(e,t,n,r){const i=kie(e,t,n,r);return i&&Sie(n,i,r).parameters(e)||e.parameters.map(e=>({declaration:e,type:aD(e.name)?xie(e.name,n,r):n.getTypeChecker().getAnyType()}))}(i,n,o,s);if(un.assert(i.parameters.length===c.length,"Parameter count and inference count should match"),Em(i))vie(e,n,c,o,a);else{const r=bF(i)&&!OX(i,21,n);r&&e.insertNodeBefore(n,ge(i.parameters),mw.createToken(21));for(const{declaration:r,type:i}of c)!r||r.type||r.initializer||yie(e,t,n,r,i,o,a);r&&e.insertNodeAfter(n,ve(i.parameters),mw.createToken(22))}}(e,_,t,n,u,i,s,o),d=n}break;case _a.Property_0_implicitly_has_type_any_because_its_get_accessor_lacks_a_return_type_annotation.code:case _a._0_which_lacks_return_type_annotation_implicitly_has_an_1_return_type.code:AD(u)&&aD(u.name)&&(yie(e,_,t,u,xie(u.name,i,o),i,s),d=u);break;case _a.Property_0_implicitly_has_type_any_because_its_set_accessor_lacks_a_parameter_type_annotation.code:ID(u)&&(hie(e,_,t,u,i,s,o),d=u);break;case _a.this_implicitly_has_type_any_because_it_does_not_have_a_type_annotation.code:jue.isThisTypeAnnotatable(u)&&a(u)&&(function(e,t,n,r,i,o){const a=kie(n,t,r,o);if(!a||!a.length)return;const s=pZ(Sie(r,a,o).thisParameter(),n,r,i);s&&(Em(n)?function(e,t,n,r){e.addJSDocTags(t,n,[mw.createJSDocThisTag(void 0,mw.createJSDocTypeExpression(r))])}(e,t,n,s):e.tryInsertThisTypeAnnotation(t,n,s))}(e,t,u,i,s,o),d=u);break;default:return un.fail(String(r))}return _.writeFixes(e),d}function gie(e,t,n,r,i,o,a){aD(r.name)&&yie(e,t,n,r,xie(r.name,i,a),i,o)}function hie(e,t,n,r,i,o,a){const s=fe(r.parameters);if(s&&aD(r.name)&&aD(s.name)){let c=xie(r.name,i,a);c===i.getTypeChecker().getAnyType()&&(c=xie(s.name,i,a)),Em(r)?vie(e,n,[{declaration:s,type:c}],i,o):yie(e,t,n,s,c,i,o)}}function yie(e,t,n,r,i,o,a){const s=pZ(i,r,o,a);if(s)if(Em(n)&&172!==r.kind){const t=lE(r)?tt(r.parent.parent,WF):r;if(!t)return;const i=mw.createJSDocTypeExpression(s),o=AD(r)?mw.createJSDocReturnTag(void 0,i,void 0):mw.createJSDocTypeTag(void 0,i,void 0);e.addJSDocTags(n,t,[o])}else(function(e,t,n,r,i,o){const a=Zie(e,o);return!(!a||!r.tryInsertTypeAnnotation(n,t,a.typeNode))&&(d(a.symbols,e=>i.addImportFromExportedSymbol(e,!0)),!0)})(s,r,n,e,t,yk(o.getCompilerOptions()))||e.tryInsertTypeAnnotation(n,r,s)}function vie(e,t,n,r,i){const o=n.length&&n[0].declaration.parent;if(!o)return;const a=B(n,e=>{const t=e.declaration;if(t.initializer||nl(t)||!aD(t.name))return;const n=e.type&&pZ(e.type,t,r,i);return n?(xw(mw.cloneNode(t.name),7168),{name:mw.cloneNode(t.name),param:t,isOptional:!!e.isOptional,typeNode:n}):void 0});if(a.length)if(bF(o)||vF(o)){const n=bF(o)&&!OX(o,21,t);n&&e.insertNodeBefore(t,ge(o.parameters),mw.createToken(21)),d(a,({typeNode:n,param:r})=>{const i=mw.createJSDocTypeTag(void 0,mw.createJSDocTypeExpression(n)),o=mw.createJSDocComment(void 0,[i]);e.insertNodeAt(t,r.getStart(t),o,{suffix:" "})}),n&&e.insertNodeAfter(t,ve(o.parameters),mw.createToken(22))}else{const n=E(a,({name:e,typeNode:t,isOptional:n})=>mw.createJSDocParameterTag(void 0,e,!!n,mw.createJSDocTypeExpression(t),!1,void 0));e.addJSDocTags(t,o,n)}}function bie(e,t,n){return B(gce.getReferenceEntriesForNode(-1,e,t,t.getSourceFiles(),n),e=>e.kind!==gce.EntryKind.Span?tt(e.node,aD):void 0)}function xie(e,t,n){return Sie(t,bie(e,t,n),n).single()}function kie(e,t,n,r){let i;switch(e.kind){case 177:i=OX(e,137,t);break;case 220:case 219:const n=e.parent;i=(lE(n)||ND(n))&&aD(n.name)?n.name:e.name;break;case 263:case 175:case 174:i=e.name}if(i)return bie(i,n,r)}function Sie(e,t,n){const r=e.getTypeChecker(),i={string:()=>r.getStringType(),number:()=>r.getNumberType(),Array:e=>r.createArrayType(e),Promise:e=>r.createPromiseType(e)},o=[r.getStringType(),r.getNumberType(),r.createArrayType(r.getAnyType()),r.createPromiseType(r.getAnyType())];return{single:function(){return f(s(t))},parameters:function(i){if(0===t.length||!i.parameters)return;const o={isNumber:void 0,isString:void 0,isNumberOrString:void 0,candidateTypes:void 0,properties:void 0,calls:void 0,constructs:void 0,numberIndex:void 0,stringIndex:void 0,candidateThisTypes:void 0,inferredTypes:void 0};for(const e of t)n.throwIfCancellationRequested(),c(e,o);const a=[...o.constructs||[],...o.calls||[]];return i.parameters.map((t,o)=>{const c=[],l=Bu(t);let _=!1;for(const e of a)if(e.argumentTypes.length<=o)_=Em(i),c.push(r.getUndefinedType());else if(l)for(let t=o;t{t.has(n)||t.set(n,[]),t.get(n).push(e)});const n=new Map;return t.forEach((e,t)=>{n.set(t,a(e))}),{isNumber:e.some(e=>e.isNumber),isString:e.some(e=>e.isString),isNumberOrString:e.some(e=>e.isNumberOrString),candidateTypes:O(e,e=>e.candidateTypes),properties:n,calls:O(e,e=>e.calls),constructs:O(e,e=>e.constructs),numberIndex:d(e,e=>e.numberIndex),stringIndex:d(e,e=>e.stringIndex),candidateThisTypes:O(e,e=>e.candidateThisTypes),inferredTypes:void 0}}function s(e){const t={isNumber:void 0,isString:void 0,isNumberOrString:void 0,candidateTypes:void 0,properties:void 0,calls:void 0,constructs:void 0,numberIndex:void 0,stringIndex:void 0,candidateThisTypes:void 0,inferredTypes:void 0};for(const r of e)n.throwIfCancellationRequested(),c(r,t);return m(t)}function c(e,t){for(;db(e);)e=e.parent;switch(e.parent.kind){case 245:!function(e,t){v(t,fF(e)?r.getVoidType():r.getAnyType())}(e,t);break;case 226:t.isNumber=!0;break;case 225:!function(e,t){switch(e.operator){case 46:case 47:case 41:case 55:t.isNumber=!0;break;case 40:t.isNumberOrString=!0}}(e.parent,t);break;case 227:!function(e,t,n){switch(t.operatorToken.kind){case 43:case 42:case 44:case 45:case 48:case 49:case 50:case 51:case 52:case 53:case 66:case 68:case 67:case 69:case 70:case 74:case 75:case 79:case 71:case 73:case 72:case 41:case 30:case 33:case 32:case 34:const i=r.getTypeAtLocation(t.left===e?t.right:t.left);1056&i.flags?v(n,i):n.isNumber=!0;break;case 65:case 40:const o=r.getTypeAtLocation(t.left===e?t.right:t.left);1056&o.flags?v(n,o):296&o.flags?n.isNumber=!0:402653316&o.flags?n.isString=!0:1&o.flags||(n.isNumberOrString=!0);break;case 64:case 35:case 37:case 38:case 36:case 77:case 78:case 76:v(n,r.getTypeAtLocation(t.left===e?t.right:t.left));break;case 103:e===t.left&&(n.isString=!0);break;case 57:case 61:e!==t.left||261!==e.parent.parent.kind&&!rb(e.parent.parent,!0)||v(n,r.getTypeAtLocation(t.right))}}(e,e.parent,t);break;case 297:case 298:!function(e,t){v(t,r.getTypeAtLocation(e.parent.parent.expression))}(e.parent,t);break;case 214:case 215:e.parent.expression===e?function(e,t){const n={argumentTypes:[],return_:{isNumber:void 0,isString:void 0,isNumberOrString:void 0,candidateTypes:void 0,properties:void 0,calls:void 0,constructs:void 0,numberIndex:void 0,stringIndex:void 0,candidateThisTypes:void 0,inferredTypes:void 0}};if(e.arguments)for(const t of e.arguments)n.argumentTypes.push(r.getTypeAtLocation(t));c(e,n.return_),214===e.kind?(t.calls||(t.calls=[])).push(n):(t.constructs||(t.constructs=[])).push(n)}(e.parent,t):_(e,t);break;case 212:!function(e,t){const n=fc(e.name.text);t.properties||(t.properties=new Map);const r=t.properties.get(n)||{isNumber:void 0,isString:void 0,isNumberOrString:void 0,candidateTypes:void 0,properties:void 0,calls:void 0,constructs:void 0,numberIndex:void 0,stringIndex:void 0,candidateThisTypes:void 0,inferredTypes:void 0};c(e,r),t.properties.set(n,r)}(e.parent,t);break;case 213:!function(e,t,n){if(t!==e.argumentExpression){const t=r.getTypeAtLocation(e.argumentExpression),i={isNumber:void 0,isString:void 0,isNumberOrString:void 0,candidateTypes:void 0,properties:void 0,calls:void 0,constructs:void 0,numberIndex:void 0,stringIndex:void 0,candidateThisTypes:void 0,inferredTypes:void 0};c(e,i),296&t.flags?n.numberIndex=i:n.stringIndex=i}else n.isNumberOrString=!0}(e.parent,e,t);break;case 304:case 305:!function(e,t){const n=lE(e.parent.parent)?e.parent.parent:e.parent;b(t,r.getTypeAtLocation(n))}(e.parent,t);break;case 173:!function(e,t){b(t,r.getTypeAtLocation(e.parent))}(e.parent,t);break;case 261:{const{name:n,initializer:i}=e.parent;if(e===n){i&&v(t,r.getTypeAtLocation(i));break}}default:return _(e,t)}}function _(e,t){bm(e)&&v(t,r.getContextualType(e))}function p(e){return f(m(e))}function f(e){if(!e.length)return r.getAnyType();const t=r.getUnionType([r.getStringType(),r.getNumberType()]);let n=function(e,t){const n=[];for(const r of e)for(const{high:e,low:i}of t)e(r)&&(un.assert(!i(r),"Priority can't have both low and high"),n.push(i));return e.filter(e=>n.every(t=>!t(e)))}(e,[{high:e=>e===r.getStringType()||e===r.getNumberType(),low:e=>e===t},{high:e=>!(16385&e.flags),low:e=>!!(16385&e.flags)},{high:e=>!(114689&e.flags||16&gx(e)),low:e=>!!(16&gx(e))}]);const i=n.filter(e=>16&gx(e));return i.length&&(n=n.filter(e=>!(16&gx(e))),n.push(function(e){if(1===e.length)return e[0];const t=[],n=[],i=[],o=[];let a=!1,s=!1;const c=$e();for(const l of e){for(const e of r.getPropertiesOfType(l))c.add(e.escapedName,e.valueDeclaration?r.getTypeOfSymbolAtLocation(e,e.valueDeclaration):r.getAnyType());t.push(...r.getSignaturesOfType(l,0)),n.push(...r.getSignaturesOfType(l,1));const e=r.getIndexInfoOfType(l,0);e&&(i.push(e.type),a=a||e.isReadonly);const _=r.getIndexInfoOfType(l,1);_&&(o.push(_.type),s=s||_.isReadonly)}const l=W(c,(t,n)=>{const i=n.lengthr.getBaseTypeOfLiteralType(e)),_=(null==(a=e.calls)?void 0:a.length)?g(e):void 0;return _&&c?s.push(r.getUnionType([_,...c],2)):(_&&s.push(_),u(c)&&s.push(...c)),s.push(...function(e){if(!e.properties||!e.properties.size)return[];const t=o.filter(t=>function(e,t){return!!t.properties&&!rd(t.properties,(t,n)=>{const i=r.getTypeOfPropertyOfType(e,n);return!i||(t.calls?!r.getSignaturesOfType(i,0).length||!r.isTypeAssignableTo(i,(o=t.calls,r.createAnonymousType(void 0,Gu(),[y(o)],l,l))):!r.isTypeAssignableTo(i,p(t)));var o})}(t,e));return 0function(e,t){if(!(4&gx(e)&&t.properties))return e;const n=e.target,o=be(n.typeParameters);if(!o)return e;const a=[];return t.properties.forEach((e,t)=>{const i=r.getTypeOfPropertyOfType(n,t);un.assert(!!i,"generic should have all the properties of its reference."),a.push(...h(i,p(e),o))}),i[e.symbol.escapedName](f(a))}(t,e)):[]}(e)),s}function g(e){const t=new Map;e.properties&&e.properties.forEach((e,n)=>{const i=r.createSymbol(4,n);i.links.type=p(e),t.set(n,i)});const n=e.calls?[y(e.calls)]:[],i=e.constructs?[y(e.constructs)]:[],o=e.stringIndex?[r.createIndexInfo(r.getStringType(),p(e.stringIndex),!1)]:[];return r.createAnonymousType(void 0,t,n,i,o)}function h(e,t,n){if(e===n)return[t];if(3145728&e.flags)return O(e.types,e=>h(e,t,n));if(4&gx(e)&&4&gx(t)){const i=r.getTypeArguments(e),o=r.getTypeArguments(t),a=[];if(i&&o)for(let e=0;ee.argumentTypes.length));for(let i=0;ie.argumentTypes[i]||r.getUndefinedType())),e.some(e=>void 0===e.argumentTypes[i])&&(n.flags|=16777216),t.push(n)}const i=p(a(e.map(e=>e.return_)));return r.createSignature(void 0,void 0,void 0,t,i,void 0,n,0)}function v(e,t){!t||1&t.flags||131072&t.flags||(e.candidateTypes||(e.candidateTypes=[])).push(t)}function b(e,t){!t||1&t.flags||131072&t.flags||(e.candidateThisTypes||(e.candidateThisTypes=[])).push(t)}}A7({errorCodes:pie,getCodeActions(e){const{sourceFile:t,program:n,span:{start:r},errorCode:i,cancellationToken:o,host:a,preferences:s}=e,c=HX(t,r);let l;const _=jue.ChangeTracker.with(e,e=>{l=mie(e,t,c,i,n,o,ot,a,s)}),u=l&&Cc(l);return u&&0!==_.length?[F7(die,_,[fie(i,c),Xd(u)],die,_a.Infer_all_types_from_usage)]:void 0},fixIds:[die],getAllCodeActions(e){const{sourceFile:t,program:n,cancellationToken:r,host:i,preferences:o}=e,a=JQ();return R7(e,pie,(e,s)=>{mie(e,t,HX(s.file,s.start),s.code,n,r,a,i,o)})}});var Tie="fixReturnTypeInAsyncFunction",Cie=[_a.The_return_type_of_an_async_function_or_method_must_be_the_global_Promise_T_type_Did_you_mean_to_write_Promise_0.code];function wie(e,t,n){if(Em(e))return;const r=uc(HX(e,n),o_),i=null==r?void 0:r.type;if(!i)return;const o=t.getTypeFromTypeNode(i),a=t.getAwaitedType(o)||t.getVoidType(),s=t.typeToTypeNode(a,i,void 0);return s?{returnTypeNode:i,returnType:o,promisedTypeNode:s,promisedType:a}:void 0}function Nie(e,t,n,r){e.replaceNode(t,n,mw.createTypeReferenceNode("Promise",[r]))}A7({errorCodes:Cie,fixIds:[Tie],getCodeActions:function(e){const{sourceFile:t,program:n,span:r}=e,i=n.getTypeChecker(),o=wie(t,n.getTypeChecker(),r.start);if(!o)return;const{returnTypeNode:a,returnType:s,promisedTypeNode:c,promisedType:l}=o,_=jue.ChangeTracker.with(e,e=>Nie(e,t,a,c));return[F7(Tie,_,[_a.Replace_0_with_Promise_1,i.typeToString(s),i.typeToString(l)],Tie,_a.Fix_all_incorrect_return_type_of_an_async_functions)]},getAllCodeActions:e=>R7(e,Cie,(t,n)=>{const r=wie(n.file,e.program.getTypeChecker(),n.start);r&&Nie(t,n.file,r.returnTypeNode,r.promisedTypeNode)})});var Die="disableJsDiagnostics",Fie="disableJsDiagnostics",Eie=B(Object.keys(_a),e=>{const t=_a[e];return 1===t.category?t.code:void 0});function Pie(e,t,n,r){const{line:i}=za(t,n);r&&!q(r,i)||e.insertCommentBeforeLine(t,i,n," @ts-ignore")}function Aie(e,t,n,r,i,o,a){const s=e.symbol.members;for(const c of t)s.has(c.escapedName)||Lie(c,e,n,r,i,o,a,void 0)}function Iie(e){return{trackSymbol:()=>!1,moduleResolverHost:GQ(e.program,e.host)}}A7({errorCodes:Eie,getCodeActions:function(e){const{sourceFile:t,program:n,span:r,host:i,formatContext:o}=e;if(!Em(t)||!nT(t,n.getCompilerOptions()))return;const a=t.checkJsDirective?"":RY(i,o.options),s=[D7(Die,[M7(t.fileName,[LQ(t.checkJsDirective?$s(t.checkJsDirective.pos,t.checkJsDirective.end):Ws(0,0),`// @ts-nocheck${a}`)])],_a.Disable_checking_for_this_file)];return jue.isValidLocationToAddComment(t,r.start)&&s.unshift(F7(Die,jue.ChangeTracker.with(e,e=>Pie(e,t,r.start)),_a.Ignore_this_error_message,Fie,_a.Add_ts_ignore_to_all_error_messages)),s},fixIds:[Fie],getAllCodeActions:e=>{const t=new Set;return R7(e,Eie,(e,n)=>{jue.isValidLocationToAddComment(n.file,n.start)&&Pie(e,n.file,n.start,t)})}});var Oie=(e=>(e[e.Method=1]="Method",e[e.Property=2]="Property",e[e.All=3]="All",e))(Oie||{});function Lie(e,t,n,r,i,o,a,s,c=3,_=!1){const d=e.getDeclarations(),p=fe(d),f=r.program.getTypeChecker(),m=yk(r.program.getCompilerOptions()),g=(null==p?void 0:p.kind)??172,h=function(e,t){if(262144&rx(e)){const t=e.links.nameType;if(t&&sC(t))return mw.createIdentifier(mc(cC(t)))}return RC(Cc(t),!1)}(e,p),y=p?Bv(p):0;let v=256&y;v|=1&y?1:4&y?4:0,p&&p_(p)&&(v|=512);const b=function(){let e;return v&&(e=oe(e,mw.createModifiersFromModifierFlags(v))),r.program.getCompilerOptions().noImplicitOverride&&p&&Pv(p)&&(e=ie(e,mw.createToken(164))),e&&mw.createNodeArray(e)}(),x=f.getWidenedType(f.getTypeOfSymbolAtLocation(e,t)),k=!!(16777216&e.flags),S=!!(33554432&t.flags)||_,T=tY(n,i),C=1|(0===T?268435456:0);switch(g){case 172:case 173:let n=f.typeToTypeNode(x,t,C,8,Iie(r));if(o){const e=Zie(n,m);e&&(n=e.typeNode,toe(o,e.symbols))}a(mw.createPropertyDeclaration(b,p?N(h):e.getName(),k&&2&c?mw.createToken(58):void 0,n,void 0));break;case 178:case 179:{un.assertIsDefined(d);let e=f.typeToTypeNode(x,t,C,void 0,Iie(r));const n=pv(d,p),i=n.secondAccessor?[n.firstAccessor,n.secondAccessor]:[n.firstAccessor];if(o){const t=Zie(e,m);t&&(e=t.typeNode,toe(o,t.symbols))}for(const t of i)if(AD(t))a(mw.createGetAccessorDeclaration(b,N(h),l,F(e),D(s,T,S)));else{un.assertNode(t,ID,"The counterpart to a getter should be a setter");const n=ov(t),r=n&&aD(n.name)?gc(n.name):void 0;a(mw.createSetAccessorDeclaration(b,N(h),$ie(1,[r],[F(e)],1,!1),D(s,T,S)))}break}case 174:case 175:un.assertIsDefined(d);const i=x.isUnion()?O(x.types,e=>e.getCallSignatures()):x.getCallSignatures();if(!$(i))break;if(1===d.length){un.assert(1===i.length,"One declaration implies one signature");const e=i[0];w(T,e,b,N(h),D(s,T,S));break}for(const e of i)e.declaration&&33554432&e.declaration.flags||w(T,e,b,N(h));if(!S)if(d.length>i.length){const e=f.getSignatureFromDeclaration(d[d.length-1]);w(T,e,b,N(h),D(s,T))}else un.assert(d.length===i.length,"Declarations and signatures should match count"),a(function(e,t,n,r,i,o,a,s,c){let l=r[0],_=r[0].minArgumentCount,d=!1;for(const e of r)_=Math.min(e.minArgumentCount,_),aJ(e)&&(d=!0),e.parameters.length>=l.parameters.length&&(!aJ(e)||aJ(l))&&(l=e);const p=l.parameters.length-(aJ(l)?1:0),f=l.parameters.map(e=>e.name),m=$ie(p,f,void 0,_,!1);if(d){const e=mw.createParameterDeclaration(void 0,mw.createToken(26),f[p]||"rest",p>=_?mw.createToken(58):void 0,mw.createArrayTypeNode(mw.createKeywordTypeNode(159)),void 0);m.push(e)}return function(e,t,n,r,i,o,a,s){return mw.createMethodDeclaration(e,void 0,t,n?mw.createToken(58):void 0,void 0,i,o,s||Hie(a))}(a,i,o,0,m,function(e,t,n,r){if(u(e)){const i=t.getUnionType(E(e,t.getReturnTypeOfSignature));return t.typeToTypeNode(i,r,1,8,Iie(n))}}(r,e,t,n),s,c)}(f,r,t,i,N(h),k&&!!(1&c),b,T,s))}function w(e,n,i,s,l){const _=jie(175,r,e,n,l,s,i,k&&!!(1&c),t,o);_&&a(_)}function N(e){return aD(e)&&"constructor"===e.escapedText?mw.createComputedPropertyName(mw.createStringLiteral(gc(e),0===T)):RC(e,!1)}function D(e,t,n){return n?void 0:RC(e,!1)||Hie(t)}function F(e){return RC(e,!1)}}function jie(e,t,n,r,i,o,a,s,c,l){const _=t.program,u=_.getTypeChecker(),d=yk(_.getCompilerOptions()),p=Em(c),f=524545|(0===n?268435456:0),m=u.signatureToSignatureDeclaration(r,e,c,f,8,Iie(t));if(!m)return;let g=p?void 0:m.typeParameters,h=m.parameters,y=p?void 0:RC(m.type);if(l){if(g){const e=A(g,e=>{let t=e.constraint,n=e.default;if(t){const e=Zie(t,d);e&&(t=e.typeNode,toe(l,e.symbols))}if(n){const e=Zie(n,d);e&&(n=e.typeNode,toe(l,e.symbols))}return mw.updateTypeParameterDeclaration(e,e.modifiers,e.name,t,n)});g!==e&&(g=xI(mw.createNodeArray(e,g.hasTrailingComma),g))}const e=A(h,e=>{let t=p?void 0:e.type;if(t){const e=Zie(t,d);e&&(t=e.typeNode,toe(l,e.symbols))}return mw.updateParameterDeclaration(e,e.modifiers,e.dotDotDotToken,e.name,p?void 0:e.questionToken,t,e.initializer)});if(h!==e&&(h=xI(mw.createNodeArray(e,h.hasTrailingComma),h)),y){const e=Zie(y,d);e&&(y=e.typeNode,toe(l,e.symbols))}}const v=s?mw.createToken(58):void 0,b=m.asteriskToken;return vF(m)?mw.updateFunctionExpression(m,a,m.asteriskToken,tt(o,aD),g,h,y,i??m.body):bF(m)?mw.updateArrowFunction(m,a,g,h,y,m.equalsGreaterThanToken,i??m.body):FD(m)?mw.updateMethodDeclaration(m,a,b,o??mw.createIdentifier(""),v,g,h,y,i):uE(m)?mw.updateFunctionDeclaration(m,a,m.asteriskToken,tt(o,aD),g,h,y,i??m.body):void 0}function Mie(e,t,n,r,i,o,a){const s=tY(t.sourceFile,t.preferences),c=yk(t.program.getCompilerOptions()),l=Iie(t),_=t.program.getTypeChecker(),u=Em(a),{typeArguments:d,arguments:p,parent:f}=r,m=u?void 0:_.getContextualType(r),g=E(p,e=>aD(e)?e.text:dF(e)&&aD(e.name)?e.name.text:void 0),h=u?[]:E(p,e=>_.getTypeAtLocation(e)),{argumentTypeNodes:y,argumentTypeParameters:v}=function(e,t,n,r,i,o,a,s){const c=[],l=new Map;for(let o=0;oe[0])),i=new Map(t);if(n){const i=n.filter(n=>!t.some(t=>{var r;return e.getTypeAtLocation(n)===(null==(r=t[1])?void 0:r.argumentType)})),o=r.size+i.length;for(let e=0;r.size{var t;return mw.createTypeParameterDeclaration(void 0,e,null==(t=i.get(e))?void 0:t.constraint)})}(_,v,d),S=$ie(p.length,g,y,void 0,u),T=u||void 0===m?void 0:_.typeToTypeNode(m,a,void 0,void 0,l);switch(e){case 175:return mw.createMethodDeclaration(b,x,i,void 0,k,S,T,Hie(s));case 174:return mw.createMethodSignature(b,i,void 0,k,S,void 0===T?mw.createKeywordTypeNode(159):T);case 263:return un.assert("string"==typeof i||aD(i),"Unexpected name"),mw.createFunctionDeclaration(b,x,i,k,S,T,Kie(_a.Function_not_implemented.message,s));default:un.fail("Unexpected kind")}}function Rie(e){return 84+e<=90?String.fromCharCode(84+e):`T${e}`}function Bie(e,t,n,r,i,o,a,s){const c=e.typeToTypeNode(n,r,o,a,s);if(c)return Jie(c,t,i)}function Jie(e,t,n){const r=Zie(e,n);return r&&(toe(t,r.symbols),e=r.typeNode),RC(e)}function zie(e,t,n,r,i,o){let a=e.typeToTypeNode(t,n,r,i,o);if(a){if(RD(a)){const n=t;if(n.typeArguments&&a.typeArguments){const t=function(e,t){var n;un.assert(t.typeArguments);const r=t.typeArguments,i=t.target;for(let t=0;te===r[t]))return t}return r.length}(e,n);if(t=r?mw.createToken(58):void 0,i?void 0:(null==n?void 0:n[s])||mw.createKeywordTypeNode(159),void 0);o.push(l)}return o}function Hie(e){return Kie(_a.Method_not_implemented.message,e)}function Kie(e,t){return mw.createBlock([mw.createThrowStatement(mw.createNewExpression(mw.createIdentifier("Error"),void 0,[mw.createStringLiteral(e,0===t)]))],!0)}function Gie(e,t,n){const r=Wf(t);if(!r)return;const i=Yie(r,"compilerOptions");if(void 0===i)return void e.insertNodeAtObjectStart(t,r,Qie("compilerOptions",mw.createObjectLiteralExpression(n.map(([e,t])=>Qie(e,t)),!0)));const o=i.initializer;if(uF(o))for(const[r,i]of n){const n=Yie(o,r);void 0===n?e.insertNodeAtObjectStart(t,o,Qie(r,i)):e.replaceNode(t,n.initializer,i)}}function Xie(e,t,n,r){Gie(e,t,[[n,r]])}function Qie(e,t){return mw.createPropertyAssignment(mw.createStringLiteral(e),t)}function Yie(e,t){return b(e.properties,e=>rP(e)&&!!e.name&&UN(e.name)&&e.name.text===t)}function Zie(e,t){let n;const r=lJ(e,function e(r){if(df(r)&&r.qualifier){const i=sb(r.qualifier);if(!i.symbol)return vJ(r,e,void 0);const o=JZ(i.symbol,t),a=o!==i.text?eoe(r.qualifier,mw.createIdentifier(o)):r.qualifier;n=ie(n,i.symbol);const s=_J(r.typeArguments,e,b_);return mw.createTypeReferenceNode(a,s)}return vJ(r,e,void 0)},b_);if(n&&r)return{typeNode:r,symbols:n}}function eoe(e,t){return 80===e.kind?t:mw.createQualifiedName(eoe(e.left,t),e.right)}function toe(e,t){t.forEach(t=>e.addImportFromExportedSymbol(t,!0))}function noe(e,t){const n=Fs(t);let r=HX(e,t.start);for(;r.ende.replaceNode(t,n,r));return D7(_oe,i,[_a.Replace_import_with_0,i[0].textChanges[0].newText])}function doe(e,t){const n=e.program.getTypeChecker().getTypeAtLocation(t);if(!(n.symbol&&Xu(n.symbol)&&n.symbol.links.originatingImport))return[];const r=[],i=n.symbol.links.originatingImport;if(_f(i)||se(r,function(e,t){const n=vd(t),r=Sg(t),i=e.program.getCompilerOptions(),o=[];return o.push(uoe(e,n,t,QQ(r.name,void 0,t.moduleSpecifier,tY(n,e.preferences)))),1===vk(i)&&o.push(uoe(e,n,t,mw.createImportEqualsDeclaration(void 0,!1,r.name,mw.createExternalModuleReference(t.moduleSpecifier)))),o}(e,i)),V_(t)&&(!Sc(t.parent)||t.parent.name!==t)){const n=e.sourceFile,i=jue.ChangeTracker.with(e,e=>e.replaceNode(n,t,mw.createPropertyAccessExpression(t,"default"),{}));r.push(D7(_oe,i,_a.Use_synthetic_default_member))}return r}A7({errorCodes:[_a.This_expression_is_not_callable.code,_a.This_expression_is_not_constructable.code],getCodeActions:function(e){const t=e.sourceFile,n=_a.This_expression_is_not_callable.code===e.errorCode?214:215,r=uc(HX(t,e.span.start),e=>e.kind===n);if(!r)return[];return doe(e,r.expression)}}),A7({errorCodes:[_a.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1.code,_a.Type_0_does_not_satisfy_the_constraint_1.code,_a.Type_0_is_not_assignable_to_type_1.code,_a.Type_0_is_not_assignable_to_type_1_Two_different_types_with_this_name_exist_but_they_are_unrelated.code,_a.Type_predicate_0_is_not_assignable_to_1.code,_a.Property_0_of_type_1_is_not_assignable_to_2_index_type_3.code,_a._0_index_type_1_is_not_assignable_to_2_index_type_3.code,_a.Property_0_in_type_1_is_not_assignable_to_the_same_property_in_base_type_2.code,_a.Property_0_in_type_1_is_not_assignable_to_type_2.code,_a.Property_0_of_JSX_spread_attribute_is_not_assignable_to_target_property.code,_a.The_this_context_of_type_0_is_not_assignable_to_method_s_this_of_type_1.code],getCodeActions:function(e){const t=uc(HX(e.sourceFile,e.span.start),t=>t.getStart()===e.span.start&&t.getEnd()===e.span.start+e.span.length);return t?doe(e,t):[]}});var poe="strictClassInitialization",foe="addMissingPropertyDefiniteAssignmentAssertions",moe="addMissingPropertyUndefinedType",goe="addMissingPropertyInitializer",hoe=[_a.Property_0_has_no_initializer_and_is_not_definitely_assigned_in_the_constructor.code];function yoe(e,t){const n=HX(e,t);if(aD(n)&&ND(n.parent)){const e=fv(n.parent);if(e)return{type:e,prop:n.parent,isJs:Em(n.parent)}}}function voe(e,t,n){UC(n);const r=mw.updatePropertyDeclaration(n,n.modifiers,n.name,mw.createToken(54),n.type,n.initializer);e.replaceNode(t,n,r)}function boe(e,t,n){const r=mw.createKeywordTypeNode(157),i=KD(n.type)?n.type.types.concat(r):[n.type,r],o=mw.createUnionTypeNode(i);n.isJs?e.addJSDocTags(t,n.prop,[mw.createJSDocTypeTag(void 0,mw.createJSDocTypeExpression(o))]):e.replaceNode(t,n.type,o)}function xoe(e,t,n,r){UC(n);const i=mw.updatePropertyDeclaration(n,n.modifiers,n.name,n.questionToken,n.type,r);e.replaceNode(t,n,i)}function koe(e,t){return Soe(e,e.getTypeFromTypeNode(t.type))}function Soe(e,t){if(512&t.flags)return t===e.getFalseType()||t===e.getFalseType(!0)?mw.createFalse():mw.createTrue();if(t.isStringLiteral())return mw.createStringLiteral(t.value);if(t.isNumberLiteral())return mw.createNumericLiteral(t.value);if(2048&t.flags)return mw.createBigIntLiteral(t.value);if(t.isUnion())return f(t.types,t=>Soe(e,t));if(t.isClass()){const e=mx(t.symbol);if(!e||Nv(e,64))return;const n=iv(e);if(n&&n.parameters.length)return;return mw.createNewExpression(mw.createIdentifier(t.symbol.name),void 0,void 0)}return e.isArrayLikeType(t)?mw.createArrayLiteralExpression():void 0}A7({errorCodes:hoe,getCodeActions:function(e){const t=yoe(e.sourceFile,e.span.start);if(!t)return;const n=[];return ie(n,function(e,t){const n=jue.ChangeTracker.with(e,n=>boe(n,e.sourceFile,t));return F7(poe,n,[_a.Add_undefined_type_to_property_0,t.prop.name.getText()],moe,_a.Add_undefined_type_to_all_uninitialized_properties)}(e,t)),ie(n,function(e,t){if(t.isJs)return;const n=jue.ChangeTracker.with(e,n=>voe(n,e.sourceFile,t.prop));return F7(poe,n,[_a.Add_definite_assignment_assertion_to_property_0,t.prop.getText()],foe,_a.Add_definite_assignment_assertions_to_all_uninitialized_properties)}(e,t)),ie(n,function(e,t){if(t.isJs)return;const n=koe(e.program.getTypeChecker(),t.prop);if(!n)return;const r=jue.ChangeTracker.with(e,r=>xoe(r,e.sourceFile,t.prop,n));return F7(poe,r,[_a.Add_initializer_to_property_0,t.prop.name.getText()],goe,_a.Add_initializers_to_all_uninitialized_properties)}(e,t)),n},fixIds:[foe,moe,goe],getAllCodeActions:e=>R7(e,hoe,(t,n)=>{const r=yoe(n.file,n.start);if(r)switch(e.fixId){case foe:voe(t,n.file,r.prop);break;case moe:boe(t,n.file,r);break;case goe:const i=koe(e.program.getTypeChecker(),r.prop);if(!i)return;xoe(t,n.file,r.prop,i);break;default:un.fail(JSON.stringify(e.fixId))}})});var Toe="requireInTs",Coe=[_a.require_call_may_be_converted_to_an_import.code];function woe(e,t,n){const{allowSyntheticDefaults:r,defaultImportName:i,namedImports:o,statement:a,moduleSpecifier:s}=n;e.replaceNode(t,a,i&&!r?mw.createImportEqualsDeclaration(void 0,!1,i,mw.createExternalModuleReference(s)):mw.createImportDeclaration(void 0,mw.createImportClause(void 0,i,o),s,void 0))}function Noe(e,t,n,r){const{parent:i}=HX(e,n);Lm(i,!0)||un.failBadSyntaxKind(i);const o=nt(i.parent,lE),a=tY(e,r),s=tt(o.name,aD),c=sF(o.name)?function(e){const t=[];for(const n of e.elements){if(!aD(n.name)||n.initializer)return;t.push(mw.createImportSpecifier(!1,tt(n.propertyName,aD),n.name))}if(t.length)return mw.createNamedImports(t)}(o.name):void 0;if(s||c){const e=ge(i.arguments);return{allowSyntheticDefaults:Tk(t.getCompilerOptions()),defaultImportName:s,namedImports:c,statement:nt(o.parent.parent,WF),moduleSpecifier:$N(e)?mw.createStringLiteral(e.text,0===a):e}}}A7({errorCodes:Coe,getCodeActions(e){const t=Noe(e.sourceFile,e.program,e.span.start,e.preferences);if(!t)return;const n=jue.ChangeTracker.with(e,n=>woe(n,e.sourceFile,t));return[F7(Toe,n,_a.Convert_require_to_import,Toe,_a.Convert_all_require_to_import)]},fixIds:[Toe],getAllCodeActions:e=>R7(e,Coe,(t,n)=>{const r=Noe(n.file,e.program,n.start,e.preferences);r&&woe(t,e.sourceFile,r)})});var Doe="useDefaultImport",Foe=[_a.Import_may_be_converted_to_a_default_import.code];function Eoe(e,t){const n=HX(e,t);if(!aD(n))return;const{parent:r}=n;if(bE(r)&&JE(r.moduleReference))return{importNode:r,name:n,moduleSpecifier:r.moduleReference.expression};if(DE(r)&&xE(r.parent.parent)){const e=r.parent.parent;return{importNode:e,name:n,moduleSpecifier:e.moduleSpecifier}}}function Poe(e,t,n,r){e.replaceNode(t,n.importNode,QQ(n.name,void 0,n.moduleSpecifier,tY(t,r)))}A7({errorCodes:Foe,getCodeActions(e){const{sourceFile:t,span:{start:n}}=e,r=Eoe(t,n);if(!r)return;const i=jue.ChangeTracker.with(e,n=>Poe(n,t,r,e.preferences));return[F7(Doe,i,_a.Convert_to_default_import,Doe,_a.Convert_all_to_default_imports)]},fixIds:[Doe],getAllCodeActions:e=>R7(e,Foe,(t,n)=>{const r=Eoe(n.file,n.start);r&&Poe(t,n.file,r,e.preferences)})});var Aoe="useBigintLiteral",Ioe=[_a.Numeric_literals_with_absolute_values_equal_to_2_53_or_greater_are_too_large_to_be_represented_accurately_as_integers.code];function Ooe(e,t,n){const r=tt(HX(t,n.start),zN);if(!r)return;const i=r.getText(t)+"n";e.replaceNode(t,r,mw.createBigIntLiteral(i))}A7({errorCodes:Ioe,getCodeActions:function(e){const t=jue.ChangeTracker.with(e,t=>Ooe(t,e.sourceFile,e.span));if(t.length>0)return[F7(Aoe,t,_a.Convert_to_a_bigint_numeric_literal,Aoe,_a.Convert_all_to_bigint_numeric_literals)]},fixIds:[Aoe],getAllCodeActions:e=>R7(e,Ioe,(e,t)=>Ooe(e,t.file,t))});var Loe="fixAddModuleReferTypeMissingTypeof",joe=[_a.Module_0_does_not_refer_to_a_type_but_is_used_as_a_type_here_Did_you_mean_typeof_import_0.code];function Moe(e,t){const n=HX(e,t);return un.assert(102===n.kind,"This token should be an ImportKeyword"),un.assert(206===n.parent.kind,"Token parent should be an ImportType"),n.parent}function Roe(e,t,n){const r=mw.updateImportTypeNode(n,n.argument,n.attributes,n.qualifier,n.typeArguments,!0);e.replaceNode(t,n,r)}A7({errorCodes:joe,getCodeActions:function(e){const{sourceFile:t,span:n}=e,r=Moe(t,n.start),i=jue.ChangeTracker.with(e,e=>Roe(e,t,r));return[F7(Loe,i,_a.Add_missing_typeof,Loe,_a.Add_missing_typeof)]},fixIds:[Loe],getAllCodeActions:e=>R7(e,joe,(t,n)=>Roe(t,e.sourceFile,Moe(n.file,n.start)))});var Boe="wrapJsxInFragment",Joe=[_a.JSX_expressions_must_have_one_parent_element.code];function zoe(e,t){let n=HX(e,t).parent.parent;if((NF(n)||(n=n.parent,NF(n)))&&Nd(n.operatorToken))return n}function qoe(e,t,n){const r=function(e){const t=[];let n=e;for(;;){if(NF(n)&&Nd(n.operatorToken)&&28===n.operatorToken.kind){if(t.push(n.left),hu(n.right))return t.push(n.right),t;if(NF(n.right)){n=n.right;continue}return}return}}(n);r&&e.replaceNode(t,n,mw.createJsxFragment(mw.createJsxOpeningFragment(),r,mw.createJsxJsxClosingFragment()))}A7({errorCodes:Joe,getCodeActions:function(e){const{sourceFile:t,span:n}=e,r=zoe(t,n.start);if(!r)return;const i=jue.ChangeTracker.with(e,e=>qoe(e,t,r));return[F7(Boe,i,_a.Wrap_in_JSX_fragment,Boe,_a.Wrap_all_unparented_JSX_in_JSX_fragment)]},fixIds:[Boe],getAllCodeActions:e=>R7(e,Joe,(t,n)=>{const r=zoe(e.sourceFile,n.start);r&&qoe(t,e.sourceFile,r)})});var Uoe="wrapDecoratorInParentheses",Voe=[_a.Expression_must_be_enclosed_in_parentheses_to_be_used_as_a_decorator.code];function Woe(e,t,n){const r=uc(HX(t,n),CD);un.assert(!!r,"Expected position to be owned by a decorator.");const i=mw.createParenthesizedExpression(r.expression);e.replaceNode(t,r.expression,i)}A7({errorCodes:Voe,getCodeActions:function(e){const t=jue.ChangeTracker.with(e,t=>Woe(t,e.sourceFile,e.span.start));return[F7(Uoe,t,_a.Wrap_in_parentheses,Uoe,_a.Wrap_all_invalid_decorator_expressions_in_parentheses)]},fixIds:[Uoe],getAllCodeActions:e=>R7(e,Voe,(e,t)=>Woe(e,t.file,t.start))});var $oe="fixConvertToMappedObjectType",Hoe=[_a.An_index_signature_parameter_type_cannot_be_a_literal_type_or_generic_type_Consider_using_a_mapped_object_type_instead.code];function Koe(e,t){const n=tt(HX(e,t).parent.parent,jD);if(!n)return;const r=pE(n.parent)?n.parent:tt(n.parent.parent,fE);return r?{indexSignature:n,container:r}:void 0}function Goe(e,t,{indexSignature:n,container:r}){const i=(pE(r)?r.members:r.type.members).filter(e=>!jD(e)),o=ge(n.parameters),a=mw.createTypeParameterDeclaration(void 0,nt(o.name,aD),o.type),s=mw.createMappedTypeNode(Ov(n)?mw.createModifier(148):void 0,a,void 0,n.questionToken,n.type,void 0),c=mw.createIntersectionTypeNode([...xh(r),s,...i.length?[mw.createTypeLiteralNode(i)]:l]);var _,u;e.replaceNode(t,r,(_=r,u=c,mw.createTypeAliasDeclaration(_.modifiers,_.name,_.typeParameters,u)))}A7({errorCodes:Hoe,getCodeActions:function(e){const{sourceFile:t,span:n}=e,r=Koe(t,n.start);if(!r)return;const i=jue.ChangeTracker.with(e,e=>Goe(e,t,r)),o=gc(r.container.name);return[F7($oe,i,[_a.Convert_0_to_mapped_object_type,o],$oe,[_a.Convert_0_to_mapped_object_type,o])]},fixIds:[$oe],getAllCodeActions:e=>R7(e,Hoe,(e,t)=>{const n=Koe(t.file,t.start);n&&Goe(e,t.file,n)})});var Xoe="removeAccidentalCallParentheses";A7({errorCodes:[_a.This_expression_is_not_callable_because_it_is_a_get_accessor_Did_you_mean_to_use_it_without.code],getCodeActions(e){const t=uc(HX(e.sourceFile,e.span.start),fF);if(!t)return;const n=jue.ChangeTracker.with(e,n=>{n.deleteRange(e.sourceFile,{pos:t.expression.end,end:t.end})});return[D7(Xoe,n,_a.Remove_parentheses)]},fixIds:[Xoe]});var Qoe="removeUnnecessaryAwait",Yoe=[_a.await_has_no_effect_on_the_type_of_this_expression.code];function Zoe(e,t,n){const r=tt(HX(t,n.start),e=>135===e.kind),i=r&&tt(r.parent,TF);if(!i)return;let o=i;if(yF(i.parent)&&aD(Dx(i.expression,!1))){const e=YX(i.parent.pos,t);e&&105!==e.kind&&(o=i.parent)}e.replaceNode(t,o,i.expression)}A7({errorCodes:Yoe,getCodeActions:function(e){const t=jue.ChangeTracker.with(e,t=>Zoe(t,e.sourceFile,e.span));if(t.length>0)return[F7(Qoe,t,_a.Remove_unnecessary_await,Qoe,_a.Remove_all_unnecessary_uses_of_await)]},fixIds:[Qoe],getAllCodeActions:e=>R7(e,Yoe,(e,t)=>Zoe(e,t.file,t))});var eae=[_a.A_type_only_import_can_specify_a_default_import_or_named_bindings_but_not_both.code],tae="splitTypeOnlyImport";function nae(e,t){return uc(HX(e,t.start),xE)}function rae(e,t,n){if(!t)return;const r=un.checkDefined(t.importClause);e.replaceNode(n.sourceFile,t,mw.updateImportDeclaration(t,t.modifiers,mw.updateImportClause(r,r.phaseModifier,r.name,void 0),t.moduleSpecifier,t.attributes)),e.insertNodeAfter(n.sourceFile,t,mw.createImportDeclaration(void 0,mw.updateImportClause(r,r.phaseModifier,void 0,r.namedBindings),t.moduleSpecifier,t.attributes))}A7({errorCodes:eae,fixIds:[tae],getCodeActions:function(e){const t=jue.ChangeTracker.with(e,t=>rae(t,nae(e.sourceFile,e.span),e));if(t.length)return[F7(tae,t,_a.Split_into_two_separate_import_declarations,tae,_a.Split_all_invalid_type_only_imports)]},getAllCodeActions:e=>R7(e,eae,(t,n)=>{rae(t,nae(e.sourceFile,n),e)})});var iae="fixConvertConstToLet",oae=[_a.Cannot_assign_to_0_because_it_is_a_constant.code];function aae(e,t,n){var r;const i=n.getTypeChecker().getSymbolAtLocation(HX(e,t));if(void 0===i)return;const o=tt(null==(r=null==i?void 0:i.valueDeclaration)?void 0:r.parent,_E);if(void 0===o)return;const a=OX(o,87,e);return void 0!==a?{symbol:i,token:a}:void 0}function sae(e,t,n){e.replaceNode(t,n,mw.createToken(121))}A7({errorCodes:oae,getCodeActions:function(e){const{sourceFile:t,span:n,program:r}=e,i=aae(t,n.start,r);if(void 0===i)return;const o=jue.ChangeTracker.with(e,e=>sae(e,t,i.token));return[E7(iae,o,_a.Convert_const_to_let,iae,_a.Convert_all_const_to_let)]},getAllCodeActions:e=>{const{program:t}=e,n=new Set;return j7(jue.ChangeTracker.with(e,r=>{B7(e,oae,e=>{const i=aae(e.file,e.start,t);if(i&&bx(n,eJ(i.symbol)))return sae(r,e.file,i.token)})}))},fixIds:[iae]});var cae="fixExpectedComma",lae=[_a._0_expected.code];function _ae(e,t,n){const r=HX(e,t);return 27===r.kind&&r.parent&&(uF(r.parent)||_F(r.parent))?{node:r}:void 0}function uae(e,t,{node:n}){const r=mw.createToken(28);e.replaceNode(t,n,r)}A7({errorCodes:lae,getCodeActions(e){const{sourceFile:t}=e,n=_ae(t,e.span.start,e.errorCode);if(!n)return;const r=jue.ChangeTracker.with(e,e=>uae(e,t,n));return[F7(cae,r,[_a.Change_0_to_1,";",","],cae,[_a.Change_0_to_1,";",","])]},fixIds:[cae],getAllCodeActions:e=>R7(e,lae,(t,n)=>{const r=_ae(n.file,n.start,n.code);r&&uae(t,e.sourceFile,r)})});var dae="addVoidToPromise",pae=[_a.Expected_1_argument_but_got_0_new_Promise_needs_a_JSDoc_hint_to_produce_a_resolve_that_can_be_called_without_arguments.code,_a.Expected_0_arguments_but_got_1_Did_you_forget_to_include_void_in_your_type_argument_to_Promise.code];function fae(e,t,n,r,i){const o=HX(t,n.start);if(!aD(o)||!fF(o.parent)||o.parent.expression!==o||0!==o.parent.arguments.length)return;const a=r.getTypeChecker(),s=a.getSymbolAtLocation(o),c=null==s?void 0:s.valueDeclaration;if(!c||!TD(c)||!mF(c.parent.parent))return;if(null==i?void 0:i.has(c))return;null==i||i.add(c);const l=function(e){var t;if(!Em(e))return e.typeArguments;if(yF(e.parent)){const n=null==(t=tl(e.parent))?void 0:t.typeExpression.type;if(n&&RD(n)&&aD(n.typeName)&&"Promise"===gc(n.typeName))return n.typeArguments}}(c.parent.parent);if($(l)){const n=l[0],r=!KD(n)&&!YD(n)&&YD(mw.createUnionTypeNode([n,mw.createKeywordTypeNode(116)]).types[0]);r&&e.insertText(t,n.pos,"("),e.insertText(t,n.end,r?") | void":" | void")}else{const n=a.getResolvedSignature(o.parent),r=null==n?void 0:n.parameters[0],i=r&&a.getTypeOfSymbolAtLocation(r,c.parent.parent);Em(c)?(!i||3&i.flags)&&(e.insertText(t,c.parent.parent.end,")"),e.insertText(t,Qa(t.text,c.parent.parent.pos),"/** @type {Promise} */(")):(!i||2&i.flags)&&e.insertText(t,c.parent.parent.expression.end,"")}}A7({errorCodes:pae,fixIds:[dae],getCodeActions(e){const t=jue.ChangeTracker.with(e,t=>fae(t,e.sourceFile,e.span,e.program));if(t.length>0)return[F7("addVoidToPromise",t,_a.Add_void_to_Promise_resolved_without_a_value,dae,_a.Add_void_to_all_Promises_resolved_without_a_value)]},getAllCodeActions:e=>R7(e,pae,(t,n)=>fae(t,n.file,n,e.program,new Set))});var mae={};i(mae,{CompletionKind:()=>cse,CompletionSource:()=>xae,SortText:()=>yae,StringCompletions:()=>Jse,SymbolOriginInfoKind:()=>kae,createCompletionDetails:()=>ase,createCompletionDetailsForSymbol:()=>ose,getCompletionEntriesFromSymbols:()=>tse,getCompletionEntryDetails:()=>rse,getCompletionEntrySymbol:()=>sse,getCompletionsAtPosition:()=>Pae,getDefaultCommitCharacters:()=>Eae,getPropertiesForObjectExpression:()=>kse,moduleSpecifierResolutionCacheAttemptLimit:()=>hae,moduleSpecifierResolutionLimit:()=>gae});var gae=100,hae=1e3,yae={LocalDeclarationPriority:"10",LocationPriority:"11",OptionalMember:"12",MemberDeclaredBySpreadAssignment:"13",SuggestedClassMembers:"14",GlobalsOrKeywords:"15",AutoImportSuggestions:"16",ClassMemberSnippets:"17",JavascriptIdentifiers:"18",Deprecated:e=>"z"+e,ObjectLiteralProperty:(e,t)=>`${e}\0${t}\0`,SortBelow:e=>e+"1"},vae=[".",",",";"],bae=[".",";"],xae=(e=>(e.ThisProperty="ThisProperty/",e.ClassMemberSnippet="ClassMemberSnippet/",e.TypeOnlyAlias="TypeOnlyAlias/",e.ObjectLiteralMethodSnippet="ObjectLiteralMethodSnippet/",e.SwitchCases="SwitchCases/",e.ObjectLiteralMemberWithComma="ObjectLiteralMemberWithComma/",e))(xae||{}),kae=(e=>(e[e.ThisType=1]="ThisType",e[e.SymbolMember=2]="SymbolMember",e[e.Export=4]="Export",e[e.Promise=8]="Promise",e[e.Nullable=16]="Nullable",e[e.ResolvedExport=32]="ResolvedExport",e[e.TypeOnlyAlias=64]="TypeOnlyAlias",e[e.ObjectLiteralMethod=128]="ObjectLiteralMethod",e[e.Ignore=256]="Ignore",e[e.ComputedPropertyName=512]="ComputedPropertyName",e[e.SymbolMemberNoExport=2]="SymbolMemberNoExport",e[e.SymbolMemberExport=6]="SymbolMemberExport",e))(kae||{});function Sae(e){return!!(e&&4&e.kind)}function Tae(e){return!(!e||32!==e.kind)}function Cae(e){return(Sae(e)||Tae(e))&&!!e.isFromPackageJson}function wae(e){return!!(e&&64&e.kind)}function Nae(e){return!!(e&&128&e.kind)}function Dae(e){return!!(e&&512&e.kind)}function Fae(e,t,n,r,i,o,a,s,c){var l,_,u,d;const p=Un(),f=a||Ck(r.getCompilerOptions())||(null==(l=o.autoImportSpecifierExcludeRegexes)?void 0:l.length);let m=!1,g=0,h=0,y=0,v=0;const b=c({tryResolve:function(e,t){if(t){const t=n.getModuleSpecifierForBestExportInfo(e,i,s);return t&&g++,t||"failed"}const r=f||o.allowIncompleteCompletions&&hm,resolvedAny:()=>h>0,resolvedBeyondLimit:()=>h>gae}),x=v?` (${(y/v*100).toFixed(1)}% hit rate)`:"";return null==(_=t.log)||_.call(t,`${e}: resolved ${h} module specifiers, plus ${g} ambient and ${y} from cache${x}`),null==(u=t.log)||u.call(t,`${e}: response is ${m?"incomplete":"complete"}`),null==(d=t.log)||d.call(t,`${e}: ${Un()-p}`),b}function Eae(e){return e?[]:vae}function Pae(e,t,n,r,i,o,a,s,c,l,_=!1){var u;const{previousToken:d}=use(i,r);if(a&&!nQ(r,i,d)&&!function(e,t,n,r){switch(t){case".":case"@":return!0;case'"':case"'":case"`":return!!n&&lZ(n)&&r===n.getStart(e)+1;case"#":return!!n&&sD(n)&&!!Xf(n);case"<":return!!n&&30===n.kind&&(!NF(n.parent)||Nse(n.parent));case"/":return!!n&&(ju(n)?!!bg(n):31===n.kind&&VE(n.parent));case" ":return!!n&&vD(n)&&308===n.parent.kind;default:return un.assertNever(t)}}(r,a,d,i))return;if(" "===a)return o.includeCompletionsForImportStatements&&o.includeCompletionsWithInsertText?{isGlobalCompletion:!0,isMemberCompletion:!1,isNewIdentifierLocation:!0,isIncomplete:!0,entries:[],defaultCommitCharacters:Eae(!0)}:void 0;const p=t.getCompilerOptions(),f=t.getTypeChecker(),m=o.allowIncompleteCompletions?null==(u=e.getIncompleteCompletionsCache)?void 0:u.call(e):void 0;if(m&&3===s&&d&&aD(d)){const n=function(e,t,n,r,i,o,a,s){const c=e.get();if(!c)return;const l=WX(t,s),_=n.text.toLowerCase(),u=p0(t,i,r,o,a),d=Fae("continuePreviousIncompleteResponse",i,T7.createImportSpecifierResolver(t,r,i,o),r,n.getStart(),o,!1,bT(n),e=>{const n=B(c.entries,n=>{var o;if(!n.hasAction||!n.source||!n.data||Iae(n.data))return n;if(!Mse(n.name,_))return;const{origin:a}=un.checkDefined(dse(n.name,n.data,r,i)),s=u.get(t.path,n.data.exportMapKey),c=s&&e.tryResolve(s,!Cs(Fy(a.moduleSymbol.name)));if("skipped"===c)return n;if(!c||"failed"===c)return void(null==(o=i.log)||o.call(i,`Unexpected failure resolving auto import for '${n.name}' from '${n.source}'`));const l={...a,kind:32,moduleSpecifier:c.moduleSpecifier};return n.data=Xae(l),n.source=ese(l),n.sourceDisplay=[PY(l.moduleSpecifier)],n});return e.skippedAny()||(c.isIncomplete=void 0),n});return c.entries=d,c.flags=4|(c.flags||0),c.optionalReplacementSpan=Bae(l),c}(m,r,d,t,e,o,c,i);if(n)return n}else null==m||m.clear();const g=Jse.getStringLiteralCompletions(r,i,d,p,e,t,n,o,_);if(g)return g;if(d&&Cl(d.parent)&&(83===d.kind||88===d.kind||80===d.kind))return function(e){const t=function(e){const t=[],n=new Map;let r=e;for(;r&&!r_(r);){if(oE(r)){const e=r.label.text;n.has(e)||(n.set(e,!0),t.push({name:e,kindModifiers:"",kind:"label",sortText:yae.LocationPriority}))}r=r.parent}return t}(e);if(t.length)return{isGlobalCompletion:!1,isMemberCompletion:!1,isNewIdentifierLocation:!1,entries:t,defaultCommitCharacters:Eae(!1)}}(d.parent);const h=_se(t,n,r,p,i,o,void 0,e,l,c);var y,v;if(h)switch(h.kind){case 0:const a=function(e,t,n,r,i,o,a,s,c,l){const{symbols:_,contextToken:u,completionKind:d,isInSnippetScope:p,isNewIdentifierLocation:f,location:m,propertyAccessToConvert:g,keywordFilters:h,symbolToOriginInfoMap:y,recommendedCompletion:v,isJsxInitializer:b,isTypeOnlyLocation:x,isJsxIdentifierExpected:k,isRightOfOpenTag:S,isRightOfDotOrQuestionDot:T,importStatementCompletion:C,insideJsDocTagTypeExpression:w,symbolToSortTextMap:N,hasUnresolvedAutoImports:D,defaultCommitCharacters:F}=o;let E=o.literals;const P=n.getTypeChecker();if(1===lk(e.scriptKind)){const t=function(e,t){const n=uc(e,e=>{switch(e.kind){case 288:return!0;case 31:case 32:case 80:case 212:return!1;default:return"quit"}});if(n){const e=!!OX(n,32,t),r=n.parent.openingElement.tagName.getText(t)+(e?"":">");return{isGlobalCompletion:!1,isMemberCompletion:!0,isNewIdentifierLocation:!1,optionalReplacementSpan:FQ(n.tagName),entries:[{name:r,kind:"class",kindModifiers:void 0,sortText:yae.LocationPriority}],defaultCommitCharacters:Eae(!1)}}}(m,e);if(t)return t}const A=uc(u,ZE);if(A&&(bD(u)||ch(u,A.expression))){const e=ZZ(P,A.parent.clauses);E=E.filter(t=>!e.hasValue(t)),_.forEach((t,n)=>{if(t.valueDeclaration&&aP(t.valueDeclaration)){const r=P.getConstantValue(t.valueDeclaration);void 0!==r&&e.hasValue(r)&&(y[n]={kind:256})}})}const I=[],O=Jae(e,r);if(O&&!f&&(!_||0===_.length)&&0===h)return;const L=tse(_,I,void 0,u,m,c,e,t,n,yk(r),i,d,a,r,s,x,g,k,b,C,v,y,N,k,S,l);if(0!==h)for(const t of gse(h,!w&&Fm(e)))(x&&MQ(Ea(t.name))||!x&&Bse(t.name)||!L.has(t.name))&&(L.add(t.name),Z(I,t,Aae,void 0,!0));for(const e of function(e,t){const n=[];if(e){const r=e.getSourceFile(),i=e.parent,o=r.getLineAndCharacterOfPosition(e.end).line,a=r.getLineAndCharacterOfPosition(t).line;(xE(i)||IE(i)&&i.moduleSpecifier)&&e===i.moduleSpecifier&&o===a&&n.push({name:Fa(132),kind:"keyword",kindModifiers:"",sortText:yae.GlobalsOrKeywords})}return n}(u,c))L.has(e.name)||(L.add(e.name),Z(I,e,Aae,void 0,!0));for(const t of E){const n=$ae(e,a,t);L.add(n.name),Z(I,n,Aae,void 0,!0)}let j;if(O||function(e,t,n,r,i){Q8(e).forEach((e,o)=>{if(e===t)return;const a=mc(o);!n.has(a)&&ms(a,r)&&(n.add(a),Z(i,{name:a,kind:"warning",kindModifiers:"",sortText:yae.JavascriptIdentifiers,isFromUncheckedFile:!0,commitCharacters:[]},Aae))})}(e,m.pos,L,yk(r),I),a.includeCompletionsWithInsertText&&u&&!S&&!T&&(j=uc(u,yE))){const i=zae(j,e,a,r,t,n,s);i&&I.push(i.entry)}return{flags:o.flags,isGlobalCompletion:p,isIncomplete:!(!a.allowIncompleteCompletions||!D)||void 0,isMemberCompletion:Vae(d),isNewIdentifierLocation:f,optionalReplacementSpan:Bae(m),entries:I,defaultCommitCharacters:F??Eae(f)}}(r,e,t,p,n,h,o,l,i,_);return(null==a?void 0:a.isIncomplete)&&(null==m||m.set(a)),a;case 1:return Oae([...wle.getJSDocTagNameCompletions(),...Lae(r,i,f,p,o,!0)]);case 2:return Oae([...wle.getJSDocTagCompletions(),...Lae(r,i,f,p,o,!1)]);case 3:return Oae(wle.getJSDocParameterNameCompletions(h.tag));case 4:return y=h.keywordCompletions,{isGlobalCompletion:!1,isMemberCompletion:!1,isNewIdentifierLocation:v=h.isNewIdentifierLocation,entries:y.slice(),defaultCommitCharacters:Eae(v)};default:return un.assertNever(h)}}function Aae(e,t){var n,r;let i=At(e.sortText,t.sortText);return 0===i&&(i=At(e.name,t.name)),0===i&&(null==(n=e.data)?void 0:n.moduleSpecifier)&&(null==(r=t.data)?void 0:r.moduleSpecifier)&&(i=zS(e.data.moduleSpecifier,t.data.moduleSpecifier)),0===i?-1:i}function Iae(e){return!!(null==e?void 0:e.moduleSpecifier)}function Oae(e){return{isGlobalCompletion:!1,isMemberCompletion:!1,isNewIdentifierLocation:!1,entries:e,defaultCommitCharacters:Eae(!1)}}function Lae(e,t,n,r,i,o){const a=HX(e,t);if(!Cu(a)&&!SP(a))return[];const s=SP(a)?a:a.parent;if(!SP(s))return[];const c=s.parent;if(!r_(c))return[];const l=Fm(e),_=i.includeCompletionsWithSnippetText||void 0,u=w(s.tags,e=>BP(e)&&e.getEnd()<=t);return B(c.parameters,e=>{if(!Ec(e).length){if(aD(e.name)){const t={tabstop:1},a=e.name.text;let s=Mae(a,e.initializer,e.dotDotDotToken,l,!1,!1,n,r,i),c=_?Mae(a,e.initializer,e.dotDotDotToken,l,!1,!0,n,r,i,t):void 0;return o&&(s=s.slice(1),c&&(c=c.slice(1))),{name:s,kind:"parameter",sortText:yae.LocationPriority,insertText:_?c:void 0,isSnippet:_}}if(e.parent.parameters.indexOf(e)===u){const t=`param${u}`,a=jae(t,e.name,e.initializer,e.dotDotDotToken,l,!1,n,r,i),s=_?jae(t,e.name,e.initializer,e.dotDotDotToken,l,!0,n,r,i):void 0;let c=a.join(Pb(r)+"* "),d=null==s?void 0:s.join(Pb(r)+"* ");return o&&(c=c.slice(1),d&&(d=d.slice(1))),{name:c,kind:"parameter",sortText:yae.LocationPriority,insertText:_?d:void 0,isSnippet:_}}}})}function jae(e,t,n,r,i,o,a,s,c){return i?l(e,t,n,r,{tabstop:1}):[Mae(e,n,r,i,!1,o,a,s,c,{tabstop:1})];function l(e,t,n,r,l){if(sF(t)&&!r){const u={tabstop:l.tabstop},d=Mae(e,n,r,i,!0,o,a,s,c,u);let p=[];for(const n of t.elements){const t=_(e,n,u);if(!t){p=void 0;break}p.push(...t)}if(p)return l.tabstop=u.tabstop,[d,...p]}return[Mae(e,n,r,i,!1,o,a,s,c,l)]}function _(e,t,n){if(!t.propertyName&&aD(t.name)||aD(t.name)){const r=t.propertyName?Lp(t.propertyName):t.name.text;if(!r)return;return[Mae(`${e}.${r}`,t.initializer,t.dotDotDotToken,i,!1,o,a,s,c,n)]}if(t.propertyName){const r=Lp(t.propertyName);return r&&l(`${e}.${r}`,t.name,t.initializer,t.dotDotDotToken,n)}}}function Mae(e,t,n,r,i,o,a,s,c,l){if(o&&un.assertIsDefined(l),t&&(e=function(e,t){const n=t.getText().trim();return n.includes("\n")||n.length>80?`[${e}]`:`[${e}=${n}]`}(e,t)),o&&(e=BT(e)),r){let r="*";if(i)un.assert(!n,"Cannot annotate a rest parameter with type 'Object'."),r="Object";else{if(t){const e=a.getTypeAtLocation(t.parent);if(!(16385&e.flags)){const n=t.getSourceFile(),i=0===tY(n,c)?268435456:0,l=a.typeToTypeNode(e,uc(t,r_),i);if(l){const e=o?Gae({removeComments:!0,module:s.module,moduleResolution:s.moduleResolution,target:s.target}):kU({removeComments:!0,module:s.module,moduleResolution:s.moduleResolution,target:s.target});xw(l,1),r=e.printNode(4,l,n)}}}o&&"*"===r&&(r=`\${${l.tabstop++}:${r}}`)}return`@param {${!i&&n?"...":""}${r}} ${e} ${o?`\${${l.tabstop++}}`:""}`}return`@param ${e} ${o?`\${${l.tabstop++}}`:""}`}function Rae(e,t,n){return{kind:4,keywordCompletions:gse(e,t),isNewIdentifierLocation:n}}function Bae(e){return 80===(null==e?void 0:e.kind)?FQ(e):void 0}function Jae(e,t){return!Fm(e)||!!nT(e,t)}function zae(e,t,n,r,i,o,a){const s=e.clauses,c=o.getTypeChecker(),l=c.getTypeAtLocation(e.parent.expression);if(l&&l.isUnion()&&v(l.types,e=>e.isLiteral())){const _=ZZ(c,s),u=yk(r),d=tY(t,n),p=T7.createImportAdder(t,o,n,i),f=[];for(const t of l.types)if(1024&t.flags){un.assert(t.symbol,"An enum member type should have a symbol"),un.assert(t.symbol.parent,"An enum member type should have a parent symbol (the enum symbol)");const n=t.symbol.valueDeclaration&&c.getConstantValue(t.symbol.valueDeclaration);if(void 0!==n){if(_.hasValue(n))continue;_.addValue(n)}const r=T7.typeToAutoImportableTypeNode(c,p,t,e,u);if(!r)return;const i=qae(r,u,d);if(!i)return;f.push(i)}else if(!_.hasValue(t.value))switch(typeof t.value){case"object":f.push(t.value.negative?mw.createPrefixUnaryExpression(41,mw.createBigIntLiteral({negative:!1,base10Value:t.value.base10Value})):mw.createBigIntLiteral(t.value));break;case"number":f.push(t.value<0?mw.createPrefixUnaryExpression(41,mw.createNumericLiteral(-t.value)):mw.createNumericLiteral(t.value));break;case"string":f.push(mw.createStringLiteral(t.value,0===d))}if(0===f.length)return;const m=E(f,e=>mw.createCaseClause(e,[])),g=RY(i,null==a?void 0:a.options),h=Gae({removeComments:!0,module:r.module,moduleResolution:r.moduleResolution,target:r.target,newLine:KZ(g)}),y=a?e=>h.printAndFormatNode(4,e,t,a):e=>h.printNode(4,e,t),v=E(m,(e,t)=>n.includeCompletionsWithSnippetText?`${y(e)}$${t+1}`:`${y(e)}`).join(g);return{entry:{name:`${h.printNode(4,m[0],t)} ...`,kind:"",sortText:yae.GlobalsOrKeywords,insertText:v,hasAction:p.hasFixes()||void 0,source:"SwitchCases/",isSnippet:!!n.includeCompletionsWithSnippetText||void 0},importAdder:p}}}function qae(e,t,n){switch(e.kind){case 184:return Uae(e.typeName,t,n);case 200:const r=qae(e.objectType,t,n),i=qae(e.indexType,t,n);return r&&i&&mw.createElementAccessExpression(r,i);case 202:const o=e.literal;switch(o.kind){case 11:return mw.createStringLiteral(o.text,0===n);case 9:return mw.createNumericLiteral(o.text,o.numericLiteralFlags)}return;case 197:const a=qae(e.type,t,n);return a&&(aD(a)?a:mw.createParenthesizedExpression(a));case 187:return Uae(e.exprName,t,n);case 206:un.fail("We should not get an import type after calling 'codefix.typeToAutoImportableTypeNode'.")}}function Uae(e,t,n){if(aD(e))return e;const r=mc(e.right.escapedText);return HT(r,t)?mw.createPropertyAccessExpression(Uae(e.left,t,n),r):mw.createElementAccessExpression(Uae(e.left,t,n),mw.createStringLiteral(r,0===n))}function Vae(e){switch(e){case 0:case 3:case 2:return!0;default:return!1}}function Wae(e,t,n){return"object"==typeof n?gT(n)+"n":Ze(n)?sZ(e,t,n):JSON.stringify(n)}function $ae(e,t,n){return{name:Wae(e,t,n),kind:"string",kindModifiers:"",sortText:yae.LocationPriority,commitCharacters:[]}}function Hae(e,t,n,r,i,o,a,s,c,l,_,u,d,p,f,m,g,h,y,x,k,S,T,C){var w,N;let D,F,E,P,A,I,O,L=DQ(n,o),j=ese(u);const M=c.getTypeChecker(),R=u&&function(e){return!!(16&e.kind)}(u),B=u&&function(e){return!!(2&e.kind)}(u)||_;if(u&&function(e){return!!(1&e.kind)}(u))D=_?`this${R?"?.":""}[${Yae(a,y,l)}]`:`this${R?"?.":"."}${l}`;else if((B||R)&&p){D=B?_?`[${Yae(a,y,l)}]`:`[${l}]`:l,(R||p.questionDotToken)&&(D=`?.${D}`);const e=OX(p,25,a)||OX(p,29,a);if(!e)return;const t=Gt(l,p.name.text)?p.name.end:e.end;L=$s(e.getStart(a),t)}if(f&&(void 0===D&&(D=l),D=`{${D}}`,"boolean"!=typeof f&&(L=FQ(f,a))),u&&function(e){return!!(8&e.kind)}(u)&&p){void 0===D&&(D=l);const e=YX(p.pos,a);let t="";e&&vZ(e.end,e.parent,a)&&(t=";"),t+=`(await ${p.expression.getText()})`,D=_?`${t}${D}`:`${t}${R?"?.":"."}${D}`,L=$s((tt(p.parent,TF)?p.parent:p.expression).getStart(a),p.end)}if(Tae(u)&&(A=[PY(u.moduleSpecifier)],m&&(({insertText:D,replacementSpan:L}=function(e,t,n,r,i,o,a){const s=t.replacementSpan,c=BT(sZ(i,a,n.moduleSpecifier)),l=n.isDefaultExport?1:"export="===n.exportName?2:0,_=a.includeCompletionsWithSnippetText?"$1":"",u=T7.getImportKind(i,l,o,!0),d=t.couldBeTypeOnlyImportSpecifier,p=t.isTopLevelTypeOnly?` ${Fa(156)} `:" ",f=d?`${Fa(156)} `:"",m=r?";":"";switch(u){case 3:return{replacementSpan:s,insertText:`import${p}${BT(e)}${_} = require(${c})${m}`};case 1:return{replacementSpan:s,insertText:`import${p}${BT(e)}${_} from ${c}${m}`};case 2:return{replacementSpan:s,insertText:`import${p}* as ${BT(e)} from ${c}${m}`};case 0:return{replacementSpan:s,insertText:`import${p}{ ${f}${BT(e)}${_} } from ${c}${m}`}}}(l,m,u,g,a,c,y)),P=!!y.includeCompletionsWithSnippetText||void 0)),64===(null==u?void 0:u.kind)&&(I=!0),0===x&&r&&28!==(null==(w=YX(r.pos,a,r))?void 0:w.kind)&&(FD(r.parent.parent)||AD(r.parent.parent)||ID(r.parent.parent)||oP(r.parent)||(null==(N=uc(r.parent,rP))?void 0:N.getLastToken(a))===r||iP(r.parent)&&za(a,r.getEnd()).line!==za(a,o).line)&&(j="ObjectLiteralMemberWithComma/",I=!0),y.includeCompletionsWithClassMemberSnippets&&y.includeCompletionsWithInsertText&&3===x&&function(e,t,n){if(Em(t))return!1;return!!(106500&e.flags)&&(u_(t)||t.parent&&t.parent.parent&&__(t.parent)&&t===t.parent.name&&t.parent.getLastToken(n)===t.parent.name&&u_(t.parent.parent)||t.parent&&QP(t)&&u_(t.parent))}(e,i,a)){let t;const n=Kae(s,c,h,y,l,e,i,o,r,k);if(!n)return;({insertText:D,filterText:F,isSnippet:P,importAdder:t}=n),((null==t?void 0:t.hasFixes())||n.eraseRange)&&(I=!0,j="ClassMemberSnippet/")}if(u&&Nae(u)&&(({insertText:D,isSnippet:P,labelDetails:O}=u),y.useLabelDetailsInCompletionEntries||(l+=O.detail,O=void 0),j="ObjectLiteralMethodSnippet/",t=yae.SortBelow(t)),S&&!T&&y.includeCompletionsWithSnippetText&&y.jsxAttributeCompletionStyle&&"none"!==y.jsxAttributeCompletionStyle&&(!KE(i.parent)||!i.parent.initializer)){let t="braces"===y.jsxAttributeCompletionStyle;const n=M.getTypeOfSymbolAtLocation(e,i);"auto"!==y.jsxAttributeCompletionStyle||528&n.flags||1048576&n.flags&&b(n.types,e=>!!(528&e.flags))||(402653316&n.flags||1048576&n.flags&&v(n.types,e=>!!(402686084&e.flags||bQ(e)))?(D=`${BT(l)}=${sZ(a,y,"$1")}`,P=!0):t=!0),t&&(D=`${BT(l)}={$1}`,P=!0)}if(void 0!==D&&!y.includeCompletionsWithInsertText)return;(Sae(u)||Tae(u))&&(E=Xae(u),I=!m);const J=uc(i,Cx);if(J){const e=yk(s.getCompilationSettings());if(ms(l,e)){if(276===J.kind){const e=Ea(l);e&&(135===e||Fh(e))&&(D=`${l} as ${l}_`)}}else D=Yae(a,y,l),276===J.kind&&(qG.setText(a.text),qG.resetTokenState(o),130===qG.scan()&&80===qG.scan()||(D+=" as "+function(e,t){let n,r=!1,i="";for(let o=0;o=65536?2:1)n=e.codePointAt(o),void 0!==n&&(0===o?ps(n,t):fs(n,t))?(r&&(i+="_"),i+=String.fromCodePoint(n),r=!1):r=!0;return r&&(i+="_"),i||"_"}(l,e)))}const z=Nue.getSymbolKind(M,e,i),q="warning"===z||"string"===z?[]:void 0;return{name:l,kind:z,kindModifiers:Nue.getSymbolModifiers(M,e),sortText:t,source:j,hasAction:!!I||void 0,isRecommended:Zae(e,d,M)||void 0,insertText:D,filterText:F,replacementSpan:L,sourceDisplay:A,labelDetails:O,isSnippet:P,isPackageJsonImport:Cae(u)||void 0,isImportStatementCompletion:!!m||void 0,data:E,commitCharacters:q,...C?{symbol:e}:void 0}}function Kae(e,t,n,r,i,o,a,s,c,l){const _=uc(a,u_);if(!_)return;let u,d=i;const p=i,f=t.getTypeChecker(),m=a.getSourceFile(),g=Gae({removeComments:!0,module:n.module,moduleResolution:n.moduleResolution,target:n.target,omitTrailingSemicolon:!1,newLine:KZ(RY(e,null==l?void 0:l.options))}),h=T7.createImportAdder(m,t,r,e);let y;if(r.includeCompletionsWithSnippetText){u=!0;const e=mw.createEmptyStatement();y=mw.createBlock([e],!0),Kw(e,{kind:0,order:0})}else y=mw.createBlock([],!0);let v=0;const{modifiers:b,range:x,decorators:k}=function(e,t,n){if(!e||za(t,n).line>za(t,e.getEnd()).line)return{modifiers:0};let r,i,o=0;const a={pos:n,end:n};if(ND(e.parent)&&(i=function(e){if(Zl(e))return e.kind;if(aD(e)){const t=hc(e);if(t&&Xl(t))return t}}(e))){e.parent.modifiers&&(o|=98303&$v(e.parent.modifiers),r=e.parent.modifiers.filter(CD)||[],a.pos=Math.min(...e.parent.modifiers.map(e=>e.getStart(t))));const n=Hv(i);o&n||(o|=n,a.pos=Math.min(a.pos,e.getStart(t))),e.parent.name!==e&&(a.end=e.parent.name.getStart(t))}return{modifiers:o,decorators:r,range:a.pos{let t=0;S&&(t|=64),__(e)&&1===f.getMemberOverrideModifierStatus(_,e,o)&&(t|=16),T.length||(v=e.modifierFlagsCache|t),e=mw.replaceModifiers(e,v),T.push(e)},y,T7.PreserveOptionalFlags.Property,!!S),T.length){const e=8192&o.flags;let t=17|v;t|=e?1024:136;const n=b&t;if(b&~t)return;if(4&v&&1&n&&(v&=-5),0===n||1&n||(v&=-2),v|=n,T=T.map(e=>mw.replaceModifiers(e,v)),null==k?void 0:k.length){const e=T[T.length-1];SI(e)&&(T[T.length-1]=mw.replaceDecoratorsAndModifiers(e,k.concat(Dc(e)||[])))}const r=131073;d=l?g.printAndFormatSnippetList(r,mw.createNodeArray(T),m,l):g.printSnippetList(r,mw.createNodeArray(T),m)}return{insertText:d,filterText:p,isSnippet:u,importAdder:h,eraseRange:x}}function Gae(e){let t;const n=jue.createWriter(Pb(e)),r=kU(e,n),i={...n,write:e=>o(e,()=>n.write(e)),nonEscapingWrite:n.write,writeLiteral:e=>o(e,()=>n.writeLiteral(e)),writeStringLiteral:e=>o(e,()=>n.writeStringLiteral(e)),writeSymbol:(e,t)=>o(e,()=>n.writeSymbol(e,t)),writeParameter:e=>o(e,()=>n.writeParameter(e)),writeComment:e=>o(e,()=>n.writeComment(e)),writeProperty:e=>o(e,()=>n.writeProperty(e))};return{printSnippetList:function(e,n,r){const i=a(e,n,r);return t?jue.applyChanges(i,t):i},printAndFormatSnippetList:function(e,n,r,i){const o={text:a(e,n,r),getLineAndCharacterOfPosition(e){return za(this,e)}},s=XZ(i,r),c=O(n,e=>{const t=jue.assignPositionsToNode(e);return ude.formatNodeGivenIndentation(t,o,r.languageVariant,0,0,{...i,options:s})}),l=t?_e(K(c,t),(e,t)=>bt(e.span,t.span)):c;return jue.applyChanges(o.text,l)},printNode:function(e,n,r){const i=s(e,n,r);return t?jue.applyChanges(i,t):i},printAndFormatNode:function(e,n,r,i){const o={text:s(e,n,r),getLineAndCharacterOfPosition(e){return za(this,e)}},a=XZ(i,r),c=jue.assignPositionsToNode(n),l=ude.formatNodeGivenIndentation(c,o,r.languageVariant,0,0,{...i,options:a}),_=t?_e(K(l,t),(e,t)=>bt(e.span,t.span)):l;return jue.applyChanges(o.text,_)}};function o(e,r){const i=BT(e);if(i!==e){const e=n.getTextPos();r();const o=n.getTextPos();t=ie(t||(t=[]),{newText:i,span:{start:e,length:o-e}})}else r()}function a(e,n,o){return t=void 0,i.clear(),r.writeList(e,n,o,i),i.getText()}function s(e,n,o){return t=void 0,i.clear(),r.writeNode(e,n,o,i),i.getText()}}function Xae(e){const t=e.fileName?void 0:Fy(e.moduleSymbol.name),n=!!e.isFromPackageJson||void 0;return Tae(e)?{exportName:e.exportName,exportMapKey:e.exportMapKey,moduleSpecifier:e.moduleSpecifier,ambientModuleName:t,fileName:e.fileName,isPackageJsonImport:n}:{exportName:e.exportName,exportMapKey:e.exportMapKey,fileName:e.fileName,ambientModuleName:e.fileName?void 0:Fy(e.moduleSymbol.name),isPackageJsonImport:!!e.isFromPackageJson||void 0}}function Qae(e,t,n){const r="default"===e.exportName,i=!!e.isPackageJsonImport;return Iae(e)?{kind:32,exportName:e.exportName,exportMapKey:e.exportMapKey,moduleSpecifier:e.moduleSpecifier,symbolName:t,fileName:e.fileName,moduleSymbol:n,isDefaultExport:r,isFromPackageJson:i}:{kind:4,exportName:e.exportName,exportMapKey:e.exportMapKey,symbolName:t,fileName:e.fileName,moduleSymbol:n,isDefaultExport:r,isFromPackageJson:i}}function Yae(e,t,n){return/^\d+$/.test(n)?n:sZ(e,t,n)}function Zae(e,t,n){return e===t||!!(1048576&e.flags)&&n.getExportSymbolOfSymbol(e)===t}function ese(e){return Sae(e)?Fy(e.moduleSymbol.name):Tae(e)?e.moduleSpecifier:1===(null==e?void 0:e.kind)?"ThisProperty/":64===(null==e?void 0:e.kind)?"TypeOnlyAlias/":void 0}function tse(e,t,n,r,i,o,a,s,c,l,_,u,d,p,f,m,g,h,y,v,b,x,k,S,T,C=!1){const w=Un(),N=function(e,t){if(!e)return;let n=uc(e,e=>Bf(e)||Ose(e)||k_(e)?"quit":(TD(e)||SD(e))&&!jD(e.parent));return n||(n=uc(t,e=>Bf(e)||Ose(e)||k_(e)?"quit":lE(e))),n}(r,i),D=bZ(a),F=c.getTypeChecker(),E=new Map;for(let _=0;_e.getSourceFile()===i.getSourceFile()));E.set(O,R),Z(t,M,Aae,void 0,!0)}return _("getCompletionsAtPosition: getCompletionEntriesFromSymbols: "+(Un()-w)),{has:e=>E.has(e),add:e=>E.set(e,!0)};function P(e,t){var n;let o=e.flags;if(i.parent&&AE(i.parent))return!0;if(N&&tt(N,lE)){if(e.valueDeclaration===N)return!1;if(k_(N.name)&&N.name.elements.some(t=>t===e.valueDeclaration))return!1}const s=e.valueDeclaration??(null==(n=e.declarations)?void 0:n[0]);if(N&&s)if(TD(N)&&TD(s)){const e=N.parent.parameters;if(s.pos>=N.pos&&s.pos=N.pos&&s.posWae(n,a,e)===i.name);return void 0!==v?{type:"literal",literal:v}:f(l,(e,t)=>{const n=p[t],r=pse(e,yk(s),n,d,c.isJsxIdentifierExpected);return r&&r.name===i.name&&("ClassMemberSnippet/"===i.source&&106500&e.flags||"ObjectLiteralMethodSnippet/"===i.source&&8196&e.flags||ese(n)===i.source||"ObjectLiteralMemberWithComma/"===i.source)?{type:"symbol",symbol:e,location:u,origin:n,contextToken:m,previousToken:g,isJsxInitializer:h,isTypeOnlyLocation:y}:void 0})||{type:"none"}}function rse(e,t,n,r,i,o,a,s,c){const l=e.getTypeChecker(),_=e.getCompilerOptions(),{name:u,source:d,data:p}=i,{previousToken:f,contextToken:m}=use(r,n);if(nQ(n,r,f))return Jse.getStringLiteralCompletionDetails(u,n,r,f,e,o,c,s);const g=nse(e,t,n,r,i,o,s);switch(g.type){case"request":{const{request:e}=g;switch(e.kind){case 1:return wle.getJSDocTagNameCompletionDetails(u);case 2:return wle.getJSDocTagCompletionDetails(u);case 3:return wle.getJSDocParameterNameCompletionDetails(u);case 4:return $(e.keywordCompletions,e=>e.name===u)?ise(u,"keyword",5):void 0;default:return un.assertNever(e)}}case"symbol":{const{symbol:t,location:i,contextToken:f,origin:m,previousToken:h}=g,{codeActions:y,sourceDisplay:v}=function(e,t,n,r,i,o,a,s,c,l,_,u,d,p,f,m){if((null==p?void 0:p.moduleSpecifier)&&_&&Dse(n||_,c).replacementSpan)return{codeActions:void 0,sourceDisplay:[PY(p.moduleSpecifier)]};if("ClassMemberSnippet/"===f){const{importAdder:r,eraseRange:_}=Kae(a,o,s,d,e,i,t,l,n,u);if((null==r?void 0:r.hasFixes())||_)return{sourceDisplay:void 0,codeActions:[{changes:jue.ChangeTracker.with({host:a,formatContext:u,preferences:d},e=>{r&&r.writeFixes(e),_&&e.deleteRange(c,_)}),description:(null==r?void 0:r.hasFixes())?GZ([_a.Includes_imports_of_types_referenced_by_0,e]):GZ([_a.Update_modifiers_of_0,e])}]}}if(wae(r)){const e=T7.getPromoteTypeOnlyCompletionAction(c,r.declaration.name,o,a,u,d);return un.assertIsDefined(e,"Expected to have a code action for promoting type-only alias"),{codeActions:[e],sourceDisplay:void 0}}if("ObjectLiteralMemberWithComma/"===f&&n){const t=jue.ChangeTracker.with({host:a,formatContext:u,preferences:d},e=>e.insertText(c,n.end,","));if(t)return{sourceDisplay:void 0,codeActions:[{changes:t,description:GZ([_a.Add_missing_comma_for_object_member_completion_0,e])}]}}if(!r||!Sae(r)&&!Tae(r))return{codeActions:void 0,sourceDisplay:void 0};const g=r.isFromPackageJson?a.getPackageJsonAutoImportProvider().getTypeChecker():o.getTypeChecker(),{moduleSymbol:h}=r,y=g.getMergedSymbol(ox(i.exportSymbol||i,g)),v=30===(null==n?void 0:n.kind)&&bu(n.parent),{moduleSpecifier:b,codeAction:x}=T7.getImportCompletionAction(y,h,null==p?void 0:p.exportMapKey,c,e,v,a,o,u,_&&aD(_)?_.getStart(c):l,d,m);return un.assert(!(null==p?void 0:p.moduleSpecifier)||b===p.moduleSpecifier),{sourceDisplay:[PY(b)],codeActions:[x]}}(u,i,f,m,t,e,o,_,n,r,h,a,s,p,d,c);return ose(t,Dae(m)?m.symbolName:t.name,l,n,i,c,y,v)}case"literal":{const{literal:e}=g;return ise(Wae(n,s,e),"string","string"==typeof e?8:7)}case"cases":{const t=zae(m.parent,n,s,e.getCompilerOptions(),o,e,void 0);if(null==t?void 0:t.importAdder.hasFixes()){const{entry:e,importAdder:n}=t,r=jue.ChangeTracker.with({host:o,formatContext:a,preferences:s},n.writeFixes);return{name:e.name,kind:"",kindModifiers:"",displayParts:[],sourceDisplay:void 0,codeActions:[{changes:r,description:GZ([_a.Includes_imports_of_types_referenced_by_0,u])}]}}return{name:u,kind:"",kindModifiers:"",displayParts:[],sourceDisplay:void 0}}case"none":return mse().some(e=>e.name===u)?ise(u,"keyword",5):void 0;default:un.assertNever(g)}}function ise(e,t,n){return ase(e,"",t,[SY(e,n)])}function ose(e,t,n,r,i,o,a,s){const{displayParts:c,documentation:l,symbolKind:_,tags:u}=n.runWithCancellationToken(o,t=>Nue.getSymbolDisplayPartsDocumentationAndSymbolKind(t,e,r,i,i,7));return ase(t,Nue.getSymbolModifiers(n,e),_,c,l,u,a,s)}function ase(e,t,n,r,i,o,a,s){return{name:e,kindModifiers:t,kind:n,displayParts:r,documentation:i,tags:o,codeActions:a,source:s,sourceDisplay:s}}function sse(e,t,n,r,i,o,a){const s=nse(e,t,n,r,i,o,a);return"symbol"===s.type?s.symbol:void 0}var cse=(e=>(e[e.ObjectPropertyDeclaration=0]="ObjectPropertyDeclaration",e[e.Global=1]="Global",e[e.PropertyAccess=2]="PropertyAccess",e[e.MemberLike=3]="MemberLike",e[e.String=4]="String",e[e.None=5]="None",e))(cse||{});function lse(e,t,n){const r=n.getAccessibleSymbolChain(e,t,-1,!1);return r?ge(r):e.parent&&(function(e){var t;return!!(null==(t=e.declarations)?void 0:t.some(e=>308===e.kind))}(e.parent)?e:lse(e.parent,t,n))}function _se(e,t,n,r,i,o,a,s,c,l){const _=e.getTypeChecker(),u=Jae(n,r);let p=Un(),m=HX(n,i);t("getCompletionData: Get current token: "+(Un()-p)),p=Un();const g=dQ(n,i,m);t("getCompletionData: Is inside comment: "+(Un()-p));let h=!1,y=!1,v=!1;if(g){if(pQ(n,i)){if(64===n.text.charCodeAt(i-1))return{kind:1};{const e=xX(i,n);if(!/[^*|\s(/)]/.test(n.text.substring(e,i)))return{kind:2}}}const e=function(e,t){return uc(e,e=>!(!Cu(e)||!SX(e,t))||!!SP(e)&&"quit")}(m,i);if(e){if(e.tagName.pos<=i&&i<=e.tagName.end)return{kind:1};if(XP(e))y=!0;else{const t=function(e){if(function(e){switch(e.kind){case 342:case 349:case 343:case 345:case 347:case 350:case 351:return!0;case 346:return!!e.constraint;default:return!1}}(e)){const t=UP(e)?e.constraint:e.typeExpression;return t&&310===t.kind?t:void 0}if(wP(e)||HP(e))return e.class}(e);if(t&&(m=HX(n,i),m&&(lh(m)||349===m.parent.kind&&m.parent.name===m)||(h=he(t))),!h&&BP(e)&&(Nd(e.name)||e.name.pos<=i&&i<=e.name.end))return{kind:3,tag:e}}}if(!h&&!y)return void t("Returning an empty list because completion was inside a regular comment or plain text part of a JsDoc comment.")}p=Un();const x=!h&&!y&&Fm(n),k=use(i,n),S=k.previousToken;let T=k.contextToken;t("getCompletionData: Get previous token: "+(Un()-p));let C,w,D,F=m,E=!1,P=!1,A=!1,I=!1,L=!1,j=!1,M=WX(n,i),R=0,J=!1,z=0;if(T){const e=Dse(T,n);if(e.keywordCompletion){if(e.isKeywordOnlyCompletion)return{kind:4,keywordCompletions:[(q=e.keywordCompletion,{name:Fa(q),kind:"keyword",kindModifiers:"",sortText:yae.GlobalsOrKeywords})],isNewIdentifierLocation:e.isNewIdentifierLocation};R=function(e){if(156===e)return 8;un.fail("Unknown mapping from SyntaxKind to KeywordCompletionFilters")}(e.keywordCompletion)}if(e.replacementSpan&&o.includeCompletionsForImportStatements&&o.includeCompletionsWithInsertText&&(z|=2,w=e,J=e.isNewIdentifierLocation),!e.replacementSpan&&function(e){const r=Un(),o=function(e){return(WN(e)||Ul(e))&&(TX(e,i)||i===e.end&&(!!e.isUnterminated||WN(e)))}(e)||function(e){const t=e.parent,r=t.kind;switch(e.kind){case 28:return 261===r||262===(o=e).parent.kind&&!lQ(o,n,_)||244===r||267===r||pe(r)||265===r||208===r||266===r||u_(t)&&!!t.typeParameters&&t.typeParameters.end>=e.pos;case 25:case 23:return 208===r;case 59:return 209===r;case 21:return 300===r||pe(r);case 19:return 267===r;case 30:return 264===r||232===r||265===r||266===r||c_(r);case 126:return 173===r&&!u_(t.parent);case 26:return 170===r||!!t.parent&&208===t.parent.kind;case 125:case 123:case 124:return 170===r&&!PD(t.parent);case 130:return 277===r||282===r||275===r;case 139:case 153:return!wse(e);case 80:if((277===r||282===r)&&e===t.name&&"type"===e.text)return!1;if(uc(e.parent,lE)&&function(e,t){return n.getLineEndOfPosition(e.getEnd())S.end))}(e)||function(e){if(9===e.kind){const t=e.getFullText();return"."===t.charAt(t.length-1)}return!1}(e)||function(e){if(12===e.kind)return!0;if(32===e.kind&&e.parent){if(M===e.parent&&(287===M.kind||286===M.kind))return!1;if(287===e.parent.kind)return 287!==M.parent.kind;if(288===e.parent.kind||286===e.parent.kind)return!!e.parent.parent&&285===e.parent.parent.kind}return!1}(e)||qN(e);return t("getCompletionsAtPosition: isCompletionListBlocker: "+(Un()-r)),o}(T))return t("Returning an empty list because completion was requested in an invalid position."),R?Rae(R,x,_e().isNewIdentifierLocation):void 0;let r=T.parent;if(25===T.kind||29===T.kind)switch(E=25===T.kind,P=29===T.kind,r.kind){case 212:if(C=r,F=C.expression,Nd(wx(C))||(fF(F)||r_(F))&&F.end===T.pos&&F.getChildCount(n)&&22!==ve(F.getChildren(n)).kind)return;break;case 167:F=r.left;break;case 268:F=r.name;break;case 206:F=r;break;case 237:F=r.getFirstToken(n),un.assert(102===F.kind||105===F.kind);break;default:return}else if(!w){if(r&&212===r.kind&&(T=r,r=r.parent),m.parent===M)switch(m.kind){case 32:285!==m.parent.kind&&287!==m.parent.kind||(M=m);break;case 31:286===m.parent.kind&&(M=m)}switch(r.kind){case 288:31===T.kind&&(I=!0,M=T);break;case 227:if(!Nse(r))break;case 286:case 285:case 287:j=!0,30===T.kind&&(A=!0,M=T);break;case 295:case 294:(20===S.kind||80===S.kind&&292===S.parent.kind)&&(j=!0);break;case 292:if(r.initializer===S&&S.endKQ(t?s.getPackageJsonAutoImportProvider():e,s));if(E||P)!function(){W=2;const e=df(F),t=e&&!F.isTypeOf||wf(F.parent)||lQ(T,n,_),r=$G(F);if(e_(F)||e||dF(F)){const n=gE(F.parent);n&&(J=!0,D=[]);let i=_.getSymbolAtLocation(F);if(i&&(i=ox(i,_),1920&i.flags)){const a=_.getExportsOfModule(i);un.assertEachIsDefined(a,"getExportsOfModule() should all be defined");const s=t=>_.isValidPropertyAccess(e?F:F.parent,t.name),c=e=>Lse(e,_),l=n?e=>{var t;return!!(1920&e.flags)&&!(null==(t=e.declarations)?void 0:t.every(e=>e.parent===F.parent))}:r?e=>c(e)||s(e):t||h?c:s;for(const e of a)l(e)&&G.push(e);if(!t&&!h&&i.declarations&&i.declarations.some(e=>308!==e.kind&&268!==e.kind&&267!==e.kind)){let e=_.getTypeOfSymbolAtLocation(i,F).getNonOptionalType(),t=!1;if(e.isNullableType()){const n=E&&!P&&!1!==o.includeAutomaticOptionalChainCompletions;(n||P)&&(e=e.getNonNullableType(),n&&(t=!0))}oe(e,!!(65536&F.flags),t)}return}}if(!t||_v(F)){_.tryGetThisTypeAt(F,!1);let e=_.getTypeAtLocation(F).getNonOptionalType();if(t)oe(e.getNonNullableType(),!1,!1);else{let t=!1;if(e.isNullableType()){const n=E&&!P&&!1!==o.includeAutomaticOptionalChainCompletions;(n||P)&&(e=e.getNonNullableType(),n&&(t=!0))}oe(e,!!(65536&F.flags),t)}}}();else if(A)G=_.getJsxIntrinsicTagNamesAt(M),un.assertEachIsDefined(G,"getJsxIntrinsicTagNames() should all be defined"),ce(),W=1,R=0;else if(I){const e=T.parent.parent.openingElement.tagName,t=_.getSymbolAtLocation(e);t&&(G=[t]),W=1,R=0}else if(!ce())return R?Rae(R,x,J):void 0;t("getCompletionData: Semantic work: "+(Un()-U));const ne=S&&function(e,t,n,r){const{parent:i}=e;switch(e.kind){case 80:return aZ(e,r);case 64:switch(i.kind){case 261:return r.getContextualType(i.initializer);case 227:return r.getTypeAtLocation(i.left);case 292:return r.getContextualTypeForJsxAttribute(i);default:return}case 105:return r.getContextualType(i);case 84:const o=tt(i,ZE);return o?uZ(o,r):void 0;case 19:return!QE(i)||zE(i.parent)||WE(i.parent)?void 0:r.getContextualTypeForJsxAttribute(i.parent);default:const a=W_e.getArgumentInfoForCompletions(e,t,n,r);return a?r.getContextualTypeForArgumentAtIndex(a.invocation,a.argumentIndex):cZ(e.kind)&&NF(i)&&cZ(i.operatorToken.kind)?r.getTypeAtLocation(i.left):r.getContextualType(e,4)||r.getContextualType(e)}}(S,i,n,_),re=tt(S,ju)||j?[]:B(ne&&(ne.isUnion()?ne.types:[ne]),e=>!e.isLiteral()||1024&e.flags?void 0:e.value),ie=S&&ne&&function(e,t,n){return f(t&&(t.isUnion()?t.types:[t]),t=>{const r=t&&t.symbol;return r&&424&r.flags&&!fx(r)?lse(r,e,n):void 0})}(S,ne,_);return{kind:0,symbols:G,completionKind:W,isInSnippetScope:v,propertyAccessToConvert:C,isNewIdentifierLocation:J,location:M,keywordFilters:R,literals:re,symbolToOriginInfoMap:X,recommendedCompletion:ie,previousToken:S,contextToken:T,isJsxInitializer:L,insideJsDocTagTypeExpression:h,symbolToSortTextMap:Q,isTypeOnlyLocation:Z,isJsxIdentifierExpected:j,isRightOfOpenTag:A,isRightOfDotOrQuestionDot:E||P,importStatementCompletion:w,hasUnresolvedAutoImports:H,flags:z,defaultCommitCharacters:D};function oe(e,t,n){e.getStringIndexType()&&(J=!0,D=[]),P&&$(e.getCallSignatures())&&(J=!0,D??(D=vae));const r=206===F.kind?F:F.parent;if(u)for(const t of e.getApparentProperties())_.isValidPropertyAccessForCompletions(r,e,t)&&ae(t,!1,n);else G.push(...N(Tse(e,_),t=>_.isValidPropertyAccessForCompletions(r,e,t)));if(t&&o.includeCompletionsWithInsertText){const t=_.getPromisedTypeOfPromise(e);if(t)for(const e of t.getApparentProperties())_.isValidPropertyAccessForCompletions(r,t,e)&&ae(e,!0,n)}}function ae(t,r,a){var c;const l=f(t.declarations,e=>tt(Cc(e),kD));if(l){const r=se(l.expression),a=r&&_.getSymbolAtLocation(r),f=a&&lse(a,T,_),m=f&&eJ(f);if(m&&bx(Y,m)){const t=G.length;G.push(f),Q[eJ(f)]=yae.GlobalsOrKeywords;const r=f.parent;if(r&&Qu(r)&&_.tryGetMemberInModuleExportsAndProperties(f.name,r)===f){const a=Cs(Fy(r.name))?null==(c=bd(r))?void 0:c.fileName:void 0,{moduleSpecifier:l}=(V||(V=T7.createImportSpecifierResolver(n,e,s,o))).getModuleSpecifierForBestExportInfo([{exportKind:0,moduleFileName:a,isFromPackageJson:!1,moduleSymbol:r,symbol:f,targetFlags:ox(f,_).flags}],i,bT(M))||{};if(l){const e={kind:p(6),moduleSymbol:r,isDefaultExport:!1,symbolName:f.name,exportName:f.name,fileName:a,moduleSpecifier:l};X[t]=e}}else X[t]={kind:p(2)}}else if(o.includeCompletionsWithInsertText){if(m&&Y.has(m))return;d(t),u(t),G.push(t)}}else d(t),u(t),G.push(t);function u(e){(function(e){return!!(e.valueDeclaration&&256&Bv(e.valueDeclaration)&&u_(e.valueDeclaration.parent))})(e)&&(Q[eJ(e)]=yae.LocalDeclarationPriority)}function d(e){o.includeCompletionsWithInsertText&&(r&&bx(Y,eJ(e))?X[G.length]={kind:p(8)}:a&&(X[G.length]={kind:16}))}function p(e){return a?16|e:e}}function se(e){return aD(e)?e:dF(e)?se(e.expression):void 0}function ce(){const t=function(){const e=function(e){if(!e)return;const t=e.parent;switch(e.kind){case 19:if(qD(t))return t;break;case 27:case 28:case 80:if(172===t.kind&&qD(t.parent))return t.parent}}(T);if(!e)return 0;const t=(GD(e.parent)?e.parent:void 0)||e,n=Cse(t,_);if(!n)return 0;const r=_.getTypeFromTypeNode(t),i=Tse(n,_),o=Tse(r,_),a=new Set;return o.forEach(e=>a.add(e.escapedName)),G=K(G,N(i,e=>!a.has(e.escapedName))),W=0,J=!0,1}()||function(){if(26===(null==T?void 0:T.kind))return 0;const t=G.length,a=function(e,t,n){var r;if(e){const{parent:i}=e;switch(e.kind){case 19:case 28:if(uF(i)||sF(i))return i;break;case 42:return FD(i)?tt(i.parent,uF):void 0;case 134:return tt(i.parent,uF);case 80:if("async"===e.text&&iP(e.parent))return e.parent.parent;{if(uF(e.parent.parent)&&(oP(e.parent)||iP(e.parent)&&za(n,e.getEnd()).line!==za(n,t).line))return e.parent.parent;const r=uc(i,rP);if((null==r?void 0:r.getLastToken(n))===e&&uF(r.parent))return r.parent}break;default:if((null==(r=i.parent)?void 0:r.parent)&&(FD(i.parent)||AD(i.parent)||ID(i.parent))&&uF(i.parent.parent))return i.parent.parent;if(oP(i)&&uF(i.parent))return i.parent;const o=uc(i,rP);if(59!==e.kind&&(null==o?void 0:o.getLastToken(n))===e&&uF(o.parent))return o.parent}}}(T,i,n);if(!a)return 0;let l,u;if(W=0,211===a.kind){const e=function(e,t){const n=t.getContextualType(e);if(n)return n;const r=rh(e.parent);return NF(r)&&64===r.operatorToken.kind&&e===r.left?t.getTypeAtLocation(r):V_(r)?t.getContextualType(r):void 0}(a,_);if(void 0===e)return 67108864&a.flags?2:0;const t=_.getContextualType(a,4),n=(t||e).getStringIndexType(),r=(t||e).getNumberIndexType();if(J=!!n||!!r,l=kse(e,t,a,_),u=a.properties,0===l.length&&!r)return 0}else{un.assert(207===a.kind),J=!1;const e=Yh(a.parent);if(!Af(e))return un.fail("Root declaration is not variable-like.");let t=Eu(e)||!!fv(e)||251===e.parent.parent.kind;if(t||170!==e.kind||(V_(e.parent)?t=!!_.getContextualType(e.parent):175!==e.parent.kind&&179!==e.parent.kind||(t=V_(e.parent.parent)&&!!_.getContextualType(e.parent.parent))),t){const e=_.getTypeAtLocation(a);if(!e)return 2;l=_.getPropertiesOfType(e).filter(t=>_.isPropertyAccessible(a,!1,!1,e,t)),u=a.elements}}if(l&&l.length>0){const n=function(e,t){if(0===t.length)return e;const n=new Set,r=new Set;for(const e of t){if(304!==e.kind&&305!==e.kind&&209!==e.kind&&175!==e.kind&&178!==e.kind&&179!==e.kind&&306!==e.kind)continue;if(he(e))continue;let t;if(oP(e))fe(e,n);else if(lF(e)&&e.propertyName)80===e.propertyName.kind&&(t=e.propertyName.escapedText);else{const n=Cc(e);t=n&&zh(n)?Uh(n):void 0}void 0!==t&&r.add(t)}const i=e.filter(e=>!r.has(e.escapedName));return ge(n,i),i}(l,un.checkDefined(u));G=K(G,n),me(),211===a.kind&&o.includeCompletionsWithObjectLiteralMethodSnippets&&o.includeCompletionsWithInsertText&&(function(e){for(let t=e;t{if(!(8196&t.flags))return;const n=pse(t,yk(r),void 0,0,!1);if(!n)return;const{name:i}=n,a=function(e,t,n,r,i,o,a,s){const c=a.includeCompletionsWithSnippetText||void 0;let l=t;const _=n.getSourceFile(),u=function(e,t,n,r,i,o){const a=e.getDeclarations();if(!a||!a.length)return;const s=r.getTypeChecker(),c=a[0],l=RC(Cc(c),!1),_=s.getWidenedType(s.getTypeOfSymbolAtLocation(e,t)),u=33554432|(0===tY(n,o)?268435456:0);switch(c.kind){case 172:case 173:case 174:case 175:{let e=1048576&_.flags&&_.types.length<10?s.getUnionType(_.types,2):_;if(1048576&e.flags){const t=N(e.types,e=>s.getSignaturesOfType(e,0).length>0);if(1!==t.length)return;e=t[0]}if(1!==s.getSignaturesOfType(e,0).length)return;const n=s.typeToTypeNode(e,t,u,void 0,T7.getNoopSymbolTrackerWithResolver({program:r,host:i}));if(!n||!BD(n))return;let a;if(o.includeCompletionsWithSnippetText){const e=mw.createEmptyStatement();a=mw.createBlock([e],!0),Kw(e,{kind:0,order:0})}else a=mw.createBlock([],!0);const c=n.parameters.map(e=>mw.createParameterDeclaration(void 0,e.dotDotDotToken,e.name,void 0,void 0,e.initializer));return mw.createMethodDeclaration(void 0,void 0,l,void 0,void 0,c,void 0,a)}default:return}}(e,n,_,r,i,a);if(!u)return;const d=Gae({removeComments:!0,module:o.module,moduleResolution:o.moduleResolution,target:o.target,omitTrailingSemicolon:!1,newLine:KZ(RY(i,null==s?void 0:s.options))});l=s?d.printAndFormatSnippetList(80,mw.createNodeArray([u],!0),_,s):d.printSnippetList(80,mw.createNodeArray([u],!0),_);const p=kU({removeComments:!0,module:o.module,moduleResolution:o.moduleResolution,target:o.target,omitTrailingSemicolon:!0}),f=mw.createMethodSignature(void 0,"",u.questionToken,u.typeParameters,u.parameters,u.type);return{isSnippet:c,insertText:l,labelDetails:{detail:p.printNode(4,f,_)}}}(t,i,p,e,s,r,o,c);if(!a)return;const l={kind:128,...a};z|=32,X[G.length]=l,G.push(t)}))}var d,p;return 1}()||(w?(J=!0,le(),1):0)||function(){if(!T)return 0;const e=19===T.kind||28===T.kind?tt(T.parent,Cx):BQ(T)?tt(T.parent.parent,Cx):void 0;if(!e)return 0;BQ(T)||(R=8);const{moduleSpecifier:t}=276===e.kind?e.parent.parent:e.parent;if(!t)return J=!0,276===e.kind?2:0;const n=_.getSymbolAtLocation(t);if(!n)return J=!0,2;W=3,J=!1;const r=_.getExportsAndPropertiesOfModule(n),i=new Set(e.elements.filter(e=>!he(e)).map(e=>Hd(e.propertyName||e.name))),o=r.filter(e=>"default"!==e.escapedName&&!i.has(e.escapedName));return G=K(G,o),o.length||(R=0),1}()||function(){if(void 0===T)return 0;const e=19===T.kind||28===T.kind?tt(T.parent,wE):59===T.kind?tt(T.parent.parent,wE):void 0;if(void 0===e)return 0;const t=new Set(e.elements.map(pC));return G=N(_.getTypeAtLocation(e).getApparentProperties(),e=>!t.has(e.escapedName)),1}()||function(){var e;const t=!T||19!==T.kind&&28!==T.kind?void 0:tt(T.parent,OE);if(!t)return 0;const n=uc(t,en(sP,gE));return W=5,J=!1,null==(e=n.locals)||e.forEach((e,t)=>{var r,i;G.push(e),(null==(i=null==(r=n.symbol)?void 0:r.exports)?void 0:i.has(t))&&(Q[eJ(e)]=yae.OptionalMember)}),1}()||(function(e){if(e){const t=e.parent;switch(e.kind){case 21:case 28:return PD(e.parent)?e.parent:void 0;default:if(ue(e))return t.parent}}}(T)?(W=5,J=!0,R=4,1):0)||function(){const e=function(e,t,n,r){switch(n.kind){case 353:return tt(n.parent,xx);case 1:const t=tt(ye(nt(n.parent,sP).statements),xx);if(t&&!OX(t,20,e))return t;break;case 81:if(tt(n.parent,ND))return uc(n,u_);break;case 80:if(hc(n))return;if(ND(n.parent)&&n.parent.initializer===n)return;if(wse(n))return uc(n,xx)}if(t){if(137===n.kind||aD(t)&&ND(t.parent)&&u_(n))return uc(t,u_);switch(t.kind){case 64:return;case 27:case 20:return wse(n)&&n.parent.name===n?n.parent.parent:tt(n,xx);case 19:case 28:return tt(t.parent,xx);default:if(xx(n)){if(za(e,t.getEnd()).line!==za(e,r).line)return n;const i=u_(t.parent.parent)?vse:yse;return i(t.kind)||42===t.kind||aD(t)&&i(hc(t)??0)?t.parent.parent:void 0}return}}}(n,T,M,i);if(!e)return 0;if(W=3,J=!0,R=42===T.kind?0:u_(e)?2:3,!u_(e))return 1;const t=27===T.kind?T.parent.parent:T.parent;let r=__(t)?Bv(t):0;if(80===T.kind&&!he(T))switch(T.getText()){case"private":r|=2;break;case"static":r|=256;break;case"override":r|=16}if(ED(t)&&(r|=256),!(2&r)){const t=O(u_(e)&&16&r?rn(yh(e)):xh(e),t=>{const n=_.getTypeAtLocation(t);return 256&r?(null==n?void 0:n.symbol)&&_.getPropertiesOfType(_.getTypeOfSymbolAtLocation(n.symbol,e)):n&&_.getPropertiesOfType(n)});G=K(G,function(e,t,n){const r=new Set;for(const e of t){if(173!==e.kind&&175!==e.kind&&178!==e.kind&&179!==e.kind)continue;if(he(e))continue;if(wv(e,2))continue;if(Dv(e)!==!!(256&n))continue;const t=Jh(e.name);t&&r.add(t)}return e.filter(e=>!(r.has(e.escapedName)||!e.declarations||2&ix(e)||e.valueDeclaration&&Kl(e.valueDeclaration)))}(t,e.members,r)),d(G,(e,t)=>{const n=null==e?void 0:e.valueDeclaration;if(n&&__(n)&&n.name&&kD(n.name)){const n={kind:512,symbolName:_.symbolToString(e)};X[t]=n}})}return 1}()||function(){const e=function(e){if(e){const t=e.parent;switch(e.kind){case 32:case 31:case 44:case 80:case 212:case 293:case 292:case 294:if(t&&(286===t.kind||287===t.kind)){if(32===e.kind){const r=YX(e.pos,n,void 0);if(!t.typeArguments||r&&44===r.kind)break}return t}if(292===t.kind)return t.parent.parent;break;case 11:if(t&&(292===t.kind||294===t.kind))return t.parent.parent;break;case 20:if(t&&295===t.kind&&t.parent&&292===t.parent.kind)return t.parent.parent.parent;if(t&&294===t.kind)return t.parent.parent}}}(T),t=e&&_.getContextualType(e.attributes);if(!t)return 0;const r=e&&_.getContextualType(e.attributes,4);return G=K(G,function(e,t){const n=new Set,r=new Set;for(const e of t)he(e)||(292===e.kind?n.add(tC(e.name)):XE(e)&&fe(e,r));const i=e.filter(e=>!n.has(e.escapedName));return ge(r,i),i}(kse(t,r,e.attributes,_),e.attributes.properties)),me(),W=3,J=!1,1}()||(function(){R=function(e){if(e){let t;const n=uc(e.parent,e=>u_(e)?"quit":!(!o_(e)||t!==e.body)||(t=e,!1));return n&&n}}(T)?5:1,W=1,({isNewIdentifierLocation:J,defaultCommitCharacters:D}=_e()),S!==T&&un.assert(!!S,"Expected 'contextToken' to be defined when different from 'previousToken'.");const e=S!==T?S.getStart():i,t=function(e,t,n){let r=e;for(;r&&!FX(r,t,n);)r=r.parent;return r}(T,e,n)||n;v=function(e){switch(e.kind){case 308:case 229:case 295:case 242:return!0;default:return pu(e)}}(t);const r=2887656|(Z?0:111551),a=S&&!bT(S);G=K(G,_.getSymbolsInScope(t,r)),un.assertEachIsDefined(G,"getSymbolsInScope() should all be defined");for(let e=0;ee.getSourceFile()===n)||(Q[eJ(t)]=yae.GlobalsOrKeywords),a&&!(111551&t.flags)){const n=t.declarations&&b(t.declarations,Bl);if(n){const t={kind:64,declaration:n};X[e]=t}}}if(o.includeCompletionsWithInsertText&&308!==t.kind){const e=_.tryGetThisTypeAt(t,!1,u_(t.parent)?t:void 0);if(e&&!function(e,t,n){const r=n.resolveName("self",void 0,111551,!1);if(r&&n.getTypeOfSymbolAtLocation(r,t)===e)return!0;const i=n.resolveName("global",void 0,111551,!1);if(i&&n.getTypeOfSymbolAtLocation(i,t)===e)return!0;const o=n.resolveName("globalThis",void 0,111551,!1);return!(!o||n.getTypeOfSymbolAtLocation(o,t)!==e)}(e,n,_))for(const t of Tse(e,_))X[G.length]={kind:1},G.push(t),Q[eJ(t)]=yae.SuggestedClassMembers}le(),Z&&(R=T&&W_(T.parent)?6:7)}(),1);return 1===t}function le(){var t,r;if(!function(){var t;return!!w||!!o.includeCompletionsForModuleExports&&(!(!n.externalModuleIndicator&&!n.commonJsModuleIndicator)||!!HQ(e.getCompilerOptions())||(null==(t=e.getSymlinkCache)?void 0:t.call(e).hasAnySymlinks())||!!e.getCompilerOptions().paths||WQ(e))}())return;if(un.assert(!(null==a?void 0:a.data),"Should not run 'collectAutoImports' when faster path is available via `data`"),a&&!a.source)return;z|=1;const c=S===T&&w?"":S&&aD(S)?S.text.toLowerCase():"",_=null==(t=s.getModuleSpecifierCache)?void 0:t.call(s),u=p0(n,s,e,o,l),d=null==(r=s.getPackageJsonAutoImportProvider)?void 0:r.call(s),p=a?void 0:EZ(n,o,s);function f(t){return a0(t.isFromPackageJson?d:e,n,tt(t.moduleSymbol.valueDeclaration,sP),t.moduleSymbol,o,p,te(t.isFromPackageJson),_)}Fae("collectAutoImports",s,V||(V=T7.createImportSpecifierResolver(n,e,s,o)),e,i,o,!!w,bT(M),e=>{u.search(n.path,A,(e,t)=>{if(!ms(e,yk(s.getCompilationSettings())))return!1;if(!a&&Eh(e))return!1;if(!(Z||w||111551&t))return!1;if(Z&&!(790504&t))return!1;const n=e.charCodeAt(0);return(!A||!(n<65||n>90))&&(!!a||Mse(e,c))},(t,n,r,i)=>{if(a&&!$(t,e=>a.source===Fy(e.moduleSymbol.name)))return;if(!(t=N(t,f)).length)return;const o=e.tryResolve(t,r)||{};if("failed"===o)return;let s,c=t[0];"skipped"!==o&&({exportInfo:c=t[0],moduleSpecifier:s}=o);const l=1===c.exportKind;!function(e,t){const n=eJ(e);Q[n]!==yae.GlobalsOrKeywords&&(X[G.length]=t,Q[n]=w?yae.LocationPriority:yae.AutoImportSuggestions,G.push(e))}(l&&vb(un.checkDefined(c.symbol))||un.checkDefined(c.symbol),{kind:s?32:4,moduleSpecifier:s,symbolName:n,exportMapKey:i,exportName:2===c.exportKind?"export=":un.checkDefined(c.symbol).name,fileName:c.moduleFileName,isDefaultExport:l,moduleSymbol:c.moduleSymbol,isFromPackageJson:c.isFromPackageJson})}),H=e.skippedAny(),z|=e.resolvedAny()?8:0,z|=e.resolvedBeyondLimit()?16:0})}function _e(){if(T){const e=T.parent.kind,t=xse(T);switch(t){case 28:switch(e){case 214:case 215:{const e=T.parent.expression;return za(n,e.end).line!==za(n,i).line?{defaultCommitCharacters:bae,isNewIdentifierLocation:!0}:{defaultCommitCharacters:vae,isNewIdentifierLocation:!0}}case 227:return{defaultCommitCharacters:bae,isNewIdentifierLocation:!0};case 177:case 185:case 211:return{defaultCommitCharacters:[],isNewIdentifierLocation:!0};case 210:return{defaultCommitCharacters:vae,isNewIdentifierLocation:!0};default:return{defaultCommitCharacters:vae,isNewIdentifierLocation:!1}}case 21:switch(e){case 214:case 215:{const e=T.parent.expression;return za(n,e.end).line!==za(n,i).line?{defaultCommitCharacters:bae,isNewIdentifierLocation:!0}:{defaultCommitCharacters:vae,isNewIdentifierLocation:!0}}case 218:return{defaultCommitCharacters:bae,isNewIdentifierLocation:!0};case 177:case 197:return{defaultCommitCharacters:[],isNewIdentifierLocation:!0};default:return{defaultCommitCharacters:vae,isNewIdentifierLocation:!1}}case 23:switch(e){case 210:case 182:case 190:case 168:return{defaultCommitCharacters:vae,isNewIdentifierLocation:!0};default:return{defaultCommitCharacters:vae,isNewIdentifierLocation:!1}}case 144:case 145:case 102:return{defaultCommitCharacters:[],isNewIdentifierLocation:!0};case 25:return 268===e?{defaultCommitCharacters:[],isNewIdentifierLocation:!0}:{defaultCommitCharacters:vae,isNewIdentifierLocation:!1};case 19:switch(e){case 264:case 211:return{defaultCommitCharacters:[],isNewIdentifierLocation:!0};default:return{defaultCommitCharacters:vae,isNewIdentifierLocation:!1}}case 64:switch(e){case 261:case 227:return{defaultCommitCharacters:vae,isNewIdentifierLocation:!0};default:return{defaultCommitCharacters:vae,isNewIdentifierLocation:!1}}case 16:return{defaultCommitCharacters:vae,isNewIdentifierLocation:229===e};case 17:return{defaultCommitCharacters:vae,isNewIdentifierLocation:240===e};case 134:return 175===e||305===e?{defaultCommitCharacters:[],isNewIdentifierLocation:!0}:{defaultCommitCharacters:vae,isNewIdentifierLocation:!1};case 42:return 175===e?{defaultCommitCharacters:[],isNewIdentifierLocation:!0}:{defaultCommitCharacters:vae,isNewIdentifierLocation:!1}}if(vse(t))return{defaultCommitCharacters:[],isNewIdentifierLocation:!0}}return{defaultCommitCharacters:vae,isNewIdentifierLocation:!1}}function ue(e){return!!e.parent&&TD(e.parent)&&PD(e.parent.parent)&&(Ql(e.kind)||lh(e))}function de(e,t){return 64!==e.kind&&(27===e.kind||!$b(e.end,t,n))}function pe(e){return c_(e)&&177!==e}function fe(e,t){const n=e.expression,r=_.getSymbolAtLocation(n),i=r&&_.getTypeOfSymbolAtLocation(r,n),o=i&&i.properties;o&&o.forEach(e=>{t.add(e.name)})}function me(){G.forEach(e=>{if(16777216&e.flags){const t=eJ(e);Q[t]=Q[t]??yae.OptionalMember}})}function ge(e,t){if(0!==e.size)for(const n of t)e.has(n.name)&&(Q[eJ(n)]=yae.MemberDeclaredBySpreadAssignment)}function he(e){return e.getStart(n)<=i&&i<=e.getEnd()}}function use(e,t){const n=YX(e,t);return n&&e<=n.end&&(dl(n)||Ch(n.kind))?{contextToken:YX(n.getFullStart(),t,void 0),previousToken:n}:{contextToken:n,previousToken:n}}function dse(e,t,n,r){const i=t.isPackageJsonImport?r.getPackageJsonAutoImportProvider():n,o=i.getTypeChecker(),a=t.ambientModuleName?o.tryFindAmbientModule(t.ambientModuleName):t.fileName?o.getMergedSymbol(un.checkDefined(i.getSourceFile(t.fileName)).symbol):void 0;if(!a)return;let s="export="===t.exportName?o.resolveExternalModuleSymbol(a):o.tryGetMemberInModuleExportsAndProperties(t.exportName,a);return s?(s="default"===t.exportName&&vb(s)||s,{symbol:s,origin:Qae(t,e,a)}):void 0}function pse(e,t,n,r,i){if(function(e){return!!(e&&256&e.kind)}(n))return;const o=function(e){return Sae(e)||Tae(e)||Dae(e)}(n)?n.symbolName:e.name;if(void 0===o||1536&e.flags&&zm(o.charCodeAt(0))||Wh(e))return;const a={name:o,needsConvertPropertyAccess:!1};if(ms(o,t,i?1:0)||e.valueDeclaration&&Kl(e.valueDeclaration))return a;if(2097152&e.flags)return{name:o,needsConvertPropertyAccess:!0};switch(r){case 3:return Dae(n)?{name:n.symbolName,needsConvertPropertyAccess:!1}:void 0;case 0:return{name:JSON.stringify(o),needsConvertPropertyAccess:!1};case 2:case 1:return 32===o.charCodeAt(0)?void 0:{name:o,needsConvertPropertyAccess:!0};case 5:case 4:return a;default:un.assertNever(r)}}var fse=[],mse=dt(()=>{const e=[];for(let t=83;t<=166;t++)e.push({name:Fa(t),kind:"keyword",kindModifiers:"",sortText:yae.GlobalsOrKeywords});return e});function gse(e,t){if(!t)return hse(e);const n=e+8+1;return fse[n]||(fse[n]=hse(e).filter(e=>!function(e){switch(e){case 128:case 133:case 163:case 136:case 138:case 94:case 162:case 119:case 140:case 120:case 142:case 143:case 144:case 145:case 146:case 150:case 151:case 164:case 123:case 124:case 125:case 148:case 154:case 155:case 156:case 158:case 159:return!0;default:return!1}}(Ea(e.name))))}function hse(e){return fse[e]||(fse[e]=mse().filter(t=>{const n=Ea(t.name);switch(e){case 0:return!1;case 1:return bse(n)||138===n||144===n||156===n||145===n||128===n||MQ(n)&&157!==n;case 5:return bse(n);case 2:return vse(n);case 3:return yse(n);case 4:return Ql(n);case 6:return MQ(n)||87===n;case 7:return MQ(n);case 8:return 156===n;default:return un.assertNever(e)}}))}function yse(e){return 148===e}function vse(e){switch(e){case 128:case 129:case 137:case 139:case 153:case 134:case 138:case 164:return!0;default:return Yl(e)}}function bse(e){return 134===e||135===e||160===e||130===e||152===e||156===e||!Dh(e)&&!vse(e)}function xse(e){return aD(e)?hc(e)??0:e.kind}function kse(e,t,n,r){const i=t&&t!==e,o=r.getUnionType(N(1048576&e.flags?e.types:[e],e=>!r.getPromisedTypeOfPromise(e))),a=!i||3&t.flags?o:r.getUnionType([o,t]),s=function(e,t,n){return e.isUnion()?n.getAllPossiblePropertiesOfTypes(N(e.types,e=>!(402784252&e.flags||n.isArrayLikeType(e)||n.isTypeInvalidDueToUnionDiscriminant(e,t)||n.typeHasCallOrConstructSignatures(e)||e.isClass()&&Sse(e.getApparentProperties())))):e.getApparentProperties()}(a,n,r);return a.isClass()&&Sse(s)?[]:i?N(s,function(e){return!u(e.declarations)||$(e.declarations,e=>e.parent!==n)}):s}function Sse(e){return $(e,e=>!!(6&ix(e)))}function Tse(e,t){return e.isUnion()?un.checkEachDefined(t.getAllPossiblePropertiesOfTypes(e.types),"getAllPossiblePropertiesOfTypes() should all be defined"):un.checkEachDefined(e.getApparentProperties(),"getApparentProperties() should all be defined")}function Cse(e,t){if(!e)return;if(b_(e)&&Iu(e.parent))return t.getTypeArgumentConstraint(e);const n=Cse(e.parent,t);if(n)switch(e.kind){case 172:return t.getTypeOfPropertyOfContextualType(n,e.symbol.escapedName);case 194:case 188:case 193:return n}}function wse(e){return e.parent&&y_(e.parent)&&xx(e.parent.parent)}function Nse({left:e}){return Nd(e)}function Dse(e,t){var n,r,i;let o,a=!1;const s=function(){const n=e.parent;if(bE(n)){const r=n.getLastToken(t);return aD(e)&&r!==e?(o=161,void(a=!0)):(o=156===e.kind?void 0:156,Ise(n.moduleReference)?n:void 0)}if(Pse(n,e)&&Ase(n.parent))return n;if(!EE(n)&&!DE(n))return IE(n)&&42===e.kind||OE(n)&&20===e.kind?(a=!0,void(o=161)):vD(e)&&sP(n)?(o=156,e):vD(e)&&xE(n)?(o=156,Ise(n.moduleSpecifier)?n:void 0):void 0;if(n.parent.isTypeOnly||19!==e.kind&&102!==e.kind&&28!==e.kind||(o=156),Ase(n)){if(20!==e.kind&&80!==e.kind)return n.parent.parent;a=!0,o=161}}();return{isKeywordOnlyCompletion:a,keywordCompletion:o,isNewIdentifierLocation:!(!s&&156!==o),isTopLevelTypeOnly:!!(null==(r=null==(n=tt(s,xE))?void 0:n.importClause)?void 0:r.isTypeOnly)||!!(null==(i=tt(s,bE))?void 0:i.isTypeOnly),couldBeTypeOnlyImportSpecifier:!!s&&Pse(s,e),replacementSpan:Fse(s)}}function Fse(e){var t;if(!e)return;const n=uc(e,en(xE,bE,XP))??e,r=n.getSourceFile();if(Rb(n,r))return FQ(n,r);un.assert(102!==n.kind&&277!==n.kind);const i=273===n.kind||352===n.kind?Ese(null==(t=n.importClause)?void 0:t.namedBindings)??n.moduleSpecifier:n.moduleReference,o={pos:n.getFirstToken().getStart(),end:i.pos};return Rb(o,r)?AQ(o):void 0}function Ese(e){var t;return b(null==(t=tt(e,EE))?void 0:t.elements,t=>{var n;return!t.propertyName&&Eh(t.name.text)&&28!==(null==(n=YX(t.name.pos,e.getSourceFile(),e))?void 0:n.kind)})}function Pse(e,t){return PE(e)&&(e.isTypeOnly||t===e.name&&BQ(t))}function Ase(e){if(!Ise(e.parent.parent.moduleSpecifier)||e.parent.name)return!1;if(EE(e)){const t=Ese(e);return(t?e.elements.indexOf(t):e.elements.length)<2}return!0}function Ise(e){var t;return!!Nd(e)||!(null==(t=tt(JE(e)?e.expression:e,ju))?void 0:t.text)}function Ose(e){return e.parent&&bF(e.parent)&&(e.parent.body===e||39===e.kind)}function Lse(e,t,n=new Set){return r(e)||r(ox(e.exportSymbol||e,t));function r(e){return!!(788968&e.flags)||t.isUnknownSymbol(e)||!!(1536&e.flags)&&bx(n,e)&&t.getExportsOfModule(e).some(e=>Lse(e,t,n))}}function jse(e,t){const n=ox(e,t).declarations;return!!u(n)&&v(n,$Z)}function Mse(e,t){if(0===t.length)return!0;let n,r=!1,i=0;const o=e.length;for(let a=0;aVse,getStringLiteralCompletions:()=>Use});var zse={directory:0,script:1,"external module name":2};function qse(){const e=new Map;return{add:function(t){const n=e.get(t.name);(!n||zse[n.kind]t>=e.pos&&t<=e.end);if(!c)return;const l=e.text.slice(c.pos,t),_=pce.exec(l);if(!_)return;const[,u,d,p]=_,f=Do(e.path),m="path"===d?rce(p,f,tce(o,0,e),n,r,i,!0,e.path):"types"===d?dce(n,r,i,f,cce(p),tce(o,1,e)):un.fail();return Zse(p,c.pos+u.length,Oe(m.values()))}(e,t,o,i,KQ(o,i));return n&&Wse(n)}if(nQ(e,t,n)){if(!n||!ju(n))return;return function(e,t,n,r,i,o,a,s,c,l){if(void 0===e)return;const _=EQ(t,c);switch(e.kind){case 0:return Wse(e.paths);case 1:{const u=[];return tse(e.symbols,u,t,t,n,c,n,r,i,99,o,4,s,a,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,l),{isGlobalCompletion:!1,isMemberCompletion:!0,isNewIdentifierLocation:e.hasIndexSignature,optionalReplacementSpan:_,entries:u,defaultCommitCharacters:Eae(e.hasIndexSignature)}}case 2:{const n=15===t.kind?96:Gt(Xd(t),"'")?39:34,r=e.types.map(e=>({name:xy(e.value,n),kindModifiers:"",kind:"string",sortText:yae.LocationPriority,replacementSpan:DQ(t,c),commitCharacters:[]}));return{isGlobalCompletion:!1,isMemberCompletion:!1,isNewIdentifierLocation:e.isNewIdentifier,optionalReplacementSpan:_,entries:r,defaultCommitCharacters:Eae(e.isNewIdentifier)}}default:return un.assertNever(e)}}(Hse(e,n,t,o,i,s),n,e,i,o,a,r,s,t,c)}}function Vse(e,t,n,r,i,o,a,s){if(!r||!ju(r))return;const c=Hse(t,r,n,i,o,s);return c&&function(e,t,n,r,i,o){switch(n.kind){case 0:{const t=b(n.paths,t=>t.name===e);return t&&ase(e,$se(t.extension),t.kind,[PY(e)])}case 1:{const a=b(n.symbols,t=>t.name===e);return a&&ose(a,a.name,i,r,t,o)}case 2:return b(n.types,t=>t.value===e)?ase(e,"","string",[PY(e)]):void 0;default:return un.assertNever(n)}}(e,r,c,t,i.getTypeChecker(),a)}function Wse(e){const t=!0;return{isGlobalCompletion:!1,isMemberCompletion:!1,isNewIdentifierLocation:t,entries:e.map(({name:e,kind:t,span:n,extension:r})=>({name:e,kind:t,kindModifiers:$se(r),sortText:yae.LocationPriority,replacementSpan:n})),defaultCommitCharacters:Eae(t)}}function $se(e){switch(e){case".d.ts":return".d.ts";case".js":return".js";case".json":return".json";case".jsx":return".jsx";case".ts":return".ts";case".tsx":return".tsx";case".d.mts":return".d.mts";case".mjs":return".mjs";case".mts":return".mts";case".d.cts":return".d.cts";case".cjs":return".cjs";case".cts":return".cts";case".tsbuildinfo":return un.fail("Extension .tsbuildinfo is unsupported.");case void 0:return"";default:return un.assertNever(e)}}function Hse(e,t,n,r,i,o){const a=r.getTypeChecker(),s=Kse(t.parent);switch(s.kind){case 202:{const c=Kse(s.parent);return 206===c.kind?{kind:0,paths:ece(e,t,r,i,o)}:function e(t){switch(t.kind){case 234:case 184:{const e=uc(s,e=>e.parent===t);return e?{kind:2,types:Xse(a.getTypeArgumentConstraint(e)),isNewIdentifier:!1}:void 0}case 200:const{indexType:i,objectType:o}=t;if(!SX(i,n))return;return Gse(a.getTypeFromTypeNode(o));case 193:{const n=e(Kse(t.parent));if(!n)return;const i=(r=s,B(t.types,e=>e!==r&&rF(e)&&UN(e.literal)?e.literal.text:void 0));return 1===n.kind?{kind:1,symbols:n.symbols.filter(e=>!T(i,e.name)),hasIndexSignature:n.hasIndexSignature}:{kind:2,types:n.types.filter(e=>!T(i,e.value)),isNewIdentifier:!1}}default:return}var r}(c)}case 304:return uF(s.parent)&&s.name===t?function(e,t){const n=e.getContextualType(t);if(!n)return;return{kind:1,symbols:kse(n,e.getContextualType(t,4),t,e),hasIndexSignature:_Z(n)}}(a,s.parent):c()||c(0);case 213:{const{expression:e,argumentExpression:n}=s;return t===ah(n)?Gse(a.getTypeAtLocation(e)):void 0}case 214:case 215:case 292:if(!function(e){return fF(e.parent)&&fe(e.parent.arguments)===e&&aD(e.parent.expression)&&"require"===e.parent.expression.escapedText}(t)&&!_f(s)){const r=W_e.getArgumentInfoForCompletions(292===s.kind?s.parent:t,n,e,a);return r&&function(e,t,n,r){let i=!1;const o=new Set,a=bu(e)?un.checkDefined(uc(t.parent,KE)):t,s=O(r.getCandidateSignaturesForStringLiteralCompletions(e,a),t=>{if(!aJ(t)&&n.argumentCount>t.parameters.length)return;let s=t.getTypeParameterAtPosition(n.argumentIndex);if(bu(e)){const e=r.getTypeOfPropertyOfType(s,nC(a.name));e&&(s=e)}return i=i||!!(4&s.flags),Xse(s,o)});return u(s)?{kind:2,types:s,isNewIdentifier:i}:void 0}(r.invocation,t,r,a)||c(0)}case 273:case 279:case 284:case 352:return{kind:0,paths:ece(e,t,r,i,o)};case 297:const l=ZZ(a,s.parent.clauses),_=c();if(!_)return;return{kind:2,types:_.types.filter(e=>!l.hasValue(e.value)),isNewIdentifier:!1};case 277:case 282:const d=s;if(d.propertyName&&t!==d.propertyName)return;const p=d.parent,{moduleSpecifier:f}=276===p.kind?p.parent.parent:p.parent;if(!f)return;const m=a.getSymbolAtLocation(f);if(!m)return;const g=a.getExportsAndPropertiesOfModule(m),h=new Set(p.elements.map(e=>Hd(e.propertyName||e.name)));return{kind:1,symbols:g.filter(e=>"default"!==e.escapedName&&!h.has(e.escapedName)),hasIndexSignature:!1};case 227:if(103===s.operatorToken.kind){const e=a.getTypeAtLocation(s.right);return{kind:1,symbols:(e.isUnion()?a.getAllPossiblePropertiesOfTypes(e.types):e.getApparentProperties()).filter(e=>!e.valueDeclaration||!Kl(e.valueDeclaration)),hasIndexSignature:!1}}return c(0);default:return c()||c(0)}function c(e=4){const n=Xse(aZ(t,a,e));if(n.length)return{kind:2,types:n,isNewIdentifier:!1}}}function Kse(e){switch(e.kind){case 197:return nh(e);case 218:return rh(e);default:return e}}function Gse(e){return e&&{kind:1,symbols:N(e.getApparentProperties(),e=>!(e.valueDeclaration&&Kl(e.valueDeclaration))),hasIndexSignature:_Z(e)}}function Xse(e,t=new Set){return e?(e=UQ(e)).isUnion()?O(e.types,e=>Xse(e,t)):!e.isStringLiteral()||1024&e.flags||!bx(t,e.value)?l:[e]:l}function Qse(e,t,n){return{name:e,kind:t,extension:n}}function Yse(e){return Qse(e,"directory",void 0)}function Zse(e,t,n){const r=function(e,t){const n=Math.max(e.lastIndexOf(lo),e.lastIndexOf(_o)),r=-1!==n?n+1:0,i=e.length-r;return 0===i||ms(e.substr(r,i),99)?void 0:Ws(t+r,i)}(e,t),i=0===e.length?void 0:Ws(t,e.length);return n.map(({name:e,kind:t,extension:n})=>e.includes(lo)||e.includes(_o)?{name:e,kind:t,extension:n,span:i}:{name:e,kind:t,extension:n,span:r})}function ece(e,t,n,r,i){return Zse(t.text,t.getStart(e)+1,function(e,t,n,r,i){const o=Oo(t.text),a=ju(t)?n.getModeForUsageLocation(e,t):void 0,s=e.path,c=Do(s),_=n.getCompilerOptions(),u=n.getTypeChecker(),d=KQ(n,r),p=tce(_,1,e,u,i,a);return function(e){if(e&&e.length>=2&&46===e.charCodeAt(0)){const t=e.length>=3&&46===e.charCodeAt(1)?2:1,n=e.charCodeAt(t);return 47===n||92===n}return!1}(o)||!_.baseUrl&&!_.paths&&(go(o)||mo(o))?function(e,t,n,r,i,o,a){const s=n.getCompilerOptions();return s.rootDirs?function(e,t,n,r,i,o,a,s){const c=function(e,t,n,r){const i=f(e=e.map(e=>Wo(Jo(go(e)?e:jo(t,e)))),e=>ea(e,n,t,r)?n.substr(e.length):void 0);return Q([...e.map(e=>jo(e,i)),n].map(e=>Vo(e)),ht,Ct)}(e,i.getCompilerOptions().project||o.getCurrentDirectory(),n,!(o.useCaseSensitiveFileNames&&o.useCaseSensitiveFileNames()));return Q(O(c,e=>Oe(rce(t,e,r,i,o,a,!0,s).values())),(e,t)=>e.name===t.name&&e.kind===t.kind&&e.extension===t.extension)}(s.rootDirs,e,t,a,n,r,i,o):Oe(rce(e,t,a,n,r,i,!0,o).values())}(o,c,n,r,d,s,p):function(e,t,n,r,i,o,a){const s=r.getTypeChecker(),c=r.getCompilerOptions(),{baseUrl:_,paths:u}=c,d=qse(),p=bk(c);if(_){const t=Jo(jo(i.getCurrentDirectory(),_));rce(e,t,a,r,i,o,!1,void 0,d)}if(u){const t=Ky(c,i);oce(d,e,t,a,r,i,o,u)}const f=cce(e);for(const t of function(e,t,n){const r=n.getAmbientModules().map(e=>Fy(e.name)).filter(t=>Gt(t,e)&&!t.includes("*"));if(void 0!==t){const e=Wo(t);return r.map(t=>Xt(t,e))}return r}(e,f,s))d.add(Qse(t,"external module name",void 0));if(dce(r,i,o,t,f,a,d),XQ(p)){let n=!1;if(void 0===f)for(const e of function(e,t){if(!e.readFile||!e.fileExists)return l;const n=[];for(const r of NZ(t,e)){const t=wb(r,e);for(const e of fce){const r=t[e];if(r)for(const e in r)De(r,e)&&!Gt(e,"@types/")&&n.push(e)}}return n}(i,t)){const t=Qse(e,"external module name",void 0);d.has(t.name)||(n=!0,d.add(t))}if(!n){const n=Ck(c),s=wk(c);let l=!1;const _=t=>{if(s&&!l){const n=jo(t,"package.json");(l=SZ(i,n))&&m(wb(n,i).imports,e,t,!1,!0)}};let u=t=>{const n=jo(t,"node_modules");TZ(i,n)&&rce(e,n,a,r,i,o,!1,void 0,d),_(t)};if(f&&n){const t=u;u=n=>{const r=Ao(e);r.shift();let o=r.shift();if(!o)return t(n);if(Gt(o,"@")){const e=r.shift();if(!e)return t(n);o=jo(o,e)}if(s&&Gt(o,"#"))return _(n);const a=jo(n,"node_modules",o),c=jo(a,"package.json");if(SZ(i,c)){const t=wb(c,i),n=r.join("/")+(r.length&&To(e)?"/":"");return void m(t.exports,n,a,!0,!1)}return t(n)}}TR(i,t,u)}}return Oe(d.values());function m(e,t,s,l,_){if("object"!=typeof e||null===e)return;const u=Ee(e),p=yM(c,n);ace(d,l,_,t,s,a,r,i,o,u,t=>{const n=sce(e[t],p);if(void 0!==n)return rn(Mt(t,"/")&&Mt(n,"/")?n+"*":n)},yR)}}(o,c,a,n,r,d,p)}(e,t,n,r,i))}function tce(e,t,n,r,i,o){return{extensionsToSearch:I(nce(e,r)),referenceKind:t,importingSourceFile:n,endingPreference:null==i?void 0:i.importModuleSpecifierEnding,resolutionMode:o}}function nce(e,t){const n=t?B(t.getAmbientModules(),e=>{const t=e.name.slice(1,-1);if(t.startsWith("*.")&&!t.includes("/"))return t.slice(1)}):[],r=[...AS(e),n];return XQ(bk(e))?IS(e,r):r}function rce(e,t,n,r,i,o,a,s,c=qse()){var l;void 0===e&&(e=""),To(e=Oo(e))||(e=Do(e)),""===e&&(e="."+lo);const _=Mo(t,e=Wo(e)),u=To(_)?_:Do(_);if(!a){const e=DZ(u,i);if(e){const t=wb(e,i).typesVersions;if("object"==typeof t){const a=null==(l=_M(t))?void 0:l.paths;if(a){const t=Do(e);if(oce(c,_.slice(Wo(t).length),t,n,r,i,o,a))return c}}}}const d=!(i.useCaseSensitiveFileNames&&i.useCaseSensitiveFileNames());if(!TZ(i,u))return c;const p=kZ(i,u,n.extensionsToSearch,void 0,["./*"]);if(p)for(let e of p){if(e=Jo(e),s&&0===Zo(e,s,t,d))continue;const{name:i,extension:o}=ice(Fo(e),r,n,!1);c.add(Qse(i,"script",o))}const f=xZ(i,u);if(f)for(const e of f){const t=Fo(Jo(e));"@types"!==t&&c.add(Yse(t))}return c}function ice(e,t,n,r){const i=nB.tryGetRealFileNameForNonJsDeclarationFileName(e);if(i)return{name:i,extension:tT(i)};if(0===n.referenceKind)return{name:e,extension:tT(e)};let o=nB.getModuleSpecifierPreferences({importModuleSpecifierEnding:n.endingPreference},t,t.getCompilerOptions(),n.importingSourceFile).getAllowedEndingsInPreferredOrder(n.resolutionMode);if(r&&(o=o.filter(e=>0!==e&&1!==e)),3===o[0]){if(So(e,ES))return{name:e,extension:tT(e)};const n=nB.tryGetJSExtensionForFile(e,t.getCompilerOptions());return n?{name:$S(e,n),extension:n}:{name:e,extension:tT(e)}}if(!r&&(0===o[0]||1===o[0])&&So(e,[".js",".jsx",".ts",".tsx",".d.ts"]))return{name:US(e),extension:tT(e)};const a=nB.tryGetJSExtensionForFile(e,t.getCompilerOptions());return a?{name:$S(e,a),extension:a}:{name:e,extension:tT(e)}}function oce(e,t,n,r,i,o,a,s){return ace(e,!1,!1,t,n,r,i,o,a,Ee(s),e=>s[e],(e,t)=>{const n=HS(e),r=HS(t),i="object"==typeof n?n.prefix.length:e.length;return vt("object"==typeof r?r.prefix.length:t.length,i)})}function ace(e,t,n,r,i,o,a,s,c,l,_,u){let d,p=[];for(const e of l){if("."===e)continue;const l=e.replace(/^\.\//,"")+((t||n)&&Mt(e,"/")?"*":""),f=_(e);if(f){const e=HS(l);if(!e)continue;const _="object"==typeof e&&Yt(e,r);_&&(void 0===d||-1===u(l,d))&&(d=l,p=p.filter(e=>!e.matchedPattern)),"string"!=typeof e&&void 0!==d&&1===u(l,d)||p.push({matchedPattern:_,results:lce(l,f,r,i,o,t,n,a,s,c).map(({name:e,kind:t,extension:n})=>Qse(e,t,n))})}}return p.forEach(t=>t.results.forEach(t=>e.add(t))),void 0!==d}function sce(e,t){if("string"==typeof e)return e;if(e&&"object"==typeof e&&!Qe(e))for(const n in e)if("default"===n||t.includes(n)||xR(t,n))return sce(e[n],t)}function cce(e){return mce(e)?To(e)?e:Do(e):void 0}function lce(e,t,n,r,i,o,a,s,c,_){const u=HS(e);if(!u)return l;if("string"==typeof u)return p(e,"script");const d=Qt(n,u.prefix);return void 0===d?Mt(e,"/*")?p(u.prefix,"directory"):O(t,e=>{var t;return null==(t=_ce("",r,e,i,o,a,s,c,_))?void 0:t.map(({name:e,...t})=>({name:u.prefix+e+u.suffix,...t}))}):O(t,e=>_ce(d,r,e,i,o,a,s,c,_));function p(e,t){return Gt(e,n)?[{name:Vo(e),kind:t,extension:void 0}]:l}}function _ce(e,t,n,r,i,o,a,s,c){if(!s.readDirectory)return;const l=HS(n);if(void 0===l||Ze(l))return;const _=Mo(l.prefix),u=To(l.prefix)?_:Do(_),d=To(l.prefix)?"":Fo(_),p=mce(e),m=p?To(e)?e:Do(e):void 0,g=()=>c.getCommonSourceDirectory(),h=!jy(c),y=a.getCompilerOptions().outDir,v=a.getCompilerOptions().declarationDir,b=p?jo(u,d+m):u,x=Jo(jo(t,b)),k=o&&y&&Hy(x,h,y,g),S=o&&v&&Hy(x,h,v,g),T=Jo(l.suffix),C=T&&Wy("_"+T),w=T?$y("_"+T):void 0,N=[C&&$S(T,C),...w?w.map(e=>$S(T,e)):[],T].filter(Ze),D=T?N.map(e=>"**/*"+e):["./*"],F=(i||o)&&Mt(n,"/*");let E=P(x);return k&&(E=K(E,P(k))),S&&(E=K(E,P(S))),T||(E=K(E,A(x)),k&&(E=K(E,A(k))),S&&(E=K(E,A(S)))),E;function P(e){const t=p?e:Wo(e)+d;return B(kZ(s,e,r.extensionsToSearch,void 0,D),e=>{const n=(i=e,o=t,f(N,e=>{const t=(a=e,Gt(n=Jo(i),r=o)&&Mt(n,a)?n.slice(r.length,n.length-a.length):void 0);var n,r,a;return void 0===t?void 0:uce(t)}));var i,o;if(n){if(mce(n))return Yse(Ao(uce(n))[1]);const{name:e,extension:t}=ice(n,a,r,F);return Qse(e,"script",t)}})}function A(e){return B(xZ(s,e),e=>"node_modules"===e?void 0:Yse(e))}}function uce(e){return e[0]===lo?e.slice(1):e}function dce(e,t,n,r,i,o,a=qse()){const s=e.getCompilerOptions(),c=new Map,_=CZ(()=>uM(s,t))||l;for(const e of _)u(e);for(const e of NZ(r,t))u(jo(Do(e),"node_modules/@types"));return a;function u(r){if(TZ(t,r))for(const l of xZ(t,r)){const _=IR(l);if(!s.types||T(s.types,_))if(void 0===i)c.has(_)||(a.add(Qse(_,"external module name",void 0)),c.set(_,!0));else{const s=jo(r,l),c=Zk(i,_,My(t));void 0!==c&&rce(c,s,o,e,t,n,!1,void 0,a)}}}}var pce=/^(\/\/\/\s*{const i=t.getSymbolAtLocation(n);if(i){const t=eJ(i).toString();let n=r.get(t);n||r.set(t,n=[]),n.push(e)}});return r}(e,n,r);return(o,a,s)=>{const{directImports:c,indirectUsers:l}=function(e,t,n,{exportingModuleSymbol:r,exportKind:i},o,a){const s=JQ(),c=JQ(),l=[],_=!!r.globalExports,u=_?void 0:[];return function e(t){const n=g(t);if(n)for(const t of n)if(s(t))switch(a&&a.throwIfCancellationRequested(),t.kind){case 214:if(_f(t)){d(t);break}if(!_){const e=t.parent;if(2===i&&261===e.kind){const{name:t}=e;if(80===t.kind){l.push(t);break}}}break;case 80:break;case 272:f(t,t.name,Nv(t,32),!1);break;case 273:case 352:l.push(t);const n=t.importClause&&t.importClause.namedBindings;n&&275===n.kind?f(t,n.name,!1,!0):!_&&Tg(t)&&m(Nce(t));break;case 279:t.exportClause?281===t.exportClause.kind?m(Nce(t),!0):l.push(t):e(wce(t,o));break;case 206:!_&&t.isTypeOf&&!t.qualifier&&p(t)&&m(t.getSourceFile(),!0),l.push(t);break;default:un.failBadSyntaxKind(t,"Unexpected import kind.")}}(r),{directImports:l,indirectUsers:function(){if(_)return e;if(r.declarations)for(const e of r.declarations)fp(e)&&t.has(e.getSourceFile().fileName)&&m(e);return u.map(vd)}()};function d(e){m(uc(e,Dce)||e.getSourceFile(),!!p(e,!0))}function p(e,t=!1){return uc(e,e=>t&&Dce(e)?"quit":kI(e)&&$(e.modifiers,cD))}function f(e,t,n,r){if(2===i)r||l.push(e);else if(!_){const r=Nce(e);un.assert(308===r.kind||268===r.kind),n||function(e,t,n){const r=n.getSymbolAtLocation(t);return!!kce(e,e=>{if(!IE(e))return;const{exportClause:t,moduleSpecifier:i}=e;return!i&&t&&OE(t)&&t.elements.some(e=>n.getExportSpecifierLocalTargetSymbol(e)===r)})}(r,t,o)?m(r,!0):m(r)}}function m(e,t=!1){if(un.assert(!_),!c(e))return;if(u.push(e),!t)return;const n=o.getMergedSymbol(e.symbol);if(!n)return;un.assert(!!(1536&n.flags));const r=g(n);if(r)for(const e of r)iF(e)||m(Nce(e),!0)}function g(e){return n.get(eJ(e).toString())}}(e,t,i,a,n,r);return{indirectUsers:l,...bce(c,o,a.exportKind,n,s)}}}i(gce,{Core:()=>Mce,DefinitionKind:()=>Ece,EntryKind:()=>Pce,ExportKind:()=>yce,FindReferencesUse:()=>Rce,ImportExport:()=>vce,createImportTracker:()=>hce,findModuleReferences:()=>xce,findReferenceOrRenameEntries:()=>qce,findReferencedSymbols:()=>Bce,getContextNode:()=>Lce,getExportInfo:()=>Cce,getImplementationsAtPosition:()=>Jce,getImportOrExportSymbol:()=>Tce,getReferenceEntriesForNode:()=>Uce,isContextWithStartAndEndNode:()=>Ice,isDeclarationOfSymbol:()=>nle,isWriteAccessForReference:()=>tle,toContextSpan:()=>jce,toHighlightSpan:()=>Yce,toReferenceEntry:()=>Kce,toRenameLocation:()=>Hce});var yce=(e=>(e[e.Named=0]="Named",e[e.Default=1]="Default",e[e.ExportEquals=2]="ExportEquals",e))(yce||{}),vce=(e=>(e[e.Import=0]="Import",e[e.Export=1]="Export",e))(vce||{});function bce(e,t,n,r,i){const o=[],a=[];function s(e,t){o.push([e,t])}if(e)for(const t of e)c(t);return{importSearches:o,singleReferences:a};function c(e){if(272===e.kind)return void(Fce(e)&&l(e.name));if(80===e.kind)return void l(e);if(206===e.kind){if(e.qualifier){const n=sb(e.qualifier);n.escapedText===yc(t)&&a.push(n)}else 2===n&&a.push(e.argument.literal);return}if(11!==e.moduleSpecifier.kind)return;if(279===e.kind)return void(e.exportClause&&OE(e.exportClause)&&_(e.exportClause));const{name:o,namedBindings:c}=e.importClause||{name:void 0,namedBindings:void 0};if(c)switch(c.kind){case 275:l(c.name);break;case 276:0!==n&&1!==n||_(c);break;default:un.assertNever(c)}!o||1!==n&&2!==n||i&&o.escapedText!==iY(t)||s(o,r.getSymbolAtLocation(o))}function l(e){2!==n||i&&!u(e.escapedText)||s(e,r.getSymbolAtLocation(e))}function _(e){if(e)for(const n of e.elements){const{name:e,propertyName:o}=n;u(Hd(o||e))&&(o?(a.push(o),i&&Hd(e)!==t.escapedName||s(e,r.getSymbolAtLocation(e))):s(e,282===n.kind&&n.propertyName?r.getExportSpecifierLocalTargetSymbol(n):r.getSymbolAtLocation(e)))}}function u(e){return e===t.escapedName||0!==n&&"default"===e}}function xce(e,t,n){var r;const i=[],o=e.getTypeChecker();for(const a of t){const t=n.valueDeclaration;if(308===(null==t?void 0:t.kind)){for(const n of a.referencedFiles)e.getSourceFileFromReference(a,n)===t&&i.push({kind:"reference",referencingFile:a,ref:n});for(const n of a.typeReferenceDirectives){const o=null==(r=e.getResolvedTypeReferenceDirectiveFromTypeReferenceDirective(n,a))?void 0:r.resolvedTypeReferenceDirective;void 0!==o&&o.resolvedFileName===t.fileName&&i.push({kind:"reference",referencingFile:a,ref:n})}}Sce(a,(e,t)=>{o.getSymbolAtLocation(t)===n&&i.push(ey(e)?{kind:"implicit",literal:t,referencingFile:a}:{kind:"import",literal:t})})}return i}function kce(e,t){return d(308===e.kind?e.statements:e.body.statements,e=>t(e)||Dce(e)&&d(e.body&&e.body.statements,t))}function Sce(e,t){if(e.externalModuleIndicator||void 0!==e.imports)for(const n of e.imports)t(vg(n),n);else kce(e,e=>{switch(e.kind){case 279:case 273:{const n=e;n.moduleSpecifier&&UN(n.moduleSpecifier)&&t(n,n.moduleSpecifier);break}case 272:{const n=e;Fce(n)&&t(n,n.moduleReference.expression);break}}})}function Tce(e,t,n,r){return r?i():i()||function(){if(!function(e){const{parent:t}=e;switch(t.kind){case 272:return t.name===e&&Fce(t);case 277:return!t.propertyName;case 274:case 275:return un.assert(t.name===e),!0;case 209:return Em(e)&&Mm(t.parent.parent);default:return!1}}(e))return;let r=n.getImmediateAliasedSymbol(t);if(!r)return;if(r=function(e,t){if(e.declarations)for(const n of e.declarations){if(LE(n)&&!n.propertyName&&!n.parent.parent.moduleSpecifier)return t.getExportSpecifierLocalTargetSymbol(n)||e;if(dF(n)&&eg(n.expression)&&!sD(n.name))return t.getSymbolAtLocation(n);if(iP(n)&&NF(n.parent.parent)&&2===tg(n.parent.parent))return t.getExportSpecifierLocalTargetSymbol(n.name)}return e}(r,n),"export="===r.escapedName&&(r=function(e,t){var n,r;if(2097152&e.flags)return t.getImmediateAliasedSymbol(e);const i=un.checkDefined(e.valueDeclaration);return AE(i)?null==(n=tt(i.expression,au))?void 0:n.symbol:NF(i)?null==(r=tt(i.right,au))?void 0:r.symbol:sP(i)?i.symbol:void 0}(r,n),void 0===r))return;const i=iY(r);return void 0===i||"default"===i||i===t.escapedName?{kind:0,symbol:r}:void 0}();function i(){var i;const{parent:s}=e,c=s.parent;if(t.exportSymbol)return 212===s.kind?(null==(i=t.declarations)?void 0:i.some(e=>e===s))&&NF(c)?_(c,!1):void 0:o(t.exportSymbol,a(s));{const i=function(e,t){const n=lE(e)?e:lF(e)?nc(e):void 0;return n?e.name!==t||nP(n.parent)?void 0:WF(n.parent.parent)?n.parent.parent:void 0:e}(s,e);if(i&&Nv(i,32)){if(bE(i)&&i.moduleReference===e){if(r)return;return{kind:0,symbol:n.getSymbolAtLocation(i.name)}}return o(t,a(i))}if(FE(s))return o(t,0);if(AE(s))return l(s);if(AE(c))return l(c);if(NF(s))return _(s,!0);if(NF(c))return _(c,!0);if(VP(s)||FP(s))return o(t,0)}function l(e){if(!e.symbol.parent)return;const n=e.isExportEquals?2:1;return{kind:1,symbol:t,exportInfo:{exportingModuleSymbol:e.symbol.parent,exportKind:n}}}function _(e,r){let i;switch(tg(e)){case 1:i=0;break;case 2:i=2;break;default:return}const a=r?n.getSymbolAtLocation(Tx(nt(e.left,Sx))):t;return a&&o(a,i)}}function o(e,t){const r=Cce(e,t,n);return r&&{kind:1,symbol:e,exportInfo:r}}function a(e){return Nv(e,2048)?1:0}}function Cce(e,t,n){const r=e.parent;if(!r)return;const i=n.getMergedSymbol(r);return Qu(i)?{exportingModuleSymbol:i,exportKind:t}:void 0}function wce(e,t){return t.getMergedSymbol(Nce(e).symbol)}function Nce(e){if(214===e.kind||352===e.kind)return e.getSourceFile();const{parent:t}=e;return 308===t.kind?t:(un.assert(269===t.kind),nt(t.parent,Dce))}function Dce(e){return 268===e.kind&&11===e.name.kind}function Fce(e){return 284===e.moduleReference.kind&&11===e.moduleReference.expression.kind}var Ece=(e=>(e[e.Symbol=0]="Symbol",e[e.Label=1]="Label",e[e.Keyword=2]="Keyword",e[e.This=3]="This",e[e.String=4]="String",e[e.TripleSlashReference=5]="TripleSlashReference",e))(Ece||{}),Pce=(e=>(e[e.Span=0]="Span",e[e.Node=1]="Node",e[e.StringLiteral=2]="StringLiteral",e[e.SearchedLocalFoundProperty=3]="SearchedLocalFoundProperty",e[e.SearchedPropertyFoundLocal=4]="SearchedPropertyFoundLocal",e))(Pce||{});function Ace(e,t=1){return{kind:t,node:e.name||e,context:Oce(e)}}function Ice(e){return e&&void 0===e.kind}function Oce(e){if(_u(e))return Lce(e);if(e.parent){if(!_u(e.parent)&&!AE(e.parent)){if(Em(e)){const t=NF(e.parent)?e.parent:Sx(e.parent)&&NF(e.parent.parent)&&e.parent.parent.left===e.parent?e.parent.parent:void 0;if(t&&0!==tg(t))return Lce(t)}if(UE(e.parent)||VE(e.parent))return e.parent.parent;if(qE(e.parent)||oE(e.parent)||Cl(e.parent))return e.parent;if(ju(e)){const t=bg(e);if(t){const e=uc(t,e=>_u(e)||pu(e)||Cu(e));return _u(e)?Lce(e):e}}const t=uc(e,kD);return t?Lce(t.parent):void 0}return e.parent.name===e||PD(e.parent)||AE(e.parent)||(Rl(e.parent)||lF(e.parent))&&e.parent.propertyName===e||90===e.kind&&Nv(e.parent,2080)?Lce(e.parent):void 0}}function Lce(e){if(e)switch(e.kind){case 261:return _E(e.parent)&&1===e.parent.declarations.length?WF(e.parent.parent)?e.parent.parent:Q_(e.parent.parent)?Lce(e.parent.parent):e.parent:e;case 209:return Lce(e.parent.parent);case 277:return e.parent.parent.parent;case 282:case 275:return e.parent.parent;case 274:case 281:return e.parent;case 227:return HF(e.parent)?e.parent:e;case 251:case 250:return{start:e.initializer,end:e.expression};case 304:case 305:return TQ(e.parent)?Lce(uc(e.parent,e=>NF(e)||Q_(e))):e;case 256:return{start:b(e.getChildren(e.getSourceFile()),e=>109===e.kind),end:e.caseBlock};default:return e}}function jce(e,t,n){if(!n)return;const r=Ice(n)?Zce(n.start,t,n.end):Zce(n,t);return r.start!==e.start||r.length!==e.length?{contextSpan:r}:void 0}var Mce,Rce=(e=>(e[e.Other=0]="Other",e[e.References=1]="References",e[e.Rename=2]="Rename",e))(Rce||{});function Bce(e,t,n,r,i){const o=WX(r,i),a={use:1},s=Mce.getReferencedSymbolsForNode(i,o,e,n,t,a),c=e.getTypeChecker(),l=Mce.getAdjustedNode(o,a),_=function(e){return 90===e.kind||!!_h(e)||uh(e)||137===e.kind&&PD(e.parent)}(l)?c.getSymbolAtLocation(l):void 0;return s&&s.length?B(s,({definition:e,references:n})=>e&&{definition:c.runWithCancellationToken(t,t=>function(e,t,n){const r=(()=>{switch(e.type){case 0:{const{symbol:r}=e,{displayParts:i,kind:o}=$ce(r,t,n),a=i.map(e=>e.text).join(""),s=r.declarations&&fe(r.declarations);return{...Wce(s?Cc(s)||s:n),name:a,kind:o,displayParts:i,context:Lce(s)}}case 1:{const{node:t}=e;return{...Wce(t),name:t.text,kind:"label",displayParts:[SY(t.text,17)]}}case 2:{const{node:t}=e,n=Fa(t.kind);return{...Wce(t),name:n,kind:"keyword",displayParts:[{text:n,kind:"keyword"}]}}case 3:{const{node:n}=e,r=t.getSymbolAtLocation(n),i=r&&Nue.getSymbolDisplayPartsDocumentationAndSymbolKind(t,r,n.getSourceFile(),hX(n),n).displayParts||[PY("this")];return{...Wce(n),name:"this",kind:"var",displayParts:i}}case 4:{const{node:t}=e;return{...Wce(t),name:t.text,kind:"var",displayParts:[SY(Xd(t),8)]}}case 5:return{textSpan:AQ(e.reference),sourceFile:e.file,name:e.reference.fileName,kind:"string",displayParts:[SY(`"${e.reference.fileName}"`,8)]};default:return un.assertNever(e)}})(),{sourceFile:i,textSpan:o,name:a,kind:s,displayParts:c,context:l}=r;return{containerKind:"",containerName:"",fileName:i.fileName,kind:s,name:a,textSpan:o,displayParts:c,...jce(o,i,l)}}(e,t,o)),references:n.map(e=>function(e,t){const n=Kce(e);return t?{...n,isDefinition:0!==e.kind&&nle(e.node,t)}:n}(e,_))}):void 0}function Jce(e,t,n,r,i){const o=WX(r,i);let a;const s=zce(e,t,n,o,i);if(212===o.parent.kind||209===o.parent.kind||213===o.parent.kind||108===o.kind)a=s&&[...s];else if(s){const r=Ge(s),i=new Set;for(;!r.isEmpty();){const o=r.dequeue();if(!bx(i,ZB(o.node)))continue;a=ie(a,o);const s=zce(e,t,n,o.node,o.node.pos);s&&r.enqueue(...s)}}const c=e.getTypeChecker();return E(a,e=>function(e,t){const n=Gce(e);if(0!==e.kind){const{node:r}=e;return{...n,...Qce(r,t)}}return{...n,kind:"",displayParts:[]}}(e,c))}function zce(e,t,n,r,i){if(308===r.kind)return;const o=e.getTypeChecker();if(305===r.parent.kind){const e=[];return Mce.getReferenceEntriesForShorthandPropertyAssignment(r,o,t=>e.push(Ace(t))),e}if(108===r.kind||am(r.parent)){const e=o.getSymbolAtLocation(r);return e.valueDeclaration&&[Ace(e.valueDeclaration)]}return Uce(i,r,e,n,t,{implementations:!0,use:1})}function qce(e,t,n,r,i,o,a){return E(Vce(Mce.getReferencedSymbolsForNode(i,r,e,n,t,o)),t=>a(t,r,e.getTypeChecker()))}function Uce(e,t,n,r,i,o={},a=new Set(r.map(e=>e.fileName))){return Vce(Mce.getReferencedSymbolsForNode(e,t,n,r,i,o,a))}function Vce(e){return e&&O(e,e=>e.references)}function Wce(e){const t=e.getSourceFile();return{sourceFile:t,textSpan:Zce(kD(e)?e.expression:e,t)}}function $ce(e,t,n){const r=Mce.getIntersectingMeaningFromDeclarations(n,e),i=e.declarations&&fe(e.declarations)||n,{displayParts:o,symbolKind:a}=Nue.getSymbolDisplayPartsDocumentationAndSymbolKind(t,e,i.getSourceFile(),i,i,r);return{displayParts:o,kind:a}}function Hce(e,t,n,r,i){return{...Gce(e),...r&&Xce(e,t,n,i)}}function Kce(e){const t=Gce(e);if(0===e.kind)return{...t,isWriteAccess:!1};const{kind:n,node:r}=e;return{...t,isWriteAccess:tle(r),isInString:2===n||void 0}}function Gce(e){if(0===e.kind)return{textSpan:e.textSpan,fileName:e.fileName};{const t=e.node.getSourceFile(),n=Zce(e.node,t);return{textSpan:n,fileName:t.fileName,...jce(n,t,e.context)}}}function Xce(e,t,n,r){if(0!==e.kind&&(aD(t)||ju(t))){const{node:r,kind:i}=e,o=r.parent,a=t.text,s=iP(o);if(s||aY(o)&&o.name===r&&void 0===o.dotDotDotToken){const e={prefixText:a+": "},t={suffixText:": "+a};if(3===i)return e;if(4===i)return t;if(s){const n=o.parent;return uF(n)&&NF(n.parent)&&eg(n.parent.left)?e:t}return e}if(PE(o)&&!o.propertyName)return T((LE(t.parent)?n.getExportSpecifierLocalTargetSymbol(t.parent):n.getSymbolAtLocation(t)).declarations,o)?{prefixText:a+" as "}:kG;if(LE(o)&&!o.propertyName)return t===e.node||n.getSymbolAtLocation(t)===n.getSymbolAtLocation(e.node)?{prefixText:a+" as "}:{suffixText:" as "+a}}if(0!==e.kind&&zN(e.node)&&Sx(e.node.parent)){const e=nY(r);return{prefixText:e,suffixText:e}}return kG}function Qce(e,t){const n=t.getSymbolAtLocation(_u(e)&&e.name?e.name:e);return n?$ce(n,t,e):211===e.kind?{kind:"interface",displayParts:[wY(21),PY("object literal"),wY(22)]}:232===e.kind?{kind:"local class",displayParts:[wY(21),PY("anonymous local class"),wY(22)]}:{kind:yX(e),displayParts:[]}}function Yce(e){const t=Gce(e);if(0===e.kind)return{fileName:t.fileName,span:{textSpan:t.textSpan,kind:"reference"}};const n=tle(e.node),r={textSpan:t.textSpan,kind:n?"writtenReference":"reference",isInString:2===e.kind||void 0,...t.contextSpan&&{contextSpan:t.contextSpan}};return{fileName:t.fileName,span:r}}function Zce(e,t,n){let r=e.getStart(t),i=(n||e).getEnd();return ju(e)&&i-r>2&&(un.assert(void 0===n),r+=1,i-=1),270===(null==n?void 0:n.kind)&&(i=n.getFullStart()),$s(r,i)}function ele(e){return 0===e.kind?e.textSpan:Zce(e.node,e.node.getSourceFile())}function tle(e){const t=_h(e);return!!t&&function(e){if(33554432&e.flags)return!0;switch(e.kind){case 227:case 209:case 264:case 232:case 90:case 267:case 307:case 282:case 274:case 272:case 277:case 265:case 339:case 347:case 292:case 268:case 271:case 275:case 281:case 170:case 305:case 266:case 169:return!0;case 304:return!TQ(e.parent);case 263:case 219:case 177:case 175:case 178:case 179:return!!e.body;case 261:case 173:return!!e.initializer||nP(e.parent);case 174:case 172:case 349:case 342:return!1;default:return un.failBadSyntaxKind(e)}}(t)||90===e.kind||cx(e)}function nle(e,t){var n;if(!t)return!1;const r=_h(e)||(90===e.kind?e.parent:uh(e)||137===e.kind&&PD(e.parent)?e.parent.parent:void 0),i=r&&NF(r)?r.left:void 0;return!(!r||!(null==(n=t.declarations)?void 0:n.some(e=>e===r||e===i)))}(e=>{function t(e,t){return 1===t.use?e=UX(e):2===t.use&&(e=VX(e)),e}function n(e,t,n){let r;const i=t.get(e.path)||l;for(const e of i)if(NV(e)){const t=n.getSourceFileByPath(e.file),i=FV(n,e);DV(i)&&(r=ie(r,{kind:0,fileName:t.fileName,textSpan:AQ(i)}))}return r}function r(e,t,n){if(e.parent&&vE(e.parent)){const e=n.getAliasedSymbol(t),r=n.getMergedSymbol(e);if(e!==r)return r}}function i(e,t,n,r,i,a){const c=1536&e.flags&&e.declarations&&b(e.declarations,sP);if(!c)return;const l=e.exports.get("export="),u=s(t,e,!!l,n,a);if(!l||!a.has(c.fileName))return u;const d=t.getTypeChecker();return o(t,u,_(e=ox(l,d),void 0,n,a,d,r,i))}function o(e,...t){let n;for(const r of t)if(r&&r.length)if(n)for(const t of r){if(!t.definition||0!==t.definition.type){n.push(t);continue}const r=t.definition.symbol,i=k(n,e=>!!e.definition&&0===e.definition.type&&e.definition.symbol===r);if(-1===i){n.push(t);continue}const o=n[i];n[i]={definition:o.definition,references:o.references.concat(t.references).sort((t,n)=>{const r=a(e,t),i=a(e,n);if(r!==i)return vt(r,i);const o=ele(t),s=ele(n);return o.start!==s.start?vt(o.start,s.start):vt(o.length,s.length)})}}else n=r;return n}function a(e,t){const n=0===t.kind?e.getSourceFile(t.fileName):t.node.getSourceFile();return e.getSourceFiles().indexOf(n)}function s(e,t,n,r,i){un.assert(!!t.valueDeclaration);const o=B(xce(e,r,t),e=>{if("import"===e.kind){const t=e.literal.parent;if(rF(t)){const e=nt(t.parent,iF);if(n&&!e.qualifier)return}return Ace(e.literal)}return"implicit"===e.kind?Ace(e.literal.text!==Uu&&QI(e.referencingFile,e=>2&e.transformFlags?zE(e)||qE(e)||WE(e)?e:void 0:"skip")||e.referencingFile.statements[0]||e.referencingFile):{kind:0,fileName:e.referencingFile.fileName,textSpan:AQ(e.ref)}});if(t.declarations)for(const e of t.declarations)switch(e.kind){case 308:break;case 268:i.has(e.getSourceFile().fileName)&&o.push(Ace(e.name));break;default:un.assert(!!(33554432&t.flags),"Expected a module symbol to be declared by a SourceFile or ModuleDeclaration.")}const a=t.exports.get("export=");if(null==a?void 0:a.declarations)for(const e of a.declarations){const t=e.getSourceFile();if(i.has(t.fileName)){const n=NF(e)&&dF(e.left)?e.left.expression:AE(e)?un.checkDefined(OX(e,95,t)):Cc(e)||e;o.push(Ace(n))}}return o.length?[{definition:{type:0,symbol:t},references:o}]:l}function c(e){return 148===e.kind&&eF(e.parent)&&148===e.parent.operator}function _(e,t,n,r,i,o,a){const s=t&&function(e,t,n,r){const{parent:i}=t;return LE(i)&&r?M(t,e,i,n):f(e.declarations,r=>{if(!r.parent){if(33554432&e.flags)return;un.fail(`Unexpected symbol at ${un.formatSyntaxKind(t.kind)}: ${un.formatSymbol(e)}`)}return qD(r.parent)&&KD(r.parent.parent)?n.getPropertyOfType(n.getTypeFromTypeNode(r.parent.parent),e.name):void 0})}(e,t,i,!Z(a))||e,c=t&&2!==a.use?X(t,s):7,l=[],_=new y(n,r,t?function(e){switch(e.kind){case 177:case 137:return 1;case 80:if(u_(e.parent))return un.assert(e.parent.name===e),2;default:return 0}}(t):0,i,o,c,a,l),u=Z(a)&&s.declarations?b(s.declarations,LE):void 0;if(u)j(u.name,s,u,_.createSearch(t,e,void 0),_,!0,!0);else if(t&&90===t.kind&&"default"===s.escapedName&&s.parent)R(t,s,_),v(t,s,{exportingModuleSymbol:s.parent,exportKind:1},_);else{const e=_.createSearch(t,s,void 0,{allSearchSymbols:t?H(s,t,i,2===a.use,!!a.providePrefixAndSuffixTextForRename,!!a.implementations):[s]});p(s,_,e)}return l}function p(e,t,n){const r=function(e){const{declarations:t,flags:n,parent:r,valueDeclaration:i}=e;if(i&&(219===i.kind||232===i.kind))return i;if(!t)return;if(8196&n){const e=b(t,e=>wv(e,2)||Kl(e));return e?Th(e,264):void 0}if(t.some(aY))return;const o=r&&!(262144&e.flags);if(o&&(!Qu(r)||r.globalExports))return;let a;for(const e of t){const t=hX(e);if(a&&a!==t)return;if(!t||308===t.kind&&!Zp(t))return;if(a=t,vF(a)){let e;for(;e=Rg(a);)a=e}}return o?a.getSourceFile():a}(e);if(r)A(r,r.getSourceFile(),n,t,!(sP(r)&&!T(t.sourceFiles,r)));else for(const e of t.sourceFiles)t.cancellationToken.throwIfCancellationRequested(),C(e,n,t)}let m;var g;function h(e){if(!(33555968&e.flags))return;const t=e.declarations&&b(e.declarations,e=>!sP(e)&&!gE(e));return t&&t.symbol}e.getReferencedSymbolsForNode=function(e,a,u,d,p,m={},g=new Set(d.map(e=>e.fileName))){var h,y;if(sP(a=t(a,m))){const t=rle.getReferenceAtPosition(a,e,u);if(!(null==t?void 0:t.file))return;const r=u.getTypeChecker().getMergedSymbol(t.file.symbol);if(r)return s(u,r,!1,d,g);const i=u.getFileIncludeReasons();if(!i)return;return[{definition:{type:5,reference:t.reference,file:a},references:n(t.file,i,u)||l}]}if(!m.implementations){const e=function(e,t,n){if(MQ(e.kind)){if(116===e.kind&&SF(e.parent))return;if(148===e.kind&&!c(e))return;return function(e,t,n,r){const i=O(e,e=>(n.throwIfCancellationRequested(),B(D(e,Fa(t),e),e=>{if(e.kind===t&&(!r||r(e)))return Ace(e)})));return i.length?[{definition:{type:2,node:i[0].node},references:i}]:void 0}(t,e.kind,n,148===e.kind?c:void 0)}if(uf(e.parent)&&e.parent.name===e)return function(e,t){const n=O(e,e=>(t.throwIfCancellationRequested(),B(D(e,"meta",e),e=>{const t=e.parent;if(uf(t))return Ace(t)})));return n.length?[{definition:{type:2,node:n[0].node},references:n}]:void 0}(t,n);if(fD(e)&&ED(e.parent))return[{definition:{type:2,node:e},references:[Ace(e)]}];if(aX(e)){const t=iX(e.parent,e.text);return t&&E(t.parent,t)}return sX(e)?E(e.parent,e):vX(e)?function(e,t,n){let r=em(e,!1,!1),i=256;switch(r.kind){case 175:case 174:if(Jf(r)){i&=zv(r),r=r.parent;break}case 173:case 172:case 177:case 178:case 179:i&=zv(r),r=r.parent;break;case 308:if(rO(r)||W(e))return;case 263:case 219:break;default:return}const o=O(308===r.kind?t:[r.getSourceFile()],e=>(n.throwIfCancellationRequested(),D(e,"this",sP(r)?e:r).filter(e=>{if(!vX(e))return!1;const t=em(e,!1,!1);if(!au(t))return!1;switch(r.kind){case 219:case 263:return r.symbol===t.symbol;case 175:case 174:return Jf(r)&&r.symbol===t.symbol;case 232:case 264:case 211:return t.parent&&au(t.parent)&&r.symbol===t.parent.symbol&&Dv(t)===!!i;case 308:return 308===t.kind&&!rO(t)&&!W(e)}}))).map(e=>Ace(e));return[{definition:{type:3,node:f(o,e=>TD(e.node.parent)?e.node:void 0)||e},references:o}]}(e,t,n):108===e.kind?function(e){let t=im(e,!1);if(!t)return;let n=256;switch(t.kind){case 173:case 172:case 175:case 174:case 177:case 178:case 179:n&=zv(t),t=t.parent;break;default:return}const r=B(D(t.getSourceFile(),"super",t),e=>{if(108!==e.kind)return;const r=im(e,!1);return r&&Dv(r)===!!n&&r.parent.symbol===t.symbol?Ace(e):void 0});return[{definition:{type:0,symbol:t.symbol},references:r}]}(e):void 0}(a,d,p);if(e)return e}const v=u.getTypeChecker(),b=v.getSymbolAtLocation(PD(a)&&a.parent.name||a);if(!b){if(!m.implementations&&ju(a)){if(oY(a)){const e=u.getFileIncludeReasons(),t=null==(y=null==(h=u.getResolvedModuleFromModuleSpecifier(a))?void 0:h.resolvedModule)?void 0:y.resolvedFileName,r=t?u.getSourceFile(t):void 0;if(r)return[{definition:{type:4,node:a},references:n(r,e,u)||l}]}return function(e,t,n,r){const i=BX(e,n),o=O(t,t=>(r.throwIfCancellationRequested(),B(D(t,e.text),r=>{if(ju(r)&&r.text===e.text){if(!i)return $N(r)&&!Rb(r,t)?void 0:Ace(r,2);{const e=BX(r,n);if(i!==n.getStringType()&&(i===e||function(e,t){if(wD(e.parent))return t.getPropertyOfType(t.getTypeAtLocation(e.parent.parent),e.text)}(r,n)))return Ace(r,2)}}})));return[{definition:{type:4,node:e},references:o}]}(a,d,v,p)}return}if("export="===b.escapedName)return s(u,b.parent,!1,d,g);const x=i(b,u,d,p,m,g);if(x&&!(33554432&b.flags))return x;const k=r(a,b,v),S=k&&i(k,u,d,p,m,g);return o(u,x,_(b,a,d,g,v,p,m),S)},e.getAdjustedNode=t,e.getReferencesForFileName=function(e,t,r,i=new Set(r.map(e=>e.fileName))){var o,a;const c=null==(o=t.getSourceFile(e))?void 0:o.symbol;if(c)return(null==(a=s(t,c,!1,r,i)[0])?void 0:a.references)||l;const _=t.getFileIncludeReasons(),u=t.getSourceFile(e);return u&&_&&n(u,_,t)||l},(g=m||(m={}))[g.None=0]="None",g[g.Constructor=1]="Constructor",g[g.Class=2]="Class";class y{constructor(e,t,n,r,i,o,a,s){this.sourceFiles=e,this.sourceFilesSet=t,this.specialSearchKind=n,this.checker=r,this.cancellationToken=i,this.searchMeaning=o,this.options=a,this.result=s,this.inheritsFromCache=new Map,this.markSeenContainingTypeReference=JQ(),this.markSeenReExportRHS=JQ(),this.symbolIdToReferences=[],this.sourceFileToSeenSymbols=[]}includesSourceFile(e){return this.sourceFilesSet.has(e.fileName)}getImportSearches(e,t){return this.importTracker||(this.importTracker=hce(this.sourceFiles,this.sourceFilesSet,this.checker,this.cancellationToken)),this.importTracker(e,t,2===this.options.use)}createSearch(e,t,n,r={}){const{text:i=Fy(yc(vb(t)||h(t)||t)),allSearchSymbols:o=[t]}=r,a=fc(i),s=this.options.implementations&&e?function(e,t,n){const r=uX(e)?e.parent:void 0,i=r&&n.getTypeAtLocation(r.expression),o=B(i&&(i.isUnionOrIntersection()?i.types:i.symbol===t.parent?void 0:[i]),e=>e.symbol&&96&e.symbol.flags?e.symbol:void 0);return 0===o.length?void 0:o}(e,t,this.checker):void 0;return{symbol:t,comingFrom:n,text:i,escapedText:a,parents:s,allSearchSymbols:o,includes:e=>T(o,e)}}referenceAdder(e){const t=eJ(e);let n=this.symbolIdToReferences[t];return n||(n=this.symbolIdToReferences[t]=[],this.result.push({definition:{type:0,symbol:e},references:n})),(e,t)=>n.push(Ace(e,t))}addStringOrCommentReference(e,t){this.result.push({definition:void 0,references:[{kind:0,fileName:e,textSpan:t}]})}markSearchedSymbols(e,t){const n=ZB(e),r=this.sourceFileToSeenSymbols[n]||(this.sourceFileToSeenSymbols[n]=new Set);let i=!1;for(const e of t)i=q(r,eJ(e))||i;return i}}function v(e,t,n,r){const{importSearches:i,singleReferences:o,indirectUsers:a}=r.getImportSearches(t,n);if(o.length){const e=r.referenceAdder(t);for(const t of o)x(t,r)&&e(t)}for(const[e,t]of i)P(e.getSourceFile(),r.createSearch(e,t,1),r);if(a.length){let i;switch(n.exportKind){case 0:i=r.createSearch(e,t,1);break;case 1:i=2===r.options.use?void 0:r.createSearch(e,t,1,{text:"default"})}if(i)for(const e of a)C(e,i,r)}}function x(e,t){return!(!I(e,t)||2===t.options.use&&(!aD(e)&&!Rl(e.parent)||Rl(e.parent)&&Kd(e)))}function S(e,t){if(e.declarations)for(const n of e.declarations){const r=n.getSourceFile();P(r,t.createSearch(n,e,0),t,t.includesSourceFile(r))}}function C(e,t,n){void 0!==Q8(e).get(t.escapedText)&&P(e,t,n)}function w(e,t,n,r,i=n){const o=Zs(e.parent,e.parent.parent)?ge(t.getSymbolsOfParameterPropertyDeclaration(e.parent,e.text)):t.getSymbolAtLocation(e);if(o)for(const a of D(n,o.name,i)){if(!aD(a)||a===e||a.escapedText!==e.escapedText)continue;const n=t.getSymbolAtLocation(a);if(n===o||t.getShorthandAssignmentValueSymbol(a.parent)===o||LE(a.parent)&&M(a,n,a.parent,t)===o){const e=r(a);if(e)return e}}}function D(e,t,n=e){return B(F(e,t,n),t=>{const n=WX(e,t);return n===e?void 0:n})}function F(e,t,n=e){const r=[];if(!t||!t.length)return r;const i=e.text,o=i.length,a=t.length;let s=i.indexOf(t,n.pos);for(;s>=0&&!(s>n.end);){const e=s+a;0!==s&&fs(i.charCodeAt(s-1),99)||e!==o&&fs(i.charCodeAt(e),99)||r.push(s),s=i.indexOf(t,s+a+1)}return r}function E(e,t){const n=e.getSourceFile(),r=t.text,i=B(D(n,r,e),e=>e===t||aX(e)&&iX(e,r)===t?Ace(e):void 0);return[{definition:{type:1,node:t},references:i}]}function P(e,t,n,r=!0){return n.cancellationToken.throwIfCancellationRequested(),A(e,e,t,n,r)}function A(e,t,n,r,i){if(r.markSearchedSymbols(t,n.allSearchSymbols))for(const o of F(t,n.text,e))L(t,o,n,r,i)}function I(e,t){return!!(WG(e)&t.searchMeaning)}function L(e,t,n,r,i){const o=WX(e,t);if(!function(e,t){switch(e.kind){case 81:if(uP(e.parent))return!0;case 80:return e.text.length===t.length;case 15:case 11:{const n=e;return n.text.length===t.length&&(mX(n)||pX(e)||gX(e)||fF(e.parent)&&ng(e.parent)&&e.parent.arguments[1]===e||Rl(e.parent))}case 9:return mX(e)&&e.text.length===t.length;case 90:return 7===t.length;default:return!1}}(o,n.text))return void(!r.options.implementations&&(r.options.findInStrings&&nQ(e,t)||r.options.findInComments&&wQ(e,t))&&r.addStringOrCommentReference(e.fileName,Ws(t,n.text.length)));if(!I(o,r))return;let a=r.checker.getSymbolAtLocation(o);if(!a)return;const s=o.parent;if(PE(s)&&s.propertyName===o)return;if(LE(s))return un.assert(80===o.kind||11===o.kind),void j(o,a,s,n,r,i);if(Nl(s)&&s.isNameFirst&&s.typeExpression&&TP(s.typeExpression.type)&&s.typeExpression.type.jsDocPropertyTags&&u(s.typeExpression.type.jsDocPropertyTags))return void function(e,t,n,r){const i=r.referenceAdder(n.symbol);R(t,n.symbol,r),d(e,e=>{xD(e.name)&&i(e.name.left)})}(s.typeExpression.type.jsDocPropertyTags,o,n,r);const c=function(e,t,n,r){const{checker:i}=r;return K(t,n,i,!1,2!==r.options.use||!!r.options.providePrefixAndSuffixTextForRename,(n,r,i,o)=>(i&&G(t)!==G(i)&&(i=void 0),e.includes(i||r||n)?{symbol:!r||6&rx(n)?n:r,kind:o}:void 0),t=>!(e.parents&&!e.parents.some(e=>V(t.parent,e,r.inheritsFromCache,i))))}(n,a,o,r);if(c){switch(r.specialSearchKind){case 0:i&&R(o,c,r);break;case 1:!function(e,t,n,r){KG(e)&&R(e,n.symbol,r);const i=()=>r.referenceAdder(n.symbol);if(u_(e.parent))un.assert(90===e.kind||e.parent.name===e),function(e,t,n){const r=J(e);if(r&&r.declarations)for(const e of r.declarations){const r=OX(e,137,t);un.assert(177===e.kind&&!!r),n(r)}e.exports&&e.exports.forEach(e=>{const t=e.valueDeclaration;if(t&&175===t.kind){const e=t.body;e&&Y(e,110,e=>{KG(e)&&n(e)})}})}(n.symbol,t,i());else{const t=tb(rX(e).parent);t&&(function(e,t){const n=J(e.symbol);if(n&&n.declarations)for(const e of n.declarations){un.assert(177===e.kind);const n=e.body;n&&Y(n,108,e=>{HG(e)&&t(e)})}}(t,i()),function(e,t){if(function(e){return!!J(e.symbol)}(e))return;const n=e.symbol,r=t.createSearch(void 0,n,void 0);p(n,t,r)}(t,r))}}(o,e,n,r);break;case 2:!function(e,t,n){R(e,t.symbol,n);const r=e.parent;if(2===n.options.use||!u_(r))return;un.assert(r.name===e);const i=n.referenceAdder(t.symbol);for(const e of r.members)m_(e)&&Dv(e)&&e.body&&e.body.forEachChild(function e(t){110===t.kind?i(t):r_(t)||u_(t)||t.forEachChild(e)})}(o,n,r);break;default:un.assertNever(r.specialSearchKind)}Em(o)&&lF(o.parent)&&Mm(o.parent.parent.parent)&&(a=o.parent.symbol,!a)||function(e,t,n,r){const i=Tce(e,t,r.checker,1===n.comingFrom);if(!i)return;const{symbol:o}=i;0===i.kind?Z(r.options)||S(o,r):v(e,o,i.exportInfo,r)}(o,a,n,r)}else!function({flags:e,valueDeclaration:t},n,r){const i=r.checker.getShorthandAssignmentValueSymbol(t),o=t&&Cc(t);33554432&e||!o||!n.includes(i)||R(o,i,r)}(a,n,r)}function j(e,t,n,r,i,o,a){un.assert(!a||!!i.options.providePrefixAndSuffixTextForRename,"If alwaysGetReferences is true, then prefix/suffix text must be enabled");const{parent:s,propertyName:c,name:l}=n,_=s.parent,u=M(e,t,n,i.checker);if(a||r.includes(u)){if(c?e===c?(_.moduleSpecifier||d(),o&&2!==i.options.use&&i.markSeenReExportRHS(l)&&R(l,un.checkDefined(n.symbol),i)):i.markSeenReExportRHS(e)&&d():2===i.options.use&&Kd(l)||d(),!Z(i.options)||a){const t=Kd(e)||Kd(n.name)?1:0,r=un.checkDefined(n.symbol),o=Cce(r,t,i.checker);o&&v(e,r,o,i)}if(1!==r.comingFrom&&_.moduleSpecifier&&!c&&!Z(i.options)){const e=i.checker.getExportSpecifierLocalTargetSymbol(n);e&&S(e,i)}}function d(){o&&R(e,u,i)}}function M(e,t,n,r){return function(e,t){const{parent:n,propertyName:r,name:i}=t;return un.assert(r===e||i===e),r?r===e:!n.parent.moduleSpecifier}(e,n)&&r.getExportSpecifierLocalTargetSymbol(n)||t}function R(e,t,n){const{kind:r,symbol:i}="kind"in t?t:{kind:void 0,symbol:t};if(2===n.options.use&&90===e.kind)return;const o=n.referenceAdder(i);n.options.implementations?function(e,t,n){if(lh(e)&&(33554432&(r=e.parent).flags?!pE(r)&&!fE(r):Af(r)?Eu(r):o_(r)?r.body:u_(r)||ou(r)))return void t(e);var r;if(80!==e.kind)return;305===e.parent.kind&&Q(e,n.checker,t);const i=z(e);if(i)return void t(i);const o=uc(e,e=>!xD(e.parent)&&!b_(e.parent)&&!h_(e.parent)),a=o.parent;if(Fu(a)&&a.type===o&&n.markSeenContainingTypeReference(a))if(Eu(a))s(a.initializer);else if(r_(a)&&a.body){const e=a.body;242===e.kind?Df(e,e=>{e.expression&&s(e.expression)}):s(e)}else(W_(a)||jF(a))&&s(a.expression);function s(e){U(e)&&t(e)}}(e,o,n):o(e,r)}function J(e){return e.members&&e.members.get("__constructor")}function z(e){return aD(e)||dF(e)?z(e.parent):OF(e)?tt(e.parent.parent,en(u_,pE)):void 0}function U(e){switch(e.kind){case 218:return U(e.expression);case 220:case 219:case 211:case 232:case 210:return!0;default:return!1}}function V(e,t,n,r){if(e===t)return!0;const i=eJ(e)+","+eJ(t),o=n.get(i);if(void 0!==o)return o;n.set(i,!1);const a=!!e.declarations&&e.declarations.some(e=>xh(e).some(e=>{const i=r.getTypeAtLocation(e);return!!i&&!!i.symbol&&V(i.symbol,t,n,r)}));return n.set(i,a),a}function W(e){return 80===e.kind&&170===e.parent.kind&&e.parent.name===e}function H(e,t,n,r,i,o){const a=[];return K(e,t,n,r,!(r&&i),(t,n,r)=>{r&&G(e)!==G(r)&&(r=void 0),a.push(r||n||t)},()=>!o),a}function K(e,t,n,i,o,a,s){const c=Y8(t);if(c){const e=n.getShorthandAssignmentValueSymbol(t.parent);if(e&&i)return a(e,void 0,void 0,3);const r=n.getContextualType(c.parent),o=r&&f(Z8(c,n,r,!0),e=>d(e,4));if(o)return o;const s=function(e,t){return TQ(e.parent.parent)?t.getPropertySymbolOfDestructuringAssignment(e):void 0}(t,n),l=s&&a(s,void 0,void 0,4);if(l)return l;const _=e&&a(e,void 0,void 0,3);if(_)return _}const l=r(t,e,n);if(l){const e=a(l,void 0,void 0,1);if(e)return e}const _=d(e);if(_)return _;if(e.valueDeclaration&&Zs(e.valueDeclaration,e.valueDeclaration.parent)){const t=n.getSymbolsOfParameterPropertyDeclaration(nt(e.valueDeclaration,TD),e.name);return un.assert(2===t.length&&!!(1&t[0].flags)&&!!(4&t[1].flags)),d(1&e.flags?t[1]:t[0])}const u=Hu(e,282);if(!i||u&&!u.propertyName){const e=u&&n.getExportSpecifierLocalTargetSymbol(u);if(e){const t=a(e,void 0,void 0,1);if(t)return t}}if(!i){let r;return r=o?aY(t.parent)?sY(n,t.parent):void 0:p(e,n),r&&d(r,4)}if(un.assert(i),o){const t=p(e,n);return t&&d(t,4)}function d(e,t){return f(n.getRootSymbols(e),r=>a(e,r,void 0,t)||(r.parent&&96&r.parent.flags&&s(r)?function(e,t,n,r){const i=new Set;return function e(o){if(96&o.flags&&bx(i,o))return f(o.declarations,i=>f(xh(i),i=>{const o=n.getTypeAtLocation(i),a=o.symbol&&n.getPropertyOfType(o,t);return a&&f(n.getRootSymbols(a),r)||o.symbol&&e(o.symbol)}))}(e)}(r.parent,r.name,n,n=>a(e,r,n,t)):void 0))}function p(e,t){const n=Hu(e,209);if(n&&aY(n))return sY(t,n)}}function G(e){return!!e.valueDeclaration&&!!(256&Bv(e.valueDeclaration))}function X(e,t){let n=WG(e);const{declarations:r}=t;if(r){let e;do{e=n;for(const e of r){const t=VG(e);t&n&&(n|=t)}}while(n!==e)}return n}function Q(e,t,n){const r=t.getSymbolAtLocation(e),i=t.getShorthandAssignmentValueSymbol(r.valueDeclaration);if(i)for(const e of i.getDeclarations())1&VG(e)&&n(e)}function Y(e,t,n){XI(e,e=>{e.kind===t&&n(e),Y(e,t,n)})}function Z(e){return 2===e.use&&e.providePrefixAndSuffixTextForRename}e.eachExportReference=function(e,t,n,r,i,o,a,s){const c=hce(e,new Set(e.map(e=>e.fileName)),t,n),{importSearches:l,indirectUsers:_,singleReferences:u}=c(r,{exportKind:a?1:0,exportingModuleSymbol:i},!1);for(const[e]of l)s(e);for(const e of u)aD(e)&&iF(e.parent)&&s(e);for(const e of _)for(const n of D(e,a?"default":o)){const e=t.getSymbolAtLocation(n),i=$(null==e?void 0:e.declarations,e=>!!tt(e,AE));!aD(n)||Rl(n.parent)||e!==r&&!i||s(n)}},e.isSymbolReferencedInFile=function(e,t,n,r=n){return w(e,t,n,()=>!0,r)||!1},e.eachSymbolReferenceInFile=w,e.getTopMostDeclarationNamesInFile=function(e,t){return N(D(t,e),e=>!!_h(e)).reduce((e,t)=>{const n=function(e){let t=0;for(;e;)e=hX(e),t++;return t}(t);return $(e.declarationNames)&&n!==e.depth?ne===i)&&r(t,a))return!0}return!1},e.getIntersectingMeaningFromDeclarations=X,e.getReferenceEntriesForShorthandPropertyAssignment=Q})(Mce||(Mce={}));var rle={};function ile(e,t,n,r,i){var o;const a=ale(t,n,e),s=a&&[(c=a.reference.fileName,_=a.fileName,u=a.unverified,{fileName:_,textSpan:$s(0,0),kind:"script",name:c,containerName:void 0,containerKind:void 0,unverified:u})]||l;var c,_,u;if(null==a?void 0:a.file)return s;const p=WX(t,n);if(p===t)return;const{parent:f}=p,m=e.getTypeChecker();if(164===p.kind||aD(p)&&OP(f)&&f.tagName===p){const e=function(e,t){const n=uc(t,__);if(!n||!n.name)return;const r=uc(n,u_);if(!r)return;const i=yh(r);if(!i)return;const o=ah(i.expression),a=AF(o)?o.symbol:e.getSymbolAtLocation(o);if(!a)return;const s=Fv(n)?e.getTypeOfSymbol(a):e.getDeclaredTypeOfSymbol(a);let c;if(kD(n.name)){const t=e.getSymbolAtLocation(n.name);if(!t)return;c=Wh(t)?b(e.getPropertiesOfType(s),e=>e.escapedName===t.escapedName):e.getPropertyOfType(s,mc(t.escapedName))}else c=e.getPropertyOfType(s,mc(jp(n.name)));return c?fle(e,c,t):void 0}(m,p);if(void 0!==e||164!==p.kind)return e||l}if(aX(p)){const e=iX(p.parent,p.text);return e?[gle(m,e,"label",p.text,void 0)]:void 0}switch(p.kind){case 90:if(!eP(p.parent))break;case 84:const e=uc(p.parent,iE);if(e)return[hle(e,t)]}let g;switch(p.kind){case 107:case 135:case 127:g=o_;const e=uc(p,g);return e?[vle(m,e)]:void 0}if(fD(p)&&ED(p.parent)){const e=p.parent.parent,{symbol:t,failedAliasResolution:n}=ple(e,m,i),r=N(e.members,ED),o=t?m.symbolToString(t,e):"",a=p.getSourceFile();return E(r,e=>{let{pos:t}=jb(e);return t=Qa(a.text,t),gle(m,e,"constructor","static {}",o,!1,n,{start:t,length:6})})}let{symbol:h,failedAliasResolution:y}=ple(p,m,i),x=p;if(r&&y){const e=d([p,...(null==h?void 0:h.declarations)||l],e=>uc(e,Tp)),t=e&&yg(e);t&&(({symbol:h,failedAliasResolution:y}=ple(t,m,i)),x=t)}if(!h&&oY(x)){const n=null==(o=e.getResolvedModuleFromModuleSpecifier(x,t))?void 0:o.resolvedModule;if(n)return[{name:x.text,fileName:n.resolvedFileName,containerName:void 0,containerKind:void 0,kind:"script",textSpan:Ws(0,0),failedAliasResolution:y,isAmbient:uO(n.resolvedFileName),unverified:x!==p}]}if(Zl(p)&&(__(f)||Sc(f))&&(h=f.symbol),!h)return K(s,function(e,t){return B(t.getIndexInfosAtLocation(e),e=>e.declaration&&vle(t,e.declaration))}(p,m));if(r&&v(h.declarations,e=>e.getSourceFile().fileName===t.fileName))return;const k=function(e,t){const n=function(e){const t=uc(e,e=>!uX(e)),n=null==t?void 0:t.parent;return n&&L_(n)&&um(n)===t?n:void 0}(t),r=n&&e.getResolvedSignature(n);return tt(r&&r.declaration,e=>r_(e)&&!BD(e))}(m,p);if(k&&(!bu(p.parent)||!function(e){switch(e.kind){case 177:case 186:case 180:case 181:return!0;default:return!1}}(k))){const e=vle(m,k,y);let t=e=>e!==k;if(m.getRootSymbols(h).some(e=>function(e,t){var n;return e===t.symbol||e===t.symbol.parent||rb(t.parent)||!L_(t.parent)&&e===(null==(n=tt(t.parent,au))?void 0:n.symbol)}(e,k))){if(!PD(k))return[e];t=e=>e!==k&&(dE(e)||AF(e))}const n=fle(m,h,p,y,t)||l;return 108===p.kind?[e,...n]:[...n,e]}if(305===p.parent.kind){const e=m.getShorthandAssignmentValueSymbol(h.valueDeclaration);return K((null==e?void 0:e.declarations)?e.declarations.map(t=>mle(t,m,e,p,!1,y)):l,ole(m,p))}if(t_(p)&&lF(f)&&sF(f.parent)&&p===(f.propertyName||f.name)){const e=VQ(p),t=m.getTypeAtLocation(f.parent);return void 0===e?l:O(t.isUnion()?t.types:[t],t=>{const n=t.getProperty(e);return n&&fle(m,n,p)})}const S=ole(m,p);return K(s,S.length?S:fle(m,h,p,y))}function ole(e,t){const n=Y8(t);if(n){const r=n&&e.getContextualType(n.parent);if(r)return O(Z8(n,e,r,!1),n=>fle(e,n,t))}return l}function ale(e,t,n){var r,i;const o=ble(e.referencedFiles,t);if(o){const t=n.getSourceFileFromReference(e,o);return t&&{reference:o,fileName:t.fileName,file:t,unverified:!1}}const a=ble(e.typeReferenceDirectives,t);if(a){const t=null==(r=n.getResolvedTypeReferenceDirectiveFromTypeReferenceDirective(a,e))?void 0:r.resolvedTypeReferenceDirective,i=t&&n.getSourceFile(t.resolvedFileName);return i&&{reference:a,fileName:i.fileName,file:i,unverified:!1}}const s=ble(e.libReferenceDirectives,t);if(s){const e=n.getLibFileFromReference(s);return e&&{reference:s,fileName:e.fileName,file:e,unverified:!1}}if(e.imports.length||e.moduleAugmentations.length){const r=$X(e,t);let o;if(oY(r)&&Cs(r.text)&&(o=n.getResolvedModuleFromModuleSpecifier(r,e))){const t=null==(i=o.resolvedModule)?void 0:i.resolvedFileName,a=t||Mo(Do(e.fileName),r.text);return{file:n.getSourceFile(a),fileName:a,reference:{pos:r.getStart(),end:r.getEnd(),fileName:r.text},unverified:!t}}}}i(rle,{createDefinitionInfo:()=>mle,getDefinitionAndBoundSpan:()=>dle,getDefinitionAtPosition:()=>ile,getReferenceAtPosition:()=>ale,getTypeDefinitionAtPosition:()=>_le});var sle=new Set(["Array","ArrayLike","ReadonlyArray","Promise","PromiseLike","Iterable","IterableIterator","AsyncIterable","Set","WeakSet","ReadonlySet","Map","WeakMap","ReadonlyMap","Partial","Required","Readonly","Pick","Omit"]);function cle(e,t){if(!t.aliasSymbol)return!1;const n=t.aliasSymbol.name;if(!sle.has(n))return!1;const r=e.resolveName(n,void 0,788968,!1);return!!r&&r===t.aliasSymbol}function lle(e,t,n,r){var i,o;if(4&gx(t)&&function(e,t){const n=t.symbol.name;if(!sle.has(n))return!1;const r=e.resolveName(n,void 0,788968,!1);return!!r&&r===t.target.symbol}(e,t))return ule(e.getTypeArguments(t)[0],e,n,r);if(cle(e,t)&&t.aliasTypeArguments)return ule(t.aliasTypeArguments[0],e,n,r);if(32&gx(t)&&t.target&&cle(e,t.target)){const a=null==(o=null==(i=t.aliasSymbol)?void 0:i.declarations)?void 0:o[0];if(a&&fE(a)&&RD(a.type)&&a.type.typeArguments)return ule(e.getTypeAtLocation(a.type.typeArguments[0]),e,n,r)}return[]}function _le(e,t,n){const r=WX(t,n);if(r===t)return;if(uf(r.parent)&&r.parent.name===r)return ule(e.getTypeAtLocation(r.parent),e,r.parent,!1);let{symbol:i,failedAliasResolution:o}=ple(r,e,!1);if(Zl(r)&&(__(r.parent)||Sc(r.parent))&&(i=r.parent.symbol,o=!1),!i)return;const a=e.getTypeOfSymbolAtLocation(i,r),s=function(e,t,n){if(t.symbol===e||e.valueDeclaration&&t.symbol&&lE(e.valueDeclaration)&&e.valueDeclaration.initializer===t.symbol.valueDeclaration){const e=t.getCallSignatures();if(1===e.length)return n.getReturnTypeOfSignature(ge(e))}}(i,a,e),c=s&&ule(s,e,r,o),[l,_]=c&&0!==c.length?[s,c]:[a,ule(a,e,r,o)];return _.length?[...lle(e,l,r,o),..._]:!(111551&i.flags)&&788968&i.flags?fle(e,ox(i,e),r,o):void 0}function ule(e,t,n,r){return O(!e.isUnion()||32&e.flags?[e]:e.types,e=>e.symbol&&fle(t,e.symbol,n,r))}function dle(e,t,n){const r=ile(e,t,n);if(!r||0===r.length)return;const i=ble(t.referencedFiles,n)||ble(t.typeReferenceDirectives,n)||ble(t.libReferenceDirectives,n);if(i)return{definitions:r,textSpan:AQ(i)};const o=WX(t,n);return{definitions:r,textSpan:Ws(o.getStart(),o.getWidth())}}function ple(e,t,n){const r=t.getSymbolAtLocation(e);let i=!1;if((null==r?void 0:r.declarations)&&2097152&r.flags&&!n&&function(e,t){return!!(80===e.kind||11===e.kind&&Rl(e.parent))&&(e.parent===t||275!==t.kind)}(e,r.declarations[0])){const e=t.getAliasedSymbol(r);if(e.declarations)return{symbol:e};i=!0}return{symbol:r,failedAliasResolution:i}}function fle(e,t,n,r,i){const o=void 0!==i?N(t.declarations,i):t.declarations,a=!i&&(function(){if(32&t.flags&&!(19&t.flags)&&(KG(n)||137===n.kind)){const e=b(o,u_);return e&&c(e.members,!0)}}()||(GG(n)||fX(n)?c(o,!1):void 0));if(a)return a;const s=N(o,e=>!function(e){if(!Um(e))return!1;const t=uc(e,e=>!!rb(e)||!Um(e)&&"quit");return!!t&&5===tg(t)}(e));return E($(s)?s:o,i=>mle(i,e,t,n,!1,r));function c(i,o){if(!i)return;const a=i.filter(o?PD:r_),s=a.filter(e=>!!e.body);return a.length?0!==s.length?s.map(r=>mle(r,e,t,n)):[mle(ve(a),e,t,n,!1,r)]:void 0}}function mle(e,t,n,r,i,o){const a=t.symbolToString(n),s=Nue.getSymbolKind(t,n,r),c=n.parent?t.symbolToString(n.parent,r):"";return gle(t,e,s,a,c,i,o)}function gle(e,t,n,r,i,o,a,s){const c=t.getSourceFile();return s||(s=FQ(Cc(t)||t,c)),{fileName:c.fileName,textSpan:s,kind:n,name:r,containerKind:void 0,containerName:i,...gce.toContextSpan(s,c,gce.getContextNode(t)),isLocal:!yle(e,t),isAmbient:!!(33554432&t.flags),unverified:o,failedAliasResolution:a}}function hle(e,t){const n=gce.getContextNode(e),r=FQ(Ice(n)?n.start:n,t);return{fileName:t.fileName,textSpan:r,kind:"keyword",name:"switch",containerKind:void 0,containerName:"",...gce.toContextSpan(r,t,n),isLocal:!0,isAmbient:!1,unverified:!1,failedAliasResolution:void 0}}function yle(e,t){if(e.isDeclarationVisible(t))return!0;if(!t.parent)return!1;if(Eu(t.parent)&&t.parent.initializer===t)return yle(e,t.parent);switch(t.kind){case 173:case 178:case 179:case 175:if(wv(t,2))return!1;case 177:case 304:case 305:case 211:case 232:case 220:case 219:return yle(e,t.parent);default:return!1}}function vle(e,t,n){return mle(t,e,t.symbol,t,!1,n)}function ble(e,t){return b(e,e=>As(e,t))}var xle={};i(xle,{provideInlayHints:()=>Cle});var kle=e=>new RegExp(`^\\s?/\\*\\*?\\s?${e}\\s?\\*\\/\\s?$`);function Sle(e){return"literals"===e.includeInlayParameterNameHints}function Tle(e){return!0===e.interactiveInlayHints}function Cle(e){const{file:t,program:n,span:r,cancellationToken:i,preferences:o}=e,a=t.text,s=n.getCompilerOptions(),c=tY(t,o),l=n.getTypeChecker(),_=[];return function e(n){if(n&&0!==n.getFullWidth()){switch(n.kind){case 268:case 264:case 265:case 263:case 232:case 219:case 175:case 220:i.throwIfCancellationRequested()}if(Bs(r,n.pos,n.getFullWidth())&&(!b_(n)||OF(n)))return o.includeInlayVariableTypeHints&&lE(n)||o.includeInlayPropertyDeclarationTypeHints&&ND(n)?function(e){if(void 0===e.initializer&&(!ND(e)||1&l.getTypeAtLocation(e).flags)||k_(e.name)||lE(e)&&!x(e))return;if(fv(e))return;const t=l.getTypeAtLocation(e);if(p(t))return;const n=v(t);if(n){const t="string"==typeof n?n:n.map(e=>e.text).join("");if(!1===o.includeInlayVariableTypeHintsWhenTypeMatchesName&>(e.name.getText(),t))return;d(n,e.name.end)}}(n):o.includeInlayEnumMemberValueHints&&aP(n)?function(e){if(e.initializer)return;const t=l.getConstantValue(e);var n,r;void 0!==t&&(n=t.toString(),r=e.end,_.push({text:`= ${n}`,position:r,kind:"Enum",whitespaceBefore:!0}))}(n):function(e){return"literals"===e.includeInlayParameterNameHints||"all"===e.includeInlayParameterNameHints}(o)&&(fF(n)||mF(n))?function(e){const t=e.arguments;if(!t||!t.length)return;const n=l.getResolvedSignature(e);if(void 0===n)return;let r=0;for(const e of t){const t=ah(e);if(Sle(o)&&!g(t)){r++;continue}let i=0;if(PF(t)){const e=l.getTypeAtLocation(t.expression);if(l.isTupleType(e)){const{elementFlags:t,fixedLength:n}=e.target;if(0===n)continue;const r=k(t,e=>!(1&e));(r<0?n:r)>0&&(i=r<0?n:r)}}const a=l.getParameterIdentifierInfoAtPosition(n,r);if(r+=i||1,a){const{parameter:n,parameterName:r,isRestParameter:i}=a;if(!o.includeInlayParameterNameHintsWhenArgumentMatchesName&&f(t,r)&&!i)continue;const s=mc(r);if(m(t,s))continue;u(s,n,e.getStart(),i)}}}(n):(o.includeInlayFunctionParameterTypeHints&&o_(n)&<(n)&&function(e){const t=l.getSignatureFromDeclaration(e);if(!t)return;let n=0;for(const r of e.parameters)x(r)&&y(r,cv(r)?t.thisParameter:t.parameters[n]),cv(r)||n++}(n),o.includeInlayFunctionLikeReturnTypeHints&&function(e){return bF(e)||vF(e)||uE(e)||FD(e)||AD(e)}(n)&&function(e){if(bF(e)&&!OX(e,21,t))return;if(gv(e)||!e.body)return;const n=l.getSignatureFromDeclaration(e);if(!n)return;const r=l.getTypePredicateOfSignature(n);if(null==r?void 0:r.type){const n=function(e){if(!Tle(o))return function(e){const n=vU();return ad(r=>{const i=l.typePredicateToTypePredicateNode(e,void 0,71286784);un.assertIsDefined(i,"should always get typePredicateNode"),n.writeNode(4,i,t,r)})}(e);const n=l.typePredicateToTypePredicateNode(e,void 0,71286784);return un.assertIsDefined(n,"should always get typenode"),b(n)}(r);if(n)return void d(n,h(e))}const i=l.getReturnTypeOfSignature(n);if(p(i))return;const a=v(i);a&&d(a,h(e))}(n)),XI(n,e)}}(t),_;function u(e,t,n,r){let i,a=`${r?"...":""}${e}`;Tle(o)?(i=[S(a,t),{text:":"}],a=""):a+=":",_.push({text:a,position:n,kind:"Parameter",whitespaceAfter:!0,displayParts:i})}function d(e,t){_.push({text:"string"==typeof e?`: ${e}`:"",displayParts:"string"==typeof e?void 0:[{text:": "},...e],position:t,kind:"Type",whitespaceBefore:!0})}function p(e){return e.symbol&&1536&e.symbol.flags}function f(e,t){return aD(e)?e.text===t:!!dF(e)&&e.name.text===t}function m(e,n){if(!ms(n,yk(s),lk(t.scriptKind)))return!1;const r=_s(a,e.pos);if(!(null==r?void 0:r.length))return!1;const i=kle(n);return $(r,e=>i.test(a.substring(e.pos,e.end)))}function g(e){switch(e.kind){case 225:{const t=e.operand;return Il(t)||aD(t)&&jT(t.escapedText)}case 112:case 97:case 106:case 15:case 229:return!0;case 80:{const t=e.escapedText;return function(e){return"undefined"===e}(t)||jT(t)}}return Il(e)}function h(e){const n=OX(e,22,t);return n?n.end:e.parameters.end}function y(e,t){if(fv(e)||void 0===t)return;const n=function(e){const t=e.valueDeclaration;if(!t||!TD(t))return;const n=l.getTypeOfSymbolAtLocation(e,t);return p(n)?void 0:v(n)}(t);void 0!==n&&d(n,e.questionToken?e.questionToken.end:e.name.end)}function v(e){if(!Tle(o))return function(e){const n=vU();return ad(r=>{const i=l.typeToTypeNode(e,void 0,71286784);un.assertIsDefined(i,"should always get typenode"),n.writeNode(4,i,t,r)})}(e);const n=l.typeToTypeNode(e,void 0,71286784);return un.assertIsDefined(n,"should always get typeNode"),b(n)}function b(e){const t=[];return n(e),t;function n(e){var a,s;if(!e)return;const c=Fa(e.kind);if(c)t.push({text:c});else if(Il(e))t.push({text:o(e)});else switch(e.kind){case 80:un.assertNode(e,aD);const c=gc(e),l=e.symbol&&e.symbol.declarations&&e.symbol.declarations.length&&Cc(e.symbol.declarations[0]);l?t.push(S(c,l)):t.push({text:c});break;case 167:un.assertNode(e,xD),n(e.left),t.push({text:"."}),n(e.right);break;case 183:un.assertNode(e,MD),e.assertsModifier&&t.push({text:"asserts "}),n(e.parameterName),e.type&&(t.push({text:" is "}),n(e.type));break;case 184:un.assertNode(e,RD),n(e.typeName),e.typeArguments&&(t.push({text:"<"}),i(e.typeArguments,", "),t.push({text:">"}));break;case 169:un.assertNode(e,SD),e.modifiers&&i(e.modifiers," "),n(e.name),e.constraint&&(t.push({text:" extends "}),n(e.constraint)),e.default&&(t.push({text:" = "}),n(e.default));break;case 170:un.assertNode(e,TD),e.modifiers&&i(e.modifiers," "),e.dotDotDotToken&&t.push({text:"..."}),n(e.name),e.questionToken&&t.push({text:"?"}),e.type&&(t.push({text:": "}),n(e.type));break;case 186:un.assertNode(e,JD),t.push({text:"new "}),r(e),t.push({text:" => "}),n(e.type);break;case 187:un.assertNode(e,zD),t.push({text:"typeof "}),n(e.exprName),e.typeArguments&&(t.push({text:"<"}),i(e.typeArguments,", "),t.push({text:">"}));break;case 188:un.assertNode(e,qD),t.push({text:"{"}),e.members.length&&(t.push({text:" "}),i(e.members,"; "),t.push({text:" "})),t.push({text:"}"});break;case 189:un.assertNode(e,UD),n(e.elementType),t.push({text:"[]"});break;case 190:un.assertNode(e,VD),t.push({text:"["}),i(e.elements,", "),t.push({text:"]"});break;case 203:un.assertNode(e,WD),e.dotDotDotToken&&t.push({text:"..."}),n(e.name),e.questionToken&&t.push({text:"?"}),t.push({text:": "}),n(e.type);break;case 191:un.assertNode(e,$D),n(e.type),t.push({text:"?"});break;case 192:un.assertNode(e,HD),t.push({text:"..."}),n(e.type);break;case 193:un.assertNode(e,KD),i(e.types," | ");break;case 194:un.assertNode(e,GD),i(e.types," & ");break;case 195:un.assertNode(e,XD),n(e.checkType),t.push({text:" extends "}),n(e.extendsType),t.push({text:" ? "}),n(e.trueType),t.push({text:" : "}),n(e.falseType);break;case 196:un.assertNode(e,QD),t.push({text:"infer "}),n(e.typeParameter);break;case 197:un.assertNode(e,YD),t.push({text:"("}),n(e.type),t.push({text:")"});break;case 199:un.assertNode(e,eF),t.push({text:`${Fa(e.operator)} `}),n(e.type);break;case 200:un.assertNode(e,tF),n(e.objectType),t.push({text:"["}),n(e.indexType),t.push({text:"]"});break;case 201:un.assertNode(e,nF),t.push({text:"{ "}),e.readonlyToken&&(40===e.readonlyToken.kind?t.push({text:"+"}):41===e.readonlyToken.kind&&t.push({text:"-"}),t.push({text:"readonly "})),t.push({text:"["}),n(e.typeParameter),e.nameType&&(t.push({text:" as "}),n(e.nameType)),t.push({text:"]"}),e.questionToken&&(40===e.questionToken.kind?t.push({text:"+"}):41===e.questionToken.kind&&t.push({text:"-"}),t.push({text:"?"})),t.push({text:": "}),e.type&&n(e.type),t.push({text:"; }"});break;case 202:un.assertNode(e,rF),n(e.literal);break;case 185:un.assertNode(e,BD),r(e),t.push({text:" => "}),n(e.type);break;case 206:un.assertNode(e,iF),e.isTypeOf&&t.push({text:"typeof "}),t.push({text:"import("}),n(e.argument),e.assertions&&(t.push({text:", { assert: "}),i(e.assertions.assertClause.elements,", "),t.push({text:" }"})),t.push({text:")"}),e.qualifier&&(t.push({text:"."}),n(e.qualifier)),e.typeArguments&&(t.push({text:"<"}),i(e.typeArguments,", "),t.push({text:">"}));break;case 172:un.assertNode(e,wD),(null==(a=e.modifiers)?void 0:a.length)&&(i(e.modifiers," "),t.push({text:" "})),n(e.name),e.questionToken&&t.push({text:"?"}),e.type&&(t.push({text:": "}),n(e.type));break;case 182:un.assertNode(e,jD),t.push({text:"["}),i(e.parameters,", "),t.push({text:"]"}),e.type&&(t.push({text:": "}),n(e.type));break;case 174:un.assertNode(e,DD),(null==(s=e.modifiers)?void 0:s.length)&&(i(e.modifiers," "),t.push({text:" "})),n(e.name),e.questionToken&&t.push({text:"?"}),r(e),e.type&&(t.push({text:": "}),n(e.type));break;case 180:un.assertNode(e,OD),r(e),e.type&&(t.push({text:": "}),n(e.type));break;case 181:un.assertNode(e,LD),t.push({text:"new "}),r(e),e.type&&(t.push({text:": "}),n(e.type));break;case 208:un.assertNode(e,cF),t.push({text:"["}),i(e.elements,", "),t.push({text:"]"});break;case 207:un.assertNode(e,sF),t.push({text:"{"}),e.elements.length&&(t.push({text:" "}),i(e.elements,", "),t.push({text:" "})),t.push({text:"}"});break;case 209:un.assertNode(e,lF),n(e.name);break;case 225:un.assertNode(e,CF),t.push({text:Fa(e.operator)}),n(e.operand);break;case 204:un.assertNode(e,aF),n(e.head),e.templateSpans.forEach(n);break;case 16:un.assertNode(e,HN),t.push({text:o(e)});break;case 205:un.assertNode(e,oF),n(e.type),n(e.literal);break;case 17:un.assertNode(e,KN),t.push({text:o(e)});break;case 18:un.assertNode(e,GN),t.push({text:o(e)});break;case 198:un.assertNode(e,ZD),t.push({text:"this"});break;case 168:un.assertNode(e,kD),t.push({text:"["}),n(e.expression),t.push({text:"]"});break;default:un.failBadSyntaxKind(e)}}function r(e){e.typeParameters&&(t.push({text:"<"}),i(e.typeParameters,", "),t.push({text:">"})),t.push({text:"("}),i(e.parameters,", "),t.push({text:")"})}function i(e,r){e.forEach((e,i)=>{i>0&&t.push({text:r}),n(e)})}function o(e){switch(e.kind){case 11:return 0===c?`'${xy(e.text,39)}'`:`"${xy(e.text,34)}"`;case 16:case 17:case 18:{const t=e.rawText??dy(xy(e.text,96));switch(e.kind){case 16:return"`"+t+"${";case 17:return"}"+t+"${";case 18:return"}"+t+"`"}}}return e.text}}function x(e){if((Qh(e)||lE(e)&&af(e))&&e.initializer){const t=ah(e.initializer);return!(g(t)||mF(t)||uF(t)||W_(t))}return!0}function S(e,t){const n=t.getSourceFile();return{text:e,span:FQ(t,n),file:n.fileName}}}var wle={};i(wle,{getDocCommentTemplateAtPosition:()=>Ule,getJSDocParameterNameCompletionDetails:()=>qle,getJSDocParameterNameCompletions:()=>zle,getJSDocTagCompletionDetails:()=>Jle,getJSDocTagCompletions:()=>Ble,getJSDocTagNameCompletionDetails:()=>Rle,getJSDocTagNameCompletions:()=>Mle,getJsDocCommentsFromDeclarations:()=>Ele,getJsDocTagsFromDeclarations:()=>Ale});var Nle,Dle,Fle=["abstract","access","alias","argument","async","augments","author","borrows","callback","class","classdesc","constant","constructor","constructs","copyright","default","deprecated","description","emits","enum","event","example","exports","extends","external","field","file","fileoverview","fires","function","generator","global","hideconstructor","host","ignore","implements","import","inheritdoc","inner","instance","interface","kind","lends","license","link","linkcode","linkplain","listens","member","memberof","method","mixes","module","name","namespace","overload","override","package","param","private","prop","property","protected","public","readonly","requires","returns","satisfies","see","since","static","summary","template","this","throws","todo","tutorial","type","typedef","var","variation","version","virtual","yields"];function Ele(e,t){const n=[];return gY(e,e=>{for(const r of function(e){switch(e.kind){case 342:case 349:return[e];case 339:case 347:return[e,e.parent];case 324:if(LP(e.parent))return[e.parent.parent];default:return jg(e)}}(e)){const i=SP(r)&&r.tags&&b(r.tags,e=>328===e.kind&&("inheritDoc"===e.tagName.escapedText||"inheritdoc"===e.tagName.escapedText));if(void 0===r.comment&&!i||SP(r)&&347!==e.kind&&339!==e.kind&&r.tags&&r.tags.some(e=>347===e.kind||339===e.kind)&&!r.tags.some(e=>342===e.kind||343===e.kind))continue;let o=r.comment?Lle(r.comment,t):[];i&&i.comment&&(o=o.concat(Lle(i.comment,t))),T(n,o,Ple)||n.push(o)}}),I(y(n,[BY()]))}function Ple(e,t){return te(e,t,(e,t)=>e.kind===t.kind&&e.text===t.text)}function Ale(e,t){const n=[];return gY(e,e=>{const r=ol(e);if(!r.some(e=>347===e.kind||339===e.kind)||r.some(e=>342===e.kind||343===e.kind))for(const e of r)n.push({name:e.tagName.text,text:jle(e,t)}),n.push(...Ile(Ole(e),t))}),n}function Ile(e,t){return O(e,e=>K([{name:e.tagName.text,text:jle(e,t)}],Ile(Ole(e),t)))}function Ole(e){return Nl(e)&&e.isNameFirst&&e.typeExpression&&TP(e.typeExpression.type)?e.typeExpression.type.jsDocPropertyTags:void 0}function Lle(e,t){return"string"==typeof e?[PY(e)]:O(e,e=>322===e.kind?[PY(e.text)]:jY(e,t))}function jle(e,t){const{comment:n,kind:r}=e,i=function(e){switch(e){case 342:return DY;case 349:return FY;case 346:return IY;case 347:case 339:return AY;default:return PY}}(r);switch(r){case 350:const r=e.typeExpression;return r?o(r):void 0===n?void 0:Lle(n,t);case 330:case 329:return o(e.class);case 346:const a=e,s=[];if(a.constraint&&s.push(PY(a.constraint.getText())),u(a.typeParameters)){u(s)&&s.push(TY());const e=a.typeParameters[a.typeParameters.length-1];d(a.typeParameters,t=>{s.push(i(t.getText())),e!==t&&s.push(wY(28),TY())})}return n&&s.push(TY(),...Lle(n,t)),s;case 345:case 351:return o(e.typeExpression);case 347:case 339:case 349:case 342:case 348:const{name:c}=e;return c?o(c):void 0===n?void 0:Lle(n,t);default:return void 0===n?void 0:Lle(n,t)}function o(e){return r=e.getText(),n?r.match(/^https?$/)?[PY(r),...Lle(n,t)]:[i(r),TY(),...Lle(n,t)]:[PY(r)];var r}}function Mle(){return Nle||(Nle=E(Fle,e=>({name:e,kind:"keyword",kindModifiers:"",sortText:mae.SortText.LocationPriority})))}var Rle=Jle;function Ble(){return Dle||(Dle=E(Fle,e=>({name:`@${e}`,kind:"keyword",kindModifiers:"",sortText:mae.SortText.LocationPriority})))}function Jle(e){return{name:e,kind:"",kindModifiers:"",displayParts:[PY(e)],documentation:l,tags:void 0,codeActions:void 0}}function zle(e){if(!aD(e.name))return l;const t=e.name.text,n=e.parent,r=n.parent;return r_(r)?B(r.parameters,r=>{if(!aD(r.name))return;const i=r.name.text;return n.tags.some(t=>t!==e&&BP(t)&&aD(t.name)&&t.name.escapedText===i)||void 0!==t&&!Gt(i,t)?void 0:{name:i,kind:"parameter",kindModifiers:"",sortText:mae.SortText.LocationPriority}}):[]}function qle(e){return{name:e,kind:"parameter",kindModifiers:"",displayParts:[PY(e)],documentation:l,tags:void 0,codeActions:void 0}}function Ule(e,t,n,r){const i=HX(t,n),o=uc(i,SP);if(o&&(void 0!==o.comment||u(o.tags)))return;const a=i.getStart(t);if(!o&&aVle(e,t))}(i,r);if(!s)return;const{commentOwner:c,parameters:l,hasReturn:_}=s,d=ye(Du(c)&&c.jsDoc?c.jsDoc:void 0);if(c.getStart(t){const a=80===e.kind?e.text:"param"+o;return`${n} * @param ${t?i?"{...any} ":"{any} ":""}${a}${r}`}).join("")}(l||[],f,p,e):"")+(_?function(e,t){return`${e} * @returns${t}`}(p,e):""),g=u(ol(c))>0;if(m&&!g){const t="/**"+e+p+" * ";return{newText:t+e+m+p+" */"+(a===n?e+p:""),caretOffset:t.length}}return{newText:"/** */",caretOffset:3}}function Vle(e,t){switch(e.kind){case 263:case 219:case 175:case 177:case 174:case 220:const n=e;return{commentOwner:e,parameters:n.parameters,hasReturn:Wle(n,t)};case 304:return Vle(e.initializer,t);case 264:case 265:case 267:case 307:case 266:return{commentOwner:e};case 172:{const n=e;return n.type&&BD(n.type)?{commentOwner:e,parameters:n.type.parameters,hasReturn:Wle(n.type,t)}:{commentOwner:e}}case 244:{const n=e.declarationList.declarations,r=1===n.length&&n[0].initializer?function(e){for(;218===e.kind;)e=e.expression;switch(e.kind){case 219:case 220:return e;case 232:return b(e.members,PD)}}(n[0].initializer):void 0;return r?{commentOwner:e,parameters:r.parameters,hasReturn:Wle(r,t)}:{commentOwner:e}}case 308:return"quit";case 268:return 268===e.parent.kind?void 0:{commentOwner:e};case 245:return Vle(e.expression,t);case 227:{const n=e;return 0===tg(n)?"quit":r_(n.right)?{commentOwner:e,parameters:n.right.parameters,hasReturn:Wle(n.right,t)}:{commentOwner:e}}case 173:const r=e.initializer;if(r&&(vF(r)||bF(r)))return{commentOwner:e,parameters:r.parameters,hasReturn:Wle(r,t)}}}function Wle(e,t){return!!(null==t?void 0:t.generateReturnInDocTemplate)&&(BD(e)||bF(e)&&V_(e.body)||o_(e)&&e.body&&VF(e.body)&&!!Df(e.body,e=>e))}var $le={};function Hle(e,t,n,r,i,o){return jue.ChangeTracker.with({host:r,formatContext:i,preferences:o},r=>{const i=t.map(t=>function(e,t){const n=[{parse:()=>eO("__mapcode_content_nodes.ts",t,e.languageVersion,!0,e.scriptKind),body:e=>e.statements},{parse:()=>eO("__mapcode_class_content_nodes.ts",`class __class {\n${t}\n}`,e.languageVersion,!0,e.scriptKind),body:e=>e.statements[0].members}],r=[];for(const{parse:e,body:t}of n){const n=e(),i=t(n);if(i.length&&0===n.parseDiagnostics.length)return i;i.length&&r.push({sourceFile:n,body:i})}r.sort((e,t)=>e.sourceFile.parseDiagnostics.length-t.sourceFile.parseDiagnostics.length);const{body:i}=r[0];return i}(e,t)),o=n&&I(n);for(const t of i)Kle(e,r,t,o)})}function Kle(e,t,n,r){__(n[0])||h_(n[0])?function(e,t,n,r){let i;if(i=r&&r.length?d(r,t=>uc(HX(e,t.start),en(u_,pE))):b(e.statements,en(u_,pE)),!i)return;const o=i.members.find(e=>n.some(t=>Gle(t,e)));if(o){const r=x(i.members,e=>n.some(t=>Gle(t,e)));return d(n,Xle),void t.replaceNodeRangeWithNodes(e,o,r,n)}d(n,Xle),t.insertNodesAfter(e,i.members[i.members.length-1],n)}(e,t,n,r):function(e,t,n,r){if(!(null==r?void 0:r.length))return void t.insertNodesAtEndOfFile(e,n,!1);for(const i of r){const r=uc(HX(e,i.start),e=>en(VF,sP)(e)&&$(e.statements,e=>n.some(t=>Gle(t,e))));if(r){const i=r.statements.find(e=>n.some(t=>Gle(t,e)));if(i){const o=x(r.statements,e=>n.some(t=>Gle(t,e)));return d(n,Xle),void t.replaceNodeRangeWithNodes(e,i,o,n)}}}let i=e.statements;for(const t of r){const n=uc(HX(e,t.start),VF);if(n){i=n.statements;break}}d(n,Xle),t.insertNodesAfter(e,i[i.length-1],n)}(e,t,n,r)}function Gle(e,t){var n,r,i,o,a,s;return e.kind===t.kind&&(177===e.kind?e.kind===t.kind:Sc(e)&&Sc(t)?e.name.getText()===t.name.getText():KF(e)&&KF(t)||XF(e)&&XF(t)?e.expression.getText()===t.expression.getText():QF(e)&&QF(t)?(null==(n=e.initializer)?void 0:n.getText())===(null==(r=t.initializer)?void 0:r.getText())&&(null==(i=e.incrementor)?void 0:i.getText())===(null==(o=t.incrementor)?void 0:o.getText())&&(null==(a=e.condition)?void 0:a.getText())===(null==(s=t.condition)?void 0:s.getText()):Q_(e)&&Q_(t)?e.expression.getText()===t.expression.getText()&&e.initializer.getText()===t.initializer.getText():oE(e)&&oE(t)?e.label.getText()===t.label.getText():e.getText()===t.getText())}function Xle(e){Qle(e),e.parent=void 0}function Qle(e){e.pos=-1,e.end=-1,e.forEachChild(Qle)}i($le,{mapCode:()=>Hle});var Yle={};function Zle(e,t,n,r,i,o){const a=jue.ChangeTracker.fromContext({host:n,formatContext:t,preferences:i}),s="SortAndCombine"===o||"All"===o,c=s,l="RemoveUnused"===o||"All"===o,_=e.statements.filter(xE),d=t_e(e,_),{comparersToTest:p,typeOrdersToTest:f}=e_e(i),m=p[0],g={moduleSpecifierComparer:"boolean"==typeof i.organizeImportsIgnoreCase?m:void 0,namedImportComparer:"boolean"==typeof i.organizeImportsIgnoreCase?m:void 0,typeOrder:i.organizeImportsTypeOrder};if("boolean"!=typeof i.organizeImportsIgnoreCase&&({comparer:g.moduleSpecifierComparer}=p_e(d,p)),!g.typeOrder||"boolean"!=typeof i.organizeImportsIgnoreCase){const e=f_e(_,p,f);if(e){const{namedImportComparer:t,typeOrder:n}=e;g.namedImportComparer=g.namedImportComparer??t,g.typeOrder=g.typeOrder??n}}d.forEach(e=>y(e,g)),"RemoveUnused"!==o&&function(e){const t=[],n=e.statements,r=u(n);let i=0,o=0;for(;it_e(e,t))}(e).forEach(e=>v(e,g.namedImportComparer));for(const t of e.statements.filter(cp))t.body&&(t_e(e,t.body.statements.filter(xE)).forEach(e=>y(e,g)),"RemoveUnused"!==o&&v(t.body.statements.filter(IE),g.namedImportComparer));return a.getChanges();function h(r,i){if(0===u(r))return;xw(r[0],1024);const o=c?Je(r,e=>r_e(e.moduleSpecifier)):[r],l=O(s?_e(o,(e,t)=>l_e(e[0].moduleSpecifier,t[0].moduleSpecifier,g.moduleSpecifierComparer??m)):o,e=>r_e(e[0].moduleSpecifier)||void 0===e[0].moduleSpecifier?i(e):e);if(0===l.length)a.deleteNodes(e,r,{leadingTriviaOption:jue.LeadingTriviaOption.Exclude,trailingTriviaOption:jue.TrailingTriviaOption.Include},!0);else{const i={leadingTriviaOption:jue.LeadingTriviaOption.Exclude,trailingTriviaOption:jue.TrailingTriviaOption.Include,suffix:RY(n,t.options)};a.replaceNodeWithNodes(e,r[0],l,i);const o=a.nodeHasTrailingComment(e,r[0],i);a.deleteNodes(e,r.slice(1),{trailingTriviaOption:jue.TrailingTriviaOption.Include},o)}}function y(t,n){const i=n.moduleSpecifierComparer??m,o=n.namedImportComparer??m,a=x_e({organizeImportsTypeOrder:n.typeOrder??"last"},o);h(t,t=>(l&&(t=function(e,t,n){const r=n.getTypeChecker(),i=n.getCompilerOptions(),o=r.getJsxNamespace(t),a=r.getJsxFragmentFactory(t),s=!!(2&t.transformFlags),c=[];for(const n of e){const{importClause:e,moduleSpecifier:r}=n;if(!e){c.push(n);continue}let{name:i,namedBindings:o}=e;if(i&&!l(i)&&(i=void 0),o)if(DE(o))l(o.name)||(o=void 0);else{const e=o.elements.filter(e=>l(e.name));e.lengthC_e(e,t,i))),t))}function v(e,t){const n=x_e(i,t);h(e,e=>a_e(e,n))}}function e_e(e){return{comparersToTest:"boolean"==typeof e.organizeImportsIgnoreCase?[v_e(e,e.organizeImportsIgnoreCase)]:[v_e(e,!0),v_e(e,!1)],typeOrdersToTest:e.organizeImportsTypeOrder?[e.organizeImportsTypeOrder]:["last","inline","first"]}}function t_e(e,t){const n=gs(e.languageVersion,!1,e.languageVariant),r=[];let i=0;for(const o of t)r[i]&&n_e(e,o,n)&&i++,r[i]||(r[i]=[]),r[i].push(o);return r}function n_e(e,t,n){const r=t.getFullStart(),i=t.getStart();n.setText(e.text,r,i-r);let o=0;for(;n.getTokenStart()=2))return!0;return!1}function r_e(e){return void 0!==e&&ju(e)?e.text:void 0}function i_e(e){let t;const n={defaultImports:[],namespaceImports:[],namedImports:[]},r={defaultImports:[],namespaceImports:[],namedImports:[]};for(const i of e){if(void 0===i.importClause){t=t||i;continue}const e=i.importClause.isTypeOnly?n:r,{name:o,namedBindings:a}=i.importClause;o&&e.defaultImports.push(i),a&&(DE(a)?e.namespaceImports.push(i):e.namedImports.push(i))}return{importWithoutClause:t,typeOnlyImports:n,regularImports:r}}function o_e(e,t,n,r){if(0===e.length)return e;const i=ze(e,e=>{if(e.attributes){let t=e.attributes.token+" ";for(const n of _e(e.attributes.elements,(e,t)=>Ct(e.name.text,t.name.text)))t+=n.name.text+":",t+=ju(n.value)?`"${n.value.text}"`:n.value.getText()+" ";return t}return""}),o=[];for(const e in i){const a=i[e],{importWithoutClause:s,typeOnlyImports:c,regularImports:_}=i_e(a);s&&o.push(s);for(const e of[_,c]){const i=e===c,{defaultImports:a,namespaceImports:s,namedImports:_}=e;if(!i&&1===a.length&&1===s.length&&0===_.length){const e=a[0];o.push(s_e(e,e.importClause.name,s[0].importClause.namedBindings));continue}const u=_e(s,(e,n)=>t(e.importClause.namedBindings.name.text,n.importClause.namedBindings.name.text));for(const e of u)o.push(s_e(e,void 0,e.importClause.namedBindings));const d=fe(a),p=fe(_),f=d??p;if(!f)continue;let m;const g=[];if(1===a.length)m=a[0].importClause.name;else for(const e of a)g.push(mw.createImportSpecifier(!1,mw.createIdentifier("default"),e.importClause.name));g.push(...d_e(_));const h=mw.createNodeArray(_e(g,n),null==p?void 0:p.importClause.namedBindings.elements.hasTrailingComma),y=0===h.length?m?void 0:mw.createNamedImports(l):p?mw.updateNamedImports(p.importClause.namedBindings,h):mw.createNamedImports(h);r&&y&&(null==p?void 0:p.importClause.namedBindings)&&!Rb(p.importClause.namedBindings,r)&&xw(y,2),i&&m&&y?(o.push(s_e(f,m,void 0)),o.push(s_e(p??f,void 0,y))):o.push(s_e(f,m,y))}}return o}function a_e(e,t){if(0===e.length)return e;const{exportWithoutClause:n,namedExports:r,typeOnlyExports:i}=function(e){let t;const n=[],r=[];for(const i of e)void 0===i.exportClause?t=t||i:i.isTypeOnly?r.push(i):n.push(i);return{exportWithoutClause:t,namedExports:n,typeOnlyExports:r}}(e),o=[];n&&o.push(n);for(const e of[r,i]){if(0===e.length)continue;const n=[];n.push(...O(e,e=>e.exportClause&&OE(e.exportClause)?e.exportClause.elements:l));const r=_e(n,t),i=e[0];o.push(mw.updateExportDeclaration(i,i.modifiers,i.isTypeOnly,i.exportClause&&(OE(i.exportClause)?mw.updateNamedExports(i.exportClause,r):mw.updateNamespaceExport(i.exportClause,i.exportClause.name)),i.moduleSpecifier,i.attributes))}return o}function s_e(e,t,n){return mw.updateImportDeclaration(e,e.modifiers,mw.updateImportClause(e.importClause,e.importClause.phaseModifier,t,n),e.moduleSpecifier,e.attributes)}function c_e(e,t,n,r){switch(null==r?void 0:r.organizeImportsTypeOrder){case"first":return Ot(t.isTypeOnly,e.isTypeOnly)||n(e.name.text,t.name.text);case"inline":return n(e.name.text,t.name.text);default:return Ot(e.isTypeOnly,t.isTypeOnly)||n(e.name.text,t.name.text)}}function l_e(e,t,n){const r=void 0===e?void 0:r_e(e),i=void 0===t?void 0:r_e(t);return Ot(void 0===r,void 0===i)||Ot(Cs(r),Cs(i))||n(r,i)}function __e(e){var t;switch(e.kind){case 272:return null==(t=tt(e.moduleReference,JE))?void 0:t.expression;case 273:return e.moduleSpecifier;case 244:return e.declarationList.declarations[0].initializer.arguments[0]}}function u_e(e,t){const n=UN(t)&&t.text;return Ze(n)&&$(e.moduleAugmentations,e=>UN(e)&&e.text===n)}function d_e(e){return O(e,e=>E(function(e){var t;return(null==(t=e.importClause)?void 0:t.namedBindings)&&EE(e.importClause.namedBindings)?e.importClause.namedBindings.elements:void 0}(e),e=>e.name&&e.propertyName&&Hd(e.name)===Hd(e.propertyName)?mw.updateImportSpecifier(e,e.isTypeOnly,void 0,e.name):e))}function p_e(e,t){const n=[];return e.forEach(e=>{n.push(e.map(e=>r_e(__e(e))||""))}),g_e(n,t)}function f_e(e,t,n){let r=!1;const i=e.filter(e=>{var t,n;const i=null==(n=tt(null==(t=e.importClause)?void 0:t.namedBindings,EE))?void 0:n.elements;return!!(null==i?void 0:i.length)&&(!r&&i.some(e=>e.isTypeOnly)&&i.some(e=>!e.isTypeOnly)&&(r=!0),!0)});if(0===i.length)return;const o=i.map(e=>{var t,n;return null==(n=tt(null==(t=e.importClause)?void 0:t.namedBindings,EE))?void 0:n.elements}).filter(e=>void 0!==e);if(!r||0===n.length){const e=g_e(o.map(e=>e.map(e=>e.name.text)),t);return{namedImportComparer:e.comparer,typeOrder:1===n.length?n[0]:void 0,isSorted:e.isSorted}}const a={first:1/0,last:1/0,inline:1/0},s={first:t[0],last:t[0],inline:t[0]};for(const e of t){const t={first:0,last:0,inline:0};for(const r of o)for(const i of n)t[i]=(t[i]??0)+m_e(r,(t,n)=>c_e(t,n,e,{organizeImportsTypeOrder:i}));for(const r of n){const n=r;t[n]0&&n++;return n}function g_e(e,t){let n,r=1/0;for(const i of t){let t=0;for(const n of e)n.length<=1||(t+=m_e(n,i));tc_e(t,r,n,e)}function k_e(e,t,n){const{comparersToTest:r,typeOrdersToTest:i}=e_e(t),o=f_e([e],r,i);let a,s=x_e(t,r[0]);if("boolean"!=typeof t.organizeImportsIgnoreCase||!t.organizeImportsTypeOrder)if(o){const{namedImportComparer:e,typeOrder:t,isSorted:n}=o;a=n,s=x_e({organizeImportsTypeOrder:t},e)}else if(n){const e=f_e(n.statements.filter(xE),r,i);if(e){const{namedImportComparer:t,typeOrder:n,isSorted:r}=e;a=r,s=x_e({organizeImportsTypeOrder:n},t)}}return{specifierComparer:s,isSorted:a}}function S_e(e,t,n){const r=Te(e,t,st,(e,t)=>C_e(e,t,n));return r<0?~r:r}function T_e(e,t,n){const r=Te(e,t,st,n);return r<0?~r:r}function C_e(e,t,n){return l_e(__e(e),__e(t),n)||function(e,t){return vt(h_e(e),h_e(t))}(e,t)}function w_e(e,t,n,r){const i=y_e(t);return o_e(e,i,x_e({organizeImportsTypeOrder:null==r?void 0:r.organizeImportsTypeOrder},i),n)}function N_e(e,t,n){return a_e(e,(e,r)=>c_e(e,r,y_e(t),{organizeImportsTypeOrder:(null==n?void 0:n.organizeImportsTypeOrder)??"last"}))}function D_e(e,t,n){return l_e(e,t,y_e(!!n))}i(Yle,{compareImportsOrRequireStatements:()=>C_e,compareModuleSpecifiers:()=>D_e,getImportDeclarationInsertionIndex:()=>S_e,getImportSpecifierInsertionIndex:()=>T_e,getNamedImportSpecifierComparerWithDetection:()=>k_e,getOrganizeImportsStringComparerWithDetection:()=>b_e,organizeImports:()=>Zle,testCoalesceExports:()=>N_e,testCoalesceImports:()=>w_e});var F_e={};function E_e(e,t){const n=[];return function(e,t,n){let r=40,i=0;const o=e.statements,a=o.length;for(;i...")}(e);case 289:return function(e){const n=$s(e.openingFragment.getStart(t),e.closingFragment.getEnd());return M_e(n,"code",n,!1,"<>...")}(e);case 286:case 287:return function(e){if(0!==e.properties.length)return L_e(e.getStart(t),e.getEnd(),"code")}(e.attributes);case 229:case 15:return function(e){if(15!==e.kind||0!==e.text.length)return L_e(e.getStart(t),e.getEnd(),"code")}(e);case 208:return i(e,!1,!lF(e.parent),23);case 220:return function(e){if(VF(e.body)||yF(e.body)||$b(e.body.getFullStart(),e.body.getEnd(),t))return;return M_e($s(e.body.getFullStart(),e.body.getEnd()),"code",FQ(e))}(e);case 214:return function(e){if(!e.arguments.length)return;const n=OX(e,21,t),r=OX(e,22,t);return n&&r&&!$b(n.pos,r.pos,t)?j_e(n,r,e,t,!1,!0):void 0}(e);case 218:return function(e){if($b(e.getStart(),e.getEnd(),t))return;return M_e($s(e.getStart(),e.getEnd()),"code",FQ(e))}(e);case 276:case 280:case 301:return function(e){if(!e.elements.length)return;const n=OX(e,19,t),r=OX(e,20,t);return n&&r&&!$b(n.pos,r.pos,t)?j_e(n,r,e,t,!1,!1):void 0}(e)}var n;function r(e,t=19){return i(e,!1,!_F(e.parent)&&!fF(e.parent),t)}function i(n,r=!1,i=!0,o=19,a=(19===o?20:24)){const s=OX(e,o,t),c=OX(e,a,t);return s&&c&&j_e(s,c,n,t,r,i)}}(i,e);a&&n.push(a),r--,fF(i)?(r++,s(i.expression),r--,i.arguments.forEach(s),null==(o=i.typeArguments)||o.forEach(s)):KF(i)&&i.elseStatement&&KF(i.elseStatement)?(s(i.expression),s(i.thenStatement),r++,s(i.elseStatement),r--):i.forEachChild(s),r++}s(e.endOfFileToken)}(e,t,n),function(e,t){const n=[],r=e.getLineStarts();for(const i of r){const r=e.getLineEndOfPosition(i),o=A_e(e.text.substring(i,r));if(o&&!dQ(e,i))if(o.isStart){const t=$s(e.text.indexOf("//",i),r);n.push(M_e(t,"region",t,!1,o.name||"#region"))}else{const e=n.pop();e&&(e.textSpan.length=r-e.textSpan.start,e.hintSpan.length=r-e.textSpan.start,t.push(e))}}}(e,n),n.sort((e,t)=>e.textSpan.start-t.textSpan.start),n}i(F_e,{collectElements:()=>E_e});var P_e=/^#(end)?region(.*)\r?$/;function A_e(e){if(!Gt(e=e.trimStart(),"//"))return null;e=e.slice(2).trim();const t=P_e.exec(e);return t?{isStart:!t[1],name:t[2].trim()}:void 0}function I_e(e,t,n,r){const i=_s(t.text,e);if(!i)return;let o=-1,a=-1,s=0;const c=t.getFullText();for(const{kind:e,pos:t,end:_}of i)switch(n.throwIfCancellationRequested(),e){case 2:if(A_e(c.slice(t,_))){l(),s=0;break}0===s&&(o=t),a=_,s++;break;case 3:l(),r.push(L_e(t,_,"comment")),s=0;break;default:un.assertNever(e)}function l(){s>1&&r.push(L_e(o,a,"comment"))}l()}function O_e(e,t,n,r){VN(e)||I_e(e.pos,t,n,r)}function L_e(e,t,n){return M_e($s(e,t),n)}function j_e(e,t,n,r,i=!1,o=!0){return M_e($s(o?e.getFullStart():e.getStart(r),t.getEnd()),"code",FQ(n,r),i)}function M_e(e,t,n=e,r=!1,i="..."){return{textSpan:e,kind:t,hintSpan:n,bannerText:i,autoCollapse:r}}var R_e={};function B_e(e,t,n,r){const i=VX(WX(t,n));if(V_e(i)){const n=function(e,t,n,r,i){const o=t.getSymbolAtLocation(e);if(!o){if(ju(e)){const r=BX(e,t);if(r&&(128&r.flags||1048576&r.flags&&v(r.types,e=>!!(128&e.flags))))return z_e(e.text,e.text,"string","",e,n)}else if(cX(e)){const t=Xd(e);return z_e(t,t,"label","",e,n)}return}const{declarations:a}=o;if(!a||0===a.length)return;if(a.some(e=>function(e,t){const n=t.getSourceFile();return e.isSourceFileDefaultLibrary(n)&&ko(n.fileName,".d.ts")}(r,e)))return q_e(_a.You_cannot_rename_elements_that_are_defined_in_the_standard_TypeScript_library);if(aD(e)&&"default"===e.escapedText&&o.parent&&1536&o.parent.flags)return;if(ju(e)&&bg(e))return i.allowRenameOfImportPath?function(e,t,n){if(!Cs(e.text))return q_e(_a.You_cannot_rename_a_module_via_a_global_import);const r=n.declarations&&b(n.declarations,sP);if(!r)return;const i=Mt(e.text,"/index")||Mt(e.text,"/index.js")?void 0:Bt(US(r.fileName),"/index"),o=void 0===i?r.fileName:i,a=void 0===i?"module":"directory",s=e.text.lastIndexOf("/")+1,c=Ws(e.getStart(t)+1+s,e.text.length-s);return{canRename:!0,fileToRename:o,kind:a,displayName:o,fullDisplayName:e.text,kindModifiers:"",triggerSpan:c}}(e,n,o):void 0;const s=function(e,t,n,r){if(!r.providePrefixAndSuffixTextForRename&&2097152&t.flags){const e=t.declarations&&b(t.declarations,e=>PE(e));e&&!e.propertyName&&(t=n.getAliasedSymbol(t))}const{declarations:i}=t;if(!i)return;const o=J_e(e.path);if(void 0===o)return $(i,e=>AZ(e.getSourceFile().path))?_a.You_cannot_rename_elements_that_are_defined_in_a_node_modules_folder:void 0;for(const e of i){const t=J_e(e.getSourceFile().path);if(t){const e=Math.min(o.length,t.length);for(let n=0;n<=e;n++)if(0!==Ct(o[n],t[n]))return _a.You_cannot_rename_elements_that_are_defined_in_another_node_modules_folder}}}(n,o,t,i);if(s)return q_e(s);const c=Nue.getSymbolKind(t,o,e),l=VY(e)||jh(e)&&168===e.parent.kind?Fy(qh(e)):void 0;return z_e(l||t.symbolToString(o),l||t.getFullyQualifiedName(o),c,Nue.getSymbolModifiers(t,o),e,n)}(i,e.getTypeChecker(),t,e,r);if(n)return n}return q_e(_a.You_cannot_rename_this_element)}function J_e(e){const t=Ao(e),n=t.lastIndexOf("node_modules");if(-1!==n)return t.slice(0,n+2)}function z_e(e,t,n,r,i,o){return{canRename:!0,fileToRename:void 0,kind:n,displayName:e,fullDisplayName:t,kindModifiers:r,triggerSpan:U_e(i,o)}}function q_e(e){return{canRename:!1,localizedErrorMessage:Vx(e)}}function U_e(e,t){let n=e.getStart(t),r=e.getWidth(t);return ju(e)&&(n+=1,r-=2),Ws(n,r)}function V_e(e){switch(e.kind){case 80:case 81:case 11:case 15:case 110:return!0;case 9:return mX(e);default:return!1}}i(R_e,{getRenameInfo:()=>B_e,nodeIsEligibleForRename:()=>V_e});var W_e={};function $_e(e,t,n,r,i){const o=e.getTypeChecker(),a=XX(t,n);if(!a)return;const s=!!r&&"characterTyped"===r.kind;if(s&&(nQ(t,n,a)||dQ(t,n)))return;const c=!!r&&"invoked"===r.kind,l=function(e,t,n,r,i){for(let o=e;!sP(o)&&(i||!VF(o));o=o.parent){un.assert(Xb(o.parent,o),"Not a subspan",()=>`Child: ${un.formatSyntaxKind(o.kind)}, parent: ${un.formatSyntaxKind(o.parent.kind)}`);const e=Q_e(o,t,n,r);if(e)return e}}(a,n,t,o,c);if(!l)return;i.throwIfCancellationRequested();const _=function({invocation:e,argumentCount:t},n,r,i,o){switch(e.kind){case 0:{if(o&&!function(e,t,n){if(!j_(t))return!1;const r=t.getChildren(n);switch(e.kind){case 21:return T(r,e);case 28:{const t=LX(e);return!!t&&T(r,t)}case 30:return H_e(e,n,t.expression);default:return!1}}(i,e.node,r))return;const a=[],s=n.getResolvedSignatureForSignatureHelp(e.node,a,t);return 0===a.length?void 0:{kind:0,candidates:a,resolvedSignature:s}}case 1:{const{called:a}=e;if(o&&!H_e(i,r,aD(a)?a.parent:a))return;const s=_Q(a,t,n);if(0!==s.length)return{kind:0,candidates:s,resolvedSignature:ge(s)};const c=n.getSymbolAtLocation(a);return c&&{kind:1,symbol:c}}case 2:return{kind:0,candidates:[e.signature],resolvedSignature:e.signature};default:return un.assertNever(e)}}(l,o,t,a,s);return i.throwIfCancellationRequested(),_?o.runWithCancellationToken(i,e=>0===_.kind?lue(_.candidates,_.resolvedSignature,l,t,e):function(e,{argumentCount:t,argumentsSpan:n,invocation:r,argumentIndex:i},o,a){const s=a.getLocalTypeParametersOfClassOrInterfaceOrTypeAlias(e);if(!s)return;return{items:[_ue(e,s,a,sue(r),o)],applicableSpan:n,selectedItemIndex:0,argumentIndex:i,argumentCount:t}}(_.symbol,l,t,e)):Fm(t)?function(e,t,n){if(2===e.invocation.kind)return;const r=aue(e.invocation),i=dF(r)?r.name.text:void 0,o=t.getTypeChecker();return void 0===i?void 0:f(t.getSourceFiles(),t=>f(t.getNamedDeclarations().get(i),r=>{const i=r.symbol&&o.getTypeOfSymbolAtLocation(r.symbol,r),a=i&&i.getCallSignatures();if(a&&a.length)return o.runWithCancellationToken(n,n=>lue(a,a[0],e,t,n,!0))}))}(l,e,i):void 0}function H_e(e,t,n){const r=e.getFullStart();let i=e.parent;for(;i;){const e=YX(r,t,i,!0);if(e)return Xb(n,e);i=i.parent}return un.fail("Could not find preceding token")}function K_e(e,t,n,r){const i=X_e(e,t,n,r);return!i||i.isTypeParameterList||0!==i.invocation.kind?void 0:{invocation:i.invocation.node,argumentCount:i.argumentCount,argumentIndex:i.argumentIndex}}function G_e(e,t,n,r){const i=function(e,t,n){if(30===e.kind||21===e.kind)return{list:oue(e.parent,e,t),argumentIndex:0};{const t=LX(e);return t&&{list:t,argumentIndex:tue(n,t,e)}}}(e,n,r);if(!i)return;const{list:o,argumentIndex:a}=i,s=function(e,t){return nue(e,t,void 0)}(r,o),c=function(e,t){const n=e.getFullStart();return Ws(n,Qa(t.text,e.getEnd(),!1)-n)}(o,n);return{list:o,argumentIndex:a,argumentCount:s,argumentsSpan:c}}function X_e(e,t,n,r){const{parent:i}=e;if(j_(i)){const t=i,o=G_e(e,0,n,r);if(!o)return;const{list:a,argumentIndex:s,argumentCount:c,argumentsSpan:l}=o;return{isTypeParameterList:!!i.typeArguments&&i.typeArguments.pos===a.pos,invocation:{kind:0,node:t},argumentsSpan:l,argumentIndex:s,argumentCount:c}}if($N(e)&&gF(i))return xQ(e,t,n)?rue(i,0,n):void 0;if(HN(e)&&216===i.parent.kind){const r=i,o=r.parent;return un.assert(229===r.kind),rue(o,xQ(e,t,n)?0:1,n)}if(qF(i)&&gF(i.parent.parent)){const r=i,o=i.parent.parent;if(GN(e)&&!xQ(e,t,n))return;const a=function(e,t,n,r){return un.assert(n>=t.getStart(),"Assumed 'position' could not occur before node."),jl(t)?xQ(t,n,r)?0:e+2:e+1}(r.parent.templateSpans.indexOf(r),e,t,n);return rue(o,a,n)}if(bu(i)){const e=i.attributes.pos;return{isTypeParameterList:!1,invocation:{kind:0,node:i},argumentsSpan:Ws(e,Qa(n.text,i.attributes.end,!1)-e),argumentIndex:0,argumentCount:1}}{const t=uQ(e,n);if(t){const{called:r,nTypeArguments:i}=t;return{isTypeParameterList:!0,invocation:{kind:1,called:r},argumentsSpan:$s(r.getStart(n),e.end),argumentIndex:i,argumentCount:i+1}}return}}function Q_e(e,t,n,r){return function(e,t,n,r){const i=function(e){switch(e.kind){case 21:case 28:return e;default:return uc(e.parent,e=>!!TD(e)||!(lF(e)||sF(e)||cF(e))&&"quit")}}(e);if(void 0===i)return;const o=function(e,t,n,r){const{parent:i}=e;switch(i.kind){case 218:case 175:case 219:case 220:const n=G_e(e,0,t,r);if(!n)return;const{argumentIndex:o,argumentCount:a,argumentsSpan:s}=n,c=FD(i)?r.getContextualTypeForObjectLiteralElement(i):r.getContextualType(i);return c&&{contextualType:c,argumentIndex:o,argumentCount:a,argumentsSpan:s};case 227:{const t=Y_e(i),n=r.getContextualType(t),o=21===e.kind?0:Z_e(i)-1,a=Z_e(t);return n&&{contextualType:n,argumentIndex:o,argumentCount:a,argumentsSpan:FQ(i)}}default:return}}(i,n,0,r);if(void 0===o)return;const{contextualType:a,argumentIndex:s,argumentCount:c,argumentsSpan:l}=o,_=a.getNonNullableType(),u=_.symbol;if(void 0===u)return;const d=ye(_.getCallSignatures());var p;return void 0!==d?{isTypeParameterList:!1,invocation:{kind:2,signature:d,node:e,symbol:(p=u,"__type"===p.name&&f(p.declarations,e=>{var t;return BD(e)?null==(t=tt(e.parent,au))?void 0:t.symbol:void 0})||p)},argumentsSpan:l,argumentIndex:s,argumentCount:c}:void 0}(e,0,n,r)||X_e(e,t,n,r)}function Y_e(e){return NF(e.parent)?Y_e(e.parent):e}function Z_e(e){return NF(e.left)?Z_e(e.left)+1:2}function eue(e,t){const n=t.getTypeAtLocation(e.expression);if(t.isTupleType(n)){const{elementFlags:e,fixedLength:t}=n.target;if(0===t)return 0;const r=k(e,e=>!(1&e));return r<0?t:r}return 0}function tue(e,t,n){return nue(e,t,n)}function nue(e,t,n){const r=t.getChildren();let i=0,o=!1;for(const t of r){if(n&&t===n)return o||28!==t.kind||i++,i;PF(t)?(i+=eue(t,e),o=!0):28===t.kind?o?o=!1:i++:(i++,o=!0)}return n?i:r.length&&28===ve(r).kind?i+1:i}function rue(e,t,n){const r=$N(e.template)?1:e.template.templateSpans.length+1;return 0!==t&&un.assertLessThan(t,r),{isTypeParameterList:!1,invocation:{kind:0,node:e},argumentsSpan:iue(e,n),argumentIndex:t,argumentCount:r}}function iue(e,t){const n=e.template,r=n.getStart();let i=n.getEnd();return 229===n.kind&&0===ve(n.templateSpans).literal.getFullWidth()&&(i=Qa(t.text,i,!1)),Ws(r,i-r)}function oue(e,t,n){const r=e.getChildren(n),i=r.indexOf(t);return un.assert(i>=0&&r.length>i+1),r[i+1]}function aue(e){return 0===e.kind?um(e.node):e.called}function sue(e){return 0===e.kind?e.node:1===e.kind?e.called:e.node}i(W_e,{getArgumentInfoForCompletions:()=>K_e,getSignatureHelpItems:()=>$_e});var cue=70246400;function lue(e,t,{isTypeParameterList:n,argumentCount:r,argumentsSpan:i,invocation:o,argumentIndex:a},s,c,_){var u;const d=sue(o),p=2===o.kind?o.symbol:c.getSymbolAtLocation(aue(o))||_&&(null==(u=t.declaration)?void 0:u.symbol),f=p?qY(c,p,_?s:void 0,void 0):l,m=E(e,e=>function(e,t,n,r,i,o){return E((n?pue:fue)(e,r,i,o),({isVariadic:n,parameters:o,prefix:a,suffix:s})=>{const c=[...t,...a],l=[...s,...due(e,i,r)],_=e.getDocumentationComment(r),u=e.getJsDocTags();return{isVariadic:n,prefixDisplayParts:c,suffixDisplayParts:l,separatorDisplayParts:uue,parameters:o,documentation:_,tags:u}})}(e,f,n,c,d,s));let g=0,h=0;for(let n=0;n1)){let e=0;for(const t of i){if(t.isVariadic||t.parameters.length>=r){g=h+e;break}e++}}h+=i.length}un.assert(-1!==g);const y={items:L(m,st),applicableSpan:i,selectedItemIndex:g,argumentIndex:a,argumentCount:r},v=y.items[g];if(v.isVariadic){const e=k(v.parameters,e=>!!e.isRest);-1mue(e,n,r,i,a)),c=e.getDocumentationComment(n),l=e.getJsDocTags(n);return{isVariadic:!1,prefixDisplayParts:[...o,wY(30)],suffixDisplayParts:[wY(32)],separatorDisplayParts:uue,parameters:s,documentation:c,tags:l}}var uue=[wY(28),TY()];function due(e,t,n){return JY(r=>{r.writePunctuation(":"),r.writeSpace(" ");const i=n.getTypePredicateOfSignature(e);i?n.writeTypePredicate(i,t,void 0,r):n.writeType(n.getReturnTypeOfSignature(e),t,void 0,r)})}function pue(e,t,n,r){const i=(e.target||e).typeParameters,o=vU(),a=(i||l).map(e=>mue(e,t,n,r,o)),s=e.thisParameter?[t.symbolToParameterDeclaration(e.thisParameter,n,cue)]:[];return t.getExpandedParameters(e).map(e=>{const i=mw.createNodeArray([...s,...E(e,e=>t.symbolToParameterDeclaration(e,n,cue))]),c=JY(e=>{o.writeList(2576,i,r,e)});return{isVariadic:!1,parameters:a,prefix:[wY(30)],suffix:[wY(32),...c]}})}function fue(e,t,n,r){const i=vU(),o=JY(o=>{if(e.typeParameters&&e.typeParameters.length){const a=mw.createNodeArray(e.typeParameters.map(e=>t.typeParameterToDeclaration(e,n,cue)));i.writeList(53776,a,r,o)}}),a=t.getExpandedParameters(e),s=t.hasEffectiveRestParameter(e)?1===a.length?e=>!0:e=>{var t;return!!(e.length&&32768&(null==(t=tt(e[e.length-1],Xu))?void 0:t.links.checkFlags))}:e=>!1;return a.map(e=>({isVariadic:s(e),parameters:e.map(e=>function(e,t,n,r,i){const o=JY(o=>{const a=t.symbolToParameterDeclaration(e,n,cue);i.writeNode(4,a,r,o)}),a=t.isOptionalParameter(e.valueDeclaration),s=Xu(e)&&!!(32768&e.links.checkFlags);return{name:e.name,documentation:e.getDocumentationComment(t),displayParts:o,isOptional:a,isRest:s}}(e,t,n,r,i)),prefix:[...o,wY(21)],suffix:[wY(22)]}))}function mue(e,t,n,r,i){const o=JY(o=>{const a=t.typeParameterToDeclaration(e,n,cue);i.writeNode(4,a,r,o)});return{name:e.symbol.name,documentation:e.symbol.getDocumentationComment(t),displayParts:o,isOptional:!1,isRest:!1}}var gue={};function hue(e,t){var n,r;let i={textSpan:$s(t.getFullStart(),t.getEnd())},o=t;e:for(;;){const i=bue(o);if(!i.length)break;for(let c=0;ce)break e;const d=be(us(t.text,_.end));if(d&&2===d.kind&&s(d.pos,d.end),yue(t,e,_)){if(Z_(_)&&o_(o)&&!$b(_.getStart(t),_.getEnd(),t)&&a(_.getStart(t),_.getEnd()),VF(_)||qF(_)||HN(_)||GN(_)||l&&HN(l)||_E(_)&&WF(o)||QP(_)&&_E(o)||lE(_)&&QP(o)&&1===i.length||lP(_)||CP(_)||TP(_)){o=_;break}qF(o)&&u&&Ml(u)&&a(_.getFullStart()-2,u.getStart()+1);const e=QP(_)&&Tue(l)&&Cue(u)&&!$b(l.getStart(),u.getStart(),t);let s=e?l.getEnd():_.getStart();const c=e?u.getStart():wue(t,_);if(Du(_)&&(null==(n=_.jsDoc)?void 0:n.length)&&a(ge(_.jsDoc).getStart(),c),QP(_)){const e=_.getChildren()[0];e&&Du(e)&&(null==(r=e.jsDoc)?void 0:r.length)&&e.getStart()!==_.pos&&(s=Math.min(s,ge(e.jsDoc).getStart()))}a(s,c),(UN(_)||M_(_))&&a(s+1,c-1),o=_;break}if(c===i.length-1)break e}}return i;function a(t,n){if(t!==n){const r=$s(t,n);(!i||!pY(r,i.textSpan)&&zs(r,e))&&(i={textSpan:r,...i&&{parent:i}})}}function s(e,n){a(e,n);let r=e;for(;47===t.text.charCodeAt(r);)r++;a(r,n)}}function yue(e,t,n){return un.assert(n.pos<=t),thue});var vue=en(xE,bE);function bue(e){var t;if(sP(e))return xue(e.getChildAt(0).getChildren(),vue);if(nF(e)){const[t,...n]=e.getChildren(),r=un.checkDefined(n.pop());un.assertEqual(t.kind,19),un.assertEqual(r.kind,20);const i=xue(n,t=>t===e.readonlyToken||148===t.kind||t===e.questionToken||58===t.kind);return[t,Sue(kue(xue(i,({kind:e})=>23===e||169===e||24===e),({kind:e})=>59===e)),r]}if(wD(e)){const n=xue(e.getChildren(),t=>t===e.name||T(e.modifiers,t)),r=321===(null==(t=n[0])?void 0:t.kind)?n[0]:void 0,i=kue(r?n.slice(1):n,({kind:e})=>59===e);return r?[r,Sue(i)]:i}if(TD(e)){const t=xue(e.getChildren(),t=>t===e.dotDotDotToken||t===e.name);return kue(xue(t,n=>n===t[0]||n===e.questionToken),({kind:e})=>64===e)}return lF(e)?kue(e.getChildren(),({kind:e})=>64===e):e.getChildren()}function xue(e,t){const n=[];let r;for(const i of e)t(i)?(r=r||[],r.push(i)):(r&&(n.push(Sue(r)),r=void 0),n.push(i));return r&&n.push(Sue(r)),n}function kue(e,t,n=!0){if(e.length<2)return e;const r=k(e,t);if(-1===r)return e;const i=e.slice(0,r),o=e[r],a=ve(e),s=n&&27===a.kind,c=e.slice(r+1,s?e.length-1:void 0),l=ne([i.length?Sue(i):void 0,o,c.length?Sue(c):void 0]);return s?l.concat(a):l}function Sue(e){return un.assertGreaterThanOrEqual(e.length,1),CT(CI.createSyntaxList(e),e[0].pos,ve(e).end)}function Tue(e){const t=e&&e.kind;return 19===t||23===t||21===t||287===t}function Cue(e){const t=e&&e.kind;return 20===t||24===t||22===t||288===t}function wue(e,t){switch(t.kind){case 342:case 339:case 349:case 347:case 344:return e.getLineEndOfPosition(t.getStart());default:return t.getEnd()}}var Nue={};i(Nue,{getSymbolDisplayPartsDocumentationAndSymbolKind:()=>Oue,getSymbolKind:()=>Fue,getSymbolModifiers:()=>Aue});var Due=70246400;function Fue(e,t,n){const r=Eue(e,t,n);if(""!==r)return r;const i=ax(t);return 32&i?Hu(t,232)?"local class":"class":384&i?"enum":524288&i?"type":64&i?"interface":262144&i?"type parameter":8&i?"enum member":2097152&i?"alias":1536&i?"module":r}function Eue(e,t,n){const r=e.getRootSymbols(t);if(1===r.length&&8192&ge(r).flags&&0!==e.getTypeOfSymbolAtLocation(t,n).getNonNullableType().getCallSignatures().length)return"method";if(e.isUndefinedSymbol(t))return"var";if(e.isArgumentsSymbol(t))return"local var";if(110===n.kind&&V_(n)||uv(n))return"parameter";const i=ax(t);if(3&i)return xY(t)?"parameter":t.valueDeclaration&&af(t.valueDeclaration)?"const":t.valueDeclaration&&of(t.valueDeclaration)?"using":t.valueDeclaration&&rf(t.valueDeclaration)?"await using":d(t.declarations,cf)?"let":Lue(t)?"local var":"var";if(16&i)return Lue(t)?"local function":"function";if(32768&i)return"getter";if(65536&i)return"setter";if(8192&i)return"method";if(16384&i)return"constructor";if(131072&i)return"index";if(4&i){if(33554432&i&&6&t.links.checkFlags){const r=d(e.getRootSymbols(t),e=>{if(98311&e.getFlags())return"property"});return r||(e.getTypeOfSymbolAtLocation(t,n).getCallSignatures().length?"method":"property")}return"property"}return""}function Pue(e){if(e.declarations&&e.declarations.length){const[t,...n]=e.declarations,r=mQ(t,u(n)&&$Z(t)&&$(n,e=>!$Z(e))?65536:0);if(r)return r.split(",")}return[]}function Aue(e,t){if(!t)return"";const n=new Set(Pue(t));if(2097152&t.flags){const r=e.getAliasedSymbol(t);r!==t&&d(Pue(r),e=>{n.add(e)})}return 16777216&t.flags&&n.add("optional"),n.size>0?Oe(n.values()).join(","):""}function Iue(e,t,n,r,i,o,a,s,c,_){var u;const p=[];let m=[],g=[];const h=ax(t);let y=1&a?Eue(e,t,i):"",v=!1;const x=110===i.kind&&xm(i)||uv(i);let k,S,C=!1;const w={canIncreaseExpansionDepth:!1,truncated:!1};let N=!1;if(110===i.kind&&!x)return{displayParts:[CY(110)],documentation:[],symbolKind:"primitive type",tags:void 0};if(""!==y||32&h||2097152&h){if("getter"===y||"setter"===y){const e=b(t.declarations,e=>e.name===i&&212!==e.kind);if(e)switch(e.kind){case 178:y="getter";break;case 179:y="setter";break;case 173:y="accessor";break;default:un.assertNever(e)}else y="property"}let n,a;if(o??(o=x?e.getTypeAtLocation(i):e.getTypeOfSymbolAtLocation(t,i)),i.parent&&212===i.parent.kind){const e=i.parent.name;(e===i||e&&0===e.getFullWidth())&&(i=i.parent)}if(j_(i)?a=i:(HG(i)||KG(i)||i.parent&&(bu(i.parent)||gF(i.parent))&&r_(t.valueDeclaration))&&(a=i.parent),a){n=e.getResolvedSignature(a);const i=215===a.kind||fF(a)&&108===a.expression.kind,s=i?o.getConstructSignatures():o.getCallSignatures();if(!n||T(s,n.target)||T(s,n)||(n=s.length?s[0]:void 0),n){switch(i&&32&h?(y="constructor",L(o.symbol,y)):2097152&h?(y="alias",j(y),p.push(TY()),i&&(4&n.flags&&(p.push(CY(128)),p.push(TY())),p.push(CY(105)),p.push(TY())),O(t)):L(t,y),y){case"JSX attribute":case"property":case"var":case"const":case"let":case"parameter":case"local var":p.push(wY(59)),p.push(TY()),16&gx(o)||!o.symbol||(se(p,qY(e,o.symbol,r,void 0,5)),p.push(BY())),i&&(4&n.flags&&(p.push(CY(128)),p.push(TY())),p.push(CY(105)),p.push(TY())),M(n,s,262144);break;default:M(n,s)}v=!0,C=s.length>1}}else if(fX(i)&&!(98304&h)||137===i.kind&&177===i.parent.kind){const r=i.parent;if(t.declarations&&b(t.declarations,e=>e===(137===i.kind?r.parent:r))){const i=177===r.kind?o.getNonNullableType().getConstructSignatures():o.getNonNullableType().getCallSignatures();n=e.isImplementationOfOverload(r)?i[0]:e.getSignatureFromDeclaration(r),177===r.kind?(y="constructor",L(o.symbol,y)):L(180!==r.kind||2048&o.symbol.flags||4096&o.symbol.flags?t:o.symbol,y),n&&M(n,i),v=!0,C=i.length>1}}}if(32&h&&!v&&!x){P();const e=Hu(t,232);e&&(j("local class"),p.push(TY())),I(t,a)||(e||(p.push(CY(86)),p.push(TY())),O(t),R(t,n))}if(64&h&&2&a&&(E(),I(t,a)||(p.push(CY(120)),p.push(TY()),O(t),R(t,n))),524288&h&&2&a&&(E(),p.push(CY(156)),p.push(TY()),O(t),R(t,n),p.push(TY()),p.push(NY(64)),p.push(TY()),se(p,zY(e,i.parent&&kl(i.parent)?e.getTypeAtLocation(i.parent):e.getDeclaredTypeOfSymbol(t),r,8388608,c,_,w))),384&h&&(E(),I(t,a)||($(t.declarations,e=>mE(e)&&tf(e))&&(p.push(CY(87)),p.push(TY())),p.push(CY(94)),p.push(TY()),O(t,void 0))),1536&h&&!x&&(E(),!I(t,a))){const e=Hu(t,268),n=e&&e.name&&80===e.name.kind;p.push(CY(n?145:144)),p.push(TY()),O(t)}if(262144&h&&2&a)if(E(),p.push(wY(21)),p.push(PY("type parameter")),p.push(wY(22)),p.push(TY()),O(t),t.parent)A(),O(t.parent,r),R(t.parent,r);else{const r=Hu(t,169);if(void 0===r)return un.fail();const i=r.parent;if(i)if(r_(i)){A();const t=e.getSignatureFromDeclaration(i);181===i.kind?(p.push(CY(105)),p.push(TY())):180!==i.kind&&i.name&&O(i.symbol),se(p,UY(e,t,n,32))}else fE(i)&&(A(),p.push(CY(156)),p.push(TY()),O(i.symbol),R(i.symbol,n))}if(8&h){y="enum member",L(t,"enum member");const n=null==(u=t.declarations)?void 0:u[0];if(307===(null==n?void 0:n.kind)){const t=e.getConstantValue(n);void 0!==t&&(p.push(TY()),p.push(NY(64)),p.push(TY()),p.push(SY(ip(t),"number"==typeof t?7:8)))}}if(2097152&t.flags){if(E(),!v||0===m.length&&0===g.length){const n=e.getAliasedSymbol(t);if(n!==t&&n.declarations&&n.declarations.length>0){const i=n.declarations[0],s=Cc(i);if(s&&!v){const l=lp(i)&&Nv(i,128),u="default"!==t.name&&!l,d=Iue(e,n,vd(i),r,s,o,a,u?t:n,c,_);p.push(...d.displayParts),p.push(BY()),k=d.documentation,S=d.tags,w&&d.canIncreaseVerbosityLevel&&(w.canIncreaseExpansionDepth=!0)}else k=n.getContextualDocumentationComment(i,e),S=n.getJsDocTags(e)}}if(t.declarations)switch(t.declarations[0].kind){case 271:p.push(CY(95)),p.push(TY()),p.push(CY(145));break;case 278:p.push(CY(95)),p.push(TY()),p.push(CY(t.declarations[0].isExportEquals?64:90));break;case 282:p.push(CY(95));break;default:p.push(CY(102))}p.push(TY()),O(t),d(t.declarations,t=>{if(272===t.kind){const n=t;if(Tm(n))p.push(TY()),p.push(NY(64)),p.push(TY()),p.push(CY(149)),p.push(wY(21)),p.push(SY(Xd(Cm(n)),8)),p.push(wY(22));else{const t=e.getSymbolAtLocation(n.moduleReference);t&&(p.push(TY()),p.push(NY(64)),p.push(TY()),O(t,r))}return!0}})}if(!v)if(""!==y){if(o)if(x?(E(),p.push(CY(110))):L(t,y),"property"===y||"accessor"===y||"getter"===y||"setter"===y||"JSX attribute"===y||3&h||"local var"===y||"index"===y||"using"===y||"await using"===y||x){if(p.push(wY(59)),p.push(TY()),o.symbol&&262144&o.symbol.flags&&"index"!==y){const t=JY(t=>{const n=e.typeParameterToDeclaration(o,r,Due,void 0,void 0,c,_,w);F().writeNode(4,n,vd(pc(r)),t)},c);se(p,t)}else se(p,zY(e,o,r,void 0,c,_,w));if(Xu(t)&&t.links.target&&Xu(t.links.target)&&t.links.target.links.tupleLabelDeclaration){const e=t.links.target.links.tupleLabelDeclaration;un.assertNode(e.name,aD),p.push(TY()),p.push(wY(21)),p.push(PY(gc(e.name))),p.push(wY(22))}}else if(16&h||8192&h||16384&h||131072&h||98304&h||"method"===y){const e=o.getNonNullableType().getCallSignatures();e.length&&(M(e[0],e),C=e.length>1)}}else y=Fue(e,t,i);if(0!==m.length||C||(m=t.getContextualDocumentationComment(r,e)),0===m.length&&4&h&&t.parent&&t.declarations&&d(t.parent.declarations,e=>308===e.kind))for(const n of t.declarations){if(!n.parent||227!==n.parent.kind)continue;const t=e.getSymbolAtLocation(n.parent.right);if(t&&(m=t.getDocumentationComment(e),g=t.getJsDocTags(e),m.length>0))break}if(0===m.length&&aD(i)&&t.valueDeclaration&&lF(t.valueDeclaration)){const n=t.valueDeclaration,r=n.parent,i=n.propertyName||n.name;if(aD(i)&&sF(r)){const t=qh(i),n=e.getTypeAtLocation(r);m=f(n.isUnion()?n.types:[n],n=>{const r=n.getProperty(t);return r?r.getDocumentationComment(e):void 0})||l}}0!==g.length||C||Im(i)||(g=t.getContextualJsDocTags(r,e)),0===m.length&&k&&(m=k),0===g.length&&S&&(g=S);const D=!w.truncated&&w.canIncreaseExpansionDepth;return{displayParts:p,documentation:m,symbolKind:y,tags:0===g.length?void 0:g,canIncreaseVerbosityLevel:void 0!==_?D:void 0};function F(){return vU()}function E(){p.length&&p.push(BY()),P()}function P(){s&&(j("alias"),p.push(TY()))}function A(){p.push(TY()),p.push(CY(103)),p.push(TY())}function I(t,n){if(N)return!0;if(function(t,n){if(void 0===_)return!1;const r=96&t.flags?e.getDeclaredTypeOfSymbol(t):e.getTypeOfSymbolAtLocation(t,i);return!(!r||e.isLibType(r))&&(0<_||(n&&(n.canIncreaseExpansionDepth=!0),!1))}(t,w)){const r=function(e){let t=0;return 1&e&&(t|=111551),2&e&&(t|=788968),4&e&&(t|=1920),t}(n),i=JY(n=>{const i=e.getEmitResolver().symbolToDeclarations(t,r,17408,c,void 0!==_?_-1:void 0,w),o=F(),a=t.valueDeclaration&&vd(t.valueDeclaration);i.forEach((e,t)=>{t>0&&n.writeLine(),o.writeNode(4,e,a,n)})},c);return se(p,i),N=!0,!0}return!1}function O(r,i){let o;s&&r===t&&(r=s),"index"===y&&(o=e.getIndexInfosOfIndexSymbol(r));let a=[];131072&r.flags&&o?(r.parent&&(a=qY(e,r.parent)),a.push(wY(23)),o.forEach((t,n)=>{a.push(...zY(e,t.keyType)),n!==o.length-1&&(a.push(TY()),a.push(wY(52)),a.push(TY()))}),a.push(wY(24))):a=qY(e,r,i||n,void 0,7),se(p,a),16777216&t.flags&&p.push(wY(58))}function L(e,t){E(),t&&(j(t),e&&!$(e.declarations,e=>bF(e)||(vF(e)||AF(e))&&!e.name)&&(p.push(TY()),O(e)))}function j(e){switch(e){case"var":case"function":case"let":case"const":case"constructor":case"using":case"await using":return void p.push(EY(e));default:return p.push(wY(21)),p.push(EY(e)),void p.push(wY(22))}}function M(t,n,i=0){se(p,UY(e,t,r,32|i,c,_,w)),n.length>1&&(p.push(TY()),p.push(wY(21)),p.push(NY(40)),p.push(SY((n.length-1).toString(),7)),p.push(TY()),p.push(PY(2===n.length?"overload":"overloads")),p.push(wY(22))),m=t.getDocumentationComment(e),g=t.getJsDocTags(),n.length>1&&0===m.length&&0===g.length&&(m=n[0].getDocumentationComment(e),g=n[0].getJsDocTags().filter(e=>"deprecated"!==e.name))}function R(t,n){const r=JY(r=>{const i=e.symbolToTypeParameterDeclarations(t,n,Due);F().writeList(53776,i,vd(pc(n)),r)});se(p,r)}}function Oue(e,t,n,r,i,o=WG(i),a,s,c){return Iue(e,t,n,r,i,void 0,o,a,s,c)}function Lue(e){return!e.parent&&d(e.declarations,e=>{if(219===e.kind)return!0;if(261!==e.kind&&263!==e.kind)return!1;for(let t=e.parent;!Bf(t);t=t.parent)if(308===t.kind||269===t.kind)return!1;return!0})}var jue={};function Mue(e){const t=e.__pos;return un.assert("number"==typeof t),t}function Rue(e,t){un.assert("number"==typeof t),e.__pos=t}function Bue(e){const t=e.__end;return un.assert("number"==typeof t),t}function Jue(e,t){un.assert("number"==typeof t),e.__end=t}i(jue,{ChangeTracker:()=>Yue,LeadingTriviaOption:()=>zue,TrailingTriviaOption:()=>que,applyChanges:()=>nde,assignPositionsToNode:()=>ode,createWriter:()=>sde,deleteNode:()=>lde,getAdjustedEndPosition:()=>Kue,isThisTypeAnnotatable:()=>Xue,isValidLocationToAddComment:()=>cde});var zue=(e=>(e[e.Exclude=0]="Exclude",e[e.IncludeAll=1]="IncludeAll",e[e.JSDoc=2]="JSDoc",e[e.StartLine=3]="StartLine",e))(zue||{}),que=(e=>(e[e.Exclude=0]="Exclude",e[e.ExcludeWhitespace=1]="ExcludeWhitespace",e[e.Include=2]="Include",e))(que||{});function Uue(e,t){return Qa(e,t,!1,!0)}var Vue={leadingTriviaOption:0,trailingTriviaOption:0};function Wue(e,t,n,r){return{pos:$ue(e,t,r),end:Kue(e,n,r)}}function $ue(e,t,n,r=!1){var i,o;const{leadingTriviaOption:a}=n;if(0===a)return t.getStart(e);if(3===a){const n=t.getStart(e),r=xX(n,e);return SX(t,r)?r:n}if(2===a){const n=vf(t,e.text);if(null==n?void 0:n.length)return xX(n[0].pos,e)}const s=t.getFullStart(),c=t.getStart(e);if(s===c)return c;const l=xX(s,e);if(xX(c,e)===l)return 1===a?s:c;if(r){const t=(null==(i=_s(e.text,s))?void 0:i[0])||(null==(o=us(e.text,s))?void 0:o[0]);if(t)return Qa(e.text,t.end,!0,!0)}const _=s>0?1:0;let u=Sd(nv(e,l)+_,e);return u=Uue(e.text,u),Sd(nv(e,u),e)}function Hue(e,t,n){const{end:r}=t,{trailingTriviaOption:i}=n;if(2===i){const n=us(e.text,r);if(n){const r=nv(e,t.end);for(const t of n){if(2===t.kind||nv(e,t.pos)>r)break;if(nv(e,t.end)>r)return Qa(e.text,t.end,!0,!0)}}}}function Kue(e,t,n){var r;const{end:i}=t,{trailingTriviaOption:o}=n;if(0===o)return i;if(1===o){const t=K(us(e.text,i),_s(e.text,i));return(null==(r=null==t?void 0:t[t.length-1])?void 0:r.end)||i}const a=Hue(e,t,n);if(a)return a;const s=Qa(e.text,i,!0);return s===i||2!==o&&!Va(e.text.charCodeAt(s-1))?i:s}function Gue(e,t){return!!t&&!!e.parent&&(28===t.kind||27===t.kind&&211===e.parent.kind)}function Xue(e){return vF(e)||uE(e)}var Que,Yue=class e{constructor(e,t){this.newLineCharacter=e,this.formatContext=t,this.changes=[],this.classesWithNodesInsertedAtStart=new Map,this.deletedNodes=[]}static fromContext(t){return new e(RY(t.host,t.formatContext.options),t.formatContext)}static with(t,n){const r=e.fromContext(t);return n(r),r.getChanges()}pushRaw(e,t){un.assertEqual(e.fileName,t.fileName);for(const n of t.textChanges)this.changes.push({kind:3,sourceFile:e,text:n.newText,range:IQ(n.span)})}deleteRange(e,t){this.changes.push({kind:0,sourceFile:e,range:t})}delete(e,t){this.deletedNodes.push({sourceFile:e,node:t})}deleteNode(e,t,n={leadingTriviaOption:1}){this.deleteRange(e,Wue(e,t,t,n))}deleteNodes(e,t,n={leadingTriviaOption:1},r){for(const i of t){const t=$ue(e,i,n,r),o=Kue(e,i,n);this.deleteRange(e,{pos:t,end:o}),r=!!Hue(e,i,n)}}deleteModifier(e,t){this.deleteRange(e,{pos:t.getStart(e),end:Qa(e.text,t.end,!0)})}deleteNodeRange(e,t,n,r={leadingTriviaOption:1}){const i=$ue(e,t,r),o=Kue(e,n,r);this.deleteRange(e,{pos:i,end:o})}deleteNodeRangeExcludingEnd(e,t,n,r={leadingTriviaOption:1}){const i=$ue(e,t,r),o=void 0===n?e.text.length:$ue(e,n,r);this.deleteRange(e,{pos:i,end:o})}replaceRange(e,t,n,r={}){this.changes.push({kind:1,sourceFile:e,range:t,options:r,node:n})}replaceNode(e,t,n,r=Vue){this.replaceRange(e,Wue(e,t,t,r),n,r)}replaceNodeRange(e,t,n,r,i=Vue){this.replaceRange(e,Wue(e,t,n,i),r,i)}replaceRangeWithNodes(e,t,n,r={}){this.changes.push({kind:2,sourceFile:e,range:t,options:r,nodes:n})}replaceNodeWithNodes(e,t,n,r=Vue){this.replaceRangeWithNodes(e,Wue(e,t,t,r),n,r)}replaceNodeWithText(e,t,n){this.replaceRangeWithText(e,Wue(e,t,t,Vue),n)}replaceNodeRangeWithNodes(e,t,n,r,i=Vue){this.replaceRangeWithNodes(e,Wue(e,t,n,i),r,i)}nodeHasTrailingComment(e,t,n=Vue){return!!Hue(e,t,n)}nextCommaToken(e,t){const n=QX(t,t.parent,e);return n&&28===n.kind?n:void 0}replacePropertyAssignment(e,t,n){const r=this.nextCommaToken(e,t)?"":","+this.newLineCharacter;this.replaceNode(e,t,n,{suffix:r})}insertNodeAt(e,t,n,r={}){this.replaceRange(e,Ab(t),n,r)}insertNodesAt(e,t,n,r={}){this.replaceRangeWithNodes(e,Ab(t),n,r)}insertNodeAtTopOfFile(e,t,n){this.insertAtTopOfFile(e,t,n)}insertNodesAtTopOfFile(e,t,n){this.insertAtTopOfFile(e,t,n)}insertAtTopOfFile(e,t,n){const r=function(e){let t;for(const n of e.statements){if(!pf(n))break;t=n}let n=0;const r=e.text;if(t)return n=t.end,c(),n;const i=ds(r);void 0!==i&&(n=i.length,c());const o=_s(r,n);if(!o)return n;let a,s;for(const t of o){if(3===t.kind){if(Bd(r,t.pos)){a={range:t,pinnedOrTripleSlash:!0};continue}}else if(Rd(r,t.pos,t.end)){a={range:t,pinnedOrTripleSlash:!0};continue}if(a){if(a.pinnedOrTripleSlash)break;if(e.getLineAndCharacterOfPosition(t.pos).line>=e.getLineAndCharacterOfPosition(a.range.end).line+2)break}if(e.statements.length&&(void 0===s&&(s=e.getLineAndCharacterOfPosition(e.statements[0].getStart()).line),sZe(e.comment)?mw.createJSDocText(e.comment):e.comment),r=be(t.jsDoc);return r&&$b(r.pos,r.end,e)&&0===u(n)?void 0:mw.createNodeArray(y(n,mw.createJSDocText("\n")))}replaceJSDocComment(e,t,n){this.insertJsdocCommentBefore(e,function(e){if(220!==e.kind)return e;const t=173===e.parent.kind?e.parent:e.parent.parent;return t.jsDoc=e.jsDoc,t}(t),mw.createJSDocComment(this.createJSDocText(e,t),mw.createNodeArray(n)))}addJSDocTags(e,t,n){const r=L(t.jsDoc,e=>e.tags),i=n.filter(e=>!r.some((t,n)=>{const i=function(e,t){if(e.kind===t.kind)switch(e.kind){case 342:{const n=e,r=t;return aD(n.name)&&aD(r.name)&&n.name.escapedText===r.name.escapedText?mw.createJSDocParameterTag(void 0,r.name,!1,r.typeExpression,r.isNameFirst,n.comment):void 0}case 343:return mw.createJSDocReturnTag(void 0,t.typeExpression,e.comment);case 345:return mw.createJSDocTypeTag(void 0,t.typeExpression,e.comment)}}(t,e);return i&&(r[n]=i),!!i}));this.replaceJSDocComment(e,t,[...r,...i])}filterJSDocTags(e,t,n){this.replaceJSDocComment(e,t,N(L(t.jsDoc,e=>e.tags),n))}replaceRangeWithText(e,t,n){this.changes.push({kind:3,sourceFile:e,range:t,text:n})}insertText(e,t,n){this.replaceRangeWithText(e,Ab(t),n)}tryInsertTypeAnnotation(e,t,n){let r;if(r_(t)){if(r=OX(t,22,e),!r){if(!bF(t))return!1;r=ge(t.parameters)}}else r=(261===t.kind?t.exclamationToken:t.questionToken)??t.name;return this.insertNodeAt(e,r.end,n,{prefix:": "}),!0}tryInsertThisTypeAnnotation(e,t,n){const r=OX(t,21,e).getStart(e)+1,i=t.parameters.length?", ":"";this.insertNodeAt(e,r,n,{prefix:"this: ",suffix:i})}insertTypeParameters(e,t,n){const r=(OX(t,21,e)||ge(t.parameters)).getStart(e);this.insertNodesAt(e,r,n,{prefix:"<",suffix:">",joiner:", "})}getOptionsForInsertNodeBefore(e,t,n){return pu(e)||__(e)?{suffix:n?this.newLineCharacter+this.newLineCharacter:this.newLineCharacter}:lE(e)?{suffix:", "}:TD(e)?TD(t)?{suffix:", "}:{}:UN(e)&&xE(e.parent)||EE(e)?{suffix:", "}:PE(e)?{suffix:","+(n?this.newLineCharacter:" ")}:un.failBadSyntaxKind(e)}insertNodeAtConstructorStart(e,t,n){const r=fe(t.body.statements);r&&t.body.multiLine?this.insertNodeBefore(e,r,n):this.replaceConstructorBody(e,t,[n,...t.body.statements])}insertNodeAtConstructorStartAfterSuperCall(e,t,n){const r=b(t.body.statements,e=>HF(e)&&lf(e.expression));r&&t.body.multiLine?this.insertNodeAfter(e,r,n):this.replaceConstructorBody(e,t,[...t.body.statements,n])}insertNodeAtConstructorEnd(e,t,n){const r=ye(t.body.statements);r&&t.body.multiLine?this.insertNodeAfter(e,r,n):this.replaceConstructorBody(e,t,[...t.body.statements,n])}replaceConstructorBody(e,t,n){this.replaceNode(e,t.body,mw.createBlock(n,!0))}insertNodeAtEndOfScope(e,t,n){const r=$ue(e,t.getLastToken(),{});this.insertNodeAt(e,r,n,{prefix:Va(e.text.charCodeAt(t.getLastToken().pos))?this.newLineCharacter:this.newLineCharacter+this.newLineCharacter,suffix:this.newLineCharacter})}insertMemberAtStart(e,t,n){this.insertNodeAtStartWorker(e,t,n)}insertNodeAtObjectStart(e,t,n){this.insertNodeAtStartWorker(e,t,n)}insertNodeAtStartWorker(e,t,n){const r=this.guessIndentationFromExistingMembers(e,t)??this.computeIndentationForNewMember(e,t);this.insertNodeAt(e,tde(t).pos,n,this.getInsertNodeAtStartInsertOptions(e,t,r))}guessIndentationFromExistingMembers(e,t){let n,r=t;for(const i of tde(t)){if(Bb(r,i,e))return;const t=i.getStart(e),o=ude.SmartIndenter.findFirstNonWhitespaceColumn(xX(t,e),t,e,this.formatContext.options);if(void 0===n)n=o;else if(o!==n)return;r=i}return n}computeIndentationForNewMember(e,t){const n=t.getStart(e);return ude.SmartIndenter.findFirstNonWhitespaceColumn(xX(n,e),n,e,this.formatContext.options)+(this.formatContext.options.indentSize??4)}getInsertNodeAtStartInsertOptions(e,t,n){const r=0===tde(t).length,i=!this.classesWithNodesInsertedAtStart.has(ZB(t));i&&this.classesWithNodesInsertedAtStart.set(ZB(t),{node:t,sourceFile:e});const o=uF(t)&&(!ef(e)||!r);return{indentation:n,prefix:(uF(t)&&ef(e)&&r&&!i?",":"")+this.newLineCharacter,suffix:o?",":pE(t)&&r?";":""}}insertNodeAfterComma(e,t,n){const r=this.insertNodeAfterWorker(e,this.nextCommaToken(e,t)||t,n);this.insertNodeAt(e,r,n,this.getInsertNodeAfterOptions(e,t))}insertNodeAfter(e,t,n){const r=this.insertNodeAfterWorker(e,t,n);this.insertNodeAt(e,r,n,this.getInsertNodeAfterOptions(e,t))}insertNodeAtEndOfList(e,t,n){this.insertNodeAt(e,t.end,n,{prefix:", "})}insertNodesAfter(e,t,n){const r=this.insertNodeAfterWorker(e,t,ge(n));this.insertNodesAt(e,r,n,this.getInsertNodeAfterOptions(e,t))}insertNodeAfterWorker(e,t,n){var r,i;return i=n,((wD(r=t)||ND(r))&&y_(i)&&168===i.name.kind||du(r)&&du(i))&&59!==e.text.charCodeAt(t.end-1)&&this.replaceRange(e,Ab(t.end),mw.createToken(27)),Kue(e,t,{})}getInsertNodeAfterOptions(e,t){const n=this.getInsertNodeAfterOptionsWorker(t);return{...n,prefix:t.end===e.end&&pu(t)?n.prefix?`\n${n.prefix}`:"\n":n.prefix}}getInsertNodeAfterOptionsWorker(e){switch(e.kind){case 264:case 268:return{prefix:this.newLineCharacter,suffix:this.newLineCharacter};case 261:case 11:case 80:return{prefix:", "};case 304:return{suffix:","+this.newLineCharacter};case 95:return{prefix:" "};case 170:return{};default:return un.assert(pu(e)||y_(e)),{suffix:this.newLineCharacter}}}insertName(e,t,n){if(un.assert(!t.name),220===t.kind){const r=OX(t,39,e),i=OX(t,21,e);i?(this.insertNodesAt(e,i.getStart(e),[mw.createToken(100),mw.createIdentifier(n)],{joiner:" "}),lde(this,e,r)):(this.insertText(e,ge(t.parameters).getStart(e),`function ${n}(`),this.replaceRange(e,r,mw.createToken(22))),242!==t.body.kind&&(this.insertNodesAt(e,t.body.getStart(e),[mw.createToken(19),mw.createToken(107)],{joiner:" ",suffix:" "}),this.insertNodesAt(e,t.body.end,[mw.createToken(27),mw.createToken(20)],{joiner:" "}))}else{const r=OX(t,219===t.kind?100:86,e).end;this.insertNodeAt(e,r,mw.createIdentifier(n),{prefix:" "})}}insertExportModifier(e,t){this.insertText(e,t.getStart(e),"export ")}insertImportSpecifierAtIndex(e,t,n,r){const i=n.elements[r-1];i?this.insertNodeInListAfter(e,i,t):this.insertNodeBefore(e,n.elements[0],t,!$b(n.elements[0].getStart(),n.parent.parent.getStart(),e))}insertNodeInListAfter(e,t,n,r=ude.SmartIndenter.getContainingList(t,e)){if(!r)return void un.fail("node is not a list element");const i=Yd(r,t);if(i<0)return;const o=t.getEnd();if(i!==r.length-1){const o=HX(e,t.end);if(o&&Gue(t,o)){const t=r[i+1],a=Uue(e.text,t.getFullStart()),s=`${Fa(o.kind)}${e.text.substring(o.end,a)}`;this.insertNodesAt(e,a,[n],{suffix:s})}}else{const a=t.getStart(e),s=xX(a,e);let c,l=!1;if(1===r.length)c=28;else{const n=YX(t.pos,e);c=Gue(t,n)?n.kind:28,l=xX(r[i-1].getStart(e),e)!==s}if(!function(e,t){let n=t;for(;n{const[n,r]=function(e,t){const n=OX(e,19,t),r=OX(e,20,t);return[null==n?void 0:n.end,null==r?void 0:r.end]}(e,t);if(void 0!==n&&void 0!==r){const i=0===tde(e).length,o=$b(n,r,t);i&&o&&n!==r-1&&this.deleteRange(t,Ab(n,r-1)),o&&this.insertText(t,r-1,this.newLineCharacter)}})}finishDeleteDeclarations(){const e=new Set;for(const{sourceFile:t,node:n}of this.deletedNodes)this.deletedNodes.some(e=>e.sourceFile===t&&kX(e.node,n))||(Qe(n)?this.deleteRange(t,lT(t,n)):rde.deleteDeclaration(this,e,t,n));e.forEach(t=>{const n=t.getSourceFile(),r=ude.SmartIndenter.getContainingList(t,n);if(t!==ve(r))return;const i=S(r,t=>!e.has(t),r.length-2);-1!==i&&this.deleteRange(n,{pos:r[i].end,end:Zue(n,r[i+1])})})}getChanges(e){this.finishDeleteDeclarations(),this.finishClassesWithNodesInsertedAtStart();const t=Que.getTextChangesFromChanges(this.changes,this.newLineCharacter,this.formatContext,e);return this.newFileChanges&&this.newFileChanges.forEach((e,n)=>{t.push(Que.newFileChanges(n,e,this.newLineCharacter,this.formatContext))}),t}createNewFile(e,t,n){this.insertStatementsInNewFile(t,n,e)}};function Zue(e,t){return Qa(e.text,$ue(e,t,{leadingTriviaOption:1}),!1,!0)}function ede(e,t,n,r){const i=Zue(e,r);if(void 0===n||$b(Kue(e,t,{}),i,e))return i;const o=YX(r.getStart(e),e);if(Gue(t,o)){const r=YX(t.getStart(e),e);if(Gue(n,r)){const t=Qa(e.text,o.getEnd(),!0,!0);if($b(r.getStart(e),o.getStart(e),e))return Va(e.text.charCodeAt(t-1))?t-1:t;if(Va(e.text.charCodeAt(t)))return t}}return i}function tde(e){return uF(e)?e.properties:e.members}function nde(e,t){for(let n=t.length-1;n>=0;n--){const{span:r,newText:i}=t[n];e=`${e.substring(0,r.start)}${i}${e.substring(Fs(r))}`}return e}(e=>{function t(e,t,r,i){const o=O(t,e=>e.statements.map(t=>4===t?"":n(t,e.oldFile,r).text)).join(r),a=eO("any file name",o,{languageVersion:99,jsDocParsingMode:1},!0,e);return nde(o,ude.formatDocument(a,i))+r}function n(e,t,n){const r=sde(n);return kU({newLine:KZ(n),neverAsciiEscape:!0,preserveSourceNewlines:!0,terminateUnterminatedLiterals:!0},r).writeNode(4,e,t,r),{text:r.getText(),node:ode(e)}}e.getTextChangesFromChanges=function(e,t,r,i){return B(Je(e,e=>e.sourceFile.path),e=>{const o=e[0].sourceFile,a=_e(e,(e,t)=>e.range.pos-t.range.pos||e.range.end-t.range.end);for(let e=0;e`${JSON.stringify(a[e].range)} and ${JSON.stringify(a[e+1].range)}`);const s=B(a,e=>{const a=AQ(e.range),s=1===e.kind?vd(_c(e.node))??e.sourceFile:2===e.kind?vd(_c(e.nodes[0]))??e.sourceFile:e.sourceFile,c=function(e,t,r,i,o,a){var s;if(0===e.kind)return"";if(3===e.kind)return e.text;const{options:c={},range:{pos:l}}=e,_=e=>function(e,t,r,i,{indentation:o,prefix:a,delta:s},c,l,_){const{node:u,text:d}=n(e,t,c);_&&_(u,d);const p=XZ(l,t),f=void 0!==o?o:ude.SmartIndenter.getIndentation(i,r,p,a===c||xX(i,t)===i);void 0===s&&(s=ude.SmartIndenter.shouldIndentChildNode(p,e)&&p.indentSize||0);const m={text:d,getLineAndCharacterOfPosition(e){return za(this,e)}};return nde(d,ude.formatNodeGivenIndentation(u,m,t.languageVariant,f,s,{...l,options:p}))}(e,t,r,l,c,i,o,a),u=2===e.kind?e.nodes.map(e=>Rt(_(e),i)).join((null==(s=e.options)?void 0:s.joiner)||i):_(e.node),d=void 0!==c.indentation||xX(l,t)===l?u:u.replace(/^\s+/,"");return(c.prefix||"")+d+(!c.suffix||Mt(d,c.suffix)?"":c.suffix)}(e,s,o,t,r,i);if(a.length!==c.length||!VZ(s.text,c,a.start))return LQ(a,c)});return s.length>0?{fileName:o.fileName,textChanges:s}:void 0})},e.newFileChanges=function(e,n,r,i){const o=t(xS(e),n,r,i);return{fileName:e,textChanges:[LQ(Ws(0,0),o)],isNewFile:!0}},e.newFileChangesWorker=t,e.getNonformattedText=n})(Que||(Que={}));var rde,ide={...Wq,factory:iw(1|Wq.factory.flags,Wq.factory.baseFactory)};function ode(e){const t=vJ(e,ode,ide,ade,ode),n=ey(t)?t:Object.create(t);return CT(n,Mue(e),Bue(e)),n}function ade(e,t,n,r,i){const o=_J(e,t,n,r,i);if(!o)return o;un.assert(e);const a=o===e?mw.createNodeArray(o.slice(0)):o;return CT(a,Mue(e),Bue(e)),a}function sde(e){let t=0;const n=Oy(e);function r(e,r){if(r||!function(e){return Qa(e,0)===e.length}(e)){t=n.getTextPos();let r=0;for(;qa(e.charCodeAt(e.length-r-1));)r++;t-=r}}return{onBeforeEmitNode:e=>{e&&Rue(e,t)},onAfterEmitNode:e=>{e&&Jue(e,t)},onBeforeEmitNodeArray:e=>{e&&Rue(e,t)},onAfterEmitNodeArray:e=>{e&&Jue(e,t)},onBeforeEmitToken:e=>{e&&Rue(e,t)},onAfterEmitToken:e=>{e&&Jue(e,t)},write:function(e){n.write(e),r(e,!1)},writeComment:function(e){n.writeComment(e)},writeKeyword:function(e){n.writeKeyword(e),r(e,!1)},writeOperator:function(e){n.writeOperator(e),r(e,!1)},writePunctuation:function(e){n.writePunctuation(e),r(e,!1)},writeTrailingSemicolon:function(e){n.writeTrailingSemicolon(e),r(e,!1)},writeParameter:function(e){n.writeParameter(e),r(e,!1)},writeProperty:function(e){n.writeProperty(e),r(e,!1)},writeSpace:function(e){n.writeSpace(e),r(e,!1)},writeStringLiteral:function(e){n.writeStringLiteral(e),r(e,!1)},writeSymbol:function(e,t){n.writeSymbol(e,t),r(e,!1)},writeLine:function(e){n.writeLine(e)},increaseIndent:function(){n.increaseIndent()},decreaseIndent:function(){n.decreaseIndent()},getText:function(){return n.getText()},rawWrite:function(e){n.rawWrite(e),r(e,!1)},writeLiteral:function(e){n.writeLiteral(e),r(e,!0)},getTextPos:function(){return n.getTextPos()},getLine:function(){return n.getLine()},getColumn:function(){return n.getColumn()},getIndent:function(){return n.getIndent()},isAtStartOfLine:function(){return n.isAtStartOfLine()},hasTrailingComment:()=>n.hasTrailingComment(),hasTrailingWhitespace:()=>n.hasTrailingWhitespace(),clear:function(){n.clear(),t=0}}}function cde(e,t){return!(dQ(e,t)||nQ(e,t)||oQ(e,t)||aQ(e,t))}function lde(e,t,n,r={leadingTriviaOption:1}){const i=$ue(t,n,r),o=Kue(t,n,r);e.deleteRange(t,{pos:i,end:o})}function _de(e,t,n,r){const i=un.checkDefined(ude.SmartIndenter.getContainingList(r,n)),o=Yd(i,r);un.assert(-1!==o),1!==i.length?(un.assert(!t.has(r),"Deleting a node twice"),t.add(r),e.deleteRange(n,{pos:Zue(n,r),end:o===i.length-1?Kue(n,r,{}):ede(n,r,i[o-1],i[o+1])})):lde(e,n,r)}(e=>{function t(e,t,n){if(n.parent.name){const r=un.checkDefined(HX(t,n.pos-1));e.deleteRange(t,{pos:r.getStart(t),end:n.end})}else lde(e,t,Th(n,273))}e.deleteDeclaration=function(e,n,r,i){switch(i.kind){case 170:{const t=i.parent;bF(t)&&1===t.parameters.length&&!OX(t,21,r)?e.replaceNodeWithText(r,i,"()"):_de(e,n,r,i);break}case 273:case 272:lde(e,r,i,{leadingTriviaOption:r.imports.length&&i===ge(r.imports).parent||i===b(r.statements,Sp)?0:Du(i)?2:3});break;case 209:const o=i.parent;208===o.kind&&i!==ve(o.elements)?lde(e,r,i):_de(e,n,r,i);break;case 261:!function(e,t,n,r){const{parent:i}=r;if(300===i.kind)return void e.deleteNodeRange(n,OX(i,21,n),OX(i,22,n));if(1!==i.declarations.length)return void _de(e,t,n,r);const o=i.parent;switch(o.kind){case 251:case 250:e.replaceNode(n,r,mw.createObjectLiteralExpression());break;case 249:lde(e,n,i);break;case 244:lde(e,n,o,{leadingTriviaOption:Du(o)?2:3});break;default:un.assertNever(o)}}(e,n,r,i);break;case 169:_de(e,n,r,i);break;case 277:const a=i.parent;1===a.elements.length?t(e,r,a):_de(e,n,r,i);break;case 275:t(e,r,i);break;case 27:lde(e,r,i,{trailingTriviaOption:0});break;case 100:lde(e,r,i,{leadingTriviaOption:0});break;case 264:case 263:lde(e,r,i,{leadingTriviaOption:Du(i)?2:3});break;default:i.parent?kE(i.parent)&&i.parent.name===i?function(e,t,n){if(n.namedBindings){const r=n.name.getStart(t),i=HX(t,n.name.end);if(i&&28===i.kind){const n=Qa(t.text,i.end,!1,!0);e.deleteRange(t,{pos:r,end:n})}else lde(e,t,n.name)}else lde(e,t,n.parent)}(e,r,i.parent):fF(i.parent)&&T(i.parent.arguments,i)?_de(e,n,r,i):lde(e,r,i):lde(e,r,i)}}})(rde||(rde={}));var ude={};i(ude,{FormattingContext:()=>pde,FormattingRequestKind:()=>dde,RuleAction:()=>vde,RuleFlags:()=>bde,SmartIndenter:()=>qpe,anyContext:()=>yde,createTextRangeWithKind:()=>Kpe,formatDocument:()=>Zpe,formatNodeGivenIndentation:()=>ife,formatOnClosingCurly:()=>Ype,formatOnEnter:()=>Gpe,formatOnOpeningCurly:()=>Qpe,formatOnSemicolon:()=>Xpe,formatSelection:()=>efe,getAllRules:()=>xde,getFormatContext:()=>Lpe,getFormattingScanner:()=>gde,getIndentationString:()=>lfe,getRangeOfEnclosingComment:()=>cfe});var dde=(e=>(e[e.FormatDocument=0]="FormatDocument",e[e.FormatSelection=1]="FormatSelection",e[e.FormatOnEnter=2]="FormatOnEnter",e[e.FormatOnSemicolon=3]="FormatOnSemicolon",e[e.FormatOnOpeningCurlyBrace=4]="FormatOnOpeningCurlyBrace",e[e.FormatOnClosingCurlyBrace=5]="FormatOnClosingCurlyBrace",e))(dde||{}),pde=class{constructor(e,t,n){this.sourceFile=e,this.formattingRequestKind=t,this.options=n}updateContext(e,t,n,r,i){this.currentTokenSpan=un.checkDefined(e),this.currentTokenParent=un.checkDefined(t),this.nextTokenSpan=un.checkDefined(n),this.nextTokenParent=un.checkDefined(r),this.contextNode=un.checkDefined(i),this.contextNodeAllOnSameLine=void 0,this.nextNodeAllOnSameLine=void 0,this.tokensAreOnSameLine=void 0,this.contextNodeBlockIsOnOneLine=void 0,this.nextNodeBlockIsOnOneLine=void 0}ContextNodeAllOnSameLine(){return void 0===this.contextNodeAllOnSameLine&&(this.contextNodeAllOnSameLine=this.NodeIsOnOneLine(this.contextNode)),this.contextNodeAllOnSameLine}NextNodeAllOnSameLine(){return void 0===this.nextNodeAllOnSameLine&&(this.nextNodeAllOnSameLine=this.NodeIsOnOneLine(this.nextTokenParent)),this.nextNodeAllOnSameLine}TokensAreOnSameLine(){if(void 0===this.tokensAreOnSameLine){const e=this.sourceFile.getLineAndCharacterOfPosition(this.currentTokenSpan.pos).line,t=this.sourceFile.getLineAndCharacterOfPosition(this.nextTokenSpan.pos).line;this.tokensAreOnSameLine=e===t}return this.tokensAreOnSameLine}ContextNodeBlockIsOnOneLine(){return void 0===this.contextNodeBlockIsOnOneLine&&(this.contextNodeBlockIsOnOneLine=this.BlockIsOnOneLine(this.contextNode)),this.contextNodeBlockIsOnOneLine}NextNodeBlockIsOnOneLine(){return void 0===this.nextNodeBlockIsOnOneLine&&(this.nextNodeBlockIsOnOneLine=this.BlockIsOnOneLine(this.nextTokenParent)),this.nextNodeBlockIsOnOneLine}NodeIsOnOneLine(e){return this.sourceFile.getLineAndCharacterOfPosition(e.getStart(this.sourceFile)).line===this.sourceFile.getLineAndCharacterOfPosition(e.getEnd()).line}BlockIsOnOneLine(e){const t=OX(e,19,this.sourceFile),n=OX(e,20,this.sourceFile);return!(!t||!n)&&this.sourceFile.getLineAndCharacterOfPosition(t.getEnd()).line===this.sourceFile.getLineAndCharacterOfPosition(n.getStart(this.sourceFile)).line}},fde=gs(99,!1,0),mde=gs(99,!1,1);function gde(e,t,n,r,i){const o=1===t?mde:fde;o.setText(e),o.resetTokenState(n);let a,s,c,l,_,u=!0;const d=i({advance:function(){_=void 0,o.getTokenFullStart()!==n?u=!!s&&4===ve(s).kind:o.scan(),a=void 0,s=void 0;let e=o.getTokenFullStart();for(;ea,lastTrailingTriviaWasNewLine:()=>u,skipToEndOf:function(e){o.resetTokenState(e.end),c=o.getTokenFullStart(),l=void 0,_=void 0,u=!1,a=void 0,s=void 0},skipToStartOf:function(e){o.resetTokenState(e.pos),c=o.getTokenFullStart(),l=void 0,_=void 0,u=!1,a=void 0,s=void 0},getTokenFullStart:()=>(null==_?void 0:_.token.pos)??o.getTokenStart(),getStartPos:()=>(null==_?void 0:_.token.pos)??o.getTokenStart()});return _=void 0,o.setText(void 0),d;function p(){const e=_?_.token.kind:o.getToken();return 1!==e&&!Ah(e)}function f(){return 1===(_?_.token.kind:o.getToken())}function m(e,t){return El(t)&&e.token.kind!==t.kind&&(e.token.kind=t.kind),e}}var hde,yde=l,vde=(e=>(e[e.None=0]="None",e[e.StopProcessingSpaceActions=1]="StopProcessingSpaceActions",e[e.StopProcessingTokenActions=2]="StopProcessingTokenActions",e[e.InsertSpace=4]="InsertSpace",e[e.InsertNewLine=8]="InsertNewLine",e[e.DeleteSpace=16]="DeleteSpace",e[e.DeleteToken=32]="DeleteToken",e[e.InsertTrailingSemicolon=64]="InsertTrailingSemicolon",e[e.StopAction=3]="StopAction",e[e.ModifySpaceAction=28]="ModifySpaceAction",e[e.ModifyTokenAction=96]="ModifyTokenAction",e))(vde||{}),bde=(e=>(e[e.None=0]="None",e[e.CanDeleteNewLines=1]="CanDeleteNewLines",e))(bde||{});function xde(){const e=[];for(let t=0;t<=166;t++)1!==t&&e.push(t);function t(...t){return{tokens:e.filter(e=>!t.some(t=>t===e)),isSpecific:!1}}const n={tokens:e,isSpecific:!1},r=Sde([...e,3]),i=Sde([...e,1]),o=Cde(83,166),a=Cde(30,79),s=[103,104,165,130,142,152],c=[80,...jQ],l=r,_=Sde([80,32,3,86,95,102]),u=Sde([22,3,92,113,98,93,85]);return[kde("IgnoreBeforeComment",n,[2,3],yde,1),kde("IgnoreAfterLineComment",2,n,yde,1),kde("NotSpaceBeforeColon",n,59,[spe,Lde,jde],16),kde("SpaceAfterColon",59,n,[spe,Lde,ppe],4),kde("NoSpaceBeforeQuestionMark",n,58,[spe,Lde,jde],16),kde("SpaceAfterQuestionMarkInConditionalOperator",58,n,[spe,Bde],4),kde("NoSpaceAfterQuestionMark",58,n,[spe,Rde],16),kde("NoSpaceBeforeDot",n,[25,29],[spe,Ope],16),kde("NoSpaceAfterDot",[25,29],n,[spe],16),kde("NoSpaceBetweenImportParenInImportType",102,21,[spe,ape],16),kde("NoSpaceAfterUnaryPrefixOperator",[46,47,55,54],[9,10,80,21,23,19,110,105],[spe,Lde],16),kde("NoSpaceAfterUnaryPreincrementOperator",46,[80,21,110,105],[spe],16),kde("NoSpaceAfterUnaryPredecrementOperator",47,[80,21,110,105],[spe],16),kde("NoSpaceBeforeUnaryPostincrementOperator",[80,22,24,105],46,[spe,Ppe],16),kde("NoSpaceBeforeUnaryPostdecrementOperator",[80,22,24,105],47,[spe,Ppe],16),kde("SpaceAfterPostincrementWhenFollowedByAdd",46,40,[spe,Ode],4),kde("SpaceAfterAddWhenFollowedByUnaryPlus",40,40,[spe,Ode],4),kde("SpaceAfterAddWhenFollowedByPreincrement",40,46,[spe,Ode],4),kde("SpaceAfterPostdecrementWhenFollowedBySubtract",47,41,[spe,Ode],4),kde("SpaceAfterSubtractWhenFollowedByUnaryMinus",41,41,[spe,Ode],4),kde("SpaceAfterSubtractWhenFollowedByPredecrement",41,47,[spe,Ode],4),kde("NoSpaceAfterCloseBrace",20,[28,27],[spe],16),kde("NewLineBeforeCloseBraceInBlockContext",r,20,[Ude],8),kde("SpaceAfterCloseBrace",20,t(22),[spe,Yde],4),kde("SpaceBetweenCloseBraceAndElse",20,93,[spe],4),kde("SpaceBetweenCloseBraceAndWhile",20,117,[spe],4),kde("NoSpaceBetweenEmptyBraceBrackets",19,20,[spe,epe],16),kde("SpaceAfterConditionalClosingParen",22,23,[Zde],4),kde("NoSpaceBetweenFunctionKeywordAndStar",100,42,[Gde],16),kde("SpaceAfterStarInGeneratorDeclaration",42,80,[Gde],4),kde("SpaceAfterFunctionInFuncDecl",100,n,[Hde],4),kde("NewLineAfterOpenBraceInBlockContext",19,n,[Ude],8),kde("SpaceAfterGetSetInMember",[139,153],80,[Hde],4),kde("NoSpaceBetweenYieldKeywordAndStar",127,42,[spe,Fpe],16),kde("SpaceBetweenYieldOrYieldStarAndOperand",[127,42],n,[spe,Fpe],4),kde("NoSpaceBetweenReturnAndSemicolon",107,27,[spe],16),kde("SpaceAfterCertainKeywords",[115,111,105,91,107,114,135],n,[spe],4),kde("SpaceAfterLetConstInVariableDeclaration",[121,87],n,[spe,vpe],4),kde("NoSpaceBeforeOpenParenInFuncCall",n,21,[spe,tpe,npe],16),kde("SpaceBeforeBinaryKeywordOperator",n,s,[spe,Ode],4),kde("SpaceAfterBinaryKeywordOperator",s,n,[spe,Ode],4),kde("SpaceAfterVoidOperator",116,n,[spe,Dpe],4),kde("SpaceBetweenAsyncAndOpenParen",134,21,[ope,spe],4),kde("SpaceBetweenAsyncAndFunctionKeyword",134,[100,80],[spe],4),kde("NoSpaceBetweenTagAndTemplateString",[80,22],[15,16],[spe],16),kde("SpaceBeforeJsxAttribute",n,80,[upe,spe],4),kde("SpaceBeforeSlashInJsxOpeningElement",n,44,[mpe,spe],4),kde("NoSpaceBeforeGreaterThanTokenInJsxOpeningElement",44,32,[mpe,spe],16),kde("NoSpaceBeforeEqualInJsxAttribute",n,64,[dpe,spe],16),kde("NoSpaceAfterEqualInJsxAttribute",64,n,[dpe,spe],16),kde("NoSpaceBeforeJsxNamespaceColon",80,59,[fpe],16),kde("NoSpaceAfterJsxNamespaceColon",59,80,[fpe],16),kde("NoSpaceAfterModuleImport",[144,149],21,[spe],16),kde("SpaceAfterCertainTypeScriptKeywords",[128,129,86,138,90,94,95,96,139,119,102,120,144,145,123,125,124,148,153,126,156,161,143,140],n,[spe],4),kde("SpaceBeforeCertainTypeScriptKeywords",n,[96,119,161],[spe],4),kde("SpaceAfterModuleName",11,19,[xpe],4),kde("SpaceBeforeArrow",n,39,[spe],4),kde("SpaceAfterArrow",39,n,[spe],4),kde("NoSpaceAfterEllipsis",26,80,[spe],16),kde("NoSpaceAfterOptionalParameters",58,[22,28],[spe,Lde],16),kde("NoSpaceBetweenEmptyInterfaceBraceBrackets",19,20,[spe,kpe],16),kde("NoSpaceBeforeOpenAngularBracket",c,30,[spe,Cpe],16),kde("NoSpaceBetweenCloseParenAndAngularBracket",22,30,[spe,Cpe],16),kde("NoSpaceAfterOpenAngularBracket",30,n,[spe,Cpe],16),kde("NoSpaceBeforeCloseAngularBracket",n,32,[spe,Cpe],16),kde("NoSpaceAfterCloseAngularBracket",32,[21,23,32,28],[spe,Cpe,Kde,Npe],16),kde("SpaceBeforeAt",[22,80],60,[spe],4),kde("NoSpaceAfterAt",60,n,[spe],16),kde("SpaceAfterDecorator",n,[128,80,95,90,86,126,125,123,124,139,153,23,42],[hpe],4),kde("NoSpaceBeforeNonNullAssertionOperator",n,54,[spe,Epe],16),kde("NoSpaceAfterNewKeywordOnConstructorSignature",105,21,[spe,Spe],16),kde("SpaceLessThanAndNonJSXTypeAnnotation",30,30,[spe],4),kde("SpaceAfterConstructor",137,21,[Nde("insertSpaceAfterConstructor"),spe],4),kde("NoSpaceAfterConstructor",137,21,[Fde("insertSpaceAfterConstructor"),spe],16),kde("SpaceAfterComma",28,n,[Nde("insertSpaceAfterCommaDelimiter"),spe,lpe,rpe,ipe],4),kde("NoSpaceAfterComma",28,n,[Fde("insertSpaceAfterCommaDelimiter"),spe,lpe],16),kde("SpaceAfterAnonymousFunctionKeyword",[100,42],21,[Nde("insertSpaceAfterFunctionKeywordForAnonymousFunctions"),Hde],4),kde("NoSpaceAfterAnonymousFunctionKeyword",[100,42],21,[Fde("insertSpaceAfterFunctionKeywordForAnonymousFunctions"),Hde],16),kde("SpaceAfterKeywordInControl",o,21,[Nde("insertSpaceAfterKeywordsInControlFlowStatements"),Zde],4),kde("NoSpaceAfterKeywordInControl",o,21,[Fde("insertSpaceAfterKeywordsInControlFlowStatements"),Zde],16),kde("SpaceAfterOpenParen",21,n,[Nde("insertSpaceAfterOpeningAndBeforeClosingNonemptyParenthesis"),spe],4),kde("SpaceBeforeCloseParen",n,22,[Nde("insertSpaceAfterOpeningAndBeforeClosingNonemptyParenthesis"),spe],4),kde("SpaceBetweenOpenParens",21,21,[Nde("insertSpaceAfterOpeningAndBeforeClosingNonemptyParenthesis"),spe],4),kde("NoSpaceBetweenParens",21,22,[spe],16),kde("NoSpaceAfterOpenParen",21,n,[Fde("insertSpaceAfterOpeningAndBeforeClosingNonemptyParenthesis"),spe],16),kde("NoSpaceBeforeCloseParen",n,22,[Fde("insertSpaceAfterOpeningAndBeforeClosingNonemptyParenthesis"),spe],16),kde("SpaceAfterOpenBracket",23,n,[Nde("insertSpaceAfterOpeningAndBeforeClosingNonemptyBrackets"),spe],4),kde("SpaceBeforeCloseBracket",n,24,[Nde("insertSpaceAfterOpeningAndBeforeClosingNonemptyBrackets"),spe],4),kde("NoSpaceBetweenBrackets",23,24,[spe],16),kde("NoSpaceAfterOpenBracket",23,n,[Fde("insertSpaceAfterOpeningAndBeforeClosingNonemptyBrackets"),spe],16),kde("NoSpaceBeforeCloseBracket",n,24,[Fde("insertSpaceAfterOpeningAndBeforeClosingNonemptyBrackets"),spe],16),kde("SpaceAfterOpenBrace",19,n,[Pde("insertSpaceAfterOpeningAndBeforeClosingNonemptyBraces"),zde],4),kde("SpaceBeforeCloseBrace",n,20,[Pde("insertSpaceAfterOpeningAndBeforeClosingNonemptyBraces"),zde],4),kde("NoSpaceBetweenEmptyBraceBrackets",19,20,[spe,epe],16),kde("NoSpaceAfterOpenBrace",19,n,[Dde("insertSpaceAfterOpeningAndBeforeClosingNonemptyBraces"),spe],16),kde("NoSpaceBeforeCloseBrace",n,20,[Dde("insertSpaceAfterOpeningAndBeforeClosingNonemptyBraces"),spe],16),kde("SpaceBetweenEmptyBraceBrackets",19,20,[Nde("insertSpaceAfterOpeningAndBeforeClosingEmptyBraces")],4),kde("NoSpaceBetweenEmptyBraceBrackets",19,20,[Dde("insertSpaceAfterOpeningAndBeforeClosingEmptyBraces"),spe],16),kde("SpaceAfterTemplateHeadAndMiddle",[16,17],n,[Nde("insertSpaceAfterOpeningAndBeforeClosingTemplateStringBraces"),cpe],4,1),kde("SpaceBeforeTemplateMiddleAndTail",n,[17,18],[Nde("insertSpaceAfterOpeningAndBeforeClosingTemplateStringBraces"),spe],4),kde("NoSpaceAfterTemplateHeadAndMiddle",[16,17],n,[Fde("insertSpaceAfterOpeningAndBeforeClosingTemplateStringBraces"),cpe],16,1),kde("NoSpaceBeforeTemplateMiddleAndTail",n,[17,18],[Fde("insertSpaceAfterOpeningAndBeforeClosingTemplateStringBraces"),spe],16),kde("SpaceAfterOpenBraceInJsxExpression",19,n,[Nde("insertSpaceAfterOpeningAndBeforeClosingJsxExpressionBraces"),spe,_pe],4),kde("SpaceBeforeCloseBraceInJsxExpression",n,20,[Nde("insertSpaceAfterOpeningAndBeforeClosingJsxExpressionBraces"),spe,_pe],4),kde("NoSpaceAfterOpenBraceInJsxExpression",19,n,[Fde("insertSpaceAfterOpeningAndBeforeClosingJsxExpressionBraces"),spe,_pe],16),kde("NoSpaceBeforeCloseBraceInJsxExpression",n,20,[Fde("insertSpaceAfterOpeningAndBeforeClosingJsxExpressionBraces"),spe,_pe],16),kde("SpaceAfterSemicolonInFor",27,n,[Nde("insertSpaceAfterSemicolonInForStatements"),spe,Ade],4),kde("NoSpaceAfterSemicolonInFor",27,n,[Fde("insertSpaceAfterSemicolonInForStatements"),spe,Ade],16),kde("SpaceBeforeBinaryOperator",n,a,[Nde("insertSpaceBeforeAndAfterBinaryOperators"),spe,Ode],4),kde("SpaceAfterBinaryOperator",a,n,[Nde("insertSpaceBeforeAndAfterBinaryOperators"),spe,Ode],4),kde("NoSpaceBeforeBinaryOperator",n,a,[Fde("insertSpaceBeforeAndAfterBinaryOperators"),spe,Ode],16),kde("NoSpaceAfterBinaryOperator",a,n,[Fde("insertSpaceBeforeAndAfterBinaryOperators"),spe,Ode],16),kde("SpaceBeforeOpenParenInFuncDecl",n,21,[Nde("insertSpaceBeforeFunctionParenthesis"),spe,Hde],4),kde("NoSpaceBeforeOpenParenInFuncDecl",n,21,[Fde("insertSpaceBeforeFunctionParenthesis"),spe,Hde],16),kde("NewLineBeforeOpenBraceInControl",u,19,[Nde("placeOpenBraceOnNewLineForControlBlocks"),Zde,qde],8,1),kde("NewLineBeforeOpenBraceInFunction",l,19,[Nde("placeOpenBraceOnNewLineForFunctions"),Hde,qde],8,1),kde("NewLineBeforeOpenBraceInTypeScriptDeclWithBlock",_,19,[Nde("placeOpenBraceOnNewLineForFunctions"),Xde,qde],8,1),kde("SpaceAfterTypeAssertion",32,n,[Nde("insertSpaceAfterTypeAssertion"),spe,wpe],4),kde("NoSpaceAfterTypeAssertion",32,n,[Fde("insertSpaceAfterTypeAssertion"),spe,wpe],16),kde("SpaceBeforeTypeAnnotation",n,[58,59],[Nde("insertSpaceBeforeTypeAnnotation"),spe,Mde],4),kde("NoSpaceBeforeTypeAnnotation",n,[58,59],[Fde("insertSpaceBeforeTypeAnnotation"),spe,Mde],16),kde("NoOptionalSemicolon",27,i,[wde("semicolons","remove"),Ape],32),kde("OptionalSemicolon",n,i,[wde("semicolons","insert"),Ipe],64),kde("NoSpaceBeforeSemicolon",n,27,[spe],16),kde("SpaceBeforeOpenBraceInControl",u,19,[Ede("placeOpenBraceOnNewLineForControlBlocks"),Zde,bpe,Jde],4,1),kde("SpaceBeforeOpenBraceInFunction",l,19,[Ede("placeOpenBraceOnNewLineForFunctions"),Hde,Wde,bpe,Jde],4,1),kde("SpaceBeforeOpenBraceInTypeScriptDeclWithBlock",_,19,[Ede("placeOpenBraceOnNewLineForFunctions"),Xde,bpe,Jde],4,1),kde("NoSpaceBeforeComma",n,28,[spe],16),kde("NoSpaceBeforeOpenBracket",t(134,84),23,[spe],16),kde("NoSpaceAfterCloseBracket",24,n,[spe,gpe],16),kde("SpaceAfterSemicolon",27,n,[spe],4),kde("SpaceBetweenForAndAwaitKeyword",99,135,[spe],4),kde("SpaceBetweenDotDotDotAndTypeName",26,c,[spe],16),kde("SpaceBetweenStatements",[22,92,93,84],n,[spe,lpe,Ide],4),kde("SpaceAfterTryCatchFinally",[113,85,98],19,[spe],4)]}function kde(e,t,n,r,i,o=0){return{leftTokenRange:Tde(t),rightTokenRange:Tde(n),rule:{debugName:e,context:r,action:i,flags:o}}}function Sde(e){return{tokens:e,isSpecific:!0}}function Tde(e){return"number"==typeof e?Sde([e]):Qe(e)?Sde(e):e}function Cde(e,t,n=[]){const r=[];for(let i=e;i<=t;i++)T(n,i)||r.push(i);return Sde(r)}function wde(e,t){return n=>n.options&&n.options[e]===t}function Nde(e){return t=>t.options&&De(t.options,e)&&!!t.options[e]}function Dde(e){return t=>t.options&&De(t.options,e)&&!t.options[e]}function Fde(e){return t=>!t.options||!De(t.options,e)||!t.options[e]}function Ede(e){return t=>!t.options||!De(t.options,e)||!t.options[e]||t.TokensAreOnSameLine()}function Pde(e){return t=>!t.options||!De(t.options,e)||!!t.options[e]}function Ade(e){return 249===e.contextNode.kind}function Ide(e){return!Ade(e)}function Ode(e){switch(e.contextNode.kind){case 227:return 28!==e.contextNode.operatorToken.kind;case 228:case 195:case 235:case 282:case 277:case 183:case 193:case 194:case 239:return!0;case 209:case 266:case 272:case 278:case 261:case 170:case 307:case 173:case 172:return 64===e.currentTokenSpan.kind||64===e.nextTokenSpan.kind;case 250:case 169:return 103===e.currentTokenSpan.kind||103===e.nextTokenSpan.kind||64===e.currentTokenSpan.kind||64===e.nextTokenSpan.kind;case 251:return 165===e.currentTokenSpan.kind||165===e.nextTokenSpan.kind}return!1}function Lde(e){return!Ode(e)}function jde(e){return!Mde(e)}function Mde(e){const t=e.contextNode.kind;return 173===t||172===t||170===t||261===t||c_(t)}function Rde(e){return!function(e){return ND(e.contextNode)&&e.contextNode.questionToken}(e)}function Bde(e){return 228===e.contextNode.kind||195===e.contextNode.kind}function Jde(e){return e.TokensAreOnSameLine()||Wde(e)}function zde(e){return 207===e.contextNode.kind||201===e.contextNode.kind||function(e){return Vde(e)&&(e.ContextNodeAllOnSameLine()||e.ContextNodeBlockIsOnOneLine())}(e)}function qde(e){return Wde(e)&&!(e.NextNodeAllOnSameLine()||e.NextNodeBlockIsOnOneLine())}function Ude(e){return Vde(e)&&!(e.ContextNodeAllOnSameLine()||e.ContextNodeBlockIsOnOneLine())}function Vde(e){return $de(e.contextNode)}function Wde(e){return $de(e.nextTokenParent)}function $de(e){if(Qde(e))return!0;switch(e.kind){case 242:case 270:case 211:case 269:return!0}return!1}function Hde(e){switch(e.contextNode.kind){case 263:case 175:case 174:case 178:case 179:case 180:case 219:case 177:case 220:case 265:return!0}return!1}function Kde(e){return!Hde(e)}function Gde(e){return 263===e.contextNode.kind||219===e.contextNode.kind}function Xde(e){return Qde(e.contextNode)}function Qde(e){switch(e.kind){case 264:case 232:case 265:case 267:case 188:case 268:case 279:case 280:case 273:case 276:return!0}return!1}function Yde(e){switch(e.currentTokenParent.kind){case 264:case 268:case 267:case 300:case 269:case 256:return!0;case 242:{const t=e.currentTokenParent.parent;if(!t||220!==t.kind&&219!==t.kind)return!0}}return!1}function Zde(e){switch(e.contextNode.kind){case 246:case 256:case 249:case 250:case 251:case 248:case 259:case 247:case 255:case 300:return!0;default:return!1}}function epe(e){return 211===e.contextNode.kind}function tpe(e){return function(e){return 214===e.contextNode.kind}(e)||function(e){return 215===e.contextNode.kind}(e)}function npe(e){return 28!==e.currentTokenSpan.kind}function rpe(e){return 24!==e.nextTokenSpan.kind}function ipe(e){return 22!==e.nextTokenSpan.kind}function ope(e){return 220===e.contextNode.kind}function ape(e){return 206===e.contextNode.kind}function spe(e){return e.TokensAreOnSameLine()&&12!==e.contextNode.kind}function cpe(e){return 12!==e.contextNode.kind}function lpe(e){return 285!==e.contextNode.kind&&289!==e.contextNode.kind}function _pe(e){return 295===e.contextNode.kind||294===e.contextNode.kind}function upe(e){return 292===e.nextTokenParent.kind||296===e.nextTokenParent.kind&&292===e.nextTokenParent.parent.kind}function dpe(e){return 292===e.contextNode.kind}function ppe(e){return 296!==e.nextTokenParent.kind}function fpe(e){return 296===e.nextTokenParent.kind}function mpe(e){return 286===e.contextNode.kind}function gpe(e){return!Hde(e)&&!Wde(e)}function hpe(e){return e.TokensAreOnSameLine()&&Lv(e.contextNode)&&ype(e.currentTokenParent)&&!ype(e.nextTokenParent)}function ype(e){for(;e&&V_(e);)e=e.parent;return e&&171===e.kind}function vpe(e){return 262===e.currentTokenParent.kind&&e.currentTokenParent.getStart(e.sourceFile)===e.currentTokenSpan.pos}function bpe(e){return 2!==e.formattingRequestKind}function xpe(e){return 268===e.contextNode.kind}function kpe(e){return 188===e.contextNode.kind}function Spe(e){return 181===e.contextNode.kind}function Tpe(e,t){if(30!==e.kind&&32!==e.kind)return!1;switch(t.kind){case 184:case 217:case 266:case 264:case 232:case 265:case 263:case 219:case 220:case 175:case 174:case 180:case 181:case 214:case 215:case 234:return!0;default:return!1}}function Cpe(e){return Tpe(e.currentTokenSpan,e.currentTokenParent)||Tpe(e.nextTokenSpan,e.nextTokenParent)}function wpe(e){return 217===e.contextNode.kind}function Npe(e){return!wpe(e)}function Dpe(e){return 116===e.currentTokenSpan.kind&&223===e.currentTokenParent.kind}function Fpe(e){return 230===e.contextNode.kind&&void 0!==e.contextNode.expression}function Epe(e){return 236===e.contextNode.kind}function Ppe(e){return!function(e){switch(e.contextNode.kind){case 246:case 249:case 250:case 251:case 247:case 248:return!0;default:return!1}}(e)}function Ape(e){let t=e.nextTokenSpan.kind,n=e.nextTokenSpan.pos;if(Ah(t)){const r=e.nextTokenParent===e.currentTokenParent?QX(e.currentTokenParent,uc(e.currentTokenParent,e=>!e.parent),e.sourceFile):e.nextTokenParent.getFirstToken(e.sourceFile);if(!r)return!0;t=r.kind,n=r.getStart(e.sourceFile)}return e.sourceFile.getLineAndCharacterOfPosition(e.currentTokenSpan.pos).line===e.sourceFile.getLineAndCharacterOfPosition(n).line?20===t||1===t:27===t&&27===e.currentTokenSpan.kind||241!==t&&27!==t&&(265===e.contextNode.kind||266===e.contextNode.kind?!wD(e.currentTokenParent)||!!e.currentTokenParent.type||21!==t:ND(e.currentTokenParent)?!e.currentTokenParent.initializer:249!==e.currentTokenParent.kind&&243!==e.currentTokenParent.kind&&241!==e.currentTokenParent.kind&&23!==t&&21!==t&&40!==t&&41!==t&&44!==t&&14!==t&&28!==t&&229!==t&&16!==t&&15!==t&&25!==t)}function Ipe(e){return vZ(e.currentTokenSpan.end,e.currentTokenParent,e.sourceFile)}function Ope(e){return!dF(e.contextNode)||!zN(e.contextNode.expression)||e.contextNode.expression.getText().includes(".")}function Lpe(e,t){return{options:e,getRules:(void 0===hde&&(hde=function(e){const t=function(e){const t=new Array(Wpe*Wpe),n=new Array(t.length);for(const r of e){const e=r.leftTokenRange.isSpecific&&r.rightTokenRange.isSpecific;for(const i of r.leftTokenRange.tokens)for(const o of r.rightTokenRange.tokens){const a=Mpe(i,o);let s=t[a];void 0===s&&(s=t[a]=[]),Hpe(s,r.rule,e,n,a)}}return t}(e);return e=>{const n=t[Mpe(e.currentTokenSpan.kind,e.nextTokenSpan.kind)];if(n){const t=[];let r=0;for(const i of n){const n=~jpe(r);i.action&n&&v(i.context,t=>t(e))&&(t.push(i),r|=i.action)}if(t.length)return t}}}(xde())),hde),host:t}}function jpe(e){let t=0;return 1&e&&(t|=28),2&e&&(t|=96),28&e&&(t|=28),96&e&&(t|=96),t}function Mpe(e,t){return un.assert(e<=166&&t<=166,"Must compute formatting context from tokens"),e*Wpe+t}var Rpe,Bpe,Jpe,zpe,qpe,Upe=5,Vpe=31,Wpe=167,$pe=((Rpe=$pe||{})[Rpe.StopRulesSpecific=0]="StopRulesSpecific",Rpe[Rpe.StopRulesAny=1*Upe]="StopRulesAny",Rpe[Rpe.ContextRulesSpecific=2*Upe]="ContextRulesSpecific",Rpe[Rpe.ContextRulesAny=3*Upe]="ContextRulesAny",Rpe[Rpe.NoContextRulesSpecific=4*Upe]="NoContextRulesSpecific",Rpe[Rpe.NoContextRulesAny=5*Upe]="NoContextRulesAny",Rpe);function Hpe(e,t,n,r,i){const o=3&t.action?n?0:$pe.StopRulesAny:t.context!==yde?n?$pe.ContextRulesSpecific:$pe.ContextRulesAny:n?$pe.NoContextRulesSpecific:$pe.NoContextRulesAny,a=r[i]||0;e.splice(function(e,t){let n=0;for(let r=0;r<=t;r+=Upe)n+=e&Vpe,e>>=Upe;return n}(a,o),0,t),r[i]=function(e,t){const n=1+(e>>t&Vpe);return un.assert((n&Vpe)===n,"Adding more rules into the sub-bucket than allowed. Maximum allowed is 32 rules."),e&~(Vpe<un.formatSyntaxKind(n)}),r}function Gpe(e,t,n){const r=t.getLineAndCharacterOfPosition(e).line;if(0===r)return[];let i=Cd(r,t);for(;Ua(t.text.charCodeAt(i));)i--;return Va(t.text.charCodeAt(i))&&i--,afe({pos:Sd(r-1,t),end:i+1},t,n,2)}function Xpe(e,t,n){return ofe(nfe(tfe(e,27,t)),t,n,3)}function Qpe(e,t,n){const r=tfe(e,19,t);return r?afe({pos:xX(nfe(r.parent).getStart(t),t),end:e},t,n,4):[]}function Ype(e,t,n){return ofe(nfe(tfe(e,20,t)),t,n,5)}function Zpe(e,t){return afe({pos:0,end:e.text.length},e,t,0)}function efe(e,t,n,r){return afe({pos:xX(e,n),end:t},n,r,1)}function tfe(e,t,n){const r=YX(e,n);return r&&r.kind===t&&e===r.getEnd()?r:void 0}function nfe(e){let t=e;for(;t&&t.parent&&t.parent.end===e.end&&!rfe(t.parent,t);)t=t.parent;return t}function rfe(e,t){switch(e.kind){case 264:case 265:return Xb(e.members,t);case 268:const n=e.body;return!!n&&269===n.kind&&Xb(n.statements,t);case 308:case 242:case 269:return Xb(e.statements,t);case 300:return Xb(e.block.statements,t)}return!1}function ife(e,t,n,r,i,o){const a={pos:e.pos,end:e.end};return gde(t.text,n,a.pos,a.end,n=>sfe(a,e,r,i,n,o,1,e=>!1,t))}function ofe(e,t,n,r){return e?afe({pos:xX(e.getStart(t),t),end:e.end},t,n,r):[]}function afe(e,t,n,r){const i=function(e,t){return function n(r){const i=XI(r,n=>Qb(n.getStart(t),n.end,e)&&n);if(i){const e=n(i);if(e)return e}return r}(t)}(e,t);return gde(t.text,t.languageVariant,function(e,t,n){const r=e.getStart(n);if(r===t.pos&&e.end===t.end)return r;const i=YX(t.pos,n);return i?i.end>=t.pos?e.pos:i.end:e.pos}(i,e,t),e.end,o=>sfe(e,i,qpe.getIndentationForNode(i,e,t,n.options),function(e,t,n){let r,i=-1;for(;e;){const o=n.getLineAndCharacterOfPosition(e.getStart(n)).line;if(-1!==i&&o!==i)break;if(qpe.shouldIndentChildNode(t,e,r,n))return t.indentSize;i=o,r=e,e=e.parent}return 0}(i,n.options,t),o,n,r,function(e,t){if(!e.length)return i;const n=e.filter(e=>wX(t,e.start,e.start+e.length)).sort((e,t)=>e.start-t.start);if(!n.length)return i;let r=0;return e=>{for(;;){if(r>=n.length)return!1;const t=n[r];if(e.end<=t.start)return!1;if(DX(e.pos,e.end,t.start,t.start+t.length))return!0;r++}};function i(){return!1}}(t.parseDiagnostics,e),t))}function sfe(e,t,n,r,i,{options:o,getRules:a,host:s},c,l,_){var u;const d=new pde(_,c,o);let f,m,g,h,y,v=-1;const x=[];if(i.advance(),i.isOnToken()){const a=_.getLineAndCharacterOfPosition(t.getStart(_)).line;let s=a;Lv(t)&&(s=_.getLineAndCharacterOfPosition(qd(t,_)).line),function t(n,r,a,s,c,u){if(!wX(e,n.getStart(_),n.getEnd()))return;const d=T(n,a,c,u);let p=r;for(XI(n,e=>{g(e,-1,n,d,a,s,!1)},t=>{!function(t,r,a,s){un.assert(Pl(t)),un.assert(!ey(t));const c=function(e,t){switch(e.kind){case 177:case 263:case 219:case 175:case 174:case 220:case 180:case 181:case 185:case 186:case 178:case 179:if(e.typeParameters===t)return 30;if(e.parameters===t)return 21;break;case 214:case 215:if(e.typeArguments===t)return 30;if(e.arguments===t)return 21;break;case 264:case 232:case 265:case 266:if(e.typeParameters===t)return 30;break;case 184:case 216:case 187:case 234:case 206:if(e.typeArguments===t)return 30;break;case 188:return 19}return 0}(r,t);let l=s,u=a;if(!wX(e,t.pos,t.end))return void(t.endt.pos)break;if(e.token.kind===c){let t;if(u=_.getLineAndCharacterOfPosition(e.token.pos).line,h(e,r,s,r),-1!==v)t=v;else{const n=xX(e.token.pos,_);t=qpe.findFirstNonWhitespaceColumn(n,e.token.pos,_,o)}l=T(r,a,t,o.indentSize)}else h(e,r,s,r)}let d=-1;for(let e=0;eMath.min(n.end,e.end))break;h(t,n,d,n)}function g(r,a,s,c,l,u,d,f){if(un.assert(!ey(r)),Nd(r)||Fd(s,r))return a;const m=r.getStart(_),g=_.getLineAndCharacterOfPosition(m).line;let b=g;Lv(r)&&(b=_.getLineAndCharacterOfPosition(qd(r,_)).line);let x=-1;if(d&&Xb(e,s)&&(x=function(e,t,n,r,i){if(wX(r,e,t)||CX(r,e,t)){if(-1!==i)return i}else{const t=_.getLineAndCharacterOfPosition(e).line,r=xX(e,_),i=qpe.findFirstNonWhitespaceColumn(r,e,_,o);if(t!==n||e===i){const e=qpe.getBaseIndentation(o);return e>i?e:i}}return-1}(m,r.end,l,e,a),-1!==x&&(a=x)),!wX(e,r.pos,r.end))return r.ende.end)return a;if(t.token.end>m){t.token.pos>m&&i.skipToStartOf(r);break}h(t,n,c,n)}if(!i.isOnToken()||i.getTokenFullStart()>=e.end)return a;if(El(r)){const e=i.readTokenInfo(r);if(12!==r.kind)return un.assert(e.token.end===r.end,"Token end is child end"),h(e,n,c,r),a}const k=171===r.kind?g:u,S=function(e,t,n,r,i,a){const s=qpe.shouldIndentChildNode(o,e)?o.indentSize:0;return a===t?{indentation:t===y?v:i.getIndentation(),delta:Math.min(o.indentSize,i.getDelta(e)+s)}:-1===n?21===e.kind&&t===y?{indentation:v,delta:i.getDelta(e)}:qpe.childStartsOnTheSameLineWithElseInIfStatement(r,e,t,_)||qpe.childIsUnindentedBranchOfConditionalExpression(r,e,t,_)||qpe.argumentStartsOnSameLineAsPreviousArgument(r,e,t,_)?{indentation:i.getIndentation(),delta:s}:{indentation:i.getIndentation()+i.getDelta(e),delta:s}:{indentation:n,delta:s}}(r,g,x,n,c,k);return t(r,p,g,b,S.indentation,S.delta),p=n,f&&210===s.kind&&-1===a&&(a=S.indentation),a}function h(t,n,r,o,a){un.assert(Xb(n,t.token));const s=i.lastTrailingTriviaWasNewLine();let c=!1;t.leadingTrivia&&w(t.leadingTrivia,n,p,r);let u=0;const d=Xb(e,t.token),g=_.getLineAndCharacterOfPosition(t.token.pos);if(d){const e=l(t.token),i=m;if(u=N(t.token,g,n,p,r),!e)if(0===u){const e=i&&_.getLineAndCharacterOfPosition(i.end).line;c=s&&g.line!==e}else c=1===u}if(t.trailingTrivia&&(f=ve(t.trailingTrivia).end,w(t.trailingTrivia,n,p,r)),c){const e=d&&!l(t.token)?r.getIndentationForToken(g.line,t.token.kind,o,!!a):-1;let n=!0;if(t.leadingTrivia){const i=r.getIndentationForComment(t.token.kind,e,o);n=C(t.leadingTrivia,i,n,e=>F(e.pos,i,!1))}-1!==e&&n&&(F(t.token.pos,e,1===u),y=g.line,v=e)}i.advance(),p=n}}(t,t,a,s,n,r)}const S=i.getCurrentLeadingTrivia();if(S){const r=qpe.nodeWillIndentChild(o,t,void 0,_,!1)?n+o.indentSize:n;C(S,r,!0,e=>{N(e,_.getLineAndCharacterOfPosition(e.pos),t,t,void 0),F(e.pos,r,!1)}),!1!==o.trimTrailingWhitespace&&function(t){let n=m?m.end:e.pos;for(const e of t)hQ(e.kind)&&(n=e.end){const e=i.isOnEOF()?i.readEOFTokenRange():i.isOnToken()?i.readTokenInfo(t).token:void 0;if(e&&e.pos===f){const n=(null==(u=YX(e.end,_,t))?void 0:u.parent)||g;D(e,_.getLineAndCharacterOfPosition(e.pos).line,n,m,h,g,n,void 0)}}return x;function T(e,t,n,r){return{getIndentationForComment:(e,t,r)=>{switch(e){case 20:case 24:case 22:return n+i(r)}return-1!==t?t:n},getIndentationForToken:(r,o,a,s)=>!s&&function(n,r,i){switch(r){case 19:case 20:case 22:case 93:case 117:case 60:return!1;case 44:case 32:switch(i.kind){case 287:case 288:case 286:return!1}break;case 23:case 24:if(201!==i.kind)return!1}return t!==n&&!(Lv(e)&&r===function(e){if(kI(e)){const t=b(e.modifiers,Zl,k(e.modifiers,CD));if(t)return t.kind}switch(e.kind){case 264:return 86;case 265:return 120;case 263:return 100;case 267:return 267;case 178:return 139;case 179:return 153;case 175:if(e.asteriskToken)return 42;case 173:case 170:const t=Cc(e);if(t)return t.kind}}(e))}(r,o,a)?n+i(a):n,getIndentation:()=>n,getDelta:i,recomputeIndentation:(t,i)=>{qpe.shouldIndentChildNode(o,i,e,_)&&(n+=t?o.indentSize:-o.indentSize,r=qpe.shouldIndentChildNode(o,e)?o.indentSize:0)}};function i(t){return qpe.nodeWillIndentChild(o,e,t,_,!0)?r:0}}function C(t,n,r,i){for(const o of t){const t=Xb(e,o);switch(o.kind){case 3:t&&E(o,n,!r),r=!1;break;case 2:r&&t&&i(o),r=!1;break;case 4:r=!0}}return r}function w(t,n,r,i){for(const o of t)hQ(o.kind)&&Xb(e,o)&&N(o,_.getLineAndCharacterOfPosition(o.pos),n,r,i)}function N(t,n,r,i,o){let a=0;return l(t)||(m?a=D(t,n.line,r,m,h,g,i,o):P(_.getLineAndCharacterOfPosition(e.pos).line,n.line)),m=t,f=t.end,g=r,h=n.line,a}function D(e,t,n,r,i,c,l,u){d.updateContext(r,c,e,n,l);const f=a(d);let m=!1!==d.options.trimTrailingWhitespace,g=0;return f?p(f,a=>{if(g=function(e,t,n,r,i){const a=i!==n;switch(e.action){case 1:return 0;case 16:if(t.end!==r.pos)return O(t.end,r.pos-t.end),a?2:0;break;case 32:O(t.pos,t.end-t.pos);break;case 8:if(1!==e.flags&&n!==i)return 0;if(1!==i-n)return L(t.end,r.pos-t.end,RY(s,o)),a?0:1;break;case 4:if(1!==e.flags&&n!==i)return 0;if(1!==r.pos-t.end||32!==_.text.charCodeAt(t.end))return L(t.end,r.pos-t.end," "),a?2:0;break;case 64:c=t.end,";"&&x.push(OQ(c,0,";"))}var c;return 0}(a,r,i,e,t),u)switch(g){case 2:n.getStart(_)===e.pos&&u.recomputeIndentation(!1,l);break;case 1:n.getStart(_)===e.pos&&u.recomputeIndentation(!0,l);break;default:un.assert(0===g)}m=m&&!(16&a.action)&&1!==a.flags}):m=m&&1!==e.kind,t!==i&&m&&P(i,t,r),g}function F(e,t,n){const r=lfe(t,o);if(n)L(e,0,r);else{const n=_.getLineAndCharacterOfPosition(e),i=Sd(n.line,_);(t!==function(e,t){let n=0;for(let r=0;r0){const e=lfe(r,o);L(t,n.character,e)}else O(t,n.character)}}function P(e,t,n){for(let r=e;rt)continue;const i=A(e,t);-1!==i&&(un.assert(i===e||!Ua(_.text.charCodeAt(i-1))),O(i,t+1-i))}}function A(e,t){let n=t;for(;n>=e&&Ua(_.text.charCodeAt(n));)n--;return n!==t?n+1:-1}function I(e,t,n){P(_.getLineAndCharacterOfPosition(e).line,_.getLineAndCharacterOfPosition(t).line+1,n)}function O(e,t){t&&x.push(OQ(e,t,""))}function L(e,t,n){(t||n)&&x.push(OQ(e,t,n))}}function cfe(e,t,n,r=HX(e,t)){const i=uc(r,SP);if(i&&(r=i.parent),r.getStart(e)<=t&&tTX(n,t)||t===n.end&&(2===n.kind||t===e.getFullWidth()))}function lfe(e,t){if((!Bpe||Bpe.tabSize!==t.tabSize||Bpe.indentSize!==t.indentSize)&&(Bpe={tabSize:t.tabSize,indentSize:t.indentSize},Jpe=zpe=void 0),t.convertTabsToSpaces){let n;const r=Math.floor(e/t.indentSize),i=e%t.indentSize;return zpe||(zpe=[]),void 0===zpe[r]?(n=qQ(" ",t.indentSize*r),zpe[r]=n):n=zpe[r],i?n+qQ(" ",i):n}{const n=Math.floor(e/t.tabSize),r=e-n*t.tabSize;let i;return Jpe||(Jpe=[]),void 0===Jpe[n]?Jpe[n]=i=qQ("\t",n):i=Jpe[n],r?i+qQ(" ",r):i}}(e=>{let t;var n;function r(e){return e.baseIndentSize||0}function i(e,t,n,i,s,c,l){var f;let m=e.parent;for(;m;){let r=!0;if(n){const t=e.getStart(s);r=tn.end}const h=o(m,e,s),y=h.line===t.line||d(m,e,t.line,s);if(r){const n=null==(f=p(e,s))?void 0:f[0];let r=g(e,s,l,!!n&&_(n,s).line>h.line);if(-1!==r)return r+i;if(r=a(e,m,t,y,s,l),-1!==r)return r+i}S(l,m,e,s,c)&&!y&&(i+=l.indentSize);const v=u(m,e,t.line,s);m=(e=m).parent,t=v?s.getLineAndCharacterOfPosition(e.getStart(s)):h}return i+r(l)}function o(e,t,n){const r=p(t,n),i=r?r.pos:e.getStart(n);return n.getLineAndCharacterOfPosition(i)}function a(e,t,n,r,i,o){return!_u(e)&&!du(e)||308!==t.kind&&r?-1:y(n,i,o)}let s;var c;function l(e,t,n,r){const i=QX(e,t,r);return i?19===i.kind?1:20===i.kind&&n===_(i,r).line?2:0:0}function _(e,t){return t.getLineAndCharacterOfPosition(e.getStart(t))}function u(e,t,n,r){return!(!fF(e)||!T(e.arguments,t))&&za(r,e.expression.getEnd()).line===n}function d(e,t,n,r){if(246===e.kind&&e.elseStatement===t){const t=OX(e,93,r);return un.assert(void 0!==t),_(t,r).line===n}return!1}function p(e,t){return e.parent&&f(e.getStart(t),e.getEnd(),e.parent,t)}function f(e,t,n,r){switch(n.kind){case 184:return i(n.typeArguments);case 211:return i(n.properties);case 210:case 276:case 280:case 207:case 208:return i(n.elements);case 188:return i(n.members);case 263:case 219:case 220:case 175:case 174:case 180:case 177:case 186:case 181:return i(n.typeParameters)||i(n.parameters);case 178:return i(n.parameters);case 264:case 232:case 265:case 266:case 346:return i(n.typeParameters);case 215:case 214:return i(n.typeArguments)||i(n.arguments);case 262:return i(n.declarations)}function i(i){return i&&CX(function(e,t,n){const r=e.getChildren(n);for(let e=1;e=0&&t=0;o--)if(28!==e[o].kind){if(n.getLineAndCharacterOfPosition(e[o].end).line!==i.line)return y(i,n,r);i=_(e[o],n)}return-1}function y(e,t,n){const r=t.getPositionOfLineAndCharacter(e.line,0);return x(r,r+e.character,t,n)}function v(e,t,n,r){let i=0,o=0;for(let a=e;at.text.length)return r(n);if(0===n.indentStyle)return 0;const a=YX(e,t,void 0,!0),s=cfe(t,e,a||null);if(s&&3===s.kind)return function(e,t,n,r){const i=za(e,t).line-1,o=za(e,r.pos).line;if(un.assert(o>=0),i<=o)return x(Sd(o,e),t,e,n);const a=Sd(i,e),{column:s,character:c}=v(a,t,e,n);if(0===s)return s;return 42===e.text.charCodeAt(a+c)?s-1:s}(t,e,n,s);if(!a)return r(n);if(yQ(a.kind)&&a.getStart(t)<=e&&e0&&qa(e.text.charCodeAt(r));)r--;return x(xX(r,e),r,e,n)}(t,e,n);if(28===a.kind&&227!==a.parent.kind){const e=function(e,t,n){const r=AX(e);return r&&r.listItemIndex>0?h(r.list.getChildren(),r.listItemIndex-1,t,n):-1}(a,t,n);if(-1!==e)return e}const p=function(e,t,n){return t&&f(e,e,t,n)}(e,a.parent,t);if(p&&!Xb(p,a)){const e=[219,220].includes(u.parent.kind)?0:n.indentSize;return m(p,t,n)+e}return function(e,t,n,o,a,s){let c,u=n;for(;u;){if(FX(u,t,e)&&S(s,u,c,e,!0)){const t=_(u,e),r=l(n,u,o,e);return i(u,t,void 0,0!==r?a&&2===r?s.indentSize:0:o!==t.line?s.indentSize:0,e,!0,s)}const r=g(u,e,s,!0);if(-1!==r)return r;c=u,u=u.parent}return r(s)}(t,e,a,c,o,n)},e.getIndentationForNode=function(e,t,n,r){const o=n.getLineAndCharacterOfPosition(e.getStart(n));return i(e,o,t,0,n,!1,r)},e.getBaseIndentation=r,(c=s||(s={}))[c.Unknown=0]="Unknown",c[c.OpenBrace=1]="OpenBrace",c[c.CloseBrace=2]="CloseBrace",e.isArgumentAndStartLineOverlapsExpressionBeingCalled=u,e.childStartsOnTheSameLineWithElseInIfStatement=d,e.childIsUnindentedBranchOfConditionalExpression=function(e,t,n,r){if(DF(e)&&(t===e.whenTrue||t===e.whenFalse)){const i=za(r,e.condition.end).line;if(t===e.whenTrue)return n===i;{const t=_(e.whenTrue,r).line,o=za(r,e.whenTrue.end).line;return i===t&&o===n}}return!1},e.argumentStartsOnSameLineAsPreviousArgument=function(e,t,n,r){if(j_(e)){if(!e.arguments)return!1;const i=b(e.arguments,e=>e.pos===t.pos);if(!i)return!1;const o=e.arguments.indexOf(i);if(0===o)return!1;if(n===za(r,e.arguments[o-1].getEnd()).line)return!0}return!1},e.getContainingList=p,e.findFirstNonWhitespaceCharacterAndColumn=v,e.findFirstNonWhitespaceColumn=x,e.nodeWillIndentChild=k,e.shouldIndentChildNode=S})(qpe||(qpe={}));var _fe={};function ufe(e,t,n){let r=!1;return t.forEach(t=>{const i=uc(HX(e,t.pos),e=>Xb(e,t));i&&XI(i,function i(o){var a;if(!r){if(aD(o)&&SX(t,o.getStart(e))){const t=n.resolveName(o.text,o,-1,!1);if(t&&t.declarations)for(const n of t.declarations)if(e3(n)||o.text&&e.symbol&&(null==(a=e.symbol.exports)?void 0:a.has(o.escapedText)))return void(r=!0)}o.forEachChild(i)}})}),r}i(_fe,{preparePasteEdits:()=>ufe});var dfe={};i(dfe,{pasteEditsProvider:()=>ffe});var pfe="providePostPasteEdits";function ffe(e,t,n,r,i,o,a,s){const c=jue.ChangeTracker.with({host:i,formatContext:a,preferences:o},c=>function(e,t,n,r,i,o,a,s,c){let l;t.length!==n.length&&(l=1===t.length?t[0]:t.join(RY(a.host,a.options)));const _=[];let u,d=e.text;for(let e=n.length-1;e>=0;e--){const{pos:r,end:i}=n[e];d=l?d.slice(0,r)+l+d.slice(i):d.slice(0,r)+t[e]+d.slice(i)}un.checkDefined(i.runWithTemporaryFileUpdate).call(i,e.fileName,d,(d,p,f)=>{if(u=T7.createImportAdder(f,d,o,i),null==r?void 0:r.range){un.assert(r.range.length===t.length),r.range.forEach(e=>{const t=r.file.statements,n=k(t,t=>t.end>e.pos);if(-1===n)return;let i=k(t,t=>t.end>=e.end,n);-1!==i&&e.end<=t[i].getStart()&&i--,_.push(...t.slice(n,-1===i?t.length:i+1))}),un.assertIsDefined(p,"no original program found");const n=p.getTypeChecker(),o=function({file:e,range:t}){const n=t[0].pos,r=t[t.length-1].end,i=HX(e,n),o=XX(e,n)??HX(e,r);return{pos:aD(i)&&n<=i.getStart(e)?i.getFullStart():n,end:aD(o)&&r===o.getEnd()?jue.getAdjustedEndPosition(e,o,{}):r}}(r),a=Q6(r.file,_,n,a3(f,_,n),o),s=!e0(e.fileName,p,i,!!r.file.commonJsModuleIndicator);E6(r.file,a.targetFileImportsFromOldFile,c,s),_3(r.file,a.oldImportsNeededByTargetFile,a.targetFileImportsFromOldFile,n,d,u)}else{const e={sourceFile:f,program:p,cancellationToken:s,host:i,preferences:o,formatContext:a};let r=0;n.forEach((n,i)=>{const o=n.end-n.pos,a=l??t[i],s=n.pos+r,c={pos:s,end:s+a.length};r+=a.length-o;const _=uc(HX(e.sourceFile,c.pos),e=>Xb(e,c));_&&XI(_,function t(n){if(aD(n)&&SX(c,n.getStart(f))&&!(null==d?void 0:d.getTypeChecker().resolveName(n.text,n,-1,!1)))return u.addImportForUnresolvedIdentifier(e,n,!0);n.forEachChild(t)})})}u.writeFixes(c,tY(r?r.file:e,o))}),u.hasFixes()&&n.forEach((n,r)=>{c.replaceRangeWithText(e,{pos:n.pos,end:n.end},l??t[r])})}(e,t,n,r,i,o,a,s,c));return{edits:c,fixId:pfe}}var mfe={};i(mfe,{ANONYMOUS:()=>dZ,AccessFlags:()=>Xr,AssertionLevel:()=>ft,AssignmentDeclarationKind:()=>ai,AssignmentKind:()=>Kg,Associativity:()=>ty,BreakpointResolver:()=>n7,BuilderFileEmit:()=>YV,BuilderProgramKind:()=>wW,BuilderState:()=>XV,CallHierarchy:()=>i7,CharacterCodes:()=>ki,CheckFlags:()=>Ur,CheckMode:()=>HB,ClassificationType:()=>zG,ClassificationTypeNames:()=>JG,CommentDirectiveType:()=>Tr,Comparison:()=>c,CompletionInfoFlags:()=>IG,CompletionTriggerKind:()=>CG,Completions:()=>mae,ContainerFlags:()=>$R,ContextFlags:()=>Or,Debug:()=>un,DiagnosticCategory:()=>si,Diagnostics:()=>_a,DocumentHighlights:()=>y0,ElementFlags:()=>Gr,EmitFlags:()=>wi,EmitHint:()=>Ei,EmitOnly:()=>Dr,EndOfLineState:()=>jG,ExitStatus:()=>Er,ExportKind:()=>i0,Extension:()=>Si,ExternalEmitHelpers:()=>Fi,FileIncludeKind:()=>wr,FilePreprocessingDiagnosticsKind:()=>Nr,FileSystemEntryKind:()=>no,FileWatcherEventKind:()=>Bi,FindAllReferences:()=>gce,FlattenLevel:()=>Tz,FlowFlags:()=>Sr,ForegroundColorEscapeSequences:()=>XU,FunctionFlags:()=>Ih,GeneratedIdentifierFlags:()=>br,GetLiteralTextFlags:()=>np,GoToDefinition:()=>rle,HighlightSpanKind:()=>NG,IdentifierNameMap:()=>ZJ,ImportKind:()=>r0,ImportsNotUsedAsValues:()=>gi,IndentStyle:()=>DG,IndexFlags:()=>Qr,IndexKind:()=>ti,InferenceFlags:()=>ii,InferencePriority:()=>ri,InlayHintKind:()=>wG,InlayHints:()=>xle,InternalEmitFlags:()=>Ni,InternalNodeBuilderFlags:()=>jr,InternalSymbolName:()=>Vr,IntersectionFlags:()=>Ir,InvalidatedProjectKind:()=>yH,JSDocParsingMode:()=>ji,JsDoc:()=>wle,JsTyping:()=>VK,JsxEmit:()=>mi,JsxFlags:()=>hr,JsxReferenceKind:()=>Yr,LanguageFeatureMinimumTarget:()=>Di,LanguageServiceMode:()=>xG,LanguageVariant:()=>bi,LexicalEnvironmentFlags:()=>Ai,ListFormat:()=>Ii,LogLevel:()=>dn,MapCode:()=>$le,MemberOverrideStatus:()=>Pr,ModifierFlags:()=>gr,ModuleDetectionKind:()=>_i,ModuleInstanceState:()=>qR,ModuleKind:()=>fi,ModuleResolutionKind:()=>li,ModuleSpecifierEnding:()=>MS,NavigateTo:()=>V1,NavigationBar:()=>t2,NewLineKind:()=>hi,NodeBuilderFlags:()=>Lr,NodeCheckFlags:()=>Wr,NodeFactoryFlags:()=>tw,NodeFlags:()=>mr,NodeResolutionFeatures:()=>JM,ObjectFlags:()=>Hr,OperationCanceledException:()=>Cr,OperatorPrecedence:()=>ay,OrganizeImports:()=>Yle,OrganizeImportsMode:()=>TG,OuterExpressionKinds:()=>Pi,OutliningElementsCollector:()=>F_e,OutliningSpanKind:()=>OG,OutputFileType:()=>LG,PackageJsonAutoImportPreference:()=>bG,PackageJsonDependencyGroup:()=>vG,PatternMatchKind:()=>W0,PollingInterval:()=>Ji,PollingWatchKind:()=>pi,PragmaKindFlags:()=>Oi,PredicateSemantics:()=>vr,PreparePasteEdits:()=>_fe,PrivateIdentifierKind:()=>iN,ProcessLevel:()=>Wz,ProgramUpdateLevel:()=>NU,QuotePreference:()=>ZQ,RegularExpressionFlags:()=>xr,RelationComparisonResult:()=>yr,Rename:()=>R_e,ScriptElementKind:()=>RG,ScriptElementKindModifier:()=>BG,ScriptKind:()=>yi,ScriptSnapshot:()=>dG,ScriptTarget:()=>vi,SemanticClassificationFormat:()=>SG,SemanticMeaning:()=>UG,SemicolonPreference:()=>FG,SignatureCheckMode:()=>KB,SignatureFlags:()=>ei,SignatureHelp:()=>W_e,SignatureInfo:()=>QV,SignatureKind:()=>Zr,SmartSelectionRange:()=>gue,SnippetKind:()=>Ci,StatisticType:()=>rK,StructureIsReused:()=>Fr,SymbolAccessibility:()=>Br,SymbolDisplay:()=>Nue,SymbolDisplayPartKind:()=>AG,SymbolFlags:()=>qr,SymbolFormatFlags:()=>Rr,SyntaxKind:()=>fr,Ternary:()=>oi,ThrottledCancellationToken:()=>H8,TokenClass:()=>MG,TokenFlags:()=>kr,TransformFlags:()=>Ti,TypeFacts:()=>WB,TypeFlags:()=>$r,TypeFormatFlags:()=>Mr,TypeMapKind:()=>ni,TypePredicateKind:()=>Jr,TypeReferenceSerializationKind:()=>zr,UnionReduction:()=>Ar,UpToDateStatusType:()=>W$,VarianceFlags:()=>Kr,Version:()=>bn,VersionRange:()=>kn,WatchDirectoryFlags:()=>xi,WatchDirectoryKind:()=>di,WatchFileKind:()=>ui,WatchLogLevel:()=>LU,WatchType:()=>F$,accessPrivateIdentifier:()=>bz,addEmitFlags:()=>kw,addEmitHelper:()=>qw,addEmitHelpers:()=>Uw,addInternalEmitFlags:()=>Tw,addNodeFactoryPatcher:()=>rw,addObjectAllocatorPatcher:()=>Bx,addRange:()=>se,addRelatedInfo:()=>aT,addSyntheticLeadingComment:()=>Lw,addSyntheticTrailingComment:()=>Rw,addToSeen:()=>bx,advancedAsyncSuperHelper:()=>BN,affectsDeclarationPathOptionDeclarations:()=>MO,affectsEmitOptionDeclarations:()=>jO,allKeysStartWithDot:()=>gR,altDirectorySeparator:()=>_o,and:()=>Zt,append:()=>ie,appendIfUnique:()=>le,arrayFrom:()=>Oe,arrayIsEqualTo:()=>te,arrayIsHomogeneous:()=>kT,arrayOf:()=>Ie,arrayReverseIterator:()=>ue,arrayToMap:()=>Me,arrayToMultiMap:()=>Be,arrayToNumericMap:()=>Re,assertType:()=>nn,assign:()=>Le,asyncSuperHelper:()=>RN,attachFileToDiagnostics:()=>Kx,base64decode:()=>Tb,base64encode:()=>Sb,binarySearch:()=>Te,binarySearchKey:()=>Ce,bindSourceFile:()=>GR,breakIntoCharacterSpans:()=>c1,breakIntoWordSpans:()=>l1,buildLinkParts:()=>jY,buildOpts:()=>HO,buildOverload:()=>xfe,bundlerModuleNameResolver:()=>zM,canBeConvertedToAsync:()=>I1,canHaveDecorators:()=>SI,canHaveExportModifier:()=>WT,canHaveFlowNode:()=>Og,canHaveIllegalDecorators:()=>$A,canHaveIllegalModifiers:()=>HA,canHaveIllegalType:()=>VA,canHaveIllegalTypeParameters:()=>WA,canHaveJSDoc:()=>Lg,canHaveLocals:()=>su,canHaveModifiers:()=>kI,canHaveModuleSpecifier:()=>hg,canHaveSymbol:()=>au,canIncludeBindAndCheckDiagnostics:()=>pT,canJsonReportNoInputFiles:()=>gj,canProduceDiagnostics:()=>Cq,canUsePropertyAccess:()=>HT,canWatchAffectingLocation:()=>GW,canWatchAtTypes:()=>$W,canWatchDirectoryOrFile:()=>VW,canWatchDirectoryOrFilePath:()=>WW,cartesianProduct:()=>an,cast:()=>nt,chainBundle:()=>$J,chainDiagnosticMessages:()=>Zx,changeAnyExtension:()=>Ho,changeCompilerHostLikeToUseCache:()=>$U,changeExtension:()=>$S,changeFullExtension:()=>Ko,changesAffectModuleResolution:()=>Zu,changesAffectingProgramStructure:()=>ed,characterCodeToRegularExpressionFlag:()=>Ia,childIsDecorated:()=>mm,classElementOrClassElementParameterIsDecorated:()=>hm,classHasClassThisAssignment:()=>Lz,classHasDeclaredOrExplicitlyAssignedName:()=>zz,classHasExplicitlyAssignedName:()=>Jz,classOrConstructorParameterIsDecorated:()=>gm,classicNameResolver:()=>LR,classifier:()=>k7,cleanExtendedConfigCache:()=>EU,clear:()=>F,clearMap:()=>ux,clearSharedExtendedConfigFileWatcher:()=>FU,climbPastPropertyAccess:()=>rX,clone:()=>qe,cloneCompilerOptions:()=>SQ,closeFileWatcher:()=>nx,closeFileWatcherOf:()=>RU,codefix:()=>T7,collapseTextChangeRangesAcrossMultipleVersions:()=>Qs,collectExternalModuleInfo:()=>XJ,combine:()=>oe,combinePaths:()=>jo,commandLineOptionOfCustomType:()=>VO,commentPragmas:()=>Li,commonOptionsWithBuild:()=>EO,compact:()=>ne,compareBooleans:()=>Ot,compareDataObjects:()=>_x,compareDiagnostics:()=>nk,compareEmitHelpers:()=>aN,compareNumberOfDirectorySeparators:()=>zS,comparePaths:()=>Zo,comparePathsCaseInsensitive:()=>Yo,comparePathsCaseSensitive:()=>Qo,comparePatternKeys:()=>yR,compareProperties:()=>It,compareStringsCaseInsensitive:()=>St,compareStringsCaseInsensitiveEslintCompatible:()=>Tt,compareStringsCaseSensitive:()=>Ct,compareStringsCaseSensitiveUI:()=>At,compareTextSpans:()=>bt,compareValues:()=>vt,compilerOptionsAffectDeclarationPath:()=>Wk,compilerOptionsAffectEmit:()=>Vk,compilerOptionsAffectSemanticDiagnostics:()=>Uk,compilerOptionsDidYouMeanDiagnostics:()=>cL,compilerOptionsIndicateEsModules:()=>HQ,computeCommonSourceDirectoryOfFilenames:()=>zU,computeLineAndCharacterOfPosition:()=>Ra,computeLineOfPosition:()=>Ba,computeLineStarts:()=>Oa,computePositionOfLineAndCharacter:()=>ja,computeSignatureWithDiagnostics:()=>FW,computeSuggestionDiagnostics:()=>S1,computedOptions:()=>gk,concatenate:()=>K,concatenateDiagnosticMessageChains:()=>ek,consumesNodeCoreModules:()=>PZ,contains:()=>T,containsIgnoredPath:()=>IT,containsObjectRestOrSpread:()=>bI,containsParseError:()=>yd,containsPath:()=>ea,convertCompilerOptionsForTelemetry:()=>Kj,convertCompilerOptionsFromJson:()=>xj,convertJsonOption:()=>Fj,convertToBase64:()=>kb,convertToJson:()=>BL,convertToObject:()=>RL,convertToOptionsWithAbsolutePaths:()=>QL,convertToRelativePath:()=>ia,convertToTSConfig:()=>qL,convertTypeAcquisitionFromJson:()=>kj,copyComments:()=>QY,copyEntries:()=>od,copyLeadingComments:()=>eZ,copyProperties:()=>Ve,copyTrailingAsLeadingComments:()=>nZ,copyTrailingComments:()=>tZ,couldStartTrivia:()=>Xa,countWhere:()=>w,createAbstractBuilder:()=>zW,createAccessorPropertyBackingField:()=>fI,createAccessorPropertyGetRedirector:()=>mI,createAccessorPropertySetRedirector:()=>gI,createBaseNodeFactory:()=>KC,createBinaryExpressionTrampoline:()=>cI,createBuilderProgram:()=>EW,createBuilderProgramUsingIncrementalBuildInfo:()=>LW,createBuilderStatusReporter:()=>Y$,createCacheableExportInfoMap:()=>o0,createCachedDirectoryStructureHost:()=>wU,createClassifier:()=>h0,createCommentDirectivesMap:()=>Jd,createCompilerDiagnostic:()=>Qx,createCompilerDiagnosticForInvalidCustomType:()=>ZO,createCompilerDiagnosticFromMessageChain:()=>Yx,createCompilerHost:()=>qU,createCompilerHostFromProgramHost:()=>P$,createCompilerHostWorker:()=>WU,createDetachedDiagnostic:()=>Wx,createDiagnosticCollection:()=>_y,createDiagnosticForFileFromMessageChain:()=>Wp,createDiagnosticForNode:()=>Rp,createDiagnosticForNodeArray:()=>Bp,createDiagnosticForNodeArrayFromMessageChain:()=>qp,createDiagnosticForNodeFromMessageChain:()=>zp,createDiagnosticForNodeInSourceFile:()=>Jp,createDiagnosticForRange:()=>Hp,createDiagnosticMessageChainFromDiagnostic:()=>$p,createDiagnosticReporter:()=>a$,createDocumentPositionMapper:()=>zJ,createDocumentRegistry:()=>I0,createDocumentRegistryInternal:()=>O0,createEmitAndSemanticDiagnosticsBuilderProgram:()=>JW,createEmitHelperFactory:()=>oN,createEmptyExports:()=>iA,createEvaluator:()=>gC,createExpressionForJsxElement:()=>lA,createExpressionForJsxFragment:()=>_A,createExpressionForObjectLiteralElementLike:()=>fA,createExpressionForPropertyName:()=>pA,createExpressionFromEntityName:()=>dA,createExternalHelpersImportDeclarationIfNeeded:()=>AA,createFileDiagnostic:()=>Gx,createFileDiagnosticFromMessageChain:()=>Vp,createFlowNode:()=>HR,createForOfBindingStatement:()=>uA,createFutureSourceFile:()=>n0,createGetCanonicalFileName:()=>Wt,createGetIsolatedDeclarationErrors:()=>Dq,createGetSourceFile:()=>UU,createGetSymbolAccessibilityDiagnosticForNode:()=>Nq,createGetSymbolAccessibilityDiagnosticForNodeName:()=>wq,createGetSymbolWalker:()=>tB,createIncrementalCompilerHost:()=>z$,createIncrementalProgram:()=>q$,createJsxFactoryExpression:()=>cA,createLanguageService:()=>X8,createLanguageServiceSourceFile:()=>U8,createMemberAccessForPropertyName:()=>oA,createModeAwareCache:()=>DM,createModeAwareCacheKey:()=>NM,createModeMismatchDetails:()=>pd,createModuleNotFoundChain:()=>dd,createModuleResolutionCache:()=>AM,createModuleResolutionLoader:()=>vV,createModuleResolutionLoaderUsingGlobalCache:()=>n$,createModuleSpecifierResolutionHost:()=>KQ,createMultiMap:()=>$e,createNameResolver:()=>vC,createNodeConverters:()=>QC,createNodeFactory:()=>iw,createOptionNameMap:()=>GO,createOverload:()=>bfe,createPackageJsonImportFilter:()=>EZ,createPackageJsonInfo:()=>FZ,createParenthesizerRules:()=>GC,createPatternMatcher:()=>H0,createPrinter:()=>kU,createPrinterWithDefaults:()=>yU,createPrinterWithRemoveComments:()=>vU,createPrinterWithRemoveCommentsNeverAsciiEscape:()=>bU,createPrinterWithRemoveCommentsOmitTrailingSemicolon:()=>xU,createProgram:()=>LV,createProgramDiagnostics:()=>KV,createProgramHost:()=>O$,createPropertyNameNodeForIdentifierOrLiteral:()=>zT,createQueue:()=>Ge,createRange:()=>Ab,createRedirectedBuilderProgram:()=>RW,createResolutionCache:()=>r$,createRuntimeTypeSerializer:()=>Zz,createScanner:()=>gs,createSemanticDiagnosticsBuilderProgram:()=>BW,createSet:()=>Xe,createSolutionBuilder:()=>nH,createSolutionBuilderHost:()=>eH,createSolutionBuilderWithWatch:()=>rH,createSolutionBuilderWithWatchHost:()=>tH,createSortedArray:()=>Y,createSourceFile:()=>eO,createSourceMapGenerator:()=>kJ,createSourceMapSource:()=>gw,createSuperAccessVariableStatement:()=>rq,createSymbolTable:()=>Gu,createSymlinkCache:()=>Qk,createSyntacticTypeNodeBuilder:()=>UK,createSystemWatchFunctions:()=>oo,createTextChange:()=>LQ,createTextChangeFromStartLength:()=>OQ,createTextChangeRange:()=>Gs,createTextRangeFromNode:()=>PQ,createTextRangeFromSpan:()=>IQ,createTextSpan:()=>Ws,createTextSpanFromBounds:()=>$s,createTextSpanFromNode:()=>FQ,createTextSpanFromRange:()=>AQ,createTextSpanFromStringLiteralLikeContent:()=>EQ,createTextWriter:()=>Oy,createTokenRange:()=>Mb,createTypeChecker:()=>nJ,createTypeReferenceDirectiveResolutionCache:()=>IM,createTypeReferenceResolutionLoader:()=>kV,createWatchCompilerHost:()=>U$,createWatchCompilerHostOfConfigFile:()=>M$,createWatchCompilerHostOfFilesAndCompilerOptions:()=>R$,createWatchFactory:()=>E$,createWatchHost:()=>D$,createWatchProgram:()=>V$,createWatchStatusReporter:()=>_$,createWriteFileMeasuringIO:()=>VU,declarationNameToString:()=>Ap,decodeMappings:()=>EJ,decodedTextSpanIntersectsWith:()=>Js,deduplicate:()=>Q,defaultHoverMaximumTruncationLength:()=>$u,defaultInitCompilerOptions:()=>YO,defaultMaximumTruncationLength:()=>Vu,diagnosticCategoryName:()=>ci,diagnosticToString:()=>GZ,diagnosticsEqualityComparer:()=>ak,directoryProbablyExists:()=>Db,directorySeparator:()=>lo,displayPart:()=>SY,displayPartsToString:()=>R8,disposeEmitNodes:()=>vw,documentSpansEqual:()=>fY,dumpTracingLegend:()=>pr,elementAt:()=>pe,elideNodes:()=>_I,emitDetachedComments:()=>bv,emitFiles:()=>fU,emitFilesAndReportErrors:()=>T$,emitFilesAndReportErrorsAndGetExitStatus:()=>C$,emitModuleKindIsNonNodeESM:()=>Ok,emitNewLineBeforeLeadingCommentOfPosition:()=>vv,emitResolverSkipsTypeChecking:()=>pU,emitSkippedWithNoDiagnostics:()=>JV,emptyArray:()=>l,emptyFileSystemEntries:()=>rT,emptyMap:()=>_,emptyOptions:()=>kG,endsWith:()=>Mt,ensurePathIsNonModuleName:()=>$o,ensureScriptKind:()=>bS,ensureTrailingDirectorySeparator:()=>Wo,entityNameToString:()=>Mp,enumerateInsertsAndDeletes:()=>on,equalOwnProperties:()=>je,equateStringsCaseInsensitive:()=>gt,equateStringsCaseSensitive:()=>ht,equateValues:()=>mt,escapeJsxAttributeString:()=>Dy,escapeLeadingUnderscores:()=>fc,escapeNonAsciiString:()=>Sy,escapeSnippetText:()=>BT,escapeString:()=>xy,escapeTemplateSubstitution:()=>dy,evaluatorResult:()=>mC,every:()=>v,exclusivelyPrefixedNodeCoreModules:()=>wC,executeCommandLine:()=>vK,expandPreOrPostfixIncrementOrDecrementExpression:()=>mA,explainFiles:()=>y$,explainIfFileIsRedirectAndImpliedFormat:()=>v$,exportAssignmentIsAlias:()=>mh,expressionResultIsUnused:()=>AT,extend:()=>Ue,extensionFromPath:()=>ZS,extensionIsTS:()=>QS,extensionsNotSupportingExtensionlessResolution:()=>PS,externalHelpersModuleNameText:()=>Uu,factory:()=>mw,fileExtensionIs:()=>ko,fileExtensionIsOneOf:()=>So,fileIncludeReasonToDiagnostics:()=>k$,fileShouldUseJavaScriptRequire:()=>e0,filter:()=>N,filterMutate:()=>D,filterSemanticDiagnostics:()=>qV,find:()=>b,findAncestor:()=>uc,findBestPatternMatch:()=>Kt,findChildOfKind:()=>OX,findComputedPropertyNameCacheAssignment:()=>hI,findConfigFile:()=>BU,findConstructorDeclaration:()=>yC,findContainingList:()=>LX,findDiagnosticForNode:()=>OZ,findFirstNonJsxWhitespaceToken:()=>GX,findIndex:()=>k,findLast:()=>x,findLastIndex:()=>S,findListItemInfo:()=>AX,findModifier:()=>_Y,findNextToken:()=>QX,findPackageJson:()=>DZ,findPackageJsons:()=>NZ,findPrecedingMatchingToken:()=>cQ,findPrecedingToken:()=>YX,findSuperStatementIndexPath:()=>sz,findTokenOnLeftOfPosition:()=>XX,findUseStrictPrologue:()=>bA,first:()=>ge,firstDefined:()=>f,firstDefinedIterator:()=>m,firstIterator:()=>he,firstOrOnly:()=>BZ,firstOrUndefined:()=>fe,firstOrUndefinedIterator:()=>me,fixupCompilerOptions:()=>U1,flatMap:()=>O,flatMapIterator:()=>j,flatMapToMutable:()=>L,flatten:()=>I,flattenCommaList:()=>vI,flattenDestructuringAssignment:()=>Cz,flattenDestructuringBinding:()=>Dz,flattenDiagnosticMessageText:()=>cV,forEach:()=>d,forEachAncestor:()=>nd,forEachAncestorDirectory:()=>sa,forEachAncestorDirectoryStoppingAtGlobalCache:()=>TR,forEachChild:()=>XI,forEachChildRecursively:()=>QI,forEachDynamicImportOrRequireCall:()=>DC,forEachEmittedFile:()=>Kq,forEachEnclosingBlockScopeContainer:()=>Pp,forEachEntry:()=>rd,forEachExternalModuleToImportFrom:()=>c0,forEachImportClauseDeclaration:()=>Cg,forEachKey:()=>id,forEachLeadingCommentRange:()=>os,forEachNameInAccessChainWalkingLeft:()=>Nx,forEachNameOfDefaultExport:()=>g0,forEachOptionsSyntaxByName:()=>MC,forEachProjectReference:()=>OC,forEachPropertyAssignment:()=>Vf,forEachResolvedProjectReference:()=>IC,forEachReturnStatement:()=>Df,forEachRight:()=>p,forEachTrailingCommentRange:()=>as,forEachTsConfigPropArray:()=>Hf,forEachUnique:()=>gY,forEachYieldExpression:()=>Ff,formatColorAndReset:()=>iV,formatDiagnostic:()=>GU,formatDiagnostics:()=>KU,formatDiagnosticsWithColorAndContext:()=>sV,formatGeneratedName:()=>pI,formatGeneratedNamePart:()=>dI,formatLocation:()=>aV,formatMessage:()=>Xx,formatStringFromArgs:()=>zx,formatting:()=>ude,generateDjb2Hash:()=>Mi,generateTSConfig:()=>XL,getAdjustedReferenceLocation:()=>UX,getAdjustedRenameLocation:()=>VX,getAliasDeclarationFromName:()=>ph,getAllAccessorDeclarations:()=>pv,getAllDecoratorsOfClass:()=>fz,getAllDecoratorsOfClassElement:()=>mz,getAllJSDocTags:()=>sl,getAllJSDocTagsOfKind:()=>cl,getAllKeys:()=>Pe,getAllProjectOutputs:()=>_U,getAllSuperTypeNodes:()=>xh,getAllowImportingTsExtensions:()=>hk,getAllowJSCompilerOption:()=>Ak,getAllowSyntheticDefaultImports:()=>Tk,getAncestor:()=>Th,getAnyExtensionFromPath:()=>Po,getAreDeclarationMapsEnabled:()=>Pk,getAssignedExpandoInitializer:()=>$m,getAssignedName:()=>wc,getAssignmentDeclarationKind:()=>tg,getAssignmentDeclarationPropertyAccessKind:()=>ug,getAssignmentTargetKind:()=>Xg,getAutomaticTypeDirectiveNames:()=>bM,getBaseFileName:()=>Fo,getBinaryOperatorPrecedence:()=>cy,getBuildInfo:()=>gU,getBuildInfoFileVersionMap:()=>jW,getBuildInfoText:()=>mU,getBuildOrderFromAnyBuildOrder:()=>Q$,getBuilderCreationParameters:()=>NW,getBuilderFileEmit:()=>eW,getCanonicalDiagnostic:()=>Kp,getCheckFlags:()=>rx,getClassExtendsHeritageElement:()=>vh,getClassLikeDeclarationOfSymbol:()=>mx,getCombinedLocalAndExportSymbolFlags:()=>ax,getCombinedModifierFlags:()=>ic,getCombinedNodeFlags:()=>ac,getCombinedNodeFlagsAlwaysIncludeJSDoc:()=>oc,getCommentRange:()=>Pw,getCommonSourceDirectory:()=>cU,getCommonSourceDirectoryOfConfig:()=>lU,getCompilerOptionValue:()=>$k,getConditions:()=>yM,getConfigFileParsingDiagnostics:()=>PV,getConstantValue:()=>Jw,getContainerFlags:()=>ZR,getContainerNode:()=>hX,getContainingClass:()=>Xf,getContainingClassExcludingClassDecorators:()=>Zf,getContainingClassStaticBlock:()=>Qf,getContainingFunction:()=>Kf,getContainingFunctionDeclaration:()=>Gf,getContainingFunctionOrClassStaticBlock:()=>Yf,getContainingNodeArray:()=>OT,getContainingObjectLiteralElement:()=>Y8,getContextualTypeFromParent:()=>aZ,getContextualTypeFromParentOrAncestorTypeNode:()=>BX,getDeclarationDiagnostics:()=>Fq,getDeclarationEmitExtensionForPath:()=>Wy,getDeclarationEmitOutputFilePath:()=>Uy,getDeclarationEmitOutputFilePathWorker:()=>Vy,getDeclarationFileExtension:()=>dO,getDeclarationFromName:()=>_h,getDeclarationModifierFlagsFromSymbol:()=>ix,getDeclarationOfKind:()=>Hu,getDeclarationsOfKind:()=>Ku,getDeclaredExpandoInitializer:()=>Wm,getDecorators:()=>Nc,getDefaultCompilerOptions:()=>B8,getDefaultFormatCodeSettings:()=>EG,getDefaultLibFileName:()=>Ds,getDefaultLibFilePath:()=>e7,getDefaultLikeExportInfo:()=>f0,getDefaultLikeExportNameFromDeclaration:()=>zZ,getDefaultResolutionModeForFileWorker:()=>BV,getDiagnosticText:()=>mL,getDiagnosticsWithinSpan:()=>LZ,getDirectoryPath:()=>Do,getDirectoryToWatchFailedLookupLocation:()=>XW,getDirectoryToWatchFailedLookupLocationFromTypeRoot:()=>ZW,getDocumentPositionMapper:()=>b1,getDocumentSpansEqualityComparer:()=>mY,getESModuleInterop:()=>Sk,getEditsForFileRename:()=>M0,getEffectiveBaseTypeNode:()=>yh,getEffectiveConstraintOfTypeParameter:()=>ul,getEffectiveContainerForJSDocTemplateTag:()=>Jg,getEffectiveImplementsTypeNodes:()=>bh,getEffectiveInitializer:()=>Vm,getEffectiveJSDocHost:()=>Ug,getEffectiveModifierFlags:()=>Bv,getEffectiveModifierFlagsAlwaysIncludeJSDoc:()=>Jv,getEffectiveModifierFlagsNoCache:()=>Vv,getEffectiveReturnTypeNode:()=>gv,getEffectiveSetAccessorTypeAnnotationNode:()=>yv,getEffectiveTypeAnnotationNode:()=>fv,getEffectiveTypeParameterDeclarations:()=>_l,getEffectiveTypeRoots:()=>uM,getElementOrPropertyAccessArgumentExpressionOrName:()=>lg,getElementOrPropertyAccessName:()=>_g,getElementsOfBindingOrAssignmentPattern:()=>qA,getEmitDeclarations:()=>Dk,getEmitFlags:()=>Zd,getEmitHelpers:()=>Ww,getEmitModuleDetectionKind:()=>xk,getEmitModuleFormatOfFileWorker:()=>MV,getEmitModuleKind:()=>vk,getEmitModuleResolutionKind:()=>bk,getEmitScriptTarget:()=>yk,getEmitStandardClassFields:()=>qk,getEnclosingBlockScopeContainer:()=>Ep,getEnclosingContainer:()=>Fp,getEncodedSemanticClassifications:()=>w0,getEncodedSyntacticClassifications:()=>P0,getEndLinePosition:()=>Cd,getEntityNameFromTypeNode:()=>_m,getEntrypointsFromPackageJsonInfo:()=>aR,getErrorCountForSummary:()=>d$,getErrorSpanForNode:()=>Qp,getErrorSummaryText:()=>g$,getEscapedTextOfIdentifierOrLiteral:()=>Uh,getEscapedTextOfJsxAttributeName:()=>tC,getEscapedTextOfJsxNamespacedName:()=>iC,getExpandoInitializer:()=>Hm,getExportAssignmentExpression:()=>gh,getExportInfoMap:()=>p0,getExportNeedsImportStarHelper:()=>HJ,getExpressionAssociativity:()=>ny,getExpressionPrecedence:()=>iy,getExternalHelpersModuleName:()=>EA,getExternalModuleImportEqualsDeclarationExpression:()=>Cm,getExternalModuleName:()=>kg,getExternalModuleNameFromDeclaration:()=>Jy,getExternalModuleNameFromPath:()=>zy,getExternalModuleNameLiteral:()=>OA,getExternalModuleRequireArgument:()=>wm,getFallbackOptions:()=>MU,getFileEmitOutput:()=>GV,getFileMatcherPatterns:()=>mS,getFileNamesFromConfigSpecs:()=>jj,getFileWatcherEventKind:()=>Xi,getFilesInErrorForSummary:()=>p$,getFirstConstructorWithBody:()=>iv,getFirstIdentifier:()=>sb,getFirstNonSpaceCharacterPosition:()=>GY,getFirstProjectOutput:()=>dU,getFixableErrorSpanExpression:()=>MZ,getFormatCodeSettingsForWriting:()=>XZ,getFullWidth:()=>sd,getFunctionFlags:()=>Oh,getHeritageClause:()=>Sh,getHostSignatureFromJSDoc:()=>qg,getIdentifierAutoGenerate:()=>tN,getIdentifierGeneratedImportReference:()=>rN,getIdentifierTypeArguments:()=>Zw,getImmediatelyInvokedFunctionExpression:()=>om,getImpliedNodeFormatForEmitWorker:()=>RV,getImpliedNodeFormatForFile:()=>AV,getImpliedNodeFormatForFileWorker:()=>IV,getImportNeedsImportDefaultHelper:()=>GJ,getImportNeedsImportStarHelper:()=>KJ,getIndentString:()=>Ay,getInferredLibraryNameResolveFrom:()=>CV,getInitializedVariables:()=>Zb,getInitializerOfBinaryExpression:()=>dg,getInitializerOfBindingOrAssignmentElement:()=>jA,getInterfaceBaseTypeNodes:()=>kh,getInternalEmitFlags:()=>ep,getInvokedExpression:()=>um,getIsFileExcluded:()=>d0,getIsolatedModules:()=>kk,getJSDocAugmentsTag:()=>jc,getJSDocClassTag:()=>Rc,getJSDocCommentRanges:()=>vf,getJSDocCommentsAndTags:()=>jg,getJSDocDeprecatedTag:()=>Kc,getJSDocDeprecatedTagNoCache:()=>Gc,getJSDocEnumTag:()=>Xc,getJSDocHost:()=>Vg,getJSDocImplementsTags:()=>Mc,getJSDocOverloadTags:()=>zg,getJSDocOverrideTagNoCache:()=>Hc,getJSDocParameterTags:()=>Ec,getJSDocParameterTagsNoCache:()=>Pc,getJSDocPrivateTag:()=>zc,getJSDocPrivateTagNoCache:()=>qc,getJSDocProtectedTag:()=>Uc,getJSDocProtectedTagNoCache:()=>Vc,getJSDocPublicTag:()=>Bc,getJSDocPublicTagNoCache:()=>Jc,getJSDocReadonlyTag:()=>Wc,getJSDocReadonlyTagNoCache:()=>$c,getJSDocReturnTag:()=>Yc,getJSDocReturnType:()=>rl,getJSDocRoot:()=>Wg,getJSDocSatisfiesExpressionType:()=>ZT,getJSDocSatisfiesTag:()=>el,getJSDocTags:()=>ol,getJSDocTemplateTag:()=>Zc,getJSDocThisTag:()=>Qc,getJSDocType:()=>nl,getJSDocTypeAliasName:()=>UA,getJSDocTypeAssertionType:()=>CA,getJSDocTypeParameterDeclarations:()=>hv,getJSDocTypeParameterTags:()=>Ic,getJSDocTypeParameterTagsNoCache:()=>Oc,getJSDocTypeTag:()=>tl,getJSXImplicitImportBase:()=>Kk,getJSXRuntimeImport:()=>Gk,getJSXTransformEnabled:()=>Hk,getKeyForCompilerOptions:()=>TM,getLanguageVariant:()=>lk,getLastChild:()=>vx,getLeadingCommentRanges:()=>_s,getLeadingCommentRangesOfNode:()=>yf,getLeftmostAccessExpression:()=>wx,getLeftmostExpression:()=>Dx,getLibFileNameFromLibReference:()=>AC,getLibNameFromLibReference:()=>PC,getLibraryNameFromLibFileName:()=>wV,getLineAndCharacterOfPosition:()=>za,getLineInfo:()=>wJ,getLineOfLocalPosition:()=>nv,getLineStartPositionForPosition:()=>xX,getLineStarts:()=>Ma,getLinesBetweenPositionAndNextNonWhitespaceCharacter:()=>Gb,getLinesBetweenPositionAndPrecedingNonWhitespaceCharacter:()=>Kb,getLinesBetweenPositions:()=>Ja,getLinesBetweenRangeEndAndRangeStart:()=>Ub,getLinesBetweenRangeEndPositions:()=>Vb,getLiteralText:()=>rp,getLocalNameForExternalImport:()=>IA,getLocalSymbolForExportDefault:()=>vb,getLocaleSpecificMessage:()=>Vx,getLocaleTimeString:()=>l$,getMappedContextSpan:()=>bY,getMappedDocumentSpan:()=>vY,getMappedLocation:()=>yY,getMatchedFileSpec:()=>b$,getMatchedIncludeSpec:()=>x$,getMeaningFromDeclaration:()=>VG,getMeaningFromLocation:()=>WG,getMembersOfDeclaration:()=>Pf,getModeForFileReference:()=>lV,getModeForResolutionAtIndex:()=>_V,getModeForUsageLocation:()=>dV,getModifiedTime:()=>qi,getModifiers:()=>Dc,getModuleInstanceState:()=>UR,getModuleNameStringLiteralAt:()=>HV,getModuleSpecifierEndingPreference:()=>RS,getModuleSpecifierResolverHost:()=>GQ,getNameForExportedSymbol:()=>JZ,getNameFromImportAttribute:()=>pC,getNameFromIndexInfo:()=>Ip,getNameFromPropertyName:()=>VQ,getNameOfAccessExpression:()=>Tx,getNameOfCompilerOptionValue:()=>HL,getNameOfDeclaration:()=>Cc,getNameOfExpando:()=>Gm,getNameOfJSDocTypedef:()=>kc,getNameOfScriptTarget:()=>zk,getNameOrArgument:()=>cg,getNameTable:()=>Q8,getNamespaceDeclarationNode:()=>Sg,getNewLineCharacter:()=>Pb,getNewLineKind:()=>KZ,getNewLineOrDefaultFromHost:()=>RY,getNewTargetContainer:()=>rm,getNextJSDocCommentLocation:()=>Rg,getNodeChildren:()=>eA,getNodeForGeneratedName:()=>uI,getNodeId:()=>ZB,getNodeKind:()=>yX,getNodeModifiers:()=>mQ,getNodeModulePathParts:()=>UT,getNonAssignedNameOfDeclaration:()=>Tc,getNonAssignmentOperatorForCompoundAssignment:()=>iz,getNonAugmentationDeclaration:()=>gp,getNonDecoratorTokenPosOfNode:()=>qd,getNonIncrementalBuildInfoRoots:()=>MW,getNonModifierTokenPosOfNode:()=>Ud,getNormalizedAbsolutePath:()=>Bo,getNormalizedAbsolutePathWithoutRoot:()=>qo,getNormalizedPathComponents:()=>Ro,getObjectFlags:()=>gx,getOperatorAssociativity:()=>ry,getOperatorPrecedence:()=>sy,getOptionFromName:()=>_L,getOptionsForLibraryResolution:()=>OM,getOptionsNameMap:()=>XO,getOptionsSyntaxByArrayElementValue:()=>LC,getOptionsSyntaxByValue:()=>jC,getOrCreateEmitNode:()=>yw,getOrUpdate:()=>z,getOriginalNode:()=>_c,getOriginalNodeId:()=>UJ,getOutputDeclarationFileName:()=>tU,getOutputDeclarationFileNameWorker:()=>nU,getOutputExtension:()=>Zq,getOutputFileNames:()=>uU,getOutputJSFileNameWorker:()=>iU,getOutputPathsFor:()=>Qq,getOwnEmitOutputFilePath:()=>qy,getOwnKeys:()=>Ee,getOwnValues:()=>Ae,getPackageJsonTypesVersionsPaths:()=>_M,getPackageNameFromTypesPackageName:()=>AR,getPackageScopeForPath:()=>lR,getParameterSymbolFromJSDoc:()=>Bg,getParentNodeInSpan:()=>cY,getParseTreeNode:()=>pc,getParsedCommandLineOfConfigFile:()=>gL,getPathComponents:()=>Ao,getPathFromPathComponents:()=>Io,getPathUpdater:()=>R0,getPathsBasePath:()=>Ky,getPatternFromSpec:()=>dS,getPendingEmitKindWithSeen:()=>uW,getPositionOfLineAndCharacter:()=>La,getPossibleGenericSignatures:()=>_Q,getPossibleOriginalInputExtensionForExtension:()=>$y,getPossibleOriginalInputPathWithoutChangingExt:()=>Hy,getPossibleTypeArgumentsInfo:()=>uQ,getPreEmitDiagnostics:()=>HU,getPrecedingNonSpaceCharacterPosition:()=>XY,getPrivateIdentifier:()=>yz,getProperties:()=>cz,getProperty:()=>Fe,getPropertyAssignmentAliasLikeExpression:()=>hh,getPropertyNameForPropertyNameNode:()=>Jh,getPropertyNameFromType:()=>cC,getPropertyNameOfBindingOrAssignmentElement:()=>BA,getPropertySymbolFromBindingElement:()=>sY,getPropertySymbolsFromContextualType:()=>Z8,getQuoteFromPreference:()=>nY,getQuotePreference:()=>tY,getRangesWhere:()=>H,getRefactorContextSpan:()=>jZ,getReferencedFileLocation:()=>FV,getRegexFromPattern:()=>gS,getRegularExpressionForWildcard:()=>lS,getRegularExpressionsForWildcards:()=>_S,getRelativePathFromDirectory:()=>ra,getRelativePathFromFile:()=>oa,getRelativePathToDirectoryOrUrl:()=>aa,getRenameLocation:()=>ZY,getReplacementSpanForContextToken:()=>DQ,getResolutionDiagnostic:()=>WV,getResolutionModeOverride:()=>mV,getResolveJsonModule:()=>Nk,getResolvePackageJsonExports:()=>Ck,getResolvePackageJsonImports:()=>wk,getResolvedExternalModuleName:()=>Ry,getResolvedModuleFromResolution:()=>_d,getResolvedTypeReferenceDirectiveFromResolution:()=>ud,getRestIndicatorOfBindingOrAssignmentElement:()=>RA,getRestParameterElementType:()=>Ef,getRightMostAssignedExpression:()=>Qm,getRootDeclaration:()=>Yh,getRootDirectoryOfResolutionCache:()=>e$,getRootLength:()=>No,getScriptKind:()=>WY,getScriptKindFromFileName:()=>xS,getScriptTargetFeatures:()=>tp,getSelectedEffectiveModifierFlags:()=>jv,getSelectedSyntacticModifierFlags:()=>Mv,getSemanticClassifications:()=>T0,getSemanticJsxChildren:()=>ly,getSetAccessorTypeAnnotationNode:()=>av,getSetAccessorValueParameter:()=>ov,getSetExternalModuleIndicator:()=>pk,getShebang:()=>ds,getSingleVariableOfVariableStatement:()=>Ag,getSnapshotText:()=>zQ,getSnippetElement:()=>Hw,getSourceFileOfModule:()=>bd,getSourceFileOfNode:()=>vd,getSourceFilePathInNewDir:()=>Qy,getSourceFileVersionAsHashFromText:()=>A$,getSourceFilesToEmit:()=>Gy,getSourceMapRange:()=>Cw,getSourceMapper:()=>v1,getSourceTextOfNodeFromSourceFile:()=>Vd,getSpanOfTokenAtPosition:()=>Gp,getSpellingSuggestion:()=>Lt,getStartPositionOfLine:()=>Sd,getStartPositionOfRange:()=>Hb,getStartsOnNewLine:()=>Fw,getStaticPropertiesAndClassStaticBlock:()=>_z,getStrictOptionValue:()=>Jk,getStringComparer:()=>wt,getSubPatternFromSpec:()=>pS,getSuperCallFromStatement:()=>oz,getSuperContainer:()=>im,getSupportedCodeFixes:()=>J8,getSupportedExtensions:()=>AS,getSupportedExtensionsWithJsonIfResolveJsonModule:()=>IS,getSwitchedType:()=>uZ,getSymbolId:()=>eJ,getSymbolNameForPrivateIdentifier:()=>Vh,getSymbolTarget:()=>$Y,getSyntacticClassifications:()=>E0,getSyntacticModifierFlags:()=>zv,getSyntacticModifierFlagsNoCache:()=>Wv,getSynthesizedDeepClone:()=>RC,getSynthesizedDeepCloneWithReplacements:()=>BC,getSynthesizedDeepClones:()=>zC,getSynthesizedDeepClonesWithReplacements:()=>qC,getSyntheticLeadingComments:()=>Iw,getSyntheticTrailingComments:()=>jw,getTargetLabel:()=>iX,getTargetOfBindingOrAssignmentElement:()=>MA,getTemporaryModuleResolutionState:()=>cR,getTextOfConstantValue:()=>ip,getTextOfIdentifierOrLiteral:()=>qh,getTextOfJSDocComment:()=>ll,getTextOfJsxAttributeName:()=>nC,getTextOfJsxNamespacedName:()=>oC,getTextOfNode:()=>Xd,getTextOfNodeFromSourceText:()=>Gd,getTextOfPropertyName:()=>jp,getThisContainer:()=>em,getThisParameter:()=>sv,getTokenAtPosition:()=>HX,getTokenPosOfNode:()=>zd,getTokenSourceMapRange:()=>Nw,getTouchingPropertyName:()=>WX,getTouchingToken:()=>$X,getTrailingCommentRanges:()=>us,getTrailingSemicolonDeferringWriter:()=>Ly,getTransformers:()=>jq,getTsBuildInfoEmitOutputFilePath:()=>Gq,getTsConfigObjectLiteralExpression:()=>Wf,getTsConfigPropArrayElementValue:()=>$f,getTypeAnnotationNode:()=>mv,getTypeArgumentOrTypeParameterList:()=>gQ,getTypeKeywordOfTypeOnlyImport:()=>dY,getTypeNode:()=>Qw,getTypeNodeIfAccessible:()=>pZ,getTypeParameterFromJsDoc:()=>$g,getTypeParameterOwner:()=>Ys,getTypesPackageName:()=>ER,getUILocale:()=>Et,getUniqueName:()=>YY,getUniqueSymbolId:()=>KY,getUseDefineForClassFields:()=>Ik,getWatchErrorSummaryDiagnosticMessage:()=>f$,getWatchFactory:()=>jU,group:()=>Je,groupBy:()=>ze,guessIndentation:()=>Lu,handleNoEmitOptions:()=>zV,handleWatchOptionsConfigDirTemplateSubstitution:()=>aj,hasAbstractModifier:()=>Pv,hasAccessorModifier:()=>Iv,hasAmbientModifier:()=>Av,hasChangesInResolutions:()=>hd,hasContextSensitiveParameters:()=>LT,hasDecorators:()=>Lv,hasDocComment:()=>pQ,hasDynamicName:()=>Rh,hasEffectiveModifier:()=>wv,hasEffectiveModifiers:()=>Tv,hasEffectiveReadonlyModifier:()=>Ov,hasExtension:()=>xo,hasImplementationTSFileExtension:()=>jS,hasIndexSignature:()=>_Z,hasInferredType:()=>kC,hasInitializer:()=>Eu,hasInvalidEscape:()=>fy,hasJSDocNodes:()=>Du,hasJSDocParameterTags:()=>Lc,hasJSFileExtension:()=>OS,hasJsonModuleEmitEnabled:()=>Lk,hasOnlyExpressionInitializer:()=>Pu,hasOverrideModifier:()=>Ev,hasPossibleExternalModuleReference:()=>Np,hasProperty:()=>De,hasPropertyAccessExpressionWithName:()=>oX,hasQuestionToken:()=>wg,hasRecordedExternalHelpers:()=>PA,hasResolutionModeOverride:()=>_C,hasRestParameter:()=>Ru,hasScopeMarker:()=>K_,hasStaticModifier:()=>Fv,hasSyntacticModifier:()=>Nv,hasSyntacticModifiers:()=>Cv,hasTSFileExtension:()=>LS,hasTabstop:()=>KT,hasTrailingDirectorySeparator:()=>To,hasType:()=>Fu,hasTypeArguments:()=>Hg,hasZeroOrOneAsteriskCharacter:()=>Xk,hostGetCanonicalFileName:()=>My,hostUsesCaseSensitiveFileNames:()=>jy,idText:()=>gc,identifierIsThisKeyword:()=>dv,identifierToKeywordKind:()=>hc,identity:()=>st,identitySourceMapConsumer:()=>qJ,ignoreSourceNewlines:()=>Gw,ignoredPaths:()=>Qi,importFromModuleSpecifier:()=>vg,importSyntaxAffectsModuleResolution:()=>fk,indexOfAnyCharCode:()=>C,indexOfNode:()=>Yd,indicesOf:()=>X,inferredTypesContainingFile:()=>TV,injectClassNamedEvaluationHelperBlockIfMissing:()=>qz,injectClassThisAssignmentIfMissing:()=>jz,insertImports:()=>uY,insertSorted:()=>Z,insertStatementAfterCustomPrologue:()=>Md,insertStatementAfterStandardPrologue:()=>jd,insertStatementsAfterCustomPrologue:()=>Ld,insertStatementsAfterStandardPrologue:()=>Od,intersperse:()=>y,intrinsicTagNameToString:()=>aC,introducesArgumentsExoticObject:()=>Mf,inverseJsxOptionMap:()=>CO,isAbstractConstructorSymbol:()=>fx,isAbstractModifier:()=>mD,isAccessExpression:()=>Sx,isAccessibilityModifier:()=>kQ,isAccessor:()=>d_,isAccessorModifier:()=>hD,isAliasableExpression:()=>fh,isAmbientModule:()=>cp,isAmbientPropertyDeclaration:()=>vp,isAnyDirectorySeparator:()=>fo,isAnyImportOrBareOrAccessedRequire:()=>Tp,isAnyImportOrReExport:()=>Dp,isAnyImportOrRequireStatement:()=>Cp,isAnyImportSyntax:()=>Sp,isAnySupportedFileExtension:()=>eT,isApplicableVersionedTypesKey:()=>xR,isArgumentExpressionOfElementAccess:()=>dX,isArray:()=>Qe,isArrayBindingElement:()=>T_,isArrayBindingOrAssignmentElement:()=>P_,isArrayBindingOrAssignmentPattern:()=>E_,isArrayBindingPattern:()=>cF,isArrayLiteralExpression:()=>_F,isArrayLiteralOrObjectLiteralDestructuringPattern:()=>TQ,isArrayTypeNode:()=>UD,isArrowFunction:()=>bF,isAsExpression:()=>LF,isAssertClause:()=>TE,isAssertEntry:()=>CE,isAssertionExpression:()=>W_,isAssertsKeyword:()=>uD,isAssignmentDeclaration:()=>Um,isAssignmentExpression:()=>rb,isAssignmentOperator:()=>eb,isAssignmentPattern:()=>S_,isAssignmentTarget:()=>Qg,isAsteriskToken:()=>eD,isAsyncFunction:()=>Lh,isAsyncModifier:()=>_D,isAutoAccessorPropertyDeclaration:()=>p_,isAwaitExpression:()=>TF,isAwaitKeyword:()=>dD,isBigIntLiteral:()=>qN,isBinaryExpression:()=>NF,isBinaryLogicalOperator:()=>Kv,isBinaryOperatorToken:()=>tI,isBindableObjectDefinePropertyCall:()=>ng,isBindableStaticAccessExpression:()=>og,isBindableStaticElementAccessExpression:()=>ag,isBindableStaticNameExpression:()=>sg,isBindingElement:()=>lF,isBindingElementOfBareOrAccessedRequire:()=>Rm,isBindingName:()=>n_,isBindingOrAssignmentElement:()=>w_,isBindingOrAssignmentPattern:()=>N_,isBindingPattern:()=>k_,isBlock:()=>VF,isBlockLike:()=>t0,isBlockOrCatchScoped:()=>ap,isBlockScope:()=>bp,isBlockScopedContainerTopLevel:()=>dp,isBooleanLiteral:()=>a_,isBreakOrContinueStatement:()=>Cl,isBreakStatement:()=>tE,isBuildCommand:()=>yK,isBuildInfoFile:()=>Hq,isBuilderProgram:()=>h$,isBundle:()=>cP,isCallChain:()=>gl,isCallExpression:()=>fF,isCallExpressionTarget:()=>HG,isCallLikeExpression:()=>L_,isCallLikeOrFunctionLikeExpression:()=>O_,isCallOrNewExpression:()=>j_,isCallOrNewExpressionTarget:()=>GG,isCallSignatureDeclaration:()=>OD,isCallToHelper:()=>JN,isCaseBlock:()=>yE,isCaseClause:()=>ZE,isCaseKeyword:()=>bD,isCaseOrDefaultClause:()=>ku,isCatchClause:()=>nP,isCatchClauseVariableDeclaration:()=>MT,isCatchClauseVariableDeclarationOrBindingElement:()=>sp,isCheckJsEnabledForFile:()=>nT,isCircularBuildOrder:()=>X$,isClassDeclaration:()=>dE,isClassElement:()=>__,isClassExpression:()=>AF,isClassInstanceProperty:()=>f_,isClassLike:()=>u_,isClassMemberModifier:()=>Yl,isClassNamedEvaluationHelperBlock:()=>Bz,isClassOrTypeElement:()=>y_,isClassStaticBlockDeclaration:()=>ED,isClassThisAssignmentBlock:()=>Oz,isColonToken:()=>rD,isCommaExpression:()=>kA,isCommaListExpression:()=>zF,isCommaSequence:()=>SA,isCommaToken:()=>QN,isComment:()=>hQ,isCommonJsExportPropertyAssignment:()=>Lf,isCommonJsExportedExpression:()=>Of,isCompoundAssignment:()=>rz,isComputedNonLiteralName:()=>Op,isComputedPropertyName:()=>kD,isConciseBody:()=>Y_,isConditionalExpression:()=>DF,isConditionalTypeNode:()=>XD,isConstAssertion:()=>hC,isConstTypeReference:()=>kl,isConstructSignatureDeclaration:()=>LD,isConstructorDeclaration:()=>PD,isConstructorTypeNode:()=>JD,isContextualKeyword:()=>Dh,isContinueStatement:()=>eE,isCustomPrologue:()=>ff,isDebuggerStatement:()=>cE,isDeclaration:()=>_u,isDeclarationBindingElement:()=>C_,isDeclarationFileName:()=>uO,isDeclarationName:()=>lh,isDeclarationNameOfEnumOrNamespace:()=>Yb,isDeclarationReadonly:()=>nf,isDeclarationStatement:()=>uu,isDeclarationWithTypeParameterChildren:()=>kp,isDeclarationWithTypeParameters:()=>xp,isDecorator:()=>CD,isDecoratorTarget:()=>QG,isDefaultClause:()=>eP,isDefaultImport:()=>Tg,isDefaultModifier:()=>lD,isDefaultedExpandoInitializer:()=>Km,isDeleteExpression:()=>xF,isDeleteTarget:()=>sh,isDeprecatedDeclaration:()=>$Z,isDestructuringAssignment:()=>ib,isDiskPathRoot:()=>ho,isDoStatement:()=>GF,isDocumentRegistryEntry:()=>A0,isDotDotDotToken:()=>XN,isDottedName:()=>cb,isDynamicName:()=>Bh,isEffectiveExternalModule:()=>hp,isEffectiveStrictModeSourceFile:()=>yp,isElementAccessChain:()=>ml,isElementAccessExpression:()=>pF,isEmittedFileOfProgram:()=>OU,isEmptyArrayLiteral:()=>yb,isEmptyBindingElement:()=>tc,isEmptyBindingPattern:()=>ec,isEmptyObjectLiteral:()=>hb,isEmptyStatement:()=>$F,isEmptyStringLiteral:()=>ym,isEntityName:()=>e_,isEntityNameExpression:()=>ab,isEnumConst:()=>tf,isEnumDeclaration:()=>mE,isEnumMember:()=>aP,isEqualityOperatorKind:()=>cZ,isEqualsGreaterThanToken:()=>oD,isExclamationToken:()=>tD,isExcludedFile:()=>Mj,isExclusivelyTypeOnlyImportOrExport:()=>uV,isExpandoPropertyDeclaration:()=>lC,isExportAssignment:()=>AE,isExportDeclaration:()=>IE,isExportModifier:()=>cD,isExportName:()=>yA,isExportNamespaceAsDefaultDeclaration:()=>Wd,isExportOrDefaultModifier:()=>lI,isExportSpecifier:()=>LE,isExportsIdentifier:()=>Ym,isExportsOrModuleExportsOrAlias:()=>YR,isExpression:()=>V_,isExpressionNode:()=>bm,isExpressionOfExternalModuleImportEqualsDeclaration:()=>gX,isExpressionOfOptionalChainRoot:()=>vl,isExpressionStatement:()=>HF,isExpressionWithTypeArguments:()=>OF,isExpressionWithTypeArgumentsInClassExtendsClause:()=>ob,isExternalModule:()=>rO,isExternalModuleAugmentation:()=>fp,isExternalModuleImportEqualsDeclaration:()=>Tm,isExternalModuleIndicator:()=>X_,isExternalModuleNameRelative:()=>Cs,isExternalModuleReference:()=>JE,isExternalModuleSymbol:()=>Qu,isExternalOrCommonJsModule:()=>Zp,isFileLevelReservedGeneratedIdentifier:()=>Hl,isFileLevelUniqueName:()=>wd,isFileProbablyExternalModule:()=>FI,isFirstDeclarationOfSymbolParameter:()=>xY,isFixablePromiseHandler:()=>D1,isForInOrOfStatement:()=>Q_,isForInStatement:()=>YF,isForInitializer:()=>eu,isForOfStatement:()=>ZF,isForStatement:()=>QF,isFullSourceFile:()=>Dm,isFunctionBlock:()=>Bf,isFunctionBody:()=>Z_,isFunctionDeclaration:()=>uE,isFunctionExpression:()=>vF,isFunctionExpressionOrArrowFunction:()=>RT,isFunctionLike:()=>r_,isFunctionLikeDeclaration:()=>o_,isFunctionLikeKind:()=>c_,isFunctionLikeOrClassStaticBlockDeclaration:()=>i_,isFunctionOrConstructorTypeNode:()=>x_,isFunctionOrModuleBlock:()=>l_,isFunctionSymbol:()=>gg,isFunctionTypeNode:()=>BD,isGeneratedIdentifier:()=>Wl,isGeneratedPrivateIdentifier:()=>$l,isGetAccessor:()=>Nu,isGetAccessorDeclaration:()=>AD,isGetOrSetAccessorDeclaration:()=>pl,isGlobalScopeAugmentation:()=>pp,isGlobalSourceFile:()=>Yp,isGrammarError:()=>Fd,isHeritageClause:()=>tP,isHoistedFunction:()=>mf,isHoistedVariableStatement:()=>hf,isIdentifier:()=>aD,isIdentifierANonContextualKeyword:()=>Ph,isIdentifierName:()=>dh,isIdentifierOrThisTypeNode:()=>GA,isIdentifierPart:()=>fs,isIdentifierStart:()=>ps,isIdentifierText:()=>ms,isIdentifierTypePredicate:()=>qf,isIdentifierTypeReference:()=>xT,isIfStatement:()=>KF,isIgnoredFileFromWildCardWatching:()=>IU,isImplicitGlob:()=>uS,isImportAttribute:()=>NE,isImportAttributeName:()=>Vl,isImportAttributes:()=>wE,isImportCall:()=>_f,isImportClause:()=>kE,isImportDeclaration:()=>xE,isImportEqualsDeclaration:()=>bE,isImportKeyword:()=>vD,isImportMeta:()=>uf,isImportOrExportSpecifier:()=>Rl,isImportOrExportSpecifierName:()=>VY,isImportSpecifier:()=>PE,isImportTypeAssertionContainer:()=>SE,isImportTypeNode:()=>iF,isImportable:()=>a0,isInComment:()=>dQ,isInCompoundLikeAssignment:()=>Yg,isInExpressionContext:()=>xm,isInJSDoc:()=>Im,isInJSFile:()=>Em,isInJSXText:()=>aQ,isInJsonFile:()=>Pm,isInNonReferenceComment:()=>wQ,isInReferenceComment:()=>CQ,isInRightSideOfInternalImportEqualsDeclaration:()=>$G,isInString:()=>nQ,isInTemplateString:()=>oQ,isInTopLevelContext:()=>nm,isInTypeQuery:()=>_v,isIncrementalBuildInfo:()=>kW,isIncrementalBundleEmitBuildInfo:()=>xW,isIncrementalCompilation:()=>Ek,isIndexSignatureDeclaration:()=>jD,isIndexedAccessTypeNode:()=>tF,isInferTypeNode:()=>QD,isInfinityOrNaNString:()=>jT,isInitializedProperty:()=>uz,isInitializedVariable:()=>ex,isInsideJsxElement:()=>sQ,isInsideJsxElementOrAttribute:()=>rQ,isInsideNodeModules:()=>AZ,isInsideTemplateLiteral:()=>xQ,isInstanceOfExpression:()=>mb,isInstantiatedModule:()=>tJ,isInterfaceDeclaration:()=>pE,isInternalDeclaration:()=>zu,isInternalModuleImportEqualsDeclaration:()=>Nm,isInternalName:()=>gA,isIntersectionTypeNode:()=>GD,isIntrinsicJsxName:()=>Ey,isIterationStatement:()=>$_,isJSDoc:()=>SP,isJSDocAllType:()=>mP,isJSDocAugmentsTag:()=>wP,isJSDocAuthorTag:()=>NP,isJSDocCallbackTag:()=>FP,isJSDocClassTag:()=>DP,isJSDocCommentContainingNode:()=>Tu,isJSDocConstructSignature:()=>Ng,isJSDocDeprecatedTag:()=>jP,isJSDocEnumTag:()=>RP,isJSDocFunctionType:()=>bP,isJSDocImplementsTag:()=>HP,isJSDocImportTag:()=>XP,isJSDocIndexSignature:()=>Om,isJSDocLikeText:()=>DI,isJSDocLink:()=>dP,isJSDocLinkCode:()=>pP,isJSDocLinkLike:()=>Mu,isJSDocLinkPlain:()=>fP,isJSDocMemberName:()=>uP,isJSDocNameReference:()=>_P,isJSDocNamepathType:()=>kP,isJSDocNamespaceBody:()=>ru,isJSDocNode:()=>Su,isJSDocNonNullableType:()=>yP,isJSDocNullableType:()=>hP,isJSDocOptionalParameter:()=>GT,isJSDocOptionalType:()=>vP,isJSDocOverloadTag:()=>LP,isJSDocOverrideTag:()=>OP,isJSDocParameterTag:()=>BP,isJSDocPrivateTag:()=>PP,isJSDocPropertyLikeTag:()=>Nl,isJSDocPropertyTag:()=>$P,isJSDocProtectedTag:()=>AP,isJSDocPublicTag:()=>EP,isJSDocReadonlyTag:()=>IP,isJSDocReturnTag:()=>JP,isJSDocSatisfiesExpression:()=>YT,isJSDocSatisfiesTag:()=>KP,isJSDocSeeTag:()=>MP,isJSDocSignature:()=>CP,isJSDocTag:()=>Cu,isJSDocTemplateTag:()=>UP,isJSDocThisTag:()=>zP,isJSDocThrowsTag:()=>GP,isJSDocTypeAlias:()=>Dg,isJSDocTypeAssertion:()=>TA,isJSDocTypeExpression:()=>lP,isJSDocTypeLiteral:()=>TP,isJSDocTypeTag:()=>qP,isJSDocTypedefTag:()=>VP,isJSDocUnknownTag:()=>WP,isJSDocUnknownType:()=>gP,isJSDocVariadicType:()=>xP,isJSXTagName:()=>vm,isJsonEqual:()=>fT,isJsonSourceFile:()=>ef,isJsxAttribute:()=>KE,isJsxAttributeLike:()=>yu,isJsxAttributeName:()=>rC,isJsxAttributes:()=>GE,isJsxCallLike:()=>xu,isJsxChild:()=>hu,isJsxClosingElement:()=>VE,isJsxClosingFragment:()=>HE,isJsxElement:()=>zE,isJsxExpression:()=>QE,isJsxFragment:()=>WE,isJsxNamespacedName:()=>YE,isJsxOpeningElement:()=>UE,isJsxOpeningFragment:()=>$E,isJsxOpeningLikeElement:()=>bu,isJsxOpeningLikeElementTagName:()=>YG,isJsxSelfClosingElement:()=>qE,isJsxSpreadAttribute:()=>XE,isJsxTagNameExpression:()=>gu,isJsxText:()=>VN,isJumpStatementTarget:()=>aX,isKeyword:()=>Ch,isKeywordOrPunctuation:()=>Nh,isKnownSymbol:()=>Wh,isLabelName:()=>cX,isLabelOfLabeledStatement:()=>sX,isLabeledStatement:()=>oE,isLateVisibilityPaintedStatement:()=>wp,isLeftHandSideExpression:()=>R_,isLet:()=>cf,isLineBreak:()=>Va,isLiteralComputedPropertyDeclarationName:()=>uh,isLiteralExpression:()=>Il,isLiteralExpressionOfObject:()=>Ol,isLiteralImportTypeNode:()=>df,isLiteralKind:()=>Al,isLiteralNameOfPropertyDeclarationOrIndexAccess:()=>mX,isLiteralTypeLiteral:()=>U_,isLiteralTypeNode:()=>rF,isLocalName:()=>hA,isLogicalOperator:()=>Gv,isLogicalOrCoalescingAssignmentExpression:()=>Qv,isLogicalOrCoalescingAssignmentOperator:()=>Xv,isLogicalOrCoalescingBinaryExpression:()=>Zv,isLogicalOrCoalescingBinaryOperator:()=>Yv,isMappedTypeNode:()=>nF,isMemberName:()=>dl,isMetaProperty:()=>RF,isMethodDeclaration:()=>FD,isMethodOrAccessor:()=>m_,isMethodSignature:()=>DD,isMinusToken:()=>ZN,isMissingDeclaration:()=>ME,isMissingPackageJsonInfo:()=>kM,isModifier:()=>Zl,isModifierKind:()=>Xl,isModifierLike:()=>g_,isModuleAugmentationExternal:()=>mp,isModuleBlock:()=>hE,isModuleBody:()=>tu,isModuleDeclaration:()=>gE,isModuleExportName:()=>jE,isModuleExportsAccessExpression:()=>eg,isModuleIdentifier:()=>Zm,isModuleName:()=>YA,isModuleOrEnumDeclaration:()=>ou,isModuleReference:()=>mu,isModuleSpecifierLike:()=>oY,isModuleWithStringLiteralName:()=>lp,isNameOfFunctionDeclaration:()=>fX,isNameOfModuleDeclaration:()=>pX,isNamedDeclaration:()=>Sc,isNamedEvaluation:()=>Gh,isNamedEvaluationSource:()=>Kh,isNamedExportBindings:()=>wl,isNamedExports:()=>OE,isNamedImportBindings:()=>iu,isNamedImports:()=>EE,isNamedImportsOrExports:()=>Cx,isNamedTupleMember:()=>WD,isNamespaceBody:()=>nu,isNamespaceExport:()=>FE,isNamespaceExportDeclaration:()=>vE,isNamespaceImport:()=>DE,isNamespaceReexportDeclaration:()=>Sm,isNewExpression:()=>mF,isNewExpressionTarget:()=>KG,isNewScopeNode:()=>EC,isNoSubstitutionTemplateLiteral:()=>$N,isNodeArray:()=>Pl,isNodeArrayMultiLine:()=>Wb,isNodeDescendantOf:()=>ch,isNodeKind:()=>Dl,isNodeLikeSystem:()=>_n,isNodeModulesDirectory:()=>ca,isNodeWithPossibleHoistedDeclaration:()=>Zg,isNonContextualKeyword:()=>Fh,isNonGlobalAmbientModule:()=>_p,isNonNullAccess:()=>QT,isNonNullChain:()=>Tl,isNonNullExpression:()=>MF,isNonStaticMethodOrAccessorWithPrivateName:()=>dz,isNotEmittedStatement:()=>RE,isNullishCoalesce:()=>xl,isNumber:()=>et,isNumericLiteral:()=>zN,isNumericLiteralName:()=>JT,isObjectBindingElementWithoutPropertyName:()=>aY,isObjectBindingOrAssignmentElement:()=>F_,isObjectBindingOrAssignmentPattern:()=>D_,isObjectBindingPattern:()=>sF,isObjectLiteralElement:()=>Au,isObjectLiteralElementLike:()=>v_,isObjectLiteralExpression:()=>uF,isObjectLiteralMethod:()=>Jf,isObjectLiteralOrClassExpressionMethodOrAccessor:()=>zf,isObjectTypeDeclaration:()=>xx,isOmittedExpression:()=>IF,isOptionalChain:()=>hl,isOptionalChainRoot:()=>yl,isOptionalDeclaration:()=>XT,isOptionalJSDocPropertyLikeTag:()=>$T,isOptionalTypeNode:()=>$D,isOuterExpression:()=>wA,isOutermostOptionalChain:()=>bl,isOverrideModifier:()=>gD,isPackageJsonInfo:()=>xM,isPackedArrayLiteral:()=>PT,isParameter:()=>TD,isParameterPropertyDeclaration:()=>Zs,isParameterPropertyModifier:()=>Ql,isParenthesizedExpression:()=>yF,isParenthesizedTypeNode:()=>YD,isParseTreeNode:()=>dc,isPartOfParameterDeclaration:()=>Qh,isPartOfTypeNode:()=>wf,isPartOfTypeOnlyImportOrExportDeclaration:()=>ql,isPartOfTypeQuery:()=>km,isPartiallyEmittedExpression:()=>JF,isPatternMatch:()=>Yt,isPinnedComment:()=>Bd,isPlainJsFile:()=>xd,isPlusToken:()=>YN,isPossiblyTypeArgumentPosition:()=>lQ,isPostfixUnaryExpression:()=>wF,isPrefixUnaryExpression:()=>CF,isPrimitiveLiteralValue:()=>bC,isPrivateIdentifier:()=>sD,isPrivateIdentifierClassElementDeclaration:()=>Kl,isPrivateIdentifierPropertyAccessExpression:()=>Gl,isPrivateIdentifierSymbol:()=>$h,isProgramUptoDate:()=>EV,isPrologueDirective:()=>pf,isPropertyAccessChain:()=>fl,isPropertyAccessEntityNameExpression:()=>lb,isPropertyAccessExpression:()=>dF,isPropertyAccessOrQualifiedName:()=>I_,isPropertyAccessOrQualifiedNameOrImportTypeNode:()=>A_,isPropertyAssignment:()=>rP,isPropertyDeclaration:()=>ND,isPropertyName:()=>t_,isPropertyNameLiteral:()=>zh,isPropertySignature:()=>wD,isPrototypeAccess:()=>ub,isPrototypePropertyAssignment:()=>pg,isPunctuation:()=>wh,isPushOrUnshiftIdentifier:()=>Xh,isQualifiedName:()=>xD,isQuestionDotToken:()=>iD,isQuestionOrExclamationToken:()=>KA,isQuestionOrPlusOrMinusToken:()=>QA,isQuestionToken:()=>nD,isReadonlyKeyword:()=>pD,isReadonlyKeywordOrPlusOrMinusToken:()=>XA,isRecognizedTripleSlashComment:()=>Rd,isReferenceFileLocation:()=>DV,isReferencedFile:()=>NV,isRegularExpressionLiteral:()=>WN,isRequireCall:()=>Lm,isRequireVariableStatement:()=>Jm,isRestParameter:()=>Bu,isRestTypeNode:()=>HD,isReturnStatement:()=>nE,isReturnStatementWithFixablePromiseHandler:()=>N1,isRightSideOfAccessExpression:()=>pb,isRightSideOfInstanceofExpression:()=>gb,isRightSideOfPropertyAccess:()=>uX,isRightSideOfQualifiedName:()=>_X,isRightSideOfQualifiedNameOrPropertyAccess:()=>db,isRightSideOfQualifiedNameOrPropertyAccessOrJSDocMemberName:()=>fb,isRootedDiskPath:()=>go,isSameEntityName:()=>Xm,isSatisfiesExpression:()=>jF,isSemicolonClassElement:()=>UF,isSetAccessor:()=>wu,isSetAccessorDeclaration:()=>ID,isShiftOperatorOrHigher:()=>ZA,isShorthandAmbientModuleSymbol:()=>up,isShorthandPropertyAssignment:()=>iP,isSideEffectImport:()=>SC,isSignedNumericLiteral:()=>Mh,isSimpleCopiableExpression:()=>tz,isSimpleInlineableExpression:()=>nz,isSimpleParameterList:()=>kz,isSingleOrDoubleQuote:()=>zm,isSolutionConfig:()=>mj,isSourceElement:()=>fC,isSourceFile:()=>sP,isSourceFileFromLibrary:()=>YZ,isSourceFileJS:()=>Fm,isSourceFileNotJson:()=>Am,isSourceMapping:()=>AJ,isSpecialPropertyDeclaration:()=>fg,isSpreadAssignment:()=>oP,isSpreadElement:()=>PF,isStatement:()=>pu,isStatementButNotDeclaration:()=>du,isStatementOrBlock:()=>fu,isStatementWithLocals:()=>kd,isStatic:()=>Dv,isStaticModifier:()=>fD,isString:()=>Ze,isStringANonContextualKeyword:()=>Eh,isStringAndEmptyAnonymousObjectIntersection:()=>bQ,isStringDoubleQuoted:()=>qm,isStringLiteral:()=>UN,isStringLiteralLike:()=>ju,isStringLiteralOrJsxExpression:()=>vu,isStringLiteralOrTemplate:()=>lZ,isStringOrNumericLiteralLike:()=>jh,isStringOrRegularExpressionOrTemplateLiteral:()=>yQ,isStringTextContainingNode:()=>Ul,isSuperCall:()=>lf,isSuperKeyword:()=>yD,isSuperProperty:()=>am,isSupportedSourceFileName:()=>BS,isSwitchStatement:()=>iE,isSyntaxList:()=>QP,isSyntheticExpression:()=>BF,isSyntheticReference:()=>BE,isTagName:()=>lX,isTaggedTemplateExpression:()=>gF,isTaggedTemplateTag:()=>XG,isTemplateExpression:()=>FF,isTemplateHead:()=>HN,isTemplateLiteral:()=>M_,isTemplateLiteralKind:()=>Ll,isTemplateLiteralToken:()=>jl,isTemplateLiteralTypeNode:()=>aF,isTemplateLiteralTypeSpan:()=>oF,isTemplateMiddle:()=>KN,isTemplateMiddleOrTemplateTail:()=>Ml,isTemplateSpan:()=>qF,isTemplateTail:()=>GN,isTextWhiteSpaceLike:()=>hY,isThis:()=>vX,isThisContainerOrFunctionBlock:()=>tm,isThisIdentifier:()=>lv,isThisInTypeQuery:()=>uv,isThisInitializedDeclaration:()=>cm,isThisInitializedObjectBindingExpression:()=>lm,isThisProperty:()=>sm,isThisTypeNode:()=>ZD,isThisTypeParameter:()=>qT,isThisTypePredicate:()=>Uf,isThrowStatement:()=>aE,isToken:()=>El,isTokenKind:()=>Fl,isTraceEnabled:()=>Qj,isTransientSymbol:()=>Xu,isTrivia:()=>Ah,isTryStatement:()=>sE,isTupleTypeNode:()=>VD,isTypeAlias:()=>Fg,isTypeAliasDeclaration:()=>fE,isTypeAssertionExpression:()=>hF,isTypeDeclaration:()=>VT,isTypeElement:()=>h_,isTypeKeyword:()=>MQ,isTypeKeywordTokenOrIdentifier:()=>BQ,isTypeLiteralNode:()=>qD,isTypeNode:()=>b_,isTypeNodeKind:()=>kx,isTypeOfExpression:()=>kF,isTypeOnlyExportDeclaration:()=>Jl,isTypeOnlyImportDeclaration:()=>Bl,isTypeOnlyImportOrExportDeclaration:()=>zl,isTypeOperatorNode:()=>eF,isTypeParameterDeclaration:()=>SD,isTypePredicateNode:()=>MD,isTypeQueryNode:()=>zD,isTypeReferenceNode:()=>RD,isTypeReferenceType:()=>Iu,isTypeUsableAsPropertyName:()=>sC,isUMDExportSymbol:()=>hx,isUnaryExpression:()=>J_,isUnaryExpressionWithWrite:()=>q_,isUnicodeIdentifierStart:()=>wa,isUnionTypeNode:()=>KD,isUrl:()=>mo,isValidBigIntString:()=>vT,isValidESSymbolDeclaration:()=>jf,isValidTypeOnlyAliasUseSite:()=>bT,isValueSignatureDeclaration:()=>eh,isVarAwaitUsing:()=>rf,isVarConst:()=>af,isVarConstLike:()=>sf,isVarUsing:()=>of,isVariableDeclaration:()=>lE,isVariableDeclarationInVariableStatement:()=>If,isVariableDeclarationInitializedToBareOrAccessedRequire:()=>Mm,isVariableDeclarationInitializedToRequire:()=>jm,isVariableDeclarationList:()=>_E,isVariableLike:()=>Af,isVariableStatement:()=>WF,isVoidExpression:()=>SF,isWatchSet:()=>tx,isWhileStatement:()=>XF,isWhiteSpaceLike:()=>qa,isWhiteSpaceSingleLine:()=>Ua,isWithStatement:()=>rE,isWriteAccess:()=>cx,isWriteOnlyAccess:()=>sx,isYieldExpression:()=>EF,jsxModeNeedsExplicitImport:()=>QZ,keywordPart:()=>CY,last:()=>ve,lastOrUndefined:()=>ye,length:()=>u,libMap:()=>DO,libs:()=>NO,lineBreakPart:()=>BY,loadModuleFromGlobalCache:()=>RR,loadWithModeAwareCache:()=>SV,makeIdentifierFromModuleName:()=>op,makeImport:()=>QQ,makeStringLiteral:()=>YQ,mangleScopedPackageName:()=>PR,map:()=>E,mapAllOrFail:()=>R,mapDefined:()=>B,mapDefinedIterator:()=>J,mapEntries:()=>W,mapIterator:()=>P,mapOneOrMany:()=>RZ,mapToDisplayParts:()=>JY,matchFiles:()=>hS,matchPatternOrExact:()=>iT,matchedText:()=>Ht,matchesExclude:()=>Bj,matchesExcludeWorker:()=>Jj,maxBy:()=>xt,maybeBind:()=>We,maybeSetLocalizedDiagnosticMessages:()=>Ux,memoize:()=>dt,memoizeOne:()=>pt,min:()=>kt,minAndMax:()=>sT,missingFileModifiedTime:()=>zi,modifierToFlag:()=>Hv,modifiersToFlags:()=>$v,moduleExportNameIsDefault:()=>Kd,moduleExportNameTextEscaped:()=>Hd,moduleExportNameTextUnescaped:()=>$d,moduleOptionDeclaration:()=>AO,moduleResolutionIsEqualTo:()=>ld,moduleResolutionNameAndModeGetter:()=>yV,moduleResolutionOptionDeclarations:()=>RO,moduleResolutionSupportsPackageJsonExportsAndImports:()=>Rk,moduleResolutionUsesNodeModules:()=>XQ,moduleSpecifierToValidIdentifier:()=>UZ,moduleSpecifiers:()=>nB,moduleSupportsImportAttributes:()=>Bk,moduleSymbolToValidIdentifier:()=>qZ,moveEmitHelpers:()=>$w,moveRangeEnd:()=>Ib,moveRangePastDecorators:()=>Lb,moveRangePastModifiers:()=>jb,moveRangePos:()=>Ob,moveSyntheticComments:()=>Bw,mutateMap:()=>px,mutateMapSkippingNewValues:()=>dx,needsParentheses:()=>oZ,needsScopeMarker:()=>G_,newCaseClauseTracker:()=>ZZ,newPrivateEnvironment:()=>hz,noEmitNotification:()=>Uq,noEmitSubstitution:()=>qq,noTransformers:()=>Lq,noTruncationMaximumTruncationLength:()=>Wu,nodeCanBeDecorated:()=>dm,nodeCoreModules:()=>NC,nodeHasName:()=>xc,nodeIsDecorated:()=>pm,nodeIsMissing:()=>Nd,nodeIsPresent:()=>Dd,nodeIsSynthesized:()=>ey,nodeModuleNameResolver:()=>qM,nodeModulesPathPart:()=>KM,nodeNextJsonConfigResolver:()=>UM,nodeOrChildIsDecorated:()=>fm,nodeOverlapsWithStartEnd:()=>NX,nodePosToString:()=>Td,nodeSeenTracker:()=>JQ,nodeStartsNewLexicalEnvironment:()=>Zh,noop:()=>rt,noopFileWatcher:()=>w$,normalizePath:()=>Jo,normalizeSlashes:()=>Oo,normalizeSpans:()=>Vs,not:()=>tn,notImplemented:()=>ut,notImplementedResolver:()=>hU,nullNodeConverters:()=>ZC,nullParenthesizerRules:()=>XC,nullTransformationContext:()=>Wq,objectAllocator:()=>Mx,operatorPart:()=>NY,optionDeclarations:()=>OO,optionMapToObject:()=>VL,optionsAffectingProgramStructure:()=>JO,optionsForBuild:()=>$O,optionsForWatch:()=>FO,optionsHaveChanges:()=>td,or:()=>en,orderedRemoveItem:()=>zt,orderedRemoveItemAt:()=>qt,packageIdToPackageName:()=>fd,packageIdToString:()=>md,parameterIsThisKeyword:()=>cv,parameterNamePart:()=>DY,parseBaseNodeFactory:()=>TI,parseBigInt:()=>hT,parseBuildCommand:()=>fL,parseCommandLine:()=>lL,parseCommandLineWorker:()=>oL,parseConfigFileTextToJson:()=>yL,parseConfigFileWithSystem:()=>u$,parseConfigHostFromCompilerHostLike:()=>UV,parseCustomTypeOption:()=>tL,parseIsolatedEntityName:()=>tO,parseIsolatedJSDocComment:()=>oO,parseJSDocTypeExpressionForTests:()=>aO,parseJsonConfigFileContent:()=>ZL,parseJsonSourceFileConfigFileContent:()=>ej,parseJsonText:()=>nO,parseListTypeOption:()=>nL,parseNodeFactory:()=>CI,parseNodeModuleFromPath:()=>XM,parsePackageName:()=>mR,parsePseudoBigInt:()=>mT,parseValidBigInt:()=>yT,pasteEdits:()=>dfe,patchWriteFileEnsuringDirectory:()=>ao,pathContainsNodeModules:()=>GM,pathIsAbsolute:()=>yo,pathIsBareSpecifier:()=>bo,pathIsRelative:()=>vo,patternText:()=>$t,performIncrementalCompilation:()=>B$,performance:()=>Vn,positionBelongsToNode:()=>FX,positionIsASICandidate:()=>vZ,positionIsSynthesized:()=>XS,positionsAreOnSameLine:()=>$b,preProcessFile:()=>h1,probablyUsesSemicolons:()=>bZ,processCommentPragmas:()=>pO,processPragmasIntoFields:()=>fO,processTaggedTemplateExpression:()=>$z,programContainsEsModules:()=>$Q,programContainsModules:()=>WQ,projectReferenceIsEqualTo:()=>cd,propertyNamePart:()=>FY,pseudoBigIntToString:()=>gT,punctuationPart:()=>wY,pushIfUnique:()=>ce,quote:()=>sZ,quotePreferenceFromString:()=>eY,rangeContainsPosition:()=>SX,rangeContainsPositionExclusive:()=>TX,rangeContainsRange:()=>Xb,rangeContainsRangeExclusive:()=>kX,rangeContainsStartEnd:()=>CX,rangeEndIsOnSameLineAsRangeStart:()=>qb,rangeEndPositionsAreOnSameLine:()=>Jb,rangeEquals:()=>de,rangeIsOnSingleLine:()=>Rb,rangeOfNode:()=>cT,rangeOfTypeParameters:()=>lT,rangeOverlapsWithStartEnd:()=>wX,rangeStartIsOnSameLineAsRangeEnd:()=>zb,rangeStartPositionsAreOnSameLine:()=>Bb,readBuilderProgram:()=>J$,readConfigFile:()=>hL,readJson:()=>wb,readJsonConfigFile:()=>vL,readJsonOrUndefined:()=>Cb,reduceEachLeadingCommentRange:()=>ss,reduceEachTrailingCommentRange:()=>cs,reduceLeft:()=>we,reduceLeftIterator:()=>g,reducePathComponents:()=>Lo,refactor:()=>Q2,regExpEscape:()=>tS,regularExpressionFlagToCharacterCode:()=>Aa,relativeComplement:()=>re,removeAllComments:()=>bw,removeEmitHelper:()=>Vw,removeExtension:()=>WS,removeFileExtension:()=>US,removeIgnoredPath:()=>qW,removeMinAndVersionNumbers:()=>Jt,removePrefix:()=>Xt,removeSuffix:()=>Rt,removeTrailingDirectorySeparator:()=>Vo,repeatString:()=>qQ,replaceElement:()=>Se,replaceFirstStar:()=>dC,resolutionExtensionIsTSOrJson:()=>YS,resolveConfigFileProjectName:()=>$$,resolveJSModule:()=>BM,resolveLibrary:()=>LM,resolveModuleName:()=>MM,resolveModuleNameFromCache:()=>jM,resolvePackageNameToPackageJson:()=>vM,resolvePath:()=>Mo,resolveProjectReferencePath:()=>VV,resolveTripleslashReference:()=>JU,resolveTypeReferenceDirective:()=>gM,resolvingEmptyArray:()=>qu,returnFalse:()=>it,returnNoopFileWatcher:()=>N$,returnTrue:()=>ot,returnUndefined:()=>at,returnsPromise:()=>w1,rewriteModuleSpecifier:()=>Sz,sameFlatMap:()=>M,sameMap:()=>A,sameMapping:()=>PJ,scanTokenAtPosition:()=>Xp,scanner:()=>qG,semanticDiagnosticsOptionDeclarations:()=>LO,serializeCompilerOptions:()=>KL,server:()=>kfe,servicesVersion:()=>v8,setCommentRange:()=>Aw,setConfigFileInOptions:()=>tj,setConstantValue:()=>zw,setEmitFlags:()=>xw,setGetSourceFileAsHashVersioned:()=>I$,setIdentifierAutoGenerate:()=>eN,setIdentifierGeneratedImportReference:()=>nN,setIdentifierTypeArguments:()=>Yw,setInternalEmitFlags:()=>Sw,setLocalizedDiagnosticMessages:()=>qx,setNodeChildren:()=>tA,setNodeFlags:()=>NT,setObjectAllocator:()=>Jx,setOriginalNode:()=>hw,setParent:()=>DT,setParentRecursive:()=>FT,setPrivateIdentifier:()=>vz,setSnippetElement:()=>Kw,setSourceMapRange:()=>ww,setStackTraceLimit:()=>Ri,setStartsOnNewLine:()=>Ew,setSyntheticLeadingComments:()=>Ow,setSyntheticTrailingComments:()=>Mw,setSys:()=>co,setSysLog:()=>eo,setTextRange:()=>xI,setTextRangeEnd:()=>TT,setTextRangePos:()=>ST,setTextRangePosEnd:()=>CT,setTextRangePosWidth:()=>wT,setTokenSourceMapRange:()=>Dw,setTypeNode:()=>Xw,setUILocale:()=>Pt,setValueDeclaration:()=>mg,shouldAllowImportingTsExtension:()=>MR,shouldPreserveConstEnums:()=>Fk,shouldRewriteModuleSpecifier:()=>xg,shouldUseUriStyleNodeCoreModules:()=>HZ,showModuleSpecifier:()=>yx,signatureHasRestParameter:()=>aJ,signatureToDisplayParts:()=>UY,single:()=>xe,singleElementArray:()=>rn,singleIterator:()=>U,singleOrMany:()=>ke,singleOrUndefined:()=>be,skipAlias:()=>ox,skipConstraint:()=>UQ,skipOuterExpressions:()=>NA,skipParentheses:()=>ah,skipPartiallyEmittedExpressions:()=>Sl,skipTrivia:()=>Qa,skipTypeChecking:()=>_T,skipTypeCheckingIgnoringNoCheck:()=>uT,skipTypeParentheses:()=>oh,skipWhile:()=>ln,sliceAfter:()=>oT,some:()=>$,sortAndDeduplicate:()=>ee,sortAndDeduplicateDiagnostics:()=>ws,sourceFileAffectingCompilerOptions:()=>BO,sourceFileMayBeEmitted:()=>Xy,sourceMapCommentRegExp:()=>TJ,sourceMapCommentRegExpDontCareLineStart:()=>SJ,spacePart:()=>TY,spanMap:()=>V,startEndContainsRange:()=>Qb,startEndOverlapsWithStartEnd:()=>DX,startOnNewLine:()=>FA,startTracing:()=>dr,startsWith:()=>Gt,startsWithDirectory:()=>ta,startsWithUnderscore:()=>WZ,startsWithUseStrict:()=>xA,stringContainsAt:()=>VZ,stringToToken:()=>Ea,stripQuotes:()=>Fy,supportedDeclarationExtensions:()=>FS,supportedJSExtensionsFlat:()=>wS,supportedLocaleDirectories:()=>cc,supportedTSExtensionsFlat:()=>SS,supportedTSImplementationExtensions:()=>ES,suppressLeadingAndTrailingTrivia:()=>UC,suppressLeadingTrivia:()=>VC,suppressTrailingTrivia:()=>WC,symbolEscapedNameNoDefault:()=>iY,symbolName:()=>yc,symbolNameNoDefault:()=>rY,symbolToDisplayParts:()=>qY,sys:()=>so,sysLog:()=>Zi,tagNamesAreEquivalent:()=>xO,takeWhile:()=>cn,targetOptionDeclaration:()=>PO,targetToLibMap:()=>Ns,testFormatSettings:()=>PG,textChangeRangeIsUnchanged:()=>Ks,textChangeRangeNewSpan:()=>Hs,textChanges:()=>jue,textOrKeywordPart:()=>EY,textPart:()=>PY,textRangeContainsPositionInclusive:()=>As,textRangeContainsTextSpan:()=>Ls,textRangeIntersectsWithTextSpan:()=>qs,textSpanContainsPosition:()=>Ps,textSpanContainsTextRange:()=>Os,textSpanContainsTextSpan:()=>Is,textSpanEnd:()=>Fs,textSpanIntersection:()=>Us,textSpanIntersectsWith:()=>Bs,textSpanIntersectsWithPosition:()=>zs,textSpanIntersectsWithTextSpan:()=>Rs,textSpanIsEmpty:()=>Es,textSpanOverlap:()=>Ms,textSpanOverlapsWith:()=>js,textSpansEqual:()=>pY,textToKeywordObj:()=>pa,timestamp:()=>Un,toArray:()=>Ye,toBuilderFileEmit:()=>IW,toBuilderStateFileInfoForMultiEmit:()=>AW,toEditorSettings:()=>j8,toFileNameLowerCase:()=>_t,toPath:()=>Uo,toProgramEmitPending:()=>OW,toSorted:()=>_e,tokenIsIdentifierOrKeyword:()=>ua,tokenIsIdentifierOrKeywordOrGreaterThan:()=>da,tokenToString:()=>Fa,trace:()=>Xj,tracing:()=>Hn,tracingEnabled:()=>Kn,transferSourceFileChildren:()=>rA,transform:()=>t7,transformClassFields:()=>Qz,transformDeclarations:()=>Aq,transformECMAScriptModule:()=>Sq,transformES2015:()=>yq,transformES2016:()=>gq,transformES2017:()=>nq,transformES2018:()=>iq,transformES2019:()=>oq,transformES2020:()=>aq,transformES2021:()=>sq,transformESDecorators:()=>tq,transformESNext:()=>cq,transformGenerators:()=>vq,transformImpliedNodeFormatDependentModule:()=>Tq,transformJsx:()=>fq,transformLegacyDecorators:()=>eq,transformModule:()=>bq,transformNamedEvaluation:()=>Vz,transformNodes:()=>Vq,transformSystemModule:()=>kq,transformTypeScript:()=>Xz,transpile:()=>q1,transpileDeclaration:()=>j1,transpileModule:()=>L1,transpileOptionValueCompilerOptions:()=>zO,tryAddToSet:()=>q,tryAndIgnoreErrors:()=>CZ,tryCast:()=>tt,tryDirectoryExists:()=>TZ,tryExtractTSExtension:()=>bb,tryFileExists:()=>SZ,tryGetClassExtendingExpressionWithTypeArguments:()=>tb,tryGetClassImplementingOrExtendingExpressionWithTypeArguments:()=>nb,tryGetDirectories:()=>xZ,tryGetExtensionFromPath:()=>tT,tryGetImportFromModuleSpecifier:()=>bg,tryGetJSDocSatisfiesTypeNode:()=>eC,tryGetModuleNameFromFile:()=>LA,tryGetModuleSpecifierFromDeclaration:()=>yg,tryGetNativePerformanceHooks:()=>Jn,tryGetPropertyAccessOrIdentifierToString:()=>_b,tryGetPropertyNameOfBindingOrAssignmentElement:()=>JA,tryGetSourceMappingURL:()=>NJ,tryGetTextOfPropertyName:()=>Lp,tryParseJson:()=>Nb,tryParsePattern:()=>HS,tryParsePatterns:()=>GS,tryParseRawSourceMap:()=>FJ,tryReadDirectory:()=>kZ,tryReadFile:()=>bL,tryRemoveDirectoryPrefix:()=>Zk,tryRemoveExtension:()=>VS,tryRemovePrefix:()=>Qt,tryRemoveSuffix:()=>Bt,tscBuildOption:()=>WO,typeAcquisitionDeclarations:()=>KO,typeAliasNamePart:()=>AY,typeDirectiveIsEqualTo:()=>gd,typeKeywords:()=>jQ,typeParameterNamePart:()=>IY,typeToDisplayParts:()=>zY,unchangedPollThresholds:()=>$i,unchangedTextChangeRange:()=>Xs,unescapeLeadingUnderscores:()=>mc,unmangleScopedPackageName:()=>IR,unorderedRemoveItem:()=>Vt,unprefixedNodeCoreModules:()=>CC,unreachableCodeIsError:()=>jk,unsetNodeChildren:()=>nA,unusedLabelIsError:()=>Mk,unwrapInnermostStatementOfLabel:()=>Rf,unwrapParenthesizedExpression:()=>xC,updateErrorForNoInputFiles:()=>hj,updateLanguageServiceSourceFile:()=>V8,updateMissingFilePathsWatch:()=>PU,updateResolutionField:()=>aM,updateSharedExtendedConfigFileWatcher:()=>DU,updateSourceFile:()=>iO,updateWatchingWildcardDirectories:()=>AU,usingSingleLineStringWriter:()=>ad,utf16EncodeAsString:()=>bs,validateLocaleAndSetLanguage:()=>lc,version:()=>s,versionMajorMinor:()=>a,visitArray:()=>uJ,visitCommaListElements:()=>yJ,visitEachChild:()=>vJ,visitFunctionBody:()=>gJ,visitIterationBody:()=>hJ,visitLexicalEnvironment:()=>pJ,visitNode:()=>lJ,visitNodes:()=>_J,visitParameterList:()=>fJ,walkUpBindingElementsAndPatterns:()=>nc,walkUpOuterExpressions:()=>DA,walkUpParenthesizedExpressions:()=>rh,walkUpParenthesizedTypes:()=>nh,walkUpParenthesizedTypesAndGetParentAndChild:()=>ih,whitespaceOrMapCommentRegExp:()=>CJ,writeCommentRange:()=>xv,writeFile:()=>Zy,writeFileEnsuringDirectories:()=>tv,zipWith:()=>h});var gfe,hfe=!0;function yfe(e,t,n,r,i){let o=t?"DeprecationError: ":"DeprecationWarning: ";return o+=`'${e}' `,o+=r?`has been deprecated since v${r}`:"is deprecated",o+=t?" and can no longer be used.":n?` and will no longer be usable after v${n}.`:".",o+=i?` ${zx(i,[e])}`:"",o}function vfe(e,t){return function(e,t){return function(){return e(),t.apply(this,arguments)}}(function(e,t={}){const n="string"==typeof t.typeScriptVersion?new bn(t.typeScriptVersion):t.typeScriptVersion??gfe??(gfe=new bn(s)),r="string"==typeof t.errorAfter?new bn(t.errorAfter):t.errorAfter,i="string"==typeof t.warnAfter?new bn(t.warnAfter):t.warnAfter,o="string"==typeof t.since?new bn(t.since):t.since??i,a=t.error||r&&n.compareTo(r)>=0,c=!i||n.compareTo(i)>=0;return a?function(e,t,n,r){const i=yfe(e,!0,t,n,r);return()=>{throw new TypeError(i)}}(e,r,o,t.message):c?function(e,t,n,r){let i=!1;return()=>{hfe&&!i&&(un.log.warn(yfe(e,!1,t,n,r)),i=!0)}}(e,r,o,t.message):rt}((null==t?void 0:t.name)??un.getFunctionName(e),t),e)}function bfe(e,t,n,r){if(Object.defineProperty(o,"name",{...Object.getOwnPropertyDescriptor(o,"name"),value:e}),r)for(const n of Object.keys(r)){const i=+n;!isNaN(i)&&De(t,`${i}`)&&(t[i]=vfe(t[i],{...r[i],name:e}))}const i=function(e,t){return n=>{for(let r=0;De(e,`${r}`)&&De(t,`${r}`);r++)if((0,t[r])(n))return r}}(t,n);return o;function o(...e){const n=i(e),r=void 0!==n?t[n]:void 0;if("function"==typeof r)return r(...e);throw new TypeError("Invalid arguments")}}function xfe(e){return{overload:t=>({bind:n=>({finish:()=>bfe(e,t,n),deprecate:r=>({finish:()=>bfe(e,t,n,r)})})})}}var kfe={};i(kfe,{ActionInvalidate:()=>KK,ActionPackageInstalled:()=>GK,ActionSet:()=>HK,ActionWatchTypingLocations:()=>eG,Arguments:()=>WK,AutoImportProviderProject:()=>xme,AuxiliaryProject:()=>vme,CharRangeSection:()=>dhe,CloseFileWatcherEvent:()=>zme,CommandNames:()=>Jge,ConfigFileDiagEvent:()=>Lme,ConfiguredProject:()=>kme,ConfiguredProjectLoadKind:()=>lge,CreateDirectoryWatcherEvent:()=>Jme,CreateFileWatcherEvent:()=>Bme,Errors:()=>Efe,EventBeginInstallTypes:()=>QK,EventEndInstallTypes:()=>YK,EventInitializationFailed:()=>ZK,EventTypesRegistry:()=>XK,ExternalProject:()=>Sme,GcTimer:()=>$fe,InferredProject:()=>yme,LargeFileReferencedEvent:()=>Ome,LineIndex:()=>yhe,LineLeaf:()=>bhe,LineNode:()=>vhe,LogLevel:()=>Afe,Msg:()=>Ofe,OpenFileInfoTelemetryEvent:()=>Rme,Project:()=>hme,ProjectInfoTelemetryEvent:()=>Mme,ProjectKind:()=>_me,ProjectLanguageServiceStateEvent:()=>jme,ProjectLoadingFinishEvent:()=>Ime,ProjectLoadingStartEvent:()=>Ame,ProjectService:()=>Fge,ProjectsUpdatedInBackgroundEvent:()=>Pme,ScriptInfo:()=>sme,ScriptVersionCache:()=>ghe,Session:()=>ihe,TextStorage:()=>ome,ThrottledOperations:()=>Wfe,TypingsInstallerAdapter:()=>khe,allFilesAreJsOrDts:()=>pme,allRootFilesAreJsOrDts:()=>dme,asNormalizedPath:()=>Rfe,convertCompilerOptions:()=>Gme,convertFormatOptions:()=>Kme,convertScriptKindName:()=>Zme,convertTypeAcquisition:()=>Qme,convertUserPreferences:()=>ege,convertWatchOptions:()=>Xme,countEachFileTypes:()=>ume,createInstallTypingsRequest:()=>Lfe,createModuleSpecifierCache:()=>Age,createNormalizedPathMap:()=>Bfe,createPackageJsonCache:()=>Ige,createSortedArray:()=>Vfe,emptyArray:()=>Ife,findArgument:()=>nG,formatDiagnosticToProtocol:()=>Bge,formatMessage:()=>zge,getBaseConfigFileName:()=>Hfe,getDetailWatchInfo:()=>hge,getLocationInNewDocument:()=>lhe,hasArgument:()=>tG,hasNoTypeScriptSource:()=>fme,indent:()=>oG,isBackgroundProject:()=>Nme,isConfigFile:()=>Ege,isConfiguredProject:()=>Cme,isDynamicFileName:()=>ame,isExternalProject:()=>wme,isInferredProject:()=>Tme,isInferredProjectName:()=>Jfe,isProjectDeferredClose:()=>Dme,makeAutoImportProviderProjectName:()=>qfe,makeAuxiliaryProjectName:()=>Ufe,makeInferredProjectName:()=>zfe,maxFileSize:()=>Eme,maxProgramSizeForNonTsFiles:()=>Fme,normalizedPathToPath:()=>Mfe,nowString:()=>rG,nullCancellationToken:()=>Oge,nullTypingsInstaller:()=>ige,protocol:()=>Kfe,scriptInfoIsContainedByBackgroundProject:()=>cme,scriptInfoIsContainedByDeferredClosedProject:()=>lme,stringifyIndented:()=>aG,toEvent:()=>Uge,toNormalizedPath:()=>jfe,tryConvertScriptKindName:()=>Yme,typingsInstaller:()=>Sfe,updateProjectIfDirty:()=>vge});var Sfe={};i(Sfe,{TypingsInstaller:()=>Dfe,getNpmCommandForInstallation:()=>Nfe,installNpmPackages:()=>wfe,typingsName:()=>Ffe});var Tfe={isEnabled:()=>!1,writeLine:rt};function Cfe(e,t,n,r){try{const r=MM(t,jo(e,"index.d.ts"),{moduleResolution:2},n);return r.resolvedModule&&r.resolvedModule.resolvedFileName}catch(n){return void(r.isEnabled()&&r.writeLine(`Failed to resolve ${t} in folder '${e}': ${n.message}`))}}function wfe(e,t,n,r){let i=!1;for(let o=n.length;o>0;){const a=Nfe(e,t,n,o);o=a.remaining,i=r(a.command)||i}return i}function Nfe(e,t,n,r){const i=n.length-r;let o,a=r;for(;o=`${e} install --ignore-scripts ${(a===n.length?n:n.slice(i,i+a)).join(" ")} --save-dev --user-agent="typesInstaller/${t}"`,!(o.length<8e3);)a-=Math.floor(a/2);return{command:o,remaining:r-a}}var Dfe=class{constructor(e,t,n,r,i,o=Tfe){this.installTypingHost=e,this.globalCachePath=t,this.safeListPath=n,this.typesMapLocation=r,this.throttleLimit=i,this.log=o,this.packageNameToTypingLocation=new Map,this.missingTypingsSet=new Set,this.knownCachesSet=new Set,this.projectWatchers=new Map,this.pendingRunRequests=[],this.installRunCount=1,this.inFlightRequestCount=0,this.latestDistTag="latest",this.log.isEnabled()&&this.log.writeLine(`Global cache location '${t}', safe file path '${n}', types map path ${r}`),this.processCacheLocation(this.globalCachePath)}handleRequest(e){switch(e.kind){case"discover":this.install(e);break;case"closeProject":this.closeProject(e);break;case"typesRegistry":{const e={};this.typesRegistry.forEach((t,n)=>{e[n]=t});const t={kind:XK,typesRegistry:e};this.sendResponse(t);break}case"installPackage":this.installPackage(e);break;default:un.assertNever(e)}}closeProject(e){this.closeWatchers(e.projectName)}closeWatchers(e){this.log.isEnabled()&&this.log.writeLine(`Closing file watchers for project '${e}'`),this.projectWatchers.get(e)?(this.projectWatchers.delete(e),this.sendResponse({kind:eG,projectName:e,files:[]}),this.log.isEnabled()&&this.log.writeLine(`Closing file watchers for project '${e}' - done.`)):this.log.isEnabled()&&this.log.writeLine(`No watchers are registered for project '${e}'`)}install(e){this.log.isEnabled()&&this.log.writeLine(`Got install request${aG(e)}`),e.cachePath&&(this.log.isEnabled()&&this.log.writeLine(`Request specifies cache path '${e.cachePath}', loading cached information...`),this.processCacheLocation(e.cachePath)),void 0===this.safeList&&this.initializeSafeList();const t=VK.discoverTypings(this.installTypingHost,this.log.isEnabled()?e=>this.log.writeLine(e):void 0,e.fileNames,e.projectRootPath,this.safeList,this.packageNameToTypingLocation,e.typeAcquisition,e.unresolvedImports,this.typesRegistry,e.compilerOptions);this.watchFiles(e.projectName,t.filesToWatch),t.newTypingNames.length?this.installTypings(e,e.cachePath||this.globalCachePath,t.cachedTypingPaths,t.newTypingNames):(this.sendResponse(this.createSetTypings(e,t.cachedTypingPaths)),this.log.isEnabled()&&this.log.writeLine("No new typings were requested as a result of typings discovery"))}installPackage(e){const{fileName:t,packageName:n,projectName:r,projectRootPath:i,id:o}=e,a=sa(Do(t),e=>{if(this.installTypingHost.fileExists(jo(e,"package.json")))return e})||i;if(a)this.installWorker(-1,[n],a,e=>{const t={kind:GK,projectName:r,id:o,success:e,message:e?`Package ${n} installed.`:`There was an error installing ${n}.`};this.sendResponse(t)});else{const e={kind:GK,projectName:r,id:o,success:!1,message:"Could not determine a project root path."};this.sendResponse(e)}}initializeSafeList(){if(this.typesMapLocation){const e=VK.loadTypesMap(this.installTypingHost,this.typesMapLocation);if(e)return this.log.writeLine(`Loaded safelist from types map file '${this.typesMapLocation}'`),void(this.safeList=e);this.log.writeLine(`Failed to load safelist from types map file '${this.typesMapLocation}'`)}this.safeList=VK.loadSafeList(this.installTypingHost,this.safeListPath)}processCacheLocation(e){if(this.log.isEnabled()&&this.log.writeLine(`Processing cache location '${e}'`),this.knownCachesSet.has(e))return void(this.log.isEnabled()&&this.log.writeLine("Cache location was already processed..."));const t=jo(e,"package.json"),n=jo(e,"package-lock.json");if(this.log.isEnabled()&&this.log.writeLine(`Trying to find '${t}'...`),this.installTypingHost.fileExists(t)&&this.installTypingHost.fileExists(n)){const r=JSON.parse(this.installTypingHost.readFile(t)),i=JSON.parse(this.installTypingHost.readFile(n));if(this.log.isEnabled()&&(this.log.writeLine(`Loaded content of '${t}':${aG(r)}`),this.log.writeLine(`Loaded content of '${n}':${aG(i)}`)),r.devDependencies&&(i.packages||i.dependencies))for(const t in r.devDependencies){if(i.packages&&!De(i.packages,`node_modules/${t}`)||i.dependencies&&!De(i.dependencies,t))continue;const n=Fo(t);if(!n)continue;const r=Cfe(e,n,this.installTypingHost,this.log);if(!r){this.missingTypingsSet.add(n);continue}const o=this.packageNameToTypingLocation.get(n);if(o){if(o.typingLocation===r)continue;this.log.isEnabled()&&this.log.writeLine(`New typing for package ${n} from '${r}' conflicts with existing typing file '${o}'`)}this.log.isEnabled()&&this.log.writeLine(`Adding entry into typings cache: '${n}' => '${r}'`);const a=i.packages&&Fe(i.packages,`node_modules/${t}`)||Fe(i.dependencies,t),s=a&&a.version;if(!s)continue;const c={typingLocation:r,version:new bn(s)};this.packageNameToTypingLocation.set(n,c)}}this.log.isEnabled()&&this.log.writeLine(`Finished processing cache location '${e}'`),this.knownCachesSet.add(e)}filterTypings(e){return B(e,e=>{const t=PR(e);if(this.missingTypingsSet.has(t))return void(this.log.isEnabled()&&this.log.writeLine(`'${e}':: '${t}' is in missingTypingsSet - skipping...`));const n=VK.validatePackageName(e);if(n!==VK.NameValidationResult.Ok)return this.missingTypingsSet.add(t),void(this.log.isEnabled()&&this.log.writeLine(VK.renderPackageNameValidationFailure(n,e)));if(this.typesRegistry.has(t)){if(!this.packageNameToTypingLocation.get(t)||!VK.isTypingUpToDate(this.packageNameToTypingLocation.get(t),this.typesRegistry.get(t)))return t;this.log.isEnabled()&&this.log.writeLine(`'${e}':: '${t}' already has an up-to-date typing - skipping...`)}else this.log.isEnabled()&&this.log.writeLine(`'${e}':: Entry for package '${t}' does not exist in local types registry - skipping...`)})}ensurePackageDirectoryExists(e){const t=jo(e,"package.json");this.log.isEnabled()&&this.log.writeLine(`Npm config file: ${t}`),this.installTypingHost.fileExists(t)||(this.log.isEnabled()&&this.log.writeLine(`Npm config file: '${t}' is missing, creating new one...`),this.ensureDirectoryExists(e,this.installTypingHost),this.installTypingHost.writeFile(t,'{ "private": true }'))}installTypings(e,t,n,r){this.log.isEnabled()&&this.log.writeLine(`Installing typings ${JSON.stringify(r)}`);const i=this.filterTypings(r);if(0===i.length)return this.log.isEnabled()&&this.log.writeLine("All typings are known to be missing or invalid - no need to install more typings"),void this.sendResponse(this.createSetTypings(e,n));this.ensurePackageDirectoryExists(t);const o=this.installRunCount;this.installRunCount++,this.sendResponse({kind:QK,eventId:o,typingsInstallerVersion:s,projectName:e.projectName});const c=i.map(Ffe);this.installTypingsAsync(o,c,t,r=>{try{if(!r){this.log.isEnabled()&&this.log.writeLine(`install request failed, marking packages as missing to prevent repeated requests: ${JSON.stringify(i)}`);for(const e of i)this.missingTypingsSet.add(e);return}this.log.isEnabled()&&this.log.writeLine(`Installed typings ${JSON.stringify(c)}`);const o=[];for(const e of i){const n=Cfe(t,e,this.installTypingHost,this.log);if(!n){this.missingTypingsSet.add(e);continue}const r=this.typesRegistry.get(e),i={typingLocation:n,version:new bn(r[`ts${a}`]||r[this.latestDistTag])};this.packageNameToTypingLocation.set(e,i),o.push(n)}this.log.isEnabled()&&this.log.writeLine(`Installed typing files ${JSON.stringify(o)}`),this.sendResponse(this.createSetTypings(e,n.concat(o)))}finally{const t={kind:YK,eventId:o,projectName:e.projectName,packagesToInstall:c,installSuccess:r,typingsInstallerVersion:s};this.sendResponse(t)}})}ensureDirectoryExists(e,t){const n=Do(e);t.directoryExists(n)||this.ensureDirectoryExists(n,t),t.directoryExists(e)||t.createDirectory(e)}watchFiles(e,t){if(!t.length)return void this.closeWatchers(e);const n=this.projectWatchers.get(e),r=new Set(t);!n||id(r,e=>!n.has(e))||id(n,e=>!r.has(e))?(this.projectWatchers.set(e,r),this.sendResponse({kind:eG,projectName:e,files:t})):this.sendResponse({kind:eG,projectName:e,files:void 0})}createSetTypings(e,t){return{projectName:e.projectName,typeAcquisition:e.typeAcquisition,compilerOptions:e.compilerOptions,typings:t,unresolvedImports:e.unresolvedImports,kind:HK}}installTypingsAsync(e,t,n,r){this.pendingRunRequests.unshift({requestId:e,packageNames:t,cwd:n,onRequestCompleted:r}),this.executeWithThrottling()}executeWithThrottling(){for(;this.inFlightRequestCount{this.inFlightRequestCount--,e.onRequestCompleted(t),this.executeWithThrottling()})}}};function Ffe(e){return`@types/${e}@ts${a}`}var Efe,Pfe,Afe=(e=>(e[e.terse=0]="terse",e[e.normal=1]="normal",e[e.requestTime=2]="requestTime",e[e.verbose=3]="verbose",e))(Afe||{}),Ife=[],Ofe=(e=>(e.Err="Err",e.Info="Info",e.Perf="Perf",e))(Ofe||{});function Lfe(e,t,n,r){return{projectName:e.getProjectName(),fileNames:e.getFileNames(!0,!0).concat(e.getExcludedFiles()),compilerOptions:e.getCompilationSettings(),typeAcquisition:t,unresolvedImports:n,projectRootPath:e.getCurrentDirectory(),cachePath:r,kind:"discover"}}function jfe(e){return Jo(e)}function Mfe(e,t,n){return n(go(e)?e:Bo(e,t))}function Rfe(e){return e}function Bfe(){const e=new Map;return{get:t=>e.get(t),set(t,n){e.set(t,n)},contains:t=>e.has(t),remove(t){e.delete(t)}}}function Jfe(e){return/dev\/null\/inferredProject\d+\*/.test(e)}function zfe(e){return`/dev/null/inferredProject${e}*`}function qfe(e){return`/dev/null/autoImportProviderProject${e}*`}function Ufe(e){return`/dev/null/auxiliaryProject${e}*`}function Vfe(){return[]}(Pfe=Efe||(Efe={})).ThrowNoProject=function(){throw new Error("No Project.")},Pfe.ThrowProjectLanguageServiceDisabled=function(){throw new Error("The project's language service is disabled.")},Pfe.ThrowProjectDoesNotContainDocument=function(e,t){throw new Error(`Project '${t.getProjectName()}' does not contain document '${e}'`)};var Wfe=class e{constructor(e,t){this.host=e,this.pendingTimeouts=new Map,this.logger=t.hasLevel(3)?t:void 0}schedule(t,n,r){const i=this.pendingTimeouts.get(t);i&&this.host.clearTimeout(i),this.pendingTimeouts.set(t,this.host.setTimeout(e.run,n,t,this,r)),this.logger&&this.logger.info(`Scheduled: ${t}${i?", Cancelled earlier one":""}`)}cancel(e){const t=this.pendingTimeouts.get(e);return!!t&&(this.host.clearTimeout(t),this.pendingTimeouts.delete(e))}static run(e,t,n){t.pendingTimeouts.delete(e),t.logger&&t.logger.info(`Running: ${e}`),n()}},$fe=class e{constructor(e,t,n){this.host=e,this.delay=t,this.logger=n}scheduleCollect(){this.host.gc&&void 0===this.timerId&&(this.timerId=this.host.setTimeout(e.run,this.delay,this))}static run(e){e.timerId=void 0;const t=e.logger.hasLevel(2),n=t&&e.host.getMemoryUsage();if(e.host.gc(),t){const t=e.host.getMemoryUsage();e.logger.perftrc(`GC::before ${n}, after ${t}`)}}};function Hfe(e){const t=Fo(e);return"tsconfig.json"===t||"jsconfig.json"===t?t:void 0}var Kfe={};i(Kfe,{ClassificationType:()=>zG,CommandTypes:()=>Gfe,CompletionTriggerKind:()=>CG,IndentStyle:()=>Zfe,JsxEmit:()=>eme,ModuleKind:()=>tme,ModuleResolutionKind:()=>nme,NewLineKind:()=>rme,OrganizeImportsMode:()=>TG,PollingWatchKind:()=>Yfe,ScriptTarget:()=>ime,SemicolonPreference:()=>FG,WatchDirectoryKind:()=>Qfe,WatchFileKind:()=>Xfe});var Gfe=(e=>(e.JsxClosingTag="jsxClosingTag",e.LinkedEditingRange="linkedEditingRange",e.Brace="brace",e.BraceFull="brace-full",e.BraceCompletion="braceCompletion",e.GetSpanOfEnclosingComment="getSpanOfEnclosingComment",e.Change="change",e.Close="close",e.Completions="completions",e.CompletionInfo="completionInfo",e.CompletionsFull="completions-full",e.CompletionDetails="completionEntryDetails",e.CompletionDetailsFull="completionEntryDetails-full",e.CompileOnSaveAffectedFileList="compileOnSaveAffectedFileList",e.CompileOnSaveEmitFile="compileOnSaveEmitFile",e.Configure="configure",e.Definition="definition",e.DefinitionFull="definition-full",e.DefinitionAndBoundSpan="definitionAndBoundSpan",e.DefinitionAndBoundSpanFull="definitionAndBoundSpan-full",e.Implementation="implementation",e.ImplementationFull="implementation-full",e.EmitOutput="emit-output",e.Exit="exit",e.FileReferences="fileReferences",e.FileReferencesFull="fileReferences-full",e.Format="format",e.Formatonkey="formatonkey",e.FormatFull="format-full",e.FormatonkeyFull="formatonkey-full",e.FormatRangeFull="formatRange-full",e.Geterr="geterr",e.GeterrForProject="geterrForProject",e.SemanticDiagnosticsSync="semanticDiagnosticsSync",e.SyntacticDiagnosticsSync="syntacticDiagnosticsSync",e.SuggestionDiagnosticsSync="suggestionDiagnosticsSync",e.NavBar="navbar",e.NavBarFull="navbar-full",e.Navto="navto",e.NavtoFull="navto-full",e.NavTree="navtree",e.NavTreeFull="navtree-full",e.DocumentHighlights="documentHighlights",e.DocumentHighlightsFull="documentHighlights-full",e.Open="open",e.Quickinfo="quickinfo",e.QuickinfoFull="quickinfo-full",e.References="references",e.ReferencesFull="references-full",e.Reload="reload",e.Rename="rename",e.RenameInfoFull="rename-full",e.RenameLocationsFull="renameLocations-full",e.Saveto="saveto",e.SignatureHelp="signatureHelp",e.SignatureHelpFull="signatureHelp-full",e.FindSourceDefinition="findSourceDefinition",e.Status="status",e.TypeDefinition="typeDefinition",e.ProjectInfo="projectInfo",e.ReloadProjects="reloadProjects",e.Unknown="unknown",e.OpenExternalProject="openExternalProject",e.OpenExternalProjects="openExternalProjects",e.CloseExternalProject="closeExternalProject",e.SynchronizeProjectList="synchronizeProjectList",e.ApplyChangedToOpenFiles="applyChangedToOpenFiles",e.UpdateOpen="updateOpen",e.EncodedSyntacticClassificationsFull="encodedSyntacticClassifications-full",e.EncodedSemanticClassificationsFull="encodedSemanticClassifications-full",e.Cleanup="cleanup",e.GetOutliningSpans="getOutliningSpans",e.GetOutliningSpansFull="outliningSpans",e.TodoComments="todoComments",e.Indentation="indentation",e.DocCommentTemplate="docCommentTemplate",e.CompilerOptionsDiagnosticsFull="compilerOptionsDiagnostics-full",e.NameOrDottedNameSpan="nameOrDottedNameSpan",e.BreakpointStatement="breakpointStatement",e.CompilerOptionsForInferredProjects="compilerOptionsForInferredProjects",e.GetCodeFixes="getCodeFixes",e.GetCodeFixesFull="getCodeFixes-full",e.GetCombinedCodeFix="getCombinedCodeFix",e.GetCombinedCodeFixFull="getCombinedCodeFix-full",e.ApplyCodeActionCommand="applyCodeActionCommand",e.GetSupportedCodeFixes="getSupportedCodeFixes",e.GetApplicableRefactors="getApplicableRefactors",e.GetEditsForRefactor="getEditsForRefactor",e.GetMoveToRefactoringFileSuggestions="getMoveToRefactoringFileSuggestions",e.PreparePasteEdits="preparePasteEdits",e.GetPasteEdits="getPasteEdits",e.GetEditsForRefactorFull="getEditsForRefactor-full",e.OrganizeImports="organizeImports",e.OrganizeImportsFull="organizeImports-full",e.GetEditsForFileRename="getEditsForFileRename",e.GetEditsForFileRenameFull="getEditsForFileRename-full",e.ConfigurePlugin="configurePlugin",e.SelectionRange="selectionRange",e.SelectionRangeFull="selectionRange-full",e.ToggleLineComment="toggleLineComment",e.ToggleLineCommentFull="toggleLineComment-full",e.ToggleMultilineComment="toggleMultilineComment",e.ToggleMultilineCommentFull="toggleMultilineComment-full",e.CommentSelection="commentSelection",e.CommentSelectionFull="commentSelection-full",e.UncommentSelection="uncommentSelection",e.UncommentSelectionFull="uncommentSelection-full",e.PrepareCallHierarchy="prepareCallHierarchy",e.ProvideCallHierarchyIncomingCalls="provideCallHierarchyIncomingCalls",e.ProvideCallHierarchyOutgoingCalls="provideCallHierarchyOutgoingCalls",e.ProvideInlayHints="provideInlayHints",e.WatchChange="watchChange",e.MapCode="mapCode",e.CopilotRelated="copilotRelated",e))(Gfe||{}),Xfe=(e=>(e.FixedPollingInterval="FixedPollingInterval",e.PriorityPollingInterval="PriorityPollingInterval",e.DynamicPriorityPolling="DynamicPriorityPolling",e.FixedChunkSizePolling="FixedChunkSizePolling",e.UseFsEvents="UseFsEvents",e.UseFsEventsOnParentDirectory="UseFsEventsOnParentDirectory",e))(Xfe||{}),Qfe=(e=>(e.UseFsEvents="UseFsEvents",e.FixedPollingInterval="FixedPollingInterval",e.DynamicPriorityPolling="DynamicPriorityPolling",e.FixedChunkSizePolling="FixedChunkSizePolling",e))(Qfe||{}),Yfe=(e=>(e.FixedInterval="FixedInterval",e.PriorityInterval="PriorityInterval",e.DynamicPriority="DynamicPriority",e.FixedChunkSize="FixedChunkSize",e))(Yfe||{}),Zfe=(e=>(e.None="None",e.Block="Block",e.Smart="Smart",e))(Zfe||{}),eme=(e=>(e.None="none",e.Preserve="preserve",e.ReactNative="react-native",e.React="react",e.ReactJSX="react-jsx",e.ReactJSXDev="react-jsxdev",e))(eme||{}),tme=(e=>(e.None="none",e.CommonJS="commonjs",e.AMD="amd",e.UMD="umd",e.System="system",e.ES6="es6",e.ES2015="es2015",e.ES2020="es2020",e.ES2022="es2022",e.ESNext="esnext",e.Node16="node16",e.Node18="node18",e.Node20="node20",e.NodeNext="nodenext",e.Preserve="preserve",e))(tme||{}),nme=(e=>(e.Classic="classic",e.Node="node",e.NodeJs="node",e.Node10="node10",e.Node16="node16",e.NodeNext="nodenext",e.Bundler="bundler",e))(nme||{}),rme=(e=>(e.Crlf="Crlf",e.Lf="Lf",e))(rme||{}),ime=(e=>(e.ES3="es3",e.ES5="es5",e.ES6="es6",e.ES2015="es2015",e.ES2016="es2016",e.ES2017="es2017",e.ES2018="es2018",e.ES2019="es2019",e.ES2020="es2020",e.ES2021="es2021",e.ES2022="es2022",e.ES2023="es2023",e.ES2024="es2024",e.ESNext="esnext",e.JSON="json",e.Latest="esnext",e))(ime||{}),ome=class{constructor(e,t,n){this.host=e,this.info=t,this.isOpen=!1,this.ownFileText=!1,this.pendingReloadFromDisk=!1,this.version=n||0}getVersion(){return this.svc?`SVC-${this.version}-${this.svc.getSnapshotVersion()}`:`Text-${this.version}`}hasScriptVersionCache_TestOnly(){return void 0!==this.svc}resetSourceMapInfo(){this.info.sourceFileLike=void 0,this.info.closeSourceMapFileWatcher(),this.info.sourceMapFilePath=void 0,this.info.declarationInfoPath=void 0,this.info.sourceInfos=void 0,this.info.documentPositionMapper=void 0}useText(e){this.svc=void 0,this.text=e,this.textSnapshot=void 0,this.lineMap=void 0,this.fileSize=void 0,this.resetSourceMapInfo(),this.version++}edit(e,t,n){this.switchToScriptVersionCache().edit(e,t-e,n),this.ownFileText=!1,this.text=void 0,this.textSnapshot=void 0,this.lineMap=void 0,this.fileSize=void 0,this.resetSourceMapInfo()}reload(e){return un.assert(void 0!==e),this.pendingReloadFromDisk=!1,!this.text&&this.svc&&(this.text=zQ(this.svc.getSnapshot())),this.text!==e&&(this.useText(e),this.ownFileText=!1,!0)}reloadWithFileText(e){const{text:t,fileSize:n}=e||!this.info.isDynamicOrHasMixedContent()?this.getFileTextAndSize(e):{text:"",fileSize:void 0},r=this.reload(t);return this.fileSize=n,this.ownFileText=!e||e===this.info.fileName,this.ownFileText&&this.info.mTime===zi.getTime()&&(this.info.mTime=(this.host.getModifiedTime(this.info.fileName)||zi).getTime()),r}scheduleReloadIfNeeded(){return!this.pendingReloadFromDisk&&!this.ownFileText&&(this.pendingReloadFromDisk=!0)}delayReloadFromFileIntoText(){this.pendingReloadFromDisk=!0}getTelemetryFileSize(){return this.fileSize?this.fileSize:this.text?this.text.length:this.svc?this.svc.getSnapshot().getLength():this.getSnapshot().getLength()}getSnapshot(){var e;return(null==(e=this.tryUseScriptVersionCache())?void 0:e.getSnapshot())||(this.textSnapshot??(this.textSnapshot=dG.fromString(un.checkDefined(this.text))))}getAbsolutePositionAndLineText(e){const t=this.tryUseScriptVersionCache();if(t)return t.getAbsolutePositionAndLineText(e);const n=this.getLineMap();return e<=n.length?{absolutePosition:n[e-1],lineText:this.text.substring(n[e-1],n[e])}:{absolutePosition:this.text.length,lineText:void 0}}lineToTextSpan(e){const t=this.tryUseScriptVersionCache();if(t)return t.lineToTextSpan(e);const n=this.getLineMap();return $s(n[e],e+1void 0===t?t=this.host.readFile(n)||"":t;if(!LS(this.info.fileName)){const e=this.host.getFileSize?this.host.getFileSize(n):r().length;if(e>Eme)return un.assert(!!this.info.containingProjects.length),this.info.containingProjects[0].projectService.logger.info(`Skipped loading contents of large file ${n} for info ${this.info.fileName}: fileSize: ${e}`),this.info.containingProjects[0].projectService.sendLargeFileReferencedEvent(n,e),{text:"",fileSize:e}}return{text:r()}}switchToScriptVersionCache(){return this.svc&&!this.pendingReloadFromDisk||(this.svc=ghe.fromString(this.getOrLoadText()),this.textSnapshot=void 0,this.version++),this.svc}tryUseScriptVersionCache(){return this.svc&&!this.pendingReloadFromDisk||this.getOrLoadText(),this.isOpen?(this.svc||this.textSnapshot||(this.svc=ghe.fromString(un.checkDefined(this.text)),this.textSnapshot=void 0),this.svc):this.svc}getOrLoadText(){return(void 0===this.text||this.pendingReloadFromDisk)&&(un.assert(!this.svc||this.pendingReloadFromDisk,"ScriptVersionCache should not be set when reloading from disk"),this.reloadWithFileText()),this.text}getLineMap(){return un.assert(!this.svc,"ScriptVersionCache should not be set"),this.lineMap||(this.lineMap=Oa(un.checkDefined(this.text)))}getLineInfo(){const e=this.tryUseScriptVersionCache();if(e)return{getLineCount:()=>e.getLineCount(),getLineText:t=>e.getAbsolutePositionAndLineText(t+1).lineText};const t=this.getLineMap();return wJ(this.text,t)}};function ame(e){return"^"===e[0]||(e.includes("walkThroughSnippet:/")||e.includes("untitled:/"))&&"^"===Fo(e)[0]||e.includes(":^")&&!e.includes(lo)}var sme=class{constructor(e,t,n,r,i,o){this.host=e,this.fileName=t,this.scriptKind=n,this.hasMixedContent=r,this.path=i,this.containingProjects=[],this.isDynamic=ame(t),this.textStorage=new ome(e,this,o),(r||this.isDynamic)&&(this.realpath=this.path),this.scriptKind=n||xS(t)}isDynamicOrHasMixedContent(){return this.hasMixedContent||this.isDynamic}isScriptOpen(){return this.textStorage.isOpen}open(e){this.textStorage.isOpen=!0,void 0!==e&&this.textStorage.reload(e)&&this.markContainingProjectsAsDirty()}close(e=!0){this.textStorage.isOpen=!1,e&&this.textStorage.scheduleReloadIfNeeded()&&this.markContainingProjectsAsDirty()}getSnapshot(){return this.textStorage.getSnapshot()}ensureRealPath(){if(void 0===this.realpath&&(this.realpath=this.path,this.host.realpath)){un.assert(!!this.containingProjects.length);const e=this.containingProjects[0],t=this.host.realpath(this.path);t&&(this.realpath=e.toPath(t),this.realpath!==this.path&&e.projectService.realpathToScriptInfos.add(this.realpath,this))}}getRealpathIfDifferent(){return this.realpath&&this.realpath!==this.path?this.realpath:void 0}isSymlink(){return this.realpath&&this.realpath!==this.path}getFormatCodeSettings(){return this.formatSettings}getPreferences(){return this.preferences}attachToProject(e){const t=!this.isAttached(e);return t&&(this.containingProjects.push(e),e.getCompilerOptions().preserveSymlinks||this.ensureRealPath(),e.onFileAddedOrRemoved(this.isSymlink())),t}isAttached(e){switch(this.containingProjects.length){case 0:return!1;case 1:return this.containingProjects[0]===e;case 2:return this.containingProjects[0]===e||this.containingProjects[1]===e;default:return T(this.containingProjects,e)}}detachFromProject(e){switch(this.containingProjects.length){case 0:return;case 1:this.containingProjects[0]===e&&(e.onFileAddedOrRemoved(this.isSymlink()),this.containingProjects.pop());break;case 2:this.containingProjects[0]===e?(e.onFileAddedOrRemoved(this.isSymlink()),this.containingProjects[0]=this.containingProjects.pop()):this.containingProjects[1]===e&&(e.onFileAddedOrRemoved(this.isSymlink()),this.containingProjects.pop());break;default:zt(this.containingProjects,e)&&e.onFileAddedOrRemoved(this.isSymlink())}}detachAllProjects(){for(const e of this.containingProjects){Cme(e)&&e.getCachedDirectoryStructureHost().addOrDeleteFile(this.fileName,this.path,2);const t=e.getRootFilesMap().get(this.path);e.removeFile(this,!1,!1),e.onFileAddedOrRemoved(this.isSymlink()),t&&!Tme(e)&&e.addMissingFileRoot(t.fileName)}F(this.containingProjects)}getDefaultProject(){switch(this.containingProjects.length){case 0:return Efe.ThrowNoProject();case 1:return Dme(this.containingProjects[0])||Nme(this.containingProjects[0])?Efe.ThrowNoProject():this.containingProjects[0];default:let e,t,n,r;for(let i=0;i!e.isOrphan())}lineToTextSpan(e){return this.textStorage.lineToTextSpan(e)}lineOffsetToPosition(e,t,n){return this.textStorage.lineOffsetToPosition(e,t,n)}positionToLineOffset(e){!function(e){un.assert("number"==typeof e,`Expected position ${e} to be a number.`),un.assert(e>=0,"Expected position to be non-negative.")}(e);const t=this.textStorage.positionToLineOffset(e);return function(e){un.assert("number"==typeof e.line,`Expected line ${e.line} to be a number.`),un.assert("number"==typeof e.offset,`Expected offset ${e.offset} to be a number.`),un.assert(e.line>0,"Expected line to be non-"+(0===e.line?"zero":"negative")),un.assert(e.offset>0,"Expected offset to be non-"+(0===e.offset?"zero":"negative"))}(t),t}isJavaScript(){return 1===this.scriptKind||2===this.scriptKind}closeSourceMapFileWatcher(){this.sourceMapFilePath&&!Ze(this.sourceMapFilePath)&&(RU(this.sourceMapFilePath),this.sourceMapFilePath=void 0)}};function cme(e){return $(e.containingProjects,Nme)}function lme(e){return $(e.containingProjects,Dme)}var _me=(e=>(e[e.Inferred=0]="Inferred",e[e.Configured=1]="Configured",e[e.External=2]="External",e[e.AutoImportProvider=3]="AutoImportProvider",e[e.Auxiliary=4]="Auxiliary",e))(_me||{});function ume(e,t=!1){const n={js:0,jsSize:0,jsx:0,jsxSize:0,ts:0,tsSize:0,tsx:0,tsxSize:0,dts:0,dtsSize:0,deferred:0,deferredSize:0};for(const r of e){const e=t?r.textStorage.getTelemetryFileSize():0;switch(r.scriptKind){case 1:n.js+=1,n.jsSize+=e;break;case 2:n.jsx+=1,n.jsxSize+=e;break;case 3:uO(r.fileName)?(n.dts+=1,n.dtsSize+=e):(n.ts+=1,n.tsSize+=e);break;case 4:n.tsx+=1,n.tsxSize+=e;break;case 7:n.deferred+=1,n.deferredSize+=e}}return n}function dme(e){const t=ume(e.getRootScriptInfos());return 0===t.ts&&0===t.tsx}function pme(e){const t=ume(e.getScriptInfos());return 0===t.ts&&0===t.tsx}function fme(e){return!e.some(e=>ko(e,".ts")&&!uO(e)||ko(e,".tsx"))}function mme(e){return void 0!==e.generatedFilePath}function gme(e,t){if(e===t)return!0;if(0===(e||Ife).length&&0===(t||Ife).length)return!0;const n=new Map;let r=0;for(const t of e)!0!==n.get(t)&&(n.set(t,!0),r++);for(const e of t){const t=n.get(e);if(void 0===t)return!1;!0===t&&(n.set(e,!1),r--)}return 0===r}var hme=class e{constructor(e,t,n,r,i,o,a,s,c,l){switch(this.projectKind=t,this.projectService=n,this.compilerOptions=o,this.compileOnSaveEnabled=a,this.watchOptions=s,this.rootFilesMap=new Map,this.plugins=[],this.cachedUnresolvedImportsPerFile=new Map,this.hasAddedorRemovedFiles=!1,this.hasAddedOrRemovedSymlinks=!1,this.lastReportedVersion=0,this.projectProgramVersion=0,this.projectStateVersion=0,this.initialLoadPending=!1,this.dirty=!1,this.typingFiles=Ife,this.moduleSpecifierCache=Age(this),this.createHash=We(this.projectService.host,this.projectService.host.createHash),this.globalCacheResolutionModuleName=VK.nonRelativeModuleNameForTypingCache,this.updateFromProjectInProgress=!1,n.logger.info(`Creating ${_me[t]}Project: ${e}, currentDirectory: ${l}`),this.projectName=e,this.directoryStructureHost=c,this.currentDirectory=this.projectService.getNormalizedAbsolutePath(l),this.getCanonicalFileName=this.projectService.toCanonicalFileName,this.jsDocParsingMode=this.projectService.jsDocParsingMode,this.cancellationToken=new H8(this.projectService.cancellationToken,this.projectService.throttleWaitMilliseconds),this.compilerOptions?(r||Ak(this.compilerOptions)||this.projectService.hasDeferredExtension())&&(this.compilerOptions.allowNonTsExtensions=!0):(this.compilerOptions={target:1,jsx:1},this.compilerOptions.allowNonTsExtensions=!0,this.compilerOptions.allowJs=!0),n.serverMode){case 0:this.languageServiceEnabled=!0;break;case 1:this.languageServiceEnabled=!0,this.compilerOptions.noResolve=!0,this.compilerOptions.types=[];break;case 2:this.languageServiceEnabled=!1,this.compilerOptions.noResolve=!0,this.compilerOptions.types=[];break;default:un.assertNever(n.serverMode)}this.setInternalCompilerOptionsForEmittingJsFiles();const _=this.projectService.host;this.projectService.logger.loggingEnabled()?this.trace=e=>this.writeLog(e):_.trace&&(this.trace=e=>_.trace(e)),this.realpath=We(_,_.realpath),this.preferNonRecursiveWatch=this.projectService.canUseWatchEvents||_.preferNonRecursiveWatch,this.resolutionCache=r$(this,this.currentDirectory,!0),this.languageService=X8(this,this.projectService.documentRegistry,this.projectService.serverMode),i&&this.disableLanguageService(i),this.markAsDirty(),Nme(this)||(this.projectService.pendingEnsureProjectForOpenFiles=!0),this.projectService.onProjectCreation(this)}getRedirectFromSourceFile(e){}isNonTsProject(){return vge(this),pme(this)}isJsOnlyProject(){return vge(this),function(e){const t=ume(e.getScriptInfos());return t.js>0&&0===t.ts&&0===t.tsx}(this)}static resolveModule(t,n,r,i){return e.importServicePluginSync({name:t},[n],r,i).resolvedModule}static importServicePluginSync(e,t,n,r){let i,o;un.assertIsDefined(n.require);for(const a of t){const t=Oo(n.resolvePath(jo(a,"node_modules")));r(`Loading ${e.name} from ${a} (resolved to ${t})`);const s=n.require(t,e.name);if(!s.error){o=s.module;break}const c=s.error.stack||s.error.message||JSON.stringify(s.error);(i??(i=[])).push(`Failed to load module '${e.name}' from ${t}: ${c}`)}return{pluginConfigEntry:e,resolvedModule:o,errorLogs:i}}static async importServicePluginAsync(e,t,n,r){let i,o;un.assertIsDefined(n.importPlugin);for(const a of t){const t=jo(a,"node_modules");let s;r(`Dynamically importing ${e.name} from ${a} (resolved to ${t})`);try{s=await n.importPlugin(t,e.name)}catch(e){s={module:void 0,error:e}}if(!s.error){o=s.module;break}const c=s.error.stack||s.error.message||JSON.stringify(s.error);(i??(i=[])).push(`Failed to dynamically import module '${e.name}' from ${t}: ${c}`)}return{pluginConfigEntry:e,resolvedModule:o,errorLogs:i}}isKnownTypesPackageName(e){return this.projectService.typingsInstaller.isKnownTypesPackageName(e)}installPackage(e){return this.projectService.typingsInstaller.installPackage({...e,projectName:this.projectName,projectRootPath:this.toPath(this.currentDirectory)})}getGlobalTypingsCacheLocation(){return this.getTypeAcquisition().enable?this.projectService.typingsInstaller.globalTypingsCacheLocation:void 0}getSymlinkCache(){return this.symlinks||(this.symlinks=Qk(this.getCurrentDirectory(),this.getCanonicalFileName)),this.program&&!this.symlinks.hasProcessedResolutions()&&this.symlinks.setSymlinksFromResolutions(this.program.forEachResolvedModule,this.program.forEachResolvedTypeReferenceDirective,this.program.getAutomaticTypeDirectiveResolutions()),this.symlinks}getCompilationSettings(){return this.compilerOptions}getCompilerOptions(){return this.getCompilationSettings()}getNewLine(){return this.projectService.host.newLine}getProjectVersion(){return this.projectStateVersion.toString()}getProjectReferences(){}getScriptFileNames(){if(!this.rootFilesMap.size)return l;let e;return this.rootFilesMap.forEach(t=>{(this.languageServiceEnabled||t.info&&t.info.isScriptOpen())&&(e||(e=[])).push(t.fileName)}),se(e,this.typingFiles)||l}getOrCreateScriptInfoAndAttachToProject(e){const t=this.projectService.getOrCreateScriptInfoNotOpenedByClient(e,this.currentDirectory,this.directoryStructureHost,!1);if(t){const e=this.rootFilesMap.get(t.path);e&&e.info!==t&&(e.info=t),t.attachToProject(this)}return t}getScriptKind(e){const t=this.projectService.getScriptInfoForPath(this.toPath(e));return t&&t.scriptKind}getScriptVersion(e){const t=this.projectService.getOrCreateScriptInfoNotOpenedByClient(e,this.currentDirectory,this.directoryStructureHost,!1);return t&&t.getLatestVersion()}getScriptSnapshot(e){const t=this.getOrCreateScriptInfoAndAttachToProject(e);if(t)return t.getSnapshot()}getCancellationToken(){return this.cancellationToken}getCurrentDirectory(){return this.currentDirectory}getDefaultLibFileName(){return jo(Do(Jo(this.projectService.getExecutingFilePath())),Ds(this.compilerOptions))}useCaseSensitiveFileNames(){return this.projectService.host.useCaseSensitiveFileNames}readDirectory(e,t,n,r,i){return this.directoryStructureHost.readDirectory(e,t,n,r,i)}readFile(e){return this.projectService.host.readFile(e)}writeFile(e,t){return this.projectService.host.writeFile(e,t)}fileExists(e){const t=this.toPath(e);return!!this.projectService.getScriptInfoForPath(t)||!this.isWatchedMissingFile(t)&&this.directoryStructureHost.fileExists(e)}resolveModuleNameLiterals(e,t,n,r,i,o){return this.resolutionCache.resolveModuleNameLiterals(e,t,n,r,i,o)}getModuleResolutionCache(){return this.resolutionCache.getModuleResolutionCache()}resolveTypeReferenceDirectiveReferences(e,t,n,r,i,o){return this.resolutionCache.resolveTypeReferenceDirectiveReferences(e,t,n,r,i,o)}resolveLibrary(e,t,n,r){return this.resolutionCache.resolveLibrary(e,t,n,r)}directoryExists(e){return this.directoryStructureHost.directoryExists(e)}getDirectories(e){return this.directoryStructureHost.getDirectories(e)}getCachedDirectoryStructureHost(){}toPath(e){return Uo(e,this.currentDirectory,this.projectService.toCanonicalFileName)}watchDirectoryOfFailedLookupLocation(e,t,n){return this.projectService.watchFactory.watchDirectory(e,t,n,this.projectService.getWatchOptions(this),F$.FailedLookupLocations,this)}watchAffectingFileLocation(e,t){return this.projectService.watchFactory.watchFile(e,t,2e3,this.projectService.getWatchOptions(this),F$.AffectingFileLocation,this)}clearInvalidateResolutionOfFailedLookupTimer(){return this.projectService.throttledOperations.cancel(`${this.getProjectName()}FailedLookupInvalidation`)}scheduleInvalidateResolutionsOfFailedLookupLocations(){this.projectService.throttledOperations.schedule(`${this.getProjectName()}FailedLookupInvalidation`,1e3,()=>{this.resolutionCache.invalidateResolutionsOfFailedLookupLocations()&&this.projectService.delayUpdateProjectGraphAndEnsureProjectStructureForOpenFiles(this)})}invalidateResolutionsOfFailedLookupLocations(){this.clearInvalidateResolutionOfFailedLookupTimer()&&this.resolutionCache.invalidateResolutionsOfFailedLookupLocations()&&(this.markAsDirty(),this.projectService.delayEnsureProjectForOpenFiles())}onInvalidatedResolution(){this.projectService.delayUpdateProjectGraphAndEnsureProjectStructureForOpenFiles(this)}watchTypeRootsDirectory(e,t,n){return this.projectService.watchFactory.watchDirectory(e,t,n,this.projectService.getWatchOptions(this),F$.TypeRoots,this)}hasChangedAutomaticTypeDirectiveNames(){return this.resolutionCache.hasChangedAutomaticTypeDirectiveNames()}onChangedAutomaticTypeDirectiveNames(){this.projectService.delayUpdateProjectGraphAndEnsureProjectStructureForOpenFiles(this)}fileIsOpen(e){return this.projectService.openFiles.has(e)}writeLog(e){this.projectService.logger.info(e)}log(e){this.writeLog(e)}error(e){this.projectService.logger.msg(e,"Err")}setInternalCompilerOptionsForEmittingJsFiles(){0!==this.projectKind&&2!==this.projectKind||(this.compilerOptions.noEmitForJsFiles=!0)}getGlobalProjectErrors(){return N(this.projectErrors,e=>!e.file)||Ife}getAllProjectErrors(){return this.projectErrors||Ife}setProjectErrors(e){this.projectErrors=e}getLanguageService(e=!0){return e&&vge(this),this.languageService}getSourceMapper(){return this.getLanguageService().getSourceMapper()}clearSourceMapperCache(){this.languageService.clearSourceMapperCache()}getDocumentPositionMapper(e,t){return this.projectService.getDocumentPositionMapper(this,e,t)}getSourceFileLike(e){return this.projectService.getSourceFileLike(e,this)}shouldEmitFile(e){return e&&!e.isDynamicOrHasMixedContent()&&!this.program.isSourceOfProjectReferenceRedirect(e.path)}getCompileOnSaveAffectedFileList(e){return this.languageServiceEnabled?(vge(this),this.builderState=XV.create(this.program,this.builderState,!0),B(XV.getFilesAffectedBy(this.builderState,this.program,e.path,this.cancellationToken,this.projectService.host),e=>this.shouldEmitFile(this.projectService.getScriptInfoForPath(e.path))?e.fileName:void 0)):[]}emitFile(e,t){if(!this.languageServiceEnabled||!this.shouldEmitFile(e))return{emitSkipped:!0,diagnostics:Ife};const{emitSkipped:n,diagnostics:r,outputFiles:i}=this.getLanguageService().getEmitOutput(e.fileName);if(!n){for(const e of i)t(Bo(e.name,this.currentDirectory),e.text,e.writeByteOrderMark);if(this.builderState&&Dk(this.compilerOptions)){const t=i.filter(e=>uO(e.name));if(1===t.length){const n=this.program.getSourceFile(e.fileName),r=this.projectService.host.createHash?this.projectService.host.createHash(t[0].text):Mi(t[0].text);XV.updateSignatureOfFile(this.builderState,r,n.resolvedPath)}}}return{emitSkipped:n,diagnostics:r}}enableLanguageService(){this.languageServiceEnabled||2===this.projectService.serverMode||(this.languageServiceEnabled=!0,this.lastFileExceededProgramSize=void 0,this.projectService.onUpdateLanguageServiceStateForProject(this,!0))}cleanupProgram(){if(this.program){for(const e of this.program.getSourceFiles())this.detachScriptInfoIfNotRoot(e.fileName);this.program.forEachResolvedProjectReference(e=>this.detachScriptInfoFromProject(e.sourceFile.fileName)),this.program=void 0}}disableLanguageService(e){this.languageServiceEnabled&&(un.assert(2!==this.projectService.serverMode),this.languageService.cleanupSemanticCache(),this.languageServiceEnabled=!1,this.cleanupProgram(),this.lastFileExceededProgramSize=e,this.builderState=void 0,this.autoImportProviderHost&&this.autoImportProviderHost.close(),this.autoImportProviderHost=void 0,this.resolutionCache.closeTypeRootsWatch(),this.clearGeneratedFileWatch(),this.projectService.verifyDocumentRegistry(),this.projectService.onUpdateLanguageServiceStateForProject(this,!1))}getProjectName(){return this.projectName}removeLocalTypingsFromTypeAcquisition(e){return e.enable&&e.include?{...e,include:this.removeExistingTypings(e.include)}:e}getExternalFiles(e){return _e(O(this.plugins,t=>{if("function"==typeof t.module.getExternalFiles)try{return t.module.getExternalFiles(this,e||0)}catch(e){this.projectService.logger.info(`A plugin threw an exception in getExternalFiles: ${e}`),e.stack&&this.projectService.logger.info(e.stack)}}))}getSourceFile(e){if(this.program)return this.program.getSourceFileByPath(e)}getSourceFileOrConfigFile(e){const t=this.program.getCompilerOptions();return e===t.configFilePath?t.configFile:this.getSourceFile(e)}close(){var e;this.typingsCache&&this.projectService.typingsInstaller.onProjectClosed(this),this.typingsCache=void 0,this.closeWatchingTypingLocations(),this.cleanupProgram(),d(this.externalFiles,e=>this.detachScriptInfoIfNotRoot(e)),this.rootFilesMap.forEach(e=>{var t;return null==(t=e.info)?void 0:t.detachFromProject(this)}),this.projectService.pendingEnsureProjectForOpenFiles=!0,this.rootFilesMap=void 0,this.externalFiles=void 0,this.program=void 0,this.builderState=void 0,this.resolutionCache.clear(),this.resolutionCache=void 0,this.cachedUnresolvedImportsPerFile=void 0,null==(e=this.packageJsonWatches)||e.forEach(e=>{e.projects.delete(this),e.close()}),this.packageJsonWatches=void 0,this.moduleSpecifierCache.clear(),this.moduleSpecifierCache=void 0,this.directoryStructureHost=void 0,this.exportMapCache=void 0,this.projectErrors=void 0,this.plugins.length=0,this.missingFilesMap&&(ux(this.missingFilesMap,nx),this.missingFilesMap=void 0),this.clearGeneratedFileWatch(),this.clearInvalidateResolutionOfFailedLookupTimer(),this.autoImportProviderHost&&this.autoImportProviderHost.close(),this.autoImportProviderHost=void 0,this.noDtsResolutionProject&&this.noDtsResolutionProject.close(),this.noDtsResolutionProject=void 0,this.languageService.dispose(),this.languageService=void 0}detachScriptInfoIfNotRoot(e){const t=this.projectService.getScriptInfo(e);t&&!this.isRoot(t)&&t.detachFromProject(this)}isClosed(){return void 0===this.rootFilesMap}hasRoots(){var e;return!!(null==(e=this.rootFilesMap)?void 0:e.size)}isOrphan(){return!1}getRootFiles(){return this.rootFilesMap&&Oe(J(this.rootFilesMap.values(),e=>{var t;return null==(t=e.info)?void 0:t.fileName}))}getRootFilesMap(){return this.rootFilesMap}getRootScriptInfos(){return Oe(J(this.rootFilesMap.values(),e=>e.info))}getScriptInfos(){return this.languageServiceEnabled?E(this.program.getSourceFiles(),e=>{const t=this.projectService.getScriptInfoForPath(e.resolvedPath);return un.assert(!!t,"getScriptInfo",()=>`scriptInfo for a file '${e.fileName}' Path: '${e.path}' / '${e.resolvedPath}' is missing.`),t}):this.getRootScriptInfos()}getExcludedFiles(){return Ife}getFileNames(e,t){if(!this.program)return[];if(!this.languageServiceEnabled){let e=this.getRootFiles();if(this.compilerOptions){const t=e7(this.compilerOptions);t&&(e||(e=[])).push(t)}return e}const n=[];for(const t of this.program.getSourceFiles())e&&this.program.isSourceFileFromExternalLibrary(t)||n.push(Rfe(t.fileName));if(!t){const e=this.program.getCompilerOptions().configFile;if(e&&(n.push(e.fileName),e.extendedSourceFiles))for(const t of e.extendedSourceFiles)n.push(Rfe(t))}return n}getFileNamesWithRedirectInfo(e){return this.getFileNames().map(t=>({fileName:t,isSourceOfProjectReferenceRedirect:e&&this.isSourceOfProjectReferenceRedirect(t)}))}hasConfigFile(e){if(this.program&&this.languageServiceEnabled){const t=this.program.getCompilerOptions().configFile;if(t){if(e===t.fileName)return!0;if(t.extendedSourceFiles)for(const n of t.extendedSourceFiles)if(e===Rfe(n))return!0}}return!1}containsScriptInfo(e){if(this.isRoot(e))return!0;if(!this.program)return!1;const t=this.program.getSourceFileByPath(e.path);return!!t&&t.resolvedPath===e.path}containsFile(e,t){const n=this.projectService.getScriptInfoForNormalizedPath(e);return!(!n||!n.isScriptOpen()&&t)&&this.containsScriptInfo(n)}isRoot(e){var t,n;return(null==(n=null==(t=this.rootFilesMap)?void 0:t.get(e.path))?void 0:n.info)===e}addRoot(e,t){un.assert(!this.isRoot(e)),this.rootFilesMap.set(e.path,{fileName:t||e.fileName,info:e}),e.attachToProject(this),this.markAsDirty()}addMissingFileRoot(e){const t=this.projectService.toPath(e);this.rootFilesMap.set(t,{fileName:e}),this.markAsDirty()}removeFile(e,t,n){this.isRoot(e)&&this.removeRoot(e),t?this.resolutionCache.removeResolutionsOfFile(e.path):this.resolutionCache.invalidateResolutionOfFile(e.path),this.cachedUnresolvedImportsPerFile.delete(e.path),n&&e.detachFromProject(this),this.markAsDirty()}registerFileUpdate(e){(this.updatedFileNames||(this.updatedFileNames=new Set)).add(e)}markFileAsDirty(e){this.markAsDirty(),this.exportMapCache&&!this.exportMapCache.isEmpty()&&(this.changedFilesForExportMapCache||(this.changedFilesForExportMapCache=new Set)).add(e)}markAsDirty(){this.dirty||(this.projectStateVersion++,this.dirty=!0)}markAutoImportProviderAsDirty(){var e;this.autoImportProviderHost||(this.autoImportProviderHost=void 0),null==(e=this.autoImportProviderHost)||e.markAsDirty()}onAutoImportProviderSettingsChanged(){this.markAutoImportProviderAsDirty()}onPackageJsonChange(){this.moduleSpecifierCache.clear(),this.markAutoImportProviderAsDirty()}onFileAddedOrRemoved(e){this.hasAddedorRemovedFiles=!0,e&&(this.hasAddedOrRemovedSymlinks=!0)}onDiscoveredSymlink(){this.hasAddedOrRemovedSymlinks=!0}onReleaseOldSourceFile(e,t,n,r){(!r||e.resolvedPath===e.path&&r.resolvedPath!==e.path)&&this.detachScriptInfoFromProject(e.fileName,n)}updateFromProject(){vge(this)}updateGraph(){var e,t;null==(e=Hn)||e.push(Hn.Phase.Session,"updateGraph",{name:this.projectName,kind:_me[this.projectKind]}),this.resolutionCache.startRecordingFilesWithChangedResolutions();const n=this.updateGraphWorker(),r=this.hasAddedorRemovedFiles;this.hasAddedorRemovedFiles=!1,this.hasAddedOrRemovedSymlinks=!1;const i=this.resolutionCache.finishRecordingFilesWithChangedResolutions()||Ife;for(const e of i)this.cachedUnresolvedImportsPerFile.delete(e);this.languageServiceEnabled&&0===this.projectService.serverMode&&!this.isOrphan()?((n||i.length)&&(this.lastCachedUnresolvedImportsList=function(e,t){var n,r;const i=e.getSourceFiles();null==(n=Hn)||n.push(Hn.Phase.Session,"getUnresolvedImports",{count:i.length});const o=e.getTypeChecker().getAmbientModules().map(e=>Fy(e.getName())),a=ee(O(i,n=>function(e,t,n,r){return z(r,t.path,()=>{let r;return e.forEachResolvedModule(({resolvedModule:e},t)=>{e&&YS(e.extension)||Cs(t)||n.some(e=>e===t)||(r=ie(r,mR(t).packageName))},t),r||Ife})}(e,n,o,t)));return null==(r=Hn)||r.pop(),a}(this.program,this.cachedUnresolvedImportsPerFile)),this.enqueueInstallTypingsForProject(r)):this.lastCachedUnresolvedImportsList=void 0;const o=0===this.projectProgramVersion&&n;return n&&this.projectProgramVersion++,r&&this.markAutoImportProviderAsDirty(),o&&this.getPackageJsonAutoImportProvider(),null==(t=Hn)||t.pop(),!n}enqueueInstallTypingsForProject(e){const t=this.getTypeAcquisition();if(!t||!t.enable||this.projectService.typingsInstaller===ige)return;const n=this.typingsCache;var r,i,o,a;!e&&n&&(o=t,a=n.typeAcquisition,o.enable===a.enable&&gme(o.include,a.include)&&gme(o.exclude,a.exclude))&&!function(e,t){return Ak(e)!==Ak(t)}(this.getCompilationSettings(),n.compilerOptions)&&((r=this.lastCachedUnresolvedImportsList)===(i=n.unresolvedImports)||te(r,i))||(this.typingsCache={compilerOptions:this.getCompilationSettings(),typeAcquisition:t,unresolvedImports:this.lastCachedUnresolvedImportsList},this.projectService.typingsInstaller.enqueueInstallTypingsRequest(this,t,this.lastCachedUnresolvedImportsList))}updateTypingFiles(e,t,n,r){this.typingsCache={compilerOptions:e,typeAcquisition:t,unresolvedImports:n};const i=t&&t.enable?_e(r):Ife;on(i,this.typingFiles,wt(!this.useCaseSensitiveFileNames()),rt,e=>this.detachScriptInfoFromProject(e))&&(this.typingFiles=i,this.resolutionCache.setFilesWithInvalidatedNonRelativeUnresolvedImports(this.cachedUnresolvedImportsPerFile),this.projectService.delayUpdateProjectGraphAndEnsureProjectStructureForOpenFiles(this))}closeWatchingTypingLocations(){this.typingWatchers&&ux(this.typingWatchers,nx),this.typingWatchers=void 0}onTypingInstallerWatchInvoke(){this.typingWatchers.isInvoked=!0,this.projectService.updateTypingsForProject({projectName:this.getProjectName(),kind:KK})}watchTypingLocations(e){if(!e)return void(this.typingWatchers.isInvoked=!1);if(!e.length)return void this.closeWatchingTypingLocations();const t=new Map(this.typingWatchers);this.typingWatchers||(this.typingWatchers=new Map),this.typingWatchers.isInvoked=!1;const n=(e,n)=>{const r=this.toPath(e);if(t.delete(r),!this.typingWatchers.has(r)){const t="FileWatcher"===n?F$.TypingInstallerLocationFile:F$.TypingInstallerLocationDirectory;this.typingWatchers.set(r,WW(r)?"FileWatcher"===n?this.projectService.watchFactory.watchFile(e,()=>this.typingWatchers.isInvoked?this.writeLog("TypingWatchers already invoked"):this.onTypingInstallerWatchInvoke(),2e3,this.projectService.getWatchOptions(this),t,this):this.projectService.watchFactory.watchDirectory(e,e=>this.typingWatchers.isInvoked?this.writeLog("TypingWatchers already invoked"):ko(e,".json")?Zo(e,jo(this.projectService.typingsInstaller.globalTypingsCacheLocation,"package.json"),!this.useCaseSensitiveFileNames())?this.writeLog("Ignoring package.json change at global typings location"):void this.onTypingInstallerWatchInvoke():this.writeLog("Ignoring files that are not *.json"),1,this.projectService.getWatchOptions(this),t,this):(this.writeLog(`Skipping watcher creation at ${e}:: ${hge(t,this)}`),w$))}};for(const t of e){const e=Fo(t);if("package.json"!==e&&"bower.json"!==e){if(ea(this.currentDirectory,t,this.currentDirectory,!this.useCaseSensitiveFileNames())){const e=t.indexOf(lo,this.currentDirectory.length+1);n(-1!==e?t.substr(0,e):t,"DirectoryWatcher");continue}ea(this.projectService.typingsInstaller.globalTypingsCacheLocation,t,this.currentDirectory,!this.useCaseSensitiveFileNames())?n(this.projectService.typingsInstaller.globalTypingsCacheLocation,"DirectoryWatcher"):n(t,"DirectoryWatcher")}else n(t,"FileWatcher")}t.forEach((e,t)=>{e.close(),this.typingWatchers.delete(t)})}getCurrentProgram(){return this.program}removeExistingTypings(e){if(!e.length)return e;const t=bM(this.getCompilerOptions(),this);return N(e,e=>!t.includes(e))}updateGraphWorker(){var e,t;const n=this.languageService.getCurrentProgram();un.assert(n===this.program),un.assert(!this.isClosed(),"Called update graph worker of closed project"),this.writeLog(`Starting updateGraphWorker: Project: ${this.getProjectName()}`);const r=Un(),{hasInvalidatedResolutions:i,hasInvalidatedLibResolutions:o}=this.resolutionCache.createHasInvalidatedResolutions(it,it);this.hasInvalidatedResolutions=i,this.hasInvalidatedLibResolutions=o,this.resolutionCache.startCachingPerDirectoryResolution(),this.dirty=!1,this.updateFromProjectInProgress=!0,this.program=this.languageService.getProgram(),this.updateFromProjectInProgress=!1,null==(e=Hn)||e.push(Hn.Phase.Session,"finishCachingPerDirectoryResolution"),this.resolutionCache.finishCachingPerDirectoryResolution(this.program,n),null==(t=Hn)||t.pop(),un.assert(void 0===n||void 0!==this.program);let a=!1;if(this.program&&(!n||this.program!==n&&2!==this.program.structureIsReused)){if(a=!0,this.rootFilesMap.forEach((e,t)=>{var n;const r=this.program.getSourceFileByPath(t),i=e.info;r&&(null==(n=e.info)?void 0:n.path)!==r.resolvedPath&&(e.info=this.projectService.getScriptInfo(r.fileName),un.assert(e.info.isAttached(this)),null==i||i.detachFromProject(this))}),PU(this.program,this.missingFilesMap||(this.missingFilesMap=new Map),(e,t)=>this.addMissingFileWatcher(e,t)),this.generatedFilesMap){const e=this.compilerOptions.outFile;mme(this.generatedFilesMap)?e&&this.isValidGeneratedFileWatcher(US(e)+".d.ts",this.generatedFilesMap)||this.clearGeneratedFileWatch():e?this.clearGeneratedFileWatch():this.generatedFilesMap.forEach((e,t)=>{const n=this.program.getSourceFileByPath(t);n&&n.resolvedPath===t&&this.isValidGeneratedFileWatcher(Vy(n.fileName,this.compilerOptions,this.program),e)||(RU(e),this.generatedFilesMap.delete(t))})}this.languageServiceEnabled&&0===this.projectService.serverMode&&this.resolutionCache.updateTypeRootsWatch()}this.projectService.verifyProgram(this),this.exportMapCache&&!this.exportMapCache.isEmpty()&&(this.exportMapCache.releaseSymbols(),this.hasAddedorRemovedFiles||n&&!this.program.structureIsReused?this.exportMapCache.clear():this.changedFilesForExportMapCache&&n&&this.program&&id(this.changedFilesForExportMapCache,e=>{const t=n.getSourceFileByPath(e),r=this.program.getSourceFileByPath(e);return t&&r?this.exportMapCache.onFileChanged(t,r,!!this.getTypeAcquisition().enable):(this.exportMapCache.clear(),!0)})),this.changedFilesForExportMapCache&&this.changedFilesForExportMapCache.clear(),(this.hasAddedOrRemovedSymlinks||this.program&&!this.program.structureIsReused&&this.getCompilerOptions().preserveSymlinks)&&(this.symlinks=void 0,this.moduleSpecifierCache.clear());const s=this.externalFiles||Ife;this.externalFiles=this.getExternalFiles(),on(this.externalFiles,s,wt(!this.useCaseSensitiveFileNames()),e=>{const t=this.projectService.getOrCreateScriptInfoNotOpenedByClient(e,this.currentDirectory,this.directoryStructureHost,!1);null==t||t.attachToProject(this)},e=>this.detachScriptInfoFromProject(e));const c=Un()-r;return this.sendPerformanceEvent("UpdateGraph",c),this.writeLog(`Finishing updateGraphWorker: Project: ${this.getProjectName()} projectStateVersion: ${this.projectStateVersion} projectProgramVersion: ${this.projectProgramVersion} structureChanged: ${a}${this.program?` structureIsReused:: ${Fr[this.program.structureIsReused]}`:""} Elapsed: ${c}ms`),this.projectService.logger.isTestLogger?this.program!==n?this.print(!0,this.hasAddedorRemovedFiles,!0):this.writeLog("Same program as before"):this.hasAddedorRemovedFiles?this.print(!0,!0,!1):this.program!==n&&this.writeLog("Different program with same set of files"),this.projectService.verifyDocumentRegistry(),a}sendPerformanceEvent(e,t){this.projectService.sendPerformanceEvent(e,t)}detachScriptInfoFromProject(e,t){const n=this.projectService.getScriptInfo(e);n&&(n.detachFromProject(this),t||this.resolutionCache.removeResolutionsOfFile(n.path))}addMissingFileWatcher(e,t){var n;if(Cme(this)){const t=this.projectService.configFileExistenceInfoCache.get(e);if(null==(n=null==t?void 0:t.config)?void 0:n.projects.has(this.canonicalConfigFilePath))return w$}const r=this.projectService.watchFactory.watchFile(Bo(t,this.currentDirectory),(t,n)=>{Cme(this)&&this.getCachedDirectoryStructureHost().addOrDeleteFile(t,e,n),0===n&&this.missingFilesMap.has(e)&&(this.missingFilesMap.delete(e),r.close(),this.projectService.delayUpdateProjectGraphAndEnsureProjectStructureForOpenFiles(this))},500,this.projectService.getWatchOptions(this),F$.MissingFile,this);return r}isWatchedMissingFile(e){return!!this.missingFilesMap&&this.missingFilesMap.has(e)}addGeneratedFileWatch(e,t){if(this.compilerOptions.outFile)this.generatedFilesMap||(this.generatedFilesMap=this.createGeneratedFileWatcher(e));else{const n=this.toPath(t);if(this.generatedFilesMap){if(mme(this.generatedFilesMap))return void un.fail(`${this.projectName} Expected to not have --out watcher for generated file with options: ${JSON.stringify(this.compilerOptions)}`);if(this.generatedFilesMap.has(n))return}else this.generatedFilesMap=new Map;this.generatedFilesMap.set(n,this.createGeneratedFileWatcher(e))}}createGeneratedFileWatcher(e){return{generatedFilePath:this.toPath(e),watcher:this.projectService.watchFactory.watchFile(e,()=>{this.clearSourceMapperCache(),this.projectService.delayUpdateProjectGraphAndEnsureProjectStructureForOpenFiles(this)},2e3,this.projectService.getWatchOptions(this),F$.MissingGeneratedFile,this)}}isValidGeneratedFileWatcher(e,t){return this.toPath(e)===t.generatedFilePath}clearGeneratedFileWatch(){this.generatedFilesMap&&(mme(this.generatedFilesMap)?RU(this.generatedFilesMap):ux(this.generatedFilesMap,RU),this.generatedFilesMap=void 0)}getScriptInfoForNormalizedPath(e){const t=this.projectService.getScriptInfoForPath(this.toPath(e));return t&&!t.isAttached(this)?Efe.ThrowProjectDoesNotContainDocument(e,this):t}getScriptInfo(e){return this.projectService.getScriptInfo(e)}filesToString(e){return this.filesToStringWorker(e,!0,!1)}filesToStringWorker(e,t,n){if(this.initialLoadPending)return"\tFiles (0) InitialLoadPending\n";if(!this.program)return"\tFiles (0) NoProgram\n";const r=this.program.getSourceFiles();let i=`\tFiles (${r.length})\n`;if(e){for(const e of r)i+=`\t${e.fileName}${n?` ${e.version} ${JSON.stringify(e.text)}`:""}\n`;t&&(i+="\n\n",y$(this.program,e=>i+=`\t${e}\n`))}return i}print(e,t,n){var r;this.writeLog(`Project '${this.projectName}' (${_me[this.projectKind]})`),this.writeLog(this.filesToStringWorker(e&&this.projectService.logger.hasLevel(3),t&&this.projectService.logger.hasLevel(3),n&&this.projectService.logger.hasLevel(3))),this.writeLog("-----------------------------------------------"),this.autoImportProviderHost&&this.autoImportProviderHost.print(!1,!1,!1),null==(r=this.noDtsResolutionProject)||r.print(!1,!1,!1)}setCompilerOptions(e){var t;if(e){e.allowNonTsExtensions=!0;const n=this.compilerOptions;this.compilerOptions=e,this.setInternalCompilerOptionsForEmittingJsFiles(),null==(t=this.noDtsResolutionProject)||t.setCompilerOptions(this.getCompilerOptionsForNoDtsResolutionProject()),Zu(n,e)&&(this.cachedUnresolvedImportsPerFile.clear(),this.lastCachedUnresolvedImportsList=void 0,this.resolutionCache.onChangesAffectModuleResolution(),this.moduleSpecifierCache.clear()),this.markAsDirty()}}setWatchOptions(e){this.watchOptions=e}getWatchOptions(){return this.watchOptions}setTypeAcquisition(e){e&&(this.typeAcquisition=this.removeLocalTypingsFromTypeAcquisition(e))}getTypeAcquisition(){return this.typeAcquisition||{}}getChangesSinceVersion(e,t){var n,r;const i=t?e=>Oe(e.entries(),([e,t])=>({fileName:e,isSourceOfProjectReferenceRedirect:t})):e=>Oe(e.keys());this.initialLoadPending||vge(this);const o={projectName:this.getProjectName(),version:this.projectProgramVersion,isInferred:Tme(this),options:this.getCompilationSettings(),languageServiceDisabled:!this.languageServiceEnabled,lastFileExceededProgramSize:this.lastFileExceededProgramSize},a=this.updatedFileNames;if(this.updatedFileNames=void 0,this.lastReportedFileNames&&e===this.lastReportedVersion){if(this.projectProgramVersion===this.lastReportedVersion&&!a)return{info:o,projectErrors:this.getGlobalProjectErrors()};const e=this.lastReportedFileNames,r=(null==(n=this.externalFiles)?void 0:n.map(e=>({fileName:jfe(e),isSourceOfProjectReferenceRedirect:!1})))||Ife,s=Me(this.getFileNamesWithRedirectInfo(!!t).concat(r),e=>e.fileName,e=>e.isSourceOfProjectReferenceRedirect),c=new Map,l=new Map,_=a?Oe(a.keys()):[],u=[];return rd(s,(n,r)=>{e.has(r)?t&&n!==e.get(r)&&u.push({fileName:r,isSourceOfProjectReferenceRedirect:n}):c.set(r,n)}),rd(e,(e,t)=>{s.has(t)||l.set(t,e)}),this.lastReportedFileNames=s,this.lastReportedVersion=this.projectProgramVersion,{info:o,changes:{added:i(c),removed:i(l),updated:t?_.map(e=>({fileName:e,isSourceOfProjectReferenceRedirect:this.isSourceOfProjectReferenceRedirect(e)})):_,updatedRedirects:t?u:void 0},projectErrors:this.getGlobalProjectErrors()}}{const e=this.getFileNamesWithRedirectInfo(!!t),n=(null==(r=this.externalFiles)?void 0:r.map(e=>({fileName:jfe(e),isSourceOfProjectReferenceRedirect:!1})))||Ife,i=e.concat(n);return this.lastReportedFileNames=Me(i,e=>e.fileName,e=>e.isSourceOfProjectReferenceRedirect),this.lastReportedVersion=this.projectProgramVersion,{info:o,files:t?i:i.map(e=>e.fileName),projectErrors:this.getGlobalProjectErrors()}}}removeRoot(e){this.rootFilesMap.delete(e.path)}isSourceOfProjectReferenceRedirect(e){return!!this.program&&this.program.isSourceOfProjectReferenceRedirect(e)}getGlobalPluginSearchPaths(){return[...this.projectService.pluginProbeLocations,jo(this.projectService.getExecutingFilePath(),"../../..")]}enableGlobalPlugins(e){if(!this.projectService.globalPlugins.length)return;const t=this.projectService.host;if(!t.require&&!t.importPlugin)return void this.projectService.logger.info("Plugins were requested but not running in environment that supports 'require'. Nothing will be loaded");const n=this.getGlobalPluginSearchPaths();for(const t of this.projectService.globalPlugins)t&&(e.plugins&&e.plugins.some(e=>e.name===t)||(this.projectService.logger.info(`Loading global plugin ${t}`),this.enablePlugin({name:t,global:!0},n)))}enablePlugin(e,t){this.projectService.requestEnablePlugin(this,e,t)}enableProxy(e,t){try{if("function"!=typeof e)return void this.projectService.logger.info(`Skipped loading plugin ${t.name} because it did not expose a proper factory function`);const n={config:t,project:this,languageService:this.languageService,languageServiceHost:this,serverHost:this.projectService.host,session:this.projectService.session},r=e({typescript:mfe}),i=r.create(n);for(const e of Object.keys(this.languageService))e in i||(this.projectService.logger.info(`Plugin activation warning: Missing proxied method ${e} in created LS. Patching.`),i[e]=this.languageService[e]);this.projectService.logger.info("Plugin validation succeeded"),this.languageService=i,this.plugins.push({name:t.name,module:r})}catch(e){this.projectService.logger.info(`Plugin activation failed: ${e}`)}}onPluginConfigurationChanged(e,t){this.plugins.filter(t=>t.name===e).forEach(e=>{e.module.onConfigurationChanged&&e.module.onConfigurationChanged(t)})}refreshDiagnostics(){this.projectService.sendProjectsUpdatedInBackgroundEvent()}getPackageJsonsVisibleToFile(e,t){return 0!==this.projectService.serverMode?Ife:this.projectService.getPackageJsonsVisibleToFile(e,this,t)}getNearestAncestorDirectoryWithPackageJson(e){return this.projectService.getNearestAncestorDirectoryWithPackageJson(e,this)}getPackageJsonsForAutoImport(e){return this.getPackageJsonsVisibleToFile(jo(this.currentDirectory,TV),e)}getPackageJsonCache(){return this.projectService.packageJsonCache}getCachedExportInfoMap(){return this.exportMapCache||(this.exportMapCache=o0(this))}clearCachedExportInfoMap(){var e;null==(e=this.exportMapCache)||e.clear()}getModuleSpecifierCache(){return this.moduleSpecifierCache}includePackageJsonAutoImports(){return 0!==this.projectService.includePackageJsonAutoImports()&&this.languageServiceEnabled&&!AZ(this.currentDirectory)&&this.isDefaultProjectForOpenFiles()?this.projectService.includePackageJsonAutoImports():0}getHostForAutoImportProvider(){var e,t;return this.program?{fileExists:this.program.fileExists,directoryExists:this.program.directoryExists,realpath:this.program.realpath||(null==(e=this.projectService.host.realpath)?void 0:e.bind(this.projectService.host)),getCurrentDirectory:this.getCurrentDirectory.bind(this),readFile:this.projectService.host.readFile.bind(this.projectService.host),getDirectories:this.projectService.host.getDirectories.bind(this.projectService.host),trace:null==(t=this.projectService.host.trace)?void 0:t.bind(this.projectService.host),useCaseSensitiveFileNames:this.program.useCaseSensitiveFileNames(),readDirectory:this.projectService.host.readDirectory.bind(this.projectService.host)}:this.projectService.host}getPackageJsonAutoImportProvider(){var e,t,n;if(!1===this.autoImportProviderHost)return;if(0!==this.projectService.serverMode)return void(this.autoImportProviderHost=!1);if(this.autoImportProviderHost)return vge(this.autoImportProviderHost),this.autoImportProviderHost.isEmpty()?(this.autoImportProviderHost.close(),void(this.autoImportProviderHost=void 0)):this.autoImportProviderHost.getCurrentProgram();const r=this.includePackageJsonAutoImports();if(r){null==(e=Hn)||e.push(Hn.Phase.Session,"getPackageJsonAutoImportProvider");const i=Un();if(this.autoImportProviderHost=xme.create(r,this,this.getHostForAutoImportProvider())??!1,this.autoImportProviderHost)return vge(this.autoImportProviderHost),this.sendPerformanceEvent("CreatePackageJsonAutoImportProvider",Un()-i),null==(t=Hn)||t.pop(),this.autoImportProviderHost.getCurrentProgram();null==(n=Hn)||n.pop()}}isDefaultProjectForOpenFiles(){return!!rd(this.projectService.openFiles,(e,t)=>this.projectService.tryGetDefaultProjectForFile(this.projectService.getScriptInfoForPath(t))===this)}watchNodeModulesForPackageJsonChanges(e){return this.projectService.watchPackageJsonsInNodeModules(e,this)}getIncompleteCompletionsCache(){return this.projectService.getIncompleteCompletionsCache()}getNoDtsResolutionProject(e){return un.assert(0===this.projectService.serverMode),this.noDtsResolutionProject??(this.noDtsResolutionProject=new vme(this)),this.noDtsResolutionProject.rootFile!==e&&(this.projectService.setFileNamesOfAutoImportProviderOrAuxillaryProject(this.noDtsResolutionProject,[e]),this.noDtsResolutionProject.rootFile=e),this.noDtsResolutionProject}runWithTemporaryFileUpdate(e,t,n){var r,i,o,a;const s=this.program,c=un.checkDefined(null==(r=this.program)?void 0:r.getSourceFile(e),"Expected file to be part of program"),l=un.checkDefined(c.getFullText());null==(i=this.getScriptInfo(e))||i.editContent(0,l.length,t),this.updateGraph();try{n(this.program,s,null==(o=this.program)?void 0:o.getSourceFile(e))}finally{null==(a=this.getScriptInfo(e))||a.editContent(0,t.length,l)}}getCompilerOptionsForNoDtsResolutionProject(){return{...this.getCompilerOptions(),noDtsResolution:!0,allowJs:!0,maxNodeModuleJsDepth:3,diagnostics:!1,skipLibCheck:!0,sourceMap:!1,types:l,lib:l,noLib:!0}}},yme=class extends hme{constructor(e,t,n,r,i,o){super(e.newInferredProjectName(),0,e,!1,void 0,t,!1,n,e.host,i),this._isJsInferredProject=!1,this.typeAcquisition=o,this.projectRootPath=r&&e.toCanonicalFileName(r),r||e.useSingleInferredProject||(this.canonicalCurrentDirectory=e.toCanonicalFileName(this.currentDirectory)),this.enableGlobalPlugins(this.getCompilerOptions())}toggleJsInferredProject(e){e!==this._isJsInferredProject&&(this._isJsInferredProject=e,this.setCompilerOptions())}setCompilerOptions(e){if(!e&&!this.getCompilationSettings())return;const t=SQ(e||this.getCompilationSettings());this._isJsInferredProject&&"number"!=typeof t.maxNodeModuleJsDepth?t.maxNodeModuleJsDepth=2:this._isJsInferredProject||(t.maxNodeModuleJsDepth=void 0),t.allowJs=!0,super.setCompilerOptions(t)}addRoot(e){un.assert(e.isScriptOpen()),this.projectService.startWatchingConfigFilesForInferredProjectRoot(e),!this._isJsInferredProject&&e.isJavaScript()?this.toggleJsInferredProject(!0):this.isOrphan()&&this._isJsInferredProject&&!e.isJavaScript()&&this.toggleJsInferredProject(!1),super.addRoot(e)}removeRoot(e){this.projectService.stopWatchingConfigFilesForScriptInfo(e),super.removeRoot(e),!this.isOrphan()&&this._isJsInferredProject&&e.isJavaScript()&&v(this.getRootScriptInfos(),e=>!e.isJavaScript())&&this.toggleJsInferredProject(!1)}isOrphan(){return!this.hasRoots()}isProjectWithSingleRoot(){return!this.projectRootPath&&!this.projectService.useSingleInferredProject||1===this.getRootScriptInfos().length}close(){d(this.getRootScriptInfos(),e=>this.projectService.stopWatchingConfigFilesForScriptInfo(e)),super.close()}getTypeAcquisition(){return this.typeAcquisition||{enable:dme(this),include:l,exclude:l}}},vme=class extends hme{constructor(e){super(e.projectService.newAuxiliaryProjectName(),4,e.projectService,!1,void 0,e.getCompilerOptionsForNoDtsResolutionProject(),!1,void 0,e.projectService.host,e.currentDirectory)}isOrphan(){return!0}scheduleInvalidateResolutionsOfFailedLookupLocations(){}},bme=class e extends hme{constructor(e,t,n){super(e.projectService.newAutoImportProviderProjectName(),3,e.projectService,!1,void 0,n,!1,e.getWatchOptions(),e.projectService.host,e.currentDirectory),this.hostProject=e,this.rootFileNames=t,this.useSourceOfProjectReferenceRedirect=We(this.hostProject,this.hostProject.useSourceOfProjectReferenceRedirect),this.getParsedCommandLine=We(this.hostProject,this.hostProject.getParsedCommandLine)}static getRootFileNames(e,t,n,r){var i,o;if(!e)return l;const a=t.getCurrentProgram();if(!a)return l;const s=Un();let c,_;const u=jo(t.currentDirectory,TV),p=t.getPackageJsonsForAutoImport(jo(t.currentDirectory,u));for(const e of p)null==(i=e.dependencies)||i.forEach((e,t)=>y(t)),null==(o=e.peerDependencies)||o.forEach((e,t)=>y(t));let f=0;if(c){const i=t.getSymlinkCache();for(const o of Oe(c.keys())){if(2===e&&f>=this.maxDependencies)return t.log(`AutoImportProviderProject: attempted to add more than ${this.maxDependencies} dependencies. Aborting.`),l;const s=vM(o,t.currentDirectory,r,n,a.getModuleResolutionCache());if(s){const e=v(s,a,i);if(e){f+=h(e);continue}}if(!d([t.currentDirectory,t.getGlobalTypingsCacheLocation()],e=>{if(e){const t=vM(`@types/${o}`,e,r,n,a.getModuleResolutionCache());if(t){const e=v(t,a,i);return f+=h(e),!0}}})&&s&&r.allowJs&&r.maxNodeModuleJsDepth){const e=v(s,a,i,!0);f+=h(e)}}}const m=a.getResolvedProjectReferences();let g=0;return(null==m?void 0:m.length)&&t.projectService.getHostPreferences().includeCompletionsForModuleExports&&m.forEach(e=>{if(null==e?void 0:e.commandLine.options.outFile)g+=h(b([$S(e.commandLine.options.outFile,".d.ts")]));else if(e){const n=dt(()=>lU(e.commandLine,!t.useCaseSensitiveFileNames()));g+=h(b(B(e.commandLine.fileNames,r=>uO(r)||ko(r,".json")||a.getSourceFile(r)?void 0:tU(r,e.commandLine,!t.useCaseSensitiveFileNames(),n))))}}),(null==_?void 0:_.size)&&t.log(`AutoImportProviderProject: found ${_.size} root files in ${f} dependencies ${g} referenced projects in ${Un()-s} ms`),_?Oe(_.values()):l;function h(e){return(null==e?void 0:e.length)?(_??(_=new Set),e.forEach(e=>_.add(e)),1):0}function y(e){Gt(e,"@types/")||(c||(c=new Set)).add(e)}function v(e,i,o,a){var s;const c=aR(e,r,n,i.getModuleResolutionCache(),a);if(c){const r=null==(s=n.realpath)?void 0:s.call(n,e.packageDirectory),i=r?t.toPath(r):void 0,a=i&&i!==t.toPath(e.packageDirectory);return a&&o.setSymlinkedDirectory(e.packageDirectory,{real:Wo(r),realPath:Wo(i)}),b(c,a?t=>t.replace(e.packageDirectory,r):void 0)}}function b(e,t){return B(e,e=>{const n=t?t(e):e;if(!(a.getSourceFile(n)||t&&a.getSourceFile(e)))return n})}}static create(t,n,r){if(0===t)return;const i={...n.getCompilerOptions(),...this.compilerOptionsOverrides},o=this.getRootFileNames(t,n,r,i);return o.length?new e(n,o,i):void 0}isEmpty(){return!$(this.rootFileNames)}isOrphan(){return!0}updateGraph(){let t=this.rootFileNames;t||(t=e.getRootFileNames(this.hostProject.includePackageJsonAutoImports(),this.hostProject,this.hostProject.getHostForAutoImportProvider(),this.getCompilationSettings())),this.projectService.setFileNamesOfAutoImportProviderOrAuxillaryProject(this,t),this.rootFileNames=t;const n=this.getCurrentProgram(),r=super.updateGraph();return n&&n!==this.getCurrentProgram()&&this.hostProject.clearCachedExportInfoMap(),r}scheduleInvalidateResolutionsOfFailedLookupLocations(){}hasRoots(){var e;return!!(null==(e=this.rootFileNames)?void 0:e.length)}markAsDirty(){this.rootFileNames=void 0,super.markAsDirty()}getScriptFileNames(){return this.rootFileNames||l}getLanguageService(){throw new Error("AutoImportProviderProject language service should never be used. To get the program, use `project.getCurrentProgram()`.")}onAutoImportProviderSettingsChanged(){throw new Error("AutoImportProviderProject is an auto import provider; use `markAsDirty()` instead.")}onPackageJsonChange(){throw new Error("package.json changes should be notified on an AutoImportProvider's host project")}getHostForAutoImportProvider(){throw new Error("AutoImportProviderProject cannot provide its own host; use `hostProject.getModuleResolutionHostForAutomImportProvider()` instead.")}getProjectReferences(){return this.hostProject.getProjectReferences()}includePackageJsonAutoImports(){return 0}getSymlinkCache(){return this.hostProject.getSymlinkCache()}getModuleResolutionCache(){var e;return null==(e=this.hostProject.getCurrentProgram())?void 0:e.getModuleResolutionCache()}};bme.maxDependencies=10,bme.compilerOptionsOverrides={diagnostics:!1,skipLibCheck:!0,sourceMap:!1,types:l,lib:l,noLib:!0};var xme=bme,kme=class extends hme{constructor(e,t,n,r,i){super(e,1,n,!1,void 0,{},!1,void 0,r,Do(e)),this.canonicalConfigFilePath=t,this.openFileWatchTriggered=new Map,this.initialLoadPending=!0,this.sendLoadingProjectFinish=!1,this.pendingUpdateLevel=2,this.pendingUpdateReason=i}setCompilerHost(e){this.compilerHost=e}getCompilerHost(){return this.compilerHost}useSourceOfProjectReferenceRedirect(){return this.languageServiceEnabled}getParsedCommandLine(e){const t=jfe(e),n=this.projectService.toCanonicalFileName(t);let r=this.projectService.configFileExistenceInfoCache.get(n);return r||this.projectService.configFileExistenceInfoCache.set(n,r={exists:this.projectService.host.fileExists(t)}),this.projectService.ensureParsedConfigUptoDate(t,n,r,this),this.languageServiceEnabled&&0===this.projectService.serverMode&&this.projectService.watchWildcards(t,r,this),r.exists?r.config.parsedCommandLine:void 0}onReleaseParsedCommandLine(e){this.releaseParsedConfig(this.projectService.toCanonicalFileName(jfe(e)))}releaseParsedConfig(e){this.projectService.stopWatchingWildCards(e,this),this.projectService.releaseParsedConfig(e,this)}updateGraph(){if(this.deferredClose)return!1;const e=this.dirty;this.initialLoadPending=!1;const t=this.pendingUpdateLevel;let n;switch(this.pendingUpdateLevel=0,t){case 1:this.openFileWatchTriggered.clear(),n=this.projectService.reloadFileNamesOfConfiguredProject(this);break;case 2:this.openFileWatchTriggered.clear();const e=un.checkDefined(this.pendingUpdateReason);this.projectService.reloadConfiguredProject(this,e),n=!0;break;default:n=super.updateGraph()}return this.compilerHost=void 0,this.projectService.sendProjectLoadingFinishEvent(this),this.projectService.sendProjectTelemetry(this),2!==t&&(!n||e&&this.triggerFileForConfigFileDiag&&2!==this.getCurrentProgram().structureIsReused)?this.triggerFileForConfigFileDiag||this.projectService.sendConfigFileDiagEvent(this,void 0,!1):this.triggerFileForConfigFileDiag=void 0,n}getCachedDirectoryStructureHost(){return this.directoryStructureHost}getConfigFilePath(){return this.getProjectName()}getProjectReferences(){return this.projectReferences}updateReferences(e){this.projectReferences=e,this.potentialProjectReferences=void 0}setPotentialProjectReference(e){un.assert(this.initialLoadPending),(this.potentialProjectReferences||(this.potentialProjectReferences=new Set)).add(e)}getRedirectFromSourceFile(e){const t=this.getCurrentProgram();return t&&t.getRedirectFromSourceFile(e)}forEachResolvedProjectReference(e){var t;return null==(t=this.getCurrentProgram())?void 0:t.forEachResolvedProjectReference(e)}enablePluginsWithOptions(e){var t;if(this.plugins.length=0,!(null==(t=e.plugins)?void 0:t.length)&&!this.projectService.globalPlugins.length)return;const n=this.projectService.host;if(!n.require&&!n.importPlugin)return void this.projectService.logger.info("Plugins were requested but not running in environment that supports 'require'. Nothing will be loaded");const r=this.getGlobalPluginSearchPaths();if(this.projectService.allowLocalPluginLoads){const e=Do(this.canonicalConfigFilePath);this.projectService.logger.info(`Local plugin loading enabled; adding ${e} to search paths`),r.unshift(e)}if(e.plugins)for(const t of e.plugins)this.enablePlugin(t,r);return this.enableGlobalPlugins(e)}getGlobalProjectErrors(){return N(this.projectErrors,e=>!e.file)||Ife}getAllProjectErrors(){return this.projectErrors||Ife}setProjectErrors(e){this.projectErrors=e}close(){this.projectService.configFileExistenceInfoCache.forEach((e,t)=>this.releaseParsedConfig(t)),this.projectErrors=void 0,this.openFileWatchTriggered.clear(),this.compilerHost=void 0,super.close()}markAsDirty(){this.deferredClose||super.markAsDirty()}isOrphan(){return!!this.deferredClose}getEffectiveTypeRoots(){return uM(this.getCompilationSettings(),this)||[]}updateErrorOnNoInputFiles(e){this.parsedCommandLine=e,hj(e.fileNames,this.getConfigFilePath(),this.getCompilerOptions().configFile.configFileSpecs,this.projectErrors,gj(e.raw))}},Sme=class extends hme{constructor(e,t,n,r,i,o,a){super(e,2,t,!0,r,n,i,a,t.host,Do(o||Oo(e))),this.externalProjectName=e,this.compileOnSaveEnabled=i,this.excludedFiles=[],this.enableGlobalPlugins(this.getCompilerOptions())}updateGraph(){const e=super.updateGraph();return this.projectService.sendProjectTelemetry(this),e}getExcludedFiles(){return this.excludedFiles}};function Tme(e){return 0===e.projectKind}function Cme(e){return 1===e.projectKind}function wme(e){return 2===e.projectKind}function Nme(e){return 3===e.projectKind||4===e.projectKind}function Dme(e){return Cme(e)&&!!e.deferredClose}var Fme=20971520,Eme=4194304,Pme="projectsUpdatedInBackground",Ame="projectLoadingStart",Ime="projectLoadingFinish",Ome="largeFileReferenced",Lme="configFileDiag",jme="projectLanguageServiceState",Mme="projectInfo",Rme="openFileInfo",Bme="createFileWatcher",Jme="createDirectoryWatcher",zme="closeFileWatcher",qme="*ensureProjectForOpenFiles*";function Ume(e){const t=new Map;for(const n of e)if("object"==typeof n.type){const e=n.type;e.forEach(e=>{un.assert("number"==typeof e)}),t.set(n.name,e)}return t}var Vme=Ume(OO),Wme=Ume(FO),$me=new Map(Object.entries({none:0,block:1,smart:2})),Hme={jquery:{match:/jquery(-[\d.]+)?(\.intellisense)?(\.min)?\.js$/i,types:["jquery"]},WinJS:{match:/^(.*\/winjs-[.\d]+)\/js\/base\.js$/i,exclude:[["^",1,"/.*"]],types:["winjs"]},Kendo:{match:/^(.*\/kendo(-ui)?)\/kendo\.all(\.min)?\.js$/i,exclude:[["^",1,"/.*"]],types:["kendo-ui"]},"Office Nuget":{match:/^(.*\/office\/1)\/excel-\d+\.debug\.js$/i,exclude:[["^",1,"/.*"]],types:["office"]},References:{match:/^(.*\/_references\.js)$/i,exclude:[["^",1,"$"]]}};function Kme(e){return Ze(e.indentStyle)&&(e.indentStyle=$me.get(e.indentStyle.toLowerCase()),un.assert(void 0!==e.indentStyle)),e}function Gme(e){return Vme.forEach((t,n)=>{const r=e[n];Ze(r)&&(e[n]=t.get(r.toLowerCase()))}),e}function Xme(e,t){let n,r;return FO.forEach(i=>{const o=e[i.name];if(void 0===o)return;const a=Wme.get(i.name);(n||(n={}))[i.name]=a?Ze(o)?a.get(o.toLowerCase()):o:Fj(i,o,t||"",r||(r=[]))}),n&&{watchOptions:n,errors:r}}function Qme(e){let t;return KO.forEach(n=>{const r=e[n.name];void 0!==r&&((t||(t={}))[n.name]=r)}),t}function Yme(e){return Ze(e)?Zme(e):e}function Zme(e){switch(e){case"JS":return 1;case"JSX":return 2;case"TS":return 3;case"TSX":return 4;default:return 0}}function ege(e){const{lazyConfiguredProjectsFromExternalProject:t,...n}=e;return n}var tge={getFileName:e=>e,getScriptKind:(e,t)=>{let n;if(t){const r=Po(e);r&&$(t,e=>e.extension===r&&(n=e.scriptKind,!0))}return n},hasMixedContent:(e,t)=>$(t,t=>t.isMixedContent&&ko(e,t.extension))},nge={getFileName:e=>e.fileName,getScriptKind:e=>Yme(e.scriptKind),hasMixedContent:e=>!!e.hasMixedContent};function rge(e,t){for(const n of t)if(n.getProjectName()===e)return n}var ige={isKnownTypesPackageName:it,installPackage:ut,enqueueInstallTypingsRequest:rt,attach:rt,onProjectClosed:rt,globalTypingsCacheLocation:void 0},oge={close:rt};function age(e,t){if(!t)return;const n=t.get(e.path);return void 0!==n?cge(e)?n&&!Ze(n)?n.get(e.fileName):void 0:Ze(n)||!n?n:n.get(!1):void 0}function sge(e){return!!e.containingProjects}function cge(e){return!!e.configFileInfo}var lge=(e=>(e[e.FindOptimized=0]="FindOptimized",e[e.Find=1]="Find",e[e.CreateReplayOptimized=2]="CreateReplayOptimized",e[e.CreateReplay=3]="CreateReplay",e[e.CreateOptimized=4]="CreateOptimized",e[e.Create=5]="Create",e[e.ReloadOptimized=6]="ReloadOptimized",e[e.Reload=7]="Reload",e))(lge||{});function _ge(e){return e-1}function uge(e,t,n,r,i,o,a,s,c){for(var l;;){if(t.parsedCommandLine&&(s&&!t.parsedCommandLine.options.composite||t.parsedCommandLine.options.disableSolutionSearching))return;const _=t.projectService.getConfigFileNameForFile({fileName:t.getConfigFilePath(),path:e.path,configFileInfo:!0,isForDefaultProject:!s},r<=3);if(!_)return;const u=t.projectService.findCreateOrReloadConfiguredProject(_,r,i,o,s?void 0:e.fileName,a,s,c);if(!u)return;!u.project.parsedCommandLine&&(null==(l=t.parsedCommandLine)?void 0:l.options.composite)&&u.project.setPotentialProjectReference(t.canonicalConfigFilePath);const d=n(u);if(d)return d;t=u.project}}function dge(e,t,n,r,i,o,a,s){const c=t.options.disableReferencedProjectLoad?0:r;let l;return d(t.projectReferences,t=>{var _;const u=jfe(VV(t)),d=e.projectService.toCanonicalFileName(u),p=null==s?void 0:s.get(d);if(void 0!==p&&p>=c)return;const f=e.projectService.configFileExistenceInfoCache.get(d);let m=0===c?(null==f?void 0:f.exists)||(null==(_=e.resolvedChildConfigs)?void 0:_.has(d))?f.config.parsedCommandLine:void 0:e.getParsedCommandLine(u);if(m&&c!==r&&c>2&&(m=e.getParsedCommandLine(u)),!m)return;const g=e.projectService.findConfiguredProjectByProjectName(u,o);if(2!==c||f||g){switch(c){case 6:g&&g.projectService.reloadConfiguredProjectOptimized(g,i,a);case 4:(e.resolvedChildConfigs??(e.resolvedChildConfigs=new Set)).add(d);case 2:case 0:if(g||0!==c){const t=n(f??e.projectService.configFileExistenceInfoCache.get(d),g,u,i,e,d);if(t)return t}break;default:un.assertNever(c)}(s??(s=new Map)).set(d,c),(l??(l=[])).push(m)}})||d(l,t=>t.projectReferences&&dge(e,t,n,c,i,o,a,s))}function pge(e,t,n,r,i){let o,a=!1;switch(t){case 2:case 3:kge(e)&&(o=e.projectService.configFileExistenceInfoCache.get(e.canonicalConfigFilePath));break;case 4:if(o=xge(e),o)break;case 5:a=function(e,t){if(t){if(bge(e,t,!1))return!0}else vge(e);return!1}(e,n);break;case 6:if(e.projectService.reloadConfiguredProjectOptimized(e,r,i),o=xge(e),o)break;case 7:a=e.projectService.reloadConfiguredProjectClearingSemanticCache(e,r,i);break;case 0:case 1:break;default:un.assertNever(t)}return{project:e,sentConfigFileDiag:a,configFileExistenceInfo:o,reason:r}}function fge(e,t){return e.initialLoadPending?(e.potentialProjectReferences&&id(e.potentialProjectReferences,t))??(e.resolvedChildConfigs&&id(e.resolvedChildConfigs,t)):void 0}function mge(e,t,n){const r=n&&e.projectService.configuredProjects.get(n);return r&&t(r)}function gge(e,t){return function(e,t,n,r){return e.getCurrentProgram()?e.forEachResolvedProjectReference(t):e.initialLoadPending?fge(e,r):d(e.getProjectReferences(),n)}(e,n=>mge(e,t,n.sourceFile.path),n=>mge(e,t,e.toPath(VV(n))),n=>mge(e,t,n))}function hge(e,t){return`${Ze(t)?`Config: ${t} `:t?`Project: ${t.getProjectName()} `:""}WatchType: ${e}`}function yge(e){return!e.isScriptOpen()&&void 0!==e.mTime}function vge(e){return e.invalidateResolutionsOfFailedLookupLocations(),e.dirty&&!e.updateGraph()}function bge(e,t,n){if(!n&&(e.invalidateResolutionsOfFailedLookupLocations(),!e.dirty))return!1;e.triggerFileForConfigFileDiag=t;const r=e.pendingUpdateLevel;if(e.updateGraph(),!e.triggerFileForConfigFileDiag&&!n)return 2===r;const i=e.projectService.sendConfigFileDiagEvent(e,t,n);return e.triggerFileForConfigFileDiag=void 0,i}function xge(e){const t=jfe(e.getConfigFilePath()),n=e.projectService.ensureParsedConfigUptoDate(t,e.canonicalConfigFilePath,e.projectService.configFileExistenceInfoCache.get(e.canonicalConfigFilePath),e),r=n.config.parsedCommandLine;if(e.parsedCommandLine=r,e.resolvedChildConfigs=void 0,e.updateReferences(r.projectReferences),kge(e))return n}function kge(e){return!(!e.parsedCommandLine||!e.parsedCommandLine.options.composite&&!mj(e.parsedCommandLine))}function Sge(e){return`User requested reload projects: ${e}`}function Tge(e){Cme(e)&&(e.projectOptions=!0)}function Cge(e){let t=1;return()=>e(t++)}function wge(){return{idToCallbacks:new Map,pathToId:new Map}}function Nge(e,t){return!!t&&!!e.eventHandler&&!!e.session}var Dge=class e{constructor(e){var t;this.filenameToScriptInfo=new Map,this.nodeModulesWatchers=new Map,this.filenameToScriptInfoVersion=new Map,this.allJsFilesForOpenFileTelemetry=new Set,this.externalProjectToConfiguredProjectMap=new Map,this.externalProjects=[],this.inferredProjects=[],this.configuredProjects=new Map,this.newInferredProjectName=Cge(zfe),this.newAutoImportProviderProjectName=Cge(qfe),this.newAuxiliaryProjectName=Cge(Ufe),this.openFiles=new Map,this.configFileForOpenFiles=new Map,this.rootOfInferredProjects=new Set,this.openFilesWithNonRootedDiskPath=new Map,this.compilerOptionsForInferredProjectsPerProjectRoot=new Map,this.watchOptionsForInferredProjectsPerProjectRoot=new Map,this.typeAcquisitionForInferredProjectsPerProjectRoot=new Map,this.projectToSizeMap=new Map,this.configFileExistenceInfoCache=new Map,this.safelist=Hme,this.legacySafelist=new Map,this.pendingProjectUpdates=new Map,this.pendingEnsureProjectForOpenFiles=!1,this.seenProjects=new Map,this.sharedExtendedConfigFileWatchers=new Map,this.extendedConfigCache=new Map,this.baseline=rt,this.verifyDocumentRegistry=rt,this.verifyProgram=rt,this.onProjectCreation=rt,this.host=e.host,this.logger=e.logger,this.cancellationToken=e.cancellationToken,this.useSingleInferredProject=e.useSingleInferredProject,this.useInferredProjectPerProjectRoot=e.useInferredProjectPerProjectRoot,this.typingsInstaller=e.typingsInstaller||ige,this.throttleWaitMilliseconds=e.throttleWaitMilliseconds,this.eventHandler=e.eventHandler,this.suppressDiagnosticEvents=e.suppressDiagnosticEvents,this.globalPlugins=e.globalPlugins||Ife,this.pluginProbeLocations=e.pluginProbeLocations||Ife,this.allowLocalPluginLoads=!!e.allowLocalPluginLoads,this.typesMapLocation=void 0===e.typesMapLocation?jo(Do(this.getExecutingFilePath()),"typesMap.json"):e.typesMapLocation,this.session=e.session,this.jsDocParsingMode=e.jsDocParsingMode,void 0!==e.serverMode?this.serverMode=e.serverMode:this.serverMode=0,this.host.realpath&&(this.realpathToScriptInfos=$e()),this.currentDirectory=jfe(this.host.getCurrentDirectory()),this.toCanonicalFileName=Wt(this.host.useCaseSensitiveFileNames),this.globalCacheLocationDirectoryPath=this.typingsInstaller.globalTypingsCacheLocation?Wo(this.toPath(this.typingsInstaller.globalTypingsCacheLocation)):void 0,this.throttledOperations=new Wfe(this.host,this.logger),this.logger.info(`currentDirectory:: ${this.host.getCurrentDirectory()} useCaseSensitiveFileNames:: ${this.host.useCaseSensitiveFileNames}`),this.logger.info(`libs Location:: ${Do(this.host.getExecutingFilePath())}`),this.logger.info(`globalTypingsCacheLocation:: ${this.typingsInstaller.globalTypingsCacheLocation}`),this.typesMapLocation?this.loadTypesMap():this.logger.info("No types map provided; using the default"),this.typingsInstaller.attach(this),this.hostConfiguration={formatCodeOptions:EG(this.host.newLine),preferences:kG,hostInfo:"Unknown host",extraFileExtensions:[]},this.documentRegistry=O0(this.host.useCaseSensitiveFileNames,this.currentDirectory,this.jsDocParsingMode,this);const n=this.logger.hasLevel(3)?2:this.logger.loggingEnabled()?1:0,r=0!==n?e=>this.logger.info(e):rt;this.packageJsonCache=Ige(this),this.watchFactory=0!==this.serverMode?{watchFile:N$,watchDirectory:N$}:jU(function(e,t){if(!Nge(e,t))return;const n=wge(),r=wge(),i=wge();let o=1;return e.session.addProtocolHandler("watchChange",e=>{var t;return Qe(t=e.arguments)?t.forEach(s):s(t),{responseRequired:!1}}),{watchFile:function(e,t){return a(n,e,t,t=>({eventName:Bme,data:{id:t,path:e}}))},watchDirectory:function(e,t,n){return a(n?i:r,e,t,t=>({eventName:Jme,data:{id:t,path:e,recursive:!!n,ignoreUpdate:!e.endsWith("/node_modules")||void 0}}))},getCurrentDirectory:()=>e.host.getCurrentDirectory(),useCaseSensitiveFileNames:e.host.useCaseSensitiveFileNames};function a({pathToId:t,idToCallbacks:n},r,i,a){const s=e.toPath(r);let c=t.get(s);c||t.set(s,c=o++);let l=n.get(c);return l||(n.set(c,l=new Set),e.eventHandler(a(c))),l.add(i),{close(){const r=n.get(c);(null==r?void 0:r.delete(i))&&(r.size||(n.delete(c),t.delete(s),e.eventHandler({eventName:zme,data:{id:c}})))}}}function s({id:e,created:t,deleted:n,updated:r}){c(e,t,0),c(e,n,2),c(e,r,1)}function c(e,t,o){(null==t?void 0:t.length)&&(l(n,e,t,(e,t)=>e(t,o)),l(r,e,t,(e,t)=>e(t)),l(i,e,t,(e,t)=>e(t)))}function l(e,t,n,r){var i;null==(i=e.idToCallbacks.get(t))||i.forEach(e=>{n.forEach(t=>r(e,Oo(t)))})}}(this,e.canUseWatchEvents)||this.host,n,r,hge),this.canUseWatchEvents=Nge(this,e.canUseWatchEvents),null==(t=e.incrementalVerifier)||t.call(e,this)}toPath(e){return Uo(e,this.currentDirectory,this.toCanonicalFileName)}getExecutingFilePath(){return this.getNormalizedAbsolutePath(this.host.getExecutingFilePath())}getNormalizedAbsolutePath(e){return Bo(e,this.host.getCurrentDirectory())}setDocument(e,t,n){un.checkDefined(this.getScriptInfoForPath(t)).cacheSourceFile={key:e,sourceFile:n}}getDocument(e,t){const n=this.getScriptInfoForPath(t);return n&&n.cacheSourceFile&&n.cacheSourceFile.key===e?n.cacheSourceFile.sourceFile:void 0}ensureInferredProjectsUpToDate_TestOnly(){this.ensureProjectStructuresUptoDate()}getCompilerOptionsForInferredProjects(){return this.compilerOptionsForInferredProjects}onUpdateLanguageServiceStateForProject(e,t){if(!this.eventHandler)return;const n={eventName:jme,data:{project:e,languageServiceEnabled:t}};this.eventHandler(n)}loadTypesMap(){try{const e=this.host.readFile(this.typesMapLocation);if(void 0===e)return void this.logger.info(`Provided types map file "${this.typesMapLocation}" doesn't exist`);const t=JSON.parse(e);for(const e of Object.keys(t.typesMap))t.typesMap[e].match=new RegExp(t.typesMap[e].match,"i");this.safelist=t.typesMap;for(const e in t.simpleMap)De(t.simpleMap,e)&&this.legacySafelist.set(e,t.simpleMap[e].toLowerCase())}catch(e){this.logger.info(`Error loading types map: ${e}`),this.safelist=Hme,this.legacySafelist.clear()}}updateTypingsForProject(e){const t=this.findProject(e.projectName);if(t)switch(e.kind){case HK:return void t.updateTypingFiles(e.compilerOptions,e.typeAcquisition,e.unresolvedImports,e.typings);case KK:return void t.enqueueInstallTypingsForProject(!0)}}watchTypingLocations(e){var t;null==(t=this.findProject(e.projectName))||t.watchTypingLocations(e.files)}delayEnsureProjectForOpenFiles(){this.openFiles.size&&(this.pendingEnsureProjectForOpenFiles=!0,this.throttledOperations.schedule(qme,2500,()=>{0!==this.pendingProjectUpdates.size?this.delayEnsureProjectForOpenFiles():this.pendingEnsureProjectForOpenFiles&&(this.ensureProjectForOpenFiles(),this.sendProjectsUpdatedInBackgroundEvent())}))}delayUpdateProjectGraph(e){if(Dme(e))return;if(e.markAsDirty(),Nme(e))return;const t=e.getProjectName();this.pendingProjectUpdates.set(t,e),this.throttledOperations.schedule(t,250,()=>{this.pendingProjectUpdates.delete(t)&&vge(e)})}hasPendingProjectUpdate(e){return this.pendingProjectUpdates.has(e.getProjectName())}sendProjectsUpdatedInBackgroundEvent(){if(!this.eventHandler)return;const e={eventName:Pme,data:{openFiles:Oe(this.openFiles.keys(),e=>this.getScriptInfoForPath(e).fileName)}};this.eventHandler(e)}sendLargeFileReferencedEvent(e,t){if(!this.eventHandler)return;const n={eventName:Ome,data:{file:e,fileSize:t,maxFileSize:Eme}};this.eventHandler(n)}sendProjectLoadingStartEvent(e,t){if(!this.eventHandler)return;e.sendLoadingProjectFinish=!0;const n={eventName:Ame,data:{project:e,reason:t}};this.eventHandler(n)}sendProjectLoadingFinishEvent(e){if(!this.eventHandler||!e.sendLoadingProjectFinish)return;e.sendLoadingProjectFinish=!1;const t={eventName:Ime,data:{project:e}};this.eventHandler(t)}sendPerformanceEvent(e,t){this.performanceEventHandler&&this.performanceEventHandler({kind:e,durationMs:t})}delayUpdateProjectGraphAndEnsureProjectStructureForOpenFiles(e){this.delayUpdateProjectGraph(e),this.delayEnsureProjectForOpenFiles()}delayUpdateProjectGraphs(e,t){if(e.length){for(const n of e)t&&n.clearSourceMapperCache(),this.delayUpdateProjectGraph(n);this.delayEnsureProjectForOpenFiles()}}setCompilerOptionsForInferredProjects(e,t){un.assert(void 0===t||this.useInferredProjectPerProjectRoot,"Setting compiler options per project root path is only supported when useInferredProjectPerProjectRoot is enabled");const n=Gme(e),r=Xme(e,t),i=Qme(e);n.allowNonTsExtensions=!0;const o=t&&this.toCanonicalFileName(t);o?(this.compilerOptionsForInferredProjectsPerProjectRoot.set(o,n),this.watchOptionsForInferredProjectsPerProjectRoot.set(o,r||!1),this.typeAcquisitionForInferredProjectsPerProjectRoot.set(o,i)):(this.compilerOptionsForInferredProjects=n,this.watchOptionsForInferredProjects=r,this.typeAcquisitionForInferredProjects=i);for(const e of this.inferredProjects)(o?e.projectRootPath!==o:e.projectRootPath&&this.compilerOptionsForInferredProjectsPerProjectRoot.has(e.projectRootPath))||(e.setCompilerOptions(n),e.setTypeAcquisition(i),e.setWatchOptions(null==r?void 0:r.watchOptions),e.setProjectErrors(null==r?void 0:r.errors),e.compileOnSaveEnabled=n.compileOnSave,e.markAsDirty(),this.delayUpdateProjectGraph(e));this.delayEnsureProjectForOpenFiles()}findProject(e){if(void 0!==e)return Jfe(e)?rge(e,this.inferredProjects):this.findExternalProjectByProjectName(e)||this.findConfiguredProjectByProjectName(jfe(e))}forEachProject(e){this.externalProjects.forEach(e),this.configuredProjects.forEach(e),this.inferredProjects.forEach(e)}forEachEnabledProject(e){this.forEachProject(t=>{!t.isOrphan()&&t.languageServiceEnabled&&e(t)})}getDefaultProjectForFile(e,t){return t?this.ensureDefaultProjectForFile(e):this.tryGetDefaultProjectForFile(e)}tryGetDefaultProjectForFile(e){const t=Ze(e)?this.getScriptInfoForNormalizedPath(e):e;return t&&!t.isOrphan()?t.getDefaultProject():void 0}tryGetDefaultProjectForEnsuringConfiguredProjectForFile(e){var t;const n=Ze(e)?this.getScriptInfoForNormalizedPath(e):e;if(n)return(null==(t=this.pendingOpenFileProjectUpdates)?void 0:t.delete(n.path))&&(this.tryFindDefaultConfiguredProjectAndLoadAncestorsForOpenScriptInfo(n,5),n.isOrphan()&&this.assignOrphanScriptInfoToInferredProject(n,this.openFiles.get(n.path))),this.tryGetDefaultProjectForFile(n)}ensureDefaultProjectForFile(e){return this.tryGetDefaultProjectForEnsuringConfiguredProjectForFile(e)||this.doEnsureDefaultProjectForFile(e)}doEnsureDefaultProjectForFile(e){this.ensureProjectStructuresUptoDate();const t=Ze(e)?this.getScriptInfoForNormalizedPath(e):e;return t?t.getDefaultProject():(this.logErrorForScriptInfoNotFound(Ze(e)?e:e.fileName),Efe.ThrowNoProject())}getScriptInfoEnsuringProjectsUptoDate(e){return this.ensureProjectStructuresUptoDate(),this.getScriptInfo(e)}ensureProjectStructuresUptoDate(){let e=this.pendingEnsureProjectForOpenFiles;this.pendingProjectUpdates.clear();const t=t=>{e=vge(t)||e};this.externalProjects.forEach(t),this.configuredProjects.forEach(t),this.inferredProjects.forEach(t),e&&this.ensureProjectForOpenFiles()}getFormatCodeOptions(e){const t=this.getScriptInfoForNormalizedPath(e);return t&&t.getFormatCodeSettings()||this.hostConfiguration.formatCodeOptions}getPreferences(e){const t=this.getScriptInfoForNormalizedPath(e);return{...this.hostConfiguration.preferences,...t&&t.getPreferences()}}getHostFormatCodeOptions(){return this.hostConfiguration.formatCodeOptions}getHostPreferences(){return this.hostConfiguration.preferences}onSourceFileChanged(e,t){un.assert(!e.isScriptOpen()),2===t?this.handleDeletedFile(e,!0):(e.deferredDelete&&(e.deferredDelete=void 0),e.delayReloadNonMixedContentFile(),this.delayUpdateProjectGraphs(e.containingProjects,!1),this.handleSourceMapProjects(e))}handleSourceMapProjects(e){if(e.sourceMapFilePath)if(Ze(e.sourceMapFilePath)){const t=this.getScriptInfoForPath(e.sourceMapFilePath);this.delayUpdateSourceInfoProjects(null==t?void 0:t.sourceInfos)}else this.delayUpdateSourceInfoProjects(e.sourceMapFilePath.sourceInfos);this.delayUpdateSourceInfoProjects(e.sourceInfos),e.declarationInfoPath&&this.delayUpdateProjectsOfScriptInfoPath(e.declarationInfoPath)}delayUpdateSourceInfoProjects(e){e&&e.forEach((e,t)=>this.delayUpdateProjectsOfScriptInfoPath(t))}delayUpdateProjectsOfScriptInfoPath(e){const t=this.getScriptInfoForPath(e);t&&this.delayUpdateProjectGraphs(t.containingProjects,!0)}handleDeletedFile(e,t){un.assert(!e.isScriptOpen()),this.delayUpdateProjectGraphs(e.containingProjects,!1),this.handleSourceMapProjects(e),e.detachAllProjects(),t?(e.delayReloadNonMixedContentFile(),e.deferredDelete=!0):this.deleteScriptInfo(e)}watchWildcardDirectory(e,t,n,r){let i=this.watchFactory.watchDirectory(e,t=>this.onWildCardDirectoryWatcherInvoke(e,n,r,o,t),t,this.getWatchOptionsFromProjectWatchOptions(r.parsedCommandLine.watchOptions,Do(n)),F$.WildcardDirectory,n);const o={packageJsonWatches:void 0,close(){var e;i&&(i.close(),i=void 0,null==(e=o.packageJsonWatches)||e.forEach(e=>{e.projects.delete(o),e.close()}),o.packageJsonWatches=void 0)}};return o}onWildCardDirectoryWatcherInvoke(e,t,n,r,i){const o=this.toPath(i),a=n.cachedDirectoryStructureHost.addOrDeleteFileOrDirectory(i,o);if("package.json"===Fo(o)&&!AZ(o)&&(a&&a.fileExists||!a&&this.host.fileExists(i))){const e=this.getNormalizedAbsolutePath(i);this.logger.info(`Config: ${t} Detected new package.json: ${e}`),this.packageJsonCache.addOrUpdate(e,o),this.watchPackageJsonFile(e,o,r)}(null==a?void 0:a.fileExists)||this.sendSourceFileChange(o);const s=this.findConfiguredProjectByProjectName(t);IU({watchedDirPath:this.toPath(e),fileOrDirectory:i,fileOrDirectoryPath:o,configFileName:t,extraFileExtensions:this.hostConfiguration.extraFileExtensions,currentDirectory:this.currentDirectory,options:n.parsedCommandLine.options,program:(null==s?void 0:s.getCurrentProgram())||n.parsedCommandLine.fileNames,useCaseSensitiveFileNames:this.host.useCaseSensitiveFileNames,writeLog:e=>this.logger.info(e),toPath:e=>this.toPath(e),getScriptKind:s?e=>s.getScriptKind(e):void 0})||(2!==n.updateLevel&&(n.updateLevel=1),n.projects.forEach((e,n)=>{var r;if(!e)return;const i=this.getConfiguredProjectByCanonicalConfigFilePath(n);if(!i)return;if(s!==i&&this.getHostPreferences().includeCompletionsForModuleExports){const e=this.toPath(t);b(null==(r=i.getCurrentProgram())?void 0:r.getResolvedProjectReferences(),t=>(null==t?void 0:t.sourceFile.path)===e)&&i.markAutoImportProviderAsDirty()}const a=s===i?1:0;if(!(i.pendingUpdateLevel>a))if(this.openFiles.has(o))if(un.checkDefined(this.getScriptInfoForPath(o)).isAttached(i)){const e=Math.max(a,i.openFileWatchTriggered.get(o)||0);i.openFileWatchTriggered.set(o,e)}else i.pendingUpdateLevel=a,this.delayUpdateProjectGraphAndEnsureProjectStructureForOpenFiles(i);else i.pendingUpdateLevel=a,this.delayUpdateProjectGraphAndEnsureProjectStructureForOpenFiles(i)}))}delayUpdateProjectsFromParsedConfigOnConfigFileChange(e,t){const n=this.configFileExistenceInfoCache.get(e);if(!(null==n?void 0:n.config))return!1;let r=!1;return n.config.updateLevel=2,n.config.cachedDirectoryStructureHost.clearCache(),n.config.projects.forEach((n,i)=>{var o,a,s;const c=this.getConfiguredProjectByCanonicalConfigFilePath(i);if(c)if(r=!0,i===e){if(c.initialLoadPending)return;c.pendingUpdateLevel=2,c.pendingUpdateReason=t,this.delayUpdateProjectGraph(c),c.markAutoImportProviderAsDirty()}else{if(c.initialLoadPending)return void(null==(a=null==(o=this.configFileExistenceInfoCache.get(i))?void 0:o.openFilesImpactedByConfigFile)||a.forEach(e=>{var t;(null==(t=this.pendingOpenFileProjectUpdates)?void 0:t.has(e))||(this.pendingOpenFileProjectUpdates??(this.pendingOpenFileProjectUpdates=new Map)).set(e,this.configFileForOpenFiles.get(e))}));const t=this.toPath(e);c.resolutionCache.removeResolutionsFromProjectReferenceRedirects(t),this.delayUpdateProjectGraph(c),this.getHostPreferences().includeCompletionsForModuleExports&&b(null==(s=c.getCurrentProgram())?void 0:s.getResolvedProjectReferences(),e=>(null==e?void 0:e.sourceFile.path)===t)&&c.markAutoImportProviderAsDirty()}}),r}onConfigFileChanged(e,t,n){const r=this.configFileExistenceInfoCache.get(t),i=this.getConfiguredProjectByCanonicalConfigFilePath(t),o=null==i?void 0:i.deferredClose;2===n?(r.exists=!1,i&&(i.deferredClose=!0)):(r.exists=!0,o&&(i.deferredClose=void 0,i.markAsDirty())),this.delayUpdateProjectsFromParsedConfigOnConfigFileChange(t,"Change in config file detected"),this.openFiles.forEach((e,t)=>{var n,i;const o=this.configFileForOpenFiles.get(t);if(!(null==(n=r.openFilesImpactedByConfigFile)?void 0:n.has(t)))return;this.configFileForOpenFiles.delete(t);const a=this.getScriptInfoForPath(t);this.getConfigFileNameForFile(a,!1)&&((null==(i=this.pendingOpenFileProjectUpdates)?void 0:i.has(t))||(this.pendingOpenFileProjectUpdates??(this.pendingOpenFileProjectUpdates=new Map)).set(t,o))}),this.delayEnsureProjectForOpenFiles()}removeProject(e){switch(this.logger.info("`remove Project::"),e.print(!0,!0,!1),e.close(),un.shouldAssert(1)&&this.filenameToScriptInfo.forEach(t=>un.assert(!t.isAttached(e),"Found script Info still attached to project",()=>`${e.projectName}: ScriptInfos still attached: ${JSON.stringify(Oe(J(this.filenameToScriptInfo.values(),t=>t.isAttached(e)?{fileName:t.fileName,projects:t.containingProjects.map(e=>e.projectName),hasMixedContent:t.hasMixedContent}:void 0)),void 0," ")}`)),this.pendingProjectUpdates.delete(e.getProjectName()),e.projectKind){case 2:Vt(this.externalProjects,e),this.projectToSizeMap.delete(e.getProjectName());break;case 1:this.configuredProjects.delete(e.canonicalConfigFilePath),this.projectToSizeMap.delete(e.canonicalConfigFilePath);break;case 0:Vt(this.inferredProjects,e)}}assignOrphanScriptInfoToInferredProject(e,t){un.assert(e.isOrphan());const n=this.getOrCreateInferredProjectForProjectRootPathIfEnabled(e,t)||this.getOrCreateSingleInferredProjectIfEnabled()||this.getOrCreateSingleInferredWithoutProjectRoot(e.isDynamic?t||this.currentDirectory:Do(go(e.fileName)?e.fileName:Bo(e.fileName,t?this.getNormalizedAbsolutePath(t):this.currentDirectory)));if(n.addRoot(e),e.containingProjects[0]!==n&&(zt(e.containingProjects,n),e.containingProjects.unshift(n)),n.updateGraph(),!this.useSingleInferredProject&&!n.projectRootPath)for(const e of this.inferredProjects){if(e===n||e.isOrphan())continue;const t=e.getRootScriptInfos();un.assert(1===t.length||!!e.projectRootPath),1===t.length&&d(t[0].containingProjects,e=>e!==t[0].containingProjects[0]&&!e.isOrphan())&&e.removeFile(t[0],!0,!0)}return n}assignOrphanScriptInfosToInferredProject(){this.openFiles.forEach((e,t)=>{const n=this.getScriptInfoForPath(t);n.isOrphan()&&this.assignOrphanScriptInfoToInferredProject(n,e)})}closeOpenFile(e,t){var n;const r=!e.isDynamic&&this.host.fileExists(e.fileName);e.close(r),this.stopWatchingConfigFilesForScriptInfo(e);const i=this.toCanonicalFileName(e.fileName);this.openFilesWithNonRootedDiskPath.get(i)===e&&this.openFilesWithNonRootedDiskPath.delete(i);let o=!1;for(const t of e.containingProjects){if(Cme(t)){e.hasMixedContent&&e.registerFileUpdate();const n=t.openFileWatchTriggered.get(e.path);void 0!==n&&(t.openFileWatchTriggered.delete(e.path),t.pendingUpdateLevelthis.onConfigFileChanged(e,t,r),2e3,this.getWatchOptionsFromProjectWatchOptions(null==(i=null==(r=null==o?void 0:o.config)?void 0:r.parsedCommandLine)?void 0:i.watchOptions,Do(e)),F$.ConfigFile,n)),this.ensureConfigFileWatcherForProject(o,n)}ensureConfigFileWatcherForProject(e,t){const n=e.config.projects;n.set(t.canonicalConfigFilePath,n.get(t.canonicalConfigFilePath)||!1)}releaseParsedConfig(e,t){var n,r,i;const o=this.configFileExistenceInfoCache.get(e);(null==(n=o.config)?void 0:n.projects.delete(t.canonicalConfigFilePath))&&((null==(r=o.config)?void 0:r.projects.size)||(o.config=void 0,FU(e,this.sharedExtendedConfigFileWatchers),un.checkDefined(o.watcher),(null==(i=o.openFilesImpactedByConfigFile)?void 0:i.size)?o.inferredProjectRoots?WW(Do(e))||(o.watcher.close(),o.watcher=oge):(o.watcher.close(),o.watcher=void 0):(o.watcher.close(),this.configFileExistenceInfoCache.delete(e))))}stopWatchingConfigFilesForScriptInfo(e){if(0!==this.serverMode)return;const t=this.rootOfInferredProjects.delete(e),n=e.isScriptOpen();n&&!t||this.forEachConfigFileLocation(e,r=>{var i,o,a;const s=this.configFileExistenceInfoCache.get(r);if(s){if(n){if(!(null==(i=null==s?void 0:s.openFilesImpactedByConfigFile)?void 0:i.has(e.path)))return}else if(!(null==(o=s.openFilesImpactedByConfigFile)?void 0:o.delete(e.path)))return;t&&(s.inferredProjectRoots--,!s.watcher||s.config||s.inferredProjectRoots||(s.watcher.close(),s.watcher=void 0)),(null==(a=s.openFilesImpactedByConfigFile)?void 0:a.size)||s.config||(un.assert(!s.watcher),this.configFileExistenceInfoCache.delete(r))}})}startWatchingConfigFilesForInferredProjectRoot(e){0===this.serverMode&&(un.assert(e.isScriptOpen()),this.rootOfInferredProjects.add(e),this.forEachConfigFileLocation(e,(t,n)=>{let r=this.configFileExistenceInfoCache.get(t);r?r.inferredProjectRoots=(r.inferredProjectRoots??0)+1:(r={exists:this.host.fileExists(n),inferredProjectRoots:1},this.configFileExistenceInfoCache.set(t,r)),(r.openFilesImpactedByConfigFile??(r.openFilesImpactedByConfigFile=new Set)).add(e.path),r.watcher||(r.watcher=WW(Do(t))?this.watchFactory.watchFile(n,(e,r)=>this.onConfigFileChanged(n,t,r),2e3,this.hostConfiguration.watchOptions,F$.ConfigFileForInferredRoot):oge)}))}forEachConfigFileLocation(e,t){if(0!==this.serverMode)return;un.assert(!sge(e)||this.openFiles.has(e.path));const n=this.openFiles.get(e.path);if(un.checkDefined(this.getScriptInfo(e.path)).isDynamic)return;let r=Do(e.fileName);const i=()=>ea(n,r,this.currentDirectory,!this.host.useCaseSensitiveFileNames),o=!n||!i();let a=!0,s=!0;cge(e)&&(a=!Mt(e.fileName,"tsconfig.json")&&(s=!1));do{const e=Mfe(r,this.currentDirectory,this.toCanonicalFileName);if(a){const n=Rfe(jo(r,"tsconfig.json"));if(t(jo(e,"tsconfig.json"),n))return n}if(s){const n=Rfe(jo(r,"jsconfig.json"));if(t(jo(e,"jsconfig.json"),n))return n}if(ca(e))break;const n=Rfe(Do(r));if(n===r)break;r=n,a=s=!0}while(o||i())}findDefaultConfiguredProject(e){var t;return null==(t=this.findDefaultConfiguredProjectWorker(e,1))?void 0:t.defaultProject}findDefaultConfiguredProjectWorker(e,t){return e.isScriptOpen()?this.tryFindDefaultConfiguredProjectForOpenScriptInfo(e,t):void 0}getConfigFileNameForFileFromCache(e,t){if(t){const t=age(e,this.pendingOpenFileProjectUpdates);if(void 0!==t)return t}return age(e,this.configFileForOpenFiles)}setConfigFileNameForFileInCache(e,t){if(!this.openFiles.has(e.path))return;const n=t||!1;if(cge(e)){let t=this.configFileForOpenFiles.get(e.path);t&&!Ze(t)||this.configFileForOpenFiles.set(e.path,t=(new Map).set(!1,t)),t.set(e.fileName,n)}else this.configFileForOpenFiles.set(e.path,n)}getConfigFileNameForFile(e,t){const n=this.getConfigFileNameForFileFromCache(e,t);if(void 0!==n)return n||void 0;if(t)return;const r=this.forEachConfigFileLocation(e,(t,n)=>this.configFileExists(n,t,e));return this.logger.info(`getConfigFileNameForFile:: File: ${e.fileName} ProjectRootPath: ${this.openFiles.get(e.path)}:: Result: ${r}`),this.setConfigFileNameForFileInCache(e,r),r}printProjects(){this.logger.hasLevel(1)&&(this.logger.startGroup(),this.externalProjects.forEach(Pge),this.configuredProjects.forEach(Pge),this.inferredProjects.forEach(Pge),this.logger.info("Open files: "),this.openFiles.forEach((e,t)=>{const n=this.getScriptInfoForPath(t);this.logger.info(`\tFileName: ${n.fileName} ProjectRootPath: ${e}`),this.logger.info(`\t\tProjects: ${n.containingProjects.map(e=>e.getProjectName())}`)}),this.logger.endGroup())}findConfiguredProjectByProjectName(e,t){const n=this.toCanonicalFileName(e),r=this.getConfiguredProjectByCanonicalConfigFilePath(n);return t?r:(null==r?void 0:r.deferredClose)?void 0:r}getConfiguredProjectByCanonicalConfigFilePath(e){return this.configuredProjects.get(e)}findExternalProjectByProjectName(e){return rge(e,this.externalProjects)}getFilenameForExceededTotalSizeLimitForNonTsFiles(e,t,n,r){if(t&&t.disableSizeLimit||!this.host.getFileSize)return;let i=Fme;this.projectToSizeMap.set(e,0),this.projectToSizeMap.forEach(e=>i-=e||0);let o=0;for(const e of n){const t=r.getFileName(e);if(!LS(t)&&(o+=this.host.getFileSize(t),o>Fme||o>i)){const e=n.map(e=>r.getFileName(e)).filter(e=>!LS(e)).map(e=>({name:e,size:this.host.getFileSize(e)})).sort((e,t)=>t.size-e.size).slice(0,5);return this.logger.info(`Non TS file size exceeded limit (${o}). Largest files: ${e.map(e=>`${e.name}:${e.size}`).join(", ")}`),t}}this.projectToSizeMap.set(e,o)}createExternalProject(e,t,n,r,i){const o=Gme(n),a=Xme(n,Do(Oo(e))),s=new Sme(e,this,o,this.getFilenameForExceededTotalSizeLimitForNonTsFiles(e,o,t,nge),void 0===n.compileOnSave||n.compileOnSave,void 0,null==a?void 0:a.watchOptions);return s.setProjectErrors(null==a?void 0:a.errors),s.excludedFiles=i,this.addFilesToNonInferredProject(s,t,nge,r),this.externalProjects.push(s),s}sendProjectTelemetry(e){if(this.seenProjects.has(e.projectName))return void Tge(e);if(this.seenProjects.set(e.projectName,!0),!this.eventHandler||!this.host.createSHA256Hash)return void Tge(e);const t=Cme(e)?e.projectOptions:void 0;Tge(e);const n={projectId:this.host.createSHA256Hash(e.projectName),fileStats:ume(e.getScriptInfos(),!0),compilerOptions:Kj(e.getCompilationSettings()),typeAcquisition:function({enable:e,include:t,exclude:n}){return{enable:e,include:void 0!==t&&0!==t.length,exclude:void 0!==n&&0!==n.length}}(e.getTypeAcquisition()),extends:t&&t.configHasExtendsProperty,files:t&&t.configHasFilesProperty,include:t&&t.configHasIncludeProperty,exclude:t&&t.configHasExcludeProperty,compileOnSave:e.compileOnSaveEnabled,configFileName:Cme(e)&&Hfe(e.getConfigFilePath())||"other",projectType:e instanceof Sme?"external":"configured",languageServiceEnabled:e.languageServiceEnabled,version:s};this.eventHandler({eventName:Mme,data:n})}addFilesToNonInferredProject(e,t,n,r){this.updateNonInferredProjectFiles(e,t,n),e.setTypeAcquisition(r),e.markAsDirty()}createConfiguredProject(e,t){var n;null==(n=Hn)||n.instant(Hn.Phase.Session,"createConfiguredProject",{configFilePath:e});const r=this.toCanonicalFileName(e);let i=this.configFileExistenceInfoCache.get(r);i?i.exists=!0:this.configFileExistenceInfoCache.set(r,i={exists:!0}),i.config||(i.config={cachedDirectoryStructureHost:wU(this.host,this.host.getCurrentDirectory(),this.host.useCaseSensitiveFileNames),projects:new Map,updateLevel:2});const o=new kme(e,r,this,i.config.cachedDirectoryStructureHost,t);return un.assert(!this.configuredProjects.has(r)),this.configuredProjects.set(r,o),this.createConfigFileWatcherForParsedConfig(e,r,o),o}loadConfiguredProject(e,t){var n,r;null==(n=Hn)||n.push(Hn.Phase.Session,"loadConfiguredProject",{configFilePath:e.canonicalConfigFilePath}),this.sendProjectLoadingStartEvent(e,t);const i=jfe(e.getConfigFilePath()),o=this.ensureParsedConfigUptoDate(i,e.canonicalConfigFilePath,this.configFileExistenceInfoCache.get(e.canonicalConfigFilePath),e),a=o.config.parsedCommandLine;un.assert(!!a.fileNames);const s=a.options;e.projectOptions||(e.projectOptions={configHasExtendsProperty:void 0!==a.raw.extends,configHasFilesProperty:void 0!==a.raw.files,configHasIncludeProperty:void 0!==a.raw.include,configHasExcludeProperty:void 0!==a.raw.exclude}),e.parsedCommandLine=a,e.setProjectErrors(a.options.configFile.parseDiagnostics),e.updateReferences(a.projectReferences);const c=this.getFilenameForExceededTotalSizeLimitForNonTsFiles(e.canonicalConfigFilePath,s,a.fileNames,tge);c?(e.disableLanguageService(c),this.configFileExistenceInfoCache.forEach((t,n)=>this.stopWatchingWildCards(n,e))):(e.setCompilerOptions(s),e.setWatchOptions(a.watchOptions),e.enableLanguageService(),this.watchWildcards(i,o,e)),e.enablePluginsWithOptions(s);const l=a.fileNames.concat(e.getExternalFiles(2));this.updateRootAndOptionsOfNonInferredProject(e,l,tge,s,a.typeAcquisition,a.compileOnSave,a.watchOptions),null==(r=Hn)||r.pop()}ensureParsedConfigUptoDate(e,t,n,r){var i,o,a;if(n.config&&(1===n.config.updateLevel&&this.reloadFileNamesOfParsedConfig(e,n.config),!n.config.updateLevel))return this.ensureConfigFileWatcherForProject(n,r),n;if(!n.exists&&n.config)return n.config.updateLevel=void 0,this.ensureConfigFileWatcherForProject(n,r),n;const s=(null==(i=n.config)?void 0:i.cachedDirectoryStructureHost)||wU(this.host,this.host.getCurrentDirectory(),this.host.useCaseSensitiveFileNames),c=bL(e,e=>this.host.readFile(e)),l=nO(e,Ze(c)?c:""),_=l.parseDiagnostics;Ze(c)||_.push(c);const u=Do(e),d=ej(l,s,u,void 0,e,void 0,this.hostConfiguration.extraFileExtensions,this.extendedConfigCache);d.errors.length&&_.push(...d.errors),this.logger.info(`Config: ${e} : ${JSON.stringify({rootNames:d.fileNames,options:d.options,watchOptions:d.watchOptions,projectReferences:d.projectReferences},void 0," ")}`);const p=null==(o=n.config)?void 0:o.parsedCommandLine;return n.config?(n.config.parsedCommandLine=d,n.config.watchedDirectoriesStale=!0,n.config.updateLevel=void 0):n.config={parsedCommandLine:d,cachedDirectoryStructureHost:s,projects:new Map},p||fT(this.getWatchOptionsFromProjectWatchOptions(void 0,u),this.getWatchOptionsFromProjectWatchOptions(d.watchOptions,u))||(null==(a=n.watcher)||a.close(),n.watcher=void 0),this.createConfigFileWatcherForParsedConfig(e,t,r),DU(t,d.options,this.sharedExtendedConfigFileWatchers,(t,n)=>this.watchFactory.watchFile(t,()=>{var e;EU(this.extendedConfigCache,n,e=>this.toPath(e));let r=!1;null==(e=this.sharedExtendedConfigFileWatchers.get(n))||e.projects.forEach(e=>{r=this.delayUpdateProjectsFromParsedConfigOnConfigFileChange(e,`Change in extended config file ${t} detected`)||r}),r&&this.delayEnsureProjectForOpenFiles()},2e3,this.hostConfiguration.watchOptions,F$.ExtendedConfigFile,e),e=>this.toPath(e)),n}watchWildcards(e,{exists:t,config:n},r){if(n.projects.set(r.canonicalConfigFilePath,!0),t){if(n.watchedDirectories&&!n.watchedDirectoriesStale)return;n.watchedDirectoriesStale=!1,AU(n.watchedDirectories||(n.watchedDirectories=new Map),n.parsedCommandLine.wildcardDirectories,(t,r)=>this.watchWildcardDirectory(t,r,e,n))}else{if(n.watchedDirectoriesStale=!1,!n.watchedDirectories)return;ux(n.watchedDirectories,RU),n.watchedDirectories=void 0}}stopWatchingWildCards(e,t){const n=this.configFileExistenceInfoCache.get(e);n.config&&n.config.projects.get(t.canonicalConfigFilePath)&&(n.config.projects.set(t.canonicalConfigFilePath,!1),rd(n.config.projects,st)||(n.config.watchedDirectories&&(ux(n.config.watchedDirectories,RU),n.config.watchedDirectories=void 0),n.config.watchedDirectoriesStale=void 0))}updateNonInferredProjectFiles(e,t,n){var r;const i=e.getRootFilesMap(),o=new Map;for(const a of t){const t=n.getFileName(a),s=jfe(t);let c;if(ame(s)||e.fileExists(t)){const t=n.getScriptKind(a,this.hostConfiguration.extraFileExtensions),r=n.hasMixedContent(a,this.hostConfiguration.extraFileExtensions),o=un.checkDefined(this.getOrCreateScriptInfoNotOpenedByClientForNormalizedPath(s,e.currentDirectory,t,r,e.directoryStructureHost,!1));c=o.path;const l=i.get(c);l&&l.info===o?l.fileName=s:(e.addRoot(o,s),o.isScriptOpen()&&this.removeRootOfInferredProjectIfNowPartOfOtherProject(o))}else{c=Mfe(s,this.currentDirectory,this.toCanonicalFileName);const t=i.get(c);t?((null==(r=t.info)?void 0:r.path)===c&&(e.removeFile(t.info,!1,!0),t.info=void 0),t.fileName=s):i.set(c,{fileName:s})}o.set(c,!0)}i.size>o.size&&i.forEach((t,n)=>{o.has(n)||(t.info?e.removeFile(t.info,e.fileExists(t.info.fileName),!0):i.delete(n))})}updateRootAndOptionsOfNonInferredProject(e,t,n,r,i,o,a){e.setCompilerOptions(r),e.setWatchOptions(a),void 0!==o&&(e.compileOnSaveEnabled=o),this.addFilesToNonInferredProject(e,t,n,i)}reloadFileNamesOfConfiguredProject(e){const t=this.reloadFileNamesOfParsedConfig(e.getConfigFilePath(),this.configFileExistenceInfoCache.get(e.canonicalConfigFilePath).config);return e.updateErrorOnNoInputFiles(t),this.updateNonInferredProjectFiles(e,t.fileNames.concat(e.getExternalFiles(1)),tge),e.markAsDirty(),e.updateGraph()}reloadFileNamesOfParsedConfig(e,t){if(void 0===t.updateLevel)return t.parsedCommandLine;un.assert(1===t.updateLevel);const n=jj(t.parsedCommandLine.options.configFile.configFileSpecs,Do(e),t.parsedCommandLine.options,t.cachedDirectoryStructureHost,this.hostConfiguration.extraFileExtensions);return t.parsedCommandLine={...t.parsedCommandLine,fileNames:n},t.updateLevel=void 0,t.parsedCommandLine}setFileNamesOfAutoImportProviderOrAuxillaryProject(e,t){this.updateNonInferredProjectFiles(e,t,tge)}reloadConfiguredProjectOptimized(e,t,n){n.has(e)||(n.set(e,6),e.initialLoadPending||this.setProjectForReload(e,2,t))}reloadConfiguredProjectClearingSemanticCache(e,t,n){return 7!==n.get(e)&&(n.set(e,7),this.clearSemanticCache(e),this.reloadConfiguredProject(e,Sge(t)),!0)}setProjectForReload(e,t,n){2===t&&this.clearSemanticCache(e),e.pendingUpdateReason=n&&Sge(n),e.pendingUpdateLevel=t}reloadConfiguredProject(e,t){e.initialLoadPending=!1,this.setProjectForReload(e,0),this.loadConfiguredProject(e,t),bge(e,e.triggerFileForConfigFileDiag??e.getConfigFilePath(),!0)}clearSemanticCache(e){e.originalConfiguredProjects=void 0,e.resolutionCache.clear(),e.getLanguageService(!1).cleanupSemanticCache(),e.cleanupProgram(),e.markAsDirty()}sendConfigFileDiagEvent(e,t,n){if(!this.eventHandler||this.suppressDiagnosticEvents)return!1;const r=e.getLanguageService().getCompilerOptionsDiagnostics();return r.push(...e.getAllProjectErrors()),!(!n&&r.length===(e.configDiagDiagnosticsReported??0)||(e.configDiagDiagnosticsReported=r.length,this.eventHandler({eventName:Lme,data:{configFileName:e.getConfigFilePath(),diagnostics:r,triggerFile:t??e.getConfigFilePath()}}),0))}getOrCreateInferredProjectForProjectRootPathIfEnabled(e,t){if(!this.useInferredProjectPerProjectRoot||e.isDynamic&&void 0===t)return;if(t){const e=this.toCanonicalFileName(t);for(const t of this.inferredProjects)if(t.projectRootPath===e)return t;return this.createInferredProject(t,!1,t)}let n;for(const t of this.inferredProjects)t.projectRootPath&&ea(t.projectRootPath,e.path,this.host.getCurrentDirectory(),!this.host.useCaseSensitiveFileNames)&&(n&&n.projectRootPath.length>t.projectRootPath.length||(n=t));return n}getOrCreateSingleInferredProjectIfEnabled(){if(this.useSingleInferredProject)return this.inferredProjects.length>0&&void 0===this.inferredProjects[0].projectRootPath?this.inferredProjects[0]:this.createInferredProject(this.currentDirectory,!0,void 0)}getOrCreateSingleInferredWithoutProjectRoot(e){un.assert(!this.useSingleInferredProject);const t=this.toCanonicalFileName(this.getNormalizedAbsolutePath(e));for(const e of this.inferredProjects)if(!e.projectRootPath&&e.isOrphan()&&e.canonicalCurrentDirectory===t)return e;return this.createInferredProject(e,!1,void 0)}createInferredProject(e,t,n){const r=n&&this.compilerOptionsForInferredProjectsPerProjectRoot.get(n)||this.compilerOptionsForInferredProjects;let i,o;n&&(i=this.watchOptionsForInferredProjectsPerProjectRoot.get(n),o=this.typeAcquisitionForInferredProjectsPerProjectRoot.get(n)),void 0===i&&(i=this.watchOptionsForInferredProjects),void 0===o&&(o=this.typeAcquisitionForInferredProjects),i=i||void 0;const a=new yme(this,r,null==i?void 0:i.watchOptions,n,e,o);return a.setProjectErrors(null==i?void 0:i.errors),t?this.inferredProjects.unshift(a):this.inferredProjects.push(a),a}getOrCreateScriptInfoNotOpenedByClient(e,t,n,r){return this.getOrCreateScriptInfoNotOpenedByClientForNormalizedPath(jfe(e),t,void 0,void 0,n,r)}getScriptInfo(e){return this.getScriptInfoForNormalizedPath(jfe(e))}getScriptInfoOrConfig(e){const t=jfe(e),n=this.getScriptInfoForNormalizedPath(t);if(n)return n;const r=this.configuredProjects.get(this.toPath(e));return r&&r.getCompilerOptions().configFile}logErrorForScriptInfoNotFound(e){const t=Oe(J(this.filenameToScriptInfo.entries(),e=>e[1].deferredDelete?void 0:e),([e,t])=>({path:e,fileName:t.fileName}));this.logger.msg(`Could not find file ${JSON.stringify(e)}.\nAll files are: ${JSON.stringify(t)}`,"Err")}getSymlinkedProjects(e){let t;if(this.realpathToScriptInfos){const t=e.getRealpathIfDifferent();t&&d(this.realpathToScriptInfos.get(t),n),d(this.realpathToScriptInfos.get(e.path),n)}return t;function n(n){if(n!==e)for(const r of n.containingProjects)!r.languageServiceEnabled||r.isOrphan()||r.getCompilerOptions().preserveSymlinks||e.isAttached(r)||(t?rd(t,(e,t)=>t!==n.path&&T(e,r))||t.add(n.path,r):(t=$e(),t.add(n.path,r)))}}watchClosedScriptInfo(e){if(un.assert(!e.fileWatcher),!(e.isDynamicOrHasMixedContent()||this.globalCacheLocationDirectoryPath&&Gt(e.path,this.globalCacheLocationDirectoryPath))){const t=e.fileName.indexOf("/node_modules/");this.host.getModifiedTime&&-1!==t?(e.mTime=this.getModifiedTime(e),e.fileWatcher=this.watchClosedScriptInfoInNodeModules(e.fileName.substring(0,t))):e.fileWatcher=this.watchFactory.watchFile(e.fileName,(t,n)=>this.onSourceFileChanged(e,n),500,this.hostConfiguration.watchOptions,F$.ClosedScriptInfo)}}createNodeModulesWatcher(e,t){let n=this.watchFactory.watchDirectory(e,e=>{var n;const i=qW(this.toPath(e));if(!i)return;const o=Fo(i);if(!(null==(n=r.affectedModuleSpecifierCacheProjects)?void 0:n.size)||"package.json"!==o&&"node_modules"!==o||r.affectedModuleSpecifierCacheProjects.forEach(e=>{var t;null==(t=e.getModuleSpecifierCache())||t.clear()}),r.refreshScriptInfoRefCount)if(t===i)this.refreshScriptInfosInDirectory(t);else{const e=this.filenameToScriptInfo.get(i);e?yge(e)&&this.refreshScriptInfo(e):xo(i)||this.refreshScriptInfosInDirectory(i)}},1,this.hostConfiguration.watchOptions,F$.NodeModules);const r={refreshScriptInfoRefCount:0,affectedModuleSpecifierCacheProjects:void 0,close:()=>{var e;!n||r.refreshScriptInfoRefCount||(null==(e=r.affectedModuleSpecifierCacheProjects)?void 0:e.size)||(n.close(),n=void 0,this.nodeModulesWatchers.delete(t))}};return this.nodeModulesWatchers.set(t,r),r}watchPackageJsonsInNodeModules(e,t){var n;const r=this.toPath(e),i=this.nodeModulesWatchers.get(r)||this.createNodeModulesWatcher(e,r);return un.assert(!(null==(n=i.affectedModuleSpecifierCacheProjects)?void 0:n.has(t))),(i.affectedModuleSpecifierCacheProjects||(i.affectedModuleSpecifierCacheProjects=new Set)).add(t),{close:()=>{var e;null==(e=i.affectedModuleSpecifierCacheProjects)||e.delete(t),i.close()}}}watchClosedScriptInfoInNodeModules(e){const t=e+"/node_modules",n=this.toPath(t),r=this.nodeModulesWatchers.get(n)||this.createNodeModulesWatcher(t,n);return r.refreshScriptInfoRefCount++,{close:()=>{r.refreshScriptInfoRefCount--,r.close()}}}getModifiedTime(e){return(this.host.getModifiedTime(e.fileName)||zi).getTime()}refreshScriptInfo(e){const t=this.getModifiedTime(e);if(t!==e.mTime){const n=Xi(e.mTime,t);e.mTime=t,this.onSourceFileChanged(e,n)}}refreshScriptInfosInDirectory(e){e+=lo,this.filenameToScriptInfo.forEach(t=>{yge(t)&&Gt(t.path,e)&&this.refreshScriptInfo(t)})}stopWatchingScriptInfo(e){e.fileWatcher&&(e.fileWatcher.close(),e.fileWatcher=void 0)}getOrCreateScriptInfoNotOpenedByClientForNormalizedPath(e,t,n,r,i,o){if(go(e)||ame(e))return this.getOrCreateScriptInfoWorker(e,t,!1,void 0,n,!!r,i,o);return this.openFilesWithNonRootedDiskPath.get(this.toCanonicalFileName(e))||void 0}getOrCreateScriptInfoForNormalizedPath(e,t,n,r,i,o){return this.getOrCreateScriptInfoWorker(e,this.currentDirectory,t,n,r,!!i,o,!1)}getOrCreateScriptInfoWorker(e,t,n,r,i,o,a,s){un.assert(void 0===r||n,"ScriptInfo needs to be opened by client to be able to set its user defined content");const c=Mfe(e,t,this.toCanonicalFileName);let l=this.filenameToScriptInfo.get(c);if(l){if(l.deferredDelete){if(un.assert(!l.isDynamic),!n&&!(a||this.host).fileExists(e))return s?l:void 0;l.deferredDelete=void 0}}else{const r=ame(e);if(un.assert(go(e)||r||n,"",()=>`${JSON.stringify({fileName:e,currentDirectory:t,hostCurrentDirectory:this.currentDirectory,openKeys:Oe(this.openFilesWithNonRootedDiskPath.keys())})}\nScript info with non-dynamic relative file name can only be open script info or in context of host currentDirectory`),un.assert(!go(e)||this.currentDirectory===t||!this.openFilesWithNonRootedDiskPath.has(this.toCanonicalFileName(e)),"",()=>`${JSON.stringify({fileName:e,currentDirectory:t,hostCurrentDirectory:this.currentDirectory,openKeys:Oe(this.openFilesWithNonRootedDiskPath.keys())})}\nOpen script files with non rooted disk path opened with current directory context cannot have same canonical names`),un.assert(!r||this.currentDirectory===t||this.useInferredProjectPerProjectRoot,"",()=>`${JSON.stringify({fileName:e,currentDirectory:t,hostCurrentDirectory:this.currentDirectory,openKeys:Oe(this.openFilesWithNonRootedDiskPath.keys())})}\nDynamic files must always be opened with service's current directory or service should support inferred project per projectRootPath.`),!n&&!r&&!(a||this.host).fileExists(e))return;l=new sme(this.host,e,i,o,c,this.filenameToScriptInfoVersion.get(c)),this.filenameToScriptInfo.set(l.path,l),this.filenameToScriptInfoVersion.delete(l.path),n?go(e)||r&&this.currentDirectory===t||this.openFilesWithNonRootedDiskPath.set(this.toCanonicalFileName(e),l):this.watchClosedScriptInfo(l)}return n&&(this.stopWatchingScriptInfo(l),l.open(r),o&&l.registerFileUpdate()),l}getScriptInfoForNormalizedPath(e){return!go(e)&&this.openFilesWithNonRootedDiskPath.get(this.toCanonicalFileName(e))||this.getScriptInfoForPath(Mfe(e,this.currentDirectory,this.toCanonicalFileName))}getScriptInfoForPath(e){const t=this.filenameToScriptInfo.get(e);return t&&t.deferredDelete?void 0:t}getDocumentPositionMapper(e,t,n){const r=this.getOrCreateScriptInfoNotOpenedByClient(t,e.currentDirectory,this.host,!1);if(!r)return void(n&&e.addGeneratedFileWatch(t,n));if(r.getSnapshot(),Ze(r.sourceMapFilePath)){const t=this.getScriptInfoForPath(r.sourceMapFilePath);if(t&&(t.getSnapshot(),void 0!==t.documentPositionMapper))return t.sourceInfos=this.addSourceInfoToSourceMap(n,e,t.sourceInfos),t.documentPositionMapper?t.documentPositionMapper:void 0;r.sourceMapFilePath=void 0}else{if(r.sourceMapFilePath)return void(r.sourceMapFilePath.sourceInfos=this.addSourceInfoToSourceMap(n,e,r.sourceMapFilePath.sourceInfos));if(void 0!==r.sourceMapFilePath)return}let i,o=(t,n)=>{const r=this.getOrCreateScriptInfoNotOpenedByClient(t,e.currentDirectory,this.host,!0);if(i=r||n,!r||r.deferredDelete)return;const o=r.getSnapshot();return void 0!==r.documentPositionMapper?r.documentPositionMapper:zQ(o)};const a=e.projectName,s=b1({getCanonicalFileName:this.toCanonicalFileName,log:e=>this.logger.info(e),getSourceFileLike:e=>this.getSourceFileLike(e,a,r)},r.fileName,r.textStorage.getLineInfo(),o);return o=void 0,i?Ze(i)?r.sourceMapFilePath={watcher:this.addMissingSourceMapFile(e.currentDirectory===this.currentDirectory?i:Bo(i,e.currentDirectory),r.path),sourceInfos:this.addSourceInfoToSourceMap(n,e)}:(r.sourceMapFilePath=i.path,i.declarationInfoPath=r.path,i.deferredDelete||(i.documentPositionMapper=s||!1),i.sourceInfos=this.addSourceInfoToSourceMap(n,e,i.sourceInfos)):r.sourceMapFilePath=!1,s}addSourceInfoToSourceMap(e,t,n){if(e){const r=this.getOrCreateScriptInfoNotOpenedByClient(e,t.currentDirectory,t.directoryStructureHost,!1);(n||(n=new Set)).add(r.path)}return n}addMissingSourceMapFile(e,t){return this.watchFactory.watchFile(e,()=>{const e=this.getScriptInfoForPath(t);e&&e.sourceMapFilePath&&!Ze(e.sourceMapFilePath)&&(this.delayUpdateProjectGraphs(e.containingProjects,!0),this.delayUpdateSourceInfoProjects(e.sourceMapFilePath.sourceInfos),e.closeSourceMapFileWatcher())},2e3,this.hostConfiguration.watchOptions,F$.MissingSourceMapFile)}getSourceFileLike(e,t,n){const r=t.projectName?t:this.findProject(t);if(r){const t=r.toPath(e),n=r.getSourceFile(t);if(n&&n.resolvedPath===t)return n}const i=this.getOrCreateScriptInfoNotOpenedByClient(e,(r||this).currentDirectory,r?r.directoryStructureHost:this.host,!1);if(i){if(n&&Ze(n.sourceMapFilePath)&&i!==n){const e=this.getScriptInfoForPath(n.sourceMapFilePath);e&&(e.sourceInfos??(e.sourceInfos=new Set)).add(i.path)}return i.cacheSourceFile?i.cacheSourceFile.sourceFile:(i.sourceFileLike||(i.sourceFileLike={get text(){return un.fail("shouldnt need text"),""},getLineAndCharacterOfPosition:e=>{const t=i.positionToLineOffset(e);return{line:t.line-1,character:t.offset-1}},getPositionOfLineAndCharacter:(e,t,n)=>i.lineOffsetToPosition(e+1,t+1,n)}),i.sourceFileLike)}}setPerformanceEventHandler(e){this.performanceEventHandler=e}setHostConfiguration(e){var t;if(e.file){const t=this.getScriptInfoForNormalizedPath(jfe(e.file));t&&(t.setOptions(Kme(e.formatOptions),e.preferences),this.logger.info(`Host configuration update for file ${e.file}`))}else{if(void 0!==e.hostInfo&&(this.hostConfiguration.hostInfo=e.hostInfo,this.logger.info(`Host information ${e.hostInfo}`)),e.formatOptions&&(this.hostConfiguration.formatCodeOptions={...this.hostConfiguration.formatCodeOptions,...Kme(e.formatOptions)},this.logger.info("Format host information updated")),e.preferences){const{lazyConfiguredProjectsFromExternalProject:t,includePackageJsonAutoImports:n,includeCompletionsForModuleExports:r}=this.hostConfiguration.preferences;this.hostConfiguration.preferences={...this.hostConfiguration.preferences,...e.preferences},t&&!this.hostConfiguration.preferences.lazyConfiguredProjectsFromExternalProject&&this.externalProjectToConfiguredProjectMap.forEach(e=>e.forEach(e=>{e.deferredClose||e.isClosed()||2!==e.pendingUpdateLevel||this.hasPendingProjectUpdate(e)||e.updateGraph()})),n===e.preferences.includePackageJsonAutoImports&&!!r==!!e.preferences.includeCompletionsForModuleExports||this.forEachProject(e=>{e.onAutoImportProviderSettingsChanged()})}if(e.extraFileExtensions&&(this.hostConfiguration.extraFileExtensions=e.extraFileExtensions,this.reloadProjects(),this.logger.info("Host file extension mappings updated")),e.watchOptions){const n=null==(t=Xme(e.watchOptions))?void 0:t.watchOptions,r=aj(n,this.currentDirectory);this.hostConfiguration.watchOptions=r,this.hostConfiguration.beforeSubstitution=r===n?void 0:n,this.logger.info(`Host watch options changed to ${JSON.stringify(this.hostConfiguration.watchOptions)}, it will be take effect for next watches.`)}}}getWatchOptions(e){return this.getWatchOptionsFromProjectWatchOptions(e.getWatchOptions(),e.getCurrentDirectory())}getWatchOptionsFromProjectWatchOptions(e,t){const n=this.hostConfiguration.beforeSubstitution?aj(this.hostConfiguration.beforeSubstitution,t):this.hostConfiguration.watchOptions;return e&&n?{...n,...e}:e||n}closeLog(){this.logger.close()}sendSourceFileChange(e){this.filenameToScriptInfo.forEach(t=>{if(this.openFiles.has(t.path))return;if(!t.fileWatcher)return;const n=dt(()=>this.host.fileExists(t.fileName)?t.deferredDelete?0:1:2);if(e){if(yge(t)||!t.path.startsWith(e))return;if(2===n()&&t.deferredDelete)return;this.logger.info(`Invoking sourceFileChange on ${t.fileName}:: ${n()}`)}this.onSourceFileChanged(t,n())})}reloadProjects(){this.logger.info("reload projects."),this.sendSourceFileChange(void 0),this.pendingProjectUpdates.forEach((e,t)=>{this.throttledOperations.cancel(t),this.pendingProjectUpdates.delete(t)}),this.throttledOperations.cancel(qme),this.pendingOpenFileProjectUpdates=void 0,this.pendingEnsureProjectForOpenFiles=!1,this.configFileExistenceInfoCache.forEach(e=>{e.config&&(e.config.updateLevel=2,e.config.cachedDirectoryStructureHost.clearCache())}),this.configFileForOpenFiles.clear(),this.externalProjects.forEach(e=>{this.clearSemanticCache(e),e.updateGraph()});const e=new Map,t=new Set;this.externalProjectToConfiguredProjectMap.forEach((t,n)=>{const r=`Reloading configured project in external project: ${n}`;t.forEach(t=>{this.getHostPreferences().lazyConfiguredProjectsFromExternalProject?this.reloadConfiguredProjectOptimized(t,r,e):this.reloadConfiguredProjectClearingSemanticCache(t,r,e)})}),this.openFiles.forEach((n,r)=>{const i=this.getScriptInfoForPath(r);b(i.containingProjects,wme)||this.tryFindDefaultConfiguredProjectAndLoadAncestorsForOpenScriptInfo(i,7,e,t)}),t.forEach(t=>e.set(t,7)),this.inferredProjects.forEach(e=>this.clearSemanticCache(e)),this.ensureProjectForOpenFiles(),this.cleanupProjectsAndScriptInfos(e,new Set(this.openFiles.keys()),new Set(this.externalProjectToConfiguredProjectMap.keys())),this.logger.info("After reloading projects.."),this.printProjects()}removeRootOfInferredProjectIfNowPartOfOtherProject(e){un.assert(e.containingProjects.length>0);const t=e.containingProjects[0];!t.isOrphan()&&Tme(t)&&t.isRoot(e)&&d(e.containingProjects,e=>e!==t&&!e.isOrphan())&&t.removeFile(e,!0,!0)}ensureProjectForOpenFiles(){this.logger.info("Before ensureProjectForOpenFiles:"),this.printProjects();const e=this.pendingOpenFileProjectUpdates;this.pendingOpenFileProjectUpdates=void 0,null==e||e.forEach((e,t)=>this.tryFindDefaultConfiguredProjectAndLoadAncestorsForOpenScriptInfo(this.getScriptInfoForPath(t),5)),this.openFiles.forEach((e,t)=>{const n=this.getScriptInfoForPath(t);n.isOrphan()?this.assignOrphanScriptInfoToInferredProject(n,e):this.removeRootOfInferredProjectIfNowPartOfOtherProject(n)}),this.pendingEnsureProjectForOpenFiles=!1,this.inferredProjects.forEach(vge),this.logger.info("After ensureProjectForOpenFiles:"),this.printProjects()}openClientFile(e,t,n,r){return this.openClientFileWithNormalizedPath(jfe(e),t,n,!1,r?jfe(r):void 0)}getOriginalLocationEnsuringConfiguredProject(e,t){const n=e.isSourceOfProjectReferenceRedirect(t.fileName),r=n?t:e.getSourceMapper().tryGetSourcePosition(t);if(!r)return;const{fileName:i}=r,o=this.getScriptInfo(i);if(!o&&!this.host.fileExists(i))return;const a={fileName:jfe(i),path:this.toPath(i)},s=this.getConfigFileNameForFile(a,!1);if(!s)return;let c=this.findConfiguredProjectByProjectName(s);if(!c){if(e.getCompilerOptions().disableReferencedProjectLoad)return n?t:(null==o?void 0:o.containingProjects.length)?r:t;c=this.createConfiguredProject(s,`Creating project for original file: ${a.fileName}${t!==r?" for location: "+t.fileName:""}`)}const l=this.tryFindDefaultConfiguredProjectForOpenScriptInfoOrClosedFileInfo(a,5,pge(c,4),e=>`Creating project referenced in solution ${e.projectName} to find possible configured project for original file: ${a.fileName}${t!==r?" for location: "+t.fileName:""}`);if(!l.defaultProject)return;if(l.defaultProject===e)return r;u(l.defaultProject);const _=this.getScriptInfo(i);if(_&&_.containingProjects.length)return _.containingProjects.forEach(e=>{Cme(e)&&u(e)}),r;function u(t){(e.originalConfiguredProjects??(e.originalConfiguredProjects=new Set)).add(t.canonicalConfigFilePath)}}fileExists(e){return!!this.getScriptInfoForNormalizedPath(e)||this.host.fileExists(e)}findExternalProjectContainingOpenScriptInfo(e){return b(this.externalProjects,t=>(vge(t),t.containsScriptInfo(e)))}getOrCreateOpenScriptInfo(e,t,n,r,i){const o=this.getOrCreateScriptInfoWorker(e,i?this.getNormalizedAbsolutePath(i):this.currentDirectory,!0,t,n,!!r,void 0,!0);return this.openFiles.set(o.path,i),o}assignProjectToOpenedScriptInfo(e){let t,n,r,i;if(!this.findExternalProjectContainingOpenScriptInfo(e)&&0===this.serverMode){const o=this.tryFindDefaultConfiguredProjectAndLoadAncestorsForOpenScriptInfo(e,5);o&&(r=o.seenProjects,i=o.sentConfigDiag,o.defaultProject&&(t=o.defaultProject.getConfigFilePath(),n=o.defaultProject.getAllProjectErrors()))}return e.containingProjects.forEach(vge),e.isOrphan()&&(null==r||r.forEach((t,n)=>{4===t||i.has(n)||this.sendConfigFileDiagEvent(n,e.fileName,!0)}),un.assert(this.openFiles.has(e.path)),this.assignOrphanScriptInfoToInferredProject(e,this.openFiles.get(e.path))),un.assert(!e.isOrphan()),{configFileName:t,configFileErrors:n,retainProjects:r}}findCreateOrReloadConfiguredProject(e,t,n,r,i,o,a,s,c){let l,_=c??this.findConfiguredProjectByProjectName(e,r),u=!1;switch(t){case 0:case 1:case 3:if(!_)return;break;case 2:if(!_)return;l=function(e){return kge(e)?e.projectService.configFileExistenceInfoCache.get(e.canonicalConfigFilePath):void 0}(_);break;case 4:case 5:_??(_=this.createConfiguredProject(e,n)),a||({sentConfigFileDiag:u,configFileExistenceInfo:l}=pge(_,t,i));break;case 6:if(_??(_=this.createConfiguredProject(e,Sge(n))),_.projectService.reloadConfiguredProjectOptimized(_,n,o),l=xge(_),l)break;case 7:_??(_=this.createConfiguredProject(e,Sge(n))),u=!s&&this.reloadConfiguredProjectClearingSemanticCache(_,n,o),!s||s.has(_)||o.has(_)||(this.setProjectForReload(_,2,n),s.add(_));break;default:un.assertNever(t)}return{project:_,sentConfigFileDiag:u,configFileExistenceInfo:l,reason:n}}tryFindDefaultConfiguredProjectForOpenScriptInfo(e,t,n,r){const i=this.getConfigFileNameForFile(e,t<=3);if(!i)return;const o=_ge(t),a=this.findCreateOrReloadConfiguredProject(i,o,function(e){return`Creating possible configured project for ${e.fileName} to open`}(e),n,e.fileName,r);return a&&this.tryFindDefaultConfiguredProjectForOpenScriptInfoOrClosedFileInfo(e,t,a,t=>`Creating project referenced in solution ${t.projectName} to find possible configured project for ${e.fileName} to open`,n,r)}isMatchedByConfig(e,t,n){if(t.fileNames.some(e=>this.toPath(e)===n.path))return!0;if(BS(n.fileName,t.options,this.hostConfiguration.extraFileExtensions))return!1;const{validatedFilesSpec:r,validatedIncludeSpecs:i,validatedExcludeSpecs:o}=t.options.configFile.configFileSpecs,a=jfe(Bo(Do(e),this.currentDirectory));return!!(null==r?void 0:r.some(e=>this.toPath(Bo(e,a))===n.path))||!!(null==i?void 0:i.length)&&!Jj(n.fileName,o,this.host.useCaseSensitiveFileNames,this.currentDirectory,a)&&(null==i?void 0:i.some(e=>{const t=dS(e,a,"files");return!!t&&gS(`(${t})$`,this.host.useCaseSensitiveFileNames).test(n.fileName)}))}tryFindDefaultConfiguredProjectForOpenScriptInfoOrClosedFileInfo(e,t,n,r,i,o){const a=sge(e),s=_ge(t),c=new Map;let l;const _=new Set;let u,d,p,f;return function t(n){return function(e,t){return e.sentConfigFileDiag&&_.add(e.project),e.configFileExistenceInfo?m(e.configFileExistenceInfo,e.project,jfe(e.project.getConfigFilePath()),e.reason,e.project,e.project.canonicalConfigFilePath):g(e.project,t)}(n,n.project)??((c=n.project).parsedCommandLine&&dge(c,c.parsedCommandLine,m,s,r(c),i,o))??function(n){return a?uge(e,n,t,s,`Creating possible configured project for ${e.fileName} to open`,i,o,!1):void 0}(n.project);var c}(n),{defaultProject:u??d,tsconfigProject:p??f,sentConfigDiag:_,seenProjects:c,seenConfigs:l};function m(n,r,a,u,d,p){if(r){if(c.has(r))return;c.set(r,s)}else{if(null==l?void 0:l.has(p))return;(l??(l=new Set)).add(p)}if(!d.projectService.isMatchedByConfig(a,n.config.parsedCommandLine,e))return void(d.languageServiceEnabled&&d.projectService.watchWildcards(a,n,d));const f=r?pge(r,t,e.fileName,u,o):d.projectService.findCreateOrReloadConfiguredProject(a,t,u,i,e.fileName,o);if(f)return c.set(f.project,s),f.sentConfigFileDiag&&_.add(f.project),g(f.project,d);un.assert(3===t)}function g(n,r){if(c.get(n)===t)return;c.set(n,t);const i=a?e:n.projectService.getScriptInfo(e.fileName),o=i&&n.containsScriptInfo(i);if(o&&!n.isSourceOfProjectReferenceRedirect(i.path))return p=r,u=n;!d&&a&&o&&(f=r,d=n)}}tryFindDefaultConfiguredProjectAndLoadAncestorsForOpenScriptInfo(e,t,n,r){const i=1===t,o=this.tryFindDefaultConfiguredProjectForOpenScriptInfo(e,t,i,n);if(!o)return;const{defaultProject:a,tsconfigProject:s,seenProjects:c}=o;return a&&uge(e,s,e=>{c.set(e.project,t)},t,`Creating project possibly referencing default composite project ${a.getProjectName()} of open file ${e.fileName}`,i,n,!0,r),o}loadAncestorProjectTree(e){e??(e=new Set(J(this.configuredProjects.entries(),([e,t])=>t.initialLoadPending?void 0:e)));const t=new Set,n=Oe(this.configuredProjects.values());for(const r of n)fge(r,t=>e.has(t))&&vge(r),this.ensureProjectChildren(r,e,t)}ensureProjectChildren(e,t,n){var r;if(!q(n,e.canonicalConfigFilePath))return;if(e.getCompilerOptions().disableReferencedProjectLoad)return;const i=null==(r=e.getCurrentProgram())?void 0:r.getResolvedProjectReferences();if(i)for(const r of i){if(!r)continue;const i=IC(r.references,e=>t.has(e.sourceFile.path)?e:void 0);if(!i)continue;const o=jfe(r.sourceFile.fileName),a=this.findConfiguredProjectByProjectName(o)??this.createConfiguredProject(o,`Creating project referenced by : ${e.projectName} as it references project ${i.sourceFile.fileName}`);vge(a),this.ensureProjectChildren(a,t,n)}}cleanupConfiguredProjects(e,t,n){this.getOrphanConfiguredProjects(e,n,t).forEach(e=>this.removeProject(e))}cleanupProjectsAndScriptInfos(e,t,n){this.cleanupConfiguredProjects(e,n,t);for(const e of this.inferredProjects.slice())e.isOrphan()&&this.removeProject(e);this.removeOrphanScriptInfos()}tryInvokeWildCardDirectories(e){this.configFileExistenceInfoCache.forEach((t,n)=>{var r,i;(null==(r=t.config)?void 0:r.parsedCommandLine)&&!T(t.config.parsedCommandLine.fileNames,e.fileName,this.host.useCaseSensitiveFileNames?ht:gt)&&(null==(i=t.config.watchedDirectories)||i.forEach((r,i)=>{ea(i,e.fileName,!this.host.useCaseSensitiveFileNames)&&(this.logger.info(`Invoking ${n}:: wildcard for open scriptInfo:: ${e.fileName}`),this.onWildCardDirectoryWatcherInvoke(i,n,t.config,r.watcher,e.fileName))}))})}openClientFileWithNormalizedPath(e,t,n,r,i){const o=this.getScriptInfoForPath(Mfe(e,i?this.getNormalizedAbsolutePath(i):this.currentDirectory,this.toCanonicalFileName)),a=this.getOrCreateOpenScriptInfo(e,t,n,r,i);o||!a||a.isDynamic||this.tryInvokeWildCardDirectories(a);const{retainProjects:s,...c}=this.assignProjectToOpenedScriptInfo(a);return this.cleanupProjectsAndScriptInfos(s,new Set([a.path]),void 0),this.telemetryOnOpenFile(a),this.printProjects(),c}getOrphanConfiguredProjects(e,t,n){const r=new Set(this.configuredProjects.values()),i=e=>{!e.originalConfiguredProjects||!Cme(e)&&e.isOrphan()||e.originalConfiguredProjects.forEach((e,t)=>{const n=this.getConfiguredProjectByCanonicalConfigFilePath(t);return n&&s(n)})};return null==e||e.forEach((e,t)=>s(t)),r.size?(this.inferredProjects.forEach(i),this.externalProjects.forEach(i),this.externalProjectToConfiguredProjectMap.forEach((e,t)=>{(null==n?void 0:n.has(t))||e.forEach(s)}),r.size?(rd(this.openFiles,(e,n)=>{if(null==t?void 0:t.has(n))return;const i=this.getScriptInfoForPath(n);if(b(i.containingProjects,wme))return;const o=this.tryFindDefaultConfiguredProjectAndLoadAncestorsForOpenScriptInfo(i,1);return(null==o?void 0:o.defaultProject)&&(null==o||o.seenProjects.forEach((e,t)=>s(t)),!r.size)?r:void 0}),r.size?(rd(this.configuredProjects,e=>{if(r.has(e)&&(a(e)||gge(e,o))&&(s(e),!r.size))return r}),r):r):r):r;function o(e){return!r.has(e)||a(e)}function a(e){var t,n;return(e.deferredClose||e.projectService.hasPendingProjectUpdate(e))&&!!(null==(n=null==(t=e.projectService.configFileExistenceInfoCache.get(e.canonicalConfigFilePath))?void 0:t.openFilesImpactedByConfigFile)?void 0:n.size)}function s(e){r.delete(e)&&(i(e),gge(e,s))}}removeOrphanScriptInfos(){const e=new Map(this.filenameToScriptInfo);this.filenameToScriptInfo.forEach(t=>{if(!t.deferredDelete){if(!t.isScriptOpen()&&t.isOrphan()&&!lme(t)&&!cme(t)){if(!t.sourceMapFilePath)return;let e;if(Ze(t.sourceMapFilePath)){const n=this.filenameToScriptInfo.get(t.sourceMapFilePath);e=null==n?void 0:n.sourceInfos}else e=t.sourceMapFilePath.sourceInfos;if(!e)return;if(!id(e,e=>{const t=this.getScriptInfoForPath(e);return!!t&&(t.isScriptOpen()||!t.isOrphan())}))return}if(e.delete(t.path),t.sourceMapFilePath){let n;if(Ze(t.sourceMapFilePath)){const r=this.filenameToScriptInfo.get(t.sourceMapFilePath);(null==r?void 0:r.deferredDelete)?t.sourceMapFilePath={watcher:this.addMissingSourceMapFile(r.fileName,t.path),sourceInfos:r.sourceInfos}:e.delete(t.sourceMapFilePath),n=null==r?void 0:r.sourceInfos}else n=t.sourceMapFilePath.sourceInfos;n&&n.forEach((t,n)=>e.delete(n))}}}),e.forEach(e=>this.deleteScriptInfo(e))}telemetryOnOpenFile(e){if(0!==this.serverMode||!this.eventHandler||!e.isJavaScript()||!bx(this.allJsFilesForOpenFileTelemetry,e.path))return;const t=this.ensureDefaultProjectForFile(e);if(!t.languageServiceEnabled)return;const n=t.getSourceFile(e.path),r=!!n&&!!n.checkJsDirective;this.eventHandler({eventName:Rme,data:{info:{checkJs:r}}})}closeClientFile(e,t){const n=this.getScriptInfoForNormalizedPath(jfe(e)),r=!!n&&this.closeOpenFile(n,t);return t||this.printProjects(),r}collectChanges(e,t,n,r){for(const i of t){const t=b(e,e=>e.projectName===i.getProjectName());r.push(i.getChangesSinceVersion(t&&t.version,n))}}synchronizeProjectList(e,t){const n=[];return this.collectChanges(e,this.externalProjects,t,n),this.collectChanges(e,J(this.configuredProjects.values(),e=>e.deferredClose?void 0:e),t,n),this.collectChanges(e,this.inferredProjects,t,n),n}applyChangesInOpenFiles(e,t,n){let r,i,o,a=!1;if(e)for(const t of e){(r??(r=[])).push(this.getScriptInfoForPath(Mfe(jfe(t.fileName),t.projectRootPath?this.getNormalizedAbsolutePath(t.projectRootPath):this.currentDirectory,this.toCanonicalFileName)));const e=this.getOrCreateOpenScriptInfo(jfe(t.fileName),t.content,Yme(t.scriptKind),t.hasMixedContent,t.projectRootPath?jfe(t.projectRootPath):void 0);(i||(i=[])).push(e)}if(t)for(const e of t){const t=this.getScriptInfo(e.fileName);un.assert(!!t),this.applyChangesToFile(t,e.changes)}if(n)for(const e of n)a=this.closeClientFile(e,!0)||a;d(r,(e,t)=>e||!i[t]||i[t].isDynamic?void 0:this.tryInvokeWildCardDirectories(i[t])),null==i||i.forEach(e=>{var t;return null==(t=this.assignProjectToOpenedScriptInfo(e).retainProjects)?void 0:t.forEach((e,t)=>(o??(o=new Map)).set(t,e))}),a&&this.assignOrphanScriptInfosToInferredProject(),i?(this.cleanupProjectsAndScriptInfos(o,new Set(i.map(e=>e.path)),void 0),i.forEach(e=>this.telemetryOnOpenFile(e)),this.printProjects()):u(n)&&this.printProjects()}applyChangesToFile(e,t){for(const n of t)e.editContent(n.span.start,n.span.start+n.span.length,n.newText)}closeExternalProject(e,t){const n=jfe(e);if(this.externalProjectToConfiguredProjectMap.get(n))this.externalProjectToConfiguredProjectMap.delete(n);else{const t=this.findExternalProjectByProjectName(e);t&&this.removeProject(t)}t&&(this.cleanupConfiguredProjects(),this.printProjects())}openExternalProjects(e){const t=new Set(this.externalProjects.map(e=>e.getProjectName()));this.externalProjectToConfiguredProjectMap.forEach((e,n)=>t.add(n));for(const n of e)this.openExternalProject(n,!1),t.delete(n.projectFileName);t.forEach(e=>this.closeExternalProject(e,!1)),this.cleanupConfiguredProjects(),this.printProjects()}static escapeFilenameForRegex(e){return e.replace(this.filenameEscapeRegexp,"\\$&")}resetSafeList(){this.safelist=Hme}applySafeList(e){const t=e.typeAcquisition;un.assert(!!t,"proj.typeAcquisition should be set by now");const n=this.applySafeListWorker(e,e.rootFiles,t);return(null==n?void 0:n.excludedFiles)??[]}applySafeListWorker(t,n,r){if(!1===r.enable||r.disableFilenameBasedTypeAcquisition)return;const i=r.include||(r.include=[]),o=[],a=n.map(e=>Oo(e.fileName));for(const t of Object.keys(this.safelist)){const n=this.safelist[t];for(const r of a)if(n.match.test(r)){if(this.logger.info(`Excluding files based on rule ${t} matching file '${r}'`),n.types)for(const e of n.types)i.includes(e)||i.push(e);if(n.exclude)for(const i of n.exclude){const a=r.replace(n.match,(...n)=>i.map(r=>"number"==typeof r?Ze(n[r])?e.escapeFilenameForRegex(n[r]):(this.logger.info(`Incorrect RegExp specification in safelist rule ${t} - not enough groups`),"\\*"):r).join(""));o.includes(a)||o.push(a)}else{const t=e.escapeFilenameForRegex(r);o.includes(t)||o.push(t)}}}const s=o.map(e=>new RegExp(e,"i"));let c,l;for(let e=0;et.test(a[e])))_(e);else{if(r.enable){const t=Fo(_t(a[e]));if(ko(t,"js")){const n=Jt(US(t)),r=this.legacySafelist.get(n);if(void 0!==r){this.logger.info(`Excluded '${a[e]}' because it matched ${n} from the legacy safelist`),_(e),i.includes(r)||i.push(r);continue}}}/^.+[.-]min\.js$/.test(a[e])?_(e):null==c||c.push(n[e])}return l?{rootFiles:c,excludedFiles:l}:void 0;function _(e){l||(un.assert(!c),c=n.slice(0,e),l=[]),l.push(a[e])}}openExternalProject(e,t){const n=this.findExternalProjectByProjectName(e.projectFileName);let r,i=[];for(const t of e.rootFiles){const n=jfe(t.fileName);if(Hfe(n)){if(0===this.serverMode&&this.host.fileExists(n)){let t=this.findConfiguredProjectByProjectName(n);t||(t=this.createConfiguredProject(n,`Creating configured project in external project: ${e.projectFileName}`),this.getHostPreferences().lazyConfiguredProjectsFromExternalProject||t.updateGraph()),(r??(r=new Set)).add(t),un.assert(!t.isClosed())}}else i.push(t)}if(r)this.externalProjectToConfiguredProjectMap.set(e.projectFileName,r),n&&this.removeProject(n);else{this.externalProjectToConfiguredProjectMap.delete(e.projectFileName);const t=e.typeAcquisition||{};t.include=t.include||[],t.exclude=t.exclude||[],void 0===t.enable&&(t.enable=fme(i.map(e=>e.fileName)));const r=this.applySafeListWorker(e,i,t),o=(null==r?void 0:r.excludedFiles)??[];if(i=(null==r?void 0:r.rootFiles)??i,n){n.excludedFiles=o;const r=Gme(e.options),a=Xme(e.options,n.getCurrentDirectory()),s=this.getFilenameForExceededTotalSizeLimitForNonTsFiles(e.projectFileName,r,i,nge);s?n.disableLanguageService(s):n.enableLanguageService(),n.setProjectErrors(null==a?void 0:a.errors),this.updateRootAndOptionsOfNonInferredProject(n,i,nge,r,t,e.options.compileOnSave,null==a?void 0:a.watchOptions),n.updateGraph()}else this.createExternalProject(e.projectFileName,i,e.options,t,o).updateGraph()}t&&(this.cleanupConfiguredProjects(r,new Set([e.projectFileName])),this.printProjects())}hasDeferredExtension(){for(const e of this.hostConfiguration.extraFileExtensions)if(7===e.scriptKind)return!0;return!1}requestEnablePlugin(e,t,n){if(this.host.importPlugin||this.host.require)if(this.logger.info(`Enabling plugin ${t.name} from candidate paths: ${n.join(",")}`),!t.name||Cs(t.name)||/[\\/]\.\.?(?:$|[\\/])/.test(t.name))this.logger.info(`Skipped loading plugin ${t.name||JSON.stringify(t)} because only package name is allowed plugin name`);else{if(this.host.importPlugin){const r=hme.importServicePluginAsync(t,n,this.host,e=>this.logger.info(e));this.pendingPluginEnablements??(this.pendingPluginEnablements=new Map);let i=this.pendingPluginEnablements.get(e);return i||this.pendingPluginEnablements.set(e,i=[]),void i.push(r)}this.endEnablePlugin(e,hme.importServicePluginSync(t,n,this.host,e=>this.logger.info(e)))}else this.logger.info("Plugins were requested but not running in environment that supports 'require'. Nothing will be loaded")}endEnablePlugin(e,{pluginConfigEntry:t,resolvedModule:n,errorLogs:r}){var i;if(n){const r=null==(i=this.currentPluginConfigOverrides)?void 0:i.get(t.name);if(r){const e=t.name;(t=r).name=e}e.enableProxy(n,t)}else d(r,e=>this.logger.info(e)),this.logger.info(`Couldn't find ${t.name}`)}hasNewPluginEnablementRequests(){return!!this.pendingPluginEnablements}hasPendingPluginEnablements(){return!!this.currentPluginEnablementPromise}async waitForPendingPlugins(){for(;this.currentPluginEnablementPromise;)await this.currentPluginEnablementPromise}enableRequestedPlugins(){this.pendingPluginEnablements&&this.enableRequestedPluginsAsync()}async enableRequestedPluginsAsync(){if(this.currentPluginEnablementPromise&&await this.waitForPendingPlugins(),!this.pendingPluginEnablements)return;const e=Oe(this.pendingPluginEnablements.entries());this.pendingPluginEnablements=void 0,this.currentPluginEnablementPromise=this.enableRequestedPluginsWorker(e),await this.currentPluginEnablementPromise}async enableRequestedPluginsWorker(e){un.assert(void 0===this.currentPluginEnablementPromise);let t=!1;await Promise.all(E(e,async([e,n])=>{const r=await Promise.all(n);if(e.isClosed()||Dme(e))this.logger.info(`Cancelling plugin enabling for ${e.getProjectName()} as it is ${e.isClosed()?"closed":"deferred close"}`);else{t=!0;for(const t of r)this.endEnablePlugin(e,t);this.delayUpdateProjectGraph(e)}})),this.currentPluginEnablementPromise=void 0,t&&this.sendProjectsUpdatedInBackgroundEvent()}configurePlugin(e){this.forEachEnabledProject(t=>t.onPluginConfigurationChanged(e.pluginName,e.configuration)),this.currentPluginConfigOverrides=this.currentPluginConfigOverrides||new Map,this.currentPluginConfigOverrides.set(e.pluginName,e.configuration)}getPackageJsonsVisibleToFile(e,t,n){const r=this.packageJsonCache,i=n&&this.toPath(n),o=[],a=e=>{switch(r.directoryHasPackageJson(e)){case 3:return r.searchDirectoryAndAncestors(e,t),a(e);case-1:const n=jo(e,"package.json");this.watchPackageJsonFile(n,this.toPath(n),t);const i=r.getInDirectory(e);i&&o.push(i)}if(i&&i===e)return!0};return TR(t,Do(e),a),o}getNearestAncestorDirectoryWithPackageJson(e,t){return TR(t,e,e=>{switch(this.packageJsonCache.directoryHasPackageJson(e)){case-1:return e;case 0:return;case 3:return this.host.fileExists(jo(e,"package.json"))?e:void 0}})}watchPackageJsonFile(e,t,n){un.assert(void 0!==n);let r=(this.packageJsonFilesMap??(this.packageJsonFilesMap=new Map)).get(t);if(!r){let n=this.watchFactory.watchFile(e,(e,n)=>{switch(n){case 0:case 1:this.packageJsonCache.addOrUpdate(e,t),this.onPackageJsonChange(r);break;case 2:this.packageJsonCache.delete(t),this.onPackageJsonChange(r),r.projects.clear(),r.close()}},250,this.hostConfiguration.watchOptions,F$.PackageJson);r={projects:new Set,close:()=>{var e;!r.projects.size&&n&&(n.close(),n=void 0,null==(e=this.packageJsonFilesMap)||e.delete(t),this.packageJsonCache.invalidate(t))}},this.packageJsonFilesMap.set(t,r)}r.projects.add(n),(n.packageJsonWatches??(n.packageJsonWatches=new Set)).add(r)}onPackageJsonChange(e){e.projects.forEach(e=>{var t;return null==(t=e.onPackageJsonChange)?void 0:t.call(e)})}includePackageJsonAutoImports(){switch(this.hostConfiguration.preferences.includePackageJsonAutoImports){case"on":return 1;case"off":return 0;default:return 2}}getIncompleteCompletionsCache(){return this.incompleteCompletionsCache||(this.incompleteCompletionsCache=function(){let e;return{get:()=>e,set(t){e=t},clear(){e=void 0}}}())}};Dge.filenameEscapeRegexp=/[-/\\^$*+?.()|[\]{}]/g;var Fge=Dge;function Ege(e){return void 0!==e.kind}function Pge(e){e.print(!1,!1,!1)}function Age(e){let t,n,r;const i={get(e,t,i,o){if(n&&r===a(e,i,o))return n.get(t)},set(n,r,i,a,c,l,_){if(o(n,i,a).set(r,s(c,l,_,void 0,!1)),_)for(const n of l)if(n.isInNodeModules){const r=n.path.substring(0,n.path.indexOf(KM)+KM.length-1),i=e.toPath(r);(null==t?void 0:t.has(i))||(t||(t=new Map)).set(i,e.watchNodeModulesForPackageJsonChanges(r))}},setModulePaths(e,t,n,r,i){const a=o(e,n,r),c=a.get(t);c?c.modulePaths=i:a.set(t,s(void 0,i,void 0,void 0,void 0))},setBlockedByPackageJsonDependencies(e,t,n,r,i,a){const c=o(e,n,r),l=c.get(t);l?(l.isBlockedByPackageJsonDependencies=a,l.packageName=i):c.set(t,s(void 0,void 0,void 0,i,a))},clear(){null==t||t.forEach(nx),null==n||n.clear(),null==t||t.clear(),r=void 0},count:()=>n?n.size:0};return un.isDebugging&&Object.defineProperty(i,"__cache",{get:()=>n}),i;function o(e,t,o){const s=a(e,t,o);return n&&r!==s&&i.clear(),r=s,n||(n=new Map)}function a(e,t,n){return`${e},${t.importModuleSpecifierEnding},${t.importModuleSpecifierPreference},${n.overrideImportMode}`}function s(e,t,n,r,i){return{kind:e,modulePaths:t,moduleSpecifiers:n,packageName:r,isBlockedByPackageJsonDependencies:i}}}function Ige(e){const t=new Map,n=new Map;return{addOrUpdate:r,invalidate:function(e){t.delete(e),n.delete(Do(e))},delete:e=>{t.delete(e),n.set(Do(e),!0)},getInDirectory:n=>t.get(e.toPath(jo(n,"package.json")))||void 0,directoryHasPackageJson:t=>i(e.toPath(t)),searchDirectoryAndAncestors:(t,o)=>{TR(o,t,t=>{const o=e.toPath(t);if(3!==i(o))return!0;const a=jo(t,"package.json");SZ(e,a)?r(a,jo(o,"package.json")):n.set(o,!0)})}};function r(r,i){const o=un.checkDefined(FZ(r,e.host));t.set(i,o),n.delete(Do(i))}function i(e){return t.has(jo(e,"package.json"))?-1:n.has(e)?0:3}}var Oge={isCancellationRequested:()=>!1,setRequest:()=>{},resetRequest:()=>{}};function Lge(e,t){if((Tme(e)||wme(e))&&e.isJsOnlyProject()){const n=e.getScriptInfoForNormalizedPath(t);return n&&!n.isJavaScript()}return!1}function jge(e,t,n){const r=t.getScriptInfoForNormalizedPath(e);return{start:r.positionToLineOffset(n.start),end:r.positionToLineOffset(n.start+n.length),text:cV(n.messageText,"\n"),code:n.code,category:ci(n),reportsUnnecessary:n.reportsUnnecessary,reportsDeprecated:n.reportsDeprecated,source:n.source,relatedInformation:E(n.relatedInformation,Mge)}}function Mge(e){return e.file?{span:{start:Rge(za(e.file,e.start)),end:Rge(za(e.file,e.start+e.length)),file:e.file.fileName},message:cV(e.messageText,"\n"),category:ci(e),code:e.code}:{message:cV(e.messageText,"\n"),category:ci(e),code:e.code}}function Rge(e){return{line:e.line+1,offset:e.character+1}}function Bge(e,t){const n=e.file&&Rge(za(e.file,e.start)),r=e.file&&Rge(za(e.file,e.start+e.length)),i=cV(e.messageText,"\n"),{code:o,source:a}=e,s={start:n,end:r,text:i,code:o,category:ci(e),reportsUnnecessary:e.reportsUnnecessary,reportsDeprecated:e.reportsDeprecated,source:a,relatedInformation:E(e.relatedInformation,Mge)};return t?{...s,fileName:e.file&&e.file.fileName}:s}var Jge=Gfe;function zge(e,t,n,r){const i=t.hasLevel(3),o=JSON.stringify(e);return i&&t.info(`${e.type}:${aG(e)}`),`Content-Length: ${1+n(o,"utf8")}\r\n\r\n${o}${r}`}var qge=class{constructor(e){this.operationHost=e}startNew(e){this.complete(),this.requestId=this.operationHost.getCurrentRequestId(),this.executeAction(e)}complete(){void 0!==this.requestId&&(this.operationHost.sendRequestCompletedEvent(this.requestId,this.performanceData),this.requestId=void 0),this.setTimerHandle(void 0),this.setImmediateId(void 0),this.performanceData=void 0}immediate(e,t){const n=this.requestId;un.assert(n===this.operationHost.getCurrentRequestId(),"immediate: incorrect request id"),this.setImmediateId(this.operationHost.getServerHost().setImmediate(()=>{this.immediateId=void 0,this.operationHost.executeWithRequestId(n,()=>this.executeAction(t),this.performanceData)},e))}delay(e,t,n){const r=this.requestId;un.assert(r===this.operationHost.getCurrentRequestId(),"delay: incorrect request id"),this.setTimerHandle(this.operationHost.getServerHost().setTimeout(()=>{this.timerHandle=void 0,this.operationHost.executeWithRequestId(r,()=>this.executeAction(n),this.performanceData)},t,e))}executeAction(e){var t,n,r,i,o,a;let s=!1;try{this.operationHost.isCancellationRequested()?(s=!0,null==(t=Hn)||t.instant(Hn.Phase.Session,"stepCanceled",{seq:this.requestId,early:!0})):(null==(n=Hn)||n.push(Hn.Phase.Session,"stepAction",{seq:this.requestId}),e(this),null==(r=Hn)||r.pop())}catch(e){null==(i=Hn)||i.popAll(),s=!0,e instanceof Cr?null==(o=Hn)||o.instant(Hn.Phase.Session,"stepCanceled",{seq:this.requestId}):(null==(a=Hn)||a.instant(Hn.Phase.Session,"stepError",{seq:this.requestId,message:e.message}),this.operationHost.logError(e,`delayed processing of request ${this.requestId}`))}this.performanceData=this.operationHost.getPerformanceData(),!s&&this.hasPendingWork()||this.complete()}setTimerHandle(e){void 0!==this.timerHandle&&this.operationHost.getServerHost().clearTimeout(this.timerHandle),this.timerHandle=e}setImmediateId(e){void 0!==this.immediateId&&this.operationHost.getServerHost().clearImmediate(this.immediateId),this.immediateId=e}hasPendingWork(){return!!this.timerHandle||!!this.immediateId}};function Uge(e,t){return{seq:0,type:"event",event:e,body:t}}function Vge(e){return Xe(({textSpan:e})=>e.start+100003*e.length,mY(e))}function Wge(e,t,n){const r=e.getLanguageService().getDefinitionAtPosition(t.fileName,t.pos,!1,n),i=r&&fe(r);return i&&!i.isLocal?{fileName:i.fileName,pos:i.textSpan.start}:void 0}function $ge(e,t,n){for(const r of Qe(e)?e:e.projects)n(r,t);!Qe(e)&&e.symLinkedProjects&&e.symLinkedProjects.forEach((e,t)=>{for(const r of e)n(r,t)})}function Hge(e,t,n,r,i,o,a){const s=new Map,c=Ge();c.enqueue({project:t,location:n}),$ge(e,n.fileName,(e,t)=>{const r={fileName:t,pos:n.pos};c.enqueue({project:e,location:r})});const l=t.projectService,_=t.getCancellationToken(),u=dt(()=>t.isSourceOfProjectReferenceRedirect(r.fileName)?r:t.getLanguageService().getSourceMapper().tryGetGeneratedPosition(r)),d=dt(()=>t.isSourceOfProjectReferenceRedirect(r.fileName)?r:t.getLanguageService().getSourceMapper().tryGetSourcePosition(r)),p=new Set;e:for(;!c.isEmpty();){for(;!c.isEmpty();){if(_.isCancellationRequested())break e;const{project:e,location:t}=c.dequeue();if(s.has(e))continue;if(Xge(e,t))continue;if(vge(e),!e.containsFile(jfe(t.fileName)))continue;const n=f(e,t);s.set(e,n??Ife),p.add(Qge(e))}r&&(l.loadAncestorProjectTree(p),l.forEachEnabledProject(e=>{if(_.isCancellationRequested())return;if(s.has(e))return;const t=i(r,e,u,d);t&&c.enqueue({project:e,location:t})}))}return 1===s.size?he(s.values()):s;function f(e,t){const n=o(e,t);if(!n||!a)return n;for(const t of n)a(t,t=>{const n=l.getOriginalLocationEnsuringConfiguredProject(e,t);if(!n)return;const r=l.getScriptInfo(n.fileName);for(const e of r.containingProjects)e.isOrphan()||s.has(e)||c.enqueue({project:e,location:n});const i=l.getSymlinkedProjects(r);i&&i.forEach((e,t)=>{for(const r of e)r.isOrphan()||s.has(r)||c.enqueue({project:r,location:{fileName:t,pos:n.pos}})})});return n}}function Kge(e,t){if(t.containsFile(jfe(e.fileName))&&!Xge(t,e))return e}function Gge(e,t,n,r){const i=Kge(e,t);if(i)return i;const o=n();if(o&&t.containsFile(jfe(o.fileName)))return o;const a=r();return a&&t.containsFile(jfe(a.fileName))?a:void 0}function Xge(e,t){if(!t)return!1;const n=e.getLanguageService().getProgram();if(!n)return!1;const r=n.getSourceFile(t.fileName);return!!r&&r.resolvedPath!==r.path&&r.resolvedPath!==e.toPath(t.fileName)}function Qge(e){return Cme(e)?e.canonicalConfigFilePath:e.getProjectName()}function Yge({fileName:e,textSpan:t}){return{fileName:e,pos:t.start}}function Zge(e,t){return yY(e,t.getSourceMapper(),e=>t.projectService.fileExists(e))}function ehe(e,t){return vY(e,t.getSourceMapper(),e=>t.projectService.fileExists(e))}function the(e,t){return bY(e,t.getSourceMapper(),e=>t.projectService.fileExists(e))}var nhe=["openExternalProject","openExternalProjects","closeExternalProject","synchronizeProjectList","emit-output","compileOnSaveAffectedFileList","compileOnSaveEmitFile","compilerOptionsDiagnostics-full","encodedSemanticClassifications-full","semanticDiagnosticsSync","suggestionDiagnosticsSync","geterrForProject","reload","reloadProjects","getCodeFixes","getCodeFixes-full","getCombinedCodeFix","getCombinedCodeFix-full","applyCodeActionCommand","getSupportedCodeFixes","getApplicableRefactors","getMoveToRefactoringFileSuggestions","getEditsForRefactor","getEditsForRefactor-full","organizeImports","organizeImports-full","getEditsForFileRename","getEditsForFileRename-full","prepareCallHierarchy","provideCallHierarchyIncomingCalls","provideCallHierarchyOutgoingCalls","getPasteEdits","copilotRelated"],rhe=[...nhe,"definition","definition-full","definitionAndBoundSpan","definitionAndBoundSpan-full","typeDefinition","implementation","implementation-full","references","references-full","rename","renameLocations-full","rename-full","quickinfo","quickinfo-full","completionInfo","completions","completions-full","completionEntryDetails","completionEntryDetails-full","signatureHelp","signatureHelp-full","navto","navto-full","documentHighlights","documentHighlights-full","preparePasteEdits"],ihe=class e{constructor(e){this.changeSeq=0,this.regionDiagLineCountThreshold=500,this.handlers=new Map(Object.entries({status:()=>{const e={version:s};return this.requiredResponse(e)},openExternalProject:e=>(this.projectService.openExternalProject(e.arguments,!0),this.requiredResponse(!0)),openExternalProjects:e=>(this.projectService.openExternalProjects(e.arguments.projects),this.requiredResponse(!0)),closeExternalProject:e=>(this.projectService.closeExternalProject(e.arguments.projectFileName,!0),this.requiredResponse(!0)),synchronizeProjectList:e=>{const t=this.projectService.synchronizeProjectList(e.arguments.knownProjects,e.arguments.includeProjectReferenceRedirectInfo);if(!t.some(e=>e.projectErrors&&0!==e.projectErrors.length))return this.requiredResponse(t);const n=E(t,e=>e.projectErrors&&0!==e.projectErrors.length?{info:e.info,changes:e.changes,files:e.files,projectErrors:this.convertToDiagnosticsWithLinePosition(e.projectErrors,void 0)}:e);return this.requiredResponse(n)},updateOpen:e=>(this.changeSeq++,this.projectService.applyChangesInOpenFiles(e.arguments.openFiles&&P(e.arguments.openFiles,e=>({fileName:e.file,content:e.fileContent,scriptKind:e.scriptKindName,projectRootPath:e.projectRootPath})),e.arguments.changedFiles&&P(e.arguments.changedFiles,e=>({fileName:e.fileName,changes:J(ue(e.textChanges),t=>{const n=un.checkDefined(this.projectService.getScriptInfo(e.fileName)),r=n.lineOffsetToPosition(t.start.line,t.start.offset),i=n.lineOffsetToPosition(t.end.line,t.end.offset);return r>=0?{span:{start:r,length:i-r},newText:t.newText}:void 0})})),e.arguments.closedFiles),this.requiredResponse(!0)),applyChangedToOpenFiles:e=>(this.changeSeq++,this.projectService.applyChangesInOpenFiles(e.arguments.openFiles,e.arguments.changedFiles&&P(e.arguments.changedFiles,e=>({fileName:e.fileName,changes:ue(e.changes)})),e.arguments.closedFiles),this.requiredResponse(!0)),exit:()=>(this.exit(),this.notRequired(void 0)),definition:e=>this.requiredResponse(this.getDefinition(e.arguments,!0)),"definition-full":e=>this.requiredResponse(this.getDefinition(e.arguments,!1)),definitionAndBoundSpan:e=>this.requiredResponse(this.getDefinitionAndBoundSpan(e.arguments,!0)),"definitionAndBoundSpan-full":e=>this.requiredResponse(this.getDefinitionAndBoundSpan(e.arguments,!1)),findSourceDefinition:e=>this.requiredResponse(this.findSourceDefinition(e.arguments)),"emit-output":e=>this.requiredResponse(this.getEmitOutput(e.arguments)),typeDefinition:e=>this.requiredResponse(this.getTypeDefinition(e.arguments)),implementation:e=>this.requiredResponse(this.getImplementation(e.arguments,!0)),"implementation-full":e=>this.requiredResponse(this.getImplementation(e.arguments,!1)),references:e=>this.requiredResponse(this.getReferences(e.arguments,!0)),"references-full":e=>this.requiredResponse(this.getReferences(e.arguments,!1)),rename:e=>this.requiredResponse(this.getRenameLocations(e.arguments,!0)),"renameLocations-full":e=>this.requiredResponse(this.getRenameLocations(e.arguments,!1)),"rename-full":e=>this.requiredResponse(this.getRenameInfo(e.arguments)),open:e=>(this.openClientFile(jfe(e.arguments.file),e.arguments.fileContent,Zme(e.arguments.scriptKindName),e.arguments.projectRootPath?jfe(e.arguments.projectRootPath):void 0),this.notRequired(e)),quickinfo:e=>this.requiredResponse(this.getQuickInfoWorker(e.arguments,!0)),"quickinfo-full":e=>this.requiredResponse(this.getQuickInfoWorker(e.arguments,!1)),getOutliningSpans:e=>this.requiredResponse(this.getOutliningSpans(e.arguments,!0)),outliningSpans:e=>this.requiredResponse(this.getOutliningSpans(e.arguments,!1)),todoComments:e=>this.requiredResponse(this.getTodoComments(e.arguments)),indentation:e=>this.requiredResponse(this.getIndentation(e.arguments)),nameOrDottedNameSpan:e=>this.requiredResponse(this.getNameOrDottedNameSpan(e.arguments)),breakpointStatement:e=>this.requiredResponse(this.getBreakpointStatement(e.arguments)),braceCompletion:e=>this.requiredResponse(this.isValidBraceCompletion(e.arguments)),docCommentTemplate:e=>this.requiredResponse(this.getDocCommentTemplate(e.arguments)),getSpanOfEnclosingComment:e=>this.requiredResponse(this.getSpanOfEnclosingComment(e.arguments)),fileReferences:e=>this.requiredResponse(this.getFileReferences(e.arguments,!0)),"fileReferences-full":e=>this.requiredResponse(this.getFileReferences(e.arguments,!1)),format:e=>this.requiredResponse(this.getFormattingEditsForRange(e.arguments)),formatonkey:e=>this.requiredResponse(this.getFormattingEditsAfterKeystroke(e.arguments)),"format-full":e=>this.requiredResponse(this.getFormattingEditsForDocumentFull(e.arguments)),"formatonkey-full":e=>this.requiredResponse(this.getFormattingEditsAfterKeystrokeFull(e.arguments)),"formatRange-full":e=>this.requiredResponse(this.getFormattingEditsForRangeFull(e.arguments)),completionInfo:e=>this.requiredResponse(this.getCompletions(e.arguments,"completionInfo")),completions:e=>this.requiredResponse(this.getCompletions(e.arguments,"completions")),"completions-full":e=>this.requiredResponse(this.getCompletions(e.arguments,"completions-full")),completionEntryDetails:e=>this.requiredResponse(this.getCompletionEntryDetails(e.arguments,!1)),"completionEntryDetails-full":e=>this.requiredResponse(this.getCompletionEntryDetails(e.arguments,!0)),compileOnSaveAffectedFileList:e=>this.requiredResponse(this.getCompileOnSaveAffectedFileList(e.arguments)),compileOnSaveEmitFile:e=>this.requiredResponse(this.emitFile(e.arguments)),signatureHelp:e=>this.requiredResponse(this.getSignatureHelpItems(e.arguments,!0)),"signatureHelp-full":e=>this.requiredResponse(this.getSignatureHelpItems(e.arguments,!1)),"compilerOptionsDiagnostics-full":e=>this.requiredResponse(this.getCompilerOptionsDiagnostics(e.arguments)),"encodedSyntacticClassifications-full":e=>this.requiredResponse(this.getEncodedSyntacticClassifications(e.arguments)),"encodedSemanticClassifications-full":e=>this.requiredResponse(this.getEncodedSemanticClassifications(e.arguments)),cleanup:()=>(this.cleanup(),this.requiredResponse(!0)),semanticDiagnosticsSync:e=>this.requiredResponse(this.getSemanticDiagnosticsSync(e.arguments)),syntacticDiagnosticsSync:e=>this.requiredResponse(this.getSyntacticDiagnosticsSync(e.arguments)),suggestionDiagnosticsSync:e=>this.requiredResponse(this.getSuggestionDiagnosticsSync(e.arguments)),geterr:e=>(this.errorCheck.startNew(t=>this.getDiagnostics(t,e.arguments.delay,e.arguments.files)),this.notRequired(void 0)),geterrForProject:e=>(this.errorCheck.startNew(t=>this.getDiagnosticsForProject(t,e.arguments.delay,e.arguments.file)),this.notRequired(void 0)),change:e=>(this.change(e.arguments),this.notRequired(e)),configure:e=>(this.projectService.setHostConfiguration(e.arguments),this.notRequired(e)),reload:e=>(this.reload(e.arguments),this.requiredResponse({reloadFinished:!0})),saveto:e=>{const t=e.arguments;return this.saveToTmp(t.file,t.tmpfile),this.notRequired(e)},close:e=>{const t=e.arguments;return this.closeClientFile(t.file),this.notRequired(e)},navto:e=>this.requiredResponse(this.getNavigateToItems(e.arguments,!0)),"navto-full":e=>this.requiredResponse(this.getNavigateToItems(e.arguments,!1)),brace:e=>this.requiredResponse(this.getBraceMatching(e.arguments,!0)),"brace-full":e=>this.requiredResponse(this.getBraceMatching(e.arguments,!1)),navbar:e=>this.requiredResponse(this.getNavigationBarItems(e.arguments,!0)),"navbar-full":e=>this.requiredResponse(this.getNavigationBarItems(e.arguments,!1)),navtree:e=>this.requiredResponse(this.getNavigationTree(e.arguments,!0)),"navtree-full":e=>this.requiredResponse(this.getNavigationTree(e.arguments,!1)),documentHighlights:e=>this.requiredResponse(this.getDocumentHighlights(e.arguments,!0)),"documentHighlights-full":e=>this.requiredResponse(this.getDocumentHighlights(e.arguments,!1)),compilerOptionsForInferredProjects:e=>(this.setCompilerOptionsForInferredProjects(e.arguments),this.requiredResponse(!0)),projectInfo:e=>this.requiredResponse(this.getProjectInfo(e.arguments)),reloadProjects:e=>(this.projectService.reloadProjects(),this.notRequired(e)),jsxClosingTag:e=>this.requiredResponse(this.getJsxClosingTag(e.arguments)),linkedEditingRange:e=>this.requiredResponse(this.getLinkedEditingRange(e.arguments)),getCodeFixes:e=>this.requiredResponse(this.getCodeFixes(e.arguments,!0)),"getCodeFixes-full":e=>this.requiredResponse(this.getCodeFixes(e.arguments,!1)),getCombinedCodeFix:e=>this.requiredResponse(this.getCombinedCodeFix(e.arguments,!0)),"getCombinedCodeFix-full":e=>this.requiredResponse(this.getCombinedCodeFix(e.arguments,!1)),applyCodeActionCommand:e=>this.requiredResponse(this.applyCodeActionCommand(e.arguments)),getSupportedCodeFixes:e=>this.requiredResponse(this.getSupportedCodeFixes(e.arguments)),getApplicableRefactors:e=>this.requiredResponse(this.getApplicableRefactors(e.arguments)),getEditsForRefactor:e=>this.requiredResponse(this.getEditsForRefactor(e.arguments,!0)),getMoveToRefactoringFileSuggestions:e=>this.requiredResponse(this.getMoveToRefactoringFileSuggestions(e.arguments)),preparePasteEdits:e=>this.requiredResponse(this.preparePasteEdits(e.arguments)),getPasteEdits:e=>this.requiredResponse(this.getPasteEdits(e.arguments)),"getEditsForRefactor-full":e=>this.requiredResponse(this.getEditsForRefactor(e.arguments,!1)),organizeImports:e=>this.requiredResponse(this.organizeImports(e.arguments,!0)),"organizeImports-full":e=>this.requiredResponse(this.organizeImports(e.arguments,!1)),getEditsForFileRename:e=>this.requiredResponse(this.getEditsForFileRename(e.arguments,!0)),"getEditsForFileRename-full":e=>this.requiredResponse(this.getEditsForFileRename(e.arguments,!1)),configurePlugin:e=>(this.configurePlugin(e.arguments),this.notRequired(e)),selectionRange:e=>this.requiredResponse(this.getSmartSelectionRange(e.arguments,!0)),"selectionRange-full":e=>this.requiredResponse(this.getSmartSelectionRange(e.arguments,!1)),prepareCallHierarchy:e=>this.requiredResponse(this.prepareCallHierarchy(e.arguments)),provideCallHierarchyIncomingCalls:e=>this.requiredResponse(this.provideCallHierarchyIncomingCalls(e.arguments)),provideCallHierarchyOutgoingCalls:e=>this.requiredResponse(this.provideCallHierarchyOutgoingCalls(e.arguments)),toggleLineComment:e=>this.requiredResponse(this.toggleLineComment(e.arguments,!0)),"toggleLineComment-full":e=>this.requiredResponse(this.toggleLineComment(e.arguments,!1)),toggleMultilineComment:e=>this.requiredResponse(this.toggleMultilineComment(e.arguments,!0)),"toggleMultilineComment-full":e=>this.requiredResponse(this.toggleMultilineComment(e.arguments,!1)),commentSelection:e=>this.requiredResponse(this.commentSelection(e.arguments,!0)),"commentSelection-full":e=>this.requiredResponse(this.commentSelection(e.arguments,!1)),uncommentSelection:e=>this.requiredResponse(this.uncommentSelection(e.arguments,!0)),"uncommentSelection-full":e=>this.requiredResponse(this.uncommentSelection(e.arguments,!1)),provideInlayHints:e=>this.requiredResponse(this.provideInlayHints(e.arguments)),mapCode:e=>this.requiredResponse(this.mapCode(e.arguments)),copilotRelated:()=>this.requiredResponse(this.getCopilotRelatedInfo())})),this.host=e.host,this.cancellationToken=e.cancellationToken,this.typingsInstaller=e.typingsInstaller||ige,this.byteLength=e.byteLength,this.hrtime=e.hrtime,this.logger=e.logger,this.canUseEvents=e.canUseEvents,this.suppressDiagnosticEvents=e.suppressDiagnosticEvents,this.noGetErrOnBackgroundUpdate=e.noGetErrOnBackgroundUpdate;const{throttleWaitMilliseconds:t}=e;this.eventHandler=this.canUseEvents?e.eventHandler||(e=>this.defaultEventHandler(e)):void 0;const n={executeWithRequestId:(e,t,n)=>this.executeWithRequestId(e,t,n),getCurrentRequestId:()=>this.currentRequestId,getPerformanceData:()=>this.performanceData,getServerHost:()=>this.host,logError:(e,t)=>this.logError(e,t),sendRequestCompletedEvent:(e,t)=>this.sendRequestCompletedEvent(e,t),isCancellationRequested:()=>this.cancellationToken.isCancellationRequested()};this.errorCheck=new qge(n);const r={host:this.host,logger:this.logger,cancellationToken:this.cancellationToken,useSingleInferredProject:e.useSingleInferredProject,useInferredProjectPerProjectRoot:e.useInferredProjectPerProjectRoot,typingsInstaller:this.typingsInstaller,throttleWaitMilliseconds:t,eventHandler:this.eventHandler,suppressDiagnosticEvents:this.suppressDiagnosticEvents,globalPlugins:e.globalPlugins,pluginProbeLocations:e.pluginProbeLocations,allowLocalPluginLoads:e.allowLocalPluginLoads,typesMapLocation:e.typesMapLocation,serverMode:e.serverMode,session:this,canUseWatchEvents:e.canUseWatchEvents,incrementalVerifier:e.incrementalVerifier};switch(this.projectService=new Fge(r),this.projectService.setPerformanceEventHandler(this.performanceEventHandler.bind(this)),this.gcTimer=new $fe(this.host,7e3,this.logger),this.projectService.serverMode){case 0:break;case 1:nhe.forEach(e=>this.handlers.set(e,e=>{throw new Error(`Request: ${e.command} not allowed in LanguageServiceMode.PartialSemantic`)}));break;case 2:rhe.forEach(e=>this.handlers.set(e,e=>{throw new Error(`Request: ${e.command} not allowed in LanguageServiceMode.Syntactic`)}));break;default:un.assertNever(this.projectService.serverMode)}}sendRequestCompletedEvent(e,t){this.event({request_seq:e,performanceData:t&&ohe(t)},"requestCompleted")}addPerformanceData(e,t){this.performanceData||(this.performanceData={}),this.performanceData[e]=(this.performanceData[e]??0)+t}addDiagnosticsPerformanceData(e,t,n){var r,i;this.performanceData||(this.performanceData={});let o=null==(r=this.performanceData.diagnosticsDuration)?void 0:r.get(e);o||((i=this.performanceData).diagnosticsDuration??(i.diagnosticsDuration=new Map)).set(e,o={}),o[t]=n}performanceEventHandler(e){switch(e.kind){case"UpdateGraph":this.addPerformanceData("updateGraphDurationMs",e.durationMs);break;case"CreatePackageJsonAutoImportProvider":this.addPerformanceData("createAutoImportProviderProgramDurationMs",e.durationMs)}}defaultEventHandler(e){switch(e.eventName){case Pme:this.projectsUpdatedInBackgroundEvent(e.data.openFiles);break;case Ame:this.event({projectName:e.data.project.getProjectName(),reason:e.data.reason},e.eventName);break;case Ime:this.event({projectName:e.data.project.getProjectName()},e.eventName);break;case Ome:case Bme:case Jme:case zme:this.event(e.data,e.eventName);break;case Lme:this.event({triggerFile:e.data.triggerFile,configFile:e.data.configFileName,diagnostics:E(e.data.diagnostics,e=>Bge(e,!0))},e.eventName);break;case jme:this.event({projectName:e.data.project.getProjectName(),languageServiceEnabled:e.data.languageServiceEnabled},e.eventName);break;case Mme:{const t="telemetry";this.event({telemetryEventName:e.eventName,payload:e.data},t);break}}}projectsUpdatedInBackgroundEvent(e){this.projectService.logger.info(`got projects updated in background ${e}`),e.length&&(this.suppressDiagnosticEvents||this.noGetErrOnBackgroundUpdate||(this.projectService.logger.info(`Queueing diagnostics update for ${e}`),this.errorCheck.startNew(t=>this.updateErrorCheck(t,e,100,!0))),this.event({openFiles:e},Pme))}logError(e,t){this.logErrorWorker(e,t)}logErrorWorker(e,t,n){let r="Exception on executing command "+t;if(e.message&&(r+=":\n"+oG(e.message),e.stack&&(r+="\n"+oG(e.stack))),this.logger.hasLevel(3)){if(n)try{const{file:e,project:t}=this.getFileAndProject(n),i=t.getScriptInfoForNormalizedPath(e);if(i){const e=zQ(i.getSnapshot());r+=`\n\nFile text of ${n.file}:${oG(e)}\n`}}catch{}if(e.ProgramFiles){r+=`\n\nProgram files: ${JSON.stringify(e.ProgramFiles)}\n`,r+="\n\nProjects::\n";let t=0;const n=e=>{r+=`\nProject '${e.projectName}' (${_me[e.projectKind]}) ${t}\n`,r+=e.filesToString(!0),r+="\n-----------------------------------------------\n",t++};this.projectService.externalProjects.forEach(n),this.projectService.configuredProjects.forEach(n),this.projectService.inferredProjects.forEach(n)}}this.logger.msg(r,"Err")}send(e){"event"!==e.type||this.canUseEvents?this.writeMessage(e):this.logger.hasLevel(3)&&this.logger.info(`Session does not support events: ignored event: ${aG(e)}`)}writeMessage(e){const t=zge(e,this.logger,this.byteLength,this.host.newLine);this.host.write(t)}event(e,t){this.send(Uge(t,e))}doOutput(e,t,n,r,i,o){const a={seq:0,type:"response",command:t,request_seq:n,success:r,performanceData:i&&ohe(i)};if(r){let t;if(Qe(e))a.body=e,t=e.metadata,delete e.metadata;else if("object"==typeof e)if(e.metadata){const{metadata:n,...r}=e;a.body=r,t=n}else a.body=e;else a.body=e;t&&(a.metadata=t)}else un.assert(void 0===e);o&&(a.message=o),this.send(a)}semanticCheck(e,t){var n,r;const i=Un();null==(n=Hn)||n.push(Hn.Phase.Session,"semanticCheck",{file:e,configFilePath:t.canonicalConfigFilePath});const o=Lge(t,e)?Ife:t.getLanguageService().getSemanticDiagnostics(e).filter(e=>!!e.file);this.sendDiagnosticsEvent(e,t,o,"semanticDiag",i),null==(r=Hn)||r.pop()}syntacticCheck(e,t){var n,r;const i=Un();null==(n=Hn)||n.push(Hn.Phase.Session,"syntacticCheck",{file:e,configFilePath:t.canonicalConfigFilePath}),this.sendDiagnosticsEvent(e,t,t.getLanguageService().getSyntacticDiagnostics(e),"syntaxDiag",i),null==(r=Hn)||r.pop()}suggestionCheck(e,t){var n,r;const i=Un();null==(n=Hn)||n.push(Hn.Phase.Session,"suggestionCheck",{file:e,configFilePath:t.canonicalConfigFilePath}),this.sendDiagnosticsEvent(e,t,t.getLanguageService().getSuggestionDiagnostics(e),"suggestionDiag",i),null==(r=Hn)||r.pop()}regionSemanticCheck(e,t,n){var r,i,o;const a=Un();let s;null==(r=Hn)||r.push(Hn.Phase.Session,"regionSemanticCheck",{file:e,configFilePath:t.canonicalConfigFilePath}),this.shouldDoRegionCheck(e)&&(s=t.getLanguageService().getRegionSemanticDiagnostics(e,n))?(this.sendDiagnosticsEvent(e,t,s.diagnostics,"regionSemanticDiag",a,s.spans),null==(o=Hn)||o.pop()):null==(i=Hn)||i.pop()}shouldDoRegionCheck(e){var t;const n=null==(t=this.projectService.getScriptInfoForNormalizedPath(e))?void 0:t.textStorage.getLineInfo().getLineCount();return!!(n&&n>=this.regionDiagLineCountThreshold)}sendDiagnosticsEvent(e,t,n,r,i,o){try{const a=un.checkDefined(t.getScriptInfo(e)),s=Un()-i,c={file:e,diagnostics:n.map(n=>jge(e,t,n)),spans:null==o?void 0:o.map(e=>ahe(e,a))};this.event(c,r),this.addDiagnosticsPerformanceData(e,r,s)}catch(e){this.logError(e,r)}}updateErrorCheck(e,t,n,r=!0){if(0===t.length)return;un.assert(!this.suppressDiagnosticEvents);const i=this.changeSeq,o=Math.min(n,200);let a=0;const s=()=>{if(a++,t.length>a)return e.delay("checkOne",o,l)},c=(t,n)=>{if(this.semanticCheck(t,n),this.changeSeq===i)return this.getPreferences(t).disableSuggestions?s():void e.immediate("suggestionCheck",()=>{this.suggestionCheck(t,n),s()})},l=()=>{if(this.changeSeq!==i)return;let n,o=t[a];if(Ze(o)?o=this.toPendingErrorCheck(o):"ranges"in o&&(n=o.ranges,o=this.toPendingErrorCheck(o.file)),!o)return s();const{fileName:l,project:_}=o;return vge(_),_.containsFile(l,r)&&(this.syntacticCheck(l,_),this.changeSeq===i)?0!==_.projectService.serverMode?s():n?e.immediate("regionSemanticCheck",()=>{const t=this.projectService.getScriptInfoForNormalizedPath(l);t&&this.regionSemanticCheck(l,_,n.map(e=>this.getRange({file:l,...e},t))),this.changeSeq===i&&e.immediate("semanticCheck",()=>c(l,_))}):void e.immediate("semanticCheck",()=>c(l,_)):void 0};t.length>a&&this.changeSeq===i&&e.delay("checkOne",n,l)}cleanProjects(e,t){if(t){this.logger.info(`cleaning ${e}`);for(const e of t)e.getLanguageService(!1).cleanupSemanticCache(),e.cleanupProgram()}}cleanup(){this.cleanProjects("inferred projects",this.projectService.inferredProjects),this.cleanProjects("configured projects",Oe(this.projectService.configuredProjects.values())),this.cleanProjects("external projects",this.projectService.externalProjects),this.host.gc&&(this.logger.info("host.gc()"),this.host.gc())}getEncodedSyntacticClassifications(e){const{file:t,languageService:n}=this.getFileAndLanguageServiceForSyntacticOperation(e);return n.getEncodedSyntacticClassifications(t,e)}getEncodedSemanticClassifications(e){const{file:t,project:n}=this.getFileAndProject(e),r="2020"===e.format?"2020":"original";return n.getLanguageService().getEncodedSemanticClassifications(t,e,r)}getProject(e){return void 0===e?void 0:this.projectService.findProject(e)}getConfigFileAndProject(e){const t=this.getProject(e.projectFileName),n=jfe(e.file);return{configFile:t&&t.hasConfigFile(n)?n:void 0,project:t}}getConfigFileDiagnostics(e,t,n){const r=N(K(t.getAllProjectErrors(),t.getLanguageService().getCompilerOptionsDiagnostics()),t=>!!t.file&&t.file.fileName===e);return n?this.convertToDiagnosticsWithLinePositionFromDiagnosticFile(r):E(r,e=>Bge(e,!1))}convertToDiagnosticsWithLinePositionFromDiagnosticFile(e){return e.map(e=>({message:cV(e.messageText,this.host.newLine),start:e.start,length:e.length,category:ci(e),code:e.code,source:e.source,startLocation:e.file&&Rge(za(e.file,e.start)),endLocation:e.file&&Rge(za(e.file,e.start+e.length)),reportsUnnecessary:e.reportsUnnecessary,reportsDeprecated:e.reportsDeprecated,relatedInformation:E(e.relatedInformation,Mge)}))}getCompilerOptionsDiagnostics(e){const t=this.getProject(e.projectFileName);return this.convertToDiagnosticsWithLinePosition(N(t.getLanguageService().getCompilerOptionsDiagnostics(),e=>!e.file),void 0)}convertToDiagnosticsWithLinePosition(e,t){return e.map(e=>({message:cV(e.messageText,this.host.newLine),start:e.start,length:e.length,category:ci(e),code:e.code,source:e.source,startLocation:t&&t.positionToLineOffset(e.start),endLocation:t&&t.positionToLineOffset(e.start+e.length),reportsUnnecessary:e.reportsUnnecessary,reportsDeprecated:e.reportsDeprecated,relatedInformation:E(e.relatedInformation,Mge)}))}getDiagnosticsWorker(e,t,n,r){const{project:i,file:o}=this.getFileAndProject(e);if(t&&Lge(i,o))return Ife;const a=i.getScriptInfoForNormalizedPath(o),s=n(i,o);return r?this.convertToDiagnosticsWithLinePosition(s,a):s.map(e=>jge(o,i,e))}getDefinition(t,n){const{file:r,project:i}=this.getFileAndProject(t),o=this.getPositionInFile(t,r),a=this.mapDefinitionInfoLocations(i.getLanguageService().getDefinitionAtPosition(r,o)||Ife,i);return n?this.mapDefinitionInfo(a,i):a.map(e.mapToOriginalLocation)}mapDefinitionInfoLocations(e,t){return e.map(e=>{const n=ehe(e,t);return n?{...n,containerKind:e.containerKind,containerName:e.containerName,kind:e.kind,name:e.name,failedAliasResolution:e.failedAliasResolution,...e.unverified&&{unverified:e.unverified}}:e})}getDefinitionAndBoundSpan(t,n){const{file:r,project:i}=this.getFileAndProject(t),o=this.getPositionInFile(t,r),a=un.checkDefined(i.getScriptInfo(r)),s=i.getLanguageService().getDefinitionAndBoundSpan(r,o);if(!s||!s.definitions)return{definitions:Ife,textSpan:void 0};const c=this.mapDefinitionInfoLocations(s.definitions,i),{textSpan:l}=s;return n?{definitions:this.mapDefinitionInfo(c,i),textSpan:ahe(l,a)}:{definitions:c.map(e.mapToOriginalLocation),textSpan:l}}findSourceDefinition(e){var t;const{file:n,project:r}=this.getFileAndProject(e),i=this.getPositionInFile(e,n),o=r.getLanguageService().getDefinitionAtPosition(n,i);let a=this.mapDefinitionInfoLocations(o||Ife,r).slice();if(0===this.projectService.serverMode&&(!$(a,e=>jfe(e.fileName)!==n&&!e.isAmbient)||$(a,e=>!!e.failedAliasResolution))){const e=Xe(e=>e.textSpan.start,mY(this.host.useCaseSensitiveFileNames));null==a||a.forEach(t=>e.add(t));const o=r.getNoDtsResolutionProject(n),_=o.getLanguageService(),u=null==(t=_.getDefinitionAtPosition(n,i,!0,!1))?void 0:t.filter(e=>jfe(e.fileName)!==n);if($(u))for(const t of u){if(t.unverified){const n=c(t,r.getLanguageService().getProgram(),_.getProgram());if($(n)){for(const t of n)e.add(t);continue}}e.add(t)}else{const t=a.filter(e=>jfe(e.fileName)!==n&&e.isAmbient);for(const a of $(t)?t:function(){const e=r.getLanguageService(),t=WX(e.getProgram().getSourceFile(n),i);return(ju(t)||aD(t))&&Sx(t.parent)&&Nx(t,r=>{var i;if(r===t)return;const o=null==(i=e.getDefinitionAtPosition(n,r.getStart(),!0,!1))?void 0:i.filter(e=>jfe(e.fileName)!==n&&e.isAmbient).map(e=>({fileName:e.fileName,name:qh(t)}));return $(o)?o:void 0})||Ife}()){const t=s(a.fileName,n,o);if(!t)continue;const r=this.projectService.getOrCreateScriptInfoNotOpenedByClient(t,o.currentDirectory,o.directoryStructureHost,!1);if(!r)continue;o.containsScriptInfo(r)||(o.addRoot(r),o.updateGraph());const i=_.getProgram(),c=un.checkDefined(i.getSourceFile(t));for(const t of l(a.name,c,i))e.add(t)}}a=Oe(e.values())}return a=a.filter(e=>!e.isAmbient&&!e.failedAliasResolution),this.mapDefinitionInfo(a,r);function s(e,t,n){var i,o,a;const s=UT(e);if(s&&e.lastIndexOf(KM)===s.topLevelNodeModulesIndex){const c=e.substring(0,s.packageRootIndex),l=null==(i=r.getModuleResolutionCache())?void 0:i.getPackageJsonInfoCache(),_=r.getCompilationSettings(),u=lR(Bo(c,r.getCurrentDirectory()),cR(l,r,_));if(!u)return;const d=aR(u,{moduleResolution:2},r,r.getModuleResolutionCache()),p=AR(IR(e.substring(s.topLevelPackageNameIndex+1,s.packageRootIndex))),f=r.toPath(e);if(d&&$(d,e=>r.toPath(e)===f))return null==(o=n.resolutionCache.resolveSingleModuleNameWithoutWatching(p,t).resolvedModule)?void 0:o.resolvedFileName;{const r=`${p}/${US(e.substring(s.packageRootIndex+1))}`;return null==(a=n.resolutionCache.resolveSingleModuleNameWithoutWatching(r,t).resolvedModule)?void 0:a.resolvedFileName}}}function c(e,t,r){var o;const a=r.getSourceFile(e.fileName);if(!a)return;const s=WX(t.getSourceFile(n),i),c=t.getTypeChecker().getSymbolAtLocation(s),_=c&&Hu(c,277);return _?l((null==(o=_.propertyName)?void 0:o.text)||_.name.text,a,r):void 0}function l(e,t,n){return B(gce.Core.getTopMostDeclarationNamesInFile(e,t),e=>{const t=n.getTypeChecker().getSymbolAtLocation(e),r=_h(e);if(t&&r)return rle.createDefinitionInfo(r,n.getTypeChecker(),t,r,!0)})}}getEmitOutput(e){const{file:t,project:n}=this.getFileAndProject(e);if(!n.shouldEmitFile(n.getScriptInfo(t)))return{emitSkipped:!0,outputFiles:[],diagnostics:[]};const r=n.getLanguageService().getEmitOutput(t);return e.richResponse?{...r,diagnostics:e.includeLinePosition?this.convertToDiagnosticsWithLinePositionFromDiagnosticFile(r.diagnostics):r.diagnostics.map(e=>Bge(e,!0))}:r}mapJSDocTagInfo(e,t,n){return e?e.map(e=>{var r;return{...e,text:n?this.mapDisplayParts(e.text,t):null==(r=e.text)?void 0:r.map(e=>e.text).join("")}}):[]}mapDisplayParts(e,t){return e?e.map(e=>"linkName"!==e.kind?e:{...e,target:this.toFileSpan(e.target.fileName,e.target.textSpan,t)}):[]}mapSignatureHelpItems(e,t,n){return e.map(e=>({...e,documentation:this.mapDisplayParts(e.documentation,t),parameters:e.parameters.map(e=>({...e,documentation:this.mapDisplayParts(e.documentation,t)})),tags:this.mapJSDocTagInfo(e.tags,t,n)}))}mapDefinitionInfo(e,t){return e.map(e=>({...this.toFileSpanWithContext(e.fileName,e.textSpan,e.contextSpan,t),...e.unverified&&{unverified:e.unverified}}))}static mapToOriginalLocation(e){return e.originalFileName?(un.assert(void 0!==e.originalTextSpan,"originalTextSpan should be present if originalFileName is"),{...e,fileName:e.originalFileName,textSpan:e.originalTextSpan,targetFileName:e.fileName,targetTextSpan:e.textSpan,contextSpan:e.originalContextSpan,targetContextSpan:e.contextSpan}):e}toFileSpan(e,t,n){const r=n.getLanguageService(),i=r.toLineColumnOffset(e,t.start),o=r.toLineColumnOffset(e,Fs(t));return{file:e,start:{line:i.line+1,offset:i.character+1},end:{line:o.line+1,offset:o.character+1}}}toFileSpanWithContext(e,t,n,r){const i=this.toFileSpan(e,t,r),o=n&&this.toFileSpan(e,n,r);return o?{...i,contextStart:o.start,contextEnd:o.end}:i}getTypeDefinition(e){const{file:t,project:n}=this.getFileAndProject(e),r=this.getPositionInFile(e,t),i=this.mapDefinitionInfoLocations(n.getLanguageService().getTypeDefinitionAtPosition(t,r)||Ife,n);return this.mapDefinitionInfo(i,n)}mapImplementationLocations(e,t){return e.map(e=>{const n=ehe(e,t);return n?{...n,kind:e.kind,displayParts:e.displayParts}:e})}getImplementation(t,n){const{file:r,project:i}=this.getFileAndProject(t),o=this.getPositionInFile(t,r),a=this.mapImplementationLocations(i.getLanguageService().getImplementationAtPosition(r,o)||Ife,i);return n?a.map(({fileName:e,textSpan:t,contextSpan:n})=>this.toFileSpanWithContext(e,t,n,i)):a.map(e.mapToOriginalLocation)}getSyntacticDiagnosticsSync(e){const{configFile:t}=this.getConfigFileAndProject(e);return t?Ife:this.getDiagnosticsWorker(e,!1,(e,t)=>e.getLanguageService().getSyntacticDiagnostics(t),!!e.includeLinePosition)}getSemanticDiagnosticsSync(e){const{configFile:t,project:n}=this.getConfigFileAndProject(e);return t?this.getConfigFileDiagnostics(t,n,!!e.includeLinePosition):this.getDiagnosticsWorker(e,!0,(e,t)=>e.getLanguageService().getSemanticDiagnostics(t).filter(e=>!!e.file),!!e.includeLinePosition)}getSuggestionDiagnosticsSync(e){const{configFile:t}=this.getConfigFileAndProject(e);return t?Ife:this.getDiagnosticsWorker(e,!0,(e,t)=>e.getLanguageService().getSuggestionDiagnostics(t),!!e.includeLinePosition)}getJsxClosingTag(e){const{file:t,languageService:n}=this.getFileAndLanguageServiceForSyntacticOperation(e),r=this.getPositionInFile(e,t),i=n.getJsxClosingTagAtPosition(t,r);return void 0===i?void 0:{newText:i.newText,caretOffset:0}}getLinkedEditingRange(e){const{file:t,languageService:n}=this.getFileAndLanguageServiceForSyntacticOperation(e),r=this.getPositionInFile(e,t),i=n.getLinkedEditingRangeAtPosition(t,r),o=this.projectService.getScriptInfoForNormalizedPath(t);if(void 0!==o&&void 0!==i)return function(e,t){const n=e.ranges.map(e=>({start:t.positionToLineOffset(e.start),end:t.positionToLineOffset(e.start+e.length)}));return e.wordPattern?{ranges:n,wordPattern:e.wordPattern}:{ranges:n}}(i,o)}getDocumentHighlights(e,t){const{file:n,project:r}=this.getFileAndProject(e),i=this.getPositionInFile(e,n),o=r.getLanguageService().getDocumentHighlights(n,i,e.filesToSearch);return o?t?o.map(({fileName:e,highlightSpans:t})=>{const n=r.getScriptInfo(e);return{file:e,highlightSpans:t.map(({textSpan:e,kind:t,contextSpan:r})=>({...she(e,r,n),kind:t}))}}):o:Ife}provideInlayHints(e){const{file:t,project:n}=this.getFileAndProject(e),r=this.projectService.getScriptInfoForNormalizedPath(t);return n.getLanguageService().provideInlayHints(t,e,this.getPreferences(t)).map(e=>{const{position:t,displayParts:n}=e;return{...e,position:r.positionToLineOffset(t),displayParts:null==n?void 0:n.map(({text:e,span:t,file:n})=>{if(t){un.assertIsDefined(n,"Target file should be defined together with its span.");const r=this.projectService.getScriptInfo(n);return{text:e,span:{start:r.positionToLineOffset(t.start),end:r.positionToLineOffset(t.start+t.length),file:n}}}return{text:e}})}})}mapCode(e){var t;const n=this.getHostFormatOptions(),r=this.getHostPreferences(),{file:i,languageService:o}=this.getFileAndLanguageServiceForSyntacticOperation(e),a=this.projectService.getScriptInfoForNormalizedPath(i),s=null==(t=e.mapping.focusLocations)?void 0:t.map(e=>e.map(e=>{const t=a.lineOffsetToPosition(e.start.line,e.start.offset);return{start:t,length:a.lineOffsetToPosition(e.end.line,e.end.offset)-t}})),c=o.mapCode(i,e.mapping.contents,s,n,r);return this.mapTextChangesToCodeEdits(c)}getCopilotRelatedInfo(){return{relatedFiles:[]}}setCompilerOptionsForInferredProjects(e){this.projectService.setCompilerOptionsForInferredProjects(e.options,e.projectRootPath)}getProjectInfo(e){return this.getProjectInfoWorker(e.file,e.projectFileName,e.needFileNameList,e.needDefaultConfiguredProjectInfo,!1)}getProjectInfoWorker(e,t,n,r,i){const{project:o}=this.getFileAndProjectWorker(e,t);return vge(o),{configFileName:o.getProjectName(),languageServiceDisabled:!o.languageServiceEnabled,fileNames:n?o.getFileNames(!1,i):void 0,configuredProjectInfo:r?this.getDefaultConfiguredProjectInfo(e):void 0}}getDefaultConfiguredProjectInfo(e){var t;const n=this.projectService.getScriptInfo(e);if(!n)return;const r=this.projectService.findDefaultConfiguredProjectWorker(n,3);if(!r)return;let i,o;return r.seenProjects.forEach((e,t)=>{t!==r.defaultProject&&(3!==e?(i??(i=[])).push(jfe(t.getConfigFilePath())):(o??(o=[])).push(jfe(t.getConfigFilePath())))}),null==(t=r.seenConfigs)||t.forEach(e=>(i??(i=[])).push(e)),{notMatchedByConfig:i,notInProject:o,defaultProject:r.defaultProject&&jfe(r.defaultProject.getConfigFilePath())}}getRenameInfo(e){const{file:t,project:n}=this.getFileAndProject(e),r=this.getPositionInFile(e,t),i=this.getPreferences(t);return n.getLanguageService().getRenameInfo(t,r,i)}getProjects(e,t,n){let r,i;if(e.projectFileName){const t=this.getProject(e.projectFileName);t&&(r=[t])}else{const o=t?this.projectService.getScriptInfoEnsuringProjectsUptoDate(e.file):this.projectService.getScriptInfo(e.file);if(!o)return n?Ife:(this.projectService.logErrorForScriptInfoNotFound(e.file),Efe.ThrowNoProject());t||this.projectService.ensureDefaultProjectForFile(o),r=o.containingProjects,i=this.projectService.getSymlinkedProjects(o)}return r=N(r,e=>e.languageServiceEnabled&&!e.isOrphan()),n||r&&r.length||i?i?{projects:r,symLinkedProjects:i}:r:(this.projectService.logErrorForScriptInfoNotFound(e.file??e.projectFileName),Efe.ThrowNoProject())}getDefaultProject(e){if(e.projectFileName){const t=this.getProject(e.projectFileName);if(t)return t;if(!e.file)return Efe.ThrowNoProject()}return this.projectService.getScriptInfo(e.file).getDefaultProject()}getRenameLocations(e,t){const n=jfe(e.file),r=this.getPositionInFile(e,n),i=this.getProjects(e),o=this.getDefaultProject(e),a=this.getPreferences(n),s=this.mapRenameInfo(o.getLanguageService().getRenameInfo(n,r,a),un.checkDefined(this.projectService.getScriptInfo(n)));if(!s.canRename)return t?{info:s,locs:[]}:[];const c=function(e,t,n,r,i,o,a){const s=Hge(e,t,n,Wge(t,n,!0),Gge,(e,t)=>e.getLanguageService().findRenameLocations(t.fileName,t.pos,r,i,o),(e,t)=>t(Yge(e)));if(Qe(s))return s;const c=[],l=Vge(a);return s.forEach((e,t)=>{for(const n of e)l.has(n)||Zge(Yge(n),t)||(c.push(n),l.add(n))}),c}(i,o,{fileName:e.file,pos:r},!!e.findInStrings,!!e.findInComments,a,this.host.useCaseSensitiveFileNames);return t?{info:s,locs:this.toSpanGroups(c)}:c}mapRenameInfo(e,t){if(e.canRename){const{canRename:n,fileToRename:r,displayName:i,fullDisplayName:o,kind:a,kindModifiers:s,triggerSpan:c}=e;return{canRename:n,fileToRename:r,displayName:i,fullDisplayName:o,kind:a,kindModifiers:s,triggerSpan:ahe(c,t)}}return e}toSpanGroups(e){const t=new Map;for(const{fileName:n,textSpan:r,contextSpan:i,originalContextSpan:o,originalTextSpan:a,originalFileName:s,...c}of e){let e=t.get(n);e||t.set(n,e={file:n,locs:[]});const o=un.checkDefined(this.projectService.getScriptInfo(n));e.locs.push({...she(r,i,o),...c})}return Oe(t.values())}getReferences(e,t){const n=jfe(e.file),r=this.getProjects(e),i=this.getPositionInFile(e,n),o=function(e,t,n,r,i){var o,a;const s=Hge(e,t,n,Wge(t,n,!1),Gge,(e,t)=>(i.info(`Finding references to ${t.fileName} position ${t.pos} in project ${e.getProjectName()}`),e.getLanguageService().findReferences(t.fileName,t.pos)),(e,t)=>{t(Yge(e.definition));for(const n of e.references)t(Yge(n))});if(Qe(s))return s;const c=s.get(t);if(void 0===(null==(a=null==(o=null==c?void 0:c[0])?void 0:o.references[0])?void 0:a.isDefinition))s.forEach(e=>{for(const t of e)for(const e of t.references)delete e.isDefinition});else{const e=Vge(r);for(const t of c)for(const n of t.references)if(n.isDefinition){e.add(n);break}const t=new Set;for(;;){let n=!1;if(s.forEach((r,i)=>{t.has(i)||i.getLanguageService().updateIsDefinitionOfReferencedSymbols(r,e)&&(t.add(i),n=!0)}),!n)break}s.forEach((e,n)=>{if(!t.has(n))for(const t of e)for(const e of t.references)e.isDefinition=!1})}const l=[],_=Vge(r);return s.forEach((e,t)=>{for(const n of e){const e=Zge(Yge(n.definition),t),i=void 0===e?n.definition:{...n.definition,textSpan:Ws(e.pos,n.definition.textSpan.length),fileName:e.fileName,contextSpan:the(n.definition,t)};let o=b(l,e=>fY(e.definition,i,r));o||(o={definition:i,references:[]},l.push(o));for(const e of n.references)_.has(e)||Zge(Yge(e),t)||(_.add(e),o.references.push(e))}}),l.filter(e=>0!==e.references.length)}(r,this.getDefaultProject(e),{fileName:e.file,pos:i},this.host.useCaseSensitiveFileNames,this.logger);if(!t)return o;const a=this.getPreferences(n),s=this.getDefaultProject(e),c=s.getScriptInfoForNormalizedPath(n),l=s.getLanguageService().getQuickInfoAtPosition(n,i),_=l?R8(l.displayParts):"",u=l&&l.textSpan,d=u?c.positionToLineOffset(u.start).offset:0,p=u?c.getSnapshot().getText(u.start,Fs(u)):"";return{refs:O(o,e=>e.references.map(e=>_he(this.projectService,e,a))),symbolName:p,symbolStartOffset:d,symbolDisplayString:_}}getFileReferences(e,t){const n=this.getProjects(e),r=jfe(e.file),i=this.getPreferences(r),o={fileName:r,pos:0},a=Hge(n,this.getDefaultProject(e),o,o,Kge,e=>(this.logger.info(`Finding references to file ${r} in project ${e.getProjectName()}`),e.getLanguageService().getFileReferences(r)));let s;if(Qe(a))s=a;else{s=[];const e=Vge(this.host.useCaseSensitiveFileNames);a.forEach(t=>{for(const n of t)e.has(n)||(s.push(n),e.add(n))})}return t?{refs:s.map(e=>_he(this.projectService,e,i)),symbolName:`"${e.file}"`}:s}openClientFile(e,t,n,r){this.projectService.openClientFileWithNormalizedPath(e,t,n,!1,r)}getPosition(e,t){return void 0!==e.position?e.position:t.lineOffsetToPosition(e.line,e.offset)}getPositionInFile(e,t){const n=this.projectService.getScriptInfoForNormalizedPath(t);return this.getPosition(e,n)}getFileAndProject(e){return this.getFileAndProjectWorker(e.file,e.projectFileName)}getFileAndLanguageServiceForSyntacticOperation(e){const{file:t,project:n}=this.getFileAndProject(e);return{file:t,languageService:n.getLanguageService(!1)}}getFileAndProjectWorker(e,t){const n=jfe(e);return{file:n,project:this.getProject(t)||this.projectService.ensureDefaultProjectForFile(n)}}getOutliningSpans(e,t){const{file:n,languageService:r}=this.getFileAndLanguageServiceForSyntacticOperation(e),i=r.getOutliningSpans(n);if(t){const e=this.projectService.getScriptInfoForNormalizedPath(n);return i.map(t=>({textSpan:ahe(t.textSpan,e),hintSpan:ahe(t.hintSpan,e),bannerText:t.bannerText,autoCollapse:t.autoCollapse,kind:t.kind}))}return i}getTodoComments(e){const{file:t,project:n}=this.getFileAndProject(e);return n.getLanguageService().getTodoComments(t,e.descriptors)}getDocCommentTemplate(e){const{file:t,languageService:n}=this.getFileAndLanguageServiceForSyntacticOperation(e),r=this.getPositionInFile(e,t);return n.getDocCommentTemplateAtPosition(t,r,this.getPreferences(t),this.getFormatOptions(t))}getSpanOfEnclosingComment(e){const{file:t,languageService:n}=this.getFileAndLanguageServiceForSyntacticOperation(e),r=e.onlyMultiLine,i=this.getPositionInFile(e,t);return n.getSpanOfEnclosingComment(t,i,r)}getIndentation(e){const{file:t,languageService:n}=this.getFileAndLanguageServiceForSyntacticOperation(e),r=this.getPositionInFile(e,t),i=e.options?Kme(e.options):this.getFormatOptions(t);return{position:r,indentation:n.getIndentationAtPosition(t,r,i)}}getBreakpointStatement(e){const{file:t,languageService:n}=this.getFileAndLanguageServiceForSyntacticOperation(e),r=this.getPositionInFile(e,t);return n.getBreakpointStatementAtPosition(t,r)}getNameOrDottedNameSpan(e){const{file:t,languageService:n}=this.getFileAndLanguageServiceForSyntacticOperation(e),r=this.getPositionInFile(e,t);return n.getNameOrDottedNameSpan(t,r,r)}isValidBraceCompletion(e){const{file:t,languageService:n}=this.getFileAndLanguageServiceForSyntacticOperation(e),r=this.getPositionInFile(e,t);return n.isValidBraceCompletionAtPosition(t,r,e.openingBrace.charCodeAt(0))}getQuickInfoWorker(e,t){const{file:n,project:r}=this.getFileAndProject(e),i=this.projectService.getScriptInfoForNormalizedPath(n),o=this.getPreferences(n),a=r.getLanguageService().getQuickInfoAtPosition(n,this.getPosition(e,i),o.maximumHoverLength,e.verbosityLevel);if(!a)return;const s=!!o.displayPartsForJSDoc;if(t){const e=R8(a.displayParts);return{kind:a.kind,kindModifiers:a.kindModifiers,start:i.positionToLineOffset(a.textSpan.start),end:i.positionToLineOffset(Fs(a.textSpan)),displayString:e,documentation:s?this.mapDisplayParts(a.documentation,r):R8(a.documentation),tags:this.mapJSDocTagInfo(a.tags,r,s),canIncreaseVerbosityLevel:a.canIncreaseVerbosityLevel}}return s?a:{...a,tags:this.mapJSDocTagInfo(a.tags,r,!1)}}getFormattingEditsForRange(e){const{file:t,languageService:n}=this.getFileAndLanguageServiceForSyntacticOperation(e),r=this.projectService.getScriptInfoForNormalizedPath(t),i=r.lineOffsetToPosition(e.line,e.offset),o=r.lineOffsetToPosition(e.endLine,e.endOffset),a=n.getFormattingEditsForRange(t,i,o,this.getFormatOptions(t));if(a)return a.map(e=>this.convertTextChangeToCodeEdit(e,r))}getFormattingEditsForRangeFull(e){const{file:t,languageService:n}=this.getFileAndLanguageServiceForSyntacticOperation(e),r=e.options?Kme(e.options):this.getFormatOptions(t);return n.getFormattingEditsForRange(t,e.position,e.endPosition,r)}getFormattingEditsForDocumentFull(e){const{file:t,languageService:n}=this.getFileAndLanguageServiceForSyntacticOperation(e),r=e.options?Kme(e.options):this.getFormatOptions(t);return n.getFormattingEditsForDocument(t,r)}getFormattingEditsAfterKeystrokeFull(e){const{file:t,languageService:n}=this.getFileAndLanguageServiceForSyntacticOperation(e),r=e.options?Kme(e.options):this.getFormatOptions(t);return n.getFormattingEditsAfterKeystroke(t,e.position,e.key,r)}getFormattingEditsAfterKeystroke(e){const{file:t,languageService:n}=this.getFileAndLanguageServiceForSyntacticOperation(e),r=this.projectService.getScriptInfoForNormalizedPath(t),i=r.lineOffsetToPosition(e.line,e.offset),o=this.getFormatOptions(t),a=n.getFormattingEditsAfterKeystroke(t,i,e.key,o);if("\n"===e.key&&(!a||0===a.length||function(e,t){return e.every(e=>Fs(e.span)({start:r.positionToLineOffset(e.span.start),end:r.positionToLineOffset(Fs(e.span)),newText:e.newText?e.newText:""}))}getCompletions(e,t){const{file:n,project:r}=this.getFileAndProject(e),i=this.projectService.getScriptInfoForNormalizedPath(n),o=this.getPosition(e,i),a=r.getLanguageService().getCompletionsAtPosition(n,o,{...ege(this.getPreferences(n)),triggerCharacter:e.triggerCharacter,triggerKind:e.triggerKind,includeExternalModuleExports:e.includeExternalModuleExports,includeInsertTextCompletions:e.includeInsertTextCompletions},r.projectService.getFormatCodeOptions(n));if(void 0===a)return;if("completions-full"===t)return a;const s=e.prefix||"",c=B(a.entries,e=>{if(a.isMemberCompletion||Gt(e.name.toLowerCase(),s.toLowerCase())){const t=e.replacementSpan?ahe(e.replacementSpan,i):void 0;return{...e,replacementSpan:t,hasAction:e.hasAction||void 0,symbol:void 0}}});return"completions"===t?(a.metadata&&(c.metadata=a.metadata),c):{...a,optionalReplacementSpan:a.optionalReplacementSpan&&ahe(a.optionalReplacementSpan,i),entries:c}}getCompletionEntryDetails(e,t){const{file:n,project:r}=this.getFileAndProject(e),i=this.projectService.getScriptInfoForNormalizedPath(n),o=this.getPosition(e,i),a=r.projectService.getFormatCodeOptions(n),s=!!this.getPreferences(n).displayPartsForJSDoc,c=B(e.entryNames,e=>{const{name:t,source:i,data:s}="string"==typeof e?{name:e,source:void 0,data:void 0}:e;return r.getLanguageService().getCompletionEntryDetails(n,o,t,a,i,this.getPreferences(n),s?nt(s,uhe):void 0)});return t?s?c:c.map(e=>({...e,tags:this.mapJSDocTagInfo(e.tags,r,!1)})):c.map(e=>({...e,codeActions:E(e.codeActions,e=>this.mapCodeAction(e)),documentation:this.mapDisplayParts(e.documentation,r),tags:this.mapJSDocTagInfo(e.tags,r,s)}))}getCompileOnSaveAffectedFileList(e){const t=this.getProjects(e,!0,!0),n=this.projectService.getScriptInfo(e.file);return n?function(e,t,n,r){const i=L(Qe(n)?n:n.projects,t=>r(t,e));return!Qe(n)&&n.symLinkedProjects&&n.symLinkedProjects.forEach((e,n)=>{const o=t(n);i.push(...O(e,e=>r(e,o)))}),Q(i,mt)}(n,e=>this.projectService.getScriptInfoForPath(e),t,(e,t)=>{if(!e.compileOnSaveEnabled||!e.languageServiceEnabled||e.isOrphan())return;const n=e.getCompilationSettings();return n.noEmit||uO(t.fileName)&&!function(e){return Dk(e)||!!e.emitDecoratorMetadata}(n)?void 0:{projectFileName:e.getProjectName(),fileNames:e.getCompileOnSaveAffectedFileList(t),projectUsesOutFile:!!n.outFile}}):Ife}emitFile(e){const{file:t,project:n}=this.getFileAndProject(e);if(n||Efe.ThrowNoProject(),!n.languageServiceEnabled)return!!e.richResponse&&{emitSkipped:!0,diagnostics:[]};const r=n.getScriptInfo(t),{emitSkipped:i,diagnostics:o}=n.emitFile(r,(e,t,n)=>this.host.writeFile(e,t,n));return e.richResponse?{emitSkipped:i,diagnostics:e.includeLinePosition?this.convertToDiagnosticsWithLinePositionFromDiagnosticFile(o):o.map(e=>Bge(e,!0))}:!i}getSignatureHelpItems(e,t){const{file:n,project:r}=this.getFileAndProject(e),i=this.projectService.getScriptInfoForNormalizedPath(n),o=this.getPosition(e,i),a=r.getLanguageService().getSignatureHelpItems(n,o,e),s=!!this.getPreferences(n).displayPartsForJSDoc;if(a&&t){const e=a.applicableSpan;return{...a,applicableSpan:{start:i.positionToLineOffset(e.start),end:i.positionToLineOffset(e.start+e.length)},items:this.mapSignatureHelpItems(a.items,r,s)}}return s||!a?a:{...a,items:a.items.map(e=>({...e,tags:this.mapJSDocTagInfo(e.tags,r,!1)}))}}toPendingErrorCheck(e){const t=jfe(e),n=this.projectService.tryGetDefaultProjectForFile(t);return n&&{fileName:t,project:n}}getDiagnostics(e,t,n){this.suppressDiagnosticEvents||n.length>0&&this.updateErrorCheck(e,n,t)}change(e){const t=this.projectService.getScriptInfo(e.file);un.assert(!!t),t.textStorage.switchToScriptVersionCache();const n=t.lineOffsetToPosition(e.line,e.offset),r=t.lineOffsetToPosition(e.endLine,e.endOffset);n>=0&&(this.changeSeq++,this.projectService.applyChangesToFile(t,U({span:{start:n,length:r-n},newText:e.insertString})))}reload(e){const t=jfe(e.file),n=void 0===e.tmpfile?void 0:jfe(e.tmpfile),r=this.projectService.getScriptInfoForNormalizedPath(t);r&&(this.changeSeq++,r.reloadFromFile(n))}saveToTmp(e,t){const n=this.projectService.getScriptInfo(e);n&&n.saveTo(t)}closeClientFile(e){if(!e)return;const t=Jo(e);this.projectService.closeClientFile(t)}mapLocationNavigationBarItems(e,t){return E(e,e=>({text:e.text,kind:e.kind,kindModifiers:e.kindModifiers,spans:e.spans.map(e=>ahe(e,t)),childItems:this.mapLocationNavigationBarItems(e.childItems,t),indent:e.indent}))}getNavigationBarItems(e,t){const{file:n,languageService:r}=this.getFileAndLanguageServiceForSyntacticOperation(e),i=r.getNavigationBarItems(n);return i?t?this.mapLocationNavigationBarItems(i,this.projectService.getScriptInfoForNormalizedPath(n)):i:void 0}toLocationNavigationTree(e,t){return{text:e.text,kind:e.kind,kindModifiers:e.kindModifiers,spans:e.spans.map(e=>ahe(e,t)),nameSpan:e.nameSpan&&ahe(e.nameSpan,t),childItems:E(e.childItems,e=>this.toLocationNavigationTree(e,t))}}getNavigationTree(e,t){const{file:n,languageService:r}=this.getFileAndLanguageServiceForSyntacticOperation(e),i=r.getNavigationTree(n);return i?t?this.toLocationNavigationTree(i,this.projectService.getScriptInfoForNormalizedPath(n)):i:void 0}getNavigateToItems(e,t){return O(this.getFullNavigateToItems(e),t?({project:e,navigateToItems:t})=>t.map(t=>{const n=e.getScriptInfo(t.fileName),r={name:t.name,kind:t.kind,kindModifiers:t.kindModifiers,isCaseSensitive:t.isCaseSensitive,matchKind:t.matchKind,file:t.fileName,start:n.positionToLineOffset(t.textSpan.start),end:n.positionToLineOffset(Fs(t.textSpan))};return t.kindModifiers&&""!==t.kindModifiers&&(r.kindModifiers=t.kindModifiers),t.containerName&&t.containerName.length>0&&(r.containerName=t.containerName),t.containerKind&&t.containerKind.length>0&&(r.containerKind=t.containerKind),r}):({navigateToItems:e})=>e)}getFullNavigateToItems(e){const{currentFileOnly:t,searchValue:n,maxResultCount:r,projectFileName:i}=e;if(t){un.assertIsDefined(e.file);const{file:t,project:i}=this.getFileAndProject(e);return[{project:i,navigateToItems:i.getLanguageService().getNavigateToItems(n,r,t)}]}const o=this.getHostPreferences(),a=[],s=new Map;return e.file||i?$ge(this.getProjects(e),void 0,e=>c(e)):(this.projectService.loadAncestorProjectTree(),this.projectService.forEachEnabledProject(e=>c(e))),a;function c(e){const t=N(e.getLanguageService().getNavigateToItems(n,r,void 0,e.isNonTsProject(),o.excludeLibrarySymbolsInNavTo),t=>function(e){const t=e.name;if(!s.has(t))return s.set(t,[e]),!0;const n=s.get(t);for(const t of n)if(l(t,e))return!1;return n.push(e),!0}(t)&&!Zge(Yge(t),e));t.length&&a.push({project:e,navigateToItems:t})}function l(e,t){return e===t||!(!e||!t)&&e.containerKind===t.containerKind&&e.containerName===t.containerName&&e.fileName===t.fileName&&e.isCaseSensitive===t.isCaseSensitive&&e.kind===t.kind&&e.kindModifiers===t.kindModifiers&&e.matchKind===t.matchKind&&e.name===t.name&&e.textSpan.start===t.textSpan.start&&e.textSpan.length===t.textSpan.length}}getSupportedCodeFixes(e){if(!e)return J8();if(e.file){const{file:t,project:n}=this.getFileAndProject(e);return n.getLanguageService().getSupportedCodeFixes(t)}const t=this.getProject(e.projectFileName);return t||Efe.ThrowNoProject(),t.getLanguageService().getSupportedCodeFixes()}isLocation(e){return void 0!==e.line}extractPositionOrRange(e,t){let n,r;var i;return this.isLocation(e)?n=void 0!==(i=e).position?i.position:t.lineOffsetToPosition(i.line,i.offset):r=this.getRange(e,t),un.checkDefined(void 0===n?r:n)}getRange(e,t){const{startPosition:n,endPosition:r}=this.getStartAndEndPosition(e,t);return{pos:n,end:r}}getApplicableRefactors(e){const{file:t,project:n}=this.getFileAndProject(e),r=n.getScriptInfoForNormalizedPath(t);return n.getLanguageService().getApplicableRefactors(t,this.extractPositionOrRange(e,r),this.getPreferences(t),e.triggerReason,e.kind,e.includeInteractiveActions).map(e=>({...e,actions:e.actions.map(e=>({...e,range:e.range?{start:Rge({line:e.range.start.line,character:e.range.start.offset}),end:Rge({line:e.range.end.line,character:e.range.end.offset})}:void 0}))}))}getEditsForRefactor(e,t){const{file:n,project:r}=this.getFileAndProject(e),i=r.getScriptInfoForNormalizedPath(n),o=r.getLanguageService().getEditsForRefactor(n,this.getFormatOptions(n),this.extractPositionOrRange(e,i),e.refactor,e.action,this.getPreferences(n),e.interactiveRefactorArguments);if(void 0===o)return{edits:[]};if(t){const{renameFilename:e,renameLocation:t,edits:n}=o;let i;return void 0!==e&&void 0!==t&&(i=lhe(zQ(r.getScriptInfoForNormalizedPath(jfe(e)).getSnapshot()),e,t,n)),{renameLocation:i,renameFilename:e,edits:this.mapTextChangesToCodeEdits(n),notApplicableReason:o.notApplicableReason}}return o}getMoveToRefactoringFileSuggestions(e){const{file:t,project:n}=this.getFileAndProject(e),r=n.getScriptInfoForNormalizedPath(t);return n.getLanguageService().getMoveToRefactoringFileSuggestions(t,this.extractPositionOrRange(e,r),this.getPreferences(t))}preparePasteEdits(e){const{file:t,project:n}=this.getFileAndProject(e);return n.getLanguageService().preparePasteEditsForFile(t,e.copiedTextSpan.map(e=>this.getRange({file:t,startLine:e.start.line,startOffset:e.start.offset,endLine:e.end.line,endOffset:e.end.offset},this.projectService.getScriptInfoForNormalizedPath(t))))}getPasteEdits(e){const{file:t,project:n}=this.getFileAndProject(e);if(ame(t))return;const r=e.copiedFrom?{file:e.copiedFrom.file,range:e.copiedFrom.spans.map(t=>this.getRange({file:e.copiedFrom.file,startLine:t.start.line,startOffset:t.start.offset,endLine:t.end.line,endOffset:t.end.offset},n.getScriptInfoForNormalizedPath(jfe(e.copiedFrom.file))))}:void 0,i=n.getLanguageService().getPasteEdits({targetFile:t,pastedText:e.pastedText,pasteLocations:e.pasteLocations.map(e=>this.getRange({file:t,startLine:e.start.line,startOffset:e.start.offset,endLine:e.end.line,endOffset:e.end.offset},n.getScriptInfoForNormalizedPath(t))),copiedFrom:r,preferences:this.getPreferences(t)},this.getFormatOptions(t));return i&&this.mapPasteEditsAction(i)}organizeImports(e,t){un.assert("file"===e.scope.type);const{file:n,project:r}=this.getFileAndProject(e.scope.args),i=r.getLanguageService().organizeImports({fileName:n,mode:e.mode??(e.skipDestructiveCodeActions?"SortAndCombine":void 0),type:"file"},this.getFormatOptions(n),this.getPreferences(n));return t?this.mapTextChangesToCodeEdits(i):i}getEditsForFileRename(e,t){const n=jfe(e.oldFilePath),r=jfe(e.newFilePath),i=this.getHostFormatOptions(),o=this.getHostPreferences(),a=new Set,s=[];return this.projectService.loadAncestorProjectTree(),this.projectService.forEachEnabledProject(e=>{const t=e.getLanguageService().getEditsForFileRename(n,r,i,o),c=[];for(const e of t)a.has(e.fileName)||(s.push(e),c.push(e.fileName));for(const e of c)a.add(e)}),t?s.map(e=>this.mapTextChangeToCodeEdit(e)):s}getCodeFixes(e,t){const{file:n,project:r}=this.getFileAndProject(e),i=r.getScriptInfoForNormalizedPath(n),{startPosition:o,endPosition:a}=this.getStartAndEndPosition(e,i);let s;try{s=r.getLanguageService().getCodeFixesAtPosition(n,o,a,e.errorCodes,this.getFormatOptions(n),this.getPreferences(n))}catch(t){const i=t instanceof Error?t:new Error(t),s=r.getLanguageService(),c=[...s.getSyntacticDiagnostics(n),...s.getSemanticDiagnostics(n),...s.getSuggestionDiagnostics(n)].filter(e=>Js(o,a-o,e.start,e.length)).map(e=>e.code),l=e.errorCodes.find(e=>!c.includes(e));throw void 0!==l&&(i.message+=`\nAdditional information: BADCLIENT: Bad error code, ${l} not found in range ${o}..${a} (found: ${c.join(", ")})`),i}return t?s.map(e=>this.mapCodeFixAction(e)):s}getCombinedCodeFix({scope:e,fixId:t},n){un.assert("file"===e.type);const{file:r,project:i}=this.getFileAndProject(e.args),o=i.getLanguageService().getCombinedCodeFix({type:"file",fileName:r},t,this.getFormatOptions(r),this.getPreferences(r));return n?{changes:this.mapTextChangesToCodeEdits(o.changes),commands:o.commands}:o}applyCodeActionCommand(e){const t=e.command;for(const e of Ye(t)){const{file:t,project:n}=this.getFileAndProject(e);n.getLanguageService().applyCodeActionCommand(e,this.getFormatOptions(t)).then(e=>{},e=>{})}return{}}getStartAndEndPosition(e,t){let n,r;return void 0!==e.startPosition?n=e.startPosition:(n=t.lineOffsetToPosition(e.startLine,e.startOffset),e.startPosition=n),void 0!==e.endPosition?r=e.endPosition:(r=t.lineOffsetToPosition(e.endLine,e.endOffset),e.endPosition=r),{startPosition:n,endPosition:r}}mapCodeAction({description:e,changes:t,commands:n}){return{description:e,changes:this.mapTextChangesToCodeEdits(t),commands:n}}mapCodeFixAction({fixName:e,description:t,changes:n,commands:r,fixId:i,fixAllDescription:o}){return{fixName:e,description:t,changes:this.mapTextChangesToCodeEdits(n),commands:r,fixId:i,fixAllDescription:o}}mapPasteEditsAction({edits:e,fixId:t}){return{edits:this.mapTextChangesToCodeEdits(e),fixId:t}}mapTextChangesToCodeEdits(e){return e.map(e=>this.mapTextChangeToCodeEdit(e))}mapTextChangeToCodeEdit(e){const t=this.projectService.getScriptInfoOrConfig(e.fileName);return!!e.isNewFile==!!t&&(t||this.projectService.logErrorForScriptInfoNotFound(e.fileName),un.fail("Expected isNewFile for (only) new files. "+JSON.stringify({isNewFile:!!e.isNewFile,hasScriptInfo:!!t}))),t?{fileName:e.fileName,textChanges:e.textChanges.map(e=>function(e,t){return{start:che(t,e.span.start),end:che(t,Fs(e.span)),newText:e.newText}}(e,t))}:function(e){un.assert(1===e.textChanges.length);const t=ge(e.textChanges);return un.assert(0===t.span.start&&0===t.span.length),{fileName:e.fileName,textChanges:[{start:{line:0,offset:0},end:{line:0,offset:0},newText:t.newText}]}}(e)}convertTextChangeToCodeEdit(e,t){return{start:t.positionToLineOffset(e.span.start),end:t.positionToLineOffset(e.span.start+e.span.length),newText:e.newText?e.newText:""}}getBraceMatching(e,t){const{file:n,languageService:r}=this.getFileAndLanguageServiceForSyntacticOperation(e),i=this.projectService.getScriptInfoForNormalizedPath(n),o=this.getPosition(e,i),a=r.getBraceMatchingAtPosition(n,o);return a?t?a.map(e=>ahe(e,i)):a:void 0}getDiagnosticsForProject(e,t,n){if(this.suppressDiagnosticEvents)return;const{fileNames:r,languageServiceDisabled:i}=this.getProjectInfoWorker(n,void 0,!0,void 0,!0);if(i)return;const o=r.filter(e=>!e.includes("lib.d.ts"));if(0===o.length)return;const a=[],s=[],c=[],l=[],_=jfe(n),u=this.projectService.ensureDefaultProjectForFile(_);for(const e of o)this.getCanonicalFileName(e)===this.getCanonicalFileName(n)?a.push(e):this.projectService.getScriptInfo(e).isScriptOpen()?s.push(e):uO(e)?l.push(e):c.push(e);const d=[...a,...s,...c,...l].map(e=>({fileName:e,project:u}));this.updateErrorCheck(e,d,t,!1)}configurePlugin(e){this.projectService.configurePlugin(e)}getSmartSelectionRange(e,t){const{locations:n}=e,{file:r,languageService:i}=this.getFileAndLanguageServiceForSyntacticOperation(e),o=un.checkDefined(this.projectService.getScriptInfo(r));return E(n,e=>{const n=this.getPosition(e,o),a=i.getSmartSelectionRange(r,n);return t?this.mapSelectionRange(a,o):a})}toggleLineComment(e,t){const{file:n,languageService:r}=this.getFileAndLanguageServiceForSyntacticOperation(e),i=this.projectService.getScriptInfo(n),o=this.getRange(e,i),a=r.toggleLineComment(n,o);if(t){const e=this.projectService.getScriptInfoForNormalizedPath(n);return a.map(t=>this.convertTextChangeToCodeEdit(t,e))}return a}toggleMultilineComment(e,t){const{file:n,languageService:r}=this.getFileAndLanguageServiceForSyntacticOperation(e),i=this.projectService.getScriptInfoForNormalizedPath(n),o=this.getRange(e,i),a=r.toggleMultilineComment(n,o);if(t){const e=this.projectService.getScriptInfoForNormalizedPath(n);return a.map(t=>this.convertTextChangeToCodeEdit(t,e))}return a}commentSelection(e,t){const{file:n,languageService:r}=this.getFileAndLanguageServiceForSyntacticOperation(e),i=this.projectService.getScriptInfoForNormalizedPath(n),o=this.getRange(e,i),a=r.commentSelection(n,o);if(t){const e=this.projectService.getScriptInfoForNormalizedPath(n);return a.map(t=>this.convertTextChangeToCodeEdit(t,e))}return a}uncommentSelection(e,t){const{file:n,languageService:r}=this.getFileAndLanguageServiceForSyntacticOperation(e),i=this.projectService.getScriptInfoForNormalizedPath(n),o=this.getRange(e,i),a=r.uncommentSelection(n,o);if(t){const e=this.projectService.getScriptInfoForNormalizedPath(n);return a.map(t=>this.convertTextChangeToCodeEdit(t,e))}return a}mapSelectionRange(e,t){const n={textSpan:ahe(e.textSpan,t)};return e.parent&&(n.parent=this.mapSelectionRange(e.parent,t)),n}getScriptInfoFromProjectService(e){const t=jfe(e);return this.projectService.getScriptInfoForNormalizedPath(t)||(this.projectService.logErrorForScriptInfoNotFound(t),Efe.ThrowNoProject())}toProtocolCallHierarchyItem(e){const t=this.getScriptInfoFromProjectService(e.file);return{name:e.name,kind:e.kind,kindModifiers:e.kindModifiers,file:e.file,containerName:e.containerName,span:ahe(e.span,t),selectionSpan:ahe(e.selectionSpan,t)}}toProtocolCallHierarchyIncomingCall(e){const t=this.getScriptInfoFromProjectService(e.from.file);return{from:this.toProtocolCallHierarchyItem(e.from),fromSpans:e.fromSpans.map(e=>ahe(e,t))}}toProtocolCallHierarchyOutgoingCall(e,t){return{to:this.toProtocolCallHierarchyItem(e.to),fromSpans:e.fromSpans.map(e=>ahe(e,t))}}prepareCallHierarchy(e){const{file:t,project:n}=this.getFileAndProject(e),r=this.projectService.getScriptInfoForNormalizedPath(t);if(r){const i=this.getPosition(e,r),o=n.getLanguageService().prepareCallHierarchy(t,i);return o&&RZ(o,e=>this.toProtocolCallHierarchyItem(e))}}provideCallHierarchyIncomingCalls(e){const{file:t,project:n}=this.getFileAndProject(e),r=this.getScriptInfoFromProjectService(t);return n.getLanguageService().provideCallHierarchyIncomingCalls(t,this.getPosition(e,r)).map(e=>this.toProtocolCallHierarchyIncomingCall(e))}provideCallHierarchyOutgoingCalls(e){const{file:t,project:n}=this.getFileAndProject(e),r=this.getScriptInfoFromProjectService(t);return n.getLanguageService().provideCallHierarchyOutgoingCalls(t,this.getPosition(e,r)).map(e=>this.toProtocolCallHierarchyOutgoingCall(e,r))}getCanonicalFileName(e){return Jo(this.host.useCaseSensitiveFileNames?e:_t(e))}exit(){}notRequired(e){return e&&this.doOutput(void 0,e.command,e.seq,!0,this.performanceData),{responseRequired:!1,performanceData:this.performanceData}}requiredResponse(e){return{response:e,responseRequired:!0,performanceData:this.performanceData}}addProtocolHandler(e,t){if(this.handlers.has(e))throw new Error(`Protocol handler already exists for command "${e}"`);this.handlers.set(e,t)}setCurrentRequest(e){un.assert(void 0===this.currentRequestId),this.currentRequestId=e,this.cancellationToken.setRequest(e)}resetCurrentRequest(e){un.assert(this.currentRequestId===e),this.currentRequestId=void 0,this.cancellationToken.resetRequest(e)}executeWithRequestId(e,t,n){const r=this.performanceData;try{return this.performanceData=n,this.setCurrentRequest(e),t()}finally{this.resetCurrentRequest(e),this.performanceData=r}}executeCommand(e){const t=this.handlers.get(e.command);if(t){const n=this.executeWithRequestId(e.seq,()=>t(e),void 0);return this.projectService.enableRequestedPlugins(),n}return this.logger.msg(`Unrecognized JSON command:${aG(e)}`,"Err"),this.doOutput(void 0,"unknown",e.seq,!1,void 0,`Unrecognized JSON command: ${e.command}`),{responseRequired:!1}}onMessage(e){var t,n,r,i,o,a,s;let c;this.gcTimer.scheduleCollect();const l=this.performanceData;let _,u;this.logger.hasLevel(2)&&(c=this.hrtime(),this.logger.hasLevel(3)&&this.logger.info(`request:${oG(this.toStringMessage(e))}`));try{_=this.parseMessage(e),u=_.arguments&&_.arguments.file?_.arguments:void 0,null==(t=Hn)||t.instant(Hn.Phase.Session,"request",{seq:_.seq,command:_.command}),null==(n=Hn)||n.push(Hn.Phase.Session,"executeCommand",{seq:_.seq,command:_.command},!0);const{response:o,responseRequired:a,performanceData:s}=this.executeCommand(_);if(null==(r=Hn)||r.pop(),this.logger.hasLevel(2)){const e=(d=this.hrtime(c),(1e9*d[0]+d[1])/1e6).toFixed(4);a?this.logger.perftrc(`${_.seq}::${_.command}: elapsed time (in milliseconds) ${e}`):this.logger.perftrc(`${_.seq}::${_.command}: async elapsed time (in milliseconds) ${e}`)}null==(i=Hn)||i.instant(Hn.Phase.Session,"response",{seq:_.seq,command:_.command,success:!!o}),o?this.doOutput(o,_.command,_.seq,!0,s):a&&this.doOutput(void 0,_.command,_.seq,!1,s,"No content available.")}catch(t){if(null==(o=Hn)||o.popAll(),t instanceof Cr)return null==(a=Hn)||a.instant(Hn.Phase.Session,"commandCanceled",{seq:null==_?void 0:_.seq,command:null==_?void 0:_.command}),void this.doOutput({canceled:!0},_.command,_.seq,!0,this.performanceData);this.logErrorWorker(t,this.toStringMessage(e),u),null==(s=Hn)||s.instant(Hn.Phase.Session,"commandError",{seq:null==_?void 0:_.seq,command:null==_?void 0:_.command,message:t.message}),this.doOutput(void 0,_?_.command:"unknown",_?_.seq:0,!1,this.performanceData,"Error processing request. "+t.message+"\n"+t.stack)}finally{this.performanceData=l}var d}parseMessage(e){return JSON.parse(e)}toStringMessage(e){return e}getFormatOptions(e){return this.projectService.getFormatCodeOptions(e)}getPreferences(e){return this.projectService.getPreferences(e)}getHostFormatOptions(){return this.projectService.getHostFormatCodeOptions()}getHostPreferences(){return this.projectService.getHostPreferences()}};function ohe(e){const t=e.diagnosticsDuration&&Oe(e.diagnosticsDuration,([e,t])=>({...t,file:e}));return{...e,diagnosticsDuration:t}}function ahe(e,t){return{start:t.positionToLineOffset(e.start),end:t.positionToLineOffset(Fs(e))}}function she(e,t,n){const r=ahe(e,n),i=t&&ahe(t,n);return i?{...r,contextStart:i.start,contextEnd:i.end}:r}function che(e,t){return Ege(e)?{line:(n=e.getLineAndCharacterOfPosition(t)).line+1,offset:n.character+1}:e.positionToLineOffset(t);var n}function lhe(e,t,n,r){const i=function(e,t,n){for(const{fileName:r,textChanges:i}of n)if(r===t)for(let t=i.length-1;t>=0;t--){const{newText:n,span:{start:r,length:o}}=i[t];e=e.slice(0,r)+n+e.slice(r+o)}return e}(e,t,r),{line:o,character:a}=Ra(Oa(i),n);return{line:o+1,offset:a+1}}function _he(e,{fileName:t,textSpan:n,contextSpan:r,isWriteAccess:i,isDefinition:o},{disableLineTextInReferences:a}){const s=un.checkDefined(e.getScriptInfo(t)),c=she(n,r,s),l=a?void 0:function(e,t){const n=e.lineToTextSpan(t.start.line-1);return e.getSnapshot().getText(n.start,Fs(n)).replace(/\r|\n/g,"")}(s,c);return{file:t,...c,lineText:l,isWriteAccess:i,isDefinition:o}}function uhe(e){return void 0===e||e&&"object"==typeof e&&"string"==typeof e.exportName&&(void 0===e.fileName||"string"==typeof e.fileName)&&(void 0===e.ambientModuleName||"string"==typeof e.ambientModuleName&&(void 0===e.isPackageJsonImport||"boolean"==typeof e.isPackageJsonImport))}var dhe=(e=>(e[e.PreStart=0]="PreStart",e[e.Start=1]="Start",e[e.Entire=2]="Entire",e[e.Mid=3]="Mid",e[e.End=4]="End",e[e.PostEnd=5]="PostEnd",e))(dhe||{}),phe=class{constructor(){this.goSubtree=!0,this.lineIndex=new yhe,this.endBranch=[],this.state=2,this.initialText="",this.trailingText="",this.lineIndex.root=new vhe,this.startPath=[this.lineIndex.root],this.stack=[this.lineIndex.root]}get done(){return!1}insertLines(e,t){t&&(this.trailingText=""),e=e?this.initialText+e+this.trailingText:this.initialText+this.trailingText;const n=yhe.linesFromText(e).lines;let r,i;n.length>1&&""===n[n.length-1]&&n.pop();for(let e=this.endBranch.length-1;e>=0;e--)this.endBranch[e].updateCounts(),0===this.endBranch[e].charCount()&&(i=this.endBranch[e],r=e>0?this.endBranch[e-1]:this.branchNode);i&&r.remove(i);const o=this.startPath[this.startPath.length-1];if(n.length>0)if(o.text=n[0],n.length>1){let e=new Array(n.length-1),t=o;for(let t=1;t=0;){const n=this.startPath[r];e=n.insertAt(t,e),r--,t=n}let i=e.length;for(;i>0;){const t=new vhe;t.add(this.lineIndex.root),e=t.insertAt(this.lineIndex.root,e),i=e.length,this.lineIndex.root=t}this.lineIndex.root.updateCounts()}else for(let e=this.startPath.length-2;e>=0;e--)this.startPath[e].updateCounts();else{this.startPath[this.startPath.length-2].remove(o);for(let e=this.startPath.length-2;e>=0;e--)this.startPath[e].updateCounts()}return this.lineIndex}post(e,t,n){n===this.lineCollectionAtBranch&&(this.state=4),this.stack.pop()}pre(e,t,n,r,i){const o=this.stack[this.stack.length-1];let a;function s(e){return e.isLeaf()?new bhe(""):new vhe}switch(2===this.state&&1===i&&(this.state=1,this.branchNode=o,this.lineCollectionAtBranch=n),i){case 0:this.goSubtree=!1,4!==this.state&&o.add(n);break;case 1:4===this.state?this.goSubtree=!1:(a=s(n),o.add(a),this.startPath.push(a));break;case 2:4!==this.state?(a=s(n),o.add(a),this.startPath.push(a)):n.isLeaf()||(a=s(n),o.add(a),this.endBranch.push(a));break;case 3:this.goSubtree=!1;break;case 4:4!==this.state?this.goSubtree=!1:n.isLeaf()||(a=s(n),o.add(a),this.endBranch.push(a));break;case 5:this.goSubtree=!1,1!==this.state&&o.add(n)}this.goSubtree&&this.stack.push(a)}leaf(e,t,n){1===this.state?this.initialText=n.text.substring(0,e):2===this.state?(this.initialText=n.text.substring(0,e),this.trailingText=n.text.substring(e+t)):this.trailingText=n.text.substring(e+t)}},fhe=class{constructor(e,t,n){this.pos=e,this.deleteLen=t,this.insertedText=n}getTextChangeRange(){return Gs(Ws(this.pos,this.deleteLen),this.insertedText?this.insertedText.length:0)}},mhe=class e{constructor(){this.changes=[],this.versions=new Array(e.maxVersions),this.minVersion=0,this.currentVersion=0}versionToIndex(t){if(!(tthis.currentVersion))return t%e.maxVersions}currentVersionToIndex(){return this.currentVersion%e.maxVersions}edit(t,n,r){this.changes.push(new fhe(t,n,r)),(this.changes.length>e.changeNumberThreshold||n>e.changeLengthThreshold||r&&r.length>e.changeLengthThreshold)&&this.getSnapshot()}getSnapshot(){return this._getSnapshot()}_getSnapshot(){let t=this.versions[this.currentVersionToIndex()];if(this.changes.length>0){let n=t.index;for(const e of this.changes)n=n.edit(e.pos,e.deleteLen,e.insertedText);t=new hhe(this.currentVersion+1,this,n,this.changes),this.currentVersion=t.version,this.versions[this.currentVersionToIndex()]=t,this.changes=[],this.currentVersion-this.minVersion>=e.maxVersions&&(this.minVersion=this.currentVersion-e.maxVersions+1)}return t}getSnapshotVersion(){return this._getSnapshot().version}getAbsolutePositionAndLineText(e){return this._getSnapshot().index.lineNumberToInfo(e)}lineOffsetToPosition(e,t){return this._getSnapshot().index.absolutePositionOfStartOfLine(e)+(t-1)}positionToLineOffset(e){return this._getSnapshot().index.positionToLineOffset(e)}lineToTextSpan(e){const t=this._getSnapshot().index,{lineText:n,absolutePosition:r}=t.lineNumberToInfo(e+1);return Ws(r,void 0!==n?n.length:t.absolutePositionOfStartOfLine(e+2)-r)}getTextChangesBetweenVersions(e,t){if(!(e=this.minVersion){const n=[];for(let r=e+1;r<=t;r++){const e=this.versions[this.versionToIndex(r)];for(const t of e.changesSincePreviousVersion)n.push(t.getTextChangeRange())}return Qs(n)}}getLineCount(){return this._getSnapshot().index.getLineCount()}static fromString(t){const n=new e,r=new hhe(0,n,new yhe);n.versions[n.currentVersion]=r;const i=yhe.linesFromText(t);return r.index.load(i.lines),n}};mhe.changeNumberThreshold=8,mhe.changeLengthThreshold=256,mhe.maxVersions=8;var ghe=mhe,hhe=class e{constructor(e,t,n,r=Ife){this.version=e,this.cache=t,this.index=n,this.changesSincePreviousVersion=r}getText(e,t){return this.index.getText(e,t-e)}getLength(){return this.index.getLength()}getChangeRange(t){if(t instanceof e&&this.cache===t.cache)return this.version<=t.version?Xs:this.cache.getTextChangesBetweenVersions(t.version,this.version)}},yhe=class e{constructor(){this.checkEdits=!1}absolutePositionOfStartOfLine(e){return this.lineNumberToInfo(e).absolutePosition}positionToLineOffset(e){const{oneBasedLine:t,zeroBasedColumn:n}=this.root.charOffsetToLineInfo(1,e);return{line:t,offset:n+1}}positionToColumnAndLineText(e){return this.root.charOffsetToLineInfo(1,e)}getLineCount(){return this.root.lineCount()}lineNumberToInfo(e){if(e<=this.getLineCount()){const{position:t,leaf:n}=this.root.lineNumberToInfo(e,0);return{absolutePosition:t,lineText:n&&n.text}}return{absolutePosition:this.root.charCount(),lineText:void 0}}load(t){if(t.length>0){const n=[];for(let e=0;e0&&e{n=n.concat(r.text.substring(e,e+t))}}),n}getLength(){return this.root.charCount()}every(e,t,n){n||(n=this.root.charCount());const r={goSubtree:!0,done:!1,leaf(t,n,r){e(r,t,n)||(this.done=!0)}};return this.walk(t,n-t,r),!r.done}edit(t,n,r){if(0===this.root.charCount())return un.assert(0===n),void 0!==r?(this.load(e.linesFromText(r).lines),this):void 0;{let e;if(this.checkEdits){const i=this.getText(0,this.root.charCount());e=i.slice(0,t)+r+i.slice(t+n)}const i=new phe;let o=!1;if(t>=this.root.charCount()){t=this.root.charCount()-1;const e=this.getText(t,1);r=r?e+r:e,n=0,o=!0}else if(n>0){const e=t+n,{zeroBasedColumn:i,lineText:o}=this.positionToColumnAndLineText(e);0===i&&(n+=o.length,r=r?r+o:o)}if(this.root.walk(t,n,i),i.insertLines(r,o),this.checkEdits){const t=i.lineIndex.getText(0,i.lineIndex.getLength());un.assert(e===t,"buffer edit mismatch")}return i.lineIndex}}static buildTreeFromBottom(e){if(e.length<4)return new vhe(e);const t=new Array(Math.ceil(e.length/4));let n=0;for(let r=0;r0?n[r]=i:n.pop(),{lines:n,lineMap:t}}},vhe=class e{constructor(e=[]){this.children=e,this.totalChars=0,this.totalLines=0,e.length&&this.updateCounts()}isLeaf(){return!1}updateCounts(){this.totalChars=0,this.totalLines=0;for(const e of this.children)this.totalChars+=e.charCount(),this.totalLines+=e.lineCount()}execWalk(e,t,n,r,i){return n.pre&&n.pre(e,t,this.children[r],this,i),n.goSubtree?(this.children[r].walk(e,t,n),n.post&&n.post(e,t,this.children[r],this,i)):n.goSubtree=!0,n.done}skipChild(e,t,n,r,i){r.pre&&!r.done&&(r.pre(e,t,this.children[n],this,i),r.goSubtree=!0)}walk(e,t,n){if(0===this.children.length)return;let r=0,i=this.children[r].charCount(),o=e;for(;o>=i;)this.skipChild(o,t,r,n,0),o-=i,r++,i=this.children[r].charCount();if(o+t<=i){if(this.execWalk(o,t,n,r,2))return}else{if(this.execWalk(o,i-o,n,r,1))return;let e=t-(i-o);for(r++,i=this.children[r].charCount();e>i;){if(this.execWalk(0,i,n,r,3))return;e-=i,r++,i=this.children[r].charCount()}if(e>0&&this.execWalk(0,e,n,r,4))return}if(n.pre){const e=this.children.length;if(rt)return n.isLeaf()?{oneBasedLine:e,zeroBasedColumn:t,lineText:n.text}:n.charOffsetToLineInfo(e,t);t-=n.charCount(),e+=n.lineCount()}const n=this.lineCount();return 0===n?{oneBasedLine:1,zeroBasedColumn:0,lineText:void 0}:{oneBasedLine:n,zeroBasedColumn:un.checkDefined(this.lineNumberToInfo(n,0).leaf).charCount(),lineText:void 0}}lineNumberToInfo(e,t){for(const n of this.children){const r=n.lineCount();if(r>=e)return n.isLeaf()?{position:t,leaf:n}:n.lineNumberToInfo(e,t);e-=r,t+=n.charCount()}return{position:t,leaf:void 0}}splitAfter(t){let n;const r=this.children.length,i=++t;if(t=0;e--)0===a[e].children.length&&a.pop()}t&&a.push(t),this.updateCounts();for(let e=0;e{(this.packageInstalledPromise??(this.packageInstalledPromise=new Map)).set(this.packageInstallId,{resolve:e,reject:t})});return this.installer.send(t),n}attach(e){this.projectService=e,this.installer=this.createInstallerProcess()}onProjectClosed(e){this.installer.send({projectName:e.getProjectName(),kind:"closeProject"})}enqueueInstallTypingsRequest(e,t,n){const r=Lfe(e,t,n);this.logger.hasLevel(3)&&this.logger.info(`TIAdapter:: Scheduling throttled operation:${aG(r)}`),this.activeRequestCount0?this.activeRequestCount--:un.fail("TIAdapter:: Received too many responses");!this.requestQueue.isEmpty();){const e=this.requestQueue.dequeue();if(this.requestMap.get(e.projectName)===e){this.requestMap.delete(e.projectName),this.scheduleRequest(e);break}this.logger.hasLevel(3)&&this.logger.info(`TIAdapter:: Skipping defunct request for: ${e.projectName}`)}this.projectService.updateTypingsForProject(e),this.event(e,"setTypings");break;case eG:this.projectService.watchTypingLocations(e)}}scheduleRequest(t){this.logger.hasLevel(3)&&this.logger.info(`TIAdapter:: Scheduling request for: ${t.projectName}`),this.activeRequestCount++,this.host.setTimeout(()=>{this.logger.hasLevel(3)&&this.logger.info(`TIAdapter:: Sending request:${aG(t)}`),this.installer.send(t)},e.requestDelayMillis,`${t.projectName}::${t.kind}`)}};xhe.requestDelayMillis=100;var khe=xhe,She={};i(She,{ActionInvalidate:()=>KK,ActionPackageInstalled:()=>GK,ActionSet:()=>HK,ActionWatchTypingLocations:()=>eG,Arguments:()=>WK,AutoImportProviderProject:()=>xme,AuxiliaryProject:()=>vme,CharRangeSection:()=>dhe,CloseFileWatcherEvent:()=>zme,CommandNames:()=>Jge,ConfigFileDiagEvent:()=>Lme,ConfiguredProject:()=>kme,ConfiguredProjectLoadKind:()=>lge,CreateDirectoryWatcherEvent:()=>Jme,CreateFileWatcherEvent:()=>Bme,Errors:()=>Efe,EventBeginInstallTypes:()=>QK,EventEndInstallTypes:()=>YK,EventInitializationFailed:()=>ZK,EventTypesRegistry:()=>XK,ExternalProject:()=>Sme,GcTimer:()=>$fe,InferredProject:()=>yme,LargeFileReferencedEvent:()=>Ome,LineIndex:()=>yhe,LineLeaf:()=>bhe,LineNode:()=>vhe,LogLevel:()=>Afe,Msg:()=>Ofe,OpenFileInfoTelemetryEvent:()=>Rme,Project:()=>hme,ProjectInfoTelemetryEvent:()=>Mme,ProjectKind:()=>_me,ProjectLanguageServiceStateEvent:()=>jme,ProjectLoadingFinishEvent:()=>Ime,ProjectLoadingStartEvent:()=>Ame,ProjectService:()=>Fge,ProjectsUpdatedInBackgroundEvent:()=>Pme,ScriptInfo:()=>sme,ScriptVersionCache:()=>ghe,Session:()=>ihe,TextStorage:()=>ome,ThrottledOperations:()=>Wfe,TypingsInstallerAdapter:()=>khe,allFilesAreJsOrDts:()=>pme,allRootFilesAreJsOrDts:()=>dme,asNormalizedPath:()=>Rfe,convertCompilerOptions:()=>Gme,convertFormatOptions:()=>Kme,convertScriptKindName:()=>Zme,convertTypeAcquisition:()=>Qme,convertUserPreferences:()=>ege,convertWatchOptions:()=>Xme,countEachFileTypes:()=>ume,createInstallTypingsRequest:()=>Lfe,createModuleSpecifierCache:()=>Age,createNormalizedPathMap:()=>Bfe,createPackageJsonCache:()=>Ige,createSortedArray:()=>Vfe,emptyArray:()=>Ife,findArgument:()=>nG,formatDiagnosticToProtocol:()=>Bge,formatMessage:()=>zge,getBaseConfigFileName:()=>Hfe,getDetailWatchInfo:()=>hge,getLocationInNewDocument:()=>lhe,hasArgument:()=>tG,hasNoTypeScriptSource:()=>fme,indent:()=>oG,isBackgroundProject:()=>Nme,isConfigFile:()=>Ege,isConfiguredProject:()=>Cme,isDynamicFileName:()=>ame,isExternalProject:()=>wme,isInferredProject:()=>Tme,isInferredProjectName:()=>Jfe,isProjectDeferredClose:()=>Dme,makeAutoImportProviderProjectName:()=>qfe,makeAuxiliaryProjectName:()=>Ufe,makeInferredProjectName:()=>zfe,maxFileSize:()=>Eme,maxProgramSizeForNonTsFiles:()=>Fme,normalizedPathToPath:()=>Mfe,nowString:()=>rG,nullCancellationToken:()=>Oge,nullTypingsInstaller:()=>ige,protocol:()=>Kfe,scriptInfoIsContainedByBackgroundProject:()=>cme,scriptInfoIsContainedByDeferredClosedProject:()=>lme,stringifyIndented:()=>aG,toEvent:()=>Uge,toNormalizedPath:()=>jfe,tryConvertScriptKindName:()=>Yme,typingsInstaller:()=>Sfe,updateProjectIfDirty:()=>vge}),"undefined"!=typeof console&&(un.loggingHost={log(e,t){switch(e){case 1:return console.error(t);case 2:return console.warn(t);case 3:case 4:return console.log(t)}}})})({get exports(){return i},set exports(t){i=t,e.exports&&(e.exports=t)}})}},t={};function n(r){var i=t[r];if(void 0!==i)return i.exports;var o=t[r]={exports:{}};return e[r].call(o.exports,o,o.exports,n),o.exports}n.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t);var r=n(156);guts=r})(); \ No newline at end of file + })(name => super[name], (name, value) => super[name] = value);`};function xN(e,t){return GD(e)&&zN(e.expression)&&!!(8192&Qd(e.expression))&&e.expression.escapedText===t}function kN(e){return 9===e.kind}function SN(e){return 10===e.kind}function TN(e){return 11===e.kind}function CN(e){return 12===e.kind}function wN(e){return 14===e.kind}function NN(e){return 15===e.kind}function DN(e){return 16===e.kind}function FN(e){return 17===e.kind}function EN(e){return 18===e.kind}function PN(e){return 26===e.kind}function AN(e){return 28===e.kind}function IN(e){return 40===e.kind}function ON(e){return 41===e.kind}function LN(e){return 42===e.kind}function jN(e){return 54===e.kind}function RN(e){return 58===e.kind}function MN(e){return 59===e.kind}function BN(e){return 29===e.kind}function JN(e){return 39===e.kind}function zN(e){return 80===e.kind}function qN(e){return 81===e.kind}function UN(e){return 95===e.kind}function VN(e){return 90===e.kind}function WN(e){return 134===e.kind}function $N(e){return 131===e.kind}function HN(e){return 135===e.kind}function KN(e){return 148===e.kind}function GN(e){return 126===e.kind}function XN(e){return 128===e.kind}function QN(e){return 164===e.kind}function YN(e){return 129===e.kind}function ZN(e){return 108===e.kind}function eD(e){return 102===e.kind}function tD(e){return 84===e.kind}function nD(e){return 166===e.kind}function rD(e){return 167===e.kind}function iD(e){return 168===e.kind}function oD(e){return 169===e.kind}function aD(e){return 170===e.kind}function sD(e){return 171===e.kind}function cD(e){return 172===e.kind}function lD(e){return 173===e.kind}function _D(e){return 174===e.kind}function uD(e){return 175===e.kind}function dD(e){return 176===e.kind}function pD(e){return 177===e.kind}function fD(e){return 178===e.kind}function mD(e){return 179===e.kind}function gD(e){return 180===e.kind}function hD(e){return 181===e.kind}function yD(e){return 182===e.kind}function vD(e){return 183===e.kind}function bD(e){return 184===e.kind}function xD(e){return 185===e.kind}function kD(e){return 186===e.kind}function SD(e){return 187===e.kind}function TD(e){return 188===e.kind}function CD(e){return 189===e.kind}function wD(e){return 202===e.kind}function ND(e){return 190===e.kind}function DD(e){return 191===e.kind}function FD(e){return 192===e.kind}function ED(e){return 193===e.kind}function PD(e){return 194===e.kind}function AD(e){return 195===e.kind}function ID(e){return 196===e.kind}function OD(e){return 197===e.kind}function LD(e){return 198===e.kind}function jD(e){return 199===e.kind}function RD(e){return 200===e.kind}function MD(e){return 201===e.kind}function BD(e){return 205===e.kind}function JD(e){return 204===e.kind}function zD(e){return 203===e.kind}function qD(e){return 206===e.kind}function UD(e){return 207===e.kind}function VD(e){return 208===e.kind}function WD(e){return 209===e.kind}function $D(e){return 210===e.kind}function HD(e){return 211===e.kind}function KD(e){return 212===e.kind}function GD(e){return 213===e.kind}function XD(e){return 214===e.kind}function QD(e){return 215===e.kind}function YD(e){return 216===e.kind}function ZD(e){return 217===e.kind}function eF(e){return 218===e.kind}function tF(e){return 219===e.kind}function nF(e){return 220===e.kind}function rF(e){return 221===e.kind}function iF(e){return 222===e.kind}function oF(e){return 223===e.kind}function aF(e){return 224===e.kind}function sF(e){return 225===e.kind}function cF(e){return 226===e.kind}function lF(e){return 227===e.kind}function _F(e){return 228===e.kind}function uF(e){return 229===e.kind}function dF(e){return 230===e.kind}function pF(e){return 231===e.kind}function fF(e){return 232===e.kind}function mF(e){return 233===e.kind}function gF(e){return 234===e.kind}function hF(e){return 238===e.kind}function yF(e){return 235===e.kind}function vF(e){return 236===e.kind}function bF(e){return 237===e.kind}function xF(e){return 355===e.kind}function kF(e){return 356===e.kind}function SF(e){return 239===e.kind}function TF(e){return 240===e.kind}function CF(e){return 241===e.kind}function wF(e){return 243===e.kind}function NF(e){return 242===e.kind}function DF(e){return 244===e.kind}function FF(e){return 245===e.kind}function EF(e){return 246===e.kind}function PF(e){return 247===e.kind}function AF(e){return 248===e.kind}function IF(e){return 249===e.kind}function OF(e){return 250===e.kind}function LF(e){return 251===e.kind}function jF(e){return 252===e.kind}function RF(e){return 253===e.kind}function MF(e){return 254===e.kind}function BF(e){return 255===e.kind}function JF(e){return 256===e.kind}function zF(e){return 257===e.kind}function qF(e){return 258===e.kind}function UF(e){return 259===e.kind}function VF(e){return 260===e.kind}function WF(e){return 261===e.kind}function $F(e){return 262===e.kind}function HF(e){return 263===e.kind}function KF(e){return 264===e.kind}function GF(e){return 265===e.kind}function XF(e){return 266===e.kind}function QF(e){return 267===e.kind}function YF(e){return 268===e.kind}function ZF(e){return 269===e.kind}function eE(e){return 270===e.kind}function tE(e){return 271===e.kind}function nE(e){return 272===e.kind}function rE(e){return 273===e.kind}function iE(e){return 302===e.kind}function oE(e){return 300===e.kind}function aE(e){return 301===e.kind}function sE(e){return 300===e.kind}function cE(e){return 301===e.kind}function lE(e){return 274===e.kind}function _E(e){return 280===e.kind}function uE(e){return 275===e.kind}function dE(e){return 276===e.kind}function pE(e){return 277===e.kind}function fE(e){return 278===e.kind}function mE(e){return 279===e.kind}function gE(e){return 281===e.kind}function hE(e){return 80===e.kind||11===e.kind}function yE(e){return 282===e.kind}function vE(e){return 353===e.kind}function bE(e){return 357===e.kind}function xE(e){return 283===e.kind}function kE(e){return 284===e.kind}function SE(e){return 285===e.kind}function TE(e){return 286===e.kind}function CE(e){return 287===e.kind}function wE(e){return 288===e.kind}function NE(e){return 289===e.kind}function DE(e){return 290===e.kind}function FE(e){return 291===e.kind}function EE(e){return 292===e.kind}function PE(e){return 293===e.kind}function AE(e){return 294===e.kind}function IE(e){return 295===e.kind}function OE(e){return 296===e.kind}function LE(e){return 297===e.kind}function jE(e){return 298===e.kind}function RE(e){return 299===e.kind}function ME(e){return 303===e.kind}function BE(e){return 304===e.kind}function JE(e){return 305===e.kind}function zE(e){return 306===e.kind}function qE(e){return 307===e.kind}function UE(e){return 308===e.kind}function VE(e){return 309===e.kind}function WE(e){return 310===e.kind}function $E(e){return 311===e.kind}function HE(e){return 324===e.kind}function KE(e){return 325===e.kind}function GE(e){return 326===e.kind}function XE(e){return 312===e.kind}function QE(e){return 313===e.kind}function YE(e){return 314===e.kind}function ZE(e){return 315===e.kind}function eP(e){return 316===e.kind}function tP(e){return 317===e.kind}function nP(e){return 318===e.kind}function rP(e){return 319===e.kind}function iP(e){return 320===e.kind}function oP(e){return 322===e.kind}function aP(e){return 323===e.kind}function sP(e){return 328===e.kind}function cP(e){return 330===e.kind}function lP(e){return 332===e.kind}function _P(e){return 338===e.kind}function uP(e){return 333===e.kind}function dP(e){return 334===e.kind}function pP(e){return 335===e.kind}function fP(e){return 336===e.kind}function mP(e){return 337===e.kind}function gP(e){return 339===e.kind}function hP(e){return 331===e.kind}function yP(e){return 347===e.kind}function vP(e){return 340===e.kind}function bP(e){return 341===e.kind}function xP(e){return 342===e.kind}function kP(e){return 343===e.kind}function SP(e){return 344===e.kind}function TP(e){return 345===e.kind}function CP(e){return 346===e.kind}function wP(e){return 327===e.kind}function NP(e){return 348===e.kind}function DP(e){return 329===e.kind}function FP(e){return 350===e.kind}function EP(e){return 349===e.kind}function PP(e){return 351===e.kind}function AP(e){return 352===e.kind}var IP,OP=new WeakMap;function LP(e,t){var n;const r=e.kind;return Nl(r)?352===r?e._children:null==(n=OP.get(t))?void 0:n.get(e):l}function jP(e,t,n){352===e.kind&&un.fail("Should not need to re-set the children of a SyntaxList.");let r=OP.get(t);return void 0===r&&(r=new WeakMap,OP.set(t,r)),r.set(e,n),n}function RP(e,t){var n;352===e.kind&&un.fail("Did not expect to unset the children of a SyntaxList."),null==(n=OP.get(t))||n.delete(e)}function MP(e,t){const n=OP.get(e);void 0!==n&&(OP.delete(e),OP.set(t,n))}function BP(e){return e.createExportDeclaration(void 0,!1,e.createNamedExports([]),void 0)}function JP(e,t,n,r){if(rD(n))return nI(e.createElementAccessExpression(t,n.expression),r);{const r=nI(ul(n)?e.createPropertyAccessExpression(t,n):e.createElementAccessExpression(t,n),n);return rw(r,128),r}}function zP(e,t){const n=aI.createIdentifier(e||"React");return wT(n,dc(t)),n}function qP(e,t,n){if(nD(t)){const r=qP(e,t.left,n),i=e.createIdentifier(mc(t.right));return i.escapedText=t.right.escapedText,e.createPropertyAccessExpression(r,i)}return zP(mc(t),n)}function UP(e,t,n,r){return t?qP(e,t,r):e.createPropertyAccessExpression(zP(n,r),"createElement")}function VP(e,t,n,r,i,o){const a=[n];if(r&&a.push(r),i&&i.length>0)if(r||a.push(e.createNull()),i.length>1)for(const e of i)_A(e),a.push(e);else a.push(i[0]);return nI(e.createCallExpression(t,void 0,a),o)}function WP(e,t,n,r,i,o,a){const s=function(e,t,n,r){return t?qP(e,t,r):e.createPropertyAccessExpression(zP(n,r),"Fragment")}(e,n,r,o),c=[s,e.createNull()];if(i&&i.length>0)if(i.length>1)for(const e of i)_A(e),c.push(e);else c.push(i[0]);return nI(e.createCallExpression(UP(e,t,r,o),void 0,c),a)}function $P(e,t,n){if(WF(t)){const r=ge(t.declarations),i=e.updateVariableDeclaration(r,r.name,void 0,void 0,n);return nI(e.createVariableStatement(void 0,e.updateVariableDeclarationList(t,[i])),t)}{const r=nI(e.createAssignment(t,n),t);return nI(e.createExpressionStatement(r),t)}}function HP(e,t){if(nD(t)){const n=HP(e,t.left),r=wT(nI(e.cloneNode(t.right),t.right),t.right.parent);return nI(e.createPropertyAccessExpression(n,r),t)}return wT(nI(e.cloneNode(t),t),t.parent)}function KP(e,t){return zN(t)?e.createStringLiteralFromNode(t):rD(t)?wT(nI(e.cloneNode(t.expression),t.expression),t.expression.parent):wT(nI(e.cloneNode(t),t),t.parent)}function GP(e,t,n,r){switch(n.name&&qN(n.name)&&un.failBadSyntaxKind(n.name,"Private identifiers are not allowed in object literals."),n.kind){case 177:case 178:return function(e,t,n,r,i){const{firstAccessor:o,getAccessor:a,setAccessor:s}=dv(t,n);if(n===o)return nI(e.createObjectDefinePropertyCall(r,KP(e,n.name),e.createPropertyDescriptor({enumerable:e.createFalse(),configurable:!0,get:a&&nI(YC(e.createFunctionExpression(Nc(a),void 0,void 0,void 0,a.parameters,void 0,a.body),a),a),set:s&&nI(YC(e.createFunctionExpression(Nc(s),void 0,void 0,void 0,s.parameters,void 0,s.body),s),s)},!i)),o)}(e,t.properties,n,r,!!t.multiLine);case 303:return function(e,t,n){return YC(nI(e.createAssignment(JP(e,n,t.name,t.name),t.initializer),t),t)}(e,n,r);case 304:return function(e,t,n){return YC(nI(e.createAssignment(JP(e,n,t.name,t.name),e.cloneNode(t.name)),t),t)}(e,n,r);case 174:return function(e,t,n){return YC(nI(e.createAssignment(JP(e,n,t.name,t.name),YC(nI(e.createFunctionExpression(Nc(t),t.asteriskToken,void 0,void 0,t.parameters,void 0,t.body),t),t)),t),t)}(e,n,r)}}function XP(e,t,n,r,i){const o=t.operator;un.assert(46===o||47===o,"Expected 'node' to be a pre- or post-increment or pre- or post-decrement expression");const a=e.createTempVariable(r);nI(n=e.createAssignment(a,n),t.operand);let s=aF(t)?e.createPrefixUnaryExpression(o,a):e.createPostfixUnaryExpression(a,o);return nI(s,t),i&&(s=e.createAssignment(i,s),nI(s,t)),nI(n=e.createComma(n,s),t),sF(t)&&nI(n=e.createComma(n,a),t),n}function QP(e){return!!(65536&Qd(e))}function YP(e){return!!(32768&Qd(e))}function ZP(e){return!!(16384&Qd(e))}function eA(e){return TN(e.expression)&&"use strict"===e.expression.text}function tA(e){for(const t of e){if(!uf(t))break;if(eA(t))return t}}function nA(e){const t=fe(e);return void 0!==t&&uf(t)&&eA(t)}function rA(e){return 226===e.kind&&28===e.operatorToken.kind}function iA(e){return rA(e)||kF(e)}function oA(e){return ZD(e)&&Fm(e)&&!!el(e)}function aA(e){const t=tl(e);return un.assertIsDefined(t),t}function sA(e,t=31){switch(e.kind){case 217:return!(-2147483648&t&&oA(e)||!(1&t));case 216:case 234:case 238:return!!(2&t);case 233:return!!(16&t);case 235:return!!(4&t);case 355:return!!(8&t)}return!1}function cA(e,t=31){for(;sA(e,t);)e=e.expression;return e}function lA(e,t=31){let n=e.parent;for(;sA(n,t);)n=n.parent,un.assert(n);return n}function _A(e){return uw(e,!0)}function uA(e){const t=lc(e,qE),n=t&&t.emitNode;return n&&n.externalHelpersModuleName}function dA(e){const t=lc(e,qE),n=t&&t.emitNode;return!(!n||!n.externalHelpersModuleName&&!n.externalHelpers)}function pA(e,t,n,r,i,o,a){if(r.importHelpers&&mp(n,r)){const s=yk(r),c=SV(n,r),l=function(e){return N(ww(e),(e=>!e.scoped))}(n);if(s>=5&&s<=99||99===c||void 0===c&&200===s){if(l){const r=[];for(const e of l){const t=e.importName;t&&ce(r,t)}if($(r)){r.sort(Ct);const i=e.createNamedImports(E(r,(r=>Td(n,r)?e.createImportSpecifier(!1,void 0,e.createIdentifier(r)):e.createImportSpecifier(!1,e.createIdentifier(r),t.getUnscopedHelperName(r)))));ZC(lc(n,qE)).externalHelpers=!0;const o=e.createImportDeclaration(void 0,e.createImportClause(!1,void 0,i),e.createStringLiteral(qu),void 0);return ow(o,2),o}}}else{const t=function(e,t,n,r,i,o){const a=uA(t);if(a)return a;if($(r)||(i||kk(n)&&o)&&kV(t,n)<4){const n=ZC(lc(t,qE));return n.externalHelpersModuleName||(n.externalHelpersModuleName=e.createUniqueName(qu))}}(e,n,r,l,i,o||a);if(t){const n=e.createImportEqualsDeclaration(void 0,!1,t,e.createExternalModuleReference(e.createStringLiteral(qu)));return ow(n,2),n}}}}function fA(e,t,n){const r=kg(t);if(r&&!Sg(t)&&!Ud(t)){const i=r.name;return 11===i.kind?e.getGeneratedNameForNode(t):Vl(i)?i:e.createIdentifier(qd(n,i)||mc(i))}return 272===t.kind&&t.importClause||278===t.kind&&t.moduleSpecifier?e.getGeneratedNameForNode(t):void 0}function mA(e,t,n,r,i,o){const a=xg(t);if(a&&TN(a))return function(e,t,n,r,i){return gA(n,r.getExternalModuleFileFromDeclaration(e),t,i)}(t,r,e,i,o)||function(e,t,n){const r=n.renamedDependencies&&n.renamedDependencies.get(t.text);return r?e.createStringLiteral(r):void 0}(e,a,n)||e.cloneNode(a)}function gA(e,t,n,r){if(t)return t.moduleName?e.createStringLiteral(t.moduleName):!t.isDeclarationFile&&r.outFile?e.createStringLiteral(Jy(n,t.fileName)):void 0}function hA(e){if(T_(e))return e.initializer;if(ME(e)){const t=e.initializer;return nb(t,!0)?t.right:void 0}return BE(e)?e.objectAssignmentInitializer:nb(e,!0)?e.right:dF(e)?hA(e.expression):void 0}function yA(e){if(T_(e))return e.name;if(!y_(e))return nb(e,!0)?yA(e.left):dF(e)?yA(e.expression):e;switch(e.kind){case 303:return yA(e.initializer);case 304:return e.name;case 305:return yA(e.expression)}}function vA(e){switch(e.kind){case 169:case 208:return e.dotDotDotToken;case 230:case 305:return e}}function bA(e){const t=xA(e);return un.assert(!!t||JE(e),"Invalid property name for binding element."),t}function xA(e){switch(e.kind){case 208:if(e.propertyName){const t=e.propertyName;return qN(t)?un.failBadSyntaxKind(t):rD(t)&&kA(t.expression)?t.expression:t}break;case 303:if(e.name){const t=e.name;return qN(t)?un.failBadSyntaxKind(t):rD(t)&&kA(t.expression)?t.expression:t}break;case 305:return e.name&&qN(e.name)?un.failBadSyntaxKind(e.name):e.name}const t=yA(e);if(t&&e_(t))return t}function kA(e){const t=e.kind;return 11===t||9===t}function SA(e){switch(e.kind){case 206:case 207:case 209:return e.elements;case 210:return e.properties}}function TA(e){if(e){let t=e;for(;;){if(zN(t)||!t.body)return zN(t)?t:t.name;t=t.body}}}function CA(e){const t=e.kind;return 176===t||178===t}function wA(e){const t=e.kind;return 176===t||177===t||178===t}function NA(e){const t=e.kind;return 303===t||304===t||262===t||176===t||181===t||175===t||282===t||243===t||264===t||265===t||266===t||267===t||271===t||272===t||270===t||278===t||277===t}function DA(e){const t=e.kind;return 175===t||303===t||304===t||282===t||270===t}function FA(e){return RN(e)||jN(e)}function EA(e){return zN(e)||OD(e)}function PA(e){return KN(e)||IN(e)||ON(e)}function AA(e){return RN(e)||IN(e)||ON(e)}function IA(e){return zN(e)||TN(e)}function OA(e){return function(e){return 48===e||49===e||50===e}(e)||function(e){return function(e){return 40===e||41===e}(e)||function(e){return function(e){return 43===e}(e)||function(e){return 42===e||44===e||45===e}(e)}(e)}(e)}function LA(e){return function(e){return 56===e||57===e}(e)||function(e){return function(e){return 51===e||52===e||53===e}(e)||function(e){return function(e){return 35===e||37===e||36===e||38===e}(e)||function(e){return function(e){return 30===e||33===e||32===e||34===e||104===e||103===e}(e)||OA(e)}(e)}(e)}(e)}function jA(e){return function(e){return 61===e||LA(e)||Zv(e)}(t=e.kind)||28===t;var t}(e=>{function t(e,n,r,i,o,a,c){const l=n>0?o[n-1]:void 0;return un.assertEqual(r[n],t),o[n]=e.onEnter(i[n],l,c),r[n]=s(e,t),n}function n(e,t,r,i,o,a,_){un.assertEqual(r[t],n),un.assertIsDefined(e.onLeft),r[t]=s(e,n);const u=e.onLeft(i[t].left,o[t],i[t]);return u?(l(t,i,u),c(t,r,i,o,u)):t}function r(e,t,n,i,o,a,c){return un.assertEqual(n[t],r),un.assertIsDefined(e.onOperator),n[t]=s(e,r),e.onOperator(i[t].operatorToken,o[t],i[t]),t}function i(e,t,n,r,o,a,_){un.assertEqual(n[t],i),un.assertIsDefined(e.onRight),n[t]=s(e,i);const u=e.onRight(r[t].right,o[t],r[t]);return u?(l(t,r,u),c(t,n,r,o,u)):t}function o(e,t,n,r,i,a,c){un.assertEqual(n[t],o),n[t]=s(e,o);const l=e.onExit(r[t],i[t]);if(t>0){if(t--,e.foldState){const r=n[t]===o?"right":"left";i[t]=e.foldState(i[t],l,r)}}else a.value=l;return t}function a(e,t,n,r,i,o,s){return un.assertEqual(n[t],a),t}function s(e,s){switch(s){case t:if(e.onLeft)return n;case n:if(e.onOperator)return r;case r:if(e.onRight)return i;case i:return o;case o:case a:return a;default:un.fail("Invalid state")}}function c(e,n,r,i,o){return n[++e]=t,r[e]=o,i[e]=void 0,e}function l(e,t,n){if(un.shouldAssert(2))for(;e>=0;)un.assert(t[e]!==n,"Circular traversal detected."),e--}e.enter=t,e.left=n,e.operator=r,e.right=i,e.exit=o,e.done=a,e.nextState=s})(IP||(IP={}));var RA,MA,BA,JA,zA,qA=class{constructor(e,t,n,r,i,o){this.onEnter=e,this.onLeft=t,this.onOperator=n,this.onRight=r,this.onExit=i,this.foldState=o}};function UA(e,t,n,r,i,o){const a=new qA(e,t,n,r,i,o);return function(e,t){const n={value:void 0},r=[IP.enter],i=[e],o=[void 0];let s=0;for(;r[s]!==IP.done;)s=r[s](a,s,r,i,o,n,t);return un.assertEqual(s,0),n.value}}function VA(e){return 95===(t=e.kind)||90===t;var t}function WA(e,t){if(void 0!==t)return 0===t.length?t:nI(e.createNodeArray([],t.hasTrailingComma),t)}function $A(e){var t;const n=e.emitNode.autoGenerate;if(4&n.flags){const r=n.id;let i=e,o=i.original;for(;o;){i=o;const e=null==(t=i.emitNode)?void 0:t.autoGenerate;if(ul(i)&&(void 0===e||4&e.flags&&e.id!==r))break;o=i.original}return i}return e}function HA(e,t){return"object"==typeof e?KA(!1,e.prefix,e.node,e.suffix,t):"string"==typeof e?e.length>0&&35===e.charCodeAt(0)?e.slice(1):e:""}function KA(e,t,n,r,i){return t=HA(t,i),r=HA(r,i),`${e?"#":""}${t}${n=function(e,t){return"string"==typeof e?e:function(e,t){return Wl(e)?t(e).slice(1):Vl(e)?t(e):qN(e)?e.escapedText.slice(1):mc(e)}(e,un.checkDefined(t))}(n,i)}${r}`}function GA(e,t,n,r){return e.updatePropertyDeclaration(t,n,e.getGeneratedPrivateNameForNode(t.name,void 0,"_accessor_storage"),void 0,void 0,r)}function XA(e,t,n,r,i=e.createThis()){return e.createGetAccessorDeclaration(n,r,[],void 0,e.createBlock([e.createReturnStatement(e.createPropertyAccessExpression(i,e.getGeneratedPrivateNameForNode(t.name,void 0,"_accessor_storage")))]))}function QA(e,t,n,r,i=e.createThis()){return e.createSetAccessorDeclaration(n,r,[e.createParameterDeclaration(void 0,void 0,"value")],e.createBlock([e.createExpressionStatement(e.createAssignment(e.createPropertyAccessExpression(i,e.getGeneratedPrivateNameForNode(t.name,void 0,"_accessor_storage")),e.createIdentifier("value")))]))}function YA(e){let t=e.expression;for(;;)if(t=cA(t),kF(t))t=ve(t.elements);else{if(!rA(t)){if(nb(t,!0)&&Vl(t.left))return t;break}t=t.right}}function ZA(e,t){if(function(e){return ZD(e)&&Zh(e)&&!e.emitNode}(e))ZA(e.expression,t);else if(rA(e))ZA(e.left,t),ZA(e.right,t);else if(kF(e))for(const n of e.elements)ZA(n,t);else t.push(e)}function eI(e){const t=[];return ZA(e,t),t}function tI(e){if(65536&e.transformFlags)return!0;if(128&e.transformFlags)for(const t of SA(e)){const e=yA(t);if(e&&k_(e)){if(65536&e.transformFlags)return!0;if(128&e.transformFlags&&tI(e))return!0}}return!1}function nI(e,t){return t?ST(e,t.pos,t.end):e}function rI(e){const t=e.kind;return 168===t||169===t||171===t||172===t||173===t||174===t||176===t||177===t||178===t||181===t||185===t||218===t||219===t||231===t||243===t||262===t||263===t||264===t||265===t||266===t||267===t||271===t||272===t||277===t||278===t}function iI(e){const t=e.kind;return 169===t||172===t||174===t||177===t||178===t||231===t||263===t}var oI={createBaseSourceFileNode:e=>new(zA||(zA=jx.getSourceFileConstructor()))(e,-1,-1),createBaseIdentifierNode:e=>new(BA||(BA=jx.getIdentifierConstructor()))(e,-1,-1),createBasePrivateIdentifierNode:e=>new(JA||(JA=jx.getPrivateIdentifierConstructor()))(e,-1,-1),createBaseTokenNode:e=>new(MA||(MA=jx.getTokenConstructor()))(e,-1,-1),createBaseNode:e=>new(RA||(RA=jx.getNodeConstructor()))(e,-1,-1)},aI=BC(1,oI);function sI(e,t){return t&&e(t)}function cI(e,t,n){if(n){if(t)return t(n);for(const t of n){const n=e(t);if(n)return n}}}function lI(e,t){return 42===e.charCodeAt(t+1)&&42===e.charCodeAt(t+2)&&47!==e.charCodeAt(t+3)}function _I(e){return d(e.statements,uI)||function(e){return 8388608&e.flags?dI(e):void 0}(e)}function uI(e){return rI(e)&&function(e){return $(e.modifiers,(e=>95===e.kind))}(e)||tE(e)&&xE(e.moduleReference)||nE(e)||pE(e)||fE(e)?e:void 0}function dI(e){return function(e){return vF(e)&&102===e.keywordToken&&"meta"===e.name.escapedText}(e)?e:PI(e,dI)}var pI,fI={166:function(e,t,n){return sI(t,e.left)||sI(t,e.right)},168:function(e,t,n){return cI(t,n,e.modifiers)||sI(t,e.name)||sI(t,e.constraint)||sI(t,e.default)||sI(t,e.expression)},304:function(e,t,n){return cI(t,n,e.modifiers)||sI(t,e.name)||sI(t,e.questionToken)||sI(t,e.exclamationToken)||sI(t,e.equalsToken)||sI(t,e.objectAssignmentInitializer)},305:function(e,t,n){return sI(t,e.expression)},169:function(e,t,n){return cI(t,n,e.modifiers)||sI(t,e.dotDotDotToken)||sI(t,e.name)||sI(t,e.questionToken)||sI(t,e.type)||sI(t,e.initializer)},172:function(e,t,n){return cI(t,n,e.modifiers)||sI(t,e.name)||sI(t,e.questionToken)||sI(t,e.exclamationToken)||sI(t,e.type)||sI(t,e.initializer)},171:function(e,t,n){return cI(t,n,e.modifiers)||sI(t,e.name)||sI(t,e.questionToken)||sI(t,e.type)||sI(t,e.initializer)},303:function(e,t,n){return cI(t,n,e.modifiers)||sI(t,e.name)||sI(t,e.questionToken)||sI(t,e.exclamationToken)||sI(t,e.initializer)},260:function(e,t,n){return sI(t,e.name)||sI(t,e.exclamationToken)||sI(t,e.type)||sI(t,e.initializer)},208:function(e,t,n){return sI(t,e.dotDotDotToken)||sI(t,e.propertyName)||sI(t,e.name)||sI(t,e.initializer)},181:function(e,t,n){return cI(t,n,e.modifiers)||cI(t,n,e.typeParameters)||cI(t,n,e.parameters)||sI(t,e.type)},185:function(e,t,n){return cI(t,n,e.modifiers)||cI(t,n,e.typeParameters)||cI(t,n,e.parameters)||sI(t,e.type)},184:function(e,t,n){return cI(t,n,e.modifiers)||cI(t,n,e.typeParameters)||cI(t,n,e.parameters)||sI(t,e.type)},179:mI,180:mI,174:function(e,t,n){return cI(t,n,e.modifiers)||sI(t,e.asteriskToken)||sI(t,e.name)||sI(t,e.questionToken)||sI(t,e.exclamationToken)||cI(t,n,e.typeParameters)||cI(t,n,e.parameters)||sI(t,e.type)||sI(t,e.body)},173:function(e,t,n){return cI(t,n,e.modifiers)||sI(t,e.name)||sI(t,e.questionToken)||cI(t,n,e.typeParameters)||cI(t,n,e.parameters)||sI(t,e.type)},176:function(e,t,n){return cI(t,n,e.modifiers)||sI(t,e.name)||cI(t,n,e.typeParameters)||cI(t,n,e.parameters)||sI(t,e.type)||sI(t,e.body)},177:function(e,t,n){return cI(t,n,e.modifiers)||sI(t,e.name)||cI(t,n,e.typeParameters)||cI(t,n,e.parameters)||sI(t,e.type)||sI(t,e.body)},178:function(e,t,n){return cI(t,n,e.modifiers)||sI(t,e.name)||cI(t,n,e.typeParameters)||cI(t,n,e.parameters)||sI(t,e.type)||sI(t,e.body)},262:function(e,t,n){return cI(t,n,e.modifiers)||sI(t,e.asteriskToken)||sI(t,e.name)||cI(t,n,e.typeParameters)||cI(t,n,e.parameters)||sI(t,e.type)||sI(t,e.body)},218:function(e,t,n){return cI(t,n,e.modifiers)||sI(t,e.asteriskToken)||sI(t,e.name)||cI(t,n,e.typeParameters)||cI(t,n,e.parameters)||sI(t,e.type)||sI(t,e.body)},219:function(e,t,n){return cI(t,n,e.modifiers)||cI(t,n,e.typeParameters)||cI(t,n,e.parameters)||sI(t,e.type)||sI(t,e.equalsGreaterThanToken)||sI(t,e.body)},175:function(e,t,n){return cI(t,n,e.modifiers)||sI(t,e.body)},183:function(e,t,n){return sI(t,e.typeName)||cI(t,n,e.typeArguments)},182:function(e,t,n){return sI(t,e.assertsModifier)||sI(t,e.parameterName)||sI(t,e.type)},186:function(e,t,n){return sI(t,e.exprName)||cI(t,n,e.typeArguments)},187:function(e,t,n){return cI(t,n,e.members)},188:function(e,t,n){return sI(t,e.elementType)},189:function(e,t,n){return cI(t,n,e.elements)},192:gI,193:gI,194:function(e,t,n){return sI(t,e.checkType)||sI(t,e.extendsType)||sI(t,e.trueType)||sI(t,e.falseType)},195:function(e,t,n){return sI(t,e.typeParameter)},205:function(e,t,n){return sI(t,e.argument)||sI(t,e.attributes)||sI(t,e.qualifier)||cI(t,n,e.typeArguments)},302:function(e,t,n){return sI(t,e.assertClause)},196:hI,198:hI,199:function(e,t,n){return sI(t,e.objectType)||sI(t,e.indexType)},200:function(e,t,n){return sI(t,e.readonlyToken)||sI(t,e.typeParameter)||sI(t,e.nameType)||sI(t,e.questionToken)||sI(t,e.type)||cI(t,n,e.members)},201:function(e,t,n){return sI(t,e.literal)},202:function(e,t,n){return sI(t,e.dotDotDotToken)||sI(t,e.name)||sI(t,e.questionToken)||sI(t,e.type)},206:yI,207:yI,209:function(e,t,n){return cI(t,n,e.elements)},210:function(e,t,n){return cI(t,n,e.properties)},211:function(e,t,n){return sI(t,e.expression)||sI(t,e.questionDotToken)||sI(t,e.name)},212:function(e,t,n){return sI(t,e.expression)||sI(t,e.questionDotToken)||sI(t,e.argumentExpression)},213:vI,214:vI,215:function(e,t,n){return sI(t,e.tag)||sI(t,e.questionDotToken)||cI(t,n,e.typeArguments)||sI(t,e.template)},216:function(e,t,n){return sI(t,e.type)||sI(t,e.expression)},217:function(e,t,n){return sI(t,e.expression)},220:function(e,t,n){return sI(t,e.expression)},221:function(e,t,n){return sI(t,e.expression)},222:function(e,t,n){return sI(t,e.expression)},224:function(e,t,n){return sI(t,e.operand)},229:function(e,t,n){return sI(t,e.asteriskToken)||sI(t,e.expression)},223:function(e,t,n){return sI(t,e.expression)},225:function(e,t,n){return sI(t,e.operand)},226:function(e,t,n){return sI(t,e.left)||sI(t,e.operatorToken)||sI(t,e.right)},234:function(e,t,n){return sI(t,e.expression)||sI(t,e.type)},235:function(e,t,n){return sI(t,e.expression)},238:function(e,t,n){return sI(t,e.expression)||sI(t,e.type)},236:function(e,t,n){return sI(t,e.name)},227:function(e,t,n){return sI(t,e.condition)||sI(t,e.questionToken)||sI(t,e.whenTrue)||sI(t,e.colonToken)||sI(t,e.whenFalse)},230:function(e,t,n){return sI(t,e.expression)},241:bI,268:bI,307:function(e,t,n){return cI(t,n,e.statements)||sI(t,e.endOfFileToken)},243:function(e,t,n){return cI(t,n,e.modifiers)||sI(t,e.declarationList)},261:function(e,t,n){return cI(t,n,e.declarations)},244:function(e,t,n){return sI(t,e.expression)},245:function(e,t,n){return sI(t,e.expression)||sI(t,e.thenStatement)||sI(t,e.elseStatement)},246:function(e,t,n){return sI(t,e.statement)||sI(t,e.expression)},247:function(e,t,n){return sI(t,e.expression)||sI(t,e.statement)},248:function(e,t,n){return sI(t,e.initializer)||sI(t,e.condition)||sI(t,e.incrementor)||sI(t,e.statement)},249:function(e,t,n){return sI(t,e.initializer)||sI(t,e.expression)||sI(t,e.statement)},250:function(e,t,n){return sI(t,e.awaitModifier)||sI(t,e.initializer)||sI(t,e.expression)||sI(t,e.statement)},251:xI,252:xI,253:function(e,t,n){return sI(t,e.expression)},254:function(e,t,n){return sI(t,e.expression)||sI(t,e.statement)},255:function(e,t,n){return sI(t,e.expression)||sI(t,e.caseBlock)},269:function(e,t,n){return cI(t,n,e.clauses)},296:function(e,t,n){return sI(t,e.expression)||cI(t,n,e.statements)},297:function(e,t,n){return cI(t,n,e.statements)},256:function(e,t,n){return sI(t,e.label)||sI(t,e.statement)},257:function(e,t,n){return sI(t,e.expression)},258:function(e,t,n){return sI(t,e.tryBlock)||sI(t,e.catchClause)||sI(t,e.finallyBlock)},299:function(e,t,n){return sI(t,e.variableDeclaration)||sI(t,e.block)},170:function(e,t,n){return sI(t,e.expression)},263:kI,231:kI,264:function(e,t,n){return cI(t,n,e.modifiers)||sI(t,e.name)||cI(t,n,e.typeParameters)||cI(t,n,e.heritageClauses)||cI(t,n,e.members)},265:function(e,t,n){return cI(t,n,e.modifiers)||sI(t,e.name)||cI(t,n,e.typeParameters)||sI(t,e.type)},266:function(e,t,n){return cI(t,n,e.modifiers)||sI(t,e.name)||cI(t,n,e.members)},306:function(e,t,n){return sI(t,e.name)||sI(t,e.initializer)},267:function(e,t,n){return cI(t,n,e.modifiers)||sI(t,e.name)||sI(t,e.body)},271:function(e,t,n){return cI(t,n,e.modifiers)||sI(t,e.name)||sI(t,e.moduleReference)},272:function(e,t,n){return cI(t,n,e.modifiers)||sI(t,e.importClause)||sI(t,e.moduleSpecifier)||sI(t,e.attributes)},273:function(e,t,n){return sI(t,e.name)||sI(t,e.namedBindings)},300:function(e,t,n){return cI(t,n,e.elements)},301:function(e,t,n){return sI(t,e.name)||sI(t,e.value)},270:function(e,t,n){return cI(t,n,e.modifiers)||sI(t,e.name)},274:function(e,t,n){return sI(t,e.name)},280:function(e,t,n){return sI(t,e.name)},275:SI,279:SI,278:function(e,t,n){return cI(t,n,e.modifiers)||sI(t,e.exportClause)||sI(t,e.moduleSpecifier)||sI(t,e.attributes)},276:TI,281:TI,277:function(e,t,n){return cI(t,n,e.modifiers)||sI(t,e.expression)},228:function(e,t,n){return sI(t,e.head)||cI(t,n,e.templateSpans)},239:function(e,t,n){return sI(t,e.expression)||sI(t,e.literal)},203:function(e,t,n){return sI(t,e.head)||cI(t,n,e.templateSpans)},204:function(e,t,n){return sI(t,e.type)||sI(t,e.literal)},167:function(e,t,n){return sI(t,e.expression)},298:function(e,t,n){return cI(t,n,e.types)},233:function(e,t,n){return sI(t,e.expression)||cI(t,n,e.typeArguments)},283:function(e,t,n){return sI(t,e.expression)},282:function(e,t,n){return cI(t,n,e.modifiers)},356:function(e,t,n){return cI(t,n,e.elements)},284:function(e,t,n){return sI(t,e.openingElement)||cI(t,n,e.children)||sI(t,e.closingElement)},288:function(e,t,n){return sI(t,e.openingFragment)||cI(t,n,e.children)||sI(t,e.closingFragment)},285:CI,286:CI,292:function(e,t,n){return cI(t,n,e.properties)},291:function(e,t,n){return sI(t,e.name)||sI(t,e.initializer)},293:function(e,t,n){return sI(t,e.expression)},294:function(e,t,n){return sI(t,e.dotDotDotToken)||sI(t,e.expression)},287:function(e,t,n){return sI(t,e.tagName)},295:function(e,t,n){return sI(t,e.namespace)||sI(t,e.name)},190:wI,191:wI,309:wI,315:wI,314:wI,316:wI,318:wI,317:function(e,t,n){return cI(t,n,e.parameters)||sI(t,e.type)},320:function(e,t,n){return("string"==typeof e.comment?void 0:cI(t,n,e.comment))||cI(t,n,e.tags)},347:function(e,t,n){return sI(t,e.tagName)||sI(t,e.name)||("string"==typeof e.comment?void 0:cI(t,n,e.comment))},310:function(e,t,n){return sI(t,e.name)},311:function(e,t,n){return sI(t,e.left)||sI(t,e.right)},341:NI,348:NI,330:function(e,t,n){return sI(t,e.tagName)||("string"==typeof e.comment?void 0:cI(t,n,e.comment))},329:function(e,t,n){return sI(t,e.tagName)||sI(t,e.class)||("string"==typeof e.comment?void 0:cI(t,n,e.comment))},328:function(e,t,n){return sI(t,e.tagName)||sI(t,e.class)||("string"==typeof e.comment?void 0:cI(t,n,e.comment))},345:function(e,t,n){return sI(t,e.tagName)||sI(t,e.constraint)||cI(t,n,e.typeParameters)||("string"==typeof e.comment?void 0:cI(t,n,e.comment))},346:function(e,t,n){return sI(t,e.tagName)||(e.typeExpression&&309===e.typeExpression.kind?sI(t,e.typeExpression)||sI(t,e.fullName)||("string"==typeof e.comment?void 0:cI(t,n,e.comment)):sI(t,e.fullName)||sI(t,e.typeExpression)||("string"==typeof e.comment?void 0:cI(t,n,e.comment)))},338:function(e,t,n){return sI(t,e.tagName)||sI(t,e.fullName)||sI(t,e.typeExpression)||("string"==typeof e.comment?void 0:cI(t,n,e.comment))},342:DI,344:DI,343:DI,340:DI,350:DI,349:DI,339:DI,323:function(e,t,n){return d(e.typeParameters,t)||d(e.parameters,t)||sI(t,e.type)},324:FI,325:FI,326:FI,322:function(e,t,n){return d(e.jsDocPropertyTags,t)},327:EI,332:EI,333:EI,334:EI,335:EI,336:EI,331:EI,337:EI,351:function(e,t,n){return sI(t,e.tagName)||sI(t,e.importClause)||sI(t,e.moduleSpecifier)||sI(t,e.attributes)||("string"==typeof e.comment?void 0:cI(t,n,e.comment))},355:function(e,t,n){return sI(t,e.expression)}};function mI(e,t,n){return cI(t,n,e.typeParameters)||cI(t,n,e.parameters)||sI(t,e.type)}function gI(e,t,n){return cI(t,n,e.types)}function hI(e,t,n){return sI(t,e.type)}function yI(e,t,n){return cI(t,n,e.elements)}function vI(e,t,n){return sI(t,e.expression)||sI(t,e.questionDotToken)||cI(t,n,e.typeArguments)||cI(t,n,e.arguments)}function bI(e,t,n){return cI(t,n,e.statements)}function xI(e,t,n){return sI(t,e.label)}function kI(e,t,n){return cI(t,n,e.modifiers)||sI(t,e.name)||cI(t,n,e.typeParameters)||cI(t,n,e.heritageClauses)||cI(t,n,e.members)}function SI(e,t,n){return cI(t,n,e.elements)}function TI(e,t,n){return sI(t,e.propertyName)||sI(t,e.name)}function CI(e,t,n){return sI(t,e.tagName)||cI(t,n,e.typeArguments)||sI(t,e.attributes)}function wI(e,t,n){return sI(t,e.type)}function NI(e,t,n){return sI(t,e.tagName)||(e.isNameFirst?sI(t,e.name)||sI(t,e.typeExpression):sI(t,e.typeExpression)||sI(t,e.name))||("string"==typeof e.comment?void 0:cI(t,n,e.comment))}function DI(e,t,n){return sI(t,e.tagName)||sI(t,e.typeExpression)||("string"==typeof e.comment?void 0:cI(t,n,e.comment))}function FI(e,t,n){return sI(t,e.name)}function EI(e,t,n){return sI(t,e.tagName)||("string"==typeof e.comment?void 0:cI(t,n,e.comment))}function PI(e,t,n){if(void 0===e||e.kind<=165)return;const r=fI[e.kind];return void 0===r?void 0:r(e,t,n)}function AI(e,t,n){const r=II(e),i=[];for(;i.length=0;--t)r.push(e[t]),i.push(o)}else{const n=t(e,o);if(n){if("skip"===n)continue;return n}if(e.kind>=166)for(const t of II(e))r.push(t),i.push(e)}}}function II(e){const t=[];return PI(e,n,n),t;function n(e){t.unshift(e)}}function OI(e){e.externalModuleIndicator=_I(e)}function LI(e,t,n,r=!1,i){var o,a;let s;null==(o=Hn)||o.push(Hn.Phase.Parse,"createSourceFile",{path:e},!0),tr("beforeParse");const{languageVersion:c,setExternalModuleIndicator:l,impliedNodeFormat:_,jsDocParsingMode:u}="object"==typeof n?n:{languageVersion:n};if(100===c)s=pI.parseSourceFile(e,t,c,void 0,r,6,rt,u);else{const n=void 0===_?l:e=>(e.impliedNodeFormat=_,(l||OI)(e));s=pI.parseSourceFile(e,t,c,void 0,r,i,n,u)}return tr("afterParse"),nr("Parse","beforeParse","afterParse"),null==(a=Hn)||a.pop(),s}function jI(e,t){return pI.parseIsolatedEntityName(e,t)}function RI(e,t){return pI.parseJsonText(e,t)}function MI(e){return void 0!==e.externalModuleIndicator}function BI(e,t,n,r=!1){const i=qI.updateSourceFile(e,t,n,r);return i.flags|=12582912&e.flags,i}function JI(e,t,n){const r=pI.JSDocParser.parseIsolatedJSDocComment(e,t,n);return r&&r.jsDoc&&pI.fixupParentReferences(r.jsDoc),r}function zI(e,t,n){return pI.JSDocParser.parseJSDocTypeExpressionForTests(e,t,n)}(e=>{var t,n,r,i,o,a=ms(99,!0);function s(e){return b++,e}var c,u,d,p,f,m,g,h,y,v,b,x,S,T,C,w,N=BC(11,{createBaseSourceFileNode:e=>s(new o(e,0,0)),createBaseIdentifierNode:e=>s(new r(e,0,0)),createBasePrivateIdentifierNode:e=>s(new i(e,0,0)),createBaseTokenNode:e=>s(new n(e,0,0)),createBaseNode:e=>s(new t(e,0,0))}),{createNodeArray:D,createNumericLiteral:F,createStringLiteral:E,createLiteralLikeNode:P,createIdentifier:A,createPrivateIdentifier:I,createToken:O,createArrayLiteralExpression:L,createObjectLiteralExpression:j,createPropertyAccessExpression:R,createPropertyAccessChain:M,createElementAccessExpression:J,createElementAccessChain:z,createCallExpression:q,createCallChain:U,createNewExpression:V,createParenthesizedExpression:W,createBlock:H,createVariableStatement:G,createExpressionStatement:X,createIfStatement:Q,createWhileStatement:Y,createForStatement:Z,createForOfStatement:ee,createVariableDeclaration:te,createVariableDeclarationList:ne}=N,re=!0,oe=!1;function ae(e,t,n=2,r,i=!1){ce(e,t,n,r,6,0),u=w,Ve();const o=Be();let a,s;if(1===ze())a=bt([],o,o),s=gt();else{let e;for(;1!==ze();){let t;switch(ze()){case 23:t=ri();break;case 112:case 97:case 106:t=gt();break;case 41:t=tt((()=>9===Ve()&&59!==Ve()))?Ar():oi();break;case 9:case 11:if(tt((()=>59!==Ve()))){t=fn();break}default:t=oi()}e&&Qe(e)?e.push(t):e?e=[e,t]:(e=t,1!==ze()&&Oe(la.Unexpected_token))}const t=Qe(e)?xt(L(e),o):un.checkDefined(e),n=X(t);xt(n,o),a=bt([n],o),s=mt(1,la.Unexpected_token)}const c=pe(e,2,6,!1,a,s,u,rt);i&&de(c),c.nodeCount=b,c.identifierCount=S,c.identifiers=x,c.parseDiagnostics=Hx(g,c),h&&(c.jsDocDiagnostics=Hx(h,c));const l=c;return le(),l}function ce(e,s,l,_,h,v){switch(t=jx.getNodeConstructor(),n=jx.getTokenConstructor(),r=jx.getIdentifierConstructor(),i=jx.getPrivateIdentifierConstructor(),o=jx.getSourceFileConstructor(),c=Jo(e),d=s,p=l,y=_,f=h,m=ck(h),g=[],T=0,x=new Map,S=0,b=0,u=0,re=!0,f){case 1:case 2:w=524288;break;case 6:w=134742016;break;default:w=0}oe=!1,a.setText(d),a.setOnError(Me),a.setScriptTarget(p),a.setLanguageVariant(m),a.setScriptKind(f),a.setJSDocParsingMode(v)}function le(){a.clearCommentDirectives(),a.setText(""),a.setOnError(void 0),a.setScriptKind(0),a.setJSDocParsingMode(0),d=void 0,p=void 0,y=void 0,f=void 0,m=void 0,u=0,g=void 0,h=void 0,T=0,x=void 0,C=void 0,re=!0}e.parseSourceFile=function(e,t,n,r,i=!1,o,s,p=0){var f;if(6===(o=yS(e,o))){const o=ae(e,t,n,r,i);return bL(o,null==(f=o.statements[0])?void 0:f.expression,o.parseDiagnostics,!1,void 0),o.referencedFiles=l,o.typeReferenceDirectives=l,o.libReferenceDirectives=l,o.amdDependencies=l,o.hasNoDefaultLib=!1,o.pragmas=_,o}ce(e,t,n,r,o,p);const m=function(e,t,n,r,i){const o=$I(c);o&&(w|=33554432),u=w,Ve();const s=Xt(0,Ci);un.assert(1===ze());const l=Je(),_=ue(gt(),l),p=pe(c,e,n,o,s,_,u,r);return KI(p,d),GI(p,(function(e,t,n){g.push(Vx(c,d,e,t,n))})),p.commentDirectives=a.getCommentDirectives(),p.nodeCount=b,p.identifierCount=S,p.identifiers=x,p.parseDiagnostics=Hx(g,p),p.jsDocParsingMode=i,h&&(p.jsDocDiagnostics=Hx(h,p)),t&&de(p),p}(n,i,o,s||OI,p);return le(),m},e.parseIsolatedEntityName=function(e,t){ce("",e,t,void 0,1,0),Ve();const n=an(!0),r=1===ze()&&!g.length;return le(),r?n:void 0},e.parseJsonText=ae;let _e=!1;function ue(e,t){if(!t)return e;un.assert(!e.jsDoc);const n=B(hf(e,d),(t=>Fo.parseJSDocComment(e,t.pos,t.end-t.pos)));return n.length&&(e.jsDoc=n),_e&&(_e=!1,e.flags|=536870912),e}function de(e){NT(e,!0)}function pe(e,t,n,r,i,o,s,c){let l=N.createSourceFile(i,o,s);if(TT(l,0,d.length),_(l),!r&&MI(l)&&67108864&l.transformFlags){const e=l;l=function(e){const t=y,n=qI.createSyntaxCursor(e);y={currentNode:function(e){const t=n.currentNode(e);return re&&t&&c(t)&&WI(t),t}};const r=[],i=g;g=[];let o=0,s=l(e.statements,0);for(;-1!==s;){const t=e.statements[o],n=e.statements[s];se(r,e.statements,o,s),o=_(e.statements,s);const c=k(i,(e=>e.start>=t.pos)),u=c>=0?k(i,(e=>e.start>=n.pos),c):-1;c>=0&&se(g,i,c,u>=0?u:void 0),et((()=>{const t=w;for(w|=65536,a.resetTokenState(n.pos),Ve();1!==ze();){const t=a.getTokenFullStart(),n=Qt(0,Ci);if(r.push(n),t===a.getTokenFullStart()&&Ve(),o>=0){const t=e.statements[o];if(n.end===t.pos)break;n.end>t.pos&&(o=_(e.statements,o+1))}}w=t}),2),s=o>=0?l(e.statements,o):-1}if(o>=0){const t=e.statements[o];se(r,e.statements,o);const n=k(i,(e=>e.start>=t.pos));n>=0&&se(g,i,n)}return y=t,N.updateSourceFile(e,nI(D(r),e.statements));function c(e){return!(65536&e.flags||!(67108864&e.transformFlags))}function l(e,t){for(let n=t;n118}function ot(){return 80===ze()||(127!==ze()||!Fe())&&(135!==ze()||!Ie())&&ze()>118}function at(e,t,n=!0){return ze()===e?(n&&Ve(),!0):(t?Oe(t):Oe(la._0_expected,Da(e)),!1)}e.fixupParentReferences=de;const ct=Object.keys(da).filter((e=>e.length>2));function lt(e){if(QD(e))return void je(Xa(d,e.template.pos),e.template.end,la.Module_declaration_names_may_only_use_or_quoted_strings);const t=zN(e)?mc(e):void 0;if(!t||!fs(t,p))return void Oe(la._0_expected,Da(27));const n=Xa(d,e.pos);switch(t){case"const":case"let":case"var":return void je(n,e.end,la.Variable_declaration_not_allowed_at_this_location);case"declare":return;case"interface":return void _t(la.Interface_name_cannot_be_0,la.Interface_must_be_given_a_name,19);case"is":return void je(n,a.getTokenStart(),la.A_type_predicate_is_only_allowed_in_return_type_position_for_functions_and_methods);case"module":case"namespace":return void _t(la.Namespace_name_cannot_be_0,la.Namespace_must_be_given_a_name,19);case"type":return void _t(la.Type_alias_name_cannot_be_0,la.Type_alias_must_be_given_a_name,64)}const r=Lt(t,ct,st)??function(e){for(const t of ct)if(e.length>t.length+2&&Gt(e,t))return`${t} ${e.slice(t.length)}`}(t);r?je(n,e.end,la.Unknown_keyword_or_identifier_Did_you_mean_0,r):0!==ze()&&je(n,e.end,la.Unexpected_keyword_or_identifier)}function _t(e,t,n){ze()===n?Oe(t):Oe(e,a.getTokenValue())}function ut(e){return ze()===e?(We(),!0):(un.assert(wh(e)),Oe(la._0_expected,Da(e)),!1)}function dt(e,t,n,r){if(ze()===t)return void Ve();const i=Oe(la._0_expected,Da(t));n&&i&&iT(i,Vx(c,d,r,1,la.The_parser_expected_to_find_a_1_to_match_the_0_token_here,Da(e),Da(t)))}function pt(e){return ze()===e&&(Ve(),!0)}function ft(e){if(ze()===e)return gt()}function mt(e,t,n){return ft(e)||kt(e,!1,t||la._0_expected,n||Da(e))}function gt(){const e=Be(),t=ze();return Ve(),xt(O(t),e)}function ht(){return 27===ze()||20===ze()||1===ze()||a.hasPrecedingLineBreak()}function yt(){return!!ht()&&(27===ze()&&Ve(),!0)}function vt(){return yt()||at(27)}function bt(e,t,n,r){const i=D(e,r);return ST(i,t,n??a.getTokenFullStart()),i}function xt(e,t,n){return ST(e,t,n??a.getTokenFullStart()),w&&(e.flags|=w),oe&&(oe=!1,e.flags|=262144),e}function kt(e,t,n,...r){t?Le(a.getTokenFullStart(),0,n,...r):n&&Oe(n,...r);const i=Be();return xt(80===e?A("",void 0):Ol(e)?N.createTemplateLiteralLikeNode(e,"","",void 0):9===e?F("",void 0):11===e?E("",void 0):282===e?N.createMissingDeclaration():O(e),i)}function St(e){let t=x.get(e);return void 0===t&&x.set(e,t=e),t}function Tt(e,t,n){if(e){S++;const e=a.hasPrecedingJSDocLeadingAsterisks()?a.getTokenStart():Be(),t=ze(),n=St(a.getTokenValue()),r=a.hasExtendedUnicodeEscape();return qe(),xt(A(n,t,r),e)}if(81===ze())return Oe(n||la.Private_identifiers_are_not_allowed_outside_class_bodies),Tt(!0);if(0===ze()&&a.tryScan((()=>80===a.reScanInvalidIdentifier())))return Tt(!0);S++;const r=1===ze(),i=a.isReservedWord(),o=a.getTokenText(),s=i?la.Identifier_expected_0_is_a_reserved_word_that_cannot_be_used_here:la.Identifier_expected;return kt(80,r,t||s,o)}function Ct(e){return Tt(it(),void 0,e)}function wt(e,t){return Tt(ot(),e,t)}function Nt(e){return Tt(_a(ze()),e)}function Dt(){return(a.hasUnicodeEscape()||a.hasExtendedUnicodeEscape())&&Oe(la.Unicode_escape_sequence_cannot_appear_here),Tt(_a(ze()))}function Ft(){return _a(ze())||11===ze()||9===ze()||10===ze()}function Et(){return function(e){if(11===ze()||9===ze()||10===ze()){const e=fn();return e.text=St(e.text),e}return e&&23===ze()?function(){const e=Be();at(23);const t=Se(yr);return at(24),xt(N.createComputedPropertyName(t),e)}():81===ze()?Pt():Nt()}(!0)}function Pt(){const e=Be(),t=I(St(a.getTokenValue()));return Ve(),xt(t,e)}function At(e){return ze()===e&&nt(Ot)}function It(){return Ve(),!a.hasPrecedingLineBreak()&&Mt()}function Ot(){switch(ze()){case 87:return 94===Ve();case 95:return Ve(),90===ze()?tt(Bt):156===ze()?tt(Rt):jt();case 90:return Bt();case 126:return Ve(),Mt();case 139:case 153:return Ve(),23===ze()||Ft();default:return It()}}function jt(){return 60===ze()||42!==ze()&&130!==ze()&&19!==ze()&&Mt()}function Rt(){return Ve(),jt()}function Mt(){return 23===ze()||19===ze()||42===ze()||26===ze()||Ft()}function Bt(){return Ve(),86===ze()||100===ze()||120===ze()||60===ze()||128===ze()&&tt(pi)||134===ze()&&tt(fi)}function Jt(e,t){if(Yt(e))return!0;switch(e){case 0:case 1:case 3:return!(27===ze()&&t)&&yi();case 2:return 84===ze()||90===ze();case 4:return tt(Rn);case 5:return tt($i)||27===ze()&&!t;case 6:return 23===ze()||Ft();case 12:switch(ze()){case 23:case 42:case 26:case 25:return!0;default:return Ft()}case 18:return Ft();case 9:return 23===ze()||26===ze()||Ft();case 24:return _a(ze())||11===ze();case 7:return 19===ze()?tt(zt):t?ot()&&!Wt():gr()&&!Wt();case 8:return Oi();case 10:return 28===ze()||26===ze()||Oi();case 19:return 103===ze()||87===ze()||ot();case 15:switch(ze()){case 28:case 25:return!0}case 11:return 26===ze()||hr();case 16:return wn(!1);case 17:return wn(!0);case 20:case 21:return 28===ze()||tr();case 22:return oo();case 23:return(161!==ze()||!tt(Fi))&&(11===ze()||_a(ze()));case 13:return _a(ze())||19===ze();case 14:case 25:return!0;case 26:return un.fail("ParsingContext.Count used as a context");default:un.assertNever(e,"Non-exhaustive case in 'isListElement'.")}}function zt(){if(un.assert(19===ze()),20===Ve()){const e=Ve();return 28===e||19===e||96===e||119===e}return!0}function qt(){return Ve(),ot()}function Ut(){return Ve(),_a(ze())}function Vt(){return Ve(),ua(ze())}function Wt(){return(119===ze()||96===ze())&&tt($t)}function $t(){return Ve(),hr()}function Ht(){return Ve(),tr()}function Kt(e){if(1===ze())return!0;switch(e){case 1:case 2:case 4:case 5:case 6:case 12:case 9:case 23:case 24:return 20===ze();case 3:return 20===ze()||84===ze()||90===ze();case 7:return 19===ze()||96===ze()||119===ze();case 8:return!!ht()||!!Nr(ze())||39===ze();case 19:return 32===ze()||21===ze()||19===ze()||96===ze()||119===ze();case 11:return 22===ze()||27===ze();case 15:case 21:case 10:return 24===ze();case 17:case 16:case 18:return 22===ze()||24===ze();case 20:return 28!==ze();case 22:return 19===ze()||20===ze();case 13:return 32===ze()||44===ze();case 14:return 30===ze()&&tt(po);default:return!1}}function Xt(e,t){const n=T;T|=1<=0)}function nn(e){return 6===e?la.An_enum_member_name_must_be_followed_by_a_or:void 0}function rn(){const e=bt([],Be());return e.isMissingList=!0,e}function on(e,t,n,r){if(at(n)){const n=tn(e,t);return at(r),n}return rn()}function an(e,t){const n=Be();let r=e?Nt(t):wt(t);for(;pt(25)&&30!==ze();)r=xt(N.createQualifiedName(r,cn(e,!1,!0)),n);return r}function sn(e,t){return xt(N.createQualifiedName(e,t),e.pos)}function cn(e,t,n){if(a.hasPrecedingLineBreak()&&_a(ze())&&tt(di))return kt(80,!0,la.Identifier_expected);if(81===ze()){const e=Pt();return t?e:kt(80,!0,la.Identifier_expected)}return e?n?Nt():Dt():wt()}function ln(e){const t=Be();return xt(N.createTemplateExpression(mn(e),function(e){const t=Be(),n=[];let r;do{r=pn(e),n.push(r)}while(17===r.literal.kind);return bt(n,t)}(e)),t)}function _n(){const e=Be();return xt(N.createTemplateLiteralTypeSpan(fr(),dn(!1)),e)}function dn(e){return 20===ze()?(Ke(e),function(){const e=gn(ze());return un.assert(17===e.kind||18===e.kind,"Template fragment has wrong token kind"),e}()):mt(18,la._0_expected,Da(20))}function pn(e){const t=Be();return xt(N.createTemplateSpan(Se(yr),dn(e)),t)}function fn(){return gn(ze())}function mn(e){!e&&26656&a.getTokenFlags()&&Ke(!1);const t=gn(ze());return un.assert(16===t.kind,"Template head has wrong token kind"),t}function gn(e){const t=Be(),n=Ol(e)?N.createTemplateLiteralLikeNode(e,a.getTokenValue(),function(e){const t=15===e||18===e,n=a.getTokenText();return n.substring(1,n.length-(a.isUnterminated()?0:t?1:2))}(e),7176&a.getTokenFlags()):9===e?F(a.getTokenValue(),a.getNumericLiteralFlags()):11===e?E(a.getTokenValue(),void 0,a.hasExtendedUnicodeEscape()):Pl(e)?P(e,a.getTokenValue()):un.fail();return a.hasExtendedUnicodeEscape()&&(n.hasExtendedUnicodeEscape=!0),a.isUnterminated()&&(n.isUnterminated=!0),Ve(),xt(n,t)}function hn(){return an(!0,la.Type_expected)}function yn(){if(!a.hasPrecedingLineBreak()&&30===Ge())return on(20,fr,30,32)}function vn(){const e=Be();return xt(N.createTypeReferenceNode(hn(),yn()),e)}function bn(e){switch(e.kind){case 183:return Cd(e.typeName);case 184:case 185:{const{parameters:t,type:n}=e;return!!t.isMissingList||bn(n)}case 196:return bn(e.type);default:return!1}}function xn(){const e=Be();return Ve(),xt(N.createThisTypeNode(),e)}function kn(){const e=Be();let t;return 110!==ze()&&105!==ze()||(t=Nt(),at(59)),xt(N.createParameterDeclaration(void 0,void 0,t,void 0,Sn(),void 0),e)}function Sn(){a.setSkipJsDocLeadingAsterisks(!0);const e=Be();if(pt(144)){const t=N.createJSDocNamepathType(void 0);e:for(;;)switch(ze()){case 20:case 1:case 28:case 5:break e;default:We()}return a.setSkipJsDocLeadingAsterisks(!1),xt(t,e)}const t=pt(26);let n=dr();return a.setSkipJsDocLeadingAsterisks(!1),t&&(n=xt(N.createJSDocVariadicType(n),e)),64===ze()?(Ve(),xt(N.createJSDocOptionalType(n),e)):n}function Tn(){const e=Be(),t=Xi(!1,!0),n=wt();let r,i;pt(96)&&(tr()||!hr()?r=fr():i=Ir());const o=pt(64)?fr():void 0,a=N.createTypeParameterDeclaration(t,n,r,o);return a.expression=i,xt(a,e)}function Cn(){if(30===ze())return on(19,Tn,30,32)}function wn(e){return 26===ze()||Oi()||Gl(ze())||60===ze()||tr(!e)}function Nn(e){return Dn(e)}function Dn(e,t=!0){const n=Be(),r=Je(),i=e?we((()=>Xi(!0))):Ne((()=>Xi(!0)));if(110===ze()){const e=N.createParameterDeclaration(i,void 0,Tt(!0),void 0,mr(),void 0),t=fe(i);return t&&Re(t,la.Neither_decorators_nor_modifiers_may_be_applied_to_this_parameters),ue(xt(e,n),r)}const o=re;re=!1;const a=ft(26);if(!t&&!it()&&23!==ze()&&19!==ze())return;const s=ue(xt(N.createParameterDeclaration(i,a,function(e){const t=Li(la.Private_identifiers_cannot_be_used_as_parameters);return 0===od(t)&&!$(e)&&Gl(ze())&&Ve(),t}(i),ft(58),mr(),vr()),n),r);return re=o,s}function Fn(e,t){if(function(e,t){return 39===e?(at(e),!0):!!pt(59)||!(!t||39!==ze())&&(Oe(la._0_expected,Da(59)),Ve(),!0)}(e,t))return Te(dr)}function En(e,t){const n=Fe(),r=Ie();he(!!(1&e)),be(!!(2&e));const i=32&e?tn(17,kn):tn(16,(()=>t?Nn(r):Dn(r,!1)));return he(n),be(r),i}function Pn(e){if(!at(21))return rn();const t=En(e,!0);return at(22),t}function An(){pt(28)||vt()}function In(e){const t=Be(),n=Je();180===e&&at(105);const r=Cn(),i=Pn(4),o=Fn(59,!0);return An(),ue(xt(179===e?N.createCallSignature(r,i,o):N.createConstructSignature(r,i,o),t),n)}function On(){return 23===ze()&&tt(Ln)}function Ln(){if(Ve(),26===ze()||24===ze())return!0;if(Gl(ze())){if(Ve(),ot())return!0}else{if(!ot())return!1;Ve()}return 59===ze()||28===ze()||58===ze()&&(Ve(),59===ze()||28===ze()||24===ze())}function jn(e,t,n){const r=on(16,(()=>Nn(!1)),23,24),i=mr();return An(),ue(xt(N.createIndexSignature(n,r,i),e),t)}function Rn(){if(21===ze()||30===ze()||139===ze()||153===ze())return!0;let e=!1;for(;Gl(ze());)e=!0,Ve();return 23===ze()||(Ft()&&(e=!0,Ve()),!!e&&(21===ze()||30===ze()||58===ze()||59===ze()||28===ze()||ht()))}function Mn(){if(21===ze()||30===ze())return In(179);if(105===ze()&&tt(Bn))return In(180);const e=Be(),t=Je(),n=Xi(!1);return At(139)?Wi(e,t,n,177,4):At(153)?Wi(e,t,n,178,4):On()?jn(e,t,n):function(e,t,n){const r=Et(),i=ft(58);let o;if(21===ze()||30===ze()){const e=Cn(),t=Pn(4),a=Fn(59,!0);o=N.createMethodSignature(n,r,i,e,t,a)}else{const e=mr();o=N.createPropertySignature(n,r,i,e),64===ze()&&(o.initializer=vr())}return An(),ue(xt(o,e),t)}(e,t,n)}function Bn(){return Ve(),21===ze()||30===ze()}function Jn(){return 25===Ve()}function zn(){switch(Ve()){case 21:case 30:case 25:return!0}return!1}function qn(){let e;return at(19)?(e=Xt(4,Mn),at(20)):e=rn(),e}function Un(){return Ve(),40===ze()||41===ze()?148===Ve():(148===ze()&&Ve(),23===ze()&&qt()&&103===Ve())}function Vn(){const e=Be();if(pt(26))return xt(N.createRestTypeNode(fr()),e);const t=fr();if(YE(t)&&t.pos===t.type.pos){const e=N.createOptionalTypeNode(t.type);return nI(e,t),e.flags=t.flags,e}return t}function Wn(){return 59===Ve()||58===ze()&&59===Ve()}function $n(){return 26===ze()?_a(Ve())&&Wn():_a(ze())&&Wn()}function Hn(){if(tt($n)){const e=Be(),t=Je(),n=ft(26),r=Nt(),i=ft(58);at(59);const o=Vn();return ue(xt(N.createNamedTupleMember(n,r,i,o),e),t)}return Vn()}function Kn(){const e=Be(),t=Je(),n=function(){let e;if(128===ze()){const t=Be();Ve(),e=bt([xt(O(128),t)],t)}return e}(),r=pt(105);un.assert(!n||r,"Per isStartOfFunctionOrConstructorType, a function type cannot have modifiers.");const i=Cn(),o=Pn(4),a=Fn(39,!1);return ue(xt(r?N.createConstructorTypeNode(n,i,o,a):N.createFunctionTypeNode(i,o,a),e),t)}function Gn(){const e=gt();return 25===ze()?void 0:e}function Xn(e){const t=Be();e&&Ve();let n=112===ze()||97===ze()||106===ze()?gt():gn(ze());return e&&(n=xt(N.createPrefixUnaryExpression(41,n),t)),xt(N.createLiteralTypeNode(n),t)}function Qn(){return Ve(),102===ze()}function Yn(){u|=4194304;const e=Be(),t=pt(114);at(102),at(21);const n=fr();let r;if(pt(28)){const e=a.getTokenStart();at(19);const t=ze();if(118===t||132===t?Ve():Oe(la._0_expected,Da(118)),at(59),r=ho(t,!0),!at(20)){const t=ye(g);t&&t.code===la._0_expected.code&&iT(t,Vx(c,d,e,1,la.The_parser_expected_to_find_a_1_to_match_the_0_token_here,"{","}"))}}at(22);const i=pt(25)?hn():void 0,o=yn();return xt(N.createImportTypeNode(n,r,i,o,t),e)}function Zn(){return Ve(),9===ze()||10===ze()}function er(){switch(ze()){case 133:case 159:case 154:case 150:case 163:case 155:case 136:case 157:case 146:case 151:return nt(Gn)||vn();case 67:a.reScanAsteriskEqualsToken();case 42:return function(){const e=Be();return Ve(),xt(N.createJSDocAllType(),e)}();case 61:a.reScanQuestionToken();case 58:return function(){const e=Be();return Ve(),28===ze()||20===ze()||22===ze()||32===ze()||64===ze()||52===ze()?xt(N.createJSDocUnknownType(),e):xt(N.createJSDocNullableType(fr(),!1),e)}();case 100:return function(){const e=Be(),t=Je();if(nt(_o)){const n=Pn(36),r=Fn(59,!1);return ue(xt(N.createJSDocFunctionType(n,r),e),t)}return xt(N.createTypeReferenceNode(Nt(),void 0),e)}();case 54:return function(){const e=Be();return Ve(),xt(N.createJSDocNonNullableType(er(),!1),e)}();case 15:case 11:case 9:case 10:case 112:case 97:case 106:return Xn();case 41:return tt(Zn)?Xn(!0):vn();case 116:return gt();case 110:{const t=xn();return 142!==ze()||a.hasPrecedingLineBreak()?t:(e=t,Ve(),xt(N.createTypePredicateNode(void 0,e,fr()),e.pos))}case 114:return tt(Qn)?Yn():function(){const e=Be();at(114);const t=an(!0),n=a.hasPrecedingLineBreak()?void 0:io();return xt(N.createTypeQueryNode(t,n),e)}();case 19:return tt(Un)?function(){const e=Be();let t;at(19),148!==ze()&&40!==ze()&&41!==ze()||(t=gt(),148!==t.kind&&at(148)),at(23);const n=function(){const e=Be(),t=Nt();at(103);const n=fr();return xt(N.createTypeParameterDeclaration(void 0,t,n,void 0),e)}(),r=pt(130)?fr():void 0;let i;at(24),58!==ze()&&40!==ze()&&41!==ze()||(i=gt(),58!==i.kind&&at(58));const o=mr();vt();const a=Xt(4,Mn);return at(20),xt(N.createMappedTypeNode(t,n,r,i,o,a),e)}():function(){const e=Be();return xt(N.createTypeLiteralNode(qn()),e)}();case 23:return function(){const e=Be();return xt(N.createTupleTypeNode(on(21,Hn,23,24)),e)}();case 21:return function(){const e=Be();at(21);const t=fr();return at(22),xt(N.createParenthesizedType(t),e)}();case 102:return Yn();case 131:return tt(di)?function(){const e=Be(),t=mt(131),n=110===ze()?xn():wt(),r=pt(142)?fr():void 0;return xt(N.createTypePredicateNode(t,n,r),e)}():vn();case 16:return function(){const e=Be();return xt(N.createTemplateLiteralType(mn(!1),function(){const e=Be(),t=[];let n;do{n=_n(),t.push(n)}while(17===n.literal.kind);return bt(t,e)}()),e)}();default:return vn()}var e}function tr(e){switch(ze()){case 133:case 159:case 154:case 150:case 163:case 136:case 148:case 155:case 158:case 116:case 157:case 106:case 110:case 114:case 146:case 19:case 23:case 30:case 52:case 51:case 105:case 11:case 9:case 10:case 112:case 97:case 151:case 42:case 58:case 54:case 26:case 140:case 102:case 131:case 15:case 16:return!0;case 100:return!e;case 41:return!e&&tt(Zn);case 21:return!e&&tt(nr);default:return ot()}}function nr(){return Ve(),22===ze()||wn(!1)||tr()}function rr(){const e=Be();let t=er();for(;!a.hasPrecedingLineBreak();)switch(ze()){case 54:Ve(),t=xt(N.createJSDocNonNullableType(t,!0),e);break;case 58:if(tt(Ht))return t;Ve(),t=xt(N.createJSDocNullableType(t,!0),e);break;case 23:if(at(23),tr()){const n=fr();at(24),t=xt(N.createIndexedAccessTypeNode(t,n),e)}else at(24),t=xt(N.createArrayTypeNode(t),e);break;default:return t}return t}function ir(){if(pt(96)){const e=Ce(fr);if(Pe()||58!==ze())return e}}function or(){const e=ze();switch(e){case 143:case 158:case 148:return function(e){const t=Be();return at(e),xt(N.createTypeOperatorNode(e,or()),t)}(e);case 140:return function(){const e=Be();return at(140),xt(N.createInferTypeNode(function(){const e=Be(),t=wt(),n=nt(ir);return xt(N.createTypeParameterDeclaration(void 0,t,n),e)}()),e)}()}return Te(rr)}function ar(e){if(_r()){const t=Kn();let n;return n=bD(t)?e?la.Function_type_notation_must_be_parenthesized_when_used_in_a_union_type:la.Function_type_notation_must_be_parenthesized_when_used_in_an_intersection_type:e?la.Constructor_type_notation_must_be_parenthesized_when_used_in_a_union_type:la.Constructor_type_notation_must_be_parenthesized_when_used_in_an_intersection_type,Re(t,n),t}}function sr(e,t,n){const r=Be(),i=52===e,o=pt(e);let a=o&&ar(i)||t();if(ze()===e||o){const o=[a];for(;pt(e);)o.push(ar(i)||t());a=xt(n(bt(o,r)),r)}return a}function cr(){return sr(51,or,N.createIntersectionTypeNode)}function lr(){return Ve(),105===ze()}function _r(){return 30===ze()||!(21!==ze()||!tt(ur))||105===ze()||128===ze()&&tt(lr)}function ur(){if(Ve(),22===ze()||26===ze())return!0;if(function(){if(Gl(ze())&&Xi(!1),ot()||110===ze())return Ve(),!0;if(23===ze()||19===ze()){const e=g.length;return Li(),e===g.length}return!1}()){if(59===ze()||28===ze()||58===ze()||64===ze())return!0;if(22===ze()&&(Ve(),39===ze()))return!0}return!1}function dr(){const e=Be(),t=ot()&&nt(pr),n=fr();return t?xt(N.createTypePredicateNode(void 0,t,n),e):n}function pr(){const e=wt();if(142===ze()&&!a.hasPrecedingLineBreak())return Ve(),e}function fr(){if(81920&w)return xe(81920,fr);if(_r())return Kn();const e=Be(),t=sr(52,cr,N.createUnionTypeNode);if(!Pe()&&!a.hasPrecedingLineBreak()&&pt(96)){const n=Ce(fr);at(58);const r=Te(fr);at(59);const i=Te(fr);return xt(N.createConditionalTypeNode(t,n,r,i),e)}return t}function mr(){return pt(59)?fr():void 0}function gr(){switch(ze()){case 110:case 108:case 106:case 112:case 97:case 9:case 10:case 11:case 15:case 16:case 21:case 23:case 19:case 100:case 86:case 105:case 44:case 69:case 80:return!0;case 102:return tt(zn);default:return ot()}}function hr(){if(gr())return!0;switch(ze()){case 40:case 41:case 55:case 54:case 91:case 114:case 116:case 46:case 47:case 30:case 135:case 127:case 81:case 60:return!0;default:return!!Fr()||ot()}}function yr(){const e=Ae();e&&ve(!1);const t=Be();let n,r=br(!0);for(;n=ft(28);)r=Er(r,n,br(!0),t);return e&&ve(!0),r}function vr(){return pt(64)?br(!0):void 0}function br(e){if(127===ze()&&(Fe()||tt(mi)))return function(){const e=Be();return Ve(),a.hasPrecedingLineBreak()||42!==ze()&&!hr()?xt(N.createYieldExpression(void 0,void 0),e):xt(N.createYieldExpression(ft(42),br(!0)),e)}();const t=function(e){const t=21===ze()||30===ze()||134===ze()?tt(kr):39===ze()?1:0;if(0!==t)return 1===t?Tr(!0,!0):nt((()=>function(e){const t=a.getTokenStart();if(null==C?void 0:C.has(t))return;const n=Tr(!1,e);return n||(C||(C=new Set)).add(t),n}(e)))}(e)||function(e){if(134===ze()&&1===tt(Sr)){const t=Be(),n=Je(),r=Qi();return xr(t,wr(0),e,n,r)}}(e);if(t)return t;const n=Be(),r=Je(),i=wr(0);return 80===i.kind&&39===ze()?xr(n,i,e,r,void 0):R_(i)&&Zv(He())?Er(i,gt(),br(e),n):function(e,t,n){const r=ft(58);if(!r)return e;let i;return xt(N.createConditionalExpression(e,r,xe(40960,(()=>br(!1))),i=mt(59),wd(i)?br(n):kt(80,!1,la._0_expected,Da(59))),t)}(i,n,e)}function xr(e,t,n,r,i){un.assert(39===ze(),"parseSimpleArrowFunctionExpression should only have been called if we had a =>");const o=N.createParameterDeclaration(void 0,void 0,t,void 0,void 0,void 0);xt(o,t.pos);const a=bt([o],o.pos,o.end),s=mt(39),c=Cr(!!i,n);return ue(xt(N.createArrowFunction(i,void 0,a,void 0,s,c),e),r)}function kr(){if(134===ze()){if(Ve(),a.hasPrecedingLineBreak())return 0;if(21!==ze()&&30!==ze())return 0}const e=ze(),t=Ve();if(21===e){if(22===t)switch(Ve()){case 39:case 59:case 19:return 1;default:return 0}if(23===t||19===t)return 2;if(26===t)return 1;if(Gl(t)&&134!==t&&tt(qt))return 130===Ve()?0:1;if(!ot()&&110!==t)return 0;switch(Ve()){case 59:return 1;case 58:return Ve(),59===ze()||28===ze()||64===ze()||22===ze()?1:0;case 28:case 64:case 22:return 2}return 0}return un.assert(30===e),ot()||87===ze()?1===m?tt((()=>{pt(87);const e=Ve();if(96===e)switch(Ve()){case 64:case 32:case 44:return!1;default:return!0}else if(28===e||64===e)return!0;return!1}))?1:0:2:0}function Sr(){if(134===ze()){if(Ve(),a.hasPrecedingLineBreak()||39===ze())return 0;const e=wr(0);if(!a.hasPrecedingLineBreak()&&80===e.kind&&39===ze())return 1}return 0}function Tr(e,t){const n=Be(),r=Je(),i=Qi(),o=$(i,WN)?2:0,a=Cn();let s;if(at(21)){if(e)s=En(o,e);else{const t=En(o,e);if(!t)return;s=t}if(!at(22)&&!e)return}else{if(!e)return;s=rn()}const c=59===ze(),l=Fn(59,!1);if(l&&!e&&bn(l))return;let _=l;for(;196===(null==_?void 0:_.kind);)_=_.type;const u=_&&tP(_);if(!e&&39!==ze()&&(u||19!==ze()))return;const d=ze(),p=mt(39),f=39===d||19===d?Cr($(i,WN),t):wt();return t||!c||59===ze()?ue(xt(N.createArrowFunction(i,a,s,l,p,f),n),r):void 0}function Cr(e,t){if(19===ze())return li(e?2:0);if(27!==ze()&&100!==ze()&&86!==ze()&&yi()&&(19===ze()||100===ze()||86===ze()||60===ze()||!hr()))return li(16|(e?2:0));const n=re;re=!1;const r=e?we((()=>br(t))):Ne((()=>br(t)));return re=n,r}function wr(e){const t=Be();return Dr(e,Ir(),t)}function Nr(e){return 103===e||165===e}function Dr(e,t,n){for(;;){He();const o=sy(ze());if(!(43===ze()?o>=e:o>e))break;if(103===ze()&&Ee())break;if(130===ze()||152===ze()){if(a.hasPrecedingLineBreak())break;{const e=ze();Ve(),t=152===e?(r=t,i=fr(),xt(N.createSatisfiesExpression(r,i),r.pos)):Pr(t,fr())}}else t=Er(t,gt(),wr(o),n)}var r,i;return t}function Fr(){return(!Ee()||103!==ze())&&sy(ze())>0}function Er(e,t,n,r){return xt(N.createBinaryExpression(e,t,n),r)}function Pr(e,t){return xt(N.createAsExpression(e,t),e.pos)}function Ar(){const e=Be();return xt(N.createPrefixUnaryExpression(ze(),Ue(Or)),e)}function Ir(){if(function(){switch(ze()){case 40:case 41:case 55:case 54:case 91:case 114:case 116:case 135:return!1;case 30:if(1!==m)return!1;default:return!0}}()){const e=Be(),t=Lr();return 43===ze()?Dr(sy(ze()),t,e):t}const e=ze(),t=Or();if(43===ze()){const n=Xa(d,t.pos),{end:r}=t;216===t.kind?je(n,r,la.A_type_assertion_expression_is_not_allowed_in_the_left_hand_side_of_an_exponentiation_expression_Consider_enclosing_the_expression_in_parentheses):(un.assert(wh(e)),je(n,r,la.An_unary_expression_with_the_0_operator_is_not_allowed_in_the_left_hand_side_of_an_exponentiation_expression_Consider_enclosing_the_expression_in_parentheses,Da(e)))}return t}function Or(){switch(ze()){case 40:case 41:case 55:case 54:return Ar();case 91:return function(){const e=Be();return xt(N.createDeleteExpression(Ue(Or)),e)}();case 114:return function(){const e=Be();return xt(N.createTypeOfExpression(Ue(Or)),e)}();case 116:return function(){const e=Be();return xt(N.createVoidExpression(Ue(Or)),e)}();case 30:return 1===m?Mr(!0,void 0,void 0,!0):function(){un.assert(1!==m,"Type assertions should never be parsed in JSX; they should be parsed as comparisons or JSX elements/fragments.");const e=Be();at(30);const t=fr();at(32);const n=Or();return xt(N.createTypeAssertion(t,n),e)}();case 135:if(135===ze()&&(Ie()||tt(mi)))return function(){const e=Be();return xt(N.createAwaitExpression(Ue(Or)),e)}();default:return Lr()}}function Lr(){if(46===ze()||47===ze()){const e=Be();return xt(N.createPrefixUnaryExpression(ze(),Ue(jr)),e)}if(1===m&&30===ze()&&tt(Vt))return Mr(!0);const e=jr();if(un.assert(R_(e)),(46===ze()||47===ze())&&!a.hasPrecedingLineBreak()){const t=ze();return Ve(),xt(N.createPostfixUnaryExpression(e,t),e.pos)}return e}function jr(){const e=Be();let t;return 102===ze()?tt(Bn)?(u|=4194304,t=gt()):tt(Jn)?(Ve(),Ve(),t=xt(N.createMetaProperty(102,Nt()),e),u|=8388608):t=Rr():t=108===ze()?function(){const e=Be();let t=gt();if(30===ze()){const e=Be(),n=nt(Zr);void 0!==n&&(je(e,Be(),la.super_may_not_use_type_arguments),Gr()||(t=N.createExpressionWithTypeArguments(t,n)))}return 21===ze()||25===ze()||23===ze()?t:(mt(25,la.super_must_be_followed_by_an_argument_list_or_member_access),xt(R(t,cn(!0,!0,!0)),e))}():Rr(),Qr(e,t)}function Rr(){return Kr(Be(),ei(),!0)}function Mr(e,t,n,r=!1){const i=Be(),o=function(e){const t=Be();if(at(30),32===ze())return Ze(),xt(N.createJsxOpeningFragment(),t);const n=zr(),r=524288&w?void 0:io(),i=function(){const e=Be();return xt(N.createJsxAttributes(Xt(13,Ur)),e)}();let o;return 32===ze()?(Ze(),o=N.createJsxOpeningElement(n,r,i)):(at(44),at(32,void 0,!1)&&(e?Ve():Ze()),o=N.createJsxSelfClosingElement(n,r,i)),xt(o,t)}(e);let a;if(286===o.kind){let t,r=Jr(o);const s=r[r.length-1];if(284===(null==s?void 0:s.kind)&&!nO(s.openingElement.tagName,s.closingElement.tagName)&&nO(o.tagName,s.closingElement.tagName)){const e=s.children.end,n=xt(N.createJsxElement(s.openingElement,s.children,xt(N.createJsxClosingElement(xt(A(""),e,e)),e,e)),s.openingElement.pos,e);r=bt([...r.slice(0,r.length-1),n],r.pos,e),t=s.closingElement}else t=function(e,t){const n=Be();at(31);const r=zr();return at(32,void 0,!1)&&(t||!nO(e.tagName,r)?Ve():Ze()),xt(N.createJsxClosingElement(r),n)}(o,e),nO(o.tagName,t.tagName)||(n&&TE(n)&&nO(t.tagName,n.tagName)?Re(o.tagName,la.JSX_element_0_has_no_corresponding_closing_tag,Hd(d,o.tagName)):Re(t.tagName,la.Expected_corresponding_JSX_closing_tag_for_0,Hd(d,o.tagName)));a=xt(N.createJsxElement(o,r,t),i)}else 289===o.kind?a=xt(N.createJsxFragment(o,Jr(o),function(e){const t=Be();return at(31),at(32,la.Expected_corresponding_closing_tag_for_JSX_fragment,!1)&&(e?Ve():Ze()),xt(N.createJsxJsxClosingFragment(),t)}(e)),i):(un.assert(285===o.kind),a=o);if(!r&&e&&30===ze()){const e=void 0===t?a.pos:t,n=nt((()=>Mr(!0,e)));if(n){const t=kt(28,!1);return TT(t,n.pos,0),je(Xa(d,e),n.end,la.JSX_expressions_must_have_one_parent_element),xt(N.createBinaryExpression(a,t,n),i)}}return a}function Br(e,t){switch(t){case 1:if(NE(e))Re(e,la.JSX_fragment_has_no_corresponding_closing_tag);else{const t=e.tagName;je(Math.min(Xa(d,t.pos),t.end),t.end,la.JSX_element_0_has_no_corresponding_closing_tag,Hd(d,e.tagName))}return;case 31:case 7:return;case 12:case 13:return function(){const e=Be(),t=N.createJsxText(a.getTokenValue(),13===v);return v=a.scanJsxToken(),xt(t,e)}();case 19:return qr(!1);case 30:return Mr(!1,void 0,e);default:return un.assertNever(t)}}function Jr(e){const t=[],n=Be(),r=T;for(T|=16384;;){const n=Br(e,v=a.reScanJsxToken());if(!n)break;if(t.push(n),TE(e)&&284===(null==n?void 0:n.kind)&&!nO(n.openingElement.tagName,n.closingElement.tagName)&&nO(e.tagName,n.closingElement.tagName))break}return T=r,bt(t,n)}function zr(){const e=Be(),t=function(){const e=Be();Ye();const t=110===ze(),n=Dt();return pt(59)?(Ye(),xt(N.createJsxNamespacedName(n,Dt()),e)):t?xt(N.createToken(110),e):n}();if(IE(t))return t;let n=t;for(;pt(25);)n=xt(R(n,cn(!0,!1,!1)),e);return n}function qr(e){const t=Be();if(!at(19))return;let n,r;return 20!==ze()&&(e||(n=ft(26)),r=yr()),e?at(20):at(20,void 0,!1)&&Ze(),xt(N.createJsxExpression(n,r),t)}function Ur(){if(19===ze())return function(){const e=Be();at(19),at(26);const t=yr();return at(20),xt(N.createJsxSpreadAttribute(t),e)}();const e=Be();return xt(N.createJsxAttribute(function(){const e=Be();Ye();const t=Dt();return pt(59)?(Ye(),xt(N.createJsxNamespacedName(t,Dt()),e)):t}(),function(){if(64===ze()){if(11===(v=a.scanJsxAttributeValue()))return fn();if(19===ze())return qr(!0);if(30===ze())return Mr(!0);Oe(la.or_JSX_element_expected)}}()),e)}function Vr(){return Ve(),_a(ze())||23===ze()||Gr()}function Wr(e){if(64&e.flags)return!0;if(yF(e)){let t=e.expression;for(;yF(t)&&!(64&t.flags);)t=t.expression;if(64&t.flags){for(;yF(e);)e.flags|=64,e=e.expression;return!0}}return!1}function $r(e,t,n){const r=cn(!0,!0,!0),i=n||Wr(t),o=i?M(t,n,r):R(t,r);return i&&qN(o.name)&&Re(o.name,la.An_optional_chain_cannot_contain_private_identifiers),mF(t)&&t.typeArguments&&je(t.typeArguments.pos-1,Xa(d,t.typeArguments.end)+1,la.An_instantiation_expression_cannot_be_followed_by_a_property_access),xt(o,e)}function Hr(e,t,n){let r;if(24===ze())r=kt(80,!0,la.An_element_access_expression_should_take_an_argument);else{const e=Se(yr);Lh(e)&&(e.text=St(e.text)),r=e}return at(24),xt(n||Wr(t)?z(t,n,r):J(t,r),e)}function Kr(e,t,n){for(;;){let r,i=!1;if(n&&29===ze()&&tt(Vr)?(r=mt(29),i=_a(ze())):i=pt(25),i)t=$r(e,t,r);else if(!r&&Ae()||!pt(23)){if(!Gr()){if(!r){if(54===ze()&&!a.hasPrecedingLineBreak()){Ve(),t=xt(N.createNonNullExpression(t),e);continue}const n=nt(Zr);if(n){t=xt(N.createExpressionWithTypeArguments(t,n),e);continue}}return t}t=r||233!==t.kind?Xr(e,t,r,void 0):Xr(e,t.expression,r,t.typeArguments)}else t=Hr(e,t,r)}}function Gr(){return 15===ze()||16===ze()}function Xr(e,t,n,r){const i=N.createTaggedTemplateExpression(t,r,15===ze()?(Ke(!0),fn()):ln(!0));return(n||64&t.flags)&&(i.flags|=64),i.questionDotToken=n,xt(i,e)}function Qr(e,t){for(;;){let n;t=Kr(e,t,!0);const r=ft(29);if(r&&(n=nt(Zr),Gr()))t=Xr(e,t,r,n);else{if(!n&&21!==ze()){if(r){const n=kt(80,!1,la.Identifier_expected);t=xt(M(t,r,n),e)}break}{r||233!==t.kind||(n=t.typeArguments,t=t.expression);const i=Yr();t=xt(r||Wr(t)?U(t,r,n,i):q(t,n,i),e)}}}return t}function Yr(){at(21);const e=tn(11,ni);return at(22),e}function Zr(){if(524288&w)return;if(30!==Ge())return;Ve();const e=tn(20,fr);return 32===He()?(Ve(),e&&function(){switch(ze()){case 21:case 15:case 16:return!0;case 30:case 32:case 40:case 41:return!1}return a.hasPrecedingLineBreak()||Fr()||!hr()}()?e:void 0):void 0}function ei(){switch(ze()){case 15:26656&a.getTokenFlags()&&Ke(!1);case 9:case 10:case 11:return fn();case 110:case 108:case 106:case 112:case 97:return gt();case 21:return function(){const e=Be(),t=Je();at(21);const n=Se(yr);return at(22),ue(xt(W(n),e),t)}();case 23:return ri();case 19:return oi();case 134:if(!tt(fi))break;return ai();case 60:return function(){const e=Be(),t=Je(),n=Xi(!0);if(86===ze())return eo(e,t,n,231);const r=kt(282,!0,la.Expression_expected);return xT(r,e),r.modifiers=n,r}();case 86:return eo(Be(),Je(),void 0,231);case 100:return ai();case 105:return function(){const e=Be();if(at(105),pt(25)){const t=Nt();return xt(N.createMetaProperty(105,t),e)}let t,n=Kr(Be(),ei(),!1);233===n.kind&&(t=n.typeArguments,n=n.expression),29===ze()&&Oe(la.Invalid_optional_chain_from_new_expression_Did_you_mean_to_call_0,Hd(d,n));const r=21===ze()?Yr():void 0;return xt(V(n,t,r),e)}();case 44:case 69:if(14===(v=a.reScanSlashToken()))return fn();break;case 16:return ln(!1);case 81:return Pt()}return wt(la.Expression_expected)}function ti(){return 26===ze()?function(){const e=Be();at(26);const t=br(!0);return xt(N.createSpreadElement(t),e)}():28===ze()?xt(N.createOmittedExpression(),Be()):br(!0)}function ni(){return xe(40960,ti)}function ri(){const e=Be(),t=a.getTokenStart(),n=at(23),r=a.hasPrecedingLineBreak(),i=tn(15,ti);return dt(23,24,n,t),xt(L(i,r),e)}function ii(){const e=Be(),t=Je();if(ft(26)){const n=br(!0);return ue(xt(N.createSpreadAssignment(n),e),t)}const n=Xi(!0);if(At(139))return Wi(e,t,n,177,0);if(At(153))return Wi(e,t,n,178,0);const r=ft(42),i=ot(),o=Et(),a=ft(58),s=ft(54);if(r||21===ze()||30===ze())return qi(e,t,n,r,o,a,s);let c;if(i&&59!==ze()){const e=ft(64),t=e?Se((()=>br(!0))):void 0;c=N.createShorthandPropertyAssignment(o,t),c.equalsToken=e}else{at(59);const e=Se((()=>br(!0)));c=N.createPropertyAssignment(o,e)}return c.modifiers=n,c.questionToken=a,c.exclamationToken=s,ue(xt(c,e),t)}function oi(){const e=Be(),t=a.getTokenStart(),n=at(19),r=a.hasPrecedingLineBreak(),i=tn(12,ii,!0);return dt(19,20,n,t),xt(j(i,r),e)}function ai(){const e=Ae();ve(!1);const t=Be(),n=Je(),r=Xi(!1);at(100);const i=ft(42),o=i?1:0,a=$(r,WN)?2:0,s=o&&a?ke(81920,si):o?ke(16384,si):a?we(si):si();const c=Cn(),l=Pn(o|a),_=Fn(59,!1),u=li(o|a);return ve(e),ue(xt(N.createFunctionExpression(r,i,s,c,l,_,u),t),n)}function si(){return it()?Ct():void 0}function ci(e,t){const n=Be(),r=Je(),i=a.getTokenStart(),o=at(19,t);if(o||e){const e=a.hasPrecedingLineBreak(),t=Xt(1,Ci);dt(19,20,o,i);const s=ue(xt(H(t,e),n),r);return 64===ze()&&(Oe(la.Declaration_or_statement_expected_This_follows_a_block_of_statements_so_if_you_intended_to_write_a_destructuring_assignment_you_might_need_to_wrap_the_whole_assignment_in_parentheses),Ve()),s}{const e=rn();return ue(xt(H(e,void 0),n),r)}}function li(e,t){const n=Fe();he(!!(1&e));const r=Ie();be(!!(2&e));const i=re;re=!1;const o=Ae();o&&ve(!1);const a=ci(!!(16&e),t);return o&&ve(!0),re=i,he(n),be(r),a}function _i(e){const t=Be(),n=Je();at(252===e?83:88);const r=ht()?void 0:wt();return vt(),ue(xt(252===e?N.createBreakStatement(r):N.createContinueStatement(r),t),n)}function ui(){return 84===ze()?function(){const e=Be(),t=Je();at(84);const n=Se(yr);at(59);const r=Xt(3,Ci);return ue(xt(N.createCaseClause(n,r),e),t)}():function(){const e=Be();at(90),at(59);const t=Xt(3,Ci);return xt(N.createDefaultClause(t),e)}()}function di(){return Ve(),_a(ze())&&!a.hasPrecedingLineBreak()}function pi(){return Ve(),86===ze()&&!a.hasPrecedingLineBreak()}function fi(){return Ve(),100===ze()&&!a.hasPrecedingLineBreak()}function mi(){return Ve(),(_a(ze())||9===ze()||10===ze()||11===ze())&&!a.hasPrecedingLineBreak()}function gi(){for(;;)switch(ze()){case 115:case 121:case 87:case 100:case 86:case 94:return!0;case 160:return ki();case 135:return Ti();case 120:case 156:return Ve(),!a.hasPrecedingLineBreak()&&ot();case 144:case 145:return Ve(),!a.hasPrecedingLineBreak()&&(ot()||11===ze());case 128:case 129:case 134:case 138:case 123:case 124:case 125:case 148:const e=ze();if(Ve(),a.hasPrecedingLineBreak())return!1;if(138===e&&156===ze())return!0;continue;case 162:return Ve(),19===ze()||80===ze()||95===ze();case 102:return Ve(),11===ze()||42===ze()||19===ze()||_a(ze());case 95:let t=Ve();if(156===t&&(t=tt(Ve)),64===t||42===t||19===t||90===t||130===t||60===t)return!0;continue;case 126:Ve();continue;default:return!1}}function hi(){return tt(gi)}function yi(){switch(ze()){case 60:case 27:case 19:case 115:case 121:case 160:case 100:case 86:case 94:case 101:case 92:case 117:case 99:case 88:case 83:case 107:case 118:case 109:case 111:case 113:case 89:case 85:case 98:case 134:case 138:case 120:case 144:case 145:case 156:case 162:return!0;case 102:return hi()||tt(zn);case 87:case 95:return hi();case 129:case 125:case 123:case 124:case 126:case 148:return hi()||!tt(di);default:return hr()}}function vi(){return Ve(),it()||19===ze()||23===ze()}function bi(){return xi(!0)}function xi(e){return Ve(),(!e||165!==ze())&&(it()||19===ze())&&!a.hasPrecedingLineBreak()}function ki(){return tt(xi)}function Si(e){return 160===Ve()&&xi(e)}function Ti(){return tt(Si)}function Ci(){switch(ze()){case 27:return function(){const e=Be(),t=Je();return at(27),ue(xt(N.createEmptyStatement(),e),t)}();case 19:return ci(!1);case 115:return Ji(Be(),Je(),void 0);case 121:if(tt(vi))return Ji(Be(),Je(),void 0);break;case 135:if(Ti())return Ji(Be(),Je(),void 0);break;case 160:if(ki())return Ji(Be(),Je(),void 0);break;case 100:return zi(Be(),Je(),void 0);case 86:return Zi(Be(),Je(),void 0);case 101:return function(){const e=Be(),t=Je();at(101);const n=a.getTokenStart(),r=at(21),i=Se(yr);dt(21,22,r,n);const o=Ci(),s=pt(93)?Ci():void 0;return ue(xt(Q(i,o,s),e),t)}();case 92:return function(){const e=Be(),t=Je();at(92);const n=Ci();at(117);const r=a.getTokenStart(),i=at(21),o=Se(yr);return dt(21,22,i,r),pt(27),ue(xt(N.createDoStatement(n,o),e),t)}();case 117:return function(){const e=Be(),t=Je();at(117);const n=a.getTokenStart(),r=at(21),i=Se(yr);dt(21,22,r,n);const o=Ci();return ue(xt(Y(i,o),e),t)}();case 99:return function(){const e=Be(),t=Je();at(99);const n=ft(135);let r,i;if(at(21),27!==ze()&&(r=115===ze()||121===ze()||87===ze()||160===ze()&&tt(bi)||135===ze()&&tt(Si)?Mi(!0):ke(8192,yr)),n?at(165):pt(165)){const e=Se((()=>br(!0)));at(22),i=ee(n,r,e,Ci())}else if(pt(103)){const e=Se(yr);at(22),i=N.createForInStatement(r,e,Ci())}else{at(27);const e=27!==ze()&&22!==ze()?Se(yr):void 0;at(27);const t=22!==ze()?Se(yr):void 0;at(22),i=Z(r,e,t,Ci())}return ue(xt(i,e),t)}();case 88:return _i(251);case 83:return _i(252);case 107:return function(){const e=Be(),t=Je();at(107);const n=ht()?void 0:Se(yr);return vt(),ue(xt(N.createReturnStatement(n),e),t)}();case 118:return function(){const e=Be(),t=Je();at(118);const n=a.getTokenStart(),r=at(21),i=Se(yr);dt(21,22,r,n);const o=ke(67108864,Ci);return ue(xt(N.createWithStatement(i,o),e),t)}();case 109:return function(){const e=Be(),t=Je();at(109),at(21);const n=Se(yr);at(22);const r=function(){const e=Be();at(19);const t=Xt(2,ui);return at(20),xt(N.createCaseBlock(t),e)}();return ue(xt(N.createSwitchStatement(n,r),e),t)}();case 111:return function(){const e=Be(),t=Je();at(111);let n=a.hasPrecedingLineBreak()?void 0:Se(yr);return void 0===n&&(S++,n=xt(A(""),Be())),yt()||lt(n),ue(xt(N.createThrowStatement(n),e),t)}();case 113:case 85:case 98:return function(){const e=Be(),t=Je();at(113);const n=ci(!1),r=85===ze()?function(){const e=Be();let t;at(85),pt(21)?(t=Ri(),at(22)):t=void 0;const n=ci(!1);return xt(N.createCatchClause(t,n),e)}():void 0;let i;return r&&98!==ze()||(at(98,la.catch_or_finally_expected),i=ci(!1)),ue(xt(N.createTryStatement(n,r,i),e),t)}();case 89:return function(){const e=Be(),t=Je();return at(89),vt(),ue(xt(N.createDebuggerStatement(),e),t)}();case 60:return Ni();case 134:case 120:case 156:case 144:case 145:case 138:case 87:case 94:case 95:case 102:case 123:case 124:case 125:case 128:case 129:case 126:case 148:case 162:if(hi())return Ni()}return function(){const e=Be();let t,n=Je();const r=21===ze(),i=Se(yr);return zN(i)&&pt(59)?t=N.createLabeledStatement(i,Ci()):(yt()||lt(i),t=X(i),r&&(n=!1)),ue(xt(t,e),n)}()}function wi(e){return 138===e.kind}function Ni(){const e=Be(),t=Je(),n=Xi(!0);if($(n,wi)){const r=function(e){return ke(33554432,(()=>{const t=Yt(T,e);if(t)return Zt(t)}))}(e);if(r)return r;for(const e of n)e.flags|=33554432;return ke(33554432,(()=>Di(e,t,n)))}return Di(e,t,n)}function Di(e,t,n){switch(ze()){case 115:case 121:case 87:case 160:case 135:return Ji(e,t,n);case 100:return zi(e,t,n);case 86:return Zi(e,t,n);case 120:return function(e,t,n){at(120);const r=wt(),i=Cn(),o=to(),a=qn();return ue(xt(N.createInterfaceDeclaration(n,r,i,o,a),e),t)}(e,t,n);case 156:return function(e,t,n){at(156),a.hasPrecedingLineBreak()&&Oe(la.Line_break_not_permitted_here);const r=wt(),i=Cn();at(64);const o=141===ze()&&nt(Gn)||fr();return vt(),ue(xt(N.createTypeAliasDeclaration(n,r,i,o),e),t)}(e,t,n);case 94:return function(e,t,n){at(94);const r=wt();let i;return at(19)?(i=xe(81920,(()=>tn(6,ao))),at(20)):i=rn(),ue(xt(N.createEnumDeclaration(n,r,i),e),t)}(e,t,n);case 162:case 144:case 145:return function(e,t,n){let r=0;if(162===ze())return lo(e,t,n);if(pt(145))r|=32;else if(at(144),11===ze())return lo(e,t,n);return co(e,t,n,r)}(e,t,n);case 102:return function(e,t,n){at(102);const r=a.getTokenFullStart();let i;ot()&&(i=wt());let o=!1;if("type"===(null==i?void 0:i.escapedText)&&(161!==ze()||ot()&&tt(Ei))&&(ot()||42===ze()||19===ze())&&(o=!0,i=ot()?wt():void 0),i&&28!==ze()&&161!==ze())return function(e,t,n,r,i){at(64);const o=149===ze()&&tt(_o)?function(){const e=Be();at(149),at(21);const t=yo();return at(22),xt(N.createExternalModuleReference(t),e)}():an(!1);vt();return ue(xt(N.createImportEqualsDeclaration(n,i,r,o),e),t)}(e,t,n,i,o);const s=fo(i,r,o),c=yo(),l=mo();return vt(),ue(xt(N.createImportDeclaration(n,s,c,l),e),t)}(e,t,n);case 95:switch(Ve(),ze()){case 90:case 64:return function(e,t,n){const r=Ie();let i;be(!0),pt(64)?i=!0:at(90);const o=br(!0);return vt(),be(r),ue(xt(N.createExportAssignment(n,i,o),e),t)}(e,t,n);case 130:return function(e,t,n){at(130),at(145);const r=wt();vt();const i=N.createNamespaceExportDeclaration(r);return i.modifiers=n,ue(xt(i,e),t)}(e,t,n);default:return function(e,t,n){const r=Ie();let i,o,s;be(!0);const c=pt(156),l=Be();pt(42)?(pt(130)&&(i=function(e){return xt(N.createNamespaceExport(bo(Nt)),e)}(l)),at(161),o=yo()):(i=xo(279),(161===ze()||11===ze()&&!a.hasPrecedingLineBreak())&&(at(161),o=yo()));const _=ze();return!o||118!==_&&132!==_||a.hasPrecedingLineBreak()||(s=ho(_)),vt(),be(r),ue(xt(N.createExportDeclaration(n,c,i,o,s),e),t)}(e,t,n)}default:if(n){const t=kt(282,!0,la.Declaration_expected);return xT(t,e),t.modifiers=n,t}return}}function Fi(){return 11===Ve()}function Ei(){return Ve(),161===ze()||64===ze()}function Pi(e,t){if(19!==ze()){if(4&e)return void An();if(ht())return void vt()}return li(e,t)}function Ai(){const e=Be();if(28===ze())return xt(N.createOmittedExpression(),e);const t=ft(26),n=Li(),r=vr();return xt(N.createBindingElement(t,void 0,n,r),e)}function Ii(){const e=Be(),t=ft(26),n=it();let r,i=Et();n&&59!==ze()?(r=i,i=void 0):(at(59),r=Li());const o=vr();return xt(N.createBindingElement(t,i,r,o),e)}function Oi(){return 19===ze()||23===ze()||81===ze()||it()}function Li(e){return 23===ze()?function(){const e=Be();at(23);const t=Se((()=>tn(10,Ai)));return at(24),xt(N.createArrayBindingPattern(t),e)}():19===ze()?function(){const e=Be();at(19);const t=Se((()=>tn(9,Ii)));return at(20),xt(N.createObjectBindingPattern(t),e)}():Ct(e)}function ji(){return Ri(!0)}function Ri(e){const t=Be(),n=Je(),r=Li(la.Private_identifiers_are_not_allowed_in_variable_declarations);let i;e&&80===r.kind&&54===ze()&&!a.hasPrecedingLineBreak()&&(i=gt());const o=mr(),s=Nr(ze())?void 0:vr();return ue(xt(te(r,i,o,s),t),n)}function Mi(e){const t=Be();let n,r=0;switch(ze()){case 115:break;case 121:r|=1;break;case 87:r|=2;break;case 160:r|=4;break;case 135:un.assert(Ti()),r|=6,Ve();break;default:un.fail()}if(Ve(),165===ze()&&tt(Bi))n=rn();else{const t=Ee();ge(e),n=tn(8,e?Ri:ji),ge(t)}return xt(ne(n,r),t)}function Bi(){return qt()&&22===Ve()}function Ji(e,t,n){const r=Mi(!1);return vt(),ue(xt(G(n,r),e),t)}function zi(e,t,n){const r=Ie(),i=Wv(n);at(100);const o=ft(42),a=2048&i?si():Ct(),s=o?1:0,c=1024&i?2:0,l=Cn();32&i&&be(!0);const _=Pn(s|c),u=Fn(59,!1),d=Pi(s|c,la.or_expected);return be(r),ue(xt(N.createFunctionDeclaration(n,o,a,l,_,u,d),e),t)}function qi(e,t,n,r,i,o,a,s){const c=r?1:0,l=$(n,WN)?2:0,_=Cn(),u=Pn(c|l),d=Fn(59,!1),p=Pi(c|l,s),f=N.createMethodDeclaration(n,r,i,o,_,u,d,p);return f.exclamationToken=a,ue(xt(f,e),t)}function Ui(e,t,n,r,i){const o=i||a.hasPrecedingLineBreak()?void 0:ft(54),s=mr(),c=xe(90112,vr);return function(e,t,n){if(60!==ze()||a.hasPrecedingLineBreak())return 21===ze()?(Oe(la.Cannot_start_a_function_call_in_a_type_annotation),void Ve()):void(!t||ht()?yt()||(n?Oe(la._0_expected,Da(27)):lt(e)):n?Oe(la._0_expected,Da(27)):Oe(la.Expected_for_property_initializer));Oe(la.Decorators_must_precede_the_name_and_all_keywords_of_property_declarations)}(r,s,c),ue(xt(N.createPropertyDeclaration(n,r,i||o,s,c),e),t)}function Vi(e,t,n){const r=ft(42),i=Et(),o=ft(58);return r||21===ze()||30===ze()?qi(e,t,n,r,i,o,void 0,la.or_expected):Ui(e,t,n,i,o)}function Wi(e,t,n,r,i){const o=Et(),a=Cn(),s=Pn(0),c=Fn(59,!1),l=Pi(i),_=177===r?N.createGetAccessorDeclaration(n,o,s,c,l):N.createSetAccessorDeclaration(n,o,s,l);return _.typeParameters=a,fD(_)&&(_.type=c),ue(xt(_,e),t)}function $i(){let e;if(60===ze())return!0;for(;Gl(ze());){if(e=ze(),Ql(e))return!0;Ve()}if(42===ze())return!0;if(Ft()&&(e=ze(),Ve()),23===ze())return!0;if(void 0!==e){if(!Th(e)||153===e||139===e)return!0;switch(ze()){case 21:case 30:case 54:case 59:case 64:case 58:return!0;default:return ht()}}return!1}function Hi(){if(Ie()&&135===ze()){const e=Be(),t=wt(la.Expression_expected);return Ve(),Qr(e,Kr(e,t,!0))}return jr()}function Ki(){const e=Be();if(!pt(60))return;const t=ke(32768,Hi);return xt(N.createDecorator(t),e)}function Gi(e,t,n){const r=Be(),i=ze();if(87===ze()&&t){if(!nt(It))return}else{if(n&&126===ze()&&tt(uo))return;if(e&&126===ze())return;if(!Gl(ze())||!nt(Ot))return}return xt(O(i),r)}function Xi(e,t,n){const r=Be();let i,o,a,s=!1,c=!1,l=!1;if(e&&60===ze())for(;o=Ki();)i=ie(i,o);for(;a=Gi(s,t,n);)126===a.kind&&(s=!0),i=ie(i,a),c=!0;if(c&&e&&60===ze())for(;o=Ki();)i=ie(i,o),l=!0;if(l)for(;a=Gi(s,t,n);)126===a.kind&&(s=!0),i=ie(i,a);return i&&bt(i,r)}function Qi(){let e;if(134===ze()){const t=Be();Ve(),e=bt([xt(O(134),t)],t)}return e}function Yi(){const e=Be(),t=Je();if(27===ze())return Ve(),ue(xt(N.createSemicolonClassElement(),e),t);const n=Xi(!0,!0,!0);if(126===ze()&&tt(uo))return function(e,t,n){mt(126);const r=function(){const e=Fe(),t=Ie();he(!1),be(!0);const n=ci(!1);return he(e),be(t),n}(),i=ue(xt(N.createClassStaticBlockDeclaration(r),e),t);return i.modifiers=n,i}(e,t,n);if(At(139))return Wi(e,t,n,177,0);if(At(153))return Wi(e,t,n,178,0);if(137===ze()||11===ze()){const r=function(e,t,n){return nt((()=>{if(137===ze()?at(137):11===ze()&&21===tt(Ve)?nt((()=>{const e=fn();return"constructor"===e.text?e:void 0})):void 0){const r=Cn(),i=Pn(0),o=Fn(59,!1),a=Pi(0,la.or_expected),s=N.createConstructorDeclaration(n,i,a);return s.typeParameters=r,s.type=o,ue(xt(s,e),t)}}))}(e,t,n);if(r)return r}if(On())return jn(e,t,n);if(_a(ze())||11===ze()||9===ze()||10===ze()||42===ze()||23===ze()){if($(n,wi)){for(const e of n)e.flags|=33554432;return ke(33554432,(()=>Vi(e,t,n)))}return Vi(e,t,n)}if(n){const r=kt(80,!0,la.Declaration_expected);return Ui(e,t,n,r,void 0)}return un.fail("Should not have attempted to parse class member declaration.")}function Zi(e,t,n){return eo(e,t,n,263)}function eo(e,t,n,r){const i=Ie();at(86);const o=!it()||119===ze()&&tt(Ut)?void 0:Tt(it()),a=Cn();$(n,UN)&&be(!0);const s=to();let c;return at(19)?(c=Xt(5,Yi),at(20)):c=rn(),be(i),ue(xt(263===r?N.createClassDeclaration(n,o,a,s,c):N.createClassExpression(n,o,a,s,c),e),t)}function to(){if(oo())return Xt(22,no)}function no(){const e=Be(),t=ze();un.assert(96===t||119===t),Ve();const n=tn(7,ro);return xt(N.createHeritageClause(t,n),e)}function ro(){const e=Be(),t=jr();if(233===t.kind)return t;const n=io();return xt(N.createExpressionWithTypeArguments(t,n),e)}function io(){return 30===ze()?on(20,fr,30,32):void 0}function oo(){return 96===ze()||119===ze()}function ao(){const e=Be(),t=Je(),n=Et(),r=Se(vr);return ue(xt(N.createEnumMember(n,r),e),t)}function so(){const e=Be();let t;return at(19)?(t=Xt(1,Ci),at(20)):t=rn(),xt(N.createModuleBlock(t),e)}function co(e,t,n,r){const i=32&r,o=8&r?Nt():wt(),a=pt(25)?co(Be(),!1,void 0,8|i):so();return ue(xt(N.createModuleDeclaration(n,o,a,r),e),t)}function lo(e,t,n){let r,i,o=0;return 162===ze()?(r=wt(),o|=2048):(r=fn(),r.text=St(r.text)),19===ze()?i=so():vt(),ue(xt(N.createModuleDeclaration(n,r,i,o),e),t)}function _o(){return 21===Ve()}function uo(){return 19===Ve()}function po(){return 44===Ve()}function fo(e,t,n,r=!1){let i;return(e||42===ze()||19===ze())&&(i=function(e,t,n,r){let i;return e&&!pt(28)||(r&&a.setSkipJsDocLeadingAsterisks(!0),i=42===ze()?function(){const e=Be();at(42),at(130);const t=wt();return xt(N.createNamespaceImport(t),e)}():xo(275),r&&a.setSkipJsDocLeadingAsterisks(!1)),xt(N.createImportClause(n,e,i),t)}(e,t,n,r),at(161)),i}function mo(){const e=ze();if((118===e||132===e)&&!a.hasPrecedingLineBreak())return ho(e)}function go(){const e=Be(),t=_a(ze())?Nt():gn(11);at(59);const n=br(!0);return xt(N.createImportAttribute(t,n),e)}function ho(e,t){const n=Be();t||at(e);const r=a.getTokenStart();if(at(19)){const t=a.hasPrecedingLineBreak(),i=tn(24,go,!0);if(!at(20)){const e=ye(g);e&&e.code===la._0_expected.code&&iT(e,Vx(c,d,r,1,la.The_parser_expected_to_find_a_1_to_match_the_0_token_here,"{","}"))}return xt(N.createImportAttributes(i,t,e),n)}{const t=bt([],Be(),void 0,!1);return xt(N.createImportAttributes(t,!1,e),n)}}function yo(){if(11===ze()){const e=fn();return e.text=St(e.text),e}return yr()}function vo(){return _a(ze())||11===ze()}function bo(e){return 11===ze()?fn():e()}function xo(e){const t=Be();return xt(275===e?N.createNamedImports(on(23,So,19,20)):N.createNamedExports(on(23,ko,19,20)),t)}function ko(){const e=Je();return ue(To(281),e)}function So(){return To(276)}function To(e){const t=Be();let n,r=Th(ze())&&!ot(),i=a.getTokenStart(),o=a.getTokenEnd(),s=!1,c=!0,l=bo(Nt);if(80===l.kind&&"type"===l.escapedText)if(130===ze()){const e=Nt();if(130===ze()){const t=Nt();vo()?(s=!0,n=e,l=bo(_),c=!1):(n=l,l=t,c=!1)}else vo()?(n=l,c=!1,l=bo(_)):(s=!0,l=e)}else vo()&&(s=!0,l=bo(_));return c&&130===ze()&&(n=l,at(130),l=bo(_)),276===e&&(80!==l.kind?(je(Xa(d,l.pos),l.end,la.Identifier_expected),l=ST(kt(80,!1),l.pos,l.pos)):r&&je(i,o,la.Identifier_expected)),xt(276===e?N.createImportSpecifier(s,n,l):N.createExportSpecifier(s,n,l),t);function _(){return r=Th(ze())&&!ot(),i=a.getTokenStart(),o=a.getTokenEnd(),Nt()}}let Co;var wo;let No;var Do;let Fo;(wo=Co||(Co={}))[wo.SourceElements=0]="SourceElements",wo[wo.BlockStatements=1]="BlockStatements",wo[wo.SwitchClauses=2]="SwitchClauses",wo[wo.SwitchClauseStatements=3]="SwitchClauseStatements",wo[wo.TypeMembers=4]="TypeMembers",wo[wo.ClassMembers=5]="ClassMembers",wo[wo.EnumMembers=6]="EnumMembers",wo[wo.HeritageClauseElement=7]="HeritageClauseElement",wo[wo.VariableDeclarations=8]="VariableDeclarations",wo[wo.ObjectBindingElements=9]="ObjectBindingElements",wo[wo.ArrayBindingElements=10]="ArrayBindingElements",wo[wo.ArgumentExpressions=11]="ArgumentExpressions",wo[wo.ObjectLiteralMembers=12]="ObjectLiteralMembers",wo[wo.JsxAttributes=13]="JsxAttributes",wo[wo.JsxChildren=14]="JsxChildren",wo[wo.ArrayLiteralMembers=15]="ArrayLiteralMembers",wo[wo.Parameters=16]="Parameters",wo[wo.JSDocParameters=17]="JSDocParameters",wo[wo.RestProperties=18]="RestProperties",wo[wo.TypeParameters=19]="TypeParameters",wo[wo.TypeArguments=20]="TypeArguments",wo[wo.TupleElementTypes=21]="TupleElementTypes",wo[wo.HeritageClauses=22]="HeritageClauses",wo[wo.ImportOrExportSpecifiers=23]="ImportOrExportSpecifiers",wo[wo.ImportAttributes=24]="ImportAttributes",wo[wo.JSDocComment=25]="JSDocComment",wo[wo.Count=26]="Count",(Do=No||(No={}))[Do.False=0]="False",Do[Do.True=1]="True",Do[Do.Unknown=2]="Unknown",(e=>{function t(e){const t=Be(),n=(e?pt:at)(19),r=ke(16777216,Sn);e&&!n||ut(20);const i=N.createJSDocTypeExpression(r);return de(i),xt(i,t)}function n(){const e=Be(),t=pt(19),n=Be();let r=an(!1);for(;81===ze();)Xe(),We(),r=xt(N.createJSDocMemberName(r,wt()),n);t&&ut(20);const i=N.createJSDocNameReference(r);return de(i),xt(i,e)}let r;var i;let o;var s;function l(e=0,r){const i=d,o=void 0===r?i.length:e+r;if(r=o-e,un.assert(e>=0),un.assert(e<=o),un.assert(o<=i.length),!lI(i,e))return;let s,l,_,u,p,f=[];const m=[],g=T;T|=1<<25;const h=a.scanRange(e+3,r-5,(function(){let t,n=1,r=e-(i.lastIndexOf("\n",e)+1)+4;function c(e){t||(t=r),f.push(e),r+=e.length}for(We();Z(5););Z(4)&&(n=0,r=0);e:for(;;){switch(ze()){case 60:v(f),p||(p=Be()),(d=C(r))&&(s?s.push(d):(s=[d],l=d.pos),_=d.end),n=0,t=void 0;break;case 4:f.push(a.getTokenText()),n=0,r=0;break;case 42:const i=a.getTokenText();1===n?(n=2,c(i)):(un.assert(0===n),n=1,r+=i.length);break;case 5:un.assert(2!==n,"whitespace shouldn't come from the scanner while saving top-level comment text");const o=a.getTokenText();void 0!==t&&r+o.length>t&&f.push(o.slice(t-r)),r+=o.length;break;case 1:break e;case 82:n=2,c(a.getTokenValue());break;case 19:n=2;const g=a.getTokenFullStart(),h=F(a.getTokenEnd()-1);if(h){u||y(f),m.push(xt(N.createJSDocText(f.join("")),u??e,g)),m.push(h),f=[],u=a.getTokenEnd();break}default:n=2,c(a.getTokenText())}2===n?$e(!1):We()}var d;const g=f.join("").trimEnd();m.length&&g.length&&m.push(xt(N.createJSDocText(g),u??e,p)),m.length&&s&&un.assertIsDefined(p,"having parsed tags implies that the end of the comment span should be set");const h=s&&bt(s,l,_);return xt(N.createJSDocComment(m.length?bt(m,e,p):g.length?g:void 0,h),e,o)}));return T=g,h;function y(e){for(;e.length&&("\n"===e[0]||"\r"===e[0]);)e.shift()}function v(e){for(;e.length;){const t=e[e.length-1].trimEnd();if(""!==t){if(t.lengthH(n))))&&345!==t.kind;)if(s=!0,344===t.kind){if(r){const e=Oe(la.A_JSDoc_typedef_comment_may_not_contain_multiple_type_tags);e&&iT(e,Vx(c,d,0,0,la.The_tag_was_first_specified_here));break}r=t}else o=ie(o,t);if(s){const t=i&&188===i.type.kind,n=N.createJSDocTypeLiteral(o,t);i=r&&r.typeExpression&&!j(r.typeExpression.type)?r.typeExpression:xt(n,e),a=i.end}}a=a||void 0!==s?Be():(o??i??t).end,s||(s=w(e,a,n,r));return xt(N.createJSDocTypedefTag(t,i,o,s),e,a)}(r,i,e,o);break;case"callback":l=function(e,t,n,r){const i=U();x();let o=D(n);const a=V(e,n);o||(o=w(e,Be(),n,r));const s=void 0!==o?Be():a.end;return xt(N.createJSDocCallbackTag(t,a,i,o),e,s)}(r,i,e,o);break;case"overload":l=function(e,t,n,r){x();let i=D(n);const o=V(e,n);i||(i=w(e,Be(),n,r));const a=void 0!==i?Be():o.end;return xt(N.createJSDocOverloadTag(t,o,i),e,a)}(r,i,e,o);break;case"satisfies":l=function(e,n,r,i){const o=t(!1),a=void 0!==r&&void 0!==i?w(e,Be(),r,i):void 0;return xt(N.createJSDocSatisfiesTag(n,o,a),e)}(r,i,e,o);break;case"see":l=function(e,t,r,i){const o=23===ze()||tt((()=>60===We()&&_a(We())&&P(a.getTokenValue())))?void 0:n(),s=void 0!==r&&void 0!==i?w(e,Be(),r,i):void 0;return xt(N.createJSDocSeeTag(t,o,s),e)}(r,i,e,o);break;case"exception":case"throws":l=function(e,t,n,r){const i=I(),o=w(e,Be(),n,r);return xt(N.createJSDocThrowsTag(t,i,o),e)}(r,i,e,o);break;case"import":l=function(e,t,n,r){const i=a.getTokenFullStart();let o;ot()&&(o=wt());const s=fo(o,i,!0,!0),c=yo(),l=mo(),_=void 0!==n&&void 0!==r?w(e,Be(),n,r):void 0;return xt(N.createJSDocImportTag(t,s,c,l,_),e)}(r,i,e,o);break;default:l=function(e,t,n,r){return xt(N.createJSDocUnknownTag(t,w(e,Be(),n,r)),e)}(r,i,e,o)}return l}function w(e,t,n,r){return r||(n+=t-e),D(n,r.slice(n))}function D(e,t){const n=Be();let r=[];const i=[];let o,s,c=0;function l(t){s||(s=e),r.push(t),e+=t.length}void 0!==t&&(""!==t&&l(t),c=1);let _=ze();e:for(;;){switch(_){case 4:c=0,r.push(a.getTokenText()),e=0;break;case 60:a.resetTokenState(a.getTokenEnd()-1);break e;case 1:break e;case 5:un.assert(2!==c&&3!==c,"whitespace shouldn't come from the scanner while saving comment text");const t=a.getTokenText();void 0!==s&&e+t.length>s&&(r.push(t.slice(s-e)),c=2),e+=t.length;break;case 19:c=2;const _=a.getTokenFullStart(),u=F(a.getTokenEnd()-1);u?(i.push(xt(N.createJSDocText(r.join("")),o??n,_)),i.push(u),r=[],o=a.getTokenEnd()):l(a.getTokenText());break;case 62:c=3===c?2:3,l(a.getTokenText());break;case 82:3!==c&&(c=2),l(a.getTokenValue());break;case 42:if(0===c){c=1,e+=1;break}default:3!==c&&(c=2),l(a.getTokenText())}_=2===c||3===c?$e(3===c):We()}y(r);const u=r.join("").trimEnd();return i.length?(u.length&&i.push(xt(N.createJSDocText(u),o??n)),bt(i,n,a.getTokenEnd())):u.length?u:void 0}function F(e){const t=nt(E);if(!t)return;We(),x();const n=function(){if(_a(ze())){const e=Be();let t=Nt();for(;pt(25);)t=xt(N.createQualifiedName(t,81===ze()?kt(80,!1):Nt()),e);for(;81===ze();)Xe(),We(),t=xt(N.createJSDocMemberName(t,wt()),e);return t}}(),r=[];for(;20!==ze()&&4!==ze()&&1!==ze();)r.push(a.getTokenText()),We();return xt(("link"===t?N.createJSDocLink:"linkcode"===t?N.createJSDocLinkCode:N.createJSDocLinkPlain)(n,r.join("")),e,a.getTokenEnd())}function E(){if(k(),19===ze()&&60===We()&&_a(We())){const e=a.getTokenValue();if(P(e))return e}}function P(e){return"link"===e||"linkcode"===e||"linkplain"===e}function I(){return k(),19===ze()?t():void 0}function L(){const e=Z(23);e&&x();const t=Z(62),n=function(){let e=ee();for(pt(23)&&at(24);pt(25);){const t=ee();pt(23)&&at(24),e=sn(e,t)}return e}();return t&&(function(e){if(ze()===e)return function(){const e=Be(),t=ze();return We(),xt(O(t),e)}()}(62)||(un.assert(wh(62)),kt(62,!1,la._0_expected,Da(62)))),e&&(x(),ft(64)&&yr(),at(24)),{name:n,isBracketed:e}}function j(e){switch(e.kind){case 151:return!0;case 188:return j(e.elementType);default:return vD(e)&&zN(e.typeName)&&"Object"===e.typeName.escapedText&&!e.typeArguments}}function M(e,t,n,r){let i=I(),o=!i;k();const{name:a,isBracketed:s}=L(),c=k();o&&!tt(E)&&(i=I());const l=w(e,Be(),r,c),_=function(e,t,n,r){if(e&&j(e.type)){const i=Be();let o,a;for(;o=nt((()=>G(n,r,t)));)341===o.kind||348===o.kind?a=ie(a,o):345===o.kind&&Re(o.tagName,la.A_JSDoc_template_tag_may_not_follow_a_typedef_callback_or_overload_tag);if(a){const t=xt(N.createJSDocTypeLiteral(a,188===e.type.kind),i);return xt(N.createJSDocTypeExpression(t),i)}}}(i,a,n,r);return _&&(i=_,o=!0),xt(1===n?N.createJSDocPropertyTag(t,a,s,i,o,l):N.createJSDocParameterTag(t,a,s,i,o,l),e)}function B(e,n,r,i){$(s,SP)&&je(n.pos,a.getTokenStart(),la._0_tag_already_specified,fc(n.escapedText));const o=t(!0),c=void 0!==r&&void 0!==i?w(e,Be(),r,i):void 0;return xt(N.createJSDocTypeTag(n,o,c),e)}function J(){const e=pt(19),t=Be(),n=function(){const e=Be();let t=ee();for(;pt(25);){const n=ee();t=xt(R(t,n),e)}return t}();a.setSkipJsDocLeadingAsterisks(!0);const r=io();a.setSkipJsDocLeadingAsterisks(!1);const i=xt(N.createExpressionWithTypeArguments(n,r),t);return e&&at(20),i}function z(e,t,n,r,i){return xt(t(n,w(e,Be(),r,i)),e)}function q(e,n,r,i){const o=t(!0);return x(),xt(N.createJSDocThisTag(n,o,w(e,Be(),r,i)),e)}function U(e){const t=a.getTokenStart();if(!_a(ze()))return;const n=ee();if(pt(25)){const r=U(!0);return xt(N.createModuleDeclaration(void 0,n,r,e?8:void 0),t)}return e&&(n.flags|=4096),n}function V(e,t){const n=function(e){const t=Be();let n,r;for(;n=nt((()=>G(4,e)));){if(345===n.kind){Re(n.tagName,la.A_JSDoc_template_tag_may_not_follow_a_typedef_callback_or_overload_tag);break}r=ie(r,n)}return bt(r||[],t)}(t),r=nt((()=>{if(Z(60)){const e=C(t);if(e&&342===e.kind)return e}}));return xt(N.createJSDocSignature(void 0,n,r),e)}function W(e,t){for(;!zN(e)||!zN(t);){if(zN(e)||zN(t)||e.right.escapedText!==t.right.escapedText)return!1;e=e.left,t=t.left}return e.escapedText===t.escapedText}function H(e){return G(1,e)}function G(e,t,n){let r=!0,i=!1;for(;;)switch(We()){case 60:if(r){const r=X(e,t);return!(r&&(341===r.kind||348===r.kind)&&n&&(zN(r.name)||!W(n,r.name.left)))&&r}i=!1;break;case 4:r=!0,i=!1;break;case 42:i&&(r=!1),i=!0;break;case 80:r=!1;break;case 1:return!1}}function X(e,t){un.assert(60===ze());const n=a.getTokenFullStart();We();const r=ee(),i=k();let o;switch(r.escapedText){case"type":return 1===e&&B(n,r);case"prop":case"property":o=1;break;case"arg":case"argument":case"param":o=6;break;case"template":return Y(n,r,t,i);case"this":return q(n,r,t,i);default:return!1}return!!(e&o)&&M(n,r,e,t)}function Q(){const e=Be(),t=Z(23);t&&x();const n=Xi(!1,!0),r=ee(la.Unexpected_token_A_type_parameter_name_was_expected_without_curly_braces);let i;if(t&&(x(),at(64),i=ke(16777216,Sn),at(24)),!Cd(r))return xt(N.createTypeParameterDeclaration(n,r,void 0,i),e)}function Y(e,n,r,i){const o=19===ze()?t():void 0,a=function(){const e=Be(),t=[];do{x();const e=Q();void 0!==e&&t.push(e),k()}while(Z(28));return bt(t,e)}();return xt(N.createJSDocTemplateTag(n,o,a,w(e,Be(),r,i)),e)}function Z(e){return ze()===e&&(We(),!0)}function ee(e){if(!_a(ze()))return kt(80,!e,e||la.Identifier_expected);S++;const t=a.getTokenStart(),n=a.getTokenEnd(),r=ze(),i=St(a.getTokenValue()),o=xt(A(i,r),t,n);return We(),o}}e.parseJSDocTypeExpressionForTests=function(e,n,r){ce("file.js",e,99,void 0,1,0),a.setText(e,n,r),v=a.scan();const i=t(),o=pe("file.js",99,1,!1,[],O(1),0,rt),s=Hx(g,o);return h&&(o.jsDocDiagnostics=Hx(h,o)),le(),i?{jsDocTypeExpression:i,diagnostics:s}:void 0},e.parseJSDocTypeExpression=t,e.parseJSDocNameReference=n,e.parseIsolatedJSDocComment=function(e,t,n){ce("",e,99,void 0,1,0);const r=ke(16777216,(()=>l(t,n))),i=Hx(g,{languageVariant:0,text:e});return le(),r?{jsDoc:r,diagnostics:i}:void 0},e.parseJSDocComment=function(e,t,n){const r=v,i=g.length,o=oe,a=ke(16777216,(()=>l(t,n)));return wT(a,e),524288&w&&(h||(h=[]),se(h,g,i)),v=r,g.length=i,oe=o,a},(i=r||(r={}))[i.BeginningOfLine=0]="BeginningOfLine",i[i.SawAsterisk=1]="SawAsterisk",i[i.SavingComments=2]="SavingComments",i[i.SavingBackticks=3]="SavingBackticks",(s=o||(o={}))[s.Property=1]="Property",s[s.Parameter=2]="Parameter",s[s.CallbackParameter=4]="CallbackParameter"})(Fo=e.JSDocParser||(e.JSDocParser={}))})(pI||(pI={}));var qI,UI=new WeakSet,VI=new WeakSet;function WI(e){VI.add(e)}function $I(e){return void 0!==HI(e)}function HI(e){const t=Po(e,NS,!1);if(t)return t;if(ko(e,".ts")){const t=Fo(e),n=t.lastIndexOf(".d.");if(n>=0)return t.substring(n)}}function KI(e,t){const n=[];for(const e of ls(t,0)||l)eO(n,e,t.substring(e.pos,e.end));e.pragmas=new Map;for(const t of n)if(e.pragmas.has(t.name)){const n=e.pragmas.get(t.name);n instanceof Array?n.push(t.args):e.pragmas.set(t.name,[n,t.args])}else e.pragmas.set(t.name,t.args)}function GI(e,t){e.checkJsDirective=void 0,e.referencedFiles=[],e.typeReferenceDirectives=[],e.libReferenceDirectives=[],e.amdDependencies=[],e.hasNoDefaultLib=!1,e.pragmas.forEach(((n,r)=>{switch(r){case"reference":{const r=e.referencedFiles,i=e.typeReferenceDirectives,o=e.libReferenceDirectives;d(Ye(n),(n=>{const{types:a,lib:s,path:c,"resolution-mode":l,preserve:_}=n.arguments,u="true"===_||void 0;if("true"===n.arguments["no-default-lib"])e.hasNoDefaultLib=!0;else if(a){const e=function(e,t,n,r){if(e)return"import"===e?99:"require"===e?1:void r(t,n-t,la.resolution_mode_should_be_either_require_or_import)}(l,a.pos,a.end,t);i.push({pos:a.pos,end:a.end,fileName:a.value,...e?{resolutionMode:e}:{},...u?{preserve:u}:{}})}else s?o.push({pos:s.pos,end:s.end,fileName:s.value,...u?{preserve:u}:{}}):c?r.push({pos:c.pos,end:c.end,fileName:c.value,...u?{preserve:u}:{}}):t(n.range.pos,n.range.end-n.range.pos,la.Invalid_reference_directive_syntax)}));break}case"amd-dependency":e.amdDependencies=E(Ye(n),(e=>({name:e.arguments.name,path:e.arguments.path})));break;case"amd-module":if(n instanceof Array)for(const r of n)e.moduleName&&t(r.range.pos,r.range.end-r.range.pos,la.An_AMD_module_cannot_have_multiple_name_assignments),e.moduleName=r.arguments.name;else e.moduleName=n.arguments.name;break;case"ts-nocheck":case"ts-check":d(Ye(n),(t=>{(!e.checkJsDirective||t.range.pos>e.checkJsDirective.pos)&&(e.checkJsDirective={enabled:"ts-check"===r,end:t.range.end,pos:t.range.pos})}));break;case"jsx":case"jsxfrag":case"jsximportsource":case"jsxruntime":return;default:un.fail("Unhandled pragma kind")}}))}(e=>{function t(e,t,r,o,a,s,c){return void(r?_(e):l(e));function l(e){let r="";if(c&&n(e)&&(r=a.substring(e.pos,e.end)),RP(e,t),ST(e,e.pos+o,e.end+o),c&&n(e)&&un.assert(r===s.substring(e.pos,e.end)),PI(e,l,_),Nu(e))for(const t of e.jsDoc)l(t);i(e,c)}function _(e){ST(e,e.pos+o,e.end+o);for(const t of e)l(t)}}function n(e){switch(e.kind){case 11:case 9:case 80:return!0}return!1}function r(e,t,n,r,i){un.assert(e.end>=t,"Adjusting an element that was entirely before the change range"),un.assert(e.pos<=n,"Adjusting an element that was entirely after the change range"),un.assert(e.pos<=e.end);const o=Math.min(e.pos,r),a=e.end>=n?e.end+i:Math.min(e.end,r);if(un.assert(o<=a),e.parent){const t=e.parent;un.assertGreaterThanOrEqual(o,t.pos),un.assertLessThanOrEqual(a,t.end)}ST(e,o,a)}function i(e,t){if(t){let t=e.pos;const n=e=>{un.assert(e.pos>=t),t=e.end};if(Nu(e))for(const t of e.jsDoc)n(t);PI(e,n),un.assert(t<=e.end)}}function o(e,t){let n,r=e;if(PI(e,(function e(i){if(!Cd(i))return i.pos<=t?(i.pos>=r.pos&&(r=i),tt),!0)})),n){const e=function(e){for(;;){const t=yx(e);if(!t)return e;e=t}}(n);e.pos>r.pos&&(r=e)}return r}function a(e,t,n,r){const i=e.text;if(n&&(un.assert(i.length-n.span.length+n.newLength===t.length),r||un.shouldAssert(3))){const e=i.substr(0,n.span.start),r=t.substr(0,n.span.start);un.assert(e===r);const o=i.substring(Ds(n.span),i.length),a=t.substring(Ds($s(n)),t.length);un.assert(o===a)}}function s(e){let t=e.statements,n=0;un.assert(n(o!==i&&(r&&r.end===o&&n=e.pos&&i=e.pos&&i0&&t<=1;t++){const t=o(e,n);un.assert(t.pos<=n);const r=t.pos;n=Math.max(0,r-1)}return Ks(Ws(n,Ds(t.span)),t.newLength+(t.span.start-n))}(e,c);a(e,n,d,l),un.assert(d.span.start<=c.span.start),un.assert(Ds(d.span)===Ds(c.span)),un.assert(Ds($s(d))===Ds($s(c)));const p=$s(d).length-d.span.length;!function(e,n,o,a,s,c,l,_){return void u(e);function u(p){if(un.assert(p.pos<=p.end),p.pos>o)return void t(p,e,!1,s,c,l,_);const f=p.end;if(f>=n){if(WI(p),RP(p,e),r(p,n,o,a,s),PI(p,u,d),Nu(p))for(const e of p.jsDoc)u(e);i(p,_)}else un.assert(fo)return void t(i,e,!0,s,c,l,_);const d=i.end;if(d>=n){WI(i),r(i,n,o,a,s);for(const e of i)u(e)}else un.assert(dr){_();const t={range:{pos:e.pos+i,end:e.end+i},type:l};c=ie(c,t),s&&un.assert(o.substring(e.pos,e.end)===a.substring(t.range.pos,t.range.end))}}return _(),c;function _(){l||(l=!0,c?t&&c.push(...t):c=t)}}(e.commentDirectives,f.commentDirectives,d.span.start,Ds(d.span),p,_,n,l),f.impliedNodeFormat=e.impliedNodeFormat,MP(e,f),f},e.createSyntaxCursor=s,(l=c||(c={}))[l.Value=-1]="Value"})(qI||(qI={}));var XI=new Map;function QI(e){if(XI.has(e))return XI.get(e);const t=new RegExp(`(\\s${e}\\s*=\\s*)(?:(?:'([^']*)')|(?:"([^"]*)"))`,"im");return XI.set(e,t),t}var YI=/^\/\/\/\s*<(\S+)\s.*?\/>/m,ZI=/^\/\/\/?\s*@([^\s:]+)((?:[^\S\r\n]|:).*)?$/m;function eO(e,t,n){const r=2===t.kind&&YI.exec(n);if(r){const i=r[1].toLowerCase(),o=Li[i];if(!(o&&1&o.kind))return;if(o.args){const r={};for(const e of o.args){const i=QI(e.name).exec(n);if(!i&&!e.optional)return;if(i){const n=i[2]||i[3];if(e.captureSpan){const o=t.pos+i.index+i[1].length+1;r[e.name]={value:n,pos:o,end:o+n.length}}else r[e.name]=n}}e.push({name:i,args:{arguments:r,range:t}})}else e.push({name:i,args:{arguments:{},range:t}});return}const i=2===t.kind&&ZI.exec(n);if(i)return tO(e,t,2,i);if(3===t.kind){const r=/@(\S+)(\s+(?:\S.*)?)?$/gm;let i;for(;i=r.exec(n);)tO(e,t,4,i)}}function tO(e,t,n,r){if(!r)return;const i=r[1].toLowerCase(),o=Li[i];if(!(o&&o.kind&n))return;const a=function(e,t){if(!t)return{};if(!e.args)return{};const n=t.trim().split(/\s+/),r={};for(let t=0;t[""+t,e]))),sO=[["es5","lib.es5.d.ts"],["es6","lib.es2015.d.ts"],["es2015","lib.es2015.d.ts"],["es7","lib.es2016.d.ts"],["es2016","lib.es2016.d.ts"],["es2017","lib.es2017.d.ts"],["es2018","lib.es2018.d.ts"],["es2019","lib.es2019.d.ts"],["es2020","lib.es2020.d.ts"],["es2021","lib.es2021.d.ts"],["es2022","lib.es2022.d.ts"],["es2023","lib.es2023.d.ts"],["es2024","lib.es2024.d.ts"],["esnext","lib.esnext.d.ts"],["dom","lib.dom.d.ts"],["dom.iterable","lib.dom.iterable.d.ts"],["dom.asynciterable","lib.dom.asynciterable.d.ts"],["webworker","lib.webworker.d.ts"],["webworker.importscripts","lib.webworker.importscripts.d.ts"],["webworker.iterable","lib.webworker.iterable.d.ts"],["webworker.asynciterable","lib.webworker.asynciterable.d.ts"],["scripthost","lib.scripthost.d.ts"],["es2015.core","lib.es2015.core.d.ts"],["es2015.collection","lib.es2015.collection.d.ts"],["es2015.generator","lib.es2015.generator.d.ts"],["es2015.iterable","lib.es2015.iterable.d.ts"],["es2015.promise","lib.es2015.promise.d.ts"],["es2015.proxy","lib.es2015.proxy.d.ts"],["es2015.reflect","lib.es2015.reflect.d.ts"],["es2015.symbol","lib.es2015.symbol.d.ts"],["es2015.symbol.wellknown","lib.es2015.symbol.wellknown.d.ts"],["es2016.array.include","lib.es2016.array.include.d.ts"],["es2016.intl","lib.es2016.intl.d.ts"],["es2017.arraybuffer","lib.es2017.arraybuffer.d.ts"],["es2017.date","lib.es2017.date.d.ts"],["es2017.object","lib.es2017.object.d.ts"],["es2017.sharedmemory","lib.es2017.sharedmemory.d.ts"],["es2017.string","lib.es2017.string.d.ts"],["es2017.intl","lib.es2017.intl.d.ts"],["es2017.typedarrays","lib.es2017.typedarrays.d.ts"],["es2018.asyncgenerator","lib.es2018.asyncgenerator.d.ts"],["es2018.asynciterable","lib.es2018.asynciterable.d.ts"],["es2018.intl","lib.es2018.intl.d.ts"],["es2018.promise","lib.es2018.promise.d.ts"],["es2018.regexp","lib.es2018.regexp.d.ts"],["es2019.array","lib.es2019.array.d.ts"],["es2019.object","lib.es2019.object.d.ts"],["es2019.string","lib.es2019.string.d.ts"],["es2019.symbol","lib.es2019.symbol.d.ts"],["es2019.intl","lib.es2019.intl.d.ts"],["es2020.bigint","lib.es2020.bigint.d.ts"],["es2020.date","lib.es2020.date.d.ts"],["es2020.promise","lib.es2020.promise.d.ts"],["es2020.sharedmemory","lib.es2020.sharedmemory.d.ts"],["es2020.string","lib.es2020.string.d.ts"],["es2020.symbol.wellknown","lib.es2020.symbol.wellknown.d.ts"],["es2020.intl","lib.es2020.intl.d.ts"],["es2020.number","lib.es2020.number.d.ts"],["es2021.promise","lib.es2021.promise.d.ts"],["es2021.string","lib.es2021.string.d.ts"],["es2021.weakref","lib.es2021.weakref.d.ts"],["es2021.intl","lib.es2021.intl.d.ts"],["es2022.array","lib.es2022.array.d.ts"],["es2022.error","lib.es2022.error.d.ts"],["es2022.intl","lib.es2022.intl.d.ts"],["es2022.object","lib.es2022.object.d.ts"],["es2022.string","lib.es2022.string.d.ts"],["es2022.regexp","lib.es2022.regexp.d.ts"],["es2023.array","lib.es2023.array.d.ts"],["es2023.collection","lib.es2023.collection.d.ts"],["es2023.intl","lib.es2023.intl.d.ts"],["es2024.arraybuffer","lib.es2024.arraybuffer.d.ts"],["es2024.collection","lib.es2024.collection.d.ts"],["es2024.object","lib.es2024.object.d.ts"],["es2024.promise","lib.es2024.promise.d.ts"],["es2024.regexp","lib.es2024.regexp.d.ts"],["es2024.sharedmemory","lib.es2024.sharedmemory.d.ts"],["es2024.string","lib.es2024.string.d.ts"],["esnext.array","lib.es2023.array.d.ts"],["esnext.collection","lib.esnext.collection.d.ts"],["esnext.symbol","lib.es2019.symbol.d.ts"],["esnext.asynciterable","lib.es2018.asynciterable.d.ts"],["esnext.intl","lib.esnext.intl.d.ts"],["esnext.disposable","lib.esnext.disposable.d.ts"],["esnext.bigint","lib.es2020.bigint.d.ts"],["esnext.string","lib.es2022.string.d.ts"],["esnext.promise","lib.es2024.promise.d.ts"],["esnext.weakref","lib.es2021.weakref.d.ts"],["esnext.decorators","lib.esnext.decorators.d.ts"],["esnext.object","lib.es2024.object.d.ts"],["esnext.array","lib.esnext.array.d.ts"],["esnext.regexp","lib.es2024.regexp.d.ts"],["esnext.string","lib.es2024.string.d.ts"],["esnext.iterator","lib.esnext.iterator.d.ts"],["decorators","lib.decorators.d.ts"],["decorators.legacy","lib.decorators.legacy.d.ts"]],cO=sO.map((e=>e[0])),lO=new Map(sO),_O=[{name:"watchFile",type:new Map(Object.entries({fixedpollinginterval:0,prioritypollinginterval:1,dynamicprioritypolling:2,fixedchunksizepolling:3,usefsevents:4,usefseventsonparentdirectory:5})),category:la.Watch_and_Build_Modes,description:la.Specify_how_the_TypeScript_watch_mode_works,defaultValueDescription:4},{name:"watchDirectory",type:new Map(Object.entries({usefsevents:0,fixedpollinginterval:1,dynamicprioritypolling:2,fixedchunksizepolling:3})),category:la.Watch_and_Build_Modes,description:la.Specify_how_directories_are_watched_on_systems_that_lack_recursive_file_watching_functionality,defaultValueDescription:0},{name:"fallbackPolling",type:new Map(Object.entries({fixedinterval:0,priorityinterval:1,dynamicpriority:2,fixedchunksize:3})),category:la.Watch_and_Build_Modes,description:la.Specify_what_approach_the_watcher_should_use_if_the_system_runs_out_of_native_file_watchers,defaultValueDescription:1},{name:"synchronousWatchDirectory",type:"boolean",category:la.Watch_and_Build_Modes,description:la.Synchronously_call_callbacks_and_update_the_state_of_directory_watchers_on_platforms_that_don_t_support_recursive_watching_natively,defaultValueDescription:!1},{name:"excludeDirectories",type:"list",element:{name:"excludeDirectory",type:"string",isFilePath:!0,extraValidation:Cj},allowConfigDirTemplateSubstitution:!0,category:la.Watch_and_Build_Modes,description:la.Remove_a_list_of_directories_from_the_watch_process},{name:"excludeFiles",type:"list",element:{name:"excludeFile",type:"string",isFilePath:!0,extraValidation:Cj},allowConfigDirTemplateSubstitution:!0,category:la.Watch_and_Build_Modes,description:la.Remove_a_list_of_files_from_the_watch_mode_s_processing}],uO=[{name:"help",shortName:"h",type:"boolean",showInSimplifiedHelpView:!0,isCommandLineOnly:!0,category:la.Command_line_Options,description:la.Print_this_message,defaultValueDescription:!1},{name:"help",shortName:"?",type:"boolean",isCommandLineOnly:!0,category:la.Command_line_Options,defaultValueDescription:!1},{name:"watch",shortName:"w",type:"boolean",showInSimplifiedHelpView:!0,isCommandLineOnly:!0,category:la.Command_line_Options,description:la.Watch_input_files,defaultValueDescription:!1},{name:"preserveWatchOutput",type:"boolean",showInSimplifiedHelpView:!1,category:la.Output_Formatting,description:la.Disable_wiping_the_console_in_watch_mode,defaultValueDescription:!1},{name:"listFiles",type:"boolean",category:la.Compiler_Diagnostics,description:la.Print_all_of_the_files_read_during_the_compilation,defaultValueDescription:!1},{name:"explainFiles",type:"boolean",category:la.Compiler_Diagnostics,description:la.Print_files_read_during_the_compilation_including_why_it_was_included,defaultValueDescription:!1},{name:"listEmittedFiles",type:"boolean",category:la.Compiler_Diagnostics,description:la.Print_the_names_of_emitted_files_after_a_compilation,defaultValueDescription:!1},{name:"pretty",type:"boolean",showInSimplifiedHelpView:!0,category:la.Output_Formatting,description:la.Enable_color_and_formatting_in_TypeScript_s_output_to_make_compiler_errors_easier_to_read,defaultValueDescription:!0},{name:"traceResolution",type:"boolean",category:la.Compiler_Diagnostics,description:la.Log_paths_used_during_the_moduleResolution_process,defaultValueDescription:!1},{name:"diagnostics",type:"boolean",category:la.Compiler_Diagnostics,description:la.Output_compiler_performance_information_after_building,defaultValueDescription:!1},{name:"extendedDiagnostics",type:"boolean",category:la.Compiler_Diagnostics,description:la.Output_more_detailed_compiler_performance_information_after_building,defaultValueDescription:!1},{name:"generateCpuProfile",type:"string",isFilePath:!0,paramType:la.FILE_OR_DIRECTORY,category:la.Compiler_Diagnostics,description:la.Emit_a_v8_CPU_profile_of_the_compiler_run_for_debugging,defaultValueDescription:"profile.cpuprofile"},{name:"generateTrace",type:"string",isFilePath:!0,paramType:la.DIRECTORY,category:la.Compiler_Diagnostics,description:la.Generates_an_event_trace_and_a_list_of_types},{name:"incremental",shortName:"i",type:"boolean",category:la.Projects,description:la.Save_tsbuildinfo_files_to_allow_for_incremental_compilation_of_projects,transpileOptionValue:void 0,defaultValueDescription:la.false_unless_composite_is_set},{name:"declaration",shortName:"d",type:"boolean",affectsBuildInfo:!0,showInSimplifiedHelpView:!0,category:la.Emit,transpileOptionValue:void 0,description:la.Generate_d_ts_files_from_TypeScript_and_JavaScript_files_in_your_project,defaultValueDescription:la.false_unless_composite_is_set},{name:"declarationMap",type:"boolean",affectsBuildInfo:!0,showInSimplifiedHelpView:!0,category:la.Emit,defaultValueDescription:!1,description:la.Create_sourcemaps_for_d_ts_files},{name:"emitDeclarationOnly",type:"boolean",affectsBuildInfo:!0,showInSimplifiedHelpView:!0,category:la.Emit,description:la.Only_output_d_ts_files_and_not_JavaScript_files,transpileOptionValue:void 0,defaultValueDescription:!1},{name:"sourceMap",type:"boolean",affectsBuildInfo:!0,showInSimplifiedHelpView:!0,category:la.Emit,defaultValueDescription:!1,description:la.Create_source_map_files_for_emitted_JavaScript_files},{name:"inlineSourceMap",type:"boolean",affectsBuildInfo:!0,category:la.Emit,description:la.Include_sourcemap_files_inside_the_emitted_JavaScript,defaultValueDescription:!1},{name:"noCheck",type:"boolean",showInSimplifiedHelpView:!1,category:la.Compiler_Diagnostics,description:la.Disable_full_type_checking_only_critical_parse_and_emit_errors_will_be_reported,transpileOptionValue:!0,defaultValueDescription:!1},{name:"noEmit",type:"boolean",showInSimplifiedHelpView:!0,category:la.Emit,description:la.Disable_emitting_files_from_a_compilation,transpileOptionValue:void 0,defaultValueDescription:!1},{name:"assumeChangesOnlyAffectDirectDependencies",type:"boolean",affectsSemanticDiagnostics:!0,affectsEmit:!0,affectsBuildInfo:!0,category:la.Watch_and_Build_Modes,description:la.Have_recompiles_in_projects_that_use_incremental_and_watch_mode_assume_that_changes_within_a_file_will_only_affect_files_directly_depending_on_it,defaultValueDescription:!1},{name:"locale",type:"string",category:la.Command_line_Options,isCommandLineOnly:!0,description:la.Set_the_language_of_the_messaging_from_TypeScript_This_does_not_affect_emit,defaultValueDescription:la.Platform_specific}],dO={name:"target",shortName:"t",type:new Map(Object.entries({es3:0,es5:1,es6:2,es2015:2,es2016:3,es2017:4,es2018:5,es2019:6,es2020:7,es2021:8,es2022:9,es2023:10,es2024:11,esnext:99})),affectsSourceFile:!0,affectsModuleResolution:!0,affectsEmit:!0,affectsBuildInfo:!0,deprecatedKeys:new Set(["es3"]),paramType:la.VERSION,showInSimplifiedHelpView:!0,category:la.Language_and_Environment,description:la.Set_the_JavaScript_language_version_for_emitted_JavaScript_and_include_compatible_library_declarations,defaultValueDescription:1},pO={name:"module",shortName:"m",type:new Map(Object.entries({none:0,commonjs:1,amd:2,system:4,umd:3,es6:5,es2015:5,es2020:6,es2022:7,esnext:99,node16:100,nodenext:199,preserve:200})),affectsSourceFile:!0,affectsModuleResolution:!0,affectsEmit:!0,affectsBuildInfo:!0,paramType:la.KIND,showInSimplifiedHelpView:!0,category:la.Modules,description:la.Specify_what_module_code_is_generated,defaultValueDescription:void 0},fO=[{name:"all",type:"boolean",showInSimplifiedHelpView:!0,category:la.Command_line_Options,description:la.Show_all_compiler_options,defaultValueDescription:!1},{name:"version",shortName:"v",type:"boolean",showInSimplifiedHelpView:!0,category:la.Command_line_Options,description:la.Print_the_compiler_s_version,defaultValueDescription:!1},{name:"init",type:"boolean",showInSimplifiedHelpView:!0,category:la.Command_line_Options,description:la.Initializes_a_TypeScript_project_and_creates_a_tsconfig_json_file,defaultValueDescription:!1},{name:"project",shortName:"p",type:"string",isFilePath:!0,showInSimplifiedHelpView:!0,category:la.Command_line_Options,paramType:la.FILE_OR_DIRECTORY,description:la.Compile_the_project_given_the_path_to_its_configuration_file_or_to_a_folder_with_a_tsconfig_json},{name:"showConfig",type:"boolean",showInSimplifiedHelpView:!0,category:la.Command_line_Options,isCommandLineOnly:!0,description:la.Print_the_final_configuration_instead_of_building,defaultValueDescription:!1},{name:"listFilesOnly",type:"boolean",category:la.Command_line_Options,isCommandLineOnly:!0,description:la.Print_names_of_files_that_are_part_of_the_compilation_and_then_stop_processing,defaultValueDescription:!1},dO,pO,{name:"lib",type:"list",element:{name:"lib",type:lO,defaultValueDescription:void 0},affectsProgramStructure:!0,showInSimplifiedHelpView:!0,category:la.Language_and_Environment,description:la.Specify_a_set_of_bundled_library_declaration_files_that_describe_the_target_runtime_environment,transpileOptionValue:void 0},{name:"allowJs",type:"boolean",allowJsFlag:!0,affectsBuildInfo:!0,showInSimplifiedHelpView:!0,category:la.JavaScript_Support,description:la.Allow_JavaScript_files_to_be_a_part_of_your_program_Use_the_checkJS_option_to_get_errors_from_these_files,defaultValueDescription:!1},{name:"checkJs",type:"boolean",affectsModuleResolution:!0,affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,showInSimplifiedHelpView:!0,category:la.JavaScript_Support,description:la.Enable_error_reporting_in_type_checked_JavaScript_files,defaultValueDescription:!1},{name:"jsx",type:oO,affectsSourceFile:!0,affectsEmit:!0,affectsBuildInfo:!0,affectsModuleResolution:!0,affectsSemanticDiagnostics:!0,paramType:la.KIND,showInSimplifiedHelpView:!0,category:la.Language_and_Environment,description:la.Specify_what_JSX_code_is_generated,defaultValueDescription:void 0},{name:"outFile",type:"string",affectsEmit:!0,affectsBuildInfo:!0,affectsDeclarationPath:!0,isFilePath:!0,paramType:la.FILE,showInSimplifiedHelpView:!0,category:la.Emit,description:la.Specify_a_file_that_bundles_all_outputs_into_one_JavaScript_file_If_declaration_is_true_also_designates_a_file_that_bundles_all_d_ts_output,transpileOptionValue:void 0},{name:"outDir",type:"string",affectsEmit:!0,affectsBuildInfo:!0,affectsDeclarationPath:!0,isFilePath:!0,paramType:la.DIRECTORY,showInSimplifiedHelpView:!0,category:la.Emit,description:la.Specify_an_output_folder_for_all_emitted_files},{name:"rootDir",type:"string",affectsEmit:!0,affectsBuildInfo:!0,affectsDeclarationPath:!0,isFilePath:!0,paramType:la.LOCATION,category:la.Modules,description:la.Specify_the_root_folder_within_your_source_files,defaultValueDescription:la.Computed_from_the_list_of_input_files},{name:"composite",type:"boolean",affectsBuildInfo:!0,isTSConfigOnly:!0,category:la.Projects,transpileOptionValue:void 0,defaultValueDescription:!1,description:la.Enable_constraints_that_allow_a_TypeScript_project_to_be_used_with_project_references},{name:"tsBuildInfoFile",type:"string",affectsEmit:!0,affectsBuildInfo:!0,isFilePath:!0,paramType:la.FILE,category:la.Projects,transpileOptionValue:void 0,defaultValueDescription:".tsbuildinfo",description:la.Specify_the_path_to_tsbuildinfo_incremental_compilation_file},{name:"removeComments",type:"boolean",affectsEmit:!0,affectsBuildInfo:!0,showInSimplifiedHelpView:!0,category:la.Emit,defaultValueDescription:!1,description:la.Disable_emitting_comments},{name:"importHelpers",type:"boolean",affectsEmit:!0,affectsBuildInfo:!0,affectsSourceFile:!0,category:la.Emit,description:la.Allow_importing_helper_functions_from_tslib_once_per_project_instead_of_including_them_per_file,defaultValueDescription:!1},{name:"importsNotUsedAsValues",type:new Map(Object.entries({remove:0,preserve:1,error:2})),affectsEmit:!0,affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:la.Backwards_Compatibility,description:la.Specify_emit_Slashchecking_behavior_for_imports_that_are_only_used_for_types,defaultValueDescription:0},{name:"downlevelIteration",type:"boolean",affectsEmit:!0,affectsBuildInfo:!0,category:la.Emit,description:la.Emit_more_compliant_but_verbose_and_less_performant_JavaScript_for_iteration,defaultValueDescription:!1},{name:"isolatedModules",type:"boolean",category:la.Interop_Constraints,description:la.Ensure_that_each_file_can_be_safely_transpiled_without_relying_on_other_imports,transpileOptionValue:!0,defaultValueDescription:!1},{name:"verbatimModuleSyntax",type:"boolean",affectsEmit:!0,affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:la.Interop_Constraints,description:la.Do_not_transform_or_elide_any_imports_or_exports_not_marked_as_type_only_ensuring_they_are_written_in_the_output_file_s_format_based_on_the_module_setting,defaultValueDescription:!1},{name:"isolatedDeclarations",type:"boolean",category:la.Interop_Constraints,description:la.Require_sufficient_annotation_on_exports_so_other_tools_can_trivially_generate_declaration_files,defaultValueDescription:!1,affectsBuildInfo:!0,affectsSemanticDiagnostics:!0},{name:"strict",type:"boolean",affectsBuildInfo:!0,showInSimplifiedHelpView:!0,category:la.Type_Checking,description:la.Enable_all_strict_type_checking_options,defaultValueDescription:!1},{name:"noImplicitAny",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,strictFlag:!0,category:la.Type_Checking,description:la.Enable_error_reporting_for_expressions_and_declarations_with_an_implied_any_type,defaultValueDescription:la.false_unless_strict_is_set},{name:"strictNullChecks",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,strictFlag:!0,category:la.Type_Checking,description:la.When_type_checking_take_into_account_null_and_undefined,defaultValueDescription:la.false_unless_strict_is_set},{name:"strictFunctionTypes",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,strictFlag:!0,category:la.Type_Checking,description:la.When_assigning_functions_check_to_ensure_parameters_and_the_return_values_are_subtype_compatible,defaultValueDescription:la.false_unless_strict_is_set},{name:"strictBindCallApply",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,strictFlag:!0,category:la.Type_Checking,description:la.Check_that_the_arguments_for_bind_call_and_apply_methods_match_the_original_function,defaultValueDescription:la.false_unless_strict_is_set},{name:"strictPropertyInitialization",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,strictFlag:!0,category:la.Type_Checking,description:la.Check_for_class_properties_that_are_declared_but_not_set_in_the_constructor,defaultValueDescription:la.false_unless_strict_is_set},{name:"strictBuiltinIteratorReturn",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,strictFlag:!0,category:la.Type_Checking,description:la.Built_in_iterators_are_instantiated_with_a_TReturn_type_of_undefined_instead_of_any,defaultValueDescription:la.false_unless_strict_is_set},{name:"noImplicitThis",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,strictFlag:!0,category:la.Type_Checking,description:la.Enable_error_reporting_when_this_is_given_the_type_any,defaultValueDescription:la.false_unless_strict_is_set},{name:"useUnknownInCatchVariables",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,strictFlag:!0,category:la.Type_Checking,description:la.Default_catch_clause_variables_as_unknown_instead_of_any,defaultValueDescription:la.false_unless_strict_is_set},{name:"alwaysStrict",type:"boolean",affectsSourceFile:!0,affectsEmit:!0,affectsBuildInfo:!0,strictFlag:!0,category:la.Type_Checking,description:la.Ensure_use_strict_is_always_emitted,defaultValueDescription:la.false_unless_strict_is_set},{name:"noUnusedLocals",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:la.Type_Checking,description:la.Enable_error_reporting_when_local_variables_aren_t_read,defaultValueDescription:!1},{name:"noUnusedParameters",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:la.Type_Checking,description:la.Raise_an_error_when_a_function_parameter_isn_t_read,defaultValueDescription:!1},{name:"exactOptionalPropertyTypes",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:la.Type_Checking,description:la.Interpret_optional_property_types_as_written_rather_than_adding_undefined,defaultValueDescription:!1},{name:"noImplicitReturns",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:la.Type_Checking,description:la.Enable_error_reporting_for_codepaths_that_do_not_explicitly_return_in_a_function,defaultValueDescription:!1},{name:"noFallthroughCasesInSwitch",type:"boolean",affectsBindDiagnostics:!0,affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:la.Type_Checking,description:la.Enable_error_reporting_for_fallthrough_cases_in_switch_statements,defaultValueDescription:!1},{name:"noUncheckedIndexedAccess",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:la.Type_Checking,description:la.Add_undefined_to_a_type_when_accessed_using_an_index,defaultValueDescription:!1},{name:"noImplicitOverride",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:la.Type_Checking,description:la.Ensure_overriding_members_in_derived_classes_are_marked_with_an_override_modifier,defaultValueDescription:!1},{name:"noPropertyAccessFromIndexSignature",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,showInSimplifiedHelpView:!1,category:la.Type_Checking,description:la.Enforces_using_indexed_accessors_for_keys_declared_using_an_indexed_type,defaultValueDescription:!1},{name:"moduleResolution",type:new Map(Object.entries({node10:2,node:2,classic:1,node16:3,nodenext:99,bundler:100})),deprecatedKeys:new Set(["node"]),affectsSourceFile:!0,affectsModuleResolution:!0,paramType:la.STRATEGY,category:la.Modules,description:la.Specify_how_TypeScript_looks_up_a_file_from_a_given_module_specifier,defaultValueDescription:la.module_AMD_or_UMD_or_System_or_ES6_then_Classic_Otherwise_Node},{name:"baseUrl",type:"string",affectsModuleResolution:!0,isFilePath:!0,category:la.Modules,description:la.Specify_the_base_directory_to_resolve_non_relative_module_names},{name:"paths",type:"object",affectsModuleResolution:!0,allowConfigDirTemplateSubstitution:!0,isTSConfigOnly:!0,category:la.Modules,description:la.Specify_a_set_of_entries_that_re_map_imports_to_additional_lookup_locations,transpileOptionValue:void 0},{name:"rootDirs",type:"list",isTSConfigOnly:!0,element:{name:"rootDirs",type:"string",isFilePath:!0},affectsModuleResolution:!0,allowConfigDirTemplateSubstitution:!0,category:la.Modules,description:la.Allow_multiple_folders_to_be_treated_as_one_when_resolving_modules,transpileOptionValue:void 0,defaultValueDescription:la.Computed_from_the_list_of_input_files},{name:"typeRoots",type:"list",element:{name:"typeRoots",type:"string",isFilePath:!0},affectsModuleResolution:!0,allowConfigDirTemplateSubstitution:!0,category:la.Modules,description:la.Specify_multiple_folders_that_act_like_Slashnode_modules_Slash_types},{name:"types",type:"list",element:{name:"types",type:"string"},affectsProgramStructure:!0,showInSimplifiedHelpView:!0,category:la.Modules,description:la.Specify_type_package_names_to_be_included_without_being_referenced_in_a_source_file,transpileOptionValue:void 0},{name:"allowSyntheticDefaultImports",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:la.Interop_Constraints,description:la.Allow_import_x_from_y_when_a_module_doesn_t_have_a_default_export,defaultValueDescription:la.module_system_or_esModuleInterop},{name:"esModuleInterop",type:"boolean",affectsSemanticDiagnostics:!0,affectsEmit:!0,affectsBuildInfo:!0,showInSimplifiedHelpView:!0,category:la.Interop_Constraints,description:la.Emit_additional_JavaScript_to_ease_support_for_importing_CommonJS_modules_This_enables_allowSyntheticDefaultImports_for_type_compatibility,defaultValueDescription:!1},{name:"preserveSymlinks",type:"boolean",category:la.Interop_Constraints,description:la.Disable_resolving_symlinks_to_their_realpath_This_correlates_to_the_same_flag_in_node,defaultValueDescription:!1},{name:"allowUmdGlobalAccess",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:la.Modules,description:la.Allow_accessing_UMD_globals_from_modules,defaultValueDescription:!1},{name:"moduleSuffixes",type:"list",element:{name:"suffix",type:"string"},listPreserveFalsyValues:!0,affectsModuleResolution:!0,category:la.Modules,description:la.List_of_file_name_suffixes_to_search_when_resolving_a_module},{name:"allowImportingTsExtensions",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:la.Modules,description:la.Allow_imports_to_include_TypeScript_file_extensions_Requires_moduleResolution_bundler_and_either_noEmit_or_emitDeclarationOnly_to_be_set,defaultValueDescription:!1,transpileOptionValue:void 0},{name:"rewriteRelativeImportExtensions",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:la.Modules,description:la.Rewrite_ts_tsx_mts_and_cts_file_extensions_in_relative_import_paths_to_their_JavaScript_equivalent_in_output_files,defaultValueDescription:!1},{name:"resolvePackageJsonExports",type:"boolean",affectsModuleResolution:!0,category:la.Modules,description:la.Use_the_package_json_exports_field_when_resolving_package_imports,defaultValueDescription:la.true_when_moduleResolution_is_node16_nodenext_or_bundler_otherwise_false},{name:"resolvePackageJsonImports",type:"boolean",affectsModuleResolution:!0,category:la.Modules,description:la.Use_the_package_json_imports_field_when_resolving_imports,defaultValueDescription:la.true_when_moduleResolution_is_node16_nodenext_or_bundler_otherwise_false},{name:"customConditions",type:"list",element:{name:"condition",type:"string"},affectsModuleResolution:!0,category:la.Modules,description:la.Conditions_to_set_in_addition_to_the_resolver_specific_defaults_when_resolving_imports},{name:"noUncheckedSideEffectImports",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:la.Modules,description:la.Check_side_effect_imports,defaultValueDescription:!1},{name:"sourceRoot",type:"string",affectsEmit:!0,affectsBuildInfo:!0,paramType:la.LOCATION,category:la.Emit,description:la.Specify_the_root_path_for_debuggers_to_find_the_reference_source_code},{name:"mapRoot",type:"string",affectsEmit:!0,affectsBuildInfo:!0,paramType:la.LOCATION,category:la.Emit,description:la.Specify_the_location_where_debugger_should_locate_map_files_instead_of_generated_locations},{name:"inlineSources",type:"boolean",affectsEmit:!0,affectsBuildInfo:!0,category:la.Emit,description:la.Include_source_code_in_the_sourcemaps_inside_the_emitted_JavaScript,defaultValueDescription:!1},{name:"experimentalDecorators",type:"boolean",affectsEmit:!0,affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:la.Language_and_Environment,description:la.Enable_experimental_support_for_legacy_experimental_decorators,defaultValueDescription:!1},{name:"emitDecoratorMetadata",type:"boolean",affectsSemanticDiagnostics:!0,affectsEmit:!0,affectsBuildInfo:!0,category:la.Language_and_Environment,description:la.Emit_design_type_metadata_for_decorated_declarations_in_source_files,defaultValueDescription:!1},{name:"jsxFactory",type:"string",category:la.Language_and_Environment,description:la.Specify_the_JSX_factory_function_used_when_targeting_React_JSX_emit_e_g_React_createElement_or_h,defaultValueDescription:"`React.createElement`"},{name:"jsxFragmentFactory",type:"string",category:la.Language_and_Environment,description:la.Specify_the_JSX_Fragment_reference_used_for_fragments_when_targeting_React_JSX_emit_e_g_React_Fragment_or_Fragment,defaultValueDescription:"React.Fragment"},{name:"jsxImportSource",type:"string",affectsSemanticDiagnostics:!0,affectsEmit:!0,affectsBuildInfo:!0,affectsModuleResolution:!0,affectsSourceFile:!0,category:la.Language_and_Environment,description:la.Specify_module_specifier_used_to_import_the_JSX_factory_functions_when_using_jsx_Colon_react_jsx_Asterisk,defaultValueDescription:"react"},{name:"resolveJsonModule",type:"boolean",affectsModuleResolution:!0,category:la.Modules,description:la.Enable_importing_json_files,defaultValueDescription:!1},{name:"allowArbitraryExtensions",type:"boolean",affectsProgramStructure:!0,category:la.Modules,description:la.Enable_importing_files_with_any_extension_provided_a_declaration_file_is_present,defaultValueDescription:!1},{name:"out",type:"string",affectsEmit:!0,affectsBuildInfo:!0,affectsDeclarationPath:!0,isFilePath:!1,category:la.Backwards_Compatibility,paramType:la.FILE,transpileOptionValue:void 0,description:la.Deprecated_setting_Use_outFile_instead},{name:"reactNamespace",type:"string",affectsEmit:!0,affectsBuildInfo:!0,category:la.Language_and_Environment,description:la.Specify_the_object_invoked_for_createElement_This_only_applies_when_targeting_react_JSX_emit,defaultValueDescription:"`React`"},{name:"skipDefaultLibCheck",type:"boolean",affectsBuildInfo:!0,category:la.Completeness,description:la.Skip_type_checking_d_ts_files_that_are_included_with_TypeScript,defaultValueDescription:!1},{name:"charset",type:"string",category:la.Backwards_Compatibility,description:la.No_longer_supported_In_early_versions_manually_set_the_text_encoding_for_reading_files,defaultValueDescription:"utf8"},{name:"emitBOM",type:"boolean",affectsEmit:!0,affectsBuildInfo:!0,category:la.Emit,description:la.Emit_a_UTF_8_Byte_Order_Mark_BOM_in_the_beginning_of_output_files,defaultValueDescription:!1},{name:"newLine",type:new Map(Object.entries({crlf:0,lf:1})),affectsEmit:!0,affectsBuildInfo:!0,paramType:la.NEWLINE,category:la.Emit,description:la.Set_the_newline_character_for_emitting_files,defaultValueDescription:"lf"},{name:"noErrorTruncation",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:la.Output_Formatting,description:la.Disable_truncating_types_in_error_messages,defaultValueDescription:!1},{name:"noLib",type:"boolean",category:la.Language_and_Environment,affectsProgramStructure:!0,description:la.Disable_including_any_library_files_including_the_default_lib_d_ts,transpileOptionValue:!0,defaultValueDescription:!1},{name:"noResolve",type:"boolean",affectsModuleResolution:!0,category:la.Modules,description:la.Disallow_import_s_require_s_or_reference_s_from_expanding_the_number_of_files_TypeScript_should_add_to_a_project,transpileOptionValue:!0,defaultValueDescription:!1},{name:"stripInternal",type:"boolean",affectsEmit:!0,affectsBuildInfo:!0,category:la.Emit,description:la.Disable_emitting_declarations_that_have_internal_in_their_JSDoc_comments,defaultValueDescription:!1},{name:"disableSizeLimit",type:"boolean",affectsProgramStructure:!0,category:la.Editor_Support,description:la.Remove_the_20mb_cap_on_total_source_code_size_for_JavaScript_files_in_the_TypeScript_language_server,defaultValueDescription:!1},{name:"disableSourceOfProjectReferenceRedirect",type:"boolean",isTSConfigOnly:!0,category:la.Projects,description:la.Disable_preferring_source_files_instead_of_declaration_files_when_referencing_composite_projects,defaultValueDescription:!1},{name:"disableSolutionSearching",type:"boolean",isTSConfigOnly:!0,category:la.Projects,description:la.Opt_a_project_out_of_multi_project_reference_checking_when_editing,defaultValueDescription:!1},{name:"disableReferencedProjectLoad",type:"boolean",isTSConfigOnly:!0,category:la.Projects,description:la.Reduce_the_number_of_projects_loaded_automatically_by_TypeScript,defaultValueDescription:!1},{name:"noImplicitUseStrict",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:la.Backwards_Compatibility,description:la.Disable_adding_use_strict_directives_in_emitted_JavaScript_files,defaultValueDescription:!1},{name:"noEmitHelpers",type:"boolean",affectsEmit:!0,affectsBuildInfo:!0,category:la.Emit,description:la.Disable_generating_custom_helper_functions_like_extends_in_compiled_output,defaultValueDescription:!1},{name:"noEmitOnError",type:"boolean",affectsEmit:!0,affectsBuildInfo:!0,category:la.Emit,transpileOptionValue:void 0,description:la.Disable_emitting_files_if_any_type_checking_errors_are_reported,defaultValueDescription:!1},{name:"preserveConstEnums",type:"boolean",affectsEmit:!0,affectsBuildInfo:!0,category:la.Emit,description:la.Disable_erasing_const_enum_declarations_in_generated_code,defaultValueDescription:!1},{name:"declarationDir",type:"string",affectsEmit:!0,affectsBuildInfo:!0,affectsDeclarationPath:!0,isFilePath:!0,paramType:la.DIRECTORY,category:la.Emit,transpileOptionValue:void 0,description:la.Specify_the_output_directory_for_generated_declaration_files},{name:"skipLibCheck",type:"boolean",affectsBuildInfo:!0,category:la.Completeness,description:la.Skip_type_checking_all_d_ts_files,defaultValueDescription:!1},{name:"allowUnusedLabels",type:"boolean",affectsBindDiagnostics:!0,affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:la.Type_Checking,description:la.Disable_error_reporting_for_unused_labels,defaultValueDescription:void 0},{name:"allowUnreachableCode",type:"boolean",affectsBindDiagnostics:!0,affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:la.Type_Checking,description:la.Disable_error_reporting_for_unreachable_code,defaultValueDescription:void 0},{name:"suppressExcessPropertyErrors",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:la.Backwards_Compatibility,description:la.Disable_reporting_of_excess_property_errors_during_the_creation_of_object_literals,defaultValueDescription:!1},{name:"suppressImplicitAnyIndexErrors",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:la.Backwards_Compatibility,description:la.Suppress_noImplicitAny_errors_when_indexing_objects_that_lack_index_signatures,defaultValueDescription:!1},{name:"forceConsistentCasingInFileNames",type:"boolean",affectsModuleResolution:!0,category:la.Interop_Constraints,description:la.Ensure_that_casing_is_correct_in_imports,defaultValueDescription:!0},{name:"maxNodeModuleJsDepth",type:"number",affectsModuleResolution:!0,category:la.JavaScript_Support,description:la.Specify_the_maximum_folder_depth_used_for_checking_JavaScript_files_from_node_modules_Only_applicable_with_allowJs,defaultValueDescription:0},{name:"noStrictGenericChecks",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:la.Backwards_Compatibility,description:la.Disable_strict_checking_of_generic_signatures_in_function_types,defaultValueDescription:!1},{name:"useDefineForClassFields",type:"boolean",affectsSemanticDiagnostics:!0,affectsEmit:!0,affectsBuildInfo:!0,category:la.Language_and_Environment,description:la.Emit_ECMAScript_standard_compliant_class_fields,defaultValueDescription:la.true_for_ES2022_and_above_including_ESNext},{name:"preserveValueImports",type:"boolean",affectsEmit:!0,affectsBuildInfo:!0,category:la.Backwards_Compatibility,description:la.Preserve_unused_imported_values_in_the_JavaScript_output_that_would_otherwise_be_removed,defaultValueDescription:!1},{name:"keyofStringsOnly",type:"boolean",category:la.Backwards_Compatibility,description:la.Make_keyof_only_return_strings_instead_of_string_numbers_or_symbols_Legacy_option,defaultValueDescription:!1},{name:"plugins",type:"list",isTSConfigOnly:!0,element:{name:"plugin",type:"object"},description:la.Specify_a_list_of_language_service_plugins_to_include,category:la.Editor_Support},{name:"moduleDetection",type:new Map(Object.entries({auto:2,legacy:1,force:3})),affectsSourceFile:!0,affectsModuleResolution:!0,description:la.Control_what_method_is_used_to_detect_module_format_JS_files,category:la.Language_and_Environment,defaultValueDescription:la.auto_Colon_Treat_files_with_imports_exports_import_meta_jsx_with_jsx_Colon_react_jsx_or_esm_format_with_module_Colon_node16_as_modules},{name:"ignoreDeprecations",type:"string",defaultValueDescription:void 0}],mO=[...uO,...fO],gO=mO.filter((e=>!!e.affectsSemanticDiagnostics)),hO=mO.filter((e=>!!e.affectsEmit)),yO=mO.filter((e=>!!e.affectsDeclarationPath)),vO=mO.filter((e=>!!e.affectsModuleResolution)),bO=mO.filter((e=>!!e.affectsSourceFile||!!e.affectsBindDiagnostics)),xO=mO.filter((e=>!!e.affectsProgramStructure)),kO=mO.filter((e=>De(e,"transpileOptionValue"))),SO=mO.filter((e=>e.allowConfigDirTemplateSubstitution||!e.isCommandLineOnly&&e.isFilePath)),TO=_O.filter((e=>e.allowConfigDirTemplateSubstitution||!e.isCommandLineOnly&&e.isFilePath)),CO=mO.filter((function(e){return!Ze(e.type)})),wO={name:"build",type:"boolean",shortName:"b",showInSimplifiedHelpView:!0,category:la.Command_line_Options,description:la.Build_one_or_more_projects_and_their_dependencies_if_out_of_date,defaultValueDescription:!1},NO=[wO,{name:"verbose",shortName:"v",category:la.Command_line_Options,description:la.Enable_verbose_logging,type:"boolean",defaultValueDescription:!1},{name:"dry",shortName:"d",category:la.Command_line_Options,description:la.Show_what_would_be_built_or_deleted_if_specified_with_clean,type:"boolean",defaultValueDescription:!1},{name:"force",shortName:"f",category:la.Command_line_Options,description:la.Build_all_projects_including_those_that_appear_to_be_up_to_date,type:"boolean",defaultValueDescription:!1},{name:"clean",category:la.Command_line_Options,description:la.Delete_the_outputs_of_all_projects,type:"boolean",defaultValueDescription:!1},{name:"stopBuildOnErrors",category:la.Command_line_Options,description:la.Skip_building_downstream_projects_on_error_in_upstream_project,type:"boolean",defaultValueDescription:!1}],DO=[...uO,...NO],FO=[{name:"enable",type:"boolean",defaultValueDescription:!1},{name:"include",type:"list",element:{name:"include",type:"string"}},{name:"exclude",type:"list",element:{name:"exclude",type:"string"}},{name:"disableFilenameBasedTypeAcquisition",type:"boolean",defaultValueDescription:!1}];function EO(e){const t=new Map,n=new Map;return d(e,(e=>{t.set(e.name.toLowerCase(),e),e.shortName&&n.set(e.shortName,e.name)})),{optionsNameMap:t,shortOptionNames:n}}function PO(){return rO||(rO=EO(mO))}var AO={diagnostic:la.Compiler_option_0_may_only_be_used_with_build,getOptionsNameMap:HO},IO={module:1,target:3,strict:!0,esModuleInterop:!0,forceConsistentCasingInFileNames:!0,skipLibCheck:!0};function OO(e){return LO(e,Xx)}function LO(e,t){const n=Oe(e.type.keys()),r=(e.deprecatedKeys?n.filter((t=>!e.deprecatedKeys.has(t))):n).map((e=>`'${e}'`)).join(", ");return t(la.Argument_for_0_option_must_be_Colon_1,`--${e.name}`,r)}function jO(e,t,n){return fj(e,(t??"").trim(),n)}function RO(e,t="",n){if(Gt(t=t.trim(),"-"))return;if("listOrElement"===e.type&&!t.includes(","))return pj(e,t,n);if(""===t)return[];const r=t.split(",");switch(e.element.type){case"number":return B(r,(t=>pj(e.element,parseInt(t),n)));case"string":return B(r,(t=>pj(e.element,t||"",n)));case"boolean":case"object":return un.fail(`List of ${e.element.type} is not yet supported.`);default:return B(r,(t=>jO(e.element,t,n)))}}function MO(e){return e.name}function BO(e,t,n,r,i){var o;const a=null==(o=t.alternateMode)?void 0:o.getOptionsNameMap().optionsNameMap.get(e.toLowerCase());if(a)return uj(i,r,a!==wO?t.alternateMode.diagnostic:la.Option_build_must_be_the_first_command_line_argument,e);const s=Lt(e,t.optionDeclarations,MO);return s?uj(i,r,t.unknownDidYouMeanDiagnostic,n||e,s.name):uj(i,r,t.unknownOptionDiagnostic,n||e)}function JO(e,t,n){const r={};let i;const o=[],a=[];return s(t),{options:r,watchOptions:i,fileNames:o,errors:a};function s(t){let n=0;for(;nso.readFile(e)));if(!Ze(t))return void a.push(t);const r=[];let i=0;for(;;){for(;i=t.length)break;const n=i;if(34===t.charCodeAt(n)){for(i++;i32;)i++;r.push(t.substring(n,i))}}s(r)}}function zO(e,t,n,r,i,o){if(r.isTSConfigOnly){const n=e[t];"null"===n?(i[r.name]=void 0,t++):"boolean"===r.type?"false"===n?(i[r.name]=pj(r,!1,o),t++):("true"===n&&t++,o.push(Xx(la.Option_0_can_only_be_specified_in_tsconfig_json_file_or_set_to_false_or_null_on_command_line,r.name))):(o.push(Xx(la.Option_0_can_only_be_specified_in_tsconfig_json_file_or_set_to_null_on_command_line,r.name)),n&&!Gt(n,"-")&&t++)}else if(e[t]||"boolean"===r.type||o.push(Xx(n.optionTypeMismatchDiagnostic,r.name,xL(r))),"null"!==e[t])switch(r.type){case"number":i[r.name]=pj(r,parseInt(e[t]),o),t++;break;case"boolean":const n=e[t];i[r.name]=pj(r,"false"!==n,o),"false"!==n&&"true"!==n||t++;break;case"string":i[r.name]=pj(r,e[t]||"",o),t++;break;case"list":const a=RO(r,e[t],o);i[r.name]=a||[],a&&t++;break;case"listOrElement":un.fail("listOrElement not supported here");break;default:i[r.name]=jO(r,e[t],o),t++}else i[r.name]=void 0,t++;return t}var qO,UO={alternateMode:AO,getOptionsNameMap:PO,optionDeclarations:mO,unknownOptionDiagnostic:la.Unknown_compiler_option_0,unknownDidYouMeanDiagnostic:la.Unknown_compiler_option_0_Did_you_mean_1,optionTypeMismatchDiagnostic:la.Compiler_option_0_expects_an_argument};function VO(e,t){return JO(UO,e,t)}function WO(e,t){return $O(PO,e,t)}function $O(e,t,n=!1){t=t.toLowerCase();const{optionsNameMap:r,shortOptionNames:i}=e();if(n){const e=i.get(t);void 0!==e&&(t=e)}return r.get(t)}function HO(){return qO||(qO=EO(DO))}var KO={alternateMode:{diagnostic:la.Compiler_option_0_may_not_be_used_with_build,getOptionsNameMap:PO},getOptionsNameMap:HO,optionDeclarations:DO,unknownOptionDiagnostic:la.Unknown_build_option_0,unknownDidYouMeanDiagnostic:la.Unknown_build_option_0_Did_you_mean_1,optionTypeMismatchDiagnostic:la.Build_option_0_requires_a_value_of_type_1};function GO(e){const{options:t,watchOptions:n,fileNames:r,errors:i}=JO(KO,e),o=t;return 0===r.length&&r.push("."),o.clean&&o.force&&i.push(Xx(la.Options_0_and_1_cannot_be_combined,"clean","force")),o.clean&&o.verbose&&i.push(Xx(la.Options_0_and_1_cannot_be_combined,"clean","verbose")),o.clean&&o.watch&&i.push(Xx(la.Options_0_and_1_cannot_be_combined,"clean","watch")),o.watch&&o.dry&&i.push(Xx(la.Options_0_and_1_cannot_be_combined,"watch","dry")),{buildOptions:o,watchOptions:n,projects:r,errors:i}}function XO(e,...t){return nt(Xx(e,...t).messageText,Ze)}function QO(e,t,n,r,i,o){const a=tL(e,(e=>n.readFile(e)));if(!Ze(a))return void n.onUnRecoverableConfigFileDiagnostic(a);const s=RI(e,a),c=n.getCurrentDirectory();return s.path=qo(e,c,Wt(n.useCaseSensitiveFileNames)),s.resolvedPath=s.path,s.originalFileName=s.fileName,RL(s,n,Bo(Do(e),c),t,Bo(e,c),void 0,o,r,i)}function YO(e,t){const n=tL(e,t);return Ze(n)?ZO(e,n):{config:{},error:n}}function ZO(e,t){const n=RI(e,t);return{config:yL(n,n.parseDiagnostics,void 0),error:n.parseDiagnostics.length?n.parseDiagnostics[0]:void 0}}function eL(e,t){const n=tL(e,t);return Ze(n)?RI(e,n):{fileName:e,parseDiagnostics:[n]}}function tL(e,t){let n;try{n=t(e)}catch(t){return Xx(la.Cannot_read_file_0_Colon_1,e,t.message)}return void 0===n?Xx(la.Cannot_read_file_0,e):n}function nL(e){return Re(e,MO)}var rL,iL={optionDeclarations:FO,unknownOptionDiagnostic:la.Unknown_type_acquisition_option_0,unknownDidYouMeanDiagnostic:la.Unknown_type_acquisition_option_0_Did_you_mean_1};function oL(){return rL||(rL=EO(_O))}var aL,sL,cL,lL={getOptionsNameMap:oL,optionDeclarations:_O,unknownOptionDiagnostic:la.Unknown_watch_option_0,unknownDidYouMeanDiagnostic:la.Unknown_watch_option_0_Did_you_mean_1,optionTypeMismatchDiagnostic:la.Watch_option_0_requires_a_value_of_type_1};function _L(){return aL||(aL=nL(mO))}function uL(){return sL||(sL=nL(_O))}function dL(){return cL||(cL=nL(FO))}var pL,fL={name:"extends",type:"listOrElement",element:{name:"extends",type:"string"},category:la.File_Management,disallowNullOrUndefined:!0},mL={name:"compilerOptions",type:"object",elementOptions:_L(),extraKeyDiagnostics:UO},gL={name:"watchOptions",type:"object",elementOptions:uL(),extraKeyDiagnostics:lL},hL={name:"typeAcquisition",type:"object",elementOptions:dL(),extraKeyDiagnostics:iL};function yL(e,t,n){var r;const i=null==(r=e.statements[0])?void 0:r.expression;if(i&&210!==i.kind){if(t.push(Mp(e,i,la.The_root_value_of_a_0_file_must_be_an_object,"jsconfig.json"===Fo(e.fileName)?"jsconfig.json":"tsconfig.json")),WD(i)){const r=b(i.elements,$D);if(r)return bL(e,r,t,!0,n)}return{}}return bL(e,i,t,!0,n)}function vL(e,t){var n;return bL(e,null==(n=e.statements[0])?void 0:n.expression,t,!0,void 0)}function bL(e,t,n,r,i){return t?function t(a,s){switch(a.kind){case 112:return!0;case 97:return!1;case 106:return null;case 11:return o(a)||n.push(Mp(e,a,la.String_literal_with_double_quotes_expected)),a.text;case 9:return Number(a.text);case 224:if(41!==a.operator||9!==a.operand.kind)break;return-Number(a.operand.text);case 210:return function(a,s){var c;const l=r?{}:void 0;for(const _ of a.properties){if(303!==_.kind){n.push(Mp(e,_,la.Property_assignment_expected));continue}_.questionToken&&n.push(Mp(e,_.questionToken,la.The_0_modifier_can_only_be_used_in_TypeScript_files,"?")),o(_.name)||n.push(Mp(e,_.name,la.String_literal_with_double_quotes_expected));const a=Ap(_.name)?void 0:Op(_.name),u=a&&fc(a),d=u?null==(c=null==s?void 0:s.elementOptions)?void 0:c.get(u):void 0,p=t(_.initializer,d);void 0!==u&&(r&&(l[u]=p),null==i||i.onPropertySet(u,p,_,s,d))}return l}(a,s);case 209:return function(e,n){if(r)return N(e.map((e=>t(e,n))),(e=>void 0!==e));e.forEach((e=>t(e,n)))}(a.elements,s&&s.element)}s?n.push(Mp(e,a,la.Compiler_option_0_requires_a_value_of_type_1,s.name,xL(s))):n.push(Mp(e,a,la.Property_value_can_only_be_string_literal_numeric_literal_true_false_null_object_literal_or_array_literal))}(t,null==i?void 0:i.rootOptions):r?{}:void 0;function o(t){return TN(t)&&zm(t,e)}}function xL(e){return"listOrElement"===e.type?`${xL(e.element)} or Array`:"list"===e.type?"Array":Ze(e.type)?e.type:"string"}function kL(e,t){return!!e&&(BL(t)?!e.disallowNullOrUndefined:"list"===e.type?Qe(t):"listOrElement"===e.type?Qe(t)||kL(e.element,t):typeof t===(Ze(e.type)?e.type:"string"))}function SL(e,t,n){var r,i,o;const a=Wt(n.useCaseSensitiveFileNames),s=E(N(e.fileNames,(null==(i=null==(r=e.options.configFile)?void 0:r.configFileSpecs)?void 0:i.validatedIncludeSpecs)?function(e,t,n,r){if(!t)return ot;const i=pS(e,n,t,r.useCaseSensitiveFileNames,r.getCurrentDirectory()),o=i.excludePattern&&fS(i.excludePattern,r.useCaseSensitiveFileNames),a=i.includeFilePattern&&fS(i.includeFilePattern,r.useCaseSensitiveFileNames);return a?o?e=>!(a.test(e)&&!o.test(e)):e=>!a.test(e):o?e=>o.test(e):ot}(t,e.options.configFile.configFileSpecs.validatedIncludeSpecs,e.options.configFile.configFileSpecs.validatedExcludeSpecs,n):ot),(e=>ia(Bo(t,n.getCurrentDirectory()),Bo(e,n.getCurrentDirectory()),a))),c={configFilePath:Bo(t,n.getCurrentDirectory()),useCaseSensitiveFileNames:n.useCaseSensitiveFileNames},l=FL(e.options,c),_=e.watchOptions&&EL(e.watchOptions,oL()),d={compilerOptions:{...CL(l),showConfig:void 0,configFile:void 0,configFilePath:void 0,help:void 0,init:void 0,listFiles:void 0,listEmittedFiles:void 0,project:void 0,build:void 0,version:void 0},watchOptions:_&&CL(_),references:E(e.projectReferences,(e=>({...e,path:e.originalPath?e.originalPath:"",originalPath:void 0}))),files:u(s)?s:void 0,...(null==(o=e.options.configFile)?void 0:o.configFileSpecs)?{include:wL(e.options.configFile.configFileSpecs.validatedIncludeSpecs),exclude:e.options.configFile.configFileSpecs.validatedExcludeSpecs}:{},compileOnSave:!!e.compileOnSave||void 0},p=new Set(l.keys()),f={};for(const t in mk)!p.has(t)&&TL(t,p)&&mk[t].computeValue(e.options)!==mk[t].computeValue({})&&(f[t]=mk[t].computeValue(e.options));return Le(d.compilerOptions,CL(FL(f,c))),d}function TL(e,t){const n=new Set;return function e(r){var i;return!!vx(n,r)&&$(null==(i=mk[r])?void 0:i.dependencies,(n=>t.has(n)||e(n)))}(e)}function CL(e){return Object.fromEntries(e)}function wL(e){if(u(e)){if(1!==u(e))return e;if(e[0]!==zL)return e}}function NL(e){switch(e.type){case"string":case"number":case"boolean":case"object":return;case"list":case"listOrElement":return NL(e.element);default:return e.type}}function DL(e,t){return td(t,((t,n)=>{if(t===e)return n}))}function FL(e,t){return EL(e,PO(),t)}function EL(e,{optionsNameMap:t},n){const r=new Map,i=n&&Wt(n.useCaseSensitiveFileNames);for(const o in e)if(De(e,o)){if(t.has(o)&&(t.get(o).category===la.Command_line_Options||t.get(o).category===la.Output_Formatting))continue;const a=e[o],s=t.get(o.toLowerCase());if(s){un.assert("listOrElement"!==s.type);const e=NL(s);e?"list"===s.type?r.set(o,a.map((t=>DL(t,e)))):r.set(o,DL(a,e)):n&&s.isFilePath?r.set(o,ia(n.configFilePath,Bo(a,Do(n.configFilePath)),i)):n&&"list"===s.type&&s.element.isFilePath?r.set(o,a.map((e=>ia(n.configFilePath,Bo(e,Do(n.configFilePath)),i)))):r.set(o,a)}}return r}function PL(e,t){const n=AL(e);return function(){const e=[],r=Array(3).join(" ");return fO.forEach((t=>{if(!n.has(t.name))return;const i=n.get(t.name),o=Ij(t);i!==o?e.push(`${r}${t.name}: ${i}`):De(IO,t.name)&&e.push(`${r}${t.name}: ${o}`)})),e.join(t)+t}()}function AL(e){return FL(Ue(e,IO))}function IL(e,t,n){const r=AL(e);return function(){const e=new Map;e.set(la.Projects,[]),e.set(la.Language_and_Environment,[]),e.set(la.Modules,[]),e.set(la.JavaScript_Support,[]),e.set(la.Emit,[]),e.set(la.Interop_Constraints,[]),e.set(la.Type_Checking,[]),e.set(la.Completeness,[]);for(const t of mO)if(o(t)){let n=e.get(t.category);n||e.set(t.category,n=[]),n.push(t)}let a=0,s=0;const c=[];e.forEach(((e,t)=>{0!==c.length&&c.push({value:""}),c.push({value:`/* ${Ux(t)} */`});for(const t of e){let e;e=r.has(t.name)?`"${t.name}": ${JSON.stringify(r.get(t.name))}${(s+=1)===r.size?"":","}`:`// "${t.name}": ${JSON.stringify(Ij(t))},`,c.push({value:e,description:`/* ${t.description&&Ux(t.description)||t.name} */`}),a=Math.max(e.length,a)}}));const l=i(2),_=[];_.push("{"),_.push(`${l}"compilerOptions": {`),_.push(`${l}${l}/* ${Ux(la.Visit_https_Colon_Slash_Slashaka_ms_Slashtsconfig_to_read_more_about_this_file)} */`),_.push("");for(const e of c){const{value:t,description:n=""}=e;_.push(t&&`${l}${l}${t}${n&&i(a-t.length+2)+n}`)}if(t.length){_.push(`${l}},`),_.push(`${l}"files": [`);for(let e=0;e"object"==typeof e),"object"),n=h(y("files"));if(n){const r="no-prop"===e||Qe(e)&&0===e.length,i=De(d,"extends");if(0===n.length&&r&&!i)if(t){const e=a||"tsconfig.json",n=la.The_files_list_in_config_file_0_is_empty,r=$f(t,"files",(e=>e.initializer)),i=uj(t,r,n,e);_.push(i)}else x(la.The_files_list_in_config_file_0_is_empty,a||"tsconfig.json")}let r=h(y("include"));const i=y("exclude");let o,s,c,l,u=!1,f=h(i);if("no-prop"===i){const e=p.outDir,t=p.declarationDir;(e||t)&&(f=N([e,t],(e=>!!e)))}void 0===n&&void 0===r&&(r=[zL],u=!0),r&&(o=Tj(r,_,!0,t,"include"),c=KL(o,m)||o),f&&(s=Tj(f,_,!1,t,"exclude"),l=KL(s,m)||s);const g=N(n,Ze);return{filesSpecs:n,includeSpecs:r,excludeSpecs:f,validatedFilesSpec:KL(g,m)||g,validatedIncludeSpecs:c,validatedExcludeSpecs:l,validatedFilesSpecBeforeSubstitution:g,validatedIncludeSpecsBeforeSubstitution:o,validatedExcludeSpecsBeforeSubstitution:s,isDefaultIncludeSpec:u}}();return t&&(t.configFileSpecs=g),ML(p,t),{options:p,watchOptions:f,fileNames:function(e){const t=vj(g,e,p,n,c);return QL(t,ZL(d),s)&&_.push(XL(g,a)),t}(m),projectReferences:function(e){let t;const n=b("references",(e=>"object"==typeof e),"object");if(Qe(n))for(const r of n)"string"!=typeof r.path?x(la.Compiler_option_0_requires_a_value_of_type_1,"reference.path","string"):(t||(t=[])).push({path:Bo(r.path,e),originalPath:r.path,prepend:r.prepend,circular:r.circular});return t}(m),typeAcquisition:u.typeAcquisition||cj(),raw:d,errors:_,wildcardDirectories:wj(g,m,n.useCaseSensitiveFileNames),compileOnSave:!!d.compileOnSave};function h(e){return Qe(e)?e:void 0}function y(e){return b(e,Ze,"string")}function b(e,n,r){if(De(d,e)&&!BL(d[e])){if(Qe(d[e])){const i=d[e];return t||v(i,n)||_.push(Xx(la.Compiler_option_0_requires_a_value_of_type_1,e,r)),i}return x(la.Compiler_option_0_requires_a_value_of_type_1,e,"Array"),"not-array"}return"no-prop"}function x(e,...n){t||_.push(Xx(e,...n))}}function UL(e,t){return VL(e,TO,t)}function VL(e,t,n){if(!e)return e;let r;for(const r of t)if(void 0!==e[r.name]){const t=e[r.name];switch(r.type){case"string":un.assert(r.isFilePath),$L(t)&&i(r,HL(t,n));break;case"list":un.assert(r.element.isFilePath);const e=KL(t,n);e&&i(r,e);break;case"object":un.assert("paths"===r.name);const o=GL(t,n);o&&i(r,o);break;default:un.fail("option type not supported")}}return r||e;function i(t,n){(r??(r=Le({},e)))[t.name]=n}}var WL="${configDir}";function $L(e){return Ze(e)&&Gt(e,WL,!0)}function HL(e,t){return Bo(e.replace(WL,"./"),t)}function KL(e,t){if(!e)return e;let n;return e.forEach(((r,i)=>{$L(r)&&((n??(n=e.slice()))[i]=HL(r,t))})),n}function GL(e,t){let n;return Ee(e).forEach((r=>{if(!Qe(e[r]))return;const i=KL(e[r],t);i&&((n??(n=Le({},e)))[r]=i)})),n}function XL({includeSpecs:e,excludeSpecs:t},n){return Xx(la.No_inputs_were_found_in_config_file_0_Specified_include_paths_were_1_and_exclude_paths_were_2,n||"tsconfig.json",JSON.stringify(e||[]),JSON.stringify(t||[]))}function QL(e,t,n){return 0===e.length&&t&&(!n||0===n.length)}function YL(e){return!e.fileNames.length&&De(e.raw,"references")}function ZL(e){return!De(e,"files")&&!De(e,"references")}function ej(e,t,n,r,i){const o=r.length;return QL(e,i)?r.push(XL(n,t)):D(r,(e=>!function(e){return e.code===la.No_inputs_were_found_in_config_file_0_Specified_include_paths_were_1_and_exclude_paths_were_2.code}(e))),o!==r.length}function tj(e,t,n,r,i,o,a,s){var c;const l=Bo(i||"",r=Oo(r));if(o.includes(l))return a.push(Xx(la.Circularity_detected_while_resolving_configuration_Colon_0,[...o,l].join(" -> "))),{raw:e||vL(t,a)};const _=e?function(e,t,n,r,i){De(e,"excludes")&&i.push(Xx(la.Unknown_option_excludes_Did_you_mean_exclude));const o=sj(e.compilerOptions,n,i,r),a=lj(e.typeAcquisition,n,i,r),s=function(e,t,n){return _j(uL(),e,t,void 0,lL,n)}(e.watchOptions,n,i);e.compileOnSave=function(e,t,n){if(!De(e,iO.name))return!1;const r=dj(iO,e.compileOnSave,t,n);return"boolean"==typeof r&&r}(e,n,i);return{raw:e,options:o,watchOptions:s,typeAcquisition:a,extendedConfigPath:e.extends||""===e.extends?nj(e.extends,t,n,r,i):void 0}}(e,n,r,i,a):function(e,t,n,r,i){const o=aj(r);let a,s,c,l;const _=(void 0===pL&&(pL={name:void 0,type:"object",elementOptions:nL([mL,gL,hL,fL,{name:"references",type:"list",element:{name:"references",type:"object"},category:la.Projects},{name:"files",type:"list",element:{name:"files",type:"string"},category:la.File_Management},{name:"include",type:"list",element:{name:"include",type:"string"},category:la.File_Management,defaultValueDescription:la.if_files_is_specified_otherwise_Asterisk_Asterisk_Slash_Asterisk},{name:"exclude",type:"list",element:{name:"exclude",type:"string"},category:la.File_Management,defaultValueDescription:la.node_modules_bower_components_jspm_packages_plus_the_value_of_outDir_if_one_is_specified},iO])}),pL),u=yL(e,i,{rootOptions:_,onPropertySet:function(u,d,p,f,m){if(m&&m!==fL&&(d=dj(m,d,n,i,p,p.initializer,e)),null==f?void 0:f.name)if(m){let e;f===mL?e=o:f===gL?e=s??(s={}):f===hL?e=a??(a=cj(r)):un.fail("Unknown option"),e[m.name]=d}else u&&(null==f?void 0:f.extraKeyDiagnostics)&&(f.elementOptions?i.push(BO(u,f.extraKeyDiagnostics,void 0,p.name,e)):i.push(Mp(e,p.name,f.extraKeyDiagnostics.unknownOptionDiagnostic,u)));else f===_&&(m===fL?c=nj(d,t,n,r,i,p,p.initializer,e):m||("excludes"===u&&i.push(Mp(e,p.name,la.Unknown_option_excludes_Did_you_mean_exclude)),b(fO,(e=>e.name===u))&&(l=ie(l,p.name))))}});return a||(a=cj(r)),l&&u&&void 0===u.compilerOptions&&i.push(Mp(e,l[0],la._0_should_be_set_inside_the_compilerOptions_object_of_the_config_json_file,Op(l[0]))),{raw:u,options:o,watchOptions:s,typeAcquisition:a,extendedConfigPath:c}}(t,n,r,i,a);if((null==(c=_.options)?void 0:c.paths)&&(_.options.pathsBasePath=r),_.extendedConfigPath){o=o.concat([l]);const e={options:{}};Ze(_.extendedConfigPath)?u(e,_.extendedConfigPath):_.extendedConfigPath.forEach((t=>u(e,t))),e.include&&(_.raw.include=e.include),e.exclude&&(_.raw.exclude=e.exclude),e.files&&(_.raw.files=e.files),void 0===_.raw.compileOnSave&&e.compileOnSave&&(_.raw.compileOnSave=e.compileOnSave),t&&e.extendedSourceFiles&&(t.extendedSourceFiles=Oe(e.extendedSourceFiles.keys())),_.options=Le(e.options,_.options),_.watchOptions=_.watchOptions&&e.watchOptions?d(e,_.watchOptions):_.watchOptions||e.watchOptions}return _;function u(e,i){const c=function(e,t,n,r,i,o,a){const s=n.useCaseSensitiveFileNames?t:_t(t);let c,l,_;if(o&&(c=o.get(s))?({extendedResult:l,extendedConfig:_}=c):(l=eL(t,(e=>n.readFile(e))),l.parseDiagnostics.length||(_=tj(void 0,l,n,Do(t),Fo(t),r,i,o)),o&&o.set(s,{extendedResult:l,extendedConfig:_})),e&&((a.extendedSourceFiles??(a.extendedSourceFiles=new Set)).add(l.fileName),l.extendedSourceFiles))for(const e of l.extendedSourceFiles)a.extendedSourceFiles.add(e);if(!l.parseDiagnostics.length)return _;i.push(...l.parseDiagnostics)}(t,i,n,o,a,s,e);if(c&&c.options){const t=c.raw;let o;const a=a=>{_.raw[a]||t[a]&&(e[a]=E(t[a],(e=>$L(e)||go(e)?e:jo(o||(o=ra(Do(i),r,Wt(n.useCaseSensitiveFileNames))),e))))};a("include"),a("exclude"),a("files"),void 0!==t.compileOnSave&&(e.compileOnSave=t.compileOnSave),Le(e.options,c.options),e.watchOptions=e.watchOptions&&c.watchOptions?d(e,c.watchOptions):e.watchOptions||c.watchOptions}}function d(e,t){return e.watchOptionsCopied?Le(e.watchOptions,t):(e.watchOptionsCopied=!0,Le({},e.watchOptions,t))}}function nj(e,t,n,r,i,o,a,s){let c;const l=r?JL(r,n):n;if(Ze(e))c=rj(e,t,l,i,a,s);else if(Qe(e)){c=[];for(let r=0;ruj(i,r,e,...t))))}function mj(e,t,n,r,i,o,a){return N(E(t,((t,s)=>dj(e.element,t,n,r,i,null==o?void 0:o.elements[s],a))),(t=>!!e.listPreserveFalsyValues||!!t))}var gj,hj=/(?:^|\/)\*\*\/?$/,yj=/^[^*?]*(?=\/[^/]*[*?])/;function vj(e,t,n,r,i=l){t=Jo(t);const o=Wt(r.useCaseSensitiveFileNames),a=new Map,s=new Map,c=new Map,{validatedFilesSpec:_,validatedIncludeSpecs:u,validatedExcludeSpecs:d}=e,p=ES(n,i),f=PS(n,p);if(_)for(const e of _){const n=Bo(e,t);a.set(o(n),n)}let m;if(u&&u.length>0)for(const e of r.readDirectory(t,I(f),d,u,void 0)){if(ko(e,".json")){if(!m){const e=E(cS(u.filter((e=>Rt(e,".json"))),t,"files"),(e=>`^${e}$`));m=e?e.map((e=>fS(e,r.useCaseSensitiveFileNames))):l}if(-1!==k(m,(t=>t.test(e)))){const t=o(e);a.has(t)||c.has(t)||c.set(t,e)}continue}if(Fj(e,a,s,p,o))continue;Ej(e,s,p,o);const n=o(e);a.has(n)||s.has(n)||s.set(n,e)}const g=Oe(a.values()),h=Oe(s.values());return g.concat(h,Oe(c.values()))}function bj(e,t,n,r,i){const{validatedFilesSpec:o,validatedIncludeSpecs:a,validatedExcludeSpecs:s}=t;if(!u(a)||!u(s))return!1;n=Jo(n);const c=Wt(r);if(o)for(const t of o)if(c(Bo(t,n))===e)return!1;return Sj(e,s,r,i,n)}function xj(e){const t=Gt(e,"**/")?0:e.indexOf("/**/");return-1!==t&&(Rt(e,"/..")?e.length:e.lastIndexOf("/../"))>t}function kj(e,t,n,r){return Sj(e,N(t,(e=>!xj(e))),n,r)}function Sj(e,t,n,r,i){const o=sS(t,jo(Jo(r),i),"exclude"),a=o&&fS(o,n);return!!a&&(!!a.test(e)||!xo(e)&&a.test(Vo(e)))}function Tj(e,t,n,r,i){return e.filter((e=>{if(!Ze(e))return!1;const o=Cj(e,n);return void 0!==o&&t.push(function(e,t){const n=Wf(r,i,t);return uj(r,n,e,t)}(...o)),void 0===o}))}function Cj(e,t){return un.assert("string"==typeof e),t&&hj.test(e)?[la.File_specification_cannot_end_in_a_recursive_directory_wildcard_Asterisk_Asterisk_Colon_0,e]:xj(e)?[la.File_specification_cannot_contain_a_parent_directory_that_appears_after_a_recursive_directory_wildcard_Asterisk_Asterisk_Colon_0,e]:void 0}function wj({validatedIncludeSpecs:e,validatedExcludeSpecs:t},n,r){const i=sS(t,n,"exclude"),o=i&&new RegExp(i,r?"":"i"),a={},s=new Map;if(void 0!==e){const t=[];for(const i of e){const e=Jo(jo(n,i));if(o&&o.test(e))continue;const c=Dj(e,r);if(c){const{key:e,path:n,flags:r}=c,i=s.get(e),o=void 0!==i?a[i]:void 0;(void 0===o||oSo(e,t)?t:void 0));if(!o)return!1;for(const r of o){if(ko(e,r)&&(".ts"!==r||!ko(e,".d.ts")))return!1;const o=i(VS(e,r));if(t.has(o)||n.has(o)){if(".d.ts"===r&&(ko(e,".js")||ko(e,".jsx")))continue;return!0}}return!1}function Ej(e,t,n,r){const i=d(n,(t=>So(e,t)?t:void 0));if(i)for(let n=i.length-1;n>=0;n--){const o=i[n];if(ko(e,o))return;const a=r(VS(e,o));t.delete(a)}}function Pj(e){const t={};for(const n in e)if(De(e,n)){const r=WO(n);void 0!==r&&(t[n]=Aj(e[n],r))}return t}function Aj(e,t){if(void 0===e)return e;switch(t.type){case"object":case"string":return"";case"number":return"number"==typeof e?e:"";case"boolean":return"boolean"==typeof e?e:"";case"listOrElement":if(!Qe(e))return Aj(e,t.element);case"list":const n=t.element;return Qe(e)?B(e,(e=>Aj(e,n))):"";default:return td(t.type,((t,n)=>{if(t===e)return n}))}}function Ij(e){switch(e.type){case"number":return 1;case"boolean":return!0;case"string":const t=e.defaultValueDescription;return e.isFilePath?`./${t&&"string"==typeof t?t:""}`:"";case"list":return[];case"listOrElement":return Ij(e.element);case"object":return{};default:const n=me(e.type.keys());return void 0!==n?n:un.fail("Expected 'option.type' to have entries.")}}function Oj(e,t,...n){e.trace(Gx(t,...n))}function Lj(e,t){return!!e.traceResolution&&void 0!==t.trace}function jj(e,t,n){let r;if(t&&e){const i=e.contents.packageJsonContent;"string"==typeof i.name&&"string"==typeof i.version&&(r={name:i.name,subModuleName:t.path.slice(e.packageDirectory.length+lo.length),version:i.version,peerDependencies:KR(e,n)})}return t&&{path:t.path,extension:t.ext,packageId:r,resolvedUsingTsExtension:t.resolvedUsingTsExtension}}function Rj(e){return jj(void 0,e,void 0)}function Mj(e){if(e)return un.assert(void 0===e.packageId),{path:e.path,ext:e.extension,resolvedUsingTsExtension:e.resolvedUsingTsExtension}}function Bj(e){const t=[];return 1&e&&t.push("TypeScript"),2&e&&t.push("JavaScript"),4&e&&t.push("Declaration"),8&e&&t.push("JSON"),t.join(", ")}function Jj(e){if(e)return un.assert(GS(e.extension)),{fileName:e.path,packageId:e.packageId}}function zj(e,t,n,r,i,o,a,s,c){if(!a.resultFromCache&&!a.compilerOptions.preserveSymlinks&&t&&n&&!t.originalPath&&!Ts(e)){const{resolvedFileName:e,originalPath:n}=Qj(t.path,a.host,a.traceEnabled);n&&(t={...t,path:e,originalPath:n})}return qj(t,n,r,i,o,a.resultFromCache,s,c)}function qj(e,t,n,r,i,o,a,s){return o?(null==a?void 0:a.isReadonly)?{...o,failedLookupLocations:Wj(o.failedLookupLocations,n),affectingLocations:Wj(o.affectingLocations,r),resolutionDiagnostics:Wj(o.resolutionDiagnostics,i)}:(o.failedLookupLocations=Vj(o.failedLookupLocations,n),o.affectingLocations=Vj(o.affectingLocations,r),o.resolutionDiagnostics=Vj(o.resolutionDiagnostics,i),o):{resolvedModule:e&&{resolvedFileName:e.path,originalPath:!0===e.originalPath?void 0:e.originalPath,extension:e.extension,isExternalLibraryImport:t,packageId:e.packageId,resolvedUsingTsExtension:!!e.resolvedUsingTsExtension},failedLookupLocations:Uj(n),affectingLocations:Uj(r),resolutionDiagnostics:Uj(i),alternateResult:s}}function Uj(e){return e.length?e:void 0}function Vj(e,t){return(null==t?void 0:t.length)?(null==e?void 0:e.length)?(e.push(...t),e):t:e}function Wj(e,t){return(null==e?void 0:e.length)?t.length?[...e,...t]:e.slice():Uj(t)}function $j(e,t,n,r){if(!De(e,t))return void(r.traceEnabled&&Oj(r.host,la.package_json_does_not_have_a_0_field,t));const i=e[t];if(typeof i===n&&null!==i)return i;r.traceEnabled&&Oj(r.host,la.Expected_type_of_0_field_in_package_json_to_be_1_got_2,t,n,null===i?"null":typeof i)}function Hj(e,t,n,r){const i=$j(e,t,"string",r);if(void 0===i)return;if(!i)return void(r.traceEnabled&&Oj(r.host,la.package_json_had_a_falsy_0_field,t));const o=Jo(jo(n,i));return r.traceEnabled&&Oj(r.host,la.package_json_has_0_field_1_that_references_2,t,i,o),o}function Kj(e){gj||(gj=new bn(s));for(const t in e){if(!De(e,t))continue;const n=kn.tryParse(t);if(void 0!==n&&n.test(gj))return{version:t,paths:e[t]}}}function Gj(e,t){if(e.typeRoots)return e.typeRoots;let n;return e.configFilePath?n=Do(e.configFilePath):t.getCurrentDirectory&&(n=t.getCurrentDirectory()),void 0!==n?function(e){let t;return aa(Jo(e),(e=>{const n=jo(e,Xj);(t??(t=[])).push(n)})),t}(n):void 0}var Xj=jo("node_modules","@types");function Qj(e,t,n){const r=FR(e,t,n),i=function(e,t,n){return 0===Yo(e,t,!("function"==typeof n.useCaseSensitiveFileNames?n.useCaseSensitiveFileNames():n.useCaseSensitiveFileNames))}(e,r,t);return{resolvedFileName:i?e:r,originalPath:i?void 0:e}}function Yj(e,t,n){return jo(e,Rt(e,"/node_modules/@types")||Rt(e,"/node_modules/@types/")?dM(t,n):t)}function Zj(e,t,n,r,i,o,a){un.assert("string"==typeof e,"Non-string value passed to `ts.resolveTypeReferenceDirective`, likely by a wrapping package working with an outdated `resolveTypeReferenceDirectives` signature. This is probably not a problem in TS itself.");const s=Lj(n,r);i&&(n=i.commandLine.options);const c=t?Do(t):void 0;let l=c?null==o?void 0:o.getFromDirectoryCache(e,a,c,i):void 0;if(l||!c||Ts(e)||(l=null==o?void 0:o.getFromNonRelativeNameCache(e,a,c,i)),l)return s&&(Oj(r,la.Resolving_type_reference_directive_0_containing_file_1,e,t),i&&Oj(r,la.Using_compiler_options_of_project_reference_redirect_0,i.sourceFile.fileName),Oj(r,la.Resolution_for_type_reference_directive_0_was_found_in_cache_from_location_1,e,c),k(l)),l;const _=Gj(n,r);s&&(void 0===t?void 0===_?Oj(r,la.Resolving_type_reference_directive_0_containing_file_not_set_root_directory_not_set,e):Oj(r,la.Resolving_type_reference_directive_0_containing_file_not_set_root_directory_1,e,_):void 0===_?Oj(r,la.Resolving_type_reference_directive_0_containing_file_1_root_directory_not_set,e,t):Oj(r,la.Resolving_type_reference_directive_0_containing_file_1_root_directory_2,e,t,_),i&&Oj(r,la.Using_compiler_options_of_project_reference_redirect_0,i.sourceFile.fileName));const u=[],d=[];let p=eR(n);void 0!==a&&(p|=30);const m=vk(n);99===a&&3<=m&&m<=99&&(p|=32);const g=8&p?tR(n,a):[],h=[],y={compilerOptions:n,host:r,traceEnabled:s,failedLookupLocations:u,affectingLocations:d,packageJsonInfoCache:o,features:p,conditions:g,requestContainingDirectory:c,reportDiagnostic:e=>{h.push(e)},isConfigLookup:!1,candidateIsFromPackageJsonField:!1,resolvedPackageDirectory:!1};let v,b=function(){if(_&&_.length)return s&&Oj(r,la.Resolving_with_primary_search_path_0,_.join(", ")),f(_,(t=>{const i=Yj(t,e,y),o=Nb(t,r);if(!o&&s&&Oj(r,la.Directory_0_does_not_exist_skipping_all_lookups_in_it,t),n.typeRoots){const e=jR(4,i,!o,y);if(e){const t=IR(e.path);return Jj(jj(t?GR(t,!1,y):void 0,e,y))}}return Jj(qR(4,i,!o,y))}));s&&Oj(r,la.Root_directory_cannot_be_determined_skipping_primary_search_paths)}(),x=!0;if(b||(b=function(){const i=t&&Do(t);if(void 0!==i){let o;if(n.typeRoots&&Rt(t,sV))s&&Oj(r,la.Resolving_type_reference_directive_for_program_that_specifies_custom_typeRoots_skipping_lookup_in_node_modules_folder);else if(s&&Oj(r,la.Looking_up_in_node_modules_folder_initial_location_0,i),Ts(e)){const{path:t}=DR(i,e);o=ER(4,t,!1,y,!0)}else{const t=oM(4,e,i,y,void 0,void 0);o=t&&t.value}return Jj(o)}s&&Oj(r,la.Containing_file_is_not_specified_and_root_directory_cannot_be_determined_skipping_lookup_in_node_modules_folder)}(),x=!1),b){const{fileName:e,packageId:t}=b;let i,o=e;n.preserveSymlinks||({resolvedFileName:o,originalPath:i}=Qj(e,r,s)),v={primary:x,resolvedFileName:o,originalPath:i,packageId:t,isExternalLibraryImport:AR(e)}}return l={resolvedTypeReferenceDirective:v,failedLookupLocations:Uj(u),affectingLocations:Uj(d),resolutionDiagnostics:Uj(h)},c&&o&&!o.isReadonly&&(o.getOrCreateCacheForDirectory(c,i).set(e,a,l),Ts(e)||o.getOrCreateCacheForNonRelativeName(e,a,i).set(c,l)),s&&k(l),l;function k(t){var n;(null==(n=t.resolvedTypeReferenceDirective)?void 0:n.resolvedFileName)?t.resolvedTypeReferenceDirective.packageId?Oj(r,la.Type_reference_directive_0_was_successfully_resolved_to_1_with_Package_ID_2_primary_Colon_3,e,t.resolvedTypeReferenceDirective.resolvedFileName,pd(t.resolvedTypeReferenceDirective.packageId),t.resolvedTypeReferenceDirective.primary):Oj(r,la.Type_reference_directive_0_was_successfully_resolved_to_1_primary_Colon_2,e,t.resolvedTypeReferenceDirective.resolvedFileName,t.resolvedTypeReferenceDirective.primary):Oj(r,la.Type_reference_directive_0_was_not_resolved,e)}}function eR(e){let t=0;switch(vk(e)){case 3:case 99:case 100:t=30}return e.resolvePackageJsonExports?t|=8:!1===e.resolvePackageJsonExports&&(t&=-9),e.resolvePackageJsonImports?t|=2:!1===e.resolvePackageJsonImports&&(t&=-3),t}function tR(e,t){const n=vk(e);if(void 0===t)if(100===n)t=99;else if(2===n)return[];const r=99===t?["import"]:["require"];return e.noDtsResolution||r.push("types"),100!==n&&r.push("node"),K(r,e.customConditions)}function nR(e,t,n,r,i){const o=WR(null==i?void 0:i.getPackageJsonInfoCache(),r,n);return sM(r,t,(t=>{if("node_modules"!==Fo(t)){const n=jo(t,"node_modules");return GR(jo(n,e),!1,o)}}))}function rR(e,t){if(e.types)return e.types;const n=[];if(t.directoryExists&&t.getDirectories){const r=Gj(e,t);if(r)for(const e of r)if(t.directoryExists(e))for(const r of t.getDirectories(e)){const i=Jo(r),o=jo(e,i,"package.json");if(!t.fileExists(o)||null!==Cb(o,t).typings){const e=Fo(i);46!==e.charCodeAt(0)&&n.push(e)}}}return n}function iR(e){return!!(null==e?void 0:e.contents)}function oR(e){return!!e&&!e.contents}function aR(e){var t;if(null===e||"object"!=typeof e)return""+e;if(Qe(e))return`[${null==(t=e.map((e=>aR(e))))?void 0:t.join(",")}]`;let n="{";for(const t in e)De(e,t)&&(n+=`${t}: ${aR(e[t])}`);return n+"}"}function sR(e,t){return t.map((t=>aR(Vk(e,t)))).join("|")+`|${e.pathsBasePath}`}function cR(e,t){const n=new Map,r=new Map;let i=new Map;return e&&n.set(e,i),{getMapOfCacheRedirects:function(e){return e?o(e.commandLine.options,!1):i},getOrCreateMapOfCacheRedirects:function(e){return e?o(e.commandLine.options,!0):i},update:function(t){e!==t&&(e?i=o(t,!0):n.set(t,i),e=t)},clear:function(){const o=e&&t.get(e);i.clear(),n.clear(),t.clear(),r.clear(),e&&(o&&t.set(e,o),n.set(e,i))},getOwnMap:()=>i};function o(t,o){let s=n.get(t);if(s)return s;const c=a(t);if(s=r.get(c),!s){if(e){const t=a(e);t===c?s=i:r.has(t)||r.set(t,i)}o&&(s??(s=new Map)),s&&r.set(c,s)}return s&&n.set(t,s),s}function a(e){let n=t.get(e);return n||t.set(e,n=sR(e,vO)),n}}function lR(e,t,n,r){const i=e.getOrCreateMapOfCacheRedirects(t);let o=i.get(n);return o||(o=r(),i.set(n,o)),o}function _R(e,t){return void 0===t?e:`${t}|${e}`}function uR(){const e=new Map,t=new Map,n={get:(t,n)=>e.get(r(t,n)),set:(t,i,o)=>(e.set(r(t,i),o),n),delete:(t,i)=>(e.delete(r(t,i)),n),has:(t,n)=>e.has(r(t,n)),forEach:n=>e.forEach(((e,r)=>{const[i,o]=t.get(r);return n(e,i,o)})),size:()=>e.size};return n;function r(e,n){const r=_R(e,n);return t.set(r,[e,n]),r}}function dR(e){return e.resolvedModule&&(e.resolvedModule.originalPath||e.resolvedModule.resolvedFileName)}function pR(e){return e.resolvedTypeReferenceDirective&&(e.resolvedTypeReferenceDirective.originalPath||e.resolvedTypeReferenceDirective.resolvedFileName)}function fR(e,t,n,r,i,o){o??(o=new Map);const a=function(e,t,n,r){const i=cR(n,r);return{getFromDirectoryCache:function(n,r,o,a){var s,c;const l=qo(o,e,t);return null==(c=null==(s=i.getMapOfCacheRedirects(a))?void 0:s.get(l))?void 0:c.get(n,r)},getOrCreateCacheForDirectory:function(n,r){const o=qo(n,e,t);return lR(i,r,o,(()=>uR()))},clear:function(){i.clear()},update:function(e){i.update(e)},directoryToModuleNameMap:i}}(e,t,n,o),s=function(e,t,n,r,i){const o=cR(n,i);return{getFromNonRelativeNameCache:function(e,t,n,r){var i,a;return un.assert(!Ts(e)),null==(a=null==(i=o.getMapOfCacheRedirects(r))?void 0:i.get(_R(e,t)))?void 0:a.get(n)},getOrCreateCacheForNonRelativeName:function(e,t,n){return un.assert(!Ts(e)),lR(o,n,_R(e,t),a)},clear:function(){o.clear()},update:function(e){o.update(e)}};function a(){const n=new Map;return{get:function(r){return n.get(qo(r,e,t))},set:function(i,o){const a=qo(i,e,t);if(n.has(a))return;n.set(a,o);const s=r(o),c=s&&function(n,r){const i=qo(Do(r),e,t);let o=0;const a=Math.min(n.length,i.length);for(;or,clearAllExceptPackageJsonInfoCache:c,optionsToRedirectsKey:o};function c(){a.clear(),s.clear()}}function mR(e,t,n,r,i){const o=fR(e,t,n,r,dR,i);return o.getOrCreateCacheForModuleName=(e,t,n)=>o.getOrCreateCacheForNonRelativeName(e,t,n),o}function gR(e,t,n,r,i){return fR(e,t,n,r,pR,i)}function hR(e){return{moduleResolution:2,traceResolution:e.traceResolution}}function yR(e,t,n,r,i){return bR(e,t,hR(n),r,i)}function vR(e,t,n,r){const i=Do(t);return n.getFromDirectoryCache(e,r,i,void 0)}function bR(e,t,n,r,i,o,a){const s=Lj(n,r);o&&(n=o.commandLine.options),s&&(Oj(r,la.Resolving_module_0_from_1,e,t),o&&Oj(r,la.Using_compiler_options_of_project_reference_redirect_0,o.sourceFile.fileName));const c=Do(t);let l=null==i?void 0:i.getFromDirectoryCache(e,a,c,o);if(l)s&&Oj(r,la.Resolution_for_module_0_was_found_in_cache_from_location_1,e,c);else{let _=n.moduleResolution;switch(void 0===_?(_=vk(n),s&&Oj(r,la.Module_resolution_kind_is_not_specified_using_0,li[_])):s&&Oj(r,la.Explicitly_specified_module_resolution_kind_Colon_0,li[_]),_){case 3:case 99:l=function(e,t,n,r,i,o,a){return function(e,t,n,r,i,o,a,s,c){const l=Do(n),_=99===s?32:0;let u=r.noDtsResolution?3:7;return wk(r)&&(u|=8),NR(e|_,t,l,r,i,o,u,!1,a,c)}(30,e,t,n,r,i,o,a)}(e,t,n,r,i,o,a);break;case 2:l=CR(e,t,n,r,i,o,a?tR(n,a):void 0);break;case 1:l=yM(e,t,n,r,i,o);break;case 100:l=TR(e,t,n,r,i,o,a?tR(n,a):void 0);break;default:return un.fail(`Unexpected moduleResolution: ${_}`)}i&&!i.isReadonly&&(i.getOrCreateCacheForDirectory(c,o).set(e,a,l),Ts(e)||i.getOrCreateCacheForNonRelativeName(e,a,o).set(c,l))}return s&&(l.resolvedModule?l.resolvedModule.packageId?Oj(r,la.Module_name_0_was_successfully_resolved_to_1_with_Package_ID_2,e,l.resolvedModule.resolvedFileName,pd(l.resolvedModule.packageId)):Oj(r,la.Module_name_0_was_successfully_resolved_to_1,e,l.resolvedModule.resolvedFileName):Oj(r,la.Module_name_0_was_not_resolved,e)),l}function xR(e,t,n,r,i){const o=function(e,t,n,r){const{baseUrl:i,paths:o}=r.compilerOptions;if(o&&!vo(t))return r.traceEnabled&&(i&&Oj(r.host,la.baseUrl_option_is_set_to_0_using_this_value_to_resolve_non_relative_module_name_1,i,t),Oj(r.host,la.paths_option_is_specified_looking_for_a_pattern_to_match_module_name_0,t)),_M(e,t,Hy(r.compilerOptions,r.host),o,HS(o),n,!1,r)}(e,t,r,i);return o?o.value:Ts(t)?function(e,t,n,r,i){if(!i.compilerOptions.rootDirs)return;i.traceEnabled&&Oj(i.host,la.rootDirs_option_is_set_using_it_to_resolve_relative_module_name_0,t);const o=Jo(jo(n,t));let a,s;for(const e of i.compilerOptions.rootDirs){let t=Jo(e);Rt(t,lo)||(t+=lo);const n=Gt(o,t)&&(void 0===s||s.length(e[e.None=0]="None",e[e.Imports=2]="Imports",e[e.SelfName=4]="SelfName",e[e.Exports=8]="Exports",e[e.ExportsPatternTrailers=16]="ExportsPatternTrailers",e[e.AllFeatures=30]="AllFeatures",e[e.Node16Default=30]="Node16Default",e[e.NodeNextDefault=30]="NodeNextDefault",e[e.BundlerDefault=30]="BundlerDefault",e[e.EsmMode=32]="EsmMode",e))(SR||{});function TR(e,t,n,r,i,o,a){const s=Do(t);let c=n.noDtsResolution?3:7;return wk(n)&&(c|=8),NR(eR(n),e,s,n,r,i,c,!1,o,a)}function CR(e,t,n,r,i,o,a,s){let c;return s?c=8:n.noDtsResolution?(c=3,wk(n)&&(c|=8)):c=wk(n)?15:7,NR(a?30:0,e,Do(t),n,r,i,c,!!s,o,a)}function wR(e,t,n){return NR(30,e,Do(t),{moduleResolution:99},n,void 0,8,!0,void 0,void 0)}function NR(e,t,n,r,i,o,a,s,c,_){var d,p,f,m,g;const h=Lj(r,i),y=[],b=[],x=vk(r);_??(_=tR(r,100===x||2===x?void 0:32&e?99:1));const k=[],S={compilerOptions:r,host:i,traceEnabled:h,failedLookupLocations:y,affectingLocations:b,packageJsonInfoCache:o,features:e,conditions:_??l,requestContainingDirectory:n,reportDiagnostic:e=>{k.push(e)},isConfigLookup:s,candidateIsFromPackageJsonField:!1,resolvedPackageDirectory:!1};let C,w;if(h&&Rk(x)&&Oj(i,la.Resolving_in_0_mode_with_conditions_1,32&e?"ESM":"CJS",S.conditions.map((e=>`'${e}'`)).join(", ")),2===x){const e=5&a,t=-6&a;C=e&&N(e,S)||t&&N(t,S)||void 0}else C=N(a,S);if(S.resolvedPackageDirectory&&!s&&!Ts(t)){const t=(null==C?void 0:C.value)&&5&a&&!QR(5,C.value.resolved.extension);if((null==(d=null==C?void 0:C.value)?void 0:d.isExternalLibraryImport)&&t&&8&e&&(null==_?void 0:_.includes("import"))){SM(S,la.Resolution_of_non_relative_name_failed_trying_with_modern_Node_resolution_features_disabled_to_see_if_npm_library_needs_configuration_update);const e=N(5&a,{...S,features:-9&S.features,reportDiagnostic:rt});(null==(p=null==e?void 0:e.value)?void 0:p.isExternalLibraryImport)&&(w=e.value.resolved.path)}else if((!(null==C?void 0:C.value)||t)&&2===x){SM(S,la.Resolution_of_non_relative_name_failed_trying_with_moduleResolution_bundler_to_see_if_project_may_need_configuration_update);const e={...S.compilerOptions,moduleResolution:100},t=N(5&a,{...S,compilerOptions:e,features:30,conditions:tR(e),reportDiagnostic:rt});(null==(f=null==t?void 0:t.value)?void 0:f.isExternalLibraryImport)&&(w=t.value.resolved.path)}}return zj(t,null==(m=null==C?void 0:C.value)?void 0:m.resolved,null==(g=null==C?void 0:C.value)?void 0:g.isExternalLibraryImport,y,b,k,S,o,w);function N(r,a){const s=xR(r,t,n,((e,t,n,r)=>ER(e,t,n,r,!0)),a);if(s)return kM({resolved:s,isExternalLibraryImport:AR(s.path)});if(Ts(t)){const{path:e,parts:i}=DR(n,t),o=ER(r,e,!1,a,!0);return o&&kM({resolved:o,isExternalLibraryImport:T(i,"node_modules")})}{if(2&e&&Gt(t,"#")){const e=function(e,t,n,r,i,o){var a,s;if("#"===t||Gt(t,"#/"))return r.traceEnabled&&Oj(r.host,la.Invalid_import_specifier_0_has_no_possible_resolutions,t),kM(void 0);const c=Bo(n,null==(s=(a=r.host).getCurrentDirectory)?void 0:s.call(a)),l=$R(c,r);if(!l)return r.traceEnabled&&Oj(r.host,la.Directory_0_has_no_containing_package_json_scope_Imports_will_not_resolve,c),kM(void 0);if(!l.contents.packageJsonContent.imports)return r.traceEnabled&&Oj(r.host,la.package_json_scope_0_has_no_imports_defined,l.packageDirectory),kM(void 0);const _=nM(e,r,i,o,t,l.contents.packageJsonContent.imports,l,!0);return _||(r.traceEnabled&&Oj(r.host,la.Import_specifier_0_does_not_exist_in_package_json_scope_at_path_1,t,l.packageDirectory),kM(void 0))}(r,t,n,a,o,c);if(e)return e.value&&{value:{resolved:e.value,isExternalLibraryImport:!1}}}if(4&e){const e=function(e,t,n,r,i,o){var a,s;const c=$R(Bo(n,null==(s=(a=r.host).getCurrentDirectory)?void 0:s.call(a)),r);if(!c||!c.contents.packageJsonContent.exports)return;if("string"!=typeof c.contents.packageJsonContent.name)return;const l=Ao(t),_=Ao(c.contents.packageJsonContent.name);if(!v(_,((e,t)=>l[t]===e)))return;const d=l.slice(_.length),p=u(d)?`.${lo}${d.join(lo)}`:".";if(Pk(r.compilerOptions)&&!AR(n))return eM(c,e,p,r,i,o);const f=-6&e;return eM(c,5&e,p,r,i,o)||eM(c,f,p,r,i,o)}(r,t,n,a,o,c);if(e)return e.value&&{value:{resolved:e.value,isExternalLibraryImport:!1}}}if(t.includes(":"))return void(h&&Oj(i,la.Skipping_module_0_that_looks_like_an_absolute_URI_target_file_types_Colon_1,t,Bj(r)));h&&Oj(i,la.Loading_module_0_from_node_modules_folder_target_file_types_Colon_1,t,Bj(r));let s=oM(r,t,n,a,o,c);return 4&r&&(s??(s=vM(t,a))),s&&{value:s.value&&{resolved:s.value,isExternalLibraryImport:!0}}}}}function DR(e,t){const n=jo(e,t),r=Ao(n),i=ye(r);return{path:"."===i||".."===i?Vo(Jo(n)):Jo(n),parts:r}}function FR(e,t,n){if(!t.realpath)return e;const r=Jo(t.realpath(e));return n&&Oj(t,la.Resolving_real_path_for_0_result_1,e,r),r}function ER(e,t,n,r,i){if(r.traceEnabled&&Oj(r.host,la.Loading_module_as_file_Slash_folder_candidate_module_location_0_target_file_types_Colon_1,t,Bj(e)),!To(t)){if(!n){const e=Do(t);Nb(e,r.host)||(r.traceEnabled&&Oj(r.host,la.Directory_0_does_not_exist_skipping_all_lookups_in_it,e),n=!0)}const o=jR(e,t,n,r);if(o){const e=i?IR(o.path):void 0;return jj(e?GR(e,!1,r):void 0,o,r)}}if(n||Nb(t,r.host)||(r.traceEnabled&&Oj(r.host,la.Directory_0_does_not_exist_skipping_all_lookups_in_it,t),n=!0),!(32&r.features))return qR(e,t,n,r,i)}var PR="/node_modules/";function AR(e){return e.includes(PR)}function IR(e,t){const n=Jo(e),r=n.lastIndexOf(PR);if(-1===r)return;const i=r+PR.length;let o=OR(n,i,t);return 64===n.charCodeAt(i)&&(o=OR(n,o,t)),n.slice(0,o)}function OR(e,t,n){const r=e.indexOf(lo,t+1);return-1===r?n?e.length:t:r}function LR(e,t,n,r){return Rj(jR(e,t,n,r))}function jR(e,t,n,r){const i=RR(e,t,n,r);if(i)return i;if(!(32&r.features)){const i=BR(t,e,"",n,r);if(i)return i}}function RR(e,t,n,r){if(!Fo(t).includes("."))return;let i=zS(t);i===t&&(i=t.substring(0,t.lastIndexOf(".")));const o=t.substring(i.length);return r.traceEnabled&&Oj(r.host,la.File_name_0_has_a_1_extension_stripping_it,t,o),BR(i,e,o,n,r)}function MR(e,t,n,r,i){if(1&e&&So(t,DS)||4&e&&So(t,NS)){const e=JR(t,r,i),o=vb(t);return void 0!==e?{path:t,ext:o,resolvedUsingTsExtension:n?!Rt(n,o):void 0}:void 0}return i.isConfigLookup&&8===e&&ko(t,".json")?void 0!==JR(t,r,i)?{path:t,ext:".json",resolvedUsingTsExtension:void 0}:void 0:RR(e,t,r,i)}function BR(e,t,n,r,i){if(!r){const t=Do(e);t&&(r=!Nb(t,i.host))}switch(n){case".mjs":case".mts":case".d.mts":return 1&t&&o(".mts",".mts"===n||".d.mts"===n)||4&t&&o(".d.mts",".mts"===n||".d.mts"===n)||2&t&&o(".mjs")||void 0;case".cjs":case".cts":case".d.cts":return 1&t&&o(".cts",".cts"===n||".d.cts"===n)||4&t&&o(".d.cts",".cts"===n||".d.cts"===n)||2&t&&o(".cjs")||void 0;case".json":return 4&t&&o(".d.json.ts")||8&t&&o(".json")||void 0;case".tsx":case".jsx":return 1&t&&(o(".tsx",".tsx"===n)||o(".ts",".tsx"===n))||4&t&&o(".d.ts",".tsx"===n)||2&t&&(o(".jsx")||o(".js"))||void 0;case".ts":case".d.ts":case".js":case"":return 1&t&&(o(".ts",".ts"===n||".d.ts"===n)||o(".tsx",".ts"===n||".d.ts"===n))||4&t&&o(".d.ts",".ts"===n||".d.ts"===n)||2&t&&(o(".js")||o(".jsx"))||i.isConfigLookup&&o(".json")||void 0;default:return 4&t&&!$I(e+n)&&o(`.d${n}.ts`)||void 0}function o(t,n){const o=JR(e+t,r,i);return void 0===o?void 0:{path:o,ext:t,resolvedUsingTsExtension:!i.candidateIsFromPackageJsonField&&n}}}function JR(e,t,n){var r;if(!(null==(r=n.compilerOptions.moduleSuffixes)?void 0:r.length))return zR(e,t,n);const i=ZS(e)??"",o=i?US(e,i):e;return d(n.compilerOptions.moduleSuffixes,(e=>zR(o+e+i,t,n)))}function zR(e,t,n){var r;if(!t){if(n.host.fileExists(e))return n.traceEnabled&&Oj(n.host,la.File_0_exists_use_it_as_a_name_resolution_result,e),e;n.traceEnabled&&Oj(n.host,la.File_0_does_not_exist,e)}null==(r=n.failedLookupLocations)||r.push(e)}function qR(e,t,n,r,i=!0){const o=i?GR(t,n,r):void 0;return jj(o,XR(e,t,n,r,o&&o.contents.packageJsonContent,o&&HR(o,r)),r)}function UR(e,t,n,r,i){if(!i&&void 0!==e.contents.resolvedEntrypoints)return e.contents.resolvedEntrypoints;let o;const a=5|(i?2:0),s=eR(t),c=WR(null==r?void 0:r.getPackageJsonInfoCache(),n,t);c.conditions=tR(t),c.requestContainingDirectory=e.packageDirectory;const l=XR(a,e.packageDirectory,!1,c,e.contents.packageJsonContent,HR(e,c));if(o=ie(o,null==l?void 0:l.path),8&s&&e.contents.packageJsonContent.exports){const r=Q([tR(t,99),tR(t,1)],te);for(const t of r){const r={...c,failedLookupLocations:[],conditions:t,host:n},i=VR(e,e.contents.packageJsonContent.exports,r,a);if(i)for(const e of i)o=le(o,e.path)}}return e.contents.resolvedEntrypoints=o||!1}function VR(e,t,n,r){let i;if(Qe(t))for(const e of t)o(e);else if("object"==typeof t&&null!==t&&ZR(t))for(const e in t)o(t[e]);else o(t);return i;function o(t){var a,s;if("string"==typeof t&&Gt(t,"./"))if(t.includes("*")&&n.host.readDirectory){if(t.indexOf("*")!==t.lastIndexOf("*"))return!1;n.host.readDirectory(e.packageDirectory,function(e){const t=[];return 1&e&&t.push(...DS),2&e&&t.push(...TS),4&e&&t.push(...NS),8&e&&t.push(".json"),t}(r),void 0,[Ho(_C(t,"**/*"),".*")]).forEach((e=>{i=le(i,{path:e,ext:Po(e),resolvedUsingTsExtension:void 0})}))}else{const o=Ao(t).slice(2);if(o.includes("..")||o.includes(".")||o.includes("node_modules"))return!1;const c=Bo(jo(e.packageDirectory,t),null==(s=(a=n.host).getCurrentDirectory)?void 0:s.call(a)),l=MR(r,c,t,!1,n);if(l)return i=le(i,l,((e,t)=>e.path===t.path)),!0}else if(Array.isArray(t)){for(const e of t)if(o(e))return!0}else if("object"==typeof t&&null!==t)return d(Ee(t),(e=>{if("default"===e||T(n.conditions,e)||iM(n.conditions,e))return o(t[e]),!0}))}}function WR(e,t,n){return{host:t,compilerOptions:n,traceEnabled:Lj(n,t),failedLookupLocations:void 0,affectingLocations:void 0,packageJsonInfoCache:e,features:0,conditions:l,requestContainingDirectory:void 0,reportDiagnostic:rt,isConfigLookup:!1,candidateIsFromPackageJsonField:!1,resolvedPackageDirectory:!1}}function $R(e,t){return sM(t.host,e,(e=>GR(e,!1,t)))}function HR(e,t){return void 0===e.contents.versionPaths&&(e.contents.versionPaths=function(e,t){const n=function(e,t){const n=$j(e,"typesVersions","object",t);if(void 0!==n)return t.traceEnabled&&Oj(t.host,la.package_json_has_a_typesVersions_field_with_version_specific_path_mappings),n}(e,t);if(void 0===n)return;if(t.traceEnabled)for(const e in n)De(n,e)&&!kn.tryParse(e)&&Oj(t.host,la.package_json_has_a_typesVersions_entry_0_that_is_not_a_valid_semver_range,e);const r=Kj(n);if(!r)return void(t.traceEnabled&&Oj(t.host,la.package_json_does_not_have_a_typesVersions_entry_that_matches_version_0,a));const{version:i,paths:o}=r;if("object"==typeof o)return r;t.traceEnabled&&Oj(t.host,la.Expected_type_of_0_field_in_package_json_to_be_1_got_2,`typesVersions['${i}']`,"object",typeof o)}(e.contents.packageJsonContent,t)||!1),e.contents.versionPaths||void 0}function KR(e,t){return void 0===e.contents.peerDependencies&&(e.contents.peerDependencies=function(e,t){const n=$j(e.contents.packageJsonContent,"peerDependencies","object",t);if(void 0===n)return;t.traceEnabled&&Oj(t.host,la.package_json_has_a_peerDependencies_field);const r=FR(e.packageDirectory,t.host,t.traceEnabled),i=r.substring(0,r.lastIndexOf("node_modules")+12)+lo;let o="";for(const e in n)if(De(n,e)){const n=GR(i+e,!1,t);if(n){const r=n.contents.packageJsonContent.version;o+=`+${e}@${r}`,t.traceEnabled&&Oj(t.host,la.Found_peerDependency_0_with_1_version,e,r)}else t.traceEnabled&&Oj(t.host,la.Failed_to_find_peerDependency_0,e)}return o}(e,t)||!1),e.contents.peerDependencies||void 0}function GR(e,t,n){var r,i,o,a,s,c;const{host:l,traceEnabled:_}=n,u=jo(e,"package.json");if(t)return void(null==(r=n.failedLookupLocations)||r.push(u));const d=null==(i=n.packageJsonInfoCache)?void 0:i.getPackageJsonInfo(u);if(void 0!==d)return iR(d)?(_&&Oj(l,la.File_0_exists_according_to_earlier_cached_lookups,u),null==(o=n.affectingLocations)||o.push(u),d.packageDirectory===e?d:{packageDirectory:e,contents:d.contents}):(d.directoryExists&&_&&Oj(l,la.File_0_does_not_exist_according_to_earlier_cached_lookups,u),void(null==(a=n.failedLookupLocations)||a.push(u)));const p=Nb(e,l);if(p&&l.fileExists(u)){const t=Cb(u,l);_&&Oj(l,la.Found_package_json_at_0,u);const r={packageDirectory:e,contents:{packageJsonContent:t,versionPaths:void 0,resolvedEntrypoints:void 0,peerDependencies:void 0}};return n.packageJsonInfoCache&&!n.packageJsonInfoCache.isReadonly&&n.packageJsonInfoCache.setPackageJsonInfo(u,r),null==(s=n.affectingLocations)||s.push(u),r}p&&_&&Oj(l,la.File_0_does_not_exist,u),n.packageJsonInfoCache&&!n.packageJsonInfoCache.isReadonly&&n.packageJsonInfoCache.setPackageJsonInfo(u,{packageDirectory:e,directoryExists:p}),null==(c=n.failedLookupLocations)||c.push(u)}function XR(e,t,n,r,i,o){let a;i&&(a=r.isConfigLookup?function(e,t,n){return Hj(e,"tsconfig",t,n)}(i,t,r):4&e&&function(e,t,n){return Hj(e,"typings",t,n)||Hj(e,"types",t,n)}(i,t,r)||7&e&&function(e,t,n){return Hj(e,"main",t,n)}(i,t,r)||void 0);const c=(e,t,n,r)=>{const o=MR(e,t,void 0,n,r);if(o)return Rj(o);const a=4===e?5:e,s=r.features,c=r.candidateIsFromPackageJsonField;r.candidateIsFromPackageJsonField=!0,"module"!==(null==i?void 0:i.type)&&(r.features&=-33);const l=ER(a,t,n,r,!1);return r.features=s,r.candidateIsFromPackageJsonField=c,l},l=a?!Nb(Do(a),r.host):void 0,_=n||!Nb(t,r.host),u=jo(t,r.isConfigLookup?"tsconfig":"index");if(o&&(!a||Zo(t,a))){const n=na(t,a||u,!1);r.traceEnabled&&Oj(r.host,la.package_json_has_a_typesVersions_entry_0_that_matches_compiler_version_1_looking_for_a_pattern_to_match_module_name_2,o.version,s,n);const i=HS(o.paths),d=_M(e,n,t,o.paths,i,c,l||_,r);if(d)return Mj(d.value)}return a&&Mj(c(e,a,l,r))||(32&r.features?void 0:jR(e,u,_,r))}function QR(e,t){return 2&e&&(".js"===t||".jsx"===t||".mjs"===t||".cjs"===t)||1&e&&(".ts"===t||".tsx"===t||".mts"===t||".cts"===t)||4&e&&(".d.ts"===t||".d.mts"===t||".d.cts"===t)||8&e&&".json"===t||!1}function YR(e){let t=e.indexOf(lo);return"@"===e[0]&&(t=e.indexOf(lo,t+1)),-1===t?{packageName:e,rest:""}:{packageName:e.slice(0,t),rest:e.slice(t+1)}}function ZR(e){return v(Ee(e),(e=>Gt(e,".")))}function eM(e,t,n,r,i,o){if(e.contents.packageJsonContent.exports){if("."===n){let a;if("string"==typeof e.contents.packageJsonContent.exports||Array.isArray(e.contents.packageJsonContent.exports)||"object"==typeof e.contents.packageJsonContent.exports&&!$(Ee(e.contents.packageJsonContent.exports),(e=>Gt(e,".")))?a=e.contents.packageJsonContent.exports:De(e.contents.packageJsonContent.exports,".")&&(a=e.contents.packageJsonContent.exports["."]),a)return rM(t,r,i,o,n,e,!1)(a,"",!1,".")}else if(ZR(e.contents.packageJsonContent.exports)){if("object"!=typeof e.contents.packageJsonContent.exports)return r.traceEnabled&&Oj(r.host,la.Export_specifier_0_does_not_exist_in_package_json_scope_at_path_1,n,e.packageDirectory),kM(void 0);const a=nM(t,r,i,o,n,e.contents.packageJsonContent.exports,e,!1);if(a)return a}return r.traceEnabled&&Oj(r.host,la.Export_specifier_0_does_not_exist_in_package_json_scope_at_path_1,n,e.packageDirectory),kM(void 0)}}function tM(e,t){const n=e.indexOf("*"),r=t.indexOf("*"),i=-1===n?e.length:n+1,o=-1===r?t.length:r+1;return i>o?-1:o>i||-1===n?1:-1===r||e.length>t.length?-1:t.length>e.length?1:0}function nM(e,t,n,r,i,o,a,s){const c=rM(e,t,n,r,i,a,s);if(!Rt(i,lo)&&!i.includes("*")&&De(o,i))return c(o[i],"",!1,i);const l=_e(N(Ee(o),(e=>function(e){const t=e.indexOf("*");return-1!==t&&t===e.lastIndexOf("*")}(e)||Rt(e,"/"))),tM);for(const e of l){if(16&t.features&&_(e,i)){const t=o[e],n=e.indexOf("*");return c(t,i.substring(e.substring(0,n).length,i.length-(e.length-1-n)),!0,e)}if(Rt(e,"*")&&Gt(i,e.substring(0,e.length-1)))return c(o[e],i.substring(e.length-1),!0,e);if(Gt(i,e))return c(o[e],i.substring(e.length),!1,e)}function _(e,t){if(Rt(e,"*"))return!1;const n=e.indexOf("*");return-1!==n&&Gt(t,e.substring(0,n))&&Rt(t,e.substring(n+1))}}function rM(e,t,n,r,i,o,a){return function s(c,l,_,d){if("string"==typeof c){if(!_&&l.length>0&&!Rt(c,"/"))return t.traceEnabled&&Oj(t.host,la.package_json_scope_0_has_invalid_type_for_target_of_specifier_1,o.packageDirectory,i),kM(void 0);if(!Gt(c,"./")){if(a&&!Gt(c,"../")&&!Gt(c,"/")&&!go(c)){const i=_?c.replace(/\*/g,l):c+l;SM(t,la.Using_0_subpath_1_with_target_2,"imports",d,i),SM(t,la.Resolving_module_0_from_1,i,o.packageDirectory+"/");const a=NR(t.features,i,o.packageDirectory+"/",t.compilerOptions,t.host,n,e,!1,r,t.conditions);return kM(a.resolvedModule?{path:a.resolvedModule.resolvedFileName,extension:a.resolvedModule.extension,packageId:a.resolvedModule.packageId,originalPath:a.resolvedModule.originalPath,resolvedUsingTsExtension:a.resolvedModule.resolvedUsingTsExtension}:void 0)}return t.traceEnabled&&Oj(t.host,la.package_json_scope_0_has_invalid_type_for_target_of_specifier_1,o.packageDirectory,i),kM(void 0)}const s=(vo(c)?Ao(c).slice(1):Ao(c)).slice(1);if(s.includes("..")||s.includes(".")||s.includes("node_modules"))return t.traceEnabled&&Oj(t.host,la.package_json_scope_0_has_invalid_type_for_target_of_specifier_1,o.packageDirectory,i),kM(void 0);const u=jo(o.packageDirectory,c),m=Ao(l);if(m.includes("..")||m.includes(".")||m.includes("node_modules"))return t.traceEnabled&&Oj(t.host,la.package_json_scope_0_has_invalid_type_for_target_of_specifier_1,o.packageDirectory,i),kM(void 0);t.traceEnabled&&Oj(t.host,la.Using_0_subpath_1_with_target_2,a?"imports":"exports",d,_?c.replace(/\*/g,l):c+l);const g=p(_?u.replace(/\*/g,l):u+l),h=function(n,r,i,a){var s,c,l,_;if(!t.isConfigLookup&&(t.compilerOptions.declarationDir||t.compilerOptions.outDir)&&!n.includes("/node_modules/")&&(!t.compilerOptions.configFile||Zo(o.packageDirectory,p(t.compilerOptions.configFile.fileName),!TM(t)))){const d=jy({useCaseSensitiveFileNames:()=>TM(t)}),f=[];if(t.compilerOptions.rootDir||t.compilerOptions.composite&&t.compilerOptions.configFilePath){const e=p(Uq(t.compilerOptions,(()=>[]),(null==(c=(s=t.host).getCurrentDirectory)?void 0:c.call(s))||"",d));f.push(e)}else if(t.requestContainingDirectory){const e=p(jo(t.requestContainingDirectory,"index.ts")),n=p(Uq(t.compilerOptions,(()=>[e,p(i)]),(null==(_=(l=t.host).getCurrentDirectory)?void 0:_.call(l))||"",d));f.push(n);let r=Vo(n);for(;r&&r.length>1;){const e=Ao(r);e.pop();const t=Io(e);f.unshift(t),r=Vo(t)}}f.length>1&&t.reportDiagnostic(Xx(a?la.The_project_root_is_ambiguous_but_is_required_to_resolve_import_map_entry_0_in_file_1_Supply_the_rootDir_compiler_option_to_disambiguate:la.The_project_root_is_ambiguous_but_is_required_to_resolve_export_map_entry_0_in_file_1_Supply_the_rootDir_compiler_option_to_disambiguate,""===r?".":r,i));for(const r of f){const i=u(r);for(const a of i)if(Zo(a,n,!TM(t))){const i=jo(r,n.slice(a.length+1)),s=[".mjs",".cjs",".js",".json",".d.mts",".d.cts",".d.ts"];for(const n of s)if(ko(i,n)){const r=Wy(i);for(const a of r){if(!QR(e,a))continue;const r=$o(i,a,n,!TM(t));if(t.host.fileExists(r))return kM(jj(o,MR(e,r,void 0,!1,t),t))}}}}}return;function u(e){var n,r;const i=t.compilerOptions.configFile?(null==(r=(n=t.host).getCurrentDirectory)?void 0:r.call(n))||"":e,o=[];return t.compilerOptions.declarationDir&&o.push(p(f(i,t.compilerOptions.declarationDir))),t.compilerOptions.outDir&&t.compilerOptions.outDir!==t.compilerOptions.declarationDir&&o.push(p(f(i,t.compilerOptions.outDir))),o}}(g,l,jo(o.packageDirectory,"package.json"),a);return h||kM(jj(o,MR(e,g,c,!1,t),t))}if("object"==typeof c&&null!==c){if(!Array.isArray(c)){SM(t,la.Entering_conditional_exports);for(const e of Ee(c))if("default"===e||t.conditions.includes(e)||iM(t.conditions,e)){SM(t,la.Matched_0_condition_1,a?"imports":"exports",e);const n=s(c[e],l,_,d);if(n)return SM(t,la.Resolved_under_condition_0,e),SM(t,la.Exiting_conditional_exports),n;SM(t,la.Failed_to_resolve_under_condition_0,e)}else SM(t,la.Saw_non_matching_condition_0,e);return void SM(t,la.Exiting_conditional_exports)}if(!u(c))return t.traceEnabled&&Oj(t.host,la.package_json_scope_0_has_invalid_type_for_target_of_specifier_1,o.packageDirectory,i),kM(void 0);for(const e of c){const t=s(e,l,_,d);if(t)return t}}else if(null===c)return t.traceEnabled&&Oj(t.host,la.package_json_scope_0_explicitly_maps_specifier_1_to_null,o.packageDirectory,i),kM(void 0);return t.traceEnabled&&Oj(t.host,la.package_json_scope_0_has_invalid_type_for_target_of_specifier_1,o.packageDirectory,i),kM(void 0);function p(e){var n,r;return void 0===e?e:Bo(e,null==(r=(n=t.host).getCurrentDirectory)?void 0:r.call(n))}function f(e,t){return Vo(jo(e,t))}}}function iM(e,t){if(!e.includes("types"))return!1;if(!Gt(t,"types@"))return!1;const n=kn.tryParse(t.substring(6));return!!n&&n.test(s)}function oM(e,t,n,r,i,o){return aM(e,t,n,r,!1,i,o)}function aM(e,t,n,r,i,o,a){const s=0===r.features?void 0:32&r.features?99:1,c=5&e,l=-6&e;if(c){SM(r,la.Searching_all_ancestor_node_modules_directories_for_preferred_extensions_Colon_0,Bj(c));const e=_(c);if(e)return e}if(l&&!i)return SM(r,la.Searching_all_ancestor_node_modules_directories_for_fallback_extensions_Colon_0,Bj(l)),_(l);function _(e){return sM(r.host,Oo(n),(n=>{if("node_modules"!==Fo(n)){return hM(o,t,s,n,a,r)||kM(cM(e,t,n,r,i,o,a))}}))}}function sM(e,t,n){var r;const i=null==(r=null==e?void 0:e.getGlobalTypingsCacheLocation)?void 0:r.call(e);return aa(t,(e=>{const t=n(e);return void 0!==t?t:e!==i&&void 0}))||void 0}function cM(e,t,n,r,i,o,a){const s=jo(n,"node_modules"),c=Nb(s,r.host);if(!c&&r.traceEnabled&&Oj(r.host,la.Directory_0_does_not_exist_skipping_all_lookups_in_it,s),!i){const n=lM(e,t,s,c,r,o,a);if(n)return n}if(4&e){const e=jo(s,"@types");let n=c;return c&&!Nb(e,r.host)&&(r.traceEnabled&&Oj(r.host,la.Directory_0_does_not_exist_skipping_all_lookups_in_it,e),n=!1),lM(4,dM(t,r),e,n,r,o,a)}}function lM(e,t,n,r,i,o,a){var c,_;const u=Jo(jo(n,t)),{packageName:d,rest:p}=YR(t),f=jo(n,d);let m,g=GR(u,!r,i);if(""!==p&&g&&(!(8&i.features)||!De((null==(c=m=GR(f,!r,i))?void 0:c.contents.packageJsonContent)??l,"exports"))){const t=jR(e,u,!r,i);if(t)return Rj(t);const n=XR(e,u,!r,i,g.contents.packageJsonContent,HR(g,i));return jj(g,n,i)}const h=(e,t,n,r)=>{let i=(p||!(32&r.features))&&jR(e,t,n,r)||XR(e,t,n,r,g&&g.contents.packageJsonContent,g&&HR(g,r));return!i&&g&&(void 0===g.contents.packageJsonContent.exports||null===g.contents.packageJsonContent.exports)&&32&r.features&&(i=jR(e,jo(t,"index.js"),n,r)),jj(g,i,r)};if(""!==p&&(g=m??GR(f,!r,i)),g&&(i.resolvedPackageDirectory=!0),g&&g.contents.packageJsonContent.exports&&8&i.features)return null==(_=eM(g,e,jo(".",p),i,o,a))?void 0:_.value;const y=""!==p&&g?HR(g,i):void 0;if(y){i.traceEnabled&&Oj(i.host,la.package_json_has_a_typesVersions_entry_0_that_matches_compiler_version_1_looking_for_a_pattern_to_match_module_name_2,y.version,s,p);const t=r&&Nb(f,i.host),n=HS(y.paths),o=_M(e,p,f,y.paths,n,h,!t,i);if(o)return o.value}return h(e,u,!r,i)}function _M(e,t,n,r,i,o,a,s){const c=nT(i,t);if(c){const i=Ze(c)?void 0:Ht(c,t),l=Ze(c)?c:$t(c);return s.traceEnabled&&Oj(s.host,la.Module_name_0_matched_pattern_1,t,l),{value:d(r[l],(t=>{const r=i?_C(t,i):t,c=Jo(jo(n,r));s.traceEnabled&&Oj(s.host,la.Trying_substitution_0_candidate_module_location_Colon_1,t,r);const l=ZS(t);if(void 0!==l){const e=JR(c,a,s);if(void 0!==e)return Rj({path:e,ext:l,resolvedUsingTsExtension:void 0})}return o(e,c,a||!Nb(Do(c),s.host),s)}))}}}var uM="__";function dM(e,t){const n=fM(e);return t.traceEnabled&&n!==e&&Oj(t.host,la.Scoped_package_detected_looking_in_0,n),n}function pM(e){return`@types/${fM(e)}`}function fM(e){if(Gt(e,"@")){const t=e.replace(lo,uM);if(t!==e)return t.slice(1)}return e}function mM(e){const t=Xt(e,"@types/");return t!==e?gM(t):e}function gM(e){return e.includes(uM)?"@"+e.replace(uM,lo):e}function hM(e,t,n,r,i,o){const a=e&&e.getFromNonRelativeNameCache(t,n,r,i);if(a)return o.traceEnabled&&Oj(o.host,la.Resolution_for_module_0_was_found_in_cache_from_location_1,t,r),o.resultFromCache=a,{value:a.resolvedModule&&{path:a.resolvedModule.resolvedFileName,originalPath:a.resolvedModule.originalPath||!0,extension:a.resolvedModule.extension,packageId:a.resolvedModule.packageId,resolvedUsingTsExtension:a.resolvedModule.resolvedUsingTsExtension}}}function yM(e,t,n,r,i,o){const a=Lj(n,r),s=[],c=[],l=Do(t),_=[],u={compilerOptions:n,host:r,traceEnabled:a,failedLookupLocations:s,affectingLocations:c,packageJsonInfoCache:i,features:0,conditions:[],requestContainingDirectory:l,reportDiagnostic:e=>{_.push(e)},isConfigLookup:!1,candidateIsFromPackageJsonField:!1,resolvedPackageDirectory:!1},d=p(5)||p(2|(n.resolveJsonModule?8:0));return zj(e,d&&d.value,(null==d?void 0:d.value)&&AR(d.value.path),s,c,_,u,i);function p(t){const n=xR(t,e,l,LR,u);if(n)return{value:n};if(Ts(e)){const n=Jo(jo(l,e));return kM(LR(t,n,!1,u))}{const n=sM(u.host,l,(n=>{const r=hM(i,e,void 0,n,o,u);if(r)return r;const a=Jo(jo(n,e));return kM(LR(t,a,!1,u))}));if(n)return n;if(5&t){let n=function(e,t,n){return aM(4,e,t,n,!0,void 0,void 0)}(e,l,u);return 4&t&&(n??(n=vM(e,u))),n}}}}function vM(e,t){if(t.compilerOptions.typeRoots)for(const n of t.compilerOptions.typeRoots){const r=Yj(n,e,t),i=Nb(n,t.host);!i&&t.traceEnabled&&Oj(t.host,la.Directory_0_does_not_exist_skipping_all_lookups_in_it,n);const o=jR(4,r,!i,t);if(o){const e=IR(o.path);return kM(jj(e?GR(e,!1,t):void 0,o,t))}const a=qR(4,r,!i,t);if(a)return kM(a)}}function bM(e,t){return gk(e)||!!t&&$I(t)}function xM(e,t,n,r,i,o){const a=Lj(n,r);a&&Oj(r,la.Auto_discovery_for_typings_is_enabled_in_project_0_Running_extra_resolution_pass_for_module_1_using_cache_location_2,t,e,i);const s=[],c=[],l=[],_={compilerOptions:n,host:r,traceEnabled:a,failedLookupLocations:s,affectingLocations:c,packageJsonInfoCache:o,features:0,conditions:[],requestContainingDirectory:void 0,reportDiagnostic:e=>{l.push(e)},isConfigLookup:!1,candidateIsFromPackageJsonField:!1,resolvedPackageDirectory:!1};return qj(cM(4,e,i,_,!1,void 0,void 0),!0,s,c,l,_.resultFromCache,void 0)}function kM(e){return void 0!==e?{value:e}:void 0}function SM(e,t,...n){e.traceEnabled&&Oj(e.host,t,...n)}function TM(e){return!e.host.useCaseSensitiveFileNames||("boolean"==typeof e.host.useCaseSensitiveFileNames?e.host.useCaseSensitiveFileNames:e.host.useCaseSensitiveFileNames())}var CM=(e=>(e[e.NonInstantiated=0]="NonInstantiated",e[e.Instantiated=1]="Instantiated",e[e.ConstEnumOnly=2]="ConstEnumOnly",e))(CM||{});function wM(e,t){return e.body&&!e.body.parent&&(wT(e.body,e),NT(e.body,!1)),e.body?NM(e.body,t):1}function NM(e,t=new Map){const n=jB(e);if(t.has(n))return t.get(n)||0;t.set(n,void 0);const r=function(e,t){switch(e.kind){case 264:case 265:return 0;case 266:if(Zp(e))return 2;break;case 272:case 271:if(!wv(e,32))return 0;break;case 278:const n=e;if(!n.moduleSpecifier&&n.exportClause&&279===n.exportClause.kind){let e=0;for(const r of n.exportClause.elements){const n=DM(r,t);if(n>e&&(e=n),1===e)return e}return e}break;case 268:{let n=0;return PI(e,(e=>{const r=NM(e,t);switch(r){case 0:return;case 2:return void(n=2);case 1:return n=1,!0;default:un.assertNever(r)}})),n}case 267:return wM(e,t);case 80:if(4096&e.flags)return 0}return 1}(e,t);return t.set(n,r),r}function DM(e,t){const n=e.propertyName||e.name;if(80!==n.kind)return 1;let r=e.parent;for(;r;){if(CF(r)||YF(r)||qE(r)){const e=r.statements;let i;for(const o of e)if(bc(o,n)){o.parent||(wT(o,r),NT(o,!1));const e=NM(o,t);if((void 0===i||e>i)&&(i=e),1===i)return i;271===o.kind&&(i=1)}if(void 0!==i)return i}r=r.parent}return 1}var FM=(e=>(e[e.None=0]="None",e[e.IsContainer=1]="IsContainer",e[e.IsBlockScopedContainer=2]="IsBlockScopedContainer",e[e.IsControlFlowContainer=4]="IsControlFlowContainer",e[e.IsFunctionLike=8]="IsFunctionLike",e[e.IsFunctionExpression=16]="IsFunctionExpression",e[e.HasLocals=32]="HasLocals",e[e.IsInterface=64]="IsInterface",e[e.IsObjectLiteralOrClassExpressionMethodOrAccessor=128]="IsObjectLiteralOrClassExpressionMethodOrAccessor",e))(FM||{});function EM(e,t,n){return un.attachFlowNodeDebugInfo({flags:e,id:0,node:t,antecedent:n})}var PM=IM();function AM(e,t){tr("beforeBind"),PM(e,t),tr("afterBind"),nr("Bind","beforeBind","afterBind")}function IM(){var e,t,n,r,i,o,a,s,c,l,_,p,f,m,g,h,y,b,x,k,S,C,w,N,D,F,E=!1,P=0,A=EM(1,void 0,void 0),I=EM(1,void 0,void 0),O=function(){return UA((function(e,t){if(t){t.stackIndex++,wT(e,r);const n=N;qe(e);const i=r;r=e,t.skip=!1,t.inStrictModeStack[t.stackIndex]=n,t.parentStack[t.stackIndex]=i}else t={stackIndex:0,skip:!1,inStrictModeStack:[void 0],parentStack:[void 0]};const n=e.operatorToken.kind;if(Qv(n)||Gv(n)){if(pe(e)){const t=ee(),n=p,r=C;C=!1,ke(e,t,t),p=C?ue(t):n,C||(C=r)}else ke(e,h,y);t.skip=!0}return t}),(function(t,n,r){if(!n.skip){const n=e(t);return 28===r.operatorToken.kind&&ve(t),n}}),(function(e,t,n){t.skip||Me(e)}),(function(t,n,r){if(!n.skip){const n=e(t);return 28===r.operatorToken.kind&&ve(t),n}}),(function(e,t){if(!t.skip){const t=e.operatorToken.kind;Zv(t)&&!Xg(e)&&(xe(e.left),64===t&&212===e.left.kind)&&Z(e.left.expression)&&(p=ce(256,p,e))}const n=t.inStrictModeStack[t.stackIndex],i=t.parentStack[t.stackIndex];void 0!==n&&(N=n),void 0!==i&&(r=i),t.skip=!1,t.stackIndex--}),void 0);function e(e){if(e&&cF(e)&&!rb(e))return e;Me(e)}}();return function(u,d){var v,x;e=u,n=hk(t=d),N=function(e,t){return!(!Mk(t,"alwaysStrict")||e.isDeclarationFile)||!!e.externalModuleIndicator}(e,d),F=new Set,P=0,D=jx.getSymbolConstructor(),un.attachFlowNodeDebugInfo(A),un.attachFlowNodeDebugInfo(I),e.locals||(null==(v=Hn)||v.push(Hn.Phase.Bind,"bindSourceFile",{path:e.path},!0),Me(e),null==(x=Hn)||x.pop(),e.symbolCount=P,e.classifiableNames=F,function(){if(!c)return;const t=i,n=s,o=a,l=r,_=p;for(const t of c){const n=t.parent.parent;i=Np(n)||e,a=Dp(n)||e,p=EM(2,void 0,void 0),r=t,Me(t.typeExpression);const o=Tc(t);if((vP(t)||!t.fullName)&&o&&cb(o.parent)){const n=rt(o.parent);if(n){Ye(e.symbol,o.parent,n,!!_c(o,(e=>HD(e)&&"prototype"===e.name.escapedText)),!1);const r=i;switch(_g(o.parent)){case 1:case 2:i=Qp(e)?e:void 0;break;case 4:i=o.parent.expression;break;case 3:i=o.parent.expression.name;break;case 5:i=LM(e,o.parent.expression)?e:HD(o.parent.expression)?o.parent.expression.name:o.parent.expression;break;case 0:return un.fail("Shouldn't have detected typedef or enum on non-assignment declaration")}i&&z(t,524288,788968),i=r}}else vP(t)||!t.fullName||80===t.fullName.kind?(r=t.parent,Ie(t,524288,788968)):Me(t.fullName)}i=t,s=n,a=o,r=l,p=_}(),function(){if(void 0===_)return;const t=i,n=s,o=a,c=r,l=p;for(const t of _){const n=Ug(t),o=n?Np(n):void 0,s=n?Dp(n):void 0;i=o||e,a=s||e,p=EM(2,void 0,void 0),r=t,Me(t.importClause)}i=t,s=n,a=o,r=c,p=l}()),e=void 0,t=void 0,n=void 0,r=void 0,i=void 0,o=void 0,a=void 0,s=void 0,c=void 0,_=void 0,l=!1,p=void 0,f=void 0,m=void 0,g=void 0,h=void 0,y=void 0,b=void 0,k=void 0,S=!1,C=!1,E=!1,w=0};function L(t,n,...r){return Mp(hd(t)||e,t,n,...r)}function j(e,t){return P++,new D(e,t)}function R(e,t,n){e.flags|=n,t.symbol=e,e.declarations=le(e.declarations,t),1955&n&&!e.exports&&(e.exports=Hu()),6240&n&&!e.members&&(e.members=Hu()),e.constEnumOnlyModule&&304&e.flags&&(e.constEnumOnlyModule=!1),111551&n&&fg(e,t)}function M(e){if(277===e.kind)return e.isExportEquals?"export=":"default";const t=Tc(e);if(t){if(ap(e)){const n=zh(t);return up(e)?"__global":`"${n}"`}if(167===t.kind){const e=t.expression;if(Lh(e))return pc(e.text);if(jh(e))return Da(e.operator)+e.operand.text;un.fail("Only computed properties with literal names have declaration names")}if(qN(t)){const n=Gf(e);if(!n)return;return Uh(n.symbol,t.escapedText)}return IE(t)?nC(t):Jh(t)?qh(t):void 0}switch(e.kind){case 176:return"__constructor";case 184:case 179:case 323:return"__call";case 185:case 180:return"__new";case 181:return"__index";case 278:return"__export";case 307:return"export=";case 226:if(2===eg(e))return"export=";un.fail("Unknown binary declaration kind");break;case 317:return wg(e)?"__new":"__call";case 169:return un.assert(317===e.parent.kind,"Impossible parameter parent kind",(()=>`parent is: ${un.formatSyntaxKind(e.parent.kind)}, expected JSDocFunctionType`)),"arg"+e.parent.parameters.indexOf(e)}}function B(e){return kc(e)?Ep(e.name):fc(un.checkDefined(M(e)))}function J(t,n,r,i,o,a,s){un.assert(s||!Rh(r));const c=wv(r,2048)||gE(r)&&$d(r.name),l=s?"__computed":c&&n?"default":M(r);let _;if(void 0===l)_=j(0,"__missing");else if(_=t.get(l),2885600&i&&F.add(l),_){if(a&&!_.isReplaceableByMethod)return _;if(_.flags&o)if(_.isReplaceableByMethod)t.set(l,_=j(0,l));else if(!(3&i&&67108864&_.flags)){kc(r)&&wT(r.name,r);let t=2&_.flags?la.Cannot_redeclare_block_scoped_variable_0:la.Duplicate_identifier_0,n=!0;(384&_.flags||384&i)&&(t=la.Enum_declarations_can_only_merge_with_namespace_or_other_enum_declarations,n=!1);let o=!1;u(_.declarations)&&(c||_.declarations&&_.declarations.length&&277===r.kind&&!r.isExportEquals)&&(t=la.A_module_cannot_have_multiple_default_exports,n=!1,o=!0);const a=[];GF(r)&&Cd(r.type)&&wv(r,32)&&2887656&_.flags&&a.push(L(r,la.Did_you_mean_0,`export type { ${fc(r.name.escapedText)} }`));const s=Tc(r)||r;d(_.declarations,((r,i)=>{const c=Tc(r)||r,l=n?L(c,t,B(r)):L(c,t);e.bindDiagnostics.push(o?iT(l,L(s,0===i?la.Another_export_default_is_here:la.and_here)):l),o&&a.push(L(c,la.The_first_export_default_is_here))}));const p=n?L(s,t,B(r)):L(s,t);e.bindDiagnostics.push(iT(p,...a)),_=j(0,l)}}else t.set(l,_=j(0,l)),a&&(_.isReplaceableByMethod=!0);return R(_,r,i),_.parent?un.assert(_.parent===n,"Existing symbol parent should match new one"):_.parent=n,_}function z(e,t,n){const r=!!(32&rc(e))||function(e){if(e.parent&&QF(e)&&(e=e.parent),!Ng(e))return!1;if(!vP(e)&&e.fullName)return!0;const t=Tc(e);return!!(t&&(cb(t.parent)&&rt(t.parent)||lu(t.parent)&&32&rc(t.parent)))}(e);if(2097152&t)return 281===e.kind||271===e.kind&&r?J(i.symbol.exports,i.symbol,e,t,n):(un.assertNode(i,au),J(i.locals,void 0,e,t,n));if(Ng(e)&&un.assert(Fm(e)),!ap(e)&&(r||128&i.flags)){if(!au(i)||!i.locals||wv(e,2048)&&!M(e))return J(i.symbol.exports,i.symbol,e,t,n);const r=111551&t?1048576:0,o=J(i.locals,void 0,e,r,n);return o.exportSymbol=J(i.symbol.exports,i.symbol,e,t,n),e.localSymbol=o,o}return un.assertNode(i,au),J(i.locals,void 0,e,t,n)}function q(e){U(e,(e=>262===e.kind?Me(e):void 0)),U(e,(e=>262!==e.kind?Me(e):void 0))}function U(e,t=Me){void 0!==e&&d(e,t)}function V(e){PI(e,Me,U)}function W(e){const n=E;if(E=!1,function(e){if(!(1&p.flags))return!1;if(p===A){const n=uu(e)&&242!==e.kind||263===e.kind||OM(e,t)||267===e.kind&&function(e){const n=wM(e);return 1===n||2===n&&Dk(t)}(e);if(n&&(p=I,!t.allowUnreachableCode)){const n=Lk(t)&&!(33554432&e.flags)&&(!wF(e)||!!(7&oc(e.declarationList))||e.declarationList.declarations.some((e=>!!e.initializer)));!function(e,t,n){if(du(e)&&r(e)&&CF(e.parent)){const{statements:t}=e.parent,i=rT(t,e);H(i,r,((e,t)=>n(i[e],i[t-1])))}else n(e,e);function r(e){return!($F(e)||function(e){switch(e.kind){case 264:case 265:return!0;case 267:return 1!==wM(e);case 266:return!OM(e,t);default:return!1}}(e)||wF(e)&&!(7&oc(e))&&e.declarationList.declarations.some((e=>!e.initializer)))}}(e,t,((e,t)=>Re(n,e,t,la.Unreachable_code_detected)))}}return!0}(e))return V(e),Be(e),void(E=n);switch(e.kind>=243&&e.kind<=259&&(!t.allowUnreachableCode||253===e.kind)&&(e.flowNode=p),e.kind){case 247:!function(e){const t=he(e,te()),n=ee(),r=ee();oe(t,p),p=t,me(e.expression,n,r),p=ue(n),ge(e.statement,r,t),oe(t,p),p=ue(r)}(e);break;case 246:!function(e){const t=te(),n=he(e,ee()),r=ee();oe(t,p),p=t,ge(e.statement,r,n),oe(n,p),p=ue(n),me(e.expression,t,r),p=ue(r)}(e);break;case 248:!function(e){const t=he(e,te()),n=ee(),r=ee();Me(e.initializer),oe(t,p),p=t,me(e.condition,n,r),p=ue(n),ge(e.statement,r,t),Me(e.incrementor),oe(t,p),p=ue(r)}(e);break;case 249:case 250:!function(e){const t=he(e,te()),n=ee();Me(e.expression),oe(t,p),p=t,250===e.kind&&Me(e.awaitModifier),oe(n,p),Me(e.initializer),261!==e.initializer.kind&&xe(e.initializer),ge(e.statement,n,t),oe(t,p),p=ue(n)}(e);break;case 245:!function(e){const t=ee(),n=ee(),r=ee();me(e.expression,t,n),p=ue(t),Me(e.thenStatement),oe(r,p),p=ue(n),Me(e.elseStatement),oe(r,p),p=ue(r)}(e);break;case 253:case 257:!function(e){Me(e.expression),253===e.kind&&(S=!0,g&&oe(g,p)),p=A,C=!0}(e);break;case 252:case 251:!function(e){if(Me(e.label),e.label){const t=function(e){for(let t=k;t;t=t.next)if(t.name===e)return t}(e.label.escapedText);t&&(t.referenced=!0,ye(e,t.breakTarget,t.continueTarget))}else ye(e,f,m)}(e);break;case 258:!function(e){const t=g,n=b,r=ee(),i=ee();let o=ee();if(e.finallyBlock&&(g=i),oe(o,p),b=o,Me(e.tryBlock),oe(r,p),e.catchClause&&(p=ue(o),o=ee(),oe(o,p),b=o,Me(e.catchClause),oe(r,p)),g=t,b=n,e.finallyBlock){const t=ee();t.antecedent=K(K(r.antecedent,o.antecedent),i.antecedent),p=t,Me(e.finallyBlock),1&p.flags?p=A:(g&&i.antecedent&&oe(g,ne(t,i.antecedent,p)),b&&o.antecedent&&oe(b,ne(t,o.antecedent,p)),p=r.antecedent?ne(t,r.antecedent,p):A)}else p=ue(r)}(e);break;case 255:!function(e){const t=ee();Me(e.expression);const n=f,r=x;f=t,x=p,Me(e.caseBlock),oe(t,p);const i=d(e.caseBlock.clauses,(e=>297===e.kind));e.possiblyExhaustive=!i&&!t.antecedent,i||oe(t,se(x,e,0,0)),f=n,x=r,p=ue(t)}(e);break;case 269:!function(e){const n=e.clauses,r=112===e.parent.expression.kind||G(e.parent.expression);let i=A;for(let o=0;ofE(e)||pE(e)))}(e)?e.flags|=128:e.flags&=-129}function Pe(e){const t=wM(e),n=0!==t;return Fe(e,n?512:1024,n?110735:0),t}function Ae(e,t,n){const r=j(t,n);return 106508&t&&(r.parent=i.symbol),R(r,e,t),r}function Ie(e,t,n){switch(a.kind){case 267:z(e,t,n);break;case 307:if(Qp(i)){z(e,t,n);break}default:un.assertNode(a,au),a.locals||(a.locals=Hu(),De(a)),J(a.locals,void 0,e,t,n)}}function Oe(t,n){if(n&&80===n.kind){const i=n;if(zN(r=i)&&("eval"===r.escapedText||"arguments"===r.escapedText)){const r=Gp(e,n);e.bindDiagnostics.push(Kx(e,r.start,r.length,function(t){return Gf(t)?la.Code_contained_in_a_class_is_evaluated_in_JavaScript_s_strict_mode_which_does_not_allow_this_use_of_0_For_more_information_see_https_Colon_Slash_Slashdeveloper_mozilla_org_Slashen_US_Slashdocs_SlashWeb_SlashJavaScript_SlashReference_SlashStrict_mode:e.externalModuleIndicator?la.Invalid_use_of_0_Modules_are_automatically_in_strict_mode:la.Invalid_use_of_0_in_strict_mode}(t),mc(i)))}}var r}function Le(e){!N||33554432&e.flags||Oe(e,e.name)}function je(t,n,...r){const i=Hp(e,t.pos);e.bindDiagnostics.push(Kx(e,i.start,i.length,n,...r))}function Re(t,n,r,i){!function(t,n,r){const i=Kx(e,n.pos,n.end-n.pos,r);t?e.bindDiagnostics.push(i):e.bindSuggestionDiagnostics=ie(e.bindSuggestionDiagnostics,{...i,category:2})}(t,{pos:Bd(n,e),end:r.end},i)}function Me(t){if(!t)return;wT(t,r),Hn&&(t.tracingPath=e.path);const n=N;if(qe(t),t.kind>165){const e=r;r=t;const n=jM(t);0===n?W(t):function(e,t){const n=i,r=o,s=a;if(1&t?(219!==e.kind&&(o=i),i=a=e,32&t&&(i.locals=Hu(),De(i))):2&t&&(a=e,32&t&&(a.locals=void 0)),4&t){const n=p,r=f,i=m,o=g,a=b,s=k,c=S,l=16&t&&!wv(e,1024)&&!e.asteriskToken&&!!im(e)||175===e.kind;l||(p=EM(2,void 0,void 0),144&t&&(p.node=e)),g=l||176===e.kind||Fm(e)&&(262===e.kind||218===e.kind)?ee():void 0,b=void 0,f=void 0,m=void 0,k=void 0,S=!1,W(e),e.flags&=-5633,!(1&p.flags)&&8&t&&wd(e.body)&&(e.flags|=512,S&&(e.flags|=1024),e.endFlowNode=p),307===e.kind&&(e.flags|=w,e.endFlowNode=p),g&&(oe(g,p),p=ue(g),(176===e.kind||175===e.kind||Fm(e)&&(262===e.kind||218===e.kind))&&(e.returnFlowNode=p)),l||(p=n),f=r,m=i,g=o,b=a,k=s,S=c}else 64&t?(l=!1,W(e),un.assertNotNode(e,zN),e.flags=l?256|e.flags:-257&e.flags):W(e);i=n,o=r,a=s}(t,n),r=e}else{const e=r;1===t.kind&&(r=t),Be(t),r=e}N=n}function Be(e){if(Nu(e))if(Fm(e))for(const t of e.jsDoc)Me(t);else for(const t of e.jsDoc)wT(t,e),NT(t,!1)}function Je(e){if(!N)for(const t of e){if(!uf(t))return;if(ze(t))return void(N=!0)}}function ze(t){const n=qd(e,t.expression);return'"use strict"'===n||"'use strict'"===n}function qe(o){switch(o.kind){case 80:if(4096&o.flags){let e=o.parent;for(;e&&!Ng(e);)e=e.parent;Ie(e,524288,788968);break}case 110:return p&&(U_(o)||304===r.kind)&&(o.flowNode=p),function(t){if(!(e.parseDiagnostics.length||33554432&t.flags||16777216&t.flags||uh(t))){const n=gc(t);if(void 0===n)return;N&&n>=119&&n<=127?e.bindDiagnostics.push(L(t,function(t){return Gf(t)?la.Identifier_expected_0_is_a_reserved_word_in_strict_mode_Class_definitions_are_automatically_in_strict_mode:e.externalModuleIndicator?la.Identifier_expected_0_is_a_reserved_word_in_strict_mode_Modules_are_automatically_in_strict_mode:la.Identifier_expected_0_is_a_reserved_word_in_strict_mode}(t),Ep(t))):135===n?MI(e)&&tm(t)?e.bindDiagnostics.push(L(t,la.Identifier_expected_0_is_a_reserved_word_at_the_top_level_of_a_module,Ep(t))):65536&t.flags&&e.bindDiagnostics.push(L(t,la.Identifier_expected_0_is_a_reserved_word_that_cannot_be_used_here,Ep(t))):127===n&&16384&t.flags&&e.bindDiagnostics.push(L(t,la.Identifier_expected_0_is_a_reserved_word_that_cannot_be_used_here,Ep(t)))}}(o);case 166:p&&xm(o)&&(o.flowNode=p);break;case 236:case 108:o.flowNode=p;break;case 81:return function(t){"#constructor"===t.escapedText&&(e.parseDiagnostics.length||e.bindDiagnostics.push(L(t,la.constructor_is_a_reserved_word,Ep(t))))}(o);case 211:case 212:const s=o;p&&X(s)&&(s.flowNode=p),pg(s)&&function(e){110===e.expression.kind?He(e):ig(e)&&307===e.parent.parent.kind&&(_b(e.expression)?Xe(e,e.parent):Qe(e))}(s),Fm(s)&&e.commonJsModuleIndicator&&Zm(s)&&!RM(a,"module")&&J(e.locals,void 0,s.expression,134217729,111550);break;case 226:switch(eg(o)){case 1:We(o);break;case 2:!function(t){if(!Ve(t))return;const n=Xm(t.right);if(gb(n)||i===e&&LM(e,n))return;if($D(n)&&v(n.properties,BE))return void d(n.properties,$e);const r=fh(t)?2097152:1049092;fg(J(e.symbol.exports,e.symbol,t,67108864|r,0),t)}(o);break;case 3:Xe(o.left,o);break;case 6:!function(e){wT(e.left,e),wT(e.right,e),it(e.left.expression,e.left,!1,!0)}(o);break;case 4:He(o);break;case 5:const t=o.left.expression;if(Fm(o)&&zN(t)){const e=RM(a,t.escapedText);if(sm(null==e?void 0:e.valueDeclaration)){He(o);break}}!function(t){var n;const r=ot(t.left.expression,a)||ot(t.left.expression,i);if(!Fm(t)&&!mg(r))return;const o=Cx(t.left);zN(o)&&2097152&(null==(n=RM(i,o.escapedText))?void 0:n.flags)||(wT(t.left,t),wT(t.right,t),zN(t.left.expression)&&i===e&&LM(e,t.left.expression)?We(t):Rh(t)?(Ae(t,67108868,"__computed"),Ge(t,Ye(r,t.left.expression,rt(t.left),!1,!1))):Qe(nt(t.left,ag)))}(o);break;case 0:break;default:un.fail("Unknown binary expression special property assignment kind")}return function(e){N&&R_(e.left)&&Zv(e.operatorToken.kind)&&Oe(e,e.left)}(o);case 299:return function(e){N&&e.variableDeclaration&&Oe(e,e.variableDeclaration.name)}(o);case 220:return function(t){if(N&&80===t.expression.kind){const n=Gp(e,t.expression);e.bindDiagnostics.push(Kx(e,n.start,n.length,la.delete_cannot_be_called_on_an_identifier_in_strict_mode))}}(o);case 225:return function(e){N&&Oe(e,e.operand)}(o);case 224:return function(e){N&&(46!==e.operator&&47!==e.operator||Oe(e,e.operand))}(o);case 254:return function(e){N&&je(e,la.with_statements_are_not_allowed_in_strict_mode)}(o);case 256:return function(e){N&&hk(t)>=2&&(_u(e.statement)||wF(e.statement))&&je(e.label,la.A_label_is_not_allowed_here)}(o);case 197:return void(l=!0);case 182:break;case 168:return function(e){if(TP(e.parent)){const t=Bg(e.parent);t?(un.assertNode(t,au),t.locals??(t.locals=Hu()),J(t.locals,void 0,e,262144,526824)):Fe(e,262144,526824)}else if(195===e.parent.kind){const t=function(e){const t=_c(e,(e=>e.parent&&PD(e.parent)&&e.parent.extendsType===e));return t&&t.parent}(e.parent);t?(un.assertNode(t,au),t.locals??(t.locals=Hu()),J(t.locals,void 0,e,262144,526824)):Ae(e,262144,M(e))}else Fe(e,262144,526824)}(o);case 169:return ct(o);case 260:return st(o);case 208:return o.flowNode=p,st(o);case 172:case 171:return function(e){const t=d_(e),n=t?13247:0;return lt(e,(t?98304:4)|(e.questionToken?16777216:0),n)}(o);case 303:case 304:return lt(o,4,0);case 306:return lt(o,8,900095);case 179:case 180:case 181:return Fe(o,131072,0);case 174:case 173:return lt(o,8192|(o.questionToken?16777216:0),Mf(o)?0:103359);case 262:return function(t){e.isDeclarationFile||33554432&t.flags||Oh(t)&&(w|=4096),Le(t),N?(function(t){if(n<2&&307!==a.kind&&267!==a.kind&&!r_(a)){const n=Gp(e,t);e.bindDiagnostics.push(Kx(e,n.start,n.length,function(t){return Gf(t)?la.Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES5_Class_definitions_are_automatically_in_strict_mode:e.externalModuleIndicator?la.Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES5_Modules_are_automatically_in_strict_mode:la.Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES5}(t)))}}(t),Ie(t,16,110991)):Fe(t,16,110991)}(o);case 176:return Fe(o,16384,0);case 177:return lt(o,32768,46015);case 178:return lt(o,65536,78783);case 184:case 317:case 323:case 185:return function(e){const t=j(131072,M(e));R(t,e,131072);const n=j(2048,"__type");R(n,e,2048),n.members=Hu(),n.members.set(t.escapedName,t)}(o);case 187:case 322:case 200:return function(e){return Ae(e,2048,"__type")}(o);case 332:return function(e){V(e);const t=zg(e);t&&174!==t.kind&&R(t.symbol,t,32)}(o);case 210:return function(e){return Ae(e,4096,"__object")}(o);case 218:case 219:return function(t){e.isDeclarationFile||33554432&t.flags||Oh(t)&&(w|=4096),p&&(t.flowNode=p),Le(t);return Ae(t,16,t.name?t.name.escapedText:"__function")}(o);case 213:switch(eg(o)){case 7:return function(e){let t=ot(e.arguments[0]);const n=307===e.parent.parent.kind;t=Ye(t,e.arguments[0],n,!1,!1),et(e,t,!1)}(o);case 8:return function(e){if(!Ve(e))return;const t=at(e.arguments[0],void 0,((e,t)=>(t&&R(t,e,67110400),t)));if(t){const n=1048580;J(t.exports,t,e,n,0)}}(o);case 9:return function(e){const t=ot(e.arguments[0].expression);t&&t.valueDeclaration&&R(t,t.valueDeclaration,32),et(e,t,!0)}(o);case 0:break;default:return un.fail("Unknown call expression assignment declaration kind")}Fm(o)&&function(t){!e.commonJsModuleIndicator&&Om(t,!1)&&Ve(t)}(o);break;case 231:case 263:return N=!0,function(t){263===t.kind?Ie(t,32,899503):(Ae(t,32,t.name?t.name.escapedText:"__class"),t.name&&F.add(t.name.escapedText));const{symbol:n}=t,r=j(4194308,"prototype"),i=n.exports.get(r.escapedName);i&&(t.name&&wT(t.name,t),e.bindDiagnostics.push(L(i.declarations[0],la.Duplicate_identifier_0,hc(r)))),n.exports.set(r.escapedName,r),r.parent=n}(o);case 264:return Ie(o,64,788872);case 265:return Ie(o,524288,788968);case 266:return function(e){return Zp(e)?Ie(e,128,899967):Ie(e,256,899327)}(o);case 267:return function(t){if(Ee(t),ap(t))if(wv(t,32)&&je(t,la.export_modifier_cannot_be_applied_to_ambient_modules_and_module_augmentations_since_they_are_always_visible),pp(t))Pe(t);else{let n;if(11===t.name.kind){const{text:e}=t.name;n=WS(e),void 0===n&&je(t.name,la.Pattern_0_can_have_at_most_one_Asterisk_character,e)}const r=Fe(t,512,110735);e.patternAmbientModules=ie(e.patternAmbientModules,n&&!Ze(n)?{pattern:n,symbol:r}:void 0)}else{const e=Pe(t);if(0!==e){const{symbol:n}=t;n.constEnumOnlyModule=!(304&n.flags)&&2===e&&!1!==n.constEnumOnlyModule}}}(o);case 292:return function(e){return Ae(e,4096,"__jsxAttributes")}(o);case 291:return function(e){return Fe(e,4,0)}(o);case 271:case 274:case 276:case 281:return Fe(o,2097152,2097152);case 270:return function(t){$(t.modifiers)&&e.bindDiagnostics.push(L(t,la.Modifiers_cannot_appear_here));const n=qE(t.parent)?MI(t.parent)?t.parent.isDeclarationFile?void 0:la.Global_module_exports_may_only_appear_in_declaration_files:la.Global_module_exports_may_only_appear_in_module_files:la.Global_module_exports_may_only_appear_at_top_level;n?e.bindDiagnostics.push(L(t,n)):(e.symbol.globalExports=e.symbol.globalExports||Hu(),J(e.symbol.globalExports,e.symbol,t,2097152,2097152))}(o);case 273:return function(e){e.name&&Fe(e,2097152,2097152)}(o);case 278:return function(e){i.symbol&&i.symbol.exports?e.exportClause?_E(e.exportClause)&&(wT(e.exportClause,e),J(i.symbol.exports,i.symbol,e.exportClause,2097152,2097152)):J(i.symbol.exports,i.symbol,e,8388608,0):Ae(e,8388608,M(e))}(o);case 277:return function(e){if(i.symbol&&i.symbol.exports){const t=fh(e)?2097152:4,n=J(i.symbol.exports,i.symbol,e,t,-1);e.isExportEquals&&fg(n,e)}else Ae(e,111551,M(e))}(o);case 307:return Je(o.statements),function(){if(Ee(e),MI(e))Ue();else if(Yp(e)){Ue();const t=e.symbol;J(e.symbol.exports,e.symbol,e,4,-1),e.symbol=t}}();case 241:if(!r_(o.parent))return;case 268:return Je(o.statements);case 341:if(323===o.parent.kind)return ct(o);if(322!==o.parent.kind)break;case 348:const u=o;return Fe(u,u.isBracketed||u.typeExpression&&316===u.typeExpression.type.kind?16777220:4,0);case 346:case 338:case 340:return(c||(c=[])).push(o);case 339:return Me(o.typeExpression);case 351:return(_||(_=[])).push(o)}}function Ue(){Ae(e,512,`"${zS(e.fileName)}"`)}function Ve(t){return!(e.externalModuleIndicator&&!0!==e.externalModuleIndicator||(e.commonJsModuleIndicator||(e.commonJsModuleIndicator=t,e.externalModuleIndicator||Ue()),0))}function We(e){if(!Ve(e))return;const t=at(e.left.expression,void 0,((e,t)=>(t&&R(t,e,67110400),t)));if(t){const n=ph(e.right)&&(Qm(e.left.expression)||Zm(e.left.expression))?2097152:1048580;wT(e.left,e),J(t.exports,t,e.left,n,0)}}function $e(t){J(e.symbol.exports,e.symbol,t,69206016,0)}function He(e){if(un.assert(Fm(e)),cF(e)&&HD(e.left)&&qN(e.left.name)||HD(e)&&qN(e.name))return;const t=Zf(e,!1,!1);switch(t.kind){case 262:case 218:let n=t.symbol;if(cF(t.parent)&&64===t.parent.operatorToken.kind){const e=t.parent.left;ig(e)&&_b(e.expression)&&(n=ot(e.expression.expression,o))}n&&n.valueDeclaration&&(n.members=n.members||Hu(),Rh(e)?Ke(e,n,n.members):J(n.members,n,e,67108868,0),R(n,n.valueDeclaration,32));break;case 176:case 172:case 174:case 177:case 178:case 175:const r=t.parent,i=Nv(t)?r.symbol.exports:r.symbol.members;Rh(e)?Ke(e,r.symbol,i):J(i,r.symbol,e,67108868,0,!0);break;case 307:if(Rh(e))break;t.commonJsModuleIndicator?J(t.symbol.exports,t.symbol,e,1048580,0):Fe(e,1,111550);break;case 267:break;default:un.failBadSyntaxKind(t)}}function Ke(e,t,n){J(n,t,e,4,0,!0,!0),Ge(e,t)}function Ge(e,t){t&&(t.assignmentDeclarationMembers||(t.assignmentDeclarationMembers=new Map)).set(jB(e),e)}function Xe(e,t){const n=e.expression,r=n.expression;wT(r,n),wT(n,e),wT(e,t),it(r,e,!0,!0)}function Qe(e){un.assert(!zN(e)),wT(e.expression,e),it(e.expression,e,!1,!1)}function Ye(t,n,r,i,o){if(2097152&(null==t?void 0:t.flags))return t;if(r&&!i){const r=67110400,i=110735;t=at(n,t,((t,n,o)=>n?(R(n,t,r),n):J(o?o.exports:e.jsGlobalAugmentations||(e.jsGlobalAugmentations=Hu()),o,t,r,i)))}return o&&t&&t.valueDeclaration&&R(t,t.valueDeclaration,32),t}function et(e,t,n){if(!t||!function(e){if(1072&e.flags)return!0;const t=e.valueDeclaration;if(t&&GD(t))return!!Wm(t);let n=t?VF(t)?t.initializer:cF(t)?t.right:HD(t)&&cF(t.parent)?t.parent.right:void 0:void 0;if(n=n&&Xm(n),n){const e=_b(VF(t)?t.name:cF(t)?t.left:t);return!!$m(!cF(n)||57!==n.operatorToken.kind&&61!==n.operatorToken.kind?n:n.right,e)}return!1}(t))return;const r=n?t.members||(t.members=Hu()):t.exports||(t.exports=Hu());let i=0,o=0;i_(Wm(e))?(i=8192,o=103359):GD(e)&&tg(e)&&($(e.arguments[2].properties,(e=>{const t=Tc(e);return!!t&&zN(t)&&"set"===mc(t)}))&&(i|=65540,o|=78783),$(e.arguments[2].properties,(e=>{const t=Tc(e);return!!t&&zN(t)&&"get"===mc(t)}))&&(i|=32772,o|=46015)),0===i&&(i=4,o=0),J(r,t,e,67108864|i,-67108865&o)}function rt(e){return cF(e.parent)?307===function(e){for(;cF(e.parent);)e=e.parent;return e.parent}(e.parent).parent.kind:307===e.parent.parent.kind}function it(e,t,n,r){let o=ot(e,a)||ot(e,i);const s=rt(t);o=Ye(o,t.expression,s,n,r),et(t,o,n)}function ot(e,t=i){if(zN(e))return RM(t,e.escapedText);{const t=ot(e.expression);return t&&t.exports&&t.exports.get(lg(e))}}function at(t,n,r){if(LM(e,t))return e.symbol;if(zN(t))return r(t,ot(t),n);{const e=at(t.expression,n,r),i=sg(t);return qN(i)&&un.fail("unexpected PrivateIdentifier"),r(i,e&&e.exports&&e.exports.get(lg(t)),e)}}function st(e){if(N&&Oe(e,e.name),!x_(e.name)){const t=260===e.kind?e:e.parent.parent;!Fm(e)||!jm(t)||el(e)||32&rc(e)?ip(e)?Ie(e,2,111551):Xh(e)?Fe(e,1,111551):Fe(e,1,111550):Fe(e,2097152,2097152)}}function ct(e){if((341!==e.kind||323===i.kind)&&(!N||33554432&e.flags||Oe(e,e.name),x_(e.name)?Ae(e,1,"__"+e.parent.parameters.indexOf(e)):Fe(e,1,111551),Ys(e,e.parent))){const t=e.parent.parent;J(t.symbol.members,t.symbol,e,4|(e.questionToken?16777216:0),0)}}function lt(t,n,r){return e.isDeclarationFile||33554432&t.flags||!Oh(t)||(w|=4096),p&&Bf(t)&&(t.flowNode=p),Rh(t)?Ae(t,n,"__computed"):Fe(t,n,r)}}function OM(e,t){return 266===e.kind&&(!Zp(e)||Dk(t))}function LM(e,t){let n=0;const r=Ge();for(r.enqueue(t);!r.isEmpty()&&n<100;){if(n++,Qm(t=r.dequeue())||Zm(t))return!0;if(zN(t)){const n=RM(e,t.escapedText);if(n&&n.valueDeclaration&&VF(n.valueDeclaration)&&n.valueDeclaration.initializer){const e=n.valueDeclaration.initializer;r.enqueue(e),nb(e,!0)&&(r.enqueue(e.left),r.enqueue(e.right))}}}return!1}function jM(e){switch(e.kind){case 231:case 263:case 266:case 210:case 187:case 322:case 292:return 1;case 264:return 65;case 267:case 265:case 200:case 181:return 33;case 307:return 37;case 177:case 178:case 174:if(Bf(e))return 173;case 176:case 262:case 173:case 179:case 323:case 317:case 184:case 180:case 185:case 175:return 45;case 218:case 219:return 61;case 268:return 4;case 172:return e.initializer?4:0;case 299:case 248:case 249:case 250:case 269:return 34;case 241:return n_(e.parent)||uD(e.parent)?0:34}return 0}function RM(e,t){var n,r,i,o;const a=null==(r=null==(n=tt(e,au))?void 0:n.locals)?void 0:r.get(t);return a?a.exportSymbol??a:qE(e)&&e.jsGlobalAugmentations&&e.jsGlobalAugmentations.has(t)?e.jsGlobalAugmentations.get(t):ou(e)?null==(o=null==(i=e.symbol)?void 0:i.exports)?void 0:o.get(t):void 0}function MM(e,t,n,r,i,o,a,s,c,l){return function(_=()=>!0){const u=[],p=[];return{walkType:e=>{try{return f(e),{visitedTypes:Ae(u),visitedSymbols:Ae(p)}}finally{F(u),F(p)}},walkSymbol:e=>{try{return h(e),{visitedTypes:Ae(u),visitedSymbols:Ae(p)}}finally{F(u),F(p)}}};function f(e){if(e&&!u[e.id]&&(u[e.id]=e,!h(e.symbol))){if(524288&e.flags){const n=e,i=n.objectFlags;4&i&&function(e){f(e.target),d(l(e),f)}(e),32&i&&function(e){f(e.typeParameter),f(e.constraintType),f(e.templateType),f(e.modifiersType)}(e),3&i&&(g(t=e),d(t.typeParameters,f),d(r(t),f),f(t.thisType)),24&i&&g(n)}var t;262144&e.flags&&function(e){f(s(e))}(e),3145728&e.flags&&function(e){d(e.types,f)}(e),4194304&e.flags&&function(e){f(e.type)}(e),8388608&e.flags&&function(e){f(e.objectType),f(e.indexType),f(e.constraint)}(e)}}function m(r){const i=t(r);i&&f(i.type),d(r.typeParameters,f);for(const e of r.parameters)h(e);f(e(r)),f(n(r))}function g(e){const t=i(e);for(const e of t.indexInfos)f(e.keyType),f(e.type);for(const e of t.callSignatures)m(e);for(const e of t.constructSignatures)m(e);for(const e of t.properties)h(e)}function h(e){if(!e)return!1;const t=RB(e);return!p[t]&&(p[t]=e,!_(e)||(f(o(e)),e.exports&&e.exports.forEach(h),d(e.declarations,(e=>{if(e.type&&186===e.type.kind){const t=e.type;h(a(c(t.exprName)))}})),!1))}}}var BM={};i(BM,{RelativePreference:()=>zM,countPathComponents:()=>tB,forEachFileNameOfModule:()=>iB,getLocalModuleSpecifierBetweenFileNames:()=>QM,getModuleSpecifier:()=>VM,getModuleSpecifierPreferences:()=>qM,getModuleSpecifiers:()=>GM,getModuleSpecifiersWithCacheInfo:()=>XM,getNodeModulesPackageName:()=>WM,tryGetJSExtensionForFile:()=>mB,tryGetModuleSpecifiersFromCache:()=>HM,tryGetRealFileNameForNonJsDeclarationFileName:()=>pB,updateModuleSpecifier:()=>UM});var JM=pt((e=>{try{let t=e.indexOf("/");if(0!==t)return new RegExp(e);const n=e.lastIndexOf("/");if(t===n)return new RegExp(e);for(;(t=e.indexOf("/",t+1))!==n;)if("\\"!==e[t-1])return new RegExp(e);const r=e.substring(n+1).replace(/[^iu]/g,"");return e=e.substring(1,n),new RegExp(e,r)}catch{return}})),zM=(e=>(e[e.Relative=0]="Relative",e[e.NonRelative=1]="NonRelative",e[e.Shortest=2]="Shortest",e[e.ExternalNonRelative=3]="ExternalNonRelative",e))(zM||{});function qM({importModuleSpecifierPreference:e,importModuleSpecifierEnding:t,autoImportSpecifierExcludeRegexes:n},r,i,o,a){const s=c();return{excludeRegexes:n,relativePreference:void 0!==a?Ts(a)?0:1:"relative"===e?0:"non-relative"===e?1:"project-relative"===e?3:2,getAllowedEndingsInPreferredOrder:e=>{const t=yB(o,r,i),n=e!==t?c(e):s,a=vk(i);if(99===(e??t)&&3<=a&&a<=99)return bM(i,o.fileName)?[3,2]:[2];if(1===vk(i))return 2===n?[2,1]:[1,2];const l=bM(i,o.fileName);switch(n){case 2:return l?[2,3,0,1]:[2,0,1];case 3:return[3,0,2,1];case 1:return l?[1,0,3,2]:[1,0,2];case 0:return l?[0,1,3,2]:[0,1,2];default:un.assertNever(n)}}};function c(e){if(void 0!==a){if(AS(a))return 2;if(Rt(a,"/index"))return 1}return jS(t,e??yB(o,r,i),i,Nm(o)?o:void 0)}}function UM(e,t,n,r,i,o,a={}){const s=$M(e,t,n,r,i,qM({},i,e,t,o),{},a);if(s!==o)return s}function VM(e,t,n,r,i,o={}){return $M(e,t,n,r,i,qM({},i,e,t),{},o)}function WM(e,t,n,r,i,o={}){const a=ZM(t.fileName,r);return f(oB(a,n,r,i,e,o),(n=>_B(n,a,t,r,e,i,!0,o.overrideImportMode)))}function $M(e,t,n,r,i,o,a,s={}){const c=ZM(n,i);return f(oB(c,r,i,a,e,s),(n=>_B(n,c,t,i,e,a,void 0,s.overrideImportMode)))||eB(r,c,e,i,s.overrideImportMode||yB(t,i,e),o)}function HM(e,t,n,r,i={}){const o=KM(e,t,n,r,i);return o[1]&&{kind:o[0],moduleSpecifiers:o[1],computedWithoutCache:!1}}function KM(e,t,n,r,i={}){var o;const a=yd(e);if(!a)return l;const s=null==(o=n.getModuleSpecifierCache)?void 0:o.call(n),c=null==s?void 0:s.get(t.path,a.path,r,i);return[null==c?void 0:c.kind,null==c?void 0:c.moduleSpecifiers,a,null==c?void 0:c.modulePaths,s]}function GM(e,t,n,r,i,o,a={}){return XM(e,t,n,r,i,o,a,!1).moduleSpecifiers}function XM(e,t,n,r,i,o,a={},s){let c=!1;const _=function(e,t){var n;const r=null==(n=e.declarations)?void 0:n.find((e=>cp(e)&&(!dp(e)||!Ts(zh(e.name)))));if(r)return r.name.text;const i=B(e.declarations,(e=>{var n,r,i,o;if(!QF(e))return;const a=function(e){for(;8&e.flags;)e=e.parent;return e}(e);if(!((null==(n=null==a?void 0:a.parent)?void 0:n.parent)&&YF(a.parent)&&ap(a.parent.parent)&&qE(a.parent.parent.parent)))return;const s=null==(o=null==(i=null==(r=a.parent.parent.symbol.exports)?void 0:r.get("export="))?void 0:i.valueDeclaration)?void 0:o.expression;if(!s)return;const c=t.getSymbolAtLocation(s);if(c&&(2097152&(null==c?void 0:c.flags)?t.getAliasedSymbol(c):c)===e.symbol)return a.parent.parent}))[0];return i?i.name.text:void 0}(e,t);if(_)return{kind:"ambient",moduleSpecifiers:s&&YM(_,o.autoImportSpecifierExcludeRegexes)?l:[_],computedWithoutCache:c};let[u,p,f,m,g]=KM(e,r,i,o,a);if(p)return{kind:u,moduleSpecifiers:p,computedWithoutCache:c};if(!f)return{kind:void 0,moduleSpecifiers:l,computedWithoutCache:c};c=!0,m||(m=sB(ZM(r.fileName,i),f.originalFileName,i,n,a));const h=function(e,t,n,r,i,o={},a){const s=ZM(n.fileName,r),c=qM(i,r,t,n),_=Nm(n)&&d(e,(e=>d(r.getFileIncludeReasons().get(qo(e.path,r.getCurrentDirectory(),s.getCanonicalFileName)),(e=>{if(3!==e.kind||e.file!==n.path)return;const t=r.getModeForResolutionAtIndex(n,e.index),i=o.overrideImportMode??r.getDefaultResolutionModeForFile(n);if(t!==i&&void 0!==t&&void 0!==i)return;const a=AV(n,e.index).text;return 1===c.relativePreference&&vo(a)?void 0:a}))));if(_)return{kind:void 0,moduleSpecifiers:[_],computedWithoutCache:!0};const u=$(e,(e=>e.isInNodeModules));let p,f,m,g;for(const l of e){const e=l.isInNodeModules?_B(l,s,n,r,t,i,void 0,o.overrideImportMode):void 0;if(e&&(!a||!YM(e,c.excludeRegexes))&&(p=ie(p,e),l.isRedirect))return{kind:"node_modules",moduleSpecifiers:p,computedWithoutCache:!0};const _=eB(l.path,s,t,r,o.overrideImportMode||n.impliedNodeFormat,c,l.isRedirect||!!e);!_||a&&YM(_,c.excludeRegexes)||(l.isRedirect?m=ie(m,_):bo(_)?AR(_)?g=ie(g,_):f=ie(f,_):(a||!u||l.isInNodeModules)&&(g=ie(g,_)))}return(null==f?void 0:f.length)?{kind:"paths",moduleSpecifiers:f,computedWithoutCache:!0}:(null==m?void 0:m.length)?{kind:"redirect",moduleSpecifiers:m,computedWithoutCache:!0}:(null==p?void 0:p.length)?{kind:"node_modules",moduleSpecifiers:p,computedWithoutCache:!0}:{kind:"relative",moduleSpecifiers:g??l,computedWithoutCache:!0}}(m,n,r,i,o,a,s);return null==g||g.set(r.path,f.path,o,a,h.kind,m,h.moduleSpecifiers),h}function QM(e,t,n,r,i,o={}){return eB(t,ZM(e.fileName,r),n,r,o.overrideImportMode??e.impliedNodeFormat,qM(i,r,n,e))}function YM(e,t){return $(t,(t=>{var n;return!!(null==(n=JM(t))?void 0:n.test(e))}))}function ZM(e,t){e=Bo(e,t.getCurrentDirectory());const n=Wt(!t.useCaseSensitiveFileNames||t.useCaseSensitiveFileNames()),r=Do(e);return{getCanonicalFileName:n,importingSourceFileName:e,sourceDirectory:r,canonicalSourceDirectory:n(r)}}function eB(e,t,n,r,i,{getAllowedEndingsInPreferredOrder:o,relativePreference:a,excludeRegexes:s},c){const{baseUrl:l,paths:_,rootDirs:u}=n;if(c&&!_)return;const{sourceDirectory:p,canonicalSourceDirectory:f,getCanonicalFileName:m}=t,g=o(i),h=u&&function(e,t,n,r,i,o){const a=uB(t,e,r);if(void 0===a)return;const s=kt(O(uB(n,e,r),(e=>E(a,(t=>Wo(na(e,t,r)))))),BS);return s?dB(s,i,o):void 0}(u,e,p,m,g,n)||dB(Wo(na(p,e,m)),g,n);if(!l&&!_&&!Ck(n)||0===a)return c?void 0:h;const y=Bo(Hy(n,r)||l,r.getCurrentDirectory()),v=gB(e,y,m);if(!v)return c?void 0:h;const b=c?void 0:function(e,t,n,r,i,o){var a,s,c;if(!r.readFile||!Ck(n))return;const l=rB(r,t);if(!l)return;const _=jo(l,"package.json"),u=null==(s=null==(a=r.getPackageJsonInfoCache)?void 0:a.call(r))?void 0:s.getPackageJsonInfo(_);if(oR(u)||!r.fileExists(_))return;const p=(null==u?void 0:u.contents.packageJsonContent)||wb(r.readFile(_)),f=null==p?void 0:p.imports;if(!f)return;const m=tR(n,i);return null==(c=d(Ee(f),(t=>{if(!Gt(t,"#")||"#"===t||Gt(t,"#/"))return;const i=Rt(t,"/")?1:t.includes("*")?2:0;return lB(n,r,e,l,t,f[t],m,i,!0,o)})))?void 0:c.moduleFileToTry}(e,p,n,r,i,function(e){const t=e.indexOf(3);return t>-1&&te.fileExists(jo(t,"package.json"))?t:void 0))}function iB(e,t,n,r,i){var o;const a=jy(n),s=n.getCurrentDirectory(),c=n.isSourceOfProjectReferenceRedirect(t)?n.getProjectReferenceRedirect(t):void 0,_=qo(t,s,a),u=n.redirectTargetsMap.get(_)||l,p=[...c?[c]:l,t,...u].map((e=>Bo(e,s)));let f=!v(p,PT);if(!r){const e=d(p,(e=>!(f&&PT(e))&&i(e,c===e)));if(e)return e}const m=null==(o=n.getSymlinkCache)?void 0:o.call(n).getSymlinkedDirectoriesByRealpath(),g=Bo(t,s);return m&&sM(n,Do(g),(t=>{const n=m.get(Vo(qo(t,s,a)));if(n)return!ea(e,t,a)&&d(p,(e=>{if(!ea(e,t,a))return;const r=na(t,e,a);for(const t of n){const n=Ro(t,r),o=i(n,e===c);if(f=!0,o)return o}}))}))||(r?d(p,(e=>f&&PT(e)?void 0:i(e,e===c))):void 0)}function oB(e,t,n,r,i,o={}){var a;const s=qo(e.importingSourceFileName,n.getCurrentDirectory(),jy(n)),c=qo(t,n.getCurrentDirectory(),jy(n)),l=null==(a=n.getModuleSpecifierCache)?void 0:a.call(n);if(l){const e=l.get(s,c,r,o);if(null==e?void 0:e.modulePaths)return e.modulePaths}const _=sB(e,t,n,i,o);return l&&l.setModulePaths(s,c,r,o,_),_}var aB=["dependencies","peerDependencies","optionalDependencies"];function sB(e,t,n,r,i){var o,a;const s=null==(o=n.getModuleResolutionCache)?void 0:o.call(n),c=null==(a=n.getSymlinkCache)?void 0:a.call(n);if(s&&c&&n.readFile&&!AR(e.importingSourceFileName)){un.type(n);const t=WR(s.getPackageJsonInfoCache(),n,{}),o=$R(Do(e.importingSourceFileName),t);if(o){const e=function(e){let t;for(const n of aB){const r=e[n];r&&"object"==typeof r&&(t=K(t,Ee(r)))}return t}(o.contents.packageJsonContent);for(const t of e||l){const e=bR(t,jo(o.packageDirectory,"package.json"),r,n,s,void 0,i.overrideImportMode);c.setSymlinksFromResolution(e.resolvedModule)}}}const _=new Map;let u=!1;iB(e.importingSourceFileName,t,n,!0,((t,n)=>{const r=AR(t);_.set(t,{path:e.getCanonicalFileName(t),isRedirect:n,isInNodeModules:r}),u=u||r}));const d=[];for(let t=e.canonicalSourceDirectory;0!==_.size;){const e=Vo(t);let n;_.forEach((({path:t,isRedirect:r,isInNodeModules:i},o)=>{Gt(t,e)&&((n||(n=[])).push({path:o,isRedirect:r,isInNodeModules:i}),_.delete(o))})),n&&(n.length>1&&n.sort(nB),d.push(...n));const r=Do(t);if(r===t)break;t=r}if(_.size){const e=Oe(_.entries(),(([e,{isRedirect:t,isInNodeModules:n}])=>({path:e,isRedirect:t,isInNodeModules:n})));e.length>1&&e.sort(nB),d.push(...e)}return d}function cB(e,t,n,r,i,o,a){for(const o in t)for(const c of t[o]){const t=Jo(c),l=gB(t,r,i)??t,_=l.indexOf("*"),u=n.map((t=>({ending:t,value:dB(e,[t],a)})));if(ZS(l)&&u.push({ending:void 0,value:e}),-1!==_){const e=l.substring(0,_),t=l.substring(_+1);for(const{ending:n,value:r}of u)if(r.length>=e.length+t.length&&Gt(r,e)&&Rt(r,t)&&s({ending:n,value:r})){const n=r.substring(e.length,r.length-t.length);if(!vo(n))return _C(o,n)}}else if($(u,(e=>0!==e.ending&&l===e.value))||$(u,(e=>0===e.ending&&l===e.value&&s(e))))return o}function s({ending:t,value:n}){return 0!==t||n===dB(e,[t],a,o)}}function lB(e,t,n,r,i,o,a,s,c,l){if("string"==typeof o){const a=!Ly(t),_=()=>t.getCommonSourceDirectory(),u=c&&Bq(n,e,a,_),d=c&&Rq(n,e,a,_),p=Bo(jo(r,o),void 0),f=IS(n)?zS(n)+mB(n,e):void 0,m=l&&OS(n);switch(s){case 0:if(f&&0===Yo(f,p,a)||0===Yo(n,p,a)||u&&0===Yo(u,p,a)||d&&0===Yo(d,p,a))return{moduleFileToTry:i};break;case 1:if(m&&Zo(n,p,a)){const e=na(p,n,!1);return{moduleFileToTry:Bo(jo(jo(i,o),e),void 0)}}if(f&&Zo(p,f,a)){const e=na(p,f,!1);return{moduleFileToTry:Bo(jo(jo(i,o),e),void 0)}}if(!m&&Zo(p,n,a)){const e=na(p,n,!1);return{moduleFileToTry:Bo(jo(jo(i,o),e),void 0)}}if(u&&Zo(p,u,a)){const e=na(p,u,!1);return{moduleFileToTry:jo(i,e)}}if(d&&Zo(p,d,a)){const t=Ho(na(p,d,!1),fB(d,e));return{moduleFileToTry:jo(i,t)}}break;case 2:const t=p.indexOf("*"),r=p.slice(0,t),s=p.slice(t+1);if(m&&Gt(n,r,a)&&Rt(n,s,a)){const e=n.slice(r.length,n.length-s.length);return{moduleFileToTry:_C(i,e)}}if(f&&Gt(f,r,a)&&Rt(f,s,a)){const e=f.slice(r.length,f.length-s.length);return{moduleFileToTry:_C(i,e)}}if(!m&&Gt(n,r,a)&&Rt(n,s,a)){const e=n.slice(r.length,n.length-s.length);return{moduleFileToTry:_C(i,e)}}if(u&&Gt(u,r,a)&&Rt(u,s,a)){const e=u.slice(r.length,u.length-s.length);return{moduleFileToTry:_C(i,e)}}if(d&&Gt(d,r,a)&&Rt(d,s,a)){const t=d.slice(r.length,d.length-s.length),n=_C(i,t),o=mB(d,e);return o?{moduleFileToTry:Ho(n,o)}:void 0}}}else{if(Array.isArray(o))return d(o,(o=>lB(e,t,n,r,i,o,a,s,c,l)));if("object"==typeof o&&null!==o)for(const _ of Ee(o))if("default"===_||a.indexOf(_)>=0||iM(a,_)){const u=o[_],d=lB(e,t,n,r,i,u,a,s,c,l);if(d)return d}}}function _B({path:e,isRedirect:t},{getCanonicalFileName:n,canonicalSourceDirectory:r},i,o,a,s,c,l){if(!o.fileExists||!o.readFile)return;const _=zT(e);if(!_)return;const u=qM(s,o,a,i).getAllowedEndingsInPreferredOrder();let p=e,f=!1;if(!c){let t,n=_.packageRootIndex;for(;;){const{moduleFileToTry:r,packageRootPath:i,blockedByExports:s,verbatimFromExports:c}=v(n);if(1!==vk(a)){if(s)return;if(c)return r}if(i){p=i,f=!0;break}if(t||(t=r),n=e.indexOf(lo,n+1),-1===n){p=dB(t,u,a,o);break}}}if(t&&!f)return;const m=o.getGlobalTypingsCacheLocation&&o.getGlobalTypingsCacheLocation(),g=n(p.substring(0,_.topLevelNodeModulesIndex));if(!(Gt(r,g)||m&&Gt(n(m),g)))return;const h=p.substring(_.topLevelPackageNameIndex+1),y=mM(h);return 1===vk(a)&&y===h?void 0:y;function v(t){var r,s;const c=e.substring(0,t),p=jo(c,"package.json");let f=e,m=!1;const g=null==(s=null==(r=o.getPackageJsonInfoCache)?void 0:r.call(o))?void 0:s.getPackageJsonInfo(p);if(iR(g)||void 0===g&&o.fileExists(p)){const t=(null==g?void 0:g.contents.packageJsonContent)||wb(o.readFile(p)),r=l||yB(i,o,a);if(Tk(a)){const n=mM(c.substring(_.topLevelPackageNameIndex+1)),i=tR(a,r),s=(null==t?void 0:t.exports)?function(e,t,n,r,i,o,a){return"object"==typeof o&&null!==o&&!Array.isArray(o)&&ZR(o)?d(Ee(o),(s=>{const c=Bo(jo(i,s),void 0),l=Rt(s,"/")?1:s.includes("*")?2:0;return lB(e,t,n,r,c,o[s],a,l,!1,!1)})):lB(e,t,n,r,i,o,a,0,!1,!1)}(a,o,e,c,n,t.exports,i):void 0;if(s)return{...s,verbatimFromExports:!0};if(null==t?void 0:t.exports)return{moduleFileToTry:e,blockedByExports:!0}}const s=(null==t?void 0:t.typesVersions)?Kj(t.typesVersions):void 0;if(s){const t=cB(e.slice(c.length+1),s.paths,u,c,n,o,a);void 0===t?m=!0:f=jo(c,t)}const h=(null==t?void 0:t.typings)||(null==t?void 0:t.types)||(null==t?void 0:t.main)||"index.js";if(Ze(h)&&(!m||!nT(HS(s.paths),h))){const e=qo(h,c,n),r=n(f);if(zS(e)===zS(r))return{packageRootPath:c,moduleFileToTry:f};if("module"!==(null==t?void 0:t.type)&&!So(r,FS)&&Gt(r,e)&&Do(r)===Uo(e)&&"index"===zS(Fo(r)))return{packageRootPath:c,moduleFileToTry:f}}}else{const e=n(f.substring(_.packageRootIndex+1));if("index.d.ts"===e||"index.js"===e||"index.ts"===e||"index.tsx"===e)return{moduleFileToTry:f,packageRootPath:c}}return{moduleFileToTry:f}}}function uB(e,t,n){return B(t,(t=>{const r=gB(e,t,n);return void 0!==r&&hB(r)?void 0:r}))}function dB(e,t,n,r){if(So(e,[".json",".mjs",".cjs"]))return e;const i=zS(e);if(e===i)return e;const o=t.indexOf(2),a=t.indexOf(3);if(So(e,[".mts",".cts"])&&-1!==a&&a0===e||1===e));return-1!==r&&r(e[e.None=0]="None",e[e.TypeofEQString=1]="TypeofEQString",e[e.TypeofEQNumber=2]="TypeofEQNumber",e[e.TypeofEQBigInt=4]="TypeofEQBigInt",e[e.TypeofEQBoolean=8]="TypeofEQBoolean",e[e.TypeofEQSymbol=16]="TypeofEQSymbol",e[e.TypeofEQObject=32]="TypeofEQObject",e[e.TypeofEQFunction=64]="TypeofEQFunction",e[e.TypeofEQHostObject=128]="TypeofEQHostObject",e[e.TypeofNEString=256]="TypeofNEString",e[e.TypeofNENumber=512]="TypeofNENumber",e[e.TypeofNEBigInt=1024]="TypeofNEBigInt",e[e.TypeofNEBoolean=2048]="TypeofNEBoolean",e[e.TypeofNESymbol=4096]="TypeofNESymbol",e[e.TypeofNEObject=8192]="TypeofNEObject",e[e.TypeofNEFunction=16384]="TypeofNEFunction",e[e.TypeofNEHostObject=32768]="TypeofNEHostObject",e[e.EQUndefined=65536]="EQUndefined",e[e.EQNull=131072]="EQNull",e[e.EQUndefinedOrNull=262144]="EQUndefinedOrNull",e[e.NEUndefined=524288]="NEUndefined",e[e.NENull=1048576]="NENull",e[e.NEUndefinedOrNull=2097152]="NEUndefinedOrNull",e[e.Truthy=4194304]="Truthy",e[e.Falsy=8388608]="Falsy",e[e.IsUndefined=16777216]="IsUndefined",e[e.IsNull=33554432]="IsNull",e[e.IsUndefinedOrNull=50331648]="IsUndefinedOrNull",e[e.All=134217727]="All",e[e.BaseStringStrictFacts=3735041]="BaseStringStrictFacts",e[e.BaseStringFacts=12582401]="BaseStringFacts",e[e.StringStrictFacts=16317953]="StringStrictFacts",e[e.StringFacts=16776705]="StringFacts",e[e.EmptyStringStrictFacts=12123649]="EmptyStringStrictFacts",e[e.EmptyStringFacts=12582401]="EmptyStringFacts",e[e.NonEmptyStringStrictFacts=7929345]="NonEmptyStringStrictFacts",e[e.NonEmptyStringFacts=16776705]="NonEmptyStringFacts",e[e.BaseNumberStrictFacts=3734786]="BaseNumberStrictFacts",e[e.BaseNumberFacts=12582146]="BaseNumberFacts",e[e.NumberStrictFacts=16317698]="NumberStrictFacts",e[e.NumberFacts=16776450]="NumberFacts",e[e.ZeroNumberStrictFacts=12123394]="ZeroNumberStrictFacts",e[e.ZeroNumberFacts=12582146]="ZeroNumberFacts",e[e.NonZeroNumberStrictFacts=7929090]="NonZeroNumberStrictFacts",e[e.NonZeroNumberFacts=16776450]="NonZeroNumberFacts",e[e.BaseBigIntStrictFacts=3734276]="BaseBigIntStrictFacts",e[e.BaseBigIntFacts=12581636]="BaseBigIntFacts",e[e.BigIntStrictFacts=16317188]="BigIntStrictFacts",e[e.BigIntFacts=16775940]="BigIntFacts",e[e.ZeroBigIntStrictFacts=12122884]="ZeroBigIntStrictFacts",e[e.ZeroBigIntFacts=12581636]="ZeroBigIntFacts",e[e.NonZeroBigIntStrictFacts=7928580]="NonZeroBigIntStrictFacts",e[e.NonZeroBigIntFacts=16775940]="NonZeroBigIntFacts",e[e.BaseBooleanStrictFacts=3733256]="BaseBooleanStrictFacts",e[e.BaseBooleanFacts=12580616]="BaseBooleanFacts",e[e.BooleanStrictFacts=16316168]="BooleanStrictFacts",e[e.BooleanFacts=16774920]="BooleanFacts",e[e.FalseStrictFacts=12121864]="FalseStrictFacts",e[e.FalseFacts=12580616]="FalseFacts",e[e.TrueStrictFacts=7927560]="TrueStrictFacts",e[e.TrueFacts=16774920]="TrueFacts",e[e.SymbolStrictFacts=7925520]="SymbolStrictFacts",e[e.SymbolFacts=16772880]="SymbolFacts",e[e.ObjectStrictFacts=7888800]="ObjectStrictFacts",e[e.ObjectFacts=16736160]="ObjectFacts",e[e.FunctionStrictFacts=7880640]="FunctionStrictFacts",e[e.FunctionFacts=16728e3]="FunctionFacts",e[e.VoidFacts=9830144]="VoidFacts",e[e.UndefinedFacts=26607360]="UndefinedFacts",e[e.NullFacts=42917664]="NullFacts",e[e.EmptyObjectStrictFacts=83427327]="EmptyObjectStrictFacts",e[e.EmptyObjectFacts=83886079]="EmptyObjectFacts",e[e.UnknownFacts=83886079]="UnknownFacts",e[e.AllTypeofNE=556800]="AllTypeofNE",e[e.OrFactsMask=8256]="OrFactsMask",e[e.AndFactsMask=134209471]="AndFactsMask",e))(DB||{}),FB=new Map(Object.entries({string:256,number:512,bigint:1024,boolean:2048,symbol:4096,undefined:524288,object:8192,function:16384})),EB=(e=>(e[e.Normal=0]="Normal",e[e.Contextual=1]="Contextual",e[e.Inferential=2]="Inferential",e[e.SkipContextSensitive=4]="SkipContextSensitive",e[e.SkipGenericFunctions=8]="SkipGenericFunctions",e[e.IsForSignatureHelp=16]="IsForSignatureHelp",e[e.RestBindingElement=32]="RestBindingElement",e[e.TypeOnly=64]="TypeOnly",e))(EB||{}),PB=(e=>(e[e.None=0]="None",e[e.BivariantCallback=1]="BivariantCallback",e[e.StrictCallback=2]="StrictCallback",e[e.IgnoreReturnTypes=4]="IgnoreReturnTypes",e[e.StrictArity=8]="StrictArity",e[e.StrictTopSignature=16]="StrictTopSignature",e[e.Callback=3]="Callback",e))(PB||{}),AB=Zt(JB,(function(e){return!u_(e)})),IB=new Map(Object.entries({Uppercase:0,Lowercase:1,Capitalize:2,Uncapitalize:3,NoInfer:4})),OB=class{};function LB(){this.flags=0}function jB(e){return e.id||(e.id=CB,CB++),e.id}function RB(e){return e.id||(e.id=TB,TB++),e.id}function MB(e,t){const n=wM(e);return 1===n||t&&2===n}function BB(e){var t,n,r,i,o=[],a=e=>{o.push(e)},s=jx.getSymbolConstructor(),c=jx.getTypeConstructor(),_=jx.getSignatureConstructor(),p=0,m=0,g=0,h=0,y=0,C=0,D=!1,P=Hu(),L=[1],j=e.getCompilerOptions(),R=hk(j),M=yk(j),J=!!j.experimentalDecorators,U=Ak(j),V=Jk(j),W=Sk(j),H=Mk(j,"strictNullChecks"),G=Mk(j,"strictFunctionTypes"),Y=Mk(j,"strictBindCallApply"),Z=Mk(j,"strictPropertyInitialization"),ee=Mk(j,"strictBuiltinIteratorReturn"),ne=Mk(j,"noImplicitAny"),oe=Mk(j,"noImplicitThis"),ae=Mk(j,"useUnknownInCatchVariables"),_e=j.exactOptionalPropertyTypes,ue=!!j.noUncheckedSideEffectImports,pe=function(){const e=UA((function(e,t,r){return t?(t.stackIndex++,t.skip=!1,n(t,void 0),i(t,void 0)):t={checkMode:r,skip:!1,stackIndex:0,typeStack:[void 0,void 0]},Fm(e)&&Wm(e)?(t.skip=!0,i(t,Lj(e.right,r)),t):(function(e){const{left:t,operatorToken:n,right:r}=e;if(61===n.kind){!cF(t)||57!==t.operatorToken.kind&&56!==t.operatorToken.kind||nz(t,la._0_and_1_operations_cannot_be_mixed_without_parentheses,Da(t.operatorToken.kind),Da(n.kind)),!cF(r)||57!==r.operatorToken.kind&&56!==r.operatorToken.kind||nz(r,la._0_and_1_operations_cannot_be_mixed_without_parentheses,Da(r.operatorToken.kind),Da(n.kind));const i=cA(t,31),o=cj(i);3!==o&&(226===e.parent.kind?jo(i,la.This_binary_expression_is_never_nullish_Are_you_missing_parentheses):jo(i,1===o?la.This_expression_is_always_nullish:la.Right_operand_of_is_unreachable_because_the_left_operand_is_never_nullish))}}(e),64!==e.operatorToken.kind||210!==e.left.kind&&209!==e.left.kind||(t.skip=!0,i(t,oj(e.left,Lj(e.right,r),r,110===e.right.kind))),t)}),(function(e,n,r){if(!n.skip)return t(n,e)}),(function(e,t,o){if(!t.skip){const a=r(t);un.assertIsDefined(a),n(t,a),i(t,void 0);const s=e.kind;if(Qv(s)){let e=o.parent;for(;217===e.kind||Yv(e);)e=e.parent;(56===s||FF(e))&&YR(o.left,a,FF(e)?e.thenStatement:void 0),Hv(s)&&ZR(a,o.left)}}}),(function(e,n,r){if(!n.skip)return t(n,e)}),(function(e,t){let o;if(t.skip)o=r(t);else{const n=function(e){return e.typeStack[e.stackIndex]}(t);un.assertIsDefined(n);const i=r(t);un.assertIsDefined(i),o=lj(e.left,e.operatorToken,e.right,n,i,t.checkMode,e)}return t.skip=!1,n(t,void 0),i(t,void 0),t.stackIndex--,o}),(function(e,t,n){return i(e,t),e}));return(t,n)=>{const r=e(t,n);return un.assertIsDefined(r),r};function t(e,t){if(cF(t))return t;i(e,Lj(t,e.checkMode))}function n(e,t){e.typeStack[e.stackIndex]=t}function r(e){return e.typeStack[e.stackIndex+1]}function i(e,t){e.typeStack[e.stackIndex+1]=t}}(),be={getReferencedExportContainer:function(e,t){var n;const r=dc(e,zN);if(r){let e=kJ(r,function(e){return iu(e.parent)&&e===e.parent.name}(r));if(e){if(1048576&e.flags){const n=ds(e.exportSymbol);if(!t&&944&n.flags&&!(3&n.flags))return;e=n}const i=hs(e);if(i){if(512&i.flags&&307===(null==(n=i.valueDeclaration)?void 0:n.kind)){const e=i.valueDeclaration;return e!==hd(r)?void 0:e}return _c(r.parent,(e=>iu(e)&&ps(e)===i))}}}},getReferencedImportDeclaration:function(e){const t=Mw(e);if(t)return t;const n=dc(e,zN);if(n){const e=function(e){const t=aa(e).resolvedSymbol;return t&&t!==xt?t:Ue(e,e.escapedText,3257279,void 0,!0,void 0)}(n);if(Ra(e,111551)&&!Wa(e,111551))return ba(e)}},getReferencedDeclarationWithCollidingName:function(e){if(!Vl(e)){const t=dc(e,zN);if(t){const e=kJ(t);if(e&&sJ(e))return e.valueDeclaration}}},isDeclarationWithCollidingName:function(e){const t=dc(e,lu);if(t){const e=ps(t);if(e)return sJ(e)}return!1},isValueAliasDeclaration:e=>{const t=dc(e);return!t||!Me||cJ(t)},hasGlobalName:function(e){return Ne.has(pc(e))},isReferencedAliasDeclaration:(e,t)=>{const n=dc(e);return!n||!Me||uJ(n,t)},hasNodeCheckFlag:(e,t)=>{const n=dc(e);return!!n&&gJ(n,t)},isTopLevelValueImportEqualsWithEntityName:function(e){const t=dc(e,tE);return!(void 0===t||307!==t.parent.kind||!wm(t))&&(lJ(ps(t))&&t.moduleReference&&!Cd(t.moduleReference))},isDeclarationVisible:Lc,isImplementationOfOverload:dJ,requiresAddingImplicitUndefined:pJ,isExpandoFunctionDeclaration:fJ,getPropertiesOfContainerFunction:function(e){const t=dc(e,$F);if(!t)return l;const n=ps(t);return n&&vp(S_(n))||l},createTypeOfDeclaration:function(e,t,n,r,i){const o=dc(e,bC);if(!o)return XC.createToken(133);const a=ps(o);return xe.serializeTypeForDeclaration(o,a,t,1024|n,r,i)},createReturnTypeOfSignatureDeclaration:function(e,t,n,r,i){const o=dc(e,n_);return o?xe.serializeReturnTypeForSignature(o,t,1024|n,r,i):XC.createToken(133)},createTypeOfExpression:function(e,t,n,r,i){const o=dc(e,U_);return o?xe.serializeTypeForExpression(o,t,1024|n,r,i):XC.createToken(133)},createLiteralConstValue:function(e,t){return function(e,t,n){const r=1056&e.flags?xe.symbolToExpression(e.symbol,111551,t,void 0,void 0,n):e===Yt?XC.createTrue():e===Ht&&XC.createFalse();if(r)return r;const i=e.value;return"object"==typeof i?XC.createBigIntLiteral(i):"string"==typeof i?XC.createStringLiteral(i):i<0?XC.createPrefixUnaryExpression(41,XC.createNumericLiteral(-i)):XC.createNumericLiteral(i)}(S_(ps(e)),e,t)},isSymbolAccessible:Hs,isEntityNameVisible:nc,getConstantValue:e=>{const t=dc(e,yJ);return t?vJ(t):void 0},getEnumMemberValue:e=>{const t=dc(e,zE);return t?hJ(t):void 0},collectLinkedAliases:jc,markLinkedReferences:e=>{const t=dc(e);return t&&CE(t,0)},getReferencedValueDeclaration:function(e){if(!Vl(e)){const t=dc(e,zN);if(t){const e=kJ(t);if(e)return Ss(e).valueDeclaration}}},getReferencedValueDeclarations:function(e){if(!Vl(e)){const t=dc(e,zN);if(t){const e=kJ(t);if(e)return N(Ss(e).declarations,(e=>{switch(e.kind){case 260:case 169:case 208:case 172:case 303:case 304:case 306:case 210:case 262:case 218:case 219:case 263:case 231:case 266:case 174:case 177:case 178:case 267:return!0}return!1}))}}},getTypeReferenceSerializationKind:function(e,t){var n;const r=dc(e,Zl);if(!r)return 0;if(t&&!(t=dc(t)))return 0;let i=!1;if(nD(r)){const e=Ka(ab(r),111551,!0,!0,t);i=!!(null==(n=null==e?void 0:e.declarations)?void 0:n.every(Jl))}const o=Ka(r,111551,!0,!0,t),a=o&&2097152&o.flags?Ba(o):o;i||(i=!(!o||!Wa(o,111551)));const s=Ka(r,788968,!0,!0,t),c=s&&2097152&s.flags?Ba(s):s;if(o||i||(i=!(!s||!Wa(s,788968))),a&&a===c){const e=Wy(!1);if(e&&a===e)return 9;const t=S_(a);if(t&&J_(t))return i?10:1}if(!c)return i?11:0;const l=fu(c);return $c(l)?i?11:0:3&l.flags?11:YL(l,245760)?2:YL(l,528)?6:YL(l,296)?3:YL(l,2112)?4:YL(l,402653316)?5:UC(l)?7:YL(l,12288)?8:bJ(l)?10:yC(l)?7:11},isOptionalParameter:zm,isArgumentsLocalBinding:function(e){if(Vl(e))return!1;const t=dc(e,zN);if(!t)return!1;const n=t.parent;return!!n&&(!((HD(n)||ME(n))&&n.name===t)&&kJ(t)===Le)},getExternalModuleFileFromDeclaration:e=>{const t=dc(e,Cp);return t&&wJ(t)},isLiteralConstDeclaration:function(e){return!!(ef(e)||VF(e)&&uz(e))&&rk(S_(ps(e)))},isLateBound:e=>{const t=dc(e,lu),n=t&&ps(t);return!!(n&&4096&nx(n))},getJsxFactoryEntity:SJ,getJsxFragmentFactoryEntity:TJ,isBindingCapturedByNode:(e,t)=>{const n=dc(e),r=dc(t);return!!n&&!!r&&(VF(r)||VD(r))&&function(e,t){const n=aa(e);return!!n&&T(n.capturedBlockScopeBindings,ps(t))}(n,r)},getDeclarationStatementsForSourceFile:(e,t,n,r)=>{const i=dc(e);un.assert(i&&307===i.kind,"Non-sourcefile node passed into getDeclarationsForSourceFile");const o=ps(e);return o?(ts(o),o.exports?xe.symbolTableToDeclarationStatements(o.exports,e,t,n,r):[]):e.locals?xe.symbolTableToDeclarationStatements(e.locals,e,t,n,r):[]},isImportRequiredByAugmentation:function(e){const t=hd(e);if(!t.symbol)return!1;const n=wJ(e);if(!n)return!1;if(n===t)return!1;const r=ls(t.symbol);for(const e of Oe(r.values()))if(e.mergeId){const t=ds(e);if(t.declarations)for(const e of t.declarations)if(hd(e)===n)return!0}return!1},isDefinitelyReferenceToGlobalSymbolObject:wo,createLateBoundIndexSignatures:(e,t,n,r,i)=>{const o=e.symbol,a=Kf(S_(o)),s=eh(o),c=s&&kh(s,Oe(sd(o).values()));let l;for(const e of[a,c])if(u(e)){l||(l=[]);for(const o of e){if(o.declaration)continue;const s=xe.indexInfoToIndexSignatureDeclaration(o,t,n,r,i);s&&e===a&&(s.modifiers||(s.modifiers=XC.createNodeArray())).unshift(XC.createModifier(126)),s&&l.push(s)}}return l}},xe=function(){return{syntacticBuilderResolver:{evaluateEntityNameExpression:QM,isExpandoFunctionDeclaration:fJ,hasLateBindableName:Qu,shouldRemoveDeclaration:(e,t)=>!(8&e.internalFlags&&ob(t.name.expression)&&1&kA(t.name).flags),createRecoveryBoundary:e=>function(e){t&&t.throwIfCancellationRequested&&t.throwIfCancellationRequested();let n,r,i=!1;const o=e.tracker,a=e.trackedSymbols;e.trackedSymbols=void 0;const s=e.encounteredError;return e.tracker=new WB(e,{...o.inner,reportCyclicStructureError(){c((()=>o.reportCyclicStructureError()))},reportInaccessibleThisError(){c((()=>o.reportInaccessibleThisError()))},reportInaccessibleUniqueSymbolError(){c((()=>o.reportInaccessibleUniqueSymbolError()))},reportLikelyUnsafeImportRequiredError(e){c((()=>o.reportLikelyUnsafeImportRequiredError(e)))},reportNonSerializableProperty(e){c((()=>o.reportNonSerializableProperty(e)))},reportPrivateInBaseOfClassExpression(e){c((()=>o.reportPrivateInBaseOfClassExpression(e)))},trackSymbol:(e,t,r)=>((n??(n=[])).push([e,t,r]),!1),moduleResolverHost:e.tracker.moduleResolverHost},e.tracker.moduleResolverHost),{startRecoveryScope:function(){const e=(null==n?void 0:n.length)??0,t=(null==r?void 0:r.length)??0;return()=>{i=!1,n&&(n.length=e),r&&(r.length=t)}},finalizeBoundary:function(){return e.tracker=o,e.trackedSymbols=a,e.encounteredError=s,null==r||r.forEach((e=>e())),!i&&(null==n||n.forEach((([t,n,r])=>e.tracker.trackSymbol(t,n,r))),!0)},markError:c,hadError:()=>i};function c(e){i=!0,e&&(r??(r=[])).push(e)}}(e),isDefinitelyReferenceToGlobalSymbolObject:wo,getAllAccessorDeclarations:xJ,requiresAddingImplicitUndefined(e,t,n){var r;switch(e.kind){case 172:case 171:case 348:t??(t=ps(e));const i=S_(t);return!!(4&t.flags&&16777216&t.flags&&KT(e)&&(null==(r=t.links)?void 0:r.mappedType)&&function(e){const t=1048576&e.flags?e.types[0]:e;return!!(32768&t.flags)&&t!==Mt}(i));case 169:case 341:return pJ(e,n);default:un.assertNever(e)}},isOptionalParameter:zm,isUndefinedIdentifierExpression:e=>(un.assert(vm(e)),YB(e)===De),isEntityNameVisible:(e,t,n)=>nc(t,e.enclosingDeclaration,n),serializeExistingTypeNode:(e,t,r)=>function(e,t,r){const i=n(e,t);if(r&&!ED(i,(e=>!!(32768&e.flags)))&&me(e,t)){const n=ke.tryReuseExistingTypeNode(e,t);if(n)return XC.createUnionTypeNode([n,XC.createKeywordTypeNode(157)])}return _(i,e)}(e,t,!!r),serializeReturnTypeForSignature(e,t){const n=e,r=ig(t),i=n.enclosingSymbolTypes.get(RB(ps(t)))??tS(Tg(r),n.mapper);return pe(n,r,i)},serializeTypeOfExpression(e,t){const n=e;return _(tS(Sw(tJ(t)),n.mapper),n)},serializeTypeOfDeclaration(e,t,n){var r;const i=e;n??(n=ps(t));let o=null==(r=i.enclosingSymbolTypes)?void 0:r.get(RB(n));return void 0===o&&(o=!n||133120&n.flags?Et:tS(BC(S_(n)),i.mapper)),t&&(oD(t)||bP(t))&&pJ(t,i.enclosingDeclaration)&&(o=tw(o)),_e(n,i,o)},serializeNameOfParameter:(e,t)=>M(ps(t),t,e),serializeEntityName(e,t){const n=e,r=YB(t,!0);if(r&&Vs(r,n.enclosingDeclaration))return ne(r,n,1160127)},serializeTypeName:(e,t,n,r)=>function(e,t,n,r){const i=n?111551:788968,o=Ka(t,i,!0);if(!o)return;const a=2097152&o.flags?Ba(o):o;return 0!==Hs(o,e.enclosingDeclaration,i,!1).accessibility?void 0:Y(a,e,i,r)}(e,t,n,r),getJsDocPropertyOverride(e,t,r){const i=e,o=zN(r.name)?r.name:r.name.right,a=Uc(n(i,t),o.escapedText);return a&&r.typeExpression&&n(i,r.typeExpression.type)!==a?_(a,i):void 0},enterNewScope(e,t){if(n_(t)||aP(t)){const n=ig(t);return C(e,t,kd(n,!0)[0],n.typeParameters)}return C(e,t,void 0,PD(t)?Ix(t):[pu(ps(t.typeParameter))])},markNodeReuse:(e,t,n)=>r(e,t,n),trackExistingEntityName:(e,t)=>fe(t,e),trackComputedName(e,t){J(t,e.enclosingDeclaration,e)},getModuleSpecifierOverride(e,t,n){const r=e;if(r.bundled||r.enclosingFile!==hd(n)){let e=n.text;const i=aa(t).resolvedSymbol,o=t.isTypeOf?111551:788968,a=i&&0===Hs(i,r.enclosingDeclaration,o,!1).accessibility&&z(i,r,o,!0)[0];if(a&&Gu(a))e=G(a,r);else{const n=wJ(t);n&&(e=G(n.symbol,r))}return e.includes("/node_modules/")&&(r.encounteredError=!0,r.tracker.reportLikelyUnsafeImportRequiredError&&r.tracker.reportLikelyUnsafeImportRequiredError(e)),e}},canReuseTypeNode:(e,t)=>me(e,t),canReuseTypeNodeAnnotation(e,t,n,r,i){var o;const a=e;if(void 0===a.enclosingDeclaration)return!1;r??(r=ps(t));let s=null==(o=a.enclosingSymbolTypes)?void 0:o.get(RB(r));void 0===s&&(s=98304&r.flags?178===t.kind?b_(r):t_(r):Zg(t)?Tg(ig(t)):S_(r));let c=Sc(n);return!!$c(c)||(i&&c&&(c=tw(c,!oD(t))),!!c&&function(e,t,n){return n===t||!!e&&(((sD(e)||cD(e))&&e.questionToken||!(!oD(e)||!Bm(e)))&&ON(t,524288)===n)}(t,s,c)&&le(n,s))}},typeToTypeNode:(e,t,n,r,i)=>o(t,n,r,i,(t=>_(e,t))),typePredicateToTypePredicateNode:(e,t,n,r,i)=>o(t,n,r,i,(t=>P(e,t))),serializeTypeForExpression:(e,t,n,r,i)=>o(t,n,r,i,(t=>ke.serializeTypeOfExpression(e,t))),serializeTypeForDeclaration:(e,t,n,r,i,a)=>o(n,r,i,a,(n=>ke.serializeTypeOfDeclaration(e,t,n))),serializeReturnTypeForSignature:(e,t,n,r,i)=>o(t,n,r,i,(t=>ke.serializeReturnTypeForSignature(e,ps(e),t))),indexInfoToIndexSignatureDeclaration:(e,t,n,r,i)=>o(t,n,r,i,(t=>x(e,t,void 0))),signatureToSignatureDeclaration:(e,t,n,r,i,a)=>o(n,r,i,a,(n=>S(e,t,n))),symbolToEntityName:(e,t,n,r,i,a)=>o(n,r,i,a,(n=>te(e,n,t,!1))),symbolToExpression:(e,t,n,r,i,a)=>o(n,r,i,a,(n=>ne(e,n,t))),symbolToTypeParameterDeclarations:(e,t,n,r,i)=>o(t,n,r,i,(t=>U(e,t))),symbolToParameterDeclaration:(e,t,n,r,i)=>o(t,n,r,i,(t=>L(e,t))),typeParameterToDeclaration:(e,t,n,r,i)=>o(t,n,r,i,(t=>F(e,t))),symbolTableToDeclarationStatements:(e,t,i,a,c)=>o(t,i,a,c,(t=>function(e,t){var i;const o=oe(XC.createPropertyDeclaration,174,!0),a=oe(((e,t,n,r)=>XC.createPropertySignature(e,t,n,r)),173,!1),c=t.enclosingDeclaration;let p=[];const m=new Set,g=[],h=t;t={...h,usedSymbolNames:new Set(h.usedSymbolNames),remappedSymbolNames:new Map,remappedSymbolReferences:new Map(null==(i=h.remappedSymbolReferences)?void 0:i.entries()),tracker:void 0};const y={...h.tracker.inner,trackSymbol:(e,n,r)=>{var i,o;if(null==(i=t.remappedSymbolNames)?void 0:i.has(RB(e)))return!1;if(0===Hs(e,n,r,!1).accessibility){const n=q(e,t,r);if(!(4&e.flags)){const e=n[0],t=hd(h.enclosingDeclaration);$(e.declarations,(e=>hd(e)===t))&&z(e)}}else if(null==(o=h.tracker.inner)?void 0:o.trackSymbol)return h.tracker.inner.trackSymbol(e,n,r);return!1}};t.tracker=new WB(t,y,h.tracker.moduleResolverHost),td(e,((e,t)=>{he(e,fc(t))}));let T=!t.bundled;const C=e.get("export=");return C&&e.size>1&&2098688&C.flags&&(e=Hu()).set("export=",C),L(e),w=function(e){const t=k(e,(e=>fE(e)&&!e.moduleSpecifier&&!e.attributes&&!!e.exportClause&&mE(e.exportClause)));if(t>=0){const n=e[t],r=B(n.exportClause.elements,(t=>{if(!t.propertyName&&11!==t.name.kind){const n=t.name,r=N(X(e),(t=>bc(e[t],n)));if(u(r)&&v(r,(t=>UT(e[t])))){for(const t of r)e[t]=P(e[t]);return}}return t}));u(r)?e[t]=XC.updateExportDeclaration(n,n.modifiers,n.isTypeOnly,XC.updateNamedExports(n.exportClause,r),n.moduleSpecifier,n.attributes):qt(e,t)}return e}(w=function(e){const t=N(e,(e=>fE(e)&&!e.moduleSpecifier&&!!e.exportClause&&mE(e.exportClause)));u(t)>1&&(e=[...N(e,(e=>!fE(e)||!!e.moduleSpecifier||!e.exportClause)),XC.createExportDeclaration(void 0,!1,XC.createNamedExports(O(t,(e=>nt(e.exportClause,mE).elements))),void 0)]);const n=N(e,(e=>fE(e)&&!!e.moduleSpecifier&&!!e.exportClause&&mE(e.exportClause)));if(u(n)>1){const t=Je(n,(e=>TN(e.moduleSpecifier)?">"+e.moduleSpecifier.text:">"));if(t.length!==n.length)for(const n of t)n.length>1&&(e=[...N(e,(e=>!n.includes(e))),XC.createExportDeclaration(void 0,!1,XC.createNamedExports(O(n,(e=>nt(e.exportClause,mE).elements))),n[0].moduleSpecifier)])}return e}(w=function(e){const t=b(e,pE),n=k(e,QF);let r=-1!==n?e[n]:void 0;if(r&&t&&t.isExportEquals&&zN(t.expression)&&zN(r.name)&&mc(r.name)===mc(t.expression)&&r.body&&YF(r.body)){const i=N(e,(e=>!!(32&Mv(e)))),o=r.name;let a=r.body;if(u(i)&&(r=XC.updateModuleDeclaration(r,r.modifiers,r.name,a=XC.updateModuleBlock(a,XC.createNodeArray([...r.body.statements,XC.createExportDeclaration(void 0,!1,XC.createNamedExports(E(O(i,(e=>{return wF(t=e)?N(E(t.declarationList.declarations,Tc),D):N([Tc(t)],D);var t})),(e=>XC.createExportSpecifier(!1,void 0,e)))),void 0)]))),e=[...e.slice(0,n),r,...e.slice(n+1)]),!b(e,(e=>e!==r&&bc(e,o)))){p=[];const n=!$(a.statements,(e=>wv(e,32)||pE(e)||fE(e)));d(a.statements,(e=>{U(e,n?32:0)})),e=[...N(e,(e=>e!==r&&e!==t)),...p]}}return e}(w=p))),c&&(qE(c)&&Qp(c)||QF(c))&&(!$(w,G_)||!H_(w)&&$(w,K_))&&w.push(BP(XC)),w;var w;function D(e){return!!e&&80===e.kind}function P(e){const t=-129&Mv(e)|32;return XC.replaceModifiers(e,t)}function A(e){const t=-33&Mv(e);return XC.replaceModifiers(e,t)}function L(e,t,n){t||g.push(new Map),e.forEach((e=>{j(e,!1,!!n)})),t||(g[g.length-1].forEach((e=>{j(e,!0,!!n)})),g.pop())}function j(e,n,r){vp(S_(e));const i=ds(e);if(!m.has(RB(i))&&(m.add(RB(i)),!n||u(e.declarations)&&$(e.declarations,(e=>!!_c(e,(e=>e===c)))))){const i=se(t);t.tracker.pushErrorFallbackNode(b(e.declarations,(e=>hd(e)===t.enclosingFile))),J(e,n,r),t.tracker.popErrorFallbackNode(),i()}}function J(e,i,c,p=e.escapedName){var f,m,g,h,y,x;const k=fc(p),S="default"===p;if(i&&!(131072&t.flags)&&Fh(k)&&!S)return void(t.encounteredError=!0);let T=S&&!!(-113&e.flags||16&e.flags&&u(vp(S_(e))))&&!(2097152&e.flags),C=!T&&!i&&Fh(k)&&!S;(T||C)&&(i=!0);const w=(i?0:32)|(S&&!T?2048:0),D=1536&e.flags&&7&e.flags&&"export="!==p,P=D&&ie(S_(e),e);if((8208&e.flags||P)&&H(S_(e),e,he(e,k),w),524288&e.flags&&function(e,n,r){var i;const o=ru(e),a=E(oa(e).typeParameters,(e=>F(e,t))),c=null==(i=e.declarations)?void 0:i.find(Ng),l=cl(c?c.comment||c.parent.comment:void 0),u=s(t);t.flags|=8388608;const d=t.enclosingDeclaration;t.enclosingDeclaration=c;const p=c&&c.typeExpression&&VE(c.typeExpression)&&ke.tryReuseExistingTypeNode(t,c.typeExpression.type)||_(o,t);U(mw(XC.createTypeAliasDeclaration(void 0,he(e,n),a,p),l?[{kind:3,text:"*\n * "+l.replace(/\n/g,"\n * ")+"\n ",pos:-1,end:-1,hasTrailingNewLine:!0}]:[]),r),u(),t.enclosingDeclaration=d}(e,k,w),98311&e.flags&&"export="!==p&&!(4194304&e.flags)&&!(32&e.flags)&&!(8192&e.flags)&&!P)if(c)re(e)&&(C=!1,T=!1);else{const n=S_(e),o=he(e,k);if(n.symbol&&n.symbol!==e&&16&n.symbol.flags&&$(n.symbol.declarations,jT)&&((null==(f=n.symbol.members)?void 0:f.size)||(null==(m=n.symbol.exports)?void 0:m.size)))t.remappedSymbolReferences||(t.remappedSymbolReferences=new Map),t.remappedSymbolReferences.set(RB(n.symbol),e),J(n.symbol,i,c,p),t.remappedSymbolReferences.delete(RB(n.symbol));else if(16&e.flags||!ie(n,e)){const a=2&e.flags?cE(e)?2:1:(null==(g=e.parent)?void 0:g.valueDeclaration)&&qE(null==(h=e.parent)?void 0:h.valueDeclaration)?2:void 0,s=!T&&4&e.flags?me(o,e):o;let c=e.declarations&&b(e.declarations,(e=>VF(e)));c&&WF(c.parent)&&1===c.parent.declarations.length&&(c=c.parent.parent);const l=null==(y=e.declarations)?void 0:y.find(HD);if(l&&cF(l.parent)&&zN(l.parent.right)&&(null==(x=n.symbol)?void 0:x.valueDeclaration)&&qE(n.symbol.valueDeclaration)){const e=o===l.parent.right.escapedText?void 0:l.parent.right;U(XC.createExportDeclaration(void 0,!1,XC.createNamedExports([XC.createExportSpecifier(!1,e,o)])),0),t.tracker.trackSymbol(n.symbol,t.enclosingDeclaration,111551)}else U(r(t,XC.createVariableStatement(void 0,XC.createVariableDeclarationList([XC.createVariableDeclaration(s,void 0,ue(t,void 0,n,e))],a)),c),s!==o?-33&w:w),s===o||i||(U(XC.createExportDeclaration(void 0,!1,XC.createNamedExports([XC.createExportSpecifier(!1,s,o)])),0),C=!1,T=!1)}else H(n,e,o,w)}if(384&e.flags&&function(e,t,n){U(XC.createEnumDeclaration(XC.createModifiersFromModifierFlags(tj(e)?4096:0),he(e,t),E(N(vp(S_(e)),(e=>!!(8&e.flags))),(e=>{const t=e.declarations&&e.declarations[0]&&zE(e.declarations[0])?vJ(e.declarations[0]):void 0;return XC.createEnumMember(fc(e.escapedName),void 0===t?void 0:"string"==typeof t?XC.createStringLiteral(t):XC.createNumericLiteral(t))}))),n)}(e,k,w),32&e.flags&&(4&e.flags&&e.valueDeclaration&&cF(e.valueDeclaration.parent)&&pF(e.valueDeclaration.parent.right)?Z(e,he(e,k),w):function(e,i,a){var s,c;const p=null==(s=e.declarations)?void 0:s.find(__),f=t.enclosingDeclaration;t.enclosingDeclaration=p||f;const m=E(M_(e),(e=>F(e,t))),g=ld(nu(e)),h=Z_(g),y=p&&vh(p),v=y&&function(e){const r=B(e,(e=>{const r=t.enclosingDeclaration;t.enclosingDeclaration=e;let i=e.expression;if(ob(i)){if(zN(i)&&""===mc(i))return o(void 0);let e;if(({introducesError:e,node:i}=fe(i,t)),e)return o(void 0)}return o(XC.createExpressionWithTypeArguments(i,E(e.typeArguments,(e=>ke.tryReuseExistingTypeNode(t,e)||_(n(t,e),t)))));function o(e){return t.enclosingDeclaration=r,e}}));if(r.length===e.length)return r}(y)||B(function(e){let t=l;if(e.symbol.declarations)for(const n of e.symbol.declarations){const e=vh(n);if(e)for(const n of e){const e=dk(n);$c(e)||(t===l?t=[e]:t.push(e))}}return t}(g),pe),b=S_(e),x=!!(null==(c=b.symbol)?void 0:c.valueDeclaration)&&__(b.symbol.valueDeclaration),k=x?Q_(b):wt,S=[...u(h)?[XC.createHeritageClause(96,E(h,(e=>function(e,n,r){const i=de(e,111551);if(i)return i;const o=me(`${r}_base`);return U(XC.createVariableStatement(void 0,XC.createVariableDeclarationList([XC.createVariableDeclaration(o,void 0,_(n,t))],2)),0),XC.createExpressionWithTypeArguments(XC.createIdentifier(o),void 0)}(e,k,i))))]:[],...u(v)?[XC.createHeritageClause(119,v)]:[]],T=function(e,t,n){if(!u(t))return n;const r=new Map;d(n,(e=>{r.set(e.escapedName,e)}));for(const n of t){const t=vp(ld(n,e.thisType));for(const e of t){const t=r.get(e.escapedName);t&&e.parent===t.parent&&r.delete(e.escapedName)}}return Oe(r.values())}(g,h,vp(g)),C=N(T,(e=>{const t=e.valueDeclaration;return!(!t||kc(t)&&qN(t.name))})),w=$(T,(e=>{const t=e.valueDeclaration;return!!t&&kc(t)&&qN(t.name)}))?[XC.createPropertyDeclaration(void 0,XC.createPrivateIdentifier("#private"),void 0,void 0,void 0)]:l,D=O(C,(e=>o(e,!1,h[0]))),P=O(N(vp(b),(e=>!(4194304&e.flags||"prototype"===e.escapedName||Y(e)))),(e=>o(e,!0,k))),A=!x&&e.valueDeclaration&&Fm(e.valueDeclaration)&&!$(Rf(b,1))?[XC.createConstructorDeclaration(XC.createModifiersFromModifierFlags(2),[],void 0)]:le(1,b,k,176),I=_e(g,h[0]);t.enclosingDeclaration=f,U(r(t,XC.createClassDeclaration(void 0,i,m,S,[...I,...P,...A,...D,...w]),e.declarations&&N(e.declarations,(e=>HF(e)||pF(e)))[0]),a)}(e,he(e,k),w)),(1536&e.flags&&(!D||function(e){return v(V(e),(e=>!(111551&za(Ma(e)))))}(e))||P)&&function(e,n,r){const i=Be(V(e),(t=>t.parent&&t.parent===e?"real":"merged")),o=i.get("real")||l,a=i.get("merged")||l;u(o)&&Q(o,he(e,n),r,!!(67108880&e.flags));if(u(a)){const r=hd(t.enclosingDeclaration),i=he(e,n),o=XC.createModuleBlock([XC.createExportDeclaration(void 0,!1,XC.createNamedExports(B(N(a,(e=>"export="!==e.escapedName)),(n=>{var i,o;const a=fc(n.escapedName),s=he(n,a),c=n.declarations&&ba(n);if(r&&(c?r!==hd(c):!$(n.declarations,(e=>hd(e)===r))))return void(null==(o=null==(i=t.tracker)?void 0:i.reportNonlocalAugmentation)||o.call(i,r,e,n));const l=c&&ja(c,!0);z(l||n);const _=l?he(l,fc(l.escapedName)):s;return XC.createExportSpecifier(!1,a===_?void 0:_,a)}))))]);U(XC.createModuleDeclaration(void 0,XC.createIdentifier(i),o,32),0)}}(e,k,w),64&e.flags&&!(32&e.flags)&&function(e,n,r){const i=nu(e),o=E(M_(e),(e=>F(e,t))),s=Z_(i),c=u(s)?Fb(s):void 0,l=O(vp(i),(e=>function(e,t){return a(e,!1,t)}(e,c))),_=le(0,i,c,179),d=le(1,i,c,180),p=_e(i,c),f=u(s)?[XC.createHeritageClause(96,B(s,(e=>de(e,111551))))]:void 0;U(XC.createInterfaceDeclaration(void 0,he(e,n),o,f,[...p,...d,..._,...l]),r)}(e,k,w),2097152&e.flags&&Z(e,he(e,k),w),4&e.flags&&"export="===e.escapedName&&re(e),8388608&e.flags&&e.declarations)for(const n of e.declarations){const e=Qa(n,n.moduleSpecifier);e&&U(XC.createExportDeclaration(void 0,n.isTypeOnly,void 0,XC.createStringLiteral(G(e,t))),0)}T?U(XC.createExportAssignment(void 0,!1,XC.createIdentifier(he(e,k))),0):C&&U(XC.createExportDeclaration(void 0,!1,XC.createNamedExports([XC.createExportSpecifier(!1,he(e,k),k)])),0)}function z(e){if($(e.declarations,Xh))return;un.assertIsDefined(g[g.length-1]),me(fc(e.escapedName),e);const t=!!(2097152&e.flags)&&!$(e.declarations,(e=>!!_c(e,fE)||_E(e)||tE(e)&&!xE(e.moduleReference)));g[t?0:g.length-1].set(RB(e),e)}function U(e,n){if(rI(e)){let r=0;const i=t.enclosingDeclaration&&(Ng(t.enclosingDeclaration)?hd(t.enclosingDeclaration):t.enclosingDeclaration);32&n&&i&&(function(e){return qE(e)&&(Qp(e)||Yp(e))||ap(e)&&!up(e)}(i)||QF(i))&&UT(e)&&(r|=32),!T||32&r||i&&33554432&i.flags||!(XF(e)||wF(e)||$F(e)||HF(e)||QF(e))||(r|=128),2048&n&&(HF(e)||KF(e)||$F(e))&&(r|=2048),r&&(e=XC.replaceModifiers(e,r|Mv(e)))}p.push(e)}function V(e){let t=Oe(cs(e).values());const n=ds(e);if(n!==e){const e=new Set(t);for(const t of cs(n).values())111551&za(Ma(t))||e.add(t);t=Oe(e)}return N(t,(e=>Y(e)&&fs(e.escapedName,99)))}function H(e,n,i,o){const a=Rf(e,0);for(const e of a){const n=S(e,262,t,{name:XC.createIdentifier(i)});U(r(t,n,K(e)),o)}1536&n.flags&&n.exports&&n.exports.size||Q(N(vp(e),Y),i,o,!0)}function K(e){if(e.declaration&&e.declaration.parent){if(cF(e.declaration.parent)&&5===eg(e.declaration.parent))return e.declaration.parent;if(VF(e.declaration.parent)&&e.declaration.parent.parent)return e.declaration.parent.parent}return e.declaration}function Q(e,n,r,i){if(u(e)){const o=Be(e,(e=>!u(e.declarations)||$(e.declarations,(e=>hd(e)===hd(t.enclosingDeclaration)))?"local":"remote")).get("local")||l;let a=aI.createModuleDeclaration(void 0,XC.createIdentifier(n),XC.createModuleBlock([]),32);wT(a,c),a.locals=Hu(e),a.symbol=e[0].parent;const s=p;p=[];const _=T;T=!1;const d={...t,enclosingDeclaration:a},f=t;t=d,L(Hu(o),i,!0),t=f,T=_;const m=p;p=s;const g=E(m,(e=>pE(e)&&!e.isExportEquals&&zN(e.expression)?XC.createExportDeclaration(void 0,!1,XC.createNamedExports([XC.createExportSpecifier(!1,e.expression,XC.createIdentifier("default"))])):e)),h=v(g,(e=>wv(e,32)))?E(g,A):g;a=XC.updateModuleDeclaration(a,a.modifiers,a.name,XC.createModuleBlock(h)),U(a,r)}}function Y(e){return!!(2887656&e.flags)||!(4194304&e.flags||"prototype"===e.escapedName||e.valueDeclaration&&Nv(e.valueDeclaration)&&__(e.valueDeclaration.parent))}function Z(e,n,r){var i,o,a,s,c;const l=ba(e);if(!l)return un.fail();const _=ds(ja(l,!0));if(!_)return;let u=lp(_)&&f(e.declarations,(e=>{if(dE(e)||gE(e))return Vd(e.propertyName||e.name);if(cF(e)||pE(e)){const t=pE(e)?e.expression:e.right;if(HD(t))return mc(t.name)}if(xa(e)){const t=Tc(e);if(t&&zN(t))return mc(t)}}))||fc(_.escapedName);"export="===u&&W&&(u="default");const d=he(_,u);switch(z(_),l.kind){case 208:if(260===(null==(o=null==(i=l.parent)?void 0:i.parent)?void 0:o.kind)){const e=G(_.parent||_,t),{propertyName:r}=l;U(XC.createImportDeclaration(void 0,XC.createImportClause(!1,void 0,XC.createNamedImports([XC.createImportSpecifier(!1,r&&zN(r)?XC.createIdentifier(mc(r)):void 0,XC.createIdentifier(n))])),XC.createStringLiteral(e),void 0),0);break}un.failBadSyntaxKind((null==(a=l.parent)?void 0:a.parent)||l,"Unhandled binding element grandparent kind in declaration serialization");break;case 304:226===(null==(c=null==(s=l.parent)?void 0:s.parent)?void 0:c.kind)&&ee(fc(e.escapedName),d);break;case 260:if(HD(l.initializer)){const e=l.initializer,i=XC.createUniqueName(n),o=G(_.parent||_,t);U(XC.createImportEqualsDeclaration(void 0,!1,i,XC.createExternalModuleReference(XC.createStringLiteral(o))),0),U(XC.createImportEqualsDeclaration(void 0,!1,XC.createIdentifier(n),XC.createQualifiedName(i,e.name)),r);break}case 271:if("export="===_.escapedName&&$(_.declarations,(e=>qE(e)&&Yp(e)))){re(e);break}const p=!(512&_.flags||VF(l));U(XC.createImportEqualsDeclaration(void 0,!1,XC.createIdentifier(n),p?te(_,t,-1,!1):XC.createExternalModuleReference(XC.createStringLiteral(G(_,t)))),p?r:0);break;case 270:U(XC.createNamespaceExportDeclaration(mc(l.name)),0);break;case 273:{const e=G(_.parent||_,t),r=t.bundled?XC.createStringLiteral(e):l.parent.moduleSpecifier,i=nE(l.parent)?l.parent.attributes:void 0,o=PP(l.parent);U(XC.createImportDeclaration(void 0,XC.createImportClause(o,XC.createIdentifier(n),void 0),r,i),0);break}case 274:{const e=G(_.parent||_,t),r=t.bundled?XC.createStringLiteral(e):l.parent.parent.moduleSpecifier,i=PP(l.parent.parent);U(XC.createImportDeclaration(void 0,XC.createImportClause(i,void 0,XC.createNamespaceImport(XC.createIdentifier(n))),r,l.parent.attributes),0);break}case 280:U(XC.createExportDeclaration(void 0,!1,XC.createNamespaceExport(XC.createIdentifier(n)),XC.createStringLiteral(G(_,t))),0);break;case 276:{const e=G(_.parent||_,t),r=t.bundled?XC.createStringLiteral(e):l.parent.parent.parent.moduleSpecifier,i=PP(l.parent.parent.parent);U(XC.createImportDeclaration(void 0,XC.createImportClause(i,void 0,XC.createNamedImports([XC.createImportSpecifier(!1,n!==u?XC.createIdentifier(u):void 0,XC.createIdentifier(n))])),r,l.parent.parent.parent.attributes),0);break}case 281:const f=l.parent.parent.moduleSpecifier;if(f){const e=l.propertyName;e&&$d(e)&&(u="default")}ee(fc(e.escapedName),f?u:d,f&&Lu(f)?XC.createStringLiteral(f.text):void 0);break;case 277:re(e);break;case 226:case 211:case 212:"default"===e.escapedName||"export="===e.escapedName?re(e):ee(n,d);break;default:return un.failBadSyntaxKind(l,"Unhandled alias declaration kind in symbol serializer!")}}function ee(e,t,n){U(XC.createExportDeclaration(void 0,!1,XC.createNamedExports([XC.createExportSpecifier(!1,e!==t?t:void 0,e)]),n),0)}function re(e){var n;if(4194304&e.flags)return!1;const r=fc(e.escapedName),i="export="===r,o=i||"default"===r,a=e.declarations&&ba(e),s=a&&ja(a,!0);if(s&&u(s.declarations)&&$(s.declarations,(e=>hd(e)===hd(c)))){const n=a&&(pE(a)||cF(a)?mh(a):gh(a)),l=n&&ob(n)?function(e){switch(e.kind){case 80:return e;case 166:do{e=e.left}while(80!==e.kind);return e;case 211:do{if(Zm(e.expression)&&!qN(e.name))return e.name;e=e.expression}while(80!==e.kind);return e}}(n):void 0,_=l&&Ka(l,-1,!0,!0,c);(_||s)&&z(_||s);const u=t.tracker.disableTrackSymbol;if(t.tracker.disableTrackSymbol=!0,o)p.push(XC.createExportAssignment(void 0,i,ne(s,t,-1)));else if(l===n&&l)ee(r,mc(l));else if(n&&pF(n))ee(r,he(s,hc(s)));else{const n=me(r,e);U(XC.createImportEqualsDeclaration(void 0,!1,XC.createIdentifier(n),te(s,t,-1,!1)),0),ee(r,n)}return t.tracker.disableTrackSymbol=u,!0}{const a=me(r,e),c=Sw(S_(ds(e)));if(ie(c,e))H(c,e,a,o?0:32);else{const i=267!==(null==(n=t.enclosingDeclaration)?void 0:n.kind)||98304&e.flags&&!(65536&e.flags)?2:1;U(XC.createVariableStatement(void 0,XC.createVariableDeclarationList([XC.createVariableDeclaration(a,void 0,ue(t,void 0,c,e))],i)),s&&4&s.flags&&"export="===s.escapedName?128:r===a?32:0)}return o?(p.push(XC.createExportAssignment(void 0,i,XC.createIdentifier(a))),!0):r!==a&&(ee(r,a),!0)}}function ie(e,n){var r;const i=hd(t.enclosingDeclaration);return 48&mx(e)&&!$(null==(r=e.symbol)?void 0:r.declarations,v_)&&!u(Kf(e))&&!xc(e)&&!(!u(N(vp(e),Y))&&!u(Rf(e,0)))&&!u(Rf(e,1))&&!ce(n,c)&&!(e.symbol&&$(e.symbol.declarations,(e=>hd(e)!==i)))&&!$(vp(e),(e=>Xu(e.escapedName)))&&!$(vp(e),(e=>$(e.declarations,(e=>hd(e)!==i))))&&v(vp(e),(e=>!(!fs(hc(e),R)||98304&e.flags&&T_(e)!==b_(e))))}function oe(e,n,i){return function(o,a,s){var c,l,_,u,p,f;const m=rx(o),g=!!(2&m);if(a&&2887656&o.flags)return[];if(4194304&o.flags||"constructor"===o.escapedName||s&&Cf(s,o.escapedName)&&WL(Cf(s,o.escapedName))===WL(o)&&(16777216&o.flags)==(16777216&Cf(s,o.escapedName).flags)&&_S(S_(o),Uc(s,o.escapedName)))return[];const h=-1025&m|(a?256:0),y=ae(o,t),v=null==(c=o.declarations)?void 0:c.find(en(cD,u_,VF,sD,cF,HD));if(98304&o.flags&&i){const e=[];if(65536&o.flags){const n=o.declarations&&d(o.declarations,(e=>178===e.kind?e:GD(e)&&tg(e)?d(e.arguments[2].properties,(e=>{const t=Tc(e);if(t&&zN(t)&&"set"===mc(t))return e})):void 0));un.assert(!!n);const i=i_(n)?ig(n).parameters[0]:void 0,a=null==(l=o.declarations)?void 0:l.find(Cu);e.push(r(t,XC.createSetAccessorDeclaration(XC.createModifiersFromModifierFlags(h),y,[XC.createParameterDeclaration(void 0,void 0,i?M(i,I(i),t):"value",void 0,g?void 0:ue(t,a,b_(o),o))],void 0),a??v))}if(32768&o.flags){const n=2&m,i=null==(_=o.declarations)?void 0:_.find(wu);e.push(r(t,XC.createGetAccessorDeclaration(XC.createModifiersFromModifierFlags(h),y,[],n?void 0:ue(t,i,S_(o),o),void 0),i??v))}return e}if(98311&o.flags)return r(t,e(XC.createModifiersFromModifierFlags((WL(o)?8:0)|h),y,16777216&o.flags?XC.createToken(58):void 0,g?void 0:ue(t,null==(u=o.declarations)?void 0:u.find(fD),b_(o),o),void 0),(null==(p=o.declarations)?void 0:p.find(en(cD,VF)))||v);if(8208&o.flags){const i=Rf(S_(o),0);if(2&h)return r(t,e(XC.createModifiersFromModifierFlags((WL(o)?8:0)|h),y,16777216&o.flags?XC.createToken(58):void 0,void 0,void 0),(null==(f=o.declarations)?void 0:f.find(i_))||i[0]&&i[0].declaration||o.declarations&&o.declarations[0]);const a=[];for(const e of i){const i=S(e,n,t,{name:y,questionToken:16777216&o.flags?XC.createToken(58):void 0,modifiers:h?XC.createModifiersFromModifierFlags(h):void 0}),s=e.declaration&&dg(e.declaration.parent)?e.declaration.parent:e.declaration;a.push(r(t,i,s))}return a}return un.fail(`Unhandled class member kind! ${o.__debugFlags||o.flags}`)}}function le(e,n,i,o){const a=Rf(n,e);if(1===e){if(!i&&v(a,(e=>0===u(e.parameters))))return[];if(i){const e=Rf(i,1);if(!u(e)&&v(a,(e=>0===u(e.parameters))))return[];if(e.length===a.length){let t=!1;for(let n=0;n_(e,t))),i=ne(e.target.symbol,t,788968)):e.symbol&&Ws(e.symbol,c,n)&&(i=ne(e.symbol,t,788968)),i)return XC.createExpressionWithTypeArguments(i,r)}function pe(e){return de(e,788968)||(e.symbol?XC.createExpressionWithTypeArguments(ne(e.symbol,t,788968),void 0):void 0)}function me(e,n){var r,i;const o=n?RB(n):void 0;if(o&&t.remappedSymbolNames.has(o))return t.remappedSymbolNames.get(o);n&&(e=ge(n,e));let a=0;const s=e;for(;null==(r=t.usedSymbolNames)?void 0:r.has(e);)a++,e=`${s}_${a}`;return null==(i=t.usedSymbolNames)||i.add(e),o&&t.remappedSymbolNames.set(o,e),e}function ge(e,n){if("default"===n||"__class"===n||"__function"===n){const r=s(t);t.flags|=16777216;const i=Ic(e,t);r(),n=i.length>0&&Jm(i.charCodeAt(0))?Dy(i):i}return"default"===n?n="_default":"export="===n&&(n="_exports"),fs(n,R)&&!Fh(n)?n:"_"+n.replace(/[^a-z0-9]/gi,"_")}function he(e,n){const r=RB(e);return t.remappedSymbolNames.has(r)?t.remappedSymbolNames.get(r):(n=ge(e,n),t.remappedSymbolNames.set(r,n),n)}}(e,t))),symbolToNode:(e,t,n,r,i,a)=>o(n,r,i,a,(n=>function(e,t,n){if(1&t.internalFlags){if(e.valueDeclaration){const t=Tc(e.valueDeclaration);if(t&&rD(t))return t}const r=oa(e).nameType;if(r&&9216&r.flags)return t.enclosingDeclaration=r.symbol.valueDeclaration,XC.createComputedPropertyName(ne(r.symbol,t,n))}return ne(e,t,n)}(e,n,t)))};function n(e,t,n){const r=Sc(t);if(!e.mapper)return r;const i=tS(r,e.mapper);return n&&i!==r?void 0:i}function r(e,t,n){if(Zh(t)&&16&t.flags&&e.enclosingFile&&e.enclosingFile===hd(lc(t))||(t=XC.cloneNode(t)),t===n)return t;if(!n)return t;let r=t.original;for(;r&&r!==n;)r=r.original;return r||YC(t,n),e.enclosingFile&&e.enclosingFile===hd(lc(n))?nI(t,n):t}function o(t,n,r,i,o){const a=(null==i?void 0:i.trackSymbol)?i.moduleResolverHost:4&(r||0)?function(e){return{getCommonSourceDirectory:e.getCommonSourceDirectory?()=>e.getCommonSourceDirectory():()=>"",getCurrentDirectory:()=>e.getCurrentDirectory(),getSymlinkCache:We(e,e.getSymlinkCache),getPackageJsonInfoCache:()=>{var t;return null==(t=e.getPackageJsonInfoCache)?void 0:t.call(e)},useCaseSensitiveFileNames:()=>e.useCaseSensitiveFileNames(),redirectTargetsMap:e.redirectTargetsMap,getProjectReferenceRedirect:t=>e.getProjectReferenceRedirect(t),isSourceOfProjectReferenceRedirect:t=>e.isSourceOfProjectReferenceRedirect(t),fileExists:t=>e.fileExists(t),getFileIncludeReasons:()=>e.getFileIncludeReasons(),readFile:e.readFile?t=>e.readFile(t):void 0,getDefaultResolutionModeForFile:t=>e.getDefaultResolutionModeForFile(t),getModeForResolutionAtIndex:(t,n)=>e.getModeForResolutionAtIndex(t,n),getGlobalTypingsCacheLocation:We(e,e.getGlobalTypingsCacheLocation)}}(e):void 0,s={enclosingDeclaration:t,enclosingFile:t&&hd(t),flags:n||0,internalFlags:r||0,tracker:void 0,encounteredError:!1,suppressReportInferenceFallback:!1,reportedDiagnostic:!1,visitedTypes:void 0,symbolDepth:void 0,inferTypeParameters:void 0,approximateLength:0,trackedSymbols:void 0,bundled:!!j.outFile&&!!t&&Qp(hd(t)),truncating:!1,usedSymbolNames:void 0,remappedSymbolNames:void 0,remappedSymbolReferences:void 0,reverseMappedStack:void 0,mustCreateTypeParameterSymbolList:!0,typeParameterSymbolList:void 0,mustCreateTypeParametersNamesLookups:!0,typeParameterNames:void 0,typeParameterNamesByText:void 0,typeParameterNamesByTextNextNameCount:void 0,enclosingSymbolTypes:new Map,mapper:void 0};s.tracker=new WB(s,i,a);const c=o(s);return s.truncating&&1&s.flags&&s.tracker.reportTruncationError(),s.encounteredError?void 0:c}function a(e,t,n){const r=RB(t),i=e.enclosingSymbolTypes.get(r);return e.enclosingSymbolTypes.set(r,n),function(){i?e.enclosingSymbolTypes.set(r,i):e.enclosingSymbolTypes.delete(r)}}function s(e){const t=e.flags,n=e.internalFlags;return function(){e.flags=t,e.internalFlags=n}}function c(e){return e.truncating?e.truncating:e.truncating=e.approximateLength>(1&e.flags?Vu:Uu)}function _(e,o){const a=s(o),f=function(e,o){var a,f;t&&t.throwIfCancellationRequested&&t.throwIfCancellationRequested();const m=8388608&o.flags;if(o.flags&=-8388609,!e)return 262144&o.flags?(o.approximateLength+=3,XC.createKeywordTypeNode(133)):void(o.encounteredError=!0);if(536870912&o.flags||(e=yf(e)),1&e.flags)return e.aliasSymbol?XC.createTypeReferenceNode(Q(e.aliasSymbol),y(e.aliasTypeArguments,o)):e===Pt?gw(XC.createKeywordTypeNode(133),3,"unresolved"):(o.approximateLength+=3,XC.createKeywordTypeNode(e===It?141:133));if(2&e.flags)return XC.createKeywordTypeNode(159);if(4&e.flags)return o.approximateLength+=6,XC.createKeywordTypeNode(154);if(8&e.flags)return o.approximateLength+=6,XC.createKeywordTypeNode(150);if(64&e.flags)return o.approximateLength+=6,XC.createKeywordTypeNode(163);if(16&e.flags&&!e.aliasSymbol)return o.approximateLength+=7,XC.createKeywordTypeNode(136);if(1056&e.flags){if(8&e.symbol.flags){const t=hs(e.symbol),n=Y(t,o,788968);if(fu(t)===e)return n;const r=hc(e.symbol);return fs(r,1)?O(n,XC.createTypeReferenceNode(r,void 0)):BD(n)?(n.isTypeOf=!0,XC.createIndexedAccessTypeNode(n,XC.createLiteralTypeNode(XC.createStringLiteral(r)))):vD(n)?XC.createIndexedAccessTypeNode(XC.createTypeQueryNode(n.typeName),XC.createLiteralTypeNode(XC.createStringLiteral(r))):un.fail("Unhandled type node kind returned from `symbolToTypeNode`.")}return Y(e.symbol,o,788968)}if(128&e.flags)return o.approximateLength+=e.value.length+2,XC.createLiteralTypeNode(nw(XC.createStringLiteral(e.value,!!(268435456&o.flags)),16777216));if(256&e.flags){const t=e.value;return o.approximateLength+=(""+t).length,XC.createLiteralTypeNode(t<0?XC.createPrefixUnaryExpression(41,XC.createNumericLiteral(-t)):XC.createNumericLiteral(t))}if(2048&e.flags)return o.approximateLength+=fT(e.value).length+1,XC.createLiteralTypeNode(XC.createBigIntLiteral(e.value));if(512&e.flags)return o.approximateLength+=e.intrinsicName.length,XC.createLiteralTypeNode("true"===e.intrinsicName?XC.createTrue():XC.createFalse());if(8192&e.flags){if(!(1048576&o.flags)){if(Vs(e.symbol,o.enclosingDeclaration))return o.approximateLength+=6,Y(e.symbol,o,111551);o.tracker.reportInaccessibleUniqueSymbolError&&o.tracker.reportInaccessibleUniqueSymbolError()}return o.approximateLength+=13,XC.createTypeOperatorNode(158,XC.createKeywordTypeNode(155))}if(16384&e.flags)return o.approximateLength+=4,XC.createKeywordTypeNode(116);if(32768&e.flags)return o.approximateLength+=9,XC.createKeywordTypeNode(157);if(65536&e.flags)return o.approximateLength+=4,XC.createLiteralTypeNode(XC.createNull());if(131072&e.flags)return o.approximateLength+=5,XC.createKeywordTypeNode(146);if(4096&e.flags)return o.approximateLength+=6,XC.createKeywordTypeNode(155);if(67108864&e.flags)return o.approximateLength+=6,XC.createKeywordTypeNode(151);if(JT(e))return 4194304&o.flags&&(o.encounteredError||32768&o.flags||(o.encounteredError=!0),null==(f=(a=o.tracker).reportInaccessibleThisError)||f.call(a)),o.approximateLength+=4,XC.createThisTypeNode();if(!m&&e.aliasSymbol&&(16384&o.flags||0===Ks(e.aliasSymbol,o.enclosingDeclaration,788968,!1,!0).accessibility)){const t=y(e.aliasTypeArguments,o);return!Ls(e.aliasSymbol.escapedName)||32&e.aliasSymbol.flags?1===u(t)&&e.aliasSymbol===Zn.symbol?XC.createArrayTypeNode(t[0]):Y(e.aliasSymbol,o,788968,t):XC.createTypeReferenceNode(XC.createIdentifier(""),t)}const h=mx(e);if(4&h)return un.assert(!!(524288&e.flags)),e.node?F(e,I):I(e);if(262144&e.flags||3&h){if(262144&e.flags&&T(o.inferTypeParameters,e)){let t;o.approximateLength+=hc(e.symbol).length+6;const n=xp(e);if(n){const r=wh(e,!0);r&&_S(n,r)||(o.approximateLength+=9,t=n&&_(n,o))}return XC.createInferTypeNode(D(e,o,t))}if(4&o.flags&&262144&e.flags){const t=ee(e,o);return o.approximateLength+=mc(t).length,XC.createTypeReferenceNode(XC.createIdentifier(mc(t)),void 0)}if(e.symbol)return Y(e.symbol,o,788968);const t=(e===qn||e===Un)&&i&&i.symbol?(e===Un?"sub-":"super-")+hc(i.symbol):"?";return XC.createTypeReferenceNode(XC.createIdentifier(t),void 0)}if(1048576&e.flags&&e.origin&&(e=e.origin),3145728&e.flags){const t=1048576&e.flags?function(e){const t=[];let n=0;for(let r=0;r0?1048576&e.flags?XC.createUnionTypeNode(n):XC.createIntersectionTypeNode(n):void(o.encounteredError||262144&o.flags||(o.encounteredError=!0))}if(48&h)return un.assert(!!(524288&e.flags)),C(e);if(4194304&e.flags){const t=e.type;o.approximateLength+=6;const n=_(t,o);return XC.createTypeOperatorNode(143,n)}if(134217728&e.flags){const t=e.texts,n=e.types,r=XC.createTemplateHead(t[0]),i=XC.createNodeArray(E(n,((e,r)=>XC.createTemplateLiteralTypeSpan(_(e,o),(rfunction(e){const t=_(e.checkType,o);if(o.approximateLength+=15,4&o.flags&&e.root.isDistributive&&!(262144&e.checkType.flags)){const r=Os(Wo(262144,"T")),i=ee(r,o),a=XC.createTypeReferenceNode(i);o.approximateLength+=37;const s=Bk(e.root.checkType,r,e.mapper),c=o.inferTypeParameters;o.inferTypeParameters=e.root.inferTypeParameters;const l=_(tS(e.root.extendsType,s),o);o.inferTypeParameters=c;const u=v(tS(n(o,e.root.node.trueType),s)),d=v(tS(n(o,e.root.node.falseType),s));return XC.createConditionalTypeNode(t,XC.createInferTypeNode(XC.createTypeParameterDeclaration(void 0,XC.cloneNode(a.typeName))),XC.createConditionalTypeNode(XC.createTypeReferenceNode(XC.cloneNode(i)),_(e.checkType,o),XC.createConditionalTypeNode(a,l,u,d),XC.createKeywordTypeNode(146)),XC.createKeywordTypeNode(146))}const r=o.inferTypeParameters;o.inferTypeParameters=e.root.inferTypeParameters;const i=_(e.extendsType,o);o.inferTypeParameters=r;const a=v(Px(e)),s=v(Ax(e));return XC.createConditionalTypeNode(t,i,a,s)}(e)));if(33554432&e.flags){const t=_(e.baseType,o),n=dy(e)&&Ny("NoInfer",!1);return n?Y(n,o,788968,[t]):t}return un.fail("Should be unreachable.");function v(e){var t,n,r;return 1048576&e.flags?(null==(t=o.visitedTypes)?void 0:t.has(Kv(e)))?(131072&o.flags||(o.encounteredError=!0,null==(r=null==(n=o.tracker)?void 0:n.reportCyclicStructureError)||r.call(n)),p(o)):F(e,(e=>_(e,o))):_(e,o)}function b(e){return!!Xk(e)}function k(e){return!!e.target&&b(e.target)&&!b(e)}function C(e){var t,r;const i=e.id,a=e.symbol;if(a){if(8388608&mx(e)){const r=e.node;if(kD(r)&&n(o,r)===e){const e=ke.tryReuseExistingTypeNode(o,r);if(e)return e}return(null==(t=o.visitedTypes)?void 0:t.has(i))?p(o):F(e,P)}const s=xc(e)?788968:111551;if(qO(a.valueDeclaration))return Y(a,o,s);if(32&a.flags&&!s_(a)&&(!(a.valueDeclaration&&__(a.valueDeclaration)&&2048&o.flags)||HF(a.valueDeclaration)&&0===Hs(a,o.enclosingDeclaration,s,!1).accessibility)||896&a.flags||function(){var e;const t=!!(8192&a.flags)&&$(a.declarations,(e=>Nv(e))),n=!!(16&a.flags)&&(a.parent||d(a.declarations,(e=>307===e.parent.kind||268===e.parent.kind)));if(t||n)return(!!(4096&o.flags)||(null==(e=o.visitedTypes)?void 0:e.has(i)))&&(!(8&o.flags)||Vs(a,o.enclosingDeclaration))}())return Y(a,o,s);if(null==(r=o.visitedTypes)?void 0:r.has(i)){const t=function(e){if(e.symbol&&2048&e.symbol.flags&&e.symbol.declarations){const t=th(e.symbol.declarations[0].parent);if(GF(t))return ps(t)}}(e);return t?Y(t,o,788968):p(o)}return F(e,P)}return P(e)}function F(e,t){var n,i,a;const s=e.id,c=16&mx(e)&&e.symbol&&32&e.symbol.flags,l=4&mx(e)&&e.node?"N"+jB(e.node):16777216&e.flags?"N"+jB(e.root.node):e.symbol?(c?"+":"")+RB(e.symbol):void 0;o.visitedTypes||(o.visitedTypes=new Set),l&&!o.symbolDepth&&(o.symbolDepth=new Map);const _=o.enclosingDeclaration&&aa(o.enclosingDeclaration),u=`${Kv(e)}|${o.flags}|${o.internalFlags}`;_&&(_.serializedTypes||(_.serializedTypes=new Map));const d=null==(n=null==_?void 0:_.serializedTypes)?void 0:n.get(u);if(d)return null==(i=d.trackedSymbols)||i.forEach((([e,t,n])=>o.tracker.trackSymbol(e,t,n))),d.truncating&&(o.truncating=!0),o.approximateLength+=d.addedLength,function e(t){return Zh(t)||dc(t)!==t?r(o,XC.cloneNode(nJ(t,e,void 0,v,e)),t):t}(d.node);let f;if(l){if(f=o.symbolDepth.get(l)||0,f>10)return p(o);o.symbolDepth.set(l,f+1)}o.visitedTypes.add(s);const m=o.trackedSymbols;o.trackedSymbols=void 0;const g=o.approximateLength,h=t(e),y=o.approximateLength-g;return o.reportedDiagnostic||o.encounteredError||null==(a=null==_?void 0:_.serializedTypes)||a.set(u,{node:h,truncating:o.truncating,addedLength:y,trackedSymbols:o.trackedSymbols}),o.visitedTypes.delete(s),l&&o.symbolDepth.set(l,f),o.trackedSymbols=m,h;function v(e,t,n,r,i){return e&&0===e.length?nI(XC.createNodeArray(void 0,e.hasTrailingComma),e):HB(e,t,n,r,i)}}function P(e){if(rp(e)||e.containsError)return function(e){var t;un.assert(!!(524288&e.flags));const r=e.declaration.readonlyToken?XC.createToken(e.declaration.readonlyToken.kind):void 0,i=e.declaration.questionToken?XC.createToken(e.declaration.questionToken.kind):void 0;let a,s;const c=!Qd(e)&&!(2&Yd(e).flags)&&4&o.flags&&!(262144&qd(e).flags&&4194304&(null==(t=xp(qd(e)))?void 0:t.flags));if(Qd(e)){if(k(e)&&4&o.flags){const e=ee(Os(Wo(262144,"T")),o);s=XC.createTypeReferenceNode(e)}a=XC.createTypeOperatorNode(143,s||_(Yd(e),o))}else if(c){const e=ee(Os(Wo(262144,"T")),o);s=XC.createTypeReferenceNode(e),a=s}else a=_(qd(e),o);const l=D(Jd(e),o,a),u=e.declaration.nameType?_(Ud(e),o):void 0,d=_(cw(Hd(e),!!(4&ep(e))),o),p=XC.createMappedTypeNode(r,l,u,i,d,void 0);o.approximateLength+=10;const f=nw(p,1);if(k(e)&&4&o.flags){const t=tS(xp(n(o,e.declaration.typeParameter.constraint.type))||Ot,e.mapper);return XC.createConditionalTypeNode(_(Yd(e),o),XC.createInferTypeNode(XC.createTypeParameterDeclaration(void 0,XC.cloneNode(s.typeName),2&t.flags?void 0:_(t,o))),f,XC.createKeywordTypeNode(146))}return c?XC.createConditionalTypeNode(_(qd(e),o),XC.createInferTypeNode(XC.createTypeParameterDeclaration(void 0,XC.cloneNode(s.typeName),XC.createTypeOperatorNode(143,_(Yd(e),o)))),f,XC.createKeywordTypeNode(146)):f}(e);const t=pp(e);if(!t.properties.length&&!t.indexInfos.length){if(!t.callSignatures.length&&!t.constructSignatures.length)return o.approximateLength+=2,nw(XC.createTypeLiteralNode(void 0),1);if(1===t.callSignatures.length&&!t.constructSignatures.length)return S(t.callSignatures[0],184,o);if(1===t.constructSignatures.length&&!t.callSignatures.length)return S(t.constructSignatures[0],185,o)}const r=N(t.constructSignatures,(e=>!!(4&e.flags)));if($(r)){const e=E(r,(e=>Yg(e)));return t.callSignatures.length+(t.constructSignatures.length-r.length)+t.indexInfos.length+(2048&o.flags?w(t.properties,(e=>!(4194304&e.flags))):u(t.properties))&&e.push(function(e){if(0===e.constructSignatures.length)return e;if(e.objectTypeWithoutAbstractConstructSignatures)return e.objectTypeWithoutAbstractConstructSignatures;const t=N(e.constructSignatures,(e=>!(4&e.flags)));if(e.constructSignatures===t)return e;const n=Bs(e.symbol,e.members,e.callSignatures,$(t)?t:l,e.indexInfos);return e.objectTypeWithoutAbstractConstructSignatures=n,n.objectTypeWithoutAbstractConstructSignatures=n,n}(t)),_(Fb(e),o)}const i=s(o);o.flags|=4194304;const a=function(e){if(c(o))return 1&o.flags?[vw(XC.createNotEmittedTypeElement(),3,"elided")]:[XC.createPropertySignature(void 0,"...",void 0,void 0)];const t=[];for(const n of e.callSignatures)t.push(S(n,179,o));for(const n of e.constructSignatures)4&n.flags||t.push(S(n,180,o));for(const n of e.indexInfos)t.push(x(n,o,1024&e.objectFlags?p(o):void 0));const n=e.properties;if(!n)return t;let r=0;for(const e of n){if(r++,2048&o.flags){if(4194304&e.flags)continue;6&rx(e)&&o.tracker.reportPrivateInBaseOfClassExpression&&o.tracker.reportPrivateInBaseOfClassExpression(fc(e.escapedName))}if(c(o)&&r+20){let n=0;if(e.target.typeParameters&&(n=Math.min(e.target.typeParameters.length,t.length),(w_(e,Ky(!1))||w_(e,Xy(!1))||w_(e,$y(!1))||w_(e,Hy(!1)))&&(!e.node||!vD(e.node)||!e.node.typeArguments||e.node.typeArguments.length0;){const r=t[n-1],i=of(e.target.typeParameters[n-1]);if(!i||!_S(r,i))break;n--}i=y(t.slice(a,n),o)}const c=s(o);o.flags|=16;const l=Y(e.symbol,o,788968,i);return c(),r?O(r,l):l}}if(t=A(t,((t,n)=>cw(t,!!(2&e.target.elementFlags[n])))),t.length>0){const n=ey(e),r=y(t.slice(0,n),o);if(r){const{labeledElementDeclarations:t}=e.target;for(let n=0;n!(32768&e.flags))),0);for(const i of r){const r=S(i,173,t,{name:s,questionToken:c});n.push(d(r,i.declaration||e.valueDeclaration))}if(r.length||!c)return}let l;m(e,t)?l=p(t):(i&&(t.reverseMappedStack||(t.reverseMappedStack=[]),t.reverseMappedStack.push(e)),l=o?ue(t,void 0,o,e):XC.createKeywordTypeNode(133),i&&t.reverseMappedStack.pop());const _=WL(e)?[XC.createToken(148)]:void 0;_&&(t.approximateLength+=9);const u=XC.createPropertySignature(_,s,c,l);function d(n,r){var i;const o=null==(i=e.declarations)?void 0:i.find((e=>348===e.kind));if(o){const e=cl(o.comment);e&&mw(n,[{kind:3,text:"*\n * "+e.replace(/\n/g,"\n * ")+"\n ",pos:-1,end:-1,hasTrailingNewLine:!0}])}else r&&h(t,n,r);return n}n.push(d(u,e.valueDeclaration))}function h(e,t,n){return e.enclosingFile&&e.enclosingFile===hd(n)?pw(t,n):t}function y(e,t,n){if($(e)){if(c(t)){if(!n)return[1&t.flags?gw(XC.createKeywordTypeNode(133),3,"elided"):XC.createTypeReferenceNode("...",void 0)];if(e.length>2)return[_(e[0],t),1&t.flags?gw(XC.createKeywordTypeNode(133),3,`... ${e.length-2} more elided ...`):XC.createTypeReferenceNode(`... ${e.length-2} more ...`,void 0),_(e[e.length-1],t)]}const r=64&t.flags?void 0:$e(),i=[];let o=0;for(const n of e){if(o++,c(t)&&o+2{if(!bT(e,(([e],[t])=>function(e,t){return e===t||!!e.symbol&&e.symbol===t.symbol||!!e.aliasSymbol&&e.aliasSymbol===t.aliasSymbol}(e,t))))for(const[n,r]of e)i[r]=_(n,t)})),e()}return i}}function x(e,t,n){const r=Pp(e)||"x",i=_(e.keyType,t),o=XC.createParameterDeclaration(void 0,void 0,r,void 0,i,void 0);return n||(n=_(e.type||wt,t)),e.type||2097152&t.flags||(t.encounteredError=!0),t.approximateLength+=r.length+4,XC.createIndexSignature(e.isReadonly?[XC.createToken(148)]:void 0,[o],n)}function S(e,t,r,i){var o;let c,l;const u=kd(e,!0)[0],d=C(r,e.declaration,u,e.typeParameters,e.parameters,e.mapper);r.approximateLength+=3,32&r.flags&&e.target&&e.mapper&&e.target.typeParameters?l=e.target.typeParameters.map((t=>_(tS(t,e.mapper),r))):c=e.typeParameters&&e.typeParameters.map((e=>F(e,r)));const p=s(r);r.flags&=-257;const f=($(u,(e=>e!==u[u.length-1]&&!!(32768&nx(e))))?e.parameters:u).map((e=>L(e,r,176===t))),m=33554432&r.flags?void 0:function(e,t){if(e.thisParameter)return L(e.thisParameter,t);if(e.declaration&&Fm(e.declaration)){const r=Xc(e.declaration);if(r&&r.typeExpression)return XC.createParameterDeclaration(void 0,void 0,"this",void 0,_(n(t,r.typeExpression),t))}}(e,r);m&&f.unshift(m),p();const g=function(e,t){const n=256&e.flags,r=s(e);let i;n&&(e.flags&=-257);const o=Tg(t);if(!n||!Wc(o)){if(t.declaration&&!Zh(t.declaration)){const n=ps(t.declaration),r=a(e,n,o);i=ke.serializeReturnTypeForSignature(t.declaration,n,e),r()}i||(i=pe(e,t,o))}return i||n||(i=XC.createKeywordTypeNode(133)),r(),i}(r,e);let h=null==i?void 0:i.modifiers;if(185===t&&4&e.flags){const e=Wv(h);h=XC.createModifiersFromModifierFlags(64|e)}const y=179===t?XC.createCallSignature(c,f,g):180===t?XC.createConstructSignature(c,f,g):173===t?XC.createMethodSignature(h,(null==i?void 0:i.name)??XC.createIdentifier(""),null==i?void 0:i.questionToken,c,f,g):174===t?XC.createMethodDeclaration(h,void 0,(null==i?void 0:i.name)??XC.createIdentifier(""),void 0,c,f,g,void 0):176===t?XC.createConstructorDeclaration(h,f,void 0):177===t?XC.createGetAccessorDeclaration(h,(null==i?void 0:i.name)??XC.createIdentifier(""),f,g,void 0):178===t?XC.createSetAccessorDeclaration(h,(null==i?void 0:i.name)??XC.createIdentifier(""),f,void 0):181===t?XC.createIndexSignature(h,f,g):317===t?XC.createJSDocFunctionType(f,g):184===t?XC.createFunctionTypeNode(c,f,g??XC.createTypeReferenceNode(XC.createIdentifier(""))):185===t?XC.createConstructorTypeNode(h,c,f,g??XC.createTypeReferenceNode(XC.createIdentifier(""))):262===t?XC.createFunctionDeclaration(h,void 0,(null==i?void 0:i.name)?nt(i.name,zN):XC.createIdentifier(""),c,f,g,void 0):218===t?XC.createFunctionExpression(h,void 0,(null==i?void 0:i.name)?nt(i.name,zN):XC.createIdentifier(""),c,f,g,XC.createBlock([])):219===t?XC.createArrowFunction(h,c,f,g,void 0,XC.createBlock([])):un.assertNever(t);return l&&(y.typeArguments=XC.createNodeArray(l)),323===(null==(o=e.declaration)?void 0:o.kind)&&339===e.declaration.parent.kind&&gw(y,3,Kd(e.declaration.parent.parent,!0).slice(2,-2).split(/\r\n|\n|\r/).map((e=>e.replace(/^\s+/," "))).join("\n"),!0),null==d||d(),y}function C(e,t,n,r,i,o){const a=se(e);let s,c;const _=e.enclosingDeclaration,u=e.mapper;if(o&&(e.mapper=o),e.enclosingDeclaration&&t){let t=function(t,n){let r;un.assert(e.enclosingDeclaration),aa(e.enclosingDeclaration).fakeScopeForSignatureDeclaration===t?r=e.enclosingDeclaration:e.enclosingDeclaration.parent&&aa(e.enclosingDeclaration.parent).fakeScopeForSignatureDeclaration===t&&(r=e.enclosingDeclaration.parent),un.assertOptionalNode(r,CF);const i=(null==r?void 0:r.locals)??Hu();let o,a;if(n(((e,t)=>{if(r){const t=i.get(e);t?a=ie(a,{name:e,oldSymbol:t}):o=ie(o,e)}i.set(e,t)})),r)return function(){d(o,(e=>i.delete(e))),d(a,(e=>i.set(e.name,e.oldSymbol)))};{const n=XC.createBlock(l);aa(n).fakeScopeForSignatureDeclaration=t,n.locals=i,wT(n,e.enclosingDeclaration),e.enclosingDeclaration=n}};s=$(n)?t("params",(e=>{if(n)for(let t=0;toD(t)&&x_(t.name)?(function t(n){d(n.elements,(n=>{switch(n.kind){case 232:return;case 208:return function(n){if(x_(n.name))return t(n.name);const r=ps(n);e(r.escapedName,r)}(n);default:return un.assertNever(n)}}))}(t.name),!0):void 0))||e(r.escapedName,r)}})):void 0,4&e.flags&&$(r)&&(c=t("typeParams",(t=>{for(const n of r??l)t(ee(n,e).escapedText,n.symbol)})))}return()=>{null==s||s(),null==c||c(),a(),e.enclosingDeclaration=_,e.mapper=u}}function D(e,t,n){const r=s(t);t.flags&=-513;const i=XC.createModifiersFromModifierFlags(xT(e)),o=ee(e,t),a=of(e),c=a&&_(a,t);return r(),XC.createTypeParameterDeclaration(i,o,n,c)}function F(e,t,r=xp(e)){const i=r&&function(e,t,r){return t&&n(r,t)===e&&ke.tryReuseExistingTypeNode(r,t)||_(e,r)}(r,Ch(e),t);return D(e,t,i)}function P(e,t){const n=2===e.kind||3===e.kind?XC.createToken(131):void 0,r=1===e.kind||3===e.kind?nw(XC.createIdentifier(e.parameterName),16777216):XC.createThisTypeNode(),i=e.type&&_(e.type,t);return XC.createTypePredicateNode(n,r,i)}function I(e){return Wu(e,169)||(Ku(e)?void 0:Wu(e,341))}function L(e,t,n){const r=I(e),i=ue(t,r,S_(e),e),o=!(8192&t.flags)&&n&&r&&rI(r)?E(Nc(r),XC.cloneNode):void 0,a=r&&Mu(r)||32768&nx(e)?XC.createToken(26):void 0,s=M(e,r,t),c=r&&zm(r)||16384&nx(e)?XC.createToken(58):void 0,l=XC.createParameterDeclaration(o,a,s,c,i,void 0);return t.approximateLength+=hc(e).length+3,l}function M(e,t,n){return t&&t.name?80===t.name.kind?nw(XC.cloneNode(t.name),16777216):166===t.name.kind?nw(XC.cloneNode(t.name.right),16777216):function e(t){n.tracker.canTrackSymbol&&rD(t)&&Bu(t)&&J(t.expression,n.enclosingDeclaration,n);let r=nJ(t,e,void 0,void 0,e);return VD(r)&&(r=XC.updateBindingElement(r,r.dotDotDotToken,r.propertyName,r.name,void 0)),Zh(r)||(r=XC.cloneNode(r)),nw(r,16777217)}(t.name):hc(e)}function J(e,t,n){if(!n.tracker.canTrackSymbol)return;const r=ab(e),i=Ue(r,r.escapedText,1160127,void 0,!0);i&&n.tracker.trackSymbol(i,t,111551)}function z(e,t,n,r){return t.tracker.trackSymbol(e,t.enclosingDeclaration,n),q(e,t,n,r)}function q(e,t,n,r){let i;return 262144&e.flags||!(t.enclosingDeclaration||64&t.flags)||4&t.internalFlags?i=[e]:(i=un.checkDefined(function e(n,i,o){let a,s=qs(n,t.enclosingDeclaration,i,!!(128&t.flags));if(!s||Us(s[0],t.enclosingDeclaration,1===s.length?i:zs(i))){const r=vs(s?s[0]:n,t.enclosingDeclaration,i);if(u(r)){a=r.map((e=>$(e.declarations,Qs)?G(e,t):void 0));const o=r.map(((e,t)=>t));o.sort((function(e,t){const n=a[e],r=a[t];if(n&&r){const e=vo(r);return vo(n)===e?tB(n)-tB(r):e?-1:1}return 0}));const c=o.map((e=>r[e]));for(const t of c){const r=e(t,zs(i),!1);if(r){if(t.exports&&t.exports.get("export=")&&ks(t.exports.get("export="),n)){s=r;break}s=r.concat(s||[xs(t,n)||n]);break}}}}if(s)return s;if(o||!(6144&n.flags)){if(!o&&!r&&d(n.declarations,Qs))return;return[n]}}(e,n,!0)),un.assert(i&&i.length>0)),i}function U(e,t){let n;return 524384&VM(e).flags&&(n=XC.createNodeArray(E(M_(e),(e=>F(e,t))))),n}function V(e,t,n){var r;un.assert(e&&0<=t&&tCk(e,o.links.mapper))),n)}else a=U(i,n)}return a}function H(e){return jD(e.objectType)?H(e.objectType):e}function G(t,n,r){let i=Wu(t,307);if(!i){const e=f(t.declarations,(e=>bs(e,t)));e&&(i=Wu(e,307))}if(i&&void 0!==i.moduleName)return i.moduleName;if(!i&&kB.test(t.escapedName))return t.escapedName.substring(1,t.escapedName.length-1);if(!n.enclosingFile||!n.tracker.moduleResolverHost)return kB.test(t.escapedName)?t.escapedName.substring(1,t.escapedName.length-1):hd(fp(t)).fileName;const o=lc(n.enclosingDeclaration),a=gg(o)?hg(o):void 0,s=n.enclosingFile,c=r||a&&e.getModeForUsageLocation(s,a)||s&&e.getDefaultResolutionModeForFile(s),l=_R(s.path,c),_=oa(t);let u=_.specifierCache&&_.specifierCache.get(l);if(!u){const e=!!j.outFile,{moduleResolverHost:i}=n.tracker,o=e?{...j,baseUrl:i.getCommonSourceDirectory()}:j;u=ge(GM(t,He,o,s,i,{importModuleSpecifierPreference:e?"non-relative":"project-relative",importModuleSpecifierEnding:e?"minimal":99===c?"js":void 0},{overrideImportMode:r})),_.specifierCache??(_.specifierCache=new Map),_.specifierCache.set(l,u)}return u}function Q(e){const t=XC.createIdentifier(fc(e.escapedName));return e.parent?XC.createQualifiedName(Q(e.parent),t):t}function Y(e,t,n,r){const i=z(e,t,n,!(16384&t.flags)),o=111551===n;if($(i[0].declarations,Qs)){const e=i.length>1?s(i,i.length-1,1):void 0,n=r||V(i,0,t),a=hd(lc(t.enclosingDeclaration)),c=yd(i[0]);let l,_;if(3!==vk(j)&&99!==vk(j)||99===(null==c?void 0:c.impliedNodeFormat)&&c.impliedNodeFormat!==(null==a?void 0:a.impliedNodeFormat)&&(l=G(i[0],t,99),_=XC.createImportAttributes(XC.createNodeArray([XC.createImportAttribute(XC.createStringLiteral("resolution-mode"),XC.createStringLiteral("import"))]))),l||(l=G(i[0],t)),!(67108864&t.flags)&&1!==vk(j)&&l.includes("/node_modules/")){const e=l;if(3===vk(j)||99===vk(j)){const n=99===(null==a?void 0:a.impliedNodeFormat)?1:99;l=G(i[0],t,n),l.includes("/node_modules/")?l=e:_=XC.createImportAttributes(XC.createNodeArray([XC.createImportAttribute(XC.createStringLiteral("resolution-mode"),XC.createStringLiteral(99===n?"import":"require"))]))}_||(t.encounteredError=!0,t.tracker.reportLikelyUnsafeImportRequiredError&&t.tracker.reportLikelyUnsafeImportRequiredError(e))}const u=XC.createLiteralTypeNode(XC.createStringLiteral(l));if(t.approximateLength+=l.length+10,!e||Zl(e))return e&&Iw(zN(e)?e:e.right,void 0),XC.createImportTypeNode(u,_,e,n,o);{const t=H(e),r=t.objectType.typeName;return XC.createIndexedAccessTypeNode(XC.createImportTypeNode(u,_,r,n,o),t.indexType)}}const a=s(i,i.length-1,0);if(jD(a))return a;if(o)return XC.createTypeQueryNode(a);{const e=zN(a)?a:a.right,t=Ow(e);return Iw(e,void 0),XC.createTypeReferenceNode(a,t)}function s(e,n,i){const o=n===e.length-1?r:V(e,n,t),a=e[n],c=e[n-1];let l;if(0===n?(t.flags|=16777216,l=Ic(a,t),t.approximateLength+=(l?l.length:0)+1,t.flags^=16777216):c&&cs(c)&&td(cs(c),((e,t)=>{if(ks(e,a)&&!Xu(t)&&"export="!==t)return l=fc(t),!0})),void 0===l){const r=f(a.declarations,Tc);if(r&&rD(r)&&Zl(r.expression)){const t=s(e,n-1,i);return Zl(t)?XC.createIndexedAccessTypeNode(XC.createParenthesizedType(XC.createTypeQueryNode(t)),XC.createTypeQueryNode(r.expression)):t}l=Ic(a,t)}if(t.approximateLength+=l.length+1,!(16&t.flags)&&c&&sd(c)&&sd(c).get(a.escapedName)&&ks(sd(c).get(a.escapedName),a)){const t=s(e,n-1,i);return jD(t)?XC.createIndexedAccessTypeNode(t,XC.createLiteralTypeNode(XC.createStringLiteral(l))):XC.createIndexedAccessTypeNode(XC.createTypeReferenceNode(t,o),XC.createLiteralTypeNode(XC.createStringLiteral(l)))}const _=nw(XC.createIdentifier(l),16777216);if(o&&Iw(_,XC.createNodeArray(o)),_.symbol=a,n>i){const t=s(e,n-1,i);return Zl(t)?XC.createQualifiedName(t,_):un.fail("Impossible construct - an export of an indexed access cannot be reachable")}return _}}function Z(e,t,n){const r=Ue(t.enclosingDeclaration,e,788968,void 0,!1);return!!(r&&262144&r.flags)&&r!==n.symbol}function ee(e,t){var n,i,o,a;if(4&t.flags&&t.typeParameterNames){const n=t.typeParameterNames.get(Kv(e));if(n)return n}let s=te(e.symbol,t,788968,!0);if(!(80&s.kind))return XC.createIdentifier("(Missing type parameter)");const c=null==(i=null==(n=e.symbol)?void 0:n.declarations)?void 0:i[0];if(c&&iD(c)&&(s=r(t,s,c.name)),4&t.flags){const n=s.escapedText;let r=(null==(o=t.typeParameterNamesByTextNextNameCount)?void 0:o.get(n))||0,i=n;for(;(null==(a=t.typeParameterNamesByText)?void 0:a.has(i))||Z(i,t,e);)r++,i=`${n}_${r}`;if(i!==n){const e=Ow(s);s=XC.createIdentifier(i),Iw(s,e)}t.mustCreateTypeParametersNamesLookups&&(t.mustCreateTypeParametersNamesLookups=!1,t.typeParameterNames=new Map(t.typeParameterNames),t.typeParameterNamesByTextNextNameCount=new Map(t.typeParameterNamesByTextNextNameCount),t.typeParameterNamesByText=new Set(t.typeParameterNamesByText)),t.typeParameterNamesByTextNextNameCount.set(n,r),t.typeParameterNames.set(Kv(e),s),t.typeParameterNamesByText.add(i)}return s}function te(e,t,n,r){const i=z(e,t,n);return!r||1===i.length||t.encounteredError||65536&t.flags||(t.encounteredError=!0),function e(n,r){const i=V(n,r,t),o=n[r];0===r&&(t.flags|=16777216);const a=Ic(o,t);0===r&&(t.flags^=16777216);const s=nw(XC.createIdentifier(a),16777216);return i&&Iw(s,XC.createNodeArray(i)),s.symbol=o,r>0?XC.createQualifiedName(e(n,r-1),s):s}(i,i.length-1)}function ne(e,t,n){const r=z(e,t,n);return function e(n,r){const i=V(n,r,t),o=n[r];0===r&&(t.flags|=16777216);let a=Ic(o,t);0===r&&(t.flags^=16777216);let s=a.charCodeAt(0);if(Jm(s)&&$(o.declarations,Qs))return XC.createStringLiteral(G(o,t));if(0===r||WT(a,R)){const t=nw(XC.createIdentifier(a),16777216);return i&&Iw(t,XC.createNodeArray(i)),t.symbol=o,r>0?XC.createPropertyAccessExpression(e(n,r-1),t):t}{let t;if(91===s&&(a=a.substring(1,a.length-1),s=a.charCodeAt(0)),!Jm(s)||8&o.flags?""+ +a===a&&(t=XC.createNumericLiteral(+a)):t=XC.createStringLiteral(Dy(a).replace(/\\./g,(e=>e.substring(1))),39===s),!t){const e=nw(XC.createIdentifier(a),16777216);i&&Iw(e,XC.createNodeArray(i)),e.symbol=o,t=e}return XC.createElementAccessExpression(e(n,r-1),t)}}(r,r.length-1)}function re(e){const t=Tc(e);return!!t&&(rD(t)?!!(402653316&Lj(t.expression).flags):KD(t)?!!(402653316&Lj(t.argumentExpression).flags):TN(t))}function oe(e){const t=Tc(e);return!!(t&&TN(t)&&(t.singleQuote||!Zh(t)&&Gt(Kd(t,!1),"'")))}function ae(e,t){const n=!!u(e.declarations)&&v(e.declarations,re),r=!!u(e.declarations)&&v(e.declarations,oe),i=!!(8192&e.flags),o=function(e,t,n,r,i){const o=oa(e).nameType;if(o){if(384&o.flags){const e=""+o.value;return fs(e,hk(j))||!r&&MT(e)?MT(e)&&Gt(e,"-")?XC.createComputedPropertyName(XC.createPrefixUnaryExpression(41,XC.createNumericLiteral(-e))):BT(e,hk(j),n,r,i):XC.createStringLiteral(e,!!n)}if(8192&o.flags)return XC.createComputedPropertyName(ne(o.symbol,t,111551))}}(e,t,r,n,i);return o||BT(fc(e.escapedName),hk(j),r,n,i)}function se(e){const t=e.mustCreateTypeParameterSymbolList,n=e.mustCreateTypeParametersNamesLookups;e.mustCreateTypeParameterSymbolList=!0,e.mustCreateTypeParametersNamesLookups=!0;const r=e.typeParameterNames,i=e.typeParameterNamesByText,o=e.typeParameterNamesByTextNextNameCount,a=e.typeParameterSymbolList;return()=>{e.typeParameterNames=r,e.typeParameterNamesByText=i,e.typeParameterNamesByTextNextNameCount=o,e.typeParameterSymbolList=a,e.mustCreateTypeParameterSymbolList=t,e.mustCreateTypeParametersNamesLookups=n}}function ce(e,t){return e.declarations&&b(e.declarations,(e=>!(!CJ(e)||t&&!_c(e,(e=>e===t)))))}function le(e,t){if(!(4&mx(t)))return!0;if(!vD(e))return!0;ky(e);const n=aa(e).resolvedSymbol,r=n&&fu(n);return!r||r!==t.target||u(e.typeArguments)>=ng(t.target.typeParameters)}function _e(e,t,n){return 8192&n.flags&&n.symbol===e&&(!t.enclosingDeclaration||$(e.declarations,(e=>hd(e)===t.enclosingFile)))&&(t.flags|=1048576),_(n,t)}function ue(e,t,n,r){var i;let o;const s=t&&(oD(t)||bP(t))&&pJ(t,e.enclosingDeclaration),c=t??r.valueDeclaration??ce(r)??(null==(i=r.declarations)?void 0:i[0]);if(c)if(u_(c))o=ke.serializeTypeOfAccessor(c,r,e);else if(bC(c)&&!Zh(c)&&!(196608&mx(n))){const t=a(e,r,n);o=ke.serializeTypeOfDeclaration(c,r,e),t()}return o||(s&&(n=tw(n)),o=_e(r,e,n)),o??XC.createKeywordTypeNode(133)}function pe(e,t,n){const r=e.suppressReportInferenceFallback;e.suppressReportInferenceFallback=!0;const i=vg(t),o=i?P(e.mapper?Uk(i,e.mapper):i,e):_(n,e);return e.suppressReportInferenceFallback=r,o}function fe(e,t,n=t.enclosingDeclaration){let i=!1;const o=ab(e);if(Fm(e)&&(Qm(o)||Zm(o.parent)||nD(o.parent)&&Ym(o.parent.left)&&Qm(o.parent.right)))return i=!0,{introducesError:i,node:e};const a=ec(e);let s;if(cv(o))return s=ps(Zf(o,!1,!1)),0!==Hs(s,o,a,!1).accessibility&&(i=!0,t.tracker.reportInaccessibleThisError()),{introducesError:i,node:c(e)};if(s=Ka(o,a,!0,!0),t.enclosingDeclaration&&!(s&&262144&s.flags)){s=Ss(s);const n=Ka(o,a,!0,!0,t.enclosingDeclaration);if(n===xt||void 0===n&&void 0!==s||n&&s&&!ks(Ss(n),s))return n!==xt&&t.tracker.reportInferenceFallback(e),i=!0,{introducesError:i,node:e,sym:s};s=n}return s?(1&s.flags&&s.valueDeclaration&&(Xh(s.valueDeclaration)||bP(s.valueDeclaration))||(262144&s.flags||ch(e)||0===Hs(s,n,a,!1).accessibility?t.tracker.trackSymbol(s,n,a):(t.tracker.reportInferenceFallback(e),i=!0)),{introducesError:i,node:c(e)}):{introducesError:i,node:e};function c(e){if(e===o){const n=fu(s),i=262144&s.flags?ee(n,t):XC.cloneNode(e);return i.symbol=s,r(t,nw(i,16777216),e)}const n=nJ(e,(e=>c(e)),void 0);return n!==e&&r(t,n,e),n}}function me(e,t){const r=n(e,t,!0);if(!r)return!1;if(Fm(t)&&_f(t)){Lx(t);const e=aa(t).resolvedSymbol;return!e||!!((t.isTypeOf||788968&e.flags)&&u(t.typeArguments)>=ng(M_(e)))}if(vD(t)){if(xl(t))return!1;const n=aa(t).resolvedSymbol;if(!n)return!1;if(262144&n.flags){const t=fu(n);return!(e.mapper&&Ck(t,e.mapper)!==t)}if(Am(t))return le(t,r)&&!xy(t)&&!!(788968&n.flags)}if(LD(t)&&158===t.operator&&155===t.type.kind){const n=e.enclosingDeclaration&&function(e){for(;aa(e).fakeScopeForSignatureDeclaration;)e=e.parent;return e}(e.enclosingDeclaration);return!!_c(t,(e=>e===n))}return!0}}(),ke=NK(j,xe.syntacticBuilderResolver),Ce=fC({evaluateElementAccessExpression:function(e,t){const n=e.expression;if(ob(n)&&Lu(e.argumentExpression)){const r=Ka(n,111551,!0);if(r&&384&r.flags){const n=pc(e.argumentExpression.text),i=r.exports.get(n);if(i)return un.assert(hd(i.valueDeclaration)===hd(r.valueDeclaration)),t?YM(e,i,t):hJ(i.valueDeclaration)}}return pC(void 0)},evaluateEntityNameExpression:QM}),Ne=Hu(),De=Wo(4,"undefined");De.declarations=[];var Fe=Wo(1536,"globalThis",8);Fe.exports=Ne,Fe.declarations=[],Ne.set(Fe.escapedName,Fe);var Ee,Pe,Ae,Le=Wo(4,"arguments"),je=Wo(4,"require"),Re=j.verbatimModuleSyntax?"verbatimModuleSyntax":"isolatedModules",Me=!j.verbatimModuleSyntax,ze=0,qe=0,Ue=hC({compilerOptions:j,requireSymbol:je,argumentsSymbol:Le,globals:Ne,getSymbolOfDeclaration:ps,error:jo,getRequiresScopeChangeCache:_a,setRequiresScopeChangeCache:ua,lookup:sa,onPropertyWithInvalidInitializer:function(e,t,n,r){return!V&&(e&&!r&&fa(e,t,t)||jo(e,e&&n.type&&Ps(n.type,e.pos)?la.Type_of_instance_member_variable_0_cannot_reference_identifier_1_declared_in_the_constructor:la.Initializer_of_instance_member_variable_0_cannot_reference_identifier_1_declared_in_the_constructor,Ep(n.name),pa(t)),!0)},onFailedToResolveSymbol:function(e,t,n,r){const i=Ze(t)?t:t.escapedText;a((()=>{if(!e||!(324===e.parent.kind||fa(e,i,t)||ma(e)||function(e,t,n){const r=1920|(Fm(e)?111551:0);if(n===r){const n=Ma(Ue(e,t,788968&~r,void 0,!1)),i=e.parent;if(n){if(nD(i)){un.assert(i.left===e,"Should only be resolving left side of qualified name as a namespace");const r=i.right.escapedText;if(Cf(fu(n),r))return jo(i,la.Cannot_access_0_1_because_0_is_a_type_but_not_a_namespace_Did_you_mean_to_retrieve_the_type_of_the_property_1_in_0_with_0_1,fc(t),fc(r)),!0}return jo(e,la._0_only_refers_to_a_type_but_is_being_used_as_a_namespace_here,fc(t)),!0}}return!1}(e,i,n)||function(e,t){return!(!ha(t)||281!==e.parent.kind)&&(jo(e,la.Cannot_export_0_Only_local_declarations_can_be_exported_from_a_module,t),!0)}(e,i)||function(e,t,n){if(111127&n){if(Ma(Ue(e,t,1024,void 0,!1)))return jo(e,la.Cannot_use_namespace_0_as_a_value,fc(t)),!0}else if(788544&n&&Ma(Ue(e,t,1536,void 0,!1)))return jo(e,la.Cannot_use_namespace_0_as_a_type,fc(t)),!0;return!1}(e,i,n)||function(e,t,n){if(111551&n){if(ha(t)){const n=e.parent.parent;if(n&&n.parent&&jE(n)){const r=n.token,i=n.parent.kind;264===i&&96===r?jo(e,la.An_interface_cannot_extend_a_primitive_type_like_0_It_can_only_extend_other_named_object_types,fc(t)):263===i&&96===r?jo(e,la.A_class_cannot_extend_a_primitive_type_like_0_Classes_can_only_extend_constructable_values,fc(t)):263===i&&119===r&&jo(e,la.A_class_cannot_implement_a_primitive_type_like_0_It_can_only_implement_other_named_object_types,fc(t))}else jo(e,la._0_only_refers_to_a_type_but_is_being_used_as_a_value_here,fc(t));return!0}const n=Ma(Ue(e,t,788544,void 0,!1)),r=n&&za(n);if(n&&void 0!==r&&!(111551&r)){const r=fc(t);return function(e){switch(e){case"Promise":case"Symbol":case"Map":case"WeakMap":case"Set":case"WeakSet":return!0}return!1}(t)?jo(e,la._0_only_refers_to_a_type_but_is_being_used_as_a_value_here_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_es2015_or_later,r):function(e,t){const n=_c(e.parent,(e=>!rD(e)&&!sD(e)&&(SD(e)||"quit")));if(n&&1===n.members.length){const e=fu(t);return!!(1048576&e.flags)&&ZL(e,384,!0)}return!1}(e,n)?jo(e,la._0_only_refers_to_a_type_but_is_being_used_as_a_value_here_Did_you_mean_to_use_1_in_0,r,"K"===r?"P":"K"):jo(e,la._0_only_refers_to_a_type_but_is_being_used_as_a_value_here,r),!0}}return!1}(e,i,n)||function(e,t,n){if(788584&n){const n=Ma(Ue(e,t,111127,void 0,!1));if(n&&!(1920&n.flags))return jo(e,la._0_refers_to_a_value_but_is_being_used_as_a_type_here_Did_you_mean_typeof_0,fc(t)),!0}return!1}(e,i,n))){let o,a;if(t&&(a=function(e){const t=pa(e),n=Zd().get(t);return n&&he(n.keys())}(t),a&&jo(e,r,pa(t),a)),!a&&Ui{var a;const s=t.escapedName,c=r&&qE(r)&&Qp(r);if(e&&(2&n||(32&n||384&n)&&!(111551&~n))){const n=Ss(t);(2&n.flags||32&n.flags||384&n.flags)&&function(e,t){var n;if(un.assert(!!(2&e.flags||32&e.flags||384&e.flags)),67108881&e.flags&&32&e.flags)return;const r=null==(n=e.declarations)?void 0:n.find((e=>ip(e)||__(e)||266===e.kind));if(void 0===r)return un.fail("checkResolvedBlockScopedVariable could not find block-scoped declaration");if(!(33554432&r.flags||ca(r,t))){let n;const i=Ep(Tc(r));2&e.flags?n=jo(t,la.Block_scoped_variable_0_used_before_its_declaration,i):32&e.flags?n=jo(t,la.Class_0_used_before_its_declaration,i):256&e.flags?n=jo(t,la.Enum_0_used_before_its_declaration,i):(un.assert(!!(128&e.flags)),xk(j)&&(n=jo(t,la.Enum_0_used_before_its_declaration,i))),n&&iT(n,jp(r,la._0_is_declared_here,i))}}(n,e)}if(c&&!(111551&~n)&&!(16777216&e.flags)){const n=ds(t);u(n.declarations)&&v(n.declarations,(e=>eE(e)||qE(e)&&!!e.symbol.globalExports))&&Mo(!j.allowUmdGlobalAccess,e,la._0_refers_to_a_UMD_global_but_the_current_file_is_a_module_Consider_adding_an_import_instead,fc(s))}if(i&&!o&&!(111551&~n)){const r=ds(cd(t)),o=Qh(i);r===ps(i)?jo(e,la.Parameter_0_cannot_reference_itself,Ep(i.name)):r.valueDeclaration&&r.valueDeclaration.pos>i.pos&&o.parent.locals&&sa(o.parent.locals,r.escapedName,n)===r&&jo(e,la.Parameter_0_cannot_reference_identifier_1_declared_after_it,Ep(i.name),Ep(e))}if(e&&111551&n&&2097152&t.flags&&!(111551&t.flags)&&!yT(e)){const n=Wa(t,111551);if(n){const t=281===n.kind||278===n.kind||280===n.kind?la._0_cannot_be_used_as_a_value_because_it_was_exported_using_export_type:la._0_cannot_be_used_as_a_value_because_it_was_imported_using_import_type,r=fc(s);da(jo(e,t,r),n,r)}}if(j.isolatedModules&&t&&c&&!(111551&~n)){const e=sa(Ne,s,n)===t&&qE(r)&&r.locals&&sa(r.locals,s,-111552);if(e){const t=null==(a=e.declarations)?void 0:a.find((e=>276===e.kind||273===e.kind||274===e.kind||271===e.kind));t&&!Ml(t)&&jo(t,la.Import_0_conflicts_with_global_value_used_in_this_file_so_must_be_declared_with_a_type_only_import_when_isolatedModules_is_enabled,fc(s))}}}))}}),Ve=hC({compilerOptions:j,requireSymbol:je,argumentsSymbol:Le,globals:Ne,getSymbolOfDeclaration:ps,error:jo,getRequiresScopeChangeCache:_a,setRequiresScopeChangeCache:ua,lookup:function(e,t,n){const r=sa(e,t,n);if(r)return r;let i;return i=e===Ne?B(["string","number","boolean","object","bigint","symbol"],(t=>e.has(t.charAt(0).toUpperCase()+t.slice(1))?Wo(524288,t):void 0)).concat(Oe(e.values())):Oe(e.values()),JI(fc(t),i,n)}});const He={getNodeCount:()=>we(e.getSourceFiles(),((e,t)=>e+t.nodeCount),0),getIdentifierCount:()=>we(e.getSourceFiles(),((e,t)=>e+t.identifierCount),0),getSymbolCount:()=>we(e.getSourceFiles(),((e,t)=>e+t.symbolCount),m),getTypeCount:()=>p,getInstantiationCount:()=>g,getRelationCacheSizes:()=>({assignable:ho.size,identity:bo.size,subtype:mo.size,strictSubtype:go.size}),isUndefinedSymbol:e=>e===De,isArgumentsSymbol:e=>e===Le,isUnknownSymbol:e=>e===xt,getMergedSymbol:ds,symbolIsValue:Cs,getDiagnostics:TB,getGlobalDiagnostics:function(){return CB(),uo.getGlobalDiagnostics()},getRecursionIdentity:tC,getUnmatchedProperties:$w,getTypeOfSymbolAtLocation:(e,t)=>{const n=dc(t);return n?function(e,t){if(e=Ss(e),(80===t.kind||81===t.kind)&&(ub(t)&&(t=t.parent),vm(t)&&(!Xg(t)||sx(t)))){const n=ow(sx(t)&&211===t.kind?gI(t,void 0,!0):Aj(t));if(Ss(aa(t).resolvedSymbol)===e)return n}return ch(t)&&Cu(t.parent)&&Xl(t.parent)?a_(t.parent.symbol):db(t)&&sx(t.parent)?b_(e):T_(e)}(e,n):Et},getTypeOfSymbol:S_,getSymbolsOfParameterPropertyDeclaration:(e,t)=>{const n=dc(e,oD);return void 0===n?un.fail("Cannot get symbols of a synthetic parameter that cannot be resolved to a parse-tree node."):(un.assert(Ys(n,n.parent)),function(e,t){const n=e.parent,r=e.parent.parent,i=sa(n.locals,t,111551),o=sa(sd(r.symbol),t,111551);return i&&o?[i,o]:un.fail("There should exist two symbols, one as property declaration and one as parameter declaration")}(n,pc(t)))},getDeclaredTypeOfSymbol:fu,getPropertiesOfType:vp,getPropertyOfType:(e,t)=>Cf(e,pc(t)),getPrivateIdentifierPropertyOfType:(e,t,n)=>{const r=dc(n);if(!r)return;const i=vI(pc(t),r);return i?xI(e,i):void 0},getTypeOfPropertyOfType:(e,t)=>Uc(e,pc(t)),getIndexInfoOfType:(e,t)=>dm(e,0===t?Vt:Wt),getIndexInfosOfType:Kf,getIndexInfosOfIndexSymbol:kh,getSignaturesOfType:Rf,getIndexTypeOfType:(e,t)=>pm(e,0===t?Vt:Wt),getIndexType:e=>qb(e),getBaseTypes:Z_,getBaseTypeOfLiteralType:RC,getWidenedType:Sw,getWidenedLiteralType:BC,fillMissingTypeArguments:rg,getTypeFromTypeNode:e=>{const t=dc(e,v_);return t?dk(t):Et},getParameterType:pL,getParameterIdentifierInfoAtPosition:function(e,t){var n;if(317===(null==(n=e.declaration)?void 0:n.kind))return;const r=e.parameters.length-(UB(e)?1:0);if(tdR(e),getReturnTypeOfSignature:Tg,isNullableType:lI,getNullableType:ew,getNonNullableType:rw,getNonOptionalType:ow,getTypeArguments:Kh,typeToTypeNode:xe.typeToTypeNode,typePredicateToTypePredicateNode:xe.typePredicateToTypePredicateNode,indexInfoToIndexSignatureDeclaration:xe.indexInfoToIndexSignatureDeclaration,signatureToSignatureDeclaration:xe.signatureToSignatureDeclaration,symbolToEntityName:xe.symbolToEntityName,symbolToExpression:xe.symbolToExpression,symbolToNode:xe.symbolToNode,symbolToTypeParameterDeclarations:xe.symbolToTypeParameterDeclarations,symbolToParameterDeclaration:xe.symbolToParameterDeclaration,typeParameterToDeclaration:xe.typeParameterToDeclaration,getSymbolsInScope:(e,t)=>{const n=dc(e);return n?function(e,t){if(67108864&e.flags)return[];const n=Hu();let r=!1;return function(){for(;e;){switch(au(e)&&e.locals&&!Xp(e)&&o(e.locals,t),e.kind){case 307:if(!MI(e))break;case 267:a(ps(e).exports,2623475&t);break;case 266:o(ps(e).exports,8&t);break;case 231:e.name&&i(e.symbol,t);case 263:case 264:r||o(sd(ps(e)),788968&t);break;case 218:e.name&&i(e.symbol,t)}Lf(e)&&i(Le,t),r=Nv(e),e=e.parent}o(Ne,t)}(),n.delete("this"),Lm(n);function i(e,t){if(ox(e)&t){const t=e.escapedName;n.has(t)||n.set(t,e)}}function o(e,t){t&&e.forEach((e=>{i(e,t)}))}function a(e,t){t&&e.forEach((e=>{Wu(e,281)||Wu(e,280)||"default"===e.escapedName||i(e,t)}))}}(n,t):[]},getSymbolAtLocation:e=>{const t=dc(e);return t?YB(t,!0):void 0},getIndexInfosAtLocation:e=>{const t=dc(e);return t?function(e){if(zN(e)&&HD(e.parent)&&e.parent.name===e){const t=Rb(e),n=Aj(e.parent.expression);return O(1048576&n.flags?n.types:[n],(e=>N(Kf(e),(e=>Wf(t,e.keyType)))))}}(t):void 0},getShorthandAssignmentValueSymbol:e=>{const t=dc(e);return t?function(e){if(e&&304===e.kind)return Ka(e.name,2208703)}(t):void 0},getExportSpecifierLocalTargetSymbol:e=>{const t=dc(e,gE);return t?function(e){if(gE(e)){const t=e.propertyName||e.name;return e.parent.parent.moduleSpecifier?Pa(e.parent.parent,e):11===t.kind?void 0:Ka(t,2998271)}return Ka(e,2998271)}(t):void 0},getExportSymbolOfSymbol:e=>ds(e.exportSymbol||e),getTypeAtLocation:e=>{const t=dc(e);return t?ZB(t):Et},getTypeOfAssignmentPattern:e=>{const t=dc(e,k_);return t&&eJ(t)||Et},getPropertySymbolOfDestructuringAssignment:e=>{const t=dc(e,zN);return t?function(e){const t=eJ(nt(e.parent.parent,k_));return t&&Cf(t,e.escapedText)}(t):void 0},signatureToString:(e,t,n,r)=>ac(e,dc(t),n,r),typeToString:(e,t,n)=>sc(e,dc(t),n),symbolToString:(e,t,n,r)=>ic(e,dc(t),n,r),typePredicateToString:(e,t,n)=>Cc(e,dc(t),n),writeSignature:(e,t,n,r,i)=>ac(e,dc(t),n,r,i),writeType:(e,t,n,r)=>sc(e,dc(t),n,r),writeSymbol:(e,t,n,r,i)=>ic(e,dc(t),n,r,i),writeTypePredicate:(e,t,n,r)=>Cc(e,dc(t),n,r),getAugmentedPropertiesOfType:oJ,getRootSymbols:function e(t){const n=function(e){if(6&nx(e))return B(oa(e).containingType.types,(t=>Cf(t,e.escapedName)));if(33554432&e.flags){const{links:{leftSpread:t,rightSpread:n,syntheticOrigin:r}}=e;return t?[t,n]:r?[r]:rn(function(e){let t,n=e;for(;n=oa(n).target;)t=n;return t}(e))}}(t);return n?O(n,e):[t]},getSymbolOfExpando:VO,getContextualType:(e,t)=>{const n=dc(e,U_);if(n)return 4&t?Ge(n,(()=>sA(n,t))):sA(n,t)},getContextualTypeForObjectLiteralElement:e=>{const t=dc(e,y_);return t?XP(t,void 0):void 0},getContextualTypeForArgumentAtIndex:(e,t)=>{const n=dc(e,O_);return n&&JP(n,t)},getContextualTypeForJsxAttribute:e=>{const t=dc(e,hu);return t&&YP(t,void 0)},isContextSensitive:aS,getTypeOfPropertyOfContextualType:VP,getFullyQualifiedName:Ha,getResolvedSignature:(e,t,n)=>Xe(e,t,n,0),getCandidateSignaturesForStringLiteralCompletions:function(e,t){const n=new Set,r=[];Ge(t,(()=>Xe(e,r,void 0,0)));for(const e of r)n.add(e);r.length=0,Ke(t,(()=>Xe(e,r,void 0,0)));for(const e of r)n.add(e);return Oe(n)},getResolvedSignatureForSignatureHelp:(e,t,n)=>Ke(e,(()=>Xe(e,t,n,16))),getExpandedParameters:kd,hasEffectiveRestParameter:vL,containsArgumentsReference:cg,getConstantValue:e=>{const t=dc(e,yJ);return t?vJ(t):void 0},isValidPropertyAccess:(e,t)=>{const n=dc(e,P_);return!!n&&function(e,t){switch(e.kind){case 211:return VI(e,108===e.expression.kind,t,Sw(Lj(e.expression)));case 166:return VI(e,!1,t,Sw(Lj(e.left)));case 205:return VI(e,!1,t,dk(e))}}(n,pc(t))},isValidPropertyAccessForCompletions:(e,t,n)=>{const r=dc(e,HD);return!!r&&UI(r,t,n)},getSignatureFromDeclaration:e=>{const t=dc(e,n_);return t?ig(t):void 0},isImplementationOfOverload:e=>{const t=dc(e,n_);return t?dJ(t):void 0},getImmediateAliasedSymbol:wA,getAliasedSymbol:Ba,getEmitResolver:function(e,t,n){return n||TB(e,t),be},requiresAddingImplicitUndefined:pJ,getExportsOfModule:os,getExportsAndPropertiesOfModule:function(e){const t=os(e),n=ts(e);if(n!==e){const e=S_(n);ss(e)&&se(t,vp(e))}return t},forEachExportAndPropertyOfModule:function(e,t){ls(e).forEach(((e,n)=>{Ls(n)||t(e,n)}));const n=ts(e);if(n!==e){const e=S_(n);ss(e)&&function(e){3670016&(e=ff(e)).flags&&pp(e).members.forEach(((e,n)=>{Rs(e,n)&&((e,n)=>{t(e,n)})(e,n)}))}(e)}},getSymbolWalker:MM((function(e){return Ag(e)||wt}),vg,Tg,Z_,pp,S_,dN,xp,ab,Kh),getAmbientModules:function(){return Wn||(Wn=[],Ne.forEach(((e,t)=>{kB.test(t)&&Wn.push(e)}))),Wn},getJsxIntrinsicTagNamesAt:function(e){const t=jA(vB.IntrinsicElements,e);return t?vp(t):l},isOptionalParameter:e=>{const t=dc(e,oD);return!!t&&zm(t)},tryGetMemberInModuleExports:(e,t)=>as(pc(e),t),tryGetMemberInModuleExportsAndProperties:(e,t)=>function(e,t){const n=as(e,t);if(n)return n;const r=ts(t);if(r===t)return;const i=S_(r);return ss(i)?Cf(i,e):void 0}(pc(e),t),tryFindAmbientModule:e=>Mm(e,!0),getApparentType:pf,getUnionType:xb,isTypeAssignableTo:gS,createAnonymousType:Bs,createSignature:pd,createSymbol:Wo,createIndexInfo:uh,getAnyType:()=>wt,getStringType:()=>Vt,getStringLiteralType:ik,getNumberType:()=>Wt,getNumberLiteralType:ok,getBigIntType:()=>$t,getBigIntLiteralType:ak,createPromiseType:PL,createArrayType:uv,getElementTypeOfArrayType:TC,getBooleanType:()=>sn,getFalseType:e=>e?Ht:Qt,getTrueType:e=>e?Yt:nn,getVoidType:()=>ln,getUndefinedType:()=>jt,getNullType:()=>zt,getESSymbolType:()=>cn,getNeverType:()=>_n,getOptionalType:()=>Jt,getPromiseType:()=>Uy(!1),getPromiseLikeType:()=>Vy(!1),getAnyAsyncIterableType:()=>{const e=$y(!1);if(e!==On)return jh(e,[wt,wt,wt])},isSymbolAccessible:Hs,isArrayType:yC,isTupleType:UC,isArrayLikeType:CC,isEmptyAnonymousObjectType:jS,isTypeInvalidDueToUnionDiscriminant:function(e,t){return t.properties.some((t=>{const n=t.name&&(IE(t.name)?ik(eC(t.name)):Rb(t.name)),r=n&&oC(n)?aC(n):void 0,i=void 0===r?void 0:Uc(e,r);return!!i&&jC(i)&&!gS(ZB(t),i)}))},getExactOptionalProperties:function(e){return vp(e).filter((e=>lw(S_(e))))},getAllPossiblePropertiesOfTypes:function(e){const t=xb(e);if(!(1048576&t.flags))return oJ(t);const n=Hu();for(const r of e)for(const{escapedName:e}of oJ(r))if(!n.has(e)){const r=mf(t,e);r&&n.set(e,r)}return Oe(n.values())},getSuggestedSymbolForNonexistentProperty:II,getSuggestedSymbolForNonexistentJSXAttribute:OI,getSuggestedSymbolForNonexistentSymbol:(e,t,n)=>RI(e,pc(t),n),getSuggestedSymbolForNonexistentModule:BI,getSuggestedSymbolForNonexistentClassMember:EI,getBaseConstraintOfType:qp,getDefaultFromTypeParameter:e=>e&&262144&e.flags?of(e):void 0,resolveName:(e,t,n,r)=>Ue(t,pc(e),n,void 0,!1,r),getJsxNamespace:e=>fc(Eo(e)),getJsxFragmentFactory:e=>{const t=TJ(e);return t&&fc(ab(t).escapedText)},getAccessibleSymbolChain:qs,getTypePredicateOfSignature:vg,resolveExternalModuleName:e=>{const t=dc(e,U_);return t&&Qa(t,t,!0)},resolveExternalModuleSymbol:ts,tryGetThisTypeAt:(e,t,n)=>{const r=dc(e);return r&&vP(r,t,n)},getTypeArgumentConstraint:e=>{const t=dc(e,v_);return t&&function(e){const t=tt(e.parent,Au);if(!t)return;const n=Xj(t);if(!n)return;const r=xp(n[t.typeArguments.indexOf(e)]);return r&&tS(r,Tk(n,Kj(t,n)))}(t)},getSuggestionDiagnostics:(n,r)=>{const i=dc(n,qE)||un.fail("Could not determine parsed source file.");if(cT(i,j,e))return l;let o;try{return t=r,DB(i),un.assert(!!(1&aa(i).flags)),o=se(o,po.getDiagnostics(i.fileName)),wR(bB(i),((e,t,n)=>{gd(e)||yB(t,!!(33554432&e.flags))||(o||(o=[])).push({...n,category:2})})),o||l}finally{t=void 0}},runWithCancellationToken:(e,n)=>{try{return t=e,n(He)}finally{t=void 0}},getLocalTypeParametersOfClassOrInterfaceOrTypeAlias:M_,isDeclarationVisible:Lc,isPropertyAccessible:WI,getTypeOnlyAliasDeclaration:Wa,getMemberOverrideModifierStatus:function(e,t,n){if(!t.name)return 0;const r=ps(e),i=fu(r),o=ld(i),a=S_(r),s=hh(e)&&Z_(i),c=(null==s?void 0:s.length)?ld(ge(s),i.thisType):void 0;return qM(e,a,Q_(i),c,i,o,t.parent?Fv(t):wv(t,16),Ev(t),Nv(t),!1,n)},isTypeParameterPossiblyReferenced:Gk,typeHasCallOrConstructSignatures:aJ,getSymbolFlags:za};function Ke(e,t){if(e=_c(e,I_)){const n=[],r=[];for(;e;){const t=aa(e);if(n.push([t,t.resolvedSignature]),t.resolvedSignature=void 0,jT(e)){const t=oa(ps(e)),n=t.type;r.push([t,n]),t.type=void 0}e=_c(e.parent,I_)}const i=t();for(const[e,t]of n)e.resolvedSignature=t;for(const[e,t]of r)e.type=t;return i}return t()}function Ge(e,t){const n=_c(e,O_);if(n){let t=e;do{aa(t).skipDirectInference=!0,t=t.parent}while(t&&t!==n)}D=!0;const r=Ke(e,t);if(D=!1,n){let t=e;do{aa(t).skipDirectInference=void 0,t=t.parent}while(t&&t!==n)}return r}function Xe(e,t,n,r){const i=dc(e,O_);Ee=n;const o=i?zO(i,t,r):void 0;return Ee=void 0,o}var Ye=new Map,et=new Map,rt=new Map,it=new Map,ot=new Map,at=new Map,st=new Map,ct=new Map,lt=new Map,_t=new Map,ut=new Map,dt=new Map,pt=new Map,ft=new Map,gt=new Map,ht=[],yt=new Map,bt=new Set,xt=Wo(4,"unknown"),kt=Wo(0,"__resolving__"),St=new Map,Tt=new Map,Ct=new Set,wt=As(1,"any"),Nt=As(1,"any",262144,"auto"),Dt=As(1,"any",void 0,"wildcard"),Ft=As(1,"any",void 0,"blocked string"),Et=As(1,"error"),Pt=As(1,"unresolved"),At=As(1,"any",65536,"non-inferrable"),It=As(1,"intrinsic"),Ot=As(2,"unknown"),jt=As(32768,"undefined"),Rt=H?jt:As(32768,"undefined",65536,"widening"),Mt=As(32768,"undefined",void 0,"missing"),Bt=_e?Mt:jt,Jt=As(32768,"undefined",void 0,"optional"),zt=As(65536,"null"),Ut=H?zt:As(65536,"null",65536,"widening"),Vt=As(4,"string"),Wt=As(8,"number"),$t=As(64,"bigint"),Ht=As(512,"false",void 0,"fresh"),Qt=As(512,"false"),Yt=As(512,"true",void 0,"fresh"),nn=As(512,"true");Yt.regularType=nn,Yt.freshType=Yt,nn.regularType=nn,nn.freshType=Yt,Ht.regularType=Qt,Ht.freshType=Ht,Qt.regularType=Qt,Qt.freshType=Ht;var on,sn=xb([Qt,nn]),cn=As(4096,"symbol"),ln=As(16384,"void"),_n=As(131072,"never"),dn=As(131072,"never",262144,"silent"),pn=As(131072,"never",void 0,"implicit"),fn=As(131072,"never",void 0,"unreachable"),mn=As(67108864,"object"),gn=xb([Vt,Wt]),hn=xb([Vt,Wt,cn]),yn=xb([Wt,$t]),vn=xb([Vt,Wt,sn,$t,zt,jt]),bn=Vb(["",""],[Wt]),xn=Ek((e=>{return 262144&e.flags?!(t=e).constraint&&!Ch(t)||t.constraint===jn?t:t.restrictiveInstantiation||(t.restrictiveInstantiation=Os(t.symbol),t.restrictiveInstantiation.constraint=jn,t.restrictiveInstantiation):e;var t}),(()=>"(restrictive mapper)")),kn=Ek((e=>262144&e.flags?Dt:e),(()=>"(permissive mapper)")),Sn=As(131072,"never",void 0,"unique literal"),Tn=Ek((e=>262144&e.flags?Sn:e),(()=>"(unique literal mapper)")),Cn=Ek((e=>(!on||e!==Bn&&e!==Jn&&e!==zn||on(!0),e)),(()=>"(unmeasurable reporter)")),wn=Ek((e=>(!on||e!==Bn&&e!==Jn&&e!==zn||on(!1),e)),(()=>"(unreliable reporter)")),Nn=Bs(void 0,P,l,l,l),Dn=Bs(void 0,P,l,l,l);Dn.objectFlags|=2048;var Fn=Bs(void 0,P,l,l,l);Fn.objectFlags|=141440;var En=Wo(2048,"__type");En.members=Hu();var Pn=Bs(En,P,l,l,l),An=Bs(void 0,P,l,l,l),In=H?xb([jt,zt,An]):Ot,On=Bs(void 0,P,l,l,l);On.instantiations=new Map;var Ln=Bs(void 0,P,l,l,l);Ln.objectFlags|=262144;var jn=Bs(void 0,P,l,l,l),Rn=Bs(void 0,P,l,l,l),Mn=Bs(void 0,P,l,l,l),Bn=Os(),Jn=Os();Jn.constraint=Bn;var zn=Os(),qn=Os(),Un=Os();Un.constraint=qn;var Vn,Wn,$n,Kn,Gn,Xn,Qn,Yn,Zn,er,rr,ir,or,ar,sr,cr,lr,_r,ur,dr,pr,fr,mr,gr,hr,yr,vr,br,xr,kr,Sr,Tr,Cr,wr,Nr,Dr,Fr,Er,Pr,Ar,Ir,Or,Lr,jr,Rr,Mr,Br,Jr,zr,qr,Ur,Vr,Wr,$r,Hr,Kr,Gr,Xr,Qr,Yr,Zr,ei,ti,ni,ri,ii,oi,ai=Xm(1,"<>",0,wt),si=pd(void 0,void 0,void 0,l,wt,void 0,0,0),ci=pd(void 0,void 0,void 0,l,Et,void 0,0,0),li=pd(void 0,void 0,void 0,l,wt,void 0,0,0),_i=pd(void 0,void 0,void 0,l,dn,void 0,0,0),ui=uh(Wt,Vt,!0),di=new Map,pi={get yieldType(){return un.fail("Not supported")},get returnType(){return un.fail("Not supported")},get nextType(){return un.fail("Not supported")}},mi=aM(wt,wt,wt),gi={iterableCacheKey:"iterationTypesOfAsyncIterable",iteratorCacheKey:"iterationTypesOfAsyncIterator",iteratorSymbolName:"asyncIterator",getGlobalIteratorType:function(e){return Dr||(Dr=Ay("AsyncIterator",3,e))||On},getGlobalIterableType:$y,getGlobalIterableIteratorType:Hy,getGlobalIteratorObjectType:function(e){return Ar||(Ar=Ay("AsyncIteratorObject",3,e))||On},getGlobalGeneratorType:function(e){return Ir||(Ir=Ay("AsyncGenerator",3,e))||On},getGlobalBuiltinIteratorTypes:function(){return Pr??(Pr=Ly(["ReadableStreamAsyncIterator"],1))},resolveIterationType:(e,t)=>dR(e,t,la.Type_of_await_operand_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member),mustHaveANextMethodDiagnostic:la.An_async_iterator_must_have_a_next_method,mustBeAMethodDiagnostic:la.The_0_property_of_an_async_iterator_must_be_a_method,mustHaveAValueDiagnostic:la.The_type_returned_by_the_0_method_of_an_async_iterator_must_be_a_promise_for_a_type_with_a_value_property},hi={iterableCacheKey:"iterationTypesOfIterable",iteratorCacheKey:"iterationTypesOfIterator",iteratorSymbolName:"iterator",getGlobalIteratorType:function(e){return xr||(xr=Ay("Iterator",3,e))||On},getGlobalIterableType:Ky,getGlobalIterableIteratorType:Xy,getGlobalIteratorObjectType:function(e){return Sr||(Sr=Ay("IteratorObject",3,e))||On},getGlobalGeneratorType:function(e){return Tr||(Tr=Ay("Generator",3,e))||On},getGlobalBuiltinIteratorTypes:function(){return Er??(Er=Ly(["ArrayIterator","MapIterator","SetIterator","StringIterator"],1))},resolveIterationType:(e,t)=>e,mustHaveANextMethodDiagnostic:la.An_iterator_must_have_a_next_method,mustBeAMethodDiagnostic:la.The_0_property_of_an_iterator_must_be_a_method,mustHaveAValueDiagnostic:la.The_type_returned_by_the_0_method_of_an_iterator_must_have_a_value_property},yi=new Map,vi=new Map,bi=new Map,xi=0,ki=0,Si=0,Ti=!1,Ci=0,wi=[],Ni=[],Fi=[],Ei=0,Pi=[],Ai=[],Ii=[],Oi=0,Li=ik(""),ji=ok(0),Ri=ak({negative:!1,base10Value:"0"}),Mi=[],Bi=[],Ji=[],zi=0,qi=!1,Ui=0,Vi=10,Wi=[],$i=[],Hi=[],Ki=[],Gi=[],Xi=[],Qi=[],Yi=[],Zi=[],eo=[],to=[],no=[],ro=[],io=[],oo=[],ao=[],so=[],co=[],lo=[],_o=0,uo=ly(),po=ly(),fo=xb(Oe(FB.keys(),ik)),mo=new Map,go=new Map,ho=new Map,yo=new Map,bo=new Map,To=new Map,Co=[[".mts",".mjs"],[".ts",".js"],[".cts",".cjs"],[".mjs",".mjs"],[".js",".js"],[".cjs",".cjs"],[".tsx",1===j.jsx?".jsx":".js"],[".jsx",".jsx"],[".json",".json"]];return function(){for(const t of e.getSourceFiles())AM(t,j);let t;Vn=new Map;for(const n of e.getSourceFiles())if(!n.redirectInfo){if(!Qp(n)){const e=n.locals.get("globalThis");if(null==e?void 0:e.declarations)for(const t of e.declarations)uo.add(jp(t,la.Declaration_name_conflicts_with_built_in_global_identifier_0,"globalThis"));ta(Ne,n.locals)}n.jsGlobalAugmentations&&ta(Ne,n.jsGlobalAugmentations),n.patternAmbientModules&&n.patternAmbientModules.length&&($n=K($n,n.patternAmbientModules)),n.moduleAugmentations.length&&(t||(t=[])).push(n.moduleAugmentations),n.symbol&&n.symbol.globalExports&&n.symbol.globalExports.forEach(((e,t)=>{Ne.has(t)||Ne.set(t,e)}))}if(t)for(const e of t)for(const t of e)up(t.parent)&&ra(t);if(function(){const e=De.escapedName,t=Ne.get(e);t?d(t.declarations,(t=>{qT(t)||uo.add(jp(t,la.Declaration_name_conflicts_with_built_in_global_identifier_0,fc(e)))})):Ne.set(e,De)}(),oa(De).type=Rt,oa(Le).type=Ay("IArguments",0,!0),oa(xt).type=Et,oa(Fe).type=Is(16,Fe),Zn=Ay("Array",1,!0),Gn=Ay("Object",0,!0),Xn=Ay("Function",0,!0),Qn=Y&&Ay("CallableFunction",0,!0)||Xn,Yn=Y&&Ay("NewableFunction",0,!0)||Xn,rr=Ay("String",0,!0),ir=Ay("Number",0,!0),or=Ay("Boolean",0,!0),ar=Ay("RegExp",0,!0),cr=uv(wt),(lr=uv(Nt))===Nn&&(lr=Bs(void 0,P,l,l,l)),er=Zy("ReadonlyArray",1)||Zn,_r=er?tv(er,[wt]):cr,sr=Zy("ThisType",1),t)for(const e of t)for(const t of e)up(t.parent)||ra(t);Vn.forEach((({firstFile:e,secondFile:t,conflictingSymbols:n})=>{if(n.size<8)n.forEach((({isBlockScoped:e,firstFileLocations:t,secondFileLocations:n},r)=>{const i=e?la.Cannot_redeclare_block_scoped_variable_0:la.Duplicate_identifier_0;for(const e of t)ea(e,i,r,n);for(const e of n)ea(e,i,r,t)}));else{const r=Oe(n.keys()).join(", ");uo.add(iT(jp(e,la.Definitions_of_the_following_identifiers_conflict_with_those_in_another_file_Colon_0,r),jp(t,la.Conflicts_are_in_this_file))),uo.add(iT(jp(t,la.Definitions_of_the_following_identifiers_conflict_with_those_in_another_file_Colon_0,r),jp(e,la.Conflicts_are_in_this_file)))}})),Vn=void 0}(),He;function wo(e){return!(!HD(e)||!zN(e.name)||!HD(e.expression)&&!zN(e.expression)||(zN(e.expression)?"Symbol"!==mc(e.expression)||dN(e.expression)!==(Py("Symbol",1160127,void 0)||xt):!zN(e.expression.expression)||"Symbol"!==mc(e.expression.name)||"globalThis"!==mc(e.expression.expression)||dN(e.expression.expression)!==Fe))}function No(e){return e?gt.get(e):void 0}function Fo(e,t){return e&>.set(e,t),t}function Eo(e){if(e){const t=hd(e);if(t)if(NE(e)){if(t.localJsxFragmentNamespace)return t.localJsxFragmentNamespace;const n=t.pragmas.get("jsxfrag");if(n){const e=Qe(n)?n[0]:n;if(t.localJsxFragmentFactory=jI(e.arguments.factory,R),$B(t.localJsxFragmentFactory,Io,Zl),t.localJsxFragmentFactory)return t.localJsxFragmentNamespace=ab(t.localJsxFragmentFactory).escapedText}const r=TJ(e);if(r)return t.localJsxFragmentFactory=r,t.localJsxFragmentNamespace=ab(r).escapedText}else{const e=Ao(t);if(e)return t.localJsxNamespace=e}}return ii||(ii="React",j.jsxFactory?($B(oi=jI(j.jsxFactory,R),Io),oi&&(ii=ab(oi).escapedText)):j.reactNamespace&&(ii=pc(j.reactNamespace))),oi||(oi=XC.createQualifiedName(XC.createIdentifier(fc(ii)),"createElement")),ii}function Ao(e){if(e.localJsxNamespace)return e.localJsxNamespace;const t=e.pragmas.get("jsx");if(t){const n=Qe(t)?t[0]:t;if(e.localJsxFactory=jI(n.arguments.factory,R),$B(e.localJsxFactory,Io,Zl),e.localJsxFactory)return e.localJsxNamespace=ab(e.localJsxFactory).escapedText}}function Io(e){return ST(e,-1,-1),nJ(e,Io,void 0)}function Oo(e,t,n,...r){const i=jo(t,n,...r);return i.skippedOn=e,i}function Lo(e,t,...n){return e?jp(e,t,...n):Xx(t,...n)}function jo(e,t,...n){const r=Lo(e,t,...n);return uo.add(r),r}function Ro(e,t){e?uo.add(t):po.add({...t,category:2})}function Mo(e,t,n,...r){if(t.pos<0||t.end<0){if(!e)return;const i=hd(t);Ro(e,"message"in n?Kx(i,0,0,n,...r):Up(i,n))}else Ro(e,"message"in n?jp(t,n,...r):Bp(hd(t),t,n))}function Jo(e,t,n,...r){const i=jo(e,n,...r);return t&&iT(i,jp(e,la.Did_you_forget_to_use_await)),i}function zo(e,t){const n=Array.isArray(e)?d(e,Hc):Hc(e);return n&&iT(t,jp(n,la.The_declaration_was_marked_as_deprecated_here)),po.add(t),t}function qo(e){const t=hs(e);return t&&u(e.declarations)>1?64&t.flags?$(e.declarations,Uo):v(e.declarations,Uo):!!e.valueDeclaration&&Uo(e.valueDeclaration)||u(e.declarations)&&v(e.declarations,Uo)}function Uo(e){return!!(536870912&_z(e))}function Vo(e,t,n){return zo(t,jp(e,la._0_is_deprecated,n))}function Wo(e,t,n){m++;const r=new s(33554432|e,t);return r.links=new OB,r.links.checkFlags=n||0,r}function $o(e,t){const n=Wo(1,e);return n.links.type=t,n}function Ho(e,t){const n=Wo(4,e);return n.links.type=t,n}function Ko(e){let t=0;return 2&e&&(t|=111551),1&e&&(t|=111550),4&e&&(t|=0),8&e&&(t|=900095),16&e&&(t|=110991),32&e&&(t|=899503),64&e&&(t|=788872),256&e&&(t|=899327),128&e&&(t|=899967),512&e&&(t|=110735),8192&e&&(t|=103359),32768&e&&(t|=46015),65536&e&&(t|=78783),262144&e&&(t|=526824),524288&e&&(t|=788968),2097152&e&&(t|=2097152),t}function Go(e,t){t.mergeId||(t.mergeId=wB,wB++),Wi[t.mergeId]=e}function Xo(e){const t=Wo(e.flags,e.escapedName);return t.declarations=e.declarations?e.declarations.slice():[],t.parent=e.parent,e.valueDeclaration&&(t.valueDeclaration=e.valueDeclaration),e.constEnumOnlyModule&&(t.constEnumOnlyModule=!0),e.members&&(t.members=new Map(e.members)),e.exports&&(t.exports=new Map(e.exports)),Go(t,e),t}function Qo(e,t,n=!1){if(!(e.flags&Ko(t.flags))||67108864&(t.flags|e.flags)){if(t===e)return e;if(!(33554432&e.flags)){const n=Ma(e);if(n===xt)return t;if(n.flags&Ko(t.flags)&&!(67108864&(t.flags|n.flags)))return r(e,t),t;e=Xo(n)}512&t.flags&&512&e.flags&&e.constEnumOnlyModule&&!t.constEnumOnlyModule&&(e.constEnumOnlyModule=!1),e.flags|=t.flags,t.valueDeclaration&&fg(e,t.valueDeclaration),se(e.declarations,t.declarations),t.members&&(e.members||(e.members=Hu()),ta(e.members,t.members,n)),t.exports&&(e.exports||(e.exports=Hu()),ta(e.exports,t.exports,n,e)),n||Go(e,t)}else 1024&e.flags?e!==Fe&&jo(t.declarations&&Tc(t.declarations[0]),la.Cannot_augment_module_0_with_value_exports_because_it_resolves_to_a_non_module_entity,ic(e)):r(e,t);return e;function r(e,t){const n=!!(384&e.flags||384&t.flags),r=!!(2&e.flags||2&t.flags),o=n?la.Enum_declarations_can_only_merge_with_namespace_or_other_enum_declarations:r?la.Cannot_redeclare_block_scoped_variable_0:la.Duplicate_identifier_0,a=t.declarations&&hd(t.declarations[0]),s=e.declarations&&hd(e.declarations[0]),c=vd(a,j.checkJs),l=vd(s,j.checkJs),_=ic(t);if(a&&s&&Vn&&!n&&a!==s){const n=-1===Yo(a.path,s.path)?a:s,o=n===a?s:a,u=z(Vn,`${n.path}|${o.path}`,(()=>({firstFile:n,secondFile:o,conflictingSymbols:new Map}))),d=z(u.conflictingSymbols,_,(()=>({isBlockScoped:r,firstFileLocations:[],secondFileLocations:[]})));c||i(d.firstFileLocations,t),l||i(d.secondFileLocations,e)}else c||Zo(t,o,_,e),l||Zo(e,o,_,t)}function i(e,t){if(t.declarations)for(const n of t.declarations)ce(e,n)}}function Zo(e,t,n,r){d(e.declarations,(e=>{ea(e,t,n,r.declarations)}))}function ea(e,t,n,r){const i=($m(e,!1)?Km(e):Tc(e))||e,o=function(e,t,...n){const r=e?jp(e,t,...n):Xx(t,...n);return uo.lookup(r)||(uo.add(r),r)}(i,t,n);for(const e of r||l){const t=($m(e,!1)?Km(e):Tc(e))||e;if(t===i)continue;o.relatedInformation=o.relatedInformation||[];const r=jp(t,la._0_was_also_declared_here,n),a=jp(t,la.and_here);u(o.relatedInformation)>=5||$(o.relatedInformation,(e=>0===tk(e,a)||0===tk(e,r)))||iT(o,u(o.relatedInformation)?a:r)}}function ta(e,t,n=!1,r){t.forEach(((t,i)=>{const o=e.get(i),a=o?Qo(o,t,n):ds(t);r&&o&&(a.parent=r),e.set(i,a)}))}function ra(e){var t,n,r;const i=e.parent;if((null==(t=i.symbol.declarations)?void 0:t[0])===i)if(up(i))ta(Ne,i.symbol.exports);else{let t=Ya(e,e,33554432&e.parent.parent.flags?void 0:la.Invalid_module_name_in_augmentation_module_0_cannot_be_found,!1,!0);if(!t)return;if(t=ts(t),1920&t.flags)if($($n,(e=>t===e.symbol))){const n=Qo(i.symbol,t,!0);Kn||(Kn=new Map),Kn.set(e.text,n)}else{if((null==(n=t.exports)?void 0:n.get("__export"))&&(null==(r=i.symbol.exports)?void 0:r.size)){const e=ad(t,"resolvedExports");for(const[n,r]of Oe(i.symbol.exports.entries()))e.has(n)&&!t.exports.has(n)&&Qo(e.get(n),r)}Qo(t,i.symbol)}else jo(e,la.Cannot_augment_module_0_because_it_resolves_to_a_non_module_entity,e.text)}else un.assert(i.symbol.declarations.length>1)}function oa(e){if(33554432&e.flags)return e.links;const t=RB(e);return $i[t]??($i[t]=new OB)}function aa(e){const t=jB(e);return Hi[t]||(Hi[t]=new LB)}function sa(e,t,n){if(n){const r=ds(e.get(t));if(r){if(r.flags&n)return r;if(2097152&r.flags&&za(r)&n)return r}}}function ca(t,n){const r=hd(t),i=hd(n),o=Dp(t);if(r!==i){if(M&&(r.externalModuleIndicator||i.externalModuleIndicator)||!j.outFile||lv(n)||33554432&t.flags)return!0;if(a(n,t))return!0;const o=e.getSourceFiles();return o.indexOf(r)<=o.indexOf(i)}if(16777216&n.flags||lv(n)||pN(n))return!0;if(t.pos<=n.pos&&(!cD(t)||!am(n.parent)||t.initializer||t.exclamationToken)){if(208===t.kind){const e=Sh(n,208);return e?_c(e,VD)!==_c(t,VD)||t.pose===t?"quit":rD(e)?e.parent.parent===t:!J&&aD(e)&&(e.parent===t||_D(e.parent)&&e.parent.parent===t||dl(e.parent)&&e.parent.parent===t||cD(e.parent)&&e.parent.parent===t||oD(e.parent)&&e.parent.parent.parent===t)));return!e||!(J||!aD(e))&&!!_c(n,(t=>t===e?"quit":n_(t)&&!im(t)))}return cD(t)?!s(t,n,!1):!Ys(t,t.parent)||!(V&&Gf(t)===Gf(n)&&a(n,t))}return!(!(281===n.parent.kind||277===n.parent.kind&&n.parent.isExportEquals)&&(277!==n.kind||!n.isExportEquals)&&(!a(n,t)||V&&Gf(t)&&(cD(t)||Ys(t,t.parent))&&s(t,n,!0)));function a(e,t){return!!_c(e,(n=>{if(n===o)return"quit";if(n_(n))return!0;if(uD(n))return t.pos=r&&o.pos<=i){const n=XC.createPropertyAccessExpression(XC.createThis(),e);if(wT(n.expression,n),wT(n,o),n.flowNode=o.returnFlowNode,!RS(JF(n,t,tw(t))))return!0}return!1}(e,S_(ps(t)),N(t.parent.members,uD),t.parent.pos,n.pos))return!0}}else if(172!==t.kind||Nv(t)||Gf(e)!==Gf(t))return!0;return!1}))}function s(e,t,n){return!(t.end>e.end)&&void 0===_c(t,(t=>{if(t===e)return"quit";switch(t.kind){case 219:return!0;case 172:return!n||!(cD(e)&&t.parent===e.parent||Ys(e,e.parent)&&t.parent===e.parent.parent)||"quit";case 241:switch(t.parent.kind){case 177:case 174:case 178:return!0;default:return!1}default:return!1}}))}}function _a(e){return aa(e).declarationRequiresScopeChange}function ua(e,t){aa(e).declarationRequiresScopeChange=t}function da(e,t,n){return t?iT(e,jp(t,281===t.kind||278===t.kind||280===t.kind?la._0_was_exported_here:la._0_was_imported_here,n)):e}function pa(e){return Ze(e)?fc(e):Ep(e)}function fa(e,t,n){if(!zN(e)||e.escapedText!==t||EB(e)||lv(e))return!1;const r=Zf(e,!1,!1);let i=r;for(;i;){if(__(i.parent)){const o=ps(i.parent);if(!o)break;if(Cf(S_(o),t))return jo(e,la.Cannot_find_name_0_Did_you_mean_the_static_member_1_0,pa(n),ic(o)),!0;if(i===r&&!Nv(i)&&Cf(fu(o).thisType,t))return jo(e,la.Cannot_find_name_0_Did_you_mean_the_instance_member_this_0,pa(n)),!0}i=i.parent}return!1}function ma(e){const t=ga(e);return!(!t||!Ka(t,64,!0)||(jo(e,la.Cannot_extend_an_interface_0_Did_you_mean_implements,Kd(t)),0))}function ga(e){switch(e.kind){case 80:case 211:return e.parent?ga(e.parent):void 0;case 233:if(ob(e.expression))return e.expression;default:return}}function ha(e){return"any"===e||"string"===e||"number"===e||"boolean"===e||"never"===e||"unknown"===e}function ya(e,t,n){return!!t&&!!_c(e,(e=>e===t||!!(e===n||n_(e)&&(!im(e)||3&Ih(e)))&&"quit"))}function va(e){switch(e.kind){case 271:return e;case 273:return e.parent;case 274:return e.parent.parent;case 276:return e.parent.parent.parent;default:return}}function ba(e){return e.declarations&&x(e.declarations,xa)}function xa(e){return 271===e.kind||270===e.kind||273===e.kind&&!!e.name||274===e.kind||280===e.kind||276===e.kind||281===e.kind||277===e.kind&&fh(e)||cF(e)&&2===eg(e)&&fh(e)||kx(e)&&cF(e.parent)&&e.parent.left===e&&64===e.parent.operatorToken.kind&&ka(e.parent.right)||304===e.kind||303===e.kind&&ka(e.initializer)||260===e.kind&&jm(e)||208===e.kind&&jm(e.parent.parent)}function ka(e){return ph(e)||eF(e)&&qO(e)}function Sa(e,t,n,r){const i=e.exports.get("export="),o=i?Cf(S_(i),t,!0):e.exports.get(t),a=Ma(o,r);return qa(n,o,a,!1),a}function Ta(e){return pE(e)&&!e.isExportEquals||wv(e,2048)||gE(e)||_E(e)}function Ca(t){return Lu(t)?e.getEmitSyntaxForUsageLocation(hd(t),t):void 0}function wa(e,t){if(100<=M&&M<=199&&99===Ca(e)){t??(t=Qa(e,e,!0));const n=t&&yd(t);return n&&(Yp(n)||".d.json.ts"===HI(n.fileName))}return!1}function Na(t,n,r,i){const o=t&&Ca(i);if(t&&void 0!==o){const n=e.getImpliedNodeFormatForEmit(t);if(99===o&&1===n&&100<=M&&M<=199)return!0;if(99===o&&99===n)return!1}if(!W)return!1;if(!t||t.isDeclarationFile){const e=Sa(n,"default",void 0,!0);return!(e&&$(e.declarations,Ta)||Sa(n,pc("__esModule"),void 0,r))}return Dm(t)?"object"!=typeof t.externalModuleIndicator&&!Sa(n,pc("__esModule"),void 0,r):is(n)}function Fa(e,t,n){var r;let i;i=lp(e)?e:Sa(e,"default",t,n);const o=null==(r=e.declarations)?void 0:r.find(qE),a=Ea(t);if(!a)return i;const s=wa(a,e),c=Na(o,e,n,a);if(i||c||s){if(c||s){const r=ts(e,n)||Ma(e,n);return qa(t,e,r,!1),r}}else if(is(e)&&!W){const n=M>=5?"allowSyntheticDefaultImports":"esModuleInterop",r=e.exports.get("export=").valueDeclaration,i=jo(t.name,la.Module_0_can_only_be_default_imported_using_the_1_flag,ic(e),n);r&&iT(i,jp(r,la.This_module_is_declared_with_export_and_can_only_be_used_with_a_default_import_when_using_the_0_flag,n))}else rE(t)?function(e,t){var n,r,i;if(null==(n=e.exports)?void 0:n.has(t.symbol.escapedName))jo(t.name,la.Module_0_has_no_default_export_Did_you_mean_to_use_import_1_from_0_instead,ic(e),ic(t.symbol));else{const n=jo(t.name,la.Module_0_has_no_default_export,ic(e)),o=null==(r=e.exports)?void 0:r.get("__export");if(o){const e=null==(i=o.declarations)?void 0:i.find((e=>{var t,n;return!!(fE(e)&&e.moduleSpecifier&&(null==(n=null==(t=Qa(e,e.moduleSpecifier))?void 0:t.exports)?void 0:n.has("default")))}));e&&iT(n,jp(e,la.export_Asterisk_does_not_re_export_a_default))}}}(e,t):Aa(e,e,t,Rl(t)&&t.propertyName||t.name);return qa(t,i,void 0,!1),i}function Ea(e){switch(e.kind){case 273:return e.parent.moduleSpecifier;case 271:return xE(e.moduleReference)?e.moduleReference.expression:void 0;case 274:case 281:return e.parent.parent.moduleSpecifier;case 276:return e.parent.parent.parent.moduleSpecifier;default:return un.assertNever(e)}}function Pa(e,t,n=!1){var r;const i=Cm(e)||e.moduleSpecifier,o=Qa(e,i),a=!HD(t)&&t.propertyName||t.name;if(!zN(a)&&11!==a.kind)return;const s=Wd(a),c=ns(o,i,!1,"default"===s&&W);if(c&&(s||11===a.kind)){if(lp(o))return o;let l;l=o&&o.exports&&o.exports.get("export=")?Cf(S_(c),s,!0):function(e,t){if(3&e.flags){const n=e.valueDeclaration.type;if(n)return Ma(Cf(dk(n),t))}}(c,s),l=Ma(l,n);let _=function(e,t,n,r){var i;if(1536&e.flags){const o=cs(e).get(t),a=Ma(o,r);return qa(n,o,a,!1,null==(i=oa(e).typeOnlyExportStarMap)?void 0:i.get(t),t),a}}(c,s,t,n);if(void 0===_&&"default"===s){const e=null==(r=o.declarations)?void 0:r.find(qE);(wa(i,o)||Na(e,o,n,i))&&(_=ts(o,n)||Ma(o,n))}const u=_&&l&&_!==l?function(e,t){if(e===xt&&t===xt)return xt;if(790504&e.flags)return e;const n=Wo(e.flags|t.flags,e.escapedName);return un.assert(e.declarations||t.declarations),n.declarations=Q(K(e.declarations,t.declarations),mt),n.parent=e.parent||t.parent,e.valueDeclaration&&(n.valueDeclaration=e.valueDeclaration),t.members&&(n.members=new Map(t.members)),e.exports&&(n.exports=new Map(e.exports)),n}(l,_):_||l;return Rl(t)&&wa(i,o)&&"default"!==s?jo(a,la.Named_imports_from_a_JSON_file_into_an_ECMAScript_module_are_not_allowed_when_module_is_set_to_0,fi[M]):u||Aa(o,c,e,a),u}}function Aa(e,t,n,r){var i;const o=Ha(e,n),a=Ep(r),s=zN(r)?BI(r,t):void 0;if(void 0!==s){const e=ic(s),t=jo(r,la._0_has_no_exported_member_named_1_Did_you_mean_2,o,a,e);s.valueDeclaration&&iT(t,jp(s.valueDeclaration,la._0_is_declared_here,e))}else(null==(i=e.exports)?void 0:i.has("default"))?jo(r,la.Module_0_has_no_exported_member_1_Did_you_mean_to_use_import_1_from_0_instead,o,a):function(e,t,n,r,i){var o,a;const s=null==(a=null==(o=tt(r.valueDeclaration,au))?void 0:o.locals)?void 0:a.get(Wd(t)),c=r.exports;if(s){const r=null==c?void 0:c.get("export=");if(r)ks(r,s)?function(e,t,n,r){M>=5?jo(t,kk(j)?la._0_can_only_be_imported_by_using_a_default_import:la._0_can_only_be_imported_by_turning_on_the_esModuleInterop_flag_and_using_a_default_import,n):Fm(e)?jo(t,kk(j)?la._0_can_only_be_imported_by_using_a_require_call_or_by_using_a_default_import:la._0_can_only_be_imported_by_using_a_require_call_or_by_turning_on_the_esModuleInterop_flag_and_using_a_default_import,n):jo(t,kk(j)?la._0_can_only_be_imported_by_using_import_1_require_2_or_a_default_import:la._0_can_only_be_imported_by_using_import_1_require_2_or_by_turning_on_the_esModuleInterop_flag_and_using_a_default_import,n,n,r)}(e,t,n,i):jo(t,la.Module_0_has_no_exported_member_1,i,n);else{const e=c?b(Lm(c),(e=>!!ks(e,s))):void 0,r=e?jo(t,la.Module_0_declares_1_locally_but_it_is_exported_as_2,i,n,ic(e)):jo(t,la.Module_0_declares_1_locally_but_it_is_not_exported,i,n);s.declarations&&iT(r,...E(s.declarations,((e,t)=>jp(e,0===t?la._0_is_declared_here:la.and_here,n))))}}else jo(t,la.Module_0_has_no_exported_member_1,i,n)}(n,r,a,e,o)}function Ia(e){if(VF(e)&&e.initializer&&HD(e.initializer))return e.initializer}function Oa(e,t,n){const r=e.propertyName||e.name;if($d(r)){const t=Ea(e),r=t&&Qa(e,t);if(r)return Fa(r,e,!!n)}const i=e.parent.parent.moduleSpecifier?Pa(e.parent.parent,e,n):11===r.kind?void 0:Ka(r,t,!1,n);return qa(e,void 0,i,!1),i}function La(e,t){if(pF(e))return fj(e).symbol;if(!Zl(e)&&!ob(e))return;return Ka(e,901119,!0,t)||(fj(e),aa(e).resolvedSymbol)}function ja(e,t=!1){switch(e.kind){case 271:case 260:return function(e,t){const n=Ia(e);if(n){const e=Cx(n.expression).arguments[0];return zN(n.name)?Ma(Cf(mg(e),n.name.escapedText)):void 0}if(VF(e)||283===e.moduleReference.kind){const t=Qa(e,Cm(e)||Tm(e)),n=ts(t);return qa(e,t,n,!1),n}const r=$a(e.moduleReference,t);return function(e,t){if(qa(e,void 0,t,!1)&&!e.isTypeOnly){const t=Wa(ps(e)),n=281===t.kind||278===t.kind,r=n?la.An_import_alias_cannot_reference_a_declaration_that_was_exported_using_export_type:la.An_import_alias_cannot_reference_a_declaration_that_was_imported_using_import_type,i=n?la._0_was_exported_here:la._0_was_imported_here,o=278===t.kind?"*":Vd(t.name);iT(jo(e.moduleReference,r),jp(t,i,o))}}(e,r),r}(e,t);case 273:return function(e,t){const n=Qa(e,e.parent.moduleSpecifier);if(n)return Fa(n,e,t)}(e,t);case 274:return function(e,t){const n=e.parent.parent.moduleSpecifier,r=Qa(e,n),i=ns(r,n,t,!1);return qa(e,r,i,!1),i}(e,t);case 280:return function(e,t){const n=e.parent.moduleSpecifier,r=n&&Qa(e,n),i=n&&ns(r,n,t,!1);return qa(e,r,i,!1),i}(e,t);case 276:case 208:return function(e,t){if(dE(e)&&$d(e.propertyName||e.name)){const n=Ea(e),r=n&&Qa(e,n);if(r)return Fa(r,e,t)}const n=VD(e)?Qh(e):e.parent.parent.parent,r=Ia(n),i=Pa(n,r||e,t),o=e.propertyName||e.name;return r&&i&&zN(o)?Ma(Cf(S_(i),o.escapedText),t):(qa(e,void 0,i,!1),i)}(e,t);case 281:return Oa(e,901119,t);case 277:case 226:return function(e,t){const n=La(pE(e)?e.expression:e.right,t);return qa(e,void 0,n,!1),n}(e,t);case 270:return function(e,t){if(ou(e.parent)){const n=ts(e.parent.symbol,t);return qa(e,void 0,n,!1),n}}(e,t);case 304:return Ka(e.name,901119,!0,t);case 303:return La(e.initializer,t);case 212:case 211:return function(e,t){if(cF(e.parent)&&e.parent.left===e&&64===e.parent.operatorToken.kind)return La(e.parent.right,t)}(e,t);default:return un.fail()}}function Ra(e,t=901119){return!(!e||2097152!=(e.flags&(2097152|t))&&!(2097152&e.flags&&67108864&e.flags))}function Ma(e,t){return!t&&Ra(e)?Ba(e):e}function Ba(e){un.assert(!!(2097152&e.flags),"Should only get Alias here.");const t=oa(e);if(t.aliasTarget)t.aliasTarget===kt&&(t.aliasTarget=xt);else{t.aliasTarget=kt;const n=ba(e);if(!n)return un.fail();const r=ja(n);t.aliasTarget===kt?t.aliasTarget=r||xt:jo(n,la.Circular_definition_of_import_alias_0,ic(e))}return t.aliasTarget}function za(e,t,n){const r=t&&Wa(e),i=r&&fE(r),o=r&&(i?Qa(r.moduleSpecifier,r.moduleSpecifier,!0):Ba(r.symbol)),a=i&&o?ls(o):void 0;let s,c=n?0:e.flags;for(;2097152&e.flags;){const t=Ss(Ba(e));if(!i&&t===o||(null==a?void 0:a.get(t.escapedName))===t)break;if(t===xt)return-1;if(t===e||(null==s?void 0:s.has(t)))break;2097152&t.flags&&(s?s.add(t):s=new Set([e,t])),c|=t.flags,e=t}return c}function qa(e,t,n,r,i,o){if(!e||HD(e))return!1;const a=ps(e);if(Jl(e))return oa(a).typeOnlyDeclaration=e,!0;if(i){const e=oa(a);return e.typeOnlyDeclaration=i,a.escapedName!==o&&(e.typeOnlyExportStarName=o),!0}const s=oa(a);return Va(s,t,r)||Va(s,n,r)}function Va(e,t,n){var r;if(t&&(void 0===e.typeOnlyDeclaration||n&&!1===e.typeOnlyDeclaration)){const n=(null==(r=t.exports)?void 0:r.get("export="))??t,i=n.declarations&&b(n.declarations,Jl);e.typeOnlyDeclaration=i??oa(n).typeOnlyDeclaration??!1}return!!e.typeOnlyDeclaration}function Wa(e,t){var n;if(!(2097152&e.flags))return;const r=oa(e);if(void 0===r.typeOnlyDeclaration){r.typeOnlyDeclaration=!1;const t=Ma(e);qa(null==(n=e.declarations)?void 0:n[0],ba(e)&&wA(e),t,!0)}return void 0===t?r.typeOnlyDeclaration||void 0:r.typeOnlyDeclaration&&za(278===r.typeOnlyDeclaration.kind?Ma(ls(r.typeOnlyDeclaration.symbol.parent).get(r.typeOnlyExportStarName||e.escapedName)):Ba(r.typeOnlyDeclaration.symbol))&t?r.typeOnlyDeclaration:void 0}function $a(e,t){return 80===e.kind&&ub(e)&&(e=e.parent),80===e.kind||166===e.parent.kind?Ka(e,1920,!1,t):(un.assert(271===e.parent.kind),Ka(e,901119,!1,t))}function Ha(e,t){return e.parent?Ha(e.parent,t)+"."+ic(e):ic(e,t,void 0,36)}function Ka(e,t,n,r,i){if(Cd(e))return;const o=1920|(Fm(e)?111551&t:0);let a;if(80===e.kind){const r=t===o||Zh(e)?la.Cannot_find_namespace_0:uN(ab(e)),s=Fm(e)&&!Zh(e)?function(e,t){if(yy(e.parent)){const n=function(e){if(_c(e,(e=>ku(e)||16777216&e.flags?Ng(e):"quit")))return;const t=Ug(e);if(t&&DF(t)&&dg(t.expression)){const e=ps(t.expression.left);if(e)return Ga(e)}if(t&&eF(t)&&dg(t.parent)&&DF(t.parent.parent)){const e=ps(t.parent.left);if(e)return Ga(e)}if(t&&(Mf(t)||ME(t))&&cF(t.parent.parent)&&6===eg(t.parent.parent)){const e=ps(t.parent.parent.left);if(e)return Ga(e)}const n=qg(e);if(n&&n_(n)){const e=ps(n);return e&&e.valueDeclaration}}(e.parent);if(n)return Ue(n,e,t,void 0,!0)}}(e,t):void 0;if(a=ds(Ue(i||e,e,t,n||s?void 0:r,!0,!1)),!a)return ds(s)}else if(166===e.kind||211===e.kind){const r=166===e.kind?e.left:e.expression,s=166===e.kind?e.right:e.name;let c=Ka(r,o,n,!1,i);if(!c||Cd(s))return;if(c===xt)return c;if(c.valueDeclaration&&Fm(c.valueDeclaration)&&100!==vk(j)&&VF(c.valueDeclaration)&&c.valueDeclaration.initializer&&QO(c.valueDeclaration.initializer)){const e=c.valueDeclaration.initializer.arguments[0],t=Qa(e,e);if(t){const e=ts(t);e&&(c=e)}}if(a=ds(sa(cs(c),s.escapedText,t)),!a&&2097152&c.flags&&(a=ds(sa(cs(Ba(c)),s.escapedText,t))),!a){if(!n){const n=Ha(c),r=Ep(s),i=BI(s,c);if(i)return void jo(s,la._0_has_no_exported_member_named_1_Did_you_mean_2,n,r,ic(i));const o=nD(e)&&function(e){for(;nD(e.parent);)e=e.parent;return e}(e),a=Gn&&788968&t&&o&&!rF(o.parent)&&function(e){let t=ab(e),n=Ue(t,t,111551,void 0,!0);if(n){for(;nD(t.parent);){if(n=Cf(S_(n),t.parent.right.escapedText),!n)return;t=t.parent}return n}}(o);if(a)return void jo(o,la._0_refers_to_a_value_but_is_being_used_as_a_type_here_Did_you_mean_typeof_0,Lp(o));if(1920&t&&nD(e.parent)){const t=ds(sa(cs(c),s.escapedText,788968));if(t)return void jo(e.parent.right,la.Cannot_access_0_1_because_0_is_a_type_but_not_a_namespace_Did_you_mean_to_retrieve_the_type_of_the_property_1_in_0_with_0_1,ic(t),fc(e.parent.right.escapedText))}jo(s,la.Namespace_0_has_no_exported_member_1,n,r)}return}}else un.assertNever(e,"Unknown entity name kind.");return!Zh(e)&&Zl(e)&&(2097152&a.flags||277===e.parent.kind)&&qa(dh(e),a,void 0,!0),a.flags&t||r?a:Ba(a)}function Ga(e){const t=e.parent.valueDeclaration;if(t)return(qm(t)?Wm(t):Eu(t)?Vm(t):void 0)||t}function Qa(e,t,n){const r=1===vk(j)?la.Cannot_find_module_0_Did_you_mean_to_set_the_moduleResolution_option_to_nodenext_or_to_add_aliases_to_the_paths_option:la.Cannot_find_module_0_or_its_corresponding_type_declarations;return Ya(e,t,n?void 0:r,n)}function Ya(e,t,n,r=!1,i=!1){return Lu(t)?Za(e,t.text,n,r?void 0:t,i):void 0}function Za(t,n,r,i,o=!1){var a,s,c,l,_,u,d,p,f,m,g;i&&Gt(n,"@types/")&&jo(i,la.Cannot_import_type_declaration_files_Consider_importing_0_instead_of_1,Xt(n,"@types/"),n);const h=Mm(n,!0);if(h)return h;const y=hd(t),v=Lu(t)?t:(null==(a=QF(t)?t:t.parent&&QF(t.parent)&&t.parent.name===t?t.parent:void 0)?void 0:a.name)||(null==(s=_f(t)?t:void 0)?void 0:s.argument.literal)||(VF(t)&&t.initializer&&Om(t.initializer,!0)?t.initializer.arguments[0]:void 0)||(null==(c=_c(t,cf))?void 0:c.arguments[0])||(null==(l=_c(t,en(nE,PP,fE)))?void 0:l.moduleSpecifier)||(null==(_=_c(t,Sm))?void 0:_.moduleReference.expression),b=v&&Lu(v)?e.getModeForUsageLocation(y,v):e.getDefaultResolutionModeForFile(y),x=vk(j),k=null==(u=e.getResolvedModule(y,n,b))?void 0:u.resolvedModule,S=i&&k&&EV(j,k,y),T=k&&(!S||S===la.Module_0_was_resolved_to_1_but_jsx_is_not_set)&&e.getSourceFile(k.resolvedFileName);if(T){if(S&&jo(i,S,n,k.resolvedFileName),k.resolvedUsingTsExtension&&$I(n)){const e=(null==(d=_c(t,nE))?void 0:d.importClause)||_c(t,en(tE,fE));(i&&e&&!e.isTypeOnly||_c(t,cf))&&jo(i,la.A_declaration_file_cannot_be_imported_without_import_type_Did_you_mean_to_import_an_implementation_file_0_instead,function(e){const t=US(n,e);if(Ik(M)||99===b){const r=$I(n)&&bM(j);return t+(".mts"===e||".d.mts"===e?r?".mts":".mjs":".cts"===e||".d.mts"===e?r?".cts":".cjs":r?".ts":".js")}return t}(un.checkDefined(vb(n))))}else if(k.resolvedUsingTsExtension&&!bM(j,y.fileName)){const e=(null==(p=_c(t,nE))?void 0:p.importClause)||_c(t,en(tE,fE));if(i&&!(null==e?void 0:e.isTypeOnly)&&!_c(t,BD)){const e=un.checkDefined(vb(n));jo(i,la.An_import_path_can_only_end_with_a_0_extension_when_allowImportingTsExtensions_is_enabled,e)}}else if(j.rewriteRelativeImportExtensions&&!(33554432&t.flags)&&!$I(n)&&!_f(t)&&!zl(t)){const t=bg(n,j);if(!k.resolvedUsingTsExtension&&t)jo(i,la.This_relative_import_path_is_unsafe_to_rewrite_because_it_looks_like_a_file_name_but_actually_resolves_to_0,ia(Bo(y.fileName,e.getCurrentDirectory()),k.resolvedFileName,jy(e)));else if(k.resolvedUsingTsExtension&&!t&&Gy(T,e))jo(i,la.This_import_uses_a_0_extension_to_resolve_to_an_input_TypeScript_file_but_will_not_be_rewritten_during_emit_because_it_is_not_a_relative_path,Po(n));else if(k.resolvedUsingTsExtension&&t){const t=e.getResolvedProjectReferenceToRedirect(T.path);if(t){const n=!e.useCaseSensitiveFileNames(),r=e.getCommonSourceDirectory(),o=Vq(t.commandLine,n);na(r,o,n)!==na(j.outDir||r,t.commandLine.options.outDir||o,n)&&jo(i,la.This_import_path_is_unsafe_to_rewrite_because_it_resolves_to_another_project_and_the_relative_path_between_the_projects_output_files_is_not_the_same_as_the_relative_path_between_its_input_files)}}}if(T.symbol){if(i&&k.isExternalLibraryImport&&!XS(k.extension)&&es(!1,i,y,b,k,n),i&&(3===x||99===x)){const e=1===y.impliedNodeFormat&&!_c(t,cf)||!!_c(t,tE),r=_c(t,(e=>BD(e)||fE(e)||nE(e)||PP(e)));if(e&&99===T.impliedNodeFormat&&!cC(r))if(_c(t,tE))jo(i,la.Module_0_cannot_be_imported_using_this_construct_The_specifier_only_resolves_to_an_ES_module_which_cannot_be_imported_with_require_Use_an_ECMAScript_import_instead,n);else{let e;const t=ZS(y.fileName);".ts"!==t&&".js"!==t&&".tsx"!==t&&".jsx"!==t||(e=ud(y));const o=272===(null==r?void 0:r.kind)&&(null==(f=r.importClause)?void 0:f.isTypeOnly)?la.Type_only_import_of_an_ECMAScript_module_from_a_CommonJS_module_must_have_a_resolution_mode_attribute:205===(null==r?void 0:r.kind)?la.Type_import_of_an_ECMAScript_module_from_a_CommonJS_module_must_have_a_resolution_mode_attribute:la.The_current_file_is_a_CommonJS_module_whose_imports_will_produce_require_calls_however_the_referenced_file_is_an_ECMAScript_module_and_cannot_be_imported_with_require_Consider_writing_a_dynamic_import_0_call_instead;uo.add(Bp(hd(i),i,Yx(e,o,n)))}}return ds(T.symbol)}i&&r&&!xC(i)&&jo(i,la.File_0_is_not_a_module,T.fileName)}else{if($n){const e=Kt($n,(e=>e.pattern),n);if(e){const t=Kn&&Kn.get(n);return ds(t||e.symbol)}}if(i){if((!k||XS(k.extension)||void 0!==S)&&S!==la.Could_not_find_a_declaration_file_for_module_0_1_implicitly_has_an_any_type){if(r){if(k){const t=e.getProjectReferenceRedirect(k.resolvedFileName);if(t)return void jo(i,la.Output_file_0_has_not_been_built_from_source_file_1,t,k.resolvedFileName)}if(S)jo(i,S,n,k.resolvedFileName);else{const t=vo(n)&&!xo(n),o=3===x||99===x;if(!wk(j)&&ko(n,".json")&&1!==x&&Ok(j))jo(i,la.Cannot_find_module_0_Consider_using_resolveJsonModule_to_import_module_with_json_extension,n);else if(99===b&&o&&t){const t=Bo(n,Do(y.path)),r=null==(m=Co.find((([n,r])=>e.fileExists(t+n))))?void 0:m[1];r?jo(i,la.Relative_import_paths_need_explicit_file_extensions_in_ECMAScript_imports_when_moduleResolution_is_node16_or_nodenext_Did_you_mean_0,n+r):jo(i,la.Relative_import_paths_need_explicit_file_extensions_in_ECMAScript_imports_when_moduleResolution_is_node16_or_nodenext_Consider_adding_an_extension_to_the_import_path)}else(null==(g=e.getResolvedModule(y,n,b))?void 0:g.alternateResult)?Mo(!0,i,Yx(_d(y,e,n,b,n),r,n)):jo(i,r,n)}}return}o?jo(i,la.Invalid_module_name_in_augmentation_Module_0_resolves_to_an_untyped_module_at_1_which_cannot_be_augmented,n,k.resolvedFileName):es(ne&&!!r,i,y,b,k,n)}}}function es(t,n,r,i,{packageId:o,resolvedFileName:a},s){if(xC(n))return;let c;!Ts(s)&&o&&(c=_d(r,e,s,i,o.name)),Mo(t,n,Yx(c,la.Could_not_find_a_declaration_file_for_module_0_1_implicitly_has_an_any_type,s,a))}function ts(e,t){if(null==e?void 0:e.exports){const n=function(e,t){if(!e||e===xt||e===t||1===t.exports.size||2097152&e.flags)return e;const n=oa(e);if(n.cjsExportMerged)return n.cjsExportMerged;const r=33554432&e.flags?e:Xo(e);return r.flags=512|r.flags,void 0===r.exports&&(r.exports=Hu()),t.exports.forEach(((e,t)=>{"export="!==t&&r.exports.set(t,r.exports.has(t)?Qo(r.exports.get(t),e):e)})),r===e&&(oa(r).resolvedExports=void 0,oa(r).resolvedMembers=void 0),oa(r).cjsExportMerged=r,n.cjsExportMerged=r}(ds(Ma(e.exports.get("export="),t)),ds(e));return ds(n)||e}}function ns(t,n,r,i){var o;const a=ts(t,r);if(!r&&a){if(!(i||1539&a.flags||Wu(a,307))){const e=M>=5?"allowSyntheticDefaultImports":"esModuleInterop";return jo(n,la.This_module_can_only_be_referenced_with_ECMAScript_imports_Slashexports_by_turning_on_the_0_flag_and_referencing_its_default_export,e),a}const r=n.parent;if(nE(r)&&kg(r)||cf(r)){const n=cf(r)?r.arguments[0]:r.moduleSpecifier,i=S_(a),l=GO(i,a,t,n);if(l)return rs(a,l,r);const _=null==(o=null==t?void 0:t.declarations)?void 0:o.find(qE),u=_&&(s=Ca(n),c=e.getImpliedNodeFormatForEmit(_),99===s&&1===c);if(kk(j)||u){let e=jf(i,0);if(e&&e.length||(e=jf(i,1)),e&&e.length||Cf(i,"default",!0)||u)return rs(a,3670016&i.flags?XO(i,a,t,n):KO(a,a.parent),r)}}}var s,c;return a}function rs(e,t,n){const r=Wo(e.flags,e.escapedName);r.declarations=e.declarations?e.declarations.slice():[],r.parent=e.parent,r.links.target=e,r.links.originatingImport=n,e.valueDeclaration&&(r.valueDeclaration=e.valueDeclaration),e.constEnumOnlyModule&&(r.constEnumOnlyModule=!0),e.members&&(r.members=new Map(e.members)),e.exports&&(r.exports=new Map(e.exports));const i=pp(t);return r.links.type=Bs(r,i.members,l,l,i.indexInfos),r}function is(e){return void 0!==e.exports.get("export=")}function os(e){return Lm(ls(e))}function as(e,t){const n=ls(t);if(n)return n.get(e)}function ss(e){return!(402784252&e.flags||1&mx(e)||yC(e)||UC(e))}function cs(e){return 6256&e.flags?ad(e,"resolvedExports"):1536&e.flags?ls(e):e.exports||P}function ls(e){const t=oa(e);if(!t.resolvedExports){const{exports:n,typeOnlyExportStarMap:r}=us(e);t.resolvedExports=n,t.typeOnlyExportStarMap=r}return t.resolvedExports}function _s(e,t,n,r){t&&t.forEach(((t,i)=>{if("default"===i)return;const o=e.get(i);if(o){if(n&&r&&o&&Ma(o)!==Ma(t)){const e=n.get(i);e.exportsWithDuplicate?e.exportsWithDuplicate.push(r):e.exportsWithDuplicate=[r]}}else e.set(i,t),n&&r&&n.set(i,{specifierText:Kd(r.moduleSpecifier)})}))}function us(e){const t=[];let n;const r=new Set,i=function e(i,o,a){if(!a&&(null==i?void 0:i.exports)&&i.exports.forEach(((e,t)=>r.add(t))),!(i&&i.exports&&ce(t,i)))return;const s=new Map(i.exports),c=i.exports.get("__export");if(c){const t=Hu(),n=new Map;if(c.declarations)for(const r of c.declarations){_s(t,e(Qa(r,r.moduleSpecifier),r,a||r.isTypeOnly),n,r)}n.forEach((({exportsWithDuplicate:e},t)=>{if("export="!==t&&e&&e.length&&!s.has(t))for(const r of e)uo.add(jp(r,la.Module_0_has_already_exported_a_member_named_1_Consider_explicitly_re_exporting_to_resolve_the_ambiguity,n.get(t).specifierText,fc(t)))})),_s(s,t)}return(null==o?void 0:o.isTypeOnly)&&(n??(n=new Map),s.forEach(((e,t)=>n.set(t,o)))),s}(e=ts(e))||P;return n&&r.forEach((e=>n.delete(e))),{exports:i,typeOnlyExportStarMap:n}}function ds(e){let t;return e&&e.mergeId&&(t=Wi[e.mergeId])?t:e}function ps(e){return ds(e.symbol&&cd(e.symbol))}function gs(e){return ou(e)?ps(e):void 0}function hs(e){return ds(e.parent&&cd(e.parent))}function ys(e){var t,n;return(219===(null==(t=e.valueDeclaration)?void 0:t.kind)||218===(null==(n=e.valueDeclaration)?void 0:n.kind))&&gs(e.valueDeclaration.parent)||e}function vs(t,n,r){const i=hs(t);if(i&&!(262144&t.flags))return _(i);const o=B(t.declarations,(e=>{if(!ap(e)&&e.parent){if(Qs(e.parent))return ps(e.parent);if(YF(e.parent)&&e.parent.parent&&ts(ps(e.parent.parent))===t)return ps(e.parent.parent)}if(pF(e)&&cF(e.parent)&&64===e.parent.operatorToken.kind&&kx(e.parent.left)&&ob(e.parent.left.expression))return Zm(e.parent.left)||Qm(e.parent.left.expression)?ps(hd(e)):(fj(e.parent.left.expression),aa(e.parent.left.expression).resolvedSymbol)}));if(!u(o))return;const a=B(o,(e=>xs(e,t)?e:void 0));let s=[],c=[];for(const e of a){const[t,...n]=_(e);s=ie(s,t),c=se(c,n)}return K(s,c);function _(i){const o=B(i.declarations,d),a=n&&function(t,n){const r=hd(n),i=jB(r),o=oa(t);let a;if(o.extendedContainersByFile&&(a=o.extendedContainersByFile.get(i)))return a;if(r&&r.imports){for(const e of r.imports){if(Zh(e))continue;const r=Qa(n,e,!0);r&&xs(r,t)&&(a=ie(a,r))}if(u(a))return(o.extendedContainersByFile||(o.extendedContainersByFile=new Map)).set(i,a),a}if(o.extendedContainers)return o.extendedContainers;const s=e.getSourceFiles();for(const e of s){if(!MI(e))continue;const n=ps(e);xs(n,t)&&(a=ie(a,n))}return o.extendedContainers=a||l}(t,n),s=function(e,t){const n=!!u(e.declarations)&&ge(e.declarations);if(111551&t&&n&&n.parent&&VF(n.parent)&&($D(n)&&n===n.parent.initializer||SD(n)&&n===n.parent.type))return ps(n.parent)}(i,r);if(n&&i.flags&zs(r)&&qs(i,n,1920,!1))return ie(K(K([i],o),a),s);const c=!(i.flags&zs(r))&&788968&i.flags&&524288&fu(i).flags&&111551===r?Js(n,(e=>td(e,(e=>{if(e.flags&zs(r)&&S_(e)===fu(i))return e})))):void 0;let _=c?[c,...o,i]:[...o,i];return _=ie(_,s),_=se(_,a),_}function d(e){return i&&bs(e,i)}}function bs(e,t){const n=Gs(e),r=n&&n.exports&&n.exports.get("export=");return r&&ks(r,t)?n:void 0}function xs(e,t){if(e===hs(t))return t;const n=e.exports&&e.exports.get("export=");if(n&&ks(n,t))return e;const r=cs(e),i=r.get(t.escapedName);return i&&ks(i,t)?i:td(r,(e=>{if(ks(e,t))return e}))}function ks(e,t){if(ds(Ma(ds(e)))===ds(Ma(ds(t))))return e}function Ss(e){return ds(e&&!!(1048576&e.flags)&&e.exportSymbol||e)}function Cs(e,t){return!!(111551&e.flags||2097152&e.flags&&111551&za(e,!t))}function ws(e){var t;const n=new c(He,e);return p++,n.id=p,null==(t=Hn)||t.recordType(n),n}function Ns(e,t){const n=ws(e);return n.symbol=t,n}function Fs(e){return new c(He,e)}function As(e,t,n=0,r){!function(e,t){const n=`${e},${t??""}`;Ct.has(n)&&un.fail(`Duplicate intrinsic type name ${e}${t?` (${t})`:""}; you may need to pass a name to createIntrinsicType.`),Ct.add(n)}(t,r);const i=ws(e);return i.intrinsicName=t,i.debugIntrinsicName=r,i.objectFlags=52953088|n,i}function Is(e,t){const n=Ns(524288,t);return n.objectFlags=e,n.members=void 0,n.properties=void 0,n.callSignatures=void 0,n.constructSignatures=void 0,n.indexInfos=void 0,n}function Os(e){return Ns(262144,e)}function Ls(e){return 95===e.charCodeAt(0)&&95===e.charCodeAt(1)&&95!==e.charCodeAt(2)&&64!==e.charCodeAt(2)&&35!==e.charCodeAt(2)}function js(e){let t;return e.forEach(((e,n)=>{Rs(e,n)&&(t||(t=[])).push(e)})),t||l}function Rs(e,t){return!Ls(t)&&Cs(e)}function Ms(e,t,n,r,i){const o=e;return o.members=t,o.properties=l,o.callSignatures=n,o.constructSignatures=r,o.indexInfos=i,t!==P&&(o.properties=js(t)),o}function Bs(e,t,n,r,i){return Ms(Is(16,e),t,n,r,i)}function Js(e,t){let n;for(let r=e;r;r=r.parent){if(au(r)&&r.locals&&!Xp(r)&&(n=t(r.locals,void 0,!0,r)))return n;switch(r.kind){case 307:if(!Qp(r))break;case 267:const e=ps(r);if(n=t((null==e?void 0:e.exports)||P,void 0,!0,r))return n;break;case 263:case 231:case 264:let i;if((ps(r).members||P).forEach(((e,t)=>{788968&e.flags&&(i||(i=Hu())).set(t,e)})),i&&(n=t(i,void 0,!1,r)))return n}}return t(Ne,void 0,!0)}function zs(e){return 111551===e?111551:1920}function qs(e,t,n,r,i=new Map){if(!e||function(e){if(e.declarations&&e.declarations.length){for(const t of e.declarations)switch(t.kind){case 172:case 174:case 177:case 178:continue;default:return!1}return!0}return!1}(e))return;const o=oa(e),a=o.accessibleChainCache||(o.accessibleChainCache=new Map),s=Js(t,((e,t,n,r)=>r)),c=`${r?0:1}|${s?jB(s):0}|${n}`;if(a.has(c))return a.get(c);const l=RB(e);let _=i.get(l);_||i.set(l,_=[]);const u=Js(t,d);return a.set(c,u),u;function d(n,i,o){if(!ce(_,n))return;const a=function(n,i,o){if(f(n.get(e.escapedName),void 0,i))return[e];return td(n,(n=>{if(2097152&n.flags&&"export="!==n.escapedName&&"default"!==n.escapedName&&!(gx(n)&&t&&MI(hd(t)))&&(!r||$(n.declarations,Sm))&&(!o||!$(n.declarations,km))&&(i||!Wu(n,281))){const e=m(n,Ba(n),i);if(e)return e}if(n.escapedName===e.escapedName&&n.exportSymbol&&f(ds(n.exportSymbol),void 0,i))return[e]}))||(n===Ne?m(Fe,Fe,i):void 0)}(n,i,o);return _.pop(),a}function p(e,n){return!Us(e,t,n)||!!qs(e.parent,t,zs(n),r,i)}function f(t,r,i){return(e===(r||t)||ds(e)===ds(r||t))&&!$(t.declarations,Qs)&&(i||p(ds(t),n))}function m(e,t,r){if(f(e,t,r))return[e];const i=cs(t),o=i&&d(i,!0);return o&&p(e,zs(n))?[e].concat(o):void 0}}function Us(e,t,n){let r=!1;return Js(t,(t=>{let i=ds(t.get(e.escapedName));if(!i)return!1;if(i===e)return!0;const o=2097152&i.flags&&!Wu(i,281);return i=o?Ba(i):i,!!((o?za(i):i.flags)&n)&&(r=!0,!0)})),r}function Vs(e,t){return 0===Ks(e,t,111551,!1,!0).accessibility}function Ws(e,t,n){return 0===Ks(e,t,n,!1,!1).accessibility}function $s(e,t,n,r,i,o){if(!u(e))return;let a,s=!1;for(const c of e){const e=qs(c,t,r,!1);if(e){a=c;const t=Zs(e[0],i);if(t)return t}if(o&&$(c.declarations,Qs)){if(i){s=!0;continue}return{accessibility:0}}const l=$s(vs(c,t,r),t,n,n===c?zs(r):r,i,o);if(l)return l}return s?{accessibility:0}:a?{accessibility:1,errorSymbolName:ic(n,t,r),errorModuleName:a!==n?ic(a,t,1920):void 0}:void 0}function Hs(e,t,n,r){return Ks(e,t,n,r,!0)}function Ks(e,t,n,r,i){if(e&&t){const o=$s([e],t,e,n,r,i);if(o)return o;const a=d(e.declarations,Gs);return a&&a!==Gs(t)?{accessibility:2,errorSymbolName:ic(e,t,n),errorModuleName:ic(a),errorNode:Fm(t)?t:void 0}:{accessibility:1,errorSymbolName:ic(e,t,n)}}return{accessibility:0}}function Gs(e){const t=_c(e,Xs);return t&&ps(t)}function Xs(e){return ap(e)||307===e.kind&&Qp(e)}function Qs(e){return sp(e)||307===e.kind&&Qp(e)}function Zs(e,t){let n;if(v(N(e.declarations,(e=>80!==e.kind)),(function(t){var n,i;if(!Lc(t)){const o=va(t);if(o&&!wv(o,32)&&Lc(o.parent))return r(t,o);if(VF(t)&&wF(t.parent.parent)&&!wv(t.parent.parent,32)&&Lc(t.parent.parent.parent))return r(t,t.parent.parent);if(Tp(t)&&!wv(t,32)&&Lc(t.parent))return r(t,t);if(VD(t)){if(2097152&e.flags&&Fm(t)&&(null==(n=t.parent)?void 0:n.parent)&&VF(t.parent.parent)&&(null==(i=t.parent.parent.parent)?void 0:i.parent)&&wF(t.parent.parent.parent.parent)&&!wv(t.parent.parent.parent.parent,32)&&t.parent.parent.parent.parent.parent&&Lc(t.parent.parent.parent.parent.parent))return r(t,t.parent.parent.parent.parent);if(2&e.flags){const e=_c(t,wF);return!!wv(e,32)||!!Lc(e.parent)&&r(t,e)}}return!1}return!0})))return{accessibility:0,aliasesToMakeVisible:n};function r(e,r){return t&&(aa(e).isVisible=!0,n=le(n,r)),!0}}function ec(e){let t;return t=186===e.parent.kind||233===e.parent.kind&&!Tf(e.parent)||167===e.parent.kind||182===e.parent.kind&&e.parent.parameterName===e?1160127:166===e.kind||211===e.kind||271===e.parent.kind||166===e.parent.kind&&e.parent.left===e||211===e.parent.kind&&e.parent.expression===e||212===e.parent.kind&&e.parent.expression===e?1920:788968,t}function nc(e,t,n=!0){const r=ec(e),i=ab(e),o=Ue(t,i.escapedText,r,void 0,!1);return o&&262144&o.flags&&788968&r||!o&&cv(i)&&0===Hs(ps(Zf(i,!1,!1)),i,r,!1).accessibility?{accessibility:0}:o?Zs(o,n)||{accessibility:1,errorSymbolName:Kd(i),errorNode:i}:{accessibility:3,errorSymbolName:Kd(i),errorNode:i}}function ic(e,t,n,r=4,i){let o=70221824,a=0;2&r&&(o|=128),1&r&&(o|=512),8&r&&(o|=16384),32&r&&(a|=4),16&r&&(a|=1);const s=4&r?xe.symbolToNode:xe.symbolToEntityName;return i?c(i).getText():id(c);function c(r){const i=s(e,n,t,o,a),c=307===(null==t?void 0:t.kind)?tU():eU(),l=t&&hd(t);return c.writeNode(4,i,l,r),r}}function ac(e,t,n=0,r,i){return i?o(i).getText():id(o);function o(i){let o;o=262144&n?1===r?185:184:1===r?180:179;const a=xe.signatureToSignatureDeclaration(e,o,t,70222336|vc(n)),s=nU(),c=t&&hd(t);return s.writeNode(4,a,c,Oy(i)),i}}function sc(e,t,n=1064960,r=Iy("")){const i=j.noErrorTruncation||1&n,o=xe.typeToTypeNode(e,t,70221824|vc(n)|(i?1:0),void 0);if(void 0===o)return un.fail("should always get typenode");const a=e!==Pt?eU():Zq(),s=t&&hd(t);a.writeNode(4,o,s,r);const c=r.getText(),l=i?2*Vu:2*Uu;return l&&c&&c.length>=l?c.substr(0,l-3)+"...":c}function cc(e,t){let n=yc(e.symbol)?sc(e,e.symbol.valueDeclaration):sc(e),r=yc(t.symbol)?sc(t,t.symbol.valueDeclaration):sc(t);return n===r&&(n=uc(e),r=uc(t)),[n,r]}function uc(e){return sc(e,void 0,64)}function yc(e){return e&&!!e.valueDeclaration&&U_(e.valueDeclaration)&&!aS(e.valueDeclaration)}function vc(e=0){return 848330095&e}function xc(e){return!!(e.symbol&&32&e.symbol.flags&&(e===nu(e.symbol)||524288&e.flags&&16777216&mx(e)))}function Sc(e){return dk(e)}function Cc(e,t,n=16384,r){return r?i(r).getText():id(i);function i(r){const i=70222336|vc(n),o=xe.typePredicateToTypePredicateNode(e,t,i),a=eU(),s=t&&hd(t);return a.writeNode(4,o,s,r),r}}function Dc(e){return 2===e?"private":4===e?"protected":"public"}function Ec(e){return e&&e.parent&&268===e.parent.kind&&dp(e.parent.parent)}function Pc(e){return 307===e.kind||ap(e)}function Ac(e,t){const n=oa(e).nameType;if(n){if(384&n.flags){const e=""+n.value;return fs(e,hk(j))||MT(e)?MT(e)&&Gt(e,"-")?`[${e}]`:e:`"${by(e,34)}"`}if(8192&n.flags)return`[${Ic(n.symbol,t)}]`}}function Ic(e,t){var n;if((null==(n=null==t?void 0:t.remappedSymbolReferences)?void 0:n.has(RB(e)))&&(e=t.remappedSymbolReferences.get(RB(e))),t&&"default"===e.escapedName&&!(16384&t.flags)&&(!(16777216&t.flags)||!e.declarations||t.enclosingDeclaration&&_c(e.declarations[0],Pc)!==_c(t.enclosingDeclaration,Pc)))return"default";if(e.declarations&&e.declarations.length){let n=f(e.declarations,(e=>Tc(e)?e:void 0));const r=n&&Tc(n);if(n&&r){if(GD(n)&&tg(n))return hc(e);if(rD(r)&&!(4096&nx(e))){const n=oa(e).nameType;if(n&&384&n.flags){const n=Ac(e,t);if(void 0!==n)return n}}return Ep(r)}if(n||(n=e.declarations[0]),n.parent&&260===n.parent.kind)return Ep(n.parent.name);switch(n.kind){case 231:case 218:case 219:return!t||t.encounteredError||131072&t.flags||(t.encounteredError=!0),231===n.kind?"(Anonymous class)":"(Anonymous function)"}}const r=Ac(e,t);return void 0!==r?r:hc(e)}function Lc(e){if(e){const t=aa(e);return void 0===t.isVisible&&(t.isVisible=!!function(){switch(e.kind){case 338:case 346:case 340:return!!(e.parent&&e.parent.parent&&e.parent.parent.parent&&qE(e.parent.parent.parent));case 208:return Lc(e.parent.parent);case 260:if(x_(e.name)&&!e.name.elements.length)return!1;case 267:case 263:case 264:case 265:case 262:case 266:case 271:if(dp(e))return!0;const t=qc(e);return 32&lz(e)||271!==e.kind&&307!==t.kind&&33554432&t.flags?Lc(t):Xp(t);case 172:case 171:case 177:case 178:case 174:case 173:if(Cv(e,6))return!1;case 176:case 180:case 179:case 181:case 169:case 268:case 184:case 185:case 187:case 183:case 188:case 189:case 192:case 193:case 196:case 202:return Lc(e.parent);case 273:case 274:case 276:return!1;case 168:case 307:case 270:return!0;default:return!1}}()),t.isVisible}return!1}function jc(e,t){let n,r,i;return 11!==e.kind&&e.parent&&277===e.parent.kind?n=Ue(e,e,2998271,void 0,!1):281===e.parent.kind&&(n=Oa(e.parent,2998271)),n&&(i=new Set,i.add(RB(n)),function e(n){d(n,(n=>{const o=va(n)||n;if(t?aa(n).isVisible=!0:(r=r||[],ce(r,o)),wm(n)){const t=ab(n.moduleReference),r=Ue(n,t.escapedText,901119,void 0,!1);r&&i&&q(i,RB(r))&&e(r.declarations)}}))}(n.declarations)),r}function Mc(e,t){const n=Bc(e,t);if(n>=0){const{length:e}=Mi;for(let t=n;t=zi;n--){if(Jc(Mi[n],Ji[n]))return-1;if(Mi[n]===e&&Ji[n]===t)return n}return-1}function Jc(e,t){switch(t){case 0:return!!oa(e).type;case 2:return!!oa(e).declaredType;case 1:return!!e.resolvedBaseConstructorType;case 3:return!!e.resolvedReturnType;case 4:return!!e.immediateBaseConstraint;case 5:return!!e.resolvedTypeArguments;case 6:return!!e.baseTypesResolved;case 7:return!!oa(e).writeType;case 8:return void 0!==aa(e).parameterInitializerContainsUndefined}return un.assertNever(t)}function zc(){return Mi.pop(),Ji.pop(),Bi.pop()}function qc(e){return _c(Qh(e),(e=>{switch(e.kind){case 260:case 261:case 276:case 275:case 274:case 273:return!1;default:return!0}})).parent}function Uc(e,t){const n=Cf(e,t);return n?S_(n):void 0}function Vc(e,t){var n;let r;return Uc(e,t)||(r=null==(n=Nm(e,t))?void 0:n.type)&&kl(r,!0,!0)}function Wc(e){return e&&!!(1&e.flags)}function $c(e){return e===Et||!!(1&e.flags&&e.aliasSymbol)}function Kc(e,t){if(0!==t)return Sl(e,!1,t);const n=ps(e);return n&&oa(n).type||Sl(e,!1,t)}function Qc(e,t,n){if(131072&(e=OD(e,(e=>!(98304&e.flags)))).flags)return Nn;if(1048576&e.flags)return zD(e,(e=>Qc(e,t,n)));let r=xb(E(t,Rb));const i=[],o=[];for(const t of vp(e)){const e=Mb(t,8576);gS(e,r)||6&rx(t)||!$x(t)?o.push(e):i.push(t)}if(lx(e)||_x(r)){if(o.length&&(r=xb([r,...o])),131072&r.flags)return e;const t=(qr||(qr=Ey("Omit",2,!0)||xt),qr===xt?void 0:qr);return t?ny(t,[e,r]):Et}const a=Hu();for(const e of i)a.set(e.escapedName,Hx(e,!1));const s=Bs(n,a,l,l,Kf(e));return s.objectFlags|=4194304,s}function Yc(e){return!!(465829888&e.flags)&&QL(qp(e)||Ot,32768)}function Zc(e){return ON(ED(e,Yc)?zD(e,(e=>465829888&e.flags?Wp(e):e)):e,524288)}function nl(e,t){const n=rl(e);return n?JF(n,t):t}function rl(e){const t=function(e){const t=e.parent.parent;switch(t.kind){case 208:case 303:return rl(t);case 209:return rl(e.parent);case 260:return t.initializer;case 226:return t.right}}(e);if(t&&Ig(t)&&t.flowNode){const n=ol(e);if(n){const r=nI(aI.createStringLiteral(n),e),i=R_(t)?t:aI.createParenthesizedExpression(t),o=nI(aI.createElementAccessExpression(i,r),e);return wT(r,o),wT(o,e),i!==t&&wT(i,o),o.flowNode=t.flowNode,o}}}function ol(e){const t=e.parent;return 208===e.kind&&206===t.kind?sl(e.propertyName||e.name):303===e.kind||304===e.kind?sl(e.name):""+t.elements.indexOf(e)}function sl(e){const t=Rb(e);return 384&t.flags?""+t.value:void 0}function ul(e){const t=e.dotDotDotToken?32:0,n=Kc(e.parent.parent,t);return n&&pl(e,n,!1)}function pl(e,t,n){if(Wc(t))return t;const r=e.parent;H&&33554432&e.flags&&Xh(e)?t=rw(t):H&&r.parent.initializer&&!AN(KN(r.parent.initializer),65536)&&(t=ON(t,524288));const i=32|(n||bA(e)?16:0);let o;if(206===r.kind)if(e.dotDotDotToken){if(2&(t=yf(t)).flags||!FA(t))return jo(e,la.Rest_types_may_only_be_created_from_object_types),Et;const n=[];for(const e of r.elements)e.dotDotDotToken||n.push(e.propertyName||e.name);o=Qc(t,n,e.symbol)}else{const n=e.propertyName||e.name;o=nl(e,vx(t,Rb(n),i,n))}else{const n=rM(65|(e.dotDotDotToken?0:128),t,jt,r),a=r.elements.indexOf(e);if(e.dotDotDotToken){const e=zD(t,(e=>58982400&e.flags?Wp(e):e));o=AD(e,UC)?zD(e,(e=>Jv(e,a))):uv(n)}else o=CC(t)?nl(e,Sx(t,ok(a),i,e.name)||Et):n}return e.initializer?pv(tc(e))?H&&!AN(gj(e,0),16777216)?Zc(o):o:yj(e,xb([Zc(o),gj(e,0)],2)):o}function fl(e){const t=tl(e);if(t)return dk(t)}function bl(e){const t=oh(e,!0);return 209===t.kind&&0===t.elements.length}function kl(e,t=!1,n=!0){return H&&n?tw(e,t):e}function Sl(e,t,n){if(VF(e)&&249===e.parent.parent.kind){const t=qb(_I(Lj(e.parent.parent.expression,n)));return 4456448&t.flags?Ub(t):Vt}if(VF(e)&&250===e.parent.parent.kind)return nM(e.parent.parent)||wt;if(x_(e.parent))return ul(e);const r=cD(e)&&!Av(e)||sD(e)||NP(e),i=t&&KT(e),o=Gl(e);if(op(e))return o?Wc(o)||o===Ot?o:Et:ae?Ot:wt;if(o)return kl(o,r,i);if((ne||Fm(e))&&VF(e)&&!x_(e.name)&&!(32&lz(e))&&!(33554432&e.flags)){if(!(6&_z(e))&&(!e.initializer||function(e){const t=oh(e,!0);return 106===t.kind||80===t.kind&&dN(t)===De}(e.initializer)))return Nt;if(e.initializer&&bl(e.initializer))return lr}if(oD(e)){if(!e.symbol)return;const t=e.parent;if(178===t.kind&&Zu(t)){const n=Wu(ps(e.parent),177);if(n){const r=ig(n),i=UJ(t);return i&&e===i?(un.assert(!i.type),S_(r.thisParameter)):Tg(r)}}const n=function(e,t){const n=sg(e);if(!n)return;const r=e.parameters.indexOf(t);return t.dotDotDotToken?mL(n,r):pL(n,r)}(t,e);if(n)return n;const r="this"===e.symbol.escapedName?AP(t):IP(e);if(r)return kl(r,!1,i)}if(Eu(e)&&e.initializer){if(Fm(e)&&!oD(e)){const t=Pl(e,ps(e),Vm(e));if(t)return t}return kl(yj(e,gj(e,n)),r,i)}if(cD(e)&&(ne||Fm(e))){if(Dv(e)){const t=N(e.parent.members,uD),n=t.length?function(e,t){const n=Gt(e.escapedName,"__#")?XC.createPrivateIdentifier(e.escapedName.split("@")[1]):fc(e.escapedName);for(const r of t){const t=XC.createPropertyAccessExpression(XC.createThis(),n);wT(t.expression,t),wT(t,r),t.flowNode=r.returnFlowNode;const i=Fl(t,e);if(!ne||i!==Nt&&i!==lr||jo(e.valueDeclaration,la.Member_0_implicitly_has_an_1_type,ic(e),sc(i)),!AD(i,lI))return $R(i)}}(e.symbol,t):128&Mv(e)?PT(e.symbol):void 0;return n&&kl(n,!0,i)}{const t=gC(e.parent),n=t?Dl(e.symbol,t):128&Mv(e)?PT(e.symbol):void 0;return n&&kl(n,!0,i)}}return FE(e)?Yt:x_(e.name)?ql(e.name,!1,!0):void 0}function Tl(e){if(e.valueDeclaration&&cF(e.valueDeclaration)){const t=oa(e);return void 0===t.isConstructorDeclaredProperty&&(t.isConstructorDeclaredProperty=!1,t.isConstructorDeclaredProperty=!!Nl(e)&&v(e.declarations,(t=>cF(t)&&zP(t)&&(212!==t.left.kind||Lh(t.left.argumentExpression))&&!Ol(void 0,t,e,t)))),t.isConstructorDeclaredProperty}return!1}function Cl(e){const t=e.valueDeclaration;return t&&cD(t)&&!pv(t)&&!t.initializer&&(ne||Fm(t))}function Nl(e){if(e.declarations)for(const t of e.declarations){const e=Zf(t,!1,!1);if(e&&(176===e.kind||qO(e)))return e}}function Dl(e,t){const n=Gt(e.escapedName,"__#")?XC.createPrivateIdentifier(e.escapedName.split("@")[1]):fc(e.escapedName),r=XC.createPropertyAccessExpression(XC.createThis(),n);wT(r.expression,r),wT(r,t),r.flowNode=t.returnFlowNode;const i=Fl(r,e);return!ne||i!==Nt&&i!==lr||jo(e.valueDeclaration,la.Member_0_implicitly_has_an_1_type,ic(e),sc(i)),AD(i,lI)?void 0:$R(i)}function Fl(e,t){const n=(null==t?void 0:t.valueDeclaration)&&(!Cl(t)||128&Mv(t.valueDeclaration))&&PT(t)||jt;return JF(e,Nt,n)}function El(e,t){const n=Wm(e.valueDeclaration);if(n){const t=Fm(n)?el(n):void 0;return t&&t.typeExpression?dk(t.typeExpression):e.valueDeclaration&&Pl(e.valueDeclaration,e,n)||BC(fj(n))}let r,i=!1,o=!1;if(Tl(e)&&(r=Dl(e,Nl(e))),!r){let n;if(e.declarations){let a;for(const r of e.declarations){const s=cF(r)||GD(r)?r:kx(r)?cF(r.parent)?r.parent:r:void 0;if(!s)continue;const c=kx(s)?_g(s):eg(s);(4===c||cF(s)&&zP(s,c))&&(jl(s)?i=!0:o=!0),GD(s)||(a=Ol(a,s,e,r)),a||(n||(n=[])).push(cF(s)||GD(s)?Ll(e,t,s,c):_n)}r=a}if(!r){if(!u(n))return Et;let t=i&&e.declarations?function(e,t){return un.assert(e.length===t.length),e.filter(((e,n)=>{const r=t[n],i=cF(r)?r:cF(r.parent)?r.parent:void 0;return i&&jl(i)}))}(n,e.declarations):void 0;if(o){const n=PT(e);n&&((t||(t=[])).push(n),i=!0)}r=xb($(t,(e=>!!(-98305&e.flags)))?t:n)}}const a=Sw(kl(r,!1,o&&!i));return e.valueDeclaration&&Fm(e.valueDeclaration)&&OD(a,(e=>!!(-98305&e.flags)))===_n?(ww(e.valueDeclaration,wt),wt):a}function Pl(e,t,n){var r,i;if(!Fm(e)||!n||!$D(n)||n.properties.length)return;const o=Hu();for(;cF(e)||HD(e);){const t=gs(e);(null==(r=null==t?void 0:t.exports)?void 0:r.size)&&ta(o,t.exports),e=cF(e)?e.parent:e.parent.parent}const a=gs(e);(null==(i=null==a?void 0:a.exports)?void 0:i.size)&&ta(o,a.exports);const s=Bs(t,o,l,l,l);return s.objectFlags|=4096,s}function Ol(e,t,n,r){var i;const o=pv(t.parent);if(o){const t=Sw(dk(o));if(!e)return t;$c(e)||$c(t)||_S(e,t)||KR(void 0,e,r,t)}if(null==(i=n.parent)?void 0:i.valueDeclaration){const e=ys(n.parent);if(e.valueDeclaration){const t=pv(e.valueDeclaration);if(t){const e=Cf(dk(t),n.escapedName);if(e)return T_(e)}}}return e}function Ll(e,t,n,r){if(GD(n)){if(t)return S_(t);const e=fj(n.arguments[2]),r=Uc(e,"value");if(r)return r;const i=Uc(e,"get");if(i){const e=aO(i);if(e)return Tg(e)}const o=Uc(e,"set");if(o){const e=aO(o);if(e)return kL(e)}return wt}if(function(e,t){return HD(e)&&110===e.expression.kind&&AI(t,(t=>mN(e,t)))}(n.left,n.right))return wt;const i=1===r&&(HD(n.left)||KD(n.left))&&(Zm(n.left.expression)||zN(n.left.expression)&&Qm(n.left.expression)),o=t?S_(t):i?nk(fj(n.right)):BC(fj(n.right));if(524288&o.flags&&2===r&&"export="===e.escapedName){const n=pp(o),r=Hu();rd(n.members,r);const i=r.size;t&&!t.exports&&(t.exports=Hu()),(t||e).exports.forEach(((e,t)=>{var n;const i=r.get(t);if(!i||i===e||2097152&e.flags)r.set(t,e);else if(111551&e.flags&&111551&i.flags){if(e.valueDeclaration&&i.valueDeclaration&&hd(e.valueDeclaration)!==hd(i.valueDeclaration)){const t=fc(e.escapedName),r=(null==(n=tt(i.valueDeclaration,kc))?void 0:n.name)||i.valueDeclaration;iT(jo(e.valueDeclaration,la.Duplicate_identifier_0,t),jp(r,la._0_was_also_declared_here,t)),iT(jo(r,la.Duplicate_identifier_0,t),jp(e.valueDeclaration,la._0_was_also_declared_here,t))}const o=Wo(e.flags|i.flags,t);o.links.type=xb([S_(e),S_(i)]),o.valueDeclaration=i.valueDeclaration,o.declarations=K(i.declarations,e.declarations),r.set(t,o)}else r.set(t,Qo(e,i))}));const a=Bs(i!==r.size?void 0:n.symbol,r,n.callSignatures,n.constructSignatures,n.indexInfos);if(i===r.size&&(o.aliasSymbol&&(a.aliasSymbol=o.aliasSymbol,a.aliasTypeArguments=o.aliasTypeArguments),4&mx(o))){a.aliasSymbol=o.symbol;const e=Kh(o);a.aliasTypeArguments=u(e)?e:void 0}return a.objectFlags|=Ah([o])|20608&mx(o),a.symbol&&32&a.symbol.flags&&o===nu(a.symbol)&&(a.objectFlags|=16777216),a}return FC(o)?(ww(n,cr),cr):o}function jl(e){const t=Zf(e,!1,!1);return 176===t.kind||262===t.kind||218===t.kind&&!dg(t.parent)}function Bl(e,t,n){return e.initializer?kl(vj(e,gj(e,0,x_(e.name)?ql(e.name,!0,!1):Ot))):x_(e.name)?ql(e.name,t,n):(n&&!$l(e)&&ww(e,wt),t?At:wt)}function ql(e,t=!1,n=!1){t&&Pi.push(e);const r=206===e.kind?function(e,t,n){const r=Hu();let i,o=131200;d(e.elements,(e=>{const a=e.propertyName||e.name;if(e.dotDotDotToken)return void(i=uh(Vt,wt,!1));const s=Rb(a);if(!oC(s))return void(o|=512);const c=aC(s),l=Wo(4|(e.initializer?16777216:0),c);l.links.type=Bl(e,t,n),r.set(l.escapedName,l)}));const a=Bs(void 0,r,l,l,i?[i]:l);return a.objectFlags|=o,t&&(a.pattern=e,a.objectFlags|=131072),a}(e,t,n):function(e,t,n){const r=e.elements,i=ye(r),o=i&&208===i.kind&&i.dotDotDotToken?i:void 0;if(0===r.length||1===r.length&&o)return R>=2?ov(wt):cr;const a=E(r,(e=>fF(e)?wt:Bl(e,t,n))),s=S(r,(e=>!(e===o||fF(e)||bA(e))),r.length-1)+1;let c=kv(a,E(r,((e,t)=>e===o?4:t>=s?2:1)));return t&&(c=Wh(c),c.pattern=e,c.objectFlags|=131072),c}(e,t,n);return t&&Pi.pop(),r}function Ul(e,t){return Wl(Sl(e,!0,0),e,t)}function Wl(e,t,n){return e?(4096&e.flags&&function(e){const t=gs(e),n=pr||(pr=Ny("SymbolConstructor",!1));return n&&t&&t===n}(t.parent)&&(e=ck(t)),n&&Nw(t,e),8192&e.flags&&(VD(t)||!t.type)&&e.symbol!==ps(t)&&(e=cn),Sw(e)):(e=oD(t)&&t.dotDotDotToken?cr:wt,n&&($l(t)||ww(t,e)),e)}function $l(e){const t=Qh(e);return eR(169===t.kind?t.parent:t)}function Gl(e){const t=pv(e);if(t)return dk(t)}function Xl(e){if(e)switch(e.kind){case 177:return mv(e);case 178:return hv(e);case 172:return un.assert(Av(e)),pv(e)}}function Ql(e){const t=Xl(e);return t&&dk(t)}function t_(e){const t=oa(e);if(!t.type){if(!Mc(e,0))return Et;const n=Wu(e,177),r=Wu(e,178),i=tt(Wu(e,172),d_);let o=n&&Fm(n)&&fl(n)||Ql(n)||Ql(r)||Ql(i)||n&&n.body&&OL(n)||i&&Ul(i,!0);o||(r&&!eR(r)?Mo(ne,r,la.Property_0_implicitly_has_type_any_because_its_set_accessor_lacks_a_parameter_type_annotation,ic(e)):n&&!eR(n)?Mo(ne,n,la.Property_0_implicitly_has_type_any_because_its_get_accessor_lacks_a_return_type_annotation,ic(e)):i&&!eR(i)&&Mo(ne,i,la.Member_0_implicitly_has_an_1_type,ic(e),"any"),o=wt),zc()||(Xl(n)?jo(n,la._0_is_referenced_directly_or_indirectly_in_its_own_type_annotation,ic(e)):Xl(r)||Xl(i)?jo(r,la._0_is_referenced_directly_or_indirectly_in_its_own_type_annotation,ic(e)):n&&ne&&jo(n,la._0_implicitly_has_return_type_any_because_it_does_not_have_a_return_type_annotation_and_is_referenced_directly_or_indirectly_in_one_of_its_return_expressions,ic(e)),o=wt),t.type??(t.type=o)}return t.type}function a_(e){const t=oa(e);if(!t.writeType){if(!Mc(e,7))return Et;const n=Wu(e,178)??tt(Wu(e,172),d_);let r=Ql(n);zc()||(Xl(n)&&jo(n,la._0_is_referenced_directly_or_indirectly_in_its_own_type_annotation,ic(e)),r=wt),t.writeType??(t.writeType=r||t_(e))}return t.writeType}function s_(e){const t=Q_(nu(e));return 8650752&t.flags?t:2097152&t.flags?b(t.types,(e=>!!(8650752&e.flags))):void 0}function f_(e){let t=oa(e);const n=t;if(!t.type){const r=e.valueDeclaration&&VO(e.valueDeclaration,!1);if(r){const n=UO(e,r);n&&(e=n,t=n.links)}n.type=t.type=function(e){const t=e.valueDeclaration;if(1536&e.flags&&lp(e))return wt;if(t&&(226===t.kind||kx(t)&&226===t.parent.kind))return El(e);if(512&e.flags&&t&&qE(t)&&t.commonJsModuleIndicator){const t=ts(e);if(t!==e){if(!Mc(e,0))return Et;const n=ds(e.exports.get("export=")),r=El(n,n===t?void 0:t);return zc()?r:g_(e)}}const n=Is(16,e);if(32&e.flags){const t=s_(e);return t?Fb([n,t]):n}return H&&16777216&e.flags?tw(n,!0):n}(e)}return t.type}function m_(e){const t=oa(e);return t.type||(t.type=uu(e))}function g_(e){const t=e.valueDeclaration;if(t){if(pv(t))return jo(e.valueDeclaration,la._0_is_referenced_directly_or_indirectly_in_its_own_type_annotation,ic(e)),Et;ne&&(169!==t.kind||t.initializer)&&jo(e.valueDeclaration,la._0_implicitly_has_type_any_because_it_does_not_have_a_type_annotation_and_is_referenced_directly_or_indirectly_in_its_own_initializer,ic(e))}else if(2097152&e.flags){const t=ba(e);t&&jo(t,la.Circular_definition_of_import_alias_0,ic(e))}return wt}function h_(e){const t=oa(e);return t.type||(un.assertIsDefined(t.deferralParent),un.assertIsDefined(t.deferralConstituents),t.type=1048576&t.deferralParent.flags?xb(t.deferralConstituents):Fb(t.deferralConstituents)),t.type}function b_(e){const t=nx(e);return 4&e.flags?2&t?65536&t?function(e){const t=oa(e);return!t.writeType&&t.deferralWriteConstituents&&(un.assertIsDefined(t.deferralParent),un.assertIsDefined(t.deferralConstituents),t.writeType=1048576&t.deferralParent.flags?xb(t.deferralWriteConstituents):Fb(t.deferralWriteConstituents)),t.writeType}(e)||h_(e):e.links.writeType||e.links.type:cw(S_(e),!!(16777216&e.flags)):98304&e.flags?1&t?function(e){const t=oa(e);return t.writeType||(t.writeType=tS(b_(t.target),t.mapper))}(e):a_(e):S_(e)}function S_(e){const t=nx(e);return 65536&t?h_(e):1&t?function(e){const t=oa(e);return t.type||(t.type=tS(S_(t.target),t.mapper))}(e):262144&t?function(e){var t;if(!e.links.type){const n=e.links.mappedType;if(!Mc(e,0))return n.containsError=!0,Et;const i=tS(Hd(n.target||n),zk(n.mapper,Jd(n),e.links.keyType));let o=H&&16777216&e.flags&&!QL(i,49152)?tw(i,!0):524288&e.links.checkFlags?_w(i):i;zc()||(jo(r,la.Type_of_property_0_circularly_references_itself_in_mapped_type_1,ic(e),sc(n)),o=Et),(t=e.links).type??(t.type=o)}return e.links.type}(e):8192&t?function(e){const t=oa(e);return t.type||(t.type=Ww(e.links.propertyType,e.links.mappedType,e.links.constraintType)||Ot),t.type}(e):7&e.flags?function(e){const t=oa(e);if(!t.type){const n=function(e){if(4194304&e.flags)return function(e){const t=fu(hs(e));return t.typeParameters?jh(t,E(t.typeParameters,(e=>wt))):t}(e);if(e===je)return wt;if(134217728&e.flags&&e.valueDeclaration){const t=ps(hd(e.valueDeclaration)),n=Wo(t.flags,"exports");n.declarations=t.declarations?t.declarations.slice():[],n.parent=e,n.links.target=t,t.valueDeclaration&&(n.valueDeclaration=t.valueDeclaration),t.members&&(n.members=new Map(t.members)),t.exports&&(n.exports=new Map(t.exports));const r=Hu();return r.set("exports",n),Bs(e,r,l,l,l)}un.assertIsDefined(e.valueDeclaration);const t=e.valueDeclaration;if(qE(t)&&Yp(t))return t.statements.length?Sw(BC(Lj(t.statements[0].expression))):Nn;if(u_(t))return t_(e);if(!Mc(e,0))return 512&e.flags&&!(67108864&e.flags)?f_(e):g_(e);let n;if(277===t.kind)n=Wl(Gl(t)||fj(t.expression),t);else if(cF(t)||Fm(t)&&(GD(t)||(HD(t)||og(t))&&cF(t.parent)))n=El(e);else if(HD(t)||KD(t)||zN(t)||Lu(t)||kN(t)||HF(t)||$F(t)||_D(t)&&!Mf(t)||lD(t)||qE(t)){if(9136&e.flags)return f_(e);n=cF(t.parent)?El(e):Gl(t)||wt}else if(ME(t))n=Gl(t)||Sj(t);else if(FE(t))n=Gl(t)||AA(t);else if(BE(t))n=Gl(t)||kj(t.name,0);else if(Mf(t))n=Gl(t)||Tj(t,0);else if(oD(t)||cD(t)||sD(t)||VF(t)||VD(t)||wl(t))n=Ul(t,!0);else if(XF(t))n=f_(e);else{if(!zE(t))return un.fail("Unhandled declaration kind! "+un.formatSyntaxKind(t.kind)+" for "+un.formatSymbol(e));n=m_(e)}return zc()?n:512&e.flags&&!(67108864&e.flags)?f_(e):g_(e)}(e);return t.type||function(e){let t=e.valueDeclaration;return!!t&&(VD(t)&&(t=tc(t)),!!oD(t)&&cS(t.parent))}(e)||(t.type=n),n}return t.type}(e):9136&e.flags?f_(e):8&e.flags?m_(e):98304&e.flags?t_(e):2097152&e.flags?function(e){const t=oa(e);if(!t.type){if(!Mc(e,0))return Et;const n=Ba(e),r=e.declarations&&ja(ba(e),!0),i=f(null==r?void 0:r.declarations,(e=>pE(e)?Gl(e):void 0));if(t.type??(t.type=(null==r?void 0:r.declarations)&&uB(r.declarations)&&e.declarations.length?function(e){const t=hd(e.declarations[0]),n=fc(e.escapedName),r=e.declarations.every((e=>Fm(e)&&kx(e)&&Zm(e.expression))),i=r?XC.createPropertyAccessExpression(XC.createPropertyAccessExpression(XC.createIdentifier("module"),XC.createIdentifier("exports")),n):XC.createPropertyAccessExpression(XC.createIdentifier("exports"),n);return r&&wT(i.expression.expression,i.expression),wT(i.expression,i),wT(i,t),i.flowNode=t.endFlowNode,JF(i,Nt,jt)}(r):uB(e.declarations)?Nt:i||(111551&za(n)?S_(n):Et)),!zc())return g_(r??e),t.type??(t.type=Et)}return t.type}(e):Et}function T_(e){return cw(S_(e),!!(16777216&e.flags))}function C_(e,t){if(void 0===e||!(4&mx(e)))return!1;for(const n of t)if(e.target===n)return!0;return!1}function w_(e,t){return void 0!==e&&void 0!==t&&!!(4&mx(e))&&e.target===t}function N_(e){return 4&mx(e)?e.target:e}function D_(e,t){return function e(n){if(7&mx(n)){const r=N_(n);return r===t||$(Z_(r),e)}return!!(2097152&n.flags)&&$(n.types,e)}(e)}function F_(e,t){for(const n of t)e=le(e,pu(ps(n)));return e}function E_(e,t){for(;;){if((e=e.parent)&&cF(e)){const t=eg(e);if(6===t||3===t){const t=ps(e.left);t&&t.parent&&!_c(t.parent.valueDeclaration,(t=>e===t))&&(e=t.parent.valueDeclaration)}}if(!e)return;const n=e.kind;switch(n){case 263:case 231:case 264:case 179:case 180:case 173:case 184:case 185:case 317:case 262:case 174:case 218:case 219:case 265:case 345:case 346:case 340:case 338:case 200:case 194:{const r=E_(e,t);if((218===n||219===n||Mf(e))&&aS(e)){const t=fe(Rf(S_(ps(e)),0));if(t&&t.typeParameters)return[...r||l,...t.typeParameters]}if(200===n)return ie(r,pu(ps(e.typeParameter)));if(194===n)return K(r,Ix(e));const i=F_(r,ll(e)),o=t&&(263===n||231===n||264===n||qO(e))&&nu(ps(e)).thisType;return o?ie(i,o):i}case 341:const r=Mg(e);r&&(e=r.valueDeclaration);break;case 320:{const n=E_(e,t);return e.tags?F_(n,O(e.tags,(e=>TP(e)?e.typeParameters:void 0))):n}}}}function j_(e){var t;const n=32&e.flags||16&e.flags?e.valueDeclaration:null==(t=e.declarations)?void 0:t.find((e=>{if(264===e.kind)return!0;if(260!==e.kind)return!1;const t=e.initializer;return!!t&&(218===t.kind||219===t.kind)}));return un.assert(!!n,"Class was missing valueDeclaration -OR- non-class had no interface declarations"),E_(n)}function M_(e){if(!e.declarations)return;let t;for(const n of e.declarations)(264===n.kind||263===n.kind||231===n.kind||qO(n)||Dg(n))&&(t=F_(t,ll(n)));return t}function B_(e){const t=Rf(e,1);if(1===t.length){const e=t[0];if(!e.typeParameters&&1===e.parameters.length&&UB(e)){const t=aL(e.parameters[0]);return Wc(t)||TC(t)===wt}}return!1}function J_(e){if(Rf(e,1).length>0)return!0;if(8650752&e.flags){const t=qp(e);return!!t&&B_(t)}return!1}function z_(e){const t=fx(e.symbol);return t&&hh(t)}function q_(e,t,n){const r=u(t),i=Fm(n);return N(Rf(e,1),(e=>(i||r>=ng(e.typeParameters))&&r<=u(e.typeParameters)))}function $_(e,t,n){const r=q_(e,t,n),i=E(t,dk);return A(r,(e=>$(e.typeParameters)?Lg(e,i,Fm(n)):e))}function Q_(e){if(!e.resolvedBaseConstructorType){const t=fx(e.symbol),n=t&&hh(t),r=z_(e);if(!r)return e.resolvedBaseConstructorType=jt;if(!Mc(e,1))return Et;const i=Lj(r.expression);if(n&&r!==n&&(un.assert(!n.typeArguments),Lj(n.expression)),2621440&i.flags&&pp(i),!zc())return jo(e.symbol.valueDeclaration,la._0_is_referenced_directly_or_indirectly_in_its_own_base_expression,ic(e.symbol)),e.resolvedBaseConstructorType??(e.resolvedBaseConstructorType=Et);if(!(1&i.flags||i===Ut||J_(i))){const t=jo(r.expression,la.Type_0_is_not_a_constructor_function_type,sc(i));if(262144&i.flags){const e=Nh(i);let n=Ot;if(e){const t=Rf(e,1);t[0]&&(n=Tg(t[0]))}i.symbol.declarations&&iT(t,jp(i.symbol.declarations[0],la.Did_you_mean_for_0_to_be_constrained_to_type_new_args_Colon_any_1,ic(i.symbol),sc(n)))}return e.resolvedBaseConstructorType??(e.resolvedBaseConstructorType=Et)}e.resolvedBaseConstructorType??(e.resolvedBaseConstructorType=i)}return e.resolvedBaseConstructorType}function Y_(e,t){jo(e,la.Type_0_recursively_references_itself_as_a_base_type,sc(t,void 0,2))}function Z_(e){if(!e.baseTypesResolved){if(Mc(e,6)&&(8&e.objectFlags?e.resolvedBaseTypes=[eu(e)]:96&e.symbol.flags?(32&e.symbol.flags&&function(e){e.resolvedBaseTypes=zu;const t=pf(Q_(e));if(!(2621441&t.flags))return e.resolvedBaseTypes=l;const n=z_(e);let r;const i=t.symbol?fu(t.symbol):void 0;if(t.symbol&&32&t.symbol.flags&&function(e){const t=e.outerTypeParameters;if(t){const n=t.length-1,r=Kh(e);return t[n].symbol!==r[n].symbol}return!0}(i))r=ty(n,t.symbol);else if(1&t.flags)r=t;else{const i=$_(t,n.typeArguments,n);if(!i.length)return jo(n.expression,la.No_base_constructor_has_the_specified_number_of_type_arguments),e.resolvedBaseTypes=l;r=Tg(i[0])}if($c(r))return e.resolvedBaseTypes=l;const o=yf(r);if(!tu(o)){const t=Yx(Sf(void 0,r),la.Base_constructor_return_type_0_is_not_an_object_type_or_intersection_of_object_types_with_statically_known_members,sc(o));return uo.add(Bp(hd(n.expression),n.expression,t)),e.resolvedBaseTypes=l}if(e===o||D_(o,e))return jo(e.symbol.valueDeclaration,la.Type_0_recursively_references_itself_as_a_base_type,sc(e,void 0,2)),e.resolvedBaseTypes=l;e.resolvedBaseTypes===zu&&(e.members=void 0),e.resolvedBaseTypes=[o]}(e),64&e.symbol.flags&&function(e){if(e.resolvedBaseTypes=e.resolvedBaseTypes||l,e.symbol.declarations)for(const t of e.symbol.declarations)if(264===t.kind&&xh(t))for(const n of xh(t)){const r=yf(dk(n));$c(r)||(tu(r)?e===r||D_(r,e)?Y_(t,e):e.resolvedBaseTypes===l?e.resolvedBaseTypes=[r]:e.resolvedBaseTypes.push(r):jo(n,la.An_interface_can_only_extend_an_object_type_or_intersection_of_object_types_with_statically_known_members))}}(e)):un.fail("type must be class or interface"),!zc()&&e.symbol.declarations))for(const t of e.symbol.declarations)263!==t.kind&&264!==t.kind||Y_(t,e);e.baseTypesResolved=!0}return e.resolvedBaseTypes}function eu(e){return uv(xb(A(e.typeParameters,((t,n)=>8&e.elementFlags[n]?vx(t,Wt):t))||l),e.readonly)}function tu(e){if(262144&e.flags){const t=qp(e);if(t)return tu(t)}return!!(67633153&e.flags&&!rp(e)||2097152&e.flags&&v(e.types,tu))}function nu(e){let t=oa(e);const n=t;if(!t.declaredType){const r=32&e.flags?1:2,i=UO(e,e.valueDeclaration&&function(e){var t;const n=e&&VO(e,!0),r=null==(t=null==n?void 0:n.exports)?void 0:t.get("prototype"),i=(null==r?void 0:r.valueDeclaration)&&function(e){if(!e.parent)return!1;let t=e.parent;for(;t&&211===t.kind;)t=t.parent;if(t&&cF(t)&&_b(t.left)&&64===t.operatorToken.kind){const e=ug(t);return $D(e)&&e}}(r.valueDeclaration);return i?ps(i):void 0}(e.valueDeclaration));i&&(e=i,t=i.links);const o=n.declaredType=t.declaredType=Is(r,e),a=j_(e),s=M_(e);(a||s||1===r||!function(e){if(!e.declarations)return!0;for(const t of e.declarations)if(264===t.kind){if(256&t.flags)return!1;const e=xh(t);if(e)for(const t of e)if(ob(t.expression)){const e=Ka(t.expression,788968,!0);if(!e||!(64&e.flags)||nu(e).thisType)return!1}}return!0}(e))&&(o.objectFlags|=4,o.typeParameters=K(a,s),o.outerTypeParameters=a,o.localTypeParameters=s,o.instantiations=new Map,o.instantiations.set(Eh(o.typeParameters),o),o.target=o,o.resolvedTypeArguments=o.typeParameters,o.thisType=Os(e),o.thisType.isThisType=!0,o.thisType.constraint=o)}return t.declaredType}function ru(e){var t;const n=oa(e);if(!n.declaredType){if(!Mc(e,2))return Et;const r=un.checkDefined(null==(t=e.declarations)?void 0:t.find(Dg),"Type alias symbol with no valid declaration found"),i=Ng(r)?r.typeExpression:r.type;let o=i?dk(i):Et;if(zc()){const t=M_(e);t&&(n.typeParameters=t,n.instantiations=new Map,n.instantiations.set(Eh(t),o)),o===It&&"BuiltinIteratorReturn"===e.escapedName&&(o=Qy())}else o=Et,340===r.kind?jo(r.typeExpression.type,la.Type_alias_0_circularly_references_itself,ic(e)):jo(kc(r)&&r.name||r,la.Type_alias_0_circularly_references_itself,ic(e));n.declaredType??(n.declaredType=o)}return n.declaredType}function su(e){return 1056&e.flags&&8&e.symbol.flags?fu(hs(e.symbol)):e}function cu(e){const t=oa(e);if(!t.declaredType){const n=[];if(e.declarations)for(const t of e.declarations)if(266===t.kind)for(const r of t.members)if(Zu(r)){const t=ps(r),i=hJ(r).value,o=ek(void 0!==i?sk(i,RB(e),t):_u(t));oa(t).declaredType=o,n.push(nk(o))}const r=n.length?xb(n,1,e,void 0):_u(e);1048576&r.flags&&(r.flags|=1024,r.symbol=e),t.declaredType=r}return t.declaredType}function _u(e){const t=Ns(32,e),n=Ns(32,e);return t.regularType=t,t.freshType=n,n.regularType=t,n.freshType=n,t}function uu(e){const t=oa(e);if(!t.declaredType){const n=cu(hs(e));t.declaredType||(t.declaredType=n)}return t.declaredType}function pu(e){const t=oa(e);return t.declaredType||(t.declaredType=Os(e))}function fu(e){return mu(e)||Et}function mu(e){return 96&e.flags?nu(e):524288&e.flags?ru(e):262144&e.flags?pu(e):384&e.flags?cu(e):8&e.flags?uu(e):2097152&e.flags?function(e){const t=oa(e);return t.declaredType||(t.declaredType=fu(Ba(e)))}(e):void 0}function gu(e){switch(e.kind){case 133:case 159:case 154:case 150:case 163:case 136:case 155:case 151:case 116:case 157:case 146:case 201:return!0;case 188:return gu(e.elementType);case 183:return!e.typeArguments||e.typeArguments.every(gu)}return!1}function yu(e){const t=_l(e);return!t||gu(t)}function xu(e){const t=pv(e);return t?gu(t):!Fu(e)}function Su(e){if(e.declarations&&1===e.declarations.length){const t=e.declarations[0];if(t)switch(t.kind){case 172:case 171:return xu(t);case 174:case 173:case 176:case 177:case 178:return function(e){const t=mv(e),n=ll(e);return(176===e.kind||!!t&&gu(t))&&e.parameters.every(xu)&&n.every(yu)}(t)}}return!1}function Tu(e,t,n){const r=Hu();for(const i of e)r.set(i.escapedName,n&&Su(i)?i:Kk(i,t));return r}function Pu(e,t){for(const n of t){if(Iu(n))continue;const t=e.get(n.escapedName);(!t||t.valueDeclaration&&cF(t.valueDeclaration)&&!Tl(t)&&!Xf(t.valueDeclaration))&&(e.set(n.escapedName,n),e.set(n.escapedName,n))}}function Iu(e){return!!e.valueDeclaration&&Hl(e.valueDeclaration)&&Nv(e.valueDeclaration)}function Ou(e){if(!e.declaredProperties){const t=e.symbol,n=sd(t);e.declaredProperties=js(n),e.declaredCallSignatures=l,e.declaredConstructSignatures=l,e.declaredIndexInfos=l,e.declaredCallSignatures=pg(n.get("__call")),e.declaredConstructSignatures=pg(n.get("__new")),e.declaredIndexInfos=bh(t)}return e}function Bu(e){return Ju(e)&&oC(rD(e)?kA(e):fj(e.argumentExpression))}function Ju(e){return!(!rD(e)&&!KD(e))&&ob(rD(e)?e.expression:e.argumentExpression)}function Xu(e){return 95===e.charCodeAt(0)&&95===e.charCodeAt(1)&&64===e.charCodeAt(2)}function Qu(e){const t=Tc(e);return!!t&&Bu(t)}function Yu(e){const t=Tc(e);return!!t&&function(e){return Ju(e)&&gS(rD(e)?kA(e):fj(e.argumentExpression),hn)}(t)}function Zu(e){return!Rh(e)||Qu(e)}function ed(e,t,n,r){un.assert(!!r.symbol,"The member is expected to have a symbol.");const i=aa(r);if(!i.resolvedSymbol){i.resolvedSymbol=r.symbol;const o=cF(r)?r.left:r.name,a=KD(o)?fj(o.argumentExpression):kA(o);if(oC(a)){const s=aC(a),c=r.symbol.flags;let l=n.get(s);l||n.set(s,l=Wo(0,s,4096));const _=t&&t.get(s);if(!(32&e.flags)&&l.flags&Ko(c)){const e=_?K(_.declarations,l.declarations):l.declarations,t=!(8192&a.flags)&&fc(s)||Ep(o);d(e,(e=>jo(Tc(e)||e,la.Property_0_was_also_declared_here,t))),jo(o||r,la.Duplicate_property_0,t),l=Wo(0,s,4096)}return l.links.nameType=a,function(e,t,n){un.assert(!!(4096&nx(e)),"Expected a late-bound symbol."),e.flags|=n,oa(t.symbol).lateSymbol=e,e.declarations?t.symbol.isReplaceableByMethod||e.declarations.push(t):e.declarations=[t],111551&n&&(e.valueDeclaration&&e.valueDeclaration.kind===t.kind||(e.valueDeclaration=t))}(l,r,c),l.parent?un.assert(l.parent===e,"Existing symbol parent should match new one"):l.parent=e,i.resolvedSymbol=l}}return i.resolvedSymbol}function od(e,t,n,r){let i=n.get("__index");if(!i){const e=null==t?void 0:t.get("__index");e?(i=Xo(e),i.links.checkFlags|=4096):i=Wo(0,"__index",4096),n.set("__index",i)}i.declarations?r.symbol.isReplaceableByMethod||i.declarations.push(r):i.declarations=[r]}function ad(e,t){const n=oa(e);if(!n[t]){const r="resolvedExports"===t,i=r?1536&e.flags?us(e).exports:e.exports:e.members;n[t]=i||P;const o=Hu();for(const t of e.declarations||l){const n=Ff(t);if(n)for(const t of n)r===Dv(t)&&(Qu(t)?ed(e,i,o,t):Yu(t)&&od(0,i,o,t))}const a=ys(e).assignmentDeclarationMembers;if(a){const t=Oe(a.values());for(const n of t){const t=eg(n);r===!(3===t||cF(n)&&zP(n,t)||9===t||6===t)&&Qu(n)&&ed(e,i,o,n)}}let s=function(e,t){if(!(null==e?void 0:e.size))return t;if(!(null==t?void 0:t.size))return e;const n=Hu();return ta(n,e),ta(n,t),n}(i,o);if(33554432&e.flags&&n.cjsExportMerged&&e.declarations)for(const n of e.declarations){const e=oa(n.symbol)[t];s?e&&e.forEach(((e,t)=>{const n=s.get(t);if(n){if(n===e)return;s.set(t,Qo(n,e))}else s.set(t,e)})):s=e}n[t]=s||P}return n[t]}function sd(e){return 6256&e.flags?ad(e,"resolvedMembers"):e.members||P}function cd(e){if(106500&e.flags&&"__computed"===e.escapedName){const t=oa(e);if(!t.lateSymbol&&$(e.declarations,Qu)){const t=ds(e.parent);$(e.declarations,Dv)?cs(t):sd(t)}return t.lateSymbol||(t.lateSymbol=e)}return e}function ld(e,t,n){if(4&mx(e)){const n=e.target,r=Kh(e);return u(n.typeParameters)===u(r)?jh(n,K(r,[t||n.thisType])):e}if(2097152&e.flags){const r=A(e.types,(e=>ld(e,t,n)));return r!==e.types?Fb(r):e}return n?pf(e):e}function dd(e,t,n,r){let i,o,a,s,c;de(n,r,0,n.length)?(o=t.symbol?sd(t.symbol):Hu(t.declaredProperties),a=t.declaredCallSignatures,s=t.declaredConstructSignatures,c=t.declaredIndexInfos):(i=Tk(n,r),o=Tu(t.declaredProperties,i,1===n.length),a=gk(t.declaredCallSignatures,i),s=gk(t.declaredConstructSignatures,i),c=bk(t.declaredIndexInfos,i));const l=Z_(t);if(l.length){if(t.symbol&&o===sd(t.symbol)){const e=Hu(t.declaredProperties),n=eh(t.symbol);n&&e.set("__index",n),o=e}Ms(e,o,a,s,c);const n=ye(r);for(const e of l){const t=n?ld(tS(e,i),n):e;Pu(o,vp(t)),a=K(a,Rf(t,0)),s=K(s,Rf(t,1));const r=t!==wt?Kf(t):[uh(Vt,wt,!1)];c=K(c,N(r,(e=>!Uf(c,e.keyType))))}}Ms(e,o,a,s,c)}function pd(e,t,n,r,i,o,a,s){const c=new _(He,s);return c.declaration=e,c.typeParameters=t,c.parameters=r,c.thisParameter=n,c.resolvedReturnType=i,c.resolvedTypePredicate=o,c.minArgumentCount=a,c.resolvedMinArgumentCount=void 0,c.target=void 0,c.mapper=void 0,c.compositeSignatures=void 0,c.compositeKind=void 0,c}function fd(e){const t=pd(e.declaration,e.typeParameters,e.thisParameter,e.parameters,void 0,void 0,e.minArgumentCount,167&e.flags);return t.target=e.target,t.mapper=e.mapper,t.compositeSignatures=e.compositeSignatures,t.compositeKind=e.compositeKind,t}function md(e,t){const n=fd(e);return n.compositeSignatures=t,n.compositeKind=1048576,n.target=void 0,n.mapper=void 0,n}function xd(e,t){if((24&e.flags)===t)return e;e.optionalCallSignatureCache||(e.optionalCallSignatureCache={});const n=8===t?"inner":"outer";return e.optionalCallSignatureCache[n]||(e.optionalCallSignatureCache[n]=function(e,t){un.assert(8===t||16===t,"An optional call signature can either be for an inner call chain or an outer call chain, but not both.");const n=fd(e);return n.flags|=t,n}(e,t))}function kd(e,t){if(UB(e)){const r=e.parameters.length-1,i=e.parameters[r],o=S_(i);if(UC(o))return[n(o,r,i)];if(!t&&1048576&o.flags&&v(o.types,UC))return E(o.types,(e=>n(e,r,i)))}return[e.parameters];function n(t,n,r){const i=Kh(t),o=function(e,t){const n=E(e.target.labeledElementDeclarations,((n,r)=>cL(n,r,e.target.elementFlags[r],t)));if(n){const e=[],t=new Set;for(let r=0;r{const a=o&&o[i]?o[i]:lL(e,n+i,t),s=t.target.elementFlags[i],c=Wo(1,a,12&s?32768:2&s?16384:0);return c.links.type=4&s?uv(r):r,c}));return K(e.parameters.slice(0,n),a)}}function Sd(e,t,n,r,i){for(const o of e)if(lC(o,t,n,r,i,n?pS:uS))return o}function Td(e,t,n){if(t.typeParameters){if(n>0)return;for(let n=1;n1&&(n=void 0===n?r:-1);for(const n of e[r])if(!t||!Sd(t,n,!1,!1,!0)){const i=Td(e,n,r);if(i){let e=n;if(i.length>1){let t=n.thisParameter;const r=d(i,(e=>e.thisParameter));r&&(t=dw(r,Fb(B(i,(e=>e.thisParameter&&S_(e.thisParameter)))))),e=md(n,i),e.thisParameter=t}(t||(t=[])).push(e)}}}if(!u(t)&&-1!==n){const r=e[void 0!==n?n:0];let i=r.slice();for(const t of e)if(t!==r){const e=t[0];if(un.assert(!!e,"getUnionSignatures bails early on empty signature lists and should not have empty lists on second pass"),i=e.typeParameters&&$(i,(t=>!!t.typeParameters&&!Dd(e.typeParameters,t.typeParameters)))?void 0:E(i,(t=>Fd(t,e))),!i)break}t=i}return t||l}function Dd(e,t){if(u(e)!==u(t))return!1;if(!e||!t)return!0;const n=Tk(t,e);for(let r=0;r=i?e:t,a=o===e?t:e,s=o===e?r:i,c=vL(e)||vL(t),l=c&&!vL(o),_=new Array(s+(l?1:0));for(let u=0;u=yL(o)&&u>=yL(a),h=u>=r?void 0:lL(e,u),y=u>=i?void 0:lL(t,u),v=Wo(1|(g&&!m?16777216:0),(h===y?h:h?y?void 0:h:y)||`arg${u}`,m?32768:g?16384:0);v.links.type=m?uv(f):f,_[u]=v}if(l){const e=Wo(1,"args",32768);e.links.type=uv(pL(a,s)),a===t&&(e.links.type=tS(e.links.type,n)),_[s]=e}return _}(e,t,r),s=ye(a);s&&32768&nx(s)&&(i|=1);const c=function(e,t,n){return e&&t?dw(e,Fb([S_(e),tS(S_(t),n)])):e||t}(e.thisParameter,t.thisParameter,r),l=pd(o,n,c,a,void 0,void 0,Math.max(e.minArgumentCount,t.minArgumentCount),i);return l.compositeKind=1048576,l.compositeSignatures=K(2097152!==e.compositeKind&&e.compositeSignatures||[e],[t]),r?l.mapper=2097152!==e.compositeKind&&e.mapper&&e.compositeSignatures?Rk(e.mapper,r):r:2097152!==e.compositeKind&&e.mapper&&e.compositeSignatures&&(l.mapper=e.mapper),l}function Ed(e){const t=Kf(e[0]);if(t){const n=[];for(const r of t){const t=r.keyType;v(e,(e=>!!dm(e,t)))&&n.push(uh(t,xb(E(e,(e=>pm(e,t)))),$(e,(e=>dm(e,t).isReadonly))))}return n}return l}function Pd(e,t){return e?t?Fb([e,t]):e:t}function Ad(e){const t=w(e,(e=>Rf(e,1).length>0)),n=E(e,B_);if(t>0&&t===w(n,(e=>e))){const e=n.indexOf(!0);n[e]=!1}return n}function Id(e,t,n,r){const i=[];for(let o=0;o!lC(e,n,!1,!1,!1,uS)))||(e=ie(e,n));return e}function Ld(e,t,n){if(e)for(let r=0;r0===n||np(e)===t))?t:0}return 0}function rp(e){if(32&mx(e)){const t=qd(e);if(_x(t))return!0;const n=Ud(e);if(n&&_x(tS(n,Fk(Jd(e),t))))return!0}return!1}function cp(e){const t=Ud(e);return t?gS(t,Jd(e))?1:2:0}function pp(e){return e.members||(524288&e.flags?4&e.objectFlags?function(e){const t=Ou(e.target),n=K(t.typeParameters,[t.thisType]),r=Kh(e);dd(e,t,n,r.length===n.length?r:K(r,[e]))}(e):3&e.objectFlags?function(e){dd(e,Ou(e),l,l)}(e):1024&e.objectFlags?function(e){const t=dm(e.source,Vt),n=ep(e.mappedType),r=!(1&n),i=4&n?0:16777216,o=t?[uh(Vt,Ww(t.type,e.mappedType,e.constraintType)||Ot,r&&t.isReadonly)]:l,a=Hu(),s=function(e){const t=qd(e.mappedType);if(!(1048576&t.flags||2097152&t.flags))return;const n=1048576&t.flags?t.origin:t;if(!(n&&2097152&n.flags))return;const r=Fb(n.types.filter((t=>t!==e.constraintType)));return r!==_n?r:void 0}(e);for(const t of vp(e.source)){if(s&&!gS(Mb(t,8576),s))continue;const n=8192|(r&&WL(t)?8:0),o=Wo(4|t.flags&i,t.escapedName,n);if(o.declarations=t.declarations,o.links.nameType=oa(t).nameType,o.links.propertyType=S_(t),8388608&e.constraintType.type.flags&&262144&e.constraintType.type.objectType.flags&&262144&e.constraintType.type.indexType.flags){const t=e.constraintType.type.objectType,n=jd(e.mappedType,e.constraintType.type,t);o.links.mappedType=n,o.links.constraintType=qb(t)}else o.links.mappedType=e.mappedType,o.links.constraintType=e.constraintType;a.set(t.escapedName,o)}Ms(e,a,l,l,o)}(e):16&e.objectFlags?function(e){if(e.target)return Ms(e,P,l,l,l),void Ms(e,Tu(gp(e.target),e.mapper,!1),gk(Rf(e.target,0),e.mapper),gk(Rf(e.target,1),e.mapper),bk(Kf(e.target),e.mapper));const t=ds(e.symbol);if(2048&t.flags){Ms(e,P,l,l,l);const n=sd(t),r=pg(n.get("__call")),i=pg(n.get("__new"));return void Ms(e,n,r,i,bh(t))}let n,r,i=cs(t);if(t===Fe){const e=new Map;i.forEach((t=>{var n;418&t.flags||512&t.flags&&(null==(n=t.declarations)?void 0:n.length)&&v(t.declarations,ap)||e.set(t.escapedName,t)})),i=e}if(Ms(e,i,l,l,l),32&t.flags){const e=Q_(nu(t));11272192&e.flags?(i=Hu(function(e){const t=js(e),n=lh(e);return n?K(t,[n]):t}(i)),Pu(i,vp(e))):e===wt&&(r=uh(Vt,wt,!1))}const o=lh(i);if(o?n=kh(o,Oe(i.values())):(r&&(n=ie(n,r)),384&t.flags&&(32&fu(t).flags||$(e.properties,(e=>!!(296&S_(e).flags))))&&(n=ie(n,ui))),Ms(e,i,l,l,n||l),8208&t.flags&&(e.callSignatures=pg(t)),32&t.flags){const n=nu(t);let r=t.members?pg(t.members.get("__constructor")):l;16&t.flags&&(r=se(r.slice(),B(e.callSignatures,(e=>qO(e.declaration)?pd(e.declaration,e.typeParameters,e.thisParameter,e.parameters,n,void 0,e.minArgumentCount,167&e.flags):void 0)))),r.length||(r=function(e){const t=Rf(Q_(e),1),n=fx(e.symbol),r=!!n&&wv(n,64);if(0===t.length)return[pd(void 0,e.localTypeParameters,void 0,l,e,void 0,0,r?4:0)];const i=z_(e),o=Fm(i),a=Sy(i),s=u(a),c=[];for(const n of t){const t=ng(n.typeParameters),i=u(n.typeParameters);if(o||s>=t&&s<=i){const s=i?Rg(n,rg(a,n.typeParameters,t,o)):fd(n);s.typeParameters=e.localTypeParameters,s.resolvedReturnType=e,s.flags=r?4|s.flags:-5&s.flags,c.push(s)}}return c}(n)),e.constructSignatures=r}}(e):32&e.objectFlags?function(e){const t=Hu();let n;Ms(e,P,l,l,l);const r=Jd(e),i=qd(e),o=e.target||e,a=Ud(o),s=2!==cp(o),c=Hd(o),_=pf(Yd(e)),u=ep(e);function d(i){FD(a?tS(a,zk(e.mapper,r,i)):i,(o=>function(i,o){if(oC(o)){const n=aC(o),r=t.get(n);if(r)r.links.nameType=xb([r.links.nameType,o]),r.links.keyType=xb([r.links.keyType,i]);else{const r=oC(i)?Cf(_,aC(i)):void 0,a=!!(4&u||!(8&u)&&r&&16777216&r.flags),c=!!(1&u||!(2&u)&&r&&WL(r)),l=H&&!a&&r&&16777216&r.flags,d=Wo(4|(a?16777216:0),n,262144|(r?Md(r):0)|(c?8:0)|(l?524288:0));d.links.mappedType=e,d.links.nameType=o,d.links.keyType=i,r&&(d.links.syntheticOrigin=r,d.declarations=s?r.declarations:void 0),t.set(n,d)}}else if(Th(o)||33&o.flags){const t=5&o.flags?Vt:40&o.flags?Wt:o,a=tS(c,zk(e.mapper,r,i)),s=hm(_,o),l=uh(t,a,!!(1&u||!(2&u)&&(null==s?void 0:s.isReadonly)));n=Ld(n,l,!0)}}(i,o)))}Qd(e)?Bd(_,8576,!1,d):FD(Rd(i),d),Ms(e,t,l,l,n||l)}(e):un.fail("Unhandled object type "+un.formatObjectFlags(e.objectFlags)):1048576&e.flags?function(e){const t=Nd(E(e.types,(e=>e===Xn?[ci]:Rf(e,0)))),n=Nd(E(e.types,(e=>Rf(e,1)))),r=Ed(e.types);Ms(e,P,t,n,r)}(e):2097152&e.flags?function(e){let t,n,r;const i=e.types,o=Ad(i),a=w(o,(e=>e));for(let s=0;s0&&(e=E(e,(e=>{const t=fd(e);return t.resolvedReturnType=Id(Tg(e),i,o,s),t}))),n=Od(n,e)}t=Od(t,Rf(c,0)),r=we(Kf(c),((e,t)=>Ld(e,t,!1)),r)}Ms(e,P,t||l,n||l,r||l)}(e):un.fail("Unhandled type "+un.formatTypeFlags(e.flags))),e}function gp(e){return 524288&e.flags?pp(e).properties:l}function hp(e,t){if(524288&e.flags){const n=pp(e).members.get(t);if(n&&Cs(n))return n}}function yp(e){if(!e.resolvedProperties){const t=Hu();for(const n of e.types){for(const r of vp(n))if(!t.has(r.escapedName)){const n=hf(e,r.escapedName,!!(2097152&e.flags));n&&t.set(r.escapedName,n)}if(1048576&e.flags&&0===Kf(n).length)break}e.resolvedProperties=js(t)}return e.resolvedProperties}function vp(e){return 3145728&(e=ff(e)).flags?yp(e):gp(e)}function bp(e){return 262144&e.flags?xp(e):8388608&e.flags?function(e){return tf(e)?function(e){if(df(e))return yx(e.objectType,e.indexType);const t=Sp(e.indexType);if(t&&t!==e.indexType){const n=Sx(e.objectType,t,e.accessFlags);if(n)return n}const n=Sp(e.objectType);return n&&n!==e.objectType?Sx(n,e.indexType,e.accessFlags):void 0}(e):void 0}(e):16777216&e.flags?zp(e):qp(e)}function xp(e){return tf(e)?Nh(e):void 0}function kp(e,t=0){var n;return t<5&&!(!e||!(262144&e.flags&&$(null==(n=e.symbol)?void 0:n.declarations,(e=>wv(e,4096)))||3145728&e.flags&&$(e.types,(e=>kp(e,t)))||8388608&e.flags&&kp(e.objectType,t+1)||16777216&e.flags&&kp(zp(e),t+1)||33554432&e.flags&&kp(e.baseType,t)||32&mx(e)&&function(e,t){const n=Xk(e);return!!n&&kp(n,t)}(e,t)||VC(e)&&k(Vv(e),((n,r)=>!!(8&e.target.elementFlags[r])&&kp(n,t)))>=0))}function Sp(e){const t=dx(e,!1);return t!==e?t:bp(e)}function wp(e){if(!e.resolvedDefaultConstraint){const t=function(e){return e.resolvedInferredTrueType||(e.resolvedInferredTrueType=e.combinedMapper?tS(dk(e.root.node.trueType),e.combinedMapper):Px(e))}(e),n=Ax(e);e.resolvedDefaultConstraint=Wc(t)?n:Wc(n)?t:xb([t,n])}return e.resolvedDefaultConstraint}function Ip(e){if(void 0!==e.resolvedConstraintOfDistributive)return e.resolvedConstraintOfDistributive||void 0;if(e.root.isDistributive&&e.restrictiveInstantiation!==e){const t=dx(e.checkType,!1),n=t===e.checkType?bp(t):t;if(n&&n!==e.checkType){const t=eS(e,Bk(e.root.checkType,n,e.mapper),!0);if(!(131072&t.flags))return e.resolvedConstraintOfDistributive=t,t}}e.resolvedConstraintOfDistributive=!1}function Mp(e){return Ip(e)||wp(e)}function zp(e){return tf(e)?Mp(e):void 0}function qp(e){if(464781312&e.flags||VC(e)){const t=nf(e);return t!==jn&&t!==Rn?t:void 0}return 4194304&e.flags?hn:void 0}function Wp(e){return qp(e)||e}function tf(e){return nf(e)!==Rn}function nf(e){if(e.resolvedBaseConstraint)return e.resolvedBaseConstraint;const t=[];return e.resolvedBaseConstraint=n(e);function n(e){if(!e.immediateBaseConstraint){if(!Mc(e,4))return Rn;let n;const o=tC(e);if((t.length<10||t.length<50&&!T(t,o))&&(t.push(o),n=function(e){if(262144&e.flags){const t=Nh(e);return e.isThisType||!t?t:i(t)}if(3145728&e.flags){const t=e.types,n=[];let r=!1;for(const e of t){const t=i(e);t?(t!==e&&(r=!0),n.push(t)):r=!0}return r?1048576&e.flags&&n.length===t.length?xb(n):2097152&e.flags&&n.length?Fb(n):void 0:e}if(4194304&e.flags)return hn;if(134217728&e.flags){const t=e.types,n=B(t,i);return n.length===t.length?Vb(e.texts,n):Vt}if(268435456&e.flags){const t=i(e.type);return t&&t!==e.type?$b(e.symbol,t):Vt}if(8388608&e.flags){if(df(e))return i(yx(e.objectType,e.indexType));const t=i(e.objectType),n=i(e.indexType),r=t&&n&&Sx(t,n,e.accessFlags);return r&&i(r)}if(16777216&e.flags){const t=Mp(e);return t&&i(t)}return 33554432&e.flags?i(my(e)):VC(e)?kv(E(Vv(e),((t,n)=>{const r=262144&t.flags&&8&e.target.elementFlags[n]&&i(t)||t;return r!==t&&AD(r,(e=>kC(e)&&!VC(e)))?r:t})),e.target.elementFlags,e.target.readonly,e.target.labeledElementDeclarations):e}(dx(e,!1)),t.pop()),!zc()){if(262144&e.flags){const t=Ch(e);if(t){const n=jo(t,la.Type_parameter_0_has_a_circular_constraint,sc(e));!r||sh(t,r)||sh(r,t)||iT(n,jp(r,la.Circularity_originates_in_type_at_this_location))}}n=Rn}e.immediateBaseConstraint??(e.immediateBaseConstraint=n||jn)}return e.immediateBaseConstraint}function i(e){const t=n(e);return t!==jn&&t!==Rn?t:void 0}}function rf(e){if(e.default)e.default===Mn&&(e.default=Rn);else if(e.target){const t=rf(e.target);e.default=t?tS(t,e.mapper):jn}else{e.default=Mn;const t=e.symbol&&d(e.symbol.declarations,(e=>iD(e)&&e.default)),n=t?dk(t):jn;e.default===Mn&&(e.default=n)}return e.default}function of(e){const t=rf(e);return t!==jn&&t!==Rn?t:void 0}function af(e){return!(!e.symbol||!d(e.symbol.declarations,(e=>iD(e)&&e.default)))}function lf(e){return e.resolvedApparentType||(e.resolvedApparentType=function(e){const t=e.target??e,n=Xk(t);if(n&&!t.declaration.nameType){const r=Yd(e),i=rp(r)?lf(r):qp(r);if(i&&AD(i,(e=>kC(e)||uf(e))))return tS(t,Bk(n,i,e.mapper))}return e}(e))}function uf(e){return!!(2097152&e.flags)&&v(e.types,kC)}function df(e){let t;return!(!(8388608&e.flags&&32&mx(t=e.objectType)&&!rp(t)&&_x(e.indexType))||8&ep(t)||t.declaration.nameType)}function pf(e){const t=465829888&e.flags?qp(e)||Ot:e,n=mx(t);return 32&n?lf(t):4&n&&t!==e?ld(t,e):2097152&t.flags?function(e,t){if(e===t)return e.resolvedApparentType||(e.resolvedApparentType=ld(e,t,!0));const n=`I${Kv(e)},${Kv(t)}`;return No(n)??Fo(n,ld(e,t,!0))}(t,e):402653316&t.flags?rr:296&t.flags?ir:2112&t.flags?Vr||(Vr=Ay("BigInt",0,!1))||Nn:528&t.flags?or:12288&t.flags?qy():67108864&t.flags?Nn:4194304&t.flags?hn:2&t.flags&&!H?Nn:t}function ff(e){return yf(pf(yf(e)))}function mf(e,t,n){var r,i,o;let a,s,c;const l=1048576&e.flags;let _,d=4,p=l?0:8,f=!1;for(const r of e.types){const e=pf(r);if(!($c(e)||131072&e.flags)){const r=Cf(e,t,n),i=r?rx(r):0;if(r){if(106500&r.flags&&(_??(_=l?0:16777216),l?_|=16777216&r.flags:_&=r.flags),a){if(r!==a)if((VM(r)||r)===(VM(a)||a)&&-1===rC(a,r,((e,t)=>e===t?-1:0)))f=!!a.parent&&!!u(M_(a.parent));else{s||(s=new Map,s.set(RB(a),a));const e=RB(r);s.has(e)||s.set(e,r)}}else a=r;l&&WL(r)?p|=8:l||WL(r)||(p&=-9),p|=(6&i?0:256)|(4&i?512:0)|(2&i?1024:0)|(256&i?2048:0),eI(r)||(d=2)}else if(l){const n=!Xu(t)&&Nm(e,t);n?(p|=32|(n.isReadonly?8:0),c=ie(c,UC(e)?$C(e)||jt:n.type)):!aN(e)||2097152&mx(e)?p|=16:(p|=32,c=ie(c,jt))}}}if(!a||l&&(s||48&p)&&1536&p&&(!s||!function(e){let t;for(const n of e){if(!n.declarations)return;if(t){if(t.forEach((e=>{T(n.declarations,e)||t.delete(e)})),0===t.size)return}else t=new Set(n.declarations)}return t}(s.values())))return;if(!(s||16&p||c)){if(f){const t=null==(r=tt(a,Ku))?void 0:r.links,n=dw(a,null==t?void 0:t.type);return n.parent=null==(o=null==(i=a.valueDeclaration)?void 0:i.symbol)?void 0:o.parent,n.links.containingType=e,n.links.mapper=null==t?void 0:t.mapper,n.links.writeType=b_(a),n}return a}const m=s?Oe(s.values()):[a];let g,h,y;const v=[];let b,x,k=!1;for(const e of m){x?e.valueDeclaration&&e.valueDeclaration!==x&&(k=!0):x=e.valueDeclaration,g=se(g,e.declarations);const t=S_(e);h||(h=t,y=oa(e).nameType);const n=b_(e);(b||n!==t)&&(b=ie(b||v.slice(),n)),t!==h&&(p|=64),(jC(t)||tx(t))&&(p|=128),131072&t.flags&&t!==Sn&&(p|=131072),v.push(t)}se(v,c);const S=Wo(4|(_??0),t,d|p);return S.links.containingType=e,!k&&x&&(S.valueDeclaration=x,x.symbol.parent&&(S.parent=x.symbol.parent)),S.declarations=g,S.links.nameType=y,v.length>2?(S.links.checkFlags|=65536,S.links.deferralParent=e,S.links.deferralConstituents=v,S.links.deferralWriteConstituents=b):(S.links.type=l?xb(v):Fb(v),b&&(S.links.writeType=l?xb(b):Fb(b))),S}function gf(e,t,n){var r,i,o;let a=n?null==(r=e.propertyCacheWithoutObjectFunctionPropertyAugment)?void 0:r.get(t):null==(i=e.propertyCache)?void 0:i.get(t);return!a&&(a=mf(e,t,n),a)&&((n?e.propertyCacheWithoutObjectFunctionPropertyAugment||(e.propertyCacheWithoutObjectFunctionPropertyAugment=Hu()):e.propertyCache||(e.propertyCache=Hu())).set(t,a),!n||48&nx(a)||(null==(o=e.propertyCache)?void 0:o.get(t))||(e.propertyCache||(e.propertyCache=Hu())).set(t,a)),a}function hf(e,t,n){const r=gf(e,t,n);return!r||16&nx(r)?void 0:r}function yf(e){return 1048576&e.flags&&16777216&e.objectFlags?e.resolvedReducedType||(e.resolvedReducedType=function(e){const t=A(e.types,yf);if(t===e.types)return e;const n=xb(t);return 1048576&n.flags&&(n.resolvedReducedType=n),n}(e)):2097152&e.flags?(16777216&e.objectFlags||(e.objectFlags|=16777216|($(yp(e),vf)?33554432:0)),33554432&e.objectFlags?_n:e):e}function vf(e){return bf(e)||xf(e)}function bf(e){return!(16777216&e.flags||192!=(131264&nx(e))||!(131072&S_(e).flags))}function xf(e){return!e.valueDeclaration&&!!(1024&nx(e))}function kf(e){return!!(1048576&e.flags&&16777216&e.objectFlags&&$(e.types,kf)||2097152&e.flags&&function(e){const t=e.uniqueLiteralFilledInstantiation||(e.uniqueLiteralFilledInstantiation=tS(e,Tn));return yf(t)!==t}(e))}function Sf(e,t){if(2097152&t.flags&&33554432&mx(t)){const n=b(yp(t),bf);if(n)return Yx(e,la.The_intersection_0_was_reduced_to_never_because_property_1_has_conflicting_types_in_some_constituents,sc(t,void 0,536870912),ic(n));const r=b(yp(t),xf);if(r)return Yx(e,la.The_intersection_0_was_reduced_to_never_because_property_1_exists_in_multiple_constituents_and_is_private_in_some,sc(t,void 0,536870912),ic(r))}return e}function Cf(e,t,n,r){var i,o;if(524288&(e=ff(e)).flags){const a=pp(e),s=a.members.get(t);if(s&&!r&&512&(null==(i=e.symbol)?void 0:i.flags)&&(null==(o=oa(e.symbol).typeOnlyExportStarMap)?void 0:o.has(t)))return;if(s&&Cs(s,r))return s;if(n)return;const c=a===Ln?Xn:a.callSignatures.length?Qn:a.constructSignatures.length?Yn:void 0;if(c){const e=hp(c,t);if(e)return e}return hp(Gn,t)}if(2097152&e.flags){return hf(e,t,!0)||(n?void 0:hf(e,t,n))}if(1048576&e.flags)return hf(e,t,n)}function jf(e,t){if(3670016&e.flags){const n=pp(e);return 0===t?n.callSignatures:n.constructSignatures}return l}function Rf(e,t){const n=jf(ff(e),t);if(0===t&&!u(n)&&1048576&e.flags){if(e.arrayFallbackSignatures)return e.arrayFallbackSignatures;let r;if(AD(e,(e=>{var t,n;return!(!(null==(t=e.symbol)?void 0:t.parent)||(n=e.symbol.parent,!(n&&Zn.symbol&&er.symbol)||!ks(n,Zn.symbol)&&!ks(n,er.symbol))||(r?r!==e.symbol.escapedName:(r=e.symbol.escapedName,0)))}))){const n=uv(zD(e,(e=>Ck((qf(e.symbol.parent)?er:Zn).typeParameters[0],e.mapper))),ED(e,(e=>qf(e.symbol.parent))));return e.arrayFallbackSignatures=Rf(Uc(n,r),t)}e.arrayFallbackSignatures=n}return n}function qf(e){return!(!e||!er.symbol||!ks(e,er.symbol))}function Uf(e,t){return b(e,(e=>e.keyType===t))}function Vf(e,t){let n,r,i;for(const o of e)o.keyType===Vt?n=o:Wf(t,o.keyType)&&(r?(i||(i=[r])).push(o):r=o);return i?uh(Ot,Fb(E(i,(e=>e.type))),we(i,((e,t)=>e&&t.isReadonly),!0)):r||(n&&Wf(t,Vt)?n:void 0)}function Wf(e,t){return gS(e,t)||t===Vt&&gS(e,Wt)||t===Wt&&(e===bn||!!(128&e.flags)&&MT(e.value))}function $f(e){return 3670016&e.flags?pp(e).indexInfos:l}function Kf(e){return $f(ff(e))}function dm(e,t){return Uf(Kf(e),t)}function pm(e,t){var n;return null==(n=dm(e,t))?void 0:n.type}function fm(e,t){return Kf(e).filter((e=>Wf(t,e.keyType)))}function hm(e,t){return Vf(Kf(e),t)}function Nm(e,t){return hm(e,Xu(t)?cn:ik(fc(t)))}function Pm(e){var t;let n;for(const t of ll(e))n=le(n,pu(t.symbol));return(null==n?void 0:n.length)?n:$F(e)?null==(t=sg(e))?void 0:t.typeParameters:void 0}function Lm(e){const t=[];return e.forEach(((e,n)=>{Ls(n)||t.push(e)})),t}function Mm(e,t){if(Ts(e))return;const n=sa(Ne,'"'+e+'"',512);return n&&t?ds(n):n}function Bm(e){return Cg(e)||VT(e)||oD(e)&&HT(e)}function zm(e){if(Bm(e))return!0;if(!oD(e))return!1;if(e.initializer){const t=ig(e.parent),n=e.parent.parameters.indexOf(e);return un.assert(n>=0),n>=yL(t,3)}const t=im(e.parent);return!!t&&!e.type&&!e.dotDotDotToken&&e.parent.parameters.indexOf(e)>=bO(t).length}function Xm(e,t,n,r){return{kind:e,parameterName:t,parameterIndex:n,type:r}}function ng(e){let t=0;if(e)for(let n=0;n=n&&o<=i){const n=e?e.slice():[];for(let e=o;ec.arguments.length&&!u||(o=n.length)}if((177===e.kind||178===e.kind)&&Zu(e)&&(!s||!r)){const t=177===e.kind?178:177,n=Wu(ps(e),t);n&&(r=function(e){const t=UJ(e);return t&&t.symbol}(n))}a&&a.typeExpression&&(r=dw(Wo(1,"this"),dk(a.typeExpression)));const _=aP(e)?qg(e):e,u=_&&dD(_)?nu(ds(_.parent.symbol)):void 0,d=u?u.localTypeParameters:Pm(e);(Ru(e)||Fm(e)&&function(e,t){if(aP(e)||!cg(e))return!1;const n=ye(e.parameters),r=f(n?Fc(n):il(e).filter(bP),(e=>e.typeExpression&&nP(e.typeExpression.type)?e.typeExpression.type:void 0)),i=Wo(3,"args",32768);return r?i.links.type=uv(dk(r.type)):(i.links.checkFlags|=65536,i.links.deferralParent=_n,i.links.deferralConstituents=[cr],i.links.deferralWriteConstituents=[cr]),r&&t.pop(),t.push(i),!0}(e,n))&&(i|=1),(xD(e)&&wv(e,64)||dD(e)&&wv(e.parent,64))&&(i|=4),t.resolvedSignature=pd(e,d,r,n,void 0,void 0,o,i)}return t.resolvedSignature}function sg(e){if(!Fm(e)||!i_(e))return;const t=el(e);return(null==t?void 0:t.typeExpression)&&aO(dk(t.typeExpression))}function cg(e){const t=aa(e);return void 0===t.containsArgumentsReference&&(512&t.flags?t.containsArgumentsReference=!0:t.containsArgumentsReference=function e(t){if(!t)return!1;switch(t.kind){case 80:return t.escapedText===Le.escapedName&&kJ(t)===Le;case 172:case 174:case 177:case 178:return 167===t.name.kind&&e(t.name);case 211:case 212:return e(t.expression);case 303:return e(t.initializer);default:return!Yh(t)&&!Tf(t)&&!!PI(t,e)}}(e.body)),t.containsArgumentsReference}function pg(e){if(!e||!e.declarations)return l;const t=[];for(let n=0;n0&&r.body){const t=e.declarations[n-1];if(r.parent===t.parent&&r.kind===t.kind&&r.pos===t.end)continue}if(Fm(r)&&r.jsDoc){const e=Jg(r);if(u(e)){for(const n of e){const e=n.typeExpression;void 0!==e.type||dD(r)||ww(e,wt),t.push(ig(e))}continue}}t.push(!jT(r)&&!Mf(r)&&sg(r)||ig(r))}}return t}function mg(e){const t=Qa(e,e);if(t){const e=ts(t);if(e)return S_(e)}return wt}function yg(e){if(e.thisParameter)return S_(e.thisParameter)}function vg(e){if(!e.resolvedTypePredicate){if(e.target){const t=vg(e.target);e.resolvedTypePredicate=t?Uk(t,e.mapper):ai}else if(e.compositeSignatures)e.resolvedTypePredicate=function(e,t){let n;const r=[];for(const i of e){const e=vg(i);if(e){if(0!==e.kind&&1!==e.kind||n&&!Sb(n,e))return;n=e,r.push(e.type)}else{const e=2097152!==t?Tg(i):void 0;if(e!==Ht&&e!==Qt)return}}if(!n)return;const i=Sg(r,t);return Xm(n.kind,n.parameterName,n.parameterIndex,i)}(e.compositeSignatures,e.compositeKind)||ai;else{const t=e.declaration&&mv(e.declaration);let n;if(!t){const t=sg(e.declaration);t&&e!==t&&(n=vg(t))}if(t||n)e.resolvedTypePredicate=t&&yD(t)?function(e,t){const n=e.parameterName,r=e.type&&dk(e.type);return 197===n.kind?Xm(e.assertsModifier?2:0,void 0,void 0,r):Xm(e.assertsModifier?3:1,n.escapedText,k(t.parameters,(e=>e.escapedName===n.escapedText)),r)}(t,e):n||ai;else if(e.declaration&&i_(e.declaration)&&(!e.resolvedReturnType||16&e.resolvedReturnType.flags)&&hL(e)>0){const{declaration:t}=e;e.resolvedTypePredicate=ai,e.resolvedTypePredicate=function(e){switch(e.kind){case 176:case 177:case 178:return}if(0!==Ih(e))return;let t;if(e.body&&241!==e.body.kind)t=e.body;else if(wf(e.body,(e=>{if(t||!e.expression)return!0;t=e.expression}))||!t||BL(e))return;return function(e,t){return 16&fj(t=oh(t,!0)).flags?d(e.parameters,((n,r)=>{const i=S_(n.symbol);if(!i||16&i.flags||!zN(n.name)||qF(n.symbol)||Mu(n))return;const o=function(e,t,n,r){const i=Ig(t)&&t.flowNode||253===t.parent.kind&&t.parent.flowNode||EM(2,void 0,void 0),o=EM(32,t,i),a=JF(n.name,r,r,e,o);if(a===r)return;const s=EM(64,t,i);return 131072&JF(n.name,r,a,e,s).flags?a:void 0}(e,t,n,i);return o?Xm(1,fc(n.name.escapedText),r,o):void 0})):void 0}(e,t)}(t)||ai}else e.resolvedTypePredicate=ai}un.assert(!!e.resolvedTypePredicate)}return e.resolvedTypePredicate===ai?void 0:e.resolvedTypePredicate}function Sg(e,t,n){return 2097152!==t?xb(e,n):Fb(e)}function Tg(e){if(!e.resolvedReturnType){if(!Mc(e,3))return Et;let t=e.target?tS(Tg(e.target),e.mapper):e.compositeSignatures?tS(Sg(E(e.compositeSignatures,Tg),e.compositeKind,2),e.mapper):Fg(e.declaration)||(Cd(e.declaration.body)?wt:OL(e.declaration));if(8&e.flags?t=iw(t):16&e.flags&&(t=tw(t)),!zc()){if(e.declaration){const t=mv(e.declaration);if(t)jo(t,la.Return_type_annotation_circularly_references_itself);else if(ne){const t=e.declaration,n=Tc(t);n?jo(n,la._0_implicitly_has_return_type_any_because_it_does_not_have_a_return_type_annotation_and_is_referenced_directly_or_indirectly_in_one_of_its_return_expressions,Ep(n)):jo(t,la.Function_implicitly_has_return_type_any_because_it_does_not_have_a_return_type_annotation_and_is_referenced_directly_or_indirectly_in_one_of_its_return_expressions)}}t=wt}e.resolvedReturnType??(e.resolvedReturnType=t)}return e.resolvedReturnType}function Fg(e){if(176===e.kind)return nu(ds(e.parent.symbol));const t=mv(e);if(aP(e)){const n=Vg(e);if(n&&dD(n.parent)&&!t)return nu(ds(n.parent.parent.symbol))}if(wg(e))return dk(e.parameters[0].type);if(t)return dk(t);if(177===e.kind&&Zu(e)){const t=Fm(e)&&fl(e);if(t)return t;const n=Ql(Wu(ps(e),178));if(n)return n}return function(e){const t=sg(e);return t&&Tg(t)}(e)}function Eg(e){return e.compositeSignatures&&$(e.compositeSignatures,Eg)||!e.resolvedReturnType&&Bc(e,3)>=0}function Ag(e){if(UB(e)){const t=S_(e.parameters[e.parameters.length-1]),n=UC(t)?$C(t):t;return n&&pm(n,Wt)}}function Lg(e,t,n,r){const i=jg(e,rg(t,e.typeParameters,ng(e.typeParameters),n));if(r){const e=sO(Tg(i));if(e){const t=fd(e);t.typeParameters=r;const n=fd(i);return n.resolvedReturnType=Yg(t),n}}return i}function jg(e,t){const n=e.instantiations||(e.instantiations=new Map),r=Eh(t);let i=n.get(r);return i||n.set(r,i=Rg(e,t)),i}function Rg(e,t){return Vk(e,function(e,t){return Tk($g(e),t)}(e,t),!0)}function $g(e){return A(e.typeParameters,(e=>e.mapper?tS(e,e.mapper):e))}function Hg(e){return e.typeParameters?e.erasedSignatureCache||(e.erasedSignatureCache=function(e){return Vk(e,jk(e.typeParameters),!0)}(e)):e}function Kg(e){const t=e.typeParameters;if(t){if(e.baseSignatureCache)return e.baseSignatureCache;const n=jk(t),r=Tk(t,E(t,(e=>xp(e)||Ot)));let i=E(t,(e=>tS(e,r)||Ot));for(let e=0;e{Th(e)&&!Uf(n,e)&&n.push(uh(e,t.type?dk(t.type):wt,Cv(t,8),t))}))}}else if(Yu(t)){const e=cF(t)?t.left:t.name,_=KD(e)?fj(e.argumentExpression):kA(e);if(Uf(n,_))continue;gS(_,hn)&&(gS(_,Wt)?(r=!0,Iv(t)||(i=!1)):gS(_,cn)?(o=!0,Iv(t)||(a=!1)):(s=!0,Iv(t)||(c=!1)),l.push(t.symbol))}const _=K(l,N(t,(t=>t!==e)));return s&&!Uf(n,Vt)&&n.push(CA(c,0,_,Vt)),r&&!Uf(n,Wt)&&n.push(CA(i,0,_,Wt)),o&&!Uf(n,cn)&&n.push(CA(a,0,_,cn)),n}return l}function Th(e){return!!(4108&e.flags)||tx(e)||!!(2097152&e.flags)&&!cx(e)&&$(e.types,Th)}function Ch(e){return B(N(e.symbol&&e.symbol.declarations,iD),_l)[0]}function wh(e,t){var n;let r;if(null==(n=e.symbol)?void 0:n.declarations)for(const n of e.symbol.declarations)if(195===n.parent.kind){const[i=n.parent,o]=rh(n.parent.parent);if(183!==o.kind||t){if(169===o.kind&&o.dotDotDotToken||191===o.kind||202===o.kind&&o.dotDotDotToken)r=ie(r,uv(Ot));else if(204===o.kind)r=ie(r,Vt);else if(168===o.kind&&200===o.parent.kind)r=ie(r,hn);else if(200===o.kind&&o.type&&oh(o.type)===n.parent&&194===o.parent.kind&&o.parent.extendsType===o&&200===o.parent.checkType.kind&&o.parent.checkType.type){const e=o.parent.checkType;r=ie(r,tS(dk(e.type),Fk(pu(ps(e.typeParameter)),e.typeParameter.constraint?dk(e.typeParameter.constraint):hn)))}}else{const t=o,n=Xj(t);if(n){const o=t.typeArguments.indexOf(i);if(o()=>Hj(t,n,r)))));o!==e&&(r=ie(r,o))}}}}}return r&&Fb(r)}function Nh(e){if(!e.constraint)if(e.target){const t=xp(e.target);e.constraint=t?tS(t,e.mapper):jn}else{const t=Ch(e);if(t){let n=dk(t);1&n.flags&&!$c(n)&&(n=200===t.parent.parent.kind?hn:Ot),e.constraint=n}else e.constraint=wh(e)||jn}return e.constraint===jn?void 0:e.constraint}function Dh(e){const t=Wu(e.symbol,168),n=TP(t.parent)?Bg(t.parent):t.parent;return n&&gs(n)}function Eh(e){let t="";if(e){const n=e.length;let r=0;for(;r1&&(t+=":"+o),r+=o}}return t}function Ph(e,t){return e?`@${RB(e)}`+(t?`:${Eh(t)}`:""):""}function Ah(e,t){let n=0;for(const r of e)void 0!==t&&r.flags&t||(n|=mx(r));return 458752&n}function Oh(e,t){return $(t)&&e===On?Ot:jh(e,t)}function jh(e,t){const n=Eh(t);let r=e.instantiations.get(n);return r||(r=Is(4,e.symbol),e.instantiations.set(n,r),r.objectFlags|=t?Ah(t):0,r.target=e,r.resolvedTypeArguments=t),r}function Wh(e){const t=Ns(e.flags,e.symbol);return t.objectFlags=e.objectFlags,t.target=e.target,t.resolvedTypeArguments=e.resolvedTypeArguments,t}function $h(e,t,n,r,i){if(!r){const e=Jx(r=Bx(t));i=n?mk(e,n):e}const o=Is(4,e.symbol);return o.target=e,o.node=t,o.mapper=n,o.aliasSymbol=r,o.aliasTypeArguments=i,o}function Kh(e){var t,n;if(!e.resolvedTypeArguments){if(!Mc(e,5))return K(e.target.outerTypeParameters,null==(t=e.target.localTypeParameters)?void 0:t.map((()=>Et)))||l;const i=e.node,o=i?183===i.kind?K(e.target.outerTypeParameters,Kj(i,e.target.localTypeParameters)):188===i.kind?[dk(i.elementType)]:E(i.elements,dk):l;zc()?e.resolvedTypeArguments??(e.resolvedTypeArguments=e.mapper?mk(o,e.mapper):o):(e.resolvedTypeArguments??(e.resolvedTypeArguments=K(e.target.outerTypeParameters,(null==(n=e.target.localTypeParameters)?void 0:n.map((()=>Et)))||l)),jo(e.node||r,e.target.symbol?la.Type_arguments_for_0_circularly_reference_themselves:la.Tuple_type_arguments_circularly_reference_themselves,e.target.symbol&&ic(e.target.symbol)))}return e.resolvedTypeArguments}function ey(e){return u(e.target.typeParameters)}function ty(e,t){const n=fu(ds(t)),r=n.localTypeParameters;if(r){const t=u(e.typeArguments),i=ng(r),o=Fm(e);if((ne||!o)&&(tr.length)){const t=o&&mF(e)&&!sP(e.parent);if(jo(e,i===r.length?t?la.Expected_0_type_arguments_provide_these_with_an_extends_tag:la.Generic_type_0_requires_1_type_argument_s:t?la.Expected_0_1_type_arguments_provide_these_with_an_extends_tag:la.Generic_type_0_requires_between_1_and_2_type_arguments,sc(n,void 0,2),i,r.length),!o)return Et}return 183===e.kind&&vv(e,u(e.typeArguments)!==r.length)?$h(n,e,void 0):jh(n,K(n.outerTypeParameters,rg(Sy(e),r,i,o)))}return vy(e,t)?n:Et}function ny(e,t,n,r){const i=fu(e);if(i===It){const n=IB.get(e.escapedName);if(void 0!==n&&t&&1===t.length)return 4===n?_y(t[0]):$b(e,t[0])}const o=oa(e),a=o.typeParameters,s=Eh(t)+Ph(n,r);let c=o.instantiations.get(s);return c||o.instantiations.set(s,c=nS(i,Tk(a,rg(t,a,ng(a),Fm(e.valueDeclaration))),n,r)),c}function ry(e){var t;const n=null==(t=e.declarations)?void 0:t.find(Dg);return!(!n||!Hf(n))}function iy(e){return e.parent?`${iy(e.parent)}.${e.escapedName}`:e.escapedName}function oy(e){const t=(166===e.kind?e.right:211===e.kind?e.name:e).escapedText;if(t){const n=166===e.kind?oy(e.left):211===e.kind?oy(e.expression):void 0,r=n?`${iy(n)}.${t}`:t;let i=St.get(r);return i||(St.set(r,i=Wo(524288,t,1048576)),i.parent=n,i.links.declaredType=Pt),i}return xt}function ay(e,t,n){const r=function(e){switch(e.kind){case 183:return e.typeName;case 233:const t=e.expression;if(ob(t))return t}}(e);if(!r)return xt;const i=Ka(r,t,n);return i&&i!==xt?i:n?xt:oy(r)}function sy(e,t){if(t===xt)return Et;if(96&(t=function(e){const t=e.valueDeclaration;if(!t||!Fm(t)||524288&e.flags||$m(t,!1))return;const n=VF(t)?Vm(t):Wm(t);if(n){const t=gs(n);if(t)return UO(t,e)}}(t)||t).flags)return ty(e,t);if(524288&t.flags)return function(e,t){if(1048576&nx(t)){const n=Sy(e),r=Ph(t,n);let i=Tt.get(r);return i||(i=As(1,"error",void 0,`alias ${r}`),i.aliasSymbol=t,i.aliasTypeArguments=n,Tt.set(r,i)),i}const n=fu(t),r=oa(t).typeParameters;if(r){const n=u(e.typeArguments),i=ng(r);if(nr.length)return jo(e,i===r.length?la.Generic_type_0_requires_1_type_argument_s:la.Generic_type_0_requires_between_1_and_2_type_arguments,ic(t),i,r.length),Et;const o=Bx(e);let a,s=!o||!ry(t)&&ry(o)?void 0:o;if(s)a=Jx(s);else if(Au(e)){const t=ay(e,2097152,!0);if(t&&t!==xt){const n=Ba(t);n&&524288&n.flags&&(s=n,a=Sy(e)||(r?[]:void 0))}}return ny(t,Sy(e),s,a)}return vy(e,t)?n:Et}(e,t);const n=mu(t);if(n)return vy(e,t)?nk(n):Et;if(111551&t.flags&&yy(e)){const n=function(e,t){const n=aa(e);if(!n.resolvedJSDocType){const r=S_(t);let i=r;if(t.valueDeclaration){const n=205===e.kind&&e.qualifier;r.symbol&&r.symbol!==t&&n&&(i=sy(e,r.symbol))}n.resolvedJSDocType=i}return n.resolvedJSDocType}(e,t);return n||(ay(e,788968),S_(t))}return Et}function _y(e){return uy(e)?fy(e,Ot):e}function uy(e){return!!(3145728&e.flags&&$(e.types,uy)||33554432&e.flags&&!dy(e)&&uy(e.baseType)||524288&e.flags&&!jS(e)||432275456&e.flags&&!tx(e))}function dy(e){return!!(33554432&e.flags&&2&e.constraint.flags)}function py(e,t){return 3&t.flags||t===e||1&e.flags?e:fy(e,t)}function fy(e,t){const n=`${Kv(e)}>${Kv(t)}`,r=dt.get(n);if(r)return r;const i=ws(33554432);return i.baseType=e,i.constraint=t,dt.set(n,i),i}function my(e){return dy(e)?e.baseType:Fb([e.constraint,e.baseType])}function gy(e){return 189===e.kind&&1===e.elements.length}function hy(e,t,n){return gy(t)&&gy(n)?hy(e,t.elements[0],n.elements[0]):Nx(dk(t))===Nx(e)?dk(n):void 0}function yy(e){return!!(16777216&e.flags)&&(183===e.kind||205===e.kind)}function vy(e,t){return!e.typeArguments||(jo(e,la.Type_0_is_not_generic,t?ic(t):e.typeName?Ep(e.typeName):SB),!1)}function xy(e){if(zN(e.typeName)){const t=e.typeArguments;switch(e.typeName.escapedText){case"String":return vy(e),Vt;case"Number":return vy(e),Wt;case"Boolean":return vy(e),sn;case"Void":return vy(e),ln;case"Undefined":return vy(e),jt;case"Null":return vy(e),zt;case"Function":case"function":return vy(e),Xn;case"array":return t&&t.length||ne?void 0:cr;case"promise":return t&&t.length||ne?void 0:PL(wt);case"Object":if(t&&2===t.length){if(Im(e)){const e=dk(t[0]),n=dk(t[1]),r=e===Vt||e===Wt?[uh(e,n,!1)]:l;return Bs(void 0,P,l,l,r)}return wt}return vy(e),ne?void 0:wt}}}function ky(e){const t=aa(e);if(!t.resolvedType){if(xl(e)&&V_(e.parent))return t.resolvedSymbol=xt,t.resolvedType=fj(e.parent.expression);let n,r;const i=788968;yy(e)&&(r=xy(e),r||(n=ay(e,i,!0),n===xt?n=ay(e,111551|i):ay(e,i),r=sy(e,n))),r||(n=ay(e,i),r=sy(e,n)),t.resolvedSymbol=n,t.resolvedType=r}return t.resolvedType}function Sy(e){return E(e.typeArguments,dk)}function Ty(e){const t=aa(e);if(!t.resolvedType){const n=tL(e);t.resolvedType=nk(Sw(n))}return t.resolvedType}function Cy(e,t){function n(e){const t=e.declarations;if(t)for(const e of t)switch(e.kind){case 263:case 264:case 266:return e}}if(!e)return t?On:Nn;const r=fu(e);return 524288&r.flags?u(r.typeParameters)!==t?(jo(n(e),la.Global_type_0_must_have_1_type_parameter_s,hc(e),t),t?On:Nn):r:(jo(n(e),la.Global_type_0_must_be_a_class_or_interface_type,hc(e)),t?On:Nn)}function wy(e,t){return Py(e,111551,t?la.Cannot_find_global_value_0:void 0)}function Ny(e,t){return Py(e,788968,t?la.Cannot_find_global_type_0:void 0)}function Ey(e,t,n){const r=Py(e,788968,n?la.Cannot_find_global_type_0:void 0);if(!r||(fu(r),u(oa(r).typeParameters)===t))return r;jo(r.declarations&&b(r.declarations,GF),la.Global_type_0_must_have_1_type_parameter_s,hc(r),t)}function Py(e,t,n){return Ue(void 0,e,t,n,!1,!1)}function Ay(e,t,n){const r=Ny(e,n);return r||n?Cy(r,t):void 0}function Ly(e,t){let n;for(const r of e)n=ie(n,Ay(r,t,!1));return n??l}function Ry(){return Lr||(Lr=Ay("ImportMeta",0,!0)||Nn)}function My(){if(!jr){const e=Wo(0,"ImportMetaExpression"),t=Ry(),n=Wo(4,"meta",8);n.parent=e,n.links.type=t;const r=Hu([n]);e.members=r,jr=Bs(e,r,l,l,l)}return jr}function By(e){return Rr||(Rr=Ay("ImportCallOptions",0,e))||Nn}function Jy(e){return Mr||(Mr=Ay("ImportAttributes",0,e))||Nn}function zy(e){return dr||(dr=wy("Symbol",e))}function qy(){return fr||(fr=Ay("Symbol",0,!1))||Nn}function Uy(e){return gr||(gr=Ay("Promise",1,e))||On}function Vy(e){return hr||(hr=Ay("PromiseLike",1,e))||On}function Wy(e){return yr||(yr=wy("Promise",e))}function $y(e){return Nr||(Nr=Ay("AsyncIterable",3,e))||On}function Hy(e){return Fr||(Fr=Ay("AsyncIterableIterator",3,e))||On}function Ky(e){return br||(br=Ay("Iterable",3,e))||On}function Xy(e){return kr||(kr=Ay("IterableIterator",3,e))||On}function Qy(){return ee?jt:wt}function Yy(e){return Br||(Br=Ay("Disposable",0,e))||Nn}function Zy(e,t=0){const n=Py(e,788968,void 0);return n&&Cy(n,t)}function ev(e){return Ur||(Ur=Ey("Awaited",1,e)||(e?xt:void 0)),Ur===xt?void 0:Ur}function tv(e,t){return e!==On?jh(e,t):Nn}function nv(e){return tv(mr||(mr=Ay("TypedPropertyDescriptor",1,!0)||On),[e])}function ov(e){return tv(Ky(!0),[e,ln,jt])}function uv(e,t){return tv(t?er:Zn,[e])}function dv(e){switch(e.kind){case 190:return 2;case 191:return fv(e);case 202:return e.questionToken?2:e.dotDotDotToken?fv(e):1;default:return 1}}function fv(e){return uk(e.type)?4:8}function yv(e){return wD(e)||oD(e)?e:void 0}function vv(e,t){return!!Bx(e)||bv(e)&&(188===e.kind?xv(e.elementType):189===e.kind?$(e.elements,xv):t||$(e.typeArguments,xv))}function bv(e){const t=e.parent;switch(t.kind){case 196:case 202:case 183:case 192:case 193:case 199:case 194:case 198:case 188:case 189:return bv(t);case 265:return!0}return!1}function xv(e){switch(e.kind){case 183:return yy(e)||!!(524288&ay(e,788968).flags);case 186:return!0;case 198:return 158!==e.operator&&xv(e.type);case 196:case 190:case 202:case 316:case 314:case 315:case 309:return xv(e.type);case 191:return 188!==e.type.kind||xv(e.type.elementType);case 192:case 193:return $(e.types,xv);case 199:return xv(e.objectType)||xv(e.indexType);case 194:return xv(e.checkType)||xv(e.extendsType)||xv(e.trueType)||xv(e.falseType)}return!1}function kv(e,t,n=!1,r=[]){const i=jv(t||E(e,(e=>1)),n,r);return i===On?Nn:e.length?Rv(i,e):i}function jv(e,t,n){if(1===e.length&&4&e[0])return t?er:Zn;const r=E(e,(e=>1&e?"#":2&e?"?":4&e?".":"*")).join()+(t?"R":"")+($(n,(e=>!!e))?","+E(n,(e=>e?jB(e):"_")).join(","):"");let i=Ye.get(r);return i||Ye.set(r,i=function(e,t,n){const r=e.length,i=w(e,(e=>!!(9&e)));let o;const a=[];let s=0;if(r){o=new Array(r);for(let i=0;i!!(8&e.elementFlags[n]&&1179648&t.flags)));if(n>=0)return Pb(E(t,((t,n)=>8&e.elementFlags[n]?t:Ot)))?zD(t[n],(r=>Bv(e,Se(t,n,r)))):Et}const s=[],c=[],l=[];let _=-1,u=-1,p=-1;for(let c=0;c=1e4)return jo(r,Tf(r)?la.Type_produces_a_tuple_type_that_is_too_large_to_represent:la.Expression_produces_a_tuple_type_that_is_too_large_to_represent),Et;d(e,((e,t)=>{var n;return m(e,l.target.elementFlags[t],null==(n=l.target.labeledElementDeclarations)?void 0:n[t])}))}else m(CC(l)&&pm(l,Wt)||Et,4,null==(o=e.labeledElementDeclarations)?void 0:o[c]);else m(l,_,null==(a=e.labeledElementDeclarations)?void 0:a[c])}for(let e=0;e<_;e++)2&c[e]&&(c[e]=1);u>=0&&u8&c[u+t]?vx(e,Wt):e))),s.splice(u+1,p-u),c.splice(u+1,p-u),l.splice(u+1,p-u));const f=jv(c,e.readonly,l);return f===On?Nn:c.length?jh(f,s):f;function m(e,t,n){1&t&&(_=c.length),4&t&&u<0&&(u=c.length),6&t&&(p=c.length),s.push(2&t?kl(e,!0):e),c.push(t),l.push(n)}}function Jv(e,t,n=0){const r=e.target,i=ey(e)-n;return t>r.fixedLength?function(e){const t=$C(e);return t&&uv(t)}(e)||kv(l):kv(Kh(e).slice(t,i),r.elementFlags.slice(t,i),!1,r.labeledElementDeclarations&&r.labeledElementDeclarations.slice(t,i))}function zv(e){return xb(ie(Ie(e.target.fixedLength,(e=>ik(""+e))),qb(e.target.readonly?er:Zn)))}function qv(e,t){return e.elementFlags.length-S(e.elementFlags,(e=>!(e&t)))-1}function Uv(e){return e.fixedLength+qv(e,3)}function Vv(e){const t=Kh(e),n=ey(e);return t.length===n?t:t.slice(0,n)}function Kv(e){return e.id}function Gv(e,t){return Te(e,t,Kv,vt)>=0}function Xv(e,t){const n=Te(e,t,Kv,vt);return n<0&&(e.splice(~n,0,t),!0)}function eb(e,t,n){const r=n.flags;if(!(131072&r))if(t|=473694207&r,465829888&r&&(t|=33554432),2097152&r&&67108864&mx(n)&&(t|=536870912),n===Dt&&(t|=8388608),$c(n)&&(t|=1073741824),!H&&98304&r)65536&mx(n)||(t|=4194304);else{const t=e.length,r=t&&n.id>e[t-1].id?~t:Te(e,n,Kv,vt);r<0&&e.splice(~r,0,n)}return t}function rb(e,t,n){let r;for(const i of n)i!==r&&(t=1048576&i.flags?rb(e,t|(hb(i)?1048576:0),i.types):eb(e,t,i),r=i);return t}function gb(e,t){return 134217728&t.flags?tN(e,t):Yw(e,t)}function hb(e){return!!(1048576&e.flags&&(e.aliasSymbol||e.origin))}function yb(e,t){for(const n of t)if(1048576&n.flags){const t=n.origin;n.aliasSymbol||t&&!(1048576&t.flags)?ce(e,n):t&&1048576&t.flags&&yb(e,t.types)}}function bb(e,t){const n=Fs(e);return n.types=t,n}function xb(e,t=1,n,r,i){if(0===e.length)return _n;if(1===e.length)return e[0];if(2===e.length&&!i&&(1048576&e[0].flags||1048576&e[1].flags)){const i=0===t?"N":2===t?"S":"L",o=e[0].id=2&&a[0]===jt&&a[1]===Mt&&qt(a,1),(402664352&s||16384&s&&32768&s)&&function(e,t,n){let r=e.length;for(;r>0;){r--;const i=e[r],o=i.flags;(402653312&o&&4&t||256&o&&8&t||2048&o&&64&t||8192&o&&4096&t||n&&32768&o&&16384&t||rk(i)&&Gv(e,i.regularType))&&qt(e,r)}}(a,s,!!(2&t)),128&s&&402653184&s&&function(e){const t=N(e,tx);if(t.length){let n=e.length;for(;n>0;){n--;const r=e[n];128&r.flags&&$(t,(e=>gb(r,e)))&&qt(e,n)}}}(a),536870912&s&&function(e){const t=[];for(const n of e)if(2097152&n.flags&&67108864&mx(n)){const e=8650752&n.types[0].flags?0:1;ce(t,n.types[e])}for(const n of t){const t=[];for(const r of e)if(2097152&r.flags&&67108864&mx(r)){const e=8650752&r.types[0].flags?0:1;r.types[e]===n&&Xv(t,r.types[1-e])}if(AD(qp(n),(e=>Gv(t,e)))){let r=e.length;for(;r>0;){r--;const i=e[r];if(2097152&i.flags&&67108864&mx(i)){const o=8650752&i.types[0].flags?0:1;i.types[o]===n&&Gv(t,i.types[1-o])&&qt(e,r)}}Xv(e,n)}}}(a),2===t&&(a=function(e,t){var n;if(e.length<2)return e;const i=Eh(e),o=pt.get(i);if(o)return o;const a=t&&$(e,(e=>!!(524288&e.flags)&&!rp(e)&&OS(pp(e)))),s=e.length;let c=s,l=0;for(;c>0;){c--;const t=e[c];if(a||469499904&t.flags){if(262144&t.flags&&1048576&Wp(t).flags){zS(t,xb(E(e,(e=>e===t?_n:e))),go)&&qt(e,c);continue}const i=61603840&t.flags?b(vp(t),(e=>OC(S_(e)))):void 0,o=i&&nk(S_(i));for(const a of e)if(t!==a){if(1e5===l&&l/(s-c)*s>1e6)return null==(n=Hn)||n.instant(Hn.Phase.CheckTypes,"removeSubtypes_DepthLimit",{typeIds:e.map((e=>e.id))}),void jo(r,la.Expression_produces_a_union_type_that_is_too_complex_to_represent);if(l++,i&&61603840&a.flags){const e=Uc(a,i.escapedName);if(e&&OC(e)&&nk(e)!==o)continue}if(zS(t,a,go)&&(!(1&mx(N_(t)))||!(1&mx(N_(a)))||hS(t,a))){qt(e,c);break}}}}return pt.set(i,e),e}(a,!!(524288&s)),!a))return Et;if(0===a.length)return 65536&s?4194304&s?zt:Ut:32768&s?4194304&s?jt:Rt:_n}if(!o&&1048576&s){const t=[];yb(t,e);const r=[];for(const e of a)$(t,(t=>Gv(t.types,e)))||r.push(e);if(!n&&1===t.length&&0===r.length)return t[0];if(we(t,((e,t)=>e+t.types.length),0)+r.length===a.length){for(const e of t)Xv(r,e);o=bb(1048576,r)}}return Tb(a,(36323331&s?0:32768)|(2097152&s?16777216:0),n,i,o)}function Sb(e,t){return e.kind===t.kind&&e.parameterIndex===t.parameterIndex}function Tb(e,t,n,r,i){if(0===e.length)return _n;if(1===e.length)return e[0];const o=(i?1048576&i.flags?`|${Eh(i.types)}`:2097152&i.flags?`&${Eh(i.types)}`:`#${i.type.id}|${Eh(e)}`:Eh(e))+Ph(n,r);let a=et.get(o);return a||(a=ws(1048576),a.objectFlags=t|Ah(e,98304),a.types=e,a.origin=i,a.aliasSymbol=n,a.aliasTypeArguments=r,2===e.length&&512&e[0].flags&&512&e[1].flags&&(a.flags|=16,a.intrinsicName="boolean"),et.set(o,a)),a}function Cb(e,t,n){const r=n.flags;return 2097152&r?wb(e,t,n.types):(jS(n)?16777216&t||(t|=16777216,e.set(n.id.toString(),n)):(3&r?(n===Dt&&(t|=8388608),$c(n)&&(t|=1073741824)):!H&&98304&r||(n===Mt&&(t|=262144,n=jt),e.has(n.id.toString())||(109472&n.flags&&109472&t&&(t|=67108864),e.set(n.id.toString(),n))),t|=473694207&r),t)}function wb(e,t,n){for(const r of n)t=Cb(e,t,nk(r));return t}function Nb(e,t){for(const n of e)if(!Gv(n.types,t)){if(t===Mt)return Gv(n.types,jt);if(t===jt)return Gv(n.types,Mt);const e=128&t.flags?Vt:288&t.flags?Wt:2048&t.flags?$t:8192&t.flags?cn:void 0;if(!e||!Gv(n.types,e))return!1}return!0}function Db(e,t){for(let n=0;n!(e.flags&t)))}function Fb(e,t=0,n,r){const i=new Map,o=wb(i,0,e),a=Oe(i.values());let s=0;if(131072&o)return T(a,dn)?dn:_n;if(H&&98304&o&&84410368&o||67108864&o&&402783228&o||402653316&o&&67238776&o||296&o&&469891796&o||2112&o&&469889980&o||12288&o&&469879804&o||49152&o&&469842940&o)return _n;if(402653184&o&&128&o&&function(e){let t=e.length;const n=N(e,(e=>!!(128&e.flags)));for(;t>0;){t--;const r=e[t];if(402653184&r.flags)for(const i of n){if(fS(i,r)){qt(e,t);break}if(tx(r))return!0}}return!1}(a))return _n;if(1&o)return 8388608&o?Dt:1073741824&o?Et:wt;if(!H&&98304&o)return 16777216&o?_n:32768&o?jt:zt;if((4&o&&402653312&o||8&o&&256&o||64&o&&2048&o||4096&o&&8192&o||16384&o&&32768&o||16777216&o&&470302716&o)&&(1&t||function(e,t){let n=e.length;for(;n>0;){n--;const r=e[n];(4&r.flags&&402653312&t||8&r.flags&&256&t||64&r.flags&&2048&t||4096&r.flags&&8192&t||16384&r.flags&&32768&t||jS(r)&&470302716&t)&&qt(e,n)}}(a,o)),262144&o&&(a[a.indexOf(jt)]=Mt),0===a.length)return Ot;if(1===a.length)return a[0];if(2===a.length&&!(2&t)){const e=8650752&a[0].flags?0:1,t=a[e],n=a[1-e];if(8650752&t.flags&&(469893116&n.flags&&!ix(n)||16777216&o)){const e=qp(t);if(e&&AD(e,(e=>!!(469893116&e.flags)||jS(e)))){if(mS(e,n))return t;if(!(1048576&e.flags&&ED(e,(e=>mS(e,n)))||mS(n,e)))return _n;s=67108864}}}const c=Eh(a)+(2&t?"*":Ph(n,r));let l=it.get(c);if(!l){if(1048576&o)if(function(e){let t;const n=k(e,(e=>!!(32768&mx(e))));if(n<0)return!1;let r=n+1;for(;r!!(1048576&e.flags&&32768&e.types[0].flags)))){const e=$(a,lw)?Mt:jt;Db(a,32768),l=xb([Fb(a,t),e],1,n,r)}else if(v(a,(e=>!!(1048576&e.flags&&(65536&e.types[0].flags||65536&e.types[1].flags)))))Db(a,65536),l=xb([Fb(a,t),zt],1,n,r);else if(a.length>=3&&e.length>2){const e=Math.floor(a.length/2);l=Fb([Fb(a.slice(0,e),t),Fb(a.slice(e),t)],t,n,r)}else{if(!Pb(a))return Et;const e=function(e,t){const n=Eb(e),r=[];for(let i=0;i=0;t--)if(1048576&e[t].flags){const r=e[t].types,i=r.length;n[t]=r[o%i],o=Math.floor(o/i)}const a=Fb(n,t);131072&a.flags||r.push(a)}return r}(a,t);l=xb(e,1,n,r,$(e,(e=>!!(2097152&e.flags)))&&Ib(e)>Ib(a)?bb(2097152,a):void 0)}else l=function(e,t,n,r){const i=ws(2097152);return i.objectFlags=t|Ah(e,98304),i.types=e,i.aliasSymbol=n,i.aliasTypeArguments=r,i}(a,s,n,r);it.set(c,l)}return l}function Eb(e){return we(e,((e,t)=>1048576&t.flags?e*t.types.length:131072&t.flags?0:e),1)}function Pb(e){var t;const n=Eb(e);return!(n>=1e5&&(null==(t=Hn)||t.instant(Hn.Phase.CheckTypes,"checkCrossProductUnion_DepthLimit",{typeIds:e.map((e=>e.id)),size:n}),jo(r,la.Expression_produces_a_union_type_that_is_too_complex_to_represent),1))}function Ab(e){return 3145728&e.flags&&!e.aliasSymbol?1048576&e.flags&&e.origin?Ab(e.origin):Ib(e.types):1}function Ib(e){return we(e,((e,t)=>e+Ab(t)),0)}function Ob(e,t){const n=ws(4194304);return n.type=e,n.indexFlags=t,n}function Lb(e,t){return 1&t?e.resolvedStringIndexType||(e.resolvedStringIndexType=Ob(e,1)):e.resolvedIndexType||(e.resolvedIndexType=Ob(e,0))}function jb(e,t){const n=Jd(e),r=qd(e),i=Ud(e.target||e);if(!(i||2&t))return r;const o=[];if(_x(r)){if(Qd(e))return Lb(e,t);FD(r,s)}else Qd(e)?Bd(pf(Yd(e)),8576,!!(1&t),s):FD(Rd(r),s);const a=2&t?OD(xb(o),(e=>!(5&e.flags))):xb(o);return 1048576&a.flags&&1048576&r.flags&&Eh(a.types)===Eh(r.types)?r:a;function s(t){const r=i?tS(i,zk(e.mapper,n,t)):t;o.push(r===Vt?gn:r)}}function Rb(e){if(qN(e))return _n;if(kN(e))return nk(Lj(e));if(rD(e))return nk(kA(e));const t=Bh(e);return void 0!==t?ik(fc(t)):U_(e)?nk(Lj(e)):_n}function Mb(e,t,n){if(n||!(6&rx(e))){let n=oa(cd(e)).nameType;if(!n){const t=Tc(e.valueDeclaration);n="default"===e.escapedName?ik("default"):t&&Rb(t)||(Vh(e)?void 0:ik(hc(e)))}if(n&&n.flags&t)return n}return _n}function Bb(e,t){return!!(e.flags&t||2097152&e.flags&&$(e.types,(e=>Bb(e,t))))}function Jb(e,t,n){const r=n&&(7&mx(e)||e.aliasSymbol)?function(e){const t=Fs(4194304);return t.type=e,t}(e):void 0;return xb(K(E(vp(e),(e=>Mb(e,t))),E(Kf(e),(e=>e!==ui&&Bb(e.keyType,t)?e.keyType===Vt&&8&t?gn:e.keyType:_n))),1,void 0,void 0,r)}function zb(e,t=0){return!!(58982400&e.flags||VC(e)||rp(e)&&(!function(e){const t=Jd(e);return function e(n){return!!(470810623&n.flags)||(16777216&n.flags?n.root.isDistributive&&n.checkType===t:137363456&n.flags?v(n.types,e):8388608&n.flags?e(n.objectType)&&e(n.indexType):33554432&n.flags?e(n.baseType)&&e(n.constraint):!!(268435456&n.flags)&&e(n.type))}(Ud(e)||t)}(e)||2===cp(e))||1048576&e.flags&&!(4&t)&&kf(e)||2097152&e.flags&&QL(e,465829888)&&$(e.types,jS))}function qb(e,t=0){return dy(e=yf(e))?_y(qb(e.baseType,t)):zb(e,t)?Lb(e,t):1048576&e.flags?Fb(E(e.types,(e=>qb(e,t)))):2097152&e.flags?xb(E(e.types,(e=>qb(e,t)))):32&mx(e)?jb(e,t):e===Dt?Dt:2&e.flags?_n:131073&e.flags?hn:Jb(e,(2&t?128:402653316)|(1&t?0:12584),0===t)}function Ub(e){const t=(zr||(zr=Ey("Extract",2,!0)||xt),zr===xt?void 0:zr);return t?ny(t,[e,Vt]):Vt}function Vb(e,t){const n=k(t,(e=>!!(1179648&e.flags)));if(n>=0)return Pb(t)?zD(t[n],(r=>Vb(e,Se(t,n,r)))):Et;if(T(t,Dt))return Dt;const r=[],i=[];let o=e[0];if(!function e(t,n){for(let a=0;a""===e))){if(v(r,(e=>!!(4&e.flags))))return Vt;if(1===r.length&&tx(r[0]))return r[0]}const a=`${Eh(r)}|${E(i,(e=>e.length)).join(",")}|${i.join("")}`;let s=_t.get(a);return s||_t.set(a,s=function(e,t){const n=ws(134217728);return n.texts=e,n.types=t,n}(i,r)),s}function Wb(e){return 128&e.flags?e.value:256&e.flags?""+e.value:2048&e.flags?fT(e.value):98816&e.flags?e.intrinsicName:void 0}function $b(e,t){return 1179648&t.flags?zD(t,(t=>$b(e,t))):128&t.flags?ik(Hb(e,t.value)):134217728&t.flags?Vb(...function(e,t,n){switch(IB.get(e.escapedName)){case 0:return[t.map((e=>e.toUpperCase())),n.map((t=>$b(e,t)))];case 1:return[t.map((e=>e.toLowerCase())),n.map((t=>$b(e,t)))];case 2:return[""===t[0]?t:[t[0].charAt(0).toUpperCase()+t[0].slice(1),...t.slice(1)],""===t[0]?[$b(e,n[0]),...n.slice(1)]:n];case 3:return[""===t[0]?t:[t[0].charAt(0).toLowerCase()+t[0].slice(1),...t.slice(1)],""===t[0]?[$b(e,n[0]),...n.slice(1)]:n]}return[t,n]}(e,t.texts,t.types)):268435456&t.flags&&e===t.symbol?t:268435461&t.flags||_x(t)?Kb(e,t):ex(t)?Kb(e,Vb(["",""],[t])):t}function Hb(e,t){switch(IB.get(e.escapedName)){case 0:return t.toUpperCase();case 1:return t.toLowerCase();case 2:return t.charAt(0).toUpperCase()+t.slice(1);case 3:return t.charAt(0).toLowerCase()+t.slice(1)}return t}function Kb(e,t){const n=`${RB(e)},${Kv(t)}`;let r=ut.get(n);return r||ut.set(n,r=function(e,t){const n=Ns(268435456,e);return n.type=t,n}(e,t)),r}function Gb(e){if(ne)return!1;if(4096&mx(e))return!0;if(1048576&e.flags)return v(e.types,Gb);if(2097152&e.flags)return $(e.types,Gb);if(465829888&e.flags){const t=nf(e);return t!==e&&Gb(t)}return!1}function Xb(e,t){return oC(e)?aC(e):t&&e_(t)?Bh(t):void 0}function Qb(e,t){if(8208&t.flags){const n=_c(e.parent,(e=>!kx(e)))||e.parent;return O_(n)?L_(n)&&zN(e)&&DN(n,e):v(t.declarations,(e=>!n_(e)||Uo(e)))}return!0}function Yb(e,t,n,r,i,o){const a=i&&212===i.kind?i:void 0,s=i&&qN(i)?void 0:Xb(n,i);if(void 0!==s){if(256&o)return VP(t,s)||wt;const e=Cf(t,s);if(e){if(64&o&&i&&e.declarations&&qo(e)&&Qb(i,e)&&Vo((null==a?void 0:a.argumentExpression)??(jD(i)?i.indexType:i),e.declarations,s),a){if(zI(e,a,qI(a.expression,t.symbol)),$L(a,e,Gg(a)))return void jo(a.argumentExpression,la.Cannot_assign_to_0_because_it_is_a_read_only_property,ic(e));if(8&o&&(aa(i).resolvedSymbol=e),kI(a,e))return Nt}const n=4&o?b_(e):S_(e);return a&&1!==Gg(a)?JF(a,n):i&&jD(i)&&lw(n)?xb([n,jt]):n}if(AD(t,UC)&&MT(s)){const e=+s;if(i&&AD(t,(e=>!(12&e.target.combinedFlags)))&&!(16&o)){const n=Zb(i);if(UC(t)){if(e<0)return jo(n,la.A_tuple_type_cannot_be_indexed_with_a_negative_value),jt;jo(n,la.Tuple_type_0_of_length_1_has_no_element_at_index_2,sc(t),ey(t),fc(s))}else jo(n,la.Property_0_does_not_exist_on_type_1,fc(s),sc(t))}if(e>=0)return c(dm(t,Wt)),HC(t,e,1&o?Mt:void 0)}}if(!(98304&n.flags)&&YL(n,402665900)){if(131073&t.flags)return t;const l=hm(t,n)||dm(t,Vt);if(l)return 2&o&&l.keyType!==Wt?void(a&&(4&o?jo(a,la.Type_0_is_generic_and_can_only_be_indexed_for_reading,sc(e)):jo(a,la.Type_0_cannot_be_used_to_index_type_1,sc(n),sc(e)))):i&&l.keyType===Vt&&!YL(n,12)?(jo(Zb(i),la.Type_0_cannot_be_used_as_an_index_type,sc(n)),1&o?xb([l.type,Mt]):l.type):(c(l),1&o&&!(t.symbol&&384&t.symbol.flags&&n.symbol&&1024&n.flags&&hs(n.symbol)===t.symbol)?xb([l.type,Mt]):l.type);if(131072&n.flags)return _n;if(Gb(t))return wt;if(a&&!ej(t)){if(aN(t)){if(ne&&384&n.flags)return uo.add(jp(a,la.Property_0_does_not_exist_on_type_1,n.value,sc(t))),jt;if(12&n.flags)return xb(ie(E(t.properties,(e=>S_(e))),jt))}if(t.symbol===Fe&&void 0!==s&&Fe.exports.has(s)&&418&Fe.exports.get(s).flags)jo(a,la.Property_0_does_not_exist_on_type_1,fc(s),sc(t));else if(ne&&!(128&o))if(void 0!==s&&FI(s,t)){const e=sc(t);jo(a,la.Property_0_does_not_exist_on_type_1_Did_you_mean_to_access_the_static_member_2_instead,s,e,e+"["+Kd(a.argumentExpression)+"]")}else if(pm(t,Wt))jo(a.argumentExpression,la.Element_implicitly_has_an_any_type_because_index_expression_is_not_of_type_number);else{let e;if(void 0!==s&&(e=LI(s,t)))void 0!==e&&jo(a.argumentExpression,la.Property_0_does_not_exist_on_type_1_Did_you_mean_2,s,sc(t),e);else{const e=function(e,t,n){const r=Xg(t)?"set":"get";if(!function(t){const r=hp(e,t);if(r){const e=aO(S_(r));return!!e&&yL(e)>=1&&gS(n,pL(e,0))}return!1}(r))return;let i=lb(t.expression);return void 0===i?i=r:i+="."+r,i}(t,a,n);if(void 0!==e)jo(a,la.Element_implicitly_has_an_any_type_because_type_0_has_no_index_signature_Did_you_mean_to_call_1,sc(t),e);else{let e;if(1024&n.flags)e=Yx(void 0,la.Property_0_does_not_exist_on_type_1,"["+sc(n)+"]",sc(t));else if(8192&n.flags){const r=Ha(n.symbol,a);e=Yx(void 0,la.Property_0_does_not_exist_on_type_1,"["+r+"]",sc(t))}else 128&n.flags||256&n.flags?e=Yx(void 0,la.Property_0_does_not_exist_on_type_1,n.value,sc(t)):12&n.flags&&(e=Yx(void 0,la.No_index_signature_with_a_parameter_of_type_0_was_found_on_type_1,sc(n),sc(t)));e=Yx(e,la.Element_implicitly_has_an_any_type_because_expression_of_type_0_can_t_be_used_to_index_type_1,sc(r),sc(t)),uo.add(Bp(hd(a),a,e))}}}return}}if(16&o&&aN(t))return jt;if(Gb(t))return wt;if(i){const e=Zb(i);if(10!==e.kind&&384&n.flags)jo(e,la.Property_0_does_not_exist_on_type_1,""+n.value,sc(t));else if(12&n.flags)jo(e,la.Type_0_has_no_matching_index_signature_for_type_1,sc(t),sc(n));else{const t=10===e.kind?"bigint":sc(n);jo(e,la.Type_0_cannot_be_used_as_an_index_type,t)}}return Wc(n)?n:void 0;function c(e){e&&e.isReadonly&&a&&(Xg(a)||ah(a))&&jo(a,la.Index_signature_in_type_0_only_permits_reading,sc(t))}}function Zb(e){return 212===e.kind?e.argumentExpression:199===e.kind?e.indexType:167===e.kind?e.expression:e}function ex(e){if(2097152&e.flags){let t=!1;for(const n of e.types)if(101248&n.flags||ex(n))t=!0;else if(!(524288&n.flags))return!1;return t}return!!(77&e.flags)||tx(e)}function tx(e){return!!(134217728&e.flags)&&v(e.types,ex)||!!(268435456&e.flags)&&ex(e.type)}function ix(e){return!!(402653184&e.flags)&&!tx(e)}function cx(e){return!!ux(e)}function lx(e){return!!(4194304&ux(e))}function _x(e){return!!(8388608&ux(e))}function ux(e){return 3145728&e.flags?(2097152&e.objectFlags||(e.objectFlags|=2097152|we(e.types,((e,t)=>e|ux(t)),0)),12582912&e.objectFlags):33554432&e.flags?(2097152&e.objectFlags||(e.objectFlags|=2097152|ux(e.baseType)|ux(e.constraint)),12582912&e.objectFlags):(58982400&e.flags||rp(e)||VC(e)?4194304:0)|(63176704&e.flags||ix(e)?8388608:0)}function dx(e,t){return 8388608&e.flags?function(e,t){const n=t?"simplifiedForWriting":"simplifiedForReading";if(e[n])return e[n]===Rn?e:e[n];e[n]=Rn;const r=dx(e.objectType,t),i=dx(e.indexType,t),o=function(e,t,n){if(1048576&t.flags){const r=E(t.types,(t=>dx(vx(e,t),n)));return n?Fb(r):xb(r)}}(r,i,t);if(o)return e[n]=o;if(!(465829888&i.flags)){const o=px(r,i,t);if(o)return e[n]=o}if(VC(r)&&296&i.flags){const o=KC(r,8&i.flags?0:r.target.fixedLength,0,t);if(o)return e[n]=o}return rp(r)&&2!==cp(r)?e[n]=zD(yx(r,e.indexType),(e=>dx(e,t))):e[n]=e}(e,t):16777216&e.flags?function(e,t){const n=e.checkType,r=e.extendsType,i=Px(e),o=Ax(e);if(131072&o.flags&&Nx(i)===Nx(n)){if(1&n.flags||gS(iS(n),iS(r)))return dx(i,t);if(hx(n,r))return _n}else if(131072&i.flags&&Nx(o)===Nx(n)){if(!(1&n.flags)&&gS(iS(n),iS(r)))return _n;if(1&n.flags||hx(n,r))return dx(o,t)}return e}(e,t):e}function px(e,t,n){if(1048576&e.flags||2097152&e.flags&&!zb(e)){const r=E(e.types,(e=>dx(vx(e,t),n)));return 2097152&e.flags||n?Fb(r):xb(r)}}function hx(e,t){return!!(131072&xb([Pd(e,t),_n]).flags)}function yx(e,t){const n=Tk([Jd(e)],[t]),r=Rk(e.mapper,n),i=tS(Hd(e.target||e),r),o=tp(e)>0||(cx(e)?np(Yd(e))>0:function(e,t){const n=qp(t);return!!n&&$(vp(e),(e=>!!(16777216&e.flags)&&gS(Mb(e,8576),n)))}(e,t));return kl(i,!0,o)}function vx(e,t,n=0,r,i,o){return Sx(e,t,n,r,i,o)||(r?Et:Ot)}function bx(e,t){return AD(e,(e=>{if(384&e.flags){const n=aC(e);if(MT(n)){const e=+n;return e>=0&&e0&&!$(e.elements,(e=>ND(e)||DD(e)||wD(e)&&!(!e.questionToken&&!e.dotDotDotToken)))}function Fx(e,t){return cx(e)||t&&UC(e)&&$(Vv(e),cx)}function Ex(e,t,n,i,o){let a,s,c=0;for(;;){if(1e3===c)return jo(r,la.Type_instantiation_is_excessively_deep_and_possibly_infinite),Et;const _=tS(Nx(e.checkType),t),d=tS(e.extendsType,t);if(_===Et||d===Et)return Et;if(_===Dt||d===Dt)return Dt;const p=ih(e.node.checkType),f=ih(e.node.extendsType),m=Dx(p)&&Dx(f)&&u(p.elements)===u(f.elements),g=Fx(_,m);let h;if(e.inferTypeParameters){const n=Ew(e.inferTypeParameters,void 0,0);t&&(n.nonFixingMapper=Rk(n.nonFixingMapper,t)),g||rN(n.inferences,_,d,1536),h=t?Rk(n.mapper,t):n.mapper}const y=h?tS(e.extendsType,h):d;if(!g&&!Fx(y,m)){if(!(3&y.flags)&&(1&_.flags||!gS(rS(_),rS(y)))){(1&_.flags||n&&!(131072&y.flags)&&ED(rS(y),(e=>gS(e,rS(_)))))&&(s||(s=[])).push(tS(dk(e.node.trueType),h||t));const r=dk(e.node.falseType);if(16777216&r.flags){const n=r.root;if(n.node.parent===e.node&&(!n.isDistributive||n.checkType===e.checkType)){e=n;continue}if(l(r,t))continue}a=tS(r,t);break}if(3&y.flags||gS(iS(_),iS(y))){const n=dk(e.node.trueType),r=h||t;if(l(n,r))continue;a=tS(n,r);break}}a=ws(16777216),a.root=e,a.checkType=tS(e.checkType,t),a.extendsType=tS(e.extendsType,t),a.mapper=t,a.combinedMapper=h,a.aliasSymbol=i||e.aliasSymbol,a.aliasTypeArguments=i?o:mk(e.aliasTypeArguments,t);break}return s?xb(ie(s,a)):a;function l(n,r){if(16777216&n.flags&&r){const a=n.root;if(a.outerTypeParameters){const s=Rk(n.mapper,r),l=E(a.outerTypeParameters,(e=>Ck(e,s))),_=Tk(a.outerTypeParameters,l),u=a.isDistributive?Ck(a.checkType,_):void 0;if(!(u&&u!==a.checkType&&1179648&u.flags))return e=a,t=_,i=void 0,o=void 0,a.aliasSymbol&&c++,!0}}return!1}}function Px(e){return e.resolvedTrueType||(e.resolvedTrueType=tS(dk(e.root.node.trueType),e.mapper))}function Ax(e){return e.resolvedFalseType||(e.resolvedFalseType=tS(dk(e.root.node.falseType),e.mapper))}function Ix(e){let t;return e.locals&&e.locals.forEach((e=>{262144&e.flags&&(t=ie(t,fu(e)))})),t}function Ox(e){return zN(e)?[e]:ie(Ox(e.left),e.right)}function Lx(e){var t;const n=aa(e);if(!n.resolvedType){if(!_f(e))return jo(e.argument,la.String_literal_expected),n.resolvedSymbol=xt,n.resolvedType=Et;const r=e.isTypeOf?111551:16777216&e.flags?900095:788968,i=Qa(e,e.argument.literal);if(!i)return n.resolvedSymbol=xt,n.resolvedType=Et;const o=!!(null==(t=i.exports)?void 0:t.get("export=")),a=ts(i,!1);if(Cd(e.qualifier))a.flags&r?n.resolvedType=Rx(e,n,a,r):(jo(e,111551===r?la.Module_0_does_not_refer_to_a_value_but_is_used_as_a_value_here:la.Module_0_does_not_refer_to_a_type_but_is_used_as_a_type_here_Did_you_mean_typeof_import_0,e.argument.literal.text),n.resolvedSymbol=xt,n.resolvedType=Et);else{const t=Ox(e.qualifier);let i,s=a;for(;i=t.shift();){const a=t.length?1920:r,c=ds(Ma(s)),l=e.isTypeOf||Fm(e)&&o?Cf(S_(c),i.escapedText,!1,!0):void 0,_=(e.isTypeOf?void 0:sa(cs(c),i.escapedText,a))??l;if(!_)return jo(i,la.Namespace_0_has_no_exported_member_1,Ha(s),Ep(i)),n.resolvedType=Et;aa(i).resolvedSymbol=_,aa(i.parent).resolvedSymbol=_,s=_}n.resolvedType=Rx(e,n,s,r)}}return n.resolvedType}function Rx(e,t,n,r){const i=Ma(n);return t.resolvedSymbol=i,111551===r?nL(S_(n),e):sy(e,i)}function Mx(e){const t=aa(e);if(!t.resolvedType){const n=Bx(e);if(!e.symbol||0===sd(e.symbol).size&&!n)t.resolvedType=Pn;else{let r=Is(16,e.symbol);r.aliasSymbol=n,r.aliasTypeArguments=Jx(n),oP(e)&&e.isArrayType&&(r=uv(r)),t.resolvedType=r}}return t.resolvedType}function Bx(e){let t=e.parent;for(;ID(t)||VE(t)||LD(t)&&148===t.operator;)t=t.parent;return Dg(t)?ps(t):void 0}function Jx(e){return e?M_(e):void 0}function zx(e){return!!(524288&e.flags)&&!rp(e)}function qx(e){return LS(e)||!!(474058748&e.flags)}function Ux(e,t){if(!(1048576&e.flags))return e;if(v(e.types,qx))return b(e.types,LS)||Nn;const n=b(e.types,(e=>!qx(e)));return n?b(e.types,(e=>e!==n&&!qx(e)))?e:function(e){const n=Hu();for(const r of vp(e))if(6&rx(r));else if($x(r)){const e=65536&r.flags&&!(32768&r.flags),i=Wo(16777220,r.escapedName,Md(r)|(t?8:0));i.links.type=e?jt:kl(S_(r),!0),i.declarations=r.declarations,i.links.nameType=oa(r).nameType,i.links.syntheticOrigin=r,n.set(r.escapedName,i)}const r=Bs(e.symbol,n,l,l,Kf(e));return r.objectFlags|=131200,r}(n):e}function Wx(e,t,n,r,i){if(1&e.flags||1&t.flags)return wt;if(2&e.flags||2&t.flags)return Ot;if(131072&e.flags)return t;if(131072&t.flags)return e;if(1048576&(e=Ux(e,i)).flags)return Pb([e,t])?zD(e,(e=>Wx(e,t,n,r,i))):Et;if(1048576&(t=Ux(t,i)).flags)return Pb([e,t])?zD(t,(t=>Wx(e,t,n,r,i))):Et;if(473960444&t.flags)return e;if(lx(e)||lx(t)){if(LS(e))return t;if(2097152&e.flags){const o=e.types,a=o[o.length-1];if(zx(a)&&zx(t))return Fb(K(o.slice(0,o.length-1),[Wx(a,t,n,r,i)]))}return Fb([e,t])}const o=Hu(),a=new Set,s=e===Nn?Kf(t):Ed([e,t]);for(const e of vp(t))6&rx(e)?a.add(e.escapedName):$x(e)&&o.set(e.escapedName,Hx(e,i));for(const t of vp(e))if(!a.has(t.escapedName)&&$x(t))if(o.has(t.escapedName)){const e=o.get(t.escapedName),n=S_(e);if(16777216&e.flags){const r=K(t.declarations,e.declarations),i=Wo(4|16777216&t.flags,t.escapedName),a=S_(t),s=_w(a),c=_w(n);i.links.type=s===c?a:xb([a,c],2),i.links.leftSpread=t,i.links.rightSpread=e,i.declarations=r,i.links.nameType=oa(t).nameType,o.set(t.escapedName,i)}}else o.set(t.escapedName,Hx(t,i));const c=Bs(n,o,l,l,A(s,(e=>function(e,t){return e.isReadonly!==t?uh(e.keyType,e.type,t,e.declaration):e}(e,i))));return c.objectFlags|=2228352|r,c}function $x(e){var t;return!($(e.declarations,Hl)||106496&e.flags&&(null==(t=e.declarations)?void 0:t.some((e=>__(e.parent)))))}function Hx(e,t){const n=65536&e.flags&&!(32768&e.flags);if(!n&&t===WL(e))return e;const r=Wo(4|16777216&e.flags,e.escapedName,Md(e)|(t?8:0));return r.links.type=n?jt:S_(e),r.declarations=e.declarations,r.links.nameType=oa(e).nameType,r.links.syntheticOrigin=e,r}function Qx(e,t,n,r){const i=Ns(e,n);return i.value=t,i.regularType=r||i,i}function ek(e){if(2976&e.flags){if(!e.freshType){const t=Qx(e.flags,e.value,e.symbol,e);t.freshType=t,e.freshType=t}return e.freshType}return e}function nk(e){return 2976&e.flags?e.regularType:1048576&e.flags?e.regularType||(e.regularType=zD(e,nk)):e}function rk(e){return!!(2976&e.flags)&&e.freshType===e}function ik(e){let t;return ot.get(e)||(ot.set(e,t=Qx(128,e)),t)}function ok(e){let t;return at.get(e)||(at.set(e,t=Qx(256,e)),t)}function ak(e){let t;const n=fT(e);return st.get(n)||(st.set(n,t=Qx(2048,e)),t)}function sk(e,t,n){let r;const i=`${t}${"string"==typeof e?"@":"#"}${e}`,o=1024|("string"==typeof e?128:256);return ct.get(i)||(ct.set(i,r=Qx(o,e,n)),r)}function ck(e){if(Fm(e)&&VE(e)){const t=Ug(e);t&&(e=Pg(t)||t)}if(Of(e)){const t=If(e)?gs(e.left):gs(e);if(t){const e=oa(t);return e.uniqueESSymbolType||(e.uniqueESSymbolType=function(e){const t=Ns(8192,e);return t.escapedName=`__@${t.symbol.escapedName}@${RB(t.symbol)}`,t}(t))}}return cn}function lk(e){const t=aa(e);return t.resolvedType||(t.resolvedType=function(e){const t=Zf(e,!1,!1),n=t&&t.parent;if(n&&(__(n)||264===n.kind)&&!Nv(t)&&(!dD(t)||sh(e,t.body)))return nu(ps(n)).thisType;if(n&&$D(n)&&cF(n.parent)&&6===eg(n.parent))return nu(gs(n.parent.left).parent).thisType;const r=16777216&e.flags?zg(e):void 0;return r&&eF(r)&&cF(r.parent)&&3===eg(r.parent)?nu(gs(r.parent.left).parent).thisType:qO(t)&&sh(e,t.body)?nu(ps(t)).thisType:(jo(e,la.A_this_type_is_available_only_in_a_non_static_member_of_a_class_or_interface),Et)}(e)),t.resolvedType}function _k(e){return dk(uk(e.type)||e.type)}function uk(e){switch(e.kind){case 196:return uk(e.type);case 189:if(1===e.elements.length&&(191===(e=e.elements[0]).kind||202===e.kind&&e.dotDotDotToken))return uk(e.type);break;case 188:return e.elementType}}function dk(e){return function(e,t){let n,r=!0;for(;t&&!du(t)&&320!==t.kind;){const i=t.parent;if(169===i.kind&&(r=!r),(r||8650752&e.flags)&&194===i.kind&&t===i.trueType){const t=hy(e,i.checkType,i.extendsType);t&&(n=ie(n,t))}else if(262144&e.flags&&200===i.kind&&!i.nameType&&t===i.type){const t=dk(i);if(Jd(t)===Nx(e)){const e=Xk(t);if(e){const t=xp(e);t&&AD(t,kC)&&(n=ie(n,xb([Wt,bn])))}}}t=i}return n?py(e,Fb(n)):e}(pk(e),e)}function pk(e){switch(e.kind){case 133:case 312:case 313:return wt;case 159:return Ot;case 154:return Vt;case 150:return Wt;case 163:return $t;case 136:return sn;case 155:return cn;case 116:return ln;case 157:return jt;case 106:return zt;case 146:return _n;case 151:return 524288&e.flags&&!ne?wt:mn;case 141:return It;case 197:case 110:return lk(e);case 201:return function(e){if(106===e.literal.kind)return zt;const t=aa(e);return t.resolvedType||(t.resolvedType=nk(Lj(e.literal))),t.resolvedType}(e);case 183:case 233:return ky(e);case 182:return e.assertsModifier?ln:sn;case 186:return Ty(e);case 188:case 189:return function(e){const t=aa(e);if(!t.resolvedType){const n=function(e){const t=function(e){return LD(e)&&148===e.operator}(e.parent);return uk(e)?t?er:Zn:jv(E(e.elements,dv),t,E(e.elements,yv))}(e);if(n===On)t.resolvedType=Nn;else if(189===e.kind&&$(e.elements,(e=>!!(8&dv(e))))||!vv(e)){const r=188===e.kind?[dk(e.elementType)]:E(e.elements,dk);t.resolvedType=Rv(n,r)}else t.resolvedType=189===e.kind&&0===e.elements.length?n:$h(n,e,void 0)}return t.resolvedType}(e);case 190:return function(e){return kl(dk(e.type),!0)}(e);case 192:return function(e){const t=aa(e);if(!t.resolvedType){const n=Bx(e);t.resolvedType=xb(E(e.types,dk),1,n,Jx(n))}return t.resolvedType}(e);case 193:return function(e){const t=aa(e);if(!t.resolvedType){const n=Bx(e),r=E(e.types,dk),i=2===r.length?r.indexOf(Pn):-1,o=i>=0?r[1-i]:Ot,a=!!(76&o.flags||134217728&o.flags&&tx(o));t.resolvedType=Fb(r,a?1:0,n,Jx(n))}return t.resolvedType}(e);case 314:return function(e){const t=dk(e.type);return H?ew(t,65536):t}(e);case 316:return kl(dk(e.type));case 202:return function(e){const t=aa(e);return t.resolvedType||(t.resolvedType=e.dotDotDotToken?_k(e):kl(dk(e.type),!0,!!e.questionToken))}(e);case 196:case 315:case 309:return dk(e.type);case 191:return _k(e);case 318:return function(e){const t=dk(e.type),{parent:n}=e,r=e.parent.parent;if(VE(e.parent)&&bP(r)){const e=zg(r),n=_P(r.parent.parent);if(e||n){const i=ye(n?r.parent.parent.typeExpression.parameters:e.parameters),o=Mg(r);if(!i||o&&i.symbol===o&&Mu(i))return uv(t)}}return oD(n)&&tP(n.parent)?uv(t):kl(t)}(e);case 184:case 185:case 187:case 322:case 317:case 323:return Mx(e);case 198:return function(e){const t=aa(e);if(!t.resolvedType)switch(e.operator){case 143:t.resolvedType=qb(dk(e.type));break;case 158:t.resolvedType=155===e.type.kind?ck(th(e.parent)):Et;break;case 148:t.resolvedType=dk(e.type);break;default:un.assertNever(e.operator)}return t.resolvedType}(e);case 199:return Tx(e);case 200:return wx(e);case 194:return function(e){const t=aa(e);if(!t.resolvedType){const n=dk(e.checkType),r=Bx(e),i=Jx(r),o=E_(e,!0),a=i?o:N(o,(t=>Gk(t,e))),s={node:e,checkType:n,extendsType:dk(e.extendsType),isDistributive:!!(262144&n.flags),inferTypeParameters:Ix(e),outerTypeParameters:a,instantiations:void 0,aliasSymbol:r,aliasTypeArguments:i};t.resolvedType=Ex(s,void 0,!1),a&&(s.instantiations=new Map,s.instantiations.set(Eh(a),t.resolvedType))}return t.resolvedType}(e);case 195:return function(e){const t=aa(e);return t.resolvedType||(t.resolvedType=pu(ps(e.typeParameter))),t.resolvedType}(e);case 203:return function(e){const t=aa(e);return t.resolvedType||(t.resolvedType=Vb([e.head.text,...E(e.templateSpans,(e=>e.literal.text))],E(e.templateSpans,(e=>dk(e.type))))),t.resolvedType}(e);case 205:return Lx(e);case 80:case 166:case 211:const t=YB(e);return t?fu(t):Et;default:return Et}}function fk(e,t,n){if(e&&e.length)for(let r=0;rsh(e,a)))||$(t.typeArguments,n)}return!0;case 174:case 173:return!t.type&&!!t.body||$(t.typeParameters,n)||$(t.parameters,n)||!!t.type&&n(t.type)}return!!PI(t,n)}}function Xk(e){const t=qd(e);if(4194304&t.flags){const e=Nx(t.type);if(262144&e.flags)return e}}function Qk(e,t){return!!(1&t)||!(2&t)&&e}function Yk(e,t,n,r){const i=zk(r,Jd(e),t),o=tS(Hd(e.target||e),i),a=ep(e);return H&&4&a&&!QL(o,49152)?tw(o,!0):H&&8&a&&n?ON(o,524288):o}function Zk(e,t,n,r){un.assert(e.symbol,"anonymous type must have symbol to be instantiated");const i=Is(-1572865&e.objectFlags|64,e.symbol);if(32&e.objectFlags){i.declaration=e.declaration;const n=Jd(e),r=qk(n);i.typeParameter=r,t=Rk(Fk(n,r),t),r.mapper=t}return 8388608&e.objectFlags&&(i.node=e.node),134217728&e.objectFlags&&(i.outerTypeParameters=e.outerTypeParameters),i.target=e,i.mapper=t,i.aliasSymbol=n||e.aliasSymbol,i.aliasTypeArguments=n?r:mk(e.aliasTypeArguments,t),i.objectFlags|=i.aliasTypeArguments?Ah(i.aliasTypeArguments):0,i}function eS(e,t,n,r,i){const o=e.root;if(o.outerTypeParameters){const e=E(o.outerTypeParameters,(e=>Ck(e,t))),a=(n?"C":"")+Eh(e)+Ph(r,i);let s=o.instantiations.get(a);if(!s){const t=Tk(o.outerTypeParameters,e),c=o.checkType,l=o.isDistributive?yf(Ck(c,t)):void 0;s=l&&c!==l&&1179648&l.flags?YD(l,(e=>Ex(o,Bk(c,e,t),n)),r,i):Ex(o,t,n,r,i),o.instantiations.set(a,s)}return s}return e}function tS(e,t){return e&&t?nS(e,t,void 0,void 0):e}function nS(e,t,n,i){var o;if(!Jw(e))return e;if(100===y||h>=5e6)return null==(o=Hn)||o.instant(Hn.Phase.CheckTypes,"instantiateType_DepthLimit",{typeId:e.id,instantiationDepth:y,instantiationCount:h}),jo(r,la.Type_instantiation_is_excessively_deep_and_possibly_infinite),Et;g++,h++,y++;const a=function(e,t,n,r){const i=e.flags;if(262144&i)return Ck(e,t);if(524288&i){const i=e.objectFlags;if(52&i){if(4&i&&!e.node){const n=e.resolvedTypeArguments,r=mk(n,t);return r!==n?Rv(e.target,r):e}return 1024&i?function(e,t){const n=tS(e.mappedType,t);if(!(32&mx(n)))return e;const r=tS(e.constraintType,t);if(!(4194304&r.flags))return e;const i=Uw(tS(e.source,t),n,r);return i||e}(e,t):function(e,t,n,r){const i=4&e.objectFlags||8388608&e.objectFlags?e.node:e.symbol.declarations[0],o=aa(i),a=4&e.objectFlags?o.resolvedType:64&e.objectFlags?e.target:e;let s=134217728&e.objectFlags?e.outerTypeParameters:o.outerTypeParameters;if(!s){let t=E_(i,!0);qO(i)&&(t=se(t,Pm(i))),s=t||l;const n=8388612&e.objectFlags?[i]:e.symbol.declarations;s=(8388612&a.objectFlags||8192&a.symbol.flags||2048&a.symbol.flags)&&!a.aliasTypeArguments?N(s,(e=>$(n,(t=>Gk(e,t))))):s,o.outerTypeParameters=s}if(s.length){const i=Rk(e.mapper,t),o=E(s,(e=>Ck(e,i))),c=n||e.aliasSymbol,l=n?r:mk(e.aliasTypeArguments,t),_=(134217728&e.objectFlags?"S":"")+Eh(o)+Ph(c,l);a.instantiations||(a.instantiations=new Map,a.instantiations.set(Eh(s)+Ph(a.aliasSymbol,a.aliasTypeArguments),a));let u=a.instantiations.get(_);if(!u){if(134217728&e.objectFlags)return u=Zk(e,t),a.instantiations.set(_,u),u;const n=Tk(s,o);u=4&a.objectFlags?$h(e.target,e.node,n,c,l):32&a.objectFlags?function(e,t,n,r){const i=Xk(e);if(i){const o=tS(i,t);if(i!==o)return YD(yf(o),(function n(r){if(61603843&r.flags&&r!==Dt&&!$c(r)){if(!e.declaration.nameType){let o;if(yC(r)||1&r.flags&&Bc(i,4)<0&&(o=xp(i))&&AD(o,kC))return function(e,t,n){const r=Yk(t,Wt,!0,n);return $c(r)?Et:uv(r,Qk(vC(e),ep(t)))}(r,e,Bk(i,r,t));if(UC(r))return function(e,t,n,r){const i=e.target.elementFlags,o=e.target.fixedLength,a=o?Bk(n,e,r):r,s=E(Vv(e),((e,s)=>{const c=i[s];return s1&e?2:e)):8&c?E(i,(e=>2&e?1:e)):i,_=Qk(e.target.readonly,ep(t));return T(s,Et)?Et:kv(s,l,_,e.target.labeledElementDeclarations)}(r,e,i,t);if(uf(r))return Fb(E(r.types,n))}return Zk(e,Bk(i,r,t))}return r}),n,r)}return tS(qd(e),t)===Dt?Dt:Zk(e,t,n,r)}(a,n,c,l):Zk(a,n,c,l),a.instantiations.set(_,u);const r=mx(u);if(3899393&u.flags&&!(524288&r)){const e=$(o,Jw);524288&mx(u)||(u.objectFlags|=52&r?524288|(e?1048576:0):e?0:524288)}}return u}return e}(e,t,n,r)}return e}if(3145728&i){const o=1048576&e.flags?e.origin:void 0,a=o&&3145728&o.flags?o.types:e.types,s=mk(a,t);if(s===a&&n===e.aliasSymbol)return e;const c=n||e.aliasSymbol,l=n?r:mk(e.aliasTypeArguments,t);return 2097152&i||o&&2097152&o.flags?Fb(s,0,c,l):xb(s,1,c,l)}if(4194304&i)return qb(tS(e.type,t));if(134217728&i)return Vb(e.texts,mk(e.types,t));if(268435456&i)return $b(e.symbol,tS(e.type,t));if(8388608&i){const i=n||e.aliasSymbol,o=n?r:mk(e.aliasTypeArguments,t);return vx(tS(e.objectType,t),tS(e.indexType,t),e.accessFlags,void 0,i,o)}if(16777216&i)return eS(e,Rk(e.mapper,t),!1,n,r);if(33554432&i){const n=tS(e.baseType,t);if(dy(e))return _y(n);const r=tS(e.constraint,t);return 8650752&n.flags&&cx(r)?py(n,r):3&r.flags||gS(iS(n),iS(r))?n:8650752&n.flags?py(n,r):Fb([r,n])}return e}(e,t,n,i);return y--,a}function rS(e){return 402915327&e.flags?e:e.permissiveInstantiation||(e.permissiveInstantiation=tS(e,kn))}function iS(e){return 402915327&e.flags?e:(e.restrictiveInstantiation||(e.restrictiveInstantiation=tS(e,xn),e.restrictiveInstantiation.restrictiveInstantiation=e.restrictiveInstantiation),e.restrictiveInstantiation)}function oS(e,t){return uh(e.keyType,tS(e.type,t),e.isReadonly,e.declaration)}function aS(e){switch(un.assert(174!==e.kind||Mf(e)),e.kind){case 218:case 219:case 174:case 262:return sS(e);case 210:return $(e.properties,aS);case 209:return $(e.elements,aS);case 227:return aS(e.whenTrue)||aS(e.whenFalse);case 226:return(57===e.operatorToken.kind||61===e.operatorToken.kind)&&(aS(e.left)||aS(e.right));case 303:return aS(e.initializer);case 217:return aS(e.expression);case 292:return $(e.properties,aS)||TE(e.parent)&&$(e.parent.parent.children,aS);case 291:{const{initializer:t}=e;return!!t&&aS(t)}case 294:{const{expression:t}=e;return!!t&&aS(t)}}return!1}function sS(e){return IT(e)||function(e){return!(e.typeParameters||mv(e)||!e.body)&&(241!==e.body.kind?aS(e.body):!!wf(e.body,(e=>!!e.expression&&aS(e.expression))))}(e)}function cS(e){return(jT(e)||Mf(e))&&sS(e)}function lS(e){if(524288&e.flags){const t=pp(e);if(t.constructSignatures.length||t.callSignatures.length){const n=Is(16,e.symbol);return n.members=t.members,n.properties=t.properties,n.callSignatures=l,n.constructSignatures=l,n.indexInfos=l,n}}else if(2097152&e.flags)return Fb(E(e.types,lS));return e}function _S(e,t){return zS(e,t,bo)}function uS(e,t){return zS(e,t,bo)?-1:0}function dS(e,t){return zS(e,t,ho)?-1:0}function pS(e,t){return zS(e,t,mo)?-1:0}function fS(e,t){return zS(e,t,mo)}function mS(e,t){return zS(e,t,go)}function gS(e,t){return zS(e,t,ho)}function hS(e,t){return 1048576&e.flags?v(e.types,(e=>hS(e,t))):1048576&t.flags?$(t.types,(t=>hS(e,t))):2097152&e.flags?$(e.types,(e=>hS(e,t))):58982400&e.flags?hS(qp(e)||Ot,t):jS(t)?!!(67633152&e.flags):t===Gn?!!(67633152&e.flags)&&!jS(e):t===Xn?!!(524288&e.flags)&&EN(e):D_(e,N_(t))||yC(t)&&!vC(t)&&hS(e,er)}function yS(e,t){return zS(e,t,yo)}function vS(e,t){return yS(e,t)||yS(t,e)}function bS(e,t,n,r,i,o){return HS(e,t,ho,n,r,i,o)}function xS(e,t,n,r,i,o){return kS(e,t,ho,n,r,i,o,void 0)}function kS(e,t,n,r,i,o,a,s){return!!zS(e,t,n)||(!r||!TS(i,e,t,n,o,a,s))&&HS(e,t,n,r,o,a,s)}function SS(e){return!!(16777216&e.flags||2097152&e.flags&&$(e.types,SS))}function TS(e,t,n,r,i,o,a){if(!e||SS(n))return!1;if(!HS(t,n,r,void 0)&&function(e,t,n,r,i,o,a){const s=Rf(t,0),c=Rf(t,1);for(const l of[c,s])if($(l,(e=>{const t=Tg(e);return!(131073&t.flags)&&HS(t,n,r,void 0)}))){const r=a||{};return bS(t,n,e,i,o,r),iT(r.errors[r.errors.length-1],jp(e,l===c?la.Did_you_mean_to_use_new_with_this_expression:la.Did_you_mean_to_call_this_expression)),!0}return!1}(e,t,n,r,i,o,a))return!0;switch(e.kind){case 234:if(!mC(e))break;case 294:case 217:return TS(e.expression,t,n,r,i,o,a);case 226:switch(e.operatorToken.kind){case 64:case 28:return TS(e.right,t,n,r,i,o,a)}break;case 210:return function(e,t,n,r,i,o){return!(402915324&n.flags)&&NS(function*(e){if(u(e.properties))for(const t of e.properties){if(JE(t))continue;const e=Mb(ps(t),8576);if(e&&!(131072&e.flags))switch(t.kind){case 178:case 177:case 174:case 304:yield{errorNode:t.name,innerExpression:void 0,nameType:e};break;case 303:yield{errorNode:t.name,innerExpression:t.initializer,nameType:e,errorMessage:Ap(t.name)?la.Type_of_computed_property_s_value_is_0_which_is_not_assignable_to_type_1:void 0};break;default:un.assertNever(t)}}}(e),t,n,r,i,o)}(e,t,n,r,o,a);case 209:return function(e,t,n,r,i,o){if(402915324&n.flags)return!1;if(EC(t))return NS(FS(e,n),t,n,r,i,o);uA(e,n,!1);const a=xA(e,1,!0);return dA(),!!EC(a)&&NS(FS(e,n),a,n,r,i,o)}(e,t,n,r,o,a);case 292:return function(e,t,n,r,i,o){let a,s=NS(function*(e){if(u(e.properties))for(const t of e.properties)PE(t)||EA(eC(t.name))||(yield{errorNode:t.name,innerExpression:t.initializer,nameType:ik(eC(t.name))})}(e),t,n,r,i,o);if(TE(e.parent)&&kE(e.parent.parent)){const a=e.parent.parent,l=zA(BA(e)),_=void 0===l?"children":fc(l),d=ik(_),p=vx(n,d),f=cy(a.children);if(!u(f))return s;const m=u(f)>1;let g,h;if(Ky(!1)!==On){const e=ov(wt);g=OD(p,(t=>gS(t,e))),h=OD(p,(t=>!gS(t,e)))}else g=OD(p,PC),h=OD(p,(e=>!PC(e)));if(m){if(g!==_n){const e=kv(OA(a,0)),t=function*(e,t){if(!u(e.children))return;let n=0;for(let r=0;r!PC(e))),c=s!==_n?oM(13,0,s,void 0):void 0;let l=!1;for(let n=e.next();!n.done;n=e.next()){const{errorNode:e,innerExpression:s,nameType:_,errorMessage:u}=n.value;let d=c;const p=a!==_n?CS(t,a,_):void 0;if(!p||8388608&p.flags||(d=c?xb([c,p]):p),!d)continue;let f=Sx(t,_);if(!f)continue;const m=Xb(_,void 0);if(!HS(f,d,r,void 0)&&(l=!0,!s||!TS(s,f,d,r,void 0,i,o))){const n=o||{},c=s?wS(s,f):f;if(_e&&QS(c,d)){const t=jp(e,la.Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_type_of_the_target,sc(c),sc(d));uo.add(t),n.errors=[t]}else{const o=!!(m&&16777216&(Cf(a,m)||xt).flags),s=!!(m&&16777216&(Cf(t,m)||xt).flags);d=cw(d,o),f=cw(f,o&&s),HS(c,d,r,e,u,i,n)&&c!==f&&HS(f,d,r,e,u,i,n)}}}return l}(t,e,g,r,i,o)||s}else if(!zS(vx(t,d),p,r)){s=!0;const e=jo(a.openingElement.tagName,la.This_JSX_tag_s_0_prop_expects_a_single_child_of_type_1_but_multiple_children_were_provided,_,sc(p));o&&o.skipLogging&&(o.errors||(o.errors=[])).push(e)}}else if(h!==_n){const e=DS(f[0],d,c);e&&(s=NS(function*(){yield e}(),t,n,r,i,o)||s)}else if(!zS(vx(t,d),p,r)){s=!0;const e=jo(a.openingElement.tagName,la.This_JSX_tag_s_0_prop_expects_type_1_which_requires_multiple_children_but_only_a_single_child_was_provided,_,sc(p));o&&o.skipLogging&&(o.errors||(o.errors=[])).push(e)}}return s;function c(){if(!a){const t=Kd(e.parent.tagName),r=zA(BA(e)),i=void 0===r?"children":fc(r),o=vx(n,ik(i)),s=la._0_components_don_t_accept_text_as_child_elements_Text_in_JSX_has_the_type_string_but_the_expected_type_of_1_is_2;a={...s,key:"!!ALREADY FORMATTED!!",message:Gx(s,t,i,sc(o))}}return a}}(e,t,n,r,o,a);case 219:return function(e,t,n,r,i,o){if(CF(e.body))return!1;if($(e.parameters,Du))return!1;const a=aO(t);if(!a)return!1;const s=Rf(n,0);if(!u(s))return!1;const c=e.body,l=Tg(a),_=xb(E(s,Tg));if(!HS(l,_,r,void 0)){const t=c&&TS(c,l,_,r,void 0,i,o);if(t)return t;const a=o||{};if(HS(l,_,r,c,void 0,i,a),a.errors)return n.symbol&&u(n.symbol.declarations)&&iT(a.errors[a.errors.length-1],jp(n.symbol.declarations[0],la.The_expected_type_comes_from_the_return_type_of_this_signature)),2&Ih(e)||Uc(l,"then")||!HS(PL(l),_,r,void 0)||iT(a.errors[a.errors.length-1],jp(e,la.Did_you_mean_to_mark_this_function_as_async)),!0}return!1}(e,t,n,r,o,a)}return!1}function CS(e,t,n){const r=Sx(t,n);if(r)return r;if(1048576&t.flags){const r=YS(e,t);if(r)return Sx(r,n)}}function wS(e,t){uA(e,t,!1);const n=kj(e,1);return dA(),n}function NS(e,t,n,r,i,o){let a=!1;for(const s of e){const{errorNode:e,innerExpression:c,nameType:l,errorMessage:_}=s;let d=CS(t,n,l);if(!d||8388608&d.flags)continue;let p=Sx(t,l);if(!p)continue;const f=Xb(l,void 0);if(!HS(p,d,r,void 0)&&(a=!0,!c||!TS(c,p,d,r,void 0,i,o))){const a=o||{},s=c?wS(c,p):p;if(_e&&QS(s,d)){const t=jp(e,la.Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_type_of_the_target,sc(s),sc(d));uo.add(t),a.errors=[t]}else{const o=!!(f&&16777216&(Cf(n,f)||xt).flags),c=!!(f&&16777216&(Cf(t,f)||xt).flags);d=cw(d,o),p=cw(p,o&&c),HS(s,d,r,e,_,i,a)&&s!==p&&HS(p,d,r,e,_,i,a)}if(a.errors){const e=a.errors[a.errors.length-1],t=oC(l)?aC(l):void 0,r=void 0!==t?Cf(n,t):void 0;let i=!1;if(!r){const t=hm(n,l);t&&t.declaration&&!hd(t.declaration).hasNoDefaultLib&&(i=!0,iT(e,jp(t.declaration,la.The_expected_type_comes_from_this_index_signature)))}if(!i&&(r&&u(r.declarations)||n.symbol&&u(n.symbol.declarations))){const i=r&&u(r.declarations)?r.declarations[0]:n.symbol.declarations[0];hd(i).hasNoDefaultLib||iT(e,jp(i,la.The_expected_type_comes_from_property_0_which_is_declared_here_on_type_1,!t||8192&l.flags?sc(l):fc(t),sc(n)))}}}}return a}function DS(e,t,n){switch(e.kind){case 294:return{errorNode:e,innerExpression:e.expression,nameType:t};case 12:if(e.containsOnlyTriviaWhiteSpaces)break;return{errorNode:e,innerExpression:void 0,nameType:t,errorMessage:n()};case 284:case 285:case 288:return{errorNode:e,innerExpression:e,nameType:t};default:return un.assertNever(e,"Found invalid jsx child")}}function*FS(e,t){const n=u(e.elements);if(n)for(let r=0;rc:yL(e)>c))return!r||8&n||i(la.Target_signature_provides_too_few_arguments_Expected_0_or_more_but_got_1,yL(e),c),0;var l;e.typeParameters&&e.typeParameters!==t.typeParameters&&(e=lO(e,t=(l=t).typeParameters?l.canonicalSignatureCache||(l.canonicalSignatureCache=function(e){return Lg(e,E(e.typeParameters,(e=>e.target&&!xp(e.target)?e.target:e)),Fm(e.declaration))}(l)):l,void 0,a));const _=hL(e),u=xL(e),d=xL(t);(u||d)&&tS(u||d,s);const p=t.declaration?t.declaration.kind:0,f=!(3&n)&&G&&174!==p&&173!==p&&176!==p;let m=-1;const g=yg(e);if(g&&g!==ln){const e=yg(t);if(e){const t=!f&&a(g,e,!1)||a(e,g,r);if(!t)return r&&i(la.The_this_types_of_each_signature_are_incompatible),0;m&=t}}const h=u||d?Math.min(_,c):Math.max(_,c),y=u||d?h-1:-1;for(let c=0;c=yL(e)&&c=3&&32768&t[0].flags&&65536&t[1].flags&&$(t,jS)?67108864:0)}return!!(67108864&e.objectFlags)}return!1}(t))return!0}return!1}function zS(e,t,n){if(rk(e)&&(e=e.regularType),rk(t)&&(t=t.regularType),e===t)return!0;if(n!==bo){if(n===yo&&!(131072&t.flags)&&JS(t,e,n)||JS(e,t,n))return!0}else if(!(61865984&(e.flags|t.flags))){if(e.flags!==t.flags)return!1;if(67358815&e.flags)return!0}if(524288&e.flags&&524288&t.flags){const r=n.get(NT(e,t,0,n,!1));if(void 0!==r)return!!(1&r)}return!!(469499904&e.flags||469499904&t.flags)&&HS(e,t,n,void 0)}function qS(e,t){return 2048&mx(e)&&EA(t.escapedName)}function VS(e,t){for(;;){const n=rk(e)?e.regularType:VC(e)?$S(e,t):4&mx(e)?e.node?jh(e.target,Kh(e)):NC(e)||e:3145728&e.flags?WS(e,t):33554432&e.flags?t?e.baseType:my(e):25165824&e.flags?dx(e,t):e;if(n===e)return n;e=n}}function WS(e,t){const n=yf(e);if(n!==e)return n;if(2097152&e.flags&&function(e){let t=!1,n=!1;for(const r of e.types)if(t||(t=!!(465829888&r.flags)),n||(n=!!(98304&r.flags)||jS(r)),t&&n)return!0;return!1}(e)){const n=A(e.types,(e=>VS(e,t)));if(n!==e.types)return Fb(n)}return e}function $S(e,t){const n=Vv(e),r=A(n,(e=>25165824&e.flags?dx(e,t):e));return n!==r?Bv(e.target,r):e}function HS(e,t,n,i,o,a,s){var c;let _,d,p,f,m,g,h,y,v=0,b=0,x=0,S=0,C=!1,w=0,N=0,D=16e6-n.size>>3;un.assert(n!==bo||!i,"no error reporting in identity checking");const F=U(e,t,3,!!i,o);if(y&&L(),C){const o=NT(e,t,0,n,!1);n.set(o,2|(D<=0?32:64)),null==(c=Hn)||c.instant(Hn.Phase.CheckTypes,"checkTypeRelatedTo_DepthLimit",{sourceId:e.id,targetId:t.id,depth:b,targetDepth:x});const a=D<=0?la.Excessive_complexity_comparing_types_0_and_1:la.Excessive_stack_depth_comparing_types_0_and_1,l=jo(i||r,a,sc(e),sc(t));s&&(s.errors||(s.errors=[])).push(l)}else if(_){if(a){const e=a();e&&(Zx(e,_),_=e)}let r;if(o&&i&&!F&&e.symbol){const i=oa(e.symbol);i.originatingImport&&!cf(i.originatingImport)&&HS(S_(i.target),t,n,void 0)&&(r=ie(r,jp(i.originatingImport,la.Type_originates_at_this_import_A_namespace_style_import_cannot_be_called_or_constructed_and_will_cause_a_failure_at_runtime_Consider_using_a_default_import_or_import_require_here_instead)))}const c=Bp(hd(i),i,_,r);d&&iT(c,...d),s&&(s.errors||(s.errors=[])).push(c),s&&s.skipLogging||uo.add(c)}return i&&s&&s.skipLogging&&0===F&&un.assert(!!s.errors,"missed opportunity to interact with error."),0!==F;function P(e){_=e.errorInfo,h=e.lastSkippedInfo,y=e.incompatibleStack,w=e.overrideNextErrorInfo,N=e.skipParentCounter,d=e.relatedInfo}function I(){return{errorInfo:_,lastSkippedInfo:h,incompatibleStack:null==y?void 0:y.slice(),overrideNextErrorInfo:w,skipParentCounter:N,relatedInfo:null==d?void 0:d.slice()}}function O(e,...t){w++,h=void 0,(y||(y=[])).push([e,...t])}function L(){const e=y||[];y=void 0;const t=h;if(h=void 0,1===e.length)return R(...e[0]),void(t&&J(void 0,...t));let n="";const r=[];for(;e.length;){const[t,...i]=e.pop();switch(t.code){case la.Types_of_property_0_are_incompatible.code:{0===n.indexOf("new ")&&(n=`(${n})`);const e=""+i[0];n=0===n.length?`${e}`:fs(e,hk(j))?`${n}.${e}`:"["===e[0]&&"]"===e[e.length-1]?`${n}${e}`:`${n}[${e}]`;break}case la.Call_signature_return_types_0_and_1_are_incompatible.code:case la.Construct_signature_return_types_0_and_1_are_incompatible.code:case la.Call_signatures_with_no_arguments_have_incompatible_return_types_0_and_1.code:case la.Construct_signatures_with_no_arguments_have_incompatible_return_types_0_and_1.code:if(0===n.length){let e=t;t.code===la.Call_signatures_with_no_arguments_have_incompatible_return_types_0_and_1.code?e=la.Call_signature_return_types_0_and_1_are_incompatible:t.code===la.Construct_signatures_with_no_arguments_have_incompatible_return_types_0_and_1.code&&(e=la.Construct_signature_return_types_0_and_1_are_incompatible),r.unshift([e,i[0],i[1]])}else n=`${t.code===la.Construct_signature_return_types_0_and_1_are_incompatible.code||t.code===la.Construct_signatures_with_no_arguments_have_incompatible_return_types_0_and_1.code?"new ":""}${n}(${t.code===la.Call_signatures_with_no_arguments_have_incompatible_return_types_0_and_1.code||t.code===la.Construct_signatures_with_no_arguments_have_incompatible_return_types_0_and_1.code?"":"..."})`;break;case la.Type_at_position_0_in_source_is_not_compatible_with_type_at_position_1_in_target.code:r.unshift([la.Type_at_position_0_in_source_is_not_compatible_with_type_at_position_1_in_target,i[0],i[1]]);break;case la.Type_at_positions_0_through_1_in_source_is_not_compatible_with_type_at_position_2_in_target.code:r.unshift([la.Type_at_positions_0_through_1_in_source_is_not_compatible_with_type_at_position_2_in_target,i[0],i[1],i[2]]);break;default:return un.fail(`Unhandled Diagnostic: ${t.code}`)}}n?R(")"===n[n.length-1]?la.The_types_returned_by_0_are_incompatible_between_these_types:la.The_types_of_0_are_incompatible_between_these_types,n):r.shift();for(const[e,...t]of r){const n=e.elidedInCompatabilityPyramid;e.elidedInCompatabilityPyramid=!1,R(e,...t),e.elidedInCompatabilityPyramid=n}t&&J(void 0,...t)}function R(e,...t){un.assert(!!i),y&&L(),e.elidedInCompatabilityPyramid||(0===N?_=Yx(_,e,...t):N--)}function M(e,...t){R(e,...t),N++}function B(e){un.assert(!!_),d?d.push(e):d=[e]}function J(e,t,r){y&&L();const[i,o]=cc(t,r);let a=t,s=i;if(131072&r.flags||!jC(t)||KS(r)||(a=RC(t),un.assert(!gS(a,r),"generalized source shouldn't be assignable"),s=uc(a)),262144&(8388608&r.flags&&!(8388608&t.flags)?r.objectType.flags:r.flags)&&r!==qn&&r!==Un){const e=qp(r);let n;e&&(gS(a,e)||(n=gS(t,e)))?R(la._0_is_assignable_to_the_constraint_of_type_1_but_1_could_be_instantiated_with_a_different_subtype_of_constraint_2,n?i:s,o,sc(e)):(_=void 0,R(la._0_could_be_instantiated_with_an_arbitrary_type_which_could_be_unrelated_to_1,o,s))}if(e)e===la.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1&&_e&&GS(t,r).length&&(e=la.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_types_of_the_target_s_properties);else if(n===yo)e=la.Type_0_is_not_comparable_to_type_1;else if(i===o)e=la.Type_0_is_not_assignable_to_type_1_Two_different_types_with_this_name_exist_but_they_are_unrelated;else if(_e&&GS(t,r).length)e=la.Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_types_of_the_target_s_properties;else{if(128&t.flags&&1048576&r.flags){const e=function(e,t){const n=t.types.filter((e=>!!(128&e.flags)));return Lt(e.value,n,(e=>e.value))}(t,r);if(e)return void R(la.Type_0_is_not_assignable_to_type_1_Did_you_mean_2,s,o,sc(e))}e=la.Type_0_is_not_assignable_to_type_1}R(e,s,o)}function z(e,t,n){return UC(e)?e.target.readonly&&SC(t)?(n&&R(la.The_type_0_is_readonly_and_cannot_be_assigned_to_the_mutable_type_1,sc(e),sc(t)),!1):kC(t):vC(e)&&SC(t)?(n&&R(la.The_type_0_is_readonly_and_cannot_be_assigned_to_the_mutable_type_1,sc(e),sc(t)),!1):!UC(t)||yC(e)}function q(e,t,n){return U(e,t,3,n)}function U(e,t,r=3,o=!1,a,s=0){if(e===t)return-1;if(524288&e.flags&&402784252&t.flags)return n===yo&&!(131072&t.flags)&&JS(t,e,n)||JS(e,t,n,o?R:void 0)?-1:(o&&V(e,t,e,t,a),0);const c=VS(e,!1);let l=VS(t,!0);if(c===l)return-1;if(n===bo)return c.flags!==l.flags?0:67358815&c.flags?-1:(W(c,l),ee(c,l,!1,0,r));if(262144&c.flags&&bp(c)===l)return-1;if(470302716&c.flags&&1048576&l.flags){const e=l.types,t=2===e.length&&98304&e[0].flags?e[1]:3===e.length&&98304&e[0].flags&&98304&e[1].flags?e[2]:void 0;if(t&&!(98304&t.flags)&&(l=VS(t,!0),c===l))return-1}if(n===yo&&!(131072&l.flags)&&JS(l,c,n)||JS(c,l,n,o?R:void 0))return-1;if(469499904&c.flags||469499904&l.flags){if(!(2&s)&&aN(c)&&8192&mx(c)&&function(e,t,r){var o;if(!YA(t)||!ne&&4096&mx(t))return!1;const a=!!(2048&mx(e));if((n===ho||n===yo)&&(TD(Gn,t)||!a&&LS(t)))return!1;let s,c=t;1048576&t.flags&&(c=sz(e,t,U)||function(e){if(QL(e,67108864)){const t=OD(e,(e=>!(402784252&e.flags)));if(!(131072&t.flags))return t}return e}(t),s=1048576&c.flags?c.types:[c]);for(const t of vp(e))if(G(t,e.symbol)&&!qS(e,t)){if(!QA(c,t.escapedName,a)){if(r){const n=OD(c,YA);if(!i)return un.fail();if(EE(i)||vu(i)||vu(i.parent)){t.valueDeclaration&&FE(t.valueDeclaration)&&hd(i)===hd(t.valueDeclaration.name)&&(i=t.valueDeclaration.name);const e=ic(t),r=OI(e,n),o=r?ic(r):void 0;o?R(la.Property_0_does_not_exist_on_type_1_Did_you_mean_2,e,sc(n),o):R(la.Property_0_does_not_exist_on_type_1,e,sc(n))}else{const r=(null==(o=e.symbol)?void 0:o.declarations)&&fe(e.symbol.declarations);let a;if(t.valueDeclaration&&_c(t.valueDeclaration,(e=>e===r))&&hd(r)===hd(i)){const e=t.valueDeclaration;un.assertNode(e,y_);const r=e.name;i=r,zN(r)&&(a=LI(r,n))}void 0!==a?M(la.Object_literal_may_only_specify_known_properties_but_0_does_not_exist_in_type_1_Did_you_mean_to_write_2,ic(t),sc(n),a):M(la.Object_literal_may_only_specify_known_properties_and_0_does_not_exist_in_type_1,ic(t),sc(n))}}return!0}if(s&&!U(S_(t),K(s,t.escapedName),3,r))return r&&O(la.Types_of_property_0_are_incompatible,ic(t)),!0}return!1}(c,l,o))return o&&J(a,c,t.aliasSymbol?t:l),0;const _=(n!==yo||OC(c))&&!(2&s)&&405405692&c.flags&&c!==Gn&&2621440&l.flags&&nT(l)&&(vp(c).length>0||aJ(c)),u=!!(2048&mx(c));if(_&&!function(e,t,n){for(const r of vp(e))if(QA(t,r.escapedName,n))return!0;return!1}(c,l,u)){if(o){const n=sc(e.aliasSymbol?e:c),r=sc(t.aliasSymbol?t:l),i=Rf(c,0),o=Rf(c,1);i.length>0&&U(Tg(i[0]),l,1,!1)||o.length>0&&U(Tg(o[0]),l,1,!1)?R(la.Value_of_type_0_has_no_properties_in_common_with_type_1_Did_you_mean_to_call_it,n,r):R(la.Type_0_has_no_properties_in_common_with_type_1,n,r)}return 0}W(c,l);const d=1048576&c.flags&&c.types.length<4&&!(1048576&l.flags)||1048576&l.flags&&l.types.length<4&&!(469499904&c.flags)?X(c,l,o,s):ee(c,l,o,s,r);if(d)return d}return o&&V(e,t,c,l,a),0}function V(e,t,n,r,o){var a,s;const c=!!NC(e),l=!!NC(t);n=e.aliasSymbol||c?e:n,r=t.aliasSymbol||l?t:r;let u=w>0;if(u&&w--,524288&n.flags&&524288&r.flags){const e=_;z(n,r,!0),_!==e&&(u=!!_)}if(524288&n.flags&&402784252&r.flags)!function(e,t){const n=yc(e.symbol)?sc(e,e.symbol.valueDeclaration):sc(e),r=yc(t.symbol)?sc(t,t.symbol.valueDeclaration):sc(t);(rr===e&&Vt===t||ir===e&&Wt===t||or===e&&sn===t||qy()===e&&cn===t)&&R(la._0_is_a_primitive_but_1_is_a_wrapper_object_Prefer_using_0_when_possible,r,n)}(n,r);else if(n.symbol&&524288&n.flags&&Gn===n)R(la.The_Object_type_is_assignable_to_very_few_other_types_Did_you_mean_to_use_the_any_type_instead);else if(2048&mx(n)&&2097152&r.flags){const e=r.types,t=jA(vB.IntrinsicAttributes,i),n=jA(vB.IntrinsicClassAttributes,i);if(!$c(t)&&!$c(n)&&(T(e,t)||T(e,n)))return}else _=Sf(_,t);if(!o&&u){const e=I();let t;return J(o,n,r),_&&_!==e.errorInfo&&(t={code:_.code,messageText:_.messageText}),P(e),t&&_&&(_.canonicalHead=t),void(h=[n,r])}if(J(o,n,r),262144&n.flags&&(null==(s=null==(a=n.symbol)?void 0:a.declarations)?void 0:s[0])&&!bp(n)){const e=qk(n);if(e.constraint=tS(r,Fk(n,e)),tf(e)){const e=sc(r,n.symbol.declarations[0]);B(jp(n.symbol.declarations[0],la.This_type_parameter_might_need_an_extends_0_constraint,e))}}}function W(e,t){if(Hn&&3145728&e.flags&&3145728&t.flags){const n=e,r=t;if(n.objectFlags&r.objectFlags&32768)return;const o=n.types.length,a=r.types.length;o*a>1e6&&Hn.instant(Hn.Phase.CheckTypes,"traceUnionsOrIntersectionsTooLarge_DepthLimit",{sourceId:e.id,sourceSize:o,targetId:t.id,targetSize:a,pos:null==i?void 0:i.pos,end:null==i?void 0:i.end})}}function K(e,t){return xb(we(e,((e,n)=>{var r;const i=3145728&(n=pf(n)).flags?hf(n,t):hp(n,t);return ie(e,i&&S_(i)||(null==(r=Nm(n,t))?void 0:r.type)||jt)}),void 0)||l)}function G(e,t){return e.valueDeclaration&&t.valueDeclaration&&e.valueDeclaration.parent===t.valueDeclaration}function X(e,t,r,i){if(1048576&e.flags){if(1048576&t.flags){const n=e.origin;if(n&&2097152&n.flags&&t.aliasSymbol&&T(n.types,t))return-1;const r=t.origin;if(r&&1048576&r.flags&&e.aliasSymbol&&T(r.types,e))return-1}return n===yo?Z(e,t,r&&!(402784252&e.flags),i):function(e,t,n,r){let i=-1;const o=e.types,a=function(e,t){return 1048576&e.flags&&1048576&t.flags&&!(32768&e.types[0].flags)&&32768&t.types[0].flags?nF(t,-32769):t}(e,t);for(let e=0;e=a.types.length&&o.length%a.types.length==0){const t=U(s,a.types[e%a.types.length],3,!1,void 0,r);if(t){i&=t;continue}}const c=U(s,t,1,n,void 0,r);if(!c)return 0;i&=c}return i}(e,t,r&&!(402784252&e.flags),i)}if(1048576&t.flags)return Y(fw(e),t,r&&!(402784252&e.flags)&&!(402784252&t.flags),i);if(2097152&t.flags)return function(e,t,n){let r=-1;const i=t.types;for(const t of i){const i=U(e,t,2,n,void 0,2);if(!i)return 0;r&=i}return r}(e,t,r);if(n===yo&&402784252&t.flags){const n=A(e.types,(e=>465829888&e.flags?qp(e)||Ot:e));if(n!==e.types){if(131072&(e=Fb(n)).flags)return 0;if(!(2097152&e.flags))return U(e,t,1,!1)||U(t,e,1,!1)}}return Z(e,t,!1,1)}function Q(e,t){let n=-1;const r=e.types;for(const e of r){const r=Y(e,t,!1,0);if(!r)return 0;n&=r}return n}function Y(e,t,r,i){const o=t.types;if(1048576&t.flags){if(Gv(o,e))return-1;if(n!==yo&&32768&mx(t)&&!(1024&e.flags)&&(2688&e.flags||(n===mo||n===go)&&256&e.flags)){const t=e===e.regularType?e.freshType:e.regularType,n=128&e.flags?Vt:256&e.flags?Wt:2048&e.flags?$t:void 0;return n&&Gv(o,n)||t&&Gv(o,t)?-1:0}const r=wN(t,e);if(r){const t=U(e,r,2,!1,void 0,i);if(t)return t}}for(const t of o){const n=U(e,t,2,!1,void 0,i);if(n)return n}if(r){const n=YS(e,t,U);n&&U(e,n,2,!0,void 0,i)}return 0}function Z(e,t,n,r){const i=e.types;if(1048576&e.flags&&Gv(i,t))return-1;const o=i.length;for(let e=0;e(N|=e?16:8,k(e))),3===S?(null==(a=Hn)||a.instant(Hn.Phase.CheckTypes,"recursiveTypeRelatedTo_DepthLimit",{sourceId:e.id,sourceIdStack:m.map((e=>e.id)),targetId:t.id,targetIdStack:g.map((e=>e.id)),depth:b,targetDepth:x}),T=3):(null==(s=Hn)||s.push(Hn.Phase.CheckTypes,"structuredTypeRelatedTo",{sourceId:e.id,targetId:t.id}),T=function(e,t,r,i){const o=I();let a=function(e,t,r,i,o){let a,s,c=!1,u=e.flags;const d=t.flags;if(n===bo){if(3145728&u){let n=Q(e,t);return n&&(n&=Q(t,e)),n}if(4194304&u)return U(e.type,t.type,3,!1);if(8388608&u&&(a=U(e.objectType,t.objectType,3,!1))&&(a&=U(e.indexType,t.indexType,3,!1)))return a;if(16777216&u&&e.root.isDistributive===t.root.isDistributive&&(a=U(e.checkType,t.checkType,3,!1))&&(a&=U(e.extendsType,t.extendsType,3,!1))&&(a&=U(Px(e),Px(t),3,!1))&&(a&=U(Ax(e),Ax(t),3,!1)))return a;if(33554432&u&&(a=U(e.baseType,t.baseType,3,!1))&&(a&=U(e.constraint,t.constraint,3,!1)))return a;if(!(524288&u))return 0}else if(3145728&u||3145728&d){if(a=X(e,t,r,i))return a;if(!(465829888&u||524288&u&&1048576&d||2097152&u&&467402752&d))return 0}if(17301504&u&&e.aliasSymbol&&e.aliasTypeArguments&&e.aliasSymbol===t.aliasSymbol&&!mT(e)&&!mT(t)){const n=lT(e.aliasSymbol);if(n===l)return 1;const r=oa(e.aliasSymbol).typeParameters,o=ng(r),a=y(rg(e.aliasTypeArguments,r,o,Fm(e.aliasSymbol.valueDeclaration)),rg(t.aliasTypeArguments,r,o,Fm(e.aliasSymbol.valueDeclaration)),n,i);if(void 0!==a)return a}if(WC(e)&&!e.target.readonly&&(a=U(Kh(e)[0],t,1))||WC(t)&&(t.target.readonly||SC(qp(e)||e))&&(a=U(e,Kh(t)[0],2)))return a;if(262144&d){if(32&mx(e)&&!e.declaration.nameType&&U(qb(t),qd(e),3)&&!(4&ep(e))){const n=Hd(e),i=vx(t,Jd(e));if(a=U(n,i,3,r))return a}if(n===yo&&262144&u){let n=xp(e);if(n)for(;n&&ED(n,(e=>!!(262144&e.flags)));){if(a=U(n,t,1,!1))return a;n=xp(n)}return 0}}else if(4194304&d){const n=t.type;if(4194304&u&&(a=U(n,e.type,3,!1)))return a;if(UC(n)){if(a=U(e,zv(n),2,r))return a}else{const i=Sp(n);if(i){if(-1===U(e,qb(i,4|t.indexFlags),2,r))return-1}else if(rp(n)){const t=Ud(n),i=qd(n);let o;if(o=t&&Qd(n)?xb([te(t,n),t]):t||i,-1===U(e,o,2,r))return-1}}}else if(8388608&d){if(8388608&u){if((a=U(e.objectType,t.objectType,3,r))&&(a&=U(e.indexType,t.indexType,3,r)),a)return a;r&&(s=_)}if(n===ho||n===yo){const n=t.objectType,c=t.indexType,l=qp(n)||n,u=qp(c)||c;if(!lx(l)&&!_x(u)){const t=Sx(l,u,4|(l!==n?2:0));if(t){if(r&&s&&P(o),a=U(e,t,2,r,void 0,i))return a;r&&s&&_&&(_=h([s])<=h([_])?s:_)}}}r&&(s=void 0)}else if(rp(t)&&n!==bo){const n=!!t.declaration.nameType,i=Hd(t),c=ep(t);if(!(8&c)){if(!n&&8388608&i.flags&&i.objectType===e&&i.indexType===Jd(t))return-1;if(!rp(e)){const i=n?Ud(t):qd(t),l=qb(e,2),u=4&c,d=u?Pd(i,l):void 0;if(u?!(131072&d.flags):U(i,l,3)){const o=Hd(t),s=Jd(t),c=nF(o,-98305);if(!n&&8388608&c.flags&&c.indexType===s){if(a=U(e,c.objectType,2,r))return a}else{const t=vx(e,n?d||i:d?Fb([d,s]):s);if(a=U(t,o,3,r))return a}}s=_,P(o)}}}else if(16777216&d){if(RT(t,g,x,10))return 3;const n=t;if(!(n.root.inferTypeParameters||(p=n.root,p.isDistributive&&(Gk(p.checkType,p.node.trueType)||Gk(p.checkType,p.node.falseType)))||16777216&e.flags&&e.root===n.root)){const t=!gS(rS(n.checkType),rS(n.extendsType)),r=!t&&gS(iS(n.checkType),iS(n.extendsType));if((a=t?-1:U(e,Px(n),2,!1,void 0,i))&&(a&=r?-1:U(e,Ax(n),2,!1,void 0,i),a))return a}}else if(134217728&d){if(134217728&u){if(n===yo)return function(e,t){const n=e.texts[0],r=t.texts[0],i=e.texts[e.texts.length-1],o=t.texts[t.texts.length-1],a=Math.min(n.length,r.length),s=Math.min(i.length,o.length);return n.slice(0,a)!==r.slice(0,a)||i.slice(i.length-s)!==o.slice(o.length-s)}(e,t)?0:-1;tS(e,Cn)}if(tN(e,t))return-1}else if(268435456&t.flags&&!(268435456&e.flags)&&Yw(e,t))return-1;var p,f;if(8650752&u){if(!(8388608&u&&8388608&d)){const n=bp(e)||Ot;if(a=U(n,t,1,!1,void 0,i))return a;if(a=U(ld(n,e),t,1,r&&n!==Ot&&!(d&u&262144),void 0,i))return a;if(df(e)){const n=bp(e.indexType);if(n&&(a=U(vx(e.objectType,n),t,1,r)))return a}}}else if(4194304&u){const n=zb(e.type,e.indexFlags)&&32&mx(e.type);if(a=U(hn,t,1,r&&!n))return a;if(n){const n=e.type,i=Ud(n),o=i&&Qd(n)?te(i,n):i||qd(n);if(a=U(o,t,1,r))return a}}else if(134217728&u&&!(524288&d)){if(!(134217728&d)){const n=qp(e);if(n&&n!==e&&(a=U(n,t,1,r)))return a}}else if(268435456&u)if(268435456&d){if(e.symbol!==t.symbol)return 0;if(a=U(e.type,t.type,3,r))return a}else{const n=qp(e);if(n&&(a=U(n,t,1,r)))return a}else if(16777216&u){if(RT(e,m,b,10))return 3;if(16777216&d){const n=e.root.inferTypeParameters;let i,o=e.extendsType;if(n){const e=Ew(n,void 0,0,q);rN(e.inferences,t.extendsType,o,1536),o=tS(o,e.mapper),i=e.mapper}if(_S(o,t.extendsType)&&(U(e.checkType,t.checkType,3)||U(t.checkType,e.checkType,3))&&((a=U(tS(Px(e),i),Px(t),3,r))&&(a&=U(Ax(e),Ax(t),3,r)),a))return a}const n=wp(e);if(n&&(a=U(n,t,1,r)))return a;const i=16777216&d||!tf(e)?void 0:Ip(e);if(i&&(P(o),a=U(i,t,1,r)))return a}else{if(n!==mo&&n!==go&&32&mx(f=t)&&4&ep(f)&&LS(e))return-1;if(rp(t))return rp(e)&&(a=function(e,t,r){if(n===yo||(n===bo?ep(e)===ep(t):np(e)<=np(t))){let n;if(n=U(qd(t),tS(qd(e),np(e)<0?wn:Cn),3,r)){const i=Tk([Jd(e)],[Jd(t)]);if(tS(Ud(e),i)===tS(Ud(t),i))return n&U(tS(Hd(e),i),Hd(t),3,r)}}return 0}(e,t,r))?a:0;const p=!!(402784252&u);if(n!==bo)u=(e=pf(e)).flags;else if(rp(e))return 0;if(4&mx(e)&&4&mx(t)&&e.target===t.target&&!UC(e)&&!mT(e)&&!mT(t)){if(FC(e))return-1;const n=rT(e.target);if(n===l)return 1;const r=y(Kh(e),Kh(t),n,i);if(void 0!==r)return r}else{if(vC(t)?AD(e,kC):yC(t)&&AD(e,(e=>UC(e)&&!e.target.readonly)))return n!==bo?U(pm(e,Wt)||wt,pm(t,Wt)||wt,3,r):0;if(VC(e)&&UC(t)&&!VC(t)){const n=Wp(e);if(n!==e)return U(n,t,1,r)}else if((n===mo||n===go)&&LS(t)&&8192&mx(t)&&!LS(e))return 0}if(2621440&u&&524288&d){const n=r&&_===o.errorInfo&&!p;if(a=ae(e,t,n,void 0,!1,i),a&&(a&=se(e,t,0,n,i),a&&(a&=se(e,t,1,n,i),a&&(a&=me(e,t,p,n,i)))),c&&a)_=s||_||o.errorInfo;else if(a)return a}if(2621440&u&&1048576&d){const r=nF(t,36175872);if(1048576&r.flags){const t=function(e,t){var r;const i=xN(vp(e),t);if(!i)return 0;let o=1;for(const n of i)if(o*=JD(T_(n)),o>25)return null==(r=Hn)||r.instant(Hn.Phase.CheckTypes,"typeRelatedToDiscriminatedType_DepthLimit",{sourceId:e.id,targetId:t.id,numCombinations:o}),0;const a=new Array(i.length),s=new Set;for(let e=0;er[o]),!1,0,H||n===yo))continue e}ce(l,a,mt),o=!0}if(!o)return 0}let _=-1;for(const t of l)if(_&=ae(e,t,!1,s,!1,0),_&&(_&=se(e,t,0,!1,0),_&&(_&=se(e,t,1,!1,0),!_||UC(e)&&UC(t)||(_&=me(e,t,!1,!1,0)))),!_)return _;return _}(e,r);if(t)return t}}}return 0;function h(e){return e?we(e,((e,t)=>e+1+h(t.next)),0):0}function y(e,t,i,u){if(a=function(e=l,t=l,r=l,i,o){if(e.length!==t.length&&n===bo)return 0;const a=e.length<=t.length?e.length:t.length;let s=-1;for(let c=0;c!!(24&e))))return s=void 0,void P(o);const d=t&&function(e,t){for(let n=0;n!(7&e)))))return 0;s=_,P(o)}}}(e,t,r,i,o);if(n!==bo){if(!a&&(2097152&e.flags||262144&e.flags&&1048576&t.flags)){const n=function(e,t){let n,r=!1;for(const i of e)if(465829888&i.flags){let e=bp(i);for(;e&&21233664&e.flags;)e=bp(e);e&&(n=ie(n,e),t&&(n=ie(n,i)))}else(469892092&i.flags||jS(i))&&(r=!0);if(n&&(t||r)){if(r)for(const t of e)(469892092&t.flags||jS(t))&&(n=ie(n,t));return VS(Fb(n,2),!1)}}(2097152&e.flags?e.types:[e],!!(1048576&t.flags));n&&AD(n,(t=>t!==e))&&(a=U(n,t,1,!1,void 0,i))}a&&!(2&i)&&2097152&t.flags&&!lx(t)&&2621440&e.flags?(a&=ae(e,t,r,void 0,!1,0),a&&aN(e)&&8192&mx(e)&&(a&=me(e,t,!1,r,0))):a&&zx(t)&&!kC(t)&&2097152&e.flags&&3670016&pf(e).flags&&!$(e.types,(e=>e===t||!!(262144&mx(e))))&&(a&=ae(e,t,r,void 0,!0,i))}return a&&P(o),a}(e,t,r,i),null==(c=Hn)||c.pop()),on&&(on=k),1&o&&b--,2&o&&x--,S=y,T?(-1===T||0===b&&0===x)&&F(-1===T||3===T):(n.set(u,2|N),D--,F(!1)),T;function F(e){for(let t=h;t{r.push(tS(e,zk(t.mapper,Jd(t),n)))})),xb(r)}function re(e,t){if(!t||0===e.length)return e;let n;for(let r=0;r{return!!(4&rx(t))&&(n=e,r=FT(t),!DT(n,(e=>{const t=FT(e);return!!t&&D_(t,r)})));var n,r}))}(r,i))return a&&R(la.Property_0_is_protected_but_type_1_is_not_a_class_derived_from_2,ic(i),sc(FT(r)||e),sc(FT(i)||t)),0}else if(4&l)return a&&R(la.Property_0_is_protected_in_type_1_but_public_in_type_2,ic(i),sc(e),sc(t)),0;if(n===go&&WL(r)&&!WL(i))return 0;const u=function(e,t,n,r,i){const o=H&&!!(48&nx(t)),a=kl(T_(t),!1,o);return U(n(e),a,3,r,void 0,i)}(r,i,o,a,s);return u?!c&&16777216&r.flags&&106500&i.flags&&!(16777216&i.flags)?(a&&R(la.Property_0_is_optional_in_type_1_but_required_in_type_2,ic(i),sc(e),sc(t)),0):u:(a&&O(la.Types_of_property_0_are_incompatible,ic(i)),0)}function ae(e,t,r,i,a,s){if(n===bo)return function(e,t,n){if(!(524288&e.flags&&524288&t.flags))return 0;const r=re(gp(e),n),i=re(gp(t),n);if(r.length!==i.length)return 0;let o=-1;for(const e of r){const n=hp(t,e.escapedName);if(!n)return 0;const r=rC(e,n,U);if(!r)return 0;o&=r}return o}(e,t,i);let c=-1;if(UC(t)){if(kC(e)){if(!t.target.readonly&&(vC(e)||UC(e)&&e.target.readonly))return 0;const n=ey(e),o=ey(t),a=UC(e)?4&e.target.combinedFlags:4,l=!!(12&t.target.combinedFlags),_=UC(e)?e.target.minLength:0,u=t.target.minLength;if(!a&&n!(11&e)));return t>=0?t:e.elementFlags.length}(t.target),m=qv(t.target,11);let g=!!i;for(let a=0;a=f?o-1-Math.min(u,m):a,y=t.target.elementFlags[h];if(8&y&&!(8&_))return r&&R(la.Source_provides_no_match_for_variadic_element_at_position_0_in_target,h),0;if(8&_&&!(12&y))return r&&R(la.Variadic_element_at_position_0_in_source_does_not_match_element_at_position_1_in_target,a,h),0;if(1&y&&!(1&_))return r&&R(la.Source_provides_no_match_for_required_element_at_position_0_in_target,h),0;if(g&&((12&_||12&y)&&(g=!1),g&&(null==i?void 0:i.has(""+a))))continue;const v=cw(d[a],!!(_&y&2)),b=p[h],x=U(v,8&_&&4&y?uv(b):cw(b,!!(2&y)),3,r,void 0,s);if(!x)return r&&(o>1||n>1)&&(l&&a>=f&&u>=m&&f!==n-m-1?O(la.Type_at_positions_0_through_1_in_source_is_not_compatible_with_type_at_position_2_in_target,f,n-m-1,h):O(la.Type_at_position_0_in_source_is_not_compatible_with_type_at_position_1_in_target,a,h)),0;c&=x}return c}if(12&t.target.combinedFlags)return 0}const l=!(n!==mo&&n!==go||aN(e)||FC(e)||UC(e)),d=Hw(e,t,l,!1);if(d)return r&&function(e,t){const n=jf(e,0),r=jf(e,1),i=gp(e);return!((n.length||r.length)&&!i.length)||!!(Rf(t,0).length&&n.length||Rf(t,1).length&&r.length)}(e,t)&&function(e,t,n,r){let i=!1;if(n.valueDeclaration&&kc(n.valueDeclaration)&&qN(n.valueDeclaration.name)&&e.symbol&&32&e.symbol.flags){const r=n.valueDeclaration.name.escapedText,i=Uh(e.symbol,r);if(i&&Cf(e,i)){const n=XC.getDeclarationName(e.symbol.valueDeclaration),i=XC.getDeclarationName(t.symbol.valueDeclaration);return void R(la.Property_0_in_type_1_refers_to_a_different_member_that_cannot_be_accessed_from_within_type_2,pa(r),pa(""===n.escapedText?SB:n),pa(""===i.escapedText?SB:i))}}const a=Oe($w(e,t,r,!1));if((!o||o.code!==la.Class_0_incorrectly_implements_interface_1.code&&o.code!==la.Class_0_incorrectly_implements_class_1_Did_you_mean_to_extend_1_and_inherit_its_members_as_a_subclass.code)&&(i=!0),1===a.length){const r=ic(n,void 0,0,20);R(la.Property_0_is_missing_in_type_1_but_required_in_type_2,r,...cc(e,t)),u(n.declarations)&&B(jp(n.declarations[0],la._0_is_declared_here,r)),i&&_&&w++}else z(e,t,!1)&&(a.length>5?R(la.Type_0_is_missing_the_following_properties_from_type_1_Colon_2_and_3_more,sc(e),sc(t),E(a.slice(0,4),(e=>ic(e))).join(", "),a.length-4):R(la.Type_0_is_missing_the_following_properties_from_type_1_Colon_2,sc(e),sc(t),E(a,(e=>ic(e))).join(", ")),i&&_&&w++)}(e,t,d,l),0;if(aN(t))for(const n of re(vp(e),i))if(!(hp(t,n.escapedName)||32768&S_(n).flags))return r&&R(la.Property_0_does_not_exist_on_type_1,ic(n),sc(t)),0;const p=vp(t),f=UC(e)&&UC(t);for(const o of re(p,i)){const i=o.escapedName;if(!(4194304&o.flags)&&(!f||MT(i)||"length"===i)&&(!a||16777216&o.flags)){const a=Cf(e,i);if(a&&a!==o){const i=oe(e,t,a,o,T_,r,s,n===yo);if(!i)return 0;c&=i}}}return c}function se(e,t,r,i,o){var a,s;if(n===bo)return function(e,t,n){const r=Rf(e,n),i=Rf(t,n);if(r.length!==i.length)return 0;let o=-1;for(let e=0;eac(e,void 0,262144,r);return R(la.Type_0_is_not_assignable_to_type_1,e(t),e(c)),R(la.Types_of_construct_signatures_are_incompatible),d}}else e:for(const t of u){const n=I();let a=i;for(const e of _){const r=de(e,t,!0,a,o,p(e,t));if(r){d&=r,P(n);continue e}a=!1}return a&&R(la.Type_0_provides_no_match_for_the_signature_1,sc(e),ac(t,void 0,void 0,r)),0}return d}function le(e,t){return 0===e.parameters.length&&0===t.parameters.length?(e,t)=>O(la.Call_signatures_with_no_arguments_have_incompatible_return_types_0_and_1,sc(e),sc(t)):(e,t)=>O(la.Call_signature_return_types_0_and_1_are_incompatible,sc(e),sc(t))}function ue(e,t){return 0===e.parameters.length&&0===t.parameters.length?(e,t)=>O(la.Construct_signatures_with_no_arguments_have_incompatible_return_types_0_and_1,sc(e),sc(t)):(e,t)=>O(la.Construct_signature_return_types_0_and_1_are_incompatible,sc(e),sc(t))}function de(e,t,r,i,o,a){const s=n===mo?16:n===go?24:0;return AS(r?Hg(e):e,r?Hg(t):t,s,i,R,a,(function(e,t,n){return U(e,t,3,n,void 0,o)}),Cn)}function pe(e,t,n,r){const i=U(e.type,t.type,3,n,void 0,r);return!i&&n&&(e.keyType===t.keyType?R(la._0_index_signatures_are_incompatible,sc(e.keyType)):R(la._0_and_1_index_signatures_are_incompatible,sc(e.keyType),sc(t.keyType))),i}function me(e,t,r,i,o){if(n===bo)return function(e,t){const n=Kf(e),r=Kf(t);if(n.length!==r.length)return 0;for(const t of r){const n=dm(e,t.keyType);if(!n||!U(n.type,t.type,3)||n.isReadonly!==t.isReadonly)return 0}return-1}(e,t);const a=Kf(t),s=$(a,(e=>e.keyType===Vt));let c=-1;for(const t of a){const a=n!==go&&!r&&s&&1&t.type.flags?-1:rp(e)&&s?U(Hd(e),t.type,3,i):he(e,t,i,o);if(!a)return 0;c&=a}return c}function he(e,t,r,i){const o=hm(e,t.keyType);return o?pe(o,t,r,i):1&i||!(n!==go||8192&mx(e))||!uw(e)?(r&&R(la.Index_signature_for_type_0_is_missing_in_type_1,sc(t.keyType),sc(e)),0):function(e,t,n,r){let i=-1;const o=t.keyType,a=2097152&e.flags?yp(e):gp(e);for(const s of a)if(!qS(e,s)&&Wf(Mb(s,8576),o)){const e=T_(s),a=U(_e||32768&e.flags||o===Wt||!(16777216&s.flags)?e:ON(e,524288),t.type,3,n,void 0,r);if(!a)return n&&R(la.Property_0_is_incompatible_with_index_signature,ic(s)),0;i&=a}for(const a of Kf(e))if(Wf(a.keyType,o)){const e=pe(a,t,n,r);if(!e)return 0;i&=e}return i}(e,t,r,i)}}function KS(e){if(16&e.flags)return!1;if(3145728&e.flags)return!!d(e.types,KS);if(465829888&e.flags){const t=bp(e);if(t&&t!==e)return KS(t)}return OC(e)||!!(134217728&e.flags)||!!(268435456&e.flags)}function GS(e,t){return UC(e)&&UC(t)?l:vp(t).filter((t=>QS(Uc(e,t.escapedName),S_(t))))}function QS(e,t){return!!e&&!!t&&QL(e,32768)&&!!lw(t)}function YS(e,t,n=dS){return sz(e,t,n)||function(e,t){const n=mx(e);if(20&n&&1048576&t.flags)return b(t.types,(t=>{if(524288&t.flags){const r=n&mx(t);if(4&r)return e.target===t.target;if(16&r)return!!e.aliasSymbol&&e.aliasSymbol===t.aliasSymbol}return!1}))}(e,t)||function(e,t){if(128&mx(e)&&ED(t,CC))return b(t.types,(e=>!CC(e)))}(e,t)||function(e,t){let n=0;if(Rf(e,n).length>0||(n=1,Rf(e,n).length>0))return b(t.types,(e=>Rf(e,n).length>0))}(e,t)||function(e,t){let n;if(!(406978556&e.flags)){let r=0;for(const i of t.types)if(!(406978556&i.flags)){const t=Fb([qb(e),qb(i)]);if(4194304&t.flags)return i;if(OC(t)||1048576&t.flags){const e=1048576&t.flags?w(t.types,OC):1;e>=r&&(n=i,r=e)}}}return n}(e,t)}function tT(e,t,n){const r=e.types,i=r.map((e=>402784252&e.flags?0:-1));for(const[e,o]of t){let t=!1;for(let a=0;a!!n(e,s)))?t=!0:i[a]=3}for(let e=0;ei[t])),0):e;return 131072&o.flags?e:o}function nT(e){if(524288&e.flags){const t=pp(e);return 0===t.callSignatures.length&&0===t.constructSignatures.length&&0===t.indexInfos.length&&t.properties.length>0&&v(t.properties,(e=>!!(16777216&e.flags)))}return 33554432&e.flags?nT(e.baseType):!!(2097152&e.flags)&&v(e.types,nT)}function rT(e){return e===Zn||e===er||8&e.objectFlags?L:_T(e.symbol,e.typeParameters)}function lT(e){return _T(e,oa(e).typeParameters)}function _T(e,t=l){var n,r;const i=oa(e);if(!i.variances){null==(n=Hn)||n.push(Hn.Phase.CheckTypes,"getVariancesWorker",{arity:t.length,id:Kv(fu(e))});const o=qi,a=zi;qi||(qi=!0,zi=Mi.length),i.variances=l;const s=[];for(const n of t){const t=xT(n);let r=16384&t?8192&t?0:1:8192&t?2:void 0;if(void 0===r){let t=!1,i=!1;const o=on;on=e=>e?i=!0:t=!0;const a=dT(e,n,Bn),s=dT(e,n,Jn);r=(gS(s,a)?1:0)|(gS(a,s)?2:0),3===r&&gS(dT(e,n,zn),a)&&(r=4),on=o,(t||i)&&(t&&(r|=8),i&&(r|=16))}s.push(r)}o||(qi=!1,zi=a),i.variances=s,null==(r=Hn)||r.pop({variances:s.map(un.formatVariance)})}return i.variances}function dT(e,t,n){const r=Fk(t,n),i=fu(e);if($c(i))return i;const o=524288&e.flags?ny(e,mk(oa(e).typeParameters,r)):jh(i,mk(i.typeParameters,r));return bt.add(Kv(o)),o}function mT(e){return bt.has(Kv(e))}function xT(e){var t;return 28672&we(null==(t=e.symbol)?void 0:t.declarations,((e,t)=>e|Mv(t)),0)}function kT(e){return 262144&e.flags&&!xp(e)}function TT(e){return function(e){return!!(4&mx(e))&&!e.node}(e)&&$(Kh(e),(e=>!!(262144&e.flags)||TT(e)))}function NT(e,t,n,r,i){if(r===bo&&e.id>t.id){const n=e;e=t,t=n}const o=n?":"+n:"";return TT(e)&&TT(t)?function(e,t,n,r){const i=[];let o="";const a=c(e,0),s=c(t,0);return`${o}${a},${s}${n}`;function c(e,t=0){let n=""+e.target.id;for(const a of Kh(e)){if(262144&a.flags){if(r||kT(a)){let e=i.indexOf(a);e<0&&(e=i.length,i.push(a)),n+="="+e;continue}o="*"}else if(t<4&&TT(a)){n+="<"+c(a,t+1)+">";continue}n+="-"+a.id}return n}}(e,t,o,i):`${e.id},${t.id}${o}`}function DT(e,t){if(!(6&nx(e)))return t(e);for(const n of e.links.containingType.types){const r=Cf(n,e.escapedName),i=r&&DT(r,t);if(i)return i}}function FT(e){return e.parent&&32&e.parent.flags?fu(hs(e)):void 0}function PT(e){const t=FT(e),n=t&&Z_(t)[0];return n&&Uc(n,e.escapedName)}function AT(e,t,n){return DT(t,(t=>!!(4&rx(t,n))&&!D_(e,FT(t))))?void 0:e}function RT(e,t,n,r=3){if(n>=r){if(96&~mx(e)||(e=zT(e)),2097152&e.flags)return $(e.types,(e=>RT(e,t,n,r)));const i=tC(e);let o=0,a=0;for(let e=0;e=a&&(o++,o>=r))return!0;a=n.id}}}return!1}function zT(e){let t;for(;!(96&~mx(e))&&(t=Yd(e))&&(t.symbol||2097152&t.flags&&$(t.types,(e=>!!e.symbol)));)e=t;return e}function $T(e,t){return 96&~mx(e)||(e=zT(e)),2097152&e.flags?$(e.types,(e=>$T(e,t))):tC(e)===t}function tC(e){if(524288&e.flags&&!sN(e)){if(4&mx(e)&&e.node)return e.node;if(e.symbol&&!(16&mx(e)&&32&e.symbol.flags))return e.symbol;if(UC(e))return e.target}if(262144&e.flags)return e.symbol;if(8388608&e.flags){do{e=e.objectType}while(8388608&e.flags);return e}return 16777216&e.flags?e.root:e}function rC(e,t,n){if(e===t)return-1;const r=6&rx(e);if(r!==(6&rx(t)))return 0;if(r){if(VM(e)!==VM(t))return 0}else if((16777216&e.flags)!=(16777216&t.flags))return 0;return WL(e)!==WL(t)?0:n(S_(e),S_(t))}function lC(e,t,n,r,i,o){if(e===t)return-1;if(!function(e,t,n){const r=hL(e),i=hL(t),o=yL(e),a=yL(t),s=vL(e),c=vL(t);return r===i&&o===a&&s===c||!!(n&&o<=a)}(e,t,n))return 0;if(u(e.typeParameters)!==u(t.typeParameters))return 0;if(t.typeParameters){const n=Tk(e.typeParameters,t.typeParameters);for(let r=0;re|(1048576&t.flags?_C(t.types):t.flags)),0)}function dC(e){if(1===e.length)return e[0];const t=H?A(e,(e=>OD(e,(e=>!(98304&e.flags))))):e,n=function(e){let t;for(const n of e)if(!(131072&n.flags)){const e=RC(n);if(t??(t=e),e===n||e!==t)return!1}return!0}(t)?xb(t):we(t,((e,t)=>fS(e,t)?t:e));return t===e?n:ew(n,98304&_C(e))}function yC(e){return!!(4&mx(e))&&(e.target===Zn||e.target===er)}function vC(e){return!!(4&mx(e))&&e.target===er}function kC(e){return yC(e)||UC(e)}function SC(e){return yC(e)&&!vC(e)||UC(e)&&!e.target.readonly}function TC(e){return yC(e)?Kh(e)[0]:void 0}function CC(e){return yC(e)||!(98304&e.flags)&&gS(e,_r)}function wC(e){return SC(e)||!(98305&e.flags)&&gS(e,cr)}function NC(e){if(!(4&mx(e)&&3&mx(e.target)))return;if(33554432&mx(e))return 67108864&mx(e)?e.cachedEquivalentBaseType:void 0;e.objectFlags|=33554432;const t=e.target;if(1&mx(t)){const e=z_(t);if(e&&80!==e.expression.kind&&211!==e.expression.kind)return}const n=Z_(t);if(1!==n.length)return;if(sd(e.symbol).size)return;let r=u(t.typeParameters)?tS(n[0],Tk(t.typeParameters,Kh(e).slice(0,t.typeParameters.length))):n[0];return u(Kh(e))>u(t.typeParameters)&&(r=ld(r,ve(Kh(e)))),e.objectFlags|=67108864,e.cachedEquivalentBaseType=r}function DC(e){return H?e===pn:e===Rt}function FC(e){const t=TC(e);return!!t&&DC(t)}function EC(e){let t;return UC(e)||!!Cf(e,"0")||CC(e)&&!!(t=Uc(e,"length"))&&AD(t,(e=>!!(256&e.flags)))}function PC(e){return CC(e)||EC(e)}function AC(e,t){return Uc(e,""+t)||(AD(e,UC)?HC(e,t,j.noUncheckedIndexedAccess?jt:void 0):void 0)}function IC(e){return!(240544&e.flags)}function OC(e){return!!(109472&e.flags)}function LC(e){const t=Wp(e);return 2097152&t.flags?$(t.types,OC):OC(t)}function jC(e){return!!(16&e.flags)||(1048576&e.flags?!!(1024&e.flags)||v(e.types,OC):OC(e))}function RC(e){return 1056&e.flags?su(e):402653312&e.flags?Vt:256&e.flags?Wt:2048&e.flags?$t:512&e.flags?sn:1048576&e.flags?function(e){const t=`B${Kv(e)}`;return No(t)??Fo(t,zD(e,RC))}(e):e}function MC(e){return 402653312&e.flags?Vt:288&e.flags?Wt:2048&e.flags?$t:512&e.flags?sn:1048576&e.flags?zD(e,MC):e}function BC(e){return 1056&e.flags&&rk(e)?su(e):128&e.flags&&rk(e)?Vt:256&e.flags&&rk(e)?Wt:2048&e.flags&&rk(e)?$t:512&e.flags&&rk(e)?sn:1048576&e.flags?zD(e,BC):e}function JC(e){return 8192&e.flags?cn:1048576&e.flags?zD(e,JC):e}function zC(e,t){return bj(e,t)||(e=JC(BC(e))),nk(e)}function qC(e,t,n,r){return e&&OC(e)&&(e=zC(e,t?TM(n,t,r):void 0)),e}function UC(e){return!!(4&mx(e)&&8&e.target.objectFlags)}function VC(e){return UC(e)&&!!(8&e.target.combinedFlags)}function WC(e){return VC(e)&&1===e.target.elementFlags.length}function $C(e){return KC(e,e.target.fixedLength)}function HC(e,t,n){return zD(e,(e=>{const r=e,i=$C(r);return i?n&&t>=Uv(r.target)?xb([i,n]):i:jt}))}function KC(e,t,n=0,r=!1,i=!1){const o=ey(e)-n;if(tAN(e,4194304)))}function ZC(e){return 4&e.flags?Li:8&e.flags?ji:64&e.flags?Ri:e===Qt||e===Ht||114691&e.flags||128&e.flags&&""===e.value||256&e.flags&&0===e.value||2048&e.flags&&GC(e)?e:_n}function ew(e,t){const n=t&~e.flags&98304;return 0===n?e:xb(32768===n?[e,jt]:65536===n?[e,zt]:[e,jt,zt])}function tw(e,t=!1){un.assert(H);const n=t?Bt:jt;return e===n||1048576&e.flags&&e.types[0]===n?e:xb([e,n])}function rw(e){return H?LN(e,2097152):e}function iw(e){return H?xb([e,Jt]):e}function ow(e){return H?RD(e,Jt):e}function aw(e,t,n){return n?vl(t)?tw(e):iw(e):e}function sw(e,t){return yl(t)?rw(e):gl(t)?ow(e):e}function cw(e,t){return _e&&t?RD(e,Mt):e}function lw(e){return e===Mt||!!(1048576&e.flags)&&e.types[0]===Mt}function _w(e){return _e?RD(e,Mt):ON(e,524288)}function uw(e){const t=mx(e);return 2097152&e.flags?v(e.types,uw):!(!(e.symbol&&7040&e.symbol.flags)||32&e.symbol.flags||aJ(e))||!!(4194304&t)||!!(1024&t&&uw(e.source))}function dw(e,t){const n=Wo(e.flags,e.escapedName,8&nx(e));n.declarations=e.declarations,n.parent=e.parent,n.links.type=t,n.links.target=e,e.valueDeclaration&&(n.valueDeclaration=e.valueDeclaration);const r=oa(e).nameType;return r&&(n.links.nameType=r),n}function fw(e){if(!(aN(e)&&8192&mx(e)))return e;const t=e.regularType;if(t)return t;const n=e,r=function(e,t){const n=Hu();for(const r of gp(e)){const e=S_(r),i=t(e);n.set(r.escapedName,i===e?r:dw(r,i))}return n}(e,fw),i=Bs(n.symbol,r,n.callSignatures,n.constructSignatures,n.indexInfos);return i.flags=n.flags,i.objectFlags|=-8193&n.objectFlags,e.regularType=i,i}function hw(e,t,n){return{parent:e,propertyName:t,siblings:n,resolvedProperties:void 0}}function yw(e){if(!e.siblings){const t=[];for(const n of yw(e.parent))if(aN(n)){const r=hp(n,e.propertyName);r&&FD(S_(r),(e=>{t.push(e)}))}e.siblings=t}return e.siblings}function bw(e){if(!e.resolvedProperties){const t=new Map;for(const n of yw(e))if(aN(n)&&!(2097152&mx(n)))for(const e of vp(n))t.set(e.escapedName,e);e.resolvedProperties=Oe(t.values())}return e.resolvedProperties}function xw(e,t){if(!(4&e.flags))return e;const n=S_(e),r=Tw(n,t&&hw(t,e.escapedName,void 0));return r===n?e:dw(e,r)}function kw(e){const t=yt.get(e.escapedName);if(t)return t;const n=dw(e,Bt);return n.flags|=16777216,yt.set(e.escapedName,n),n}function Sw(e){return Tw(e,void 0)}function Tw(e,t){if(196608&mx(e)){if(void 0===t&&e.widened)return e.widened;let n;if(98305&e.flags)n=wt;else if(aN(e))n=function(e,t){const n=Hu();for(const r of gp(e))n.set(r.escapedName,xw(r,t));if(t)for(const e of bw(t))n.has(e.escapedName)||n.set(e.escapedName,kw(e));const r=Bs(e.symbol,n,l,l,A(Kf(e),(e=>uh(e.keyType,Sw(e.type),e.isReadonly))));return r.objectFlags|=266240&mx(e),r}(e,t);else if(1048576&e.flags){const r=t||hw(void 0,void 0,e.types),i=A(e.types,(e=>98304&e.flags?e:Tw(e,r)));n=xb(i,$(i,LS)?2:1)}else 2097152&e.flags?n=Fb(A(e.types,Sw)):kC(e)&&(n=jh(e.target,A(Kh(e),Sw)));return n&&void 0===t&&(e.widened=n),n||e}return e}function Cw(e){var t;let n=!1;if(65536&mx(e))if(1048576&e.flags)if($(e.types,LS))n=!0;else for(const t of e.types)n||(n=Cw(t));else if(kC(e))for(const t of Kh(e))n||(n=Cw(t));else if(aN(e))for(const r of gp(e)){const i=S_(r);if(65536&mx(i)&&(n=Cw(i),!n)){const o=null==(t=r.declarations)?void 0:t.find((t=>{var n;return(null==(n=t.symbol.valueDeclaration)?void 0:n.parent)===e.symbol.valueDeclaration}));o&&(jo(o,la.Object_literal_s_property_0_implicitly_has_an_1_type,ic(r),sc(Sw(i))),n=!0)}}return n}function ww(e,t,n){const r=sc(Sw(t));if(Fm(e)&&!eT(hd(e),j))return;let i;switch(e.kind){case 226:case 172:case 171:i=ne?la.Member_0_implicitly_has_an_1_type:la.Member_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage;break;case 169:const t=e;if(zN(t.name)){const n=gc(t.name);if((mD(t.parent)||lD(t.parent)||bD(t.parent))&&t.parent.parameters.includes(t)&&(Ue(t,t.name.escapedText,788968,void 0,!0)||n&&xx(n))){const n="arg"+t.parent.parameters.indexOf(t),r=Ep(t.name)+(t.dotDotDotToken?"[]":"");return void Mo(ne,e,la.Parameter_has_a_name_but_no_type_Did_you_mean_0_Colon_1,n,r)}}i=e.dotDotDotToken?ne?la.Rest_parameter_0_implicitly_has_an_any_type:la.Rest_parameter_0_implicitly_has_an_any_type_but_a_better_type_may_be_inferred_from_usage:ne?la.Parameter_0_implicitly_has_an_1_type:la.Parameter_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage;break;case 208:if(i=la.Binding_element_0_implicitly_has_an_1_type,!ne)return;break;case 317:return void jo(e,la.Function_type_which_lacks_return_type_annotation_implicitly_has_an_0_return_type,r);case 323:return void(ne&&gP(e.parent)&&jo(e.parent.tagName,la.This_overload_implicitly_returns_the_type_0_because_it_lacks_a_return_type_annotation,r));case 262:case 174:case 173:case 177:case 178:case 218:case 219:if(ne&&!e.name)return void jo(e,3===n?la.Generator_implicitly_has_yield_type_0_Consider_supplying_a_return_type_annotation:la.Function_expression_which_lacks_return_type_annotation_implicitly_has_an_0_return_type,r);i=ne?3===n?la._0_which_lacks_return_type_annotation_implicitly_has_an_1_yield_type:la._0_which_lacks_return_type_annotation_implicitly_has_an_1_return_type:la._0_implicitly_has_an_1_return_type_but_a_better_type_may_be_inferred_from_usage;break;case 200:return void(ne&&jo(e,la.Mapped_object_type_implicitly_has_an_any_template_type));default:i=ne?la.Variable_0_implicitly_has_an_1_type:la.Variable_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage}Mo(ne,e,i,Ep(Tc(e)),r)}function Nw(e,t,n){a((()=>{ne&&65536&mx(t)&&(!n||i_(e)&&function(e,t){const n=yA(e);if(!n)return!0;let r=Tg(n);const i=Ih(e);switch(t){case 1:return 1&i?r=TM(1,r,!!(2&i))??r:2&i&&(r=pR(r)??r),cx(r);case 3:const e=TM(0,r,!!(2&i));return!!e&&cx(e);case 2:const t=TM(2,r,!!(2&i));return!!t&&cx(t)}return!1}(e,n))&&(Cw(t)||ww(e,t,n))}))}function Dw(e,t,n){const r=hL(e),i=hL(t),o=bL(e),a=bL(t),s=a?i-1:i,c=o?s:Math.min(r,s),l=yg(e);if(l){const e=yg(t);e&&n(l,e)}for(let r=0;re.typeParameter)),E(e.inferences,((t,n)=>()=>(t.isFixed||(function(e){if(e.intraExpressionInferenceSites){for(const{node:t,type:n}of e.intraExpressionInferenceSites){const r=174===t.kind?GP(t,2):sA(t,2);r&&rN(e.inferences,n,r)}e.intraExpressionInferenceSites=void 0}}(e),Aw(e.inferences),t.isFixed=!0),cN(e,n)))))}(i),i.nonFixingMapper=function(e){return Pk(E(e.inferences,(e=>e.typeParameter)),E(e.inferences,((t,n)=>()=>cN(e,n))))}(i),i}function Aw(e){for(const t of e)t.isFixed||(t.inferredType=void 0)}function Lw(e,t,n){(e.intraExpressionInferenceSites??(e.intraExpressionInferenceSites=[])).push({node:t,type:n})}function jw(e){return{typeParameter:e,candidates:void 0,contraCandidates:void 0,inferredType:void 0,priority:void 0,topLevel:!0,isFixed:!1,impliedArity:void 0}}function Rw(e){return{typeParameter:e.typeParameter,candidates:e.candidates&&e.candidates.slice(),contraCandidates:e.contraCandidates&&e.contraCandidates.slice(),inferredType:e.inferredType,priority:e.priority,topLevel:e.topLevel,isFixed:e.isFixed,impliedArity:e.impliedArity}}function Bw(e){return e&&e.mapper}function Jw(e){const t=mx(e);if(524288&t)return!!(1048576&t);const n=!!(465829888&e.flags||524288&e.flags&&!zw(e)&&(4&t&&(e.node||$(Kh(e),Jw))||134217728&t&&u(e.outerTypeParameters)||16&t&&e.symbol&&14384&e.symbol.flags&&e.symbol.declarations||12583968&t)||3145728&e.flags&&!(1024&e.flags)&&!zw(e)&&$(e.types,Jw));return 3899393&e.flags&&(e.objectFlags|=524288|(n?1048576:0)),n}function zw(e){if(e.aliasSymbol&&!e.aliasTypeArguments){const t=Wu(e.aliasSymbol,265);return!(!t||!_c(t.parent,(e=>307===e.kind||267!==e.kind&&"quit")))}return!1}function qw(e,t,n=0){return!!(e===t||3145728&e.flags&&$(e.types,(e=>qw(e,t,n)))||n<3&&16777216&e.flags&&(qw(Px(e),t,n+1)||qw(Ax(e),t,n+1)))}function Uw(e,t,n){const r=e.id+","+t.id+","+n.id;if(vi.has(r))return vi.get(r);const i=function(e,t,n){if(!(dm(e,Vt)||0!==vp(e).length&&Vw(e)))return;if(yC(e)){const r=Ww(Kh(e)[0],t,n);if(!r)return;return uv(r,vC(e))}if(UC(e)){const r=E(Vv(e),(e=>Ww(e,t,n)));if(!v(r,(e=>!!e)))return;return kv(r,4&ep(t)?A(e.target.elementFlags,(e=>2&e?1:e)):e.target.elementFlags,e.target.readonly,e.target.labeledElementDeclarations)}const r=Is(1040,void 0);return r.source=e,r.mappedType=t,r.constraintType=n,r}(e,t,n);return vi.set(r,i),i}function Vw(e){return!(262144&mx(e))||aN(e)&&$(vp(e),(e=>Vw(S_(e))))||UC(e)&&$(Vv(e),Vw)}function Ww(e,t,n){const r=e.id+","+t.id+","+n.id;if(yi.has(r))return yi.get(r)||Ot;co.push(e),lo.push(t);const i=_o;let o;return RT(e,co,co.length,2)&&(_o|=1),RT(t,lo,lo.length,2)&&(_o|=2),3!==_o&&(o=function(e,t,n){const r=vx(n.type,Jd(t)),i=Hd(t),o=jw(r);return rN([o],e,i),Kw(o)||Ot}(e,t,n)),co.pop(),lo.pop(),_o=i,yi.set(r,o),o}function*$w(e,t,n,r){const i=vp(t);for(const t of i)if(!Iu(t)&&(n||!(16777216&t.flags||48&nx(t)))){const n=Cf(e,t.escapedName);if(n){if(r){const e=S_(t);if(109472&e.flags){const r=S_(n);1&r.flags||nk(r)===nk(e)||(yield t)}}}else yield t}}function Hw(e,t,n,r){return me($w(e,t,n,r))}function Kw(e){return e.candidates?xb(e.candidates,2):e.contraCandidates?Fb(e.contraCandidates):void 0}function Gw(e){return!!aa(e).skipDirectInference}function Xw(e){return!(!e.symbol||!$(e.symbol.declarations,Gw))}function Qw(e,t){if(""===e)return!1;const n=+e;return isFinite(n)&&(!t||""+n===e)}function Yw(e,t){if(1&t.flags)return!0;if(134217732&t.flags)return gS(e,t);if(268435456&t.flags){const n=[];for(;268435456&t.flags;)n.unshift(t.symbol),t=t.type;return we(n,((e,t)=>$b(t,e)),e)===e&&Yw(e,t)}return!1}function Zw(e,t){if(2097152&t.flags)return v(t.types,(t=>t===Pn||Zw(e,t)));if(4&t.flags||gS(e,t))return!0;if(128&e.flags){const n=e.value;return!!(8&t.flags&&Qw(n,!1)||64&t.flags&&hT(n,!1)||98816&t.flags&&n===t.intrinsicName||268435456&t.flags&&Yw(ik(n),t)||134217728&t.flags&&tN(e,t))}if(134217728&e.flags){const n=e.texts;return 2===n.length&&""===n[0]&&""===n[1]&&gS(e.types[0],t)}return!1}function eN(e,t){return 128&e.flags?nN([e.value],l,t):134217728&e.flags?te(e.texts,t.texts)?E(e.types,((e,n)=>{return gS(Wp(e),Wp(t.types[n]))?e:402653317&(r=e).flags?r:Vb(["",""],[r]);var r})):nN(e.texts,e.types,t):void 0}function tN(e,t){const n=eN(e,t);return!!n&&v(n,((e,n)=>Zw(e,t.types[n])))}function nN(e,t,n){const r=e.length-1,i=e[0],o=e[r],a=n.texts,s=a.length-1,c=a[0],l=a[s];if(0===r&&i.length0){let t=d,r=p;for(;r=f(t).indexOf(n,r),!(r>=0);){if(t++,t===e.length)return;r=0}m(t,r),p+=n.length}else if(p{if(!(128&e.flags))return;const n=pc(e.value),r=Wo(4,n);r.links.type=wt,e.symbol&&(r.declarations=e.symbol.declarations,r.valueDeclaration=e.symbol.valueDeclaration),t.set(n,r)}));const n=4&e.flags?[uh(Vt,Nn,!1)]:l;return Bs(void 0,t,l,l,n)}(t);!function(e,t){const n=r;r|=256,y(e,t),r=n}(e,a.type)}else if(8388608&t.flags&&8388608&a.flags)p(t.objectType,a.objectType),p(t.indexType,a.indexType);else if(268435456&t.flags&&268435456&a.flags)t.symbol===a.symbol&&p(t.type,a.type);else if(33554432&t.flags)p(t.baseType,a),f(my(t),a,4);else if(16777216&a.flags)m(t,a,w);else if(3145728&a.flags)S(t,a.types,a.flags);else if(1048576&t.flags){const e=t.types;for(const t of e)p(t,a)}else if(134217728&a.flags)!function(e,t){const n=eN(e,t),r=t.types;if(n||v(t.texts,(e=>0===e.length)))for(let e=0;ee|t.flags),0);if(!(4&r)){const n=t.value;296&r&&!Qw(n,!0)&&(r&=-297),2112&r&&!hT(n,!0)&&(r&=-2113);const o=we(e,((e,i)=>i.flags&r?4&e.flags?e:4&i.flags?t:134217728&e.flags?e:134217728&i.flags&&tN(t,i)?t:268435456&e.flags?e:268435456&i.flags&&n===Hb(i.symbol,n)?t:128&e.flags?e:128&i.flags&&i.value===n?i:8&e.flags?e:8&i.flags?ok(+n):32&e.flags?e:32&i.flags?ok(+n):256&e.flags?e:256&i.flags&&i.value===+n?i:64&e.flags?e:64&i.flags?ak(gT(n)):2048&e.flags?e:2048&i.flags&&fT(i.value)===n?i:16&e.flags?e:16&i.flags?"true"===n?Yt:"false"===n?Ht:sn:512&e.flags?e:512&i.flags&&i.intrinsicName===n?i:32768&e.flags?e:32768&i.flags&&i.intrinsicName===n?i:65536&e.flags?e:65536&i.flags&&i.intrinsicName===n?i:e:e),_n);if(!(131072&o.flags)){p(o,i);continue}}}}p(t,i)}}(t,a);else{if(rp(t=yf(t))&&rp(a)&&m(t,a,D),!(512&r&&467927040&t.flags)){const e=pf(t);if(e!==t&&!(2621440&e.flags))return p(e,a);t=e}2621440&t.flags&&m(t,a,F)}else h(Kh(t),Kh(a),rT(t.target))}}}function f(e,t,n){const i=r;r|=n,p(e,t),r=i}function m(e,t,n){const r=e.id+","+t.id,i=a&&a.get(r);if(void 0!==i)return void(u=Math.min(u,i));(a||(a=new Map)).set(r,-1);const o=u;u=2048;const l=d;(s??(s=[])).push(e),(c??(c=[])).push(t),RT(e,s,s.length,2)&&(d|=1),RT(t,c,c.length,2)&&(d|=2),3!==d?n(e,t):u=-1,c.pop(),s.pop(),d=l,a.set(r,u),u=Math.min(u,o)}function g(e,t,n){let r,i;for(const o of t)for(const t of e)n(t,o)&&(p(t,o),r=le(r,t),i=le(i,o));return[r?N(e,(e=>!T(r,e))):e,i?N(t,(e=>!T(i,e))):t]}function h(e,t,n){const r=e.length!!k(e)));if(!e||t&&e!==t)return;t=e}return t}(t);return void(n&&f(e,n,1))}if(1===i&&!s){const e=O(o,((e,t)=>a[t]?void 0:e));if(e.length)return void p(xb(e),n)}}else for(const n of t)k(n)?i++:p(e,n);if(2097152&n?1===i:i>0)for(const n of t)k(n)&&f(e,n,1)}function C(e,t,n){if(1048576&n.flags||2097152&n.flags){let r=!1;for(const i of n.types)r=C(e,t,i)||r;return r}if(4194304&n.flags){const r=k(n.type);if(r&&!r.isFixed&&!Xw(e)){const i=Uw(e,t,n);i&&f(i,r.typeParameter,262144&mx(e)?16:8)}return!0}if(262144&n.flags){f(qb(e,e.pattern?2:0),n,32);const r=bp(n);return r&&C(e,t,r)||p(xb(K(E(vp(e),S_),E(Kf(e),(e=>e!==ui?e.type:_n)))),Hd(t)),!0}return!1}function w(e,t){16777216&e.flags?(p(e.checkType,t.checkType),p(e.extendsType,t.extendsType),p(Px(e),Px(t)),p(Ax(e),Ax(t))):function(e,t,n,i){const o=r;r|=i,S(e,t,n),r=o}(e,[Px(t),Ax(t)],t.flags,i?64:0)}function D(e,t){p(qd(e),qd(t)),p(Hd(e),Hd(t));const n=Ud(e),r=Ud(t);n&&r&&p(n,r)}function F(e,t){var n,r;if(4&mx(e)&&4&mx(t)&&(e.target===t.target||yC(e)&&yC(t)))h(Kh(e),Kh(t),rT(e.target));else{if(rp(e)&&rp(t)&&D(e,t),32&mx(t)&&!t.declaration.nameType&&C(e,t,qd(t)))return;if(!function(e,t){return UC(e)&&UC(t)?function(e,t){return!(8&t.target.combinedFlags)&&t.target.minLength>e.target.minLength||!(12&t.target.combinedFlags)&&(!!(12&e.target.combinedFlags)||t.target.fixedLength(12&e)==(12&o.target.elementFlags[t]))))){for(let t=0;t0){const e=Rf(t,n),o=e.length;for(let t=0;t1){const t=N(e,sN);if(t.length){const n=xb(t,2);return K(N(e,(e=>!sN(e))),[n])}}return e}(e.candidates),r=function(e){const t=xp(e);return!!t&&QL(16777216&t.flags?wp(t):t,406978556)}(e.typeParameter)||kp(e.typeParameter),i=!r&&e.topLevel&&(e.isFixed||!function(e,t){const n=vg(e);return n?!!n.type&&qw(n.type,t):qw(Tg(e),t)}(t,e.typeParameter)),o=r?A(n,nk):i?A(n,BC):n;return Sw(416&e.priority?xb(o,2):dC(o))}(n,e.signature):void 0,c=n.contraCandidates?function(e){return 416&e.priority?Fb(e.contraCandidates):we(e.contraCandidates,((e,t)=>fS(t,e)?t:e))}(n):void 0;if(s||c){const t=s&&(!c||!(131073&s.flags)&&$(n.contraCandidates,(e=>gS(s,e)))&&v(e.inferences,(e=>e!==n&&xp(e.typeParameter)!==n.typeParameter||v(e.candidates,(e=>gS(e,s))))));o=t?s:c,a=t?c:s}else if(1&e.flags)o=dn;else{const a=of(n.typeParameter);a&&(o=tS(a,(r=function(e,t){const n=e.inferences.slice(t);return Tk(E(n,(e=>e.typeParameter)),E(n,(()=>Ot)))}(e,t),i=e.nonFixingMapper,r?Lk(5,r,i):i)))}}else o=Kw(n);n.inferredType=o||lN(!!(2&e.flags));const s=xp(n.typeParameter);if(s){const t=tS(s,e.nonFixingMapper);o&&e.compareTypes(o,ld(t,o))||(n.inferredType=a&&e.compareTypes(a,ld(t,a))?a:t)}}var r,i;return n.inferredType}function lN(e){return e?wt:Ot}function _N(e){const t=[];for(let n=0;nKF(e)||GF(e)||SD(e))))}function fN(e,t,n,r){switch(e.kind){case 80:if(!_v(e)){const i=dN(e);return i!==xt?`${r?jB(r):"-1"}|${Kv(t)}|${Kv(n)}|${RB(i)}`:void 0}case 110:return`0|${r?jB(r):"-1"}|${Kv(t)}|${Kv(n)}`;case 235:case 217:return fN(e.expression,t,n,r);case 166:const i=fN(e.left,t,n,r);return i&&`${i}.${e.right.escapedText}`;case 211:case 212:const o=gN(e);if(void 0!==o){const i=fN(e.expression,t,n,r);return i&&`${i}.${o}`}if(KD(e)&&zN(e.argumentExpression)){const i=dN(e.argumentExpression);if(cE(i)||lE(i)&&!qF(i)){const o=fN(e.expression,t,n,r);return o&&`${o}.@${RB(i)}`}}break;case 206:case 207:case 262:case 218:case 219:case 174:return`${jB(e)}#${Kv(t)}`}}function mN(e,t){switch(t.kind){case 217:case 235:return mN(e,t.expression);case 226:return nb(t)&&mN(e,t.left)||cF(t)&&28===t.operatorToken.kind&&mN(e,t.right)}switch(e.kind){case 236:return 236===t.kind&&e.keywordToken===t.keywordToken&&e.name.escapedText===t.name.escapedText;case 80:case 81:return _v(e)?110===t.kind:80===t.kind&&dN(e)===dN(t)||(VF(t)||VD(t))&&Ss(dN(e))===ps(t);case 110:return 110===t.kind;case 108:return 108===t.kind;case 235:case 217:return mN(e.expression,t);case 211:case 212:const n=gN(e);if(void 0!==n){const r=kx(t)?gN(t):void 0;if(void 0!==r)return r===n&&mN(e.expression,t.expression)}if(KD(e)&&KD(t)&&zN(e.argumentExpression)&&zN(t.argumentExpression)){const n=dN(e.argumentExpression);if(n===dN(t.argumentExpression)&&(cE(n)||lE(n)&&!qF(n)))return mN(e.expression,t.expression)}break;case 166:return kx(t)&&e.right.escapedText===gN(t)&&mN(e.left,t.expression);case 226:return cF(e)&&28===e.operatorToken.kind&&mN(e.right,t)}return!1}function gN(e){if(HD(e))return e.name.escapedText;if(KD(e))return Lh((t=e).argumentExpression)?pc(t.argumentExpression.text):ob(t.argumentExpression)?function(e){const t=Ka(e,111551,!0);if(!t||!(cE(t)||8&t.flags))return;const n=t.valueDeclaration;if(void 0===n)return;const r=Gl(n);if(r){const e=hN(r);if(void 0!==e)return e}if(Eu(n)&&ca(n,e)){const e=Um(n);if(e){const t=x_(n.parent)?ul(n):Aj(e);return t&&hN(t)}if(zE(n))return Op(n.name)}}(t.argumentExpression):void 0;var t;if(VD(e)){const t=ol(e);return t?pc(t):void 0}return oD(e)?""+e.parent.parameters.indexOf(e):void 0}function hN(e){return 8192&e.flags?e.escapedName:384&e.flags?pc(""+e.value):void 0}function yN(e,t){for(;kx(e);)if(mN(e=e.expression,t))return!0;return!1}function vN(e,t){for(;gl(e);)if(mN(e=e.expression,t))return!0;return!1}function bN(e,t){if(e&&1048576&e.flags){const n=gf(e,t);if(n&&2&nx(n))return void 0===n.links.isDiscriminantProperty&&(n.links.isDiscriminantProperty=!(192&~n.links.checkFlags||cx(S_(n)))),!!n.links.isDiscriminantProperty}return!1}function xN(e,t){let n;for(const r of e)if(bN(t,r.escapedName)){if(n){n.push(r);continue}n=[r]}return n}function SN(e){const t=e.types;if(!(t.length<10||32768&mx(e)||w(t,(e=>!!(59506688&e.flags)))<10)){if(void 0===e.keyPropertyName){const n=d(t,(e=>59506688&e.flags?d(vp(e),(e=>OC(S_(e))?e.escapedName:void 0)):void 0)),r=n&&function(e,t){const n=new Map;let r=0;for(const i of e)if(61603840&i.flags){const e=Uc(i,t);if(e){if(!jC(e))return;let t=!1;FD(e,(e=>{const r=Kv(nk(e)),o=n.get(r);o?o!==Ot&&(n.set(r,Ot),t=!0):n.set(r,i)})),t||r++}}return r>=10&&2*r>=e.length?n:void 0}(t,n);e.keyPropertyName=r?n:"",e.constituentMap=r}return e.keyPropertyName.length?e.keyPropertyName:void 0}}function CN(e,t){var n;const r=null==(n=e.constituentMap)?void 0:n.get(Kv(nk(t)));return r!==Ot?r:void 0}function wN(e,t){const n=SN(e),r=n&&Uc(t,n);return r&&CN(e,r)}function NN(e,t){return mN(e,t)||yN(e,t)}function DN(e,t){if(e.arguments)for(const n of e.arguments)if(NN(t,n)||vN(n,t))return!0;return!(211!==e.expression.kind||!NN(t,e.expression.expression))}function FN(e){return e.id<=0&&(e.id=NB,NB++),e.id}function EN(e){if(256&mx(e))return!1;const t=pp(e);return!!(t.callSignatures.length||t.constructSignatures.length||t.members.get("bind")&&fS(e,Xn))}function PN(e,t){return IN(e,t)&t}function AN(e,t){return 0!==PN(e,t)}function IN(e,t){467927040&e.flags&&(e=qp(e)||Ot);const n=e.flags;if(268435460&n)return H?16317953:16776705;if(134217856&n){const t=128&n&&""===e.value;return H?t?12123649:7929345:t?12582401:16776705}if(40&n)return H?16317698:16776450;if(256&n){const t=0===e.value;return H?t?12123394:7929090:t?12582146:16776450}if(64&n)return H?16317188:16775940;if(2048&n){const t=GC(e);return H?t?12122884:7928580:t?12581636:16775940}return 16&n?H?16316168:16774920:528&n?H?e===Ht||e===Qt?12121864:7927560:e===Ht||e===Qt?12580616:16774920:524288&n?t&(H?83427327:83886079)?16&mx(e)&&LS(e)?H?83427327:83886079:EN(e)?H?7880640:16728e3:H?7888800:16736160:0:16384&n?9830144:32768&n?26607360:65536&n?42917664:12288&n?H?7925520:16772880:67108864&n?H?7888800:16736160:131072&n?0:1048576&n?we(e.types,((e,n)=>e|IN(n,t)),0):2097152&n?function(e,t){const n=QL(e,402784252);let r=0,i=134217727;for(const o of e.types)if(!(n&&524288&o.flags)){const e=IN(o,t);r|=e,i&=e}return 8256&r|134209471&i}(e,t):83886079}function ON(e,t){return OD(e,(e=>AN(e,t)))}function LN(e,t){const n=RN(ON(H&&2&e.flags?In:e,t));if(H)switch(t){case 524288:return jN(n,65536,131072,33554432,zt);case 1048576:return jN(n,131072,65536,16777216,jt);case 2097152:case 4194304:return zD(n,(e=>AN(e,262144)?function(e){return ur||(ur=Py("NonNullable",524288,void 0)||xt),ur!==xt?ny(ur,[e]):Fb([e,Nn])}(e):e))}return n}function jN(e,t,n,r,i){const o=PN(e,50528256);if(!(o&t))return e;const a=xb([Nn,i]);return zD(e,(e=>AN(e,t)?Fb([e,o&r||!AN(e,n)?Nn:a]):e))}function RN(e){return e===In?Ot:e}function MN(e,t){return t?xb([Zc(e),Aj(t)]):e}function BN(e,t){var n;const r=Rb(t);if(!oC(r))return Et;const i=aC(r);return Uc(e,i)||UN(null==(n=Nm(e,i))?void 0:n.type)||Et}function JN(e,t){return AD(e,EC)&&AC(e,t)||UN(rM(65,e,jt,void 0))||Et}function UN(e){return e&&j.noUncheckedIndexedAccess?xb([e,Mt]):e}function VN(e){return uv(rM(65,e,jt,void 0)||Et)}function WN(e){return 226===e.parent.kind&&e.parent.left===e||250===e.parent.kind&&e.parent.initializer===e}function $N(e){return BN(HN(e.parent),e.name)}function HN(e){const{parent:t}=e;switch(t.kind){case 249:return Vt;case 250:return nM(t)||Et;case 226:return function(e){return 209===e.parent.kind&&WN(e.parent)||303===e.parent.kind&&WN(e.parent.parent)?MN(HN(e),e.right):Aj(e.right)}(t);case 220:return jt;case 209:return function(e,t){return JN(HN(e),e.elements.indexOf(t))}(t,e);case 230:return function(e){return VN(HN(e.parent))}(t);case 303:return $N(t);case 304:return function(e){return MN($N(e),e.objectAssignmentInitializer)}(t)}return Et}function KN(e){return aa(e).resolvedType||Aj(e)}function GN(e){return 260===e.kind?function(e){return e.initializer?KN(e.initializer):249===e.parent.parent.kind?Vt:250===e.parent.parent.kind&&nM(e.parent.parent)||Et}(e):function(e){const t=e.parent,n=GN(t.parent);return MN(206===t.kind?BN(n,e.propertyName||e.name):e.dotDotDotToken?VN(n):JN(n,t.elements.indexOf(e)),e.initializer)}(e)}function XN(e){switch(e.kind){case 217:return XN(e.expression);case 226:switch(e.operatorToken.kind){case 64:case 76:case 77:case 78:return XN(e.left);case 28:return XN(e.right)}}return e}function QN(e){const{parent:t}=e;return 217===t.kind||226===t.kind&&64===t.operatorToken.kind&&t.left===e||226===t.kind&&28===t.operatorToken.kind&&t.right===e?QN(t):e}function YN(e){return 296===e.kind?nk(Aj(e.expression)):_n}function ZN(e){const t=aa(e);if(!t.switchTypes){t.switchTypes=[];for(const n of e.caseBlock.clauses)t.switchTypes.push(YN(n))}return t.switchTypes}function tD(e){if($(e.caseBlock.clauses,(e=>296===e.kind&&!Lu(e.expression))))return;const t=[];for(const n of e.caseBlock.clauses){const e=296===n.kind?n.expression.text:void 0;t.push(e&&!T(t,e)?e:void 0)}return t}function TD(e,t){return!!(e===t||131072&e.flags||1048576&t.flags&&function(e,t){if(1048576&e.flags){for(const n of e.types)if(!Gv(t.types,n))return!1;return!0}return!!(1056&e.flags&&su(e)===t)||Gv(t.types,e)}(e,t))}function FD(e,t){return 1048576&e.flags?d(e.types,t):t(e)}function ED(e,t){return 1048576&e.flags?$(e.types,t):t(e)}function AD(e,t){return 1048576&e.flags?v(e.types,t):t(e)}function OD(e,t){if(1048576&e.flags){const n=e.types,r=N(n,t);if(r===n)return e;const i=e.origin;let o;if(i&&1048576&i.flags){const e=i.types,a=N(e,(e=>!!(1048576&e.flags)||t(e)));if(e.length-a.length==n.length-r.length){if(1===a.length)return a[0];o=bb(1048576,a)}}return Tb(r,16809984&e.objectFlags,void 0,void 0,o)}return 131072&e.flags||t(e)?e:_n}function RD(e,t){return OD(e,(e=>e!==t))}function JD(e){return 1048576&e.flags?e.types.length:1}function zD(e,t,n){if(131072&e.flags)return e;if(!(1048576&e.flags))return t(e);const r=e.origin,i=r&&1048576&r.flags?r.types:e.types;let o,a=!1;for(const e of i){const r=1048576&e.flags?zD(e,t,n):t(e);a||(a=e!==r),r&&(o?o.push(r):o=[r])}return a?o&&xb(o,n?0:1):e}function YD(e,t,n,r){return 1048576&e.flags&&n?xb(E(e.types,t),1,n,r):zD(e,t)}function nF(e,t){return OD(e,(e=>!!(e.flags&t)))}function iF(e,t){return QL(e,134217804)&&QL(t,402655616)?zD(e,(e=>4&e.flags?nF(t,402653316):tx(e)&&!QL(t,402653188)?nF(t,128):8&e.flags?nF(t,264):64&e.flags?nF(t,2112):e)):e}function sF(e){return 0===e.flags}function lF(e){return 0===e.flags?e.type:e}function _F(e,t){return t?{flags:0,type:131072&e.flags?dn:e}:e}function uF(e){return ht[e.id]||(ht[e.id]=function(e){const t=Is(256);return t.elementType=e,t}(e))}function gF(e,t){const n=fw(RC(Oj(t)));return TD(n,e.elementType)?e:uF(xb([e.elementType,n]))}function bF(e){return 256&mx(e)?(t=e).finalArrayType||(t.finalArrayType=131072&(n=t.elementType).flags?lr:uv(1048576&n.flags?xb(n.types,2):n)):e;var t,n}function xF(e){return 256&mx(e)?e.elementType:_n}function kF(e){const t=QN(e),n=t.parent,r=HD(n)&&("length"===n.name.escapedText||213===n.parent.kind&&zN(n.name)&&Gh(n.name)),i=212===n.kind&&n.expression===t&&226===n.parent.kind&&64===n.parent.operatorToken.kind&&n.parent.left===n&&!Xg(n.parent)&&YL(Aj(n.argumentExpression),296);return r||i}function TF(e,t){if(8752&(e=Ma(e)).flags)return S_(e);if(7&e.flags){if(262144&nx(e)){const t=e.links.syntheticOrigin;if(t&&TF(t))return S_(e)}const r=e.valueDeclaration;if(r){if((VF(n=r)||cD(n)||sD(n)||oD(n))&&(pv(n)||Fm(n)&&Fu(n)&&n.initializer&&jT(n.initializer)&&mv(n.initializer)))return S_(e);if(VF(r)&&250===r.parent.parent.kind){const e=r.parent.parent,t=NF(e.expression,void 0);if(t)return rM(e.awaitModifier?15:13,t,jt,void 0)}t&&iT(t,jp(r,la._0_needs_an_explicit_type_annotation,ic(e)))}}var n}function NF(e,t){if(!(67108864&e.flags))switch(e.kind){case 80:return TF(Ss(dN(e)),t);case 110:return function(e){const t=Zf(e,!1,!1);if(n_(t)){const e=ig(t);if(e.thisParameter)return TF(e.thisParameter)}if(__(t.parent)){const e=ps(t.parent);return Nv(t)?S_(e):fu(e).thisType}}(e);case 108:return xP(e);case 211:{const n=NF(e.expression,t);if(n){const r=e.name;let i;if(qN(r)){if(!n.symbol)return;i=Cf(n,Uh(n.symbol,r.escapedText))}else i=Cf(n,r.escapedText);return i&&TF(i,t)}return}case 217:return NF(e.expression,t)}}function EF(e){const t=aa(e);let n=t.effectsSignature;if(void 0===n){let r;cF(e)?r=nj(cI(e.right)):244===e.parent.kind?r=NF(e.expression,void 0):108!==e.expression.kind&&(r=gl(e)?fI(sw(Lj(e.expression),e.expression),e.expression):cI(e.expression));const i=Rf(r&&pf(r)||Ot,0),o=1!==i.length||i[0].typeParameters?$(i,PF)?zO(e):void 0:i[0];n=t.effectsSignature=o&&PF(o)?o:ci}return n===ci?void 0:n}function PF(e){return!!(vg(e)||e.declaration&&131072&(Fg(e.declaration)||Ot).flags)}function LF(e){const t=RF(e,!1);return ti=e,ni=t,t}function jF(e){const t=oh(e,!0);return 97===t.kind||226===t.kind&&(56===t.operatorToken.kind&&(jF(t.left)||jF(t.right))||57===t.operatorToken.kind&&jF(t.left)&&jF(t.right))}function RF(e,t){for(;;){if(e===ti)return ni;const n=e.flags;if(4096&n){if(!t){const t=FN(e),n=eo[t];return void 0!==n?n:eo[t]=RF(e,!0)}t=!1}if(368&n)e=e.antecedent;else if(512&n){const t=EF(e.node);if(t){const n=vg(t);if(n&&3===n.kind&&!n.type){const t=e.node.arguments[n.parameterIndex];if(t&&jF(t))return!1}if(131072&Tg(t).flags)return!1}e=e.antecedent}else{if(4&n)return $(e.antecedent,(e=>RF(e,!1)));if(8&n){const t=e.antecedent;if(void 0===t||0===t.length)return!1;e=t[0]}else{if(!(128&n)){if(1024&n){ti=void 0;const t=e.node.target,n=t.antecedent;t.antecedent=e.node.antecedents;const r=RF(e.antecedent,!1);return t.antecedent=n,r}return!(1&n)}{const t=e.node;if(t.clauseStart===t.clauseEnd&&ML(t.switchStatement))return!1;e=e.antecedent}}}}}function MF(e,t){for(;;){const n=e.flags;if(4096&n){if(!t){const t=FN(e),n=to[t];return void 0!==n?n:to[t]=MF(e,!0)}t=!1}if(496&n)e=e.antecedent;else if(512&n){if(108===e.node.expression.kind)return!0;e=e.antecedent}else{if(4&n)return v(e.antecedent,(e=>MF(e,!1)));if(!(8&n)){if(1024&n){const t=e.node.target,n=t.antecedent;t.antecedent=e.node.antecedents;const r=MF(e.antecedent,!1);return t.antecedent=n,r}return!!(1&n)}e=e.antecedent[0]}}}function BF(e){switch(e.kind){case 110:return!0;case 80:if(!_v(e)){const t=dN(e);return cE(t)||lE(t)&&!qF(t)||!!t.valueDeclaration&&eF(t.valueDeclaration)}break;case 211:case 212:return BF(e.expression)&&WL(aa(e).resolvedSymbol||xt);case 206:case 207:const t=Qh(e.parent);return oD(t)||LT(t)?!ZF(t):VF(t)&&uz(t)}return!1}function JF(e,t,n=t,r,i=(t=>null==(t=tt(e,Ig))?void 0:t.flowNode)()){let o,a=!1,s=0;if(Ti)return Et;if(!i)return t;Ci++;const c=Si,l=lF(d(i));Si=c;const _=256&mx(l)&&kF(e)?lr:bF(l);return _===fn||e.parent&&235===e.parent.kind&&!(131072&_.flags)&&131072&ON(_,2097152).flags?t:_;function u(){return a?o:(a=!0,o=fN(e,t,n,r))}function d(i){var o;if(2e3===s)return null==(o=Hn)||o.instant(Hn.Phase.CheckTypes,"getTypeAtFlowNode_DepthLimit",{flowId:i.id}),Ti=!0,function(e){const t=_c(e,c_),n=hd(e),r=Hp(n,t.statements.pos);uo.add(Kx(n,r.start,r.length,la.The_containing_function_or_module_body_is_too_large_for_control_flow_analysis))}(e),Et;let a;for(s++;;){const o=i.flags;if(4096&o){for(let e=c;efunction(e,t){if(!(1048576&e.flags))return gS(e,t);for(const n of e.types)if(gS(n,t))return!0;return!1}(t,e))),r=512&t.flags&&rk(t)?zD(n,ek):n;return gS(t,r)?r:e}(e,t))}(e,p(n)):e}if(yN(e,r)){if(!LF(n))return fn;if(VF(r)&&(Fm(r)||uz(r))){const e=Vm(r);if(e&&(218===e.kind||219===e.kind))return d(n.antecedent)}return t}if(VF(r)&&249===r.parent.parent.kind&&(mN(e,r.parent.parent.expression)||vN(r.parent.parent.expression,e)))return _I(bF(lF(d(n.antecedent))))}function m(e,t){const n=oh(t,!0);if(97===n.kind)return fn;if(226===n.kind){if(56===n.operatorToken.kind)return m(m(e,n.left),n.right);if(57===n.operatorToken.kind)return xb([m(e,n.left),m(e,n.right)])}return Q(e,n,!0)}function g(e){const t=EF(e.node);if(t){const n=vg(t);if(n&&(2===n.kind||3===n.kind)){const t=d(e.antecedent),r=bF(lF(t)),i=n.type?X(r,n,e.node,!0):3===n.kind&&n.parameterIndex>=0&&n.parameterIndex297===e.kind));if(n===r||o>=n&&oPN(e,t)===t))}return xb(E(i.slice(n,r),(t=>t?U(e,t):_n)))}(i,t.node);else if(112===n.kind)i=function(e,{switchStatement:t,clauseStart:n,clauseEnd:r}){const i=k(t.caseBlock.clauses,(e=>297===e.kind)),o=n===r||i>=n&&i296===t.kind?Q(e,t.expression,!0):_n)))}(i,t.node);else{H&&(vN(n,e)?i=z(i,t.node,(e=>!(163840&e.flags))):221===n.kind&&vN(n.expression,e)&&(i=z(i,t.node,(e=>!(131072&e.flags||128&e.flags&&"undefined"===e.value)))));const r=D(n,i);r&&(i=function(e,t,n){if(n.clauseStartCN(e,t)||Ot)));if(t!==Ot)return t}return F(e,t,(e=>q(e,n)))}(i,r,t.node))}return _F(i,sF(r))}function S(e){const r=[];let i,o=!1,a=!1;for(const s of e.antecedent){if(!i&&128&s.flags&&s.node.clauseStart===s.node.clauseEnd){i=s;continue}const e=d(s),c=lF(e);if(c===t&&t===n)return c;ce(r,c),TD(c,n)||(o=!0),sF(e)&&(a=!0)}if(i){const e=d(i),s=lF(e);if(!(131072&s.flags||T(r,s)||ML(i.node.switchStatement))){if(s===t&&t===n)return s;r.push(s),TD(s,n)||(o=!0),sF(e)&&(a=!0)}}return _F(N(r,o?2:1),a)}function w(e){const r=FN(e),i=Ki[r]||(Ki[r]=new Map),o=u();if(!o)return t;const a=i.get(o);if(a)return a;for(let t=xi;t{const t=Vc(e,r)||Ot;return!(131072&t.flags)&&!(131072&s.flags)&&vS(s,t)}))}function P(e,t,n,r,i){if((37===n||38===n)&&1048576&e.flags){const o=SN(e);if(o&&o===gN(t)){const t=CN(e,Aj(r));if(t)return n===(i?37:38)?t:OC(Uc(t,o)||Ot)?RD(e,t):e}}return F(e,t,(e=>M(e,n,r,i)))}function I(t,n,r){if(mN(e,n))return LN(t,r?4194304:8388608);H&&r&&vN(n,e)&&(t=LN(t,2097152));const i=D(n,t);return i?F(t,i,(e=>ON(e,r?4194304:8388608))):t}function O(e,t,n){const r=Cf(e,t);return r?!!(16777216&r.flags||48&nx(r))||n:!!Nm(e,t)||!n}function L(e,t,n,r,i){return Q(e,t,i=i!==(112===n.kind)!=(38!==r&&36!==r))}function j(t,n,r){switch(n.operatorToken.kind){case 64:case 76:case 77:case 78:return I(Q(t,n.right,r),n.left,r);case 35:case 36:case 37:case 38:const i=n.operatorToken.kind,o=XN(n.left),a=XN(n.right);if(221===o.kind&&Lu(a))return B(t,o,i,a,r);if(221===a.kind&&Lu(o))return B(t,a,i,o,r);if(mN(e,o))return M(t,i,a,r);if(mN(e,a))return M(t,i,o,r);H&&(vN(o,e)?t=R(t,i,a,r):vN(a,e)&&(t=R(t,i,o,r)));const s=D(o,t);if(s)return P(t,s,i,a,r);const c=D(a,t);if(c)return P(t,c,i,o,r);if(W(o))return $(t,i,a,r);if(W(a))return $(t,i,o,r);if(o_(a)&&!kx(o))return L(t,o,a,i,r);if(o_(o)&&!kx(a))return L(t,a,o,i,r);break;case 104:return function(t,n,r){const i=XN(n.left);if(!mN(e,i))return r&&H&&vN(i,e)?LN(t,2097152):t;const o=Aj(n.right);if(!hS(o,Gn))return t;const a=EF(n),s=a&&vg(a);if(s&&1===s.kind&&0===s.parameterIndex)return G(t,s.type,r,!0);if(!hS(o,Xn))return t;const c=zD(o,K);return(!Wc(t)||c!==Gn&&c!==Xn)&&(r||524288&c.flags&&!jS(c))?G(t,c,r,!0):t}(t,n,r);case 103:if(qN(n.left))return function(t,n,r){const i=XN(n.right);if(!mN(e,i))return t;un.assertNode(n.left,qN);const o=bI(n.left);if(void 0===o)return t;const a=o.parent;return G(t,Dv(un.checkDefined(o.valueDeclaration,"should always have a declaration"))?S_(a):fu(a),r,!0)}(t,n,r);const l=XN(n.right);if(lw(t)&&kx(e)&&mN(e.expression,l)){const i=Aj(n.left);if(oC(i)&&gN(e)===aC(i))return ON(t,r?524288:65536)}if(mN(e,l)){const e=Aj(n.left);if(oC(e))return function(e,t,n){const r=aC(t);if(ED(e,(e=>O(e,r,!0))))return OD(e,(e=>O(e,r,n)));if(n){const n=($r||($r=Ey("Record",2,!0)||xt),$r===xt?void 0:$r);if(n)return Fb([e,ny(n,[t,Ot])])}return e}(t,e,r)}break;case 28:return Q(t,n.right,r);case 56:return r?Q(Q(t,n.left,!0),n.right,!0):xb([Q(t,n.left,!1),Q(t,n.right,!1)]);case 57:return r?xb([Q(t,n.left,!0),Q(t,n.right,!0)]):Q(Q(t,n.left,!1),n.right,!1)}return t}function R(e,t,n,r){const i=35===t||37===t,o=35===t||36===t?98304:32768,a=Aj(n);return i!==r&&AD(a,(e=>!!(e.flags&o)))||i===r&&AD(a,(e=>!(e.flags&(3|o))))?LN(e,2097152):e}function M(e,t,n,r){if(1&e.flags)return e;36!==t&&38!==t||(r=!r);const i=Aj(n),o=35===t||36===t;if(98304&i.flags)return H?LN(e,o?r?262144:2097152:65536&i.flags?r?131072:1048576:r?65536:524288):e;if(r){if(!o&&(2&e.flags||ED(e,jS))){if(469893116&i.flags||jS(i))return i;if(524288&i.flags)return mn}return iF(OD(e,(e=>{return vS(e,i)||o&&(t=i,!!(524&e.flags)&&!!(28&t.flags));var t})),i)}return OC(i)?OD(e,(e=>!(LC(e)&&vS(e,i)))):e}function B(t,n,r,i,o){36!==r&&38!==r||(o=!o);const a=XN(n.expression);if(!mN(e,a)){H&&vN(a,e)&&o===("undefined"!==i.text)&&(t=LN(t,2097152));const n=D(a,t);return n?F(t,n,(e=>J(e,i,o))):t}return J(t,i,o)}function J(e,t,n){return n?U(e,t.text):LN(e,FB.get(t.text)||32768)}function z(e,{switchStatement:t,clauseStart:n,clauseEnd:r},i){return n!==r&&v(ZN(t).slice(n,r),i)?ON(e,2097152):e}function q(e,{switchStatement:t,clauseStart:n,clauseEnd:r}){const i=ZN(t);if(!i.length)return e;const o=i.slice(n,r),a=n===r||T(o,_n);if(2&e.flags&&!a){let t;for(let n=0;nvS(s,e))),s);if(!a)return c;const l=OD(e,(e=>!(LC(e)&&T(i,32768&e.flags?jt:nk(function(e){return 2097152&e.flags&&b(e.types,OC)||e}(e))))));return 131072&c.flags?l:xb([c,l])}function U(e,t){switch(t){case"string":return V(e,Vt,1);case"number":return V(e,Wt,2);case"bigint":return V(e,$t,4);case"boolean":return V(e,sn,8);case"symbol":return V(e,cn,16);case"object":return 1&e.flags?e:xb([V(e,mn,32),V(e,zt,131072)]);case"function":return 1&e.flags?e:V(e,Xn,64);case"undefined":return V(e,jt,65536)}return V(e,mn,128)}function V(e,t,n){return zD(e,(e=>zS(e,t,go)?AN(e,n)?e:_n:fS(t,e)?t:AN(e,n)?Fb([e,t]):_n))}function W(t){return(HD(t)&&"constructor"===mc(t.name)||KD(t)&&Lu(t.argumentExpression)&&"constructor"===t.argumentExpression.text)&&mN(e,t.expression)}function $(e,t,n,r){if(r?35!==t&&37!==t:36!==t&&38!==t)return e;const i=Aj(n);if(!bJ(i)&&!J_(i))return e;const o=Cf(i,"prototype");if(!o)return e;const a=S_(o),s=Wc(a)?void 0:a;return s&&s!==Gn&&s!==Xn?Wc(e)?s:OD(e,(e=>{return n=s,524288&(t=e).flags&&1&mx(t)||524288&n.flags&&1&mx(n)?t.symbol===n.symbol:fS(t,n);var t,n})):e}function K(e){const t=Uc(e,"prototype");if(t&&!Wc(t))return t;const n=Rf(e,1);return n.length?xb(E(n,(e=>Tg(Hg(e))))):Nn}function G(e,t,n,r){const i=1048576&e.flags?`N${Kv(e)},${Kv(t)},${(n?1:0)|(r?2:0)}`:void 0;return No(i)??Fo(i,function(e,t,n,r){if(!n){if(e===t)return _n;if(r)return OD(e,(e=>!hS(e,t)));const n=G(e,t,!0,!1);return OD(e,(e=>!TD(e,n)))}if(3&e.flags)return t;if(e===t)return t;const i=r?hS:fS,o=1048576&e.flags?SN(e):void 0,a=zD(t,(t=>{const n=o&&Uc(t,o),a=zD(n&&CN(e,n)||e,r?e=>hS(e,t)?e:hS(t,e)?t:_n:e=>mS(e,t)?e:mS(t,e)?t:fS(e,t)?e:fS(t,e)?t:_n);return 131072&a.flags?zD(e,(e=>QL(e,465829888)&&i(t,qp(e)||Ot)?Fb([e,t]):_n)):a}));return 131072&a.flags?fS(t,e)?t:gS(e,t)?e:gS(t,e)?t:Fb([e,t]):a}(e,t,n,r))}function X(t,n,r,i){if(n.type&&(!Wc(t)||n.type!==Gn&&n.type!==Xn)){const o=function(e,t){if(1===e.kind||3===e.kind)return t.arguments[e.parameterIndex];const n=oh(t.expression);return kx(n)?oh(n.expression):void 0}(n,r);if(o){if(mN(e,o))return G(t,n.type,i,!1);H&&vN(o,e)&&(i&&!AN(n.type,65536)||!i&&AD(n.type,lI))&&(t=LN(t,2097152));const r=D(o,t);if(r)return F(t,r,(e=>G(e,n.type,i,!1)))}}return t}function Q(t,n,r){if(yl(n)||cF(n.parent)&&(61===n.parent.operatorToken.kind||78===n.parent.operatorToken.kind)&&n.parent.left===n)return function(t,n,r){if(mN(e,n))return LN(t,r?2097152:262144);const i=D(n,t);return i?F(t,i,(e=>ON(e,r?2097152:262144))):t}(t,n,r);switch(n.kind){case 80:if(!mN(e,n)&&C<5){const i=dN(n);if(cE(i)){const n=i.valueDeclaration;if(n&&VF(n)&&!n.type&&n.initializer&&BF(e)){C++;const e=Q(t,n.initializer,r);return C--,e}}}case 110:case 108:case 211:case 212:return I(t,n,r);case 213:return function(t,n,r){if(DN(n,e)){const e=r||!ml(n)?EF(n):void 0,i=e&&vg(e);if(i&&(0===i.kind||1===i.kind))return X(t,i,n,r)}if(lw(t)&&kx(e)&&HD(n.expression)){const i=n.expression;if(mN(e.expression,XN(i.expression))&&zN(i.name)&&"hasOwnProperty"===i.name.escapedText&&1===n.arguments.length){const i=n.arguments[0];if(Lu(i)&&gN(e)===pc(i.text))return ON(t,r?524288:65536)}}return t}(t,n,r);case 217:case 235:return Q(t,n.expression,r);case 226:return j(t,n,r);case 224:if(54===n.operator)return Q(t,n.operand,!r)}return t}}function zF(e){return _c(e.parent,(e=>n_(e)&&!im(e)||268===e.kind||307===e.kind||172===e.kind))}function qF(e){return!UF(e,void 0)}function UF(e,t){const n=_c(e.valueDeclaration,oE);if(!n)return!1;const r=aa(n);return 131072&r.flags||(r.flags|=131072,_c(n.parent,(e=>oE(e)&&!!(131072&aa(e).flags)))||aE(n)),!e.lastAssignmentPos||t&&Math.abs(e.lastAssignmentPos)232!==e.kind&&iE(e.name)))}function oE(e){return i_(e)||qE(e)}function aE(e){switch(e.kind){case 80:const t=Gg(e);if(0!==t){const n=dN(e),r=1===t||void 0!==n.lastAssignmentPos&&n.lastAssignmentPos<0;if(lE(n)){if(void 0===n.lastAssignmentPos||Math.abs(n.lastAssignmentPos)!==Number.MAX_VALUE){const t=_c(e,oE),r=_c(n.valueDeclaration,oE);n.lastAssignmentPos=t===r?function(e,t){let n=e.pos;for(;e&&e.pos>t.pos;){switch(e.kind){case 243:case 244:case 245:case 246:case 247:case 248:case 249:case 250:case 254:case 255:case 258:case 263:n=e.end}e=e.parent}return n}(e,n.valueDeclaration):Number.MAX_VALUE}r&&n.lastAssignmentPos>0&&(n.lastAssignmentPos*=-1)}}return;case 281:const n=e.parent.parent,r=e.propertyName||e.name;if(!e.isTypeOnly&&!n.isTypeOnly&&!n.moduleSpecifier&&11!==r.kind){const e=Ka(r,111551,!0,!0);if(e&&lE(e)){const t=void 0!==e.lastAssignmentPos&&e.lastAssignmentPos<0?-1:1;e.lastAssignmentPos=t*Number.MAX_VALUE}}return;case 264:case 265:case 266:return}v_(e)||PI(e,aE)}function cE(e){return 3&e.flags&&!!(6&ZA(e))}function lE(e){const t=e.valueDeclaration&&Qh(e.valueDeclaration);return!!t&&(oD(t)||VF(t)&&(RE(t.parent)||uE(t)))}function uE(e){return!!(1&e.parent.flags)&&!(32&rc(e)||243===e.parent.parent.kind&&Xp(e.parent.parent.parent))}function hE(e){return 2097152&e.flags?$(e.types,hE):!!(465829888&e.flags&&1146880&Wp(e).flags)}function yE(e){return 2097152&e.flags?$(e.types,yE):!(!(465829888&e.flags)||QL(Wp(e),98304))}function vE(e,t,n){dy(e)&&(e=e.baseType);const r=!(n&&2&n)&&ED(e,hE)&&(function(e,t){const n=t.parent;return 211===n.kind||166===n.kind||213===n.kind&&n.expression===t||214===n.kind&&n.expression===t||212===n.kind&&n.expression===t&&!(ED(e,yE)&&_x(Aj(n.argumentExpression)))}(e,t)||function(e,t){const n=(zN(e)||HD(e)||KD(e))&&!((TE(e.parent)||SE(e.parent))&&e.parent.tagName===e)&&sA(e,t&&32&t?8:void 0);return n&&!cx(n)}(t,n));return r?zD(e,Wp):e}function bE(e){return!!_c(e,(e=>{const t=e.parent;return void 0===t?"quit":pE(t)?t.expression===e&&ob(e):!!gE(t)&&(t.name===e||t.propertyName===e)}))}function CE(e,t,n,r){if(Me&&(!(33554432&e.flags)||sD(e)||cD(e)))switch(t){case 1:return DE(e);case 2:return AE(e,n,r);case 3:return OE(e);case 4:return LE(e);case 5:return UE(e);case 6:return HE(e);case 7:return KE(e);case 8:return GE(e);case 0:if(zN(e)&&(vm(e)||BE(e.parent)||tE(e.parent)&&e.parent.moduleReference===e)&&uP(e)){if(A_(e.parent)&&(HD(e.parent)?e.parent.expression:e.parent.left)!==e)return;return void DE(e)}if(A_(e)){let t=e;for(;A_(t);){if(Tf(t))return;t=t.parent}return AE(e)}if(pE(e))return OE(e);if(vu(e)||NE(e))return LE(e);if(tE(e))return wm(e)||nB(e)?HE(e):void 0;if(gE(e))return KE(e);if((i_(e)||lD(e))&&UE(e),!j.emitDecoratorMetadata)return;if(!(iI(e)&&Ov(e)&&e.modifiers&&um(J,e,e.parent,e.parent.parent)))return;return GE(e);default:un.assertNever(t,`Unhandled reference hint: ${t}`)}}function DE(e){const t=dN(e);t&&t!==Le&&t!==xt&&!_v(e)&&XE(t,e)}function AE(e,t,n){const r=HD(e)?e.expression:e.left;if(cv(r)||!zN(r))return;const i=dN(r);if(!i||i===xt)return;if(xk(j)||Dk(j)&&bE(e))return void XE(i,e);const o=n||fj(r);if(Wc(o)||o===dn)return void XE(i,e);let a=t;if(!a&&!n){const t=HD(e)?e.name:e.right,n=qN(t)&&vI(t.escapedText,t),r=pf(0!==Gg(e)||yI(e)?Sw(o):o);a=qN(t)?n&&xI(r,n)||void 0:Cf(r,t.escapedText)}a&&(_J(a)||8&a.flags&&306===e.parent.kind)||XE(i,e)}function OE(e){if(zN(e.expression)){const t=e.expression,n=Ss(Ka(t,-1,!0,!0,e));n&&XE(n,t)}}function LE(e){if(!MA(e)){const t=uo&&2===j.jsx?la.This_JSX_tag_requires_0_to_be_in_scope_but_it_could_not_be_found:void 0,n=Eo(e),r=vu(e)?e.tagName:e;let i;if(NE(e)&&"null"===n||(i=Ue(r,n,1===j.jsx?111167:111551,t,!0)),i&&(i.isReferenced=-1,Me&&2097152&i.flags&&!Wa(i)&&QE(i)),NE(e)){const n=Ao(hd(e));n&&Ue(r,n,1===j.jsx?111167:111551,t,!0)}}}function UE(e){if(R<2&&2&Ih(e)){rP((t=mv(e))&&lm(t),!1)}var t}function HE(e){wv(e,32)&&eP(e)}function KE(e){if(e.parent.parent.moduleSpecifier||e.isTypeOnly||e.parent.parent.isTypeOnly);else{const t=e.propertyName||e.name;if(11===t.kind)return;const n=Ue(t,t.escapedText,2998271,void 0,!0);if(n&&(n===De||n===Fe||n.declarations&&Xp(qc(n.declarations[0]))));else{const r=n&&(2097152&n.flags?Ba(n):n);(!r||111551&za(r))&&(eP(e),DE(t))}}}function GE(e){if(j.emitDecoratorMetadata){const t=b(e.modifiers,aD);if(!t)return;switch(NJ(t,16),e.kind){case 263:const t=rv(e);if(t)for(const e of t.parameters)iP(xR(e));break;case 177:case 178:const n=177===e.kind?178:177,r=Wu(ps(e),n);iP(Xl(e)||r&&Xl(r));break;case 174:for(const t of e.parameters)iP(xR(t));iP(mv(e));break;case 172:iP(pv(e));break;case 169:iP(xR(e));const i=e.parent;for(const e of i.parameters)iP(xR(e));iP(mv(i))}}}function XE(e,t){if(Me&&Ra(e,111551)&&!lv(t)){const n=Ba(e);1160127&za(e,!0)&&(xk(j)||Dk(j)&&bE(t)||!_J(Ss(n)))&&QE(e)}}function QE(e){un.assert(Me);const t=oa(e);if(!t.referenced){t.referenced=!0;const n=ba(e);if(!n)return un.fail();wm(n)&&111551&za(Ma(e))&&DE(ab(n.moduleReference))}}function eP(e){const t=ps(e),n=Ba(t);n&&(n===xt||111551&za(t,!0)&&!_J(n))&&QE(t)}function rP(e,t){if(!e)return;const n=ab(e),r=2097152|(80===e.kind?788968:1920),i=Ue(n,n.escapedText,r,void 0,!0);if(i&&2097152&i.flags)if(Me&&Cs(i)&&!_J(Ba(i))&&!Wa(i))QE(i);else if(t&&xk(j)&&yk(j)>=5&&!Cs(i)&&!$(i.declarations,Jl)){const t=jo(e,la.A_type_referenced_in_a_decorated_signature_must_be_imported_with_import_type_or_a_namespace_import_when_isolatedModules_and_emitDecoratorMetadata_are_enabled),r=b(i.declarations||l,xa);r&&iT(t,jp(r,la._0_was_imported_here,mc(n)))}}function iP(e){const t=vR(e);t&&Zl(t)&&rP(t,!0)}function cP(e,t){if(_v(e))return;if(t===Le){if(wI(e))return void jo(e,la.arguments_cannot_be_referenced_in_property_initializers);let t=Hf(e);if(t)for(R<2&&(219===t.kind?jo(e,la.The_arguments_object_cannot_be_referenced_in_an_arrow_function_in_ES5_Consider_using_a_standard_function_expression):wv(t,1024)&&jo(e,la.The_arguments_object_cannot_be_referenced_in_an_async_function_or_method_in_ES5_Consider_using_a_standard_function_or_method)),aa(t).flags|=512;t&&tF(t);)t=Hf(t),t&&(aa(t).flags|=512);return}const n=Ss(t),r=oB(n,e);qo(r)&&Qb(e,r)&&r.declarations&&Vo(e,r.declarations,e.escapedText);const i=n.valueDeclaration;if(i&&32&n.flags&&__(i)&&i.name!==e){let t=Zf(e,!1,!1);for(;307!==t.kind&&t.parent!==i;)t=Zf(t,!1,!1);307!==t.kind&&(aa(i).flags|=262144,aa(t).flags|=262144,aa(e).flags|=536870912)}!function(e,t){if(R>=2||!(34&t.flags)||!t.valueDeclaration||qE(t.valueDeclaration)||299===t.valueDeclaration.parent.kind)return;const n=Dp(t.valueDeclaration),r=function(e,t){return!!_c(e,(e=>e===t?"quit":n_(e)||e.parent&&cD(e.parent)&&!Dv(e.parent)&&e.parent.initializer===e))}(e,n),i=dP(n);if(i){if(r){let r=!0;if(AF(n)){const i=Sh(t.valueDeclaration,261);if(i&&i.parent===n){const i=function(e,t){return _c(e,(e=>e===t?"quit":e===t.initializer||e===t.condition||e===t.incrementor||e===t.statement))}(e.parent,n);if(i){const e=aa(i);e.flags|=8192,ce(e.capturedBlockScopeBindings||(e.capturedBlockScopeBindings=[]),t),i===n.initializer&&(r=!1)}}}r&&(aa(i).flags|=4096)}if(AF(n)){const r=Sh(t.valueDeclaration,261);r&&r.parent===n&&function(e,t){let n=e;for(;217===n.parent.kind;)n=n.parent;let r=!1;if(Xg(n))r=!0;else if(224===n.parent.kind||225===n.parent.kind){const e=n.parent;r=46===e.operator||47===e.operator}return!!r&&!!_c(n,(e=>e===t?"quit":e===t.statement))}(e,n)&&(aa(t.valueDeclaration).flags|=65536)}aa(t.valueDeclaration).flags|=32768}r&&(aa(t.valueDeclaration).flags|=16384)}(e,t)}function lP(e,t){if(_v(e))return yP(e);const n=dN(e);if(n===xt)return Et;if(cP(e,n),n===Le)return wI(e)?Et:S_(n);uP(e)&&CE(e,1);const r=Ss(n);let i=r.valueDeclaration;const o=i;if(i&&208===i.kind&&T(Pi,i.parent)&&_c(e,(e=>e===i.parent)))return At;let a=function(e,t){var n;const r=S_(e),i=e.valueDeclaration;if(i){if(VD(i)&&!i.initializer&&!i.dotDotDotToken&&i.parent.elements.length>=2){const e=i.parent.parent,n=Qh(e);if(260===n.kind&&6&_z(n)||169===n.kind){const r=aa(e);if(!(4194304&r.flags)){r.flags|=4194304;const o=Kc(e,0),a=o&&zD(o,Wp);if(r.flags&=-4194305,a&&1048576&a.flags&&(169!==n.kind||!ZF(n))){const e=JF(i.parent,a,a,void 0,t.flowNode);return 131072&e.flags?_n:pl(i,e,!0)}}}}if(oD(i)&&!i.type&&!i.initializer&&!i.dotDotDotToken){const e=i.parent;if(e.parameters.length>=2&&cS(e)){const r=vA(e);if(r&&1===r.parameters.length&&UB(r)){const o=ff(tS(S_(r.parameters[0]),null==(n=fA(e))?void 0:n.nonFixingMapper));if(1048576&o.flags&&AD(o,UC)&&!$(e.parameters,ZF))return vx(JF(e,o,o,void 0,t.flowNode),ok(e.parameters.indexOf(i)-(av(e)?1:0)))}}}}return r}(r,e);const s=Gg(e);if(s){if(!(3&r.flags||Fm(e)&&512&r.flags))return jo(e,384&r.flags?la.Cannot_assign_to_0_because_it_is_an_enum:32&r.flags?la.Cannot_assign_to_0_because_it_is_a_class:1536&r.flags?la.Cannot_assign_to_0_because_it_is_a_namespace:16&r.flags?la.Cannot_assign_to_0_because_it_is_a_function:2097152&r.flags?la.Cannot_assign_to_0_because_it_is_an_import:la.Cannot_assign_to_0_because_it_is_not_a_variable,ic(n)),Et;if(WL(r))return 3&r.flags?jo(e,la.Cannot_assign_to_0_because_it_is_a_constant,ic(n)):jo(e,la.Cannot_assign_to_0_because_it_is_a_read_only_property,ic(n)),Et}const c=2097152&r.flags;if(3&r.flags){if(1===s)return Qg(e)?RC(a):a}else{if(!c)return a;i=ba(n)}if(!i)return a;a=vE(a,e,t);const l=169===Qh(i).kind,_=zF(i);let u=zF(e);const d=u!==_,p=e.parent&&e.parent.parent&&JE(e.parent)&&WN(e.parent.parent),f=134217728&n.flags,m=a===Nt||a===lr,g=m&&235===e.parent.kind;for(;u!==_&&(218===u.kind||219===u.kind||Bf(u))&&(cE(r)&&a!==lr||lE(r)&&UF(r,e));)u=zF(u);const h=o&&VF(o)&&!o.initializer&&!o.exclamationToken&&uE(o)&&!function(e){return(void 0!==e.lastAssignmentPos||qF(e)&&void 0!==e.lastAssignmentPos)&&e.lastAssignmentPos<0}(n),y=l||c||d&&!h||p||f||function(e,t){if(VD(t)){const n=_c(e,VD);return n&&Qh(n)===Qh(t)}}(e,i)||a!==Nt&&a!==lr&&(!H||!!(16387&a.flags)||lv(e)||pN(e)||281===e.parent.kind)||235===e.parent.kind||260===i.kind&&i.exclamationToken||33554432&i.flags,v=g?jt:y?l?function(e,t){const n=H&&169===t.kind&&t.initializer&&AN(e,16777216)&&!function(e){const t=aa(e);if(void 0===t.parameterInitializerContainsUndefined){if(!Mc(e,8))return g_(e.symbol),!0;const n=!!AN(gj(e,0),16777216);if(!zc())return g_(e.symbol),!0;t.parameterInitializerContainsUndefined??(t.parameterInitializerContainsUndefined=n)}return t.parameterInitializerContainsUndefined}(t);return n?ON(e,524288):e}(a,i):a:m?jt:tw(a),b=g?rw(JF(e,a,v,u)):JF(e,a,v,u);if(kF(e)||a!==Nt&&a!==lr){if(!y&&!RS(a)&&RS(b))return jo(e,la.Variable_0_is_used_before_being_assigned,ic(n)),a}else if(b===Nt||b===lr)return ne&&(jo(Tc(i),la.Variable_0_implicitly_has_type_1_in_some_locations_where_its_type_cannot_be_determined,ic(n),sc(b)),jo(e,la.Variable_0_implicitly_has_an_1_type,ic(n),sc(b))),$R(b);return s?RC(b):b}function uP(e){var t;const n=e.parent;if(n){if(HD(n)&&n.expression===e)return!1;if(gE(n)&&n.isTypeOnly)return!1;const r=null==(t=n.parent)?void 0:t.parent;if(r&&fE(r)&&r.isTypeOnly)return!1}return!0}function dP(e){return _c(e,(e=>!e||Yh(e)?"quit":W_(e,!1)))}function pP(e,t){aa(e).flags|=2,172===t.kind||176===t.kind?aa(t.parent).flags|=4:aa(t).flags|=4}function fP(e){return sf(e)?e:n_(e)?void 0:PI(e,fP)}function mP(e){return Q_(fu(ps(e)))===Ut}function hP(e,t,n){const r=t.parent;yh(r)&&!mP(r)&&Ig(e)&&e.flowNode&&!MF(e.flowNode,!1)&&jo(e,n)}function yP(e){const t=lv(e);let n=Zf(e,!0,!0),r=!1,i=!1;for(176===n.kind&&hP(e,n,la.super_must_be_called_before_accessing_this_in_the_constructor_of_a_derived_class);219===n.kind&&(n=Zf(n,!1,!i),r=!0),167===n.kind;)n=Zf(n,!r,!1),i=!0;if(function(e,t){cD(t)&&Dv(t)&&J&&t.initializer&&Ps(t.initializer,e.pos)&&Ov(t.parent)&&jo(e,la.Cannot_use_this_in_a_static_property_initializer_of_a_decorated_class)}(e,n),i)jo(e,la.this_cannot_be_referenced_in_a_computed_property_name);else switch(n.kind){case 267:jo(e,la.this_cannot_be_referenced_in_a_module_or_namespace_body);break;case 266:jo(e,la.this_cannot_be_referenced_in_current_location)}!t&&r&&R<2&&pP(e,n);const o=vP(e,!0,n);if(oe){const t=S_(Fe);if(o===t&&r)jo(e,la.The_containing_arrow_function_captures_the_global_value_of_this);else if(!o){const r=jo(e,la.this_implicitly_has_type_any_because_it_does_not_have_a_type_annotation);if(!qE(n)){const e=vP(n);e&&e!==t&&iT(r,jp(n,la.An_outer_value_of_this_is_shadowed_by_this_container))}}}return o||wt}function vP(e,t=!0,n=Zf(e,!1,!1)){const r=Fm(e);if(n_(n)&&(!LP(e)||av(n))){let t=yg(ig(n))||r&&function(e){const t=Xc(e);if(t&&t.typeExpression)return dk(t.typeExpression);const n=sg(e);return n?yg(n):void 0}(n);if(!t){const e=function(e){return 218===e.kind&&cF(e.parent)&&3===eg(e.parent)?e.parent.left.expression.expression:174===e.kind&&210===e.parent.kind&&cF(e.parent.parent)&&6===eg(e.parent.parent)?e.parent.parent.left.expression:218===e.kind&&303===e.parent.kind&&210===e.parent.parent.kind&&cF(e.parent.parent.parent)&&6===eg(e.parent.parent.parent)?e.parent.parent.parent.left.expression:218===e.kind&&ME(e.parent)&&zN(e.parent.name)&&("value"===e.parent.name.escapedText||"get"===e.parent.name.escapedText||"set"===e.parent.name.escapedText)&&$D(e.parent.parent)&&GD(e.parent.parent.parent)&&e.parent.parent.parent.arguments[2]===e.parent.parent&&9===eg(e.parent.parent.parent)?e.parent.parent.parent.arguments[0].expression:_D(e)&&zN(e.name)&&("value"===e.name.escapedText||"get"===e.name.escapedText||"set"===e.name.escapedText)&&$D(e.parent)&&GD(e.parent.parent)&&e.parent.parent.arguments[2]===e.parent&&9===eg(e.parent.parent)?e.parent.parent.arguments[0].expression:void 0}(n);if(r&&e){const n=Lj(e).symbol;n&&n.members&&16&n.flags&&(t=fu(n).thisType)}else qO(n)&&(t=fu(ds(n.symbol)).thisType);t||(t=AP(n))}if(t)return JF(e,t)}if(__(n.parent)){const t=ps(n.parent);return JF(e,Nv(n)?S_(t):fu(t).thisType)}if(qE(n)){if(n.commonJsModuleIndicator){const e=ps(n);return e&&S_(e)}if(n.externalModuleIndicator)return jt;if(t)return S_(Fe)}}function xP(e){const t=213===e.parent.kind&&e.parent.expression===e,n=rm(e,!0);let r=n,i=!1,o=!1;if(!t){for(;r&&219===r.kind;)wv(r,1024)&&(o=!0),r=rm(r,!0),i=R<2;r&&wv(r,1024)&&(o=!0)}let a=0;if(!r||(s=r,!(t?176===s.kind:(__(s.parent)||210===s.parent.kind)&&(Nv(s)?174===s.kind||173===s.kind||177===s.kind||178===s.kind||172===s.kind||175===s.kind:174===s.kind||173===s.kind||177===s.kind||178===s.kind||172===s.kind||171===s.kind||176===s.kind)))){const n=_c(e,(e=>e===r?"quit":167===e.kind));return n&&167===n.kind?jo(e,la.super_cannot_be_referenced_in_a_computed_property_name):t?jo(e,la.Super_calls_are_not_permitted_outside_constructors_or_in_nested_functions_inside_constructors):r&&r.parent&&(__(r.parent)||210===r.parent.kind)?jo(e,la.super_property_access_is_permitted_only_in_a_constructor_member_function_or_member_accessor_of_a_derived_class):jo(e,la.super_can_only_be_referenced_in_members_of_derived_classes_or_object_literal_expressions),Et}var s;if(t||176!==n.kind||hP(e,r,la.super_must_be_called_before_accessing_a_property_of_super_in_the_constructor_of_a_derived_class),Nv(r)||t?(a=32,!t&&R>=2&&R<=8&&(cD(r)||uD(r))&&Fp(e.parent,(e=>{qE(e)&&!Qp(e)||(aa(e).flags|=2097152)}))):a=16,aa(e).flags|=a,174===r.kind&&o&&(om(e.parent)&&Xg(e.parent)?aa(r).flags|=256:aa(r).flags|=128),i&&pP(e.parent,r),210===r.parent.kind)return R<2?(jo(e,la.super_is_only_allowed_in_members_of_object_literal_expressions_when_option_target_is_ES2015_or_higher),Et):wt;const c=r.parent;if(!yh(c))return jo(e,la.super_can_only_be_referenced_in_a_derived_class),Et;if(mP(c))return t?Et:Ut;const l=fu(ps(c)),_=l&&Z_(l)[0];return _?176===r.kind&&function(e,t){return!!_c(e,(e=>i_(e)?"quit":169===e.kind&&e.parent===t))}(e,r)?(jo(e,la.super_cannot_be_referenced_in_constructor_arguments),Et):32===a?Q_(l):ld(_,l.thisType):Et}function SP(e){return 174!==e.kind&&177!==e.kind&&178!==e.kind||210!==e.parent.kind?218===e.kind&&303===e.parent.kind?e.parent.parent:void 0:e.parent}function wP(e){return 4&mx(e)&&e.target===sr?Kh(e)[0]:void 0}function DP(e){return zD(e,(e=>2097152&e.flags?d(e.types,wP):wP(e)))}function EP(e,t){let n=e,r=t;for(;r;){const e=DP(r);if(e)return e;if(303!==n.parent.kind)break;n=n.parent.parent,r=eA(n,void 0)}}function AP(e){if(219===e.kind)return;if(cS(e)){const t=vA(e);if(t){const e=t.thisParameter;if(e)return S_(e)}}const t=Fm(e);if(oe||t){const n=SP(e);if(n){const e=eA(n,void 0),t=EP(n,e);return t?tS(t,Bw(fA(n))):Sw(e?rw(e):fj(n))}const r=nh(e.parent);if(nb(r)){const e=r.left;if(kx(e)){const{expression:n}=e;if(t&&zN(n)){const e=hd(r);if(e.commonJsModuleIndicator&&dN(n)===e.symbol)return}return Sw(fj(n))}}}}function IP(e){const t=e.parent;if(!cS(t))return;const n=im(t);if(n&&n.arguments){const r=bO(n),i=t.parameters.indexOf(e);if(e.dotDotDotToken)return pO(r,i,r.length,wt,void 0,0);const o=aa(n),a=o.resolvedSignature;o.resolvedSignature=si;const s=i!!(58998787&e.flags)||Jj(e,n,void 0))):2&n?OD(t,(e=>!!(58998787&e.flags)||!!iR(e))):t}const i=im(e);return i?sA(i,t):void 0}function MP(e,t){const n=bO(e).indexOf(t);return-1===n?void 0:JP(e,n)}function JP(e,t){if(cf(e))return 0===t?Vt:1===t?By(!1):wt;const n=aa(e).resolvedSignature===li?li:zO(e);if(vu(e)&&0===t)return mA(n,e);const r=n.parameters.length-1;return UB(n)&&t>=r?vx(S_(n.parameters[r]),ok(t-r),256):pL(n,t)}function zP(e,t=eg(e)){if(4===t)return!0;if(!Fm(e)||5!==t||!zN(e.left.expression))return!1;const n=e.left.expression.escapedText,r=Ue(e.left,n,111551,void 0,!0,!0);return sm(null==r?void 0:r.valueDeclaration)}function qP(e){if(!e.symbol)return Aj(e.left);if(e.symbol.valueDeclaration){const t=pv(e.symbol.valueDeclaration);if(t){const e=dk(t);if(e)return e}}const t=nt(e.left,kx);if(!Mf(Zf(t.expression,!1,!1)))return;const n=yP(t.expression),r=lg(t);return void 0!==r&&VP(n,r)||void 0}function UP(e,t){if(16777216&e.flags){const n=e;return!!(131072&yf(Px(n)).flags)&&Nx(Ax(n))===Nx(n.checkType)&&gS(t,n.extendsType)}return!!(2097152&e.flags)&&$(e.types,(e=>UP(e,t)))}function VP(e,t,n){return zD(e,(e=>{if(2097152&e.flags){let r,i,o=!1;for(const a of e.types){if(!(524288&a.flags))continue;if(rp(a)&&2!==cp(a)){r=WP(r,$P(a,t,n));continue}const e=HP(a,t);e?(o=!0,i=void 0,r=WP(r,e)):o||(i=ie(i,a))}if(i)for(const e of i)r=WP(r,KP(e,t,n));if(!r)return;return 1===r.length?r[0]:Fb(r)}if(524288&e.flags)return rp(e)&&2!==cp(e)?$P(e,t,n):HP(e,t)??KP(e,t,n)}),!0)}function WP(e,t){return t?ie(e,1&t.flags?Ot:t):e}function $P(e,t,n){const r=n||ik(fc(t)),i=qd(e);if(!(e.nameType&&UP(e.nameType,r)||UP(i,r)))return gS(r,qp(i)||i)?yx(e,r):void 0}function HP(e,t){const n=Cf(e,t);var r;if(n&&!(262144&nx(r=n)&&!r.links.type&&Bc(r,0)>=0))return cw(S_(n),!!(16777216&n.flags))}function KP(e,t,n){var r;if(UC(e)&&MT(t)&&+t>=0){const t=KC(e,e.target.fixedLength,0,!1,!0);if(t)return t}return null==(r=Vf($f(e),n||ik(fc(t))))?void 0:r.type}function GP(e,t){if(un.assert(Mf(e)),!(67108864&e.flags))return XP(e,t)}function XP(e,t){const n=e.parent,r=ME(e)&&OP(e,t);if(r)return r;const i=eA(n,t);if(i){if(Zu(e)){const t=ps(e);return VP(i,t.escapedName,oa(t).nameType)}if(Rh(e)){const t=Tc(e);if(t&&rD(t)){const e=Lj(t.expression),n=oC(e)&&VP(i,aC(e));if(n)return n}}if(e.name){const t=Rb(e.name);return zD(i,(e=>{var n;return null==(n=Vf($f(e),t))?void 0:n.type}),!0)}}}function QP(e,t,n,r,i){return e&&zD(e,(e=>{if(UC(e)){if((void 0===r||ti)?n-t:0,a=o>0&&12&e.target.combinedFlags?qv(e.target,3):0;return o>0&&o<=a?Kh(e)[ey(e)-o]:KC(e,void 0===r?e.target.fixedLength:Math.min(e.target.fixedLength,r),void 0===n||void 0===i?a:Math.min(a,n-i),!1,!0)}return(!r||t32&mx(e)?e:pf(e)),!0);return 1048576&t.flags&&$D(e)?function(e,t){const n=`D${jB(e)},${Kv(t)}`;return No(n)??Fo(n,function(e,t){const n=SN(e),r=n&&b(t.properties,(e=>e.symbol&&303===e.kind&&e.symbol.escapedName===n&&ZP(e.initializer))),i=r&&Oj(r.initializer);return i&&CN(e,i)}(t,e)??tT(t,K(E(N(e.properties,(e=>!!e.symbol&&(303===e.kind?ZP(e.initializer)&&bN(t,e.symbol.escapedName):304===e.kind&&bN(t,e.symbol.escapedName)))),(e=>[()=>Oj(303===e.kind?e.initializer:e.name),e.symbol.escapedName])),E(N(vp(t),(n=>{var r;return!!(16777216&n.flags)&&!!(null==(r=null==e?void 0:e.symbol)?void 0:r.members)&&!e.symbol.members.has(n.escapedName)&&bN(t,n.escapedName)})),(e=>[()=>jt,e.escapedName]))),gS))}(e,t):1048576&t.flags&&EE(e)?function(e,t){const n=`D${jB(e)},${Kv(t)}`,r=No(n);if(r)return r;const i=zA(BA(e));return Fo(n,tT(t,K(E(N(e.properties,(e=>!!e.symbol&&291===e.kind&&bN(t,e.symbol.escapedName)&&(!e.initializer||ZP(e.initializer)))),(e=>[e.initializer?()=>Oj(e.initializer):()=>Yt,e.symbol.escapedName])),E(N(vp(t),(n=>{var r;if(!(16777216&n.flags&&(null==(r=null==e?void 0:e.symbol)?void 0:r.members)))return!1;const o=e.parent.parent;return(n.escapedName!==i||!kE(o)||!cy(o.children).length)&&!e.symbol.members.has(n.escapedName)&&bN(t,n.escapedName)})),(e=>[()=>jt,e.escapedName]))),gS))}(e,t):t}}function nA(e,t,n){if(e&&QL(e,465829888)){const r=fA(t);if(r&&1&n&&$(r.inferences,Dj))return rA(e,r.nonFixingMapper);if(null==r?void 0:r.returnMapper){const t=rA(e,r.returnMapper);return 1048576&t.flags&&Gv(t.types,Qt)&&Gv(t.types,nn)?OD(t,(e=>e!==Qt&&e!==nn)):t}}return e}function rA(e,t){return 465829888&e.flags?tS(e,t):1048576&e.flags?xb(E(e.types,(e=>rA(e,t))),0):2097152&e.flags?Fb(E(e.types,(e=>rA(e,t)))):e}function sA(e,t){var n;if(67108864&e.flags)return;const r=pA(e,!t);if(r>=0)return Ni[r];const{parent:i}=e;switch(i.kind){case 260:case 169:case 172:case 171:case 208:return function(e,t){const n=e.parent;if(Fu(n)&&e===n.initializer){const e=OP(n,t);if(e)return e;if(!(8&t)&&x_(n.name)&&n.name.elements.length>0)return ql(n.name,!0,!1)}}(e,t);case 219:case 253:return function(e,t){const n=Hf(e);if(n){let e=RP(n,t);if(e){const t=Ih(n);if(1&t){const n=!!(2&t);1048576&e.flags&&(e=OD(e,(e=>!!TM(1,e,n))));const r=TM(1,e,!!(2&t));if(!r)return;e=r}if(2&t){const t=zD(e,pR);return t&&xb([t,AL(t)])}return e}}}(e,t);case 229:return function(e,t){const n=Hf(e);if(n){const r=Ih(n);let i=RP(n,t);if(i){const n=!!(2&r);if(!e.asteriskToken&&1048576&i.flags&&(i=OD(i,(e=>!!TM(1,e,n)))),e.asteriskToken){const r=CM(i,n),o=(null==r?void 0:r.yieldType)??dn,a=sA(e,t)??dn,s=(null==r?void 0:r.nextType)??Ot,c=LL(o,a,s,!1);return n?xb([c,LL(o,a,s,!0)]):c}return TM(0,i,n)}}}(i,t);case 223:return function(e,t){const n=sA(e,t);if(n){const e=pR(n);return e&&xb([e,AL(e)])}}(i,t);case 213:case 214:return MP(i,e);case 170:return function(e){const t=EL(e);return t?Yg(t):void 0}(i);case 216:case 234:return xl(i.type)?sA(i,t):dk(i.type);case 226:return function(e,t){const n=e.parent,{left:r,operatorToken:i,right:o}=n;switch(i.kind){case 64:case 77:case 76:case 78:return e===o?function(e){var t,n;const r=eg(e);switch(r){case 0:case 4:const i=function(e){if(ou(e)&&e.symbol)return e.symbol;if(zN(e))return dN(e);if(HD(e)){const t=Aj(e.expression);return qN(e.name)?function(e,t){const n=vI(t.escapedText,t);return n&&xI(e,n)}(t,e.name):Cf(t,e.name.escapedText)}if(KD(e)){const t=fj(e.argumentExpression);if(!oC(t))return;return Cf(Aj(e.expression),aC(t))}}(e.left),o=i&&i.valueDeclaration;if(o&&(cD(o)||sD(o))){const t=pv(o);return t&&tS(dk(t),oa(i).mapper)||(cD(o)?o.initializer&&Aj(e.left):void 0)}return 0===r?Aj(e.left):qP(e);case 5:if(zP(e,r))return qP(e);if(ou(e.left)&&e.left.symbol){const t=e.left.symbol.valueDeclaration;if(!t)return;const n=nt(e.left,kx),r=pv(t);if(r)return dk(r);if(zN(n.expression)){const e=n.expression,t=Ue(e,e.escapedText,111551,void 0,!0);if(t){const e=t.valueDeclaration&&pv(t.valueDeclaration);if(e){const t=lg(n);if(void 0!==t)return VP(dk(e),t)}return}}return Fm(t)||t===e.left?void 0:Aj(e.left)}return Aj(e.left);case 1:case 6:case 3:case 2:let a;2!==r&&(a=ou(e.left)?null==(t=e.left.symbol)?void 0:t.valueDeclaration:void 0),a||(a=null==(n=e.symbol)?void 0:n.valueDeclaration);const s=a&&pv(a);return s?dk(s):void 0;case 7:case 8:case 9:return un.fail("Does not apply");default:return un.assertNever(r)}}(n):void 0;case 57:case 61:const i=sA(n,t);return e===o&&(i&&i.pattern||!i&&!Hm(n))?Aj(r):i;case 56:case 28:return e===o?sA(n,t):void 0;default:return}}(e,t);case 303:case 304:return XP(i,t);case 305:return sA(i.parent,t);case 209:{const r=i,o=eA(r,t),a=Xd(r.elements,e),s=(n=aa(r)).spreadIndices??(n.spreadIndices=function(e){let t,n;for(let r=0;rCC(e)?vx(e,ok(a)):e),!0))}(n,e,t):void 0}(i,t);case 291:case 293:return YP(i,t);case 286:case 285:return function(e,t){if(TE(e)&&4!==t){const n=pA(e.parent,!t);if(n>=0)return Ni[n]}return JP(e,0)}(i,t);case 301:return function(e){return VP(Jy(!1),uC(e))}(i)}}function _A(e){uA(e,sA(e,void 0),!0)}function uA(e,t,n){wi[Ei]=e,Ni[Ei]=t,Fi[Ei]=n,Ei++}function dA(){Ei--}function pA(e,t){for(let n=Ei-1;n>=0;n--)if(e===wi[n]&&(t||!Fi[n]))return n;return-1}function fA(e){for(let t=Oi-1;t>=0;t--)if(sh(e,Ai[t]))return Ii[t]}function mA(e,t){return NE(t)||0!==mO(t)?function(e,t){let n=SL(e,Ot);n=gA(t,BA(t),n);const r=jA(vB.IntrinsicAttributes,t);return $c(r)||(n=Pd(r,n)),n}(e,t):function(e,t){const n=BA(t),r=(i=n,JA(vB.ElementAttributesPropertyNameContainer,i));var i;let o=void 0===r?SL(e,Ot):""===r?Tg(e):function(e,t){if(e.compositeSignatures){const n=[];for(const r of e.compositeSignatures){const e=Tg(r);if(Wc(e))return e;const i=Uc(e,t);if(!i)return;n.push(i)}return Fb(n)}const n=Tg(e);return Wc(n)?n:Uc(n,t)}(e,r);if(!o)return r&&u(t.attributes.properties)&&jo(t,la.JSX_element_class_does_not_support_attributes_because_it_does_not_have_a_0_property,fc(r)),Ot;if(o=gA(t,n,o),Wc(o))return o;{let n=o;const r=jA(vB.IntrinsicClassAttributes,t);if(!$c(r)){const i=M_(r.symbol),o=Tg(e);let a;a=i?tS(r,Tk(i,rg([o],i,ng(i),Fm(t)))):r,n=Pd(a,n)}const i=jA(vB.IntrinsicAttributes,t);return $c(i)||(n=Pd(i,n)),n}}(e,t)}function gA(e,t,n){const r=(i=t)&&sa(i.exports,vB.LibraryManagedAttributes,788968);var i;if(r){const t=function(e){if(NE(e))return MO(e);if(PA(e.tagName))return Yg(RO(e,WA(e)));const t=fj(e.tagName);if(128&t.flags){const n=VA(t,e);return n?Yg(RO(e,n)):Et}return t}(e),i=GA(r,Fm(e),t,n);if(i)return i}return n}function hA(e,t){const n=N(Rf(e,0),(e=>!function(e,t){let n=0;for(;ne!==t&&e?Dd(e.typeParameters,t.typeParameters)?function(e,t){const n=e.typeParameters||t.typeParameters;let r;e.typeParameters&&t.typeParameters&&(r=Tk(t.typeParameters,e.typeParameters));let i=166&(e.flags|t.flags);const o=e.declaration,a=function(e,t,n){const r=hL(e),i=hL(t),o=r>=i?e:t,a=o===e?t:e,s=o===e?r:i,c=vL(e)||vL(t),l=c&&!vL(o),_=new Array(s+(l?1:0));for(let u=0;u=yL(o)&&u>=yL(a),h=u>=r?void 0:lL(e,u),y=u>=i?void 0:lL(t,u),v=Wo(1|(g&&!m?16777216:0),(h===y?h:h?y?void 0:h:y)||`arg${u}`,m?32768:g?16384:0);v.links.type=m?uv(f):f,_[u]=v}if(l){const e=Wo(1,"args",32768);e.links.type=uv(pL(a,s)),a===t&&(e.links.type=tS(e.links.type,n)),_[s]=e}return _}(e,t,r),s=ye(a);s&&32768&nx(s)&&(i|=1);const c=function(e,t,n){return e&&t?dw(e,xb([S_(e),tS(S_(t),n)])):e||t}(e.thisParameter,t.thisParameter,r),l=pd(o,n,c,a,void 0,void 0,Math.max(e.minArgumentCount,t.minArgumentCount),i);return l.compositeKind=2097152,l.compositeSignatures=K(2097152===e.compositeKind&&e.compositeSignatures||[e],[t]),r&&(l.mapper=2097152===e.compositeKind&&e.mapper&&e.compositeSignatures?Rk(e.mapper,r):r),l}(e,t):void 0:e)):void 0);var r}function yA(e){return jT(e)||Mf(e)?vA(e):void 0}function vA(e){un.assert(174!==e.kind||Mf(e));const t=sg(e);if(t)return t;const n=eA(e,1);if(!n)return;if(!(1048576&n.flags))return hA(n,e);let r;const i=n.types;for(const t of i){const n=hA(t,e);if(n)if(r){if(!lC(r[0],n,!1,!0,!0,uS))return;r.push(n)}else r=[n]}return r?1===r.length?r[0]:md(r[0],r):void 0}function bA(e){return 208===e.kind&&!!e.initializer||303===e.kind&&bA(e.initializer)||304===e.kind&&!!e.objectAssignmentInitializer||226===e.kind&&64===e.operatorToken.kind}function xA(e,t,n){const r=e.elements,i=r.length,o=[],a=[];_A(e);const s=Xg(e),c=xj(e),l=eA(e,void 0),_=function(e){const t=nh(e.parent);return dF(t)&&L_(t.parent)}(e)||!!l&&ED(l,(e=>EC(e)||rp(e)&&!e.nameType&&!!Xk(e.target||e)));let u=!1;for(let c=0;c8&a[t]?Sx(e,Wt)||wt:e)),2):H?pn:Rt,c))}function kA(e){const t=aa(e.expression);if(!t.resolvedType){if((SD(e.parent.parent)||__(e.parent.parent)||KF(e.parent.parent))&&cF(e.expression)&&103===e.expression.operatorToken.kind&&177!==e.parent.kind&&178!==e.parent.kind)return t.resolvedType=Et;if(t.resolvedType=Lj(e.expression),cD(e.parent)&&!Dv(e.parent)&&pF(e.parent.parent)){const t=dP(Dp(e.parent.parent));t&&(aa(t).flags|=4096,aa(e).flags|=32768,aa(e.parent.parent).flags|=32768)}(98304&t.resolvedType.flags||!YL(t.resolvedType,402665900)&&!gS(t.resolvedType,hn))&&jo(e,la.A_computed_property_name_must_be_of_type_string_number_symbol_or_any)}return t.resolvedType}function SA(e){var t;const n=null==(t=e.declarations)?void 0:t[0];return MT(e.escapedName)||n&&kc(n)&&function(e){switch(e.kind){case 167:return function(e){return YL(kA(e),296)}(e);case 80:return MT(e.escapedText);case 9:case 11:return MT(e.text);default:return!1}}(n.name)}function TA(e){var t;const n=null==(t=e.declarations)?void 0:t[0];return Vh(e)||n&&kc(n)&&rD(n.name)&&YL(kA(n.name),4096)}function CA(e,t,n,r){const i=[];for(let e=t;e0&&(o=Wx(o,f(),l.symbol,c,!1),i=Hu());const s=yf(Lj(e.expression,2&t));Wc(s)&&(a=!0),FA(s)?(o=Wx(o,s,l.symbol,c,!1),n&&LA(s,n,e)):(jo(e.expression,la.Spread_types_may_only_be_created_from_object_types),r=r?Fb([r,s]):s)}}a||i.size>0&&(o=Wx(o,f(),l.symbol,c,!1))}const p=e.parent;if((kE(p)&&p.openingElement===e||wE(p)&&p.openingFragment===e)&&cy(p.children).length>0){const n=OA(p,t);if(!a&&_&&""!==_){s&&jo(d,la._0_are_specified_twice_The_attribute_named_0_will_be_overwritten,fc(_));const t=TE(e)?eA(e.attributes,void 0):void 0,r=t&&VP(t,_),i=Wo(4,_);i.links.type=1===n.length?n[0]:r&&ED(r,EC)?kv(n):uv(xb(n)),i.valueDeclaration=XC.createPropertySignature(void 0,fc(_),void 0,void 0),wT(i.valueDeclaration,d),i.valueDeclaration.symbol=i;const a=Hu();a.set(_,i),o=Wx(o,Bs(u,a,l,l,l),u,c,!1)}}return a?wt:r&&o!==Dn?Fb([r,o]):r||(o===Dn?f():o);function f(){return c|=8192,function(e,t,n){const r=Bs(t,n,l,l,l);return r.objectFlags|=139392|e,r}(c,u,i)}}function OA(e,t){const n=[];for(const r of e.children)if(12===r.kind)r.containsOnlyTriviaWhiteSpaces||n.push(Vt);else{if(294===r.kind&&!r.expression)continue;n.push(kj(r,t))}return n}function LA(e,t,n){for(const r of vp(e))if(!(16777216&r.flags)){const e=t.get(r.escapedName);e&&iT(jo(e.valueDeclaration,la._0_is_specified_more_than_once_so_this_usage_will_be_overwritten,fc(e.escapedName)),jp(n,la.This_spread_always_overwrites_this_property))}}function jA(e,t){const n=BA(t),r=n&&cs(n),i=r&&sa(r,e,788968);return i?fu(i):Et}function RA(e){const t=aa(e);if(!t.resolvedSymbol){const n=jA(vB.IntrinsicElements,e);if($c(n))return ne&&jo(e,la.JSX_element_implicitly_has_type_any_because_no_interface_JSX_0_exists,fc(vB.IntrinsicElements)),t.resolvedSymbol=xt;{if(!zN(e.tagName)&&!IE(e.tagName))return un.fail();const r=IE(e.tagName)?nC(e.tagName):e.tagName.escapedText,i=Cf(n,r);if(i)return t.jsxFlags|=1,t.resolvedSymbol=i;const o=XB(n,ik(fc(r)));return o?(t.jsxFlags|=2,t.resolvedSymbol=o):Vc(n,r)?(t.jsxFlags|=2,t.resolvedSymbol=n.symbol):(jo(e,la.Property_0_does_not_exist_on_type_1,iC(e.tagName),"JSX."+vB.IntrinsicElements),t.resolvedSymbol=xt)}}return t.resolvedSymbol}function MA(e){const t=e&&hd(e),n=t&&aa(t);if(n&&!1===n.jsxImplicitImportContainer)return;if(n&&n.jsxImplicitImportContainer)return n.jsxImplicitImportContainer;const r=Hk($k(j,t),j);if(!r)return;const i=1===vk(j)?la.Cannot_find_module_0_Did_you_mean_to_set_the_moduleResolution_option_to_nodenext_or_to_add_aliases_to_the_paths_option:la.This_JSX_tag_requires_the_module_path_0_to_exist_but_none_could_be_found_Make_sure_you_have_types_for_the_appropriate_package_installed,o=function(e,t){const n=j.importHelpers?1:0,r=null==e?void 0:e.imports[n];return r&&un.assert(Zh(r)&&r.text===t,`Expected sourceFile.imports[${n}] to be the synthesized JSX runtime import`),r}(t,r),a=Za(o||e,r,i,e),s=a&&a!==xt?ds(Ma(a)):void 0;return n&&(n.jsxImplicitImportContainer=s||!1),s}function BA(e){const t=e&&aa(e);if(t&&t.jsxNamespace)return t.jsxNamespace;if(!t||!1!==t.jsxNamespace){let n=MA(e);if(!n||n===xt){const t=Eo(e);n=Ue(e,t,1920,void 0,!1)}if(n){const e=Ma(sa(cs(Ma(n)),vB.JSX,1920));if(e&&e!==xt)return t&&(t.jsxNamespace=e),e}t&&(t.jsxNamespace=!1)}const n=Ma(Py(vB.JSX,1920,void 0));return n!==xt?n:void 0}function JA(e,t){const n=t&&sa(t.exports,e,788968),r=n&&fu(n),i=r&&vp(r);if(i){if(0===i.length)return"";if(1===i.length)return i[0].escapedName;i.length>1&&n.declarations&&jo(n.declarations[0],la.The_global_type_JSX_0_may_not_have_more_than_one_property,fc(e))}}function zA(e){return JA(vB.ElementChildrenAttributeNameContainer,e)}function qA(e,t){if(4&e.flags)return[si];if(128&e.flags){const n=VA(e,t);return n?[RO(t,n)]:(jo(t,la.Property_0_does_not_exist_on_type_1,e.value,"JSX."+vB.IntrinsicElements),l)}const n=pf(e);let r=Rf(n,1);return 0===r.length&&(r=Rf(n,0)),0===r.length&&1048576&n.flags&&(r=Nd(E(n.types,(e=>qA(e,t))))),r}function VA(e,t){const n=jA(vB.IntrinsicElements,t);if(!$c(n)){const t=Cf(n,pc(e.value));if(t)return S_(t);return pm(n,Vt)||void 0}return wt}function WA(e){var t;un.assert(PA(e.tagName));const n=aa(e);if(!n.resolvedJsxElementAttributesType){const r=RA(e);if(1&n.jsxFlags)return n.resolvedJsxElementAttributesType=S_(r)||Et;if(2&n.jsxFlags){const r=IE(e.tagName)?nC(e.tagName):e.tagName.escapedText;return n.resolvedJsxElementAttributesType=(null==(t=Nm(jA(vB.IntrinsicElements,e),r))?void 0:t.type)||Et}return n.resolvedJsxElementAttributesType=Et}return n.resolvedJsxElementAttributesType}function $A(e){const t=jA(vB.ElementClass,e);if(!$c(t))return t}function HA(e){return jA(vB.Element,e)}function KA(e){const t=HA(e);if(t)return xb([t,zt])}function GA(e,t,...n){const r=fu(e);if(524288&e.flags){const i=oa(e).typeParameters;if(u(i)>=n.length){const o=rg(n,i,n.length,t);return 0===u(o)?r:ny(e,o)}}if(u(r.typeParameters)>=n.length)return jh(r,rg(n,r.typeParameters,n.length,t))}function XA(e){const t=vu(e);var n;t&&function(e){(function(e){if(HD(e)&&IE(e.expression))return nz(e.expression,la.JSX_property_access_expressions_cannot_include_JSX_namespace_names);IE(e)&&Wk(j)&&!Fy(e.namespace.escapedText)&&nz(e,la.React_components_cannot_include_JSX_namespace_names)})(e.tagName),OJ(e,e.typeArguments);const t=new Map;for(const n of e.attributes.properties){if(293===n.kind)continue;const{name:e,initializer:r}=n,i=ZT(e);if(t.get(i))return nz(e,la.JSX_elements_cannot_have_multiple_attributes_with_the_same_name);if(t.set(i,!0),r&&294===r.kind&&!r.expression)return nz(r,la.JSX_attributes_must_only_be_assigned_a_non_empty_expression)}}(e),n=e,0===(j.jsx||0)&&jo(n,la.Cannot_use_JSX_unless_the_jsx_flag_is_provided),void 0===HA(n)&&ne&&jo(n,la.JSX_element_implicitly_has_type_any_because_the_global_type_JSX_Element_does_not_exist),LE(e);const r=zO(e);if(WO(r,e),t){const t=e,n=function(e){const t=BA(e);if(!t)return;const n=(r=t)&&sa(r.exports,vB.ElementType,788968);var r;if(!n)return;const i=GA(n,Fm(e));return i&&!$c(i)?i:void 0}(t);if(void 0!==n){const e=t.tagName;HS(PA(e)?ik(iC(e)):Lj(e),n,ho,e,la.Its_type_0_is_not_a_valid_JSX_element_type,(()=>{const t=Kd(e);return Yx(void 0,la._0_cannot_be_used_as_a_JSX_component,t)}))}else!function(e,t,n){if(1===e){const e=KA(n);e&&HS(t,e,ho,n.tagName,la.Its_return_type_0_is_not_a_valid_JSX_element,r)}else if(0===e){const e=$A(n);e&&HS(t,e,ho,n.tagName,la.Its_instance_type_0_is_not_a_valid_JSX_element,r)}else{const e=KA(n),i=$A(n);if(!e||!i)return;HS(t,xb([e,i]),ho,n.tagName,la.Its_element_type_0_is_not_a_valid_JSX_element,r)}function r(){const e=Kd(n.tagName);return Yx(void 0,la._0_cannot_be_used_as_a_JSX_component,e)}}(mO(t),Tg(r),t)}}function QA(e,t,n){if(524288&e.flags&&(hp(e,t)||Nm(e,t)||Xu(t)&&dm(e,Vt)||n&&EA(t)))return!0;if(33554432&e.flags)return QA(e.baseType,t,n);if(3145728&e.flags&&YA(e))for(const r of e.types)if(QA(r,t,n))return!0;return!1}function YA(e){return!!(524288&e.flags&&!(512&mx(e))||67108864&e.flags||33554432&e.flags&&YA(e.baseType)||1048576&e.flags&&$(e.types,YA)||2097152&e.flags&&v(e.types,YA))}function ZA(e){return e.valueDeclaration?_z(e.valueDeclaration):0}function eI(e){if(8192&e.flags||4&nx(e))return!0;if(Fm(e.valueDeclaration)){const t=e.valueDeclaration.parent;return t&&cF(t)&&3===eg(t)}}function tI(e,t,n,r,i,o=!0){return oI(e,t,n,r,i,o?166===e.kind?e.right:205===e.kind?e:208===e.kind&&e.propertyName?e.propertyName:e.name:void 0)}function oI(e,t,n,r,i,o){var a;const s=rx(i,n);if(t){if(R<2&&sI(i))return o&&jo(o,la.Only_public_and_protected_methods_of_the_base_class_are_accessible_via_the_super_keyword),!1;if(64&s)return o&&jo(o,la.Abstract_method_0_in_class_1_cannot_be_accessed_via_super_expression,ic(i),sc(FT(i))),!1;if(!(256&s)&&(null==(a=i.declarations)?void 0:a.some(p_)))return o&&jo(o,la.Class_field_0_defined_by_the_parent_class_is_not_accessible_in_the_child_class_via_super,ic(i)),!1}if(64&s&&sI(i)&&(am(e)||cm(e)||qD(e.parent)&&sm(e.parent.parent))){const t=fx(hs(i));if(t&&_c(e,(e=>!!(dD(e)&&wd(e.body)||cD(e))||!(!__(e)&&!i_(e))&&"quit")))return o&&jo(o,la.Abstract_property_0_in_class_1_cannot_be_accessed_in_the_constructor,ic(i),zh(t.name)),!1}if(!(6&s))return!0;if(2&s)return!!BB(e,fx(hs(i)))||(o&&jo(o,la.Property_0_is_private_and_only_accessible_within_class_1,ic(i),sc(FT(i))),!1);if(t)return!0;let c=PB(e,(e=>AT(fu(ps(e)),i,n)));return!c&&(c=function(e){const t=function(e){const t=Zf(e,!1,!1);return t&&n_(t)?av(t):void 0}(e);let n=(null==t?void 0:t.type)&&dk(t.type);if(n)262144&n.flags&&(n=xp(n));else{const t=Zf(e,!1,!1);n_(t)&&(n=AP(t))}if(n&&7&mx(n))return N_(n)}(e),c=c&&AT(c,i,n),256&s||!c)?(o&&jo(o,la.Property_0_is_protected_and_only_accessible_within_class_1_and_its_subclasses,ic(i),sc(FT(i)||r)),!1):!!(256&s)||(262144&r.flags&&(r=r.isThisType?xp(r):qp(r)),!(!r||!D_(r,c))||(o&&jo(o,la.Property_0_is_protected_and_only_accessible_through_an_instance_of_class_1_This_is_an_instance_of_class_2,ic(i),sc(c),sc(r)),!1))}function sI(e){return!!DT(e,(e=>!(8192&e.flags)))}function cI(e){return fI(Lj(e),e)}function lI(e){return AN(e,50331648)}function _I(e){return lI(e)?rw(e):e}function uI(e,t){const n=ob(e)?Lp(e):void 0;if(106!==e.kind)if(void 0!==n&&n.length<100){if(zN(e)&&"undefined"===n)return void jo(e,la.The_value_0_cannot_be_used_here,"undefined");jo(e,16777216&t?33554432&t?la._0_is_possibly_null_or_undefined:la._0_is_possibly_undefined:la._0_is_possibly_null,n)}else jo(e,16777216&t?33554432&t?la.Object_is_possibly_null_or_undefined:la.Object_is_possibly_undefined:la.Object_is_possibly_null);else jo(e,la.The_value_0_cannot_be_used_here,"null")}function dI(e,t){jo(e,16777216&t?33554432&t?la.Cannot_invoke_an_object_which_is_possibly_null_or_undefined:la.Cannot_invoke_an_object_which_is_possibly_undefined:la.Cannot_invoke_an_object_which_is_possibly_null)}function pI(e,t,n){if(H&&2&e.flags){if(ob(t)){const e=Lp(t);if(e.length<100)return jo(t,la._0_is_of_type_unknown,e),Et}return jo(t,la.Object_is_of_type_unknown),Et}const r=PN(e,50331648);if(50331648&r){n(t,r);const i=rw(e);return 229376&i.flags?Et:i}return e}function fI(e,t){return pI(e,t,uI)}function mI(e,t){const n=fI(e,t);if(16384&n.flags){if(ob(t)){const e=Lp(t);if(zN(t)&&"undefined"===e)return jo(t,la.The_value_0_cannot_be_used_here,e),n;if(e.length<100)return jo(t,la._0_is_possibly_undefined,e),n}jo(t,la.Object_is_possibly_undefined)}return n}function gI(e,t,n){return 64&e.flags?function(e,t){const n=Lj(e.expression),r=sw(n,e.expression);return aw(SI(e,e.expression,fI(r,e.expression),e.name,t),e,r!==n)}(e,t):SI(e,e.expression,cI(e.expression),e.name,t,n)}function hI(e,t){const n=xm(e)&&cv(e.left)?fI(yP(e.left),e.left):cI(e.left);return SI(e,e.left,n,e.right,t)}function yI(e){for(;217===e.parent.kind;)e=e.parent;return L_(e.parent)&&e.parent.expression===e}function vI(e,t){for(let n=Yf(t);n;n=Gf(n)){const{symbol:t}=n,r=Uh(t,e),i=t.members&&t.members.get(r)||t.exports&&t.exports.get(r);if(i)return i}}function bI(e){if(!vm(e))return;const t=aa(e);return void 0===t.resolvedSymbol&&(t.resolvedSymbol=vI(e.escapedText,e)),t.resolvedSymbol}function xI(e,t){return Cf(e,t.escapedName)}function kI(e,t){return(Tl(t)||am(e)&&Cl(t))&&Zf(e,!0,!1)===Nl(t)}function SI(e,t,n,r,i,o){const a=aa(t).resolvedSymbol,s=Gg(e),c=pf(0!==s||yI(e)?Sw(n):n),l=Wc(c)||c===dn;let _,u;if(qN(r)){(R{const n=e.valueDeclaration;if(n&&kc(n)&&qN(n.name)&&n.name.escapedText===t.escapedText)return r=e,!0}));const o=pa(t);if(r){const i=un.checkDefined(r.valueDeclaration),a=un.checkDefined(Gf(i));if(null==n?void 0:n.valueDeclaration){const r=n.valueDeclaration,s=Gf(r);if(un.assert(!!s),_c(s,(e=>a===e)))return iT(jo(t,la.The_property_0_cannot_be_accessed_on_type_1_within_this_class_because_it_is_shadowed_by_another_private_identifier_with_the_same_spelling,o,sc(e)),jp(r,la.The_shadowing_declaration_of_0_is_defined_here,o),jp(i,la.The_declaration_of_0_that_you_probably_intended_to_use_is_defined_here,o)),!0}return jo(t,la.Property_0_is_not_accessible_outside_class_1_because_it_has_a_private_identifier,o,pa(a.name||SB)),!0}return!1}(n,r,t))return Et;const e=Yf(r);e&&vd(hd(e),j.checkJs)&&nz(r,la.Private_field_0_must_be_declared_in_an_enclosing_class,mc(r))}else 65536&_.flags&&!(32768&_.flags)&&1!==s&&jo(e,la.Private_accessor_was_defined_without_a_getter)}else{if(l)return zN(t)&&a&&CE(e,2,void 0,n),$c(c)?Et:c;_=Cf(c,r.escapedText,ej(c),166===e.kind)}if(CE(e,2,_,n),_){const n=oB(_,r);if(qo(n)&&Qb(e,n)&&n.declarations&&Vo(r,n.declarations,r.escapedText),function(e,t,n){const{valueDeclaration:r}=e;if(!r||hd(t).isDeclarationFile)return;let i;const o=mc(n);!wI(t)||function(e){return cD(e)&&!Av(e)&&e.questionToken}(r)||kx(t)&&kx(t.expression)||ca(r,n)||_D(r)&&256&lz(r)||!U&&function(e){if(!(32&e.parent.flags))return!1;let t=S_(e.parent);for(;;){if(t=t.symbol&&NI(t),!t)return!1;const n=Cf(t,e.escapedName);if(n&&n.valueDeclaration)return!0}}(e)?263!==r.kind||183===t.parent.kind||33554432&r.flags||ca(r,n)||(i=jo(n,la.Class_0_used_before_its_declaration,o)):i=jo(n,la.Property_0_is_used_before_its_initialization,o),i&&iT(i,jp(r,la._0_is_declared_here,o))}(_,e,r),zI(_,e,qI(t,a)),aa(e).resolvedSymbol=_,tI(e,108===t.kind,sx(e),c,_),$L(e,_,s))return jo(r,la.Cannot_assign_to_0_because_it_is_a_read_only_property,mc(r)),Et;u=kI(e,_)?Nt:o||ax(e)?b_(_):S_(_)}else{const t=qN(r)||0!==s&&lx(n)&&!JT(n)?void 0:Nm(c,r.escapedText);if(!t||!t.type){const t=TI(e,n.symbol,!0);return!t&&Gb(n)?wt:n.symbol===Fe?(Fe.exports.has(r.escapedText)&&418&Fe.exports.get(r.escapedText).flags?jo(r,la.Property_0_does_not_exist_on_type_1,fc(r.escapedText),sc(n)):ne&&jo(r,la.Element_implicitly_has_an_any_type_because_type_0_has_no_index_signature,sc(n)),wt):(r.escapedText&&!ma(e)&&DI(r,JT(n)?c:n,t),Et)}t.isReadonly&&(Xg(e)||ah(e))&&jo(e,la.Index_signature_in_type_0_only_permits_reading,sc(c)),u=t.type,j.noUncheckedIndexedAccess&&1!==Gg(e)&&(u=xb([u,Mt])),j.noPropertyAccessFromIndexSignature&&HD(e)&&jo(r,la.Property_0_comes_from_an_index_signature_so_it_must_be_accessed_with_0,fc(r.escapedText)),t.declaration&&Uo(t.declaration)&&Vo(r,[t.declaration],r.escapedText)}return CI(e,_,u,r,i)}function TI(e,t,n){var r;const i=hd(e);if(i&&void 0===j.checkJs&&void 0===i.checkJsDirective&&(1===i.scriptKind||2===i.scriptKind)){const o=d(null==t?void 0:t.declarations,hd),a=!(null==t?void 0:t.valueDeclaration)||!__(t.valueDeclaration)||(null==(r=t.valueDeclaration.heritageClauses)?void 0:r.length)||mm(!1,t.valueDeclaration);return!(i!==o&&o&&Xp(o)||n&&t&&32&t.flags&&a||e&&n&&HD(e)&&110===e.expression.kind&&a)}return!1}function CI(e,t,n,r,i){const o=Gg(e);if(1===o)return cw(n,!!(t&&16777216&t.flags));if(t&&!(98311&t.flags)&&!(8192&t.flags&&1048576&n.flags)&&!uB(t.declarations))return n;if(n===Nt)return Fl(e,t);n=vE(n,e,i);let a=!1;if(H&&Z&&kx(e)&&110===e.expression.kind){const n=t&&t.valueDeclaration;if(n&&$M(n)&&!Nv(n)){const t=zF(e);176!==t.kind||t.parent!==n.parent||33554432&n.flags||(a=!0)}}else H&&t&&t.valueDeclaration&&HD(t.valueDeclaration)&&_g(t.valueDeclaration)&&zF(e)===zF(t.valueDeclaration)&&(a=!0);const s=JF(e,n,a?tw(n):n);return a&&!RS(n)&&RS(s)?(jo(r,la.Property_0_is_used_before_being_assigned,ic(t)),n):o?RC(s):s}function wI(e){return!!_c(e,(e=>{switch(e.kind){case 172:return!0;case 303:case 174:case 177:case 178:case 305:case 167:case 239:case 294:case 291:case 292:case 293:case 286:case 233:case 298:return!1;case 219:case 244:return!(!CF(e.parent)||!uD(e.parent.parent))||"quit";default:return!vm(e)&&"quit"}}))}function NI(e){const t=Z_(e);if(0!==t.length)return Fb(t)}function DI(e,t,n){let r,i;if(!qN(e)&&1048576&t.flags&&!(402784252&t.flags))for(const n of t.types)if(!Cf(n,e.escapedText)&&!Nm(n,e.escapedText)){r=Yx(r,la.Property_0_does_not_exist_on_type_1,Ep(e),sc(n));break}if(FI(e.escapedText,t)){const n=Ep(e),i=sc(t);r=Yx(r,la.Property_0_does_not_exist_on_type_1_Did_you_mean_to_access_the_static_member_2_instead,n,i,i+"."+n)}else{const o=oR(t);if(o&&Cf(o,e.escapedText))r=Yx(r,la.Property_0_does_not_exist_on_type_1,Ep(e),sc(t)),i=jp(e,la.Did_you_forget_to_use_await);else{const o=Ep(e),a=sc(t),s=function(e,t){const n=pf(t).symbol;if(!n)return;const r=hc(n),i=Zd().get(r);if(i)for(const[t,n]of i)if(T(n,e))return t}(o,t);if(void 0!==s)r=Yx(r,la.Property_0_does_not_exist_on_type_1_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_2_or_later,o,a,s);else{const s=II(e,t);if(void 0!==s){const e=hc(s);r=Yx(r,n?la.Property_0_may_not_exist_on_type_1_Did_you_mean_2:la.Property_0_does_not_exist_on_type_1_Did_you_mean_2,o,a,e),i=s.valueDeclaration&&jp(s.valueDeclaration,la._0_is_declared_here,e)}else{const e=function(e){return j.lib&&!j.lib.includes("dom")&&(n=e=>e.symbol&&/^(?:EventTarget|Node|(?:HTML[a-zA-Z]*)?Element)$/.test(fc(e.symbol.escapedName)),3145728&(t=e).flags?v(t.types,n):n(t))&&LS(e);var t,n}(t)?la.Property_0_does_not_exist_on_type_1_Try_changing_the_lib_compiler_option_to_include_dom:la.Property_0_does_not_exist_on_type_1;r=Yx(Sf(r,t),e,o,a)}}}}const o=Bp(hd(e),e,r);i&&iT(o,i),Ro(!n||r.code!==la.Property_0_may_not_exist_on_type_1_Did_you_mean_2.code,o)}function FI(e,t){const n=t.symbol&&Cf(S_(t.symbol),e);return void 0!==n&&!!n.valueDeclaration&&Nv(n.valueDeclaration)}function EI(e,t){return JI(e,vp(t),106500)}function II(e,t){let n=vp(t);if("string"!=typeof e){const r=e.parent;HD(r)&&(n=N(n,(e=>UI(r,t,e)))),e=mc(e)}return JI(e,n,111551)}function OI(e,t){const n=Ze(e)?e:mc(e),r=vp(t);return("for"===n?b(r,(e=>"htmlFor"===hc(e))):"class"===n?b(r,(e=>"className"===hc(e))):void 0)??JI(n,r,111551)}function LI(e,t){const n=II(e,t);return n&&hc(n)}function RI(e,t,n){return un.assert(void 0!==t,"outername should always be defined"),Ve(e,t,n,void 0,!1,!1)}function BI(e,t){return t.exports&&JI(mc(e),os(t),2623475)}function JI(e,t,n){return Lt(e,t,(function(e){const t=hc(e);if(!Gt(t,'"')){if(e.flags&n)return t;if(2097152&e.flags){const r=function(e){if(oa(e).aliasTarget!==kt)return Ba(e)}(e);if(r&&r.flags&n)return t}}}))}function zI(e,t,n){const r=e&&106500&e.flags&&e.valueDeclaration;if(!r)return;const i=Cv(r,2),o=e.valueDeclaration&&kc(e.valueDeclaration)&&qN(e.valueDeclaration.name);if((i||o)&&(!t||!ax(t)||65536&e.flags)){if(n){const n=_c(t,i_);if(n&&n.symbol===e)return}(1&nx(e)?oa(e).target:e).isReferenced=-1}}function qI(e,t){return 110===e.kind||!!t&&ob(e)&&t===dN(ab(e))}function UI(e,t,n){return WI(e,211===e.kind&&108===e.expression.kind,!1,t,n)}function VI(e,t,n,r){if(Wc(r))return!0;const i=Cf(r,n);return!!i&&WI(e,t,!1,r,i)}function WI(e,t,n,r,i){if(Wc(r))return!0;if(i.valueDeclaration&&Hl(i.valueDeclaration)){const t=Gf(i.valueDeclaration);return!gl(e)&&!!_c(e,(e=>e===t))}return oI(e,t,n,r,i)}function KI(e){const t=e.initializer;if(261===t.kind){const e=t.declarations[0];if(e&&!x_(e.name))return ps(e)}else if(80===t.kind)return dN(t)}function GI(e,t,n){const r=0!==Gg(e)||yI(e)?Sw(t):t,i=e.argumentExpression,o=Lj(i);if($c(r)||r===dn)return r;if(ej(r)&&!Lu(i))return jo(i,la.A_const_enum_member_can_only_be_accessed_using_a_string_literal),Et;const a=function(e){const t=oh(e);if(80===t.kind){const r=dN(t);if(3&r.flags){let t=e,i=e.parent;for(;i;){if(249===i.kind&&t===i.statement&&KI(i)===r&&1===Kf(n=Aj(i.expression)).length&&dm(n,Wt))return!0;t=i,i=i.parent}}}var n;return!1}(i)?Wt:o,s=Gg(e);let c;0===s?c=32:(c=4|(lx(r)&&!JT(r)?2:0),2===s&&(c|=32));const l=Sx(r,a,c,e)||Et;return Zj(CI(e,aa(e).resolvedSymbol,l,i,n),e)}function XI(e){return L_(e)||QD(e)||vu(e)}function QI(e){return XI(e)&&d(e.typeArguments,dB),215===e.kind?Lj(e.template):vu(e)?Lj(e.attributes):cF(e)?Lj(e.left):L_(e)&&d(e.arguments,(e=>{Lj(e)})),si}function YI(e){return QI(e),ci}function ZI(e){return!!e&&(230===e.kind||237===e.kind&&e.isSpread)}function eO(e){return k(e,ZI)}function tO(e){return!!(16384&e.flags)}function nO(e){return!!(49155&e.flags)}function rO(e,t,n,r=!1){if(NE(e))return!0;let i,o=!1,a=hL(n),s=yL(n);if(215===e.kind)if(i=t.length,228===e.template.kind){const t=ve(e.template.templateSpans);o=Cd(t.literal)||!!t.literal.isUnterminated}else{const t=e.template;un.assert(15===t.kind),o=!!t.isUnterminated}else if(170===e.kind)i=xO(e,n);else if(226===e.kind)i=1;else if(vu(e)){if(o=e.attributes.end===e.end,o)return!0;i=0===s?t.length:1,a=0===t.length?a:1,s=Math.min(s,1)}else{if(!e.arguments)return un.assert(214===e.kind),0===yL(n);{i=r?t.length+1:t.length,o=e.arguments.end===e.end;const a=eO(t);if(a>=0)return a>=yL(n)&&(vL(n)||aa)return!1;if(o||i>=s)return!0;for(let t=i;t=r&&t.length<=n}function oO(e,t){let n;return!!(e.target&&(n=fL(e.target,t))&&cx(n))}function aO(e){return cO(e,0,!1)}function sO(e){return cO(e,0,!1)||cO(e,1,!1)}function cO(e,t,n){if(524288&e.flags){const r=pp(e);if(n||0===r.properties.length&&0===r.indexInfos.length){if(0===t&&1===r.callSignatures.length&&0===r.constructSignatures.length)return r.callSignatures[0];if(1===t&&1===r.constructSignatures.length&&0===r.callSignatures.length)return r.constructSignatures[0]}}}function lO(e,t,n,r){const i=Ew($g(e),e,0,r),o=bL(t),a=n&&(o&&262144&o.flags?n.nonFixingMapper:n.mapper);return Dw(a?Vk(t,a):t,e,((e,t)=>{rN(i.inferences,e,t)})),n||Fw(t,e,((e,t)=>{rN(i.inferences,e,t,128)})),Lg(e,_N(i),Fm(t.declaration))}function _O(e){if(!e)return ln;const t=Lj(e);return mb(e)?t:hl(e.parent)?rw(t):gl(e.parent)?ow(t):t}function uO(e,t,n,r,i){if(vu(e))return function(e,t,n,r){const i=mA(t,e),o=pj(e.attributes,i,r,n);return rN(r.inferences,o,i),_N(r)}(e,t,r,i);if(170!==e.kind&&226!==e.kind){const n=v(t.typeParameters,(e=>!!of(e))),r=sA(e,n?8:0);if(r){const o=Tg(t);if(Jw(o)){const a=fA(e);if(n||sA(e,8)===r){const e=Bw(function(e,t=0){return e&&Pw(E(e.inferences,Rw),e.signature,e.flags|t,e.compareTypes)}(a,1)),t=tS(r,e),n=aO(t),s=n&&n.typeParameters?Yg(jg(n,n.typeParameters)):t;rN(i.inferences,s,o,128)}const s=Ew(t.typeParameters,t,i.flags),c=tS(r,a&&a.returnMapper);rN(s.inferences,c,o),i.returnMapper=$(s.inferences,Nj)?Bw(function(e){const t=N(e.inferences,Nj);return t.length?Pw(E(t,Rw),e.signature,e.flags,e.compareTypes):void 0}(s)):void 0}}}const o=xL(t),a=o?Math.min(hL(t)-1,n.length):n.length;if(o&&262144&o.flags){const e=b(i.inferences,(e=>e.typeParameter===o));e&&(e.impliedArity=k(n,ZI,a)<0?n.length-a:void 0)}const s=yg(t);if(s&&Jw(s)){const t=yO(e);rN(i.inferences,_O(t),s)}for(let e=0;e=n-1){const t=e[n-1];if(ZI(t)){const e=237===t.kind?t.type:pj(t.expression,r,i,o);return CC(e)?dO(e):uv(rM(33,e,jt,230===t.kind?t.expression:t),a)}}const s=[],c=[],l=[];for(let _=t;_Yx(void 0,la.Type_0_does_not_satisfy_the_constraint_1):void 0,l=r||la.Type_0_does_not_satisfy_the_constraint_1;s||(s=Tk(o,a));const _=a[e];if(!bS(_,ld(tS(i,s),_),n?t[e]:void 0,l,c))return}}return a}function mO(e){if(PA(e.tagName))return 2;const t=pf(Lj(e.tagName));return u(Rf(t,1))?0:u(Rf(t,0))?1:2}function gO(e){return hF(e=oh(e))?oh(e.expression):e}function hO(e,t,n,r,i,o,a,s){const c={errors:void 0,skipLogging:!0};if(bu(e))return function(e,t,n,r,i,o,a){const s=mA(t,e),c=NE(e)?IA(e):pj(e.attributes,s,void 0,r),l=4&r?fw(c):c;return function(){var t;if(MA(e))return!0;const n=!TE(e)&&!SE(e)||PA(e.tagName)||IE(e.tagName)?void 0:Lj(e.tagName);if(!n)return!0;const r=Rf(n,0);if(!u(r))return!0;const o=SJ(e);if(!o)return!0;const s=Ka(o,111551,!0,!1,e);if(!s)return!0;const c=Rf(S_(s),0);if(!u(c))return!0;let l=!1,_=0;for(const e of c){const t=Rf(pL(e,0),0);if(u(t))for(const e of t){if(l=!0,vL(e))return!0;const t=hL(e);t>_&&(_=t)}}if(!l)return!0;let d=1/0;for(const e of r){const t=yL(e);t{n.push(e.expression)})),n}if(170===e.kind)return function(e){const t=e.expression,n=EL(e);if(n){const e=[];for(const r of n.parameters){const n=S_(r);e.push(vO(t,n))}return e}return un.fail()}(e);if(226===e.kind)return[e.left];if(vu(e))return e.attributes.properties.length>0||TE(e)&&e.parent.children.length>0?[e.attributes]:l;const t=e.arguments||l,n=eO(t);if(n>=0){const e=t.slice(0,n);for(let r=n;r{var o;const a=i.target.elementFlags[r],s=vO(n,4&a?uv(t):t,!!(12&a),null==(o=i.target.labeledElementDeclarations)?void 0:o[r]);e.push(s)})):e.push(n)}return e}return t}function xO(e,t){return j.experimentalDecorators?function(e,t){switch(e.parent.kind){case 263:case 231:return 1;case 172:return Av(e.parent)?3:2;case 174:case 177:case 178:return t.parameters.length<=2?2:3;case 169:return 3;default:return un.fail()}}(e,t):Math.min(Math.max(hL(t),1),2)}function kO(e){const t=hd(e),{start:n,length:r}=Gp(t,HD(e.expression)?e.expression.name:e.expression);return{start:n,length:r,sourceFile:t}}function SO(e,t,...n){if(GD(e)){const{sourceFile:r,start:i,length:o}=kO(e);return"message"in t?Kx(r,i,o,t,...n):Up(r,t)}return"message"in t?jp(e,t,...n):Bp(hd(e),e,t)}function TO(e,t,n,r){var i;const o=eO(n);if(o>-1)return jp(n[o],la.A_spread_argument_must_either_have_a_tuple_type_or_be_passed_to_a_rest_parameter);let a,s=Number.POSITIVE_INFINITY,c=Number.NEGATIVE_INFINITY,l=Number.NEGATIVE_INFINITY,_=Number.POSITIVE_INFINITY;for(const e of t){const t=yL(e),r=hL(e);tl&&(l=t),n.length1&&(y=A(S,mo,C,w)),y||(y=A(S,ho,C,w)),y)return y;if(y=function(e,t,n,r,i){return un.assert(t.length>0),mB(e),r||1===t.length||t.some((e=>!!e.typeParameters))?function(e,t,n,r){const i=function(e,t){let n=-1,r=-1;for(let i=0;i=t)return i;a>r&&(r=a,n=i)}return n}(t,void 0===Ee?n.length:Ee),o=t[i],{typeParameters:a}=o;if(!a)return o;const s=XI(e)?e.typeArguments:void 0,c=s?Rg(o,function(e,t,n){const r=e.map(ZB);for(;r.length>t.length;)r.pop();for(;r.lengthe.thisParameter));let n;t.length&&(n=NO(t,t.map(aL)));const{min:r,max:i}=oT(e,wO),o=[];for(let t=0;tUB(e)?tfL(e,t)))))}const a=B(e,(e=>UB(e)?ve(e.parameters):void 0));let s=128;if(0!==a.length){const t=uv(xb(B(e,Ag),2));o.push(DO(a,t)),s|=1}return e.some(VB)&&(s|=2),pd(e[0].declaration,void 0,n,o,Fb(e.map(Tg)),void 0,r,s)}(t)}(e,S,T,!!n,r),aa(e).resolvedSignature=y,f)if(!o&&p&&(o=la.The_left_hand_side_of_an_instanceof_expression_must_be_assignable_to_the_first_argument_of_the_right_hand_side_s_Symbol_hasInstance_method),m)if(1===m.length||m.length>3){const t=m[m.length-1];let n;m.length>3&&(n=Yx(n,la.The_last_overload_gave_the_following_error),n=Yx(n,la.No_overload_matches_this_call)),o&&(n=Yx(n,o));const r=hO(e,T,t,ho,0,!0,(()=>n),void 0);if(r)for(const e of r)t.declaration&&m.length>3&&iT(e,jp(t.declaration,la.The_last_overload_is_declared_here)),P(t,e),uo.add(e);else un.fail("No error for last overload signature")}else{const t=[];let n=0,r=Number.MAX_VALUE,i=0,a=0;for(const o of m){const s=hO(e,T,o,ho,0,!0,(()=>Yx(void 0,la.Overload_0_of_1_2_gave_the_following_error,a+1,S.length,ac(o))),void 0);s?(s.length<=r&&(r=s.length,i=a),n=Math.max(n,s.length),t.push(s)):un.fail("No error for 3 or fewer overload signatures"),a++}const s=n>1?t[i]:I(t);un.assert(s.length>0,"No errors reported for 3 or fewer overload signatures");let c=Yx(E(s,Vp),la.No_overload_matches_this_call);o&&(c=Yx(c,o));const l=[...O(s,(e=>e.relatedInformation))];let _;if(v(s,(e=>e.start===s[0].start&&e.length===s[0].length&&e.file===s[0].file))){const{file:e,start:t,length:n}=s[0];_={file:e,start:t,length:n,code:c.code,category:c.category,messageText:c,relatedInformation:l}}else _=Bp(hd(e),L_(F=e)?HD(F.expression)?F.expression.name:F.expression:QD(F)?HD(F.tag)?F.tag.name:F.tag:vu(F)?F.tagName:F,c,l);P(m[0],_),uo.add(_)}else if(g)uo.add(TO(e,[g],T,o));else if(h)fO(h,e.typeArguments,!0,o);else if(!_){const n=N(t,(e=>iO(e,x)));0===n.length?uo.add(function(e,t,n,r){const i=n.length;if(1===t.length){const o=t[0],a=ng(o.typeParameters),s=u(o.typeParameters);if(r){let t=Yx(void 0,la.Expected_0_type_arguments_but_got_1,ai?a=Math.min(a,t):n1?b(s,(e=>i_(e)&&wd(e.body))):void 0;if(c){const e=ig(c),n=!e.typeParameters;A([e],ho,n)&&iT(t,jp(c,la.The_call_would_have_succeeded_against_this_implementation_but_implementation_signatures_of_overloads_are_not_externally_visible))}m=i,g=o,h=a}function A(t,n,r,i=!1){var o,a,s;if(m=void 0,g=void 0,h=void 0,r){const r=t[0];if($(x)||!rO(e,T,r,i))return;return hO(e,T,r,n,0,!1,void 0,void 0)?void(m=[r]):r}for(let r=0;re===t))&&(_=(s=_).typeParameters?s.implementationSignatureCache||(s.implementationSignatureCache=function(e){return e.typeParameters?Vk(e,Tk([],[])):e}(s)):s),$(x)){if(n=fO(_,x,!1),!n){h=_;continue}}else l=Ew(_.typeParameters,_,Fm(e)?2:0),n=mk(uO(e,_,T,8|k,l),l.nonFixingMapper),k|=4&l.flags?8:0;if(c=Lg(_,n,Fm(_.declaration),l&&l.inferredTypeParameters),xL(_)&&!rO(e,T,c,i)){g=c;continue}}else c=_;if(!hO(e,T,c,n,k,!1,void 0,l)){if(k){if(k=0,l&&(c=Lg(_,mk(uO(e,_,T,k,l),l.mapper),Fm(_.declaration),l.inferredTypeParameters),xL(_)&&!rO(e,T,c,i))){g=c;continue}if(hO(e,T,c,n,k,!1,void 0,l)){(m||(m=[])).push(c);continue}}return t[r]=c,c}(m||(m=[])).push(c)}}}}function wO(e){const t=e.parameters.length;return UB(e)?t-1:t}function NO(e,t){return DO(e,xb(t,2))}function DO(e,t){return dw(ge(e),t)}function FO(e){return!(!e.typeParameters||!bJ(Tg(e)))}function EO(e,t,n,r){return Wc(e)||Wc(t)&&!!(262144&e.flags)||!n&&!r&&!(1048576&t.flags)&&!(131072&yf(t).flags)&&gS(e,Xn)}function PO(e,t,n){let r=cI(e.expression);if(r===dn)return _i;if(r=pf(r),$c(r))return YI(e);if(Wc(r))return e.typeArguments&&jo(e,la.Untyped_function_calls_may_not_accept_type_arguments),QI(e);const i=Rf(r,1);if(i.length){if(!function(e,t){if(!t||!t.declaration)return!0;const n=t.declaration,r=Lv(n,6);if(!r||176!==n.kind)return!0;const i=fx(n.parent.symbol),o=fu(n.parent.symbol);if(!BB(e,i)){const t=Gf(e);if(t&&4&r){const e=ZB(t);if(IO(n.parent.symbol,e))return!0}return 2&r&&jo(e,la.Constructor_of_class_0_is_private_and_only_accessible_within_the_class_declaration,sc(o)),4&r&&jo(e,la.Constructor_of_class_0_is_protected_and_only_accessible_within_the_class_declaration,sc(o)),!1}return!0}(e,i[0]))return YI(e);if(AO(i,(e=>!!(4&e.flags))))return jo(e,la.Cannot_create_an_instance_of_an_abstract_class),YI(e);const o=r.symbol&&fx(r.symbol);return o&&wv(o,64)?(jo(e,la.Cannot_create_an_instance_of_an_abstract_class),YI(e)):CO(e,i,t,n,0)}const o=Rf(r,0);if(o.length){const r=CO(e,o,t,n,0);return ne||(r.declaration&&!qO(r.declaration)&&Tg(r)!==ln&&jo(e,la.Only_a_void_function_can_be_called_with_the_new_keyword),yg(r)===ln&&jo(e,la.A_function_that_is_called_with_the_new_keyword_cannot_have_a_this_type_that_is_void)),r}return LO(e.expression,r,1),YI(e)}function AO(e,t){return Qe(e)?$(e,(e=>AO(e,t))):1048576===e.compositeKind?$(e.compositeSignatures,t):t(e)}function IO(e,t){const n=Z_(t);if(!u(n))return!1;const r=n[0];if(2097152&r.flags){const t=Ad(r.types);let n=0;for(const i of r.types){if(!t[n]&&3&mx(i)){if(i.symbol===e)return!0;if(IO(e,i))return!0}n++}return!1}return r.symbol===e||IO(e,r)}function OO(e,t,n){let r;const i=0===n,o=dR(t),a=o&&Rf(o,n).length>0;if(1048576&t.flags){const e=t.types;let o=!1;for(const a of e)if(0!==Rf(a,n).length){if(o=!0,r)break}else if(r||(r=Yx(r,i?la.Type_0_has_no_call_signatures:la.Type_0_has_no_construct_signatures,sc(a)),r=Yx(r,i?la.Not_all_constituents_of_type_0_are_callable:la.Not_all_constituents_of_type_0_are_constructable,sc(t))),o)break;o||(r=Yx(void 0,i?la.No_constituent_of_type_0_is_callable:la.No_constituent_of_type_0_is_constructable,sc(t))),r||(r=Yx(r,i?la.Each_member_of_the_union_type_0_has_signatures_but_none_of_those_signatures_are_compatible_with_each_other:la.Each_member_of_the_union_type_0_has_construct_signatures_but_none_of_those_signatures_are_compatible_with_each_other,sc(t)))}else r=Yx(r,i?la.Type_0_has_no_call_signatures:la.Type_0_has_no_construct_signatures,sc(t));let s=i?la.This_expression_is_not_callable:la.This_expression_is_not_constructable;if(GD(e.parent)&&0===e.parent.arguments.length){const{resolvedSymbol:t}=aa(e);t&&32768&t.flags&&(s=la.This_expression_is_not_callable_because_it_is_a_get_accessor_Did_you_mean_to_use_it_without)}return{messageChain:Yx(r,s),relatedMessage:a?la.Did_you_forget_to_use_await:void 0}}function LO(e,t,n,r){const{messageChain:i,relatedMessage:o}=OO(e,t,n),a=Bp(hd(e),e,i);if(o&&iT(a,jp(e,o)),GD(e.parent)){const{start:t,length:n}=kO(e.parent);a.start=t,a.length=n}uo.add(a),jO(t,n,r?iT(a,r):a)}function jO(e,t,n){if(!e.symbol)return;const r=oa(e.symbol).originatingImport;if(r&&!cf(r)){const i=Rf(S_(oa(e.symbol).target),t);if(!i||!i.length)return;iT(n,jp(r,la.Type_originates_at_this_import_A_namespace_style_import_cannot_be_called_or_constructed_and_will_cause_a_failure_at_runtime_Consider_using_a_default_import_or_import_require_here_instead))}}function RO(e,t){const n=BA(e),r=n&&cs(n),i=r&&sa(r,vB.Element,788968),o=i&&xe.symbolToEntityName(i,788968,e),a=XC.createFunctionTypeNode(void 0,[XC.createParameterDeclaration(void 0,void 0,"props",void 0,xe.typeToTypeNode(t,e))],o?XC.createTypeReferenceNode(o,void 0):XC.createKeywordTypeNode(133)),s=Wo(1,"props");return s.links.type=t,pd(a,void 0,void 0,[s],i?fu(i):Et,void 0,1,0)}function MO(e){const t=aa(hd(e));if(void 0!==t.jsxFragmentType)return t.jsxFragmentType;const n=Eo(e);if("null"===n)return t.jsxFragmentType=wt;const r=uo?la.Using_JSX_fragments_requires_fragment_factory_0_to_be_in_scope_but_it_could_not_be_found:void 0,i=MA(e)??Ue(e,n,1===j.jsx?111167:111551,r,!0);if(void 0===i)return t.jsxFragmentType=Et;if(i.escapedName===xB.Fragment)return t.jsxFragmentType=S_(i);const o=2097152&i.flags?Ba(i):i,a=i&&cs(o),s=a&&sa(a,xB.Fragment,2),c=s&&S_(s);return t.jsxFragmentType=void 0===c?Et:c}function BO(e,t,n){const r=NE(e);let i;if(r)i=MO(e);else{if(PA(e.tagName)){const t=WA(e),n=RO(e,t);return xS(pj(e.attributes,mA(n,e),void 0,0),t,e.tagName,e.attributes),u(e.typeArguments)&&(d(e.typeArguments,dB),uo.add(Rp(hd(e),e.typeArguments,la.Expected_0_type_arguments_but_got_1,0,u(e.typeArguments)))),n}i=Lj(e.tagName)}const o=pf(i);if($c(o))return YI(e);const a=qA(i,e);return EO(i,o,a.length,0)?QI(e):0===a.length?(r?jo(e,la.JSX_element_type_0_does_not_have_any_construct_or_call_signatures,Kd(e)):jo(e.tagName,la.JSX_element_type_0_does_not_have_any_construct_or_call_signatures,Kd(e.tagName)),YI(e)):CO(e,a,t,n,0)}function JO(e,t,n){switch(e.kind){case 213:return function(e,t,n){if(108===e.expression.kind){const r=xP(e.expression);if(Wc(r)){for(const t of e.arguments)Lj(t);return si}if(!$c(r)){const i=hh(Gf(e));if(i)return CO(e,$_(r,i.typeArguments,i),t,n,0)}return QI(e)}let r,i=Lj(e.expression);if(ml(e)){const t=sw(i,e.expression);r=t===i?0:vl(e)?16:8,i=t}else r=0;if(i=pI(i,e.expression,dI),i===dn)return _i;const o=pf(i);if($c(o))return YI(e);const a=Rf(o,0),s=Rf(o,1).length;if(EO(i,o,a.length,s))return!$c(i)&&e.typeArguments&&jo(e,la.Untyped_function_calls_may_not_accept_type_arguments),QI(e);if(!a.length){if(s)jo(e,la.Value_of_type_0_is_not_callable_Did_you_mean_to_include_new,sc(i));else{let t;if(1===e.arguments.length){const n=hd(e).text;Ua(n.charCodeAt(Xa(n,e.expression.end,!0)-1))&&(t=jp(e.expression,la.Are_you_missing_a_semicolon))}LO(e.expression,o,0,t)}return YI(e)}return 8&n&&!e.typeArguments&&a.some(FO)?(wj(e,n),li):a.some((e=>Fm(e.declaration)&&!!Rc(e.declaration)))?(jo(e,la.Value_of_type_0_is_not_callable_Did_you_mean_to_include_new,sc(i)),YI(e)):CO(e,a,t,n,r)}(e,t,n);case 214:return PO(e,t,n);case 215:return function(e,t,n){const r=Lj(e.tag),i=pf(r);if($c(i))return YI(e);const o=Rf(i,0),a=Rf(i,1).length;if(EO(r,i,o.length,a))return QI(e);if(!o.length){if(WD(e.parent)){const t=jp(e.tag,la.It_is_likely_that_you_are_missing_a_comma_to_separate_these_two_template_expressions_They_form_a_tagged_template_expression_which_cannot_be_invoked);return uo.add(t),YI(e)}return LO(e.tag,i,0),YI(e)}return CO(e,o,t,n,0)}(e,t,n);case 170:return function(e,t,n){const r=Lj(e.expression),i=pf(r);if($c(i))return YI(e);const o=Rf(i,0),a=Rf(i,1).length;if(EO(r,i,o.length,a))return QI(e);if(s=e,(c=o).length&&v(c,(e=>0===e.minArgumentCount&&!UB(e)&&e.parameters.length!!e.typeParameters&&iO(e,n))),(e=>{const t=fO(e,n,!0);return t?Lg(e,t,Fm(e.declaration)):e}))}}function rL(e,t,n){const r=Lj(e,n),i=dk(t);return $c(i)?i:(xS(r,i,_c(t.parent,(e=>238===e.kind||350===e.kind)),e,la.Type_0_does_not_satisfy_the_expected_type_1),r)}function iL(e){switch(e.keywordToken){case 102:return My();case 105:const t=oL(e);return $c(t)?Et:function(e){const t=Wo(0,"NewTargetExpression"),n=Wo(4,"target",8);n.parent=t,n.links.type=e;const r=Hu([n]);return t.members=r,Bs(t,r,l,l,l)}(t);default:un.assertNever(e.keywordToken)}}function oL(e){const t=nm(e);return t?176===t.kind?S_(ps(t.parent)):S_(ps(t)):(jo(e,la.Meta_property_0_is_only_allowed_in_the_body_of_a_function_declaration_function_expression_or_constructor,"new.target"),Et)}function aL(e){const t=e.valueDeclaration;return kl(S_(e),!1,!!t&&(Fu(t)||KT(t)))}function sL(e,t,n){switch(e.name.kind){case 80:{const r=e.name.escapedText;return e.dotDotDotToken?12&n?r:`${r}_${t}`:3&n?r:`${r}_n`}case 207:if(e.dotDotDotToken){const r=e.name.elements,i=tt(ye(r),VD),o=r.length-((null==i?void 0:i.dotDotDotToken)?1:0);if(t=r-1)return t===r-1?o:uv(vx(o,Wt));const a=[],s=[],c=[];for(let n=t;n!(1&e))),i=r<0?n.target.fixedLength:r;i>0&&(t=e.parameters.length-1+i)}}if(void 0===t){if(!n&&32&e.flags)return 0;t=e.minArgumentCount}if(r)return t;for(let n=t-1;n>=0&&!(131072&OD(pL(e,n),tO).flags);n--)t=n;e.resolvedMinArgumentCount=t}return e.resolvedMinArgumentCount}function vL(e){if(UB(e)){const t=S_(e.parameters[e.parameters.length-1]);return!UC(t)||!!(12&t.target.combinedFlags)}return!1}function bL(e){if(UB(e)){const t=S_(e.parameters[e.parameters.length-1]);if(!UC(t))return Wc(t)?cr:t;if(12&t.target.combinedFlags)return Jv(t,t.target.fixedLength)}}function xL(e){const t=bL(e);return!t||yC(t)||Wc(t)?void 0:t}function kL(e){return SL(e,_n)}function SL(e,t){return e.parameters.length>0?pL(e,0):t}function TL(e,t,n){const r=e.parameters.length-(UB(e)?1:0);for(let i=0;i=0);const i=dD(e.parent)?S_(ps(e.parent.parent)):rJ(e.parent),o=dD(e.parent)?jt:iJ(e.parent),a=ok(r),s=$o("target",i),c=$o("propertyKey",o),l=$o("parameterIndex",a);n.decoratorSignature=mR(void 0,void 0,[s,c,l],ln);break}case 174:case 177:case 178:case 172:{const e=t;if(!__(e.parent))break;const r=$o("target",rJ(e)),i=$o("propertyKey",iJ(e)),o=cD(e)?ln:nv(ZB(e));if(!cD(t)||Av(t)){const t=$o("descriptor",nv(ZB(e)));n.decoratorSignature=mR(void 0,void 0,[r,i,t],xb([o,ln]))}else n.decoratorSignature=mR(void 0,void 0,[r,i],xb([o,ln]));break}}return n.decoratorSignature===si?void 0:n.decoratorSignature}(e):FL(e)}function PL(e){const t=Uy(!0);return t!==On?jh(t,[e=pR(lR(e))||Ot]):Ot}function AL(e){const t=Vy(!0);return t!==On?jh(t,[e=pR(lR(e))||Ot]):Ot}function IL(e,t){const n=PL(t);return n===Ot?(jo(e,cf(e)?la.A_dynamic_import_call_returns_a_Promise_Make_sure_you_have_a_declaration_for_Promise_or_include_ES2015_in_your_lib_option:la.An_async_function_or_method_must_return_a_Promise_Make_sure_you_have_a_declaration_for_Promise_or_include_ES2015_in_your_lib_option),Et):(Wy(!0)||jo(e,cf(e)?la.A_dynamic_import_call_in_ES5_requires_the_Promise_constructor_Make_sure_you_have_a_declaration_for_the_Promise_constructor_or_include_ES2015_in_your_lib_option:la.An_async_function_or_method_in_ES5_requires_the_Promise_constructor_Make_sure_you_have_a_declaration_for_the_Promise_constructor_or_include_ES2015_in_your_lib_option),n)}function OL(e,t){if(!e.body)return Et;const n=Ih(e),r=!!(2&n),i=!!(1&n);let o,a,s,c=ln;if(241!==e.body.kind)o=fj(e.body,t&&-9&t),r&&(o=lR(aR(o,!1,e,la.The_return_type_of_an_async_function_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member)));else if(i){const n=JL(e,t);n?n.length>0&&(o=xb(n,2)):c=_n;const{yieldTypes:r,nextTypes:i}=function(e,t){const n=[],r=[],i=!!(2&Ih(e));return Nf(e.body,(e=>{const o=e.expression?Lj(e.expression,t):Rt;let a;if(ce(n,jL(e,o,wt,i)),e.asteriskToken){const t=_M(o,i?19:17,e.expression);a=t&&t.nextType}else a=sA(e,void 0);a&&ce(r,a)})),{yieldTypes:n,nextTypes:r}}(e,t);a=$(r)?xb(r,2):void 0,s=$(i)?Fb(i):void 0}else{const r=JL(e,t);if(!r)return 2&n?IL(e,_n):_n;if(0===r.length){const t=RP(e,void 0),r=t&&32768&(NM(t,n)||ln).flags?jt:ln;return 2&n?IL(e,r):r}o=xb(r,2)}if(o||a||s){if(a&&Nw(e,a,3),o&&Nw(e,o,1),s&&Nw(e,s,2),o&&OC(o)||a&&OC(a)||s&&OC(s)){const t=yA(e),n=t?t===ig(e)?i?void 0:o:nA(Tg(t),e,void 0):void 0;i?(a=qC(a,n,0,r),o=qC(o,n,1,r),s=qC(s,n,2,r)):o=function(e,t,n){return e&&OC(e)&&(e=zC(e,t?n?oR(t):t:void 0)),e}(o,n,r)}a&&(a=Sw(a)),o&&(o=Sw(o)),s&&(s=Sw(s))}return i?LL(a||_n,o||c,s||jP(2,e)||Ot,r):r?PL(o||c):o||c}function LL(e,t,n,r){const i=r?gi:hi,o=i.getGlobalGeneratorType(!1);if(e=i.resolveIterationType(e,void 0)||Ot,t=i.resolveIterationType(t,void 0)||Ot,o===On){const r=i.getGlobalIterableIteratorType(!1);return r!==On?tv(r,[e,t,n]):(i.getGlobalIterableIteratorType(!0),Nn)}return tv(o,[e,t,n])}function jL(e,t,n,r){const i=e.expression||e,o=e.asteriskToken?rM(r?19:17,t,n,i):t;return r?dR(o,i,e.asteriskToken?la.Type_of_iterated_elements_of_a_yield_Asterisk_operand_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member:la.Type_of_yield_operand_in_an_async_generator_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member):o}function RL(e,t,n){let r=0;for(let i=0;i=t?n[i]:void 0;r|=void 0!==o?FB.get(o)||32768:0}return r}function ML(e){const t=aa(e);if(void 0===t.isExhaustive){t.isExhaustive=0;const n=function(e){if(221===e.expression.kind){const t=tD(e);if(!t)return!1;const n=Wp(fj(e.expression.expression)),r=RL(0,0,t);return 3&n.flags?!(556800&~r):!ED(n,(e=>PN(e,r)===r))}const t=fj(e.expression);if(!jC(t))return!1;const n=ZN(e);return!(!n.length||$(n,IC))&&(r=zD(t,nk),i=n,1048576&r.flags?!d(r.types,(e=>!T(i,e))):T(i,r));var r,i}(e);0===t.isExhaustive&&(t.isExhaustive=n)}else 0===t.isExhaustive&&(t.isExhaustive=!1);return t.isExhaustive}function BL(e){return e.endFlowNode&&LF(e.endFlowNode)}function JL(e,t){const n=Ih(e),r=[];let i=BL(e),o=!1;if(wf(e.body,(a=>{let s=a.expression;if(s){if(s=oh(s,!0),2&n&&223===s.kind&&(s=oh(s.expression,!0)),213===s.kind&&80===s.expression.kind&&fj(s.expression).symbol===ds(e.symbol)&&(!jT(e.symbol.valueDeclaration)||BF(s.expression)))return void(o=!0);let i=fj(s,t&&-9&t);2&n&&(i=lR(aR(i,!1,e,la.The_return_type_of_an_async_function_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member))),131072&i.flags&&(o=!0),ce(r,i)}else i=!0})),0!==r.length||i||!o&&!function(e){switch(e.kind){case 218:case 219:return!0;case 174:return 210===e.parent.kind;default:return!1}}(e))return!(H&&r.length&&i)||qO(e)&&r.some((t=>t.symbol===e.symbol))||ce(r,jt),r}function zL(e,t){a((function(){const n=Ih(e),r=t&&NM(t,n);if(r&&(QL(r,16384)||32769&r.flags))return;if(173===e.kind||Cd(e.body)||241!==e.body.kind||!BL(e))return;const i=1024&e.flags,o=mv(e)||e;if(r&&131072&r.flags)jo(o,la.A_function_returning_never_cannot_have_a_reachable_end_point);else if(r&&!i)jo(o,la.A_function_whose_declared_type_is_neither_undefined_void_nor_any_must_return_a_value);else if(r&&H&&!gS(jt,r))jo(o,la.Function_lacks_ending_return_statement_and_return_type_does_not_include_undefined);else if(j.noImplicitReturns){if(!r){if(!i)return;const t=Tg(ig(e));if(DM(e,t))return}jo(o,la.Not_all_code_paths_return_a_value)}}))}function qL(e,t){if(un.assert(174!==e.kind||Mf(e)),mB(e),eF(e)&&WR(e,e.name),t&&4&t&&aS(e)){if(!mv(e)&&!IT(e)){const n=vA(e);if(n&&Jw(Tg(n))){const n=aa(e);if(n.contextFreeType)return n.contextFreeType;const r=OL(e,t),i=pd(void 0,void 0,void 0,l,r,void 0,0,64),o=Bs(e.symbol,P,[i],l,l);return o.objectFlags|=262144,n.contextFreeType=o}}return Ln}return IJ(e)||218!==e.kind||BJ(e),function(e,t){const n=aa(e);if(!(64&n.flags)){const r=vA(e);if(!(64&n.flags)){n.flags|=64;const i=fe(Rf(S_(ps(e)),0));if(!i)return;if(aS(e))if(r){const n=fA(e);let o;if(t&&2&t){TL(i,r,n);const e=bL(r);e&&262144&e.flags&&(o=Vk(r,n.nonFixingMapper))}o||(o=n?Vk(r,n.mapper):r),function(e,t){if(t.typeParameters){if(e.typeParameters)return;e.typeParameters=t.typeParameters}if(t.thisParameter){const n=e.thisParameter;(!n||n.valueDeclaration&&!n.valueDeclaration.type)&&(n||(e.thisParameter=dw(t.thisParameter,void 0)),CL(e.thisParameter,S_(t.thisParameter)))}const n=e.parameters.length-(UB(e)?1:0);for(let r=0;re.parameters.length){const n=fA(e);t&&2&t&&TL(i,r,n)}if(r&&!Fg(e)&&!i.resolvedReturnType){const n=OL(e,t);i.resolvedReturnType||(i.resolvedReturnType=n)}Bj(e)}}}(e,t),S_(ps(e))}function UL(e,t,n,r=!1){if(!gS(t,yn)){const i=r&&iR(t);return Jo(e,!!i&&gS(i,yn),n),!1}return!0}function VL(e){if(!GD(e))return!1;if(!tg(e))return!1;const t=fj(e.arguments[2]);if(Uc(t,"value")){const e=Cf(t,"writable"),n=e&&S_(e);if(!n||n===Ht||n===Qt)return!0;if(e&&e.valueDeclaration&&ME(e.valueDeclaration)){const t=Lj(e.valueDeclaration.initializer);if(t===Ht||t===Qt)return!0}return!1}return!Cf(t,"set")}function WL(e){return!!(8&nx(e)||4&e.flags&&8&rx(e)||3&e.flags&&6&ZA(e)||98304&e.flags&&!(65536&e.flags)||8&e.flags||$(e.declarations,VL))}function $L(e,t,n){var r,i;if(0===n)return!1;if(WL(t)){if(4&t.flags&&kx(e)&&110===e.expression.kind){const n=Hf(e);if(!n||176!==n.kind&&!qO(n))return!0;if(t.valueDeclaration){const e=cF(t.valueDeclaration),o=n.parent===t.valueDeclaration.parent,a=n===t.valueDeclaration.parent,s=e&&(null==(r=t.parent)?void 0:r.valueDeclaration)===n.parent,c=e&&(null==(i=t.parent)?void 0:i.valueDeclaration)===n;return!(o||a||s||c)}}return!0}if(kx(e)){const t=oh(e.expression);if(80===t.kind){const e=aa(t).resolvedSymbol;if(2097152&e.flags){const t=ba(e);return!!t&&274===t.kind}}}return!1}function HL(e,t,n){const r=cA(e,7);return 80===r.kind||kx(r)?!(64&r.flags&&(jo(e,n),1)):(jo(e,t),!1)}function KL(e){let t=!1;const n=Qf(e);if(n&&uD(n))jo(e,oF(e)?la.await_expression_cannot_be_used_inside_a_class_static_block:la.await_using_statements_cannot_be_used_inside_a_class_static_block),t=!0;else if(!(65536&e.flags))if(tm(e)){const n=hd(e);if(!ZJ(n)){let r;if(!mp(n,j)){r??(r=Hp(n,e.pos));const i=oF(e)?la.await_expressions_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_this_file_has_no_imports_or_exports_Consider_adding_an_empty_export_to_make_this_file_a_module:la.await_using_statements_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_this_file_has_no_imports_or_exports_Consider_adding_an_empty_export_to_make_this_file_a_module,o=Kx(n,r.start,r.length,i);uo.add(o),t=!0}switch(M){case 100:case 199:if(1===n.impliedNodeFormat){r??(r=Hp(n,e.pos)),uo.add(Kx(n,r.start,r.length,la.The_current_file_is_a_CommonJS_module_and_cannot_use_await_at_the_top_level)),t=!0;break}case 7:case 99:case 200:case 4:if(R>=4)break;default:r??(r=Hp(n,e.pos));const i=oF(e)?la.Top_level_await_expressions_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_node16_nodenext_or_preserve_and_the_target_option_is_set_to_es2017_or_higher:la.Top_level_await_using_statements_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_node16_nodenext_or_preserve_and_the_target_option_is_set_to_es2017_or_higher;uo.add(Kx(n,r.start,r.length,i)),t=!0}}}else{const r=hd(e);if(!ZJ(r)){const i=Hp(r,e.pos),o=oF(e)?la.await_expressions_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules:la.await_using_statements_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules,a=Kx(r,i.start,i.length,o);!n||176===n.kind||2&Ih(n)||iT(a,jp(n,la.Did_you_mean_to_mark_this_function_as_async)),uo.add(a),t=!0}}return oF(e)&&LP(e)&&(jo(e,la.await_expressions_cannot_be_used_in_a_parameter_initializer),t=!0),t}function GL(e){return QL(e,2112)?YL(e,3)||QL(e,296)?yn:$t:Wt}function XL(e,t){if(QL(e,t))return!0;const n=Wp(e);return!!n&&QL(n,t)}function QL(e,t){if(e.flags&t)return!0;if(3145728&e.flags){const n=e.types;for(const e of n)if(QL(e,t))return!0}return!1}function YL(e,t,n){return!!(e.flags&t)||!(n&&114691&e.flags)&&(!!(296&t)&&gS(e,Wt)||!!(2112&t)&&gS(e,$t)||!!(402653316&t)&&gS(e,Vt)||!!(528&t)&&gS(e,sn)||!!(16384&t)&&gS(e,ln)||!!(131072&t)&&gS(e,_n)||!!(65536&t)&&gS(e,zt)||!!(32768&t)&&gS(e,jt)||!!(4096&t)&&gS(e,cn)||!!(67108864&t)&&gS(e,mn))}function ZL(e,t,n){return 1048576&e.flags?v(e.types,(e=>ZL(e,t,n))):YL(e,t,n)}function ej(e){return!!(16&mx(e))&&!!e.symbol&&tj(e.symbol)}function tj(e){return!!(128&e.flags)}function nj(e){const t=mM("hasInstance");if(ZL(e,67108864)){const n=Cf(e,t);if(n){const e=S_(n);if(e&&0!==Rf(e,0).length)return e}}}function rj(e,t,n,r,i=!1){const o=e.properties,a=o[n];if(303===a.kind||304===a.kind){const e=a.name,n=Rb(e);if(oC(n)){const e=Cf(t,aC(n));e&&(zI(e,a,i),tI(a,!1,!0,t,e))}const r=nl(a,vx(t,n,32|(bA(a)?16:0),e));return oj(304===a.kind?a:a.initializer,r)}if(305===a.kind){if(!(nJv(e,n))):uv(r),i);jo(o.operatorToken,la.A_rest_element_cannot_have_an_initializer)}}}function oj(e,t,n,r){let i;if(304===e.kind){const r=e;r.objectAssignmentInitializer&&(H&&!AN(Lj(r.objectAssignmentInitializer),16777216)&&(t=ON(t,524288)),function(e,t,n,r){const i=t.kind;if(64===i&&(210===e.kind||209===e.kind))return oj(e,Lj(n,r),r,110===n.kind);let o;o=Hv(i)?tM(e,r):Lj(e,r);lj(e,t,n,o,Lj(n,r),r,void 0)}(r.name,r.equalsToken,r.objectAssignmentInitializer,n)),i=e.name}else i=e;return 226===i.kind&&64===i.operatorToken.kind&&(pe(i,n),i=i.left,H&&(t=ON(t,524288))),210===i.kind?function(e,t,n){const r=e.properties;if(H&&0===r.length)return fI(t,e);for(let i=0;i=32&&Mo(zE(nh(n.parent.parent)),s||t,la.This_operation_can_be_simplified_This_shift_is_identical_to_0_1_2,Kd(e),Da(c),r.value%32)}return l}case 40:case 65:if(r===dn||i===dn)return dn;let h;if(YL(r,402653316)||YL(i,402653316)||(r=fI(r,e),i=fI(i,n)),YL(r,296,!0)&&YL(i,296,!0)?h=Wt:YL(r,2112,!0)&&YL(i,2112,!0)?h=$t:YL(r,402653316,!0)||YL(i,402653316,!0)?h=Vt:(Wc(r)||Wc(i))&&(h=$c(r)||$c(i)?Et:wt),h&&!d(c))return h;if(!h){const e=402655727;return m(((t,n)=>YL(t,e)&&YL(n,e))),wt}return 65===c&&p(h),h;case 30:case 32:case 33:case 34:return d(c)&&(r=MC(fI(r,e)),i=MC(fI(i,n)),f(((e,t)=>{if(Wc(e)||Wc(t))return!0;const n=gS(e,yn),r=gS(t,yn);return n&&r||!n&&!r&&vS(e,t)}))),sn;case 35:case 36:case 37:case 38:if(!(o&&64&o)){if((Il(e)||Il(n))&&(!Fm(e)||37===c||38===c)){const e=35===c||37===c;jo(s,la.This_condition_will_always_return_0_since_JavaScript_compares_objects_by_reference_not_value,e?"false":"true")}!function(e,t,n,r){const i=g(oh(n)),o=g(oh(r));if(i||o){const a=jo(e,la.This_condition_will_always_return_0,Da(37===t||35===t?97:112));if(i&&o)return;const s=38===t||36===t?Da(54):"",c=i?r:n,l=oh(c);iT(a,jp(c,la.Did_you_mean_0,`${s}Number.isNaN(${ob(l)?Lp(l):"..."})`))}}(s,c,e,n),f(((e,t)=>sj(e,t)||sj(t,e)))}return sn;case 104:return function(e,t,n,r,i){if(n===dn||r===dn)return dn;!Wc(n)&&ZL(n,402784252)&&jo(e,la.The_left_hand_side_of_an_instanceof_expression_must_be_of_type_any_an_object_type_or_a_type_parameter),un.assert(fb(e.parent));const o=zO(e.parent,void 0,i);return o===li?dn:(bS(Tg(o),sn,t,la.An_object_s_Symbol_hasInstance_method_must_return_a_boolean_value_for_it_to_be_used_on_the_right_hand_side_of_an_instanceof_expression),sn)}(e,n,r,i,o);case 103:return function(e,t,n,r){return n===dn||r===dn?dn:(qN(e)?((Re===An||!!(2097152&e.flags)&&jS(Wp(e))))&&jo(t,la.Type_0_may_represent_a_primitive_value_which_is_not_permitted_as_the_right_operand_of_the_in_operator,sc(r)),sn)}(e,n,r,i);case 56:case 77:{const e=AN(r,4194304)?xb([(_=H?r:RC(i),zD(_,ZC)),i]):r;return 77===c&&p(i),e}case 57:case 76:{const e=AN(r,8388608)?xb([rw(QC(r)),i],2):r;return 76===c&&p(i),e}case 61:case 78:{const e=AN(r,262144)?xb([rw(r),i],2):r;return 78===c&&p(i),e}case 64:const y=cF(e.parent)?eg(e.parent):0;return function(e,t){if(2===e)for(const e of gp(t)){const t=S_(e);if(t.symbol&&32&t.symbol.flags){const t=e.escapedName,n=Ue(e.valueDeclaration,t,788968,void 0,!1);(null==n?void 0:n.declarations)&&n.declarations.some(CP)&&(Zo(n,la.Duplicate_identifier_0,fc(t),e),Zo(e,la.Duplicate_identifier_0,fc(t),n))}}}(y,i),function(t){var r;switch(t){case 2:return!0;case 1:case 5:case 6:case 3:case 4:const t=gs(e),i=Wm(n);return!!i&&$D(i)&&!!(null==(r=null==t?void 0:t.exports)?void 0:r.size);default:return!1}}(y)?(524288&i.flags&&(2===y||6===y||LS(i)||EN(i)||1&mx(i))||p(i),r):(p(i),i);case 28:if(!j.allowUnreachableCode&&aj(e)&&!(217===(l=e.parent).parent.kind&&kN(l.left)&&"0"===l.left.text&&(GD(l.parent.parent)&&l.parent.parent.expression===l.parent||215===l.parent.parent.kind)&&(kx(l.right)||zN(l.right)&&"eval"===l.right.escapedText))){const t=hd(e),n=Xa(t.text,e.pos);t.parseDiagnostics.some((e=>e.code===la.JSX_expressions_must_have_one_parent_element.code&&Es(e,n)))||jo(e,la.Left_side_of_comma_operator_is_unused_and_has_no_side_effects)}return i;default:return un.fail()}var l,_;function u(e,t){return YL(e,2112)&&YL(t,2112)}function d(t){const o=XL(r,12288)?e:XL(i,12288)?n:void 0;return!o||(jo(o,la.The_0_operator_cannot_be_applied_to_type_symbol,Da(t)),!1)}function p(i){Zv(c)&&a((function(){let o=r;if(MJ(t.kind)&&211===e.kind&&(o=gI(e,void 0,!0)),HL(e,la.The_left_hand_side_of_an_assignment_expression_must_be_a_variable_or_a_property_access,la.The_left_hand_side_of_an_assignment_expression_may_not_be_an_optional_property_access)){let t;if(_e&&HD(e)&&QL(i,32768)){const n=Uc(Aj(e.expression),e.name.escapedText);QS(i,n)&&(t=la.Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_type_of_the_target)}xS(i,o,e,n,t)}}))}function f(e){return!e(r,i)&&(m(e),!0)}function m(e){let n=!1;const o=s||t;if(e){const t=pR(r),o=pR(i);n=!(t===r&&o===i)&&!(!t||!o)&&e(t,o)}let a=r,c=i;!n&&e&&([a,c]=function(e,t,n){let r=e,i=t;const o=RC(e),a=RC(t);return n(o,a)||(r=o,i=a),[r,i]}(r,i,e));const[l,_]=cc(a,c);(function(e,n,r,i){switch(t.kind){case 37:case 35:case 38:case 36:return Jo(e,n,la.This_comparison_appears_to_be_unintentional_because_the_types_0_and_1_have_no_overlap,r,i);default:return}})(o,n,l,_)||Jo(o,n,la.Operator_0_cannot_be_applied_to_types_1_and_2,Da(t.kind),l,_)}function g(e){if(zN(e)&&"NaN"===e.escapedText){const t=Wr||(Wr=wy("NaN",!1));return!!t&&t===dN(e)}return!1}}function _j(e){const t=e.parent;return ZD(t)&&_j(t)||KD(t)&&t.argumentExpression===e}function uj(e){const t=[e.head.text],n=[];for(const r of e.templateSpans){const e=Lj(r.expression);XL(e,12288)&&jo(r.expression,la.Implicit_conversion_of_a_symbol_to_a_string_will_fail_at_runtime_Consider_wrapping_this_expression_in_String),t.push(r.literal.text),n.push(gS(e,vn)?e:Vt)}const r=215!==e.parent.kind&&Ce(e).value;return r?ek(ik(r)):xj(e)||_j(e)||ED(sA(e,void 0)||Ot,dj)?Vb(t,n):Vt}function dj(e){return!!(134217856&e.flags||58982400&e.flags&&QL(qp(e)||Ot,402653316))}function pj(e,t,n,r){const i=function(e){return EE(e)&&!SE(e.parent)?e.parent.parent:e}(e);uA(i,t,!1),function(e,t){Ai[Oi]=e,Ii[Oi]=t,Oi++}(i,n);const o=Lj(e,1|r|(n?2:0));n&&n.intraExpressionInferenceSites&&(n.intraExpressionInferenceSites=void 0);const a=QL(o,2944)&&bj(o,nA(t,e,void 0))?nk(o):o;return Oi--,dA(),a}function fj(e,t){if(t)return Lj(e,t);const n=aa(e);if(!n.resolvedType){const r=xi,i=ri;xi=ki,ri=void 0,n.resolvedType=Lj(e,t),ri=i,xi=r}return n.resolvedType}function mj(e){return 216===(e=oh(e,!0)).kind||234===e.kind||oA(e)}function gj(e,t,n){const r=Um(e);if(Fm(e)){const n=YT(e);if(n)return rL(r,n,t)}const i=Ij(r)||(n?pj(r,n,void 0,t||0):fj(r,t));if(oD(VD(e)?tc(e):e)){if(206===e.name.kind&&aN(i))return function(e,t){let n;for(const r of t.elements)if(r.initializer){const t=hj(r);t&&!Cf(e,t)&&(n=ie(n,r))}if(!n)return e;const r=Hu();for(const t of gp(e))r.set(t.escapedName,t);for(const e of n){const t=Wo(16777220,hj(e));t.links.type=Bl(e,!1,!1),r.set(t.escapedName,t)}const i=Bs(e.symbol,r,l,l,Kf(e));return i.objectFlags=e.objectFlags,i}(i,e.name);if(207===e.name.kind&&UC(i))return function(e,t){if(12&e.target.combinedFlags||ey(e)>=t.elements.length)return e;const n=t.elements,r=Vv(e).slice(),i=e.target.elementFlags.slice();for(let t=ey(e);tbj(e,t)));if(58982400&t.flags){const n=qp(t)||Ot;return QL(n,4)&&QL(e,128)||QL(n,8)&&QL(e,256)||QL(n,64)&&QL(e,2048)||QL(n,4096)&&QL(e,8192)||bj(e,n)}return!!(406847616&t.flags&&QL(e,128)||256&t.flags&&QL(e,256)||2048&t.flags&&QL(e,2048)||512&t.flags&&QL(e,512)||8192&t.flags&&QL(e,8192))}return!1}function xj(e){const t=e.parent;return V_(t)&&xl(t.type)||oA(t)&&xl(aA(t))||YO(e)&&kp(sA(e,0))||(ZD(t)||WD(t)||dF(t))&&xj(t)||(ME(t)||BE(t)||SF(t))&&xj(t.parent)}function kj(e,t,n){const r=Lj(e,t,n);return xj(e)||Af(e)?nk(r):mj(e)?r:zC(r,nA(sA(e,void 0),e,void 0))}function Sj(e,t){return 167===e.name.kind&&kA(e.name),kj(e.initializer,t)}function Tj(e,t){return WJ(e),167===e.name.kind&&kA(e.name),Cj(e,qL(e,t),t)}function Cj(e,t,n){if(n&&10&n){const r=cO(t,0,!0),i=cO(t,1,!0),o=r||i;if(o&&o.typeParameters){const t=eA(e,2);if(t){const i=cO(rw(t),r?0:1,!1);if(i&&!i.typeParameters){if(8&n)return wj(e,n),Ln;const t=fA(e),r=t.signature&&Tg(t.signature),a=r&&sO(r);if(a&&!a.typeParameters&&!v(t.inferences,Nj)){const e=function(e,t){const n=[];let r,i;for(const o of t){const t=o.symbol.escapedName;if(Fj(e.inferredTypeParameters,t)||Fj(n,t)){const a=Os(Wo(262144,Ej(K(e.inferredTypeParameters,n),t)));a.target=o,r=ie(r,o),i=ie(i,a),n.push(a)}else n.push(o)}if(i){const e=Tk(r,i);for(const t of i)t.mapper=e}return n}(t,o.typeParameters),n=jg(o,e),r=E(t.inferences,(e=>jw(e.typeParameter)));if(Dw(n,i,((e,t)=>{rN(r,e,t,0,!0)})),$(r,Nj)&&(Fw(n,i,((e,t)=>{rN(r,e,t)})),!function(e,t){for(let n=0;ne&&E(e.inferences,(e=>e.typeParameter)))).slice())}}}}return t}function wj(e,t){2&t&&(fA(e).flags|=4)}function Nj(e){return!(!e.candidates&&!e.contraCandidates)}function Dj(e){return!!(e.candidates||e.contraCandidates||af(e.typeParameter))}function Fj(e,t){return $(e,(e=>e.symbol.escapedName===t))}function Ej(e,t){let n=t.length;for(;n>1&&t.charCodeAt(n-1)>=48&&t.charCodeAt(n-1)<=57;)n--;const r=t.slice(0,n);for(let t=1;;t++){const n=r+t;if(!Fj(e,n))return n}}function Pj(e){const t=aO(e);if(t&&!t.typeParameters)return Tg(t)}function Aj(e){const t=Ij(e);if(t)return t;if(268435456&e.flags&&ri){const t=ri[jB(e)];if(t)return t}const n=Ci,r=Lj(e,64);return Ci!==n&&((ri||(ri=[]))[jB(e)]=r,CT(e,268435456|e.flags)),r}function Ij(e){let t=oh(e,!0);if(oA(t)){const e=aA(t);if(!xl(e))return dk(e)}if(t=oh(e),oF(t)){const e=Ij(t.expression);return e?dR(e):void 0}return!GD(t)||108===t.expression.kind||Om(t,!0)||HO(t)?V_(t)&&!xl(t.type)?dk(t.type):Al(e)||o_(e)?Lj(e):void 0:ml(t)?function(e){const t=Lj(e.expression),n=sw(t,e.expression),r=Pj(t);return r&&aw(r,e,n!==t)}(t):Pj(cI(t.expression))}function Oj(e){const t=aa(e);if(t.contextFreeType)return t.contextFreeType;uA(e,wt,!1);const n=t.contextFreeType=Lj(e,4);return dA(),n}function Lj(i,o,s){var c,_;null==(c=Hn)||c.push(Hn.Phase.Check,"checkExpression",{kind:i.kind,pos:i.pos,end:i.end,path:i.tracingPath});const u=r;r=i,h=0;const d=function(e,r,i){const o=e.kind;if(t)switch(o){case 231:case 218:case 219:t.throwIfCancellationRequested()}switch(o){case 80:return lP(e,r);case 81:return function(e){!function(e){if(!Gf(e))return nz(e,la.Private_identifiers_are_not_allowed_outside_class_bodies);if(!IF(e.parent)){if(!vm(e))return nz(e,la.Private_identifiers_are_only_allowed_in_class_bodies_and_may_only_be_used_as_part_of_a_class_member_declaration_property_access_or_on_the_left_hand_side_of_an_in_expression);const t=cF(e.parent)&&103===e.parent.operatorToken.kind;bI(e)||t||nz(e,la.Cannot_find_name_0,mc(e))}}(e);const t=bI(e);return t&&zI(t,void 0,!1),wt}(e);case 110:return yP(e);case 108:return xP(e);case 106:return Ut;case 15:case 11:return Gw(e)?Ft:ek(ik(e.text));case 9:return oz(e),ek(ok(+e.text));case 10:return function(e){if(!(MD(e.parent)||aF(e.parent)&&MD(e.parent.parent))&&R<7&&nz(e,la.BigInt_literals_are_not_available_when_targeting_lower_than_ES2020));}(e),ek(ak({negative:!1,base10Value:pT(e.text)}));case 112:return Yt;case 97:return Ht;case 228:return uj(e);case 14:return function(e){const t=aa(e);return 1&t.flags||(t.flags|=1,a((()=>function(e){const t=hd(e);if(!ZJ(t)&&!e.isUnterminated){let r;n??(n=ms(99,!0)),n.setScriptTarget(t.languageVersion),n.setLanguageVariant(t.languageVariant),n.setOnError(((e,i,o)=>{const a=n.getTokenEnd();if(3===e.category&&r&&a===r.start&&i===r.length){const n=Vx(t.fileName,t.text,a,i,e,o);iT(r,n)}else r&&a===r.start||(r=Kx(t,a,i,e,o),uo.add(r))})),n.setText(t.text,e.pos,e.end-e.pos);try{return n.scan(),un.assert(14===n.reScanSlashToken(!0),"Expected scanner to rescan RegularExpressionLiteral"),!!r}finally{n.setText(""),n.setOnError(void 0)}}return!1}(e)))),ar}(e);case 209:return xA(e,r,i);case 210:return function(e,t=0){const n=Xg(e);!function(e,t){const n=new Map;for(const r of e.properties){if(305===r.kind){if(t){const e=oh(r.expression);if(WD(e)||$D(e))return nz(r.expression,la.A_rest_element_cannot_contain_a_binding_pattern)}continue}const e=r.name;if(167===e.kind&&RJ(e),304===r.kind&&!t&&r.objectAssignmentInitializer&&nz(r.equalsToken,la.Did_you_mean_to_use_a_Colon_An_can_only_follow_a_property_name_when_the_containing_object_literal_is_part_of_a_destructuring_pattern),81===e.kind&&nz(e,la.Private_identifiers_are_not_allowed_outside_class_bodies),rI(r)&&r.modifiers)for(const e of r.modifiers)!Yl(e)||134===e.kind&&174===r.kind||nz(e,la._0_modifier_cannot_be_used_here,Kd(e));else if(DA(r)&&r.modifiers)for(const e of r.modifiers)Yl(e)&&nz(e,la._0_modifier_cannot_be_used_here,Kd(e));let i;switch(r.kind){case 304:case 303:zJ(r.exclamationToken,la.A_definite_assignment_assertion_is_not_permitted_in_this_context),JJ(r.questionToken,la.An_object_member_cannot_be_declared_optional),9===e.kind&&oz(e),10===e.kind&&Ro(!0,jp(e,la.A_bigint_literal_cannot_be_used_as_a_property_name)),i=4;break;case 174:i=8;break;case 177:i=1;break;case 178:i=2;break;default:un.assertNever(r,"Unexpected syntax kind:"+r.kind)}if(!t){const t=cz(e);if(void 0===t)continue;const r=n.get(t);if(r)if(8&i&&8&r)nz(e,la.Duplicate_identifier_0,Kd(e));else if(4&i&&4&r)nz(e,la.An_object_literal_cannot_have_multiple_properties_with_the_same_name,Kd(e));else{if(!(3&i&&3&r))return nz(e,la.An_object_literal_cannot_have_property_and_accessor_with_the_same_name);if(3===r||i===r)return nz(e,la.An_object_literal_cannot_have_multiple_get_Slashset_accessors_with_the_same_name);n.set(t,i|r)}else n.set(t,i)}}}(e,n);const r=H?Hu():void 0;let i=Hu(),o=[],a=Nn;_A(e);const s=eA(e,void 0),c=s&&s.pattern&&(206===s.pattern.kind||210===s.pattern.kind),_=xj(e),u=_?8:0,d=Fm(e)&&!Em(e),p=d?Gc(e):void 0,f=!s&&d&&!p;let m=8192,g=!1,h=!1,y=!1,v=!1;for(const t of e.properties)t.name&&rD(t.name)&&kA(t.name);let b=0;for(const l of e.properties){let f=ps(l);const k=l.name&&167===l.name.kind?kA(l.name):void 0;if(303===l.kind||304===l.kind||Mf(l)){let i=303===l.kind?Sj(l,t):304===l.kind?kj(!n&&l.objectAssignmentInitializer?l.objectAssignmentInitializer:l.name,t):Tj(l,t);if(d){const e=fl(l);e?(bS(i,e,l),i=e):p&&p.typeExpression&&bS(i,dk(p.typeExpression),l)}m|=458752&mx(i);const o=k&&oC(k)?k:void 0,a=o?Wo(4|f.flags,aC(o),4096|u):Wo(4|f.flags,f.escapedName,u);if(o&&(a.links.nameType=o),n&&bA(l))a.flags|=16777216;else if(c&&!(512&mx(s))){const e=Cf(s,f.escapedName);e?a.flags|=16777216&e.flags:dm(s,Vt)||jo(l.name,la.Object_literal_may_only_specify_known_properties_and_0_does_not_exist_in_type_1,ic(f),sc(s))}if(a.declarations=f.declarations,a.parent=f.parent,f.valueDeclaration&&(a.valueDeclaration=f.valueDeclaration),a.links.type=i,a.links.target=f,f=a,null==r||r.set(a.escapedName,a),s&&2&t&&!(4&t)&&(303===l.kind||174===l.kind)&&aS(l)){const t=fA(e);un.assert(t),Lw(t,303===l.kind?l.initializer:l,i)}}else{if(305===l.kind){R0&&(a=Wx(a,x(),e.symbol,m,_),o=[],i=Hu(),h=!1,y=!1,v=!1);const n=yf(Lj(l.expression,2&t));if(FA(n)){const t=Ux(n,_);if(r&&LA(t,r,l),b=o.length,$c(a))continue;a=Wx(a,t,e.symbol,m,_)}else jo(l,la.Spread_types_may_only_be_created_from_object_types),a=Et;continue}un.assert(177===l.kind||178===l.kind),mB(l)}!k||8576&k.flags?i.set(f.escapedName,f):gS(k,hn)&&(gS(k,Wt)?y=!0:gS(k,cn)?v=!0:h=!0,n&&(g=!0)),o.push(f)}return dA(),$c(a)?Et:a!==Nn?(o.length>0&&(a=Wx(a,x(),e.symbol,m,_),o=[],i=Hu(),h=!1,y=!1),zD(a,(e=>e===Nn?x():e))):x();function x(){const t=[],r=xj(e);h&&t.push(CA(r,b,o,Vt)),y&&t.push(CA(r,b,o,Wt)),v&&t.push(CA(r,b,o,cn));const a=Bs(e.symbol,i,l,l,t);return a.objectFlags|=131200|m,f&&(a.objectFlags|=4096),g&&(a.objectFlags|=512),n&&(a.pattern=e),a}}(e,r);case 211:return gI(e,r);case 166:return hI(e,r);case 212:return function(e,t){return 64&e.flags?function(e,t){const n=Lj(e.expression),r=sw(n,e.expression);return aw(GI(e,fI(r,e.expression),t),e,r!==n)}(e,t):GI(e,cI(e.expression),t)}(e,r);case 213:if(102===e.expression.kind)return function(e){if(function(e){if(j.verbatimModuleSyntax&&1===M)return nz(e,la.ESM_syntax_is_not_allowed_in_a_CommonJS_module_when_verbatimModuleSyntax_is_enabled);if(5===M)return nz(e,la.Dynamic_imports_are_only_supported_when_the_module_flag_is_set_to_es2020_es2022_esnext_commonjs_amd_system_umd_node16_or_nodenext);if(e.typeArguments)return nz(e,la.This_use_of_import_is_invalid_import_calls_can_be_written_but_they_must_have_parentheses_and_cannot_have_type_arguments);const t=e.arguments;if(99!==M&&199!==M&&100!==M&&200!==M&&(PJ(t),t.length>1))return nz(t[1],la.Dynamic_imports_only_support_a_second_argument_when_the_module_option_is_set_to_esnext_node16_nodenext_or_preserve);if(0===t.length||t.length>2)return nz(e,la.Dynamic_imports_can_only_accept_a_module_specifier_and_an_optional_set_of_attributes_as_arguments);const n=b(t,dF);n&&nz(n,la.Argument_of_dynamic_import_cannot_be_spread_element)}(e),0===e.arguments.length)return IL(e,wt);const t=e.arguments[0],n=fj(t),r=e.arguments.length>1?fj(e.arguments[1]):void 0;for(let t=2;tKL(e)));const t=Lj(e.expression),n=aR(t,!0,e,la.Type_of_await_operand_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member);return n!==t||$c(n)||3&t.flags||Ro(!1,jp(e,la.await_has_no_effect_on_the_type_of_this_expression)),n}(e);case 224:return function(e){const t=Lj(e.operand);if(t===dn)return dn;switch(e.operand.kind){case 9:switch(e.operator){case 41:return ek(ok(-e.operand.text));case 40:return ek(ok(+e.operand.text))}break;case 10:if(41===e.operator)return ek(ak({negative:!0,base10Value:pT(e.operand.text)}))}switch(e.operator){case 40:case 41:case 55:return fI(t,e.operand),XL(t,12288)&&jo(e.operand,la.The_0_operator_cannot_be_applied_to_type_symbol,Da(e.operator)),40===e.operator?(XL(t,2112)&&jo(e.operand,la.Operator_0_cannot_be_applied_to_type_1,Da(e.operator),sc(RC(t))),Wt):GL(t);case 54:ZR(t,e.operand);const n=PN(t,12582912);return 4194304===n?Ht:8388608===n?Yt:sn;case 46:case 47:return UL(e.operand,fI(t,e.operand),la.An_arithmetic_operand_must_be_of_type_any_number_bigint_or_an_enum_type)&&HL(e.operand,la.The_operand_of_an_increment_or_decrement_operator_must_be_a_variable_or_a_property_access,la.The_operand_of_an_increment_or_decrement_operator_may_not_be_an_optional_property_access),GL(t)}return Et}(e);case 225:return function(e){const t=Lj(e.operand);return t===dn?dn:(UL(e.operand,fI(t,e.operand),la.An_arithmetic_operand_must_be_of_type_any_number_bigint_or_an_enum_type)&&HL(e.operand,la.The_operand_of_an_increment_or_decrement_operator_must_be_a_variable_or_a_property_access,la.The_operand_of_an_increment_or_decrement_operator_may_not_be_an_optional_property_access),GL(t))}(e);case 226:return pe(e,r);case 227:return function(e,t){const n=tM(e.condition,t);return YR(e.condition,n,e.whenTrue),xb([Lj(e.whenTrue,t),Lj(e.whenFalse,t)],2)}(e,r);case 230:return function(e,t){return RJj(e,n,void 0))));const o=i&&CM(i,r),s=o&&o.yieldType||wt,c=o&&o.nextType||wt,l=e.expression?Lj(e.expression):Rt,_=jL(e,l,c,r);if(i&&_&&xS(_,s,e.expression||e,e.expression),e.asteriskToken)return oM(r?19:17,1,l,e.expression)||wt;if(i)return TM(2,i,r)||wt;let u=jP(2,t);return u||(u=wt,a((()=>{if(ne&&!ET(e)){const t=sA(e,void 0);t&&!Wc(t)||jo(e,la.yield_expression_implicitly_results_in_an_any_type_because_its_containing_generator_lacks_a_return_type_annotation)}}))),u}(e);case 237:return function(e){return e.isSpread?vx(e.type,Wt):e.type}(e);case 294:return function(e,t){if(function(e){e.expression&&iA(e.expression)&&nz(e.expression,la.JSX_expressions_may_not_use_the_comma_operator_Did_you_mean_to_write_an_array)}(e),e.expression){const n=Lj(e.expression,t);return e.dotDotDotToken&&n!==wt&&!yC(n)&&jo(e,la.JSX_spread_child_must_be_an_array_type),n}return Et}(e,r);case 284:case 285:return function(e){return mB(e),HA(e)||wt}(e);case 288:return function(e){XA(e.openingFragment);const t=hd(e);!Wk(j)||!j.jsxFactory&&!t.pragmas.has("jsx")||j.jsxFragmentFactory||t.pragmas.has("jsxfrag")||jo(e,j.jsxFactory?la.The_jsxFragmentFactory_compiler_option_must_be_provided_to_use_JSX_fragments_with_the_jsxFactory_compiler_option:la.An_jsxFrag_pragma_is_required_when_using_an_jsx_pragma_with_JSX_fragments),OA(e);const n=HA(e);return $c(n)?wt:n}(e);case 292:return function(e,t){return IA(e.parent,t)}(e,r);case 286:un.fail("Shouldn't ever directly check a JsxOpeningElement")}return Et}(i,o,s),p=Cj(i,d,o);return ej(p)&&function(t,n){const r=211===t.parent.kind&&t.parent.expression===t||212===t.parent.kind&&t.parent.expression===t||(80===t.kind||166===t.kind)&&KB(t)||186===t.parent.kind&&t.parent.exprName===t||281===t.parent.kind;if(r||jo(t,la.const_enums_can_only_be_used_in_property_or_index_access_expressions_or_the_right_hand_side_of_an_import_declaration_or_export_assignment_or_type_query),j.isolatedModules||j.verbatimModuleSyntax&&r&&!Ue(t,ab(t),2097152,void 0,!1,!0)){un.assert(!!(128&n.symbol.flags));const r=n.symbol.valueDeclaration,i=e.getRedirectReferenceForResolutionFromSourceOfProject(hd(r).resolvedPath);!(33554432&r.flags)||yT(t)||i&&Dk(i.commandLine.options)||jo(t,la.Cannot_access_ambient_const_enums_when_0_is_enabled,Re)}}(i,p),r=u,null==(_=Hn)||_.pop(),p}function jj(e){FJ(e),e.expression&&ez(e.expression,la.Type_expected),dB(e.constraint),dB(e.default);const t=pu(ps(e));qp(t),function(e){return rf(e)!==Rn}(t)||jo(e.default,la.Type_parameter_0_has_a_circular_default,sc(t));const n=xp(t),r=of(t);n&&r&&bS(r,ld(tS(n,Fk(t,r)),r),e.default,la.Type_0_does_not_satisfy_the_constraint_1),mB(e),a((()=>OM(e.name,la.Type_parameter_name_cannot_be_0)))}function Rj(e){FJ(e),HR(e);const t=Hf(e);wv(e,31)&&(176===t.kind&&wd(t.body)||jo(e,la.A_parameter_property_is_only_allowed_in_a_constructor_implementation),176===t.kind&&zN(e.name)&&"constructor"===e.name.escapedText&&jo(e.name,la.constructor_cannot_be_used_as_a_parameter_property_name)),!e.initializer&&KT(e)&&x_(e.name)&&t.body&&jo(e,la.A_binding_pattern_parameter_cannot_be_optional_in_an_implementation_signature),e.name&&zN(e.name)&&("this"===e.name.escapedText||"new"===e.name.escapedText)&&(0!==t.parameters.indexOf(e)&&jo(e,la.A_0_parameter_must_be_the_first_parameter,e.name.escapedText),176!==t.kind&&180!==t.kind&&185!==t.kind||jo(e,la.A_constructor_cannot_have_a_this_parameter),219===t.kind&&jo(e,la.An_arrow_function_cannot_have_a_this_parameter),177!==t.kind&&178!==t.kind||jo(e,la.get_and_set_accessors_cannot_declare_this_parameters)),!e.dotDotDotToken||x_(e.name)||gS(yf(S_(e.symbol)),_r)||jo(e,la.A_rest_parameter_must_be_of_an_array_type)}function Mj(e,t,n){for(const r of e.elements){if(fF(r))continue;const e=r.name;if(80===e.kind&&e.escapedText===n)return jo(t,la.A_type_predicate_cannot_reference_element_0_in_a_binding_pattern,n),!0;if((207===e.kind||206===e.kind)&&Mj(e,t,n))return!0}}function Bj(e){181===e.kind?function(e){FJ(e)||function(e){const t=e.parameters[0];if(1!==e.parameters.length)return nz(t?t.name:e,la.An_index_signature_must_have_exactly_one_parameter);if(PJ(e.parameters,la.An_index_signature_cannot_have_a_trailing_comma),t.dotDotDotToken)return nz(t.dotDotDotToken,la.An_index_signature_cannot_have_a_rest_parameter);if(Sv(t))return nz(t.name,la.An_index_signature_parameter_cannot_have_an_accessibility_modifier);if(t.questionToken)return nz(t.questionToken,la.An_index_signature_parameter_cannot_have_a_question_mark);if(t.initializer)return nz(t.name,la.An_index_signature_parameter_cannot_have_an_initializer);if(!t.type)return nz(t.name,la.An_index_signature_parameter_must_have_a_type_annotation);const n=dk(t.type);ED(n,(e=>!!(8576&e.flags)))||cx(n)?nz(t.name,la.An_index_signature_parameter_type_cannot_be_a_literal_type_or_generic_type_Consider_using_a_mapped_object_type_instead):AD(n,Th)?e.type||nz(e,la.An_index_signature_must_have_a_type_annotation):nz(t.name,la.An_index_signature_parameter_type_must_be_string_number_symbol_or_a_template_literal_type)}(e)}(e):184!==e.kind&&262!==e.kind&&185!==e.kind&&179!==e.kind&&176!==e.kind&&180!==e.kind||IJ(e);const t=Ih(e);4&t||(!(3&~t)&&R{zN(e)&&r.add(e.escapedText),x_(e)&&i.add(t)}));if(cg(e)){const e=t.length-1,o=t[e];n&&o&&zN(o.name)&&o.typeExpression&&o.typeExpression.type&&!r.has(o.name.escapedText)&&!i.has(e)&&!yC(dk(o.typeExpression.type))&&jo(o.name,la.JSDoc_param_tag_has_name_0_but_there_is_no_parameter_with_that_name_It_would_match_arguments_if_it_had_an_array_type,mc(o.name))}else d(t,(({name:e,isNameFirst:t},o)=>{i.has(o)||zN(e)&&r.has(e.escapedText)||(nD(e)?n&&jo(e,la.Qualified_name_0_is_not_allowed_without_a_leading_param_object_1,Lp(e),Lp(e.left)):t||Mo(n,e,la.JSDoc_param_tag_has_name_0_but_there_is_no_parameter_with_that_name,mc(e)))}))}(e),d(e.parameters,Rj),e.type&&dB(e.type),a((function(){!function(e){R>=2||!Ru(e)||33554432&e.flags||Cd(e.body)||d(e.parameters,(e=>{e.name&&!x_(e.name)&&e.name.escapedText===Le.escapedName&&Oo("noEmit",e,la.Duplicate_identifier_arguments_Compiler_uses_arguments_to_initialize_rest_parameters)}))}(e);let t=mv(e),n=t;if(Fm(e)){const r=el(e);if(r&&r.typeExpression&&vD(r.typeExpression.type)){const e=aO(dk(r.typeExpression));e&&e.declaration&&(t=mv(e.declaration),n=r.typeExpression.type)}}if(ne&&!t)switch(e.kind){case 180:jo(e,la.Construct_signature_which_lacks_return_type_annotation_implicitly_has_an_any_return_type);break;case 179:jo(e,la.Call_signature_which_lacks_return_type_annotation_implicitly_has_an_any_return_type)}if(t&&n){const r=Ih(e);if(1==(5&r)){const e=dk(t);e===ln?jo(n,la.A_generator_cannot_have_a_void_type_annotation):Jj(e,r,n)}else 2==(3&r)&&function(e,t,n){const r=dk(t);if(R>=2){if($c(r))return;const e=Uy(!0);if(e!==On&&!w_(r,e))return void i(la.The_return_type_of_an_async_function_or_method_must_be_the_global_Promise_T_type_Did_you_mean_to_write_Promise_0,t,n,sc(pR(r)||ln))}else{if(CE(e,5),$c(r))return;const o=lm(t);if(void 0===o)return void i(la.Type_0_is_not_a_valid_async_function_return_type_in_ES5_because_it_does_not_refer_to_a_Promise_compatible_constructor_value,t,n,sc(r));const a=Ka(o,111551,!0),s=a?S_(a):Et;if($c(s))return void(80===o.kind&&"Promise"===o.escapedText&&N_(r)===Uy(!1)?jo(n,la.An_async_function_or_method_in_ES5_requires_the_Promise_constructor_Make_sure_you_have_a_declaration_for_the_Promise_constructor_or_include_ES2015_in_your_lib_option):i(la.Type_0_is_not_a_valid_async_function_return_type_in_ES5_because_it_does_not_refer_to_a_Promise_compatible_constructor_value,t,n,Lp(o)));const c=vr||(vr=Ay("PromiseConstructorLike",0,true))||Nn;if(c===Nn)return void i(la.Type_0_is_not_a_valid_async_function_return_type_in_ES5_because_it_does_not_refer_to_a_Promise_compatible_constructor_value,t,n,Lp(o));const l=la.Type_0_is_not_a_valid_async_function_return_type_in_ES5_because_it_does_not_refer_to_a_Promise_compatible_constructor_value;if(!bS(s,c,n,l,(()=>t===n?void 0:Yx(void 0,la.The_return_type_of_an_async_function_or_method_must_be_the_global_Promise_T_type))))return;const _=o&&ab(o),u=sa(e.locals,_.escapedText,111551);if(u)return void jo(u.valueDeclaration,la.Duplicate_identifier_0_Compiler_uses_declaration_1_to_support_async_functions,mc(_),Lp(o))}function i(e,t,n,r){t===n?jo(n,e,r):iT(jo(n,la.The_return_type_of_an_async_function_or_method_must_be_the_global_Promise_T_type),jp(t,e,r))}aR(r,!1,e,la.The_return_type_of_an_async_function_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member)}(e,t,n)}181!==e.kind&&317!==e.kind&&CR(e)}))}function Jj(e,t,n){const r=TM(0,e,!!(2&t))||wt;return bS(LL(r,TM(1,e,!!(2&t))||r,TM(2,e,!!(2&t))||Ot,!!(2&t)),e,n)}function zj(e){const t=new Map;for(const n of e.members)if(171===n.kind){let e;const r=n.name;switch(r.kind){case 11:case 9:e=r.text;break;case 80:e=mc(r);break;default:continue}t.get(e)?(jo(Tc(n.symbol.valueDeclaration),la.Duplicate_identifier_0,e),jo(n.name,la.Duplicate_identifier_0,e)):t.set(e,!0)}}function qj(e){if(264===e.kind){const t=ps(e);if(t.declarations&&t.declarations.length>0&&t.declarations[0]!==e)return}const t=eh(ps(e));if(null==t?void 0:t.declarations){const e=new Map;for(const n of t.declarations)hD(n)&&1===n.parameters.length&&n.parameters[0].type&&FD(dk(n.parameters[0].type),(t=>{const r=e.get(Kv(t));r?r.declarations.push(n):e.set(Kv(t),{type:t,declarations:[n]})}));e.forEach((e=>{if(e.declarations.length>1)for(const t of e.declarations)jo(t,la.Duplicate_index_signature_for_type_0,sc(e.type))}))}}function Uj(e){FJ(e)||function(e){if(rD(e.name)&&cF(e.name.expression)&&103===e.name.expression.operatorToken.kind)return nz(e.parent.members[0],la.A_mapped_type_may_not_declare_properties_or_methods);if(__(e.parent)){if(TN(e.name)&&"constructor"===e.name.text)return nz(e.name,la.Classes_may_not_have_a_field_named_constructor);if(VJ(e.name,la.A_computed_property_name_in_a_class_property_declaration_must_have_a_simple_literal_type_or_a_unique_symbol_type))return!0;if(R<2&&qN(e.name))return nz(e.name,la.Private_identifiers_are_only_available_when_targeting_ECMAScript_2015_and_higher);if(R<2&&d_(e))return nz(e.name,la.Properties_with_the_accessor_modifier_are_only_available_when_targeting_ECMAScript_2015_and_higher);if(d_(e)&&JJ(e.questionToken,la.An_accessor_property_cannot_be_declared_optional))return!0}else if(264===e.parent.kind){if(VJ(e.name,la.A_computed_property_name_in_an_interface_must_refer_to_an_expression_whose_type_is_a_literal_type_or_a_unique_symbol_type))return!0;if(un.assertNode(e,sD),e.initializer)return nz(e.initializer,la.An_interface_property_cannot_have_an_initializer)}else if(SD(e.parent)){if(VJ(e.name,la.A_computed_property_name_in_a_type_literal_must_refer_to_an_expression_whose_type_is_a_literal_type_or_a_unique_symbol_type))return!0;if(un.assertNode(e,sD),e.initializer)return nz(e.initializer,la.A_type_literal_property_cannot_have_an_initializer)}if(33554432&e.flags&&KJ(e),cD(e)&&e.exclamationToken&&(!__(e.parent)||!e.type||e.initializer||33554432&e.flags||Nv(e)||Ev(e))){const t=e.initializer?la.Declarations_with_initializers_cannot_also_have_definite_assignment_assertions:e.type?la.A_definite_assignment_assertion_is_not_permitted_in_this_context:la.Declarations_with_definite_assignment_assertions_must_also_have_type_annotations;return nz(e.exclamationToken,t)}}(e)||RJ(e.name),HR(e),Vj(e),wv(e,64)&&172===e.kind&&e.initializer&&jo(e,la.Property_0_cannot_have_an_initializer_because_it_is_marked_abstract,Ep(e.name))}function Vj(e){if(qN(e.name)&&(R{const t=Xj(e);t&&Gj(e,t)}));const t=aa(e).resolvedSymbol;t&&$(t.declarations,(e=>qT(e)&&!!(536870912&e.flags)))&&Vo($O(e),t.declarations,t.escapedName)}}function Zj(e,t){if(!(8388608&e.flags))return e;const n=e.objectType,r=e.indexType,i=rp(n)&&2===cp(n)?jb(n,0):qb(n,0),o=!!dm(n,Wt);if(AD(r,(e=>gS(e,i)||o&&Wf(e,Wt))))return 212===t.kind&&Xg(t)&&32&mx(n)&&1&ep(n)&&jo(t,la.Index_signature_in_type_0_only_permits_reading,sc(n)),e;if(lx(n)){const e=Xb(r,t);if(e){const r=FD(pf(n),(t=>Cf(t,e)));if(r&&6&rx(r))return jo(t,la.Private_or_protected_member_0_cannot_be_accessed_on_a_type_parameter,fc(e)),Et}}return jo(t,la.Type_0_cannot_be_used_to_index_type_1,sc(r),sc(n)),Et}function eR(e){return(Cv(e,2)||Hl(e))&&!!(33554432&e.flags)}function tR(e,t){let n=lz(e);if(264!==e.parent.kind&&263!==e.parent.kind&&231!==e.parent.kind&&33554432&e.flags){const t=Np(e);!(t&&128&t.flags)||128&n||YF(e.parent)&&QF(e.parent.parent)&&up(e.parent.parent)||(n|=32),n|=128}return n&t}function nR(e){a((()=>function(e){function t(e,t){return void 0!==t&&t.parent===e[0].parent?t:e[0]}let n,r,i,o=0,a=230,s=!1,c=!0,l=!1;const _=e.declarations,p=!!(16384&e.flags);function f(e){if(e.name&&Cd(e.name))return;let t=!1;const n=PI(e.parent,(n=>{if(t)return n;t=n===e}));if(n&&n.pos===e.end&&n.kind===e.kind){const t=n.name||n,r=n.name;if(e.name&&r&&(qN(e.name)&&qN(r)&&e.name.escapedText===r.escapedText||rD(e.name)&&rD(r)&&_S(kA(e.name),kA(r))||Jh(e.name)&&Jh(r)&&qh(e.name)===qh(r)))return void(174!==e.kind&&173!==e.kind||Nv(e)===Nv(n)||jo(t,Nv(e)?la.Function_overload_must_be_static:la.Function_overload_must_not_be_static));if(wd(n.body))return void jo(t,la.Function_implementation_name_must_be_0,Ep(e.name))}const r=e.name||e;p?jo(r,la.Constructor_implementation_is_missing):wv(e,64)?jo(r,la.All_declarations_of_an_abstract_method_must_be_consecutive):jo(r,la.Function_implementation_is_missing_or_not_immediately_following_the_declaration)}let m=!1,g=!1,h=!1;const y=[];if(_)for(const e of _){const t=e,_=33554432&t.flags,d=t.parent&&(264===t.parent.kind||187===t.parent.kind)||_;if(d&&(i=void 0),263!==t.kind&&231!==t.kind||_||(h=!0),262===t.kind||174===t.kind||173===t.kind||176===t.kind){y.push(t);const e=tR(t,230);o|=e,a&=e,s=s||Cg(t),c=c&&Cg(t);const _=wd(t.body);_&&n?p?g=!0:m=!0:(null==i?void 0:i.parent)===t.parent&&i.end!==t.pos&&f(i),_?n||(n=t):l=!0,i=t,d||(r=t)}Fm(e)&&n_(e)&&e.jsDoc&&(l=u(Jg(e))>0)}if(g&&d(y,(e=>{jo(e,la.Multiple_constructor_implementations_are_not_allowed)})),m&&d(y,(e=>{jo(Tc(e)||e,la.Duplicate_function_implementation)})),h&&!p&&16&e.flags&&_){const t=N(_,(e=>263===e.kind)).map((e=>jp(e,la.Consider_adding_a_declare_modifier_to_this_class)));d(_,(n=>{const r=263===n.kind?la.Class_declaration_cannot_implement_overload_list_for_0:262===n.kind?la.Function_with_bodies_can_only_merge_with_classes_that_are_ambient:void 0;r&&iT(jo(Tc(n)||n,r,hc(e)),...t)}))}if(!r||r.body||wv(r,64)||r.questionToken||f(r),l&&(_&&(function(e,n,r,i,o){if(i^o){const i=tR(t(e,n),r);Je(e,(e=>hd(e).fileName)).forEach((e=>{const o=tR(t(e,n),r);for(const t of e){const e=tR(t,r)^i,n=tR(t,r)^o;32&n?jo(Tc(t),la.Overload_signatures_must_all_be_exported_or_non_exported):128&n?jo(Tc(t),la.Overload_signatures_must_all_be_ambient_or_non_ambient):6&e?jo(Tc(t)||t,la.Overload_signatures_must_all_be_public_private_or_protected):64&e&&jo(Tc(t),la.Overload_signatures_must_all_be_abstract_or_non_abstract)}}))}}(_,n,230,o,a),function(e,n,r,i){if(r!==i){const r=Cg(t(e,n));d(e,(e=>{Cg(e)!==r&&jo(Tc(e),la.Overload_signatures_must_all_be_optional_or_required)}))}}(_,n,s,c)),n)){const t=pg(e),r=ig(n);for(const e of t)if(!IS(r,e)){iT(jo(e.declaration&&aP(e.declaration)?e.declaration.parent.tagName:e.declaration,la.This_overload_signature_is_not_compatible_with_its_implementation_signature),jp(n,la.The_implementation_signature_is_declared_here));break}}}(e)))}function rR(e){a((()=>function(e){let t=e.localSymbol;if(!t&&(t=ps(e),!t.exportSymbol))return;if(Wu(t,e.kind)!==e)return;let n=0,r=0,i=0;for(const e of t.declarations){const t=s(e),o=tR(e,2080);32&o?2048&o?i|=t:n|=t:r|=t}const o=n&r,a=i&(n|r);if(o||a)for(const e of t.declarations){const t=s(e),n=Tc(e);t&a?jo(n,la.Merged_declaration_0_cannot_include_a_default_export_declaration_Consider_adding_a_separate_export_default_0_declaration_instead,Ep(n)):t&o&&jo(n,la.Individual_declarations_in_merged_declaration_0_must_be_all_exported_or_all_local,Ep(n))}function s(e){let t=e;switch(t.kind){case 264:case 265:case 346:case 338:case 340:return 2;case 267:return ap(t)||0!==wM(t)?5:4;case 263:case 266:case 306:return 3;case 307:return 7;case 277:case 226:const e=t,n=pE(e)?e.expression:e.right;if(!ob(n))return 1;t=n;case 271:case 274:case 273:let r=0;return d(Ba(ps(t)).declarations,(e=>{r|=s(e)})),r;case 260:case 208:case 262:case 276:case 80:return 1;case 173:case 171:return 2;default:return un.failBadSyntaxKind(t)}}}(e)))}function iR(e,t,n,...r){const i=oR(e,t);return i&&dR(i,t,n,...r)}function oR(e,t,n){if(Wc(e))return;const r=e;if(r.promisedTypeOfPromise)return r.promisedTypeOfPromise;if(w_(e,Uy(!1)))return r.promisedTypeOfPromise=Kh(e)[0];if(ZL(Wp(e),402915324))return;const i=Uc(e,"then");if(Wc(i))return;const o=i?Rf(i,0):l;if(0===o.length)return void(t&&jo(t,la.A_promise_must_have_a_then_method));let a,s;for(const t of o){const n=yg(t);n&&n!==ln&&!zS(e,n,mo)?a=n:s=ie(s,t)}if(!s)return un.assertIsDefined(a),n&&(n.value=a),void(t&&jo(t,la.The_this_context_of_type_0_is_not_assignable_to_method_s_this_of_type_1,sc(e),sc(a)));const c=ON(xb(E(s,kL)),2097152);if(Wc(c))return;const _=Rf(c,0);if(0!==_.length)return r.promisedTypeOfPromise=xb(E(_,kL),2);t&&jo(t,la.The_first_parameter_of_the_then_method_of_a_promise_must_be_a_callback)}function aR(e,t,n,r,...i){return(t?dR(e,n,r,...i):pR(e,n,r,...i))||Et}function sR(e){if(ZL(Wp(e),402915324))return!1;const t=Uc(e,"then");return!!t&&Rf(ON(t,2097152),0).length>0}function cR(e){var t;if(16777216&e.flags){const n=ev(!1);return!!n&&e.aliasSymbol===n&&1===(null==(t=e.aliasTypeArguments)?void 0:t.length)}return!1}function lR(e){return 1048576&e.flags?zD(e,lR):cR(e)?e.aliasTypeArguments[0]:e}function uR(e){if(Wc(e)||cR(e))return!1;if(lx(e)){const t=qp(e);if(t?3&t.flags||LS(t)||ED(t,sR):QL(e,8650752))return!0}return!1}function dR(e,t,n,...r){const i=pR(e,t,n,...r);return i&&function(e){return uR(e)?function(e){const t=ev(!0);if(t)return ny(t,[lR(e)])}(e)??e:(un.assert(cR(e)||void 0===oR(e),"type provided should not be a non-generic 'promise'-like."),e)}(i)}function pR(e,t,n,...r){if(Wc(e))return e;if(cR(e))return e;const i=e;if(i.awaitedTypeOfType)return i.awaitedTypeOfType;if(1048576&e.flags){if(so.lastIndexOf(e.id)>=0)return void(t&&jo(t,la.Type_is_referenced_directly_or_indirectly_in_the_fulfillment_callback_of_its_own_then_method));const o=t?e=>pR(e,t,n,...r):pR;so.push(e.id);const a=zD(e,o);return so.pop(),i.awaitedTypeOfType=a}if(uR(e))return i.awaitedTypeOfType=e;const o={value:void 0},a=oR(e,void 0,o);if(a){if(e.id===a.id||so.lastIndexOf(a.id)>=0)return void(t&&jo(t,la.Type_is_referenced_directly_or_indirectly_in_the_fulfillment_callback_of_its_own_then_method));so.push(e.id);const o=pR(a,t,n,...r);if(so.pop(),!o)return;return i.awaitedTypeOfType=o}if(!sR(e))return i.awaitedTypeOfType=e;if(t){let i;un.assertIsDefined(n),o.value&&(i=Yx(i,la.The_this_context_of_type_0_is_not_assignable_to_method_s_this_of_type_1,sc(e),sc(o.value))),i=Yx(i,n,...r),uo.add(Bp(hd(t),t,i))}}function fR(e){!function(e){if(!ZJ(hd(e))){let t=e.expression;if(ZD(t))return!1;let n,r=!0;for(;;)if(mF(t)||yF(t))t=t.expression;else if(GD(t))r||(n=t),t.questionDotToken&&(n=t.questionDotToken),t=t.expression,r=!1;else{if(!HD(t)){zN(t)||(n=t);break}t.questionDotToken&&(n=t.questionDotToken),t=t.expression,r=!1}if(n)iT(jo(e.expression,la.Expression_must_be_enclosed_in_parentheses_to_be_used_as_a_decorator),jp(n,la.Invalid_syntax_in_decorator))}}(e);const t=zO(e);WO(t,e);const n=Tg(t);if(1&n.flags)return;const r=EL(e);if(!(null==r?void 0:r.resolvedReturnType))return;let i;const o=r.resolvedReturnType;switch(e.parent.kind){case 263:case 231:i=la.Decorator_function_return_type_0_is_not_assignable_to_type_1;break;case 172:if(!J){i=la.Decorator_function_return_type_0_is_not_assignable_to_type_1;break}case 169:i=la.Decorator_function_return_type_is_0_but_is_expected_to_be_void_or_any;break;case 174:case 177:case 178:i=la.Decorator_function_return_type_0_is_not_assignable_to_type_1;break;default:return un.failBadSyntaxKind(e.parent)}bS(n,o,e.expression,i)}function mR(e,t,n,r,i,o=n.length,a=0){return pd(XC.createFunctionTypeNode(void 0,l,XC.createKeywordTypeNode(133)),e,t,n,r,i,o,a)}function gR(e,t,n,r,i,o,a){return Yg(mR(e,t,n,r,i,o,a))}function hR(e){return gR(void 0,void 0,l,e)}function yR(e){return gR(void 0,void 0,[$o("value",e)],ln)}function vR(e){if(e)switch(e.kind){case 193:case 192:return bR(e.types);case 194:return bR([e.trueType,e.falseType]);case 196:case 202:return vR(e.type);case 183:return e.typeName}}function bR(e){let t;for(let n of e){for(;196===n.kind||202===n.kind;)n=n.type;if(146===n.kind)continue;if(!H&&(201===n.kind&&106===n.literal.kind||157===n.kind))continue;const e=vR(n);if(!e)return;if(t){if(!zN(t)||!zN(e)||t.escapedText!==e.escapedText)return}else t=e}return t}function xR(e){const t=pv(e);return Mu(e)?Df(t):t}function kR(e){if(!(iI(e)&&Ov(e)&&e.modifiers&&um(J,e,e.parent,e.parent.parent)))return;const t=b(e.modifiers,aD);if(t){J?(NJ(t,8),169===e.kind&&NJ(t,32)):Rt.kind===e.kind&&!(524288&t.flags)));e===i&&nR(r),n.parent&&nR(n)}const r=173===e.kind?void 0:e.body;if(dB(r),zL(e,Fg(e)),a((function(){mv(e)||(Cd(r)&&!eR(e)&&ww(e,wt),1&n&&wd(r)&&Tg(ig(e)))})),Fm(e)){const t=el(e);t&&t.typeExpression&&!hA(dk(t.typeExpression),e)&&jo(t.typeExpression.type,la.The_type_of_a_function_declaration_must_match_the_function_s_signature)}}function CR(e){a((function(){const t=hd(e);let n=bi.get(t.path);n||(n=[],bi.set(t.path,n)),n.push(e)}))}function wR(e,t){for(const n of e)switch(n.kind){case 263:case 231:FR(n,t),PR(n,t);break;case 307:case 267:case 241:case 269:case 248:case 249:case 250:jR(n,t);break;case 176:case 218:case 262:case 219:case 174:case 177:case 178:n.body&&jR(n,t),PR(n,t);break;case 173:case 179:case 180:case 184:case 185:case 265:case 264:PR(n,t);break;case 195:ER(n,t);break;default:un.assertNever(n,"Node should not have been registered for unused identifiers check")}}function NR(e,t,n){n(e,0,jp(Tc(e)||e,qT(e)?la._0_is_declared_but_never_used:la._0_is_declared_but_its_value_is_never_read,t))}function DR(e){return zN(e)&&95===mc(e).charCodeAt(0)}function FR(e,t){for(const n of e.members)switch(n.kind){case 174:case 172:case 177:case 178:if(178===n.kind&&32768&n.symbol.flags)break;const e=ps(n);e.isReferenced||!(Cv(n,2)||kc(n)&&qN(n.name))||33554432&n.flags||t(n,0,jp(n.name,la._0_is_declared_but_its_value_is_never_read,ic(e)));break;case 176:for(const e of n.parameters)!e.symbol.isReferenced&&wv(e,2)&&t(e,0,jp(e.name,la.Property_0_is_declared_but_its_value_is_never_read,hc(e.symbol)));break;case 181:case 240:case 175:break;default:un.fail("Unexpected class member")}}function ER(e,t){const{typeParameter:n}=e;AR(n)&&t(e,1,jp(e,la._0_is_declared_but_its_value_is_never_read,mc(n.name)))}function PR(e,t){const n=ps(e).declarations;if(!n||ve(n)!==e)return;const r=ll(e),i=new Set;for(const e of r){if(!AR(e))continue;const n=mc(e.name),{parent:r}=e;if(195!==r.kind&&r.typeParameters.every(AR)){if(q(i,r)){const i=hd(r),o=TP(r)?aT(r):sT(i,r.typeParameters),a=1===r.typeParameters.length?[la._0_is_declared_but_its_value_is_never_read,n]:[la.All_type_parameters_are_unused];t(e,1,Kx(i,o.pos,o.end-o.pos,...a))}}else t(e,1,jp(e,la._0_is_declared_but_its_value_is_never_read,n))}}function AR(e){return!(262144&ds(e.symbol).isReferenced||DR(e.name))}function IR(e,t,n,r){const i=String(r(t)),o=e.get(i);o?o[1].push(n):e.set(i,[t,[n]])}function OR(e){return tt(Qh(e),oD)}function LR(e){return VD(e)?qD(e.parent)?!(!e.propertyName||!DR(e.name)):DR(e.name):ap(e)||(VF(e)&&X_(e.parent.parent)||MR(e))&&DR(e.name)}function jR(e,t){const n=new Map,r=new Map,i=new Map;e.locals.forEach((e=>{var o;if(!(262144&e.flags?!(3&e.flags)||3&e.isReferenced:e.isReferenced||e.exportSymbol)&&e.declarations)for(const a of e.declarations)if(!LR(a))if(MR(a))IR(n,273===(o=a).kind?o:274===o.kind?o.parent:o.parent.parent,a,jB);else if(VD(a)&&qD(a.parent))a!==ve(a.parent.elements)&&ve(a.parent.elements).dotDotDotToken||IR(r,a.parent,a,jB);else if(VF(a)){const e=7&_z(a),t=Tc(a);(4===e||6===e)&&t&&DR(t)||IR(i,a.parent,a,jB)}else{const n=e.valueDeclaration&&OR(e.valueDeclaration),i=e.valueDeclaration&&Tc(e.valueDeclaration);n&&i?Ys(n,n.parent)||sv(n)||DR(i)||(VD(a)&&UD(a.parent)?IR(r,a.parent,a,jB):t(n,1,jp(i,la._0_is_declared_but_its_value_is_never_read,hc(e)))):NR(a,hc(e),t)}})),n.forEach((([e,n])=>{const r=e.parent;if((e.name?1:0)+(e.namedBindings?274===e.namedBindings.kind?1:e.namedBindings.elements.length:0)===n.length)t(r,0,1===n.length?jp(r,la._0_is_declared_but_its_value_is_never_read,mc(ge(n).name)):jp(r,la.All_imports_in_import_declaration_are_unused));else for(const e of n)NR(e,mc(e.name),t)})),r.forEach((([e,n])=>{const r=OR(e.parent)?1:0;if(e.elements.length===n.length)1===n.length&&260===e.parent.kind&&261===e.parent.parent.kind?IR(i,e.parent.parent,e.parent,jB):t(e,r,1===n.length?jp(e,la._0_is_declared_but_its_value_is_never_read,RR(ge(n).name)):jp(e,la.All_destructured_elements_are_unused));else for(const e of n)t(e,r,jp(e,la._0_is_declared_but_its_value_is_never_read,RR(e.name)))})),i.forEach((([e,n])=>{if(e.declarations.length===n.length)t(e,0,1===n.length?jp(ge(n).name,la._0_is_declared_but_its_value_is_never_read,RR(ge(n).name)):jp(243===e.parent.kind?e.parent:e,la.All_variables_are_unused));else for(const e of n)t(e,0,jp(e,la._0_is_declared_but_its_value_is_never_read,RR(e.name)))}))}function RR(e){switch(e.kind){case 80:return mc(e);case 207:case 206:return RR(nt(ge(e.elements),VD).name);default:return un.assertNever(e)}}function MR(e){return 273===e.kind||276===e.kind||274===e.kind}function BR(e){if(241===e.kind&&iz(e),c_(e)){const t=Ti;d(e.statements,dB),Ti=t}else d(e.statements,dB);e.locals&&CR(e)}function JR(e,t,n){if((null==t?void 0:t.escapedText)!==n)return!1;if(172===e.kind||171===e.kind||174===e.kind||173===e.kind||177===e.kind||178===e.kind||303===e.kind)return!1;if(33554432&e.flags)return!1;if((rE(e)||tE(e)||dE(e))&&Jl(e))return!1;const r=Qh(e);return!oD(r)||!Cd(r.parent.body)}function zR(e){_c(e,(t=>!!(4&mJ(t))&&(80!==e.kind?jo(Tc(e),la.Duplicate_identifier_this_Compiler_uses_variable_declaration_this_to_capture_this_reference):jo(e,la.Expression_resolves_to_variable_declaration_this_that_compiler_uses_to_capture_this_reference),!0)))}function qR(e){_c(e,(t=>!!(8&mJ(t))&&(80!==e.kind?jo(Tc(e),la.Duplicate_identifier_newTarget_Compiler_uses_variable_declaration_newTarget_to_capture_new_target_meta_property_reference):jo(e,la.Expression_resolves_to_variable_declaration_newTarget_that_compiler_uses_to_capture_new_target_meta_property_reference),!0)))}function UR(e){1048576&mJ(Dp(e))&&(un.assert(kc(e)&&zN(e.name)&&"string"==typeof e.name.escapedText,"The target of a WeakMap/WeakSet collision check should be an identifier"),Oo("noEmit",e,la.Compiler_reserves_name_0_when_emitting_private_identifier_downlevel,e.name.escapedText))}function VR(e){let t=!1;if(pF(e)){for(const n of e.members)if(2097152&mJ(n)){t=!0;break}}else if(eF(e))2097152&mJ(e)&&(t=!0);else{const n=Dp(e);n&&2097152&mJ(n)&&(t=!0)}t&&(un.assert(kc(e)&&zN(e.name),"The target of a Reflect collision check should be an identifier"),Oo("noEmit",e,la.Duplicate_identifier_0_Compiler_reserves_name_1_when_emitting_super_references_in_static_initializers,Ep(e.name),"Reflect"))}function WR(t,n){n&&(function(t,n){if(e.getEmitModuleFormatOfFile(hd(t))>=5)return;if(!n||!JR(t,n,"require")&&!JR(t,n,"exports"))return;if(QF(t)&&1!==wM(t))return;const r=qc(t);307===r.kind&&Qp(r)&&Oo("noEmit",n,la.Duplicate_identifier_0_Compiler_reserves_name_1_in_top_level_scope_of_a_module,Ep(n),Ep(n))}(t,n),function(e,t){if(!t||R>=4||!JR(e,t,"Promise"))return;if(QF(e)&&1!==wM(e))return;const n=qc(e);307===n.kind&&Qp(n)&&4096&n.flags&&Oo("noEmit",t,la.Duplicate_identifier_0_Compiler_reserves_name_1_in_top_level_scope_of_a_module_containing_async_functions,Ep(t),Ep(t))}(t,n),function(e,t){R<=8&&(JR(e,t,"WeakMap")||JR(e,t,"WeakSet"))&&io.push(e)}(t,n),function(e,t){t&&R>=2&&R<=8&&JR(e,t,"Reflect")&&oo.push(e)}(t,n),__(t)?(OM(n,la.Class_name_cannot_be_0),33554432&t.flags||function(t){R>=1&&"Object"===t.escapedText&&e.getEmitModuleFormatOfFile(hd(t))<5&&jo(t,la.Class_name_cannot_be_Object_when_targeting_ES5_with_module_0,fi[M])}(n)):XF(t)&&OM(n,la.Enum_name_cannot_be_0))}function $R(e){return e===Nt?wt:e===lr?cr:e}function HR(e){var t;if(kR(e),VD(e)||dB(e.type),!e.name)return;if(167===e.name.kind&&(kA(e.name),Eu(e)&&e.initializer&&fj(e.initializer)),VD(e)){if(e.propertyName&&zN(e.name)&&Xh(e)&&Cd(Hf(e).body))return void ao.push(e);qD(e.parent)&&e.dotDotDotToken&&R1&&$(n.declarations,(t=>t!==e&&Ef(t)&&!GR(t,e)))&&jo(e.name,la.All_declarations_of_0_must_have_identical_modifiers,Ep(e.name))}else{const t=$R(Ul(e));$c(r)||$c(t)||_S(r,t)||67108864&n.flags||KR(n.valueDeclaration,r,e,t),Eu(e)&&e.initializer&&xS(fj(e.initializer),t,e,e.initializer,void 0),n.valueDeclaration&&!GR(e,n.valueDeclaration)&&jo(e.name,la.All_declarations_of_0_must_have_identical_modifiers,Ep(e.name))}172!==e.kind&&171!==e.kind&&(rR(e),260!==e.kind&&208!==e.kind||function(e){if(7&_z(e)||Xh(e))return;const t=ps(e);if(1&t.flags){if(!zN(e.name))return un.fail();const n=Ue(e,e.name.escapedText,3,void 0,!1);if(n&&n!==t&&2&n.flags&&7&ZA(n)){const t=Sh(n.valueDeclaration,261),r=243===t.parent.kind&&t.parent.parent?t.parent.parent:void 0;if(!r||!(241===r.kind&&n_(r.parent)||268===r.kind||267===r.kind||307===r.kind)){const t=ic(n);jo(e,la.Cannot_initialize_outer_scoped_variable_0_in_the_same_scope_as_block_scoped_declaration_1,t,t)}}}}(e),WR(e,e.name))}function KR(e,t,n,r){const i=Tc(n),o=172===n.kind||171===n.kind?la.Subsequent_property_declarations_must_have_the_same_type_Property_0_must_be_of_type_1_but_here_has_type_2:la.Subsequent_variable_declarations_must_have_the_same_type_Variable_0_must_be_of_type_1_but_here_has_type_2,a=Ep(i),s=jo(i,o,a,sc(t),sc(r));e&&iT(s,jp(e,la._0_was_also_declared_here,a))}function GR(e,t){return 169===e.kind&&260===t.kind||260===e.kind&&169===t.kind||Cg(e)===Cg(t)&&Lv(e,1358)===Lv(t,1358)}function XR(t){var n,r;null==(n=Hn)||n.push(Hn.Phase.Check,"checkVariableDeclaration",{kind:t.kind,pos:t.pos,end:t.end,path:t.tracingPath}),function(t){const n=_z(t),r=7&n;if(x_(t.name))switch(r){case 6:return nz(t,la._0_declarations_may_not_have_binding_patterns,"await using");case 4:return nz(t,la._0_declarations_may_not_have_binding_patterns,"using")}if(249!==t.parent.parent.kind&&250!==t.parent.parent.kind)if(33554432&n)KJ(t);else if(!t.initializer){if(x_(t.name)&&!x_(t.parent))return nz(t,la.A_destructuring_declaration_must_have_an_initializer);switch(r){case 6:return nz(t,la._0_declarations_must_be_initialized,"await using");case 4:return nz(t,la._0_declarations_must_be_initialized,"using");case 2:return nz(t,la._0_declarations_must_be_initialized,"const")}}if(t.exclamationToken&&(243!==t.parent.parent.kind||!t.type||t.initializer||33554432&n)){const e=t.initializer?la.Declarations_with_initializers_cannot_also_have_definite_assignment_assertions:t.type?la.A_definite_assignment_assertion_is_not_permitted_in_this_context:la.Declarations_with_definite_assignment_assertions_must_also_have_type_annotations;return nz(t.exclamationToken,e)}e.getEmitModuleFormatOfFile(hd(t))<4&&!(33554432&t.parent.parent.flags)&&wv(t.parent.parent,32)&&GJ(t.name),r&&XJ(t.name)}(t),HR(t),null==(r=Hn)||r.pop()}function QR(e){const t=7&oc(e);(4===t||6===t)&&R=2,s=!a&&j.downlevelIteration,c=j.noUncheckedIndexedAccess&&!!(128&e);if(a||s||o){const o=_M(t,e,a?r:void 0);if(i&&o){const t=8&e?la.Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_for_of_will_always_send_0:32&e?la.Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_array_spread_will_always_send_0:64&e?la.Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_array_destructuring_will_always_send_0:16&e?la.Cannot_delegate_iteration_to_value_because_the_next_method_of_its_iterator_expects_type_1_but_the_containing_generator_will_always_send_0:void 0;t&&bS(n,o.nextType,r,t)}if(o||a)return c?UN(o&&o.yieldType):o&&o.yieldType}let l=t,_=!1;if(4&e){if(1048576&l.flags){const e=t.types,n=N(e,(e=>!(402653316&e.flags)));n!==e&&(l=xb(n,2))}else 402653316&l.flags&&(l=_n);if(_=l!==t,_&&131072&l.flags)return c?UN(Vt):Vt}if(!CC(l)){if(r){const n=!!(4&e)&&!_,[i,o]=function(n,r){var i;return r?n?[la.Type_0_is_not_an_array_type_or_a_string_type_or_does_not_have_a_Symbol_iterator_method_that_returns_an_iterator,!0]:[la.Type_0_is_not_an_array_type_or_does_not_have_a_Symbol_iterator_method_that_returns_an_iterator,!0]:oM(e,0,t,void 0)?[la.Type_0_can_only_be_iterated_through_when_using_the_downlevelIteration_flag_or_with_a_target_of_es2015_or_higher,!1]:function(e){switch(e){case"Float32Array":case"Float64Array":case"Int16Array":case"Int32Array":case"Int8Array":case"NodeList":case"Uint16Array":case"Uint32Array":case"Uint8Array":case"Uint8ClampedArray":return!0}return!1}(null==(i=t.symbol)?void 0:i.escapedName)?[la.Type_0_can_only_be_iterated_through_when_using_the_downlevelIteration_flag_or_with_a_target_of_es2015_or_higher,!0]:n?[la.Type_0_is_not_an_array_type_or_a_string_type,!0]:[la.Type_0_is_not_an_array_type,!0]}(n,s);Jo(r,o&&!!iR(l),i,sc(l))}return _?c?UN(Vt):Vt:void 0}const u=pm(l,Wt);return _&&u?402653316&u.flags&&!j.noUncheckedIndexedAccess?Vt:xb(c?[u,Vt,jt]:[u,Vt],2):128&e?UN(u):u}function oM(e,t,n,r){if(Wc(n))return;const i=_M(n,e,r);return i&&i[qB(t)]}function aM(e=_n,t=_n,n=Ot){if(67359327&e.flags&&180227&t.flags&&180227&n.flags){const r=Eh([e,t,n]);let i=di.get(r);return i||(i={yieldType:e,returnType:t,nextType:n},di.set(r,i)),i}return{yieldType:e,returnType:t,nextType:n}}function sM(e){let t,n,r;for(const i of e)if(void 0!==i&&i!==pi){if(i===mi)return mi;t=ie(t,i.yieldType),n=ie(n,i.returnType),r=ie(r,i.nextType)}return t||n||r?aM(t&&xb(t),n&&xb(n),r&&Fb(r)):pi}function cM(e,t){return e[t]}function lM(e,t,n){return e[t]=n}function _M(e,t,n){var r,i;if(Wc(e))return mi;if(!(1048576&e.flags)){const i=n?{errors:void 0,skipLogging:!0}:void 0,o=dM(e,t,n,i);if(o===pi){if(n){const r=hM(n,e,!!(2&t));(null==i?void 0:i.errors)&&iT(r,...i.errors)}return}if(null==(r=null==i?void 0:i.errors)?void 0:r.length)for(const e of i.errors)uo.add(e);return o}const o=2&t?"iterationTypesOfAsyncIterable":"iterationTypesOfIterable",a=cM(e,o);if(a)return a===pi?void 0:a;let s;for(const r of e.types){const a=n?{errors:void 0}:void 0,c=dM(r,t,n,a);if(c===pi){if(n){const r=hM(n,e,!!(2&t));(null==a?void 0:a.errors)&&iT(r,...a.errors)}return void lM(e,o,pi)}if(null==(i=null==a?void 0:a.errors)?void 0:i.length)for(const e of a.errors)uo.add(e);s=ie(s,c)}const c=s?sM(s):pi;return lM(e,o,c),c===pi?void 0:c}function uM(e,t){if(e===pi)return pi;if(e===mi)return mi;const{yieldType:n,returnType:r,nextType:i}=e;return t&&ev(!0),aM(dR(n,t)||wt,dR(r,t)||wt,i)}function dM(e,t,n,r){if(Wc(e))return mi;let i=!1;if(2&t){const r=pM(e,gi)||fM(e,gi);if(r){if(r!==pi||!n)return 8&t?uM(r,n):r;i=!0}}if(1&t){let r=pM(e,hi)||fM(e,hi);if(r)if(r===pi&&n)i=!0;else{if(!(2&t))return r;if(r!==pi)return r=uM(r,n),i?r:lM(e,"iterationTypesOfAsyncIterable",r)}}if(2&t){const t=gM(e,gi,n,r,i);if(t!==pi)return t}if(1&t){let o=gM(e,hi,n,r,i);if(o!==pi)return 2&t?(o=uM(o,n),i?o:lM(e,"iterationTypesOfAsyncIterable",o)):o}return pi}function pM(e,t){return cM(e,t.iterableCacheKey)}function fM(e,t){if(w_(e,t.getGlobalIterableType(!1))||w_(e,t.getGlobalIteratorObjectType(!1))||w_(e,t.getGlobalIterableIteratorType(!1))||w_(e,t.getGlobalGeneratorType(!1))){const[n,r,i]=Kh(e);return lM(e,t.iterableCacheKey,aM(t.resolveIterationType(n,void 0)||n,t.resolveIterationType(r,void 0)||r,i))}if(C_(e,t.getGlobalBuiltinIteratorTypes())){const[n]=Kh(e),r=Qy(),i=Ot;return lM(e,t.iterableCacheKey,aM(t.resolveIterationType(n,void 0)||n,t.resolveIterationType(r,void 0)||r,i))}}function mM(e){const t=zy(!1),n=t&&Uc(S_(t),pc(e));return n&&oC(n)?aC(n):`__@${e}`}function gM(e,t,n,r,i){const o=Cf(e,mM(t.iteratorSymbolName)),a=!o||16777216&o.flags?void 0:S_(o);if(Wc(a))return i?mi:lM(e,t.iterableCacheKey,mi);const s=a?Rf(a,0):void 0,c=N(s,(e=>0===yL(e)));if(!$(c))return n&&$(s)&&bS(e,t.getGlobalIterableType(!0),n,void 0,void 0,r),i?pi:lM(e,t.iterableCacheKey,pi);const l=yM(Fb(E(c,Tg)),t,n,r,i)??pi;return i?l:lM(e,t.iterableCacheKey,l)}function hM(e,t,n){const r=n?la.Type_0_must_have_a_Symbol_asyncIterator_method_that_returns_an_async_iterator:la.Type_0_must_have_a_Symbol_iterator_method_that_returns_an_iterator;return Jo(e,!!iR(t)||!n&&OF(e.parent)&&e.parent.expression===e&&$y(!1)!==On&&gS(t,tv($y(!1),[wt,wt,wt])),r,sc(t))}function yM(e,t,n,r,i){if(Wc(e))return mi;let o=function(e,t){return cM(e,t.iteratorCacheKey)}(e,t)||function(e,t){if(w_(e,t.getGlobalIterableIteratorType(!1))||w_(e,t.getGlobalIteratorType(!1))||w_(e,t.getGlobalIteratorObjectType(!1))||w_(e,t.getGlobalGeneratorType(!1))){const[n,r,i]=Kh(e);return lM(e,t.iteratorCacheKey,aM(n,r,i))}if(C_(e,t.getGlobalBuiltinIteratorTypes())){const[n]=Kh(e),r=Qy(),i=Ot;return lM(e,t.iteratorCacheKey,aM(n,r,i))}}(e,t);return o===pi&&n&&(o=void 0,i=!0),o??(o=function(e,t,n,r,i){const o=sM([SM(e,t,"next",n,r),SM(e,t,"return",n,r),SM(e,t,"throw",n,r)]);return i?o:lM(e,t.iteratorCacheKey,o)}(e,t,n,r,i)),o===pi?void 0:o}function vM(e,t){const n=Uc(e,"done")||Ht;return gS(0===t?Ht:Yt,n)}function xM(e){return vM(e,0)}function kM(e){return vM(e,1)}function SM(e,t,n,r,i){var o,a,s,c;const _=Cf(e,n);if(!_&&"next"!==n)return;const u=!_||"next"===n&&16777216&_.flags?void 0:"next"===n?S_(_):ON(S_(_),2097152);if(Wc(u))return mi;const d=u?Rf(u,0):l;if(0===d.length){if(r){const e="next"===n?t.mustHaveANextMethodDiagnostic:t.mustBeAMethodDiagnostic;i?(i.errors??(i.errors=[]),i.errors.push(jp(r,e,n))):jo(r,e,n)}return"next"===n?pi:void 0}if((null==u?void 0:u.symbol)&&1===d.length){const e=t.getGlobalGeneratorType(!1),r=t.getGlobalIteratorType(!1),i=(null==(a=null==(o=e.symbol)?void 0:o.members)?void 0:a.get(n))===u.symbol,l=!i&&(null==(c=null==(s=r.symbol)?void 0:s.members)?void 0:c.get(n))===u.symbol;if(i||l){const t=i?e:r,{mapper:o}=u;return aM(Ck(t.typeParameters[0],o),Ck(t.typeParameters[1],o),"next"===n?Ck(t.typeParameters[2],o):void 0)}}let p,f,m,g,h;for(const e of d)"throw"!==n&&$(e.parameters)&&(p=ie(p,pL(e,0))),f=ie(f,Tg(e));if("throw"!==n){const e=p?xb(p):Ot;"next"===n?g=e:"return"===n&&(m=ie(m,t.resolveIterationType(e,r)||wt))}const y=f?Fb(f):_n,v=function(e){if(Wc(e))return mi;const t=cM(e,"iterationTypesOfIteratorResult");if(t)return t;if(w_(e,Cr||(Cr=Ay("IteratorYieldResult",1,!1))||On))return lM(e,"iterationTypesOfIteratorResult",aM(Kh(e)[0],void 0,void 0));if(w_(e,wr||(wr=Ay("IteratorReturnResult",1,!1))||On))return lM(e,"iterationTypesOfIteratorResult",aM(void 0,Kh(e)[0],void 0));const n=OD(e,xM),r=n!==_n?Uc(n,"value"):void 0,i=OD(e,kM),o=i!==_n?Uc(i,"value"):void 0;return lM(e,"iterationTypesOfIteratorResult",r||o?aM(r,o||ln,void 0):pi)}(t.resolveIterationType(y,r)||wt);return v===pi?(r&&(i?(i.errors??(i.errors=[]),i.errors.push(jp(r,t.mustHaveAValueDiagnostic,n))):jo(r,t.mustHaveAValueDiagnostic,n)),h=wt,m=ie(m,wt)):(h=v.yieldType,m=ie(m,v.returnType)),aM(h,xb(m),g)}function TM(e,t,n){if(Wc(t))return;const r=CM(t,n);return r&&r[qB(e)]}function CM(e,t){if(Wc(e))return mi;const n=t?gi:hi;return _M(e,t?2:1,void 0)||function(e,t){return yM(e,t,void 0,void 0,!1)}(e,n)}function NM(e,t){const n=!!(2&t);if(1&t){const t=TM(1,e,n);return t?n?pR(lR(t)):t:Et}return n?pR(e)||Et:e}function DM(e,t){const n=NM(t,Ih(e));return!(!n||!(QL(n,16384)||32769&n.flags))}function FM(e,t,n){const r=Kf(e);if(0===r.length)return;for(const t of gp(e))n&&4194304&t.flags||PM(e,t,Mb(t,8576,!0),T_(t));const i=t.valueDeclaration;if(i&&__(i))for(const t of i.members)if(!Nv(t)&&!Zu(t)){const n=ps(t);PM(e,n,Aj(t.name.expression),T_(n))}if(r.length>1)for(const t of r)IM(e,t)}function PM(e,t,n,r){const i=t.valueDeclaration,o=Tc(i);if(o&&qN(o))return;const a=fm(e,n),s=2&mx(e)?Wu(e.symbol,264):void 0,c=i&&226===i.kind||o&&167===o.kind?i:void 0,l=hs(t)===e.symbol?i:void 0;for(const n of a){const i=n.declaration&&hs(ps(n.declaration))===e.symbol?n.declaration:void 0,o=l||i||(s&&!$(Z_(e),(e=>!!hp(e,t.escapedName)&&!!pm(e,n.keyType)))?s:void 0);if(o&&!gS(r,n.type)){const e=Lo(o,la.Property_0_of_type_1_is_not_assignable_to_2_index_type_3,ic(t),sc(r),sc(n.keyType),sc(n.type));c&&o!==c&&iT(e,jp(c,la._0_is_declared_here,ic(t))),uo.add(e)}}}function IM(e,t){const n=t.declaration,r=fm(e,t.keyType),i=2&mx(e)?Wu(e.symbol,264):void 0,o=n&&hs(ps(n))===e.symbol?n:void 0;for(const n of r){if(n===t)continue;const r=n.declaration&&hs(ps(n.declaration))===e.symbol?n.declaration:void 0,a=o||r||(i&&!$(Z_(e),(e=>!!dm(e,t.keyType)&&!!pm(e,n.keyType)))?i:void 0);a&&!gS(t.type,n.type)&&jo(a,la._0_index_type_1_is_not_assignable_to_2_index_type_3,sc(t.keyType),sc(t.type),sc(n.keyType),sc(n.type))}}function OM(e,t){switch(e.escapedText){case"any":case"unknown":case"never":case"number":case"bigint":case"boolean":case"string":case"symbol":case"void":case"object":case"undefined":jo(e,t,e.escapedText)}}function LM(e){let t=!1;if(e)for(let t=0;t{var i,o,a;n.default?(t=!0,i=n.default,o=e,a=r,function e(t){if(183===t.kind){const e=ky(t);if(262144&e.flags)for(let n=a;n263===e.kind||264===e.kind))}(e);if(!n||n.length<=1)return;if(!RM(n,fu(e).localTypeParameters,ll)){const t=ic(e);for(const e of n)jo(e.name,la.All_declarations_of_0_must_have_identical_type_parameters,t)}}}function RM(e,t,n){const r=u(t),i=ng(t);for(const o of e){const e=n(o),a=e.length;if(ar)return!1;for(let n=0;n1)return ez(r.types[1],la.Classes_can_only_extend_a_single_class);t=!0}else{if(un.assert(119===r.token),n)return ez(r,la.implements_clause_already_seen);n=!0}LJ(r)}})(e)||AJ(e.typeParameters,t)}(e),kR(e),WR(e,e.name),LM(ll(e)),rR(e);const t=ps(e),n=fu(t),r=ld(n),i=S_(t);jM(t),nR(t),function(e){const t=new Map,n=new Map,r=new Map;for(const o of e.members)if(176===o.kind)for(const e of o.parameters)Ys(e,o)&&!x_(e.name)&&i(t,e.name,e.name.escapedText,3);else{const e=Nv(o),a=o.name;if(!a)continue;const s=qN(a),c=s&&e?16:0,l=s?r:e?n:t,_=a&&cz(a);if(_)switch(o.kind){case 177:i(l,a,_,1|c);break;case 178:i(l,a,_,2|c);break;case 172:i(l,a,_,3|c);break;case 174:i(l,a,_,8|c)}}function i(e,t,n,r){const i=e.get(n);if(i)if((16&i)!=(16&r))jo(t,la.Duplicate_identifier_0_Static_and_instance_elements_cannot_share_the_same_private_name,Kd(t));else{const o=!!(8&i),a=!!(8&r);o||a?o!==a&&jo(t,la.Duplicate_identifier_0,Kd(t)):i&r&-17?jo(t,la.Duplicate_identifier_0,Kd(t)):e.set(n,i|r)}else e.set(n,r)}}(e),33554432&e.flags||function(e){for(const t of e.members){const n=t.name;if(Nv(t)&&n){const t=cz(n);switch(t){case"name":case"length":case"caller":case"arguments":if(U)break;case"prototype":jo(n,la.Static_property_0_conflicts_with_built_in_property_Function_0_of_constructor_function_1,t,Ic(ps(e)))}}}}(e);const o=hh(e);if(o){d(o.typeArguments,dB),R{const t=s[0],a=Q_(n),c=pf(a);if(function(e,t){const n=Rf(e,1);if(n.length){const r=n[0].declaration;r&&Cv(r,2)&&(BB(t,fx(e.symbol))||jo(t,la.Cannot_extend_a_class_0_Class_constructor_is_marked_as_private,Ha(e.symbol)))}}(c,o),dB(o.expression),$(o.typeArguments)){d(o.typeArguments,dB);for(const e of q_(c,o.typeArguments,o))if(!Gj(o,e.typeParameters))break}const l=ld(t,n.thisType);bS(r,l,void 0)?bS(i,lS(c),e.name||e,la.Class_static_side_0_incorrectly_extends_base_class_static_side_1):UM(e,r,l,la.Class_0_incorrectly_extends_base_class_1),8650752&a.flags&&(B_(i)?Rf(a,1).some((e=>4&e.flags))&&!wv(e,64)&&jo(e.name||e,la.A_mixin_class_that_extends_from_a_type_variable_containing_an_abstract_construct_signature_must_also_be_declared_abstract):jo(e.name||e,la.A_mixin_class_must_have_a_constructor_with_a_single_rest_parameter_of_type_any)),c.symbol&&32&c.symbol.flags||8650752&a.flags||d($_(c,o.typeArguments,o),(e=>!qO(e.declaration)&&!_S(Tg(e),t)))&&jo(o.expression,la.Base_constructors_must_all_have_the_same_return_type),function(e,t){var n,r,i,o,a;const s=vp(t),c=new Map;e:for(const l of s){const s=VM(l);if(4194304&s.flags)continue;const _=hp(e,s.escapedName);if(!_)continue;const u=VM(_),d=rx(s);if(un.assert(!!u,"derived should point to something, even if it is the base class' declaration."),u===s){const r=fx(e.symbol);if(64&d&&(!r||!wv(r,64))){for(const n of Z_(e)){if(n===t)continue;const e=hp(n,s.escapedName),r=e&&VM(e);if(r&&r!==s)continue e}const i=sc(t),o=sc(e),a=ic(l),_=ie(null==(n=c.get(r))?void 0:n.missedProperties,a);c.set(r,{baseTypeName:i,typeName:o,missedProperties:_})}}else{const n=rx(u);if(2&d||2&n)continue;let c;const l=98308&s.flags,_=98308&u.flags;if(l&&_){if((6&nx(s)?null==(r=s.declarations)?void 0:r.some((e=>WM(e,d))):null==(i=s.declarations)?void 0:i.every((e=>WM(e,d))))||262144&nx(s)||u.valueDeclaration&&cF(u.valueDeclaration))continue;const c=4!==l&&4===_;if(c||4===l&&4!==_){const n=c?la._0_is_defined_as_an_accessor_in_class_1_but_is_overridden_here_in_2_as_an_instance_property:la._0_is_defined_as_a_property_in_class_1_but_is_overridden_here_in_2_as_an_accessor;jo(Tc(u.valueDeclaration)||u.valueDeclaration,n,ic(s),sc(t),sc(e))}else if(U){const r=null==(o=u.declarations)?void 0:o.find((e=>172===e.kind&&!e.initializer));if(r&&!(33554432&u.flags)&&!(64&d)&&!(64&n)&&!(null==(a=u.declarations)?void 0:a.some((e=>!!(33554432&e.flags))))){const n=gC(fx(e.symbol)),i=r.name;if(r.exclamationToken||!n||!zN(i)||!H||!HM(i,e,n)){const e=la.Property_0_will_overwrite_the_base_property_in_1_If_this_is_intentional_add_an_initializer_Otherwise_add_a_declare_modifier_or_remove_the_redundant_declaration;jo(Tc(u.valueDeclaration)||u.valueDeclaration,e,ic(s),sc(t))}}}continue}if(eI(s)){if(eI(u)||4&u.flags)continue;un.assert(!!(98304&u.flags)),c=la.Class_0_defines_instance_member_function_1_but_extended_class_2_defines_it_as_instance_member_accessor}else c=98304&s.flags?la.Class_0_defines_instance_member_accessor_1_but_extended_class_2_defines_it_as_instance_member_function:la.Class_0_defines_instance_member_property_1_but_extended_class_2_defines_it_as_instance_member_function;jo(Tc(u.valueDeclaration)||u.valueDeclaration,c,sc(t),ic(s),sc(e))}}for(const[e,t]of c)if(1===u(t.missedProperties))pF(e)?jo(e,la.Non_abstract_class_expression_does_not_implement_inherited_abstract_member_0_from_class_1,ge(t.missedProperties),t.baseTypeName):jo(e,la.Non_abstract_class_0_does_not_implement_inherited_abstract_member_1_from_class_2,t.typeName,ge(t.missedProperties),t.baseTypeName);else if(u(t.missedProperties)>5){const n=E(t.missedProperties.slice(0,4),(e=>`'${e}'`)).join(", "),r=u(t.missedProperties)-4;pF(e)?jo(e,la.Non_abstract_class_expression_is_missing_implementations_for_the_following_members_of_0_Colon_1_and_2_more,t.baseTypeName,n,r):jo(e,la.Non_abstract_class_0_is_missing_implementations_for_the_following_members_of_1_Colon_2_and_3_more,t.typeName,t.baseTypeName,n,r)}else{const n=E(t.missedProperties,(e=>`'${e}'`)).join(", ");pF(e)?jo(e,la.Non_abstract_class_expression_is_missing_implementations_for_the_following_members_of_0_Colon_1,t.baseTypeName,n):jo(e,la.Non_abstract_class_0_is_missing_implementations_for_the_following_members_of_1_Colon_2,t.typeName,t.baseTypeName,n)}}(n,t)}))}!function(e,t,n,r){const i=hh(e)&&Z_(t),o=(null==i?void 0:i.length)?ld(ge(i),t.thisType):void 0,a=Q_(t);for(const i of e.members)Pv(i)||(dD(i)&&d(i.parameters,(s=>{Ys(s,i)&&zM(e,r,a,o,t,n,s,!0)})),zM(e,r,a,o,t,n,i,!1))}(e,n,r,i);const s=vh(e);if(s)for(const e of s)ob(e.expression)&&!gl(e.expression)||jo(e.expression,la.A_class_can_only_implement_an_identifier_Slashqualified_name_with_optional_type_arguments),Qj(e),a(c(e));function c(t){return()=>{const i=yf(dk(t));if(!$c(i))if(tu(i)){const t=i.symbol&&32&i.symbol.flags?la.Class_0_incorrectly_implements_class_1_Did_you_mean_to_extend_1_and_inherit_its_members_as_a_subclass:la.Class_0_incorrectly_implements_interface_1,o=ld(i,n.thisType);bS(r,o,void 0)||UM(e,r,o,t)}else jo(t,la.A_class_can_only_implement_an_object_type_or_intersection_of_object_types_with_statically_known_members)}}a((()=>{FM(n,t),FM(i,t,!0),qj(e),function(e){if(!H||!Z||33554432&e.flags)return;const t=gC(e);for(const n of e.members)if(!(128&Mv(n))&&!Nv(n)&&$M(n)){const e=n.name;if(zN(e)||qN(e)||rD(e)){const r=S_(ps(n));3&r.flags||RS(r)||t&&HM(e,r,t)||jo(n.name,la.Property_0_has_no_initializer_and_is_not_definitely_assigned_in_the_constructor,Ep(e))}}}(e)}))}function zM(e,t,n,r,i,o,a,s,c=!0){const l=a.name&&YB(a.name)||YB(a);return l?qM(e,t,n,r,i,o,Fv(a),Ev(a),Nv(a),s,l,c?a:void 0):0}function qM(e,t,n,r,i,o,a,s,c,l,_,u){const d=Fm(e),p=!!(33554432&e.flags);if(r&&(a||j.noImplicitOverride)){const e=c?n:r,i=Cf(c?t:o,_.escapedName),f=Cf(e,_.escapedName),m=sc(r);if(i&&!f&&a){if(u){const t=EI(hc(_),e);t?jo(u,d?la.This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base_class_0_Did_you_mean_1:la.This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0_Did_you_mean_1,m,ic(t)):jo(u,d?la.This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base_class_0:la.This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0,m)}return 2}if(i&&(null==f?void 0:f.declarations)&&j.noImplicitOverride&&!p){const e=$(f.declarations,Ev);if(a)return 0;if(!e)return u&&jo(u,l?d?la.This_parameter_property_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_class_0:la.This_parameter_property_must_have_an_override_modifier_because_it_overrides_a_member_in_base_class_0:d?la.This_member_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_class_0:la.This_member_must_have_an_override_modifier_because_it_overrides_a_member_in_the_base_class_0,m),1;if(s&&e)return u&&jo(u,la.This_member_must_have_an_override_modifier_because_it_overrides_an_abstract_method_that_is_declared_in_the_base_class_0,m),1}}else if(a){if(u){const e=sc(i);jo(u,d?la.This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_its_containing_class_0_does_not_extend_another_class:la.This_member_cannot_have_an_override_modifier_because_its_containing_class_0_does_not_extend_another_class,e)}return 2}return 0}function UM(e,t,n,r){let i=!1;for(const r of e.members){if(Nv(r))continue;const e=r.name&&YB(r.name)||YB(r);if(e){const o=Cf(t,e.escapedName),a=Cf(n,e.escapedName);if(o&&a){const s=()=>Yx(void 0,la.Property_0_in_type_1_is_not_assignable_to_the_same_property_in_base_type_2,ic(e),sc(t),sc(n));bS(S_(o),S_(a),r.name||r,void 0,s)||(i=!0)}}}i||bS(t,n,e.name||e,r)}function VM(e){return 1&nx(e)?e.links.target:e}function WM(e,t){return 64&t&&(!cD(e)||!e.initializer)||KF(e.parent)}function $M(e){return 172===e.kind&&!Ev(e)&&!e.exclamationToken&&!e.initializer}function HM(e,t,n){const r=rD(e)?XC.createElementAccessExpression(XC.createThis(),e.expression):XC.createPropertyAccessExpression(XC.createThis(),e);return wT(r.expression,r),wT(r,n),r.flowNode=n.returnFlowNode,!RS(JF(r,t,tw(t)))}function KM(e){const t=aa(e);if(!(1024&t.flags)){t.flags|=1024;let n,r=0;for(const t of e.members){const e=XM(t,r,n);aa(t).enumMemberValue=e,r="number"==typeof e.value?e.value+1:void 0,n=t}}}function XM(e,t,n){if(Ap(e.name))jo(e.name,la.Computed_property_names_are_not_allowed_in_enums);else{const t=Op(e.name);MT(t)&&!OT(t)&&jo(e.name,la.An_enum_member_cannot_have_a_numeric_name)}if(e.initializer)return function(e){const t=Zp(e.parent),n=e.initializer,r=Ce(n,e);return void 0!==r.value?t&&"number"==typeof r.value&&!isFinite(r.value)?jo(n,isNaN(r.value)?la.const_enum_member_initializer_was_evaluated_to_disallowed_value_NaN:la.const_enum_member_initializer_was_evaluated_to_a_non_finite_value):xk(j)&&"string"==typeof r.value&&!r.isSyntacticallyString&&jo(n,la._0_has_a_string_type_but_must_have_syntactically_recognizable_string_syntax_when_isolatedModules_is_enabled,`${mc(e.parent.name)}.${Op(e.name)}`):t?jo(n,la.const_enum_member_initializers_must_be_constant_expressions):33554432&e.parent.flags?jo(n,la.In_ambient_enum_declarations_member_initializer_must_be_constant_expression):bS(Lj(n),Wt,n,la.Type_0_is_not_assignable_to_type_1_as_required_for_computed_enum_member_values),r}(e);if(33554432&e.parent.flags&&!Zp(e.parent))return pC(void 0);if(void 0===t)return jo(e.name,la.Enum_member_must_have_initializer),pC(void 0);if(xk(j)&&(null==n?void 0:n.initializer)){const t=hJ(n);("number"!=typeof t.value||t.resolvedOtherFiles)&&jo(e.name,la.Enum_member_following_a_non_literal_numeric_member_must_have_an_initializer_when_isolatedModules_is_enabled)}return pC(t)}function QM(e,t){const n=Ka(e,111551,!0);if(!n)return pC(void 0);if(80===e.kind){const t=e;if(OT(t.escapedText)&&n===Py(t.escapedText,111551,void 0))return pC(+t.escapedText,!1)}if(8&n.flags)return t?YM(e,n,t):hJ(n.valueDeclaration);if(cE(n)){const e=n.valueDeclaration;if(e&&VF(e)&&!e.type&&e.initializer&&(!t||e!==t&&ca(e,t))){const n=Ce(e.initializer,e);return t&&hd(t)!==hd(e)?pC(n.value,!1,!0,!0):pC(n.value,n.isSyntacticallyString,n.resolvedOtherFiles,!0)}}return pC(void 0)}function YM(e,t,n){const r=t.valueDeclaration;if(!r||r===n)return jo(e,la.Property_0_is_used_before_being_assigned,ic(t)),pC(void 0);if(!ca(r,n))return jo(e,la.A_member_initializer_in_a_enum_declaration_cannot_reference_members_declared_after_it_including_members_defined_in_other_enums),pC(0);const i=hJ(r);return n.parent!==r.parent?pC(i.value,i.isSyntacticallyString,i.resolvedOtherFiles,!0):i}function ZM(e){qN(e.name)&&jo(e,la.An_enum_member_cannot_be_named_with_a_private_identifier),e.initializer&&Lj(e.initializer)}function eB(e,t){switch(e.kind){case 243:for(const n of e.declarationList.declarations)eB(n,t);break;case 277:case 278:ez(e,la.Exports_and_export_assignments_are_not_permitted_in_module_augmentations);break;case 271:if(wm(e))break;case 272:ez(e,la.Imports_are_not_permitted_in_module_augmentations_Consider_moving_them_to_the_enclosing_external_module);break;case 208:case 260:const n=e.name;if(x_(n)){for(const e of n.elements)eB(e,t);break}case 263:case 266:case 262:case 264:case 267:case 265:if(t)return}}function nB(e){const t=xg(e);if(!t||Cd(t))return!1;if(!TN(t))return jo(t,la.String_literal_expected),!1;const n=268===e.parent.kind&&ap(e.parent.parent);if(307!==e.parent.kind&&!n)return jo(t,278===e.kind?la.Export_declarations_are_not_permitted_in_a_namespace:la.Import_declarations_in_a_namespace_cannot_reference_a_module),!1;if(n&&Ts(t.text)&&!Ec(e))return jo(e,la.Import_or_export_declaration_in_an_ambient_module_declaration_cannot_reference_module_through_relative_module_name),!1;if(!tE(e)&&e.attributes){const t=118===e.attributes.token?la.Import_attribute_values_must_be_string_literal_expressions:la.Import_assertion_values_must_be_string_literal_expressions;let n=!1;for(const r of e.attributes.elements)TN(r.value)||(n=!0,jo(r.value,t));return!n}return!0}function rB(e,t=!0){void 0!==e&&11===e.kind&&(t?5!==M&&6!==M||nz(e,la.String_literal_import_and_export_names_are_not_supported_when_the_module_flag_is_set_to_es2015_or_es2020):nz(e,la.Identifier_expected))}function iB(t){var n,r,i,o;let a=ps(t);const s=Ba(a);if(s!==xt){if(a=ds(a.exportSymbol||a),Fm(t)&&!(111551&s.flags)&&!Jl(t)){const e=Rl(t)?t.propertyName||t.name:kc(t)?t.name:t;if(un.assert(280!==t.kind),281===t.kind){const o=jo(e,la.Types_cannot_appear_in_export_declarations_in_JavaScript_files),a=null==(r=null==(n=hd(t).symbol)?void 0:n.exports)?void 0:r.get(Wd(t.propertyName||t.name));if(a===s){const e=null==(i=a.declarations)?void 0:i.find(ku);e&&iT(o,jp(e,la._0_is_automatically_exported_here,fc(a.escapedName)))}}else{un.assert(260!==t.kind);const n=_c(t,en(nE,tE)),r=(n&&(null==(o=hg(n))?void 0:o.text))??"...",i=fc(zN(e)?e.escapedText:a.escapedName);jo(e,la._0_is_a_type_and_cannot_be_imported_in_JavaScript_files_Use_1_in_a_JSDoc_type_annotation,i,`import("${r}").${i}`)}return}const c=za(s);if(c&((1160127&a.flags?111551:0)|(788968&a.flags?788968:0)|(1920&a.flags?1920:0))?jo(t,281===t.kind?la.Export_declaration_conflicts_with_exported_declaration_of_0:la.Import_declaration_conflicts_with_local_declaration_of_0,ic(a)):281!==t.kind&&j.isolatedModules&&!_c(t,Jl)&&1160127&a.flags&&jo(t,la.Import_0_conflicts_with_local_value_so_must_be_declared_with_a_type_only_import_when_isolatedModules_is_enabled,ic(a),Re),xk(j)&&!Jl(t)&&!(33554432&t.flags)){const n=Wa(a),r=!(111551&c);if(r||n)switch(t.kind){case 273:case 276:case 271:if(j.verbatimModuleSyntax){un.assertIsDefined(t.name,"An ImportClause with a symbol should have a name");const e=j.verbatimModuleSyntax&&wm(t)?la.An_import_alias_cannot_resolve_to_a_type_or_type_only_declaration_when_verbatimModuleSyntax_is_enabled:r?la._0_is_a_type_and_must_be_imported_using_a_type_only_import_when_verbatimModuleSyntax_is_enabled:la._0_resolves_to_a_type_only_declaration_and_must_be_imported_using_a_type_only_import_when_verbatimModuleSyntax_is_enabled,i=Vd(276===t.kind&&t.propertyName||t.name);da(jo(t,e,i),r?void 0:n,i)}r&&271===t.kind&&Cv(t,32)&&jo(t,la.Cannot_use_export_import_on_a_type_or_type_only_namespace_when_0_is_enabled,Re);break;case 281:if(j.verbatimModuleSyntax||hd(n)!==hd(t)){const e=Vd(t.propertyName||t.name);da(r?jo(t,la.Re_exporting_a_type_when_0_is_enabled_requires_using_export_type,Re):jo(t,la._0_resolves_to_a_type_only_declaration_and_must_be_re_exported_using_a_type_only_re_export_when_1_is_enabled,e,Re),r?void 0:n,e);break}}if(j.verbatimModuleSyntax&&271!==t.kind&&!Fm(t)&&1===e.getEmitModuleFormatOfFile(hd(t))?jo(t,la.ESM_syntax_is_not_allowed_in_a_CommonJS_module_when_verbatimModuleSyntax_is_enabled):200===M&&271!==t.kind&&260!==t.kind&&1===e.getEmitModuleFormatOfFile(hd(t))&&jo(t,la.ESM_syntax_is_not_allowed_in_a_CommonJS_module_when_module_is_set_to_preserve),j.verbatimModuleSyntax&&!Jl(t)&&!(33554432&t.flags)&&128&c){const n=s.valueDeclaration,r=e.getRedirectReferenceForResolutionFromSourceOfProject(hd(n).resolvedPath);!(33554432&n.flags)||r&&Dk(r.commandLine.options)||jo(t,la.Cannot_access_ambient_const_enums_when_0_is_enabled,Re)}}if(dE(t)){const e=oB(a,t);qo(e)&&e.declarations&&Vo(t,e.declarations,e.escapedName)}}}function oB(e,t){if(!(2097152&e.flags)||qo(e)||!ba(e))return e;const n=Ba(e);if(n===xt)return n;for(;2097152&e.flags;){const r=wA(e);if(!r)break;if(r===n)break;if(r.declarations&&u(r.declarations)){if(qo(r)){Vo(t,r.declarations,r.escapedName);break}if(e===n)break;e=r}}return n}function aB(t){WR(t,t.name),iB(t),276===t.kind&&(rB(t.propertyName),$d(t.propertyName||t.name)&&kk(j)&&e.getEmitModuleFormatOfFile(hd(t))<4&&NJ(t,131072))}function sB(e){var t;const n=e.attributes;if(n){const r=Jy(!0);r!==Nn&&bS(function(e){const t=aa(e);if(!t.resolvedType){const n=Wo(4096,"__importAttributes"),r=Hu();d(e.elements,(e=>{const t=Wo(4,uC(e));t.parent=n,t.links.type=function(e){return nk(fj(e.value))}(e),t.links.target=t,r.set(t.escapedName,t)}));const i=Bs(n,r,l,l,l);i.objectFlags|=262272,t.resolvedType=i}return t.resolvedType}(n),ew(r,32768),n);const i=$U(e),o=XU(n,i?nz:void 0),a=118===e.attributes.token;if(i&&o)return;if(99!==(199===M&&e.moduleSpecifier&&Ca(e.moduleSpecifier))&&99!==M&&200!==M)return nz(n,a?199===M?la.Import_attributes_are_not_allowed_on_statements_that_compile_to_CommonJS_require_calls:la.Import_attributes_are_only_supported_when_the_module_option_is_set_to_esnext_nodenext_or_preserve:199===M?la.Import_assertions_are_not_allowed_on_statements_that_compile_to_CommonJS_require_calls:la.Import_assertions_are_only_supported_when_the_module_option_is_set_to_esnext_nodenext_or_preserve);if(PP(e)||(nE(e)?null==(t=e.importClause)?void 0:t.isTypeOnly:e.isTypeOnly))return nz(n,a?la.Import_attributes_cannot_be_used_with_type_only_imports_or_exports:la.Import_assertions_cannot_be_used_with_type_only_imports_or_exports);if(o)return nz(n,la.resolution_mode_can_only_be_set_for_type_only_imports)}}function cB(e,t){const n=307===e.parent.kind||268===e.parent.kind||267===e.parent.kind;return n||ez(e,t),!n}function lB(t){iB(t);const n=void 0!==t.parent.parent.moduleSpecifier;if(rB(t.propertyName,n),rB(t.name),Nk(j)&&jc(t.propertyName||t.name,!0),n)kk(j)&&e.getEmitModuleFormatOfFile(hd(t))<4&&$d(t.propertyName||t.name)&&NJ(t,131072);else{const e=t.propertyName||t.name;if(11===e.kind)return;const n=Ue(e,e.escapedText,2998271,void 0,!0);n&&(n===De||n===Fe||n.declarations&&Xp(qc(n.declarations[0])))?jo(e,la.Cannot_export_0_Only_local_declarations_can_be_exported_from_a_module,mc(e)):CE(t,7)}}function _B(e){const t=ps(e),n=oa(t);if(!n.exportsChecked){const e=t.exports.get("export=");if(e&&function(e){return td(e.exports,((e,t)=>"export="!==t))}(t)){const t=ba(e)||e.valueDeclaration;!t||Ec(t)||Fm(t)||jo(t,la.An_export_assignment_cannot_be_used_in_a_module_with_other_exported_elements)}const r=ls(t);r&&r.forEach((({declarations:e,flags:t},n)=>{if("__export"===n)return;if(1920&t)return;const r=w(e,Zt(AB,tn(KF)));if(!(524288&t&&r<=2)&&r>1&&!uB(e))for(const t of e)JB(t)&&uo.add(jp(t,la.Cannot_redeclare_exported_variable_0,fc(n)))})),n.exportsChecked=!0}}function uB(e){return e&&e.length>1&&e.every((e=>Fm(e)&&kx(e)&&(Qm(e.expression)||Zm(e.expression))))}function dB(n){if(n){const i=r;r=n,h=0,function(n){if(8388608&mJ(n))return;Og(n)&&d(n.jsDoc,(({comment:e,tags:t})=>{pB(e),d(t,(e=>{pB(e.comment),Fm(n)&&dB(e)}))}));const r=n.kind;if(t)switch(r){case 267:case 263:case 264:case 262:t.throwIfCancellationRequested()}switch(r>=243&&r<=259&&Ig(n)&&n.flowNode&&!LF(n.flowNode)&&Mo(!1===j.allowUnreachableCode,n,la.Unreachable_code_detected),r){case 168:return jj(n);case 169:return Rj(n);case 172:return Uj(n);case 171:return function(e){return qN(e.name)&&jo(e,la.Private_identifiers_are_not_allowed_outside_class_bodies),Uj(e)}(n);case 185:case 184:case 179:case 180:case 181:return Bj(n);case 174:case 173:return function(e){WJ(e)||RJ(e.name),_D(e)&&e.asteriskToken&&zN(e.name)&&"constructor"===mc(e.name)&&jo(e.name,la.Class_constructor_may_not_be_a_generator),TR(e),wv(e,64)&&174===e.kind&&e.body&&jo(e,la.Method_0_cannot_have_an_implementation_because_it_is_marked_abstract,Ep(e.name)),qN(e.name)&&!Gf(e)&&jo(e,la.Private_identifiers_are_not_allowed_outside_class_bodies),Vj(e)}(n);case 175:return function(e){FJ(e),PI(e,dB)}(n);case 176:return function(e){Bj(e),function(e){const t=Fm(e)?gv(e):void 0,n=e.typeParameters||t&&fe(t);if(n){const t=n.pos===n.end?n.pos:Xa(hd(e).text,n.pos);return tz(e,t,n.end-t,la.Type_parameters_cannot_appear_on_a_constructor_declaration)}}(e)||function(e){const t=e.type||mv(e);t&&nz(t,la.Type_annotation_cannot_appear_on_a_constructor_declaration)}(e),dB(e.body);const t=ps(e),n=Wu(t,e.kind);function r(e){return!!Hl(e)||172===e.kind&&!Nv(e)&&!!e.initializer}e===n&&nR(t),Cd(e.body)||a((function(){const t=e.parent;if(yh(t)){pP(e.parent,t);const n=mP(t),i=fP(e.body);if(i){if(n&&jo(i,la.A_constructor_cannot_contain_a_super_call_when_its_class_extends_null),!V&&($(e.parent.members,r)||$(e.parameters,(e=>wv(e,31)))))if(function(e,t){const n=nh(e.parent);return DF(n)&&n.parent===t}(i,e.body)){let t;for(const n of e.body.statements){if(DF(n)&&sf(cA(n.expression))){t=n;break}if(Wj(n))break}void 0===t&&jo(e,la.A_super_call_must_be_the_first_statement_in_the_constructor_to_refer_to_super_or_this_when_a_derived_class_contains_initialized_properties_parameter_properties_or_private_identifiers)}else jo(i,la.A_super_call_must_be_a_root_level_statement_within_a_constructor_of_a_derived_class_that_contains_initialized_properties_parameter_properties_or_private_identifiers)}else n||jo(e,la.Constructors_for_derived_classes_must_contain_a_super_call)}}))}(n);case 177:case 178:return $j(n);case 183:return Qj(n);case 182:return function(e){const t=function(e){switch(e.parent.kind){case 219:case 179:case 262:case 218:case 184:case 174:case 173:const t=e.parent;if(e===t.type)return t}}(e);if(!t)return void jo(e,la.A_type_predicate_is_only_allowed_in_return_type_position_for_functions_and_methods);const n=ig(t),r=vg(n);if(!r)return;dB(e.type);const{parameterName:i}=e;if(0!==r.kind&&2!==r.kind)if(r.parameterIndex>=0){if(UB(n)&&r.parameterIndex===n.parameters.length-1)jo(i,la.A_type_predicate_cannot_reference_a_rest_parameter);else if(r.type){const t=()=>Yx(void 0,la.A_type_predicate_s_type_must_be_assignable_to_its_parameter_s_type);bS(r.type,S_(n.parameters[r.parameterIndex]),e.type,void 0,t)}}else if(i){let n=!1;for(const{name:e}of t.parameters)if(x_(e)&&Mj(e,i,r.parameterName)){n=!0;break}n||jo(e.parameterName,la.Cannot_find_parameter_0,r.parameterName)}}(n);case 186:return function(e){Ty(e)}(n);case 187:return function(e){d(e.members,dB),a((function(){const t=Mx(e);FM(t,t.symbol),qj(e),zj(e)}))}(n);case 188:return function(e){dB(e.elementType)}(n);case 189:return function(e){let t=!1,n=!1;for(const r of e.elements){let e=dv(r);if(8&e){const t=dk(r.type);if(!CC(t)){jo(r,la.A_rest_element_type_must_be_an_array_type);break}(yC(t)||UC(t)&&4&t.target.combinedFlags)&&(e|=4)}if(4&e){if(n){nz(r,la.A_rest_element_cannot_follow_another_rest_element);break}n=!0}else if(2&e){if(n){nz(r,la.An_optional_element_cannot_follow_a_rest_element);break}t=!0}else if(1&e&&t){nz(r,la.A_required_element_cannot_follow_an_optional_element);break}}d(e.elements,dB),dk(e)}(n);case 192:case 193:return function(e){d(e.types,dB),dk(e)}(n);case 196:case 190:case 191:return dB(n.type);case 197:return function(e){lk(e)}(n);case 198:return function(e){!function(e){if(158===e.operator){if(155!==e.type.kind)return nz(e.type,la._0_expected,Da(155));let t=th(e.parent);if(Fm(t)&&VE(t)){const e=Ug(t);e&&(t=Pg(e)||e)}switch(t.kind){case 260:const n=t;if(80!==n.name.kind)return nz(e,la.unique_symbol_types_may_not_be_used_on_a_variable_declaration_with_a_binding_name);if(!Pf(n))return nz(e,la.unique_symbol_types_are_only_allowed_on_variables_in_a_variable_statement);if(!(2&n.parent.flags))return nz(t.name,la.A_variable_whose_type_is_a_unique_symbol_type_must_be_const);break;case 172:if(!Nv(t)||!Iv(t))return nz(t.name,la.A_property_of_a_class_whose_type_is_a_unique_symbol_type_must_be_both_static_and_readonly);break;case 171:if(!wv(t,8))return nz(t.name,la.A_property_of_an_interface_or_type_literal_whose_type_is_a_unique_symbol_type_must_be_readonly);break;default:nz(e,la.unique_symbol_types_are_not_allowed_here)}}else 148===e.operator&&188!==e.type.kind&&189!==e.type.kind&&ez(e,la.readonly_type_modifier_is_only_permitted_on_array_and_tuple_literal_types,Da(155))}(e),dB(e.type)}(n);case 194:return function(e){PI(e,dB)}(n);case 195:return function(e){_c(e,(e=>e.parent&&194===e.parent.kind&&e.parent.extendsType===e))||nz(e,la.infer_declarations_are_only_permitted_in_the_extends_clause_of_a_conditional_type),dB(e.typeParameter);const t=ps(e.typeParameter);if(t.declarations&&t.declarations.length>1){const e=oa(t);if(!e.typeParametersChecked){e.typeParametersChecked=!0;const n=pu(t),r=$u(t,168);if(!RM(r,[n],(e=>[e]))){const e=ic(t);for(const t of r)jo(t.name,la.All_declarations_of_0_must_have_identical_constraints,e)}}}CR(e)}(n);case 203:return function(e){for(const t of e.templateSpans)dB(t.type),bS(dk(t.type),vn,t.type);dk(e)}(n);case 205:return function(e){dB(e.argument),e.attributes&&XU(e.attributes,nz),Yj(e)}(n);case 202:return function(e){e.dotDotDotToken&&e.questionToken&&nz(e,la.A_tuple_member_cannot_be_both_optional_and_rest),190===e.type.kind&&nz(e.type,la.A_labeled_tuple_element_is_declared_as_optional_with_a_question_mark_after_the_name_and_before_the_colon_rather_than_after_the_type),191===e.type.kind&&nz(e.type,la.A_labeled_tuple_element_is_declared_as_rest_with_a_before_the_name_rather_than_before_the_type),dB(e.type),dk(e)}(n);case 328:return function(e){const t=qg(e);if(!t||!HF(t)&&!pF(t))return void jo(t,la.JSDoc_0_is_not_attached_to_a_class,mc(e.tagName));const n=il(t).filter(sP);un.assert(n.length>0),n.length>1&&jo(n[1],la.Class_declarations_cannot_have_more_than_one_augments_or_extends_tag);const r=SR(e.class.expression),i=yh(t);if(i){const t=SR(i.expression);t&&r.escapedText!==t.escapedText&&jo(r,la.JSDoc_0_1_does_not_match_the_extends_2_clause,mc(e.tagName),mc(r),mc(t))}}(n);case 329:return function(e){const t=qg(e);t&&(HF(t)||pF(t))||jo(t,la.JSDoc_0_is_not_attached_to_a_class,mc(e.tagName))}(n);case 346:case 338:case 340:return function(e){e.typeExpression||jo(e.name,la.JSDoc_typedef_tag_should_either_have_a_type_annotation_or_be_followed_by_property_or_member_tags),e.name&&OM(e.name,la.Type_alias_name_cannot_be_0),dB(e.typeExpression),LM(ll(e))}(n);case 345:return function(e){dB(e.constraint);for(const t of e.typeParameters)dB(t)}(n);case 344:return function(e){dB(e.typeExpression)}(n);case 324:case 325:case 326:return function(e){e.name&&QB(e.name,!0)}(n);case 341:case 348:return function(e){dB(e.typeExpression)}(n);case 317:!function(e){a((function(){e.type||wg(e)||ww(e,wt)})),Bj(e)}(n);case 315:case 314:case 312:case 313:case 322:return fB(n),void PI(n,dB);case 318:return void function(e){fB(e),dB(e.type);const{parent:t}=e;if(oD(t)&&tP(t.parent))return void(ve(t.parent.parameters)!==t&&jo(e,la.A_rest_parameter_must_be_last_in_a_parameter_list));VE(t)||jo(e,la.JSDoc_may_only_appear_in_the_last_parameter_of_a_signature);const n=e.parent.parent;if(!bP(n))return void jo(e,la.JSDoc_may_only_appear_in_the_last_parameter_of_a_signature);const r=Mg(n);if(!r)return;const i=zg(n);i&&ve(i.parameters).symbol===r||jo(e,la.A_rest_parameter_must_be_last_in_a_parameter_list)}(n);case 309:return dB(n.type);case 333:case 335:case 334:return function(e){const t=Ug(e);t&&Hl(t)&&jo(e,la.An_accessibility_modifier_cannot_be_used_with_a_private_identifier)}(n);case 350:return function(e){dB(e.typeExpression);const t=qg(e);if(t){const e=al(t,FP);if(u(e)>1)for(let t=1;t{var i;297!==e.kind||n||(void 0===t?t=e:(nz(e,la.A_default_clause_cannot_appear_more_than_once_in_a_switch_statement),n=!0)),296===e.kind&&a((i=e,()=>{const e=Lj(i.expression);sj(r,e)||ES(e,r,i.expression,void 0)})),d(e.statements,dB),j.noFallthroughCasesInSwitch&&e.fallthroughFlowNode&&LF(e.fallthroughFlowNode)&&jo(e,la.Fallthrough_case_in_switch)})),e.caseBlock.locals&&CR(e.caseBlock)}(n);case 256:return function(e){iz(e)||_c(e.parent,(t=>n_(t)?"quit":256===t.kind&&t.label.escapedText===e.label.escapedText&&(nz(e.label,la.Duplicate_label_0,Kd(e.label)),!0))),dB(e.statement)}(n);case 257:return function(e){iz(e)||zN(e.expression)&&!e.expression.escapedText&&function(e,t,...n){const r=hd(e);if(!ZJ(r)){const i=Hp(r,e.pos);uo.add(Kx(r,Ds(i),0,t,...n))}}(e,la.Line_break_not_permitted_here),e.expression&&Lj(e.expression)}(n);case 258:return function(e){iz(e),BR(e.tryBlock);const t=e.catchClause;if(t){if(t.variableDeclaration){const e=t.variableDeclaration;HR(e);const n=pv(e);if(n){const e=dk(n);!e||3&e.flags||ez(n,la.Catch_clause_variable_type_annotation_must_be_any_or_unknown_if_specified)}else if(e.initializer)ez(e.initializer,la.Catch_clause_variable_cannot_have_an_initializer);else{const e=t.block.locals;e&&nd(t.locals,(t=>{const n=e.get(t);(null==n?void 0:n.valueDeclaration)&&2&n.flags&&nz(n.valueDeclaration,la.Cannot_redeclare_identifier_0_in_catch_clause,fc(t))}))}}BR(t.block)}e.finallyBlock&&BR(e.finallyBlock)}(n);case 260:return XR(n);case 208:return function(e){return function(e){if(e.dotDotDotToken){const t=e.parent.elements;if(e!==ve(t))return nz(e,la.A_rest_element_must_be_last_in_a_destructuring_pattern);if(PJ(t,la.A_rest_parameter_or_binding_pattern_may_not_have_a_trailing_comma),e.propertyName)return nz(e.name,la.A_rest_element_cannot_have_a_property_name)}e.dotDotDotToken&&e.initializer&&tz(e,e.initializer.pos-1,1,la.A_rest_element_cannot_have_an_initializer)}(e),HR(e)}(n);case 263:return function(e){const t=b(e.modifiers,aD);J&&t&&$(e.members,(e=>Dv(e)&&Hl(e)))&&nz(t,la.Class_decorators_can_t_be_used_with_static_private_identifier_Consider_removing_the_experimental_decorator),e.name||wv(e,2048)||ez(e,la.A_class_declaration_without_the_default_modifier_must_have_a_name),JM(e),d(e.members,dB),CR(e)}(n);case 264:return function(e){FJ(e)||function(e){let t=!1;if(e.heritageClauses)for(const n of e.heritageClauses){if(96!==n.token)return un.assert(119===n.token),ez(n,la.Interface_declaration_cannot_have_implements_clause);if(t)return ez(n,la.extends_clause_already_seen);t=!0,LJ(n)}}(e),YJ(e.parent)||nz(e,la._0_declarations_can_only_be_declared_inside_a_block,"interface"),LM(e.typeParameters),a((()=>{OM(e.name,la.Interface_name_cannot_be_0),rR(e);const t=ps(e);jM(t);const n=Wu(t,264);if(e===n){const n=fu(t),r=ld(n);if(function(e,t){const n=Z_(e);if(n.length<2)return!0;const r=new Map;d(Ou(e).declaredProperties,(t=>{r.set(t.escapedName,{prop:t,containingType:e})}));let i=!0;for(const o of n){const n=vp(ld(o,e.thisType));for(const a of n){const n=r.get(a.escapedName);if(n){if(n.containingType!==e&&0===rC(n.prop,a,uS)){i=!1;const r=sc(n.containingType),s=sc(o);let c=Yx(void 0,la.Named_property_0_of_types_1_and_2_are_not_identical,ic(a),r,s);c=Yx(c,la.Interface_0_cannot_simultaneously_extend_types_1_and_2,sc(e),r,s),uo.add(Bp(hd(t),t,c))}}else r.set(a.escapedName,{prop:a,containingType:o})}}return i}(n,e.name)){for(const t of Z_(n))bS(r,ld(t,n.thisType),e.name,la.Interface_0_incorrectly_extends_interface_1);FM(n,t)}}zj(e)})),d(xh(e),(e=>{ob(e.expression)&&!gl(e.expression)||jo(e.expression,la.An_interface_can_only_extend_an_identifier_Slashqualified_name_with_optional_type_arguments),Qj(e)})),d(e.members,dB),a((()=>{qj(e),CR(e)}))}(n);case 265:return function(e){if(FJ(e),OM(e.name,la.Type_alias_name_cannot_be_0),YJ(e.parent)||nz(e,la._0_declarations_can_only_be_declared_inside_a_block,"type"),rR(e),LM(e.typeParameters),141===e.type.kind){const t=u(e.typeParameters);(0===t?"BuiltinIteratorReturn"===e.name.escapedText:1===t&&IB.has(e.name.escapedText))||jo(e.type,la.The_intrinsic_keyword_can_only_be_used_to_declare_compiler_provided_intrinsic_types)}else dB(e.type),CR(e)}(n);case 266:return function(e){a((()=>function(e){FJ(e),WR(e,e.name),rR(e),e.members.forEach(ZM),KM(e);const t=ps(e);if(e===Wu(t,e.kind)){if(t.declarations&&t.declarations.length>1){const n=Zp(e);d(t.declarations,(e=>{XF(e)&&Zp(e)!==n&&jo(Tc(e),la.Enum_declarations_must_all_be_const_or_non_const)}))}let n=!1;d(t.declarations,(e=>{if(266!==e.kind)return!1;const t=e;if(!t.members.length)return!1;const r=t.members[0];r.initializer||(n?jo(r.name,la.In_an_enum_with_multiple_declarations_only_one_declaration_can_omit_an_initializer_for_its_first_enum_element):n=!0)}))}}(e)))}(n);case 267:return function(t){t.body&&(dB(t.body),up(t)||CR(t)),a((function(){var n,r;const i=up(t),o=33554432&t.flags;i&&!o&&jo(t.name,la.Augmentations_for_the_global_scope_should_have_declare_modifier_unless_they_appear_in_already_ambient_context);const a=ap(t),s=a?la.An_ambient_module_declaration_is_only_allowed_at_the_top_level_in_a_file:la.A_namespace_declaration_is_only_allowed_at_the_top_level_of_a_namespace_or_module;if(cB(t,s))return;if(FJ(t)||o||11!==t.name.kind||nz(t.name,la.Only_ambient_modules_can_use_quoted_names),zN(t.name)&&(WR(t,t.name),!(2080&t.flags))){const e=hd(t),n=Hp(e,zd(t));po.add(Kx(e,n.start,n.length,la.A_namespace_declaration_should_not_be_declared_using_the_module_keyword_Please_use_the_namespace_keyword_instead))}rR(t);const c=ps(t);if(512&c.flags&&!o&&MB(t,Dk(j))){if(xk(j)&&!hd(t).externalModuleIndicator&&jo(t.name,la.Namespaces_are_not_allowed_in_global_script_files_when_0_is_enabled_If_this_file_is_not_intended_to_be_a_global_script_set_moduleDetection_to_force_or_add_an_empty_export_statement,Re),(null==(n=c.declarations)?void 0:n.length)>1){const e=function(e){const t=e.declarations;if(t)for(const e of t)if((263===e.kind||262===e.kind&&wd(e.body))&&!(33554432&e.flags))return e}(c);e&&(hd(t)!==hd(e)?jo(t.name,la.A_namespace_declaration_cannot_be_in_a_different_file_from_a_class_or_function_with_which_it_is_merged):t.pos95===e.kind));e&&jo(e,la.A_top_level_export_modifier_cannot_be_used_on_value_declarations_in_a_CommonJS_module_when_verbatimModuleSyntax_is_enabled)}}if(a)if(dp(t)){if((i||33554432&ps(t).flags)&&t.body)for(const e of t.body.statements)eB(e,i)}else Xp(t.parent)?i?jo(t.name,la.Augmentations_for_the_global_scope_can_only_be_directly_nested_in_external_modules_or_ambient_module_declarations):Ts(zh(t.name))&&jo(t.name,la.Ambient_module_declaration_cannot_specify_relative_module_name):jo(t.name,i?la.Augmentations_for_the_global_scope_can_only_be_directly_nested_in_external_modules_or_ambient_module_declarations:la.Ambient_modules_cannot_be_nested_in_other_modules_or_namespaces)}))}(n);case 272:return function(t){if(!cB(t,Fm(t)?la.An_import_declaration_can_only_be_used_at_the_top_level_of_a_module:la.An_import_declaration_can_only_be_used_at_the_top_level_of_a_namespace_or_module)){if(!FJ(t)&&t.modifiers&&ez(t,la.An_import_declaration_cannot_have_modifiers),nB(t)){let n;const r=t.importClause;r&&!function(e){var t;return e.isTypeOnly&&e.name&&e.namedBindings?nz(e,la.A_type_only_import_can_specify_a_default_import_or_named_bindings_but_not_both):!(!e.isTypeOnly||275!==(null==(t=e.namedBindings)?void 0:t.kind))&&az(e.namedBindings)}(r)?(r.name&&aB(r),r.namedBindings&&(274===r.namedBindings.kind?(aB(r.namedBindings),e.getEmitModuleFormatOfFile(hd(t))<4&&kk(j)&&NJ(t,65536)):(n=Qa(t,t.moduleSpecifier),n&&d(r.namedBindings.elements,aB))),wa(t.moduleSpecifier,n)&&!function(e){return!!e.attributes&&e.attributes.elements.some((e=>{var t;return"type"===zh(e.name)&&"json"===(null==(t=tt(e.value,Lu))?void 0:t.text)}))}(t)&&jo(t.moduleSpecifier,la.Importing_a_JSON_file_into_an_ECMAScript_module_requires_a_type_Colon_json_import_attribute_when_module_is_set_to_0,fi[M])):ue&&!r&&Qa(t,t.moduleSpecifier)}sB(t)}}(n);case 271:return function(e){if(!cB(e,Fm(e)?la.An_import_declaration_can_only_be_used_at_the_top_level_of_a_module:la.An_import_declaration_can_only_be_used_at_the_top_level_of_a_namespace_or_module)&&(FJ(e),wm(e)||nB(e)))if(aB(e),CE(e,6),283!==e.moduleReference.kind){const t=Ba(ps(e));if(t!==xt){const n=za(t);if(111551&n){const t=ab(e.moduleReference);1920&Ka(t,112575).flags||jo(t,la.Module_0_is_hidden_by_a_local_declaration_with_the_same_name,Ep(t))}788968&n&&OM(e.name,la.Import_name_cannot_be_0)}e.isTypeOnly&&nz(e,la.An_import_alias_cannot_use_import_type)}else!(5<=M&&M<=99)||e.isTypeOnly||33554432&e.flags||nz(e,la.Import_assignment_cannot_be_used_when_targeting_ECMAScript_modules_Consider_using_import_Asterisk_as_ns_from_mod_import_a_from_mod_import_d_from_mod_or_another_module_format_instead)}(n);case 278:return function(t){if(!cB(t,Fm(t)?la.An_export_declaration_can_only_be_used_at_the_top_level_of_a_module:la.An_export_declaration_can_only_be_used_at_the_top_level_of_a_namespace_or_module)){if(!FJ(t)&&Tv(t)&&ez(t,la.An_export_declaration_cannot_have_modifiers),function(e){var t;e.isTypeOnly&&279===(null==(t=e.exportClause)?void 0:t.kind)&&az(e.exportClause)}(t),!t.moduleSpecifier||nB(t))if(t.exportClause&&!_E(t.exportClause)){d(t.exportClause.elements,lB);const e=268===t.parent.kind&&ap(t.parent.parent),n=!e&&268===t.parent.kind&&!t.moduleSpecifier&&33554432&t.flags;307===t.parent.kind||e||n||jo(t,la.Export_declarations_are_not_permitted_in_a_namespace)}else{const n=Qa(t,t.moduleSpecifier);n&&is(n)?jo(t.moduleSpecifier,la.Module_0_uses_export_and_cannot_be_used_with_export_Asterisk,ic(n)):t.exportClause&&(iB(t.exportClause),rB(t.exportClause.name)),e.getEmitModuleFormatOfFile(hd(t))<4&&(t.exportClause?kk(j)&&NJ(t,65536):NJ(t,32768))}sB(t)}}(n);case 277:return function(t){if(cB(t,t.isExportEquals?la.An_export_assignment_must_be_at_the_top_level_of_a_file_or_module_declaration:la.A_default_export_must_be_at_the_top_level_of_a_file_or_module_declaration))return;const n=307===t.parent.kind?t.parent:t.parent.parent;if(267===n.kind&&!ap(n))return void(t.isExportEquals?jo(t,la.An_export_assignment_cannot_be_used_in_a_namespace):jo(t,la.A_default_export_can_only_be_used_in_an_ECMAScript_style_module));!FJ(t)&&Sv(t)&&ez(t,la.An_export_assignment_cannot_have_modifiers);const r=pv(t);r&&bS(fj(t.expression),dk(r),t.expression);const i=!t.isExportEquals&&!(33554432&t.flags)&&j.verbatimModuleSyntax&&1===e.getEmitModuleFormatOfFile(hd(t));if(80===t.expression.kind){const e=t.expression,n=Ss(Ka(e,-1,!0,!0,t));if(n){CE(t,3);const r=Wa(n,111551);if(111551&za(n)?(fj(e),i||33554432&t.flags||!j.verbatimModuleSyntax||!r||jo(e,t.isExportEquals?la.An_export_declaration_must_reference_a_real_value_when_verbatimModuleSyntax_is_enabled_but_0_resolves_to_a_type_only_declaration:la.An_export_default_must_reference_a_real_value_when_verbatimModuleSyntax_is_enabled_but_0_resolves_to_a_type_only_declaration,mc(e))):i||33554432&t.flags||!j.verbatimModuleSyntax||jo(e,t.isExportEquals?la.An_export_declaration_must_reference_a_value_when_verbatimModuleSyntax_is_enabled_but_0_only_refers_to_a_type:la.An_export_default_must_reference_a_value_when_verbatimModuleSyntax_is_enabled_but_0_only_refers_to_a_type,mc(e)),!i&&!(33554432&t.flags)&&xk(j)&&!(111551&n.flags)){const i=za(n,!1,!0);!(2097152&n.flags&&788968&i)||111551&i||r&&hd(r)===hd(t)?r&&hd(r)!==hd(t)&&da(jo(e,t.isExportEquals?la._0_resolves_to_a_type_only_declaration_and_must_be_marked_type_only_in_this_file_before_re_exporting_when_1_is_enabled_Consider_using_import_type_where_0_is_imported:la._0_resolves_to_a_type_only_declaration_and_must_be_marked_type_only_in_this_file_before_re_exporting_when_1_is_enabled_Consider_using_export_type_0_as_default,mc(e),Re),r,mc(e)):jo(e,t.isExportEquals?la._0_resolves_to_a_type_and_must_be_marked_type_only_in_this_file_before_re_exporting_when_1_is_enabled_Consider_using_import_type_where_0_is_imported:la._0_resolves_to_a_type_and_must_be_marked_type_only_in_this_file_before_re_exporting_when_1_is_enabled_Consider_using_export_type_0_as_default,mc(e),Re)}}else fj(e);Nk(j)&&jc(e,!0)}else fj(t.expression);i&&jo(t,la.ESM_syntax_is_not_allowed_in_a_CommonJS_module_when_verbatimModuleSyntax_is_enabled),_B(n),33554432&t.flags&&!ob(t.expression)&&nz(t.expression,la.The_expression_of_an_export_assignment_must_be_an_identifier_or_qualified_name_in_an_ambient_context),t.isExportEquals&&(M>=5&&200!==M&&(33554432&t.flags&&99===e.getImpliedNodeFormatForEmit(hd(t))||!(33554432&t.flags)&&1!==e.getImpliedNodeFormatForEmit(hd(t)))?nz(t,la.Export_assignment_cannot_be_used_when_targeting_ECMAScript_modules_Consider_using_export_default_or_another_module_format_instead):4!==M||33554432&t.flags||nz(t,la.Export_assignment_is_not_supported_when_module_flag_is_system))}(n);case 242:case 259:return void iz(n);case 282:!function(e){kR(e)}(n)}}(n),r=i}}function pB(e){Qe(e)&&d(e,(e=>{ju(e)&&dB(e)}))}function fB(e){if(!Fm(e))if(ZE(e)||YE(e)){const t=Da(ZE(e)?54:58),n=e.postfix?la._0_at_the_end_of_a_type_is_not_valid_TypeScript_syntax_Did_you_mean_to_write_1:la._0_at_the_start_of_a_type_is_not_valid_TypeScript_syntax_Did_you_mean_to_write_1,r=dk(e.type);nz(e,n,t,sc(YE(e)&&r!==_n&&r!==ln?xb(ie([r,jt],e.postfix?void 0:zt)):r))}else nz(e,la.JSDoc_types_can_only_be_used_inside_documentation_comments)}function mB(e){const t=aa(hd(e));1&t.flags?un.assert(!t.deferredNodes,"A type-checked file should have no deferred nodes."):(t.deferredNodes||(t.deferredNodes=new Set),t.deferredNodes.add(e))}function gB(e){const t=aa(e);t.deferredNodes&&t.deferredNodes.forEach(hB),t.deferredNodes=void 0}function hB(e){var t,n;null==(t=Hn)||t.push(Hn.Phase.Check,"checkDeferredNode",{kind:e.kind,pos:e.pos,end:e.end,path:e.tracingPath});const o=r;switch(r=e,h=0,e.kind){case 213:case 214:case 215:case 170:case 286:QI(e);break;case 218:case 219:case 174:case 173:!function(e){un.assert(174!==e.kind||Mf(e));const t=Ih(e),n=Fg(e);if(zL(e,n),e.body)if(mv(e)||Tg(ig(e)),241===e.body.kind)dB(e.body);else{const r=Lj(e.body),i=n&&NM(n,t);if(i){const n=gO(e.body);xS(2==(3&t)?aR(r,!1,n,la.The_return_type_of_an_async_function_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member):r,i,n,n)}}}(e);break;case 177:case 178:$j(e);break;case 231:!function(e){d(e.members,dB),CR(e)}(e);break;case 168:!function(e){var t,n;if(KF(e.parent)||__(e.parent)||GF(e.parent)){const r=pu(ps(e)),o=24576&xT(r);if(o){const a=ps(e.parent);if(!GF(e.parent)||48&mx(fu(a))){if(8192===o||16384===o){null==(t=Hn)||t.push(Hn.Phase.CheckTypes,"checkTypeParameterDeferred",{parent:Kv(fu(a)),id:Kv(r)});const s=dT(a,r,16384===o?Un:qn),c=dT(a,r,16384===o?qn:Un),l=r;i=r,bS(s,c,e,la.Type_0_is_not_assignable_to_type_1_as_implied_by_variance_annotation),i=l,null==(n=Hn)||n.pop()}}else jo(e,la.Variance_annotations_are_only_supported_in_type_aliases_for_object_function_constructor_and_mapped_types)}}}(e);break;case 285:!function(e){XA(e)}(e);break;case 284:!function(e){XA(e.openingElement),PA(e.closingElement.tagName)?RA(e.closingElement):Lj(e.closingElement.tagName),OA(e)}(e);break;case 216:case 234:case 217:!function(e){const{type:t}=eL(e),n=ZD(e)?t:e,r=aa(e);un.assertIsDefined(r.assertionExpressionType);const i=fw(RC(r.assertionExpressionType)),o=dk(t);$c(o)||a((()=>{const e=Sw(i);yS(o,e)||ES(i,o,n,la.Conversion_of_type_0_to_type_1_may_be_a_mistake_because_neither_type_sufficiently_overlaps_with_the_other_If_this_was_intentional_convert_the_expression_to_unknown_first)}))}(e);break;case 222:Lj(e.expression);break;case 226:fb(e)&&QI(e)}r=o,null==(n=Hn)||n.pop()}function yB(e,t){if(t)return!1;switch(e){case 0:return!!j.noUnusedLocals;case 1:return!!j.noUnusedParameters;default:return un.assertNever(e)}}function bB(e){return bi.get(e.path)||l}function TB(n,r,i){try{return t=r,function(t,n){if(t){CB();const e=uo.getGlobalDiagnostics(),r=e.length;DB(t,n);const i=uo.getDiagnostics(t.fileName);if(n)return i;const o=uo.getGlobalDiagnostics();return o!==e?K(re(e,o,tk),i):0===r&&o.length>0?K(o,i):i}return d(e.getSourceFiles(),(e=>DB(e))),uo.getDiagnostics()}(n,i)}finally{t=void 0}}function CB(){for(const e of o)e();o=[]}function DB(t,n){CB();const r=a;a=e=>e(),function(t,n){var r,i;null==(r=Hn)||r.push(Hn.Phase.Check,n?"checkSourceFileNodes":"checkSourceFile",{path:t.path},!0);const o=n?"beforeCheckNodes":"beforeCheck",s=n?"afterCheckNodes":"afterCheck";tr(o),n?function(t,n){const r=aa(t);if(!(1&r.flags)){if(cT(t,j,e))return;rz(t),F(no),F(ro),F(io),F(oo),F(ao),d(n,dB),gB(t),(r.potentialThisCollisions||(r.potentialThisCollisions=[])).push(...no),(r.potentialNewTargetCollisions||(r.potentialNewTargetCollisions=[])).push(...ro),(r.potentialWeakMapSetCollisions||(r.potentialWeakMapSetCollisions=[])).push(...io),(r.potentialReflectCollisions||(r.potentialReflectCollisions=[])).push(...oo),(r.potentialUnusedRenamedBindingElementsInTypes||(r.potentialUnusedRenamedBindingElementsInTypes=[])).push(...ao),r.flags|=8388608;for(const e of n)aa(e).flags|=8388608}}(t,n):function(t){const n=aa(t);if(!(1&n.flags)){if(cT(t,j,e))return;rz(t),F(no),F(ro),F(io),F(oo),F(ao),8388608&n.flags&&(no=n.potentialThisCollisions,ro=n.potentialNewTargetCollisions,io=n.potentialWeakMapSetCollisions,oo=n.potentialReflectCollisions,ao=n.potentialUnusedRenamedBindingElementsInTypes),d(t.statements,dB),dB(t.endOfFileToken),gB(t),Qp(t)&&CR(t),a((()=>{t.isDeclarationFile||!j.noUnusedLocals&&!j.noUnusedParameters||wR(bB(t),((e,t,n)=>{!gd(e)&&yB(t,!!(33554432&e.flags))&&uo.add(n)})),t.isDeclarationFile||function(){var e;for(const t of ao)if(!(null==(e=ps(t))?void 0:e.isReferenced)){const e=tc(t);un.assert(Xh(e),"Only parameter declaration should be checked here");const n=jp(t.name,la._0_is_an_unused_renaming_of_1_Did_you_intend_to_use_it_as_a_type_annotation,Ep(t.name),Ep(t.propertyName));e.type||iT(n,Kx(hd(e),e.end,0,la.We_can_only_write_a_type_for_0_by_adding_a_type_for_the_entire_parameter_here,Ep(t.propertyName))),uo.add(n)}}()})),Qp(t)&&_B(t),no.length&&(d(no,zR),F(no)),ro.length&&(d(ro,qR),F(ro)),io.length&&(d(io,UR),F(io)),oo.length&&(d(oo,VR),F(oo)),n.flags|=1}}(t),tr(s),nr("Check",o,s),null==(i=Hn)||i.pop()}(t,n),a=r}function EB(e){for(;166===e.parent.kind;)e=e.parent;return 183===e.parent.kind}function PB(e,t){let n,r=Gf(e);for(;r&&!(n=t(r));)r=Gf(r);return n}function BB(e,t){return!!PB(e,(e=>e===t))}function KB(e){return void 0!==function(e){for(;166===e.parent.kind;)e=e.parent;return 271===e.parent.kind?e.parent.moduleReference===e?e.parent:void 0:277===e.parent.kind&&e.parent.expression===e?e.parent:void 0}(e)}function GB(e){if(ch(e))return gs(e.parent);if(Fm(e)&&211===e.parent.kind&&e.parent===e.parent.parent.left&&!qN(e)&&!$E(e)&&!function(e){if(110===e.expression.kind){const t=Zf(e,!1,!1);if(n_(t)){const e=SP(t);if(e){const t=EP(e,eA(e,void 0));return t&&!Wc(t)}}}}(e.parent)){const t=function(e){switch(eg(e.parent.parent)){case 1:case 3:return gs(e.parent);case 5:if(HD(e.parent)&&Cx(e.parent)===e)return;case 4:case 2:return ps(e.parent.parent)}}(e);if(t)return t}if(277===e.parent.kind&&ob(e)){const t=Ka(e,2998271,!0);if(t&&t!==xt)return t}else if(Zl(e)&&KB(e)){const t=Sh(e,271);return un.assert(void 0!==t),$a(e,!0)}if(Zl(e)){const t=function(e){let t=e.parent;for(;nD(t);)e=t,t=t.parent;if(t&&205===t.kind&&t.qualifier===e)return t}(e);if(t){dk(t);const n=aa(e).resolvedSymbol;return n===xt?void 0:n}}for(;pb(e);)e=e.parent;if(function(e){for(;211===e.parent.kind;)e=e.parent;return 233===e.parent.kind}(e)){let t=0;233===e.parent.kind?(t=Tf(e)?788968:111551,ib(e.parent)&&(t|=111551)):t=1920,t|=2097152;const n=ob(e)?Ka(e,t,!0):void 0;if(n)return n}if(341===e.parent.kind)return Mg(e.parent);if(168===e.parent.kind&&345===e.parent.parent.kind){un.assert(!Fm(e));const t=Wg(e.parent);return t&&t.symbol}if(vm(e)){if(Cd(e))return;const t=_c(e,en(ju,WE,$E)),n=t?901119:111551;if(80===e.kind){if(ym(e)&&PA(e)){const t=RA(e.parent);return t===xt?void 0:t}const r=Ka(e,n,!0,!0,zg(e));if(!r&&t){const t=_c(e,en(__,KF));if(t)return QB(e,!0,ps(t))}if(r&&t){const t=Ug(e);if(t&&zE(t)&&t===r.valueDeclaration)return Ka(e,n,!0,!0,hd(t))||r}return r}if(qN(e))return bI(e);if(211===e.kind||166===e.kind){const n=aa(e);return n.resolvedSymbol?n.resolvedSymbol:(211===e.kind?(gI(e,0),n.resolvedSymbol||(n.resolvedSymbol=XB(fj(e.expression),Rb(e.name)))):hI(e,0),!n.resolvedSymbol&&t&&nD(e)?QB(e):n.resolvedSymbol)}if($E(e))return QB(e)}else if(Zl(e)&&EB(e)){const t=Ka(e,183===e.parent.kind?788968:1920,!1,!0);return t&&t!==xt?t:oy(e)}return 182===e.parent.kind?Ka(e,1):void 0}function XB(e,t){const n=fm(e,t);if(n.length&&e.members){const t=lh(pp(e).members);if(n===Kf(e))return t;if(t){const r=oa(t),i=E(B(n,(e=>e.declaration)),jB).join(",");if(r.filteredIndexSymbolCache||(r.filteredIndexSymbolCache=new Map),r.filteredIndexSymbolCache.has(i))return r.filteredIndexSymbolCache.get(i);{const t=Wo(131072,"__index");return t.declarations=B(n,(e=>e.declaration)),t.parent=e.aliasSymbol?e.aliasSymbol:e.symbol?e.symbol:YB(t.declarations[0].parent),r.filteredIndexSymbolCache.set(i,t),t}}}}function QB(e,t,n){if(Zl(e)){const r=901119;let i=Ka(e,r,t,!0,zg(e));if(!i&&zN(e)&&n&&(i=ds(sa(cs(n),e.escapedText,r))),i)return i}const r=zN(e)?n:QB(e.left,t,n),i=zN(e)?e.escapedText:e.right.escapedText;if(r){const e=111551&r.flags&&Cf(S_(r),"prototype");return Cf(e?S_(e):fu(r),i)}}function YB(e,t){if(qE(e))return MI(e)?ds(e.symbol):void 0;const{parent:n}=e,r=n.parent;if(!(67108864&e.flags)){if(zB(e)){const t=ps(n);return Rl(e.parent)&&e.parent.propertyName===e?wA(t):t}if(_h(e))return ps(n.parent);if(80===e.kind){if(KB(e))return GB(e);if(208===n.kind&&206===r.kind&&e===n.propertyName){const t=Cf(ZB(r),e.escapedText);if(t)return t}else if(vF(n)&&n.name===e)return 105===n.keywordToken&&"target"===mc(e)?oL(n).symbol:102===n.keywordToken&&"meta"===mc(e)?My().members.get("meta"):void 0}switch(e.kind){case 80:case 81:case 211:case 166:if(!_v(e))return GB(e);case 110:const i=Zf(e,!1,!1);if(n_(i)){const e=ig(i);if(e.thisParameter)return e.thisParameter}if(bm(e))return Lj(e).symbol;case 197:return lk(e).symbol;case 108:return Lj(e).symbol;case 137:const o=e.parent;return o&&176===o.kind?o.parent.symbol:void 0;case 11:case 15:if(Sm(e.parent.parent)&&Tm(e.parent.parent)===e||(272===e.parent.kind||278===e.parent.kind)&&e.parent.moduleSpecifier===e||Fm(e)&&PP(e.parent)&&e.parent.moduleSpecifier===e||Fm(e)&&Om(e.parent,!1)||cf(e.parent)||MD(e.parent)&&_f(e.parent.parent)&&e.parent.parent.argument===e.parent)return Qa(e,e,t);if(GD(n)&&tg(n)&&n.arguments[1]===e)return ps(n);case 9:const a=KD(n)?n.argumentExpression===e?Aj(n.expression):void 0:MD(n)&&jD(r)?dk(r.objectType):void 0;return a&&Cf(a,pc(e.text));case 90:case 100:case 39:case 86:return gs(e.parent);case 205:return _f(e)?YB(e.argument.literal,t):void 0;case 95:return pE(e.parent)?un.checkDefined(e.parent.symbol):void 0;case 102:case 105:return vF(e.parent)?iL(e.parent).symbol:void 0;case 104:if(cF(e.parent)){const t=Aj(e.parent.right),n=nj(t);return(null==n?void 0:n.symbol)??t.symbol}return;case 236:return Lj(e).symbol;case 295:if(ym(e)&&PA(e)){const t=RA(e.parent);return t===xt?void 0:t}default:return}}}function ZB(e){if(qE(e)&&!MI(e))return Et;if(67108864&e.flags)return Et;const t=tb(e),n=t&&nu(ps(t.class));if(Tf(e)){const t=dk(e);return n?ld(t,n.thisType):t}if(vm(e))return tJ(e);if(n&&!t.isImplements){const e=fe(Z_(n));return e?ld(e,n.thisType):Et}if(qT(e))return fu(ps(e));if(80===(r=e).kind&&qT(r.parent)&&Tc(r.parent)===r){const t=YB(e);return t?fu(t):Et}var r;if(VD(e))return Sl(e,!0,0)||Et;if(lu(e)){const t=ps(e);return t?S_(t):Et}if(zB(e)){const t=YB(e);return t?S_(t):Et}if(x_(e))return Sl(e.parent,!0,0)||Et;if(KB(e)){const t=YB(e);if(t){const e=fu(t);return $c(e)?S_(t):e}}return vF(e.parent)&&e.parent.keywordToken===e.kind?iL(e.parent):sE(e)?Jy(!1):Et}function eJ(e){if(un.assert(210===e.kind||209===e.kind),250===e.parent.kind)return oj(e,nM(e.parent)||Et);if(226===e.parent.kind)return oj(e,Aj(e.parent.right)||Et);if(303===e.parent.kind){const t=nt(e.parent.parent,$D);return rj(t,eJ(t)||Et,Xd(t.properties,e.parent))}const t=nt(e.parent,WD),n=eJ(t)||Et,r=rM(65,n,jt,e.parent)||Et;return ij(t,n,t.elements.indexOf(e),r)}function tJ(e){return ub(e)&&(e=e.parent),nk(Aj(e))}function rJ(e){const t=gs(e.parent);return Nv(e)?S_(t):fu(t)}function iJ(e){const t=e.name;switch(t.kind){case 80:return ik(mc(t));case 9:case 11:return ik(t.text);case 167:const e=kA(t);return YL(e,12288)?e:Vt;default:return un.fail("Unsupported property name.")}}function oJ(e){const t=Hu(vp(e=pf(e))),n=Rf(e,0).length?Qn:Rf(e,1).length?Yn:void 0;return n&&d(vp(n),(e=>{t.has(e.escapedName)||t.set(e.escapedName,e)})),js(t)}function aJ(e){return 0!==Rf(e,0).length||0!==Rf(e,1).length}function sJ(e){if(418&e.flags&&e.valueDeclaration&&!qE(e.valueDeclaration)){const t=oa(e);if(void 0===t.isDeclarationWithCollidingName){const n=Dp(e.valueDeclaration);if(bd(n)||function(e){return e.valueDeclaration&&VD(e.valueDeclaration)&&299===tc(e.valueDeclaration).parent.kind}(e))if(Ue(n.parent,e.escapedName,111551,void 0,!1))t.isDeclarationWithCollidingName=!0;else if(gJ(e.valueDeclaration,16384)){const r=gJ(e.valueDeclaration,32768),i=W_(n,!1),o=241===n.kind&&W_(n.parent,!1);t.isDeclarationWithCollidingName=!(_p(n)||r&&(i||o))}else t.isDeclarationWithCollidingName=!1}return t.isDeclarationWithCollidingName}return!1}function cJ(e){switch(un.assert(Me),e.kind){case 271:return lJ(ps(e));case 273:case 274:case 276:case 281:const t=ps(e);return!!t&&lJ(t,!0);case 278:const n=e.exportClause;return!!n&&(_E(n)||$(n.elements,cJ));case 277:return!e.expression||80!==e.expression.kind||lJ(ps(e),!0)}return!1}function lJ(e,t){if(!e)return!1;const n=hd(e.valueDeclaration);ts(n&&ps(n));const r=Ss(Ba(e));return r===xt?!t||!Wa(e):!!(111551&za(e,t,!0))&&(Dk(j)||!_J(r))}function _J(e){return tj(e)||!!e.constEnumOnlyModule}function uJ(e,t){if(un.assert(Me),xa(e)){const t=ps(e),n=t&&oa(t);if(null==n?void 0:n.referenced)return!0;const r=oa(t).aliasTarget;if(r&&32&Mv(e)&&111551&za(r)&&(Dk(j)||!_J(r)))return!0}return!!t&&!!PI(e,(e=>uJ(e,t)))}function dJ(e){if(wd(e.body)){if(wu(e)||Cu(e))return!1;const t=pg(ps(e));return t.length>1||1===t.length&&t[0].declaration!==e}return!1}function pJ(e,t){return(function(e,t){return!(!H||zm(e)||bP(e)||!e.initializer)&&(!wv(e,31)||!!t&&i_(t))}(e,t)||function(e){return H&&zm(e)&&(bP(e)||!e.initializer)&&wv(e,31)}(e))&&!function(e){const t=CJ(e);if(!t)return!1;const n=dk(t);return $c(n)||RS(n)}(e)}function fJ(e){const t=dc(e,(e=>$F(e)||VF(e)));if(!t)return!1;let n;if(VF(t)){if(t.type||!Fm(t)&&!uz(t))return!1;const e=Vm(t);if(!e||!ou(e))return!1;n=ps(e)}else n=ps(t);return!!(n&&16&n.flags|3)&&!!td(cs(n),(e=>111551&e.flags&&sC(e.valueDeclaration)))}function mJ(e){var t;const n=e.id||0;return n<0||n>=Hi.length?0:(null==(t=Hi[n])?void 0:t.flags)||0}function gJ(e,t){return function(e,t){if(!j.noCheck&&uT(hd(e),j))return;if(!(aa(e).calculatedFlags&t))switch(t){case 16:case 32:return i(e);case 128:case 256:case 2097152:return void n(e,r);case 512:case 8192:case 65536:case 262144:return function(e){n(e,o)}(e);case 536870912:return a(e);case 4096:case 32768:case 16384:return function(e){n(Dp(ch(e)?e.parent:e),s)}(e);default:return un.assertNever(t,`Unhandled node check flag calculation: ${un.formatNodeCheckFlags(t)}`)}function n(e,t){const n=t(e,e.parent);if("skip"!==n)return n||AI(e,t)}function r(e){const n=aa(e);if(n.calculatedFlags&t)return"skip";n.calculatedFlags|=2097536,i(e)}function i(e){aa(e).calculatedFlags|=48,108===e.kind&&xP(e)}function o(e){const n=aa(e);if(n.calculatedFlags&t)return"skip";n.calculatedFlags|=336384,a(e)}function a(e){const t=aa(e);if(t.calculatedFlags|=536870912,zN(e)&&(t.calculatedFlags|=49152,function(e){return vm(e)||BE(e.parent)&&(e.parent.objectAssignmentInitializer??e.parent.name)===e}(e)&&(!HD(e.parent)||e.parent.name!==e))){const t=dN(e);t&&t!==xt&&cP(e,t)}}function s(e){const n=aa(e);if(n.calculatedFlags&t)return"skip";n.calculatedFlags|=53248,function(e){a(e),rD(e)&&kA(e),qN(e)&&l_(e.parent)&&Vj(e.parent)}(e)}}(e,t),!!(mJ(e)&t)}function hJ(e){return KM(e.parent),aa(e).enumMemberValue??pC(void 0)}function yJ(e){switch(e.kind){case 306:case 211:case 212:return!0}return!1}function vJ(e){if(306===e.kind)return hJ(e).value;aa(e).resolvedSymbol||fj(e);const t=aa(e).resolvedSymbol||(ob(e)?Ka(e,111551,!0):void 0);if(t&&8&t.flags){const e=t.valueDeclaration;if(Zp(e.parent))return hJ(e).value}}function bJ(e){return!!(524288&e.flags)&&Rf(e,0).length>0}function xJ(e){const t=178===(e=dc(e,dl)).kind?177:178,n=Wu(ps(e),t);return{firstAccessor:n&&n.poshL(e)>3))||jo(e,la.This_syntax_requires_an_imported_helper_named_1_with_2_parameters_which_is_not_compatible_with_the_one_in_0_Consider_upgrading_your_version_of_0,qu,n,4):1048576&t?$(pg(i),(e=>hL(e)>4))||jo(e,la.This_syntax_requires_an_imported_helper_named_1_with_2_parameters_which_is_not_compatible_with_the_one_in_0_Consider_upgrading_your_version_of_0,qu,n,5):1024&t&&($(pg(i),(e=>hL(e)>2))||jo(e,la.This_syntax_requires_an_imported_helper_named_1_with_2_parameters_which_is_not_compatible_with_the_one_in_0_Consider_upgrading_your_version_of_0,qu,n,3)):jo(e,la.This_syntax_requires_an_imported_helper_named_1_which_does_not_exist_in_0_Consider_upgrading_your_version_of_0,qu,n)}}n.requestedExternalEmitHelpers|=t}}}}function DJ(e){switch(e){case 1:return["__extends"];case 2:return["__assign"];case 4:return["__rest"];case 8:return J?["__decorate"]:["__esDecorate","__runInitializers"];case 16:return["__metadata"];case 32:return["__param"];case 64:return["__awaiter"];case 128:return["__generator"];case 256:return["__values"];case 512:return["__read"];case 1024:return["__spreadArray"];case 2048:return["__await"];case 4096:return["__asyncGenerator"];case 8192:return["__asyncDelegator"];case 16384:return["__asyncValues"];case 32768:return["__exportStar"];case 65536:return["__importStar"];case 131072:return["__importDefault"];case 262144:return["__makeTemplateObject"];case 524288:return["__classPrivateFieldGet"];case 1048576:return["__classPrivateFieldSet"];case 2097152:return["__classPrivateFieldIn"];case 4194304:return["__setFunctionName"];case 8388608:return["__propKey"];case 16777216:return["__addDisposableResource","__disposeResources"];case 33554432:return["__rewriteRelativeImportExtension"];default:return un.fail("Unrecognized helper")}}function FJ(t){var n;const r=function(e){const t=function(e){return NA(e)?b(e.modifiers,aD):void 0}(e);return t&&ez(t,la.Decorators_are_not_valid_here)}(t)||function(e){if(!e.modifiers)return!1;const t=function(e){switch(e.kind){case 177:case 178:case 176:case 172:case 171:case 174:case 173:case 181:case 267:case 272:case 271:case 278:case 277:case 218:case 219:case 169:case 168:return;case 175:case 303:case 304:case 270:case 282:return b(e.modifiers,Yl);default:if(268===e.parent.kind||307===e.parent.kind)return;switch(e.kind){case 262:return EJ(e,134);case 263:case 185:return EJ(e,128);case 231:case 264:case 265:return b(e.modifiers,Yl);case 243:return 4&e.declarationList.flags?EJ(e,135):b(e.modifiers,Yl);case 266:return EJ(e,87);default:un.assertNever(e)}}}(e);return t&&ez(t,la.Modifiers_cannot_appear_here)}(t);if(void 0!==r)return r;if(oD(t)&&sv(t))return ez(t,la.Neither_decorators_nor_modifiers_may_be_applied_to_this_parameters);const i=wF(t)?7&t.declarationList.flags:0;let o,a,s,c,l,_=0,u=!1,d=!1;for(const r of t.modifiers)if(aD(r)){if(!um(J,t,t.parent,t.parent.parent))return 174!==t.kind||wd(t.body)?ez(t,la.Decorators_are_not_valid_here):ez(t,la.A_decorator_can_only_decorate_a_method_implementation_not_an_overload);if(J&&(177===t.kind||178===t.kind)){const e=xJ(t);if(Ov(e.firstAccessor)&&t===e.secondAccessor)return ez(t,la.Decorators_cannot_be_applied_to_multiple_get_Slashset_accessors_of_the_same_name)}if(-34849&_)return nz(r,la.Decorators_are_not_valid_here);if(d&&98303&_)return un.assertIsDefined(l),!ZJ(hd(r))&&(iT(jo(r,la.Decorators_may_not_appear_after_export_or_export_default_if_they_also_appear_before_export),jp(l,la.Decorator_used_before_export_here)),!0);_|=32768,98303&_?32&_&&(u=!0):d=!0,l??(l=r)}else{if(148!==r.kind){if(171===t.kind||173===t.kind)return nz(r,la._0_modifier_cannot_appear_on_a_type_member,Da(r.kind));if(181===t.kind&&(126!==r.kind||!__(t.parent)))return nz(r,la._0_modifier_cannot_appear_on_an_index_signature,Da(r.kind))}if(103!==r.kind&&147!==r.kind&&87!==r.kind&&168===t.kind)return nz(r,la._0_modifier_cannot_appear_on_a_type_parameter,Da(r.kind));switch(r.kind){case 87:{if(266!==t.kind&&168!==t.kind)return nz(t,la.A_class_member_cannot_have_the_0_keyword,Da(87));const e=TP(t.parent)&&qg(t.parent)||t.parent;if(168===t.kind&&!(i_(e)||__(e)||bD(e)||xD(e)||mD(e)||gD(e)||lD(e)))return nz(r,la._0_modifier_can_only_appear_on_a_type_parameter_of_a_function_method_or_class,Da(r.kind));break}case 164:if(16&_)return nz(r,la._0_modifier_already_seen,"override");if(128&_)return nz(r,la._0_modifier_cannot_be_used_with_1_modifier,"override","declare");if(8&_)return nz(r,la._0_modifier_must_precede_1_modifier,"override","readonly");if(512&_)return nz(r,la._0_modifier_must_precede_1_modifier,"override","accessor");if(1024&_)return nz(r,la._0_modifier_must_precede_1_modifier,"override","async");_|=16,c=r;break;case 125:case 124:case 123:const d=Dc($v(r.kind));if(7&_)return nz(r,la.Accessibility_modifier_already_seen);if(16&_)return nz(r,la._0_modifier_must_precede_1_modifier,d,"override");if(256&_)return nz(r,la._0_modifier_must_precede_1_modifier,d,"static");if(512&_)return nz(r,la._0_modifier_must_precede_1_modifier,d,"accessor");if(8&_)return nz(r,la._0_modifier_must_precede_1_modifier,d,"readonly");if(1024&_)return nz(r,la._0_modifier_must_precede_1_modifier,d,"async");if(268===t.parent.kind||307===t.parent.kind)return nz(r,la._0_modifier_cannot_appear_on_a_module_or_namespace_element,d);if(64&_)return 123===r.kind?nz(r,la._0_modifier_cannot_be_used_with_1_modifier,d,"abstract"):nz(r,la._0_modifier_must_precede_1_modifier,d,"abstract");if(Hl(t))return nz(r,la.An_accessibility_modifier_cannot_be_used_with_a_private_identifier);_|=$v(r.kind);break;case 126:if(256&_)return nz(r,la._0_modifier_already_seen,"static");if(8&_)return nz(r,la._0_modifier_must_precede_1_modifier,"static","readonly");if(1024&_)return nz(r,la._0_modifier_must_precede_1_modifier,"static","async");if(512&_)return nz(r,la._0_modifier_must_precede_1_modifier,"static","accessor");if(268===t.parent.kind||307===t.parent.kind)return nz(r,la._0_modifier_cannot_appear_on_a_module_or_namespace_element,"static");if(169===t.kind)return nz(r,la._0_modifier_cannot_appear_on_a_parameter,"static");if(64&_)return nz(r,la._0_modifier_cannot_be_used_with_1_modifier,"static","abstract");if(16&_)return nz(r,la._0_modifier_must_precede_1_modifier,"static","override");_|=256,o=r;break;case 129:if(512&_)return nz(r,la._0_modifier_already_seen,"accessor");if(8&_)return nz(r,la._0_modifier_cannot_be_used_with_1_modifier,"accessor","readonly");if(128&_)return nz(r,la._0_modifier_cannot_be_used_with_1_modifier,"accessor","declare");if(172!==t.kind)return nz(r,la.accessor_modifier_can_only_appear_on_a_property_declaration);_|=512;break;case 148:if(8&_)return nz(r,la._0_modifier_already_seen,"readonly");if(172!==t.kind&&171!==t.kind&&181!==t.kind&&169!==t.kind)return nz(r,la.readonly_modifier_can_only_appear_on_a_property_declaration_or_index_signature);if(512&_)return nz(r,la._0_modifier_cannot_be_used_with_1_modifier,"readonly","accessor");_|=8;break;case 95:if(j.verbatimModuleSyntax&&!(33554432&t.flags)&&265!==t.kind&&264!==t.kind&&267!==t.kind&&307===t.parent.kind&&1===e.getEmitModuleFormatOfFile(hd(t)))return nz(r,la.A_top_level_export_modifier_cannot_be_used_on_value_declarations_in_a_CommonJS_module_when_verbatimModuleSyntax_is_enabled);if(32&_)return nz(r,la._0_modifier_already_seen,"export");if(128&_)return nz(r,la._0_modifier_must_precede_1_modifier,"export","declare");if(64&_)return nz(r,la._0_modifier_must_precede_1_modifier,"export","abstract");if(1024&_)return nz(r,la._0_modifier_must_precede_1_modifier,"export","async");if(__(t.parent))return nz(r,la._0_modifier_cannot_appear_on_class_elements_of_this_kind,"export");if(169===t.kind)return nz(r,la._0_modifier_cannot_appear_on_a_parameter,"export");if(4===i)return nz(r,la._0_modifier_cannot_appear_on_a_using_declaration,"export");if(6===i)return nz(r,la._0_modifier_cannot_appear_on_an_await_using_declaration,"export");_|=32;break;case 90:const p=307===t.parent.kind?t.parent:t.parent.parent;if(267===p.kind&&!ap(p))return nz(r,la.A_default_export_can_only_be_used_in_an_ECMAScript_style_module);if(4===i)return nz(r,la._0_modifier_cannot_appear_on_a_using_declaration,"default");if(6===i)return nz(r,la._0_modifier_cannot_appear_on_an_await_using_declaration,"default");if(!(32&_))return nz(r,la._0_modifier_must_precede_1_modifier,"export","default");if(u)return nz(l,la.Decorators_are_not_valid_here);_|=2048;break;case 138:if(128&_)return nz(r,la._0_modifier_already_seen,"declare");if(1024&_)return nz(r,la._0_modifier_cannot_be_used_in_an_ambient_context,"async");if(16&_)return nz(r,la._0_modifier_cannot_be_used_in_an_ambient_context,"override");if(__(t.parent)&&!cD(t))return nz(r,la._0_modifier_cannot_appear_on_class_elements_of_this_kind,"declare");if(169===t.kind)return nz(r,la._0_modifier_cannot_appear_on_a_parameter,"declare");if(4===i)return nz(r,la._0_modifier_cannot_appear_on_a_using_declaration,"declare");if(6===i)return nz(r,la._0_modifier_cannot_appear_on_an_await_using_declaration,"declare");if(33554432&t.parent.flags&&268===t.parent.kind)return nz(r,la.A_declare_modifier_cannot_be_used_in_an_already_ambient_context);if(Hl(t))return nz(r,la._0_modifier_cannot_be_used_with_a_private_identifier,"declare");if(512&_)return nz(r,la._0_modifier_cannot_be_used_with_1_modifier,"declare","accessor");_|=128,a=r;break;case 128:if(64&_)return nz(r,la._0_modifier_already_seen,"abstract");if(263!==t.kind&&185!==t.kind){if(174!==t.kind&&172!==t.kind&&177!==t.kind&&178!==t.kind)return nz(r,la.abstract_modifier_can_only_appear_on_a_class_method_or_property_declaration);if(263!==t.parent.kind||!wv(t.parent,64))return nz(r,172===t.kind?la.Abstract_properties_can_only_appear_within_an_abstract_class:la.Abstract_methods_can_only_appear_within_an_abstract_class);if(256&_)return nz(r,la._0_modifier_cannot_be_used_with_1_modifier,"static","abstract");if(2&_)return nz(r,la._0_modifier_cannot_be_used_with_1_modifier,"private","abstract");if(1024&_&&s)return nz(s,la._0_modifier_cannot_be_used_with_1_modifier,"async","abstract");if(16&_)return nz(r,la._0_modifier_must_precede_1_modifier,"abstract","override");if(512&_)return nz(r,la._0_modifier_must_precede_1_modifier,"abstract","accessor")}if(kc(t)&&81===t.name.kind)return nz(r,la._0_modifier_cannot_be_used_with_a_private_identifier,"abstract");_|=64;break;case 134:if(1024&_)return nz(r,la._0_modifier_already_seen,"async");if(128&_||33554432&t.parent.flags)return nz(r,la._0_modifier_cannot_be_used_in_an_ambient_context,"async");if(169===t.kind)return nz(r,la._0_modifier_cannot_appear_on_a_parameter,"async");if(64&_)return nz(r,la._0_modifier_cannot_be_used_with_1_modifier,"async","abstract");_|=1024,s=r;break;case 103:case 147:{const e=103===r.kind?8192:16384,i=103===r.kind?"in":"out",o=TP(t.parent)&&(qg(t.parent)||b(null==(n=Vg(t.parent))?void 0:n.tags,CP))||t.parent;if(168!==t.kind||o&&!(KF(o)||__(o)||GF(o)||CP(o)))return nz(r,la._0_modifier_can_only_appear_on_a_type_parameter_of_a_class_interface_or_type_alias,i);if(_&e)return nz(r,la._0_modifier_already_seen,i);if(8192&e&&16384&_)return nz(r,la._0_modifier_must_precede_1_modifier,"in","out");_|=e;break}}}return 176===t.kind?256&_?nz(o,la._0_modifier_cannot_appear_on_a_constructor_declaration,"static"):16&_?nz(c,la._0_modifier_cannot_appear_on_a_constructor_declaration,"override"):!!(1024&_)&&nz(s,la._0_modifier_cannot_appear_on_a_constructor_declaration,"async"):(272===t.kind||271===t.kind)&&128&_?nz(a,la.A_0_modifier_cannot_be_used_with_an_import_declaration,"declare"):169===t.kind&&31&_&&x_(t.name)?nz(t,la.A_parameter_property_may_not_be_declared_using_a_binding_pattern):169===t.kind&&31&_&&t.dotDotDotToken?nz(t,la.A_parameter_property_cannot_be_declared_using_a_rest_parameter):!!(1024&_)&&function(e,t){switch(e.kind){case 174:case 262:case 218:case 219:return!1}return nz(t,la._0_modifier_cannot_be_used_here,"async")}(t,s)}function EJ(e,t){const n=b(e.modifiers,Yl);return n&&n.kind!==t?n:void 0}function PJ(e,t=la.Trailing_comma_not_allowed){return!(!e||!e.hasTrailingComma)&&tz(e[0],e.end-1,1,t)}function AJ(e,t){if(e&&0===e.length){const n=e.pos-1;return tz(t,n,Xa(t.text,e.end)+1-n,la.Type_parameter_list_cannot_be_empty)}return!1}function IJ(e){const t=hd(e);return FJ(e)||AJ(e.typeParameters,t)||function(e){let t=!1;const n=e.length;for(let r=0;r1||e.typeParameters.hasTrailingComma||e.typeParameters[0].constraint)&&t&&So(t.fileName,[".mts",".cts"])&&nz(e.typeParameters[0],la.This_syntax_is_reserved_in_files_with_the_mts_or_cts_extension_Add_a_trailing_comma_or_explicit_constraint);const{equalsGreaterThanToken:n}=e;return Ja(t,n.pos).line!==Ja(t,n.end).line&&nz(n,la.Line_terminator_not_permitted_before_arrow)}(e,t)||i_(e)&&function(e){if(R>=3){const t=e.body&&CF(e.body)&&tA(e.body.statements);if(t){const n=N(e.parameters,(e=>!!e.initializer||x_(e.name)||Mu(e)));if(u(n)){d(n,(e=>{iT(jo(e,la.This_parameter_is_not_allowed_with_use_strict_directive),jp(t,la.use_strict_directive_used_here))}));const e=n.map(((e,t)=>jp(e,0===t?la.Non_simple_parameter_declared_here:la.and_here)));return iT(jo(t,la.use_strict_directive_cannot_be_used_with_non_simple_parameter_list),...e),!0}}}return!1}(e)}function OJ(e,t){return PJ(t)||function(e,t){if(t&&0===t.length){const n=hd(e),r=t.pos-1;return tz(n,r,Xa(n.text,t.end)+1-r,la.Type_argument_list_cannot_be_empty)}return!1}(e,t)}function LJ(e){const t=e.types;if(PJ(t))return!0;if(t&&0===t.length){const n=Da(e.token);return tz(e,t.pos,0,la._0_list_cannot_be_empty,n)}return $(t,jJ)}function jJ(e){return mF(e)&&eD(e.expression)&&e.typeArguments?nz(e,la.This_use_of_import_is_invalid_import_calls_can_be_written_but_they_must_have_parentheses_and_cannot_have_type_arguments):OJ(e,e.typeArguments)}function RJ(e){if(167!==e.kind)return!1;const t=e;return 226===t.expression.kind&&28===t.expression.operatorToken.kind&&nz(t.expression,la.A_comma_expression_is_not_allowed_in_a_computed_property_name)}function BJ(e){if(e.asteriskToken){if(un.assert(262===e.kind||218===e.kind||174===e.kind),33554432&e.flags)return nz(e.asteriskToken,la.Generators_are_not_allowed_in_an_ambient_context);if(!e.body)return nz(e.asteriskToken,la.An_overload_signature_cannot_be_declared_as_a_generator)}}function JJ(e,t){return!!e&&nz(e,t)}function zJ(e,t){return!!e&&nz(e,t)}function qJ(e){if(iz(e))return!0;if(250===e.kind&&e.awaitModifier&&!(65536&e.flags)){const t=hd(e);if(tm(e)){if(!ZJ(t))switch(mp(t,j)||uo.add(jp(e.awaitModifier,la.for_await_loops_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_this_file_has_no_imports_or_exports_Consider_adding_an_empty_export_to_make_this_file_a_module)),M){case 100:case 199:if(1===t.impliedNodeFormat){uo.add(jp(e.awaitModifier,la.The_current_file_is_a_CommonJS_module_and_cannot_use_await_at_the_top_level));break}case 7:case 99:case 200:case 4:if(R>=4)break;default:uo.add(jp(e.awaitModifier,la.Top_level_for_await_loops_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_node16_nodenext_or_preserve_and_the_target_option_is_set_to_es2017_or_higher))}}else if(!ZJ(t)){const t=jp(e.awaitModifier,la.for_await_loops_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules),n=Hf(e);return n&&176!==n.kind&&(un.assert(!(2&Ih(n)),"Enclosing function should never be an async function."),iT(t,jp(n,la.Did_you_mean_to_mark_this_function_as_async))),uo.add(t),!0}}if(OF(e)&&!(65536&e.flags)&&zN(e.initializer)&&"async"===e.initializer.escapedText)return nz(e.initializer,la.The_left_hand_side_of_a_for_of_statement_may_not_be_async),!1;if(261===e.initializer.kind){const t=e.initializer;if(!QJ(t)){const n=t.declarations;if(!n.length)return!1;if(n.length>1){const n=249===e.kind?la.Only_a_single_variable_declaration_is_allowed_in_a_for_in_statement:la.Only_a_single_variable_declaration_is_allowed_in_a_for_of_statement;return ez(t.declarations[1],n)}const r=n[0];if(r.initializer){const t=249===e.kind?la.The_variable_declaration_of_a_for_in_statement_cannot_have_an_initializer:la.The_variable_declaration_of_a_for_of_statement_cannot_have_an_initializer;return nz(r.name,t)}if(r.type)return nz(r,249===e.kind?la.The_left_hand_side_of_a_for_in_statement_cannot_use_a_type_annotation:la.The_left_hand_side_of_a_for_of_statement_cannot_use_a_type_annotation)}}return!1}function UJ(e){if(e.parameters.length===(177===e.kind?1:2))return av(e)}function VJ(e,t){if(function(e){return Mh(e)&&!Bu(e)}(e))return nz(e,t)}function WJ(e){if(IJ(e))return!0;if(174===e.kind){if(210===e.parent.kind){if(e.modifiers&&(1!==e.modifiers.length||134!==ge(e.modifiers).kind))return ez(e,la.Modifiers_cannot_appear_here);if(JJ(e.questionToken,la.An_object_member_cannot_be_declared_optional))return!0;if(zJ(e.exclamationToken,la.A_definite_assignment_assertion_is_not_permitted_in_this_context))return!0;if(void 0===e.body)return tz(e,e.end-1,1,la._0_expected,"{")}if(BJ(e))return!0}if(__(e.parent)){if(R<2&&qN(e.name))return nz(e.name,la.Private_identifiers_are_only_available_when_targeting_ECMAScript_2015_and_higher);if(33554432&e.flags)return VJ(e.name,la.A_computed_property_name_in_an_ambient_context_must_refer_to_an_expression_whose_type_is_a_literal_type_or_a_unique_symbol_type);if(174===e.kind&&!e.body)return VJ(e.name,la.A_computed_property_name_in_a_method_overload_must_refer_to_an_expression_whose_type_is_a_literal_type_or_a_unique_symbol_type)}else{if(264===e.parent.kind)return VJ(e.name,la.A_computed_property_name_in_an_interface_must_refer_to_an_expression_whose_type_is_a_literal_type_or_a_unique_symbol_type);if(187===e.parent.kind)return VJ(e.name,la.A_computed_property_name_in_a_type_literal_must_refer_to_an_expression_whose_type_is_a_literal_type_or_a_unique_symbol_type)}}function HJ(e){return Lh(e)||224===e.kind&&41===e.operator&&9===e.operand.kind}function KJ(e){const t=e.initializer;if(t){const r=!(HJ(t)||function(e){if((HD(e)||KD(e)&&HJ(e.argumentExpression))&&ob(e.expression))return!!(1056&fj(e).flags)}(t)||112===t.kind||97===t.kind||(n=t,10===n.kind||224===n.kind&&41===n.operator&&10===n.operand.kind));if(!(ef(e)||VF(e)&&uz(e))||e.type)return nz(t,la.Initializers_are_not_allowed_in_ambient_contexts);if(r)return nz(t,la.A_const_initializer_in_an_ambient_context_must_be_a_string_or_numeric_literal_or_literal_enum_reference)}var n}function GJ(e){if(80===e.kind){if("__esModule"===mc(e))return function(e,t,n,...r){return!ZJ(hd(t))&&(Oo(e,t,n,...r),!0)}("noEmit",e,la.Identifier_expected_esModule_is_reserved_as_an_exported_marker_when_transforming_ECMAScript_modules)}else{const t=e.elements;for(const e of t)if(!fF(e))return GJ(e.name)}return!1}function XJ(e){if(80===e.kind){if("let"===e.escapedText)return nz(e,la.let_is_not_allowed_to_be_used_as_a_name_in_let_or_const_declarations)}else{const t=e.elements;for(const e of t)fF(e)||XJ(e.name)}return!1}function QJ(e){const t=e.declarations;if(PJ(e.declarations))return!0;if(!e.declarations.length)return tz(e,t.pos,t.end-t.pos,la.Variable_declaration_list_cannot_be_empty);const n=7&e.flags;return 4!==n&&6!==n||!IF(e.parent)?6===n&&KL(e):nz(e,4===n?la.The_left_hand_side_of_a_for_in_statement_cannot_be_a_using_declaration:la.The_left_hand_side_of_a_for_in_statement_cannot_be_an_await_using_declaration)}function YJ(e){switch(e.kind){case 245:case 246:case 247:case 254:case 248:case 249:case 250:return!1;case 256:return YJ(e.parent)}return!0}function ZJ(e){return e.parseDiagnostics.length>0}function ez(e,t,...n){const r=hd(e);if(!ZJ(r)){const i=Hp(r,e.pos);return uo.add(Kx(r,i.start,i.length,t,...n)),!0}return!1}function tz(e,t,n,r,...i){const o=hd(e);return!ZJ(o)&&(uo.add(Kx(o,t,n,r,...i)),!0)}function nz(e,t,...n){return!ZJ(hd(e))&&(uo.add(jp(e,t,...n)),!0)}function rz(e){return!!(33554432&e.flags)&&function(e){for(const n of e.statements)if((lu(n)||243===n.kind)&&264!==(t=n).kind&&265!==t.kind&&272!==t.kind&&271!==t.kind&&278!==t.kind&&277!==t.kind&&270!==t.kind&&!wv(t,2208)&&ez(t,la.Top_level_declarations_in_d_ts_files_must_start_with_either_a_declare_or_export_modifier))return!0;var t;return!1}(e)}function iz(e){if(33554432&e.flags){if(!aa(e).hasReportedStatementInAmbientContext&&(n_(e.parent)||u_(e.parent)))return aa(e).hasReportedStatementInAmbientContext=ez(e,la.An_implementation_cannot_be_declared_in_ambient_contexts);if(241===e.parent.kind||268===e.parent.kind||307===e.parent.kind){const t=aa(e.parent);if(!t.hasReportedStatementInAmbientContext)return t.hasReportedStatementInAmbientContext=ez(e,la.Statements_are_not_allowed_in_ambient_contexts)}}return!1}function oz(e){const t=Kd(e).includes("."),n=16&e.numericLiteralFlags;t||n||+e.text<=2**53-1||Ro(!1,jp(e,la.Numeric_literals_with_absolute_values_equal_to_2_53_or_greater_are_too_large_to_be_represented_accurately_as_integers))}function az(e){return!!d(e.elements,(e=>{if(e.isTypeOnly)return ez(e,276===e.kind?la.The_type_modifier_cannot_be_used_on_a_named_import_when_import_type_is_used_on_its_import_statement:la.The_type_modifier_cannot_be_used_on_a_named_export_when_export_type_is_used_on_its_export_statement)}))}function sz(e,t,n){if(1048576&t.flags&&2621440&e.flags){const r=wN(t,e);if(r)return r;const i=vp(e);if(i){const e=xN(i,t);if(e){const r=tT(t,E(e,(e=>[()=>S_(e),e.escapedName])),n);if(r!==t)return r}}}}function cz(e){return Bh(e)||(rD(e)?hN(Aj(e.expression)):void 0)}function lz(e){return Ae===e?qe:(Ae=e,qe=rc(e))}function _z(e){return Pe===e?ze:(Pe=e,ze=oc(e))}function uz(e){const t=7&_z(e);return 2===t||4===t||6===t}}function JB(e){return 262!==e.kind&&174!==e.kind||!!e.body}function zB(e){switch(e.parent.kind){case 276:case 281:return zN(e)||11===e.kind;default:return ch(e)}}function qB(e){switch(e){case 0:return"yieldType";case 1:return"returnType";case 2:return"nextType"}}function UB(e){return!!(1&e.flags)}function VB(e){return!!(2&e.flags)}(bB=vB||(vB={})).JSX="JSX",bB.IntrinsicElements="IntrinsicElements",bB.ElementClass="ElementClass",bB.ElementAttributesPropertyNameContainer="ElementAttributesProperty",bB.ElementChildrenAttributeNameContainer="ElementChildrenAttribute",bB.Element="Element",bB.ElementType="ElementType",bB.IntrinsicAttributes="IntrinsicAttributes",bB.IntrinsicClassAttributes="IntrinsicClassAttributes",bB.LibraryManagedAttributes="LibraryManagedAttributes",(xB||(xB={})).Fragment="Fragment";var WB=class e{constructor(t,n,r){var i;for(this.moduleResolverHost=void 0,this.inner=void 0,this.disableTrackSymbol=!1;n instanceof e;)n=n.inner;this.inner=n,this.moduleResolverHost=r,this.context=t,this.canTrackSymbol=!!(null==(i=this.inner)?void 0:i.trackSymbol)}trackSymbol(e,t,n){var r,i;if((null==(r=this.inner)?void 0:r.trackSymbol)&&!this.disableTrackSymbol){if(this.inner.trackSymbol(e,t,n))return this.onDiagnosticReported(),!0;262144&e.flags||((i=this.context).trackedSymbols??(i.trackedSymbols=[])).push([e,t,n])}return!1}reportInaccessibleThisError(){var e;(null==(e=this.inner)?void 0:e.reportInaccessibleThisError)&&(this.onDiagnosticReported(),this.inner.reportInaccessibleThisError())}reportPrivateInBaseOfClassExpression(e){var t;(null==(t=this.inner)?void 0:t.reportPrivateInBaseOfClassExpression)&&(this.onDiagnosticReported(),this.inner.reportPrivateInBaseOfClassExpression(e))}reportInaccessibleUniqueSymbolError(){var e;(null==(e=this.inner)?void 0:e.reportInaccessibleUniqueSymbolError)&&(this.onDiagnosticReported(),this.inner.reportInaccessibleUniqueSymbolError())}reportCyclicStructureError(){var e;(null==(e=this.inner)?void 0:e.reportCyclicStructureError)&&(this.onDiagnosticReported(),this.inner.reportCyclicStructureError())}reportLikelyUnsafeImportRequiredError(e){var t;(null==(t=this.inner)?void 0:t.reportLikelyUnsafeImportRequiredError)&&(this.onDiagnosticReported(),this.inner.reportLikelyUnsafeImportRequiredError(e))}reportTruncationError(){var e;(null==(e=this.inner)?void 0:e.reportTruncationError)&&(this.onDiagnosticReported(),this.inner.reportTruncationError())}reportNonlocalAugmentation(e,t,n){var r;(null==(r=this.inner)?void 0:r.reportNonlocalAugmentation)&&(this.onDiagnosticReported(),this.inner.reportNonlocalAugmentation(e,t,n))}reportNonSerializableProperty(e){var t;(null==(t=this.inner)?void 0:t.reportNonSerializableProperty)&&(this.onDiagnosticReported(),this.inner.reportNonSerializableProperty(e))}onDiagnosticReported(){this.context.reportedDiagnostic=!0}reportInferenceFallback(e){var t;(null==(t=this.inner)?void 0:t.reportInferenceFallback)&&!this.context.suppressReportInferenceFallback&&(this.onDiagnosticReported(),this.inner.reportInferenceFallback(e))}pushErrorFallbackNode(e){var t,n;return null==(n=null==(t=this.inner)?void 0:t.pushErrorFallbackNode)?void 0:n.call(t,e)}popErrorFallbackNode(){var e,t;return null==(t=null==(e=this.inner)?void 0:e.popErrorFallbackNode)?void 0:t.call(e)}};function $B(e,t,n,r){if(void 0===e)return e;const i=t(e);let o;return void 0!==i?(o=Qe(i)?(r||iJ)(i):i,un.assertNode(o,n),o):void 0}function HB(e,t,n,r,i){if(void 0===e)return e;const o=e.length;let a;(void 0===r||r<0)&&(r=0),(void 0===i||i>o-r)&&(i=o-r);let s=-1,c=-1;r>0||io-r)&&(i=o-r),GB(e,t,n,r,i)}function GB(e,t,n,r,i){let o;const a=e.length;(r>0||i=2&&(i=function(e,t){let n;for(let r=0;r{const o=rl,addSource:P,setSourceContent:A,addName:I,addMapping:O,appendSourceMap:function(e,t,n,r,i,o){un.assert(e>=k,"generatedLine cannot backtrack"),un.assert(t>=0,"generatedCharacter cannot be negative"),s();const a=[];let l;const _=pJ(n.mappings);for(const s of _){if(o&&(s.generatedLine>o.line||s.generatedLine===o.line&&s.generatedCharacter>o.character))break;if(i&&(s.generatedLineJSON.stringify(M())};function P(t){s();const n=oa(r,t,e.getCurrentDirectory(),e.getCanonicalFileName,!0);let i=u.get(n);return void 0===i&&(i=_.length,_.push(n),l.push(t),u.set(n,i)),c(),i}function A(e,t){if(s(),null!==t){for(o||(o=[]);o.length=k,"generatedLine cannot backtrack"),un.assert(t>=0,"generatedCharacter cannot be negative"),un.assert(void 0===n||n>=0,"sourceIndex cannot be negative"),un.assert(void 0===r||r>=0,"sourceLine cannot be negative"),un.assert(void 0===i||i>=0,"sourceCharacter cannot be negative"),s(),(function(e,t){return!D||k!==e||S!==t}(e,t)||function(e,t,n){return void 0!==e&&void 0!==t&&void 0!==n&&T===e&&(C>t||C===t&&w>n)}(n,r,i))&&(j(),k=e,S=t,F=!1,E=!1,D=!0),void 0!==n&&void 0!==r&&void 0!==i&&(T=n,C=r,w=i,F=!0,void 0!==o&&(N=o,E=!0)),c()}function L(e){p.push(e),p.length>=1024&&R()}function j(){if(D&&(!x||m!==k||g!==S||h!==T||y!==C||v!==w||b!==N)){if(s(),m0&&(f+=String.fromCharCode.apply(void 0,p),p.length=0)}function M(){return j(),R(),{version:3,file:t,sourceRoot:n,sources:_,names:d,mappings:f,sourcesContent:o}}function B(e){e<0?e=1+(-e<<1):e<<=1;do{let n=31&e;(e>>=5)>0&&(n|=32),L((t=n)>=0&&t<26?65+t:t>=26&&t<52?97+t-26:t>=52&&t<62?48+t-52:62===t?43:63===t?47:un.fail(`${t}: not a base64 value`))}while(e>0);var t}}var aJ=/\/\/[@#] source[M]appingURL=(.+)\r?\n?$/,sJ=/^\/\/[@#] source[M]appingURL=(.+)\r?\n?$/,cJ=/^\s*(\/\/[@#] .*)?$/;function lJ(e,t){return{getLineCount:()=>t.length,getLineText:n=>e.substring(t[n],t[n+1])}}function _J(e){for(let t=e.getLineCount()-1;t>=0;t--){const n=e.getLineText(t),r=sJ.exec(n);if(r)return r[1].trimEnd();if(!n.match(cJ))break}}function uJ(e){return"string"==typeof e||null===e}function dJ(e){try{const n=JSON.parse(e);if(null!==(t=n)&&"object"==typeof t&&3===t.version&&"string"==typeof t.file&&"string"==typeof t.mappings&&Qe(t.sources)&&v(t.sources,Ze)&&(void 0===t.sourceRoot||null===t.sourceRoot||"string"==typeof t.sourceRoot)&&(void 0===t.sourcesContent||null===t.sourcesContent||Qe(t.sourcesContent)&&v(t.sourcesContent,uJ))&&(void 0===t.names||null===t.names||Qe(t.names)&&v(t.names,Ze)))return n}catch{}var t}function pJ(e){let t,n=!1,r=0,i=0,o=0,a=0,s=0,c=0,l=0;return{get pos(){return r},get error(){return t},get state(){return _(!0,!0)},next(){for(;!n&&r=e.length)return d("Error in decoding base64VLQFormatDecode, past the mapping string"),-1;const a=(o=e.charCodeAt(r))>=65&&o<=90?o-65:o>=97&&o<=122?o-97+26:o>=48&&o<=57?o-48+52:43===o?62:47===o?63:-1;if(-1===a)return d("Invalid character in VLQ"),-1;t=!!(32&a),i|=(31&a)<>=1,i=-i):i>>=1,i}}function fJ(e,t){return e===t||e.generatedLine===t.generatedLine&&e.generatedCharacter===t.generatedCharacter&&e.sourceIndex===t.sourceIndex&&e.sourceLine===t.sourceLine&&e.sourceCharacter===t.sourceCharacter&&e.nameIndex===t.nameIndex}function mJ(e){return void 0!==e.sourceIndex&&void 0!==e.sourceLine&&void 0!==e.sourceCharacter}function gJ(e){return void 0!==e.sourceIndex&&void 0!==e.sourcePosition}function hJ(e,t){return e.generatedPosition===t.generatedPosition&&e.sourceIndex===t.sourceIndex&&e.sourcePosition===t.sourcePosition}function yJ(e,t){return un.assert(e.sourceIndex===t.sourceIndex),vt(e.sourcePosition,t.sourcePosition)}function vJ(e,t){return vt(e.generatedPosition,t.generatedPosition)}function bJ(e){return e.sourcePosition}function xJ(e){return e.generatedPosition}function kJ(e,t,n){const r=Do(n),i=t.sourceRoot?Bo(t.sourceRoot,r):r,o=Bo(t.file,r),a=e.getSourceFileLike(o),s=t.sources.map((e=>Bo(e,i))),c=new Map(s.map(((t,n)=>[e.getCanonicalFileName(t),n])));let _,u,d;return{getSourcePosition:function(e){const t=function(){if(void 0===u){const e=[];for(const t of f())e.push(t);u=ee(e,vJ,hJ)}return u}();if(!$(t))return e;let n=Ce(t,e.pos,xJ,vt);n<0&&(n=~n);const r=t[n];return void 0!==r&&gJ(r)?{fileName:s[r.sourceIndex],pos:r.sourcePosition}:e},getGeneratedPosition:function(t){const n=c.get(e.getCanonicalFileName(t.fileName));if(void 0===n)return t;const r=function(e){if(void 0===d){const e=[];for(const t of f()){if(!gJ(t))continue;let n=e[t.sourceIndex];n||(e[t.sourceIndex]=n=[]),n.push(t)}d=e.map((e=>ee(e,yJ,hJ)))}return d[e]}(n);if(!$(r))return t;let i=Ce(r,t.pos,bJ,vt);i<0&&(i=~i);const a=r[i];return void 0===a||a.sourceIndex!==n?t:{fileName:o,pos:a.generatedPosition}}};function p(n){const r=void 0!==a?Oa(a,n.generatedLine,n.generatedCharacter,!0):-1;let i,o;if(mJ(n)){const r=e.getSourceFileLike(s[n.sourceIndex]);i=t.sources[n.sourceIndex],o=void 0!==r?Oa(r,n.sourceLine,n.sourceCharacter,!0):-1}return{generatedPosition:r,source:i,sourceIndex:n.sourceIndex,sourcePosition:o,nameIndex:n.nameIndex}}function f(){if(void 0===_){const n=pJ(t.mappings),r=Oe(n,p);void 0!==n.error?(e.log&&e.log(`Encountered error while decoding sourcemap: ${n.error}`),_=l):_=r}return _}}var SJ={getSourcePosition:st,getGeneratedPosition:st};function TJ(e){return(e=lc(e))?jB(e):0}function CJ(e){return!!e&&!(!uE(e)&&!mE(e))&&$(e.elements,wJ)}function wJ(e){return $d(e.propertyName||e.name)}function NJ(e,t){return function(n){return 307===n.kind?t(n):function(n){return e.factory.createBundle(E(n.sourceFiles,t))}(n)}}function DJ(e){return!!kg(e)}function FJ(e){if(kg(e))return!0;const t=e.importClause&&e.importClause.namedBindings;if(!t)return!1;if(!uE(t))return!1;let n=0;for(const e of t.elements)wJ(e)&&n++;return n>0&&n!==t.elements.length||!!(t.elements.length-n)&&Sg(e)}function EJ(e){return!FJ(e)&&(Sg(e)||!!e.importClause&&uE(e.importClause.namedBindings)&&CJ(e.importClause.namedBindings))}function PJ(e,t){const n=e.getEmitResolver(),r=e.getCompilerOptions(),i=[],o=new LJ,a=[],s=new Map,c=new Set;let l,_,u=!1,d=!1,p=!1,f=!1;for(const n of t.statements)switch(n.kind){case 272:i.push(n),!p&&FJ(n)&&(p=!0),!f&&EJ(n)&&(f=!0);break;case 271:283===n.moduleReference.kind&&i.push(n);break;case 278:if(n.moduleSpecifier)if(n.exportClause)if(i.push(n),mE(n.exportClause))g(n),f||(f=CJ(n.exportClause));else{const e=n.exportClause.name,t=Vd(e);s.get(t)||(IJ(a,TJ(n),e),s.set(t,!0),l=ie(l,e)),p=!0}else i.push(n),d=!0;else g(n);break;case 277:n.isExportEquals&&!_&&(_=n);break;case 243:if(wv(n,32))for(const e of n.declarationList.declarations)l=AJ(e,s,l,a);break;case 262:wv(n,32)&&h(n,void 0,wv(n,2048));break;case 263:if(wv(n,32))if(wv(n,2048))u||(IJ(a,TJ(n),e.factory.getDeclarationName(n)),u=!0);else{const e=n.name;e&&!s.get(mc(e))&&(IJ(a,TJ(n),e),s.set(mc(e),!0),l=ie(l,e))}}const m=pA(e.factory,e.getEmitHelperFactory(),t,r,d,p,f);return m&&i.unshift(m),{externalImports:i,exportSpecifiers:o,exportEquals:_,hasExportStarsToExportValues:d,exportedBindings:a,exportedNames:l,exportedFunctions:c,externalHelpersImportDeclaration:m};function g(e){for(const t of nt(e.exportClause,mE).elements){const r=Vd(t.name);if(!s.get(r)){const i=t.propertyName||t.name;if(11!==i.kind){e.moduleSpecifier||o.add(i,t);const r=n.getReferencedImportDeclaration(i)||n.getReferencedValueDeclaration(i);if(r){if(262===r.kind){h(r,t.name,$d(t.name));continue}IJ(a,TJ(r),t.name)}}s.set(r,!0),l=ie(l,t.name)}}}function h(t,n,r){if(c.add(lc(t,$F)),r)u||(IJ(a,TJ(t),n??e.factory.getDeclarationName(t)),u=!0);else{n??(n=t.name);const e=Vd(n);s.get(e)||(IJ(a,TJ(t),n),s.set(e,!0))}}}function AJ(e,t,n,r){if(x_(e.name))for(const i of e.name.elements)fF(i)||(n=AJ(i,t,n,r));else if(!Vl(e.name)){const i=mc(e.name);t.get(i)||(t.set(i,!0),n=ie(n,e.name),YP(e.name)&&IJ(r,TJ(e),e.name))}return n}function IJ(e,t,n){let r=e[t];return r?r.push(n):e[t]=r=[n],r}var OJ=class e{constructor(){this._map=new Map}get size(){return this._map.size}has(t){return this._map.has(e.toKey(t))}get(t){return this._map.get(e.toKey(t))}set(t,n){return this._map.set(e.toKey(t),n),this}delete(t){var n;return(null==(n=this._map)?void 0:n.delete(e.toKey(t)))??!1}clear(){this._map.clear()}values(){return this._map.values()}static toKey(t){if(Wl(t)||Vl(t)){const n=t.emitNode.autoGenerate;if(4==(7&n.flags)){const r=$A(t),i=ul(r)&&r!==t?e.toKey(r):`(generated@${jB(r)})`;return KA(!1,n.prefix,i,n.suffix,e.toKey)}{const t=`(auto@${n.id})`;return KA(!1,n.prefix,t,n.suffix,e.toKey)}}return qN(t)?mc(t).slice(1):mc(t)}},LJ=class extends OJ{add(e,t){let n=this.get(e);return n?n.push(t):this.set(e,n=[t]),n}remove(e,t){const n=this.get(e);n&&(Vt(n,t),n.length||this.delete(e))}};function jJ(e){return Lu(e)||9===e.kind||Th(e.kind)||zN(e)}function RJ(e){return!zN(e)&&jJ(e)}function MJ(e){return e>=65&&e<=79}function BJ(e){switch(e){case 65:return 40;case 66:return 41;case 67:return 42;case 68:return 43;case 69:return 44;case 70:return 45;case 71:return 48;case 72:return 49;case 73:return 50;case 74:return 51;case 75:return 52;case 79:return 53;case 76:return 57;case 77:return 56;case 78:return 61}}function JJ(e){if(!DF(e))return;const t=oh(e.expression);return sf(t)?t:void 0}function zJ(e,t,n){for(let r=t;rfunction(e,t,n){return cD(e)&&(!!e.initializer||!t)&&Dv(e)===n}(e,t,n)))}function VJ(e){return cD(t=e)&&Dv(t)||uD(e);var t}function WJ(e){return N(e.members,VJ)}function $J(e){return 172===e.kind&&void 0!==e.initializer}function HJ(e){return!Nv(e)&&(f_(e)||d_(e))&&qN(e.name)}function KJ(e){let t;if(e){const n=e.parameters,r=n.length>0&&sv(n[0]),i=r?1:0,o=r?n.length-1:n.length;for(let e=0;e(e[e.All=0]="All",e[e.ObjectRest=1]="ObjectRest",e))(oz||{});function az(e,t,n,r,i,o){let a,s,c=e;if(rb(e))for(a=e.right;hb(e.left)||gb(e.left);){if(!rb(a))return un.checkDefined($B(a,t,U_));c=e=a,a=e.right}const l={context:n,level:r,downlevelIteration:!!n.getCompilerOptions().downlevelIteration,hoistTempVariables:!0,emitExpression:_,emitBindingOrAssignment:function(e,r,i,a){un.assertNode(e,o?zN:U_);const s=o?o(e,r,i):nI(n.factory.createAssignment(un.checkDefined($B(e,t,U_)),r),i);s.original=a,_(s)},createArrayBindingOrAssignmentPattern:e=>function(e,t){return un.assertEachNode(t,E_),e.createArrayLiteralExpression(E(t,e.converters.convertToArrayAssignmentElement))}(n.factory,e),createObjectBindingOrAssignmentPattern:e=>function(e,t){return un.assertEachNode(t,D_),e.createObjectLiteralExpression(E(t,e.converters.convertToObjectAssignmentElement))}(n.factory,e),createArrayBindingOrAssignmentElement:fz,visitor:t};if(a&&(a=$B(a,t,U_),un.assert(a),zN(a)&&sz(e,a.escapedText)||cz(e)?a=pz(l,a,!1,c):i?a=pz(l,a,!0,c):Zh(e)&&(c=a)),_z(l,e,a,c,rb(e)),a&&i){if(!$(s))return a;s.push(a)}return n.factory.inlineExpressions(s)||n.factory.createOmittedExpression();function _(e){s=ie(s,e)}}function sz(e,t){const n=yA(e);return w_(n)?function(e,t){const n=SA(e);for(const e of n)if(sz(e,t))return!0;return!1}(n,t):!!zN(n)&&n.escapedText===t}function cz(e){const t=xA(e);if(t&&rD(t)&&!Al(t.expression))return!0;const n=yA(e);return!!n&&w_(n)&&!!d(SA(n),cz)}function lz(e,t,n,r,i,o=!1,a){let s;const c=[],l=[],_={context:n,level:r,downlevelIteration:!!n.getCompilerOptions().downlevelIteration,hoistTempVariables:o,emitExpression:function(e){s=ie(s,e)},emitBindingOrAssignment:u,createArrayBindingOrAssignmentPattern:e=>function(e,t){return un.assertEachNode(t,S_),e.createArrayBindingPattern(t)}(n.factory,e),createObjectBindingOrAssignmentPattern:e=>function(e,t){return un.assertEachNode(t,VD),e.createObjectBindingPattern(t)}(n.factory,e),createArrayBindingOrAssignmentElement:e=>function(e,t){return e.createBindingElement(void 0,void 0,t)}(n.factory,e),visitor:t};if(VF(e)){let t=hA(e);t&&(zN(t)&&sz(e,t.escapedText)||cz(e))&&(t=pz(_,un.checkDefined($B(t,_.visitor,U_)),!1,t),e=n.factory.updateVariableDeclaration(e,e.name,void 0,void 0,t))}if(_z(_,e,i,e,a),s){const e=n.factory.createTempVariable(void 0);if(o){const t=n.factory.inlineExpressions(s);s=void 0,u(e,t,void 0,void 0)}else{n.hoistVariableDeclaration(e);const t=ve(c);t.pendingExpressions=ie(t.pendingExpressions,n.factory.createAssignment(e,t.value)),se(t.pendingExpressions,s),t.value=e}}for(const{pendingExpressions:e,name:t,value:r,location:i,original:o}of c){const a=n.factory.createVariableDeclaration(t,void 0,void 0,e?n.factory.inlineExpressions(ie(e,r)):r);a.original=o,nI(a,i),l.push(a)}return l;function u(e,t,r,i){un.assertNode(e,t_),s&&(t=n.factory.inlineExpressions(ie(s,t)),s=void 0),c.push({pendingExpressions:s,name:e,value:t,location:r,original:i})}}function _z(e,t,n,r,i){const o=yA(t);if(!i){const i=$B(hA(t),e.visitor,U_);i?n?(n=function(e,t,n,r){return t=pz(e,t,!0,r),e.context.factory.createConditionalExpression(e.context.factory.createTypeCheck(t,"undefined"),void 0,n,void 0,t)}(e,n,i,r),!RJ(i)&&w_(o)&&(n=pz(e,n,!0,r))):n=i:n||(n=e.context.factory.createVoidZero())}N_(o)?function(e,t,n,r,i){const o=SA(n),a=o.length;let s,c;1!==a&&(r=pz(e,r,!T_(t)||0!==a,i));for(let t=0;t=1)||98304&l.transformFlags||98304&yA(l).transformFlags||rD(t)){s&&(e.emitBindingOrAssignment(e.createObjectBindingOrAssignmentPattern(s),r,i,n),s=void 0);const o=dz(e,r,t);rD(t)&&(c=ie(c,o.argumentExpression)),_z(e,l,o,l)}else s=ie(s,$B(l,e.visitor,C_))}}s&&e.emitBindingOrAssignment(e.createObjectBindingOrAssignmentPattern(s),r,i,n)}(e,t,o,n,r):F_(o)?function(e,t,n,r,i){const o=SA(n),a=o.length;let s,c;e.level<1&&e.downlevelIteration?r=pz(e,nI(e.context.getEmitHelperFactory().createReadHelper(r,a>0&&vA(o[a-1])?void 0:a),i),!1,i):(1!==a&&(e.level<1||0===a)||v(o,fF))&&(r=pz(e,r,!T_(t)||0!==a,i));for(let t=0;t=1)if(65536&n.transformFlags||e.hasTransformedPriorElement&&!uz(n)){e.hasTransformedPriorElement=!0;const t=e.context.factory.createTempVariable(void 0);e.hoistTempVariables&&e.context.hoistVariableDeclaration(t),c=ie(c,[t,n]),s=ie(s,e.createArrayBindingOrAssignmentElement(t))}else s=ie(s,n);else{if(fF(n))continue;if(vA(n)){if(t===a-1){const i=e.context.factory.createArraySliceCall(r,t);_z(e,n,i,n)}}else{const i=e.context.factory.createElementAccessExpression(r,t);_z(e,n,i,n)}}}if(s&&e.emitBindingOrAssignment(e.createArrayBindingOrAssignmentPattern(s),r,i,n),c)for(const[t,n]of c)_z(e,n,t,n)}(e,t,o,n,r):e.emitBindingOrAssignment(o,n,r,t)}function uz(e){const t=yA(e);if(!t||fF(t))return!0;const n=xA(e);if(n&&!Jh(n))return!1;const r=hA(e);return!(r&&!RJ(r))&&(w_(t)?v(SA(t),uz):zN(t))}function dz(e,t,n){const{factory:r}=e.context;if(rD(n)){const r=pz(e,un.checkDefined($B(n.expression,e.visitor,U_)),!1,n);return e.context.factory.createElementAccessExpression(t,r)}if(Lh(n)||SN(n)){const i=r.cloneNode(n);return e.context.factory.createElementAccessExpression(t,i)}{const r=e.context.factory.createIdentifier(mc(n));return e.context.factory.createPropertyAccessExpression(t,r)}}function pz(e,t,n,r){if(zN(t)&&n)return t;{const n=e.context.factory.createTempVariable(void 0);return e.hoistTempVariables?(e.context.hoistVariableDeclaration(n),e.emitExpression(nI(e.context.factory.createAssignment(n,t),r))):e.emitBindingOrAssignment(n,t,r,void 0),n}}function fz(e){return e}function mz(e){var t;if(!uD(e)||1!==e.body.statements.length)return!1;const n=e.body.statements[0];return DF(n)&&nb(n.expression,!0)&&zN(n.expression.left)&&(null==(t=e.emitNode)?void 0:t.classThis)===n.expression.left&&110===n.expression.right.kind}function gz(e){var t;return!!(null==(t=e.emitNode)?void 0:t.classThis)&&$(e.members,mz)}function hz(e,t,n,r){if(gz(t))return t;const i=function(e,t,n=e.createThis()){const r=e.createAssignment(t,n),i=e.createExpressionStatement(r),o=e.createBlock([i],!1),a=e.createClassStaticBlockDeclaration(o);return ZC(a).classThis=t,a}(e,n,r);t.name&&sw(i.body.statements[0],t.name);const o=e.createNodeArray([i,...t.members]);nI(o,t.members);const a=HF(t)?e.updateClassDeclaration(t,t.modifiers,t.name,t.typeParameters,t.heritageClauses,o):e.updateClassExpression(t,t.modifiers,t.name,t.typeParameters,t.heritageClauses,o);return ZC(a).classThis=n,a}function yz(e,t,n){const r=lc(cA(n));return(HF(r)||$F(r))&&!r.name&&wv(r,2048)?e.createStringLiteral("default"):e.createStringLiteralFromNode(t)}function vz(e,t,n){const{factory:r}=e;if(void 0!==n)return{assignedName:r.createStringLiteral(n),name:t};if(Jh(t)||qN(t))return{assignedName:r.createStringLiteralFromNode(t),name:t};if(Jh(t.expression)&&!zN(t.expression))return{assignedName:r.createStringLiteralFromNode(t.expression),name:t};const i=r.getGeneratedNameForNode(t);e.hoistVariableDeclaration(i);const o=e.getEmitHelperFactory().createPropKeyHelper(t.expression),a=r.createAssignment(i,o);return{assignedName:i,name:r.updateComputedPropertyName(t,a)}}function bz(e){var t;if(!uD(e)||1!==e.body.statements.length)return!1;const n=e.body.statements[0];return DF(n)&&xN(n.expression,"___setFunctionName")&&n.expression.arguments.length>=2&&n.expression.arguments[1]===(null==(t=e.emitNode)?void 0:t.assignedName)}function xz(e){var t;return!!(null==(t=e.emitNode)?void 0:t.assignedName)&&$(e.members,bz)}function kz(e){return!!e.name||xz(e)}function Sz(e,t,n,r){if(xz(t))return t;const{factory:i}=e,o=function(e,t,n=e.factory.createThis()){const{factory:r}=e,i=e.getEmitHelperFactory().createSetFunctionNameHelper(n,t),o=r.createExpressionStatement(i),a=r.createBlock([o],!1),s=r.createClassStaticBlockDeclaration(a);return ZC(s).assignedName=t,s}(e,n,r);t.name&&sw(o.body.statements[0],t.name);const a=k(t.members,mz)+1,s=t.members.slice(0,a),c=t.members.slice(a),l=i.createNodeArray([...s,o,...c]);return nI(l,t.members),ZC(t=HF(t)?i.updateClassDeclaration(t,t.modifiers,t.name,t.typeParameters,t.heritageClauses,l):i.updateClassExpression(t,t.modifiers,t.name,t.typeParameters,t.heritageClauses,l)).assignedName=n,t}function Tz(e,t,n,r){if(r&&TN(n)&&hm(n))return t;const{factory:i}=e,o=cA(t),a=pF(o)?nt(Sz(e,o,n),pF):e.getEmitHelperFactory().createSetFunctionNameHelper(o,n);return i.restoreOuterExpressions(t,a)}function Cz(e,t,n,r){switch(t.kind){case 303:return function(e,t,n,r){const{factory:i}=e,{assignedName:o,name:a}=vz(e,t.name,r),s=Tz(e,t.initializer,o,n);return i.updatePropertyAssignment(t,a,s)}(e,t,n,r);case 304:return function(e,t,n,r){const{factory:i}=e,o=void 0!==r?i.createStringLiteral(r):yz(i,t.name,t.objectAssignmentInitializer),a=Tz(e,t.objectAssignmentInitializer,o,n);return i.updateShorthandPropertyAssignment(t,t.name,a)}(e,t,n,r);case 260:return function(e,t,n,r){const{factory:i}=e,o=void 0!==r?i.createStringLiteral(r):yz(i,t.name,t.initializer),a=Tz(e,t.initializer,o,n);return i.updateVariableDeclaration(t,t.name,t.exclamationToken,t.type,a)}(e,t,n,r);case 169:return function(e,t,n,r){const{factory:i}=e,o=void 0!==r?i.createStringLiteral(r):yz(i,t.name,t.initializer),a=Tz(e,t.initializer,o,n);return i.updateParameterDeclaration(t,t.modifiers,t.dotDotDotToken,t.name,t.questionToken,t.type,a)}(e,t,n,r);case 208:return function(e,t,n,r){const{factory:i}=e,o=void 0!==r?i.createStringLiteral(r):yz(i,t.name,t.initializer),a=Tz(e,t.initializer,o,n);return i.updateBindingElement(t,t.dotDotDotToken,t.propertyName,t.name,a)}(e,t,n,r);case 172:return function(e,t,n,r){const{factory:i}=e,{assignedName:o,name:a}=vz(e,t.name,r),s=Tz(e,t.initializer,o,n);return i.updatePropertyDeclaration(t,t.modifiers,a,t.questionToken??t.exclamationToken,t.type,s)}(e,t,n,r);case 226:return function(e,t,n,r){const{factory:i}=e,o=void 0!==r?i.createStringLiteral(r):yz(i,t.left,t.right),a=Tz(e,t.right,o,n);return i.updateBinaryExpression(t,t.left,t.operatorToken,a)}(e,t,n,r);case 277:return function(e,t,n,r){const{factory:i}=e,o=void 0!==r?i.createStringLiteral(r):i.createStringLiteral(t.isExportEquals?"":"default"),a=Tz(e,t.expression,o,n);return i.updateExportAssignment(t,t.modifiers,a)}(e,t,n,r)}}var wz=(e=>(e[e.LiftRestriction=0]="LiftRestriction",e[e.All=1]="All",e))(wz||{});function Nz(e,t,n,r,i,o){const a=$B(t.tag,n,U_);un.assert(a);const s=[void 0],c=[],l=[],_=t.template;if(0===o&&!py(_))return nJ(t,n,e);const{factory:u}=e;if(NN(_))c.push(Dz(u,_)),l.push(Fz(u,_,r));else{c.push(Dz(u,_.head)),l.push(Fz(u,_.head,r));for(const e of _.templateSpans)c.push(Dz(u,e.literal)),l.push(Fz(u,e.literal,r)),s.push(un.checkDefined($B(e.expression,n,U_)))}const d=e.getEmitHelperFactory().createTemplateObjectHelper(u.createArrayLiteralExpression(c),u.createArrayLiteralExpression(l));if(MI(r)){const e=u.createUniqueName("templateObject");i(e),s[0]=u.createLogicalOr(e,u.createAssignment(e,d))}else s[0]=d;return u.createCallExpression(a,void 0,s)}function Dz(e,t){return 26656&t.templateFlags?e.createVoidZero():e.createStringLiteral(t.text)}function Fz(e,t,n){let r=t.rawText;if(void 0===r){un.assertIsDefined(n,"Template literal node is missing 'rawText' and does not have a source file. Possibly bad transform."),r=qd(n,t);const e=15===t.kind||18===t.kind;r=r.substring(1,r.length-(e?1:2))}return r=r.replace(/\r\n?/g,"\n"),nI(e.createStringLiteral(r),t)}var Ez=!1;function Pz(e){const{factory:t,getEmitHelperFactory:n,startLexicalEnvironment:r,resumeLexicalEnvironment:i,endLexicalEnvironment:o,hoistVariableDeclaration:a}=e,s=e.getEmitResolver(),c=e.getCompilerOptions(),l=hk(c),_=yk(c),u=!!c.experimentalDecorators,d=c.emitDecoratorMetadata?Oz(e):void 0,p=e.onEmitNode,f=e.onSubstituteNode;let m,g,h,y,v;e.onEmitNode=function(e,t,n){const r=b,i=m;qE(t)&&(m=t),2&x&&function(e){return 267===lc(e).kind}(t)&&(b|=2),8&x&&function(e){return 266===lc(e).kind}(t)&&(b|=8),p(e,t,n),b=r,m=i},e.onSubstituteNode=function(e,n){return n=f(e,n),1===e?function(e){switch(e.kind){case 80:return function(e){return Ce(e)||e}(e);case 211:case 212:return function(e){return function(e){const n=function(e){if(!xk(c))return HD(e)||KD(e)?s.getConstantValue(e):void 0}(e);if(void 0!==n){kw(e,n);const i="string"==typeof n?t.createStringLiteral(n):n<0?t.createPrefixUnaryExpression(41,t.createNumericLiteral(-n)):t.createNumericLiteral(n);if(!c.removeComments){vw(i,3,` ${r=Kd(lc(e,kx)),r.replace(/\*\//g,"*_/")} `)}return i}var r;return e}(e)}(e)}return e}(n):BE(n)?function(e){if(2&x){const n=e.name,r=Ce(n);if(r){if(e.objectAssignmentInitializer){const i=t.createAssignment(r,e.objectAssignmentInitializer);return nI(t.createPropertyAssignment(n,i),e)}return nI(t.createPropertyAssignment(n,r),e)}}return e}(n):n},e.enableSubstitution(211),e.enableSubstitution(212);let b,x=0;return function(e){return 308===e.kind?function(e){return t.createBundle(e.sourceFiles.map(k))}(e):k(e)};function k(t){if(t.isDeclarationFile)return t;m=t;const n=S(t,R);return Tw(n,e.readEmitHelpers()),m=void 0,n}function S(e,t){const n=y,r=v;!function(e){switch(e.kind){case 307:case 269:case 268:case 241:y=e,v=void 0;break;case 263:case 262:if(wv(e,128))break;e.name?ae(e):un.assert(263===e.kind||wv(e,2048))}}(e);const i=t(e);return y!==n&&(v=r),y=n,i}function T(e){return S(e,C)}function C(e){return 1&e.transformFlags?j(e):e}function w(e){return S(e,D)}function D(n){switch(n.kind){case 272:case 271:case 277:case 278:return function(n){if(function(e){const t=dc(e);if(t===e||pE(e))return!1;if(!t||t.kind!==e.kind)return!0;switch(e.kind){case 272:if(un.assertNode(t,nE),e.importClause!==t.importClause)return!0;if(e.attributes!==t.attributes)return!0;break;case 271:if(un.assertNode(t,tE),e.name!==t.name)return!0;if(e.isTypeOnly!==t.isTypeOnly)return!0;if(e.moduleReference!==t.moduleReference&&(Zl(e.moduleReference)||Zl(t.moduleReference)))return!0;break;case 278:if(un.assertNode(t,fE),e.exportClause!==t.exportClause)return!0;if(e.attributes!==t.attributes)return!0}return!1}(n))return 1&n.transformFlags?nJ(n,T,e):n;switch(n.kind){case 272:return function(e){if(!e.importClause)return e;if(e.importClause.isTypeOnly)return;const n=$B(e.importClause,de,rE);return n?t.updateImportDeclaration(e,void 0,n,e.moduleSpecifier,e.attributes):void 0}(n);case 271:return ge(n);case 277:return function(t){return c.verbatimModuleSyntax||s.isValueAliasDeclaration(t)?nJ(t,T,e):void 0}(n);case 278:return function(e){if(e.isTypeOnly)return;if(!e.exportClause||_E(e.exportClause))return t.updateExportDeclaration(e,e.modifiers,e.isTypeOnly,e.exportClause,e.moduleSpecifier,e.attributes);const n=!!c.verbatimModuleSyntax,r=$B(e.exportClause,(e=>function(e,n){return _E(e)?function(e){return t.updateNamespaceExport(e,un.checkDefined($B(e.name,T,zN)))}(e):function(e,n){const r=HB(e.elements,me,gE);return n||$(r)?t.updateNamedExports(e,r):void 0}(e,n)}(e,n)),Cl);return r?t.updateExportDeclaration(e,void 0,e.isTypeOnly,r,e.moduleSpecifier,e.attributes):void 0}(n);default:un.fail("Unhandled ellided statement")}}(n);default:return C(n)}}function F(e){return S(e,P)}function P(e){if(278!==e.kind&&272!==e.kind&&273!==e.kind&&(271!==e.kind||283!==e.moduleReference.kind))return 1&e.transformFlags||wv(e,32)?j(e):e}function A(n){return r=>S(r,(r=>function(n,r){switch(n.kind){case 176:return function(n){if(X(n))return t.updateConstructorDeclaration(n,void 0,QB(n.parameters,T,e),function(n,r){const a=r&&N(r.parameters,(e=>Ys(e,r)));if(!$(a))return ZB(n,T,e);let s=[];i();const c=t.copyPrologue(n.statements,s,!1,T),l=qJ(n.statements,c),_=B(a,Y);l.length?Q(s,n.statements,c,l,0,_):(se(s,_),se(s,HB(n.statements,T,du,c))),s=t.mergeLexicalEnvironment(s,o());const u=t.createBlock(nI(t.createNodeArray(s),n.statements),!0);return nI(u,n),YC(u,n),u}(n.body,n))}(n);case 172:return function(e,n){const r=33554432&e.flags||wv(e,64);if(r&&(!u||!Ov(e)))return;let i=__(n)?HB(e.modifiers,r?O:T,m_):HB(e.modifiers,I,m_);return i=q(i,e,n),r?t.updatePropertyDeclaration(e,K(i,t.createModifiersFromModifierFlags(128)),un.checkDefined($B(e.name,T,e_)),void 0,void 0,void 0):t.updatePropertyDeclaration(e,i,G(e),void 0,void 0,$B(e.initializer,T,U_))}(n,r);case 177:return te(n,r);case 178:return ne(n,r);case 174:return Z(n,r);case 175:return nJ(n,T,e);case 240:return n;case 181:return;default:return un.failBadSyntaxKind(n)}}(r,n)))}function I(e){return aD(e)?void 0:T(e)}function O(e){return Yl(e)?void 0:T(e)}function L(e){if(!aD(e)&&!(28895&$v(e.kind)||g&&95===e.kind))return e}function j(n){if(du(n)&&wv(n,128))return t.createNotEmittedStatement(n);switch(n.kind){case 95:case 90:return g?void 0:n;case 125:case 123:case 124:case 128:case 164:case 87:case 138:case 148:case 103:case 147:case 188:case 189:case 190:case 191:case 187:case 182:case 168:case 133:case 159:case 136:case 154:case 150:case 146:case 116:case 155:case 185:case 184:case 186:case 183:case 192:case 193:case 194:case 196:case 197:case 198:case 199:case 200:case 201:case 181:case 270:return;case 265:case 264:return t.createNotEmittedStatement(n);case 263:return function(n){const r=function(e){let t=0;$(UJ(e,!0,!0))&&(t|=1);const n=hh(e);return n&&106!==cA(n.expression).kind&&(t|=64),mm(u,e)&&(t|=2),fm(u,e)&&(t|=4),he(e)?t|=8:function(e){return ye(e)&&wv(e,2048)}(e)?t|=32:ve(e)&&(t|=16),t}(n),i=l<=1&&!!(7&r);if(!function(e){return Ov(e)||$(e.typeParameters)||$(e.heritageClauses,M)||$(e.members,M)}(n)&&!mm(u,n)&&!he(n))return t.updateClassDeclaration(n,HB(n.modifiers,L,Yl),n.name,void 0,HB(n.heritageClauses,T,jE),HB(n.members,A(n),l_));i&&e.startLexicalEnvironment();const o=i||8&r;let a=HB(n.modifiers,o?O:T,m_);2&r&&(a=z(a,n));const s=o&&!n.name||4&r||1&r?n.name??t.getGeneratedNameForNode(n):n.name,c=t.updateClassDeclaration(n,a,s,void 0,HB(n.heritageClauses,T,jE),J(n));let _,d=Qd(n);if(1&r&&(d|=64),nw(c,d),i){const r=[c],i=jb(Xa(m.text,n.members.end),20),o=t.getInternalName(n),a=t.createPartiallyEmittedExpression(o);kT(a,i.end),nw(a,3072);const s=t.createReturnStatement(a);xT(s,i.pos),nw(s,3840),r.push(s),Ad(r,e.endLexicalEnvironment());const l=t.createImmediatelyInvokedArrowFunction(r);iw(l,1);const u=t.createVariableDeclaration(t.getLocalName(n,!1,!1),void 0,void 0,l);YC(u,n);const d=t.createVariableStatement(void 0,t.createVariableDeclarationList([u],1));YC(d,n),pw(d,n),sw(d,Ob(n)),_A(d),_=d}else _=c;if(o){if(8&r)return[_,be(n)];if(32&r)return[_,t.createExportDefault(t.getLocalName(n,!1,!0))];if(16&r)return[_,t.createExternalModuleExport(t.getDeclarationName(n,!1,!0))]}return _}(n);case 231:return function(e){let n=HB(e.modifiers,O,m_);return mm(u,e)&&(n=z(n,e)),t.updateClassExpression(e,n,e.name,void 0,HB(e.heritageClauses,T,jE),J(e))}(n);case 298:return function(t){if(119!==t.token)return nJ(t,T,e)}(n);case 233:return function(e){return t.updateExpressionWithTypeArguments(e,un.checkDefined($B(e.expression,T,R_)),void 0)}(n);case 210:return function(e){return t.updateObjectLiteralExpression(e,HB(e.properties,(n=e,e=>S(e,(e=>function(e,t){switch(e.kind){case 303:case 304:case 305:return T(e);case 177:return te(e,t);case 178:return ne(e,t);case 174:return Z(e,t);default:return un.failBadSyntaxKind(e)}}(e,n)))),y_));var n}(n);case 176:case 172:case 174:case 177:case 178:case 175:return un.fail("Class and object literal elements must be visited with their respective visitors");case 262:return function(n){if(!X(n))return t.createNotEmittedStatement(n);const r=t.updateFunctionDeclaration(n,HB(n.modifiers,L,Yl),n.asteriskToken,n.name,void 0,QB(n.parameters,T,e),void 0,ZB(n.body,T,e)||t.createBlock([]));if(he(n)){const e=[r];return function(e,t){e.push(be(t))}(e,n),e}return r}(n);case 218:return function(n){if(!X(n))return t.createOmittedExpression();return t.updateFunctionExpression(n,HB(n.modifiers,L,Yl),n.asteriskToken,n.name,void 0,QB(n.parameters,T,e),void 0,ZB(n.body,T,e)||t.createBlock([]))}(n);case 219:return function(n){return t.updateArrowFunction(n,HB(n.modifiers,L,Yl),void 0,QB(n.parameters,T,e),void 0,n.equalsGreaterThanToken,ZB(n.body,T,e))}(n);case 169:return function(e){if(sv(e))return;const n=t.updateParameterDeclaration(e,HB(e.modifiers,(e=>aD(e)?T(e):void 0),m_),e.dotDotDotToken,un.checkDefined($B(e.name,T,t_)),void 0,void 0,$B(e.initializer,T,U_));return n!==e&&(pw(n,e),nI(n,Lb(e)),sw(n,Lb(e)),nw(n.name,64)),n}(n);case 217:return function(n){const r=cA(n.expression,-23);if(V_(r)||hF(r)){const e=$B(n.expression,T,U_);return un.assert(e),t.createPartiallyEmittedExpression(e,n)}return nJ(n,T,e)}(n);case 216:case 234:return function(e){const n=$B(e.expression,T,U_);return un.assert(n),t.createPartiallyEmittedExpression(n,e)}(n);case 238:return function(e){const n=$B(e.expression,T,U_);return un.assert(n),t.createPartiallyEmittedExpression(n,e)}(n);case 213:return function(e){return t.updateCallExpression(e,un.checkDefined($B(e.expression,T,U_)),void 0,HB(e.arguments,T,U_))}(n);case 214:return function(e){return t.updateNewExpression(e,un.checkDefined($B(e.expression,T,U_)),void 0,HB(e.arguments,T,U_))}(n);case 215:return function(e){return t.updateTaggedTemplateExpression(e,un.checkDefined($B(e.tag,T,U_)),void 0,un.checkDefined($B(e.template,T,j_)))}(n);case 235:return function(e){const n=$B(e.expression,T,R_);return un.assert(n),t.createPartiallyEmittedExpression(n,e)}(n);case 266:return function(e){if(!function(e){return!Zp(e)||Dk(c)}(e))return t.createNotEmittedStatement(e);const n=[];let i=4;const a=le(n,e);a&&(4===_&&y===m||(i|=1024));const s=Se(e),l=Te(e),u=he(e)?t.getExternalModuleOrNamespaceExportName(h,e,!1,!0):t.getDeclarationName(e,!1,!0);let d=t.createLogicalOr(u,t.createAssignment(u,t.createObjectLiteralExpression()));if(he(e)){const n=t.getLocalName(e,!1,!0);d=t.createAssignment(n,d)}const p=t.createExpressionStatement(t.createCallExpression(t.createFunctionExpression(void 0,void 0,void 0,void 0,[t.createParameterDeclaration(void 0,void 0,s)],void 0,function(e,n){const i=h;h=n;const a=[];r();const s=E(e.members,oe);return Ad(a,o()),se(a,s),h=i,t.createBlock(nI(t.createNodeArray(a),e.members),!0)}(e,l)),void 0,[d]));return YC(p,e),a&&(mw(p,void 0),yw(p,void 0)),nI(p,e),rw(p,i),n.push(p),n}(n);case 243:return function(n){if(he(n)){const e=Yb(n.declarationList);if(0===e.length)return;return nI(t.createExpressionStatement(t.inlineExpressions(E(e,re))),n)}return nJ(n,T,e)}(n);case 260:return function(e){const n=t.updateVariableDeclaration(e,un.checkDefined($B(e.name,T,t_)),void 0,void 0,$B(e.initializer,T,U_));return e.type&&Pw(n.name,e.type),n}(n);case 267:return _e(n);case 271:return ge(n);case 285:return function(e){return t.updateJsxSelfClosingElement(e,un.checkDefined($B(e.tagName,T,mu)),void 0,un.checkDefined($B(e.attributes,T,EE)))}(n);case 286:return function(e){return t.updateJsxOpeningElement(e,un.checkDefined($B(e.tagName,T,mu)),void 0,un.checkDefined($B(e.attributes,T,EE)))}(n);default:return nJ(n,T,e)}}function R(n){const r=Mk(c,"alwaysStrict")&&!(MI(n)&&_>=5)&&!Yp(n);return t.updateSourceFile(n,XB(n.statements,w,e,0,r))}function M(e){return!!(8192&e.transformFlags)}function J(e){const n=HB(e.members,A(e),l_);let r;const i=rv(e),o=i&&N(i.parameters,(e=>Ys(e,i)));if(o)for(const e of o){const n=t.createPropertyDeclaration(void 0,e.name,void 0,void 0,void 0);YC(n,e),r=ie(r,n)}return r?(r=se(r,n),nI(t.createNodeArray(r),e.members)):n}function z(e,n){const r=U(n,n);if($(r)){const n=[];se(n,cn(e,VA)),se(n,N(e,aD)),se(n,r),se(n,N(ln(e,VA),Yl)),e=nI(t.createNodeArray(n),e)}return e}function q(e,n,r){if(__(r)&&gm(u,n,r)){const i=U(n,r);if($(i)){const n=[];se(n,N(e,aD)),se(n,i),se(n,N(e,Yl)),e=nI(t.createNodeArray(n),e)}}return e}function U(e,r){if(u)return Ez?function(e,r){if(d){let i;if(V(e)&&(i=ie(i,t.createPropertyAssignment("type",t.createArrowFunction(void 0,void 0,[],void 0,t.createToken(39),d.serializeTypeOfNode({currentLexicalScope:y,currentNameScope:r},e,r))))),H(e)&&(i=ie(i,t.createPropertyAssignment("paramTypes",t.createArrowFunction(void 0,void 0,[],void 0,t.createToken(39),d.serializeParameterTypesOfNode({currentLexicalScope:y,currentNameScope:r},e,r))))),W(e)&&(i=ie(i,t.createPropertyAssignment("returnType",t.createArrowFunction(void 0,void 0,[],void 0,t.createToken(39),d.serializeReturnTypeOfNode({currentLexicalScope:y,currentNameScope:r},e))))),i){const e=n().createMetadataHelper("design:typeinfo",t.createObjectLiteralExpression(i,!0));return[t.createDecorator(e)]}}}(e,r):function(e,r){if(d){let i;if(V(e)){const o=n().createMetadataHelper("design:type",d.serializeTypeOfNode({currentLexicalScope:y,currentNameScope:r},e,r));i=ie(i,t.createDecorator(o))}if(H(e)){const o=n().createMetadataHelper("design:paramtypes",d.serializeParameterTypesOfNode({currentLexicalScope:y,currentNameScope:r},e,r));i=ie(i,t.createDecorator(o))}if(W(e)){const o=n().createMetadataHelper("design:returntype",d.serializeReturnTypeOfNode({currentLexicalScope:y,currentNameScope:r},e));i=ie(i,t.createDecorator(o))}return i}}(e,r)}function V(e){const t=e.kind;return 174===t||177===t||178===t||172===t}function W(e){return 174===e.kind}function H(e){switch(e.kind){case 263:case 231:return void 0!==rv(e);case 174:case 177:case 178:return!0}return!1}function G(e){const n=e.name;if(u&&rD(n)&&Ov(e)){const e=$B(n.expression,T,U_);if(un.assert(e),!RJ(kl(e))){const r=t.getGeneratedNameForNode(n);return a(r),t.updateComputedPropertyName(n,t.createAssignment(r,e))}}return un.checkDefined($B(n,T,e_))}function X(e){return!Cd(e.body)}function Q(e,n,r,i,o,a){const s=i[o],c=n[s];if(se(e,HB(n,T,du,r,s-r)),qF(c)){const n=[];Q(n,c.tryBlock.statements,0,i,o+1,a),nI(t.createNodeArray(n),c.tryBlock.statements),e.push(t.updateTryStatement(c,t.updateBlock(c.tryBlock,n),$B(c.catchClause,T,RE),$B(c.finallyBlock,T,CF)))}else se(e,HB(n,T,du,s,1)),se(e,a);se(e,HB(n,T,du,s+1))}function Y(e){const n=e.name;if(!zN(n))return;const r=wT(nI(t.cloneNode(n),n),n.parent);nw(r,3168);const i=wT(nI(t.cloneNode(n),n),n.parent);return nw(i,3072),_A(tw(nI(YC(t.createExpressionStatement(t.createAssignment(nI(t.createPropertyAccessExpression(t.createThis(),r),e.name),i)),e),Ib(e,-1))))}function Z(n,r){if(!(1&n.transformFlags))return n;if(!X(n))return;let i=__(r)?HB(n.modifiers,T,m_):HB(n.modifiers,I,m_);return i=q(i,n,r),t.updateMethodDeclaration(n,i,n.asteriskToken,G(n),void 0,void 0,QB(n.parameters,T,e),void 0,ZB(n.body,T,e))}function ee(e){return!(Cd(e.body)&&wv(e,64))}function te(n,r){if(!(1&n.transformFlags))return n;if(!ee(n))return;let i=__(r)?HB(n.modifiers,T,m_):HB(n.modifiers,I,m_);return i=q(i,n,r),t.updateGetAccessorDeclaration(n,i,G(n),QB(n.parameters,T,e),void 0,ZB(n.body,T,e)||t.createBlock([]))}function ne(n,r){if(!(1&n.transformFlags))return n;if(!ee(n))return;let i=__(r)?HB(n.modifiers,T,m_):HB(n.modifiers,I,m_);return i=q(i,n,r),t.updateSetAccessorDeclaration(n,i,G(n),QB(n.parameters,T,e),ZB(n.body,T,e)||t.createBlock([]))}function re(n){const r=n.name;return x_(r)?az(n,T,e,0,!1,xe):nI(t.createAssignment(ke(r),un.checkDefined($B(n.initializer,T,U_))),n)}function oe(n){const r=function(e){const n=e.name;return qN(n)?t.createIdentifier(""):rD(n)?n.expression:zN(n)?t.createStringLiteral(mc(n)):t.cloneNode(n)}(n),i=s.getEnumMemberValue(n),o=function(n,r){return void 0!==r?"string"==typeof r?t.createStringLiteral(r):r<0?t.createPrefixUnaryExpression(41,t.createNumericLiteral(-r)):t.createNumericLiteral(r):(8&x||(x|=8,e.enableSubstitution(80)),n.initializer?un.checkDefined($B(n.initializer,T,U_)):t.createVoidZero())}(n,null==i?void 0:i.value),a=t.createAssignment(t.createElementAccessExpression(h,r),o),c="string"==typeof(null==i?void 0:i.value)||(null==i?void 0:i.isSyntacticallyString)?a:t.createAssignment(t.createElementAccessExpression(h,a),r);return nI(t.createExpressionStatement(nI(c,n)),n)}function ae(e){v||(v=new Map);const t=ce(e);v.has(t)||v.set(t,e)}function ce(e){return un.assertNode(e.name,zN),e.name.escapedText}function le(e,n){const r=t.createVariableDeclaration(t.getLocalName(n,!1,!0)),i=307===y.kind?0:1,o=t.createVariableStatement(HB(n.modifiers,L,Yl),t.createVariableDeclarationList([r],i));return YC(r,n),mw(r,void 0),yw(r,void 0),YC(o,n),ae(n),!!function(e){if(v){const t=ce(e);return v.get(t)===e}return!0}(n)&&(266===n.kind?sw(o.declarationList,n):sw(o,n),pw(o,n),rw(o,2048),e.push(o),!0)}function _e(n){if(!function(e){const t=dc(e,QF);return!t||MB(t,Dk(c))}(n))return t.createNotEmittedStatement(n);un.assertNode(n.name,zN,"A TypeScript namespace should have an Identifier name."),2&x||(x|=2,e.enableSubstitution(80),e.enableSubstitution(304),e.enableEmitNotification(267));const i=[];let a=4;const s=le(i,n);s&&(4===_&&y===m||(a|=1024));const l=Se(n),u=Te(n),d=he(n)?t.getExternalModuleOrNamespaceExportName(h,n,!1,!0):t.getDeclarationName(n,!1,!0);let p=t.createLogicalOr(d,t.createAssignment(d,t.createObjectLiteralExpression()));if(he(n)){const e=t.getLocalName(n,!1,!0);p=t.createAssignment(e,p)}const f=t.createExpressionStatement(t.createCallExpression(t.createFunctionExpression(void 0,void 0,void 0,void 0,[t.createParameterDeclaration(void 0,void 0,l)],void 0,function(e,n){const i=h,a=g,s=v;h=n,g=e,v=void 0;const c=[];let l,_;if(r(),e.body)if(268===e.body.kind)S(e.body,(e=>se(c,HB(e.statements,F,du)))),l=e.body.statements,_=e.body;else{const t=_e(e.body);t&&(Qe(t)?se(c,t):c.push(t)),l=Ib(ue(e).body.statements,-1)}Ad(c,o()),h=i,g=a,v=s;const u=t.createBlock(nI(t.createNodeArray(c),l),!0);return nI(u,_),e.body&&268===e.body.kind||nw(u,3072|Qd(u)),u}(n,u)),void 0,[p]));return YC(f,n),s&&(mw(f,void 0),yw(f,void 0)),nI(f,n),rw(f,a),i.push(f),i}function ue(e){if(267===e.body.kind)return ue(e.body)||e.body}function de(e){un.assert(!e.isTypeOnly);const n=we(e)?e.name:void 0,r=$B(e.namedBindings,pe,ru);return n||r?t.updateImportClause(e,!1,n,r):void 0}function pe(e){if(274===e.kind)return we(e)?e:void 0;{const n=c.verbatimModuleSyntax,r=HB(e.elements,fe,dE);return n||$(r)?t.updateNamedImports(e,r):void 0}}function fe(e){return!e.isTypeOnly&&we(e)?e:void 0}function me(e){return e.isTypeOnly||!c.verbatimModuleSyntax&&!s.isValueAliasDeclaration(e)?void 0:e}function ge(n){if(n.isTypeOnly)return;if(Sm(n)){if(!we(n))return;return nJ(n,T,e)}if(!function(e){return we(e)||!MI(m)&&s.isTopLevelValueImportEqualsWithEntityName(e)}(n))return;const r=HP(t,n.moduleReference);return nw(r,7168),ve(n)||!he(n)?YC(nI(t.createVariableStatement(HB(n.modifiers,L,Yl),t.createVariableDeclarationList([YC(t.createVariableDeclaration(n.name,void 0,void 0,r),n)])),n),n):YC((i=n.name,o=r,a=n,nI(t.createExpressionStatement(t.createAssignment(t.getNamespaceMemberName(h,i,!1,!0),o)),a)),n);var i,o,a}function he(e){return void 0!==g&&wv(e,32)}function ye(e){return void 0===g&&wv(e,32)}function ve(e){return ye(e)&&!wv(e,2048)}function be(e){const n=t.createAssignment(t.getExternalModuleOrNamespaceExportName(h,e,!1,!0),t.getLocalName(e));sw(n,Pb(e.name?e.name.pos:e.pos,e.end));const r=t.createExpressionStatement(n);return sw(r,Pb(-1,e.end)),r}function xe(e,n,r){return nI(t.createAssignment(ke(e),n),r)}function ke(e){return t.getNamespaceMemberName(h,e,!1,!0)}function Se(e){const n=t.getGeneratedNameForNode(e);return sw(n,e.name),n}function Te(e){return t.getGeneratedNameForNode(e)}function Ce(e){if(x&b&&!Vl(e)&&!YP(e)){const n=s.getReferencedExportContainer(e,!1);if(n&&307!==n.kind&&(2&b&&267===n.kind||8&b&&266===n.kind))return nI(t.createPropertyAccessExpression(t.getGeneratedNameForNode(n),e),e)}}function we(e){return c.verbatimModuleSyntax||Fm(e)||s.isReferencedAliasDeclaration(e)}}function Az(e){const{factory:t,getEmitHelperFactory:n,hoistVariableDeclaration:r,endLexicalEnvironment:i,startLexicalEnvironment:o,resumeLexicalEnvironment:a,addBlockScopedVariable:s}=e,c=e.getEmitResolver(),l=e.getCompilerOptions(),_=hk(l),u=Ak(l),d=!!l.experimentalDecorators,p=!u,f=u&&_<9,m=p||f,g=_<9,h=_<99?-1:u?0:3,y=_<9,v=y&&_>=2,x=m||g||-1===h,k=e.onSubstituteNode;e.onSubstituteNode=function(e,n){return n=k(e,n),1===e?function(e){switch(e.kind){case 80:return function(e){return function(e){if(1&P&&c.hasNodeCheckFlag(e,536870912)){const n=c.getReferencedValueDeclaration(e);if(n){const r=T[n.id];if(r){const n=t.cloneNode(r);return sw(n,e),pw(n,e),n}}}}(e)||e}(e);case 110:return function(e){if(2&P&&(null==D?void 0:D.data)&&!I.has(e)){const{facts:n,classConstructor:r,classThis:i}=D.data,o=j?i??r:r;if(o)return nI(YC(t.cloneNode(o),e),e);if(1&n&&d)return t.createParenthesizedExpression(t.createVoidZero())}return e}(e)}return e}(n):n};const S=e.onEmitNode;e.onEmitNode=function(e,t,n){const r=lc(t),i=A.get(r);if(i){const o=D,a=R;return D=i,R=j,j=!(uD(r)&&32&Yd(r)),S(e,t,n),j=R,R=a,void(D=o)}switch(t.kind){case 218:if(tF(r)||524288&Qd(t))break;case 262:case 176:case 177:case 178:case 174:case 172:{const r=D,i=R;return D=void 0,R=j,j=!1,S(e,t,n),j=R,R=i,void(D=r)}case 167:{const r=D,i=j;return D=null==D?void 0:D.previous,j=R,S(e,t,n),j=i,void(D=r)}}S(e,t,n)};let T,C,w,D,F=!1,P=0;const A=new Map,I=new Set;let O,L,j=!1,R=!1;return NJ(e,(function(t){if(t.isDeclarationFile)return t;if(D=void 0,F=!!(32&Yd(t)),!x&&!F)return t;const n=nJ(t,B,e);return Tw(n,e.readEmitHelpers()),n}));function M(e){return 129===e.kind?ee()?void 0:e:tt(e,Yl)}function B(n){if(!(16777216&n.transformFlags||134234112&n.transformFlags))return n;switch(n.kind){case 263:return function(e){return ge(e,he)}(n);case 231:return function(e){return ge(e,ye)}(n);case 175:case 172:return un.fail("Use `classElementVisitor` instead.");case 303:case 260:case 169:case 208:return function(t){return Kh(t,ue)&&(t=Cz(e,t)),nJ(t,B,e)}(n);case 243:return function(t){const n=w;w=[];const r=nJ(t,B,e),i=$(w)?[r,...w]:r;return w=n,i}(n);case 277:return function(t){return Kh(t,ue)&&(t=Cz(e,t,!0,t.isExportEquals?"":"default")),nJ(t,B,e)}(n);case 81:return function(e){return g?du(e.parent)?e:YC(t.createIdentifier(""),e):e}(n);case 211:return function(n){if(qN(n.name)){const e=je(n.name);if(e)return nI(YC(oe(e,n.expression),n),n)}if(v&&L&&om(n)&&zN(n.name)&&Iz(L)&&(null==D?void 0:D.data)){const{classConstructor:e,superClassReference:r,facts:i}=D.data;if(1&i)return Ne(n);if(e&&r){const i=t.createReflectGetCall(r,t.createStringLiteralFromNode(n.name),e);return YC(i,n.expression),nI(i,n.expression),i}}return nJ(n,B,e)}(n);case 212:return function(n){if(v&&L&&om(n)&&Iz(L)&&(null==D?void 0:D.data)){const{classConstructor:e,superClassReference:r,facts:i}=D.data;if(1&i)return Ne(n);if(e&&r){const i=t.createReflectGetCall(r,$B(n.argumentExpression,B,U_),e);return YC(i,n.expression),nI(i,n.expression),i}}return nJ(n,B,e)}(n);case 224:case 225:return ce(n,!1);case 226:return de(n,!1);case 217:return pe(n,!1);case 213:return function(n){var i;if(Kl(n.expression)&&je(n.expression.name)){const{thisArg:e,target:i}=t.createCallBinding(n.expression,r,_);return ml(n)?t.updateCallChain(n,t.createPropertyAccessChain($B(i,B,U_),n.questionDotToken,"call"),void 0,void 0,[$B(e,B,U_),...HB(n.arguments,B,U_)]):t.updateCallExpression(n,t.createPropertyAccessExpression($B(i,B,U_),"call"),void 0,[$B(e,B,U_),...HB(n.arguments,B,U_)])}if(v&&L&&om(n.expression)&&Iz(L)&&(null==(i=null==D?void 0:D.data)?void 0:i.classConstructor)){const e=t.createFunctionCallCall($B(n.expression,B,U_),D.data.classConstructor,HB(n.arguments,B,U_));return YC(e,n),nI(e,n),e}return nJ(n,B,e)}(n);case 244:return function(e){return t.updateExpressionStatement(e,$B(e.expression,z,U_))}(n);case 215:return function(n){var i;if(Kl(n.tag)&&je(n.tag.name)){const{thisArg:e,target:i}=t.createCallBinding(n.tag,r,_);return t.updateTaggedTemplateExpression(n,t.createCallExpression(t.createPropertyAccessExpression($B(i,B,U_),"bind"),void 0,[$B(e,B,U_)]),void 0,$B(n.template,B,j_))}if(v&&L&&om(n.tag)&&Iz(L)&&(null==(i=null==D?void 0:D.data)?void 0:i.classConstructor)){const e=t.createFunctionBindCall($B(n.tag,B,U_),D.data.classConstructor,[]);return YC(e,n),nI(e,n),t.updateTaggedTemplateExpression(n,e,void 0,$B(n.template,B,j_))}return nJ(n,B,e)}(n);case 248:return function(n){return t.updateForStatement(n,$B(n.initializer,z,Z_),$B(n.condition,B,U_),$B(n.incrementor,z,U_),eJ(n.statement,B,e))}(n);case 110:return function(e){if(y&&L&&uD(L)&&(null==D?void 0:D.data)){const{classThis:t,classConstructor:n}=D.data;return t??n??e}return e}(n);case 262:case 218:return Y(void 0,J,n);case 176:case 174:case 177:case 178:return Y(n,J,n);default:return J(n)}}function J(t){return nJ(t,B,e)}function z(e){switch(e.kind){case 224:case 225:return ce(e,!0);case 226:return de(e,!0);case 356:return function(e){const n=tJ(e.elements,z);return t.updateCommaListExpression(e,n)}(e);case 217:return pe(e,!0);default:return B(e)}}function q(n){switch(n.kind){case 298:return nJ(n,q,e);case 233:return function(n){var i;if(4&((null==(i=null==D?void 0:D.data)?void 0:i.facts)||0)){const e=t.createTempVariable(r,!0);return De().superClassReference=e,t.updateExpressionWithTypeArguments(n,t.createAssignment(e,$B(n.expression,B,U_)),void 0)}return nJ(n,B,e)}(n);default:return B(n)}}function U(e){switch(e.kind){case 210:case 209:return ze(e);default:return B(e)}}function V(e){switch(e.kind){case 176:return Y(e,G,e);case 177:case 178:case 174:return Y(e,Q,e);case 172:return Y(e,te,e);case 175:return Y(e,ve,e);case 167:return K(e);case 240:return e;default:return m_(e)?M(e):B(e)}}function W(e){return 167===e.kind?K(e):B(e)}function H(e){switch(e.kind){case 172:return Z(e);case 177:case 178:return V(e);default:un.assertMissingNode(e,"Expected node to either be a PropertyDeclaration, GetAccessorDeclaration, or SetAccessorDeclaration")}}function K(e){const n=$B(e.expression,B,U_);return t.updateComputedPropertyName(e,function(e){return $(C)&&(ZD(e)?(C.push(e.expression),e=t.updateParenthesizedExpression(e,t.inlineExpressions(C))):(C.push(e),e=t.inlineExpressions(C)),C=void 0),e}(n))}function G(e){return O?xe(e,O):J(e)}function X(e){return!!g||!!(Dv(e)&&32&Yd(e))}function Q(n){if(un.assert(!Ov(n)),!Hl(n)||!X(n))return nJ(n,V,e);const r=je(n.name);if(un.assert(r,"Undeclared private name for property declaration."),!r.isValid)return n;const i=function(e){un.assert(qN(e.name));const t=je(e.name);if(un.assert(t,"Undeclared private name for property declaration."),"m"===t.kind)return t.methodName;if("a"===t.kind){if(wu(e))return t.getterName;if(Cu(e))return t.setterName}}(n);i&&Ee().push(t.createAssignment(i,t.createFunctionExpression(N(n.modifiers,(e=>Yl(e)&&!GN(e)&&!YN(e))),n.asteriskToken,i,void 0,QB(n.parameters,B,e),void 0,ZB(n.body,B,e))))}function Y(e,t,n){if(e!==L){const r=L;L=e;const i=t(n);return L=r,i}return t(n)}function Z(n){return un.assert(!Ov(n),"Decorators should already have been transformed and elided."),Hl(n)?function(n){if(!X(n))return p&&!Nv(n)&&(null==D?void 0:D.data)&&16&D.data.facts?t.updatePropertyDeclaration(n,HB(n.modifiers,B,m_),n.name,void 0,void 0,void 0):(Kh(n,ue)&&(n=Cz(e,n)),t.updatePropertyDeclaration(n,HB(n.modifiers,M,Yl),$B(n.name,W,e_),void 0,void 0,$B(n.initializer,B,U_)));{const e=je(n.name);if(un.assert(e,"Undeclared private name for property declaration."),!e.isValid)return n;if(e.isStatic&&!g){const e=Te(n,t.createThis());if(e)return t.createClassStaticBlockDeclaration(t.createBlock([e],!0))}}}(n):function(e){if(!m||d_(e))return t.updatePropertyDeclaration(e,HB(e.modifiers,M,Yl),$B(e.name,W,e_),void 0,void 0,$B(e.initializer,B,U_));{const n=function(e,n){if(rD(e)){const i=YA(e),o=$B(e.expression,B,U_),a=kl(o),l=RJ(a);if(!(i||nb(a)&&Vl(a.left))&&!l&&n){const n=t.getGeneratedNameForNode(e);return c.hasNodeCheckFlag(e,32768)?s(n):r(n),t.createAssignment(n,o)}return l||zN(a)?void 0:o}}(e.name,!!e.initializer||u);if(n&&Ee().push(...eI(n)),Nv(e)&&!g){const n=Te(e,t.createThis());if(n){const r=t.createClassStaticBlockDeclaration(t.createBlock([n]));return YC(r,e),pw(r,e),pw(n,{pos:-1,end:-1}),mw(n,void 0),yw(n,void 0),r}}}}(n)}function ee(){return-1===h||3===h&&!!(null==D?void 0:D.data)&&!!(16&D.data.facts)}function te(e){return d_(e)&&(ee()||Dv(e)&&32&Yd(e))?function(e){const n=dw(e),i=aw(e),o=e.name;let a=o,s=o;if(rD(o)&&!RJ(o.expression)){const e=YA(o);if(e)a=t.updateComputedPropertyName(o,$B(o.expression,B,U_)),s=t.updateComputedPropertyName(o,e.left);else{const e=t.createTempVariable(r);sw(e,o.expression);const n=$B(o.expression,B,U_),i=t.createAssignment(e,n);sw(i,o.expression),a=t.updateComputedPropertyName(o,i),s=t.updateComputedPropertyName(o,e)}}const c=HB(e.modifiers,M,Yl),l=GA(t,e,c,e.initializer);YC(l,e),nw(l,3072),sw(l,i);const _=Nv(e)?function(){const e=De();return e.classThis??e.classConstructor??(null==O?void 0:O.name)}()??t.createThis():t.createThis(),u=XA(t,e,c,a,_);YC(u,e),pw(u,n),sw(u,i);const d=t.createModifiersFromModifierFlags(Wv(c)),p=QA(t,e,d,s,_);return YC(p,e),nw(p,3072),sw(p,i),KB([l,u,p],H,l_)}(e):Z(e)}function re(e){if(L&&Dv(L)&&u_(L)&&d_(lc(L))){const t=cA(e);110===t.kind&&I.add(t)}}function oe(e,t){return re(t=$B(t,B,U_)),ae(e,t)}function ae(e,t){switch(pw(t,Ib(t,-1)),e.kind){case"a":return n().createClassPrivateFieldGetHelper(t,e.brandCheckIdentifier,e.kind,e.getterName);case"m":return n().createClassPrivateFieldGetHelper(t,e.brandCheckIdentifier,e.kind,e.methodName);case"f":return n().createClassPrivateFieldGetHelper(t,e.brandCheckIdentifier,e.kind,e.isStatic?e.variableName:void 0);case"untransformed":return un.fail("Access helpers should not be created for untransformed private elements");default:un.assertNever(e,"Unknown private element type")}}function ce(n,i){if(46===n.operator||47===n.operator){const e=oh(n.operand);if(Kl(e)){let o;if(o=je(e.name)){const a=$B(e.expression,B,U_);re(a);const{readExpression:s,initializeExpression:c}=le(a);let l=oe(o,s);const _=aF(n)||i?void 0:t.createTempVariable(r);return l=XP(t,n,l,r,_),l=fe(o,c||s,l,64),YC(l,n),nI(l,n),_&&(l=t.createComma(l,_),nI(l,n)),l}}else if(v&&L&&om(e)&&Iz(L)&&(null==D?void 0:D.data)){const{classConstructor:o,superClassReference:a,facts:s}=D.data;if(1&s){const r=Ne(e);return aF(n)?t.updatePrefixUnaryExpression(n,r):t.updatePostfixUnaryExpression(n,r)}if(o&&a){let s,c;if(HD(e)?zN(e.name)&&(c=s=t.createStringLiteralFromNode(e.name)):RJ(e.argumentExpression)?c=s=e.argumentExpression:(c=t.createTempVariable(r),s=t.createAssignment(c,$B(e.argumentExpression,B,U_))),s&&c){let l=t.createReflectGetCall(a,c,o);nI(l,e);const _=i?void 0:t.createTempVariable(r);return l=XP(t,n,l,r,_),l=t.createReflectSetCall(a,s,l,o),YC(l,n),nI(l,n),_&&(l=t.createComma(l,_),nI(l,n)),l}}}}return nJ(n,B,e)}function le(e){const n=Zh(e)?e:t.cloneNode(e);if(110===e.kind&&I.has(e)&&I.add(n),RJ(e))return{readExpression:n,initializeExpression:void 0};const i=t.createTempVariable(r);return{readExpression:i,initializeExpression:t.createAssignment(i,n)}}function _e(e){if(D&&A.set(lc(e),D),g){if(mz(e)){const t=$B(e.body.statements[0].expression,B,U_);if(nb(t,!0)&&t.left===t.right)return;return t}if(bz(e))return $B(e.body.statements[0].expression,B,U_);o();let n=Y(e,(e=>HB(e,B,du)),e.body.statements);n=t.mergeLexicalEnvironment(n,i());const r=t.createImmediatelyInvokedArrowFunction(n);return YC(oh(r.expression),e),rw(oh(r.expression),4),YC(r,e),nI(r,e),r}}function ue(e){if(pF(e)&&!e.name){const t=WJ(e);return!$(t,bz)&&((g||!!Yd(e))&&$(t,(e=>uD(e)||Hl(e)||m&&$J(e))))}return!1}function de(i,o){if(rb(i)){const e=C;C=void 0,i=t.updateBinaryExpression(i,$B(i.left,U,U_),i.operatorToken,$B(i.right,B,U_));const n=$(C)?t.inlineExpressions(ne([...C,i])):i;return C=e,n}if(nb(i)){Kh(i,ue)&&(i=Cz(e,i),un.assertNode(i,nb));const n=cA(i.left,9);if(Kl(n)){const e=je(n.name);if(e)return nI(YC(fe(e,n.expression,i.right,i.operatorToken.kind),i),i)}else if(v&&L&&om(i.left)&&Iz(L)&&(null==D?void 0:D.data)){const{classConstructor:e,superClassReference:n,facts:a}=D.data;if(1&a)return t.updateBinaryExpression(i,Ne(i.left),i.operatorToken,$B(i.right,B,U_));if(e&&n){let a=KD(i.left)?$B(i.left.argumentExpression,B,U_):zN(i.left.name)?t.createStringLiteralFromNode(i.left.name):void 0;if(a){let s=$B(i.right,B,U_);if(MJ(i.operatorToken.kind)){let o=a;RJ(a)||(o=t.createTempVariable(r),a=t.createAssignment(o,a));const c=t.createReflectGetCall(n,o,e);YC(c,i.left),nI(c,i.left),s=t.createBinaryExpression(c,BJ(i.operatorToken.kind),s),nI(s,i)}const c=o?void 0:t.createTempVariable(r);return c&&(s=t.createAssignment(c,s),nI(c,i)),s=t.createReflectSetCall(n,a,s,e),YC(s,i),nI(s,i),c&&(s=t.createComma(s,c),nI(s,i)),s}}}}return function(e){return qN(e.left)&&103===e.operatorToken.kind}(i)?function(t){const r=je(t.left);if(r){const e=$B(t.right,B,U_);return YC(n().createClassPrivateFieldInHelper(r.brandCheckIdentifier,e),t)}return nJ(t,B,e)}(i):nJ(i,B,e)}function pe(e,n){const r=n?z:B,i=$B(e.expression,r,U_);return t.updateParenthesizedExpression(e,i)}function fe(e,r,i,o){if(r=$B(r,B,U_),i=$B(i,B,U_),re(r),MJ(o)){const{readExpression:n,initializeExpression:a}=le(r);r=a||n,i=t.createBinaryExpression(ae(e,n),BJ(o),i)}switch(pw(r,Ib(r,-1)),e.kind){case"a":return n().createClassPrivateFieldSetHelper(r,e.brandCheckIdentifier,i,e.kind,e.setterName);case"m":return n().createClassPrivateFieldSetHelper(r,e.brandCheckIdentifier,i,e.kind,void 0);case"f":return n().createClassPrivateFieldSetHelper(r,e.brandCheckIdentifier,i,e.kind,e.isStatic?e.variableName:void 0);case"untransformed":return un.fail("Access helpers should not be created for untransformed private elements");default:un.assertNever(e,"Unknown private element type")}}function me(e){return N(e.members,HJ)}function ge(n,r){var i;const o=O,a=C,s=D;O=n,C=void 0,D={previous:D,data:void 0};const l=32&Yd(n);if(g||l){const e=Tc(n);if(e&&zN(e))Fe().data.className=e;else if((null==(i=n.emitNode)?void 0:i.assignedName)&&TN(n.emitNode.assignedName))if(n.emitNode.assignedName.textSourceNode&&zN(n.emitNode.assignedName.textSourceNode))Fe().data.className=n.emitNode.assignedName.textSourceNode;else if(fs(n.emitNode.assignedName.text,_)){const e=t.createIdentifier(n.emitNode.assignedName.text);Fe().data.className=e}}if(g){const e=me(n);$(e)&&(Fe().data.weakSetName=Oe("instances",e[0].name))}const u=function(e){var t;let n=0;const r=lc(e);__(r)&&mm(d,r)&&(n|=1),g&&(gz(e)||xz(e))&&(n|=2);let i=!1,o=!1,a=!1,s=!1;for(const r of e.members)Nv(r)?(r.name&&(qN(r.name)||d_(r))&&g?n|=2:!d_(r)||-1!==h||e.name||(null==(t=e.emitNode)?void 0:t.classThis)||(n|=2),(cD(r)||uD(r))&&(y&&16384&r.transformFlags&&(n|=8,1&n||(n|=2)),v&&134217728&r.transformFlags&&(1&n||(n|=6)))):Ev(lc(r))||(d_(r)?(s=!0,a||(a=Hl(r))):Hl(r)?(a=!0,c.hasNodeCheckFlag(r,262144)&&(n|=2)):cD(r)&&(i=!0,o||(o=!!r.initializer)));return(f&&i||p&&o||g&&a||g&&s&&-1===h)&&(n|=16),n}(n);u&&(De().facts=u),8&u&&(2&P||(P|=2,e.enableSubstitution(110),e.enableEmitNotification(262),e.enableEmitNotification(218),e.enableEmitNotification(176),e.enableEmitNotification(177),e.enableEmitNotification(178),e.enableEmitNotification(174),e.enableEmitNotification(172),e.enableEmitNotification(167)));const m=r(n,u);return D=null==D?void 0:D.previous,un.assert(D===s),O=o,C=a,m}function he(e,n){var i,o;let a;if(2&n)if(g&&(null==(i=e.emitNode)?void 0:i.classThis))De().classConstructor=e.emitNode.classThis,a=t.createAssignment(e.emitNode.classThis,t.getInternalName(e));else{const n=t.createTempVariable(r,!0);De().classConstructor=t.cloneNode(n),a=t.createAssignment(n,t.getInternalName(e))}(null==(o=e.emitNode)?void 0:o.classThis)&&(De().classThis=e.emitNode.classThis);const s=c.hasNodeCheckFlag(e,262144),l=wv(e,32),_=wv(e,2048);let u=HB(e.modifiers,M,Yl);const d=HB(e.heritageClauses,q,jE),{members:f,prologue:m}=be(e),h=[];if(a&&Ee().unshift(a),$(C)&&h.push(t.createExpressionStatement(t.inlineExpressions(C))),p||g||32&Yd(e)){const n=WJ(e);$(n)&&Se(h,n,t.getInternalName(e))}h.length>0&&l&&_&&(u=HB(u,(e=>VA(e)?void 0:e),Yl),h.push(t.createExportAssignment(void 0,!1,t.getLocalName(e,!1,!0))));const y=De().classConstructor;s&&y&&(we(),T[TJ(e)]=y);const v=t.updateClassDeclaration(e,u,e.name,void 0,d,f);return h.unshift(v),m&&h.unshift(t.createExpressionStatement(m)),h}function ye(e,n){var i,o,a;const l=!!(1&n),_=WJ(e),u=c.hasNodeCheckFlag(e,262144),d=c.hasNodeCheckFlag(e,32768);let p;function f(){var n;if(g&&(null==(n=e.emitNode)?void 0:n.classThis))return De().classConstructor=e.emitNode.classThis;const i=t.createTempVariable(d?s:r,!0);return De().classConstructor=t.cloneNode(i),i}(null==(i=e.emitNode)?void 0:i.classThis)&&(De().classThis=e.emitNode.classThis),2&n&&(p??(p=f()));const h=HB(e.modifiers,M,Yl),y=HB(e.heritageClauses,q,jE),{members:v,prologue:b}=be(e),x=t.updateClassExpression(e,h,e.name,void 0,y,v),k=[];if(b&&k.push(b),(g||32&Yd(e))&&$(_,(e=>uD(e)||Hl(e)||m&&$J(e)))||$(C))if(l)un.assertIsDefined(w,"Decorated classes transformed by TypeScript are expected to be within a variable declaration."),$(C)&&se(w,E(C,t.createExpressionStatement)),$(_)&&Se(w,_,(null==(o=e.emitNode)?void 0:o.classThis)??t.getInternalName(e)),p?k.push(t.createAssignment(p,x)):g&&(null==(a=e.emitNode)?void 0:a.classThis)?k.push(t.createAssignment(e.emitNode.classThis,x)):k.push(x);else{if(p??(p=f()),u){we();const n=t.cloneNode(p);n.emitNode.autoGenerate.flags&=-9,T[TJ(e)]=n}k.push(t.createAssignment(p,x)),se(k,C),se(k,function(e,t){const n=[];for(const r of e){const e=uD(r)?Y(r,_e,r):Y(r,(()=>Ce(r,t)),void 0);e&&(_A(e),YC(e,r),rw(e,3072&Qd(r)),sw(e,Lb(r)),pw(e,r),n.push(e))}return n}(_,p)),k.push(t.cloneNode(p))}else k.push(x);return k.length>1&&(rw(x,131072),k.forEach(_A)),t.inlineExpressions(k)}function ve(t){if(!g)return nJ(t,B,e)}function be(e){const n=!!(32&Yd(e));if(g||F){for(const t of e.members)Hl(t)&&(X(t)?Ie(t,t.name,Pe):ez(Fe(),t.name,{kind:"untransformed"}));if(g&&$(me(e))&&function(){const{weakSetName:e}=Fe().data;un.assert(e,"weakSetName should be set in private identifier environment"),Ee().push(t.createAssignment(e,t.createNewExpression(t.createIdentifier("WeakSet"),void 0,[])))}(),ee())for(const r of e.members)if(d_(r)){const e=t.getGeneratedPrivateNameForNode(r.name,void 0,"_accessor_storage");g||n&&Dv(r)?Ie(r,e,Ae):ez(Fe(),e,{kind:"untransformed"})}}let i,o,a,s=HB(e.members,V,l_);if($(s,dD)||(i=xe(void 0,e)),!g&&$(C)){let e=t.createExpressionStatement(t.inlineExpressions(C));if(134234112&e.transformFlags){const n=t.createTempVariable(r),i=t.createArrowFunction(void 0,void 0,[],void 0,void 0,t.createBlock([e]));o=t.createAssignment(n,i),e=t.createExpressionStatement(t.createCallExpression(n,void 0,[]))}const n=t.createBlock([e]);a=t.createClassStaticBlockDeclaration(n),C=void 0}if(i||a){let n;const r=b(s,mz),o=b(s,bz);n=ie(n,r),n=ie(n,o),n=ie(n,i),n=ie(n,a),n=se(n,r||o?N(s,(e=>e!==r&&e!==o)):s),s=nI(t.createNodeArray(n),e.members)}return{members:s,prologue:o}}function xe(n,r){if(n=$B(n,B,dD),!((null==D?void 0:D.data)&&16&D.data.facts))return n;const o=hh(r),s=!(!o||106===cA(o.expression).kind),c=QB(n?n.parameters:void 0,B,e),l=function(n,r,o){var s;const c=UJ(n,!1,!1);let l=c;u||(l=N(l,(e=>!!e.initializer||qN(e.name)||Av(e))));const _=me(n),d=$(l)||$(_);if(!r&&!d)return ZB(void 0,B,e);a();const p=!r&&o;let f=0,m=[];const h=[],y=t.createThis();if(function(e,n,r){if(!g||!$(n))return;const{weakSetName:i}=Fe().data;un.assert(i,"weakSetName should be set in private identifier environment"),e.push(t.createExpressionStatement(function(e,t,n){return e.createCallExpression(e.createPropertyAccessExpression(n,"add"),void 0,[t])}(t,r,i)))}(h,_,y),r){const e=N(c,(e=>Ys(lc(e),r))),t=N(l,(e=>!Ys(lc(e),r)));Se(h,e,y),Se(h,t,y)}else Se(h,l,y);if(null==r?void 0:r.body){f=t.copyPrologue(r.body.statements,m,!1,B);const e=qJ(r.body.statements,f);if(e.length)ke(m,r.body.statements,f,e,0,h,r);else{for(;f=m.length?r.body.multiLine??m.length>0:m.length>0;return nI(t.createBlock(nI(t.createNodeArray(m),(null==(s=null==r?void 0:r.body)?void 0:s.statements)??n.members),v),null==r?void 0:r.body)}(r,n,s);return l?n?(un.assert(c),t.updateConstructorDeclaration(n,void 0,c,l)):_A(YC(nI(t.createConstructorDeclaration(void 0,c??[],l),n||r),n)):n}function ke(e,n,r,i,o,a,s){const c=i[o],l=n[c];if(se(e,HB(n,B,du,r,c-r)),r=c+1,qF(l)){const n=[];ke(n,l.tryBlock.statements,0,i,o+1,a,s),nI(t.createNodeArray(n),l.tryBlock.statements),e.push(t.updateTryStatement(l,t.updateBlock(l.tryBlock,n),$B(l.catchClause,B,RE),$B(l.finallyBlock,B,CF)))}else{for(se(e,HB(n,B,du,c,1));rl(e,p,t),serializeTypeOfNode:(e,t,n)=>l(e,_,t,n),serializeParameterTypesOfNode:(e,t,n)=>l(e,u,t,n),serializeReturnTypeOfNode:(e,t)=>l(e,d,t)};function l(e,t,n,r){const i=s,o=c;s=e.currentLexicalScope,c=e.currentNameScope;const a=void 0===r?t(n):t(n,r);return s=i,c=o,a}function _(e,n){switch(e.kind){case 172:case 169:return p(e.type);case 178:case 177:return p(function(e,t){const n=dv(t.members,e);return n.setAccessor&&ov(n.setAccessor)||n.getAccessor&&mv(n.getAccessor)}(e,n));case 263:case 231:case 174:return t.createIdentifier("Function");default:return t.createVoidZero()}}function u(e,n){const r=__(e)?rv(e):n_(e)&&wd(e.body)?e:void 0,i=[];if(r){const e=function(e,t){if(t&&177===e.kind){const{setAccessor:n}=dv(t.members,e);if(n)return n.parameters}return e.parameters}(r,n),t=e.length;for(let r=0;re.parent&&PD(e.parent)&&(e.parent.trueType===e||e.parent.falseType===e))))return t.createIdentifier("Object");const r=y(e.typeName),o=t.createTempVariable(n);return t.createConditionalExpression(t.createTypeCheck(t.createAssignment(o,r),"function"),void 0,o,void 0,t.createIdentifier("Object"));case 1:return v(e.typeName);case 2:return t.createVoidZero();case 4:return b("BigInt",7);case 6:return t.createIdentifier("Boolean");case 3:return t.createIdentifier("Number");case 5:return t.createIdentifier("String");case 7:return t.createIdentifier("Array");case 8:return b("Symbol",2);case 10:return t.createIdentifier("Function");case 9:return t.createIdentifier("Promise");case 11:return t.createIdentifier("Object");default:return un.assertNever(i)}}(e);case 193:return m(e.types,!0);case 192:return m(e.types,!1);case 194:return m([e.trueType,e.falseType],!1);case 198:if(148===e.operator)return p(e.type);break;case 186:case 199:case 200:case 187:case 133:case 159:case 197:case 205:case 312:case 313:case 317:case 318:case 319:break;case 314:case 315:case 316:return p(e.type);default:return un.failBadSyntaxKind(e)}return t.createIdentifier("Object")}function f(e){switch(e.kind){case 11:case 15:return t.createIdentifier("String");case 224:{const t=e.operand;switch(t.kind){case 9:case 10:return f(t);default:return un.failBadSyntaxKind(t)}}case 9:return t.createIdentifier("Number");case 10:return b("BigInt",7);case 112:case 97:return t.createIdentifier("Boolean");case 106:return t.createVoidZero();default:return un.failBadSyntaxKind(e)}}function m(e,n){let r;for(let i of e){if(i=ih(i),146===i.kind){if(n)return t.createVoidZero();continue}if(159===i.kind){if(!n)return t.createIdentifier("Object");continue}if(133===i.kind)return t.createIdentifier("Object");if(!a&&(MD(i)&&106===i.literal.kind||157===i.kind))continue;const e=p(i);if(zN(e)&&"Object"===e.escapedText)return e;if(r){if(!g(r,e))return t.createIdentifier("Object")}else r=e}return r??t.createVoidZero()}function g(e,t){return Vl(e)?Vl(t):zN(e)?zN(t)&&e.escapedText===t.escapedText:HD(e)?HD(t)&&g(e.expression,t.expression)&&g(e.name,t.name):iF(e)?iF(t)&&kN(e.expression)&&"0"===e.expression.text&&kN(t.expression)&&"0"===t.expression.text:TN(e)?TN(t)&&e.text===t.text:rF(e)?rF(t)&&g(e.expression,t.expression):ZD(e)?ZD(t)&&g(e.expression,t.expression):lF(e)?lF(t)&&g(e.condition,t.condition)&&g(e.whenTrue,t.whenTrue)&&g(e.whenFalse,t.whenFalse):!!cF(e)&&cF(t)&&e.operatorToken.kind===t.operatorToken.kind&&g(e.left,t.left)&&g(e.right,t.right)}function h(e,n){return t.createLogicalAnd(t.createStrictInequality(t.createTypeOfExpression(e),t.createStringLiteral("undefined")),n)}function y(e){if(80===e.kind){const t=v(e);return h(t,t)}if(80===e.left.kind)return h(v(e.left),v(e));const r=y(e.left),i=t.createTempVariable(n);return t.createLogicalAnd(t.createLogicalAnd(r.left,t.createStrictInequality(t.createAssignment(i,r.right),t.createVoidZero())),t.createPropertyAccessExpression(i,e.right))}function v(e){switch(e.kind){case 80:const n=wT(nI(aI.cloneNode(e),e),e.parent);return n.original=void 0,wT(n,dc(s)),n;case 166:return function(e){return t.createPropertyAccessExpression(v(e.left),e.right)}(e)}}function b(e,n){return oVA(e)||aD(e)?void 0:e),m_),f=Lb(o),m=function(n){if(i.hasNodeCheckFlag(n,262144)){c||(e.enableSubstitution(80),c=[]);const i=t.createUniqueName(n.name&&!Vl(n.name)?mc(n.name):"default");return c[TJ(n)]=i,r(i),i}}(o),h=a<2?t.getInternalName(o,!1,!0):t.getLocalName(o,!1,!0),y=HB(o.heritageClauses,_,jE);let v=HB(o.members,_,l_),b=[];({members:v,decorationStatements:b}=p(o,v));const x=a>=9&&!!m&&$(v,(e=>cD(e)&&wv(e,256)||uD(e)));x&&(v=nI(t.createNodeArray([t.createClassStaticBlockDeclaration(t.createBlock([t.createExpressionStatement(t.createAssignment(m,t.createThis()))])),...v]),v));const k=t.createClassExpression(d,s&&Vl(s)?void 0:s,void 0,y,v);YC(k,o),nI(k,f);const S=m&&!x?t.createAssignment(m,k):k,T=t.createVariableDeclaration(h,void 0,void 0,S);YC(T,o);const C=t.createVariableDeclarationList([T],1),w=t.createVariableStatement(void 0,C);YC(w,o),nI(w,f),pw(w,o);const N=[w];if(se(N,b),function(e,r){const i=function(e){const r=g(GJ(e,!0));if(!r)return;const i=c&&c[TJ(e)],o=a<2?t.getInternalName(e,!1,!0):t.getDeclarationName(e,!1,!0),s=n().createDecorateHelper(r,o),l=t.createAssignment(o,i?t.createAssignment(i,s):s);return nw(l,3072),sw(l,Lb(e)),l}(r);i&&e.push(YC(t.createExpressionStatement(i),r))}(N,o),l)if(u){const e=t.createExportDefault(h);N.push(e)}else{const e=t.createExternalModuleExport(t.getDeclarationName(o));N.push(e)}return N}(o,o.name):function(e,n){const r=HB(e.modifiers,l,Yl),i=HB(e.heritageClauses,_,jE);let o=HB(e.members,_,l_),a=[];({members:o,decorationStatements:a}=p(e,o));return se([t.updateClassDeclaration(e,r,n,void 0,i,o)],a)}(o,o.name);return ke(s)}(o);case 231:return function(e){return t.updateClassExpression(e,HB(e.modifiers,l,Yl),e.name,void 0,HB(e.heritageClauses,_,jE),HB(e.members,_,l_))}(o);case 176:return function(e){return t.updateConstructorDeclaration(e,HB(e.modifiers,l,Yl),HB(e.parameters,_,oD),$B(e.body,_,CF))}(o);case 174:return function(e){return f(t.updateMethodDeclaration(e,HB(e.modifiers,l,Yl),e.asteriskToken,un.checkDefined($B(e.name,_,e_)),void 0,void 0,HB(e.parameters,_,oD),void 0,$B(e.body,_,CF)),e)}(o);case 178:return function(e){return f(t.updateSetAccessorDeclaration(e,HB(e.modifiers,l,Yl),un.checkDefined($B(e.name,_,e_)),HB(e.parameters,_,oD),$B(e.body,_,CF)),e)}(o);case 177:return function(e){return f(t.updateGetAccessorDeclaration(e,HB(e.modifiers,l,Yl),un.checkDefined($B(e.name,_,e_)),HB(e.parameters,_,oD),void 0,$B(e.body,_,CF)),e)}(o);case 172:return function(e){if(!(33554432&e.flags||wv(e,128)))return f(t.updatePropertyDeclaration(e,HB(e.modifiers,l,Yl),un.checkDefined($B(e.name,_,e_)),void 0,void 0,$B(e.initializer,_,U_)),e)}(o);case 169:return function(e){const n=t.updateParameterDeclaration(e,WA(t,e.modifiers),e.dotDotDotToken,un.checkDefined($B(e.name,_,t_)),void 0,void 0,$B(e.initializer,_,U_));return n!==e&&(pw(n,e),nI(n,Lb(e)),sw(n,Lb(e)),nw(n.name,64)),n}(o);default:return nJ(o,_,e)}}function u(e){return!!(536870912&e.transformFlags)}function d(e){return $(e,u)}function p(e,n){let r=[];return h(r,e,!1),h(r,e,!0),function(e){for(const t of e.members){if(!iI(t))continue;const n=XJ(t,e,!0);if($(null==n?void 0:n.decorators,u))return!0;if($(null==n?void 0:n.parameters,d))return!0}return!1}(e)&&(n=nI(t.createNodeArray([...n,t.createClassStaticBlockDeclaration(t.createBlock(r,!0))]),n),r=void 0),{decorationStatements:r,members:n}}function f(e,t){return e!==t&&(pw(e,t),sw(e,Lb(t))),e}function m(e){return xN(e.expression,"___metadata")}function g(e){if(!e)return;const{false:t,true:n}=ze(e.decorators,m),r=[];return se(r,E(t,v)),se(r,O(e.parameters,b)),se(r,E(n,v)),r}function h(e,n,r){se(e,E(function(e,t){const n=function(e,t){return N(e.members,(n=>{return i=t,pm(!0,r=n,e)&&i===Nv(r);var r,i}))}(e,t);let r;for(const t of n)r=ie(r,y(e,t));return r}(n,r),(e=>t.createExpressionStatement(e))))}function y(e,r){const i=g(XJ(r,e,!0));if(!i)return;const o=function(e,n){return Nv(n)?t.getDeclarationName(e):function(e){return t.createPropertyAccessExpression(t.getDeclarationName(e),"prototype")}(e)}(e,r),a=function(e,n){const r=e.name;return qN(r)?t.createIdentifier(""):rD(r)?n&&!RJ(r.expression)?t.getGeneratedNameForNode(r):r.expression:zN(r)?t.createStringLiteral(mc(r)):t.cloneNode(r)}(r,!wv(r,128)),s=cD(r)&&!Av(r)?t.createVoidZero():t.createNull(),c=n().createDecorateHelper(i,o,a,s);return nw(c,3072),sw(c,Lb(r)),c}function v(e){return un.checkDefined($B(e.expression,_,U_))}function b(e,t){let r;if(e){r=[];for(const i of e){const e=n().createParamHelper(v(i),t);nI(e,i.expression),nw(e,3072),r.push(e)}}return r}}function jz(e){const{factory:t,getEmitHelperFactory:n,startLexicalEnvironment:r,endLexicalEnvironment:i,hoistVariableDeclaration:o}=e,a=hk(e.getCompilerOptions());let s,c,l,_,u,d;return NJ(e,(function(t){s=void 0,d=!1;const n=nJ(t,b,e);return Tw(n,e.readEmitHelpers()),d&&(ow(n,32),d=!1),n}));function p(){switch(c=void 0,l=void 0,_=void 0,null==s?void 0:s.kind){case"class":c=s.classInfo;break;case"class-element":c=s.next.classInfo,l=s.classThis,_=s.classSuper;break;case"name":const e=s.next.next.next;"class-element"===(null==e?void 0:e.kind)&&(c=e.next.classInfo,l=e.classThis,_=e.classSuper)}}function f(e){s={kind:"class",next:s,classInfo:e,savedPendingExpressions:u},u=void 0,p()}function m(){un.assert("class"===(null==s?void 0:s.kind),"Incorrect value for top.kind.",(()=>`Expected top.kind to be 'class' but got '${null==s?void 0:s.kind}' instead.`)),u=s.savedPendingExpressions,s=s.next,p()}function g(e){var t,n;un.assert("class"===(null==s?void 0:s.kind),"Incorrect value for top.kind.",(()=>`Expected top.kind to be 'class' but got '${null==s?void 0:s.kind}' instead.`)),s={kind:"class-element",next:s},(uD(e)||cD(e)&&Dv(e))&&(s.classThis=null==(t=s.next.classInfo)?void 0:t.classThis,s.classSuper=null==(n=s.next.classInfo)?void 0:n.classSuper),p()}function h(){var e;un.assert("class-element"===(null==s?void 0:s.kind),"Incorrect value for top.kind.",(()=>`Expected top.kind to be 'class-element' but got '${null==s?void 0:s.kind}' instead.`)),un.assert("class"===(null==(e=s.next)?void 0:e.kind),"Incorrect value for top.next.kind.",(()=>{var e;return`Expected top.next.kind to be 'class' but got '${null==(e=s.next)?void 0:e.kind}' instead.`})),s=s.next,p()}function y(){un.assert("class-element"===(null==s?void 0:s.kind),"Incorrect value for top.kind.",(()=>`Expected top.kind to be 'class-element' but got '${null==s?void 0:s.kind}' instead.`)),s={kind:"name",next:s},p()}function v(){un.assert("name"===(null==s?void 0:s.kind),"Incorrect value for top.kind.",(()=>`Expected top.kind to be 'name' but got '${null==s?void 0:s.kind}' instead.`)),s=s.next,p()}function b(n){if(!function(e){return!!(33554432&e.transformFlags)||!!l&&!!(16384&e.transformFlags)||!!l&&!!_&&!!(134217728&e.transformFlags)}(n))return n;switch(n.kind){case 170:return un.fail("Use `modifierVisitor` instead.");case 263:return function(n){if(D(n)){const r=[],i=lc(n,__)??n,o=i.name?t.createStringLiteralFromNode(i.name):t.createStringLiteral("default"),a=wv(n,32),s=wv(n,2048);if(n.name||(n=Sz(e,n,o)),a&&s){const e=N(n);if(n.name){const i=t.createVariableDeclaration(t.getLocalName(n),void 0,void 0,e);YC(i,n);const o=t.createVariableDeclarationList([i],1),a=t.createVariableStatement(void 0,o);r.push(a);const s=t.createExportDefault(t.getDeclarationName(n));YC(s,n),pw(s,dw(n)),sw(s,Ob(n)),r.push(s)}else{const i=t.createExportDefault(e);YC(i,n),pw(i,dw(n)),sw(i,Ob(n)),r.push(i)}}else{un.assertIsDefined(n.name,"A class declaration that is not a default export must have a name.");const e=N(n),i=a?e=>UN(e)?void 0:k(e):k,o=HB(n.modifiers,i,Yl),s=t.getLocalName(n,!1,!0),c=t.createVariableDeclaration(s,void 0,void 0,e);YC(c,n);const l=t.createVariableDeclarationList([c],1),_=t.createVariableStatement(o,l);if(YC(_,n),pw(_,dw(n)),r.push(_),a){const e=t.createExternalModuleExport(s);YC(e,n),r.push(e)}}return ke(r)}{const e=HB(n.modifiers,k,Yl),r=HB(n.heritageClauses,b,jE);f(void 0);const i=HB(n.members,S,l_);return m(),t.updateClassDeclaration(n,e,n.name,void 0,r,i)}}(n);case 231:return function(e){if(D(e)){const t=N(e);return YC(t,e),t}{const n=HB(e.modifiers,k,Yl),r=HB(e.heritageClauses,b,jE);f(void 0);const i=HB(e.members,S,l_);return m(),t.updateClassExpression(e,n,e.name,void 0,r,i)}}(n);case 176:case 172:case 175:return un.fail("Not supported outside of a class. Use 'classElementVisitor' instead.");case 169:return function(n){Kh(n,O)&&(n=Cz(e,n,L(n.initializer)));const r=t.updateParameterDeclaration(n,void 0,n.dotDotDotToken,$B(n.name,b,t_),void 0,void 0,$B(n.initializer,b,U_));return r!==n&&(pw(r,n),nI(r,Lb(n)),sw(r,Lb(n)),nw(r.name,64)),r}(n);case 226:return j(n,!1);case 303:case 260:case 208:return function(t){return Kh(t,O)&&(t=Cz(e,t,L(t.initializer))),nJ(t,b,e)}(n);case 277:return function(t){return Kh(t,O)&&(t=Cz(e,t,L(t.expression))),nJ(t,b,e)}(n);case 110:return function(e){return l??e}(n);case 248:return function(n){return t.updateForStatement(n,$B(n.initializer,T,Z_),$B(n.condition,b,U_),$B(n.incrementor,T,U_),eJ(n.statement,b,e))}(n);case 244:return function(t){return nJ(t,T,e)}(n);case 356:return M(n,!1);case 217:return H(n,!1);case 355:return function(e){const n=b,r=$B(e.expression,n,U_);return t.updatePartiallyEmittedExpression(e,r)}(n);case 213:return function(n){if(om(n.expression)&&l){const e=$B(n.expression,b,U_),r=HB(n.arguments,b,U_),i=t.createFunctionCallCall(e,l,r);return YC(i,n),nI(i,n),i}return nJ(n,b,e)}(n);case 215:return function(n){if(om(n.tag)&&l){const e=$B(n.tag,b,U_),r=t.createFunctionBindCall(e,l,[]);YC(r,n),nI(r,n);const i=$B(n.template,b,j_);return t.updateTaggedTemplateExpression(n,r,void 0,i)}return nJ(n,b,e)}(n);case 224:case 225:return R(n,!1);case 211:return function(n){if(om(n)&&zN(n.name)&&l&&_){const e=t.createStringLiteralFromNode(n.name),r=t.createReflectGetCall(_,e,l);return YC(r,n.expression),nI(r,n.expression),r}return nJ(n,b,e)}(n);case 212:return function(n){if(om(n)&&l&&_){const e=$B(n.argumentExpression,b,U_),r=t.createReflectGetCall(_,e,l);return YC(r,n.expression),nI(r,n.expression),r}return nJ(n,b,e)}(n);case 167:return J(n);case 174:case 178:case 177:case 218:case 262:{"other"===(null==s?void 0:s.kind)?(un.assert(!u),s.depth++):(s={kind:"other",next:s,depth:0,savedPendingExpressions:u},u=void 0,p());const t=nJ(n,x,e);return un.assert("other"===(null==s?void 0:s.kind),"Incorrect value for top.kind.",(()=>`Expected top.kind to be 'other' but got '${null==s?void 0:s.kind}' instead.`)),s.depth>0?(un.assert(!u),s.depth--):(u=s.savedPendingExpressions,s=s.next,p()),t}default:return nJ(n,x,e)}}function x(e){if(170!==e.kind)return b(e)}function k(e){if(170!==e.kind)return e}function S(a){switch(a.kind){case 176:return function(e){g(e);const n=HB(e.modifiers,k,Yl),r=HB(e.parameters,b,oD);let i;if(e.body&&c){const n=F(c.class,c);if(n){const r=[],o=t.copyPrologue(e.body.statements,r,!1,b),a=qJ(e.body.statements,o);a.length>0?P(r,e.body.statements,o,a,0,n):(se(r,n),se(r,HB(e.body.statements,b,du))),i=t.createBlock(r,!0),YC(i,e.body),nI(i,e.body)}}return i??(i=$B(e.body,b,CF)),h(),t.updateConstructorDeclaration(e,n,r,i)}(a);case 174:return function(e){g(e);const{modifiers:n,name:r,descriptorName:i}=I(e,c,ee);if(i)return h(),A(function(e,n,r){return e=HB(e,(e=>GN(e)?e:void 0),Yl),t.createGetAccessorDeclaration(e,n,[],void 0,t.createBlock([t.createReturnStatement(t.createPropertyAccessExpression(r,t.createIdentifier("value")))]))}(n,r,i),e);{const i=HB(e.parameters,b,oD),o=$B(e.body,b,CF);return h(),A(t.updateMethodDeclaration(e,n,e.asteriskToken,r,void 0,void 0,i,void 0,o),e)}}(a);case 177:return function(e){g(e);const{modifiers:n,name:r,descriptorName:i}=I(e,c,te);if(i)return h(),A(oe(n,r,i),e);{const i=HB(e.parameters,b,oD),o=$B(e.body,b,CF);return h(),A(t.updateGetAccessorDeclaration(e,n,r,i,void 0,o),e)}}(a);case 178:return function(e){g(e);const{modifiers:n,name:r,descriptorName:i}=I(e,c,ne);if(i)return h(),A(ae(n,r,i),e);{const i=HB(e.parameters,b,oD),o=$B(e.body,b,CF);return h(),A(t.updateSetAccessorDeclaration(e,n,r,i,o),e)}}(a);case 172:return function(a){Kh(a,O)&&(a=Cz(e,a,L(a.initializer))),g(a),un.assert(!hp(a),"Not yet implemented.");const{modifiers:s,name:l,initializersName:_,extraInitializersName:u,descriptorName:d,thisArg:p}=I(a,c,Av(a)?re:void 0);r();let f=$B(a.initializer,b,U_);_&&(f=n().createRunInitializersHelper(p??t.createThis(),_,f??t.createVoidZero())),Nv(a)&&c&&f&&(c.hasStaticInitializers=!0);const m=i();if($(m)&&(f=t.createImmediatelyInvokedArrowFunction([...m,t.createReturnStatement(f)])),c&&(Nv(a)?(f=X(c,!0,f),u&&(c.pendingStaticInitializers??(c.pendingStaticInitializers=[]),c.pendingStaticInitializers.push(n().createRunInitializersHelper(c.classThis??t.createThis(),u)))):(f=X(c,!1,f),u&&(c.pendingInstanceInitializers??(c.pendingInstanceInitializers=[]),c.pendingInstanceInitializers.push(n().createRunInitializersHelper(t.createThis(),u))))),h(),Av(a)&&d){const e=dw(a),n=aw(a),r=a.name;let i=r,c=r;if(rD(r)&&!RJ(r.expression)){const e=YA(r);if(e)i=t.updateComputedPropertyName(r,$B(r.expression,b,U_)),c=t.updateComputedPropertyName(r,e.left);else{const e=t.createTempVariable(o);sw(e,r.expression);const n=$B(r.expression,b,U_),a=t.createAssignment(e,n);sw(a,r.expression),i=t.updateComputedPropertyName(r,a),c=t.updateComputedPropertyName(r,e)}}const l=HB(s,(e=>129!==e.kind?e:void 0),Yl),_=GA(t,a,l,f);YC(_,a),nw(_,3072),sw(_,n),sw(_.name,a.name);const u=oe(l,i,d);YC(u,a),pw(u,e),sw(u,n);const p=ae(l,c,d);return YC(p,a),nw(p,3072),sw(p,n),[_,u,p]}return A(t.updatePropertyDeclaration(a,s,l,void 0,void 0,f),a)}(a);case 175:return function(n){let r;if(g(n),bz(n))r=nJ(n,b,e);else if(mz(n)){const t=l;l=void 0,r=nJ(n,b,e),l=t}else if(r=n=nJ(n,b,e),c&&(c.hasStaticInitializers=!0,$(c.pendingStaticInitializers))){const e=[];for(const n of c.pendingStaticInitializers){const r=t.createExpressionStatement(n);sw(r,aw(n)),e.push(r)}const n=t.createBlock(e,!0);r=[t.createClassStaticBlockDeclaration(n),r],c.pendingStaticInitializers=void 0}return h(),r}(a);default:return b(a)}}function T(e){switch(e.kind){case 224:case 225:return R(e,!0);case 226:return j(e,!0);case 356:return M(e,!0);case 217:return H(e,!0);default:return b(e)}}function C(e,n){return t.createUniqueName(`${function(e){let t=e.name&&zN(e.name)&&!Vl(e.name)?mc(e.name):e.name&&qN(e.name)&&!Vl(e.name)?mc(e.name).slice(1):e.name&&TN(e.name)&&fs(e.name.text,99)?e.name.text:__(e)?"class":"member";return wu(e)&&(t=`get_${t}`),Cu(e)&&(t=`set_${t}`),e.name&&qN(e.name)&&(t=`private_${t}`),Nv(e)&&(t=`static_${t}`),"_"+t}(e)}_${n}`,24)}function w(e,n){return t.createVariableStatement(void 0,t.createVariableDeclarationList([t.createVariableDeclaration(e,void 0,void 0,n)],1))}function N(o){r(),!kz(o)&&mm(!1,o)&&(o=Sz(e,o,t.createStringLiteral("")));const a=t.getLocalName(o,!1,!1,!0),s=function(e){const r=t.createUniqueName("_metadata",48);let i,o,a,s,c,l=!1,_=!1,u=!1;if(dm(!1,e)){const n=$(e.members,(e=>(Hl(e)||d_(e))&&Dv(e)));a=t.createUniqueName("_classThis",n?24:48)}for(const r of e.members){if(f_(r)&&pm(!1,r,e))if(Dv(r)){if(!o){o=t.createUniqueName("_staticExtraInitializers",48);const r=n().createRunInitializersHelper(a??t.createThis(),o);sw(r,e.name??Ob(e)),s??(s=[]),s.push(r)}}else{if(!i){i=t.createUniqueName("_instanceExtraInitializers",48);const r=n().createRunInitializersHelper(t.createThis(),i);sw(r,e.name??Ob(e)),c??(c=[]),c.push(r)}i??(i=t.createUniqueName("_instanceExtraInitializers",48))}if(uD(r)?bz(r)||(l=!0):cD(r)&&(Dv(r)?l||(l=!!r.initializer||Ov(r)):_||(_=!hp(r))),(Hl(r)||d_(r))&&Dv(r)&&(u=!0),o&&i&&l&&_&&u)break}return{class:e,classThis:a,metadataReference:r,instanceMethodExtraInitializersName:i,staticMethodExtraInitializersName:o,hasStaticInitializers:l,hasNonAmbientInstanceFields:_,hasStaticPrivateClassElements:u,pendingStaticInitializers:s,pendingInstanceInitializers:c}}(o),c=[];let l,_,p,g,h=!1;const y=Q(GJ(o,!1));y&&(s.classDecoratorsName=t.createUniqueName("_classDecorators",48),s.classDescriptorName=t.createUniqueName("_classDescriptor",48),s.classExtraInitializersName=t.createUniqueName("_classExtraInitializers",48),un.assertIsDefined(s.classThis),c.push(w(s.classDecoratorsName,t.createArrayLiteralExpression(y)),w(s.classDescriptorName),w(s.classExtraInitializersName,t.createArrayLiteralExpression()),w(s.classThis)),s.hasStaticPrivateClassElements&&(h=!0,d=!0));const v=kh(o.heritageClauses,96),x=v&&fe(v.types),k=x&&$B(x.expression,b,U_);if(k){s.classSuper=t.createUniqueName("_classSuper",48);const e=cA(k),n=pF(e)&&!e.name||eF(e)&&!e.name||tF(e)?t.createComma(t.createNumericLiteral(0),k):k;c.push(w(s.classSuper,n));const r=t.updateExpressionWithTypeArguments(x,s.classSuper,void 0),i=t.updateHeritageClause(v,[r]);g=t.createNodeArray([i])}const T=s.classThis??t.createThis();f(s),l=ie(l,function(e,n){const r=t.createVariableDeclaration(e,void 0,void 0,t.createConditionalExpression(t.createLogicalAnd(t.createTypeCheck(t.createIdentifier("Symbol"),"function"),t.createPropertyAccessExpression(t.createIdentifier("Symbol"),"metadata")),t.createToken(58),t.createCallExpression(t.createPropertyAccessExpression(t.createIdentifier("Object"),"create"),void 0,[n?ce(n):t.createNull()]),t.createToken(59),t.createVoidZero()));return t.createVariableStatement(void 0,t.createVariableDeclarationList([r],2))}(s.metadataReference,s.classSuper));let C=o.members;if(C=HB(C,(e=>dD(e)?e:S(e)),l_),C=HB(C,(e=>dD(e)?S(e):e),l_),u){let n;for(let r of u)r=$B(r,(function r(i){return 16384&i.transformFlags?110===i.kind?(n||(n=t.createUniqueName("_outerThis",16),c.unshift(w(n,t.createThis()))),n):nJ(i,r,e):i}),U_),l=ie(l,t.createExpressionStatement(r));u=void 0}if(m(),$(s.pendingInstanceInitializers)&&!rv(o)){const e=F(0,s);if(e){const n=hh(o),r=[];if(n&&106!==cA(n.expression).kind){const e=t.createSpreadElement(t.createIdentifier("arguments")),n=t.createCallExpression(t.createSuper(),void 0,[e]);r.push(t.createExpressionStatement(n))}se(r,e);const i=t.createBlock(r,!0);p=t.createConstructorDeclaration(void 0,[],i)}}if(s.staticMethodExtraInitializersName&&c.push(w(s.staticMethodExtraInitializersName,t.createArrayLiteralExpression())),s.instanceMethodExtraInitializersName&&c.push(w(s.instanceMethodExtraInitializersName,t.createArrayLiteralExpression())),s.memberInfos&&td(s.memberInfos,((e,n)=>{Nv(n)&&(c.push(w(e.memberDecoratorsName)),e.memberInitializersName&&c.push(w(e.memberInitializersName,t.createArrayLiteralExpression())),e.memberExtraInitializersName&&c.push(w(e.memberExtraInitializersName,t.createArrayLiteralExpression())),e.memberDescriptorName&&c.push(w(e.memberDescriptorName)))})),s.memberInfos&&td(s.memberInfos,((e,n)=>{Nv(n)||(c.push(w(e.memberDecoratorsName)),e.memberInitializersName&&c.push(w(e.memberInitializersName,t.createArrayLiteralExpression())),e.memberExtraInitializersName&&c.push(w(e.memberExtraInitializersName,t.createArrayLiteralExpression())),e.memberDescriptorName&&c.push(w(e.memberDescriptorName)))})),l=se(l,s.staticNonFieldDecorationStatements),l=se(l,s.nonStaticNonFieldDecorationStatements),l=se(l,s.staticFieldDecorationStatements),l=se(l,s.nonStaticFieldDecorationStatements),s.classDescriptorName&&s.classDecoratorsName&&s.classExtraInitializersName&&s.classThis){l??(l=[]);const e=t.createPropertyAssignment("value",T),r=t.createObjectLiteralExpression([e]),i=t.createAssignment(s.classDescriptorName,r),c=t.createPropertyAccessExpression(T,"name"),_=n().createESDecorateHelper(t.createNull(),i,s.classDecoratorsName,{kind:"class",name:c,metadata:s.metadataReference},t.createNull(),s.classExtraInitializersName),u=t.createExpressionStatement(_);sw(u,Ob(o)),l.push(u);const d=t.createPropertyAccessExpression(s.classDescriptorName,"value"),p=t.createAssignment(s.classThis,d),f=t.createAssignment(a,p);l.push(t.createExpressionStatement(f))}if(l.push(function(e,n){const r=t.createObjectDefinePropertyCall(e,t.createPropertyAccessExpression(t.createIdentifier("Symbol"),"metadata"),t.createPropertyDescriptor({configurable:!0,writable:!0,enumerable:!0,value:n},!0));return nw(t.createIfStatement(n,t.createExpressionStatement(r)),1)}(T,s.metadataReference)),$(s.pendingStaticInitializers)){for(const e of s.pendingStaticInitializers){const n=t.createExpressionStatement(e);sw(n,aw(e)),_=ie(_,n)}s.pendingStaticInitializers=void 0}if(s.classExtraInitializersName){const e=n().createRunInitializersHelper(T,s.classExtraInitializersName),r=t.createExpressionStatement(e);sw(r,o.name??Ob(o)),_=ie(_,r)}l&&_&&!s.hasStaticInitializers&&(se(l,_),_=void 0);const N=l&&t.createClassStaticBlockDeclaration(t.createBlock(l,!0));N&&h&&iw(N,32);const D=_&&t.createClassStaticBlockDeclaration(t.createBlock(_,!0));if(N||p||D){const e=[],n=C.findIndex(bz);N?(se(e,C,0,n+1),e.push(N),se(e,C,n+1)):se(e,C),p&&e.push(p),D&&e.push(D),C=nI(t.createNodeArray(e),C)}const E=i();let P;if(y){P=t.createClassExpression(void 0,void 0,void 0,g,C),s.classThis&&(P=hz(t,P,s.classThis));const e=t.createVariableDeclaration(a,void 0,void 0,P),n=t.createVariableDeclarationList([e]),r=s.classThis?t.createAssignment(a,s.classThis):a;c.push(t.createVariableStatement(void 0,n),t.createReturnStatement(r))}else P=t.createClassExpression(void 0,o.name,void 0,g,C),c.push(t.createReturnStatement(P));if(h){ow(P,32);for(const e of P.members)(Hl(e)||d_(e))&&Dv(e)&&ow(e,32)}return YC(P,o),t.createImmediatelyInvokedArrowFunction(t.mergeLexicalEnvironment(c,E))}function D(e){return mm(!1,e)||fm(!1,e)}function F(e,n){if($(n.pendingInstanceInitializers)){const e=[];return e.push(t.createExpressionStatement(t.inlineExpressions(n.pendingInstanceInitializers))),n.pendingInstanceInitializers=void 0,e}}function P(e,n,r,i,o,a){const s=i[o],c=n[s];if(se(e,HB(n,b,du,r,s-r)),qF(c)){const n=[];P(n,c.tryBlock.statements,0,i,o+1,a),nI(t.createNodeArray(n),c.tryBlock.statements),e.push(t.updateTryStatement(c,t.updateBlock(c.tryBlock,n),$B(c.catchClause,b,RE),$B(c.finallyBlock,b,CF)))}else se(e,HB(n,b,du,s,1)),se(e,a);se(e,HB(n,b,du,s+1))}function A(e,t){return e!==t&&(pw(e,t),sw(e,Ob(t))),e}function I(e,r,i){let a,s,c,l,_,d;if(!r){const t=HB(e.modifiers,k,Yl);return y(),s=B(e.name),v(),{modifiers:t,referencedName:a,name:s,initializersName:c,descriptorName:d,thisArg:_}}const p=Q(XJ(e,r.class,!1)),f=HB(e.modifiers,k,Yl);if(p){const m=C(e,"decorators"),g=t.createArrayLiteralExpression(p),h=t.createAssignment(m,g),x={memberDecoratorsName:m};r.memberInfos??(r.memberInfos=new Map),r.memberInfos.set(e,x),u??(u=[]),u.push(h);const k=f_(e)||d_(e)?Nv(e)?r.staticNonFieldDecorationStatements??(r.staticNonFieldDecorationStatements=[]):r.nonStaticNonFieldDecorationStatements??(r.nonStaticNonFieldDecorationStatements=[]):cD(e)&&!d_(e)?Nv(e)?r.staticFieldDecorationStatements??(r.staticFieldDecorationStatements=[]):r.nonStaticFieldDecorationStatements??(r.nonStaticFieldDecorationStatements=[]):un.fail(),S=pD(e)?"getter":fD(e)?"setter":_D(e)?"method":d_(e)?"accessor":cD(e)?"field":un.fail();let T;if(zN(e.name)||qN(e.name))T={computed:!1,name:e.name};else if(Jh(e.name))T={computed:!0,name:t.createStringLiteralFromNode(e.name)};else{const r=e.name.expression;Jh(r)&&!zN(r)?T={computed:!0,name:t.createStringLiteralFromNode(r)}:(y(),({referencedName:a,name:s}=function(e){if(Jh(e)||qN(e))return{referencedName:t.createStringLiteralFromNode(e),name:$B(e,b,e_)};if(Jh(e.expression)&&!zN(e.expression))return{referencedName:t.createStringLiteralFromNode(e.expression),name:$B(e,b,e_)};const r=t.getGeneratedNameForNode(e);o(r);const i=n().createPropKeyHelper($B(e.expression,b,U_)),a=t.createAssignment(r,i);return{referencedName:r,name:t.updateComputedPropertyName(e,G(a))}}(e.name)),T={computed:!0,name:a},v())}const w={kind:S,name:T,static:Nv(e),private:qN(e.name),access:{get:cD(e)||pD(e)||_D(e),set:cD(e)||fD(e)},metadata:r.metadataReference};if(f_(e)){const o=Nv(e)?r.staticMethodExtraInitializersName:r.instanceMethodExtraInitializersName;let a;un.assertIsDefined(o),Hl(e)&&i&&(a=i(e,HB(f,(e=>tt(e,WN)),Yl)),x.memberDescriptorName=d=C(e,"descriptor"),a=t.createAssignment(d,a));const s=n().createESDecorateHelper(t.createThis(),a??t.createNull(),m,w,t.createNull(),o),c=t.createExpressionStatement(s);sw(c,Ob(e)),k.push(c)}else if(cD(e)){let o;c=x.memberInitializersName??(x.memberInitializersName=C(e,"initializers")),l=x.memberExtraInitializersName??(x.memberExtraInitializersName=C(e,"extraInitializers")),Nv(e)&&(_=r.classThis),Hl(e)&&Av(e)&&i&&(o=i(e,void 0),x.memberDescriptorName=d=C(e,"descriptor"),o=t.createAssignment(d,o));const a=n().createESDecorateHelper(d_(e)?t.createThis():t.createNull(),o??t.createNull(),m,w,c,l),s=t.createExpressionStatement(a);sw(s,Ob(e)),k.push(s)}}return void 0===s&&(y(),s=B(e.name),v()),$(f)||!_D(e)&&!cD(e)||nw(s,1024),{modifiers:f,referencedName:a,name:s,initializersName:c,extraInitializersName:l,descriptorName:d,thisArg:_}}function O(e){return pF(e)&&!e.name&&D(e)}function L(e){const t=cA(e);return pF(t)&&!t.name&&!mm(!1,t)}function j(n,r){if(rb(n)){const e=W(n.left),r=$B(n.right,b,U_);return t.updateBinaryExpression(n,e,n.operatorToken,r)}if(nb(n)){if(Kh(n,O))return nJ(n=Cz(e,n,L(n.right)),b,e);if(om(n.left)&&l&&_){let e=KD(n.left)?$B(n.left.argumentExpression,b,U_):zN(n.left.name)?t.createStringLiteralFromNode(n.left.name):void 0;if(e){let i=$B(n.right,b,U_);if(MJ(n.operatorToken.kind)){let r=e;RJ(e)||(r=t.createTempVariable(o),e=t.createAssignment(r,e));const a=t.createReflectGetCall(_,r,l);YC(a,n.left),nI(a,n.left),i=t.createBinaryExpression(a,BJ(n.operatorToken.kind),i),nI(i,n)}const a=r?void 0:t.createTempVariable(o);return a&&(i=t.createAssignment(a,i),nI(a,n)),i=t.createReflectSetCall(_,e,i,l),YC(i,n),nI(i,n),a&&(i=t.createComma(i,a),nI(i,n)),i}}}if(28===n.operatorToken.kind){const e=$B(n.left,T,U_),i=$B(n.right,r?T:b,U_);return t.updateBinaryExpression(n,e,n.operatorToken,i)}return nJ(n,b,e)}function R(n,r){if(46===n.operator||47===n.operator){const e=oh(n.operand);if(om(e)&&l&&_){let i=KD(e)?$B(e.argumentExpression,b,U_):zN(e.name)?t.createStringLiteralFromNode(e.name):void 0;if(i){let e=i;RJ(i)||(e=t.createTempVariable(o),i=t.createAssignment(e,i));let a=t.createReflectGetCall(_,e,l);YC(a,n),nI(a,n);const s=r?void 0:t.createTempVariable(o);return a=XP(t,n,a,o,s),a=t.createReflectSetCall(_,i,a,l),YC(a,n),nI(a,n),s&&(a=t.createComma(a,s),nI(a,n)),a}}}return nJ(n,b,e)}function M(e,n){const r=n?tJ(e.elements,T):tJ(e.elements,b,T);return t.updateCommaListExpression(e,r)}function B(e){return rD(e)?J(e):$B(e,b,e_)}function J(e){let n=$B(e.expression,b,U_);return RJ(n)||(n=G(n)),t.updateComputedPropertyName(e,n)}function z(n){if($D(n)||WD(n))return W(n);if(om(n)&&l&&_){const e=KD(n)?$B(n.argumentExpression,b,U_):zN(n.name)?t.createStringLiteralFromNode(n.name):void 0;if(e){const r=t.createTempVariable(void 0),i=t.createAssignmentTargetWrapper(r,t.createReflectSetCall(_,e,r,l));return YC(i,n),nI(i,n),i}}return nJ(n,b,e)}function q(n){if(nb(n,!0)){Kh(n,O)&&(n=Cz(e,n,L(n.right)));const r=z(n.left),i=$B(n.right,b,U_);return t.updateBinaryExpression(n,r,n.operatorToken,i)}return z(n)}function U(n){return un.assertNode(n,E_),dF(n)?function(n){if(R_(n.expression)){const e=z(n.expression);return t.updateSpreadElement(n,e)}return nJ(n,b,e)}(n):fF(n)?nJ(n,b,e):q(n)}function V(n){return un.assertNode(n,D_),JE(n)?function(n){if(R_(n.expression)){const e=z(n.expression);return t.updateSpreadAssignment(n,e)}return nJ(n,b,e)}(n):BE(n)?function(t){return Kh(t,O)&&(t=Cz(e,t,L(t.objectAssignmentInitializer))),nJ(t,b,e)}(n):ME(n)?function(n){const r=$B(n.name,b,e_);if(nb(n.initializer,!0)){const e=q(n.initializer);return t.updatePropertyAssignment(n,r,e)}if(R_(n.initializer)){const e=z(n.initializer);return t.updatePropertyAssignment(n,r,e)}return nJ(n,b,e)}(n):nJ(n,b,e)}function W(e){if(WD(e)){const n=HB(e.elements,U,U_);return t.updateArrayLiteralExpression(e,n)}{const n=HB(e.properties,V,y_);return t.updateObjectLiteralExpression(e,n)}}function H(e,n){const r=n?T:b,i=$B(e.expression,r,U_);return t.updateParenthesizedExpression(e,i)}function K(e,n){return $(e)&&(n?ZD(n)?(e.push(n.expression),n=t.updateParenthesizedExpression(n,t.inlineExpressions(e))):(e.push(n),n=t.inlineExpressions(e)):n=t.inlineExpressions(e)),n}function G(e){const t=K(u,e);return un.assertIsDefined(t),t!==e&&(u=void 0),t}function X(e,t,n){const r=K(t?e.pendingStaticInitializers:e.pendingInstanceInitializers,n);return r!==n&&(t?e.pendingStaticInitializers=void 0:e.pendingInstanceInitializers=void 0),r}function Q(e){if(!e)return;const t=[];return se(t,E(e.decorators,Y)),t}function Y(e){const n=$B(e.expression,b,U_);if(nw(n,3072),kx(cA(n))){const{target:e,thisArg:r}=t.createCallBinding(n,o,a,!0);return t.restoreOuterExpressions(n,t.createFunctionBindCall(e,r,[]))}return n}function Z(e,r,i,o,a,s,c){const l=t.createFunctionExpression(i,o,void 0,void 0,s,void 0,c??t.createBlock([]));YC(l,e),sw(l,Ob(e)),nw(l,3072);const _="get"===a||"set"===a?a:void 0,u=t.createStringLiteralFromNode(r,void 0),d=n().createSetFunctionNameHelper(l,u,_),p=t.createPropertyAssignment(t.createIdentifier(a),d);return YC(p,e),sw(p,Ob(e)),nw(p,3072),p}function ee(e,n){return t.createObjectLiteralExpression([Z(e,e.name,n,e.asteriskToken,"value",HB(e.parameters,b,oD),$B(e.body,b,CF))])}function te(e,n){return t.createObjectLiteralExpression([Z(e,e.name,n,void 0,"get",[],$B(e.body,b,CF))])}function ne(e,n){return t.createObjectLiteralExpression([Z(e,e.name,n,void 0,"set",HB(e.parameters,b,oD),$B(e.body,b,CF))])}function re(e,n){return t.createObjectLiteralExpression([Z(e,e.name,n,void 0,"get",[],t.createBlock([t.createReturnStatement(t.createPropertyAccessExpression(t.createThis(),t.getGeneratedPrivateNameForNode(e.name)))])),Z(e,e.name,n,void 0,"set",[t.createParameterDeclaration(void 0,void 0,"value")],t.createBlock([t.createExpressionStatement(t.createAssignment(t.createPropertyAccessExpression(t.createThis(),t.getGeneratedPrivateNameForNode(e.name)),t.createIdentifier("value")))]))])}function oe(e,n,r){return e=HB(e,(e=>GN(e)?e:void 0),Yl),t.createGetAccessorDeclaration(e,n,[],void 0,t.createBlock([t.createReturnStatement(t.createFunctionCallCall(t.createPropertyAccessExpression(r,t.createIdentifier("get")),t.createThis(),[]))]))}function ae(e,n,r){return e=HB(e,(e=>GN(e)?e:void 0),Yl),t.createSetAccessorDeclaration(e,n,[t.createParameterDeclaration(void 0,void 0,"value")],t.createBlock([t.createReturnStatement(t.createFunctionCallCall(t.createPropertyAccessExpression(r,t.createIdentifier("set")),t.createThis(),[t.createIdentifier("value")]))]))}function ce(e){return t.createBinaryExpression(t.createElementAccessExpression(e,t.createPropertyAccessExpression(t.createIdentifier("Symbol"),"metadata")),61,t.createNull())}}function Rz(e){const{factory:t,getEmitHelperFactory:n,resumeLexicalEnvironment:r,endLexicalEnvironment:i,hoistVariableDeclaration:o}=e,a=e.getEmitResolver(),s=e.getCompilerOptions(),c=hk(s);let l,_,u,p,f=0,m=0;const g=[];let h=0;const y=e.onEmitNode,v=e.onSubstituteNode;return e.onEmitNode=function(e,t,n){if(1&f&&function(e){const t=e.kind;return 263===t||176===t||174===t||177===t||178===t}(t)){const r=(a.hasNodeCheckFlag(t,128)?128:0)|(a.hasNodeCheckFlag(t,256)?256:0);if(r!==m){const i=m;return m=r,y(e,t,n),void(m=i)}}else if(f&&g[jB(t)]){const r=m;return m=0,y(e,t,n),void(m=r)}y(e,t,n)},e.onSubstituteNode=function(e,n){return n=v(e,n),1===e&&m?function(e){switch(e.kind){case 211:return $(e);case 212:return H(e);case 213:return function(e){const n=e.expression;if(om(n)){const r=HD(n)?$(n):H(n);return t.createCallExpression(t.createPropertyAccessExpression(r,"call"),void 0,[t.createThis(),...e.arguments])}return e}(e)}return e}(n):n},NJ(e,(function(t){if(t.isDeclarationFile)return t;b(1,!1),b(2,!gp(t,s));const n=nJ(t,C,e);return Tw(n,e.readEmitHelpers()),n}));function b(e,t){h=t?h|e:h&~e}function x(e){return!!(h&e)}function k(e,t,n){const r=e&~h;if(r){b(r,!0);const e=t(n);return b(r,!1),e}return t(n)}function S(t){return nJ(t,C,e)}function T(t){switch(t.kind){case 218:case 262:case 174:case 177:case 178:case 176:return t;case 169:case 208:case 260:break;case 80:if(p&&a.isArgumentsLocalBinding(t))return p}return nJ(t,T,e)}function C(n){if(!(256&n.transformFlags))return p?T(n):n;switch(n.kind){case 134:return;case 223:return function(n){return x(1)?YC(nI(t.createYieldExpression(void 0,$B(n.expression,C,U_)),n),n):nJ(n,C,e)}(n);case 174:return k(3,D,n);case 262:return k(3,A,n);case 218:return k(3,I,n);case 219:return k(1,O,n);case 211:return _&&HD(n)&&108===n.expression.kind&&_.add(n.name.escapedText),nJ(n,C,e);case 212:return _&&108===n.expression.kind&&(u=!0),nJ(n,C,e);case 177:return k(3,F,n);case 178:return k(3,P,n);case 176:return k(3,N,n);case 263:case 231:return k(3,S,n);default:return nJ(n,C,e)}}function w(n){if(Yg(n))switch(n.kind){case 243:return function(n){if(j(n.declarationList)){const e=R(n.declarationList,!1);return e?t.createExpressionStatement(e):void 0}return nJ(n,C,e)}(n);case 248:return function(n){const r=n.initializer;return t.updateForStatement(n,j(r)?R(r,!1):$B(n.initializer,C,Z_),$B(n.condition,C,U_),$B(n.incrementor,C,U_),eJ(n.statement,w,e))}(n);case 249:return function(n){return t.updateForInStatement(n,j(n.initializer)?R(n.initializer,!0):un.checkDefined($B(n.initializer,C,Z_)),un.checkDefined($B(n.expression,C,U_)),eJ(n.statement,w,e))}(n);case 250:return function(n){return t.updateForOfStatement(n,$B(n.awaitModifier,C,HN),j(n.initializer)?R(n.initializer,!0):un.checkDefined($B(n.initializer,C,Z_)),un.checkDefined($B(n.expression,C,U_)),eJ(n.statement,w,e))}(n);case 299:return function(t){const n=new Set;let r;if(L(t.variableDeclaration,n),n.forEach(((e,t)=>{l.has(t)&&(r||(r=new Set(l)),r.delete(t))})),r){const n=l;l=r;const i=nJ(t,w,e);return l=n,i}return nJ(t,w,e)}(n);case 241:case 255:case 269:case 296:case 297:case 258:case 246:case 247:case 245:case 254:case 256:return nJ(n,w,e);default:return un.assertNever(n,"Unhandled node.")}return C(n)}function N(n){const r=p;p=void 0;const i=t.updateConstructorDeclaration(n,HB(n.modifiers,C,Yl),QB(n.parameters,C,e),z(n));return p=r,i}function D(n){let r;const i=Ih(n),o=p;p=void 0;const a=t.updateMethodDeclaration(n,HB(n.modifiers,C,m_),n.asteriskToken,n.name,void 0,void 0,r=2&i?U(n):QB(n.parameters,C,e),void 0,2&i?V(n,r):z(n));return p=o,a}function F(n){const r=p;p=void 0;const i=t.updateGetAccessorDeclaration(n,HB(n.modifiers,C,m_),n.name,QB(n.parameters,C,e),void 0,z(n));return p=r,i}function P(n){const r=p;p=void 0;const i=t.updateSetAccessorDeclaration(n,HB(n.modifiers,C,m_),n.name,QB(n.parameters,C,e),z(n));return p=r,i}function A(n){let r;const i=p;p=void 0;const o=Ih(n),a=t.updateFunctionDeclaration(n,HB(n.modifiers,C,m_),n.asteriskToken,n.name,void 0,r=2&o?U(n):QB(n.parameters,C,e),void 0,2&o?V(n,r):ZB(n.body,C,e));return p=i,a}function I(n){let r;const i=p;p=void 0;const o=Ih(n),a=t.updateFunctionExpression(n,HB(n.modifiers,C,Yl),n.asteriskToken,n.name,void 0,r=2&o?U(n):QB(n.parameters,C,e),void 0,2&o?V(n,r):ZB(n.body,C,e));return p=i,a}function O(n){let r;const i=Ih(n);return t.updateArrowFunction(n,HB(n.modifiers,C,Yl),void 0,r=2&i?U(n):QB(n.parameters,C,e),void 0,n.equalsGreaterThanToken,2&i?V(n,r):ZB(n.body,C,e))}function L({name:e},t){if(zN(e))t.add(e.escapedText);else for(const n of e.elements)fF(n)||L(n,t)}function j(e){return!!e&&WF(e)&&!(7&e.flags)&&e.declarations.some(J)}function R(e,n){!function(e){d(e.declarations,M)}(e);const r=Yb(e);return 0===r.length?n?$B(t.converters.convertToAssignmentElementTarget(e.declarations[0].name),C,U_):void 0:t.inlineExpressions(E(r,B))}function M({name:e}){if(zN(e))o(e);else for(const t of e.elements)fF(t)||M(t)}function B(e){const n=sw(t.createAssignment(t.converters.convertToAssignmentElementTarget(e.name),e.initializer),e);return un.checkDefined($B(n,C,U_))}function J({name:e}){if(zN(e))return l.has(e.escapedText);for(const t of e.elements)if(!fF(t)&&J(t))return!0;return!1}function z(n){un.assertIsDefined(n.body);const r=_,i=u;_=new Set,u=!1;let o=ZB(n.body,C,e);const s=lc(n,i_);if(c>=2&&(a.hasNodeCheckFlag(n,256)||a.hasNodeCheckFlag(n,128))&&3&~Ih(s)){if(W(),_.size){const e=Mz(t,a,n,_);g[jB(e)]=!0;const r=o.statements.slice();Ad(r,[e]),o=t.updateBlock(o,r)}u&&(a.hasNodeCheckFlag(n,256)?Sw(o,bN):a.hasNodeCheckFlag(n,128)&&Sw(o,vN))}return _=r,u=i,o}function q(){un.assert(p);const e=t.createVariableDeclaration(p,void 0,void 0,t.createIdentifier("arguments")),n=t.createVariableStatement(void 0,[e]);return _A(n),rw(n,2097152),n}function U(n){if(rz(n.parameters))return QB(n.parameters,C,e);const r=[];for(const e of n.parameters){if(e.initializer||e.dotDotDotToken){if(219===n.kind){const e=t.createParameterDeclaration(void 0,t.createToken(26),t.createUniqueName("args",8));r.push(e)}break}const i=t.createParameterDeclaration(void 0,void 0,t.getGeneratedNameForNode(e.name,8));r.push(i)}const i=t.createNodeArray(r);return nI(i,n.parameters),i}function V(o,s){const d=rz(o.parameters)?void 0:QB(o.parameters,C,e);r();const f=lc(o,n_).type,m=c<2?function(e){const t=e&&lm(e);if(t&&Zl(t)){const e=a.getTypeReferenceSerializationKind(t);if(1===e||0===e)return t}}(f):void 0,h=219===o.kind,y=p,v=a.hasNodeCheckFlag(o,512)&&!p;let b;if(v&&(p=t.createUniqueName("arguments")),d)if(h){const e=[];un.assert(s.length<=o.parameters.length);for(let n=0;n=2&&(a.hasNodeCheckFlag(o,256)||a.hasNodeCheckFlag(o,128));if(r&&(W(),_.size)){const n=Mz(t,a,o,_);g[jB(n)]=!0,Ad(e,[n])}v&&Ad(e,[q()]);const i=t.createBlock(e,!0);nI(i,o.body),r&&u&&(a.hasNodeCheckFlag(o,256)?Sw(i,bN):a.hasNodeCheckFlag(o,128)&&Sw(i,vN)),E=i}return l=k,h||(_=S,u=T,p=y),E}function W(){1&f||(f|=1,e.enableSubstitution(213),e.enableSubstitution(211),e.enableSubstitution(212),e.enableEmitNotification(263),e.enableEmitNotification(174),e.enableEmitNotification(177),e.enableEmitNotification(178),e.enableEmitNotification(176),e.enableEmitNotification(243))}function $(e){return 108===e.expression.kind?nI(t.createPropertyAccessExpression(t.createUniqueName("_super",48),e.name),e):e}function H(e){return 108===e.expression.kind?(n=e.argumentExpression,r=e,nI(256&m?t.createPropertyAccessExpression(t.createCallExpression(t.createUniqueName("_superIndex",48),void 0,[n]),"value"):t.createCallExpression(t.createUniqueName("_superIndex",48),void 0,[n]),r)):e;var n,r}}function Mz(e,t,n,r){const i=t.hasNodeCheckFlag(n,256),o=[];return r.forEach(((t,n)=>{const r=fc(n),a=[];a.push(e.createPropertyAssignment("get",e.createArrowFunction(void 0,void 0,[],void 0,void 0,nw(e.createPropertyAccessExpression(nw(e.createSuper(),8),r),8)))),i&&a.push(e.createPropertyAssignment("set",e.createArrowFunction(void 0,void 0,[e.createParameterDeclaration(void 0,void 0,"v",void 0,void 0,void 0)],void 0,void 0,e.createAssignment(nw(e.createPropertyAccessExpression(nw(e.createSuper(),8),r),8),e.createIdentifier("v"))))),o.push(e.createPropertyAssignment(r,e.createObjectLiteralExpression(a)))})),e.createVariableStatement(void 0,e.createVariableDeclarationList([e.createVariableDeclaration(e.createUniqueName("_super",48),void 0,void 0,e.createCallExpression(e.createPropertyAccessExpression(e.createIdentifier("Object"),"create"),void 0,[e.createNull(),e.createObjectLiteralExpression(o,!0)]))],2))}function Bz(e){const{factory:t,getEmitHelperFactory:n,resumeLexicalEnvironment:r,endLexicalEnvironment:i,hoistVariableDeclaration:o}=e,a=e.getEmitResolver(),s=e.getCompilerOptions(),c=hk(s),l=e.onEmitNode;e.onEmitNode=function(e,t,n){if(1&y&&function(e){const t=e.kind;return 263===t||176===t||174===t||177===t||178===t}(t)){const r=(a.hasNodeCheckFlag(t,128)?128:0)|(a.hasNodeCheckFlag(t,256)?256:0);if(r!==v){const i=v;return v=r,l(e,t,n),void(v=i)}}else if(y&&x[jB(t)]){const r=v;return v=0,l(e,t,n),void(v=r)}l(e,t,n)};const _=e.onSubstituteNode;e.onSubstituteNode=function(e,n){return n=_(e,n),1===e&&v?function(e){switch(e.kind){case 211:return Q(e);case 212:return Y(e);case 213:return function(e){const n=e.expression;if(om(n)){const r=HD(n)?Q(n):Y(n);return t.createCallExpression(t.createPropertyAccessExpression(r,"call"),void 0,[t.createThis(),...e.arguments])}return e}(e)}return e}(n):n};let u,d,p,f,m,g,h=!1,y=0,v=0,b=0;const x=[];return NJ(e,(function(n){if(n.isDeclarationFile)return n;p=n;const r=function(n){const r=k(2,gp(n,s)?0:1);h=!1;const i=nJ(n,C,e),o=K(i.statements,f&&[t.createVariableStatement(void 0,t.createVariableDeclarationList(f))]),a=t.updateSourceFile(i,nI(t.createNodeArray(o),n.statements));return S(r),a}(n);return Tw(r,e.readEmitHelpers()),p=void 0,f=void 0,r}));function k(e,t){const n=b;return b=3&(b&~e|t),n}function S(e){b=e}function T(e){f=ie(f,t.createVariableDeclaration(e))}function C(e){return E(e,!1)}function w(e){return E(e,!0)}function N(e){if(134!==e.kind)return e}function D(e,t,n,r){if(function(e,t){return b!==(b&~e|t)}(n,r)){const i=k(n,r),o=e(t);return S(i),o}return e(t)}function F(t){return nJ(t,C,e)}function E(r,i){if(!(128&r.transformFlags))return r;switch(r.kind){case 223:return function(r){return 2&u&&1&u?YC(nI(t.createYieldExpression(void 0,n().createAwaitHelper($B(r.expression,C,U_))),r),r):nJ(r,C,e)}(r);case 229:return function(r){if(2&u&&1&u){if(r.asteriskToken){const e=$B(un.checkDefined(r.expression),C,U_);return YC(nI(t.createYieldExpression(void 0,n().createAwaitHelper(t.updateYieldExpression(r,r.asteriskToken,nI(n().createAsyncDelegatorHelper(nI(n().createAsyncValuesHelper(e),e)),e)))),r),r)}return YC(nI(t.createYieldExpression(void 0,O(r.expression?$B(r.expression,C,U_):t.createVoidZero())),r),r)}return nJ(r,C,e)}(r);case 253:return function(n){return 2&u&&1&u?t.updateReturnStatement(n,O(n.expression?$B(n.expression,C,U_):t.createVoidZero())):nJ(n,C,e)}(r);case 256:return function(n){if(2&u){const e=jf(n);return 250===e.kind&&e.awaitModifier?I(e,n):t.restoreEnclosingLabel($B(e,C,du,t.liftToBlock),n)}return nJ(n,C,e)}(r);case 210:return function(r){if(65536&r.transformFlags){const e=function(e){let n;const r=[];for(const i of e)if(305===i.kind){n&&(r.push(t.createObjectLiteralExpression(n)),n=void 0);const e=i.expression;r.push($B(e,C,U_))}else n=ie(n,303===i.kind?t.createPropertyAssignment(i.name,$B(i.initializer,C,U_)):$B(i,C,y_));return n&&r.push(t.createObjectLiteralExpression(n)),r}(r.properties);e.length&&210!==e[0].kind&&e.unshift(t.createObjectLiteralExpression());let i=e[0];if(e.length>1){for(let t=1;t=2&&(a.hasNodeCheckFlag(o,256)||a.hasNodeCheckFlag(o,128));if(f){1&y||(y|=1,e.enableSubstitution(213),e.enableSubstitution(211),e.enableSubstitution(212),e.enableEmitNotification(263),e.enableEmitNotification(174),e.enableEmitNotification(177),e.enableEmitNotification(178),e.enableEmitNotification(176),e.enableEmitNotification(243));const n=Mz(t,a,o,m);x[jB(n)]=!0,Ad(u,[n])}u.push(p);const h=t.updateBlock(o.body,u);return f&&g&&(a.hasNodeCheckFlag(o,256)?Sw(h,bN):a.hasNodeCheckFlag(o,128)&&Sw(h,vN)),m=l,g=_,h}function G(e){r();let n=0;const o=[],a=$B(e.body,C,Q_)??t.createBlock([]);CF(a)&&(n=t.copyPrologue(a.statements,o,!1,C)),se(o,X(void 0,e));const s=i();if(n>0||$(o)||$(s)){const e=t.converters.convertToFunctionBlock(a,!0);return Ad(o,s),se(o,e.statements.slice(n)),t.updateBlock(e,nI(t.createNodeArray(o),e.statements))}return a}function X(n,r){let i=!1;for(const o of r.parameters)if(i){if(x_(o.name)){if(o.name.elements.length>0){const r=lz(o,C,e,0,t.getGeneratedNameForNode(o));if($(r)){const e=t.createVariableDeclarationList(r),i=t.createVariableStatement(void 0,e);nw(i,2097152),n=ie(n,i)}}else if(o.initializer){const e=t.getGeneratedNameForNode(o),r=$B(o.initializer,C,U_),i=t.createAssignment(e,r),a=t.createExpressionStatement(i);nw(a,2097152),n=ie(n,a)}}else if(o.initializer){const e=t.cloneNode(o.name);nI(e,o.name),nw(e,96);const r=$B(o.initializer,C,U_);rw(r,3168);const i=t.createAssignment(e,r);nI(i,o),nw(i,3072);const a=t.createBlock([t.createExpressionStatement(i)]);nI(a,o),nw(a,3905);const s=t.createTypeCheck(t.cloneNode(o.name),"undefined"),c=t.createIfStatement(s,a);_A(c),nI(c,o),nw(c,2101056),n=ie(n,c)}}else if(65536&o.transformFlags){i=!0;const r=lz(o,C,e,1,t.getGeneratedNameForNode(o),!1,!0);if($(r)){const e=t.createVariableDeclarationList(r),i=t.createVariableStatement(void 0,e);nw(i,2097152),n=ie(n,i)}}return n}function Q(e){return 108===e.expression.kind?nI(t.createPropertyAccessExpression(t.createUniqueName("_super",48),e.name),e):e}function Y(e){return 108===e.expression.kind?(n=e.argumentExpression,r=e,nI(256&v?t.createPropertyAccessExpression(t.createCallExpression(t.createIdentifier("_superIndex"),void 0,[n]),"value"):t.createCallExpression(t.createIdentifier("_superIndex"),void 0,[n]),r)):e;var n,r}}function Jz(e){const t=e.factory;return NJ(e,(function(t){return t.isDeclarationFile?t:nJ(t,n,e)}));function n(r){return 64&r.transformFlags?299===r.kind?function(r){return r.variableDeclaration?nJ(r,n,e):t.updateCatchClause(r,t.createVariableDeclaration(t.createTempVariable(void 0)),$B(r.block,n,CF))}(r):nJ(r,n,e):r}}function zz(e){const{factory:t,hoistVariableDeclaration:n}=e;return NJ(e,(function(t){return t.isDeclarationFile?t:nJ(t,r,e)}));function r(i){if(!(32&i.transformFlags))return i;switch(i.kind){case 213:{const e=o(i,!1);return un.assertNotNode(e,bE),e}case 211:case 212:if(gl(i)){const e=s(i,!1,!1);return un.assertNotNode(e,bE),e}return nJ(i,r,e);case 226:return 61===i.operatorToken.kind?function(e){let i=$B(e.left,r,U_),o=i;return jJ(i)||(o=t.createTempVariable(n),i=t.createAssignment(o,i)),nI(t.createConditionalExpression(c(i,o),void 0,o,void 0,$B(e.right,r,U_)),e)}(i):nJ(i,r,e);case 220:return function(e){return gl(oh(e.expression))?YC(a(e.expression,!1,!0),e):t.updateDeleteExpression(e,$B(e.expression,r,U_))}(i);default:return nJ(i,r,e)}}function i(e,n,r){const i=a(e.expression,n,r);return bE(i)?t.createSyntheticReferenceExpression(t.updateParenthesizedExpression(e,i.expression),i.thisArg):t.updateParenthesizedExpression(e,i)}function o(n,o){if(gl(n))return s(n,o,!1);if(ZD(n.expression)&&gl(oh(n.expression))){const e=i(n.expression,!0,!1),o=HB(n.arguments,r,U_);return bE(e)?nI(t.createFunctionCallCall(e.expression,e.thisArg,o),n):t.updateCallExpression(n,e,void 0,o)}return nJ(n,r,e)}function a(e,a,c){switch(e.kind){case 217:return i(e,a,c);case 211:case 212:return function(e,i,o){if(gl(e))return s(e,i,o);let a,c=$B(e.expression,r,U_);return un.assertNotNode(c,bE),i&&(jJ(c)?a=c:(a=t.createTempVariable(n),c=t.createAssignment(a,c))),c=211===e.kind?t.updatePropertyAccessExpression(e,c,$B(e.name,r,zN)):t.updateElementAccessExpression(e,c,$B(e.argumentExpression,r,U_)),a?t.createSyntheticReferenceExpression(c,a):c}(e,a,c);case 213:return o(e,a);default:return $B(e,r,U_)}}function s(e,i,o){const{expression:s,chain:l}=function(e){un.assertNotNode(e,Sl);const t=[e];for(;!e.questionDotToken&&!QD(e);)e=nt(kl(e.expression),gl),un.assertNotNode(e,Sl),t.unshift(e);return{expression:e.expression,chain:t}}(e),_=a(kl(s),ml(l[0]),!1);let u=bE(_)?_.thisArg:void 0,d=bE(_)?_.expression:_,p=t.restoreOuterExpressions(s,d,8);jJ(d)||(d=t.createTempVariable(n),p=t.createAssignment(d,p));let f,m=d;for(let e=0;ee&&se(c,HB(n.statements,_,du,e,d-e));break}d++}un.assert(dt&&(t=e)}return t}(n.caseBlock.clauses);if(r){const i=m();return g([t.updateSwitchStatement(n,$B(n.expression,_,U_),t.updateCaseBlock(n.caseBlock,n.caseBlock.clauses.map((n=>function(n,r){return 0!==Kz(n.statements)?OE(n)?t.updateCaseClause(n,$B(n.expression,_,U_),u(n.statements,0,n.statements.length,r,void 0)):t.updateDefaultClause(n,u(n.statements,0,n.statements.length,r,void 0)):nJ(n,_,e)}(n,i)))))],i,2===r)}return nJ(n,_,e)}(n);default:return nJ(n,_,e)}}function u(i,o,a,s,u){const m=[];for(let r=o;rt&&(t=e)}return t}function Gz(e){const{factory:t,getEmitHelperFactory:n}=e,r=e.getCompilerOptions();let i,o;return NJ(e,(function(n){if(n.isDeclarationFile)return n;i=n,o={},o.importSpecifier=$k(r,n);let a=nJ(n,c,e);Tw(a,e.readEmitHelpers());let s=a.statements;if(o.filenameDeclaration&&(s=Ld(s.slice(),t.createVariableStatement(void 0,t.createVariableDeclarationList([o.filenameDeclaration],2)))),o.utilizedImplicitRuntimeImports)for(const[e,r]of Oe(o.utilizedImplicitRuntimeImports.entries()))if(MI(n)){const n=t.createImportDeclaration(void 0,t.createImportClause(!1,void 0,t.createNamedImports(Oe(r.values()))),t.createStringLiteral(e),void 0);NT(n,!1),s=Ld(s.slice(),n)}else if(Qp(n)){const n=t.createVariableStatement(void 0,t.createVariableDeclarationList([t.createVariableDeclaration(t.createObjectBindingPattern(Oe(r.values(),(e=>t.createBindingElement(void 0,e.propertyName,e.name)))),void 0,void 0,t.createCallExpression(t.createIdentifier("require"),void 0,[t.createStringLiteral(e)]))],2));NT(n,!1),s=Ld(s.slice(),n)}return s!==a.statements&&(a=t.updateSourceFile(a,s)),o=void 0,a}));function a(){if(o.filenameDeclaration)return o.filenameDeclaration.name;const e=t.createVariableDeclaration(t.createUniqueName("_jsxFileName",48),void 0,void 0,t.createStringLiteral(i.fileName));return o.filenameDeclaration=e,o.filenameDeclaration.name}function s(e){var n,i;const a="createElement"===e?o.importSpecifier:Hk(o.importSpecifier,r),s=null==(i=null==(n=o.utilizedImplicitRuntimeImports)?void 0:n.get(a))?void 0:i.get(e);if(s)return s.name;o.utilizedImplicitRuntimeImports||(o.utilizedImplicitRuntimeImports=new Map);let c=o.utilizedImplicitRuntimeImports.get(a);c||(c=new Map,o.utilizedImplicitRuntimeImports.set(a,c));const l=t.createUniqueName(`_${e}`,112),_=t.createImportSpecifier(!1,t.createIdentifier(e),l);return Rw(l,_),c.set(e,_),l}function c(t){return 2&t.transformFlags?function(t){switch(t.kind){case 284:return f(t,!1);case 285:return m(t,!1);case 288:return g(t,!1);case 294:return O(t);default:return nJ(t,c,e)}}(t):t}function _(e){switch(e.kind){case 12:return function(e){const n=function(e){let t,n=0,r=-1;for(let i=0;iME(e)&&(zN(e.name)&&"__proto__"===mc(e.name)||TN(e.name)&&"__proto__"===e.name.text)))}function p(e){return void 0===o.importSpecifier||function(e){let t=!1;for(const n of e.attributes.properties)if(!PE(n)||$D(n.expression)&&!n.expression.properties.some(JE)){if(t&&FE(n)&&zN(n.name)&&"key"===n.name.escapedText)return!0}else t=!0;return!1}(e)}function f(e,t){return(p(e.openingElement)?x:y)(e.openingElement,e.children,t,e)}function m(e,t){return(p(e)?x:y)(e,void 0,t,e)}function g(e,t){return(void 0===o.importSpecifier?S:k)(e.openingFragment,e.children,t,e)}function h(e){const n=cy(e);if(1===u(n)&&!n[0].dotDotDotToken){const e=_(n[0]);return e&&t.createPropertyAssignment("children",e)}const r=B(e,_);return u(r)?t.createPropertyAssignment("children",t.createArrayLiteralExpression(r)):void 0}function y(e,n,r,i){const o=P(e),a=n&&n.length?h(n):void 0,s=b(e.attributes.properties,(e=>!!e.name&&zN(e.name)&&"key"===e.name.escapedText)),c=s?N(e.attributes.properties,(e=>e!==s)):e.attributes.properties;return v(o,u(c)?T(c,a):t.createObjectLiteralExpression(a?[a]:l),s,n||l,r,i)}function v(e,n,o,c,l,_){var d;const p=cy(c),f=u(p)>1||!!(null==(d=p[0])?void 0:d.dotDotDotToken),m=[e,n];if(o&&m.push(w(o.initializer)),5===r.jsx){const e=lc(i);if(e&&qE(e)){void 0===o&&m.push(t.createVoidZero()),m.push(f?t.createTrue():t.createFalse());const n=Ja(e,_.pos);m.push(t.createObjectLiteralExpression([t.createPropertyAssignment("fileName",a()),t.createPropertyAssignment("lineNumber",t.createNumericLiteral(n.line+1)),t.createPropertyAssignment("columnNumber",t.createNumericLiteral(n.character+1))])),m.push(t.createThis())}}const g=nI(t.createCallExpression(function(e){const t=function(e){return 5===r.jsx?"jsxDEV":e?"jsxs":"jsx"}(e);return s(t)}(f),void 0,m),_);return l&&_A(g),g}function x(n,a,c,l){const d=P(n),p=n.attributes.properties,f=u(p)?T(p):t.createNull(),m=void 0===o.importSpecifier?UP(t,e.getEmitResolver().getJsxFactoryEntity(i),r.reactNamespace,n):s("createElement"),g=VP(t,m,d,f,B(a,_),l);return c&&_A(g),g}function k(e,n,r,i){let o;if(n&&n.length){const e=function(e){const n=h(e);return n&&t.createObjectLiteralExpression([n])}(n);e&&(o=e)}return v(s("Fragment"),o||t.createObjectLiteralExpression([]),void 0,n,r,i)}function S(n,o,a,s){const c=WP(t,e.getEmitResolver().getJsxFactoryEntity(i),e.getEmitResolver().getJsxFragmentFactoryEntity(i),r.reactNamespace,B(o,_),n,s);return a&&_A(c),c}function T(e,i){const o=hk(r);return o&&o>=5?t.createObjectLiteralExpression(function(e,n){const r=I(V(e,PE,((e,n)=>I(E(e,(e=>{return n?$D((r=e).expression)&&!d(r.expression)?A(r.expression.properties,(e=>un.checkDefined($B(e,c,y_)))):t.createSpreadAssignment(un.checkDefined($B(r.expression,c,U_))):C(e);var r}))))));return n&&r.push(n),r}(e,i)):function(e,r){const i=[];let o=[];for(const t of e)if(PE(t)){if($D(t.expression)&&!d(t.expression)){for(const e of t.expression.properties)JE(e)?(a(),i.push(un.checkDefined($B(e.expression,c,U_)))):o.push(un.checkDefined($B(e,c)));continue}a(),i.push(un.checkDefined($B(t.expression,c,U_)))}else o.push(C(t));return r&&o.push(r),a(),i.length&&!$D(i[0])&&i.unshift(t.createObjectLiteralExpression()),be(i)||n().createAssignHelper(i);function a(){o.length&&(i.push(t.createObjectLiteralExpression(o)),o=[])}}(e,i)}function C(e){const n=function(e){const n=e.name;if(zN(n)){const e=mc(n);return/^[A-Z_]\w*$/i.test(e)?n:t.createStringLiteral(e)}return t.createStringLiteral(mc(n.namespace)+":"+mc(n.name))}(e),r=w(e.initializer);return t.createPropertyAssignment(n,r)}function w(e){if(void 0===e)return t.createTrue();if(11===e.kind){const n=void 0!==e.singleQuote?e.singleQuote:!zm(e,i);return nI(t.createStringLiteral(function(e){const t=F(e);return t===e?void 0:t}(e.text)||e.text,n),e)}return 294===e.kind?void 0===e.expression?t.createTrue():un.checkDefined($B(e.expression,c,U_)):kE(e)?f(e,!1):SE(e)?m(e,!1):wE(e)?g(e,!1):un.failBadSyntaxKind(e)}function D(e,t){const n=F(t);return void 0===e?n:e+" "+n}function F(e){return e.replace(/&((#((\d+)|x([\da-fA-F]+)))|(\w+));/g,((e,t,n,r,i,o,a)=>{if(i)return vs(parseInt(i,10));if(o)return vs(parseInt(o,16));{const t=Xz.get(a);return t?vs(t):e}}))}function P(e){if(284===e.kind)return P(e.openingElement);{const n=e.tagName;return zN(n)&&Fy(n.escapedText)?t.createStringLiteral(mc(n)):IE(n)?t.createStringLiteral(mc(n.namespace)+":"+mc(n.name)):HP(t,n)}}function O(e){const n=$B(e.expression,c,U_);return e.dotDotDotToken?t.createSpreadElement(n):n}}var Xz=new Map(Object.entries({quot:34,amp:38,apos:39,lt:60,gt:62,nbsp:160,iexcl:161,cent:162,pound:163,curren:164,yen:165,brvbar:166,sect:167,uml:168,copy:169,ordf:170,laquo:171,not:172,shy:173,reg:174,macr:175,deg:176,plusmn:177,sup2:178,sup3:179,acute:180,micro:181,para:182,middot:183,cedil:184,sup1:185,ordm:186,raquo:187,frac14:188,frac12:189,frac34:190,iquest:191,Agrave:192,Aacute:193,Acirc:194,Atilde:195,Auml:196,Aring:197,AElig:198,Ccedil:199,Egrave:200,Eacute:201,Ecirc:202,Euml:203,Igrave:204,Iacute:205,Icirc:206,Iuml:207,ETH:208,Ntilde:209,Ograve:210,Oacute:211,Ocirc:212,Otilde:213,Ouml:214,times:215,Oslash:216,Ugrave:217,Uacute:218,Ucirc:219,Uuml:220,Yacute:221,THORN:222,szlig:223,agrave:224,aacute:225,acirc:226,atilde:227,auml:228,aring:229,aelig:230,ccedil:231,egrave:232,eacute:233,ecirc:234,euml:235,igrave:236,iacute:237,icirc:238,iuml:239,eth:240,ntilde:241,ograve:242,oacute:243,ocirc:244,otilde:245,ouml:246,divide:247,oslash:248,ugrave:249,uacute:250,ucirc:251,uuml:252,yacute:253,thorn:254,yuml:255,OElig:338,oelig:339,Scaron:352,scaron:353,Yuml:376,fnof:402,circ:710,tilde:732,Alpha:913,Beta:914,Gamma:915,Delta:916,Epsilon:917,Zeta:918,Eta:919,Theta:920,Iota:921,Kappa:922,Lambda:923,Mu:924,Nu:925,Xi:926,Omicron:927,Pi:928,Rho:929,Sigma:931,Tau:932,Upsilon:933,Phi:934,Chi:935,Psi:936,Omega:937,alpha:945,beta:946,gamma:947,delta:948,epsilon:949,zeta:950,eta:951,theta:952,iota:953,kappa:954,lambda:955,mu:956,nu:957,xi:958,omicron:959,pi:960,rho:961,sigmaf:962,sigma:963,tau:964,upsilon:965,phi:966,chi:967,psi:968,omega:969,thetasym:977,upsih:978,piv:982,ensp:8194,emsp:8195,thinsp:8201,zwnj:8204,zwj:8205,lrm:8206,rlm:8207,ndash:8211,mdash:8212,lsquo:8216,rsquo:8217,sbquo:8218,ldquo:8220,rdquo:8221,bdquo:8222,dagger:8224,Dagger:8225,bull:8226,hellip:8230,permil:8240,prime:8242,Prime:8243,lsaquo:8249,rsaquo:8250,oline:8254,frasl:8260,euro:8364,image:8465,weierp:8472,real:8476,trade:8482,alefsym:8501,larr:8592,uarr:8593,rarr:8594,darr:8595,harr:8596,crarr:8629,lArr:8656,uArr:8657,rArr:8658,dArr:8659,hArr:8660,forall:8704,part:8706,exist:8707,empty:8709,nabla:8711,isin:8712,notin:8713,ni:8715,prod:8719,sum:8721,minus:8722,lowast:8727,radic:8730,prop:8733,infin:8734,ang:8736,and:8743,or:8744,cap:8745,cup:8746,int:8747,there4:8756,sim:8764,cong:8773,asymp:8776,ne:8800,equiv:8801,le:8804,ge:8805,sub:8834,sup:8835,nsub:8836,sube:8838,supe:8839,oplus:8853,otimes:8855,perp:8869,sdot:8901,lceil:8968,rceil:8969,lfloor:8970,rfloor:8971,lang:9001,rang:9002,loz:9674,spades:9824,clubs:9827,hearts:9829,diams:9830}));function Qz(e){const{factory:t,hoistVariableDeclaration:n}=e;return NJ(e,(function(t){return t.isDeclarationFile?t:nJ(t,r,e)}));function r(i){return 512&i.transformFlags?226===i.kind?function(i){switch(i.operatorToken.kind){case 68:return function(e){let i,o;const a=$B(e.left,r,U_),s=$B(e.right,r,U_);if(KD(a)){const e=t.createTempVariable(n),r=t.createTempVariable(n);i=nI(t.createElementAccessExpression(nI(t.createAssignment(e,a.expression),a.expression),nI(t.createAssignment(r,a.argumentExpression),a.argumentExpression)),a),o=nI(t.createElementAccessExpression(e,r),a)}else if(HD(a)){const e=t.createTempVariable(n);i=nI(t.createPropertyAccessExpression(nI(t.createAssignment(e,a.expression),a.expression),a.name),a),o=nI(t.createPropertyAccessExpression(e,a.name),a)}else i=a,o=a;return nI(t.createAssignment(i,nI(t.createGlobalMethodCall("Math","pow",[o,s]),e)),e)}(i);case 43:return function(e){const n=$B(e.left,r,U_),i=$B(e.right,r,U_);return nI(t.createGlobalMethodCall("Math","pow",[n,i]),e)}(i);default:return nJ(i,r,e)}}(i):nJ(i,r,e):i}}function Yz(e,t){return{kind:e,expression:t}}function Zz(e){const{factory:t,getEmitHelperFactory:n,startLexicalEnvironment:r,resumeLexicalEnvironment:i,endLexicalEnvironment:o,hoistVariableDeclaration:a}=e,s=e.getCompilerOptions(),c=e.getEmitResolver(),l=e.onSubstituteNode,_=e.onEmitNode;let u,d,p,f,m;function g(e){f=ie(f,t.createVariableDeclaration(e))}e.onEmitNode=function(e,t,n){if(1&h&&n_(t)){const r=y(32670,16&Qd(t)?81:65);return _(e,t,n),void b(r,0,0)}_(e,t,n)},e.onSubstituteNode=function(e,n){return n=l(e,n),1===e?function(e){switch(e.kind){case 80:return function(e){if(2&h&&!QP(e)){const n=c.getReferencedDeclarationWithCollidingName(e);if(n&&(!__(n)||!function(e,t){let n=dc(t);if(!n||n===e||n.end<=e.pos||n.pos>=e.end)return!1;const r=Dp(e);for(;n;){if(n===r||n===e)return!1;if(l_(n)&&n.parent===e)return!0;n=n.parent}return!1}(n,e)))return nI(t.getGeneratedNameForNode(Tc(n)),e)}return e}(e);case 110:return function(e){return 1&h&&16&p?nI(P(),e):e}(e)}return e}(n):zN(n)?function(e){if(2&h&&!QP(e)){const n=dc(e,zN);if(n&&function(e){switch(e.parent.kind){case 208:case 263:case 266:case 260:return e.parent.name===e&&c.isDeclarationWithCollidingName(e.parent)}return!1}(n))return nI(t.getGeneratedNameForNode(n),e)}return e}(n):n};let h=0;return NJ(e,(function(n){if(n.isDeclarationFile)return n;u=n,d=n.text;const i=function(e){const n=y(8064,64),i=[],a=[];r();const s=t.copyPrologue(e.statements,i,!1,S);return se(a,HB(e.statements,S,du,s)),f&&a.push(t.createVariableStatement(void 0,t.createVariableDeclarationList(f))),t.mergeLexicalEnvironment(i,o()),ce(i,e),b(n,0,0),t.updateSourceFile(e,nI(t.createNodeArray(K(i,a)),e.statements))}(n);return Tw(i,e.readEmitHelpers()),u=void 0,d=void 0,f=void 0,p=0,i}));function y(e,t){const n=p;return p=32767&(p&~e|t),n}function b(e,t,n){p=-32768&(p&~t|n)|e}function x(e){return!!(8192&p)&&253===e.kind&&!e.expression}function k(e){return!!(1024&e.transformFlags)||void 0!==m||8192&p&&function(e){return 4194304&e.transformFlags&&(RF(e)||FF(e)||MF(e)||BF(e)||ZF(e)||OE(e)||LE(e)||qF(e)||RE(e)||JF(e)||W_(e,!1)||CF(e))}(e)||W_(e,!1)&&qe(e)||!!(1&Yd(e))}function S(e){return k(e)?D(e,!1):e}function T(e){return k(e)?D(e,!0):e}function C(e){if(k(e)){const t=lc(e);if(cD(t)&&Dv(t)){const t=y(32670,16449),n=D(e,!1);return b(t,229376,0),n}return D(e,!1)}return e}function w(e){return 108===e.kind?lt(e,!0):S(e)}function D(n,r){switch(n.kind){case 126:return;case 263:return function(e){const n=t.createVariableDeclaration(t.getLocalName(e,!0),void 0,void 0,O(e));YC(n,e);const r=[],i=t.createVariableStatement(void 0,t.createVariableDeclarationList([n]));if(YC(i,e),nI(i,e),_A(i),r.push(i),wv(e,32)){const n=wv(e,2048)?t.createExportDefault(t.getLocalName(e)):t.createExternalModuleExport(t.getLocalName(e));YC(n,i),r.push(n)}return ke(r)}(n);case 231:return function(e){return O(e)}(n);case 169:return function(e){return e.dotDotDotToken?void 0:x_(e.name)?YC(nI(t.createParameterDeclaration(void 0,void 0,t.getGeneratedNameForNode(e),void 0,void 0,void 0),e),e):e.initializer?YC(nI(t.createParameterDeclaration(void 0,void 0,e.name,void 0,void 0,void 0),e),e):e}(n);case 262:return function(n){const r=m;m=void 0;const i=y(32670,65),o=QB(n.parameters,S,e),a=Se(n),s=32768&p?t.getLocalName(n):n.name;return b(i,229376,0),m=r,t.updateFunctionDeclaration(n,HB(n.modifiers,S,Yl),n.asteriskToken,s,void 0,o,void 0,a)}(n);case 219:return function(n){16384&n.transformFlags&&!(16384&p)&&(p|=131072);const r=m;m=void 0;const i=y(15232,66),o=t.createFunctionExpression(void 0,void 0,void 0,void 0,QB(n.parameters,S,e),void 0,Se(n));return nI(o,n),YC(o,n),nw(o,16),b(i,0,0),m=r,o}(n);case 218:return function(n){const r=524288&Qd(n)?y(32662,69):y(32670,65),i=m;m=void 0;const o=QB(n.parameters,S,e),a=Se(n),s=32768&p?t.getLocalName(n):n.name;return b(r,229376,0),m=i,t.updateFunctionExpression(n,void 0,n.asteriskToken,s,void 0,o,void 0,a)}(n);case 260:return we(n);case 80:return A(n);case 261:return function(n){if(7&n.flags||524288&n.transformFlags){7&n.flags&&_t();const e=HB(n.declarations,1&n.flags?Ce:we,VF),r=t.createVariableDeclarationList(e);return YC(r,n),nI(r,n),pw(r,n),524288&n.transformFlags&&(x_(n.declarations[0].name)||x_(ve(n.declarations).name))&&sw(r,function(e){let t=-1,n=-1;for(const r of e)t=-1===t?r.pos:-1===r.pos?t:Math.min(t,r.pos),n=Math.max(n,r.end);return Pb(t,n)}(e)),r}return nJ(n,S,e)}(n);case 255:return function(t){if(void 0!==m){const n=m.allowedNonLabeledJumps;m.allowedNonLabeledJumps|=2;const r=nJ(t,S,e);return m.allowedNonLabeledJumps=n,r}return nJ(t,S,e)}(n);case 269:return function(t){const n=y(7104,0),r=nJ(t,S,e);return b(n,0,0),r}(n);case 241:return function(t){const n=256&p?y(7104,512):y(6976,128),r=nJ(t,S,e);return b(n,0,0),r}(n);case 252:case 251:return function(n){if(m){const e=252===n.kind?2:4;if(!(n.label&&m.labels&&m.labels.get(mc(n.label))||!n.label&&m.allowedNonLabeledJumps&e)){let e;const r=n.label;r?252===n.kind?(e=`break-${r.escapedText}`,Ge(m,!0,mc(r),e)):(e=`continue-${r.escapedText}`,Ge(m,!1,mc(r),e)):252===n.kind?(m.nonLocalJumps|=2,e="break"):(m.nonLocalJumps|=4,e="continue");let i=t.createStringLiteral(e);if(m.loopOutParameters.length){const e=m.loopOutParameters;let n;for(let r=0;rwF(e)&&!!ge(e.declarationList.declarations).initializer,i=m;m=void 0;const o=HB(n.statements,C,du);m=i;const a=N(o,r),s=N(o,(e=>!r(e))),c=nt(ge(a),wF).declarationList.declarations[0],l=cA(c.initializer);let _=tt(l,nb);!_&&cF(l)&&28===l.operatorToken.kind&&(_=tt(l.left,nb));const u=nt(_?cA(_.right):l,GD),d=nt(cA(u.expression),eF),p=d.body.statements;let f=0,g=-1;const h=[];if(_){const e=tt(p[f],DF);e&&(h.push(e),f++),h.push(p[f]),f++,h.push(t.createExpressionStatement(t.createAssignment(_.left,nt(c.name,zN))))}for(;!RF(pe(p,g));)g--;se(h,p,f,g),g<-1&&se(h,p,g+1);const y=tt(pe(p,g),RF);for(const e of s)RF(e)&&(null==y?void 0:y.expression)&&!zN(y.expression)?h.push(y):h.push(e);return se(h,a,1),t.restoreOuterExpressions(e.expression,t.restoreOuterExpressions(c.initializer,t.restoreOuterExpressions(_&&_.right,t.updateCallExpression(u,t.restoreOuterExpressions(u.expression,t.updateFunctionExpression(d,void 0,void 0,void 0,void 0,d.parameters,void 0,t.updateBlock(d.body,h))),void 0,u.arguments))))}(n);const r=cA(n.expression);return 108===r.kind||om(r)||$(n.arguments,dF)?function(n){if(32768&n.transformFlags||108===n.expression.kind||om(cA(n.expression))){const{target:e,thisArg:r}=t.createCallBinding(n.expression,a);let i;if(108===n.expression.kind&&nw(r,8),i=32768&n.transformFlags?t.createFunctionApplyCall(un.checkDefined($B(e,w,U_)),108===n.expression.kind?r:un.checkDefined($B(r,S,U_)),rt(n.arguments,!0,!1,!1)):nI(t.createFunctionCallCall(un.checkDefined($B(e,w,U_)),108===n.expression.kind?r:un.checkDefined($B(r,S,U_)),HB(n.arguments,S,U_)),n),108===n.expression.kind){const e=t.createLogicalOr(i,Z());i=t.createAssignment(P(),e)}return YC(i,n)}return sf(n)&&(p|=131072),nJ(n,S,e)}(n):t.updateCallExpression(n,un.checkDefined($B(n.expression,w,U_)),void 0,HB(n.arguments,S,U_))}(n);case 214:return function(n){if($(n.arguments,dF)){const{target:e,thisArg:r}=t.createCallBinding(t.createPropertyAccessExpression(n.expression,"bind"),a);return t.createNewExpression(t.createFunctionApplyCall(un.checkDefined($B(e,S,U_)),r,rt(t.createNodeArray([t.createVoidZero(),...n.arguments]),!0,!1,!1)),void 0,[])}return nJ(n,S,e)}(n);case 217:return function(t,n){return nJ(t,n?T:S,e)}(n,r);case 226:return Te(n,r);case 356:return function(n,r){if(r)return nJ(n,T,e);let i;for(let e=0;e0&&e.push(t.createStringLiteral(r.literal.text)),n=t.createCallExpression(t.createPropertyAccessExpression(n,"concat"),void 0,e)}return nI(n,e)}(n);case 230:return function(e){return $B(e.expression,S,U_)}(n);case 108:return lt(n,!1);case 110:return function(e){return p|=65536,2&p&&!(16384&p)&&(p|=131072),m?2&p?(m.containsLexicalThis=!0,e):m.thisName||(m.thisName=t.createUniqueName("this")):e}(n);case 236:return function(e){return 105===e.keywordToken&&"target"===e.name.escapedText?(p|=32768,t.createUniqueName("_newTarget",48)):e}(n);case 174:return function(e){un.assert(!rD(e.name));const n=xe(e,Ib(e,-1),void 0,void 0);return nw(n,1024|Qd(n)),nI(t.createPropertyAssignment(e.name,n),e)}(n);case 177:case 178:return function(n){un.assert(!rD(n.name));const r=m;m=void 0;const i=y(32670,65);let o;const a=QB(n.parameters,S,e),s=Se(n);return o=177===n.kind?t.updateGetAccessorDeclaration(n,n.modifiers,n.name,a,n.type,s):t.updateSetAccessorDeclaration(n,n.modifiers,n.name,a,s),b(i,229376,0),m=r,o}(n);case 243:return function(n){const r=y(0,wv(n,32)?32:0);let i;if(!m||7&n.declarationList.flags||function(e){return 1===e.declarationList.declarations.length&&!!e.declarationList.declarations[0].initializer&&!!(1&Yd(e.declarationList.declarations[0].initializer))}(n))i=nJ(n,S,e);else{let r;for(const i of n.declarationList.declarations)if(Ve(m,i),i.initializer){let n;x_(i.name)?n=az(i,S,e,0):(n=t.createBinaryExpression(i.name,64,un.checkDefined($B(i.initializer,S,U_))),nI(n,i)),r=ie(r,n)}i=r?nI(t.createExpressionStatement(t.inlineExpressions(r)),n):void 0}return b(r,0,0),i}(n);case 253:return function(n){return m?(m.nonLocalJumps|=8,x(n)&&(n=F(n)),t.createReturnStatement(t.createObjectLiteralExpression([t.createPropertyAssignment(t.createIdentifier("value"),n.expression?un.checkDefined($B(n.expression,S,U_)):t.createVoidZero())]))):x(n)?F(n):nJ(n,S,e)}(n);default:return nJ(n,S,e)}}function F(e){return YC(t.createReturnStatement(P()),e)}function P(){return t.createUniqueName("_this",48)}function A(e){return m&&c.isArgumentsLocalBinding(e)?m.argumentsName||(m.argumentsName=t.createUniqueName("arguments")):256&e.flags?YC(nI(t.createIdentifier(fc(e.escapedText)),e),e):e}function O(a){a.name&&_t();const s=yh(a),c=t.createFunctionExpression(void 0,void 0,void 0,void 0,s?[t.createParameterDeclaration(void 0,void 0,ct())]:[],void 0,function(a,s){const c=[],l=t.getInternalName(a),_=Eh(l)?t.getGeneratedNameForNode(l):l;r(),function(e,r,i){i&&e.push(nI(t.createExpressionStatement(n().createExtendsHelper(t.getInternalName(r))),i))}(c,a,s),function(n,r,a,s){const c=m;m=void 0;const l=y(32662,73),_=rv(r),u=function(e,t){if(!e||!t)return!1;if($(e.parameters))return!1;const n=fe(e.body.statements);if(!n||!Zh(n)||244!==n.kind)return!1;const r=n.expression;if(!Zh(r)||213!==r.kind)return!1;const i=r.expression;if(!Zh(i)||108!==i.kind)return!1;const o=be(r.arguments);if(!o||!Zh(o)||230!==o.kind)return!1;const a=o.expression;return zN(a)&&"arguments"===a.escapedText}(_,void 0!==s),d=t.createFunctionDeclaration(void 0,void 0,a,void 0,function(t,n){return QB(t&&!n?t.parameters:void 0,S,e)||[]}(_,u),void 0,function(e,n,r,a){const s=!!r&&106!==cA(r.expression).kind;if(!e)return function(e,n){const r=[];i(),t.mergeLexicalEnvironment(r,o()),n&&r.push(t.createReturnStatement(t.createLogicalOr(t.createLogicalAnd(t.createStrictInequality(ct(),t.createNull()),t.createFunctionApplyCall(ct(),Z(),t.createIdentifier("arguments"))),Z())));const a=t.createNodeArray(r);nI(a,e.members);const s=t.createBlock(a,!0);return nI(s,e),nw(s,3072),s}(n,s);const c=[],l=[];i();const _=t.copyStandardPrologue(e.body.statements,c,0);(a||j(e.body))&&(p|=8192),se(l,HB(e.body.statements,S,du,_));const u=s||8192&p;ne(c,e),ae(c,e,a),_e(c,e),u?le(c,e,Z()):ce(c,e),t.mergeLexicalEnvironment(c,o()),u&&!Y(e.body)&&l.push(t.createReturnStatement(P()));const d=t.createBlock(nI(t.createNodeArray([...c,...l]),e.body.statements),!0);return nI(d,e.body),function(e,n,r){const i=e;return e=function(e){for(let n=0;n0;n--){const i=e.statements[n];if(RF(i)&&i.expression&&R(i.expression)){const i=e.statements[n-1];let o;if(DF(i)&&H(cA(i.expression)))o=i.expression;else if(r&&B(i)){const e=i.declarationList.declarations[0];G(cA(e.initializer))&&(o=t.createAssignment(P(),e.initializer))}if(!o)break;const a=t.createReturnStatement(o);YC(a,i),nI(a,i);const s=t.createNodeArray([...e.statements.slice(0,n-1),a,...e.statements.slice(n+1)]);return nI(s,e.statements),t.updateBlock(e,s)}}return e}(e,n),e!==i&&(e=function(e,n){if(16384&n.transformFlags||65536&p||131072&p)return e;for(const t of n.statements)if(134217728&t.transformFlags&&!JJ(t))return e;return t.updateBlock(e,HB(e.statements,X,du))}(e,n)),r&&(e=function(e){return t.updateBlock(e,HB(e.statements,Q,du))}(e)),e}(d,e.body,a)}(_,r,s,u));nI(d,_||r),s&&nw(d,16),n.push(d),b(l,229376,0),m=c}(c,a,_,s),function(e,t){for(const n of t.members)switch(n.kind){case 240:e.push(ue(n));break;case 174:e.push(de(ut(t,n),n,t));break;case 177:case 178:const r=dv(t.members,n);n===r.firstAccessor&&e.push(me(ut(t,n),r,t));break;case 176:case 175:break;default:un.failBadSyntaxKind(n,u&&u.fileName)}}(c,a);const f=jb(Xa(d,a.members.end),20),g=t.createPartiallyEmittedExpression(_);kT(g,f.end),nw(g,3072);const h=t.createReturnStatement(g);xT(h,f.pos),nw(h,3840),c.push(h),Ad(c,o());const v=t.createBlock(nI(t.createNodeArray(c),a.members),!0);return nw(v,3072),v}(a,s));nw(c,131072&Qd(a)|1048576);const l=t.createPartiallyEmittedExpression(c);kT(l,a.end),nw(l,3072);const _=t.createPartiallyEmittedExpression(l);kT(_,Xa(d,a.pos)),nw(_,3072);const f=t.createParenthesizedExpression(t.createCallExpression(_,void 0,s?[un.checkDefined($B(s.expression,S,U_))]:[]));return gw(f,3,"* @class "),f}function L(e){return wF(e)&&v(e.declarationList.declarations,(e=>zN(e.name)&&!e.initializer))}function j(e){if(sf(e))return!0;if(!(134217728&e.transformFlags))return!1;switch(e.kind){case 219:case 218:case 262:case 176:case 175:return!1;case 177:case 178:case 174:case 172:{const t=e;return!!rD(t.name)&&!!PI(t.name,j)}}return!!PI(e,j)}function R(e){return Vl(e)&&"_this"===mc(e)}function M(e){return Vl(e)&&"_super"===mc(e)}function B(e){return wF(e)&&1===e.declarationList.declarations.length&&function(e){return VF(e)&&R(e.name)&&!!e.initializer}(e.declarationList.declarations[0])}function J(e){return nb(e,!0)&&R(e.left)}function z(e){return GD(e)&&HD(e.expression)&&M(e.expression.expression)&&zN(e.expression.name)&&("call"===mc(e.expression.name)||"apply"===mc(e.expression.name))&&e.arguments.length>=1&&110===e.arguments[0].kind}function q(e){return cF(e)&&57===e.operatorToken.kind&&110===e.right.kind&&z(e.left)}function U(e){return cF(e)&&56===e.operatorToken.kind&&cF(e.left)&&38===e.left.operatorToken.kind&&M(e.left.left)&&106===e.left.right.kind&&z(e.right)&&"apply"===mc(e.right.expression.name)}function W(e){return cF(e)&&57===e.operatorToken.kind&&110===e.right.kind&&U(e.left)}function H(e){return J(e)&&q(e.right)}function G(e){return z(e)||q(e)||H(e)||U(e)||W(e)||function(e){return J(e)&&W(e.right)}(e)}function X(e){if(B(e)){if(110===e.declarationList.declarations[0].initializer.kind)return}else if(J(e))return t.createPartiallyEmittedExpression(e.right,e);switch(e.kind){case 219:case 218:case 262:case 176:case 175:return e;case 177:case 178:case 174:case 172:{const n=e;return rD(n.name)?t.replacePropertyName(n,nJ(n.name,X,void 0)):e}}return nJ(e,X,void 0)}function Q(e){if(z(e)&&2===e.arguments.length&&zN(e.arguments[1])&&"arguments"===mc(e.arguments[1]))return t.createLogicalAnd(t.createStrictInequality(ct(),t.createNull()),e);switch(e.kind){case 219:case 218:case 262:case 176:case 175:return e;case 177:case 178:case 174:case 172:{const n=e;return rD(n.name)?t.replacePropertyName(n,nJ(n.name,Q,void 0)):e}}return nJ(e,Q,void 0)}function Y(e){if(253===e.kind)return!0;if(245===e.kind){const t=e;if(t.elseStatement)return Y(t.thenStatement)&&Y(t.elseStatement)}else if(241===e.kind){const t=ye(e.statements);if(t&&Y(t))return!0}return!1}function Z(){return nw(t.createThis(),8)}function ee(e){return void 0!==e.initializer||x_(e.name)}function ne(e,t){if(!$(t.parameters,ee))return!1;let n=!1;for(const r of t.parameters){const{name:t,initializer:i,dotDotDotToken:o}=r;o||(x_(t)?n=re(e,r,t,i)||n:i&&(oe(e,r,t,i),n=!0))}return n}function re(n,r,i,o){return i.elements.length>0?(Ld(n,nw(t.createVariableStatement(void 0,t.createVariableDeclarationList(lz(r,S,e,0,t.getGeneratedNameForNode(r)))),2097152)),!0):!!o&&(Ld(n,nw(t.createExpressionStatement(t.createAssignment(t.getGeneratedNameForNode(r),un.checkDefined($B(o,S,U_)))),2097152)),!0)}function oe(e,n,r,i){i=un.checkDefined($B(i,S,U_));const o=t.createIfStatement(t.createTypeCheck(t.cloneNode(r),"undefined"),nw(nI(t.createBlock([t.createExpressionStatement(nw(nI(t.createAssignment(nw(wT(nI(t.cloneNode(r),r),r.parent),96),nw(i,3168|Qd(i))),n),3072))]),n),3905));_A(o),nI(o,n),nw(o,2101056),Ld(e,o)}function ae(n,r,i){const o=[],a=ye(r.parameters);if(!function(e,t){return!(!e||!e.dotDotDotToken||t)}(a,i))return!1;const s=80===a.name.kind?wT(nI(t.cloneNode(a.name),a.name),a.name.parent):t.createTempVariable(void 0);nw(s,96);const c=80===a.name.kind?t.cloneNode(a.name):s,l=r.parameters.length-1,_=t.createLoopVariable();o.push(nw(nI(t.createVariableStatement(void 0,t.createVariableDeclarationList([t.createVariableDeclaration(s,void 0,void 0,t.createArrayLiteralExpression([]))])),a),2097152));const u=t.createForStatement(nI(t.createVariableDeclarationList([t.createVariableDeclaration(_,void 0,void 0,t.createNumericLiteral(l))]),a),nI(t.createLessThan(_,t.createPropertyAccessExpression(t.createIdentifier("arguments"),"length")),a),nI(t.createPostfixIncrement(_),a),t.createBlock([_A(nI(t.createExpressionStatement(t.createAssignment(t.createElementAccessExpression(c,0===l?_:t.createSubtract(_,t.createNumericLiteral(l))),t.createElementAccessExpression(t.createIdentifier("arguments"),_))),a))]));return nw(u,2097152),_A(u),o.push(u),80!==a.name.kind&&o.push(nw(nI(t.createVariableStatement(void 0,t.createVariableDeclarationList(lz(a,S,e,0,c))),a),2097152)),Id(n,o),!0}function ce(e,n){return!!(131072&p&&219!==n.kind)&&(le(e,n,t.createThis()),!0)}function le(n,r,i){1&h||(h|=1,e.enableSubstitution(110),e.enableEmitNotification(176),e.enableEmitNotification(174),e.enableEmitNotification(177),e.enableEmitNotification(178),e.enableEmitNotification(219),e.enableEmitNotification(218),e.enableEmitNotification(262));const o=t.createVariableStatement(void 0,t.createVariableDeclarationList([t.createVariableDeclaration(P(),void 0,void 0,i)]));nw(o,2100224),sw(o,r),Ld(n,o)}function _e(e,n){if(32768&p){let r;switch(n.kind){case 219:return e;case 174:case 177:case 178:r=t.createVoidZero();break;case 176:r=t.createPropertyAccessExpression(nw(t.createThis(),8),"constructor");break;case 262:case 218:r=t.createConditionalExpression(t.createLogicalAnd(nw(t.createThis(),8),t.createBinaryExpression(nw(t.createThis(),8),104,t.getLocalName(n))),void 0,t.createPropertyAccessExpression(nw(t.createThis(),8),"constructor"),void 0,t.createVoidZero());break;default:return un.failBadSyntaxKind(n)}const i=t.createVariableStatement(void 0,t.createVariableDeclarationList([t.createVariableDeclaration(t.createUniqueName("_newTarget",48),void 0,void 0,r)]));nw(i,2100224),Ld(e,i)}return e}function ue(e){return nI(t.createEmptyStatement(),e)}function de(n,r,i){const o=dw(r),a=aw(r),s=xe(r,r,void 0,i),c=$B(r.name,S,e_);let l;if(un.assert(c),!qN(c)&&Ak(e.getCompilerOptions())){const e=rD(c)?c.expression:zN(c)?t.createStringLiteral(fc(c.escapedText)):c;l=t.createObjectDefinePropertyCall(n,e,t.createPropertyDescriptor({value:s,enumerable:!1,writable:!0,configurable:!0}))}else{const e=JP(t,n,c,r.name);l=t.createAssignment(e,s)}nw(s,3072),sw(s,a);const _=nI(t.createExpressionStatement(l),r);return YC(_,r),pw(_,o),nw(_,96),_}function me(e,n,r){const i=t.createExpressionStatement(he(e,n,r,!1));return nw(i,3072),sw(i,aw(n.firstAccessor)),i}function he(e,{firstAccessor:n,getAccessor:r,setAccessor:i},o,a){const s=wT(nI(t.cloneNode(e),e),e.parent);nw(s,3136),sw(s,n.name);const c=$B(n.name,S,e_);if(un.assert(c),qN(c))return un.failBadSyntaxKind(c,"Encountered unhandled private identifier while transforming ES2015.");const l=KP(t,c);nw(l,3104),sw(l,n.name);const _=[];if(r){const e=xe(r,void 0,void 0,o);sw(e,aw(r)),nw(e,1024);const n=t.createPropertyAssignment("get",e);pw(n,dw(r)),_.push(n)}if(i){const e=xe(i,void 0,void 0,o);sw(e,aw(i)),nw(e,1024);const n=t.createPropertyAssignment("set",e);pw(n,dw(i)),_.push(n)}_.push(t.createPropertyAssignment("enumerable",r||i?t.createFalse():t.createTrue()),t.createPropertyAssignment("configurable",t.createTrue()));const u=t.createCallExpression(t.createPropertyAccessExpression(t.createIdentifier("Object"),"defineProperty"),void 0,[s,l,t.createObjectLiteralExpression(_,!0)]);return a&&_A(u),u}function xe(n,r,i,o){const a=m;m=void 0;const s=o&&__(o)&&!Nv(n)?y(32670,73):y(32670,65),c=QB(n.parameters,S,e),l=Se(n);return 32768&p&&!i&&(262===n.kind||218===n.kind)&&(i=t.getGeneratedNameForNode(n)),b(s,229376,0),m=a,YC(nI(t.createFunctionExpression(void 0,n.asteriskToken,i,void 0,c,void 0,l),r),n)}function Se(e){let n,r,a=!1,s=!1;const c=[],l=[],_=e.body;let d;if(i(),CF(_)&&(d=t.copyStandardPrologue(_.statements,c,0,!1),d=t.copyCustomPrologue(_.statements,l,d,S,pf),d=t.copyCustomPrologue(_.statements,l,d,S,mf)),a=ne(l,e)||a,a=ae(l,e,!1)||a,CF(_))d=t.copyCustomPrologue(_.statements,l,d,S),n=_.statements,se(l,HB(_.statements,S,du,d)),!a&&_.multiLine&&(a=!0);else{un.assert(219===e.kind),n=Ab(_,-1);const i=e.equalsGreaterThanToken;Zh(i)||Zh(_)||(zb(i,_,u)?s=!0:a=!0);const o=$B(_,S,U_),c=t.createReturnStatement(o);nI(c,_),bw(c,_),nw(c,2880),l.push(c),r=_}if(t.mergeLexicalEnvironment(c,o()),_e(c,e),ce(c,e),$(c)&&(a=!0),l.unshift(...c),CF(_)&&te(l,_.statements))return _;const p=t.createBlock(nI(t.createNodeArray(l),n),a);return nI(p,e.body),!a&&s&&nw(p,1),r&&lw(p,20,r),YC(p,e.body),p}function Te(n,r){return rb(n)?az(n,S,e,0,!r):28===n.operatorToken.kind?t.updateBinaryExpression(n,un.checkDefined($B(n.left,T,U_)),n.operatorToken,un.checkDefined($B(n.right,r?T:S,U_))):nJ(n,S,e)}function Ce(n){return x_(n.name)?we(n):!n.initializer&&function(e){const t=c.hasNodeCheckFlag(e,16384),n=c.hasNodeCheckFlag(e,32768);return!(64&p||t&&n&&512&p)&&!(4096&p)&&(!c.isDeclarationWithCollidingName(e)||n&&!t&&!(6144&p))}(n)?t.updateVariableDeclaration(n,n.name,void 0,void 0,t.createVoidZero()):nJ(n,S,e)}function we(t){const n=y(32,0);let r;return r=x_(t.name)?lz(t,S,e,0,void 0,!!(32&n)):nJ(t,S,e),b(n,0,0),r}function Ne(e){m.labels.set(mc(e.label),!0)}function De(e){m.labels.set(mc(e.label),!1)}function Fe(n,i,a,s,c){const l=y(n,i),_=function(n,i,a,s){if(!qe(n)){let r;m&&(r=m.allowedNonLabeledJumps,m.allowedNonLabeledJumps=6);const o=s?s(n,i,void 0,a):t.restoreEnclosingLabel(AF(n)?function(e){return t.updateForStatement(e,$B(e.initializer,T,Z_),$B(e.condition,S,U_),$B(e.incrementor,T,U_),un.checkDefined($B(e.statement,S,du,t.liftToBlock)))}(n):nJ(n,S,e),i,m&&De);return m&&(m.allowedNonLabeledJumps=r),o}const c=function(e){let t;switch(e.kind){case 248:case 249:case 250:const n=e.initializer;n&&261===n.kind&&(t=n)}const n=[],r=[];if(t&&7&oc(t)){const i=Be(e)||Je(e)||ze(e);for(const o of t.declarations)Qe(e,o,n,r,i)}const i={loopParameters:n,loopOutParameters:r};return m&&(m.argumentsName&&(i.argumentsName=m.argumentsName),m.thisName&&(i.thisName=m.thisName),m.hoistedLocalVariables&&(i.hoistedLocalVariables=m.hoistedLocalVariables)),i}(n),l=[],_=m;m=c;const u=Be(n)?function(e,n){const r=t.createUniqueName("_loop_init"),i=!!(1048576&e.initializer.transformFlags);let o=0;n.containsLexicalThis&&(o|=16),i&&4&p&&(o|=524288);const a=[];a.push(t.createVariableStatement(void 0,e.initializer)),Ke(n.loopOutParameters,2,1,a);return{functionName:r,containsYield:i,functionDeclaration:t.createVariableStatement(void 0,nw(t.createVariableDeclarationList([t.createVariableDeclaration(r,void 0,void 0,nw(t.createFunctionExpression(void 0,i?t.createToken(42):void 0,void 0,void 0,void 0,void 0,un.checkDefined($B(t.createBlock(a,!0),S,CF))),o))]),4194304)),part:t.createVariableDeclarationList(E(n.loopOutParameters,$e))}}(n,c):void 0,d=Ue(n)?function(e,n,i){const a=t.createUniqueName("_loop");r();const s=$B(e.statement,S,du,t.liftToBlock),c=o(),l=[];(Je(e)||ze(e))&&(n.conditionVariable=t.createUniqueName("inc"),e.incrementor?l.push(t.createIfStatement(n.conditionVariable,t.createExpressionStatement(un.checkDefined($B(e.incrementor,S,U_))),t.createExpressionStatement(t.createAssignment(n.conditionVariable,t.createTrue())))):l.push(t.createIfStatement(t.createLogicalNot(n.conditionVariable),t.createExpressionStatement(t.createAssignment(n.conditionVariable,t.createTrue())))),Je(e)&&l.push(t.createIfStatement(t.createPrefixUnaryExpression(54,un.checkDefined($B(e.condition,S,U_))),un.checkDefined($B(t.createBreakStatement(),S,du))))),un.assert(s),CF(s)?se(l,s.statements):l.push(s),Ke(n.loopOutParameters,1,1,l),Ad(l,c);const _=t.createBlock(l,!0);CF(s)&&YC(_,s);const u=!!(1048576&e.statement.transformFlags);let d=1048576;n.containsLexicalThis&&(d|=16),u&&4&p&&(d|=524288);const f=t.createVariableStatement(void 0,nw(t.createVariableDeclarationList([t.createVariableDeclaration(a,void 0,void 0,nw(t.createFunctionExpression(void 0,u?t.createToken(42):void 0,void 0,void 0,n.loopParameters,void 0,_),d))]),4194304)),m=function(e,n,r,i){const o=[],a=!(-5&n.nonLocalJumps||n.labeledNonLocalBreaks||n.labeledNonLocalContinues),s=t.createCallExpression(e,void 0,E(n.loopParameters,(e=>e.name))),c=i?t.createYieldExpression(t.createToken(42),nw(s,8388608)):s;if(a)o.push(t.createExpressionStatement(c)),Ke(n.loopOutParameters,1,0,o);else{const e=t.createUniqueName("state"),i=t.createVariableStatement(void 0,t.createVariableDeclarationList([t.createVariableDeclaration(e,void 0,void 0,c)]));if(o.push(i),Ke(n.loopOutParameters,1,0,o),8&n.nonLocalJumps){let n;r?(r.nonLocalJumps|=8,n=t.createReturnStatement(e)):n=t.createReturnStatement(t.createPropertyAccessExpression(e,"value")),o.push(t.createIfStatement(t.createTypeCheck(e,"object"),n))}if(2&n.nonLocalJumps&&o.push(t.createIfStatement(t.createStrictEquality(e,t.createStringLiteral("break")),t.createBreakStatement())),n.labeledNonLocalBreaks||n.labeledNonLocalContinues){const i=[];Xe(n.labeledNonLocalBreaks,!0,e,r,i),Xe(n.labeledNonLocalContinues,!1,e,r,i),o.push(t.createSwitchStatement(e,t.createCaseBlock(i)))}}return o}(a,n,i,u);return{functionName:a,containsYield:u,functionDeclaration:f,part:m}}(n,c,_):void 0;let f;if(m=_,u&&l.push(u.functionDeclaration),d&&l.push(d.functionDeclaration),function(e,n,r){let i;if(n.argumentsName&&(r?r.argumentsName=n.argumentsName:(i||(i=[])).push(t.createVariableDeclaration(n.argumentsName,void 0,void 0,t.createIdentifier("arguments")))),n.thisName&&(r?r.thisName=n.thisName:(i||(i=[])).push(t.createVariableDeclaration(n.thisName,void 0,void 0,t.createIdentifier("this")))),n.hoistedLocalVariables)if(r)r.hoistedLocalVariables=n.hoistedLocalVariables;else{i||(i=[]);for(const e of n.hoistedLocalVariables)i.push(t.createVariableDeclaration(e))}if(n.loopOutParameters.length){i||(i=[]);for(const e of n.loopOutParameters)i.push(t.createVariableDeclaration(e.outParamName))}n.conditionVariable&&(i||(i=[]),i.push(t.createVariableDeclaration(n.conditionVariable,void 0,void 0,t.createFalse()))),i&&e.push(t.createVariableStatement(void 0,t.createVariableDeclarationList(i)))}(l,c,_),u&&l.push(function(e,n){const r=t.createCallExpression(e,void 0,[]),i=n?t.createYieldExpression(t.createToken(42),nw(r,8388608)):r;return t.createExpressionStatement(i)}(u.functionName,u.containsYield)),d)if(s)f=s(n,i,d.part,a);else{const e=We(n,u,t.createBlock(d.part,!0));f=t.restoreEnclosingLabel(e,i,m&&De)}else{const e=We(n,u,un.checkDefined($B(n.statement,S,du,t.liftToBlock)));f=t.restoreEnclosingLabel(e,i,m&&De)}return l.push(f),l}(a,s,l,c);return b(l,0,0),_}function Ee(e,t){return Fe(0,1280,e,t)}function Pe(e,t){return Fe(5056,3328,e,t)}function Ae(e,t){return Fe(3008,5376,e,t)}function Ie(e,t){return Fe(3008,5376,e,t,s.downlevelIteration?Re:je)}function Oe(n,r,i){const o=[],a=n.initializer;if(WF(a)){7&n.initializer.flags&&_t();const i=fe(a.declarations);if(i&&x_(i.name)){const a=lz(i,S,e,0,r),s=nI(t.createVariableDeclarationList(a),n.initializer);YC(s,n.initializer),sw(s,Pb(a[0].pos,ve(a).end)),o.push(t.createVariableStatement(void 0,s))}else o.push(nI(t.createVariableStatement(void 0,YC(nI(t.createVariableDeclarationList([t.createVariableDeclaration(i?i.name:t.createTempVariable(void 0),void 0,void 0,r)]),Ib(a,-1)),a)),Ab(a,-1)))}else{const e=t.createAssignment(a,r);rb(e)?o.push(t.createExpressionStatement(Te(e,!0))):(kT(e,a.end),o.push(nI(t.createExpressionStatement(un.checkDefined($B(e,S,U_))),Ab(a,-1))))}if(i)return Le(se(o,i));{const e=$B(n.statement,S,du,t.liftToBlock);return un.assert(e),CF(e)?t.updateBlock(e,nI(t.createNodeArray(K(o,e.statements)),e.statements)):(o.push(e),Le(o))}}function Le(e){return nw(t.createBlock(t.createNodeArray(e),!0),864)}function je(e,n,r){const i=$B(e.expression,S,U_);un.assert(i);const o=t.createLoopVariable(),a=zN(i)?t.getGeneratedNameForNode(i):t.createTempVariable(void 0);nw(i,96|Qd(i));const s=nI(t.createForStatement(nw(nI(t.createVariableDeclarationList([nI(t.createVariableDeclaration(o,void 0,void 0,t.createNumericLiteral(0)),Ib(e.expression,-1)),nI(t.createVariableDeclaration(a,void 0,void 0,i),e.expression)]),e.expression),4194304),nI(t.createLessThan(o,t.createPropertyAccessExpression(a,"length")),e.expression),nI(t.createPostfixIncrement(o),e.expression),Oe(e,t.createElementAccessExpression(a,o),r)),e);return nw(s,512),nI(s,e),t.restoreEnclosingLabel(s,n,m&&De)}function Re(e,r,i,o){const s=$B(e.expression,S,U_);un.assert(s);const c=zN(s)?t.getGeneratedNameForNode(s):t.createTempVariable(void 0),l=zN(s)?t.getGeneratedNameForNode(c):t.createTempVariable(void 0),_=t.createUniqueName("e"),u=t.getGeneratedNameForNode(_),d=t.createTempVariable(void 0),p=nI(n().createValuesHelper(s),e.expression),f=t.createCallExpression(t.createPropertyAccessExpression(c,"next"),void 0,[]);a(_),a(d);const g=1024&o?t.inlineExpressions([t.createAssignment(_,t.createVoidZero()),p]):p,h=nw(nI(t.createForStatement(nw(nI(t.createVariableDeclarationList([nI(t.createVariableDeclaration(c,void 0,void 0,g),e.expression),t.createVariableDeclaration(l,void 0,void 0,f)]),e.expression),4194304),t.createLogicalNot(t.createPropertyAccessExpression(l,"done")),t.createAssignment(l,f),Oe(e,t.createPropertyAccessExpression(l,"value"),i)),e),512);return t.createTryStatement(t.createBlock([t.restoreEnclosingLabel(h,r,m&&De)]),t.createCatchClause(t.createVariableDeclaration(u),nw(t.createBlock([t.createExpressionStatement(t.createAssignment(_,t.createObjectLiteralExpression([t.createPropertyAssignment("error",u)])))]),1)),t.createBlock([t.createTryStatement(t.createBlock([nw(t.createIfStatement(t.createLogicalAnd(t.createLogicalAnd(l,t.createLogicalNot(t.createPropertyAccessExpression(l,"done"))),t.createAssignment(d,t.createPropertyAccessExpression(c,"return"))),t.createExpressionStatement(t.createFunctionCallCall(d,c,[]))),1)]),void 0,nw(t.createBlock([nw(t.createIfStatement(_,t.createThrowStatement(t.createPropertyAccessExpression(_,"error"))),1)]),1))]))}function Me(e){return c.hasNodeCheckFlag(e,8192)}function Be(e){return AF(e)&&!!e.initializer&&Me(e.initializer)}function Je(e){return AF(e)&&!!e.condition&&Me(e.condition)}function ze(e){return AF(e)&&!!e.incrementor&&Me(e.incrementor)}function qe(e){return Ue(e)||Be(e)}function Ue(e){return c.hasNodeCheckFlag(e,4096)}function Ve(e,t){e.hoistedLocalVariables||(e.hoistedLocalVariables=[]),function t(n){if(80===n.kind)e.hoistedLocalVariables.push(n);else for(const e of n.elements)fF(e)||t(e.name)}(t.name)}function We(e,n,r){switch(e.kind){case 248:return function(e,n,r){const i=e.condition&&Me(e.condition),o=i||e.incrementor&&Me(e.incrementor);return t.updateForStatement(e,$B(n?n.part:e.initializer,T,Z_),$B(i?void 0:e.condition,S,U_),$B(o?void 0:e.incrementor,T,U_),r)}(e,n,r);case 249:return function(e,n){return t.updateForInStatement(e,un.checkDefined($B(e.initializer,S,Z_)),un.checkDefined($B(e.expression,S,U_)),n)}(e,r);case 250:return function(e,n){return t.updateForOfStatement(e,void 0,un.checkDefined($B(e.initializer,S,Z_)),un.checkDefined($B(e.expression,S,U_)),n)}(e,r);case 246:return function(e,n){return t.updateDoStatement(e,n,un.checkDefined($B(e.expression,S,U_)))}(e,r);case 247:return function(e,n){return t.updateWhileStatement(e,un.checkDefined($B(e.expression,S,U_)),n)}(e,r);default:return un.failBadSyntaxKind(e,"IterationStatement expected")}}function $e(e){return t.createVariableDeclaration(e.originalName,void 0,void 0,e.outParamName)}function He(e,n){const r=0===n?e.outParamName:e.originalName,i=0===n?e.originalName:e.outParamName;return t.createBinaryExpression(i,64,r)}function Ke(e,n,r,i){for(const o of e)o.flags&n&&i.push(t.createExpressionStatement(He(o,r)))}function Ge(e,t,n,r){t?(e.labeledNonLocalBreaks||(e.labeledNonLocalBreaks=new Map),e.labeledNonLocalBreaks.set(n,r)):(e.labeledNonLocalContinues||(e.labeledNonLocalContinues=new Map),e.labeledNonLocalContinues.set(n,r))}function Xe(e,n,r,i,o){e&&e.forEach(((e,a)=>{const s=[];if(!i||i.labels&&i.labels.get(a)){const e=t.createIdentifier(a);s.push(n?t.createBreakStatement(e):t.createContinueStatement(e))}else Ge(i,n,a,e),s.push(t.createReturnStatement(r));o.push(t.createCaseClause(t.createStringLiteral(e),s))}))}function Qe(e,n,r,i,o){const a=n.name;if(x_(a))for(const t of a.elements)fF(t)||Qe(e,t,r,i,o);else{r.push(t.createParameterDeclaration(void 0,void 0,a));const s=c.hasNodeCheckFlag(n,65536);if(s||o){const r=t.createUniqueName("out_"+mc(a));let o=0;s&&(o|=1),AF(e)&&(e.initializer&&c.isBindingCapturedByNode(e.initializer,n)&&(o|=2),(e.condition&&c.isBindingCapturedByNode(e.condition,n)||e.incrementor&&c.isBindingCapturedByNode(e.incrementor,n))&&(o|=1)),i.push({flags:o,originalName:a,outParamName:r})}}}function Ye(e,n,r){const i=t.createAssignment(JP(t,n,un.checkDefined($B(e.name,S,e_))),un.checkDefined($B(e.initializer,S,U_)));return nI(i,e),r&&_A(i),i}function Ze(e,n,r){const i=t.createAssignment(JP(t,n,un.checkDefined($B(e.name,S,e_))),t.cloneNode(e.name));return nI(i,e),r&&_A(i),i}function et(e,n,r,i){const o=t.createAssignment(JP(t,n,un.checkDefined($B(e.name,S,e_))),xe(e,e,void 0,r));return nI(o,e),i&&_A(o),o}function rt(e,r,i,o){const a=e.length,c=I(V(e,it,((e,t,n,r)=>t(e,i,o&&r===a))));if(1===c.length){const e=c[0];if(r&&!s.downlevelIteration||FT(e.expression)||xN(e.expression,"___spreadArray"))return e.expression}const l=n(),_=0!==c[0].kind;let u=_?t.createArrayLiteralExpression():c[0].expression;for(let e=_?0:1;e0?t.inlineExpressions(E(i,G)):void 0,$B(n.condition,M,U_),$B(n.incrementor,M,U_),eJ(n.statement,M,e))}else n=nJ(n,M,e);return m&&ce(),n}(r);case 249:return function(n){m&&ae();const r=n.initializer;if(WF(r)){for(const e of r.declarations)a(e.name);n=t.updateForInStatement(n,r.declarations[0].name,un.checkDefined($B(n.expression,M,U_)),un.checkDefined($B(n.statement,M,du,t.liftToBlock)))}else n=nJ(n,M,e);return m&&ce(),n}(r);case 252:return function(t){if(m){const e=me(t.label&&mc(t.label));if(e>0)return be(e,t)}return nJ(t,M,e)}(r);case 251:return function(t){if(m){const e=ge(t.label&&mc(t.label));if(e>0)return be(e,t)}return nJ(t,M,e)}(r);case 253:return function(e){return n=$B(e.expression,M,U_),r=e,nI(t.createReturnStatement(t.createArrayLiteralExpression(n?[ve(2),n]:[ve(2)])),r);var n,r}(r);default:return 1048576&r.transformFlags?function(r){switch(r.kind){case 226:return function(n){const r=ty(n);switch(r){case 0:return function(n){return X(n.right)?Kv(n.operatorToken.kind)?function(e){const t=ee(),n=Z();return Se(n,un.checkDefined($B(e.left,M,U_)),e.left),56===e.operatorToken.kind?Ne(t,n,e.left):Ce(t,n,e.left),Se(n,un.checkDefined($B(e.right,M,U_)),e.right),te(t),n}(n):28===n.operatorToken.kind?U(n):t.updateBinaryExpression(n,Y(un.checkDefined($B(n.left,M,U_))),n.operatorToken,un.checkDefined($B(n.right,M,U_))):nJ(n,M,e)}(n);case 1:return function(n){const{left:r,right:i}=n;if(X(i)){let e;switch(r.kind){case 211:e=t.updatePropertyAccessExpression(r,Y(un.checkDefined($B(r.expression,M,R_))),r.name);break;case 212:e=t.updateElementAccessExpression(r,Y(un.checkDefined($B(r.expression,M,R_))),Y(un.checkDefined($B(r.argumentExpression,M,U_))));break;default:e=un.checkDefined($B(r,M,U_))}const o=n.operatorToken.kind;return MJ(o)?nI(t.createAssignment(e,nI(t.createBinaryExpression(Y(e),BJ(o),un.checkDefined($B(i,M,U_))),n)),n):t.updateBinaryExpression(n,e,n.operatorToken,un.checkDefined($B(i,M,U_)))}return nJ(n,M,e)}(n);default:return un.assertNever(r)}}(r);case 356:return function(e){let n=[];for(const r of e.elements)cF(r)&&28===r.operatorToken.kind?n.push(U(r)):(X(r)&&n.length>0&&(De(1,[t.createExpressionStatement(t.inlineExpressions(n))]),n=[]),n.push(un.checkDefined($B(r,M,U_))));return t.inlineExpressions(n)}(r);case 227:return function(t){if(X(t.whenTrue)||X(t.whenFalse)){const e=ee(),n=ee(),r=Z();return Ne(e,un.checkDefined($B(t.condition,M,U_)),t.condition),Se(r,un.checkDefined($B(t.whenTrue,M,U_)),t.whenTrue),Te(n),te(e),Se(r,un.checkDefined($B(t.whenFalse,M,U_)),t.whenFalse),te(n),r}return nJ(t,M,e)}(r);case 229:return function(e){const r=ee(),i=$B(e.expression,M,U_);return e.asteriskToken?function(e,t){De(7,[e],t)}(8388608&Qd(e.expression)?i:nI(n().createValuesHelper(i),e),e):function(e,t){De(6,[e],t)}(i,e),te(r),o=e,nI(t.createCallExpression(t.createPropertyAccessExpression(C,"sent"),void 0,[]),o);var o}(r);case 209:return function(e){return V(e.elements,void 0,void 0,e.multiLine)}(r);case 210:return function(e){const n=e.properties,r=e.multiLine,i=Q(n),o=Z();Se(o,t.createObjectLiteralExpression(HB(n,M,y_,0,i),r));const a=we(n,(function(n,i){X(i)&&n.length>0&&(ke(t.createExpressionStatement(t.inlineExpressions(n))),n=[]);const a=$B(GP(t,e,i,o),M,U_);return a&&(r&&_A(a),n.push(a)),n}),[],i);return a.push(r?_A(wT(nI(t.cloneNode(o),o),o.parent)):o),t.inlineExpressions(a)}(r);case 212:return function(n){return X(n.argumentExpression)?t.updateElementAccessExpression(n,Y(un.checkDefined($B(n.expression,M,R_))),un.checkDefined($B(n.argumentExpression,M,U_))):nJ(n,M,e)}(r);case 213:return function(n){if(!cf(n)&&d(n.arguments,X)){const{target:e,thisArg:r}=t.createCallBinding(n.expression,a,c,!0);return YC(nI(t.createFunctionApplyCall(Y(un.checkDefined($B(e,M,R_))),r,V(n.arguments)),n),n)}return nJ(n,M,e)}(r);case 214:return function(n){if(d(n.arguments,X)){const{target:e,thisArg:r}=t.createCallBinding(t.createPropertyAccessExpression(n.expression,"bind"),a);return YC(nI(t.createNewExpression(t.createFunctionApplyCall(Y(un.checkDefined($B(e,M,U_))),r,V(n.arguments,t.createVoidZero())),void 0,[]),n),n)}return nJ(n,M,e)}(r);default:return nJ(r,M,e)}}(r):4196352&r.transformFlags?nJ(r,M,e):r}}function J(n){if(n.asteriskToken)n=YC(nI(t.createFunctionDeclaration(n.modifiers,void 0,n.name,void 0,QB(n.parameters,M,e),void 0,q(n.body)),n),n);else{const t=f,r=m;f=!1,m=!1,n=nJ(n,M,e),f=t,m=r}return f?void o(n):n}function z(n){if(n.asteriskToken)n=YC(nI(t.createFunctionExpression(void 0,void 0,n.name,void 0,QB(n.parameters,M,e),void 0,q(n.body)),n),n);else{const t=f,r=m;f=!1,m=!1,n=nJ(n,M,e),f=t,m=r}return n}function q(e){const o=[],a=f,s=m,c=g,l=h,_=y,u=v,d=b,p=x,E=L,B=k,J=S,z=T,q=C;f=!0,m=!1,g=void 0,h=void 0,y=void 0,v=void 0,b=void 0,x=void 0,L=1,k=void 0,S=void 0,T=void 0,C=t.createTempVariable(void 0),r();const U=t.copyPrologue(e.statements,o,!1,M);W(e.statements,U);const V=function(){j=0,R=0,w=void 0,N=!1,D=!1,F=void 0,P=void 0,A=void 0,I=void 0,O=void 0;const e=function(){if(k){for(let e=0;e0)),1048576))}();return Ad(o,i()),o.push(t.createReturnStatement(V)),f=a,m=s,g=c,h=l,y=_,v=u,b=d,x=p,L=E,k=B,S=J,T=z,C=q,nI(t.createBlock(o,e.multiLine),e)}function U(e){let n=[];return r(e.left),r(e.right),t.inlineExpressions(n);function r(e){cF(e)&&28===e.operatorToken.kind?(r(e.left),r(e.right)):(X(e)&&n.length>0&&(De(1,[t.createExpressionStatement(t.inlineExpressions(n))]),n=[]),n.push(un.checkDefined($B(e,M,U_))))}}function V(e,n,r,i){const o=Q(e);let a;if(o>0){a=Z();const r=HB(e,M,U_,0,o);Se(a,t.createArrayLiteralExpression(n?[n,...r]:r)),n=void 0}const s=we(e,(function(e,r){if(X(r)&&e.length>0){const r=void 0!==a;a||(a=Z()),Se(a,r?t.createArrayConcatCall(a,[t.createArrayLiteralExpression(e,i)]):t.createArrayLiteralExpression(n?[n,...e]:e,i)),n=void 0,e=[]}return e.push(un.checkDefined($B(r,M,U_))),e}),[],o);return a?t.createArrayConcatCall(a,[t.createArrayLiteralExpression(s,i)]):nI(t.createArrayLiteralExpression(n?[n,...s]:s,i),r)}function W(e,t=0){const n=e.length;for(let r=t;r0?Te(t,e):ke(e)}(n);case 252:return function(e){const t=me(e.label?mc(e.label):void 0);t>0?Te(t,e):ke(e)}(n);case 253:return function(e){De(8,[$B(e.expression,M,U_)],e)}(n);case 254:return function(e){X(e)?(function(e){const t=ee(),n=ee();te(t),ne({kind:1,expression:e,startLabel:t,endLabel:n})}(Y(un.checkDefined($B(e.expression,M,U_)))),$(e.statement),un.assert(1===oe()),te(re().endLabel)):ke($B(e,M,du))}(n);case 255:return function(e){if(X(e.caseBlock)){const n=e.caseBlock,r=n.clauses.length,i=function(){const e=ee();return ne({kind:2,isScript:!1,breakLabel:e}),e}(),o=Y(un.checkDefined($B(e.expression,M,U_))),a=[];let s=-1;for(let e=0;e0)break;l.push(t.createCaseClause(un.checkDefined($B(r.expression,M,U_)),[be(a[i],r.expression)]))}else e++}l.length&&(ke(t.createSwitchStatement(o,t.createCaseBlock(l))),c+=l.length,l=[]),e>0&&(c+=e,e=0)}Te(s>=0?a[s]:i);for(let e=0;e0)break;o.push(G(t))}o.length&&(ke(t.createExpressionStatement(t.inlineExpressions(o))),i+=o.length,o=[])}}function G(e){return sw(t.createAssignment(sw(t.cloneNode(e.name),e.name),un.checkDefined($B(e.initializer,M,U_))),e)}function X(e){return!!e&&!!(1048576&e.transformFlags)}function Q(e){const t=e.length;for(let n=0;n=0;n--){const t=v[n];if(!de(t))break;if(t.labelText===e)return!0}return!1}function me(e){if(v)if(e)for(let t=v.length-1;t>=0;t--){const n=v[t];if(de(n)&&n.labelText===e)return n.breakLabel;if(ue(n)&&fe(e,t-1))return n.breakLabel}else for(let e=v.length-1;e>=0;e--){const t=v[e];if(ue(t))return t.breakLabel}return 0}function ge(e){if(v)if(e)for(let t=v.length-1;t>=0;t--){const n=v[t];if(pe(n)&&fe(e,t-1))return n.continueLabel}else for(let e=v.length-1;e>=0;e--){const t=v[e];if(pe(t))return t.continueLabel}return 0}function he(e){if(void 0!==e&&e>0){void 0===x&&(x=[]);const n=t.createNumericLiteral(Number.MAX_SAFE_INTEGER);return void 0===x[e]?x[e]=[n]:x[e].push(n),n}return t.createOmittedExpression()}function ve(e){const n=t.createNumericLiteral(e);return vw(n,3,function(e){switch(e){case 2:return"return";case 3:return"break";case 4:return"yield";case 5:return"yield*";case 7:return"endfinally";default:return}}(e)),n}function be(e,n){return un.assertLessThan(0,e,"Invalid label"),nI(t.createReturnStatement(t.createArrayLiteralExpression([ve(3),he(e)])),n)}function xe(){De(0)}function ke(e){e?De(1,[e]):xe()}function Se(e,t,n){De(2,[e,t],n)}function Te(e,t){De(3,[e],t)}function Ce(e,t,n){De(4,[e,t],n)}function Ne(e,t,n){De(5,[e,t],n)}function De(e,t,n){void 0===k&&(k=[],S=[],T=[]),void 0===b&&te(ee());const r=k.length;k[r]=e,S[r]=t,T[r]=n}function Fe(e){(function(e){if(!D)return!0;if(!b||!x)return!1;for(let t=0;t=0;e--){const n=O[e];P=[t.createWithStatement(n.expression,t.createBlock(P))]}if(I){const{startLabel:e,catchLabel:n,finallyLabel:r,endLabel:i}=I;P.unshift(t.createExpressionStatement(t.createCallExpression(t.createPropertyAccessExpression(t.createPropertyAccessExpression(C,"trys"),"push"),void 0,[t.createArrayLiteralExpression([he(e),he(n),he(r),he(i)])]))),I=void 0}e&&P.push(t.createExpressionStatement(t.createAssignment(t.createPropertyAccessExpression(C,"label"),t.createNumericLiteral(R+1))))}F.push(t.createCaseClause(t.createNumericLiteral(R),P||[])),P=void 0}function Pe(e){if(b)for(let t=0;t{Lu(e.arguments[0])&&!bg(e.arguments[0].text,a)||(y=ie(y,e))}));const n=function(e){switch(e){case 2:return S;case 3:return T;default:return k}}(d)(t);return g=void 0,h=void 0,b=!1,n}));function x(){return!(AS(g.fileName)&&g.commonJsModuleIndicator&&(!g.externalModuleIndicator||!0===g.externalModuleIndicator)||h.exportEquals||!MI(g))}function k(n){r();const o=[],s=Mk(a,"alwaysStrict")||MI(g),c=t.copyPrologue(n.statements,o,s&&!Yp(n),F);if(x()&&ie(o,G()),$(h.exportedNames)){const e=50;for(let n=0;n11===n.kind?t.createAssignment(t.createElementAccessExpression(t.createIdentifier("exports"),t.createStringLiteral(n.text)),e):t.createAssignment(t.createPropertyAccessExpression(t.createIdentifier("exports"),t.createIdentifier(mc(n))),e)),t.createVoidZero())))}for(const e of h.exportedFunctions)W(o,e);ie(o,$B(h.externalHelpersImportDeclaration,F,du)),se(o,HB(n.statements,F,du,c)),D(o,!1),Ad(o,i());const l=t.updateSourceFile(n,nI(t.createNodeArray(o),n.statements));return Tw(l,e.readEmitHelpers()),l}function S(n){const r=t.createIdentifier("define"),i=gA(t,n,c,a),o=Yp(n)&&n,{aliasedModuleNames:s,unaliasedModuleNames:_,importAliasNames:u}=C(n,!0),d=t.updateSourceFile(n,nI(t.createNodeArray([t.createExpressionStatement(t.createCallExpression(r,void 0,[...i?[i]:[],t.createArrayLiteralExpression(o?l:[t.createStringLiteral("require"),t.createStringLiteral("exports"),...s,..._]),o?o.statements.length?o.statements[0].expression:t.createObjectLiteralExpression():t.createFunctionExpression(void 0,void 0,void 0,void 0,[t.createParameterDeclaration(void 0,void 0,"require"),t.createParameterDeclaration(void 0,void 0,"exports"),...u],void 0,N(n))]))]),n.statements));return Tw(d,e.readEmitHelpers()),d}function T(n){const{aliasedModuleNames:r,unaliasedModuleNames:i,importAliasNames:o}=C(n,!1),s=gA(t,n,c,a),l=t.createFunctionExpression(void 0,void 0,void 0,void 0,[t.createParameterDeclaration(void 0,void 0,"factory")],void 0,nI(t.createBlock([t.createIfStatement(t.createLogicalAnd(t.createTypeCheck(t.createIdentifier("module"),"object"),t.createTypeCheck(t.createPropertyAccessExpression(t.createIdentifier("module"),"exports"),"object")),t.createBlock([t.createVariableStatement(void 0,[t.createVariableDeclaration("v",void 0,void 0,t.createCallExpression(t.createIdentifier("factory"),void 0,[t.createIdentifier("require"),t.createIdentifier("exports")]))]),nw(t.createIfStatement(t.createStrictInequality(t.createIdentifier("v"),t.createIdentifier("undefined")),t.createExpressionStatement(t.createAssignment(t.createPropertyAccessExpression(t.createIdentifier("module"),"exports"),t.createIdentifier("v")))),1)]),t.createIfStatement(t.createLogicalAnd(t.createTypeCheck(t.createIdentifier("define"),"function"),t.createPropertyAccessExpression(t.createIdentifier("define"),"amd")),t.createBlock([t.createExpressionStatement(t.createCallExpression(t.createIdentifier("define"),void 0,[...s?[s]:[],t.createArrayLiteralExpression([t.createStringLiteral("require"),t.createStringLiteral("exports"),...r,...i]),t.createIdentifier("factory")]))])))],!0),void 0)),_=t.updateSourceFile(n,nI(t.createNodeArray([t.createExpressionStatement(t.createCallExpression(l,void 0,[t.createFunctionExpression(void 0,void 0,void 0,void 0,[t.createParameterDeclaration(void 0,void 0,"require"),t.createParameterDeclaration(void 0,void 0,"exports"),...o],void 0,N(n))]))]),n.statements));return Tw(_,e.readEmitHelpers()),_}function C(e,n){const r=[],i=[],o=[];for(const n of e.amdDependencies)n.name?(r.push(t.createStringLiteral(n.path)),o.push(t.createParameterDeclaration(void 0,void 0,n.name))):i.push(t.createStringLiteral(n.path));for(const e of h.externalImports){const l=mA(t,e,g,c,s,a),_=fA(t,e,g);l&&(n&&_?(nw(_,8),r.push(l),o.push(t.createParameterDeclaration(void 0,void 0,_))):i.push(l))}return{aliasedModuleNames:r,unaliasedModuleNames:i,importAliasNames:o}}function w(e){if(tE(e)||fE(e)||!mA(t,e,g,c,s,a))return;const n=fA(t,e,g),r=M(e,n);return r!==n?t.createExpressionStatement(t.createAssignment(n,r)):void 0}function N(e){r();const n=[],o=t.copyPrologue(e.statements,n,!0,F);x()&&ie(n,G()),$(h.exportedNames)&&ie(n,t.createExpressionStatement(we(h.exportedNames,((e,n)=>11===n.kind?t.createAssignment(t.createElementAccessExpression(t.createIdentifier("exports"),t.createStringLiteral(n.text)),e):t.createAssignment(t.createPropertyAccessExpression(t.createIdentifier("exports"),t.createIdentifier(mc(n))),e)),t.createVoidZero())));for(const e of h.exportedFunctions)W(n,e);ie(n,$B(h.externalHelpersImportDeclaration,F,du)),2===d&&se(n,B(h.externalImports,w)),se(n,HB(e.statements,F,du,o)),D(n,!0),Ad(n,i());const a=t.createBlock(n,!0);return b&&Sw(a,nq),a}function D(e,n){if(h.exportEquals){const r=$B(h.exportEquals.expression,A,U_);if(r)if(n){const n=t.createReturnStatement(r);nI(n,h.exportEquals),nw(n,3840),e.push(n)}else{const n=t.createExpressionStatement(t.createAssignment(t.createPropertyAccessExpression(t.createIdentifier("module"),"exports"),r));nI(n,h.exportEquals),nw(n,3072),e.push(n)}}}function F(e){switch(e.kind){case 272:return function(e){let n;const r=kg(e);if(2!==d){if(!e.importClause)return YC(nI(t.createExpressionStatement(J(e)),e),e);{const i=[];r&&!Sg(e)?i.push(t.createVariableDeclaration(t.cloneNode(r.name),void 0,void 0,M(e,J(e)))):(i.push(t.createVariableDeclaration(t.getGeneratedNameForNode(e),void 0,void 0,M(e,J(e)))),r&&Sg(e)&&i.push(t.createVariableDeclaration(t.cloneNode(r.name),void 0,void 0,t.getGeneratedNameForNode(e)))),n=ie(n,YC(nI(t.createVariableStatement(void 0,t.createVariableDeclarationList(i,_>=2?2:0)),e),e))}}else r&&Sg(e)&&(n=ie(n,t.createVariableStatement(void 0,t.createVariableDeclarationList([YC(nI(t.createVariableDeclaration(t.cloneNode(r.name),void 0,void 0,t.getGeneratedNameForNode(e)),e),e)],_>=2?2:0))));return n=function(e,t){if(h.exportEquals)return e;const n=t.importClause;if(!n)return e;const r=new OJ;n.name&&(e=H(e,r,n));const i=n.namedBindings;if(i)switch(i.kind){case 274:e=H(e,r,i);break;case 275:for(const t of i.elements)e=H(e,r,t,!0)}return e}(n,e),ke(n)}(e);case 271:return function(e){let n;return un.assert(Sm(e),"import= for internal module references should be handled in an earlier transformer."),2!==d?n=wv(e,32)?ie(n,YC(nI(t.createExpressionStatement(Q(e.name,J(e))),e),e)):ie(n,YC(nI(t.createVariableStatement(void 0,t.createVariableDeclarationList([t.createVariableDeclaration(t.cloneNode(e.name),void 0,void 0,J(e))],_>=2?2:0)),e),e)):wv(e,32)&&(n=ie(n,YC(nI(t.createExpressionStatement(Q(t.getExportName(e),t.getLocalName(e))),e),e))),n=function(e,t){return h.exportEquals?e:H(e,new OJ,t)}(n,e),ke(n)}(e);case 278:return function(e){if(!e.moduleSpecifier)return;const r=t.getGeneratedNameForNode(e);if(e.exportClause&&mE(e.exportClause)){const i=[];2!==d&&i.push(YC(nI(t.createVariableStatement(void 0,t.createVariableDeclarationList([t.createVariableDeclaration(r,void 0,void 0,J(e))])),e),e));for(const o of e.exportClause.elements){const s=o.propertyName||o.name,c=!kk(a)||2&Yd(e)||!$d(s)?r:n().createImportDefaultHelper(r),l=11===s.kind?t.createElementAccessExpression(c,s):t.createPropertyAccessExpression(c,s);i.push(YC(nI(t.createExpressionStatement(Q(11===o.name.kind?t.cloneNode(o.name):t.getExportName(o),l,void 0,!0)),o),o))}return ke(i)}if(e.exportClause){const i=[];return i.push(YC(nI(t.createExpressionStatement(Q(t.cloneNode(e.exportClause.name),function(e,t){return!kk(a)||2&Yd(e)?t:DJ(e)?n().createImportStarHelper(t):t}(e,2!==d?J(e):Ud(e)||11===e.exportClause.name.kind?r:t.createIdentifier(mc(e.exportClause.name))))),e),e)),ke(i)}return YC(nI(t.createExpressionStatement(n().createExportStarHelper(2!==d?J(e):r)),e),e)}(e);case 277:return function(e){if(!e.isExportEquals)return X(t.createIdentifier("default"),$B(e.expression,A,U_),e,!0)}(e);default:return E(e)}}function E(n){switch(n.kind){case 243:return function(n){let r,i,o;if(wv(n,32)){let e,a=!1;for(const r of n.declarationList.declarations)if(zN(r.name)&&YP(r.name))e||(e=HB(n.modifiers,Y,Yl)),i=r.initializer?ie(i,t.updateVariableDeclaration(r,r.name,void 0,void 0,Q(r.name,$B(r.initializer,A,U_)))):ie(i,r);else if(r.initializer)if(!x_(r.name)&&(tF(r.initializer)||eF(r.initializer)||pF(r.initializer))){const e=t.createAssignment(nI(t.createPropertyAccessExpression(t.createIdentifier("exports"),r.name),r.name),t.createIdentifier(zh(r.name)));i=ie(i,t.createVariableDeclaration(r.name,r.exclamationToken,r.type,$B(r.initializer,A,U_))),o=ie(o,e),a=!0}else o=ie(o,q(r));if(i&&(r=ie(r,t.updateVariableStatement(n,e,t.updateVariableDeclarationList(n.declarationList,i)))),o){const e=YC(nI(t.createExpressionStatement(t.inlineExpressions(o)),n),n);a&&tw(e),r=ie(r,e)}}else r=ie(r,nJ(n,A,e));return r=function(e,t){return U(e,t.declarationList,!1)}(r,n),ke(r)}(n);case 262:return function(n){let r;return r=wv(n,32)?ie(r,YC(nI(t.createFunctionDeclaration(HB(n.modifiers,Y,Yl),n.asteriskToken,t.getDeclarationName(n,!0,!0),void 0,HB(n.parameters,A,oD),void 0,nJ(n.body,A,e)),n),n)):ie(r,nJ(n,A,e)),ke(r)}(n);case 263:return function(n){let r;return r=wv(n,32)?ie(r,YC(nI(t.createClassDeclaration(HB(n.modifiers,Y,m_),t.getDeclarationName(n,!0,!0),void 0,HB(n.heritageClauses,A,jE),HB(n.members,A,l_)),n),n)):ie(r,nJ(n,A,e)),r=W(r,n),ke(r)}(n);case 248:return L(n,!0);case 249:return function(n){if(WF(n.initializer)&&!(7&n.initializer.flags)){const r=U(void 0,n.initializer,!0);if($(r)){const i=$B(n.initializer,I,Z_),o=$B(n.expression,A,U_),a=eJ(n.statement,E,e),s=CF(a)?t.updateBlock(a,[...r,...a.statements]):t.createBlock([...r,a],!0);return t.updateForInStatement(n,i,o,s)}}return t.updateForInStatement(n,$B(n.initializer,I,Z_),$B(n.expression,A,U_),eJ(n.statement,E,e))}(n);case 250:return function(n){if(WF(n.initializer)&&!(7&n.initializer.flags)){const r=U(void 0,n.initializer,!0),i=$B(n.initializer,I,Z_),o=$B(n.expression,A,U_);let a=eJ(n.statement,E,e);return $(r)&&(a=CF(a)?t.updateBlock(a,[...r,...a.statements]):t.createBlock([...r,a],!0)),t.updateForOfStatement(n,n.awaitModifier,i,o,a)}return t.updateForOfStatement(n,n.awaitModifier,$B(n.initializer,I,Z_),$B(n.expression,A,U_),eJ(n.statement,E,e))}(n);case 246:return function(n){return t.updateDoStatement(n,eJ(n.statement,E,e),$B(n.expression,A,U_))}(n);case 247:return function(n){return t.updateWhileStatement(n,$B(n.expression,A,U_),eJ(n.statement,E,e))}(n);case 256:return function(e){return t.updateLabeledStatement(e,e.label,$B(e.statement,E,du,t.liftToBlock)??nI(t.createEmptyStatement(),e.statement))}(n);case 254:return function(e){return t.updateWithStatement(e,$B(e.expression,A,U_),un.checkDefined($B(e.statement,E,du,t.liftToBlock)))}(n);case 245:return function(e){return t.updateIfStatement(e,$B(e.expression,A,U_),$B(e.thenStatement,E,du,t.liftToBlock)??t.createBlock([]),$B(e.elseStatement,E,du,t.liftToBlock))}(n);case 255:return function(e){return t.updateSwitchStatement(e,$B(e.expression,A,U_),un.checkDefined($B(e.caseBlock,E,ZF)))}(n);case 269:return function(e){return t.updateCaseBlock(e,HB(e.clauses,E,xu))}(n);case 296:return function(e){return t.updateCaseClause(e,$B(e.expression,A,U_),HB(e.statements,E,du))}(n);case 297:case 258:return function(t){return nJ(t,E,e)}(n);case 299:return function(e){return t.updateCatchClause(e,e.variableDeclaration,un.checkDefined($B(e.block,E,CF)))}(n);case 241:return function(t){return t=nJ(t,E,e)}(n);default:return A(n)}}function P(r,i){if(!(276828160&r.transformFlags||(null==y?void 0:y.length)))return r;switch(r.kind){case 248:return L(r,!1);case 244:return function(e){return t.updateExpressionStatement(e,$B(e.expression,I,U_))}(r);case 217:return function(e,n){return t.updateParenthesizedExpression(e,$B(e.expression,n?I:A,U_))}(r,i);case 355:return function(e,n){return t.updatePartiallyEmittedExpression(e,$B(e.expression,n?I:A,U_))}(r,i);case 213:const l=r===fe(y);if(l&&y.shift(),cf(r)&&c.shouldTransformImportCall(g))return function(r,i){if(0===d&&_>=7)return nJ(r,A,e);const l=mA(t,r,g,c,s,a),u=$B(fe(r.arguments),A,U_),p=!l||u&&TN(u)&&u.text===l.text?u&&i?TN(u)?iz(u,a):n().createRewriteRelativeImportExtensionsHelper(u):u:l,f=!!(16384&r.transformFlags);switch(a.module){case 2:return j(p,f);case 3:return function(e,n){if(b=!0,jJ(e)){const r=Vl(e)?e:TN(e)?t.createStringLiteralFromNode(e):nw(nI(t.cloneNode(e),e),3072);return t.createConditionalExpression(t.createIdentifier("__syncRequire"),void 0,R(e),void 0,j(r,n))}{const r=t.createTempVariable(o);return t.createComma(t.createAssignment(r,e),t.createConditionalExpression(t.createIdentifier("__syncRequire"),void 0,R(r,!0),void 0,j(r,n)))}}(p??t.createVoidZero(),f);default:return R(p)}}(r,l);if(l)return function(e){return t.updateCallExpression(e,e.expression,void 0,HB(e.arguments,(t=>t===e.arguments[0]?Lu(t)?iz(t,a):n().createRewriteRelativeImportExtensionsHelper(t):A(t)),U_))}(r);break;case 226:if(rb(r))return function(t,n){return O(t.left)?az(t,A,e,0,!n,z):nJ(t,A,e)}(r,i);break;case 224:case 225:return function(n,r){if((46===n.operator||47===n.operator)&&zN(n.operand)&&!Vl(n.operand)&&!YP(n.operand)&&!Qb(n.operand)){const e=ee(n.operand);if(e){let i,a=$B(n.operand,A,U_);aF(n)?a=t.updatePrefixUnaryExpression(n,a):(a=t.updatePostfixUnaryExpression(n,a),r||(i=t.createTempVariable(o),a=t.createAssignment(i,a),nI(a,n)),a=t.createComma(a,t.cloneNode(n.operand)),nI(a,n));for(const t of e)v[jB(a)]=!0,a=Q(t,a),nI(a,n);return i&&(v[jB(a)]=!0,a=t.createComma(a,i),nI(a,n)),a}}return nJ(n,A,e)}(r,i)}return nJ(r,A,e)}function A(e){return P(e,!1)}function I(e){return P(e,!0)}function O(e){if($D(e))for(const t of e.properties)switch(t.kind){case 303:if(O(t.initializer))return!0;break;case 304:if(O(t.name))return!0;break;case 305:if(O(t.expression))return!0;break;case 174:case 177:case 178:return!1;default:un.assertNever(t,"Unhandled object member kind")}else if(WD(e)){for(const t of e.elements)if(dF(t)){if(O(t.expression))return!0}else if(O(t))return!0}else if(zN(e))return u(ee(e))>(ZP(e)?1:0);return!1}function L(n,r){if(r&&n.initializer&&WF(n.initializer)&&!(7&n.initializer.flags)){const i=U(void 0,n.initializer,!1);if(i){const o=[],a=$B(n.initializer,I,WF),s=t.createVariableStatement(void 0,a);o.push(s),se(o,i);const c=$B(n.condition,A,U_),l=$B(n.incrementor,I,U_),_=eJ(n.statement,r?E:A,e);return o.push(t.updateForStatement(n,void 0,c,l,_)),o}}return t.updateForStatement(n,$B(n.initializer,I,Z_),$B(n.condition,A,U_),$B(n.incrementor,I,U_),eJ(n.statement,r?E:A,e))}function j(e,r){const i=t.createUniqueName("resolve"),o=t.createUniqueName("reject"),s=[t.createParameterDeclaration(void 0,void 0,i),t.createParameterDeclaration(void 0,void 0,o)],c=t.createBlock([t.createExpressionStatement(t.createCallExpression(t.createIdentifier("require"),void 0,[t.createArrayLiteralExpression([e||t.createOmittedExpression()]),i,o]))]);let l;_>=2?l=t.createArrowFunction(void 0,void 0,s,void 0,void 0,c):(l=t.createFunctionExpression(void 0,void 0,void 0,void 0,s,void 0,c),r&&nw(l,16));const u=t.createNewExpression(t.createIdentifier("Promise"),void 0,[l]);return kk(a)?t.createCallExpression(t.createPropertyAccessExpression(u,t.createIdentifier("then")),void 0,[n().createImportStarCallbackHelper()]):u}function R(e,r){const i=e&&!RJ(e)&&!r,o=t.createCallExpression(t.createPropertyAccessExpression(t.createIdentifier("Promise"),"resolve"),void 0,i?_>=2?[t.createTemplateExpression(t.createTemplateHead(""),[t.createTemplateSpan(e,t.createTemplateTail(""))])]:[t.createCallExpression(t.createPropertyAccessExpression(t.createStringLiteral(""),"concat"),void 0,[e])]:[]);let s=t.createCallExpression(t.createIdentifier("require"),void 0,i?[t.createIdentifier("s")]:e?[e]:[]);kk(a)&&(s=n().createImportStarHelper(s));const c=i?[t.createParameterDeclaration(void 0,void 0,"s")]:[];let l;return l=_>=2?t.createArrowFunction(void 0,void 0,c,void 0,void 0,s):t.createFunctionExpression(void 0,void 0,void 0,void 0,c,void 0,t.createBlock([t.createReturnStatement(s)])),t.createCallExpression(t.createPropertyAccessExpression(o,"then"),void 0,[l])}function M(e,t){return!kk(a)||2&Yd(e)?t:FJ(e)?n().createImportStarHelper(t):EJ(e)?n().createImportDefaultHelper(t):t}function J(e){const n=mA(t,e,g,c,s,a),r=[];return n&&r.push(iz(n,a)),t.createCallExpression(t.createIdentifier("require"),void 0,r)}function z(e,n,r){const i=ee(e);if(i){let o=ZP(e)?n:t.createAssignment(e,n);for(const e of i)nw(o,8),o=Q(e,o,r);return o}return t.createAssignment(e,n)}function q(n){return x_(n.name)?az($B(n,A,Zb),A,e,0,!1,z):t.createAssignment(nI(t.createPropertyAccessExpression(t.createIdentifier("exports"),n.name),n.name),n.initializer?$B(n.initializer,A,U_):t.createVoidZero())}function U(e,t,n){if(h.exportEquals)return e;for(const r of t.declarations)e=V(e,r,n);return e}function V(e,t,n){if(h.exportEquals)return e;if(x_(t.name))for(const r of t.name.elements)fF(r)||(e=V(e,r,n));else Vl(t.name)||VF(t)&&!t.initializer&&!n||(e=H(e,new OJ,t));return e}function W(e,n){if(h.exportEquals)return e;const r=new OJ;return wv(n,32)&&(e=K(e,r,wv(n,2048)?t.createIdentifier("default"):t.getDeclarationName(n),t.getLocalName(n),n)),n.name&&(e=H(e,r,n)),e}function H(e,n,r,i){const o=t.getDeclarationName(r),a=h.exportSpecifiers.get(o);if(a)for(const t of a)e=K(e,n,t.name,o,t.name,void 0,i);return e}function K(e,t,n,r,i,o,a){if(11!==n.kind){if(t.has(n))return e;t.set(n,!0)}return ie(e,X(n,r,i,o,a))}function G(){const e=t.createExpressionStatement(t.createCallExpression(t.createPropertyAccessExpression(t.createIdentifier("Object"),"defineProperty"),void 0,[t.createIdentifier("exports"),t.createStringLiteral("__esModule"),t.createObjectLiteralExpression([t.createPropertyAssignment("value",t.createTrue())])]));return nw(e,2097152),e}function X(e,n,r,i,o){const a=nI(t.createExpressionStatement(Q(e,n,void 0,o)),r);return _A(a),i||nw(a,3072),a}function Q(e,n,r,i){return nI(i?t.createCallExpression(t.createPropertyAccessExpression(t.createIdentifier("Object"),"defineProperty"),void 0,[t.createIdentifier("exports"),t.createStringLiteralFromNode(e),t.createObjectLiteralExpression([t.createPropertyAssignment("enumerable",t.createTrue()),t.createPropertyAssignment("get",t.createFunctionExpression(void 0,void 0,void 0,void 0,[],void 0,t.createBlock([t.createReturnStatement(n)])))])]):t.createAssignment(11===e.kind?t.createElementAccessExpression(t.createIdentifier("exports"),t.cloneNode(e)):t.createPropertyAccessExpression(t.createIdentifier("exports"),t.cloneNode(e)),n),r)}function Y(e){switch(e.kind){case 95:case 90:return}return e}function Z(e){var n,r;if(8192&Qd(e)){const n=uA(g);return n?t.createPropertyAccessExpression(n,e):e}if((!Vl(e)||64&e.emitNode.autoGenerate.flags)&&!YP(e)){const i=s.getReferencedExportContainer(e,ZP(e));if(i&&307===i.kind)return nI(t.createPropertyAccessExpression(t.createIdentifier("exports"),t.cloneNode(e)),e);const o=s.getReferencedImportDeclaration(e);if(o){if(rE(o))return nI(t.createPropertyAccessExpression(t.getGeneratedNameForNode(o.parent),t.createIdentifier("default")),e);if(dE(o)){const i=o.propertyName||o.name,a=t.getGeneratedNameForNode((null==(r=null==(n=o.parent)?void 0:n.parent)?void 0:r.parent)||o);return nI(11===i.kind?t.createElementAccessExpression(a,t.cloneNode(i)):t.createPropertyAccessExpression(a,t.cloneNode(i)),e)}}}return e}function ee(e){if(Vl(e)){if($l(e)){const t=null==h?void 0:h.exportSpecifiers.get(e);if(t){const e=[];for(const n of t)e.push(n.name);return e}}}else{const t=s.getReferencedImportDeclaration(e);if(t)return null==h?void 0:h.exportedBindings[TJ(t)];const n=new Set,r=s.getReferencedValueDeclarations(e);if(r){for(const e of r){const t=null==h?void 0:h.exportedBindings[TJ(e)];if(t)for(const e of t)n.add(e)}if(n.size)return Oe(n)}}}}var nq={name:"typescript:dynamicimport-sync-require",scoped:!0,text:'\n var __syncRequire = typeof module === "object" && typeof module.exports === "object";'};function rq(e){const{factory:t,startLexicalEnvironment:n,endLexicalEnvironment:r,hoistVariableDeclaration:i}=e,o=e.getCompilerOptions(),a=e.getEmitResolver(),s=e.getEmitHost(),c=e.onSubstituteNode,l=e.onEmitNode;e.onSubstituteNode=function(e,n){return function(e){return x&&e.id&&x[e.id]}(n=c(e,n))?n:1===e?function(e){switch(e.kind){case 80:return function(e){var n,r;if(8192&Qd(e)){const n=uA(m);return n?t.createPropertyAccessExpression(n,e):e}if(!Vl(e)&&!YP(e)){const i=a.getReferencedImportDeclaration(e);if(i){if(rE(i))return nI(t.createPropertyAccessExpression(t.getGeneratedNameForNode(i.parent),t.createIdentifier("default")),e);if(dE(i)){const o=i.propertyName||i.name,a=t.getGeneratedNameForNode((null==(r=null==(n=i.parent)?void 0:n.parent)?void 0:r.parent)||i);return nI(11===o.kind?t.createElementAccessExpression(a,t.cloneNode(o)):t.createPropertyAccessExpression(a,t.cloneNode(o)),e)}}}return e}(e);case 226:return function(e){if(Zv(e.operatorToken.kind)&&zN(e.left)&&(!Vl(e.left)||$l(e.left))&&!YP(e.left)){const t=H(e.left);if(t){let n=e;for(const e of t)n=R(e,K(n));return n}}return e}(e);case 236:return function(e){return lf(e)?t.createPropertyAccessExpression(y,t.createIdentifier("meta")):e}(e)}return e}(n):4===e?function(e){return 304===e.kind?function(e){var n,r;const i=e.name;if(!Vl(i)&&!YP(i)){const o=a.getReferencedImportDeclaration(i);if(o){if(rE(o))return nI(t.createPropertyAssignment(t.cloneNode(i),t.createPropertyAccessExpression(t.getGeneratedNameForNode(o.parent),t.createIdentifier("default"))),e);if(dE(o)){const a=o.propertyName||o.name,s=t.getGeneratedNameForNode((null==(r=null==(n=o.parent)?void 0:n.parent)?void 0:r.parent)||o);return nI(t.createPropertyAssignment(t.cloneNode(i),11===a.kind?t.createElementAccessExpression(s,t.cloneNode(a)):t.createPropertyAccessExpression(s,t.cloneNode(a))),e)}}}return e}(e):e}(n):n},e.onEmitNode=function(e,t,n){if(307===t.kind){const r=TJ(t);m=t,g=_[r],h=u[r],x=p[r],y=f[r],x&&delete p[r],l(e,t,n),m=void 0,g=void 0,h=void 0,y=void 0,x=void 0}else l(e,t,n)},e.enableSubstitution(80),e.enableSubstitution(304),e.enableSubstitution(226),e.enableSubstitution(236),e.enableEmitNotification(307);const _=[],u=[],p=[],f=[];let m,g,h,y,v,b,x;return NJ(e,(function(i){if(i.isDeclarationFile||!(mp(i,o)||8388608&i.transformFlags))return i;const c=TJ(i);m=i,b=i,g=_[c]=PJ(e,i),h=t.createUniqueName("exports"),u[c]=h,y=f[c]=t.createUniqueName("context");const l=function(e){const n=new Map,r=[];for(const i of e){const e=mA(t,i,m,s,a,o);if(e){const t=e.text,o=n.get(t);void 0!==o?r[o].externalImports.push(i):(n.set(t,r.length),r.push({name:e,externalImports:[i]}))}}return r}(g.externalImports),d=function(e,i){const a=[];n();const s=Mk(o,"alwaysStrict")||MI(m),c=t.copyPrologue(e.statements,a,s,T);a.push(t.createVariableStatement(void 0,t.createVariableDeclarationList([t.createVariableDeclaration("__moduleName",void 0,void 0,t.createLogicalAnd(y,t.createPropertyAccessExpression(y,"id")))]))),$B(g.externalHelpersImportDeclaration,T,du);const l=HB(e.statements,T,du,c);se(a,v),Ad(a,r());const _=function(e){if(!g.hasExportStarsToExportValues)return;if(!$(g.exportedNames)&&0===g.exportedFunctions.size&&0===g.exportSpecifiers.size){let t=!1;for(const e of g.externalImports)if(278===e.kind&&e.exportClause){t=!0;break}if(!t){const t=k(void 0);return e.push(t),t.name}}const n=[];if(g.exportedNames)for(const e of g.exportedNames)$d(e)||n.push(t.createPropertyAssignment(t.createStringLiteralFromNode(e),t.createTrue()));for(const e of g.exportedFunctions)wv(e,2048)||(un.assert(!!e.name),n.push(t.createPropertyAssignment(t.createStringLiteralFromNode(e.name),t.createTrue())));const r=t.createUniqueName("exportedNames");e.push(t.createVariableStatement(void 0,t.createVariableDeclarationList([t.createVariableDeclaration(r,void 0,void 0,t.createObjectLiteralExpression(n,!0))])));const i=k(r);return e.push(i),i.name}(a),u=2097152&e.transformFlags?t.createModifiersFromModifierFlags(1024):void 0,d=t.createObjectLiteralExpression([t.createPropertyAssignment("setters",S(_,i)),t.createPropertyAssignment("execute",t.createFunctionExpression(u,void 0,void 0,void 0,[],void 0,t.createBlock(l,!0)))],!0);return a.push(t.createReturnStatement(d)),t.createBlock(a,!0)}(i,l),C=t.createFunctionExpression(void 0,void 0,void 0,void 0,[t.createParameterDeclaration(void 0,void 0,h),t.createParameterDeclaration(void 0,void 0,y)],void 0,d),w=gA(t,i,s,o),N=t.createArrayLiteralExpression(E(l,(e=>e.name))),D=nw(t.updateSourceFile(i,nI(t.createNodeArray([t.createExpressionStatement(t.createCallExpression(t.createPropertyAccessExpression(t.createIdentifier("System"),"register"),void 0,w?[w,N,C]:[N,C]))]),i.statements)),2048);return o.outFile||Nw(D,d,(e=>!e.scoped)),x&&(p[c]=x,x=void 0),m=void 0,g=void 0,h=void 0,y=void 0,v=void 0,b=void 0,D}));function k(e){const n=t.createUniqueName("exportStar"),r=t.createIdentifier("m"),i=t.createIdentifier("n"),o=t.createIdentifier("exports");let a=t.createStrictInequality(i,t.createStringLiteral("default"));return e&&(a=t.createLogicalAnd(a,t.createLogicalNot(t.createCallExpression(t.createPropertyAccessExpression(e,"hasOwnProperty"),void 0,[i])))),t.createFunctionDeclaration(void 0,void 0,n,void 0,[t.createParameterDeclaration(void 0,void 0,r)],void 0,t.createBlock([t.createVariableStatement(void 0,t.createVariableDeclarationList([t.createVariableDeclaration(o,void 0,void 0,t.createObjectLiteralExpression([]))])),t.createForInStatement(t.createVariableDeclarationList([t.createVariableDeclaration(i)]),r,t.createBlock([nw(t.createIfStatement(a,t.createExpressionStatement(t.createAssignment(t.createElementAccessExpression(o,i),t.createElementAccessExpression(r,i)))),1)])),t.createExpressionStatement(t.createCallExpression(h,void 0,[o]))],!0))}function S(e,n){const r=[];for(const i of n){const n=d(i.externalImports,(e=>fA(t,e,m))),o=n?t.getGeneratedNameForNode(n):t.createUniqueName(""),a=[];for(const n of i.externalImports){const r=fA(t,n,m);switch(n.kind){case 272:if(!n.importClause)break;case 271:un.assert(void 0!==r),a.push(t.createExpressionStatement(t.createAssignment(r,o))),wv(n,32)&&a.push(t.createExpressionStatement(t.createCallExpression(h,void 0,[t.createStringLiteral(mc(r)),o])));break;case 278:if(un.assert(void 0!==r),n.exportClause)if(mE(n.exportClause)){const e=[];for(const r of n.exportClause.elements)e.push(t.createPropertyAssignment(t.createStringLiteral(Vd(r.name)),t.createElementAccessExpression(o,t.createStringLiteral(Vd(r.propertyName||r.name)))));a.push(t.createExpressionStatement(t.createCallExpression(h,void 0,[t.createObjectLiteralExpression(e,!0)])))}else a.push(t.createExpressionStatement(t.createCallExpression(h,void 0,[t.createStringLiteral(Vd(n.exportClause.name)),o])));else a.push(t.createExpressionStatement(t.createCallExpression(e,void 0,[o])))}}r.push(t.createFunctionExpression(void 0,void 0,void 0,void 0,[t.createParameterDeclaration(void 0,void 0,o)],void 0,t.createBlock(a,!0)))}return t.createArrayLiteralExpression(r,!0)}function T(e){switch(e.kind){case 272:return function(e){return e.importClause&&i(fA(t,e,m)),ke(function(e,t){if(g.exportEquals)return e;const n=t.importClause;if(!n)return e;n.name&&(e=O(e,n));const r=n.namedBindings;if(r)switch(r.kind){case 274:e=O(e,r);break;case 275:for(const t of r.elements)e=O(e,t)}return e}(undefined,e))}(e);case 271:return function(e){return un.assert(Sm(e),"import= for internal module references should be handled in an earlier transformer."),i(fA(t,e,m)),ke(function(e,t){return g.exportEquals?e:O(e,t)}(undefined,e))}(e);case 278:return function(e){un.assertIsDefined(e)}(e);case 277:return function(e){if(e.isExportEquals)return;const n=$B(e.expression,q,U_);return j(t.createIdentifier("default"),n,!0)}(e);default:return M(e)}}function C(e){if(x_(e.name))for(const t of e.name.elements)fF(t)||C(t);else i(t.cloneNode(e.name))}function w(e){return!(4194304&Qd(e)||307!==b.kind&&7&lc(e).flags)}function N(t,n){const r=n?D:F;return x_(t.name)?az(t,q,e,0,!1,r):t.initializer?r(t.name,$B(t.initializer,q,U_)):t.name}function D(e,t,n){return P(e,t,n,!0)}function F(e,t,n){return P(e,t,n,!1)}function P(e,n,r,o){return i(t.cloneNode(e)),o?R(e,K(nI(t.createAssignment(e,n),r))):K(nI(t.createAssignment(e,n),r))}function A(e,n,r){if(g.exportEquals)return e;if(x_(n.name))for(const t of n.name.elements)fF(t)||(e=A(e,t,r));else if(!Vl(n.name)){let i;r&&(e=L(e,n.name,t.getLocalName(n)),i=mc(n.name)),e=O(e,n,i)}return e}function I(e,n){if(g.exportEquals)return e;let r;if(wv(n,32)){const i=wv(n,2048)?t.createStringLiteral("default"):n.name;e=L(e,i,t.getLocalName(n)),r=zh(i)}return n.name&&(e=O(e,n,r)),e}function O(e,n,r){if(g.exportEquals)return e;const i=t.getDeclarationName(n),o=g.exportSpecifiers.get(i);if(o)for(const t of o)Vd(t.name)!==r&&(e=L(e,t.name,i));return e}function L(e,t,n,r){return ie(e,j(t,n,r))}function j(e,n,r){const i=t.createExpressionStatement(R(e,n));return _A(i),r||nw(i,3072),i}function R(e,n){const r=zN(e)?t.createStringLiteralFromNode(e):e;return nw(n,3072|Qd(n)),pw(t.createCallExpression(h,void 0,[r,n]),n)}function M(n){switch(n.kind){case 243:return function(e){if(!w(e.declarationList))return $B(e,q,du);let n;if(nf(e.declarationList)||tf(e.declarationList)){const r=HB(e.modifiers,W,m_),i=[];for(const n of e.declarationList.declarations)i.push(t.updateVariableDeclaration(n,t.getGeneratedNameForNode(n.name),void 0,void 0,N(n,!1)));const o=t.updateVariableDeclarationList(e.declarationList,i);n=ie(n,t.updateVariableStatement(e,r,o))}else{let r;const i=wv(e,32);for(const t of e.declarationList.declarations)t.initializer?r=ie(r,N(t,i)):C(t);r&&(n=ie(n,nI(t.createExpressionStatement(t.inlineExpressions(r)),e)))}return n=function(e,t,n){if(g.exportEquals)return e;for(const r of t.declarationList.declarations)r.initializer&&(e=A(e,r,n));return e}(n,e,!1),ke(n)}(n);case 262:return function(n){v=wv(n,32)?ie(v,t.updateFunctionDeclaration(n,HB(n.modifiers,W,m_),n.asteriskToken,t.getDeclarationName(n,!0,!0),void 0,HB(n.parameters,q,oD),void 0,$B(n.body,q,CF))):ie(v,nJ(n,q,e)),v=I(v,n)}(n);case 263:return function(e){let n;const r=t.getLocalName(e);return i(r),n=ie(n,nI(t.createExpressionStatement(t.createAssignment(r,nI(t.createClassExpression(HB(e.modifiers,W,m_),e.name,void 0,HB(e.heritageClauses,q,jE),HB(e.members,q,l_)),e))),e)),n=I(n,e),ke(n)}(n);case 248:return B(n,!0);case 249:return function(n){const r=b;return b=n,n=t.updateForInStatement(n,J(n.initializer),$B(n.expression,q,U_),eJ(n.statement,M,e)),b=r,n}(n);case 250:return function(n){const r=b;return b=n,n=t.updateForOfStatement(n,n.awaitModifier,J(n.initializer),$B(n.expression,q,U_),eJ(n.statement,M,e)),b=r,n}(n);case 246:return function(n){return t.updateDoStatement(n,eJ(n.statement,M,e),$B(n.expression,q,U_))}(n);case 247:return function(n){return t.updateWhileStatement(n,$B(n.expression,q,U_),eJ(n.statement,M,e))}(n);case 256:return function(e){return t.updateLabeledStatement(e,e.label,$B(e.statement,M,du,t.liftToBlock)??t.createExpressionStatement(t.createIdentifier("")))}(n);case 254:return function(e){return t.updateWithStatement(e,$B(e.expression,q,U_),un.checkDefined($B(e.statement,M,du,t.liftToBlock)))}(n);case 245:return function(e){return t.updateIfStatement(e,$B(e.expression,q,U_),$B(e.thenStatement,M,du,t.liftToBlock)??t.createBlock([]),$B(e.elseStatement,M,du,t.liftToBlock))}(n);case 255:return function(e){return t.updateSwitchStatement(e,$B(e.expression,q,U_),un.checkDefined($B(e.caseBlock,M,ZF)))}(n);case 269:return function(e){const n=b;return b=e,e=t.updateCaseBlock(e,HB(e.clauses,M,xu)),b=n,e}(n);case 296:return function(e){return t.updateCaseClause(e,$B(e.expression,q,U_),HB(e.statements,M,du))}(n);case 297:case 258:return function(t){return nJ(t,M,e)}(n);case 299:return function(e){const n=b;return b=e,e=t.updateCatchClause(e,e.variableDeclaration,un.checkDefined($B(e.block,M,CF))),b=n,e}(n);case 241:return function(t){const n=b;return b=t,t=nJ(t,M,e),b=n,t}(n);default:return q(n)}}function B(n,r){const i=b;return b=n,n=t.updateForStatement(n,$B(n.initializer,r?J:U,Z_),$B(n.condition,q,U_),$B(n.incrementor,U,U_),eJ(n.statement,r?M:q,e)),b=i,n}function J(e){if(function(e){return WF(e)&&w(e)}(e)){let n;for(const t of e.declarations)n=ie(n,N(t,!1)),t.initializer||C(t);return n?t.inlineExpressions(n):t.createOmittedExpression()}return $B(e,U,Z_)}function z(n,r){if(!(276828160&n.transformFlags))return n;switch(n.kind){case 248:return B(n,!1);case 244:return function(e){return t.updateExpressionStatement(e,$B(e.expression,U,U_))}(n);case 217:return function(e,n){return t.updateParenthesizedExpression(e,$B(e.expression,n?U:q,U_))}(n,r);case 355:return function(e,n){return t.updatePartiallyEmittedExpression(e,$B(e.expression,n?U:q,U_))}(n,r);case 226:if(rb(n))return function(t,n){return V(t.left)?az(t,q,e,0,!n):nJ(t,q,e)}(n,r);break;case 213:if(cf(n))return function(e){const n=mA(t,e,m,s,a,o),r=$B(fe(e.arguments),q,U_),i=!n||r&&TN(r)&&r.text===n.text?r:n;return t.createCallExpression(t.createPropertyAccessExpression(y,t.createIdentifier("import")),void 0,i?[i]:[])}(n);break;case 224:case 225:return function(n,r){if((46===n.operator||47===n.operator)&&zN(n.operand)&&!Vl(n.operand)&&!YP(n.operand)&&!Qb(n.operand)){const e=H(n.operand);if(e){let o,a=$B(n.operand,q,U_);aF(n)?a=t.updatePrefixUnaryExpression(n,a):(a=t.updatePostfixUnaryExpression(n,a),r||(o=t.createTempVariable(i),a=t.createAssignment(o,a),nI(a,n)),a=t.createComma(a,t.cloneNode(n.operand)),nI(a,n));for(const t of e)a=R(t,K(a));return o&&(a=t.createComma(a,o),nI(a,n)),a}}return nJ(n,q,e)}(n,r)}return nJ(n,q,e)}function q(e){return z(e,!1)}function U(e){return z(e,!0)}function V(e){if(nb(e,!0))return V(e.left);if(dF(e))return V(e.expression);if($D(e))return $(e.properties,V);if(WD(e))return $(e.elements,V);if(BE(e))return V(e.name);if(ME(e))return V(e.initializer);if(zN(e)){const t=a.getReferencedExportContainer(e);return void 0!==t&&307===t.kind}return!1}function W(e){switch(e.kind){case 95:case 90:return}return e}function H(e){let n;const r=function(e){if(!Vl(e)){const t=a.getReferencedImportDeclaration(e);if(t)return t;const n=a.getReferencedValueDeclaration(e);if(n&&(null==g?void 0:g.exportedBindings[TJ(n)]))return n;const r=a.getReferencedValueDeclarations(e);if(r)for(const e of r)if(e!==n&&(null==g?void 0:g.exportedBindings[TJ(e)]))return e;return n}}(e);if(r){const i=a.getReferencedExportContainer(e,!1);i&&307===i.kind&&(n=ie(n,t.getDeclarationName(r))),n=se(n,null==g?void 0:g.exportedBindings[TJ(r)])}else if(Vl(e)&&$l(e)){const t=null==g?void 0:g.exportSpecifiers.get(e);if(t){const e=[];for(const n of t)e.push(n.name);return e}}return n}function K(e){return void 0===x&&(x=[]),x[jB(e)]=!0,e}}function iq(e){const{factory:t,getEmitHelperFactory:n}=e,r=e.getEmitHost(),i=e.getEmitResolver(),o=e.getCompilerOptions(),a=hk(o),s=e.onEmitNode,c=e.onSubstituteNode;e.onEmitNode=function(e,t,n){qE(t)?((MI(t)||xk(o))&&o.importHelpers&&(u=new Map),d=t,s(e,t,n),d=void 0,u=void 0):s(e,t,n)},e.onSubstituteNode=function(e,n){return(n=c(e,n)).id&&l.has(n.id)?n:zN(n)&&8192&Qd(n)?function(e){const n=d&&uA(d);if(n)return l.add(jB(e)),t.createPropertyAccessExpression(n,e);if(u){const n=mc(e);let r=u.get(n);return r||u.set(n,r=t.createUniqueName(n,48)),r}return e}(n):n},e.enableEmitNotification(307),e.enableSubstitution(80);const l=new Set;let _,u,d,p;return NJ(e,(function(r){if(r.isDeclarationFile)return r;if(MI(r)||xk(o)){d=r,p=void 0,o.rewriteRelativeImportExtensions&&(4194304&d.flags||Fm(r))&&wC(r,!1,!1,(e=>{Lu(e.arguments[0])&&!bg(e.arguments[0].text,o)||(_=ie(_,e))}));let i=function(r){const i=pA(t,n(),r,o);if(i){const e=[],n=t.copyPrologue(r.statements,e);return se(e,KB([i],f,du)),se(e,HB(r.statements,f,du,n)),t.updateSourceFile(r,nI(t.createNodeArray(e),r.statements))}return nJ(r,f,e)}(r);return Tw(i,e.readEmitHelpers()),d=void 0,p&&(i=t.updateSourceFile(i,nI(t.createNodeArray(Id(i.statements.slice(),p)),i.statements))),!MI(r)||200===yk(o)||$(i.statements,G_)?i:t.updateSourceFile(i,nI(t.createNodeArray([...i.statements,BP(t)]),i.statements))}return r}));function f(r){switch(r.kind){case 271:return yk(o)>=100?function(e){let n;return un.assert(Sm(e),"import= for internal module references should be handled in an earlier transformer."),n=ie(n,YC(nI(t.createVariableStatement(void 0,t.createVariableDeclarationList([t.createVariableDeclaration(t.cloneNode(e.name),void 0,void 0,m(e))],a>=2?2:0)),e),e)),n=function(e,n){return wv(n,32)&&(e=ie(e,t.createExportDeclaration(void 0,n.isTypeOnly,t.createNamedExports([t.createExportSpecifier(!1,void 0,mc(n.name))])))),e}(n,e),ke(n)}(r):void 0;case 277:return function(e){return e.isExportEquals?200===yk(o)?YC(t.createExpressionStatement(t.createAssignment(t.createPropertyAccessExpression(t.createIdentifier("module"),"exports"),e.expression)),e):void 0:e}(r);case 278:return function(e){const n=iz(e.moduleSpecifier,o);if(void 0!==o.module&&o.module>5||!e.exportClause||!_E(e.exportClause)||!e.moduleSpecifier)return e.moduleSpecifier&&n!==e.moduleSpecifier?t.updateExportDeclaration(e,e.modifiers,e.isTypeOnly,e.exportClause,n,e.attributes):e;const r=e.exportClause.name,i=t.getGeneratedNameForNode(r),a=t.createImportDeclaration(void 0,t.createImportClause(!1,void 0,t.createNamespaceImport(i)),n,e.attributes);YC(a,e.exportClause);const s=Ud(e)?t.createExportDefault(i):t.createExportDeclaration(void 0,!1,t.createNamedExports([t.createExportSpecifier(!1,i,r)]));return YC(s,e),[a,s]}(r);case 272:return function(e){if(!o.rewriteRelativeImportExtensions)return e;const n=iz(e.moduleSpecifier,o);return n===e.moduleSpecifier?e:t.updateImportDeclaration(e,e.modifiers,e.importClause,n,e.attributes)}(r);case 213:if(r===(null==_?void 0:_[0]))return function(e){return t.updateCallExpression(e,e.expression,e.typeArguments,[Lu(e.arguments[0])?iz(e.arguments[0],o):n().createRewriteRelativeImportExtensionsHelper(e.arguments[0]),...e.arguments.slice(1)])}(_.shift());break;default:if((null==_?void 0:_.length)&&Gb(r,_[0]))return nJ(r,f,e)}return r}function m(e){const n=mA(t,e,un.checkDefined(d),r,i,o),s=[];if(n&&s.push(iz(n,o)),200===yk(o))return t.createCallExpression(t.createIdentifier("require"),void 0,s);if(!p){const e=t.createUniqueName("_createRequire",48),n=t.createImportDeclaration(void 0,t.createImportClause(!1,void 0,t.createNamedImports([t.createImportSpecifier(!1,t.createIdentifier("createRequire"),e)])),t.createStringLiteral("module"),void 0),r=t.createUniqueName("__require",48),i=t.createVariableStatement(void 0,t.createVariableDeclarationList([t.createVariableDeclaration(r,void 0,void 0,t.createCallExpression(t.cloneNode(e),void 0,[t.createPropertyAccessExpression(t.createMetaProperty(102,t.createIdentifier("meta")),t.createIdentifier("url"))]))],a>=2?2:0));p=[n,i]}const c=p[1].declarationList.declarations[0].name;return un.assertNode(c,zN),t.createCallExpression(t.cloneNode(c),void 0,s)}}function oq(e){const t=e.onSubstituteNode,n=e.onEmitNode,r=iq(e),i=e.onSubstituteNode,o=e.onEmitNode;e.onSubstituteNode=t,e.onEmitNode=n;const a=tq(e),s=e.onSubstituteNode,c=e.onEmitNode,l=t=>e.getEmitHost().getEmitModuleFormatOfFile(t);let _;return e.onSubstituteNode=function(e,n){return qE(n)?(_=n,t(e,n)):_?l(_)>=5?i(e,n):s(e,n):t(e,n)},e.onEmitNode=function(e,t,r){return qE(t)&&(_=t),_?l(_)>=5?o(e,t,r):c(e,t,r):n(e,t,r)},e.enableSubstitution(307),e.enableEmitNotification(307),function(t){return 307===t.kind?u(t):function(t){return e.factory.createBundle(E(t.sourceFiles,u))}(t)};function u(e){if(e.isDeclarationFile)return e;_=e;const t=(l(e)>=5?r:a)(e);return _=void 0,un.assert(qE(t)),t}}function aq(e){return VF(e)||cD(e)||sD(e)||VD(e)||Cu(e)||wu(e)||gD(e)||mD(e)||_D(e)||lD(e)||$F(e)||oD(e)||iD(e)||mF(e)||tE(e)||GF(e)||dD(e)||hD(e)||HD(e)||KD(e)||cF(e)||Ng(e)}function sq(e){return Cu(e)||wu(e)?function(t){const n=function(t){return Nv(e)?t.errorModuleName?2===t.accessibility?la.Public_static_property_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:la.Public_static_property_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:la.Public_static_property_0_of_exported_class_has_or_is_using_private_name_1:263===e.parent.kind?t.errorModuleName?2===t.accessibility?la.Public_property_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:la.Public_property_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:la.Public_property_0_of_exported_class_has_or_is_using_private_name_1:t.errorModuleName?la.Property_0_of_exported_interface_has_or_is_using_name_1_from_private_module_2:la.Property_0_of_exported_interface_has_or_is_using_private_name_1}(t);return void 0!==n?{diagnosticMessage:n,errorNode:e,typeName:e.name}:void 0}:lD(e)||_D(e)?function(t){const n=function(t){return Nv(e)?t.errorModuleName?2===t.accessibility?la.Public_static_method_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:la.Public_static_method_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:la.Public_static_method_0_of_exported_class_has_or_is_using_private_name_1:263===e.parent.kind?t.errorModuleName?2===t.accessibility?la.Public_method_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:la.Public_method_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:la.Public_method_0_of_exported_class_has_or_is_using_private_name_1:t.errorModuleName?la.Method_0_of_exported_interface_has_or_is_using_name_1_from_private_module_2:la.Method_0_of_exported_interface_has_or_is_using_private_name_1}(t);return void 0!==n?{diagnosticMessage:n,errorNode:e,typeName:e.name}:void 0}:cq(e)}function cq(e){return VF(e)||cD(e)||sD(e)||HD(e)||KD(e)||cF(e)||VD(e)||dD(e)?t:Cu(e)||wu(e)?function(t){let n;return n=178===e.kind?Nv(e)?t.errorModuleName?la.Parameter_type_of_public_static_setter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2:la.Parameter_type_of_public_static_setter_0_from_exported_class_has_or_is_using_private_name_1:t.errorModuleName?la.Parameter_type_of_public_setter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2:la.Parameter_type_of_public_setter_0_from_exported_class_has_or_is_using_private_name_1:Nv(e)?t.errorModuleName?2===t.accessibility?la.Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:la.Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2:la.Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_private_name_1:t.errorModuleName?2===t.accessibility?la.Return_type_of_public_getter_0_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:la.Return_type_of_public_getter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2:la.Return_type_of_public_getter_0_from_exported_class_has_or_is_using_private_name_1,{diagnosticMessage:n,errorNode:e.name,typeName:e.name}}:gD(e)||mD(e)||_D(e)||lD(e)||$F(e)||hD(e)?function(t){let n;switch(e.kind){case 180:n=t.errorModuleName?la.Return_type_of_constructor_signature_from_exported_interface_has_or_is_using_name_0_from_private_module_1:la.Return_type_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_0;break;case 179:n=t.errorModuleName?la.Return_type_of_call_signature_from_exported_interface_has_or_is_using_name_0_from_private_module_1:la.Return_type_of_call_signature_from_exported_interface_has_or_is_using_private_name_0;break;case 181:n=t.errorModuleName?la.Return_type_of_index_signature_from_exported_interface_has_or_is_using_name_0_from_private_module_1:la.Return_type_of_index_signature_from_exported_interface_has_or_is_using_private_name_0;break;case 174:case 173:n=Nv(e)?t.errorModuleName?2===t.accessibility?la.Return_type_of_public_static_method_from_exported_class_has_or_is_using_name_0_from_external_module_1_but_cannot_be_named:la.Return_type_of_public_static_method_from_exported_class_has_or_is_using_name_0_from_private_module_1:la.Return_type_of_public_static_method_from_exported_class_has_or_is_using_private_name_0:263===e.parent.kind?t.errorModuleName?2===t.accessibility?la.Return_type_of_public_method_from_exported_class_has_or_is_using_name_0_from_external_module_1_but_cannot_be_named:la.Return_type_of_public_method_from_exported_class_has_or_is_using_name_0_from_private_module_1:la.Return_type_of_public_method_from_exported_class_has_or_is_using_private_name_0:t.errorModuleName?la.Return_type_of_method_from_exported_interface_has_or_is_using_name_0_from_private_module_1:la.Return_type_of_method_from_exported_interface_has_or_is_using_private_name_0;break;case 262:n=t.errorModuleName?2===t.accessibility?la.Return_type_of_exported_function_has_or_is_using_name_0_from_external_module_1_but_cannot_be_named:la.Return_type_of_exported_function_has_or_is_using_name_0_from_private_module_1:la.Return_type_of_exported_function_has_or_is_using_private_name_0;break;default:return un.fail("This is unknown kind for signature: "+e.kind)}return{diagnosticMessage:n,errorNode:e.name||e}}:oD(e)?Ys(e,e.parent)&&wv(e.parent,2)?t:function(t){const n=function(t){switch(e.parent.kind){case 176:return t.errorModuleName?2===t.accessibility?la.Parameter_0_of_constructor_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:la.Parameter_0_of_constructor_from_exported_class_has_or_is_using_name_1_from_private_module_2:la.Parameter_0_of_constructor_from_exported_class_has_or_is_using_private_name_1;case 180:case 185:return t.errorModuleName?la.Parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2:la.Parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_1;case 179:return t.errorModuleName?la.Parameter_0_of_call_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2:la.Parameter_0_of_call_signature_from_exported_interface_has_or_is_using_private_name_1;case 181:return t.errorModuleName?la.Parameter_0_of_index_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2:la.Parameter_0_of_index_signature_from_exported_interface_has_or_is_using_private_name_1;case 174:case 173:return Nv(e.parent)?t.errorModuleName?2===t.accessibility?la.Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:la.Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_name_1_from_private_module_2:la.Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_private_name_1:263===e.parent.parent.kind?t.errorModuleName?2===t.accessibility?la.Parameter_0_of_public_method_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:la.Parameter_0_of_public_method_from_exported_class_has_or_is_using_name_1_from_private_module_2:la.Parameter_0_of_public_method_from_exported_class_has_or_is_using_private_name_1:t.errorModuleName?la.Parameter_0_of_method_from_exported_interface_has_or_is_using_name_1_from_private_module_2:la.Parameter_0_of_method_from_exported_interface_has_or_is_using_private_name_1;case 262:case 184:return t.errorModuleName?2===t.accessibility?la.Parameter_0_of_exported_function_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:la.Parameter_0_of_exported_function_has_or_is_using_name_1_from_private_module_2:la.Parameter_0_of_exported_function_has_or_is_using_private_name_1;case 178:case 177:return t.errorModuleName?2===t.accessibility?la.Parameter_0_of_accessor_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:la.Parameter_0_of_accessor_has_or_is_using_name_1_from_private_module_2:la.Parameter_0_of_accessor_has_or_is_using_private_name_1;default:return un.fail(`Unknown parent for parameter: ${un.formatSyntaxKind(e.parent.kind)}`)}}(t);return void 0!==n?{diagnosticMessage:n,errorNode:e,typeName:e.name}:void 0}:iD(e)?function(){let t;switch(e.parent.kind){case 263:t=la.Type_parameter_0_of_exported_class_has_or_is_using_private_name_1;break;case 264:t=la.Type_parameter_0_of_exported_interface_has_or_is_using_private_name_1;break;case 200:t=la.Type_parameter_0_of_exported_mapped_object_type_is_using_private_name_1;break;case 185:case 180:t=la.Type_parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_1;break;case 179:t=la.Type_parameter_0_of_call_signature_from_exported_interface_has_or_is_using_private_name_1;break;case 174:case 173:t=Nv(e.parent)?la.Type_parameter_0_of_public_static_method_from_exported_class_has_or_is_using_private_name_1:263===e.parent.parent.kind?la.Type_parameter_0_of_public_method_from_exported_class_has_or_is_using_private_name_1:la.Type_parameter_0_of_method_from_exported_interface_has_or_is_using_private_name_1;break;case 184:case 262:t=la.Type_parameter_0_of_exported_function_has_or_is_using_private_name_1;break;case 195:t=la.Extends_clause_for_inferred_type_0_has_or_is_using_private_name_1;break;case 265:t=la.Type_parameter_0_of_exported_type_alias_has_or_is_using_private_name_1;break;default:return un.fail("This is unknown parent for type parameter: "+e.parent.kind)}return{diagnosticMessage:t,errorNode:e,typeName:e.name}}:mF(e)?function(){let t;return t=HF(e.parent.parent)?jE(e.parent)&&119===e.parent.token?la.Implements_clause_of_exported_class_0_has_or_is_using_private_name_1:e.parent.parent.name?la.extends_clause_of_exported_class_0_has_or_is_using_private_name_1:la.extends_clause_of_exported_class_has_or_is_using_private_name_0:la.extends_clause_of_exported_interface_0_has_or_is_using_private_name_1,{diagnosticMessage:t,errorNode:e,typeName:Tc(e.parent.parent)}}:tE(e)?function(){return{diagnosticMessage:la.Import_declaration_0_is_using_private_name_1,errorNode:e,typeName:e.name}}:GF(e)||Ng(e)?function(t){return{diagnosticMessage:t.errorModuleName?la.Exported_type_alias_0_has_or_is_using_private_name_1_from_module_2:la.Exported_type_alias_0_has_or_is_using_private_name_1,errorNode:Ng(e)?un.checkDefined(e.typeExpression):e.type,typeName:Ng(e)?Tc(e):e.name}}:un.assertNever(e,`Attempted to set a declaration diagnostic context for unhandled node kind: ${un.formatSyntaxKind(e.kind)}`);function t(t){const n=function(t){return 260===e.kind||208===e.kind?t.errorModuleName?2===t.accessibility?la.Exported_variable_0_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:la.Exported_variable_0_has_or_is_using_name_1_from_private_module_2:la.Exported_variable_0_has_or_is_using_private_name_1:172===e.kind||211===e.kind||212===e.kind||226===e.kind||171===e.kind||169===e.kind&&wv(e.parent,2)?Nv(e)?t.errorModuleName?2===t.accessibility?la.Public_static_property_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:la.Public_static_property_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:la.Public_static_property_0_of_exported_class_has_or_is_using_private_name_1:263===e.parent.kind||169===e.kind?t.errorModuleName?2===t.accessibility?la.Public_property_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:la.Public_property_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:la.Public_property_0_of_exported_class_has_or_is_using_private_name_1:t.errorModuleName?la.Property_0_of_exported_interface_has_or_is_using_name_1_from_private_module_2:la.Property_0_of_exported_interface_has_or_is_using_private_name_1:void 0}(t);return void 0!==n?{diagnosticMessage:n,errorNode:e,typeName:e.name}:void 0}}function lq(e){const t={219:la.Add_a_return_type_to_the_function_expression,218:la.Add_a_return_type_to_the_function_expression,174:la.Add_a_return_type_to_the_method,177:la.Add_a_return_type_to_the_get_accessor_declaration,178:la.Add_a_type_to_parameter_of_the_set_accessor_declaration,262:la.Add_a_return_type_to_the_function_declaration,180:la.Add_a_return_type_to_the_function_declaration,169:la.Add_a_type_annotation_to_the_parameter_0,260:la.Add_a_type_annotation_to_the_variable_0,172:la.Add_a_type_annotation_to_the_property_0,171:la.Add_a_type_annotation_to_the_property_0,277:la.Move_the_expression_in_default_export_to_a_variable_and_add_a_type_annotation_to_it},n={218:la.Function_must_have_an_explicit_return_type_annotation_with_isolatedDeclarations,262:la.Function_must_have_an_explicit_return_type_annotation_with_isolatedDeclarations,219:la.Function_must_have_an_explicit_return_type_annotation_with_isolatedDeclarations,174:la.Method_must_have_an_explicit_return_type_annotation_with_isolatedDeclarations,180:la.Method_must_have_an_explicit_return_type_annotation_with_isolatedDeclarations,177:la.At_least_one_accessor_must_have_an_explicit_type_annotation_with_isolatedDeclarations,178:la.At_least_one_accessor_must_have_an_explicit_type_annotation_with_isolatedDeclarations,169:la.Parameter_must_have_an_explicit_type_annotation_with_isolatedDeclarations,260:la.Variable_must_have_an_explicit_type_annotation_with_isolatedDeclarations,172:la.Property_must_have_an_explicit_type_annotation_with_isolatedDeclarations,171:la.Property_must_have_an_explicit_type_annotation_with_isolatedDeclarations,167:la.Computed_property_names_on_class_or_object_literals_cannot_be_inferred_with_isolatedDeclarations,305:la.Objects_that_contain_spread_assignments_can_t_be_inferred_with_isolatedDeclarations,304:la.Objects_that_contain_shorthand_properties_can_t_be_inferred_with_isolatedDeclarations,209:la.Only_const_arrays_can_be_inferred_with_isolatedDeclarations,277:la.Default_exports_can_t_be_inferred_with_isolatedDeclarations,230:la.Arrays_with_spread_elements_can_t_inferred_with_isolatedDeclarations};return function(r){if(_c(r,jE))return jp(r,la.Extends_clause_can_t_contain_an_expression_with_isolatedDeclarations);if((Tf(r)||kD(r.parent))&&(Zl(r)||ob(r)))return function(e){const t=jp(e,la.Type_containing_private_name_0_can_t_be_used_with_isolatedDeclarations,Kd(e,!1));return o(e,t),t}(r);switch(un.type(r),r.kind){case 177:case 178:return i(r);case 167:case 304:case 305:return function(e){const t=jp(e,n[e.kind]);return o(e,t),t}(r);case 209:case 230:return function(e){const t=jp(e,n[e.kind]);return o(e,t),t}(r);case 174:case 180:case 218:case 219:case 262:return function(e){const r=jp(e,n[e.kind]);return o(e,r),iT(r,jp(e,t[e.kind])),r}(r);case 208:return function(e){return jp(e,la.Binding_elements_can_t_be_exported_directly_with_isolatedDeclarations)}(r);case 172:case 260:return function(e){const r=jp(e,n[e.kind]),i=Kd(e.name,!1);return iT(r,jp(e,t[e.kind],i)),r}(r);case 169:return function(r){if(Cu(r.parent))return i(r.parent);const o=e.requiresAddingImplicitUndefined(r,void 0);if(!o&&r.initializer)return a(r.initializer);const s=jp(r,o?la.Declaration_emit_for_this_parameter_requires_implicitly_adding_undefined_to_its_type_This_is_not_supported_with_isolatedDeclarations:n[r.kind]),c=Kd(r.name,!1);return iT(s,jp(r,t[r.kind],c)),s}(r);case 303:return a(r.initializer);case 231:return function(e){return a(e,la.Inference_from_class_expressions_is_not_supported_with_isolatedDeclarations)}(r);default:return a(r)}};function r(e){const t=_c(e,(e=>pE(e)||du(e)||VF(e)||cD(e)||oD(e)));if(t)return pE(t)?t:RF(t)?_c(t,(e=>i_(e)&&!dD(e))):du(t)?void 0:t}function i(e){const{getAccessor:r,setAccessor:i}=dv(e.symbol.declarations,e),o=jp((Cu(e)?e.parameters[0]:e)??e,n[e.kind]);return i&&iT(o,jp(i,t[i.kind])),r&&iT(o,jp(r,t[r.kind])),o}function o(e,n){const i=r(e);if(i){const e=pE(i)||!i.name?"":Kd(i.name,!1);iT(n,jp(i,t[i.kind],e))}return n}function a(e,i){const o=r(e);let a;if(o){const r=pE(o)||!o.name?"":Kd(o.name,!1);o===_c(e.parent,(e=>pE(e)||(du(e)?"quit":!ZD(e)&&!YD(e)&&!gF(e))))?(a=jp(e,i??n[o.kind]),iT(a,jp(o,t[o.kind],r))):(a=jp(e,i??la.Expression_type_can_t_be_inferred_with_isolatedDeclarations),iT(a,jp(o,t[o.kind],r)),iT(a,jp(e,la.Add_satisfies_and_a_type_assertion_to_this_expression_satisfies_T_as_T_to_make_the_type_explicit)))}else a=jp(e,i??la.Expression_type_can_t_be_inferred_with_isolatedDeclarations);return a}}function _q(e,t,n){const r=e.getCompilerOptions();return T(N(Ky(e,n),Pm),n)?Cq(t,e,XC,r,[n],[pq],!1).diagnostics:void 0}var uq=531469,dq=8;function pq(e){const t=()=>un.fail("Diagnostic emitted without context");let n,r,i,o,a=t,s=!0,c=!1,_=!1,p=!1,f=!1;const{factory:m}=e,g=e.getEmitHost();let h=()=>{};const y={trackSymbol:function(e,t,n){return!(262144&e.flags)&&R(w.isSymbolAccessible(e,t,n,!0))},reportInaccessibleThisError:function(){(v||b)&&e.addDiagnostic(jp(v||b,la.The_inferred_type_of_0_references_an_inaccessible_1_type_A_type_annotation_is_necessary,M(),"this"))},reportInaccessibleUniqueSymbolError:function(){(v||b)&&e.addDiagnostic(jp(v||b,la.The_inferred_type_of_0_references_an_inaccessible_1_type_A_type_annotation_is_necessary,M(),"unique symbol"))},reportCyclicStructureError:function(){(v||b)&&e.addDiagnostic(jp(v||b,la.The_inferred_type_of_0_references_a_type_with_a_cyclic_structure_which_cannot_be_trivially_serialized_A_type_annotation_is_necessary,M()))},reportPrivateInBaseOfClassExpression:function(t){(v||b)&&e.addDiagnostic(iT(jp(v||b,la.Property_0_of_exported_anonymous_class_type_may_not_be_private_or_protected,t),...VF((v||b).parent)?[jp(v||b,la.Add_a_type_annotation_to_the_variable_0,M())]:[]))},reportLikelyUnsafeImportRequiredError:function(t){(v||b)&&e.addDiagnostic(jp(v||b,la.The_inferred_type_of_0_cannot_be_named_without_a_reference_to_1_This_is_likely_not_portable_A_type_annotation_is_necessary,M(),t))},reportTruncationError:function(){(v||b)&&e.addDiagnostic(jp(v||b,la.The_inferred_type_of_this_node_exceeds_the_maximum_length_the_compiler_will_serialize_An_explicit_type_annotation_is_needed))},moduleResolverHost:g,reportNonlocalAugmentation:function(t,n,r){var i;const o=null==(i=n.declarations)?void 0:i.find((e=>hd(e)===t)),a=N(r.declarations,(e=>hd(e)!==t));if(o&&a)for(const t of a)e.addDiagnostic(iT(jp(t,la.Declaration_augments_declaration_in_another_file_This_cannot_be_serialized),jp(o,la.This_is_the_declaration_being_augmented_Consider_moving_the_augmenting_declaration_into_the_same_file)))},reportNonSerializableProperty:function(t){(v||b)&&e.addDiagnostic(jp(v||b,la.The_type_of_this_node_cannot_be_serialized_because_its_property_0_cannot_be_serialized,t))},reportInferenceFallback:j,pushErrorFallbackNode(e){const t=b,n=h;h=()=>{h=n,b=t},b=e},popErrorFallbackNode(){h()}};let v,b,x,k,S,C;const w=e.getEmitResolver(),D=e.getCompilerOptions(),F=lq(w),{stripInternal:P,isolatedDeclarations:A}=D;return function(l){if(307===l.kind&&l.isDeclarationFile)return l;if(308===l.kind){c=!0,k=[],S=[],C=[];let u=!1;const d=m.createBundle(E(l.sourceFiles,(c=>{if(c.isDeclarationFile)return;if(u=u||c.hasNoDefaultLib,x=c,n=c,r=void 0,o=!1,i=new Map,a=t,p=!1,f=!1,h(c),Qp(c)||Yp(c)){_=!1,s=!1;const t=Dm(c)?m.createNodeArray(J(c)):HB(c.statements,le,du);return m.updateSourceFile(c,[m.createModuleDeclaration([m.createModifier(138)],m.createStringLiteral(Ry(e.getEmitHost(),c)),m.createModuleBlock(nI(m.createNodeArray(ae(t)),c.statements)))],!0,[],[],!1,[])}s=!0;const l=Dm(c)?m.createNodeArray(J(c)):HB(c.statements,le,du);return m.updateSourceFile(c,ae(l),!0,[],[],!1,[])}))),y=Do(Oo(Aq(l,g,!0).declarationFilePath));return d.syntheticFileReferences=w(y),d.syntheticTypeReferences=v(),d.syntheticLibReferences=b(),d.hasNoDefaultLib=u,d}let u;if(s=!0,p=!1,f=!1,n=l,x=l,a=t,c=!1,_=!1,o=!1,r=void 0,i=new Map,k=[],S=[],C=[],h(x),Dm(x))u=m.createNodeArray(J(l));else{const e=HB(l.statements,le,du);u=nI(m.createNodeArray(ae(e)),l.statements),MI(l)&&(!_||p&&!f)&&(u=nI(m.createNodeArray([...u,BP(m)]),u))}const d=Do(Oo(Aq(l,g,!0).declarationFilePath));return m.updateSourceFile(l,u,!0,w(d),v(),l.hasNoDefaultLib,b());function h(e){k=K(k,E(e.referencedFiles,(t=>[e,t]))),S=K(S,e.typeReferenceDirectives),C=K(C,e.libReferenceDirectives)}function y(e){const t={...e};return t.pos=-1,t.end=-1,t}function v(){return B(S,(e=>{if(e.preserve)return y(e)}))}function b(){return B(C,(e=>{if(e.preserve)return y(e)}))}function w(e){return B(k,(([t,n])=>{if(!n.preserve)return;const r=g.getSourceFileFromReference(t,n);if(!r)return;let i;if(r.isDeclarationFile)i=r.fileName;else{if(c&&T(l.sourceFiles,r))return;const e=Aq(r,g,!0);i=e.declarationFilePath||e.jsFilePath||r.fileName}if(!i)return;const o=oa(e,i,g.getCurrentDirectory(),g.getCanonicalFileName,!1),a=y(n);return a.fileName=o,a}))}};function L(t){w.getPropertiesOfContainerFunction(t).forEach((t=>{if(sC(t.valueDeclaration)){const n=cF(t.valueDeclaration)?t.valueDeclaration.left:t.valueDeclaration;e.addDiagnostic(jp(n,la.Assigning_properties_to_functions_without_declaring_them_is_not_supported_with_isolatedDeclarations_Add_an_explicit_declaration_for_the_properties_assigned_to_this_function))}}))}function j(t){A&&!Dm(x)&&hd(t)===x&&(VF(t)&&w.isExpandoFunctionDeclaration(t)?L(t):e.addDiagnostic(F(t)))}function R(t){if(0===t.accessibility){if(t.aliasesToMakeVisible)if(r)for(const e of t.aliasesToMakeVisible)ce(r,e);else r=t.aliasesToMakeVisible}else if(3!==t.accessibility){const n=a(t);if(n)return n.typeName?e.addDiagnostic(jp(t.errorNode||n.errorNode,n.diagnosticMessage,Kd(n.typeName),t.errorSymbolName,t.errorModuleName)):e.addDiagnostic(jp(t.errorNode||n.errorNode,n.diagnosticMessage,t.errorSymbolName,t.errorModuleName)),!0}return!1}function M(){return v?Ep(v):b&&Tc(b)?Ep(Tc(b)):b&&pE(b)?b.isExportEquals?"export=":"default":"(Missing)"}function J(e){const t=a;a=t=>t.errorNode&&aq(t.errorNode)?cq(t.errorNode)(t):{diagnosticMessage:t.errorModuleName?la.Declaration_emit_for_this_file_requires_using_private_name_0_from_module_1_An_explicit_type_annotation_may_unblock_declaration_emit:la.Declaration_emit_for_this_file_requires_using_private_name_0_An_explicit_type_annotation_may_unblock_declaration_emit,errorNode:t.errorNode||e};const n=w.getDeclarationStatementsForSourceFile(e,uq,dq,y);return a=t,n}function z(e){return 80===e.kind?e:207===e.kind?m.updateArrayBindingPattern(e,HB(e.elements,t,S_)):m.updateObjectBindingPattern(e,HB(e.elements,t,VD));function t(e){return 232===e.kind?e:(e.propertyName&&rD(e.propertyName)&&ob(e.propertyName.expression)&&ee(e.propertyName.expression,n),m.updateBindingElement(e,e.dotDotDotToken,e.propertyName,z(e.name),void 0))}}function q(e,t){let n;o||(n=a,a=cq(e));const r=m.updateParameterDeclaration(e,function(e,t,n){return e.createModifiersFromModifierFlags(fq(t,n,void 0))}(m,e,t),e.dotDotDotToken,z(e.name),w.isOptionalParameter(e)?e.questionToken||m.createToken(58):void 0,W(e,!0),V(e));return o||(a=n),r}function U(e){return mq(e)&&!!e.initializer&&w.isLiteralConstDeclaration(dc(e))}function V(e){if(U(e))return yC(vC(e.initializer))||j(e),w.createLiteralConstValue(dc(e,mq),y)}function W(e,t){if(!t&&Cv(e,2))return;if(U(e))return;if(!pE(e)&&!VD(e)&&e.type&&(!oD(e)||!w.requiresAddingImplicitUndefined(e,n)))return $B(e.type,se,v_);const r=v;let i,s;return v=e.name,o||(i=a,aq(e)&&(a=cq(e))),bC(e)?s=w.createTypeOfDeclaration(e,n,uq,dq,y):n_(e)?s=w.createReturnTypeOfSignatureDeclaration(e,n,uq,dq,y):un.assertNever(e),v=r,o||(a=i),s??m.createKeywordTypeNode(133)}function H(e){switch((e=dc(e)).kind){case 262:case 267:case 264:case 263:case 265:case 266:return!w.isDeclarationVisible(e);case 260:return!G(e);case 271:case 272:case 278:case 277:return!1;case 175:return!0}return!1}function G(e){return!fF(e)&&(x_(e.name)?$(e.name.elements,G):w.isDeclarationVisible(e))}function X(e,t,n){if(Cv(e,2))return m.createNodeArray();const r=E(t,(e=>q(e,n)));return r?m.createNodeArray(r,t.hasTrailingComma):m.createNodeArray()}function Q(e,t){let n;if(!t){const t=av(e);t&&(n=[q(t)])}if(fD(e)){let r;if(!t){const t=iv(e);t&&(r=q(t))}r||(r=m.createParameterDeclaration(void 0,void 0,"value")),n=ie(n,r)}return m.createNodeArray(n||l)}function Y(e,t){return Cv(e,2)?void 0:HB(t,se,iD)}function Z(e){return qE(e)||GF(e)||QF(e)||HF(e)||KF(e)||n_(e)||hD(e)||RD(e)}function ee(e,t){R(w.isEntityNameVisible(e,t))}function te(e,t){return Nu(e)&&Nu(t)&&(e.jsDoc=t.jsDoc),pw(e,dw(t))}function re(t,n){if(n){if(_=_||267!==t.kind&&205!==t.kind,Lu(n)&&c){const n=By(e.getEmitHost(),w,t);if(n)return m.createStringLiteral(n)}return n}}function oe(e){const t=XU(e);return e&&void 0!==t?e:void 0}function ae(e){for(;u(r);){const e=r.shift();if(!Tp(e))return un.fail(`Late replaced statement was found which is not handled by the declaration transformer!: ${un.formatSyntaxKind(e.kind)}`);const t=s;s=e.parent&&qE(e.parent)&&!(MI(e.parent)&&c);const n=de(e);s=t,i.set(TJ(e),n)}return HB(e,(function(e){if(Tp(e)){const t=TJ(e);if(i.has(t)){const n=i.get(t);return i.delete(t),n&&((Qe(n)?$(n,K_):K_(n))&&(p=!0),qE(e.parent)&&(Qe(n)?$(n,G_):G_(n))&&(_=!0)),n}}return e}),du)}function se(t){if(fe(t))return;if(lu(t)){if(H(t))return;if(Rh(t))if(A){if(!w.isDefinitelyReferenceToGlobalSymbolObject(t.name.expression)){if(HF(t.parent)||$D(t.parent))return void e.addDiagnostic(jp(t,la.Computed_property_names_on_class_or_object_literals_cannot_be_inferred_with_isolatedDeclarations));if((KF(t.parent)||SD(t.parent))&&!ob(t.name.expression))return void e.addDiagnostic(jp(t,la.Computed_properties_must_be_number_or_string_literals_variables_or_dotted_expressions_with_isolatedDeclarations))}}else if(!w.isLateBound(dc(t))||!ob(t.name.expression))return}if(n_(t)&&w.isImplementationOfOverload(t))return;if(TF(t))return;let r;Z(t)&&(r=n,n=t);const i=a,s=aq(t),c=o;let l=(187===t.kind||200===t.kind)&&265!==t.parent.kind;if((_D(t)||lD(t))&&Cv(t,2)){if(t.symbol&&t.symbol.declarations&&t.symbol.declarations[0]!==t)return;return u(m.createPropertyDeclaration(ge(t),t.name,void 0,void 0,void 0))}if(s&&!o&&(a=cq(t)),kD(t)&&ee(t.exprName,n),l&&(o=!0),function(e){switch(e.kind){case 180:case 176:case 174:case 177:case 178:case 172:case 171:case 173:case 179:case 181:case 260:case 168:case 233:case 183:case 194:case 184:case 185:case 205:return!0}return!1}(t))switch(t.kind){case 233:{(Zl(t.expression)||ob(t.expression))&&ee(t.expression,n);const r=nJ(t,se,e);return u(m.updateExpressionWithTypeArguments(r,r.expression,r.typeArguments))}case 183:{ee(t.typeName,n);const r=nJ(t,se,e);return u(m.updateTypeReferenceNode(r,r.typeName,r.typeArguments))}case 180:return u(m.updateConstructSignature(t,Y(t,t.typeParameters),X(t,t.parameters),W(t)));case 176:return u(m.createConstructorDeclaration(ge(t),X(t,t.parameters,0),void 0));case 174:return qN(t.name)?u(void 0):u(m.createMethodDeclaration(ge(t),void 0,t.name,t.questionToken,Y(t,t.typeParameters),X(t,t.parameters),W(t),void 0));case 177:return qN(t.name)?u(void 0):u(m.updateGetAccessorDeclaration(t,ge(t),t.name,Q(t,Cv(t,2)),W(t),void 0));case 178:return qN(t.name)?u(void 0):u(m.updateSetAccessorDeclaration(t,ge(t),t.name,Q(t,Cv(t,2)),void 0));case 172:return qN(t.name)?u(void 0):u(m.updatePropertyDeclaration(t,ge(t),t.name,t.questionToken,W(t),V(t)));case 171:return qN(t.name)?u(void 0):u(m.updatePropertySignature(t,ge(t),t.name,t.questionToken,W(t)));case 173:return qN(t.name)?u(void 0):u(m.updateMethodSignature(t,ge(t),t.name,t.questionToken,Y(t,t.typeParameters),X(t,t.parameters),W(t)));case 179:return u(m.updateCallSignature(t,Y(t,t.typeParameters),X(t,t.parameters),W(t)));case 181:return u(m.updateIndexSignature(t,ge(t),X(t,t.parameters),$B(t.type,se,v_)||m.createKeywordTypeNode(133)));case 260:return x_(t.name)?pe(t.name):(l=!0,o=!0,u(m.updateVariableDeclaration(t,t.name,void 0,W(t),V(t))));case 168:return 174===(_=t).parent.kind&&Cv(_.parent,2)&&(t.default||t.constraint)?u(m.updateTypeParameterDeclaration(t,t.modifiers,t.name,void 0,void 0)):u(nJ(t,se,e));case 194:{const e=$B(t.checkType,se,v_),r=$B(t.extendsType,se,v_),i=n;n=t.trueType;const o=$B(t.trueType,se,v_);n=i;const a=$B(t.falseType,se,v_);return un.assert(e),un.assert(r),un.assert(o),un.assert(a),u(m.updateConditionalTypeNode(t,e,r,o,a))}case 184:return u(m.updateFunctionTypeNode(t,HB(t.typeParameters,se,iD),X(t,t.parameters),un.checkDefined($B(t.type,se,v_))));case 185:return u(m.updateConstructorTypeNode(t,ge(t),HB(t.typeParameters,se,iD),X(t,t.parameters),un.checkDefined($B(t.type,se,v_))));case 205:return _f(t)?u(m.updateImportTypeNode(t,m.updateLiteralTypeNode(t.argument,re(t,t.argument.literal)),t.attributes,t.qualifier,HB(t.typeArguments,se,v_),t.isTypeOf)):u(t);default:un.assertNever(t,`Attempted to process unhandled node kind: ${un.formatSyntaxKind(t.kind)}`)}var _;return CD(t)&&Ja(x,t.pos).line===Ja(x,t.end).line&&nw(t,1),u(nJ(t,se,e));function u(e){return e&&s&&Rh(t)&&function(e){let t;o||(t=a,a=sq(e)),v=e.name,un.assert(Rh(e));ee(e.name.expression,n),o||(a=t),v=void 0}(t),Z(t)&&(n=r),s&&!o&&(a=i),l&&(o=c),e===t?e:e&&YC(te(e,t),t)}}function le(e){if(!function(e){switch(e.kind){case 262:case 267:case 271:case 264:case 263:case 265:case 266:case 243:case 272:case 278:case 277:return!0}return!1}(e))return;if(fe(e))return;switch(e.kind){case 278:return qE(e.parent)&&(_=!0),f=!0,m.updateExportDeclaration(e,e.modifiers,e.isTypeOnly,e.exportClause,re(e,e.moduleSpecifier),oe(e.attributes));case 277:if(qE(e.parent)&&(_=!0),f=!0,80===e.expression.kind)return e;{const t=m.createUniqueName("_default",16);a=()=>({diagnosticMessage:la.Default_export_of_the_module_has_or_is_using_private_name_0,errorNode:e}),b=e;const n=W(e),r=m.createVariableDeclaration(t,void 0,n,void 0);b=void 0;const i=m.createVariableStatement(s?[m.createModifier(138)]:[],m.createVariableDeclarationList([r],2));return te(i,e),tw(e),[i,m.updateExportAssignment(e,e.modifiers,t)]}}const t=de(e);return i.set(TJ(e),t),e}function _e(e){if(tE(e)||Cv(e,2048)||!rI(e))return e;const t=m.createModifiersFromModifierFlags(131039&Mv(e));return m.replaceModifiers(e,t)}function ue(e,t,n,r){const i=m.updateModuleDeclaration(e,t,n,r);if(ap(i)||32&i.flags)return i;const o=m.createModuleDeclaration(i.modifiers,i.name,i.body,32|i.flags);return YC(o,i),nI(o,i),o}function de(t){if(r)for(;zt(r,t););if(fe(t))return;switch(t.kind){case 271:return function(e){if(w.isDeclarationVisible(e)){if(283===e.moduleReference.kind){const t=Tm(e);return m.updateImportEqualsDeclaration(e,e.modifiers,e.isTypeOnly,e.name,m.updateExternalModuleReference(e.moduleReference,re(e,t)))}{const t=a;return a=cq(e),ee(e.moduleReference,n),a=t,e}}}(t);case 272:return function(t){if(!t.importClause)return m.updateImportDeclaration(t,t.modifiers,t.importClause,re(t,t.moduleSpecifier),oe(t.attributes));const n=t.importClause&&t.importClause.name&&w.isDeclarationVisible(t.importClause)?t.importClause.name:void 0;if(!t.importClause.namedBindings)return n&&m.updateImportDeclaration(t,t.modifiers,m.updateImportClause(t.importClause,t.importClause.isTypeOnly,n,void 0),re(t,t.moduleSpecifier),oe(t.attributes));if(274===t.importClause.namedBindings.kind){const e=w.isDeclarationVisible(t.importClause.namedBindings)?t.importClause.namedBindings:void 0;return n||e?m.updateImportDeclaration(t,t.modifiers,m.updateImportClause(t.importClause,t.importClause.isTypeOnly,n,e),re(t,t.moduleSpecifier),oe(t.attributes)):void 0}const r=B(t.importClause.namedBindings.elements,(e=>w.isDeclarationVisible(e)?e:void 0));return r&&r.length||n?m.updateImportDeclaration(t,t.modifiers,m.updateImportClause(t.importClause,t.importClause.isTypeOnly,n,r&&r.length?m.updateNamedImports(t.importClause.namedBindings,r):void 0),re(t,t.moduleSpecifier),oe(t.attributes)):w.isImportRequiredByAugmentation(t)?(A&&e.addDiagnostic(jp(t,la.Declaration_emit_for_this_file_requires_preserving_this_import_for_augmentations_This_is_not_supported_with_isolatedDeclarations)),m.updateImportDeclaration(t,t.modifiers,void 0,re(t,t.moduleSpecifier),oe(t.attributes))):void 0}(t)}if(lu(t)&&H(t))return;if(PP(t))return;if(n_(t)&&w.isImplementationOfOverload(t))return;let o;Z(t)&&(o=n,n=t);const c=aq(t),l=a;c&&(a=cq(t));const g=s;switch(t.kind){case 265:{s=!1;const e=h(m.updateTypeAliasDeclaration(t,ge(t),t.name,HB(t.typeParameters,se,iD),un.checkDefined($B(t.type,se,v_))));return s=g,e}case 264:return h(m.updateInterfaceDeclaration(t,ge(t),t.name,Y(t,t.typeParameters),he(t.heritageClauses),HB(t.members,se,g_)));case 262:{const e=h(m.updateFunctionDeclaration(t,ge(t),void 0,t.name,Y(t,t.typeParameters),X(t,t.parameters),W(t),void 0));if(e&&w.isExpandoFunctionDeclaration(t)&&function(e){var t;if(e.body)return!0;const n=null==(t=e.symbol.declarations)?void 0:t.filter((e=>$F(e)&&!e.body));return!n||n.indexOf(e)===n.length-1}(t)){const r=w.getPropertiesOfContainerFunction(t);A&&L(t);const i=aI.createModuleDeclaration(void 0,e.name||m.createIdentifier("_default"),m.createModuleBlock([]),32);wT(i,n),i.locals=Hu(r),i.symbol=r[0].parent;const o=[];let s=B(r,(e=>{if(!sC(e.valueDeclaration))return;const t=fc(e.escapedName);if(!fs(t,99))return;a=cq(e.valueDeclaration);const n=w.createTypeOfDeclaration(e.valueDeclaration,i,uq,2|dq,y);a=l;const r=Fh(t),s=r?m.getGeneratedNameForNode(e.valueDeclaration):m.createIdentifier(t);r&&o.push([s,t]);const c=m.createVariableDeclaration(s,void 0,n,void 0);return m.createVariableStatement(r?void 0:[m.createToken(95)],m.createVariableDeclarationList([c]))}));o.length?s.push(m.createExportDeclaration(void 0,!1,m.createNamedExports(E(o,(([e,t])=>m.createExportSpecifier(!1,e,t)))))):s=B(s,(e=>m.replaceModifiers(e,0)));const c=m.createModuleDeclaration(ge(t),t.name,m.createModuleBlock(s),32);if(!Cv(e,2048))return[e,c];const u=m.createModifiersFromModifierFlags(-2081&Mv(e)|128),d=m.updateFunctionDeclaration(e,u,void 0,e.name,e.typeParameters,e.parameters,e.type,void 0),p=m.updateModuleDeclaration(c,u,c.name,c.body),g=m.createExportAssignment(void 0,!1,c.name);return qE(t.parent)&&(_=!0),f=!0,[d,p,g]}return e}case 267:{s=!1;const e=t.body;if(e&&268===e.kind){const n=p,r=f;f=!1,p=!1;let i=ae(HB(e.statements,le,du));33554432&t.flags&&(p=!1),up(t)||$(i,me)||f||(i=p?m.createNodeArray([...i,BP(m)]):HB(i,_e,du));const o=m.updateModuleBlock(e,i);s=g,p=n,f=r;const a=ge(t);return h(ue(t,a,dp(t)?re(t,t.name):t.name,o))}{s=g;const n=ge(t);s=!1,$B(e,le);const r=TJ(e),o=i.get(r);return i.delete(r),h(ue(t,n,t.name,o))}}case 263:{v=t.name,b=t;const e=m.createNodeArray(ge(t)),r=Y(t,t.typeParameters),i=rv(t);let o;if(i){const e=a;o=ne(O(i.parameters,(e=>{if(wv(e,31)&&!fe(e))return a=cq(e),80===e.name.kind?te(m.createPropertyDeclaration(ge(e),e.name,e.questionToken,W(e),V(e)),e):function t(n){let r;for(const i of n.elements)fF(i)||(x_(i.name)&&(r=K(r,t(i.name))),r=r||[],r.push(m.createPropertyDeclaration(ge(e),i.name,void 0,W(i),void 0)));return r}(e.name)}))),a=e}const c=K(K(K($(t.members,(e=>!!e.name&&qN(e.name)))?[m.createPropertyDeclaration(void 0,m.createPrivateIdentifier("#private"),void 0,void 0,void 0)]:void 0,w.createLateBoundIndexSignatures(t,n,uq,dq,y)),o),HB(t.members,se,l_)),l=m.createNodeArray(c),_=hh(t);if(_&&!ob(_.expression)&&106!==_.expression.kind){const n=t.name?fc(t.name.escapedText):"default",i=m.createUniqueName(`${n}_base`,16);a=()=>({diagnosticMessage:la.extends_clause_of_exported_class_0_has_or_is_using_private_name_1,errorNode:_,typeName:t.name});const o=m.createVariableDeclaration(i,void 0,w.createTypeOfExpression(_.expression,t,uq,dq,y),void 0),c=m.createVariableStatement(s?[m.createModifier(138)]:[],m.createVariableDeclarationList([o],2)),u=m.createNodeArray(E(t.heritageClauses,(e=>{if(96===e.token){const t=a;a=cq(e.types[0]);const n=m.updateHeritageClause(e,E(e.types,(e=>m.updateExpressionWithTypeArguments(e,i,HB(e.typeArguments,se,v_)))));return a=t,n}return m.updateHeritageClause(e,HB(m.createNodeArray(N(e.types,(e=>ob(e.expression)||106===e.expression.kind))),se,mF))})));return[c,h(m.updateClassDeclaration(t,e,t.name,r,u,l))]}{const n=he(t.heritageClauses);return h(m.updateClassDeclaration(t,e,t.name,r,n,l))}}case 243:return h(function(e){if(!d(e.declarationList.declarations,G))return;const t=HB(e.declarationList.declarations,se,VF);if(!u(t))return;const n=m.createNodeArray(ge(e));let r;return nf(e.declarationList)||tf(e.declarationList)?(r=m.createVariableDeclarationList(t,2),YC(r,e.declarationList),nI(r,e.declarationList),pw(r,e.declarationList)):r=m.updateVariableDeclarationList(e.declarationList,t),m.updateVariableStatement(e,n,r)}(t));case 266:return h(m.updateEnumDeclaration(t,m.createNodeArray(ge(t)),t.name,m.createNodeArray(B(t.members,(t=>{if(fe(t))return;const n=w.getEnumMemberValue(t),r=null==n?void 0:n.value;A&&t.initializer&&(null==n?void 0:n.hasExternalReferences)&&!rD(t.name)&&e.addDiagnostic(jp(t,la.Enum_member_initializers_must_be_computable_without_references_to_external_symbols_with_isolatedDeclarations));const i=void 0===r?void 0:"string"==typeof r?m.createStringLiteral(r):r<0?m.createPrefixUnaryExpression(41,m.createNumericLiteral(-r)):m.createNumericLiteral(r);return te(m.updateEnumMember(t,t.name,i),t)})))))}return un.assertNever(t,`Unhandled top-level node in declaration emit: ${un.formatSyntaxKind(t.kind)}`);function h(e){return Z(t)&&(n=o),c&&(a=l),267===t.kind&&(s=g),e===t?e:(b=void 0,v=void 0,e&&YC(te(e,t),t))}}function pe(e){return I(B(e.elements,(e=>function(e){if(232!==e.kind&&e.name){if(!G(e))return;return x_(e.name)?pe(e.name):m.createVariableDeclaration(e.name,void 0,W(e),void 0)}}(e))))}function fe(e){return!!P&&!!e&&Ju(e,x)}function me(e){return pE(e)||fE(e)}function ge(e){const t=Mv(e),n=function(e){let t=130030,n=s&&!function(e){return 264===e.kind}(e)?128:0;const r=307===e.parent.kind;return(!r||c&&r&&MI(e.parent))&&(t^=128,n=0),fq(e,t,n)}(e);return t===n?KB(e.modifiers,(e=>tt(e,Yl)),Yl):m.createModifiersFromModifierFlags(n)}function he(e){return m.createNodeArray(N(E(e,(e=>m.updateHeritageClause(e,HB(m.createNodeArray(N(e.types,(t=>ob(t.expression)||96===e.token&&106===t.expression.kind))),se,mF)))),(e=>e.types&&!!e.types.length)))}}function fq(e,t=131070,n=0){let r=Mv(e)&t|n;return 2048&r&&!(32&r)&&(r^=32),2048&r&&128&r&&(r^=128),r}function mq(e){switch(e.kind){case 172:case 171:return!Cv(e,2);case 169:case 260:return!0}return!1}var gq={scriptTransformers:l,declarationTransformers:l};function hq(e,t,n){return{scriptTransformers:yq(e,t,n),declarationTransformers:vq(t)}}function yq(e,t,n){if(n)return l;const r=hk(e),i=yk(e),o=Ak(e),a=[];return se(a,t&&E(t.before,xq)),a.push(Pz),e.experimentalDecorators&&a.push(Lz),Wk(e)&&a.push(Gz),r<99&&a.push(Uz),e.experimentalDecorators||!(r<99)&&o||a.push(jz),a.push(Az),r<8&&a.push(qz),r<7&&a.push(zz),r<6&&a.push(Jz),r<5&&a.push(Bz),r<4&&a.push(Rz),r<3&&a.push(Qz),r<2&&(a.push(Zz),a.push(eq)),a.push(function(e){switch(e){case 200:return iq;case 99:case 7:case 6:case 5:case 100:case 199:case 1:return oq;case 4:return rq;default:return tq}}(i)),se(a,t&&E(t.after,xq)),a}function vq(e){const t=[];return t.push(pq),se(t,e&&E(e.afterDeclarations,kq)),t}function bq(e,t){return n=>{const r=e(n);return"function"==typeof r?t(n,r):function(e){return t=>UE(t)?e.transformBundle(t):e.transformSourceFile(t)}(r)}}function xq(e){return bq(e,NJ)}function kq(e){return bq(e,((e,t)=>t))}function Sq(e,t){return t}function Tq(e,t,n){n(e,t)}function Cq(e,t,n,r,i,o,a){var s,c;const l=new Array(358);let _,u,d,p,f,m=0,g=[],h=[],y=[],v=[],b=0,x=!1,k=[],S=0,T=Sq,C=Tq,w=0;const N=[],D={factory:n,getCompilerOptions:()=>r,getEmitResolver:()=>e,getEmitHost:()=>t,getEmitHelperFactory:dt((()=>Jw(D))),startLexicalEnvironment:function(){un.assert(w>0,"Cannot modify the lexical environment during initialization."),un.assert(w<2,"Cannot modify the lexical environment after transformation has completed."),un.assert(!x,"Lexical environment is suspended."),g[b]=_,h[b]=u,y[b]=d,v[b]=m,b++,_=void 0,u=void 0,d=void 0,m=0},suspendLexicalEnvironment:function(){un.assert(w>0,"Cannot modify the lexical environment during initialization."),un.assert(w<2,"Cannot modify the lexical environment after transformation has completed."),un.assert(!x,"Lexical environment is already suspended."),x=!0},resumeLexicalEnvironment:function(){un.assert(w>0,"Cannot modify the lexical environment during initialization."),un.assert(w<2,"Cannot modify the lexical environment after transformation has completed."),un.assert(x,"Lexical environment is not suspended."),x=!1},endLexicalEnvironment:function(){let e;if(un.assert(w>0,"Cannot modify the lexical environment during initialization."),un.assert(w<2,"Cannot modify the lexical environment after transformation has completed."),un.assert(!x,"Lexical environment is suspended."),_||u||d){if(u&&(e=[...u]),_){const t=n.createVariableStatement(void 0,n.createVariableDeclarationList(_));nw(t,2097152),e?e.push(t):e=[t]}d&&(e=e?[...e,...d]:[...d])}return b--,_=g[b],u=h[b],d=y[b],m=v[b],0===b&&(g=[],h=[],y=[],v=[]),e},setLexicalEnvironmentFlags:function(e,t){m=t?m|e:m&~e},getLexicalEnvironmentFlags:function(){return m},hoistVariableDeclaration:function(e){un.assert(w>0,"Cannot modify the lexical environment during initialization."),un.assert(w<2,"Cannot modify the lexical environment after transformation has completed.");const t=nw(n.createVariableDeclaration(e),128);_?_.push(t):_=[t],1&m&&(m|=2)},hoistFunctionDeclaration:function(e){un.assert(w>0,"Cannot modify the lexical environment during initialization."),un.assert(w<2,"Cannot modify the lexical environment after transformation has completed."),nw(e,2097152),u?u.push(e):u=[e]},addInitializationStatement:function(e){un.assert(w>0,"Cannot modify the lexical environment during initialization."),un.assert(w<2,"Cannot modify the lexical environment after transformation has completed."),nw(e,2097152),d?d.push(e):d=[e]},startBlockScope:function(){un.assert(w>0,"Cannot start a block scope during initialization."),un.assert(w<2,"Cannot start a block scope after transformation has completed."),k[S]=p,S++,p=void 0},endBlockScope:function(){un.assert(w>0,"Cannot end a block scope during initialization."),un.assert(w<2,"Cannot end a block scope after transformation has completed.");const e=$(p)?[n.createVariableStatement(void 0,n.createVariableDeclarationList(p.map((e=>n.createVariableDeclaration(e))),1))]:void 0;return S--,p=k[S],0===S&&(k=[]),e},addBlockScopedVariable:function(e){un.assert(S>0,"Cannot add a block scoped variable outside of an iteration body."),(p||(p=[])).push(e)},requestEmitHelper:function e(t){if(un.assert(w>0,"Cannot modify the transformation context during initialization."),un.assert(w<2,"Cannot modify the transformation context after transformation has completed."),un.assert(!t.scoped,"Cannot request a scoped emit helper."),t.dependencies)for(const n of t.dependencies)e(n);f=ie(f,t)},readEmitHelpers:function(){un.assert(w>0,"Cannot modify the transformation context during initialization."),un.assert(w<2,"Cannot modify the transformation context after transformation has completed.");const e=f;return f=void 0,e},enableSubstitution:function(e){un.assert(w<2,"Cannot modify the transformation context after transformation has completed."),l[e]|=1},enableEmitNotification:function(e){un.assert(w<2,"Cannot modify the transformation context after transformation has completed."),l[e]|=2},isSubstitutionEnabled:I,isEmitNotificationEnabled:O,get onSubstituteNode(){return T},set onSubstituteNode(e){un.assert(w<1,"Cannot modify transformation hooks after initialization has completed."),un.assert(void 0!==e,"Value must not be 'undefined'"),T=e},get onEmitNode(){return C},set onEmitNode(e){un.assert(w<1,"Cannot modify transformation hooks after initialization has completed."),un.assert(void 0!==e,"Value must not be 'undefined'"),C=e},addDiagnostic(e){N.push(e)}};for(const e of i)ew(hd(dc(e)));tr("beforeTransform");const F=o.map((e=>e(D))),E=e=>{for(const t of F)e=t(e);return e};w=1;const P=[];for(const e of i)null==(s=Hn)||s.push(Hn.Phase.Emit,"transformNodes",307===e.kind?{path:e.path}:{kind:e.kind,pos:e.pos,end:e.end}),P.push((a?E:A)(e)),null==(c=Hn)||c.pop();return w=2,tr("afterTransform"),nr("transformTime","beforeTransform","afterTransform"),{transformed:P,substituteNode:function(e,t){return un.assert(w<3,"Cannot substitute a node after the result is disposed."),t&&I(t)&&T(e,t)||t},emitNodeWithNotification:function(e,t,n){un.assert(w<3,"Cannot invoke TransformationResult callbacks after the result is disposed."),t&&(O(t)?C(e,t,n):n(e,t))},isEmitNotificationEnabled:O,dispose:function(){if(w<3){for(const e of i)ew(hd(dc(e)));_=void 0,g=void 0,u=void 0,h=void 0,T=void 0,C=void 0,f=void 0,w=3}},diagnostics:N};function A(e){return!e||qE(e)&&e.isDeclarationFile?e:E(e)}function I(e){return!(!(1&l[e.kind])||8&Qd(e))}function O(e){return!!(2&l[e.kind])||!!(4&Qd(e))}}var wq={factory:XC,getCompilerOptions:()=>({}),getEmitResolver:ut,getEmitHost:ut,getEmitHelperFactory:ut,startLexicalEnvironment:rt,resumeLexicalEnvironment:rt,suspendLexicalEnvironment:rt,endLexicalEnvironment:at,setLexicalEnvironmentFlags:rt,getLexicalEnvironmentFlags:()=>0,hoistVariableDeclaration:rt,hoistFunctionDeclaration:rt,addInitializationStatement:rt,startBlockScope:rt,endBlockScope:at,addBlockScopedVariable:rt,requestEmitHelper:rt,readEmitHelpers:ut,enableSubstitution:rt,enableEmitNotification:rt,isSubstitutionEnabled:ut,isEmitNotificationEnabled:ut,onSubstituteNode:Sq,onEmitNode:Tq,addDiagnostic:rt},Nq=function(){const e=[];return e[1024]=["{","}"],e[2048]=["(",")"],e[4096]=["<",">"],e[8192]=["[","]"],e}();function Dq(e){return ko(e,".tsbuildinfo")}function Fq(e,t,n,r=!1,i,o){const a=Qe(n)?n:Ky(e,n,r),s=e.getCompilerOptions();if(!i)if(s.outFile){if(a.length){const n=XC.createBundle(a),i=t(Aq(n,e,r),n);if(i)return i}}else for(const n of a){const i=t(Aq(n,e,r),n);if(i)return i}if(o){const e=Eq(s);if(e)return t({buildInfoPath:e},void 0)}}function Eq(e){const t=e.configFilePath;if(!function(e){return Fk(e)||!!e.tscBuild}(e))return;if(e.tsBuildInfoFile)return e.tsBuildInfoFile;const n=e.outFile;let r;if(n)r=zS(n);else{if(!t)return;const n=zS(t);r=e.outDir?e.rootDir?Ro(e.outDir,na(e.rootDir,n,!0)):jo(e.outDir,Fo(n)):n}return r+".tsbuildinfo"}function Pq(e,t){const n=e.outFile,r=e.emitDeclarationOnly?void 0:n,i=r&&Iq(r,e),o=t||Nk(e)?zS(n)+".d.ts":void 0;return{jsFilePath:r,sourceMapFilePath:i,declarationFilePath:o,declarationMapPath:o&&Ek(e)?o+".map":void 0}}function Aq(e,t,n){const r=t.getCompilerOptions();if(308===e.kind)return Pq(r,n);{const i=zy(e.fileName,t,Oq(e.fileName,r)),o=Yp(e),a=o&&0===Yo(e.fileName,i,t.getCurrentDirectory(),!t.useCaseSensitiveFileNames()),s=r.emitDeclarationOnly||a?void 0:i,c=!s||Yp(e)?void 0:Iq(s,r),l=n||Nk(r)&&!o?qy(e.fileName,t):void 0;return{jsFilePath:s,sourceMapFilePath:c,declarationFilePath:l,declarationMapPath:l&&Ek(r)?l+".map":void 0}}}function Iq(e,t){return t.sourceMap&&!t.inlineSourceMap?e+".map":void 0}function Oq(e,t){return ko(e,".json")?".json":1===t.jsx&&So(e,[".jsx",".tsx"])?".jsx":So(e,[".mts",".mjs"])?".mjs":So(e,[".cts",".cjs"])?".cjs":".js"}function Lq(e,t,n,r){return n?Ro(n,na(r(),e,t)):e}function jq(e,t,n,r=()=>Vq(t,n)){return Rq(e,t.options,n,r)}function Rq(e,t,n,r){return VS(Lq(e,n,t.declarationDir||t.outDir,r),Vy(e))}function Mq(e,t,n,r=()=>Vq(t,n)){if(t.options.emitDeclarationOnly)return;const i=ko(e,".json"),o=Bq(e,t.options,n,r);return i&&0===Yo(e,o,un.checkDefined(t.options.configFilePath),n)?void 0:o}function Bq(e,t,n,r){return VS(Lq(e,n,t.outDir,r),Oq(e,t))}function Jq(){let e;return{addOutput:function(t){t&&(e||(e=[])).push(t)},getOutputs:function(){return e||l}}}function zq(e,t){const{jsFilePath:n,sourceMapFilePath:r,declarationFilePath:i,declarationMapPath:o}=Pq(e.options,!1);t(n),t(r),t(i),t(o)}function qq(e,t,n,r,i){if($I(t))return;const o=Mq(t,e,n,i);if(r(o),!ko(t,".json")&&(o&&e.options.sourceMap&&r(`${o}.map`),Nk(e.options))){const o=jq(t,e,n,i);r(o),e.options.declarationMap&&r(`${o}.map`)}}function Uq(e,t,n,r,i){let o;return e.rootDir?(o=Bo(e.rootDir,n),null==i||i(e.rootDir)):e.composite&&e.configFilePath?(o=Do(Oo(e.configFilePath)),null==i||i(o)):o=kU(t(),n,r),o&&o[o.length-1]!==lo&&(o+=lo),o}function Vq({options:e,fileNames:t},n){return Uq(e,(()=>N(t,(t=>!(e.noEmitForJsFiles&&So(t,TS)||$I(t))))),Do(Oo(un.checkDefined(e.configFilePath))),Wt(!n))}function Wq(e,t){const{addOutput:n,getOutputs:r}=Jq();if(e.options.outFile)zq(e,n);else{const r=dt((()=>Vq(e,t)));for(const i of e.fileNames)qq(e,i,t,n,r)}return n(Eq(e.options)),r()}function $q(e,t,n){t=Jo(t),un.assert(T(e.fileNames,t),"Expected fileName to be present in command line");const{addOutput:r,getOutputs:i}=Jq();return e.options.outFile?zq(e,r):qq(e,t,n,r),i()}function Hq(e,t){if(e.options.outFile){const{jsFilePath:t,declarationFilePath:n}=Pq(e.options,!1);return un.checkDefined(t||n,`project ${e.options.configFilePath} expected to have at least one output`)}const n=dt((()=>Vq(e,t)));for(const r of e.fileNames){if($I(r))continue;const i=Mq(r,e,t,n);if(i)return i;if(!ko(r,".json")&&Nk(e.options))return jq(r,e,t,n)}return Eq(e.options)||un.fail(`project ${e.options.configFilePath} expected to have at least one output`)}function Kq(e,t){return!!t&&!!e}function Gq(e,t,n,{scriptTransformers:r,declarationTransformers:i},o,a,c,l){var _=t.getCompilerOptions(),d=_.sourceMap||_.inlineSourceMap||Ek(_)?[]:void 0,p=_.listEmittedFiles?[]:void 0,f=ly(),m=Eb(_),g=Iy(m),{enter:h,exit:y}=$n("printTime","beforePrint","afterPrint"),v=!1;return h(),Fq(t,(function({jsFilePath:a,sourceMapFilePath:l,declarationFilePath:d,declarationMapPath:m,buildInfoPath:g},h){var y,k,S,T,C,w;null==(y=Hn)||y.push(Hn.Phase.Emit,"emitJsFileOrBundle",{jsFilePath:a}),function(n,i,a){if(!n||o||!i)return;if(t.isEmitBlocked(i)||_.noEmit)return void(v=!0);(qE(n)?[n]:N(n.sourceFiles,Pm)).forEach((t=>{var n;!_.noCheck&&uT(t,_)||(Dm(n=t)||AI(n,(t=>!tE(t)||32&Jv(t)?nE(t)?"skip":void e.markLinkedReferences(t):"skip")))}));const s=Cq(e,t,XC,_,[n],r,!1),c=rU({removeComments:_.removeComments,newLine:_.newLine,noEmitHelpers:_.noEmitHelpers,module:yk(_),moduleResolution:vk(_),target:hk(_),sourceMap:_.sourceMap,inlineSourceMap:_.inlineSourceMap,inlineSources:_.inlineSources,extendedDiagnostics:_.extendedDiagnostics},{hasGlobalName:e.hasGlobalName,onEmitNode:s.emitNodeWithNotification,isEmitNotificationEnabled:s.isEmitNotificationEnabled,substituteNode:s.substituteNode});un.assert(1===s.transformed.length,"Should only see one output from the transform"),x(i,a,s,c,_),s.dispose(),p&&(p.push(i),a&&p.push(a))}(h,a,l),null==(k=Hn)||k.pop(),null==(S=Hn)||S.push(Hn.Phase.Emit,"emitDeclarationFileOrBundle",{declarationFilePath:d}),function(n,r,a){if(!n||0===o)return;if(!r)return void((o||_.emitDeclarationOnly)&&(v=!0));const s=qE(n)?[n]:n.sourceFiles,l=c?s:N(s,Pm),d=_.outFile?[XC.createBundle(l)]:l;l.forEach((e=>{(o&&!Nk(_)||_.noCheck||Kq(o,c)||!uT(e,_))&&b(e)}));const m=Cq(e,t,XC,_,d,i,!1);if(u(m.diagnostics))for(const e of m.diagnostics)f.add(e);const g=!!m.diagnostics&&!!m.diagnostics.length||!!t.isEmitBlocked(r)||!!_.noEmit;if(v=v||g,!g||c){un.assert(1===m.transformed.length,"Should only see one output from the decl transform");const t={removeComments:_.removeComments,newLine:_.newLine,noEmitHelpers:!0,module:_.module,moduleResolution:_.moduleResolution,target:_.target,sourceMap:2!==o&&_.declarationMap,inlineSourceMap:_.inlineSourceMap,extendedDiagnostics:_.extendedDiagnostics,onlyPrintJsDocStyle:!0,omitBraceSourceMapPositions:!0},n=x(r,a,m,rU(t,{hasGlobalName:e.hasGlobalName,onEmitNode:m.emitNodeWithNotification,isEmitNotificationEnabled:m.isEmitNotificationEnabled,substituteNode:m.substituteNode}),{sourceMap:t.sourceMap,sourceRoot:_.sourceRoot,mapRoot:_.mapRoot,extendedDiagnostics:_.extendedDiagnostics});p&&(n&&p.push(r),a&&p.push(a))}m.dispose()}(h,d,m),null==(T=Hn)||T.pop(),null==(C=Hn)||C.push(Hn.Phase.Emit,"emitBuildInfo",{buildInfoPath:g}),function(e){if(!e||n)return;if(t.isEmitBlocked(e))return void(v=!0);const r=t.getBuildInfo()||{version:s};Yy(t,f,e,Xq(r),!1,void 0,{buildInfo:r}),null==p||p.push(e)}(g),null==(w=Hn)||w.pop()}),Ky(t,n,c),c,a,!n&&!l),y(),{emitSkipped:v,diagnostics:f.getDiagnostics(),emittedFiles:p,sourceMaps:d};function b(t){pE(t)?80===t.expression.kind&&e.collectLinkedAliases(t.expression,!0):gE(t)?e.collectLinkedAliases(t.propertyName||t.name,!0):PI(t,b)}function x(e,n,r,i,o){const a=r.transformed[0],s=308===a.kind?a:void 0,c=307===a.kind?a:void 0,l=s?s.sourceFiles:[c];let u,p;if(function(e,t){return(e.sourceMap||e.inlineSourceMap)&&(307!==t.kind||!ko(t.fileName,".json"))}(o,a)&&(u=oJ(t,Fo(Oo(e)),function(e){const t=Oo(e.sourceRoot||"");return t?Vo(t):t}(o),function(e,n,r){if(e.sourceRoot)return t.getCommonSourceDirectory();if(e.mapRoot){let n=Oo(e.mapRoot);return r&&(n=Do(Xy(r.fileName,t,n))),0===No(n)&&(n=jo(t.getCommonSourceDirectory(),n)),n}return Do(Jo(n))}(o,e,c),o)),s?i.writeBundle(s,g,u):i.writeFile(c,g,u),u){d&&d.push({inputSourceFileNames:u.getSources(),sourceMap:u.toJSON()});const r=function(e,n,r,i,o){if(e.inlineSourceMap){const e=n.toString();return`data:application/json;base64,${kb(so,e)}`}const a=Fo(Oo(un.checkDefined(i)));if(e.mapRoot){let n=Oo(e.mapRoot);return o&&(n=Do(Xy(o.fileName,t,n))),0===No(n)?(n=jo(t.getCommonSourceDirectory(),n),encodeURI(oa(Do(Jo(r)),jo(n,a),t.getCurrentDirectory(),t.getCanonicalFileName,!0))):encodeURI(jo(n,a))}return encodeURI(a)}(o,u,e,n,c);if(r&&(g.isAtStartOfLine()||g.rawWrite(m),p=g.getTextPos(),g.writeComment(`//# sourceMappingURL=${r}`)),n){const e=u.toString();Yy(t,f,n,e,!1,l)}}else g.writeLine();const h=g.getText(),y={sourceMapUrlPos:p,diagnostics:r.diagnostics};return Yy(t,f,e,h,!!_.emitBOM,l,y),g.clear(),!y.skippedDtsWrite}}function Xq(e){return JSON.stringify(e)}function Qq(e,t){return Tb(e,t)}var Yq={hasGlobalName:ut,getReferencedExportContainer:ut,getReferencedImportDeclaration:ut,getReferencedDeclarationWithCollidingName:ut,isDeclarationWithCollidingName:ut,isValueAliasDeclaration:ut,isReferencedAliasDeclaration:ut,isTopLevelValueImportEqualsWithEntityName:ut,hasNodeCheckFlag:ut,isDeclarationVisible:ut,isLateBound:e=>!1,collectLinkedAliases:ut,markLinkedReferences:ut,isImplementationOfOverload:ut,requiresAddingImplicitUndefined:ut,isExpandoFunctionDeclaration:ut,getPropertiesOfContainerFunction:ut,createTypeOfDeclaration:ut,createReturnTypeOfSignatureDeclaration:ut,createTypeOfExpression:ut,createLiteralConstValue:ut,isSymbolAccessible:ut,isEntityNameVisible:ut,getConstantValue:ut,getEnumMemberValue:ut,getReferencedValueDeclaration:ut,getReferencedValueDeclarations:ut,getTypeReferenceSerializationKind:ut,isOptionalParameter:ut,isArgumentsLocalBinding:ut,getExternalModuleFileFromDeclaration:ut,isLiteralConstDeclaration:ut,getJsxFactoryEntity:ut,getJsxFragmentFactoryEntity:ut,isBindingCapturedByNode:ut,getDeclarationStatementsForSourceFile:ut,isImportRequiredByAugmentation:ut,isDefinitelyReferenceToGlobalSymbolObject:ut,createLateBoundIndexSignatures:ut},Zq=dt((()=>rU({}))),eU=dt((()=>rU({removeComments:!0}))),tU=dt((()=>rU({removeComments:!0,neverAsciiEscape:!0}))),nU=dt((()=>rU({removeComments:!0,omitTrailingSemicolon:!0})));function rU(e={},t={}){var n,r,i,o,a,s,c,l,_,u,p,f,m,g,h,y,b,x,S,T,C,w,N,D,F,E,{hasGlobalName:P,onEmitNode:A=Tq,isEmitNotificationEnabled:I,substituteNode:O=Sq,onBeforeEmitNode:L,onAfterEmitNode:j,onBeforeEmitNodeArray:R,onAfterEmitNodeArray:M,onBeforeEmitToken:B,onAfterEmitToken:J}=t,z=!!e.extendedDiagnostics,q=!!e.omitBraceSourceMapPositions,U=Eb(e),V=yk(e),W=new Map,H=e.preserveSourceNewlines,K=function(e){b.write(e)},G=!0,X=-1,Q=-1,Y=-1,Z=-1,ee=-1,te=!1,ne=!!e.removeComments,{enter:re,exit:ie}=Wn(z,"commentTime","beforeComment","afterComment"),oe=XC.parenthesizer,ae={select:e=>0===e?oe.parenthesizeLeadingTypeArgument:void 0},se=function(){return UA((function(e,t){if(t){t.stackIndex++,t.preserveSourceNewlinesStack[t.stackIndex]=H,t.containerPosStack[t.stackIndex]=Y,t.containerEndStack[t.stackIndex]=Z,t.declarationListContainerEndStack[t.stackIndex]=ee;const n=t.shouldEmitCommentsStack[t.stackIndex]=Ie(e),r=t.shouldEmitSourceMapsStack[t.stackIndex]=Oe(e);null==L||L(e),n&&Hn(e),r&&mr(e),Ee(e)}else t={stackIndex:0,preserveSourceNewlinesStack:[void 0],containerPosStack:[-1],containerEndStack:[-1],declarationListContainerEndStack:[-1],shouldEmitCommentsStack:[!1],shouldEmitSourceMapsStack:[!1]};return t}),(function(t,n,r){return e(t,r,"left")}),(function(e,t,n){const r=28!==e.kind,i=Sn(n,n.left,e),o=Sn(n,e,n.right);fn(i,r),or(e.pos),ln(e,103===e.kind?Qt:Yt),sr(e.end,!0),fn(o,!0)}),(function(t,n,r){return e(t,r,"right")}),(function(e,t){if(mn(Sn(e,e.left,e.operatorToken),Sn(e,e.operatorToken,e.right)),t.stackIndex>0){const n=t.preserveSourceNewlinesStack[t.stackIndex],r=t.containerPosStack[t.stackIndex],i=t.containerEndStack[t.stackIndex],o=t.declarationListContainerEndStack[t.stackIndex],a=t.shouldEmitCommentsStack[t.stackIndex],s=t.shouldEmitSourceMapsStack[t.stackIndex];Pe(n),s&&gr(e),a&&Kn(e,r,i,o),null==j||j(e),t.stackIndex--}}),void 0);function e(e,t,n){const r="left"===n?oe.getParenthesizeLeftSideOfBinaryForOperator(t.operatorToken.kind):oe.getParenthesizeRightSideOfBinaryForOperator(t.operatorToken.kind);let i=Le(0,1,e);if(i===Je&&(un.assertIsDefined(F),i=je(1,1,e=r(nt(F,U_))),F=void 0),(i===$n||i===fr||i===Me)&&cF(e))return e;E=r,i(1,e)}}();return Te(),{printNode:function(e,t,n){switch(e){case 0:un.assert(qE(t),"Expected a SourceFile node.");break;case 2:un.assert(zN(t),"Expected an Identifier node.");break;case 1:un.assert(U_(t),"Expected an Expression node.")}switch(t.kind){case 307:return le(t);case 308:return ce(t)}return ue(e,t,n,ge()),he()},printList:function(e,t,n){return de(e,t,n,ge()),he()},printFile:le,printBundle:ce,writeNode:ue,writeList:de,writeFile:me,writeBundle:pe};function ce(e){return pe(e,ge(),void 0),he()}function le(e){return me(e,ge(),void 0),he()}function ue(e,t,n,r){const i=b;Se(r,void 0),xe(e,t,n),Te(),b=i}function de(e,t,n,r){const i=b;Se(r,void 0),n&&ke(n),Ut(void 0,t,e),Te(),b=i}function pe(e,t,n){S=!1;const r=b;var i;Se(t,n),Ft(e),Dt(e),ze(e),Ct(!!(i=e).hasNoDefaultLib,i.syntheticFileReferences||[],i.syntheticTypeReferences||[],i.syntheticLibReferences||[]);for(const t of e.sourceFiles)xe(0,t,t);Te(),b=r}function me(e,t,n){S=!0;const r=b;Se(t,n),Ft(e),Dt(e),xe(0,e,e),Te(),b=r}function ge(){return x||(x=Iy(U))}function he(){const e=x.getText();return x.clear(),e}function xe(e,t,n){n&&ke(n),Ae(e,t,void 0)}function ke(e){n=e,N=void 0,D=void 0,e&&xr(e)}function Se(t,n){t&&e.omitTrailingSemicolon&&(t=Oy(t)),T=n,G=!(b=t)||!T}function Te(){r=[],i=[],o=[],a=new Set,s=[],c=new Map,l=[],_=0,u=[],p=0,f=[],m=void 0,g=[],h=void 0,n=void 0,N=void 0,D=void 0,Se(void 0,void 0)}function Ce(){return N||(N=ja(un.checkDefined(n)))}function we(e,t){void 0!==e&&Ae(4,e,t)}function Ne(e){void 0!==e&&Ae(2,e,void 0)}function De(e,t){void 0!==e&&Ae(1,e,t)}function Fe(e){Ae(TN(e)?6:4,e)}function Ee(e){H&&4&Yd(e)&&(H=!1)}function Pe(e){H=e}function Ae(e,t,n){E=n,Le(0,e,t)(e,t),E=void 0}function Ie(e){return!ne&&!qE(e)}function Oe(e){return!G&&!qE(e)&&!Em(e)}function Le(e,t,n){switch(e){case 0:if(A!==Tq&&(!I||I(n)))return Re;case 1:if(O!==Sq&&(F=O(t,n)||n)!==n)return E&&(F=E(F)),Je;case 2:if(Ie(n))return $n;case 3:if(Oe(n))return fr;case 4:return Me;default:return un.assertNever(e)}}function je(e,t,n){return Le(e+1,t,n)}function Re(e,t){const n=je(0,e,t);A(e,t,n)}function Me(e,t){if(null==L||L(t),H){const n=H;Ee(t),Be(e,t),Pe(n)}else Be(e,t);null==j||j(t),E=void 0}function Be(e,t,r=!0){if(r){const n=Dw(t);if(n)return function(e,t,n){switch(n.kind){case 1:!function(e,t,n){rn(`\${${n.order}:`),Be(e,t,!1),rn("}")}(e,t,n);break;case 0:!function(e,t,n){un.assert(242===t.kind,`A tab stop cannot be attached to a node of kind ${un.formatSyntaxKind(t.kind)}.`),un.assert(5!==e,"A tab stop cannot be attached to an embedded statement."),rn(`$${n.order}`)}(e,t,n)}}(e,t,n)}if(0===e)return Tt(nt(t,qE));if(2===e)return Ve(nt(t,zN));if(6===e)return Ue(nt(t,TN),!0);if(3===e)return function(e){we(e.name),tn(),Qt("in"),tn(),we(e.constraint)}(nt(t,iD));if(7===e)return function(e){Gt("{"),tn(),Qt(132===e.token?"assert":"with"),Gt(":"),tn();Ut(e,e.elements,526226),tn(),Gt("}")}(nt(t,sE));if(5===e)return un.assertNode(t,NF),Ye(!0);if(4===e){switch(t.kind){case 16:case 17:case 18:return Ue(t,!1);case 80:return Ve(t);case 81:return We(t);case 166:return function(e){(function(e){80===e.kind?De(e):we(e)})(e.left),Gt("."),we(e.right)}(t);case 167:return function(e){Gt("["),De(e.expression,oe.parenthesizeExpressionOfComputedPropertyName),Gt("]")}(t);case 168:return function(e){At(e,e.modifiers),we(e.name),e.constraint&&(tn(),Qt("extends"),tn(),we(e.constraint)),e.default&&(tn(),Yt("="),tn(),we(e.default))}(t);case 169:return function(e){Pt(e,e.modifiers,!0),we(e.dotDotDotToken),Et(e.name,Zt),we(e.questionToken),e.parent&&317===e.parent.kind&&!e.name?we(e.type):It(e.type),Ot(e.initializer,e.type?e.type.end:e.questionToken?e.questionToken.end:e.name?e.name.end:e.modifiers?e.modifiers.end:e.pos,e,oe.parenthesizeExpressionForDisallowedComma)}(t);case 170:return a=t,Gt("@"),void De(a.expression,oe.parenthesizeLeftSideOfAccess);case 171:return function(e){At(e,e.modifiers),Et(e.name,nn),we(e.questionToken),It(e.type),Xt()}(t);case 172:return function(e){Pt(e,e.modifiers,!0),we(e.name),we(e.questionToken),we(e.exclamationToken),It(e.type),Ot(e.initializer,e.type?e.type.end:e.questionToken?e.questionToken.end:e.name.end,e),Xt()}(t);case 173:return function(e){At(e,e.modifiers),we(e.name),we(e.questionToken),lt(e,dt,ut)}(t);case 174:return function(e){Pt(e,e.modifiers,!0),we(e.asteriskToken),we(e.name),we(e.questionToken),lt(e,dt,_t)}(t);case 175:return function(e){Qt("static"),Dn(e),pt(e.body),Fn(e)}(t);case 176:return function(e){Pt(e,e.modifiers,!1),Qt("constructor"),lt(e,dt,_t)}(t);case 177:case 178:return function(e){const t=Pt(e,e.modifiers,!0);rt(177===e.kind?139:153,t,Qt,e),tn(),we(e.name),lt(e,dt,_t)}(t);case 179:return function(e){lt(e,dt,ut)}(t);case 180:return function(e){Qt("new"),tn(),lt(e,dt,ut)}(t);case 181:return function(e){Pt(e,e.modifiers,!1),Ut(e,e.parameters,8848),It(e.type),Xt()}(t);case 182:return function(e){e.assertsModifier&&(we(e.assertsModifier),tn()),we(e.parameterName),e.type&&(tn(),Qt("is"),tn(),we(e.type))}(t);case 183:return function(e){we(e.typeName),Mt(e,e.typeArguments)}(t);case 184:return function(e){lt(e,$e,He)}(t);case 185:return function(e){At(e,e.modifiers),Qt("new"),tn(),lt(e,$e,He)}(t);case 186:return function(e){Qt("typeof"),tn(),we(e.exprName),Mt(e,e.typeArguments)}(t);case 187:return function(e){Dn(e),d(e.members,In),Gt("{");const t=1&Qd(e)?768:32897;Ut(e,e.members,524288|t),Gt("}"),Fn(e)}(t);case 188:return function(e){we(e.elementType,oe.parenthesizeNonArrayTypeOfPostfixType),Gt("["),Gt("]")}(t);case 189:return function(e){rt(23,e.pos,Gt,e);const t=1&Qd(e)?528:657;Ut(e,e.elements,524288|t,oe.parenthesizeElementTypeOfTupleType),rt(24,e.elements.end,Gt,e)}(t);case 190:return function(e){we(e.type,oe.parenthesizeTypeOfOptionalType),Gt("?")}(t);case 192:return function(e){Ut(e,e.types,516,oe.parenthesizeConstituentTypeOfUnionType)}(t);case 193:return function(e){Ut(e,e.types,520,oe.parenthesizeConstituentTypeOfIntersectionType)}(t);case 194:return function(e){we(e.checkType,oe.parenthesizeCheckTypeOfConditionalType),tn(),Qt("extends"),tn(),we(e.extendsType,oe.parenthesizeExtendsTypeOfConditionalType),tn(),Gt("?"),tn(),we(e.trueType),tn(),Gt(":"),tn(),we(e.falseType)}(t);case 195:return function(e){Qt("infer"),tn(),we(e.typeParameter)}(t);case 196:return function(e){Gt("("),we(e.type),Gt(")")}(t);case 233:return Xe(t);case 197:return void Qt("this");case 198:return function(e){_n(e.operator,Qt),tn();const t=148===e.operator?oe.parenthesizeOperandOfReadonlyTypeOperator:oe.parenthesizeOperandOfTypeOperator;we(e.type,t)}(t);case 199:return function(e){we(e.objectType,oe.parenthesizeNonArrayTypeOfPostfixType),Gt("["),we(e.indexType),Gt("]")}(t);case 200:return function(e){const t=Qd(e);Gt("{"),1&t?tn():(on(),an()),e.readonlyToken&&(we(e.readonlyToken),148!==e.readonlyToken.kind&&Qt("readonly"),tn()),Gt("["),Ae(3,e.typeParameter),e.nameType&&(tn(),Qt("as"),tn(),we(e.nameType)),Gt("]"),e.questionToken&&(we(e.questionToken),58!==e.questionToken.kind&&Gt("?")),Gt(":"),tn(),we(e.type),Xt(),1&t?tn():(on(),sn()),Ut(e,e.members,2),Gt("}")}(t);case 201:return function(e){De(e.literal)}(t);case 202:return function(e){we(e.dotDotDotToken),we(e.name),we(e.questionToken),rt(59,e.name.end,Gt,e),tn(),we(e.type)}(t);case 203:return function(e){we(e.head),Ut(e,e.templateSpans,262144)}(t);case 204:return function(e){we(e.type),we(e.literal)}(t);case 205:return function(e){e.isTypeOf&&(Qt("typeof"),tn()),Qt("import"),Gt("("),we(e.argument),e.attributes&&(Gt(","),tn(),Ae(7,e.attributes)),Gt(")"),e.qualifier&&(Gt("."),we(e.qualifier)),Mt(e,e.typeArguments)}(t);case 206:return function(e){Gt("{"),Ut(e,e.elements,525136),Gt("}")}(t);case 207:return function(e){Gt("["),Ut(e,e.elements,524880),Gt("]")}(t);case 208:return function(e){we(e.dotDotDotToken),e.propertyName&&(we(e.propertyName),Gt(":"),tn()),we(e.name),Ot(e.initializer,e.name.end,e,oe.parenthesizeExpressionForDisallowedComma)}(t);case 239:return function(e){De(e.expression),we(e.literal)}(t);case 240:return void Xt();case 241:return function(e){Qe(e,!e.multiLine&&Tn(e))}(t);case 243:return function(e){Pt(e,e.modifiers,!1),we(e.declarationList),Xt()}(t);case 242:return Ye(!1);case 244:return function(e){De(e.expression,oe.parenthesizeExpressionOfExpressionStatement),n&&Yp(n)&&!Zh(e.expression)||Xt()}(t);case 245:return function(e){const t=rt(101,e.pos,Qt,e);tn(),rt(21,t,Gt,e),De(e.expression),rt(22,e.expression.end,Gt,e),Rt(e,e.thenStatement),e.elseStatement&&(dn(e,e.thenStatement,e.elseStatement),rt(93,e.thenStatement.end,Qt,e),245===e.elseStatement.kind?(tn(),we(e.elseStatement)):Rt(e,e.elseStatement))}(t);case 246:return function(e){rt(92,e.pos,Qt,e),Rt(e,e.statement),CF(e.statement)&&!H?tn():dn(e,e.statement,e.expression),Ze(e,e.statement.end),Xt()}(t);case 247:return function(e){Ze(e,e.pos),Rt(e,e.statement)}(t);case 248:return function(e){const t=rt(99,e.pos,Qt,e);tn();let n=rt(21,t,Gt,e);et(e.initializer),n=rt(27,e.initializer?e.initializer.end:n,Gt,e),jt(e.condition),n=rt(27,e.condition?e.condition.end:n,Gt,e),jt(e.incrementor),rt(22,e.incrementor?e.incrementor.end:n,Gt,e),Rt(e,e.statement)}(t);case 249:return function(e){const t=rt(99,e.pos,Qt,e);tn(),rt(21,t,Gt,e),et(e.initializer),tn(),rt(103,e.initializer.end,Qt,e),tn(),De(e.expression),rt(22,e.expression.end,Gt,e),Rt(e,e.statement)}(t);case 250:return function(e){const t=rt(99,e.pos,Qt,e);tn(),function(e){e&&(we(e),tn())}(e.awaitModifier),rt(21,t,Gt,e),et(e.initializer),tn(),rt(165,e.initializer.end,Qt,e),tn(),De(e.expression),rt(22,e.expression.end,Gt,e),Rt(e,e.statement)}(t);case 251:return function(e){rt(88,e.pos,Qt,e),Lt(e.label),Xt()}(t);case 252:return function(e){rt(83,e.pos,Qt,e),Lt(e.label),Xt()}(t);case 253:return function(e){rt(107,e.pos,Qt,e),jt(e.expression&&at(e.expression),at),Xt()}(t);case 254:return function(e){const t=rt(118,e.pos,Qt,e);tn(),rt(21,t,Gt,e),De(e.expression),rt(22,e.expression.end,Gt,e),Rt(e,e.statement)}(t);case 255:return function(e){const t=rt(109,e.pos,Qt,e);tn(),rt(21,t,Gt,e),De(e.expression),rt(22,e.expression.end,Gt,e),tn(),we(e.caseBlock)}(t);case 256:return function(e){we(e.label),rt(59,e.label.end,Gt,e),tn(),we(e.statement)}(t);case 257:return function(e){rt(111,e.pos,Qt,e),jt(at(e.expression),at),Xt()}(t);case 258:return function(e){rt(113,e.pos,Qt,e),tn(),we(e.tryBlock),e.catchClause&&(dn(e,e.tryBlock,e.catchClause),we(e.catchClause)),e.finallyBlock&&(dn(e,e.catchClause||e.tryBlock,e.finallyBlock),rt(98,(e.catchClause||e.tryBlock).end,Qt,e),tn(),we(e.finallyBlock))}(t);case 259:return function(e){cn(89,e.pos,Qt),Xt()}(t);case 260:return function(e){var t,n,r;we(e.name),we(e.exclamationToken),It(e.type),Ot(e.initializer,(null==(t=e.type)?void 0:t.end)??(null==(r=null==(n=e.name.emitNode)?void 0:n.typeNode)?void 0:r.end)??e.name.end,e,oe.parenthesizeExpressionForDisallowedComma)}(t);case 261:return function(e){tf(e)?(Qt("await"),tn(),Qt("using")):Qt(af(e)?"let":rf(e)?"const":nf(e)?"using":"var"),tn(),Ut(e,e.declarations,528)}(t);case 262:return function(e){ct(e)}(t);case 263:return function(e){gt(e)}(t);case 264:return function(e){Pt(e,e.modifiers,!1),Qt("interface"),tn(),we(e.name),Bt(e,e.typeParameters),Ut(e,e.heritageClauses,512),tn(),Gt("{"),Dn(e),d(e.members,In),Ut(e,e.members,129),Fn(e),Gt("}")}(t);case 265:return function(e){Pt(e,e.modifiers,!1),Qt("type"),tn(),we(e.name),Bt(e,e.typeParameters),tn(),Gt("="),tn(),we(e.type),Xt()}(t);case 266:return function(e){Pt(e,e.modifiers,!1),Qt("enum"),tn(),we(e.name),tn(),Gt("{"),Ut(e,e.members,145),Gt("}")}(t);case 267:return function(e){Pt(e,e.modifiers,!1),2048&~e.flags&&(Qt(32&e.flags?"namespace":"module"),tn()),we(e.name);let t=e.body;if(!t)return Xt();for(;t&&QF(t);)Gt("."),we(t.name),t=t.body;tn(),we(t)}(t);case 268:return function(e){Dn(e),d(e.statements,An),Qe(e,Tn(e)),Fn(e)}(t);case 269:return function(e){rt(19,e.pos,Gt,e),Ut(e,e.clauses,129),rt(20,e.clauses.end,Gt,e,!0)}(t);case 270:return function(e){let t=rt(95,e.pos,Qt,e);tn(),t=rt(130,t,Qt,e),tn(),t=rt(145,t,Qt,e),tn(),we(e.name),Xt()}(t);case 271:return function(e){Pt(e,e.modifiers,!1),rt(102,e.modifiers?e.modifiers.end:e.pos,Qt,e),tn(),e.isTypeOnly&&(rt(156,e.pos,Qt,e),tn()),we(e.name),tn(),rt(64,e.name.end,Gt,e),tn(),function(e){80===e.kind?De(e):we(e)}(e.moduleReference),Xt()}(t);case 272:return function(e){Pt(e,e.modifiers,!1),rt(102,e.modifiers?e.modifiers.end:e.pos,Qt,e),tn(),e.importClause&&(we(e.importClause),tn(),rt(161,e.importClause.end,Qt,e),tn()),De(e.moduleSpecifier),e.attributes&&Lt(e.attributes),Xt()}(t);case 273:return function(e){e.isTypeOnly&&(rt(156,e.pos,Qt,e),tn()),we(e.name),e.name&&e.namedBindings&&(rt(28,e.name.end,Gt,e),tn()),we(e.namedBindings)}(t);case 274:return function(e){const t=rt(42,e.pos,Gt,e);tn(),rt(130,t,Qt,e),tn(),we(e.name)}(t);case 280:return function(e){const t=rt(42,e.pos,Gt,e);tn(),rt(130,t,Qt,e),tn(),we(e.name)}(t);case 275:case 279:return function(e){!function(e){Gt("{"),Ut(e,e.elements,525136),Gt("}")}(e)}(t);case 276:case 281:return function(e){!function(e){e.isTypeOnly&&(Qt("type"),tn()),e.propertyName&&(we(e.propertyName),tn(),rt(130,e.propertyName.end,Qt,e),tn()),we(e.name)}(e)}(t);case 277:return function(e){const t=rt(95,e.pos,Qt,e);tn(),e.isExportEquals?rt(64,t,Yt,e):rt(90,t,Qt,e),tn(),De(e.expression,e.isExportEquals?oe.getParenthesizeRightSideOfBinaryForOperator(64):oe.parenthesizeExpressionOfExportDefault),Xt()}(t);case 278:return function(e){Pt(e,e.modifiers,!1);let t=rt(95,e.pos,Qt,e);tn(),e.isTypeOnly&&(t=rt(156,t,Qt,e),tn()),e.exportClause?we(e.exportClause):t=rt(42,t,Gt,e),e.moduleSpecifier&&(tn(),rt(161,e.exportClause?e.exportClause.end:t,Qt,e),tn(),De(e.moduleSpecifier)),e.attributes&&Lt(e.attributes),Xt()}(t);case 300:return function(e){rt(e.token,e.pos,Qt,e),tn();Ut(e,e.elements,526226)}(t);case 301:return function(e){we(e.name),Gt(":"),tn();const t=e.value;1024&Qd(t)||sr(dw(t).pos),we(t)}(t);case 282:case 319:case 330:case 331:case 333:case 334:case 335:case 336:case 353:case 354:return;case 283:return function(e){Qt("require"),Gt("("),De(e.expression),Gt(")")}(t);case 12:return function(e){b.writeLiteral(e.text)}(t);case 286:case 289:return function(e){if(Gt("<"),TE(e)){const t=bn(e.tagName,e);ht(e.tagName),Mt(e,e.typeArguments),e.attributes.properties&&e.attributes.properties.length>0&&tn(),we(e.attributes),xn(e.attributes,e),mn(t)}Gt(">")}(t);case 287:case 290:return function(e){Gt("")}(t);case 291:return function(e){we(e.name),function(e,t,n,r){n&&(t("="),r(n))}(0,Gt,e.initializer,Fe)}(t);case 292:return function(e){Ut(e,e.properties,262656)}(t);case 293:return function(e){Gt("{..."),De(e.expression),Gt("}")}(t);case 294:return function(e){var t,r;if(e.expression||!ne&&!Zh(e)&&(function(e){let t=!1;return os((null==n?void 0:n.text)||"",e+1,(()=>t=!0)),t}(r=e.pos)||function(e){let t=!1;return is((null==n?void 0:n.text)||"",e+1,(()=>t=!0)),t}(r))){const r=n&&!Zh(e)&&Ja(n,e.pos).line!==Ja(n,e.end).line;r&&b.increaseIndent();const i=rt(19,e.pos,Gt,e);we(e.dotDotDotToken),De(e.expression),rt(20,(null==(t=e.expression)?void 0:t.end)||i,Gt,e),r&&b.decreaseIndent()}}(t);case 295:return function(e){Ne(e.namespace),Gt(":"),Ne(e.name)}(t);case 296:return function(e){rt(84,e.pos,Qt,e),tn(),De(e.expression,oe.parenthesizeExpressionForDisallowedComma),yt(e,e.statements,e.expression.end)}(t);case 297:return function(e){const t=rt(90,e.pos,Qt,e);yt(e,e.statements,t)}(t);case 298:return function(e){tn(),_n(e.token,Qt),tn(),Ut(e,e.types,528)}(t);case 299:return function(e){const t=rt(85,e.pos,Qt,e);tn(),e.variableDeclaration&&(rt(21,t,Gt,e),we(e.variableDeclaration),rt(22,e.variableDeclaration.end,Gt,e),tn()),we(e.block)}(t);case 303:return function(e){we(e.name),Gt(":"),tn();const t=e.initializer;1024&Qd(t)||sr(dw(t).pos),De(t,oe.parenthesizeExpressionForDisallowedComma)}(t);case 304:return function(e){we(e.name),e.objectAssignmentInitializer&&(tn(),Gt("="),tn(),De(e.objectAssignmentInitializer,oe.parenthesizeExpressionForDisallowedComma))}(t);case 305:return function(e){e.expression&&(rt(26,e.pos,Gt,e),De(e.expression,oe.parenthesizeExpressionForDisallowedComma))}(t);case 306:return function(e){we(e.name),Ot(e.initializer,e.name.end,e,oe.parenthesizeExpressionForDisallowedComma)}(t);case 307:return Tt(t);case 308:return un.fail("Bundles should be printed using printBundle");case 309:return St(t);case 310:return function(e){tn(),Gt("{"),we(e.name),Gt("}")}(t);case 312:return Gt("*");case 313:return Gt("?");case 314:return function(e){Gt("?"),we(e.type)}(t);case 315:return function(e){Gt("!"),we(e.type)}(t);case 316:return function(e){we(e.type),Gt("=")}(t);case 317:return function(e){Qt("function"),Jt(e,e.parameters),Gt(":"),we(e.type)}(t);case 191:case 318:return function(e){Gt("..."),we(e.type)}(t);case 320:return function(e){if(K("/**"),e.comment){const t=cl(e.comment);if(t){const e=t.split(/\r\n?|\n/);for(const t of e)on(),tn(),Gt("*"),tn(),K(t)}}e.tags&&(1!==e.tags.length||344!==e.tags[0].kind||e.comment?Ut(e,e.tags,33):(tn(),we(e.tags[0]))),tn(),K("*/")}(t);case 322:return vt(t);case 323:return bt(t);case 327:case 332:case 337:return xt((o=t).tagName),void kt(o.comment);case 328:case 329:return function(e){xt(e.tagName),tn(),Gt("{"),we(e.class),Gt("}"),kt(e.comment)}(t);case 338:return function(e){xt(e.tagName),e.name&&(tn(),we(e.name)),kt(e.comment),bt(e.typeExpression)}(t);case 339:return function(e){kt(e.comment),bt(e.typeExpression)}(t);case 341:case 348:return xt((i=t).tagName),St(i.typeExpression),tn(),i.isBracketed&&Gt("["),we(i.name),i.isBracketed&&Gt("]"),void kt(i.comment);case 340:case 342:case 343:case 344:case 349:case 350:return function(e){xt(e.tagName),St(e.typeExpression),kt(e.comment)}(t);case 345:return function(e){xt(e.tagName),St(e.constraint),tn(),Ut(e,e.typeParameters,528),kt(e.comment)}(t);case 346:return function(e){xt(e.tagName),e.typeExpression&&(309===e.typeExpression.kind?St(e.typeExpression):(tn(),Gt("{"),K("Object"),e.typeExpression.isArrayType&&(Gt("["),Gt("]")),Gt("}"))),e.fullName&&(tn(),we(e.fullName)),kt(e.comment),e.typeExpression&&322===e.typeExpression.kind&&vt(e.typeExpression)}(t);case 347:return function(e){xt(e.tagName),we(e.name),kt(e.comment)}(t);case 351:return function(e){xt(e.tagName),tn(),e.importClause&&(we(e.importClause),tn(),rt(161,e.importClause.end,Qt,e),tn()),De(e.moduleSpecifier),e.attributes&&Lt(e.attributes),kt(e.comment)}(t)}if(U_(t)&&(e=1,O!==Sq)){const n=O(e,t)||t;n!==t&&(t=n,E&&(t=E(t)))}}var i,o,a;if(1===e)switch(t.kind){case 9:case 10:return function(e){Ue(e,!1)}(t);case 11:case 14:case 15:return Ue(t,!1);case 80:return Ve(t);case 81:return We(t);case 209:return function(e){Vt(e,e.elements,8914|(e.multiLine?65536:0),oe.parenthesizeExpressionForDisallowedComma)}(t);case 210:return function(e){Dn(e),d(e.properties,In);const t=131072&Qd(e);t&&an();const r=e.multiLine?65536:0,i=n&&n.languageVersion>=1&&!Yp(n)?64:0;Ut(e,e.properties,526226|i|r),t&&sn(),Fn(e)}(t);case 211:return function(e){De(e.expression,oe.parenthesizeLeftSideOfAccess);const t=e.questionDotToken||ST(XC.createToken(25),e.expression.end,e.name.pos),n=Sn(e,e.expression,t),r=Sn(e,t,e.name);fn(n,!1);29!==t.kind&&function(e){if(kN(e=kl(e))){const t=Nn(e,void 0,!0,!1);return!(448&e.numericLiteralFlags||t.includes(Da(25))||t.includes(String.fromCharCode(69))||t.includes(String.fromCharCode(101)))}if(kx(e)){const t=xw(e);return"number"==typeof t&&isFinite(t)&&t>=0&&Math.floor(t)===t}}(e.expression)&&!b.hasTrailingComment()&&!b.hasTrailingWhitespace()&&Gt("."),e.questionDotToken?we(t):rt(t.kind,e.expression.end,Gt,e),fn(r,!1),we(e.name),mn(n,r)}(t);case 212:return function(e){De(e.expression,oe.parenthesizeLeftSideOfAccess),we(e.questionDotToken),rt(23,e.expression.end,Gt,e),De(e.argumentExpression),rt(24,e.argumentExpression.end,Gt,e)}(t);case 213:return function(e){const t=16&Yd(e);t&&(Gt("("),Ht("0"),Gt(","),tn()),De(e.expression,oe.parenthesizeLeftSideOfAccess),t&&Gt(")"),we(e.questionDotToken),Mt(e,e.typeArguments),Vt(e,e.arguments,2576,oe.parenthesizeExpressionForDisallowedComma)}(t);case 214:return function(e){rt(105,e.pos,Qt,e),tn(),De(e.expression,oe.parenthesizeExpressionOfNew),Mt(e,e.typeArguments),Vt(e,e.arguments,18960,oe.parenthesizeExpressionForDisallowedComma)}(t);case 215:return function(e){const t=16&Yd(e);t&&(Gt("("),Ht("0"),Gt(","),tn()),De(e.tag,oe.parenthesizeLeftSideOfAccess),t&&Gt(")"),Mt(e,e.typeArguments),tn(),De(e.template)}(t);case 216:return function(e){Gt("<"),we(e.type),Gt(">"),De(e.expression,oe.parenthesizeOperandOfPrefixUnary)}(t);case 217:return function(e){const t=rt(21,e.pos,Gt,e),n=bn(e.expression,e);De(e.expression,void 0),xn(e.expression,e),mn(n),rt(22,e.expression?e.expression.end:t,Gt,e)}(t);case 218:return function(e){On(e.name),ct(e)}(t);case 219:return function(e){At(e,e.modifiers),lt(e,Ke,Ge)}(t);case 220:return function(e){rt(91,e.pos,Qt,e),tn(),De(e.expression,oe.parenthesizeOperandOfPrefixUnary)}(t);case 221:return function(e){rt(114,e.pos,Qt,e),tn(),De(e.expression,oe.parenthesizeOperandOfPrefixUnary)}(t);case 222:return function(e){rt(116,e.pos,Qt,e),tn(),De(e.expression,oe.parenthesizeOperandOfPrefixUnary)}(t);case 223:return function(e){rt(135,e.pos,Qt,e),tn(),De(e.expression,oe.parenthesizeOperandOfPrefixUnary)}(t);case 224:return function(e){_n(e.operator,Yt),function(e){const t=e.operand;return 224===t.kind&&(40===e.operator&&(40===t.operator||46===t.operator)||41===e.operator&&(41===t.operator||47===t.operator))}(e)&&tn(),De(e.operand,oe.parenthesizeOperandOfPrefixUnary)}(t);case 225:return function(e){De(e.operand,oe.parenthesizeOperandOfPostfixUnary),_n(e.operator,Yt)}(t);case 226:return se(t);case 227:return function(e){const t=Sn(e,e.condition,e.questionToken),n=Sn(e,e.questionToken,e.whenTrue),r=Sn(e,e.whenTrue,e.colonToken),i=Sn(e,e.colonToken,e.whenFalse);De(e.condition,oe.parenthesizeConditionOfConditionalExpression),fn(t,!0),we(e.questionToken),fn(n,!0),De(e.whenTrue,oe.parenthesizeBranchOfConditionalExpression),mn(t,n),fn(r,!0),we(e.colonToken),fn(i,!0),De(e.whenFalse,oe.parenthesizeBranchOfConditionalExpression),mn(r,i)}(t);case 228:return function(e){we(e.head),Ut(e,e.templateSpans,262144)}(t);case 229:return function(e){rt(127,e.pos,Qt,e),we(e.asteriskToken),jt(e.expression&&at(e.expression),st)}(t);case 230:return function(e){rt(26,e.pos,Gt,e),De(e.expression,oe.parenthesizeExpressionForDisallowedComma)}(t);case 231:return function(e){On(e.name),gt(e)}(t);case 232:case 282:case 353:return;case 234:return function(e){De(e.expression,void 0),e.type&&(tn(),Qt("as"),tn(),we(e.type))}(t);case 235:return function(e){De(e.expression,oe.parenthesizeLeftSideOfAccess),Yt("!")}(t);case 233:return Xe(t);case 238:return function(e){De(e.expression,void 0),e.type&&(tn(),Qt("satisfies"),tn(),we(e.type))}(t);case 236:return function(e){cn(e.keywordToken,e.pos,Gt),Gt("."),we(e.name)}(t);case 237:return un.fail("SyntheticExpression should never be printed.");case 284:return function(e){we(e.openingElement),Ut(e,e.children,262144),we(e.closingElement)}(t);case 285:return function(e){Gt("<"),ht(e.tagName),Mt(e,e.typeArguments),tn(),we(e.attributes),Gt("/>")}(t);case 288:return function(e){we(e.openingFragment),Ut(e,e.children,262144),we(e.closingFragment)}(t);case 352:return un.fail("SyntaxList should not be printed");case 355:return function(e){const t=Qd(e);1024&t||e.pos===e.expression.pos||sr(e.expression.pos),De(e.expression),2048&t||e.end===e.expression.end||or(e.expression.end)}(t);case 356:return function(e){Vt(e,e.elements,528,void 0)}(t);case 357:return un.fail("SyntheticReferenceExpression should not be printed")}return Th(t.kind)?ln(t,Qt):Dl(t.kind)?ln(t,Gt):void un.fail(`Unhandled SyntaxKind: ${un.formatSyntaxKind(t.kind)}.`)}function Je(e,t){const n=je(1,e,t);un.assertIsDefined(F),t=F,F=void 0,n(e,t)}function ze(t){let r=!1;const i=308===t.kind?t:void 0;if(i&&0===V)return;const o=i?i.sourceFiles.length:1;for(let a=0;a")}function He(e){tn(),we(e.type)}function Ke(e){Bt(e,e.typeParameters),zt(e,e.parameters),It(e.type),tn(),we(e.equalsGreaterThanToken)}function Ge(e){CF(e.body)?pt(e.body):(tn(),De(e.body,oe.parenthesizeConciseBodyOfArrowFunction))}function Xe(e){De(e.expression,oe.parenthesizeLeftSideOfAccess),Mt(e,e.typeArguments)}function Qe(e,t){rt(19,e.pos,Gt,e);const n=t||1&Qd(e)?768:129;Ut(e,e.statements,n),rt(20,e.statements.end,Gt,e,!!(1&n))}function Ye(e){e?Gt(";"):Xt()}function Ze(e,t){const n=rt(117,t,Qt,e);tn(),rt(21,n,Gt,e),De(e.expression),rt(22,e.expression.end,Gt,e)}function et(e){void 0!==e&&(261===e.kind?we(e):De(e))}function rt(e,t,r,i,o){const a=dc(i),s=a&&a.kind===i.kind,c=t;if(s&&n&&(t=Xa(n.text,t)),s&&i.pos!==c){const e=o&&n&&!Wb(c,t,n);e&&an(),or(c),e&&sn()}if(t=q||19!==e&&20!==e?_n(e,r,t):cn(e,t,r,i),s&&i.end!==t){const e=294===i.kind;sr(t,!e,e)}return t}function it(e){return 2===e.kind||!!e.hasTrailingNewLine}function ot(e){if(!n)return!1;const t=ls(n.text,e.pos);if(t){const t=dc(e);if(t&&ZD(t.parent))return!0}return!!$(t,it)||!!$(fw(e),it)||!!xF(e)&&(!(e.pos===e.expression.pos||!$(_s(n.text,e.expression.pos),it))||ot(e.expression))}function at(e){if(!ne)switch(e.kind){case 355:if(ot(e)){const t=dc(e);if(t&&ZD(t)){const n=XC.createParenthesizedExpression(e.expression);return YC(n,e),nI(n,t),n}return XC.createParenthesizedExpression(e)}return XC.updatePartiallyEmittedExpression(e,at(e.expression));case 211:return XC.updatePropertyAccessExpression(e,at(e.expression),e.name);case 212:return XC.updateElementAccessExpression(e,at(e.expression),e.argumentExpression);case 213:return XC.updateCallExpression(e,at(e.expression),e.typeArguments,e.arguments);case 215:return XC.updateTaggedTemplateExpression(e,at(e.tag),e.typeArguments,e.template);case 225:return XC.updatePostfixUnaryExpression(e,at(e.operand));case 226:return XC.updateBinaryExpression(e,at(e.left),e.operatorToken,e.right);case 227:return XC.updateConditionalExpression(e,at(e.condition),e.questionToken,e.whenTrue,e.colonToken,e.whenFalse);case 234:return XC.updateAsExpression(e,at(e.expression),e.type);case 238:return XC.updateSatisfiesExpression(e,at(e.expression),e.type);case 235:return XC.updateNonNullExpression(e,at(e.expression))}return e}function st(e){return at(oe.parenthesizeExpressionForDisallowedComma(e))}function ct(e){Pt(e,e.modifiers,!1),Qt("function"),we(e.asteriskToken),tn(),Ne(e.name),lt(e,dt,_t)}function lt(e,t,n){const r=131072&Qd(e);r&&an(),Dn(e),d(e.parameters,An),t(e),n(e),Fn(e),r&&sn()}function _t(e){const t=e.body;t?pt(t):Xt()}function ut(e){Xt()}function dt(e){Bt(e,e.typeParameters),Jt(e,e.parameters),It(e.type)}function pt(e){An(e),null==L||L(e),tn(),Gt("{"),an();const t=function(e){if(1&Qd(e))return!0;if(e.multiLine)return!1;if(!Zh(e)&&n&&!Rb(e,n))return!1;if(gn(e,fe(e.statements),2)||yn(e,ye(e.statements),2,e.statements))return!1;let t;for(const n of e.statements){if(hn(t,n,2)>0)return!1;t=n}return!0}(e)?ft:mt;Zn(e,e.statements,t),sn(),cn(20,e.statements.end,Gt,e),null==j||j(e)}function ft(e){mt(e,!0)}function mt(e,t){const n=Nt(e.statements),r=b.getTextPos();ze(e),0===n&&r===b.getTextPos()&&t?(sn(),Ut(e,e.statements,768),an()):Ut(e,e.statements,1,void 0,n)}function gt(e){Pt(e,e.modifiers,!0),rt(86,Lb(e).pos,Qt,e),e.name&&(tn(),Ne(e.name));const t=131072&Qd(e);t&&an(),Bt(e,e.typeParameters),Ut(e,e.heritageClauses,0),tn(),Gt("{"),Dn(e),d(e.members,In),Ut(e,e.members,129),Fn(e),Gt("}"),t&&sn()}function ht(e){80===e.kind?De(e):we(e)}function yt(e,t,r){let i=163969;1===t.length&&(!n||Zh(e)||Zh(t[0])||Mb(e,t[0],n))?(cn(59,r,Gt,e),tn(),i&=-130):rt(59,r,Gt,e),Ut(e,t,i)}function vt(e){Ut(e,XC.createNodeArray(e.jsDocPropertyTags),33)}function bt(e){e.typeParameters&&Ut(e,XC.createNodeArray(e.typeParameters),33),e.parameters&&Ut(e,XC.createNodeArray(e.parameters),33),e.type&&(on(),tn(),Gt("*"),tn(),we(e.type))}function xt(e){Gt("@"),we(e)}function kt(e){const t=cl(e);t&&(tn(),K(t))}function St(e){e&&(tn(),Gt("{"),we(e.type),Gt("}"))}function Tt(e){on();const t=e.statements;0===t.length||!uf(t[0])||Zh(t[0])?Zn(e,t,wt):wt(e)}function Ct(e,t,r,i){if(e&&(en('/// '),on()),n&&n.moduleName&&(en(`/// `),on()),n&&n.amdDependencies)for(const e of n.amdDependencies)e.name?en(`/// `):en(`/// `),on();function o(e,t){for(const n of t){const t=n.resolutionMode?`resolution-mode="${99===n.resolutionMode?"import":"require"}" `:"",r=n.preserve?'preserve="true" ':"";en(`/// `),on()}}o("path",t),o("types",r),o("lib",i)}function wt(e){const t=e.statements;Dn(e),d(e.statements,An),ze(e);const n=k(t,(e=>!uf(e)));!function(e){e.isDeclarationFile&&Ct(e.hasNoDefaultLib,e.referencedFiles,e.typeReferenceDirectives,e.libReferenceDirectives)}(e),Ut(e,t,1,void 0,-1===n?t.length:n),Fn(e)}function Nt(e,t,n){let r=!!t;for(let i=0;i=r.length||0===s;if(c&&32768&i)return null==R||R(r),void(null==M||M(r));15360&i&&(Gt(function(e){return Nq[15360&e][0]}(i)),c&&r&&sr(r.pos,!0)),null==R||R(r),c?!(1&i)||H&&(!t||n&&Rb(t,n))?256&i&&!(524288&i)&&tn():on():$t(e,t,r,i,o,a,s,r.hasTrailingComma,r),null==M||M(r),15360&i&&(c&&r&&or(r.end),Gt(function(e){return Nq[15360&e][1]}(i)))}function $t(e,t,n,r,i,o,a,s,c){const l=!(262144&r);let _=l;const u=gn(t,n[o],r);u?(on(u),_=!1):256&r&&tn(),128&r&&an();const d=function(e,t){return 1===e.length?iU:"object"==typeof t?oU:aU}(e,i);let p,f=!1;for(let s=0;s0?(131&r||(an(),f=!0),_&&60&r&&!KS(a.pos)&&sr(dw(a).pos,!!(512&r),!0),on(e),_=!1):p&&512&r&&tn()}_?sr(dw(a).pos):_=l,y=a.pos,d(a,e,i,s),f&&(sn(),f=!1),p=a}const m=p?Qd(p):0,g=ne||!!(2048&m),h=s&&64&r&&16&r;h&&(p&&!g?rt(28,p.end,Gt,p):Gt(",")),p&&(t?t.end:-1)!==p.end&&60&r&&!g&&or(h&&(null==c?void 0:c.end)?c.end:p.end),128&r&&sn();const v=yn(t,n[o+a-1],r,c);v?on(v):2097408&r&&tn()}function Ht(e){b.writeLiteral(e)}function Kt(e,t){b.writeSymbol(e,t)}function Gt(e){b.writePunctuation(e)}function Xt(){b.writeTrailingSemicolon(";")}function Qt(e){b.writeKeyword(e)}function Yt(e){b.writeOperator(e)}function Zt(e){b.writeParameter(e)}function en(e){b.writeComment(e)}function tn(){b.writeSpace(" ")}function nn(e){b.writeProperty(e)}function rn(e){b.nonEscapingWrite?b.nonEscapingWrite(e):b.write(e)}function on(e=1){for(let t=0;t0)}function an(){b.increaseIndent()}function sn(){b.decreaseIndent()}function cn(e,t,n,r){return G?_n(e,n,t):function(e,t,n,r,i){if(G||e&&Em(e))return i(t,n,r);const o=e&&e.emitNode,a=o&&o.flags||0,s=o&&o.tokenSourceMapRanges&&o.tokenSourceMapRanges[t],c=s&&s.source||C;return r=hr(c,s?s.pos:r),!(256&a)&&r>=0&&vr(c,r),r=i(t,n,r),s&&(r=s.end),!(512&a)&&r>=0&&vr(c,r),r}(r,e,n,t,_n)}function ln(e,t){B&&B(e),t(Da(e.kind)),J&&J(e)}function _n(e,t,n){const r=Da(e);return t(r),n<0?n:n+r.length}function dn(e,t,n){if(1&Qd(e))tn();else if(H){const r=Sn(e,t,n);r?on(r):tn()}else on()}function pn(e){const t=e.split(/\r\n?|\n/),n=Ou(t);for(const e of t){const t=n?e.slice(n):e;t.length&&(on(),K(t))}}function fn(e,t){e?(an(),on(e)):t&&tn()}function mn(e,t){e&&sn(),t&&sn()}function gn(e,t,r){if(2&r||H){if(65536&r)return 1;if(void 0===t)return!e||n&&Rb(e,n)?0:1;if(t.pos===y)return 0;if(12===t.kind)return 0;if(n&&e&&!KS(e.pos)&&!Zh(t)&&(!t.parent||lc(t.parent)===lc(e)))return H?vn((r=>Hb(t.pos,e.pos,n,r))):Mb(e,t,n)?0:1;if(kn(t,r))return 1}return 1&r?1:0}function hn(e,t,r){if(2&r||H){if(void 0===e||void 0===t)return 0;if(12===t.kind)return 0;if(n&&!Zh(e)&&!Zh(t))return H&&function(e,t){if(t.pos-1&&r.indexOf(t)===i+1}(e,t)?vn((r=>qb(e,t,n,r))):!H&&(o=t,(i=lc(i=e)).parent&&i.parent===lc(o).parent)?zb(e,t,n)?0:1:65536&r?1:0;if(kn(e,r)||kn(t,r))return 1}else if(_w(t))return 1;var i,o;return 1&r?1:0}function yn(e,t,r,i){if(2&r||H){if(65536&r)return 1;if(void 0===t)return!e||n&&Rb(e,n)?0:1;if(n&&e&&!KS(e.pos)&&!Zh(t)&&(!t.parent||t.parent===e)){if(H){const r=i&&!KS(i.end)?i.end:t.end;return vn((t=>Kb(r,e.end,n,t)))}return Bb(e,t,n)?0:1}if(kn(t,r))return 1}return 1&r&&!(131072&r)?1:0}function vn(e){un.assert(!!H);const t=e(!0);return 0===t?e(!1):t}function bn(e,t){const n=H&&gn(t,e,0);return n&&fn(n,!1),!!n}function xn(e,t){const n=H&&yn(t,e,0,void 0);n&&on(n)}function kn(e,t){if(Zh(e)){const n=_w(e);return void 0===n?!!(65536&t):n}return!!(65536&t)}function Sn(e,t,r){return 262144&Qd(e)?0:(e=Cn(e),t=Cn(t),_w(r=Cn(r))?1:!n||Zh(e)||Zh(t)||Zh(r)?0:H?vn((e=>qb(t,r,n,e))):zb(t,r,n)?0:1)}function Tn(e){return 0===e.statements.length&&(!n||zb(e,e,n))}function Cn(e){for(;217===e.kind&&Zh(e);)e=e.expression;return e}function wn(e,t){if(Vl(e)||Wl(e))return Ln(e);if(TN(e)&&e.textSourceNode)return wn(e.textSourceNode,t);const r=n,i=!!r&&!!e.parent&&!Zh(e);if(ul(e)){if(!i||hd(e)!==lc(r))return mc(e)}else if(IE(e)){if(!i||hd(e)!==lc(r))return rC(e)}else if(un.assertNode(e,Al),!i)return e.text;return qd(r,e,t)}function Nn(t,r=n,i,o){if(11===t.kind&&t.textSourceNode){const e=t.textSourceNode;if(zN(e)||qN(e)||kN(e)||IE(e)){const n=kN(e)?e.text:wn(e);return o?`"${Ny(n)}"`:i||16777216&Qd(t)?`"${by(n)}"`:`"${ky(n)}"`}return Nn(e,hd(e),i,o)}return tp(t,r,(i?1:0)|(o?2:0)|(e.terminateUnterminatedLiterals?4:0)|(e.target&&e.target>=8?8:0))}function Dn(e){l.push(_),_=0,g.push(h),e&&1048576&Qd(e)||(u.push(p),p=0,s.push(c),c=void 0,f.push(m))}function Fn(e){_=l.pop(),h=g.pop(),e&&1048576&Qd(e)||(p=u.pop(),c=s.pop(),m=f.pop())}function En(e){m&&m!==ye(f)||(m=new Set),m.add(e)}function Pn(e){h&&h!==ye(g)||(h=new Set),h.add(e)}function An(e){if(e)switch(e.kind){case 241:case 296:case 297:d(e.statements,An);break;case 256:case 254:case 246:case 247:An(e.statement);break;case 245:An(e.thenStatement),An(e.elseStatement);break;case 248:case 250:case 249:An(e.initializer),An(e.statement);break;case 255:An(e.caseBlock);break;case 269:d(e.clauses,An);break;case 258:An(e.tryBlock),An(e.catchClause),An(e.finallyBlock);break;case 299:An(e.variableDeclaration),An(e.block);break;case 243:An(e.declarationList);break;case 261:d(e.declarations,An);break;case 260:case 169:case 208:case 263:case 274:case 280:On(e.name);break;case 262:On(e.name),1048576&Qd(e)&&(d(e.parameters,An),An(e.body));break;case 206:case 207:case 275:d(e.elements,An);break;case 272:An(e.importClause);break;case 273:On(e.name),An(e.namedBindings);break;case 276:On(e.propertyName||e.name)}}function In(e){if(e)switch(e.kind){case 303:case 304:case 172:case 171:case 174:case 173:case 177:case 178:On(e.name)}}function On(e){e&&(Vl(e)||Wl(e)?Ln(e):x_(e)&&An(e))}function Ln(e){const t=e.emitNode.autoGenerate;if(4==(7&t.flags))return jn($A(e),qN(e),t.flags,t.prefix,t.suffix);{const n=t.id;return o[n]||(o[n]=function(e){const t=e.emitNode.autoGenerate,n=HA(t.prefix,Ln),r=HA(t.suffix);switch(7&t.flags){case 1:return Jn(0,!!(8&t.flags),qN(e),n,r);case 2:return un.assertNode(e,zN),Jn(268435456,!!(8&t.flags),!1,n,r);case 3:return zn(mc(e),32&t.flags?Mn:Rn,!!(16&t.flags),!!(8&t.flags),qN(e),n,r)}return un.fail(`Unsupported GeneratedIdentifierKind: ${un.formatEnum(7&t.flags,br,!0)}.`)}(e))}}function jn(e,t,n,o,a){const s=jB(e),c=t?i:r;return c[s]||(c[s]=Vn(e,t,n??0,HA(o,Ln),HA(a)))}function Rn(e,t){return Mn(e)&&!function(e,t){let n,r;if(t?(n=h,r=g):(n=m,r=f),null==n?void 0:n.has(e))return!0;for(let t=r.length-1;t>=0;t--)if(n!==r[t]&&(n=r[t],null==n?void 0:n.has(e)))return!0;return!1}(e,t)&&!a.has(e)}function Mn(e,t){return!n||Td(n,e,P)}function Bn(e,t){switch(e){case"":p=t;break;case"#":_=t;break;default:c??(c=new Map),c.set(e,t)}}function Jn(e,t,n,r,i){r.length>0&&35===r.charCodeAt(0)&&(r=r.slice(1));const o=KA(n,r,"",i);let a=function(e){switch(e){case"":return p;case"#":return _;default:return(null==c?void 0:c.get(e))??0}}(o);if(e&&!(a&e)){const s=KA(n,r,268435456===e?"_i":"_n",i);if(Rn(s,n))return a|=e,n?Pn(s):t&&En(s),Bn(o,a),s}for(;;){const e=268435455&a;if(a++,8!==e&&13!==e){const s=KA(n,r,e<26?"_"+String.fromCharCode(97+e):"_"+(e-26),i);if(Rn(s,n))return n?Pn(s):t&&En(s),Bn(o,a),s}}}function zn(e,t=Rn,n,r,i,o,s){if(e.length>0&&35===e.charCodeAt(0)&&(e=e.slice(1)),o.length>0&&35===o.charCodeAt(0)&&(o=o.slice(1)),n){const n=KA(i,o,e,s);if(t(n,i))return i?Pn(n):r?En(n):a.add(n),n}95!==e.charCodeAt(e.length-1)&&(e+="_");let c=1;for(;;){const n=KA(i,o,e+c,s);if(t(n,i))return i?Pn(n):r?En(n):a.add(n),n;c++}}function qn(e){return zn(e,Mn,!0,!1,!1,"","")}function Un(){return zn("default",Rn,!1,!1,!1,"","")}function Vn(e,t,n,r,i){switch(e.kind){case 80:case 81:return zn(wn(e),Rn,!!(16&n),!!(8&n),t,r,i);case 267:case 266:return un.assert(!r&&!i&&!t),function(e){const t=wn(e.name);return function(e,t){for(let n=t;n&&sh(n,t);n=n.nextContainer)if(au(n)&&n.locals){const t=n.locals.get(pc(e));if(t&&3257279&t.flags)return!1}return!0}(t,tt(e,au))?t:zn(t,Rn,!1,!1,!1,"","")}(e);case 272:case 278:return un.assert(!r&&!i&&!t),function(e){const t=xg(e);return zn(TN(t)?rp(t.text):"module",Rn,!1,!1,!1,"","")}(e);case 262:case 263:{un.assert(!r&&!i&&!t);const o=e.name;return o&&!Vl(o)?Vn(o,!1,n,r,i):Un()}case 277:return un.assert(!r&&!i&&!t),Un();case 231:return un.assert(!r&&!i&&!t),zn("class",Rn,!1,!1,!1,"","");case 174:case 177:case 178:return function(e,t,n,r){return zN(e.name)?jn(e.name,t):Jn(0,!1,t,n,r)}(e,t,r,i);case 167:return Jn(0,!0,t,r,i);default:return Jn(0,!1,t,r,i)}}function $n(e,t){const n=je(2,e,t),r=Y,i=Z,o=ee;Hn(t),n(e,t),Kn(t,r,i,o)}function Hn(e){const t=Qd(e),n=dw(e);!function(e,t,n,r){re(),te=!1;const i=n<0||!!(1024&t)||12===e.kind,o=r<0||!!(2048&t)||12===e.kind;(n>0||r>0)&&n!==r&&(i||er(n,353!==e.kind),(!i||n>=0&&1024&t)&&(Y=n),(!o||r>=0&&2048&t)&&(Z=r,261===e.kind&&(ee=r))),d(fw(e),Xn),ie()}(e,t,n.pos,n.end),4096&t&&(ne=!0)}function Kn(e,t,n,r){const i=Qd(e),o=dw(e);4096&i&&(ne=!1),Gn(e,i,o.pos,o.end,t,n,r);const a=Aw(e);a&&Gn(e,i,a.pos,a.end,t,n,r)}function Gn(e,t,n,r,i,o,a){re();const s=r<0||!!(2048&t)||12===e.kind;d(hw(e),Qn),(n>0||r>0)&&n!==r&&(Y=i,Z=o,ee=a,s||353===e.kind||function(e){ur(e,ar)}(r)),ie()}function Xn(e){(e.hasLeadingNewline||2===e.kind)&&b.writeLine(),Yn(e),e.hasTrailingNewLine||2===e.kind?b.writeLine():b.writeSpace(" ")}function Qn(e){b.isAtStartOfLine()||b.writeSpace(" "),Yn(e),e.hasTrailingNewLine&&b.writeLine()}function Yn(e){const t=function(e){return 3===e.kind?`/*${e.text}*/`:`//${e.text}`}(e);bv(t,3===e.kind?Ia(t):void 0,b,0,t.length,U)}function Zn(e,t,r){re();const{pos:i,end:o}=t,a=Qd(e),s=ne||o<0||!!(2048&a);i<0||!!(1024&a)||function(e){const t=n&&vv(n.text,Ce(),b,dr,e,U,ne);t&&(D?D.push(t):D=[t])}(t),ie(),4096&a&&!ne?(ne=!0,r(e),ne=!1):r(e),re(),s||(er(t.end,!0),te&&!b.isAtStartOfLine()&&b.writeLine()),ie()}function er(e,t){te=!1,t?0===e&&(null==n?void 0:n.isDeclarationFile)?_r(e,nr):_r(e,ir):0===e&&_r(e,tr)}function tr(e,t,n,r,i){pr(e,t)&&ir(e,t,n,r,i)}function nr(e,t,n,r,i){pr(e,t)||ir(e,t,n,r,i)}function rr(t,n){return!e.onlyPrintJsDocStyle||lI(t,n)||Rd(t,n)}function ir(e,t,r,i,o){n&&rr(n.text,e)&&(te||(yv(Ce(),b,o,e),te=!0),yr(e),bv(n.text,Ce(),b,e,t,U),yr(t),i?b.writeLine():3===r&&b.writeSpace(" "))}function or(e){ne||-1===e||er(e,!0)}function ar(e,t,r,i){n&&rr(n.text,e)&&(b.isAtStartOfLine()||b.writeSpace(" "),yr(e),bv(n.text,Ce(),b,e,t,U),yr(t),i&&b.writeLine())}function sr(e,t,n){ne||(re(),ur(e,t?ar:n?cr:lr),ie())}function cr(e,t,r){n&&(yr(e),bv(n.text,Ce(),b,e,t,U),yr(t),2===r&&b.writeLine())}function lr(e,t,r,i){n&&(yr(e),bv(n.text,Ce(),b,e,t,U),yr(t),i?b.writeLine():b.writeSpace(" "))}function _r(e,t){!n||-1!==Y&&e===Y||(function(e){return void 0!==D&&ve(D).nodePos===e}(e)?function(e){if(!n)return;const t=ve(D).detachedCommentEndPos;D.length-1?D.pop():D=void 0,is(n.text,t,e,t)}(t):is(n.text,e,t,e))}function ur(e,t){n&&(-1===Z||e!==Z&&e!==ee)&&os(n.text,e,t)}function dr(e,t,r,i,o,a){n&&rr(n.text,i)&&(yr(i),bv(e,t,r,i,o,a),yr(o))}function pr(e,t){return!!n&&jd(n.text,e,t)}function fr(e,t){const n=je(3,e,t);mr(t),n(e,t),gr(t)}function mr(e){const t=Qd(e),n=aw(e),r=n.source||C;353!==e.kind&&!(32&t)&&n.pos>=0&&vr(n.source||C,hr(r,n.pos)),128&t&&(G=!0)}function gr(e){const t=Qd(e),n=aw(e);128&t&&(G=!1),353!==e.kind&&!(64&t)&&n.end>=0&&vr(n.source||C,n.end)}function hr(e,t){return e.skipTrivia?e.skipTrivia(t):Xa(e.text,t)}function yr(e){if(G||KS(e)||kr(C))return;const{line:t,character:n}=Ja(C,e);T.addMapping(b.getLine(),b.getColumn(),X,t,n,void 0)}function vr(e,t){if(e!==C){const n=C,r=X;xr(e),yr(t),function(e,t){C=e,X=t}(n,r)}else yr(t)}function xr(t){G||(C=t,t!==w?kr(t)||(X=T.addSource(t.fileName),e.inlineSources&&T.setSourceContent(X,t.text),w=t,Q=X):X=Q)}function kr(e){return ko(e.fileName,".json")}}function iU(e,t,n,r){t(e)}function oU(e,t,n,r){t(e,n.select(r))}function aU(e,t,n,r){t(e,n)}function sU(e,t,n){if(!e.getDirectories||!e.readDirectory)return;const r=new Map,i=Wt(n);return{useCaseSensitiveFileNames:n,fileExists:function(t){const n=s(o(t));return n&&u(n.sortedAndCanonicalizedFiles,i(c(t)))||e.fileExists(t)},readFile:(t,n)=>e.readFile(t,n),directoryExists:e.directoryExists&&function(t){const n=o(t);return r.has(Vo(n))||e.directoryExists(t)},getDirectories:function(t){const n=_(t,o(t));return n?n.directories.slice():e.getDirectories(t)},readDirectory:function(r,i,a,s,u){const p=o(r),f=_(r,p);let m;return void 0!==f?mS(r,i,a,s,n,t,u,(function(e){const t=o(e);if(t===p)return f||g(e,t);const n=_(e,t);return void 0!==n?n||g(e,t):tT}),d):e.readDirectory(r,i,a,s,u);function g(t,n){if(m&&n===p)return m;const r={files:E(e.readDirectory(t,void 0,void 0,["*.*"]),c)||l,directories:e.getDirectories(t)||l};return n===p&&(m=r),r}},createDirectory:e.createDirectory&&function(t){const n=s(o(t));if(n){const e=c(t),r=i(e);Z(n.sortedAndCanonicalizedDirectories,r,Ct)&&n.directories.push(e)}e.createDirectory(t)},writeFile:e.writeFile&&function(t,n,r){const i=s(o(t));return i&&f(i,c(t),!0),e.writeFile(t,n,r)},addOrDeleteFileOrDirectory:function(t,n){if(void 0!==a(n))return void m();const r=s(n);if(!r)return void p(n);if(!e.directoryExists)return void m();const o=c(t),l={fileExists:e.fileExists(t),directoryExists:e.directoryExists(t)};return l.directoryExists||u(r.sortedAndCanonicalizedDirectories,i(o))?m():f(r,o,l.fileExists),l},addOrDeleteFile:function(e,t,n){if(1===n)return;const r=s(t);r?f(r,c(e),0===n):p(t)},clearCache:m,realpath:e.realpath&&d};function o(e){return qo(e,t,i)}function a(e){return r.get(Vo(e))}function s(e){const t=a(Do(e));return t?(t.sortedAndCanonicalizedFiles||(t.sortedAndCanonicalizedFiles=t.files.map(i).sort(),t.sortedAndCanonicalizedDirectories=t.directories.map(i).sort()),t):t}function c(e){return Fo(Jo(e))}function _(t,n){const i=a(n=Vo(n));if(i)return i;try{return function(t,n){var i;if(!e.realpath||Vo(o(e.realpath(t)))===n){const i={files:E(e.readDirectory(t,void 0,void 0,["*.*"]),c)||[],directories:e.getDirectories(t)||[]};return r.set(Vo(n),i),i}if(null==(i=e.directoryExists)?void 0:i.call(e,t))return r.set(n,!1),!1}(t,n)}catch{return void un.assert(!r.has(Vo(n)))}}function u(e,t){return Te(e,t,st,Ct)>=0}function d(t){return e.realpath?e.realpath(t):t}function p(e){aa(Do(e),(e=>!!r.delete(Vo(e))||void 0))}function f(e,t,n){const r=e.sortedAndCanonicalizedFiles,o=i(t);if(n)Z(r,o,Ct)&&e.files.push(t);else{const t=Te(r,o,st,Ct);if(t>=0){r.splice(t,1);const n=e.files.findIndex((e=>i(e)===o));e.files.splice(n,1)}}}function m(){r.clear()}}var cU=(e=>(e[e.Update=0]="Update",e[e.RootNamesAndUpdate=1]="RootNamesAndUpdate",e[e.Full=2]="Full",e))(cU||{});function lU(e,t,n,r,i){var o;const a=Re((null==(o=null==t?void 0:t.configFile)?void 0:o.extendedSourceFiles)||l,i);n.forEach(((t,n)=>{a.has(n)||(t.projects.delete(e),t.close())})),a.forEach(((t,i)=>{const o=n.get(i);o?o.projects.add(e):n.set(i,{projects:new Set([e]),watcher:r(t,i),close:()=>{const e=n.get(i);e&&0===e.projects.size&&(e.watcher.close(),n.delete(i))}})}))}function _U(e,t){t.forEach((t=>{t.projects.delete(e)&&t.close()}))}function uU(e,t,n){e.delete(t)&&e.forEach((({extendedResult:r},i)=>{var o;(null==(o=r.extendedSourceFiles)?void 0:o.some((e=>n(e)===t)))&&uU(e,i,n)}))}function dU(e,t,n){dx(t,e.getMissingFilePaths(),{createNewValue:n,onDeleteValue:tx})}function pU(e,t,n){function r(e,t){return{watcher:n(e,t),flags:t}}t?dx(e,new Map(Object.entries(t)),{createNewValue:r,onDeleteValue:vU,onExistingValue:function(t,n,i){t.flags!==n&&(t.watcher.close(),e.set(i,r(i,n)))}}):_x(e,vU)}function fU({watchedDirPath:e,fileOrDirectory:t,fileOrDirectoryPath:n,configFileName:r,options:i,program:o,extraFileExtensions:a,currentDirectory:s,useCaseSensitiveFileNames:c,writeLog:l,toPath:_,getScriptKind:u}){const d=wW(n);if(!d)return l(`Project: ${r} Detected ignored path: ${t}`),!0;if((n=d)===e)return!1;if(xo(n)&&!RS(t,i,a)&&!function(){if(!u)return!1;switch(u(t)){case 3:case 4:case 7:case 5:return!0;case 1:case 2:return Pk(i);case 6:return wk(i);case 0:return!1}}())return l(`Project: ${r} Detected file add/remove of non supported extension: ${t}`),!0;if(bj(t,i.configFile.configFileSpecs,Bo(Do(r),s),c,s))return l(`Project: ${r} Detected excluded file: ${t}`),!0;if(!o)return!1;if(i.outFile||i.outDir)return!1;if($I(n)){if(i.declarationDir)return!1}else if(!So(n,TS))return!1;const p=zS(n),f=Qe(o)?void 0:t$(o)?o.getProgramOrUndefined():o,m=f||Qe(o)?void 0:o;return!(!g(p+".ts")&&!g(p+".tsx")||(l(`Project: ${r} Detected output file: ${t}`),0));function g(e){return f?!!f.getSourceFileByPath(e):m?m.state.fileInfos.has(e):!!b(o,(t=>_(t)===e))}}function mU(e,t){return!!e&&e.isEmittedFile(t)}var gU=(e=>(e[e.None=0]="None",e[e.TriggerOnly=1]="TriggerOnly",e[e.Verbose=2]="Verbose",e))(gU||{});function hU(e,t,n,r){eo(2===t?n:rt);const i={watchFile:(t,n,r,i)=>e.watchFile(t,n,r,i),watchDirectory:(t,n,r,i)=>e.watchDirectory(t,n,!!(1&r),i)},o=0!==t?{watchFile:l("watchFile"),watchDirectory:l("watchDirectory")}:void 0,a=2===t?{watchFile:function(e,t,i,a,s,c){n(`FileWatcher:: Added:: ${_(e,i,a,s,c,r)}`);const l=o.watchFile(e,t,i,a,s,c);return{close:()=>{n(`FileWatcher:: Close:: ${_(e,i,a,s,c,r)}`),l.close()}}},watchDirectory:function(e,t,i,a,s,c){const l=`DirectoryWatcher:: Added:: ${_(e,i,a,s,c,r)}`;n(l);const u=Un(),d=o.watchDirectory(e,t,i,a,s,c),p=Un()-u;return n(`Elapsed:: ${p}ms ${l}`),{close:()=>{const t=`DirectoryWatcher:: Close:: ${_(e,i,a,s,c,r)}`;n(t);const o=Un();d.close();const l=Un()-o;n(`Elapsed:: ${l}ms ${t}`)}}}}:o||i,s=2===t?function(e,t,i,o,a){return n(`ExcludeWatcher:: Added:: ${_(e,t,i,o,a,r)}`),{close:()=>n(`ExcludeWatcher:: Close:: ${_(e,t,i,o,a,r)}`)}}:u$;return{watchFile:c("watchFile"),watchDirectory:c("watchDirectory")};function c(t){return(n,r,i,o,c,l)=>{var _;return kj(n,"watchFile"===t?null==o?void 0:o.excludeFiles:null==o?void 0:o.excludeDirectories,"boolean"==typeof e.useCaseSensitiveFileNames?e.useCaseSensitiveFileNames:e.useCaseSensitiveFileNames(),(null==(_=e.getCurrentDirectory)?void 0:_.call(e))||"")?s(n,i,o,c,l):a[t].call(void 0,n,r,i,o,c,l)}}function l(e){return(t,o,a,s,c,l)=>i[e].call(void 0,t,((...i)=>{const u=`${"watchFile"===e?"FileWatcher":"DirectoryWatcher"}:: Triggered with ${i[0]} ${void 0!==i[1]?i[1]:""}:: ${_(t,a,s,c,l,r)}`;n(u);const d=Un();o.call(void 0,...i);const p=Un()-d;n(`Elapsed:: ${p}ms ${u}`)}),a,s,c,l)}function _(e,t,n,r,i,o){return`WatchInfo: ${e} ${t} ${JSON.stringify(n)} ${o?o(r,i):void 0===i?r:`${r} ${i}`}`}}function yU(e){const t=null==e?void 0:e.fallbackPolling;return{watchFile:void 0!==t?t:1}}function vU(e){e.watcher.close()}function bU(e,t,n="tsconfig.json"){return aa(e,(e=>{const r=jo(e,n);return t(r)?r:void 0}))}function xU(e,t){const n=Do(t);return Jo(go(e)?e:jo(n,e))}function kU(e,t,n){let r;return d(e,(e=>{const i=Mo(e,t);if(i.pop(),!r)return void(r=i);const o=Math.min(r.length,i.length);for(let e=0;e{let o;try{tr("beforeIORead"),o=e(n),tr("afterIORead"),nr("I/O Read","beforeIORead","afterIORead")}catch(e){i&&i(e.message),o=""}return void 0!==o?LI(n,o,r,t):void 0}}function CU(e,t,n){return(r,i,o,a)=>{try{tr("beforeIOWrite"),ev(r,i,o,e,t,n),tr("afterIOWrite"),nr("I/O Write","beforeIOWrite","afterIOWrite")}catch(e){a&&a(e.message)}}}function wU(e,t,n=so){const r=new Map,i=Wt(n.useCaseSensitiveFileNames);function o(){return Do(Jo(n.getExecutingFilePath()))}const a=Eb(e),s=n.realpath&&(e=>n.realpath(e)),c={getSourceFile:TU((e=>c.readFile(e)),t),getDefaultLibLocation:o,getDefaultLibFileName:e=>jo(o(),Ns(e)),writeFile:CU(((e,t,r)=>n.writeFile(e,t,r)),(e=>(c.createDirectory||n.createDirectory)(e)),(e=>{return t=e,!!r.has(t)||!!(c.directoryExists||n.directoryExists)(t)&&(r.set(t,!0),!0);var t})),getCurrentDirectory:dt((()=>n.getCurrentDirectory())),useCaseSensitiveFileNames:()=>n.useCaseSensitiveFileNames,getCanonicalFileName:i,getNewLine:()=>a,fileExists:e=>n.fileExists(e),readFile:e=>n.readFile(e),trace:e=>n.write(e+a),directoryExists:e=>n.directoryExists(e),getEnvironmentVariable:e=>n.getEnvironmentVariable?n.getEnvironmentVariable(e):"",getDirectories:e=>n.getDirectories(e),realpath:s,readDirectory:(e,t,r,i,o)=>n.readDirectory(e,t,r,i,o),createDirectory:e=>n.createDirectory(e),createHash:We(n,n.createHash)};return c}function NU(e,t,n){const r=e.readFile,i=e.fileExists,o=e.directoryExists,a=e.createDirectory,s=e.writeFile,c=new Map,l=new Map,_=new Map,u=new Map,d=(t,n)=>{const i=r.call(e,n);return c.set(t,void 0!==i&&i),i};e.readFile=n=>{const i=t(n),o=c.get(i);return void 0!==o?!1!==o?o:void 0:ko(n,".json")||Dq(n)?d(i,n):r.call(e,n)};const p=n?(e,r,i,o)=>{const a=t(e),s="object"==typeof r?r.impliedNodeFormat:void 0,c=u.get(s),l=null==c?void 0:c.get(a);if(l)return l;const _=n(e,r,i,o);return _&&($I(e)||ko(e,".json"))&&u.set(s,(c||new Map).set(a,_)),_}:void 0;return e.fileExists=n=>{const r=t(n),o=l.get(r);if(void 0!==o)return o;const a=i.call(e,n);return l.set(r,!!a),a},s&&(e.writeFile=(n,r,...i)=>{const o=t(n);l.delete(o);const a=c.get(o);void 0!==a&&a!==r?(c.delete(o),u.forEach((e=>e.delete(o)))):p&&u.forEach((e=>{const t=e.get(o);t&&t.text!==r&&e.delete(o)})),s.call(e,n,r,...i)}),o&&(e.directoryExists=n=>{const r=t(n),i=_.get(r);if(void 0!==i)return i;const a=o.call(e,n);return _.set(r,!!a),a},a&&(e.createDirectory=n=>{const r=t(n);_.delete(r),a.call(e,n)})),{originalReadFile:r,originalFileExists:i,originalDirectoryExists:o,originalCreateDirectory:a,originalWriteFile:s,getSourceFileWithCache:p,readFileWithCache:e=>{const n=t(e),r=c.get(n);return void 0!==r?!1!==r?r:void 0:d(n,e)}}}function DU(e,t,n){let r;return r=se(r,e.getConfigFileParsingDiagnostics()),r=se(r,e.getOptionsDiagnostics(n)),r=se(r,e.getSyntacticDiagnostics(t,n)),r=se(r,e.getGlobalDiagnostics(n)),r=se(r,e.getSemanticDiagnostics(t,n)),Nk(e.getCompilerOptions())&&(r=se(r,e.getDeclarationDiagnostics(t,n))),Cs(r||l)}function FU(e,t){let n="";for(const r of e)n+=EU(r,t);return n}function EU(e,t){const n=`${ci(e)} TS${e.code}: ${UU(e.messageText,t.getNewLine())}${t.getNewLine()}`;if(e.file){const{line:r,character:i}=Ja(e.file,e.start);return`${ra(e.file.fileName,t.getCurrentDirectory(),(e=>t.getCanonicalFileName(e)))}(${r+1},${i+1}): `+n}return n}var PU=(e=>(e.Grey="",e.Red="",e.Yellow="",e.Blue="",e.Cyan="",e))(PU||{}),AU="",IU=" ",OU="",LU="...",jU=" ",RU=" ";function MU(e){switch(e){case 1:return"";case 0:return"";case 2:return un.fail("Should never get an Info diagnostic on the command line.");case 3:return""}}function BU(e,t){return t+e+OU}function JU(e,t,n,r,i,o){const{line:a,character:s}=Ja(e,t),{line:c,character:l}=Ja(e,t+n),_=Ja(e,e.text.length).line,u=c-a>=4;let d=(c+1+"").length;u&&(d=Math.max(LU.length,d));let p="";for(let t=a;t<=c;t++){p+=o.getNewLine(),u&&a+1n.getCanonicalFileName(e))):e.fileName,""),a+=":",a+=r(`${i+1}`,""),a+=":",a+=r(`${o+1}`,""),a}function qU(e,t){let n="";for(const r of e){if(r.file){const{file:e,start:i}=r;n+=zU(e,i,t),n+=" - "}if(n+=BU(ci(r),MU(r.category)),n+=BU(` TS${r.code}: `,""),n+=UU(r.messageText,t.getNewLine()),r.file&&r.code!==la.File_appears_to_be_binary.code&&(n+=t.getNewLine(),n+=JU(r.file,r.start,r.length,"",MU(r.category),t)),r.relatedInformation){n+=t.getNewLine();for(const{file:e,start:i,length:o,messageText:a}of r.relatedInformation)e&&(n+=t.getNewLine(),n+=jU+zU(e,i,t),n+=JU(e,i,o,RU,"",t)),n+=t.getNewLine(),n+=RU+UU(a,t.getNewLine())}n+=t.getNewLine()}return n}function UU(e,t,n=0){if(Ze(e))return e;if(void 0===e)return"";let r="";if(n){r+=t;for(let e=0;eHU(t,e,n)};function eV(e,t,n,r,i){return{nameAndMode:ZU,resolve:(o,a)=>bR(o,e,n,r,i,t,a)}}function tV(e){return Ze(e)?e:e.fileName}var nV={getName:tV,getMode:(e,t,n)=>VU(e,t&&TV(t,n))};function rV(e,t,n,r,i){return{nameAndMode:nV,resolve:(o,a)=>Zj(o,e,n,r,t,i,a)}}function iV(e,t,n,r,i,o,a,s){if(0===e.length)return l;const c=[],_=new Map,u=s(t,n,r,o,a);for(const t of e){const e=u.nameAndMode.getName(t),o=u.nameAndMode.getMode(t,i,(null==n?void 0:n.commandLine.options)||r),a=_R(e,o);let s=_.get(a);s||_.set(a,s=u.resolve(e,o)),c.push(s)}return c}function oV(e,t){return aV(void 0,e,((e,n)=>e&&t(e,n)))}function aV(e,t,n,r){let i;return function e(t,o,a){if(r){const e=r(t,a);if(e)return e}let s;return d(o,((e,t)=>{if(e&&(null==i?void 0:i.has(e.sourceFile.path)))return void(s??(s=new Set)).add(e);const r=n(e,a,t);if(r||!e)return r;(i||(i=new Set)).add(e.sourceFile.path)}))||d(o,(t=>t&&!(null==s?void 0:s.has(t))?e(t.commandLine.projectReferences,t.references,t):void 0))}(e,t,void 0)}var sV="__inferred type names__.ts";function cV(e,t,n){return jo(e.configFilePath?Do(e.configFilePath):t,`__lib_node_modules_lookup_${n}__.ts`)}function lV(e){const t=e.split(".");let n=t[1],r=2;for(;t[r]&&"d"!==t[r];)n+=(2===r?"/":"-")+t[r],r++;return"@typescript/lib-"+n}function _V(e){return _t(e.fileName)}function uV(e){const t=_V(e);return lO.get(t)}function dV(e){switch(null==e?void 0:e.kind){case 3:case 4:case 5:case 7:return!0;default:return!1}}function pV(e){return void 0!==e.pos}function fV(e,t){var n,r,i,o;const a=un.checkDefined(e.getSourceFileByPath(t.file)),{kind:s,index:c}=t;let l,_,u;switch(s){case 3:const t=AV(a,c);if(u=null==(r=null==(n=e.getResolvedModuleFromModuleSpecifier(t,a))?void 0:n.resolvedModule)?void 0:r.packageId,-1===t.pos)return{file:a,packageId:u,text:t.text};l=Xa(a.text,t.pos),_=t.end;break;case 4:({pos:l,end:_}=a.referencedFiles[c]);break;case 5:({pos:l,end:_}=a.typeReferenceDirectives[c]),u=null==(o=null==(i=e.getResolvedTypeReferenceDirectiveFromTypeReferenceDirective(a.typeReferenceDirectives[c],a))?void 0:i.resolvedTypeReferenceDirective)?void 0:o.packageId;break;case 7:({pos:l,end:_}=a.libReferenceDirectives[c]);break;default:return un.assertNever(s)}return{file:a,pos:l,end:_,packageId:u}}function mV(e,t,n,r,i,o,a,s,c,l){if(!e||(null==s?void 0:s()))return!1;if(!te(e.getRootFileNames(),t))return!1;let _;if(!te(e.getProjectReferences(),l,(function(t,n,r){return ad(t,n)&&f(e.getResolvedProjectReferences()[r],t)})))return!1;if(e.getSourceFiles().some((function(e){return!function(e){return e.version===r(e.resolvedPath,e.fileName)}(e)||o(e.path)})))return!1;const u=e.getMissingFilePaths();if(u&&td(u,i))return!1;const p=e.getCompilerOptions();return!(!lx(p,n)||e.resolvedLibReferences&&td(e.resolvedLibReferences,((e,t)=>a(t)))||p.configFile&&n.configFile&&p.configFile.text!==n.configFile.text);function f(e,t){if(e){if(T(_,e))return!0;const n=FV(t),r=c(n);return!!r&&e.commandLine.options.configFile===r.options.configFile&&!!te(e.commandLine.fileNames,r.fileNames)&&((_||(_=[])).push(e),!d(e.references,((t,n)=>!f(t,e.commandLine.projectReferences[n]))))}const n=FV(t);return!c(n)}}function gV(e){return e.options.configFile?[...e.options.configFile.parseDiagnostics,...e.errors]:e.errors}function hV(e,t,n,r){const i=yV(e,t,n,r);return"object"==typeof i?i.impliedNodeFormat:i}function yV(e,t,n,r){const i=vk(r),o=3<=i&&i<=99||AR(e);return So(e,[".d.mts",".mts",".mjs"])?99:So(e,[".d.cts",".cts",".cjs"])?1:o&&So(e,[".d.ts",".ts",".tsx",".js",".jsx"])?function(){const i=WR(t,n,r),o=[];i.failedLookupLocations=o,i.affectingLocations=o;const a=$R(Do(e),i);return{impliedNodeFormat:"module"===(null==a?void 0:a.contents.packageJsonContent.type)?99:1,packageJsonLocations:o,packageJsonScope:a}}():void 0}var vV=new Set([la.Cannot_redeclare_block_scoped_variable_0.code,la.A_module_cannot_have_multiple_default_exports.code,la.Another_export_default_is_here.code,la.The_first_export_default_is_here.code,la.Identifier_expected_0_is_a_reserved_word_at_the_top_level_of_a_module.code,la.Identifier_expected_0_is_a_reserved_word_in_strict_mode_Modules_are_automatically_in_strict_mode.code,la.Identifier_expected_0_is_a_reserved_word_that_cannot_be_used_here.code,la.constructor_is_a_reserved_word.code,la.delete_cannot_be_called_on_an_identifier_in_strict_mode.code,la.Code_contained_in_a_class_is_evaluated_in_JavaScript_s_strict_mode_which_does_not_allow_this_use_of_0_For_more_information_see_https_Colon_Slash_Slashdeveloper_mozilla_org_Slashen_US_Slashdocs_SlashWeb_SlashJavaScript_SlashReference_SlashStrict_mode.code,la.Invalid_use_of_0_Modules_are_automatically_in_strict_mode.code,la.Invalid_use_of_0_in_strict_mode.code,la.A_label_is_not_allowed_here.code,la.with_statements_are_not_allowed_in_strict_mode.code,la.A_break_statement_can_only_be_used_within_an_enclosing_iteration_or_switch_statement.code,la.A_break_statement_can_only_jump_to_a_label_of_an_enclosing_statement.code,la.A_class_declaration_without_the_default_modifier_must_have_a_name.code,la.A_class_member_cannot_have_the_0_keyword.code,la.A_comma_expression_is_not_allowed_in_a_computed_property_name.code,la.A_continue_statement_can_only_be_used_within_an_enclosing_iteration_statement.code,la.A_continue_statement_can_only_jump_to_a_label_of_an_enclosing_iteration_statement.code,la.A_continue_statement_can_only_jump_to_a_label_of_an_enclosing_iteration_statement.code,la.A_default_clause_cannot_appear_more_than_once_in_a_switch_statement.code,la.A_default_export_must_be_at_the_top_level_of_a_file_or_module_declaration.code,la.A_definite_assignment_assertion_is_not_permitted_in_this_context.code,la.A_destructuring_declaration_must_have_an_initializer.code,la.A_get_accessor_cannot_have_parameters.code,la.A_rest_element_cannot_contain_a_binding_pattern.code,la.A_rest_element_cannot_have_a_property_name.code,la.A_rest_element_cannot_have_an_initializer.code,la.A_rest_element_must_be_last_in_a_destructuring_pattern.code,la.A_rest_parameter_cannot_have_an_initializer.code,la.A_rest_parameter_must_be_last_in_a_parameter_list.code,la.A_rest_parameter_or_binding_pattern_may_not_have_a_trailing_comma.code,la.A_return_statement_cannot_be_used_inside_a_class_static_block.code,la.A_set_accessor_cannot_have_rest_parameter.code,la.A_set_accessor_must_have_exactly_one_parameter.code,la.An_export_declaration_can_only_be_used_at_the_top_level_of_a_module.code,la.An_export_declaration_cannot_have_modifiers.code,la.An_import_declaration_can_only_be_used_at_the_top_level_of_a_module.code,la.An_import_declaration_cannot_have_modifiers.code,la.An_object_member_cannot_be_declared_optional.code,la.Argument_of_dynamic_import_cannot_be_spread_element.code,la.Cannot_assign_to_private_method_0_Private_methods_are_not_writable.code,la.Cannot_redeclare_identifier_0_in_catch_clause.code,la.Catch_clause_variable_cannot_have_an_initializer.code,la.Class_decorators_can_t_be_used_with_static_private_identifier_Consider_removing_the_experimental_decorator.code,la.Classes_can_only_extend_a_single_class.code,la.Classes_may_not_have_a_field_named_constructor.code,la.Did_you_mean_to_use_a_Colon_An_can_only_follow_a_property_name_when_the_containing_object_literal_is_part_of_a_destructuring_pattern.code,la.Duplicate_label_0.code,la.Dynamic_imports_can_only_accept_a_module_specifier_and_an_optional_set_of_attributes_as_arguments.code,la.for_await_loops_cannot_be_used_inside_a_class_static_block.code,la.JSX_attributes_must_only_be_assigned_a_non_empty_expression.code,la.JSX_elements_cannot_have_multiple_attributes_with_the_same_name.code,la.JSX_expressions_may_not_use_the_comma_operator_Did_you_mean_to_write_an_array.code,la.JSX_property_access_expressions_cannot_include_JSX_namespace_names.code,la.Jump_target_cannot_cross_function_boundary.code,la.Line_terminator_not_permitted_before_arrow.code,la.Modifiers_cannot_appear_here.code,la.Only_a_single_variable_declaration_is_allowed_in_a_for_in_statement.code,la.Only_a_single_variable_declaration_is_allowed_in_a_for_of_statement.code,la.Private_identifiers_are_not_allowed_outside_class_bodies.code,la.Private_identifiers_are_only_allowed_in_class_bodies_and_may_only_be_used_as_part_of_a_class_member_declaration_property_access_or_on_the_left_hand_side_of_an_in_expression.code,la.Property_0_is_not_accessible_outside_class_1_because_it_has_a_private_identifier.code,la.Tagged_template_expressions_are_not_permitted_in_an_optional_chain.code,la.The_left_hand_side_of_a_for_of_statement_may_not_be_async.code,la.The_variable_declaration_of_a_for_in_statement_cannot_have_an_initializer.code,la.The_variable_declaration_of_a_for_of_statement_cannot_have_an_initializer.code,la.Trailing_comma_not_allowed.code,la.Variable_declaration_list_cannot_be_empty.code,la._0_and_1_operations_cannot_be_mixed_without_parentheses.code,la._0_expected.code,la._0_is_not_a_valid_meta_property_for_keyword_1_Did_you_mean_2.code,la._0_list_cannot_be_empty.code,la._0_modifier_already_seen.code,la._0_modifier_cannot_appear_on_a_constructor_declaration.code,la._0_modifier_cannot_appear_on_a_module_or_namespace_element.code,la._0_modifier_cannot_appear_on_a_parameter.code,la._0_modifier_cannot_appear_on_class_elements_of_this_kind.code,la._0_modifier_cannot_be_used_here.code,la._0_modifier_must_precede_1_modifier.code,la._0_declarations_can_only_be_declared_inside_a_block.code,la._0_declarations_must_be_initialized.code,la.extends_clause_already_seen.code,la.let_is_not_allowed_to_be_used_as_a_name_in_let_or_const_declarations.code,la.Class_constructor_may_not_be_a_generator.code,la.Class_constructor_may_not_be_an_accessor.code,la.await_expressions_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules.code,la.await_using_statements_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules.code,la.Private_field_0_must_be_declared_in_an_enclosing_class.code,la.This_condition_will_always_return_0_since_JavaScript_compares_objects_by_reference_not_value.code]);function bV(e,t,n,r,i){var o,s,c,_,u,p,f,g,h,y,v,x,S,C,w,D;const F=Qe(e)?function(e,t,n,r,i){return{rootNames:e,options:t,host:n,oldProgram:r,configFileParsingDiagnostics:i,typeScriptVersion:void 0}}(e,t,n,r,i):e,{rootNames:E,options:P,configFileParsingDiagnostics:A,projectReferences:L,typeScriptVersion:j}=F;let{oldProgram:R}=F;for(const e of CO)if(De(P,e.name)&&"string"==typeof P[e.name])throw new Error(`${e.name} is a string value; tsconfig JSON must be parsed with parseJsonSourceFileConfigFileContent or getParsedCommandLineOfConfigFile before passing to createProgram`);const M=dt((()=>$n("ignoreDeprecations",la.Invalid_value_for_ignoreDeprecations)));let J,z,q,U,V,W,H,G,X,Q,Y,Z,ee,ne,re,oe,ae,se,ce,le,ue,de,pe=$e();const fe="number"==typeof P.maxNodeModuleJsDepth?P.maxNodeModuleJsDepth:0;let me=0;const ge=new Map,he=new Map;null==(o=Hn)||o.push(Hn.Phase.Program,"createProgram",{configFilePath:P.configFilePath,rootDir:P.rootDir},!0),tr("beforeProgram");const ye=F.host||SU(P),ve=DV(ye);let be=P.noLib;const xe=dt((()=>ye.getDefaultLibFileName(P))),ke=ye.getDefaultLibLocation?ye.getDefaultLibLocation():Do(xe()),Se=ly();let Te=[];const Ce=ye.getCurrentDirectory(),we=ES(P),Ne=PS(P,we),Fe=new Map;let Ee,Pe,Ae,Ie;const Oe=ye.hasInvalidatedResolutions||it;let Le;if(ye.resolveModuleNameLiterals?(Ie=ye.resolveModuleNameLiterals.bind(ye),Ae=null==(s=ye.getModuleResolutionCache)?void 0:s.call(ye)):ye.resolveModuleNames?(Ie=(e,t,n,r,i,o)=>ye.resolveModuleNames(e.map(YU),t,null==o?void 0:o.map(YU),n,r,i).map((e=>e?void 0!==e.extension?{resolvedModule:e}:{resolvedModule:{...e,extension:QS(e.resolvedFileName)}}:QU)),Ae=null==(c=ye.getModuleResolutionCache)?void 0:c.call(ye)):(Ae=mR(Ce,In,P),Ie=(e,t,n,r,i)=>iV(e,t,n,r,i,ye,Ae,eV)),ye.resolveTypeReferenceDirectiveReferences)Le=ye.resolveTypeReferenceDirectiveReferences.bind(ye);else if(ye.resolveTypeReferenceDirectives)Le=(e,t,n,r,i)=>ye.resolveTypeReferenceDirectives(e.map(tV),t,n,r,null==i?void 0:i.impliedNodeFormat).map((e=>({resolvedTypeReferenceDirective:e})));else{const e=gR(Ce,In,void 0,null==Ae?void 0:Ae.getPackageJsonInfoCache(),null==Ae?void 0:Ae.optionsToRedirectsKey);Le=(t,n,r,i,o)=>iV(t,n,r,i,o,ye,e,rV)}const je=ye.hasInvalidatedLibResolutions||it;let Re;if(ye.resolveLibrary)Re=ye.resolveLibrary.bind(ye);else{const e=mR(Ce,In,P,null==Ae?void 0:Ae.getPackageJsonInfoCache());Re=(t,n,r)=>yR(t,n,r,ye,e)}const Me=new Map;let Be,Je=new Map,ze=$e();const qe=new Map;let Ue=new Map;const Ve=ye.useCaseSensitiveFileNames()?new Map:void 0;let He,Ke,Ge,Xe;const Ye=!!(null==(_=ye.useSourceOfProjectReferenceRedirect)?void 0:_.call(ye))&&!P.disableSourceOfProjectReferenceRedirect,{onProgramCreateComplete:et,fileExists:nt,directoryExists:ot}=function(e){let t;const n=e.compilerHost.fileExists,r=e.compilerHost.directoryExists,i=e.compilerHost.getDirectories,o=e.compilerHost.realpath;if(!e.useSourceOfProjectReferenceRedirect)return{onProgramCreateComplete:rt,fileExists:s};let a;return e.compilerHost.fileExists=s,r&&(a=e.compilerHost.directoryExists=n=>r.call(e.compilerHost,n)?(function(t){var n;if(!e.getResolvedProjectReferences()||PT(t))return;if(!o||!t.includes(PR))return;const r=e.getSymlinkCache(),i=Vo(e.toPath(t));if(null==(n=r.getSymlinkedDirectories())?void 0:n.has(i))return;const a=Jo(o.call(e.compilerHost,t));let s;a!==t&&(s=Vo(e.toPath(a)))!==i?r.setSymlinkedDirectory(t,{real:Vo(a),realPath:s}):r.setSymlinkedDirectory(i,!1)}(n),!0):!!e.getResolvedProjectReferences()&&(t||(t=new Set,e.forEachResolvedProjectReference((n=>{const r=n.commandLine.options.outFile;if(r)t.add(Do(e.toPath(r)));else{const r=n.commandLine.options.declarationDir||n.commandLine.options.outDir;r&&t.add(e.toPath(r))}}))),c(n,!1))),i&&(e.compilerHost.getDirectories=t=>!e.getResolvedProjectReferences()||r&&r.call(e.compilerHost,t)?i.call(e.compilerHost,t):[]),o&&(e.compilerHost.realpath=t=>{var n;return(null==(n=e.getSymlinkCache().getSymlinkedFiles())?void 0:n.get(e.toPath(t)))||o.call(e.compilerHost,t)}),{onProgramCreateComplete:function(){e.compilerHost.fileExists=n,e.compilerHost.directoryExists=r,e.compilerHost.getDirectories=i},fileExists:s,directoryExists:a};function s(t){return!!n.call(e.compilerHost,t)||!!e.getResolvedProjectReferences()&&!!$I(t)&&c(t,!0)}function c(r,i){var o;const a=i?t=>function(t){const r=e.getSourceOfProjectReferenceRedirect(e.toPath(t));return void 0!==r?!Ze(r)||n.call(e.compilerHost,r):void 0}(t):n=>function(n){const r=e.toPath(n),i=`${r}${lo}`;return nd(t,(e=>r===e||Gt(e,i)||Gt(r,`${e}/`)))}(n),s=a(r);if(void 0!==s)return s;const c=e.getSymlinkCache(),l=c.getSymlinkedDirectories();if(!l)return!1;const _=e.toPath(r);return!!_.includes(PR)&&(!(!i||!(null==(o=c.getSymlinkedFiles())?void 0:o.has(_)))||m(l.entries(),(([t,n])=>{if(!n||!Gt(_,t))return;const o=a(_.replace(t,n.realPath));if(i&&o){const i=Bo(r,e.compilerHost.getCurrentDirectory());c.setSymlinkedFile(_,`${n.real}${i.replace(new RegExp(t,"i"),"")}`)}return o}))||!1)}}({compilerHost:ye,getSymlinkCache:ir,useSourceOfProjectReferenceRedirect:Ye,toPath:Et,getResolvedProjectReferences:Bt,getSourceOfProjectReferenceRedirect:Sn,forEachResolvedProjectReference:kn}),at=ye.readFile.bind(ye);null==(u=Hn)||u.push(Hn.Phase.Program,"shouldProgramCreateNewSourceFiles",{hasOldProgram:!!R});const ct=function(e,t){return!!e&&Zu(e.getCompilerOptions(),t,bO)}(R,P);let lt;if(null==(p=Hn)||p.pop(),null==(f=Hn)||f.push(Hn.Phase.Program,"tryReuseStructureFromOldProgram",{}),lt=function(){var e;if(!R)return 0;const t=R.getCompilerOptions();if(Qu(t,P))return 0;if(!te(R.getRootFileNames(),E))return 0;if(aV(R.getProjectReferences(),R.getResolvedProjectReferences(),((e,t,n)=>{const r=Ln((t?t.commandLine.projectReferences:L)[n]);return e?!r||r.sourceFile!==e.sourceFile||!te(e.commandLine.fileNames,r.commandLine.fileNames):void 0!==r}),((e,t)=>!te(e,t?Cn(t.sourceFile.path).commandLine.projectReferences:L,ad))))return 0;L&&(He=L.map(Ln));const n=[],r=[];if(lt=2,td(R.getMissingFilePaths(),(e=>ye.fileExists(e))))return 0;const i=R.getSourceFiles();let o;var a;(a=o||(o={}))[a.Exists=0]="Exists",a[a.Modified=1]="Modified";const s=new Map;for(const t of i){const i=pn(t.fileName,Ae,ye,P);let o,a=ye.getSourceFileByPath?ye.getSourceFileByPath(t.fileName,t.resolvedPath,i,void 0,ct):ye.getSourceFile(t.fileName,i,void 0,ct);if(!a)return 0;if(a.packageJsonLocations=(null==(e=i.packageJsonLocations)?void 0:e.length)?i.packageJsonLocations:void 0,a.packageJsonScope=i.packageJsonScope,un.assert(!a.redirectInfo,"Host should not return a redirect source file from `getSourceFile`"),t.redirectInfo){if(a!==t.redirectInfo.unredirected)return 0;o=!1,a=t}else if(R.redirectTargetsMap.has(t.path)){if(a!==t)return 0;o=!1}else o=a!==t;a.path=t.path,a.originalFileName=t.originalFileName,a.resolvedPath=t.resolvedPath,a.fileName=t.fileName;const c=R.sourceFileToPackageName.get(t.path);if(void 0!==c){const e=s.get(c),t=o?1:0;if(void 0!==e&&1===t||1===e)return 0;s.set(c,t)}o?(t.impliedNodeFormat!==a.impliedNodeFormat?lt=1:te(t.libReferenceDirectives,a.libReferenceDirectives,nn)?t.hasNoDefaultLib!==a.hasNoDefaultLib?lt=1:te(t.referencedFiles,a.referencedFiles,nn)?(an(a),te(t.imports,a.imports,rn)&&te(t.moduleAugmentations,a.moduleAugmentations,rn)?(12582912&t.flags)!=(12582912&a.flags)?lt=1:te(t.typeReferenceDirectives,a.typeReferenceDirectives,nn)||(lt=1):lt=1):lt=1:lt=1,r.push(a)):Oe(t.path)&&(lt=1,r.push(a)),n.push(a)}if(2!==lt)return lt;for(const e of r){const t=PV(e),n=At(t,e);(ce??(ce=new Map)).set(e.path,n);const r=Dn(e);md(t,n,(t=>R.getResolvedModule(e,t.text,KU(e,t,r))),sd)&&(lt=1);const i=e.typeReferenceDirectives,o=It(i,e);(ue??(ue=new Map)).set(e.path,o),md(i,o,(t=>R.getResolvedTypeReferenceDirective(e,tV(t),_r(t,e))),fd)&&(lt=1)}if(2!==lt)return lt;if(Yu(t,P))return 1;if(R.resolvedLibReferences&&td(R.resolvedLibReferences,((e,t)=>Pn(t).actual!==e.actual)))return 1;if(ye.hasChangedAutomaticTypeDirectiveNames){if(ye.hasChangedAutomaticTypeDirectiveNames())return 1}else if(ne=rR(P,ye),!te(R.getAutomaticTypeDirectiveNames(),ne))return 1;Ue=R.getMissingFilePaths(),un.assert(n.length===R.getSourceFiles().length);for(const e of n)qe.set(e.path,e);return R.getFilesByNameMap().forEach(((e,t)=>{e?e.path!==t?qe.set(t,qe.get(e.path)):R.isSourceFileFromExternalLibrary(e)&&he.set(e.path,!0):qe.set(t,e)})),q=n,pe=R.getFileIncludeReasons(),ee=R.getFileProcessingDiagnostics(),ne=R.getAutomaticTypeDirectiveNames(),re=R.getAutomaticTypeDirectiveResolutions(),Je=R.sourceFileToPackageName,ze=R.redirectTargetsMap,Be=R.usesUriStyleNodeCoreModules,se=R.resolvedModules,le=R.resolvedTypeReferenceDirectiveNames,oe=R.resolvedLibReferences,de=R.getCurrentPackagesMap(),2}(),null==(g=Hn)||g.pop(),2!==lt){if(J=[],z=[],L&&(He||(He=L.map(Ln)),E.length&&(null==He||He.forEach(((e,t)=>{if(!e)return;const n=e.commandLine.options.outFile;if(Ye){if(n||0===yk(e.commandLine.options))for(const n of e.commandLine.fileNames)ln(n,{kind:1,index:t})}else if(n)ln(VS(n,".d.ts"),{kind:2,index:t});else if(0===yk(e.commandLine.options)){const n=dt((()=>Vq(e.commandLine,!ye.useCaseSensitiveFileNames())));for(const r of e.commandLine.fileNames)$I(r)||ko(r,".json")||ln(jq(r,e.commandLine,!ye.useCaseSensitiveFileNames(),n),{kind:2,index:t})}})))),null==(h=Hn)||h.push(Hn.Phase.Program,"processRootFiles",{count:E.length}),d(E,((e,t)=>tn(e,!1,!1,{kind:0,index:t}))),null==(y=Hn)||y.pop(),ne??(ne=E.length?rR(P,ye):l),re=uR(),ne.length){null==(v=Hn)||v.push(Hn.Phase.Program,"processTypeReferences",{count:ne.length});const e=jo(P.configFilePath?Do(P.configFilePath):Ce,sV),t=It(ne,e);for(let e=0;e{tn(En(e),!0,!1,{kind:6,index:t})}))}q=_e(J,(function(e,t){return vt(Ft(e),Ft(t))})).concat(z),J=void 0,z=void 0,G=void 0}if(R&&ye.onReleaseOldSourceFile){const e=R.getSourceFiles();for(const t of e){const e=Vt(t.resolvedPath);(ct||!e||e.impliedNodeFormat!==t.impliedNodeFormat||t.resolvedPath===t.path&&e.resolvedPath!==t.path)&&ye.onReleaseOldSourceFile(t,R.getCompilerOptions(),!!Vt(t.path),e)}ye.getParsedCommandLine||R.forEachResolvedProjectReference((e=>{Cn(e.sourceFile.path)||ye.onReleaseOldSourceFile(e.sourceFile,R.getCompilerOptions(),!1,void 0)}))}R&&ye.onReleaseParsedCommandLine&&aV(R.getProjectReferences(),R.getResolvedProjectReferences(),((e,t,n)=>{const r=FV((null==t?void 0:t.commandLine.projectReferences[n])||R.getProjectReferences()[n]);(null==Ke?void 0:Ke.has(Et(r)))||ye.onReleaseParsedCommandLine(r,e,R.getCompilerOptions())})),R=void 0,ae=void 0,ce=void 0,ue=void 0;const ut={getRootFileNames:()=>E,getSourceFile:Ut,getSourceFileByPath:Vt,getSourceFiles:()=>q,getMissingFilePaths:()=>Ue,getModuleResolutionCache:()=>Ae,getFilesByNameMap:()=>qe,getCompilerOptions:()=>P,getSyntacticDiagnostics:function(e,t){return Wt(e,Ht,t)},getOptionsDiagnostics:function(){return Cs(K(pt().getGlobalDiagnostics(),function(){if(!P.configFile)return l;let e=pt().getDiagnostics(P.configFile.fileName);return kn((t=>{e=K(e,pt().getDiagnostics(t.sourceFile.fileName))})),e}()))},getGlobalDiagnostics:function(){return E.length?Cs(zt().getGlobalDiagnostics().slice()):l},getSemanticDiagnostics:function(e,t,n){return Wt(e,((e,t)=>function(e,t,n){return K(NV(Qt(e,t,n),P),$t(e))}(e,t,n)),t)},getCachedSemanticDiagnostics:function(e){return null==Y?void 0:Y.get(e.path)},getSuggestionDiagnostics:function(e,t){return Kt((()=>zt().getSuggestionDiagnostics(e,t)))},getDeclarationDiagnostics:function(e,t){return Wt(e,en,t)},getBindAndCheckDiagnostics:function(e,t){return Qt(e,t,void 0)},getProgramDiagnostics:$t,getTypeChecker:zt,getClassifiableNames:function(){var e;if(!H){zt(),H=new Set;for(const t of q)null==(e=t.classifiableNames)||e.forEach((e=>H.add(e)))}return H},getCommonSourceDirectory:Pt,emit:function(e,t,n,r,i,o,a){var s,c;null==(s=Hn)||s.push(Hn.Phase.Emit,"emit",{path:null==e?void 0:e.path},!0);const l=Kt((()=>function(e,t,n,r,i,o,a,s){if(!a){const i=wV(e,t,n,r);if(i)return i}const c=zt(),l=c.getEmitResolver(P.outFile?void 0:t,r,Kq(i,a));tr("beforeEmit");const _=c.runWithCancellationToken(r,(()=>Gq(l,jt(n),t,hq(P,o,i),i,!1,a,s)));return tr("afterEmit"),nr("Emit","beforeEmit","afterEmit"),_}(ut,e,t,n,r,i,o,a)));return null==(c=Hn)||c.pop(),l},getCurrentDirectory:()=>Ce,getNodeCount:()=>zt().getNodeCount(),getIdentifierCount:()=>zt().getIdentifierCount(),getSymbolCount:()=>zt().getSymbolCount(),getTypeCount:()=>zt().getTypeCount(),getInstantiationCount:()=>zt().getInstantiationCount(),getRelationCacheSizes:()=>zt().getRelationCacheSizes(),getFileProcessingDiagnostics:()=>ee,getAutomaticTypeDirectiveNames:()=>ne,getAutomaticTypeDirectiveResolutions:()=>re,isSourceFileFromExternalLibrary:Jt,isSourceFileDefaultLibrary:function(e){if(!e.isDeclarationFile)return!1;if(e.hasNoDefaultLib)return!0;if(P.noLib)return!1;const t=ye.useCaseSensitiveFileNames()?ht:gt;return P.lib?$(P.lib,(n=>{const r=oe.get(n);return!!r&&t(e.fileName,r.actual)})):t(e.fileName,xe())},getModeForUsageLocation:or,getEmitSyntaxForUsageLocation:function(e,t){return GU(e,t,Dn(e))},getModeForResolutionAtIndex:ar,getSourceFileFromReference:function(e,t){return sn(xU(t.fileName,e.fileName),Ut)},getLibFileFromReference:function(e){var t;const n=uV(e),r=n&&(null==(t=null==oe?void 0:oe.get(n))?void 0:t.actual);return void 0!==r?Ut(r):void 0},sourceFileToPackageName:Je,redirectTargetsMap:ze,usesUriStyleNodeCoreModules:Be,resolvedModules:se,resolvedTypeReferenceDirectiveNames:le,resolvedLibReferences:oe,getResolvedModule:ft,getResolvedModuleFromModuleSpecifier:function(e,t){return t??(t=hd(e)),un.assertIsDefined(t,"`moduleSpecifier` must have a `SourceFile` ancestor. Use `program.getResolvedModule` instead to provide the containing file and resolution mode."),ft(t,e.text,or(t,e))},getResolvedTypeReferenceDirective:mt,getResolvedTypeReferenceDirectiveFromTypeReferenceDirective:function(e,t){return mt(t,e.fileName,_r(e,t))},forEachResolvedModule:yt,forEachResolvedTypeReferenceDirective:bt,getCurrentPackagesMap:()=>de,typesPackageExists:function(e){return kt().has(pM(e))},packageBundlesTypes:function(e){return!!kt().get(e)},isEmittedFile:function(e){if(P.noEmit)return!1;const t=Et(e);if(Vt(t))return!1;const n=P.outFile;if(n)return rr(t,n)||rr(t,zS(n)+".d.ts");if(P.declarationDir&&Zo(P.declarationDir,t,Ce,!ye.useCaseSensitiveFileNames()))return!0;if(P.outDir)return Zo(P.outDir,t,Ce,!ye.useCaseSensitiveFileNames());if(So(t,TS)||$I(t)){const e=zS(t);return!!Vt(e+".ts")||!!Vt(e+".tsx")}return!1},getConfigFileParsingDiagnostics:function(){return A||l},getProjectReferences:function(){return L},getResolvedProjectReferences:Bt,getProjectReferenceRedirect:hn,getResolvedProjectReferenceToRedirect:xn,getResolvedProjectReferenceByPath:Cn,forEachResolvedProjectReference:kn,isSourceOfProjectReferenceRedirect:Tn,getRedirectReferenceForResolutionFromSourceOfProject:Dt,getCompilerOptionsForFile:Dn,getDefaultResolutionModeForFile:sr,getEmitModuleFormatOfFile:cr,getImpliedNodeFormatForEmit:function(e){return SV(e,Dn(e))},shouldTransformImportCall:lr,emitBuildInfo:function(e){var t,n;null==(t=Hn)||t.push(Hn.Phase.Emit,"emitBuildInfo",{},!0),tr("beforeEmit");const r=Gq(Yq,jt(e),void 0,gq,!1,!0);return tr("afterEmit"),nr("Emit","beforeEmit","afterEmit"),null==(n=Hn)||n.pop(),r},fileExists:nt,readFile:at,directoryExists:ot,getSymlinkCache:ir,realpath:null==(w=ye.realpath)?void 0:w.bind(ye),useCaseSensitiveFileNames:()=>ye.useCaseSensitiveFileNames(),getCanonicalFileName:In,getFileIncludeReasons:()=>pe,structureIsReused:lt,writeFile:Rt,getGlobalTypingsCacheLocation:We(ye,ye.getGlobalTypingsCacheLocation)};return et(),function(){P.strictPropertyInitialization&&!Mk(P,"strictNullChecks")&&Wn(la.Option_0_cannot_be_specified_without_specifying_option_1,"strictPropertyInitialization","strictNullChecks"),P.exactOptionalPropertyTypes&&!Mk(P,"strictNullChecks")&&Wn(la.Option_0_cannot_be_specified_without_specifying_option_1,"exactOptionalPropertyTypes","strictNullChecks"),(P.isolatedModules||P.verbatimModuleSyntax)&&P.outFile&&Wn(la.Option_0_cannot_be_specified_with_option_1,"outFile",P.verbatimModuleSyntax?"verbatimModuleSyntax":"isolatedModules"),P.isolatedDeclarations&&(Pk(P)&&Wn(la.Option_0_cannot_be_specified_with_option_1,"allowJs","isolatedDeclarations"),Nk(P)||Wn(la.Option_0_cannot_be_specified_without_specifying_option_1_or_option_2,"isolatedDeclarations","declaration","composite")),P.inlineSourceMap&&(P.sourceMap&&Wn(la.Option_0_cannot_be_specified_with_option_1,"sourceMap","inlineSourceMap"),P.mapRoot&&Wn(la.Option_0_cannot_be_specified_with_option_1,"mapRoot","inlineSourceMap")),P.composite&&(!1===P.declaration&&Wn(la.Composite_projects_may_not_disable_declaration_emit,"declaration"),!1===P.incremental&&Wn(la.Composite_projects_may_not_disable_incremental_compilation,"declaration"));const e=P.outFile;if(P.tsBuildInfoFile||!P.incremental||e||P.configFilePath||Se.add(Xx(la.Option_incremental_can_only_be_specified_using_tsconfig_emitting_to_single_file_or_when_option_tsBuildInfoFile_is_specified)),jn("5.0","5.5",(function(e,t,n,r,...i){if(n){const o=Yx(void 0,la.Use_0_instead,n);Gn(!t,e,void 0,Yx(o,r,...i))}else Gn(!t,e,void 0,r,...i)}),(e=>{0===P.target&&e("target","ES3"),P.noImplicitUseStrict&&e("noImplicitUseStrict"),P.keyofStringsOnly&&e("keyofStringsOnly"),P.suppressExcessPropertyErrors&&e("suppressExcessPropertyErrors"),P.suppressImplicitAnyIndexErrors&&e("suppressImplicitAnyIndexErrors"),P.noStrictGenericChecks&&e("noStrictGenericChecks"),P.charset&&e("charset"),P.out&&e("out",void 0,"outFile"),P.importsNotUsedAsValues&&e("importsNotUsedAsValues",void 0,"verbatimModuleSyntax"),P.preserveValueImports&&e("preserveValueImports",void 0,"verbatimModuleSyntax")})),function(){const e=P.suppressOutputPathCheck?void 0:Eq(P);aV(L,He,((t,n,r)=>{const i=(n?n.commandLine.projectReferences:L)[r],o=n&&n.sourceFile;if(function(e,t,n){jn("5.0","5.5",(function(e,r,i,o,...a){Kn(t,n,o,...a)}),(t=>{e.prepend&&t("prepend")}))}(i,o,r),!t)return void Kn(o,r,la.File_0_not_found,i.path);const a=t.commandLine.options;a.composite&&!a.noEmit||(n?n.commandLine.fileNames:E).length&&(a.composite||Kn(o,r,la.Referenced_project_0_must_have_setting_composite_Colon_true,i.path),a.noEmit&&Kn(o,r,la.Referenced_project_0_may_not_disable_emit,i.path)),!n&&e&&e===Eq(a)&&(Kn(o,r,la.Cannot_write_file_0_because_it_will_overwrite_tsbuildinfo_file_generated_by_referenced_project_1,e,i.path),Fe.set(Et(e),!0))}))}(),P.composite){const e=new Set(E.map(Et));for(const t of q)Gy(t,ut)&&!e.has(t.path)&&Bn(t,la.File_0_is_not_listed_within_the_file_list_of_project_1_Projects_must_list_all_files_or_use_an_include_pattern,[t.fileName,P.configFilePath||""])}if(P.paths)for(const e in P.paths)if(De(P.paths,e))if(Kk(e)||zn(!0,e,la.Pattern_0_can_have_at_most_one_Asterisk_character,e),Qe(P.paths[e])){const t=P.paths[e].length;0===t&&zn(!1,e,la.Substitutions_for_pattern_0_shouldn_t_be_an_empty_array,e);for(let n=0;nMI(e)&&!e.isDeclarationFile));if(P.isolatedModules||P.verbatimModuleSyntax)0===P.module&&t<2&&P.isolatedModules&&Wn(la.Option_isolatedModules_can_only_be_used_when_either_option_module_is_provided_or_option_target_is_ES2015_or_higher,"isolatedModules","target"),!1===P.preserveConstEnums&&Wn(la.Option_preserveConstEnums_cannot_be_disabled_when_0_is_enabled,P.verbatimModuleSyntax?"verbatimModuleSyntax":"isolatedModules","preserveConstEnums");else if(n&&t<2&&0===P.module){const e=Gp(n,"boolean"==typeof n.externalModuleIndicator?n:n.externalModuleIndicator);Se.add(Kx(n,e.start,e.length,la.Cannot_use_imports_exports_or_module_augmentations_when_module_is_none))}if(e&&!P.emitDeclarationOnly)if(P.module&&2!==P.module&&4!==P.module)Wn(la.Only_amd_and_system_modules_are_supported_alongside_0,"outFile","module");else if(void 0===P.module&&n){const e=Gp(n,"boolean"==typeof n.externalModuleIndicator?n:n.externalModuleIndicator);Se.add(Kx(n,e.start,e.length,la.Cannot_compile_modules_using_option_0_unless_the_module_flag_is_amd_or_system,"outFile"))}if(wk(P)&&(1===vk(P)?Wn(la.Option_resolveJsonModule_cannot_be_specified_when_moduleResolution_is_set_to_classic,"resolveJsonModule"):Ok(P)||Wn(la.Option_resolveJsonModule_cannot_be_specified_when_module_is_set_to_none_system_or_umd,"resolveJsonModule","module")),P.outDir||P.rootDir||P.sourceRoot||P.mapRoot||Nk(P)&&P.declarationDir){const e=Pt();P.outDir&&""===e&&q.some((e=>No(e.fileName)>1))&&Wn(la.Cannot_find_the_common_subdirectory_path_for_the_input_files,"outDir")}P.checkJs&&!Pk(P)&&Wn(la.Option_0_cannot_be_specified_without_specifying_option_1,"checkJs","allowJs"),P.emitDeclarationOnly&&(Nk(P)||Wn(la.Option_0_cannot_be_specified_without_specifying_option_1_or_option_2,"emitDeclarationOnly","declaration","composite")),P.emitDecoratorMetadata&&!P.experimentalDecorators&&Wn(la.Option_0_cannot_be_specified_without_specifying_option_1,"emitDecoratorMetadata","experimentalDecorators"),P.jsxFactory?(P.reactNamespace&&Wn(la.Option_0_cannot_be_specified_with_option_1,"reactNamespace","jsxFactory"),4!==P.jsx&&5!==P.jsx||Wn(la.Option_0_cannot_be_specified_when_option_jsx_is_1,"jsxFactory",aO.get(""+P.jsx)),jI(P.jsxFactory,t)||$n("jsxFactory",la.Invalid_value_for_jsxFactory_0_is_not_a_valid_identifier_or_qualified_name,P.jsxFactory)):P.reactNamespace&&!fs(P.reactNamespace,t)&&$n("reactNamespace",la.Invalid_value_for_reactNamespace_0_is_not_a_valid_identifier,P.reactNamespace),P.jsxFragmentFactory&&(P.jsxFactory||Wn(la.Option_0_cannot_be_specified_without_specifying_option_1,"jsxFragmentFactory","jsxFactory"),4!==P.jsx&&5!==P.jsx||Wn(la.Option_0_cannot_be_specified_when_option_jsx_is_1,"jsxFragmentFactory",aO.get(""+P.jsx)),jI(P.jsxFragmentFactory,t)||$n("jsxFragmentFactory",la.Invalid_value_for_jsxFragmentFactory_0_is_not_a_valid_identifier_or_qualified_name,P.jsxFragmentFactory)),P.reactNamespace&&(4!==P.jsx&&5!==P.jsx||Wn(la.Option_0_cannot_be_specified_when_option_jsx_is_1,"reactNamespace",aO.get(""+P.jsx))),P.jsxImportSource&&2===P.jsx&&Wn(la.Option_0_cannot_be_specified_when_option_jsx_is_1,"jsxImportSource",aO.get(""+P.jsx));const r=yk(P);P.verbatimModuleSyntax&&(2!==r&&3!==r&&4!==r||Wn(la.Option_verbatimModuleSyntax_cannot_be_used_when_module_is_set_to_UMD_AMD_or_System,"verbatimModuleSyntax")),P.allowImportingTsExtensions&&!(P.noEmit||P.emitDeclarationOnly||P.rewriteRelativeImportExtensions)&&$n("allowImportingTsExtensions",la.Option_allowImportingTsExtensions_can_only_be_used_when_either_noEmit_or_emitDeclarationOnly_is_set);const i=vk(P);if(P.resolvePackageJsonExports&&!Rk(i)&&Wn(la.Option_0_can_only_be_used_when_moduleResolution_is_set_to_node16_nodenext_or_bundler,"resolvePackageJsonExports"),P.resolvePackageJsonImports&&!Rk(i)&&Wn(la.Option_0_can_only_be_used_when_moduleResolution_is_set_to_node16_nodenext_or_bundler,"resolvePackageJsonImports"),P.customConditions&&!Rk(i)&&Wn(la.Option_0_can_only_be_used_when_moduleResolution_is_set_to_node16_nodenext_or_bundler,"customConditions"),100!==i||Ik(r)||200===r||$n("moduleResolution",la.Option_0_can_only_be_used_when_module_is_set_to_preserve_or_to_es2015_or_later,"bundler"),fi[r]&&100<=r&&r<=199&&!(3<=i&&i<=99)){const e=fi[r];$n("moduleResolution",la.Option_moduleResolution_must_be_set_to_0_or_left_unspecified_when_option_module_is_set_to_1,e,e)}else if(li[i]&&3<=i&&i<=99&&!(100<=r&&r<=199)){const e=li[i];$n("module",la.Option_module_must_be_set_to_0_when_option_moduleResolution_is_set_to_1,e,e)}if(!P.noEmit&&!P.suppressOutputPathCheck){const e=jt(),t=new Set;Fq(e,(e=>{P.emitDeclarationOnly||o(e.jsFilePath,t),o(e.declarationFilePath,t)}))}function o(e,t){if(e){const n=Et(e);if(qe.has(n)){let t;P.configFilePath||(t=Yx(void 0,la.Adding_a_tsconfig_json_file_will_help_organize_projects_that_contain_both_TypeScript_and_JavaScript_files_Learn_more_at_https_Colon_Slash_Slashaka_ms_Slashtsconfig)),t=Yx(t,la.Cannot_write_file_0_because_it_would_overwrite_input_file,e),er(e,Qx(t))}const r=ye.useCaseSensitiveFileNames()?n:_t(n);t.has(r)?er(e,Xx(la.Cannot_write_file_0_because_it_would_be_overwritten_by_multiple_input_files,e)):t.add(r)}}}(),tr("afterProgram"),nr("Program","beforeProgram","afterProgram"),null==(D=Hn)||D.pop(),ut;function pt(){return Te&&(null==ee||ee.forEach((e=>{switch(e.kind){case 1:return Se.add(Rn(e.file&&Vt(e.file),e.fileProcessingReason,e.diagnostic,e.args||l));case 0:return Se.add(function({reason:e}){const{file:t,pos:n,end:r}=fV(ut,e),i=_V(t.libReferenceDirectives[e.index]),o=Lt(Mt(Xt(i,"lib."),".d.ts"),cO,st);return Kx(t,un.checkDefined(n),un.checkDefined(r)-n,o?la.Cannot_find_lib_definition_for_0_Did_you_mean_1:la.Cannot_find_lib_definition_for_0,i,o)}(e));case 2:return e.diagnostics.forEach((e=>Se.add(e)));default:un.assertNever(e)}})),Te.forEach((({file:e,diagnostic:t,args:n})=>Se.add(Rn(e,void 0,t,n)))),Te=void 0,X=void 0,Q=void 0),Se}function ft(e,t,n){var r;return null==(r=null==se?void 0:se.get(e.path))?void 0:r.get(t,n)}function mt(e,t,n){var r;return null==(r=null==le?void 0:le.get(e.path))?void 0:r.get(t,n)}function yt(e,t){xt(se,e,t)}function bt(e,t){xt(le,e,t)}function xt(e,t,n){var r;n?null==(r=null==e?void 0:e.get(n.path))||r.forEach(((e,r,i)=>t(e,r,i,n.path))):null==e||e.forEach(((e,n)=>e.forEach(((e,r,i)=>t(e,r,i,n)))))}function kt(){return de||(de=new Map,yt((({resolvedModule:e})=>{(null==e?void 0:e.packageId)&&de.set(e.packageId.name,".d.ts"===e.extension||!!de.get(e.packageId.name))})),de)}function St(e){var t;(null==(t=e.resolutionDiagnostics)?void 0:t.length)&&(ee??(ee=[])).push({kind:2,diagnostics:e.resolutionDiagnostics})}function Tt(e,t,n,r){if(ye.resolveModuleNameLiterals||!ye.resolveModuleNames)return St(n);if(!Ae||Ts(t))return;const i=Do(Bo(e.originalFileName,Ce)),o=Nt(e),a=Ae.getFromNonRelativeNameCache(t,r,i,o);a&&St(a)}function Ct(e,t,n){var r,i;const o=Bo(t.originalFileName,Ce),a=Nt(t);null==(r=Hn)||r.push(Hn.Phase.Program,"resolveModuleNamesWorker",{containingFileName:o}),tr("beforeResolveModule");const s=Ie(e,o,a,P,t,n);return tr("afterResolveModule"),nr("ResolveModule","beforeResolveModule","afterResolveModule"),null==(i=Hn)||i.pop(),s}function wt(e,t,n){var r,i;const o=Ze(t)?void 0:t,a=Ze(t)?t:Bo(t.originalFileName,Ce),s=o&&Nt(o);null==(r=Hn)||r.push(Hn.Phase.Program,"resolveTypeReferenceDirectiveNamesWorker",{containingFileName:a}),tr("beforeResolveTypeReference");const c=Le(e,a,s,P,o,n);return tr("afterResolveTypeReference"),nr("ResolveTypeReference","beforeResolveTypeReference","afterResolveTypeReference"),null==(i=Hn)||i.pop(),c}function Nt(e){const t=xn(e.originalFileName);if(t||!$I(e.originalFileName))return t;const n=Dt(e.path);if(n)return n;if(!ye.realpath||!P.preserveSymlinks||!e.originalFileName.includes(PR))return;const r=Et(ye.realpath(e.originalFileName));return r===e.path?void 0:Dt(r)}function Dt(e){const t=Sn(e);return Ze(t)?xn(t):t?kn((t=>{const n=t.commandLine.options.outFile;if(n)return Et(n)===e?t:void 0})):void 0}function Ft(e){if(Zo(ke,e.fileName,!1)){const t=Fo(e.fileName);if("lib.d.ts"===t||"lib.es6.d.ts"===t)return 0;const n=Mt(Xt(t,"lib."),".d.ts"),r=cO.indexOf(n);if(-1!==r)return r+1}return cO.length+2}function Et(e){return qo(e,Ce,In)}function Pt(){if(void 0===V){const e=N(q,(e=>Gy(e,ut)));V=Uq(P,(()=>B(e,(e=>e.isDeclarationFile?void 0:e.fileName))),Ce,In,(t=>function(e,t){let n=!0;const r=ye.getCanonicalFileName(Bo(t,Ce));for(const i of e)i.isDeclarationFile||0!==ye.getCanonicalFileName(Bo(i.fileName,Ce)).indexOf(r)&&(Bn(i,la.File_0_is_not_under_rootDir_1_rootDir_is_expected_to_contain_all_source_files,[i.fileName,t]),n=!1);return n}(e,t)))}return V}function At(e,t){return Ot({entries:e,containingFile:t,containingSourceFile:t,redirectedReference:Nt(t),nameAndModeGetter:ZU,resolutionWorker:Ct,getResolutionFromOldProgram:(e,n)=>null==R?void 0:R.getResolvedModule(t,e,n),getResolved:cd,canReuseResolutionsInFile:()=>t===(null==R?void 0:R.getSourceFile(t.fileName))&&!Oe(t.path),resolveToOwnAmbientModule:!0})}function It(e,t){const n=Ze(t)?void 0:t;return Ot({entries:e,containingFile:t,containingSourceFile:n,redirectedReference:n&&Nt(n),nameAndModeGetter:nV,resolutionWorker:wt,getResolutionFromOldProgram:(e,t)=>{var r;return n?null==R?void 0:R.getResolvedTypeReferenceDirective(n,e,t):null==(r=null==R?void 0:R.getAutomaticTypeDirectiveResolutions())?void 0:r.get(e,t)},getResolved:ld,canReuseResolutionsInFile:()=>n?n===(null==R?void 0:R.getSourceFile(n.fileName))&&!Oe(n.path):!Oe(Et(t))})}function Ot({entries:e,containingFile:t,containingSourceFile:n,redirectedReference:r,nameAndModeGetter:i,resolutionWorker:o,getResolutionFromOldProgram:a,getResolved:s,canReuseResolutionsInFile:c,resolveToOwnAmbientModule:_}){if(!e.length)return l;if(!(0!==lt||_&&n.ambientModuleNames.length))return o(e,t,void 0);let u,d,p,f;const m=c();for(let c=0;cp[d[t]]=e)),p):g}function jt(e){return{getCanonicalFileName:In,getCommonSourceDirectory:ut.getCommonSourceDirectory,getCompilerOptions:ut.getCompilerOptions,getCurrentDirectory:()=>Ce,getSourceFile:ut.getSourceFile,getSourceFileByPath:ut.getSourceFileByPath,getSourceFiles:ut.getSourceFiles,isSourceFileFromExternalLibrary:Jt,getResolvedProjectReferenceToRedirect:xn,getProjectReferenceRedirect:hn,isSourceOfProjectReferenceRedirect:Tn,getSymlinkCache:ir,writeFile:e||Rt,isEmitBlocked:qt,shouldTransformImportCall:lr,getEmitModuleFormatOfFile:cr,getDefaultResolutionModeForFile:sr,getModeForResolutionAtIndex:ar,readFile:e=>ye.readFile(e),fileExists:e=>{const t=Et(e);return!!Vt(t)||!Ue.has(t)&&ye.fileExists(e)},realpath:We(ye,ye.realpath),useCaseSensitiveFileNames:()=>ye.useCaseSensitiveFileNames(),getBuildInfo:()=>{var e;return null==(e=ut.getBuildInfo)?void 0:e.call(ut)},getSourceFileFromReference:(e,t)=>ut.getSourceFileFromReference(e,t),redirectTargetsMap:ze,getFileIncludeReasons:ut.getFileIncludeReasons,createHash:We(ye,ye.createHash),getModuleResolutionCache:()=>ut.getModuleResolutionCache(),trace:We(ye,ye.trace),getGlobalTypingsCacheLocation:ut.getGlobalTypingsCacheLocation}}function Rt(e,t,n,r,i,o){ye.writeFile(e,t,n,r,i,o)}function Bt(){return He}function Jt(e){return!!he.get(e.path)}function zt(){return W||(W=BB(ut))}function qt(e){return Fe.has(Et(e))}function Ut(e){return Vt(Et(e))}function Vt(e){return qe.get(e)||void 0}function Wt(e,t,n){return Cs(e?t(e,n):O(ut.getSourceFiles(),(e=>(n&&n.throwIfCancellationRequested(),t(e,n)))))}function $t(e){var t;if(cT(e,P,ut))return l;const n=pt().getDiagnostics(e.fileName);return(null==(t=e.commentDirectives)?void 0:t.length)?Zt(e,e.commentDirectives,n).diagnostics:n}function Ht(e){return Dm(e)?(e.additionalSyntacticDiagnostics||(e.additionalSyntacticDiagnostics=function(e){return Kt((()=>{const t=[];return n(e,e),AI(e,n,(function(e,n){if(NA(n)){const e=b(n.modifiers,aD);e&&t.push(i(e,la.Decorators_are_not_valid_here))}else if(iI(n)&&n.modifiers){const e=k(n.modifiers,aD);if(e>=0)if(oD(n)&&!P.experimentalDecorators)t.push(i(n.modifiers[e],la.Decorators_are_not_valid_here));else if(HF(n)){const r=k(n.modifiers,UN);if(r>=0){const o=k(n.modifiers,VN);if(e>r&&o>=0&&e=0&&e=0&&t.push(iT(i(n.modifiers[o],la.Decorators_may_not_appear_after_export_or_export_default_if_they_also_appear_before_export),i(n.modifiers[e],la.Decorator_used_before_export_here)))}}}}switch(n.kind){case 263:case 231:case 174:case 176:case 177:case 178:case 218:case 262:case 219:if(e===n.typeParameters)return t.push(r(e,la.Type_parameter_declarations_can_only_be_used_in_TypeScript_files)),"skip";case 243:if(e===n.modifiers)return function(e,n){for(const r of e)switch(r.kind){case 87:if(n)continue;case 125:case 123:case 124:case 148:case 138:case 128:case 164:case 103:case 147:t.push(i(r,la.The_0_modifier_can_only_be_used_in_TypeScript_files,Da(r.kind)))}}(n.modifiers,243===n.kind),"skip";break;case 172:if(e===n.modifiers){for(const n of e)Yl(n)&&126!==n.kind&&129!==n.kind&&t.push(i(n,la.The_0_modifier_can_only_be_used_in_TypeScript_files,Da(n.kind)));return"skip"}break;case 169:if(e===n.modifiers&&$(e,Yl))return t.push(r(e,la.Parameter_modifiers_can_only_be_used_in_TypeScript_files)),"skip";break;case 213:case 214:case 233:case 285:case 286:case 215:if(e===n.typeArguments)return t.push(r(e,la.Type_arguments_can_only_be_used_in_TypeScript_files)),"skip"}})),t;function n(e,n){switch(n.kind){case 169:case 172:case 174:if(n.questionToken===e)return t.push(i(e,la.The_0_modifier_can_only_be_used_in_TypeScript_files,"?")),"skip";case 173:case 176:case 177:case 178:case 218:case 262:case 219:case 260:if(n.type===e)return t.push(i(e,la.Type_annotations_can_only_be_used_in_TypeScript_files)),"skip"}switch(e.kind){case 273:if(e.isTypeOnly)return t.push(i(n,la._0_declarations_can_only_be_used_in_TypeScript_files,"import type")),"skip";break;case 278:if(e.isTypeOnly)return t.push(i(e,la._0_declarations_can_only_be_used_in_TypeScript_files,"export type")),"skip";break;case 276:case 281:if(e.isTypeOnly)return t.push(i(e,la._0_declarations_can_only_be_used_in_TypeScript_files,dE(e)?"import...type":"export...type")),"skip";break;case 271:return t.push(i(e,la.import_can_only_be_used_in_TypeScript_files)),"skip";case 277:if(e.isExportEquals)return t.push(i(e,la.export_can_only_be_used_in_TypeScript_files)),"skip";break;case 298:if(119===e.token)return t.push(i(e,la.implements_clauses_can_only_be_used_in_TypeScript_files)),"skip";break;case 264:const r=Da(120);return un.assertIsDefined(r),t.push(i(e,la._0_declarations_can_only_be_used_in_TypeScript_files,r)),"skip";case 267:const o=32&e.flags?Da(145):Da(144);return un.assertIsDefined(o),t.push(i(e,la._0_declarations_can_only_be_used_in_TypeScript_files,o)),"skip";case 265:return t.push(i(e,la.Type_aliases_can_only_be_used_in_TypeScript_files)),"skip";case 176:case 174:case 262:return e.body?void 0:(t.push(i(e,la.Signature_declarations_can_only_be_used_in_TypeScript_files)),"skip");case 266:const a=un.checkDefined(Da(94));return t.push(i(e,la._0_declarations_can_only_be_used_in_TypeScript_files,a)),"skip";case 235:return t.push(i(e,la.Non_null_assertions_can_only_be_used_in_TypeScript_files)),"skip";case 234:return t.push(i(e.type,la.Type_assertion_expressions_can_only_be_used_in_TypeScript_files)),"skip";case 238:return t.push(i(e.type,la.Type_satisfaction_expressions_can_only_be_used_in_TypeScript_files)),"skip";case 216:un.fail()}}function r(t,n,...r){const i=t.pos;return Kx(e,i,t.end-i,n,...r)}function i(t,n,...r){return Mp(e,t,n,...r)}}))}(e)),K(e.additionalSyntacticDiagnostics,e.parseDiagnostics)):e.parseDiagnostics}function Kt(e){try{return e()}catch(e){throw e instanceof Cr&&(W=void 0),e}}function Qt(e,t,n){if(n)return Yt(e,t,n);let r=null==Y?void 0:Y.get(e.path);return r||(Y??(Y=new Map)).set(e.path,r=Yt(e,t)),r}function Yt(e,t,n){return Kt((()=>{if(cT(e,P,ut))return l;const r=zt();un.assert(!!e.bindDiagnostics);const i=1===e.scriptKind||2===e.scriptKind,o=vd(e,P.checkJs),a=i&&eT(e,P);let s=e.bindDiagnostics,c=r.getDiagnostics(e,t,n);return o&&(s=N(s,(e=>vV.has(e.code))),c=N(c,(e=>vV.has(e.code)))),function(e,t,n,...r){var i;const o=I(r);if(!t||!(null==(i=e.commentDirectives)?void 0:i.length))return o;const{diagnostics:a,directives:s}=Zt(e,e.commentDirectives,o);if(n)return a;for(const t of s.getUnusedExpectations())a.push(Wp(e,t.range,la.Unused_ts_expect_error_directive));return a}(e,!o,!!n,s,c,a?e.jsDocDiagnostics:void 0)}))}function Zt(e,t,n){const r=Md(e,t),i=n.filter((e=>-1===function(e,t){const{file:n,start:r}=e;if(!n)return-1;const i=ja(n);let o=Ra(i,r).line-1;for(;o>=0;){if(t.markUsed(o))return o;const e=n.text.slice(i[o],i[o+1]).trim();if(""!==e&&!/^\s*\/\/.*$/.test(e))return-1;o--}return-1}(e,r)));return{diagnostics:i,directives:r}}function en(e,t){return e.isDeclarationFile?l:function(e,t){let n=null==Z?void 0:Z.get(e.path);return n||(Z??(Z=new Map)).set(e.path,n=function(e,t){return Kt((()=>{const n=zt().getEmitResolver(e,t);return _q(jt(rt),n,e)||l}))}(e,t)),n}(e,t)}function tn(e,t,n,r){cn(Jo(e),t,n,void 0,r)}function nn(e,t){return e.fileName===t.fileName}function rn(e,t){return 80===e.kind?80===t.kind&&e.escapedText===t.escapedText:11===t.kind&&e.text===t.text}function on(e,t){const n=XC.createStringLiteral(e),r=XC.createImportDeclaration(void 0,void 0,n);return ow(r,2),wT(n,r),wT(r,t),n.flags&=-17,r.flags&=-17,n}function an(e){if(e.imports)return;const t=Dm(e),n=MI(e);let r,i,o;if(t||!e.isDeclarationFile&&(xk(P)||MI(e))){P.importHelpers&&(r=[on(qu,e)]);const t=Hk($k(P,e),P);t&&(r||(r=[])).push(on(t,e))}for(const t of e.statements)a(t,!1);return(4194304&e.flags||t)&&wC(e,!0,!0,((e,t)=>{NT(e,!1),r=ie(r,t)})),e.imports=r||l,e.moduleAugmentations=i||l,void(e.ambientModuleNames=o||l);function a(t,s){if(wp(t)){const n=xg(t);!(n&&TN(n)&&n.text)||s&&Ts(n.text)||(NT(t,!1),r=ie(r,n),Be||0!==me||e.isDeclarationFile||(Gt(n.text,"node:")&&!TC.has(n.text)?Be=!0:void 0===Be&&SC.has(n.text)&&(Be=!1)))}else if(QF(t)&&ap(t)&&(s||wv(t,128)||e.isDeclarationFile)){t.name.parent=t;const r=zh(t.name);if(n||s&&!Ts(r))(i||(i=[])).push(t.name);else if(!s){e.isDeclarationFile&&(o||(o=[])).push(r);const n=t.body;if(n)for(const e of n.statements)a(e,!0)}}}}function sn(e,t,n,r){if(xo(e)){const i=ye.getCanonicalFileName(e);if(!P.allowNonTsExtensions&&!d(I(Ne),(e=>ko(i,e))))return void(n&&(AS(i)?n(la.File_0_is_a_JavaScript_file_Did_you_mean_to_enable_the_allowJs_option,e):n(la.File_0_has_an_unsupported_extension_The_only_supported_extensions_are_1,e,"'"+I(we).join("', '")+"'")));const o=t(e);if(n)if(o)dV(r)&&i===ye.getCanonicalFileName(Vt(r.file).fileName)&&n(la.A_file_cannot_have_a_reference_to_itself);else{const t=hn(e);t?n(la.Output_file_0_has_not_been_built_from_source_file_1,t,e):n(la.File_0_not_found,e)}return o}{const r=P.allowNonTsExtensions&&t(e);if(r)return r;if(n&&P.allowNonTsExtensions)return void n(la.File_0_not_found,e);const i=d(we[0],(n=>t(e+n)));return n&&!i&&n(la.Could_not_resolve_the_path_0_with_the_extensions_Colon_1,e,"'"+I(we).join("', '")+"'"),i}}function cn(e,t,n,r,i){sn(e,(e=>dn(e,t,n,i,r)),((e,...t)=>Mn(void 0,i,e,t)),i)}function ln(e,t){return cn(e,!1,!1,void 0,t)}function _n(e,t,n){!dV(n)&&$(pe.get(t.path),dV)?Mn(t,n,la.Already_included_file_name_0_differs_from_file_name_1_only_in_casing,[t.fileName,e]):Mn(t,n,la.File_name_0_differs_from_already_included_file_name_1_only_in_casing,[e,t.fileName])}function dn(e,t,n,r,i){var o,a;null==(o=Hn)||o.push(Hn.Phase.Program,"findSourceFile",{fileName:e,isDefaultLib:t||void 0,fileIncludeKind:wr[r.kind]});const s=function(e,t,n,r,i){var o;const a=Et(e);if(Ye){let o=Sn(a);if(!o&&ye.realpath&&P.preserveSymlinks&&$I(e)&&e.includes(PR)){const t=Et(ye.realpath(e));t!==a&&(o=Sn(t))}if(o){const s=Ze(o)?dn(o,t,n,r,i):void 0;return s&&mn(s,a,e,void 0),s}}const s=e;if(qe.has(a)){const n=qe.get(a),i=fn(n||void 0,r,!0);if(n&&i&&!1!==P.forceConsistentCasingInFileNames){const t=n.fileName;Et(t)!==Et(e)&&(e=hn(e)||e),zo(t,Ce)!==zo(e,Ce)&&_n(e,n,r)}return n&&he.get(n.path)&&0===me?(he.set(n.path,!1),P.noResolve||(wn(n,t),Nn(n)),P.noLib||An(n),ge.set(n.path,!1),On(n)):n&&ge.get(n.path)&&meMn(void 0,r,la.Cannot_read_file_0_Colon_1,[e,t])),ct);if(i){const t=pd(i),n=Me.get(t);if(n){const t=function(e,t,n,r,i,o,a){var s;const c=aI.createRedirectedSourceFile({redirectTarget:e,unredirected:t});return c.fileName=n,c.path=r,c.resolvedPath=i,c.originalFileName=o,c.packageJsonLocations=(null==(s=a.packageJsonLocations)?void 0:s.length)?a.packageJsonLocations:void 0,c.packageJsonScope=a.packageJsonScope,he.set(r,me>0),c}(n,_,e,a,Et(e),s,l);return ze.add(n.path,e),mn(t,a,e,c),fn(t,r,!1),Je.set(a,dd(i)),z.push(t),t}_&&(Me.set(t,_),Je.set(a,dd(i)))}if(mn(_,a,e,c),_){if(he.set(a,me>0),_.fileName=e,_.path=a,_.resolvedPath=Et(e),_.originalFileName=s,_.packageJsonLocations=(null==(o=l.packageJsonLocations)?void 0:o.length)?l.packageJsonLocations:void 0,_.packageJsonScope=l.packageJsonScope,fn(_,r,!1),ye.useCaseSensitiveFileNames()){const t=_t(a),n=Ve.get(t);n?_n(e,n,r):Ve.set(t,_)}be=be||_.hasNoDefaultLib&&!n,P.noResolve||(wn(_,t),Nn(_)),P.noLib||An(_),On(_),t?J.push(_):z.push(_),(G??(G=new Set)).add(_.path)}return _}(e,t,n,r,i);return null==(a=Hn)||a.pop(),s}function pn(e,t,n,r){const i=yV(Bo(e,Ce),null==t?void 0:t.getPackageJsonInfoCache(),n,r),o=hk(r),a=dk(r);return"object"==typeof i?{...i,languageVersion:o,setExternalModuleIndicator:a,jsDocParsingMode:n.jsDocParsingMode}:{languageVersion:o,impliedNodeFormat:i,setExternalModuleIndicator:a,jsDocParsingMode:n.jsDocParsingMode}}function fn(e,t,n){return!(!e||n&&dV(t)&&(null==G?void 0:G.has(t.file))||(pe.add(e.path,t),0))}function mn(e,t,n,r){r?(gn(n,r,e),gn(n,t,e||!1)):gn(n,t,e)}function gn(e,t,n){qe.set(t,n),void 0!==n?Ue.delete(t):Ue.set(t,e)}function hn(e){const t=yn(e);return t&&vn(t,e)}function yn(e){if(He&&He.length&&!$I(e)&&!ko(e,".json"))return xn(e)}function vn(e,t){const n=e.commandLine.options.outFile;return n?VS(n,".d.ts"):jq(t,e.commandLine,!ye.useCaseSensitiveFileNames())}function xn(e){void 0===Ge&&(Ge=new Map,kn((e=>{Et(P.configFilePath)!==e.sourceFile.path&&e.commandLine.fileNames.forEach((t=>Ge.set(Et(t),e.sourceFile.path)))})));const t=Ge.get(Et(e));return t&&Cn(t)}function kn(e){return oV(He,e)}function Sn(e){if($I(e))return void 0===Xe&&(Xe=new Map,kn((e=>{const t=e.commandLine.options.outFile;if(t){const e=VS(t,".d.ts");Xe.set(Et(e),!0)}else{const t=dt((()=>Vq(e.commandLine,!ye.useCaseSensitiveFileNames())));d(e.commandLine.fileNames,(n=>{if(!$I(n)&&!ko(n,".json")){const r=jq(n,e.commandLine,!ye.useCaseSensitiveFileNames(),t);Xe.set(Et(r),n)}}))}}))),Xe.get(e)}function Tn(e){return Ye&&!!xn(e)}function Cn(e){if(Ke)return Ke.get(e)||void 0}function wn(e,t){d(e.referencedFiles,((n,r)=>{cn(xU(n.fileName,e.fileName),t,!1,void 0,{kind:4,file:e.path,index:r})}))}function Nn(e){const t=e.typeReferenceDirectives;if(!t.length)return;const n=(null==ue?void 0:ue.get(e.path))||It(t,e),r=uR();(le??(le=new Map)).set(e.path,r);for(let i=0;i{const r=uV(t);r?tn(En(r),!0,!0,{kind:7,file:e.path,index:n}):(ee||(ee=[])).push({kind:0,reason:{kind:7,file:e.path,index:n}})}))}function In(e){return ye.getCanonicalFileName(e)}function On(e){if(an(e),e.imports.length||e.moduleAugmentations.length){const t=PV(e),n=(null==ce?void 0:ce.get(e.path))||At(t,e);un.assert(n.length===t.length);const r=Dn(e),i=uR();(se??(se=new Map)).set(e.path,i);for(let o=0;ofe,f=d&&!EV(r,a,e)&&!r.noResolve&&o{l?void 0===i?n(r,i,o,la.Option_0_has_been_removed_Please_remove_it_from_your_configuration,r):n(r,i,o,la.Option_0_1_has_been_removed_Please_remove_it_from_your_configuration,r,i):void 0===i?n(r,i,o,la.Option_0_is_deprecated_and_will_stop_functioning_in_TypeScript_1_Specify_compilerOption_ignoreDeprecations_Colon_2_to_silence_this_error,r,t,e):n(r,i,o,la.Option_0_1_is_deprecated_and_will_stop_functioning_in_TypeScript_2_Specify_compilerOption_ignoreDeprecations_Colon_3_to_silence_this_error,r,i,t,e)}))}function Rn(e,t,n,r){let i;const o=e&&pe.get(e.path);let a,s,c,_,u,d=dV(t)?t:void 0,p=e&&(null==X?void 0:X.get(e.path));p?(p.fileIncludeReasonDetails?(i=new Set(o),null==o||o.forEach(h)):null==o||o.forEach(g),_=p.redirectInfo):(null==o||o.forEach(g),_=e&&r$(e,Dn(e))),t&&g(t);const f=(null==i?void 0:i.size)!==(null==o?void 0:o.length);d&&1===(null==i?void 0:i.size)&&(i=void 0),i&&p&&(p.details&&!f?u=Yx(p.details,n,...r||l):p.fileIncludeReasonDetails&&(f?a=y()?ie(p.fileIncludeReasonDetails.next.slice(0,o.length),a[0]):[...p.fileIncludeReasonDetails.next,a[0]]:y()?a=p.fileIncludeReasonDetails.next.slice(0,o.length):c=p.fileIncludeReasonDetails)),u||(c||(c=i&&Yx(a,la.The_file_is_in_the_program_because_Colon)),u=Yx(_?c?[c,..._]:_:c,n,...r||l)),e&&(p?(!p.fileIncludeReasonDetails||!f&&c)&&(p.fileIncludeReasonDetails=c):(X??(X=new Map)).set(e.path,p={fileIncludeReasonDetails:c,redirectInfo:_}),p.details||f||(p.details=u.next));const m=d&&fV(ut,d);return m&&pV(m)?qp(m.file,m.pos,m.end-m.pos,u,s):Qx(u,s);function g(e){(null==i?void 0:i.has(e))||((i??(i=new Set)).add(e),(a??(a=[])).push(a$(ut,e)),h(e))}function h(e){!d&&dV(e)?d=e:d!==e&&(s=ie(s,function(e){let t=null==Q?void 0:Q.get(e);return void 0===t&&(Q??(Q=new Map)).set(e,t=function(e){if(dV(e)){const t=fV(ut,e);let n;switch(e.kind){case 3:n=la.File_is_included_via_import_here;break;case 4:n=la.File_is_included_via_reference_here;break;case 5:n=la.File_is_included_via_type_library_reference_here;break;case 7:n=la.File_is_included_via_library_reference_here;break;default:un.assertNever(e)}return pV(t)?Kx(t.file,t.pos,t.end-t.pos,n):void 0}if(!P.configFile)return;let t,n;switch(e.kind){case 0:if(!P.configFile.configFileSpecs)return;const i=Bo(E[e.index],Ce),o=i$(ut,i);if(o){t=Wf(P.configFile,"files",o),n=la.File_is_matched_by_files_list_specified_here;break}const a=o$(ut,i);if(!a||!Ze(a))return;t=Wf(P.configFile,"include",a),n=la.File_is_matched_by_include_pattern_specified_here;break;case 1:case 2:const s=un.checkDefined(null==He?void 0:He[e.index]),c=aV(L,He,((e,t,n)=>e===s?{sourceFile:(null==t?void 0:t.sourceFile)||P.configFile,index:n}:void 0));if(!c)return;const{sourceFile:l,index:_}=c,u=$f(l,"references",(e=>WD(e.initializer)?e.initializer:void 0));return u&&u.elements.length>_?Mp(l,u.elements[_],2===e.kind?la.File_is_output_from_referenced_project_specified_here:la.File_is_source_from_referenced_project_specified_here):void 0;case 8:if(!P.types)return;t=Vn("types",e.typeReference),n=la.File_is_entry_point_of_type_library_specified_here;break;case 6:if(void 0!==e.index){t=Vn("lib",P.lib[e.index]),n=la.File_is_library_specified_here;break}const d=Bk(hk(P));t=d?(r=d,qn("target",(e=>TN(e.initializer)&&e.initializer.text===r?e.initializer:void 0))):void 0,n=la.File_is_default_library_for_target_specified_here;break;default:un.assertNever(e)}var r;return t&&Mp(P.configFile,t,n)}(e)??!1),t||void 0}(e)))}function y(){var e;return(null==(e=p.fileIncludeReasonDetails.next)?void 0:e.length)!==(null==o?void 0:o.length)}}function Mn(e,t,n,r){(ee||(ee=[])).push({kind:1,file:e&&e.path,fileProcessingReason:t,diagnostic:n,args:r})}function Bn(e,t,n){Te.push({file:e,diagnostic:t,args:n})}function Jn(e,t,n,...r){let i=!0;Un((o=>{$D(o.initializer)&&qf(o.initializer,e,(e=>{const o=e.initializer;WD(o)&&o.elements.length>t&&(Se.add(Mp(P.configFile,o.elements[t],n,...r)),i=!1)}))})),i&&Xn(n,...r)}function zn(e,t,n,...r){let i=!0;Un((o=>{$D(o.initializer)&&Zn(o.initializer,e,t,void 0,n,...r)&&(i=!1)})),i&&Xn(n,...r)}function qn(e,t){return qf(Qn(),e,t)}function Un(e){return qn("paths",e)}function Vn(e,t){const n=Qn();return n&&Uf(n,e,t)}function Wn(e,t,n,r){Gn(!0,t,n,e,t,n,r)}function $n(e,t,...n){Gn(!1,e,void 0,t,...n)}function Kn(e,t,n,...r){const i=$f(e||P.configFile,"references",(e=>WD(e.initializer)?e.initializer:void 0));i&&i.elements.length>t?Se.add(Mp(e||P.configFile,i.elements[t],n,...r)):Se.add(Xx(n,...r))}function Gn(e,t,n,r,...i){const o=Qn();(!o||!Zn(o,e,t,n,r,...i))&&Xn(r,...i)}function Xn(e,...t){const n=Yn();n?"messageText"in e?Se.add(Bp(P.configFile,n.name,e)):Se.add(Mp(P.configFile,n.name,e,...t)):"messageText"in e?Se.add(Qx(e)):Se.add(Xx(e,...t))}function Qn(){if(void 0===Ee){const e=Yn();Ee=e&&tt(e.initializer,$D)||!1}return Ee||void 0}function Yn(){return void 0===Pe&&(Pe=qf(Vf(P.configFile),"compilerOptions",st)||!1),Pe||void 0}function Zn(e,t,n,r,i,...o){let a=!1;return qf(e,n,(e=>{"messageText"in i?Se.add(Bp(P.configFile,t?e.name:e.initializer,i)):Se.add(Mp(P.configFile,t?e.name:e.initializer,i,...o)),a=!0}),r),a}function er(e,t){Fe.set(Et(e),!0),Se.add(t)}function rr(e,t){return 0===Yo(e,t,Ce,!ye.useCaseSensitiveFileNames())}function ir(){return ye.getSymlinkCache?ye.getSymlinkCache():(U||(U=Gk(Ce,In)),q&&!U.hasProcessedResolutions()&&U.setSymlinksFromResolutions(yt,bt,re),U)}function or(e,t){return KU(e,t,Dn(e))}function ar(e,t){return or(e,AV(e,t))}function sr(e){return TV(e,Dn(e))}function cr(e){return kV(e,Dn(e))}function lr(e){return xV(e,Dn(e))}function _r(e,t){return e.resolutionMode||sr(t)}}function xV(e,t){const n=yk(t);return!(100<=n&&n<=199||200===n)&&kV(e,t)<5}function kV(e,t){return SV(e,t)??yk(t)}function SV(e,t){var n,r;const i=yk(t);return 100<=i&&i<=199?e.impliedNodeFormat:1!==e.impliedNodeFormat||"commonjs"!==(null==(n=e.packageJsonScope)?void 0:n.contents.packageJsonContent.type)&&!So(e.fileName,[".cjs",".cts"])?99!==e.impliedNodeFormat||"module"!==(null==(r=e.packageJsonScope)?void 0:r.contents.packageJsonContent.type)&&!So(e.fileName,[".mjs",".mts"])?void 0:99:1}function TV(e,t){return pk(t)?SV(e,t):void 0}var CV={diagnostics:l,sourceMaps:void 0,emittedFiles:void 0,emitSkipped:!0};function wV(e,t,n,r){const i=e.getCompilerOptions();if(i.noEmit)return t?CV:e.emitBuildInfo(n,r);if(!i.noEmitOnError)return;let o,a=[...e.getOptionsDiagnostics(r),...e.getSyntacticDiagnostics(t,r),...e.getGlobalDiagnostics(r),...e.getSemanticDiagnostics(t,r)];if(0===a.length&&Nk(e.getCompilerOptions())&&(a=e.getDeclarationDiagnostics(void 0,r)),a.length){if(!t){const t=e.emitBuildInfo(n,r);t.diagnostics&&(a=[...a,...t.diagnostics]),o=t.emittedFiles}return{diagnostics:a,sourceMaps:void 0,emittedFiles:o,emitSkipped:!0}}}function NV(e,t){return N(e,(e=>!e.skippedOn||!t[e.skippedOn]))}function DV(e,t=e){return{fileExists:e=>t.fileExists(e),readDirectory:(e,n,r,i,o)=>(un.assertIsDefined(t.readDirectory,"'CompilerHost.readDirectory' must be implemented to correctly process 'projectReferences'"),t.readDirectory(e,n,r,i,o)),readFile:e=>t.readFile(e),directoryExists:We(t,t.directoryExists),getDirectories:We(t,t.getDirectories),realpath:We(t,t.realpath),useCaseSensitiveFileNames:e.useCaseSensitiveFileNames(),getCurrentDirectory:()=>e.getCurrentDirectory(),onUnRecoverableConfigFileDiagnostic:e.onUnRecoverableConfigFileDiagnostic||at,trace:e.trace?t=>e.trace(t):void 0}}function FV(e){return E$(e.path)}function EV(e,{extension:t},{isDeclarationFile:n}){switch(t){case".ts":case".d.ts":case".mts":case".d.mts":case".cts":case".d.cts":return;case".tsx":return r();case".jsx":return r()||i();case".js":case".mjs":case".cjs":return i();case".json":return wk(e)?void 0:la.Module_0_was_resolved_to_1_but_resolveJsonModule_is_not_used;default:return n||e.allowArbitraryExtensions?void 0:la.Module_0_was_resolved_to_1_but_allowArbitraryExtensions_is_not_set}function r(){return e.jsx?void 0:la.Module_0_was_resolved_to_1_but_jsx_is_not_set}function i(){return Pk(e)||!Mk(e,"noImplicitAny")?void 0:la.Could_not_find_a_declaration_file_for_module_0_1_implicitly_has_an_any_type}}function PV({imports:e,moduleAugmentations:t}){const n=e.map((e=>e));for(const e of t)11===e.kind&&n.push(e);return n}function AV({imports:e,moduleAugmentations:t},n){if(n(e[e.ComputedDts=0]="ComputedDts",e[e.StoredSignatureAtEmit=1]="StoredSignatureAtEmit",e[e.UsedVersion=2]="UsedVersion",e))(LV||{});(e=>{function t(){return function(e,t,r){const i={getKeys:e=>t.get(e),getValues:t=>e.get(t),keys:()=>e.keys(),size:()=>e.size,deleteKey:i=>{(r||(r=new Set)).add(i);const o=e.get(i);return!!o&&(o.forEach((e=>n(t,e,i))),e.delete(i),!0)},set:(o,a)=>{null==r||r.delete(o);const s=e.get(o);return e.set(o,a),null==s||s.forEach((e=>{a.has(e)||n(t,e,o)})),a.forEach((e=>{(null==s?void 0:s.has(e))||function(e,t,n){let r=e.get(t);r||(r=new Set,e.set(t,r)),r.add(n)}(t,e,o)})),i}};return i}(new Map,new Map,void 0)}function n(e,t,n){const r=e.get(t);return!!(null==r?void 0:r.delete(n))&&(r.size||e.delete(t),!0)}function r(e,t){const n=e.getSymbolAtLocation(t);return n&&function(e){return B(e.declarations,(e=>{var t;return null==(t=hd(e))?void 0:t.resolvedPath}))}(n)}function i(e,t,n,r){return qo(e.getProjectReferenceRedirect(t)||t,n,r)}function o(e,t,n){let o;if(t.imports&&t.imports.length>0){const n=e.getTypeChecker();for(const e of t.imports){const t=r(n,e);null==t||t.forEach(c)}}const a=Do(t.resolvedPath);if(t.referencedFiles&&t.referencedFiles.length>0)for(const r of t.referencedFiles)c(i(e,r.fileName,a,n));if(e.forEachResolvedTypeReferenceDirective((({resolvedTypeReferenceDirective:t})=>{if(!t)return;const r=t.resolvedFileName;c(i(e,r,a,n))}),t),t.moduleAugmentations.length){const n=e.getTypeChecker();for(const e of t.moduleAugmentations){if(!TN(e))continue;const t=n.getSymbolAtLocation(e);t&&s(t)}}for(const t of e.getTypeChecker().getAmbientModules())t.declarations&&t.declarations.length>1&&s(t);return o;function s(e){if(e.declarations)for(const n of e.declarations){const e=hd(n);e&&e!==t&&c(e.resolvedPath)}}function c(e){(o||(o=new Set)).add(e)}}function a(e,t){return t&&!t.referencedMap==!e}function s(e){return 0===e.module||e.outFile?void 0:t()}function c(e,t,n,r,i){const o=t.getSourceFileByPath(n);return o?u(e,t,o,r,i)?(e.referencedMap?h:g)(e,t,o,r,i):[o]:l}function _(e,t,n,r,i){e.emit(t,((n,o,a,s,c,l)=>{un.assert($I(n),`File extension for signature expected to be dts: Got:: ${n}`),i(pW(e,t,o,r,l),c)}),n,2,void 0,!0)}function u(e,t,n,r,i,o=e.useFileVersionAsSignature){var a;if(null==(a=e.hasCalledUpdateShapeSignature)?void 0:a.has(n.resolvedPath))return!1;const s=e.fileInfos.get(n.resolvedPath),c=s.signature;let l;return n.isDeclarationFile||o||_(t,n,r,i,(t=>{l=t,i.storeSignatureInfo&&(e.signatureInfo??(e.signatureInfo=new Map)).set(n.resolvedPath,0)})),void 0===l&&(l=n.version,i.storeSignatureInfo&&(e.signatureInfo??(e.signatureInfo=new Map)).set(n.resolvedPath,2)),(e.oldSignatures||(e.oldSignatures=new Map)).set(n.resolvedPath,c||!1),(e.hasCalledUpdateShapeSignature||(e.hasCalledUpdateShapeSignature=new Set)).add(n.resolvedPath),s.signature=l,l!==c}function d(e,t){if(!e.allFileNames){const n=t.getSourceFiles();e.allFileNames=n===l?l:n.map((e=>e.fileName))}return e.allFileNames}function p(e,t){const n=e.referencedMap.getKeys(t);return n?Oe(n.keys()):[]}function f(e){return function(e){return $(e.moduleAugmentations,(e=>up(e.parent)))}(e)||!Qp(e)&&!Yp(e)&&!function(e){for(const t of e.statements)if(!sp(t))return!1;return!0}(e)}function m(e,t,n){if(e.allFilesExcludingDefaultLibraryFile)return e.allFilesExcludingDefaultLibraryFile;let r;n&&i(n);for(const e of t.getSourceFiles())e!==n&&i(e);return e.allFilesExcludingDefaultLibraryFile=r||l,e.allFilesExcludingDefaultLibraryFile;function i(e){t.isSourceFileDefaultLibrary(e)||(r||(r=[])).push(e)}}function g(e,t,n){const r=t.getCompilerOptions();return r&&r.outFile?[n]:m(e,t,n)}function h(e,t,n,r,i){if(f(n))return m(e,t,n);const o=t.getCompilerOptions();if(o&&(xk(o)||o.outFile))return[n];const a=new Map;a.set(n.resolvedPath,n);const s=p(e,n.resolvedPath);for(;s.length>0;){const n=s.pop();if(!a.has(n)){const o=t.getSourceFileByPath(n);a.set(n,o),o&&u(e,t,o,r,i)&&s.push(...p(e,o.resolvedPath))}}return Oe(J(a.values(),(e=>e)))}e.createManyToManyPathMap=t,e.canReuseOldState=a,e.createReferencedMap=s,e.create=function(e,t,n){var r,i;const c=new Map,l=e.getCompilerOptions(),_=s(l),u=a(_,t);e.getTypeChecker();for(const n of e.getSourceFiles()){const a=un.checkDefined(n.version,"Program intended to be used with Builder should have source files with versions set"),s=u?null==(r=t.oldSignatures)?void 0:r.get(n.resolvedPath):void 0,d=void 0===s?u?null==(i=t.fileInfos.get(n.resolvedPath))?void 0:i.signature:void 0:s||void 0;if(_){const t=o(e,n,e.getCanonicalFileName);t&&_.set(n.resolvedPath,t)}c.set(n.resolvedPath,{version:a,signature:d,affectsGlobalScope:l.outFile?void 0:f(n)||void 0,impliedFormat:n.impliedNodeFormat})}return{fileInfos:c,referencedMap:_,useFileVersionAsSignature:!n&&!u}},e.releaseCache=function(e){e.allFilesExcludingDefaultLibraryFile=void 0,e.allFileNames=void 0},e.getFilesAffectedBy=function(e,t,n,r,i){var o;const a=c(e,t,n,r,i);return null==(o=e.oldSignatures)||o.clear(),a},e.getFilesAffectedByWithOldState=c,e.updateSignatureOfFile=function(e,t,n){e.fileInfos.get(n).signature=t,(e.hasCalledUpdateShapeSignature||(e.hasCalledUpdateShapeSignature=new Set)).add(n)},e.computeDtsSignature=_,e.updateShapeSignature=u,e.getAllDependencies=function(e,t,n){if(t.getCompilerOptions().outFile)return d(e,t);if(!e.referencedMap||f(n))return d(e,t);const r=new Set,i=[n.resolvedPath];for(;i.length;){const t=i.pop();if(!r.has(t)){r.add(t);const n=e.referencedMap.getValues(t);if(n)for(const e of n.keys())i.push(e)}}return Oe(J(r.keys(),(e=>{var n;return(null==(n=t.getSourceFileByPath(e))?void 0:n.fileName)??e})))},e.getReferencedByPaths=p,e.getAllFilesExcludingDefaultLibraryFile=m})(OV||(OV={}));var jV=(e=>(e[e.None=0]="None",e[e.Js=1]="Js",e[e.JsMap=2]="JsMap",e[e.JsInlineMap=4]="JsInlineMap",e[e.DtsErrors=8]="DtsErrors",e[e.DtsEmit=16]="DtsEmit",e[e.DtsMap=32]="DtsMap",e[e.Dts=24]="Dts",e[e.AllJs=7]="AllJs",e[e.AllDtsEmit=48]="AllDtsEmit",e[e.AllDts=56]="AllDts",e[e.All=63]="All",e))(jV||{});function RV(e){return void 0!==e.program}function MV(e){let t=1;return e.sourceMap&&(t|=2),e.inlineSourceMap&&(t|=4),Nk(e)&&(t|=24),e.declarationMap&&(t|=32),e.emitDeclarationOnly&&(t&=56),t}function BV(e,t){const n=t&&(et(t)?t:MV(t)),r=et(e)?e:MV(e);if(n===r)return 0;if(!n||!r)return r;const i=n^r;let o=0;return 7&i&&(o=7&r),8&i&&(o|=8&r),48&i&&(o|=48&r),o}function JV(e,t,n){return!!e.declarationMap==!!t.declarationMap?n:Ze(n)?[n]:n[0]}function zV(e,t){return e.length?A(e,(e=>{if(Ze(e.messageText))return e;const n=qV(e.messageText,e.file,t,(e=>{var t;return null==(t=e.repopulateInfo)?void 0:t.call(e)}));return n===e.messageText?e:{...e,messageText:n}})):e}function qV(e,t,n,r){const i=r(e);if(!0===i)return{...ud(t),next:UV(e.next,t,n,r)};if(i)return{..._d(t,n,i.moduleReference,i.mode,i.packageName||i.moduleReference),next:UV(e.next,t,n,r)};const o=UV(e.next,t,n,r);return o===e.next?e:{...e,next:o}}function UV(e,t,n,r){return A(e,(e=>qV(e,t,n,r)))}function VV(e,t,n){if(!e.length)return l;let r;return e.map((e=>{const r=WV(e,t,n,i);r.reportsUnnecessary=e.reportsUnnecessary,r.reportsDeprecated=e.reportDeprecated,r.source=e.source,r.skippedOn=e.skippedOn;const{relatedInformation:o}=e;return r.relatedInformation=o?o.length?o.map((e=>WV(e,t,n,i))):[]:void 0,r}));function i(e){return r??(r=Do(Bo(Eq(n.getCompilerOptions()),n.getCurrentDirectory()))),qo(e,r,n.getCanonicalFileName)}}function WV(e,t,n,r){const{file:i}=e,o=!1!==i?n.getSourceFileByPath(i?r(i):t):void 0;return{...e,file:o,messageText:Ze(e.messageText)?e.messageText:qV(e.messageText,o,n,(e=>e.info))}}function $V(e,t){un.assert(!t||!e.affectedFiles||e.affectedFiles[e.affectedFilesIndex-1]!==t||!e.semanticDiagnosticsPerFile.has(t.resolvedPath))}function HV(e,t,n){for(var r;;){const{affectedFiles:i}=e;if(i){const o=e.seenAffectedFiles;let a=e.affectedFilesIndex;for(;a{const i=n?55&t:7&t;i?e.affectedFilesPendingEmit.set(r,i):e.affectedFilesPendingEmit.delete(r)})),e.programEmitPending)){const t=n?55&e.programEmitPending:7&e.programEmitPending;e.programEmitPending=t||void 0}}function GV(e,t,n,r){let i=BV(e,t);return n&&(i&=56),r&&(i&=8),i}function XV(e){return e?8:56}function QV(e){if(!e.cleanedDiagnosticsOfLibFiles){e.cleanedDiagnosticsOfLibFiles=!0;const t=e.program.getCompilerOptions();d(e.program.getSourceFiles(),(n=>e.program.isSourceFileDefaultLibrary(n)&&!lT(n,t,e.program)&&eW(e,n.resolvedPath)))}}function YV(e,t,n,r){if(eW(e,t.resolvedPath),e.allFilesExcludingDefaultLibraryFile===e.affectedFiles)return QV(e),void OV.updateShapeSignature(e,e.program,t,n,r);e.compilerOptions.assumeChangesOnlyAffectDirectDependencies||function(e,t,n,r){var i,o;if(!e.referencedMap||!e.changedFilesSet.has(t.resolvedPath))return;if(!tW(e,t.resolvedPath))return;if(xk(e.compilerOptions)){const i=new Map;i.set(t.resolvedPath,!0);const o=OV.getReferencedByPaths(e,t.resolvedPath);for(;o.length>0;){const t=o.pop();if(!i.has(t)){if(i.set(t,!0),nW(e,t,!1,n,r))return;if(ZV(e,t,!1,n,r),tW(e,t)){const n=e.program.getSourceFileByPath(t);o.push(...OV.getReferencedByPaths(e,n.resolvedPath))}}}}const a=new Set,s=!!(null==(i=t.symbol)?void 0:i.exports)&&!!td(t.symbol.exports,(n=>{if(128&n.flags)return!0;const r=ix(n,e.program.getTypeChecker());return r!==n&&!!(128&r.flags)&&$(r.declarations,(e=>hd(e)===t))}));null==(o=e.referencedMap.getKeys(t.resolvedPath))||o.forEach((t=>{if(nW(e,t,s,n,r))return!0;const i=e.referencedMap.getKeys(t);return i&&nd(i,(t=>rW(e,t,s,a,n,r)))}))}(e,t,n,r)}function ZV(e,t,n,r,i){if(eW(e,t),!e.changedFilesSet.has(t)){const o=e.program.getSourceFileByPath(t);o&&(OV.updateShapeSignature(e,e.program,o,r,i,!0),n?mW(e,t,MV(e.compilerOptions)):Nk(e.compilerOptions)&&mW(e,t,e.compilerOptions.declarationMap?56:24))}}function eW(e,t){return!e.semanticDiagnosticsFromOldState||(e.semanticDiagnosticsFromOldState.delete(t),e.semanticDiagnosticsPerFile.delete(t),!e.semanticDiagnosticsFromOldState.size)}function tW(e,t){const n=un.checkDefined(e.oldSignatures).get(t)||void 0;return un.checkDefined(e.fileInfos.get(t)).signature!==n}function nW(e,t,n,r,i){var o;return!!(null==(o=e.fileInfos.get(t))?void 0:o.affectsGlobalScope)&&(OV.getAllFilesExcludingDefaultLibraryFile(e,e.program,void 0).forEach((t=>ZV(e,t.resolvedPath,n,r,i))),QV(e),!0)}function rW(e,t,n,r,i,o){var a;if(q(r,t)){if(nW(e,t,n,i,o))return!0;ZV(e,t,n,i,o),null==(a=e.referencedMap.getKeys(t))||a.forEach((t=>rW(e,t,n,r,i,o)))}}function iW(e,t,n,r){return e.compilerOptions.noCheck?l:K(function(e,t,n,r){r??(r=e.semanticDiagnosticsPerFile);const i=t.resolvedPath,o=r.get(i);if(o)return NV(o,e.compilerOptions);const a=e.program.getBindAndCheckDiagnostics(t,n);return r.set(i,a),e.buildInfoEmitPending=!0,NV(a,e.compilerOptions)}(e,t,n,r),e.program.getProgramDiagnostics(t))}function oW(e){var t;return!!(null==(t=e.options)?void 0:t.outFile)}function aW(e){return!!e.fileNames}function sW(e){void 0===e.hasErrors&&(Fk(e.compilerOptions)?e.hasErrors=!$(e.program.getSourceFiles(),(t=>{var n,r;const i=e.semanticDiagnosticsPerFile.get(t.resolvedPath);return void 0===i||!!i.length||!!(null==(r=null==(n=e.emitDiagnosticsPerFile)?void 0:n.get(t.resolvedPath))?void 0:r.length)}))&&(cW(e)||$(e.program.getSourceFiles(),(t=>!!e.program.getProgramDiagnostics(t).length))):e.hasErrors=$(e.program.getSourceFiles(),(t=>{var n,r;const i=e.semanticDiagnosticsPerFile.get(t.resolvedPath);return!!(null==i?void 0:i.length)||!!(null==(r=null==(n=e.emitDiagnosticsPerFile)?void 0:n.get(t.resolvedPath))?void 0:r.length)}))||cW(e))}function cW(e){return!!(e.program.getConfigFileParsingDiagnostics().length||e.program.getSyntacticDiagnostics().length||e.program.getOptionsDiagnostics().length||e.program.getGlobalDiagnostics().length)}function lW(e){return sW(e),e.buildInfoEmitPending??(e.buildInfoEmitPending=!!e.hasErrorsFromOldState!=!!e.hasErrors)}var _W=(e=>(e[e.SemanticDiagnosticsBuilderProgram=0]="SemanticDiagnosticsBuilderProgram",e[e.EmitAndSemanticDiagnosticsBuilderProgram=1]="EmitAndSemanticDiagnosticsBuilderProgram",e))(_W||{});function uW(e,t,n,r,i,o){let a,s,c;return void 0===e?(un.assert(void 0===t),a=n,c=r,un.assert(!!c),s=c.getProgram()):Qe(e)?(c=r,s=bV({rootNames:e,options:t,host:n,oldProgram:c&&c.getProgramOrUndefined(),configFileParsingDiagnostics:i,projectReferences:o}),a=n):(s=e,a=t,c=n,i=r),{host:a,newProgram:s,oldProgram:c,configFileParsingDiagnostics:i||l}}function dW(e,t){return void 0!==(null==t?void 0:t.sourceMapUrlPos)?e.substring(0,t.sourceMapUrlPos):e}function pW(e,t,n,r,i){var o;let a;return n=dW(n,i),(null==(o=null==i?void 0:i.diagnostics)?void 0:o.length)&&(n+=i.diagnostics.map((n=>`${function(n){return n.file.resolvedPath===t.resolvedPath?`(${n.start},${n.length})`:(void 0===a&&(a=Do(t.resolvedPath)),`${Wo(na(a,n.file.resolvedPath,e.getCanonicalFileName))}(${n.start},${n.length})`)}(n)}${si[n.category]}${n.code}: ${s(n.messageText)}`)).join("\n")),(r.createHash??Ri)(n);function s(e){return Ze(e)?e:void 0===e?"":e.next?e.messageText+e.next.map(s).join("\n"):e.messageText}}function fW(e,{newProgram:t,host:n,oldProgram:r,configFileParsingDiagnostics:i}){let o=r&&r.state;if(o&&t===o.program&&i===t.getConfigFileParsingDiagnostics())return t=void 0,o=void 0,r;const a=function(e,t){var n,r;const i=OV.create(e,t,!1);i.program=e;const o=e.getCompilerOptions();i.compilerOptions=o;const a=o.outFile;i.semanticDiagnosticsPerFile=new Map,a&&o.composite&&(null==t?void 0:t.outSignature)&&a===t.compilerOptions.outFile&&(i.outSignature=t.outSignature&&JV(o,t.compilerOptions,t.outSignature)),i.changedFilesSet=new Set,i.latestChangedDtsFile=o.composite?null==t?void 0:t.latestChangedDtsFile:void 0,i.checkPending=!!i.compilerOptions.noCheck||void 0;const s=OV.canReuseOldState(i.referencedMap,t),c=s?t.compilerOptions:void 0;let l=s&&!zk(o,c);const _=o.composite&&(null==t?void 0:t.emitSignatures)&&!a&&!Uk(o,t.compilerOptions);let u=!0;s?(null==(n=t.changedFilesSet)||n.forEach((e=>i.changedFilesSet.add(e))),!a&&(null==(r=t.affectedFilesPendingEmit)?void 0:r.size)&&(i.affectedFilesPendingEmit=new Map(t.affectedFilesPendingEmit),i.seenAffectedFiles=new Set),i.programEmitPending=t.programEmitPending,a&&i.changedFilesSet.size&&(l=!1,u=!1),i.hasErrorsFromOldState=t.hasErrors):i.buildInfoEmitPending=Fk(o);const d=i.referencedMap,p=s?t.referencedMap:void 0,f=l&&!o.skipLibCheck==!c.skipLibCheck,m=f&&!o.skipDefaultLibCheck==!c.skipDefaultLibCheck;if(i.fileInfos.forEach(((n,r)=>{var a;let c,h;if(!s||!(c=t.fileInfos.get(r))||c.version!==n.version||c.impliedFormat!==n.impliedFormat||(y=h=d&&d.getValues(r))!==(v=p&&p.getValues(r))&&(void 0===y||void 0===v||y.size!==v.size||nd(y,(e=>!v.has(e))))||h&&nd(h,(e=>!i.fileInfos.has(e)&&t.fileInfos.has(e))))g(r);else{const n=e.getSourceFileByPath(r),o=u?null==(a=t.emitDiagnosticsPerFile)?void 0:a.get(r):void 0;if(o&&(i.emitDiagnosticsPerFile??(i.emitDiagnosticsPerFile=new Map)).set(r,t.hasReusableDiagnostic?VV(o,r,e):zV(o,e)),l){if(n.isDeclarationFile&&!f)return;if(n.hasNoDefaultLib&&!m)return;const o=t.semanticDiagnosticsPerFile.get(r);o&&(i.semanticDiagnosticsPerFile.set(r,t.hasReusableDiagnostic?VV(o,r,e):zV(o,e)),(i.semanticDiagnosticsFromOldState??(i.semanticDiagnosticsFromOldState=new Set)).add(r))}}var y,v;if(_){const e=t.emitSignatures.get(r);e&&(i.emitSignatures??(i.emitSignatures=new Map)).set(r,JV(o,t.compilerOptions,e))}})),s&&td(t.fileInfos,((e,t)=>!(i.fileInfos.has(t)||!e.affectsGlobalScope&&(i.buildInfoEmitPending=!0,!a)))))OV.getAllFilesExcludingDefaultLibraryFile(i,e,void 0).forEach((e=>g(e.resolvedPath)));else if(c){const t=qk(o,c)?MV(o):BV(o,c);0!==t&&(a?i.changedFilesSet.size||(i.programEmitPending=i.programEmitPending?i.programEmitPending|t:t):(e.getSourceFiles().forEach((e=>{i.changedFilesSet.has(e.resolvedPath)||mW(i,e.resolvedPath,t)})),un.assert(!i.seenAffectedFiles||!i.seenAffectedFiles.size),i.seenAffectedFiles=i.seenAffectedFiles||new Set),i.buildInfoEmitPending=!0)}return s&&i.semanticDiagnosticsPerFile.size!==i.fileInfos.size&&t.checkPending!==i.checkPending&&(i.buildInfoEmitPending=!0),i;function g(e){i.changedFilesSet.add(e),a&&(l=!1,u=!1,i.semanticDiagnosticsFromOldState=void 0,i.semanticDiagnosticsPerFile.clear(),i.emitDiagnosticsPerFile=void 0),i.buildInfoEmitPending=!0,i.programEmitPending=void 0}}(t,o);t.getBuildInfo=()=>function(e){var t,n;const r=e.program.getCurrentDirectory(),i=Do(Bo(Eq(e.compilerOptions),r)),o=e.latestChangedDtsFile?b(e.latestChangedDtsFile):void 0,a=[],c=new Map,_=new Set(e.program.getRootFileNames().map((t=>qo(t,r,e.program.getCanonicalFileName))));if(sW(e),!Fk(e.compilerOptions))return{root:Oe(_,(e=>x(e))),errors:!!e.hasErrors||void 0,checkPending:e.checkPending,version:s};const u=[];if(e.compilerOptions.outFile){const t=Oe(e.fileInfos.entries(),(([e,t])=>(T(e,k(e)),t.impliedFormat?{version:t.version,impliedFormat:t.impliedFormat,signature:void 0,affectsGlobalScope:void 0}:t.version)));return{fileNames:a,fileInfos:t,root:u,resolvedRoot:C(),options:w(e.compilerOptions),semanticDiagnosticsPerFile:e.changedFilesSet.size?void 0:D(),emitDiagnosticsPerFile:F(),changeFileSet:O(),outSignature:e.outSignature,latestChangedDtsFile:o,pendingEmit:e.programEmitPending?e.programEmitPending!==MV(e.compilerOptions)&&e.programEmitPending:void 0,errors:!!e.hasErrors||void 0,checkPending:e.checkPending,version:s}}let p,f,m;const g=Oe(e.fileInfos.entries(),(([t,n])=>{var r,i;const o=k(t);T(t,o),un.assert(a[o-1]===x(t));const s=null==(r=e.oldSignatures)?void 0:r.get(t),c=void 0!==s?s||void 0:n.signature;if(e.compilerOptions.composite){const n=e.program.getSourceFileByPath(t);if(!Yp(n)&&Gy(n,e.program)){const n=null==(i=e.emitSignatures)?void 0:i.get(t);n!==c&&(m=ie(m,void 0===n?o:[o,Ze(n)||n[0]!==c?n:l]))}}return n.version===c?n.affectsGlobalScope||n.impliedFormat?{version:n.version,signature:void 0,affectsGlobalScope:n.affectsGlobalScope,impliedFormat:n.impliedFormat}:n.version:void 0!==c?void 0===s?n:{version:n.version,signature:c,affectsGlobalScope:n.affectsGlobalScope,impliedFormat:n.impliedFormat}:{version:n.version,signature:!1,affectsGlobalScope:n.affectsGlobalScope,impliedFormat:n.impliedFormat}}));let h;(null==(t=e.referencedMap)?void 0:t.size())&&(h=Oe(e.referencedMap.keys()).sort(Ct).map((t=>[k(t),S(e.referencedMap.getValues(t))])));const y=D();let v;if(null==(n=e.affectedFilesPendingEmit)?void 0:n.size){const t=MV(e.compilerOptions),n=new Set;for(const r of Oe(e.affectedFilesPendingEmit.keys()).sort(Ct))if(q(n,r)){const n=e.program.getSourceFileByPath(r);if(!n||!Gy(n,e.program))continue;const i=k(r),o=e.affectedFilesPendingEmit.get(r);v=ie(v,o===t?i:24===o?[i]:[i,o])}}return{fileNames:a,fileIdsList:p,fileInfos:g,root:u,resolvedRoot:C(),options:w(e.compilerOptions),referencedMap:h,semanticDiagnosticsPerFile:y,emitDiagnosticsPerFile:F(),changeFileSet:O(),affectedFilesPendingEmit:v,emitSignatures:m,latestChangedDtsFile:o,errors:!!e.hasErrors||void 0,checkPending:e.checkPending,version:s};function b(e){return x(Bo(e,r))}function x(t){return Wo(na(i,t,e.program.getCanonicalFileName))}function k(e){let t=c.get(e);return void 0===t&&(a.push(x(e)),c.set(e,t=a.length)),t}function S(e){const t=Oe(e.keys(),k).sort(vt),n=t.join();let r=null==f?void 0:f.get(n);return void 0===r&&(p=ie(p,t),(f??(f=new Map)).set(n,r=p.length)),r}function T(t,n){const r=e.program.getSourceFile(t);if(!e.program.getFileIncludeReasons().get(r.path).some((e=>0===e.kind)))return;if(!u.length)return u.push(n);const i=u[u.length-1],o=Qe(i);if(o&&i[1]===n-1)return i[1]=n;if(o||1===u.length||i!==n-1)return u.push(n);const a=u[u.length-2];return et(a)&&a===i-1?(u[u.length-2]=[a,n],u.length=u.length-1):u.push(n)}function C(){let t;return _.forEach((n=>{const r=e.program.getSourceFileByPath(n);r&&n!==r.resolvedPath&&(t=ie(t,[k(r.resolvedPath),k(n)]))})),t}function w(e){let t;const{optionsNameMap:n}=PO();for(const r of Ee(e).sort(Ct)){const i=n.get(r.toLowerCase());(null==i?void 0:i.affectsBuildInfo)&&((t||(t={}))[r]=N(i,e[r]))}return t}function N(e,t){if(e)if(un.assert("listOrElement"!==e.type),"list"===e.type){const n=t;if(e.element.isFilePath&&n.length)return n.map(b)}else if(e.isFilePath)return b(t);return t}function D(){let t;return e.fileInfos.forEach(((n,r)=>{const i=e.semanticDiagnosticsPerFile.get(r);i?i.length&&(t=ie(t,[k(r),E(i,r)])):e.changedFilesSet.has(r)||(t=ie(t,k(r)))})),t}function F(){var t;let n;if(!(null==(t=e.emitDiagnosticsPerFile)?void 0:t.size))return n;for(const t of Oe(e.emitDiagnosticsPerFile.keys()).sort(Ct)){const r=e.emitDiagnosticsPerFile.get(t);n=ie(n,[k(t),E(r,t)])}return n}function E(e,t){return un.assert(!!e.length),e.map((e=>{const n=P(e,t);n.reportsUnnecessary=e.reportsUnnecessary,n.reportDeprecated=e.reportsDeprecated,n.source=e.source,n.skippedOn=e.skippedOn;const{relatedInformation:r}=e;return n.relatedInformation=r?r.length?r.map((e=>P(e,t))):[]:void 0,n}))}function P(e,t){const{file:n}=e;return{...e,file:!!n&&(n.resolvedPath===t?void 0:x(n.resolvedPath)),messageText:Ze(e.messageText)?e.messageText:A(e.messageText)}}function A(e){if(e.repopulateInfo)return{info:e.repopulateInfo(),next:I(e.next)};const t=I(e.next);return t===e.next?e:{...e,next:t}}function I(e){return e&&d(e,((t,n)=>{const r=A(t);if(t===r)return;const i=n>0?e.slice(0,n-1):[];i.push(r);for(let t=n+1;t!!a.hasChangedEmitSignature,c.getAllDependencies=e=>OV.getAllDependencies(a,un.checkDefined(a.program),e),c.getSemanticDiagnostics=function(e,t){if(un.assert(RV(a)),$V(a,e),e)return iW(a,e,t);for(;;){const e=g(t);if(!e)break;if(e.affected===a.program)return e.result}let n;for(const e of a.program.getSourceFiles())n=se(n,iW(a,e,t));return a.checkPending&&!a.compilerOptions.noCheck&&(a.checkPending=void 0,a.buildInfoEmitPending=!0),n||l},c.getDeclarationDiagnostics=function(t,n){var r;if(un.assert(RV(a)),1===e){let e,i;for($V(a,t);e=_(void 0,n,void 0,void 0,!0);)t||(i=se(i,e.result.diagnostics));return(t?null==(r=a.emitDiagnosticsPerFile)?void 0:r.get(t.resolvedPath):i)||l}{const e=a.program.getDeclarationDiagnostics(t,n);return m(t,void 0,!0,e),e}},c.emit=function(t,n,r,i,o){un.assert(RV(a)),1===e&&$V(a,t);const s=wV(c,t,n,r);if(s)return s;if(!t){if(1===e){let e,t,a=[],s=!1,c=[];for(;t=p(n,r,i,o);)s=s||t.result.emitSkipped,e=se(e,t.result.diagnostics),c=se(c,t.result.emittedFiles),a=se(a,t.result.sourceMaps);return{emitSkipped:s,diagnostics:e||l,emittedFiles:c,sourceMaps:a}}KV(a,i,!1)}const _=a.program.emit(t,f(n,o),r,i,o);return m(t,i,!1,_.diagnostics),_},c.releaseProgram=()=>function(e){OV.releaseCache(e),e.program=void 0}(a),0===e?c.getSemanticDiagnosticsOfNextAffectedFile=g:1===e?(c.getSemanticDiagnosticsOfNextAffectedFile=g,c.emitNextAffectedFile=p,c.emitBuildInfo=function(e,t){if(un.assert(RV(a)),lW(a)){const r=a.program.emitBuildInfo(e||We(n,n.writeFile),t);return a.buildInfoEmitPending=!1,r}return CV}):ut(),c;function _(e,t,r,i,o){var s,c,l,_;un.assert(RV(a));let d=HV(a,t,n);const p=MV(a.compilerOptions);let m,g=o?8:r?56&p:p;if(!d){if(a.compilerOptions.outFile){if(a.programEmitPending&&(g=GV(a.programEmitPending,a.seenProgramEmit,r,o),g&&(d=a.program)),!d&&(null==(s=a.emitDiagnosticsPerFile)?void 0:s.size)){const e=a.seenProgramEmit||0;if(!(e&XV(o))){a.seenProgramEmit=XV(o)|e;const t=[];return a.emitDiagnosticsPerFile.forEach((e=>se(t,e))),{result:{emitSkipped:!0,diagnostics:t},affected:a.program}}}}else{const e=function(e,t,n){var r;if(null==(r=e.affectedFilesPendingEmit)?void 0:r.size)return td(e.affectedFilesPendingEmit,((r,i)=>{var o;const a=e.program.getSourceFileByPath(i);if(!a||!Gy(a,e.program))return void e.affectedFilesPendingEmit.delete(i);const s=GV(r,null==(o=e.seenEmittedFiles)?void 0:o.get(a.resolvedPath),t,n);return s?{affectedFile:a,emitKind:s}:void 0}))}(a,r,o);if(e)({affectedFile:d,emitKind:g}=e);else{const e=function(e,t){var n;if(null==(n=e.emitDiagnosticsPerFile)?void 0:n.size)return td(e.emitDiagnosticsPerFile,((n,r)=>{var i;const o=e.program.getSourceFileByPath(r);if(!o||!Gy(o,e.program))return void e.emitDiagnosticsPerFile.delete(r);const a=(null==(i=e.seenEmittedFiles)?void 0:i.get(o.resolvedPath))||0;return a&XV(t)?void 0:{affectedFile:o,diagnostics:n,seenKind:a}}))}(a,o);if(e)return(a.seenEmittedFiles??(a.seenEmittedFiles=new Map)).set(e.affectedFile.resolvedPath,e.seenKind|XV(o)),{result:{emitSkipped:!0,diagnostics:e.diagnostics},affected:e.affectedFile}}}if(!d){if(o||!lW(a))return;const r=a.program,i=r.emitBuildInfo(e||We(n,n.writeFile),t);return a.buildInfoEmitPending=!1,{result:i,affected:r}}}7&g&&(m=0),56&g&&(m=void 0===m?1:void 0);const h=o?{emitSkipped:!0,diagnostics:a.program.getDeclarationDiagnostics(d===a.program?void 0:d,t)}:a.program.emit(d===a.program?void 0:d,f(e,i),t,m,i,void 0,!0);if(d!==a.program){const e=d;a.seenAffectedFiles.add(e.resolvedPath),void 0!==a.affectedFilesIndex&&a.affectedFilesIndex++,a.buildInfoEmitPending=!0;const t=(null==(c=a.seenEmittedFiles)?void 0:c.get(e.resolvedPath))||0;(a.seenEmittedFiles??(a.seenEmittedFiles=new Map)).set(e.resolvedPath,g|t);const n=BV((null==(l=a.affectedFilesPendingEmit)?void 0:l.get(e.resolvedPath))||p,g|t);n?(a.affectedFilesPendingEmit??(a.affectedFilesPendingEmit=new Map)).set(e.resolvedPath,n):null==(_=a.affectedFilesPendingEmit)||_.delete(e.resolvedPath),h.diagnostics.length&&(a.emitDiagnosticsPerFile??(a.emitDiagnosticsPerFile=new Map)).set(e.resolvedPath,h.diagnostics)}else a.changedFilesSet.clear(),a.programEmitPending=a.changedFilesSet.size?BV(p,g):a.programEmitPending?BV(a.programEmitPending,g):void 0,a.seenProgramEmit=g|(a.seenProgramEmit||0),u(h.diagnostics),a.buildInfoEmitPending=!0;return{result:h,affected:d}}function u(e){let t;e.forEach((e=>{if(!e.file)return;let n=null==t?void 0:t.get(e.file.resolvedPath);n||(t??(t=new Map)).set(e.file.resolvedPath,n=[]),n.push(e)})),t&&(a.emitDiagnosticsPerFile=t)}function p(e,t,n,r){return _(e,t,n,r,!1)}function f(e,t){return un.assert(RV(a)),Nk(a.compilerOptions)?(r,i,o,s,c,l)=>{var _,u,d;if($I(r))if(a.compilerOptions.outFile){if(a.compilerOptions.composite){const e=p(a.outSignature,void 0);if(!e)return l.skippedDtsWrite=!0;a.outSignature=e}}else{let e;if(un.assert(1===(null==c?void 0:c.length)),!t){const t=c[0],r=a.fileInfos.get(t.resolvedPath);if(r.signature===t.version){const o=pW(a.program,t,i,n,l);(null==(_=null==l?void 0:l.diagnostics)?void 0:_.length)||(e=o),o!==t.version&&(n.storeSignatureInfo&&(a.signatureInfo??(a.signatureInfo=new Map)).set(t.resolvedPath,1),a.affectedFiles?(void 0===(null==(u=a.oldSignatures)?void 0:u.get(t.resolvedPath))&&(a.oldSignatures??(a.oldSignatures=new Map)).set(t.resolvedPath,r.signature||!1),r.signature=o):r.signature=o)}}if(a.compilerOptions.composite){const t=c[0].resolvedPath;if(e=p(null==(d=a.emitSignatures)?void 0:d.get(t),e),!e)return l.skippedDtsWrite=!0;(a.emitSignatures??(a.emitSignatures=new Map)).set(t,e)}}function p(e,t){const o=!e||Ze(e)?e:e[0];if(t??(t=function(e,t,n){return(t.createHash??Ri)(dW(e,n))}(i,n,l)),t===o){if(e===o)return;l?l.differsOnlyInMap=!0:l={differsOnlyInMap:!0}}else a.hasChangedEmitSignature=!0,a.latestChangedDtsFile=r;return t}e?e(r,i,o,s,c,l):n.writeFile?n.writeFile(r,i,o,s,c,l):a.program.writeFile(r,i,o,s,c,l)}:e||We(n,n.writeFile)}function m(t,n,r,i){t||1===e||(KV(a,n,r),u(i))}function g(e,t){for(un.assert(RV(a));;){const r=HV(a,e,n);let i;if(!r)return void(a.checkPending&&!a.compilerOptions.noCheck&&(a.checkPending=void 0,a.buildInfoEmitPending=!0));if(r!==a.program){const n=r;if(t&&t(n)||(i=iW(a,n,e)),a.seenAffectedFiles.add(n.resolvedPath),a.affectedFilesIndex++,a.buildInfoEmitPending=!0,!i)continue}else{let t;const n=new Map;a.program.getSourceFiles().forEach((r=>t=se(t,iW(a,r,e,n)))),a.semanticDiagnosticsPerFile=n,i=t||l,a.changedFilesSet.clear(),a.programEmitPending=MV(a.compilerOptions),a.compilerOptions.noCheck||(a.checkPending=void 0),a.buildInfoEmitPending=!0}return{result:i,affected:r}}}}function mW(e,t,n){var r,i;const o=(null==(r=e.affectedFilesPendingEmit)?void 0:r.get(t))||0;(e.affectedFilesPendingEmit??(e.affectedFilesPendingEmit=new Map)).set(t,o|n),null==(i=e.emitDiagnosticsPerFile)||i.delete(t)}function gW(e){return Ze(e)?{version:e,signature:e,affectsGlobalScope:void 0,impliedFormat:void 0}:Ze(e.signature)?e:{version:e.version,signature:!1===e.signature?void 0:e.version,affectsGlobalScope:e.affectsGlobalScope,impliedFormat:e.impliedFormat}}function hW(e,t){return et(e)?t:e[1]||24}function yW(e,t){return e||MV(t||{})}function vW(e,t,n){var r,i,o,a;const s=Do(Bo(t,n.getCurrentDirectory())),c=Wt(n.useCaseSensitiveFileNames());let _;const u=null==(r=e.fileNames)?void 0:r.map((function(e){return qo(e,s,c)}));let d;const p=e.latestChangedDtsFile?g(e.latestChangedDtsFile):void 0,f=new Map,m=new Set(E(e.changeFileSet,h));if(oW(e))e.fileInfos.forEach(((e,t)=>{const n=h(t+1);f.set(n,Ze(e)?{version:e,signature:void 0,affectsGlobalScope:void 0,impliedFormat:void 0}:e)})),_={fileInfos:f,compilerOptions:e.options?OL(e.options,g):{},semanticDiagnosticsPerFile:y(e.semanticDiagnosticsPerFile),emitDiagnosticsPerFile:v(e.emitDiagnosticsPerFile),hasReusableDiagnostic:!0,changedFilesSet:m,latestChangedDtsFile:p,outSignature:e.outSignature,programEmitPending:void 0===e.pendingEmit?void 0:yW(e.pendingEmit,e.options),hasErrors:e.errors,checkPending:e.checkPending};else{d=null==(i=e.fileIdsList)?void 0:i.map((e=>new Set(e.map(h))));const t=(null==(o=e.options)?void 0:o.composite)&&!e.options.outFile?new Map:void 0;e.fileInfos.forEach(((e,n)=>{const r=h(n+1),i=gW(e);f.set(r,i),t&&i.signature&&t.set(r,i.signature)})),null==(a=e.emitSignatures)||a.forEach((e=>{if(et(e))t.delete(h(e));else{const n=h(e[0]);t.set(n,Ze(e[1])||e[1].length?e[1]:[t.get(n)])}}));const n=e.affectedFilesPendingEmit?MV(e.options||{}):void 0;_={fileInfos:f,compilerOptions:e.options?OL(e.options,g):{},referencedMap:function(e,t){const n=OV.createReferencedMap(t);return n&&e?(e.forEach((([e,t])=>n.set(h(e),d[t-1]))),n):n}(e.referencedMap,e.options??{}),semanticDiagnosticsPerFile:y(e.semanticDiagnosticsPerFile),emitDiagnosticsPerFile:v(e.emitDiagnosticsPerFile),hasReusableDiagnostic:!0,changedFilesSet:m,affectedFilesPendingEmit:e.affectedFilesPendingEmit&&Re(e.affectedFilesPendingEmit,(e=>h(et(e)?e:e[0])),(e=>hW(e,n))),latestChangedDtsFile:p,emitSignatures:(null==t?void 0:t.size)?t:void 0,hasErrors:e.errors,checkPending:e.checkPending}}return{state:_,getProgram:ut,getProgramOrUndefined:at,releaseProgram:rt,getCompilerOptions:()=>_.compilerOptions,getSourceFile:ut,getSourceFiles:ut,getOptionsDiagnostics:ut,getGlobalDiagnostics:ut,getConfigFileParsingDiagnostics:ut,getSyntacticDiagnostics:ut,getDeclarationDiagnostics:ut,getSemanticDiagnostics:ut,emit:ut,getAllDependencies:ut,getCurrentDirectory:ut,emitNextAffectedFile:ut,getSemanticDiagnosticsOfNextAffectedFile:ut,emitBuildInfo:ut,close:rt,hasChangedEmitSignature:it};function g(e){return Bo(e,s)}function h(e){return u[e-1]}function y(e){const t=new Map(J(f.keys(),(e=>m.has(e)?void 0:[e,l])));return null==e||e.forEach((e=>{et(e)?t.delete(h(e)):t.set(h(e[0]),e[1])})),t}function v(e){return e&&Re(e,(e=>h(e[0])),(e=>e[1]))}}function bW(e,t,n){const r=Do(Bo(t,n.getCurrentDirectory())),i=Wt(n.useCaseSensitiveFileNames()),o=new Map;let a=0;const s=new Map,c=new Map(e.resolvedRoot);return e.fileInfos.forEach(((t,n)=>{const s=qo(e.fileNames[n],r,i),c=Ze(t)?t:t.version;if(o.set(s,c),aqo(e,i,o)))}function kW(e,t){return{state:void 0,getProgram:n,getProgramOrUndefined:()=>e.program,releaseProgram:()=>e.program=void 0,getCompilerOptions:()=>e.compilerOptions,getSourceFile:e=>n().getSourceFile(e),getSourceFiles:()=>n().getSourceFiles(),getOptionsDiagnostics:e=>n().getOptionsDiagnostics(e),getGlobalDiagnostics:e=>n().getGlobalDiagnostics(e),getConfigFileParsingDiagnostics:()=>t,getSyntacticDiagnostics:(e,t)=>n().getSyntacticDiagnostics(e,t),getDeclarationDiagnostics:(e,t)=>n().getDeclarationDiagnostics(e,t),getSemanticDiagnostics:(e,t)=>n().getSemanticDiagnostics(e,t),emit:(e,t,r,i,o)=>n().emit(e,t,r,i,o),emitBuildInfo:(e,t)=>n().emitBuildInfo(e,t),getAllDependencies:ut,getCurrentDirectory:()=>n().getCurrentDirectory(),close:rt};function n(){return un.checkDefined(e.program)}}function SW(e,t,n,r,i,o){return fW(0,uW(e,t,n,r,i,o))}function TW(e,t,n,r,i,o){return fW(1,uW(e,t,n,r,i,o))}function CW(e,t,n,r,i,o){const{newProgram:a,configFileParsingDiagnostics:s}=uW(e,t,n,r,i,o);return kW({program:a,compilerOptions:a.getCompilerOptions()},s)}function wW(e){return Rt(e,"/node_modules/.staging")?Mt(e,"/.staging"):$(Qi,(t=>e.includes(t)))?void 0:e}function NW(e,t){if(t<=1)return 1;let n=1,r=0===e[0].search(/[a-z]:/i);if(e[0]!==lo&&!r&&0===e[1].search(/[a-z]\$$/i)){if(2===t)return 2;n=2,r=!0}return r&&!e[n].match(/^users$/i)?n:e[n].match(/^workspaces$/i)?n+1:n+2}function DW(e,t){return void 0===t&&(t=e.length),!(t<=2)&&t>NW(e,t)+1}function FW(e){return DW(Ao(e))}function EW(e){return AW(Do(e))}function PW(e,t){if(t.lengthi.length+1?jW(l,c,Math.max(i.length+1,_+1),d):{dir:n,dirPath:r,nonRecursive:!0}:LW(l,c,c.length-1,_,u,i,d,s)}function LW(e,t,n,r,i,o,a,s){if(-1!==i)return jW(e,t,i+1,a);let c=!0,l=n;if(!s)for(let e=0;e=n&&r+2function(e,t,n,r,i,o,a){const s=BW(e),c=bR(n,r,i,s,t,o,a);if(!e.getGlobalTypingsCacheLocation)return c;const l=e.getGlobalTypingsCacheLocation();if(!(void 0===l||Ts(n)||c.resolvedModule&&GS(c.resolvedModule.extension))){const{resolvedModule:r,failedLookupLocations:o,affectingLocations:a,resolutionDiagnostics:_}=xM(un.checkDefined(e.globalCacheResolutionModuleName)(n),e.projectName,i,s,l,t);if(r)return c.resolvedModule=r,c.failedLookupLocations=Vj(c.failedLookupLocations,o),c.affectingLocations=Vj(c.affectingLocations,a),c.resolutionDiagnostics=Vj(c.resolutionDiagnostics,_),c}return c}(r,i,o,e,n,t,a)}}function zW(e,t,n){let r,i,o;const a=new Set,s=new Set,c=new Set,_=new Map,u=new Map;let d,p,f,g,h,y=!1,v=!1;const b=dt((()=>e.getCurrentDirectory())),x=e.getCachedDirectoryStructureHost(),k=new Map,S=mR(b(),e.getCanonicalFileName,e.getCompilationSettings()),T=new Map,C=gR(b(),e.getCanonicalFileName,e.getCompilationSettings(),S.getPackageJsonInfoCache(),S.optionsToRedirectsKey),w=new Map,N=mR(b(),e.getCanonicalFileName,hR(e.getCompilationSettings()),S.getPackageJsonInfoCache()),D=new Map,F=new Map,E=MW(t,b),P=e.toPath(E),A=Ao(P),I=DW(A),O=new Map,L=new Map,j=new Map,R=new Map;return{rootDirForResolution:t,resolvedModuleNames:k,resolvedTypeReferenceDirectives:T,resolvedLibraries:w,resolvedFileToResolution:_,resolutionsWithFailedLookups:s,resolutionsWithOnlyAffectingLocations:c,directoryWatchesOfFailedLookups:D,fileWatchesOfAffectingLocations:F,packageDirWatchers:L,dirPathToSymlinkPackageRefCount:j,watchFailedLookupLocationsOfExternalModuleResolutions:V,getModuleResolutionCache:()=>S,startRecordingFilesWithChangedResolutions:function(){r=[]},finishRecordingFilesWithChangedResolutions:function(){const e=r;return r=void 0,e},startCachingPerDirectoryResolution:function(){S.isReadonly=void 0,C.isReadonly=void 0,N.isReadonly=void 0,S.getPackageJsonInfoCache().isReadonly=void 0,S.clearAllExceptPackageJsonInfoCache(),C.clearAllExceptPackageJsonInfoCache(),N.clearAllExceptPackageJsonInfoCache(),X(),O.clear()},finishCachingPerDirectoryResolution:function(t,n){o=void 0,v=!1,X(),t!==n&&(function(t){w.forEach(((n,r)=>{var i;(null==(i=null==t?void 0:t.resolvedLibReferences)?void 0:i.has(r))||(ee(n,e.toPath(cV(e.getCompilationSettings(),b(),r)),cd),w.delete(r))}))}(t),null==t||t.getSourceFiles().forEach((e=>{var t;const n=(null==(t=e.packageJsonLocations)?void 0:t.length)??0,r=u.get(e.resolvedPath)??l;for(let t=r.length;tn)for(let e=n;e{const r=null==t?void 0:t.getSourceFileByPath(n);r&&r.resolvedPath===n||(e.forEach((e=>F.get(e).files--)),u.delete(n))}))),D.forEach(J),F.forEach(z),L.forEach(B),y=!1,S.isReadonly=!0,C.isReadonly=!0,N.isReadonly=!0,S.getPackageJsonInfoCache().isReadonly=!0,O.clear()},resolveModuleNameLiterals:function(t,r,i,o,a,s){return q({entries:t,containingFile:r,containingSourceFile:a,redirectedReference:i,options:o,reusedNames:s,perFileCache:k,loader:JW(r,i,o,e,S),getResolutionWithResolvedFileName:cd,shouldRetryResolution:e=>!e.resolvedModule||!XS(e.resolvedModule.extension),logChanges:n,deferWatchingNonRelativeResolution:!0})},resolveTypeReferenceDirectiveReferences:function(t,n,r,i,o,a){return q({entries:t,containingFile:n,containingSourceFile:o,redirectedReference:r,options:i,reusedNames:a,perFileCache:T,loader:rV(n,r,i,BW(e),C),getResolutionWithResolvedFileName:ld,shouldRetryResolution:e=>void 0===e.resolvedTypeReferenceDirective,deferWatchingNonRelativeResolution:!1})},resolveLibrary:function(t,n,r,i){const o=BW(e);let a=null==w?void 0:w.get(i);if(!a||a.isInvalidated){const s=a;a=yR(t,n,r,o,N);const c=e.toPath(n);V(t,a,c,cd,!1),w.set(i,a),s&&ee(s,c,cd)}else if(Lj(r,o)){const e=cd(a);Oj(o,(null==e?void 0:e.resolvedFileName)?e.packageId?la.Reusing_resolution_of_module_0_from_1_of_old_program_it_was_successfully_resolved_to_2_with_Package_ID_3:la.Reusing_resolution_of_module_0_from_1_of_old_program_it_was_successfully_resolved_to_2:la.Reusing_resolution_of_module_0_from_1_of_old_program_it_was_not_resolved,t,n,null==e?void 0:e.resolvedFileName,(null==e?void 0:e.packageId)&&pd(e.packageId))}return a},resolveSingleModuleNameWithoutWatching:function(t,n){var r,i;const o=e.toPath(n),a=k.get(o),s=null==a?void 0:a.get(t,void 0);if(s&&!s.isInvalidated)return s;const c=null==(r=e.beforeResolveSingleModuleNameWithoutWatching)?void 0:r.call(e,S),l=BW(e),_=bR(t,n,e.getCompilationSettings(),l,S);return null==(i=e.afterResolveSingleModuleNameWithoutWatching)||i.call(e,S,t,n,_,c),_},removeResolutionsFromProjectReferenceRedirects:function(t){if(!ko(t,".json"))return;const n=e.getCurrentProgram();if(!n)return;const r=n.getResolvedProjectReferenceByPath(t);r&&r.commandLine.fileNames.forEach((t=>ie(e.toPath(t))))},removeResolutionsOfFile:ie,hasChangedAutomaticTypeDirectiveNames:()=>y,invalidateResolutionOfFile:function(t){ie(t);const n=y;oe(_.get(t),ot)&&y&&!n&&e.onChangedAutomaticTypeDirectiveNames()},invalidateResolutionsOfFailedLookupLocations:ce,setFilesWithInvalidatedNonRelativeUnresolvedImports:function(e){un.assert(o===e||void 0===o),o=e},createHasInvalidatedResolutions:function(e,t){ce();const n=i;return i=void 0,{hasInvalidatedResolutions:t=>e(t)||v||!!(null==n?void 0:n.has(t))||M(t),hasInvalidatedLibResolutions:e=>{var n;return t(e)||!!(null==(n=null==w?void 0:w.get(e))?void 0:n.isInvalidated)}}},isFileWithInvalidatedNonRelativeUnresolvedImports:M,updateTypeRootsWatch:function(){const t=e.getCompilationSettings();if(t.types)return void de();const n=Gj(t,{getCurrentDirectory:b});n?dx(R,new Set(n),{createNewValue:pe,onDeleteValue:tx}):de()},closeTypeRootsWatch:de,clear:function(){_x(D,vU),_x(F,vU),O.clear(),L.clear(),j.clear(),a.clear(),de(),k.clear(),T.clear(),_.clear(),s.clear(),c.clear(),f=void 0,g=void 0,h=void 0,p=void 0,d=void 0,v=!1,S.clear(),C.clear(),S.update(e.getCompilationSettings()),C.update(e.getCompilationSettings()),N.clear(),u.clear(),w.clear(),y=!1},onChangesAffectModuleResolution:function(){v=!0,S.clearAllExceptPackageJsonInfoCache(),C.clearAllExceptPackageJsonInfoCache(),S.update(e.getCompilationSettings()),C.update(e.getCompilationSettings())}};function M(e){if(!o)return!1;const t=o.get(e);return!!t&&!!t.length}function B(e,t){0===e.dirPathToWatcher.size&&L.delete(t)}function J(e,t){0===e.refCount&&(D.delete(t),e.watcher.close())}function z(e,t){var n;0!==e.files||0!==e.resolutions||(null==(n=e.symlinks)?void 0:n.size)||(F.delete(t),e.watcher.close())}function q({entries:t,containingFile:n,containingSourceFile:i,redirectedReference:o,options:a,perFileCache:s,reusedNames:c,loader:l,getResolutionWithResolvedFileName:_,deferWatchingNonRelativeResolution:u,shouldRetryResolution:d,logChanges:p}){const f=e.toPath(n),m=s.get(f)||s.set(f,uR()).get(f),g=[],h=p&&M(f),y=e.getCurrentProgram(),b=y&&y.getResolvedProjectReferenceToRedirect(n),x=b?!o||o.sourceFile.path!==b.sourceFile.path:!!o,S=uR();for(const c of t){const t=l.nameAndMode.getName(c),y=l.nameAndMode.getMode(c,i,(null==o?void 0:o.commandLine.options)||a);let b=m.get(t,y);if(!S.has(t,y)&&(v||x||!b||b.isInvalidated||h&&!Ts(t)&&d(b))){const n=b;b=l.resolve(t,y),e.onDiscoveredSymlink&&qW(b)&&e.onDiscoveredSymlink(),m.set(t,y,b),b!==n&&(V(t,b,f,_,u),n&&ee(n,f,_)),p&&r&&!T(n,b)&&(r.push(f),p=!1)}else{const r=BW(e);if(Lj(a,r)&&!S.has(t,y)){const e=_(b);Oj(r,s===k?(null==e?void 0:e.resolvedFileName)?e.packageId?la.Reusing_resolution_of_module_0_from_1_of_old_program_it_was_successfully_resolved_to_2_with_Package_ID_3:la.Reusing_resolution_of_module_0_from_1_of_old_program_it_was_successfully_resolved_to_2:la.Reusing_resolution_of_module_0_from_1_of_old_program_it_was_not_resolved:(null==e?void 0:e.resolvedFileName)?e.packageId?la.Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_successfully_resolved_to_2_with_Package_ID_3:la.Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_successfully_resolved_to_2:la.Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_not_resolved,t,n,null==e?void 0:e.resolvedFileName,(null==e?void 0:e.packageId)&&pd(e.packageId))}}un.assert(void 0!==b&&!b.isInvalidated),S.set(t,y,!0),g.push(b)}return null==c||c.forEach((e=>S.set(l.nameAndMode.getName(e),l.nameAndMode.getMode(e,i,(null==o?void 0:o.commandLine.options)||a),!0))),m.size()!==S.size()&&m.forEach(((e,t,n)=>{S.has(t,n)||(ee(e,f,_),m.delete(t,n))})),g;function T(e,t){if(e===t)return!0;if(!e||!t)return!1;const n=_(e),r=_(t);return n===r||!(!n||!r)&&n.resolvedFileName===r.resolvedFileName}}function U(e){return Rt(e,"/node_modules/@types")}function V(t,n,r,i,o){if((n.files??(n.files=new Set)).add(r),1!==n.files.size)return;!o||Ts(t)?H(n):a.add(n);const s=i(n);if(s&&s.resolvedFileName){const t=e.toPath(s.resolvedFileName);let r=_.get(t);r||_.set(t,r=new Set),r.add(n)}}function W(t,n){const r=OW(t,e.toPath(t),E,P,A,I,b,e.preferNonRecursiveWatch);if(r){const{dir:e,dirPath:t,nonRecursive:i,packageDir:o,packageDirPath:a}=r;t===P?(un.assert(i),un.assert(!o),n=!0):Q(e,t,o,a,i)}return n}function H(e){var t;un.assert(!!(null==(t=e.files)?void 0:t.size));const{failedLookupLocations:n,affectingLocations:r,alternateResult:i}=e;if(!(null==n?void 0:n.length)&&!(null==r?void 0:r.length)&&!i)return;((null==n?void 0:n.length)||i)&&s.add(e);let o=!1;if(n)for(const e of n)o=W(e,o);i&&(o=W(i,o)),o&&Q(E,P,void 0,void 0,!0),function(e,t){var n;un.assert(!!(null==(n=e.files)?void 0:n.size));const{affectingLocations:r}=e;if(null==r?void 0:r.length){t&&c.add(e);for(const e of r)K(e,!0)}}(e,!(null==n?void 0:n.length)&&!i)}function K(t,n){const r=F.get(t);if(r)return void(n?r.resolutions++:r.files++);let i,o=t,a=!1;e.realpath&&(o=e.realpath(t),t!==o&&(a=!0,i=F.get(o)));const s=n?1:0,c=n?0:1;if(!a||!i){const t={watcher:IW(e.toPath(o))?e.watchAffectingFileLocation(o,((t,n)=>{null==x||x.addOrDeleteFile(t,e.toPath(o),n),G(o,S.getPackageJsonInfoCache().getInternalMap()),e.scheduleInvalidateResolutionsOfFailedLookupLocations()})):_$,resolutions:a?0:s,files:a?0:c,symlinks:void 0};F.set(o,t),a&&(i=t)}if(a){un.assert(!!i);const e={watcher:{close:()=>{var e;const n=F.get(o);!(null==(e=null==n?void 0:n.symlinks)?void 0:e.delete(t))||n.symlinks.size||n.resolutions||n.files||(F.delete(o),n.watcher.close())}},resolutions:s,files:c,symlinks:void 0};F.set(t,e),(i.symlinks??(i.symlinks=new Set)).add(t)}}function G(t,n){var r;const i=F.get(t);(null==i?void 0:i.resolutions)&&(p??(p=new Set)).add(t),(null==i?void 0:i.files)&&(d??(d=new Set)).add(t),null==(r=null==i?void 0:i.symlinks)||r.forEach((e=>G(e,n))),null==n||n.delete(e.toPath(t))}function X(){a.forEach(H),a.clear()}function Q(t,n,r,i,o){i&&e.realpath?function(t,n,r,i,o){un.assert(!o);let a=O.get(i),s=L.get(i);if(void 0===a){const t=e.realpath(r);a=t!==r&&e.toPath(t)!==i,O.set(i,a),s?s.isSymlink!==a&&(s.dirPathToWatcher.forEach((e=>{te(s.isSymlink?i:n),e.watcher=l()})),s.isSymlink=a):L.set(i,s={dirPathToWatcher:new Map,isSymlink:a})}else un.assertIsDefined(s),un.assert(a===s.isSymlink);const c=s.dirPathToWatcher.get(n);function l(){return a?Y(r,i,o):Y(t,n,o)}c?c.refCount++:(s.dirPathToWatcher.set(n,{watcher:l(),refCount:1}),a&&j.set(n,(j.get(n)??0)+1))}(t,n,r,i,o):Y(t,n,o)}function Y(e,t,n){let r=D.get(t);return r?(un.assert(!!n==!!r.nonRecursive),r.refCount++):D.set(t,r={watcher:ne(e,t,n),refCount:1,nonRecursive:n}),r}function Z(t,n){const r=OW(t,e.toPath(t),E,P,A,I,b,e.preferNonRecursiveWatch);if(r){const{dirPath:t,packageDirPath:i}=r;if(t===P)n=!0;else if(i&&e.realpath){const e=L.get(i),n=e.dirPathToWatcher.get(t);if(n.refCount--,0===n.refCount&&(te(e.isSymlink?i:t),e.dirPathToWatcher.delete(t),e.isSymlink)){const e=j.get(t)-1;0===e?j.delete(t):j.set(t,e)}}else te(t)}return n}function ee(t,n,r){if(un.checkDefined(t.files).delete(n),t.files.size)return;t.files=void 0;const i=r(t);if(i&&i.resolvedFileName){const n=e.toPath(i.resolvedFileName),r=_.get(n);(null==r?void 0:r.delete(t))&&!r.size&&_.delete(n)}const{failedLookupLocations:o,affectingLocations:a,alternateResult:l}=t;if(s.delete(t)){let e=!1;if(o)for(const t of o)e=Z(t,e);l&&(e=Z(l,e)),e&&te(P)}else(null==a?void 0:a.length)&&c.delete(t);if(a)for(const e of a)F.get(e).resolutions--}function te(e){D.get(e).refCount--}function ne(t,n,r){return e.watchDirectoryOfFailedLookupLocation(t,(t=>{const r=e.toPath(t);x&&x.addOrDeleteFileOrDirectory(t,r),ae(r,n===r)}),r?0:1)}function re(e,t,n){const r=e.get(t);r&&(r.forEach((e=>ee(e,t,n))),e.delete(t))}function ie(e){re(k,e,cd),re(T,e,ld)}function oe(e,t){if(!e)return!1;let n=!1;return e.forEach((e=>{if(!e.isInvalidated&&t(e)){e.isInvalidated=n=!0;for(const t of un.checkDefined(e.files))(i??(i=new Set)).add(t),y=y||Rt(t,sV)}})),n}function ae(t,n){if(n)(h||(h=new Set)).add(t);else{const n=wW(t);if(!n)return!1;if(t=n,e.fileIsOpen(t))return!1;const r=Do(t);if(U(t)||sa(t)||U(r)||sa(r))(f||(f=new Set)).add(t),(g||(g=new Set)).add(t);else{if(mU(e.getCurrentProgram(),t))return!1;if(ko(t,".map"))return!1;(f||(f=new Set)).add(t),(g||(g=new Set)).add(t);const n=IR(t,!0);n&&(g||(g=new Set)).add(n)}}e.scheduleInvalidateResolutionsOfFailedLookupLocations()}function se(){const e=S.getPackageJsonInfoCache().getInternalMap();e&&(f||g||h)&&e.forEach(((t,n)=>_e(n)?e.delete(n):void 0))}function ce(){var t;if(v)return d=void 0,se(),(f||g||h||p)&&oe(w,le),f=void 0,g=void 0,h=void 0,p=void 0,!0;let n=!1;return d&&(null==(t=e.getCurrentProgram())||t.getSourceFiles().forEach((e=>{$(e.packageJsonLocations,(e=>d.has(e)))&&((i??(i=new Set)).add(e.path),n=!0)})),d=void 0),f||g||h||p?(n=oe(s,le)||n,se(),f=void 0,g=void 0,h=void 0,n=oe(c,ue)||n,p=void 0,n):n}function le(t){var n;return!!ue(t)||!!(f||g||h)&&((null==(n=t.failedLookupLocations)?void 0:n.some((t=>_e(e.toPath(t)))))||!!t.alternateResult&&_e(e.toPath(t.alternateResult)))}function _e(e){return(null==f?void 0:f.has(e))||m((null==g?void 0:g.keys())||[],(t=>!!Gt(e,t)||void 0))||m((null==h?void 0:h.keys())||[],(t=>!(!(e.length>t.length&&Gt(e,t))||!ho(t)&&e[t.length]!==lo)||void 0))}function ue(e){var t;return!!p&&(null==(t=e.affectingLocations)?void 0:t.some((e=>p.has(e))))}function de(){_x(R,tx)}function pe(t){return function(t){return!!e.getCompilationSettings().typeRoots||EW(e.toPath(t))}(t)?e.watchTypeRootsDirectory(t,(n=>{const r=e.toPath(n);x&&x.addOrDeleteFileOrDirectory(n,r),y=!0,e.onChangedAutomaticTypeDirectiveNames();const i=RW(t,e.toPath(t),P,A,I,b,e.preferNonRecursiveWatch,(e=>D.has(e)||j.has(e)));i&&ae(r,i===r)}),1):_$}}function qW(e){var t,n;return!(!(null==(t=e.resolvedModule)?void 0:t.originalPath)&&!(null==(n=e.resolvedTypeReferenceDirective)?void 0:n.originalPath))}var UW=so?{getCurrentDirectory:()=>so.getCurrentDirectory(),getNewLine:()=>so.newLine,getCanonicalFileName:Wt(so.useCaseSensitiveFileNames)}:void 0;function VW(e,t){const n=e===so&&UW?UW:{getCurrentDirectory:()=>e.getCurrentDirectory(),getNewLine:()=>e.newLine,getCanonicalFileName:Wt(e.useCaseSensitiveFileNames)};if(!t)return t=>e.write(EU(t,n));const r=new Array(1);return t=>{r[0]=t,e.write(qU(r,n)+n.getNewLine()),r[0]=void 0}}function WW(e,t,n){return!(!e.clearScreen||n.preserveWatchOutput||n.extendedDiagnostics||n.diagnostics||!T($W,t.code)||(e.clearScreen(),0))}var $W=[la.Starting_compilation_in_watch_mode.code,la.File_change_detected_Starting_incremental_compilation.code];function HW(e){return e.now?e.now().toLocaleTimeString("en-US",{timeZone:"UTC"}).replace(" "," "):(new Date).toLocaleTimeString()}function KW(e,t){return t?(t,n,r)=>{WW(e,t,r);let i=`[${BU(HW(e),"")}] `;i+=`${UU(t.messageText,e.newLine)}${n+n}`,e.write(i)}:(t,n,r)=>{let i="";WW(e,t,r)||(i+=n),i+=`${HW(e)} - `,i+=`${UU(t.messageText,e.newLine)}${function(e,t){return T($W,e.code)?t+t:t}(t,n)}`,e.write(i)}}function GW(e,t,n,r,i,o){const a=i;a.onUnRecoverableConfigFileDiagnostic=e=>b$(i,o,e);const s=QO(e,t,a,n,r);return a.onUnRecoverableConfigFileDiagnostic=void 0,s}function XW(e){return w(e,(e=>1===e.category))}function QW(e){return N(e,(e=>1===e.category)).map((e=>{if(void 0!==e.file)return`${e.file.fileName}`})).map((t=>{if(void 0===t)return;const n=b(e,(e=>void 0!==e.file&&e.file.fileName===t));if(void 0!==n){const{line:e}=Ja(n.file,n.start);return{fileName:t,line:e+1}}}))}function YW(e){return 1===e?la.Found_1_error_Watching_for_file_changes:la.Found_0_errors_Watching_for_file_changes}function ZW(e,t){const n=BU(":"+e.line,"");return yo(e.fileName)&&yo(t)?na(t,e.fileName,!1)+n:e.fileName+n}function e$(e,t,n,r){if(0===e)return"";const i=t.filter((e=>void 0!==e)),o=i.map((e=>`${e.fileName}:${e.line}`)).filter(((e,t,n)=>n.indexOf(e)===t)),a=i[0]&&ZW(i[0],r.getCurrentDirectory());let s;s=1===e?void 0!==t[0]?[la.Found_1_error_in_0,a]:[la.Found_1_error]:0===o.length?[la.Found_0_errors,e]:1===o.length?[la.Found_0_errors_in_the_same_file_starting_at_Colon_1,e,a]:[la.Found_0_errors_in_1_files,e,o.length];const c=Xx(...s),l=o.length>1?function(e,t){const n=e.filter(((e,t,n)=>t===n.findIndex((t=>(null==t?void 0:t.fileName)===(null==e?void 0:e.fileName)))));if(0===n.length)return"";const r=e=>Math.log(e)*Math.LOG10E+1,i=n.map((t=>[t,w(e,(e=>e.fileName===t.fileName))])),o=xt(i,0,(e=>e[1])),a=la.Errors_Files.message,s=a.split(" ")[0].length,c=Math.max(s,r(o)),l=Math.max(r(o)-s,0);let _="";return _+=" ".repeat(l)+a+"\n",i.forEach((e=>{const[n,r]=e,i=Math.log(r)*Math.LOG10E+1|0,o=ira(t,e.getCurrentDirectory(),e.getCanonicalFileName);for(const a of e.getSourceFiles())t(`${s$(a,o)}`),null==(n=i.get(a.path))||n.forEach((n=>t(` ${a$(e,n,o).messageText}`))),null==(r=r$(a,e.getCompilerOptionsForFile(a),o))||r.forEach((e=>t(` ${e.messageText}`)))}function r$(e,t,n){var r;let i;if(e.path!==e.resolvedPath&&(i??(i=[])).push(Yx(void 0,la.File_is_output_of_project_reference_source_0,s$(e.originalFileName,n))),e.redirectInfo&&(i??(i=[])).push(Yx(void 0,la.File_redirects_to_file_0,s$(e.redirectInfo.redirectTarget,n))),Qp(e))switch(SV(e,t)){case 99:e.packageJsonScope&&(i??(i=[])).push(Yx(void 0,la.File_is_ECMAScript_module_because_0_has_field_type_with_value_module,s$(ve(e.packageJsonLocations),n)));break;case 1:e.packageJsonScope?(i??(i=[])).push(Yx(void 0,e.packageJsonScope.contents.packageJsonContent.type?la.File_is_CommonJS_module_because_0_has_field_type_whose_value_is_not_module:la.File_is_CommonJS_module_because_0_does_not_have_field_type,s$(ve(e.packageJsonLocations),n))):(null==(r=e.packageJsonLocations)?void 0:r.length)&&(i??(i=[])).push(Yx(void 0,la.File_is_CommonJS_module_because_package_json_was_not_found))}return i}function i$(e,t){var n;const r=e.getCompilerOptions().configFile;if(!(null==(n=null==r?void 0:r.configFileSpecs)?void 0:n.validatedFilesSpec))return;const i=e.getCanonicalFileName(t),o=Do(Bo(r.fileName,e.getCurrentDirectory())),a=k(r.configFileSpecs.validatedFilesSpec,(t=>e.getCanonicalFileName(Bo(t,o))===i));return-1!==a?r.configFileSpecs.validatedFilesSpecBeforeSubstitution[a]:void 0}function o$(e,t){var n,r;const i=e.getCompilerOptions().configFile;if(!(null==(n=null==i?void 0:i.configFileSpecs)?void 0:n.validatedIncludeSpecs))return;if(i.configFileSpecs.isDefaultIncludeSpec)return!0;const o=ko(t,".json"),a=Do(Bo(i.fileName,e.getCurrentDirectory())),s=e.useCaseSensitiveFileNames(),c=k(null==(r=null==i?void 0:i.configFileSpecs)?void 0:r.validatedIncludeSpecs,(e=>{if(o&&!Rt(e,".json"))return!1;const n=_S(e,a,"files");return!!n&&fS(`(${n})$`,s).test(t)}));return-1!==c?i.configFileSpecs.validatedIncludeSpecsBeforeSubstitution[c]:void 0}function a$(e,t,n){var r,i;const o=e.getCompilerOptions();if(dV(t)){const r=fV(e,t),i=pV(r)?r.file.text.substring(r.pos,r.end):`"${r.text}"`;let o;switch(un.assert(pV(r)||3===t.kind,"Only synthetic references are imports"),t.kind){case 3:o=pV(r)?r.packageId?la.Imported_via_0_from_file_1_with_packageId_2:la.Imported_via_0_from_file_1:r.text===qu?r.packageId?la.Imported_via_0_from_file_1_with_packageId_2_to_import_importHelpers_as_specified_in_compilerOptions:la.Imported_via_0_from_file_1_to_import_importHelpers_as_specified_in_compilerOptions:r.packageId?la.Imported_via_0_from_file_1_with_packageId_2_to_import_jsx_and_jsxs_factory_functions:la.Imported_via_0_from_file_1_to_import_jsx_and_jsxs_factory_functions;break;case 4:un.assert(!r.packageId),o=la.Referenced_via_0_from_file_1;break;case 5:o=r.packageId?la.Type_library_referenced_via_0_from_file_1_with_packageId_2:la.Type_library_referenced_via_0_from_file_1;break;case 7:un.assert(!r.packageId),o=la.Library_referenced_via_0_from_file_1;break;default:un.assertNever(t)}return Yx(void 0,o,i,s$(r.file,n),r.packageId&&pd(r.packageId))}switch(t.kind){case 0:if(!(null==(r=o.configFile)?void 0:r.configFileSpecs))return Yx(void 0,la.Root_file_specified_for_compilation);const a=Bo(e.getRootFileNames()[t.index],e.getCurrentDirectory());if(i$(e,a))return Yx(void 0,la.Part_of_files_list_in_tsconfig_json);const s=o$(e,a);return Ze(s)?Yx(void 0,la.Matched_by_include_pattern_0_in_1,s,s$(o.configFile,n)):Yx(void 0,s?la.Matched_by_default_include_pattern_Asterisk_Asterisk_Slash_Asterisk:la.Root_file_specified_for_compilation);case 1:case 2:const c=2===t.kind,l=un.checkDefined(null==(i=e.getResolvedProjectReferences())?void 0:i[t.index]);return Yx(void 0,o.outFile?c?la.Output_from_referenced_project_0_included_because_1_specified:la.Source_from_referenced_project_0_included_because_1_specified:c?la.Output_from_referenced_project_0_included_because_module_is_specified_as_none:la.Source_from_referenced_project_0_included_because_module_is_specified_as_none,s$(l.sourceFile.fileName,n),o.outFile?"--outFile":"--out");case 8:return Yx(void 0,...o.types?t.packageId?[la.Entry_point_of_type_library_0_specified_in_compilerOptions_with_packageId_1,t.typeReference,pd(t.packageId)]:[la.Entry_point_of_type_library_0_specified_in_compilerOptions,t.typeReference]:t.packageId?[la.Entry_point_for_implicit_type_library_0_with_packageId_1,t.typeReference,pd(t.packageId)]:[la.Entry_point_for_implicit_type_library_0,t.typeReference]);case 6:{if(void 0!==t.index)return Yx(void 0,la.Library_0_specified_in_compilerOptions,o.lib[t.index]);const e=Bk(hk(o));return Yx(void 0,...e?[la.Default_library_for_target_0,e]:[la.Default_library])}default:un.assertNever(t)}}function s$(e,t){const n=Ze(e)?e:e.fileName;return t?t(n):n}function c$(e,t,n,r,i,o,a,s){const c=e.getCompilerOptions(),_=e.getConfigFileParsingDiagnostics().slice(),u=_.length;se(_,e.getSyntacticDiagnostics(void 0,o)),_.length===u&&(se(_,e.getOptionsDiagnostics(o)),c.listFilesOnly||(se(_,e.getGlobalDiagnostics(o)),_.length===u&&se(_,e.getSemanticDiagnostics(void 0,o)),c.noEmit&&Nk(c)&&_.length===u&&se(_,e.getDeclarationDiagnostics(void 0,o))));const p=c.listFilesOnly?{emitSkipped:!0,diagnostics:l}:e.emit(void 0,i,o,a,s);se(_,p.diagnostics);const f=Cs(_);if(f.forEach(t),n){const t=e.getCurrentDirectory();d(p.emittedFiles,(e=>{const r=Bo(e,t);n(`TSFILE: ${r}`)})),function(e,t){const n=e.getCompilerOptions();n.explainFiles?n$(t$(e)?e.getProgram():e,t):(n.listFiles||n.listFilesOnly)&&d(e.getSourceFiles(),(e=>{t(e.fileName)}))}(e,n)}return r&&r(XW(f),QW(f)),{emitResult:p,diagnostics:f}}function l$(e,t,n,r,i,o,a,s){const{emitResult:c,diagnostics:l}=c$(e,t,n,r,i,o,a,s);return c.emitSkipped&&l.length>0?1:l.length>0?2:0}var _$={close:rt},u$=()=>_$;function d$(e=so,t){return{onWatchStatusChange:t||KW(e),watchFile:We(e,e.watchFile)||u$,watchDirectory:We(e,e.watchDirectory)||u$,setTimeout:We(e,e.setTimeout)||rt,clearTimeout:We(e,e.clearTimeout)||rt,preferNonRecursiveWatch:e.preferNonRecursiveWatch}}var p$={ConfigFile:"Config file",ExtendedConfigFile:"Extended config file",SourceFile:"Source file",MissingFile:"Missing file",WildcardDirectory:"Wild card directory",FailedLookupLocations:"Failed Lookup Locations",AffectingFileLocation:"File location affecting resolution",TypeRoots:"Type roots",ConfigFileOfReferencedProject:"Config file of referened project",ExtendedConfigOfReferencedProject:"Extended config file of referenced project",WildcardDirectoryOfReferencedProject:"Wild card directory of referenced project",PackageJson:"package.json file",ClosedScriptInfo:"Closed Script info",ConfigFileForInferredRoot:"Config file for the inferred project root",NodeModules:"node_modules for closed script infos and package.jsons affecting module specifier cache",MissingSourceMapFile:"Missing source map file",NoopConfigFileForInferredRoot:"Noop Config file for the inferred project root",MissingGeneratedFile:"Missing generated file",NodeModulesForModuleSpecifierCache:"node_modules for module specifier cache invalidation",TypingInstallerLocationFile:"File location for typing installer",TypingInstallerLocationDirectory:"Directory location for typing installer"};function f$(e,t){const n=e.trace?t.extendedDiagnostics?2:t.diagnostics?1:0:0,r=0!==n?t=>e.trace(t):rt,i=hU(e,n,r);return i.writeLog=r,i}function m$(e,t,n=e){const r=e.useCaseSensitiveFileNames(),i={getSourceFile:TU(((t,n)=>n?e.readFile(t,n):i.readFile(t)),void 0),getDefaultLibLocation:We(e,e.getDefaultLibLocation),getDefaultLibFileName:t=>e.getDefaultLibFileName(t),writeFile:CU(((t,n,r)=>e.writeFile(t,n,r)),(t=>e.createDirectory(t)),(t=>e.directoryExists(t))),getCurrentDirectory:dt((()=>e.getCurrentDirectory())),useCaseSensitiveFileNames:()=>r,getCanonicalFileName:Wt(r),getNewLine:()=>Eb(t()),fileExists:t=>e.fileExists(t),readFile:t=>e.readFile(t),trace:We(e,e.trace),directoryExists:We(n,n.directoryExists),getDirectories:We(n,n.getDirectories),realpath:We(e,e.realpath),getEnvironmentVariable:We(e,e.getEnvironmentVariable)||(()=>""),createHash:We(e,e.createHash),readDirectory:We(e,e.readDirectory),storeSignatureInfo:e.storeSignatureInfo,jsDocParsingMode:e.jsDocParsingMode};return i}function g$(e,t){if(t.match(aJ)){let e=t.length,n=e;for(let r=e-1;r>=0;r--){const i=t.charCodeAt(r);switch(i){case 10:r&&13===t.charCodeAt(r-1)&&r--;case 13:break;default:if(i<127||!Ua(i)){n=r;continue}}const o=t.substring(n,e);if(o.match(sJ)){t=t.substring(0,n);break}if(!o.match(cJ))break;e=n}}return(e.createHash||Ri)(t)}function h$(e){const t=e.getSourceFile;e.getSourceFile=(...n)=>{const r=t.call(e,...n);return r&&(r.version=g$(e,r.text)),r}}function y$(e,t){const n=dt((()=>Do(Jo(e.getExecutingFilePath()))));return{useCaseSensitiveFileNames:()=>e.useCaseSensitiveFileNames,getNewLine:()=>e.newLine,getCurrentDirectory:dt((()=>e.getCurrentDirectory())),getDefaultLibLocation:n,getDefaultLibFileName:e=>jo(n(),Ns(e)),fileExists:t=>e.fileExists(t),readFile:(t,n)=>e.readFile(t,n),directoryExists:t=>e.directoryExists(t),getDirectories:t=>e.getDirectories(t),readDirectory:(t,n,r,i,o)=>e.readDirectory(t,n,r,i,o),realpath:We(e,e.realpath),getEnvironmentVariable:We(e,e.getEnvironmentVariable),trace:t=>e.write(t+e.newLine),createDirectory:t=>e.createDirectory(t),writeFile:(t,n,r)=>e.writeFile(t,n,r),createHash:We(e,e.createHash),createProgram:t||TW,storeSignatureInfo:e.storeSignatureInfo,now:We(e,e.now)}}function v$(e=so,t,n,r){const i=t=>e.write(t+e.newLine),o=y$(e,t);return Ve(o,d$(e,r)),o.afterProgramCreate=e=>{const t=e.getCompilerOptions(),r=Eb(t);c$(e,n,i,(e=>o.onWatchStatusChange(Xx(YW(e),e),r,t,e)))},o}function b$(e,t,n){t(n),e.exit(1)}function x$({configFileName:e,optionsToExtend:t,watchOptionsToExtend:n,extraFileExtensions:r,system:i,createProgram:o,reportDiagnostic:a,reportWatchStatus:s}){const c=a||VW(i),l=v$(i,o,c,s);return l.onUnRecoverableConfigFileDiagnostic=e=>b$(i,c,e),l.configFileName=e,l.optionsToExtend=t,l.watchOptionsToExtend=n,l.extraFileExtensions=r,l}function k$({rootFiles:e,options:t,watchOptions:n,projectReferences:r,system:i,createProgram:o,reportDiagnostic:a,reportWatchStatus:s}){const c=v$(i,o,a||VW(i),s);return c.rootFiles=e,c.options=t,c.watchOptions=n,c.projectReferences=r,c}function S$(e){const t=e.system||so,n=e.host||(e.host=C$(e.options,t)),r=w$(e),i=l$(r,e.reportDiagnostic||VW(t),(e=>n.trace&&n.trace(e)),e.reportErrorSummary||e.options.pretty?(e,r)=>t.write(e$(e,r,t.newLine,n)):void 0);return e.afterProgramEmitAndDiagnostics&&e.afterProgramEmitAndDiagnostics(r),i}function T$(e,t){const n=Eq(e);if(!n)return;let r;if(t.getBuildInfo)r=t.getBuildInfo(n,e.configFilePath);else{const e=t.readFile(n);if(!e)return;r=Qq(n,e)}return r&&r.version===s&&aW(r)?vW(r,n,t):void 0}function C$(e,t=so){const n=wU(e,void 0,t);return n.createHash=We(t,t.createHash),n.storeSignatureInfo=t.storeSignatureInfo,h$(n),NU(n,(e=>qo(e,n.getCurrentDirectory(),n.getCanonicalFileName))),n}function w$({rootNames:e,options:t,configFileParsingDiagnostics:n,projectReferences:r,host:i,createProgram:o}){return(o=o||TW)(e,t,i=i||C$(t),T$(t,i),n,r)}function N$(e,t,n,r,i,o,a,s){return Qe(e)?k$({rootFiles:e,options:t,watchOptions:s,projectReferences:a,system:n,createProgram:r,reportDiagnostic:i,reportWatchStatus:o}):x$({configFileName:e,optionsToExtend:t,watchOptionsToExtend:a,extraFileExtensions:s,system:n,createProgram:r,reportDiagnostic:i,reportWatchStatus:o})}function D$(e){let t,n,r,i,o,a,s,c,l=new Map([[void 0,void 0]]),_=e.extendedConfigCache,u=!1;const d=new Map;let p,f=!1;const m=e.useCaseSensitiveFileNames(),g=e.getCurrentDirectory(),{configFileName:h,optionsToExtend:y={},watchOptionsToExtend:v,extraFileExtensions:b,createProgram:x}=e;let k,S,{rootFiles:T,options:C,watchOptions:w,projectReferences:N}=e,D=!1,F=!1;const E=void 0===h?void 0:sU(e,g,m),P=E||e,A=DV(e,P);let I=G();h&&e.configFileParsingResult&&(ce(e.configFileParsingResult),I=G()),ee(la.Starting_compilation_in_watch_mode),h&&!e.configFileParsingResult&&(I=Eb(y),un.assert(!T),se(),I=G()),un.assert(C),un.assert(T);const{watchFile:O,watchDirectory:L,writeLog:j}=f$(e,C),R=Wt(m);let M;j(`Current directory: ${g} CaseSensitiveFileNames: ${m}`),h&&(M=O(h,(function(){un.assert(!!h),n=2,ie()}),2e3,w,p$.ConfigFile));const B=m$(e,(()=>C),P);h$(B);const J=B.getSourceFile;B.getSourceFile=(e,...t)=>Y(e,X(e),...t),B.getSourceFileByPath=Y,B.getNewLine=()=>I,B.fileExists=function(e){const t=X(e);return!Q(d.get(t))&&P.fileExists(e)},B.onReleaseOldSourceFile=function(e,t,n){const r=d.get(e.resolvedPath);void 0!==r&&(Q(r)?(p||(p=[])).push(e.path):r.sourceFile===e&&(r.fileWatcher&&r.fileWatcher.close(),d.delete(e.resolvedPath),n||z.removeResolutionsOfFile(e.path)))},B.onReleaseParsedCommandLine=function(e){var t;const n=X(e),r=null==s?void 0:s.get(n);r&&(s.delete(n),r.watchedDirectories&&_x(r.watchedDirectories,vU),null==(t=r.watcher)||t.close(),_U(n,c))},B.toPath=X,B.getCompilationSettings=()=>C,B.useSourceOfProjectReferenceRedirect=We(e,e.useSourceOfProjectReferenceRedirect),B.preferNonRecursiveWatch=e.preferNonRecursiveWatch,B.watchDirectoryOfFailedLookupLocation=(e,t,n)=>L(e,t,n,w,p$.FailedLookupLocations),B.watchAffectingFileLocation=(e,t)=>O(e,t,2e3,w,p$.AffectingFileLocation),B.watchTypeRootsDirectory=(e,t,n)=>L(e,t,n,w,p$.TypeRoots),B.getCachedDirectoryStructureHost=()=>E,B.scheduleInvalidateResolutionsOfFailedLookupLocations=function(){if(!e.setTimeout||!e.clearTimeout)return z.invalidateResolutionsOfFailedLookupLocations();const t=ne();j("Scheduling invalidateFailedLookup"+(t?", Cancelled earlier one":"")),a=e.setTimeout(re,250,"timerToInvalidateFailedLookupResolutions")},B.onInvalidatedResolution=ie,B.onChangedAutomaticTypeDirectiveNames=ie,B.fileIsOpen=it,B.getCurrentProgram=H,B.writeLog=j,B.getParsedCommandLine=le;const z=zW(B,h?Do(Bo(h,g)):g,!1);B.resolveModuleNameLiterals=We(e,e.resolveModuleNameLiterals),B.resolveModuleNames=We(e,e.resolveModuleNames),B.resolveModuleNameLiterals||B.resolveModuleNames||(B.resolveModuleNameLiterals=z.resolveModuleNameLiterals.bind(z)),B.resolveTypeReferenceDirectiveReferences=We(e,e.resolveTypeReferenceDirectiveReferences),B.resolveTypeReferenceDirectives=We(e,e.resolveTypeReferenceDirectives),B.resolveTypeReferenceDirectiveReferences||B.resolveTypeReferenceDirectives||(B.resolveTypeReferenceDirectiveReferences=z.resolveTypeReferenceDirectiveReferences.bind(z)),B.resolveLibrary=e.resolveLibrary?e.resolveLibrary.bind(e):z.resolveLibrary.bind(z),B.getModuleResolutionCache=e.resolveModuleNameLiterals||e.resolveModuleNames?We(e,e.getModuleResolutionCache):()=>z.getModuleResolutionCache();const q=e.resolveModuleNameLiterals||e.resolveTypeReferenceDirectiveReferences||e.resolveModuleNames||e.resolveTypeReferenceDirectives?We(e,e.hasInvalidatedResolutions)||ot:it,U=e.resolveLibrary?We(e,e.hasInvalidatedLibResolutions)||ot:it;return t=T$(C,B),K(),h?{getCurrentProgram:$,getProgram:ae,close:V,getResolutionCache:W}:{getCurrentProgram:$,getProgram:ae,updateRootFileNames:function(e){un.assert(!h,"Cannot update root file names with config file watch mode"),T=e,ie()},close:V,getResolutionCache:W};function V(){ne(),z.clear(),_x(d,(e=>{e&&e.fileWatcher&&(e.fileWatcher.close(),e.fileWatcher=void 0)})),M&&(M.close(),M=void 0),null==_||_.clear(),_=void 0,c&&(_x(c,vU),c=void 0),i&&(_x(i,vU),i=void 0),r&&(_x(r,tx),r=void 0),s&&(_x(s,(e=>{var t;null==(t=e.watcher)||t.close(),e.watcher=void 0,e.watchedDirectories&&_x(e.watchedDirectories,vU),e.watchedDirectories=void 0})),s=void 0),t=void 0}function W(){return z}function $(){return t}function H(){return t&&t.getProgramOrUndefined()}function K(){j("Synchronizing program"),un.assert(C),un.assert(T),ne();const n=$();f&&(I=G(),n&&Qu(n.getCompilerOptions(),C)&&z.onChangesAffectModuleResolution());const{hasInvalidatedResolutions:o,hasInvalidatedLibResolutions:a}=z.createHasInvalidatedResolutions(q,U),{originalReadFile:c,originalFileExists:_,originalDirectoryExists:y,originalCreateDirectory:v,originalWriteFile:b,readFileWithCache:D}=NU(B,X);return mV(H(),T,C,(e=>function(e,t){const n=d.get(e);if(!n)return;if(n.version)return n.version;const r=t(e);return void 0!==r?g$(B,r):void 0}(e,D)),(e=>B.fileExists(e)),o,a,te,le,N)?F&&(u&&ee(la.File_change_detected_Starting_incremental_compilation),t=x(void 0,void 0,B,t,S,N),F=!1):(u&&ee(la.File_change_detected_Starting_incremental_compilation),function(e,n){j("CreatingProgramWith::"),j(` roots: ${JSON.stringify(T)}`),j(` options: ${JSON.stringify(C)}`),N&&j(` projectReferences: ${JSON.stringify(N)}`);const i=f||!H();f=!1,F=!1,z.startCachingPerDirectoryResolution(),B.hasInvalidatedResolutions=e,B.hasInvalidatedLibResolutions=n,B.hasChangedAutomaticTypeDirectiveNames=te;const o=H();if(t=x(T,C,B,t,S,N),z.finishCachingPerDirectoryResolution(t.getProgram(),o),dU(t.getProgram(),r||(r=new Map),pe),i&&z.updateTypeRootsWatch(),p){for(const e of p)r.has(e)||d.delete(e);p=void 0}}(o,a)),u=!1,e.afterProgramCreate&&n!==t&&e.afterProgramCreate(t),B.readFile=c,B.fileExists=_,B.directoryExists=y,B.createDirectory=v,B.writeFile=b,null==l||l.forEach(((e,t)=>{if(t){const n=null==s?void 0:s.get(t);n&&function(e,t,n){var r,i,o,a;n.watcher||(n.watcher=O(e,((n,r)=>{de(e,t,r);const i=null==s?void 0:s.get(t);i&&(i.updateLevel=2),z.removeResolutionsFromProjectReferenceRedirects(t),ie()}),2e3,(null==(r=n.parsedCommandLine)?void 0:r.watchOptions)||w,p$.ConfigFileOfReferencedProject)),pU(n.watchedDirectories||(n.watchedDirectories=new Map),null==(i=n.parsedCommandLine)?void 0:i.wildcardDirectories,((r,i)=>{var o;return L(r,(n=>{const i=X(n);E&&E.addOrDeleteFileOrDirectory(n,i),Z(i);const o=null==s?void 0:s.get(t);(null==o?void 0:o.parsedCommandLine)&&(fU({watchedDirPath:X(r),fileOrDirectory:n,fileOrDirectoryPath:i,configFileName:e,options:o.parsedCommandLine.options,program:o.parsedCommandLine.fileNames,currentDirectory:g,useCaseSensitiveFileNames:m,writeLog:j,toPath:X})||2!==o.updateLevel&&(o.updateLevel=1,ie()))}),i,(null==(o=n.parsedCommandLine)?void 0:o.watchOptions)||w,p$.WildcardDirectoryOfReferencedProject)})),ge(t,null==(o=n.parsedCommandLine)?void 0:o.options,(null==(a=n.parsedCommandLine)?void 0:a.watchOptions)||w,p$.ExtendedConfigOfReferencedProject)}(e,t,n)}else pU(i||(i=new Map),k,me),h&&ge(X(h),C,w,p$.ExtendedConfigFile)})),l=void 0,t}function G(){return Eb(C||y)}function X(e){return qo(e,g,R)}function Q(e){return"boolean"==typeof e}function Y(e,t,n,r,i){const o=d.get(t);if(Q(o))return;const a="object"==typeof n?n.impliedNodeFormat:void 0;if(void 0===o||i||function(e){return"boolean"==typeof e.version}(o)||o.sourceFile.impliedNodeFormat!==a){const i=J(e,n,r);if(o)i?(o.sourceFile=i,o.version=i.version,o.fileWatcher||(o.fileWatcher=_e(t,e,ue,250,w,p$.SourceFile))):(o.fileWatcher&&o.fileWatcher.close(),d.set(t,!1));else if(i){const n=_e(t,e,ue,250,w,p$.SourceFile);d.set(t,{sourceFile:i,version:i.version,fileWatcher:n})}else d.set(t,!1);return i}return o.sourceFile}function Z(e){const t=d.get(e);void 0!==t&&(Q(t)?d.set(e,{version:!1}):t.version=!1)}function ee(t){e.onWatchStatusChange&&e.onWatchStatusChange(Xx(t),I,C||y)}function te(){return z.hasChangedAutomaticTypeDirectiveNames()}function ne(){return!!a&&(e.clearTimeout(a),a=void 0,!0)}function re(){a=void 0,z.invalidateResolutionsOfFailedLookupLocations()&&ie()}function ie(){e.setTimeout&&e.clearTimeout&&(o&&e.clearTimeout(o),j("Scheduling update"),o=e.setTimeout(oe,250,"timerToUpdateProgram"))}function oe(){o=void 0,u=!0,ae()}function ae(){switch(n){case 1:j("Reloading new file names and options"),un.assert(C),un.assert(h),n=0,T=vj(C.configFile.configFileSpecs,Bo(Do(h),g),C,A,b),ej(T,Bo(h,g),C.configFile.configFileSpecs,S,D)&&(F=!0),K();break;case 2:un.assert(h),j(`Reloading config file: ${h}`),n=0,E&&E.clearCache(),se(),f=!0,(l??(l=new Map)).set(void 0,void 0),K();break;default:K()}return $()}function se(){un.assert(h),ce(QO(h,y,A,_||(_=new Map),v,b))}function ce(e){T=e.fileNames,C=e.options,w=e.watchOptions,N=e.projectReferences,k=e.wildcardDirectories,S=gV(e).slice(),D=ZL(e.raw),F=!0}function le(t){const n=X(t);let r=null==s?void 0:s.get(n);if(r){if(!r.updateLevel)return r.parsedCommandLine;if(r.parsedCommandLine&&1===r.updateLevel&&!e.getParsedCommandLine){j("Reloading new file names and options"),un.assert(C);const e=vj(r.parsedCommandLine.options.configFile.configFileSpecs,Bo(Do(t),g),C,A);return r.parsedCommandLine={...r.parsedCommandLine,fileNames:e},r.updateLevel=void 0,r.parsedCommandLine}}j(`Loading config file: ${t}`);const i=e.getParsedCommandLine?e.getParsedCommandLine(t):function(e){const t=A.onUnRecoverableConfigFileDiagnostic;A.onUnRecoverableConfigFileDiagnostic=rt;const n=QO(e,void 0,A,_||(_=new Map),v);return A.onUnRecoverableConfigFileDiagnostic=t,n}(t);return r?(r.parsedCommandLine=i,r.updateLevel=void 0):(s||(s=new Map)).set(n,r={parsedCommandLine:i}),(l??(l=new Map)).set(n,t),i}function _e(e,t,n,r,i,o){return O(t,((t,r)=>n(t,r,e)),r,i,o)}function ue(e,t,n){de(e,n,t),2===t&&d.has(n)&&z.invalidateResolutionOfFile(n),Z(n),ie()}function de(e,t,n){E&&E.addOrDeleteFile(e,t,n)}function pe(e,t){return(null==s?void 0:s.has(e))?_$:_e(e,t,fe,500,w,p$.MissingFile)}function fe(e,t,n){de(e,n,t),0===t&&r.has(n)&&(r.get(n).close(),r.delete(n),Z(n),ie())}function me(e,t){return L(e,(t=>{un.assert(h),un.assert(C);const r=X(t);E&&E.addOrDeleteFileOrDirectory(t,r),Z(r),fU({watchedDirPath:X(e),fileOrDirectory:t,fileOrDirectoryPath:r,configFileName:h,extraFileExtensions:b,options:C,program:$()||T,currentDirectory:g,useCaseSensitiveFileNames:m,writeLog:j,toPath:X})||2!==n&&(n=1,ie())}),t,w,p$.WildcardDirectory)}function ge(e,t,r,i){lU(e,t,c||(c=new Map),((e,t)=>O(e,((r,i)=>{var o;de(e,t,i),_&&uU(_,t,X);const a=null==(o=c.get(t))?void 0:o.projects;(null==a?void 0:a.size)&&a.forEach((e=>{if(h&&X(h)===e)n=2;else{const t=null==s?void 0:s.get(e);t&&(t.updateLevel=2),z.removeResolutionsFromProjectReferenceRedirects(e)}ie()}))}),2e3,r,i)),X)}}var F$=(e=>(e[e.Unbuildable=0]="Unbuildable",e[e.UpToDate=1]="UpToDate",e[e.UpToDateWithUpstreamTypes=2]="UpToDateWithUpstreamTypes",e[e.OutputMissing=3]="OutputMissing",e[e.ErrorReadingFile=4]="ErrorReadingFile",e[e.OutOfDateWithSelf=5]="OutOfDateWithSelf",e[e.OutOfDateWithUpstream=6]="OutOfDateWithUpstream",e[e.OutOfDateBuildInfoWithPendingEmit=7]="OutOfDateBuildInfoWithPendingEmit",e[e.OutOfDateBuildInfoWithErrors=8]="OutOfDateBuildInfoWithErrors",e[e.OutOfDateOptions=9]="OutOfDateOptions",e[e.OutOfDateRoots=10]="OutOfDateRoots",e[e.UpstreamOutOfDate=11]="UpstreamOutOfDate",e[e.UpstreamBlocked=12]="UpstreamBlocked",e[e.ComputingUpstream=13]="ComputingUpstream",e[e.TsVersionOutputOfDate=14]="TsVersionOutputOfDate",e[e.UpToDateWithInputFileText=15]="UpToDateWithInputFileText",e[e.ContainerOnly=16]="ContainerOnly",e[e.ForceBuild=17]="ForceBuild",e))(F$||{});function E$(e){return ko(e,".json")?e:jo(e,"tsconfig.json")}var P$=new Date(-864e13);function A$(e,t){return function(e,t){const n=e.get(t);let r;return n||(r=new Map,e.set(t,r)),n||r}(e,t)}function I$(e){return e.now?e.now():new Date}function O$(e){return!!e&&!!e.buildOrder}function L$(e){return O$(e)?e.buildOrder:e}function j$(e,t){return n=>{let r=t?`[${BU(HW(e),"")}] `:`${HW(e)} - `;r+=`${UU(n.messageText,e.newLine)}${e.newLine+e.newLine}`,e.write(r)}}function R$(e,t,n,r){const i=y$(e,t);return i.getModifiedTime=e.getModifiedTime?t=>e.getModifiedTime(t):at,i.setModifiedTime=e.setModifiedTime?(t,n)=>e.setModifiedTime(t,n):rt,i.deleteFile=e.deleteFile?t=>e.deleteFile(t):rt,i.reportDiagnostic=n||VW(e),i.reportSolutionBuilderStatus=r||j$(e),i.now=We(e,e.now),i}function M$(e=so,t,n,r,i){const o=R$(e,t,n,r);return o.reportErrorSummary=i,o}function B$(e=so,t,n,r,i){const o=R$(e,t,n,r);return Ve(o,d$(e,i)),o}function J$(e,t,n){return PH(!1,e,t,n)}function z$(e,t,n,r){return PH(!0,e,t,n,r)}function q$(e,t){return qo(t,e.compilerHost.getCurrentDirectory(),e.compilerHost.getCanonicalFileName)}function U$(e,t){const{resolvedConfigFilePaths:n}=e,r=n.get(t);if(void 0!==r)return r;const i=q$(e,t);return n.set(t,i),i}function V$(e){return!!e.options}function W$(e,t){const n=e.configFileCache.get(t);return n&&V$(n)?n:void 0}function $$(e,t,n){const{configFileCache:r}=e,i=r.get(n);if(i)return V$(i)?i:void 0;let o;tr("SolutionBuilder::beforeConfigFileParsing");const{parseConfigFileHost:a,baseCompilerOptions:s,baseWatchOptions:c,extendedConfigCache:l,host:_}=e;let u;return _.getParsedCommandLine?(u=_.getParsedCommandLine(t),u||(o=Xx(la.File_0_not_found,t))):(a.onUnRecoverableConfigFileDiagnostic=e=>o=e,u=QO(t,s,a,l,c),a.onUnRecoverableConfigFileDiagnostic=rt),r.set(n,u||o),tr("SolutionBuilder::afterConfigFileParsing"),nr("SolutionBuilder::Config file parsing","SolutionBuilder::beforeConfigFileParsing","SolutionBuilder::afterConfigFileParsing"),u}function H$(e,t){return E$(Ro(e.compilerHost.getCurrentDirectory(),t))}function K$(e,t){const n=new Map,r=new Map,i=[];let o,a;for(const e of t)s(e);return a?{buildOrder:o||l,circularDiagnostics:a}:o||l;function s(t,c){const l=U$(e,t);if(r.has(l))return;if(n.has(l))return void(c||(a||(a=[])).push(Xx(la.Project_references_may_not_form_a_circular_graph_Cycle_detected_Colon_0,i.join("\r\n"))));n.set(l,!0),i.push(t);const _=$$(e,t,l);if(_&&_.projectReferences)for(const t of _.projectReferences)s(H$(e,t.path),c||t.circular);i.pop(),r.set(l,!0),(o||(o=[])).push(t)}}function G$(e){return e.buildOrder||function(e){const t=K$(e,e.rootNames.map((t=>H$(e,t))));e.resolvedConfigFilePaths.clear();const n=new Set(L$(t).map((t=>U$(e,t)))),r={onDeleteValue:rt};return ux(e.configFileCache,n,r),ux(e.projectStatus,n,r),ux(e.builderPrograms,n,r),ux(e.diagnostics,n,r),ux(e.projectPendingBuild,n,r),ux(e.projectErrorsReported,n,r),ux(e.buildInfoCache,n,r),ux(e.outputTimeStamps,n,r),ux(e.lastCachedPackageJsonLookups,n,r),e.watch&&(ux(e.allWatchedConfigFiles,n,{onDeleteValue:tx}),e.allWatchedExtendedConfigFiles.forEach((e=>{e.projects.forEach((t=>{n.has(t)||e.projects.delete(t)})),e.close()})),ux(e.allWatchedWildcardDirectories,n,{onDeleteValue:e=>e.forEach(vU)}),ux(e.allWatchedInputFiles,n,{onDeleteValue:e=>e.forEach(tx)}),ux(e.allWatchedPackageJsonFiles,n,{onDeleteValue:e=>e.forEach(tx)})),e.buildOrder=t}(e)}function X$(e,t,n){const r=t&&H$(e,t),i=G$(e);if(O$(i))return i;if(r){const t=U$(e,r);if(-1===k(i,(n=>U$(e,n)===t)))return}const o=r?K$(e,[r]):i;return un.assert(!O$(o)),un.assert(!n||void 0!==r),un.assert(!n||o[o.length-1]===r),n?o.slice(0,o.length-1):o}function Q$(e){e.cache&&Y$(e);const{compilerHost:t,host:n}=e,r=e.readFileWithCache,i=t.getSourceFile,{originalReadFile:o,originalFileExists:a,originalDirectoryExists:s,originalCreateDirectory:c,originalWriteFile:l,getSourceFileWithCache:_,readFileWithCache:u}=NU(n,(t=>q$(e,t)),((...e)=>i.call(t,...e)));e.readFileWithCache=u,t.getSourceFile=_,e.cache={originalReadFile:o,originalFileExists:a,originalDirectoryExists:s,originalCreateDirectory:c,originalWriteFile:l,originalReadFileWithCache:r,originalGetSourceFile:i}}function Y$(e){if(!e.cache)return;const{cache:t,host:n,compilerHost:r,extendedConfigCache:i,moduleResolutionCache:o,typeReferenceDirectiveResolutionCache:a,libraryResolutionCache:s}=e;n.readFile=t.originalReadFile,n.fileExists=t.originalFileExists,n.directoryExists=t.originalDirectoryExists,n.createDirectory=t.originalCreateDirectory,n.writeFile=t.originalWriteFile,r.getSourceFile=t.originalGetSourceFile,e.readFileWithCache=t.originalReadFileWithCache,i.clear(),null==o||o.clear(),null==a||a.clear(),null==s||s.clear(),e.cache=void 0}function Z$(e,t){e.projectStatus.delete(t),e.diagnostics.delete(t)}function eH({projectPendingBuild:e},t,n){const r=e.get(t);(void 0===r||re.projectPendingBuild.set(U$(e,t),0))),t&&t.throwIfCancellationRequested())}var nH=(e=>(e[e.Build=0]="Build",e[e.UpdateOutputFileStamps=1]="UpdateOutputFileStamps",e))(nH||{});function rH(e,t){return e.projectPendingBuild.delete(t),e.diagnostics.has(t)?1:0}function iH(e,t,n){if(!e.projectPendingBuild.size)return;if(O$(t))return;const{options:r,projectPendingBuild:i}=e;for(let o=0;oi.options,getCurrentDirectory:()=>e.compilerHost.getCurrentDirectory(),getBuilderProgram:()=>u(st),getProgram:()=>u((e=>e.getProgramOrUndefined())),getSourceFile:e=>u((t=>t.getSourceFile(e))),getSourceFiles:()=>d((e=>e.getSourceFiles())),getOptionsDiagnostics:e=>d((t=>t.getOptionsDiagnostics(e))),getGlobalDiagnostics:e=>d((t=>t.getGlobalDiagnostics(e))),getConfigFileParsingDiagnostics:()=>d((e=>e.getConfigFileParsingDiagnostics())),getSyntacticDiagnostics:(e,t)=>d((n=>n.getSyntacticDiagnostics(e,t))),getAllDependencies:e=>d((t=>t.getAllDependencies(e))),getSemanticDiagnostics:(e,t)=>d((n=>n.getSemanticDiagnostics(e,t))),getSemanticDiagnosticsOfNextAffectedFile:(e,t)=>u((n=>n.getSemanticDiagnosticsOfNextAffectedFile&&n.getSemanticDiagnosticsOfNextAffectedFile(e,t))),emit:(n,r,i,o,a)=>n||o?u((s=>{var c,l;return s.emit(n,r,i,o,a||(null==(l=(c=e.host).getCustomTransformers)?void 0:l.call(c,t)))})):(m(0,i),f(r,i,a)),done:function(t,r,i){return m(3,t,r,i),tr("SolutionBuilder::Projects built"),rH(e,n)}};function u(e){return m(0),s&&e(s)}function d(e){return u(e)||l}function p(){var r,o,a;if(un.assert(void 0===s),e.options.dry)return IH(e,la.A_non_dry_build_would_build_project_0,t),c=1,void(_=2);if(e.options.verbose&&IH(e,la.Building_project_0,t),0===i.fileNames.length)return jH(e,n,gV(i)),c=0,void(_=2);const{host:l,compilerHost:u}=e;if(e.projectCompilerOptions=i.options,null==(r=e.moduleResolutionCache)||r.update(i.options),null==(o=e.typeReferenceDirectiveResolutionCache)||o.update(i.options),s=l.createProgram(i.fileNames,i.options,u,function({options:e,builderPrograms:t,compilerHost:n},r,i){if(!e.force)return t.get(r)||T$(i.options,n)}(e,n,i),gV(i),i.projectReferences),e.watch){const t=null==(a=e.moduleResolutionCache)?void 0:a.getPackageJsonInfoCache().getInternalMap();e.lastCachedPackageJsonLookups.set(n,t&&new Set(Oe(t.values(),(t=>e.host.realpath&&(iR(t)||t.directoryExists)?e.host.realpath(jo(t.packageDirectory,"package.json")):jo(t.packageDirectory,"package.json"))))),e.builderPrograms.set(n,s)}_++}function f(r,a,l){var u,d,p;un.assertIsDefined(s),un.assert(1===_);const{host:f,compilerHost:m}=e,g=new Map,h=s.getCompilerOptions(),y=Fk(h);let v,b;const{emitResult:x,diagnostics:k}=c$(s,(e=>f.reportDiagnostic(e)),e.write,void 0,((t,i,o,a,c,l)=>{var _;const u=q$(e,t);if(g.set(q$(e,t),t),null==l?void 0:l.buildInfo){b||(b=I$(e.host));const r=null==(_=s.hasChangedEmitSignature)?void 0:_.call(s),i=uH(e,t,n);i?(i.buildInfo=l.buildInfo,i.modifiedTime=b,r&&(i.latestChangedDtsTime=b)):e.buildInfoCache.set(n,{path:q$(e,t),buildInfo:l.buildInfo,modifiedTime:b,latestChangedDtsTime:r?b:void 0})}const d=(null==l?void 0:l.differsOnlyInMap)?qi(e.host,t):void 0;(r||m.writeFile)(t,i,o,a,c,l),(null==l?void 0:l.differsOnlyInMap)?e.host.setModifiedTime(t,d):!y&&e.watch&&(v||(v=_H(e,n))).set(u,b||(b=I$(e.host)))}),a,void 0,l||(null==(d=(u=e.host).getCustomTransformers)?void 0:d.call(u,t)));return h.noEmitOnError&&k.length||!g.size&&8===o.type||gH(e,i,n,la.Updating_unchanged_output_timestamps_of_project_0,g),e.projectErrorsReported.set(n,!0),c=(null==(p=s.hasChangedEmitSignature)?void 0:p.call(s))?0:2,k.length?(e.diagnostics.set(n,k),e.projectStatus.set(n,{type:0,reason:"it had errors"}),c|=4):(e.diagnostics.delete(n),e.projectStatus.set(n,{type:1,oldestOutputFileName:me(g.values())??Hq(i,!f.useCaseSensitiveFileNames())})),function(e,t){t&&(e.host.afterProgramEmitAndDiagnostics&&e.host.afterProgramEmitAndDiagnostics(t),t.releaseProgram()),e.projectCompilerOptions=e.baseCompilerOptions}(e,s),_=2,x}function m(o,s,l,u){for(;_<=o&&_<3;){const o=_;switch(_){case 0:p();break;case 1:f(l,s,u);break;case 2:vH(e,t,n,r,i,a,un.checkDefined(c)),_++}un.assert(_>o)}}}(e,t.project,t.projectPath,t.projectIndex,t.config,t.status,n):function(e,t,n,r,i){let o=!0;return{kind:1,project:t,projectPath:n,buildOrder:i,getCompilerOptions:()=>r.options,getCurrentDirectory:()=>e.compilerHost.getCurrentDirectory(),updateOutputFileStatmps:()=>{yH(e,r,n),o=!1},done:()=>(o&&yH(e,r,n),tr("SolutionBuilder::Timestamps only updates"),rH(e,n))}}(e,t.project,t.projectPath,t.config,n)}function aH(e,t,n){const r=iH(e,t,n);return r?oH(e,r,t):r}function sH(e){return!!e.watcher}function cH(e,t){const n=q$(e,t),r=e.filesWatched.get(n);if(e.watch&&r){if(!sH(r))return r;if(r.modifiedTime)return r.modifiedTime}const i=qi(e.host,t);return e.watch&&(r?r.modifiedTime=i:e.filesWatched.set(n,i)),i}function lH(e,t,n,r,i,o,a){const s=q$(e,t),c=e.filesWatched.get(s);if(c&&sH(c))c.callbacks.push(n);else{const l=e.watchFile(t,((t,n,r)=>{const i=un.checkDefined(e.filesWatched.get(s));un.assert(sH(i)),i.modifiedTime=r,i.callbacks.forEach((e=>e(t,n,r)))}),r,i,o,a);e.filesWatched.set(s,{callbacks:[n],watcher:l,modifiedTime:c})}return{close:()=>{const t=un.checkDefined(e.filesWatched.get(s));un.assert(sH(t)),1===t.callbacks.length?(e.filesWatched.delete(s),vU(t)):Vt(t.callbacks,n)}}}function _H(e,t){if(!e.watch)return;let n=e.outputTimeStamps.get(t);return n||e.outputTimeStamps.set(t,n=new Map),n}function uH(e,t,n){const r=q$(e,t),i=e.buildInfoCache.get(n);return(null==i?void 0:i.path)===r?i:void 0}function dH(e,t,n,r){const i=q$(e,t),o=e.buildInfoCache.get(n);if(void 0!==o&&o.path===i)return o.buildInfo||void 0;const a=e.readFileWithCache(t),s=a?Qq(t,a):void 0;return e.buildInfoCache.set(n,{path:i,buildInfo:s||!1,modifiedTime:r||zi}),s}function pH(e,t,n,r){if(nS&&(b=n,S=t),C.add(r)}if(v?(w||(w=bW(v,f,p)),N=td(w.roots,((e,t)=>C.has(t)?void 0:t))):N=d(xW(y,f,p),(e=>C.has(e)?void 0:e)),N)return{type:10,buildInfoFile:f,inputFile:N};if(!m){const r=Wq(t,!p.useCaseSensitiveFileNames()),i=_H(e,n);for(const t of r){if(t===f)continue;const n=q$(e,t);let r=null==i?void 0:i.get(n);if(r||(r=qi(e.host,t),null==i||i.set(n,r)),r===zi)return{type:3,missingOutputFileName:t};if(rpH(e,t,x,k)));if(E)return E;const P=e.lastCachedPackageJsonLookups.get(n);return P&&nd(P,(t=>pH(e,t,x,k)))||{type:D?2:T?15:1,newestInputFileTime:S,newestInputFileName:b,oldestOutputFileName:k}}(e,t,n);return tr("SolutionBuilder::afterUpToDateCheck"),nr("SolutionBuilder::Up-to-date check","SolutionBuilder::beforeUpToDateCheck","SolutionBuilder::afterUpToDateCheck"),e.projectStatus.set(n,i),i}function gH(e,t,n,r,i){if(t.options.noEmit)return;let o;const a=Eq(t.options),s=Fk(t.options);if(a&&s)return(null==i?void 0:i.has(q$(e,a)))||(e.options.verbose&&IH(e,r,t.options.configFilePath),e.host.setModifiedTime(a,o=I$(e.host)),uH(e,a,n).modifiedTime=o),void e.outputTimeStamps.delete(n);const{host:c}=e,l=Wq(t,!c.useCaseSensitiveFileNames()),_=_H(e,n),u=_?new Set:void 0;if(!i||l.length!==i.size){let s=!!e.options.verbose;for(const d of l){const l=q$(e,d);(null==i?void 0:i.has(l))||(s&&(s=!1,IH(e,r,t.options.configFilePath)),c.setModifiedTime(d,o||(o=I$(e.host))),d===a?uH(e,a,n).modifiedTime=o:_&&(_.set(l,o),u.add(l)))}}null==_||_.forEach(((e,t)=>{(null==i?void 0:i.has(t))||u.has(t)||_.delete(t)}))}function hH(e,t,n){if(!t.composite)return;const r=un.checkDefined(e.buildInfoCache.get(n));if(void 0!==r.latestChangedDtsTime)return r.latestChangedDtsTime||void 0;const i=r.buildInfo&&aW(r.buildInfo)&&r.buildInfo.latestChangedDtsFile?e.host.getModifiedTime(Bo(r.buildInfo.latestChangedDtsFile,Do(r.path))):void 0;return r.latestChangedDtsTime=i||!1,i}function yH(e,t,n){if(e.options.dry)return IH(e,la.A_non_dry_build_would_update_timestamps_for_output_of_project_0,t.options.configFilePath);gH(e,t,n,la.Updating_output_timestamps_of_project_0),e.projectStatus.set(n,{type:1,oldestOutputFileName:Hq(t,!e.host.useCaseSensitiveFileNames())})}function vH(e,t,n,r,i,o,a){if(!(e.options.stopBuildOnErrors&&4&a)&&i.options.composite)for(let i=r+1;ie.diagnostics.has(U$(e,t))))?c?2:1:0}(e,t,n,r,i,o);return tr("SolutionBuilder::afterBuild"),nr("SolutionBuilder::Build","SolutionBuilder::beforeBuild","SolutionBuilder::afterBuild"),a}function xH(e,t,n){tr("SolutionBuilder::beforeClean");const r=function(e,t,n){const r=X$(e,t,n);if(!r)return 3;if(O$(r))return LH(e,r.circularDiagnostics),4;const{options:i,host:o}=e,a=i.dry?[]:void 0;for(const t of r){const n=U$(e,t),r=$$(e,t,n);if(void 0===r){RH(e,n);continue}const i=Wq(r,!o.useCaseSensitiveFileNames());if(!i.length)continue;const s=new Set(r.fileNames.map((t=>q$(e,t))));for(const t of i)s.has(q$(e,t))||o.fileExists(t)&&(a?a.push(t):(o.deleteFile(t),kH(e,n,0)))}return a&&IH(e,la.A_non_dry_build_would_delete_the_following_files_Colon_0,a.map((e=>`\r\n * ${e}`)).join("")),0}(e,t,n);return tr("SolutionBuilder::afterClean"),nr("SolutionBuilder::Clean","SolutionBuilder::beforeClean","SolutionBuilder::afterClean"),r}function kH(e,t,n){e.host.getParsedCommandLine&&1===n&&(n=2),2===n&&(e.configFileCache.delete(t),e.buildOrder=void 0),e.needsSummary=!0,Z$(e,t),eH(e,t,n),Q$(e)}function SH(e,t,n){e.reportFileChangeDetected=!0,kH(e,t,n),TH(e,250,!0)}function TH(e,t,n){const{hostWithWatch:r}=e;r.setTimeout&&r.clearTimeout&&(e.timerToBuildInvalidatedProject&&r.clearTimeout(e.timerToBuildInvalidatedProject),e.timerToBuildInvalidatedProject=r.setTimeout(CH,t,"timerToBuildInvalidatedProject",e,n))}function CH(e,t,n){tr("SolutionBuilder::beforeBuild");const r=function(e,t){e.timerToBuildInvalidatedProject=void 0,e.reportFileChangeDetected&&(e.reportFileChangeDetected=!1,e.projectErrorsReported.clear(),OH(e,la.File_change_detected_Starting_incremental_compilation));let n=0;const r=G$(e),i=aH(e,r,!1);if(i)for(i.done(),n++;e.projectPendingBuild.size;){if(e.timerToBuildInvalidatedProject)return;const i=iH(e,r,!1);if(!i)break;if(1!==i.kind&&(t||5===n))return void TH(e,100,!1);oH(e,i,r).done(),1!==i.kind&&n++}return Y$(e),r}(t,n);tr("SolutionBuilder::afterBuild"),nr("SolutionBuilder::Build","SolutionBuilder::beforeBuild","SolutionBuilder::afterBuild"),r&&MH(t,r)}function wH(e,t,n,r){e.watch&&!e.allWatchedConfigFiles.has(n)&&e.allWatchedConfigFiles.set(n,lH(e,t,(()=>SH(e,n,2)),2e3,null==r?void 0:r.watchOptions,p$.ConfigFile,t))}function NH(e,t,n){lU(t,null==n?void 0:n.options,e.allWatchedExtendedConfigFiles,((t,r)=>lH(e,t,(()=>{var t;return null==(t=e.allWatchedExtendedConfigFiles.get(r))?void 0:t.projects.forEach((t=>SH(e,t,2)))}),2e3,null==n?void 0:n.watchOptions,p$.ExtendedConfigFile)),(t=>q$(e,t)))}function DH(e,t,n,r){e.watch&&pU(A$(e.allWatchedWildcardDirectories,n),r.wildcardDirectories,((i,o)=>e.watchDirectory(i,(o=>{var a;fU({watchedDirPath:q$(e,i),fileOrDirectory:o,fileOrDirectoryPath:q$(e,o),configFileName:t,currentDirectory:e.compilerHost.getCurrentDirectory(),options:r.options,program:e.builderPrograms.get(n)||(null==(a=W$(e,n))?void 0:a.fileNames),useCaseSensitiveFileNames:e.parseConfigFileHost.useCaseSensitiveFileNames,writeLog:t=>e.writeLog(t),toPath:t=>q$(e,t)})||SH(e,n,1)}),o,null==r?void 0:r.watchOptions,p$.WildcardDirectory,t)))}function FH(e,t,n,r){e.watch&&dx(A$(e.allWatchedInputFiles,n),new Set(r.fileNames),{createNewValue:i=>lH(e,i,(()=>SH(e,n,0)),250,null==r?void 0:r.watchOptions,p$.SourceFile,t),onDeleteValue:tx})}function EH(e,t,n,r){e.watch&&e.lastCachedPackageJsonLookups&&dx(A$(e.allWatchedPackageJsonFiles,n),e.lastCachedPackageJsonLookups.get(n),{createNewValue:i=>lH(e,i,(()=>SH(e,n,0)),2e3,null==r?void 0:r.watchOptions,p$.PackageJson,t),onDeleteValue:tx})}function PH(e,t,n,r,i){const o=function(e,t,n,r,i){const o=t,a=t,s=function(e){const t={};return uO.forEach((n=>{De(e,n.name)&&(t[n.name]=e[n.name])})),t.tscBuild=!0,t}(r),c=m$(o,(()=>m.projectCompilerOptions));let l,_,u;h$(c),c.getParsedCommandLine=e=>$$(m,e,U$(m,e)),c.resolveModuleNameLiterals=We(o,o.resolveModuleNameLiterals),c.resolveTypeReferenceDirectiveReferences=We(o,o.resolveTypeReferenceDirectiveReferences),c.resolveLibrary=We(o,o.resolveLibrary),c.resolveModuleNames=We(o,o.resolveModuleNames),c.resolveTypeReferenceDirectives=We(o,o.resolveTypeReferenceDirectives),c.getModuleResolutionCache=We(o,o.getModuleResolutionCache),c.resolveModuleNameLiterals||c.resolveModuleNames||(l=mR(c.getCurrentDirectory(),c.getCanonicalFileName),c.resolveModuleNameLiterals=(e,t,n,r,i)=>iV(e,t,n,r,i,o,l,eV),c.getModuleResolutionCache=()=>l),c.resolveTypeReferenceDirectiveReferences||c.resolveTypeReferenceDirectives||(_=gR(c.getCurrentDirectory(),c.getCanonicalFileName,void 0,null==l?void 0:l.getPackageJsonInfoCache(),null==l?void 0:l.optionsToRedirectsKey),c.resolveTypeReferenceDirectiveReferences=(e,t,n,r,i)=>iV(e,t,n,r,i,o,_,rV)),c.resolveLibrary||(u=mR(c.getCurrentDirectory(),c.getCanonicalFileName,void 0,null==l?void 0:l.getPackageJsonInfoCache()),c.resolveLibrary=(e,t,n)=>yR(e,t,n,o,u)),c.getBuildInfo=(e,t)=>dH(m,e,U$(m,t),void 0);const{watchFile:d,watchDirectory:p,writeLog:f}=f$(a,r),m={host:o,hostWithWatch:a,parseConfigFileHost:DV(o),write:We(o,o.trace),options:r,baseCompilerOptions:s,rootNames:n,baseWatchOptions:i,resolvedConfigFilePaths:new Map,configFileCache:new Map,projectStatus:new Map,extendedConfigCache:new Map,buildInfoCache:new Map,outputTimeStamps:new Map,builderPrograms:new Map,diagnostics:new Map,projectPendingBuild:new Map,projectErrorsReported:new Map,compilerHost:c,moduleResolutionCache:l,typeReferenceDirectiveResolutionCache:_,libraryResolutionCache:u,buildOrder:void 0,readFileWithCache:e=>o.readFile(e),projectCompilerOptions:s,cache:void 0,allProjectBuildPending:!0,needsSummary:!0,watchAllProjectsPending:e,watch:e,allWatchedWildcardDirectories:new Map,allWatchedInputFiles:new Map,allWatchedConfigFiles:new Map,allWatchedExtendedConfigFiles:new Map,allWatchedPackageJsonFiles:new Map,filesWatched:new Map,lastCachedPackageJsonLookups:new Map,timerToBuildInvalidatedProject:void 0,reportFileChangeDetected:!1,watchFile:d,watchDirectory:p,writeLog:f};return m}(e,t,n,r,i);return{build:(e,t,n,r)=>bH(o,e,t,n,r),clean:e=>xH(o,e),buildReferences:(e,t,n,r)=>bH(o,e,t,n,r,!0),cleanReferences:e=>xH(o,e,!0),getNextInvalidatedProject:e=>(tH(o,e),aH(o,G$(o),!1)),getBuildOrder:()=>G$(o),getUpToDateStatusOfProject:e=>{const t=H$(o,e),n=U$(o,t);return mH(o,$$(o,t,n),n)},invalidateProject:(e,t)=>kH(o,e,t||0),close:()=>function(e){_x(e.allWatchedConfigFiles,tx),_x(e.allWatchedExtendedConfigFiles,vU),_x(e.allWatchedWildcardDirectories,(e=>_x(e,vU))),_x(e.allWatchedInputFiles,(e=>_x(e,tx))),_x(e.allWatchedPackageJsonFiles,(e=>_x(e,tx)))}(o)}}function AH(e,t){return ra(t,e.compilerHost.getCurrentDirectory(),e.compilerHost.getCanonicalFileName)}function IH(e,t,...n){e.host.reportSolutionBuilderStatus(Xx(t,...n))}function OH(e,t,...n){var r,i;null==(i=(r=e.hostWithWatch).onWatchStatusChange)||i.call(r,Xx(t,...n),e.host.getNewLine(),e.baseCompilerOptions)}function LH({host:e},t){t.forEach((t=>e.reportDiagnostic(t)))}function jH(e,t,n){LH(e,n),e.projectErrorsReported.set(t,!0),n.length&&e.diagnostics.set(t,n)}function RH(e,t){jH(e,t,[e.configFileCache.get(t)])}function MH(e,t){if(!e.needsSummary)return;e.needsSummary=!1;const n=e.watch||!!e.host.reportErrorSummary,{diagnostics:r}=e;let i=0,o=[];O$(t)?(BH(e,t.buildOrder),LH(e,t.circularDiagnostics),n&&(i+=XW(t.circularDiagnostics)),n&&(o=[...o,...QW(t.circularDiagnostics)])):(t.forEach((t=>{const n=U$(e,t);e.projectErrorsReported.has(n)||LH(e,r.get(n)||l)})),n&&r.forEach((e=>i+=XW(e))),n&&r.forEach((e=>[...o,...QW(e)]))),e.watch?OH(e,YW(i),i):e.host.reportErrorSummary&&e.host.reportErrorSummary(i,o)}function BH(e,t){e.options.verbose&&IH(e,la.Projects_in_this_build_Colon_0,t.map((t=>"\r\n * "+AH(e,t))).join(""))}function JH(e,t,n){e.options.verbose&&function(e,t,n){switch(n.type){case 5:return IH(e,la.Project_0_is_out_of_date_because_output_1_is_older_than_input_2,AH(e,t),AH(e,n.outOfDateOutputFileName),AH(e,n.newerInputFileName));case 6:return IH(e,la.Project_0_is_out_of_date_because_output_1_is_older_than_input_2,AH(e,t),AH(e,n.outOfDateOutputFileName),AH(e,n.newerProjectName));case 3:return IH(e,la.Project_0_is_out_of_date_because_output_file_1_does_not_exist,AH(e,t),AH(e,n.missingOutputFileName));case 4:return IH(e,la.Project_0_is_out_of_date_because_there_was_error_reading_file_1,AH(e,t),AH(e,n.fileName));case 7:return IH(e,la.Project_0_is_out_of_date_because_buildinfo_file_1_indicates_that_some_of_the_changes_were_not_emitted,AH(e,t),AH(e,n.buildInfoFile));case 8:return IH(e,la.Project_0_is_out_of_date_because_buildinfo_file_1_indicates_that_program_needs_to_report_errors,AH(e,t),AH(e,n.buildInfoFile));case 9:return IH(e,la.Project_0_is_out_of_date_because_buildinfo_file_1_indicates_there_is_change_in_compilerOptions,AH(e,t),AH(e,n.buildInfoFile));case 10:return IH(e,la.Project_0_is_out_of_date_because_buildinfo_file_1_indicates_that_file_2_was_root_file_of_compilation_but_not_any_more,AH(e,t),AH(e,n.buildInfoFile),AH(e,n.inputFile));case 1:if(void 0!==n.newestInputFileTime)return IH(e,la.Project_0_is_up_to_date_because_newest_input_1_is_older_than_output_2,AH(e,t),AH(e,n.newestInputFileName||""),AH(e,n.oldestOutputFileName||""));break;case 2:return IH(e,la.Project_0_is_up_to_date_with_d_ts_files_from_its_dependencies,AH(e,t));case 15:return IH(e,la.Project_0_is_up_to_date_but_needs_to_update_timestamps_of_output_files_that_are_older_than_input_files,AH(e,t));case 11:return IH(e,la.Project_0_is_out_of_date_because_its_dependency_1_is_out_of_date,AH(e,t),AH(e,n.upstreamProjectName));case 12:return IH(e,n.upstreamProjectBlocked?la.Project_0_can_t_be_built_because_its_dependency_1_was_not_built:la.Project_0_can_t_be_built_because_its_dependency_1_has_errors,AH(e,t),AH(e,n.upstreamProjectName));case 0:return IH(e,la.Project_0_is_out_of_date_because_1,AH(e,t),n.reason);case 14:return IH(e,la.Project_0_is_out_of_date_because_output_for_it_was_generated_with_version_1_that_differs_with_current_version_2,AH(e,t),n.version,s);case 17:IH(e,la.Project_0_is_being_forcibly_rebuilt,AH(e,t))}}(e,t,n)}var zH=(e=>(e[e.time=0]="time",e[e.count=1]="count",e[e.memory=2]="memory",e))(zH||{});function qH(e,t,n){return VH(e,n)?VW(e,!0):t}function UH(e){return!!e.writeOutputIsTTY&&e.writeOutputIsTTY()&&!e.getEnvironmentVariable("NO_COLOR")}function VH(e,t){return t&&void 0!==t.pretty?t.pretty:UH(e)}function WH(e){return e.options.all?_e(mO.concat(wO),((e,t)=>St(e.name,t.name))):N(mO.concat(wO),(e=>!!e.showInSimplifiedHelpView))}function $H(e){e.write(XO(la.Version_0,s)+e.newLine)}function HH(e){if(!UH(e))return{bold:e=>e,blue:e=>e,blueBackground:e=>e,brightWhite:e=>e};const t=e.getEnvironmentVariable("OS")&&e.getEnvironmentVariable("OS").toLowerCase().includes("windows"),n=e.getEnvironmentVariable("WT_SESSION"),r=e.getEnvironmentVariable("TERM_PROGRAM")&&"vscode"===e.getEnvironmentVariable("TERM_PROGRAM"),i="truecolor"===e.getEnvironmentVariable("COLORTERM")||"xterm-256color"===e.getEnvironmentVariable("TERM");function o(e){return`${e}`}return{bold:function(e){return`${e}`},blue:function(e){return!t||n||r?`${e}`:o(e)},brightWhite:o,blueBackground:function(e){return i?`${e}`:`${e}`}}}function KH(e){return`--${e.name}${e.shortName?`, -${e.shortName}`:""}`}function GH(e,t,n,r){var i;const o=[],a=HH(e),s=KH(t),c=function(e){if("object"!==e.type)return{valueType:function(e){switch(un.assert("listOrElement"!==e.type),e.type){case"string":case"number":case"boolean":return XO(la.type_Colon);case"list":return XO(la.one_or_more_Colon);default:return XO(la.one_of_Colon)}}(e),possibleValues:function e(t){let n;switch(t.type){case"string":case"number":case"boolean":n=t.type;break;case"list":case"listOrElement":n=e(t.element);break;case"object":n="";break;default:const r={};return t.type.forEach(((e,n)=>{var i;(null==(i=t.deprecatedKeys)?void 0:i.has(n))||(r[e]||(r[e]=[])).push(n)})),Object.entries(r).map((([,e])=>e.join("/"))).join(", ")}return n}(e)}}(t),l="object"==typeof t.defaultValueDescription?XO(t.defaultValueDescription):(_=t.defaultValueDescription,u="list"===t.type||"listOrElement"===t.type?t.element.type:t.type,void 0!==_&&"object"==typeof u?Oe(u.entries()).filter((([,e])=>e===_)).map((([e])=>e)).join("/"):String(_));var _,u;const d=(null==(i=e.getWidthOfTerminal)?void 0:i.call(e))??0;if(d>=80){let i="";t.description&&(i=XO(t.description)),o.push(...f(s,i,n,r,d,!0),e.newLine),p(c,t)&&(c&&o.push(...f(c.valueType,c.possibleValues,n,r,d,!1),e.newLine),l&&o.push(...f(XO(la.default_Colon),l,n,r,d,!1),e.newLine)),o.push(e.newLine)}else{if(o.push(a.blue(s),e.newLine),t.description){const e=XO(t.description);o.push(e)}if(o.push(e.newLine),p(c,t)){if(c&&o.push(`${c.valueType} ${c.possibleValues}`),l){c&&o.push(e.newLine);const t=XO(la.default_Colon);o.push(`${t} ${l}`)}o.push(e.newLine)}o.push(e.newLine)}return o;function p(e,t){const n=t.defaultValueDescription;return!(t.category===la.Command_line_Options||T(["string"],null==e?void 0:e.possibleValues)&&T([void 0,"false","n/a"],n))}function f(e,t,n,r,i,o){const s=[];let c=!0,l=t;const _=i-r;for(;l.length>0;){let t="";c?(t=e.padStart(n),t=t.padEnd(r),t=o?a.blue(t):t):t="".padStart(r);const i=l.substr(0,_);l=l.slice(_),s.push(`${t}${i}`),c=!1}return s}}function XH(e,t){let n=0;for(const e of t){const t=KH(e).length;n=n>t?n:t}const r=n+2,i=r+2;let o=[];for(const n of t){const t=GH(e,n,r,i);o=[...o,...t]}return o[o.length-2]!==e.newLine&&o.push(e.newLine),o}function QH(e,t,n,r,i,o){let a=[];if(a.push(HH(e).bold(t)+e.newLine+e.newLine),i&&a.push(i+e.newLine+e.newLine),!r)return a=[...a,...XH(e,n)],o&&a.push(o+e.newLine+e.newLine),a;const s=new Map;for(const e of n){if(!e.category)continue;const t=XO(e.category),n=s.get(t)??[];n.push(e),s.set(t,n)}return s.forEach(((t,n)=>{a.push(`### ${n}${e.newLine}${e.newLine}`),a=[...a,...XH(e,t)]})),o&&a.push(o+e.newLine+e.newLine),a}function YH(e,t){let n=[...ZH(e,`${XO(la.tsc_Colon_The_TypeScript_Compiler)} - ${XO(la.Version_0,s)}`)];n=[...n,...QH(e,XO(la.BUILD_OPTIONS),N(t,(e=>e!==wO)),!1,Gx(la.Using_build_b_will_make_tsc_behave_more_like_a_build_orchestrator_than_a_compiler_This_is_used_to_trigger_building_composite_projects_which_you_can_learn_more_about_at_0,"https://aka.ms/tsc-composite-builds"))];for(const t of n)e.write(t)}function ZH(e,t){var n;const r=HH(e),i=[],o=(null==(n=e.getWidthOfTerminal)?void 0:n.call(e))??0,a=r.blueBackground("".padStart(5)),s=r.blueBackground(r.brightWhite("TS ".padStart(5)));if(o>=t.length+5){const n=(o>120?120:o)-5;i.push(t.padEnd(n)+a+e.newLine),i.push("".padStart(n)+s+e.newLine)}else i.push(t+e.newLine),i.push(e.newLine);return i}function eK(e,t){t.options.all?function(e,t,n,r){let i=[...ZH(e,`${XO(la.tsc_Colon_The_TypeScript_Compiler)} - ${XO(la.Version_0,s)}`)];i=[...i,...QH(e,XO(la.ALL_COMPILER_OPTIONS),t,!0,void 0,Gx(la.You_can_learn_about_all_of_the_compiler_options_at_0,"https://aka.ms/tsc"))],i=[...i,...QH(e,XO(la.WATCH_OPTIONS),r,!1,XO(la.Including_watch_w_will_start_watching_the_current_project_for_the_file_changes_Once_set_you_can_config_watch_mode_with_Colon))],i=[...i,...QH(e,XO(la.BUILD_OPTIONS),N(n,(e=>e!==wO)),!1,Gx(la.Using_build_b_will_make_tsc_behave_more_like_a_build_orchestrator_than_a_compiler_This_is_used_to_trigger_building_composite_projects_which_you_can_learn_more_about_at_0,"https://aka.ms/tsc-composite-builds"))];for(const t of i)e.write(t)}(e,WH(t),NO,_O):function(e,t){const n=HH(e);let r=[...ZH(e,`${XO(la.tsc_Colon_The_TypeScript_Compiler)} - ${XO(la.Version_0,s)}`)];r.push(n.bold(XO(la.COMMON_COMMANDS))+e.newLine+e.newLine),a("tsc",la.Compiles_the_current_project_tsconfig_json_in_the_working_directory),a("tsc app.ts util.ts",la.Ignoring_tsconfig_json_compiles_the_specified_files_with_default_compiler_options),a("tsc -b",la.Build_a_composite_project_in_the_working_directory),a("tsc --init",la.Creates_a_tsconfig_json_with_the_recommended_settings_in_the_working_directory),a("tsc -p ./path/to/tsconfig.json",la.Compiles_the_TypeScript_project_located_at_the_specified_path),a("tsc --help --all",la.An_expanded_version_of_this_information_showing_all_possible_compiler_options),a(["tsc --noEmit","tsc --target esnext"],la.Compiles_the_current_project_with_additional_settings);const i=t.filter((e=>e.isCommandLineOnly||e.category===la.Command_line_Options)),o=t.filter((e=>!T(i,e)));r=[...r,...QH(e,XO(la.COMMAND_LINE_FLAGS),i,!1,void 0,void 0),...QH(e,XO(la.COMMON_COMPILER_OPTIONS),o,!1,void 0,Gx(la.You_can_learn_about_all_of_the_compiler_options_at_0,"https://aka.ms/tsc"))];for(const t of r)e.write(t);function a(t,i){const o="string"==typeof t?[t]:t;for(const t of o)r.push(" "+n.blue(t)+e.newLine);r.push(" "+XO(i)+e.newLine+e.newLine)}}(e,WH(t))}function tK(e,t,n){let r,i=VW(e);if(n.options.locale&&cc(n.options.locale,e,n.errors),n.errors.length>0)return n.errors.forEach(i),e.exit(1);if(n.options.init)return function(e,t,n,r){const i=Jo(jo(e.getCurrentDirectory(),"tsconfig.json"));if(e.fileExists(i))t(Xx(la.A_tsconfig_json_file_is_already_defined_at_Colon_0,i));else{e.writeFile(i,IL(n,r,e.newLine));const t=[e.newLine,...ZH(e,"Created a new tsconfig.json with:")];t.push(PL(n,e.newLine)+e.newLine+e.newLine),t.push("You can learn more at https://aka.ms/tsconfig"+e.newLine);for(const n of t)e.write(n)}}(e,i,n.options,n.fileNames),e.exit(0);if(n.options.version)return $H(e),e.exit(0);if(n.options.help||n.options.all)return eK(e,n),e.exit(0);if(n.options.watch&&n.options.listFilesOnly)return i(Xx(la.Options_0_and_1_cannot_be_combined,"watch","listFilesOnly")),e.exit(1);if(n.options.project){if(0!==n.fileNames.length)return i(Xx(la.Option_project_cannot_be_mixed_with_source_files_on_a_command_line)),e.exit(1);const t=Jo(n.options.project);if(!t||e.directoryExists(t)){if(r=jo(t,"tsconfig.json"),!e.fileExists(r))return i(Xx(la.Cannot_find_a_tsconfig_json_file_at_the_specified_directory_Colon_0,n.options.project)),e.exit(1)}else if(r=t,!e.fileExists(r))return i(Xx(la.The_specified_path_does_not_exist_Colon_0,n.options.project)),e.exit(1)}else 0===n.fileNames.length&&(r=bU(Jo(e.getCurrentDirectory()),(t=>e.fileExists(t))));if(0===n.fileNames.length&&!r)return n.options.showConfig?i(Xx(la.Cannot_find_a_tsconfig_json_file_at_the_current_directory_Colon_0,Jo(e.getCurrentDirectory()))):($H(e),eK(e,n)),e.exit(1);const o=e.getCurrentDirectory(),a=OL(n.options,(e=>Bo(e,o)));if(r){const o=new Map,s=GW(r,a,o,n.watchOptions,e,i);if(a.showConfig)return 0!==s.errors.length?(i=qH(e,i,s.options),s.errors.forEach(i),e.exit(1)):(e.write(JSON.stringify(SL(s,r,e),null,4)+e.newLine),e.exit(0));if(i=qH(e,i,s.options),ex(s.options)){if(iK(e,i))return;return function(e,t,n,r,i,o,a){const s=x$({configFileName:r.options.configFilePath,optionsToExtend:i,watchOptionsToExtend:o,system:e,reportDiagnostic:n,reportWatchStatus:pK(e,r.options)});return dK(e,t,s),s.configFileParsingResult=r,s.extendedConfigCache=a,D$(s)}(e,t,i,s,a,n.watchOptions,o)}Fk(s.options)?lK(e,t,i,s):cK(e,t,i,s)}else{if(a.showConfig)return e.write(JSON.stringify(SL(n,jo(o,"tsconfig.json"),e),null,4)+e.newLine),e.exit(0);if(i=qH(e,i,a),ex(a)){if(iK(e,i))return;return function(e,t,n,r,i,o){const a=k$({rootFiles:r,options:i,watchOptions:o,system:e,reportDiagnostic:n,reportWatchStatus:pK(e,i)});return dK(e,t,a),D$(a)}(e,t,i,n.fileNames,a,n.watchOptions)}Fk(a)?lK(e,t,i,{...n,options:a}):cK(e,t,i,{...n,options:a})}}function nK(e){if(e.length>0&&45===e[0].charCodeAt(0)){const t=e[0].slice(45===e[0].charCodeAt(1)?2:1).toLowerCase();return t===wO.name||t===wO.shortName}return!1}function rK(e,t,n){if(nK(n)){const{buildOptions:r,watchOptions:i,projects:o,errors:a}=GO(n);if(!r.generateCpuProfile||!e.enableCPUProfiler)return aK(e,t,r,i,o,a);e.enableCPUProfiler(r.generateCpuProfile,(()=>aK(e,t,r,i,o,a)))}const r=VO(n,(t=>e.readFile(t)));if(!r.options.generateCpuProfile||!e.enableCPUProfiler)return tK(e,t,r);e.enableCPUProfiler(r.options.generateCpuProfile,(()=>tK(e,t,r)))}function iK(e,t){return!(e.watchFile&&e.watchDirectory||(t(Xx(la.The_current_host_does_not_support_the_0_option,"--watch")),e.exit(1),0))}var oK=2;function aK(e,t,n,r,i,o){const a=qH(e,VW(e),n);if(n.locale&&cc(n.locale,e,o),o.length>0)return o.forEach(a),e.exit(1);if(n.help)return $H(e),YH(e,DO),e.exit(0);if(0===i.length)return $H(e),YH(e,DO),e.exit(0);if(!e.getModifiedTime||!e.setModifiedTime||n.clean&&!e.deleteFile)return a(Xx(la.The_current_host_does_not_support_the_0_option,"--build")),e.exit(1);if(n.watch){if(iK(e,a))return;const o=B$(e,void 0,a,j$(e,VH(e,n)),pK(e,n));o.jsDocParsingMode=oK;const s=fK(e,n);_K(e,t,o,s);const c=o.onWatchStatusChange;let l=!1;o.onWatchStatusChange=(e,t,n,r)=>{null==c||c(e,t,n,r),!l||e.code!==la.Found_0_errors_Watching_for_file_changes.code&&e.code!==la.Found_1_error_Watching_for_file_changes.code||mK(_,s)};const _=z$(o,i,n,r);return _.build(),mK(_,s),l=!0,_}const s=M$(e,void 0,a,j$(e,VH(e,n)),sK(e,n));s.jsDocParsingMode=oK;const c=fK(e,n);_K(e,t,s,c);const l=J$(s,i,n),_=n.clean?l.clean():l.build();return mK(l,c),pr(),e.exit(_)}function sK(e,t){return VH(e,t)?(t,n)=>e.write(e$(t,n,e.newLine,e)):void 0}function cK(e,t,n,r){const{fileNames:i,options:o,projectReferences:a}=r,s=wU(o,void 0,e);s.jsDocParsingMode=oK;const c=s.getCurrentDirectory(),l=Wt(s.useCaseSensitiveFileNames());NU(s,(e=>qo(e,c,l))),yK(e,o,!1);const _=bV({rootNames:i,options:o,projectReferences:a,host:s,configFileParsingDiagnostics:gV(r)}),u=l$(_,n,(t=>e.write(t+e.newLine)),sK(e,o));return bK(e,_,void 0),t(_),e.exit(u)}function lK(e,t,n,r){const{options:i,fileNames:o,projectReferences:a}=r;yK(e,i,!1);const s=C$(i,e);s.jsDocParsingMode=oK;const c=S$({host:s,system:e,rootNames:o,options:i,configFileParsingDiagnostics:gV(r),projectReferences:a,reportDiagnostic:n,reportErrorSummary:sK(e,i),afterProgramEmitAndDiagnostics:n=>{bK(e,n.getProgram(),void 0),t(n)}});return e.exit(c)}function _K(e,t,n,r){uK(e,n,!0),n.afterProgramEmitAndDiagnostics=n=>{bK(e,n.getProgram(),r),t(n)}}function uK(e,t,n){const r=t.createProgram;t.createProgram=(t,i,o,a,s,c)=>(un.assert(void 0!==t||void 0===i&&!!a),void 0!==i&&yK(e,i,n),r(t,i,o,a,s,c))}function dK(e,t,n){n.jsDocParsingMode=oK,uK(e,n,!1);const r=n.afterProgramCreate;n.afterProgramCreate=n=>{r(n),bK(e,n.getProgram(),void 0),t(n)}}function pK(e,t){return KW(e,VH(e,t))}function fK(e,t){if(e===so&&t.extendedDiagnostics)return _r(),function(){let e;return{addAggregateStatistic:function(t){const n=null==e?void 0:e.get(t.name);n?2===n.type?n.value=Math.max(n.value,t.value):n.value+=t.value:(e??(e=new Map)).set(t.name,t)},forEachAggregateStatistics:function(t){null==e||e.forEach(t)},clear:function(){e=void 0}}}()}function mK(e,t){if(!t)return;if(!lr())return void so.write(la.Performance_timings_for_diagnostics_or_extendedDiagnostics_are_not_available_in_this_session_A_native_implementation_of_the_Web_Performance_API_could_not_be_found.message+"\n");const n=[];function r(e){const t=rr(e);t&&n.push({name:i(e),value:t,type:1})}function i(e){return e.replace("SolutionBuilder::","")}n.push({name:"Projects in scope",value:L$(e.getBuildOrder()).length,type:1}),r("SolutionBuilder::Projects built"),r("SolutionBuilder::Timestamps only updates"),r("SolutionBuilder::Bundles updated"),t.forEachAggregateStatistics((e=>{e.name=`Aggregate ${e.name}`,n.push(e)})),or(((e,t)=>{vK(e)&&n.push({name:`${i(e)} time`,value:t,type:0})})),ur(),_r(),t.clear(),xK(so,n)}function gK(e,t){return e===so&&(t.diagnostics||t.extendedDiagnostics)}function hK(e,t){return e===so&&t.generateTrace}function yK(e,t,n){gK(e,t)&&_r(e),hK(e,t)&&dr(n?"build":"project",t.generateTrace,t.configFilePath)}function vK(e){return Gt(e,"SolutionBuilder::")}function bK(e,t,n){var r;const i=t.getCompilerOptions();let o;if(hK(e,i)&&(null==(r=Hn)||r.stopTracing()),gK(e,i)){o=[];const r=e.getMemoryUsage?e.getMemoryUsage():-1;s("Files",t.getSourceFiles().length);const l=function(e){const t=function(){const e=new Map;return e.set("Library",0),e.set("Definitions",0),e.set("TypeScript",0),e.set("JavaScript",0),e.set("JSON",0),e.set("Other",0),e}();return d(e.getSourceFiles(),(n=>{const r=function(e,t){if(e.isSourceFileDefaultLibrary(t))return"Library";if(t.isDeclarationFile)return"Definitions";const n=t.path;return So(n,xS)?"TypeScript":So(n,TS)?"JavaScript":ko(n,".json")?"JSON":"Other"}(e,n),i=ja(n).length;t.set(r,t.get(r)+i)})),t}(t);if(i.extendedDiagnostics)for(const[e,t]of l.entries())s("Lines of "+e,t);else s("Lines",g(l.values(),((e,t)=>e+t),0));s("Identifiers",t.getIdentifierCount()),s("Symbols",t.getSymbolCount()),s("Types",t.getTypeCount()),s("Instantiations",t.getInstantiationCount()),r>=0&&a({name:"Memory used",value:r,type:2},!0);const _=lr(),u=_?ir("Program"):0,p=_?ir("Bind"):0,f=_?ir("Check"):0,m=_?ir("Emit"):0;if(i.extendedDiagnostics){const e=t.getRelationCacheSizes();s("Assignability cache size",e.assignable),s("Identity cache size",e.identity),s("Subtype cache size",e.subtype),s("Strict subtype cache size",e.strictSubtype),_&&or(((e,t)=>{vK(e)||c(`${e} time`,t,!0)}))}else _&&(c("I/O read",ir("I/O Read"),!0),c("I/O write",ir("I/O Write"),!0),c("Parse time",u,!0),c("Bind time",p,!0),c("Check time",f,!0),c("Emit time",m,!0));_&&c("Total time",u+p+f+m,!1),xK(e,o),_?n?(or((e=>{vK(e)||sr(e)})),ar((e=>{vK(e)||cr(e)}))):ur():e.write(la.Performance_timings_for_diagnostics_or_extendedDiagnostics_are_not_available_in_this_session_A_native_implementation_of_the_Web_Performance_API_could_not_be_found.message+"\n")}function a(e,t){o.push(e),t&&(null==n||n.addAggregateStatistic(e))}function s(e,t){a({name:e,value:t,type:1},!0)}function c(e,t,n){a({name:e,value:t,type:0},n)}}function xK(e,t){let n=0,r=0;for(const e of t){e.name.length>n&&(n=e.name.length);const t=kK(e);t.length>r&&(r=t.length)}for(const i of t)e.write(`${i.name}:`.padEnd(n+2)+kK(i).toString().padStart(r)+e.newLine)}function kK(e){switch(e.type){case 1:return""+e.value;case 0:return(e.value/1e3).toFixed(2)+"s";case 2:return Math.round(e.value/1e3)+"K";default:un.assertNever(e.type)}}function SK(e,t=!0){return{type:e,reportFallback:t}}var TK=SK(void 0,!1),CK=SK(void 0,!1),wK=SK(void 0,!0);function NK(e,t){const n=Mk(e,"strictNullChecks");return{serializeTypeOfDeclaration:function(e,n,r){switch(e.kind){case 169:case 341:return u(e,n,r);case 260:return function(e,n,r){var i;const o=pv(e);let s=wK;return o?s=SK(a(o,r,e,n)):!e.initializer||1!==(null==(i=n.declarations)?void 0:i.length)&&1!==w(n.declarations,VF)||t.isExpandoFunctionDeclaration(e)||F(e)||(s=h(e.initializer,r,void 0,void 0,of(e))),void 0!==s.type?s.type:d(e,n,r,s.reportFallback)}(e,n,r);case 171:case 348:case 172:return function(e,n,r){const i=pv(e),o=t.requiresAddingImplicitUndefined(e,n,r.enclosingDeclaration);let s=wK;if(i)s=SK(a(i,r,e,n,o));else{const t=cD(e)?e.initializer:void 0;t&&!F(e)&&(s=h(t,r,void 0,o,ef(e)))}return void 0!==s.type?s.type:d(e,n,r,s.reportFallback)}(e,n,r);case 208:return d(e,n,r);case 277:return l(e.expression,r,void 0,!0);case 211:case 212:case 226:return function(e,t,n){const r=pv(e);let i;r&&(i=a(r,n,e,t));const o=n.suppressReportInferenceFallback;n.suppressReportInferenceFallback=!0;const s=i??d(e,t,n,!1);return n.suppressReportInferenceFallback=o,s}(e,n,r);case 303:case 304:return function(e,n,r){const i=pv(e);let a;if(i&&t.canReuseTypeNodeAnnotation(r,e,i,n)&&(a=o(i,r)),!a&&303===e.kind){const t=e.initializer,n=oA(t)?aA(t):234===t.kind||216===t.kind?t.type:void 0;n&&!xl(n)&&(a=o(n,r))}return a??d(e,n,r,!1)}(e,n,r);default:un.assertNever(e,`Node needs to be an inferrable node, found ${un.formatSyntaxKind(e.kind)}`)}},serializeReturnTypeForSignature:function(e,t,n){switch(e.kind){case 177:return c(e,t,n);case 174:case 262:case 180:case 173:case 179:case 176:case 178:case 181:case 184:case 185:case 218:case 219:case 317:case 323:return D(e,t,n);default:un.assertNever(e,`Node needs to be an inferrable node, found ${un.formatSyntaxKind(e.kind)}`)}},serializeTypeOfExpression:l,serializeTypeOfAccessor:c,tryReuseExistingTypeNode(e,n){if(t.canReuseTypeNode(e,n))return i(e,n)}};function r(e,n,r=n){return void 0===n?void 0:t.markNodeReuse(e,16&n.flags?n:XC.cloneNode(n),r??n)}function i(n,r){const{finalizeBoundary:i,startRecoveryScope:o,hadError:a,markError:s}=t.createRecoveryBoundary(n),c=$B(r,l,v_);if(i())return n.approximateLength+=r.end-r.pos,c;function l(r){if(a())return r;const i=o(),c=DC(r)?t.enterNewScope(n,r):void 0,_=function(r){var i;if(VE(r))return $B(r.type,l,v_);if(XE(r)||319===r.kind)return XC.createKeywordTypeNode(133);if(QE(r))return XC.createKeywordTypeNode(159);if(YE(r))return XC.createUnionTypeNode([$B(r.type,l,v_),XC.createLiteralTypeNode(XC.createNull())]);if(eP(r))return XC.createUnionTypeNode([$B(r.type,l,v_),XC.createKeywordTypeNode(157)]);if(ZE(r))return $B(r.type,l);if(nP(r))return XC.createArrayTypeNode($B(r.type,l,v_));if(oP(r))return XC.createTypeLiteralNode(E(r.jsDocPropertyTags,(e=>{const i=$B(zN(e.name)?e.name:e.name.right,l,zN),o=t.getJsDocPropertyOverride(n,r,e);return XC.createPropertySignature(void 0,i,e.isBracketed||e.typeExpression&&eP(e.typeExpression.type)?XC.createToken(58):void 0,o||e.typeExpression&&$B(e.typeExpression.type,l,v_)||XC.createKeywordTypeNode(133))})));if(vD(r)&&zN(r.typeName)&&""===r.typeName.escapedText)return YC(XC.createKeywordTypeNode(133),r);if((mF(r)||vD(r))&&Im(r))return XC.createTypeLiteralNode([XC.createIndexSignature(void 0,[XC.createParameterDeclaration(void 0,void 0,"x",void 0,$B(r.typeArguments[0],l,v_))],$B(r.typeArguments[1],l,v_))]);if(tP(r)){if(wg(r)){let e;return XC.createConstructorTypeNode(void 0,HB(r.typeParameters,l,iD),B(r.parameters,((r,i)=>r.name&&zN(r.name)&&"new"===r.name.escapedText?void(e=r.type):XC.createParameterDeclaration(void 0,c(r),t.markNodeReuse(n,XC.createIdentifier(_(r,i)),r),XC.cloneNode(r.questionToken),$B(r.type,l,v_),void 0))),$B(e||r.type,l,v_)||XC.createKeywordTypeNode(133))}return XC.createFunctionTypeNode(HB(r.typeParameters,l,iD),E(r.parameters,((e,r)=>XC.createParameterDeclaration(void 0,c(e),t.markNodeReuse(n,XC.createIdentifier(_(e,r)),e),XC.cloneNode(e.questionToken),$B(e.type,l,v_),void 0))),$B(r.type,l,v_)||XC.createKeywordTypeNode(133))}if(OD(r))return t.canReuseTypeNode(n,r)||s(),r;if(iD(r)){const{node:e}=t.trackExistingEntityName(n,r.name);return XC.updateTypeParameterDeclaration(r,HB(r.modifiers,l,Yl),e,$B(r.constraint,l,v_),$B(r.default,l,v_))}if(jD(r)){return u(r)||(s(),r)}if(vD(r)){return f(r)||(s(),r)}if(_f(r))return 132===(null==(i=r.attributes)?void 0:i.token)?(s(),r):t.canReuseTypeNode(n,r)?XC.updateImportTypeNode(r,XC.updateLiteralTypeNode(r.argument,function(e,r){const i=t.getModuleSpecifierOverride(n,e,r);return i?YC(XC.createStringLiteral(i),r):$B(r,l,TN)}(r,r.argument.literal)),$B(r.attributes,l,sE),$B(r.qualifier,l,Zl),HB(r.typeArguments,l,v_),r.isTypeOf):t.serializeExistingTypeNode(n,r);if(kc(r)&&167===r.name.kind&&!t.hasLateBindableName(r)){if(!Rh(r))return o(r,l);if(t.shouldRemoveDeclaration(n,r))return}if(n_(r)&&!r.type||cD(r)&&!r.type&&!r.initializer||sD(r)&&!r.type&&!r.initializer||oD(r)&&!r.type&&!r.initializer){let e=o(r,l);return e===r&&(e=t.markNodeReuse(n,XC.cloneNode(r),r)),e.type=XC.createKeywordTypeNode(133),oD(r)&&(e.modifiers=void 0),e}if(kD(r)){return p(r)||(s(),r)}if(rD(r)&&ob(r.expression)){const{node:i,introducesError:o}=t.trackExistingEntityName(n,r.expression);if(o){const i=t.serializeTypeOfExpression(n,r.expression);let o;if(MD(i))o=i.literal;else{const e=t.evaluateEntityNameExpression(r.expression),a="string"==typeof e.value?XC.createStringLiteral(e.value,void 0):"number"==typeof e.value?XC.createNumericLiteral(e.value,0):void 0;if(!a)return BD(i)&&t.trackComputedName(n,r.expression),r;o=a}return 11===o.kind&&fs(o.text,hk(e))?XC.createIdentifier(o.text):9!==o.kind||o.text.startsWith("-")?XC.updateComputedPropertyName(r,o):o}return XC.updateComputedPropertyName(r,i)}if(yD(r)){let e;if(zN(r.parameterName)){const{node:i,introducesError:o}=t.trackExistingEntityName(n,r.parameterName);o&&s(),e=i}else e=XC.cloneNode(r.parameterName);return XC.updateTypePredicateNode(r,XC.cloneNode(r.assertsModifier),e,$B(r.type,l,v_))}if(CD(r)||SD(r)||RD(r)){const e=o(r,l),i=t.markNodeReuse(n,e===r?XC.cloneNode(r):e,r);return nw(i,Qd(i)|(1024&n.flags&&SD(r)?0:1)),i}if(TN(r)&&268435456&n.flags&&!r.singleQuote){const e=XC.cloneNode(r);return e.singleQuote=!0,e}if(PD(r)){const e=$B(r.checkType,l,v_),i=t.enterNewScope(n,r),o=$B(r.extendsType,l,v_),a=$B(r.trueType,l,v_);i();const s=$B(r.falseType,l,v_);return XC.updateConditionalTypeNode(r,e,o,a,s)}if(LD(r))if(158===r.operator&&155===r.type.kind){if(!t.canReuseTypeNode(n,r))return s(),r}else if(143===r.operator){return d(r)||(s(),r)}return o(r,l);function o(e,t){return nJ(e,t,void 0,n.enclosingFile&&n.enclosingFile===hd(e)?void 0:a)}function a(e,t,n,r,i){let o=HB(e,t,n,r,i);return o&&(-1===o.pos&&-1===o.end||(o===e&&(o=XC.createNodeArray(e.slice(),e.hasTrailingComma)),ST(o,-1,-1))),o}function c(e){return e.dotDotDotToken||(e.type&&nP(e.type)?XC.createToken(26):void 0)}function _(e,t){return e.name&&zN(e.name)&&"this"===e.name.escapedText?"this":c(e)?"args":`arg${t}`}}(r);return null==c||c(),a()?v_(r)&&!yD(r)?(i(),t.serializeExistingTypeNode(n,r)):r:_?t.markNodeReuse(n,_,r):void 0}function _(e){const t=ih(e);switch(t.kind){case 183:return f(t);case 186:return p(t);case 199:return u(t);case 198:const e=t;if(143===e.operator)return d(e)}return $B(e,l,v_)}function u(e){const t=_(e.objectType);if(void 0!==t)return XC.updateIndexedAccessTypeNode(e,t,$B(e.indexType,l,v_))}function d(e){un.assertEqual(e.operator,143);const t=_(e.type);if(void 0!==t)return XC.updateTypeOperatorNode(e,t)}function p(e){const{introducesError:r,node:i}=t.trackExistingEntityName(n,e.exprName);if(!r)return XC.updateTypeQueryNode(e,i,HB(e.typeArguments,l,v_));const o=t.serializeTypeName(n,e.exprName,!0);return o?t.markNodeReuse(n,o,e.exprName):void 0}function f(e){if(t.canReuseTypeNode(n,e)){const{introducesError:r,node:i}=t.trackExistingEntityName(n,e.typeName),o=HB(e.typeArguments,l,v_);if(!r){const r=XC.updateTypeReferenceNode(e,i,o);return t.markNodeReuse(n,r,e)}{const r=t.serializeTypeName(n,e.typeName,!1,o);if(r)return t.markNodeReuse(n,r,e.typeName)}}}}function o(e,n,r){if(!e)return;let o;return r&&!N(e)||!t.canReuseTypeNode(n,e)||(o=i(n,e),void 0!==o&&(o=C(o,r,void 0,n))),o}function a(e,n,r,i,a,s=void 0!==a){if(!e)return;if(!(t.canReuseTypeNodeAnnotation(n,r,e,i,a)||a&&t.canReuseTypeNodeAnnotation(n,r,e,i,!1)))return;let c;return a&&!N(e)||(c=o(e,n,a)),void 0===c&&s?(n.tracker.reportInferenceFallback(r),t.serializeExistingTypeNode(n,e,a)??XC.createKeywordTypeNode(133)):c}function s(e,n,r,i){if(!e)return;const a=o(e,n,r);return void 0!==a?a:(n.tracker.reportInferenceFallback(i??e),t.serializeExistingTypeNode(n,e,r)??XC.createKeywordTypeNode(133))}function c(e,n,r){return function(e,n,r){const i=t.getAllAccessorDeclarations(e),o=function(e,t){let n=_(e);return n||e===t.firstAccessor||(n=_(t.firstAccessor)),!n&&t.secondAccessor&&e!==t.secondAccessor&&(n=_(t.secondAccessor)),n}(e,i);return o&&!yD(o)?m(r,e,(()=>a(o,r,e,n)??d(e,n,r))):i.getAccessor?m(r,i.getAccessor,(()=>D(i.getAccessor,void 0,r))):void 0}(e,n,r)??f(e,t.getAllAccessorDeclarations(e),r,n)}function l(e,t,n,r){const i=h(e,t,!1,n,r);return void 0!==i.type?i.type:p(e,t,i.reportFallback)}function _(e){if(e)return 177===e.kind?Fm(e)&&tl(e)||mv(e):hv(e)}function u(e,n,r){const i=e.parent;if(178===i.kind)return c(i,void 0,r);const o=pv(e),s=t.requiresAddingImplicitUndefined(e,n,r.enclosingDeclaration);let l=wK;return o?l=SK(a(o,r,e,n,s)):oD(e)&&e.initializer&&zN(e.name)&&!F(e)&&(l=h(e.initializer,r,void 0,s)),void 0!==l.type?l.type:d(e,n,r,l.reportFallback)}function d(e,n,r,i=!0){return i&&r.tracker.reportInferenceFallback(e),!0===r.noInferenceFallback?XC.createKeywordTypeNode(133):t.serializeTypeOfDeclaration(r,e,n)}function p(e,n,r=!0,i){return un.assert(!i),r&&n.tracker.reportInferenceFallback(e),!0===n.noInferenceFallback?XC.createKeywordTypeNode(133):t.serializeTypeOfExpression(n,e)??XC.createKeywordTypeNode(133)}function f(e,n,r,i,o=!0){return 177===e.kind?D(e,i,r,o):(o&&r.tracker.reportInferenceFallback(e),(n.getAccessor&&D(n.getAccessor,i,r,o))??t.serializeTypeOfDeclaration(r,e,i)??XC.createKeywordTypeNode(133))}function m(e,n,r){const i=t.enterNewScope(e,n),o=r();return i(),o}function g(e,t,n,r){return xl(t)?h(e,n,!0,r):SK(s(t,n,r))}function h(e,r,i=!1,o=!1,a=!1){switch(e.kind){case 217:return oA(e)?g(e.expression,aA(e),r,o):h(e.expression,r,i,o);case 80:if(t.isUndefinedIdentifierExpression(e))return SK(S());break;case 106:return SK(n?C(XC.createLiteralTypeNode(XC.createNull()),o,e,r):XC.createKeywordTypeNode(133));case 219:case 218:return un.type(e),m(r,e,(()=>function(e,t){const n=t.noInferenceFallback;return t.noInferenceFallback=!0,D(e,void 0,t),b(e.typeParameters,t),e.parameters.map((e=>v(e,t))),t.noInferenceFallback=n,TK}(e,r)));case 216:case 234:const s=e;return g(s.expression,s.type,r,o);case 224:const c=e;if(yC(c))return T(40===c.operator?c.operand:c,10===c.operand.kind?163:150,r,i||a,o);break;case 209:return function(e,t,n,r){if(!function(e,t,n){if(!n)return t.tracker.reportInferenceFallback(e),!1;for(const n of e.elements)if(230===n.kind)return t.tracker.reportInferenceFallback(n),!1;return!0}(e,t,n))return r||lu(nh(e).parent)?CK:SK(p(e,t,!1,r));const i=t.noInferenceFallback;t.noInferenceFallback=!0;const o=[];for(const r of e.elements)if(un.assert(230!==r.kind),232===r.kind)o.push(S());else{const e=h(r,t,n),i=void 0!==e.type?e.type:p(r,t,e.reportFallback);o.push(i)}return XC.createTupleTypeNode(o).emitNode={flags:1,autoGenerate:void 0,internalFlags:0},t.noInferenceFallback=i,TK}(e,r,i,o);case 210:return function(e,n,r,i){if(!function(e,n){let r=!0;for(const i of e.properties){if(262144&i.flags){r=!1;break}if(304===i.kind||305===i.kind)n.tracker.reportInferenceFallback(i),r=!1;else{if(262144&i.name.flags){r=!1;break}if(81===i.name.kind)r=!1;else if(167===i.name.kind){const e=i.name.expression;yC(e,!1)||t.isDefinitelyReferenceToGlobalSymbolObject(e)||(n.tracker.reportInferenceFallback(i.name),r=!1)}}}return r}(e,n))return i||lu(nh(e).parent)?CK:SK(p(e,n,!1,i));const o=n.noInferenceFallback;n.noInferenceFallback=!0;const a=[],s=n.flags;n.flags|=4194304;for(const t of e.properties){un.assert(!BE(t)&&!JE(t));const e=t.name;let i;switch(t.kind){case 174:i=m(n,t,(()=>x(t,e,n,r)));break;case 303:i=y(t,e,n,r);break;case 178:case 177:i=k(t,e,n)}i&&(pw(i,t),a.push(i))}n.flags=s;const c=XC.createTypeLiteralNode(a);return 1024&n.flags||nw(c,1),n.noInferenceFallback=o,TK}(e,r,i,o);case 231:return SK(p(e,r,!0,o));case 228:if(!i&&!a)return SK(XC.createKeywordTypeNode(154));break;default:let l,_=e;switch(e.kind){case 9:l=150;break;case 15:_=XC.createStringLiteral(e.text),l=154;break;case 11:l=154;break;case 10:l=163;break;case 112:case 97:l=136}if(l)return T(_,l,r,i||a,o)}return wK}function y(e,t,n,i){const o=i?[XC.createModifier(148)]:[],a=h(e.initializer,n,i),s=void 0!==a.type?a.type:d(e,void 0,n,a.reportFallback);return XC.createPropertySignature(o,r(n,t),void 0,s)}function v(e,n){return XC.updateParameterDeclaration(e,[],r(n,e.dotDotDotToken),t.serializeNameOfParameter(n,e),t.isOptionalParameter(e)?XC.createToken(58):void 0,u(e,void 0,n),void 0)}function b(e,t){return null==e?void 0:e.map((e=>{var n;return XC.updateTypeParameterDeclaration(e,null==(n=e.modifiers)?void 0:n.map((e=>r(t,e))),r(t,e.name),s(e.constraint,t),s(e.default,t))}))}function x(e,t,n,i){const o=D(e,void 0,n),a=b(e.typeParameters,n),s=e.parameters.map((e=>v(e,n)));return i?XC.createPropertySignature([XC.createModifier(148)],r(n,t),r(n,e.questionToken),XC.createFunctionTypeNode(a,s,o)):(zN(t)&&"new"===t.escapedText&&(t=XC.createStringLiteral("new")),XC.createMethodSignature([],r(n,t),r(n,e.questionToken),a,s,o))}function k(e,n,i){const o=t.getAllAccessorDeclarations(e),a=o.getAccessor&&_(o.getAccessor),c=o.setAccessor&&_(o.setAccessor);if(void 0!==a&&void 0!==c)return m(i,e,(()=>{const t=e.parameters.map((e=>v(e,i)));return wu(e)?XC.updateGetAccessorDeclaration(e,[],r(i,n),t,s(a,i),void 0):XC.updateSetAccessorDeclaration(e,[],r(i,n),t,void 0)}));if(o.firstAccessor===e){const t=(a?m(i,o.getAccessor,(()=>s(a,i))):c?m(i,o.setAccessor,(()=>s(c,i))):void 0)??f(e,o,i,void 0);return XC.createPropertySignature(void 0===o.setAccessor?[XC.createModifier(148)]:[],r(i,n),void 0,t)}}function S(){return n?XC.createKeywordTypeNode(157):XC.createKeywordTypeNode(133)}function T(e,t,n,i,o){let a;return i?(224===e.kind&&40===e.operator&&(a=XC.createLiteralTypeNode(r(n,e.operand))),a=XC.createLiteralTypeNode(r(n,e))):a=XC.createKeywordTypeNode(t),SK(C(a,o,e,n))}function C(e,t,r,i){const o=r&&nh(r).parent,a=o&&lu(o)&&KT(o);return n&&(t||a)?(N(e)||i.tracker.reportInferenceFallback(e),FD(e)?XC.createUnionTypeNode([...e.types,XC.createKeywordTypeNode(157)]):XC.createUnionTypeNode([e,XC.createKeywordTypeNode(157)])):e}function N(e){return!n||!(!Th(e.kind)&&201!==e.kind&&184!==e.kind&&185!==e.kind&&188!==e.kind&&189!==e.kind&&187!==e.kind&&203!==e.kind&&197!==e.kind)||(196===e.kind?N(e.type):(192===e.kind||193===e.kind)&&e.types.every(N))}function D(e,n,r,i=!0){let s=wK;const c=wg(e)?pv(e.parameters[0]):mv(e);return c?s=SK(a(c,r,e,n)):Zg(e)&&(s=function(e,t){let n;if(e&&!Cd(e.body)){if(3&Ih(e))return wK;const t=e.body;t&&CF(t)?wf(t,(e=>e.parent!==t||n?(n=void 0,!0):void(n=e.expression))):n=t}if(n){if(!F(n))return h(n,t);{const e=oA(n)?aA(n):gF(n)||YD(n)?n.type:void 0;if(e&&!xl(e))return SK(o(e,t))}}return wK}(e,r)),void 0!==s.type?s.type:function(e,n,r){return r&&n.tracker.reportInferenceFallback(e),!0===n.noInferenceFallback?XC.createKeywordTypeNode(133):t.serializeReturnTypeForSignature(n,e)??XC.createKeywordTypeNode(133)}(e,r,i&&s.reportFallback&&!c)}function F(e){return _c(e.parent,(e=>GD(e)||!i_(e)&&!!pv(e)||kE(e)||AE(e)))}}var DK={};i(DK,{NameValidationResult:()=>QK,discoverTypings:()=>GK,isTypingUpToDate:()=>WK,loadSafeList:()=>HK,loadTypesMap:()=>KK,nonRelativeModuleNameForTypingCache:()=>$K,renderPackageNameValidationFailure:()=>tG,validatePackageName:()=>ZK});var FK,EK,PK="action::set",AK="action::invalidate",IK="action::packageInstalled",OK="event::typesRegistry",LK="event::beginInstallTypes",jK="event::endInstallTypes",RK="event::initializationFailed",MK="action::watchTypingLocations";function BK(e){return so.args.includes(e)}function JK(e){const t=so.args.indexOf(e);return t>=0&&te.readFile(t)));return new Map(Object.entries(n.config))}function KK(e,t){var n;const r=YO(t,(t=>e.readFile(t)));if(null==(n=r.config)?void 0:n.simpleMap)return new Map(Object.entries(r.config.simpleMap))}function GK(e,t,n,r,i,o,a,s,c,l){if(!a||!a.enable)return{cachedTypingPaths:[],newTypingNames:[],filesToWatch:[]};const _=new Map;n=B(n,(e=>{const t=Jo(e);if(AS(t))return t}));const u=[];a.include&&y(a.include,"Explicitly included types");const p=a.exclude||[];if(!l.types){const e=new Set(n.map(Do));e.add(r),e.forEach((e=>{v(e,"bower.json","bower_components",u),v(e,"package.json","node_modules",u)}))}a.disableFilenameBasedTypeAcquisition||function(e){const n=B(e,(e=>{if(!AS(e))return;const t=Jt(zS(_t(Fo(e))));return i.get(t)}));n.length&&y(n,"Inferred typings from file names"),$(e,(e=>ko(e,".jsx")))&&(t&&t("Inferred 'react' typings due to presence of '.jsx' extension"),h("react"))}(n),s&&y(Q(s.map($K),ht,Ct),"Inferred typings from unresolved imports");for(const e of p)_.delete(e)&&t&&t(`Typing for ${e} is in exclude list, will be ignored.`);o.forEach(((e,t)=>{const n=c.get(t);!1===_.get(t)&&void 0!==n&&WK(e,n)&&_.set(t,e.typingLocation)}));const f=[],m=[];_.forEach(((e,t)=>{e?m.push(e):f.push(t)}));const g={cachedTypingPaths:m,newTypingNames:f,filesToWatch:u};return t&&t(`Finished typings discovery:${VK(g)}`),g;function h(e){_.has(e)||_.set(e,!1)}function y(e,n){t&&t(`${n}: ${JSON.stringify(e)}`),d(e,h)}function v(n,r,i,o){const a=jo(n,r);let s,c;e.fileExists(a)&&(o.push(a),s=YO(a,(t=>e.readFile(t))).config,c=O([s.dependencies,s.devDependencies,s.optionalDependencies,s.peerDependencies],Ee),y(c,`Typing names in '${a}' dependencies`));const l=jo(n,i);if(o.push(l),!e.directoryExists(l))return;const u=[],d=c?c.map((e=>jo(l,e,r))):e.readDirectory(l,[".json"],void 0,void 0,3).filter((e=>{if(Fo(e)!==r)return!1;const t=Ao(Jo(e)),n="@"===t[t.length-3][0];return n&&_t(t[t.length-4])===i||!n&&_t(t[t.length-3])===i}));t&&t(`Searching for typing names in ${l}; all files: ${JSON.stringify(d)}`);for(const n of d){const r=Jo(n),i=YO(r,(t=>e.readFile(t))).config;if(!i.name)continue;const o=i.types||i.typings;if(o){const n=Bo(o,Do(r));e.fileExists(n)?(t&&t(` Package '${i.name}' provides its own types.`),_.set(i.name,n)):t&&t(` Package '${i.name}' provides its own types but they are missing.`)}else u.push(i.name)}y(u," Found package names")}}var XK,QK=(e=>(e[e.Ok=0]="Ok",e[e.EmptyName=1]="EmptyName",e[e.NameTooLong=2]="NameTooLong",e[e.NameStartsWithDot=3]="NameStartsWithDot",e[e.NameStartsWithUnderscore=4]="NameStartsWithUnderscore",e[e.NameContainsNonURISafeCharacters=5]="NameContainsNonURISafeCharacters",e))(QK||{}),YK=214;function ZK(e){return eG(e,!0)}function eG(e,t){if(!e)return 1;if(e.length>YK)return 2;if(46===e.charCodeAt(0))return 3;if(95===e.charCodeAt(0))return 4;if(t){const t=/^@([^/]+)\/([^/]+)$/.exec(e);if(t){const e=eG(t[1],!1);if(0!==e)return{name:t[1],isScopeName:!0,result:e};const n=eG(t[2],!1);return 0!==n?{name:t[2],isScopeName:!1,result:n}:0}}return encodeURIComponent(e)!==e?5:0}function tG(e,t){return"object"==typeof e?nG(t,e.result,e.name,e.isScopeName):nG(t,e,t,!1)}function nG(e,t,n,r){const i=r?"Scope":"Package";switch(t){case 1:return`'${e}':: ${i} name '${n}' cannot be empty`;case 2:return`'${e}':: ${i} name '${n}' should be less than ${YK} characters`;case 3:return`'${e}':: ${i} name '${n}' cannot start with '.'`;case 4:return`'${e}':: ${i} name '${n}' cannot start with '_'`;case 5:return`'${e}':: ${i} name '${n}' contains non URI safe characters`;case 0:return un.fail();default:un.assertNever(t)}}(e=>{class t{constructor(e){this.text=e}getText(e,t){return 0===e&&t===this.text.length?this.text:this.text.substring(e,t)}getLength(){return this.text.length}getChangeRange(){}}e.fromString=function(e){return new t(e)}})(XK||(XK={}));var rG=(e=>(e[e.Dependencies=1]="Dependencies",e[e.DevDependencies=2]="DevDependencies",e[e.PeerDependencies=4]="PeerDependencies",e[e.OptionalDependencies=8]="OptionalDependencies",e[e.All=15]="All",e))(rG||{}),iG=(e=>(e[e.Off=0]="Off",e[e.On=1]="On",e[e.Auto=2]="Auto",e))(iG||{}),oG=(e=>(e[e.Semantic=0]="Semantic",e[e.PartialSemantic=1]="PartialSemantic",e[e.Syntactic=2]="Syntactic",e))(oG||{}),aG={},sG=(e=>(e.Original="original",e.TwentyTwenty="2020",e))(sG||{}),cG=(e=>(e.All="All",e.SortAndCombine="SortAndCombine",e.RemoveUnused="RemoveUnused",e))(cG||{}),lG=(e=>(e[e.Invoked=1]="Invoked",e[e.TriggerCharacter=2]="TriggerCharacter",e[e.TriggerForIncompleteCompletions=3]="TriggerForIncompleteCompletions",e))(lG||{}),_G=(e=>(e.Type="Type",e.Parameter="Parameter",e.Enum="Enum",e))(_G||{}),uG=(e=>(e.none="none",e.definition="definition",e.reference="reference",e.writtenReference="writtenReference",e))(uG||{}),dG=(e=>(e[e.None=0]="None",e[e.Block=1]="Block",e[e.Smart=2]="Smart",e))(dG||{}),pG=(e=>(e.Ignore="ignore",e.Insert="insert",e.Remove="remove",e))(pG||{});function fG(e){return{indentSize:4,tabSize:4,newLineCharacter:e||"\n",convertTabsToSpaces:!0,indentStyle:2,insertSpaceAfterConstructor:!1,insertSpaceAfterCommaDelimiter:!0,insertSpaceAfterSemicolonInForStatements:!0,insertSpaceBeforeAndAfterBinaryOperators:!0,insertSpaceAfterKeywordsInControlFlowStatements:!0,insertSpaceAfterFunctionKeywordForAnonymousFunctions:!1,insertSpaceAfterOpeningAndBeforeClosingNonemptyParenthesis:!1,insertSpaceAfterOpeningAndBeforeClosingNonemptyBrackets:!1,insertSpaceAfterOpeningAndBeforeClosingNonemptyBraces:!0,insertSpaceAfterOpeningAndBeforeClosingTemplateStringBraces:!1,insertSpaceAfterOpeningAndBeforeClosingJsxExpressionBraces:!1,insertSpaceBeforeFunctionParenthesis:!1,placeOpenBraceOnNewLineForFunctions:!1,placeOpenBraceOnNewLineForControlBlocks:!1,semicolons:"ignore",trimTrailingWhitespace:!0,indentSwitchCase:!0}}var mG=fG("\n"),gG=(e=>(e[e.aliasName=0]="aliasName",e[e.className=1]="className",e[e.enumName=2]="enumName",e[e.fieldName=3]="fieldName",e[e.interfaceName=4]="interfaceName",e[e.keyword=5]="keyword",e[e.lineBreak=6]="lineBreak",e[e.numericLiteral=7]="numericLiteral",e[e.stringLiteral=8]="stringLiteral",e[e.localName=9]="localName",e[e.methodName=10]="methodName",e[e.moduleName=11]="moduleName",e[e.operator=12]="operator",e[e.parameterName=13]="parameterName",e[e.propertyName=14]="propertyName",e[e.punctuation=15]="punctuation",e[e.space=16]="space",e[e.text=17]="text",e[e.typeParameterName=18]="typeParameterName",e[e.enumMemberName=19]="enumMemberName",e[e.functionName=20]="functionName",e[e.regularExpressionLiteral=21]="regularExpressionLiteral",e[e.link=22]="link",e[e.linkName=23]="linkName",e[e.linkText=24]="linkText",e))(gG||{}),hG=(e=>(e[e.None=0]="None",e[e.MayIncludeAutoImports=1]="MayIncludeAutoImports",e[e.IsImportStatementCompletion=2]="IsImportStatementCompletion",e[e.IsContinuation=4]="IsContinuation",e[e.ResolvedModuleSpecifiers=8]="ResolvedModuleSpecifiers",e[e.ResolvedModuleSpecifiersBeyondLimit=16]="ResolvedModuleSpecifiersBeyondLimit",e[e.MayIncludeMethodSnippets=32]="MayIncludeMethodSnippets",e))(hG||{}),yG=(e=>(e.Comment="comment",e.Region="region",e.Code="code",e.Imports="imports",e))(yG||{}),vG=(e=>(e[e.JavaScript=0]="JavaScript",e[e.SourceMap=1]="SourceMap",e[e.Declaration=2]="Declaration",e))(vG||{}),bG=(e=>(e[e.None=0]="None",e[e.InMultiLineCommentTrivia=1]="InMultiLineCommentTrivia",e[e.InSingleQuoteStringLiteral=2]="InSingleQuoteStringLiteral",e[e.InDoubleQuoteStringLiteral=3]="InDoubleQuoteStringLiteral",e[e.InTemplateHeadOrNoSubstitutionTemplate=4]="InTemplateHeadOrNoSubstitutionTemplate",e[e.InTemplateMiddleOrTail=5]="InTemplateMiddleOrTail",e[e.InTemplateSubstitutionPosition=6]="InTemplateSubstitutionPosition",e))(bG||{}),xG=(e=>(e[e.Punctuation=0]="Punctuation",e[e.Keyword=1]="Keyword",e[e.Operator=2]="Operator",e[e.Comment=3]="Comment",e[e.Whitespace=4]="Whitespace",e[e.Identifier=5]="Identifier",e[e.NumberLiteral=6]="NumberLiteral",e[e.BigIntLiteral=7]="BigIntLiteral",e[e.StringLiteral=8]="StringLiteral",e[e.RegExpLiteral=9]="RegExpLiteral",e))(xG||{}),kG=(e=>(e.unknown="",e.warning="warning",e.keyword="keyword",e.scriptElement="script",e.moduleElement="module",e.classElement="class",e.localClassElement="local class",e.interfaceElement="interface",e.typeElement="type",e.enumElement="enum",e.enumMemberElement="enum member",e.variableElement="var",e.localVariableElement="local var",e.variableUsingElement="using",e.variableAwaitUsingElement="await using",e.functionElement="function",e.localFunctionElement="local function",e.memberFunctionElement="method",e.memberGetAccessorElement="getter",e.memberSetAccessorElement="setter",e.memberVariableElement="property",e.memberAccessorVariableElement="accessor",e.constructorImplementationElement="constructor",e.callSignatureElement="call",e.indexSignatureElement="index",e.constructSignatureElement="construct",e.parameterElement="parameter",e.typeParameterElement="type parameter",e.primitiveType="primitive type",e.label="label",e.alias="alias",e.constElement="const",e.letElement="let",e.directory="directory",e.externalModuleName="external module name",e.jsxAttribute="JSX attribute",e.string="string",e.link="link",e.linkName="link name",e.linkText="link text",e))(kG||{}),SG=(e=>(e.none="",e.publicMemberModifier="public",e.privateMemberModifier="private",e.protectedMemberModifier="protected",e.exportedModifier="export",e.ambientModifier="declare",e.staticModifier="static",e.abstractModifier="abstract",e.optionalModifier="optional",e.deprecatedModifier="deprecated",e.dtsModifier=".d.ts",e.tsModifier=".ts",e.tsxModifier=".tsx",e.jsModifier=".js",e.jsxModifier=".jsx",e.jsonModifier=".json",e.dmtsModifier=".d.mts",e.mtsModifier=".mts",e.mjsModifier=".mjs",e.dctsModifier=".d.cts",e.ctsModifier=".cts",e.cjsModifier=".cjs",e))(SG||{}),TG=(e=>(e.comment="comment",e.identifier="identifier",e.keyword="keyword",e.numericLiteral="number",e.bigintLiteral="bigint",e.operator="operator",e.stringLiteral="string",e.whiteSpace="whitespace",e.text="text",e.punctuation="punctuation",e.className="class name",e.enumName="enum name",e.interfaceName="interface name",e.moduleName="module name",e.typeParameterName="type parameter name",e.typeAliasName="type alias name",e.parameterName="parameter name",e.docCommentTagName="doc comment tag name",e.jsxOpenTagName="jsx open tag name",e.jsxCloseTagName="jsx close tag name",e.jsxSelfClosingTagName="jsx self closing tag name",e.jsxAttribute="jsx attribute",e.jsxText="jsx text",e.jsxAttributeStringLiteralValue="jsx attribute string literal value",e))(TG||{}),CG=(e=>(e[e.comment=1]="comment",e[e.identifier=2]="identifier",e[e.keyword=3]="keyword",e[e.numericLiteral=4]="numericLiteral",e[e.operator=5]="operator",e[e.stringLiteral=6]="stringLiteral",e[e.regularExpressionLiteral=7]="regularExpressionLiteral",e[e.whiteSpace=8]="whiteSpace",e[e.text=9]="text",e[e.punctuation=10]="punctuation",e[e.className=11]="className",e[e.enumName=12]="enumName",e[e.interfaceName=13]="interfaceName",e[e.moduleName=14]="moduleName",e[e.typeParameterName=15]="typeParameterName",e[e.typeAliasName=16]="typeAliasName",e[e.parameterName=17]="parameterName",e[e.docCommentTagName=18]="docCommentTagName",e[e.jsxOpenTagName=19]="jsxOpenTagName",e[e.jsxCloseTagName=20]="jsxCloseTagName",e[e.jsxSelfClosingTagName=21]="jsxSelfClosingTagName",e[e.jsxAttribute=22]="jsxAttribute",e[e.jsxText=23]="jsxText",e[e.jsxAttributeStringLiteralValue=24]="jsxAttributeStringLiteralValue",e[e.bigintLiteral=25]="bigintLiteral",e))(CG||{}),wG=ms(99,!0),NG=(e=>(e[e.None=0]="None",e[e.Value=1]="Value",e[e.Type=2]="Type",e[e.Namespace=4]="Namespace",e[e.All=7]="All",e))(NG||{});function DG(e){switch(e.kind){case 260:return Fm(e)&&Gc(e)?7:1;case 169:case 208:case 172:case 171:case 303:case 304:case 174:case 173:case 176:case 177:case 178:case 262:case 218:case 219:case 299:case 291:return 1;case 168:case 264:case 265:case 187:return 2;case 346:return void 0===e.name?3:2;case 306:case 263:return 3;case 267:return ap(e)||1===wM(e)?5:4;case 266:case 275:case 276:case 271:case 272:case 277:case 278:return 7;case 307:return 5}return 7}function FG(e){const t=(e=NX(e)).parent;return 307===e.kind?1:pE(t)||gE(t)||xE(t)||dE(t)||rE(t)||tE(t)&&e===t.name?7:EG(e)?function(e){const t=166===e.kind?e:nD(e.parent)&&e.parent.right===e?e.parent:void 0;return t&&271===t.parent.kind?7:4}(e):ch(e)?DG(t):Zl(e)&&_c(e,en(WE,ju,$E))?7:function(e){switch(ub(e)&&(e=e.parent),e.kind){case 110:return!vm(e);case 197:return!0}switch(e.parent.kind){case 183:return!0;case 205:return!e.parent.isTypeOf;case 233:return Tf(e.parent)}return!1}(e)?2:function(e){return function(e){let t=e,n=!0;if(166===t.parent.kind){for(;t.parent&&166===t.parent.kind;)t=t.parent;n=t.right===e}return 183===t.parent.kind&&!n}(e)||function(e){let t=e,n=!0;if(211===t.parent.kind){for(;t.parent&&211===t.parent.kind;)t=t.parent;n=t.name===e}if(!n&&233===t.parent.kind&&298===t.parent.parent.kind){const e=t.parent.parent.parent;return 263===e.kind&&119===t.parent.parent.token||264===e.kind&&96===t.parent.parent.token}return!1}(e)}(e)?4:iD(t)?(un.assert(TP(t.parent)),2):MD(t)?3:1}function EG(e){for(;166===e.parent.kind;)e=e.parent;return wm(e.parent)&&e.parent.moduleReference===e}function PG(e,t=!1,n=!1){return JG(e,GD,RG,t,n)}function AG(e,t=!1,n=!1){return JG(e,XD,RG,t,n)}function IG(e,t=!1,n=!1){return JG(e,L_,RG,t,n)}function OG(e,t=!1,n=!1){return JG(e,QD,MG,t,n)}function LG(e,t=!1,n=!1){return JG(e,aD,RG,t,n)}function jG(e,t=!1,n=!1){return JG(e,vu,BG,t,n)}function RG(e){return e.expression}function MG(e){return e.tag}function BG(e){return e.tagName}function JG(e,t,n,r,i){let o=r?function(e){return GG(e)||XG(e)?e.parent:e}(e):zG(e);return i&&(o=cA(o)),!!o&&!!o.parent&&t(o.parent)&&n(o.parent)===o}function zG(e){return GG(e)?e.parent:e}function qG(e,t){for(;e;){if(256===e.kind&&e.label.escapedText===t)return e.label;e=e.parent}}function UG(e,t){return!!HD(e.expression)&&e.expression.name.text===t}function VG(e){var t;return zN(e)&&(null==(t=tt(e.parent,Tl))?void 0:t.label)===e}function WG(e){var t;return zN(e)&&(null==(t=tt(e.parent,JF))?void 0:t.label)===e}function $G(e){return WG(e)||VG(e)}function HG(e){var t;return(null==(t=tt(e.parent,Tu))?void 0:t.tagName)===e}function KG(e){var t;return(null==(t=tt(e.parent,nD))?void 0:t.right)===e}function GG(e){var t;return(null==(t=tt(e.parent,HD))?void 0:t.name)===e}function XG(e){var t;return(null==(t=tt(e.parent,KD))?void 0:t.argumentExpression)===e}function QG(e){var t;return(null==(t=tt(e.parent,QF))?void 0:t.name)===e}function YG(e){var t;return zN(e)&&(null==(t=tt(e.parent,n_))?void 0:t.name)===e}function ZG(e){switch(e.parent.kind){case 172:case 171:case 303:case 306:case 174:case 173:case 177:case 178:case 267:return Tc(e.parent)===e;case 212:return e.parent.argumentExpression===e;case 167:return!0;case 201:return 199===e.parent.parent.kind;default:return!1}}function eX(e){return Sm(e.parent.parent)&&Tm(e.parent.parent)===e}function tX(e){for(Ng(e)&&(e=e.parent.parent);;){if(!(e=e.parent))return;switch(e.kind){case 307:case 174:case 173:case 262:case 218:case 177:case 178:case 263:case 264:case 266:case 267:return e}}}function nX(e){switch(e.kind){case 307:return MI(e)?"module":"script";case 267:return"module";case 263:case 231:return"class";case 264:return"interface";case 265:case 338:case 346:return"type";case 266:return"enum";case 260:return t(e);case 208:return t(Qh(e));case 219:case 262:case 218:return"function";case 177:return"getter";case 178:return"setter";case 174:case 173:return"method";case 303:const{initializer:n}=e;return n_(n)?"method":"property";case 172:case 171:case 304:case 305:return"property";case 181:return"index";case 180:return"construct";case 179:return"call";case 176:case 175:return"constructor";case 168:return"type parameter";case 306:return"enum member";case 169:return wv(e,31)?"property":"parameter";case 271:case 276:case 281:case 274:case 280:return"alias";case 226:const r=eg(e),{right:i}=e;switch(r){case 7:case 8:case 9:case 0:default:return"";case 1:case 2:const e=nX(i);return""===e?"const":e;case 3:case 5:return eF(i)?"method":"property";case 4:return"property";case 6:return"local class"}case 80:return rE(e.parent)?"alias":"";case 277:const o=nX(e.expression);return""===o?"const":o;default:return""}function t(e){return rf(e)?"const":af(e)?"let":"var"}}function rX(e){switch(e.kind){case 110:return!0;case 80:return uv(e)&&169===e.parent.kind;default:return!1}}var iX=/^\/\/\/\s*=n}function _X(e,t,n){return dX(e.pos,e.end,t,n)}function uX(e,t,n,r){return dX(e.getStart(t),e.end,n,r)}function dX(e,t,n,r){return Math.max(e,n)e.kind===t))}function vX(e){const t=b(e.parent.getChildren(),(t=>AP(t)&&Gb(t,e)));return un.assert(!t||T(t.getChildren(),e)),t}function bX(e){return 90===e.kind}function xX(e){return 86===e.kind}function kX(e){return 100===e.kind}function SX(e,t){if(16777216&e.flags)return;const n=eZ(e,t);if(n)return n;const r=function(e){let t;return _c(e,(e=>(v_(e)&&(t=e),!nD(e.parent)&&!v_(e.parent)&&!g_(e.parent)))),t}(e);return r&&t.getTypeAtLocation(r)}function TX(e,t){if(e.importClause){if(e.importClause.name&&e.importClause.namedBindings)return;if(e.importClause.name)return e.importClause.name;if(e.importClause.namedBindings){if(uE(e.importClause.namedBindings)){const t=be(e.importClause.namedBindings.elements);if(!t)return;return t.name}if(lE(e.importClause.namedBindings))return e.importClause.namedBindings.name}}if(!t)return e.moduleSpecifier}function CX(e,t){if(e.exportClause){if(mE(e.exportClause)){if(!be(e.exportClause.elements))return;return e.exportClause.elements[0].name}if(_E(e.exportClause))return e.exportClause.name}if(!t)return e.moduleSpecifier}function wX(e,t){const{parent:n}=e;if(Yl(e)&&(t||90!==e.kind)?rI(n)&&T(n.modifiers,e):86===e.kind?HF(n)||pF(e):100===e.kind?$F(n)||eF(e):120===e.kind?KF(n):94===e.kind?XF(n):156===e.kind?GF(n):145===e.kind||144===e.kind?QF(n):102===e.kind?tE(n):139===e.kind?pD(n):153===e.kind&&fD(n)){const e=function(e,t){if(!t)switch(e.kind){case 263:case 231:return function(e){if(kc(e))return e.name;if(HF(e)){const t=e.modifiers&&b(e.modifiers,bX);if(t)return t}if(pF(e)){const t=b(e.getChildren(),xX);if(t)return t}}(e);case 262:case 218:return function(e){if(kc(e))return e.name;if($F(e)){const t=b(e.modifiers,bX);if(t)return t}if(eF(e)){const t=b(e.getChildren(),kX);if(t)return t}}(e);case 176:return e}if(kc(e))return e.name}(n,t);if(e)return e}if((115===e.kind||87===e.kind||121===e.kind)&&WF(n)&&1===n.declarations.length){const e=n.declarations[0];if(zN(e.name))return e.name}if(156===e.kind){if(rE(n)&&n.isTypeOnly){const e=TX(n.parent,t);if(e)return e}if(fE(n)&&n.isTypeOnly){const e=CX(n,t);if(e)return e}}if(130===e.kind){if(dE(n)&&n.propertyName||gE(n)&&n.propertyName||lE(n)||_E(n))return n.name;if(fE(n)&&n.exportClause&&_E(n.exportClause))return n.exportClause.name}if(102===e.kind&&nE(n)){const e=TX(n,t);if(e)return e}if(95===e.kind){if(fE(n)){const e=CX(n,t);if(e)return e}if(pE(n))return cA(n.expression)}if(149===e.kind&&xE(n))return n.expression;if(161===e.kind&&(nE(n)||fE(n))&&n.moduleSpecifier)return n.moduleSpecifier;if((96===e.kind||119===e.kind)&&jE(n)&&n.token===e.kind){const e=function(e){if(1===e.types.length)return e.types[0].expression}(n);if(e)return e}if(96===e.kind){if(iD(n)&&n.constraint&&vD(n.constraint))return n.constraint.typeName;if(PD(n)&&vD(n.extendsType))return n.extendsType.typeName}if(140===e.kind&&AD(n))return n.typeParameter.name;if(103===e.kind&&iD(n)&&RD(n.parent))return n.name;if(143===e.kind&&LD(n)&&143===n.operator&&vD(n.type))return n.type.typeName;if(148===e.kind&&LD(n)&&148===n.operator&&TD(n.type)&&vD(n.type.elementType))return n.type.elementType.typeName;if(!t){if((105===e.kind&&XD(n)||116===e.kind&&iF(n)||114===e.kind&&rF(n)||135===e.kind&&oF(n)||127===e.kind&&uF(n)||91===e.kind&&nF(n))&&n.expression)return cA(n.expression);if((103===e.kind||104===e.kind)&&cF(n)&&n.operatorToken===e)return cA(n.right);if(130===e.kind&&gF(n)&&vD(n.type))return n.type.typeName;if(103===e.kind&&IF(n)||165===e.kind&&OF(n))return cA(n.expression)}return e}function NX(e){return wX(e,!1)}function DX(e){return wX(e,!0)}function FX(e,t){return EX(e,t,(e=>Jh(e)||Th(e.kind)||qN(e)))}function EX(e,t,n){return AX(e,t,!1,n,!1)}function PX(e,t){return AX(e,t,!0,void 0,!1)}function AX(e,t,n,r,i){let o,a=e;for(;;){const i=a.getChildren(e),c=Ce(i,t,((e,t)=>t),((o,a)=>{const c=i[o].getEnd();if(ct?1:s(i[o],l,c)?i[o-1]&&s(i[o-1])?1:0:r&&l===t&&i[o-1]&&i[o-1].getEnd()===t&&s(i[o-1])?1:-1}));if(o)return o;if(!(c>=0&&i[c]))return a;a=i[c]}function s(a,s,c){if(c??(c=a.getEnd()),ct)return!1;if(tn.getStart(e)&&t(r.pos<=e.pos&&r.end>e.end||r.pos===e.end)&&YX(r,n)?t(r):void 0))}(t)}function jX(e,t,n,r){const i=function i(o){if(RX(o)&&1!==o.kind)return o;const a=o.getChildren(t),s=Ce(a,e,((e,t)=>t),((t,n)=>e=a[t-1].end?0:1:-1));if(s>=0&&a[s]){const n=a[s];if(e=e||!YX(n,t)||qX(n)){const e=BX(a,s,t,o.kind);return e?!r&&Su(e)&&e.getChildren(t).length?i(e):MX(e,t):void 0}return i(n)}}un.assert(void 0!==n||307===o.kind||1===o.kind||Su(o));const c=BX(a,a.length,t,o.kind);return c&&MX(c,t)}(n||t);return un.assert(!(i&&qX(i))),i}function RX(e){return Fl(e)&&!qX(e)}function MX(e,t){if(RX(e))return e;const n=e.getChildren(t);if(0===n.length)return e;const r=BX(n,n.length,t,e.kind);return r&&MX(r,t)}function BX(e,t,n,r){for(let i=t-1;i>=0;i--)if(qX(e[i]))0!==i||12!==r&&285!==r||un.fail("`JsxText` tokens should not be the first child of `JsxElement | JsxSelfClosingElement`");else if(YX(e[i],n))return e[i]}function JX(e,t,n=jX(t,e)){if(n&&ql(n)){const r=n.getStart(e),i=n.getEnd();if(rn.getStart(e)}function VX(e,t){const n=PX(e,t);return!!CN(n)||!(19!==n.kind||!AE(n.parent)||!kE(n.parent.parent))||!(30!==n.kind||!vu(n.parent)||!kE(n.parent.parent))}function WX(e,t){return function(n){for(;n;)if(n.kind>=285&&n.kind<=294||12===n.kind||30===n.kind||32===n.kind||80===n.kind||20===n.kind||19===n.kind||44===n.kind)n=n.parent;else{if(284!==n.kind)return!1;if(t>n.getStart(e))return!0;n=n.parent}return!1}(PX(e,t))}function $X(e,t,n){const r=Da(e.kind),i=Da(t),o=e.getFullStart(),a=n.text.lastIndexOf(i,o);if(-1===a)return;if(n.text.lastIndexOf(r,o-1)!!e.typeParameters&&e.typeParameters.length>=t))}function GX(e,t){if(-1===t.text.lastIndexOf("<",e?e.pos:t.text.length))return;let n=e,r=0,i=0;for(;n;){switch(n.kind){case 30:if(n=jX(n.getFullStart(),t),n&&29===n.kind&&(n=jX(n.getFullStart(),t)),!n||!zN(n))return;if(!r)return ch(n)?void 0:{called:n,nTypeArguments:i};r--;break;case 50:r=3;break;case 49:r=2;break;case 32:r++;break;case 20:if(n=$X(n,19,t),!n)return;break;case 22:if(n=$X(n,21,t),!n)return;break;case 24:if(n=$X(n,23,t),!n)return;break;case 28:i++;break;case 39:case 80:case 11:case 9:case 10:case 112:case 97:case 114:case 96:case 143:case 25:case 52:case 58:case 59:break;default:if(v_(n))break;return}n=jX(n.getFullStart(),t)}}function XX(e,t,n){return Zue.getRangeOfEnclosingComment(e,t,void 0,n)}function QX(e,t){return!!_c(PX(e,t),iP)}function YX(e,t){return 1===e.kind?!!e.jsDoc:0!==e.getWidth(t)}function ZX(e,t=0){const n=[],r=lu(e)?ic(e)&~t:0;return 2&r&&n.push("private"),4&r&&n.push("protected"),1&r&&n.push("public"),(256&r||uD(e))&&n.push("static"),64&r&&n.push("abstract"),32&r&&n.push("export"),65536&r&&n.push("deprecated"),33554432&e.flags&&n.push("declare"),277===e.kind&&n.push("export"),n.length>0?n.join(","):""}function eQ(e){return 183===e.kind||213===e.kind?e.typeArguments:n_(e)||263===e.kind||264===e.kind?e.typeParameters:void 0}function tQ(e){return 2===e||3===e}function nQ(e){return!(11!==e&&14!==e&&!Ol(e))}function rQ(e,t,n){return!!(4&t.flags)&&e.isEmptyAnonymousObjectType(n)}function iQ(e){if(!e.isIntersection())return!1;const{types:t,checker:n}=e;return 2===t.length&&(rQ(n,t[0],t[1])||rQ(n,t[1],t[0]))}function oQ(e,t,n){return Ol(e.kind)&&e.getStart(n){const n=jB(t);return!e[n]&&(e[n]=!0)}}function CQ(e){return e.getText(0,e.getLength())}function wQ(e,t){let n="";for(let r=0;r!(t.isDeclarationFile||e.isSourceFileFromExternalLibrary(t)||!t.externalModuleIndicator&&!t.commonJsModuleIndicator)))}function EQ(e){return e.getSourceFiles().some((t=>!t.isDeclarationFile&&!e.isSourceFileFromExternalLibrary(t)&&!!t.externalModuleIndicator))}function PQ(e){return!!e.module||hk(e)>=2||!!e.noEmit}function AQ(e,t){return{fileExists:t=>e.fileExists(t),getCurrentDirectory:()=>t.getCurrentDirectory(),readFile:We(t,t.readFile),useCaseSensitiveFileNames:We(t,t.useCaseSensitiveFileNames)||e.useCaseSensitiveFileNames,getSymlinkCache:We(t,t.getSymlinkCache)||e.getSymlinkCache,getModuleSpecifierCache:We(t,t.getModuleSpecifierCache),getPackageJsonInfoCache:()=>{var t;return null==(t=e.getModuleResolutionCache())?void 0:t.getPackageJsonInfoCache()},getGlobalTypingsCacheLocation:We(t,t.getGlobalTypingsCacheLocation),redirectTargetsMap:e.redirectTargetsMap,getProjectReferenceRedirect:t=>e.getProjectReferenceRedirect(t),isSourceOfProjectReferenceRedirect:t=>e.isSourceOfProjectReferenceRedirect(t),getNearestAncestorDirectoryWithPackageJson:We(t,t.getNearestAncestorDirectoryWithPackageJson),getFileIncludeReasons:()=>e.getFileIncludeReasons(),getCommonSourceDirectory:()=>e.getCommonSourceDirectory(),getDefaultResolutionModeForFile:t=>e.getDefaultResolutionModeForFile(t),getModeForResolutionAtIndex:(t,n)=>e.getModeForResolutionAtIndex(t,n)}}function IQ(e,t){return{...AQ(e,t),getCommonSourceDirectory:()=>e.getCommonSourceDirectory()}}function OQ(e){return 2===e||e>=3&&e<=99||100===e}function LQ(e,t,n,r,i){return XC.createImportDeclaration(void 0,e||t?XC.createImportClause(!!i,e,t&&t.length?XC.createNamedImports(t):void 0):void 0,"string"==typeof n?jQ(n,r):n,void 0)}function jQ(e,t){return XC.createStringLiteral(e,0===t)}var RQ=(e=>(e[e.Single=0]="Single",e[e.Double=1]="Double",e))(RQ||{});function MQ(e,t){return zm(e,t)?1:0}function BQ(e,t){if(t.quotePreference&&"auto"!==t.quotePreference)return"single"===t.quotePreference?0:1;{const t=Nm(e)&&e.imports&&b(e.imports,(e=>TN(e)&&!Zh(e.parent)));return t?MQ(t,e):1}}function JQ(e){switch(e){case 0:return"'";case 1:return'"';default:return un.assertNever(e)}}function zQ(e){const t=qQ(e);return void 0===t?void 0:fc(t)}function qQ(e){return"default"!==e.escapedName?e.escapedName:f(e.declarations,(e=>{const t=Tc(e);return t&&80===t.kind?t.escapedText:void 0}))}function UQ(e){return Lu(e)&&(xE(e.parent)||nE(e.parent)||PP(e.parent)||Om(e.parent,!1)&&e.parent.arguments[0]===e||cf(e.parent)&&e.parent.arguments[0]===e)}function VQ(e){return VD(e)&&qD(e.parent)&&zN(e.name)&&!e.propertyName}function WQ(e,t){const n=e.getTypeAtLocation(t.parent);return n&&e.getPropertyOfType(n,t.name.text)}function $Q(e,t,n){if(e)for(;e.parent;){if(qE(e.parent)||!HQ(n,e.parent,t))return e;e=e.parent}}function HQ(e,t,n){return Es(e,t.getStart(n))&&t.getEnd()<=Ds(e)}function KQ(e,t){return rI(e)?b(e.modifiers,(e=>e.kind===t)):void 0}function GQ(e,t,n,r,i){var o;const a=243===(Qe(n)?n[0]:n).kind?Bm:xp,s=N(t.statements,a),{comparer:c,isSorted:l}=Jle.getOrganizeImportsStringComparerWithDetection(s,i),_=Qe(n)?_e(n,((e,t)=>Jle.compareImportsOrRequireStatements(e,t,c))):[n];if(null==s?void 0:s.length)if(un.assert(Nm(t)),s&&l)for(const n of _){const r=Jle.getImportDeclarationInsertionIndex(s,n,c);if(0===r){const r=s[0]===t.statements[0]?{leadingTriviaOption:Tue.LeadingTriviaOption.Exclude}:{};e.insertNodeBefore(t,s[0],n,!1,r)}else{const i=s[r-1];e.insertNodeAfter(t,i,n)}}else{const n=ye(s);n?e.insertNodesAfter(t,n,_):e.insertNodesAtTopOfFile(t,_,r)}else if(Nm(t))e.insertNodesAtTopOfFile(t,_,r);else for(const n of _)e.insertStatementsInNewFile(t.fileName,[n],null==(o=lc(n))?void 0:o.getSourceFile())}function XQ(e,t){return un.assert(e.isTypeOnly),nt(e.getChildAt(0,t),kQ)}function QQ(e,t){return!!e&&!!t&&e.start===t.start&&e.length===t.length}function YQ(e,t,n){return(n?ht:gt)(e.fileName,t.fileName)&&QQ(e.textSpan,t.textSpan)}function ZQ(e){return(t,n)=>YQ(t,n,e)}function eY(e,t){if(e)for(let n=0;n!!oD(e)||!(VD(e)||qD(e)||UD(e))&&"quit"))}var aY=function(){const e=10*Uu;let t,n,r,i;c();const o=e=>s(e,17);return{displayParts:()=>{const n=t.length&&t[t.length-1].text;return i>e&&n&&"..."!==n&&(za(n.charCodeAt(n.length-1))||t.push(sY(" ",16)),t.push(sY("...",15))),t},writeKeyword:e=>s(e,5),writeOperator:e=>s(e,12),writePunctuation:e=>s(e,15),writeTrailingSemicolon:e=>s(e,15),writeSpace:e=>s(e,16),writeStringLiteral:e=>s(e,8),writeParameter:e=>s(e,13),writeProperty:e=>s(e,14),writeLiteral:e=>s(e,8),writeSymbol:function(n,r){i>e||(a(),i+=n.length,t.push(function(e,t){return sY(e,function(e){const t=e.flags;return 3&t?oY(e)?13:9:4&t||32768&t||65536&t?14:8&t?19:16&t?20:32&t?1:64&t?4:384&t?2:1536&t?11:8192&t?10:262144&t?18:524288&t||2097152&t?0:17}(t))}(n,r)))},writeLine:function(){i>e||(i+=1,t.push(SY()),n=!0)},write:o,writeComment:o,getText:()=>"",getTextPos:()=>0,getColumn:()=>0,getLine:()=>0,isAtStartOfLine:()=>!1,hasTrailingWhitespace:()=>!1,hasTrailingComment:()=>!1,rawWrite:ut,getIndent:()=>r,increaseIndent:()=>{r++},decreaseIndent:()=>{r--},clear:c};function a(){if(!(i>e)&&n){const e=Py(r);e&&(i+=e.length,t.push(sY(e,16))),n=!1}}function s(n,r){i>e||(a(),i+=n.length,t.push(sY(n,r)))}function c(){t=[],n=!0,r=0,i=0}}();function sY(e,t){return{text:e,kind:gG[t]}}function cY(){return sY(" ",16)}function lY(e){return sY(Da(e),5)}function _Y(e){return sY(Da(e),15)}function uY(e){return sY(Da(e),12)}function dY(e){return sY(e,13)}function pY(e){return sY(e,14)}function fY(e){const t=Fa(e);return void 0===t?mY(e):lY(t)}function mY(e){return sY(e,17)}function gY(e){return sY(e,0)}function hY(e){return sY(e,18)}function yY(e){return sY(e,24)}function vY(e){return sY(e,22)}function bY(e,t){var n;const r=[vY(`{@${HE(e)?"link":KE(e)?"linkcode":"linkplain"} `)];if(e.name){const i=null==t?void 0:t.getSymbolAtLocation(e.name),o=i&&t?EY(i,t):void 0,a=function(e){let t=e.indexOf("://");if(0===t){for(;t"===e[n]&&t--,n++,!t)return n}return 0}(e.text),s=Kd(e.name)+e.text.slice(0,a),c=function(e){let t=0;if(124===e.charCodeAt(t++)){for(;t{e.writeType(t,n,17408|r,i)}))}function wY(e,t,n,r,i=0){return TY((o=>{e.writeSymbol(t,n,r,8|i,o)}))}function NY(e,t,n,r=0){return r|=25632,TY((i=>{e.writeSignature(t,n,r,void 0,i)}))}function DY(e){return!!e.parent&&Rl(e.parent)&&e.parent.propertyName===e}function FY(e,t){return yS(e,t.getScriptKind&&t.getScriptKind(e))}function EY(e,t){let n=e;for(;PY(n)||Ku(n)&&n.links.target;)n=Ku(n)&&n.links.target?n.links.target:ix(n,t);return n}function PY(e){return!!(2097152&e.flags)}function AY(e,t){return RB(ix(e,t))}function IY(e,t){for(;za(e.charCodeAt(t));)t+=1;return t}function OY(e,t){for(;t>-1&&qa(e.charCodeAt(t));)t-=1;return t+1}function LY(e,t=!0){const n=e&&RY(e);return n&&!t&&JY(n),NT(n,!1)}function jY(e,t,n){let r=n(e);return r?YC(r,e):r=RY(e,n),r&&!t&&JY(r),r}function RY(e,t){const n=t?e=>jY(e,!0,t):LY,r=nJ(e,n,void 0,t?e=>e&&BY(e,!0,t):e=>e&&MY(e),n);return r===e?nI(TN(e)?YC(XC.createStringLiteralFromNode(e),e):kN(e)?YC(XC.createNumericLiteral(e.text,e.numericLiteralFlags),e):XC.cloneNode(e),e):(r.parent=void 0,r)}function MY(e,t=!0){if(e){const n=XC.createNodeArray(e.map((e=>LY(e,t))),e.hasTrailingComma);return nI(n,e),n}return e}function BY(e,t,n){return XC.createNodeArray(e.map((e=>jY(e,t,n))),e.hasTrailingComma)}function JY(e){zY(e),qY(e)}function zY(e){VY(e,1024,WY)}function qY(e){VY(e,2048,yx)}function UY(e,t){const n=e.getSourceFile();!function(e,t){const n=e.getFullStart(),r=e.getStart();for(let e=n;ee))}function $Y(e,t){let n=e;for(let r=1;!Td(t,n);r++)n=`${e}_${r}`;return n}function HY(e,t,n,r){let i=0,o=-1;for(const{fileName:a,textChanges:s}of e){un.assert(a===t);for(const e of s){const{span:t,newText:a}=e,s=YY(a,by(n));if(-1!==s&&(o=t.start+i+s,!r))return o;i+=a.length-t.length}}return un.assert(r),un.assert(o>=0),o}function KY(e,t,n,r,i){is(n.text,e.pos,QY(t,n,r,i,gw))}function GY(e,t,n,r,i){os(n.text,e.end,QY(t,n,r,i,vw))}function XY(e,t,n,r,i){os(n.text,e.pos,QY(t,n,r,i,gw))}function QY(e,t,n,r,i){return(o,a,s,c)=>{3===s?(o+=2,a-=2):o+=2,i(e,n||s,t.text.slice(o,a),void 0!==r?r:c)}}function YY(e,t){if(Gt(e,t))return 0;let n=e.indexOf(" "+t);return-1===n&&(n=e.indexOf("."+t)),-1===n&&(n=e.indexOf('"'+t)),-1===n?-1:n+1}function ZY(e){return cF(e)&&28===e.operatorToken.kind||$D(e)||(gF(e)||hF(e))&&$D(e.expression)}function eZ(e,t,n){const r=nh(e.parent);switch(r.kind){case 214:return t.getContextualType(r,n);case 226:{const{left:i,operatorToken:o,right:a}=r;return nZ(o.kind)?t.getTypeAtLocation(e===a?i:a):t.getContextualType(e,n)}case 296:return oZ(r,t);default:return t.getContextualType(e,n)}}function tZ(e,t,n){const r=BQ(e,t),i=JSON.stringify(n);return 0===r?`'${Dy(i).replace(/'/g,(()=>"\\'")).replace(/\\"/g,'"')}'`:i}function nZ(e){switch(e){case 37:case 35:case 38:case 36:return!0;default:return!1}}function rZ(e){switch(e.kind){case 11:case 15:case 228:case 215:return!0;default:return!1}}function iZ(e){return!!e.getStringIndexType()||!!e.getNumberIndexType()}function oZ(e,t){return t.getTypeAtLocation(e.parent.parent.expression)}var aZ="anonymous function";function sZ(e,t,n,r){const i=n.getTypeChecker();let o=!0;const a=()=>o=!1,s=i.typeToTypeNode(e,t,1,8,{trackSymbol:(e,t,n)=>(o=o&&0===i.isSymbolAccessible(e,t,n,!1).accessibility,!o),reportInaccessibleThisError:a,reportPrivateInBaseOfClassExpression:a,reportInaccessibleUniqueSymbolError:a,moduleResolverHost:IQ(n,r)});return o?s:void 0}function cZ(e){return 179===e||180===e||181===e||171===e||173===e}function lZ(e){return 262===e||176===e||174===e||177===e||178===e}function _Z(e){return 267===e}function uZ(e){return 243===e||244===e||246===e||251===e||252===e||253===e||257===e||259===e||172===e||265===e||272===e||271===e||278===e||270===e||277===e}var dZ=en(cZ,lZ,_Z,uZ);function pZ(e,t,n){const r=_c(t,(t=>t.end!==e?"quit":dZ(t.kind)));return!!r&&function(e,t){const n=e.getLastToken(t);if(n&&27===n.kind)return!1;if(cZ(e.kind)){if(n&&28===n.kind)return!1}else if(_Z(e.kind)){const n=ve(e.getChildren(t));if(n&&YF(n))return!1}else if(lZ(e.kind)){const n=ve(e.getChildren(t));if(n&&Rf(n))return!1}else if(!uZ(e.kind))return!1;if(246===e.kind)return!0;const r=LX(e,_c(e,(e=>!e.parent)),t);return!r||20===r.kind||t.getLineAndCharacterOfPosition(e.getEnd()).line!==t.getLineAndCharacterOfPosition(r.getStart(t)).line}(r,n)}function fZ(e){let t=0,n=0;return PI(e,(function r(i){if(uZ(i.kind)){const r=i.getLastToken(e);27===(null==r?void 0:r.kind)?t++:n++}else if(cZ(i.kind)){const r=i.getLastToken(e);27===(null==r?void 0:r.kind)?t++:r&&28!==r.kind&&Ja(e,r.getStart(e)).line!==Ja(e,Hp(e,r.end).start).line&&n++}return t+n>=5||PI(i,r)})),0===t&&n<=1||t/n>.2}function mZ(e,t){return bZ(e,e.getDirectories,t)||[]}function gZ(e,t,n,r,i){return bZ(e,e.readDirectory,t,n,r,i)||l}function hZ(e,t){return bZ(e,e.fileExists,t)}function yZ(e,t){return vZ((()=>Nb(t,e)))||!1}function vZ(e){try{return e()}catch{return}}function bZ(e,t,...n){return vZ((()=>t&&t.apply(e,n)))}function xZ(e,t){const n=[];return sM(t,e,(e=>{const r=jo(e,"package.json");hZ(t,r)&&n.push(r)})),n}function kZ(e,t){let n;return sM(t,e,(e=>"node_modules"===e||(n=bU(e,(e=>hZ(t,e)),"package.json"),!!n||void 0))),n}function SZ(e,t){if(!t.readFile)return;const n=["dependencies","devDependencies","optionalDependencies","peerDependencies"],r=wb(t.readFile(e)||""),i={};if(r)for(const e of n){const t=r[e];if(!t)continue;const n=new Map;for(const e in t)n.set(e,t[e]);i[e]=n}const o=[[1,i.dependencies],[2,i.devDependencies],[8,i.optionalDependencies],[4,i.peerDependencies]];return{...i,parseable:!!r,fileName:e,get:a,has:(e,t)=>!!a(e,t)};function a(e,t=15){for(const[n,r]of o)if(r&&t&n){const t=r.get(e);if(void 0!==t)return t}}}function TZ(e,t,n){const r=(n.getPackageJsonsVisibleToFile&&n.getPackageJsonsVisibleToFile(e.fileName)||function(e,t){if(!t.fileExists)return[];const n=[];return sM(t,Do(e),(e=>{const r=jo(e,"package.json");if(t.fileExists(r)){const e=SZ(r,t);e&&n.push(e)}})),n}(e.fileName,n)).filter((e=>e.parseable));let i,o,a;return{allowsImportingAmbientModule:function(e,t){if(!r.length||!e.valueDeclaration)return!0;if(o){const t=o.get(e);if(void 0!==t)return t}else o=new Map;const n=Dy(e.getName());if(c(n))return o.set(e,!0),!0;const i=l(e.valueDeclaration.getSourceFile().fileName,t);if(void 0===i)return o.set(e,!0),!0;const a=s(i)||s(n);return o.set(e,a),a},getSourceFileInfo:function(e,t){if(!r.length)return{importable:!0,packageName:void 0};if(a){const t=a.get(e);if(void 0!==t)return t}else a=new Map;const n=l(e.fileName,t);if(!n){const t={importable:!0,packageName:n};return a.set(e,t),t}const i={importable:s(n),packageName:n};return a.set(e,i),i},allowsImportingSpecifier:function(e){return!(r.length&&!c(e))||(!(!vo(e)&&!go(e))||s(e))}};function s(e){const t=_(e);for(const e of r)if(e.has(t)||e.has(pM(t)))return!0;return!1}function c(t){return!!(Nm(e)&&Dm(e)&&CC.has(t)&&(void 0===i&&(i=CZ(e)),i))}function l(r,i){if(!r.includes("node_modules"))return;const o=BM.getNodeModulesPackageName(n.getCompilationSettings(),e,r,i,t);return o?vo(o)||go(o)?void 0:_(o):void 0}function _(e){const t=Ao(mM(e)).slice(1);return Gt(t[0],"@")?`${t[0]}/${t[1]}`:t[0]}}function CZ(e){return $(e.imports,(({text:e})=>CC.has(e)))}function wZ(e){return T(Ao(e),"node_modules")}function NZ(e){return void 0!==e.file&&void 0!==e.start&&void 0!==e.length}function DZ(e,t){const n=Ce(t,pQ(e),st,bt);if(n>=0){const r=t[n];return un.assertEqual(r.file,e.getSourceFile(),"Diagnostics proided to 'findDiagnosticForNode' must be from a single SourceFile"),nt(r,NZ)}}function FZ(e,t){var n;let r=Ce(t,e.start,(e=>e.start),vt);for(r<0&&(r=~r);(null==(n=t[r-1])?void 0:n.start)===e.start;)r--;const i=[],o=Ds(e);for(;;){const n=tt(t[r],NZ);if(!n||n.start>o)break;As(e,n)&&i.push(n),r++}return i}function EZ({startPosition:e,endPosition:t}){return Ws(e,void 0===t?e:t)}function PZ(e,t){return _c(PX(e,t.start),(n=>n.getStart(e)Ds(t)?"quit":U_(n)&&QQ(t,pQ(n,e))))}function AZ(e,t,n=st){return e?Qe(e)?n(E(e,t)):t(e,0):void 0}function IZ(e){return Qe(e)?ge(e):e}function OZ(e,t,n){return"export="===e.escapedName||"default"===e.escapedName?LZ(e)||jZ(function(e){var t;return un.checkDefined(e.parent,`Symbol parent was undefined. Flags: ${un.formatSymbolFlags(e.flags)}. Declarations: ${null==(t=e.declarations)?void 0:t.map((e=>{const t=un.formatSyntaxKind(e.kind),n=Fm(e),{expression:r}=e;return(n?"[JS]":"")+t+(r?` (expression: ${un.formatSyntaxKind(r.kind)})`:"")})).join(", ")}.`)}(e),t,!!n):e.name}function LZ(e){return f(e.declarations,(t=>{var n,r,i;if(pE(t))return null==(n=tt(cA(t.expression),zN))?void 0:n.text;if(gE(t)&&2097152===t.symbol.flags)return null==(r=tt(t.propertyName,zN))?void 0:r.text;return(null==(i=tt(Tc(t),zN))?void 0:i.text)||(e.parent&&!Gu(e.parent)?e.parent.getName():void 0)}))}function jZ(e,t,n){return RZ(zS(Dy(e.name)),t,n)}function RZ(e,t,n){const r=Fo(Mt(e,"/index"));let i="",o=!0;const a=r.charCodeAt(0);ds(a,t)?(i+=String.fromCharCode(a),n&&(i=i.toUpperCase())):o=!1;for(let e=1;ee.length)return!1;for(let i=0;i(e[e.Named=0]="Named",e[e.Default=1]="Default",e[e.Namespace=2]="Namespace",e[e.CommonJS=3]="CommonJS",e))(QZ||{}),YZ=(e=>(e[e.Named=0]="Named",e[e.Default=1]="Default",e[e.ExportEquals=2]="ExportEquals",e[e.UMD=3]="UMD",e[e.Module=4]="Module",e))(YZ||{});function ZZ(e){let t=1;const n=$e(),r=new Map,i=new Map;let o;const a={isUsableByFile:e=>e===o,isEmpty:()=>!n.size,clear:()=>{n.clear(),r.clear(),o=void 0},add:(e,s,c,l,_,u,d,p)=>{let f;if(e!==o&&(a.clear(),o=e),_){const t=zT(_.fileName);if(t){const{topLevelNodeModulesIndex:n,topLevelPackageNameIndex:r,packageRootIndex:o}=t;if(f=gM(mM(_.fileName.substring(r+1,o))),Gt(e,_.path.substring(0,n))){const e=i.get(f),t=_.fileName.substring(0,r+1);e?n>e.indexOf(PR)&&i.set(f,t):i.set(f,t)}}}const m=1===u&&yb(s)||s,g=0===u||Gu(m)?fc(c):function(e,t){let n;return _0(e,t,void 0,((e,t)=>(n=t?[e,t]:e,!0))),un.checkDefined(n)}(m,p),h="string"==typeof g?g:g[0],y="string"==typeof g?void 0:g[1],v=Dy(l.name),b=t++,x=ix(s,p),k=33554432&s.flags?void 0:s,S=33554432&l.flags?void 0:l;k&&S||r.set(b,[s,l]),n.add(function(e,t,n,r){const i=n||"";return`${e.length} ${RB(ix(t,r))} ${e} ${i}`}(h,s,Ts(v)?void 0:v,p),{id:b,symbolTableKey:c,symbolName:h,capitalizedSymbolName:y,moduleName:v,moduleFile:_,moduleFileName:null==_?void 0:_.fileName,packageName:f,exportKind:u,targetFlags:x.flags,isFromPackageJson:d,symbol:k,moduleSymbol:S})},get:(e,t)=>{if(e!==o)return;const r=n.get(t);return null==r?void 0:r.map(s)},search:(t,r,a,c)=>{if(t===o)return td(n,((t,n)=>{const{symbolName:o,ambientModuleName:l}=function(e){const t=e.indexOf(" "),n=e.indexOf(" ",t+1),r=parseInt(e.substring(0,t),10),i=e.substring(n+1),o=i.substring(0,r),a=i.substring(r+1);return{symbolName:o,ambientModuleName:""===a?void 0:a}}(n),_=r&&t[0].capitalizedSymbolName||o;if(a(_,t[0].targetFlags)){const r=t.map(s).filter(((n,r)=>function(t,n){if(!n||!t.moduleFileName)return!0;const r=e.getGlobalTypingsCacheLocation();if(r&&Gt(t.moduleFileName,r))return!0;const o=i.get(n);return!o||Gt(t.moduleFileName,o)}(n,t[r].packageName)));if(r.length){const e=c(r,_,!!l,n);if(void 0!==e)return e}}}))},releaseSymbols:()=>{r.clear()},onFileChanged:(e,t,n)=>!(c(e)&&c(t)||(o&&o!==t.path||n&&CZ(e)!==CZ(t)||!te(e.moduleAugmentations,t.moduleAugmentations)||!function(e,t){if(!te(e.ambientModuleNames,t.ambientModuleNames))return!1;let n=-1,r=-1;for(const i of t.ambientModuleNames){const o=e=>cp(e)&&e.name.text===i;if(n=k(e.statements,o,n+1),r=k(t.statements,o,r+1),e.statements[n]!==t.statements[r])return!1}return!0}(e,t)?(a.clear(),0):(o=t.path,1)))};return un.isDebugging&&Object.defineProperty(a,"__cache",{value:n}),a;function s(t){if(t.symbol&&t.moduleSymbol)return t;const{id:n,exportKind:i,targetFlags:o,isFromPackageJson:a,moduleFileName:s}=t,[c,_]=r.get(n)||l;if(c&&_)return{symbol:c,moduleSymbol:_,moduleFileName:s,exportKind:i,targetFlags:o,isFromPackageJson:a};const u=(a?e.getPackageJsonAutoImportProvider():e.getCurrentProgram()).getTypeChecker(),d=t.moduleSymbol||_||un.checkDefined(t.moduleFile?u.getMergedSymbol(t.moduleFile.symbol):u.tryFindAmbientModule(t.moduleName)),p=t.symbol||c||un.checkDefined(2===i?u.resolveExternalModuleSymbol(d):u.tryGetMemberInModuleExportsAndProperties(fc(t.symbolTableKey),d),`Could not find symbol '${t.symbolName}' by key '${t.symbolTableKey}' in module ${d.name}`);return r.set(n,[p,d]),{symbol:p,moduleSymbol:d,moduleFileName:s,exportKind:i,targetFlags:o,isFromPackageJson:a}}function c(e){return!(e.commonJsModuleIndicator||e.externalModuleIndicator||e.moduleAugmentations||e.ambientModuleNames)}}function e0(e,t,n,r,i,o,a,s){var c;if(!n){let n;const i=Dy(r.name);return CC.has(i)&&void 0!==(n=zZ(t,e))?n===Gt(i,"node:"):!o||o.allowsImportingAmbientModule(r,a)||t0(t,i)}if(un.assertIsDefined(n),t===n)return!1;const l=null==s?void 0:s.get(t.path,n.path,i,{});if(void 0!==(null==l?void 0:l.isBlockedByPackageJsonDependencies))return!l.isBlockedByPackageJsonDependencies||!!l.packageName&&t0(t,l.packageName);const _=jy(a),u=null==(c=a.getGlobalTypingsCacheLocation)?void 0:c.call(a),d=!!BM.forEachFileNameOfModule(t.fileName,n.fileName,a,!1,(r=>{const i=e.getSourceFile(r);return(i===n||!i)&&function(e,t,n,r,i){const o=sM(i,t,(e=>"node_modules"===Fo(e)?e:void 0)),a=o&&Do(n(o));return void 0===a||Gt(n(e),a)||!!r&&Gt(n(r),a)}(t.fileName,r,_,u,a)}));if(o){const e=d?o.getSourceFileInfo(n,a):void 0;return null==s||s.setBlockedByPackageJsonDependencies(t.path,n.path,i,{},null==e?void 0:e.packageName,!(null==e?void 0:e.importable)),!!(null==e?void 0:e.importable)||d&&!!(null==e?void 0:e.packageName)&&t0(t,e.packageName)}return d}function t0(e,t){return e.imports&&e.imports.some((e=>e.text===t||e.text.startsWith(t+"/")))}function n0(e,t,n,r,i){var o,a;const s=Ly(t),c=n.autoImportFileExcludePatterns&&r0(n,s);i0(e.getTypeChecker(),e.getSourceFiles(),c,t,((t,n)=>i(t,n,e,!1)));const l=r&&(null==(o=t.getPackageJsonAutoImportProvider)?void 0:o.call(t));if(l){const n=Un(),r=e.getTypeChecker();i0(l.getTypeChecker(),l.getSourceFiles(),c,t,((t,n)=>{(n&&!e.getSourceFile(n.fileName)||!n&&!r.resolveName(t.name,void 0,1536,!1))&&i(t,n,l,!0)})),null==(a=t.log)||a.call(t,"forEachExternalModuleToImportFrom autoImportProvider: "+(Un()-n))}}function r0(e,t){return B(e.autoImportFileExcludePatterns,(e=>{const n=uS(e,"","exclude");return n?fS(n,t):void 0}))}function i0(e,t,n,r,i){var o;const a=n&&o0(n,r);for(const t of e.getAmbientModules())t.name.includes("*")||n&&(null==(o=t.declarations)?void 0:o.every((e=>a(e.getSourceFile()))))||i(t,void 0);for(const n of t)Qp(n)&&!(null==a?void 0:a(n))&&i(e.getMergedSymbol(n.symbol),n)}function o0(e,t){var n;const r=null==(n=t.getSymlinkCache)?void 0:n.call(t).getSymlinkedDirectoriesByRealpath();return({fileName:n,path:i})=>{if(e.some((e=>e.test(n))))return!0;if((null==r?void 0:r.size)&&AR(n)){let o=Do(n);return sM(t,Do(i),(t=>{const i=r.get(Vo(t));if(i)return i.some((t=>e.some((e=>e.test(n.replace(o,t))))));o=Do(o)}))??!1}return!1}}function a0(e,t){return t.autoImportFileExcludePatterns?o0(r0(t,Ly(e)),e):()=>!1}function s0(e,t,n,r,i){var o,a,s,c,l;const _=Un();null==(o=t.getPackageJsonAutoImportProvider)||o.call(t);const u=(null==(a=t.getCachedExportInfoMap)?void 0:a.call(t))||ZZ({getCurrentProgram:()=>n,getPackageJsonAutoImportProvider:()=>{var e;return null==(e=t.getPackageJsonAutoImportProvider)?void 0:e.call(t)},getGlobalTypingsCacheLocation:()=>{var e;return null==(e=t.getGlobalTypingsCacheLocation)?void 0:e.call(t)}});if(u.isUsableByFile(e.path))return null==(s=t.log)||s.call(t,"getExportInfoMap: cache hit"),u;null==(c=t.log)||c.call(t,"getExportInfoMap: cache miss or empty; calculating new results");let d=0;try{n0(n,t,r,!0,((t,n,r,o)=>{++d%100==0&&(null==i||i.throwIfCancellationRequested());const a=new Set,s=r.getTypeChecker(),c=c0(t,s);c&&l0(c.symbol,s)&&u.add(e.path,c.symbol,1===c.exportKind?"default":"export=",t,n,c.exportKind,o,s),s.forEachExportAndPropertyOfModule(t,((r,i)=>{r!==(null==c?void 0:c.symbol)&&l0(r,s)&&vx(a,i)&&u.add(e.path,r,i,t,n,0,o,s)}))}))}catch(e){throw u.clear(),e}return null==(l=t.log)||l.call(t,`getExportInfoMap: done in ${Un()-_} ms`),u}function c0(e,t){const n=t.resolveExternalModuleSymbol(e);if(n!==e){const e=t.tryGetMemberInModuleExports("default",n);return e?{symbol:e,exportKind:1}:{symbol:n,exportKind:2}}const r=t.tryGetMemberInModuleExports("default",e);if(r)return{symbol:r,exportKind:1}}function l0(e,t){return!(t.isUndefinedSymbol(e)||t.isUnknownSymbol(e)||Vh(e)||Wh(e))}function _0(e,t,n,r){let i,o=e;const a=new Set;for(;o;){const e=LZ(o);if(e){const t=r(e);if(t)return t}if("default"!==o.escapedName&&"export="!==o.escapedName){const e=r(o.name);if(e)return e}if(i=ie(i,o),!vx(a,o))break;o=2097152&o.flags?t.getImmediateAliasedSymbol(o):void 0}for(const e of i??l)if(e.parent&&Gu(e.parent)){const t=r(jZ(e.parent,n,!1),jZ(e.parent,n,!0));if(t)return t}}function u0(){const e=ms(99,!1);function t(t,n,r){let i=0,o=0;const a=[],{prefix:s,pushTemplate:c}=function(e){switch(e){case 3:return{prefix:'"\\\n'};case 2:return{prefix:"'\\\n"};case 1:return{prefix:"/*\n"};case 4:return{prefix:"`\n"};case 5:return{prefix:"}\n",pushTemplate:!0};case 6:return{prefix:"",pushTemplate:!0};case 0:return{prefix:""};default:return un.assertNever(e)}}(n);t=s+t;const l=s.length;c&&a.push(16),e.setText(t);let _=0;const u=[];let d=0;do{i=e.scan(),Ph(i)||(p(),o=i);const n=e.getTokenEnd();if(m0(e.getTokenStart(),n,l,h0(i),u),n>=t.length){const t=f0(e,i,ye(a));void 0!==t&&(_=t)}}while(1!==i);function p(){switch(i){case 44:case 69:p0[o]||14!==e.reScanSlashToken()||(i=14);break;case 30:80===o&&d++;break;case 32:d>0&&d--;break;case 133:case 154:case 150:case 136:case 155:d>0&&!r&&(i=80);break;case 16:a.push(i);break;case 19:a.length>0&&a.push(i);break;case 20:if(a.length>0){const t=ye(a);16===t?(i=e.reScanTemplateToken(!1),18===i?a.pop():un.assertEqual(i,17,"Should have been a template middle.")):(un.assertEqual(t,19,"Should have been an open brace"),a.pop())}break;default:if(!Th(i))break;(25===o||Th(o)&&Th(i)&&!function(e,t){if(!aQ(e))return!0;switch(t){case 139:case 153:case 137:case 126:case 129:return!0;default:return!1}}(o,i))&&(i=80)}}return{endOfLineState:_,spans:u}}return{getClassificationsForLine:function(e,n,r){return function(e,t){const n=[],r=e.spans;let i=0;for(let e=0;e=0){const e=t-i;e>0&&n.push({length:e,classification:4})}n.push({length:o,classification:g0(a)}),i=t+o}const o=t.length-i;return o>0&&n.push({length:o,classification:4}),{entries:n,finalLexState:e.endOfLineState}}(t(e,n,r),e)},getEncodedLexicalClassifications:t}}var d0,p0=Me([80,11,9,10,14,110,46,47,22,24,20,112,97],(e=>e),(()=>!0));function f0(e,t,n){switch(t){case 11:{if(!e.isUnterminated())return;const t=e.getTokenText(),n=t.length-1;let r=0;for(;92===t.charCodeAt(n-r);)r++;if(!(1&r))return;return 34===t.charCodeAt(0)?3:2}case 3:return e.isUnterminated()?1:void 0;default:if(Ol(t)){if(!e.isUnterminated())return;switch(t){case 18:return 5;case 15:return 4;default:return un.fail("Only 'NoSubstitutionTemplateLiteral's and 'TemplateTail's can be unterminated; got SyntaxKind #"+t)}}return 16===n?6:void 0}}function m0(e,t,n,r,i){if(8===r)return;0===e&&n>0&&(e+=n);const o=t-e;o>0&&i.push(e-n,o,r)}function g0(e){switch(e){case 1:return 3;case 3:return 1;case 4:return 6;case 25:return 7;case 5:return 2;case 6:return 8;case 8:return 4;case 10:return 0;case 2:case 11:case 12:case 13:case 14:case 15:case 16:case 9:case 17:return 5;default:return}}function h0(e){if(Th(e))return 3;if(function(e){switch(e){case 42:case 44:case 45:case 40:case 41:case 48:case 49:case 50:case 30:case 32:case 33:case 34:case 104:case 103:case 130:case 152:case 35:case 36:case 37:case 38:case 51:case 53:case 52:case 56:case 57:case 75:case 74:case 79:case 71:case 72:case 73:case 65:case 66:case 67:case 69:case 70:case 64:case 28:case 61:case 76:case 77:case 78:return!0;default:return!1}}(e)||function(e){switch(e){case 40:case 41:case 55:case 54:case 46:case 47:return!0;default:return!1}}(e))return 5;if(e>=19&&e<=79)return 10;switch(e){case 9:return 4;case 10:return 25;case 11:return 6;case 14:return 7;case 7:case 3:case 2:return 1;case 5:case 4:return 8;default:return Ol(e)?6:2}}function y0(e,t,n,r,i){return S0(b0(e,t,n,r,i))}function v0(e,t){switch(t){case 267:case 263:case 264:case 262:case 231:case 218:case 219:e.throwIfCancellationRequested()}}function b0(e,t,n,r,i){const o=[];return n.forEachChild((function a(s){if(s&&Ms(i,s.pos,s.getFullWidth())){if(v0(t,s.kind),zN(s)&&!Cd(s)&&r.has(s.escapedText)){const t=e.getSymbolAtLocation(s),r=t&&x0(t,FG(s),e);r&&function(e,t,n){const r=t-e;un.assert(r>0,`Classification had non-positive length of ${r}`),o.push(e),o.push(r),o.push(n)}(s.getStart(n),s.getEnd(),r)}s.forEachChild(a)}})),{spans:o,endOfLineState:0}}function x0(e,t,n){const r=e.getFlags();return 2885600&r?32&r?11:384&r?12:524288&r?16:1536&r?4&t||1&t&&function(e){return $(e.declarations,(e=>QF(e)&&1===wM(e)))}(e)?14:void 0:2097152&r?x0(n.getAliasedSymbol(e),t,n):2&t?64&r?13:262144&r?15:void 0:void 0:void 0}function k0(e){switch(e){case 1:return"comment";case 2:return"identifier";case 3:return"keyword";case 4:return"number";case 25:return"bigint";case 5:return"operator";case 6:return"string";case 8:return"whitespace";case 9:return"text";case 10:return"punctuation";case 11:return"class name";case 12:return"enum name";case 13:return"interface name";case 14:return"module name";case 15:return"type parameter name";case 16:return"type alias name";case 17:return"parameter name";case 18:return"doc comment tag name";case 19:return"jsx open tag name";case 20:return"jsx close tag name";case 21:return"jsx self closing tag name";case 22:return"jsx attribute";case 23:return"jsx text";case 24:return"jsx attribute string literal value";default:return}}function S0(e){un.assert(e.spans.length%3==0);const t=e.spans,n=[];for(let e=0;e])*)(\/>)?)?/m.exec(i);if(!o)return!1;if(!o[3]||!(o[3]in Li))return!1;let a=e;_(a,o[1].length),a+=o[1].length,c(a,o[2].length,10),a+=o[2].length,c(a,o[3].length,21),a+=o[3].length;const s=o[4];let l=a;for(;;){const e=r.exec(s);if(!e)break;const t=a+e.index+e[1].length;t>l&&(_(l,t-l),l=t),c(l,e[2].length,22),l+=e[2].length,e[3].length&&(_(l,e[3].length),l+=e[3].length),c(l,e[4].length,5),l+=e[4].length,e[5].length&&(_(l,e[5].length),l+=e[5].length),c(l,e[6].length,24),l+=e[6].length}a+=o[4].length,a>l&&_(l,a-l),o[5]&&(c(a,o[5].length,10),a+=o[5].length);const u=e+n;return a=0),i>0){const t=n||m(e.kind,e);t&&c(r,i,t)}return!0}function m(e,t){if(Th(e))return 3;if((30===e||32===e)&&t&&eQ(t.parent))return 10;if(Ch(e)){if(t){const n=t.parent;if(64===e&&(260===n.kind||172===n.kind||169===n.kind||291===n.kind))return 5;if(226===n.kind||224===n.kind||225===n.kind||227===n.kind)return 5}return 10}if(9===e)return 4;if(10===e)return 25;if(11===e)return t&&291===t.parent.kind?24:6;if(14===e)return 6;if(Ol(e))return 6;if(12===e)return 23;if(80===e){if(t){switch(t.parent.kind){case 263:return t.parent.name===t?11:void 0;case 168:return t.parent.name===t?15:void 0;case 264:return t.parent.name===t?13:void 0;case 266:return t.parent.name===t?12:void 0;case 267:return t.parent.name===t?14:void 0;case 169:return t.parent.name===t?cv(t)?3:17:void 0}if(xl(t.parent))return 3}return 2}}function g(n){if(n&&Bs(r,i,n.pos,n.getFullWidth())){v0(e,n.kind);for(const e of n.getChildren(t))f(e)||g(e)}}}function w0(e){return!!e.sourceFile}function N0(e,t,n){return D0(e,t,n)}function D0(e,t="",n,r){const i=new Map,o=Wt(!!e);function a(e){return"function"==typeof e.getCompilationSettings?e.getCompilationSettings():e}function s(e,t,n,r,i,o,a,s){return _(e,t,n,r,i,o,!0,a,s)}function c(e,t,n,r,i,o,s,c){return _(e,t,a(n),r,i,o,!1,s,c)}function l(e,t){const n=w0(e)?e:e.get(un.checkDefined(t,"If there are more than one scriptKind's for same document the scriptKind should be provided"));return un.assert(void 0===t||!n||n.sourceFile.scriptKind===t,`Script kind should match provided ScriptKind:${t} and sourceFile.scriptKind: ${null==n?void 0:n.sourceFile.scriptKind}, !entry: ${!n}`),n}function _(e,t,o,s,c,_,u,d,p){var f,m,g,h;d=yS(e,d);const y=a(o),v=o===y?void 0:o,b=6===d?100:hk(y),x="object"==typeof p?p:{languageVersion:b,impliedNodeFormat:v&&hV(t,null==(h=null==(g=null==(m=null==(f=v.getCompilerHost)?void 0:f.call(v))?void 0:m.getModuleResolutionCache)?void 0:g.call(m))?void 0:h.getPackageJsonInfoCache(),v,y),setExternalModuleIndicator:dk(y),jsDocParsingMode:n};x.languageVersion=b,un.assertEqual(n,x.jsDocParsingMode);const k=i.size,S=E0(s,x.impliedNodeFormat),T=z(i,S,(()=>new Map));if(Hn){i.size>k&&Hn.instant(Hn.Phase.Session,"createdDocumentRegistryBucket",{configFilePath:y.configFilePath,key:S});const e=!$I(t)&&td(i,((e,n)=>n!==S&&e.has(t)&&n));e&&Hn.instant(Hn.Phase.Session,"documentRegistryBucketOverlap",{path:t,key1:e,key2:S})}const C=T.get(t);let w=C&&l(C,d);if(!w&&r){const e=r.getDocument(S,t);e&&e.scriptKind===d&&e.text===CQ(c)&&(un.assert(u),w={sourceFile:e,languageServiceRefCount:0},N())}if(w)w.sourceFile.version!==_&&(w.sourceFile=O8(w.sourceFile,c,_,c.getChangeRange(w.sourceFile.scriptSnapshot)),r&&r.setDocument(S,t,w.sourceFile)),u&&w.languageServiceRefCount++;else{const n=I8(e,c,x,_,!1,d);r&&r.setDocument(S,t,n),w={sourceFile:n,languageServiceRefCount:1},N()}return un.assert(0!==w.languageServiceRefCount),w.sourceFile;function N(){if(C)if(w0(C)){const e=new Map;e.set(C.sourceFile.scriptKind,C),e.set(d,w),T.set(t,e)}else C.set(d,w);else T.set(t,w)}}function u(e,t,n,r){const o=un.checkDefined(i.get(E0(t,r))),a=o.get(e),s=l(a,n);s.languageServiceRefCount--,un.assert(s.languageServiceRefCount>=0),0===s.languageServiceRefCount&&(w0(a)?o.delete(e):(a.delete(n),1===a.size&&o.set(e,m(a.values(),st))))}return{acquireDocument:function(e,n,r,i,c,l){return s(e,qo(e,t,o),n,F0(a(n)),r,i,c,l)},acquireDocumentWithKey:s,updateDocument:function(e,n,r,i,s,l){return c(e,qo(e,t,o),n,F0(a(n)),r,i,s,l)},updateDocumentWithKey:c,releaseDocument:function(e,n,r,i){return u(qo(e,t,o),F0(n),r,i)},releaseDocumentWithKey:u,getKeyForCompilationSettings:F0,getDocumentRegistryBucketKeyWithMode:E0,reportStats:function(){const e=Oe(i.keys()).filter((e=>e&&"_"===e.charAt(0))).map((e=>{const t=i.get(e),n=[];return t.forEach(((e,t)=>{w0(e)?n.push({name:t,scriptKind:e.sourceFile.scriptKind,refCount:e.languageServiceRefCount}):e.forEach(((e,r)=>n.push({name:t,scriptKind:r,refCount:e.languageServiceRefCount})))})),n.sort(((e,t)=>t.refCount-e.refCount)),{bucket:e,sourceFiles:n}}));return JSON.stringify(e,void 0,2)},getBuckets:()=>i}}function F0(e){return sR(e,bO)}function E0(e,t){return t?`${e}|${t}`:e}function P0(e,t,n,r,i,o,a){const s=Ly(r),c=Wt(s),l=A0(t,n,c,a),_=A0(n,t,c,a);return Tue.ChangeTracker.with({host:r,formatContext:i,preferences:o},(i=>{!function(e,t,n,r,i,o,a){const{configFile:s}=e.getCompilerOptions();if(!s)return;const c=Do(s.fileName),l=Vf(s);function _(e){const t=WD(e.initializer)?e.initializer.elements:[e.initializer];let n=!1;for(const e of t)n=u(e)||n;return n}function u(e){if(!TN(e))return!1;const r=I0(c,e.text),i=n(r);return void 0!==i&&(t.replaceRangeWithText(s,R0(e,s),d(i)),!0)}function d(e){return na(c,e,!a)}l&&M0(l,((e,n)=>{switch(n){case"files":case"include":case"exclude":{if(_(e)||"include"!==n||!WD(e.initializer))return;const l=B(e.initializer.elements,(e=>TN(e)?e.text:void 0));if(0===l.length)return;const u=pS(c,[],l,a,o);return void(fS(un.checkDefined(u.includeFilePattern),a).test(r)&&!fS(un.checkDefined(u.includeFilePattern),a).test(i)&&t.insertNodeAfter(s,ve(e.initializer.elements),XC.createStringLiteral(d(i))))}case"compilerOptions":return void M0(e.initializer,((e,t)=>{const n=WO(t);un.assert("listOrElement"!==(null==n?void 0:n.type)),n&&(n.isFilePath||"list"===n.type&&n.element.isFilePath)?_(e):"paths"===t&&M0(e.initializer,(e=>{if(WD(e.initializer))for(const t of e.initializer.elements)u(t)}))}))}}))}(e,i,l,t,n,r.getCurrentDirectory(),s),function(e,t,n,r,i,o){const a=e.getSourceFiles();for(const s of a){const c=n(s.fileName),l=c??s.fileName,_=Do(l),u=r(s.fileName),d=u||s.fileName,p=Do(d),f=void 0!==c||void 0!==u;j0(s,t,(e=>{if(!vo(e))return;const t=I0(p,e),r=n(t);return void 0===r?void 0:Wo(na(_,r,o))}),(t=>{const r=e.getTypeChecker().getSymbolAtLocation(t);if((null==r?void 0:r.declarations)&&r.declarations.some((e=>ap(e))))return;const o=void 0!==u?L0(t,bR(t.text,d,e.getCompilerOptions(),i),n,a):O0(r,t,s,e,i,n);return void 0!==o&&(o.updated||f&&vo(t.text))?BM.updateModuleSpecifier(e.getCompilerOptions(),s,l,o.newFileName,AQ(e,i),t.text):void 0}))}}(e,i,l,_,r,c)}))}function A0(e,t,n,r){const i=n(e);return e=>{const o=r&&r.tryGetSourcePosition({fileName:e,pos:0}),a=function(e){if(n(e)===i)return t;const r=Qk(e,i,n);return void 0===r?void 0:t+"/"+r}(o?o.fileName:e);return o?void 0===a?void 0:function(e,t,n,r){const i=ia(e,t,r);return I0(Do(n),i)}(o.fileName,a,e,n):a}}function I0(e,t){return Wo(function(e,t){return Jo(jo(e,t))}(e,t))}function O0(e,t,n,r,i,o){if(e){const t=b(e.declarations,qE).fileName,n=o(t);return void 0===n?{newFileName:t,updated:!1}:{newFileName:n,updated:!0}}{const e=r.getModeForUsageLocation(n,t);return L0(t,i.resolveModuleNameLiterals||!i.resolveModuleNames?r.getResolvedModuleFromModuleSpecifier(t,n):i.getResolvedModuleWithFailedLookupLocationsFromCache&&i.getResolvedModuleWithFailedLookupLocationsFromCache(t.text,n.fileName,e),o,r.getSourceFiles())}}function L0(e,t,n,r){if(!t)return;if(t.resolvedModule){const e=o(t.resolvedModule.resolvedFileName);if(e)return e}return d(t.failedLookupLocations,(function(e){const t=n(e);return t&&b(r,(e=>e.fileName===t))?i(e):void 0}))||vo(e.text)&&d(t.failedLookupLocations,i)||t.resolvedModule&&{newFileName:t.resolvedModule.resolvedFileName,updated:!1};function i(e){return Rt(e,"/package.json")?void 0:o(e)}function o(e){const t=n(e);return t&&{newFileName:t,updated:!0}}}function j0(e,t,n,r){for(const r of e.referencedFiles||l){const i=n(r.fileName);void 0!==i&&i!==e.text.slice(r.pos,r.end)&&t.replaceRangeWithText(e,r,i)}for(const n of e.imports){const i=r(n);void 0!==i&&i!==n.text&&t.replaceRangeWithText(e,R0(n,e),i)}}function R0(e,t){return Pb(e.getStart(t)+1,e.end-1)}function M0(e,t){if($D(e))for(const n of e.properties)ME(n)&&TN(n.name)&&t(n,n.name.text)}(e=>{function t(e,t){return{fileName:t.fileName,textSpan:pQ(e,t),kind:"none"}}function n(e){return zF(e)?[e]:qF(e)?K(e.catchClause?n(e.catchClause):e.tryBlock&&n(e.tryBlock),e.finallyBlock&&n(e.finallyBlock)):n_(e)?void 0:i(e,n)}function r(e){return Tl(e)?[e]:n_(e)?void 0:i(e,r)}function i(e,t){const n=[];return e.forEachChild((e=>{const r=t(e);void 0!==r&&n.push(...Ye(r))})),n}function o(e,t){const n=a(t);return!!n&&n===e}function a(e){return _c(e,(t=>{switch(t.kind){case 255:if(251===e.kind)return!1;case 248:case 249:case 250:case 247:case 246:return!e.label||function(e,t){return!!_c(e.parent,(e=>JF(e)?e.label.escapedText===t:"quit"))}(t,e.label.escapedText);default:return n_(t)&&"quit"}}))}function s(e,t,...n){return!(!t||!T(n,t.kind)||(e.push(t),0))}function c(e){const t=[];if(s(t,e.getFirstToken(),99,117,92)&&246===e.kind){const n=e.getChildren();for(let e=n.length-1;e>=0&&!s(t,n[e],117);e--);}return d(r(e.statement),(n=>{o(e,n)&&s(t,n.getFirstToken(),83,88)})),t}function l(e){const t=a(e);if(t)switch(t.kind){case 248:case 249:case 250:case 246:case 247:return c(t);case 255:return _(t)}}function _(e){const t=[];return s(t,e.getFirstToken(),109),d(e.caseBlock.clauses,(n=>{s(t,n.getFirstToken(),84,90),d(r(n),(n=>{o(e,n)&&s(t,n.getFirstToken(),83)}))})),t}function u(e,t){const n=[];return s(n,e.getFirstToken(),113),e.catchClause&&s(n,e.catchClause.getFirstToken(),85),e.finallyBlock&&s(n,yX(e,98,t),98),n}function p(e,t){const r=function(e){let t=e;for(;t.parent;){const e=t.parent;if(Rf(e)||307===e.kind)return e;if(qF(e)&&e.tryBlock===t&&e.catchClause)return t;t=e}}(e);if(!r)return;const i=[];return d(n(r),(e=>{i.push(yX(e,111,t))})),Rf(r)&&wf(r,(e=>{i.push(yX(e,107,t))})),i}function f(e,t){const r=Hf(e);if(!r)return;const i=[];return wf(nt(r.body,CF),(e=>{i.push(yX(e,107,t))})),d(n(r.body),(e=>{i.push(yX(e,111,t))})),i}function m(e){const t=Hf(e);if(!t)return;const n=[];return t.modifiers&&t.modifiers.forEach((e=>{s(n,e,134)})),PI(t,(e=>{g(e,(e=>{oF(e)&&s(n,e.getFirstToken(),135)}))})),n}function g(e,t){t(e),n_(e)||__(e)||KF(e)||QF(e)||GF(e)||v_(e)||PI(e,(e=>g(e,t)))}e.getDocumentHighlights=function(e,n,r,i,o){const a=FX(r,i);if(a.parent&&(TE(a.parent)&&a.parent.tagName===a||CE(a.parent))){const{openingElement:e,closingElement:n}=a.parent.parent,i=[e,n].map((({tagName:e})=>t(e,r)));return[{fileName:r.fileName,highlightSpans:i}]}return function(e,t,n,r,i){const o=new Set(i.map((e=>e.fileName))),a=ice.getReferenceEntriesForNode(e,t,n,i,r,void 0,o);if(!a)return;const s=Be(a.map(ice.toHighlightSpan),(e=>e.fileName),(e=>e.span)),c=Wt(n.useCaseSensitiveFileNames());return Oe(J(s.entries(),(([e,t])=>{if(!o.has(e)){if(!n.redirectTargetsMap.has(qo(e,n.getCurrentDirectory(),c)))return;const t=n.getSourceFile(e);e=b(i,(e=>!!e.redirectInfo&&e.redirectInfo.redirectTarget===t)).fileName,un.assert(o.has(e))}return{fileName:e,highlightSpans:t}})))}(i,a,e,n,o)||function(e,n){const r=function(e,n){switch(e.kind){case 101:case 93:return FF(e.parent)?function(e,n){const r=function(e,t){const n=[];for(;FF(e.parent)&&e.parent.elseStatement===e;)e=e.parent;for(;;){const r=e.getChildren(t);s(n,r[0],101);for(let e=r.length-1;e>=0&&!s(n,r[e],93);e--);if(!e.elseStatement||!FF(e.elseStatement))break;e=e.elseStatement}return n}(e,n),i=[];for(let e=0;e=t.end;e--)if(!qa(n.text.charCodeAt(e))){a=!1;break}if(a){i.push({fileName:n.fileName,textSpan:Ws(t.getStart(),o.end),kind:"reference"}),e++;continue}}i.push(t(r[e],n))}return i}(e.parent,n):void 0;case 107:return o(e.parent,RF,f);case 111:return o(e.parent,zF,p);case 113:case 85:case 98:return o(85===e.kind?e.parent.parent:e.parent,qF,u);case 109:return o(e.parent,BF,_);case 84:case 90:return LE(e.parent)||OE(e.parent)?o(e.parent.parent.parent,BF,_):void 0;case 83:case 88:return o(e.parent,Tl,l);case 99:case 117:case 92:return o(e.parent,(e=>W_(e,!0)),c);case 137:return i(dD,[137]);case 139:case 153:return i(u_,[139,153]);case 135:return o(e.parent,oF,m);case 134:return a(m(e));case 127:return a(function(e){const t=Hf(e);if(!t)return;const n=[];return PI(t,(e=>{g(e,(e=>{uF(e)&&s(n,e.getFirstToken(),127)}))})),n}(e));case 103:case 147:return;default:return Gl(e.kind)&&(lu(e.parent)||wF(e.parent))?a((r=e.kind,B(function(e,t){const n=e.parent;switch(n.kind){case 268:case 307:case 241:case 296:case 297:return 64&t&&HF(e)?[...e.members,e]:n.statements;case 176:case 174:case 262:return[...n.parameters,...__(n.parent)?n.parent.members:[]];case 263:case 231:case 264:case 187:const r=n.members;if(15&t){const e=b(n.members,dD);if(e)return[...r,...e.parameters]}else if(64&t)return[...r,n];return r;default:return}}(e.parent,$v(r)),(e=>KQ(e,r))))):void 0}var r;function i(t,r){return o(e.parent,t,(e=>{var i;return B(null==(i=tt(e,ou))?void 0:i.symbol.declarations,(e=>t(e)?b(e.getChildren(n),(e=>T(r,e.kind))):void 0))}))}function o(e,t,r){return t(e)?a(r(e,n)):void 0}function a(e){return e&&e.map((e=>t(e,n)))}}(e,n);return r&&[{fileName:n.fileName,highlightSpans:r}]}(a,r)}})(d0||(d0={}));var B0=(e=>(e[e.exact=0]="exact",e[e.prefix=1]="prefix",e[e.substring=2]="substring",e[e.camelCase=3]="camelCase",e))(B0||{});function J0(e,t){return{kind:e,isCaseSensitive:t}}function z0(e){const t=new Map,n=e.trim().split(".").map((e=>{return{totalTextChunk:e1(t=e.trim()),subWordTextChunks:Z0(t)};var t}));return 1===n.length&&""===n[0].totalTextChunk.text?{getMatchForLastSegmentOfPattern:()=>J0(2,!0),getFullMatch:()=>J0(2,!0),patternContainsDots:!1}:n.some((e=>!e.subWordTextChunks.length))?void 0:{getFullMatch:(e,r)=>function(e,t,n,r){if(!V0(t,ve(n),r))return;if(n.length-1>e.length)return;let i;for(let t=n.length-2,o=e.length-1;t>=0;t-=1,o-=1)i=W0(i,V0(e[o],n[t],r));return i}(e,r,n,t),getMatchForLastSegmentOfPattern:e=>V0(e,ve(n),t),patternContainsDots:n.length>1}}function q0(e,t){let n=t.get(e);return n||t.set(e,n=n1(e)),n}function U0(e,t,n){const r=function(e,t){const n=e.length-t.length;for(let r=0;r<=n;r++)if(l1(t,((t,n)=>Q0(e.charCodeAt(n+r))===t)))return r;return-1}(e,t.textLowerCase);if(0===r)return J0(t.text.length===e.length?0:1,Gt(e,t.text));if(t.isLowerCase){if(-1===r)return;const i=q0(e,n);for(const n of i)if(H0(e,n,t.text,!0))return J0(2,H0(e,n,t.text,!1));if(t.text.length0)return J0(2,!0);if(t.characterSpans.length>0){const r=q0(e,n),i=!!K0(e,r,t,!1)||!K0(e,r,t,!0)&&void 0;if(void 0!==i)return J0(3,i)}}}function V0(e,t,n){if(l1(t.totalTextChunk.text,(e=>32!==e&&42!==e))){const r=U0(e,t.totalTextChunk,n);if(r)return r}const r=t.subWordTextChunks;let i;for(const t of r)i=W0(i,U0(e,t,n));return i}function W0(e,t){return kt([e,t],$0)}function $0(e,t){return void 0===e?1:void 0===t?-1:vt(e.kind,t.kind)||Ot(!e.isCaseSensitive,!t.isCaseSensitive)}function H0(e,t,n,r,i={start:0,length:n.length}){return i.length<=t.length&&c1(0,i.length,(o=>function(e,t,n){return n?Q0(e)===Q0(t):e===t}(n.charCodeAt(i.start+o),e.charCodeAt(t.start+o),r)))}function K0(e,t,n,r){const i=n.characterSpans;let o,a,s=0,c=0;for(;;){if(c===i.length)return!0;if(s===t.length)return!1;let l=t[s],_=!1;for(;c=65&&e<=90)return!0;if(e<127||!Ca(e,99))return!1;const t=String.fromCharCode(e);return t===t.toUpperCase()}function X0(e){if(e>=97&&e<=122)return!0;if(e<127||!Ca(e,99))return!1;const t=String.fromCharCode(e);return t===t.toLowerCase()}function Q0(e){return e>=65&&e<=90?e-65+97:e<127?e:String.fromCharCode(e).toLowerCase().charCodeAt(0)}function Y0(e){return e>=48&&e<=57}function Z0(e){const t=[];let n=0,r=0;for(let o=0;o0&&(t.push(e1(e.substr(n,r))),r=0);var i;return r>0&&t.push(e1(e.substr(n,r))),t}function e1(e){const t=e.toLowerCase();return{text:e,textLowerCase:t,isLowerCase:e===t,characterSpans:t1(e)}}function t1(e){return r1(e,!1)}function n1(e){return r1(e,!0)}function r1(e,t){const n=[];let r=0;for(let i=1;ii1(e)&&95!==e),t,n)}function a1(e,t,n){return t!==n&&t+1t(e.charCodeAt(n),n)))}function _1(e,t=!0,n=!1){const r={languageVersion:1,pragmas:void 0,checkJsDirective:void 0,referencedFiles:[],typeReferenceDirectives:[],libReferenceDirectives:[],amdDependencies:[],hasNoDefaultLib:void 0,moduleName:void 0},i=[];let o,a,s,c=0,l=!1;function _(){return a=s,s=wG.scan(),19===s?c++:20===s&&c--,s}function d(){const e=wG.getTokenValue(),t=wG.getTokenStart();return{fileName:e,pos:t,end:t+e.length}}function p(){i.push(d()),f()}function f(){0===c&&(l=!0)}function m(){let e=wG.getToken();return 138===e&&(e=_(),144===e&&(e=_(),11===e&&(o||(o=[]),o.push({ref:d(),depth:c}))),!0)}function g(){if(25===a)return!1;let e=wG.getToken();if(102===e){if(e=_(),21===e){if(e=_(),11===e||15===e)return p(),!0}else{if(11===e)return p(),!0;if(156===e&&wG.lookAhead((()=>{const e=wG.scan();return 161!==e&&(42===e||19===e||80===e||Th(e))}))&&(e=_()),80===e||Th(e))if(e=_(),161===e){if(e=_(),11===e)return p(),!0}else if(64===e){if(y(!0))return!0}else{if(28!==e)return!0;e=_()}if(19===e){for(e=_();20!==e&&1!==e;)e=_();20===e&&(e=_(),161===e&&(e=_(),11===e&&p()))}else 42===e&&(e=_(),130===e&&(e=_(),(80===e||Th(e))&&(e=_(),161===e&&(e=_(),11===e&&p()))))}return!0}return!1}function h(){let e=wG.getToken();if(95===e){if(f(),e=_(),156===e&&wG.lookAhead((()=>{const e=wG.scan();return 42===e||19===e}))&&(e=_()),19===e){for(e=_();20!==e&&1!==e;)e=_();20===e&&(e=_(),161===e&&(e=_(),11===e&&p()))}else if(42===e)e=_(),161===e&&(e=_(),11===e&&p());else if(102===e&&(e=_(),156===e&&wG.lookAhead((()=>{const e=wG.scan();return 80===e||Th(e)}))&&(e=_()),(80===e||Th(e))&&(e=_(),64===e&&y(!0))))return!0;return!0}return!1}function y(e,t=!1){let n=e?_():wG.getToken();return 149===n&&(n=_(),21===n&&(n=_(),(11===n||t&&15===n)&&p()),!0)}function v(){let e=wG.getToken();if(80===e&&"define"===wG.getTokenValue()){if(e=_(),21!==e)return!0;if(e=_(),11===e||15===e){if(e=_(),28!==e)return!0;e=_()}if(23!==e)return!0;for(e=_();24!==e&&1!==e;)11!==e&&15!==e||p(),e=_();return!0}return!1}if(t&&function(){for(wG.setText(e),_();1!==wG.getToken();){if(16===wG.getToken()){const e=[wG.getToken()];e:for(;u(e);){const t=wG.scan();switch(t){case 1:break e;case 102:g();break;case 16:e.push(t);break;case 19:u(e)&&e.push(t);break;case 20:u(e)&&(16===ye(e)?18===wG.reScanTemplateToken(!1)&&e.pop():e.pop())}}_()}m()||g()||h()||n&&(y(!1,!0)||v())||_()}wG.setText(void 0)}(),KI(r,e),GI(r,rt),l){if(o)for(const e of o)i.push(e.ref);return{referencedFiles:r.referencedFiles,typeReferenceDirectives:r.typeReferenceDirectives,libReferenceDirectives:r.libReferenceDirectives,importedFiles:i,isLibFile:!!r.hasNoDefaultLib,ambientExternalModules:void 0}}{let e;if(o)for(const t of o)0===t.depth?(e||(e=[]),e.push(t.ref.fileName)):i.push(t.ref);return{referencedFiles:r.referencedFiles,typeReferenceDirectives:r.typeReferenceDirectives,libReferenceDirectives:r.libReferenceDirectives,importedFiles:i,isLibFile:!!r.hasNoDefaultLib,ambientExternalModules:e}}}var u1=/^data:(?:application\/json;charset=[uU][tT][fF]-8;base64,([A-Za-z0-9+/=]+)$)?/;function d1(e){const t=Wt(e.useCaseSensitiveFileNames()),n=e.getCurrentDirectory(),r=new Map,i=new Map;return{tryGetSourcePosition:function e(t){if(!$I(t.fileName))return;if(!s(t.fileName))return;const n=a(t.fileName).getSourcePosition(t);return n&&n!==t?e(n)||n:void 0},tryGetGeneratedPosition:function(t){if($I(t.fileName))return;const n=s(t.fileName);if(!n)return;const r=e.getProgram();if(r.isSourceOfProjectReferenceRedirect(n.fileName))return;const i=r.getCompilerOptions().outFile,o=i?zS(i)+".d.ts":Uy(t.fileName,r.getCompilerOptions(),r);if(void 0===o)return;const c=a(o,t.fileName).getGeneratedPosition(t);return c===t?void 0:c},toLineColumnOffset:function(e,t){return c(e).getLineAndCharacterOfPosition(t)},clearCache:function(){r.clear(),i.clear()},documentPositionMappers:i};function o(e){return qo(e,n,t)}function a(n,r){const a=o(n),s=i.get(a);if(s)return s;let l;if(e.getDocumentPositionMapper)l=e.getDocumentPositionMapper(n,r);else if(e.readFile){const r=c(n);l=r&&p1({getSourceFileLike:c,getCanonicalFileName:t,log:t=>e.log(t)},n,lJ(r.text,ja(r)),(t=>!e.fileExists||e.fileExists(t)?e.readFile(t):void 0))}return i.set(a,l||SJ),l||SJ}function s(t){const n=e.getProgram();if(!n)return;const r=o(t),i=n.getSourceFileByPath(r);return i&&i.resolvedPath===r?i:void 0}function c(t){return e.getSourceFileLike?e.getSourceFileLike(t):s(t)||function(t){const n=o(t),i=r.get(n);if(void 0!==i)return i||void 0;if(!e.readFile||e.fileExists&&!e.fileExists(t))return void r.set(n,!1);const a=e.readFile(t),s=!!a&&function(e){return{text:e,lineMap:void 0,getLineAndCharacterOfPosition(e){return Ra(ja(this),e)}}}(a);return r.set(n,s),s||void 0}(t)}}function p1(e,t,n,r){let i=_J(n);if(i){const n=u1.exec(i);if(n){if(n[1]){const r=n[1];return f1(e,Sb(so,r),t)}i=void 0}}const o=[];i&&o.push(i),o.push(t+".map");const a=i&&Bo(i,Do(t));for(const n of o){const i=Bo(n,Do(t)),o=r(i,a);if(Ze(o))return f1(e,o,i);if(void 0!==o)return o||void 0}}function f1(e,t,n){const r=dJ(t);if(r&&r.sources&&r.file&&r.mappings&&(!r.sourcesContent||!r.sourcesContent.some(Ze)))return kJ(e,r,n)}var m1=new Map;function g1(e,t,n){var r;t.getSemanticDiagnostics(e,n);const i=[],o=t.getTypeChecker();var a;1!==t.getImpliedNodeFormatForEmit(e)&&!So(e.fileName,[".cts",".cjs"])&&e.commonJsModuleIndicator&&(EQ(t)||PQ(t.getCompilerOptions()))&&function(e){return e.statements.some((e=>{switch(e.kind){case 243:return e.declarationList.declarations.some((e=>!!e.initializer&&Om(h1(e.initializer),!0)));case 244:{const{expression:t}=e;if(!cF(t))return Om(t,!0);const n=eg(t);return 1===n||2===n}default:return!1}}))}(e)&&i.push(jp(cF(a=e.commonJsModuleIndicator)?a.left:a,la.File_is_a_CommonJS_module_it_may_be_converted_to_an_ES_module));const s=Dm(e);if(m1.clear(),function t(n){if(s)(function(e,t){var n,r,i,o;if(eF(e)){if(VF(e.parent)&&(null==(n=e.symbol.members)?void 0:n.size))return!0;const o=t.getSymbolOfExpando(e,!1);return!(!o||!(null==(r=o.exports)?void 0:r.size)&&!(null==(i=o.members)?void 0:i.size))}return!!$F(e)&&!!(null==(o=e.symbol.members)?void 0:o.size)})(n,o)&&i.push(jp(VF(n.parent)?n.parent.name:n,la.This_constructor_function_may_be_converted_to_a_class_declaration));else{if(wF(n)&&n.parent===e&&2&n.declarationList.flags&&1===n.declarationList.declarations.length){const e=n.declarationList.declarations[0].initializer;e&&Om(e,!0)&&i.push(jp(e,la.require_call_may_be_converted_to_an_import))}const t=f7.getJSDocTypedefNodes(n);for(const e of t)i.push(jp(e,la.JSDoc_typedef_may_be_converted_to_TypeScript_type));f7.parameterShouldGetTypeFromJSDoc(n)&&i.push(jp(n.name||n,la.JSDoc_types_may_be_moved_to_TypeScript_types))}w1(n)&&function(e,t,n){(function(e,t){return!Oh(e)&&e.body&&CF(e.body)&&function(e,t){return!!wf(e,(e=>b1(e,t)))}(e.body,t)&&v1(e,t)})(e,t)&&!m1.has(C1(e))&&n.push(jp(!e.name&&VF(e.parent)&&zN(e.parent.name)?e.parent.name:e,la.This_may_be_converted_to_an_async_function))}(n,o,i),n.forEachChild(t)}(e),Sk(t.getCompilerOptions()))for(const n of e.imports){const o=y1(yg(n));if(!o)continue;const a=null==(r=t.getResolvedModuleFromModuleSpecifier(n,e))?void 0:r.resolvedModule,s=a&&t.getSourceFile(a.resolvedFileName);s&&s.externalModuleIndicator&&!0!==s.externalModuleIndicator&&pE(s.externalModuleIndicator)&&s.externalModuleIndicator.isExportEquals&&i.push(jp(o,la.Import_may_be_converted_to_a_default_import))}return se(i,e.bindSuggestionDiagnostics),se(i,t.getSuggestionDiagnostics(e,n)),i.sort(((e,t)=>e.start-t.start)),i}function h1(e){return HD(e)?h1(e.expression):e}function y1(e){switch(e.kind){case 272:const{importClause:t,moduleSpecifier:n}=e;return t&&!t.name&&t.namedBindings&&274===t.namedBindings.kind&&TN(n)?t.namedBindings.name:void 0;case 271:return e.name;default:return}}function v1(e,t){const n=t.getSignatureFromDeclaration(e),r=n?t.getReturnTypeOfSignature(n):void 0;return!!r&&!!t.getPromisedTypeOfPromise(r)}function b1(e,t){return RF(e)&&!!e.expression&&x1(e.expression,t)}function x1(e,t){if(!k1(e)||!S1(e)||!e.arguments.every((e=>T1(e,t))))return!1;let n=e.expression.expression;for(;k1(n)||HD(n);)if(GD(n)){if(!S1(n)||!n.arguments.every((e=>T1(e,t))))return!1;n=n.expression.expression}else n=n.expression;return!0}function k1(e){return GD(e)&&(UG(e,"then")||UG(e,"catch")||UG(e,"finally"))}function S1(e){const t=e.expression.name.text,n="then"===t?2:"catch"===t||"finally"===t?1:0;return!(e.arguments.length>n)&&(e.arguments.length106===e.kind||zN(e)&&"undefined"===e.text)))}function T1(e,t){switch(e.kind){case 262:case 218:if(1&Ih(e))return!1;case 219:m1.set(C1(e),!0);case 106:return!0;case 80:case 211:{const n=t.getSymbolAtLocation(e);return!!n&&(t.isUndefinedSymbol(n)||$(ix(n,t).declarations,(e=>n_(e)||Fu(e)&&!!e.initializer&&n_(e.initializer))))}default:return!1}}function C1(e){return`${e.pos.toString()}:${e.end.toString()}`}function w1(e){switch(e.kind){case 262:case 174:case 218:case 219:return!0;default:return!1}}var N1=new Set(["isolatedModules"]);function D1(e,t){return O1(e,t,!1)}function F1(e,t){return O1(e,t,!0)}var E1,P1,A1='/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number {}\ninterface Object {}\ninterface RegExp {}\ninterface String {}\ninterface Array { length: number; [n: number]: T; }\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}',I1="lib.d.ts";function O1(e,t,n){E1??(E1=LI(I1,A1,{languageVersion:99}));const r=[],i=t.compilerOptions?j1(t.compilerOptions,r):{},o={target:1,jsx:1};for(const e in o)De(o,e)&&void 0===i[e]&&(i[e]=o[e]);for(const e of kO)i.verbatimModuleSyntax&&N1.has(e.name)||(i[e.name]=e.transpileOptionValue);i.suppressOutputPathCheck=!0,i.allowNonTsExtensions=!0,n?(i.declaration=!0,i.emitDeclarationOnly=!0,i.isolatedDeclarations=!0):(i.declaration=!1,i.declarationMap=!1);const a=Eb(i),s={getSourceFile:e=>e===Jo(c)?l:e===Jo(I1)?E1:void 0,writeFile:(e,t)=>{ko(e,".map")?(un.assertEqual(u,void 0,"Unexpected multiple source map outputs, file:",e),u=t):(un.assertEqual(_,void 0,"Unexpected multiple outputs, file:",e),_=t)},getDefaultLibFileName:()=>I1,useCaseSensitiveFileNames:()=>!1,getCanonicalFileName:e=>e,getCurrentDirectory:()=>"",getNewLine:()=>a,fileExists:e=>e===c||!!n&&e===I1,readFile:()=>"",directoryExists:()=>!0,getDirectories:()=>[]},c=t.fileName||(t.compilerOptions&&t.compilerOptions.jsx?"module.tsx":"module.ts"),l=LI(c,e,{languageVersion:hk(i),impliedNodeFormat:hV(qo(c,"",s.getCanonicalFileName),void 0,s,i),setExternalModuleIndicator:dk(i),jsDocParsingMode:t.jsDocParsingMode??0});let _,u;t.moduleName&&(l.moduleName=t.moduleName),t.renamedDependencies&&(l.renamedDependencies=new Map(Object.entries(t.renamedDependencies)));const d=bV(n?[c,I1]:[c],i,s);return t.reportDiagnostics&&(se(r,d.getSyntacticDiagnostics(l)),se(r,d.getOptionsDiagnostics())),se(r,d.emit(void 0,void 0,void 0,n,t.transformers,n).diagnostics),void 0===_?un.fail("Output generation failed"):{outputText:_,diagnostics:r,sourceMapText:u}}function L1(e,t,n,r,i){const o=D1(e,{compilerOptions:t,fileName:n,reportDiagnostics:!!r,moduleName:i});return se(r,o.diagnostics),o.outputText}function j1(e,t){P1=P1||N(mO,(e=>"object"==typeof e.type&&!td(e.type,(e=>"number"!=typeof e)))),e=sQ(e);for(const n of P1){if(!De(e,n.name))continue;const r=e[n.name];Ze(r)?e[n.name]=jO(n,r,t):td(n.type,(e=>e===r))||t.push(OO(n))}return e}var R1={};function M1(e,t,n,r,i,o,a){const s=z0(r);if(!s)return l;const c=[],_=1===e.length?e[0]:void 0;for(const r of e)n.throwIfCancellationRequested(),o&&r.isDeclarationFile||B1(r,!!a,_)||r.getNamedDeclarations().forEach(((e,n)=>{J1(s,n,e,t,r.fileName,!!a,_,c)}));return c.sort($1),(void 0===i?c:c.slice(0,i)).map(H1)}function B1(e,t,n){return e!==n&&t&&(wZ(e.path)||e.hasNoDefaultLib)}function J1(e,t,n,r,i,o,a,s){const c=e.getMatchForLastSegmentOfPattern(t);if(c)for(const l of n)if(z1(l,r,o,a))if(e.patternContainsDots){const n=e.getFullMatch(W1(l),t);n&&s.push({name:t,fileName:i,matchKind:n.kind,isCaseSensitive:n.isCaseSensitive,declaration:l})}else s.push({name:t,fileName:i,matchKind:c.kind,isCaseSensitive:c.isCaseSensitive,declaration:l})}function z1(e,t,n,r){var i;switch(e.kind){case 273:case 276:case 271:const o=t.getSymbolAtLocation(e.name),a=t.getAliasedSymbol(o);return o.escapedName!==a.escapedName&&!(null==(i=a.declarations)?void 0:i.every((e=>B1(e.getSourceFile(),n,r))));default:return!0}}function q1(e,t){const n=Tc(e);return!!n&&(V1(n,t)||167===n.kind&&U1(n.expression,t))}function U1(e,t){return V1(e,t)||HD(e)&&(t.push(e.name.text),!0)&&U1(e.expression,t)}function V1(e,t){return Jh(e)&&(t.push(zh(e)),!0)}function W1(e){const t=[],n=Tc(e);if(n&&167===n.kind&&!U1(n.expression,t))return l;t.shift();let r=tX(e);for(;r;){if(!q1(r,t))return l;r=tX(r)}return t.reverse(),t}function $1(e,t){return vt(e.matchKind,t.matchKind)||At(e.name,t.name)}function H1(e){const t=e.declaration,n=tX(t),r=n&&Tc(n);return{name:e.name,kind:nX(t),kindModifiers:ZX(t),matchKind:B0[e.matchKind],isCaseSensitive:e.isCaseSensitive,fileName:e.fileName,textSpan:pQ(t),containerName:r?r.text:"",containerKind:r?nX(n):""}}i(R1,{getNavigateToItems:()=>M1});var K1={};i(K1,{getNavigationBarItems:()=>i2,getNavigationTree:()=>o2});var G1,X1,Q1,Y1,Z1=/\s+/g,e2=150,t2=[],n2=[],r2=[];function i2(e,t){G1=t,X1=e;try{return E(function(e){const t=[];return function e(n){if(function(e){if(e.children)return!0;switch(c2(e)){case 263:case 231:case 266:case 264:case 267:case 307:case 265:case 346:case 338:return!0;case 219:case 262:case 218:return t(e);default:return!1}function t(e){if(!e.node.body)return!1;switch(c2(e.parent)){case 268:case 307:case 174:case 176:return!0;default:return!1}}}(n)&&(t.push(n),n.children))for(const t of n.children)e(t)}(e),t}(_2(e)),I2)}finally{a2()}}function o2(e,t){G1=t,X1=e;try{return A2(_2(e))}finally{a2()}}function a2(){X1=void 0,G1=void 0,t2=[],Q1=void 0,r2=[]}function s2(e){return U2(e.getText(X1))}function c2(e){return e.node.kind}function l2(e,t){e.children?e.children.push(t):e.children=[t]}function _2(e){un.assert(!t2.length);const t={node:e,name:void 0,additionalNodes:void 0,parent:void 0,children:void 0,indent:0};Q1=t;for(const t of e.statements)x2(t);return h2(),un.assert(!Q1&&!t2.length),t}function u2(e,t){l2(Q1,d2(e,t))}function d2(e,t){return{node:e,name:t||(lu(e)||U_(e)?Tc(e):void 0),additionalNodes:void 0,parent:Q1,children:void 0,indent:Q1.indent+1}}function p2(e){Y1||(Y1=new Map),Y1.set(e,!0)}function f2(e){for(let t=0;t0;t--)g2(e,n[t]);return[n.length-1,n[0]]}function g2(e,t){const n=d2(e,t);l2(Q1,n),t2.push(Q1),n2.push(Y1),Y1=void 0,Q1=n}function h2(){Q1.children&&(k2(Q1.children,Q1),D2(Q1.children)),Q1=t2.pop(),Y1=n2.pop()}function y2(e,t,n){g2(e,n),x2(t),h2()}function v2(e){e.initializer&&function(e){switch(e.kind){case 219:case 218:case 231:return!0;default:return!1}}(e.initializer)?(g2(e),PI(e.initializer,x2),h2()):y2(e,e.initializer)}function b2(e){const t=Tc(e);if(void 0===t)return!1;if(rD(t)){const e=t.expression;return ob(e)||kN(e)||Lh(e)}return!!t}function x2(e){if(G1.throwIfCancellationRequested(),e&&!Fl(e))switch(e.kind){case 176:const t=e;y2(t,t.body);for(const e of t.parameters)Ys(e,t)&&u2(e);break;case 174:case 177:case 178:case 173:b2(e)&&y2(e,e.body);break;case 172:b2(e)&&v2(e);break;case 171:b2(e)&&u2(e);break;case 273:const n=e;n.name&&u2(n.name);const{namedBindings:r}=n;if(r)if(274===r.kind)u2(r);else for(const e of r.elements)u2(e);break;case 304:y2(e,e.name);break;case 305:const{expression:i}=e;zN(i)?u2(e,i):u2(e);break;case 208:case 303:case 260:{const t=e;x_(t.name)?x2(t.name):v2(t);break}case 262:const o=e.name;o&&zN(o)&&p2(o.text),y2(e,e.body);break;case 219:case 218:y2(e,e.body);break;case 266:g2(e);for(const t of e.members)M2(t)||u2(t);h2();break;case 263:case 231:case 264:g2(e);for(const t of e.members)x2(t);h2();break;case 267:y2(e,R2(e).body);break;case 277:{const t=e.expression,n=$D(t)||GD(t)?t:tF(t)||eF(t)?t.body:void 0;n?(g2(e),x2(n),h2()):u2(e);break}case 281:case 271:case 181:case 179:case 180:case 265:u2(e);break;case 213:case 226:{const t=eg(e);switch(t){case 1:case 2:return void y2(e,e.right);case 6:case 3:{const n=e,r=n.left,i=3===t?r.expression:r;let o,a=0;return zN(i.expression)?(p2(i.expression.text),o=i.expression):[a,o]=m2(n,i.expression),6===t?$D(n.right)&&n.right.properties.length>0&&(g2(n,o),PI(n.right,x2),h2()):eF(n.right)||tF(n.right)?y2(e,n.right,o):(g2(n,o),y2(e,n.right,r.name),h2()),void f2(a)}case 7:case 9:{const n=e,r=7===t?n.arguments[0]:n.arguments[0].expression,i=n.arguments[1],[o,a]=m2(e,r);return g2(e,a),g2(e,nI(XC.createIdentifier(i.text),i)),x2(e.arguments[2]),h2(),h2(),void f2(o)}case 5:{const t=e,n=t.left,r=n.expression;if(zN(r)&&"prototype"!==lg(n)&&Y1&&Y1.has(r.text))return void(eF(t.right)||tF(t.right)?y2(e,t.right,r):ig(n)&&(g2(t,r),y2(t.left,t.right,sg(n)),h2()));break}case 4:case 0:case 8:break;default:un.assertNever(t)}}default:Nu(e)&&d(e.jsDoc,(e=>{d(e.tags,(e=>{Ng(e)&&u2(e)}))})),PI(e,x2)}}function k2(e,t){const n=new Map;D(e,((e,r)=>{const i=e.name||Tc(e.node),o=i&&s2(i);if(!o)return!0;const a=n.get(o);if(!a)return n.set(o,e),!0;if(a instanceof Array){for(const n of a)if(T2(n,e,r,t))return!1;return a.push(e),!0}{const i=a;return!T2(i,e,r,t)&&(n.set(o,[i,e]),!0)}}))}var S2={5:!0,3:!0,7:!0,9:!0,0:!1,1:!1,2:!1,8:!1,6:!0,4:!1};function T2(e,t,n,r){return!!function(e,t,n,r){function i(e){return eF(e)||$F(e)||VF(e)}const o=cF(t.node)||GD(t.node)?eg(t.node):0,a=cF(e.node)||GD(e.node)?eg(e.node):0;if(S2[o]&&S2[a]||i(e.node)&&S2[o]||i(t.node)&&S2[a]||HF(e.node)&&C2(e.node)&&S2[o]||HF(t.node)&&S2[a]||HF(e.node)&&C2(e.node)&&i(t.node)||HF(t.node)&&i(e.node)&&C2(e.node)){let o=e.additionalNodes&&ye(e.additionalNodes)||e.node;if(!HF(e.node)&&!HF(t.node)||i(e.node)||i(t.node)){const n=i(e.node)?e.node:i(t.node)?t.node:void 0;if(void 0!==n){const r=d2(nI(XC.createConstructorDeclaration(void 0,[],void 0),n));r.indent=e.indent+1,r.children=e.node===n?e.children:t.children,e.children=e.node===n?K([r],t.children||[t]):K(e.children||[{...e}],[r])}else(e.children||t.children)&&(e.children=K(e.children||[{...e}],t.children||[t]),e.children&&(k2(e.children,e),D2(e.children)));o=e.node=nI(XC.createClassDeclaration(void 0,e.name||XC.createIdentifier("__class__"),void 0,void 0,[]),e.node)}else e.children=K(e.children,t.children),e.children&&k2(e.children,e);const a=t.node;return r.children[n-1].node.end===o.end?nI(o,{pos:o.pos,end:a.end}):(e.additionalNodes||(e.additionalNodes=[]),e.additionalNodes.push(nI(XC.createClassDeclaration(void 0,e.name||XC.createIdentifier("__class__"),void 0,void 0,[]),t.node))),!0}return 0!==o}(e,t,n,r)||!!function(e,t,n){if(e.kind!==t.kind||e.parent!==t.parent&&(!w2(e,n)||!w2(t,n)))return!1;switch(e.kind){case 172:case 174:case 177:case 178:return Nv(e)===Nv(t);case 267:return N2(e,t)&&j2(e)===j2(t);default:return!0}}(e.node,t.node,r)&&(o=t,(i=e).additionalNodes=i.additionalNodes||[],i.additionalNodes.push(o.node),o.additionalNodes&&i.additionalNodes.push(...o.additionalNodes),i.children=K(i.children,o.children),i.children&&(k2(i.children,i),D2(i.children)),!0);var i,o}function C2(e){return!!(16&e.flags)}function w2(e,t){if(void 0===e.parent)return!1;const n=YF(e.parent)?e.parent.parent:e.parent;return n===t.node||T(t.additionalNodes,n)}function N2(e,t){return e.body&&t.body?e.body.kind===t.body.kind&&(267!==e.body.kind||N2(e.body,t.body)):e.body===t.body}function D2(e){e.sort(F2)}function F2(e,t){return At(E2(e.node),E2(t.node))||vt(c2(e),c2(t))}function E2(e){if(267===e.kind)return L2(e);const t=Tc(e);if(t&&e_(t)){const e=Bh(t);return e&&fc(e)}switch(e.kind){case 218:case 219:case 231:return z2(e);default:return}}function P2(e,t){if(267===e.kind)return U2(L2(e));if(t){const e=zN(t)?t.text:KD(t)?`[${s2(t.argumentExpression)}]`:s2(t);if(e.length>0)return U2(e)}switch(e.kind){case 307:const t=e;return MI(t)?`"${by(Fo(zS(Jo(t.fileName))))}"`:"";case 277:return pE(e)&&e.isExportEquals?"export=":"default";case 219:case 262:case 218:case 263:case 231:return 2048&Jv(e)?"default":z2(e);case 176:return"constructor";case 180:return"new()";case 179:return"()";case 181:return"[]";default:return""}}function A2(e){return{text:P2(e.node,e.name),kind:nX(e.node),kindModifiers:J2(e.node),spans:O2(e),nameSpan:e.name&&B2(e.name),childItems:E(e.children,A2)}}function I2(e){return{text:P2(e.node,e.name),kind:nX(e.node),kindModifiers:J2(e.node),spans:O2(e),childItems:E(e.children,(function(e){return{text:P2(e.node,e.name),kind:nX(e.node),kindModifiers:ZX(e.node),spans:O2(e),childItems:r2,indent:0,bolded:!1,grayed:!1}}))||r2,indent:e.indent,bolded:!1,grayed:!1}}function O2(e){const t=[B2(e.node)];if(e.additionalNodes)for(const n of e.additionalNodes)t.push(B2(n));return t}function L2(e){return ap(e)?Kd(e.name):j2(e)}function j2(e){const t=[zh(e.name)];for(;e.body&&267===e.body.kind;)e=e.body,t.push(zh(e.name));return t.join(".")}function R2(e){return e.body&&QF(e.body)?R2(e.body):e}function M2(e){return!e.name||167===e.name.kind}function B2(e){return 307===e.kind?gQ(e):pQ(e,X1)}function J2(e){return e.parent&&260===e.parent.kind&&(e=e.parent),ZX(e)}function z2(e){const{parent:t}=e;if(e.name&&od(e.name)>0)return U2(Ep(e.name));if(VF(t))return U2(Ep(t.name));if(cF(t)&&64===t.operatorToken.kind)return s2(t.left).replace(Z1,"");if(ME(t))return s2(t.name);if(2048&Jv(e))return"default";if(__(e))return"";if(GD(t)){let e=q2(t.expression);if(void 0!==e)return e=U2(e),e.length>e2?`${e} callback`:`${e}(${U2(B(t.arguments,(e=>Lu(e)||j_(e)?e.getText(X1):void 0)).join(", "))}) callback`}return""}function q2(e){if(zN(e))return e.text;if(HD(e)){const t=q2(e.expression),n=e.name.text;return void 0===t?n:`${t}.${n}`}}function U2(e){return(e=e.length>e2?e.substring(0,e2)+"...":e).replace(/\\?(?:\r?\n|[\r\u2028\u2029])/g,"")}var V2={};i(V2,{addExportsInOldFile:()=>S6,addImportsForMovedSymbols:()=>F6,addNewFileToTsconfig:()=>k6,addOrRemoveBracesToArrowFunction:()=>f3,addTargetFileImports:()=>n3,containsJsx:()=>z6,convertArrowFunctionOrFunctionExpression:()=>C3,convertParamsToDestructuredObject:()=>L3,convertStringOrTemplateLiteral:()=>e4,convertToOptionalChainExpression:()=>f4,createNewFileName:()=>B6,doChangeNamedToNamespaceOrDefault:()=>a6,extractSymbol:()=>w4,generateGetAccessorAndSetAccessor:()=>W4,getApplicableRefactors:()=>H2,getEditsForRefactor:()=>K2,getExistingLocals:()=>Y6,getIdentifierForNode:()=>t3,getNewStatementsAndRemoveFromOldFile:()=>x6,getStatementsToMove:()=>J6,getUsageInfo:()=>U6,inferFunctionReturnType:()=>G4,isInImport:()=>$6,isRefactorErrorInfo:()=>Z6,refactorKindBeginsWith:()=>e3,registerRefactor:()=>$2});var W2=new Map;function $2(e,t){W2.set(e,t)}function H2(e,t){return Oe(j(W2.values(),(n=>{var r;return e.cancellationToken&&e.cancellationToken.isCancellationRequested()||!(null==(r=n.kinds)?void 0:r.some((t=>e3(t,e.kind))))?void 0:n.getAvailableActions(e,t)})))}function K2(e,t,n,r){const i=W2.get(t);return i&&i.getEditsForAction(e,n,r)}var G2="Convert export",X2={name:"Convert default export to named export",description:Ux(la.Convert_default_export_to_named_export),kind:"refactor.rewrite.export.named"},Q2={name:"Convert named export to default export",description:Ux(la.Convert_named_export_to_default_export),kind:"refactor.rewrite.export.default"};function Y2(e,t=!0){const{file:n,program:r}=e,i=EZ(e),o=PX(n,i.start),a=o.parent&&32&Jv(o.parent)&&t?o.parent:$Q(o,n,i);if(!a||!(qE(a.parent)||YF(a.parent)&&ap(a.parent.parent)))return{error:Ux(la.Could_not_find_export_statement)};const s=r.getTypeChecker(),c=function(e,t){if(qE(e))return e.symbol;const n=e.parent.symbol;return n.valueDeclaration&&dp(n.valueDeclaration)?t.getMergedSymbol(n):n}(a.parent,s),l=Jv(a)||(pE(a)&&!a.isExportEquals?2080:0),_=!!(2048&l);if(!(32&l)||!_&&c.exports.has("default"))return{error:Ux(la.This_file_already_has_a_default_export)};const u=e=>zN(e)&&s.getSymbolAtLocation(e)?void 0:{error:Ux(la.Can_only_convert_named_export)};switch(a.kind){case 262:case 263:case 264:case 266:case 265:case 267:{const e=a;if(!e.name)return;return u(e.name)||{exportNode:e,exportName:e.name,wasDefault:_,exportingModuleSymbol:c}}case 243:{const e=a;if(!(2&e.declarationList.flags)||1!==e.declarationList.declarations.length)return;const t=ge(e.declarationList.declarations);if(!t.initializer)return;return un.assert(!_,"Can't have a default flag here"),u(t.name)||{exportNode:e,exportName:t.name,wasDefault:_,exportingModuleSymbol:c}}case 277:{const e=a;if(e.isExportEquals)return;return u(e.expression)||{exportNode:e,exportName:e.expression,wasDefault:_,exportingModuleSymbol:c}}default:return}}function Z2(e,t){return XC.createImportSpecifier(!1,e===t?void 0:XC.createIdentifier(e),XC.createIdentifier(t))}function e6(e,t){return XC.createExportSpecifier(!1,e===t?void 0:XC.createIdentifier(e),XC.createIdentifier(t))}$2(G2,{kinds:[X2.kind,Q2.kind],getAvailableActions:function(e){const t=Y2(e,"invoked"===e.triggerReason);if(!t)return l;if(!Z6(t)){const e=t.wasDefault?X2:Q2;return[{name:G2,description:e.description,actions:[e]}]}return e.preferences.provideRefactorNotApplicableReason?[{name:G2,description:Ux(la.Convert_default_export_to_named_export),actions:[{...X2,notApplicableReason:t.error},{...Q2,notApplicableReason:t.error}]}]:l},getEditsForAction:function(e,t){un.assert(t===X2.name||t===Q2.name,"Unexpected action name");const n=Y2(e);un.assert(n&&!Z6(n),"Expected applicable refactor info");const r=Tue.ChangeTracker.with(e,(t=>function(e,t,n,r,i){(function(e,{wasDefault:t,exportNode:n,exportName:r},i,o){if(t)if(pE(n)&&!n.isExportEquals){const t=n.expression,r=e6(t.text,t.text);i.replaceNode(e,n,XC.createExportDeclaration(void 0,!1,XC.createNamedExports([r])))}else i.delete(e,un.checkDefined(KQ(n,90),"Should find a default keyword in modifier list"));else{const t=un.checkDefined(KQ(n,95),"Should find an export keyword in modifier list");switch(n.kind){case 262:case 263:case 264:i.insertNodeAfter(e,t,XC.createToken(90));break;case 243:const a=ge(n.declarationList.declarations);if(!ice.Core.isSymbolReferencedInFile(r,o,e)&&!a.type){i.replaceNode(e,n,XC.createExportDefault(un.checkDefined(a.initializer,"Initializer was previously known to be present")));break}case 266:case 265:case 267:i.deleteModifier(e,t),i.insertNodeAfter(e,n,XC.createExportDefault(XC.createIdentifier(r.text)));break;default:un.fail(`Unexpected exportNode kind ${n.kind}`)}}})(e,n,r,t.getTypeChecker()),function(e,{wasDefault:t,exportName:n,exportingModuleSymbol:r},i,o){const a=e.getTypeChecker(),s=un.checkDefined(a.getSymbolAtLocation(n),"Export name should resolve to a symbol");ice.Core.eachExportReference(e.getSourceFiles(),a,o,s,r,n.text,t,(e=>{if(n===e)return;const r=e.getSourceFile();t?function(e,t,n,r){const{parent:i}=t;switch(i.kind){case 211:n.replaceNode(e,t,XC.createIdentifier(r));break;case 276:case 281:{const t=i;n.replaceNode(e,t,Z2(r,t.name.text));break}case 273:{const o=i;un.assert(o.name===t,"Import clause name should match provided ref");const a=Z2(r,t.text),{namedBindings:s}=o;if(s)if(274===s.kind){n.deleteRange(e,{pos:t.getStart(e),end:s.getStart(e)});const i=TN(o.parent.moduleSpecifier)?MQ(o.parent.moduleSpecifier,e):1,a=LQ(void 0,[Z2(r,t.text)],o.parent.moduleSpecifier,i);n.insertNodeAfter(e,o.parent,a)}else n.delete(e,t),n.insertNodeAtEndOfList(e,s.elements,a);else n.replaceNode(e,t,XC.createNamedImports([a]));break}case 205:const o=i;n.replaceNode(e,i,XC.createImportTypeNode(o.argument,o.attributes,XC.createIdentifier(r),o.typeArguments,o.isTypeOf));break;default:un.failBadSyntaxKind(i)}}(r,e,i,n.text):function(e,t,n){const r=t.parent;switch(r.kind){case 211:n.replaceNode(e,t,XC.createIdentifier("default"));break;case 276:{const t=XC.createIdentifier(r.name.text);1===r.parent.elements.length?n.replaceNode(e,r.parent,t):(n.delete(e,r),n.insertNodeBefore(e,r.parent,t));break}case 281:n.replaceNode(e,r,e6("default",r.name.text));break;default:un.assertNever(r,`Unexpected parent kind ${r.kind}`)}}(r,e,i)}))}(t,n,r,i)}(e.file,e.program,n,t,e.cancellationToken)));return{edits:r,renameFilename:void 0,renameLocation:void 0}}});var t6="Convert import",n6={0:{name:"Convert namespace import to named imports",description:Ux(la.Convert_namespace_import_to_named_imports),kind:"refactor.rewrite.import.named"},2:{name:"Convert named imports to namespace import",description:Ux(la.Convert_named_imports_to_namespace_import),kind:"refactor.rewrite.import.namespace"},1:{name:"Convert named imports to default import",description:Ux(la.Convert_named_imports_to_default_import),kind:"refactor.rewrite.import.default"}};function r6(e,t=!0){const{file:n}=e,r=EZ(e),i=PX(n,r.start),o=t?_c(i,en(nE,PP)):$Q(i,n,r);if(void 0===o||!nE(o)&&!PP(o))return{error:"Selection is not an import declaration."};const a=r.start+r.length,s=LX(o,o.parent,n);if(s&&a>s.getStart())return;const{importClause:c}=o;return c?c.namedBindings?274===c.namedBindings.kind?{convertTo:0,import:c.namedBindings}:i6(e.program,c)?{convertTo:1,import:c.namedBindings}:{convertTo:2,import:c.namedBindings}:{error:Ux(la.Could_not_find_namespace_import_or_named_imports)}:{error:Ux(la.Could_not_find_import_clause)}}function i6(e,t){return Sk(e.getCompilerOptions())&&function(e,t){const n=t.resolveExternalModuleName(e);if(!n)return!1;return n!==t.resolveExternalModuleSymbol(n)}(t.parent.moduleSpecifier,e.getTypeChecker())}function o6(e){return HD(e)?e.name:e.right}function a6(e,t,n,r,i=i6(t,r.parent)){const o=t.getTypeChecker(),a=r.parent.parent,{moduleSpecifier:s}=a,c=new Set;r.elements.forEach((e=>{const t=o.getSymbolAtLocation(e.name);t&&c.add(t)}));const l=s&&TN(s)?RZ(s.text,99):"module",_=r.elements.some((function(t){return!!ice.Core.eachSymbolReferenceInFile(t.name,o,e,(e=>{const t=o.resolveName(l,e,-1,!0);return!!t&&(!c.has(t)||gE(e.parent))}))}))?$Y(l,e):l,u=new Set;for(const t of r.elements){const r=t.propertyName||t.name;ice.Core.eachSymbolReferenceInFile(t.name,o,e,(i=>{const o=11===r.kind?XC.createElementAccessExpression(XC.createIdentifier(_),XC.cloneNode(r)):XC.createPropertyAccessExpression(XC.createIdentifier(_),XC.cloneNode(r));BE(i.parent)?n.replaceNode(e,i.parent,XC.createPropertyAssignment(i.text,o)):gE(i.parent)?u.add(t):n.replaceNode(e,i,o)}))}if(n.replaceNode(e,r,i?XC.createIdentifier(_):XC.createNamespaceImport(XC.createIdentifier(_))),u.size&&nE(a)){const t=Oe(u.values(),(e=>XC.createImportSpecifier(e.isTypeOnly,e.propertyName&&XC.cloneNode(e.propertyName),XC.cloneNode(e.name))));n.insertNodeAfter(e,r.parent.parent,s6(a,void 0,t))}}function s6(e,t,n){return XC.createImportDeclaration(void 0,c6(t,n),e.moduleSpecifier,void 0)}function c6(e,t){return XC.createImportClause(!1,e,t&&t.length?XC.createNamedImports(t):void 0)}$2(t6,{kinds:Ae(n6).map((e=>e.kind)),getAvailableActions:function(e){const t=r6(e,"invoked"===e.triggerReason);if(!t)return l;if(!Z6(t)){const e=n6[t.convertTo];return[{name:t6,description:e.description,actions:[e]}]}return e.preferences.provideRefactorNotApplicableReason?Ae(n6).map((e=>({name:t6,description:e.description,actions:[{...e,notApplicableReason:t.error}]}))):l},getEditsForAction:function(e,t){un.assert($(Ae(n6),(e=>e.name===t)),"Unexpected action name");const n=r6(e);un.assert(n&&!Z6(n),"Expected applicable refactor info");const r=Tue.ChangeTracker.with(e,(t=>function(e,t,n,r){const i=t.getTypeChecker();0===r.convertTo?function(e,t,n,r,i){let o=!1;const a=[],s=new Map;ice.Core.eachSymbolReferenceInFile(r.name,t,e,(e=>{if(A_(e.parent)){const r=o6(e.parent).text;t.resolveName(r,e,-1,!0)&&s.set(r,!0),un.assert((HD(n=e.parent)?n.expression:n.left)===e,"Parent expression should match id"),a.push(e.parent)}else o=!0;var n}));const c=new Map;for(const t of a){const r=o6(t).text;let i=c.get(r);void 0===i&&c.set(r,i=s.has(r)?$Y(r,e):r),n.replaceNode(e,t,XC.createIdentifier(i))}const l=[];c.forEach(((e,t)=>{l.push(XC.createImportSpecifier(!1,e===t?void 0:XC.createIdentifier(t),XC.createIdentifier(e)))}));const _=r.parent.parent;if(o&&!i&&nE(_))n.insertNodeAfter(e,_,s6(_,void 0,l));else{const t=o?XC.createIdentifier(r.name.text):void 0;n.replaceNode(e,r.parent,c6(t,l))}}(e,i,n,r.import,Sk(t.getCompilerOptions())):a6(e,t,n,r.import,1===r.convertTo)}(e.file,e.program,t,n)));return{edits:r,renameFilename:void 0,renameLocation:void 0}}});var l6="Extract type",_6={name:"Extract to type alias",description:Ux(la.Extract_to_type_alias),kind:"refactor.extract.type"},u6={name:"Extract to interface",description:Ux(la.Extract_to_interface),kind:"refactor.extract.interface"},d6={name:"Extract to typedef",description:Ux(la.Extract_to_typedef),kind:"refactor.extract.typedef"};function p6(e,t=!0){const{file:n,startPosition:r}=e,i=Dm(n),o=hQ(EZ(e)),a=o.pos===o.end&&t,s=function(e,t,n,r){const i=[()=>PX(e,t),()=>EX(e,t,(()=>!0))];for(const t of i){const i=t(),o=uX(i,e,n.pos,n.end),a=_c(i,(t=>t.parent&&v_(t)&&!m6(n,t.parent,e)&&(r||o)));if(a)return a}}(n,r,o,a);if(!s||!v_(s))return{info:{error:Ux(la.Selection_is_not_a_valid_type_node)},affectedTextRange:void 0};const c=e.program.getTypeChecker(),_=function(e,t){return _c(e,du)||(t?_c(e,iP):void 0)}(s,i);if(void 0===_)return{info:{error:Ux(la.No_type_could_be_extracted_from_this_type_node)},affectedTextRange:void 0};const u=function(e,t){return _c(e,(e=>e===t?"quit":!(!FD(e.parent)&&!ED(e.parent))))??e}(s,_);if(!v_(u))return{info:{error:Ux(la.Selection_is_not_a_valid_type_node)},affectedTextRange:void 0};const d=[];(FD(u.parent)||ED(u.parent))&&o.end>s.end&&se(d,u.parent.types.filter((e=>uX(e,n,o.pos,o.end))));const p=d.length>1?d:u,{typeParameters:f,affectedTextRange:m}=function(e,t,n,r){const i=[],o=Ye(t),a={pos:o[0].getStart(r),end:o[o.length-1].end};for(const e of o)if(s(e))return{typeParameters:void 0,affectedTextRange:void 0};return{typeParameters:i,affectedTextRange:a};function s(t){if(vD(t)){if(zN(t.typeName)){const o=t.typeName,s=e.resolveName(o.text,o,262144,!0);for(const e of(null==s?void 0:s.declarations)||l)if(iD(e)&&e.getSourceFile()===r){if(e.name.escapedText===o.escapedText&&m6(e,a,r))return!0;if(m6(n,e,r)&&!m6(a,e,r)){ce(i,e);break}}}}else if(AD(t)){const e=_c(t,(e=>PD(e)&&m6(e.extendsType,t,r)));if(!e||!m6(a,e,r))return!0}else if(yD(t)||OD(t)){const e=_c(t.parent,n_);if(e&&e.type&&m6(e.type,t,r)&&!m6(a,e,r))return!0}else if(kD(t))if(zN(t.exprName)){const i=e.resolveName(t.exprName.text,t.exprName,111551,!1);if((null==i?void 0:i.valueDeclaration)&&m6(n,i.valueDeclaration,r)&&!m6(a,i.valueDeclaration,r))return!0}else if(cv(t.exprName.left)&&!m6(a,t.parent,r))return!0;return r&&CD(t)&&Ja(r,t.pos).line===Ja(r,t.end).line&&nw(t,1),PI(t,s)}}(c,p,_,n);return f?{info:{isJS:i,selection:p,enclosingNode:_,typeParameters:f,typeElements:f6(c,p)},affectedTextRange:m}:{info:{error:Ux(la.No_type_could_be_extracted_from_this_type_node)},affectedTextRange:void 0}}function f6(e,t){if(t){if(Qe(t)){const n=[];for(const r of t){const t=f6(e,r);if(!t)return;se(n,t)}return n}if(ED(t)){const n=[],r=new Set;for(const i of t.types){const t=f6(e,i);if(!t||!t.every((e=>e.name&&vx(r,DQ(e.name)))))return;se(n,t)}return n}return ID(t)?f6(e,t.type):SD(t)?t.members:void 0}}function m6(e,t,n){return lX(e,Xa(n.text,t.pos),t.end)}function g6(e){return Qe(e.selection)?{firstTypeNode:e.selection[0],lastTypeNode:e.selection[e.selection.length-1],newTypeNode:FD(e.selection[0].parent)?XC.createUnionTypeNode(e.selection):XC.createIntersectionTypeNode(e.selection)}:{firstTypeNode:e.selection,lastTypeNode:e.selection,newTypeNode:e.selection}}$2(l6,{kinds:[_6.kind,u6.kind,d6.kind],getAvailableActions:function(e){const{info:t,affectedTextRange:n}=p6(e,"invoked"===e.triggerReason);return t?Z6(t)?e.preferences.provideRefactorNotApplicableReason?[{name:l6,description:Ux(la.Extract_type),actions:[{...d6,notApplicableReason:t.error},{..._6,notApplicableReason:t.error},{...u6,notApplicableReason:t.error}]}]:l:[{name:l6,description:Ux(la.Extract_type),actions:t.isJS?[d6]:ie([_6],t.typeElements&&u6)}].map((t=>({...t,actions:t.actions.map((t=>({...t,range:n?{start:{line:Ja(e.file,n.pos).line,offset:Ja(e.file,n.pos).character},end:{line:Ja(e.file,n.end).line,offset:Ja(e.file,n.end).character}}:void 0})))}))):l},getEditsForAction:function(e,t){const{file:n}=e,{info:r}=p6(e);un.assert(r&&!Z6(r),"Expected to find a range to extract");const i=$Y("NewType",n),o=Tue.ChangeTracker.with(e,(o=>{switch(t){case _6.name:return un.assert(!r.isJS,"Invalid actionName/JS combo"),function(e,t,n,r){const{enclosingNode:i,typeParameters:o}=r,{firstTypeNode:a,lastTypeNode:s,newTypeNode:c}=g6(r),l=XC.createTypeAliasDeclaration(void 0,n,o.map((e=>XC.updateTypeParameterDeclaration(e,e.modifiers,e.name,e.constraint,void 0))),c);e.insertNodeBefore(t,i,Ew(l),!0),e.replaceNodeRange(t,a,s,XC.createTypeReferenceNode(n,o.map((e=>XC.createTypeReferenceNode(e.name,void 0)))),{leadingTriviaOption:Tue.LeadingTriviaOption.Exclude,trailingTriviaOption:Tue.TrailingTriviaOption.ExcludeWhitespace})}(o,n,i,r);case d6.name:return un.assert(r.isJS,"Invalid actionName/JS combo"),function(e,t,n,r,i){var o;Ye(i.selection).forEach((e=>{nw(e,7168)}));const{enclosingNode:a,typeParameters:s}=i,{firstTypeNode:c,lastTypeNode:l,newTypeNode:_}=g6(i),u=XC.createJSDocTypedefTag(XC.createIdentifier("typedef"),XC.createJSDocTypeExpression(_),XC.createIdentifier(r)),p=[];d(s,(e=>{const t=_l(e),n=XC.createTypeParameterDeclaration(void 0,e.name),r=XC.createJSDocTemplateTag(XC.createIdentifier("template"),t&&nt(t,VE),[n]);p.push(r)}));const f=XC.createJSDocComment(void 0,XC.createNodeArray(K(p,[u])));if(iP(a)){const r=a.getStart(n),i=kY(t.host,null==(o=t.formatContext)?void 0:o.options);e.insertNodeAt(n,a.getStart(n),f,{suffix:i+i+n.text.slice(OY(n.text,r-1),r)})}else e.insertNodeBefore(n,a,f,!0);e.replaceNodeRange(n,c,l,XC.createTypeReferenceNode(r,s.map((e=>XC.createTypeReferenceNode(e.name,void 0)))))}(o,e,n,i,r);case u6.name:return un.assert(!r.isJS&&!!r.typeElements,"Invalid actionName/JS combo"),function(e,t,n,r){var i;const{enclosingNode:o,typeParameters:a,typeElements:s}=r,c=XC.createInterfaceDeclaration(void 0,n,a,void 0,s);nI(c,null==(i=s[0])?void 0:i.parent),e.insertNodeBefore(t,o,Ew(c),!0);const{firstTypeNode:l,lastTypeNode:_}=g6(r);e.replaceNodeRange(t,l,_,XC.createTypeReferenceNode(n,a.map((e=>XC.createTypeReferenceNode(e.name,void 0)))),{leadingTriviaOption:Tue.LeadingTriviaOption.Exclude,trailingTriviaOption:Tue.TrailingTriviaOption.ExcludeWhitespace})}(o,n,i,r);default:un.fail("Unexpected action name")}})),a=n.fileName;return{edits:o,renameFilename:a,renameLocation:HY(o,a,i,!1)}}});var h6="Move to file",y6=Ux(la.Move_to_file),v6={name:"Move to file",description:y6,kind:"refactor.move.file"};function b6(e){return{edits:[],renameFilename:void 0,renameLocation:void 0,notApplicableReason:e}}function x6(e,t,n,r,i,o,a,s,c,l){const _=o.getTypeChecker(),d=cn(e.statements,uf),p=!KZ(t.fileName,o,a,!!e.commonJsModuleIndicator),m=BQ(e,s);F6(n.oldFileImportsFromTargetFile,t.fileName,l,o),function(e,t,n,r){for(const i of e.statements)T(t,i)||N6(i,(e=>{D6(e,(e=>{n.has(e.symbol)&&r.removeExistingImport(e)}))}))}(e,i.all,n.unusedImportsFromOldFile,l),l.writeFixes(r,m),function(e,t,n){for(const{first:r,afterLast:i}of t)n.deleteNodeRangeExcludingEnd(e,r,i)}(e,i.ranges,r),function(e,t,n,r,i,o,a){const s=t.getTypeChecker();for(const c of t.getSourceFiles())if(c!==r)for(const l of c.statements)N6(l,(_=>{if(s.getSymbolAtLocation(272===(u=_).kind?u.moduleSpecifier:271===u.kind?u.moduleReference.expression:u.initializer.arguments[0])!==r.symbol)return;var u;const d=e=>{const t=VD(e.parent)?WQ(s,e.parent):ix(s.getSymbolAtLocation(e),s);return!!t&&i.has(t)};P6(c,_,e,d);const p=Ro(Do(Bo(r.fileName,t.getCurrentDirectory())),o);if(0===wt(!t.useCaseSensitiveFileNames())(p,c.fileName))return;const f=BM.getModuleSpecifier(t.getCompilerOptions(),c,c.fileName,p,AQ(t,n)),m=j6(_,jQ(f,a),d);m&&e.insertNodeAfter(c,l,m);const g=T6(_);g&&C6(e,c,s,i,f,g,_,a)}))}(r,o,a,e,n.movedSymbols,t.fileName,m),S6(e,n.targetFileImportsFromOldFile,r,p),n3(e,n.oldImportsNeededByTargetFile,n.targetFileImportsFromOldFile,_,o,c),!Nm(t)&&d.length&&r.insertStatementsInNewFile(t.fileName,d,e),c.writeFixes(r,m);const g=function(e,t,n,r){return O(t,(t=>{if(A6(t)&&!E6(e,t,r)&&W6(t,(e=>{var t;return n.includes(un.checkDefined(null==(t=tt(e,ou))?void 0:t.symbol))}))){const e=function(e,t){return t?[I6(e)]:function(e){return[e,...L6(e).map(O6)]}(e)}(LY(t),r);if(e)return e}return LY(t)}))}(e,i.all,Oe(n.oldFileImportsFromTargetFile.keys()),p);Nm(t)&&t.statements.length>0?function(e,t,n,r,i){var o;const a=new Set,s=null==(o=r.symbol)?void 0:o.exports;if(s){const n=t.getTypeChecker(),o=new Map;for(const e of i.all)A6(e)&&wv(e,32)&&W6(e,(e=>{var t;const n=f(ou(e)?null==(t=s.get(e.symbol.escapedName))?void 0:t.declarations:void 0,(e=>fE(e)?e:gE(e)?tt(e.parent.parent,fE):void 0));n&&n.moduleSpecifier&&o.set(n,(o.get(n)||new Set).add(e))}));for(const[t,i]of Oe(o))if(t.exportClause&&mE(t.exportClause)&&u(t.exportClause.elements)){const o=t.exportClause.elements,s=N(o,(e=>void 0===b(ix(e.symbol,n).declarations,(e=>K6(e)&&i.has(e)))));if(0===u(s)){e.deleteNode(r,t),a.add(t);continue}u(s)fE(e)&&!!e.moduleSpecifier&&!a.has(e)));c?e.insertNodesBefore(r,c,n,!0):e.insertNodesAfter(r,r.statements[r.statements.length-1],n)}(r,o,g,t,i):Nm(t)?r.insertNodesAtEndOfFile(t,g,!1):r.insertStatementsInNewFile(t.fileName,c.hasFixes()?[4,...g]:g,e)}function k6(e,t,n,r,i){const o=e.getCompilerOptions().configFile;if(!o)return;const a=Jo(jo(n,"..",r)),s=ia(o.fileName,a,i),c=o.statements[0]&&tt(o.statements[0].expression,$D),l=c&&b(c.properties,(e=>ME(e)&&TN(e.name)&&"files"===e.name.text));l&&WD(l.initializer)&&t.insertNodeInListAfter(o,ve(l.initializer.elements),XC.createStringLiteral(s),l.initializer.elements)}function S6(e,t,n,r){const i=TQ();t.forEach(((t,o)=>{var a;if(o.declarations)for(const t of o.declarations){if(!K6(t))continue;const o=DF(a=t)?tt(a.expression.left.name,zN):tt(a.name,zN);if(!o)continue;const s=R6(t);i(s)&&M6(e,s,o,n,r)}}))}function T6(e){switch(e.kind){case 272:return e.importClause&&e.importClause.namedBindings&&274===e.importClause.namedBindings.kind?e.importClause.namedBindings.name:void 0;case 271:return e.name;case 260:return tt(e.name,zN);default:return un.assertNever(e,`Unexpected node kind ${e.kind}`)}}function C6(e,t,n,r,i,o,a,s){const c=RZ(i,99);let l=!1;const _=[];if(ice.Core.eachSymbolReferenceInFile(o,n,t,(e=>{HD(e.parent)&&(l=l||!!n.resolveName(c,e,-1,!0),r.has(n.getSymbolAtLocation(e.parent.name))&&_.push(e))})),_.length){const n=l?$Y(c,t):c;for(const r of _)e.replaceNode(t,r,XC.createIdentifier(n));e.insertNodeAfter(t,a,function(e,t,n,r){const i=XC.createIdentifier(t),o=jQ(n,r);switch(e.kind){case 272:return XC.createImportDeclaration(void 0,XC.createImportClause(!1,void 0,XC.createNamespaceImport(i)),o,void 0);case 271:return XC.createImportEqualsDeclaration(void 0,!1,i,XC.createExternalModuleReference(o));case 260:return XC.createVariableDeclaration(i,void 0,void 0,w6(o));default:return un.assertNever(e,`Unexpected node kind ${e.kind}`)}}(a,c,i,s))}}function w6(e){return XC.createCallExpression(XC.createIdentifier("require"),void 0,[e])}function N6(e,t){if(nE(e))TN(e.moduleSpecifier)&&t(e);else if(tE(e))xE(e.moduleReference)&&Lu(e.moduleReference.expression)&&t(e);else if(wF(e))for(const n of e.declarationList.declarations)n.initializer&&Om(n.initializer,!0)&&t(n)}function D6(e,t){var n,r,i,o,a;if(272===e.kind){if((null==(n=e.importClause)?void 0:n.name)&&t(e.importClause),274===(null==(i=null==(r=e.importClause)?void 0:r.namedBindings)?void 0:i.kind)&&t(e.importClause.namedBindings),275===(null==(a=null==(o=e.importClause)?void 0:o.namedBindings)?void 0:a.kind))for(const n of e.importClause.namedBindings.elements)t(n)}else if(271===e.kind)t(e);else if(260===e.kind)if(80===e.name.kind)t(e);else if(206===e.name.kind)for(const n of e.name.elements)zN(n.name)&&t(n)}function F6(e,t,n,r){for(const[i,o]of e){const e=OZ(i,hk(r.getCompilerOptions())),a="default"===i.name&&i.parent?1:0;n.addImportForNonExistentExport(e,t,a,i.flags,o)}}function E6(e,t,n,r){var i;return n?!DF(t)&&wv(t,32)||!!(r&&e.symbol&&(null==(i=e.symbol.exports)?void 0:i.has(r.escapedText))):!!e.symbol&&!!e.symbol.exports&&L6(t).some((t=>e.symbol.exports.has(pc(t))))}function P6(e,t,n,r){if(272===t.kind&&t.importClause){const{name:i,namedBindings:o}=t.importClause;if((!i||r(i))&&(!o||275===o.kind&&0!==o.elements.length&&o.elements.every((e=>r(e.name)))))return n.delete(e,t)}D6(t,(t=>{t.name&&zN(t.name)&&r(t.name)&&n.delete(e,t)}))}function A6(e){return un.assert(qE(e.parent),"Node parent should be a SourceFile"),X6(e)||wF(e)}function I6(e){const t=rI(e)?K([XC.createModifier(95)],Nc(e)):void 0;switch(e.kind){case 262:return XC.updateFunctionDeclaration(e,t,e.asteriskToken,e.name,e.typeParameters,e.parameters,e.type,e.body);case 263:const n=iI(e)?wc(e):void 0;return XC.updateClassDeclaration(e,K(n,t),e.name,e.typeParameters,e.heritageClauses,e.members);case 243:return XC.updateVariableStatement(e,t,e.declarationList);case 267:return XC.updateModuleDeclaration(e,t,e.name,e.body);case 266:return XC.updateEnumDeclaration(e,t,e.name,e.members);case 265:return XC.updateTypeAliasDeclaration(e,t,e.name,e.typeParameters,e.type);case 264:return XC.updateInterfaceDeclaration(e,t,e.name,e.typeParameters,e.heritageClauses,e.members);case 271:return XC.updateImportEqualsDeclaration(e,t,e.isTypeOnly,e.name,e.moduleReference);case 244:return un.fail();default:return un.assertNever(e,`Unexpected declaration kind ${e.kind}`)}}function O6(e){return XC.createExpressionStatement(XC.createBinaryExpression(XC.createPropertyAccessExpression(XC.createIdentifier("exports"),XC.createIdentifier(e)),64,XC.createIdentifier(e)))}function L6(e){switch(e.kind){case 262:case 263:return[e.name.text];case 243:return B(e.declarationList.declarations,(e=>zN(e.name)?e.name.text:void 0));case 267:case 266:case 265:case 264:case 271:return l;case 244:return un.fail("Can't export an ExpressionStatement");default:return un.assertNever(e,`Unexpected decl kind ${e.kind}`)}}function j6(e,t,n){switch(e.kind){case 272:{const r=e.importClause;if(!r)return;const i=r.name&&n(r.name)?r.name:void 0,o=r.namedBindings&&function(e,t){if(274===e.kind)return t(e.name)?e:void 0;{const n=e.elements.filter((e=>t(e.name)));return n.length?XC.createNamedImports(n):void 0}}(r.namedBindings,n);return i||o?XC.createImportDeclaration(void 0,XC.createImportClause(r.isTypeOnly,i,o),LY(t),void 0):void 0}case 271:return n(e.name)?e:void 0;case 260:{const r=function(e,t){switch(e.kind){case 80:return t(e)?e:void 0;case 207:return e;case 206:{const n=e.elements.filter((e=>e.propertyName||!zN(e.name)||t(e.name)));return n.length?XC.createObjectBindingPattern(n):void 0}}}(e.name,n);return r?function(e,t,n,r=2){return XC.createVariableStatement(void 0,XC.createVariableDeclarationList([XC.createVariableDeclaration(e,void 0,t,n)],r))}(r,e.type,w6(t),e.parent.flags):void 0}default:return un.assertNever(e,`Unexpected import kind ${e.kind}`)}}function R6(e){switch(e.kind){case 260:return e.parent.parent;case 208:return R6(nt(e.parent.parent,(e=>VF(e)||VD(e))));default:return e}}function M6(e,t,n,r,i){if(!E6(e,t,i,n))if(i)DF(t)||r.insertExportModifier(e,t);else{const n=L6(t);0!==n.length&&r.insertNodesAfter(e,t,n.map(O6))}}function B6(e,t,n,r){const i=t.getTypeChecker();if(r){const t=U6(e,r.all,i),s=Do(e.fileName),c=QS(e.fileName),l=jo(s,function(e,t,n,r){let i=e;for(let o=1;;o++){const a=jo(n,i+t);if(!r.fileExists(a))return i;i=`${e}.${o}`}}((o=t.oldFileImportsFromTargetFile,a=t.movedSymbols,nd(o,zQ)||nd(a,zQ)||"newFile"),c,s,n))+c;return l}var o,a;return""}function J6(e){const t=function(e){const{file:t}=e,n=hQ(EZ(e)),{statements:r}=t;let i=k(r,(e=>e.end>n.pos));if(-1===i)return;const o=Q6(t,r[i]);o&&(i=o.start);let a=k(r,(e=>e.end>=n.end),i);-1!==a&&n.end<=r[a].getStart()&&a--;const s=Q6(t,r[a]);return s&&(a=s.end),{toMove:r.slice(i,-1===a?r.length:a+1),afterLast:-1===a?void 0:r[a+1]}}(e);if(void 0===t)return;const n=[],r=[],{toMove:i,afterLast:o}=t;return H(i,q6,((e,t)=>{for(let r=e;r!!(2&e.transformFlags)))}function q6(e){return!function(e){switch(e.kind){case 272:return!0;case 271:return!wv(e,32);case 243:return e.declarationList.declarations.every((e=>!!e.initializer&&Om(e.initializer,!0)));default:return!1}}(e)&&!uf(e)}function U6(e,t,n,r=new Set,i){var o;const a=new Set,s=new Map,c=new Map,l=function(e){if(void 0===e)return;const t=n.getJsxNamespace(e),r=n.resolveName(t,e,1920,!0);return r&&$(r.declarations,$6)?r:void 0}(z6(t));l&&s.set(l,[!1,tt(null==(o=l.declarations)?void 0:o[0],(e=>dE(e)||rE(e)||lE(e)||tE(e)||VD(e)||VF(e)))]);for(const e of t)W6(e,(e=>{a.add(un.checkDefined(DF(e)?n.getSymbolAtLocation(e.expression.left):e.symbol,"Need a symbol here"))}));const _=new Set;for(const o of t)V6(o,n,i,((t,i)=>{if(!t.declarations)return;if(r.has(ix(t,n)))return void _.add(t);const o=b(t.declarations,$6);if(o){const e=s.get(t);s.set(t,[(void 0===e||e)&&i,tt(o,(e=>dE(e)||rE(e)||lE(e)||tE(e)||VD(e)||VF(e)))])}else!a.has(t)&&v(t.declarations,(t=>{return K6(t)&&(VF(n=t)?n.parent.parent.parent:n.parent)===e;var n}))&&c.set(t,i)}));for(const e of s.keys())_.add(e);const u=new Map;for(const r of e.statements)T(t,r)||(l&&2&r.transformFlags&&_.delete(l),V6(r,n,i,((e,t)=>{a.has(e)&&u.set(e,t),_.delete(e)})));return{movedSymbols:a,targetFileImportsFromOldFile:c,oldFileImportsFromTargetFile:u,oldImportsNeededByTargetFile:s,unusedImportsFromOldFile:_}}function V6(e,t,n,r){e.forEachChild((function e(i){if(zN(i)&&!ch(i)){if(n&&!Gb(n,i))return;const e=t.getSymbolAtLocation(i);e&&r(e,yT(i))}else i.forEachChild(e)}))}function W6(e,t){switch(e.kind){case 262:case 263:case 267:case 266:case 265:case 264:case 271:return t(e);case 243:return f(e.declarationList.declarations,(e=>G6(e.name,t)));case 244:{const{expression:n}=e;return cF(n)&&1===eg(n)?t(e):void 0}}}function $6(e){switch(e.kind){case 271:case 276:case 273:case 274:return!0;case 260:return H6(e);case 208:return VF(e.parent.parent)&&H6(e.parent.parent);default:return!1}}function H6(e){return qE(e.parent.parent.parent)&&!!e.initializer&&Om(e.initializer,!0)}function K6(e){return X6(e)&&qE(e.parent)||VF(e)&&qE(e.parent.parent.parent)}function G6(e,t){switch(e.kind){case 80:return t(nt(e.parent,(e=>VF(e)||VD(e))));case 207:case 206:return f(e.elements,(e=>fF(e)?void 0:G6(e.name,t)));default:return un.assertNever(e,`Unexpected name kind ${e.kind}`)}}function X6(e){switch(e.kind){case 262:case 263:case 267:case 266:case 265:case 264:case 271:return!0;default:return!1}}function Q6(e,t){if(i_(t)){const n=t.symbol.declarations;if(void 0===n||u(n)<=1||!T(n,t))return;const r=n[0],i=n[u(n)-1],o=B(n,(t=>hd(t)===e&&du(t)?t:void 0)),a=k(e.statements,(e=>e.end>=i.end));return{toMove:o,start:k(e.statements,(e=>e.end>=r.end)),end:a}}}function Y6(e,t,n){const r=new Set;for(const t of e.imports){const e=yg(t);if(nE(e)&&e.importClause&&e.importClause.namedBindings&&uE(e.importClause.namedBindings))for(const t of e.importClause.namedBindings.elements){const e=n.getSymbolAtLocation(t.propertyName||t.name);e&&r.add(ix(e,n))}if(Lm(e.parent)&&qD(e.parent.name))for(const t of e.parent.name.elements){const e=n.getSymbolAtLocation(t.propertyName||t.name);e&&r.add(ix(e,n))}}for(const i of t)V6(i,n,void 0,(t=>{const i=ix(t,n);i.valueDeclaration&&hd(i.valueDeclaration).path===e.path&&r.add(i)}));return r}function Z6(e){return void 0!==e.error}function e3(e,t){return!t||e.substr(0,t.length)===t}function t3(e,t,n,r){return!HD(e)||__(t)||n.resolveName(e.name.text,e,111551,!1)||qN(e.name)||gc(e.name)?$Y(__(t)?"newProperty":"newLocal",r):e.name.text}function n3(e,t,n,r,i,o){t.forEach((([e,t],n)=>{var i;const a=ix(n,r);r.isUnknownSymbol(a)?o.addVerbatimImport(un.checkDefined(t??_c(null==(i=n.declarations)?void 0:i[0],Sp))):void 0===a.parent?(un.assert(void 0!==t,"expected module symbol to have a declaration"),o.addImportForModuleSymbol(n,e,t)):o.addImportFromExportedSymbol(a,e,t)})),F6(n,e.fileName,o,i)}$2(h6,{kinds:[v6.kind],getAvailableActions:function(e,t){const n=e.file,r=J6(e);if(!t)return l;if("implicit"===e.triggerReason&&void 0!==e.endPosition){const t=_c(PX(n,e.startPosition),GZ),r=_c(PX(n,e.endPosition),GZ);if(t&&!qE(t)&&r&&!qE(r))return l}if(e.preferences.allowTextChangesInNewFiles&&r){const e={start:{line:Ja(n,r.all[0].getStart(n)).line,offset:Ja(n,r.all[0].getStart(n)).character},end:{line:Ja(n,ve(r.all).end).line,offset:Ja(n,ve(r.all).end).character}};return[{name:h6,description:y6,actions:[{...v6,range:e}]}]}return e.preferences.provideRefactorNotApplicableReason?[{name:h6,description:y6,actions:[{...v6,notApplicableReason:Ux(la.Selection_is_not_a_valid_statement_or_statements)}]}]:l},getEditsForAction:function(e,t,n){un.assert(t===h6,"Wrong refactor invoked");const r=un.checkDefined(J6(e)),{host:i,program:o}=e;un.assert(n,"No interactive refactor arguments available");const a=n.targetFile;if(AS(a)||IS(a)){if(i.fileExists(a)&&void 0===o.getSourceFile(a))return b6(Ux(la.Cannot_move_statements_to_the_selected_file));const t=Tue.ChangeTracker.with(e,(t=>function(e,t,n,r,i,o,a,s){const c=r.getTypeChecker(),l=!a.fileExists(n),_=l?XZ(n,t.externalModuleIndicator?99:t.commonJsModuleIndicator?1:void 0,r,a):un.checkDefined(r.getSourceFile(n)),u=f7.createImportAdder(t,e.program,e.preferences,e.host),d=f7.createImportAdder(_,e.program,e.preferences,e.host);x6(t,_,U6(t,i.all,c,l?void 0:Y6(_,i.all,c)),o,i,r,a,s,d,u),l&&k6(r,o,t.fileName,n,jy(a))}(e,e.file,n.targetFile,e.program,r,t,e.host,e.preferences)));return{edits:t,renameFilename:void 0,renameLocation:void 0}}return b6(Ux(la.Cannot_move_to_file_selected_file_is_invalid))}});var r3="Inline variable",i3=Ux(la.Inline_variable),o3={name:r3,description:i3,kind:"refactor.inline.variable"};function a3(e,t,n,r){var i,o;const a=r.getTypeChecker(),s=FX(e,t),c=s.parent;if(zN(s)){if(Zb(c)&&Pf(c)&&zN(c.name)){if(1!==(null==(i=a.getMergedSymbol(c.symbol).declarations)?void 0:i.length))return{error:Ux(la.Variables_with_multiple_declarations_cannot_be_inlined)};if(s3(c))return;const t=c3(c,a,e);return t&&{references:t,declaration:c,replacement:c.initializer}}if(n){let t=a.resolveName(s.text,s,111551,!1);if(t=t&&a.getMergedSymbol(t),1!==(null==(o=null==t?void 0:t.declarations)?void 0:o.length))return{error:Ux(la.Variables_with_multiple_declarations_cannot_be_inlined)};const n=t.declarations[0];if(!Zb(n)||!Pf(n)||!zN(n.name))return;if(s3(n))return;const r=c3(n,a,e);return r&&{references:r,declaration:n,replacement:n.initializer}}return{error:Ux(la.Could_not_find_variable_to_inline)}}}function s3(e){return $(nt(e.parent.parent,wF).modifiers,UN)}function c3(e,t,n){const r=[],i=ice.Core.eachSymbolReferenceInFile(e.name,t,n,(t=>!(!ice.isWriteAccessForReference(t)||BE(t.parent))||!(!gE(t.parent)&&!pE(t.parent))||!!kD(t.parent)||!!Ps(e,t.pos)||void r.push(t)));return 0===r.length||i?void 0:r}function l3(e,t){t=LY(t);const{parent:n}=e;return U_(n)&&(ry(t){for(const t of a){const r=TN(c)&&zN(t)&&nh(t.parent);r&&SF(r)&&!QD(r.parent.parent)?_3(e,n,r,c):e.replaceNode(n,t,l3(t,c))}e.delete(n,s)}))}}});var u3="Move to a new file",d3=Ux(la.Move_to_a_new_file),p3={name:u3,description:d3,kind:"refactor.move.newFile"};$2(u3,{kinds:[p3.kind],getAvailableActions:function(e){const t=J6(e),n=e.file;if("implicit"===e.triggerReason&&void 0!==e.endPosition){const t=_c(PX(n,e.startPosition),GZ),r=_c(PX(n,e.endPosition),GZ);if(t&&!qE(t)&&r&&!qE(r))return l}if(e.preferences.allowTextChangesInNewFiles&&t){const n=e.file,r={start:{line:Ja(n,t.all[0].getStart(n)).line,offset:Ja(n,t.all[0].getStart(n)).character},end:{line:Ja(n,ve(t.all).end).line,offset:Ja(n,ve(t.all).end).character}};return[{name:u3,description:d3,actions:[{...p3,range:r}]}]}return e.preferences.provideRefactorNotApplicableReason?[{name:u3,description:d3,actions:[{...p3,notApplicableReason:Ux(la.Selection_is_not_a_valid_statement_or_statements)}]}]:l},getEditsForAction:function(e,t){un.assert(t===u3,"Wrong refactor invoked");const n=un.checkDefined(J6(e)),r=Tue.ChangeTracker.with(e,(t=>function(e,t,n,r,i,o,a){const s=t.getTypeChecker(),c=U6(e,n.all,s),l=B6(e,t,i,n),_=XZ(l,e.externalModuleIndicator?99:e.commonJsModuleIndicator?1:void 0,t,i),u=f7.createImportAdder(e,o.program,o.preferences,o.host);x6(e,_,c,r,n,t,i,a,f7.createImportAdder(_,o.program,o.preferences,o.host),u),k6(t,r,e.fileName,l,jy(i))}(e.file,e.program,n,t,e.host,e,e.preferences)));return{edits:r,renameFilename:void 0,renameLocation:void 0}}});var f3={},m3="Convert overload list to single signature",g3=Ux(la.Convert_overload_list_to_single_signature),h3={name:m3,description:g3,kind:"refactor.rewrite.function.overloadList"};function y3(e){switch(e.kind){case 173:case 174:case 179:case 176:case 180:case 262:return!0}return!1}function v3(e,t,n){const r=_c(PX(e,t),y3);if(!r)return;if(i_(r)&&r.body&&sX(r.body,t))return;const i=n.getTypeChecker(),o=r.symbol;if(!o)return;const a=o.declarations;if(u(a)<=1)return;if(!v(a,(t=>hd(t)===e)))return;if(!y3(a[0]))return;const s=a[0].kind;if(!v(a,(e=>e.kind===s)))return;const c=a;if($(c,(e=>!!e.typeParameters||$(e.parameters,(e=>!!e.modifiers||!zN(e.name))))))return;const l=B(c,(e=>i.getSignatureFromDeclaration(e)));if(u(l)!==u(a))return;const _=i.getReturnTypeOfSignature(l[0]);return v(l,(e=>i.getReturnTypeOfSignature(e)===_))?c:void 0}$2(m3,{kinds:[h3.kind],getEditsForAction:function(e){const{file:t,startPosition:n,program:r}=e,i=v3(t,n,r);if(!i)return;const o=r.getTypeChecker(),a=i[i.length-1];let s=a;switch(a.kind){case 173:s=XC.updateMethodSignature(a,a.modifiers,a.name,a.questionToken,a.typeParameters,c(i),a.type);break;case 174:s=XC.updateMethodDeclaration(a,a.modifiers,a.asteriskToken,a.name,a.questionToken,a.typeParameters,c(i),a.type,a.body);break;case 179:s=XC.updateCallSignature(a,a.typeParameters,c(i),a.type);break;case 176:s=XC.updateConstructorDeclaration(a,a.modifiers,c(i),a.body);break;case 180:s=XC.updateConstructSignature(a,a.typeParameters,c(i),a.type);break;case 262:s=XC.updateFunctionDeclaration(a,a.modifiers,a.asteriskToken,a.name,a.typeParameters,c(i),a.type,a.body);break;default:return un.failBadSyntaxKind(a,"Unhandled signature kind in overload list conversion refactoring")}if(s!==a)return{renameFilename:void 0,renameLocation:void 0,edits:Tue.ChangeTracker.with(e,(e=>{e.replaceNodeRange(t,i[0],i[i.length-1],s)}))};function c(e){const t=e[e.length-1];return i_(t)&&t.body&&(e=e.slice(0,e.length-1)),XC.createNodeArray([XC.createParameterDeclaration(void 0,XC.createToken(26),"args",void 0,XC.createUnionTypeNode(E(e,l)))])}function l(e){const t=E(e.parameters,_);return nw(XC.createTupleTypeNode(t),$(t,(e=>!!u(fw(e))))?0:1)}function _(e){un.assert(zN(e.name));const t=nI(XC.createNamedTupleMember(e.dotDotDotToken,e.name,e.questionToken,e.type||XC.createKeywordTypeNode(133)),e),n=e.symbol&&e.symbol.getDocumentationComment(o);if(n){const e=D8(n);e.length&&mw(t,[{text:`*\n${e.split("\n").map((e=>` * ${e}`)).join("\n")}\n `,kind:3,pos:-1,end:-1,hasTrailingNewLine:!0,hasLeadingNewline:!0}])}return t}},getAvailableActions:function(e){const{file:t,startPosition:n,program:r}=e;return v3(t,n,r)?[{name:m3,description:g3,actions:[h3]}]:l}});var b3="Add or remove braces in an arrow function",x3=Ux(la.Add_or_remove_braces_in_an_arrow_function),k3={name:"Add braces to arrow function",description:Ux(la.Add_braces_to_arrow_function),kind:"refactor.rewrite.arrow.braces.add"},S3={name:"Remove braces from arrow function",description:Ux(la.Remove_braces_from_arrow_function),kind:"refactor.rewrite.arrow.braces.remove"};function T3(e,t,n=!0,r){const i=PX(e,t),o=Hf(i);if(!o)return{error:Ux(la.Could_not_find_a_containing_arrow_function)};if(!tF(o))return{error:Ux(la.Containing_function_is_not_an_arrow_function)};if(Gb(o,i)&&(!Gb(o.body,i)||n)){if(e3(k3.kind,r)&&U_(o.body))return{func:o,addBraces:!0,expression:o.body};if(e3(S3.kind,r)&&CF(o.body)&&1===o.body.statements.length){const e=ge(o.body.statements);if(RF(e))return{func:o,addBraces:!1,expression:e.expression&&$D(Nx(e.expression,!1))?XC.createParenthesizedExpression(e.expression):e.expression,returnStatement:e}}}}$2(b3,{kinds:[S3.kind],getEditsForAction:function(e,t){const{file:n,startPosition:r}=e,i=T3(n,r);un.assert(i&&!Z6(i),"Expected applicable refactor info");const{expression:o,returnStatement:a,func:s}=i;let c;if(t===k3.name){const e=XC.createReturnStatement(o);c=XC.createBlock([e],!0),KY(o,e,n,3,!0)}else if(t===S3.name&&a){const e=o||XC.createVoidZero();c=ZY(e)?XC.createParenthesizedExpression(e):e,XY(a,c,n,3,!1),KY(a,c,n,3,!1),GY(a,c,n,3,!1)}else un.fail("invalid action");return{renameFilename:void 0,renameLocation:void 0,edits:Tue.ChangeTracker.with(e,(e=>{e.replaceNode(n,s.body,c)}))}},getAvailableActions:function(e){const{file:t,startPosition:n,triggerReason:r}=e,i=T3(t,n,"invoked"===r);return i?Z6(i)?e.preferences.provideRefactorNotApplicableReason?[{name:b3,description:x3,actions:[{...k3,notApplicableReason:i.error},{...S3,notApplicableReason:i.error}]}]:l:[{name:b3,description:x3,actions:[i.addBraces?k3:S3]}]:l}});var C3={},w3="Convert arrow function or function expression",N3=Ux(la.Convert_arrow_function_or_function_expression),D3={name:"Convert to anonymous function",description:Ux(la.Convert_to_anonymous_function),kind:"refactor.rewrite.function.anonymous"},F3={name:"Convert to named function",description:Ux(la.Convert_to_named_function),kind:"refactor.rewrite.function.named"},E3={name:"Convert to arrow function",description:Ux(la.Convert_to_arrow_function),kind:"refactor.rewrite.function.arrow"};function P3(e){let t=!1;return e.forEachChild((function e(n){rX(n)?t=!0:__(n)||$F(n)||eF(n)||PI(n,e)})),t}function A3(e,t,n){const r=PX(e,t),i=n.getTypeChecker(),o=function(e,t,n){if(!function(e){return VF(e)||WF(e)&&1===e.declarations.length}(n))return;const r=(VF(n)?n:ge(n.declarations)).initializer;return r&&(tF(r)||eF(r)&&!O3(e,t,r))?r:void 0}(e,i,r.parent);if(o&&!P3(o.body)&&!i.containsArgumentsReference(o))return{selectedVariableDeclaration:!0,func:o};const a=Hf(r);if(a&&(eF(a)||tF(a))&&!Gb(a.body,r)&&!P3(a.body)&&!i.containsArgumentsReference(a)){if(eF(a)&&O3(e,i,a))return;return{selectedVariableDeclaration:!1,func:a}}}function I3(e){if(U_(e)){const t=XC.createReturnStatement(e),n=e.getSourceFile();return nI(t,e),JY(t),XY(e,t,n,void 0,!0),XC.createBlock([t],!0)}return e}function O3(e,t,n){return!!n.name&&ice.Core.isSymbolReferencedInFile(n.name,t,e)}$2(w3,{kinds:[D3.kind,F3.kind,E3.kind],getEditsForAction:function(e,t){const{file:n,startPosition:r,program:i}=e,o=A3(n,r,i);if(!o)return;const{func:a}=o,s=[];switch(t){case D3.name:s.push(...function(e,t){const{file:n}=e,r=I3(t.body),i=XC.createFunctionExpression(t.modifiers,t.asteriskToken,void 0,t.typeParameters,t.parameters,t.type,r);return Tue.ChangeTracker.with(e,(e=>e.replaceNode(n,t,i)))}(e,a));break;case F3.name:const t=function(e){const t=e.parent;if(!VF(t)||!Pf(t))return;const n=t.parent,r=n.parent;return WF(n)&&wF(r)&&zN(t.name)?{variableDeclaration:t,variableDeclarationList:n,statement:r,name:t.name}:void 0}(a);if(!t)return;s.push(...function(e,t,n){const{file:r}=e,i=I3(t.body),{variableDeclaration:o,variableDeclarationList:a,statement:s,name:c}=n;zY(s);const l=32&rc(o)|Mv(t),_=XC.createModifiersFromModifierFlags(l),d=XC.createFunctionDeclaration(u(_)?_:void 0,t.asteriskToken,c,t.typeParameters,t.parameters,t.type,i);return 1===a.declarations.length?Tue.ChangeTracker.with(e,(e=>e.replaceNode(r,s,d))):Tue.ChangeTracker.with(e,(e=>{e.delete(r,o),e.insertNodeAfter(r,s,d)}))}(e,a,t));break;case E3.name:if(!eF(a))return;s.push(...function(e,t){const{file:n}=e,r=t.body.statements[0];let i;!function(e,t){return 1===e.statements.length&&RF(t)&&!!t.expression}(t.body,r)?i=t.body:(i=r.expression,JY(i),UY(r,i));const o=XC.createArrowFunction(t.modifiers,t.typeParameters,t.parameters,t.type,XC.createToken(39),i);return Tue.ChangeTracker.with(e,(e=>e.replaceNode(n,t,o)))}(e,a));break;default:return un.fail("invalid action")}return{renameFilename:void 0,renameLocation:void 0,edits:s}},getAvailableActions:function(e){const{file:t,startPosition:n,program:r,kind:i}=e,o=A3(t,n,r);if(!o)return l;const{selectedVariableDeclaration:a,func:s}=o,c=[],_=[];if(e3(F3.kind,i)){const e=a||tF(s)&&VF(s.parent)?void 0:Ux(la.Could_not_convert_to_named_function);e?_.push({...F3,notApplicableReason:e}):c.push(F3)}if(e3(D3.kind,i)){const e=!a&&tF(s)?void 0:Ux(la.Could_not_convert_to_anonymous_function);e?_.push({...D3,notApplicableReason:e}):c.push(D3)}if(e3(E3.kind,i)){const e=eF(s)?void 0:Ux(la.Could_not_convert_to_arrow_function);e?_.push({...E3,notApplicableReason:e}):c.push(E3)}return[{name:w3,description:N3,actions:0===c.length&&e.preferences.provideRefactorNotApplicableReason?_:c}]}});var L3={},j3="Convert parameters to destructured object",R3=Ux(la.Convert_parameters_to_destructured_object),M3={name:j3,description:R3,kind:"refactor.rewrite.parameters.toDestructured"};function B3(e,t){const n=q8(e);if(n){const e=t.getContextualTypeForObjectLiteralElement(n),r=null==e?void 0:e.getSymbol();if(r&&!(6&nx(r)))return r}}function J3(e){const t=e.node;return dE(t.parent)||rE(t.parent)||tE(t.parent)||lE(t.parent)||gE(t.parent)||pE(t.parent)?t:void 0}function z3(e){if(lu(e.node.parent))return e.node}function q3(e){if(e.node.parent){const t=e.node,n=t.parent;switch(n.kind){case 213:case 214:const e=tt(n,L_);if(e&&e.expression===t)return e;break;case 211:const r=tt(n,HD);if(r&&r.parent&&r.name===t){const e=tt(r.parent,L_);if(e&&e.expression===r)return e}break;case 212:const i=tt(n,KD);if(i&&i.parent&&i.argumentExpression===t){const e=tt(i.parent,L_);if(e&&e.expression===i)return e}}}}function U3(e){if(e.node.parent){const t=e.node,n=t.parent;switch(n.kind){case 211:const e=tt(n,HD);if(e&&e.expression===t)return e;break;case 212:const r=tt(n,KD);if(r&&r.expression===t)return r}}}function V3(e){const t=e.node;if(2===FG(t)||ib(t.parent))return t}function W3(e,t,n){const r=EX(e,t),i=Kf(r);if(!function(e){const t=_c(e,ku);if(t){const e=_c(t,(e=>!ku(e)));return!!e&&i_(e)}return!1}(r))return!(i&&function(e,t){var n;if(!function(e,t){return function(e){return G3(e)?e.length-1:e.length}(e)>=1&&v(e,(e=>function(e,t){if(Mu(e)){const n=t.getTypeAtLocation(e);if(!t.isArrayType(n)&&!t.isTupleType(n))return!1}return!e.modifiers&&zN(e.name)}(e,t)))}(e.parameters,t))return!1;switch(e.kind){case 262:return H3(e)&&$3(e,t);case 174:if($D(e.parent)){const r=B3(e.name,t);return 1===(null==(n=null==r?void 0:r.declarations)?void 0:n.length)&&$3(e,t)}return $3(e,t);case 176:return HF(e.parent)?H3(e.parent)&&$3(e,t):K3(e.parent.parent)&&$3(e,t);case 218:case 219:return K3(e.parent)}return!1}(i,n)&&Gb(i,r))||i.body&&Gb(i.body,r)?void 0:i}function $3(e,t){return!!e.body&&!t.isImplementationOfOverload(e)}function H3(e){return!!e.name||!!KQ(e,90)}function K3(e){return VF(e)&&rf(e)&&zN(e.name)&&!e.type}function G3(e){return e.length>0&&rX(e[0].name)}function X3(e){return G3(e)&&(e=XC.createNodeArray(e.slice(1),e.hasTrailingComma)),e}function Q3(e,t){const n=X3(e.parameters),r=Mu(ve(n)),i=E(r?t.slice(0,n.length-1):t,((e,t)=>{const r=(i=Z3(n[t]),zN(o=e)&&zh(o)===i?XC.createShorthandPropertyAssignment(i):XC.createPropertyAssignment(i,o));var i,o;return JY(r.name),ME(r)&&JY(r.initializer),UY(e,r),r}));if(r&&t.length>=n.length){const e=t.slice(n.length-1),r=XC.createPropertyAssignment(Z3(ve(n)),XC.createArrayLiteralExpression(e));i.push(r)}return XC.createObjectLiteralExpression(i,!1)}function Y3(e,t,n){const r=t.getTypeChecker(),i=X3(e.parameters),o=E(i,(function(e){const t=XC.createBindingElement(void 0,void 0,Z3(e),Mu(e)&&u(e)?XC.createArrayLiteralExpression():e.initializer);return JY(t),e.initializer&&t.initializer&&UY(e.initializer,t.initializer),t})),a=XC.createObjectBindingPattern(o),s=function(e){const t=E(e,_);return rw(XC.createTypeLiteralNode(t),1)}(i);let c;v(i,u)&&(c=XC.createObjectLiteralExpression());const l=XC.createParameterDeclaration(void 0,void 0,a,void 0,s,c);if(G3(e.parameters)){const t=e.parameters[0],n=XC.createParameterDeclaration(void 0,void 0,t.name,void 0,t.type);return JY(n.name),UY(t.name,n.name),t.type&&(JY(n.type),UY(t.type,n.type)),XC.createNodeArray([n,l])}return XC.createNodeArray([l]);function _(e){let i=e.type;var o;i||!e.initializer&&!Mu(e)||(o=e,i=sZ(r.getTypeAtLocation(o),o,t,n));const a=XC.createPropertySignature(void 0,Z3(e),u(e)?XC.createToken(58):e.questionToken,i);return JY(a),UY(e.name,a.name),e.type&&a.type&&UY(e.type,a.type),a}function u(e){if(Mu(e)){const t=r.getTypeAtLocation(e);return!r.isTupleType(t)}return r.isOptionalParameter(e)}}function Z3(e){return zh(e.name)}$2(j3,{kinds:[M3.kind],getEditsForAction:function(e,t){un.assert(t===j3,"Unexpected action name");const{file:n,startPosition:r,program:i,cancellationToken:o,host:a}=e,s=W3(n,r,i.getTypeChecker());if(!s||!o)return;const c=function(e,t,n){const r=function(e){switch(e.kind){case 262:return e.name?[e.name]:[un.checkDefined(KQ(e,90),"Nameless function declaration should be a default export")];case 174:return[e.name];case 176:const t=un.checkDefined(yX(e,137,e.getSourceFile()),"Constructor declaration should have constructor keyword");return 231===e.parent.kind?[e.parent.parent.name,t]:[t];case 219:return[e.parent.name];case 218:return e.name?[e.name,e.parent.name]:[e.parent.name];default:return un.assertNever(e,`Unexpected function declaration kind ${e.kind}`)}}(e),i=dD(e)?function(e){switch(e.parent.kind){case 263:const t=e.parent;return t.name?[t.name]:[un.checkDefined(KQ(t,90),"Nameless class declaration should be a default export")];case 231:const n=e.parent,r=e.parent.parent,i=n.name;return i?[i,r.name]:[r.name]}}(e):[],o=Q([...r,...i],mt),a=t.getTypeChecker(),s=function(t){const n={accessExpressions:[],typeUsages:[]},o={functionCalls:[],declarations:[],classReferences:n,valid:!0},s=E(r,c),l=E(i,c),_=dD(e),u=E(r,(e=>B3(e,a)));for(const r of t){if(r.kind===ice.EntryKind.Span){o.valid=!1;continue}if(T(u,c(r.node))){if(lD(d=r.node.parent)&&(KF(d.parent)||SD(d.parent))){o.signature=r.node.parent;continue}const e=q3(r);if(e){o.functionCalls.push(e);continue}}const t=B3(r.node,a);if(t&&T(u,t)){const e=z3(r);if(e){o.declarations.push(e);continue}}if(T(s,c(r.node))||AG(r.node)){if(J3(r))continue;const e=z3(r);if(e){o.declarations.push(e);continue}const t=q3(r);if(t){o.functionCalls.push(t);continue}}if(_&&T(l,c(r.node))){if(J3(r))continue;const t=z3(r);if(t){o.declarations.push(t);continue}const i=U3(r);if(i){n.accessExpressions.push(i);continue}if(HF(e.parent)){const e=V3(r);if(e){n.typeUsages.push(e);continue}}}o.valid=!1}var d;return o}(O(o,(e=>ice.getReferenceEntriesForNode(-1,e,t,t.getSourceFiles(),n))));return v(s.declarations,(e=>T(o,e)))||(s.valid=!1),s;function c(e){const t=a.getSymbolAtLocation(e);return t&&EY(t,a)}}(s,i,o);if(c.valid){const t=Tue.ChangeTracker.with(e,(e=>function(e,t,n,r,i,o){const a=o.signature,s=E(Y3(i,t,n),(e=>LY(e)));a&&l(a,E(Y3(a,t,n),(e=>LY(e)))),l(i,s);const c=ee(o.functionCalls,((e,t)=>vt(e.pos,t.pos)));for(const e of c)if(e.arguments&&e.arguments.length){const t=LY(Q3(i,e.arguments),!0);r.replaceNodeRange(hd(e),ge(e.arguments),ve(e.arguments),t,{leadingTriviaOption:Tue.LeadingTriviaOption.IncludeAll,trailingTriviaOption:Tue.TrailingTriviaOption.Include})}function l(t,n){r.replaceNodeRangeWithNodes(e,ge(t.parameters),ve(t.parameters),n,{joiner:", ",indentation:0,leadingTriviaOption:Tue.LeadingTriviaOption.IncludeAll,trailingTriviaOption:Tue.TrailingTriviaOption.Include})}}(n,i,a,e,s,c)));return{renameFilename:void 0,renameLocation:void 0,edits:t}}return{edits:[]}},getAvailableActions:function(e){const{file:t,startPosition:n}=e;return Dm(t)?l:W3(t,n,e.program.getTypeChecker())?[{name:j3,description:R3,actions:[M3]}]:l}});var e4={},t4="Convert to template string",n4=Ux(la.Convert_to_template_string),r4={name:t4,description:n4,kind:"refactor.rewrite.string"};function i4(e,t){const n=PX(e,t),r=a4(n);return!s4(r).isValidConcatenation&&ZD(r.parent)&&cF(r.parent.parent)?r.parent.parent:n}function o4(e,t){const n=a4(t),r=e.file,i=function({nodes:e,operators:t},n){const r=c4(t,n),i=l4(e,n,r),[o,a,s,c]=u4(0,e);if(o===e.length){const e=XC.createNoSubstitutionTemplateLiteral(a,s);return i(c,e),e}const l=[],_=XC.createTemplateHead(a,s);i(c,_);for(let t=o;t{d4(e);const r=t===n.templateSpans.length-1,i=e.literal.text+(r?a:""),o=_4(e.literal)+(r?s:"");return XC.createTemplateSpan(e.expression,_&&r?XC.createTemplateTail(i,o):XC.createTemplateMiddle(i,o))}));l.push(...e)}else{const e=_?XC.createTemplateTail(a,s):XC.createTemplateMiddle(a,s);i(c,e),l.push(XC.createTemplateSpan(n,e))}}return XC.createTemplateExpression(_,l)}(s4(n),r),o=_s(r.text,n.end);if(o){const t=o[o.length-1],a={pos:o[0].pos,end:t.end};return Tue.ChangeTracker.with(e,(e=>{e.deleteRange(r,a),e.replaceNode(r,n,i)}))}return Tue.ChangeTracker.with(e,(e=>e.replaceNode(r,n,i)))}function a4(e){return _c(e.parent,(e=>{switch(e.kind){case 211:case 212:return!1;case 228:case 226:return!(cF(e.parent)&&(t=e.parent,64!==t.operatorToken.kind&&65!==t.operatorToken.kind));default:return"quit"}var t}))||e}function s4(e){const t=e=>{if(!cF(e))return{nodes:[e],operators:[],validOperators:!0,hasString:TN(e)||NN(e)};const{nodes:n,operators:r,hasString:i,validOperators:o}=t(e.left);if(!(i||TN(e.right)||_F(e.right)))return{nodes:[e],operators:[],hasString:!1,validOperators:!0};const a=40===e.operatorToken.kind,s=o&&a;return n.push(e.right),r.push(e.operatorToken),{nodes:n,operators:r,hasString:!0,validOperators:s}},{nodes:n,operators:r,validOperators:i,hasString:o}=t(e);return{nodes:n,operators:r,isValidConcatenation:i&&o}}$2(t4,{kinds:[r4.kind],getEditsForAction:function(e,t){const{file:n,startPosition:r}=e,i=i4(n,r);return t===n4?{edits:o4(e,i)}:un.fail("invalid action")},getAvailableActions:function(e){const{file:t,startPosition:n}=e,r=a4(i4(t,n)),i=TN(r),o={name:t4,description:n4,actions:[]};return i&&"invoked"!==e.triggerReason?l:vm(r)&&(i||cF(r)&&s4(r).isValidConcatenation)?(o.actions.push(r4),[o]):e.preferences.provideRefactorNotApplicableReason?(o.actions.push({...r4,notApplicableReason:Ux(la.Can_only_convert_string_concatenations_and_string_literals)}),[o]):l}});var c4=(e,t)=>(n,r)=>{n(r,i)=>{for(;r.length>0;){const o=r.shift();GY(e[o],i,t,3,!1),n(o,i)}};function _4(e){const t=DN(e)||FN(e)?-2:-1;return Kd(e).slice(1,t)}function u4(e,t){const n=[];let r="",i="";for(;e"\\"===e[0]?e:"\\"+e)),n.push(e),e++}return[e,r,i,n]}function d4(e){const t=e.getSourceFile();GY(e,e.expression,t,3,!1),XY(e.expression,e.expression,t,3,!1)}function p4(e){return ZD(e)&&(d4(e),e=e.expression),e}var f4={},m4="Convert to optional chain expression",g4=Ux(la.Convert_to_optional_chain_expression),h4={name:m4,description:g4,kind:"refactor.rewrite.expression.optionalChain"};function y4(e){return cF(e)||lF(e)}function v4(e){return y4(e)||function(e){return DF(e)||RF(e)||wF(e)}(e)}function b4(e,t=!0){const{file:n,program:r}=e,i=EZ(e),o=0===i.length;if(o&&!t)return;const a=PX(n,i.start),s=OX(n,i.start+i.length),c=Ws(a.pos,s&&s.end>=a.pos?s.getEnd():a.getEnd()),l=o?function(e){for(;e.parent;){if(v4(e)&&!v4(e.parent))return e;e=e.parent}}(a):function(e,t){for(;e.parent;){if(v4(e)&&0!==t.length&&e.end>=t.start+t.length)return e;e=e.parent}}(a,c),_=l&&v4(l)?function(e){if(y4(e))return e;if(wF(e)){const t=Pg(e),n=null==t?void 0:t.initializer;return n&&y4(n)?n:void 0}return e.expression&&y4(e.expression)?e.expression:void 0}(l):void 0;if(!_)return{error:Ux(la.Could_not_find_convertible_access_expression)};const u=r.getTypeChecker();return lF(_)?function(e,t){const n=e.condition,r=T4(e.whenTrue);if(!r||t.isNullableType(t.getTypeAtLocation(r)))return{error:Ux(la.Could_not_find_convertible_access_expression)};if((HD(n)||zN(n))&&k4(n,r.expression))return{finalExpression:r,occurrences:[n],expression:e};if(cF(n)){const t=x4(r.expression,n);return t?{finalExpression:r,occurrences:t,expression:e}:{error:Ux(la.Could_not_find_matching_access_expressions)}}}(_,u):function(e){if(56!==e.operatorToken.kind)return{error:Ux(la.Can_only_convert_logical_AND_access_chains)};const t=T4(e.right);if(!t)return{error:Ux(la.Could_not_find_convertible_access_expression)};const n=x4(t.expression,e.left);return n?{finalExpression:t,occurrences:n,expression:e}:{error:Ux(la.Could_not_find_matching_access_expressions)}}(_)}function x4(e,t){const n=[];for(;cF(t)&&56===t.operatorToken.kind;){const r=k4(oh(e),oh(t.right));if(!r)break;n.push(r),e=r,t=t.left}const r=k4(e,t);return r&&n.push(r),n.length>0?n:void 0}function k4(e,t){if(zN(t)||HD(t)||KD(t))return function(e,t){for(;(GD(e)||HD(e)||KD(e))&&S4(e)!==S4(t);)e=e.expression;for(;HD(e)&&HD(t)||KD(e)&&KD(t);){if(S4(e)!==S4(t))return!1;e=e.expression,t=t.expression}return zN(e)&&zN(t)&&e.getText()===t.getText()}(e,t)?t:void 0}function S4(e){return zN(e)||Lh(e)?e.getText():HD(e)?S4(e.name):KD(e)?S4(e.argumentExpression):void 0}function T4(e){return cF(e=oh(e))?T4(e.left):(HD(e)||KD(e)||GD(e))&&!gl(e)?e:void 0}function C4(e,t,n){if(HD(t)||KD(t)||GD(t)){const r=C4(e,t.expression,n),i=n.length>0?n[n.length-1]:void 0,o=(null==i?void 0:i.getText())===t.expression.getText();if(o&&n.pop(),GD(t))return o?XC.createCallChain(r,XC.createToken(29),t.typeArguments,t.arguments):XC.createCallChain(r,t.questionDotToken,t.typeArguments,t.arguments);if(HD(t))return o?XC.createPropertyAccessChain(r,XC.createToken(29),t.name):XC.createPropertyAccessChain(r,t.questionDotToken,t.name);if(KD(t))return o?XC.createElementAccessChain(r,XC.createToken(29),t.argumentExpression):XC.createElementAccessChain(r,t.questionDotToken,t.argumentExpression)}return t}$2(m4,{kinds:[h4.kind],getEditsForAction:function(e,t){const n=b4(e);return un.assert(n&&!Z6(n),"Expected applicable refactor info"),{edits:Tue.ChangeTracker.with(e,(t=>function(e,t,n,r){const{finalExpression:i,occurrences:o,expression:a}=r,s=o[o.length-1],c=C4(t,i,o);c&&(HD(c)||KD(c)||GD(c))&&(cF(a)?n.replaceNodeRange(e,s,i,c):lF(a)&&n.replaceNode(e,a,XC.createBinaryExpression(c,XC.createToken(61),a.whenFalse)))}(e.file,e.program.getTypeChecker(),t,n))),renameFilename:void 0,renameLocation:void 0}},getAvailableActions:function(e){const t=b4(e,"invoked"===e.triggerReason);return t?Z6(t)?e.preferences.provideRefactorNotApplicableReason?[{name:m4,description:g4,actions:[{...h4,notApplicableReason:t.error}]}]:l:[{name:m4,description:g4,actions:[h4]}]:l}});var w4={};i(w4,{Messages:()=>N4,RangeFacts:()=>I4,getRangeToExtract:()=>O4,getRefactorActionsToExtractSymbol:()=>P4,getRefactorEditsToExtractSymbol:()=>A4});var N4,D4="Extract Symbol",F4={name:"Extract Constant",description:Ux(la.Extract_constant),kind:"refactor.extract.constant"},E4={name:"Extract Function",description:Ux(la.Extract_function),kind:"refactor.extract.function"};function P4(e){const t=e.kind,n=O4(e.file,EZ(e),"invoked"===e.triggerReason),r=n.targetRange;if(void 0===r){if(!n.errors||0===n.errors.length||!e.preferences.provideRefactorNotApplicableReason)return l;const r=[];return e3(E4.kind,t)&&r.push({name:D4,description:E4.description,actions:[{...E4,notApplicableReason:m(n.errors)}]}),e3(F4.kind,t)&&r.push({name:D4,description:F4.description,actions:[{...F4,notApplicableReason:m(n.errors)}]}),r}const{affectedTextRange:i,extractions:o}=function(e,t){const{scopes:n,affectedTextRange:r,readsAndWrites:{functionErrorsPerScope:i,constantErrorsPerScope:o}}=R4(e,t),a=n.map(((e,t)=>{const n=function(e){return i_(e)?"inner function":__(e)?"method":"function"}(e),r=function(e){return __(e)?"readonly field":"constant"}(e),a=i_(e)?function(e){switch(e.kind){case 176:return"constructor";case 218:case 262:return e.name?`function '${e.name.text}'`:aZ;case 219:return"arrow function";case 174:return`method '${e.name.getText()}'`;case 177:return`'get ${e.name.getText()}'`;case 178:return`'set ${e.name.getText()}'`;default:un.assertNever(e,`Unexpected scope kind ${e.kind}`)}}(e):__(e)?function(e){return 263===e.kind?e.name?`class '${e.name.text}'`:"anonymous class declaration":e.name?`class expression '${e.name.text}'`:"anonymous class expression"}(e):function(e){return 268===e.kind?`namespace '${e.parent.name.getText()}'`:e.externalModuleIndicator?0:1}(e);let s,c;return 1===a?(s=Jx(Ux(la.Extract_to_0_in_1_scope),[n,"global"]),c=Jx(Ux(la.Extract_to_0_in_1_scope),[r,"global"])):0===a?(s=Jx(Ux(la.Extract_to_0_in_1_scope),[n,"module"]),c=Jx(Ux(la.Extract_to_0_in_1_scope),[r,"module"])):(s=Jx(Ux(la.Extract_to_0_in_1),[n,a]),c=Jx(Ux(la.Extract_to_0_in_1),[r,a])),0!==t||__(e)||(c=Jx(Ux(la.Extract_to_0_in_enclosing_scope),[r])),{functionExtraction:{description:s,errors:i[t]},constantExtraction:{description:c,errors:o[t]}}}));return{affectedTextRange:r,extractions:a}}(r,e);if(void 0===o)return l;const a=[],s=new Map;let c;const _=[],u=new Map;let d,p=0;for(const{functionExtraction:n,constantExtraction:r}of o){if(e3(E4.kind,t)){const t=n.description;0===n.errors.length?s.has(t)||(s.set(t,!0),a.push({description:t,name:`function_scope_${p}`,kind:E4.kind,range:{start:{line:Ja(e.file,i.pos).line,offset:Ja(e.file,i.pos).character},end:{line:Ja(e.file,i.end).line,offset:Ja(e.file,i.end).character}}})):c||(c={description:t,name:`function_scope_${p}`,notApplicableReason:m(n.errors),kind:E4.kind})}if(e3(F4.kind,t)){const t=r.description;0===r.errors.length?u.has(t)||(u.set(t,!0),_.push({description:t,name:`constant_scope_${p}`,kind:F4.kind,range:{start:{line:Ja(e.file,i.pos).line,offset:Ja(e.file,i.pos).character},end:{line:Ja(e.file,i.end).line,offset:Ja(e.file,i.end).character}}})):d||(d={description:t,name:`constant_scope_${p}`,notApplicableReason:m(r.errors),kind:F4.kind})}p++}const f=[];return a.length?f.push({name:D4,description:Ux(la.Extract_function),actions:a}):e.preferences.provideRefactorNotApplicableReason&&c&&f.push({name:D4,description:Ux(la.Extract_function),actions:[c]}),_.length?f.push({name:D4,description:Ux(la.Extract_constant),actions:_}):e.preferences.provideRefactorNotApplicableReason&&d&&f.push({name:D4,description:Ux(la.Extract_constant),actions:[d]}),f.length?f:l;function m(e){let t=e[0].messageText;return"string"!=typeof t&&(t=t.messageText),t}}function A4(e,t){const n=O4(e.file,EZ(e)).targetRange,r=/^function_scope_(\d+)$/.exec(t);if(r){const t=+r[1];return un.assert(isFinite(t),"Expected to parse a finite number from the function scope index"),function(e,t,n){const{scopes:r,readsAndWrites:{target:i,usagesPerScope:o,functionErrorsPerScope:a,exposedVariableDeclarations:s}}=R4(e,t);return un.assert(!a[n].length,"The extraction went missing? How?"),t.cancellationToken.throwIfCancellationRequested(),function(e,t,{usages:n,typeParameterUsages:r,substitutions:i},o,a,s){const c=s.program.getTypeChecker(),_=hk(s.program.getCompilerOptions()),u=f7.createImportAdder(s.file,s.program,s.preferences,s.host),d=t.getSourceFile(),p=$Y(__(t)?"newMethod":"newFunction",d),f=Fm(t),m=XC.createIdentifier(p);let g;const h=[],y=[];let v;n.forEach(((e,n)=>{let r;if(!f){let n=c.getTypeOfSymbolAtLocation(e.symbol,e.node);n=c.getBaseTypeOfLiteralType(n),r=f7.typeToAutoImportableTypeNode(c,u,n,t,_,1,8)}const i=XC.createParameterDeclaration(void 0,void 0,n,void 0,r);h.push(i),2===e.usage&&(v||(v=[])).push(e),y.push(XC.createIdentifier(n))}));const x=Oe(r.values(),(e=>({type:e,declaration:M4(e,s.startPosition)})));x.sort(B4);const k=0===x.length?void 0:B(x,(({declaration:e})=>e)),S=void 0!==k?k.map((e=>XC.createTypeReferenceNode(e.name,void 0))):void 0;if(U_(e)&&!f){const n=c.getContextualType(e);g=c.typeToTypeNode(n,t,1,8)}const{body:T,returnValueProperty:C}=function(e,t,n,r,i){const o=void 0!==n||t.length>0;if(CF(e)&&!o&&0===r.size)return{body:XC.createBlock(e.statements,!0),returnValueProperty:void 0};let a,s=!1;const c=XC.createNodeArray(CF(e)?e.statements.slice(0):[du(e)?e:XC.createReturnStatement(oh(e))]);if(o||r.size){const l=HB(c,(function e(i){if(!s&&RF(i)&&o){const r=J4(t,n);return i.expression&&(a||(a="__return"),r.unshift(XC.createPropertyAssignment(a,$B(i.expression,e,U_)))),1===r.length?XC.createReturnStatement(r[0].name):XC.createReturnStatement(XC.createObjectLiteralExpression(r))}{const t=s;s=s||i_(i)||__(i);const n=r.get(jB(i).toString()),o=n?LY(n):nJ(i,e,void 0);return s=t,o}}),du).slice();if(o&&!i&&du(e)){const e=J4(t,n);1===e.length?l.push(XC.createReturnStatement(e[0].name)):l.push(XC.createReturnStatement(XC.createObjectLiteralExpression(e)))}return{body:XC.createBlock(l,!0),returnValueProperty:a}}return{body:XC.createBlock(c,!0),returnValueProperty:void 0}}(e,o,v,i,!!(1&a.facts));let w;JY(T);const N=!!(16&a.facts);if(__(t)){const e=f?[]:[XC.createModifier(123)];32&a.facts&&e.push(XC.createModifier(126)),4&a.facts&&e.push(XC.createModifier(134)),w=XC.createMethodDeclaration(e.length?e:void 0,2&a.facts?XC.createToken(42):void 0,m,void 0,k,h,g,T)}else N&&h.unshift(XC.createParameterDeclaration(void 0,void 0,"this",void 0,c.typeToTypeNode(c.getTypeAtLocation(a.thisNode),t,1,8),void 0)),w=XC.createFunctionDeclaration(4&a.facts?[XC.createToken(134)]:void 0,2&a.facts?XC.createToken(42):void 0,m,k,h,g,T);const D=Tue.ChangeTracker.fromContext(s),F=function(e,t){return b(function(e){if(i_(e)){const t=e.body;if(CF(t))return t.statements}else{if(YF(e)||qE(e))return e.statements;if(__(e))return e.members}return l}(t),(t=>t.pos>=e&&i_(t)&&!dD(t)))}((z4(a.range)?ve(a.range):a.range).end,t);F?D.insertNodeBefore(s.file,F,w,!0):D.insertNodeAtEndOfScope(s.file,t,w),u.writeFixes(D);const E=[],P=function(e,t,n){const r=XC.createIdentifier(n);if(__(e)){const n=32&t.facts?XC.createIdentifier(e.name.text):XC.createThis();return XC.createPropertyAccessExpression(n,r)}return r}(t,a,p);N&&y.unshift(XC.createIdentifier("this"));let A=XC.createCallExpression(N?XC.createPropertyAccessExpression(P,"call"):P,S,y);if(2&a.facts&&(A=XC.createYieldExpression(XC.createToken(42),A)),4&a.facts&&(A=XC.createAwaitExpression(A)),U4(e)&&(A=XC.createJsxExpression(void 0,A)),o.length&&!v)if(un.assert(!C,"Expected no returnValueProperty"),un.assert(!(1&a.facts),"Expected RangeFacts.HasReturn flag to be unset"),1===o.length){const e=o[0];E.push(XC.createVariableStatement(void 0,XC.createVariableDeclarationList([XC.createVariableDeclaration(LY(e.name),void 0,LY(e.type),A)],e.parent.flags)))}else{const e=[],n=[];let r=o[0].parent.flags,i=!1;for(const a of o){e.push(XC.createBindingElement(void 0,void 0,LY(a.name)));const o=c.typeToTypeNode(c.getBaseTypeOfLiteralType(c.getTypeAtLocation(a)),t,1,8);n.push(XC.createPropertySignature(void 0,a.symbol.name,void 0,o)),i=i||void 0!==a.type,r&=a.parent.flags}const a=i?XC.createTypeLiteralNode(n):void 0;a&&nw(a,1),E.push(XC.createVariableStatement(void 0,XC.createVariableDeclarationList([XC.createVariableDeclaration(XC.createObjectBindingPattern(e),void 0,a,A)],r)))}else if(o.length||v){if(o.length)for(const e of o){let t=e.parent.flags;2&t&&(t=-3&t|1),E.push(XC.createVariableStatement(void 0,XC.createVariableDeclarationList([XC.createVariableDeclaration(e.symbol.name,void 0,L(e.type))],t)))}C&&E.push(XC.createVariableStatement(void 0,XC.createVariableDeclarationList([XC.createVariableDeclaration(C,void 0,L(g))],1)));const e=J4(o,v);C&&e.unshift(XC.createShorthandPropertyAssignment(C)),1===e.length?(un.assert(!C,"Shouldn't have returnValueProperty here"),E.push(XC.createExpressionStatement(XC.createAssignment(e[0].name,A))),1&a.facts&&E.push(XC.createReturnStatement())):(E.push(XC.createExpressionStatement(XC.createAssignment(XC.createObjectLiteralExpression(e),A))),C&&E.push(XC.createReturnStatement(XC.createIdentifier(C))))}else 1&a.facts?E.push(XC.createReturnStatement(A)):z4(a.range)?E.push(XC.createExpressionStatement(A)):E.push(A);z4(a.range)?D.replaceNodeRangeWithNodes(s.file,ge(a.range),ve(a.range),E):D.replaceNodeWithNodes(s.file,a.range,E);const I=D.getChanges(),O=(z4(a.range)?ge(a.range):a.range).getSourceFile().fileName;return{renameFilename:O,renameLocation:HY(I,O,p,!1),edits:I};function L(e){if(void 0===e)return;const t=LY(e);let n=t;for(;ID(n);)n=n.type;return FD(n)&&b(n.types,(e=>157===e.kind))?t:XC.createUnionTypeNode([t,XC.createKeywordTypeNode(157)])}}(i,r[n],o[n],s,e,t)}(n,e,t)}const i=/^constant_scope_(\d+)$/.exec(t);if(i){const t=+i[1];return un.assert(isFinite(t),"Expected to parse a finite number from the constant scope index"),function(e,t,n){const{scopes:r,readsAndWrites:{target:i,usagesPerScope:o,constantErrorsPerScope:a,exposedVariableDeclarations:s}}=R4(e,t);return un.assert(!a[n].length,"The extraction went missing? How?"),un.assert(0===s.length,"Extract constant accepted a range containing a variable declaration?"),t.cancellationToken.throwIfCancellationRequested(),function(e,t,{substitutions:n},r,i){const o=i.program.getTypeChecker(),a=t.getSourceFile(),s=t3(e,t,o,a),c=Fm(t);let l=c||!o.isContextSensitive(e)?void 0:o.typeToTypeNode(o.getContextualType(e),t,1,8),_=function(e,t){return t.size?function e(n){const r=t.get(jB(n).toString());return r?LY(r):nJ(n,e,void 0)}(e):e}(oh(e),n);({variableType:l,initializer:_}=function(n,r){if(void 0===n)return{variableType:n,initializer:r};if(!eF(r)&&!tF(r)||r.typeParameters)return{variableType:n,initializer:r};const i=o.getTypeAtLocation(e),a=be(o.getSignaturesOfType(i,0));if(!a)return{variableType:n,initializer:r};if(a.getTypeParameters())return{variableType:n,initializer:r};const s=[];let c=!1;for(const e of r.parameters)if(e.type)s.push(e);else{const n=o.getTypeAtLocation(e);n===o.getAnyType()&&(c=!0),s.push(XC.updateParameterDeclaration(e,e.modifiers,e.dotDotDotToken,e.name,e.questionToken,e.type||o.typeToTypeNode(n,t,1,8),e.initializer))}if(c)return{variableType:n,initializer:r};if(n=void 0,tF(r))r=XC.updateArrowFunction(r,rI(e)?Nc(e):void 0,r.typeParameters,s,r.type||o.typeToTypeNode(a.getReturnType(),t,1,8),r.equalsGreaterThanToken,r.body);else{if(a&&a.thisParameter){const n=fe(s);if(!n||zN(n.name)&&"this"!==n.name.escapedText){const n=o.getTypeOfSymbolAtLocation(a.thisParameter,e);s.splice(0,0,XC.createParameterDeclaration(void 0,void 0,"this",void 0,o.typeToTypeNode(n,t,1,8)))}}r=XC.updateFunctionExpression(r,rI(e)?Nc(e):void 0,r.asteriskToken,r.name,r.typeParameters,s,r.type||o.typeToTypeNode(a.getReturnType(),t,1),r.body)}return{variableType:n,initializer:r}}(l,_)),JY(_);const u=Tue.ChangeTracker.fromContext(i);if(__(t)){un.assert(!c,"Cannot extract to a JS class");const n=[];n.push(XC.createModifier(123)),32&r&&n.push(XC.createModifier(126)),n.push(XC.createModifier(148));const o=XC.createPropertyDeclaration(n,s,void 0,l,_);let a=XC.createPropertyAccessExpression(32&r?XC.createIdentifier(t.name.getText()):XC.createThis(),XC.createIdentifier(s));U4(e)&&(a=XC.createJsxExpression(void 0,a));const d=function(e,t){const n=t.members;let r;un.assert(n.length>0,"Found no members");let i=!0;for(const t of n){if(t.pos>e)return r||n[0];if(i&&!cD(t)){if(void 0!==r)return t;i=!1}r=t}return void 0===r?un.fail():r}(e.pos,t);u.insertNodeBefore(i.file,d,o,!0),u.replaceNode(i.file,e,a)}else{const n=XC.createVariableDeclaration(s,void 0,l,_),r=function(e,t){let n;for(;void 0!==e&&e!==t;){if(VF(e)&&e.initializer===n&&WF(e.parent)&&e.parent.declarations.length>1)return e;n=e,e=e.parent}}(e,t);if(r){u.insertNodeBefore(i.file,r,n);const t=XC.createIdentifier(s);u.replaceNode(i.file,e,t)}else if(244===e.parent.kind&&t===_c(e,j4)){const t=XC.createVariableStatement(void 0,XC.createVariableDeclarationList([n],2));u.replaceNode(i.file,e.parent,t)}else{const r=XC.createVariableStatement(void 0,XC.createVariableDeclarationList([n],2)),o=function(e,t){let n;un.assert(!__(t));for(let r=e;r!==t;r=r.parent)j4(r)&&(n=r);for(let r=(n||e).parent;;r=r.parent){if(GZ(r)){let t;for(const n of r.statements){if(n.pos>e.pos)break;t=n}return!t&&OE(r)?(un.assert(BF(r.parent.parent),"Grandparent isn't a switch statement"),r.parent.parent):un.checkDefined(t,"prevStatement failed to get set")}un.assert(r!==t,"Didn't encounter a block-like before encountering scope")}}(e,t);if(0===o.pos?u.insertNodeAtTopOfFile(i.file,r,!1):u.insertNodeBefore(i.file,o,r,!1),244===e.parent.kind)u.delete(i.file,e.parent);else{let t=XC.createIdentifier(s);U4(e)&&(t=XC.createJsxExpression(void 0,t)),u.replaceNode(i.file,e,t)}}}const d=u.getChanges(),p=e.getSourceFile().fileName;return{renameFilename:p,renameLocation:HY(d,p,s,!0),edits:d}}(U_(i)?i:i.statements[0].expression,r[n],o[n],e.facts,t)}(n,e,t)}un.fail("Unrecognized action name")}$2(D4,{kinds:[F4.kind,E4.kind],getEditsForAction:A4,getAvailableActions:P4}),(e=>{function t(e){return{message:e,code:0,category:3,key:e}}e.cannotExtractRange=t("Cannot extract range."),e.cannotExtractImport=t("Cannot extract import statement."),e.cannotExtractSuper=t("Cannot extract super call."),e.cannotExtractJSDoc=t("Cannot extract JSDoc."),e.cannotExtractEmpty=t("Cannot extract empty range."),e.expressionExpected=t("expression expected."),e.uselessConstantType=t("No reason to extract constant of type."),e.statementOrExpressionExpected=t("Statement or expression expected."),e.cannotExtractRangeContainingConditionalBreakOrContinueStatements=t("Cannot extract range containing conditional break or continue statements."),e.cannotExtractRangeContainingConditionalReturnStatement=t("Cannot extract range containing conditional return statement."),e.cannotExtractRangeContainingLabeledBreakOrContinueStatementWithTargetOutsideOfTheRange=t("Cannot extract range containing labeled break or continue with target outside of the range."),e.cannotExtractRangeThatContainsWritesToReferencesLocatedOutsideOfTheTargetRangeInGenerators=t("Cannot extract range containing writes to references located outside of the target range in generators."),e.typeWillNotBeVisibleInTheNewScope=t("Type will not visible in the new scope."),e.functionWillNotBeVisibleInTheNewScope=t("Function will not visible in the new scope."),e.cannotExtractIdentifier=t("Select more than a single identifier."),e.cannotExtractExportedEntity=t("Cannot extract exported declaration"),e.cannotWriteInExpression=t("Cannot write back side-effects when extracting an expression"),e.cannotExtractReadonlyPropertyInitializerOutsideConstructor=t("Cannot move initialization of read-only class property outside of the constructor"),e.cannotExtractAmbientBlock=t("Cannot extract code from ambient contexts"),e.cannotAccessVariablesFromNestedScopes=t("Cannot access variables from nested scopes"),e.cannotExtractToJSClass=t("Cannot extract constant to a class scope in JS"),e.cannotExtractToExpressionArrowFunction=t("Cannot extract constant to an arrow function without a block"),e.cannotExtractFunctionsContainingThisToMethod=t("Cannot extract functions containing this to method")})(N4||(N4={}));var I4=(e=>(e[e.None=0]="None",e[e.HasReturn=1]="HasReturn",e[e.IsGenerator=2]="IsGenerator",e[e.IsAsyncFunction=4]="IsAsyncFunction",e[e.UsesThis=8]="UsesThis",e[e.UsesThisInFunction=16]="UsesThisInFunction",e[e.InStaticRegion=32]="InStaticRegion",e))(I4||{});function O4(e,t,n=!0){const{length:r}=t;if(0===r&&!n)return{errors:[Kx(e,t.start,r,N4.cannotExtractEmpty)]};const i=0===r&&n,o=IX(e,t.start),a=OX(e,Ds(t)),s=o&&a&&n?function(e,t,n){const r=e.getStart(n);let i=t.getEnd();return 59===n.text.charCodeAt(i)&&i++,{start:r,length:i-r}}(o,a,e):t,c=i?function(e){return _c(e,(e=>e.parent&&q4(e)&&!cF(e.parent)))}(o):$Q(o,e,s),l=i?c:$Q(a,e,s);let _,u=0;if(!c||!l)return{errors:[Kx(e,t.start,r,N4.cannotExtractRange)]};if(16777216&c.flags)return{errors:[Kx(e,t.start,r,N4.cannotExtractJSDoc)]};if(c.parent!==l.parent)return{errors:[Kx(e,t.start,r,N4.cannotExtractRange)]};if(c!==l){if(!GZ(c.parent))return{errors:[Kx(e,t.start,r,N4.cannotExtractRange)]};const n=[];for(const e of c.parent.statements){if(e===c||n.length){const t=f(e);if(t)return{errors:t};n.push(e)}if(e===l)break}return n.length?{targetRange:{range:n,facts:u,thisNode:_}}:{errors:[Kx(e,t.start,r,N4.cannotExtractRange)]}}if(RF(c)&&!c.expression)return{errors:[Kx(e,t.start,r,N4.cannotExtractRange)]};const d=function(e){if(RF(e)){if(e.expression)return e.expression}else if(wF(e)||WF(e)){const t=wF(e)?e.declarationList.declarations:e.declarations;let n,r=0;for(const e of t)e.initializer&&(r++,n=e.initializer);if(1===r)return n}else if(VF(e)&&e.initializer)return e.initializer;return e}(c),p=function(e){if(zN(DF(e)?e.expression:e))return[jp(e,N4.cannotExtractIdentifier)]}(d)||f(d);return p?{errors:p}:{targetRange:{range:L4(d),facts:u,thisNode:_}};function f(e){let n;var r;if((r=n||(n={}))[r.None=0]="None",r[r.Break=1]="Break",r[r.Continue=2]="Continue",r[r.Return=4]="Return",un.assert(e.pos<=e.end,"This failure could trigger https://github.com/Microsoft/TypeScript/issues/20809 (1)"),un.assert(!KS(e.pos),"This failure could trigger https://github.com/Microsoft/TypeScript/issues/20809 (2)"),!(du(e)||vm(e)&&q4(e)||V4(e)))return[jp(e,N4.statementOrExpressionExpected)];if(33554432&e.flags)return[jp(e,N4.cannotExtractAmbientBlock)];const i=Gf(e);let o;i&&function(e,t){let n=e;for(;n!==t;){if(172===n.kind){Nv(n)&&(u|=32);break}if(169===n.kind){176===Hf(n).kind&&(u|=32);break}174===n.kind&&Nv(n)&&(u|=32),n=n.parent}}(e,i);let a,s=4;if(function e(n){if(o)return!0;if(lu(n)&&wv(260===n.kind?n.parent.parent:n,32))return(o||(o=[])).push(jp(n,N4.cannotExtractExportedEntity)),!0;switch(n.kind){case 272:return(o||(o=[])).push(jp(n,N4.cannotExtractImport)),!0;case 277:return(o||(o=[])).push(jp(n,N4.cannotExtractExportedEntity)),!0;case 108:if(213===n.parent.kind){const e=Gf(n);if(void 0===e||e.pos=t.start+t.length)return(o||(o=[])).push(jp(n,N4.cannotExtractSuper)),!0}else u|=8,_=n;break;case 219:PI(n,(function e(t){if(rX(t))u|=8,_=n;else{if(__(t)||n_(t)&&!tF(t))return!1;PI(t,e)}}));case 263:case 262:qE(n.parent)&&void 0===n.parent.externalModuleIndicator&&(o||(o=[])).push(jp(n,N4.functionWillNotBeVisibleInTheNewScope));case 231:case 218:case 174:case 176:case 177:case 178:return!1}const r=s;switch(n.kind){case 245:s&=-5;break;case 258:s=0;break;case 241:n.parent&&258===n.parent.kind&&n.parent.finallyBlock===n&&(s=4);break;case 297:case 296:s|=1;break;default:W_(n,!1)&&(s|=3)}switch(n.kind){case 197:case 110:u|=8,_=n;break;case 256:{const t=n.label;(a||(a=[])).push(t.escapedText),PI(n,e),a.pop();break}case 252:case 251:{const e=n.label;e?T(a,e.escapedText)||(o||(o=[])).push(jp(n,N4.cannotExtractRangeContainingLabeledBreakOrContinueStatementWithTargetOutsideOfTheRange)):s&(252===n.kind?1:2)||(o||(o=[])).push(jp(n,N4.cannotExtractRangeContainingConditionalBreakOrContinueStatements));break}case 223:u|=4;break;case 229:u|=2;break;case 253:4&s?u|=1:(o||(o=[])).push(jp(n,N4.cannotExtractRangeContainingConditionalReturnStatement));break;default:PI(n,e)}s=r}(e),8&u){const t=Zf(e,!1,!1);(262===t.kind||174===t.kind&&210===t.parent.kind||218===t.kind)&&(u|=16)}return o}}function L4(e){return du(e)?[e]:vm(e)?DF(e.parent)?[e.parent]:e:V4(e)?e:void 0}function j4(e){return tF(e)?Y_(e.body):i_(e)||qE(e)||YF(e)||__(e)}function R4(e,t){const{file:n}=t,r=function(e){let t=z4(e.range)?ge(e.range):e.range;if(8&e.facts&&!(16&e.facts)){const e=Gf(t);if(e){const n=_c(t,i_);return n?[n,e]:[e]}}const n=[];for(;;)if(t=t.parent,169===t.kind&&(t=_c(t,(e=>i_(e))).parent),j4(t)&&(n.push(t),307===t.kind))return n}(e),i=function(e,t){return z4(e.range)?{pos:ge(e.range).getStart(t),end:ve(e.range).getEnd()}:e.range}(e,n),o=function(e,t,n,r,i,o){const a=new Map,s=[],c=[],l=[],_=[],u=[],d=new Map,p=[];let f;const m=z4(e.range)?1===e.range.length&&DF(e.range[0])?e.range[0].expression:void 0:e.range;let g;if(void 0===m){const t=e.range,n=ge(t).getStart(),i=ve(t).end;g=Kx(r,n,i-n,N4.expressionExpected)}else 147456&i.getTypeAtLocation(m).flags&&(g=jp(m,N4.uselessConstantType));for(const e of t){s.push({usages:new Map,typeParameterUsages:new Map,substitutions:new Map}),c.push(new Map),l.push([]);const t=[];g&&t.push(g),__(e)&&Fm(e)&&t.push(jp(e,N4.cannotExtractToJSClass)),tF(e)&&!CF(e.body)&&t.push(jp(e,N4.cannotExtractToExpressionArrowFunction)),_.push(t)}const h=new Map,y=z4(e.range)?XC.createBlock(e.range):e.range,v=z4(e.range)?ge(e.range):e.range,x=!!_c(v,(e=>vp(e)&&0!==ll(e).length));if(function o(a,d=1){x&&k(i.getTypeAtLocation(a));if(lu(a)&&a.symbol&&u.push(a),nb(a))o(a.left,2),o(a.right);else if(z_(a))o(a.operand,2);else if(HD(a)||KD(a))PI(a,o);else if(zN(a)){if(!a.parent)return;if(nD(a.parent)&&a!==a.parent.left)return;if(HD(a.parent)&&a!==a.parent.expression)return;!function(o,a,u){const d=function(o,a,u){const d=S(o);if(!d)return;const p=RB(d).toString(),f=h.get(p);if(f&&f>=a)return p;if(h.set(p,a),f){for(const e of s)e.usages.get(o.text)&&e.usages.set(o.text,{usage:a,symbol:d,node:o});return p}const m=d.getDeclarations(),g=m&&b(m,(e=>e.getSourceFile()===r));if(g&&!lX(n,g.getStart(),g.end)){if(2&e.facts&&2===a){const e=jp(o,N4.cannotExtractRangeThatContainsWritesToReferencesLocatedOutsideOfTheTargetRangeInGenerators);for(const t of l)t.push(e);for(const t of _)t.push(e)}for(let e=0;e0){const e=new Map;let n=0;for(let r=v;void 0!==r&&n{s[n].typeParameterUsages.set(t,e)})),n++),vp(r))for(const t of ll(r)){const n=i.getTypeAtLocation(t);a.has(n.id.toString())&&e.set(n.id.toString(),n)}un.assert(n===t.length,"Should have iterated all scopes")}u.length&&PI(yp(t[0],t[0].parent)?t[0]:Dp(t[0]),(function t(n){if(n===e.range||z4(e.range)&&e.range.includes(n))return;const r=zN(n)?S(n):i.getSymbolAtLocation(n);if(r){const e=b(u,(e=>e.symbol===r));if(e)if(VF(e)){const t=e.symbol.id.toString();d.has(t)||(p.push(e),d.set(t,!0))}else f=f||e}PI(n,t)}));for(let n=0;n0&&(r.usages.size>0||r.typeParameterUsages.size>0)){const t=z4(e.range)?e.range[0]:e.range;_[n].push(jp(t,N4.cannotAccessVariablesFromNestedScopes))}16&e.facts&&__(t[n])&&l[n].push(jp(e.thisNode,N4.cannotExtractFunctionsContainingThisToMethod));let i,o=!1;if(s[n].usages.forEach((e=>{2===e.usage&&(o=!0,106500&e.symbol.flags&&e.symbol.valueDeclaration&&Cv(e.symbol.valueDeclaration,8)&&(i=e.symbol.valueDeclaration))})),un.assert(z4(e.range)||0===p.length,"No variable declarations expected if something was extracted"),o&&!z4(e.range)){const t=jp(e.range,N4.cannotWriteInExpression);l[n].push(t),_[n].push(t)}else if(i&&n>0){const e=jp(i,N4.cannotExtractReadonlyPropertyInitializerOutsideConstructor);l[n].push(e),_[n].push(e)}else if(f){const e=jp(f,N4.cannotExtractExportedEntity);l[n].push(e),_[n].push(e)}}return{target:y,usagesPerScope:s,functionErrorsPerScope:l,constantErrorsPerScope:_,exposedVariableDeclarations:p};function k(e){const t=i.getSymbolWalker((()=>(o.throwIfCancellationRequested(),!0))),{visitedTypes:n}=t.walkType(e);for(const e of n)e.isTypeParameter()&&a.set(e.id.toString(),e)}function S(e){return e.parent&&BE(e.parent)&&e.parent.name===e?i.getShorthandAssignmentValueSymbol(e.parent):i.getSymbolAtLocation(e)}function T(e,t,n){if(!e)return;const r=e.getDeclarations();if(r&&r.some((e=>e.parent===t)))return XC.createIdentifier(e.name);const i=T(e.parent,t,n);return void 0!==i?n?XC.createQualifiedName(i,XC.createIdentifier(e.name)):XC.createPropertyAccessExpression(i,e.name):void 0}}(e,r,i,n,t.program.getTypeChecker(),t.cancellationToken);return{scopes:r,affectedTextRange:i,readsAndWrites:o}}function M4(e,t){let n;const r=e.symbol;if(r&&r.declarations)for(const e of r.declarations)(void 0===n||e.posXC.createShorthandPropertyAssignment(e.symbol.name))),r=E(t,(e=>XC.createShorthandPropertyAssignment(e.symbol.name)));return void 0===n?r:void 0===r?n:n.concat(r)}function z4(e){return Qe(e)}function q4(e){const{parent:t}=e;if(306===t.kind)return!1;switch(e.kind){case 11:return 272!==t.kind&&276!==t.kind;case 230:case 206:case 208:return!1;case 80:return 208!==t.kind&&276!==t.kind&&281!==t.kind}return!0}function U4(e){return V4(e)||(kE(e)||SE(e)||wE(e))&&(kE(e.parent)||wE(e.parent))}function V4(e){return TN(e)&&e.parent&&FE(e.parent)}var W4={},$4="Generate 'get' and 'set' accessors",H4=Ux(la.Generate_get_and_set_accessors),K4={name:$4,description:H4,kind:"refactor.rewrite.property.generateAccessors"};$2($4,{kinds:[K4.kind],getEditsForAction:function(e,t){if(!e.endPosition)return;const n=f7.getAccessorConvertiblePropertyAtPosition(e.file,e.program,e.startPosition,e.endPosition);un.assert(n&&!Z6(n),"Expected applicable refactor info");const r=f7.generateAccessorFromProperty(e.file,e.program,e.startPosition,e.endPosition,e,t);if(!r)return;const i=e.file.fileName,o=n.renameAccessor?n.accessorName:n.fieldName;return{renameFilename:i,renameLocation:(zN(o)?0:-1)+HY(r,i,o.text,oD(n.declaration)),edits:r}},getAvailableActions(e){if(!e.endPosition)return l;const t=f7.getAccessorConvertiblePropertyAtPosition(e.file,e.program,e.startPosition,e.endPosition,"invoked"===e.triggerReason);return t?Z6(t)?e.preferences.provideRefactorNotApplicableReason?[{name:$4,description:H4,actions:[{...K4,notApplicableReason:t.error}]}]:l:[{name:$4,description:H4,actions:[K4]}]:l}});var G4={},X4="Infer function return type",Q4=Ux(la.Infer_function_return_type),Y4={name:X4,description:Q4,kind:"refactor.rewrite.function.returnType"};function Z4(e){if(Fm(e.file)||!e3(Y4.kind,e.kind))return;const t=_c(FX(e.file,e.startPosition),(e=>CF(e)||e.parent&&tF(e.parent)&&(39===e.kind||e.parent.body===e)?"quit":function(e){switch(e.kind){case 262:case 218:case 219:case 174:return!0;default:return!1}}(e)));if(!t||!t.body||t.type)return{error:Ux(la.Return_type_must_be_inferred_from_a_function)};const n=e.program.getTypeChecker();let r;if(n.isImplementationOfOverload(t)){const e=n.getTypeAtLocation(t).getCallSignatures();e.length>1&&(r=n.getUnionType(B(e,(e=>e.getReturnType()))))}if(!r){const e=n.getSignatureFromDeclaration(t);if(e){const i=n.getTypePredicateOfSignature(e);if(i&&i.type){const e=n.typePredicateToTypePredicateNode(i,t,1,8);if(e)return{declaration:t,returnTypeNode:e}}else r=n.getReturnTypeOfSignature(e)}}if(!r)return{error:Ux(la.Could_not_determine_function_return_type)};const i=n.typeToTypeNode(r,t,1,8);return i?{declaration:t,returnTypeNode:i}:void 0}$2(X4,{kinds:[Y4.kind],getEditsForAction:function(e){const t=Z4(e);if(t&&!Z6(t))return{renameFilename:void 0,renameLocation:void 0,edits:Tue.ChangeTracker.with(e,(n=>function(e,t,n,r){const i=yX(n,22,e),o=tF(n)&&void 0===i,a=o?ge(n.parameters):i;a&&(o&&(t.insertNodeBefore(e,a,XC.createToken(21)),t.insertNodeAfter(e,a,XC.createToken(22))),t.insertNodeAt(e,a.end,r,{prefix:": "}))}(e.file,n,t.declaration,t.returnTypeNode)))}},getAvailableActions:function(e){const t=Z4(e);return t?Z6(t)?e.preferences.provideRefactorNotApplicableReason?[{name:X4,description:Q4,actions:[{...Y4,notApplicableReason:t.error}]}]:l:[{name:X4,description:Q4,actions:[Y4]}]:l}});var e8=(e=>(e[e.typeOffset=8]="typeOffset",e[e.modifierMask=255]="modifierMask",e))(e8||{}),t8=(e=>(e[e.class=0]="class",e[e.enum=1]="enum",e[e.interface=2]="interface",e[e.namespace=3]="namespace",e[e.typeParameter=4]="typeParameter",e[e.type=5]="type",e[e.parameter=6]="parameter",e[e.variable=7]="variable",e[e.enumMember=8]="enumMember",e[e.property=9]="property",e[e.function=10]="function",e[e.member=11]="member",e))(t8||{}),n8=(e=>(e[e.declaration=0]="declaration",e[e.static=1]="static",e[e.async=2]="async",e[e.readonly=3]="readonly",e[e.defaultLibrary=4]="defaultLibrary",e[e.local=5]="local",e))(n8||{});function r8(e,t,n,r){const i=i8(e,t,n,r);un.assert(i.spans.length%3==0);const o=i.spans,a=[];for(let e=0;ee(r)||r.isUnion()&&r.types.some(e);if(6!==n&&e((e=>e.getConstructSignatures().length>0)))return 0;if(e((e=>e.getCallSignatures().length>0))&&!e((e=>e.getProperties().length>0))||function(e){for(;s8(e);)e=e.parent;return GD(e.parent)&&e.parent.expression===e}(t))return 9===n?11:10}}return n}(o,c,i);const s=n.valueDeclaration;if(s){const r=rc(s),o=oc(s);256&r&&(a|=2),1024&r&&(a|=4),0!==i&&2!==i&&(8&r||2&o||8&n.getFlags())&&(a|=8),7!==i&&10!==i||!function(e,t){return VD(e)&&(e=a8(e)),VF(e)?(!qE(e.parent.parent.parent)||RE(e.parent))&&e.getSourceFile()===t:!!$F(e)&&(!qE(e.parent)&&e.getSourceFile()===t)}(s,t)||(a|=32),e.isSourceFileDefaultLibrary(s.getSourceFile())&&(a|=16)}else n.declarations&&n.declarations.some((t=>e.isSourceFileDefaultLibrary(t.getSourceFile())))&&(a|=16);r(c,i,a)}}}PI(c,s),a=l}(t)}(e,t,n,((e,n,r)=>{i.push(e.getStart(t),e.getWidth(t),(n+1<<8)+r)}),r),i}function a8(e){for(;;){if(!VD(e.parent.parent))return e.parent.parent;e=e.parent.parent}}function s8(e){return nD(e.parent)&&e.parent.right===e||HD(e.parent)&&e.parent.name===e}var c8=new Map([[260,7],[169,6],[172,9],[267,3],[266,1],[306,8],[263,0],[174,11],[262,10],[218,10],[173,11],[177,9],[178,9],[171,9],[264,2],[265,5],[168,4],[303,9],[304,9]]),l8="0.8";function _8(e,t,n,r){const i=Nl(e)?new u8(e,t,n):80===e?new g8(80,t,n):81===e?new h8(81,t,n):new m8(e,t,n);return i.parent=r,i.flags=101441536&r.flags,i}var u8=class{constructor(e,t,n){this.pos=t,this.end=n,this.kind=e,this.id=0,this.flags=0,this.modifierFlagsCache=0,this.transformFlags=0,this.parent=void 0,this.original=void 0,this.emitNode=void 0}assertHasRealPosition(e){un.assert(!KS(this.pos)&&!KS(this.end),e||"Node must have a real position for this operation")}getSourceFile(){return hd(this)}getStart(e,t){return this.assertHasRealPosition(),Bd(this,e,t)}getFullStart(){return this.assertHasRealPosition(),this.pos}getEnd(){return this.assertHasRealPosition(),this.end}getWidth(e){return this.assertHasRealPosition(),this.getEnd()-this.getStart(e)}getFullWidth(){return this.assertHasRealPosition(),this.end-this.pos}getLeadingTriviaWidth(e){return this.assertHasRealPosition(),this.getStart(e)-this.pos}getFullText(e){return this.assertHasRealPosition(),(e||this.getSourceFile()).text.substring(this.pos,this.end)}getText(e){return this.assertHasRealPosition(),e||(e=this.getSourceFile()),e.text.substring(this.getStart(e),this.getEnd())}getChildCount(e){return this.getChildren(e).length}getChildAt(e,t){return this.getChildren(t)[e]}getChildren(e=hd(this)){return this.assertHasRealPosition("Node without a real position cannot be scanned and thus has no token nodes - use forEachChild and collect the result if that's fine"),LP(this,e)??jP(this,e,function(e,t){const n=[];if(Su(e))return e.forEachChild((e=>{n.push(e)})),n;wG.setText((t||e.getSourceFile()).text);let r=e.pos;const i=t=>{d8(n,r,t.pos,e),n.push(t),r=t.end};return d(e.jsDoc,i),r=e.pos,e.forEachChild(i,(t=>{d8(n,r,t.pos,e),n.push(function(e,t){const n=_8(352,e.pos,e.end,t),r=[];let i=e.pos;for(const n of e)d8(r,i,n.pos,t),r.push(n),i=n.end;return d8(r,i,e.end,t),n._children=r,n}(t,e)),r=t.end})),d8(n,r,e.end,e),wG.setText(void 0),n}(this,e))}getFirstToken(e){this.assertHasRealPosition();const t=this.getChildren(e);if(!t.length)return;const n=b(t,(e=>e.kind<309||e.kind>351));return n.kind<166?n:n.getFirstToken(e)}getLastToken(e){this.assertHasRealPosition();const t=ye(this.getChildren(e));if(t)return t.kind<166?t:t.getLastToken(e)}forEachChild(e,t){return PI(this,e,t)}};function d8(e,t,n,r){for(wG.resetTokenState(t);t"inheritDoc"===e.tagName.text||"inheritdoc"===e.tagName.text))}function x8(e,t){if(!e)return l;let n=fle.getJsDocTagsFromDeclarations(e,t);if(t&&(0===n.length||e.some(b8))){const r=new Set;for(const i of e){const e=S8(t,i,(e=>{var n;if(!r.has(e))return r.add(e),177===i.kind||178===i.kind?e.getContextualJsDocTags(i,t):1===(null==(n=e.declarations)?void 0:n.length)?e.getJsDocTags(t):void 0}));e&&(n=[...e,...n])}}return n}function k8(e,t){if(!e)return l;let n=fle.getJsDocCommentsFromDeclarations(e,t);if(t&&(0===n.length||e.some(b8))){const r=new Set;for(const i of e){const e=S8(t,i,(e=>{if(!r.has(e))return r.add(e),177===i.kind||178===i.kind?e.getContextualDocumentationComment(i,t):e.getDocumentationComment(t)}));e&&(n=0===n.length?e.slice():e.concat(SY(),n))}}return n}function S8(e,t,n){var r;const i=176===(null==(r=t.parent)?void 0:r.kind)?t.parent.parent:t.parent;if(!i)return;const o=Dv(t);return f(bh(i),(r=>{const i=e.getTypeAtLocation(r),a=o&&i.symbol?e.getTypeOfSymbol(i.symbol):i,s=e.getPropertyOfType(a,t.symbol.name);return s?n(s):void 0}))}var T8=class extends u8{constructor(e,t,n){super(e,t,n)}update(e,t){return BI(this,e,t)}getLineAndCharacterOfPosition(e){return Ja(this,e)}getLineStarts(){return ja(this)}getPositionOfLineAndCharacter(e,t,n){return La(ja(this),e,t,this.text,n)}getLineEndOfPosition(e){const{line:t}=this.getLineAndCharacterOfPosition(e),n=this.getLineStarts();let r;t+1>=n.length&&(r=this.getEnd()),r||(r=n[t+1]-1);const i=this.getFullText();return"\n"===i[r]&&"\r"===i[r-1]?r-1:r}getNamedDeclarations(){return this.namedDeclarations||(this.namedDeclarations=this.computeNamedDeclarations()),this.namedDeclarations}computeNamedDeclarations(){const e=$e();return this.forEachChild((function r(i){switch(i.kind){case 262:case 218:case 174:case 173:const o=i,a=n(o);if(a){const t=function(t){let n=e.get(t);return n||e.set(t,n=[]),n}(a),n=ye(t);n&&o.parent===n.parent&&o.symbol===n.symbol?o.body&&!n.body&&(t[t.length-1]=o):t.push(o)}PI(i,r);break;case 263:case 231:case 264:case 265:case 266:case 267:case 271:case 281:case 276:case 273:case 274:case 177:case 178:case 187:t(i),PI(i,r);break;case 169:if(!wv(i,31))break;case 260:case 208:{const e=i;if(x_(e.name)){PI(e.name,r);break}e.initializer&&r(e.initializer)}case 306:case 172:case 171:t(i);break;case 278:const s=i;s.exportClause&&(mE(s.exportClause)?d(s.exportClause.elements,r):r(s.exportClause.name));break;case 272:const c=i.importClause;c&&(c.name&&t(c.name),c.namedBindings&&(274===c.namedBindings.kind?t(c.namedBindings):d(c.namedBindings.elements,r)));break;case 226:0!==eg(i)&&t(i);default:PI(i,r)}})),e;function t(t){const r=n(t);r&&e.add(r,t)}function n(e){const t=Sc(e);return t&&(rD(t)&&HD(t.expression)?t.expression.name.text:e_(t)?DQ(t):void 0)}}},C8=class{constructor(e,t,n){this.fileName=e,this.text=t,this.skipTrivia=n||(e=>e)}getLineAndCharacterOfPosition(e){return Ja(this,e)}};function w8(e){let t=!0;for(const n in e)if(De(e,n)&&!N8(n)){t=!1;break}if(t)return e;const n={};for(const t in e)De(e,t)&&(n[N8(t)?t:t.charAt(0).toLowerCase()+t.substr(1)]=e[t]);return n}function N8(e){return!e.length||e.charAt(0)===e.charAt(0).toLowerCase()}function D8(e){return e?E(e,(e=>e.text)).join(""):""}function F8(){return{target:1,jsx:1}}function E8(){return f7.getSupportedErrorCodes()}var P8=class{constructor(e){this.host=e}getCurrentSourceFile(e){var t,n,r,i,o,a,s,c;const l=this.host.getScriptSnapshot(e);if(!l)throw new Error("Could not find file: '"+e+"'.");const _=FY(e,this.host),u=this.host.getScriptVersion(e);let d;if(this.currentFileName!==e)d=I8(e,l,{languageVersion:99,impliedNodeFormat:hV(qo(e,this.host.getCurrentDirectory(),(null==(r=null==(n=(t=this.host).getCompilerHost)?void 0:n.call(t))?void 0:r.getCanonicalFileName)||jy(this.host)),null==(c=null==(s=null==(a=null==(o=(i=this.host).getCompilerHost)?void 0:o.call(i))?void 0:a.getModuleResolutionCache)?void 0:s.call(a))?void 0:c.getPackageJsonInfoCache(),this.host,this.host.getCompilationSettings()),setExternalModuleIndicator:dk(this.host.getCompilationSettings()),jsDocParsingMode:0},u,!0,_);else if(this.currentFileVersion!==u){const e=l.getChangeRange(this.currentFileScriptSnapshot);d=O8(this.currentSourceFile,l,u,e)}return d&&(this.currentFileVersion=u,this.currentFileName=e,this.currentFileScriptSnapshot=l,this.currentSourceFile=d),this.currentSourceFile}};function A8(e,t,n){e.version=n,e.scriptSnapshot=t}function I8(e,t,n,r,i,o){const a=LI(e,CQ(t),n,i,o);return A8(a,t,r),a}function O8(e,t,n,r,i){if(r&&n!==e.version){let o;const a=0!==r.span.start?e.text.substr(0,r.span.start):"",s=Ds(r.span)!==e.text.length?e.text.substr(Ds(r.span)):"";if(0===r.newLength)o=a&&s?a+s:a||s;else{const e=t.getText(r.span.start,r.span.start+r.newLength);o=a&&s?a+e+s:a?a+e:e+s}const c=BI(e,o,r,i);return A8(c,t,n),c.nameTable=void 0,e!==c&&e.scriptSnapshot&&(e.scriptSnapshot.dispose&&e.scriptSnapshot.dispose(),e.scriptSnapshot=void 0),c}const o={languageVersion:e.languageVersion,impliedNodeFormat:e.impliedNodeFormat,setExternalModuleIndicator:e.setExternalModuleIndicator,jsDocParsingMode:e.jsDocParsingMode};return I8(e.fileName,t,o,n,!0,e.scriptKind)}var L8={isCancellationRequested:it,throwIfCancellationRequested:rt},j8=class{constructor(e){this.cancellationToken=e}isCancellationRequested(){return this.cancellationToken.isCancellationRequested()}throwIfCancellationRequested(){var e;if(this.isCancellationRequested())throw null==(e=Hn)||e.instant(Hn.Phase.Session,"cancellationThrown",{kind:"CancellationTokenObject"}),new Cr}},R8=class{constructor(e,t=20){this.hostCancellationToken=e,this.throttleWaitMilliseconds=t,this.lastCancellationCheckTime=0}isCancellationRequested(){const e=Un();return Math.abs(e-this.lastCancellationCheckTime)>=this.throttleWaitMilliseconds&&(this.lastCancellationCheckTime=e,this.hostCancellationToken.isCancellationRequested())}throwIfCancellationRequested(){var e;if(this.isCancellationRequested())throw null==(e=Hn)||e.instant(Hn.Phase.Session,"cancellationThrown",{kind:"ThrottledCancellationToken"}),new Cr}},M8=["getSemanticDiagnostics","getSuggestionDiagnostics","getCompilerOptionsDiagnostics","getSemanticClassifications","getEncodedSemanticClassifications","getCodeFixesAtPosition","getCombinedCodeFix","applyCodeActionCommand","organizeImports","getEditsForFileRename","getEmitOutput","getApplicableRefactors","getEditsForRefactor","prepareCallHierarchy","provideCallHierarchyIncomingCalls","provideCallHierarchyOutgoingCalls","provideInlayHints","getSupportedCodeFixes","getPasteEdits"],B8=[...M8,"getCompletionsAtPosition","getCompletionEntryDetails","getCompletionEntrySymbol","getSignatureHelpItems","getQuickInfoAtPosition","getDefinitionAtPosition","getDefinitionAndBoundSpan","getImplementationAtPosition","getTypeDefinitionAtPosition","getReferencesAtPosition","findReferences","getDocumentHighlights","getNavigateToItems","getRenameInfo","findRenameLocations","getApplicableRefactors","preparePasteEditsForFile"];function J8(e,t=N0(e.useCaseSensitiveFileNames&&e.useCaseSensitiveFileNames(),e.getCurrentDirectory(),e.jsDocParsingMode),n){var r;let i;i=void 0===n?0:"boolean"==typeof n?n?2:0:n;const o=new P8(e);let a,s,c=0;const _=e.getCancellationToken?new j8(e.getCancellationToken()):L8,u=e.getCurrentDirectory();function p(t){e.log&&e.log(t)}qx(null==(r=e.getLocalizedDiagnosticMessages)?void 0:r.bind(e));const f=Ly(e),m=Wt(f),g=d1({useCaseSensitiveFileNames:()=>f,getCurrentDirectory:()=>u,getProgram:v,fileExists:We(e,e.fileExists),readFile:We(e,e.readFile),getDocumentPositionMapper:We(e,e.getDocumentPositionMapper),getSourceFileLike:We(e,e.getSourceFileLike),log:p});function h(e){const t=a.getSourceFile(e);if(!t){const t=new Error(`Could not find source file: '${e}'.`);throw t.ProgramFiles=a.getSourceFiles().map((e=>e.fileName)),t}return t}function y(){e.updateFromProject&&!e.updateFromProjectInProgress?e.updateFromProject():function(){var n,r,o;if(un.assert(2!==i),e.getProjectVersion){const t=e.getProjectVersion();if(t){if(s===t&&!(null==(n=e.hasChangedAutomaticTypeDirectiveNames)?void 0:n.call(e)))return;s=t}}const l=e.getTypeRootsVersion?e.getTypeRootsVersion():0;c!==l&&(p("TypeRoots version has changed; provide new program"),a=void 0,c=l);const d=e.getScriptFileNames().slice(),h=e.getCompilationSettings()||{target:1,jsx:1},y=e.hasInvalidatedResolutions||it,v=We(e,e.hasInvalidatedLibResolutions)||it,b=We(e,e.hasChangedAutomaticTypeDirectiveNames),x=null==(r=e.getProjectReferences)?void 0:r.call(e);let k,S={getSourceFile:P,getSourceFileByPath:A,getCancellationToken:()=>_,getCanonicalFileName:m,useCaseSensitiveFileNames:()=>f,getNewLine:()=>Eb(h),getDefaultLibFileName:t=>e.getDefaultLibFileName(t),writeFile:rt,getCurrentDirectory:()=>u,fileExists:t=>e.fileExists(t),readFile:t=>e.readFile&&e.readFile(t),getSymlinkCache:We(e,e.getSymlinkCache),realpath:We(e,e.realpath),directoryExists:t=>Nb(t,e),getDirectories:t=>e.getDirectories?e.getDirectories(t):[],readDirectory:(t,n,r,i,o)=>(un.checkDefined(e.readDirectory,"'LanguageServiceHost.readDirectory' must be implemented to correctly process 'projectReferences'"),e.readDirectory(t,n,r,i,o)),onReleaseOldSourceFile:function(t,n,r,i){var o;E(t,n),null==(o=e.onReleaseOldSourceFile)||o.call(e,t,n,r,i)},onReleaseParsedCommandLine:function(t,n,r){var i;e.getParsedCommandLine?null==(i=e.onReleaseParsedCommandLine)||i.call(e,t,n,r):n&&E(n.sourceFile,r)},hasInvalidatedResolutions:y,hasInvalidatedLibResolutions:v,hasChangedAutomaticTypeDirectiveNames:b,trace:We(e,e.trace),resolveModuleNames:We(e,e.resolveModuleNames),getModuleResolutionCache:We(e,e.getModuleResolutionCache),createHash:We(e,e.createHash),resolveTypeReferenceDirectives:We(e,e.resolveTypeReferenceDirectives),resolveModuleNameLiterals:We(e,e.resolveModuleNameLiterals),resolveTypeReferenceDirectiveReferences:We(e,e.resolveTypeReferenceDirectiveReferences),resolveLibrary:We(e,e.resolveLibrary),useSourceOfProjectReferenceRedirect:We(e,e.useSourceOfProjectReferenceRedirect),getParsedCommandLine:F,jsDocParsingMode:e.jsDocParsingMode,getGlobalTypingsCacheLocation:We(e,e.getGlobalTypingsCacheLocation)};const T=S.getSourceFile,{getSourceFileWithCache:C}=NU(S,(e=>qo(e,u,m)),((...e)=>T.call(S,...e)));S.getSourceFile=C,null==(o=e.setCompilerHost)||o.call(e,S);const w={useCaseSensitiveFileNames:f,fileExists:e=>S.fileExists(e),readFile:e=>S.readFile(e),directoryExists:e=>S.directoryExists(e),getDirectories:e=>S.getDirectories(e),realpath:S.realpath,readDirectory:(...e)=>S.readDirectory(...e),trace:S.trace,getCurrentDirectory:S.getCurrentDirectory,onUnRecoverableConfigFileDiagnostic:rt},N=t.getKeyForCompilationSettings(h);let D=new Set;return mV(a,d,h,((t,n)=>e.getScriptVersion(n)),(e=>S.fileExists(e)),y,v,b,F,x)?(S=void 0,k=void 0,void(D=void 0)):(a=bV({rootNames:d,options:h,host:S,oldProgram:a,projectReferences:x}),S=void 0,k=void 0,D=void 0,g.clearCache(),void a.getTypeChecker());function F(t){const n=qo(t,u,m),r=null==k?void 0:k.get(n);if(void 0!==r)return r||void 0;const i=e.getParsedCommandLine?e.getParsedCommandLine(t):function(e){const t=P(e,100);if(t)return t.path=qo(e,u,m),t.resolvedPath=t.path,t.originalFileName=t.fileName,RL(t,w,Bo(Do(e),u),void 0,Bo(e,u))}(t);return(k||(k=new Map)).set(n,i||!1),i}function E(e,n){const r=t.getKeyForCompilationSettings(n);t.releaseDocumentWithKey(e.resolvedPath,r,e.scriptKind,e.impliedNodeFormat)}function P(e,t,n,r){return A(e,qo(e,u,m),t,0,r)}function A(n,r,i,o,s){un.assert(S,"getOrCreateSourceFileByPath called after typical CompilerHost lifetime, check the callstack something with a reference to an old host.");const c=e.getScriptSnapshot(n);if(!c)return;const l=FY(n,e),_=e.getScriptVersion(n);if(!s){const o=a&&a.getSourceFileByPath(r);if(o){if(l===o.scriptKind||D.has(o.resolvedPath))return t.updateDocumentWithKey(n,r,e,N,c,_,l,i);t.releaseDocumentWithKey(o.resolvedPath,t.getKeyForCompilationSettings(a.getCompilerOptions()),o.scriptKind,o.impliedNodeFormat),D.add(o.resolvedPath)}}return t.acquireDocumentWithKey(n,r,e,N,c,_,l,i)}}()}function v(){if(2!==i)return y(),a;un.assert(void 0===a)}function b(){if(a){const e=t.getKeyForCompilationSettings(a.getCompilerOptions());d(a.getSourceFiles(),(n=>t.releaseDocumentWithKey(n.resolvedPath,e,n.scriptKind,n.impliedNodeFormat))),a=void 0}}function x(e,t){if(Is(t,e))return;const n=_c(OX(e,Ds(t))||e,(e=>Os(e,t))),r=[];return k(t,n,r),e.end===t.start+t.length&&r.push(e.endOfFileToken),$(r,qE)?void 0:r}function k(e,t,n){return!!function(e,t){const n=t.start+t.length;return e.post.start}(t,e)&&(Is(e,t)?(S(t,n),!0):GZ(t)?function(e,t,n){const r=[];return t.statements.filter((t=>k(e,t,r))).length===t.statements.length?(S(t,n),!0):(n.push(...r),!1)}(e,t,n):__(t)?function(e,t,n){var r,i,o;const a=t=>zs(t,e);if((null==(r=t.modifiers)?void 0:r.some(a))||t.name&&a(t.name)||(null==(i=t.typeParameters)?void 0:i.some(a))||(null==(o=t.heritageClauses)?void 0:o.some(a)))return S(t,n),!0;const s=[];return t.members.filter((t=>k(e,t,s))).length===t.members.length?(S(t,n),!0):(n.push(...s),!1)}(e,t,n):(S(t,n),!0))}function S(e,t){for(;e.parent&&!dC(e);)e=e.parent;t.push(e)}function T(e,t,n,r){y();const i=n&&n.use===ice.FindReferencesUse.Rename?a.getSourceFiles().filter((e=>!a.isSourceFileDefaultLibrary(e))):a.getSourceFiles();return ice.findReferenceOrRenameEntries(a,_,i,e,t,n,r)}const C=new Map(Object.entries({19:20,21:22,23:24,32:30}));function w(t){return un.assertEqual(t.type,"install package"),e.installPackage?e.installPackage({fileName:(n=t.file,qo(n,u,m)),packageName:t.packageName}):Promise.reject("Host does not implement `installPackage`");var n}function N(e,t){return{lineStarts:e.getLineStarts(),firstLine:e.getLineAndCharacterOfPosition(t.pos).line,lastLine:e.getLineAndCharacterOfPosition(t.end).line}}function D(e,t,n){const r=o.getCurrentSourceFile(e),i=[],{lineStarts:a,firstLine:s,lastLine:c}=N(r,t);let l=n||!1,_=Number.MAX_VALUE;const u=new Map,d=new RegExp(/\S/),p=WX(r,a[s]),f=p?"{/*":"//";for(let e=s;e<=c;e++){const t=r.text.substring(a[e],r.getLineEndOfPosition(a[e])),i=d.exec(t);i&&(_=Math.min(_,i.index),u.set(e.toString(),i.index),t.substr(i.index,f.length)!==f&&(l=void 0===n||n))}for(let n=s;n<=c;n++){if(s!==c&&a[n]===t.end)continue;const o=u.get(n.toString());void 0!==o&&(p?i.push(...F(e,{pos:a[n]+_,end:r.getLineEndOfPosition(a[n])},l,p)):l?i.push({newText:f,span:{length:0,start:a[n]+_}}):r.text.substr(a[n]+o,f.length)===f&&i.push({newText:"",span:{length:f.length,start:a[n]+o}}))}return i}function F(e,t,n,r){var i;const a=o.getCurrentSourceFile(e),s=[],{text:c}=a;let l=!1,_=n||!1;const u=[];let{pos:d}=t;const p=void 0!==r?r:WX(a,d),f=p?"{/*":"/*",m=p?"*/}":"*/",g=p?"\\{\\/\\*":"\\/\\*",h=p?"\\*\\/\\}":"\\*\\/";for(;d<=t.end;){const e=XX(a,d+(c.substr(d,f.length)===f?f.length:0));if(e)p&&(e.pos--,e.end++),u.push(e.pos),3===e.kind&&u.push(e.end),l=!0,d=e.end+1;else{const e=c.substring(d,t.end).search(`(${g})|(${h})`);_=void 0!==n?n:_||!tY(c,d,-1===e?t.end:d+e),d=-1===e?t.end+1:d+e+m.length}}if(_||!l){2!==(null==(i=XX(a,t.pos))?void 0:i.kind)&&Z(u,t.pos,vt),Z(u,t.end,vt);const e=u[0];c.substr(e,f.length)!==f&&s.push({newText:f,span:{length:0,start:e}});for(let e=1;e0?e-m.length:0,n=c.substr(t,m.length)===m?m.length:0;s.push({newText:"",span:{length:f.length,start:e-n}})}return s}function P({openingElement:e,closingElement:t,parent:n}){return!nO(e.tagName,t.tagName)||kE(n)&&nO(e.tagName,n.openingElement.tagName)&&P(n)}function A({closingFragment:e,parent:t}){return!!(262144&e.flags)||wE(t)&&A(t)}function I(t,n,r,i,o,a){const[s,c]="number"==typeof n?[n,void 0]:[n.pos,n.end];return{file:t,startPosition:s,endPosition:c,program:v(),host:e,formatContext:Zue.getFormatContext(i,e),cancellationToken:_,preferences:r,triggerReason:o,kind:a}}C.forEach(((e,t)=>C.set(e.toString(),Number(t))));const L={dispose:function(){b(),e=void 0},cleanupSemanticCache:b,getSyntacticDiagnostics:function(e){return y(),a.getSyntacticDiagnostics(h(e),_).slice()},getSemanticDiagnostics:function(e){y();const t=h(e),n=a.getSemanticDiagnostics(t,_);if(!Nk(a.getCompilerOptions()))return n.slice();const r=a.getDeclarationDiagnostics(t,_);return[...n,...r]},getRegionSemanticDiagnostics:function(e,t){y();const n=h(e),r=a.getCompilerOptions();if(cT(n,r,a)||!uT(n,r)||a.getCachedSemanticDiagnostics(n))return;const i=function(e,t){const n=[],r=Us(t.map((e=>gQ(e))));for(const t of r){const r=x(e,t);if(!r)return;n.push(...r)}if(n.length)return n}(n,t);if(!i)return;const o=Us(i.map((e=>Ws(e.getFullStart(),e.getEnd()))));return{diagnostics:a.getSemanticDiagnostics(n,_,i).slice(),spans:o}},getSuggestionDiagnostics:function(e){return y(),g1(h(e),a,_)},getCompilerOptionsDiagnostics:function(){return y(),[...a.getOptionsDiagnostics(_),...a.getGlobalDiagnostics(_)]},getSyntacticClassifications:function(e,t){return T0(_,o.getCurrentSourceFile(e),t)},getSemanticClassifications:function(e,t,n){return y(),"2020"===(n||"original")?r8(a,_,h(e),t):y0(a.getTypeChecker(),_,h(e),a.getClassifiableNames(),t)},getEncodedSyntacticClassifications:function(e,t){return C0(_,o.getCurrentSourceFile(e),t)},getEncodedSemanticClassifications:function(e,t,n){return y(),"original"===(n||"original")?b0(a.getTypeChecker(),_,h(e),a.getClassifiableNames(),t):i8(a,_,h(e),t)},getCompletionsAtPosition:function(t,n,r=aG,i){const o={...r,includeCompletionsForModuleExports:r.includeCompletionsForModuleExports||r.includeExternalModuleExports,includeCompletionsWithInsertText:r.includeCompletionsWithInsertText||r.includeInsertTextCompletions};return y(),oae.getCompletionsAtPosition(e,a,p,h(t),n,o,r.triggerCharacter,r.triggerKind,_,i&&Zue.getFormatContext(i,e),r.includeSymbol)},getCompletionEntryDetails:function(t,n,r,i,o,s=aG,c){return y(),oae.getCompletionEntryDetails(a,p,h(t),n,{name:r,source:o,data:c},e,i&&Zue.getFormatContext(i,e),s,_)},getCompletionEntrySymbol:function(t,n,r,i,o=aG){return y(),oae.getCompletionEntrySymbol(a,p,h(t),n,{name:r,source:i},e,o)},getSignatureHelpItems:function(e,t,{triggerReason:n}=aG){y();const r=h(e);return I_e.getSignatureHelpItems(a,r,t,n,_)},getQuickInfoAtPosition:function(e,t){y();const n=h(e),r=FX(n,t);if(r===n)return;const i=a.getTypeChecker(),o=function(e){return XD(e.parent)&&e.pos===e.parent.pos?e.parent.expression:wD(e.parent)&&e.pos===e.parent.pos||lf(e.parent)&&e.parent.name===e||IE(e.parent)?e.parent:e}(r),s=function(e,t){const n=q8(e);if(n){const e=t.getContextualType(n.parent),r=e&&U8(n,t,e,!1);if(r&&1===r.length)return ge(r)}return t.getSymbolAtLocation(e)}(o,i);if(!s||i.isUnknownSymbol(s)){const e=function(e,t,n){switch(t.kind){case 80:return!(16777216&t.flags&&!Fm(t)&&(171===t.parent.kind&&t.parent.name===t||_c(t,(e=>169===e.kind)))||$G(t)||HG(t)||xl(t.parent));case 211:case 166:return!XX(e,n);case 110:case 197:case 108:case 202:return!0;case 236:return lf(t);default:return!1}}(n,o,t)?i.getTypeAtLocation(o):void 0;return e&&{kind:"",kindModifiers:"",textSpan:pQ(o,n),displayParts:i.runWithCancellationToken(_,(t=>CY(t,e,tX(o)))),documentation:e.symbol?e.symbol.getDocumentationComment(i):void 0,tags:e.symbol?e.symbol.getJsDocTags(i):void 0}}const{symbolKind:c,displayParts:l,documentation:u,tags:d}=i.runWithCancellationToken(_,(e=>mue.getSymbolDisplayPartsDocumentationAndSymbolKind(e,s,n,tX(o),o)));return{kind:c,kindModifiers:mue.getSymbolModifiers(i,s),textSpan:pQ(o,n),displayParts:l,documentation:u,tags:d}},getDefinitionAtPosition:function(e,t,n,r){return y(),Wce.getDefinitionAtPosition(a,h(e),t,n,r)},getDefinitionAndBoundSpan:function(e,t){return y(),Wce.getDefinitionAndBoundSpan(a,h(e),t)},getImplementationAtPosition:function(e,t){return y(),ice.getImplementationsAtPosition(a,_,a.getSourceFiles(),h(e),t)},getTypeDefinitionAtPosition:function(e,t){return y(),Wce.getTypeDefinitionAtPosition(a.getTypeChecker(),h(e),t)},getReferencesAtPosition:function(e,t){return y(),T(FX(h(e),t),t,{use:ice.FindReferencesUse.References},ice.toReferenceEntry)},findReferences:function(e,t){return y(),ice.findReferencedSymbols(a,_,a.getSourceFiles(),h(e),t)},getFileReferences:function(e){return y(),ice.Core.getReferencesForFileName(e,a,a.getSourceFiles()).map(ice.toReferenceEntry)},getDocumentHighlights:function(e,t,n){const r=Jo(e);un.assert(n.some((e=>Jo(e)===r))),y();const i=B(n,(e=>a.getSourceFile(e))),o=h(e);return d0.getDocumentHighlights(a,_,o,t,i)},getNameOrDottedNameSpan:function(e,t,n){const r=o.getCurrentSourceFile(e),i=FX(r,t);if(i===r)return;switch(i.kind){case 211:case 166:case 11:case 97:case 112:case 106:case 108:case 110:case 197:case 80:break;default:return}let a=i;for(;;)if(GG(a)||KG(a))a=a.parent;else{if(!QG(a))break;if(267!==a.parent.parent.kind||a.parent.parent.body!==a.parent)break;a=a.parent.parent.name}return Ws(a.getStart(),i.getEnd())},getBreakpointStatementAtPosition:function(e,t){const n=o.getCurrentSourceFile(e);return $8.spanInSourceFileAtLocation(n,t)},getNavigateToItems:function(e,t,n,r=!1,i=!1){return y(),M1(n?[h(n)]:a.getSourceFiles(),a.getTypeChecker(),_,e,t,r,i)},getRenameInfo:function(e,t,n){return y(),w_e.getRenameInfo(a,h(e),t,n||{})},getSmartSelectionRange:function(e,t){return iue.getSmartSelectionRange(t,o.getCurrentSourceFile(e))},findRenameLocations:function(e,t,n,r,i){y();const o=h(e),a=DX(FX(o,t));if(w_e.nodeIsEligibleForRename(a)){if(zN(a)&&(TE(a.parent)||CE(a.parent))&&Fy(a.escapedText)){const{openingElement:e,closingElement:t}=a.parent.parent;return[e,t].map((e=>{const t=pQ(e.tagName,o);return{fileName:o.fileName,textSpan:t,...ice.toContextSpan(t,o,e.parent)}}))}{const e=BQ(o,i??aG),s="boolean"==typeof i?i:null==i?void 0:i.providePrefixAndSuffixTextForRename;return T(a,t,{findInStrings:n,findInComments:r,providePrefixAndSuffixTextForRename:s,use:ice.FindReferencesUse.Rename},((t,n,r)=>ice.toRenameLocation(t,n,r,s||!1,e)))}}},getNavigationBarItems:function(e){return i2(o.getCurrentSourceFile(e),_)},getNavigationTree:function(e){return o2(o.getCurrentSourceFile(e),_)},getOutliningSpans:function(e){const t=o.getCurrentSourceFile(e);return h_e.collectElements(t,_)},getTodoComments:function(e,t){y();const n=h(e);_.throwIfCancellationRequested();const r=n.text,i=[];if(t.length>0&&!n.fileName.includes("/node_modules/")){const e=function(){const e="("+/(?:^(?:\s|\*)*)/.source+"|"+/(?:\/{2,}\s*)/.source+"|"+/(?:\/\*+\s*)/.source+")",n="(?:"+E(t,(e=>"("+e.text.replace(/[-[\]/{}()*+?.\\^$|]/g,"\\$&")+")")).join("|")+")";return new RegExp(e+"("+n+/(?:.*?)/.source+")"+/(?:$|\*\/)/.source,"gim")}();let a;for(;a=e.exec(r);){_.throwIfCancellationRequested();const e=3;un.assert(a.length===t.length+e);const s=a[1],c=a.index+s.length;if(!XX(n,c))continue;let l;for(let n=0;n=97&&o<=122||o>=65&&o<=90||o>=48&&o<=57)continue;const u=a[2];i.push({descriptor:l,message:u,position:c})}}var o;return i},getBraceMatchingAtPosition:function(e,t){const n=o.getCurrentSourceFile(e),r=EX(n,t),i=r.getStart(n)===t?C.get(r.kind.toString()):void 0,a=i&&yX(r.parent,i,n);return a?[pQ(r,n),pQ(a,n)].sort(((e,t)=>e.start-t.start)):l},getIndentationAtPosition:function(e,t,n){let r=Un();const i=w8(n),a=o.getCurrentSourceFile(e);p("getIndentationAtPosition: getCurrentSourceFile: "+(Un()-r)),r=Un();const s=Zue.SmartIndenter.getIndentation(t,a,i);return p("getIndentationAtPosition: computeIndentation : "+(Un()-r)),s},getFormattingEditsForRange:function(t,n,r,i){const a=o.getCurrentSourceFile(t);return Zue.formatSelection(n,r,a,Zue.getFormatContext(w8(i),e))},getFormattingEditsForDocument:function(t,n){return Zue.formatDocument(o.getCurrentSourceFile(t),Zue.getFormatContext(w8(n),e))},getFormattingEditsAfterKeystroke:function(t,n,r,i){const a=o.getCurrentSourceFile(t),s=Zue.getFormatContext(w8(i),e);if(!XX(a,n))switch(r){case"{":return Zue.formatOnOpeningCurly(n,a,s);case"}":return Zue.formatOnClosingCurly(n,a,s);case";":return Zue.formatOnSemicolon(n,a,s);case"\n":return Zue.formatOnEnter(n,a,s)}return[]},getDocCommentTemplateAtPosition:function(t,n,r,i){const a=i?Zue.getFormatContext(i,e).options:void 0;return fle.getDocCommentTemplateAtPosition(kY(e,a),o.getCurrentSourceFile(t),n,r)},isValidBraceCompletionAtPosition:function(e,t,n){if(60===n)return!1;const r=o.getCurrentSourceFile(e);if(JX(r,t))return!1;if(zX(r,t))return 123===n;if(UX(r,t))return!1;switch(n){case 39:case 34:case 96:return!XX(r,t)}return!0},getJsxClosingTagAtPosition:function(e,t){const n=o.getCurrentSourceFile(e),r=jX(t,n);if(!r)return;const i=32===r.kind&&TE(r.parent)?r.parent.parent:CN(r)&&kE(r.parent)?r.parent:void 0;if(i&&P(i))return{newText:``};const a=32===r.kind&&NE(r.parent)?r.parent.parent:CN(r)&&wE(r.parent)?r.parent:void 0;return a&&A(a)?{newText:""}:void 0},getLinkedEditingRangeAtPosition:function(e,t){const n=o.getCurrentSourceFile(e),r=jX(t,n);if(!r||307===r.parent.kind)return;const i="[a-zA-Z0-9:\\-\\._$]*";if(wE(r.parent.parent)){const e=r.parent.parent.openingFragment,o=r.parent.parent.closingFragment;if(gd(e)||gd(o))return;const a=e.getStart(n)+1,s=o.getStart(n)+2;if(t!==a&&t!==s)return;return{ranges:[{start:a,length:0},{start:s,length:0}],wordPattern:i}}{const e=_c(r.parent,(e=>!(!TE(e)&&!CE(e))));if(!e)return;un.assert(TE(e)||CE(e),"tag should be opening or closing element");const o=e.parent.openingElement,a=e.parent.closingElement,s=o.tagName.getStart(n),c=o.tagName.end,l=a.tagName.getStart(n),_=a.tagName.end;if(s===o.getStart(n)||l===a.getStart(n)||c===o.getEnd()||_===a.getEnd())return;if(!(s<=t&&t<=c||l<=t&&t<=_))return;if(o.tagName.getText(n)!==a.tagName.getText(n))return;return{ranges:[{start:s,length:c-s},{start:l,length:_-l}],wordPattern:i}}},getSpanOfEnclosingComment:function(e,t,n){const r=o.getCurrentSourceFile(e),i=Zue.getRangeOfEnclosingComment(r,t);return!i||n&&3!==i.kind?void 0:gQ(i)},getCodeFixesAtPosition:function(t,n,r,i,o,s=aG){y();const c=h(t),l=Ws(n,r),u=Zue.getFormatContext(o,e);return O(Q(i,mt,vt),(t=>(_.throwIfCancellationRequested(),f7.getFixes({errorCode:t,sourceFile:c,span:l,program:a,host:e,cancellationToken:_,formatContext:u,preferences:s}))))},getCombinedCodeFix:function(t,n,r,i=aG){y(),un.assert("file"===t.type);const o=h(t.fileName),s=Zue.getFormatContext(r,e);return f7.getAllFixes({fixId:n,sourceFile:o,program:a,host:e,cancellationToken:_,formatContext:s,preferences:i})},applyCodeActionCommand:function(e,t){const n="string"==typeof e?t:e;return Qe(n)?Promise.all(n.map((e=>w(e)))):w(n)},organizeImports:function(t,n,r=aG){y(),un.assert("file"===t.type);const i=h(t.fileName);if(gd(i))return l;const o=Zue.getFormatContext(n,e),s=t.mode??(t.skipDestructiveCodeActions?"SortAndCombine":"All");return Jle.organizeImports(i,o,e,a,r,s)},getEditsForFileRename:function(t,n,r,i=aG){return P0(v(),t,n,e,Zue.getFormatContext(r,e),i,g)},getEmitOutput:function(t,n,r){y();const i=h(t),o=e.getCustomTransformers&&e.getCustomTransformers();return IV(a,i,!!n,_,o,r)},getNonBoundSourceFile:function(e){return o.getCurrentSourceFile(e)},getProgram:v,getCurrentProgram:()=>a,getAutoImportProvider:function(){var t;return null==(t=e.getPackageJsonAutoImportProvider)?void 0:t.call(e)},updateIsDefinitionOfReferencedSymbols:function(t,n){const r=a.getTypeChecker(),i=function(){for(const i of t)for(const t of i.references){if(n.has(t)){const e=o(t);return un.assertIsDefined(e),r.getSymbolAtLocation(e)}const i=rY(t,g,We(e,e.fileExists));if(i&&n.has(i)){const e=o(i);if(e)return r.getSymbolAtLocation(e)}}}();if(!i)return!1;for(const r of t)for(const t of r.references){const r=o(t);if(un.assertIsDefined(r),n.has(t)||ice.isDeclarationOfSymbol(r,i)){n.add(t),t.isDefinition=!0;const r=rY(t,g,We(e,e.fileExists));r&&n.add(r)}else t.isDefinition=!1}return!0;function o(e){const t=a.getSourceFile(e.fileName);if(!t)return;const n=FX(t,e.textSpan.start);return ice.Core.getAdjustedNode(n,{use:ice.FindReferencesUse.References})}},getApplicableRefactors:function(e,t,n=aG,r,i,o){y();const a=h(e);return V2.getApplicableRefactors(I(a,t,n,aG,r,i),o)},getEditsForRefactor:function(e,t,n,r,i,o=aG,a){y();const s=h(e);return V2.getEditsForRefactor(I(s,n,o,t),r,i,a)},getMoveToRefactoringFileSuggestions:function(t,n,r=aG){y();const i=h(t),o=un.checkDefined(a.getSourceFiles()),s=QS(t),c=J6(I(i,n,r,aG)),l=z6(null==c?void 0:c.all),_=B(o,(e=>{const t=QS(e.fileName);return(null==a?void 0:a.isSourceFileFromExternalLibrary(i))||i===h(e.fileName)||".ts"===s&&".d.ts"===t||".d.ts"===s&&Gt(Fo(e.fileName),"lib.")&&".d.ts"===t||s!==t&&(!(".tsx"===s&&".ts"===t||".jsx"===s&&".js"===t)||l)?void 0:e.fileName}));return{newFileName:B6(i,a,e,c),files:_}},toLineColumnOffset:function(e,t){return 0===t?{line:0,character:0}:g.toLineColumnOffset(e,t)},getSourceMapper:()=>g,clearSourceMapperCache:()=>g.clearCache(),prepareCallHierarchy:function(e,t){y();const n=K8.resolveCallHierarchyDeclaration(a,FX(h(e),t));return n&&AZ(n,(e=>K8.createCallHierarchyItem(a,e)))},provideCallHierarchyIncomingCalls:function(e,t){y();const n=h(e),r=IZ(K8.resolveCallHierarchyDeclaration(a,0===t?n:FX(n,t)));return r?K8.getIncomingCalls(a,r,_):[]},provideCallHierarchyOutgoingCalls:function(e,t){y();const n=h(e),r=IZ(K8.resolveCallHierarchyDeclaration(a,0===t?n:FX(n,t)));return r?K8.getOutgoingCalls(a,r):[]},toggleLineComment:D,toggleMultilineComment:F,commentSelection:function(e,t){const n=o.getCurrentSourceFile(e),{firstLine:r,lastLine:i}=N(n,t);return r===i&&t.pos!==t.end?F(e,t,!0):D(e,t,!0)},uncommentSelection:function(e,t){const n=o.getCurrentSourceFile(e),r=[],{pos:i}=t;let{end:a}=t;i===a&&(a+=WX(n,i)?2:1);for(let t=i;t<=a;t++){const i=XX(n,t);if(i){switch(i.kind){case 2:r.push(...D(e,{end:i.end,pos:i.pos+1},!1));break;case 3:r.push(...F(e,{end:i.end,pos:i.pos+1},!1))}t=i.end+1}}return r},provideInlayHints:function(t,n,r=aG){y();const i=h(t);return lle.provideInlayHints(function(t,n,r){return{file:t,program:v(),host:e,span:n,preferences:r,cancellationToken:_}}(i,n,r))},getSupportedCodeFixes:E8,preparePasteEditsForFile:function(e,t){return y(),Ype.preparePasteEdits(h(e),t,a.getTypeChecker())},getPasteEdits:function(t,n){return y(),efe.pasteEditsProvider(h(t.targetFile),t.pastedText,t.pasteLocations,t.copiedFrom?{file:h(t.copiedFrom.file),range:t.copiedFrom.range}:void 0,e,t.preferences,Zue.getFormatContext(n,e),_)},mapCode:function(t,n,r,i,a){return Ole.mapCode(o.getCurrentSourceFile(t),n,r,e,Zue.getFormatContext(i,e),a)}};switch(i){case 0:break;case 1:M8.forEach((e=>L[e]=()=>{throw new Error(`LanguageService Operation: ${e} not allowed in LanguageServiceMode.PartialSemantic`)}));break;case 2:B8.forEach((e=>L[e]=()=>{throw new Error(`LanguageService Operation: ${e} not allowed in LanguageServiceMode.Syntactic`)}));break;default:un.assertNever(i)}return L}function z8(e){return e.nameTable||function(e){const t=e.nameTable=new Map;e.forEachChild((function e(n){if(zN(n)&&!HG(n)&&n.escapedText||Lh(n)&&function(e){return ch(e)||283===e.parent.kind||function(e){return e&&e.parent&&212===e.parent.kind&&e.parent.argumentExpression===e}(e)||_h(e)}(n)){const e=qh(n);t.set(e,void 0===t.get(e)?n.pos:-1)}else if(qN(n)){const e=n.escapedText;t.set(e,void 0===t.get(e)?n.pos:-1)}if(PI(n,e),Nu(n))for(const t of n.jsDoc)PI(t,e)}))}(e),e.nameTable}function q8(e){const t=function(e){switch(e.kind){case 11:case 15:case 9:if(167===e.parent.kind)return Pu(e.parent.parent)?e.parent.parent:void 0;case 80:return!Pu(e.parent)||210!==e.parent.parent.kind&&292!==e.parent.parent.kind||e.parent.name!==e?void 0:e.parent}}(e);return t&&($D(t.parent)||EE(t.parent))?t:void 0}function U8(e,t,n,r){const i=DQ(e.name);if(!i)return l;if(!n.isUnion()){const e=n.getProperty(i);return e?[e]:l}const o=$D(e.parent)||EE(e.parent)?N(n.types,(n=>!t.isTypeInvalidDueToUnionDiscriminant(n,e.parent))):n.types,a=B(o,(e=>e.getProperty(i)));if(r&&(0===a.length||a.length===n.types.length)){const e=n.getProperty(i);if(e)return[e]}return o.length||a.length?Q(a,mt):B(n.types,(e=>e.getProperty(i)))}function V8(e){if(so)return jo(Do(Jo(so.getExecutingFilePath())),Ns(e));throw new Error("getDefaultLibFilePath is only supported when consumed as a node module. ")}function W8(e,t,n){const r=[];n=j1(n,r);const i=Qe(e)?e:[e],o=Cq(void 0,void 0,XC,n,i,t,!0);return o.diagnostics=K(o.diagnostics,r),o}Bx({getNodeConstructor:()=>u8,getTokenConstructor:()=>m8,getIdentifierConstructor:()=>g8,getPrivateIdentifierConstructor:()=>h8,getSourceFileConstructor:()=>T8,getSymbolConstructor:()=>f8,getTypeConstructor:()=>y8,getSignatureConstructor:()=>v8,getSourceMapSourceConstructor:()=>C8});var $8={};function H8(e,t){if(e.isDeclarationFile)return;let n=PX(e,t);const r=e.getLineAndCharacterOfPosition(t).line;if(e.getLineAndCharacterOfPosition(n.getStart(e)).line>r){const t=jX(n.pos,e);if(!t||e.getLineAndCharacterOfPosition(t.getEnd()).line!==r)return;n=t}if(!(33554432&n.flags))return l(n);function i(t,n){const r=iI(t)?x(t.modifiers,aD):void 0;return Ws(r?Xa(e.text,r.end):t.getStart(e),(n||t).getEnd())}function o(t,n){return i(t,LX(n,n.parent,e))}function a(t,n){return t&&r===e.getLineAndCharacterOfPosition(t.getStart(e)).line?l(t):l(n)}function s(t){return l(jX(t.pos,e))}function c(t){return l(LX(t,t.parent,e))}function l(t){if(t){const{parent:_}=t;switch(t.kind){case 243:return u(t.declarationList.declarations[0]);case 260:case 172:case 171:return u(t);case 169:return function e(t){if(x_(t.name))return g(t.name);if(function(e){return!!e.initializer||void 0!==e.dotDotDotToken||wv(e,3)}(t))return i(t);{const n=t.parent,r=n.parameters.indexOf(t);return un.assert(-1!==r),0!==r?e(n.parameters[r-1]):l(n.body)}}(t);case 262:case 174:case 173:case 177:case 178:case 176:case 218:case 219:return function(e){if(e.body)return p(e)?i(e):l(e.body)}(t);case 241:if(Rf(t))return function(e){const t=e.statements.length?e.statements[0]:e.getLastToken();return p(e.parent)?a(e.parent,t):l(t)}(t);case 268:return f(t);case 299:return f(t.block);case 244:return i(t.expression);case 253:return i(t.getChildAt(0),t.expression);case 247:return o(t,t.expression);case 246:return l(t.statement);case 259:return i(t.getChildAt(0));case 245:return o(t,t.expression);case 256:return l(t.statement);case 252:case 251:return i(t.getChildAt(0),t.label);case 248:return(r=t).initializer?m(r):r.condition?i(r.condition):r.incrementor?i(r.incrementor):void 0;case 249:return o(t,t.expression);case 250:return m(t);case 255:return o(t,t.expression);case 296:case 297:return l(t.statements[0]);case 258:return f(t.tryBlock);case 257:case 277:return i(t,t.expression);case 271:return i(t,t.moduleReference);case 272:case 278:return i(t,t.moduleSpecifier);case 267:if(1!==wM(t))return;case 263:case 266:case 306:case 208:return i(t);case 254:return l(t.statement);case 170:return function(t,n,r){if(t){const i=t.indexOf(n);if(i>=0){let n=i,o=i+1;for(;n>0&&r(t[n-1]);)n--;for(;o0)return l(t.declarations[0])}}function g(e){const t=d(e.elements,(e=>232!==e.kind?e:void 0));return t?l(t):208===e.parent.kind?i(e.parent):_(e.parent)}function h(e){un.assert(207!==e.kind&&206!==e.kind);const t=d(209===e.kind?e.elements:e.properties,(e=>232!==e.kind?e:void 0));return t?l(t):i(226===e.parent.kind?e.parent:e)}}}i($8,{spanInSourceFileAtLocation:()=>H8});var K8={};function G8(e){return cD(e)||VF(e)}function X8(e){return(eF(e)||tF(e)||pF(e))&&G8(e.parent)&&e===e.parent.initializer&&zN(e.parent.name)&&(!!(2&oc(e.parent))||cD(e.parent))}function Q8(e){return qE(e)||QF(e)||$F(e)||eF(e)||HF(e)||pF(e)||uD(e)||_D(e)||lD(e)||pD(e)||fD(e)}function Y8(e){return qE(e)||QF(e)&&zN(e.name)||$F(e)||HF(e)||uD(e)||_D(e)||lD(e)||pD(e)||fD(e)||function(e){return(eF(e)||pF(e))&&kc(e)}(e)||X8(e)}function Z8(e){return qE(e)?e:kc(e)?e.name:X8(e)?e.parent.name:un.checkDefined(e.modifiers&&b(e.modifiers,e7))}function e7(e){return 90===e.kind}function t7(e,t){const n=Z8(t);return n&&e.getSymbolAtLocation(n)}function n7(e,t){if(t.body)return t;if(dD(t))return rv(t.parent);if($F(t)||_D(t)){const n=t7(e,t);return n&&n.valueDeclaration&&i_(n.valueDeclaration)&&n.valueDeclaration.body?n.valueDeclaration:void 0}return t}function r7(e,t){const n=t7(e,t);let r;if(n&&n.declarations){const e=X(n.declarations),t=E(n.declarations,(e=>({file:e.getSourceFile().fileName,pos:e.pos})));e.sort(((e,n)=>Ct(t[e].file,t[n].file)||t[e].pos-t[n].pos));const i=E(e,(e=>n.declarations[e]));let o;for(const e of i)Y8(e)&&(o&&o.parent===e.parent&&o.end===e.pos||(r=ie(r,e)),o=e)}return r}function i7(e,t){return uD(t)?t:i_(t)?n7(e,t)??r7(e,t)??t:r7(e,t)??t}function o7(e,t){const n=e.getTypeChecker();let r=!1;for(;;){if(Y8(t))return i7(n,t);if(Q8(t)){const e=_c(t,Y8);return e&&i7(n,e)}if(ch(t)){if(Y8(t.parent))return i7(n,t.parent);if(Q8(t.parent)){const e=_c(t.parent,Y8);return e&&i7(n,e)}return G8(t.parent)&&t.parent.initializer&&X8(t.parent.initializer)?t.parent.initializer:void 0}if(dD(t))return Y8(t.parent)?t.parent:void 0;if(126!==t.kind||!uD(t.parent)){if(VF(t)&&t.initializer&&X8(t.initializer))return t.initializer;if(!r){let e=n.getSymbolAtLocation(t);if(e&&(2097152&e.flags&&(e=n.getAliasedSymbol(e)),e.valueDeclaration)){r=!0,t=e.valueDeclaration;continue}}return}t=t.parent}}function a7(e,t){const n=t.getSourceFile(),r=function(e,t){if(qE(t))return{text:t.fileName,pos:0,end:0};if(($F(t)||HF(t))&&!kc(t)){const e=t.modifiers&&b(t.modifiers,e7);if(e)return{text:"default",pos:e.getStart(),end:e.getEnd()}}if(uD(t)){const n=Xa(t.getSourceFile().text,Lb(t).pos),r=n+6,i=e.getTypeChecker(),o=i.getSymbolAtLocation(t.parent);return{text:(o?`${i.symbolToString(o,t.parent)} `:"")+"static {}",pos:n,end:r}}const n=X8(t)?t.parent.name:un.checkDefined(Tc(t),"Expected call hierarchy item to have a name");let r=zN(n)?mc(n):Lh(n)?n.text:rD(n)&&Lh(n.expression)?n.expression.text:void 0;if(void 0===r){const i=e.getTypeChecker(),o=i.getSymbolAtLocation(n);o&&(r=i.symbolToString(o,t))}if(void 0===r){const e=nU();r=id((n=>e.writeNode(4,t,t.getSourceFile(),n)))}return{text:r,pos:n.getStart(),end:n.getEnd()}}(e,t),i=function(e){var t,n,r,i;if(X8(e))return cD(e.parent)&&__(e.parent.parent)?pF(e.parent.parent)?null==(t=Cc(e.parent.parent))?void 0:t.getText():null==(n=e.parent.parent.name)?void 0:n.getText():YF(e.parent.parent.parent.parent)&&zN(e.parent.parent.parent.parent.parent.name)?e.parent.parent.parent.parent.parent.name.getText():void 0;switch(e.kind){case 177:case 178:case 174:return 210===e.parent.kind?null==(r=Cc(e.parent))?void 0:r.getText():null==(i=Tc(e.parent))?void 0:i.getText();case 262:case 263:case 267:if(YF(e.parent)&&zN(e.parent.parent.name))return e.parent.parent.name.getText()}}(t),o=nX(t),a=ZX(t),s=Ws(Xa(n.text,t.getFullStart(),!1,!0),t.getEnd()),c=Ws(r.pos,r.end);return{file:n.fileName,kind:o,kindModifiers:a,name:r.text,containerName:i,span:s,selectionSpan:c}}function s7(e){return void 0!==e}function c7(e){if(e.kind===ice.EntryKind.Node){const{node:t}=e;if(IG(t,!0,!0)||OG(t,!0,!0)||LG(t,!0,!0)||jG(t,!0,!0)||GG(t)||XG(t)){const e=t.getSourceFile();return{declaration:_c(t,Y8)||e,range:mQ(t,e)}}}}function l7(e){return jB(e.declaration)}function _7(e,t,n){if(qE(t)||QF(t)||uD(t))return[];const r=Z8(t),i=N(ice.findReferenceOrRenameEntries(e,n,e.getSourceFiles(),r,0,{use:ice.FindReferencesUse.References},c7),s7);return i?Je(i,l7,(t=>function(e,t){return{from:a7(e,t[0].declaration),fromSpans:E(t,(e=>gQ(e.range)))}}(e,t))):[]}function u7(e,t){return 33554432&t.flags||lD(t)?[]:Je(function(e,t){const n=[],r=function(e,t){function n(n){const r=QD(n)?n.tag:vu(n)?n.tagName:kx(n)||uD(n)?n:n.expression,i=o7(e,r);if(i){const e=mQ(r,n.getSourceFile());if(Qe(i))for(const n of i)t.push({declaration:n,range:e});else t.push({declaration:i,range:e})}}return function e(t){if(t&&!(33554432&t.flags))if(Y8(t)){if(__(t))for(const n of t.members)n.name&&rD(n.name)&&e(n.name.expression)}else{switch(t.kind){case 80:case 271:case 272:case 278:case 264:case 265:return;case 175:return void n(t);case 216:case 234:case 238:return void e(t.expression);case 260:case 169:return e(t.name),void e(t.initializer);case 213:case 214:return n(t),e(t.expression),void d(t.arguments,e);case 215:return n(t),e(t.tag),void e(t.template);case 286:case 285:return n(t),e(t.tagName),void e(t.attributes);case 170:return n(t),void e(t.expression);case 211:case 212:n(t),PI(t,e)}Tf(t)||PI(t,e)}}}(e,n);switch(t.kind){case 307:!function(e,t){d(e.statements,t)}(t,r);break;case 267:!function(e,t){!wv(e,128)&&e.body&&YF(e.body)&&d(e.body.statements,t)}(t,r);break;case 262:case 218:case 219:case 174:case 177:case 178:!function(e,t,n){const r=n7(e,t);r&&(d(r.parameters,n),n(r.body))}(e.getTypeChecker(),t,r);break;case 263:case 231:!function(e,t){d(e.modifiers,t);const n=yh(e);n&&t(n.expression);for(const n of e.members)rI(n)&&d(n.modifiers,t),cD(n)?t(n.initializer):dD(n)&&n.body?(d(n.parameters,t),t(n.body)):uD(n)&&t(n)}(t,r);break;case 175:!function(e,t){t(e.body)}(t,r);break;default:un.assertNever(t)}return n}(e,t),l7,(t=>function(e,t){return{to:a7(e,t[0].declaration),fromSpans:E(t,(e=>gQ(e.range)))}}(e,t)))}i(K8,{createCallHierarchyItem:()=>a7,getIncomingCalls:()=>_7,getOutgoingCalls:()=>u7,resolveCallHierarchyDeclaration:()=>o7});var d7={};i(d7,{v2020:()=>p7});var p7={};i(p7,{TokenEncodingConsts:()=>e8,TokenModifier:()=>n8,TokenType:()=>t8,getEncodedSemanticClassifications:()=>i8,getSemanticClassifications:()=>r8});var f7={};i(f7,{PreserveOptionalFlags:()=>Sie,addNewNodeForMemberSymbol:()=>Tie,codeFixAll:()=>D7,createCodeFixAction:()=>v7,createCodeFixActionMaybeFixAll:()=>b7,createCodeFixActionWithoutFixAll:()=>y7,createCombinedCodeActions:()=>w7,createFileTextChanges:()=>N7,createImportAdder:()=>Z9,createImportSpecifierResolver:()=>tee,createMissingMemberNodes:()=>xie,createSignatureDeclarationFromCallExpression:()=>wie,createSignatureDeclarationFromSignature:()=>Cie,createStubbedBody:()=>Rie,eachDiagnostic:()=>F7,findAncestorMatchingSpan:()=>Wie,generateAccessorFromProperty:()=>$ie,getAccessorConvertiblePropertyAtPosition:()=>Xie,getAllFixes:()=>C7,getAllSupers:()=>Zie,getFixes:()=>T7,getImportCompletionAction:()=>nee,getImportKind:()=>yee,getJSDocTypedefNodes:()=>J9,getNoopSymbolTrackerWithResolver:()=>kie,getPromoteTypeOnlyCompletionAction:()=>ree,getSupportedErrorCodes:()=>S7,importFixName:()=>X9,importSymbols:()=>Vie,parameterShouldGetTypeFromJSDoc:()=>v5,registerCodeFix:()=>k7,setJsonCompilerOptionValue:()=>Bie,setJsonCompilerOptionValues:()=>Mie,tryGetAutoImportableReferenceFromTypeNode:()=>qie,typeNodeToAutoImportableTypeNode:()=>Fie,typePredicateToAutoImportableTypeNode:()=>Pie,typeToAutoImportableTypeNode:()=>Die,typeToMinimizedReferenceType:()=>Eie});var m7,g7=$e(),h7=new Map;function y7(e,t,n){return x7(e,UZ(n),t,void 0,void 0)}function v7(e,t,n,r,i,o){return x7(e,UZ(n),t,r,UZ(i),o)}function b7(e,t,n,r,i,o){return x7(e,UZ(n),t,r,i&&UZ(i),o)}function x7(e,t,n,r,i,o){return{fixName:e,description:t,changes:n,fixId:r,fixAllDescription:i,commands:o?[o]:void 0}}function k7(e){for(const t of e.errorCodes)m7=void 0,g7.add(String(t),e);if(e.fixIds)for(const t of e.fixIds)un.assert(!h7.has(t)),h7.set(t,e)}function S7(){return m7??(m7=Oe(g7.keys()))}function T7(e){const t=E7(e);return O(g7.get(String(e.errorCode)),(n=>E(n.getCodeActions(e),function(e,t){const{errorCodes:n}=e;let r=0;for(const e of t)if(T(n,e.code)&&r++,r>1)break;const i=r<2;return({fixId:e,fixAllDescription:t,...n})=>i?n:{...n,fixId:e,fixAllDescription:t}}(n,t))))}function C7(e){return h7.get(nt(e.fixId,Ze)).getAllCodeActions(e)}function w7(e,t){return{changes:e,commands:t}}function N7(e,t){return{fileName:e,textChanges:t}}function D7(e,t,n){const r=[];return w7(Tue.ChangeTracker.with(e,(i=>F7(e,t,(e=>n(i,e,r))))),0===r.length?void 0:r)}function F7(e,t,n){for(const r of E7(e))T(t,r.code)&&n(r)}function E7({program:e,sourceFile:t,cancellationToken:n}){const r=[...e.getSemanticDiagnostics(t,n),...e.getSyntacticDiagnostics(t,n),...g1(t,e,n)];return Nk(e.getCompilerOptions())&&r.push(...e.getDeclarationDiagnostics(t,n)),r}var P7="addConvertToUnknownForNonOverlappingTypes",A7=[la.Conversion_of_type_0_to_type_1_may_be_a_mistake_because_neither_type_sufficiently_overlaps_with_the_other_If_this_was_intentional_convert_the_expression_to_unknown_first.code];function I7(e,t,n){const r=gF(n)?XC.createAsExpression(n.expression,XC.createKeywordTypeNode(159)):XC.createTypeAssertion(XC.createKeywordTypeNode(159),n.expression);e.replaceNode(t,n.expression,r)}function O7(e,t){if(!Fm(e))return _c(PX(e,t),(e=>gF(e)||YD(e)))}k7({errorCodes:A7,getCodeActions:function(e){const t=O7(e.sourceFile,e.span.start);if(void 0===t)return;const n=Tue.ChangeTracker.with(e,(n=>I7(n,e.sourceFile,t)));return[v7(P7,n,la.Add_unknown_conversion_for_non_overlapping_types,P7,la.Add_unknown_to_all_conversions_of_non_overlapping_types)]},fixIds:[P7],getAllCodeActions:e=>D7(e,A7,((e,t)=>{const n=O7(t.file,t.start);n&&I7(e,t.file,n)}))}),k7({errorCodes:[la.await_expressions_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_this_file_has_no_imports_or_exports_Consider_adding_an_empty_export_to_make_this_file_a_module.code,la.await_using_statements_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_this_file_has_no_imports_or_exports_Consider_adding_an_empty_export_to_make_this_file_a_module.code,la.for_await_loops_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_this_file_has_no_imports_or_exports_Consider_adding_an_empty_export_to_make_this_file_a_module.code],getCodeActions:function(e){const{sourceFile:t}=e;return[y7("addEmptyExportDeclaration",Tue.ChangeTracker.with(e,(e=>{const n=XC.createExportDeclaration(void 0,!1,XC.createNamedExports([]),void 0);e.insertNodeAtEndOfScope(t,t,n)})),la.Add_export_to_make_this_file_into_a_module)]}});var L7="addMissingAsync",j7=[la.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1.code,la.Type_0_is_not_assignable_to_type_1.code,la.Type_0_is_not_comparable_to_type_1.code];function R7(e,t,n,r){const i=n((n=>function(e,t,n,r){if(r&&r.has(jB(n)))return;null==r||r.add(jB(n));const i=XC.replaceModifiers(LY(n,!0),XC.createNodeArray(XC.createModifiersFromModifierFlags(1024|Jv(n))));e.replaceNode(t,n,i)}(n,e.sourceFile,t,r)));return v7(L7,i,la.Add_async_modifier_to_containing_function,L7,la.Add_all_missing_async_modifiers)}function M7(e,t){if(t)return _c(PX(e,t.start),(n=>n.getStart(e)Ds(t)?"quit":(tF(n)||_D(n)||eF(n)||$F(n))&&QQ(t,pQ(n,e))))}k7({fixIds:[L7],errorCodes:j7,getCodeActions:function(e){const{sourceFile:t,errorCode:n,cancellationToken:r,program:i,span:o}=e,a=b(i.getTypeChecker().getDiagnostics(t,r),function(e,t){return({start:n,length:r,relatedInformation:i,code:o})=>et(n)&&et(r)&&QQ({start:n,length:r},e)&&o===t&&!!i&&$(i,(e=>e.code===la.Did_you_mean_to_mark_this_function_as_async.code))}(o,n)),s=M7(t,a&&a.relatedInformation&&b(a.relatedInformation,(e=>e.code===la.Did_you_mean_to_mark_this_function_as_async.code)));if(s)return[R7(e,s,(t=>Tue.ChangeTracker.with(e,t)))]},getAllCodeActions:e=>{const{sourceFile:t}=e,n=new Set;return D7(e,j7,((r,i)=>{const o=i.relatedInformation&&b(i.relatedInformation,(e=>e.code===la.Did_you_mean_to_mark_this_function_as_async.code)),a=M7(t,o);if(a)return R7(e,a,(e=>(e(r),[])),n)}))}});var B7="addMissingAwait",J7=la.Property_0_does_not_exist_on_type_1.code,z7=[la.This_expression_is_not_callable.code,la.This_expression_is_not_constructable.code],q7=[la.An_arithmetic_operand_must_be_of_type_any_number_bigint_or_an_enum_type.code,la.The_left_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type.code,la.The_right_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type.code,la.Operator_0_cannot_be_applied_to_type_1.code,la.Operator_0_cannot_be_applied_to_types_1_and_2.code,la.This_comparison_appears_to_be_unintentional_because_the_types_0_and_1_have_no_overlap.code,la.This_condition_will_always_return_true_since_this_0_is_always_defined.code,la.Type_0_is_not_an_array_type.code,la.Type_0_is_not_an_array_type_or_a_string_type.code,la.Type_0_can_only_be_iterated_through_when_using_the_downlevelIteration_flag_or_with_a_target_of_es2015_or_higher.code,la.Type_0_is_not_an_array_type_or_a_string_type_or_does_not_have_a_Symbol_iterator_method_that_returns_an_iterator.code,la.Type_0_is_not_an_array_type_or_does_not_have_a_Symbol_iterator_method_that_returns_an_iterator.code,la.Type_0_must_have_a_Symbol_iterator_method_that_returns_an_iterator.code,la.Type_0_must_have_a_Symbol_asyncIterator_method_that_returns_an_async_iterator.code,la.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1.code,J7,...z7];function U7(e,t,n,r,i){const o=PZ(e,n);return o&&function(e,t,n,r,i){return $(i.getTypeChecker().getDiagnostics(e,r),(({start:e,length:r,relatedInformation:i,code:o})=>et(e)&&et(r)&&QQ({start:e,length:r},n)&&o===t&&!!i&&$(i,(e=>e.code===la.Did_you_forget_to_use_await.code))))}(e,t,n,r,i)&&H7(o)?o:void 0}function V7(e,t,n,r,i,o){const{sourceFile:a,program:s,cancellationToken:c}=e,l=function(e,t,n,r,i){const o=function(e,t){if(HD(e.parent)&&zN(e.parent.expression))return{identifiers:[e.parent.expression],isCompleteFix:!0};if(zN(e))return{identifiers:[e],isCompleteFix:!0};if(cF(e)){let n,r=!0;for(const i of[e.left,e.right]){const e=t.getTypeAtLocation(i);if(t.getPromisedTypeOfPromise(e)){if(!zN(i)){r=!1;continue}(n||(n=[])).push(i)}}return n&&{identifiers:n,isCompleteFix:r}}}(e,i);if(!o)return;let a,s=o.isCompleteFix;for(const e of o.identifiers){const o=i.getSymbolAtLocation(e);if(!o)continue;const c=tt(o.valueDeclaration,VF),l=c&&tt(c.name,zN),_=Sh(c,243);if(!c||!_||c.type||!c.initializer||_.getSourceFile()!==t||wv(_,32)||!l||!H7(c.initializer)){s=!1;continue}const u=r.getSemanticDiagnostics(t,n);ice.Core.eachSymbolReferenceInFile(l,i,t,(n=>e!==n&&!$7(n,u,t,i)))?s=!1:(a||(a=[])).push({expression:c.initializer,declarationSymbol:o})}return a&&{initializers:a,needsSecondPassForFixAll:!s}}(t,a,c,s,r);if(l)return y7("addMissingAwaitToInitializer",i((e=>{d(l.initializers,(({expression:t})=>K7(e,n,a,r,t,o))),o&&l.needsSecondPassForFixAll&&K7(e,n,a,r,t,o)})),1===l.initializers.length?[la.Add_await_to_initializer_for_0,l.initializers[0].declarationSymbol.name]:la.Add_await_to_initializers)}function W7(e,t,n,r,i,o){const a=i((i=>K7(i,n,e.sourceFile,r,t,o)));return v7(B7,a,la.Add_await,B7,la.Fix_all_expressions_possibly_missing_await)}function $7(e,t,n,r){const i=HD(e.parent)?e.parent.name:cF(e.parent)?e.parent:e,o=b(t,(e=>e.start===i.getStart(n)&&e.start+e.length===i.getEnd()));return o&&T(q7,o.code)||1&r.getTypeAtLocation(i).flags}function H7(e){return 65536&e.flags||!!_c(e,(e=>e.parent&&tF(e.parent)&&e.parent.body===e||CF(e)&&(262===e.parent.kind||218===e.parent.kind||219===e.parent.kind||174===e.parent.kind)))}function K7(e,t,n,r,i,o){if(OF(i.parent)&&!i.parent.awaitModifier){const t=r.getTypeAtLocation(i),o=r.getAnyAsyncIterableType();if(o&&r.isTypeAssignableTo(t,o)){const t=i.parent;return void e.replaceNode(n,t,XC.updateForOfStatement(t,XC.createToken(135),t.initializer,t.expression,t.statement))}}if(cF(i))for(const t of[i.left,i.right]){if(o&&zN(t)){const e=r.getSymbolAtLocation(t);if(e&&o.has(RB(e)))continue}const i=r.getTypeAtLocation(t),a=r.getPromisedTypeOfPromise(i)?XC.createAwaitExpression(t):t;e.replaceNode(n,t,a)}else if(t===J7&&HD(i.parent)){if(o&&zN(i.parent.expression)){const e=r.getSymbolAtLocation(i.parent.expression);if(e&&o.has(RB(e)))return}e.replaceNode(n,i.parent.expression,XC.createParenthesizedExpression(XC.createAwaitExpression(i.parent.expression))),G7(e,i.parent.expression,n)}else if(T(z7,t)&&L_(i.parent)){if(o&&zN(i)){const e=r.getSymbolAtLocation(i);if(e&&o.has(RB(e)))return}e.replaceNode(n,i,XC.createParenthesizedExpression(XC.createAwaitExpression(i))),G7(e,i,n)}else{if(o&&VF(i.parent)&&zN(i.parent.name)){const e=r.getSymbolAtLocation(i.parent.name);if(e&&!q(o,RB(e)))return}e.replaceNode(n,i,XC.createAwaitExpression(i))}}function G7(e,t,n){const r=jX(t.pos,n);r&&pZ(r.end,r.parent,n)&&e.insertText(n,t.getStart(n),";")}k7({fixIds:[B7],errorCodes:q7,getCodeActions:function(e){const{sourceFile:t,errorCode:n,span:r,cancellationToken:i,program:o}=e,a=U7(t,n,r,i,o);if(!a)return;const s=e.program.getTypeChecker(),c=t=>Tue.ChangeTracker.with(e,t);return ne([V7(e,a,n,s,c),W7(e,a,n,s,c)])},getAllCodeActions:e=>{const{sourceFile:t,program:n,cancellationToken:r}=e,i=e.program.getTypeChecker(),o=new Set;return D7(e,q7,((a,s)=>{const c=U7(t,s.code,s,r,n);if(!c)return;const l=e=>(e(a),[]);return V7(e,c,s.code,i,l,o)||W7(e,c,s.code,i,l,o)}))}});var X7="addMissingConst",Q7=[la.Cannot_find_name_0.code,la.No_value_exists_in_scope_for_the_shorthand_property_0_Either_declare_one_or_provide_an_initializer.code];function Y7(e,t,n,r,i){const o=PX(t,n),a=_c(o,(e=>X_(e.parent)?e.parent.initializer===e:!function(e){switch(e.kind){case 80:case 209:case 210:case 303:case 304:return!0;default:return!1}}(e)&&"quit"));if(a)return Z7(e,a,t,i);const s=o.parent;if(cF(s)&&64===s.operatorToken.kind&&DF(s.parent))return Z7(e,o,t,i);if(WD(s)){const n=r.getTypeChecker();if(!v(s.elements,(e=>function(e,t){const n=zN(e)?e:nb(e,!0)&&zN(e.left)?e.left:void 0;return!!n&&!t.getSymbolAtLocation(n)}(e,n))))return;return Z7(e,s,t,i)}const c=_c(o,(e=>!!DF(e.parent)||!function(e){switch(e.kind){case 80:case 226:case 28:return!0;default:return!1}}(e)&&"quit"));if(c){if(!e5(c,r.getTypeChecker()))return;return Z7(e,c,t,i)}}function Z7(e,t,n,r){r&&!q(r,t)||e.insertModifierBefore(n,87,t)}function e5(e,t){return!!cF(e)&&(28===e.operatorToken.kind?v([e.left,e.right],(e=>e5(e,t))):64===e.operatorToken.kind&&zN(e.left)&&!t.getSymbolAtLocation(e.left))}k7({errorCodes:Q7,getCodeActions:function(e){const t=Tue.ChangeTracker.with(e,(t=>Y7(t,e.sourceFile,e.span.start,e.program)));if(t.length>0)return[v7(X7,t,la.Add_const_to_unresolved_variable,X7,la.Add_const_to_all_unresolved_variables)]},fixIds:[X7],getAllCodeActions:e=>{const t=new Set;return D7(e,Q7,((n,r)=>Y7(n,r.file,r.start,e.program,t)))}});var t5="addMissingDeclareProperty",n5=[la.Property_0_will_overwrite_the_base_property_in_1_If_this_is_intentional_add_an_initializer_Otherwise_add_a_declare_modifier_or_remove_the_redundant_declaration.code];function r5(e,t,n,r){const i=PX(t,n);if(!zN(i))return;const o=i.parent;172!==o.kind||r&&!q(r,o)||e.insertModifierBefore(t,138,o)}k7({errorCodes:n5,getCodeActions:function(e){const t=Tue.ChangeTracker.with(e,(t=>r5(t,e.sourceFile,e.span.start)));if(t.length>0)return[v7(t5,t,la.Prefix_with_declare,t5,la.Prefix_all_incorrect_property_declarations_with_declare)]},fixIds:[t5],getAllCodeActions:e=>{const t=new Set;return D7(e,n5,((e,n)=>r5(e,n.file,n.start,t)))}});var i5="addMissingInvocationForDecorator",o5=[la._0_accepts_too_few_arguments_to_be_used_as_a_decorator_here_Did_you_mean_to_call_it_first_and_write_0.code];function a5(e,t,n){const r=_c(PX(t,n),aD);un.assert(!!r,"Expected position to be owned by a decorator.");const i=XC.createCallExpression(r.expression,void 0,void 0);e.replaceNode(t,r.expression,i)}k7({errorCodes:o5,getCodeActions:function(e){const t=Tue.ChangeTracker.with(e,(t=>a5(t,e.sourceFile,e.span.start)));return[v7(i5,t,la.Call_decorator_expression,i5,la.Add_to_all_uncalled_decorators)]},fixIds:[i5],getAllCodeActions:e=>D7(e,o5,((e,t)=>a5(e,t.file,t.start)))});var s5="addMissingResolutionModeImportAttribute",c5=[la.Type_only_import_of_an_ECMAScript_module_from_a_CommonJS_module_must_have_a_resolution_mode_attribute.code,la.Type_import_of_an_ECMAScript_module_from_a_CommonJS_module_must_have_a_resolution_mode_attribute.code];function l5(e,t,n,r,i,o){var a,s,c;const l=_c(PX(t,n),en(nE,BD));un.assert(!!l,"Expected position to be owned by an ImportDeclaration or ImportType.");const _=0===BQ(t,o),u=hg(l),d=!u||(null==(a=bR(u.text,t.fileName,r.getCompilerOptions(),i,r.getModuleResolutionCache(),void 0,99).resolvedModule)?void 0:a.resolvedFileName)===(null==(c=null==(s=r.getResolvedModuleFromModuleSpecifier(u,t))?void 0:s.resolvedModule)?void 0:c.resolvedFileName),p=l.attributes?XC.updateImportAttributes(l.attributes,XC.createNodeArray([...l.attributes.elements,XC.createImportAttribute(XC.createStringLiteral("resolution-mode",_),XC.createStringLiteral(d?"import":"require",_))],l.attributes.elements.hasTrailingComma),l.attributes.multiLine):XC.createImportAttributes(XC.createNodeArray([XC.createImportAttribute(XC.createStringLiteral("resolution-mode",_),XC.createStringLiteral(d?"import":"require",_))]));272===l.kind?e.replaceNode(t,l,XC.updateImportDeclaration(l,l.modifiers,l.importClause,l.moduleSpecifier,p)):e.replaceNode(t,l,XC.updateImportTypeNode(l,l.argument,p,l.qualifier,l.typeArguments))}k7({errorCodes:c5,getCodeActions:function(e){const t=Tue.ChangeTracker.with(e,(t=>l5(t,e.sourceFile,e.span.start,e.program,e.host,e.preferences)));return[v7(s5,t,la.Add_resolution_mode_import_attribute,s5,la.Add_resolution_mode_import_attribute_to_all_type_only_imports_that_need_it)]},fixIds:[s5],getAllCodeActions:e=>D7(e,c5,((t,n)=>l5(t,n.file,n.start,e.program,e.host,e.preferences)))});var _5="addNameToNamelessParameter",u5=[la.Parameter_has_a_name_but_no_type_Did_you_mean_0_Colon_1.code];function d5(e,t,n){const r=PX(t,n),i=r.parent;if(!oD(i))return un.fail("Tried to add a parameter name to a non-parameter: "+un.formatSyntaxKind(r.kind));const o=i.parent.parameters.indexOf(i);un.assert(!i.type,"Tried to add a parameter name to a parameter that already had one."),un.assert(o>-1,"Parameter not found in parent parameter list.");let a=i.name.getEnd(),s=XC.createTypeReferenceNode(i.name,void 0),c=p5(t,i);for(;c;)s=XC.createArrayTypeNode(s),a=c.getEnd(),c=p5(t,c);const l=XC.createParameterDeclaration(i.modifiers,i.dotDotDotToken,"arg"+o,i.questionToken,i.dotDotDotToken&&!TD(s)?XC.createArrayTypeNode(s):s,i.initializer);e.replaceRange(t,Pb(i.getStart(t),a),l)}function p5(e,t){const n=LX(t.name,t.parent,e);if(n&&23===n.kind&&UD(n.parent)&&oD(n.parent.parent))return n.parent.parent}k7({errorCodes:u5,getCodeActions:function(e){const t=Tue.ChangeTracker.with(e,(t=>d5(t,e.sourceFile,e.span.start)));return[v7(_5,t,la.Add_parameter_name,_5,la.Add_names_to_all_parameters_without_names)]},fixIds:[_5],getAllCodeActions:e=>D7(e,u5,((e,t)=>d5(e,t.file,t.start)))});var f5="addOptionalPropertyUndefined";function m5(e,t){var n;if(e){if(cF(e.parent)&&64===e.parent.operatorToken.kind)return{source:e.parent.right,target:e.parent.left};if(VF(e.parent)&&e.parent.initializer)return{source:e.parent.initializer,target:e.parent.name};if(GD(e.parent)){const n=t.getSymbolAtLocation(e.parent.expression);if(!(null==n?void 0:n.valueDeclaration)||!s_(n.valueDeclaration.kind))return;if(!U_(e))return;const r=e.parent.arguments.indexOf(e);if(-1===r)return;const i=n.valueDeclaration.parameters[r].name;if(zN(i))return{source:e,target:i}}else if(ME(e.parent)&&zN(e.parent.name)||BE(e.parent)){const r=m5(e.parent.parent,t);if(!r)return;const i=t.getPropertyOfType(t.getTypeAtLocation(r.target),e.parent.name.text),o=null==(n=null==i?void 0:i.declarations)?void 0:n[0];if(!o)return;return{source:ME(e.parent)?e.parent.initializer:e.parent.name,target:o}}}}k7({errorCodes:[la.Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_type_of_the_target.code,la.Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_types_of_the_target_s_properties.code,la.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_types_of_the_target_s_properties.code],getCodeActions(e){const t=e.program.getTypeChecker(),n=function(e,t,n){var r,i;const o=m5(PZ(e,t),n);if(!o)return l;const{source:a,target:s}=o,c=function(e,t,n){return HD(t)&&!!n.getExactOptionalProperties(n.getTypeAtLocation(t.expression)).length&&n.getTypeAtLocation(e)===n.getUndefinedType()}(a,s,n)?n.getTypeAtLocation(s.expression):n.getTypeAtLocation(s);return(null==(i=null==(r=c.symbol)?void 0:r.declarations)?void 0:i.some((e=>hd(e).fileName.match(/\.d\.ts$/))))?l:n.getExactOptionalProperties(c)}(e.sourceFile,e.span,t);if(!n.length)return;const r=Tue.ChangeTracker.with(e,(e=>function(e,t){for(const n of t){const t=n.valueDeclaration;if(t&&(sD(t)||cD(t))&&t.type){const n=XC.createUnionTypeNode([...192===t.type.kind?t.type.types:[t.type],XC.createTypeReferenceNode("undefined")]);e.replaceNode(t.getSourceFile(),t.type,n)}}}(e,n)));return[y7(f5,r,la.Add_undefined_to_optional_property_type)]},fixIds:[f5]});var g5="annotateWithTypeFromJSDoc",h5=[la.JSDoc_types_may_be_moved_to_TypeScript_types.code];function y5(e,t){const n=PX(e,t);return tt(oD(n.parent)?n.parent.parent:n.parent,v5)}function v5(e){return function(e){return i_(e)||260===e.kind||171===e.kind||172===e.kind}(e)&&b5(e)}function b5(e){return i_(e)?e.parameters.some(b5)||!e.type&&!!nl(e):!e.type&&!!tl(e)}function x5(e,t,n){if(i_(n)&&(nl(n)||n.parameters.some((e=>!!tl(e))))){if(!n.typeParameters){const r=gv(n);r.length&&e.insertTypeParameters(t,n,r)}const r=tF(n)&&!yX(n,21,t);r&&e.insertNodeBefore(t,ge(n.parameters),XC.createToken(21));for(const r of n.parameters)if(!r.type){const n=tl(r);n&&e.tryInsertTypeAnnotation(t,r,$B(n,k5,v_))}if(r&&e.insertNodeAfter(t,ve(n.parameters),XC.createToken(22)),!n.type){const r=nl(n);r&&e.tryInsertTypeAnnotation(t,n,$B(r,k5,v_))}}else{const r=un.checkDefined(tl(n),"A JSDocType for this declaration should exist");un.assert(!n.type,"The JSDocType decl should have a type"),e.tryInsertTypeAnnotation(t,n,$B(r,k5,v_))}}function k5(e){switch(e.kind){case 312:case 313:return XC.createTypeReferenceNode("any",l);case 316:return function(e){return XC.createUnionTypeNode([$B(e.type,k5,v_),XC.createTypeReferenceNode("undefined",l)])}(e);case 315:return k5(e.type);case 314:return function(e){return XC.createUnionTypeNode([$B(e.type,k5,v_),XC.createTypeReferenceNode("null",l)])}(e);case 318:return function(e){return XC.createArrayTypeNode($B(e.type,k5,v_))}(e);case 317:return function(e){return XC.createFunctionTypeNode(l,e.parameters.map(S5),e.type??XC.createKeywordTypeNode(133))}(e);case 183:return function(e){let t=e.typeName,n=e.typeArguments;if(zN(e.typeName)){if(Im(e))return function(e){const t=XC.createParameterDeclaration(void 0,void 0,150===e.typeArguments[0].kind?"n":"s",void 0,XC.createTypeReferenceNode(150===e.typeArguments[0].kind?"number":"string",[]),void 0),n=XC.createTypeLiteralNode([XC.createIndexSignature(void 0,[t],e.typeArguments[1])]);return nw(n,1),n}(e);let r=e.typeName.text;switch(e.typeName.text){case"String":case"Boolean":case"Object":case"Number":r=r.toLowerCase();break;case"array":case"date":case"promise":r=r[0].toUpperCase()+r.slice(1)}t=XC.createIdentifier(r),n="Array"!==r&&"Promise"!==r||e.typeArguments?HB(e.typeArguments,k5,v_):XC.createNodeArray([XC.createTypeReferenceNode("any",l)])}return XC.createTypeReferenceNode(t,n)}(e);case 322:return function(e){const t=XC.createTypeLiteralNode(E(e.jsDocPropertyTags,(e=>XC.createPropertySignature(void 0,zN(e.name)?e.name:e.name.right,VT(e)?XC.createToken(58):void 0,e.typeExpression&&$B(e.typeExpression.type,k5,v_)||XC.createKeywordTypeNode(133)))));return nw(t,1),t}(e);default:const t=nJ(e,k5,void 0);return nw(t,1),t}}function S5(e){const t=e.parent.parameters.indexOf(e),n=318===e.type.kind&&t===e.parent.parameters.length-1,r=e.name||(n?"rest":"arg"+t),i=n?XC.createToken(26):e.dotDotDotToken;return XC.createParameterDeclaration(e.modifiers,i,r,e.questionToken,$B(e.type,k5,v_),e.initializer)}k7({errorCodes:h5,getCodeActions(e){const t=y5(e.sourceFile,e.span.start);if(!t)return;const n=Tue.ChangeTracker.with(e,(n=>x5(n,e.sourceFile,t)));return[v7(g5,n,la.Annotate_with_type_from_JSDoc,g5,la.Annotate_everything_with_types_from_JSDoc)]},fixIds:[g5],getAllCodeActions:e=>D7(e,h5,((e,t)=>{const n=y5(t.file,t.start);n&&x5(e,t.file,n)}))});var T5="convertFunctionToEs6Class",C5=[la.This_constructor_function_may_be_converted_to_a_class_declaration.code];function w5(e,t,n,r,i,o){const a=r.getSymbolAtLocation(PX(t,n));if(!(a&&a.valueDeclaration&&19&a.flags))return;const s=a.valueDeclaration;if($F(s)||eF(s))e.replaceNode(t,s,function(e){const t=c(a);e.body&&t.unshift(XC.createConstructorDeclaration(void 0,e.parameters,e.body));const n=N5(e,95);return XC.createClassDeclaration(n,e.name,void 0,void 0,t)}(s));else if(VF(s)){const n=function(e){const t=e.initializer;if(!t||!eF(t)||!zN(e.name))return;const n=c(e.symbol);t.body&&n.unshift(XC.createConstructorDeclaration(void 0,t.parameters,t.body));const r=N5(e.parent.parent,95);return XC.createClassDeclaration(r,e.name,void 0,void 0,n)}(s);if(!n)return;const r=s.parent.parent;WF(s.parent)&&s.parent.declarations.length>1?(e.delete(t,s),e.insertNodeAfter(t,r,n)):e.replaceNode(t,r,n)}function c(n){const r=[];return n.exports&&n.exports.forEach((e=>{if("prototype"===e.name&&e.declarations){const t=e.declarations[0];1===e.declarations.length&&HD(t)&&cF(t.parent)&&64===t.parent.operatorToken.kind&&$D(t.parent.right)&&a(t.parent.right.symbol,void 0,r)}else a(e,[XC.createToken(126)],r)})),n.members&&n.members.forEach(((i,o)=>{var s,c,l,_;if("constructor"===o&&i.valueDeclaration){const r=null==(_=null==(l=null==(c=null==(s=n.exports)?void 0:s.get("prototype"))?void 0:c.declarations)?void 0:l[0])?void 0:_.parent;r&&cF(r)&&$D(r.right)&&$(r.right.properties,D5)||e.delete(t,i.valueDeclaration.parent)}else a(i,void 0,r)})),r;function a(n,r,a){if(!(8192&n.flags||4096&n.flags))return;const s=n.valueDeclaration,c=s.parent,l=c.right;if(u=l,!(kx(_=s)?HD(_)&&D5(_)||n_(u):v(_.properties,(e=>!!(_D(e)||dl(e)||ME(e)&&eF(e.initializer)&&e.name||D5(e))))))return;var _,u;if($(a,(e=>{const t=Tc(e);return!(!t||!zN(t)||mc(t)!==hc(n))})))return;const p=c.parent&&244===c.parent.kind?c.parent:c;if(e.delete(t,p),l)if(kx(s)&&(eF(l)||tF(l))){const e=BQ(t,i),n=function(e,t,n){if(HD(e))return e.name;const r=e.argumentExpression;return kN(r)?r:Lu(r)?fs(r.text,hk(t))?XC.createIdentifier(r.text):NN(r)?XC.createStringLiteral(r.text,0===n):r:void 0}(s,o,e);n&&f(a,l,n)}else{if(!$D(l)){if(Dm(t))return;if(!HD(s))return;const e=XC.createPropertyDeclaration(r,s.name,void 0,void 0,l);return KY(c.parent,e,t),void a.push(e)}d(l.properties,(e=>{(_D(e)||dl(e))&&a.push(e),ME(e)&&eF(e.initializer)&&f(a,e.initializer,e.name),D5(e)}))}else a.push(XC.createPropertyDeclaration(r,n.name,void 0,void 0,void 0));function f(e,n,i){return eF(n)?function(e,n,i){const o=K(r,N5(n,134)),a=XC.createMethodDeclaration(o,void 0,i,void 0,void 0,n.parameters,void 0,n.body);return KY(c,a,t),void e.push(a)}(e,n,i):function(e,n,i){const o=n.body;let a;a=241===o.kind?o:XC.createBlock([XC.createReturnStatement(o)]);const s=K(r,N5(n,134)),l=XC.createMethodDeclaration(s,void 0,i,void 0,void 0,n.parameters,void 0,a);KY(c,l,t),e.push(l)}(e,n,i)}}}}function N5(e,t){return rI(e)?N(e.modifiers,(e=>e.kind===t)):void 0}function D5(e){return!!e.name&&!(!zN(e.name)||"constructor"!==e.name.text)}k7({errorCodes:C5,getCodeActions(e){const t=Tue.ChangeTracker.with(e,(t=>w5(t,e.sourceFile,e.span.start,e.program.getTypeChecker(),e.preferences,e.program.getCompilerOptions())));return[v7(T5,t,la.Convert_function_to_an_ES2015_class,T5,la.Convert_all_constructor_functions_to_classes)]},fixIds:[T5],getAllCodeActions:e=>D7(e,C5,((t,n)=>w5(t,n.file,n.start,e.program.getTypeChecker(),e.preferences,e.program.getCompilerOptions())))});var F5="convertToAsyncFunction",E5=[la.This_may_be_converted_to_an_async_function.code],P5=!0;function A5(e,t,n,r){const i=PX(t,n);let o;if(o=zN(i)&&VF(i.parent)&&i.parent.initializer&&i_(i.parent.initializer)?i.parent.initializer:tt(Hf(PX(t,n)),w1),!o)return;const a=new Map,s=Fm(o),c=function(e,t){if(!e.body)return new Set;const n=new Set;return PI(e.body,(function e(r){I5(r,t,"then")?(n.add(jB(r)),d(r.arguments,e)):I5(r,t,"catch")||I5(r,t,"finally")?(n.add(jB(r)),PI(r,e)):j5(r,t)?n.add(jB(r)):PI(r,e)})),n}(o,r),_=function(e,t,n){const r=new Map,i=$e();return PI(e,(function e(o){if(!zN(o))return void PI(o,e);const a=t.getSymbolAtLocation(o);if(a){const e=G5(t.getTypeAtLocation(o),t),s=RB(a).toString();if(!e||oD(o.parent)||i_(o.parent)||n.has(s)){if(o.parent&&(oD(o.parent)||VF(o.parent)||VD(o.parent))){const e=o.text,t=i.get(e);if(t&&t.some((e=>e!==a))){const t=R5(o,i);r.set(s,t.identifier),n.set(s,t),i.add(e,a)}else{const t=LY(o);n.set(s,Z5(t)),i.add(e,a)}}}else{const t=fe(e.parameters),r=(null==t?void 0:t.valueDeclaration)&&oD(t.valueDeclaration)&&tt(t.valueDeclaration.name,zN)||XC.createUniqueName("result",16),o=R5(r,i);n.set(s,o),i.add(r.text,a)}}})),jY(e,!0,(e=>{if(VD(e)&&zN(e.name)&&qD(e.parent)){const n=t.getSymbolAtLocation(e.name),i=n&&r.get(String(RB(n)));if(i&&i.text!==(e.name||e.propertyName).getText())return XC.createBindingElement(e.dotDotDotToken,e.propertyName||e.name,i,e.initializer)}else if(zN(e)){const n=t.getSymbolAtLocation(e),i=n&&r.get(String(RB(n)));if(i)return XC.createIdentifier(i.text)}}))}(o,r,a);if(!v1(_,r))return;const u=_.body&&CF(_.body)?function(e,t){const n=[];return wf(e,(e=>{b1(e,t)&&n.push(e)})),n}(_.body,r):l,p={checker:r,synthNamesMap:a,setOfExpressionsToReturn:c,isInJSFile:s};if(!u.length)return;const f=Xa(t.text,Lb(o).pos);e.insertModifierAt(t,f,134,{suffix:" "});for(const n of u)if(PI(n,(function r(i){if(GD(i)){const r=J5(i,i,p,!1);if(M5())return!0;e.replaceNodeWithNodes(t,n,r)}else if(!n_(i)&&(PI(i,r),M5()))return!0})),M5())return}function I5(e,t,n){if(!GD(e))return!1;const r=UG(e,n)&&t.getTypeAtLocation(e);return!(!r||!t.getPromisedTypeOfPromise(r))}function O5(e,t){return!!(4&mx(e))&&e.target===t}function L5(e,t,n){if("finally"===e.expression.name.escapedText)return;const r=n.getTypeAtLocation(e.expression.expression);if(O5(r,n.getPromiseType())||O5(r,n.getPromiseLikeType())){if("then"!==e.expression.name.escapedText)return pe(e.typeArguments,0);if(t===pe(e.arguments,0))return pe(e.typeArguments,0);if(t===pe(e.arguments,1))return pe(e.typeArguments,1)}}function j5(e,t){return!!U_(e)&&!!t.getPromisedTypeOfPromise(t.getTypeAtLocation(e))}function R5(e,t){const n=(t.get(e.text)||l).length;return Z5(0===n?e:XC.createIdentifier(e.text+"_"+n))}function M5(){return!P5}function B5(){return P5=!1,l}function J5(e,t,n,r,i){if(I5(t,n.checker,"then"))return function(e,t,n,r,i,o){if(!t||z5(r,t))return V5(e,n,r,i,o);if(n&&!z5(r,n))return B5();const a=Q5(t,r),s=J5(e.expression.expression,e.expression.expression,r,!0,a);if(M5())return B5();const c=H5(t,i,o,a,e,r);return M5()?B5():K(s,c)}(t,pe(t.arguments,0),pe(t.arguments,1),n,r,i);if(I5(t,n.checker,"catch"))return V5(t,pe(t.arguments,0),n,r,i);if(I5(t,n.checker,"finally"))return function(e,t,n,r,i){if(!t||z5(n,t))return J5(e,e.expression.expression,n,r,i);const o=q5(e,n,i),a=J5(e,e.expression.expression,n,!0,o);if(M5())return B5();const s=H5(t,r,void 0,void 0,e,n);if(M5())return B5();const c=XC.createBlock(a),l=XC.createBlock(s);return U5(e,n,XC.createTryStatement(c,void 0,l),o,i)}(t,pe(t.arguments,0),n,r,i);if(HD(t))return J5(e,t.expression,n,r,i);const o=n.checker.getTypeAtLocation(t);return o&&n.checker.getPromisedTypeOfPromise(o)?(un.assertNode(lc(t).parent,HD),function(e,t,n,r,i){if(o9(e,n)){let e=LY(t);return r&&(e=XC.createAwaitExpression(e)),[XC.createReturnStatement(e)]}return W5(i,XC.createAwaitExpression(t),void 0)}(e,t,n,r,i)):B5()}function z5({checker:e},t){if(106===t.kind)return!0;if(zN(t)&&!Vl(t)&&"undefined"===mc(t)){const n=e.getSymbolAtLocation(t);return!n||e.isUndefinedSymbol(n)}return!1}function q5(e,t,n){let r;return n&&!o9(e,t)&&(i9(n)?(r=n,t.synthNamesMap.forEach(((e,r)=>{if(e.identifier.text===n.identifier.text){const e=(i=n,Z5(XC.createUniqueName(i.identifier.text,16)));t.synthNamesMap.set(r,e)}var i}))):r=Z5(XC.createUniqueName("result",16),n.types),r9(r)),r}function U5(e,t,n,r,i){const o=[];let a;if(r&&!o9(e,t)){a=LY(r9(r));const e=r.types,n=t.checker.getUnionType(e,2),i=t.isInJSFile?void 0:t.checker.typeToTypeNode(n,void 0,void 0),s=[XC.createVariableDeclaration(a,void 0,i)],c=XC.createVariableStatement(void 0,XC.createVariableDeclarationList(s,1));o.push(c)}return o.push(n),i&&a&&1===i.kind&&o.push(XC.createVariableStatement(void 0,XC.createVariableDeclarationList([XC.createVariableDeclaration(LY(n9(i)),void 0,void 0,a)],2))),o}function V5(e,t,n,r,i){if(!t||z5(n,t))return J5(e,e.expression.expression,n,r,i);const o=Q5(t,n),a=q5(e,n,i),s=J5(e,e.expression.expression,n,!0,a);if(M5())return B5();const c=H5(t,r,a,o,e,n);if(M5())return B5();const l=XC.createBlock(s),_=XC.createCatchClause(o&&LY(t9(o)),XC.createBlock(c));return U5(e,n,XC.createTryStatement(l,_,void 0),a,i)}function W5(e,t,n){return!e||Y5(e)?[XC.createExpressionStatement(t)]:i9(e)&&e.hasBeenDeclared?[XC.createExpressionStatement(XC.createAssignment(LY(e9(e)),t))]:[XC.createVariableStatement(void 0,XC.createVariableDeclarationList([XC.createVariableDeclaration(LY(t9(e)),void 0,n,t)],2))]}function $5(e,t){if(t&&e){const n=XC.createUniqueName("result",16);return[...W5(Z5(n),e,t),XC.createReturnStatement(n)]}return[XC.createReturnStatement(e)]}function H5(e,t,n,r,i,o){var a;switch(e.kind){case 106:break;case 211:case 80:if(!r)break;const s=XC.createCallExpression(LY(e),void 0,i9(r)?[e9(r)]:[]);if(o9(i,o))return $5(s,L5(i,e,o.checker));const c=o.checker.getTypeAtLocation(e),_=o.checker.getSignaturesOfType(c,0);if(!_.length)return B5();const u=_[0].getReturnType(),d=W5(n,XC.createAwaitExpression(s),L5(i,e,o.checker));return n&&n.types.push(o.checker.getAwaitedType(u)||u),d;case 218:case 219:{const r=e.body,s=null==(a=G5(o.checker.getTypeAtLocation(e),o.checker))?void 0:a.getReturnType();if(CF(r)){let a=[],c=!1;for(const l of r.statements)if(RF(l))if(c=!0,b1(l,o.checker))a=a.concat(X5(o,l,t,n));else{const t=s&&l.expression?K5(o.checker,s,l.expression):l.expression;a.push(...$5(t,L5(i,e,o.checker)))}else{if(t&&wf(l,ot))return B5();a.push(l)}return o9(i,o)?a.map((e=>LY(e))):function(e,t,n,r){const i=[];for(const r of e)if(RF(r)){if(r.expression){const e=j5(r.expression,n.checker)?XC.createAwaitExpression(r.expression):r.expression;void 0===t?i.push(XC.createExpressionStatement(e)):i9(t)&&t.hasBeenDeclared?i.push(XC.createExpressionStatement(XC.createAssignment(e9(t),e))):i.push(XC.createVariableStatement(void 0,XC.createVariableDeclarationList([XC.createVariableDeclaration(t9(t),void 0,void 0,e)],2)))}}else i.push(LY(r));return r||void 0===t||i.push(XC.createVariableStatement(void 0,XC.createVariableDeclarationList([XC.createVariableDeclaration(t9(t),void 0,void 0,XC.createIdentifier("undefined"))],2))),i}(a,n,o,c)}{const a=x1(r,o.checker)?X5(o,XC.createReturnStatement(r),t,n):l;if(a.length>0)return a;if(s){const t=K5(o.checker,s,r);if(o9(i,o))return $5(t,L5(i,e,o.checker));{const e=W5(n,t,void 0);return n&&n.types.push(o.checker.getAwaitedType(s)||s),e}}return B5()}}default:return B5()}return l}function K5(e,t,n){const r=LY(n);return e.getPromisedTypeOfPromise(t)?XC.createAwaitExpression(r):r}function G5(e,t){return ye(t.getSignaturesOfType(e,0))}function X5(e,t,n,r){let i=[];return PI(t,(function t(o){if(GD(o)){const t=J5(o,o,e,n,r);if(i=i.concat(t),i.length>0)return}else n_(o)||PI(o,t)})),i}function Q5(e,t){const n=[];let r;if(i_(e)?e.parameters.length>0&&(r=function e(t){if(zN(t))return i(t);return function(e,t=l,n=[]){return{kind:1,bindingPattern:e,elements:t,types:n}}(t,O(t.elements,(t=>fF(t)?[]:[e(t.name)])))}(e.parameters[0].name)):zN(e)?r=i(e):HD(e)&&zN(e.name)&&(r=i(e.name)),r&&(!("identifier"in r)||"undefined"!==r.identifier.text))return r;function i(e){var r;const i=function(e){var n;return(null==(n=tt(e,ou))?void 0:n.symbol)??t.checker.getSymbolAtLocation(e)}((r=e).original?r.original:r);return i&&t.synthNamesMap.get(RB(i).toString())||Z5(e,n)}}function Y5(e){return!e||(i9(e)?!e.identifier.text:v(e.elements,Y5))}function Z5(e,t=[]){return{kind:0,identifier:e,types:t,hasBeenDeclared:!1,hasBeenReferenced:!1}}function e9(e){return e.hasBeenReferenced=!0,e.identifier}function t9(e){return i9(e)?r9(e):n9(e)}function n9(e){for(const t of e.elements)t9(t);return e.bindingPattern}function r9(e){return e.hasBeenDeclared=!0,e.identifier}function i9(e){return 0===e.kind}function o9(e,t){return!!e.original&&t.setOfExpressionsToReturn.has(jB(e.original))}function a9(e,t,n,r,i){var o;for(const a of e.imports){const s=null==(o=n.getResolvedModuleFromModuleSpecifier(a,e))?void 0:o.resolvedModule;if(!s||s.resolvedFileName!==t.fileName)continue;const c=yg(a);switch(c.kind){case 271:r.replaceNode(e,c,LQ(c.name,void 0,a,i));break;case 213:Om(c,!1)&&r.replaceNode(e,c,XC.createPropertyAccessExpression(LY(c),"default"))}}}function s9(e,t){e.forEachChild((function n(r){if(HD(r)&&LM(e,r.expression)&&zN(r.name)){const{parent:e}=r;t(r,cF(e)&&e.left===r&&64===e.operatorToken.kind)}r.forEachChild(n)}))}function c9(e,t,n,r,i,o,a,s,c){switch(t.kind){case 243:return l9(e,t,r,n,i,o,c),!1;case 244:{const{expression:i}=t;switch(i.kind){case 213:return Om(i,!0)&&r.replaceNode(e,t,LQ(void 0,void 0,i.arguments[0],c)),!1;case 226:{const{operatorToken:t}=i;return 64===t.kind&&function(e,t,n,r,i,o){const{left:a,right:s}=n;if(!HD(a))return!1;if(LM(e,a)){if(!LM(e,s)){const i=$D(s)?function(e,t){const n=M(e.properties,(e=>{switch(e.kind){case 177:case 178:case 304:case 305:return;case 303:return zN(e.name)?function(e,t,n){const r=[XC.createToken(95)];switch(t.kind){case 218:{const{name:n}=t;if(n&&n.text!==e)return i()}case 219:return g9(e,r,t,n);case 231:return function(e,t,n,r){return XC.createClassDeclaration(K(t,MY(n.modifiers)),e,MY(n.typeParameters),MY(n.heritageClauses),d9(n.members,r))}(e,r,t,n);default:return i()}function i(){return v9(r,XC.createIdentifier(e),d9(t,n))}}(e.name.text,e.initializer,t):void 0;case 174:return zN(e.name)?g9(e.name.text,[XC.createToken(95)],e,t):void 0;default:un.assertNever(e,`Convert to ES6 got invalid prop kind ${e.kind}`)}}));return n&&[n,!1]}(s,o):Om(s,!0)?function(e,t){const n=e.text,r=t.getSymbolAtLocation(e),i=r?r.exports:_;return i.has("export=")?[[u9(n)],!0]:i.has("default")?i.size>1?[[_9(n),u9(n)],!0]:[[u9(n)],!0]:[[_9(n)],!1]}(s.arguments[0],t):void 0;return i?(r.replaceNodeWithNodes(e,n.parent,i[0]),i[1]):(r.replaceRangeWithText(e,Pb(a.getStart(e),s.pos),"export default"),!0)}r.delete(e,n.parent)}else LM(e,a.expression)&&function(e,t,n,r){const{text:i}=t.left.name,o=r.get(i);if(void 0!==o){const r=[v9(void 0,o,t.right),b9([XC.createExportSpecifier(!1,o,i)])];n.replaceNodeWithNodes(e,t.parent,r)}else!function({left:e,right:t,parent:n},r,i){const o=e.name.text;if(!(eF(t)||tF(t)||pF(t))||t.name&&t.name.text!==o)i.replaceNodeRangeWithNodes(r,e.expression,yX(e,25,r),[XC.createToken(95),XC.createToken(87)],{joiner:" ",suffix:" "});else{i.replaceRange(r,{pos:e.getStart(r),end:t.getStart(r)},XC.createToken(95),{suffix:" "}),t.name||i.insertName(r,t,o);const a=yX(n,27,r);a&&i.delete(r,a)}}(t,e,n)}(e,n,r,i);return!1}(e,n,i,r,a,s)}}}default:return!1}}function l9(e,t,n,r,i,o,a){const{declarationList:s}=t;let c=!1;const l=E(s.declarations,(t=>{const{name:n,initializer:l}=t;if(l){if(LM(e,l))return c=!0,x9([]);if(Om(l,!0))return c=!0,function(e,t,n,r,i,o){switch(e.kind){case 206:{const n=M(e.elements,(e=>e.dotDotDotToken||e.initializer||e.propertyName&&!zN(e.propertyName)||!zN(e.name)?void 0:y9(e.propertyName&&e.propertyName.text,e.name.text)));if(n)return x9([LQ(void 0,n,t,o)])}case 207:{const n=p9(RZ(t.text,i),r);return x9([LQ(XC.createIdentifier(n),void 0,t,o),v9(void 0,LY(e),XC.createIdentifier(n))])}case 80:return function(e,t,n,r,i){const o=n.getSymbolAtLocation(e),a=new Map;let s,c=!1;for(const t of r.original.get(e.text)){if(n.getSymbolAtLocation(t)!==o||t===e)continue;const{parent:i}=t;if(HD(i)){const{name:{text:e}}=i;if("default"===e){c=!0;const e=t.getText();(s??(s=new Map)).set(i,XC.createIdentifier(e))}else{un.assert(i.expression===t,"Didn't expect expression === use");let n=a.get(e);void 0===n&&(n=p9(e,r),a.set(e,n)),(s??(s=new Map)).set(i,XC.createIdentifier(n))}}else c=!0}const l=0===a.size?void 0:Oe(P(a.entries(),(([e,t])=>XC.createImportSpecifier(!1,e===t?void 0:XC.createIdentifier(e),XC.createIdentifier(t)))));return l||(c=!0),x9([LQ(c?LY(e):void 0,l,t,i)],s)}(e,t,n,r,o);default:return un.assertNever(e,`Convert to ES module got invalid name kind ${e.kind}`)}}(n,l.arguments[0],r,i,o,a);if(HD(l)&&Om(l.expression,!0))return c=!0,function(e,t,n,r,i){switch(e.kind){case 206:case 207:{const o=p9(t,r);return x9([h9(o,t,n,i),v9(void 0,e,XC.createIdentifier(o))])}case 80:return x9([h9(e.text,t,n,i)]);default:return un.assertNever(e,`Convert to ES module got invalid syntax form ${e.kind}`)}}(n,l.name.text,l.expression.arguments[0],i,a)}return x9([XC.createVariableStatement(void 0,XC.createVariableDeclarationList([t],s.flags))])}));if(c){let r;return n.replaceNodeWithNodes(e,t,O(l,(e=>e.newImports))),d(l,(e=>{e.useSitesToUnqualify&&rd(e.useSitesToUnqualify,r??(r=new Map))})),r}}function _9(e){return b9(void 0,e)}function u9(e){return b9([XC.createExportSpecifier(!1,void 0,"default")],e)}function d9(e,t){return t&&$(Oe(t.keys()),(t=>Gb(e,t)))?Qe(e)?BY(e,!0,n):jY(e,!0,n):e;function n(e){if(211===e.kind){const n=t.get(e);return t.delete(e),n}}}function p9(e,t){for(;t.original.has(e)||t.additional.has(e);)e=`_${e}`;return t.additional.add(e),e}function f9(e){const t=$e();return m9(e,(e=>t.add(e.text,e))),t}function m9(e,t){zN(e)&&function(e){const{parent:t}=e;switch(t.kind){case 211:return t.name!==e;case 208:case 276:return t.propertyName!==e;default:return!0}}(e)&&t(e),e.forEachChild((e=>m9(e,t)))}function g9(e,t,n,r){return XC.createFunctionDeclaration(K(t,MY(n.modifiers)),LY(n.asteriskToken),e,MY(n.typeParameters),MY(n.parameters),LY(n.type),XC.converters.convertToFunctionBlock(d9(n.body,r)))}function h9(e,t,n,r){return"default"===t?LQ(XC.createIdentifier(e),void 0,n,r):LQ(void 0,[y9(t,e)],n,r)}function y9(e,t){return XC.createImportSpecifier(!1,void 0!==e&&e!==t?XC.createIdentifier(e):void 0,XC.createIdentifier(t))}function v9(e,t,n){return XC.createVariableStatement(e,XC.createVariableDeclarationList([XC.createVariableDeclaration(t,void 0,void 0,n)],2))}function b9(e,t){return XC.createExportDeclaration(void 0,!1,e&&XC.createNamedExports(e),void 0===t?void 0:XC.createStringLiteral(t))}function x9(e,t){return{newImports:e,useSitesToUnqualify:t}}k7({errorCodes:E5,getCodeActions(e){P5=!0;const t=Tue.ChangeTracker.with(e,(t=>A5(t,e.sourceFile,e.span.start,e.program.getTypeChecker())));return P5?[v7(F5,t,la.Convert_to_async_function,F5,la.Convert_all_to_async_functions)]:[]},fixIds:[F5],getAllCodeActions:e=>D7(e,E5,((t,n)=>A5(t,n.file,n.start,e.program.getTypeChecker())))}),k7({errorCodes:[la.File_is_a_CommonJS_module_it_may_be_converted_to_an_ES_module.code],getCodeActions(e){const{sourceFile:t,program:n,preferences:r}=e;return[y7("convertToEsModule",Tue.ChangeTracker.with(e,(e=>{const i=function(e,t,n,r,i){const o={original:f9(e),additional:new Set},a=function(e,t,n){const r=new Map;return s9(e,(e=>{const{text:i}=e.name;r.has(i)||!Eh(e.name)&&!t.resolveName(i,e,111551,!0)||r.set(i,p9(`_${i}`,n))})),r}(e,t,o);!function(e,t,n){s9(e,((r,i)=>{if(i)return;const{text:o}=r.name;n.replaceNode(e,r,XC.createIdentifier(t.get(o)||o))}))}(e,a,n);let s,c=!1;for(const a of N(e.statements,wF)){const c=l9(e,a,n,t,o,r,i);c&&rd(c,s??(s=new Map))}for(const l of N(e.statements,(e=>!wF(e)))){const _=c9(e,l,t,n,o,r,a,s,i);c=c||_}return null==s||s.forEach(((t,r)=>{n.replaceNode(e,r,t)})),c}(t,n.getTypeChecker(),e,hk(n.getCompilerOptions()),BQ(t,r));if(i)for(const i of n.getSourceFiles())a9(i,t,n,e,BQ(i,r))})),la.Convert_to_ES_module)]}});var k9="correctQualifiedNameToIndexedAccessType",S9=[la.Cannot_access_0_1_because_0_is_a_type_but_not_a_namespace_Did_you_mean_to_retrieve_the_type_of_the_property_1_in_0_with_0_1.code];function T9(e,t){const n=_c(PX(e,t),nD);return un.assert(!!n,"Expected position to be owned by a qualified name."),zN(n.left)?n:void 0}function C9(e,t,n){const r=n.right.text,i=XC.createIndexedAccessTypeNode(XC.createTypeReferenceNode(n.left,void 0),XC.createLiteralTypeNode(XC.createStringLiteral(r)));e.replaceNode(t,n,i)}k7({errorCodes:S9,getCodeActions(e){const t=T9(e.sourceFile,e.span.start);if(!t)return;const n=Tue.ChangeTracker.with(e,(n=>C9(n,e.sourceFile,t))),r=`${t.left.text}["${t.right.text}"]`;return[v7(k9,n,[la.Rewrite_as_the_indexed_access_type_0,r],k9,la.Rewrite_all_as_indexed_access_types)]},fixIds:[k9],getAllCodeActions:e=>D7(e,S9,((e,t)=>{const n=T9(t.file,t.start);n&&C9(e,t.file,n)}))});var w9=[la.Re_exporting_a_type_when_0_is_enabled_requires_using_export_type.code],N9="convertToTypeOnlyExport";function D9(e,t){return tt(PX(t,e.start).parent,gE)}function F9(e,t,n){if(!t)return;const r=t.parent,i=r.parent,o=function(e,t){const n=e.parent;if(1===n.elements.length)return n.elements;const r=FZ(pQ(n),t.program.getSemanticDiagnostics(t.sourceFile,t.cancellationToken));return N(n.elements,(t=>{var n;return t===e||(null==(n=DZ(t,r))?void 0:n.code)===w9[0]}))}(t,n);if(o.length===r.elements.length)e.insertModifierBefore(n.sourceFile,156,r);else{const t=XC.updateExportDeclaration(i,i.modifiers,!1,XC.updateNamedExports(r,N(r.elements,(e=>!T(o,e)))),i.moduleSpecifier,void 0),a=XC.createExportDeclaration(void 0,!0,XC.createNamedExports(o),i.moduleSpecifier,void 0);e.replaceNode(n.sourceFile,i,t,{leadingTriviaOption:Tue.LeadingTriviaOption.IncludeAll,trailingTriviaOption:Tue.TrailingTriviaOption.Exclude}),e.insertNodeAfter(n.sourceFile,i,a)}}k7({errorCodes:w9,getCodeActions:function(e){const t=Tue.ChangeTracker.with(e,(t=>F9(t,D9(e.span,e.sourceFile),e)));if(t.length)return[v7(N9,t,la.Convert_to_type_only_export,N9,la.Convert_all_re_exported_types_to_type_only_exports)]},fixIds:[N9],getAllCodeActions:function(e){const t=new Set;return D7(e,w9,((n,r)=>{const i=D9(r,e.sourceFile);i&&vx(t,jB(i.parent.parent))&&F9(n,i,e)}))}});var E9=[la._0_is_a_type_and_must_be_imported_using_a_type_only_import_when_verbatimModuleSyntax_is_enabled.code,la._0_resolves_to_a_type_only_declaration_and_must_be_imported_using_a_type_only_import_when_verbatimModuleSyntax_is_enabled.code],P9="convertToTypeOnlyImport";function A9(e,t){const{parent:n}=PX(e,t);return dE(n)||nE(n)&&n.importClause?n:void 0}function I9(e,t,n){if(e.parent.parent.name)return!1;const r=e.parent.elements.filter((e=>!e.isTypeOnly));if(1===r.length)return!0;const i=n.getTypeChecker();for(const e of r)if(ice.Core.eachSymbolReferenceInFile(e.name,i,t,(e=>{const t=i.getSymbolAtLocation(e);return!!t&&i.symbolIsValue(t)||!yT(e)})))return!1;return!0}function O9(e,t,n){var r;if(dE(n))e.replaceNode(t,n,XC.updateImportSpecifier(n,!0,n.propertyName,n.name));else{const i=n.importClause;if(i.name&&i.namedBindings)e.replaceNodeWithNodes(t,n,[XC.createImportDeclaration(MY(n.modifiers,!0),XC.createImportClause(!0,LY(i.name,!0),void 0),LY(n.moduleSpecifier,!0),LY(n.attributes,!0)),XC.createImportDeclaration(MY(n.modifiers,!0),XC.createImportClause(!0,void 0,LY(i.namedBindings,!0)),LY(n.moduleSpecifier,!0),LY(n.attributes,!0))]);else{const o=275===(null==(r=i.namedBindings)?void 0:r.kind)?XC.updateNamedImports(i.namedBindings,A(i.namedBindings.elements,(e=>XC.updateImportSpecifier(e,!1,e.propertyName,e.name)))):i.namedBindings,a=XC.updateImportDeclaration(n,n.modifiers,XC.updateImportClause(i,!0,i.name,o),n.moduleSpecifier,n.attributes);e.replaceNode(t,n,a)}}}k7({errorCodes:E9,getCodeActions:function(e){var t;const n=A9(e.sourceFile,e.span.start);if(n){const r=Tue.ChangeTracker.with(e,(t=>O9(t,e.sourceFile,n))),i=276===n.kind&&nE(n.parent.parent.parent)&&I9(n,e.sourceFile,e.program)?Tue.ChangeTracker.with(e,(t=>O9(t,e.sourceFile,n.parent.parent.parent))):void 0,o=v7(P9,r,276===n.kind?[la.Use_type_0,(null==(t=n.propertyName)?void 0:t.text)??n.name.text]:la.Use_import_type,P9,la.Fix_all_with_type_only_imports);return $(i)?[y7(P9,i,la.Use_import_type),o]:[o]}},fixIds:[P9],getAllCodeActions:function(e){const t=new Set;return D7(e,E9,((n,r)=>{const i=A9(r.file,r.start);272!==(null==i?void 0:i.kind)||t.has(i)?276===(null==i?void 0:i.kind)&&nE(i.parent.parent.parent)&&!t.has(i.parent.parent.parent)&&I9(i,r.file,e.program)?(O9(n,r.file,i.parent.parent.parent),t.add(i.parent.parent.parent)):276===(null==i?void 0:i.kind)&&O9(n,r.file,i):(O9(n,r.file,i),t.add(i))}))}});var L9="convertTypedefToType",j9=[la.JSDoc_typedef_may_be_converted_to_TypeScript_type.code];function R9(e,t,n,r,i=!1){if(!CP(t))return;const o=function(e){var t;const{typeExpression:n}=e;if(!n)return;const r=null==(t=e.name)?void 0:t.getText();return r?322===n.kind?function(e,t){const n=B9(t);if($(n))return XC.createInterfaceDeclaration(void 0,e,void 0,void 0,n)}(r,n):309===n.kind?function(e,t){const n=LY(t.type);if(n)return XC.createTypeAliasDeclaration(void 0,XC.createIdentifier(e),void 0,n)}(r,n):void 0:void 0}(t);if(!o)return;const a=t.parent,{leftSibling:s,rightSibling:c}=function(e){const t=e.parent,n=t.getChildCount()-1,r=t.getChildren().findIndex((t=>t.getStart()===e.getStart()&&t.getEnd()===e.getEnd()));return{leftSibling:r>0?t.getChildAt(r-1):void 0,rightSibling:r0;e--)if(!/[*/\s]/.test(r.substring(e-1,e)))return t+e;return n}function B9(e){const t=e.jsDocPropertyTags;if($(t))return B(t,(e=>{var t;const n=function(e){return 80===e.name.kind?e.name.text:e.name.right.text}(e),r=null==(t=e.typeExpression)?void 0:t.type,i=e.isBracketed;let o;if(r&&oP(r)){const e=B9(r);o=XC.createTypeLiteralNode(e)}else r&&(o=LY(r));if(o&&n){const e=i?XC.createToken(58):void 0;return XC.createPropertySignature(void 0,n,e,o)}}))}function J9(e){return Nu(e)?O(e.jsDoc,(e=>{var t;return null==(t=e.tags)?void 0:t.filter((e=>CP(e)))})):[]}k7({fixIds:[L9],errorCodes:j9,getCodeActions(e){const t=kY(e.host,e.formatContext.options),n=PX(e.sourceFile,e.span.start);if(!n)return;const r=Tue.ChangeTracker.with(e,(r=>R9(r,n,e.sourceFile,t)));return r.length>0?[v7(L9,r,la.Convert_typedef_to_TypeScript_type,L9,la.Convert_all_typedef_to_TypeScript_types)]:void 0},getAllCodeActions:e=>D7(e,j9,((t,n)=>{const r=kY(e.host,e.formatContext.options),i=PX(n.file,n.start);i&&R9(t,i,n.file,r,!0)}))});var z9="convertLiteralTypeToMappedType",q9=[la._0_only_refers_to_a_type_but_is_being_used_as_a_value_here_Did_you_mean_to_use_1_in_0.code];function U9(e,t){const n=PX(e,t);if(zN(n)){const t=nt(n.parent.parent,sD),r=n.getText(e);return{container:nt(t.parent,SD),typeNode:t.type,constraint:r,name:"K"===r?"P":"K"}}}function V9(e,t,{container:n,typeNode:r,constraint:i,name:o}){e.replaceNode(t,n,XC.createMappedTypeNode(void 0,XC.createTypeParameterDeclaration(void 0,o,XC.createTypeReferenceNode(i)),void 0,void 0,r,void 0))}k7({errorCodes:q9,getCodeActions:function(e){const{sourceFile:t,span:n}=e,r=U9(t,n.start);if(!r)return;const{name:i,constraint:o}=r,a=Tue.ChangeTracker.with(e,(e=>V9(e,t,r)));return[v7(z9,a,[la.Convert_0_to_1_in_0,o,i],z9,la.Convert_all_type_literals_to_mapped_type)]},fixIds:[z9],getAllCodeActions:e=>D7(e,q9,((e,t)=>{const n=U9(t.file,t.start);n&&V9(e,t.file,n)}))});var W9=[la.Class_0_incorrectly_implements_interface_1.code,la.Class_0_incorrectly_implements_class_1_Did_you_mean_to_extend_1_and_inherit_its_members_as_a_subclass.code],$9="fixClassIncorrectlyImplementsInterface";function H9(e,t){return un.checkDefined(Gf(PX(e,t)),"There should be a containing class")}function K9(e){return!(e.valueDeclaration&&2&Mv(e.valueDeclaration))}function G9(e,t,n,r,i,o){const a=e.program.getTypeChecker(),s=function(e,t){const n=hh(e);if(!n)return Hu();const r=t.getTypeAtLocation(n);return Hu(t.getPropertiesOfType(r).filter(K9))}(r,a),c=a.getTypeAtLocation(t),l=a.getPropertiesOfType(c).filter(Zt(K9,(e=>!s.has(e.escapedName)))),_=a.getTypeAtLocation(r),u=b(r.members,(e=>dD(e)));_.getNumberIndexType()||p(c,1),_.getStringIndexType()||p(c,0);const d=Z9(n,e.program,o,e.host);function p(t,i){const o=a.getIndexInfoOfType(t,i);o&&f(n,r,a.indexInfoToIndexSignatureDeclaration(o,r,void 0,void 0,kie(e)))}function f(e,t,n){u?i.insertNodeAfter(e,u,n):i.insertMemberAtStart(e,t,n)}xie(r,l,n,e,o,d,(e=>f(n,r,e))),d.writeFixes(i)}k7({errorCodes:W9,getCodeActions(e){const{sourceFile:t,span:n}=e,r=H9(t,n.start);return B(vh(r),(n=>{const i=Tue.ChangeTracker.with(e,(i=>G9(e,n,t,r,i,e.preferences)));return 0===i.length?void 0:v7($9,i,[la.Implement_interface_0,n.getText(t)],$9,la.Implement_all_unimplemented_interfaces)}))},fixIds:[$9],getAllCodeActions(e){const t=new Set;return D7(e,W9,((n,r)=>{const i=H9(r.file,r.start);if(vx(t,jB(i)))for(const t of vh(i))G9(e,t,r.file,i,n,e.preferences)}))}});var X9="import",Q9="fixMissingImport",Y9=[la.Cannot_find_name_0.code,la.Cannot_find_name_0_Did_you_mean_1.code,la.Cannot_find_name_0_Did_you_mean_the_instance_member_this_0.code,la.Cannot_find_name_0_Did_you_mean_the_static_member_1_0.code,la.Cannot_find_namespace_0.code,la._0_refers_to_a_UMD_global_but_the_current_file_is_a_module_Consider_adding_an_import_instead.code,la._0_only_refers_to_a_type_but_is_being_used_as_a_value_here.code,la.No_value_exists_in_scope_for_the_shorthand_property_0_Either_declare_one_or_provide_an_initializer.code,la._0_cannot_be_used_as_a_value_because_it_was_imported_using_import_type.code,la.Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_jQuery_Try_npm_i_save_dev_types_Slashjquery.code,la.Cannot_find_name_0_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_1_or_later.code,la.Cannot_find_name_0_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_include_dom.code,la.Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_a_test_runner_Try_npm_i_save_dev_types_Slashjest_or_npm_i_save_dev_types_Slashmocha_and_then_add_jest_or_mocha_to_the_types_field_in_your_tsconfig.code,la.Cannot_find_name_0_Did_you_mean_to_write_this_in_an_async_function.code,la.Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_jQuery_Try_npm_i_save_dev_types_Slashjquery_and_then_add_jquery_to_the_types_field_in_your_tsconfig.code,la.Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_a_test_runner_Try_npm_i_save_dev_types_Slashjest_or_npm_i_save_dev_types_Slashmocha.code,la.Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_node_Try_npm_i_save_dev_types_Slashnode.code,la.Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_node_Try_npm_i_save_dev_types_Slashnode_and_then_add_node_to_the_types_field_in_your_tsconfig.code,la.Cannot_find_namespace_0_Did_you_mean_1.code,la.This_JSX_tag_requires_0_to_be_in_scope_but_it_could_not_be_found.code];function Z9(e,t,n,r,i){return eee(e,t,!1,n,r,i)}function eee(e,t,n,r,i,o){const a=t.getCompilerOptions(),s=[],c=[],l=new Map,_=new Set,u=new Set,d=new Map;return{addImportFromDiagnostic:function(e,t){const r=pee(t,e.code,e.start,n);r&&r.length&&p(ge(r))},addImportFromExportedSymbol:function(n,s,c){var l,_;const u=un.checkDefined(n.parent,"Expected exported symbol to have module symbol as parent"),d=OZ(n,hk(a)),f=t.getTypeChecker(),m=f.getMergedSymbol(ix(n,f)),g=aee(e,m,d,u,!1,t,i,r,o);if(!g)return void un.assert(null==(l=r.autoImportFileExcludePatterns)?void 0:l.length);const h=uee(e,t);let y=iee(e,g,t,void 0,!!s,h,i,r);if(y){const e=(null==(_=tt(null==c?void 0:c.name,zN))?void 0:_.text)??d;let t,r;c&&Ml(c)&&(3===y.kind||2===y.kind)&&1===y.addAsTypeOnly&&(t=2),n.name!==e&&(r=n.name),y={...y,...void 0===t?{}:{addAsTypeOnly:t},...void 0===r?{}:{propertyName:r}},p({fix:y,symbolName:e??d,errorIdentifierText:void 0})}},addImportForModuleSymbol:function(n,o,s){var c,l,_;const u=t.getTypeChecker(),d=u.getAliasedSymbol(n);un.assert(1536&d.flags,"Expected symbol to be a module");const f=AQ(t,i),m=BM.getModuleSpecifiersWithCacheInfo(d,u,a,e,f,r,void 0,!0),g=uee(e,t);let h=lee(o,0,void 0,n.flags,t.getTypeChecker(),a);h=1===h&&Ml(s)?2:1;const y=nE(s)?Sg(s)?1:2:dE(s)?0:rE(s)&&s.name?1:2,v=[{symbol:n,moduleSymbol:d,moduleFileName:null==(_=null==(l=null==(c=d.declarations)?void 0:c[0])?void 0:l.getSourceFile())?void 0:_.fileName,exportKind:4,targetFlags:n.flags,isFromPackageJson:!1}],b=iee(e,v,t,void 0,!!o,g,i,r);let x;x=b&&2!==y?{...b,addAsTypeOnly:h,importKind:y}:{kind:3,moduleSpecifierKind:void 0!==b?b.moduleSpecifierKind:m.kind,moduleSpecifier:void 0!==b?b.moduleSpecifier:ge(m.moduleSpecifiers),importKind:y,addAsTypeOnly:h,useRequire:g},p({fix:x,symbolName:n.name,errorIdentifierText:void 0})},writeFixes:function(t,n){var i,o;let p,f,m;p=void 0!==e.imports&&0===e.imports.length&&void 0!==n?n:BQ(e,r);for(const n of s)Cee(t,e,n);for(const n of c)wee(t,e,n,p);if(_.size){un.assert(Nm(e),"Cannot remove imports from a future source file");const n=new Set(B([..._],(e=>_c(e,nE)))),r=new Set(B([..._],(e=>_c(e,Lm)))),a=[...n].filter((e=>{var t,n,r;return!l.has(e.importClause)&&(!(null==(t=e.importClause)?void 0:t.name)||_.has(e.importClause))&&(!tt(null==(n=e.importClause)?void 0:n.namedBindings,lE)||_.has(e.importClause.namedBindings))&&(!tt(null==(r=e.importClause)?void 0:r.namedBindings,uE)||v(e.importClause.namedBindings.elements,(e=>_.has(e))))})),s=[...r].filter((e=>(206!==e.name.kind||!l.has(e.name))&&(206!==e.name.kind||v(e.name.elements,(e=>_.has(e)))))),c=[...n].filter((e=>{var t,n;return(null==(t=e.importClause)?void 0:t.namedBindings)&&-1===a.indexOf(e)&&!(null==(n=l.get(e.importClause))?void 0:n.namedImports)&&(274===e.importClause.namedBindings.kind||v(e.importClause.namedBindings.elements,(e=>_.has(e))))}));for(const n of[...a,...s])t.delete(e,n);for(const n of c)t.replaceNode(e,n.importClause,XC.updateImportClause(n.importClause,n.importClause.isTypeOnly,n.importClause.name,void 0));for(const n of _){const r=_c(n,nE);r&&-1===a.indexOf(r)&&-1===c.indexOf(r)?273===n.kind?t.delete(e,n.name):(un.assert(276===n.kind,"NamespaceImport should have been handled earlier"),(null==(i=l.get(r.importClause))?void 0:i.namedImports)?(f??(f=new Set)).add(n):t.delete(e,n)):208===n.kind?(null==(o=l.get(n.parent))?void 0:o.namedImports)?(f??(f=new Set)).add(n):t.delete(e,n):271===n.kind&&t.delete(e,n)}}l.forEach((({importClauseOrBindingPattern:n,defaultImport:i,namedImports:o})=>{Tee(t,e,n,i,Oe(o.entries(),(([e,{addAsTypeOnly:t,propertyName:n}])=>({addAsTypeOnly:t,propertyName:n,name:e}))),f,r)})),d.forEach((({useRequire:e,defaultImport:t,namedImports:n,namespaceLikeImport:i},o)=>{const s=(e?Pee:Eee)(o.slice(2),p,t,n&&Oe(n.entries(),(([e,[t,n]])=>({addAsTypeOnly:t,propertyName:n,name:e}))),i,a,r);m=oe(m,s)})),m=oe(m,function(){if(!u.size)return;const e=new Set(B([...u],(e=>_c(e,nE)))),t=new Set(B([...u],(e=>_c(e,Bm))));return[...B([...u],(e=>271===e.kind?LY(e,!0):void 0)),...[...e].map((e=>{var t;return u.has(e)?LY(e,!0):LY(XC.updateImportDeclaration(e,e.modifiers,e.importClause&&XC.updateImportClause(e.importClause,e.importClause.isTypeOnly,u.has(e.importClause)?e.importClause.name:void 0,u.has(e.importClause.namedBindings)?e.importClause.namedBindings:(null==(t=tt(e.importClause.namedBindings,uE))?void 0:t.elements.some((e=>u.has(e))))?XC.updateNamedImports(e.importClause.namedBindings,e.importClause.namedBindings.elements.filter((e=>u.has(e)))):void 0),e.moduleSpecifier,e.attributes),!0)})),...[...t].map((e=>u.has(e)?LY(e,!0):LY(XC.updateVariableStatement(e,e.modifiers,XC.updateVariableDeclarationList(e.declarationList,B(e.declarationList.declarations,(e=>u.has(e)?e:XC.updateVariableDeclaration(e,206===e.name.kind?XC.updateObjectBindingPattern(e.name,e.name.elements.filter((e=>u.has(e)))):e.name,e.exclamationToken,e.type,e.initializer))))),!0)))]}()),m&&GQ(t,e,m,!0,r)},hasFixes:function(){return s.length>0||c.length>0||l.size>0||d.size>0||u.size>0||_.size>0},addImportForUnresolvedIdentifier:function(e,t,n){const r=function(e,t,n){const r=vee(e,t,n),i=TZ(e.sourceFile,e.preferences,e.host);return r&&fee(r,e.sourceFile,e.program,i,e.host,e.preferences)}(e,t,n);r&&r.length&&p(ge(r))},addImportForNonExistentExport:function(n,o,s,c,l){const _=t.getSourceFile(o),u=uee(e,t);if(_&&_.symbol){const{fixes:a}=cee([{exportKind:s,isFromPackageJson:!1,moduleFileName:o,moduleSymbol:_.symbol,targetFlags:c}],void 0,l,u,t,e,i,r);a.length&&p({fix:a[0],symbolName:n,errorIdentifierText:n})}else{const _=XZ(o,99,t,i);p({fix:{kind:3,moduleSpecifierKind:"relative",moduleSpecifier:BM.getLocalModuleSpecifierBetweenFileNames(e,o,a,AQ(t,i),r),importKind:yee(_,s,t),addAsTypeOnly:lee(l,0,void 0,c,t.getTypeChecker(),a),useRequire:u},symbolName:n,errorIdentifierText:n})}},removeExistingImport:function(e){273===e.kind&&un.assertIsDefined(e.name,"ImportClause should have a name if it's being removed"),_.add(e)},addVerbatimImport:function(e){u.add(e)}};function p(e){var t,n,r;const{fix:i,symbolName:o}=e;switch(i.kind){case 0:s.push(i);break;case 1:c.push(i);break;case 2:{const{importClauseOrBindingPattern:e,importKind:r,addAsTypeOnly:a,propertyName:s}=i;let c=l.get(e);if(c||l.set(e,c={importClauseOrBindingPattern:e,defaultImport:void 0,namedImports:new Map}),0===r){const e=null==(t=null==c?void 0:c.namedImports.get(o))?void 0:t.addAsTypeOnly;c.namedImports.set(o,{addAsTypeOnly:_(e,a),propertyName:s})}else un.assert(void 0===c.defaultImport||c.defaultImport.name===o,"(Add to Existing) Default import should be missing or match symbolName"),c.defaultImport={name:o,addAsTypeOnly:_(null==(n=c.defaultImport)?void 0:n.addAsTypeOnly,a)};break}case 3:{const{moduleSpecifier:e,importKind:t,useRequire:n,addAsTypeOnly:s,propertyName:c}=i,l=function(e,t,n,r){const i=u(e,!0),o=u(e,!1),a=d.get(i),s=d.get(o),c={defaultImport:void 0,namedImports:void 0,namespaceLikeImport:void 0,useRequire:n};return 1===t&&2===r?a||(d.set(i,c),c):1===r&&(a||s)?a||s:s||(d.set(o,c),c)}(e,t,n,s);switch(un.assert(l.useRequire===n,"(Add new) Tried to add an `import` and a `require` for the same module"),t){case 1:un.assert(void 0===l.defaultImport||l.defaultImport.name===o,"(Add new) Default import should be missing or match symbolName"),l.defaultImport={name:o,addAsTypeOnly:_(null==(r=l.defaultImport)?void 0:r.addAsTypeOnly,s)};break;case 0:const e=(l.namedImports||(l.namedImports=new Map)).get(o);l.namedImports.set(o,[_(e,s),c]);break;case 3:if(a.verbatimModuleSyntax){const e=(l.namedImports||(l.namedImports=new Map)).get(o);l.namedImports.set(o,[_(e,s),c])}else un.assert(void 0===l.namespaceLikeImport||l.namespaceLikeImport.name===o,"Namespacelike import shoudl be missing or match symbolName"),l.namespaceLikeImport={importKind:t,name:o,addAsTypeOnly:s};break;case 2:un.assert(void 0===l.namespaceLikeImport||l.namespaceLikeImport.name===o,"Namespacelike import shoudl be missing or match symbolName"),l.namespaceLikeImport={importKind:t,name:o,addAsTypeOnly:s}}break}case 4:break;default:un.assertNever(i,`fix wasn't never - got kind ${i.kind}`)}function _(e,t){return Math.max(e??0,t)}function u(e,t){return`${t?1:0}|${e}`}}}function tee(e,t,n,r){const i=TZ(e,r,n),o=_ee(e,t);return{getModuleSpecifierForBestExportInfo:function(a,s,c,l){const{fixes:_,computedWithoutCacheCount:u}=cee(a,s,c,!1,t,e,n,r,o,l),d=mee(_,e,t,i,n,r);return d&&{...d,computedWithoutCacheCount:u}}}}function nee(e,t,n,r,i,o,a,s,c,l,_,u){let d;n?(d=s0(r,a,s,_,u).get(r.path,n),un.assertIsDefined(d,"Some exportInfo should match the specified exportMapKey")):(d=bo(Dy(t.name))?[see(e,i,t,s,a)]:aee(r,e,i,t,o,s,a,_,u),un.assertIsDefined(d,"Some exportInfo should match the specified symbol / moduleSymbol"));const p=uee(r,s),f=yT(PX(r,l)),m=un.checkDefined(iee(r,d,s,l,f,p,a,_));return{moduleSpecifier:m.moduleSpecifier,codeAction:oee(kee({host:a,formatContext:c,preferences:_},r,i,m,!1,s,_))}}function ree(e,t,n,r,i,o){const a=n.getCompilerOptions(),s=xe(xee(e,n.getTypeChecker(),t,a)),c=bee(e,t,s,n),l=s!==t.text;return c&&oee(kee({host:r,formatContext:i,preferences:o},e,s,c,l,n,o))}function iee(e,t,n,r,i,o,a,s){const c=TZ(e,s,a);return mee(cee(t,r,i,o,n,e,a,s).fixes,e,n,c,a,s)}function oee({description:e,changes:t,commands:n}){return{description:e,changes:t,commands:n}}function aee(e,t,n,r,i,o,a,s,c){const l=dee(o,a),_=s.autoImportFileExcludePatterns&&a0(a,s),u=o.getTypeChecker().getMergedSymbol(r),d=_&&u.declarations&&Wu(u,307),p=d&&_(d);return s0(e,a,o,s,c).search(e.path,i,(e=>e===n),(e=>{const n=l(e[0].isFromPackageJson);if(n.getMergedSymbol(ix(e[0].symbol,n))===t&&(p||e.some((e=>n.getMergedSymbol(e.moduleSymbol)===r||e.symbol.parent===r))))return e}))}function see(e,t,n,r,i){var o,a;const s=l(r.getTypeChecker(),!1);if(s)return s;const c=null==(a=null==(o=i.getPackageJsonAutoImportProvider)?void 0:o.call(i))?void 0:a.getTypeChecker();return un.checkDefined(c&&l(c,!0),"Could not find symbol in specified module for code actions");function l(r,i){const o=c0(n,r);if(o&&ix(o.symbol,r)===e)return{symbol:o.symbol,moduleSymbol:n,moduleFileName:void 0,exportKind:o.exportKind,targetFlags:ix(e,r).flags,isFromPackageJson:i};const a=r.tryGetMemberInModuleExportsAndProperties(t,n);return a&&ix(a,r)===e?{symbol:a,moduleSymbol:n,moduleFileName:void 0,exportKind:0,targetFlags:ix(e,r).flags,isFromPackageJson:i}:void 0}}function cee(e,t,n,r,i,o,a,s,c=(Nm(o)?_ee(o,i):void 0),_){const u=i.getTypeChecker(),d=c?O(e,c.getImportsForExportInfo):l,p=void 0!==t&&function(e,t){return f(e,(({declaration:e,importKind:n})=>{var r;if(0!==n)return;const i=function(e){var t,n,r;switch(e.kind){case 260:return null==(t=tt(e.name,zN))?void 0:t.text;case 271:return e.name.text;case 351:case 272:return null==(r=tt(null==(n=e.importClause)?void 0:n.namedBindings,lE))?void 0:r.name.text;default:return un.assertNever(e)}}(e),o=i&&(null==(r=hg(e))?void 0:r.text);return o?{kind:0,namespacePrefix:i,usagePosition:t,moduleSpecifierKind:void 0,moduleSpecifier:o}:void 0}))}(d,t),m=function(e,t,n,r){let i;for(const t of e){const e=o(t);if(!e)continue;const n=Ml(e.importClauseOrBindingPattern);if(4!==e.addAsTypeOnly&&n||4===e.addAsTypeOnly&&!n)return e;i??(i=e)}return i;function o({declaration:e,importKind:i,symbol:o,targetFlags:a}){if(3===i||2===i||271===e.kind)return;if(260===e.kind)return 0!==i&&1!==i||206!==e.name.kind?void 0:{kind:2,importClauseOrBindingPattern:e.name,importKind:i,moduleSpecifierKind:void 0,moduleSpecifier:e.initializer.arguments[0].text,addAsTypeOnly:4};const{importClause:s}=e;if(!s||!Lu(e.moduleSpecifier))return;const{name:c,namedBindings:l}=s;if(s.isTypeOnly&&(0!==i||!l))return;const _=lee(t,0,o,a,n,r);return 1===i&&(c||2===_&&l)||0===i&&274===(null==l?void 0:l.kind)?void 0:{kind:2,importClauseOrBindingPattern:s,importKind:i,moduleSpecifierKind:void 0,moduleSpecifier:e.moduleSpecifier.text,addAsTypeOnly:_}}}(d,n,u,i.getCompilerOptions());if(m)return{computedWithoutCacheCount:0,fixes:[...p?[p]:l,m]};const{fixes:g,computedWithoutCacheCount:h=0}=function(e,t,n,r,i,o,a,s,c,l){const _=f(t,(e=>function({declaration:e,importKind:t,symbol:n,targetFlags:r},i,o,a,s){var c;const l=null==(c=hg(e))?void 0:c.text;if(l)return{kind:3,moduleSpecifierKind:void 0,moduleSpecifier:l,importKind:t,addAsTypeOnly:o?4:lee(i,0,n,r,a,s),useRequire:o}}(e,o,a,n.getTypeChecker(),n.getCompilerOptions())));return _?{fixes:[_]}:function(e,t,n,r,i,o,a,s,c){const l=AS(t.fileName),_=e.getCompilerOptions(),u=AQ(e,a),d=dee(e,a),p=OQ(vk(_)),f=c?e=>BM.tryGetModuleSpecifiersFromCache(e.moduleSymbol,t,u,s):(e,n)=>BM.getModuleSpecifiersWithCacheInfo(e.moduleSymbol,n,_,t,u,s,void 0,!0);let m=0;const g=O(o,((o,a)=>{const s=d(o.isFromPackageJson),{computedWithoutCache:c,moduleSpecifiers:u,kind:g}=f(o,s)??{},h=!!(111551&o.targetFlags),y=lee(r,0,o.symbol,o.targetFlags,s,_);return m+=c?1:0,B(u,(r=>{if(p&&AR(r))return;if(!h&&l&&void 0!==n)return{kind:1,moduleSpecifierKind:g,moduleSpecifier:r,usagePosition:n,exportInfo:o,isReExport:a>0};const c=yee(t,o.exportKind,e);let u;if(void 0!==n&&3===c&&0===o.exportKind){const e=s.resolveExternalModuleSymbol(o.moduleSymbol);let t;e!==o.moduleSymbol&&(t=_0(e,s,hk(_),st)),t||(t=jZ(o.moduleSymbol,hk(_),!1)),u={namespacePrefix:t,usagePosition:n}}return{kind:3,moduleSpecifierKind:g,moduleSpecifier:r,importKind:c,useRequire:i,addAsTypeOnly:y,exportInfo:o,isReExport:a>0,qualification:u}}))}));return{computedWithoutCacheCount:m,fixes:g}}(n,r,i,o,a,e,s,c,l)}(e,d,i,o,t,n,r,a,s,_);return{computedWithoutCacheCount:h,fixes:[...p?[p]:l,...g]}}function lee(e,t,n,r,i,o){return e?!n||!o.verbatimModuleSyntax||111551&r&&!i.getTypeOnlyAliasDeclaration(n)?1:2:4}function _ee(e,t){const n=t.getTypeChecker();let r;for(const t of e.imports){const e=yg(t);if(Lm(e.parent)){const i=n.resolveExternalModuleName(t);i&&(r||(r=$e())).add(RB(i),e.parent)}else if(272===e.kind||271===e.kind||351===e.kind){const i=n.getSymbolAtLocation(t);i&&(r||(r=$e())).add(RB(i),e)}}return{getImportsForExportInfo:({moduleSymbol:n,exportKind:i,targetFlags:o,symbol:a})=>{const s=null==r?void 0:r.get(RB(n));if(!s)return l;if(Dm(e)&&!(111551&o)&&!v(s,PP))return l;const c=yee(e,i,t);return s.map((e=>({declaration:e,importKind:c,symbol:a,targetFlags:o})))}}}function uee(e,t){if(!AS(e.fileName))return!1;if(e.commonJsModuleIndicator&&!e.externalModuleIndicator)return!0;if(e.externalModuleIndicator&&!e.commonJsModuleIndicator)return!1;const n=t.getCompilerOptions();if(n.configFile)return yk(n)<5;if(1===Oee(e,t))return!0;if(99===Oee(e,t))return!1;for(const n of t.getSourceFiles())if(n!==e&&Dm(n)&&!t.isSourceFileFromExternalLibrary(n)){if(n.commonJsModuleIndicator&&!n.externalModuleIndicator)return!0;if(n.externalModuleIndicator&&!n.commonJsModuleIndicator)return!1}return!0}function dee(e,t){return pt((n=>n?t.getPackageJsonAutoImportProvider().getTypeChecker():e.getTypeChecker()))}function pee(e,t,n,r){const i=PX(e.sourceFile,n);let o;if(t===la._0_refers_to_a_UMD_global_but_the_current_file_is_a_module_Consider_adding_an_import_instead.code)o=function({sourceFile:e,program:t,host:n,preferences:r},i){const o=t.getTypeChecker(),a=function(e,t){const n=zN(e)?t.getSymbolAtLocation(e):void 0;if(gx(n))return n;const{parent:r}=e;if(vu(r)&&r.tagName===e||NE(r)){const n=t.resolveName(t.getJsxNamespace(r),vu(r)?e:r,111551,!1);if(gx(n))return n}}(i,o);if(!a)return;const s=o.getAliasedSymbol(a),c=a.name;return cee([{symbol:a,moduleSymbol:s,moduleFileName:void 0,exportKind:3,targetFlags:s.flags,isFromPackageJson:!1}],void 0,!1,uee(e,t),t,e,n,r).fixes.map((e=>{var t;return{fix:e,symbolName:c,errorIdentifierText:null==(t=tt(i,zN))?void 0:t.text}}))}(e,i);else{if(!zN(i))return;if(t===la._0_cannot_be_used_as_a_value_because_it_was_imported_using_import_type.code){const t=xe(xee(e.sourceFile,e.program.getTypeChecker(),i,e.program.getCompilerOptions())),n=bee(e.sourceFile,i,t,e.program);return n&&[{fix:n,symbolName:t,errorIdentifierText:i.text}]}o=vee(e,i,r)}const a=TZ(e.sourceFile,e.preferences,e.host);return o&&fee(o,e.sourceFile,e.program,a,e.host,e.preferences)}function fee(e,t,n,r,i,o){const a=e=>qo(e,i.getCurrentDirectory(),jy(i));return _e(e,((e,i)=>Ot(!!e.isJsxNamespaceFix,!!i.isJsxNamespaceFix)||vt(e.fix.kind,i.fix.kind)||gee(e.fix,i.fix,t,n,o,r.allowsImportingSpecifier,a)))}function mee(e,t,n,r,i,o){if($(e))return 0===e[0].kind||2===e[0].kind?e[0]:e.reduce(((e,a)=>-1===gee(a,e,t,n,o,r.allowsImportingSpecifier,(e=>qo(e,i.getCurrentDirectory(),jy(i))))?a:e))}function gee(e,t,n,r,i,o,a){return 0!==e.kind&&0!==t.kind?Ot("node_modules"!==t.moduleSpecifierKind||o(t.moduleSpecifier),"node_modules"!==e.moduleSpecifierKind||o(e.moduleSpecifier))||function(e,t,n){return"non-relative"===n.importModuleSpecifierPreference||"project-relative"===n.importModuleSpecifierPreference?Ot("relative"===e.moduleSpecifierKind,"relative"===t.moduleSpecifierKind):0}(e,t,i)||function(e,t,n,r){return Gt(e,"node:")&&!Gt(t,"node:")?zZ(n,r)?-1:1:Gt(t,"node:")&&!Gt(e,"node:")?zZ(n,r)?1:-1:0}(e.moduleSpecifier,t.moduleSpecifier,n,r)||Ot(hee(e,n.path,a),hee(t,n.path,a))||BS(e.moduleSpecifier,t.moduleSpecifier):0}function hee(e,t,n){var r;return!(!e.isReExport||!(null==(r=e.exportInfo)?void 0:r.moduleFileName)||"index"!==Fo(e.exportInfo.moduleFileName,[".js",".jsx",".d.ts",".ts",".tsx"],!0))&&Gt(t,n(Do(e.exportInfo.moduleFileName)))}function yee(e,t,n,r){if(n.getCompilerOptions().verbatimModuleSyntax&&1===function(e,t){return Nm(e)?t.getEmitModuleFormatOfFile(e):kV(e,t.getCompilerOptions())}(e,n))return 3;switch(t){case 0:return 0;case 1:return 1;case 2:return function(e,t,n){const r=Sk(t),i=AS(e.fileName);if(!i&&yk(t)>=5)return r?1:2;if(i)return e.externalModuleIndicator||n?r?1:2:3;for(const t of e.statements??l)if(tE(t)&&!Cd(t.moduleReference))return 3;return r?1:3}(e,n.getCompilerOptions(),!!r);case 3:return function(e,t,n){if(Sk(t.getCompilerOptions()))return 1;const r=yk(t.getCompilerOptions());switch(r){case 2:case 1:case 3:return AS(e.fileName)&&(e.externalModuleIndicator||n)?2:3;case 4:case 5:case 6:case 7:case 99:case 0:case 200:return 2;case 100:case 199:return 99===Oee(e,t)?2:3;default:return un.assertNever(r,`Unexpected moduleKind ${r}`)}}(e,n,!!r);case 4:return 2;default:return un.assertNever(t)}}function vee({sourceFile:e,program:t,cancellationToken:n,host:r,preferences:i},o,a){const s=t.getTypeChecker(),c=t.getCompilerOptions();return O(xee(e,s,o,c),(s=>{if("default"===s)return;const c=yT(o),l=uee(e,t),_=function(e,t,n,r,i,o,a,s,c){var l;const _=$e(),u=TZ(i,c,s),d=null==(l=s.getModuleSpecifierCache)?void 0:l.call(s),p=pt((e=>AQ(e?s.getPackageJsonAutoImportProvider():o,s)));function f(e,t,n,r,o,a){const s=p(a);if(e0(o,i,t,e,c,u,s,d)){const i=o.getTypeChecker();_.add(AY(n,i).toString(),{symbol:n,moduleSymbol:e,moduleFileName:null==t?void 0:t.fileName,exportKind:r,targetFlags:ix(n,i).flags,isFromPackageJson:a})}}return n0(o,s,c,a,((i,o,a,s)=>{const c=a.getTypeChecker();r.throwIfCancellationRequested();const l=a.getCompilerOptions(),_=c0(i,c);_&&Iee(c.getSymbolFlags(_.symbol),n)&&_0(_.symbol,c,hk(l),((n,r)=>(t?r??n:n)===e))&&f(i,o,_.symbol,_.exportKind,a,s);const u=c.tryGetMemberInModuleExportsAndProperties(e,i);u&&Iee(c.getSymbolFlags(u),n)&&f(i,o,u,0,a,s)})),_}(s,ym(o),FG(o),n,e,t,a,r,i);return Oe(j(_.values(),(n=>cee(n,o.getStart(e),c,l,t,e,r,i).fixes)),(e=>({fix:e,symbolName:s,errorIdentifierText:o.text,isJsxNamespaceFix:s!==o.text})))}))}function bee(e,t,n,r){const i=r.getTypeChecker(),o=i.resolveName(n,t,111551,!0);if(!o)return;const a=i.getTypeOnlyAliasDeclaration(o);return a&&hd(a)===e?{kind:4,typeOnlyAliasDeclaration:a}:void 0}function xee(e,t,n,r){const i=n.parent;if((vu(i)||CE(i))&&i.tagName===n&&WZ(r.jsx)){const r=t.getJsxNamespace(e);if(function(e,t,n){if(Fy(t.text))return!0;const r=n.resolveName(e,t,111551,!0);return!r||$(r.declarations,Jl)&&!(111551&r.flags)}(r,n,t))return Fy(n.text)||t.resolveName(n.text,n,111551,!1)?[r]:[n.text,r]}return[n.text]}function kee(e,t,n,r,i,o,a){let s;const c=Tue.ChangeTracker.with(e,(e=>{s=function(e,t,n,r,i,o,a){const s=BQ(t,a);switch(r.kind){case 0:return Cee(e,t,r),[la.Change_0_to_1,n,`${r.namespacePrefix}.${n}`];case 1:return wee(e,t,r,s),[la.Change_0_to_1,n,Nee(r.moduleSpecifier,s)+n];case 2:{const{importClauseOrBindingPattern:o,importKind:s,addAsTypeOnly:c,moduleSpecifier:_}=r;Tee(e,t,o,1===s?{name:n,addAsTypeOnly:c}:void 0,0===s?[{name:n,addAsTypeOnly:c}]:l,void 0,a);const u=Dy(_);return i?[la.Import_0_from_1,n,u]:[la.Update_import_from_0,u]}case 3:{const{importKind:c,moduleSpecifier:l,addAsTypeOnly:_,useRequire:u,qualification:d}=r;return GQ(e,t,(u?Pee:Eee)(l,s,1===c?{name:n,addAsTypeOnly:_}:void 0,0===c?[{name:n,addAsTypeOnly:_}]:void 0,2===c||3===c?{importKind:c,name:(null==d?void 0:d.namespacePrefix)||n,addAsTypeOnly:_}:void 0,o.getCompilerOptions(),a),!0,a),d&&Cee(e,t,d),i?[la.Import_0_from_1,n,l]:[la.Add_import_from_0,l]}case 4:{const{typeOnlyAliasDeclaration:i}=r,s=function(e,t,n,r,i){const o=n.getCompilerOptions(),a=o.verbatimModuleSyntax;switch(t.kind){case 276:if(t.isTypeOnly){if(t.parent.elements.length>1){const n=XC.updateImportSpecifier(t,!1,t.propertyName,t.name),{specifierComparer:o}=Jle.getNamedImportSpecifierComparerWithDetection(t.parent.parent.parent,i,r),a=Jle.getImportSpecifierInsertionIndex(t.parent.elements,n,o);if(a!==t.parent.elements.indexOf(t))return e.delete(r,t),e.insertImportSpecifierAtIndex(r,n,t.parent,a),t}return e.deleteRange(r,{pos:Bd(t.getFirstToken()),end:Bd(t.propertyName??t.name)}),t}return un.assert(t.parent.parent.isTypeOnly),s(t.parent.parent),t.parent.parent;case 273:return s(t),t;case 274:return s(t.parent),t.parent;case 271:return e.deleteRange(r,t.getChildAt(1)),t;default:un.failBadSyntaxKind(t)}function s(s){var c;if(e.delete(r,XQ(s,r)),!o.allowImportingTsExtensions){const t=hg(s.parent),i=t&&(null==(c=n.getResolvedModuleFromModuleSpecifier(t,r))?void 0:c.resolvedModule);if(null==i?void 0:i.resolvedUsingTsExtension){const n=$o(t.text,Oq(t.text,o));e.replaceNode(r,t,XC.createStringLiteral(n))}}if(a){const n=tt(s.namedBindings,uE);if(n&&n.elements.length>1){!1!==Jle.getNamedImportSpecifierComparerWithDetection(s.parent,i,r).isSorted&&276===t.kind&&0!==n.elements.indexOf(t)&&(e.delete(r,t),e.insertImportSpecifierAtIndex(r,t,n,0));for(const i of n.elements)i===t||i.isTypeOnly||e.insertModifierBefore(r,156,i)}}}}(e,i,o,t,a);return 276===s.kind?[la.Remove_type_from_import_of_0_from_1,n,See(s.parent.parent)]:[la.Remove_type_from_import_declaration_from_0,See(s)]}default:return un.assertNever(r,`Unexpected fix kind ${r.kind}`)}}(e,t,n,r,i,o,a)}));return v7(X9,c,s,Q9,la.Add_all_missing_imports)}function See(e){var t,n;return 271===e.kind?(null==(n=tt(null==(t=tt(e.moduleReference,xE))?void 0:t.expression,Lu))?void 0:n.text)||e.moduleReference.getText():nt(e.parent.moduleSpecifier,TN).text}function Tee(e,t,n,r,i,o,a){var s;if(206===n.kind){if(o&&n.elements.some((e=>o.has(e))))return void e.replaceNode(t,n,XC.createObjectBindingPattern([...n.elements.filter((e=>!o.has(e))),...r?[XC.createBindingElement(void 0,"default",r.name)]:l,...i.map((e=>XC.createBindingElement(void 0,e.propertyName,e.name)))]));r&&u(n,r.name,"default");for(const e of i)u(n,e.name,e.propertyName);return}const c=n.isTypeOnly&&$([r,...i],(e=>4===(null==e?void 0:e.addAsTypeOnly))),_=n.namedBindings&&(null==(s=tt(n.namedBindings,uE))?void 0:s.elements);if(r&&(un.assert(!n.name,"Cannot add a default import to an import clause that already has one"),e.insertNodeAt(t,n.getStart(t),XC.createIdentifier(r.name),{suffix:", "})),i.length){const{specifierComparer:r,isSorted:s}=Jle.getNamedImportSpecifierComparerWithDetection(n.parent,a,t),l=_e(i.map((e=>XC.createImportSpecifier((!n.isTypeOnly||c)&&Fee(e,a),void 0===e.propertyName?void 0:XC.createIdentifier(e.propertyName),XC.createIdentifier(e.name)))),r);if(o)e.replaceNode(t,n.namedBindings,XC.updateNamedImports(n.namedBindings,_e([..._.filter((e=>!o.has(e))),...l],r)));else if((null==_?void 0:_.length)&&!1!==s){const i=c&&_?XC.updateNamedImports(n.namedBindings,A(_,(e=>XC.updateImportSpecifier(e,!0,e.propertyName,e.name)))).elements:_;for(const o of l){const a=Jle.getImportSpecifierInsertionIndex(i,o,r);e.insertImportSpecifierAtIndex(t,o,n.namedBindings,a)}}else if(null==_?void 0:_.length)for(const n of l)e.insertNodeInListAfter(t,ve(_),n,_);else if(l.length){const r=XC.createNamedImports(l);n.namedBindings?e.replaceNode(t,n.namedBindings,r):e.insertNodeAfter(t,un.checkDefined(n.name,"Import clause must have either named imports or a default import"),r)}}if(c&&(e.delete(t,XQ(n,t)),_))for(const n of _)e.insertModifierBefore(t,156,n);function u(n,r,i){const o=XC.createBindingElement(void 0,i,r);n.elements.length?e.insertNodeInListAfter(t,ve(n.elements),o):e.replaceNode(t,n,XC.createObjectBindingPattern([o]))}}function Cee(e,t,{namespacePrefix:n,usagePosition:r}){e.insertText(t,r,n+".")}function wee(e,t,{moduleSpecifier:n,usagePosition:r},i){e.insertText(t,r,Nee(n,i))}function Nee(e,t){const n=JQ(t);return`import(${n}${e}${n}).`}function Dee({addAsTypeOnly:e}){return 2===e}function Fee(e,t){return Dee(e)||!!t.preferTypeOnlyAutoImports&&4!==e.addAsTypeOnly}function Eee(e,t,n,r,i,o,a){const s=jQ(e,t);let c;if(void 0!==n||(null==r?void 0:r.length)){const i=(!n||Dee(n))&&v(r,Dee)||(o.verbatimModuleSyntax||a.preferTypeOnlyAutoImports)&&4!==(null==n?void 0:n.addAsTypeOnly)&&!$(r,(e=>4===e.addAsTypeOnly));c=oe(c,LQ(n&&XC.createIdentifier(n.name),null==r?void 0:r.map((e=>XC.createImportSpecifier(!i&&Fee(e,a),void 0===e.propertyName?void 0:XC.createIdentifier(e.propertyName),XC.createIdentifier(e.name)))),e,t,i))}return i&&(c=oe(c,3===i.importKind?XC.createImportEqualsDeclaration(void 0,Fee(i,a),XC.createIdentifier(i.name),XC.createExternalModuleReference(s)):XC.createImportDeclaration(void 0,XC.createImportClause(Fee(i,a),void 0,XC.createNamespaceImport(XC.createIdentifier(i.name))),s,void 0))),un.checkDefined(c)}function Pee(e,t,n,r,i){const o=jQ(e,t);let a;if(n||(null==r?void 0:r.length)){const e=(null==r?void 0:r.map((({name:e,propertyName:t})=>XC.createBindingElement(void 0,t,e))))||[];n&&e.unshift(XC.createBindingElement(void 0,"default",n.name)),a=oe(a,Aee(XC.createObjectBindingPattern(e),o))}return i&&(a=oe(a,Aee(i.name,o))),un.checkDefined(a)}function Aee(e,t){return XC.createVariableStatement(void 0,XC.createVariableDeclarationList([XC.createVariableDeclaration("string"==typeof e?XC.createIdentifier(e):e,void 0,void 0,XC.createCallExpression(XC.createIdentifier("require"),void 0,[t]))],2))}function Iee(e,t){return!!(7===t||(1&t?111551&e:2&t?788968&e:4&t&&1920&e))}function Oee(e,t){return Nm(e)?t.getImpliedNodeFormatForEmit(e):SV(e,t.getCompilerOptions())}k7({errorCodes:Y9,getCodeActions(e){const{errorCode:t,preferences:n,sourceFile:r,span:i,program:o}=e,a=pee(e,t,i.start,!0);if(a)return a.map((({fix:t,symbolName:i,errorIdentifierText:a})=>kee(e,r,i,t,i!==a,o,n)))},fixIds:[Q9],getAllCodeActions:e=>{const{sourceFile:t,program:n,preferences:r,host:i,cancellationToken:o}=e,a=eee(t,n,!0,r,i,o);return F7(e,Y9,(t=>a.addImportFromDiagnostic(t,e))),w7(Tue.ChangeTracker.with(e,a.writeFixes))}});var Lee="addMissingConstraint",jee=[la.Type_0_is_not_comparable_to_type_1.code,la.Type_0_is_not_assignable_to_type_1_Two_different_types_with_this_name_exist_but_they_are_unrelated.code,la.Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_types_of_the_target_s_properties.code,la.Type_0_is_not_assignable_to_type_1.code,la.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_types_of_the_target_s_properties.code,la.Property_0_is_incompatible_with_index_signature.code,la.Property_0_in_type_1_is_not_assignable_to_type_2.code,la.Type_0_does_not_satisfy_the_constraint_1.code];function Ree(e,t,n){const r=b(e.getSemanticDiagnostics(t),(e=>e.start===n.start&&e.length===n.length));if(void 0===r||void 0===r.relatedInformation)return;const i=b(r.relatedInformation,(e=>e.code===la.This_type_parameter_might_need_an_extends_0_constraint.code));if(void 0===i||void 0===i.file||void 0===i.start||void 0===i.length)return;let o=Wie(i.file,Vs(i.start,i.length));if(void 0!==o&&(zN(o)&&iD(o.parent)&&(o=o.parent),iD(o))){if(RD(o.parent))return;const r=PX(t,n.start);return{constraint:function(e,t){if(v_(t.parent))return e.getTypeArgumentConstraint(t.parent);return(U_(t)?e.getContextualType(t):void 0)||e.getTypeAtLocation(t)}(e.getTypeChecker(),r)||function(e){const[,t]=UU(e,"\n",0).match(/`extends (.*)`/)||[];return t}(i.messageText),declaration:o,token:r}}}function Mee(e,t,n,r,i,o){const{declaration:a,constraint:s}=o,c=t.getTypeChecker();if(Ze(s))e.insertText(i,a.name.end,` extends ${s}`);else{const o=hk(t.getCompilerOptions()),l=kie({program:t,host:r}),_=Z9(i,t,n,r),u=Die(c,_,s,void 0,o,void 0,void 0,l);u&&(e.replaceNode(i,a,XC.updateTypeParameterDeclaration(a,void 0,a.name,u,a.default)),_.writeFixes(e))}}k7({errorCodes:jee,getCodeActions(e){const{sourceFile:t,span:n,program:r,preferences:i,host:o}=e,a=Ree(r,t,n);if(void 0===a)return;const s=Tue.ChangeTracker.with(e,(e=>Mee(e,r,i,o,t,a)));return[v7(Lee,s,la.Add_extends_constraint,Lee,la.Add_extends_constraint_to_all_type_parameters)]},fixIds:[Lee],getAllCodeActions:e=>{const{program:t,preferences:n,host:r}=e,i=new Set;return w7(Tue.ChangeTracker.with(e,(o=>{F7(e,jee,(e=>{const a=Ree(t,e.file,Vs(e.start,e.length));if(a&&vx(i,jB(a.declaration)))return Mee(o,t,n,r,e.file,a)}))})))}});var Bee="fixOverrideModifier",Jee="fixAddOverrideModifier",zee="fixRemoveOverrideModifier",qee=[la.This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0.code,la.This_member_cannot_have_an_override_modifier_because_its_containing_class_0_does_not_extend_another_class.code,la.This_member_must_have_an_override_modifier_because_it_overrides_an_abstract_method_that_is_declared_in_the_base_class_0.code,la.This_member_must_have_an_override_modifier_because_it_overrides_a_member_in_the_base_class_0.code,la.This_parameter_property_must_have_an_override_modifier_because_it_overrides_a_member_in_base_class_0.code,la.This_member_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_class_0.code,la.This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_its_containing_class_0_does_not_extend_another_class.code,la.This_parameter_property_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_class_0.code,la.This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base_class_0.code],Uee={[la.This_member_must_have_an_override_modifier_because_it_overrides_a_member_in_the_base_class_0.code]:{descriptions:la.Add_override_modifier,fixId:Jee,fixAllDescriptions:la.Add_all_missing_override_modifiers},[la.This_member_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_class_0.code]:{descriptions:la.Add_override_modifier,fixId:Jee,fixAllDescriptions:la.Add_all_missing_override_modifiers},[la.This_member_cannot_have_an_override_modifier_because_its_containing_class_0_does_not_extend_another_class.code]:{descriptions:la.Remove_override_modifier,fixId:zee,fixAllDescriptions:la.Remove_all_unnecessary_override_modifiers},[la.This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_its_containing_class_0_does_not_extend_another_class.code]:{descriptions:la.Remove_override_modifier,fixId:zee,fixAllDescriptions:la.Remove_override_modifier},[la.This_parameter_property_must_have_an_override_modifier_because_it_overrides_a_member_in_base_class_0.code]:{descriptions:la.Add_override_modifier,fixId:Jee,fixAllDescriptions:la.Add_all_missing_override_modifiers},[la.This_parameter_property_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_class_0.code]:{descriptions:la.Add_override_modifier,fixId:Jee,fixAllDescriptions:la.Add_all_missing_override_modifiers},[la.This_member_must_have_an_override_modifier_because_it_overrides_an_abstract_method_that_is_declared_in_the_base_class_0.code]:{descriptions:la.Add_override_modifier,fixId:Jee,fixAllDescriptions:la.Remove_all_unnecessary_override_modifiers},[la.This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0.code]:{descriptions:la.Remove_override_modifier,fixId:zee,fixAllDescriptions:la.Remove_all_unnecessary_override_modifiers},[la.This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base_class_0.code]:{descriptions:la.Remove_override_modifier,fixId:zee,fixAllDescriptions:la.Remove_all_unnecessary_override_modifiers}};function Vee(e,t,n,r){switch(n){case la.This_member_must_have_an_override_modifier_because_it_overrides_a_member_in_the_base_class_0.code:case la.This_member_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_class_0.code:case la.This_member_must_have_an_override_modifier_because_it_overrides_an_abstract_method_that_is_declared_in_the_base_class_0.code:case la.This_parameter_property_must_have_an_override_modifier_because_it_overrides_a_member_in_base_class_0.code:case la.This_parameter_property_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_class_0.code:return function(e,t,n){const r=$ee(t,n);if(Dm(t))return void e.addJSDocTags(t,r,[XC.createJSDocOverrideTag(XC.createIdentifier("override"))]);const i=r.modifiers||l,o=b(i,GN),a=b(i,XN),s=b(i,(e=>aQ(e.kind))),c=x(i,aD),_=a?a.end:o?o.end:s?s.end:c?Xa(t.text,c.end):r.getStart(t),u=s||o||a?{prefix:" "}:{suffix:" "};e.insertModifierAt(t,_,164,u)}(e,t.sourceFile,r);case la.This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0.code:case la.This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base_class_0.code:case la.This_member_cannot_have_an_override_modifier_because_its_containing_class_0_does_not_extend_another_class.code:case la.This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_its_containing_class_0_does_not_extend_another_class.code:return function(e,t,n){const r=$ee(t,n);if(Dm(t))return void e.filterJSDocTags(t,r,tn(mP));const i=b(r.modifiers,QN);un.assertIsDefined(i),e.deleteModifier(t,i)}(e,t.sourceFile,r);default:un.fail("Unexpected error code: "+n)}}function Wee(e){switch(e.kind){case 176:case 172:case 174:case 177:case 178:return!0;case 169:return Ys(e,e.parent);default:return!1}}function $ee(e,t){const n=_c(PX(e,t),(e=>__(e)?"quit":Wee(e)));return un.assert(n&&Wee(n)),n}k7({errorCodes:qee,getCodeActions:function(e){const{errorCode:t,span:n}=e,r=Uee[t];if(!r)return l;const{descriptions:i,fixId:o,fixAllDescriptions:a}=r,s=Tue.ChangeTracker.with(e,(r=>Vee(r,e,t,n.start)));return[b7(Bee,s,i,o,a)]},fixIds:[Bee,Jee,zee],getAllCodeActions:e=>D7(e,qee,((t,n)=>{const{code:r,start:i}=n,o=Uee[r];o&&o.fixId===e.fixId&&Vee(t,e,r,i)}))});var Hee="fixNoPropertyAccessFromIndexSignature",Kee=[la.Property_0_comes_from_an_index_signature_so_it_must_be_accessed_with_0.code];function Gee(e,t,n,r){const i=BQ(t,r),o=XC.createStringLiteral(n.name.text,0===i);e.replaceNode(t,n,pl(n)?XC.createElementAccessChain(n.expression,n.questionDotToken,o):XC.createElementAccessExpression(n.expression,o))}function Xee(e,t){return nt(PX(e,t).parent,HD)}k7({errorCodes:Kee,fixIds:[Hee],getCodeActions(e){const{sourceFile:t,span:n,preferences:r}=e,i=Xee(t,n.start),o=Tue.ChangeTracker.with(e,(t=>Gee(t,e.sourceFile,i,r)));return[v7(Hee,o,[la.Use_element_access_for_0,i.name.text],Hee,la.Use_element_access_for_all_undeclared_properties)]},getAllCodeActions:e=>D7(e,Kee,((t,n)=>Gee(t,n.file,Xee(n.file,n.start),e.preferences)))});var Qee="fixImplicitThis",Yee=[la.this_implicitly_has_type_any_because_it_does_not_have_a_type_annotation.code];function Zee(e,t,n,r){const i=PX(t,n);if(!rX(i))return;const o=Zf(i,!1,!1);if(($F(o)||eF(o))&&!qE(Zf(o,!1,!1))){const n=un.checkDefined(yX(o,100,t)),{name:i}=o,a=un.checkDefined(o.body);if(eF(o)){if(i&&ice.Core.isSymbolReferencedInFile(i,r,t,a))return;return e.delete(t,n),i&&e.delete(t,i),e.insertText(t,a.pos," =>"),[la.Convert_function_expression_0_to_arrow_function,i?i.text:aZ]}return e.replaceNode(t,n,XC.createToken(87)),e.insertText(t,i.end," = "),e.insertText(t,a.pos," =>"),[la.Convert_function_declaration_0_to_arrow_function,i.text]}}k7({errorCodes:Yee,getCodeActions:function(e){const{sourceFile:t,program:n,span:r}=e;let i;const o=Tue.ChangeTracker.with(e,(e=>{i=Zee(e,t,r.start,n.getTypeChecker())}));return i?[v7(Qee,o,i,Qee,la.Fix_all_implicit_this_errors)]:l},fixIds:[Qee],getAllCodeActions:e=>D7(e,Yee,((t,n)=>{Zee(t,n.file,n.start,e.program.getTypeChecker())}))});var ete="fixImportNonExportedMember",tte=[la.Module_0_declares_1_locally_but_it_is_not_exported.code];function nte(e,t,n){var r,i;const o=PX(e,t);if(zN(o)){const t=_c(o,nE);if(void 0===t)return;const a=TN(t.moduleSpecifier)?t.moduleSpecifier:void 0;if(void 0===a)return;const s=null==(r=n.getResolvedModuleFromModuleSpecifier(a,e))?void 0:r.resolvedModule;if(void 0===s)return;const c=n.getSourceFile(s.resolvedFileName);if(void 0===c||$Z(n,c))return;const l=null==(i=tt(c.symbol.valueDeclaration,au))?void 0:i.locals;if(void 0===l)return;const _=l.get(o.escapedText);if(void 0===_)return;const d=function(e){if(void 0===e.valueDeclaration)return fe(e.declarations);const t=e.valueDeclaration,n=VF(t)?tt(t.parent.parent,wF):void 0;return n&&1===u(n.declarationList.declarations)?n:t}(_);if(void 0===d)return;return{exportName:{node:o,isTypeOnly:qT(d)},node:d,moduleSourceFile:c,moduleSpecifier:a.text}}}function rte(e,t,n,r,i){u(r)&&(i?ote(e,t,n,i,r):ate(e,t,n,r))}function ite(e,t){return x(e.statements,(e=>fE(e)&&(t&&e.isTypeOnly||!e.isTypeOnly)))}function ote(e,t,n,r,i){const o=r.exportClause&&mE(r.exportClause)?r.exportClause.elements:XC.createNodeArray([]),a=!(r.isTypeOnly||!xk(t.getCompilerOptions())&&!b(o,(e=>e.isTypeOnly)));e.replaceNode(n,r,XC.updateExportDeclaration(r,r.modifiers,r.isTypeOnly,XC.createNamedExports(XC.createNodeArray([...o,...ste(i,a)],o.hasTrailingComma)),r.moduleSpecifier,r.attributes))}function ate(e,t,n,r){e.insertNodeAtEndOfScope(n,n,XC.createExportDeclaration(void 0,!1,XC.createNamedExports(ste(r,xk(t.getCompilerOptions()))),void 0,void 0))}function ste(e,t){return XC.createNodeArray(E(e,(e=>XC.createExportSpecifier(t&&e.isTypeOnly,void 0,e.node))))}k7({errorCodes:tte,fixIds:[ete],getCodeActions(e){const{sourceFile:t,span:n,program:r}=e,i=nte(t,n.start,r);if(void 0===i)return;const o=Tue.ChangeTracker.with(e,(e=>function(e,t,{exportName:n,node:r,moduleSourceFile:i}){const o=ite(i,n.isTypeOnly);o?ote(e,t,i,o,[n]):UT(r)?e.insertExportModifier(i,r):ate(e,t,i,[n])}(e,r,i)));return[v7(ete,o,[la.Export_0_from_module_1,i.exportName.node.text,i.moduleSpecifier],ete,la.Export_all_referenced_locals)]},getAllCodeActions(e){const{program:t}=e;return w7(Tue.ChangeTracker.with(e,(n=>{const r=new Map;F7(e,tte,(e=>{const i=nte(e.file,e.start,t);if(void 0===i)return;const{exportName:o,node:a,moduleSourceFile:s}=i;if(void 0===ite(s,o.isTypeOnly)&&UT(a))n.insertExportModifier(s,a);else{const e=r.get(s)||{typeOnlyExports:[],exports:[]};o.isTypeOnly?e.typeOnlyExports.push(o):e.exports.push(o),r.set(s,e)}})),r.forEach(((e,r)=>{const i=ite(r,!0);i&&i.isTypeOnly?(rte(n,t,r,e.typeOnlyExports,i),rte(n,t,r,e.exports,ite(r,!1))):rte(n,t,r,[...e.exports,...e.typeOnlyExports],i)}))})))}});var cte="fixIncorrectNamedTupleSyntax";k7({errorCodes:[la.A_labeled_tuple_element_is_declared_as_optional_with_a_question_mark_after_the_name_and_before_the_colon_rather_than_after_the_type.code,la.A_labeled_tuple_element_is_declared_as_rest_with_a_before_the_name_rather_than_before_the_type.code],getCodeActions:function(e){const{sourceFile:t,span:n}=e,r=function(e,t){return _c(PX(e,t),(e=>202===e.kind))}(t,n.start),i=Tue.ChangeTracker.with(e,(e=>function(e,t,n){if(!n)return;let r=n.type,i=!1,o=!1;for(;190===r.kind||191===r.kind||196===r.kind;)190===r.kind?i=!0:191===r.kind&&(o=!0),r=r.type;const a=XC.updateNamedTupleMember(n,n.dotDotDotToken||(o?XC.createToken(26):void 0),n.name,n.questionToken||(i?XC.createToken(58):void 0),r);a!==n&&e.replaceNode(t,n,a)}(e,t,r)));return[v7(cte,i,la.Move_labeled_tuple_element_modifiers_to_labels,cte,la.Move_labeled_tuple_element_modifiers_to_labels)]},fixIds:[cte]});var lte="fixSpelling",_te=[la.Property_0_does_not_exist_on_type_1_Did_you_mean_2.code,la.Property_0_may_not_exist_on_type_1_Did_you_mean_2.code,la.Cannot_find_name_0_Did_you_mean_1.code,la.Could_not_find_name_0_Did_you_mean_1.code,la.Cannot_find_namespace_0_Did_you_mean_1.code,la.Cannot_find_name_0_Did_you_mean_the_instance_member_this_0.code,la.Cannot_find_name_0_Did_you_mean_the_static_member_1_0.code,la._0_has_no_exported_member_named_1_Did_you_mean_2.code,la.This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0_Did_you_mean_1.code,la.This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base_class_0_Did_you_mean_1.code,la.No_overload_matches_this_call.code,la.Type_0_is_not_assignable_to_type_1.code];function ute(e,t,n,r){const i=PX(e,t),o=i.parent;if((r===la.No_overload_matches_this_call.code||r===la.Type_0_is_not_assignable_to_type_1.code)&&!FE(o))return;const a=n.program.getTypeChecker();let s;if(HD(o)&&o.name===i){un.assert(ul(i),"Expected an identifier for spelling (property access)");let e=a.getTypeAtLocation(o.expression);64&o.flags&&(e=a.getNonNullableType(e)),s=a.getSuggestedSymbolForNonexistentProperty(i,e)}else if(cF(o)&&103===o.operatorToken.kind&&o.left===i&&qN(i)){const e=a.getTypeAtLocation(o.right);s=a.getSuggestedSymbolForNonexistentProperty(i,e)}else if(nD(o)&&o.right===i){const e=a.getSymbolAtLocation(o.left);e&&1536&e.flags&&(s=a.getSuggestedSymbolForNonexistentModule(o.right,e))}else if(dE(o)&&o.name===i){un.assertNode(i,zN,"Expected an identifier for spelling (import)");const t=function(e,t,n){var r;if(!t||!Lu(t.moduleSpecifier))return;const i=null==(r=e.program.getResolvedModuleFromModuleSpecifier(t.moduleSpecifier,n))?void 0:r.resolvedModule;return i?e.program.getSourceFile(i.resolvedFileName):void 0}(n,_c(i,nE),e);t&&t.symbol&&(s=a.getSuggestedSymbolForNonexistentModule(i,t.symbol))}else if(FE(o)&&o.name===i){un.assertNode(i,zN,"Expected an identifier for JSX attribute");const e=_c(i,vu),t=a.getContextualTypeForArgumentAtIndex(e,0);s=a.getSuggestedSymbolForNonexistentJSXAttribute(i,t)}else if(Fv(o)&&l_(o)&&o.name===i){const e=_c(i,__),t=e?hh(e):void 0,n=t?a.getTypeAtLocation(t):void 0;n&&(s=a.getSuggestedSymbolForNonexistentClassMember(Kd(i),n))}else{const e=FG(i),t=Kd(i);un.assert(void 0!==t,"name should be defined"),s=a.getSuggestedSymbolForNonexistentSymbol(i,t,function(e){let t=0;return 4&e&&(t|=1920),2&e&&(t|=788968),1&e&&(t|=111551),t}(e))}return void 0===s?void 0:{node:i,suggestedSymbol:s}}function dte(e,t,n,r,i){const o=hc(r);if(!fs(o,i)&&HD(n.parent)){const i=r.valueDeclaration;i&&kc(i)&&qN(i.name)?e.replaceNode(t,n,XC.createIdentifier(o)):e.replaceNode(t,n.parent,XC.createElementAccessExpression(n.parent.expression,XC.createStringLiteral(o)))}else e.replaceNode(t,n,XC.createIdentifier(o))}k7({errorCodes:_te,getCodeActions(e){const{sourceFile:t,errorCode:n}=e,r=ute(t,e.span.start,e,n);if(!r)return;const{node:i,suggestedSymbol:o}=r,a=hk(e.host.getCompilationSettings());return[v7("spelling",Tue.ChangeTracker.with(e,(e=>dte(e,t,i,o,a))),[la.Change_spelling_to_0,hc(o)],lte,la.Fix_all_detected_spelling_errors)]},fixIds:[lte],getAllCodeActions:e=>D7(e,_te,((t,n)=>{const r=ute(n.file,n.start,e,n.code),i=hk(e.host.getCompilationSettings());r&&dte(t,e.sourceFile,r.node,r.suggestedSymbol,i)}))});var pte="returnValueCorrect",fte="fixAddReturnStatement",mte="fixRemoveBracesFromArrowFunctionBody",gte="fixWrapTheBlockWithParen",hte=[la.A_function_whose_declared_type_is_neither_undefined_void_nor_any_must_return_a_value.code,la.Type_0_is_not_assignable_to_type_1.code,la.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1.code];function yte(e,t,n){const r=e.createSymbol(4,t.escapedText);r.links.type=e.getTypeAtLocation(n);const i=Hu([r]);return e.createAnonymousType(void 0,i,[],[],[])}function vte(e,t,n,r){if(!t.body||!CF(t.body)||1!==u(t.body.statements))return;const i=ge(t.body.statements);if(DF(i)&&bte(e,t,e.getTypeAtLocation(i.expression),n,r))return{declaration:t,kind:0,expression:i.expression,statement:i,commentSource:i.expression};if(JF(i)&&DF(i.statement)){const o=XC.createObjectLiteralExpression([XC.createPropertyAssignment(i.label,i.statement.expression)]);if(bte(e,t,yte(e,i.label,i.statement.expression),n,r))return tF(t)?{declaration:t,kind:1,expression:o,statement:i,commentSource:i.statement.expression}:{declaration:t,kind:0,expression:o,statement:i,commentSource:i.statement.expression}}else if(CF(i)&&1===u(i.statements)){const o=ge(i.statements);if(JF(o)&&DF(o.statement)){const a=XC.createObjectLiteralExpression([XC.createPropertyAssignment(o.label,o.statement.expression)]);if(bte(e,t,yte(e,o.label,o.statement.expression),n,r))return{declaration:t,kind:0,expression:a,statement:i,commentSource:o}}}}function bte(e,t,n,r,i){if(i){const r=e.getSignatureFromDeclaration(t);if(r){wv(t,1024)&&(n=e.createPromiseType(n));const i=e.createSignature(t,r.typeParameters,r.thisParameter,r.parameters,n,void 0,r.minArgumentCount,r.flags);n=e.createAnonymousType(void 0,Hu(),[i],[],[])}else n=e.getAnyType()}return e.isTypeAssignableTo(n,r)}function xte(e,t,n,r){const i=PX(t,n);if(!i.parent)return;const o=_c(i.parent,i_);switch(r){case la.A_function_whose_declared_type_is_neither_undefined_void_nor_any_must_return_a_value.code:if(!(o&&o.body&&o.type&&Gb(o.type,i)))return;return vte(e,o,e.getTypeFromTypeNode(o.type),!1);case la.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1.code:if(!o||!GD(o.parent)||!o.body)return;const t=o.parent.arguments.indexOf(o);if(-1===t)return;const n=e.getContextualTypeForArgumentAtIndex(o.parent,t);if(!n)return;return vte(e,o,n,!0);case la.Type_0_is_not_assignable_to_type_1.code:if(!ch(i)||!Ef(i.parent)&&!FE(i.parent))return;const r=function(e){switch(e.kind){case 260:case 169:case 208:case 172:case 303:return e.initializer;case 291:return e.initializer&&(AE(e.initializer)?e.initializer.expression:void 0);case 304:case 171:case 306:case 348:case 341:return}}(i.parent);if(!r||!i_(r)||!r.body)return;return vte(e,r,e.getTypeAtLocation(i.parent),!0)}}function kte(e,t,n,r){JY(n);const i=fZ(t);e.replaceNode(t,r,XC.createReturnStatement(n),{leadingTriviaOption:Tue.LeadingTriviaOption.Exclude,trailingTriviaOption:Tue.TrailingTriviaOption.Exclude,suffix:i?";":void 0})}function Ste(e,t,n,r,i,o){const a=o||ZY(r)?XC.createParenthesizedExpression(r):r;JY(i),UY(i,a),e.replaceNode(t,n.body,a)}function Tte(e,t,n,r){e.replaceNode(t,n.body,XC.createParenthesizedExpression(r))}function Cte(e,t,n){const r=Tue.ChangeTracker.with(e,(r=>kte(r,e.sourceFile,t,n)));return v7(pte,r,la.Add_a_return_statement,fte,la.Add_all_missing_return_statement)}function wte(e,t,n){const r=Tue.ChangeTracker.with(e,(r=>Tte(r,e.sourceFile,t,n)));return v7(pte,r,la.Wrap_the_following_body_with_parentheses_which_should_be_an_object_literal,gte,la.Wrap_all_object_literal_with_parentheses)}k7({errorCodes:hte,fixIds:[fte,mte,gte],getCodeActions:function(e){const{program:t,sourceFile:n,span:{start:r},errorCode:i}=e,o=xte(t.getTypeChecker(),n,r,i);if(o)return 0===o.kind?ie([Cte(e,o.expression,o.statement)],tF(o.declaration)?function(e,t,n,r){const i=Tue.ChangeTracker.with(e,(i=>Ste(i,e.sourceFile,t,n,r,!1)));return v7(pte,i,la.Remove_braces_from_arrow_function_body,mte,la.Remove_braces_from_all_arrow_function_bodies_with_relevant_issues)}(e,o.declaration,o.expression,o.commentSource):void 0):[wte(e,o.declaration,o.expression)]},getAllCodeActions:e=>D7(e,hte,((t,n)=>{const r=xte(e.program.getTypeChecker(),n.file,n.start,n.code);if(r)switch(e.fixId){case fte:kte(t,n.file,r.expression,r.statement);break;case mte:if(!tF(r.declaration))return;Ste(t,n.file,r.declaration,r.expression,r.commentSource,!1);break;case gte:if(!tF(r.declaration))return;Tte(t,n.file,r.declaration,r.expression);break;default:un.fail(JSON.stringify(e.fixId))}}))});var Nte="fixMissingMember",Dte="fixMissingProperties",Fte="fixMissingAttributes",Ete="fixMissingFunctionDeclaration",Pte=[la.Property_0_does_not_exist_on_type_1.code,la.Property_0_does_not_exist_on_type_1_Did_you_mean_2.code,la.Property_0_is_missing_in_type_1_but_required_in_type_2.code,la.Type_0_is_missing_the_following_properties_from_type_1_Colon_2.code,la.Type_0_is_missing_the_following_properties_from_type_1_Colon_2_and_3_more.code,la.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1.code,la.Cannot_find_name_0.code];function Ate(e,t,n,r,i){var o,a,s;const c=PX(e,t),_=c.parent;if(n===la.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1.code){if(19!==c.kind||!$D(_)||!GD(_.parent))return;const e=k(_.parent.arguments,(e=>e===_));if(e<0)return;const t=r.getResolvedSignature(_.parent);if(!(t&&t.declaration&&t.parameters[e]))return;const n=t.parameters[e].valueDeclaration;if(!(n&&oD(n)&&zN(n.name)))return;const i=Oe(r.getUnmatchedProperties(r.getTypeAtLocation(_),r.getParameterType(t,e).getNonNullableType(),!1,!1));if(!u(i))return;return{kind:3,token:n.name,identifier:n.name.text,properties:i,parentDeclaration:_}}if(19===c.kind&&$D(_)){const e=null==(o=r.getContextualType(_)||r.getTypeAtLocation(_))?void 0:o.getNonNullableType(),t=Oe(r.getUnmatchedProperties(r.getTypeAtLocation(_),e,!1,!1));if(!u(t))return;return{kind:3,token:_,identifier:"",properties:t,parentDeclaration:_}}if(!ul(c))return;if(zN(c)&&Fu(_)&&_.initializer&&$D(_.initializer)){const e=null==(a=r.getContextualType(c)||r.getTypeAtLocation(c))?void 0:a.getNonNullableType(),t=Oe(r.getUnmatchedProperties(r.getTypeAtLocation(_.initializer),e,!1,!1));if(!u(t))return;return{kind:3,token:c,identifier:c.text,properties:t,parentDeclaration:_.initializer}}if(zN(c)&&vu(c.parent)){const e=function(e,t,n){const r=e.getContextualType(n.attributes);if(void 0===r)return l;const i=r.getProperties();if(!u(i))return l;const o=new Set;for(const t of n.attributes.properties)if(FE(t)&&o.add(ZT(t.name)),PE(t)){const n=e.getTypeAtLocation(t.expression);for(const e of n.getProperties())o.add(e.escapedName)}return N(i,(e=>fs(e.name,t,1)&&!(16777216&e.flags||48&nx(e)||o.has(e.escapedName))))}(r,hk(i.getCompilerOptions()),c.parent);if(!u(e))return;return{kind:4,token:c,attributes:e,parentDeclaration:c.parent}}if(zN(c)){const t=null==(s=r.getContextualType(c))?void 0:s.getNonNullableType();if(t&&16&mx(t)){const n=fe(r.getSignaturesOfType(t,0));if(void 0===n)return;return{kind:5,token:c,signature:n,sourceFile:e,parentDeclaration:Wte(c)}}if(GD(_)&&_.expression===c)return{kind:2,token:c,call:_,sourceFile:e,modifierFlags:0,parentDeclaration:Wte(c)}}if(!HD(_))return;const d=NQ(r.getTypeAtLocation(_.expression)),p=d.symbol;if(!p||!p.declarations)return;if(zN(c)&&GD(_.parent)){const t=b(p.declarations,QF),n=null==t?void 0:t.getSourceFile();if(t&&n&&!$Z(i,n))return{kind:2,token:c,call:_.parent,sourceFile:n,modifierFlags:32,parentDeclaration:t};const r=b(p.declarations,qE);if(e.commonJsModuleIndicator)return;if(r&&!$Z(i,r))return{kind:2,token:c,call:_.parent,sourceFile:r,modifierFlags:32,parentDeclaration:r}}const f=b(p.declarations,__);if(!f&&qN(c))return;const m=f||b(p.declarations,(e=>KF(e)||SD(e)));if(m&&!$Z(i,m.getSourceFile())){const e=!SD(m)&&(d.target||d)!==r.getDeclaredTypeOfSymbol(p);if(e&&(qN(c)||KF(m)))return;const t=m.getSourceFile(),n=SD(m)?0:(e?256:0)|(BZ(c.text)?2:0),i=Dm(t);return{kind:0,token:c,call:tt(_.parent,GD),modifierFlags:n,parentDeclaration:m,declSourceFile:t,isJSFile:i}}const g=b(p.declarations,XF);return!g||1056&d.flags||qN(c)||$Z(i,g.getSourceFile())?void 0:{kind:1,token:c,parentDeclaration:g}}function Ite(e,t,n,r,i){const o=r.text;if(i){if(231===n.kind)return;const r=n.name.getText(),i=Ote(XC.createIdentifier(r),o);e.insertNodeAfter(t,n,i)}else if(qN(r)){const r=XC.createPropertyDeclaration(void 0,o,void 0,void 0,void 0),i=Rte(n);i?e.insertNodeAfter(t,i,r):e.insertMemberAtStart(t,n,r)}else{const r=rv(n);if(!r)return;const i=Ote(XC.createThis(),o);e.insertNodeAtConstructorEnd(t,r,i)}}function Ote(e,t){return XC.createExpressionStatement(XC.createAssignment(XC.createPropertyAccessExpression(e,t),Vte()))}function Lte(e,t,n){let r;if(226===n.parent.parent.kind){const i=n.parent.parent,o=n.parent===i.left?i.right:i.left,a=e.getWidenedType(e.getBaseTypeOfLiteralType(e.getTypeAtLocation(o)));r=e.typeToTypeNode(a,t,1,8)}else{const t=e.getContextualType(n.parent);r=t?e.typeToTypeNode(t,void 0,1,8):void 0}return r||XC.createKeywordTypeNode(133)}function jte(e,t,n,r,i,o){const a=o?XC.createNodeArray(XC.createModifiersFromModifierFlags(o)):void 0,s=__(n)?XC.createPropertyDeclaration(a,r,void 0,i,void 0):XC.createPropertySignature(void 0,r,void 0,i),c=Rte(n);c?e.insertNodeAfter(t,c,s):e.insertMemberAtStart(t,n,s)}function Rte(e){let t;for(const n of e.members){if(!cD(n))break;t=n}return t}function Mte(e,t,n,r,i,o,a){const s=Z9(a,e.program,e.preferences,e.host),c=wie(__(o)?174:173,e,s,n,r,i,o),l=function(e,t){if(SD(e))return;const n=_c(t,(e=>_D(e)||dD(e)));return n&&n.parent===e?n:void 0}(o,n);l?t.insertNodeAfter(a,l,c):t.insertMemberAtStart(a,o,c),s.writeFixes(t)}function Bte(e,t,{token:n,parentDeclaration:r}){const i=$(r.members,(e=>{const n=t.getTypeAtLocation(e);return!!(n&&402653316&n.flags)})),o=r.getSourceFile(),a=XC.createEnumMember(n,i?XC.createStringLiteral(n.text):void 0),s=ye(r.members);s?e.insertNodeInListAfter(o,s,a,r.members):e.insertMemberAtStart(o,r,a)}function Jte(e,t,n){const r=BQ(t.sourceFile,t.preferences),i=Z9(t.sourceFile,t.program,t.preferences,t.host),o=2===n.kind?wie(262,t,i,n.call,mc(n.token),n.modifierFlags,n.parentDeclaration):Cie(262,t,r,n.signature,Rie(la.Function_not_implemented.message,r),n.token,void 0,void 0,void 0,i);void 0===o&&un.fail("fixMissingFunctionDeclaration codefix got unexpected error."),RF(n.parentDeclaration)?e.insertNodeBefore(n.sourceFile,n.parentDeclaration,o,!0):e.insertNodeAtEndOfScope(n.sourceFile,n.parentDeclaration,o),i.writeFixes(e)}function zte(e,t,n){const r=Z9(t.sourceFile,t.program,t.preferences,t.host),i=BQ(t.sourceFile,t.preferences),o=t.program.getTypeChecker(),a=n.parentDeclaration.attributes,s=$(a.properties,PE),c=E(n.attributes,(e=>{const a=Ute(t,o,r,i,o.getTypeOfSymbol(e),n.parentDeclaration),s=XC.createIdentifier(e.name),c=XC.createJsxAttribute(s,XC.createJsxExpression(void 0,a));return wT(s,c),c})),l=XC.createJsxAttributes(s?[...c,...a.properties]:[...a.properties,...c]),_={prefix:a.pos===a.end?" ":void 0};e.replaceNode(t.sourceFile,a,l,_),r.writeFixes(e)}function qte(e,t,n){const r=Z9(t.sourceFile,t.program,t.preferences,t.host),i=BQ(t.sourceFile,t.preferences),o=hk(t.program.getCompilerOptions()),a=t.program.getTypeChecker(),s=E(n.properties,(e=>{const s=Ute(t,a,r,i,a.getTypeOfSymbol(e),n.parentDeclaration);return XC.createPropertyAssignment(function(e,t,n,r){if(Ku(e)){const t=r.symbolToNode(e,111551,void 0,void 0,1);if(t&&rD(t))return t}return BT(e.name,t,0===n,!1,!1)}(e,o,i,a),s)})),c={leadingTriviaOption:Tue.LeadingTriviaOption.Exclude,trailingTriviaOption:Tue.TrailingTriviaOption.Exclude,indentation:n.indentation};e.replaceNode(t.sourceFile,n.parentDeclaration,XC.createObjectLiteralExpression([...n.parentDeclaration.properties,...s],!0),c),r.writeFixes(e)}function Ute(e,t,n,r,i,o){if(3&i.flags)return Vte();if(134217732&i.flags)return XC.createStringLiteral("",0===r);if(8&i.flags)return XC.createNumericLiteral(0);if(64&i.flags)return XC.createBigIntLiteral("0n");if(16&i.flags)return XC.createFalse();if(1056&i.flags){const e=i.symbol.exports?me(i.symbol.exports.values()):i.symbol,n=i.symbol.parent&&256&i.symbol.parent.flags?i.symbol.parent:i.symbol,r=t.symbolToExpression(n,111551,void 0,64);return void 0===e||void 0===r?XC.createNumericLiteral(0):XC.createPropertyAccessExpression(r,t.symbolToString(e))}if(256&i.flags)return XC.createNumericLiteral(i.value);if(2048&i.flags)return XC.createBigIntLiteral(i.value);if(128&i.flags)return XC.createStringLiteral(i.value,0===r);if(512&i.flags)return i===t.getFalseType()||i===t.getFalseType(!0)?XC.createFalse():XC.createTrue();if(65536&i.flags)return XC.createNull();if(1048576&i.flags)return f(i.types,(i=>Ute(e,t,n,r,i,o)))??Vte();if(t.isArrayLikeType(i))return XC.createArrayLiteralExpression();if(function(e){return 524288&e.flags&&(128&mx(e)||e.symbol&&tt(be(e.symbol.declarations),SD))}(i)){const a=E(t.getPropertiesOfType(i),(i=>{const a=Ute(e,t,n,r,t.getTypeOfSymbol(i),o);return XC.createPropertyAssignment(i.name,a)}));return XC.createObjectLiteralExpression(a,!0)}if(16&mx(i)){if(void 0===b(i.symbol.declarations||l,en(bD,lD,_D)))return Vte();const a=t.getSignaturesOfType(i,0);return void 0===a?Vte():Cie(218,e,r,a[0],Rie(la.Function_not_implemented.message,r),void 0,void 0,void 0,o,n)??Vte()}if(1&mx(i)){const e=fx(i.symbol);if(void 0===e||Ev(e))return Vte();const t=rv(e);return t&&u(t.parameters)?Vte():XC.createNewExpression(XC.createIdentifier(i.symbol.name),void 0,void 0)}return Vte()}function Vte(){return XC.createIdentifier("undefined")}function Wte(e){if(_c(e,AE)){const t=_c(e.parent,RF);if(t)return t}return hd(e)}k7({errorCodes:Pte,getCodeActions(e){const t=e.program.getTypeChecker(),n=Ate(e.sourceFile,e.span.start,e.errorCode,t,e.program);if(n){if(3===n.kind){const t=Tue.ChangeTracker.with(e,(t=>qte(t,e,n)));return[v7(Dte,t,la.Add_missing_properties,Dte,la.Add_all_missing_properties)]}if(4===n.kind){const t=Tue.ChangeTracker.with(e,(t=>zte(t,e,n)));return[v7(Fte,t,la.Add_missing_attributes,Fte,la.Add_all_missing_attributes)]}if(2===n.kind||5===n.kind){const t=Tue.ChangeTracker.with(e,(t=>Jte(t,e,n)));return[v7(Ete,t,[la.Add_missing_function_declaration_0,n.token.text],Ete,la.Add_all_missing_function_declarations)]}if(1===n.kind){const t=Tue.ChangeTracker.with(e,(t=>Bte(t,e.program.getTypeChecker(),n)));return[v7(Nte,t,[la.Add_missing_enum_member_0,n.token.text],Nte,la.Add_all_missing_members)]}return K(function(e,t){const{parentDeclaration:n,declSourceFile:r,modifierFlags:i,token:o,call:a}=t;if(void 0===a)return;const s=o.text,c=t=>Tue.ChangeTracker.with(e,(i=>Mte(e,i,a,o,t,n,r))),l=[v7(Nte,c(256&i),[256&i?la.Declare_static_method_0:la.Declare_method_0,s],Nte,la.Add_all_missing_members)];return 2&i&&l.unshift(y7(Nte,c(2),[la.Declare_private_method_0,s])),l}(e,n),function(e,t){return t.isJSFile?rn(function(e,{parentDeclaration:t,declSourceFile:n,modifierFlags:r,token:i}){if(KF(t)||SD(t))return;const o=Tue.ChangeTracker.with(e,(e=>Ite(e,n,t,i,!!(256&r))));if(0===o.length)return;const a=256&r?la.Initialize_static_property_0:qN(i)?la.Declare_a_private_field_named_0:la.Initialize_property_0_in_the_constructor;return v7(Nte,o,[a,i.text],Nte,la.Add_all_missing_members)}(e,t)):function(e,{parentDeclaration:t,declSourceFile:n,modifierFlags:r,token:i}){const o=i.text,a=256&r,s=Lte(e.program.getTypeChecker(),t,i),c=r=>Tue.ChangeTracker.with(e,(e=>jte(e,n,t,o,s,r))),l=[v7(Nte,c(256&r),[a?la.Declare_static_property_0:la.Declare_property_0,o],Nte,la.Add_all_missing_members)];return a||qN(i)||(2&r&&l.unshift(y7(Nte,c(2),[la.Declare_private_property_0,o])),l.push(function(e,t,n,r,i){const o=XC.createKeywordTypeNode(154),a=XC.createParameterDeclaration(void 0,void 0,"x",void 0,o,void 0),s=XC.createIndexSignature(void 0,[a],i),c=Tue.ChangeTracker.with(e,(e=>e.insertMemberAtStart(t,n,s)));return y7(Nte,c,[la.Add_index_signature_for_property_0,r])}(e,n,t,i.text,s))),l}(e,t)}(e,n))}},fixIds:[Nte,Ete,Dte,Fte],getAllCodeActions:e=>{const{program:t,fixId:n}=e,r=t.getTypeChecker(),i=new Set,o=new Map;return w7(Tue.ChangeTracker.with(e,(t=>{F7(e,Pte,(a=>{const s=Ate(a.file,a.start,a.code,r,e.program);if(s&&vx(i,jB(s.parentDeclaration)+"#"+(3===s.kind?s.identifier:s.token.text)))if(n!==Ete||2!==s.kind&&5!==s.kind){if(n===Dte&&3===s.kind)qte(t,e,s);else if(n===Fte&&4===s.kind)zte(t,e,s);else if(1===s.kind&&Bte(t,r,s),0===s.kind){const{parentDeclaration:e,token:t}=s,n=z(o,e,(()=>[]));n.some((e=>e.token.text===t.text))||n.push(s)}}else Jte(t,e,s)})),o.forEach(((n,i)=>{const a=SD(i)?void 0:Zie(i,r);for(const i of n){if(null==a?void 0:a.some((e=>{const t=o.get(e);return!!t&&t.some((({token:e})=>e.text===i.token.text))})))continue;const{parentDeclaration:n,declSourceFile:s,modifierFlags:c,token:l,call:_,isJSFile:u}=i;if(_&&!qN(l))Mte(e,t,_,l,256&c,n,s);else if(!u||KF(n)||SD(n)){const e=Lte(r,n,l);jte(t,s,n,l.text,e,256&c)}else Ite(t,s,n,l,!!(256&c))}}))})))}});var $te="addMissingNewOperator",Hte=[la.Value_of_type_0_is_not_callable_Did_you_mean_to_include_new.code];function Kte(e,t,n){const r=nt(function(e,t){let n=PX(e,t.start);const r=Ds(t);for(;n.endKte(e,t,n)));return[v7($te,r,la.Add_missing_new_operator_to_call,$te,la.Add_missing_new_operator_to_all_calls)]},fixIds:[$te],getAllCodeActions:e=>D7(e,Hte,((t,n)=>Kte(t,e.sourceFile,n)))});var Gte="addMissingParam",Xte="addOptionalParam",Qte=[la.Expected_0_arguments_but_got_1.code];function Yte(e,t,n){const r=_c(PX(e,n),GD);if(void 0===r||0===u(r.arguments))return;const i=t.getTypeChecker(),o=N(i.getTypeAtLocation(r.expression).symbol.declarations,tne);if(void 0===o)return;const a=ye(o);if(void 0===a||void 0===a.body||$Z(t,a.getSourceFile()))return;const s=function(e){const t=Tc(e);return t||(VF(e.parent)&&zN(e.parent.name)||cD(e.parent)||oD(e.parent)?e.parent.name:void 0)}(a);if(void 0===s)return;const c=[],l=[],_=u(a.parameters),d=u(r.arguments);if(_>d)return;const p=[a,...rne(a,o)];for(let e=0,t=0,n=0;e{const s=hd(i),c=Z9(s,t,n,r);u(i.parameters)?e.replaceNodeRangeWithNodes(s,ge(i.parameters),ve(i.parameters),nne(c,a,i,o),{joiner:", ",indentation:0,leadingTriviaOption:Tue.LeadingTriviaOption.IncludeAll,trailingTriviaOption:Tue.TrailingTriviaOption.Include}):d(nne(c,a,i,o),((t,n)=>{0===u(i.parameters)&&0===n?e.insertNodeAt(s,i.parameters.end,t):e.insertNodeAtEndOfList(s,i.parameters,t)})),c.writeFixes(e)}))}function tne(e){switch(e.kind){case 262:case 218:case 174:case 219:return!0;default:return!1}}function nne(e,t,n,r){const i=E(n.parameters,(e=>XC.createParameterDeclaration(e.modifiers,e.dotDotDotToken,e.name,e.questionToken,e.type,e.initializer)));for(const{pos:n,declaration:o}of r){const r=n>0?i[n-1]:void 0;i.splice(n,0,XC.updateParameterDeclaration(o,o.modifiers,o.dotDotDotToken,o.name,r&&r.questionToken?XC.createToken(58):o.questionToken,sne(e,o.type,t),o.initializer))}return i}function rne(e,t){const n=[];for(const r of t)if(ine(r)){if(u(r.parameters)===u(e.parameters)){n.push(r);continue}if(u(r.parameters)>u(e.parameters))return[]}return n}function ine(e){return tne(e)&&void 0===e.body}function one(e,t,n){return XC.createParameterDeclaration(void 0,void 0,e,n,t,void 0)}function ane(e,t){return u(e)&&$(e,(e=>tene(t,e.program,e.preferences,e.host,r,i))),[u(i)>1?la.Add_missing_parameters_to_0:la.Add_missing_parameter_to_0,n],Gte,la.Add_all_missing_parameters)),u(o)&&ie(a,v7(Xte,Tue.ChangeTracker.with(e,(t=>ene(t,e.program,e.preferences,e.host,r,o))),[u(o)>1?la.Add_optional_parameters_to_0:la.Add_optional_parameter_to_0,n],Xte,la.Add_all_optional_parameters)),a},getAllCodeActions:e=>D7(e,Qte,((t,n)=>{const r=Yte(e.sourceFile,e.program,n.start);if(r){const{declarations:n,newParameters:i,newOptionalParameters:o}=r;e.fixId===Gte&&ene(t,e.program,e.preferences,e.host,n,i),e.fixId===Xte&&ene(t,e.program,e.preferences,e.host,n,o)}}))});var cne="installTypesPackage",lne=la.Cannot_find_module_0_or_its_corresponding_type_declarations.code,_ne=la.This_JSX_tag_requires_the_module_path_0_to_exist_but_none_could_be_found_Make_sure_you_have_types_for_the_appropriate_package_installed.code,une=[lne,la.Could_not_find_a_declaration_file_for_module_0_1_implicitly_has_an_any_type.code,_ne];function dne(e,t){return{type:"install package",file:e,packageName:t}}function pne(e,t){const n=tt(PX(e,t),TN);if(!n)return;const r=n.text,{packageName:i}=YR(r);return Ts(i)?void 0:i}function fne(e,t,n){var r;return n===lne?CC.has(e)?"@types/node":void 0:(null==(r=t.isKnownTypesPackageName)?void 0:r.call(t,e))?pM(e):void 0}k7({errorCodes:une,getCodeActions:function(e){const{host:t,sourceFile:n,span:{start:r},errorCode:i}=e,o=i===_ne?$k(e.program.getCompilerOptions(),n):pne(n,r);if(void 0===o)return;const a=fne(o,t,i);return void 0===a?[]:[v7("fixCannotFindModule",[],[la.Install_0,a],cne,la.Install_all_missing_types_packages,dne(n.fileName,a))]},fixIds:[cne],getAllCodeActions:e=>D7(e,une,((t,n,r)=>{const i=pne(n.file,n.start);if(void 0!==i)switch(e.fixId){case cne:{const t=fne(i,e.host,n.code);t&&r.push(dne(n.file.fileName,t));break}default:un.fail(`Bad fixId: ${e.fixId}`)}}))});var mne=[la.Non_abstract_class_0_does_not_implement_inherited_abstract_member_1_from_class_2.code,la.Non_abstract_class_0_is_missing_implementations_for_the_following_members_of_1_Colon_2.code,la.Non_abstract_class_0_is_missing_implementations_for_the_following_members_of_1_Colon_2_and_3_more.code,la.Non_abstract_class_expression_does_not_implement_inherited_abstract_member_0_from_class_1.code,la.Non_abstract_class_expression_is_missing_implementations_for_the_following_members_of_0_Colon_1.code,la.Non_abstract_class_expression_is_missing_implementations_for_the_following_members_of_0_Colon_1_and_2_more.code],gne="fixClassDoesntImplementInheritedAbstractMember";function hne(e,t){return nt(PX(e,t).parent,__)}function yne(e,t,n,r,i){const o=hh(e),a=n.program.getTypeChecker(),s=a.getTypeAtLocation(o),c=a.getPropertiesOfType(s).filter(vne),l=Z9(t,n.program,i,n.host);xie(e,c,t,n,i,l,(n=>r.insertMemberAtStart(t,e,n))),l.writeFixes(r)}function vne(e){const t=Jv(ge(e.getDeclarations()));return!(2&t||!(64&t))}k7({errorCodes:mne,getCodeActions:function(e){const{sourceFile:t,span:n}=e,r=Tue.ChangeTracker.with(e,(r=>yne(hne(t,n.start),t,e,r,e.preferences)));return 0===r.length?void 0:[v7(gne,r,la.Implement_inherited_abstract_class,gne,la.Implement_all_inherited_abstract_classes)]},fixIds:[gne],getAllCodeActions:function(e){const t=new Set;return D7(e,mne,((n,r)=>{const i=hne(r.file,r.start);vx(t,jB(i))&&yne(i,e.sourceFile,e,n,e.preferences)}))}});var bne="classSuperMustPrecedeThisAccess",xne=[la.super_must_be_called_before_accessing_this_in_the_constructor_of_a_derived_class.code];function kne(e,t,n,r){e.insertNodeAtConstructorStart(t,n,r),e.delete(t,r)}function Sne(e,t){const n=PX(e,t);if(110!==n.kind)return;const r=Hf(n),i=Tne(r.body);return i&&!i.expression.arguments.some((e=>HD(e)&&e.expression===n))?{constructor:r,superCall:i}:void 0}function Tne(e){return DF(e)&&sf(e.expression)?e:n_(e)?void 0:PI(e,Tne)}k7({errorCodes:xne,getCodeActions(e){const{sourceFile:t,span:n}=e,r=Sne(t,n.start);if(!r)return;const{constructor:i,superCall:o}=r,a=Tue.ChangeTracker.with(e,(e=>kne(e,t,i,o)));return[v7(bne,a,la.Make_super_call_the_first_statement_in_the_constructor,bne,la.Make_all_super_calls_the_first_statement_in_their_constructor)]},fixIds:[bne],getAllCodeActions(e){const{sourceFile:t}=e,n=new Set;return D7(e,xne,((e,r)=>{const i=Sne(r.file,r.start);if(!i)return;const{constructor:o,superCall:a}=i;vx(n,jB(o.parent))&&kne(e,t,o,a)}))}});var Cne="constructorForDerivedNeedSuperCall",wne=[la.Constructors_for_derived_classes_must_contain_a_super_call.code];function Nne(e,t){const n=PX(e,t);return un.assert(dD(n.parent),"token should be at the constructor declaration"),n.parent}function Dne(e,t,n){const r=XC.createExpressionStatement(XC.createCallExpression(XC.createSuper(),void 0,l));e.insertNodeAtConstructorStart(t,n,r)}k7({errorCodes:wne,getCodeActions(e){const{sourceFile:t,span:n}=e,r=Nne(t,n.start),i=Tue.ChangeTracker.with(e,(e=>Dne(e,t,r)));return[v7(Cne,i,la.Add_missing_super_call,Cne,la.Add_all_missing_super_calls)]},fixIds:[Cne],getAllCodeActions:e=>D7(e,wne,((t,n)=>Dne(t,e.sourceFile,Nne(n.file,n.start))))});var Fne="fixEnableJsxFlag",Ene=[la.Cannot_use_JSX_unless_the_jsx_flag_is_provided.code];function Pne(e,t){Bie(e,t,"jsx",XC.createStringLiteral("react"))}k7({errorCodes:Ene,getCodeActions:function(e){const{configFile:t}=e.program.getCompilerOptions();if(void 0===t)return;const n=Tue.ChangeTracker.with(e,(e=>Pne(e,t)));return[y7(Fne,n,la.Enable_the_jsx_flag_in_your_configuration_file)]},fixIds:[Fne],getAllCodeActions:e=>D7(e,Ene,(t=>{const{configFile:n}=e.program.getCompilerOptions();void 0!==n&&Pne(t,n)}))});var Ane="fixNaNEquality",Ine=[la.This_condition_will_always_return_0.code];function One(e,t,n){const r=b(e.getSemanticDiagnostics(t),(e=>e.start===n.start&&e.length===n.length));if(void 0===r||void 0===r.relatedInformation)return;const i=b(r.relatedInformation,(e=>e.code===la.Did_you_mean_0.code));if(void 0===i||void 0===i.file||void 0===i.start||void 0===i.length)return;const o=Wie(i.file,Vs(i.start,i.length));return void 0!==o&&U_(o)&&cF(o.parent)?{suggestion:jne(i.messageText),expression:o.parent,arg:o}:void 0}function Lne(e,t,n,r){const i=XC.createCallExpression(XC.createPropertyAccessExpression(XC.createIdentifier("Number"),XC.createIdentifier("isNaN")),void 0,[n]),o=r.operatorToken.kind;e.replaceNode(t,r,38===o||36===o?XC.createPrefixUnaryExpression(54,i):i)}function jne(e){const[,t]=UU(e,"\n",0).match(/'(.*)'/)||[];return t}k7({errorCodes:Ine,getCodeActions(e){const{sourceFile:t,span:n,program:r}=e,i=One(r,t,n);if(void 0===i)return;const{suggestion:o,expression:a,arg:s}=i,c=Tue.ChangeTracker.with(e,(e=>Lne(e,t,s,a)));return[v7(Ane,c,[la.Use_0,o],Ane,la.Use_Number_isNaN_in_all_conditions)]},fixIds:[Ane],getAllCodeActions:e=>D7(e,Ine,((t,n)=>{const r=One(e.program,n.file,Vs(n.start,n.length));r&&Lne(t,n.file,r.arg,r.expression)}))}),k7({errorCodes:[la.Top_level_await_expressions_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_node16_nodenext_or_preserve_and_the_target_option_is_set_to_es2017_or_higher.code,la.Top_level_await_using_statements_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_node16_nodenext_or_preserve_and_the_target_option_is_set_to_es2017_or_higher.code,la.Top_level_for_await_loops_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_node16_nodenext_or_preserve_and_the_target_option_is_set_to_es2017_or_higher.code],getCodeActions:function(e){const t=e.program.getCompilerOptions(),{configFile:n}=t;if(void 0===n)return;const r=[],i=yk(t);if(i>=5&&i<99){const t=Tue.ChangeTracker.with(e,(e=>{Bie(e,n,"module",XC.createStringLiteral("esnext"))}));r.push(y7("fixModuleOption",t,[la.Set_the_module_option_in_your_configuration_file_to_0,"esnext"]))}const o=hk(t);if(o<4||o>99){const t=Tue.ChangeTracker.with(e,(e=>{if(!Vf(n))return;const t=[["target",XC.createStringLiteral("es2017")]];1===i&&t.push(["module",XC.createStringLiteral("commonjs")]),Mie(e,n,t)}));r.push(y7("fixTargetOption",t,[la.Set_the_target_option_in_your_configuration_file_to_0,"es2017"]))}return r.length?r:void 0}});var Rne="fixPropertyAssignment",Mne=[la.Did_you_mean_to_use_a_Colon_An_can_only_follow_a_property_name_when_the_containing_object_literal_is_part_of_a_destructuring_pattern.code];function Bne(e,t,n){e.replaceNode(t,n,XC.createPropertyAssignment(n.name,n.objectAssignmentInitializer))}function Jne(e,t){return nt(PX(e,t).parent,BE)}k7({errorCodes:Mne,fixIds:[Rne],getCodeActions(e){const{sourceFile:t,span:n}=e,r=Jne(t,n.start),i=Tue.ChangeTracker.with(e,(t=>Bne(t,e.sourceFile,r)));return[v7(Rne,i,[la.Change_0_to_1,"=",":"],Rne,[la.Switch_each_misused_0_to_1,"=",":"])]},getAllCodeActions:e=>D7(e,Mne,((e,t)=>Bne(e,t.file,Jne(t.file,t.start))))});var zne="extendsInterfaceBecomesImplements",qne=[la.Cannot_extend_an_interface_0_Did_you_mean_implements.code];function Une(e,t){const n=Gf(PX(e,t)).heritageClauses,r=n[0].getFirstToken();return 96===r.kind?{extendsToken:r,heritageClauses:n}:void 0}function Vne(e,t,n,r){if(e.replaceNode(t,n,XC.createToken(119)),2===r.length&&96===r[0].token&&119===r[1].token){const n=r[1].getFirstToken(),i=n.getFullStart();e.replaceRange(t,{pos:i,end:i},XC.createToken(28));const o=t.text;let a=n.end;for(;aVne(e,t,r,i)));return[v7(zne,o,la.Change_extends_to_implements,zne,la.Change_all_extended_interfaces_to_implements)]},fixIds:[zne],getAllCodeActions:e=>D7(e,qne,((e,t)=>{const n=Une(t.file,t.start);n&&Vne(e,t.file,n.extendsToken,n.heritageClauses)}))});var Wne="forgottenThisPropertyAccess",$ne=la.Cannot_find_name_0_Did_you_mean_the_static_member_1_0.code,Hne=[la.Cannot_find_name_0_Did_you_mean_the_instance_member_this_0.code,la.Private_identifiers_are_only_allowed_in_class_bodies_and_may_only_be_used_as_part_of_a_class_member_declaration_property_access_or_on_the_left_hand_side_of_an_in_expression.code,$ne];function Kne(e,t,n){const r=PX(e,t);if(zN(r)||qN(r))return{node:r,className:n===$ne?Gf(r).name.text:void 0}}function Gne(e,t,{node:n,className:r}){JY(n),e.replaceNode(t,n,XC.createPropertyAccessExpression(r?XC.createIdentifier(r):XC.createThis(),n))}k7({errorCodes:Hne,getCodeActions(e){const{sourceFile:t}=e,n=Kne(t,e.span.start,e.errorCode);if(!n)return;const r=Tue.ChangeTracker.with(e,(e=>Gne(e,t,n)));return[v7(Wne,r,[la.Add_0_to_unresolved_variable,n.className||"this"],Wne,la.Add_qualifier_to_all_unresolved_variables_matching_a_member_name)]},fixIds:[Wne],getAllCodeActions:e=>D7(e,Hne,((t,n)=>{const r=Kne(n.file,n.start,n.code);r&&Gne(t,e.sourceFile,r)}))});var Xne="fixInvalidJsxCharacters_expression",Qne="fixInvalidJsxCharacters_htmlEntity",Yne=[la.Unexpected_token_Did_you_mean_or_gt.code,la.Unexpected_token_Did_you_mean_or_rbrace.code];k7({errorCodes:Yne,fixIds:[Xne,Qne],getCodeActions(e){const{sourceFile:t,preferences:n,span:r}=e,i=Tue.ChangeTracker.with(e,(e=>ere(e,n,t,r.start,!1))),o=Tue.ChangeTracker.with(e,(e=>ere(e,n,t,r.start,!0)));return[v7(Xne,i,la.Wrap_invalid_character_in_an_expression_container,Xne,la.Wrap_all_invalid_characters_in_an_expression_container),v7(Qne,o,la.Convert_invalid_character_to_its_html_entity_code,Qne,la.Convert_all_invalid_characters_to_HTML_entity_code)]},getAllCodeActions:e=>D7(e,Yne,((t,n)=>ere(t,e.preferences,n.file,n.start,e.fixId===Qne)))});var Zne={">":">","}":"}"};function ere(e,t,n,r,i){const o=n.getText()[r];if(!function(e){return De(Zne,e)}(o))return;const a=i?Zne[o]:`{${tZ(n,t,o)}}`;e.replaceRangeWithText(n,{pos:r,end:r+1},a)}var tre="deleteUnmatchedParameter",nre="renameUnmatchedParameter",rre=[la.JSDoc_param_tag_has_name_0_but_there_is_no_parameter_with_that_name.code];function ire(e,t){const n=PX(e,t);if(n.parent&&bP(n.parent)&&zN(n.parent.name)){const e=n.parent,t=Ug(e),r=zg(e);if(t&&r)return{jsDocHost:t,signature:r,name:n.parent.name,jsDocParameterTag:e}}}k7({fixIds:[tre,nre],errorCodes:rre,getCodeActions:function(e){const{sourceFile:t,span:n}=e,r=[],i=ire(t,n.start);if(i)return ie(r,function(e,{name:t,jsDocHost:n,jsDocParameterTag:r}){const i=Tue.ChangeTracker.with(e,(t=>t.filterJSDocTags(e.sourceFile,n,(e=>e!==r))));return v7(tre,i,[la.Delete_unused_param_tag_0,t.getText(e.sourceFile)],tre,la.Delete_all_unused_param_tags)}(e,i)),ie(r,function(e,{name:t,jsDocHost:n,signature:r,jsDocParameterTag:i}){if(!u(r.parameters))return;const o=e.sourceFile,a=il(r),s=new Set;for(const e of a)bP(e)&&zN(e.name)&&s.add(e.name.escapedText);const c=f(r.parameters,(e=>zN(e.name)&&!s.has(e.name.escapedText)?e.name.getText(o):void 0));if(void 0===c)return;const l=XC.updateJSDocParameterTag(i,i.tagName,XC.createIdentifier(c),i.isBracketed,i.typeExpression,i.isNameFirst,i.comment),_=Tue.ChangeTracker.with(e,(e=>e.replaceJSDocComment(o,n,E(a,(e=>e===i?l:e)))));return y7(nre,_,[la.Rename_param_tag_name_0_to_1,t.getText(o),c])}(e,i)),r},getAllCodeActions:function(e){const t=new Map;return w7(Tue.ChangeTracker.with(e,(n=>{F7(e,rre,(({file:e,start:n})=>{const r=ire(e,n);r&&t.set(r.signature,ie(t.get(r.signature),r.jsDocParameterTag))})),t.forEach(((t,r)=>{if(e.fixId===tre){const e=new Set(t);n.filterJSDocTags(r.getSourceFile(),r,(t=>!e.has(t)))}}))})))}});var ore="fixUnreferenceableDecoratorMetadata";k7({errorCodes:[la.A_type_referenced_in_a_decorated_signature_must_be_imported_with_import_type_or_a_namespace_import_when_isolatedModules_and_emitDecoratorMetadata_are_enabled.code],getCodeActions:e=>{const t=function(e,t,n){const r=tt(PX(e,n),zN);if(!r||183!==r.parent.kind)return;const i=t.getTypeChecker().getSymbolAtLocation(r);return b((null==i?void 0:i.declarations)||l,en(rE,dE,tE))}(e.sourceFile,e.program,e.span.start);if(!t)return;const n=Tue.ChangeTracker.with(e,(n=>276===t.kind&&function(e,t,n,r){V2.doChangeNamedToNamespaceOrDefault(t,r,e,n.parent)}(n,e.sourceFile,t,e.program))),r=Tue.ChangeTracker.with(e,(n=>function(e,t,n,r){if(271===n.kind)return void e.insertModifierBefore(t,156,n.name);const i=273===n.kind?n:n.parent.parent;if(i.name&&i.namedBindings)return;const o=r.getTypeChecker();Tg(i,(e=>{if(111551&ix(e.symbol,o).flags)return!0}))||e.insertModifierBefore(t,156,i)}(n,e.sourceFile,t,e.program)));let i;return n.length&&(i=ie(i,y7(ore,n,la.Convert_named_imports_to_namespace_import))),r.length&&(i=ie(i,y7(ore,r,la.Use_import_type))),i},fixIds:[ore]});var are="unusedIdentifier",sre="unusedIdentifier_prefix",cre="unusedIdentifier_delete",lre="unusedIdentifier_deleteImports",_re="unusedIdentifier_infer",ure=[la._0_is_declared_but_its_value_is_never_read.code,la._0_is_declared_but_never_used.code,la.Property_0_is_declared_but_its_value_is_never_read.code,la.All_imports_in_import_declaration_are_unused.code,la.All_destructured_elements_are_unused.code,la.All_variables_are_unused.code,la.All_type_parameters_are_unused.code];function dre(e,t,n){e.replaceNode(t,n.parent,XC.createKeywordTypeNode(159))}function pre(e,t){return v7(are,e,t,cre,la.Delete_all_unused_declarations)}function fre(e,t,n){e.delete(t,un.checkDefined(nt(n.parent,bp).typeParameters,"The type parameter to delete should exist"))}function mre(e){return 102===e.kind||80===e.kind&&(276===e.parent.kind||273===e.parent.kind)}function gre(e){return 102===e.kind?tt(e.parent,nE):void 0}function hre(e,t){return WF(t.parent)&&ge(t.parent.getChildren(e))===t}function yre(e,t,n){e.delete(t,243===n.parent.kind?n.parent:n)}function vre(e,t,n,r){t!==la.Property_0_is_declared_but_its_value_is_never_read.code&&(140===r.kind&&(r=nt(r.parent,AD).typeParameter.name),zN(r)&&function(e){switch(e.parent.kind){case 169:case 168:return!0;case 260:switch(e.parent.parent.parent.kind){case 250:case 249:return!0}}return!1}(r)&&(e.replaceNode(n,r,XC.createIdentifier(`_${r.text}`)),oD(r.parent)&&Fc(r.parent).forEach((t=>{zN(t.name)&&e.replaceNode(n,t.name,XC.createIdentifier(`_${t.name.text}`))}))))}function bre(e,t,n,r,i,o,a,s){!function(e,t,n,r,i,o,a,s){const{parent:c}=e;if(oD(c))!function(e,t,n,r,i,o,a,s=!1){if(function(e,t,n,r,i,o,a){const{parent:s}=n;switch(s.kind){case 174:case 176:const c=s.parameters.indexOf(n),l=_D(s)?s.name:s,_=ice.Core.getReferencedSymbolsForNode(s.pos,l,i,r,o);if(_)for(const e of _)for(const t of e.references)if(t.kind===ice.EntryKind.Node){const e=ZN(t.node)&&GD(t.node.parent)&&t.node.parent.arguments.length>c,r=HD(t.node.parent)&&ZN(t.node.parent.expression)&&GD(t.node.parent.parent)&&t.node.parent.parent.arguments.length>c,i=(_D(t.node.parent)||lD(t.node.parent))&&t.node.parent!==n.parent&&t.node.parent.parameters.length>c;if(e||r||i)return!1}return!0;case 262:return!s.name||!function(e,t,n){return!!ice.Core.eachSymbolReferenceInFile(n,e,t,(e=>zN(e)&&GD(e.parent)&&e.parent.arguments.includes(e)))}(e,t,s.name)||kre(s,n,a);case 218:case 219:return kre(s,n,a);case 178:return!1;case 177:return!0;default:return un.failBadSyntaxKind(s)}}(r,t,n,i,o,a,s))if(n.modifiers&&n.modifiers.length>0&&(!zN(n.name)||ice.Core.isSymbolReferencedInFile(n.name,r,t)))for(const r of n.modifiers)Yl(r)&&e.deleteModifier(t,r);else!n.initializer&&xre(n,r,i)&&e.delete(t,n)}(t,n,c,r,i,o,a,s);else if(!(s&&zN(e)&&ice.Core.isSymbolReferencedInFile(e,r,n))){const r=rE(c)?e:rD(c)?c.parent:c;un.assert(r!==n,"should not delete whole source file"),t.delete(n,r)}}(t,n,e,r,i,o,a,s),zN(t)&&ice.Core.eachSymbolReferenceInFile(t,r,e,(t=>{var r;HD(t.parent)&&t.parent.name===t&&(t=t.parent),!s&&(cF((r=t).parent)&&r.parent.left===r||(sF(r.parent)||aF(r.parent))&&r.parent.operand===r)&&DF(r.parent.parent)&&n.delete(e,t.parent.parent)}))}function xre(e,t,n){const r=e.parent.parameters.indexOf(e);return!ice.Core.someSignatureUsage(e.parent,n,t,((e,t)=>!t||t.arguments.length>r))}function kre(e,t,n){const r=e.parameters,i=r.indexOf(t);return un.assert(-1!==i,"The parameter should already be in the list"),n?r.slice(i+1).every((e=>zN(e.name)&&!e.symbol.isReferenced)):i===r.length-1}k7({errorCodes:ure,getCodeActions(e){const{errorCode:t,sourceFile:n,program:r,cancellationToken:i}=e,o=r.getTypeChecker(),a=r.getSourceFiles(),s=PX(n,e.span.start);if(TP(s))return[pre(Tue.ChangeTracker.with(e,(e=>e.delete(n,s))),la.Remove_template_tag)];if(30===s.kind)return[pre(Tue.ChangeTracker.with(e,(e=>fre(e,n,s))),la.Remove_type_parameters)];const c=gre(s);if(c){const t=Tue.ChangeTracker.with(e,(e=>e.delete(n,c)));return[v7(are,t,[la.Remove_import_from_0,hx(c)],lre,la.Delete_all_unused_imports)]}if(mre(s)){const t=Tue.ChangeTracker.with(e,(e=>bre(n,s,e,o,a,r,i,!1)));if(t.length)return[v7(are,t,[la.Remove_unused_declaration_for_Colon_0,s.getText(n)],lre,la.Delete_all_unused_imports)]}if(qD(s.parent)||UD(s.parent)){if(oD(s.parent.parent)){const t=s.parent.elements,r=[t.length>1?la.Remove_unused_declarations_for_Colon_0:la.Remove_unused_declaration_for_Colon_0,E(t,(e=>e.getText(n))).join(", ")];return[pre(Tue.ChangeTracker.with(e,(e=>function(e,t,n){d(n.elements,(n=>e.delete(t,n)))}(e,n,s.parent))),r)]}return[pre(Tue.ChangeTracker.with(e,(t=>function(e,t,n,{parent:r}){if(VF(r)&&r.initializer&&O_(r.initializer))if(WF(r.parent)&&u(r.parent.declarations)>1){const i=r.parent.parent,o=i.getStart(n),a=i.end;t.delete(n,r),t.insertNodeAt(n,a,r.initializer,{prefix:kY(e.host,e.formatContext.options)+n.text.slice(OY(n.text,o-1),o),suffix:fZ(n)?";":""})}else t.replaceNode(n,r.parent,r.initializer);else t.delete(n,r)}(e,t,n,s.parent))),la.Remove_unused_destructuring_declaration)]}if(hre(n,s))return[pre(Tue.ChangeTracker.with(e,(e=>yre(e,n,s.parent))),la.Remove_variable_statement)];if(zN(s)&&$F(s.parent))return[pre(Tue.ChangeTracker.with(e,(e=>function(e,t,n){const r=n.symbol.declarations;if(r)for(const n of r)e.delete(t,n)}(e,n,s.parent))),[la.Remove_unused_declaration_for_Colon_0,s.getText(n)])];const l=[];if(140===s.kind){const t=Tue.ChangeTracker.with(e,(e=>dre(e,n,s))),r=nt(s.parent,AD).typeParameter.name.text;l.push(v7(are,t,[la.Replace_infer_0_with_unknown,r],_re,la.Replace_all_unused_infer_with_unknown))}else{const t=Tue.ChangeTracker.with(e,(e=>bre(n,s,e,o,a,r,i,!1)));if(t.length){const e=rD(s.parent)?s.parent:s;l.push(pre(t,[la.Remove_unused_declaration_for_Colon_0,e.getText(n)]))}}const _=Tue.ChangeTracker.with(e,(e=>vre(e,t,n,s)));return _.length&&l.push(v7(are,_,[la.Prefix_0_with_an_underscore,s.getText(n)],sre,la.Prefix_all_unused_declarations_with_where_possible)),l},fixIds:[sre,cre,lre,_re],getAllCodeActions:e=>{const{sourceFile:t,program:n,cancellationToken:r}=e,i=n.getTypeChecker(),o=n.getSourceFiles();return D7(e,ure,((a,s)=>{const c=PX(t,s.start);switch(e.fixId){case sre:vre(a,s.code,t,c);break;case lre:{const e=gre(c);e?a.delete(t,e):mre(c)&&bre(t,c,a,i,o,n,r,!0);break}case cre:if(140===c.kind||mre(c))break;if(TP(c))a.delete(t,c);else if(30===c.kind)fre(a,t,c);else if(qD(c.parent)){if(c.parent.parent.initializer)break;oD(c.parent.parent)&&!xre(c.parent.parent,i,o)||a.delete(t,c.parent.parent)}else{if(UD(c.parent.parent)&&c.parent.parent.parent.initializer)break;hre(t,c)?yre(a,t,c.parent):bre(t,c,a,i,o,n,r,!0)}break;case _re:140===c.kind&&dre(a,t,c);break;default:un.fail(JSON.stringify(e.fixId))}}))}});var Sre="fixUnreachableCode",Tre=[la.Unreachable_code_detected.code];function Cre(e,t,n,r,i){const o=PX(t,n),a=_c(o,du);if(a.getStart(t)!==o.getStart(t)){const e=JSON.stringify({statementKind:un.formatSyntaxKind(a.kind),tokenKind:un.formatSyntaxKind(o.kind),errorCode:i,start:n,length:r});un.fail("Token and statement should start at the same point. "+e)}const s=(CF(a.parent)?a.parent:a).parent;if(!CF(a.parent)||a===ge(a.parent.statements))switch(s.kind){case 245:if(s.elseStatement){if(CF(a.parent))break;return void e.replaceNode(t,a,XC.createBlock(l))}case 247:case 248:return void e.delete(t,s)}if(CF(a.parent)){const i=n+r,o=un.checkDefined(function(e){let t;for(const n of e){if(!(n.posCre(t,e.sourceFile,e.span.start,e.span.length,e.errorCode)));return[v7(Sre,t,la.Remove_unreachable_code,Sre,la.Remove_all_unreachable_code)]},fixIds:[Sre],getAllCodeActions:e=>D7(e,Tre,((e,t)=>Cre(e,t.file,t.start,t.length,t.code)))});var wre="fixUnusedLabel",Nre=[la.Unused_label.code];function Dre(e,t,n){const r=PX(t,n),i=nt(r.parent,JF),o=r.getStart(t),a=i.statement.getStart(t),s=Wb(o,a,t)?a:Xa(t.text,yX(i,59,t).end,!0);e.deleteRange(t,{pos:o,end:s})}k7({errorCodes:Nre,getCodeActions(e){const t=Tue.ChangeTracker.with(e,(t=>Dre(t,e.sourceFile,e.span.start)));return[v7(wre,t,la.Remove_unused_label,wre,la.Remove_all_unused_labels)]},fixIds:[wre],getAllCodeActions:e=>D7(e,Nre,((e,t)=>Dre(e,t.file,t.start)))});var Fre="fixJSDocTypes_plain",Ere="fixJSDocTypes_nullable",Pre=[la.JSDoc_types_can_only_be_used_inside_documentation_comments.code,la._0_at_the_end_of_a_type_is_not_valid_TypeScript_syntax_Did_you_mean_to_write_1.code,la._0_at_the_start_of_a_type_is_not_valid_TypeScript_syntax_Did_you_mean_to_write_1.code];function Are(e,t,n,r,i){e.replaceNode(t,n,i.typeToTypeNode(r,n,void 0))}function Ire(e,t,n){const r=_c(PX(e,t),Ore),i=r&&r.type;return i&&{typeNode:i,type:Lre(n,i)}}function Ore(e){switch(e.kind){case 234:case 179:case 180:case 262:case 177:case 181:case 200:case 174:case 173:case 169:case 172:case 171:case 178:case 265:case 216:case 260:return!0;default:return!1}}function Lre(e,t){if(YE(t)){const n=e.getTypeFromTypeNode(t.type);return n===e.getNeverType()||n===e.getVoidType()?n:e.getUnionType(ie([n,e.getUndefinedType()],t.postfix?void 0:e.getNullType()))}return e.getTypeFromTypeNode(t)}k7({errorCodes:Pre,getCodeActions(e){const{sourceFile:t}=e,n=e.program.getTypeChecker(),r=Ire(t,e.span.start,n);if(!r)return;const{typeNode:i,type:o}=r,a=i.getText(t),s=[c(o,Fre,la.Change_all_jsdoc_style_types_to_TypeScript)];return 314===i.kind&&s.push(c(o,Ere,la.Change_all_jsdoc_style_types_to_TypeScript_and_add_undefined_to_nullable_types)),s;function c(r,o,s){return v7("jdocTypes",Tue.ChangeTracker.with(e,(e=>Are(e,t,i,r,n))),[la.Change_0_to_1,a,n.typeToString(r)],o,s)}},fixIds:[Fre,Ere],getAllCodeActions(e){const{fixId:t,program:n,sourceFile:r}=e,i=n.getTypeChecker();return D7(e,Pre,((e,n)=>{const o=Ire(n.file,n.start,i);if(!o)return;const{typeNode:a,type:s}=o,c=314===a.kind&&t===Ere?i.getNullableType(s,32768):s;Are(e,r,a,c,i)}))}});var jre="fixMissingCallParentheses",Rre=[la.This_condition_will_always_return_true_since_this_function_is_always_defined_Did_you_mean_to_call_it_instead.code];function Mre(e,t,n){e.replaceNodeWithText(t,n,`${n.text}()`)}function Bre(e,t){const n=PX(e,t);if(HD(n.parent)){let e=n.parent;for(;HD(e.parent);)e=e.parent;return e.name}if(zN(n))return n}k7({errorCodes:Rre,fixIds:[jre],getCodeActions(e){const{sourceFile:t,span:n}=e,r=Bre(t,n.start);if(!r)return;const i=Tue.ChangeTracker.with(e,(t=>Mre(t,e.sourceFile,r)));return[v7(jre,i,la.Add_missing_call_parentheses,jre,la.Add_all_missing_call_parentheses)]},getAllCodeActions:e=>D7(e,Rre,((e,t)=>{const n=Bre(t.file,t.start);n&&Mre(e,t.file,n)}))});var Jre="fixMissingTypeAnnotationOnExports",zre="add-annotation",qre="add-type-assertion",Ure=[la.Function_must_have_an_explicit_return_type_annotation_with_isolatedDeclarations.code,la.Method_must_have_an_explicit_return_type_annotation_with_isolatedDeclarations.code,la.At_least_one_accessor_must_have_an_explicit_type_annotation_with_isolatedDeclarations.code,la.Variable_must_have_an_explicit_type_annotation_with_isolatedDeclarations.code,la.Parameter_must_have_an_explicit_type_annotation_with_isolatedDeclarations.code,la.Property_must_have_an_explicit_type_annotation_with_isolatedDeclarations.code,la.Expression_type_can_t_be_inferred_with_isolatedDeclarations.code,la.Binding_elements_can_t_be_exported_directly_with_isolatedDeclarations.code,la.Computed_property_names_on_class_or_object_literals_cannot_be_inferred_with_isolatedDeclarations.code,la.Computed_properties_must_be_number_or_string_literals_variables_or_dotted_expressions_with_isolatedDeclarations.code,la.Enum_member_initializers_must_be_computable_without_references_to_external_symbols_with_isolatedDeclarations.code,la.Extends_clause_can_t_contain_an_expression_with_isolatedDeclarations.code,la.Objects_that_contain_shorthand_properties_can_t_be_inferred_with_isolatedDeclarations.code,la.Objects_that_contain_spread_assignments_can_t_be_inferred_with_isolatedDeclarations.code,la.Arrays_with_spread_elements_can_t_inferred_with_isolatedDeclarations.code,la.Default_exports_can_t_be_inferred_with_isolatedDeclarations.code,la.Only_const_arrays_can_be_inferred_with_isolatedDeclarations.code,la.Assigning_properties_to_functions_without_declaring_them_is_not_supported_with_isolatedDeclarations_Add_an_explicit_declaration_for_the_properties_assigned_to_this_function.code,la.Declaration_emit_for_this_parameter_requires_implicitly_adding_undefined_to_its_type_This_is_not_supported_with_isolatedDeclarations.code,la.Type_containing_private_name_0_can_t_be_used_with_isolatedDeclarations.code,la.Add_satisfies_and_a_type_assertion_to_this_expression_satisfies_T_as_T_to_make_the_type_explicit.code],Vre=new Set([177,174,172,262,218,219,260,169,277,263,206,207]),Wre=531469;function $re(e,t,n,r,i){const o=Hre(n,r,i);o.result&&o.textChanges.length&&t.push(v7(e,o.textChanges,o.result,Jre,la.Add_all_missing_type_annotations))}function Hre(e,t,n){const r={typeNode:void 0,mutatedTarget:!1},i=Tue.ChangeTracker.fromContext(e),o=e.sourceFile,a=e.program,s=a.getTypeChecker(),c=hk(a.getCompilerOptions()),l=Z9(e.sourceFile,e.program,e.preferences,e.host),_=new Set,u=new Set,d=rU({preserveSourceNewlines:!1}),p=n({addTypeAnnotation:function(t){e.cancellationToken.throwIfCancellationRequested();const n=PX(o,t.start),r=g(n);if(r)return $F(r)?function(e){var t;if(null==u?void 0:u.has(e))return;null==u||u.add(e);const n=s.getTypeAtLocation(e),r=s.getPropertiesOfType(n);if(!e.name||0===r.length)return;const c=[];for(const t of r)fs(t.name,hk(a.getCompilerOptions()))&&(t.valueDeclaration&&VF(t.valueDeclaration)||c.push(XC.createVariableStatement([XC.createModifier(95)],XC.createVariableDeclarationList([XC.createVariableDeclaration(t.name,void 0,w(s.getTypeOfSymbol(t),e),void 0)]))));if(0===c.length)return;const l=[];(null==(t=e.modifiers)?void 0:t.some((e=>95===e.kind)))&&l.push(XC.createModifier(95)),l.push(XC.createModifier(138));const _=XC.createModuleDeclaration(l,e.name,XC.createModuleBlock(c),101441696);return i.insertNodeAfter(o,e,_),[la.Annotate_types_of_properties_expando_function_in_a_namespace]}(r):h(r);const c=_c(n,(e=>Vre.has(e.kind)&&(!qD(e)&&!UD(e)||VF(e.parent))));return c?h(c):void 0},addInlineAssertion:function(t){e.cancellationToken.throwIfCancellationRequested();const n=PX(o,t.start);if(g(n))return;const r=F(n,t);if(!r||Zg(r)||Zg(r.parent))return;const a=U_(r),c=BE(r);if(!c&&lu(r))return;if(_c(r,x_))return;if(_c(r,zE))return;if(a&&(_c(r,jE)||_c(r,v_)))return;if(dF(r))return;const l=_c(r,VF),_=l&&s.getTypeAtLocation(l);if(_&&8192&_.flags)return;if(!a&&!c)return;const{typeNode:u,mutatedTarget:d}=x(r,_);return u&&!d?(c?i.insertNodeAt(o,r.end,m(LY(r.name),u),{prefix:": "}):a?i.replaceNode(o,r,function(e,t){return f(e)&&(e=XC.createParenthesizedExpression(e)),XC.createAsExpression(XC.createSatisfiesExpression(e,LY(t)),t)}(LY(r),u)):un.assertNever(r),[la.Add_satisfies_and_an_inline_type_assertion_with_0,D(u)]):void 0},extractAsVariable:function(t){e.cancellationToken.throwIfCancellationRequested();const n=F(PX(o,t.start),t);if(!n||Zg(n)||Zg(n.parent))return;if(!U_(n))return;if(WD(n))return i.replaceNode(o,n,m(n,XC.createTypeReferenceNode("const"))),[la.Mark_array_literal_as_const];const r=_c(n,ME);if(r){if(r===n.parent&&ob(n))return;const e=XC.createUniqueName(t3(n,o,s,o),16);let t=n,a=n;if(dF(t)&&(t=nh(t.parent),a=T(t.parent)?t=t.parent:m(t,XC.createTypeReferenceNode("const"))),ob(t))return;const c=XC.createVariableStatement(void 0,XC.createVariableDeclarationList([XC.createVariableDeclaration(e,void 0,void 0,a)],2)),l=_c(n,du);return i.insertNodeBefore(o,l,c),i.replaceNode(o,t,XC.createAsExpression(XC.cloneNode(e),XC.createTypeQueryNode(XC.cloneNode(e)))),[la.Extract_to_variable_and_replace_with_0_as_typeof_0,D(e)]}}});return l.writeFixes(i),{result:p,textChanges:i.getChanges()};function f(e){return!(ob(e)||GD(e)||$D(e)||WD(e))}function m(e,t){return f(e)&&(e=XC.createParenthesizedExpression(e)),XC.createAsExpression(e,t)}function g(e){const t=_c(e,(e=>du(e)?"quit":sC(e)));if(t&&sC(t)){let e=t;if(cF(e)&&(e=e.left,!sC(e)))return;const n=s.getTypeAtLocation(e.expression);if(!n)return;if($(s.getPropertiesOfType(n),(e=>e.valueDeclaration===t||e.valueDeclaration===t.parent))){const e=n.symbol.valueDeclaration;if(e){if(jT(e)&&VF(e.parent))return e.parent;if($F(e))return e}}}}function h(e){if(!(null==_?void 0:_.has(e)))switch(null==_||_.add(e),e.kind){case 169:case 172:case 260:return function(e){const{typeNode:t}=x(e);if(t)return e.type?i.replaceNode(hd(e),e.type,t):i.tryInsertTypeAnnotation(hd(e),e,t),[la.Add_annotation_of_type_0,D(t)]}(e);case 219:case 218:case 262:case 174:case 177:return function(e,t){if(e.type)return;const{typeNode:n}=x(e);return n?(i.tryInsertTypeAnnotation(t,e,n),[la.Add_return_type_0,D(n)]):void 0}(e,o);case 277:return function(e){if(e.isExportEquals)return;const{typeNode:t}=x(e.expression);if(!t)return;const n=XC.createUniqueName("_default");return i.replaceNodeWithNodes(o,e,[XC.createVariableStatement(void 0,XC.createVariableDeclarationList([XC.createVariableDeclaration(n,void 0,t,e.expression)],2)),XC.updateExportAssignment(e,null==e?void 0:e.modifiers,n)]),[la.Extract_default_export_to_variable]}(e);case 263:return function(e){var t,n;const r=null==(t=e.heritageClauses)?void 0:t.find((e=>96===e.token)),a=null==r?void 0:r.types[0];if(!a)return;const{typeNode:s}=x(a.expression);if(!s)return;const c=XC.createUniqueName(e.name?e.name.text+"Base":"Anonymous",16),l=XC.createVariableStatement(void 0,XC.createVariableDeclarationList([XC.createVariableDeclaration(c,void 0,s,a.expression)],2));i.insertNodeBefore(o,e,l);const _=_s(o.text,a.end),u=(null==(n=null==_?void 0:_[_.length-1])?void 0:n.end)??a.end;return i.replaceRange(o,{pos:a.getFullStart(),end:u},c,{prefix:" "}),[la.Extract_base_class_to_variable]}(e);case 206:case 207:return function(e){var t;const n=e.parent,r=e.parent.parent.parent;if(!n.initializer)return;let a;const s=[];if(zN(n.initializer))a={expression:{kind:3,identifier:n.initializer}};else{const e=XC.createUniqueName("dest",16);a={expression:{kind:3,identifier:e}},s.push(XC.createVariableStatement(void 0,XC.createVariableDeclarationList([XC.createVariableDeclaration(e,void 0,void 0,n.initializer)],2)))}const c=[];UD(e)?y(e,c,a):v(e,c,a);const l=new Map;for(const e of c){if(e.element.propertyName&&rD(e.element.propertyName)){const t=e.element.propertyName.expression,n=XC.getGeneratedNameForNode(t),r=XC.createVariableDeclaration(n,void 0,void 0,t),i=XC.createVariableDeclarationList([r],2),o=XC.createVariableStatement(void 0,i);s.push(o),l.set(t,n)}const n=e.element.name;if(UD(n))y(n,c,e);else if(qD(n))v(n,c,e);else{const{typeNode:i}=x(n);let o=b(e,l);if(e.element.initializer){const n=null==(t=e.element)?void 0:t.propertyName,r=XC.createUniqueName(n&&zN(n)?n.text:"temp",16);s.push(XC.createVariableStatement(void 0,XC.createVariableDeclarationList([XC.createVariableDeclaration(r,void 0,void 0,o)],2))),o=XC.createConditionalExpression(XC.createBinaryExpression(r,XC.createToken(37),XC.createIdentifier("undefined")),XC.createToken(58),e.element.initializer,XC.createToken(59),o)}const a=wv(r,32)?[XC.createToken(95)]:void 0;s.push(XC.createVariableStatement(a,XC.createVariableDeclarationList([XC.createVariableDeclaration(n,void 0,i,o)],2)))}}return r.declarationList.declarations.length>1&&s.push(XC.updateVariableStatement(r,r.modifiers,XC.updateVariableDeclarationList(r.declarationList,r.declarationList.declarations.filter((t=>t!==e.parent))))),i.replaceNodeWithNodes(o,r,s),[la.Extract_binding_expressions_to_variable]}(e);default:throw new Error(`Cannot find a fix for the given node ${e.kind}`)}}function y(e,t,n){for(let r=0;r=0;--e){const i=n[e].expression;0===i.kind?r=XC.createPropertyAccessChain(r,void 0,XC.createIdentifier(i.text)):1===i.kind?r=XC.createElementAccessExpression(r,t.get(i.computed)):2===i.kind&&(r=XC.createElementAccessExpression(r,i.arrayIndex))}return r}function x(e,n){if(1===t)return C(e);let i;if(Zg(e)){const t=s.getSignatureFromDeclaration(e);if(t){const n=s.getTypePredicateOfSignature(t);if(n)return n.type?{typeNode:N(n,_c(e,lu)??o,c(n.type)),mutatedTarget:!1}:r;i=s.getReturnTypeOfSignature(t)}}else i=s.getTypeAtLocation(e);if(!i)return r;if(2===t){n&&(i=n);const e=s.getWidenedLiteralType(i);if(s.isTypeAssignableTo(e,i))return r;i=e}const a=_c(e,lu)??o;return oD(e)&&s.requiresAddingImplicitUndefined(e,a)&&(i=s.getUnionType([s.getUndefinedType(),i],0)),{typeNode:w(i,a,c(i)),mutatedTarget:!1};function c(t){return(VF(e)||cD(e)&&wv(e,264))&&8192&t.flags?1048576:0}}function k(e){return XC.createTypeQueryNode(LY(e))}function S(e,t,n,a,s,c,l,_){const u=[],d=[];let p;const f=_c(e,du);for(const t of a(e))s(t)?(g(),ob(t.expression)?(u.push(k(t.expression)),d.push(t)):m(t.expression)):(p??(p=[])).push(t);return 0===d.length?r:(g(),i.replaceNode(o,e,l(d)),{typeNode:_(u),mutatedTarget:!0});function m(e){const r=XC.createUniqueName(t+"_Part"+(d.length+1),16),a=n?XC.createAsExpression(e,XC.createTypeReferenceNode("const")):e,s=XC.createVariableStatement(void 0,XC.createVariableDeclarationList([XC.createVariableDeclaration(r,void 0,void 0,a)],2));i.insertNodeBefore(o,f,s),u.push(k(r)),d.push(c(r))}function g(){p&&(m(l(p)),p=void 0)}}function T(e){return V_(e)&&xl(e.type)}function C(e){if(oD(e))return r;if(BE(e))return{typeNode:k(e.name),mutatedTarget:!1};if(ob(e))return{typeNode:k(e),mutatedTarget:!1};if(T(e))return C(e.expression);if(WD(e)){const t=_c(e,VF);return function(e,t="temp"){const n=!!_c(e,T);return n?S(e,t,n,(e=>e.elements),dF,XC.createSpreadElement,(e=>XC.createArrayLiteralExpression(e,!0)),(e=>XC.createTupleTypeNode(e.map(XC.createRestTypeNode)))):r}(e,t&&zN(t.name)?t.name.text:void 0)}if($D(e)){const t=_c(e,VF);return function(e,t="temp"){return S(e,t,!!_c(e,T),(e=>e.properties),JE,XC.createSpreadAssignment,(e=>XC.createObjectLiteralExpression(e,!0)),XC.createIntersectionTypeNode)}(e,t&&zN(t.name)?t.name.text:void 0)}if(VF(e)&&e.initializer)return C(e.initializer);if(lF(e)){const{typeNode:t,mutatedTarget:n}=C(e.whenTrue);if(!t)return r;const{typeNode:i,mutatedTarget:o}=C(e.whenFalse);return i?{typeNode:XC.createUnionTypeNode([t,i]),mutatedTarget:n||o}:r}return r}function w(e,t,n=0){let r=!1;const i=Eie(s,e,t,Wre|n,1,{moduleResolverHost:a,trackSymbol:()=>!0,reportTruncationError(){r=!0}});if(!i)return;const o=Fie(i,l,c);return r?XC.createKeywordTypeNode(133):o}function N(e,t,n=0){let r=!1;const i=Pie(s,l,e,t,c,Wre|n,1,{moduleResolverHost:a,trackSymbol:()=>!0,reportTruncationError(){r=!0}});return r?XC.createKeywordTypeNode(133):i}function D(e){nw(e,1);const t=d.printNode(4,e,o);return t.length>Uu?t.substring(0,Uu-3)+"...":(nw(e,0),t)}function F(e,t){for(;e&&e.endt.addTypeAnnotation(e.span))),$re(zre,t,e,1,(t=>t.addTypeAnnotation(e.span))),$re(zre,t,e,2,(t=>t.addTypeAnnotation(e.span))),$re(qre,t,e,0,(t=>t.addInlineAssertion(e.span))),$re(qre,t,e,1,(t=>t.addInlineAssertion(e.span))),$re(qre,t,e,2,(t=>t.addInlineAssertion(e.span))),$re("extract-expression",t,e,0,(t=>t.extractAsVariable(e.span))),t},getAllCodeActions:e=>w7(Hre(e,0,(t=>{F7(e,Ure,(e=>{t.addTypeAnnotation(e)}))})).textChanges)});var Kre="fixAwaitInSyncFunction",Gre=[la.await_expressions_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules.code,la.await_using_statements_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules.code,la.for_await_loops_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules.code,la.Cannot_find_name_0_Did_you_mean_to_write_this_in_an_async_function.code];function Xre(e,t){const n=Hf(PX(e,t));if(!n)return;let r;switch(n.kind){case 174:r=n.name;break;case 262:case 218:r=yX(n,100,e);break;case 219:r=yX(n,n.typeParameters?30:21,e)||ge(n.parameters);break;default:return}return r&&{insertBefore:r,returnType:(i=n,i.type?i.type:VF(i.parent)&&i.parent.type&&bD(i.parent.type)?i.parent.type.type:void 0)};var i}function Qre(e,t,{insertBefore:n,returnType:r}){if(r){const n=lm(r);n&&80===n.kind&&"Promise"===n.text||e.replaceNode(t,r,XC.createTypeReferenceNode("Promise",XC.createNodeArray([r])))}e.insertModifierBefore(t,134,n)}k7({errorCodes:Gre,getCodeActions(e){const{sourceFile:t,span:n}=e,r=Xre(t,n.start);if(!r)return;const i=Tue.ChangeTracker.with(e,(e=>Qre(e,t,r)));return[v7(Kre,i,la.Add_async_modifier_to_containing_function,Kre,la.Add_all_missing_async_modifiers)]},fixIds:[Kre],getAllCodeActions:function(e){const t=new Set;return D7(e,Gre,((n,r)=>{const i=Xre(r.file,r.start);i&&vx(t,jB(i.insertBefore))&&Qre(n,e.sourceFile,i)}))}});var Yre=[la._0_is_defined_as_an_accessor_in_class_1_but_is_overridden_here_in_2_as_an_instance_property.code,la._0_is_defined_as_a_property_in_class_1_but_is_overridden_here_in_2_as_an_accessor.code],Zre="fixPropertyOverrideAccessor";function eie(e,t,n,r,i){let o,a;if(r===la._0_is_defined_as_an_accessor_in_class_1_but_is_overridden_here_in_2_as_an_instance_property.code)o=t,a=t+n;else if(r===la._0_is_defined_as_a_property_in_class_1_but_is_overridden_here_in_2_as_an_accessor.code){const n=i.program.getTypeChecker(),r=PX(e,t).parent;un.assert(u_(r),"error span of fixPropertyOverrideAccessor should only be on an accessor");const s=r.parent;un.assert(__(s),"erroneous accessors should only be inside classes");const c=be(Zie(s,n));if(!c)return[];const l=fc(Op(r.name)),_=n.getPropertyOfType(n.getTypeAtLocation(c),l);if(!_||!_.valueDeclaration)return[];o=_.valueDeclaration.pos,a=_.valueDeclaration.end,e=hd(_.valueDeclaration)}else un.fail("fixPropertyOverrideAccessor codefix got unexpected error code "+r);return $ie(e,i.program,o,a,i,la.Generate_get_and_set_accessors.message)}k7({errorCodes:Yre,getCodeActions(e){const t=eie(e.sourceFile,e.span.start,e.span.length,e.errorCode,e);if(t)return[v7(Zre,t,la.Generate_get_and_set_accessors,Zre,la.Generate_get_and_set_accessors_for_all_overriding_properties)]},fixIds:[Zre],getAllCodeActions:e=>D7(e,Yre,((t,n)=>{const r=eie(n.file,n.start,n.length,n.code,e);if(r)for(const n of r)t.pushRaw(e.sourceFile,n)}))});var tie="inferFromUsage",nie=[la.Variable_0_implicitly_has_type_1_in_some_locations_where_its_type_cannot_be_determined.code,la.Variable_0_implicitly_has_an_1_type.code,la.Parameter_0_implicitly_has_an_1_type.code,la.Rest_parameter_0_implicitly_has_an_any_type.code,la.Property_0_implicitly_has_type_any_because_its_get_accessor_lacks_a_return_type_annotation.code,la._0_which_lacks_return_type_annotation_implicitly_has_an_1_return_type.code,la.Property_0_implicitly_has_type_any_because_its_set_accessor_lacks_a_parameter_type_annotation.code,la.Member_0_implicitly_has_an_1_type.code,la.Variable_0_implicitly_has_type_1_in_some_locations_but_a_better_type_may_be_inferred_from_usage.code,la.Variable_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage.code,la.Parameter_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage.code,la.Rest_parameter_0_implicitly_has_an_any_type_but_a_better_type_may_be_inferred_from_usage.code,la.Property_0_implicitly_has_type_any_but_a_better_type_for_its_get_accessor_may_be_inferred_from_usage.code,la._0_implicitly_has_an_1_return_type_but_a_better_type_may_be_inferred_from_usage.code,la.Property_0_implicitly_has_type_any_but_a_better_type_for_its_set_accessor_may_be_inferred_from_usage.code,la.Member_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage.code,la.this_implicitly_has_type_any_because_it_does_not_have_a_type_annotation.code];function rie(e,t){switch(e){case la.Parameter_0_implicitly_has_an_1_type.code:case la.Parameter_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage.code:return fD(Hf(t))?la.Infer_type_of_0_from_usage:la.Infer_parameter_types_from_usage;case la.Rest_parameter_0_implicitly_has_an_any_type.code:case la.Rest_parameter_0_implicitly_has_an_any_type_but_a_better_type_may_be_inferred_from_usage.code:return la.Infer_parameter_types_from_usage;case la.this_implicitly_has_type_any_because_it_does_not_have_a_type_annotation.code:return la.Infer_this_type_of_0_from_usage;default:return la.Infer_type_of_0_from_usage}}function iie(e,t,n,r,i,o,a,s,c){if(!Xl(n.kind)&&80!==n.kind&&26!==n.kind&&110!==n.kind)return;const{parent:l}=n,_=Z9(t,i,c,s);switch(r=function(e){switch(e){case la.Variable_0_implicitly_has_type_1_in_some_locations_but_a_better_type_may_be_inferred_from_usage.code:return la.Variable_0_implicitly_has_type_1_in_some_locations_where_its_type_cannot_be_determined.code;case la.Variable_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage.code:return la.Variable_0_implicitly_has_an_1_type.code;case la.Parameter_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage.code:return la.Parameter_0_implicitly_has_an_1_type.code;case la.Rest_parameter_0_implicitly_has_an_any_type_but_a_better_type_may_be_inferred_from_usage.code:return la.Rest_parameter_0_implicitly_has_an_any_type.code;case la.Property_0_implicitly_has_type_any_but_a_better_type_for_its_get_accessor_may_be_inferred_from_usage.code:return la.Property_0_implicitly_has_type_any_because_its_get_accessor_lacks_a_return_type_annotation.code;case la._0_implicitly_has_an_1_return_type_but_a_better_type_may_be_inferred_from_usage.code:return la._0_which_lacks_return_type_annotation_implicitly_has_an_1_return_type.code;case la.Property_0_implicitly_has_type_any_but_a_better_type_for_its_set_accessor_may_be_inferred_from_usage.code:return la.Property_0_implicitly_has_type_any_because_its_set_accessor_lacks_a_parameter_type_annotation.code;case la.Member_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage.code:return la.Member_0_implicitly_has_an_1_type.code}return e}(r)){case la.Member_0_implicitly_has_an_1_type.code:case la.Variable_0_implicitly_has_type_1_in_some_locations_where_its_type_cannot_be_determined.code:if(VF(l)&&a(l)||cD(l)||sD(l))return oie(e,_,t,l,i,s,o),_.writeFixes(e),l;if(HD(l)){const n=sZ(_ie(l.name,i,o),l,i,s);if(n){const r=XC.createJSDocTypeTag(void 0,XC.createJSDocTypeExpression(n),void 0);e.addJSDocTags(t,nt(l.parent.parent,DF),[r])}return _.writeFixes(e),l}return;case la.Variable_0_implicitly_has_an_1_type.code:{const t=i.getTypeChecker().getSymbolAtLocation(n);return t&&t.valueDeclaration&&VF(t.valueDeclaration)&&a(t.valueDeclaration)?(oie(e,_,hd(t.valueDeclaration),t.valueDeclaration,i,s,o),_.writeFixes(e),t.valueDeclaration):void 0}}const u=Hf(n);if(void 0===u)return;let d;switch(r){case la.Parameter_0_implicitly_has_an_1_type.code:if(fD(u)){aie(e,_,t,u,i,s,o),d=u;break}case la.Rest_parameter_0_implicitly_has_an_any_type.code:if(a(u)){const n=nt(l,oD);!function(e,t,n,r,i,o,a,s){if(!zN(r.name))return;const c=function(e,t,n,r){const i=uie(e,t,n,r);return i&&die(n,i,r).parameters(e)||e.parameters.map((e=>({declaration:e,type:zN(e.name)?_ie(e.name,n,r):n.getTypeChecker().getAnyType()})))}(i,n,o,s);if(un.assert(i.parameters.length===c.length,"Parameter count and inference count should match"),Fm(i))cie(e,n,c,o,a);else{const r=tF(i)&&!yX(i,21,n);r&&e.insertNodeBefore(n,ge(i.parameters),XC.createToken(21));for(const{declaration:r,type:i}of c)!r||r.type||r.initializer||sie(e,t,n,r,i,o,a);r&&e.insertNodeAfter(n,ve(i.parameters),XC.createToken(22))}}(e,_,t,n,u,i,s,o),d=n}break;case la.Property_0_implicitly_has_type_any_because_its_get_accessor_lacks_a_return_type_annotation.code:case la._0_which_lacks_return_type_annotation_implicitly_has_an_1_return_type.code:pD(u)&&zN(u.name)&&(sie(e,_,t,u,_ie(u.name,i,o),i,s),d=u);break;case la.Property_0_implicitly_has_type_any_because_its_set_accessor_lacks_a_parameter_type_annotation.code:fD(u)&&(aie(e,_,t,u,i,s,o),d=u);break;case la.this_implicitly_has_type_any_because_it_does_not_have_a_type_annotation.code:Tue.isThisTypeAnnotatable(u)&&a(u)&&(function(e,t,n,r,i,o){const a=uie(n,t,r,o);if(!a||!a.length)return;const s=sZ(die(r,a,o).thisParameter(),n,r,i);s&&(Fm(n)?function(e,t,n,r){e.addJSDocTags(t,n,[XC.createJSDocThisTag(void 0,XC.createJSDocTypeExpression(r))])}(e,t,n,s):e.tryInsertThisTypeAnnotation(t,n,s))}(e,t,u,i,s,o),d=u);break;default:return un.fail(String(r))}return _.writeFixes(e),d}function oie(e,t,n,r,i,o,a){zN(r.name)&&sie(e,t,n,r,_ie(r.name,i,a),i,o)}function aie(e,t,n,r,i,o,a){const s=fe(r.parameters);if(s&&zN(r.name)&&zN(s.name)){let c=_ie(r.name,i,a);c===i.getTypeChecker().getAnyType()&&(c=_ie(s.name,i,a)),Fm(r)?cie(e,n,[{declaration:s,type:c}],i,o):sie(e,t,n,s,c,i,o)}}function sie(e,t,n,r,i,o,a){const s=sZ(i,r,o,a);if(s)if(Fm(n)&&171!==r.kind){const t=VF(r)?tt(r.parent.parent,wF):r;if(!t)return;const i=XC.createJSDocTypeExpression(s),o=pD(r)?XC.createJSDocReturnTag(void 0,i,void 0):XC.createJSDocTypeTag(void 0,i,void 0);e.addJSDocTags(n,t,[o])}else(function(e,t,n,r,i,o){const a=qie(e,o);return!(!a||!r.tryInsertTypeAnnotation(n,t,a.typeNode))&&(d(a.symbols,(e=>i.addImportFromExportedSymbol(e,!0))),!0)})(s,r,n,e,t,hk(o.getCompilerOptions()))||e.tryInsertTypeAnnotation(n,r,s)}function cie(e,t,n,r,i){const o=n.length&&n[0].declaration.parent;if(!o)return;const a=B(n,(e=>{const t=e.declaration;if(t.initializer||tl(t)||!zN(t.name))return;const n=e.type&&sZ(e.type,t,r,i);return n?(nw(XC.cloneNode(t.name),7168),{name:XC.cloneNode(t.name),param:t,isOptional:!!e.isOptional,typeNode:n}):void 0}));if(a.length)if(tF(o)||eF(o)){const n=tF(o)&&!yX(o,21,t);n&&e.insertNodeBefore(t,ge(o.parameters),XC.createToken(21)),d(a,(({typeNode:n,param:r})=>{const i=XC.createJSDocTypeTag(void 0,XC.createJSDocTypeExpression(n)),o=XC.createJSDocComment(void 0,[i]);e.insertNodeAt(t,r.getStart(t),o,{suffix:" "})})),n&&e.insertNodeAfter(t,ve(o.parameters),XC.createToken(22))}else{const n=E(a,(({name:e,typeNode:t,isOptional:n})=>XC.createJSDocParameterTag(void 0,e,!!n,XC.createJSDocTypeExpression(t),!1,void 0)));e.addJSDocTags(t,o,n)}}function lie(e,t,n){return B(ice.getReferenceEntriesForNode(-1,e,t,t.getSourceFiles(),n),(e=>e.kind!==ice.EntryKind.Span?tt(e.node,zN):void 0))}function _ie(e,t,n){return die(t,lie(e,t,n),n).single()}function uie(e,t,n,r){let i;switch(e.kind){case 176:i=yX(e,137,t);break;case 219:case 218:const n=e.parent;i=(VF(n)||cD(n))&&zN(n.name)?n.name:e.name;break;case 262:case 174:case 173:i=e.name}if(i)return lie(i,n,r)}function die(e,t,n){const r=e.getTypeChecker(),i={string:()=>r.getStringType(),number:()=>r.getNumberType(),Array:e=>r.createArrayType(e),Promise:e=>r.createPromiseType(e)},o=[r.getStringType(),r.getNumberType(),r.createArrayType(r.getAnyType()),r.createPromiseType(r.getAnyType())];return{single:function(){return f(s(t))},parameters:function(i){if(0===t.length||!i.parameters)return;const o={isNumber:void 0,isString:void 0,isNumberOrString:void 0,candidateTypes:void 0,properties:void 0,calls:void 0,constructs:void 0,numberIndex:void 0,stringIndex:void 0,candidateThisTypes:void 0,inferredTypes:void 0};for(const e of t)n.throwIfCancellationRequested(),c(e,o);const a=[...o.constructs||[],...o.calls||[]];return i.parameters.map(((t,o)=>{const c=[],l=Mu(t);let _=!1;for(const e of a)if(e.argumentTypes.length<=o)_=Fm(i),c.push(r.getUndefinedType());else if(l)for(let t=o;t{t.has(n)||t.set(n,[]),t.get(n).push(e)}));const n=new Map;return t.forEach(((e,t)=>{n.set(t,a(e))})),{isNumber:e.some((e=>e.isNumber)),isString:e.some((e=>e.isString)),isNumberOrString:e.some((e=>e.isNumberOrString)),candidateTypes:O(e,(e=>e.candidateTypes)),properties:n,calls:O(e,(e=>e.calls)),constructs:O(e,(e=>e.constructs)),numberIndex:d(e,(e=>e.numberIndex)),stringIndex:d(e,(e=>e.stringIndex)),candidateThisTypes:O(e,(e=>e.candidateThisTypes)),inferredTypes:void 0}}function s(e){const t={isNumber:void 0,isString:void 0,isNumberOrString:void 0,candidateTypes:void 0,properties:void 0,calls:void 0,constructs:void 0,numberIndex:void 0,stringIndex:void 0,candidateThisTypes:void 0,inferredTypes:void 0};for(const r of e)n.throwIfCancellationRequested(),c(r,t);return m(t)}function c(e,t){for(;ub(e);)e=e.parent;switch(e.parent.kind){case 244:!function(e,t){v(t,GD(e)?r.getVoidType():r.getAnyType())}(e,t);break;case 225:t.isNumber=!0;break;case 224:!function(e,t){switch(e.operator){case 46:case 47:case 41:case 55:t.isNumber=!0;break;case 40:t.isNumberOrString=!0}}(e.parent,t);break;case 226:!function(e,t,n){switch(t.operatorToken.kind){case 43:case 42:case 44:case 45:case 48:case 49:case 50:case 51:case 52:case 53:case 66:case 68:case 67:case 69:case 70:case 74:case 75:case 79:case 71:case 73:case 72:case 41:case 30:case 33:case 32:case 34:const i=r.getTypeAtLocation(t.left===e?t.right:t.left);1056&i.flags?v(n,i):n.isNumber=!0;break;case 65:case 40:const o=r.getTypeAtLocation(t.left===e?t.right:t.left);1056&o.flags?v(n,o):296&o.flags?n.isNumber=!0:402653316&o.flags?n.isString=!0:1&o.flags||(n.isNumberOrString=!0);break;case 64:case 35:case 37:case 38:case 36:case 77:case 78:case 76:v(n,r.getTypeAtLocation(t.left===e?t.right:t.left));break;case 103:e===t.left&&(n.isString=!0);break;case 57:case 61:e!==t.left||260!==e.parent.parent.kind&&!nb(e.parent.parent,!0)||v(n,r.getTypeAtLocation(t.right))}}(e,e.parent,t);break;case 296:case 297:!function(e,t){v(t,r.getTypeAtLocation(e.parent.parent.expression))}(e.parent,t);break;case 213:case 214:e.parent.expression===e?function(e,t){const n={argumentTypes:[],return_:{isNumber:void 0,isString:void 0,isNumberOrString:void 0,candidateTypes:void 0,properties:void 0,calls:void 0,constructs:void 0,numberIndex:void 0,stringIndex:void 0,candidateThisTypes:void 0,inferredTypes:void 0}};if(e.arguments)for(const t of e.arguments)n.argumentTypes.push(r.getTypeAtLocation(t));c(e,n.return_),213===e.kind?(t.calls||(t.calls=[])).push(n):(t.constructs||(t.constructs=[])).push(n)}(e.parent,t):_(e,t);break;case 211:!function(e,t){const n=pc(e.name.text);t.properties||(t.properties=new Map);const r=t.properties.get(n)||{isNumber:void 0,isString:void 0,isNumberOrString:void 0,candidateTypes:void 0,properties:void 0,calls:void 0,constructs:void 0,numberIndex:void 0,stringIndex:void 0,candidateThisTypes:void 0,inferredTypes:void 0};c(e,r),t.properties.set(n,r)}(e.parent,t);break;case 212:!function(e,t,n){if(t!==e.argumentExpression){const t=r.getTypeAtLocation(e.argumentExpression),i={isNumber:void 0,isString:void 0,isNumberOrString:void 0,candidateTypes:void 0,properties:void 0,calls:void 0,constructs:void 0,numberIndex:void 0,stringIndex:void 0,candidateThisTypes:void 0,inferredTypes:void 0};c(e,i),296&t.flags?n.numberIndex=i:n.stringIndex=i}else n.isNumberOrString=!0}(e.parent,e,t);break;case 303:case 304:!function(e,t){const n=VF(e.parent.parent)?e.parent.parent:e.parent;b(t,r.getTypeAtLocation(n))}(e.parent,t);break;case 172:!function(e,t){b(t,r.getTypeAtLocation(e.parent))}(e.parent,t);break;case 260:{const{name:n,initializer:i}=e.parent;if(e===n){i&&v(t,r.getTypeAtLocation(i));break}}default:return _(e,t)}}function _(e,t){vm(e)&&v(t,r.getContextualType(e))}function p(e){return f(m(e))}function f(e){if(!e.length)return r.getAnyType();const t=r.getUnionType([r.getStringType(),r.getNumberType()]);let n=function(e,t){const n=[];for(const r of e)for(const{high:e,low:i}of t)e(r)&&(un.assert(!i(r),"Priority can't have both low and high"),n.push(i));return e.filter((e=>n.every((t=>!t(e)))))}(e,[{high:e=>e===r.getStringType()||e===r.getNumberType(),low:e=>e===t},{high:e=>!(16385&e.flags),low:e=>!!(16385&e.flags)},{high:e=>!(114689&e.flags||16&mx(e)),low:e=>!!(16&mx(e))}]);const i=n.filter((e=>16&mx(e)));return i.length&&(n=n.filter((e=>!(16&mx(e)))),n.push(function(e){if(1===e.length)return e[0];const t=[],n=[],i=[],o=[];let a=!1,s=!1;const c=$e();for(const l of e){for(const e of r.getPropertiesOfType(l))c.add(e.escapedName,e.valueDeclaration?r.getTypeOfSymbolAtLocation(e,e.valueDeclaration):r.getAnyType());t.push(...r.getSignaturesOfType(l,0)),n.push(...r.getSignaturesOfType(l,1));const e=r.getIndexInfoOfType(l,0);e&&(i.push(e.type),a=a||e.isReadonly);const _=r.getIndexInfoOfType(l,1);_&&(o.push(_.type),s=s||_.isReadonly)}const l=W(c,((t,n)=>{const i=n.lengthr.getBaseTypeOfLiteralType(e))),_=(null==(a=e.calls)?void 0:a.length)?g(e):void 0;return _&&c?s.push(r.getUnionType([_,...c],2)):(_&&s.push(_),u(c)&&s.push(...c)),s.push(...function(e){if(!e.properties||!e.properties.size)return[];const t=o.filter((t=>function(e,t){return!!t.properties&&!td(t.properties,((t,n)=>{const i=r.getTypeOfPropertyOfType(e,n);return!i||(t.calls?!r.getSignaturesOfType(i,0).length||!r.isTypeAssignableTo(i,(o=t.calls,r.createAnonymousType(void 0,Hu(),[y(o)],l,l))):!r.isTypeAssignableTo(i,p(t)));var o}))}(t,e)));return 0function(e,t){if(!(4&mx(e)&&t.properties))return e;const n=e.target,o=be(n.typeParameters);if(!o)return e;const a=[];return t.properties.forEach(((e,t)=>{const i=r.getTypeOfPropertyOfType(n,t);un.assert(!!i,"generic should have all the properties of its reference."),a.push(...h(i,p(e),o))})),i[e.symbol.escapedName](f(a))}(t,e))):[]}(e)),s}function g(e){const t=new Map;e.properties&&e.properties.forEach(((e,n)=>{const i=r.createSymbol(4,n);i.links.type=p(e),t.set(n,i)}));const n=e.calls?[y(e.calls)]:[],i=e.constructs?[y(e.constructs)]:[],o=e.stringIndex?[r.createIndexInfo(r.getStringType(),p(e.stringIndex),!1)]:[];return r.createAnonymousType(void 0,t,n,i,o)}function h(e,t,n){if(e===n)return[t];if(3145728&e.flags)return O(e.types,(e=>h(e,t,n)));if(4&mx(e)&&4&mx(t)){const i=r.getTypeArguments(e),o=r.getTypeArguments(t),a=[];if(i&&o)for(let e=0;ee.argumentTypes.length)));for(let i=0;ie.argumentTypes[i]||r.getUndefinedType()))),e.some((e=>void 0===e.argumentTypes[i]))&&(n.flags|=16777216),t.push(n)}const i=p(a(e.map((e=>e.return_))));return r.createSignature(void 0,void 0,void 0,t,i,void 0,n,0)}function v(e,t){!t||1&t.flags||131072&t.flags||(e.candidateTypes||(e.candidateTypes=[])).push(t)}function b(e,t){!t||1&t.flags||131072&t.flags||(e.candidateThisTypes||(e.candidateThisTypes=[])).push(t)}}k7({errorCodes:nie,getCodeActions(e){const{sourceFile:t,program:n,span:{start:r},errorCode:i,cancellationToken:o,host:a,preferences:s}=e,c=PX(t,r);let l;const _=Tue.ChangeTracker.with(e,(e=>{l=iie(e,t,c,i,n,o,ot,a,s)})),u=l&&Tc(l);return u&&0!==_.length?[v7(tie,_,[rie(i,c),Kd(u)],tie,la.Infer_all_types_from_usage)]:void 0},fixIds:[tie],getAllCodeActions(e){const{sourceFile:t,program:n,cancellationToken:r,host:i,preferences:o}=e,a=TQ();return D7(e,nie,((e,s)=>{iie(e,t,PX(s.file,s.start),s.code,n,r,a,i,o)}))}});var pie="fixReturnTypeInAsyncFunction",fie=[la.The_return_type_of_an_async_function_or_method_must_be_the_global_Promise_T_type_Did_you_mean_to_write_Promise_0.code];function mie(e,t,n){if(Fm(e))return;const r=_c(PX(e,n),i_),i=null==r?void 0:r.type;if(!i)return;const o=t.getTypeFromTypeNode(i),a=t.getAwaitedType(o)||t.getVoidType(),s=t.typeToTypeNode(a,i,void 0);return s?{returnTypeNode:i,returnType:o,promisedTypeNode:s,promisedType:a}:void 0}function gie(e,t,n,r){e.replaceNode(t,n,XC.createTypeReferenceNode("Promise",[r]))}k7({errorCodes:fie,fixIds:[pie],getCodeActions:function(e){const{sourceFile:t,program:n,span:r}=e,i=n.getTypeChecker(),o=mie(t,n.getTypeChecker(),r.start);if(!o)return;const{returnTypeNode:a,returnType:s,promisedTypeNode:c,promisedType:l}=o,_=Tue.ChangeTracker.with(e,(e=>gie(e,t,a,c)));return[v7(pie,_,[la.Replace_0_with_Promise_1,i.typeToString(s),i.typeToString(l)],pie,la.Fix_all_incorrect_return_type_of_an_async_functions)]},getAllCodeActions:e=>D7(e,fie,((t,n)=>{const r=mie(n.file,e.program.getTypeChecker(),n.start);r&&gie(t,n.file,r.returnTypeNode,r.promisedTypeNode)}))});var hie="disableJsDiagnostics",yie="disableJsDiagnostics",vie=B(Object.keys(la),(e=>{const t=la[e];return 1===t.category?t.code:void 0}));function bie(e,t,n,r){const{line:i}=Ja(t,n);r&&!q(r,i)||e.insertCommentBeforeLine(t,i,n," @ts-ignore")}function xie(e,t,n,r,i,o,a){const s=e.symbol.members;for(const c of t)s.has(c.escapedName)||Tie(c,e,n,r,i,o,a,void 0)}function kie(e){return{trackSymbol:()=>!1,moduleResolverHost:IQ(e.program,e.host)}}k7({errorCodes:vie,getCodeActions:function(e){const{sourceFile:t,program:n,span:r,host:i,formatContext:o}=e;if(!Fm(t)||!eT(t,n.getCompilerOptions()))return;const a=t.checkJsDirective?"":kY(i,o.options),s=[y7(hie,[N7(t.fileName,[vQ(t.checkJsDirective?Ws(t.checkJsDirective.pos,t.checkJsDirective.end):Vs(0,0),`// @ts-nocheck${a}`)])],la.Disable_checking_for_this_file)];return Tue.isValidLocationToAddComment(t,r.start)&&s.unshift(v7(hie,Tue.ChangeTracker.with(e,(e=>bie(e,t,r.start))),la.Ignore_this_error_message,yie,la.Add_ts_ignore_to_all_error_messages)),s},fixIds:[yie],getAllCodeActions:e=>{const t=new Set;return D7(e,vie,((e,n)=>{Tue.isValidLocationToAddComment(n.file,n.start)&&bie(e,n.file,n.start,t)}))}});var Sie=(e=>(e[e.Method=1]="Method",e[e.Property=2]="Property",e[e.All=3]="All",e))(Sie||{});function Tie(e,t,n,r,i,o,a,s,c=3,_=!1){const d=e.getDeclarations(),p=fe(d),f=r.program.getTypeChecker(),m=hk(r.program.getCompilerOptions()),g=(null==p?void 0:p.kind)??171,h=function(e,t){if(262144&nx(e)){const t=e.links.nameType;if(t&&oC(t))return XC.createIdentifier(fc(aC(t)))}return LY(Tc(t),!1)}(e,p),y=p?Mv(p):0;let v=256&y;v|=1&y?1:4&y?4:0,p&&d_(p)&&(v|=512);const b=function(){let e;return v&&(e=oe(e,XC.createModifiersFromModifierFlags(v))),r.program.getCompilerOptions().noImplicitOverride&&p&&Ev(p)&&(e=ie(e,XC.createToken(164))),e&&XC.createNodeArray(e)}(),x=f.getWidenedType(f.getTypeOfSymbolAtLocation(e,t)),k=!!(16777216&e.flags),S=!!(33554432&t.flags)||_,T=BQ(n,i),C=1|(0===T?268435456:0);switch(g){case 171:case 172:let n=f.typeToTypeNode(x,t,C,8,kie(r));if(o){const e=qie(n,m);e&&(n=e.typeNode,Vie(o,e.symbols))}a(XC.createPropertyDeclaration(b,p?N(h):e.getName(),k&&2&c?XC.createToken(58):void 0,n,void 0));break;case 177:case 178:{un.assertIsDefined(d);let e=f.typeToTypeNode(x,t,C,void 0,kie(r));const n=dv(d,p),i=n.secondAccessor?[n.firstAccessor,n.secondAccessor]:[n.firstAccessor];if(o){const t=qie(e,m);t&&(e=t.typeNode,Vie(o,t.symbols))}for(const t of i)if(pD(t))a(XC.createGetAccessorDeclaration(b,N(h),l,F(e),D(s,T,S)));else{un.assertNode(t,fD,"The counterpart to a getter should be a setter");const n=iv(t),r=n&&zN(n.name)?mc(n.name):void 0;a(XC.createSetAccessorDeclaration(b,N(h),Lie(1,[r],[F(e)],1,!1),D(s,T,S)))}break}case 173:case 174:un.assertIsDefined(d);const i=x.isUnion()?O(x.types,(e=>e.getCallSignatures())):x.getCallSignatures();if(!$(i))break;if(1===d.length){un.assert(1===i.length,"One declaration implies one signature");const e=i[0];w(T,e,b,N(h),D(s,T,S));break}for(const e of i)e.declaration&&33554432&e.declaration.flags||w(T,e,b,N(h));if(!S)if(d.length>i.length){const e=f.getSignatureFromDeclaration(d[d.length-1]);w(T,e,b,N(h),D(s,T))}else un.assert(d.length===i.length,"Declarations and signatures should match count"),a(function(e,t,n,r,i,o,a,s,c){let l=r[0],_=r[0].minArgumentCount,d=!1;for(const e of r)_=Math.min(e.minArgumentCount,_),UB(e)&&(d=!0),e.parameters.length>=l.parameters.length&&(!UB(e)||UB(l))&&(l=e);const p=l.parameters.length-(UB(l)?1:0),f=l.parameters.map((e=>e.name)),m=Lie(p,f,void 0,_,!1);if(d){const e=XC.createParameterDeclaration(void 0,XC.createToken(26),f[p]||"rest",p>=_?XC.createToken(58):void 0,XC.createArrayTypeNode(XC.createKeywordTypeNode(159)),void 0);m.push(e)}return function(e,t,n,r,i,o,a,s){return XC.createMethodDeclaration(e,void 0,t,n?XC.createToken(58):void 0,void 0,i,o,s||jie(a))}(a,i,o,0,m,function(e,t,n,r){if(u(e)){const i=t.getUnionType(E(e,t.getReturnTypeOfSignature));return t.typeToTypeNode(i,r,1,8,kie(n))}}(r,e,t,n),s,c)}(f,r,t,i,N(h),k&&!!(1&c),b,T,s))}function w(e,n,i,s,l){const _=Cie(174,r,e,n,l,s,i,k&&!!(1&c),t,o);_&&a(_)}function N(e){return zN(e)&&"constructor"===e.escapedText?XC.createComputedPropertyName(XC.createStringLiteral(mc(e),0===T)):LY(e,!1)}function D(e,t,n){return n?void 0:LY(e,!1)||jie(t)}function F(e){return LY(e,!1)}}function Cie(e,t,n,r,i,o,a,s,c,l){const _=t.program,u=_.getTypeChecker(),d=hk(_.getCompilerOptions()),p=Fm(c),f=524545|(0===n?268435456:0),m=u.signatureToSignatureDeclaration(r,e,c,f,8,kie(t));if(!m)return;let g=p?void 0:m.typeParameters,h=m.parameters,y=p?void 0:LY(m.type);if(l){if(g){const e=A(g,(e=>{let t=e.constraint,n=e.default;if(t){const e=qie(t,d);e&&(t=e.typeNode,Vie(l,e.symbols))}if(n){const e=qie(n,d);e&&(n=e.typeNode,Vie(l,e.symbols))}return XC.updateTypeParameterDeclaration(e,e.modifiers,e.name,t,n)}));g!==e&&(g=nI(XC.createNodeArray(e,g.hasTrailingComma),g))}const e=A(h,(e=>{let t=p?void 0:e.type;if(t){const e=qie(t,d);e&&(t=e.typeNode,Vie(l,e.symbols))}return XC.updateParameterDeclaration(e,e.modifiers,e.dotDotDotToken,e.name,p?void 0:e.questionToken,t,e.initializer)}));if(h!==e&&(h=nI(XC.createNodeArray(e,h.hasTrailingComma),h)),y){const e=qie(y,d);e&&(y=e.typeNode,Vie(l,e.symbols))}}const v=s?XC.createToken(58):void 0,b=m.asteriskToken;return eF(m)?XC.updateFunctionExpression(m,a,m.asteriskToken,tt(o,zN),g,h,y,i??m.body):tF(m)?XC.updateArrowFunction(m,a,g,h,y,m.equalsGreaterThanToken,i??m.body):_D(m)?XC.updateMethodDeclaration(m,a,b,o??XC.createIdentifier(""),v,g,h,y,i):$F(m)?XC.updateFunctionDeclaration(m,a,m.asteriskToken,tt(o,zN),g,h,y,i??m.body):void 0}function wie(e,t,n,r,i,o,a){const s=BQ(t.sourceFile,t.preferences),c=hk(t.program.getCompilerOptions()),l=kie(t),_=t.program.getTypeChecker(),u=Fm(a),{typeArguments:d,arguments:p,parent:f}=r,m=u?void 0:_.getContextualType(r),g=E(p,(e=>zN(e)?e.text:HD(e)&&zN(e.name)?e.name.text:void 0)),h=u?[]:E(p,(e=>_.getTypeAtLocation(e))),{argumentTypeNodes:y,argumentTypeParameters:v}=function(e,t,n,r,i,o,a,s){const c=[],l=new Map;for(let o=0;oe[0]))),i=new Map(t);if(n){const i=n.filter((n=>!t.some((t=>{var r;return e.getTypeAtLocation(n)===(null==(r=t[1])?void 0:r.argumentType)})))),o=r.size+i.length;for(let e=0;r.size{var t;return XC.createTypeParameterDeclaration(void 0,e,null==(t=i.get(e))?void 0:t.constraint)}))}(_,v,d),S=Lie(p.length,g,y,void 0,u),T=u||void 0===m?void 0:_.typeToTypeNode(m,a,void 0,void 0,l);switch(e){case 174:return XC.createMethodDeclaration(b,x,i,void 0,k,S,T,jie(s));case 173:return XC.createMethodSignature(b,i,void 0,k,S,void 0===T?XC.createKeywordTypeNode(159):T);case 262:return un.assert("string"==typeof i||zN(i),"Unexpected name"),XC.createFunctionDeclaration(b,x,i,k,S,T,Rie(la.Function_not_implemented.message,s));default:un.fail("Unexpected kind")}}function Nie(e){return 84+e<=90?String.fromCharCode(84+e):`T${e}`}function Die(e,t,n,r,i,o,a,s){const c=e.typeToTypeNode(n,r,o,a,s);if(c)return Fie(c,t,i)}function Fie(e,t,n){if(e&&BD(e)){const r=qie(e,n);r&&(Vie(t,r.symbols),e=r.typeNode)}return LY(e)}function Eie(e,t,n,r,i,o){let a=e.typeToTypeNode(t,n,r,i,o);if(a){if(vD(a)){const n=t;if(n.typeArguments&&a.typeArguments){const t=function(e,t){un.assert(t.typeArguments);const n=t.typeArguments,r=t.target;for(let t=0;te===n[t])))return t}return n.length}(e,n);if(t=r?XC.createToken(58):void 0,i?void 0:(null==n?void 0:n[s])||XC.createKeywordTypeNode(159),void 0);o.push(l)}return o}function jie(e){return Rie(la.Method_not_implemented.message,e)}function Rie(e,t){return XC.createBlock([XC.createThrowStatement(XC.createNewExpression(XC.createIdentifier("Error"),void 0,[XC.createStringLiteral(e,0===t)]))],!0)}function Mie(e,t,n){const r=Vf(t);if(!r)return;const i=zie(r,"compilerOptions");if(void 0===i)return void e.insertNodeAtObjectStart(t,r,Jie("compilerOptions",XC.createObjectLiteralExpression(n.map((([e,t])=>Jie(e,t))),!0)));const o=i.initializer;if($D(o))for(const[r,i]of n){const n=zie(o,r);void 0===n?e.insertNodeAtObjectStart(t,o,Jie(r,i)):e.replaceNode(t,n.initializer,i)}}function Bie(e,t,n,r){Mie(e,t,[[n,r]])}function Jie(e,t){return XC.createPropertyAssignment(XC.createStringLiteral(e),t)}function zie(e,t){return b(e.properties,(e=>ME(e)&&!!e.name&&TN(e.name)&&e.name.text===t))}function qie(e,t){let n;const r=$B(e,(function e(r){if(_f(r)&&r.qualifier){const i=ab(r.qualifier);if(!i.symbol)return nJ(r,e,void 0);const o=OZ(i.symbol,t),a=o!==i.text?Uie(r.qualifier,XC.createIdentifier(o)):r.qualifier;n=ie(n,i.symbol);const s=HB(r.typeArguments,e,v_);return XC.createTypeReferenceNode(a,s)}return nJ(r,e,void 0)}),v_);if(n&&r)return{typeNode:r,symbols:n}}function Uie(e,t){return 80===e.kind?t:XC.createQualifiedName(Uie(e.left,t),e.right)}function Vie(e,t){t.forEach((t=>e.addImportFromExportedSymbol(t,!0)))}function Wie(e,t){const n=Ds(t);let r=PX(e,t.start);for(;r.ende.replaceNode(t,n,r)));return y7(eoe,i,[la.Replace_import_with_0,i[0].textChanges[0].newText])}function noe(e,t){const n=e.program.getTypeChecker().getTypeAtLocation(t);if(!(n.symbol&&Ku(n.symbol)&&n.symbol.links.originatingImport))return[];const r=[],i=n.symbol.links.originatingImport;if(cf(i)||se(r,function(e,t){const n=hd(t),r=kg(t),i=e.program.getCompilerOptions(),o=[];return o.push(toe(e,n,t,LQ(r.name,void 0,t.moduleSpecifier,BQ(n,e.preferences)))),1===yk(i)&&o.push(toe(e,n,t,XC.createImportEqualsDeclaration(void 0,!1,r.name,XC.createExternalModuleReference(t.moduleSpecifier)))),o}(e,i)),U_(t)&&(!kc(t.parent)||t.parent.name!==t)){const n=e.sourceFile,i=Tue.ChangeTracker.with(e,(e=>e.replaceNode(n,t,XC.createPropertyAccessExpression(t,"default"),{})));r.push(y7(eoe,i,la.Use_synthetic_default_member))}return r}k7({errorCodes:[la.This_expression_is_not_callable.code,la.This_expression_is_not_constructable.code],getCodeActions:function(e){const t=e.sourceFile,n=la.This_expression_is_not_callable.code===e.errorCode?213:214,r=_c(PX(t,e.span.start),(e=>e.kind===n));if(!r)return[];return noe(e,r.expression)}}),k7({errorCodes:[la.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1.code,la.Type_0_does_not_satisfy_the_constraint_1.code,la.Type_0_is_not_assignable_to_type_1.code,la.Type_0_is_not_assignable_to_type_1_Two_different_types_with_this_name_exist_but_they_are_unrelated.code,la.Type_predicate_0_is_not_assignable_to_1.code,la.Property_0_of_type_1_is_not_assignable_to_2_index_type_3.code,la._0_index_type_1_is_not_assignable_to_2_index_type_3.code,la.Property_0_in_type_1_is_not_assignable_to_the_same_property_in_base_type_2.code,la.Property_0_in_type_1_is_not_assignable_to_type_2.code,la.Property_0_of_JSX_spread_attribute_is_not_assignable_to_target_property.code,la.The_this_context_of_type_0_is_not_assignable_to_method_s_this_of_type_1.code],getCodeActions:function(e){const t=_c(PX(e.sourceFile,e.span.start),(t=>t.getStart()===e.span.start&&t.getEnd()===e.span.start+e.span.length));return t?noe(e,t):[]}});var roe="strictClassInitialization",ioe="addMissingPropertyDefiniteAssignmentAssertions",ooe="addMissingPropertyUndefinedType",aoe="addMissingPropertyInitializer",soe=[la.Property_0_has_no_initializer_and_is_not_definitely_assigned_in_the_constructor.code];function coe(e,t){const n=PX(e,t);if(zN(n)&&cD(n.parent)){const e=pv(n.parent);if(e)return{type:e,prop:n.parent,isJs:Fm(n.parent)}}}function loe(e,t,n){JY(n);const r=XC.updatePropertyDeclaration(n,n.modifiers,n.name,XC.createToken(54),n.type,n.initializer);e.replaceNode(t,n,r)}function _oe(e,t,n){const r=XC.createKeywordTypeNode(157),i=FD(n.type)?n.type.types.concat(r):[n.type,r],o=XC.createUnionTypeNode(i);n.isJs?e.addJSDocTags(t,n.prop,[XC.createJSDocTypeTag(void 0,XC.createJSDocTypeExpression(o))]):e.replaceNode(t,n.type,o)}function uoe(e,t,n,r){JY(n);const i=XC.updatePropertyDeclaration(n,n.modifiers,n.name,n.questionToken,n.type,r);e.replaceNode(t,n,i)}function doe(e,t){return poe(e,e.getTypeFromTypeNode(t.type))}function poe(e,t){if(512&t.flags)return t===e.getFalseType()||t===e.getFalseType(!0)?XC.createFalse():XC.createTrue();if(t.isStringLiteral())return XC.createStringLiteral(t.value);if(t.isNumberLiteral())return XC.createNumericLiteral(t.value);if(2048&t.flags)return XC.createBigIntLiteral(t.value);if(t.isUnion())return f(t.types,(t=>poe(e,t)));if(t.isClass()){const e=fx(t.symbol);if(!e||wv(e,64))return;const n=rv(e);if(n&&n.parameters.length)return;return XC.createNewExpression(XC.createIdentifier(t.symbol.name),void 0,void 0)}return e.isArrayLikeType(t)?XC.createArrayLiteralExpression():void 0}k7({errorCodes:soe,getCodeActions:function(e){const t=coe(e.sourceFile,e.span.start);if(!t)return;const n=[];return ie(n,function(e,t){const n=Tue.ChangeTracker.with(e,(n=>_oe(n,e.sourceFile,t)));return v7(roe,n,[la.Add_undefined_type_to_property_0,t.prop.name.getText()],ooe,la.Add_undefined_type_to_all_uninitialized_properties)}(e,t)),ie(n,function(e,t){if(t.isJs)return;const n=Tue.ChangeTracker.with(e,(n=>loe(n,e.sourceFile,t.prop)));return v7(roe,n,[la.Add_definite_assignment_assertion_to_property_0,t.prop.getText()],ioe,la.Add_definite_assignment_assertions_to_all_uninitialized_properties)}(e,t)),ie(n,function(e,t){if(t.isJs)return;const n=doe(e.program.getTypeChecker(),t.prop);if(!n)return;const r=Tue.ChangeTracker.with(e,(r=>uoe(r,e.sourceFile,t.prop,n)));return v7(roe,r,[la.Add_initializer_to_property_0,t.prop.name.getText()],aoe,la.Add_initializers_to_all_uninitialized_properties)}(e,t)),n},fixIds:[ioe,ooe,aoe],getAllCodeActions:e=>D7(e,soe,((t,n)=>{const r=coe(n.file,n.start);if(r)switch(e.fixId){case ioe:loe(t,n.file,r.prop);break;case ooe:_oe(t,n.file,r);break;case aoe:const i=doe(e.program.getTypeChecker(),r.prop);if(!i)return;uoe(t,n.file,r.prop,i);break;default:un.fail(JSON.stringify(e.fixId))}}))});var foe="requireInTs",moe=[la.require_call_may_be_converted_to_an_import.code];function goe(e,t,n){const{allowSyntheticDefaults:r,defaultImportName:i,namedImports:o,statement:a,moduleSpecifier:s}=n;e.replaceNode(t,a,i&&!r?XC.createImportEqualsDeclaration(void 0,!1,i,XC.createExternalModuleReference(s)):XC.createImportDeclaration(void 0,XC.createImportClause(!1,i,o),s,void 0))}function hoe(e,t,n,r){const{parent:i}=PX(e,n);Om(i,!0)||un.failBadSyntaxKind(i);const o=nt(i.parent,VF),a=BQ(e,r),s=tt(o.name,zN),c=qD(o.name)?function(e){const t=[];for(const n of e.elements){if(!zN(n.name)||n.initializer)return;t.push(XC.createImportSpecifier(!1,tt(n.propertyName,zN),n.name))}if(t.length)return XC.createNamedImports(t)}(o.name):void 0;if(s||c){const e=ge(i.arguments);return{allowSyntheticDefaults:Sk(t.getCompilerOptions()),defaultImportName:s,namedImports:c,statement:nt(o.parent.parent,wF),moduleSpecifier:NN(e)?XC.createStringLiteral(e.text,0===a):e}}}k7({errorCodes:moe,getCodeActions(e){const t=hoe(e.sourceFile,e.program,e.span.start,e.preferences);if(!t)return;const n=Tue.ChangeTracker.with(e,(n=>goe(n,e.sourceFile,t)));return[v7(foe,n,la.Convert_require_to_import,foe,la.Convert_all_require_to_import)]},fixIds:[foe],getAllCodeActions:e=>D7(e,moe,((t,n)=>{const r=hoe(n.file,e.program,n.start,e.preferences);r&&goe(t,e.sourceFile,r)}))});var yoe="useDefaultImport",voe=[la.Import_may_be_converted_to_a_default_import.code];function boe(e,t){const n=PX(e,t);if(!zN(n))return;const{parent:r}=n;if(tE(r)&&xE(r.moduleReference))return{importNode:r,name:n,moduleSpecifier:r.moduleReference.expression};if(lE(r)&&nE(r.parent.parent)){const e=r.parent.parent;return{importNode:e,name:n,moduleSpecifier:e.moduleSpecifier}}}function xoe(e,t,n,r){e.replaceNode(t,n.importNode,LQ(n.name,void 0,n.moduleSpecifier,BQ(t,r)))}k7({errorCodes:voe,getCodeActions(e){const{sourceFile:t,span:{start:n}}=e,r=boe(t,n);if(!r)return;const i=Tue.ChangeTracker.with(e,(n=>xoe(n,t,r,e.preferences)));return[v7(yoe,i,la.Convert_to_default_import,yoe,la.Convert_all_to_default_imports)]},fixIds:[yoe],getAllCodeActions:e=>D7(e,voe,((t,n)=>{const r=boe(n.file,n.start);r&&xoe(t,n.file,r,e.preferences)}))});var koe="useBigintLiteral",Soe=[la.Numeric_literals_with_absolute_values_equal_to_2_53_or_greater_are_too_large_to_be_represented_accurately_as_integers.code];function Toe(e,t,n){const r=tt(PX(t,n.start),kN);if(!r)return;const i=r.getText(t)+"n";e.replaceNode(t,r,XC.createBigIntLiteral(i))}k7({errorCodes:Soe,getCodeActions:function(e){const t=Tue.ChangeTracker.with(e,(t=>Toe(t,e.sourceFile,e.span)));if(t.length>0)return[v7(koe,t,la.Convert_to_a_bigint_numeric_literal,koe,la.Convert_all_to_bigint_numeric_literals)]},fixIds:[koe],getAllCodeActions:e=>D7(e,Soe,((e,t)=>Toe(e,t.file,t)))});var Coe="fixAddModuleReferTypeMissingTypeof",woe=[la.Module_0_does_not_refer_to_a_type_but_is_used_as_a_type_here_Did_you_mean_typeof_import_0.code];function Noe(e,t){const n=PX(e,t);return un.assert(102===n.kind,"This token should be an ImportKeyword"),un.assert(205===n.parent.kind,"Token parent should be an ImportType"),n.parent}function Doe(e,t,n){const r=XC.updateImportTypeNode(n,n.argument,n.attributes,n.qualifier,n.typeArguments,!0);e.replaceNode(t,n,r)}k7({errorCodes:woe,getCodeActions:function(e){const{sourceFile:t,span:n}=e,r=Noe(t,n.start),i=Tue.ChangeTracker.with(e,(e=>Doe(e,t,r)));return[v7(Coe,i,la.Add_missing_typeof,Coe,la.Add_missing_typeof)]},fixIds:[Coe],getAllCodeActions:e=>D7(e,woe,((t,n)=>Doe(t,e.sourceFile,Noe(n.file,n.start))))});var Foe="wrapJsxInFragment",Eoe=[la.JSX_expressions_must_have_one_parent_element.code];function Poe(e,t){let n=PX(e,t).parent.parent;if((cF(n)||(n=n.parent,cF(n)))&&Cd(n.operatorToken))return n}function Aoe(e,t,n){const r=function(e){const t=[];let n=e;for(;;){if(cF(n)&&Cd(n.operatorToken)&&28===n.operatorToken.kind){if(t.push(n.left),gu(n.right))return t.push(n.right),t;if(cF(n.right)){n=n.right;continue}return}return}}(n);r&&e.replaceNode(t,n,XC.createJsxFragment(XC.createJsxOpeningFragment(),r,XC.createJsxJsxClosingFragment()))}k7({errorCodes:Eoe,getCodeActions:function(e){const{sourceFile:t,span:n}=e,r=Poe(t,n.start);if(!r)return;const i=Tue.ChangeTracker.with(e,(e=>Aoe(e,t,r)));return[v7(Foe,i,la.Wrap_in_JSX_fragment,Foe,la.Wrap_all_unparented_JSX_in_JSX_fragment)]},fixIds:[Foe],getAllCodeActions:e=>D7(e,Eoe,((t,n)=>{const r=Poe(e.sourceFile,n.start);r&&Aoe(t,e.sourceFile,r)}))});var Ioe="wrapDecoratorInParentheses",Ooe=[la.Expression_must_be_enclosed_in_parentheses_to_be_used_as_a_decorator.code];function Loe(e,t,n){const r=_c(PX(t,n),aD);un.assert(!!r,"Expected position to be owned by a decorator.");const i=XC.createParenthesizedExpression(r.expression);e.replaceNode(t,r.expression,i)}k7({errorCodes:Ooe,getCodeActions:function(e){const t=Tue.ChangeTracker.with(e,(t=>Loe(t,e.sourceFile,e.span.start)));return[v7(Ioe,t,la.Wrap_in_parentheses,Ioe,la.Wrap_all_invalid_decorator_expressions_in_parentheses)]},fixIds:[Ioe],getAllCodeActions:e=>D7(e,Ooe,((e,t)=>Loe(e,t.file,t.start)))});var joe="fixConvertToMappedObjectType",Roe=[la.An_index_signature_parameter_type_cannot_be_a_literal_type_or_generic_type_Consider_using_a_mapped_object_type_instead.code];function Moe(e,t){const n=tt(PX(e,t).parent.parent,hD);if(!n)return;const r=KF(n.parent)?n.parent:tt(n.parent.parent,GF);return r?{indexSignature:n,container:r}:void 0}function Boe(e,t,{indexSignature:n,container:r}){const i=(KF(r)?r.members:r.type.members).filter((e=>!hD(e))),o=ge(n.parameters),a=XC.createTypeParameterDeclaration(void 0,nt(o.name,zN),o.type),s=XC.createMappedTypeNode(Iv(n)?XC.createModifier(148):void 0,a,void 0,n.questionToken,n.type,void 0),c=XC.createIntersectionTypeNode([...bh(r),s,...i.length?[XC.createTypeLiteralNode(i)]:l]);var _,u;e.replaceNode(t,r,(_=r,u=c,XC.createTypeAliasDeclaration(_.modifiers,_.name,_.typeParameters,u)))}k7({errorCodes:Roe,getCodeActions:function(e){const{sourceFile:t,span:n}=e,r=Moe(t,n.start);if(!r)return;const i=Tue.ChangeTracker.with(e,(e=>Boe(e,t,r))),o=mc(r.container.name);return[v7(joe,i,[la.Convert_0_to_mapped_object_type,o],joe,[la.Convert_0_to_mapped_object_type,o])]},fixIds:[joe],getAllCodeActions:e=>D7(e,Roe,((e,t)=>{const n=Moe(t.file,t.start);n&&Boe(e,t.file,n)}))});var Joe="removeAccidentalCallParentheses";k7({errorCodes:[la.This_expression_is_not_callable_because_it_is_a_get_accessor_Did_you_mean_to_use_it_without.code],getCodeActions(e){const t=_c(PX(e.sourceFile,e.span.start),GD);if(!t)return;const n=Tue.ChangeTracker.with(e,(n=>{n.deleteRange(e.sourceFile,{pos:t.expression.end,end:t.end})}));return[y7(Joe,n,la.Remove_parentheses)]},fixIds:[Joe]});var zoe="removeUnnecessaryAwait",qoe=[la.await_has_no_effect_on_the_type_of_this_expression.code];function Uoe(e,t,n){const r=tt(PX(t,n.start),(e=>135===e.kind)),i=r&&tt(r.parent,oF);if(!i)return;let o=i;if(ZD(i.parent)&&zN(Nx(i.expression,!1))){const e=jX(i.parent.pos,t);e&&105!==e.kind&&(o=i.parent)}e.replaceNode(t,o,i.expression)}k7({errorCodes:qoe,getCodeActions:function(e){const t=Tue.ChangeTracker.with(e,(t=>Uoe(t,e.sourceFile,e.span)));if(t.length>0)return[v7(zoe,t,la.Remove_unnecessary_await,zoe,la.Remove_all_unnecessary_uses_of_await)]},fixIds:[zoe],getAllCodeActions:e=>D7(e,qoe,((e,t)=>Uoe(e,t.file,t)))});var Voe=[la.A_type_only_import_can_specify_a_default_import_or_named_bindings_but_not_both.code],Woe="splitTypeOnlyImport";function $oe(e,t){return _c(PX(e,t.start),nE)}function Hoe(e,t,n){if(!t)return;const r=un.checkDefined(t.importClause);e.replaceNode(n.sourceFile,t,XC.updateImportDeclaration(t,t.modifiers,XC.updateImportClause(r,r.isTypeOnly,r.name,void 0),t.moduleSpecifier,t.attributes)),e.insertNodeAfter(n.sourceFile,t,XC.createImportDeclaration(void 0,XC.updateImportClause(r,r.isTypeOnly,void 0,r.namedBindings),t.moduleSpecifier,t.attributes))}k7({errorCodes:Voe,fixIds:[Woe],getCodeActions:function(e){const t=Tue.ChangeTracker.with(e,(t=>Hoe(t,$oe(e.sourceFile,e.span),e)));if(t.length)return[v7(Woe,t,la.Split_into_two_separate_import_declarations,Woe,la.Split_all_invalid_type_only_imports)]},getAllCodeActions:e=>D7(e,Voe,((t,n)=>{Hoe(t,$oe(e.sourceFile,n),e)}))});var Koe="fixConvertConstToLet",Goe=[la.Cannot_assign_to_0_because_it_is_a_constant.code];function Xoe(e,t,n){var r;const i=n.getTypeChecker().getSymbolAtLocation(PX(e,t));if(void 0===i)return;const o=tt(null==(r=null==i?void 0:i.valueDeclaration)?void 0:r.parent,WF);if(void 0===o)return;const a=yX(o,87,e);return void 0!==a?{symbol:i,token:a}:void 0}function Qoe(e,t,n){e.replaceNode(t,n,XC.createToken(121))}k7({errorCodes:Goe,getCodeActions:function(e){const{sourceFile:t,span:n,program:r}=e,i=Xoe(t,n.start,r);if(void 0===i)return;const o=Tue.ChangeTracker.with(e,(e=>Qoe(e,t,i.token)));return[b7(Koe,o,la.Convert_const_to_let,Koe,la.Convert_all_const_to_let)]},getAllCodeActions:e=>{const{program:t}=e,n=new Set;return w7(Tue.ChangeTracker.with(e,(r=>{F7(e,Goe,(e=>{const i=Xoe(e.file,e.start,t);if(i&&vx(n,RB(i.symbol)))return Qoe(r,e.file,i.token)}))})))},fixIds:[Koe]});var Yoe="fixExpectedComma",Zoe=[la._0_expected.code];function eae(e,t,n){const r=PX(e,t);return 27===r.kind&&r.parent&&($D(r.parent)||WD(r.parent))?{node:r}:void 0}function tae(e,t,{node:n}){const r=XC.createToken(28);e.replaceNode(t,n,r)}k7({errorCodes:Zoe,getCodeActions(e){const{sourceFile:t}=e,n=eae(t,e.span.start,e.errorCode);if(!n)return;const r=Tue.ChangeTracker.with(e,(e=>tae(e,t,n)));return[v7(Yoe,r,[la.Change_0_to_1,";",","],Yoe,[la.Change_0_to_1,";",","])]},fixIds:[Yoe],getAllCodeActions:e=>D7(e,Zoe,((t,n)=>{const r=eae(n.file,n.start,n.code);r&&tae(t,e.sourceFile,r)}))});var nae="addVoidToPromise",rae=[la.Expected_1_argument_but_got_0_new_Promise_needs_a_JSDoc_hint_to_produce_a_resolve_that_can_be_called_without_arguments.code,la.Expected_0_arguments_but_got_1_Did_you_forget_to_include_void_in_your_type_argument_to_Promise.code];function iae(e,t,n,r,i){const o=PX(t,n.start);if(!zN(o)||!GD(o.parent)||o.parent.expression!==o||0!==o.parent.arguments.length)return;const a=r.getTypeChecker(),s=a.getSymbolAtLocation(o),c=null==s?void 0:s.valueDeclaration;if(!c||!oD(c)||!XD(c.parent.parent))return;if(null==i?void 0:i.has(c))return;null==i||i.add(c);const l=function(e){var t;if(!Fm(e))return e.typeArguments;if(ZD(e.parent)){const n=null==(t=el(e.parent))?void 0:t.typeExpression.type;if(n&&vD(n)&&zN(n.typeName)&&"Promise"===mc(n.typeName))return n.typeArguments}}(c.parent.parent);if($(l)){const n=l[0],r=!FD(n)&&!ID(n)&&ID(XC.createUnionTypeNode([n,XC.createKeywordTypeNode(116)]).types[0]);r&&e.insertText(t,n.pos,"("),e.insertText(t,n.end,r?") | void":" | void")}else{const n=a.getResolvedSignature(o.parent),r=null==n?void 0:n.parameters[0],i=r&&a.getTypeOfSymbolAtLocation(r,c.parent.parent);Fm(c)?(!i||3&i.flags)&&(e.insertText(t,c.parent.parent.end,")"),e.insertText(t,Xa(t.text,c.parent.parent.pos),"/** @type {Promise} */(")):(!i||2&i.flags)&&e.insertText(t,c.parent.parent.expression.end,"")}}k7({errorCodes:rae,fixIds:[nae],getCodeActions(e){const t=Tue.ChangeTracker.with(e,(t=>iae(t,e.sourceFile,e.span,e.program)));if(t.length>0)return[v7("addVoidToPromise",t,la.Add_void_to_Promise_resolved_without_a_value,nae,la.Add_void_to_all_Promises_resolved_without_a_value)]},getAllCodeActions:e=>D7(e,rae,((t,n)=>iae(t,n.file,n,e.program,new Set)))});var oae={};i(oae,{CompletionKind:()=>Yae,CompletionSource:()=>uae,SortText:()=>cae,StringCompletions:()=>Dse,SymbolOriginInfoKind:()=>dae,createCompletionDetails:()=>Xae,createCompletionDetailsForSymbol:()=>Gae,getCompletionEntriesFromSymbols:()=>Wae,getCompletionEntryDetails:()=>Hae,getCompletionEntrySymbol:()=>Qae,getCompletionsAtPosition:()=>xae,getDefaultCommitCharacters:()=>bae,getPropertiesForObjectExpression:()=>dse,moduleSpecifierResolutionCacheAttemptLimit:()=>sae,moduleSpecifierResolutionLimit:()=>aae});var aae=100,sae=1e3,cae={LocalDeclarationPriority:"10",LocationPriority:"11",OptionalMember:"12",MemberDeclaredBySpreadAssignment:"13",SuggestedClassMembers:"14",GlobalsOrKeywords:"15",AutoImportSuggestions:"16",ClassMemberSnippets:"17",JavascriptIdentifiers:"18",Deprecated:e=>"z"+e,ObjectLiteralProperty:(e,t)=>`${e}\0${t}\0`,SortBelow:e=>e+"1"},lae=[".",",",";"],_ae=[".",";"],uae=(e=>(e.ThisProperty="ThisProperty/",e.ClassMemberSnippet="ClassMemberSnippet/",e.TypeOnlyAlias="TypeOnlyAlias/",e.ObjectLiteralMethodSnippet="ObjectLiteralMethodSnippet/",e.SwitchCases="SwitchCases/",e.ObjectLiteralMemberWithComma="ObjectLiteralMemberWithComma/",e))(uae||{}),dae=(e=>(e[e.ThisType=1]="ThisType",e[e.SymbolMember=2]="SymbolMember",e[e.Export=4]="Export",e[e.Promise=8]="Promise",e[e.Nullable=16]="Nullable",e[e.ResolvedExport=32]="ResolvedExport",e[e.TypeOnlyAlias=64]="TypeOnlyAlias",e[e.ObjectLiteralMethod=128]="ObjectLiteralMethod",e[e.Ignore=256]="Ignore",e[e.ComputedPropertyName=512]="ComputedPropertyName",e[e.SymbolMemberNoExport=2]="SymbolMemberNoExport",e[e.SymbolMemberExport=6]="SymbolMemberExport",e))(dae||{});function pae(e){return!!(e&&4&e.kind)}function fae(e){return!(!e||32!==e.kind)}function mae(e){return(pae(e)||fae(e))&&!!e.isFromPackageJson}function gae(e){return!!(e&&64&e.kind)}function hae(e){return!!(e&&128&e.kind)}function yae(e){return!!(e&&512&e.kind)}function vae(e,t,n,r,i,o,a,s,c){var l,_,u,d;const p=Un(),f=a||Tk(r.getCompilerOptions())||(null==(l=o.autoImportSpecifierExcludeRegexes)?void 0:l.length);let m=!1,g=0,h=0,y=0,v=0;const b=c({tryResolve:function(e,t){if(t){const t=n.getModuleSpecifierForBestExportInfo(e,i,s);return t&&g++,t||"failed"}const r=f||o.allowIncompleteCompletions&&hm,resolvedAny:()=>h>0,resolvedBeyondLimit:()=>h>aae}),x=v?` (${(y/v*100).toFixed(1)}% hit rate)`:"";return null==(_=t.log)||_.call(t,`${e}: resolved ${h} module specifiers, plus ${g} ambient and ${y} from cache${x}`),null==(u=t.log)||u.call(t,`${e}: response is ${m?"incomplete":"complete"}`),null==(d=t.log)||d.call(t,`${e}: ${Un()-p}`),b}function bae(e){return e?[]:lae}function xae(e,t,n,r,i,o,a,s,c,l,_=!1){var u;const{previousToken:d}=tse(i,r);if(a&&!JX(r,i,d)&&!function(e,t,n,r){switch(t){case".":case"@":return!0;case'"':case"'":case"`":return!!n&&rZ(n)&&r===n.getStart(e)+1;case"#":return!!n&&qN(n)&&!!Gf(n);case"<":return!!n&&30===n.kind&&(!cF(n.parent)||hse(n.parent));case"/":return!!n&&(Lu(n)?!!vg(n):44===n.kind&&CE(n.parent));case" ":return!!n&&eD(n)&&307===n.parent.kind;default:return un.assertNever(t)}}(r,a,d,i))return;if(" "===a)return o.includeCompletionsForImportStatements&&o.includeCompletionsWithInsertText?{isGlobalCompletion:!0,isMemberCompletion:!1,isNewIdentifierLocation:!0,isIncomplete:!0,entries:[],defaultCommitCharacters:bae(!0)}:void 0;const p=t.getCompilerOptions(),f=t.getTypeChecker(),m=o.allowIncompleteCompletions?null==(u=e.getIncompleteCompletionsCache)?void 0:u.call(e):void 0;if(m&&3===s&&d&&zN(d)){const n=function(e,t,n,r,i,o,a,s){const c=e.get();if(!c)return;const l=FX(t,s),_=n.text.toLowerCase(),u=s0(t,i,r,o,a),d=vae("continuePreviousIncompleteResponse",i,f7.createImportSpecifierResolver(t,r,i,o),r,n.getStart(),o,!1,yT(n),(e=>{const n=B(c.entries,(n=>{var o;if(!n.hasAction||!n.source||!n.data||Sae(n.data))return n;if(!Nse(n.name,_))return;const{origin:a}=un.checkDefined(nse(n.name,n.data,r,i)),s=u.get(t.path,n.data.exportMapKey),c=s&&e.tryResolve(s,!Ts(Dy(a.moduleSymbol.name)));if("skipped"===c)return n;if(!c||"failed"===c)return void(null==(o=i.log)||o.call(i,`Unexpected failure resolving auto import for '${n.name}' from '${n.source}'`));const l={...a,kind:32,moduleSpecifier:c.moduleSpecifier};return n.data=Jae(l),n.source=Vae(l),n.sourceDisplay=[mY(l.moduleSpecifier)],n}));return e.skippedAny()||(c.isIncomplete=void 0),n}));return c.entries=d,c.flags=4|(c.flags||0),c.optionalReplacementSpan=Fae(l),c}(m,r,d,t,e,o,c,i);if(n)return n}else null==m||m.clear();const g=Dse.getStringLiteralCompletions(r,i,d,p,e,t,n,o,_);if(g)return g;if(d&&Tl(d.parent)&&(83===d.kind||88===d.kind||80===d.kind))return function(e){const t=function(e){const t=[],n=new Map;let r=e;for(;r&&!n_(r);){if(JF(r)){const e=r.label.text;n.has(e)||(n.set(e,!0),t.push({name:e,kindModifiers:"",kind:"label",sortText:cae.LocationPriority}))}r=r.parent}return t}(e);if(t.length)return{isGlobalCompletion:!1,isMemberCompletion:!1,isNewIdentifierLocation:!1,entries:t,defaultCommitCharacters:bae(!1)}}(d.parent);const h=ese(t,n,r,p,i,o,void 0,e,l,c);var y,v;if(h)switch(h.kind){case 0:const a=function(e,t,n,r,i,o,a,s,c,l){const{symbols:_,contextToken:u,completionKind:d,isInSnippetScope:p,isNewIdentifierLocation:f,location:m,propertyAccessToConvert:g,keywordFilters:h,symbolToOriginInfoMap:y,recommendedCompletion:v,isJsxInitializer:b,isTypeOnlyLocation:x,isJsxIdentifierExpected:k,isRightOfOpenTag:S,isRightOfDotOrQuestionDot:T,importStatementCompletion:C,insideJsDocTagTypeExpression:w,symbolToSortTextMap:N,hasUnresolvedAutoImports:D,defaultCommitCharacters:F}=o;let E=o.literals;const P=n.getTypeChecker();if(1===ck(e.scriptKind)){const t=function(e,t){const n=_c(e,(e=>{switch(e.kind){case 287:return!0;case 44:case 32:case 80:case 211:return!1;default:return"quit"}}));if(n){const e=!!yX(n,32,t),r=n.parent.openingElement.tagName.getText(t)+(e?"":">");return{isGlobalCompletion:!1,isMemberCompletion:!0,isNewIdentifierLocation:!1,optionalReplacementSpan:pQ(n.tagName),entries:[{name:r,kind:"class",kindModifiers:void 0,sortText:cae.LocationPriority}],defaultCommitCharacters:bae(!1)}}}(m,e);if(t)return t}const A=_c(u,OE);if(A&&(tD(u)||sh(u,A.expression))){const e=HZ(P,A.parent.clauses);E=E.filter((t=>!e.hasValue(t))),_.forEach(((t,n)=>{if(t.valueDeclaration&&zE(t.valueDeclaration)){const r=P.getConstantValue(t.valueDeclaration);void 0!==r&&e.hasValue(r)&&(y[n]={kind:256})}}))}const I=[],O=Eae(e,r);if(O&&!f&&(!_||0===_.length)&&0===h)return;const L=Wae(_,I,void 0,u,m,c,e,t,n,hk(r),i,d,a,r,s,x,g,k,b,C,v,y,N,k,S,l);if(0!==h)for(const t of ase(h,!w&&Dm(e)))(x&&xQ(Fa(t.name))||!x&&("abstract"===(j=t.name)||"async"===j||"await"===j||"declare"===j||"module"===j||"namespace"===j||"type"===j||"satisfies"===j||"as"===j)||!L.has(t.name))&&(L.add(t.name),Z(I,t,kae,void 0,!0));var j;for(const e of function(e,t){const n=[];if(e){const r=e.getSourceFile(),i=e.parent,o=r.getLineAndCharacterOfPosition(e.end).line,a=r.getLineAndCharacterOfPosition(t).line;(nE(i)||fE(i)&&i.moduleSpecifier)&&e===i.moduleSpecifier&&o===a&&n.push({name:Da(132),kind:"keyword",kindModifiers:"",sortText:cae.GlobalsOrKeywords})}return n}(u,c))L.has(e.name)||(L.add(e.name),Z(I,e,kae,void 0,!0));for(const t of E){const n=jae(e,a,t);L.add(n.name),Z(I,n,kae,void 0,!0)}let R;if(O||function(e,t,n,r,i){z8(e).forEach(((e,o)=>{if(e===t)return;const a=fc(o);!n.has(a)&&fs(a,r)&&(n.add(a),Z(i,{name:a,kind:"warning",kindModifiers:"",sortText:cae.JavascriptIdentifiers,isFromUncheckedFile:!0,commitCharacters:[]},kae))}))}(e,m.pos,L,hk(r),I),a.includeCompletionsWithInsertText&&u&&!S&&!T&&(R=_c(u,ZF))){const i=Pae(R,e,a,r,t,n,s);i&&I.push(i.entry)}return{flags:o.flags,isGlobalCompletion:p,isIncomplete:!(!a.allowIncompleteCompletions||!D)||void 0,isMemberCompletion:Oae(d),isNewIdentifierLocation:f,optionalReplacementSpan:Fae(m),entries:I,defaultCommitCharacters:F??bae(f)}}(r,e,t,p,n,h,o,l,i,_);return(null==a?void 0:a.isIncomplete)&&(null==m||m.set(a)),a;case 1:return Tae([...fle.getJSDocTagNameCompletions(),...Cae(r,i,f,p,o,!0)]);case 2:return Tae([...fle.getJSDocTagCompletions(),...Cae(r,i,f,p,o,!1)]);case 3:return Tae(fle.getJSDocParameterNameCompletions(h.tag));case 4:return y=h.keywordCompletions,{isGlobalCompletion:!1,isMemberCompletion:!1,isNewIdentifierLocation:v=h.isNewIdentifierLocation,entries:y.slice(),defaultCommitCharacters:bae(v)};default:return un.assertNever(h)}}function kae(e,t){var n,r;let i=At(e.sortText,t.sortText);return 0===i&&(i=At(e.name,t.name)),0===i&&(null==(n=e.data)?void 0:n.moduleSpecifier)&&(null==(r=t.data)?void 0:r.moduleSpecifier)&&(i=BS(e.data.moduleSpecifier,t.data.moduleSpecifier)),0===i?-1:i}function Sae(e){return!!(null==e?void 0:e.moduleSpecifier)}function Tae(e){return{isGlobalCompletion:!1,isMemberCompletion:!1,isNewIdentifierLocation:!1,entries:e,defaultCommitCharacters:bae(!1)}}function Cae(e,t,n,r,i,o){const a=PX(e,t);if(!Tu(a)&&!iP(a))return[];const s=iP(a)?a:a.parent;if(!iP(s))return[];const c=s.parent;if(!n_(c))return[];const l=Dm(e),_=i.includeCompletionsWithSnippetText||void 0,u=w(s.tags,(e=>bP(e)&&e.getEnd()<=t));return B(c.parameters,(e=>{if(!Fc(e).length){if(zN(e.name)){const t={tabstop:1},a=e.name.text;let s=Nae(a,e.initializer,e.dotDotDotToken,l,!1,!1,n,r,i),c=_?Nae(a,e.initializer,e.dotDotDotToken,l,!1,!0,n,r,i,t):void 0;return o&&(s=s.slice(1),c&&(c=c.slice(1))),{name:s,kind:"parameter",sortText:cae.LocationPriority,insertText:_?c:void 0,isSnippet:_}}if(e.parent.parameters.indexOf(e)===u){const t=`param${u}`,a=wae(t,e.name,e.initializer,e.dotDotDotToken,l,!1,n,r,i),s=_?wae(t,e.name,e.initializer,e.dotDotDotToken,l,!0,n,r,i):void 0;let c=a.join(Eb(r)+"* "),d=null==s?void 0:s.join(Eb(r)+"* ");return o&&(c=c.slice(1),d&&(d=d.slice(1))),{name:c,kind:"parameter",sortText:cae.LocationPriority,insertText:_?d:void 0,isSnippet:_}}}}))}function wae(e,t,n,r,i,o,a,s,c){return i?l(e,t,n,r,{tabstop:1}):[Nae(e,n,r,i,!1,o,a,s,c,{tabstop:1})];function l(e,t,n,r,l){if(qD(t)&&!r){const u={tabstop:l.tabstop},d=Nae(e,n,r,i,!0,o,a,s,c,u);let p=[];for(const n of t.elements){const t=_(e,n,u);if(!t){p=void 0;break}p.push(...t)}if(p)return l.tabstop=u.tabstop,[d,...p]}return[Nae(e,n,r,i,!1,o,a,s,c,l)]}function _(e,t,n){if(!t.propertyName&&zN(t.name)||zN(t.name)){const r=t.propertyName?Ip(t.propertyName):t.name.text;if(!r)return;return[Nae(`${e}.${r}`,t.initializer,t.dotDotDotToken,i,!1,o,a,s,c,n)]}if(t.propertyName){const r=Ip(t.propertyName);return r&&l(`${e}.${r}`,t.name,t.initializer,t.dotDotDotToken,n)}}}function Nae(e,t,n,r,i,o,a,s,c,l){if(o&&un.assertIsDefined(l),t&&(e=function(e,t){const n=t.getText().trim();return n.includes("\n")||n.length>80?`[${e}]`:`[${e}=${n}]`}(e,t)),o&&(e=RT(e)),r){let r="*";if(i)un.assert(!n,"Cannot annotate a rest parameter with type 'Object'."),r="Object";else{if(t){const e=a.getTypeAtLocation(t.parent);if(!(16385&e.flags)){const n=t.getSourceFile(),i=0===BQ(n,c)?268435456:0,l=a.typeToTypeNode(e,_c(t,n_),i);if(l){const e=o?Bae({removeComments:!0,module:s.module,moduleResolution:s.moduleResolution,target:s.target}):rU({removeComments:!0,module:s.module,moduleResolution:s.moduleResolution,target:s.target});nw(l,1),r=e.printNode(4,l,n)}}}o&&"*"===r&&(r=`\${${l.tabstop++}:${r}}`)}return`@param {${!i&&n?"...":""}${r}} ${e} ${o?`\${${l.tabstop++}}`:""}`}return`@param ${e} ${o?`\${${l.tabstop++}}`:""}`}function Dae(e,t,n){return{kind:4,keywordCompletions:ase(e,t),isNewIdentifierLocation:n}}function Fae(e){return 80===(null==e?void 0:e.kind)?pQ(e):void 0}function Eae(e,t){return!Dm(e)||!!eT(e,t)}function Pae(e,t,n,r,i,o,a){const s=e.clauses,c=o.getTypeChecker(),l=c.getTypeAtLocation(e.parent.expression);if(l&&l.isUnion()&&v(l.types,(e=>e.isLiteral()))){const _=HZ(c,s),u=hk(r),d=BQ(t,n),p=f7.createImportAdder(t,o,n,i),f=[];for(const t of l.types)if(1024&t.flags){un.assert(t.symbol,"An enum member type should have a symbol"),un.assert(t.symbol.parent,"An enum member type should have a parent symbol (the enum symbol)");const n=t.symbol.valueDeclaration&&c.getConstantValue(t.symbol.valueDeclaration);if(void 0!==n){if(_.hasValue(n))continue;_.addValue(n)}const r=f7.typeToAutoImportableTypeNode(c,p,t,e,u);if(!r)return;const i=Aae(r,u,d);if(!i)return;f.push(i)}else if(!_.hasValue(t.value))switch(typeof t.value){case"object":f.push(t.value.negative?XC.createPrefixUnaryExpression(41,XC.createBigIntLiteral({negative:!1,base10Value:t.value.base10Value})):XC.createBigIntLiteral(t.value));break;case"number":f.push(t.value<0?XC.createPrefixUnaryExpression(41,XC.createNumericLiteral(-t.value)):XC.createNumericLiteral(t.value));break;case"string":f.push(XC.createStringLiteral(t.value,0===d))}if(0===f.length)return;const m=E(f,(e=>XC.createCaseClause(e,[]))),g=kY(i,null==a?void 0:a.options),h=Bae({removeComments:!0,module:r.module,moduleResolution:r.moduleResolution,target:r.target,newLine:qZ(g)}),y=a?e=>h.printAndFormatNode(4,e,t,a):e=>h.printNode(4,e,t),v=E(m,((e,t)=>n.includeCompletionsWithSnippetText?`${y(e)}$${t+1}`:`${y(e)}`)).join(g);return{entry:{name:`${h.printNode(4,m[0],t)} ...`,kind:"",sortText:cae.GlobalsOrKeywords,insertText:v,hasAction:p.hasFixes()||void 0,source:"SwitchCases/",isSnippet:!!n.includeCompletionsWithSnippetText||void 0},importAdder:p}}}function Aae(e,t,n){switch(e.kind){case 183:return Iae(e.typeName,t,n);case 199:const r=Aae(e.objectType,t,n),i=Aae(e.indexType,t,n);return r&&i&&XC.createElementAccessExpression(r,i);case 201:const o=e.literal;switch(o.kind){case 11:return XC.createStringLiteral(o.text,0===n);case 9:return XC.createNumericLiteral(o.text,o.numericLiteralFlags)}return;case 196:const a=Aae(e.type,t,n);return a&&(zN(a)?a:XC.createParenthesizedExpression(a));case 186:return Iae(e.exprName,t,n);case 205:un.fail("We should not get an import type after calling 'codefix.typeToAutoImportableTypeNode'.")}}function Iae(e,t,n){if(zN(e))return e;const r=fc(e.right.escapedText);return WT(r,t)?XC.createPropertyAccessExpression(Iae(e.left,t,n),r):XC.createElementAccessExpression(Iae(e.left,t,n),XC.createStringLiteral(r,0===n))}function Oae(e){switch(e){case 0:case 3:case 2:return!0;default:return!1}}function Lae(e,t,n){return"object"==typeof n?fT(n)+"n":Ze(n)?tZ(e,t,n):JSON.stringify(n)}function jae(e,t,n){return{name:Lae(e,t,n),kind:"string",kindModifiers:"",sortText:cae.LocationPriority,commitCharacters:[]}}function Rae(e,t,n,r,i,o,a,s,c,l,_,u,d,p,f,m,g,h,y,x,k,S,T,C){var w,N;let D,F,E,P,A,I,O,L=dQ(n,o),j=Vae(u);const R=c.getTypeChecker(),M=u&&function(e){return!!(16&e.kind)}(u),B=u&&function(e){return!!(2&e.kind)}(u)||_;if(u&&function(e){return!!(1&e.kind)}(u))D=_?`this${M?"?.":""}[${qae(a,y,l)}]`:`this${M?"?.":"."}${l}`;else if((B||M)&&p){D=B?_?`[${qae(a,y,l)}]`:`[${l}]`:l,(M||p.questionDotToken)&&(D=`?.${D}`);const e=yX(p,25,a)||yX(p,29,a);if(!e)return;const t=Gt(l,p.name.text)?p.name.end:e.end;L=Ws(e.getStart(a),t)}if(f&&(void 0===D&&(D=l),D=`{${D}}`,"boolean"!=typeof f&&(L=pQ(f,a))),u&&function(e){return!!(8&e.kind)}(u)&&p){void 0===D&&(D=l);const e=jX(p.pos,a);let t="";e&&pZ(e.end,e.parent,a)&&(t=";"),t+=`(await ${p.expression.getText()})`,D=_?`${t}${D}`:`${t}${M?"?.":"."}${D}`,L=Ws((tt(p.parent,oF)?p.parent:p.expression).getStart(a),p.end)}if(fae(u)&&(A=[mY(u.moduleSpecifier)],m&&(({insertText:D,replacementSpan:L}=function(e,t,n,r,i,o,a){const s=t.replacementSpan,c=RT(tZ(i,a,n.moduleSpecifier)),l=n.isDefaultExport?1:"export="===n.exportName?2:0,_=a.includeCompletionsWithSnippetText?"$1":"",u=f7.getImportKind(i,l,o,!0),d=t.couldBeTypeOnlyImportSpecifier,p=t.isTopLevelTypeOnly?` ${Da(156)} `:" ",f=d?`${Da(156)} `:"",m=r?";":"";switch(u){case 3:return{replacementSpan:s,insertText:`import${p}${RT(e)}${_} = require(${c})${m}`};case 1:return{replacementSpan:s,insertText:`import${p}${RT(e)}${_} from ${c}${m}`};case 2:return{replacementSpan:s,insertText:`import${p}* as ${RT(e)} from ${c}${m}`};case 0:return{replacementSpan:s,insertText:`import${p}{ ${f}${RT(e)}${_} } from ${c}${m}`}}}(l,m,u,g,a,c,y)),P=!!y.includeCompletionsWithSnippetText||void 0)),64===(null==u?void 0:u.kind)&&(I=!0),0===x&&r&&28!==(null==(w=jX(r.pos,a,r))?void 0:w.kind)&&(_D(r.parent.parent)||pD(r.parent.parent)||fD(r.parent.parent)||JE(r.parent)||(null==(N=_c(r.parent,ME))?void 0:N.getLastToken(a))===r||BE(r.parent)&&Ja(a,r.getEnd()).line!==Ja(a,o).line)&&(j="ObjectLiteralMemberWithComma/",I=!0),y.includeCompletionsWithClassMemberSnippets&&y.includeCompletionsWithInsertText&&3===x&&function(e,t,n){if(Fm(t))return!1;return!!(106500&e.flags)&&(__(t)||t.parent&&t.parent.parent&&l_(t.parent)&&t===t.parent.name&&t.parent.getLastToken(n)===t.parent.name&&__(t.parent.parent)||t.parent&&AP(t)&&__(t.parent))}(e,i,a)){let t;const n=Mae(s,c,h,y,l,e,i,o,r,k);if(!n)return;({insertText:D,filterText:F,isSnippet:P,importAdder:t}=n),((null==t?void 0:t.hasFixes())||n.eraseRange)&&(I=!0,j="ClassMemberSnippet/")}if(u&&hae(u)&&(({insertText:D,isSnippet:P,labelDetails:O}=u),y.useLabelDetailsInCompletionEntries||(l+=O.detail,O=void 0),j="ObjectLiteralMethodSnippet/",t=cae.SortBelow(t)),S&&!T&&y.includeCompletionsWithSnippetText&&y.jsxAttributeCompletionStyle&&"none"!==y.jsxAttributeCompletionStyle&&(!FE(i.parent)||!i.parent.initializer)){let t="braces"===y.jsxAttributeCompletionStyle;const n=R.getTypeOfSymbolAtLocation(e,i);"auto"!==y.jsxAttributeCompletionStyle||528&n.flags||1048576&n.flags&&b(n.types,(e=>!!(528&e.flags)))||(402653316&n.flags||1048576&n.flags&&v(n.types,(e=>!!(402686084&e.flags||iQ(e))))?(D=`${RT(l)}=${tZ(a,y,"$1")}`,P=!0):t=!0),t&&(D=`${RT(l)}={$1}`,P=!0)}if(void 0!==D&&!y.includeCompletionsWithInsertText)return;(pae(u)||fae(u))&&(E=Jae(u),I=!m);const J=_c(i,Tx);if(J){const e=hk(s.getCompilationSettings());if(fs(l,e)){if(275===J.kind){const e=Fa(l);e&&(135===e||Dh(e))&&(D=`${l} as ${l}_`)}}else D=qae(a,y,l),275===J.kind&&(wG.setText(a.text),wG.resetTokenState(o),130===wG.scan()&&80===wG.scan()||(D+=" as "+function(e,t){let n,r=!1,i="";for(let o=0;o=65536?2:1)n=e.codePointAt(o),void 0!==n&&(0===o?ds(n,t):ps(n,t))?(r&&(i+="_"),i+=String.fromCodePoint(n),r=!1):r=!0;return r&&(i+="_"),i||"_"}(l,e)))}const z=mue.getSymbolKind(R,e,i),q="warning"===z||"string"===z?[]:void 0;return{name:l,kind:z,kindModifiers:mue.getSymbolModifiers(R,e),sortText:t,source:j,hasAction:!!I||void 0,isRecommended:Uae(e,d,R)||void 0,insertText:D,filterText:F,replacementSpan:L,sourceDisplay:A,labelDetails:O,isSnippet:P,isPackageJsonImport:mae(u)||void 0,isImportStatementCompletion:!!m||void 0,data:E,commitCharacters:q,...C?{symbol:e}:void 0}}function Mae(e,t,n,r,i,o,a,s,c,l){const _=_c(a,__);if(!_)return;let u,d=i;const p=i,f=t.getTypeChecker(),m=a.getSourceFile(),g=Bae({removeComments:!0,module:n.module,moduleResolution:n.moduleResolution,target:n.target,omitTrailingSemicolon:!1,newLine:qZ(kY(e,null==l?void 0:l.options))}),h=f7.createImportAdder(m,t,r,e);let y;if(r.includeCompletionsWithSnippetText){u=!0;const e=XC.createEmptyStatement();y=XC.createBlock([e],!0),Fw(e,{kind:0,order:0})}else y=XC.createBlock([],!0);let v=0;const{modifiers:b,range:x,decorators:k}=function(e,t,n){if(!e||Ja(t,n).line>Ja(t,e.getEnd()).line)return{modifiers:0};let r,i,o=0;const a={pos:n,end:n};if(cD(e.parent)&&(i=function(e){if(Yl(e))return e.kind;if(zN(e)){const t=gc(e);if(t&&Gl(t))return t}}(e))){e.parent.modifiers&&(o|=98303&Wv(e.parent.modifiers),r=e.parent.modifiers.filter(aD)||[],a.pos=Math.min(...e.parent.modifiers.map((e=>e.getStart(t)))));const n=$v(i);o&n||(o|=n,a.pos=Math.min(a.pos,e.getStart(t))),e.parent.name!==e&&(a.end=e.parent.name.getStart(t))}return{modifiers:o,decorators:r,range:a.pos{let t=0;S&&(t|=64),l_(e)&&1===f.getMemberOverrideModifierStatus(_,e,o)&&(t|=16),T.length||(v=e.modifierFlagsCache|t),e=XC.replaceModifiers(e,v),T.push(e)}),y,f7.PreserveOptionalFlags.Property,!!S),T.length){const e=8192&o.flags;let t=17|v;t|=e?1024:136;const n=b&t;if(b&~t)return;if(4&v&&1&n&&(v&=-5),0===n||1&n||(v&=-2),v|=n,T=T.map((e=>XC.replaceModifiers(e,v))),null==k?void 0:k.length){const e=T[T.length-1];iI(e)&&(T[T.length-1]=XC.replaceDecoratorsAndModifiers(e,k.concat(Nc(e)||[])))}const r=131073;d=l?g.printAndFormatSnippetList(r,XC.createNodeArray(T),m,l):g.printSnippetList(r,XC.createNodeArray(T),m)}return{insertText:d,filterText:p,isSnippet:u,importAdder:h,eraseRange:x}}function Bae(e){let t;const n=Tue.createWriter(Eb(e)),r=rU(e,n),i={...n,write:e=>o(e,(()=>n.write(e))),nonEscapingWrite:n.write,writeLiteral:e=>o(e,(()=>n.writeLiteral(e))),writeStringLiteral:e=>o(e,(()=>n.writeStringLiteral(e))),writeSymbol:(e,t)=>o(e,(()=>n.writeSymbol(e,t))),writeParameter:e=>o(e,(()=>n.writeParameter(e))),writeComment:e=>o(e,(()=>n.writeComment(e))),writeProperty:e=>o(e,(()=>n.writeProperty(e)))};return{printSnippetList:function(e,n,r){const i=a(e,n,r);return t?Tue.applyChanges(i,t):i},printAndFormatSnippetList:function(e,n,r,i){const o={text:a(e,n,r),getLineAndCharacterOfPosition(e){return Ja(this,e)}},s=VZ(i,r),c=O(n,(e=>{const t=Tue.assignPositionsToNode(e);return Zue.formatNodeGivenIndentation(t,o,r.languageVariant,0,0,{...i,options:s})})),l=t?_e(K(c,t),((e,t)=>bt(e.span,t.span))):c;return Tue.applyChanges(o.text,l)},printNode:function(e,n,r){const i=s(e,n,r);return t?Tue.applyChanges(i,t):i},printAndFormatNode:function(e,n,r,i){const o={text:s(e,n,r),getLineAndCharacterOfPosition(e){return Ja(this,e)}},a=VZ(i,r),c=Tue.assignPositionsToNode(n),l=Zue.formatNodeGivenIndentation(c,o,r.languageVariant,0,0,{...i,options:a}),_=t?_e(K(l,t),((e,t)=>bt(e.span,t.span))):l;return Tue.applyChanges(o.text,_)}};function o(e,r){const i=RT(e);if(i!==e){const e=n.getTextPos();r();const o=n.getTextPos();t=ie(t||(t=[]),{newText:i,span:{start:e,length:o-e}})}else r()}function a(e,n,o){return t=void 0,i.clear(),r.writeList(e,n,o,i),i.getText()}function s(e,n,o){return t=void 0,i.clear(),r.writeNode(e,n,o,i),i.getText()}}function Jae(e){const t=e.fileName?void 0:Dy(e.moduleSymbol.name),n=!!e.isFromPackageJson||void 0;return fae(e)?{exportName:e.exportName,exportMapKey:e.exportMapKey,moduleSpecifier:e.moduleSpecifier,ambientModuleName:t,fileName:e.fileName,isPackageJsonImport:n}:{exportName:e.exportName,exportMapKey:e.exportMapKey,fileName:e.fileName,ambientModuleName:e.fileName?void 0:Dy(e.moduleSymbol.name),isPackageJsonImport:!!e.isFromPackageJson||void 0}}function zae(e,t,n){const r="default"===e.exportName,i=!!e.isPackageJsonImport;return Sae(e)?{kind:32,exportName:e.exportName,exportMapKey:e.exportMapKey,moduleSpecifier:e.moduleSpecifier,symbolName:t,fileName:e.fileName,moduleSymbol:n,isDefaultExport:r,isFromPackageJson:i}:{kind:4,exportName:e.exportName,exportMapKey:e.exportMapKey,symbolName:t,fileName:e.fileName,moduleSymbol:n,isDefaultExport:r,isFromPackageJson:i}}function qae(e,t,n){return/^\d+$/.test(n)?n:tZ(e,t,n)}function Uae(e,t,n){return e===t||!!(1048576&e.flags)&&n.getExportSymbolOfSymbol(e)===t}function Vae(e){return pae(e)?Dy(e.moduleSymbol.name):fae(e)?e.moduleSpecifier:1===(null==e?void 0:e.kind)?"ThisProperty/":64===(null==e?void 0:e.kind)?"TypeOnlyAlias/":void 0}function Wae(e,t,n,r,i,o,a,s,c,l,_,u,d,p,f,m,g,h,y,v,b,x,k,S,T,C=!1){const w=Un(),N=function(e,t){if(!e)return;let n=_c(e,(e=>Rf(e)||Tse(e)||x_(e)?"quit":(oD(e)||iD(e))&&!hD(e.parent)));return n||(n=_c(t,(e=>Rf(e)||Tse(e)||x_(e)?"quit":VF(e)))),n}(r,i),D=fZ(a),F=c.getTypeChecker(),E=new Map;for(let _=0;_e.getSourceFile()===i.getSourceFile())));E.set(O,M),Z(t,R,kae,void 0,!0)}return _("getCompletionsAtPosition: getCompletionEntriesFromSymbols: "+(Un()-w)),{has:e=>E.has(e),add:e=>E.set(e,!0)};function P(e,t){var n;let o=e.flags;if(!qE(i)){if(pE(i.parent))return!0;if(tt(N,VF)&&e.valueDeclaration===N)return!1;const s=e.valueDeclaration??(null==(n=e.declarations)?void 0:n[0]);if(N&&s)if(oD(N)&&oD(s)){const e=N.parent.parameters;if(s.pos>=N.pos&&s.pos=N.pos&&s.posLae(n,a,e)===i.name));return void 0!==v?{type:"literal",literal:v}:f(l,((e,t)=>{const n=p[t],r=rse(e,hk(s),n,d,c.isJsxIdentifierExpected);return r&&r.name===i.name&&("ClassMemberSnippet/"===i.source&&106500&e.flags||"ObjectLiteralMethodSnippet/"===i.source&&8196&e.flags||Vae(n)===i.source||"ObjectLiteralMemberWithComma/"===i.source)?{type:"symbol",symbol:e,location:u,origin:n,contextToken:m,previousToken:g,isJsxInitializer:h,isTypeOnlyLocation:y}:void 0}))||{type:"none"}}function Hae(e,t,n,r,i,o,a,s,c){const l=e.getTypeChecker(),_=e.getCompilerOptions(),{name:u,source:d,data:p}=i,{previousToken:f,contextToken:m}=tse(r,n);if(JX(n,r,f))return Dse.getStringLiteralCompletionDetails(u,n,r,f,e,o,c,s);const g=$ae(e,t,n,r,i,o,s);switch(g.type){case"request":{const{request:e}=g;switch(e.kind){case 1:return fle.getJSDocTagNameCompletionDetails(u);case 2:return fle.getJSDocTagCompletionDetails(u);case 3:return fle.getJSDocParameterNameCompletionDetails(u);case 4:return $(e.keywordCompletions,(e=>e.name===u))?Kae(u,"keyword",5):void 0;default:return un.assertNever(e)}}case"symbol":{const{symbol:t,location:i,contextToken:f,origin:m,previousToken:h}=g,{codeActions:y,sourceDisplay:v}=function(e,t,n,r,i,o,a,s,c,l,_,u,d,p,f,m){if((null==p?void 0:p.moduleSpecifier)&&_&&yse(n||_,c).replacementSpan)return{codeActions:void 0,sourceDisplay:[mY(p.moduleSpecifier)]};if("ClassMemberSnippet/"===f){const{importAdder:r,eraseRange:_}=Mae(a,o,s,d,e,i,t,l,n,u);if((null==r?void 0:r.hasFixes())||_)return{sourceDisplay:void 0,codeActions:[{changes:Tue.ChangeTracker.with({host:a,formatContext:u,preferences:d},(e=>{r&&r.writeFixes(e),_&&e.deleteRange(c,_)})),description:(null==r?void 0:r.hasFixes())?UZ([la.Includes_imports_of_types_referenced_by_0,e]):UZ([la.Update_modifiers_of_0,e])}]}}if(gae(r)){const e=f7.getPromoteTypeOnlyCompletionAction(c,r.declaration.name,o,a,u,d);return un.assertIsDefined(e,"Expected to have a code action for promoting type-only alias"),{codeActions:[e],sourceDisplay:void 0}}if("ObjectLiteralMemberWithComma/"===f&&n){const t=Tue.ChangeTracker.with({host:a,formatContext:u,preferences:d},(e=>e.insertText(c,n.end,",")));if(t)return{sourceDisplay:void 0,codeActions:[{changes:t,description:UZ([la.Add_missing_comma_for_object_member_completion_0,e])}]}}if(!r||!pae(r)&&!fae(r))return{codeActions:void 0,sourceDisplay:void 0};const g=r.isFromPackageJson?a.getPackageJsonAutoImportProvider().getTypeChecker():o.getTypeChecker(),{moduleSymbol:h}=r,y=g.getMergedSymbol(ix(i.exportSymbol||i,g)),v=30===(null==n?void 0:n.kind)&&vu(n.parent),{moduleSpecifier:b,codeAction:x}=f7.getImportCompletionAction(y,h,null==p?void 0:p.exportMapKey,c,e,v,a,o,u,_&&zN(_)?_.getStart(c):l,d,m);return un.assert(!(null==p?void 0:p.moduleSpecifier)||b===p.moduleSpecifier),{sourceDisplay:[mY(b)],codeActions:[x]}}(u,i,f,m,t,e,o,_,n,r,h,a,s,p,d,c);return Gae(t,yae(m)?m.symbolName:t.name,l,n,i,c,y,v)}case"literal":{const{literal:e}=g;return Kae(Lae(n,s,e),"string","string"==typeof e?8:7)}case"cases":{const t=Pae(m.parent,n,s,e.getCompilerOptions(),o,e,void 0);if(null==t?void 0:t.importAdder.hasFixes()){const{entry:e,importAdder:n}=t,r=Tue.ChangeTracker.with({host:o,formatContext:a,preferences:s},n.writeFixes);return{name:e.name,kind:"",kindModifiers:"",displayParts:[],sourceDisplay:void 0,codeActions:[{changes:r,description:UZ([la.Includes_imports_of_types_referenced_by_0,u])}]}}return{name:u,kind:"",kindModifiers:"",displayParts:[],sourceDisplay:void 0}}case"none":return ose().some((e=>e.name===u))?Kae(u,"keyword",5):void 0;default:un.assertNever(g)}}function Kae(e,t,n){return Xae(e,"",t,[sY(e,n)])}function Gae(e,t,n,r,i,o,a,s){const{displayParts:c,documentation:l,symbolKind:_,tags:u}=n.runWithCancellationToken(o,(t=>mue.getSymbolDisplayPartsDocumentationAndSymbolKind(t,e,r,i,i,7)));return Xae(t,mue.getSymbolModifiers(n,e),_,c,l,u,a,s)}function Xae(e,t,n,r,i,o,a,s){return{name:e,kindModifiers:t,kind:n,displayParts:r,documentation:i,tags:o,codeActions:a,source:s,sourceDisplay:s}}function Qae(e,t,n,r,i,o,a){const s=$ae(e,t,n,r,i,o,a);return"symbol"===s.type?s.symbol:void 0}var Yae=(e=>(e[e.ObjectPropertyDeclaration=0]="ObjectPropertyDeclaration",e[e.Global=1]="Global",e[e.PropertyAccess=2]="PropertyAccess",e[e.MemberLike=3]="MemberLike",e[e.String=4]="String",e[e.None=5]="None",e))(Yae||{});function Zae(e,t,n){const r=n.getAccessibleSymbolChain(e,t,-1,!1);return r?ge(r):e.parent&&(function(e){var t;return!!(null==(t=e.declarations)?void 0:t.some((e=>307===e.kind)))}(e.parent)?e:Zae(e.parent,t,n))}function ese(e,t,n,r,i,o,a,s,c,l){const _=e.getTypeChecker(),u=Eae(n,r);let p=Un(),m=PX(n,i);t("getCompletionData: Get current token: "+(Un()-p)),p=Un();const g=XX(n,i,m);t("getCompletionData: Is inside comment: "+(Un()-p));let h=!1,y=!1,v=!1;if(g){if(QX(n,i)){if(64===n.text.charCodeAt(i-1))return{kind:1};{const e=oX(i,n);if(!/[^*|\s(/)]/.test(n.text.substring(e,i)))return{kind:2}}}const e=function(e,t){return _c(e,(e=>!(!Tu(e)||!sX(e,t))||!!iP(e)&&"quit"))}(m,i);if(e){if(e.tagName.pos<=i&&i<=e.tagName.end)return{kind:1};if(PP(e))y=!0;else{const t=function(e){if(function(e){switch(e.kind){case 341:case 348:case 342:case 344:case 346:case 349:case 350:return!0;case 345:return!!e.constraint;default:return!1}}(e)){const t=TP(e)?e.constraint:e.typeExpression;return t&&309===t.kind?t:void 0}if(sP(e)||DP(e))return e.class}(e);if(t&&(m=PX(n,i),m&&(ch(m)||348===m.parent.kind&&m.parent.name===m)||(h=he(t))),!h&&bP(e)&&(Cd(e.name)||e.name.pos<=i&&i<=e.name.end))return{kind:3,tag:e}}}if(!h&&!y)return void t("Returning an empty list because completion was inside a regular comment or plain text part of a JsDoc comment.")}p=Un();const x=!h&&!y&&Dm(n),k=tse(i,n),S=k.previousToken;let T=k.contextToken;t("getCompletionData: Get previous token: "+(Un()-p));let C,w,D,F=m,E=!1,P=!1,A=!1,I=!1,L=!1,j=!1,R=FX(n,i),M=0,J=!1,z=0;if(T){const e=yse(T,n);if(e.keywordCompletion){if(e.isKeywordOnlyCompletion)return{kind:4,keywordCompletions:[(q=e.keywordCompletion,{name:Da(q),kind:"keyword",kindModifiers:"",sortText:cae.GlobalsOrKeywords})],isNewIdentifierLocation:e.isNewIdentifierLocation};M=function(e){if(156===e)return 8;un.fail("Unknown mapping from SyntaxKind to KeywordCompletionFilters")}(e.keywordCompletion)}if(e.replacementSpan&&o.includeCompletionsForImportStatements&&o.includeCompletionsWithInsertText&&(z|=2,w=e,J=e.isNewIdentifierLocation),!e.replacementSpan&&function(e){const r=Un(),o=function(e){return(wN(e)||ql(e))&&(cX(e,i)||i===e.end&&(!!e.isUnterminated||wN(e)))}(e)||function(e){const t=e.parent,r=t.kind;switch(e.kind){case 28:return 260===r||261===(o=e).parent.kind&&!HX(o,n,_)||243===r||266===r||pe(r)||264===r||207===r||265===r||__(t)&&!!t.typeParameters&&t.typeParameters.end>=e.pos;case 25:case 23:return 207===r;case 59:return 208===r;case 21:return 299===r||pe(r);case 19:return 266===r;case 30:return 263===r||231===r||264===r||265===r||s_(r);case 126:return 172===r&&!__(t.parent);case 26:return 169===r||!!t.parent&&207===t.parent.kind;case 125:case 123:case 124:return 169===r&&!dD(t.parent);case 130:return 276===r||281===r||274===r;case 139:case 153:return!gse(e);case 80:if((276===r||281===r)&&e===t.name&&"type"===e.text)return!1;if(_c(e.parent,VF)&&function(e,t){return n.getLineEndOfPosition(e.getEnd())S.end))}(e)||function(e){if(9===e.kind){const t=e.getFullText();return"."===t.charAt(t.length-1)}return!1}(e)||function(e){if(12===e.kind)return!0;if(32===e.kind&&e.parent){if(R===e.parent&&(286===R.kind||285===R.kind))return!1;if(286===e.parent.kind)return 286!==R.parent.kind;if(287===e.parent.kind||285===e.parent.kind)return!!e.parent.parent&&284===e.parent.parent.kind}return!1}(e)||SN(e);return t("getCompletionsAtPosition: isCompletionListBlocker: "+(Un()-r)),o}(T))return t("Returning an empty list because completion was requested in an invalid position."),M?Dae(M,x,_e().isNewIdentifierLocation):void 0;let r=T.parent;if(25===T.kind||29===T.kind)switch(E=25===T.kind,P=29===T.kind,r.kind){case 211:if(C=r,F=C.expression,Cd(Cx(C))||(GD(F)||n_(F))&&F.end===T.pos&&F.getChildCount(n)&&22!==ve(F.getChildren(n)).kind)return;break;case 166:F=r.left;break;case 267:F=r.name;break;case 205:F=r;break;case 236:F=r.getFirstToken(n),un.assert(102===F.kind||105===F.kind);break;default:return}else if(!w){if(r&&211===r.kind&&(T=r,r=r.parent),m.parent===R)switch(m.kind){case 32:284!==m.parent.kind&&286!==m.parent.kind||(R=m);break;case 44:285===m.parent.kind&&(R=m)}switch(r.kind){case 287:44===T.kind&&(I=!0,R=T);break;case 226:if(!hse(r))break;case 285:case 284:case 286:j=!0,30===T.kind&&(A=!0,R=T);break;case 294:case 293:(20===S.kind||80===S.kind&&291===S.parent.kind)&&(j=!0);break;case 291:if(r.initializer===S&&S.endAQ(t?s.getPackageJsonAutoImportProvider():e,s)));if(E||P)!function(){W=2;const e=_f(F),t=e&&!F.isTypeOf||Tf(F.parent)||HX(T,n,_),r=EG(F);if(Zl(F)||e||HD(F)){const n=QF(F.parent);n&&(J=!0,D=[]);let i=_.getSymbolAtLocation(F);if(i&&(i=ix(i,_),1920&i.flags)){const a=_.getExportsOfModule(i);un.assertEachIsDefined(a,"getExportsOfModule() should all be defined");const s=t=>_.isValidPropertyAccess(e?F:F.parent,t.name),c=e=>Cse(e,_),l=n?e=>{var t;return!!(1920&e.flags)&&!(null==(t=e.declarations)?void 0:t.every((e=>e.parent===F.parent)))}:r?e=>c(e)||s(e):t||h?c:s;for(const e of a)l(e)&&G.push(e);if(!t&&!h&&i.declarations&&i.declarations.some((e=>307!==e.kind&&267!==e.kind&&266!==e.kind))){let e=_.getTypeOfSymbolAtLocation(i,F).getNonOptionalType(),t=!1;if(e.isNullableType()){const n=E&&!P&&!1!==o.includeAutomaticOptionalChainCompletions;(n||P)&&(e=e.getNonNullableType(),n&&(t=!0))}oe(e,!!(65536&F.flags),t)}return}}if(!t||lv(F)){_.tryGetThisTypeAt(F,!1);let e=_.getTypeAtLocation(F).getNonOptionalType();if(t)oe(e.getNonNullableType(),!1,!1);else{let t=!1;if(e.isNullableType()){const n=E&&!P&&!1!==o.includeAutomaticOptionalChainCompletions;(n||P)&&(e=e.getNonNullableType(),n&&(t=!0))}oe(e,!!(65536&F.flags),t)}}}();else if(A)G=_.getJsxIntrinsicTagNamesAt(R),un.assertEachIsDefined(G,"getJsxIntrinsicTagNames() should all be defined"),ce(),W=1,M=0;else if(I){const e=T.parent.parent.openingElement.tagName,t=_.getSymbolAtLocation(e);t&&(G=[t]),W=1,M=0}else if(!ce())return M?Dae(M,x,J):void 0;t("getCompletionData: Semantic work: "+(Un()-U));const ne=S&&function(e,t,n,r){const{parent:i}=e;switch(e.kind){case 80:return eZ(e,r);case 64:switch(i.kind){case 260:return r.getContextualType(i.initializer);case 226:return r.getTypeAtLocation(i.left);case 291:return r.getContextualTypeForJsxAttribute(i);default:return}case 105:return r.getContextualType(i);case 84:const o=tt(i,OE);return o?oZ(o,r):void 0;case 19:return!AE(i)||kE(i.parent)||wE(i.parent)?void 0:r.getContextualTypeForJsxAttribute(i.parent);default:const a=I_e.getArgumentInfoForCompletions(e,t,n,r);return a?r.getContextualTypeForArgumentAtIndex(a.invocation,a.argumentIndex):nZ(e.kind)&&cF(i)&&nZ(i.operatorToken.kind)?r.getTypeAtLocation(i.left):r.getContextualType(e,4)||r.getContextualType(e)}}(S,i,n,_),re=tt(S,Lu)||j?[]:B(ne&&(ne.isUnion()?ne.types:[ne]),(e=>!e.isLiteral()||1024&e.flags?void 0:e.value)),ie=S&&ne&&function(e,t,n){return f(t&&(t.isUnion()?t.types:[t]),(t=>{const r=t&&t.symbol;return r&&424&r.flags&&!px(r)?Zae(r,e,n):void 0}))}(S,ne,_);return{kind:0,symbols:G,completionKind:W,isInSnippetScope:v,propertyAccessToConvert:C,isNewIdentifierLocation:J,location:R,keywordFilters:M,literals:re,symbolToOriginInfoMap:X,recommendedCompletion:ie,previousToken:S,contextToken:T,isJsxInitializer:L,insideJsDocTagTypeExpression:h,symbolToSortTextMap:Q,isTypeOnlyLocation:Z,isJsxIdentifierExpected:j,isRightOfOpenTag:A,isRightOfDotOrQuestionDot:E||P,importStatementCompletion:w,hasUnresolvedAutoImports:H,flags:z,defaultCommitCharacters:D};function oe(e,t,n){e.getStringIndexType()&&(J=!0,D=[]),P&&$(e.getCallSignatures())&&(J=!0,D??(D=lae));const r=205===F.kind?F:F.parent;if(u)for(const t of e.getApparentProperties())_.isValidPropertyAccessForCompletions(r,e,t)&&ae(t,!1,n);else G.push(...N(fse(e,_),(t=>_.isValidPropertyAccessForCompletions(r,e,t))));if(t&&o.includeCompletionsWithInsertText){const t=_.getPromisedTypeOfPromise(e);if(t)for(const e of t.getApparentProperties())_.isValidPropertyAccessForCompletions(r,t,e)&&ae(e,!0,n)}}function ae(t,r,a){var c;const l=f(t.declarations,(e=>tt(Tc(e),rD)));if(l){const r=se(l.expression),a=r&&_.getSymbolAtLocation(r),f=a&&Zae(a,T,_),m=f&&RB(f);if(m&&vx(Y,m)){const t=G.length;G.push(f);const r=f.parent;if(r&&Gu(r)&&_.tryGetMemberInModuleExportsAndProperties(f.name,r)===f){const a=Ts(Dy(r.name))?null==(c=yd(r))?void 0:c.fileName:void 0,{moduleSpecifier:l}=(V||(V=f7.createImportSpecifierResolver(n,e,s,o))).getModuleSpecifierForBestExportInfo([{exportKind:0,moduleFileName:a,isFromPackageJson:!1,moduleSymbol:r,symbol:f,targetFlags:ix(f,_).flags}],i,yT(R))||{};if(l){const e={kind:p(6),moduleSymbol:r,isDefaultExport:!1,symbolName:f.name,exportName:f.name,fileName:a,moduleSpecifier:l};X[t]=e}}else X[t]={kind:p(2)}}else if(o.includeCompletionsWithInsertText){if(m&&Y.has(m))return;d(t),u(t),G.push(t)}}else d(t),u(t),G.push(t);function u(e){(function(e){return!!(e.valueDeclaration&&256&Mv(e.valueDeclaration)&&__(e.valueDeclaration.parent))})(e)&&(Q[RB(e)]=cae.LocalDeclarationPriority)}function d(e){o.includeCompletionsWithInsertText&&(r&&vx(Y,RB(e))?X[G.length]={kind:p(8)}:a&&(X[G.length]={kind:16}))}function p(e){return a?16|e:e}}function se(e){return zN(e)?e:HD(e)?se(e.expression):void 0}function ce(){const t=function(){const e=function(e){if(!e)return;const t=e.parent;switch(e.kind){case 19:if(SD(t))return t;break;case 27:case 28:case 80:if(171===t.kind&&SD(t.parent))return t.parent}}(T);if(!e)return 0;const t=(ED(e.parent)?e.parent:void 0)||e,n=mse(t,_);if(!n)return 0;const r=_.getTypeFromTypeNode(t),i=fse(n,_),o=fse(r,_),a=new Set;return o.forEach((e=>a.add(e.escapedName))),G=K(G,N(i,(e=>!a.has(e.escapedName)))),W=0,J=!0,1}()||function(){if(26===(null==T?void 0:T.kind))return 0;const t=G.length,a=function(e,t,n){var r;if(e){const{parent:i}=e;switch(e.kind){case 19:case 28:if($D(i)||qD(i))return i;break;case 42:return _D(i)?tt(i.parent,$D):void 0;case 134:return tt(i.parent,$D);case 80:if("async"===e.text&&BE(e.parent))return e.parent.parent;{if($D(e.parent.parent)&&(JE(e.parent)||BE(e.parent)&&Ja(n,e.getEnd()).line!==Ja(n,t).line))return e.parent.parent;const r=_c(i,ME);if((null==r?void 0:r.getLastToken(n))===e&&$D(r.parent))return r.parent}break;default:if((null==(r=i.parent)?void 0:r.parent)&&(_D(i.parent)||pD(i.parent)||fD(i.parent))&&$D(i.parent.parent))return i.parent.parent;if(JE(i)&&$D(i.parent))return i.parent;const o=_c(i,ME);if(59!==e.kind&&(null==o?void 0:o.getLastToken(n))===e&&$D(o.parent))return o.parent}}}(T,i,n);if(!a)return 0;let l,u;if(W=0,210===a.kind){const e=function(e,t){const n=t.getContextualType(e);if(n)return n;const r=nh(e.parent);return cF(r)&&64===r.operatorToken.kind&&e===r.left?t.getTypeAtLocation(r):U_(r)?t.getContextualType(r):void 0}(a,_);if(void 0===e)return 67108864&a.flags?2:0;const t=_.getContextualType(a,4),n=(t||e).getStringIndexType(),r=(t||e).getNumberIndexType();if(J=!!n||!!r,l=dse(e,t,a,_),u=a.properties,0===l.length&&!r)return 0}else{un.assert(206===a.kind),J=!1;const e=Qh(a.parent);if(!Ef(e))return un.fail("Root declaration is not variable-like.");let t=Fu(e)||!!pv(e)||250===e.parent.parent.kind;if(t||169!==e.kind||(U_(e.parent)?t=!!_.getContextualType(e.parent):174!==e.parent.kind&&178!==e.parent.kind||(t=U_(e.parent.parent)&&!!_.getContextualType(e.parent.parent))),t){const e=_.getTypeAtLocation(a);if(!e)return 2;l=_.getPropertiesOfType(e).filter((t=>_.isPropertyAccessible(a,!1,!1,e,t))),u=a.elements}}if(l&&l.length>0){const n=function(e,t){if(0===t.length)return e;const n=new Set,r=new Set;for(const e of t){if(303!==e.kind&&304!==e.kind&&208!==e.kind&&174!==e.kind&&177!==e.kind&&178!==e.kind&&305!==e.kind)continue;if(he(e))continue;let t;if(JE(e))fe(e,n);else if(VD(e)&&e.propertyName)80===e.propertyName.kind&&(t=e.propertyName.escapedText);else{const n=Tc(e);t=n&&Jh(n)?qh(n):void 0}void 0!==t&&r.add(t)}const i=e.filter((e=>!r.has(e.escapedName)));return ge(n,i),i}(l,un.checkDefined(u));G=K(G,n),me(),210===a.kind&&o.includeCompletionsWithObjectLiteralMethodSnippets&&o.includeCompletionsWithInsertText&&(function(e){for(let t=e;t{if(!(8196&t.flags))return;const n=rse(t,hk(r),void 0,0,!1);if(!n)return;const{name:i}=n,a=function(e,t,n,r,i,o,a,s){const c=a.includeCompletionsWithSnippetText||void 0;let l=t;const _=n.getSourceFile(),u=function(e,t,n,r,i,o){const a=e.getDeclarations();if(!a||!a.length)return;const s=r.getTypeChecker(),c=a[0],l=LY(Tc(c),!1),_=s.getWidenedType(s.getTypeOfSymbolAtLocation(e,t)),u=33554432|(0===BQ(n,o)?268435456:0);switch(c.kind){case 171:case 172:case 173:case 174:{let e=1048576&_.flags&&_.types.length<10?s.getUnionType(_.types,2):_;if(1048576&e.flags){const t=N(e.types,(e=>s.getSignaturesOfType(e,0).length>0));if(1!==t.length)return;e=t[0]}if(1!==s.getSignaturesOfType(e,0).length)return;const n=s.typeToTypeNode(e,t,u,void 0,f7.getNoopSymbolTrackerWithResolver({program:r,host:i}));if(!n||!bD(n))return;let a;if(o.includeCompletionsWithSnippetText){const e=XC.createEmptyStatement();a=XC.createBlock([e],!0),Fw(e,{kind:0,order:0})}else a=XC.createBlock([],!0);const c=n.parameters.map((e=>XC.createParameterDeclaration(void 0,e.dotDotDotToken,e.name,void 0,void 0,e.initializer)));return XC.createMethodDeclaration(void 0,void 0,l,void 0,void 0,c,void 0,a)}default:return}}(e,n,_,r,i,a);if(!u)return;const d=Bae({removeComments:!0,module:o.module,moduleResolution:o.moduleResolution,target:o.target,omitTrailingSemicolon:!1,newLine:qZ(kY(i,null==s?void 0:s.options))});l=s?d.printAndFormatSnippetList(80,XC.createNodeArray([u],!0),_,s):d.printSnippetList(80,XC.createNodeArray([u],!0),_);const p=rU({removeComments:!0,module:o.module,moduleResolution:o.moduleResolution,target:o.target,omitTrailingSemicolon:!0}),f=XC.createMethodSignature(void 0,"",u.questionToken,u.typeParameters,u.parameters,u.type);return{isSnippet:c,insertText:l,labelDetails:{detail:p.printNode(4,f,_)}}}(t,i,p,e,s,r,o,c);if(!a)return;const l={kind:128,...a};z|=32,X[G.length]=l,G.push(t)})))}var d,p;return 1}()||(w?(J=!0,le(),1):0)||function(){if(!T)return 0;const e=19===T.kind||28===T.kind?tt(T.parent,Tx):SQ(T)?tt(T.parent.parent,Tx):void 0;if(!e)return 0;SQ(T)||(M=8);const{moduleSpecifier:t}=275===e.kind?e.parent.parent:e.parent;if(!t)return J=!0,275===e.kind?2:0;const n=_.getSymbolAtLocation(t);if(!n)return J=!0,2;W=3,J=!1;const r=_.getExportsAndPropertiesOfModule(n),i=new Set(e.elements.filter((e=>!he(e))).map((e=>Wd(e.propertyName||e.name)))),o=r.filter((e=>"default"!==e.escapedName&&!i.has(e.escapedName)));return G=K(G,o),o.length||(M=0),1}()||function(){if(void 0===T)return 0;const e=19===T.kind||28===T.kind?tt(T.parent,sE):59===T.kind?tt(T.parent.parent,sE):void 0;if(void 0===e)return 0;const t=new Set(e.elements.map(uC));return G=N(_.getTypeAtLocation(e).getApparentProperties(),(e=>!t.has(e.escapedName))),1}()||function(){var e;const t=!T||19!==T.kind&&28!==T.kind?void 0:tt(T.parent,mE);if(!t)return 0;const n=_c(t,en(qE,QF));return W=5,J=!1,null==(e=n.locals)||e.forEach(((e,t)=>{var r,i;G.push(e),(null==(i=null==(r=n.symbol)?void 0:r.exports)?void 0:i.has(t))&&(Q[RB(e)]=cae.OptionalMember)})),1}()||(function(e){if(e){const t=e.parent;switch(e.kind){case 21:case 28:return dD(e.parent)?e.parent:void 0;default:if(ue(e))return t.parent}}}(T)?(W=5,J=!0,M=4,1):0)||function(){const e=function(e,t,n,r){switch(n.kind){case 352:return tt(n.parent,bx);case 1:const t=tt(ye(nt(n.parent,qE).statements),bx);if(t&&!yX(t,20,e))return t;break;case 81:if(tt(n.parent,cD))return _c(n,__);break;case 80:if(gc(n))return;if(cD(n.parent)&&n.parent.initializer===n)return;if(gse(n))return _c(n,bx)}if(t){if(137===n.kind||zN(t)&&cD(t.parent)&&__(n))return _c(t,__);switch(t.kind){case 64:return;case 27:case 20:return gse(n)&&n.parent.name===n?n.parent.parent:tt(n,bx);case 19:case 28:return tt(t.parent,bx);default:if(bx(n)){if(Ja(e,t.getEnd()).line!==Ja(e,r).line)return n;const i=__(t.parent.parent)?lse:cse;return i(t.kind)||42===t.kind||zN(t)&&i(gc(t)??0)?t.parent.parent:void 0}return}}}(n,T,R,i);if(!e)return 0;if(W=3,J=!0,M=42===T.kind?0:__(e)?2:3,!__(e))return 1;const t=27===T.kind?T.parent.parent:T.parent;let r=l_(t)?Mv(t):0;if(80===T.kind&&!he(T))switch(T.getText()){case"private":r|=2;break;case"static":r|=256;break;case"override":r|=16}if(uD(t)&&(r|=256),!(2&r)){const t=O(__(e)&&16&r?rn(hh(e)):bh(e),(t=>{const n=_.getTypeAtLocation(t);return 256&r?(null==n?void 0:n.symbol)&&_.getPropertiesOfType(_.getTypeOfSymbolAtLocation(n.symbol,e)):n&&_.getPropertiesOfType(n)}));G=K(G,function(e,t,n){const r=new Set;for(const e of t){if(172!==e.kind&&174!==e.kind&&177!==e.kind&&178!==e.kind)continue;if(he(e))continue;if(Cv(e,2))continue;if(Nv(e)!==!!(256&n))continue;const t=Bh(e.name);t&&r.add(t)}return e.filter((e=>!(r.has(e.escapedName)||!e.declarations||2&rx(e)||e.valueDeclaration&&Hl(e.valueDeclaration))))}(t,e.members,r)),d(G,((e,t)=>{const n=null==e?void 0:e.valueDeclaration;if(n&&l_(n)&&n.name&&rD(n.name)){const n={kind:512,symbolName:_.symbolToString(e)};X[t]=n}}))}return 1}()||function(){const e=function(e){if(e){const t=e.parent;switch(e.kind){case 32:case 31:case 44:case 80:case 211:case 292:case 291:case 293:if(t&&(285===t.kind||286===t.kind)){if(32===e.kind){const r=jX(e.pos,n,void 0);if(!t.typeArguments||r&&44===r.kind)break}return t}if(291===t.kind)return t.parent.parent;break;case 11:if(t&&(291===t.kind||293===t.kind))return t.parent.parent;break;case 20:if(t&&294===t.kind&&t.parent&&291===t.parent.kind)return t.parent.parent.parent;if(t&&293===t.kind)return t.parent.parent}}}(T),t=e&&_.getContextualType(e.attributes);if(!t)return 0;const r=e&&_.getContextualType(e.attributes,4);return G=K(G,function(e,t){const n=new Set,r=new Set;for(const e of t)he(e)||(291===e.kind?n.add(ZT(e.name)):PE(e)&&fe(e,r));const i=e.filter((e=>!n.has(e.escapedName)));return ge(r,i),i}(dse(t,r,e.attributes,_),e.attributes.properties)),me(),W=3,J=!1,1}()||(function(){M=function(e){if(e){let t;const n=_c(e.parent,(e=>__(e)?"quit":!(!i_(e)||t!==e.body)||(t=e,!1)));return n&&n}}(T)?5:1,W=1,({isNewIdentifierLocation:J,defaultCommitCharacters:D}=_e()),S!==T&&un.assert(!!S,"Expected 'contextToken' to be defined when different from 'previousToken'.");const e=S!==T?S.getStart():i,t=function(e,t,n){let r=e;for(;r&&!pX(r,t,n);)r=r.parent;return r}(T,e,n)||n;v=function(e){switch(e.kind){case 307:case 228:case 294:case 241:return!0;default:return du(e)}}(t);const r=2887656|(Z?0:111551),a=S&&!yT(S);G=K(G,_.getSymbolsInScope(t,r)),un.assertEachIsDefined(G,"getSymbolsInScope() should all be defined");for(let e=0;ee.getSourceFile()===n))||(Q[RB(t)]=cae.GlobalsOrKeywords),a&&!(111551&t.flags)){const n=t.declarations&&b(t.declarations,Ml);if(n){const t={kind:64,declaration:n};X[e]=t}}}if(o.includeCompletionsWithInsertText&&307!==t.kind){const e=_.tryGetThisTypeAt(t,!1,__(t.parent)?t:void 0);if(e&&!function(e,t,n){const r=n.resolveName("self",void 0,111551,!1);if(r&&n.getTypeOfSymbolAtLocation(r,t)===e)return!0;const i=n.resolveName("global",void 0,111551,!1);if(i&&n.getTypeOfSymbolAtLocation(i,t)===e)return!0;const o=n.resolveName("globalThis",void 0,111551,!1);return!(!o||n.getTypeOfSymbolAtLocation(o,t)!==e)}(e,n,_))for(const t of fse(e,_))X[G.length]={kind:1},G.push(t),Q[RB(t)]=cae.SuggestedClassMembers}le(),Z&&(M=T&&V_(T.parent)?6:7)}(),1);return 1===t}function le(){var t,r;if(!function(){var t;return!!w||!!o.includeCompletionsForModuleExports&&(!(!n.externalModuleIndicator&&!n.commonJsModuleIndicator)||!!PQ(e.getCompilerOptions())||(null==(t=e.getSymlinkCache)?void 0:t.call(e).hasAnySymlinks())||!!e.getCompilerOptions().paths||FQ(e))}())return;if(un.assert(!(null==a?void 0:a.data),"Should not run 'collectAutoImports' when faster path is available via `data`"),a&&!a.source)return;z|=1;const c=S===T&&w?"":S&&zN(S)?S.text.toLowerCase():"",_=null==(t=s.getModuleSpecifierCache)?void 0:t.call(s),u=s0(n,s,e,o,l),d=null==(r=s.getPackageJsonAutoImportProvider)?void 0:r.call(s),p=a?void 0:TZ(n,o,s);function f(t){return e0(t.isFromPackageJson?d:e,n,tt(t.moduleSymbol.valueDeclaration,qE),t.moduleSymbol,o,p,te(t.isFromPackageJson),_)}vae("collectAutoImports",s,V||(V=f7.createImportSpecifierResolver(n,e,s,o)),e,i,o,!!w,yT(R),(e=>{u.search(n.path,A,((e,t)=>{if(!fs(e,hk(s.getCompilationSettings())))return!1;if(!a&&Fh(e))return!1;if(!(Z||w||111551&t))return!1;if(Z&&!(790504&t))return!1;const n=e.charCodeAt(0);return(!A||!(n<65||n>90))&&(!!a||Nse(e,c))}),((t,n,r,i)=>{if(a&&!$(t,(e=>a.source===Dy(e.moduleSymbol.name))))return;if(!(t=N(t,f)).length)return;const o=e.tryResolve(t,r)||{};if("failed"===o)return;let s,c=t[0];"skipped"!==o&&({exportInfo:c=t[0],moduleSpecifier:s}=o);const l=1===c.exportKind;!function(e,t){const n=RB(e);Q[n]!==cae.GlobalsOrKeywords&&(X[G.length]=t,Q[n]=w?cae.LocationPriority:cae.AutoImportSuggestions,G.push(e))}(l&&yb(un.checkDefined(c.symbol))||un.checkDefined(c.symbol),{kind:s?32:4,moduleSpecifier:s,symbolName:n,exportMapKey:i,exportName:2===c.exportKind?"export=":un.checkDefined(c.symbol).name,fileName:c.moduleFileName,isDefaultExport:l,moduleSymbol:c.moduleSymbol,isFromPackageJson:c.isFromPackageJson})})),H=e.skippedAny(),z|=e.resolvedAny()?8:0,z|=e.resolvedBeyondLimit()?16:0}))}function _e(){if(T){const e=T.parent.kind,t=use(T);switch(t){case 28:switch(e){case 213:case 214:{const e=T.parent.expression;return Ja(n,e.end).line!==Ja(n,i).line?{defaultCommitCharacters:_ae,isNewIdentifierLocation:!0}:{defaultCommitCharacters:lae,isNewIdentifierLocation:!0}}case 226:return{defaultCommitCharacters:_ae,isNewIdentifierLocation:!0};case 176:case 184:case 210:return{defaultCommitCharacters:[],isNewIdentifierLocation:!0};case 209:return{defaultCommitCharacters:lae,isNewIdentifierLocation:!0};default:return{defaultCommitCharacters:lae,isNewIdentifierLocation:!1}}case 21:switch(e){case 213:case 214:{const e=T.parent.expression;return Ja(n,e.end).line!==Ja(n,i).line?{defaultCommitCharacters:_ae,isNewIdentifierLocation:!0}:{defaultCommitCharacters:lae,isNewIdentifierLocation:!0}}case 217:return{defaultCommitCharacters:_ae,isNewIdentifierLocation:!0};case 176:case 196:return{defaultCommitCharacters:[],isNewIdentifierLocation:!0};default:return{defaultCommitCharacters:lae,isNewIdentifierLocation:!1}}case 23:switch(e){case 209:case 181:case 189:case 167:return{defaultCommitCharacters:lae,isNewIdentifierLocation:!0};default:return{defaultCommitCharacters:lae,isNewIdentifierLocation:!1}}case 144:case 145:case 102:return{defaultCommitCharacters:[],isNewIdentifierLocation:!0};case 25:return 267===e?{defaultCommitCharacters:[],isNewIdentifierLocation:!0}:{defaultCommitCharacters:lae,isNewIdentifierLocation:!1};case 19:switch(e){case 263:case 210:return{defaultCommitCharacters:[],isNewIdentifierLocation:!0};default:return{defaultCommitCharacters:lae,isNewIdentifierLocation:!1}}case 64:switch(e){case 260:case 226:return{defaultCommitCharacters:lae,isNewIdentifierLocation:!0};default:return{defaultCommitCharacters:lae,isNewIdentifierLocation:!1}}case 16:return{defaultCommitCharacters:lae,isNewIdentifierLocation:228===e};case 17:return{defaultCommitCharacters:lae,isNewIdentifierLocation:239===e};case 134:return 174===e||304===e?{defaultCommitCharacters:[],isNewIdentifierLocation:!0}:{defaultCommitCharacters:lae,isNewIdentifierLocation:!1};case 42:return 174===e?{defaultCommitCharacters:[],isNewIdentifierLocation:!0}:{defaultCommitCharacters:lae,isNewIdentifierLocation:!1}}if(lse(t))return{defaultCommitCharacters:[],isNewIdentifierLocation:!0}}return{defaultCommitCharacters:lae,isNewIdentifierLocation:!1}}function ue(e){return!!e.parent&&oD(e.parent)&&dD(e.parent.parent)&&(Xl(e.kind)||ch(e))}function de(e,t){return 64!==e.kind&&(27===e.kind||!Wb(e.end,t,n))}function pe(e){return s_(e)&&176!==e}function fe(e,t){const n=e.expression,r=_.getSymbolAtLocation(n),i=r&&_.getTypeOfSymbolAtLocation(r,n),o=i&&i.properties;o&&o.forEach((e=>{t.add(e.name)}))}function me(){G.forEach((e=>{if(16777216&e.flags){const t=RB(e);Q[t]=Q[t]??cae.OptionalMember}}))}function ge(e,t){if(0!==e.size)for(const n of t)e.has(n.name)&&(Q[RB(n)]=cae.MemberDeclaredBySpreadAssignment)}function he(e){return e.getStart(n)<=i&&i<=e.getEnd()}}function tse(e,t){const n=jX(e,t);return n&&e<=n.end&&(ul(n)||Th(n.kind))?{contextToken:jX(n.getFullStart(),t,void 0),previousToken:n}:{contextToken:n,previousToken:n}}function nse(e,t,n,r){const i=t.isPackageJsonImport?r.getPackageJsonAutoImportProvider():n,o=i.getTypeChecker(),a=t.ambientModuleName?o.tryFindAmbientModule(t.ambientModuleName):t.fileName?o.getMergedSymbol(un.checkDefined(i.getSourceFile(t.fileName)).symbol):void 0;if(!a)return;let s="export="===t.exportName?o.resolveExternalModuleSymbol(a):o.tryGetMemberInModuleExportsAndProperties(t.exportName,a);return s?(s="default"===t.exportName&&yb(s)||s,{symbol:s,origin:zae(t,e,a)}):void 0}function rse(e,t,n,r,i){if(function(e){return!!(e&&256&e.kind)}(n))return;const o=function(e){return pae(e)||fae(e)||yae(e)}(n)?n.symbolName:e.name;if(void 0===o||1536&e.flags&&Jm(o.charCodeAt(0))||Vh(e))return;const a={name:o,needsConvertPropertyAccess:!1};if(fs(o,t,i?1:0)||e.valueDeclaration&&Hl(e.valueDeclaration))return a;if(2097152&e.flags)return{name:o,needsConvertPropertyAccess:!0};switch(r){case 3:return yae(n)?{name:n.symbolName,needsConvertPropertyAccess:!1}:void 0;case 0:return{name:JSON.stringify(o),needsConvertPropertyAccess:!1};case 2:case 1:return 32===o.charCodeAt(0)?void 0:{name:o,needsConvertPropertyAccess:!0};case 5:case 4:return a;default:un.assertNever(r)}}var ise=[],ose=dt((()=>{const e=[];for(let t=83;t<=165;t++)e.push({name:Da(t),kind:"keyword",kindModifiers:"",sortText:cae.GlobalsOrKeywords});return e}));function ase(e,t){if(!t)return sse(e);const n=e+8+1;return ise[n]||(ise[n]=sse(e).filter((e=>!function(e){switch(e){case 128:case 133:case 163:case 136:case 138:case 94:case 162:case 119:case 140:case 120:case 142:case 143:case 144:case 145:case 146:case 150:case 151:case 164:case 123:case 124:case 125:case 148:case 154:case 155:case 156:case 158:case 159:return!0;default:return!1}}(Fa(e.name)))))}function sse(e){return ise[e]||(ise[e]=ose().filter((t=>{const n=Fa(t.name);switch(e){case 0:return!1;case 1:return _se(n)||138===n||144===n||156===n||145===n||128===n||xQ(n)&&157!==n;case 5:return _se(n);case 2:return lse(n);case 3:return cse(n);case 4:return Xl(n);case 6:return xQ(n)||87===n;case 7:return xQ(n);case 8:return 156===n;default:return un.assertNever(e)}})))}function cse(e){return 148===e}function lse(e){switch(e){case 128:case 129:case 137:case 139:case 153:case 134:case 138:case 164:return!0;default:return Ql(e)}}function _se(e){return 134===e||135===e||160===e||130===e||152===e||156===e||!Nh(e)&&!lse(e)}function use(e){return zN(e)?gc(e)??0:e.kind}function dse(e,t,n,r){const i=t&&t!==e,o=r.getUnionType(N(1048576&e.flags?e.types:[e],(e=>!r.getPromisedTypeOfPromise(e)))),a=!i||3&t.flags?o:r.getUnionType([o,t]),s=function(e,t,n){return e.isUnion()?n.getAllPossiblePropertiesOfTypes(N(e.types,(e=>!(402784252&e.flags||n.isArrayLikeType(e)||n.isTypeInvalidDueToUnionDiscriminant(e,t)||n.typeHasCallOrConstructSignatures(e)||e.isClass()&&pse(e.getApparentProperties()))))):e.getApparentProperties()}(a,n,r);return a.isClass()&&pse(s)?[]:i?N(s,(function(e){return!u(e.declarations)||$(e.declarations,(e=>e.parent!==n))})):s}function pse(e){return $(e,(e=>!!(6&rx(e))))}function fse(e,t){return e.isUnion()?un.checkEachDefined(t.getAllPossiblePropertiesOfTypes(e.types),"getAllPossiblePropertiesOfTypes() should all be defined"):un.checkEachDefined(e.getApparentProperties(),"getApparentProperties() should all be defined")}function mse(e,t){if(!e)return;if(v_(e)&&Au(e.parent))return t.getTypeArgumentConstraint(e);const n=mse(e.parent,t);if(n)switch(e.kind){case 171:return t.getTypeOfPropertyOfContextualType(n,e.symbol.escapedName);case 193:case 187:case 192:return n}}function gse(e){return e.parent&&h_(e.parent)&&bx(e.parent.parent)}function hse({left:e}){return Cd(e)}function yse(e,t){var n,r,i;let o,a=!1;const s=function(){const n=e.parent;if(tE(n)){const r=n.getLastToken(t);return zN(e)&&r!==e?(o=161,void(a=!0)):(o=156===e.kind?void 0:156,Sse(n.moduleReference)?n:void 0)}if(xse(n,e)&&kse(n.parent))return n;if(!uE(n)&&!lE(n))return fE(n)&&42===e.kind||mE(n)&&20===e.kind?(a=!0,void(o=161)):eD(e)&&qE(n)?(o=156,e):eD(e)&&nE(n)?(o=156,Sse(n.moduleSpecifier)?n:void 0):void 0;if(n.parent.isTypeOnly||19!==e.kind&&102!==e.kind&&28!==e.kind||(o=156),kse(n)){if(20!==e.kind&&80!==e.kind)return n.parent.parent;a=!0,o=161}}();return{isKeywordOnlyCompletion:a,keywordCompletion:o,isNewIdentifierLocation:!(!s&&156!==o),isTopLevelTypeOnly:!!(null==(r=null==(n=tt(s,nE))?void 0:n.importClause)?void 0:r.isTypeOnly)||!!(null==(i=tt(s,tE))?void 0:i.isTypeOnly),couldBeTypeOnlyImportSpecifier:!!s&&xse(s,e),replacementSpan:vse(s)}}function vse(e){var t;if(!e)return;const n=_c(e,en(nE,tE,PP))??e,r=n.getSourceFile();if(Rb(n,r))return pQ(n,r);un.assert(102!==n.kind&&276!==n.kind);const i=272===n.kind||351===n.kind?bse(null==(t=n.importClause)?void 0:t.namedBindings)??n.moduleSpecifier:n.moduleReference,o={pos:n.getFirstToken().getStart(),end:i.pos};return Rb(o,r)?gQ(o):void 0}function bse(e){var t;return b(null==(t=tt(e,uE))?void 0:t.elements,(t=>{var n;return!t.propertyName&&Fh(t.name.text)&&28!==(null==(n=jX(t.name.pos,e.getSourceFile(),e))?void 0:n.kind)}))}function xse(e,t){return dE(e)&&(e.isTypeOnly||t===e.name&&SQ(t))}function kse(e){if(!Sse(e.parent.parent.moduleSpecifier)||e.parent.name)return!1;if(uE(e)){const t=bse(e);return(t?e.elements.indexOf(t):e.elements.length)<2}return!0}function Sse(e){var t;return!!Cd(e)||!(null==(t=tt(xE(e)?e.expression:e,Lu))?void 0:t.text)}function Tse(e){return e.parent&&tF(e.parent)&&(e.parent.body===e||39===e.kind)}function Cse(e,t,n=new Set){return r(e)||r(ix(e.exportSymbol||e,t));function r(e){return!!(788968&e.flags)||t.isUnknownSymbol(e)||!!(1536&e.flags)&&vx(n,e)&&t.getExportsOfModule(e).some((e=>Cse(e,t,n)))}}function wse(e,t){const n=ix(e,t).declarations;return!!u(n)&&v(n,JZ)}function Nse(e,t){if(0===t.length)return!0;let n,r=!1,i=0;const o=e.length;for(let s=0;sAse,getStringLiteralCompletions:()=>Pse});var Fse={directory:0,script:1,"external module name":2};function Ese(){const e=new Map;return{add:function(t){const n=e.get(t.name);(!n||Fse[n.kind]t>=e.pos&&t<=e.end));if(!c)return;const l=e.text.slice(c.pos,t),_=tce.exec(l);if(!_)return;const[,u,d,p]=_,f=Do(e.path),m="path"===d?Wse(p,f,Use(o,0,e),n,r,i,!0,e.path):"types"===d?ece(n,r,i,f,Xse(p),Use(o,1,e)):un.fail();return zse(p,c.pos+u.length,Oe(m.values()))}(e,t,o,i,AQ(o,i));return n&&Ise(n)}if(JX(e,t,n)){if(!n||!Lu(n))return;return function(e,t,n,r,i,o,a,s,c,l){if(void 0===e)return;const _=fQ(t,c);switch(e.kind){case 0:return Ise(e.paths);case 1:{const u=[];return Wae(e.symbols,u,t,t,n,c,n,r,i,99,o,4,s,a,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,l),{isGlobalCompletion:!1,isMemberCompletion:!0,isNewIdentifierLocation:e.hasIndexSignature,optionalReplacementSpan:_,entries:u,defaultCommitCharacters:bae(e.hasIndexSignature)}}case 2:{const n=15===t.kind?96:Gt(Kd(t),"'")?39:34,r=e.types.map((e=>({name:by(e.value,n),kindModifiers:"",kind:"string",sortText:cae.LocationPriority,replacementSpan:dQ(t,c),commitCharacters:[]})));return{isGlobalCompletion:!1,isMemberCompletion:!1,isNewIdentifierLocation:e.isNewIdentifier,optionalReplacementSpan:_,entries:r,defaultCommitCharacters:bae(e.isNewIdentifier)}}default:return un.assertNever(e)}}(Lse(e,n,t,o,i,s),n,e,i,o,a,r,s,t,c)}}function Ase(e,t,n,r,i,o,a,s){if(!r||!Lu(r))return;const c=Lse(t,r,n,i,o,s);return c&&function(e,t,n,r,i,o){switch(n.kind){case 0:{const t=b(n.paths,(t=>t.name===e));return t&&Xae(e,Ose(t.extension),t.kind,[mY(e)])}case 1:{const a=b(n.symbols,(t=>t.name===e));return a&&Gae(a,a.name,i,r,t,o)}case 2:return b(n.types,(t=>t.value===e))?Xae(e,"","string",[mY(e)]):void 0;default:return un.assertNever(n)}}(e,r,c,t,i.getTypeChecker(),a)}function Ise(e){const t=!0;return{isGlobalCompletion:!1,isMemberCompletion:!1,isNewIdentifierLocation:t,entries:e.map((({name:e,kind:t,span:n,extension:r})=>({name:e,kind:t,kindModifiers:Ose(r),sortText:cae.LocationPriority,replacementSpan:n}))),defaultCommitCharacters:bae(t)}}function Ose(e){switch(e){case".d.ts":return".d.ts";case".js":return".js";case".json":return".json";case".jsx":return".jsx";case".ts":return".ts";case".tsx":return".tsx";case".d.mts":return".d.mts";case".mjs":return".mjs";case".mts":return".mts";case".d.cts":return".d.cts";case".cjs":return".cjs";case".cts":return".cts";case".tsbuildinfo":return un.fail("Extension .tsbuildinfo is unsupported.");case void 0:return"";default:return un.assertNever(e)}}function Lse(e,t,n,r,i,o){const a=r.getTypeChecker(),s=jse(t.parent);switch(s.kind){case 201:{const c=jse(s.parent);return 205===c.kind?{kind:0,paths:qse(e,t,r,i,o)}:function e(t){switch(t.kind){case 233:case 183:{const e=_c(s,(e=>e.parent===t));return e?{kind:2,types:Mse(a.getTypeArgumentConstraint(e)),isNewIdentifier:!1}:void 0}case 199:const{indexType:i,objectType:o}=t;if(!sX(i,n))return;return Rse(a.getTypeFromTypeNode(o));case 192:{const n=e(jse(t.parent));if(!n)return;const i=(r=s,B(t.types,(e=>e!==r&&MD(e)&&TN(e.literal)?e.literal.text:void 0)));return 1===n.kind?{kind:1,symbols:n.symbols.filter((e=>!T(i,e.name))),hasIndexSignature:n.hasIndexSignature}:{kind:2,types:n.types.filter((e=>!T(i,e.value))),isNewIdentifier:!1}}default:return}var r}(c)}case 303:return $D(s.parent)&&s.name===t?function(e,t){const n=e.getContextualType(t);if(!n)return;return{kind:1,symbols:dse(n,e.getContextualType(t,4),t,e),hasIndexSignature:iZ(n)}}(a,s.parent):c()||c(0);case 212:{const{expression:e,argumentExpression:n}=s;return t===oh(n)?Rse(a.getTypeAtLocation(e)):void 0}case 213:case 214:case 291:if(!function(e){return GD(e.parent)&&fe(e.parent.arguments)===e&&zN(e.parent.expression)&&"require"===e.parent.expression.escapedText}(t)&&!cf(s)){const r=I_e.getArgumentInfoForCompletions(291===s.kind?s.parent:t,n,e,a);return r&&function(e,t,n,r){let i=!1;const o=new Set,a=vu(e)?un.checkDefined(_c(t.parent,FE)):t,s=O(r.getCandidateSignaturesForStringLiteralCompletions(e,a),(t=>{if(!UB(t)&&n.argumentCount>t.parameters.length)return;let s=t.getTypeParameterAtPosition(n.argumentIndex);if(vu(e)){const e=r.getTypeOfPropertyOfType(s,eC(a.name));e&&(s=e)}return i=i||!!(4&s.flags),Mse(s,o)}));return u(s)?{kind:2,types:s,isNewIdentifier:i}:void 0}(r.invocation,t,r,a)||c(0)}case 272:case 278:case 283:case 351:return{kind:0,paths:qse(e,t,r,i,o)};case 296:const l=HZ(a,s.parent.clauses),_=c();if(!_)return;return{kind:2,types:_.types.filter((e=>!l.hasValue(e.value))),isNewIdentifier:!1};case 276:case 281:const d=s;if(d.propertyName&&t!==d.propertyName)return;const p=d.parent,{moduleSpecifier:f}=275===p.kind?p.parent.parent:p.parent;if(!f)return;const m=a.getSymbolAtLocation(f);if(!m)return;const g=a.getExportsAndPropertiesOfModule(m),h=new Set(p.elements.map((e=>Wd(e.propertyName||e.name))));return{kind:1,symbols:g.filter((e=>"default"!==e.escapedName&&!h.has(e.escapedName))),hasIndexSignature:!1};default:return c()||c(0)}function c(e=4){const n=Mse(eZ(t,a,e));if(n.length)return{kind:2,types:n,isNewIdentifier:!1}}}function jse(e){switch(e.kind){case 196:return th(e);case 217:return nh(e);default:return e}}function Rse(e){return e&&{kind:1,symbols:N(e.getApparentProperties(),(e=>!(e.valueDeclaration&&Hl(e.valueDeclaration)))),hasIndexSignature:iZ(e)}}function Mse(e,t=new Set){return e?(e=NQ(e)).isUnion()?O(e.types,(e=>Mse(e,t))):!e.isStringLiteral()||1024&e.flags||!vx(t,e.value)?l:[e]:l}function Bse(e,t,n){return{name:e,kind:t,extension:n}}function Jse(e){return Bse(e,"directory",void 0)}function zse(e,t,n){const r=function(e,t){const n=Math.max(e.lastIndexOf(lo),e.lastIndexOf(_o)),r=-1!==n?n+1:0,i=e.length-r;return 0===i||fs(e.substr(r,i),99)?void 0:Vs(t+r,i)}(e,t),i=0===e.length?void 0:Vs(t,e.length);return n.map((({name:e,kind:t,extension:n})=>e.includes(lo)||e.includes(_o)?{name:e,kind:t,extension:n,span:i}:{name:e,kind:t,extension:n,span:r}))}function qse(e,t,n,r,i){return zse(t.text,t.getStart(e)+1,function(e,t,n,r,i){const o=Oo(t.text),a=Lu(t)?n.getModeForUsageLocation(e,t):void 0,s=e.path,c=Do(s),_=n.getCompilerOptions(),u=n.getTypeChecker(),d=AQ(n,r),p=Use(_,1,e,u,i,a);return function(e){if(e&&e.length>=2&&46===e.charCodeAt(0)){const t=e.length>=3&&46===e.charCodeAt(1)?2:1,n=e.charCodeAt(t);return 47===n||92===n}return!1}(o)||!_.baseUrl&&!_.paths&&(go(o)||mo(o))?function(e,t,n,r,i,o,a){const s=n.getCompilerOptions();return s.rootDirs?function(e,t,n,r,i,o,a,s){const c=function(e,t,n,r){const i=f(e=e.map((e=>Vo(Jo(go(e)?e:jo(t,e))))),(e=>Zo(e,n,t,r)?n.substr(e.length):void 0));return Q([...e.map((e=>jo(e,i))),n].map((e=>Uo(e))),ht,Ct)}(e,i.getCompilerOptions().project||o.getCurrentDirectory(),n,!(o.useCaseSensitiveFileNames&&o.useCaseSensitiveFileNames()));return Q(O(c,(e=>Oe(Wse(t,e,r,i,o,a,!0,s).values()))),((e,t)=>e.name===t.name&&e.kind===t.kind&&e.extension===t.extension))}(s.rootDirs,e,t,a,n,r,i,o):Oe(Wse(e,t,a,n,r,i,!0,o).values())}(o,c,n,r,d,s,p):function(e,t,n,r,i,o,a){const s=r.getTypeChecker(),c=r.getCompilerOptions(),{baseUrl:_,paths:u}=c,d=Ese(),p=vk(c);if(_){const t=Jo(jo(i.getCurrentDirectory(),_));Wse(e,t,a,r,i,o,!1,void 0,d)}if(u){const t=Hy(c,i);Hse(d,e,t,a,r,i,o,u)}const f=Xse(e);for(const t of function(e,t,n){const r=n.getAmbientModules().map((e=>Dy(e.name))).filter((t=>Gt(t,e)&&!t.includes("*")));if(void 0!==t){const e=Vo(t);return r.map((t=>Xt(t,e)))}return r}(e,f,s))d.add(Bse(t,"external module name",void 0));if(ece(r,i,o,t,f,a,d),OQ(p)){let n=!1;if(void 0===f)for(const e of function(e,t){if(!e.readFile||!e.fileExists)return l;const n=[];for(const r of xZ(t,e)){const t=Cb(r,e);for(const e of nce){const r=t[e];if(r)for(const e in r)De(r,e)&&!Gt(e,"@types/")&&n.push(e)}}return n}(i,t)){const t=Bse(e,"external module name",void 0);d.has(t.name)||(n=!0,d.add(t))}if(!n){const n=Tk(c),s=Ck(c);let l=!1;const _=t=>{if(s&&!l){const n=jo(t,"package.json");(l=hZ(i,n))&&m(Cb(n,i).imports,e,t,!1,!0)}};let u=t=>{const n=jo(t,"node_modules");yZ(i,n)&&Wse(e,n,a,r,i,o,!1,void 0,d),_(t)};if(f&&n){const t=u;u=n=>{const r=Ao(e);r.shift();let o=r.shift();if(!o)return t(n);if(Gt(o,"@")){const e=r.shift();if(!e)return t(n);o=jo(o,e)}if(s&&Gt(o,"#"))return _(n);const a=jo(n,"node_modules",o),c=jo(a,"package.json");if(!hZ(i,c))return t(n);{const t=Cb(c,i),n=r.join("/")+(r.length&&To(e)?"/":"");m(t.exports,n,a,!0,!1)}}}sM(i,t,u)}}return Oe(d.values());function m(e,t,s,l,_){if("object"!=typeof e||null===e)return;const u=Ee(e),p=tR(c,n);Kse(d,l,_,t,s,a,r,i,o,u,(t=>{const n=Gse(e[t],p);if(void 0!==n)return rn(Rt(t,"/")&&Rt(n,"/")?n+"*":n)}),tM)}}(o,c,a,n,r,d,p)}(e,t,n,r,i))}function Use(e,t,n,r,i,o){return{extensionsToSearch:I(Vse(e,r)),referenceKind:t,importingSourceFile:n,endingPreference:null==i?void 0:i.importModuleSpecifierEnding,resolutionMode:o}}function Vse(e,t){const n=t?B(t.getAmbientModules(),(e=>{const t=e.name.slice(1,-1);if(t.startsWith("*.")&&!t.includes("/"))return t.slice(1)})):[],r=[...ES(e),n];return OQ(vk(e))?PS(e,r):r}function Wse(e,t,n,r,i,o,a,s,c=Ese()){var l;void 0===e&&(e=""),To(e=Oo(e))||(e=Do(e)),""===e&&(e="."+lo);const _=Ro(t,e=Vo(e)),u=To(_)?_:Do(_);if(!a){const e=kZ(u,i);if(e){const t=Cb(e,i).typesVersions;if("object"==typeof t){const a=null==(l=Kj(t))?void 0:l.paths;if(a){const t=Do(e);if(Hse(c,_.slice(Vo(t).length),t,n,r,i,o,a))return c}}}}const d=!(i.useCaseSensitiveFileNames&&i.useCaseSensitiveFileNames());if(!yZ(i,u))return c;const p=gZ(i,u,n.extensionsToSearch,void 0,["./*"]);if(p)for(let e of p){if(e=Jo(e),s&&0===Yo(e,s,t,d))continue;const{name:i,extension:o}=$se(Fo(e),r,n,!1);c.add(Bse(i,"script",o))}const f=mZ(i,u);if(f)for(const e of f){const t=Fo(Jo(e));"@types"!==t&&c.add(Jse(t))}return c}function $se(e,t,n,r){const i=BM.tryGetRealFileNameForNonJsDeclarationFileName(e);if(i)return{name:i,extension:ZS(i)};if(0===n.referenceKind)return{name:e,extension:ZS(e)};let o=BM.getModuleSpecifierPreferences({importModuleSpecifierEnding:n.endingPreference},t,t.getCompilerOptions(),n.importingSourceFile).getAllowedEndingsInPreferredOrder(n.resolutionMode);if(r&&(o=o.filter((e=>0!==e&&1!==e))),3===o[0]){if(So(e,DS))return{name:e,extension:ZS(e)};const n=BM.tryGetJSExtensionForFile(e,t.getCompilerOptions());return n?{name:VS(e,n),extension:n}:{name:e,extension:ZS(e)}}if(!r&&(0===o[0]||1===o[0])&&So(e,[".js",".jsx",".ts",".tsx",".d.ts"]))return{name:zS(e),extension:ZS(e)};const a=BM.tryGetJSExtensionForFile(e,t.getCompilerOptions());return a?{name:VS(e,a),extension:a}:{name:e,extension:ZS(e)}}function Hse(e,t,n,r,i,o,a,s){return Kse(e,!1,!1,t,n,r,i,o,a,Ee(s),(e=>s[e]),((e,t)=>{const n=WS(e),r=WS(t),i="object"==typeof n?n.prefix.length:e.length;return vt("object"==typeof r?r.prefix.length:t.length,i)}))}function Kse(e,t,n,r,i,o,a,s,c,l,_,u){let d,p=[];for(const e of l){if("."===e)continue;const l=e.replace(/^\.\//,"")+((t||n)&&Rt(e,"/")?"*":""),f=_(e);if(f){const e=WS(l);if(!e)continue;const _="object"==typeof e&&Yt(e,r);_&&(void 0===d||-1===u(l,d))&&(d=l,p=p.filter((e=>!e.matchedPattern))),"string"!=typeof e&&void 0!==d&&1===u(l,d)||p.push({matchedPattern:_,results:Qse(l,f,r,i,o,t,n,a,s,c).map((({name:e,kind:t,extension:n})=>Bse(e,t,n)))})}}return p.forEach((t=>t.results.forEach((t=>e.add(t))))),void 0!==d}function Gse(e,t){if("string"==typeof e)return e;if(e&&"object"==typeof e&&!Qe(e))for(const n in e)if("default"===n||t.includes(n)||iM(t,n))return Gse(e[n],t)}function Xse(e){return rce(e)?To(e)?e:Do(e):void 0}function Qse(e,t,n,r,i,o,a,s,c,_){const u=WS(e);if(!u)return l;if("string"==typeof u)return p(e,"script");const d=Qt(n,u.prefix);return void 0===d?Rt(e,"/*")?p(u.prefix,"directory"):O(t,(e=>{var t;return null==(t=Yse("",r,e,i,o,a,s,c,_))?void 0:t.map((({name:e,...t})=>({name:u.prefix+e+u.suffix,...t})))})):O(t,(e=>Yse(d,r,e,i,o,a,s,c,_)));function p(e,t){return Gt(e,n)?[{name:Uo(e),kind:t,extension:void 0}]:l}}function Yse(e,t,n,r,i,o,a,s,c){if(!s.readDirectory)return;const l=WS(n);if(void 0===l||Ze(l))return;const _=Ro(l.prefix),u=To(l.prefix)?_:Do(_),d=To(l.prefix)?"":Fo(_),p=rce(e),m=p?To(e)?e:Do(e):void 0,g=()=>c.getCommonSourceDirectory(),h=!Ly(c),y=a.getCompilerOptions().outDir,v=a.getCompilerOptions().declarationDir,b=p?jo(u,d+m):u,x=Jo(jo(t,b)),k=o&&y&&$y(x,h,y,g),S=o&&v&&$y(x,h,v,g),T=Jo(l.suffix),C=T&&Vy("_"+T),w=T?Wy("_"+T):void 0,N=[C&&VS(T,C),...w?w.map((e=>VS(T,e))):[],T].filter(Ze),D=T?N.map((e=>"**/*"+e)):["./*"],F=(i||o)&&Rt(n,"/*");let E=P(x);return k&&(E=K(E,P(k))),S&&(E=K(E,P(S))),T||(E=K(E,A(x)),k&&(E=K(E,A(k))),S&&(E=K(E,A(S)))),E;function P(e){const t=p?e:Vo(e)+d;return B(gZ(s,e,r.extensionsToSearch,void 0,D),(e=>{const n=(i=e,o=t,f(N,(e=>{const t=(a=e,Gt(n=Jo(i),r=o)&&Rt(n,a)?n.slice(r.length,n.length-a.length):void 0);var n,r,a;return void 0===t?void 0:Zse(t)})));var i,o;if(n){if(rce(n))return Jse(Ao(Zse(n))[1]);const{name:e,extension:t}=$se(n,a,r,F);return Bse(e,"script",t)}}))}function A(e){return B(mZ(s,e),(e=>"node_modules"===e?void 0:Jse(e)))}}function Zse(e){return e[0]===lo?e.slice(1):e}function ece(e,t,n,r,i,o,a=Ese()){const s=e.getCompilerOptions(),c=new Map,_=vZ((()=>Gj(s,t)))||l;for(const e of _)u(e);for(const e of xZ(r,t))u(jo(Do(e),"node_modules/@types"));return a;function u(r){if(yZ(t,r))for(const l of mZ(t,r)){const _=gM(l);if(!s.types||T(s.types,_))if(void 0===i)c.has(_)||(a.add(Bse(_,"external module name",void 0)),c.set(_,!0));else{const s=jo(r,l),c=Qk(i,_,jy(t));void 0!==c&&Wse(c,s,o,e,t,n,!1,void 0,a)}}}}var tce=/^(\/\/\/\s*{const i=t.getSymbolAtLocation(n);if(i){const t=RB(i).toString();let n=r.get(t);n||r.set(t,n=[]),n.push(e)}}));return r}(e,n,r);return(o,a,s)=>{const{directImports:c,indirectUsers:l}=function(e,t,n,{exportingModuleSymbol:r,exportKind:i},o,a){const s=TQ(),c=TQ(),l=[],_=!!r.globalExports,u=_?void 0:[];return function e(t){const n=m(t);if(n)for(const t of n)if(s(t))switch(a&&a.throwIfCancellationRequested(),t.kind){case 213:if(cf(t)){f(_c(r=t,gce)||r.getSourceFile(),!!d(r,!0));break}if(!_){const e=t.parent;if(2===i&&260===e.kind){const{name:t}=e;if(80===t.kind){l.push(t);break}}}break;case 80:break;case 271:p(t,t.name,wv(t,32),!1);break;case 272:case 351:l.push(t);const n=t.importClause&&t.importClause.namedBindings;n&&274===n.kind?p(t,n.name,!1,!0):!_&&Sg(t)&&f(mce(t));break;case 278:t.exportClause?280===t.exportClause.kind?f(mce(t),!0):l.push(t):e(fce(t,o));break;case 205:!_&&t.isTypeOf&&!t.qualifier&&d(t)&&f(t.getSourceFile(),!0),l.push(t);break;default:un.failBadSyntaxKind(t,"Unexpected import kind.")}var r}(r),{directImports:l,indirectUsers:function(){if(_)return e;if(r.declarations)for(const e of r.declarations)dp(e)&&t.has(e.getSourceFile().fileName)&&f(e);return u.map(hd)}()};function d(e,t=!1){return _c(e,(e=>t&&gce(e)?"quit":rI(e)&&$(e.modifiers,UN)))}function p(e,t,n,r){if(2===i)r||l.push(e);else if(!_){const r=mce(e);un.assert(307===r.kind||267===r.kind),n||function(e,t,n){const r=n.getSymbolAtLocation(t);return!!_ce(e,(e=>{if(!fE(e))return;const{exportClause:t,moduleSpecifier:i}=e;return!i&&t&&mE(t)&&t.elements.some((e=>n.getExportSpecifierLocalTargetSymbol(e)===r))}))}(r,t,o)?f(r,!0):f(r)}}function f(e,t=!1){if(un.assert(!_),!c(e))return;if(u.push(e),!t)return;const n=o.getMergedSymbol(e.symbol);if(!n)return;un.assert(!!(1536&n.flags));const r=m(n);if(r)for(const e of r)BD(e)||f(mce(e),!0)}function m(e){return n.get(RB(e).toString())}}(e,t,i,a,n,r);return{indirectUsers:l,...cce(c,o,a.exportKind,n,s)}}}i(ice,{Core:()=>Cce,DefinitionKind:()=>yce,EntryKind:()=>vce,ExportKind:()=>ace,FindReferencesUse:()=>wce,ImportExport:()=>sce,createImportTracker:()=>oce,findModuleReferences:()=>lce,findReferenceOrRenameEntries:()=>Ece,findReferencedSymbols:()=>Nce,getContextNode:()=>Sce,getExportInfo:()=>pce,getImplementationsAtPosition:()=>Dce,getImportOrExportSymbol:()=>dce,getReferenceEntriesForNode:()=>Pce,isContextWithStartAndEndNode:()=>xce,isDeclarationOfSymbol:()=>Vce,isWriteAccessForReference:()=>Uce,toContextSpan:()=>Tce,toHighlightSpan:()=>Jce,toReferenceEntry:()=>jce,toRenameLocation:()=>Lce});var ace=(e=>(e[e.Named=0]="Named",e[e.Default=1]="Default",e[e.ExportEquals=2]="ExportEquals",e))(ace||{}),sce=(e=>(e[e.Import=0]="Import",e[e.Export=1]="Export",e))(sce||{});function cce(e,t,n,r,i){const o=[],a=[];function s(e,t){o.push([e,t])}if(e)for(const t of e)c(t);return{importSearches:o,singleReferences:a};function c(e){if(271===e.kind)return void(hce(e)&&l(e.name));if(80===e.kind)return void l(e);if(205===e.kind){if(e.qualifier){const n=ab(e.qualifier);n.escapedText===hc(t)&&a.push(n)}else 2===n&&a.push(e.argument.literal);return}if(11!==e.moduleSpecifier.kind)return;if(278===e.kind)return void(e.exportClause&&mE(e.exportClause)&&_(e.exportClause));const{name:o,namedBindings:c}=e.importClause||{name:void 0,namedBindings:void 0};if(c)switch(c.kind){case 274:l(c.name);break;case 275:0!==n&&1!==n||_(c);break;default:un.assertNever(c)}!o||1!==n&&2!==n||i&&o.escapedText!==qQ(t)||s(o,r.getSymbolAtLocation(o))}function l(e){2!==n||i&&!u(e.escapedText)||s(e,r.getSymbolAtLocation(e))}function _(e){if(e)for(const n of e.elements){const{name:e,propertyName:o}=n;u(Wd(o||e))&&(o?(a.push(o),i&&Wd(e)!==t.escapedName||s(e,r.getSymbolAtLocation(e))):s(e,281===n.kind&&n.propertyName?r.getExportSpecifierLocalTargetSymbol(n):r.getSymbolAtLocation(e)))}}function u(e){return e===t.escapedName||0!==n&&"default"===e}}function lce(e,t,n){var r;const i=[],o=e.getTypeChecker();for(const a of t){const t=n.valueDeclaration;if(307===(null==t?void 0:t.kind)){for(const n of a.referencedFiles)e.getSourceFileFromReference(a,n)===t&&i.push({kind:"reference",referencingFile:a,ref:n});for(const n of a.typeReferenceDirectives){const o=null==(r=e.getResolvedTypeReferenceDirectiveFromTypeReferenceDirective(n,a))?void 0:r.resolvedTypeReferenceDirective;void 0!==o&&o.resolvedFileName===t.fileName&&i.push({kind:"reference",referencingFile:a,ref:n})}}uce(a,((e,t)=>{o.getSymbolAtLocation(t)===n&&i.push(Zh(e)?{kind:"implicit",literal:t,referencingFile:a}:{kind:"import",literal:t})}))}return i}function _ce(e,t){return d(307===e.kind?e.statements:e.body.statements,(e=>t(e)||gce(e)&&d(e.body&&e.body.statements,t)))}function uce(e,t){if(e.externalModuleIndicator||void 0!==e.imports)for(const n of e.imports)t(yg(n),n);else _ce(e,(e=>{switch(e.kind){case 278:case 272:{const n=e;n.moduleSpecifier&&TN(n.moduleSpecifier)&&t(n,n.moduleSpecifier);break}case 271:{const n=e;hce(n)&&t(n,n.moduleReference.expression);break}}}))}function dce(e,t,n,r){return r?i():i()||function(){if(!function(e){const{parent:t}=e;switch(t.kind){case 271:return t.name===e&&hce(t);case 276:return!t.propertyName;case 273:case 274:return un.assert(t.name===e),!0;case 208:return Fm(e)&&jm(t.parent.parent);default:return!1}}(e))return;let r=n.getImmediateAliasedSymbol(t);if(!r)return;if(r=function(e,t){if(e.declarations)for(const n of e.declarations){if(gE(n)&&!n.propertyName&&!n.parent.parent.moduleSpecifier)return t.getExportSpecifierLocalTargetSymbol(n)||e;if(HD(n)&&Zm(n.expression)&&!qN(n.name))return t.getSymbolAtLocation(n);if(BE(n)&&cF(n.parent.parent)&&2===eg(n.parent.parent))return t.getExportSpecifierLocalTargetSymbol(n.name)}return e}(r,n),"export="===r.escapedName&&(r=function(e,t){var n,r;if(2097152&e.flags)return t.getImmediateAliasedSymbol(e);const i=un.checkDefined(e.valueDeclaration);return pE(i)?null==(n=tt(i.expression,ou))?void 0:n.symbol:cF(i)?null==(r=tt(i.right,ou))?void 0:r.symbol:qE(i)?i.symbol:void 0}(r,n),void 0===r))return;const i=qQ(r);return void 0===i||"default"===i||i===t.escapedName?{kind:0,symbol:r}:void 0}();function i(){var i;const{parent:s}=e,c=s.parent;if(t.exportSymbol)return 211===s.kind?(null==(i=t.declarations)?void 0:i.some((e=>e===s)))&&cF(c)?_(c,!1):void 0:o(t.exportSymbol,a(s));{const i=function(e,t){const n=VF(e)?e:VD(e)?tc(e):void 0;return n?e.name!==t||RE(n.parent)?void 0:wF(n.parent.parent)?n.parent.parent:void 0:e}(s,e);if(i&&wv(i,32)){if(tE(i)&&i.moduleReference===e){if(r)return;return{kind:0,symbol:n.getSymbolAtLocation(i.name)}}return o(t,a(i))}if(_E(s))return o(t,0);if(pE(s))return l(s);if(pE(c))return l(c);if(cF(s))return _(s,!0);if(cF(c))return _(c,!0);if(CP(s)||_P(s))return o(t,0)}function l(e){if(!e.symbol.parent)return;const n=e.isExportEquals?2:1;return{kind:1,symbol:t,exportInfo:{exportingModuleSymbol:e.symbol.parent,exportKind:n}}}function _(e,r){let i;switch(eg(e)){case 1:i=0;break;case 2:i=2;break;default:return}const a=r?n.getSymbolAtLocation(Sx(nt(e.left,kx))):t;return a&&o(a,i)}}function o(e,t){const r=pce(e,t,n);return r&&{kind:1,symbol:e,exportInfo:r}}function a(e){return wv(e,2048)?1:0}}function pce(e,t,n){const r=e.parent;if(!r)return;const i=n.getMergedSymbol(r);return Gu(i)?{exportingModuleSymbol:i,exportKind:t}:void 0}function fce(e,t){return t.getMergedSymbol(mce(e).symbol)}function mce(e){if(213===e.kind||351===e.kind)return e.getSourceFile();const{parent:t}=e;return 307===t.kind?t:(un.assert(268===t.kind),nt(t.parent,gce))}function gce(e){return 267===e.kind&&11===e.name.kind}function hce(e){return 283===e.moduleReference.kind&&11===e.moduleReference.expression.kind}var yce=(e=>(e[e.Symbol=0]="Symbol",e[e.Label=1]="Label",e[e.Keyword=2]="Keyword",e[e.This=3]="This",e[e.String=4]="String",e[e.TripleSlashReference=5]="TripleSlashReference",e))(yce||{}),vce=(e=>(e[e.Span=0]="Span",e[e.Node=1]="Node",e[e.StringLiteral=2]="StringLiteral",e[e.SearchedLocalFoundProperty=3]="SearchedLocalFoundProperty",e[e.SearchedPropertyFoundLocal=4]="SearchedPropertyFoundLocal",e))(vce||{});function bce(e,t=1){return{kind:t,node:e.name||e,context:kce(e)}}function xce(e){return e&&void 0===e.kind}function kce(e){if(lu(e))return Sce(e);if(e.parent){if(!lu(e.parent)&&!pE(e.parent)){if(Fm(e)){const t=cF(e.parent)?e.parent:kx(e.parent)&&cF(e.parent.parent)&&e.parent.parent.left===e.parent?e.parent.parent:void 0;if(t&&0!==eg(t))return Sce(t)}if(TE(e.parent)||CE(e.parent))return e.parent.parent;if(SE(e.parent)||JF(e.parent)||Tl(e.parent))return e.parent;if(Lu(e)){const t=vg(e);if(t){const e=_c(t,(e=>lu(e)||du(e)||Tu(e)));return lu(e)?Sce(e):e}}const t=_c(e,rD);return t?Sce(t.parent):void 0}return e.parent.name===e||dD(e.parent)||pE(e.parent)||(Rl(e.parent)||VD(e.parent))&&e.parent.propertyName===e||90===e.kind&&wv(e.parent,2080)?Sce(e.parent):void 0}}function Sce(e){if(e)switch(e.kind){case 260:return WF(e.parent)&&1===e.parent.declarations.length?wF(e.parent.parent)?e.parent.parent:X_(e.parent.parent)?Sce(e.parent.parent):e.parent:e;case 208:return Sce(e.parent.parent);case 276:return e.parent.parent.parent;case 281:case 274:return e.parent.parent;case 273:case 280:return e.parent;case 226:return DF(e.parent)?e.parent:e;case 250:case 249:return{start:e.initializer,end:e.expression};case 303:case 304:return cQ(e.parent)?Sce(_c(e.parent,(e=>cF(e)||X_(e)))):e;case 255:return{start:b(e.getChildren(e.getSourceFile()),(e=>109===e.kind)),end:e.caseBlock};default:return e}}function Tce(e,t,n){if(!n)return;const r=xce(n)?zce(n.start,t,n.end):zce(n,t);return r.start!==e.start||r.length!==e.length?{contextSpan:r}:void 0}var Cce,wce=(e=>(e[e.Other=0]="Other",e[e.References=1]="References",e[e.Rename=2]="Rename",e))(wce||{});function Nce(e,t,n,r,i){const o=FX(r,i),a={use:1},s=Cce.getReferencedSymbolsForNode(i,o,e,n,t,a),c=e.getTypeChecker(),l=Cce.getAdjustedNode(o,a),_=function(e){return 90===e.kind||!!lh(e)||_h(e)||137===e.kind&&dD(e.parent)}(l)?c.getSymbolAtLocation(l):void 0;return s&&s.length?B(s,(({definition:e,references:n})=>e&&{definition:c.runWithCancellationToken(t,(t=>function(e,t,n){const r=(()=>{switch(e.type){case 0:{const{symbol:r}=e,{displayParts:i,kind:o}=Oce(r,t,n),a=i.map((e=>e.text)).join(""),s=r.declarations&&fe(r.declarations);return{...Ice(s?Tc(s)||s:n),name:a,kind:o,displayParts:i,context:Sce(s)}}case 1:{const{node:t}=e;return{...Ice(t),name:t.text,kind:"label",displayParts:[sY(t.text,17)]}}case 2:{const{node:t}=e,n=Da(t.kind);return{...Ice(t),name:n,kind:"keyword",displayParts:[{text:n,kind:"keyword"}]}}case 3:{const{node:n}=e,r=t.getSymbolAtLocation(n),i=r&&mue.getSymbolDisplayPartsDocumentationAndSymbolKind(t,r,n.getSourceFile(),tX(n),n).displayParts||[mY("this")];return{...Ice(n),name:"this",kind:"var",displayParts:i}}case 4:{const{node:t}=e;return{...Ice(t),name:t.text,kind:"var",displayParts:[sY(Kd(t),8)]}}case 5:return{textSpan:gQ(e.reference),sourceFile:e.file,name:e.reference.fileName,kind:"string",displayParts:[sY(`"${e.reference.fileName}"`,8)]};default:return un.assertNever(e)}})(),{sourceFile:i,textSpan:o,name:a,kind:s,displayParts:c,context:l}=r;return{containerKind:"",containerName:"",fileName:i.fileName,kind:s,name:a,textSpan:o,displayParts:c,...Tce(o,i,l)}}(e,t,o))),references:n.map((e=>function(e,t){const n=jce(e);return t?{...n,isDefinition:0!==e.kind&&Vce(e.node,t)}:n}(e,_)))})):void 0}function Dce(e,t,n,r,i){const o=FX(r,i);let a;const s=Fce(e,t,n,o,i);if(211===o.parent.kind||208===o.parent.kind||212===o.parent.kind||108===o.kind)a=s&&[...s];else if(s){const r=Ge(s),i=new Set;for(;!r.isEmpty();){const o=r.dequeue();if(!vx(i,jB(o.node)))continue;a=ie(a,o);const s=Fce(e,t,n,o.node,o.node.pos);s&&r.enqueue(...s)}}const c=e.getTypeChecker();return E(a,(e=>function(e,t){const n=Rce(e);if(0!==e.kind){const{node:r}=e;return{...n,...Bce(r,t)}}return{...n,kind:"",displayParts:[]}}(e,c)))}function Fce(e,t,n,r,i){if(307===r.kind)return;const o=e.getTypeChecker();if(304===r.parent.kind){const e=[];return Cce.getReferenceEntriesForShorthandPropertyAssignment(r,o,(t=>e.push(bce(t)))),e}if(108===r.kind||om(r.parent)){const e=o.getSymbolAtLocation(r);return e.valueDeclaration&&[bce(e.valueDeclaration)]}return Pce(i,r,e,n,t,{implementations:!0,use:1})}function Ece(e,t,n,r,i,o,a){return E(Ace(Cce.getReferencedSymbolsForNode(i,r,e,n,t,o)),(t=>a(t,r,e.getTypeChecker())))}function Pce(e,t,n,r,i,o={},a=new Set(r.map((e=>e.fileName)))){return Ace(Cce.getReferencedSymbolsForNode(e,t,n,r,i,o,a))}function Ace(e){return e&&O(e,(e=>e.references))}function Ice(e){const t=e.getSourceFile();return{sourceFile:t,textSpan:zce(rD(e)?e.expression:e,t)}}function Oce(e,t,n){const r=Cce.getIntersectingMeaningFromDeclarations(n,e),i=e.declarations&&fe(e.declarations)||n,{displayParts:o,symbolKind:a}=mue.getSymbolDisplayPartsDocumentationAndSymbolKind(t,e,i.getSourceFile(),i,i,r);return{displayParts:o,kind:a}}function Lce(e,t,n,r,i){return{...Rce(e),...r&&Mce(e,t,n,i)}}function jce(e){const t=Rce(e);if(0===e.kind)return{...t,isWriteAccess:!1};const{kind:n,node:r}=e;return{...t,isWriteAccess:Uce(r),isInString:2===n||void 0}}function Rce(e){if(0===e.kind)return{textSpan:e.textSpan,fileName:e.fileName};{const t=e.node.getSourceFile(),n=zce(e.node,t);return{textSpan:n,fileName:t.fileName,...Tce(n,t,e.context)}}}function Mce(e,t,n,r){if(0!==e.kind&&(zN(t)||Lu(t))){const{node:r,kind:i}=e,o=r.parent,a=t.text,s=BE(o);if(s||VQ(o)&&o.name===r&&void 0===o.dotDotDotToken){const e={prefixText:a+": "},t={suffixText:": "+a};if(3===i)return e;if(4===i)return t;if(s){const n=o.parent;return $D(n)&&cF(n.parent)&&Zm(n.parent.left)?e:t}return e}if(dE(o)&&!o.propertyName)return T((gE(t.parent)?n.getExportSpecifierLocalTargetSymbol(t.parent):n.getSymbolAtLocation(t)).declarations,o)?{prefixText:a+" as "}:aG;if(gE(o)&&!o.propertyName)return t===e.node||n.getSymbolAtLocation(t)===n.getSymbolAtLocation(e.node)?{prefixText:a+" as "}:{suffixText:" as "+a}}if(0!==e.kind&&kN(e.node)&&kx(e.node.parent)){const e=JQ(r);return{prefixText:e,suffixText:e}}return aG}function Bce(e,t){const n=t.getSymbolAtLocation(lu(e)&&e.name?e.name:e);return n?Oce(n,t,e):210===e.kind?{kind:"interface",displayParts:[_Y(21),mY("object literal"),_Y(22)]}:231===e.kind?{kind:"local class",displayParts:[_Y(21),mY("anonymous local class"),_Y(22)]}:{kind:nX(e),displayParts:[]}}function Jce(e){const t=Rce(e);if(0===e.kind)return{fileName:t.fileName,span:{textSpan:t.textSpan,kind:"reference"}};const n=Uce(e.node),r={textSpan:t.textSpan,kind:n?"writtenReference":"reference",isInString:2===e.kind||void 0,...t.contextSpan&&{contextSpan:t.contextSpan}};return{fileName:t.fileName,span:r}}function zce(e,t,n){let r=e.getStart(t),i=(n||e).getEnd();return Lu(e)&&i-r>2&&(un.assert(void 0===n),r+=1,i-=1),269===(null==n?void 0:n.kind)&&(i=n.getFullStart()),Ws(r,i)}function qce(e){return 0===e.kind?e.textSpan:zce(e.node,e.node.getSourceFile())}function Uce(e){const t=lh(e);return!!t&&function(e){if(33554432&e.flags)return!0;switch(e.kind){case 226:case 208:case 263:case 231:case 90:case 266:case 306:case 281:case 273:case 271:case 276:case 264:case 338:case 346:case 291:case 267:case 270:case 274:case 280:case 169:case 304:case 265:case 168:return!0;case 303:return!cQ(e.parent);case 262:case 218:case 176:case 174:case 177:case 178:return!!e.body;case 260:case 172:return!!e.initializer||RE(e.parent);case 173:case 171:case 348:case 341:return!1;default:return un.failBadSyntaxKind(e)}}(t)||90===e.kind||sx(e)}function Vce(e,t){var n;if(!t)return!1;const r=lh(e)||(90===e.kind?e.parent:_h(e)||137===e.kind&&dD(e.parent)?e.parent.parent:void 0),i=r&&cF(r)?r.left:void 0;return!(!r||!(null==(n=t.declarations)?void 0:n.some((e=>e===r||e===i))))}(e=>{function t(e,t){return 1===t.use?e=NX(e):2===t.use&&(e=DX(e)),e}function n(e,t,n){let r;const i=t.get(e.path)||l;for(const e of i)if(dV(e)){const t=n.getSourceFileByPath(e.file),i=fV(n,e);pV(i)&&(r=ie(r,{kind:0,fileName:t.fileName,textSpan:gQ(i)}))}return r}function r(e,t,n){if(e.parent&&eE(e.parent)){const e=n.getAliasedSymbol(t),r=n.getMergedSymbol(e);if(e!==r)return r}}function i(e,t,n,r,i,a){const c=1536&e.flags&&e.declarations&&b(e.declarations,qE);if(!c)return;const l=e.exports.get("export="),u=s(t,e,!!l,n,a);if(!l||!a.has(c.fileName))return u;const d=t.getTypeChecker();return o(t,u,_(e=ix(l,d),void 0,n,a,d,r,i))}function o(e,...t){let n;for(const r of t)if(r&&r.length)if(n)for(const t of r){if(!t.definition||0!==t.definition.type){n.push(t);continue}const r=t.definition.symbol,i=k(n,(e=>!!e.definition&&0===e.definition.type&&e.definition.symbol===r));if(-1===i){n.push(t);continue}const o=n[i];n[i]={definition:o.definition,references:o.references.concat(t.references).sort(((t,n)=>{const r=a(e,t),i=a(e,n);if(r!==i)return vt(r,i);const o=qce(t),s=qce(n);return o.start!==s.start?vt(o.start,s.start):vt(o.length,s.length)}))}}else n=r;return n}function a(e,t){const n=0===t.kind?e.getSourceFile(t.fileName):t.node.getSourceFile();return e.getSourceFiles().indexOf(n)}function s(e,t,n,r,i){un.assert(!!t.valueDeclaration);const o=B(lce(e,r,t),(e=>{if("import"===e.kind){const t=e.literal.parent;if(MD(t)){const e=nt(t.parent,BD);if(n&&!e.qualifier)return}return bce(e.literal)}return"implicit"===e.kind?bce(e.literal.text!==qu&&AI(e.referencingFile,(e=>2&e.transformFlags?kE(e)||SE(e)||wE(e)?e:void 0:"skip"))||e.referencingFile.statements[0]||e.referencingFile):{kind:0,fileName:e.referencingFile.fileName,textSpan:gQ(e.ref)}}));if(t.declarations)for(const e of t.declarations)switch(e.kind){case 307:break;case 267:i.has(e.getSourceFile().fileName)&&o.push(bce(e.name));break;default:un.assert(!!(33554432&t.flags),"Expected a module symbol to be declared by a SourceFile or ModuleDeclaration.")}const a=t.exports.get("export=");if(null==a?void 0:a.declarations)for(const e of a.declarations){const t=e.getSourceFile();if(i.has(t.fileName)){const n=cF(e)&&HD(e.left)?e.left.expression:pE(e)?un.checkDefined(yX(e,95,t)):Tc(e)||e;o.push(bce(n))}}return o.length?[{definition:{type:0,symbol:t},references:o}]:l}function c(e){return 148===e.kind&&LD(e.parent)&&148===e.parent.operator}function _(e,t,n,r,i,o,a){const s=t&&function(e,t,n,r){const{parent:i}=t;return gE(i)&&r?R(t,e,i,n):f(e.declarations,(r=>{if(!r.parent){if(33554432&e.flags)return;un.fail(`Unexpected symbol at ${un.formatSyntaxKind(t.kind)}: ${un.formatSymbol(e)}`)}return SD(r.parent)&&FD(r.parent.parent)?n.getPropertyOfType(n.getTypeFromTypeNode(r.parent.parent),e.name):void 0}))}(e,t,i,!Z(a))||e,c=t?X(t,s):7,l=[],_=new y(n,r,t?function(e){switch(e.kind){case 176:case 137:return 1;case 80:if(__(e.parent))return un.assert(e.parent.name===e),2;default:return 0}}(t):0,i,o,c,a,l),u=Z(a)&&s.declarations?b(s.declarations,gE):void 0;if(u)j(u.name,s,u,_.createSearch(t,e,void 0),_,!0,!0);else if(t&&90===t.kind&&"default"===s.escapedName&&s.parent)M(t,s,_),v(t,s,{exportingModuleSymbol:s.parent,exportKind:1},_);else{const e=_.createSearch(t,s,void 0,{allSearchSymbols:t?H(s,t,i,2===a.use,!!a.providePrefixAndSuffixTextForRename,!!a.implementations):[s]});p(s,_,e)}return l}function p(e,t,n){const r=function(e){const{declarations:t,flags:n,parent:r,valueDeclaration:i}=e;if(i&&(218===i.kind||231===i.kind))return i;if(!t)return;if(8196&n){const e=b(t,(e=>Cv(e,2)||Hl(e)));return e?Sh(e,263):void 0}if(t.some(VQ))return;const o=r&&!(262144&e.flags);if(o&&(!Gu(r)||r.globalExports))return;let a;for(const e of t){const t=tX(e);if(a&&a!==t)return;if(!t||307===t.kind&&!Qp(t))return;if(a=t,eF(a)){let e;for(;e=Rg(a);)a=e}}return o?a.getSourceFile():a}(e);if(r)A(r,r.getSourceFile(),n,t,!(qE(r)&&!T(t.sourceFiles,r)));else for(const e of t.sourceFiles)t.cancellationToken.throwIfCancellationRequested(),C(e,n,t)}let m;var g;function h(e){if(!(33555968&e.flags))return;const t=e.declarations&&b(e.declarations,(e=>!qE(e)&&!QF(e)));return t&&t.symbol}e.getReferencedSymbolsForNode=function(e,a,u,d,p,m={},g=new Set(d.map((e=>e.fileName)))){var h,y;if(qE(a=t(a,m))){const t=Wce.getReferenceAtPosition(a,e,u);if(!(null==t?void 0:t.file))return;const r=u.getTypeChecker().getMergedSymbol(t.file.symbol);if(r)return s(u,r,!1,d,g);const i=u.getFileIncludeReasons();if(!i)return;return[{definition:{type:5,reference:t.reference,file:a},references:n(t.file,i,u)||l}]}if(!m.implementations){const e=function(e,t,n){if(xQ(e.kind)){if(116===e.kind&&iF(e.parent))return;if(148===e.kind&&!c(e))return;return function(e,t,n,r){const i=O(e,(e=>(n.throwIfCancellationRequested(),B(D(e,Da(t),e),(e=>{if(e.kind===t&&(!r||r(e)))return bce(e)})))));return i.length?[{definition:{type:2,node:i[0].node},references:i}]:void 0}(t,e.kind,n,148===e.kind?c:void 0)}if(lf(e.parent)&&e.parent.name===e)return function(e,t){const n=O(e,(e=>(t.throwIfCancellationRequested(),B(D(e,"meta",e),(e=>{const t=e.parent;if(lf(t))return bce(t)})))));return n.length?[{definition:{type:2,node:n[0].node},references:n}]:void 0}(t,n);if(GN(e)&&uD(e.parent))return[{definition:{type:2,node:e},references:[bce(e)]}];if(VG(e)){const t=qG(e.parent,e.text);return t&&E(t.parent,t)}return WG(e)?E(e.parent,e):rX(e)?function(e,t,n){let r=Zf(e,!1,!1),i=256;switch(r.kind){case 174:case 173:if(Mf(r)){i&=Jv(r),r=r.parent;break}case 172:case 171:case 176:case 177:case 178:i&=Jv(r),r=r.parent;break;case 307:if(MI(r)||W(e))return;case 262:case 218:break;default:return}const o=O(307===r.kind?t:[r.getSourceFile()],(e=>(n.throwIfCancellationRequested(),D(e,"this",qE(r)?e:r).filter((e=>{if(!rX(e))return!1;const t=Zf(e,!1,!1);if(!ou(t))return!1;switch(r.kind){case 218:case 262:return r.symbol===t.symbol;case 174:case 173:return Mf(r)&&r.symbol===t.symbol;case 231:case 263:case 210:return t.parent&&ou(t.parent)&&r.symbol===t.parent.symbol&&Nv(t)===!!i;case 307:return 307===t.kind&&!MI(t)&&!W(e)}}))))).map((e=>bce(e)));return[{definition:{type:3,node:f(o,(e=>oD(e.node.parent)?e.node:void 0))||e},references:o}]}(e,t,n):108===e.kind?function(e){let t=rm(e,!1);if(!t)return;let n=256;switch(t.kind){case 172:case 171:case 174:case 173:case 176:case 177:case 178:n&=Jv(t),t=t.parent;break;default:return}const r=B(D(t.getSourceFile(),"super",t),(e=>{if(108!==e.kind)return;const r=rm(e,!1);return r&&Nv(r)===!!n&&r.parent.symbol===t.symbol?bce(e):void 0}));return[{definition:{type:0,symbol:t.symbol},references:r}]}(e):void 0}(a,d,p);if(e)return e}const v=u.getTypeChecker(),b=v.getSymbolAtLocation(dD(a)&&a.parent.name||a);if(!b){if(!m.implementations&&Lu(a)){if(UQ(a)){const e=u.getFileIncludeReasons(),t=null==(y=null==(h=u.getResolvedModuleFromModuleSpecifier(a))?void 0:h.resolvedModule)?void 0:y.resolvedFileName,r=t?u.getSourceFile(t):void 0;if(r)return[{definition:{type:4,node:a},references:n(r,e,u)||l}]}return function(e,t,n,r){const i=SX(e,n),o=O(t,(t=>(r.throwIfCancellationRequested(),B(D(t,e.text),(r=>{if(Lu(r)&&r.text===e.text){if(!i)return NN(r)&&!Rb(r,t)?void 0:bce(r,2);{const e=SX(r,n);if(i!==n.getStringType()&&(i===e||function(e,t){if(sD(e.parent))return t.getPropertyOfType(t.getTypeAtLocation(e.parent.parent),e.text)}(r,n)))return bce(r,2)}}})))));return[{definition:{type:4,node:e},references:o}]}(a,d,v,p)}return}if("export="===b.escapedName)return s(u,b.parent,!1,d,g);const x=i(b,u,d,p,m,g);if(x&&!(33554432&b.flags))return x;const k=r(a,b,v),S=k&&i(k,u,d,p,m,g);return o(u,x,_(b,a,d,g,v,p,m),S)},e.getAdjustedNode=t,e.getReferencesForFileName=function(e,t,r,i=new Set(r.map((e=>e.fileName)))){var o,a;const c=null==(o=t.getSourceFile(e))?void 0:o.symbol;if(c)return(null==(a=s(t,c,!1,r,i)[0])?void 0:a.references)||l;const _=t.getFileIncludeReasons(),u=t.getSourceFile(e);return u&&_&&n(u,_,t)||l},(g=m||(m={}))[g.None=0]="None",g[g.Constructor=1]="Constructor",g[g.Class=2]="Class";class y{constructor(e,t,n,r,i,o,a,s){this.sourceFiles=e,this.sourceFilesSet=t,this.specialSearchKind=n,this.checker=r,this.cancellationToken=i,this.searchMeaning=o,this.options=a,this.result=s,this.inheritsFromCache=new Map,this.markSeenContainingTypeReference=TQ(),this.markSeenReExportRHS=TQ(),this.symbolIdToReferences=[],this.sourceFileToSeenSymbols=[]}includesSourceFile(e){return this.sourceFilesSet.has(e.fileName)}getImportSearches(e,t){return this.importTracker||(this.importTracker=oce(this.sourceFiles,this.sourceFilesSet,this.checker,this.cancellationToken)),this.importTracker(e,t,2===this.options.use)}createSearch(e,t,n,r={}){const{text:i=Dy(hc(yb(t)||h(t)||t)),allSearchSymbols:o=[t]}=r,a=pc(i),s=this.options.implementations&&e?function(e,t,n){const r=GG(e)?e.parent:void 0,i=r&&n.getTypeAtLocation(r.expression),o=B(i&&(i.isUnionOrIntersection()?i.types:i.symbol===t.parent?void 0:[i]),(e=>e.symbol&&96&e.symbol.flags?e.symbol:void 0));return 0===o.length?void 0:o}(e,t,this.checker):void 0;return{symbol:t,comingFrom:n,text:i,escapedText:a,parents:s,allSearchSymbols:o,includes:e=>T(o,e)}}referenceAdder(e){const t=RB(e);let n=this.symbolIdToReferences[t];return n||(n=this.symbolIdToReferences[t]=[],this.result.push({definition:{type:0,symbol:e},references:n})),(e,t)=>n.push(bce(e,t))}addStringOrCommentReference(e,t){this.result.push({definition:void 0,references:[{kind:0,fileName:e,textSpan:t}]})}markSearchedSymbols(e,t){const n=jB(e),r=this.sourceFileToSeenSymbols[n]||(this.sourceFileToSeenSymbols[n]=new Set);let i=!1;for(const e of t)i=q(r,RB(e))||i;return i}}function v(e,t,n,r){const{importSearches:i,singleReferences:o,indirectUsers:a}=r.getImportSearches(t,n);if(o.length){const e=r.referenceAdder(t);for(const t of o)x(t,r)&&e(t)}for(const[e,t]of i)P(e.getSourceFile(),r.createSearch(e,t,1),r);if(a.length){let i;switch(n.exportKind){case 0:i=r.createSearch(e,t,1);break;case 1:i=2===r.options.use?void 0:r.createSearch(e,t,1,{text:"default"})}if(i)for(const e of a)C(e,i,r)}}function x(e,t){return!(!I(e,t)||2===t.options.use&&(!zN(e)&&!Rl(e.parent)||Rl(e.parent)&&$d(e)))}function S(e,t){if(e.declarations)for(const n of e.declarations){const r=n.getSourceFile();P(r,t.createSearch(n,e,0),t,t.includesSourceFile(r))}}function C(e,t,n){void 0!==z8(e).get(t.escapedText)&&P(e,t,n)}function w(e,t,n,r,i=n){const o=Ys(e.parent,e.parent.parent)?ge(t.getSymbolsOfParameterPropertyDeclaration(e.parent,e.text)):t.getSymbolAtLocation(e);if(o)for(const a of D(n,o.name,i)){if(!zN(a)||a===e||a.escapedText!==e.escapedText)continue;const n=t.getSymbolAtLocation(a);if(n===o||t.getShorthandAssignmentValueSymbol(a.parent)===o||gE(a.parent)&&R(a,n,a.parent,t)===o){const e=r(a);if(e)return e}}}function D(e,t,n=e){return B(F(e,t,n),(t=>{const n=FX(e,t);return n===e?void 0:n}))}function F(e,t,n=e){const r=[];if(!t||!t.length)return r;const i=e.text,o=i.length,a=t.length;let s=i.indexOf(t,n.pos);for(;s>=0&&!(s>n.end);){const e=s+a;0!==s&&ps(i.charCodeAt(s-1),99)||e!==o&&ps(i.charCodeAt(e),99)||r.push(s),s=i.indexOf(t,s+a+1)}return r}function E(e,t){const n=e.getSourceFile(),r=t.text,i=B(D(n,r,e),(e=>e===t||VG(e)&&qG(e,r)===t?bce(e):void 0));return[{definition:{type:1,node:t},references:i}]}function P(e,t,n,r=!0){return n.cancellationToken.throwIfCancellationRequested(),A(e,e,t,n,r)}function A(e,t,n,r,i){if(r.markSearchedSymbols(t,n.allSearchSymbols))for(const o of F(t,n.text,e))L(t,o,n,r,i)}function I(e,t){return!!(FG(e)&t.searchMeaning)}function L(e,t,n,r,i){const o=FX(e,t);if(!function(e,t){switch(e.kind){case 81:if($E(e.parent))return!0;case 80:return e.text.length===t.length;case 15:case 11:{const n=e;return n.text.length===t.length&&(ZG(n)||QG(e)||eX(e)||GD(e.parent)&&tg(e.parent)&&e.parent.arguments[1]===e||Rl(e.parent))}case 9:return ZG(e)&&e.text.length===t.length;case 90:return 7===t.length;default:return!1}}(o,n.text))return void(!r.options.implementations&&(r.options.findInStrings&&JX(e,t)||r.options.findInComments&&_Q(e,t))&&r.addStringOrCommentReference(e.fileName,Vs(t,n.text.length)));if(!I(o,r))return;let a=r.checker.getSymbolAtLocation(o);if(!a)return;const s=o.parent;if(dE(s)&&s.propertyName===o)return;if(gE(s))return un.assert(80===o.kind||11===o.kind),void j(o,a,s,n,r,i);if(wl(s)&&s.isNameFirst&&s.typeExpression&&oP(s.typeExpression.type)&&s.typeExpression.type.jsDocPropertyTags&&u(s.typeExpression.type.jsDocPropertyTags))return void function(e,t,n,r){const i=r.referenceAdder(n.symbol);M(t,n.symbol,r),d(e,(e=>{nD(e.name)&&i(e.name.left)}))}(s.typeExpression.type.jsDocPropertyTags,o,n,r);const c=function(e,t,n,r){const{checker:i}=r;return K(t,n,i,!1,2!==r.options.use||!!r.options.providePrefixAndSuffixTextForRename,((n,r,i,o)=>(i&&G(t)!==G(i)&&(i=void 0),e.includes(i||r||n)?{symbol:!r||6&nx(n)?n:r,kind:o}:void 0)),(t=>!(e.parents&&!e.parents.some((e=>V(t.parent,e,r.inheritsFromCache,i))))))}(n,a,o,r);if(c){switch(r.specialSearchKind){case 0:i&&M(o,c,r);break;case 1:!function(e,t,n,r){AG(e)&&M(e,n.symbol,r);const i=()=>r.referenceAdder(n.symbol);if(__(e.parent))un.assert(90===e.kind||e.parent.name===e),function(e,t,n){const r=J(e);if(r&&r.declarations)for(const e of r.declarations){const r=yX(e,137,t);un.assert(176===e.kind&&!!r),n(r)}e.exports&&e.exports.forEach((e=>{const t=e.valueDeclaration;if(t&&174===t.kind){const e=t.body;e&&Y(e,110,(e=>{AG(e)&&n(e)}))}}))}(n.symbol,t,i());else{const t=eb(zG(e).parent);t&&(function(e,t){const n=J(e.symbol);if(n&&n.declarations)for(const e of n.declarations){un.assert(176===e.kind);const n=e.body;n&&Y(n,108,(e=>{PG(e)&&t(e)}))}}(t,i()),function(e,t){if(function(e){return!!J(e.symbol)}(e))return;const n=e.symbol,r=t.createSearch(void 0,n,void 0);p(n,t,r)}(t,r))}}(o,e,n,r);break;case 2:!function(e,t,n){M(e,t.symbol,n);const r=e.parent;if(2===n.options.use||!__(r))return;un.assert(r.name===e);const i=n.referenceAdder(t.symbol);for(const e of r.members)f_(e)&&Nv(e)&&e.body&&e.body.forEachChild((function e(t){110===t.kind?i(t):n_(t)||__(t)||t.forEachChild(e)}))}(o,n,r);break;default:un.assertNever(r.specialSearchKind)}Fm(o)&&VD(o.parent)&&jm(o.parent.parent.parent)&&(a=o.parent.symbol,!a)||function(e,t,n,r){const i=dce(e,t,r.checker,1===n.comingFrom);if(!i)return;const{symbol:o}=i;0===i.kind?Z(r.options)||S(o,r):v(e,o,i.exportInfo,r)}(o,a,n,r)}else!function({flags:e,valueDeclaration:t},n,r){const i=r.checker.getShorthandAssignmentValueSymbol(t),o=t&&Tc(t);33554432&e||!o||!n.includes(i)||M(o,i,r)}(a,n,r)}function j(e,t,n,r,i,o,a){un.assert(!a||!!i.options.providePrefixAndSuffixTextForRename,"If alwaysGetReferences is true, then prefix/suffix text must be enabled");const{parent:s,propertyName:c,name:l}=n,_=s.parent,u=R(e,t,n,i.checker);if(a||r.includes(u)){if(c?e===c?(_.moduleSpecifier||d(),o&&2!==i.options.use&&i.markSeenReExportRHS(l)&&M(l,un.checkDefined(n.symbol),i)):i.markSeenReExportRHS(e)&&d():2===i.options.use&&$d(l)||d(),!Z(i.options)||a){const t=$d(e)||$d(n.name)?1:0,r=un.checkDefined(n.symbol),o=pce(r,t,i.checker);o&&v(e,r,o,i)}if(1!==r.comingFrom&&_.moduleSpecifier&&!c&&!Z(i.options)){const e=i.checker.getExportSpecifierLocalTargetSymbol(n);e&&S(e,i)}}function d(){o&&M(e,u,i)}}function R(e,t,n,r){return function(e,t){const{parent:n,propertyName:r,name:i}=t;return un.assert(r===e||i===e),r?r===e:!n.parent.moduleSpecifier}(e,n)&&r.getExportSpecifierLocalTargetSymbol(n)||t}function M(e,t,n){const{kind:r,symbol:i}="kind"in t?t:{kind:void 0,symbol:t};if(2===n.options.use&&90===e.kind)return;const o=n.referenceAdder(i);n.options.implementations?function(e,t,n){if(ch(e)&&(33554432&(r=e.parent).flags?!KF(r)&&!GF(r):Ef(r)?Fu(r):i_(r)?r.body:__(r)||iu(r)))return void t(e);var r;if(80!==e.kind)return;304===e.parent.kind&&Q(e,n.checker,t);const i=z(e);if(i)return void t(i);const o=_c(e,(e=>!nD(e.parent)&&!v_(e.parent)&&!g_(e.parent))),a=o.parent;if(Du(a)&&a.type===o&&n.markSeenContainingTypeReference(a))if(Fu(a))s(a.initializer);else if(n_(a)&&a.body){const e=a.body;241===e.kind?wf(e,(e=>{e.expression&&s(e.expression)})):s(e)}else V_(a)&&s(a.expression);function s(e){U(e)&&t(e)}}(e,o,n):o(e,r)}function J(e){return e.members&&e.members.get("__constructor")}function z(e){return zN(e)||HD(e)?z(e.parent):mF(e)?tt(e.parent.parent,en(__,KF)):void 0}function U(e){switch(e.kind){case 217:return U(e.expression);case 219:case 218:case 210:case 231:case 209:return!0;default:return!1}}function V(e,t,n,r){if(e===t)return!0;const i=RB(e)+","+RB(t),o=n.get(i);if(void 0!==o)return o;n.set(i,!1);const a=!!e.declarations&&e.declarations.some((e=>bh(e).some((e=>{const i=r.getTypeAtLocation(e);return!!i&&!!i.symbol&&V(i.symbol,t,n,r)}))));return n.set(i,a),a}function W(e){return 80===e.kind&&169===e.parent.kind&&e.parent.name===e}function H(e,t,n,r,i,o){const a=[];return K(e,t,n,r,!(r&&i),((t,n,r)=>{r&&G(e)!==G(r)&&(r=void 0),a.push(r||n||t)}),(()=>!o)),a}function K(e,t,n,i,o,a,s){const c=q8(t);if(c){const e=n.getShorthandAssignmentValueSymbol(t.parent);if(e&&i)return a(e,void 0,void 0,3);const r=n.getContextualType(c.parent),o=r&&f(U8(c,n,r,!0),(e=>d(e,4)));if(o)return o;const s=function(e,t){return cQ(e.parent.parent)?t.getPropertySymbolOfDestructuringAssignment(e):void 0}(t,n),l=s&&a(s,void 0,void 0,4);if(l)return l;const _=e&&a(e,void 0,void 0,3);if(_)return _}const l=r(t,e,n);if(l){const e=a(l,void 0,void 0,1);if(e)return e}const _=d(e);if(_)return _;if(e.valueDeclaration&&Ys(e.valueDeclaration,e.valueDeclaration.parent)){const t=n.getSymbolsOfParameterPropertyDeclaration(nt(e.valueDeclaration,oD),e.name);return un.assert(2===t.length&&!!(1&t[0].flags)&&!!(4&t[1].flags)),d(1&e.flags?t[1]:t[0])}const u=Wu(e,281);if(!i||u&&!u.propertyName){const e=u&&n.getExportSpecifierLocalTargetSymbol(u);if(e){const t=a(e,void 0,void 0,1);if(t)return t}}if(!i){let r;return r=o?VQ(t.parent)?WQ(n,t.parent):void 0:p(e,n),r&&d(r,4)}if(un.assert(i),o){const t=p(e,n);return t&&d(t,4)}function d(e,t){return f(n.getRootSymbols(e),(r=>a(e,r,void 0,t)||(r.parent&&96&r.parent.flags&&s(r)?function(e,t,n,r){const i=new Set;return function e(o){if(96&o.flags&&vx(i,o))return f(o.declarations,(i=>f(bh(i),(i=>{const o=n.getTypeAtLocation(i),a=o&&o.symbol&&n.getPropertyOfType(o,t);return o&&a&&(f(n.getRootSymbols(a),r)||e(o.symbol))}))))}(e)}(r.parent,r.name,n,(n=>a(e,r,n,t))):void 0)))}function p(e,t){const n=Wu(e,208);if(n&&VQ(n))return WQ(t,n)}}function G(e){return!!e.valueDeclaration&&!!(256&Mv(e.valueDeclaration))}function X(e,t){let n=FG(e);const{declarations:r}=t;if(r){let e;do{e=n;for(const e of r){const t=DG(e);t&n&&(n|=t)}}while(n!==e)}return n}function Q(e,t,n){const r=t.getSymbolAtLocation(e),i=t.getShorthandAssignmentValueSymbol(r.valueDeclaration);if(i)for(const e of i.getDeclarations())1&DG(e)&&n(e)}function Y(e,t,n){PI(e,(e=>{e.kind===t&&n(e),Y(e,t,n)}))}function Z(e){return 2===e.use&&e.providePrefixAndSuffixTextForRename}e.eachExportReference=function(e,t,n,r,i,o,a,s){const c=oce(e,new Set(e.map((e=>e.fileName))),t,n),{importSearches:l,indirectUsers:_,singleReferences:u}=c(r,{exportKind:a?1:0,exportingModuleSymbol:i},!1);for(const[e]of l)s(e);for(const e of u)zN(e)&&BD(e.parent)&&s(e);for(const e of _)for(const n of D(e,a?"default":o)){const e=t.getSymbolAtLocation(n),i=$(null==e?void 0:e.declarations,(e=>!!tt(e,pE)));!zN(n)||Rl(n.parent)||e!==r&&!i||s(n)}},e.isSymbolReferencedInFile=function(e,t,n,r=n){return w(e,t,n,(()=>!0),r)||!1},e.eachSymbolReferenceInFile=w,e.getTopMostDeclarationNamesInFile=function(e,t){return N(D(t,e),(e=>!!lh(e))).reduce(((e,t)=>{const n=function(e){let t=0;for(;e;)e=tX(e),t++;return t}(t);return $(e.declarationNames)&&n!==e.depth?ne===i))&&r(t,a))return!0}return!1},e.getIntersectingMeaningFromDeclarations=X,e.getReferenceEntriesForShorthandPropertyAssignment=Q})(Cce||(Cce={}));var Wce={};function $ce(e,t,n,r,i){var o;const a=Kce(t,n,e),s=a&&[(c=a.reference.fileName,_=a.fileName,u=a.unverified,{fileName:_,textSpan:Ws(0,0),kind:"script",name:c,containerName:void 0,containerKind:void 0,unverified:u})]||l;var c,_,u;if(null==a?void 0:a.file)return s;const p=FX(t,n);if(p===t)return;const{parent:f}=p,m=e.getTypeChecker();if(164===p.kind||zN(p)&&mP(f)&&f.tagName===p)return function(e,t){const n=_c(t,l_);if(!n||!n.name)return;const r=_c(n,__);if(!r)return;const i=hh(r);if(!i)return;const o=oh(i.expression),a=pF(o)?o.symbol:e.getSymbolAtLocation(o);if(!a)return;const s=fc(Op(n.name)),c=Dv(n)?e.getPropertyOfType(e.getTypeOfSymbol(a),s):e.getPropertyOfType(e.getDeclaredTypeOfSymbol(a),s);return c?nle(e,c,t):void 0}(m,p)||l;if(VG(p)){const e=qG(p.parent,p.text);return e?[ile(m,e,"label",p.text,void 0)]:void 0}switch(p.kind){case 107:const e=_c(p.parent,(e=>uD(e)?"quit":i_(e)));return e?[sle(m,e)]:void 0;case 90:if(!LE(p.parent))break;case 84:const n=_c(p.parent,BF);if(n)return[ole(n,t)]}if(135===p.kind){const e=_c(p,(e=>i_(e)));return e&&$(e.modifiers,(e=>134===e.kind))?[sle(m,e)]:void 0}if(127===p.kind){const e=_c(p,(e=>i_(e)));return e&&e.asteriskToken?[sle(m,e)]:void 0}if(GN(p)&&uD(p.parent)){const e=p.parent.parent,{symbol:t,failedAliasResolution:n}=tle(e,m,i),r=N(e.members,uD),o=t?m.symbolToString(t,e):"",a=p.getSourceFile();return E(r,(e=>{let{pos:t}=Lb(e);return t=Xa(a.text,t),ile(m,e,"constructor","static {}",o,!1,n,{start:t,length:6})}))}let{symbol:g,failedAliasResolution:h}=tle(p,m,i),y=p;if(r&&h){const e=d([p,...(null==g?void 0:g.declarations)||l],(e=>_c(e,kp))),t=e&&hg(e);t&&(({symbol:g,failedAliasResolution:h}=tle(t,m,i)),y=t)}if(!g&&UQ(y)){const n=null==(o=e.getResolvedModuleFromModuleSpecifier(y,t))?void 0:o.resolvedModule;if(n)return[{name:y.text,fileName:n.resolvedFileName,containerName:void 0,containerKind:void 0,kind:"script",textSpan:Vs(0,0),failedAliasResolution:h,isAmbient:$I(n.resolvedFileName),unverified:y!==p}]}if(!g)return K(s,function(e,t){return B(t.getIndexInfosAtLocation(e),(e=>e.declaration&&sle(t,e.declaration)))}(p,m));if(r&&v(g.declarations,(e=>e.getSourceFile().fileName===t.fileName)))return;const b=function(e,t){const n=function(e){const t=_c(e,(e=>!GG(e))),n=null==t?void 0:t.parent;return n&&O_(n)&&_m(n)===t?n:void 0}(t),r=n&&e.getResolvedSignature(n);return tt(r&&r.declaration,(e=>n_(e)&&!bD(e)))}(m,p);if(b&&(!vu(p.parent)||!function(e){switch(e.kind){case 176:case 185:case 179:case 180:return!0;default:return!1}}(b))){const e=sle(m,b,h);let t=e=>e!==b;if(m.getRootSymbols(g).some((e=>function(e,t){var n;return e===t.symbol||e===t.symbol.parent||nb(t.parent)||!O_(t.parent)&&e===(null==(n=tt(t.parent,ou))?void 0:n.symbol)}(e,b)))){if(!dD(b))return[e];t=e=>e!==b&&(HF(e)||pF(e))}const n=nle(m,g,p,h,t)||l;return 108===p.kind?[e,...n]:[...n,e]}if(304===p.parent.kind){const e=m.getShorthandAssignmentValueSymbol(g.valueDeclaration);return K((null==e?void 0:e.declarations)?e.declarations.map((t=>rle(t,m,e,p,!1,h))):l,Hce(m,p))}if(e_(p)&&VD(f)&&qD(f.parent)&&p===(f.propertyName||f.name)){const e=DQ(p),t=m.getTypeAtLocation(f.parent);return void 0===e?l:O(t.isUnion()?t.types:[t],(t=>{const n=t.getProperty(e);return n&&nle(m,n,p)}))}const x=Hce(m,p);return K(s,x.length?x:nle(m,g,p,h))}function Hce(e,t){const n=q8(t);if(n){const r=n&&e.getContextualType(n.parent);if(r)return O(U8(n,e,r,!1),(n=>nle(e,n,t)))}return l}function Kce(e,t,n){var r,i;const o=cle(e.referencedFiles,t);if(o){const t=n.getSourceFileFromReference(e,o);return t&&{reference:o,fileName:t.fileName,file:t,unverified:!1}}const a=cle(e.typeReferenceDirectives,t);if(a){const t=null==(r=n.getResolvedTypeReferenceDirectiveFromTypeReferenceDirective(a,e))?void 0:r.resolvedTypeReferenceDirective,i=t&&n.getSourceFile(t.resolvedFileName);return i&&{reference:a,fileName:i.fileName,file:i,unverified:!1}}const s=cle(e.libReferenceDirectives,t);if(s){const e=n.getLibFileFromReference(s);return e&&{reference:s,fileName:e.fileName,file:e,unverified:!1}}if(e.imports.length||e.moduleAugmentations.length){const r=EX(e,t);let o;if(UQ(r)&&Ts(r.text)&&(o=n.getResolvedModuleFromModuleSpecifier(r,e))){const t=null==(i=o.resolvedModule)?void 0:i.resolvedFileName,a=t||Ro(Do(e.fileName),r.text);return{file:n.getSourceFile(a),fileName:a,reference:{pos:r.getStart(),end:r.getEnd(),fileName:r.text},unverified:!t}}}}i(Wce,{createDefinitionInfo:()=>rle,getDefinitionAndBoundSpan:()=>ele,getDefinitionAtPosition:()=>$ce,getReferenceAtPosition:()=>Kce,getTypeDefinitionAtPosition:()=>Yce});var Gce=new Set(["Array","ArrayLike","ReadonlyArray","Promise","PromiseLike","Iterable","IterableIterator","AsyncIterable","Set","WeakSet","ReadonlySet","Map","WeakMap","ReadonlyMap","Partial","Required","Readonly","Pick","Omit"]);function Xce(e,t){if(!t.aliasSymbol)return!1;const n=t.aliasSymbol.name;if(!Gce.has(n))return!1;const r=e.resolveName(n,void 0,788968,!1);return!!r&&r===t.aliasSymbol}function Qce(e,t,n,r){var i,o;if(4&mx(t)&&function(e,t){const n=t.symbol.name;if(!Gce.has(n))return!1;const r=e.resolveName(n,void 0,788968,!1);return!!r&&r===t.target.symbol}(e,t))return Zce(e.getTypeArguments(t)[0],e,n,r);if(Xce(e,t)&&t.aliasTypeArguments)return Zce(t.aliasTypeArguments[0],e,n,r);if(32&mx(t)&&t.target&&Xce(e,t.target)){const a=null==(o=null==(i=t.aliasSymbol)?void 0:i.declarations)?void 0:o[0];if(a&&GF(a)&&vD(a.type)&&a.type.typeArguments)return Zce(e.getTypeAtLocation(a.type.typeArguments[0]),e,n,r)}return[]}function Yce(e,t,n){const r=FX(t,n);if(r===t)return;if(lf(r.parent)&&r.parent.name===r)return Zce(e.getTypeAtLocation(r.parent),e,r.parent,!1);const{symbol:i,failedAliasResolution:o}=tle(r,e,!1);if(!i)return;const a=e.getTypeOfSymbolAtLocation(i,r),s=function(e,t,n){if(t.symbol===e||e.valueDeclaration&&t.symbol&&VF(e.valueDeclaration)&&e.valueDeclaration.initializer===t.symbol.valueDeclaration){const e=t.getCallSignatures();if(1===e.length)return n.getReturnTypeOfSignature(ge(e))}}(i,a,e),c=s&&Zce(s,e,r,o),[l,_]=c&&0!==c.length?[s,c]:[a,Zce(a,e,r,o)];return _.length?[...Qce(e,l,r,o),..._]:!(111551&i.flags)&&788968&i.flags?nle(e,ix(i,e),r,o):void 0}function Zce(e,t,n,r){return O(!e.isUnion()||32&e.flags?[e]:e.types,(e=>e.symbol&&nle(t,e.symbol,n,r)))}function ele(e,t,n){const r=$ce(e,t,n);if(!r||0===r.length)return;const i=cle(t.referencedFiles,n)||cle(t.typeReferenceDirectives,n)||cle(t.libReferenceDirectives,n);if(i)return{definitions:r,textSpan:gQ(i)};const o=FX(t,n);return{definitions:r,textSpan:Vs(o.getStart(),o.getWidth())}}function tle(e,t,n){const r=t.getSymbolAtLocation(e);let i=!1;if((null==r?void 0:r.declarations)&&2097152&r.flags&&!n&&function(e,t){return!!(80===e.kind||11===e.kind&&Rl(e.parent))&&(e.parent===t||274!==t.kind)}(e,r.declarations[0])){const e=t.getAliasedSymbol(r);if(e.declarations)return{symbol:e};i=!0}return{symbol:r,failedAliasResolution:i}}function nle(e,t,n,r,i){const o=void 0!==i?N(t.declarations,i):t.declarations,a=!i&&(function(){if(32&t.flags&&!(19&t.flags)&&(AG(n)||137===n.kind)){const e=b(o,__);return e&&c(e.members,!0)}}()||(IG(n)||YG(n)?c(o,!1):void 0));if(a)return a;const s=N(o,(e=>!function(e){if(!qm(e))return!1;const t=_c(e,(e=>!!nb(e)||!qm(e)&&"quit"));return!!t&&5===eg(t)}(e)));return E($(s)?s:o,(i=>rle(i,e,t,n,!1,r)));function c(i,o){if(!i)return;const a=i.filter(o?dD:n_),s=a.filter((e=>!!e.body));return a.length?0!==s.length?s.map((r=>rle(r,e,t,n))):[rle(ve(a),e,t,n,!1,r)]:void 0}}function rle(e,t,n,r,i,o){const a=t.symbolToString(n),s=mue.getSymbolKind(t,n,r),c=n.parent?t.symbolToString(n.parent,r):"";return ile(t,e,s,a,c,i,o)}function ile(e,t,n,r,i,o,a,s){const c=t.getSourceFile();return s||(s=pQ(Tc(t)||t,c)),{fileName:c.fileName,textSpan:s,kind:n,name:r,containerKind:void 0,containerName:i,...ice.toContextSpan(s,c,ice.getContextNode(t)),isLocal:!ale(e,t),isAmbient:!!(33554432&t.flags),unverified:o,failedAliasResolution:a}}function ole(e,t){const n=ice.getContextNode(e),r=pQ(xce(n)?n.start:n,t);return{fileName:t.fileName,textSpan:r,kind:"keyword",name:"switch",containerKind:void 0,containerName:"",...ice.toContextSpan(r,t,n),isLocal:!0,isAmbient:!1,unverified:!1,failedAliasResolution:void 0}}function ale(e,t){if(e.isDeclarationVisible(t))return!0;if(!t.parent)return!1;if(Fu(t.parent)&&t.parent.initializer===t)return ale(e,t.parent);switch(t.kind){case 172:case 177:case 178:case 174:if(Cv(t,2))return!1;case 176:case 303:case 304:case 210:case 231:case 219:case 218:return ale(e,t.parent);default:return!1}}function sle(e,t,n){return rle(t,e,t.symbol,t,!1,n)}function cle(e,t){return b(e,(e=>Ps(e,t)))}var lle={};i(lle,{provideInlayHints:()=>ple});var _le=e=>new RegExp(`^\\s?/\\*\\*?\\s?${e}\\s?\\*\\/\\s?$`);function ule(e){return"literals"===e.includeInlayParameterNameHints}function dle(e){return!0===e.interactiveInlayHints}function ple(e){const{file:t,program:n,span:r,cancellationToken:i,preferences:o}=e,a=t.text,s=n.getCompilerOptions(),c=BQ(t,o),l=n.getTypeChecker(),_=[];return function e(n){if(n&&0!==n.getFullWidth()){switch(n.kind){case 267:case 263:case 264:case 262:case 231:case 218:case 174:case 219:i.throwIfCancellationRequested()}if(Ms(r,n.pos,n.getFullWidth())&&(!v_(n)||mF(n)))return o.includeInlayVariableTypeHints&&VF(n)||o.includeInlayPropertyDeclarationTypeHints&&cD(n)?function(e){if(void 0===e.initializer&&(!cD(e)||1&l.getTypeAtLocation(e).flags)||x_(e.name)||VF(e)&&!x(e))return;if(pv(e))return;const t=l.getTypeAtLocation(e);if(p(t))return;const n=v(t);if(n){const t="string"==typeof n?n:n.map((e=>e.text)).join("");if(!1===o.includeInlayVariableTypeHintsWhenTypeMatchesName&>(e.name.getText(),t))return;d(n,e.name.end)}}(n):o.includeInlayEnumMemberValueHints&&zE(n)?function(e){if(e.initializer)return;const t=l.getConstantValue(e);var n,r;void 0!==t&&(n=t.toString(),r=e.end,_.push({text:`= ${n}`,position:r,kind:"Enum",whitespaceBefore:!0}))}(n):function(e){return"literals"===e.includeInlayParameterNameHints||"all"===e.includeInlayParameterNameHints}(o)&&(GD(n)||XD(n))?function(e){const t=e.arguments;if(!t||!t.length)return;const n=l.getResolvedSignature(e);if(void 0===n)return;let r=0;for(const e of t){const t=oh(e);if(ule(o)&&!g(t)){r++;continue}let i=0;if(dF(t)){const e=l.getTypeAtLocation(t.expression);if(l.isTupleType(e)){const{elementFlags:t,fixedLength:n}=e.target;if(0===n)continue;const r=k(t,(e=>!(1&e)));(r<0?n:r)>0&&(i=r<0?n:r)}}const a=l.getParameterIdentifierInfoAtPosition(n,r);if(r+=i||1,a){const{parameter:n,parameterName:r,isRestParameter:i}=a;if(!o.includeInlayParameterNameHintsWhenArgumentMatchesName&&f(t,r)&&!i)continue;const s=fc(r);if(m(t,s))continue;u(s,n,e.getStart(),i)}}}(n):(o.includeInlayFunctionParameterTypeHints&&i_(n)&&IT(n)&&function(e){const t=l.getSignatureFromDeclaration(e);if(t)for(let n=0;n{const i=l.typePredicateToTypePredicateNode(e,void 0,71286784);un.assertIsDefined(i,"should always get typePredicateNode"),n.writeNode(4,i,t,r)}))}(e);const n=l.typePredicateToTypePredicateNode(e,void 0,71286784);return un.assertIsDefined(n,"should always get typenode"),b(n)}(r);if(n)return void d(n,h(e))}const i=l.getReturnTypeOfSignature(n);if(p(i))return;const a=v(i);a&&d(a,h(e))}(n)),PI(n,e)}}(t),_;function u(e,t,n,r){let i,a=`${r?"...":""}${e}`;dle(o)?(i=[S(a,t),{text:":"}],a=""):a+=":",_.push({text:a,position:n,kind:"Parameter",whitespaceAfter:!0,displayParts:i})}function d(e,t){_.push({text:"string"==typeof e?`: ${e}`:"",displayParts:"string"==typeof e?void 0:[{text:": "},...e],position:t,kind:"Type",whitespaceBefore:!0})}function p(e){return e.symbol&&1536&e.symbol.flags}function f(e,t){return zN(e)?e.text===t:!!HD(e)&&e.name.text===t}function m(e,n){if(!fs(n,hk(s),ck(t.scriptKind)))return!1;const r=ls(a,e.pos);if(!(null==r?void 0:r.length))return!1;const i=_le(n);return $(r,(e=>i.test(a.substring(e.pos,e.end))))}function g(e){switch(e.kind){case 224:{const t=e.operand;return Al(t)||zN(t)&&OT(t.escapedText)}case 112:case 97:case 106:case 15:case 228:return!0;case 80:{const t=e.escapedText;return function(e){return"undefined"===e}(t)||OT(t)}}return Al(e)}function h(e){const n=yX(e,22,t);return n?n.end:e.parameters.end}function y(e){const t=e.valueDeclaration;if(!t||!oD(t))return;const n=l.getTypeOfSymbolAtLocation(e,t);return p(n)?void 0:v(n)}function v(e){if(!dle(o))return function(e){const n=eU();return id((r=>{const i=l.typeToTypeNode(e,void 0,71286784);un.assertIsDefined(i,"should always get typenode"),n.writeNode(4,i,t,r)}))}(e);const n=l.typeToTypeNode(e,void 0,71286784);return un.assertIsDefined(n,"should always get typeNode"),b(n)}function b(e){const t=[];return n(e),t;function n(e){var a,s;if(!e)return;const c=Da(e.kind);if(c)t.push({text:c});else if(Al(e))t.push({text:o(e)});else switch(e.kind){case 80:un.assertNode(e,zN);const c=mc(e),l=e.symbol&&e.symbol.declarations&&e.symbol.declarations.length&&Tc(e.symbol.declarations[0]);l?t.push(S(c,l)):t.push({text:c});break;case 166:un.assertNode(e,nD),n(e.left),t.push({text:"."}),n(e.right);break;case 182:un.assertNode(e,yD),e.assertsModifier&&t.push({text:"asserts "}),n(e.parameterName),e.type&&(t.push({text:" is "}),n(e.type));break;case 183:un.assertNode(e,vD),n(e.typeName),e.typeArguments&&(t.push({text:"<"}),i(e.typeArguments,", "),t.push({text:">"}));break;case 168:un.assertNode(e,iD),e.modifiers&&i(e.modifiers," "),n(e.name),e.constraint&&(t.push({text:" extends "}),n(e.constraint)),e.default&&(t.push({text:" = "}),n(e.default));break;case 169:un.assertNode(e,oD),e.modifiers&&i(e.modifiers," "),e.dotDotDotToken&&t.push({text:"..."}),n(e.name),e.questionToken&&t.push({text:"?"}),e.type&&(t.push({text:": "}),n(e.type));break;case 185:un.assertNode(e,xD),t.push({text:"new "}),r(e),t.push({text:" => "}),n(e.type);break;case 186:un.assertNode(e,kD),t.push({text:"typeof "}),n(e.exprName),e.typeArguments&&(t.push({text:"<"}),i(e.typeArguments,", "),t.push({text:">"}));break;case 187:un.assertNode(e,SD),t.push({text:"{"}),e.members.length&&(t.push({text:" "}),i(e.members,"; "),t.push({text:" "})),t.push({text:"}"});break;case 188:un.assertNode(e,TD),n(e.elementType),t.push({text:"[]"});break;case 189:un.assertNode(e,CD),t.push({text:"["}),i(e.elements,", "),t.push({text:"]"});break;case 202:un.assertNode(e,wD),e.dotDotDotToken&&t.push({text:"..."}),n(e.name),e.questionToken&&t.push({text:"?"}),t.push({text:": "}),n(e.type);break;case 190:un.assertNode(e,ND),n(e.type),t.push({text:"?"});break;case 191:un.assertNode(e,DD),t.push({text:"..."}),n(e.type);break;case 192:un.assertNode(e,FD),i(e.types," | ");break;case 193:un.assertNode(e,ED),i(e.types," & ");break;case 194:un.assertNode(e,PD),n(e.checkType),t.push({text:" extends "}),n(e.extendsType),t.push({text:" ? "}),n(e.trueType),t.push({text:" : "}),n(e.falseType);break;case 195:un.assertNode(e,AD),t.push({text:"infer "}),n(e.typeParameter);break;case 196:un.assertNode(e,ID),t.push({text:"("}),n(e.type),t.push({text:")"});break;case 198:un.assertNode(e,LD),t.push({text:`${Da(e.operator)} `}),n(e.type);break;case 199:un.assertNode(e,jD),n(e.objectType),t.push({text:"["}),n(e.indexType),t.push({text:"]"});break;case 200:un.assertNode(e,RD),t.push({text:"{ "}),e.readonlyToken&&(40===e.readonlyToken.kind?t.push({text:"+"}):41===e.readonlyToken.kind&&t.push({text:"-"}),t.push({text:"readonly "})),t.push({text:"["}),n(e.typeParameter),e.nameType&&(t.push({text:" as "}),n(e.nameType)),t.push({text:"]"}),e.questionToken&&(40===e.questionToken.kind?t.push({text:"+"}):41===e.questionToken.kind&&t.push({text:"-"}),t.push({text:"?"})),t.push({text:": "}),e.type&&n(e.type),t.push({text:"; }"});break;case 201:un.assertNode(e,MD),n(e.literal);break;case 184:un.assertNode(e,bD),r(e),t.push({text:" => "}),n(e.type);break;case 205:un.assertNode(e,BD),e.isTypeOf&&t.push({text:"typeof "}),t.push({text:"import("}),n(e.argument),e.assertions&&(t.push({text:", { assert: "}),i(e.assertions.assertClause.elements,", "),t.push({text:" }"})),t.push({text:")"}),e.qualifier&&(t.push({text:"."}),n(e.qualifier)),e.typeArguments&&(t.push({text:"<"}),i(e.typeArguments,", "),t.push({text:">"}));break;case 171:un.assertNode(e,sD),(null==(a=e.modifiers)?void 0:a.length)&&(i(e.modifiers," "),t.push({text:" "})),n(e.name),e.questionToken&&t.push({text:"?"}),e.type&&(t.push({text:": "}),n(e.type));break;case 181:un.assertNode(e,hD),t.push({text:"["}),i(e.parameters,", "),t.push({text:"]"}),e.type&&(t.push({text:": "}),n(e.type));break;case 173:un.assertNode(e,lD),(null==(s=e.modifiers)?void 0:s.length)&&(i(e.modifiers," "),t.push({text:" "})),n(e.name),e.questionToken&&t.push({text:"?"}),r(e),e.type&&(t.push({text:": "}),n(e.type));break;case 179:un.assertNode(e,mD),r(e),e.type&&(t.push({text:": "}),n(e.type));break;case 207:un.assertNode(e,UD),t.push({text:"["}),i(e.elements,", "),t.push({text:"]"});break;case 206:un.assertNode(e,qD),t.push({text:"{"}),e.elements.length&&(t.push({text:" "}),i(e.elements,", "),t.push({text:" "})),t.push({text:"}"});break;case 208:un.assertNode(e,VD),n(e.name);break;case 224:un.assertNode(e,aF),t.push({text:Da(e.operator)}),n(e.operand);break;case 203:un.assertNode(e,zD),n(e.head),e.templateSpans.forEach(n);break;case 16:un.assertNode(e,DN),t.push({text:o(e)});break;case 204:un.assertNode(e,JD),n(e.type),n(e.literal);break;case 17:un.assertNode(e,FN),t.push({text:o(e)});break;case 18:un.assertNode(e,EN),t.push({text:o(e)});break;case 197:un.assertNode(e,OD),t.push({text:"this"});break;default:un.failBadSyntaxKind(e)}}function r(e){e.typeParameters&&(t.push({text:"<"}),i(e.typeParameters,", "),t.push({text:">"})),t.push({text:"("}),i(e.parameters,", "),t.push({text:")"})}function i(e,r){e.forEach(((e,i)=>{i>0&&t.push({text:r}),n(e)}))}function o(e){switch(e.kind){case 11:return 0===c?`'${by(e.text,39)}'`:`"${by(e.text,34)}"`;case 16:case 17:case 18:{const t=e.rawText??uy(by(e.text,96));switch(e.kind){case 16:return"`"+t+"${";case 17:return"}"+t+"${";case 18:return"}"+t+"`"}}}return e.text}}function x(e){if((Xh(e)||VF(e)&&rf(e))&&e.initializer){const t=oh(e.initializer);return!(g(t)||XD(t)||$D(t)||V_(t))}return!0}function S(e,t){const n=t.getSourceFile();return{text:e,span:pQ(t,n),file:n.fileName}}}var fle={};i(fle,{getDocCommentTemplateAtPosition:()=>Ple,getJSDocParameterNameCompletionDetails:()=>Ele,getJSDocParameterNameCompletions:()=>Fle,getJSDocTagCompletionDetails:()=>Dle,getJSDocTagCompletions:()=>Nle,getJSDocTagNameCompletionDetails:()=>wle,getJSDocTagNameCompletions:()=>Cle,getJsDocCommentsFromDeclarations:()=>yle,getJsDocTagsFromDeclarations:()=>ble});var mle,gle,hle=["abstract","access","alias","argument","async","augments","author","borrows","callback","class","classdesc","constant","constructor","constructs","copyright","default","deprecated","description","emits","enum","event","example","exports","extends","external","field","file","fileoverview","fires","function","generator","global","hideconstructor","host","ignore","implements","import","inheritdoc","inner","instance","interface","kind","lends","license","link","linkcode","linkplain","listens","member","memberof","method","mixes","module","name","namespace","overload","override","package","param","private","prop","property","protected","public","readonly","requires","returns","satisfies","see","since","static","summary","template","this","throws","todo","tutorial","type","typedef","var","variation","version","virtual","yields"];function yle(e,t){const n=[];return eY(e,(e=>{for(const r of function(e){switch(e.kind){case 341:case 348:return[e];case 338:case 346:return[e,e.parent];case 323:if(gP(e.parent))return[e.parent.parent];default:return Lg(e)}}(e)){const i=iP(r)&&r.tags&&b(r.tags,(e=>327===e.kind&&("inheritDoc"===e.tagName.escapedText||"inheritdoc"===e.tagName.escapedText)));if(void 0===r.comment&&!i||iP(r)&&346!==e.kind&&338!==e.kind&&r.tags&&r.tags.some((e=>346===e.kind||338===e.kind))&&!r.tags.some((e=>341===e.kind||342===e.kind)))continue;let o=r.comment?Sle(r.comment,t):[];i&&i.comment&&(o=o.concat(Sle(i.comment,t))),T(n,o,vle)||n.push(o)}})),I(y(n,[SY()]))}function vle(e,t){return te(e,t,((e,t)=>e.kind===t.kind&&e.text===t.text))}function ble(e,t){const n=[];return eY(e,(e=>{const r=il(e);if(!r.some((e=>346===e.kind||338===e.kind))||r.some((e=>341===e.kind||342===e.kind)))for(const e of r)n.push({name:e.tagName.text,text:Tle(e,t)}),n.push(...xle(kle(e),t))})),n}function xle(e,t){return O(e,(e=>K([{name:e.tagName.text,text:Tle(e,t)}],xle(kle(e),t))))}function kle(e){return wl(e)&&e.isNameFirst&&e.typeExpression&&oP(e.typeExpression.type)?e.typeExpression.type.jsDocPropertyTags:void 0}function Sle(e,t){return"string"==typeof e?[mY(e)]:O(e,(e=>321===e.kind?[mY(e.text)]:bY(e,t)))}function Tle(e,t){const{comment:n,kind:r}=e,i=function(e){switch(e){case 341:return dY;case 348:return pY;case 345:return hY;case 346:case 338:return gY;default:return mY}}(r);switch(r){case 349:const r=e.typeExpression;return r?o(r):void 0===n?void 0:Sle(n,t);case 329:case 328:return o(e.class);case 345:const a=e,s=[];if(a.constraint&&s.push(mY(a.constraint.getText())),u(a.typeParameters)){u(s)&&s.push(cY());const e=a.typeParameters[a.typeParameters.length-1];d(a.typeParameters,(t=>{s.push(i(t.getText())),e!==t&&s.push(_Y(28),cY())}))}return n&&s.push(cY(),...Sle(n,t)),s;case 344:case 350:return o(e.typeExpression);case 346:case 338:case 348:case 341:case 347:const{name:c}=e;return c?o(c):void 0===n?void 0:Sle(n,t);default:return void 0===n?void 0:Sle(n,t)}function o(e){return r=e.getText(),n?r.match(/^https?$/)?[mY(r),...Sle(n,t)]:[i(r),cY(),...Sle(n,t)]:[mY(r)];var r}}function Cle(){return mle||(mle=E(hle,(e=>({name:e,kind:"keyword",kindModifiers:"",sortText:oae.SortText.LocationPriority}))))}var wle=Dle;function Nle(){return gle||(gle=E(hle,(e=>({name:`@${e}`,kind:"keyword",kindModifiers:"",sortText:oae.SortText.LocationPriority}))))}function Dle(e){return{name:e,kind:"",kindModifiers:"",displayParts:[mY(e)],documentation:l,tags:void 0,codeActions:void 0}}function Fle(e){if(!zN(e.name))return l;const t=e.name.text,n=e.parent,r=n.parent;return n_(r)?B(r.parameters,(r=>{if(!zN(r.name))return;const i=r.name.text;return n.tags.some((t=>t!==e&&bP(t)&&zN(t.name)&&t.name.escapedText===i))||void 0!==t&&!Gt(i,t)?void 0:{name:i,kind:"parameter",kindModifiers:"",sortText:oae.SortText.LocationPriority}})):[]}function Ele(e){return{name:e,kind:"parameter",kindModifiers:"",displayParts:[mY(e)],documentation:l,tags:void 0,codeActions:void 0}}function Ple(e,t,n,r){const i=PX(t,n),o=_c(i,iP);if(o&&(void 0!==o.comment||u(o.tags)))return;const a=i.getStart(t);if(!o&&aAle(e,t)))}(i,r);if(!s)return;const{commentOwner:c,parameters:l,hasReturn:_}=s,d=ye(Nu(c)&&c.jsDoc?c.jsDoc:void 0);if(c.getStart(t){const a=80===e.kind?e.text:"param"+o;return`${n} * @param ${t?i?"{...any} ":"{any} ":""}${a}${r}`})).join("")}(l||[],f,p,e):"")+(_?function(e,t){return`${e} * @returns${t}`}(p,e):""),g=u(il(c))>0;if(m&&!g){const t="/**"+e+p+" * ";return{newText:t+e+m+p+" */"+(a===n?e+p:""),caretOffset:t.length}}return{newText:"/** */",caretOffset:3}}function Ale(e,t){switch(e.kind){case 262:case 218:case 174:case 176:case 173:case 219:const n=e;return{commentOwner:e,parameters:n.parameters,hasReturn:Ile(n,t)};case 303:return Ale(e.initializer,t);case 263:case 264:case 266:case 306:case 265:return{commentOwner:e};case 171:{const n=e;return n.type&&bD(n.type)?{commentOwner:e,parameters:n.type.parameters,hasReturn:Ile(n.type,t)}:{commentOwner:e}}case 243:{const n=e.declarationList.declarations,r=1===n.length&&n[0].initializer?function(e){for(;217===e.kind;)e=e.expression;switch(e.kind){case 218:case 219:return e;case 231:return b(e.members,dD)}}(n[0].initializer):void 0;return r?{commentOwner:e,parameters:r.parameters,hasReturn:Ile(r,t)}:{commentOwner:e}}case 307:return"quit";case 267:return 267===e.parent.kind?void 0:{commentOwner:e};case 244:return Ale(e.expression,t);case 226:{const n=e;return 0===eg(n)?"quit":n_(n.right)?{commentOwner:e,parameters:n.right.parameters,hasReturn:Ile(n.right,t)}:{commentOwner:e}}case 172:const r=e.initializer;if(r&&(eF(r)||tF(r)))return{commentOwner:e,parameters:r.parameters,hasReturn:Ile(r,t)}}}function Ile(e,t){return!!(null==t?void 0:t.generateReturnInDocTemplate)&&(bD(e)||tF(e)&&U_(e.body)||i_(e)&&e.body&&CF(e.body)&&!!wf(e.body,(e=>e)))}var Ole={};function Lle(e,t,n,r,i,o){return Tue.ChangeTracker.with({host:r,formatContext:i,preferences:o},(r=>{const i=t.map((t=>function(e,t){const n=[{parse:()=>LI("__mapcode_content_nodes.ts",t,e.languageVersion,!0,e.scriptKind),body:e=>e.statements},{parse:()=>LI("__mapcode_class_content_nodes.ts",`class __class {\n${t}\n}`,e.languageVersion,!0,e.scriptKind),body:e=>e.statements[0].members}],r=[];for(const{parse:e,body:t}of n){const n=e(),i=t(n);if(i.length&&0===n.parseDiagnostics.length)return i;i.length&&r.push({sourceFile:n,body:i})}r.sort(((e,t)=>e.sourceFile.parseDiagnostics.length-t.sourceFile.parseDiagnostics.length));const{body:i}=r[0];return i}(e,t))),o=n&&I(n);for(const t of i)jle(e,r,t,o)}))}function jle(e,t,n,r){l_(n[0])||g_(n[0])?function(e,t,n,r){let i;if(i=r&&r.length?d(r,(t=>_c(PX(e,t.start),en(__,KF)))):b(e.statements,en(__,KF)),!i)return;const o=i.members.find((e=>n.some((t=>Rle(t,e)))));if(o){const r=x(i.members,(e=>n.some((t=>Rle(t,e)))));return d(n,Mle),void t.replaceNodeRangeWithNodes(e,o,r,n)}d(n,Mle),t.insertNodesAfter(e,i.members[i.members.length-1],n)}(e,t,n,r):function(e,t,n,r){if(!(null==r?void 0:r.length))return void t.insertNodesAtEndOfFile(e,n,!1);for(const i of r){const r=_c(PX(e,i.start),(e=>en(CF,qE)(e)&&$(e.statements,(e=>n.some((t=>Rle(t,e)))))));if(r){const i=r.statements.find((e=>n.some((t=>Rle(t,e)))));if(i){const o=x(r.statements,(e=>n.some((t=>Rle(t,e)))));return d(n,Mle),void t.replaceNodeRangeWithNodes(e,i,o,n)}}}let i=e.statements;for(const t of r){const n=_c(PX(e,t.start),CF);if(n){i=n.statements;break}}d(n,Mle),t.insertNodesAfter(e,i[i.length-1],n)}(e,t,n,r)}function Rle(e,t){var n,r,i,o,a,s;return e.kind===t.kind&&(176===e.kind?e.kind===t.kind:kc(e)&&kc(t)?e.name.getText()===t.name.getText():FF(e)&&FF(t)||PF(e)&&PF(t)?e.expression.getText()===t.expression.getText():AF(e)&&AF(t)?(null==(n=e.initializer)?void 0:n.getText())===(null==(r=t.initializer)?void 0:r.getText())&&(null==(i=e.incrementor)?void 0:i.getText())===(null==(o=t.incrementor)?void 0:o.getText())&&(null==(a=e.condition)?void 0:a.getText())===(null==(s=t.condition)?void 0:s.getText()):X_(e)&&X_(t)?e.expression.getText()===t.expression.getText()&&e.initializer.getText()===t.initializer.getText():JF(e)&&JF(t)?e.label.getText()===t.label.getText():e.getText()===t.getText())}function Mle(e){Ble(e),e.parent=void 0}function Ble(e){e.pos=-1,e.end=-1,e.forEachChild(Ble)}i(Ole,{mapCode:()=>Lle});var Jle={};function zle(e,t,n,r,i,o){const a=Tue.ChangeTracker.fromContext({host:n,formatContext:t,preferences:i}),s="SortAndCombine"===o||"All"===o,c=s,l="RemoveUnused"===o||"All"===o,_=e.statements.filter(nE),d=Ule(e,_),{comparersToTest:p,typeOrdersToTest:f}=qle(i),m=p[0],g={moduleSpecifierComparer:"boolean"==typeof i.organizeImportsIgnoreCase?m:void 0,namedImportComparer:"boolean"==typeof i.organizeImportsIgnoreCase?m:void 0,typeOrder:i.organizeImportsTypeOrder};if("boolean"!=typeof i.organizeImportsIgnoreCase&&({comparer:g.moduleSpecifierComparer}=t_e(d,p)),!g.typeOrder||"boolean"!=typeof i.organizeImportsIgnoreCase){const e=n_e(_,p,f);if(e){const{namedImportComparer:t,typeOrder:n}=e;g.namedImportComparer=g.namedImportComparer??t,g.typeOrder=g.typeOrder??n}}d.forEach((e=>y(e,g))),"RemoveUnused"!==o&&function(e){const t=[],n=e.statements,r=u(n);let i=0,o=0;for(;iUle(e,t)))}(e).forEach((e=>v(e,g.namedImportComparer)));for(const t of e.statements.filter(ap))t.body&&(Ule(e,t.body.statements.filter(nE)).forEach((e=>y(e,g))),"RemoveUnused"!==o&&v(t.body.statements.filter(fE),g.namedImportComparer));return a.getChanges();function h(r,i){if(0===u(r))return;nw(r[0],1024);const o=c?Je(r,(e=>Wle(e.moduleSpecifier))):[r],l=O(s?_e(o,((e,t)=>Qle(e[0].moduleSpecifier,t[0].moduleSpecifier,g.moduleSpecifierComparer??m))):o,(e=>Wle(e[0].moduleSpecifier)||void 0===e[0].moduleSpecifier?i(e):e));if(0===l.length)a.deleteNodes(e,r,{leadingTriviaOption:Tue.LeadingTriviaOption.Exclude,trailingTriviaOption:Tue.TrailingTriviaOption.Include},!0);else{const i={leadingTriviaOption:Tue.LeadingTriviaOption.Exclude,trailingTriviaOption:Tue.TrailingTriviaOption.Include,suffix:kY(n,t.options)};a.replaceNodeWithNodes(e,r[0],l,i);const o=a.nodeHasTrailingComment(e,r[0],i);a.deleteNodes(e,r.slice(1),{trailingTriviaOption:Tue.TrailingTriviaOption.Include},o)}}function y(t,n){const i=n.moduleSpecifierComparer??m,o=n.namedImportComparer??m,a=l_e({organizeImportsTypeOrder:n.typeOrder??"last"},o);h(t,(t=>(l&&(t=function(e,t,n){const r=n.getTypeChecker(),i=n.getCompilerOptions(),o=r.getJsxNamespace(t),a=r.getJsxFragmentFactory(t),s=!!(2&t.transformFlags),c=[];for(const n of e){const{importClause:e,moduleSpecifier:r}=n;if(!e){c.push(n);continue}let{name:i,namedBindings:o}=e;if(i&&!l(i)&&(i=void 0),o)if(lE(o))l(o.name)||(o=void 0);else{const e=o.elements.filter((e=>l(e.name)));e.lengthp_e(e,t,i)))),t)))}function v(e,t){const n=l_e(i,t);h(e,(e=>Kle(e,n)))}}function qle(e){return{comparersToTest:"boolean"==typeof e.organizeImportsIgnoreCase?[s_e(e,e.organizeImportsIgnoreCase)]:[s_e(e,!0),s_e(e,!1)],typeOrdersToTest:e.organizeImportsTypeOrder?[e.organizeImportsTypeOrder]:["last","inline","first"]}}function Ule(e,t){const n=ms(e.languageVersion,!1,e.languageVariant),r=[];let i=0;for(const o of t)r[i]&&Vle(e,o,n)&&i++,r[i]||(r[i]=[]),r[i].push(o);return r}function Vle(e,t,n){const r=t.getFullStart(),i=t.getStart();n.setText(e.text,r,i-r);let o=0;for(;n.getTokenStart()=2))return!0;return!1}function Wle(e){return void 0!==e&&Lu(e)?e.text:void 0}function $le(e){let t;const n={defaultImports:[],namespaceImports:[],namedImports:[]},r={defaultImports:[],namespaceImports:[],namedImports:[]};for(const i of e){if(void 0===i.importClause){t=t||i;continue}const e=i.importClause.isTypeOnly?n:r,{name:o,namedBindings:a}=i.importClause;o&&e.defaultImports.push(i),a&&(lE(a)?e.namespaceImports.push(i):e.namedImports.push(i))}return{importWithoutClause:t,typeOnlyImports:n,regularImports:r}}function Hle(e,t,n,r){if(0===e.length)return e;const i=ze(e,(e=>{if(e.attributes){let t=e.attributes.token+" ";for(const n of _e(e.attributes.elements,((e,t)=>Ct(e.name.text,t.name.text))))t+=n.name.text+":",t+=Lu(n.value)?`"${n.value.text}"`:n.value.getText()+" ";return t}return""})),o=[];for(const e in i){const a=i[e],{importWithoutClause:s,typeOnlyImports:c,regularImports:_}=$le(a);s&&o.push(s);for(const e of[_,c]){const i=e===c,{defaultImports:a,namespaceImports:s,namedImports:_}=e;if(!i&&1===a.length&&1===s.length&&0===_.length){const e=a[0];o.push(Gle(e,e.importClause.name,s[0].importClause.namedBindings));continue}const u=_e(s,((e,n)=>t(e.importClause.namedBindings.name.text,n.importClause.namedBindings.name.text)));for(const e of u)o.push(Gle(e,void 0,e.importClause.namedBindings));const d=fe(a),p=fe(_),f=d??p;if(!f)continue;let m;const g=[];if(1===a.length)m=a[0].importClause.name;else for(const e of a)g.push(XC.createImportSpecifier(!1,XC.createIdentifier("default"),e.importClause.name));g.push(...e_e(_));const h=XC.createNodeArray(_e(g,n),null==p?void 0:p.importClause.namedBindings.elements.hasTrailingComma),y=0===h.length?m?void 0:XC.createNamedImports(l):p?XC.updateNamedImports(p.importClause.namedBindings,h):XC.createNamedImports(h);r&&y&&(null==p?void 0:p.importClause.namedBindings)&&!Rb(p.importClause.namedBindings,r)&&nw(y,2),i&&m&&y?(o.push(Gle(f,m,void 0)),o.push(Gle(p??f,void 0,y))):o.push(Gle(f,m,y))}}return o}function Kle(e,t){if(0===e.length)return e;const{exportWithoutClause:n,namedExports:r,typeOnlyExports:i}=function(e){let t;const n=[],r=[];for(const i of e)void 0===i.exportClause?t=t||i:i.isTypeOnly?r.push(i):n.push(i);return{exportWithoutClause:t,namedExports:n,typeOnlyExports:r}}(e),o=[];n&&o.push(n);for(const e of[r,i]){if(0===e.length)continue;const n=[];n.push(...O(e,(e=>e.exportClause&&mE(e.exportClause)?e.exportClause.elements:l)));const r=_e(n,t),i=e[0];o.push(XC.updateExportDeclaration(i,i.modifiers,i.isTypeOnly,i.exportClause&&(mE(i.exportClause)?XC.updateNamedExports(i.exportClause,r):XC.updateNamespaceExport(i.exportClause,i.exportClause.name)),i.moduleSpecifier,i.attributes))}return o}function Gle(e,t,n){return XC.updateImportDeclaration(e,e.modifiers,XC.updateImportClause(e.importClause,e.importClause.isTypeOnly,t,n),e.moduleSpecifier,e.attributes)}function Xle(e,t,n,r){switch(null==r?void 0:r.organizeImportsTypeOrder){case"first":return Ot(t.isTypeOnly,e.isTypeOnly)||n(e.name.text,t.name.text);case"inline":return n(e.name.text,t.name.text);default:return Ot(e.isTypeOnly,t.isTypeOnly)||n(e.name.text,t.name.text)}}function Qle(e,t,n){const r=void 0===e?void 0:Wle(e),i=void 0===t?void 0:Wle(t);return Ot(void 0===r,void 0===i)||Ot(Ts(r),Ts(i))||n(r,i)}function Yle(e){var t;switch(e.kind){case 271:return null==(t=tt(e.moduleReference,xE))?void 0:t.expression;case 272:return e.moduleSpecifier;case 243:return e.declarationList.declarations[0].initializer.arguments[0]}}function Zle(e,t){const n=TN(t)&&t.text;return Ze(n)&&$(e.moduleAugmentations,(e=>TN(e)&&e.text===n))}function e_e(e){return O(e,(e=>E(function(e){var t;return(null==(t=e.importClause)?void 0:t.namedBindings)&&uE(e.importClause.namedBindings)?e.importClause.namedBindings.elements:void 0}(e),(e=>e.name&&e.propertyName&&Wd(e.name)===Wd(e.propertyName)?XC.updateImportSpecifier(e,e.isTypeOnly,void 0,e.name):e))))}function t_e(e,t){const n=[];return e.forEach((e=>{n.push(e.map((e=>Wle(Yle(e))||"")))})),i_e(n,t)}function n_e(e,t,n){let r=!1;const i=e.filter((e=>{var t,n;const i=null==(n=tt(null==(t=e.importClause)?void 0:t.namedBindings,uE))?void 0:n.elements;return!!(null==i?void 0:i.length)&&(!r&&i.some((e=>e.isTypeOnly))&&i.some((e=>!e.isTypeOnly))&&(r=!0),!0)}));if(0===i.length)return;const o=i.map((e=>{var t,n;return null==(n=tt(null==(t=e.importClause)?void 0:t.namedBindings,uE))?void 0:n.elements})).filter((e=>void 0!==e));if(!r||0===n.length){const e=i_e(o.map((e=>e.map((e=>e.name.text)))),t);return{namedImportComparer:e.comparer,typeOrder:1===n.length?n[0]:void 0,isSorted:e.isSorted}}const a={first:1/0,last:1/0,inline:1/0},s={first:t[0],last:t[0],inline:t[0]};for(const e of t){const t={first:0,last:0,inline:0};for(const r of o)for(const i of n)t[i]=(t[i]??0)+r_e(r,((t,n)=>Xle(t,n,e,{organizeImportsTypeOrder:i})));for(const r of n){const n=r;t[n]0&&n++;return n}function i_e(e,t){let n,r=1/0;for(const i of t){let t=0;for(const n of e)n.length<=1||(t+=r_e(n,i));tXle(t,r,n,e)}function __e(e,t,n){const{comparersToTest:r,typeOrdersToTest:i}=qle(t),o=n_e([e],r,i);let a,s=l_e(t,r[0]);if("boolean"!=typeof t.organizeImportsIgnoreCase||!t.organizeImportsTypeOrder)if(o){const{namedImportComparer:e,typeOrder:t,isSorted:n}=o;a=n,s=l_e({organizeImportsTypeOrder:t},e)}else if(n){const e=n_e(n.statements.filter(nE),r,i);if(e){const{namedImportComparer:t,typeOrder:n,isSorted:r}=e;a=r,s=l_e({organizeImportsTypeOrder:n},t)}}return{specifierComparer:s,isSorted:a}}function u_e(e,t,n){const r=Te(e,t,st,((e,t)=>p_e(e,t,n)));return r<0?~r:r}function d_e(e,t,n){const r=Te(e,t,st,n);return r<0?~r:r}function p_e(e,t,n){return Qle(Yle(e),Yle(t),n)||function(e,t){return vt(o_e(e),o_e(t))}(e,t)}function f_e(e,t,n,r){const i=a_e(t);return Hle(e,i,l_e({organizeImportsTypeOrder:null==r?void 0:r.organizeImportsTypeOrder},i),n)}function m_e(e,t,n){return Kle(e,((e,r)=>Xle(e,r,a_e(t),{organizeImportsTypeOrder:(null==n?void 0:n.organizeImportsTypeOrder)??"last"})))}function g_e(e,t,n){return Qle(e,t,a_e(!!n))}i(Jle,{compareImportsOrRequireStatements:()=>p_e,compareModuleSpecifiers:()=>g_e,getImportDeclarationInsertionIndex:()=>u_e,getImportSpecifierInsertionIndex:()=>d_e,getNamedImportSpecifierComparerWithDetection:()=>__e,getOrganizeImportsStringComparerWithDetection:()=>c_e,organizeImports:()=>zle,testCoalesceExports:()=>m_e,testCoalesceImports:()=>f_e});var h_e={};function y_e(e,t){const n=[];return function(e,t,n){let r=40,i=0;const o=[...e.statements,e.endOfFileToken],a=o.length;for(;i...")}(e);case 288:return function(e){const n=Ws(e.openingFragment.getStart(t),e.closingFragment.getEnd());return C_e(n,"code",n,!1,"<>...")}(e);case 285:case 286:return function(e){if(0!==e.properties.length)return S_e(e.getStart(t),e.getEnd(),"code")}(e.attributes);case 228:case 15:return function(e){if(15!==e.kind||0!==e.text.length)return S_e(e.getStart(t),e.getEnd(),"code")}(e);case 207:return i(e,!1,!VD(e.parent),23);case 219:return function(e){if(CF(e.body)||ZD(e.body)||Wb(e.body.getFullStart(),e.body.getEnd(),t))return;return C_e(Ws(e.body.getFullStart(),e.body.getEnd()),"code",pQ(e))}(e);case 213:return function(e){if(!e.arguments.length)return;const n=yX(e,21,t),r=yX(e,22,t);return n&&r&&!Wb(n.pos,r.pos,t)?T_e(n,r,e,t,!1,!0):void 0}(e);case 217:return function(e){if(Wb(e.getStart(),e.getEnd(),t))return;return C_e(Ws(e.getStart(),e.getEnd()),"code",pQ(e))}(e);case 275:case 279:case 300:return function(e){if(!e.elements.length)return;const n=yX(e,19,t),r=yX(e,20,t);return n&&r&&!Wb(n.pos,r.pos,t)?T_e(n,r,e,t,!1,!1):void 0}(e)}var n;function r(e,t=19){return i(e,!1,!WD(e.parent)&&!GD(e.parent),t)}function i(n,r=!1,i=!0,o=19,a=(19===o?20:24)){const s=yX(e,o,t),c=yX(e,a,t);return s&&c&&T_e(s,c,n,t,r,i)}}(i,e);a&&n.push(a),r--,GD(i)?(r++,s(i.expression),r--,i.arguments.forEach(s),null==(o=i.typeArguments)||o.forEach(s)):FF(i)&&i.elseStatement&&FF(i.elseStatement)?(s(i.expression),s(i.thenStatement),r++,s(i.elseStatement),r--):i.forEachChild(s),r++}}(e,t,n),function(e,t){const n=[],r=e.getLineStarts();for(const i of r){const r=e.getLineEndOfPosition(i),o=b_e(e.text.substring(i,r));if(o&&!XX(e,i))if(o.isStart){const t=Ws(e.text.indexOf("//",i),r);n.push(C_e(t,"region",t,!1,o.name||"#region"))}else{const e=n.pop();e&&(e.textSpan.length=r-e.textSpan.start,e.hintSpan.length=r-e.textSpan.start,t.push(e))}}}(e,n),n.sort(((e,t)=>e.textSpan.start-t.textSpan.start)),n}i(h_e,{collectElements:()=>y_e});var v_e=/^#(end)?region(.*)\r?$/;function b_e(e){if(!Gt(e=e.trimStart(),"//"))return null;e=e.slice(2).trim();const t=v_e.exec(e);return t?{isStart:!t[1],name:t[2].trim()}:void 0}function x_e(e,t,n,r){const i=ls(t.text,e);if(!i)return;let o=-1,a=-1,s=0;const c=t.getFullText();for(const{kind:e,pos:t,end:_}of i)switch(n.throwIfCancellationRequested(),e){case 2:if(b_e(c.slice(t,_))){l(),s=0;break}0===s&&(o=t),a=_,s++;break;case 3:l(),r.push(S_e(t,_,"comment")),s=0;break;default:un.assertNever(e)}function l(){s>1&&r.push(S_e(o,a,"comment"))}l()}function k_e(e,t,n,r){CN(e)||x_e(e.pos,t,n,r)}function S_e(e,t,n){return C_e(Ws(e,t),n)}function T_e(e,t,n,r,i=!1,o=!0){return C_e(Ws(o?e.getFullStart():e.getStart(r),t.getEnd()),"code",pQ(n,r),i)}function C_e(e,t,n=e,r=!1,i="..."){return{textSpan:e,kind:t,hintSpan:n,bannerText:i,autoCollapse:r}}var w_e={};function N_e(e,t,n,r){const i=DX(FX(t,n));if(A_e(i)){const n=function(e,t,n,r,i){const o=t.getSymbolAtLocation(e);if(!o){if(Lu(e)){const r=SX(e,t);if(r&&(128&r.flags||1048576&r.flags&&v(r.types,(e=>!!(128&e.flags)))))return F_e(e.text,e.text,"string","",e,n)}else if($G(e)){const t=Kd(e);return F_e(t,t,"label","",e,n)}return}const{declarations:a}=o;if(!a||0===a.length)return;if(a.some((e=>function(e,t){const n=t.getSourceFile();return e.isSourceFileDefaultLibrary(n)&&ko(n.fileName,".d.ts")}(r,e))))return E_e(la.You_cannot_rename_elements_that_are_defined_in_the_standard_TypeScript_library);if(zN(e)&&"default"===e.escapedText&&o.parent&&1536&o.parent.flags)return;if(Lu(e)&&vg(e))return i.allowRenameOfImportPath?function(e,t,n){if(!Ts(e.text))return E_e(la.You_cannot_rename_a_module_via_a_global_import);const r=n.declarations&&b(n.declarations,qE);if(!r)return;const i=Rt(e.text,"/index")||Rt(e.text,"/index.js")?void 0:Bt(zS(r.fileName),"/index"),o=void 0===i?r.fileName:i,a=void 0===i?"module":"directory",s=e.text.lastIndexOf("/")+1,c=Vs(e.getStart(t)+1+s,e.text.length-s);return{canRename:!0,fileToRename:o,kind:a,displayName:o,fullDisplayName:e.text,kindModifiers:"",triggerSpan:c}}(e,n,o):void 0;const s=function(e,t,n,r){if(!r.providePrefixAndSuffixTextForRename&&2097152&t.flags){const e=t.declarations&&b(t.declarations,(e=>dE(e)));e&&!e.propertyName&&(t=n.getAliasedSymbol(t))}const{declarations:i}=t;if(!i)return;const o=D_e(e.path);if(void 0===o)return $(i,(e=>wZ(e.getSourceFile().path)))?la.You_cannot_rename_elements_that_are_defined_in_a_node_modules_folder:void 0;for(const e of i){const t=D_e(e.getSourceFile().path);if(t){const e=Math.min(o.length,t.length);for(let n=0;n<=e;n++)if(0!==Ct(o[n],t[n]))return la.You_cannot_rename_elements_that_are_defined_in_another_node_modules_folder}}}(n,o,t,i);if(s)return E_e(s);const c=mue.getSymbolKind(t,o,e),l=DY(e)||Lh(e)&&167===e.parent.kind?Dy(zh(e)):void 0;return F_e(l||t.symbolToString(o),l||t.getFullyQualifiedName(o),c,mue.getSymbolModifiers(t,o),e,n)}(i,e.getTypeChecker(),t,e,r);if(n)return n}return E_e(la.You_cannot_rename_this_element)}function D_e(e){const t=Ao(e),n=t.lastIndexOf("node_modules");if(-1!==n)return t.slice(0,n+2)}function F_e(e,t,n,r,i,o){return{canRename:!0,fileToRename:void 0,kind:n,displayName:e,fullDisplayName:t,kindModifiers:r,triggerSpan:P_e(i,o)}}function E_e(e){return{canRename:!1,localizedErrorMessage:Ux(e)}}function P_e(e,t){let n=e.getStart(t),r=e.getWidth(t);return Lu(e)&&(n+=1,r-=2),Vs(n,r)}function A_e(e){switch(e.kind){case 80:case 81:case 11:case 15:case 110:return!0;case 9:return ZG(e);default:return!1}}i(w_e,{getRenameInfo:()=>N_e,nodeIsEligibleForRename:()=>A_e});var I_e={};function O_e(e,t,n,r,i){const o=e.getTypeChecker(),a=OX(t,n);if(!a)return;const s=!!r&&"characterTyped"===r.kind;if(s&&(JX(t,n,a)||XX(t,n)))return;const c=!!r&&"invoked"===r.kind,l=function(e,t,n,r,i){for(let o=e;!qE(o)&&(i||!CF(o));o=o.parent){un.assert(Gb(o.parent,o),"Not a subspan",(()=>`Child: ${un.formatSyntaxKind(o.kind)}, parent: ${un.formatSyntaxKind(o.parent.kind)}`));const e=B_e(o,t,n,r);if(e)return e}}(a,n,t,o,c);if(!l)return;i.throwIfCancellationRequested();const _=function({invocation:e,argumentCount:t},n,r,i,o){switch(e.kind){case 0:{if(o&&!function(e,t,n){if(!L_(t))return!1;const r=t.getChildren(n);switch(e.kind){case 21:return T(r,e);case 28:{const t=vX(e);return!!t&&T(r,t)}case 30:return L_e(e,n,t.expression);default:return!1}}(i,e.node,r))return;const a=[],s=n.getResolvedSignatureForSignatureHelp(e.node,a,t);return 0===a.length?void 0:{kind:0,candidates:a,resolvedSignature:s}}case 1:{const{called:a}=e;if(o&&!L_e(i,r,zN(a)?a.parent:a))return;const s=KX(a,t,n);if(0!==s.length)return{kind:0,candidates:s,resolvedSignature:ge(s)};const c=n.getSymbolAtLocation(a);return c&&{kind:1,symbol:c}}case 2:return{kind:0,candidates:[e.signature],resolvedSignature:e.signature};default:return un.assertNever(e)}}(l,o,t,a,s);return i.throwIfCancellationRequested(),_?o.runWithCancellationToken(i,(e=>0===_.kind?Q_e(_.candidates,_.resolvedSignature,l,t,e):function(e,{argumentCount:t,argumentsSpan:n,invocation:r,argumentIndex:i},o,a){const s=a.getLocalTypeParametersOfClassOrInterfaceOrTypeAlias(e);if(!s)return;return{items:[Y_e(e,s,a,G_e(r),o)],applicableSpan:n,selectedItemIndex:0,argumentIndex:i,argumentCount:t}}(_.symbol,l,t,e))):Dm(t)?function(e,t,n){if(2===e.invocation.kind)return;const r=K_e(e.invocation),i=HD(r)?r.name.text:void 0,o=t.getTypeChecker();return void 0===i?void 0:f(t.getSourceFiles(),(t=>f(t.getNamedDeclarations().get(i),(r=>{const i=r.symbol&&o.getTypeOfSymbolAtLocation(r.symbol,r),a=i&&i.getCallSignatures();if(a&&a.length)return o.runWithCancellationToken(n,(n=>Q_e(a,a[0],e,t,n,!0)))}))))}(l,e,i):void 0}function L_e(e,t,n){const r=e.getFullStart();let i=e.parent;for(;i;){const e=jX(r,t,i,!0);if(e)return Gb(n,e);i=i.parent}return un.fail("Could not find preceding token")}function j_e(e,t,n,r){const i=M_e(e,t,n,r);return!i||i.isTypeParameterList||0!==i.invocation.kind?void 0:{invocation:i.invocation.node,argumentCount:i.argumentCount,argumentIndex:i.argumentIndex}}function R_e(e,t,n,r){const i=function(e,t,n){if(30===e.kind||21===e.kind)return{list:H_e(e.parent,e,t),argumentIndex:0};{const t=vX(e);return t&&{list:t,argumentIndex:U_e(n,t,e)}}}(e,n,r);if(!i)return;const{list:o,argumentIndex:a}=i,s=function(e,t){return V_e(e,t,void 0)}(r,o),c=function(e,t){const n=e.getFullStart();return Vs(n,Xa(t.text,e.getEnd(),!1)-n)}(o,n);return{list:o,argumentIndex:a,argumentCount:s,argumentsSpan:c}}function M_e(e,t,n,r){const{parent:i}=e;if(L_(i)){const t=i,o=R_e(e,0,n,r);if(!o)return;const{list:a,argumentIndex:s,argumentCount:c,argumentsSpan:l}=o;return{isTypeParameterList:!!i.typeArguments&&i.typeArguments.pos===a.pos,invocation:{kind:0,node:t},argumentsSpan:l,argumentIndex:s,argumentCount:c}}if(NN(e)&&QD(i))return oQ(e,t,n)?W_e(i,0,n):void 0;if(DN(e)&&215===i.parent.kind){const r=i,o=r.parent;return un.assert(228===r.kind),W_e(o,oQ(e,t,n)?0:1,n)}if(SF(i)&&QD(i.parent.parent)){const r=i,o=i.parent.parent;if(EN(e)&&!oQ(e,t,n))return;const a=function(e,t,n,r){return un.assert(n>=t.getStart(),"Assumed 'position' could not occur before node."),Ll(t)?oQ(t,n,r)?0:e+2:e+1}(r.parent.templateSpans.indexOf(r),e,t,n);return W_e(o,a,n)}if(vu(i)){const e=i.attributes.pos;return{isTypeParameterList:!1,invocation:{kind:0,node:i},argumentsSpan:Vs(e,Xa(n.text,i.attributes.end,!1)-e),argumentIndex:0,argumentCount:1}}{const t=GX(e,n);if(t){const{called:r,nTypeArguments:i}=t;return{isTypeParameterList:!0,invocation:{kind:1,called:r},argumentsSpan:Ws(r.getStart(n),e.end),argumentIndex:i,argumentCount:i+1}}return}}function B_e(e,t,n,r){return function(e,t,n,r){const i=function(e){switch(e.kind){case 21:case 28:return e;default:return _c(e.parent,(e=>!!oD(e)||!(VD(e)||qD(e)||UD(e))&&"quit"))}}(e);if(void 0===i)return;const o=function(e,t,n,r){const{parent:i}=e;switch(i.kind){case 217:case 174:case 218:case 219:const n=R_e(e,0,t,r);if(!n)return;const{argumentIndex:o,argumentCount:a,argumentsSpan:s}=n,c=_D(i)?r.getContextualTypeForObjectLiteralElement(i):r.getContextualType(i);return c&&{contextualType:c,argumentIndex:o,argumentCount:a,argumentsSpan:s};case 226:{const t=J_e(i),n=r.getContextualType(t),o=21===e.kind?0:z_e(i)-1,a=z_e(t);return n&&{contextualType:n,argumentIndex:o,argumentCount:a,argumentsSpan:pQ(i)}}default:return}}(i,n,0,r);if(void 0===o)return;const{contextualType:a,argumentIndex:s,argumentCount:c,argumentsSpan:l}=o,_=a.getNonNullableType(),u=_.symbol;if(void 0===u)return;const d=ye(_.getCallSignatures());var p;return void 0!==d?{isTypeParameterList:!1,invocation:{kind:2,signature:d,node:e,symbol:(p=u,"__type"===p.name&&f(p.declarations,(e=>{var t;return bD(e)?null==(t=tt(e.parent,ou))?void 0:t.symbol:void 0}))||p)},argumentsSpan:l,argumentIndex:s,argumentCount:c}:void 0}(e,0,n,r)||M_e(e,t,n,r)}function J_e(e){return cF(e.parent)?J_e(e.parent):e}function z_e(e){return cF(e.left)?z_e(e.left)+1:2}function q_e(e,t){const n=t.getTypeAtLocation(e.expression);if(t.isTupleType(n)){const{elementFlags:e,fixedLength:t}=n.target;if(0===t)return 0;const r=k(e,(e=>!(1&e)));return r<0?t:r}return 0}function U_e(e,t,n){return V_e(e,t,n)}function V_e(e,t,n){const r=t.getChildren();let i=0,o=!1;for(const t of r){if(n&&t===n)return o||28!==t.kind||i++,i;dF(t)?(i+=q_e(t,e),o=!0):28===t.kind?o?o=!1:i++:(i++,o=!0)}return n?i:r.length&&28===ve(r).kind?i+1:i}function W_e(e,t,n){const r=NN(e.template)?1:e.template.templateSpans.length+1;return 0!==t&&un.assertLessThan(t,r),{isTypeParameterList:!1,invocation:{kind:0,node:e},argumentsSpan:$_e(e,n),argumentIndex:t,argumentCount:r}}function $_e(e,t){const n=e.template,r=n.getStart();let i=n.getEnd();return 228===n.kind&&0===ve(n.templateSpans).literal.getFullWidth()&&(i=Xa(t.text,i,!1)),Vs(r,i-r)}function H_e(e,t,n){const r=e.getChildren(n),i=r.indexOf(t);return un.assert(i>=0&&r.length>i+1),r[i+1]}function K_e(e){return 0===e.kind?_m(e.node):e.called}function G_e(e){return 0===e.kind?e.node:1===e.kind?e.called:e.node}i(I_e,{getArgumentInfoForCompletions:()=>j_e,getSignatureHelpItems:()=>O_e});var X_e=70246400;function Q_e(e,t,{isTypeParameterList:n,argumentCount:r,argumentsSpan:i,invocation:o,argumentIndex:a},s,c,_){var u;const d=G_e(o),p=2===o.kind?o.symbol:c.getSymbolAtLocation(K_e(o))||_&&(null==(u=t.declaration)?void 0:u.symbol),f=p?wY(c,p,_?s:void 0,void 0):l,m=E(e,(e=>function(e,t,n,r,i,o){return E((n?tue:nue)(e,r,i,o),(({isVariadic:n,parameters:o,prefix:a,suffix:s})=>{const c=[...t,...a],l=[...s,...eue(e,i,r)],_=e.getDocumentationComment(r),u=e.getJsDocTags();return{isVariadic:n,prefixDisplayParts:c,suffixDisplayParts:l,separatorDisplayParts:Z_e,parameters:o,documentation:_,tags:u}}))}(e,f,n,c,d,s)));let g=0,h=0;for(let n=0;n1)){let e=0;for(const t of i){if(t.isVariadic||t.parameters.length>=r){g=h+e;break}e++}}h+=i.length}un.assert(-1!==g);const y={items:L(m,st),applicableSpan:i,selectedItemIndex:g,argumentIndex:a,argumentCount:r},v=y.items[g];if(v.isVariadic){const e=k(v.parameters,(e=>!!e.isRest));-1rue(e,n,r,i,a))),c=e.getDocumentationComment(n),l=e.getJsDocTags(n);return{isVariadic:!1,prefixDisplayParts:[...o,_Y(30)],suffixDisplayParts:[_Y(32)],separatorDisplayParts:Z_e,parameters:s,documentation:c,tags:l}}var Z_e=[_Y(28),cY()];function eue(e,t,n){return TY((r=>{r.writePunctuation(":"),r.writeSpace(" ");const i=n.getTypePredicateOfSignature(e);i?n.writeTypePredicate(i,t,void 0,r):n.writeType(n.getReturnTypeOfSignature(e),t,void 0,r)}))}function tue(e,t,n,r){const i=(e.target||e).typeParameters,o=eU(),a=(i||l).map((e=>rue(e,t,n,r,o))),s=e.thisParameter?[t.symbolToParameterDeclaration(e.thisParameter,n,X_e)]:[];return t.getExpandedParameters(e).map((e=>{const i=XC.createNodeArray([...s,...E(e,(e=>t.symbolToParameterDeclaration(e,n,X_e)))]),c=TY((e=>{o.writeList(2576,i,r,e)}));return{isVariadic:!1,parameters:a,prefix:[_Y(30)],suffix:[_Y(32),...c]}}))}function nue(e,t,n,r){const i=eU(),o=TY((o=>{if(e.typeParameters&&e.typeParameters.length){const a=XC.createNodeArray(e.typeParameters.map((e=>t.typeParameterToDeclaration(e,n,X_e))));i.writeList(53776,a,r,o)}})),a=t.getExpandedParameters(e),s=t.hasEffectiveRestParameter(e)?1===a.length?e=>!0:e=>{var t;return!!(e.length&&32768&(null==(t=tt(e[e.length-1],Ku))?void 0:t.links.checkFlags))}:e=>!1;return a.map((e=>({isVariadic:s(e),parameters:e.map((e=>function(e,t,n,r,i){const o=TY((o=>{const a=t.symbolToParameterDeclaration(e,n,X_e);i.writeNode(4,a,r,o)})),a=t.isOptionalParameter(e.valueDeclaration),s=Ku(e)&&!!(32768&e.links.checkFlags);return{name:e.name,documentation:e.getDocumentationComment(t),displayParts:o,isOptional:a,isRest:s}}(e,t,n,r,i))),prefix:[...o,_Y(21)],suffix:[_Y(22)]})))}function rue(e,t,n,r,i){const o=TY((o=>{const a=t.typeParameterToDeclaration(e,n,X_e);i.writeNode(4,a,r,o)}));return{name:e.symbol.name,documentation:e.symbol.getDocumentationComment(t),displayParts:o,isOptional:!1,isRest:!1}}var iue={};function oue(e,t){var n,r;let i={textSpan:Ws(t.getFullStart(),t.getEnd())},o=t;e:for(;;){const i=cue(o);if(!i.length)break;for(let c=0;ce)break e;const d=be(_s(t.text,_.end));if(d&&2===d.kind&&s(d.pos,d.end),aue(t,e,_)){if(Y_(_)&&i_(o)&&!Wb(_.getStart(t),_.getEnd(),t)&&a(_.getStart(t),_.getEnd()),CF(_)||SF(_)||DN(_)||EN(_)||l&&DN(l)||WF(_)&&wF(o)||AP(_)&&WF(o)||VF(_)&&AP(o)&&1===i.length||VE(_)||aP(_)||oP(_)){o=_;break}SF(o)&&u&&jl(u)&&a(_.getFullStart()-2,u.getStart()+1);const e=AP(_)&&due(l)&&pue(u)&&!Wb(l.getStart(),u.getStart(),t);let s=e?l.getEnd():_.getStart();const c=e?u.getStart():fue(t,_);if(Nu(_)&&(null==(n=_.jsDoc)?void 0:n.length)&&a(ge(_.jsDoc).getStart(),c),AP(_)){const e=_.getChildren()[0];e&&Nu(e)&&(null==(r=e.jsDoc)?void 0:r.length)&&e.getStart()!==_.pos&&(s=Math.min(s,ge(e.jsDoc).getStart()))}a(s,c),(TN(_)||j_(_))&&a(s+1,c-1),o=_;break}if(c===i.length-1)break e}}return i;function a(t,n){if(t!==n){const r=Ws(t,n);(!i||!QQ(r,i.textSpan)&&Js(r,e))&&(i={textSpan:r,...i&&{parent:i}})}}function s(e,n){a(e,n);let r=e;for(;47===t.text.charCodeAt(r);)r++;a(r,n)}}function aue(e,t,n){return un.assert(n.pos<=t),toue});var sue=en(nE,tE);function cue(e){var t;if(qE(e))return lue(e.getChildAt(0).getChildren(),sue);if(RD(e)){const[t,...n]=e.getChildren(),r=un.checkDefined(n.pop());un.assertEqual(t.kind,19),un.assertEqual(r.kind,20);const i=lue(n,(t=>t===e.readonlyToken||148===t.kind||t===e.questionToken||58===t.kind));return[t,uue(_ue(lue(i,(({kind:e})=>23===e||168===e||24===e)),(({kind:e})=>59===e))),r]}if(sD(e)){const n=lue(e.getChildren(),(t=>t===e.name||T(e.modifiers,t))),r=320===(null==(t=n[0])?void 0:t.kind)?n[0]:void 0,i=_ue(r?n.slice(1):n,(({kind:e})=>59===e));return r?[r,uue(i)]:i}if(oD(e)){const t=lue(e.getChildren(),(t=>t===e.dotDotDotToken||t===e.name));return _ue(lue(t,(n=>n===t[0]||n===e.questionToken)),(({kind:e})=>64===e))}return VD(e)?_ue(e.getChildren(),(({kind:e})=>64===e)):e.getChildren()}function lue(e,t){const n=[];let r;for(const i of e)t(i)?(r=r||[],r.push(i)):(r&&(n.push(uue(r)),r=void 0),n.push(i));return r&&n.push(uue(r)),n}function _ue(e,t,n=!0){if(e.length<2)return e;const r=k(e,t);if(-1===r)return e;const i=e.slice(0,r),o=e[r],a=ve(e),s=n&&27===a.kind,c=e.slice(r+1,s?e.length-1:void 0),l=ne([i.length?uue(i):void 0,o,c.length?uue(c):void 0]);return s?l.concat(a):l}function uue(e){return un.assertGreaterThanOrEqual(e.length,1),ST(aI.createSyntaxList(e),e[0].pos,ve(e).end)}function due(e){const t=e&&e.kind;return 19===t||23===t||21===t||286===t}function pue(e){const t=e&&e.kind;return 20===t||24===t||22===t||287===t}function fue(e,t){switch(t.kind){case 341:case 338:case 348:case 346:case 343:return e.getLineEndOfPosition(t.getStart());default:return t.getEnd()}}var mue={};i(mue,{getSymbolDisplayPartsDocumentationAndSymbolKind:()=>kue,getSymbolKind:()=>hue,getSymbolModifiers:()=>bue});var gue=70246400;function hue(e,t,n){const r=yue(e,t,n);if(""!==r)return r;const i=ox(t);return 32&i?Wu(t,231)?"local class":"class":384&i?"enum":524288&i?"type":64&i?"interface":262144&i?"type parameter":8&i?"enum member":2097152&i?"alias":1536&i?"module":r}function yue(e,t,n){const r=e.getRootSymbols(t);if(1===r.length&&8192&ge(r).flags&&0!==e.getTypeOfSymbolAtLocation(t,n).getNonNullableType().getCallSignatures().length)return"method";if(e.isUndefinedSymbol(t))return"var";if(e.isArgumentsSymbol(t))return"local var";if(110===n.kind&&U_(n)||_v(n))return"parameter";const i=ox(t);if(3&i)return oY(t)?"parameter":t.valueDeclaration&&rf(t.valueDeclaration)?"const":t.valueDeclaration&&nf(t.valueDeclaration)?"using":t.valueDeclaration&&tf(t.valueDeclaration)?"await using":d(t.declarations,af)?"let":Sue(t)?"local var":"var";if(16&i)return Sue(t)?"local function":"function";if(32768&i)return"getter";if(65536&i)return"setter";if(8192&i)return"method";if(16384&i)return"constructor";if(131072&i)return"index";if(4&i){if(33554432&i&&6&t.links.checkFlags){const r=d(e.getRootSymbols(t),(e=>{if(98311&e.getFlags())return"property"}));return r||(e.getTypeOfSymbolAtLocation(t,n).getCallSignatures().length?"method":"property")}return"property"}return""}function vue(e){if(e.declarations&&e.declarations.length){const[t,...n]=e.declarations,r=ZX(t,u(n)&&JZ(t)&&$(n,(e=>!JZ(e)))?65536:0);if(r)return r.split(",")}return[]}function bue(e,t){if(!t)return"";const n=new Set(vue(t));if(2097152&t.flags){const r=e.getAliasedSymbol(t);r!==t&&d(vue(r),(e=>{n.add(e)}))}return 16777216&t.flags&&n.add("optional"),n.size>0?Oe(n.values()).join(","):""}function xue(e,t,n,r,i,o,a,s){var c;const _=[];let u=[],p=[];const m=ox(t);let g=1&a?yue(e,t,i):"",h=!1;const y=110===i.kind&&bm(i)||_v(i);let v,x,k=!1;if(110===i.kind&&!y)return{displayParts:[lY(110)],documentation:[],symbolKind:"primitive type",tags:void 0};if(""!==g||32&m||2097152&m){if("getter"===g||"setter"===g){const e=b(t.declarations,(e=>e.name===i));if(e)switch(e.kind){case 177:g="getter";break;case 178:g="setter";break;case 172:g="accessor";break;default:un.assertNever(e)}else g="property"}let n,a;if(o??(o=y?e.getTypeAtLocation(i):e.getTypeOfSymbolAtLocation(t,i)),i.parent&&211===i.parent.kind){const e=i.parent.name;(e===i||e&&0===e.getFullWidth())&&(i=i.parent)}if(L_(i)?a=i:(PG(i)||AG(i)||i.parent&&(vu(i.parent)||QD(i.parent))&&n_(t.valueDeclaration))&&(a=i.parent),a){n=e.getResolvedSignature(a);const i=214===a.kind||GD(a)&&108===a.expression.kind,s=i?o.getConstructSignatures():o.getCallSignatures();if(!n||T(s,n.target)||T(s,n)||(n=s.length?s[0]:void 0),n){switch(i&&32&m?(g="constructor",F(o.symbol,g)):2097152&m?(g="alias",E(g),_.push(cY()),i&&(4&n.flags&&(_.push(lY(128)),_.push(cY())),_.push(lY(105)),_.push(cY())),D(t)):F(t,g),g){case"JSX attribute":case"property":case"var":case"const":case"let":case"parameter":case"local var":_.push(_Y(59)),_.push(cY()),16&mx(o)||!o.symbol||(se(_,wY(e,o.symbol,r,void 0,5)),_.push(SY())),i&&(4&n.flags&&(_.push(lY(128)),_.push(cY())),_.push(lY(105)),_.push(cY())),P(n,s,262144);break;default:P(n,s)}h=!0,k=s.length>1}}else if(YG(i)&&!(98304&m)||137===i.kind&&176===i.parent.kind){const r=i.parent;if(t.declarations&&b(t.declarations,(e=>e===(137===i.kind?r.parent:r)))){const i=176===r.kind?o.getNonNullableType().getConstructSignatures():o.getNonNullableType().getCallSignatures();n=e.isImplementationOfOverload(r)?i[0]:e.getSignatureFromDeclaration(r),176===r.kind?(g="constructor",F(o.symbol,g)):F(179!==r.kind||2048&o.symbol.flags||4096&o.symbol.flags?t:o.symbol,g),n&&P(n,i),h=!0,k=i.length>1}}}if(32&m&&!h&&!y&&(w(),Wu(t,231)?E("local class"):_.push(lY(86)),_.push(cY()),D(t),A(t,n)),64&m&&2&a&&(C(),_.push(lY(120)),_.push(cY()),D(t),A(t,n)),524288&m&&2&a&&(C(),_.push(lY(156)),_.push(cY()),D(t),A(t,n),_.push(cY()),_.push(uY(64)),_.push(cY()),se(_,CY(e,i.parent&&xl(i.parent)?e.getTypeAtLocation(i.parent):e.getDeclaredTypeOfSymbol(t),r,8388608))),384&m&&(C(),$(t.declarations,(e=>XF(e)&&Zp(e)))&&(_.push(lY(87)),_.push(cY())),_.push(lY(94)),_.push(cY()),D(t)),1536&m&&!y){C();const e=Wu(t,267),n=e&&e.name&&80===e.name.kind;_.push(lY(n?145:144)),_.push(cY()),D(t)}if(262144&m&&2&a)if(C(),_.push(_Y(21)),_.push(mY("type parameter")),_.push(_Y(22)),_.push(cY()),D(t),t.parent)N(),D(t.parent,r),A(t.parent,r);else{const r=Wu(t,168);if(void 0===r)return un.fail();const i=r.parent;if(i)if(n_(i)){N();const t=e.getSignatureFromDeclaration(i);180===i.kind?(_.push(lY(105)),_.push(cY())):179!==i.kind&&i.name&&D(i.symbol),se(_,NY(e,t,n,32))}else GF(i)&&(N(),_.push(lY(156)),_.push(cY()),D(i.symbol),A(i.symbol,n))}if(8&m){g="enum member",F(t,"enum member");const n=null==(c=t.declarations)?void 0:c[0];if(306===(null==n?void 0:n.kind)){const t=e.getConstantValue(n);void 0!==t&&(_.push(cY()),_.push(uY(64)),_.push(cY()),_.push(sY(np(t),"number"==typeof t?7:8)))}}if(2097152&t.flags){if(C(),!h||0===u.length&&0===p.length){const n=e.getAliasedSymbol(t);if(n!==t&&n.declarations&&n.declarations.length>0){const i=n.declarations[0],s=Tc(i);if(s&&!h){const c=sp(i)&&wv(i,128),l="default"!==t.name&&!c,u=xue(e,n,hd(i),r,s,o,a,l?t:n);_.push(...u.displayParts),_.push(SY()),v=u.documentation,x=u.tags}else v=n.getContextualDocumentationComment(i,e),x=n.getJsDocTags(e)}}if(t.declarations)switch(t.declarations[0].kind){case 270:_.push(lY(95)),_.push(cY()),_.push(lY(145));break;case 277:_.push(lY(95)),_.push(cY()),_.push(lY(t.declarations[0].isExportEquals?64:90));break;case 281:_.push(lY(95));break;default:_.push(lY(102))}_.push(cY()),D(t),d(t.declarations,(t=>{if(271===t.kind){const n=t;if(Sm(n))_.push(cY()),_.push(uY(64)),_.push(cY()),_.push(lY(149)),_.push(_Y(21)),_.push(sY(Kd(Tm(n)),8)),_.push(_Y(22));else{const t=e.getSymbolAtLocation(n.moduleReference);t&&(_.push(cY()),_.push(uY(64)),_.push(cY()),D(t,r))}return!0}}))}if(!h)if(""!==g){if(o)if(y?(C(),_.push(lY(110))):F(t,g),"property"===g||"accessor"===g||"getter"===g||"setter"===g||"JSX attribute"===g||3&m||"local var"===g||"index"===g||"using"===g||"await using"===g||y){if(_.push(_Y(59)),_.push(cY()),o.symbol&&262144&o.symbol.flags&&"index"!==g){const t=TY((t=>{const n=e.typeParameterToDeclaration(o,r,gue);S().writeNode(4,n,hd(dc(r)),t)}));se(_,t)}else se(_,CY(e,o,r));if(Ku(t)&&t.links.target&&Ku(t.links.target)&&t.links.target.links.tupleLabelDeclaration){const e=t.links.target.links.tupleLabelDeclaration;un.assertNode(e.name,zN),_.push(cY()),_.push(_Y(21)),_.push(mY(mc(e.name))),_.push(_Y(22))}}else if(16&m||8192&m||16384&m||131072&m||98304&m||"method"===g){const e=o.getNonNullableType().getCallSignatures();e.length&&(P(e[0],e),k=e.length>1)}}else g=hue(e,t,i);if(0!==u.length||k||(u=t.getContextualDocumentationComment(r,e)),0===u.length&&4&m&&t.parent&&t.declarations&&d(t.parent.declarations,(e=>307===e.kind)))for(const n of t.declarations){if(!n.parent||226!==n.parent.kind)continue;const t=e.getSymbolAtLocation(n.parent.right);if(t&&(u=t.getDocumentationComment(e),p=t.getJsDocTags(e),u.length>0))break}if(0===u.length&&zN(i)&&t.valueDeclaration&&VD(t.valueDeclaration)){const n=t.valueDeclaration,r=n.parent,i=n.propertyName||n.name;if(zN(i)&&qD(r)){const t=zh(i),n=e.getTypeAtLocation(r);u=f(n.isUnion()?n.types:[n],(n=>{const r=n.getProperty(t);return r?r.getDocumentationComment(e):void 0}))||l}}return 0!==p.length||k||(p=t.getContextualJsDocTags(r,e)),0===u.length&&v&&(u=v),0===p.length&&x&&(p=x),{displayParts:_,documentation:u,symbolKind:g,tags:0===p.length?void 0:p};function S(){return eU()}function C(){_.length&&_.push(SY()),w()}function w(){s&&(E("alias"),_.push(cY()))}function N(){_.push(cY()),_.push(lY(103)),_.push(cY())}function D(r,i){let o;s&&r===t&&(r=s),"index"===g&&(o=e.getIndexInfosOfIndexSymbol(r));let a=[];131072&r.flags&&o?(r.parent&&(a=wY(e,r.parent)),a.push(_Y(23)),o.forEach(((t,n)=>{a.push(...CY(e,t.keyType)),n!==o.length-1&&(a.push(cY()),a.push(_Y(52)),a.push(cY()))})),a.push(_Y(24))):a=wY(e,r,i||n,void 0,7),se(_,a),16777216&t.flags&&_.push(_Y(58))}function F(e,t){C(),t&&(E(t),e&&!$(e.declarations,(e=>tF(e)||(eF(e)||pF(e))&&!e.name))&&(_.push(cY()),D(e)))}function E(e){switch(e){case"var":case"function":case"let":case"const":case"constructor":case"using":case"await using":return void _.push(fY(e));default:return _.push(_Y(21)),_.push(fY(e)),void _.push(_Y(22))}}function P(t,n,i=0){se(_,NY(e,t,r,32|i)),n.length>1&&(_.push(cY()),_.push(_Y(21)),_.push(uY(40)),_.push(sY((n.length-1).toString(),7)),_.push(cY()),_.push(mY(2===n.length?"overload":"overloads")),_.push(_Y(22))),u=t.getDocumentationComment(e),p=t.getJsDocTags(),n.length>1&&0===u.length&&0===p.length&&(u=n[0].getDocumentationComment(e),p=n[0].getJsDocTags().filter((e=>"deprecated"!==e.name)))}function A(t,n){const r=TY((r=>{const i=e.symbolToTypeParameterDeclarations(t,n,gue);S().writeList(53776,i,hd(dc(n)),r)}));se(_,r)}}function kue(e,t,n,r,i,o=FG(i),a){return xue(e,t,n,r,i,void 0,o,a)}function Sue(e){return!e.parent&&d(e.declarations,(e=>{if(218===e.kind)return!0;if(260!==e.kind&&262!==e.kind)return!1;for(let t=e.parent;!Rf(t);t=t.parent)if(307===t.kind||268===t.kind)return!1;return!0}))}var Tue={};function Cue(e){const t=e.__pos;return un.assert("number"==typeof t),t}function wue(e,t){un.assert("number"==typeof t),e.__pos=t}function Nue(e){const t=e.__end;return un.assert("number"==typeof t),t}function Due(e,t){un.assert("number"==typeof t),e.__end=t}i(Tue,{ChangeTracker:()=>Jue,LeadingTriviaOption:()=>Fue,TrailingTriviaOption:()=>Eue,applyChanges:()=>Vue,assignPositionsToNode:()=>Hue,createWriter:()=>Gue,deleteNode:()=>Que,getAdjustedEndPosition:()=>jue,isThisTypeAnnotatable:()=>Mue,isValidLocationToAddComment:()=>Xue});var Fue=(e=>(e[e.Exclude=0]="Exclude",e[e.IncludeAll=1]="IncludeAll",e[e.JSDoc=2]="JSDoc",e[e.StartLine=3]="StartLine",e))(Fue||{}),Eue=(e=>(e[e.Exclude=0]="Exclude",e[e.ExcludeWhitespace=1]="ExcludeWhitespace",e[e.Include=2]="Include",e))(Eue||{});function Pue(e,t){return Xa(e,t,!1,!0)}var Aue={leadingTriviaOption:0,trailingTriviaOption:0};function Iue(e,t,n,r){return{pos:Oue(e,t,r),end:jue(e,n,r)}}function Oue(e,t,n,r=!1){var i,o;const{leadingTriviaOption:a}=n;if(0===a)return t.getStart(e);if(3===a){const n=t.getStart(e),r=oX(n,e);return sX(t,r)?r:n}if(2===a){const n=hf(t,e.text);if(null==n?void 0:n.length)return oX(n[0].pos,e)}const s=t.getFullStart(),c=t.getStart(e);if(s===c)return c;const l=oX(s,e);if(oX(c,e)===l)return 1===a?s:c;if(r){const t=(null==(i=ls(e.text,s))?void 0:i[0])||(null==(o=_s(e.text,s))?void 0:o[0]);if(t)return Xa(e.text,t.end,!0,!0)}const _=s>0?1:0;let u=xd(tv(e,l)+_,e);return u=Pue(e.text,u),xd(tv(e,u),e)}function Lue(e,t,n){const{end:r}=t,{trailingTriviaOption:i}=n;if(2===i){const n=_s(e.text,r);if(n){const r=tv(e,t.end);for(const t of n){if(2===t.kind||tv(e,t.pos)>r)break;if(tv(e,t.end)>r)return Xa(e.text,t.end,!0,!0)}}}}function jue(e,t,n){var r;const{end:i}=t,{trailingTriviaOption:o}=n;if(0===o)return i;if(1===o){const t=K(_s(e.text,i),ls(e.text,i));return(null==(r=null==t?void 0:t[t.length-1])?void 0:r.end)||i}const a=Lue(e,t,n);if(a)return a;const s=Xa(e.text,i,!0);return s===i||2!==o&&!Ua(e.text.charCodeAt(s-1))?i:s}function Rue(e,t){return!!t&&!!e.parent&&(28===t.kind||27===t.kind&&210===e.parent.kind)}function Mue(e){return eF(e)||$F(e)}var Bue,Jue=class e{constructor(e,t){this.newLineCharacter=e,this.formatContext=t,this.changes=[],this.classesWithNodesInsertedAtStart=new Map,this.deletedNodes=[]}static fromContext(t){return new e(kY(t.host,t.formatContext.options),t.formatContext)}static with(t,n){const r=e.fromContext(t);return n(r),r.getChanges()}pushRaw(e,t){un.assertEqual(e.fileName,t.fileName);for(const n of t.textChanges)this.changes.push({kind:3,sourceFile:e,text:n.newText,range:hQ(n.span)})}deleteRange(e,t){this.changes.push({kind:0,sourceFile:e,range:t})}delete(e,t){this.deletedNodes.push({sourceFile:e,node:t})}deleteNode(e,t,n={leadingTriviaOption:1}){this.deleteRange(e,Iue(e,t,t,n))}deleteNodes(e,t,n={leadingTriviaOption:1},r){for(const i of t){const t=Oue(e,i,n,r),o=jue(e,i,n);this.deleteRange(e,{pos:t,end:o}),r=!!Lue(e,i,n)}}deleteModifier(e,t){this.deleteRange(e,{pos:t.getStart(e),end:Xa(e.text,t.end,!0)})}deleteNodeRange(e,t,n,r={leadingTriviaOption:1}){const i=Oue(e,t,r),o=jue(e,n,r);this.deleteRange(e,{pos:i,end:o})}deleteNodeRangeExcludingEnd(e,t,n,r={leadingTriviaOption:1}){const i=Oue(e,t,r),o=void 0===n?e.text.length:Oue(e,n,r);this.deleteRange(e,{pos:i,end:o})}replaceRange(e,t,n,r={}){this.changes.push({kind:1,sourceFile:e,range:t,options:r,node:n})}replaceNode(e,t,n,r=Aue){this.replaceRange(e,Iue(e,t,t,r),n,r)}replaceNodeRange(e,t,n,r,i=Aue){this.replaceRange(e,Iue(e,t,n,i),r,i)}replaceRangeWithNodes(e,t,n,r={}){this.changes.push({kind:2,sourceFile:e,range:t,options:r,nodes:n})}replaceNodeWithNodes(e,t,n,r=Aue){this.replaceRangeWithNodes(e,Iue(e,t,t,r),n,r)}replaceNodeWithText(e,t,n){this.replaceRangeWithText(e,Iue(e,t,t,Aue),n)}replaceNodeRangeWithNodes(e,t,n,r,i=Aue){this.replaceRangeWithNodes(e,Iue(e,t,n,i),r,i)}nodeHasTrailingComment(e,t,n=Aue){return!!Lue(e,t,n)}nextCommaToken(e,t){const n=LX(t,t.parent,e);return n&&28===n.kind?n:void 0}replacePropertyAssignment(e,t,n){const r=this.nextCommaToken(e,t)?"":","+this.newLineCharacter;this.replaceNode(e,t,n,{suffix:r})}insertNodeAt(e,t,n,r={}){this.replaceRange(e,Pb(t),n,r)}insertNodesAt(e,t,n,r={}){this.replaceRangeWithNodes(e,Pb(t),n,r)}insertNodeAtTopOfFile(e,t,n){this.insertAtTopOfFile(e,t,n)}insertNodesAtTopOfFile(e,t,n){this.insertAtTopOfFile(e,t,n)}insertAtTopOfFile(e,t,n){const r=function(e){let t;for(const n of e.statements){if(!uf(n))break;t=n}let n=0;const r=e.text;if(t)return n=t.end,c(),n;const i=us(r);void 0!==i&&(n=i.length,c());const o=ls(r,n);if(!o)return n;let a,s;for(const t of o){if(3===t.kind){if(Rd(r,t.pos)){a={range:t,pinnedOrTripleSlash:!0};continue}}else if(jd(r,t.pos,t.end)){a={range:t,pinnedOrTripleSlash:!0};continue}if(a){if(a.pinnedOrTripleSlash)break;if(e.getLineAndCharacterOfPosition(t.pos).line>=e.getLineAndCharacterOfPosition(a.range.end).line+2)break}if(e.statements.length&&(void 0===s&&(s=e.getLineAndCharacterOfPosition(e.statements[0].getStart()).line),sZe(e.comment)?XC.createJSDocText(e.comment):e.comment)),r=be(t.jsDoc);return r&&Wb(r.pos,r.end,e)&&0===u(n)?void 0:XC.createNodeArray(y(n,XC.createJSDocText("\n")))}replaceJSDocComment(e,t,n){this.insertJsdocCommentBefore(e,function(e){if(219!==e.kind)return e;const t=172===e.parent.kind?e.parent:e.parent.parent;return t.jsDoc=e.jsDoc,t}(t),XC.createJSDocComment(this.createJSDocText(e,t),XC.createNodeArray(n)))}addJSDocTags(e,t,n){const r=L(t.jsDoc,(e=>e.tags)),i=n.filter((e=>!r.some(((t,n)=>{const i=function(e,t){if(e.kind===t.kind)switch(e.kind){case 341:{const n=e,r=t;return zN(n.name)&&zN(r.name)&&n.name.escapedText===r.name.escapedText?XC.createJSDocParameterTag(void 0,r.name,!1,r.typeExpression,r.isNameFirst,n.comment):void 0}case 342:return XC.createJSDocReturnTag(void 0,t.typeExpression,e.comment);case 344:return XC.createJSDocTypeTag(void 0,t.typeExpression,e.comment)}}(t,e);return i&&(r[n]=i),!!i}))));this.replaceJSDocComment(e,t,[...r,...i])}filterJSDocTags(e,t,n){this.replaceJSDocComment(e,t,N(L(t.jsDoc,(e=>e.tags)),n))}replaceRangeWithText(e,t,n){this.changes.push({kind:3,sourceFile:e,range:t,text:n})}insertText(e,t,n){this.replaceRangeWithText(e,Pb(t),n)}tryInsertTypeAnnotation(e,t,n){let r;if(n_(t)){if(r=yX(t,22,e),!r){if(!tF(t))return!1;r=ge(t.parameters)}}else r=(260===t.kind?t.exclamationToken:t.questionToken)??t.name;return this.insertNodeAt(e,r.end,n,{prefix:": "}),!0}tryInsertThisTypeAnnotation(e,t,n){const r=yX(t,21,e).getStart(e)+1,i=t.parameters.length?", ":"";this.insertNodeAt(e,r,n,{prefix:"this: ",suffix:i})}insertTypeParameters(e,t,n){const r=(yX(t,21,e)||ge(t.parameters)).getStart(e);this.insertNodesAt(e,r,n,{prefix:"<",suffix:">",joiner:", "})}getOptionsForInsertNodeBefore(e,t,n){return du(e)||l_(e)?{suffix:n?this.newLineCharacter+this.newLineCharacter:this.newLineCharacter}:VF(e)?{suffix:", "}:oD(e)?oD(t)?{suffix:", "}:{}:TN(e)&&nE(e.parent)||uE(e)?{suffix:", "}:dE(e)?{suffix:","+(n?this.newLineCharacter:" ")}:un.failBadSyntaxKind(e)}insertNodeAtConstructorStart(e,t,n){const r=fe(t.body.statements);r&&t.body.multiLine?this.insertNodeBefore(e,r,n):this.replaceConstructorBody(e,t,[n,...t.body.statements])}insertNodeAtConstructorStartAfterSuperCall(e,t,n){const r=b(t.body.statements,(e=>DF(e)&&sf(e.expression)));r&&t.body.multiLine?this.insertNodeAfter(e,r,n):this.replaceConstructorBody(e,t,[...t.body.statements,n])}insertNodeAtConstructorEnd(e,t,n){const r=ye(t.body.statements);r&&t.body.multiLine?this.insertNodeAfter(e,r,n):this.replaceConstructorBody(e,t,[...t.body.statements,n])}replaceConstructorBody(e,t,n){this.replaceNode(e,t.body,XC.createBlock(n,!0))}insertNodeAtEndOfScope(e,t,n){const r=Oue(e,t.getLastToken(),{});this.insertNodeAt(e,r,n,{prefix:Ua(e.text.charCodeAt(t.getLastToken().pos))?this.newLineCharacter:this.newLineCharacter+this.newLineCharacter,suffix:this.newLineCharacter})}insertMemberAtStart(e,t,n){this.insertNodeAtStartWorker(e,t,n)}insertNodeAtObjectStart(e,t,n){this.insertNodeAtStartWorker(e,t,n)}insertNodeAtStartWorker(e,t,n){const r=this.guessIndentationFromExistingMembers(e,t)??this.computeIndentationForNewMember(e,t);this.insertNodeAt(e,Uue(t).pos,n,this.getInsertNodeAtStartInsertOptions(e,t,r))}guessIndentationFromExistingMembers(e,t){let n,r=t;for(const i of Uue(t)){if(Mb(r,i,e))return;const t=i.getStart(e),o=Zue.SmartIndenter.findFirstNonWhitespaceColumn(oX(t,e),t,e,this.formatContext.options);if(void 0===n)n=o;else if(o!==n)return;r=i}return n}computeIndentationForNewMember(e,t){const n=t.getStart(e);return Zue.SmartIndenter.findFirstNonWhitespaceColumn(oX(n,e),n,e,this.formatContext.options)+(this.formatContext.options.indentSize??4)}getInsertNodeAtStartInsertOptions(e,t,n){const r=0===Uue(t).length,i=!this.classesWithNodesInsertedAtStart.has(jB(t));i&&this.classesWithNodesInsertedAtStart.set(jB(t),{node:t,sourceFile:e});const o=$D(t)&&(!Yp(e)||!r);return{indentation:n,prefix:($D(t)&&Yp(e)&&r&&!i?",":"")+this.newLineCharacter,suffix:o?",":KF(t)&&r?";":""}}insertNodeAfterComma(e,t,n){const r=this.insertNodeAfterWorker(e,this.nextCommaToken(e,t)||t,n);this.insertNodeAt(e,r,n,this.getInsertNodeAfterOptions(e,t))}insertNodeAfter(e,t,n){const r=this.insertNodeAfterWorker(e,t,n);this.insertNodeAt(e,r,n,this.getInsertNodeAfterOptions(e,t))}insertNodeAtEndOfList(e,t,n){this.insertNodeAt(e,t.end,n,{prefix:", "})}insertNodesAfter(e,t,n){const r=this.insertNodeAfterWorker(e,t,ge(n));this.insertNodesAt(e,r,n,this.getInsertNodeAfterOptions(e,t))}insertNodeAfterWorker(e,t,n){var r,i;return i=n,((sD(r=t)||cD(r))&&h_(i)&&167===i.name.kind||uu(r)&&uu(i))&&59!==e.text.charCodeAt(t.end-1)&&this.replaceRange(e,Pb(t.end),XC.createToken(27)),jue(e,t,{})}getInsertNodeAfterOptions(e,t){const n=this.getInsertNodeAfterOptionsWorker(t);return{...n,prefix:t.end===e.end&&du(t)?n.prefix?`\n${n.prefix}`:"\n":n.prefix}}getInsertNodeAfterOptionsWorker(e){switch(e.kind){case 263:case 267:return{prefix:this.newLineCharacter,suffix:this.newLineCharacter};case 260:case 11:case 80:return{prefix:", "};case 303:return{suffix:","+this.newLineCharacter};case 95:return{prefix:" "};case 169:return{};default:return un.assert(du(e)||h_(e)),{suffix:this.newLineCharacter}}}insertName(e,t,n){if(un.assert(!t.name),219===t.kind){const r=yX(t,39,e),i=yX(t,21,e);i?(this.insertNodesAt(e,i.getStart(e),[XC.createToken(100),XC.createIdentifier(n)],{joiner:" "}),Que(this,e,r)):(this.insertText(e,ge(t.parameters).getStart(e),`function ${n}(`),this.replaceRange(e,r,XC.createToken(22))),241!==t.body.kind&&(this.insertNodesAt(e,t.body.getStart(e),[XC.createToken(19),XC.createToken(107)],{joiner:" ",suffix:" "}),this.insertNodesAt(e,t.body.end,[XC.createToken(27),XC.createToken(20)],{joiner:" "}))}else{const r=yX(t,218===t.kind?100:86,e).end;this.insertNodeAt(e,r,XC.createIdentifier(n),{prefix:" "})}}insertExportModifier(e,t){this.insertText(e,t.getStart(e),"export ")}insertImportSpecifierAtIndex(e,t,n,r){const i=n.elements[r-1];i?this.insertNodeInListAfter(e,i,t):this.insertNodeBefore(e,n.elements[0],t,!Wb(n.elements[0].getStart(),n.parent.parent.getStart(),e))}insertNodeInListAfter(e,t,n,r=Zue.SmartIndenter.getContainingList(t,e)){if(!r)return void un.fail("node is not a list element");const i=Xd(r,t);if(i<0)return;const o=t.getEnd();if(i!==r.length-1){const o=PX(e,t.end);if(o&&Rue(t,o)){const t=r[i+1],a=Pue(e.text,t.getFullStart()),s=`${Da(o.kind)}${e.text.substring(o.end,a)}`;this.insertNodesAt(e,a,[n],{suffix:s})}}else{const a=t.getStart(e),s=oX(a,e);let c,l=!1;if(1===r.length)c=28;else{const n=jX(t.pos,e);c=Rue(t,n)?n.kind:28,l=oX(r[i-1].getStart(e),e)!==s}if(!function(e,t){let n=t;for(;n{const[n,r]=function(e,t){const n=yX(e,19,t),r=yX(e,20,t);return[null==n?void 0:n.end,null==r?void 0:r.end]}(e,t);if(void 0!==n&&void 0!==r){const i=0===Uue(e).length,o=Wb(n,r,t);i&&o&&n!==r-1&&this.deleteRange(t,Pb(n,r-1)),o&&this.insertText(t,r-1,this.newLineCharacter)}}))}finishDeleteDeclarations(){const e=new Set;for(const{sourceFile:t,node:n}of this.deletedNodes)this.deletedNodes.some((e=>e.sourceFile===t&&aX(e.node,n)))||(Qe(n)?this.deleteRange(t,sT(t,n)):Wue.deleteDeclaration(this,e,t,n));e.forEach((t=>{const n=t.getSourceFile(),r=Zue.SmartIndenter.getContainingList(t,n);if(t!==ve(r))return;const i=S(r,(t=>!e.has(t)),r.length-2);-1!==i&&this.deleteRange(n,{pos:r[i].end,end:zue(n,r[i+1])})}))}getChanges(e){this.finishDeleteDeclarations(),this.finishClassesWithNodesInsertedAtStart();const t=Bue.getTextChangesFromChanges(this.changes,this.newLineCharacter,this.formatContext,e);return this.newFileChanges&&this.newFileChanges.forEach(((e,n)=>{t.push(Bue.newFileChanges(n,e,this.newLineCharacter,this.formatContext))})),t}createNewFile(e,t,n){this.insertStatementsInNewFile(t,n,e)}};function zue(e,t){return Xa(e.text,Oue(e,t,{leadingTriviaOption:1}),!1,!0)}function que(e,t,n,r){const i=zue(e,r);if(void 0===n||Wb(jue(e,t,{}),i,e))return i;const o=jX(r.getStart(e),e);if(Rue(t,o)){const r=jX(t.getStart(e),e);if(Rue(n,r)){const t=Xa(e.text,o.getEnd(),!0,!0);if(Wb(r.getStart(e),o.getStart(e),e))return Ua(e.text.charCodeAt(t-1))?t-1:t;if(Ua(e.text.charCodeAt(t)))return t}}return i}function Uue(e){return $D(e)?e.properties:e.members}function Vue(e,t){for(let n=t.length-1;n>=0;n--){const{span:r,newText:i}=t[n];e=`${e.substring(0,r.start)}${i}${e.substring(Ds(r))}`}return e}(e=>{function t(e,t,r,i){const o=O(t,(e=>e.statements.map((t=>4===t?"":n(t,e.oldFile,r).text)))).join(r),a=LI("any file name",o,{languageVersion:99,jsDocParsingMode:1},!0,e);return Vue(o,Zue.formatDocument(a,i))+r}function n(e,t,n){const r=Gue(n);return rU({newLine:qZ(n),neverAsciiEscape:!0,preserveSourceNewlines:!0,terminateUnterminatedLiterals:!0},r).writeNode(4,e,t,r),{text:r.getText(),node:Hue(e)}}e.getTextChangesFromChanges=function(e,t,r,i){return B(Je(e,(e=>e.sourceFile.path)),(e=>{const o=e[0].sourceFile,a=_e(e,((e,t)=>e.range.pos-t.range.pos||e.range.end-t.range.end));for(let e=0;e`${JSON.stringify(a[e].range)} and ${JSON.stringify(a[e+1].range)}`));const s=B(a,(e=>{const a=gQ(e.range),s=1===e.kind?hd(lc(e.node))??e.sourceFile:2===e.kind?hd(lc(e.nodes[0]))??e.sourceFile:e.sourceFile,c=function(e,t,r,i,o,a){var s;if(0===e.kind)return"";if(3===e.kind)return e.text;const{options:c={},range:{pos:l}}=e,_=e=>function(e,t,r,i,{indentation:o,prefix:a,delta:s},c,l,_){const{node:u,text:d}=n(e,t,c);_&&_(u,d);const p=VZ(l,t),f=void 0!==o?o:Zue.SmartIndenter.getIndentation(i,r,p,a===c||oX(i,t)===i);void 0===s&&(s=Zue.SmartIndenter.shouldIndentChildNode(p,e)&&p.indentSize||0);const m={text:d,getLineAndCharacterOfPosition(e){return Ja(this,e)}};return Vue(d,Zue.formatNodeGivenIndentation(u,m,t.languageVariant,f,s,{...l,options:p}))}(e,t,r,l,c,i,o,a),u=2===e.kind?e.nodes.map((e=>Mt(_(e),i))).join((null==(s=e.options)?void 0:s.joiner)||i):_(e.node),d=void 0!==c.indentation||oX(l,t)===l?u:u.replace(/^\s+/,"");return(c.prefix||"")+d+(!c.suffix||Rt(d,c.suffix)?"":c.suffix)}(e,s,o,t,r,i);if(a.length!==c.length||!MZ(s.text,c,a.start))return vQ(a,c)}));return s.length>0?{fileName:o.fileName,textChanges:s}:void 0}))},e.newFileChanges=function(e,n,r,i){const o=t(vS(e),n,r,i);return{fileName:e,textChanges:[vQ(Vs(0,0),o)],isNewFile:!0}},e.newFileChangesWorker=t,e.getNonformattedText=n})(Bue||(Bue={}));var Wue,$ue={...wq,factory:BC(1|wq.factory.flags,wq.factory.baseFactory)};function Hue(e){const t=nJ(e,Hue,$ue,Kue,Hue),n=Zh(t)?t:Object.create(t);return ST(n,Cue(e),Nue(e)),n}function Kue(e,t,n,r,i){const o=HB(e,t,n,r,i);if(!o)return o;un.assert(e);const a=o===e?XC.createNodeArray(o.slice(0)):o;return ST(a,Cue(e),Nue(e)),a}function Gue(e){let t=0;const n=Iy(e);function r(e,r){if(r||!function(e){return Xa(e,0)===e.length}(e)){t=n.getTextPos();let r=0;for(;za(e.charCodeAt(e.length-r-1));)r++;t-=r}}return{onBeforeEmitNode:e=>{e&&wue(e,t)},onAfterEmitNode:e=>{e&&Due(e,t)},onBeforeEmitNodeArray:e=>{e&&wue(e,t)},onAfterEmitNodeArray:e=>{e&&Due(e,t)},onBeforeEmitToken:e=>{e&&wue(e,t)},onAfterEmitToken:e=>{e&&Due(e,t)},write:function(e){n.write(e),r(e,!1)},writeComment:function(e){n.writeComment(e)},writeKeyword:function(e){n.writeKeyword(e),r(e,!1)},writeOperator:function(e){n.writeOperator(e),r(e,!1)},writePunctuation:function(e){n.writePunctuation(e),r(e,!1)},writeTrailingSemicolon:function(e){n.writeTrailingSemicolon(e),r(e,!1)},writeParameter:function(e){n.writeParameter(e),r(e,!1)},writeProperty:function(e){n.writeProperty(e),r(e,!1)},writeSpace:function(e){n.writeSpace(e),r(e,!1)},writeStringLiteral:function(e){n.writeStringLiteral(e),r(e,!1)},writeSymbol:function(e,t){n.writeSymbol(e,t),r(e,!1)},writeLine:function(e){n.writeLine(e)},increaseIndent:function(){n.increaseIndent()},decreaseIndent:function(){n.decreaseIndent()},getText:function(){return n.getText()},rawWrite:function(e){n.rawWrite(e),r(e,!1)},writeLiteral:function(e){n.writeLiteral(e),r(e,!0)},getTextPos:function(){return n.getTextPos()},getLine:function(){return n.getLine()},getColumn:function(){return n.getColumn()},getIndent:function(){return n.getIndent()},isAtStartOfLine:function(){return n.isAtStartOfLine()},hasTrailingComment:()=>n.hasTrailingComment(),hasTrailingWhitespace:()=>n.hasTrailingWhitespace(),clear:function(){n.clear(),t=0}}}function Xue(e,t){return!(XX(e,t)||JX(e,t)||UX(e,t)||VX(e,t))}function Que(e,t,n,r={leadingTriviaOption:1}){const i=Oue(t,n,r),o=jue(t,n,r);e.deleteRange(t,{pos:i,end:o})}function Yue(e,t,n,r){const i=un.checkDefined(Zue.SmartIndenter.getContainingList(r,n)),o=Xd(i,r);un.assert(-1!==o),1!==i.length?(un.assert(!t.has(r),"Deleting a node twice"),t.add(r),e.deleteRange(n,{pos:zue(n,r),end:o===i.length-1?jue(n,r,{}):que(n,r,i[o-1],i[o+1])})):Que(e,n,r)}(e=>{function t(e,t,n){if(n.parent.name){const r=un.checkDefined(PX(t,n.pos-1));e.deleteRange(t,{pos:r.getStart(t),end:n.end})}else Que(e,t,Sh(n,272))}e.deleteDeclaration=function(e,n,r,i){switch(i.kind){case 169:{const t=i.parent;tF(t)&&1===t.parameters.length&&!yX(t,21,r)?e.replaceNodeWithText(r,i,"()"):Yue(e,n,r,i);break}case 272:case 271:Que(e,r,i,{leadingTriviaOption:r.imports.length&&i===ge(r.imports).parent||i===b(r.statements,xp)?0:Nu(i)?2:3});break;case 208:const o=i.parent;207===o.kind&&i!==ve(o.elements)?Que(e,r,i):Yue(e,n,r,i);break;case 260:!function(e,t,n,r){const{parent:i}=r;if(299===i.kind)return void e.deleteNodeRange(n,yX(i,21,n),yX(i,22,n));if(1!==i.declarations.length)return void Yue(e,t,n,r);const o=i.parent;switch(o.kind){case 250:case 249:e.replaceNode(n,r,XC.createObjectLiteralExpression());break;case 248:Que(e,n,i);break;case 243:Que(e,n,o,{leadingTriviaOption:Nu(o)?2:3});break;default:un.assertNever(o)}}(e,n,r,i);break;case 168:Yue(e,n,r,i);break;case 276:const a=i.parent;1===a.elements.length?t(e,r,a):Yue(e,n,r,i);break;case 274:t(e,r,i);break;case 27:Que(e,r,i,{trailingTriviaOption:0});break;case 100:Que(e,r,i,{leadingTriviaOption:0});break;case 263:case 262:Que(e,r,i,{leadingTriviaOption:Nu(i)?2:3});break;default:i.parent?rE(i.parent)&&i.parent.name===i?function(e,t,n){if(n.namedBindings){const r=n.name.getStart(t),i=PX(t,n.name.end);if(i&&28===i.kind){const n=Xa(t.text,i.end,!1,!0);e.deleteRange(t,{pos:r,end:n})}else Que(e,t,n.name)}else Que(e,t,n.parent)}(e,r,i.parent):GD(i.parent)&&T(i.parent.arguments,i)?Yue(e,n,r,i):Que(e,r,i):Que(e,r,i)}}})(Wue||(Wue={}));var Zue={};i(Zue,{FormattingContext:()=>tde,FormattingRequestKind:()=>ede,RuleAction:()=>sde,RuleFlags:()=>cde,SmartIndenter:()=>Epe,anyContext:()=>ade,createTextRangeWithKind:()=>jpe,formatDocument:()=>zpe,formatNodeGivenIndentation:()=>$pe,formatOnClosingCurly:()=>Jpe,formatOnEnter:()=>Rpe,formatOnOpeningCurly:()=>Bpe,formatOnSemicolon:()=>Mpe,formatSelection:()=>qpe,getAllRules:()=>lde,getFormatContext:()=>Spe,getFormattingScanner:()=>ide,getIndentationString:()=>Qpe,getRangeOfEnclosingComment:()=>Xpe});var ede=(e=>(e[e.FormatDocument=0]="FormatDocument",e[e.FormatSelection=1]="FormatSelection",e[e.FormatOnEnter=2]="FormatOnEnter",e[e.FormatOnSemicolon=3]="FormatOnSemicolon",e[e.FormatOnOpeningCurlyBrace=4]="FormatOnOpeningCurlyBrace",e[e.FormatOnClosingCurlyBrace=5]="FormatOnClosingCurlyBrace",e))(ede||{}),tde=class{constructor(e,t,n){this.sourceFile=e,this.formattingRequestKind=t,this.options=n}updateContext(e,t,n,r,i){this.currentTokenSpan=un.checkDefined(e),this.currentTokenParent=un.checkDefined(t),this.nextTokenSpan=un.checkDefined(n),this.nextTokenParent=un.checkDefined(r),this.contextNode=un.checkDefined(i),this.contextNodeAllOnSameLine=void 0,this.nextNodeAllOnSameLine=void 0,this.tokensAreOnSameLine=void 0,this.contextNodeBlockIsOnOneLine=void 0,this.nextNodeBlockIsOnOneLine=void 0}ContextNodeAllOnSameLine(){return void 0===this.contextNodeAllOnSameLine&&(this.contextNodeAllOnSameLine=this.NodeIsOnOneLine(this.contextNode)),this.contextNodeAllOnSameLine}NextNodeAllOnSameLine(){return void 0===this.nextNodeAllOnSameLine&&(this.nextNodeAllOnSameLine=this.NodeIsOnOneLine(this.nextTokenParent)),this.nextNodeAllOnSameLine}TokensAreOnSameLine(){if(void 0===this.tokensAreOnSameLine){const e=this.sourceFile.getLineAndCharacterOfPosition(this.currentTokenSpan.pos).line,t=this.sourceFile.getLineAndCharacterOfPosition(this.nextTokenSpan.pos).line;this.tokensAreOnSameLine=e===t}return this.tokensAreOnSameLine}ContextNodeBlockIsOnOneLine(){return void 0===this.contextNodeBlockIsOnOneLine&&(this.contextNodeBlockIsOnOneLine=this.BlockIsOnOneLine(this.contextNode)),this.contextNodeBlockIsOnOneLine}NextNodeBlockIsOnOneLine(){return void 0===this.nextNodeBlockIsOnOneLine&&(this.nextNodeBlockIsOnOneLine=this.BlockIsOnOneLine(this.nextTokenParent)),this.nextNodeBlockIsOnOneLine}NodeIsOnOneLine(e){return this.sourceFile.getLineAndCharacterOfPosition(e.getStart(this.sourceFile)).line===this.sourceFile.getLineAndCharacterOfPosition(e.getEnd()).line}BlockIsOnOneLine(e){const t=yX(e,19,this.sourceFile),n=yX(e,20,this.sourceFile);return!(!t||!n)&&this.sourceFile.getLineAndCharacterOfPosition(t.getEnd()).line===this.sourceFile.getLineAndCharacterOfPosition(n.getStart(this.sourceFile)).line}},nde=ms(99,!1,0),rde=ms(99,!1,1);function ide(e,t,n,r,i){const o=1===t?rde:nde;o.setText(e),o.resetTokenState(n);let a,s,c,l,_,u=!0;const d=i({advance:function(){_=void 0,o.getTokenFullStart()!==n?u=!!s&&4===ve(s).kind:o.scan(),a=void 0,s=void 0;let e=o.getTokenFullStart();for(;ea,lastTrailingTriviaWasNewLine:()=>u,skipToEndOf:function(e){o.resetTokenState(e.end),c=o.getTokenFullStart(),l=void 0,_=void 0,u=!1,a=void 0,s=void 0},skipToStartOf:function(e){o.resetTokenState(e.pos),c=o.getTokenFullStart(),l=void 0,_=void 0,u=!1,a=void 0,s=void 0},getTokenFullStart:()=>(null==_?void 0:_.token.pos)??o.getTokenStart(),getStartPos:()=>(null==_?void 0:_.token.pos)??o.getTokenStart()});return _=void 0,o.setText(void 0),d;function p(){const e=_?_.token.kind:o.getToken();return 1!==e&&!Ph(e)}function f(){return 1===(_?_.token.kind:o.getToken())}function m(e,t){return Fl(t)&&e.token.kind!==t.kind&&(e.token.kind=t.kind),e}}var ode,ade=l,sde=(e=>(e[e.None=0]="None",e[e.StopProcessingSpaceActions=1]="StopProcessingSpaceActions",e[e.StopProcessingTokenActions=2]="StopProcessingTokenActions",e[e.InsertSpace=4]="InsertSpace",e[e.InsertNewLine=8]="InsertNewLine",e[e.DeleteSpace=16]="DeleteSpace",e[e.DeleteToken=32]="DeleteToken",e[e.InsertTrailingSemicolon=64]="InsertTrailingSemicolon",e[e.StopAction=3]="StopAction",e[e.ModifySpaceAction=28]="ModifySpaceAction",e[e.ModifyTokenAction=96]="ModifyTokenAction",e))(sde||{}),cde=(e=>(e[e.None=0]="None",e[e.CanDeleteNewLines=1]="CanDeleteNewLines",e))(cde||{});function lde(){const e=[];for(let t=0;t<=165;t++)1!==t&&e.push(t);function t(...t){return{tokens:e.filter((e=>!t.some((t=>t===e)))),isSpecific:!1}}const n={tokens:e,isSpecific:!1},r=ude([...e,3]),i=ude([...e,1]),o=pde(83,165),a=pde(30,79),s=[103,104,165,130,142,152],c=[80,...bQ],l=r,_=ude([80,32,3,86,95,102]),u=ude([22,3,92,113,98,93,85]);return[_de("IgnoreBeforeComment",n,[2,3],ade,1),_de("IgnoreAfterLineComment",2,n,ade,1),_de("NotSpaceBeforeColon",n,59,[Gde,Sde,Tde],16),_de("SpaceAfterColon",59,n,[Gde,Sde,tpe],4),_de("NoSpaceBeforeQuestionMark",n,58,[Gde,Sde,Tde],16),_de("SpaceAfterQuestionMarkInConditionalOperator",58,n,[Gde,Nde],4),_de("NoSpaceAfterQuestionMark",58,n,[Gde,wde],16),_de("NoSpaceBeforeDot",n,[25,29],[Gde,kpe],16),_de("NoSpaceAfterDot",[25,29],n,[Gde],16),_de("NoSpaceBetweenImportParenInImportType",102,21,[Gde,Kde],16),_de("NoSpaceAfterUnaryPrefixOperator",[46,47,55,54],[9,10,80,21,23,19,110,105],[Gde,Sde],16),_de("NoSpaceAfterUnaryPreincrementOperator",46,[80,21,110,105],[Gde],16),_de("NoSpaceAfterUnaryPredecrementOperator",47,[80,21,110,105],[Gde],16),_de("NoSpaceBeforeUnaryPostincrementOperator",[80,22,24,105],46,[Gde,vpe],16),_de("NoSpaceBeforeUnaryPostdecrementOperator",[80,22,24,105],47,[Gde,vpe],16),_de("SpaceAfterPostincrementWhenFollowedByAdd",46,40,[Gde,kde],4),_de("SpaceAfterAddWhenFollowedByUnaryPlus",40,40,[Gde,kde],4),_de("SpaceAfterAddWhenFollowedByPreincrement",40,46,[Gde,kde],4),_de("SpaceAfterPostdecrementWhenFollowedBySubtract",47,41,[Gde,kde],4),_de("SpaceAfterSubtractWhenFollowedByUnaryMinus",41,41,[Gde,kde],4),_de("SpaceAfterSubtractWhenFollowedByPredecrement",41,47,[Gde,kde],4),_de("NoSpaceAfterCloseBrace",20,[28,27],[Gde],16),_de("NewLineBeforeCloseBraceInBlockContext",r,20,[Pde],8),_de("SpaceAfterCloseBrace",20,t(22),[Gde,Jde],4),_de("SpaceBetweenCloseBraceAndElse",20,93,[Gde],4),_de("SpaceBetweenCloseBraceAndWhile",20,117,[Gde],4),_de("NoSpaceBetweenEmptyBraceBrackets",19,20,[Gde,qde],16),_de("SpaceAfterConditionalClosingParen",22,23,[zde],4),_de("NoSpaceBetweenFunctionKeywordAndStar",100,42,[Rde],16),_de("SpaceAfterStarInGeneratorDeclaration",42,80,[Rde],4),_de("SpaceAfterFunctionInFuncDecl",100,n,[Lde],4),_de("NewLineAfterOpenBraceInBlockContext",19,n,[Pde],8),_de("SpaceAfterGetSetInMember",[139,153],80,[Lde],4),_de("NoSpaceBetweenYieldKeywordAndStar",127,42,[Gde,hpe],16),_de("SpaceBetweenYieldOrYieldStarAndOperand",[127,42],n,[Gde,hpe],4),_de("NoSpaceBetweenReturnAndSemicolon",107,27,[Gde],16),_de("SpaceAfterCertainKeywords",[115,111,105,91,107,114,135],n,[Gde],4),_de("SpaceAfterLetConstInVariableDeclaration",[121,87],n,[Gde,spe],4),_de("NoSpaceBeforeOpenParenInFuncCall",n,21,[Gde,Ude,Vde],16),_de("SpaceBeforeBinaryKeywordOperator",n,s,[Gde,kde],4),_de("SpaceAfterBinaryKeywordOperator",s,n,[Gde,kde],4),_de("SpaceAfterVoidOperator",116,n,[Gde,gpe],4),_de("SpaceBetweenAsyncAndOpenParen",134,21,[Hde,Gde],4),_de("SpaceBetweenAsyncAndFunctionKeyword",134,[100,80],[Gde],4),_de("NoSpaceBetweenTagAndTemplateString",[80,22],[15,16],[Gde],16),_de("SpaceBeforeJsxAttribute",n,80,[Zde,Gde],4),_de("SpaceBeforeSlashInJsxOpeningElement",n,44,[rpe,Gde],4),_de("NoSpaceBeforeGreaterThanTokenInJsxOpeningElement",44,32,[rpe,Gde],16),_de("NoSpaceBeforeEqualInJsxAttribute",n,64,[epe,Gde],16),_de("NoSpaceAfterEqualInJsxAttribute",64,n,[epe,Gde],16),_de("NoSpaceBeforeJsxNamespaceColon",80,59,[npe],16),_de("NoSpaceAfterJsxNamespaceColon",59,80,[npe],16),_de("NoSpaceAfterModuleImport",[144,149],21,[Gde],16),_de("SpaceAfterCertainTypeScriptKeywords",[128,129,86,138,90,94,95,96,139,119,102,120,144,145,123,125,124,148,153,126,156,161,143,140],n,[Gde],4),_de("SpaceBeforeCertainTypeScriptKeywords",n,[96,119,161],[Gde],4),_de("SpaceAfterModuleName",11,19,[lpe],4),_de("SpaceBeforeArrow",n,39,[Gde],4),_de("SpaceAfterArrow",39,n,[Gde],4),_de("NoSpaceAfterEllipsis",26,80,[Gde],16),_de("NoSpaceAfterOptionalParameters",58,[22,28],[Gde,Sde],16),_de("NoSpaceBetweenEmptyInterfaceBraceBrackets",19,20,[Gde,_pe],16),_de("NoSpaceBeforeOpenAngularBracket",c,30,[Gde,ppe],16),_de("NoSpaceBetweenCloseParenAndAngularBracket",22,30,[Gde,ppe],16),_de("NoSpaceAfterOpenAngularBracket",30,n,[Gde,ppe],16),_de("NoSpaceBeforeCloseAngularBracket",n,32,[Gde,ppe],16),_de("NoSpaceAfterCloseAngularBracket",32,[21,23,32,28],[Gde,ppe,jde,mpe],16),_de("SpaceBeforeAt",[22,80],60,[Gde],4),_de("NoSpaceAfterAt",60,n,[Gde],16),_de("SpaceAfterDecorator",n,[128,80,95,90,86,126,125,123,124,139,153,23,42],[ope],4),_de("NoSpaceBeforeNonNullAssertionOperator",n,54,[Gde,ype],16),_de("NoSpaceAfterNewKeywordOnConstructorSignature",105,21,[Gde,upe],16),_de("SpaceLessThanAndNonJSXTypeAnnotation",30,30,[Gde],4),_de("SpaceAfterConstructor",137,21,[mde("insertSpaceAfterConstructor"),Gde],4),_de("NoSpaceAfterConstructor",137,21,[hde("insertSpaceAfterConstructor"),Gde],16),_de("SpaceAfterComma",28,n,[mde("insertSpaceAfterCommaDelimiter"),Gde,Qde,Wde,$de],4),_de("NoSpaceAfterComma",28,n,[hde("insertSpaceAfterCommaDelimiter"),Gde,Qde],16),_de("SpaceAfterAnonymousFunctionKeyword",[100,42],21,[mde("insertSpaceAfterFunctionKeywordForAnonymousFunctions"),Lde],4),_de("NoSpaceAfterAnonymousFunctionKeyword",[100,42],21,[hde("insertSpaceAfterFunctionKeywordForAnonymousFunctions"),Lde],16),_de("SpaceAfterKeywordInControl",o,21,[mde("insertSpaceAfterKeywordsInControlFlowStatements"),zde],4),_de("NoSpaceAfterKeywordInControl",o,21,[hde("insertSpaceAfterKeywordsInControlFlowStatements"),zde],16),_de("SpaceAfterOpenParen",21,n,[mde("insertSpaceAfterOpeningAndBeforeClosingNonemptyParenthesis"),Gde],4),_de("SpaceBeforeCloseParen",n,22,[mde("insertSpaceAfterOpeningAndBeforeClosingNonemptyParenthesis"),Gde],4),_de("SpaceBetweenOpenParens",21,21,[mde("insertSpaceAfterOpeningAndBeforeClosingNonemptyParenthesis"),Gde],4),_de("NoSpaceBetweenParens",21,22,[Gde],16),_de("NoSpaceAfterOpenParen",21,n,[hde("insertSpaceAfterOpeningAndBeforeClosingNonemptyParenthesis"),Gde],16),_de("NoSpaceBeforeCloseParen",n,22,[hde("insertSpaceAfterOpeningAndBeforeClosingNonemptyParenthesis"),Gde],16),_de("SpaceAfterOpenBracket",23,n,[mde("insertSpaceAfterOpeningAndBeforeClosingNonemptyBrackets"),Gde],4),_de("SpaceBeforeCloseBracket",n,24,[mde("insertSpaceAfterOpeningAndBeforeClosingNonemptyBrackets"),Gde],4),_de("NoSpaceBetweenBrackets",23,24,[Gde],16),_de("NoSpaceAfterOpenBracket",23,n,[hde("insertSpaceAfterOpeningAndBeforeClosingNonemptyBrackets"),Gde],16),_de("NoSpaceBeforeCloseBracket",n,24,[hde("insertSpaceAfterOpeningAndBeforeClosingNonemptyBrackets"),Gde],16),_de("SpaceAfterOpenBrace",19,n,[vde("insertSpaceAfterOpeningAndBeforeClosingNonemptyBraces"),Fde],4),_de("SpaceBeforeCloseBrace",n,20,[vde("insertSpaceAfterOpeningAndBeforeClosingNonemptyBraces"),Fde],4),_de("NoSpaceBetweenEmptyBraceBrackets",19,20,[Gde,qde],16),_de("NoSpaceAfterOpenBrace",19,n,[gde("insertSpaceAfterOpeningAndBeforeClosingNonemptyBraces"),Gde],16),_de("NoSpaceBeforeCloseBrace",n,20,[gde("insertSpaceAfterOpeningAndBeforeClosingNonemptyBraces"),Gde],16),_de("SpaceBetweenEmptyBraceBrackets",19,20,[mde("insertSpaceAfterOpeningAndBeforeClosingEmptyBraces")],4),_de("NoSpaceBetweenEmptyBraceBrackets",19,20,[gde("insertSpaceAfterOpeningAndBeforeClosingEmptyBraces"),Gde],16),_de("SpaceAfterTemplateHeadAndMiddle",[16,17],n,[mde("insertSpaceAfterOpeningAndBeforeClosingTemplateStringBraces"),Xde],4,1),_de("SpaceBeforeTemplateMiddleAndTail",n,[17,18],[mde("insertSpaceAfterOpeningAndBeforeClosingTemplateStringBraces"),Gde],4),_de("NoSpaceAfterTemplateHeadAndMiddle",[16,17],n,[hde("insertSpaceAfterOpeningAndBeforeClosingTemplateStringBraces"),Xde],16,1),_de("NoSpaceBeforeTemplateMiddleAndTail",n,[17,18],[hde("insertSpaceAfterOpeningAndBeforeClosingTemplateStringBraces"),Gde],16),_de("SpaceAfterOpenBraceInJsxExpression",19,n,[mde("insertSpaceAfterOpeningAndBeforeClosingJsxExpressionBraces"),Gde,Yde],4),_de("SpaceBeforeCloseBraceInJsxExpression",n,20,[mde("insertSpaceAfterOpeningAndBeforeClosingJsxExpressionBraces"),Gde,Yde],4),_de("NoSpaceAfterOpenBraceInJsxExpression",19,n,[hde("insertSpaceAfterOpeningAndBeforeClosingJsxExpressionBraces"),Gde,Yde],16),_de("NoSpaceBeforeCloseBraceInJsxExpression",n,20,[hde("insertSpaceAfterOpeningAndBeforeClosingJsxExpressionBraces"),Gde,Yde],16),_de("SpaceAfterSemicolonInFor",27,n,[mde("insertSpaceAfterSemicolonInForStatements"),Gde,bde],4),_de("NoSpaceAfterSemicolonInFor",27,n,[hde("insertSpaceAfterSemicolonInForStatements"),Gde,bde],16),_de("SpaceBeforeBinaryOperator",n,a,[mde("insertSpaceBeforeAndAfterBinaryOperators"),Gde,kde],4),_de("SpaceAfterBinaryOperator",a,n,[mde("insertSpaceBeforeAndAfterBinaryOperators"),Gde,kde],4),_de("NoSpaceBeforeBinaryOperator",n,a,[hde("insertSpaceBeforeAndAfterBinaryOperators"),Gde,kde],16),_de("NoSpaceAfterBinaryOperator",a,n,[hde("insertSpaceBeforeAndAfterBinaryOperators"),Gde,kde],16),_de("SpaceBeforeOpenParenInFuncDecl",n,21,[mde("insertSpaceBeforeFunctionParenthesis"),Gde,Lde],4),_de("NoSpaceBeforeOpenParenInFuncDecl",n,21,[hde("insertSpaceBeforeFunctionParenthesis"),Gde,Lde],16),_de("NewLineBeforeOpenBraceInControl",u,19,[mde("placeOpenBraceOnNewLineForControlBlocks"),zde,Ede],8,1),_de("NewLineBeforeOpenBraceInFunction",l,19,[mde("placeOpenBraceOnNewLineForFunctions"),Lde,Ede],8,1),_de("NewLineBeforeOpenBraceInTypeScriptDeclWithBlock",_,19,[mde("placeOpenBraceOnNewLineForFunctions"),Mde,Ede],8,1),_de("SpaceAfterTypeAssertion",32,n,[mde("insertSpaceAfterTypeAssertion"),Gde,fpe],4),_de("NoSpaceAfterTypeAssertion",32,n,[hde("insertSpaceAfterTypeAssertion"),Gde,fpe],16),_de("SpaceBeforeTypeAnnotation",n,[58,59],[mde("insertSpaceBeforeTypeAnnotation"),Gde,Cde],4),_de("NoSpaceBeforeTypeAnnotation",n,[58,59],[hde("insertSpaceBeforeTypeAnnotation"),Gde,Cde],16),_de("NoOptionalSemicolon",27,i,[fde("semicolons","remove"),bpe],32),_de("OptionalSemicolon",n,i,[fde("semicolons","insert"),xpe],64),_de("NoSpaceBeforeSemicolon",n,27,[Gde],16),_de("SpaceBeforeOpenBraceInControl",u,19,[yde("placeOpenBraceOnNewLineForControlBlocks"),zde,cpe,Dde],4,1),_de("SpaceBeforeOpenBraceInFunction",l,19,[yde("placeOpenBraceOnNewLineForFunctions"),Lde,Ide,cpe,Dde],4,1),_de("SpaceBeforeOpenBraceInTypeScriptDeclWithBlock",_,19,[yde("placeOpenBraceOnNewLineForFunctions"),Mde,cpe,Dde],4,1),_de("NoSpaceBeforeComma",n,28,[Gde],16),_de("NoSpaceBeforeOpenBracket",t(134,84),23,[Gde],16),_de("NoSpaceAfterCloseBracket",24,n,[Gde,ipe],16),_de("SpaceAfterSemicolon",27,n,[Gde],4),_de("SpaceBetweenForAndAwaitKeyword",99,135,[Gde],4),_de("SpaceBetweenDotDotDotAndTypeName",26,c,[Gde],16),_de("SpaceBetweenStatements",[22,92,93,84],n,[Gde,Qde,xde],4),_de("SpaceAfterTryCatchFinally",[113,85,98],19,[Gde],4)]}function _de(e,t,n,r,i,o=0){return{leftTokenRange:dde(t),rightTokenRange:dde(n),rule:{debugName:e,context:r,action:i,flags:o}}}function ude(e){return{tokens:e,isSpecific:!0}}function dde(e){return"number"==typeof e?ude([e]):Qe(e)?ude(e):e}function pde(e,t,n=[]){const r=[];for(let i=e;i<=t;i++)T(n,i)||r.push(i);return ude(r)}function fde(e,t){return n=>n.options&&n.options[e]===t}function mde(e){return t=>t.options&&De(t.options,e)&&!!t.options[e]}function gde(e){return t=>t.options&&De(t.options,e)&&!t.options[e]}function hde(e){return t=>!t.options||!De(t.options,e)||!t.options[e]}function yde(e){return t=>!t.options||!De(t.options,e)||!t.options[e]||t.TokensAreOnSameLine()}function vde(e){return t=>!t.options||!De(t.options,e)||!!t.options[e]}function bde(e){return 248===e.contextNode.kind}function xde(e){return!bde(e)}function kde(e){switch(e.contextNode.kind){case 226:return 28!==e.contextNode.operatorToken.kind;case 227:case 194:case 234:case 281:case 276:case 182:case 192:case 193:case 238:return!0;case 208:case 265:case 271:case 277:case 260:case 169:case 306:case 172:case 171:return 64===e.currentTokenSpan.kind||64===e.nextTokenSpan.kind;case 249:case 168:return 103===e.currentTokenSpan.kind||103===e.nextTokenSpan.kind||64===e.currentTokenSpan.kind||64===e.nextTokenSpan.kind;case 250:return 165===e.currentTokenSpan.kind||165===e.nextTokenSpan.kind}return!1}function Sde(e){return!kde(e)}function Tde(e){return!Cde(e)}function Cde(e){const t=e.contextNode.kind;return 172===t||171===t||169===t||260===t||s_(t)}function wde(e){return!function(e){return cD(e.contextNode)&&e.contextNode.questionToken}(e)}function Nde(e){return 227===e.contextNode.kind||194===e.contextNode.kind}function Dde(e){return e.TokensAreOnSameLine()||Ide(e)}function Fde(e){return 206===e.contextNode.kind||200===e.contextNode.kind||function(e){return Ade(e)&&(e.ContextNodeAllOnSameLine()||e.ContextNodeBlockIsOnOneLine())}(e)}function Ede(e){return Ide(e)&&!(e.NextNodeAllOnSameLine()||e.NextNodeBlockIsOnOneLine())}function Pde(e){return Ade(e)&&!(e.ContextNodeAllOnSameLine()||e.ContextNodeBlockIsOnOneLine())}function Ade(e){return Ode(e.contextNode)}function Ide(e){return Ode(e.nextTokenParent)}function Ode(e){if(Bde(e))return!0;switch(e.kind){case 241:case 269:case 210:case 268:return!0}return!1}function Lde(e){switch(e.contextNode.kind){case 262:case 174:case 173:case 177:case 178:case 179:case 218:case 176:case 219:case 264:return!0}return!1}function jde(e){return!Lde(e)}function Rde(e){return 262===e.contextNode.kind||218===e.contextNode.kind}function Mde(e){return Bde(e.contextNode)}function Bde(e){switch(e.kind){case 263:case 231:case 264:case 266:case 187:case 267:case 278:case 279:case 272:case 275:return!0}return!1}function Jde(e){switch(e.currentTokenParent.kind){case 263:case 267:case 266:case 299:case 268:case 255:return!0;case 241:{const t=e.currentTokenParent.parent;if(!t||219!==t.kind&&218!==t.kind)return!0}}return!1}function zde(e){switch(e.contextNode.kind){case 245:case 255:case 248:case 249:case 250:case 247:case 258:case 246:case 254:case 299:return!0;default:return!1}}function qde(e){return 210===e.contextNode.kind}function Ude(e){return function(e){return 213===e.contextNode.kind}(e)||function(e){return 214===e.contextNode.kind}(e)}function Vde(e){return 28!==e.currentTokenSpan.kind}function Wde(e){return 24!==e.nextTokenSpan.kind}function $de(e){return 22!==e.nextTokenSpan.kind}function Hde(e){return 219===e.contextNode.kind}function Kde(e){return 205===e.contextNode.kind}function Gde(e){return e.TokensAreOnSameLine()&&12!==e.contextNode.kind}function Xde(e){return 12!==e.contextNode.kind}function Qde(e){return 284!==e.contextNode.kind&&288!==e.contextNode.kind}function Yde(e){return 294===e.contextNode.kind||293===e.contextNode.kind}function Zde(e){return 291===e.nextTokenParent.kind||295===e.nextTokenParent.kind&&291===e.nextTokenParent.parent.kind}function epe(e){return 291===e.contextNode.kind}function tpe(e){return 295!==e.nextTokenParent.kind}function npe(e){return 295===e.nextTokenParent.kind}function rpe(e){return 285===e.contextNode.kind}function ipe(e){return!Lde(e)&&!Ide(e)}function ope(e){return e.TokensAreOnSameLine()&&Ov(e.contextNode)&&ape(e.currentTokenParent)&&!ape(e.nextTokenParent)}function ape(e){for(;e&&U_(e);)e=e.parent;return e&&170===e.kind}function spe(e){return 261===e.currentTokenParent.kind&&e.currentTokenParent.getStart(e.sourceFile)===e.currentTokenSpan.pos}function cpe(e){return 2!==e.formattingRequestKind}function lpe(e){return 267===e.contextNode.kind}function _pe(e){return 187===e.contextNode.kind}function upe(e){return 180===e.contextNode.kind}function dpe(e,t){if(30!==e.kind&&32!==e.kind)return!1;switch(t.kind){case 183:case 216:case 265:case 263:case 231:case 264:case 262:case 218:case 219:case 174:case 173:case 179:case 180:case 213:case 214:case 233:return!0;default:return!1}}function ppe(e){return dpe(e.currentTokenSpan,e.currentTokenParent)||dpe(e.nextTokenSpan,e.nextTokenParent)}function fpe(e){return 216===e.contextNode.kind}function mpe(e){return!fpe(e)}function gpe(e){return 116===e.currentTokenSpan.kind&&222===e.currentTokenParent.kind}function hpe(e){return 229===e.contextNode.kind&&void 0!==e.contextNode.expression}function ype(e){return 235===e.contextNode.kind}function vpe(e){return!function(e){switch(e.contextNode.kind){case 245:case 248:case 249:case 250:case 246:case 247:return!0;default:return!1}}(e)}function bpe(e){let t=e.nextTokenSpan.kind,n=e.nextTokenSpan.pos;if(Ph(t)){const r=e.nextTokenParent===e.currentTokenParent?LX(e.currentTokenParent,_c(e.currentTokenParent,(e=>!e.parent)),e.sourceFile):e.nextTokenParent.getFirstToken(e.sourceFile);if(!r)return!0;t=r.kind,n=r.getStart(e.sourceFile)}return e.sourceFile.getLineAndCharacterOfPosition(e.currentTokenSpan.pos).line===e.sourceFile.getLineAndCharacterOfPosition(n).line?20===t||1===t:27===t&&27===e.currentTokenSpan.kind||240!==t&&27!==t&&(264===e.contextNode.kind||265===e.contextNode.kind?!sD(e.currentTokenParent)||!!e.currentTokenParent.type||21!==t:cD(e.currentTokenParent)?!e.currentTokenParent.initializer:248!==e.currentTokenParent.kind&&242!==e.currentTokenParent.kind&&240!==e.currentTokenParent.kind&&23!==t&&21!==t&&40!==t&&41!==t&&44!==t&&14!==t&&28!==t&&228!==t&&16!==t&&15!==t&&25!==t)}function xpe(e){return pZ(e.currentTokenSpan.end,e.currentTokenParent,e.sourceFile)}function kpe(e){return!HD(e.contextNode)||!kN(e.contextNode.expression)||e.contextNode.expression.getText().includes(".")}function Spe(e,t){return{options:e,getRules:(void 0===ode&&(ode=function(e){const t=function(e){const t=new Array(Ipe*Ipe),n=new Array(t.length);for(const r of e){const e=r.leftTokenRange.isSpecific&&r.rightTokenRange.isSpecific;for(const i of r.leftTokenRange.tokens)for(const o of r.rightTokenRange.tokens){const a=Cpe(i,o);let s=t[a];void 0===s&&(s=t[a]=[]),Lpe(s,r.rule,e,n,a)}}return t}(e);return e=>{const n=t[Cpe(e.currentTokenSpan.kind,e.nextTokenSpan.kind)];if(n){const t=[];let r=0;for(const i of n){const n=~Tpe(r);i.action&n&&v(i.context,(t=>t(e)))&&(t.push(i),r|=i.action)}if(t.length)return t}}}(lde())),ode),host:t}}function Tpe(e){let t=0;return 1&e&&(t|=28),2&e&&(t|=96),28&e&&(t|=28),96&e&&(t|=96),t}function Cpe(e,t){return un.assert(e<=165&&t<=165,"Must compute formatting context from tokens"),e*Ipe+t}var wpe,Npe,Dpe,Fpe,Epe,Ppe=5,Ape=31,Ipe=166,Ope=((wpe=Ope||{})[wpe.StopRulesSpecific=0]="StopRulesSpecific",wpe[wpe.StopRulesAny=1*Ppe]="StopRulesAny",wpe[wpe.ContextRulesSpecific=2*Ppe]="ContextRulesSpecific",wpe[wpe.ContextRulesAny=3*Ppe]="ContextRulesAny",wpe[wpe.NoContextRulesSpecific=4*Ppe]="NoContextRulesSpecific",wpe[wpe.NoContextRulesAny=5*Ppe]="NoContextRulesAny",wpe);function Lpe(e,t,n,r,i){const o=3&t.action?n?0:Ope.StopRulesAny:t.context!==ade?n?Ope.ContextRulesSpecific:Ope.ContextRulesAny:n?Ope.NoContextRulesSpecific:Ope.NoContextRulesAny,a=r[i]||0;e.splice(function(e,t){let n=0;for(let r=0;r<=t;r+=Ppe)n+=e&Ape,e>>=Ppe;return n}(a,o),0,t),r[i]=function(e,t){const n=1+(e>>t&Ape);return un.assert((n&Ape)===n,"Adding more rules into the sub-bucket than allowed. Maximum allowed is 32 rules."),e&~(Ape<un.formatSyntaxKind(n)}),r}function Rpe(e,t,n){const r=t.getLineAndCharacterOfPosition(e).line;if(0===r)return[];let i=Sd(r,t);for(;qa(t.text.charCodeAt(i));)i--;return Ua(t.text.charCodeAt(i))&&i--,Kpe({pos:xd(r-1,t),end:i+1},t,n,2)}function Mpe(e,t,n){return Hpe(Vpe(Upe(e,27,t)),t,n,3)}function Bpe(e,t,n){const r=Upe(e,19,t);return r?Kpe({pos:oX(Vpe(r.parent).getStart(t),t),end:e},t,n,4):[]}function Jpe(e,t,n){return Hpe(Vpe(Upe(e,20,t)),t,n,5)}function zpe(e,t){return Kpe({pos:0,end:e.text.length},e,t,0)}function qpe(e,t,n,r){return Kpe({pos:oX(e,n),end:t},n,r,1)}function Upe(e,t,n){const r=jX(e,n);return r&&r.kind===t&&e===r.getEnd()?r:void 0}function Vpe(e){let t=e;for(;t&&t.parent&&t.parent.end===e.end&&!Wpe(t.parent,t);)t=t.parent;return t}function Wpe(e,t){switch(e.kind){case 263:case 264:return Gb(e.members,t);case 267:const n=e.body;return!!n&&268===n.kind&&Gb(n.statements,t);case 307:case 241:case 268:return Gb(e.statements,t);case 299:return Gb(e.block.statements,t)}return!1}function $pe(e,t,n,r,i,o){const a={pos:e.pos,end:e.end};return ide(t.text,n,a.pos,a.end,(n=>Gpe(a,e,r,i,n,o,1,(e=>!1),t)))}function Hpe(e,t,n,r){return e?Kpe({pos:oX(e.getStart(t),t),end:e.end},t,n,r):[]}function Kpe(e,t,n,r){const i=function(e,t){return function n(r){const i=PI(r,(n=>Xb(n.getStart(t),n.end,e)&&n));if(i){const e=n(i);if(e)return e}return r}(t)}(e,t);return ide(t.text,t.languageVariant,function(e,t,n){const r=e.getStart(n);if(r===t.pos&&e.end===t.end)return r;const i=jX(t.pos,n);return i?i.end>=t.pos?e.pos:i.end:e.pos}(i,e,t),e.end,(o=>Gpe(e,i,Epe.getIndentationForNode(i,e,t,n.options),function(e,t,n){let r,i=-1;for(;e;){const o=n.getLineAndCharacterOfPosition(e.getStart(n)).line;if(-1!==i&&o!==i)break;if(Epe.shouldIndentChildNode(t,e,r,n))return t.indentSize;i=o,r=e,e=e.parent}return 0}(i,n.options,t),o,n,r,function(e,t){if(!e.length)return i;const n=e.filter((e=>_X(t,e.start,e.start+e.length))).sort(((e,t)=>e.start-t.start));if(!n.length)return i;let r=0;return e=>{for(;;){if(r>=n.length)return!1;const t=n[r];if(e.end<=t.start)return!1;if(dX(e.pos,e.end,t.start,t.start+t.length))return!0;r++}};function i(){return!1}}(t.parseDiagnostics,e),t)))}function Gpe(e,t,n,r,i,{options:o,getRules:a,host:s},c,l,_){var u;const d=new tde(_,c,o);let f,m,g,h,y,v=-1;const x=[];if(i.advance(),i.isOnToken()){const a=_.getLineAndCharacterOfPosition(t.getStart(_)).line;let s=a;Ov(t)&&(s=_.getLineAndCharacterOfPosition(Jd(t,_)).line),function t(n,r,a,s,c,u){if(!_X(e,n.getStart(_),n.getEnd()))return;const d=T(n,a,c,u);let p=r;for(PI(n,(e=>{g(e,-1,n,d,a,s,!1)}),(t=>{!function(t,r,a,s){un.assert(El(t)),un.assert(!Zh(t));const c=function(e,t){switch(e.kind){case 176:case 262:case 218:case 174:case 173:case 219:case 179:case 180:case 184:case 185:case 177:case 178:if(e.typeParameters===t)return 30;if(e.parameters===t)return 21;break;case 213:case 214:if(e.typeArguments===t)return 30;if(e.arguments===t)return 21;break;case 263:case 231:case 264:case 265:if(e.typeParameters===t)return 30;break;case 183:case 215:case 186:case 233:case 205:if(e.typeArguments===t)return 30;break;case 187:return 19}return 0}(r,t);let l=s,u=a;if(!_X(e,t.pos,t.end))return void(t.endt.pos)break;if(e.token.kind===c){let t;if(u=_.getLineAndCharacterOfPosition(e.token.pos).line,h(e,r,s,r),-1!==v)t=v;else{const n=oX(e.token.pos,_);t=Epe.findFirstNonWhitespaceColumn(n,e.token.pos,_,o)}l=T(r,a,t,o.indentSize)}else h(e,r,s,r)}let d=-1;for(let e=0;eMath.min(n.end,e.end))break;h(t,n,d,n)}function g(r,a,s,c,l,u,d,f){if(un.assert(!Zh(r)),Cd(r)||Nd(s,r))return a;const m=r.getStart(_),g=_.getLineAndCharacterOfPosition(m).line;let b=g;Ov(r)&&(b=_.getLineAndCharacterOfPosition(Jd(r,_)).line);let x=-1;if(d&&Gb(e,s)&&(x=function(e,t,n,r,i){if(_X(r,e,t)||lX(r,e,t)){if(-1!==i)return i}else{const t=_.getLineAndCharacterOfPosition(e).line,r=oX(e,_),i=Epe.findFirstNonWhitespaceColumn(r,e,_,o);if(t!==n||e===i){const e=Epe.getBaseIndentation(o);return e>i?e:i}}return-1}(m,r.end,l,e,a),-1!==x&&(a=x)),!_X(e,r.pos,r.end))return r.ende.end)return a;if(t.token.end>m){t.token.pos>m&&i.skipToStartOf(r);break}h(t,n,c,n)}if(!i.isOnToken()||i.getTokenFullStart()>=e.end)return a;if(Fl(r)){const e=i.readTokenInfo(r);if(12!==r.kind)return un.assert(e.token.end===r.end,"Token end is child end"),h(e,n,c,r),a}const k=170===r.kind?g:u,S=function(e,t,n,r,i,a){const s=Epe.shouldIndentChildNode(o,e)?o.indentSize:0;return a===t?{indentation:t===y?v:i.getIndentation(),delta:Math.min(o.indentSize,i.getDelta(e)+s)}:-1===n?21===e.kind&&t===y?{indentation:v,delta:i.getDelta(e)}:Epe.childStartsOnTheSameLineWithElseInIfStatement(r,e,t,_)||Epe.childIsUnindentedBranchOfConditionalExpression(r,e,t,_)||Epe.argumentStartsOnSameLineAsPreviousArgument(r,e,t,_)?{indentation:i.getIndentation(),delta:s}:{indentation:i.getIndentation()+i.getDelta(e),delta:s}:{indentation:n,delta:s}}(r,g,x,n,c,k);return t(r,p,g,b,S.indentation,S.delta),p=n,f&&209===s.kind&&-1===a&&(a=S.indentation),a}function h(t,n,r,o,a){un.assert(Gb(n,t.token));const s=i.lastTrailingTriviaWasNewLine();let c=!1;t.leadingTrivia&&w(t.leadingTrivia,n,p,r);let u=0;const d=Gb(e,t.token),g=_.getLineAndCharacterOfPosition(t.token.pos);if(d){const e=l(t.token),i=m;if(u=N(t.token,g,n,p,r),!e)if(0===u){const e=i&&_.getLineAndCharacterOfPosition(i.end).line;c=s&&g.line!==e}else c=1===u}if(t.trailingTrivia&&(f=ve(t.trailingTrivia).end,w(t.trailingTrivia,n,p,r)),c){const e=d&&!l(t.token)?r.getIndentationForToken(g.line,t.token.kind,o,!!a):-1;let n=!0;if(t.leadingTrivia){const i=r.getIndentationForComment(t.token.kind,e,o);n=C(t.leadingTrivia,i,n,(e=>F(e.pos,i,!1)))}-1!==e&&n&&(F(t.token.pos,e,1===u),y=g.line,v=e)}i.advance(),p=n}}(t,t,a,s,n,r)}const S=i.getCurrentLeadingTrivia();if(S){const r=Epe.nodeWillIndentChild(o,t,void 0,_,!1)?n+o.indentSize:n;C(S,r,!0,(e=>{N(e,_.getLineAndCharacterOfPosition(e.pos),t,t,void 0),F(e.pos,r,!1)})),!1!==o.trimTrailingWhitespace&&function(t){let n=m?m.end:e.pos;for(const e of t)tQ(e.kind)&&(n=e.end){const e=i.isOnEOF()?i.readEOFTokenRange():i.isOnToken()?i.readTokenInfo(t).token:void 0;if(e&&e.pos===f){const n=(null==(u=jX(e.end,_,t))?void 0:u.parent)||g;D(e,_.getLineAndCharacterOfPosition(e.pos).line,n,m,h,g,n,void 0)}}return x;function T(e,t,n,r){return{getIndentationForComment:(e,t,r)=>{switch(e){case 20:case 24:case 22:return n+i(r)}return-1!==t?t:n},getIndentationForToken:(r,o,a,s)=>!s&&function(n,r,i){switch(r){case 19:case 20:case 22:case 93:case 117:case 60:return!1;case 44:case 32:switch(i.kind){case 286:case 287:case 285:return!1}break;case 23:case 24:if(200!==i.kind)return!1}return t!==n&&!(Ov(e)&&r===function(e){if(rI(e)){const t=b(e.modifiers,Yl,k(e.modifiers,aD));if(t)return t.kind}switch(e.kind){case 263:return 86;case 264:return 120;case 262:return 100;case 266:return 266;case 177:return 139;case 178:return 153;case 174:if(e.asteriskToken)return 42;case 172:case 169:const t=Tc(e);if(t)return t.kind}}(e))}(r,o,a)?n+i(a):n,getIndentation:()=>n,getDelta:i,recomputeIndentation:(t,i)=>{Epe.shouldIndentChildNode(o,i,e,_)&&(n+=t?o.indentSize:-o.indentSize,r=Epe.shouldIndentChildNode(o,e)?o.indentSize:0)}};function i(t){return Epe.nodeWillIndentChild(o,e,t,_,!0)?r:0}}function C(t,n,r,i){for(const o of t){const t=Gb(e,o);switch(o.kind){case 3:t&&E(o,n,!r),r=!1;break;case 2:r&&t&&i(o),r=!1;break;case 4:r=!0}}return r}function w(t,n,r,i){for(const o of t)tQ(o.kind)&&Gb(e,o)&&N(o,_.getLineAndCharacterOfPosition(o.pos),n,r,i)}function N(t,n,r,i,o){let a=0;return l(t)||(m?a=D(t,n.line,r,m,h,g,i,o):P(_.getLineAndCharacterOfPosition(e.pos).line,n.line)),m=t,f=t.end,g=r,h=n.line,a}function D(e,t,n,r,i,c,l,u){d.updateContext(r,c,e,n,l);const f=a(d);let m=!1!==d.options.trimTrailingWhitespace,g=0;return f?p(f,(a=>{if(g=function(e,t,n,r,i){const a=i!==n;switch(e.action){case 1:return 0;case 16:if(t.end!==r.pos)return O(t.end,r.pos-t.end),a?2:0;break;case 32:O(t.pos,t.end-t.pos);break;case 8:if(1!==e.flags&&n!==i)return 0;if(1!=i-n)return L(t.end,r.pos-t.end,kY(s,o)),a?0:1;break;case 4:if(1!==e.flags&&n!==i)return 0;if(1!=r.pos-t.end||32!==_.text.charCodeAt(t.end))return L(t.end,r.pos-t.end," "),a?2:0;break;case 64:c=t.end,";"&&x.push(yQ(c,0,";"))}var c;return 0}(a,r,i,e,t),u)switch(g){case 2:n.getStart(_)===e.pos&&u.recomputeIndentation(!1,l);break;case 1:n.getStart(_)===e.pos&&u.recomputeIndentation(!0,l);break;default:un.assert(0===g)}m=m&&!(16&a.action)&&1!==a.flags})):m=m&&1!==e.kind,t!==i&&m&&P(i,t,r),g}function F(e,t,n){const r=Qpe(t,o);if(n)L(e,0,r);else{const n=_.getLineAndCharacterOfPosition(e),i=xd(n.line,_);(t!==function(e,t){let n=0;for(let r=0;r0){const e=Qpe(r,o);L(t,n.character,e)}else O(t,n.character)}}function P(e,t,n){for(let r=e;rt)continue;const i=A(e,t);-1!==i&&(un.assert(i===e||!qa(_.text.charCodeAt(i-1))),O(i,t+1-i))}}function A(e,t){let n=t;for(;n>=e&&qa(_.text.charCodeAt(n));)n--;return n!==t?n+1:-1}function I(e,t,n){P(_.getLineAndCharacterOfPosition(e).line,_.getLineAndCharacterOfPosition(t).line+1,n)}function O(e,t){t&&x.push(yQ(e,t,""))}function L(e,t,n){(t||n)&&x.push(yQ(e,t,n))}}function Xpe(e,t,n,r=PX(e,t)){const i=_c(r,iP);if(i&&(r=i.parent),r.getStart(e)<=t&&tcX(n,t)||t===n.end&&(2===n.kind||t===e.getFullWidth())))}function Qpe(e,t){if((!Npe||Npe.tabSize!==t.tabSize||Npe.indentSize!==t.indentSize)&&(Npe={tabSize:t.tabSize,indentSize:t.indentSize},Dpe=Fpe=void 0),t.convertTabsToSpaces){let n;const r=Math.floor(e/t.indentSize),i=e%t.indentSize;return Fpe||(Fpe=[]),void 0===Fpe[r]?(n=wQ(" ",t.indentSize*r),Fpe[r]=n):n=Fpe[r],i?n+wQ(" ",i):n}{const n=Math.floor(e/t.tabSize),r=e-n*t.tabSize;let i;return Dpe||(Dpe=[]),void 0===Dpe[n]?Dpe[n]=i=wQ("\t",n):i=Dpe[n],r?i+wQ(" ",r):i}}(e=>{let t;var n;function r(e){return e.baseIndentSize||0}function i(e,t,n,i,s,c,l){var f;let m=e.parent;for(;m;){let r=!0;if(n){const t=e.getStart(s);r=tn.end}const h=o(m,e,s),y=h.line===t.line||d(m,e,t.line,s);if(r){const n=null==(f=p(e,s))?void 0:f[0];let r=g(e,s,l,!!n&&_(n,s).line>h.line);if(-1!==r)return r+i;if(r=a(e,m,t,y,s,l),-1!==r)return r+i}S(l,m,e,s,c)&&!y&&(i+=l.indentSize);const v=u(m,e,t.line,s);m=(e=m).parent,t=v?s.getLineAndCharacterOfPosition(e.getStart(s)):h}return i+r(l)}function o(e,t,n){const r=p(t,n),i=r?r.pos:e.getStart(n);return n.getLineAndCharacterOfPosition(i)}function a(e,t,n,r,i,o){return!lu(e)&&!uu(e)||307!==t.kind&&r?-1:y(n,i,o)}let s;var c;function l(e,t,n,r){const i=LX(e,t,r);return i?19===i.kind?1:20===i.kind&&n===_(i,r).line?2:0:0}function _(e,t){return t.getLineAndCharacterOfPosition(e.getStart(t))}function u(e,t,n,r){return!(!GD(e)||!T(e.arguments,t))&&Ja(r,e.expression.getEnd()).line===n}function d(e,t,n,r){if(245===e.kind&&e.elseStatement===t){const t=yX(e,93,r);return un.assert(void 0!==t),_(t,r).line===n}return!1}function p(e,t){return e.parent&&f(e.getStart(t),e.getEnd(),e.parent,t)}function f(e,t,n,r){switch(n.kind){case 183:return i(n.typeArguments);case 210:return i(n.properties);case 209:case 275:case 279:case 206:case 207:return i(n.elements);case 187:return i(n.members);case 262:case 218:case 219:case 174:case 173:case 179:case 176:case 185:case 180:return i(n.typeParameters)||i(n.parameters);case 177:return i(n.parameters);case 263:case 231:case 264:case 265:case 345:return i(n.typeParameters);case 214:case 213:return i(n.typeArguments)||i(n.arguments);case 261:return i(n.declarations)}function i(i){return i&&lX(function(e,t,n){const r=e.getChildren(n);for(let e=1;e=0&&t=0;o--)if(28!==e[o].kind){if(n.getLineAndCharacterOfPosition(e[o].end).line!==i.line)return y(i,n,r);i=_(e[o],n)}return-1}function y(e,t,n){const r=t.getPositionOfLineAndCharacter(e.line,0);return x(r,r+e.character,t,n)}function v(e,t,n,r){let i=0,o=0;for(let a=e;at.text.length)return r(n);if(0===n.indentStyle)return 0;const a=jX(e,t,void 0,!0),s=Xpe(t,e,a||null);if(s&&3===s.kind)return function(e,t,n,r){const i=Ja(e,t).line-1,o=Ja(e,r.pos).line;if(un.assert(o>=0),i<=o)return x(xd(o,e),t,e,n);const a=xd(i,e),{column:s,character:c}=v(a,t,e,n);if(0===s)return s;return 42===e.text.charCodeAt(a+c)?s-1:s}(t,e,n,s);if(!a)return r(n);if(nQ(a.kind)&&a.getStart(t)<=e&&e0&&za(e.text.charCodeAt(r));)r--;return x(oX(r,e),r,e,n)}(t,e,n);if(28===a.kind&&226!==a.parent.kind){const e=function(e,t,n){const r=gX(e);return r&&r.listItemIndex>0?h(r.list.getChildren(),r.listItemIndex-1,t,n):-1}(a,t,n);if(-1!==e)return e}const p=function(e,t,n){return t&&f(e,e,t,n)}(e,a.parent,t);if(p&&!Gb(p,a)){const e=[218,219].includes(u.parent.kind)?0:n.indentSize;return m(p,t,n)+e}return function(e,t,n,o,a,s){let c,u=n;for(;u;){if(pX(u,t,e)&&S(s,u,c,e,!0)){const t=_(u,e),r=l(n,u,o,e);return i(u,t,void 0,0!==r?a&&2===r?s.indentSize:0:o!==t.line?s.indentSize:0,e,!0,s)}const r=g(u,e,s,!0);if(-1!==r)return r;c=u,u=u.parent}return r(s)}(t,e,a,c,o,n)},e.getIndentationForNode=function(e,t,n,r){const o=n.getLineAndCharacterOfPosition(e.getStart(n));return i(e,o,t,0,n,!1,r)},e.getBaseIndentation=r,(c=s||(s={}))[c.Unknown=0]="Unknown",c[c.OpenBrace=1]="OpenBrace",c[c.CloseBrace=2]="CloseBrace",e.isArgumentAndStartLineOverlapsExpressionBeingCalled=u,e.childStartsOnTheSameLineWithElseInIfStatement=d,e.childIsUnindentedBranchOfConditionalExpression=function(e,t,n,r){if(lF(e)&&(t===e.whenTrue||t===e.whenFalse)){const i=Ja(r,e.condition.end).line;if(t===e.whenTrue)return n===i;{const t=_(e.whenTrue,r).line,o=Ja(r,e.whenTrue.end).line;return i===t&&o===n}}return!1},e.argumentStartsOnSameLineAsPreviousArgument=function(e,t,n,r){if(L_(e)){if(!e.arguments)return!1;const i=b(e.arguments,(e=>e.pos===t.pos));if(!i)return!1;const o=e.arguments.indexOf(i);if(0===o)return!1;if(n===Ja(r,e.arguments[o-1].getEnd()).line)return!0}return!1},e.getContainingList=p,e.findFirstNonWhitespaceCharacterAndColumn=v,e.findFirstNonWhitespaceColumn=x,e.nodeWillIndentChild=k,e.shouldIndentChildNode=S})(Epe||(Epe={}));var Ype={};function Zpe(e,t,n){let r=!1;return t.forEach((t=>{const i=_c(PX(e,t.pos),(e=>Gb(e,t)));i&&PI(i,(function i(o){var a;if(!r){if(zN(o)&&sX(t,o.getStart(e))){const t=n.resolveName(o.text,o,-1,!1);if(t&&t.declarations)for(const n of t.declarations)if($6(n)||o.text&&e.symbol&&(null==(a=e.symbol.exports)?void 0:a.has(o.escapedText)))return void(r=!0)}o.forEachChild(i)}}))})),r}i(Ype,{preparePasteEdits:()=>Zpe});var efe={};i(efe,{pasteEditsProvider:()=>nfe});var tfe="providePostPasteEdits";function nfe(e,t,n,r,i,o,a,s){const c=Tue.ChangeTracker.with({host:i,formatContext:a,preferences:o},(c=>function(e,t,n,r,i,o,a,s,c){let l;t.length!==n.length&&(l=1===t.length?t[0]:t.join(kY(a.host,a.options)));const _=[];let u,d=e.text;for(let e=n.length-1;e>=0;e--){const{pos:r,end:i}=n[e];d=l?d.slice(0,r)+l+d.slice(i):d.slice(0,r)+t[e]+d.slice(i)}un.checkDefined(i.runWithTemporaryFileUpdate).call(i,e.fileName,d,((d,p,f)=>{if(u=f7.createImportAdder(f,d,o,i),null==r?void 0:r.range){un.assert(r.range.length===t.length),r.range.forEach((e=>{const t=r.file.statements,n=k(t,(t=>t.end>e.pos));if(-1===n)return;let i=k(t,(t=>t.end>=e.end),n);-1!==i&&e.end<=t[i].getStart()&&i--,_.push(...t.slice(n,-1===i?t.length:i+1))})),un.assertIsDefined(p,"no original program found");const n=p.getTypeChecker(),o=function({file:e,range:t}){const n=t[0].pos,r=t[t.length-1].end,i=PX(e,n),o=OX(e,n)??PX(e,r);return{pos:zN(i)&&n<=i.getStart(e)?i.getFullStart():n,end:zN(o)&&r===o.getEnd()?Tue.getAdjustedEndPosition(e,o,{}):r}}(r),a=U6(r.file,_,n,Y6(f,_,n),o),s=!KZ(e.fileName,p,i,!!r.file.commonJsModuleIndicator);S6(r.file,a.targetFileImportsFromOldFile,c,s),n3(r.file,a.oldImportsNeededByTargetFile,a.targetFileImportsFromOldFile,n,d,u)}else{const e={sourceFile:f,program:p,cancellationToken:s,host:i,preferences:o,formatContext:a};let r=0;n.forEach(((n,i)=>{const o=n.end-n.pos,a=l??t[i],s=n.pos+r,c={pos:s,end:s+a.length};r+=a.length-o;const _=_c(PX(e.sourceFile,c.pos),(e=>Gb(e,c)));_&&PI(_,(function t(n){if(zN(n)&&sX(c,n.getStart(f))&&!(null==d?void 0:d.getTypeChecker().resolveName(n.text,n,-1,!1)))return u.addImportForUnresolvedIdentifier(e,n,!0);n.forEachChild(t)}))}))}u.writeFixes(c,BQ(r?r.file:e,o))})),u.hasFixes()&&n.forEach(((n,r)=>{c.replaceRangeWithText(e,{pos:n.pos,end:n.end},l??t[r])}))}(e,t,n,r,i,o,a,s,c)));return{edits:c,fixId:tfe}}var rfe={};i(rfe,{ANONYMOUS:()=>aZ,AccessFlags:()=>Xr,AssertionLevel:()=>ft,AssignmentDeclarationKind:()=>ai,AssignmentKind:()=>Hg,Associativity:()=>ey,BreakpointResolver:()=>$8,BuilderFileEmit:()=>jV,BuilderProgramKind:()=>_W,BuilderState:()=>OV,CallHierarchy:()=>K8,CharacterCodes:()=>ki,CheckFlags:()=>Ur,CheckMode:()=>EB,ClassificationType:()=>CG,ClassificationTypeNames:()=>TG,CommentDirectiveType:()=>Tr,Comparison:()=>c,CompletionInfoFlags:()=>hG,CompletionTriggerKind:()=>lG,Completions:()=>oae,ContainerFlags:()=>FM,ContextFlags:()=>Or,Debug:()=>un,DiagnosticCategory:()=>si,Diagnostics:()=>la,DocumentHighlights:()=>d0,ElementFlags:()=>Gr,EmitFlags:()=>wi,EmitHint:()=>Ei,EmitOnly:()=>Dr,EndOfLineState:()=>bG,ExitStatus:()=>Er,ExportKind:()=>YZ,Extension:()=>Si,ExternalEmitHelpers:()=>Fi,FileIncludeKind:()=>wr,FilePreprocessingDiagnosticsKind:()=>Nr,FileSystemEntryKind:()=>no,FileWatcherEventKind:()=>Bi,FindAllReferences:()=>ice,FlattenLevel:()=>oz,FlowFlags:()=>Sr,ForegroundColorEscapeSequences:()=>PU,FunctionFlags:()=>Ah,GeneratedIdentifierFlags:()=>br,GetLiteralTextFlags:()=>ep,GoToDefinition:()=>Wce,HighlightSpanKind:()=>uG,IdentifierNameMap:()=>OJ,ImportKind:()=>QZ,ImportsNotUsedAsValues:()=>gi,IndentStyle:()=>dG,IndexFlags:()=>Qr,IndexKind:()=>ti,InferenceFlags:()=>ii,InferencePriority:()=>ri,InlayHintKind:()=>_G,InlayHints:()=>lle,InternalEmitFlags:()=>Ni,InternalNodeBuilderFlags:()=>jr,InternalSymbolName:()=>Vr,IntersectionFlags:()=>Ir,InvalidatedProjectKind:()=>nH,JSDocParsingMode:()=>ji,JsDoc:()=>fle,JsTyping:()=>DK,JsxEmit:()=>mi,JsxFlags:()=>hr,JsxReferenceKind:()=>Yr,LanguageFeatureMinimumTarget:()=>Di,LanguageServiceMode:()=>oG,LanguageVariant:()=>bi,LexicalEnvironmentFlags:()=>Ai,ListFormat:()=>Ii,LogLevel:()=>dn,MapCode:()=>Ole,MemberOverrideStatus:()=>Pr,ModifierFlags:()=>gr,ModuleDetectionKind:()=>_i,ModuleInstanceState:()=>CM,ModuleKind:()=>fi,ModuleResolutionKind:()=>li,ModuleSpecifierEnding:()=>LS,NavigateTo:()=>R1,NavigationBar:()=>K1,NewLineKind:()=>hi,NodeBuilderFlags:()=>Lr,NodeCheckFlags:()=>Wr,NodeFactoryFlags:()=>jC,NodeFlags:()=>mr,NodeResolutionFeatures:()=>SR,ObjectFlags:()=>Hr,OperationCanceledException:()=>Cr,OperatorPrecedence:()=>oy,OrganizeImports:()=>Jle,OrganizeImportsMode:()=>cG,OuterExpressionKinds:()=>Pi,OutliningElementsCollector:()=>h_e,OutliningSpanKind:()=>yG,OutputFileType:()=>vG,PackageJsonAutoImportPreference:()=>iG,PackageJsonDependencyGroup:()=>rG,PatternMatchKind:()=>B0,PollingInterval:()=>Ji,PollingWatchKind:()=>pi,PragmaKindFlags:()=>Oi,PredicateSemantics:()=>vr,PreparePasteEdits:()=>Ype,PrivateIdentifierKind:()=>Bw,ProcessLevel:()=>wz,ProgramUpdateLevel:()=>cU,QuotePreference:()=>RQ,RegularExpressionFlags:()=>xr,RelationComparisonResult:()=>yr,Rename:()=>w_e,ScriptElementKind:()=>kG,ScriptElementKindModifier:()=>SG,ScriptKind:()=>yi,ScriptSnapshot:()=>XK,ScriptTarget:()=>vi,SemanticClassificationFormat:()=>sG,SemanticMeaning:()=>NG,SemicolonPreference:()=>pG,SignatureCheckMode:()=>PB,SignatureFlags:()=>ei,SignatureHelp:()=>I_e,SignatureInfo:()=>LV,SignatureKind:()=>Zr,SmartSelectionRange:()=>iue,SnippetKind:()=>Ci,StatisticType:()=>zH,StructureIsReused:()=>Fr,SymbolAccessibility:()=>Br,SymbolDisplay:()=>mue,SymbolDisplayPartKind:()=>gG,SymbolFlags:()=>qr,SymbolFormatFlags:()=>Mr,SyntaxKind:()=>fr,Ternary:()=>oi,ThrottledCancellationToken:()=>R8,TokenClass:()=>xG,TokenFlags:()=>kr,TransformFlags:()=>Ti,TypeFacts:()=>DB,TypeFlags:()=>$r,TypeFormatFlags:()=>Rr,TypeMapKind:()=>ni,TypePredicateKind:()=>Jr,TypeReferenceSerializationKind:()=>zr,UnionReduction:()=>Ar,UpToDateStatusType:()=>F$,VarianceFlags:()=>Kr,Version:()=>bn,VersionRange:()=>kn,WatchDirectoryFlags:()=>xi,WatchDirectoryKind:()=>di,WatchFileKind:()=>ui,WatchLogLevel:()=>gU,WatchType:()=>p$,accessPrivateIdentifier:()=>tz,addEmitFlags:()=>rw,addEmitHelper:()=>Sw,addEmitHelpers:()=>Tw,addInternalEmitFlags:()=>ow,addNodeFactoryPatcher:()=>MC,addObjectAllocatorPatcher:()=>Mx,addRange:()=>se,addRelatedInfo:()=>iT,addSyntheticLeadingComment:()=>gw,addSyntheticTrailingComment:()=>vw,addToSeen:()=>vx,advancedAsyncSuperHelper:()=>bN,affectsDeclarationPathOptionDeclarations:()=>yO,affectsEmitOptionDeclarations:()=>hO,allKeysStartWithDot:()=>ZR,altDirectorySeparator:()=>_o,and:()=>Zt,append:()=>ie,appendIfUnique:()=>le,arrayFrom:()=>Oe,arrayIsEqualTo:()=>te,arrayIsHomogeneous:()=>bT,arrayOf:()=>Ie,arrayReverseIterator:()=>ue,arrayToMap:()=>Re,arrayToMultiMap:()=>Be,arrayToNumericMap:()=>Me,assertType:()=>nn,assign:()=>Le,asyncSuperHelper:()=>vN,attachFileToDiagnostics:()=>Hx,base64decode:()=>Sb,base64encode:()=>kb,binarySearch:()=>Te,binarySearchKey:()=>Ce,bindSourceFile:()=>AM,breakIntoCharacterSpans:()=>t1,breakIntoWordSpans:()=>n1,buildLinkParts:()=>bY,buildOpts:()=>DO,buildOverload:()=>lfe,bundlerModuleNameResolver:()=>TR,canBeConvertedToAsync:()=>w1,canHaveDecorators:()=>iI,canHaveExportModifier:()=>UT,canHaveFlowNode:()=>Ig,canHaveIllegalDecorators:()=>NA,canHaveIllegalModifiers:()=>DA,canHaveIllegalType:()=>CA,canHaveIllegalTypeParameters:()=>wA,canHaveJSDoc:()=>Og,canHaveLocals:()=>au,canHaveModifiers:()=>rI,canHaveModuleSpecifier:()=>gg,canHaveSymbol:()=>ou,canIncludeBindAndCheckDiagnostics:()=>uT,canJsonReportNoInputFiles:()=>ZL,canProduceDiagnostics:()=>aq,canUsePropertyAccess:()=>WT,canWatchAffectingLocation:()=>IW,canWatchAtTypes:()=>EW,canWatchDirectoryOrFile:()=>DW,canWatchDirectoryOrFilePath:()=>FW,cartesianProduct:()=>an,cast:()=>nt,chainBundle:()=>NJ,chainDiagnosticMessages:()=>Yx,changeAnyExtension:()=>$o,changeCompilerHostLikeToUseCache:()=>NU,changeExtension:()=>VS,changeFullExtension:()=>Ho,changesAffectModuleResolution:()=>Qu,changesAffectingProgramStructure:()=>Yu,characterCodeToRegularExpressionFlag:()=>Aa,childIsDecorated:()=>fm,classElementOrClassElementParameterIsDecorated:()=>gm,classHasClassThisAssignment:()=>gz,classHasDeclaredOrExplicitlyAssignedName:()=>kz,classHasExplicitlyAssignedName:()=>xz,classOrConstructorParameterIsDecorated:()=>mm,classicNameResolver:()=>yM,classifier:()=>d7,cleanExtendedConfigCache:()=>uU,clear:()=>F,clearMap:()=>_x,clearSharedExtendedConfigFileWatcher:()=>_U,climbPastPropertyAccess:()=>zG,clone:()=>qe,cloneCompilerOptions:()=>sQ,closeFileWatcher:()=>tx,closeFileWatcherOf:()=>vU,codefix:()=>f7,collapseTextChangeRangesAcrossMultipleVersions:()=>Xs,collectExternalModuleInfo:()=>PJ,combine:()=>oe,combinePaths:()=>jo,commandLineOptionOfCustomType:()=>CO,commentPragmas:()=>Li,commonOptionsWithBuild:()=>uO,compact:()=>ne,compareBooleans:()=>Ot,compareDataObjects:()=>lx,compareDiagnostics:()=>tk,compareEmitHelpers:()=>zw,compareNumberOfDirectorySeparators:()=>BS,comparePaths:()=>Yo,comparePathsCaseInsensitive:()=>Qo,comparePathsCaseSensitive:()=>Xo,comparePatternKeys:()=>tM,compareProperties:()=>It,compareStringsCaseInsensitive:()=>St,compareStringsCaseInsensitiveEslintCompatible:()=>Tt,compareStringsCaseSensitive:()=>Ct,compareStringsCaseSensitiveUI:()=>At,compareTextSpans:()=>bt,compareValues:()=>vt,compilerOptionsAffectDeclarationPath:()=>Uk,compilerOptionsAffectEmit:()=>qk,compilerOptionsAffectSemanticDiagnostics:()=>zk,compilerOptionsDidYouMeanDiagnostics:()=>UO,compilerOptionsIndicateEsModules:()=>PQ,computeCommonSourceDirectoryOfFilenames:()=>kU,computeLineAndCharacterOfPosition:()=>Ra,computeLineOfPosition:()=>Ma,computeLineStarts:()=>Ia,computePositionOfLineAndCharacter:()=>La,computeSignatureWithDiagnostics:()=>pW,computeSuggestionDiagnostics:()=>g1,computedOptions:()=>mk,concatenate:()=>K,concatenateDiagnosticMessageChains:()=>Zx,consumesNodeCoreModules:()=>CZ,contains:()=>T,containsIgnoredPath:()=>PT,containsObjectRestOrSpread:()=>tI,containsParseError:()=>gd,containsPath:()=>Zo,convertCompilerOptionsForTelemetry:()=>Pj,convertCompilerOptionsFromJson:()=>ij,convertJsonOption:()=>dj,convertToBase64:()=>xb,convertToJson:()=>bL,convertToObject:()=>vL,convertToOptionsWithAbsolutePaths:()=>OL,convertToRelativePath:()=>ra,convertToTSConfig:()=>SL,convertTypeAcquisitionFromJson:()=>oj,copyComments:()=>UY,copyEntries:()=>rd,copyLeadingComments:()=>KY,copyProperties:()=>Ve,copyTrailingAsLeadingComments:()=>XY,copyTrailingComments:()=>GY,couldStartTrivia:()=>Ga,countWhere:()=>w,createAbstractBuilder:()=>CW,createAccessorPropertyBackingField:()=>GA,createAccessorPropertyGetRedirector:()=>XA,createAccessorPropertySetRedirector:()=>QA,createBaseNodeFactory:()=>FC,createBinaryExpressionTrampoline:()=>UA,createBuilderProgram:()=>fW,createBuilderProgramUsingIncrementalBuildInfo:()=>vW,createBuilderStatusReporter:()=>j$,createCacheableExportInfoMap:()=>ZZ,createCachedDirectoryStructureHost:()=>sU,createClassifier:()=>u0,createCommentDirectivesMap:()=>Md,createCompilerDiagnostic:()=>Xx,createCompilerDiagnosticForInvalidCustomType:()=>OO,createCompilerDiagnosticFromMessageChain:()=>Qx,createCompilerHost:()=>SU,createCompilerHostFromProgramHost:()=>m$,createCompilerHostWorker:()=>wU,createDetachedDiagnostic:()=>Vx,createDiagnosticCollection:()=>ly,createDiagnosticForFileFromMessageChain:()=>Up,createDiagnosticForNode:()=>jp,createDiagnosticForNodeArray:()=>Rp,createDiagnosticForNodeArrayFromMessageChain:()=>Jp,createDiagnosticForNodeFromMessageChain:()=>Bp,createDiagnosticForNodeInSourceFile:()=>Mp,createDiagnosticForRange:()=>Wp,createDiagnosticMessageChainFromDiagnostic:()=>Vp,createDiagnosticReporter:()=>VW,createDocumentPositionMapper:()=>kJ,createDocumentRegistry:()=>N0,createDocumentRegistryInternal:()=>D0,createEmitAndSemanticDiagnosticsBuilderProgram:()=>TW,createEmitHelperFactory:()=>Jw,createEmptyExports:()=>BP,createEvaluator:()=>fC,createExpressionForJsxElement:()=>VP,createExpressionForJsxFragment:()=>WP,createExpressionForObjectLiteralElementLike:()=>GP,createExpressionForPropertyName:()=>KP,createExpressionFromEntityName:()=>HP,createExternalHelpersImportDeclarationIfNeeded:()=>pA,createFileDiagnostic:()=>Kx,createFileDiagnosticFromMessageChain:()=>qp,createFlowNode:()=>EM,createForOfBindingStatement:()=>$P,createFutureSourceFile:()=>XZ,createGetCanonicalFileName:()=>Wt,createGetIsolatedDeclarationErrors:()=>lq,createGetSourceFile:()=>TU,createGetSymbolAccessibilityDiagnosticForNode:()=>cq,createGetSymbolAccessibilityDiagnosticForNodeName:()=>sq,createGetSymbolWalker:()=>MM,createIncrementalCompilerHost:()=>C$,createIncrementalProgram:()=>w$,createJsxFactoryExpression:()=>UP,createLanguageService:()=>J8,createLanguageServiceSourceFile:()=>I8,createMemberAccessForPropertyName:()=>JP,createModeAwareCache:()=>uR,createModeAwareCacheKey:()=>_R,createModeMismatchDetails:()=>ud,createModuleNotFoundChain:()=>_d,createModuleResolutionCache:()=>mR,createModuleResolutionLoader:()=>eV,createModuleResolutionLoaderUsingGlobalCache:()=>JW,createModuleSpecifierResolutionHost:()=>AQ,createMultiMap:()=>$e,createNameResolver:()=>hC,createNodeConverters:()=>AC,createNodeFactory:()=>BC,createOptionNameMap:()=>EO,createOverload:()=>cfe,createPackageJsonImportFilter:()=>TZ,createPackageJsonInfo:()=>SZ,createParenthesizerRules:()=>EC,createPatternMatcher:()=>z0,createPrinter:()=>rU,createPrinterWithDefaults:()=>Zq,createPrinterWithRemoveComments:()=>eU,createPrinterWithRemoveCommentsNeverAsciiEscape:()=>tU,createPrinterWithRemoveCommentsOmitTrailingSemicolon:()=>nU,createProgram:()=>bV,createProgramHost:()=>y$,createPropertyNameNodeForIdentifierOrLiteral:()=>BT,createQueue:()=>Ge,createRange:()=>Pb,createRedirectedBuilderProgram:()=>kW,createResolutionCache:()=>zW,createRuntimeTypeSerializer:()=>Oz,createScanner:()=>ms,createSemanticDiagnosticsBuilderProgram:()=>SW,createSet:()=>Xe,createSolutionBuilder:()=>J$,createSolutionBuilderHost:()=>M$,createSolutionBuilderWithWatch:()=>z$,createSolutionBuilderWithWatchHost:()=>B$,createSortedArray:()=>Y,createSourceFile:()=>LI,createSourceMapGenerator:()=>oJ,createSourceMapSource:()=>QC,createSuperAccessVariableStatement:()=>Mz,createSymbolTable:()=>Hu,createSymlinkCache:()=>Gk,createSyntacticTypeNodeBuilder:()=>NK,createSystemWatchFunctions:()=>oo,createTextChange:()=>vQ,createTextChangeFromStartLength:()=>yQ,createTextChangeRange:()=>Ks,createTextRangeFromNode:()=>mQ,createTextRangeFromSpan:()=>hQ,createTextSpan:()=>Vs,createTextSpanFromBounds:()=>Ws,createTextSpanFromNode:()=>pQ,createTextSpanFromRange:()=>gQ,createTextSpanFromStringLiteralLikeContent:()=>fQ,createTextWriter:()=>Iy,createTokenRange:()=>jb,createTypeChecker:()=>BB,createTypeReferenceDirectiveResolutionCache:()=>gR,createTypeReferenceResolutionLoader:()=>rV,createWatchCompilerHost:()=>N$,createWatchCompilerHostOfConfigFile:()=>x$,createWatchCompilerHostOfFilesAndCompilerOptions:()=>k$,createWatchFactory:()=>f$,createWatchHost:()=>d$,createWatchProgram:()=>D$,createWatchStatusReporter:()=>KW,createWriteFileMeasuringIO:()=>CU,declarationNameToString:()=>Ep,decodeMappings:()=>pJ,decodedTextSpanIntersectsWith:()=>Bs,deduplicate:()=>Q,defaultInitCompilerOptions:()=>IO,defaultMaximumTruncationLength:()=>Uu,diagnosticCategoryName:()=>ci,diagnosticToString:()=>UZ,diagnosticsEqualityComparer:()=>ok,directoryProbablyExists:()=>Nb,directorySeparator:()=>lo,displayPart:()=>sY,displayPartsToString:()=>D8,disposeEmitNodes:()=>ew,documentSpansEqual:()=>YQ,dumpTracingLegend:()=>pr,elementAt:()=>pe,elideNodes:()=>WA,emitDetachedComments:()=>vv,emitFiles:()=>Gq,emitFilesAndReportErrors:()=>c$,emitFilesAndReportErrorsAndGetExitStatus:()=>l$,emitModuleKindIsNonNodeESM:()=>Ik,emitNewLineBeforeLeadingCommentOfPosition:()=>yv,emitResolverSkipsTypeChecking:()=>Kq,emitSkippedWithNoDiagnostics:()=>CV,emptyArray:()=>l,emptyFileSystemEntries:()=>tT,emptyMap:()=>_,emptyOptions:()=>aG,endsWith:()=>Rt,ensurePathIsNonModuleName:()=>Wo,ensureScriptKind:()=>yS,ensureTrailingDirectorySeparator:()=>Vo,entityNameToString:()=>Lp,enumerateInsertsAndDeletes:()=>on,equalOwnProperties:()=>je,equateStringsCaseInsensitive:()=>gt,equateStringsCaseSensitive:()=>ht,equateValues:()=>mt,escapeJsxAttributeString:()=>Ny,escapeLeadingUnderscores:()=>pc,escapeNonAsciiString:()=>ky,escapeSnippetText:()=>RT,escapeString:()=>by,escapeTemplateSubstitution:()=>uy,evaluatorResult:()=>pC,every:()=>v,exclusivelyPrefixedNodeCoreModules:()=>TC,executeCommandLine:()=>rK,expandPreOrPostfixIncrementOrDecrementExpression:()=>XP,explainFiles:()=>n$,explainIfFileIsRedirectAndImpliedFormat:()=>r$,exportAssignmentIsAlias:()=>fh,expressionResultIsUnused:()=>ET,extend:()=>Ue,extensionFromPath:()=>QS,extensionIsTS:()=>GS,extensionsNotSupportingExtensionlessResolution:()=>FS,externalHelpersModuleNameText:()=>qu,factory:()=>XC,fileExtensionIs:()=>ko,fileExtensionIsOneOf:()=>So,fileIncludeReasonToDiagnostics:()=>a$,fileShouldUseJavaScriptRequire:()=>KZ,filter:()=>N,filterMutate:()=>D,filterSemanticDiagnostics:()=>NV,find:()=>b,findAncestor:()=>_c,findBestPatternMatch:()=>Kt,findChildOfKind:()=>yX,findComputedPropertyNameCacheAssignment:()=>YA,findConfigFile:()=>bU,findConstructorDeclaration:()=>gC,findContainingList:()=>vX,findDiagnosticForNode:()=>DZ,findFirstNonJsxWhitespaceToken:()=>IX,findIndex:()=>k,findLast:()=>x,findLastIndex:()=>S,findListItemInfo:()=>gX,findModifier:()=>KQ,findNextToken:()=>LX,findPackageJson:()=>kZ,findPackageJsons:()=>xZ,findPrecedingMatchingToken:()=>$X,findPrecedingToken:()=>jX,findSuperStatementIndexPath:()=>qJ,findTokenOnLeftOfPosition:()=>OX,findUseStrictPrologue:()=>tA,first:()=>ge,firstDefined:()=>f,firstDefinedIterator:()=>m,firstIterator:()=>he,firstOrOnly:()=>IZ,firstOrUndefined:()=>fe,firstOrUndefinedIterator:()=>me,fixupCompilerOptions:()=>j1,flatMap:()=>O,flatMapIterator:()=>j,flatMapToMutable:()=>L,flatten:()=>I,flattenCommaList:()=>eI,flattenDestructuringAssignment:()=>az,flattenDestructuringBinding:()=>lz,flattenDiagnosticMessageText:()=>UU,forEach:()=>d,forEachAncestor:()=>ed,forEachAncestorDirectory:()=>aa,forEachAncestorDirectoryStoppingAtGlobalCache:()=>sM,forEachChild:()=>PI,forEachChildRecursively:()=>AI,forEachDynamicImportOrRequireCall:()=>wC,forEachEmittedFile:()=>Fq,forEachEnclosingBlockScopeContainer:()=>Fp,forEachEntry:()=>td,forEachExternalModuleToImportFrom:()=>n0,forEachImportClauseDeclaration:()=>Tg,forEachKey:()=>nd,forEachLeadingCommentRange:()=>is,forEachNameInAccessChainWalkingLeft:()=>wx,forEachNameOfDefaultExport:()=>_0,forEachPropertyAssignment:()=>qf,forEachResolvedProjectReference:()=>oV,forEachReturnStatement:()=>wf,forEachRight:()=>p,forEachTrailingCommentRange:()=>os,forEachTsConfigPropArray:()=>$f,forEachUnique:()=>eY,forEachYieldExpression:()=>Nf,formatColorAndReset:()=>BU,formatDiagnostic:()=>EU,formatDiagnostics:()=>FU,formatDiagnosticsWithColorAndContext:()=>qU,formatGeneratedName:()=>KA,formatGeneratedNamePart:()=>HA,formatLocation:()=>zU,formatMessage:()=>Gx,formatStringFromArgs:()=>Jx,formatting:()=>Zue,generateDjb2Hash:()=>Ri,generateTSConfig:()=>IL,getAdjustedReferenceLocation:()=>NX,getAdjustedRenameLocation:()=>DX,getAliasDeclarationFromName:()=>dh,getAllAccessorDeclarations:()=>dv,getAllDecoratorsOfClass:()=>GJ,getAllDecoratorsOfClassElement:()=>XJ,getAllJSDocTags:()=>al,getAllJSDocTagsOfKind:()=>sl,getAllKeys:()=>Pe,getAllProjectOutputs:()=>Wq,getAllSuperTypeNodes:()=>bh,getAllowImportingTsExtensions:()=>gk,getAllowJSCompilerOption:()=>Pk,getAllowSyntheticDefaultImports:()=>Sk,getAncestor:()=>Sh,getAnyExtensionFromPath:()=>Po,getAreDeclarationMapsEnabled:()=>Ek,getAssignedExpandoInitializer:()=>Wm,getAssignedName:()=>Cc,getAssignmentDeclarationKind:()=>eg,getAssignmentDeclarationPropertyAccessKind:()=>_g,getAssignmentTargetKind:()=>Gg,getAutomaticTypeDirectiveNames:()=>rR,getBaseFileName:()=>Fo,getBinaryOperatorPrecedence:()=>sy,getBuildInfo:()=>Qq,getBuildInfoFileVersionMap:()=>bW,getBuildInfoText:()=>Xq,getBuildOrderFromAnyBuildOrder:()=>L$,getBuilderCreationParameters:()=>uW,getBuilderFileEmit:()=>MV,getCanonicalDiagnostic:()=>$p,getCheckFlags:()=>nx,getClassExtendsHeritageElement:()=>yh,getClassLikeDeclarationOfSymbol:()=>fx,getCombinedLocalAndExportSymbolFlags:()=>ox,getCombinedModifierFlags:()=>rc,getCombinedNodeFlags:()=>oc,getCombinedNodeFlagsAlwaysIncludeJSDoc:()=>ic,getCommentRange:()=>dw,getCommonSourceDirectory:()=>Uq,getCommonSourceDirectoryOfConfig:()=>Vq,getCompilerOptionValue:()=>Vk,getCompilerOptionsDiffValue:()=>PL,getConditions:()=>tR,getConfigFileParsingDiagnostics:()=>gV,getConstantValue:()=>xw,getContainerFlags:()=>jM,getContainerNode:()=>tX,getContainingClass:()=>Gf,getContainingClassExcludingClassDecorators:()=>Yf,getContainingClassStaticBlock:()=>Xf,getContainingFunction:()=>Hf,getContainingFunctionDeclaration:()=>Kf,getContainingFunctionOrClassStaticBlock:()=>Qf,getContainingNodeArray:()=>AT,getContainingObjectLiteralElement:()=>q8,getContextualTypeFromParent:()=>eZ,getContextualTypeFromParentOrAncestorTypeNode:()=>SX,getDeclarationDiagnostics:()=>_q,getDeclarationEmitExtensionForPath:()=>Vy,getDeclarationEmitOutputFilePath:()=>qy,getDeclarationEmitOutputFilePathWorker:()=>Uy,getDeclarationFileExtension:()=>HI,getDeclarationFromName:()=>lh,getDeclarationModifierFlagsFromSymbol:()=>rx,getDeclarationOfKind:()=>Wu,getDeclarationsOfKind:()=>$u,getDeclaredExpandoInitializer:()=>Vm,getDecorators:()=>wc,getDefaultCompilerOptions:()=>F8,getDefaultFormatCodeSettings:()=>fG,getDefaultLibFileName:()=>Ns,getDefaultLibFilePath:()=>V8,getDefaultLikeExportInfo:()=>c0,getDefaultLikeExportNameFromDeclaration:()=>LZ,getDefaultResolutionModeForFileWorker:()=>TV,getDiagnosticText:()=>XO,getDiagnosticsWithinSpan:()=>FZ,getDirectoryPath:()=>Do,getDirectoryToWatchFailedLookupLocation:()=>OW,getDirectoryToWatchFailedLookupLocationFromTypeRoot:()=>RW,getDocumentPositionMapper:()=>p1,getDocumentSpansEqualityComparer:()=>ZQ,getESModuleInterop:()=>kk,getEditsForFileRename:()=>P0,getEffectiveBaseTypeNode:()=>hh,getEffectiveConstraintOfTypeParameter:()=>_l,getEffectiveContainerForJSDocTemplateTag:()=>Bg,getEffectiveImplementsTypeNodes:()=>vh,getEffectiveInitializer:()=>Um,getEffectiveJSDocHost:()=>qg,getEffectiveModifierFlags:()=>Mv,getEffectiveModifierFlagsAlwaysIncludeJSDoc:()=>Bv,getEffectiveModifierFlagsNoCache:()=>Uv,getEffectiveReturnTypeNode:()=>mv,getEffectiveSetAccessorTypeAnnotationNode:()=>hv,getEffectiveTypeAnnotationNode:()=>pv,getEffectiveTypeParameterDeclarations:()=>ll,getEffectiveTypeRoots:()=>Gj,getElementOrPropertyAccessArgumentExpressionOrName:()=>cg,getElementOrPropertyAccessName:()=>lg,getElementsOfBindingOrAssignmentPattern:()=>SA,getEmitDeclarations:()=>Nk,getEmitFlags:()=>Qd,getEmitHelpers:()=>ww,getEmitModuleDetectionKind:()=>bk,getEmitModuleFormatOfFileWorker:()=>kV,getEmitModuleKind:()=>yk,getEmitModuleResolutionKind:()=>vk,getEmitScriptTarget:()=>hk,getEmitStandardClassFields:()=>Jk,getEnclosingBlockScopeContainer:()=>Dp,getEnclosingContainer:()=>Np,getEncodedSemanticClassifications:()=>b0,getEncodedSyntacticClassifications:()=>C0,getEndLinePosition:()=>Sd,getEntityNameFromTypeNode:()=>lm,getEntrypointsFromPackageJsonInfo:()=>UR,getErrorCountForSummary:()=>XW,getErrorSpanForNode:()=>Gp,getErrorSummaryText:()=>e$,getEscapedTextOfIdentifierOrLiteral:()=>qh,getEscapedTextOfJsxAttributeName:()=>ZT,getEscapedTextOfJsxNamespacedName:()=>nC,getExpandoInitializer:()=>$m,getExportAssignmentExpression:()=>mh,getExportInfoMap:()=>s0,getExportNeedsImportStarHelper:()=>DJ,getExpressionAssociativity:()=>ty,getExpressionPrecedence:()=>ry,getExternalHelpersModuleName:()=>uA,getExternalModuleImportEqualsDeclarationExpression:()=>Tm,getExternalModuleName:()=>xg,getExternalModuleNameFromDeclaration:()=>By,getExternalModuleNameFromPath:()=>Jy,getExternalModuleNameLiteral:()=>mA,getExternalModuleRequireArgument:()=>Cm,getFallbackOptions:()=>yU,getFileEmitOutput:()=>IV,getFileMatcherPatterns:()=>pS,getFileNamesFromConfigSpecs:()=>vj,getFileWatcherEventKind:()=>Xi,getFilesInErrorForSummary:()=>QW,getFirstConstructorWithBody:()=>rv,getFirstIdentifier:()=>ab,getFirstNonSpaceCharacterPosition:()=>IY,getFirstProjectOutput:()=>Hq,getFixableErrorSpanExpression:()=>PZ,getFormatCodeSettingsForWriting:()=>VZ,getFullWidth:()=>od,getFunctionFlags:()=>Ih,getHeritageClause:()=>kh,getHostSignatureFromJSDoc:()=>zg,getIdentifierAutoGenerate:()=>jw,getIdentifierGeneratedImportReference:()=>Mw,getIdentifierTypeArguments:()=>Ow,getImmediatelyInvokedFunctionExpression:()=>im,getImpliedNodeFormatForEmitWorker:()=>SV,getImpliedNodeFormatForFile:()=>hV,getImpliedNodeFormatForFileWorker:()=>yV,getImportNeedsImportDefaultHelper:()=>EJ,getImportNeedsImportStarHelper:()=>FJ,getIndentString:()=>Py,getInferredLibraryNameResolveFrom:()=>cV,getInitializedVariables:()=>Yb,getInitializerOfBinaryExpression:()=>ug,getInitializerOfBindingOrAssignmentElement:()=>hA,getInterfaceBaseTypeNodes:()=>xh,getInternalEmitFlags:()=>Yd,getInvokedExpression:()=>_m,getIsFileExcluded:()=>a0,getIsolatedModules:()=>xk,getJSDocAugmentsTag:()=>Lc,getJSDocClassTag:()=>Rc,getJSDocCommentRanges:()=>hf,getJSDocCommentsAndTags:()=>Lg,getJSDocDeprecatedTag:()=>Hc,getJSDocDeprecatedTagNoCache:()=>Kc,getJSDocEnumTag:()=>Gc,getJSDocHost:()=>Ug,getJSDocImplementsTags:()=>jc,getJSDocOverloadTags:()=>Jg,getJSDocOverrideTagNoCache:()=>$c,getJSDocParameterTags:()=>Fc,getJSDocParameterTagsNoCache:()=>Ec,getJSDocPrivateTag:()=>Jc,getJSDocPrivateTagNoCache:()=>zc,getJSDocProtectedTag:()=>qc,getJSDocProtectedTagNoCache:()=>Uc,getJSDocPublicTag:()=>Mc,getJSDocPublicTagNoCache:()=>Bc,getJSDocReadonlyTag:()=>Vc,getJSDocReadonlyTagNoCache:()=>Wc,getJSDocReturnTag:()=>Qc,getJSDocReturnType:()=>nl,getJSDocRoot:()=>Vg,getJSDocSatisfiesExpressionType:()=>QT,getJSDocSatisfiesTag:()=>Zc,getJSDocTags:()=>il,getJSDocTemplateTag:()=>Yc,getJSDocThisTag:()=>Xc,getJSDocType:()=>tl,getJSDocTypeAliasName:()=>TA,getJSDocTypeAssertionType:()=>aA,getJSDocTypeParameterDeclarations:()=>gv,getJSDocTypeParameterTags:()=>Ac,getJSDocTypeParameterTagsNoCache:()=>Ic,getJSDocTypeTag:()=>el,getJSXImplicitImportBase:()=>$k,getJSXRuntimeImport:()=>Hk,getJSXTransformEnabled:()=>Wk,getKeyForCompilerOptions:()=>sR,getLanguageVariant:()=>ck,getLastChild:()=>yx,getLeadingCommentRanges:()=>ls,getLeadingCommentRangesOfNode:()=>gf,getLeftmostAccessExpression:()=>Cx,getLeftmostExpression:()=>Nx,getLibraryNameFromLibFileName:()=>lV,getLineAndCharacterOfPosition:()=>Ja,getLineInfo:()=>lJ,getLineOfLocalPosition:()=>tv,getLineStartPositionForPosition:()=>oX,getLineStarts:()=>ja,getLinesBetweenPositionAndNextNonWhitespaceCharacter:()=>Kb,getLinesBetweenPositionAndPrecedingNonWhitespaceCharacter:()=>Hb,getLinesBetweenPositions:()=>Ba,getLinesBetweenRangeEndAndRangeStart:()=>qb,getLinesBetweenRangeEndPositions:()=>Ub,getLiteralText:()=>tp,getLocalNameForExternalImport:()=>fA,getLocalSymbolForExportDefault:()=>yb,getLocaleSpecificMessage:()=>Ux,getLocaleTimeString:()=>HW,getMappedContextSpan:()=>iY,getMappedDocumentSpan:()=>rY,getMappedLocation:()=>nY,getMatchedFileSpec:()=>i$,getMatchedIncludeSpec:()=>o$,getMeaningFromDeclaration:()=>DG,getMeaningFromLocation:()=>FG,getMembersOfDeclaration:()=>Ff,getModeForFileReference:()=>VU,getModeForResolutionAtIndex:()=>WU,getModeForUsageLocation:()=>HU,getModifiedTime:()=>qi,getModifiers:()=>Nc,getModuleInstanceState:()=>wM,getModuleNameStringLiteralAt:()=>AV,getModuleSpecifierEndingPreference:()=>jS,getModuleSpecifierResolverHost:()=>IQ,getNameForExportedSymbol:()=>OZ,getNameFromImportAttribute:()=>uC,getNameFromIndexInfo:()=>Pp,getNameFromPropertyName:()=>DQ,getNameOfAccessExpression:()=>Sx,getNameOfCompilerOptionValue:()=>DL,getNameOfDeclaration:()=>Tc,getNameOfExpando:()=>Km,getNameOfJSDocTypedef:()=>xc,getNameOfScriptTarget:()=>Bk,getNameOrArgument:()=>sg,getNameTable:()=>z8,getNamespaceDeclarationNode:()=>kg,getNewLineCharacter:()=>Eb,getNewLineKind:()=>qZ,getNewLineOrDefaultFromHost:()=>kY,getNewTargetContainer:()=>nm,getNextJSDocCommentLocation:()=>Rg,getNodeChildren:()=>LP,getNodeForGeneratedName:()=>$A,getNodeId:()=>jB,getNodeKind:()=>nX,getNodeModifiers:()=>ZX,getNodeModulePathParts:()=>zT,getNonAssignedNameOfDeclaration:()=>Sc,getNonAssignmentOperatorForCompoundAssignment:()=>BJ,getNonAugmentationDeclaration:()=>fp,getNonDecoratorTokenPosOfNode:()=>Jd,getNonIncrementalBuildInfoRoots:()=>xW,getNonModifierTokenPosOfNode:()=>zd,getNormalizedAbsolutePath:()=>Bo,getNormalizedAbsolutePathWithoutRoot:()=>zo,getNormalizedPathComponents:()=>Mo,getObjectFlags:()=>mx,getOperatorAssociativity:()=>ny,getOperatorPrecedence:()=>ay,getOptionFromName:()=>WO,getOptionsForLibraryResolution:()=>hR,getOptionsNameMap:()=>PO,getOrCreateEmitNode:()=>ZC,getOrUpdate:()=>z,getOriginalNode:()=>lc,getOriginalNodeId:()=>TJ,getOutputDeclarationFileName:()=>jq,getOutputDeclarationFileNameWorker:()=>Rq,getOutputExtension:()=>Oq,getOutputFileNames:()=>$q,getOutputJSFileNameWorker:()=>Bq,getOutputPathsFor:()=>Aq,getOwnEmitOutputFilePath:()=>zy,getOwnKeys:()=>Ee,getOwnValues:()=>Ae,getPackageJsonTypesVersionsPaths:()=>Kj,getPackageNameFromTypesPackageName:()=>mM,getPackageScopeForPath:()=>$R,getParameterSymbolFromJSDoc:()=>Mg,getParentNodeInSpan:()=>$Q,getParseTreeNode:()=>dc,getParsedCommandLineOfConfigFile:()=>QO,getPathComponents:()=>Ao,getPathFromPathComponents:()=>Io,getPathUpdater:()=>A0,getPathsBasePath:()=>Hy,getPatternFromSpec:()=>_S,getPendingEmitKindWithSeen:()=>GV,getPositionOfLineAndCharacter:()=>Oa,getPossibleGenericSignatures:()=>KX,getPossibleOriginalInputExtensionForExtension:()=>Wy,getPossibleOriginalInputPathWithoutChangingExt:()=>$y,getPossibleTypeArgumentsInfo:()=>GX,getPreEmitDiagnostics:()=>DU,getPrecedingNonSpaceCharacterPosition:()=>OY,getPrivateIdentifier:()=>ZJ,getProperties:()=>UJ,getProperty:()=>Fe,getPropertyArrayElementValue:()=>Uf,getPropertyAssignmentAliasLikeExpression:()=>gh,getPropertyNameForPropertyNameNode:()=>Bh,getPropertyNameFromType:()=>aC,getPropertyNameOfBindingOrAssignmentElement:()=>bA,getPropertySymbolFromBindingElement:()=>WQ,getPropertySymbolsFromContextualType:()=>U8,getQuoteFromPreference:()=>JQ,getQuotePreference:()=>BQ,getRangesWhere:()=>H,getRefactorContextSpan:()=>EZ,getReferencedFileLocation:()=>fV,getRegexFromPattern:()=>fS,getRegularExpressionForWildcard:()=>sS,getRegularExpressionsForWildcards:()=>cS,getRelativePathFromDirectory:()=>na,getRelativePathFromFile:()=>ia,getRelativePathToDirectoryOrUrl:()=>oa,getRenameLocation:()=>HY,getReplacementSpanForContextToken:()=>dQ,getResolutionDiagnostic:()=>EV,getResolutionModeOverride:()=>XU,getResolveJsonModule:()=>wk,getResolvePackageJsonExports:()=>Tk,getResolvePackageJsonImports:()=>Ck,getResolvedExternalModuleName:()=>Ry,getResolvedModuleFromResolution:()=>cd,getResolvedTypeReferenceDirectiveFromResolution:()=>ld,getRestIndicatorOfBindingOrAssignmentElement:()=>vA,getRestParameterElementType:()=>Df,getRightMostAssignedExpression:()=>Xm,getRootDeclaration:()=>Qh,getRootDirectoryOfResolutionCache:()=>MW,getRootLength:()=>No,getScriptKind:()=>FY,getScriptKindFromFileName:()=>vS,getScriptTargetFeatures:()=>Zd,getSelectedEffectiveModifierFlags:()=>Lv,getSelectedSyntacticModifierFlags:()=>jv,getSemanticClassifications:()=>y0,getSemanticJsxChildren:()=>cy,getSetAccessorTypeAnnotationNode:()=>ov,getSetAccessorValueParameter:()=>iv,getSetExternalModuleIndicator:()=>dk,getShebang:()=>us,getSingleVariableOfVariableStatement:()=>Pg,getSnapshotText:()=>CQ,getSnippetElement:()=>Dw,getSourceFileOfModule:()=>yd,getSourceFileOfNode:()=>hd,getSourceFilePathInNewDir:()=>Xy,getSourceFileVersionAsHashFromText:()=>g$,getSourceFilesToEmit:()=>Ky,getSourceMapRange:()=>aw,getSourceMapper:()=>d1,getSourceTextOfNodeFromSourceFile:()=>qd,getSpanOfTokenAtPosition:()=>Hp,getSpellingSuggestion:()=>Lt,getStartPositionOfLine:()=>xd,getStartPositionOfRange:()=>$b,getStartsOnNewLine:()=>_w,getStaticPropertiesAndClassStaticBlock:()=>WJ,getStrictOptionValue:()=>Mk,getStringComparer:()=>wt,getSubPatternFromSpec:()=>uS,getSuperCallFromStatement:()=>JJ,getSuperContainer:()=>rm,getSupportedCodeFixes:()=>E8,getSupportedExtensions:()=>ES,getSupportedExtensionsWithJsonIfResolveJsonModule:()=>PS,getSwitchedType:()=>oZ,getSymbolId:()=>RB,getSymbolNameForPrivateIdentifier:()=>Uh,getSymbolTarget:()=>EY,getSyntacticClassifications:()=>T0,getSyntacticModifierFlags:()=>Jv,getSyntacticModifierFlagsNoCache:()=>Vv,getSynthesizedDeepClone:()=>LY,getSynthesizedDeepCloneWithReplacements:()=>jY,getSynthesizedDeepClones:()=>MY,getSynthesizedDeepClonesWithReplacements:()=>BY,getSyntheticLeadingComments:()=>fw,getSyntheticTrailingComments:()=>hw,getTargetLabel:()=>qG,getTargetOfBindingOrAssignmentElement:()=>yA,getTemporaryModuleResolutionState:()=>WR,getTextOfConstantValue:()=>np,getTextOfIdentifierOrLiteral:()=>zh,getTextOfJSDocComment:()=>cl,getTextOfJsxAttributeName:()=>eC,getTextOfJsxNamespacedName:()=>rC,getTextOfNode:()=>Kd,getTextOfNodeFromSourceText:()=>Hd,getTextOfPropertyName:()=>Op,getThisContainer:()=>Zf,getThisParameter:()=>av,getTokenAtPosition:()=>PX,getTokenPosOfNode:()=>Bd,getTokenSourceMapRange:()=>cw,getTouchingPropertyName:()=>FX,getTouchingToken:()=>EX,getTrailingCommentRanges:()=>_s,getTrailingSemicolonDeferringWriter:()=>Oy,getTransformers:()=>hq,getTsBuildInfoEmitOutputFilePath:()=>Eq,getTsConfigObjectLiteralExpression:()=>Vf,getTsConfigPropArrayElementValue:()=>Wf,getTypeAnnotationNode:()=>fv,getTypeArgumentOrTypeParameterList:()=>eQ,getTypeKeywordOfTypeOnlyImport:()=>XQ,getTypeNode:()=>Aw,getTypeNodeIfAccessible:()=>sZ,getTypeParameterFromJsDoc:()=>Wg,getTypeParameterOwner:()=>Qs,getTypesPackageName:()=>pM,getUILocale:()=>Et,getUniqueName:()=>$Y,getUniqueSymbolId:()=>AY,getUseDefineForClassFields:()=>Ak,getWatchErrorSummaryDiagnosticMessage:()=>YW,getWatchFactory:()=>hU,group:()=>Je,groupBy:()=>ze,guessIndentation:()=>Ou,handleNoEmitOptions:()=>wV,handleWatchOptionsConfigDirTemplateSubstitution:()=>UL,hasAbstractModifier:()=>Ev,hasAccessorModifier:()=>Av,hasAmbientModifier:()=>Pv,hasChangesInResolutions:()=>md,hasContextSensitiveParameters:()=>IT,hasDecorators:()=>Ov,hasDocComment:()=>QX,hasDynamicName:()=>Rh,hasEffectiveModifier:()=>Cv,hasEffectiveModifiers:()=>Sv,hasEffectiveReadonlyModifier:()=>Iv,hasExtension:()=>xo,hasImplementationTSFileExtension:()=>OS,hasIndexSignature:()=>iZ,hasInferredType:()=>bC,hasInitializer:()=>Fu,hasInvalidEscape:()=>py,hasJSDocNodes:()=>Nu,hasJSDocParameterTags:()=>Oc,hasJSFileExtension:()=>AS,hasJsonModuleEmitEnabled:()=>Ok,hasOnlyExpressionInitializer:()=>Eu,hasOverrideModifier:()=>Fv,hasPossibleExternalModuleReference:()=>Cp,hasProperty:()=>De,hasPropertyAccessExpressionWithName:()=>UG,hasQuestionToken:()=>Cg,hasRecordedExternalHelpers:()=>dA,hasResolutionModeOverride:()=>cC,hasRestParameter:()=>Ru,hasScopeMarker:()=>H_,hasStaticModifier:()=>Dv,hasSyntacticModifier:()=>wv,hasSyntacticModifiers:()=>Tv,hasTSFileExtension:()=>IS,hasTabstop:()=>$T,hasTrailingDirectorySeparator:()=>To,hasType:()=>Du,hasTypeArguments:()=>$g,hasZeroOrOneAsteriskCharacter:()=>Kk,hostGetCanonicalFileName:()=>jy,hostUsesCaseSensitiveFileNames:()=>Ly,idText:()=>mc,identifierIsThisKeyword:()=>uv,identifierToKeywordKind:()=>gc,identity:()=>st,identitySourceMapConsumer:()=>SJ,ignoreSourceNewlines:()=>Ew,ignoredPaths:()=>Qi,importFromModuleSpecifier:()=>yg,importSyntaxAffectsModuleResolution:()=>pk,indexOfAnyCharCode:()=>C,indexOfNode:()=>Xd,indicesOf:()=>X,inferredTypesContainingFile:()=>sV,injectClassNamedEvaluationHelperBlockIfMissing:()=>Sz,injectClassThisAssignmentIfMissing:()=>hz,insertImports:()=>GQ,insertSorted:()=>Z,insertStatementAfterCustomPrologue:()=>Ld,insertStatementAfterStandardPrologue:()=>Od,insertStatementsAfterCustomPrologue:()=>Id,insertStatementsAfterStandardPrologue:()=>Ad,intersperse:()=>y,intrinsicTagNameToString:()=>iC,introducesArgumentsExoticObject:()=>Lf,inverseJsxOptionMap:()=>aO,isAbstractConstructorSymbol:()=>px,isAbstractModifier:()=>XN,isAccessExpression:()=>kx,isAccessibilityModifier:()=>aQ,isAccessor:()=>u_,isAccessorModifier:()=>YN,isAliasableExpression:()=>ph,isAmbientModule:()=>ap,isAmbientPropertyDeclaration:()=>hp,isAnyDirectorySeparator:()=>fo,isAnyImportOrBareOrAccessedRequire:()=>kp,isAnyImportOrReExport:()=>wp,isAnyImportOrRequireStatement:()=>Sp,isAnyImportSyntax:()=>xp,isAnySupportedFileExtension:()=>YS,isApplicableVersionedTypesKey:()=>iM,isArgumentExpressionOfElementAccess:()=>XG,isArray:()=>Qe,isArrayBindingElement:()=>S_,isArrayBindingOrAssignmentElement:()=>E_,isArrayBindingOrAssignmentPattern:()=>F_,isArrayBindingPattern:()=>UD,isArrayLiteralExpression:()=>WD,isArrayLiteralOrObjectLiteralDestructuringPattern:()=>cQ,isArrayTypeNode:()=>TD,isArrowFunction:()=>tF,isAsExpression:()=>gF,isAssertClause:()=>oE,isAssertEntry:()=>aE,isAssertionExpression:()=>V_,isAssertsKeyword:()=>$N,isAssignmentDeclaration:()=>qm,isAssignmentExpression:()=>nb,isAssignmentOperator:()=>Zv,isAssignmentPattern:()=>k_,isAssignmentTarget:()=>Xg,isAsteriskToken:()=>LN,isAsyncFunction:()=>Oh,isAsyncModifier:()=>WN,isAutoAccessorPropertyDeclaration:()=>d_,isAwaitExpression:()=>oF,isAwaitKeyword:()=>HN,isBigIntLiteral:()=>SN,isBinaryExpression:()=>cF,isBinaryLogicalOperator:()=>Hv,isBinaryOperatorToken:()=>jA,isBindableObjectDefinePropertyCall:()=>tg,isBindableStaticAccessExpression:()=>ig,isBindableStaticElementAccessExpression:()=>og,isBindableStaticNameExpression:()=>ag,isBindingElement:()=>VD,isBindingElementOfBareOrAccessedRequire:()=>Rm,isBindingName:()=>t_,isBindingOrAssignmentElement:()=>C_,isBindingOrAssignmentPattern:()=>w_,isBindingPattern:()=>x_,isBlock:()=>CF,isBlockLike:()=>GZ,isBlockOrCatchScoped:()=>ip,isBlockScope:()=>yp,isBlockScopedContainerTopLevel:()=>_p,isBooleanLiteral:()=>o_,isBreakOrContinueStatement:()=>Tl,isBreakStatement:()=>jF,isBuildCommand:()=>nK,isBuildInfoFile:()=>Dq,isBuilderProgram:()=>t$,isBundle:()=>UE,isCallChain:()=>ml,isCallExpression:()=>GD,isCallExpressionTarget:()=>PG,isCallLikeExpression:()=>O_,isCallLikeOrFunctionLikeExpression:()=>I_,isCallOrNewExpression:()=>L_,isCallOrNewExpressionTarget:()=>IG,isCallSignatureDeclaration:()=>mD,isCallToHelper:()=>xN,isCaseBlock:()=>ZF,isCaseClause:()=>OE,isCaseKeyword:()=>tD,isCaseOrDefaultClause:()=>xu,isCatchClause:()=>RE,isCatchClauseVariableDeclaration:()=>LT,isCatchClauseVariableDeclarationOrBindingElement:()=>op,isCheckJsEnabledForFile:()=>eT,isCircularBuildOrder:()=>O$,isClassDeclaration:()=>HF,isClassElement:()=>l_,isClassExpression:()=>pF,isClassInstanceProperty:()=>p_,isClassLike:()=>__,isClassMemberModifier:()=>Ql,isClassNamedEvaluationHelperBlock:()=>bz,isClassOrTypeElement:()=>h_,isClassStaticBlockDeclaration:()=>uD,isClassThisAssignmentBlock:()=>mz,isColonToken:()=>MN,isCommaExpression:()=>rA,isCommaListExpression:()=>kF,isCommaSequence:()=>iA,isCommaToken:()=>AN,isComment:()=>tQ,isCommonJsExportPropertyAssignment:()=>If,isCommonJsExportedExpression:()=>Af,isCompoundAssignment:()=>MJ,isComputedNonLiteralName:()=>Ap,isComputedPropertyName:()=>rD,isConciseBody:()=>Q_,isConditionalExpression:()=>lF,isConditionalTypeNode:()=>PD,isConstAssertion:()=>mC,isConstTypeReference:()=>xl,isConstructSignatureDeclaration:()=>gD,isConstructorDeclaration:()=>dD,isConstructorTypeNode:()=>xD,isContextualKeyword:()=>Nh,isContinueStatement:()=>LF,isCustomPrologue:()=>df,isDebuggerStatement:()=>UF,isDeclaration:()=>lu,isDeclarationBindingElement:()=>T_,isDeclarationFileName:()=>$I,isDeclarationName:()=>ch,isDeclarationNameOfEnumOrNamespace:()=>Qb,isDeclarationReadonly:()=>ef,isDeclarationStatement:()=>_u,isDeclarationWithTypeParameterChildren:()=>bp,isDeclarationWithTypeParameters:()=>vp,isDecorator:()=>aD,isDecoratorTarget:()=>LG,isDefaultClause:()=>LE,isDefaultImport:()=>Sg,isDefaultModifier:()=>VN,isDefaultedExpandoInitializer:()=>Hm,isDeleteExpression:()=>nF,isDeleteTarget:()=>ah,isDeprecatedDeclaration:()=>JZ,isDestructuringAssignment:()=>rb,isDiskPathRoot:()=>ho,isDoStatement:()=>EF,isDocumentRegistryEntry:()=>w0,isDotDotDotToken:()=>PN,isDottedName:()=>sb,isDynamicName:()=>Mh,isEffectiveExternalModule:()=>mp,isEffectiveStrictModeSourceFile:()=>gp,isElementAccessChain:()=>fl,isElementAccessExpression:()=>KD,isEmittedFileOfProgram:()=>mU,isEmptyArrayLiteral:()=>hb,isEmptyBindingElement:()=>ec,isEmptyBindingPattern:()=>Zs,isEmptyObjectLiteral:()=>gb,isEmptyStatement:()=>NF,isEmptyStringLiteral:()=>hm,isEntityName:()=>Zl,isEntityNameExpression:()=>ob,isEnumConst:()=>Zp,isEnumDeclaration:()=>XF,isEnumMember:()=>zE,isEqualityOperatorKind:()=>nZ,isEqualsGreaterThanToken:()=>JN,isExclamationToken:()=>jN,isExcludedFile:()=>bj,isExclusivelyTypeOnlyImportOrExport:()=>$U,isExpandoPropertyDeclaration:()=>sC,isExportAssignment:()=>pE,isExportDeclaration:()=>fE,isExportModifier:()=>UN,isExportName:()=>ZP,isExportNamespaceAsDefaultDeclaration:()=>Ud,isExportOrDefaultModifier:()=>VA,isExportSpecifier:()=>gE,isExportsIdentifier:()=>Qm,isExportsOrModuleExportsOrAlias:()=>LM,isExpression:()=>U_,isExpressionNode:()=>vm,isExpressionOfExternalModuleImportEqualsDeclaration:()=>eX,isExpressionOfOptionalChainRoot:()=>yl,isExpressionStatement:()=>DF,isExpressionWithTypeArguments:()=>mF,isExpressionWithTypeArgumentsInClassExtendsClause:()=>ib,isExternalModule:()=>MI,isExternalModuleAugmentation:()=>dp,isExternalModuleImportEqualsDeclaration:()=>Sm,isExternalModuleIndicator:()=>G_,isExternalModuleNameRelative:()=>Ts,isExternalModuleReference:()=>xE,isExternalModuleSymbol:()=>Gu,isExternalOrCommonJsModule:()=>Qp,isFileLevelReservedGeneratedIdentifier:()=>$l,isFileLevelUniqueName:()=>Td,isFileProbablyExternalModule:()=>_I,isFirstDeclarationOfSymbolParameter:()=>oY,isFixablePromiseHandler:()=>x1,isForInOrOfStatement:()=>X_,isForInStatement:()=>IF,isForInitializer:()=>Z_,isForOfStatement:()=>OF,isForStatement:()=>AF,isFullSourceFile:()=>Nm,isFunctionBlock:()=>Rf,isFunctionBody:()=>Y_,isFunctionDeclaration:()=>$F,isFunctionExpression:()=>eF,isFunctionExpressionOrArrowFunction:()=>jT,isFunctionLike:()=>n_,isFunctionLikeDeclaration:()=>i_,isFunctionLikeKind:()=>s_,isFunctionLikeOrClassStaticBlockDeclaration:()=>r_,isFunctionOrConstructorTypeNode:()=>b_,isFunctionOrModuleBlock:()=>c_,isFunctionSymbol:()=>mg,isFunctionTypeNode:()=>bD,isGeneratedIdentifier:()=>Vl,isGeneratedPrivateIdentifier:()=>Wl,isGetAccessor:()=>wu,isGetAccessorDeclaration:()=>pD,isGetOrSetAccessorDeclaration:()=>dl,isGlobalScopeAugmentation:()=>up,isGlobalSourceFile:()=>Xp,isGrammarError:()=>Nd,isHeritageClause:()=>jE,isHoistedFunction:()=>pf,isHoistedVariableStatement:()=>mf,isIdentifier:()=>zN,isIdentifierANonContextualKeyword:()=>Eh,isIdentifierName:()=>uh,isIdentifierOrThisTypeNode:()=>EA,isIdentifierPart:()=>ps,isIdentifierStart:()=>ds,isIdentifierText:()=>fs,isIdentifierTypePredicate:()=>Jf,isIdentifierTypeReference:()=>vT,isIfStatement:()=>FF,isIgnoredFileFromWildCardWatching:()=>fU,isImplicitGlob:()=>lS,isImportAttribute:()=>cE,isImportAttributeName:()=>Ul,isImportAttributes:()=>sE,isImportCall:()=>cf,isImportClause:()=>rE,isImportDeclaration:()=>nE,isImportEqualsDeclaration:()=>tE,isImportKeyword:()=>eD,isImportMeta:()=>lf,isImportOrExportSpecifier:()=>Rl,isImportOrExportSpecifierName:()=>DY,isImportSpecifier:()=>dE,isImportTypeAssertionContainer:()=>iE,isImportTypeNode:()=>BD,isImportable:()=>e0,isInComment:()=>XX,isInCompoundLikeAssignment:()=>Qg,isInExpressionContext:()=>bm,isInJSDoc:()=>Am,isInJSFile:()=>Fm,isInJSXText:()=>VX,isInJsonFile:()=>Em,isInNonReferenceComment:()=>_Q,isInReferenceComment:()=>lQ,isInRightSideOfInternalImportEqualsDeclaration:()=>EG,isInString:()=>JX,isInTemplateString:()=>UX,isInTopLevelContext:()=>tm,isInTypeQuery:()=>lv,isIncrementalBuildInfo:()=>aW,isIncrementalBundleEmitBuildInfo:()=>oW,isIncrementalCompilation:()=>Fk,isIndexSignatureDeclaration:()=>hD,isIndexedAccessTypeNode:()=>jD,isInferTypeNode:()=>AD,isInfinityOrNaNString:()=>OT,isInitializedProperty:()=>$J,isInitializedVariable:()=>Zb,isInsideJsxElement:()=>WX,isInsideJsxElementOrAttribute:()=>zX,isInsideNodeModules:()=>wZ,isInsideTemplateLiteral:()=>oQ,isInstanceOfExpression:()=>fb,isInstantiatedModule:()=>MB,isInterfaceDeclaration:()=>KF,isInternalDeclaration:()=>Ju,isInternalModuleImportEqualsDeclaration:()=>wm,isInternalName:()=>QP,isIntersectionTypeNode:()=>ED,isIntrinsicJsxName:()=>Fy,isIterationStatement:()=>W_,isJSDoc:()=>iP,isJSDocAllType:()=>XE,isJSDocAugmentsTag:()=>sP,isJSDocAuthorTag:()=>cP,isJSDocCallbackTag:()=>_P,isJSDocClassTag:()=>lP,isJSDocCommentContainingNode:()=>Su,isJSDocConstructSignature:()=>wg,isJSDocDeprecatedTag:()=>hP,isJSDocEnumTag:()=>vP,isJSDocFunctionType:()=>tP,isJSDocImplementsTag:()=>DP,isJSDocImportTag:()=>PP,isJSDocIndexSignature:()=>Im,isJSDocLikeText:()=>lI,isJSDocLink:()=>HE,isJSDocLinkCode:()=>KE,isJSDocLinkLike:()=>ju,isJSDocLinkPlain:()=>GE,isJSDocMemberName:()=>$E,isJSDocNameReference:()=>WE,isJSDocNamepathType:()=>rP,isJSDocNamespaceBody:()=>nu,isJSDocNode:()=>ku,isJSDocNonNullableType:()=>ZE,isJSDocNullableType:()=>YE,isJSDocOptionalParameter:()=>HT,isJSDocOptionalType:()=>eP,isJSDocOverloadTag:()=>gP,isJSDocOverrideTag:()=>mP,isJSDocParameterTag:()=>bP,isJSDocPrivateTag:()=>dP,isJSDocPropertyLikeTag:()=>wl,isJSDocPropertyTag:()=>NP,isJSDocProtectedTag:()=>pP,isJSDocPublicTag:()=>uP,isJSDocReadonlyTag:()=>fP,isJSDocReturnTag:()=>xP,isJSDocSatisfiesExpression:()=>XT,isJSDocSatisfiesTag:()=>FP,isJSDocSeeTag:()=>yP,isJSDocSignature:()=>aP,isJSDocTag:()=>Tu,isJSDocTemplateTag:()=>TP,isJSDocThisTag:()=>kP,isJSDocThrowsTag:()=>EP,isJSDocTypeAlias:()=>Ng,isJSDocTypeAssertion:()=>oA,isJSDocTypeExpression:()=>VE,isJSDocTypeLiteral:()=>oP,isJSDocTypeTag:()=>SP,isJSDocTypedefTag:()=>CP,isJSDocUnknownTag:()=>wP,isJSDocUnknownType:()=>QE,isJSDocVariadicType:()=>nP,isJSXTagName:()=>ym,isJsonEqual:()=>dT,isJsonSourceFile:()=>Yp,isJsxAttribute:()=>FE,isJsxAttributeLike:()=>hu,isJsxAttributeName:()=>tC,isJsxAttributes:()=>EE,isJsxCallLike:()=>bu,isJsxChild:()=>gu,isJsxClosingElement:()=>CE,isJsxClosingFragment:()=>DE,isJsxElement:()=>kE,isJsxExpression:()=>AE,isJsxFragment:()=>wE,isJsxNamespacedName:()=>IE,isJsxOpeningElement:()=>TE,isJsxOpeningFragment:()=>NE,isJsxOpeningLikeElement:()=>vu,isJsxOpeningLikeElementTagName:()=>jG,isJsxSelfClosingElement:()=>SE,isJsxSpreadAttribute:()=>PE,isJsxTagNameExpression:()=>mu,isJsxText:()=>CN,isJumpStatementTarget:()=>VG,isKeyword:()=>Th,isKeywordOrPunctuation:()=>wh,isKnownSymbol:()=>Vh,isLabelName:()=>$G,isLabelOfLabeledStatement:()=>WG,isLabeledStatement:()=>JF,isLateVisibilityPaintedStatement:()=>Tp,isLeftHandSideExpression:()=>R_,isLet:()=>af,isLineBreak:()=>Ua,isLiteralComputedPropertyDeclarationName:()=>_h,isLiteralExpression:()=>Al,isLiteralExpressionOfObject:()=>Il,isLiteralImportTypeNode:()=>_f,isLiteralKind:()=>Pl,isLiteralNameOfPropertyDeclarationOrIndexAccess:()=>ZG,isLiteralTypeLiteral:()=>q_,isLiteralTypeNode:()=>MD,isLocalName:()=>YP,isLogicalOperator:()=>Kv,isLogicalOrCoalescingAssignmentExpression:()=>Xv,isLogicalOrCoalescingAssignmentOperator:()=>Gv,isLogicalOrCoalescingBinaryExpression:()=>Yv,isLogicalOrCoalescingBinaryOperator:()=>Qv,isMappedTypeNode:()=>RD,isMemberName:()=>ul,isMetaProperty:()=>vF,isMethodDeclaration:()=>_D,isMethodOrAccessor:()=>f_,isMethodSignature:()=>lD,isMinusToken:()=>ON,isMissingDeclaration:()=>yE,isMissingPackageJsonInfo:()=>oR,isModifier:()=>Yl,isModifierKind:()=>Gl,isModifierLike:()=>m_,isModuleAugmentationExternal:()=>pp,isModuleBlock:()=>YF,isModuleBody:()=>eu,isModuleDeclaration:()=>QF,isModuleExportName:()=>hE,isModuleExportsAccessExpression:()=>Zm,isModuleIdentifier:()=>Ym,isModuleName:()=>IA,isModuleOrEnumDeclaration:()=>iu,isModuleReference:()=>fu,isModuleSpecifierLike:()=>UQ,isModuleWithStringLiteralName:()=>sp,isNameOfFunctionDeclaration:()=>YG,isNameOfModuleDeclaration:()=>QG,isNamedDeclaration:()=>kc,isNamedEvaluation:()=>Kh,isNamedEvaluationSource:()=>Hh,isNamedExportBindings:()=>Cl,isNamedExports:()=>mE,isNamedImportBindings:()=>ru,isNamedImports:()=>uE,isNamedImportsOrExports:()=>Tx,isNamedTupleMember:()=>wD,isNamespaceBody:()=>tu,isNamespaceExport:()=>_E,isNamespaceExportDeclaration:()=>eE,isNamespaceImport:()=>lE,isNamespaceReexportDeclaration:()=>km,isNewExpression:()=>XD,isNewExpressionTarget:()=>AG,isNewScopeNode:()=>DC,isNoSubstitutionTemplateLiteral:()=>NN,isNodeArray:()=>El,isNodeArrayMultiLine:()=>Vb,isNodeDescendantOf:()=>sh,isNodeKind:()=>Nl,isNodeLikeSystem:()=>_n,isNodeModulesDirectory:()=>sa,isNodeWithPossibleHoistedDeclaration:()=>Yg,isNonContextualKeyword:()=>Dh,isNonGlobalAmbientModule:()=>cp,isNonNullAccess:()=>GT,isNonNullChain:()=>Sl,isNonNullExpression:()=>yF,isNonStaticMethodOrAccessorWithPrivateName:()=>HJ,isNotEmittedStatement:()=>vE,isNullishCoalesce:()=>bl,isNumber:()=>et,isNumericLiteral:()=>kN,isNumericLiteralName:()=>MT,isObjectBindingElementWithoutPropertyName:()=>VQ,isObjectBindingOrAssignmentElement:()=>D_,isObjectBindingOrAssignmentPattern:()=>N_,isObjectBindingPattern:()=>qD,isObjectLiteralElement:()=>Pu,isObjectLiteralElementLike:()=>y_,isObjectLiteralExpression:()=>$D,isObjectLiteralMethod:()=>Mf,isObjectLiteralOrClassExpressionMethodOrAccessor:()=>Bf,isObjectTypeDeclaration:()=>bx,isOmittedExpression:()=>fF,isOptionalChain:()=>gl,isOptionalChainRoot:()=>hl,isOptionalDeclaration:()=>KT,isOptionalJSDocPropertyLikeTag:()=>VT,isOptionalTypeNode:()=>ND,isOuterExpression:()=>sA,isOutermostOptionalChain:()=>vl,isOverrideModifier:()=>QN,isPackageJsonInfo:()=>iR,isPackedArrayLiteral:()=>FT,isParameter:()=>oD,isParameterPropertyDeclaration:()=>Ys,isParameterPropertyModifier:()=>Xl,isParenthesizedExpression:()=>ZD,isParenthesizedTypeNode:()=>ID,isParseTreeNode:()=>uc,isPartOfParameterDeclaration:()=>Xh,isPartOfTypeNode:()=>Tf,isPartOfTypeOnlyImportOrExportDeclaration:()=>zl,isPartOfTypeQuery:()=>xm,isPartiallyEmittedExpression:()=>xF,isPatternMatch:()=>Yt,isPinnedComment:()=>Rd,isPlainJsFile:()=>vd,isPlusToken:()=>IN,isPossiblyTypeArgumentPosition:()=>HX,isPostfixUnaryExpression:()=>sF,isPrefixUnaryExpression:()=>aF,isPrimitiveLiteralValue:()=>yC,isPrivateIdentifier:()=>qN,isPrivateIdentifierClassElementDeclaration:()=>Hl,isPrivateIdentifierPropertyAccessExpression:()=>Kl,isPrivateIdentifierSymbol:()=>Wh,isProgramUptoDate:()=>mV,isPrologueDirective:()=>uf,isPropertyAccessChain:()=>pl,isPropertyAccessEntityNameExpression:()=>cb,isPropertyAccessExpression:()=>HD,isPropertyAccessOrQualifiedName:()=>A_,isPropertyAccessOrQualifiedNameOrImportTypeNode:()=>P_,isPropertyAssignment:()=>ME,isPropertyDeclaration:()=>cD,isPropertyName:()=>e_,isPropertyNameLiteral:()=>Jh,isPropertySignature:()=>sD,isPrototypeAccess:()=>_b,isPrototypePropertyAssignment:()=>dg,isPunctuation:()=>Ch,isPushOrUnshiftIdentifier:()=>Gh,isQualifiedName:()=>nD,isQuestionDotToken:()=>BN,isQuestionOrExclamationToken:()=>FA,isQuestionOrPlusOrMinusToken:()=>AA,isQuestionToken:()=>RN,isReadonlyKeyword:()=>KN,isReadonlyKeywordOrPlusOrMinusToken:()=>PA,isRecognizedTripleSlashComment:()=>jd,isReferenceFileLocation:()=>pV,isReferencedFile:()=>dV,isRegularExpressionLiteral:()=>wN,isRequireCall:()=>Om,isRequireVariableStatement:()=>Bm,isRestParameter:()=>Mu,isRestTypeNode:()=>DD,isReturnStatement:()=>RF,isReturnStatementWithFixablePromiseHandler:()=>b1,isRightSideOfAccessExpression:()=>db,isRightSideOfInstanceofExpression:()=>mb,isRightSideOfPropertyAccess:()=>GG,isRightSideOfQualifiedName:()=>KG,isRightSideOfQualifiedNameOrPropertyAccess:()=>ub,isRightSideOfQualifiedNameOrPropertyAccessOrJSDocMemberName:()=>pb,isRootedDiskPath:()=>go,isSameEntityName:()=>Gm,isSatisfiesExpression:()=>hF,isSemicolonClassElement:()=>TF,isSetAccessor:()=>Cu,isSetAccessorDeclaration:()=>fD,isShiftOperatorOrHigher:()=>OA,isShorthandAmbientModuleSymbol:()=>lp,isShorthandPropertyAssignment:()=>BE,isSideEffectImport:()=>xC,isSignedNumericLiteral:()=>jh,isSimpleCopiableExpression:()=>jJ,isSimpleInlineableExpression:()=>RJ,isSimpleParameterList:()=>rz,isSingleOrDoubleQuote:()=>Jm,isSolutionConfig:()=>YL,isSourceElement:()=>dC,isSourceFile:()=>qE,isSourceFileFromLibrary:()=>$Z,isSourceFileJS:()=>Dm,isSourceFileNotJson:()=>Pm,isSourceMapping:()=>mJ,isSpecialPropertyDeclaration:()=>pg,isSpreadAssignment:()=>JE,isSpreadElement:()=>dF,isStatement:()=>du,isStatementButNotDeclaration:()=>uu,isStatementOrBlock:()=>pu,isStatementWithLocals:()=>bd,isStatic:()=>Nv,isStaticModifier:()=>GN,isString:()=>Ze,isStringANonContextualKeyword:()=>Fh,isStringAndEmptyAnonymousObjectIntersection:()=>iQ,isStringDoubleQuoted:()=>zm,isStringLiteral:()=>TN,isStringLiteralLike:()=>Lu,isStringLiteralOrJsxExpression:()=>yu,isStringLiteralOrTemplate:()=>rZ,isStringOrNumericLiteralLike:()=>Lh,isStringOrRegularExpressionOrTemplateLiteral:()=>nQ,isStringTextContainingNode:()=>ql,isSuperCall:()=>sf,isSuperKeyword:()=>ZN,isSuperProperty:()=>om,isSupportedSourceFileName:()=>RS,isSwitchStatement:()=>BF,isSyntaxList:()=>AP,isSyntheticExpression:()=>bF,isSyntheticReference:()=>bE,isTagName:()=>HG,isTaggedTemplateExpression:()=>QD,isTaggedTemplateTag:()=>OG,isTemplateExpression:()=>_F,isTemplateHead:()=>DN,isTemplateLiteral:()=>j_,isTemplateLiteralKind:()=>Ol,isTemplateLiteralToken:()=>Ll,isTemplateLiteralTypeNode:()=>zD,isTemplateLiteralTypeSpan:()=>JD,isTemplateMiddle:()=>FN,isTemplateMiddleOrTemplateTail:()=>jl,isTemplateSpan:()=>SF,isTemplateTail:()=>EN,isTextWhiteSpaceLike:()=>tY,isThis:()=>rX,isThisContainerOrFunctionBlock:()=>em,isThisIdentifier:()=>cv,isThisInTypeQuery:()=>_v,isThisInitializedDeclaration:()=>sm,isThisInitializedObjectBindingExpression:()=>cm,isThisProperty:()=>am,isThisTypeNode:()=>OD,isThisTypeParameter:()=>JT,isThisTypePredicate:()=>zf,isThrowStatement:()=>zF,isToken:()=>Fl,isTokenKind:()=>Dl,isTraceEnabled:()=>Lj,isTransientSymbol:()=>Ku,isTrivia:()=>Ph,isTryStatement:()=>qF,isTupleTypeNode:()=>CD,isTypeAlias:()=>Dg,isTypeAliasDeclaration:()=>GF,isTypeAssertionExpression:()=>YD,isTypeDeclaration:()=>qT,isTypeElement:()=>g_,isTypeKeyword:()=>xQ,isTypeKeywordTokenOrIdentifier:()=>SQ,isTypeLiteralNode:()=>SD,isTypeNode:()=>v_,isTypeNodeKind:()=>xx,isTypeOfExpression:()=>rF,isTypeOnlyExportDeclaration:()=>Bl,isTypeOnlyImportDeclaration:()=>Ml,isTypeOnlyImportOrExportDeclaration:()=>Jl,isTypeOperatorNode:()=>LD,isTypeParameterDeclaration:()=>iD,isTypePredicateNode:()=>yD,isTypeQueryNode:()=>kD,isTypeReferenceNode:()=>vD,isTypeReferenceType:()=>Au,isTypeUsableAsPropertyName:()=>oC,isUMDExportSymbol:()=>gx,isUnaryExpression:()=>B_,isUnaryExpressionWithWrite:()=>z_,isUnicodeIdentifierStart:()=>Ca,isUnionTypeNode:()=>FD,isUrl:()=>mo,isValidBigIntString:()=>hT,isValidESSymbolDeclaration:()=>Of,isValidTypeOnlyAliasUseSite:()=>yT,isValueSignatureDeclaration:()=>Zg,isVarAwaitUsing:()=>tf,isVarConst:()=>rf,isVarConstLike:()=>of,isVarUsing:()=>nf,isVariableDeclaration:()=>VF,isVariableDeclarationInVariableStatement:()=>Pf,isVariableDeclarationInitializedToBareOrAccessedRequire:()=>jm,isVariableDeclarationInitializedToRequire:()=>Lm,isVariableDeclarationList:()=>WF,isVariableLike:()=>Ef,isVariableStatement:()=>wF,isVoidExpression:()=>iF,isWatchSet:()=>ex,isWhileStatement:()=>PF,isWhiteSpaceLike:()=>za,isWhiteSpaceSingleLine:()=>qa,isWithStatement:()=>MF,isWriteAccess:()=>sx,isWriteOnlyAccess:()=>ax,isYieldExpression:()=>uF,jsxModeNeedsExplicitImport:()=>WZ,keywordPart:()=>lY,last:()=>ve,lastOrUndefined:()=>ye,length:()=>u,libMap:()=>lO,libs:()=>cO,lineBreakPart:()=>SY,loadModuleFromGlobalCache:()=>xM,loadWithModeAwareCache:()=>iV,makeIdentifierFromModuleName:()=>rp,makeImport:()=>LQ,makeStringLiteral:()=>jQ,mangleScopedPackageName:()=>fM,map:()=>E,mapAllOrFail:()=>M,mapDefined:()=>B,mapDefinedIterator:()=>J,mapEntries:()=>W,mapIterator:()=>P,mapOneOrMany:()=>AZ,mapToDisplayParts:()=>TY,matchFiles:()=>mS,matchPatternOrExact:()=>nT,matchedText:()=>Ht,matchesExclude:()=>kj,matchesExcludeWorker:()=>Sj,maxBy:()=>xt,maybeBind:()=>We,maybeSetLocalizedDiagnosticMessages:()=>qx,memoize:()=>dt,memoizeOne:()=>pt,min:()=>kt,minAndMax:()=>oT,missingFileModifiedTime:()=>zi,modifierToFlag:()=>$v,modifiersToFlags:()=>Wv,moduleExportNameIsDefault:()=>$d,moduleExportNameTextEscaped:()=>Wd,moduleExportNameTextUnescaped:()=>Vd,moduleOptionDeclaration:()=>pO,moduleResolutionIsEqualTo:()=>sd,moduleResolutionNameAndModeGetter:()=>ZU,moduleResolutionOptionDeclarations:()=>vO,moduleResolutionSupportsPackageJsonExportsAndImports:()=>Rk,moduleResolutionUsesNodeModules:()=>OQ,moduleSpecifierToValidIdentifier:()=>RZ,moduleSpecifiers:()=>BM,moduleSymbolToValidIdentifier:()=>jZ,moveEmitHelpers:()=>Nw,moveRangeEnd:()=>Ab,moveRangePastDecorators:()=>Ob,moveRangePastModifiers:()=>Lb,moveRangePos:()=>Ib,moveSyntheticComments:()=>bw,mutateMap:()=>dx,mutateMapSkippingNewValues:()=>ux,needsParentheses:()=>ZY,needsScopeMarker:()=>K_,newCaseClauseTracker:()=>HZ,newPrivateEnvironment:()=>YJ,noEmitNotification:()=>Tq,noEmitSubstitution:()=>Sq,noTransformers:()=>gq,noTruncationMaximumTruncationLength:()=>Vu,nodeCanBeDecorated:()=>um,nodeCoreModules:()=>CC,nodeHasName:()=>bc,nodeIsDecorated:()=>dm,nodeIsMissing:()=>Cd,nodeIsPresent:()=>wd,nodeIsSynthesized:()=>Zh,nodeModuleNameResolver:()=>CR,nodeModulesPathPart:()=>PR,nodeNextJsonConfigResolver:()=>wR,nodeOrChildIsDecorated:()=>pm,nodeOverlapsWithStartEnd:()=>uX,nodePosToString:()=>kd,nodeSeenTracker:()=>TQ,nodeStartsNewLexicalEnvironment:()=>Yh,noop:()=>rt,noopFileWatcher:()=>_$,normalizePath:()=>Jo,normalizeSlashes:()=>Oo,normalizeSpans:()=>Us,not:()=>tn,notImplemented:()=>ut,notImplementedResolver:()=>Yq,nullNodeConverters:()=>OC,nullParenthesizerRules:()=>PC,nullTransformationContext:()=>wq,objectAllocator:()=>jx,operatorPart:()=>uY,optionDeclarations:()=>mO,optionMapToObject:()=>CL,optionsAffectingProgramStructure:()=>xO,optionsForBuild:()=>NO,optionsForWatch:()=>_O,optionsHaveChanges:()=>Zu,or:()=>en,orderedRemoveItem:()=>zt,orderedRemoveItemAt:()=>qt,packageIdToPackageName:()=>dd,packageIdToString:()=>pd,parameterIsThisKeyword:()=>sv,parameterNamePart:()=>dY,parseBaseNodeFactory:()=>oI,parseBigInt:()=>mT,parseBuildCommand:()=>GO,parseCommandLine:()=>VO,parseCommandLineWorker:()=>JO,parseConfigFileTextToJson:()=>ZO,parseConfigFileWithSystem:()=>GW,parseConfigHostFromCompilerHostLike:()=>DV,parseCustomTypeOption:()=>jO,parseIsolatedEntityName:()=>jI,parseIsolatedJSDocComment:()=>JI,parseJSDocTypeExpressionForTests:()=>zI,parseJsonConfigFileContent:()=>jL,parseJsonSourceFileConfigFileContent:()=>RL,parseJsonText:()=>RI,parseListTypeOption:()=>RO,parseNodeFactory:()=>aI,parseNodeModuleFromPath:()=>IR,parsePackageName:()=>YR,parsePseudoBigInt:()=>pT,parseValidBigInt:()=>gT,pasteEdits:()=>efe,patchWriteFileEnsuringDirectory:()=>ao,pathContainsNodeModules:()=>AR,pathIsAbsolute:()=>yo,pathIsBareSpecifier:()=>bo,pathIsRelative:()=>vo,patternText:()=>$t,performIncrementalCompilation:()=>S$,performance:()=>Vn,positionBelongsToNode:()=>pX,positionIsASICandidate:()=>pZ,positionIsSynthesized:()=>KS,positionsAreOnSameLine:()=>Wb,preProcessFile:()=>_1,probablyUsesSemicolons:()=>fZ,processCommentPragmas:()=>KI,processPragmasIntoFields:()=>GI,processTaggedTemplateExpression:()=>Nz,programContainsEsModules:()=>EQ,programContainsModules:()=>FQ,projectReferenceIsEqualTo:()=>ad,propertyNamePart:()=>pY,pseudoBigIntToString:()=>fT,punctuationPart:()=>_Y,pushIfUnique:()=>ce,quote:()=>tZ,quotePreferenceFromString:()=>MQ,rangeContainsPosition:()=>sX,rangeContainsPositionExclusive:()=>cX,rangeContainsRange:()=>Gb,rangeContainsRangeExclusive:()=>aX,rangeContainsStartEnd:()=>lX,rangeEndIsOnSameLineAsRangeStart:()=>zb,rangeEndPositionsAreOnSameLine:()=>Bb,rangeEquals:()=>de,rangeIsOnSingleLine:()=>Rb,rangeOfNode:()=>aT,rangeOfTypeParameters:()=>sT,rangeOverlapsWithStartEnd:()=>_X,rangeStartIsOnSameLineAsRangeEnd:()=>Jb,rangeStartPositionsAreOnSameLine:()=>Mb,readBuilderProgram:()=>T$,readConfigFile:()=>YO,readJson:()=>Cb,readJsonConfigFile:()=>eL,readJsonOrUndefined:()=>Tb,reduceEachLeadingCommentRange:()=>as,reduceEachTrailingCommentRange:()=>ss,reduceLeft:()=>we,reduceLeftIterator:()=>g,reducePathComponents:()=>Lo,refactor:()=>V2,regExpEscape:()=>Zk,regularExpressionFlagToCharacterCode:()=>Pa,relativeComplement:()=>re,removeAllComments:()=>tw,removeEmitHelper:()=>Cw,removeExtension:()=>US,removeFileExtension:()=>zS,removeIgnoredPath:()=>wW,removeMinAndVersionNumbers:()=>Jt,removePrefix:()=>Xt,removeSuffix:()=>Mt,removeTrailingDirectorySeparator:()=>Uo,repeatString:()=>wQ,replaceElement:()=>Se,replaceFirstStar:()=>_C,resolutionExtensionIsTSOrJson:()=>XS,resolveConfigFileProjectName:()=>E$,resolveJSModule:()=>kR,resolveLibrary:()=>yR,resolveModuleName:()=>bR,resolveModuleNameFromCache:()=>vR,resolvePackageNameToPackageJson:()=>nR,resolvePath:()=>Ro,resolveProjectReferencePath:()=>FV,resolveTripleslashReference:()=>xU,resolveTypeReferenceDirective:()=>Zj,resolvingEmptyArray:()=>zu,returnFalse:()=>it,returnNoopFileWatcher:()=>u$,returnTrue:()=>ot,returnUndefined:()=>at,returnsPromise:()=>v1,rewriteModuleSpecifier:()=>iz,sameFlatMap:()=>R,sameMap:()=>A,sameMapping:()=>fJ,scanTokenAtPosition:()=>Kp,scanner:()=>wG,semanticDiagnosticsOptionDeclarations:()=>gO,serializeCompilerOptions:()=>FL,server:()=>_fe,servicesVersion:()=>l8,setCommentRange:()=>pw,setConfigFileInOptions:()=>ML,setConstantValue:()=>kw,setEmitFlags:()=>nw,setGetSourceFileAsHashVersioned:()=>h$,setIdentifierAutoGenerate:()=>Lw,setIdentifierGeneratedImportReference:()=>Rw,setIdentifierTypeArguments:()=>Iw,setInternalEmitFlags:()=>iw,setLocalizedDiagnosticMessages:()=>zx,setNodeChildren:()=>jP,setNodeFlags:()=>CT,setObjectAllocator:()=>Bx,setOriginalNode:()=>YC,setParent:()=>wT,setParentRecursive:()=>NT,setPrivateIdentifier:()=>ez,setSnippetElement:()=>Fw,setSourceMapRange:()=>sw,setStackTraceLimit:()=>Mi,setStartsOnNewLine:()=>uw,setSyntheticLeadingComments:()=>mw,setSyntheticTrailingComments:()=>yw,setSys:()=>co,setSysLog:()=>eo,setTextRange:()=>nI,setTextRangeEnd:()=>kT,setTextRangePos:()=>xT,setTextRangePosEnd:()=>ST,setTextRangePosWidth:()=>TT,setTokenSourceMapRange:()=>lw,setTypeNode:()=>Pw,setUILocale:()=>Pt,setValueDeclaration:()=>fg,shouldAllowImportingTsExtension:()=>bM,shouldPreserveConstEnums:()=>Dk,shouldRewriteModuleSpecifier:()=>bg,shouldUseUriStyleNodeCoreModules:()=>zZ,showModuleSpecifier:()=>hx,signatureHasRestParameter:()=>UB,signatureToDisplayParts:()=>NY,single:()=>xe,singleElementArray:()=>rn,singleIterator:()=>U,singleOrMany:()=>ke,singleOrUndefined:()=>be,skipAlias:()=>ix,skipConstraint:()=>NQ,skipOuterExpressions:()=>cA,skipParentheses:()=>oh,skipPartiallyEmittedExpressions:()=>kl,skipTrivia:()=>Xa,skipTypeChecking:()=>cT,skipTypeCheckingIgnoringNoCheck:()=>lT,skipTypeParentheses:()=>ih,skipWhile:()=>ln,sliceAfter:()=>rT,some:()=>$,sortAndDeduplicate:()=>ee,sortAndDeduplicateDiagnostics:()=>Cs,sourceFileAffectingCompilerOptions:()=>bO,sourceFileMayBeEmitted:()=>Gy,sourceMapCommentRegExp:()=>sJ,sourceMapCommentRegExpDontCareLineStart:()=>aJ,spacePart:()=>cY,spanMap:()=>V,startEndContainsRange:()=>Xb,startEndOverlapsWithStartEnd:()=>dX,startOnNewLine:()=>_A,startTracing:()=>dr,startsWith:()=>Gt,startsWithDirectory:()=>ea,startsWithUnderscore:()=>BZ,startsWithUseStrict:()=>nA,stringContainsAt:()=>MZ,stringToToken:()=>Fa,stripQuotes:()=>Dy,supportedDeclarationExtensions:()=>NS,supportedJSExtensionsFlat:()=>TS,supportedLocaleDirectories:()=>sc,supportedTSExtensionsFlat:()=>xS,supportedTSImplementationExtensions:()=>DS,suppressLeadingAndTrailingTrivia:()=>JY,suppressLeadingTrivia:()=>zY,suppressTrailingTrivia:()=>qY,symbolEscapedNameNoDefault:()=>qQ,symbolName:()=>hc,symbolNameNoDefault:()=>zQ,symbolToDisplayParts:()=>wY,sys:()=>so,sysLog:()=>Zi,tagNamesAreEquivalent:()=>nO,takeWhile:()=>cn,targetOptionDeclaration:()=>dO,targetToLibMap:()=>ws,testFormatSettings:()=>mG,textChangeRangeIsUnchanged:()=>Hs,textChangeRangeNewSpan:()=>$s,textChanges:()=>Tue,textOrKeywordPart:()=>fY,textPart:()=>mY,textRangeContainsPositionInclusive:()=>Ps,textRangeContainsTextSpan:()=>Os,textRangeIntersectsWithTextSpan:()=>zs,textSpanContainsPosition:()=>Es,textSpanContainsTextRange:()=>Is,textSpanContainsTextSpan:()=>As,textSpanEnd:()=>Ds,textSpanIntersection:()=>qs,textSpanIntersectsWith:()=>Ms,textSpanIntersectsWithPosition:()=>Js,textSpanIntersectsWithTextSpan:()=>Rs,textSpanIsEmpty:()=>Fs,textSpanOverlap:()=>js,textSpanOverlapsWith:()=>Ls,textSpansEqual:()=>QQ,textToKeywordObj:()=>da,timestamp:()=>Un,toArray:()=>Ye,toBuilderFileEmit:()=>hW,toBuilderStateFileInfoForMultiEmit:()=>gW,toEditorSettings:()=>w8,toFileNameLowerCase:()=>_t,toPath:()=>qo,toProgramEmitPending:()=>yW,toSorted:()=>_e,tokenIsIdentifierOrKeyword:()=>_a,tokenIsIdentifierOrKeywordOrGreaterThan:()=>ua,tokenToString:()=>Da,trace:()=>Oj,tracing:()=>Hn,tracingEnabled:()=>Kn,transferSourceFileChildren:()=>MP,transform:()=>W8,transformClassFields:()=>Az,transformDeclarations:()=>pq,transformECMAScriptModule:()=>iq,transformES2015:()=>Zz,transformES2016:()=>Qz,transformES2017:()=>Rz,transformES2018:()=>Bz,transformES2019:()=>Jz,transformES2020:()=>zz,transformES2021:()=>qz,transformESDecorators:()=>jz,transformESNext:()=>Uz,transformGenerators:()=>eq,transformImpliedNodeFormatDependentModule:()=>oq,transformJsx:()=>Gz,transformLegacyDecorators:()=>Lz,transformModule:()=>tq,transformNamedEvaluation:()=>Cz,transformNodes:()=>Cq,transformSystemModule:()=>rq,transformTypeScript:()=>Pz,transpile:()=>L1,transpileDeclaration:()=>F1,transpileModule:()=>D1,transpileOptionValueCompilerOptions:()=>kO,tryAddToSet:()=>q,tryAndIgnoreErrors:()=>vZ,tryCast:()=>tt,tryDirectoryExists:()=>yZ,tryExtractTSExtension:()=>vb,tryFileExists:()=>hZ,tryGetClassExtendingExpressionWithTypeArguments:()=>eb,tryGetClassImplementingOrExtendingExpressionWithTypeArguments:()=>tb,tryGetDirectories:()=>mZ,tryGetExtensionFromPath:()=>ZS,tryGetImportFromModuleSpecifier:()=>vg,tryGetJSDocSatisfiesTypeNode:()=>YT,tryGetModuleNameFromFile:()=>gA,tryGetModuleSpecifierFromDeclaration:()=>hg,tryGetNativePerformanceHooks:()=>Jn,tryGetPropertyAccessOrIdentifierToString:()=>lb,tryGetPropertyNameOfBindingOrAssignmentElement:()=>xA,tryGetSourceMappingURL:()=>_J,tryGetTextOfPropertyName:()=>Ip,tryParseJson:()=>wb,tryParsePattern:()=>WS,tryParsePatterns:()=>HS,tryParseRawSourceMap:()=>dJ,tryReadDirectory:()=>gZ,tryReadFile:()=>tL,tryRemoveDirectoryPrefix:()=>Qk,tryRemoveExtension:()=>qS,tryRemovePrefix:()=>Qt,tryRemoveSuffix:()=>Bt,tscBuildOption:()=>wO,typeAcquisitionDeclarations:()=>FO,typeAliasNamePart:()=>gY,typeDirectiveIsEqualTo:()=>fd,typeKeywords:()=>bQ,typeParameterNamePart:()=>hY,typeToDisplayParts:()=>CY,unchangedPollThresholds:()=>$i,unchangedTextChangeRange:()=>Gs,unescapeLeadingUnderscores:()=>fc,unmangleScopedPackageName:()=>gM,unorderedRemoveItem:()=>Vt,unprefixedNodeCoreModules:()=>SC,unreachableCodeIsError:()=>Lk,unsetNodeChildren:()=>RP,unusedLabelIsError:()=>jk,unwrapInnermostStatementOfLabel:()=>jf,unwrapParenthesizedExpression:()=>vC,updateErrorForNoInputFiles:()=>ej,updateLanguageServiceSourceFile:()=>O8,updateMissingFilePathsWatch:()=>dU,updateResolutionField:()=>Vj,updateSharedExtendedConfigFileWatcher:()=>lU,updateSourceFile:()=>BI,updateWatchingWildcardDirectories:()=>pU,usingSingleLineStringWriter:()=>id,utf16EncodeAsString:()=>vs,validateLocaleAndSetLanguage:()=>cc,version:()=>s,versionMajorMinor:()=>a,visitArray:()=>KB,visitCommaListElements:()=>tJ,visitEachChild:()=>nJ,visitFunctionBody:()=>ZB,visitIterationBody:()=>eJ,visitLexicalEnvironment:()=>XB,visitNode:()=>$B,visitNodes:()=>HB,visitParameterList:()=>QB,walkUpBindingElementsAndPatterns:()=>tc,walkUpOuterExpressions:()=>lA,walkUpParenthesizedExpressions:()=>nh,walkUpParenthesizedTypes:()=>th,walkUpParenthesizedTypesAndGetParentAndChild:()=>rh,whitespaceOrMapCommentRegExp:()=>cJ,writeCommentRange:()=>bv,writeFile:()=>Yy,writeFileEnsuringDirectories:()=>ev,zipWith:()=>h});var ife,ofe=!0;function afe(e,t,n,r,i){let o=t?"DeprecationError: ":"DeprecationWarning: ";return o+=`'${e}' `,o+=r?`has been deprecated since v${r}`:"is deprecated",o+=t?" and can no longer be used.":n?` and will no longer be usable after v${n}.`:".",o+=i?` ${Jx(i,[e])}`:"",o}function sfe(e,t={}){const n="string"==typeof t.typeScriptVersion?new bn(t.typeScriptVersion):t.typeScriptVersion??ife??(ife=new bn(s)),r="string"==typeof t.errorAfter?new bn(t.errorAfter):t.errorAfter,i="string"==typeof t.warnAfter?new bn(t.warnAfter):t.warnAfter,o="string"==typeof t.since?new bn(t.since):t.since??i,a=t.error||r&&n.compareTo(r)>=0,c=!i||n.compareTo(i)>=0;return a?function(e,t,n,r){const i=afe(e,!0,t,n,r);return()=>{throw new TypeError(i)}}(e,r,o,t.message):c?function(e,t,n,r){let i=!1;return()=>{ofe&&!i&&(un.log.warn(afe(e,!1,t,n,r)),i=!0)}}(e,r,o,t.message):rt}function cfe(e,t,n,r){if(Object.defineProperty(s,"name",{...Object.getOwnPropertyDescriptor(s,"name"),value:e}),r)for(const n of Object.keys(r)){const a=+n;!isNaN(a)&&De(t,`${a}`)&&(t[a]=(i=t[a],function(e,t){return function(){return e(),t.apply(this,arguments)}}(sfe((null==(o={...r[a],name:e})?void 0:o.name)??un.getFunctionName(i),o),i)))}var i,o;const a=function(e,t){return n=>{for(let r=0;De(e,`${r}`)&&De(t,`${r}`);r++)if((0,t[r])(n))return r}}(t,n);return s;function s(...e){const n=a(e),r=void 0!==n?t[n]:void 0;if("function"==typeof r)return r(...e);throw new TypeError("Invalid arguments")}}function lfe(e){return{overload:t=>({bind:n=>({finish:()=>cfe(e,t,n),deprecate:r=>({finish:()=>cfe(e,t,n,r)})})})}}var _fe={};i(_fe,{ActionInvalidate:()=>AK,ActionPackageInstalled:()=>IK,ActionSet:()=>PK,ActionWatchTypingLocations:()=>MK,Arguments:()=>FK,AutoImportProviderProject:()=>lme,AuxiliaryProject:()=>sme,CharRangeSection:()=>ehe,CloseFileWatcherEvent:()=>Fme,CommandNames:()=>Dge,ConfigFileDiagEvent:()=>Sme,ConfiguredProject:()=>_me,ConfiguredProjectLoadKind:()=>Qme,CreateDirectoryWatcherEvent:()=>Dme,CreateFileWatcherEvent:()=>Nme,Errors:()=>yfe,EventBeginInstallTypes:()=>LK,EventEndInstallTypes:()=>jK,EventInitializationFailed:()=>RK,EventTypesRegistry:()=>OK,ExternalProject:()=>ume,GcTimer:()=>Ofe,InferredProject:()=>ame,LargeFileReferencedEvent:()=>kme,LineIndex:()=>ahe,LineLeaf:()=>che,LineNode:()=>she,LogLevel:()=>bfe,Msg:()=>kfe,OpenFileInfoTelemetryEvent:()=>wme,Project:()=>ome,ProjectInfoTelemetryEvent:()=>Cme,ProjectKind:()=>Yfe,ProjectLanguageServiceStateEvent:()=>Tme,ProjectLoadingFinishEvent:()=>xme,ProjectLoadingStartEvent:()=>bme,ProjectService:()=>hge,ProjectsUpdatedInBackgroundEvent:()=>vme,ScriptInfo:()=>Gfe,ScriptVersionCache:()=>ihe,Session:()=>$ge,TextStorage:()=>Hfe,ThrottledOperations:()=>Ife,TypingsInstallerAdapter:()=>_he,allFilesAreJsOrDts:()=>tme,allRootFilesAreJsOrDts:()=>eme,asNormalizedPath:()=>wfe,convertCompilerOptions:()=>Rme,convertFormatOptions:()=>jme,convertScriptKindName:()=>zme,convertTypeAcquisition:()=>Bme,convertUserPreferences:()=>qme,convertWatchOptions:()=>Mme,countEachFileTypes:()=>Zfe,createInstallTypingsRequest:()=>Sfe,createModuleSpecifierCache:()=>bge,createNormalizedPathMap:()=>Nfe,createPackageJsonCache:()=>xge,createSortedArray:()=>Afe,emptyArray:()=>xfe,findArgument:()=>JK,formatDiagnosticToProtocol:()=>Nge,formatMessage:()=>Fge,getBaseConfigFileName:()=>Lfe,getDetailWatchInfo:()=>oge,getLocationInNewDocument:()=>Qge,hasArgument:()=>BK,hasNoTypeScriptSource:()=>nme,indent:()=>UK,isBackgroundProject:()=>mme,isConfigFile:()=>yge,isConfiguredProject:()=>pme,isDynamicFileName:()=>Kfe,isExternalProject:()=>fme,isInferredProject:()=>dme,isInferredProjectName:()=>Dfe,isProjectDeferredClose:()=>gme,makeAutoImportProviderProjectName:()=>Efe,makeAuxiliaryProjectName:()=>Pfe,makeInferredProjectName:()=>Ffe,maxFileSize:()=>yme,maxProgramSizeForNonTsFiles:()=>hme,normalizedPathToPath:()=>Cfe,nowString:()=>zK,nullCancellationToken:()=>kge,nullTypingsInstaller:()=>$me,protocol:()=>jfe,scriptInfoIsContainedByBackgroundProject:()=>Xfe,scriptInfoIsContainedByDeferredClosedProject:()=>Qfe,stringifyIndented:()=>VK,toEvent:()=>Pge,toNormalizedPath:()=>Tfe,tryConvertScriptKindName:()=>Jme,typingsInstaller:()=>ufe,updateProjectIfDirty:()=>sge});var ufe={};i(ufe,{TypingsInstaller:()=>gfe,getNpmCommandForInstallation:()=>mfe,installNpmPackages:()=>ffe,typingsName:()=>hfe});var dfe={isEnabled:()=>!1,writeLine:rt};function pfe(e,t,n,r){try{const r=bR(t,jo(e,"index.d.ts"),{moduleResolution:2},n);return r.resolvedModule&&r.resolvedModule.resolvedFileName}catch(n){return void(r.isEnabled()&&r.writeLine(`Failed to resolve ${t} in folder '${e}': ${n.message}`))}}function ffe(e,t,n,r){let i=!1;for(let o=n.length;o>0;){const a=mfe(e,t,n,o);o=a.remaining,i=r(a.command)||i}return i}function mfe(e,t,n,r){const i=n.length-r;let o,a=r;for(;o=`${e} install --ignore-scripts ${(a===n.length?n:n.slice(i,i+a)).join(" ")} --save-dev --user-agent="typesInstaller/${t}"`,!(o.length<8e3);)a-=Math.floor(a/2);return{command:o,remaining:r-a}}var gfe=class{constructor(e,t,n,r,i,o=dfe){this.installTypingHost=e,this.globalCachePath=t,this.safeListPath=n,this.typesMapLocation=r,this.throttleLimit=i,this.log=o,this.packageNameToTypingLocation=new Map,this.missingTypingsSet=new Set,this.knownCachesSet=new Set,this.projectWatchers=new Map,this.pendingRunRequests=[],this.installRunCount=1,this.inFlightRequestCount=0,this.latestDistTag="latest",this.log.isEnabled()&&this.log.writeLine(`Global cache location '${t}', safe file path '${n}', types map path ${r}`),this.processCacheLocation(this.globalCachePath)}handleRequest(e){switch(e.kind){case"discover":this.install(e);break;case"closeProject":this.closeProject(e);break;case"typesRegistry":{const e={};this.typesRegistry.forEach(((t,n)=>{e[n]=t}));const t={kind:OK,typesRegistry:e};this.sendResponse(t);break}case"installPackage":this.installPackage(e);break;default:un.assertNever(e)}}closeProject(e){this.closeWatchers(e.projectName)}closeWatchers(e){this.log.isEnabled()&&this.log.writeLine(`Closing file watchers for project '${e}'`),this.projectWatchers.get(e)?(this.projectWatchers.delete(e),this.sendResponse({kind:MK,projectName:e,files:[]}),this.log.isEnabled()&&this.log.writeLine(`Closing file watchers for project '${e}' - done.`)):this.log.isEnabled()&&this.log.writeLine(`No watchers are registered for project '${e}'`)}install(e){this.log.isEnabled()&&this.log.writeLine(`Got install request${VK(e)}`),e.cachePath&&(this.log.isEnabled()&&this.log.writeLine(`Request specifies cache path '${e.cachePath}', loading cached information...`),this.processCacheLocation(e.cachePath)),void 0===this.safeList&&this.initializeSafeList();const t=DK.discoverTypings(this.installTypingHost,this.log.isEnabled()?e=>this.log.writeLine(e):void 0,e.fileNames,e.projectRootPath,this.safeList,this.packageNameToTypingLocation,e.typeAcquisition,e.unresolvedImports,this.typesRegistry,e.compilerOptions);this.watchFiles(e.projectName,t.filesToWatch),t.newTypingNames.length?this.installTypings(e,e.cachePath||this.globalCachePath,t.cachedTypingPaths,t.newTypingNames):(this.sendResponse(this.createSetTypings(e,t.cachedTypingPaths)),this.log.isEnabled()&&this.log.writeLine("No new typings were requested as a result of typings discovery"))}installPackage(e){const{fileName:t,packageName:n,projectName:r,projectRootPath:i,id:o}=e,a=aa(Do(t),(e=>{if(this.installTypingHost.fileExists(jo(e,"package.json")))return e}))||i;if(a)this.installWorker(-1,[n],a,(e=>{const t={kind:IK,projectName:r,id:o,success:e,message:e?`Package ${n} installed.`:`There was an error installing ${n}.`};this.sendResponse(t)}));else{const e={kind:IK,projectName:r,id:o,success:!1,message:"Could not determine a project root path."};this.sendResponse(e)}}initializeSafeList(){if(this.typesMapLocation){const e=DK.loadTypesMap(this.installTypingHost,this.typesMapLocation);if(e)return this.log.writeLine(`Loaded safelist from types map file '${this.typesMapLocation}'`),void(this.safeList=e);this.log.writeLine(`Failed to load safelist from types map file '${this.typesMapLocation}'`)}this.safeList=DK.loadSafeList(this.installTypingHost,this.safeListPath)}processCacheLocation(e){if(this.log.isEnabled()&&this.log.writeLine(`Processing cache location '${e}'`),this.knownCachesSet.has(e))return void(this.log.isEnabled()&&this.log.writeLine("Cache location was already processed..."));const t=jo(e,"package.json"),n=jo(e,"package-lock.json");if(this.log.isEnabled()&&this.log.writeLine(`Trying to find '${t}'...`),this.installTypingHost.fileExists(t)&&this.installTypingHost.fileExists(n)){const r=JSON.parse(this.installTypingHost.readFile(t)),i=JSON.parse(this.installTypingHost.readFile(n));if(this.log.isEnabled()&&(this.log.writeLine(`Loaded content of '${t}':${VK(r)}`),this.log.writeLine(`Loaded content of '${n}':${VK(i)}`)),r.devDependencies&&i.dependencies)for(const t in r.devDependencies){if(!De(i.dependencies,t))continue;const n=Fo(t);if(!n)continue;const r=pfe(e,n,this.installTypingHost,this.log);if(!r){this.missingTypingsSet.add(n);continue}const o=this.packageNameToTypingLocation.get(n);if(o){if(o.typingLocation===r)continue;this.log.isEnabled()&&this.log.writeLine(`New typing for package ${n} from '${r}' conflicts with existing typing file '${o}'`)}this.log.isEnabled()&&this.log.writeLine(`Adding entry into typings cache: '${n}' => '${r}'`);const a=Fe(i.dependencies,t),s=a&&a.version;if(!s)continue;const c={typingLocation:r,version:new bn(s)};this.packageNameToTypingLocation.set(n,c)}}this.log.isEnabled()&&this.log.writeLine(`Finished processing cache location '${e}'`),this.knownCachesSet.add(e)}filterTypings(e){return B(e,(e=>{const t=fM(e);if(this.missingTypingsSet.has(t))return void(this.log.isEnabled()&&this.log.writeLine(`'${e}':: '${t}' is in missingTypingsSet - skipping...`));const n=DK.validatePackageName(e);if(n!==DK.NameValidationResult.Ok)return this.missingTypingsSet.add(t),void(this.log.isEnabled()&&this.log.writeLine(DK.renderPackageNameValidationFailure(n,e)));if(this.typesRegistry.has(t)){if(!this.packageNameToTypingLocation.get(t)||!DK.isTypingUpToDate(this.packageNameToTypingLocation.get(t),this.typesRegistry.get(t)))return t;this.log.isEnabled()&&this.log.writeLine(`'${e}':: '${t}' already has an up-to-date typing - skipping...`)}else this.log.isEnabled()&&this.log.writeLine(`'${e}':: Entry for package '${t}' does not exist in local types registry - skipping...`)}))}ensurePackageDirectoryExists(e){const t=jo(e,"package.json");this.log.isEnabled()&&this.log.writeLine(`Npm config file: ${t}`),this.installTypingHost.fileExists(t)||(this.log.isEnabled()&&this.log.writeLine(`Npm config file: '${t}' is missing, creating new one...`),this.ensureDirectoryExists(e,this.installTypingHost),this.installTypingHost.writeFile(t,'{ "private": true }'))}installTypings(e,t,n,r){this.log.isEnabled()&&this.log.writeLine(`Installing typings ${JSON.stringify(r)}`);const i=this.filterTypings(r);if(0===i.length)return this.log.isEnabled()&&this.log.writeLine("All typings are known to be missing or invalid - no need to install more typings"),void this.sendResponse(this.createSetTypings(e,n));this.ensurePackageDirectoryExists(t);const o=this.installRunCount;this.installRunCount++,this.sendResponse({kind:LK,eventId:o,typingsInstallerVersion:s,projectName:e.projectName});const c=i.map(hfe);this.installTypingsAsync(o,c,t,(r=>{try{if(!r){this.log.isEnabled()&&this.log.writeLine(`install request failed, marking packages as missing to prevent repeated requests: ${JSON.stringify(i)}`);for(const e of i)this.missingTypingsSet.add(e);return}this.log.isEnabled()&&this.log.writeLine(`Installed typings ${JSON.stringify(c)}`);const o=[];for(const e of i){const n=pfe(t,e,this.installTypingHost,this.log);if(!n){this.missingTypingsSet.add(e);continue}const r=this.typesRegistry.get(e),i={typingLocation:n,version:new bn(r[`ts${a}`]||r[this.latestDistTag])};this.packageNameToTypingLocation.set(e,i),o.push(n)}this.log.isEnabled()&&this.log.writeLine(`Installed typing files ${JSON.stringify(o)}`),this.sendResponse(this.createSetTypings(e,n.concat(o)))}finally{const t={kind:jK,eventId:o,projectName:e.projectName,packagesToInstall:c,installSuccess:r,typingsInstallerVersion:s};this.sendResponse(t)}}))}ensureDirectoryExists(e,t){const n=Do(e);t.directoryExists(n)||this.ensureDirectoryExists(n,t),t.directoryExists(e)||t.createDirectory(e)}watchFiles(e,t){if(!t.length)return void this.closeWatchers(e);const n=this.projectWatchers.get(e),r=new Set(t);!n||nd(r,(e=>!n.has(e)))||nd(n,(e=>!r.has(e)))?(this.projectWatchers.set(e,r),this.sendResponse({kind:MK,projectName:e,files:t})):this.sendResponse({kind:MK,projectName:e,files:void 0})}createSetTypings(e,t){return{projectName:e.projectName,typeAcquisition:e.typeAcquisition,compilerOptions:e.compilerOptions,typings:t,unresolvedImports:e.unresolvedImports,kind:PK}}installTypingsAsync(e,t,n,r){this.pendingRunRequests.unshift({requestId:e,packageNames:t,cwd:n,onRequestCompleted:r}),this.executeWithThrottling()}executeWithThrottling(){for(;this.inFlightRequestCount{this.inFlightRequestCount--,e.onRequestCompleted(t),this.executeWithThrottling()}))}}};function hfe(e){return`@types/${e}@ts${a}`}var yfe,vfe,bfe=(e=>(e[e.terse=0]="terse",e[e.normal=1]="normal",e[e.requestTime=2]="requestTime",e[e.verbose=3]="verbose",e))(bfe||{}),xfe=[],kfe=(e=>(e.Err="Err",e.Info="Info",e.Perf="Perf",e))(kfe||{});function Sfe(e,t,n,r){return{projectName:e.getProjectName(),fileNames:e.getFileNames(!0,!0).concat(e.getExcludedFiles()),compilerOptions:e.getCompilationSettings(),typeAcquisition:t,unresolvedImports:n,projectRootPath:e.getCurrentDirectory(),cachePath:r,kind:"discover"}}function Tfe(e){return Jo(e)}function Cfe(e,t,n){return n(go(e)?e:Bo(e,t))}function wfe(e){return e}function Nfe(){const e=new Map;return{get:t=>e.get(t),set(t,n){e.set(t,n)},contains:t=>e.has(t),remove(t){e.delete(t)}}}function Dfe(e){return/dev\/null\/inferredProject\d+\*/.test(e)}function Ffe(e){return`/dev/null/inferredProject${e}*`}function Efe(e){return`/dev/null/autoImportProviderProject${e}*`}function Pfe(e){return`/dev/null/auxiliaryProject${e}*`}function Afe(){return[]}(vfe=yfe||(yfe={})).ThrowNoProject=function(){throw new Error("No Project.")},vfe.ThrowProjectLanguageServiceDisabled=function(){throw new Error("The project's language service is disabled.")},vfe.ThrowProjectDoesNotContainDocument=function(e,t){throw new Error(`Project '${t.getProjectName()}' does not contain document '${e}'`)};var Ife=class e{constructor(e,t){this.host=e,this.pendingTimeouts=new Map,this.logger=t.hasLevel(3)?t:void 0}schedule(t,n,r){const i=this.pendingTimeouts.get(t);i&&this.host.clearTimeout(i),this.pendingTimeouts.set(t,this.host.setTimeout(e.run,n,t,this,r)),this.logger&&this.logger.info(`Scheduled: ${t}${i?", Cancelled earlier one":""}`)}cancel(e){const t=this.pendingTimeouts.get(e);return!!t&&(this.host.clearTimeout(t),this.pendingTimeouts.delete(e))}static run(e,t,n){t.pendingTimeouts.delete(e),t.logger&&t.logger.info(`Running: ${e}`),n()}},Ofe=class e{constructor(e,t,n){this.host=e,this.delay=t,this.logger=n}scheduleCollect(){this.host.gc&&void 0===this.timerId&&(this.timerId=this.host.setTimeout(e.run,this.delay,this))}static run(e){e.timerId=void 0;const t=e.logger.hasLevel(2),n=t&&e.host.getMemoryUsage();if(e.host.gc(),t){const t=e.host.getMemoryUsage();e.logger.perftrc(`GC::before ${n}, after ${t}`)}}};function Lfe(e){const t=Fo(e);return"tsconfig.json"===t||"jsconfig.json"===t?t:void 0}var jfe={};i(jfe,{ClassificationType:()=>CG,CommandTypes:()=>Rfe,CompletionTriggerKind:()=>lG,IndentStyle:()=>zfe,JsxEmit:()=>qfe,ModuleKind:()=>Ufe,ModuleResolutionKind:()=>Vfe,NewLineKind:()=>Wfe,OrganizeImportsMode:()=>cG,PollingWatchKind:()=>Jfe,ScriptTarget:()=>$fe,SemicolonPreference:()=>pG,WatchDirectoryKind:()=>Bfe,WatchFileKind:()=>Mfe});var Rfe=(e=>(e.JsxClosingTag="jsxClosingTag",e.LinkedEditingRange="linkedEditingRange",e.Brace="brace",e.BraceFull="brace-full",e.BraceCompletion="braceCompletion",e.GetSpanOfEnclosingComment="getSpanOfEnclosingComment",e.Change="change",e.Close="close",e.Completions="completions",e.CompletionInfo="completionInfo",e.CompletionsFull="completions-full",e.CompletionDetails="completionEntryDetails",e.CompletionDetailsFull="completionEntryDetails-full",e.CompileOnSaveAffectedFileList="compileOnSaveAffectedFileList",e.CompileOnSaveEmitFile="compileOnSaveEmitFile",e.Configure="configure",e.Definition="definition",e.DefinitionFull="definition-full",e.DefinitionAndBoundSpan="definitionAndBoundSpan",e.DefinitionAndBoundSpanFull="definitionAndBoundSpan-full",e.Implementation="implementation",e.ImplementationFull="implementation-full",e.EmitOutput="emit-output",e.Exit="exit",e.FileReferences="fileReferences",e.FileReferencesFull="fileReferences-full",e.Format="format",e.Formatonkey="formatonkey",e.FormatFull="format-full",e.FormatonkeyFull="formatonkey-full",e.FormatRangeFull="formatRange-full",e.Geterr="geterr",e.GeterrForProject="geterrForProject",e.SemanticDiagnosticsSync="semanticDiagnosticsSync",e.SyntacticDiagnosticsSync="syntacticDiagnosticsSync",e.SuggestionDiagnosticsSync="suggestionDiagnosticsSync",e.NavBar="navbar",e.NavBarFull="navbar-full",e.Navto="navto",e.NavtoFull="navto-full",e.NavTree="navtree",e.NavTreeFull="navtree-full",e.DocumentHighlights="documentHighlights",e.DocumentHighlightsFull="documentHighlights-full",e.Open="open",e.Quickinfo="quickinfo",e.QuickinfoFull="quickinfo-full",e.References="references",e.ReferencesFull="references-full",e.Reload="reload",e.Rename="rename",e.RenameInfoFull="rename-full",e.RenameLocationsFull="renameLocations-full",e.Saveto="saveto",e.SignatureHelp="signatureHelp",e.SignatureHelpFull="signatureHelp-full",e.FindSourceDefinition="findSourceDefinition",e.Status="status",e.TypeDefinition="typeDefinition",e.ProjectInfo="projectInfo",e.ReloadProjects="reloadProjects",e.Unknown="unknown",e.OpenExternalProject="openExternalProject",e.OpenExternalProjects="openExternalProjects",e.CloseExternalProject="closeExternalProject",e.SynchronizeProjectList="synchronizeProjectList",e.ApplyChangedToOpenFiles="applyChangedToOpenFiles",e.UpdateOpen="updateOpen",e.EncodedSyntacticClassificationsFull="encodedSyntacticClassifications-full",e.EncodedSemanticClassificationsFull="encodedSemanticClassifications-full",e.Cleanup="cleanup",e.GetOutliningSpans="getOutliningSpans",e.GetOutliningSpansFull="outliningSpans",e.TodoComments="todoComments",e.Indentation="indentation",e.DocCommentTemplate="docCommentTemplate",e.CompilerOptionsDiagnosticsFull="compilerOptionsDiagnostics-full",e.NameOrDottedNameSpan="nameOrDottedNameSpan",e.BreakpointStatement="breakpointStatement",e.CompilerOptionsForInferredProjects="compilerOptionsForInferredProjects",e.GetCodeFixes="getCodeFixes",e.GetCodeFixesFull="getCodeFixes-full",e.GetCombinedCodeFix="getCombinedCodeFix",e.GetCombinedCodeFixFull="getCombinedCodeFix-full",e.ApplyCodeActionCommand="applyCodeActionCommand",e.GetSupportedCodeFixes="getSupportedCodeFixes",e.GetApplicableRefactors="getApplicableRefactors",e.GetEditsForRefactor="getEditsForRefactor",e.GetMoveToRefactoringFileSuggestions="getMoveToRefactoringFileSuggestions",e.PreparePasteEdits="preparePasteEdits",e.GetPasteEdits="getPasteEdits",e.GetEditsForRefactorFull="getEditsForRefactor-full",e.OrganizeImports="organizeImports",e.OrganizeImportsFull="organizeImports-full",e.GetEditsForFileRename="getEditsForFileRename",e.GetEditsForFileRenameFull="getEditsForFileRename-full",e.ConfigurePlugin="configurePlugin",e.SelectionRange="selectionRange",e.SelectionRangeFull="selectionRange-full",e.ToggleLineComment="toggleLineComment",e.ToggleLineCommentFull="toggleLineComment-full",e.ToggleMultilineComment="toggleMultilineComment",e.ToggleMultilineCommentFull="toggleMultilineComment-full",e.CommentSelection="commentSelection",e.CommentSelectionFull="commentSelection-full",e.UncommentSelection="uncommentSelection",e.UncommentSelectionFull="uncommentSelection-full",e.PrepareCallHierarchy="prepareCallHierarchy",e.ProvideCallHierarchyIncomingCalls="provideCallHierarchyIncomingCalls",e.ProvideCallHierarchyOutgoingCalls="provideCallHierarchyOutgoingCalls",e.ProvideInlayHints="provideInlayHints",e.WatchChange="watchChange",e.MapCode="mapCode",e.CopilotRelated="copilotRelated",e))(Rfe||{}),Mfe=(e=>(e.FixedPollingInterval="FixedPollingInterval",e.PriorityPollingInterval="PriorityPollingInterval",e.DynamicPriorityPolling="DynamicPriorityPolling",e.FixedChunkSizePolling="FixedChunkSizePolling",e.UseFsEvents="UseFsEvents",e.UseFsEventsOnParentDirectory="UseFsEventsOnParentDirectory",e))(Mfe||{}),Bfe=(e=>(e.UseFsEvents="UseFsEvents",e.FixedPollingInterval="FixedPollingInterval",e.DynamicPriorityPolling="DynamicPriorityPolling",e.FixedChunkSizePolling="FixedChunkSizePolling",e))(Bfe||{}),Jfe=(e=>(e.FixedInterval="FixedInterval",e.PriorityInterval="PriorityInterval",e.DynamicPriority="DynamicPriority",e.FixedChunkSize="FixedChunkSize",e))(Jfe||{}),zfe=(e=>(e.None="None",e.Block="Block",e.Smart="Smart",e))(zfe||{}),qfe=(e=>(e.None="none",e.Preserve="preserve",e.ReactNative="react-native",e.React="react",e.ReactJSX="react-jsx",e.ReactJSXDev="react-jsxdev",e))(qfe||{}),Ufe=(e=>(e.None="none",e.CommonJS="commonjs",e.AMD="amd",e.UMD="umd",e.System="system",e.ES6="es6",e.ES2015="es2015",e.ES2020="es2020",e.ES2022="es2022",e.ESNext="esnext",e.Node16="node16",e.NodeNext="nodenext",e.Preserve="preserve",e))(Ufe||{}),Vfe=(e=>(e.Classic="classic",e.Node="node",e.NodeJs="node",e.Node10="node10",e.Node16="node16",e.NodeNext="nodenext",e.Bundler="bundler",e))(Vfe||{}),Wfe=(e=>(e.Crlf="Crlf",e.Lf="Lf",e))(Wfe||{}),$fe=(e=>(e.ES3="es3",e.ES5="es5",e.ES6="es6",e.ES2015="es2015",e.ES2016="es2016",e.ES2017="es2017",e.ES2018="es2018",e.ES2019="es2019",e.ES2020="es2020",e.ES2021="es2021",e.ES2022="es2022",e.ES2023="es2023",e.ES2024="es2024",e.ESNext="esnext",e.JSON="json",e.Latest="esnext",e))($fe||{}),Hfe=class{constructor(e,t,n){this.host=e,this.info=t,this.isOpen=!1,this.ownFileText=!1,this.pendingReloadFromDisk=!1,this.version=n||0}getVersion(){return this.svc?`SVC-${this.version}-${this.svc.getSnapshotVersion()}`:`Text-${this.version}`}hasScriptVersionCache_TestOnly(){return void 0!==this.svc}resetSourceMapInfo(){this.info.sourceFileLike=void 0,this.info.closeSourceMapFileWatcher(),this.info.sourceMapFilePath=void 0,this.info.declarationInfoPath=void 0,this.info.sourceInfos=void 0,this.info.documentPositionMapper=void 0}useText(e){this.svc=void 0,this.text=e,this.textSnapshot=void 0,this.lineMap=void 0,this.fileSize=void 0,this.resetSourceMapInfo(),this.version++}edit(e,t,n){this.switchToScriptVersionCache().edit(e,t-e,n),this.ownFileText=!1,this.text=void 0,this.textSnapshot=void 0,this.lineMap=void 0,this.fileSize=void 0,this.resetSourceMapInfo()}reload(e){return un.assert(void 0!==e),this.pendingReloadFromDisk=!1,!this.text&&this.svc&&(this.text=CQ(this.svc.getSnapshot())),this.text!==e&&(this.useText(e),this.ownFileText=!1,!0)}reloadWithFileText(e){const{text:t,fileSize:n}=e||!this.info.isDynamicOrHasMixedContent()?this.getFileTextAndSize(e):{text:"",fileSize:void 0},r=this.reload(t);return this.fileSize=n,this.ownFileText=!e||e===this.info.fileName,this.ownFileText&&this.info.mTime===zi.getTime()&&(this.info.mTime=(this.host.getModifiedTime(this.info.fileName)||zi).getTime()),r}scheduleReloadIfNeeded(){return!this.pendingReloadFromDisk&&!this.ownFileText&&(this.pendingReloadFromDisk=!0)}delayReloadFromFileIntoText(){this.pendingReloadFromDisk=!0}getTelemetryFileSize(){return this.fileSize?this.fileSize:this.text?this.text.length:this.svc?this.svc.getSnapshot().getLength():this.getSnapshot().getLength()}getSnapshot(){var e;return(null==(e=this.tryUseScriptVersionCache())?void 0:e.getSnapshot())||(this.textSnapshot??(this.textSnapshot=XK.fromString(un.checkDefined(this.text))))}getAbsolutePositionAndLineText(e){const t=this.tryUseScriptVersionCache();if(t)return t.getAbsolutePositionAndLineText(e);const n=this.getLineMap();return e<=n.length?{absolutePosition:n[e-1],lineText:this.text.substring(n[e-1],n[e])}:{absolutePosition:this.text.length,lineText:void 0}}lineToTextSpan(e){const t=this.tryUseScriptVersionCache();if(t)return t.lineToTextSpan(e);const n=this.getLineMap();return Ws(n[e],e+1void 0===t?t=this.host.readFile(n)||"":t;if(!IS(this.info.fileName)){const e=this.host.getFileSize?this.host.getFileSize(n):r().length;if(e>yme)return un.assert(!!this.info.containingProjects.length),this.info.containingProjects[0].projectService.logger.info(`Skipped loading contents of large file ${n} for info ${this.info.fileName}: fileSize: ${e}`),this.info.containingProjects[0].projectService.sendLargeFileReferencedEvent(n,e),{text:"",fileSize:e}}return{text:r()}}switchToScriptVersionCache(){return this.svc&&!this.pendingReloadFromDisk||(this.svc=ihe.fromString(this.getOrLoadText()),this.textSnapshot=void 0,this.version++),this.svc}tryUseScriptVersionCache(){return this.svc&&!this.pendingReloadFromDisk||this.getOrLoadText(),this.isOpen?(this.svc||this.textSnapshot||(this.svc=ihe.fromString(un.checkDefined(this.text)),this.textSnapshot=void 0),this.svc):this.svc}getOrLoadText(){return(void 0===this.text||this.pendingReloadFromDisk)&&(un.assert(!this.svc||this.pendingReloadFromDisk,"ScriptVersionCache should not be set when reloading from disk"),this.reloadWithFileText()),this.text}getLineMap(){return un.assert(!this.svc,"ScriptVersionCache should not be set"),this.lineMap||(this.lineMap=Ia(un.checkDefined(this.text)))}getLineInfo(){const e=this.tryUseScriptVersionCache();if(e)return{getLineCount:()=>e.getLineCount(),getLineText:t=>e.getAbsolutePositionAndLineText(t+1).lineText};const t=this.getLineMap();return lJ(this.text,t)}};function Kfe(e){return"^"===e[0]||(e.includes("walkThroughSnippet:/")||e.includes("untitled:/"))&&"^"===Fo(e)[0]||e.includes(":^")&&!e.includes(lo)}var Gfe=class{constructor(e,t,n,r,i,o){this.host=e,this.fileName=t,this.scriptKind=n,this.hasMixedContent=r,this.path=i,this.containingProjects=[],this.isDynamic=Kfe(t),this.textStorage=new Hfe(e,this,o),(r||this.isDynamic)&&(this.realpath=this.path),this.scriptKind=n||vS(t)}isDynamicOrHasMixedContent(){return this.hasMixedContent||this.isDynamic}isScriptOpen(){return this.textStorage.isOpen}open(e){this.textStorage.isOpen=!0,void 0!==e&&this.textStorage.reload(e)&&this.markContainingProjectsAsDirty()}close(e=!0){this.textStorage.isOpen=!1,e&&this.textStorage.scheduleReloadIfNeeded()&&this.markContainingProjectsAsDirty()}getSnapshot(){return this.textStorage.getSnapshot()}ensureRealPath(){if(void 0===this.realpath&&(this.realpath=this.path,this.host.realpath)){un.assert(!!this.containingProjects.length);const e=this.containingProjects[0],t=this.host.realpath(this.path);t&&(this.realpath=e.toPath(t),this.realpath!==this.path&&e.projectService.realpathToScriptInfos.add(this.realpath,this))}}getRealpathIfDifferent(){return this.realpath&&this.realpath!==this.path?this.realpath:void 0}isSymlink(){return this.realpath&&this.realpath!==this.path}getFormatCodeSettings(){return this.formatSettings}getPreferences(){return this.preferences}attachToProject(e){const t=!this.isAttached(e);return t&&(this.containingProjects.push(e),e.getCompilerOptions().preserveSymlinks||this.ensureRealPath(),e.onFileAddedOrRemoved(this.isSymlink())),t}isAttached(e){switch(this.containingProjects.length){case 0:return!1;case 1:return this.containingProjects[0]===e;case 2:return this.containingProjects[0]===e||this.containingProjects[1]===e;default:return T(this.containingProjects,e)}}detachFromProject(e){switch(this.containingProjects.length){case 0:return;case 1:this.containingProjects[0]===e&&(e.onFileAddedOrRemoved(this.isSymlink()),this.containingProjects.pop());break;case 2:this.containingProjects[0]===e?(e.onFileAddedOrRemoved(this.isSymlink()),this.containingProjects[0]=this.containingProjects.pop()):this.containingProjects[1]===e&&(e.onFileAddedOrRemoved(this.isSymlink()),this.containingProjects.pop());break;default:zt(this.containingProjects,e)&&e.onFileAddedOrRemoved(this.isSymlink())}}detachAllProjects(){for(const e of this.containingProjects){pme(e)&&e.getCachedDirectoryStructureHost().addOrDeleteFile(this.fileName,this.path,2);const t=e.getRootFilesMap().get(this.path);e.removeFile(this,!1,!1),e.onFileAddedOrRemoved(this.isSymlink()),t&&!dme(e)&&e.addMissingFileRoot(t.fileName)}F(this.containingProjects)}getDefaultProject(){switch(this.containingProjects.length){case 0:return yfe.ThrowNoProject();case 1:return gme(this.containingProjects[0])||mme(this.containingProjects[0])?yfe.ThrowNoProject():this.containingProjects[0];default:let e,t,n,r;for(let i=0;i!e.isOrphan()))}lineToTextSpan(e){return this.textStorage.lineToTextSpan(e)}lineOffsetToPosition(e,t,n){return this.textStorage.lineOffsetToPosition(e,t,n)}positionToLineOffset(e){!function(e){un.assert("number"==typeof e,`Expected position ${e} to be a number.`),un.assert(e>=0,"Expected position to be non-negative.")}(e);const t=this.textStorage.positionToLineOffset(e);return function(e){un.assert("number"==typeof e.line,`Expected line ${e.line} to be a number.`),un.assert("number"==typeof e.offset,`Expected offset ${e.offset} to be a number.`),un.assert(e.line>0,"Expected line to be non-"+(0===e.line?"zero":"negative")),un.assert(e.offset>0,"Expected offset to be non-"+(0===e.offset?"zero":"negative"))}(t),t}isJavaScript(){return 1===this.scriptKind||2===this.scriptKind}closeSourceMapFileWatcher(){this.sourceMapFilePath&&!Ze(this.sourceMapFilePath)&&(vU(this.sourceMapFilePath),this.sourceMapFilePath=void 0)}};function Xfe(e){return $(e.containingProjects,mme)}function Qfe(e){return $(e.containingProjects,gme)}var Yfe=(e=>(e[e.Inferred=0]="Inferred",e[e.Configured=1]="Configured",e[e.External=2]="External",e[e.AutoImportProvider=3]="AutoImportProvider",e[e.Auxiliary=4]="Auxiliary",e))(Yfe||{});function Zfe(e,t=!1){const n={js:0,jsSize:0,jsx:0,jsxSize:0,ts:0,tsSize:0,tsx:0,tsxSize:0,dts:0,dtsSize:0,deferred:0,deferredSize:0};for(const r of e){const e=t?r.textStorage.getTelemetryFileSize():0;switch(r.scriptKind){case 1:n.js+=1,n.jsSize+=e;break;case 2:n.jsx+=1,n.jsxSize+=e;break;case 3:$I(r.fileName)?(n.dts+=1,n.dtsSize+=e):(n.ts+=1,n.tsSize+=e);break;case 4:n.tsx+=1,n.tsxSize+=e;break;case 7:n.deferred+=1,n.deferredSize+=e}}return n}function eme(e){const t=Zfe(e.getRootScriptInfos());return 0===t.ts&&0===t.tsx}function tme(e){const t=Zfe(e.getScriptInfos());return 0===t.ts&&0===t.tsx}function nme(e){return!e.some((e=>ko(e,".ts")&&!$I(e)||ko(e,".tsx")))}function rme(e){return void 0!==e.generatedFilePath}function ime(e,t){if(e===t)return!0;if(0===(e||xfe).length&&0===(t||xfe).length)return!0;const n=new Map;let r=0;for(const t of e)!0!==n.get(t)&&(n.set(t,!0),r++);for(const e of t){const t=n.get(e);if(void 0===t)return!1;!0===t&&(n.set(e,!1),r--)}return 0===r}var ome=class e{constructor(e,t,n,r,i,o,a,s,c,l){switch(this.projectKind=t,this.projectService=n,this.compilerOptions=o,this.compileOnSaveEnabled=a,this.watchOptions=s,this.rootFilesMap=new Map,this.plugins=[],this.cachedUnresolvedImportsPerFile=new Map,this.hasAddedorRemovedFiles=!1,this.hasAddedOrRemovedSymlinks=!1,this.lastReportedVersion=0,this.projectProgramVersion=0,this.projectStateVersion=0,this.initialLoadPending=!1,this.dirty=!1,this.typingFiles=xfe,this.moduleSpecifierCache=bge(this),this.createHash=We(this.projectService.host,this.projectService.host.createHash),this.globalCacheResolutionModuleName=DK.nonRelativeModuleNameForTypingCache,this.updateFromProjectInProgress=!1,n.logger.info(`Creating ${Yfe[t]}Project: ${e}, currentDirectory: ${l}`),this.projectName=e,this.directoryStructureHost=c,this.currentDirectory=this.projectService.getNormalizedAbsolutePath(l),this.getCanonicalFileName=this.projectService.toCanonicalFileName,this.jsDocParsingMode=this.projectService.jsDocParsingMode,this.cancellationToken=new R8(this.projectService.cancellationToken,this.projectService.throttleWaitMilliseconds),this.compilerOptions?(r||Pk(this.compilerOptions)||this.projectService.hasDeferredExtension())&&(this.compilerOptions.allowNonTsExtensions=!0):(this.compilerOptions={target:1,jsx:1},this.compilerOptions.allowNonTsExtensions=!0,this.compilerOptions.allowJs=!0),n.serverMode){case 0:this.languageServiceEnabled=!0;break;case 1:this.languageServiceEnabled=!0,this.compilerOptions.noResolve=!0,this.compilerOptions.types=[];break;case 2:this.languageServiceEnabled=!1,this.compilerOptions.noResolve=!0,this.compilerOptions.types=[];break;default:un.assertNever(n.serverMode)}this.setInternalCompilerOptionsForEmittingJsFiles();const _=this.projectService.host;this.projectService.logger.loggingEnabled()?this.trace=e=>this.writeLog(e):_.trace&&(this.trace=e=>_.trace(e)),this.realpath=We(_,_.realpath),this.preferNonRecursiveWatch=this.projectService.canUseWatchEvents||_.preferNonRecursiveWatch,this.resolutionCache=zW(this,this.currentDirectory,!0),this.languageService=J8(this,this.projectService.documentRegistry,this.projectService.serverMode),i&&this.disableLanguageService(i),this.markAsDirty(),mme(this)||(this.projectService.pendingEnsureProjectForOpenFiles=!0),this.projectService.onProjectCreation(this)}getResolvedProjectReferenceToRedirect(e){}isNonTsProject(){return sge(this),tme(this)}isJsOnlyProject(){return sge(this),function(e){const t=Zfe(e.getScriptInfos());return t.js>0&&0===t.ts&&0===t.tsx}(this)}static resolveModule(t,n,r,i){return e.importServicePluginSync({name:t},[n],r,i).resolvedModule}static importServicePluginSync(e,t,n,r){let i,o;un.assertIsDefined(n.require);for(const a of t){const t=Oo(n.resolvePath(jo(a,"node_modules")));r(`Loading ${e.name} from ${a} (resolved to ${t})`);const s=n.require(t,e.name);if(!s.error){o=s.module;break}const c=s.error.stack||s.error.message||JSON.stringify(s.error);(i??(i=[])).push(`Failed to load module '${e.name}' from ${t}: ${c}`)}return{pluginConfigEntry:e,resolvedModule:o,errorLogs:i}}static async importServicePluginAsync(e,t,n,r){let i,o;un.assertIsDefined(n.importPlugin);for(const a of t){const t=jo(a,"node_modules");let s;r(`Dynamically importing ${e.name} from ${a} (resolved to ${t})`);try{s=await n.importPlugin(t,e.name)}catch(e){s={module:void 0,error:e}}if(!s.error){o=s.module;break}const c=s.error.stack||s.error.message||JSON.stringify(s.error);(i??(i=[])).push(`Failed to dynamically import module '${e.name}' from ${t}: ${c}`)}return{pluginConfigEntry:e,resolvedModule:o,errorLogs:i}}isKnownTypesPackageName(e){return this.projectService.typingsInstaller.isKnownTypesPackageName(e)}installPackage(e){return this.projectService.typingsInstaller.installPackage({...e,projectName:this.projectName,projectRootPath:this.toPath(this.currentDirectory)})}getGlobalTypingsCacheLocation(){return this.getTypeAcquisition().enable?this.projectService.typingsInstaller.globalTypingsCacheLocation:void 0}getSymlinkCache(){return this.symlinks||(this.symlinks=Gk(this.getCurrentDirectory(),this.getCanonicalFileName)),this.program&&!this.symlinks.hasProcessedResolutions()&&this.symlinks.setSymlinksFromResolutions(this.program.forEachResolvedModule,this.program.forEachResolvedTypeReferenceDirective,this.program.getAutomaticTypeDirectiveResolutions()),this.symlinks}getCompilationSettings(){return this.compilerOptions}getCompilerOptions(){return this.getCompilationSettings()}getNewLine(){return this.projectService.host.newLine}getProjectVersion(){return this.projectStateVersion.toString()}getProjectReferences(){}getScriptFileNames(){if(!this.rootFilesMap.size)return l;let e;return this.rootFilesMap.forEach((t=>{(this.languageServiceEnabled||t.info&&t.info.isScriptOpen())&&(e||(e=[])).push(t.fileName)})),se(e,this.typingFiles)||l}getOrCreateScriptInfoAndAttachToProject(e){const t=this.projectService.getOrCreateScriptInfoNotOpenedByClient(e,this.currentDirectory,this.directoryStructureHost,!1);if(t){const e=this.rootFilesMap.get(t.path);e&&e.info!==t&&(e.info=t),t.attachToProject(this)}return t}getScriptKind(e){const t=this.projectService.getScriptInfoForPath(this.toPath(e));return t&&t.scriptKind}getScriptVersion(e){const t=this.projectService.getOrCreateScriptInfoNotOpenedByClient(e,this.currentDirectory,this.directoryStructureHost,!1);return t&&t.getLatestVersion()}getScriptSnapshot(e){const t=this.getOrCreateScriptInfoAndAttachToProject(e);if(t)return t.getSnapshot()}getCancellationToken(){return this.cancellationToken}getCurrentDirectory(){return this.currentDirectory}getDefaultLibFileName(){return jo(Do(Jo(this.projectService.getExecutingFilePath())),Ns(this.compilerOptions))}useCaseSensitiveFileNames(){return this.projectService.host.useCaseSensitiveFileNames}readDirectory(e,t,n,r,i){return this.directoryStructureHost.readDirectory(e,t,n,r,i)}readFile(e){return this.projectService.host.readFile(e)}writeFile(e,t){return this.projectService.host.writeFile(e,t)}fileExists(e){const t=this.toPath(e);return!!this.projectService.getScriptInfoForPath(t)||!this.isWatchedMissingFile(t)&&this.directoryStructureHost.fileExists(e)}resolveModuleNameLiterals(e,t,n,r,i,o){return this.resolutionCache.resolveModuleNameLiterals(e,t,n,r,i,o)}getModuleResolutionCache(){return this.resolutionCache.getModuleResolutionCache()}resolveTypeReferenceDirectiveReferences(e,t,n,r,i,o){return this.resolutionCache.resolveTypeReferenceDirectiveReferences(e,t,n,r,i,o)}resolveLibrary(e,t,n,r){return this.resolutionCache.resolveLibrary(e,t,n,r)}directoryExists(e){return this.directoryStructureHost.directoryExists(e)}getDirectories(e){return this.directoryStructureHost.getDirectories(e)}getCachedDirectoryStructureHost(){}toPath(e){return qo(e,this.currentDirectory,this.projectService.toCanonicalFileName)}watchDirectoryOfFailedLookupLocation(e,t,n){return this.projectService.watchFactory.watchDirectory(e,t,n,this.projectService.getWatchOptions(this),p$.FailedLookupLocations,this)}watchAffectingFileLocation(e,t){return this.projectService.watchFactory.watchFile(e,t,2e3,this.projectService.getWatchOptions(this),p$.AffectingFileLocation,this)}clearInvalidateResolutionOfFailedLookupTimer(){return this.projectService.throttledOperations.cancel(`${this.getProjectName()}FailedLookupInvalidation`)}scheduleInvalidateResolutionsOfFailedLookupLocations(){this.projectService.throttledOperations.schedule(`${this.getProjectName()}FailedLookupInvalidation`,1e3,(()=>{this.resolutionCache.invalidateResolutionsOfFailedLookupLocations()&&this.projectService.delayUpdateProjectGraphAndEnsureProjectStructureForOpenFiles(this)}))}invalidateResolutionsOfFailedLookupLocations(){this.clearInvalidateResolutionOfFailedLookupTimer()&&this.resolutionCache.invalidateResolutionsOfFailedLookupLocations()&&(this.markAsDirty(),this.projectService.delayEnsureProjectForOpenFiles())}onInvalidatedResolution(){this.projectService.delayUpdateProjectGraphAndEnsureProjectStructureForOpenFiles(this)}watchTypeRootsDirectory(e,t,n){return this.projectService.watchFactory.watchDirectory(e,t,n,this.projectService.getWatchOptions(this),p$.TypeRoots,this)}hasChangedAutomaticTypeDirectiveNames(){return this.resolutionCache.hasChangedAutomaticTypeDirectiveNames()}onChangedAutomaticTypeDirectiveNames(){this.projectService.delayUpdateProjectGraphAndEnsureProjectStructureForOpenFiles(this)}fileIsOpen(e){return this.projectService.openFiles.has(e)}writeLog(e){this.projectService.logger.info(e)}log(e){this.writeLog(e)}error(e){this.projectService.logger.msg(e,"Err")}setInternalCompilerOptionsForEmittingJsFiles(){0!==this.projectKind&&2!==this.projectKind||(this.compilerOptions.noEmitForJsFiles=!0)}getGlobalProjectErrors(){return N(this.projectErrors,(e=>!e.file))||xfe}getAllProjectErrors(){return this.projectErrors||xfe}setProjectErrors(e){this.projectErrors=e}getLanguageService(e=!0){return e&&sge(this),this.languageService}getSourceMapper(){return this.getLanguageService().getSourceMapper()}clearSourceMapperCache(){this.languageService.clearSourceMapperCache()}getDocumentPositionMapper(e,t){return this.projectService.getDocumentPositionMapper(this,e,t)}getSourceFileLike(e){return this.projectService.getSourceFileLike(e,this)}shouldEmitFile(e){return e&&!e.isDynamicOrHasMixedContent()&&!this.program.isSourceOfProjectReferenceRedirect(e.path)}getCompileOnSaveAffectedFileList(e){return this.languageServiceEnabled?(sge(this),this.builderState=OV.create(this.program,this.builderState,!0),B(OV.getFilesAffectedBy(this.builderState,this.program,e.path,this.cancellationToken,this.projectService.host),(e=>this.shouldEmitFile(this.projectService.getScriptInfoForPath(e.path))?e.fileName:void 0))):[]}emitFile(e,t){if(!this.languageServiceEnabled||!this.shouldEmitFile(e))return{emitSkipped:!0,diagnostics:xfe};const{emitSkipped:n,diagnostics:r,outputFiles:i}=this.getLanguageService().getEmitOutput(e.fileName);if(!n){for(const e of i)t(Bo(e.name,this.currentDirectory),e.text,e.writeByteOrderMark);if(this.builderState&&Nk(this.compilerOptions)){const t=i.filter((e=>$I(e.name)));if(1===t.length){const n=this.program.getSourceFile(e.fileName),r=this.projectService.host.createHash?this.projectService.host.createHash(t[0].text):Ri(t[0].text);OV.updateSignatureOfFile(this.builderState,r,n.resolvedPath)}}}return{emitSkipped:n,diagnostics:r}}enableLanguageService(){this.languageServiceEnabled||2===this.projectService.serverMode||(this.languageServiceEnabled=!0,this.lastFileExceededProgramSize=void 0,this.projectService.onUpdateLanguageServiceStateForProject(this,!0))}cleanupProgram(){if(this.program){for(const e of this.program.getSourceFiles())this.detachScriptInfoIfNotRoot(e.fileName);this.program.forEachResolvedProjectReference((e=>this.detachScriptInfoFromProject(e.sourceFile.fileName))),this.program=void 0}}disableLanguageService(e){this.languageServiceEnabled&&(un.assert(2!==this.projectService.serverMode),this.languageService.cleanupSemanticCache(),this.languageServiceEnabled=!1,this.cleanupProgram(),this.lastFileExceededProgramSize=e,this.builderState=void 0,this.autoImportProviderHost&&this.autoImportProviderHost.close(),this.autoImportProviderHost=void 0,this.resolutionCache.closeTypeRootsWatch(),this.clearGeneratedFileWatch(),this.projectService.verifyDocumentRegistry(),this.projectService.onUpdateLanguageServiceStateForProject(this,!1))}getProjectName(){return this.projectName}removeLocalTypingsFromTypeAcquisition(e){return e.enable&&e.include?{...e,include:this.removeExistingTypings(e.include)}:e}getExternalFiles(e){return _e(O(this.plugins,(t=>{if("function"==typeof t.module.getExternalFiles)try{return t.module.getExternalFiles(this,e||0)}catch(e){this.projectService.logger.info(`A plugin threw an exception in getExternalFiles: ${e}`),e.stack&&this.projectService.logger.info(e.stack)}})))}getSourceFile(e){if(this.program)return this.program.getSourceFileByPath(e)}getSourceFileOrConfigFile(e){const t=this.program.getCompilerOptions();return e===t.configFilePath?t.configFile:this.getSourceFile(e)}close(){var e;this.typingsCache&&this.projectService.typingsInstaller.onProjectClosed(this),this.typingsCache=void 0,this.closeWatchingTypingLocations(),this.cleanupProgram(),d(this.externalFiles,(e=>this.detachScriptInfoIfNotRoot(e))),this.rootFilesMap.forEach((e=>{var t;return null==(t=e.info)?void 0:t.detachFromProject(this)})),this.projectService.pendingEnsureProjectForOpenFiles=!0,this.rootFilesMap=void 0,this.externalFiles=void 0,this.program=void 0,this.builderState=void 0,this.resolutionCache.clear(),this.resolutionCache=void 0,this.cachedUnresolvedImportsPerFile=void 0,null==(e=this.packageJsonWatches)||e.forEach((e=>{e.projects.delete(this),e.close()})),this.packageJsonWatches=void 0,this.moduleSpecifierCache.clear(),this.moduleSpecifierCache=void 0,this.directoryStructureHost=void 0,this.exportMapCache=void 0,this.projectErrors=void 0,this.plugins.length=0,this.missingFilesMap&&(_x(this.missingFilesMap,tx),this.missingFilesMap=void 0),this.clearGeneratedFileWatch(),this.clearInvalidateResolutionOfFailedLookupTimer(),this.autoImportProviderHost&&this.autoImportProviderHost.close(),this.autoImportProviderHost=void 0,this.noDtsResolutionProject&&this.noDtsResolutionProject.close(),this.noDtsResolutionProject=void 0,this.languageService.dispose(),this.languageService=void 0}detachScriptInfoIfNotRoot(e){const t=this.projectService.getScriptInfo(e);t&&!this.isRoot(t)&&t.detachFromProject(this)}isClosed(){return void 0===this.rootFilesMap}hasRoots(){var e;return!!(null==(e=this.rootFilesMap)?void 0:e.size)}isOrphan(){return!1}getRootFiles(){return this.rootFilesMap&&Oe(J(this.rootFilesMap.values(),(e=>{var t;return null==(t=e.info)?void 0:t.fileName})))}getRootFilesMap(){return this.rootFilesMap}getRootScriptInfos(){return Oe(J(this.rootFilesMap.values(),(e=>e.info)))}getScriptInfos(){return this.languageServiceEnabled?E(this.program.getSourceFiles(),(e=>{const t=this.projectService.getScriptInfoForPath(e.resolvedPath);return un.assert(!!t,"getScriptInfo",(()=>`scriptInfo for a file '${e.fileName}' Path: '${e.path}' / '${e.resolvedPath}' is missing.`)),t})):this.getRootScriptInfos()}getExcludedFiles(){return xfe}getFileNames(e,t){if(!this.program)return[];if(!this.languageServiceEnabled){let e=this.getRootFiles();if(this.compilerOptions){const t=V8(this.compilerOptions);t&&(e||(e=[])).push(t)}return e}const n=[];for(const t of this.program.getSourceFiles())e&&this.program.isSourceFileFromExternalLibrary(t)||n.push(t.fileName);if(!t){const e=this.program.getCompilerOptions().configFile;if(e&&(n.push(e.fileName),e.extendedSourceFiles))for(const t of e.extendedSourceFiles)n.push(t)}return n}getFileNamesWithRedirectInfo(e){return this.getFileNames().map((t=>({fileName:t,isSourceOfProjectReferenceRedirect:e&&this.isSourceOfProjectReferenceRedirect(t)})))}hasConfigFile(e){if(this.program&&this.languageServiceEnabled){const t=this.program.getCompilerOptions().configFile;if(t){if(e===t.fileName)return!0;if(t.extendedSourceFiles)for(const n of t.extendedSourceFiles)if(e===n)return!0}}return!1}containsScriptInfo(e){if(this.isRoot(e))return!0;if(!this.program)return!1;const t=this.program.getSourceFileByPath(e.path);return!!t&&t.resolvedPath===e.path}containsFile(e,t){const n=this.projectService.getScriptInfoForNormalizedPath(e);return!(!n||!n.isScriptOpen()&&t)&&this.containsScriptInfo(n)}isRoot(e){var t,n;return(null==(n=null==(t=this.rootFilesMap)?void 0:t.get(e.path))?void 0:n.info)===e}addRoot(e,t){un.assert(!this.isRoot(e)),this.rootFilesMap.set(e.path,{fileName:t||e.fileName,info:e}),e.attachToProject(this),this.markAsDirty()}addMissingFileRoot(e){const t=this.projectService.toPath(e);this.rootFilesMap.set(t,{fileName:e}),this.markAsDirty()}removeFile(e,t,n){this.isRoot(e)&&this.removeRoot(e),t?this.resolutionCache.removeResolutionsOfFile(e.path):this.resolutionCache.invalidateResolutionOfFile(e.path),this.cachedUnresolvedImportsPerFile.delete(e.path),n&&e.detachFromProject(this),this.markAsDirty()}registerFileUpdate(e){(this.updatedFileNames||(this.updatedFileNames=new Set)).add(e)}markFileAsDirty(e){this.markAsDirty(),this.exportMapCache&&!this.exportMapCache.isEmpty()&&(this.changedFilesForExportMapCache||(this.changedFilesForExportMapCache=new Set)).add(e)}markAsDirty(){this.dirty||(this.projectStateVersion++,this.dirty=!0)}markAutoImportProviderAsDirty(){var e;this.autoImportProviderHost||(this.autoImportProviderHost=void 0),null==(e=this.autoImportProviderHost)||e.markAsDirty()}onAutoImportProviderSettingsChanged(){this.markAutoImportProviderAsDirty()}onPackageJsonChange(){this.moduleSpecifierCache.clear(),this.markAutoImportProviderAsDirty()}onFileAddedOrRemoved(e){this.hasAddedorRemovedFiles=!0,e&&(this.hasAddedOrRemovedSymlinks=!0)}onDiscoveredSymlink(){this.hasAddedOrRemovedSymlinks=!0}onReleaseOldSourceFile(e,t,n,r){(!r||e.resolvedPath===e.path&&r.resolvedPath!==e.path)&&this.detachScriptInfoFromProject(e.fileName,n)}updateFromProject(){sge(this)}updateGraph(){var e,t;null==(e=Hn)||e.push(Hn.Phase.Session,"updateGraph",{name:this.projectName,kind:Yfe[this.projectKind]}),this.resolutionCache.startRecordingFilesWithChangedResolutions();const n=this.updateGraphWorker(),r=this.hasAddedorRemovedFiles;this.hasAddedorRemovedFiles=!1,this.hasAddedOrRemovedSymlinks=!1;const i=this.resolutionCache.finishRecordingFilesWithChangedResolutions()||xfe;for(const e of i)this.cachedUnresolvedImportsPerFile.delete(e);this.languageServiceEnabled&&0===this.projectService.serverMode&&!this.isOrphan()?((n||i.length)&&(this.lastCachedUnresolvedImportsList=function(e,t){var n,r;const i=e.getSourceFiles();null==(n=Hn)||n.push(Hn.Phase.Session,"getUnresolvedImports",{count:i.length});const o=e.getTypeChecker().getAmbientModules().map((e=>Dy(e.getName()))),a=ee(O(i,(n=>function(e,t,n,r){return z(r,t.path,(()=>{let r;return e.forEachResolvedModule((({resolvedModule:e},t)=>{e&&XS(e.extension)||Ts(t)||n.some((e=>e===t))||(r=ie(r,YR(t).packageName))}),t),r||xfe}))}(e,n,o,t))));return null==(r=Hn)||r.pop(),a}(this.program,this.cachedUnresolvedImportsPerFile)),this.enqueueInstallTypingsForProject(r)):this.lastCachedUnresolvedImportsList=void 0;const o=0===this.projectProgramVersion&&n;return n&&this.projectProgramVersion++,r&&this.markAutoImportProviderAsDirty(),o&&this.getPackageJsonAutoImportProvider(),null==(t=Hn)||t.pop(),!n}enqueueInstallTypingsForProject(e){const t=this.getTypeAcquisition();if(!t||!t.enable||this.projectService.typingsInstaller===$me)return;const n=this.typingsCache;var r,i,o,a;!e&&n&&(o=t,a=n.typeAcquisition,o.enable===a.enable&&ime(o.include,a.include)&&ime(o.exclude,a.exclude))&&!function(e,t){return Pk(e)!==Pk(t)}(this.getCompilationSettings(),n.compilerOptions)&&((r=this.lastCachedUnresolvedImportsList)===(i=n.unresolvedImports)||te(r,i))||(this.typingsCache={compilerOptions:this.getCompilationSettings(),typeAcquisition:t,unresolvedImports:this.lastCachedUnresolvedImportsList},this.projectService.typingsInstaller.enqueueInstallTypingsRequest(this,t,this.lastCachedUnresolvedImportsList))}updateTypingFiles(e,t,n,r){this.typingsCache={compilerOptions:e,typeAcquisition:t,unresolvedImports:n};const i=t&&t.enable?_e(r):xfe;on(i,this.typingFiles,wt(!this.useCaseSensitiveFileNames()),rt,(e=>this.detachScriptInfoFromProject(e)))&&(this.typingFiles=i,this.resolutionCache.setFilesWithInvalidatedNonRelativeUnresolvedImports(this.cachedUnresolvedImportsPerFile),this.projectService.delayUpdateProjectGraphAndEnsureProjectStructureForOpenFiles(this))}closeWatchingTypingLocations(){this.typingWatchers&&_x(this.typingWatchers,tx),this.typingWatchers=void 0}onTypingInstallerWatchInvoke(){this.typingWatchers.isInvoked=!0,this.projectService.updateTypingsForProject({projectName:this.getProjectName(),kind:AK})}watchTypingLocations(e){if(!e)return void(this.typingWatchers.isInvoked=!1);if(!e.length)return void this.closeWatchingTypingLocations();const t=new Map(this.typingWatchers);this.typingWatchers||(this.typingWatchers=new Map),this.typingWatchers.isInvoked=!1;const n=(e,n)=>{const r=this.toPath(e);if(t.delete(r),!this.typingWatchers.has(r)){const t="FileWatcher"===n?p$.TypingInstallerLocationFile:p$.TypingInstallerLocationDirectory;this.typingWatchers.set(r,FW(r)?"FileWatcher"===n?this.projectService.watchFactory.watchFile(e,(()=>this.typingWatchers.isInvoked?this.writeLog("TypingWatchers already invoked"):this.onTypingInstallerWatchInvoke()),2e3,this.projectService.getWatchOptions(this),t,this):this.projectService.watchFactory.watchDirectory(e,(e=>this.typingWatchers.isInvoked?this.writeLog("TypingWatchers already invoked"):ko(e,".json")?Yo(e,jo(this.projectService.typingsInstaller.globalTypingsCacheLocation,"package.json"),!this.useCaseSensitiveFileNames())?this.writeLog("Ignoring package.json change at global typings location"):void this.onTypingInstallerWatchInvoke():this.writeLog("Ignoring files that are not *.json")),1,this.projectService.getWatchOptions(this),t,this):(this.writeLog(`Skipping watcher creation at ${e}:: ${oge(t,this)}`),_$))}};for(const t of e){const e=Fo(t);if("package.json"!==e&&"bower.json"!==e)if(Zo(this.currentDirectory,t,this.currentDirectory,!this.useCaseSensitiveFileNames())){const e=t.indexOf(lo,this.currentDirectory.length+1);n(-1!==e?t.substr(0,e):t,"DirectoryWatcher")}else Zo(this.projectService.typingsInstaller.globalTypingsCacheLocation,t,this.currentDirectory,!this.useCaseSensitiveFileNames())?n(this.projectService.typingsInstaller.globalTypingsCacheLocation,"DirectoryWatcher"):n(t,"DirectoryWatcher");else n(t,"FileWatcher")}t.forEach(((e,t)=>{e.close(),this.typingWatchers.delete(t)}))}getCurrentProgram(){return this.program}removeExistingTypings(e){if(!e.length)return e;const t=rR(this.getCompilerOptions(),this);return N(e,(e=>!t.includes(e)))}updateGraphWorker(){var e,t;const n=this.languageService.getCurrentProgram();un.assert(n===this.program),un.assert(!this.isClosed(),"Called update graph worker of closed project"),this.writeLog(`Starting updateGraphWorker: Project: ${this.getProjectName()}`);const r=Un(),{hasInvalidatedResolutions:i,hasInvalidatedLibResolutions:o}=this.resolutionCache.createHasInvalidatedResolutions(it,it);this.hasInvalidatedResolutions=i,this.hasInvalidatedLibResolutions=o,this.resolutionCache.startCachingPerDirectoryResolution(),this.dirty=!1,this.updateFromProjectInProgress=!0,this.program=this.languageService.getProgram(),this.updateFromProjectInProgress=!1,null==(e=Hn)||e.push(Hn.Phase.Session,"finishCachingPerDirectoryResolution"),this.resolutionCache.finishCachingPerDirectoryResolution(this.program,n),null==(t=Hn)||t.pop(),un.assert(void 0===n||void 0!==this.program);let a=!1;if(this.program&&(!n||this.program!==n&&2!==this.program.structureIsReused)){if(a=!0,this.rootFilesMap.forEach(((e,t)=>{var n;const r=this.program.getSourceFileByPath(t),i=e.info;r&&(null==(n=e.info)?void 0:n.path)!==r.resolvedPath&&(e.info=this.projectService.getScriptInfo(r.fileName),un.assert(e.info.isAttached(this)),null==i||i.detachFromProject(this))})),dU(this.program,this.missingFilesMap||(this.missingFilesMap=new Map),((e,t)=>this.addMissingFileWatcher(e,t))),this.generatedFilesMap){const e=this.compilerOptions.outFile;rme(this.generatedFilesMap)?e&&this.isValidGeneratedFileWatcher(zS(e)+".d.ts",this.generatedFilesMap)||this.clearGeneratedFileWatch():e?this.clearGeneratedFileWatch():this.generatedFilesMap.forEach(((e,t)=>{const n=this.program.getSourceFileByPath(t);n&&n.resolvedPath===t&&this.isValidGeneratedFileWatcher(Uy(n.fileName,this.compilerOptions,this.program),e)||(vU(e),this.generatedFilesMap.delete(t))}))}this.languageServiceEnabled&&0===this.projectService.serverMode&&this.resolutionCache.updateTypeRootsWatch()}this.projectService.verifyProgram(this),this.exportMapCache&&!this.exportMapCache.isEmpty()&&(this.exportMapCache.releaseSymbols(),this.hasAddedorRemovedFiles||n&&!this.program.structureIsReused?this.exportMapCache.clear():this.changedFilesForExportMapCache&&n&&this.program&&nd(this.changedFilesForExportMapCache,(e=>{const t=n.getSourceFileByPath(e),r=this.program.getSourceFileByPath(e);return t&&r?this.exportMapCache.onFileChanged(t,r,!!this.getTypeAcquisition().enable):(this.exportMapCache.clear(),!0)}))),this.changedFilesForExportMapCache&&this.changedFilesForExportMapCache.clear(),(this.hasAddedOrRemovedSymlinks||this.program&&!this.program.structureIsReused&&this.getCompilerOptions().preserveSymlinks)&&(this.symlinks=void 0,this.moduleSpecifierCache.clear());const s=this.externalFiles||xfe;this.externalFiles=this.getExternalFiles(),on(this.externalFiles,s,wt(!this.useCaseSensitiveFileNames()),(e=>{const t=this.projectService.getOrCreateScriptInfoNotOpenedByClient(e,this.currentDirectory,this.directoryStructureHost,!1);null==t||t.attachToProject(this)}),(e=>this.detachScriptInfoFromProject(e)));const c=Un()-r;return this.sendPerformanceEvent("UpdateGraph",c),this.writeLog(`Finishing updateGraphWorker: Project: ${this.getProjectName()} projectStateVersion: ${this.projectStateVersion} projectProgramVersion: ${this.projectProgramVersion} structureChanged: ${a}${this.program?` structureIsReused:: ${Fr[this.program.structureIsReused]}`:""} Elapsed: ${c}ms`),this.projectService.logger.isTestLogger?this.program!==n?this.print(!0,this.hasAddedorRemovedFiles,!0):this.writeLog("Same program as before"):this.hasAddedorRemovedFiles?this.print(!0,!0,!1):this.program!==n&&this.writeLog("Different program with same set of files"),this.projectService.verifyDocumentRegistry(),a}sendPerformanceEvent(e,t){this.projectService.sendPerformanceEvent(e,t)}detachScriptInfoFromProject(e,t){const n=this.projectService.getScriptInfo(e);n&&(n.detachFromProject(this),t||this.resolutionCache.removeResolutionsOfFile(n.path))}addMissingFileWatcher(e,t){var n;if(pme(this)){const t=this.projectService.configFileExistenceInfoCache.get(e);if(null==(n=null==t?void 0:t.config)?void 0:n.projects.has(this.canonicalConfigFilePath))return _$}const r=this.projectService.watchFactory.watchFile(Bo(t,this.currentDirectory),((t,n)=>{pme(this)&&this.getCachedDirectoryStructureHost().addOrDeleteFile(t,e,n),0===n&&this.missingFilesMap.has(e)&&(this.missingFilesMap.delete(e),r.close(),this.projectService.delayUpdateProjectGraphAndEnsureProjectStructureForOpenFiles(this))}),500,this.projectService.getWatchOptions(this),p$.MissingFile,this);return r}isWatchedMissingFile(e){return!!this.missingFilesMap&&this.missingFilesMap.has(e)}addGeneratedFileWatch(e,t){if(this.compilerOptions.outFile)this.generatedFilesMap||(this.generatedFilesMap=this.createGeneratedFileWatcher(e));else{const n=this.toPath(t);if(this.generatedFilesMap){if(rme(this.generatedFilesMap))return void un.fail(`${this.projectName} Expected to not have --out watcher for generated file with options: ${JSON.stringify(this.compilerOptions)}`);if(this.generatedFilesMap.has(n))return}else this.generatedFilesMap=new Map;this.generatedFilesMap.set(n,this.createGeneratedFileWatcher(e))}}createGeneratedFileWatcher(e){return{generatedFilePath:this.toPath(e),watcher:this.projectService.watchFactory.watchFile(e,(()=>{this.clearSourceMapperCache(),this.projectService.delayUpdateProjectGraphAndEnsureProjectStructureForOpenFiles(this)}),2e3,this.projectService.getWatchOptions(this),p$.MissingGeneratedFile,this)}}isValidGeneratedFileWatcher(e,t){return this.toPath(e)===t.generatedFilePath}clearGeneratedFileWatch(){this.generatedFilesMap&&(rme(this.generatedFilesMap)?vU(this.generatedFilesMap):_x(this.generatedFilesMap,vU),this.generatedFilesMap=void 0)}getScriptInfoForNormalizedPath(e){const t=this.projectService.getScriptInfoForPath(this.toPath(e));return t&&!t.isAttached(this)?yfe.ThrowProjectDoesNotContainDocument(e,this):t}getScriptInfo(e){return this.projectService.getScriptInfo(e)}filesToString(e){return this.filesToStringWorker(e,!0,!1)}filesToStringWorker(e,t,n){if(this.initialLoadPending)return"\tFiles (0) InitialLoadPending\n";if(!this.program)return"\tFiles (0) NoProgram\n";const r=this.program.getSourceFiles();let i=`\tFiles (${r.length})\n`;if(e){for(const e of r)i+=`\t${e.fileName}${n?` ${e.version} ${JSON.stringify(e.text)}`:""}\n`;t&&(i+="\n\n",n$(this.program,(e=>i+=`\t${e}\n`)))}return i}print(e,t,n){var r;this.writeLog(`Project '${this.projectName}' (${Yfe[this.projectKind]})`),this.writeLog(this.filesToStringWorker(e&&this.projectService.logger.hasLevel(3),t&&this.projectService.logger.hasLevel(3),n&&this.projectService.logger.hasLevel(3))),this.writeLog("-----------------------------------------------"),this.autoImportProviderHost&&this.autoImportProviderHost.print(!1,!1,!1),null==(r=this.noDtsResolutionProject)||r.print(!1,!1,!1)}setCompilerOptions(e){var t;if(e){e.allowNonTsExtensions=!0;const n=this.compilerOptions;this.compilerOptions=e,this.setInternalCompilerOptionsForEmittingJsFiles(),null==(t=this.noDtsResolutionProject)||t.setCompilerOptions(this.getCompilerOptionsForNoDtsResolutionProject()),Qu(n,e)&&(this.cachedUnresolvedImportsPerFile.clear(),this.lastCachedUnresolvedImportsList=void 0,this.resolutionCache.onChangesAffectModuleResolution(),this.moduleSpecifierCache.clear()),this.markAsDirty()}}setWatchOptions(e){this.watchOptions=e}getWatchOptions(){return this.watchOptions}setTypeAcquisition(e){e&&(this.typeAcquisition=this.removeLocalTypingsFromTypeAcquisition(e))}getTypeAcquisition(){return this.typeAcquisition||{}}getChangesSinceVersion(e,t){var n,r;const i=t?e=>Oe(e.entries(),(([e,t])=>({fileName:e,isSourceOfProjectReferenceRedirect:t}))):e=>Oe(e.keys());this.initialLoadPending||sge(this);const o={projectName:this.getProjectName(),version:this.projectProgramVersion,isInferred:dme(this),options:this.getCompilationSettings(),languageServiceDisabled:!this.languageServiceEnabled,lastFileExceededProgramSize:this.lastFileExceededProgramSize},a=this.updatedFileNames;if(this.updatedFileNames=void 0,this.lastReportedFileNames&&e===this.lastReportedVersion){if(this.projectProgramVersion===this.lastReportedVersion&&!a)return{info:o,projectErrors:this.getGlobalProjectErrors()};const e=this.lastReportedFileNames,r=(null==(n=this.externalFiles)?void 0:n.map((e=>({fileName:Tfe(e),isSourceOfProjectReferenceRedirect:!1}))))||xfe,s=Re(this.getFileNamesWithRedirectInfo(!!t).concat(r),(e=>e.fileName),(e=>e.isSourceOfProjectReferenceRedirect)),c=new Map,l=new Map,_=a?Oe(a.keys()):[],u=[];return td(s,((n,r)=>{e.has(r)?t&&n!==e.get(r)&&u.push({fileName:r,isSourceOfProjectReferenceRedirect:n}):c.set(r,n)})),td(e,((e,t)=>{s.has(t)||l.set(t,e)})),this.lastReportedFileNames=s,this.lastReportedVersion=this.projectProgramVersion,{info:o,changes:{added:i(c),removed:i(l),updated:t?_.map((e=>({fileName:e,isSourceOfProjectReferenceRedirect:this.isSourceOfProjectReferenceRedirect(e)}))):_,updatedRedirects:t?u:void 0},projectErrors:this.getGlobalProjectErrors()}}{const e=this.getFileNamesWithRedirectInfo(!!t),n=(null==(r=this.externalFiles)?void 0:r.map((e=>({fileName:Tfe(e),isSourceOfProjectReferenceRedirect:!1}))))||xfe,i=e.concat(n);return this.lastReportedFileNames=Re(i,(e=>e.fileName),(e=>e.isSourceOfProjectReferenceRedirect)),this.lastReportedVersion=this.projectProgramVersion,{info:o,files:t?i:i.map((e=>e.fileName)),projectErrors:this.getGlobalProjectErrors()}}}removeRoot(e){this.rootFilesMap.delete(e.path)}isSourceOfProjectReferenceRedirect(e){return!!this.program&&this.program.isSourceOfProjectReferenceRedirect(e)}getGlobalPluginSearchPaths(){return[...this.projectService.pluginProbeLocations,jo(this.projectService.getExecutingFilePath(),"../../..")]}enableGlobalPlugins(e){if(!this.projectService.globalPlugins.length)return;const t=this.projectService.host;if(!t.require&&!t.importPlugin)return void this.projectService.logger.info("Plugins were requested but not running in environment that supports 'require'. Nothing will be loaded");const n=this.getGlobalPluginSearchPaths();for(const t of this.projectService.globalPlugins)t&&(e.plugins&&e.plugins.some((e=>e.name===t))||(this.projectService.logger.info(`Loading global plugin ${t}`),this.enablePlugin({name:t,global:!0},n)))}enablePlugin(e,t){this.projectService.requestEnablePlugin(this,e,t)}enableProxy(e,t){try{if("function"!=typeof e)return void this.projectService.logger.info(`Skipped loading plugin ${t.name} because it did not expose a proper factory function`);const n={config:t,project:this,languageService:this.languageService,languageServiceHost:this,serverHost:this.projectService.host,session:this.projectService.session},r=e({typescript:rfe}),i=r.create(n);for(const e of Object.keys(this.languageService))e in i||(this.projectService.logger.info(`Plugin activation warning: Missing proxied method ${e} in created LS. Patching.`),i[e]=this.languageService[e]);this.projectService.logger.info("Plugin validation succeeded"),this.languageService=i,this.plugins.push({name:t.name,module:r})}catch(e){this.projectService.logger.info(`Plugin activation failed: ${e}`)}}onPluginConfigurationChanged(e,t){this.plugins.filter((t=>t.name===e)).forEach((e=>{e.module.onConfigurationChanged&&e.module.onConfigurationChanged(t)}))}refreshDiagnostics(){this.projectService.sendProjectsUpdatedInBackgroundEvent()}getPackageJsonsVisibleToFile(e,t){return 0!==this.projectService.serverMode?xfe:this.projectService.getPackageJsonsVisibleToFile(e,this,t)}getNearestAncestorDirectoryWithPackageJson(e){return this.projectService.getNearestAncestorDirectoryWithPackageJson(e,this)}getPackageJsonsForAutoImport(e){return this.getPackageJsonsVisibleToFile(jo(this.currentDirectory,sV),e)}getPackageJsonCache(){return this.projectService.packageJsonCache}getCachedExportInfoMap(){return this.exportMapCache||(this.exportMapCache=ZZ(this))}clearCachedExportInfoMap(){var e;null==(e=this.exportMapCache)||e.clear()}getModuleSpecifierCache(){return this.moduleSpecifierCache}includePackageJsonAutoImports(){return 0!==this.projectService.includePackageJsonAutoImports()&&this.languageServiceEnabled&&!wZ(this.currentDirectory)&&this.isDefaultProjectForOpenFiles()?this.projectService.includePackageJsonAutoImports():0}getHostForAutoImportProvider(){var e,t;return this.program?{fileExists:this.program.fileExists,directoryExists:this.program.directoryExists,realpath:this.program.realpath||(null==(e=this.projectService.host.realpath)?void 0:e.bind(this.projectService.host)),getCurrentDirectory:this.getCurrentDirectory.bind(this),readFile:this.projectService.host.readFile.bind(this.projectService.host),getDirectories:this.projectService.host.getDirectories.bind(this.projectService.host),trace:null==(t=this.projectService.host.trace)?void 0:t.bind(this.projectService.host),useCaseSensitiveFileNames:this.program.useCaseSensitiveFileNames(),readDirectory:this.projectService.host.readDirectory.bind(this.projectService.host)}:this.projectService.host}getPackageJsonAutoImportProvider(){var e,t,n;if(!1===this.autoImportProviderHost)return;if(0!==this.projectService.serverMode)return void(this.autoImportProviderHost=!1);if(this.autoImportProviderHost)return sge(this.autoImportProviderHost),this.autoImportProviderHost.isEmpty()?(this.autoImportProviderHost.close(),void(this.autoImportProviderHost=void 0)):this.autoImportProviderHost.getCurrentProgram();const r=this.includePackageJsonAutoImports();if(r){null==(e=Hn)||e.push(Hn.Phase.Session,"getPackageJsonAutoImportProvider");const i=Un();if(this.autoImportProviderHost=lme.create(r,this,this.getHostForAutoImportProvider())??!1,this.autoImportProviderHost)return sge(this.autoImportProviderHost),this.sendPerformanceEvent("CreatePackageJsonAutoImportProvider",Un()-i),null==(t=Hn)||t.pop(),this.autoImportProviderHost.getCurrentProgram();null==(n=Hn)||n.pop()}}isDefaultProjectForOpenFiles(){return!!td(this.projectService.openFiles,((e,t)=>this.projectService.tryGetDefaultProjectForFile(this.projectService.getScriptInfoForPath(t))===this))}watchNodeModulesForPackageJsonChanges(e){return this.projectService.watchPackageJsonsInNodeModules(e,this)}getIncompleteCompletionsCache(){return this.projectService.getIncompleteCompletionsCache()}getNoDtsResolutionProject(e){return un.assert(0===this.projectService.serverMode),this.noDtsResolutionProject??(this.noDtsResolutionProject=new sme(this)),this.noDtsResolutionProject.rootFile!==e&&(this.projectService.setFileNamesOfAutoImportProviderOrAuxillaryProject(this.noDtsResolutionProject,[e]),this.noDtsResolutionProject.rootFile=e),this.noDtsResolutionProject}runWithTemporaryFileUpdate(e,t,n){var r,i,o,a;const s=this.program,c=un.checkDefined(null==(r=this.program)?void 0:r.getSourceFile(e),"Expected file to be part of program"),l=un.checkDefined(c.getFullText());null==(i=this.getScriptInfo(e))||i.editContent(0,l.length,t),this.updateGraph();try{n(this.program,s,null==(o=this.program)?void 0:o.getSourceFile(e))}finally{null==(a=this.getScriptInfo(e))||a.editContent(0,t.length,l)}}getCompilerOptionsForNoDtsResolutionProject(){return{...this.getCompilerOptions(),noDtsResolution:!0,allowJs:!0,maxNodeModuleJsDepth:3,diagnostics:!1,skipLibCheck:!0,sourceMap:!1,types:l,lib:l,noLib:!0}}},ame=class extends ome{constructor(e,t,n,r,i,o){super(e.newInferredProjectName(),0,e,!1,void 0,t,!1,n,e.host,i),this._isJsInferredProject=!1,this.typeAcquisition=o,this.projectRootPath=r&&e.toCanonicalFileName(r),r||e.useSingleInferredProject||(this.canonicalCurrentDirectory=e.toCanonicalFileName(this.currentDirectory)),this.enableGlobalPlugins(this.getCompilerOptions())}toggleJsInferredProject(e){e!==this._isJsInferredProject&&(this._isJsInferredProject=e,this.setCompilerOptions())}setCompilerOptions(e){if(!e&&!this.getCompilationSettings())return;const t=sQ(e||this.getCompilationSettings());this._isJsInferredProject&&"number"!=typeof t.maxNodeModuleJsDepth?t.maxNodeModuleJsDepth=2:this._isJsInferredProject||(t.maxNodeModuleJsDepth=void 0),t.allowJs=!0,super.setCompilerOptions(t)}addRoot(e){un.assert(e.isScriptOpen()),this.projectService.startWatchingConfigFilesForInferredProjectRoot(e),!this._isJsInferredProject&&e.isJavaScript()?this.toggleJsInferredProject(!0):this.isOrphan()&&this._isJsInferredProject&&!e.isJavaScript()&&this.toggleJsInferredProject(!1),super.addRoot(e)}removeRoot(e){this.projectService.stopWatchingConfigFilesForScriptInfo(e),super.removeRoot(e),!this.isOrphan()&&this._isJsInferredProject&&e.isJavaScript()&&v(this.getRootScriptInfos(),(e=>!e.isJavaScript()))&&this.toggleJsInferredProject(!1)}isOrphan(){return!this.hasRoots()}isProjectWithSingleRoot(){return!this.projectRootPath&&!this.projectService.useSingleInferredProject||1===this.getRootScriptInfos().length}close(){d(this.getRootScriptInfos(),(e=>this.projectService.stopWatchingConfigFilesForScriptInfo(e))),super.close()}getTypeAcquisition(){return this.typeAcquisition||{enable:eme(this),include:l,exclude:l}}},sme=class extends ome{constructor(e){super(e.projectService.newAuxiliaryProjectName(),4,e.projectService,!1,void 0,e.getCompilerOptionsForNoDtsResolutionProject(),!1,void 0,e.projectService.host,e.currentDirectory)}isOrphan(){return!0}scheduleInvalidateResolutionsOfFailedLookupLocations(){}},cme=class e extends ome{constructor(e,t,n){super(e.projectService.newAutoImportProviderProjectName(),3,e.projectService,!1,void 0,n,!1,e.getWatchOptions(),e.projectService.host,e.currentDirectory),this.hostProject=e,this.rootFileNames=t,this.useSourceOfProjectReferenceRedirect=We(this.hostProject,this.hostProject.useSourceOfProjectReferenceRedirect),this.getParsedCommandLine=We(this.hostProject,this.hostProject.getParsedCommandLine)}static getRootFileNames(e,t,n,r){var i,o;if(!e)return l;const a=t.getCurrentProgram();if(!a)return l;const s=Un();let c,_;const u=jo(t.currentDirectory,sV),p=t.getPackageJsonsForAutoImport(jo(t.currentDirectory,u));for(const e of p)null==(i=e.dependencies)||i.forEach(((e,t)=>y(t))),null==(o=e.peerDependencies)||o.forEach(((e,t)=>y(t)));let f=0;if(c){const i=t.getSymlinkCache();for(const o of Oe(c.keys())){if(2===e&&f>=this.maxDependencies)return t.log(`AutoImportProviderProject: attempted to add more than ${this.maxDependencies} dependencies. Aborting.`),l;const s=nR(o,t.currentDirectory,r,n,a.getModuleResolutionCache());if(s){const e=v(s,a,i);if(e){f+=h(e);continue}}if(!d([t.currentDirectory,t.getGlobalTypingsCacheLocation()],(e=>{if(e){const t=nR(`@types/${o}`,e,r,n,a.getModuleResolutionCache());if(t){const e=v(t,a,i);return f+=h(e),!0}}}))&&s&&r.allowJs&&r.maxNodeModuleJsDepth){const e=v(s,a,i,!0);f+=h(e)}}}const m=a.getResolvedProjectReferences();let g=0;return(null==m?void 0:m.length)&&t.projectService.getHostPreferences().includeCompletionsForModuleExports&&m.forEach((e=>{if(null==e?void 0:e.commandLine.options.outFile)g+=h(b([VS(e.commandLine.options.outFile,".d.ts")]));else if(e){const n=dt((()=>Vq(e.commandLine,!t.useCaseSensitiveFileNames())));g+=h(b(B(e.commandLine.fileNames,(r=>$I(r)||ko(r,".json")||a.getSourceFile(r)?void 0:jq(r,e.commandLine,!t.useCaseSensitiveFileNames(),n)))))}})),(null==_?void 0:_.size)&&t.log(`AutoImportProviderProject: found ${_.size} root files in ${f} dependencies ${g} referenced projects in ${Un()-s} ms`),_?Oe(_.values()):l;function h(e){return(null==e?void 0:e.length)?(_??(_=new Set),e.forEach((e=>_.add(e))),1):0}function y(e){Gt(e,"@types/")||(c||(c=new Set)).add(e)}function v(e,i,o,a){var s;const c=UR(e,r,n,i.getModuleResolutionCache(),a);if(c){const r=null==(s=n.realpath)?void 0:s.call(n,e.packageDirectory),i=r?t.toPath(r):void 0,a=i&&i!==t.toPath(e.packageDirectory);return a&&o.setSymlinkedDirectory(e.packageDirectory,{real:Vo(r),realPath:Vo(i)}),b(c,a?t=>t.replace(e.packageDirectory,r):void 0)}}function b(e,t){return B(e,(e=>{const n=t?t(e):e;if(!(a.getSourceFile(n)||t&&a.getSourceFile(e)))return n}))}}static create(t,n,r){if(0===t)return;const i={...n.getCompilerOptions(),...this.compilerOptionsOverrides},o=this.getRootFileNames(t,n,r,i);return o.length?new e(n,o,i):void 0}isEmpty(){return!$(this.rootFileNames)}isOrphan(){return!0}updateGraph(){let t=this.rootFileNames;t||(t=e.getRootFileNames(this.hostProject.includePackageJsonAutoImports(),this.hostProject,this.hostProject.getHostForAutoImportProvider(),this.getCompilationSettings())),this.projectService.setFileNamesOfAutoImportProviderOrAuxillaryProject(this,t),this.rootFileNames=t;const n=this.getCurrentProgram(),r=super.updateGraph();return n&&n!==this.getCurrentProgram()&&this.hostProject.clearCachedExportInfoMap(),r}scheduleInvalidateResolutionsOfFailedLookupLocations(){}hasRoots(){var e;return!!(null==(e=this.rootFileNames)?void 0:e.length)}markAsDirty(){this.rootFileNames=void 0,super.markAsDirty()}getScriptFileNames(){return this.rootFileNames||l}getLanguageService(){throw new Error("AutoImportProviderProject language service should never be used. To get the program, use `project.getCurrentProgram()`.")}onAutoImportProviderSettingsChanged(){throw new Error("AutoImportProviderProject is an auto import provider; use `markAsDirty()` instead.")}onPackageJsonChange(){throw new Error("package.json changes should be notified on an AutoImportProvider's host project")}getHostForAutoImportProvider(){throw new Error("AutoImportProviderProject cannot provide its own host; use `hostProject.getModuleResolutionHostForAutomImportProvider()` instead.")}getProjectReferences(){return this.hostProject.getProjectReferences()}includePackageJsonAutoImports(){return 0}getSymlinkCache(){return this.hostProject.getSymlinkCache()}getModuleResolutionCache(){var e;return null==(e=this.hostProject.getCurrentProgram())?void 0:e.getModuleResolutionCache()}};cme.maxDependencies=10,cme.compilerOptionsOverrides={diagnostics:!1,skipLibCheck:!0,sourceMap:!1,types:l,lib:l,noLib:!0};var lme=cme,_me=class extends ome{constructor(e,t,n,r,i){super(e,1,n,!1,void 0,{},!1,void 0,r,Do(e)),this.canonicalConfigFilePath=t,this.openFileWatchTriggered=new Map,this.initialLoadPending=!0,this.sendLoadingProjectFinish=!1,this.pendingUpdateLevel=2,this.pendingUpdateReason=i}setCompilerHost(e){this.compilerHost=e}getCompilerHost(){return this.compilerHost}useSourceOfProjectReferenceRedirect(){return this.languageServiceEnabled}getParsedCommandLine(e){const t=Tfe(e),n=this.projectService.toCanonicalFileName(t);let r=this.projectService.configFileExistenceInfoCache.get(n);return r||this.projectService.configFileExistenceInfoCache.set(n,r={exists:this.projectService.host.fileExists(t)}),this.projectService.ensureParsedConfigUptoDate(t,n,r,this),this.languageServiceEnabled&&0===this.projectService.serverMode&&this.projectService.watchWildcards(t,r,this),r.exists?r.config.parsedCommandLine:void 0}onReleaseParsedCommandLine(e){this.releaseParsedConfig(this.projectService.toCanonicalFileName(Tfe(e)))}releaseParsedConfig(e){this.projectService.stopWatchingWildCards(e,this),this.projectService.releaseParsedConfig(e,this)}updateGraph(){if(this.deferredClose)return!1;const e=this.dirty;this.initialLoadPending=!1;const t=this.pendingUpdateLevel;let n;switch(this.pendingUpdateLevel=0,t){case 1:this.openFileWatchTriggered.clear(),n=this.projectService.reloadFileNamesOfConfiguredProject(this);break;case 2:this.openFileWatchTriggered.clear();const e=un.checkDefined(this.pendingUpdateReason);this.projectService.reloadConfiguredProject(this,e),n=!0;break;default:n=super.updateGraph()}return this.compilerHost=void 0,this.projectService.sendProjectLoadingFinishEvent(this),this.projectService.sendProjectTelemetry(this),2!==t&&(!n||e&&this.triggerFileForConfigFileDiag&&2!==this.getCurrentProgram().structureIsReused)?this.triggerFileForConfigFileDiag||this.projectService.sendConfigFileDiagEvent(this,void 0,!1):this.triggerFileForConfigFileDiag=void 0,n}getCachedDirectoryStructureHost(){return this.directoryStructureHost}getConfigFilePath(){return this.getProjectName()}getProjectReferences(){return this.projectReferences}updateReferences(e){this.projectReferences=e,this.potentialProjectReferences=void 0}setPotentialProjectReference(e){un.assert(this.initialLoadPending),(this.potentialProjectReferences||(this.potentialProjectReferences=new Set)).add(e)}getResolvedProjectReferenceToRedirect(e){const t=this.getCurrentProgram();return t&&t.getResolvedProjectReferenceToRedirect(e)}forEachResolvedProjectReference(e){var t;return null==(t=this.getCurrentProgram())?void 0:t.forEachResolvedProjectReference(e)}enablePluginsWithOptions(e){var t;if(this.plugins.length=0,!(null==(t=e.plugins)?void 0:t.length)&&!this.projectService.globalPlugins.length)return;const n=this.projectService.host;if(!n.require&&!n.importPlugin)return void this.projectService.logger.info("Plugins were requested but not running in environment that supports 'require'. Nothing will be loaded");const r=this.getGlobalPluginSearchPaths();if(this.projectService.allowLocalPluginLoads){const e=Do(this.canonicalConfigFilePath);this.projectService.logger.info(`Local plugin loading enabled; adding ${e} to search paths`),r.unshift(e)}if(e.plugins)for(const t of e.plugins)this.enablePlugin(t,r);return this.enableGlobalPlugins(e)}getGlobalProjectErrors(){return N(this.projectErrors,(e=>!e.file))||xfe}getAllProjectErrors(){return this.projectErrors||xfe}setProjectErrors(e){this.projectErrors=e}close(){this.projectService.configFileExistenceInfoCache.forEach(((e,t)=>this.releaseParsedConfig(t))),this.projectErrors=void 0,this.openFileWatchTriggered.clear(),this.compilerHost=void 0,super.close()}markAsDirty(){this.deferredClose||super.markAsDirty()}isOrphan(){return!!this.deferredClose}getEffectiveTypeRoots(){return Gj(this.getCompilationSettings(),this)||[]}updateErrorOnNoInputFiles(e){this.parsedCommandLine=e,ej(e.fileNames,this.getConfigFilePath(),this.getCompilerOptions().configFile.configFileSpecs,this.projectErrors,ZL(e.raw))}},ume=class extends ome{constructor(e,t,n,r,i,o,a){super(e,2,t,!0,r,n,i,a,t.host,Do(o||Oo(e))),this.externalProjectName=e,this.compileOnSaveEnabled=i,this.excludedFiles=[],this.enableGlobalPlugins(this.getCompilerOptions())}updateGraph(){const e=super.updateGraph();return this.projectService.sendProjectTelemetry(this),e}getExcludedFiles(){return this.excludedFiles}};function dme(e){return 0===e.projectKind}function pme(e){return 1===e.projectKind}function fme(e){return 2===e.projectKind}function mme(e){return 3===e.projectKind||4===e.projectKind}function gme(e){return pme(e)&&!!e.deferredClose}var hme=20971520,yme=4194304,vme="projectsUpdatedInBackground",bme="projectLoadingStart",xme="projectLoadingFinish",kme="largeFileReferenced",Sme="configFileDiag",Tme="projectLanguageServiceState",Cme="projectInfo",wme="openFileInfo",Nme="createFileWatcher",Dme="createDirectoryWatcher",Fme="closeFileWatcher",Eme="*ensureProjectForOpenFiles*";function Pme(e){const t=new Map;for(const n of e)if("object"==typeof n.type){const e=n.type;e.forEach((e=>{un.assert("number"==typeof e)})),t.set(n.name,e)}return t}var Ame=Pme(mO),Ime=Pme(_O),Ome=new Map(Object.entries({none:0,block:1,smart:2})),Lme={jquery:{match:/jquery(-[\d.]+)?(\.intellisense)?(\.min)?\.js$/i,types:["jquery"]},WinJS:{match:/^(.*\/winjs-[.\d]+)\/js\/base\.js$/i,exclude:[["^",1,"/.*"]],types:["winjs"]},Kendo:{match:/^(.*\/kendo(-ui)?)\/kendo\.all(\.min)?\.js$/i,exclude:[["^",1,"/.*"]],types:["kendo-ui"]},"Office Nuget":{match:/^(.*\/office\/1)\/excel-\d+\.debug\.js$/i,exclude:[["^",1,"/.*"]],types:["office"]},References:{match:/^(.*\/_references\.js)$/i,exclude:[["^",1,"$"]]}};function jme(e){return Ze(e.indentStyle)&&(e.indentStyle=Ome.get(e.indentStyle.toLowerCase()),un.assert(void 0!==e.indentStyle)),e}function Rme(e){return Ame.forEach(((t,n)=>{const r=e[n];Ze(r)&&(e[n]=t.get(r.toLowerCase()))})),e}function Mme(e,t){let n,r;return _O.forEach((i=>{const o=e[i.name];if(void 0===o)return;const a=Ime.get(i.name);(n||(n={}))[i.name]=a?Ze(o)?a.get(o.toLowerCase()):o:dj(i,o,t||"",r||(r=[]))})),n&&{watchOptions:n,errors:r}}function Bme(e){let t;return FO.forEach((n=>{const r=e[n.name];void 0!==r&&((t||(t={}))[n.name]=r)})),t}function Jme(e){return Ze(e)?zme(e):e}function zme(e){switch(e){case"JS":return 1;case"JSX":return 2;case"TS":return 3;case"TSX":return 4;default:return 0}}function qme(e){const{lazyConfiguredProjectsFromExternalProject:t,...n}=e;return n}var Ume={getFileName:e=>e,getScriptKind:(e,t)=>{let n;if(t){const r=Po(e);r&&$(t,(e=>e.extension===r&&(n=e.scriptKind,!0)))}return n},hasMixedContent:(e,t)=>$(t,(t=>t.isMixedContent&&ko(e,t.extension)))},Vme={getFileName:e=>e.fileName,getScriptKind:e=>Jme(e.scriptKind),hasMixedContent:e=>!!e.hasMixedContent};function Wme(e,t){for(const n of t)if(n.getProjectName()===e)return n}var $me={isKnownTypesPackageName:it,installPackage:ut,enqueueInstallTypingsRequest:rt,attach:rt,onProjectClosed:rt,globalTypingsCacheLocation:void 0},Hme={close:rt};function Kme(e,t){if(!t)return;const n=t.get(e.path);return void 0!==n?Xme(e)?n&&!Ze(n)?n.get(e.fileName):void 0:Ze(n)||!n?n:n.get(!1):void 0}function Gme(e){return!!e.containingProjects}function Xme(e){return!!e.configFileInfo}var Qme=(e=>(e[e.FindOptimized=0]="FindOptimized",e[e.Find=1]="Find",e[e.CreateReplayOptimized=2]="CreateReplayOptimized",e[e.CreateReplay=3]="CreateReplay",e[e.CreateOptimized=4]="CreateOptimized",e[e.Create=5]="Create",e[e.ReloadOptimized=6]="ReloadOptimized",e[e.Reload=7]="Reload",e))(Qme||{});function Yme(e){return e-1}function Zme(e,t,n,r,i,o,a,s,c){for(var l;;){if(t.parsedCommandLine&&(s&&!t.parsedCommandLine.options.composite||t.parsedCommandLine.options.disableSolutionSearching))return;const _=t.projectService.getConfigFileNameForFile({fileName:t.getConfigFilePath(),path:e.path,configFileInfo:!0,isForDefaultProject:!s},r<=3);if(!_)return;const u=t.projectService.findCreateOrReloadConfiguredProject(_,r,i,o,s?void 0:e.fileName,a,s,c);if(!u)return;!u.project.parsedCommandLine&&(null==(l=t.parsedCommandLine)?void 0:l.options.composite)&&u.project.setPotentialProjectReference(t.canonicalConfigFilePath);const d=n(u);if(d)return d;t=u.project}}function ege(e,t,n,r,i,o,a,s){const c=t.options.disableReferencedProjectLoad?0:r;let l;return d(t.projectReferences,(t=>{var _;const u=Tfe(FV(t)),d=e.projectService.toCanonicalFileName(u),p=null==s?void 0:s.get(d);if(void 0!==p&&p>=c)return;const f=e.projectService.configFileExistenceInfoCache.get(d);let m=0===c?(null==f?void 0:f.exists)||(null==(_=e.resolvedChildConfigs)?void 0:_.has(d))?f.config.parsedCommandLine:void 0:e.getParsedCommandLine(u);if(m&&c!==r&&c>2&&(m=e.getParsedCommandLine(u)),!m)return;const g=e.projectService.findConfiguredProjectByProjectName(u,o);if(2!==c||f||g){switch(c){case 6:g&&g.projectService.reloadConfiguredProjectOptimized(g,i,a);case 4:(e.resolvedChildConfigs??(e.resolvedChildConfigs=new Set)).add(d);case 2:case 0:if(g||0!==c){const t=n(f??e.projectService.configFileExistenceInfoCache.get(d),g,u,i,e,d);if(t)return t}break;default:un.assertNever(c)}(s??(s=new Map)).set(d,c),(l??(l=[])).push(m)}}))||d(l,(t=>t.projectReferences&&ege(e,t,n,c,i,o,a,s)))}function tge(e,t,n,r,i){let o,a=!1;switch(t){case 2:case 3:_ge(e)&&(o=e.projectService.configFileExistenceInfoCache.get(e.canonicalConfigFilePath));break;case 4:if(o=lge(e),o)break;case 5:a=function(e,t){if(t){if(cge(e,t,!1))return!0}else sge(e);return!1}(e,n);break;case 6:if(e.projectService.reloadConfiguredProjectOptimized(e,r,i),o=lge(e),o)break;case 7:a=e.projectService.reloadConfiguredProjectClearingSemanticCache(e,r,i);break;case 0:case 1:break;default:un.assertNever(t)}return{project:e,sentConfigFileDiag:a,configFileExistenceInfo:o,reason:r}}function nge(e,t){return e.initialLoadPending?(e.potentialProjectReferences&&nd(e.potentialProjectReferences,t))??(e.resolvedChildConfigs&&nd(e.resolvedChildConfigs,t)):void 0}function rge(e,t,n){const r=n&&e.projectService.configuredProjects.get(n);return r&&t(r)}function ige(e,t){return function(e,t,n,r){return e.getCurrentProgram()?e.forEachResolvedProjectReference(t):e.initialLoadPending?nge(e,r):d(e.getProjectReferences(),n)}(e,(n=>rge(e,t,n.sourceFile.path)),(n=>rge(e,t,e.toPath(FV(n)))),(n=>rge(e,t,n)))}function oge(e,t){return`${Ze(t)?`Config: ${t} `:t?`Project: ${t.getProjectName()} `:""}WatchType: ${e}`}function age(e){return!e.isScriptOpen()&&void 0!==e.mTime}function sge(e){return e.invalidateResolutionsOfFailedLookupLocations(),e.dirty&&!e.updateGraph()}function cge(e,t,n){if(!n&&(e.invalidateResolutionsOfFailedLookupLocations(),!e.dirty))return!1;e.triggerFileForConfigFileDiag=t;const r=e.pendingUpdateLevel;if(e.updateGraph(),!e.triggerFileForConfigFileDiag&&!n)return 2===r;const i=e.projectService.sendConfigFileDiagEvent(e,t,n);return e.triggerFileForConfigFileDiag=void 0,i}function lge(e){const t=Tfe(e.getConfigFilePath()),n=e.projectService.ensureParsedConfigUptoDate(t,e.canonicalConfigFilePath,e.projectService.configFileExistenceInfoCache.get(e.canonicalConfigFilePath),e),r=n.config.parsedCommandLine;if(e.parsedCommandLine=r,e.resolvedChildConfigs=void 0,e.updateReferences(r.projectReferences),_ge(e))return n}function _ge(e){return!(!e.parsedCommandLine||!e.parsedCommandLine.options.composite&&!YL(e.parsedCommandLine))}function uge(e){return`User requested reload projects: ${e}`}function dge(e){pme(e)&&(e.projectOptions=!0)}function pge(e){let t=1;return()=>e(t++)}function fge(){return{idToCallbacks:new Map,pathToId:new Map}}function mge(e,t){return!!t&&!!e.eventHandler&&!!e.session}var gge=class e{constructor(e){var t;this.filenameToScriptInfo=new Map,this.nodeModulesWatchers=new Map,this.filenameToScriptInfoVersion=new Map,this.allJsFilesForOpenFileTelemetry=new Set,this.externalProjectToConfiguredProjectMap=new Map,this.externalProjects=[],this.inferredProjects=[],this.configuredProjects=new Map,this.newInferredProjectName=pge(Ffe),this.newAutoImportProviderProjectName=pge(Efe),this.newAuxiliaryProjectName=pge(Pfe),this.openFiles=new Map,this.configFileForOpenFiles=new Map,this.rootOfInferredProjects=new Set,this.openFilesWithNonRootedDiskPath=new Map,this.compilerOptionsForInferredProjectsPerProjectRoot=new Map,this.watchOptionsForInferredProjectsPerProjectRoot=new Map,this.typeAcquisitionForInferredProjectsPerProjectRoot=new Map,this.projectToSizeMap=new Map,this.configFileExistenceInfoCache=new Map,this.safelist=Lme,this.legacySafelist=new Map,this.pendingProjectUpdates=new Map,this.pendingEnsureProjectForOpenFiles=!1,this.seenProjects=new Map,this.sharedExtendedConfigFileWatchers=new Map,this.extendedConfigCache=new Map,this.baseline=rt,this.verifyDocumentRegistry=rt,this.verifyProgram=rt,this.onProjectCreation=rt,this.host=e.host,this.logger=e.logger,this.cancellationToken=e.cancellationToken,this.useSingleInferredProject=e.useSingleInferredProject,this.useInferredProjectPerProjectRoot=e.useInferredProjectPerProjectRoot,this.typingsInstaller=e.typingsInstaller||$me,this.throttleWaitMilliseconds=e.throttleWaitMilliseconds,this.eventHandler=e.eventHandler,this.suppressDiagnosticEvents=e.suppressDiagnosticEvents,this.globalPlugins=e.globalPlugins||xfe,this.pluginProbeLocations=e.pluginProbeLocations||xfe,this.allowLocalPluginLoads=!!e.allowLocalPluginLoads,this.typesMapLocation=void 0===e.typesMapLocation?jo(Do(this.getExecutingFilePath()),"typesMap.json"):e.typesMapLocation,this.session=e.session,this.jsDocParsingMode=e.jsDocParsingMode,void 0!==e.serverMode?this.serverMode=e.serverMode:this.serverMode=0,this.host.realpath&&(this.realpathToScriptInfos=$e()),this.currentDirectory=Tfe(this.host.getCurrentDirectory()),this.toCanonicalFileName=Wt(this.host.useCaseSensitiveFileNames),this.globalCacheLocationDirectoryPath=this.typingsInstaller.globalTypingsCacheLocation?Vo(this.toPath(this.typingsInstaller.globalTypingsCacheLocation)):void 0,this.throttledOperations=new Ife(this.host,this.logger),this.logger.info(`currentDirectory:: ${this.host.getCurrentDirectory()} useCaseSensitiveFileNames:: ${this.host.useCaseSensitiveFileNames}`),this.logger.info(`libs Location:: ${Do(this.host.getExecutingFilePath())}`),this.logger.info(`globalTypingsCacheLocation:: ${this.typingsInstaller.globalTypingsCacheLocation}`),this.typesMapLocation?this.loadTypesMap():this.logger.info("No types map provided; using the default"),this.typingsInstaller.attach(this),this.hostConfiguration={formatCodeOptions:fG(this.host.newLine),preferences:aG,hostInfo:"Unknown host",extraFileExtensions:[]},this.documentRegistry=D0(this.host.useCaseSensitiveFileNames,this.currentDirectory,this.jsDocParsingMode,this);const n=this.logger.hasLevel(3)?2:this.logger.loggingEnabled()?1:0,r=0!==n?e=>this.logger.info(e):rt;this.packageJsonCache=xge(this),this.watchFactory=0!==this.serverMode?{watchFile:u$,watchDirectory:u$}:hU(function(e,t){if(!mge(e,t))return;const n=fge(),r=fge(),i=fge();let o=1;return e.session.addProtocolHandler("watchChange",(e=>{var t;return Qe(t=e.arguments)?t.forEach(s):s(t),{responseRequired:!1}})),{watchFile:function(e,t){return a(n,e,t,(t=>({eventName:Nme,data:{id:t,path:e}})))},watchDirectory:function(e,t,n){return a(n?i:r,e,t,(t=>({eventName:Dme,data:{id:t,path:e,recursive:!!n,ignoreUpdate:!e.endsWith("/node_modules")||void 0}})))},getCurrentDirectory:()=>e.host.getCurrentDirectory(),useCaseSensitiveFileNames:e.host.useCaseSensitiveFileNames};function a({pathToId:t,idToCallbacks:n},r,i,a){const s=e.toPath(r);let c=t.get(s);c||t.set(s,c=o++);let l=n.get(c);return l||(n.set(c,l=new Set),e.eventHandler(a(c))),l.add(i),{close(){const r=n.get(c);(null==r?void 0:r.delete(i))&&(r.size||(n.delete(c),t.delete(s),e.eventHandler({eventName:Fme,data:{id:c}})))}}}function s({id:e,created:t,deleted:n,updated:r}){c(e,t,0),c(e,n,2),c(e,r,1)}function c(e,t,o){(null==t?void 0:t.length)&&(l(n,e,t,((e,t)=>e(t,o))),l(r,e,t,((e,t)=>e(t))),l(i,e,t,((e,t)=>e(t))))}function l(e,t,n,r){var i;null==(i=e.idToCallbacks.get(t))||i.forEach((e=>{n.forEach((t=>r(e,Oo(t))))}))}}(this,e.canUseWatchEvents)||this.host,n,r,oge),this.canUseWatchEvents=mge(this,e.canUseWatchEvents),null==(t=e.incrementalVerifier)||t.call(e,this)}toPath(e){return qo(e,this.currentDirectory,this.toCanonicalFileName)}getExecutingFilePath(){return this.getNormalizedAbsolutePath(this.host.getExecutingFilePath())}getNormalizedAbsolutePath(e){return Bo(e,this.host.getCurrentDirectory())}setDocument(e,t,n){un.checkDefined(this.getScriptInfoForPath(t)).cacheSourceFile={key:e,sourceFile:n}}getDocument(e,t){const n=this.getScriptInfoForPath(t);return n&&n.cacheSourceFile&&n.cacheSourceFile.key===e?n.cacheSourceFile.sourceFile:void 0}ensureInferredProjectsUpToDate_TestOnly(){this.ensureProjectStructuresUptoDate()}getCompilerOptionsForInferredProjects(){return this.compilerOptionsForInferredProjects}onUpdateLanguageServiceStateForProject(e,t){if(!this.eventHandler)return;const n={eventName:Tme,data:{project:e,languageServiceEnabled:t}};this.eventHandler(n)}loadTypesMap(){try{const e=this.host.readFile(this.typesMapLocation);if(void 0===e)return void this.logger.info(`Provided types map file "${this.typesMapLocation}" doesn't exist`);const t=JSON.parse(e);for(const e of Object.keys(t.typesMap))t.typesMap[e].match=new RegExp(t.typesMap[e].match,"i");this.safelist=t.typesMap;for(const e in t.simpleMap)De(t.simpleMap,e)&&this.legacySafelist.set(e,t.simpleMap[e].toLowerCase())}catch(e){this.logger.info(`Error loading types map: ${e}`),this.safelist=Lme,this.legacySafelist.clear()}}updateTypingsForProject(e){const t=this.findProject(e.projectName);if(t)switch(e.kind){case PK:return void t.updateTypingFiles(e.compilerOptions,e.typeAcquisition,e.unresolvedImports,e.typings);case AK:return void t.enqueueInstallTypingsForProject(!0)}}watchTypingLocations(e){var t;null==(t=this.findProject(e.projectName))||t.watchTypingLocations(e.files)}delayEnsureProjectForOpenFiles(){this.openFiles.size&&(this.pendingEnsureProjectForOpenFiles=!0,this.throttledOperations.schedule(Eme,2500,(()=>{0!==this.pendingProjectUpdates.size?this.delayEnsureProjectForOpenFiles():this.pendingEnsureProjectForOpenFiles&&(this.ensureProjectForOpenFiles(),this.sendProjectsUpdatedInBackgroundEvent())})))}delayUpdateProjectGraph(e){if(gme(e))return;if(e.markAsDirty(),mme(e))return;const t=e.getProjectName();this.pendingProjectUpdates.set(t,e),this.throttledOperations.schedule(t,250,(()=>{this.pendingProjectUpdates.delete(t)&&sge(e)}))}hasPendingProjectUpdate(e){return this.pendingProjectUpdates.has(e.getProjectName())}sendProjectsUpdatedInBackgroundEvent(){if(!this.eventHandler)return;const e={eventName:vme,data:{openFiles:Oe(this.openFiles.keys(),(e=>this.getScriptInfoForPath(e).fileName))}};this.eventHandler(e)}sendLargeFileReferencedEvent(e,t){if(!this.eventHandler)return;const n={eventName:kme,data:{file:e,fileSize:t,maxFileSize:yme}};this.eventHandler(n)}sendProjectLoadingStartEvent(e,t){if(!this.eventHandler)return;e.sendLoadingProjectFinish=!0;const n={eventName:bme,data:{project:e,reason:t}};this.eventHandler(n)}sendProjectLoadingFinishEvent(e){if(!this.eventHandler||!e.sendLoadingProjectFinish)return;e.sendLoadingProjectFinish=!1;const t={eventName:xme,data:{project:e}};this.eventHandler(t)}sendPerformanceEvent(e,t){this.performanceEventHandler&&this.performanceEventHandler({kind:e,durationMs:t})}delayUpdateProjectGraphAndEnsureProjectStructureForOpenFiles(e){this.delayUpdateProjectGraph(e),this.delayEnsureProjectForOpenFiles()}delayUpdateProjectGraphs(e,t){if(e.length){for(const n of e)t&&n.clearSourceMapperCache(),this.delayUpdateProjectGraph(n);this.delayEnsureProjectForOpenFiles()}}setCompilerOptionsForInferredProjects(e,t){un.assert(void 0===t||this.useInferredProjectPerProjectRoot,"Setting compiler options per project root path is only supported when useInferredProjectPerProjectRoot is enabled");const n=Rme(e),r=Mme(e,t),i=Bme(e);n.allowNonTsExtensions=!0;const o=t&&this.toCanonicalFileName(t);o?(this.compilerOptionsForInferredProjectsPerProjectRoot.set(o,n),this.watchOptionsForInferredProjectsPerProjectRoot.set(o,r||!1),this.typeAcquisitionForInferredProjectsPerProjectRoot.set(o,i)):(this.compilerOptionsForInferredProjects=n,this.watchOptionsForInferredProjects=r,this.typeAcquisitionForInferredProjects=i);for(const e of this.inferredProjects)(o?e.projectRootPath!==o:e.projectRootPath&&this.compilerOptionsForInferredProjectsPerProjectRoot.has(e.projectRootPath))||(e.setCompilerOptions(n),e.setTypeAcquisition(i),e.setWatchOptions(null==r?void 0:r.watchOptions),e.setProjectErrors(null==r?void 0:r.errors),e.compileOnSaveEnabled=n.compileOnSave,e.markAsDirty(),this.delayUpdateProjectGraph(e));this.delayEnsureProjectForOpenFiles()}findProject(e){if(void 0!==e)return Dfe(e)?Wme(e,this.inferredProjects):this.findExternalProjectByProjectName(e)||this.findConfiguredProjectByProjectName(Tfe(e))}forEachProject(e){this.externalProjects.forEach(e),this.configuredProjects.forEach(e),this.inferredProjects.forEach(e)}forEachEnabledProject(e){this.forEachProject((t=>{!t.isOrphan()&&t.languageServiceEnabled&&e(t)}))}getDefaultProjectForFile(e,t){return t?this.ensureDefaultProjectForFile(e):this.tryGetDefaultProjectForFile(e)}tryGetDefaultProjectForFile(e){const t=Ze(e)?this.getScriptInfoForNormalizedPath(e):e;return t&&!t.isOrphan()?t.getDefaultProject():void 0}tryGetDefaultProjectForEnsuringConfiguredProjectForFile(e){var t;const n=Ze(e)?this.getScriptInfoForNormalizedPath(e):e;if(n)return(null==(t=this.pendingOpenFileProjectUpdates)?void 0:t.delete(n.path))&&(this.tryFindDefaultConfiguredProjectAndLoadAncestorsForOpenScriptInfo(n,5),n.isOrphan()&&this.assignOrphanScriptInfoToInferredProject(n,this.openFiles.get(n.path))),this.tryGetDefaultProjectForFile(n)}ensureDefaultProjectForFile(e){return this.tryGetDefaultProjectForEnsuringConfiguredProjectForFile(e)||this.doEnsureDefaultProjectForFile(e)}doEnsureDefaultProjectForFile(e){this.ensureProjectStructuresUptoDate();const t=Ze(e)?this.getScriptInfoForNormalizedPath(e):e;return t?t.getDefaultProject():(this.logErrorForScriptInfoNotFound(Ze(e)?e:e.fileName),yfe.ThrowNoProject())}getScriptInfoEnsuringProjectsUptoDate(e){return this.ensureProjectStructuresUptoDate(),this.getScriptInfo(e)}ensureProjectStructuresUptoDate(){let e=this.pendingEnsureProjectForOpenFiles;this.pendingProjectUpdates.clear();const t=t=>{e=sge(t)||e};this.externalProjects.forEach(t),this.configuredProjects.forEach(t),this.inferredProjects.forEach(t),e&&this.ensureProjectForOpenFiles()}getFormatCodeOptions(e){const t=this.getScriptInfoForNormalizedPath(e);return t&&t.getFormatCodeSettings()||this.hostConfiguration.formatCodeOptions}getPreferences(e){const t=this.getScriptInfoForNormalizedPath(e);return{...this.hostConfiguration.preferences,...t&&t.getPreferences()}}getHostFormatCodeOptions(){return this.hostConfiguration.formatCodeOptions}getHostPreferences(){return this.hostConfiguration.preferences}onSourceFileChanged(e,t){un.assert(!e.isScriptOpen()),2===t?this.handleDeletedFile(e,!0):(e.deferredDelete&&(e.deferredDelete=void 0),e.delayReloadNonMixedContentFile(),this.delayUpdateProjectGraphs(e.containingProjects,!1),this.handleSourceMapProjects(e))}handleSourceMapProjects(e){if(e.sourceMapFilePath)if(Ze(e.sourceMapFilePath)){const t=this.getScriptInfoForPath(e.sourceMapFilePath);this.delayUpdateSourceInfoProjects(null==t?void 0:t.sourceInfos)}else this.delayUpdateSourceInfoProjects(e.sourceMapFilePath.sourceInfos);this.delayUpdateSourceInfoProjects(e.sourceInfos),e.declarationInfoPath&&this.delayUpdateProjectsOfScriptInfoPath(e.declarationInfoPath)}delayUpdateSourceInfoProjects(e){e&&e.forEach(((e,t)=>this.delayUpdateProjectsOfScriptInfoPath(t)))}delayUpdateProjectsOfScriptInfoPath(e){const t=this.getScriptInfoForPath(e);t&&this.delayUpdateProjectGraphs(t.containingProjects,!0)}handleDeletedFile(e,t){un.assert(!e.isScriptOpen()),this.delayUpdateProjectGraphs(e.containingProjects,!1),this.handleSourceMapProjects(e),e.detachAllProjects(),t?(e.delayReloadNonMixedContentFile(),e.deferredDelete=!0):this.deleteScriptInfo(e)}watchWildcardDirectory(e,t,n,r){let i=this.watchFactory.watchDirectory(e,(t=>this.onWildCardDirectoryWatcherInvoke(e,n,r,o,t)),t,this.getWatchOptionsFromProjectWatchOptions(r.parsedCommandLine.watchOptions,Do(n)),p$.WildcardDirectory,n);const o={packageJsonWatches:void 0,close(){var e;i&&(i.close(),i=void 0,null==(e=o.packageJsonWatches)||e.forEach((e=>{e.projects.delete(o),e.close()})),o.packageJsonWatches=void 0)}};return o}onWildCardDirectoryWatcherInvoke(e,t,n,r,i){const o=this.toPath(i),a=n.cachedDirectoryStructureHost.addOrDeleteFileOrDirectory(i,o);if("package.json"===Fo(o)&&!wZ(o)&&(a&&a.fileExists||!a&&this.host.fileExists(i))){const e=this.getNormalizedAbsolutePath(i);this.logger.info(`Config: ${t} Detected new package.json: ${e}`),this.packageJsonCache.addOrUpdate(e,o),this.watchPackageJsonFile(e,o,r)}(null==a?void 0:a.fileExists)||this.sendSourceFileChange(o);const s=this.findConfiguredProjectByProjectName(t);fU({watchedDirPath:this.toPath(e),fileOrDirectory:i,fileOrDirectoryPath:o,configFileName:t,extraFileExtensions:this.hostConfiguration.extraFileExtensions,currentDirectory:this.currentDirectory,options:n.parsedCommandLine.options,program:(null==s?void 0:s.getCurrentProgram())||n.parsedCommandLine.fileNames,useCaseSensitiveFileNames:this.host.useCaseSensitiveFileNames,writeLog:e=>this.logger.info(e),toPath:e=>this.toPath(e),getScriptKind:s?e=>s.getScriptKind(e):void 0})||(2!==n.updateLevel&&(n.updateLevel=1),n.projects.forEach(((e,n)=>{var r;if(!e)return;const i=this.getConfiguredProjectByCanonicalConfigFilePath(n);if(!i)return;if(s!==i&&this.getHostPreferences().includeCompletionsForModuleExports){const e=this.toPath(t);b(null==(r=i.getCurrentProgram())?void 0:r.getResolvedProjectReferences(),(t=>(null==t?void 0:t.sourceFile.path)===e))&&i.markAutoImportProviderAsDirty()}const a=s===i?1:0;if(!(i.pendingUpdateLevel>a))if(this.openFiles.has(o))if(un.checkDefined(this.getScriptInfoForPath(o)).isAttached(i)){const e=Math.max(a,i.openFileWatchTriggered.get(o)||0);i.openFileWatchTriggered.set(o,e)}else i.pendingUpdateLevel=a,this.delayUpdateProjectGraphAndEnsureProjectStructureForOpenFiles(i);else i.pendingUpdateLevel=a,this.delayUpdateProjectGraphAndEnsureProjectStructureForOpenFiles(i)})))}delayUpdateProjectsFromParsedConfigOnConfigFileChange(e,t){const n=this.configFileExistenceInfoCache.get(e);if(!(null==n?void 0:n.config))return!1;let r=!1;return n.config.updateLevel=2,n.config.cachedDirectoryStructureHost.clearCache(),n.config.projects.forEach(((n,i)=>{var o,a,s;const c=this.getConfiguredProjectByCanonicalConfigFilePath(i);if(c)if(r=!0,i===e){if(c.initialLoadPending)return;c.pendingUpdateLevel=2,c.pendingUpdateReason=t,this.delayUpdateProjectGraph(c),c.markAutoImportProviderAsDirty()}else{if(c.initialLoadPending)return void(null==(a=null==(o=this.configFileExistenceInfoCache.get(i))?void 0:o.openFilesImpactedByConfigFile)||a.forEach((e=>{var t;(null==(t=this.pendingOpenFileProjectUpdates)?void 0:t.has(e))||(this.pendingOpenFileProjectUpdates??(this.pendingOpenFileProjectUpdates=new Map)).set(e,this.configFileForOpenFiles.get(e))})));const t=this.toPath(e);c.resolutionCache.removeResolutionsFromProjectReferenceRedirects(t),this.delayUpdateProjectGraph(c),this.getHostPreferences().includeCompletionsForModuleExports&&b(null==(s=c.getCurrentProgram())?void 0:s.getResolvedProjectReferences(),(e=>(null==e?void 0:e.sourceFile.path)===t))&&c.markAutoImportProviderAsDirty()}})),r}onConfigFileChanged(e,t,n){const r=this.configFileExistenceInfoCache.get(t),i=this.getConfiguredProjectByCanonicalConfigFilePath(t),o=null==i?void 0:i.deferredClose;2===n?(r.exists=!1,i&&(i.deferredClose=!0)):(r.exists=!0,o&&(i.deferredClose=void 0,i.markAsDirty())),this.delayUpdateProjectsFromParsedConfigOnConfigFileChange(t,"Change in config file detected"),this.openFiles.forEach(((e,t)=>{var n,i;const o=this.configFileForOpenFiles.get(t);if(!(null==(n=r.openFilesImpactedByConfigFile)?void 0:n.has(t)))return;this.configFileForOpenFiles.delete(t);const a=this.getScriptInfoForPath(t);this.getConfigFileNameForFile(a,!1)&&((null==(i=this.pendingOpenFileProjectUpdates)?void 0:i.has(t))||(this.pendingOpenFileProjectUpdates??(this.pendingOpenFileProjectUpdates=new Map)).set(t,o))})),this.delayEnsureProjectForOpenFiles()}removeProject(e){switch(this.logger.info("`remove Project::"),e.print(!0,!0,!1),e.close(),un.shouldAssert(1)&&this.filenameToScriptInfo.forEach((t=>un.assert(!t.isAttached(e),"Found script Info still attached to project",(()=>`${e.projectName}: ScriptInfos still attached: ${JSON.stringify(Oe(J(this.filenameToScriptInfo.values(),(t=>t.isAttached(e)?{fileName:t.fileName,projects:t.containingProjects.map((e=>e.projectName)),hasMixedContent:t.hasMixedContent}:void 0))),void 0," ")}`)))),this.pendingProjectUpdates.delete(e.getProjectName()),e.projectKind){case 2:Vt(this.externalProjects,e),this.projectToSizeMap.delete(e.getProjectName());break;case 1:this.configuredProjects.delete(e.canonicalConfigFilePath),this.projectToSizeMap.delete(e.canonicalConfigFilePath);break;case 0:Vt(this.inferredProjects,e)}}assignOrphanScriptInfoToInferredProject(e,t){un.assert(e.isOrphan());const n=this.getOrCreateInferredProjectForProjectRootPathIfEnabled(e,t)||this.getOrCreateSingleInferredProjectIfEnabled()||this.getOrCreateSingleInferredWithoutProjectRoot(e.isDynamic?t||this.currentDirectory:Do(go(e.fileName)?e.fileName:Bo(e.fileName,t?this.getNormalizedAbsolutePath(t):this.currentDirectory)));if(n.addRoot(e),e.containingProjects[0]!==n&&(zt(e.containingProjects,n),e.containingProjects.unshift(n)),n.updateGraph(),!this.useSingleInferredProject&&!n.projectRootPath)for(const e of this.inferredProjects){if(e===n||e.isOrphan())continue;const t=e.getRootScriptInfos();un.assert(1===t.length||!!e.projectRootPath),1===t.length&&d(t[0].containingProjects,(e=>e!==t[0].containingProjects[0]&&!e.isOrphan()))&&e.removeFile(t[0],!0,!0)}return n}assignOrphanScriptInfosToInferredProject(){this.openFiles.forEach(((e,t)=>{const n=this.getScriptInfoForPath(t);n.isOrphan()&&this.assignOrphanScriptInfoToInferredProject(n,e)}))}closeOpenFile(e,t){var n;const r=!e.isDynamic&&this.host.fileExists(e.fileName);e.close(r),this.stopWatchingConfigFilesForScriptInfo(e);const i=this.toCanonicalFileName(e.fileName);this.openFilesWithNonRootedDiskPath.get(i)===e&&this.openFilesWithNonRootedDiskPath.delete(i);let o=!1;for(const t of e.containingProjects){if(pme(t)){e.hasMixedContent&&e.registerFileUpdate();const n=t.openFileWatchTriggered.get(e.path);void 0!==n&&(t.openFileWatchTriggered.delete(e.path),t.pendingUpdateLevelthis.onConfigFileChanged(e,t,r)),2e3,this.getWatchOptionsFromProjectWatchOptions(null==(i=null==(r=null==o?void 0:o.config)?void 0:r.parsedCommandLine)?void 0:i.watchOptions,Do(e)),p$.ConfigFile,n)),this.ensureConfigFileWatcherForProject(o,n)}ensureConfigFileWatcherForProject(e,t){const n=e.config.projects;n.set(t.canonicalConfigFilePath,n.get(t.canonicalConfigFilePath)||!1)}releaseParsedConfig(e,t){var n,r,i;const o=this.configFileExistenceInfoCache.get(e);(null==(n=o.config)?void 0:n.projects.delete(t.canonicalConfigFilePath))&&((null==(r=o.config)?void 0:r.projects.size)||(o.config=void 0,_U(e,this.sharedExtendedConfigFileWatchers),un.checkDefined(o.watcher),(null==(i=o.openFilesImpactedByConfigFile)?void 0:i.size)?o.inferredProjectRoots?FW(Do(e))||(o.watcher.close(),o.watcher=Hme):(o.watcher.close(),o.watcher=void 0):(o.watcher.close(),this.configFileExistenceInfoCache.delete(e))))}stopWatchingConfigFilesForScriptInfo(e){if(0!==this.serverMode)return;const t=this.rootOfInferredProjects.delete(e),n=e.isScriptOpen();n&&!t||this.forEachConfigFileLocation(e,(r=>{var i,o,a;const s=this.configFileExistenceInfoCache.get(r);if(s){if(n){if(!(null==(i=null==s?void 0:s.openFilesImpactedByConfigFile)?void 0:i.has(e.path)))return}else if(!(null==(o=s.openFilesImpactedByConfigFile)?void 0:o.delete(e.path)))return;t&&(s.inferredProjectRoots--,!s.watcher||s.config||s.inferredProjectRoots||(s.watcher.close(),s.watcher=void 0)),(null==(a=s.openFilesImpactedByConfigFile)?void 0:a.size)||s.config||(un.assert(!s.watcher),this.configFileExistenceInfoCache.delete(r))}}))}startWatchingConfigFilesForInferredProjectRoot(e){0===this.serverMode&&(un.assert(e.isScriptOpen()),this.rootOfInferredProjects.add(e),this.forEachConfigFileLocation(e,((t,n)=>{let r=this.configFileExistenceInfoCache.get(t);r?r.inferredProjectRoots=(r.inferredProjectRoots??0)+1:(r={exists:this.host.fileExists(n),inferredProjectRoots:1},this.configFileExistenceInfoCache.set(t,r)),(r.openFilesImpactedByConfigFile??(r.openFilesImpactedByConfigFile=new Set)).add(e.path),r.watcher||(r.watcher=FW(Do(t))?this.watchFactory.watchFile(n,((e,r)=>this.onConfigFileChanged(n,t,r)),2e3,this.hostConfiguration.watchOptions,p$.ConfigFileForInferredRoot):Hme)})))}forEachConfigFileLocation(e,t){if(0!==this.serverMode)return;un.assert(!Gme(e)||this.openFiles.has(e.path));const n=this.openFiles.get(e.path);if(un.checkDefined(this.getScriptInfo(e.path)).isDynamic)return;let r=Do(e.fileName);const i=()=>Zo(n,r,this.currentDirectory,!this.host.useCaseSensitiveFileNames),o=!n||!i();let a=!0,s=!0;Xme(e)&&(a=!Rt(e.fileName,"tsconfig.json")&&(s=!1));do{const e=Cfe(r,this.currentDirectory,this.toCanonicalFileName);if(a){const n=jo(r,"tsconfig.json");if(t(jo(e,"tsconfig.json"),n))return n}if(s){const n=jo(r,"jsconfig.json");if(t(jo(e,"jsconfig.json"),n))return n}if(sa(e))break;const n=Do(r);if(n===r)break;r=n,a=s=!0}while(o||i())}findDefaultConfiguredProject(e){var t;return null==(t=this.findDefaultConfiguredProjectWorker(e,1))?void 0:t.defaultProject}findDefaultConfiguredProjectWorker(e,t){return e.isScriptOpen()?this.tryFindDefaultConfiguredProjectForOpenScriptInfo(e,t):void 0}getConfigFileNameForFileFromCache(e,t){if(t){const t=Kme(e,this.pendingOpenFileProjectUpdates);if(void 0!==t)return t}return Kme(e,this.configFileForOpenFiles)}setConfigFileNameForFileInCache(e,t){if(!this.openFiles.has(e.path))return;const n=t||!1;if(Xme(e)){let t=this.configFileForOpenFiles.get(e.path);t&&!Ze(t)||this.configFileForOpenFiles.set(e.path,t=(new Map).set(!1,t)),t.set(e.fileName,n)}else this.configFileForOpenFiles.set(e.path,n)}getConfigFileNameForFile(e,t){const n=this.getConfigFileNameForFileFromCache(e,t);if(void 0!==n)return n||void 0;if(t)return;const r=this.forEachConfigFileLocation(e,((t,n)=>this.configFileExists(n,t,e)));return this.logger.info(`getConfigFileNameForFile:: File: ${e.fileName} ProjectRootPath: ${this.openFiles.get(e.path)}:: Result: ${r}`),this.setConfigFileNameForFileInCache(e,r),r}printProjects(){this.logger.hasLevel(1)&&(this.logger.startGroup(),this.externalProjects.forEach(vge),this.configuredProjects.forEach(vge),this.inferredProjects.forEach(vge),this.logger.info("Open files: "),this.openFiles.forEach(((e,t)=>{const n=this.getScriptInfoForPath(t);this.logger.info(`\tFileName: ${n.fileName} ProjectRootPath: ${e}`),this.logger.info(`\t\tProjects: ${n.containingProjects.map((e=>e.getProjectName()))}`)})),this.logger.endGroup())}findConfiguredProjectByProjectName(e,t){const n=this.toCanonicalFileName(e),r=this.getConfiguredProjectByCanonicalConfigFilePath(n);return t?r:(null==r?void 0:r.deferredClose)?void 0:r}getConfiguredProjectByCanonicalConfigFilePath(e){return this.configuredProjects.get(e)}findExternalProjectByProjectName(e){return Wme(e,this.externalProjects)}getFilenameForExceededTotalSizeLimitForNonTsFiles(e,t,n,r){if(t&&t.disableSizeLimit||!this.host.getFileSize)return;let i=hme;this.projectToSizeMap.set(e,0),this.projectToSizeMap.forEach((e=>i-=e||0));let o=0;for(const e of n){const t=r.getFileName(e);if(!IS(t)&&(o+=this.host.getFileSize(t),o>hme||o>i)){const e=n.map((e=>r.getFileName(e))).filter((e=>!IS(e))).map((e=>({name:e,size:this.host.getFileSize(e)}))).sort(((e,t)=>t.size-e.size)).slice(0,5);return this.logger.info(`Non TS file size exceeded limit (${o}). Largest files: ${e.map((e=>`${e.name}:${e.size}`)).join(", ")}`),t}}this.projectToSizeMap.set(e,o)}createExternalProject(e,t,n,r,i){const o=Rme(n),a=Mme(n,Do(Oo(e))),s=new ume(e,this,o,this.getFilenameForExceededTotalSizeLimitForNonTsFiles(e,o,t,Vme),void 0===n.compileOnSave||n.compileOnSave,void 0,null==a?void 0:a.watchOptions);return s.setProjectErrors(null==a?void 0:a.errors),s.excludedFiles=i,this.addFilesToNonInferredProject(s,t,Vme,r),this.externalProjects.push(s),s}sendProjectTelemetry(e){if(this.seenProjects.has(e.projectName))return void dge(e);if(this.seenProjects.set(e.projectName,!0),!this.eventHandler||!this.host.createSHA256Hash)return void dge(e);const t=pme(e)?e.projectOptions:void 0;dge(e);const n={projectId:this.host.createSHA256Hash(e.projectName),fileStats:Zfe(e.getScriptInfos(),!0),compilerOptions:Pj(e.getCompilationSettings()),typeAcquisition:function({enable:e,include:t,exclude:n}){return{enable:e,include:void 0!==t&&0!==t.length,exclude:void 0!==n&&0!==n.length}}(e.getTypeAcquisition()),extends:t&&t.configHasExtendsProperty,files:t&&t.configHasFilesProperty,include:t&&t.configHasIncludeProperty,exclude:t&&t.configHasExcludeProperty,compileOnSave:e.compileOnSaveEnabled,configFileName:pme(e)&&Lfe(e.getConfigFilePath())||"other",projectType:e instanceof ume?"external":"configured",languageServiceEnabled:e.languageServiceEnabled,version:s};this.eventHandler({eventName:Cme,data:n})}addFilesToNonInferredProject(e,t,n,r){this.updateNonInferredProjectFiles(e,t,n),e.setTypeAcquisition(r),e.markAsDirty()}createConfiguredProject(e,t){var n;null==(n=Hn)||n.instant(Hn.Phase.Session,"createConfiguredProject",{configFilePath:e});const r=this.toCanonicalFileName(e);let i=this.configFileExistenceInfoCache.get(r);i?i.exists=!0:this.configFileExistenceInfoCache.set(r,i={exists:!0}),i.config||(i.config={cachedDirectoryStructureHost:sU(this.host,this.host.getCurrentDirectory(),this.host.useCaseSensitiveFileNames),projects:new Map,updateLevel:2});const o=new _me(e,r,this,i.config.cachedDirectoryStructureHost,t);return un.assert(!this.configuredProjects.has(r)),this.configuredProjects.set(r,o),this.createConfigFileWatcherForParsedConfig(e,r,o),o}loadConfiguredProject(e,t){var n,r;null==(n=Hn)||n.push(Hn.Phase.Session,"loadConfiguredProject",{configFilePath:e.canonicalConfigFilePath}),this.sendProjectLoadingStartEvent(e,t);const i=Tfe(e.getConfigFilePath()),o=this.ensureParsedConfigUptoDate(i,e.canonicalConfigFilePath,this.configFileExistenceInfoCache.get(e.canonicalConfigFilePath),e),a=o.config.parsedCommandLine;un.assert(!!a.fileNames);const s=a.options;e.projectOptions||(e.projectOptions={configHasExtendsProperty:void 0!==a.raw.extends,configHasFilesProperty:void 0!==a.raw.files,configHasIncludeProperty:void 0!==a.raw.include,configHasExcludeProperty:void 0!==a.raw.exclude}),e.parsedCommandLine=a,e.setProjectErrors(a.options.configFile.parseDiagnostics),e.updateReferences(a.projectReferences);const c=this.getFilenameForExceededTotalSizeLimitForNonTsFiles(e.canonicalConfigFilePath,s,a.fileNames,Ume);c?(e.disableLanguageService(c),this.configFileExistenceInfoCache.forEach(((t,n)=>this.stopWatchingWildCards(n,e)))):(e.setCompilerOptions(s),e.setWatchOptions(a.watchOptions),e.enableLanguageService(),this.watchWildcards(i,o,e)),e.enablePluginsWithOptions(s);const l=a.fileNames.concat(e.getExternalFiles(2));this.updateRootAndOptionsOfNonInferredProject(e,l,Ume,s,a.typeAcquisition,a.compileOnSave,a.watchOptions),null==(r=Hn)||r.pop()}ensureParsedConfigUptoDate(e,t,n,r){var i,o,a;if(n.config&&(1===n.config.updateLevel&&this.reloadFileNamesOfParsedConfig(e,n.config),!n.config.updateLevel))return this.ensureConfigFileWatcherForProject(n,r),n;if(!n.exists&&n.config)return n.config.updateLevel=void 0,this.ensureConfigFileWatcherForProject(n,r),n;const s=(null==(i=n.config)?void 0:i.cachedDirectoryStructureHost)||sU(this.host,this.host.getCurrentDirectory(),this.host.useCaseSensitiveFileNames),c=tL(e,(e=>this.host.readFile(e))),l=RI(e,Ze(c)?c:""),_=l.parseDiagnostics;Ze(c)||_.push(c);const u=Do(e),d=RL(l,s,u,void 0,e,void 0,this.hostConfiguration.extraFileExtensions,this.extendedConfigCache);d.errors.length&&_.push(...d.errors),this.logger.info(`Config: ${e} : ${JSON.stringify({rootNames:d.fileNames,options:d.options,watchOptions:d.watchOptions,projectReferences:d.projectReferences},void 0," ")}`);const p=null==(o=n.config)?void 0:o.parsedCommandLine;return n.config?(n.config.parsedCommandLine=d,n.config.watchedDirectoriesStale=!0,n.config.updateLevel=void 0):n.config={parsedCommandLine:d,cachedDirectoryStructureHost:s,projects:new Map},p||dT(this.getWatchOptionsFromProjectWatchOptions(void 0,u),this.getWatchOptionsFromProjectWatchOptions(d.watchOptions,u))||(null==(a=n.watcher)||a.close(),n.watcher=void 0),this.createConfigFileWatcherForParsedConfig(e,t,r),lU(t,d.options,this.sharedExtendedConfigFileWatchers,((t,n)=>this.watchFactory.watchFile(t,(()=>{var e;uU(this.extendedConfigCache,n,(e=>this.toPath(e)));let r=!1;null==(e=this.sharedExtendedConfigFileWatchers.get(n))||e.projects.forEach((e=>{r=this.delayUpdateProjectsFromParsedConfigOnConfigFileChange(e,`Change in extended config file ${t} detected`)||r})),r&&this.delayEnsureProjectForOpenFiles()}),2e3,this.hostConfiguration.watchOptions,p$.ExtendedConfigFile,e)),(e=>this.toPath(e))),n}watchWildcards(e,{exists:t,config:n},r){if(n.projects.set(r.canonicalConfigFilePath,!0),t){if(n.watchedDirectories&&!n.watchedDirectoriesStale)return;n.watchedDirectoriesStale=!1,pU(n.watchedDirectories||(n.watchedDirectories=new Map),n.parsedCommandLine.wildcardDirectories,((t,r)=>this.watchWildcardDirectory(t,r,e,n)))}else{if(n.watchedDirectoriesStale=!1,!n.watchedDirectories)return;_x(n.watchedDirectories,vU),n.watchedDirectories=void 0}}stopWatchingWildCards(e,t){const n=this.configFileExistenceInfoCache.get(e);n.config&&n.config.projects.get(t.canonicalConfigFilePath)&&(n.config.projects.set(t.canonicalConfigFilePath,!1),td(n.config.projects,st)||(n.config.watchedDirectories&&(_x(n.config.watchedDirectories,vU),n.config.watchedDirectories=void 0),n.config.watchedDirectoriesStale=void 0))}updateNonInferredProjectFiles(e,t,n){var r;const i=e.getRootFilesMap(),o=new Map;for(const a of t){const t=n.getFileName(a),s=Tfe(t);let c;if(Kfe(s)||e.fileExists(t)){const t=n.getScriptKind(a,this.hostConfiguration.extraFileExtensions),r=n.hasMixedContent(a,this.hostConfiguration.extraFileExtensions),o=un.checkDefined(this.getOrCreateScriptInfoNotOpenedByClientForNormalizedPath(s,e.currentDirectory,t,r,e.directoryStructureHost,!1));c=o.path;const l=i.get(c);l&&l.info===o?l.fileName=s:(e.addRoot(o,s),o.isScriptOpen()&&this.removeRootOfInferredProjectIfNowPartOfOtherProject(o))}else{c=Cfe(s,this.currentDirectory,this.toCanonicalFileName);const t=i.get(c);t?((null==(r=t.info)?void 0:r.path)===c&&(e.removeFile(t.info,!1,!0),t.info=void 0),t.fileName=s):i.set(c,{fileName:s})}o.set(c,!0)}i.size>o.size&&i.forEach(((t,n)=>{o.has(n)||(t.info?e.removeFile(t.info,e.fileExists(t.info.fileName),!0):i.delete(n))}))}updateRootAndOptionsOfNonInferredProject(e,t,n,r,i,o,a){e.setCompilerOptions(r),e.setWatchOptions(a),void 0!==o&&(e.compileOnSaveEnabled=o),this.addFilesToNonInferredProject(e,t,n,i)}reloadFileNamesOfConfiguredProject(e){const t=this.reloadFileNamesOfParsedConfig(e.getConfigFilePath(),this.configFileExistenceInfoCache.get(e.canonicalConfigFilePath).config);return e.updateErrorOnNoInputFiles(t),this.updateNonInferredProjectFiles(e,t.fileNames.concat(e.getExternalFiles(1)),Ume),e.markAsDirty(),e.updateGraph()}reloadFileNamesOfParsedConfig(e,t){if(void 0===t.updateLevel)return t.parsedCommandLine;un.assert(1===t.updateLevel);const n=vj(t.parsedCommandLine.options.configFile.configFileSpecs,Do(e),t.parsedCommandLine.options,t.cachedDirectoryStructureHost,this.hostConfiguration.extraFileExtensions);return t.parsedCommandLine={...t.parsedCommandLine,fileNames:n},t.updateLevel=void 0,t.parsedCommandLine}setFileNamesOfAutoImportProviderOrAuxillaryProject(e,t){this.updateNonInferredProjectFiles(e,t,Ume)}reloadConfiguredProjectOptimized(e,t,n){n.has(e)||(n.set(e,6),e.initialLoadPending||this.setProjectForReload(e,2,t))}reloadConfiguredProjectClearingSemanticCache(e,t,n){return 7!==n.get(e)&&(n.set(e,7),this.clearSemanticCache(e),this.reloadConfiguredProject(e,uge(t)),!0)}setProjectForReload(e,t,n){2===t&&this.clearSemanticCache(e),e.pendingUpdateReason=n&&uge(n),e.pendingUpdateLevel=t}reloadConfiguredProject(e,t){e.initialLoadPending=!1,this.setProjectForReload(e,0),this.loadConfiguredProject(e,t),cge(e,e.triggerFileForConfigFileDiag??e.getConfigFilePath(),!0)}clearSemanticCache(e){e.originalConfiguredProjects=void 0,e.resolutionCache.clear(),e.getLanguageService(!1).cleanupSemanticCache(),e.cleanupProgram(),e.markAsDirty()}sendConfigFileDiagEvent(e,t,n){if(!this.eventHandler||this.suppressDiagnosticEvents)return!1;const r=e.getLanguageService().getCompilerOptionsDiagnostics();return r.push(...e.getAllProjectErrors()),!(!n&&r.length===(e.configDiagDiagnosticsReported??0)||(e.configDiagDiagnosticsReported=r.length,this.eventHandler({eventName:Sme,data:{configFileName:e.getConfigFilePath(),diagnostics:r,triggerFile:t??e.getConfigFilePath()}}),0))}getOrCreateInferredProjectForProjectRootPathIfEnabled(e,t){if(!this.useInferredProjectPerProjectRoot||e.isDynamic&&void 0===t)return;if(t){const e=this.toCanonicalFileName(t);for(const t of this.inferredProjects)if(t.projectRootPath===e)return t;return this.createInferredProject(t,!1,t)}let n;for(const t of this.inferredProjects)t.projectRootPath&&Zo(t.projectRootPath,e.path,this.host.getCurrentDirectory(),!this.host.useCaseSensitiveFileNames)&&(n&&n.projectRootPath.length>t.projectRootPath.length||(n=t));return n}getOrCreateSingleInferredProjectIfEnabled(){if(this.useSingleInferredProject)return this.inferredProjects.length>0&&void 0===this.inferredProjects[0].projectRootPath?this.inferredProjects[0]:this.createInferredProject(this.currentDirectory,!0,void 0)}getOrCreateSingleInferredWithoutProjectRoot(e){un.assert(!this.useSingleInferredProject);const t=this.toCanonicalFileName(this.getNormalizedAbsolutePath(e));for(const e of this.inferredProjects)if(!e.projectRootPath&&e.isOrphan()&&e.canonicalCurrentDirectory===t)return e;return this.createInferredProject(e,!1,void 0)}createInferredProject(e,t,n){const r=n&&this.compilerOptionsForInferredProjectsPerProjectRoot.get(n)||this.compilerOptionsForInferredProjects;let i,o;n&&(i=this.watchOptionsForInferredProjectsPerProjectRoot.get(n),o=this.typeAcquisitionForInferredProjectsPerProjectRoot.get(n)),void 0===i&&(i=this.watchOptionsForInferredProjects),void 0===o&&(o=this.typeAcquisitionForInferredProjects),i=i||void 0;const a=new ame(this,r,null==i?void 0:i.watchOptions,n,e,o);return a.setProjectErrors(null==i?void 0:i.errors),t?this.inferredProjects.unshift(a):this.inferredProjects.push(a),a}getOrCreateScriptInfoNotOpenedByClient(e,t,n,r){return this.getOrCreateScriptInfoNotOpenedByClientForNormalizedPath(Tfe(e),t,void 0,void 0,n,r)}getScriptInfo(e){return this.getScriptInfoForNormalizedPath(Tfe(e))}getScriptInfoOrConfig(e){const t=Tfe(e),n=this.getScriptInfoForNormalizedPath(t);if(n)return n;const r=this.configuredProjects.get(this.toPath(e));return r&&r.getCompilerOptions().configFile}logErrorForScriptInfoNotFound(e){const t=Oe(J(this.filenameToScriptInfo.entries(),(e=>e[1].deferredDelete?void 0:e)),(([e,t])=>({path:e,fileName:t.fileName})));this.logger.msg(`Could not find file ${JSON.stringify(e)}.\nAll files are: ${JSON.stringify(t)}`,"Err")}getSymlinkedProjects(e){let t;if(this.realpathToScriptInfos){const t=e.getRealpathIfDifferent();t&&d(this.realpathToScriptInfos.get(t),n),d(this.realpathToScriptInfos.get(e.path),n)}return t;function n(n){if(n!==e)for(const r of n.containingProjects)!r.languageServiceEnabled||r.isOrphan()||r.getCompilerOptions().preserveSymlinks||e.isAttached(r)||(t?td(t,((e,t)=>t!==n.path&&T(e,r)))||t.add(n.path,r):(t=$e(),t.add(n.path,r)))}}watchClosedScriptInfo(e){if(un.assert(!e.fileWatcher),!(e.isDynamicOrHasMixedContent()||this.globalCacheLocationDirectoryPath&&Gt(e.path,this.globalCacheLocationDirectoryPath))){const t=e.fileName.indexOf("/node_modules/");this.host.getModifiedTime&&-1!==t?(e.mTime=this.getModifiedTime(e),e.fileWatcher=this.watchClosedScriptInfoInNodeModules(e.fileName.substring(0,t))):e.fileWatcher=this.watchFactory.watchFile(e.fileName,((t,n)=>this.onSourceFileChanged(e,n)),500,this.hostConfiguration.watchOptions,p$.ClosedScriptInfo)}}createNodeModulesWatcher(e,t){let n=this.watchFactory.watchDirectory(e,(e=>{var n;const i=wW(this.toPath(e));if(!i)return;const o=Fo(i);if(!(null==(n=r.affectedModuleSpecifierCacheProjects)?void 0:n.size)||"package.json"!==o&&"node_modules"!==o||r.affectedModuleSpecifierCacheProjects.forEach((e=>{var t;null==(t=e.getModuleSpecifierCache())||t.clear()})),r.refreshScriptInfoRefCount)if(t===i)this.refreshScriptInfosInDirectory(t);else{const e=this.filenameToScriptInfo.get(i);e?age(e)&&this.refreshScriptInfo(e):xo(i)||this.refreshScriptInfosInDirectory(i)}}),1,this.hostConfiguration.watchOptions,p$.NodeModules);const r={refreshScriptInfoRefCount:0,affectedModuleSpecifierCacheProjects:void 0,close:()=>{var e;!n||r.refreshScriptInfoRefCount||(null==(e=r.affectedModuleSpecifierCacheProjects)?void 0:e.size)||(n.close(),n=void 0,this.nodeModulesWatchers.delete(t))}};return this.nodeModulesWatchers.set(t,r),r}watchPackageJsonsInNodeModules(e,t){var n;const r=this.toPath(e),i=this.nodeModulesWatchers.get(r)||this.createNodeModulesWatcher(e,r);return un.assert(!(null==(n=i.affectedModuleSpecifierCacheProjects)?void 0:n.has(t))),(i.affectedModuleSpecifierCacheProjects||(i.affectedModuleSpecifierCacheProjects=new Set)).add(t),{close:()=>{var e;null==(e=i.affectedModuleSpecifierCacheProjects)||e.delete(t),i.close()}}}watchClosedScriptInfoInNodeModules(e){const t=e+"/node_modules",n=this.toPath(t),r=this.nodeModulesWatchers.get(n)||this.createNodeModulesWatcher(t,n);return r.refreshScriptInfoRefCount++,{close:()=>{r.refreshScriptInfoRefCount--,r.close()}}}getModifiedTime(e){return(this.host.getModifiedTime(e.fileName)||zi).getTime()}refreshScriptInfo(e){const t=this.getModifiedTime(e);if(t!==e.mTime){const n=Xi(e.mTime,t);e.mTime=t,this.onSourceFileChanged(e,n)}}refreshScriptInfosInDirectory(e){e+=lo,this.filenameToScriptInfo.forEach((t=>{age(t)&&Gt(t.path,e)&&this.refreshScriptInfo(t)}))}stopWatchingScriptInfo(e){e.fileWatcher&&(e.fileWatcher.close(),e.fileWatcher=void 0)}getOrCreateScriptInfoNotOpenedByClientForNormalizedPath(e,t,n,r,i,o){if(go(e)||Kfe(e))return this.getOrCreateScriptInfoWorker(e,t,!1,void 0,n,!!r,i,o);return this.openFilesWithNonRootedDiskPath.get(this.toCanonicalFileName(e))||void 0}getOrCreateScriptInfoForNormalizedPath(e,t,n,r,i,o){return this.getOrCreateScriptInfoWorker(e,this.currentDirectory,t,n,r,!!i,o,!1)}getOrCreateScriptInfoWorker(e,t,n,r,i,o,a,s){un.assert(void 0===r||n,"ScriptInfo needs to be opened by client to be able to set its user defined content");const c=Cfe(e,t,this.toCanonicalFileName);let l=this.filenameToScriptInfo.get(c);if(l){if(l.deferredDelete){if(un.assert(!l.isDynamic),!n&&!(a||this.host).fileExists(e))return s?l:void 0;l.deferredDelete=void 0}}else{const r=Kfe(e);if(un.assert(go(e)||r||n,"",(()=>`${JSON.stringify({fileName:e,currentDirectory:t,hostCurrentDirectory:this.currentDirectory,openKeys:Oe(this.openFilesWithNonRootedDiskPath.keys())})}\nScript info with non-dynamic relative file name can only be open script info or in context of host currentDirectory`)),un.assert(!go(e)||this.currentDirectory===t||!this.openFilesWithNonRootedDiskPath.has(this.toCanonicalFileName(e)),"",(()=>`${JSON.stringify({fileName:e,currentDirectory:t,hostCurrentDirectory:this.currentDirectory,openKeys:Oe(this.openFilesWithNonRootedDiskPath.keys())})}\nOpen script files with non rooted disk path opened with current directory context cannot have same canonical names`)),un.assert(!r||this.currentDirectory===t||this.useInferredProjectPerProjectRoot,"",(()=>`${JSON.stringify({fileName:e,currentDirectory:t,hostCurrentDirectory:this.currentDirectory,openKeys:Oe(this.openFilesWithNonRootedDiskPath.keys())})}\nDynamic files must always be opened with service's current directory or service should support inferred project per projectRootPath.`)),!n&&!r&&!(a||this.host).fileExists(e))return;l=new Gfe(this.host,e,i,o,c,this.filenameToScriptInfoVersion.get(c)),this.filenameToScriptInfo.set(l.path,l),this.filenameToScriptInfoVersion.delete(l.path),n?go(e)||r&&this.currentDirectory===t||this.openFilesWithNonRootedDiskPath.set(this.toCanonicalFileName(e),l):this.watchClosedScriptInfo(l)}return n&&(this.stopWatchingScriptInfo(l),l.open(r),o&&l.registerFileUpdate()),l}getScriptInfoForNormalizedPath(e){return!go(e)&&this.openFilesWithNonRootedDiskPath.get(this.toCanonicalFileName(e))||this.getScriptInfoForPath(Cfe(e,this.currentDirectory,this.toCanonicalFileName))}getScriptInfoForPath(e){const t=this.filenameToScriptInfo.get(e);return t&&t.deferredDelete?void 0:t}getDocumentPositionMapper(e,t,n){const r=this.getOrCreateScriptInfoNotOpenedByClient(t,e.currentDirectory,this.host,!1);if(!r)return void(n&&e.addGeneratedFileWatch(t,n));if(r.getSnapshot(),Ze(r.sourceMapFilePath)){const t=this.getScriptInfoForPath(r.sourceMapFilePath);if(t&&(t.getSnapshot(),void 0!==t.documentPositionMapper))return t.sourceInfos=this.addSourceInfoToSourceMap(n,e,t.sourceInfos),t.documentPositionMapper?t.documentPositionMapper:void 0;r.sourceMapFilePath=void 0}else{if(r.sourceMapFilePath)return void(r.sourceMapFilePath.sourceInfos=this.addSourceInfoToSourceMap(n,e,r.sourceMapFilePath.sourceInfos));if(void 0!==r.sourceMapFilePath)return}let i,o=(t,n)=>{const r=this.getOrCreateScriptInfoNotOpenedByClient(t,e.currentDirectory,this.host,!0);if(i=r||n,!r||r.deferredDelete)return;const o=r.getSnapshot();return void 0!==r.documentPositionMapper?r.documentPositionMapper:CQ(o)};const a=e.projectName,s=p1({getCanonicalFileName:this.toCanonicalFileName,log:e=>this.logger.info(e),getSourceFileLike:e=>this.getSourceFileLike(e,a,r)},r.fileName,r.textStorage.getLineInfo(),o);return o=void 0,i?Ze(i)?r.sourceMapFilePath={watcher:this.addMissingSourceMapFile(e.currentDirectory===this.currentDirectory?i:Bo(i,e.currentDirectory),r.path),sourceInfos:this.addSourceInfoToSourceMap(n,e)}:(r.sourceMapFilePath=i.path,i.declarationInfoPath=r.path,i.deferredDelete||(i.documentPositionMapper=s||!1),i.sourceInfos=this.addSourceInfoToSourceMap(n,e,i.sourceInfos)):r.sourceMapFilePath=!1,s}addSourceInfoToSourceMap(e,t,n){if(e){const r=this.getOrCreateScriptInfoNotOpenedByClient(e,t.currentDirectory,t.directoryStructureHost,!1);(n||(n=new Set)).add(r.path)}return n}addMissingSourceMapFile(e,t){return this.watchFactory.watchFile(e,(()=>{const e=this.getScriptInfoForPath(t);e&&e.sourceMapFilePath&&!Ze(e.sourceMapFilePath)&&(this.delayUpdateProjectGraphs(e.containingProjects,!0),this.delayUpdateSourceInfoProjects(e.sourceMapFilePath.sourceInfos),e.closeSourceMapFileWatcher())}),2e3,this.hostConfiguration.watchOptions,p$.MissingSourceMapFile)}getSourceFileLike(e,t,n){const r=t.projectName?t:this.findProject(t);if(r){const t=r.toPath(e),n=r.getSourceFile(t);if(n&&n.resolvedPath===t)return n}const i=this.getOrCreateScriptInfoNotOpenedByClient(e,(r||this).currentDirectory,r?r.directoryStructureHost:this.host,!1);if(i){if(n&&Ze(n.sourceMapFilePath)&&i!==n){const e=this.getScriptInfoForPath(n.sourceMapFilePath);e&&(e.sourceInfos??(e.sourceInfos=new Set)).add(i.path)}return i.cacheSourceFile?i.cacheSourceFile.sourceFile:(i.sourceFileLike||(i.sourceFileLike={get text(){return un.fail("shouldnt need text"),""},getLineAndCharacterOfPosition:e=>{const t=i.positionToLineOffset(e);return{line:t.line-1,character:t.offset-1}},getPositionOfLineAndCharacter:(e,t,n)=>i.lineOffsetToPosition(e+1,t+1,n)}),i.sourceFileLike)}}setPerformanceEventHandler(e){this.performanceEventHandler=e}setHostConfiguration(e){var t;if(e.file){const t=this.getScriptInfoForNormalizedPath(Tfe(e.file));t&&(t.setOptions(jme(e.formatOptions),e.preferences),this.logger.info(`Host configuration update for file ${e.file}`))}else{if(void 0!==e.hostInfo&&(this.hostConfiguration.hostInfo=e.hostInfo,this.logger.info(`Host information ${e.hostInfo}`)),e.formatOptions&&(this.hostConfiguration.formatCodeOptions={...this.hostConfiguration.formatCodeOptions,...jme(e.formatOptions)},this.logger.info("Format host information updated")),e.preferences){const{lazyConfiguredProjectsFromExternalProject:t,includePackageJsonAutoImports:n,includeCompletionsForModuleExports:r}=this.hostConfiguration.preferences;this.hostConfiguration.preferences={...this.hostConfiguration.preferences,...e.preferences},t&&!this.hostConfiguration.preferences.lazyConfiguredProjectsFromExternalProject&&this.externalProjectToConfiguredProjectMap.forEach((e=>e.forEach((e=>{e.deferredClose||e.isClosed()||2!==e.pendingUpdateLevel||this.hasPendingProjectUpdate(e)||e.updateGraph()})))),n===e.preferences.includePackageJsonAutoImports&&!!r==!!e.preferences.includeCompletionsForModuleExports||this.forEachProject((e=>{e.onAutoImportProviderSettingsChanged()}))}if(e.extraFileExtensions&&(this.hostConfiguration.extraFileExtensions=e.extraFileExtensions,this.reloadProjects(),this.logger.info("Host file extension mappings updated")),e.watchOptions){const n=null==(t=Mme(e.watchOptions))?void 0:t.watchOptions,r=UL(n,this.currentDirectory);this.hostConfiguration.watchOptions=r,this.hostConfiguration.beforeSubstitution=r===n?void 0:n,this.logger.info(`Host watch options changed to ${JSON.stringify(this.hostConfiguration.watchOptions)}, it will be take effect for next watches.`)}}}getWatchOptions(e){return this.getWatchOptionsFromProjectWatchOptions(e.getWatchOptions(),e.getCurrentDirectory())}getWatchOptionsFromProjectWatchOptions(e,t){const n=this.hostConfiguration.beforeSubstitution?UL(this.hostConfiguration.beforeSubstitution,t):this.hostConfiguration.watchOptions;return e&&n?{...n,...e}:e||n}closeLog(){this.logger.close()}sendSourceFileChange(e){this.filenameToScriptInfo.forEach((t=>{if(this.openFiles.has(t.path))return;if(!t.fileWatcher)return;const n=dt((()=>this.host.fileExists(t.fileName)?t.deferredDelete?0:1:2));if(e){if(age(t)||!t.path.startsWith(e))return;if(2===n()&&t.deferredDelete)return;this.logger.info(`Invoking sourceFileChange on ${t.fileName}:: ${n()}`)}this.onSourceFileChanged(t,n())}))}reloadProjects(){this.logger.info("reload projects."),this.sendSourceFileChange(void 0),this.pendingProjectUpdates.forEach(((e,t)=>{this.throttledOperations.cancel(t),this.pendingProjectUpdates.delete(t)})),this.throttledOperations.cancel(Eme),this.pendingOpenFileProjectUpdates=void 0,this.pendingEnsureProjectForOpenFiles=!1,this.configFileExistenceInfoCache.forEach((e=>{e.config&&(e.config.updateLevel=2,e.config.cachedDirectoryStructureHost.clearCache())})),this.configFileForOpenFiles.clear(),this.externalProjects.forEach((e=>{this.clearSemanticCache(e),e.updateGraph()}));const e=new Map,t=new Set;this.externalProjectToConfiguredProjectMap.forEach(((t,n)=>{const r=`Reloading configured project in external project: ${n}`;t.forEach((t=>{this.getHostPreferences().lazyConfiguredProjectsFromExternalProject?this.reloadConfiguredProjectOptimized(t,r,e):this.reloadConfiguredProjectClearingSemanticCache(t,r,e)}))})),this.openFiles.forEach(((n,r)=>{const i=this.getScriptInfoForPath(r);b(i.containingProjects,fme)||this.tryFindDefaultConfiguredProjectAndLoadAncestorsForOpenScriptInfo(i,7,e,t)})),t.forEach((t=>e.set(t,7))),this.inferredProjects.forEach((e=>this.clearSemanticCache(e))),this.ensureProjectForOpenFiles(),this.cleanupProjectsAndScriptInfos(e,new Set(this.openFiles.keys()),new Set(this.externalProjectToConfiguredProjectMap.keys())),this.logger.info("After reloading projects.."),this.printProjects()}removeRootOfInferredProjectIfNowPartOfOtherProject(e){un.assert(e.containingProjects.length>0);const t=e.containingProjects[0];!t.isOrphan()&&dme(t)&&t.isRoot(e)&&d(e.containingProjects,(e=>e!==t&&!e.isOrphan()))&&t.removeFile(e,!0,!0)}ensureProjectForOpenFiles(){this.logger.info("Before ensureProjectForOpenFiles:"),this.printProjects();const e=this.pendingOpenFileProjectUpdates;this.pendingOpenFileProjectUpdates=void 0,null==e||e.forEach(((e,t)=>this.tryFindDefaultConfiguredProjectAndLoadAncestorsForOpenScriptInfo(this.getScriptInfoForPath(t),5))),this.openFiles.forEach(((e,t)=>{const n=this.getScriptInfoForPath(t);n.isOrphan()?this.assignOrphanScriptInfoToInferredProject(n,e):this.removeRootOfInferredProjectIfNowPartOfOtherProject(n)})),this.pendingEnsureProjectForOpenFiles=!1,this.inferredProjects.forEach(sge),this.logger.info("After ensureProjectForOpenFiles:"),this.printProjects()}openClientFile(e,t,n,r){return this.openClientFileWithNormalizedPath(Tfe(e),t,n,!1,r?Tfe(r):void 0)}getOriginalLocationEnsuringConfiguredProject(e,t){const n=e.isSourceOfProjectReferenceRedirect(t.fileName),r=n?t:e.getSourceMapper().tryGetSourcePosition(t);if(!r)return;const{fileName:i}=r,o=this.getScriptInfo(i);if(!o&&!this.host.fileExists(i))return;const a={fileName:Tfe(i),path:this.toPath(i)},s=this.getConfigFileNameForFile(a,!1);if(!s)return;let c=this.findConfiguredProjectByProjectName(s);if(!c){if(e.getCompilerOptions().disableReferencedProjectLoad)return n?t:(null==o?void 0:o.containingProjects.length)?r:t;c=this.createConfiguredProject(s,`Creating project for original file: ${a.fileName}${t!==r?" for location: "+t.fileName:""}`)}const l=this.tryFindDefaultConfiguredProjectForOpenScriptInfoOrClosedFileInfo(a,5,tge(c,4),(e=>`Creating project referenced in solution ${e.projectName} to find possible configured project for original file: ${a.fileName}${t!==r?" for location: "+t.fileName:""}`));if(!l.defaultProject)return;if(l.defaultProject===e)return r;u(l.defaultProject);const _=this.getScriptInfo(i);if(_&&_.containingProjects.length)return _.containingProjects.forEach((e=>{pme(e)&&u(e)})),r;function u(t){(e.originalConfiguredProjects??(e.originalConfiguredProjects=new Set)).add(t.canonicalConfigFilePath)}}fileExists(e){return!!this.getScriptInfoForNormalizedPath(e)||this.host.fileExists(e)}findExternalProjectContainingOpenScriptInfo(e){return b(this.externalProjects,(t=>(sge(t),t.containsScriptInfo(e))))}getOrCreateOpenScriptInfo(e,t,n,r,i){const o=this.getOrCreateScriptInfoWorker(e,i?this.getNormalizedAbsolutePath(i):this.currentDirectory,!0,t,n,!!r,void 0,!0);return this.openFiles.set(o.path,i),o}assignProjectToOpenedScriptInfo(e){let t,n,r,i;if(!this.findExternalProjectContainingOpenScriptInfo(e)&&0===this.serverMode){const o=this.tryFindDefaultConfiguredProjectAndLoadAncestorsForOpenScriptInfo(e,5);o&&(r=o.seenProjects,i=o.sentConfigDiag,o.defaultProject&&(t=o.defaultProject.getConfigFilePath(),n=o.defaultProject.getAllProjectErrors()))}return e.containingProjects.forEach(sge),e.isOrphan()&&(null==r||r.forEach(((t,n)=>{4===t||i.has(n)||this.sendConfigFileDiagEvent(n,e.fileName,!0)})),un.assert(this.openFiles.has(e.path)),this.assignOrphanScriptInfoToInferredProject(e,this.openFiles.get(e.path))),un.assert(!e.isOrphan()),{configFileName:t,configFileErrors:n,retainProjects:r}}findCreateOrReloadConfiguredProject(e,t,n,r,i,o,a,s,c){let l,_=c??this.findConfiguredProjectByProjectName(e,r),u=!1;switch(t){case 0:case 1:case 3:if(!_)return;break;case 2:if(!_)return;l=function(e){return _ge(e)?e.projectService.configFileExistenceInfoCache.get(e.canonicalConfigFilePath):void 0}(_);break;case 4:case 5:_??(_=this.createConfiguredProject(e,n)),a||({sentConfigFileDiag:u,configFileExistenceInfo:l}=tge(_,t,i));break;case 6:if(_??(_=this.createConfiguredProject(e,uge(n))),_.projectService.reloadConfiguredProjectOptimized(_,n,o),l=lge(_),l)break;case 7:_??(_=this.createConfiguredProject(e,uge(n))),u=!s&&this.reloadConfiguredProjectClearingSemanticCache(_,n,o),!s||s.has(_)||o.has(_)||(this.setProjectForReload(_,2,n),s.add(_));break;default:un.assertNever(t)}return{project:_,sentConfigFileDiag:u,configFileExistenceInfo:l,reason:n}}tryFindDefaultConfiguredProjectForOpenScriptInfo(e,t,n,r){const i=this.getConfigFileNameForFile(e,t<=3);if(!i)return;const o=Yme(t),a=this.findCreateOrReloadConfiguredProject(i,o,function(e){return`Creating possible configured project for ${e.fileName} to open`}(e),n,e.fileName,r);return a&&this.tryFindDefaultConfiguredProjectForOpenScriptInfoOrClosedFileInfo(e,t,a,(t=>`Creating project referenced in solution ${t.projectName} to find possible configured project for ${e.fileName} to open`),n,r)}isMatchedByConfig(e,t,n){if(t.fileNames.some((e=>this.toPath(e)===n.path)))return!0;if(RS(n.fileName,t.options,this.hostConfiguration.extraFileExtensions))return!1;const{validatedFilesSpec:r,validatedIncludeSpecs:i,validatedExcludeSpecs:o}=t.options.configFile.configFileSpecs,a=Tfe(Bo(Do(e),this.currentDirectory));return!!(null==r?void 0:r.some((e=>this.toPath(Bo(e,a))===n.path)))||!!(null==i?void 0:i.length)&&!Sj(n.fileName,o,this.host.useCaseSensitiveFileNames,this.currentDirectory,a)&&(null==i?void 0:i.some((e=>{const t=_S(e,a,"files");return!!t&&fS(`(${t})$`,this.host.useCaseSensitiveFileNames).test(n.fileName)})))}tryFindDefaultConfiguredProjectForOpenScriptInfoOrClosedFileInfo(e,t,n,r,i,o){const a=Gme(e),s=Yme(t),c=new Map;let l;const _=new Set;let u,d,p,f;return function t(n){return function(e,t){return e.sentConfigFileDiag&&_.add(e.project),e.configFileExistenceInfo?m(e.configFileExistenceInfo,e.project,Tfe(e.project.getConfigFilePath()),e.reason,e.project,e.project.canonicalConfigFilePath):g(e.project,t)}(n,n.project)??((c=n.project).parsedCommandLine&&ege(c,c.parsedCommandLine,m,s,r(c),i,o))??function(n){return a?Zme(e,n,t,s,`Creating possible configured project for ${e.fileName} to open`,i,o,!1):void 0}(n.project);var c}(n),{defaultProject:u??d,tsconfigProject:p??f,sentConfigDiag:_,seenProjects:c,seenConfigs:l};function m(n,r,a,u,d,p){if(r){if(c.has(r))return;c.set(r,s)}else{if(null==l?void 0:l.has(p))return;(l??(l=new Set)).add(p)}if(!d.projectService.isMatchedByConfig(a,n.config.parsedCommandLine,e))return void(d.languageServiceEnabled&&d.projectService.watchWildcards(a,n,d));const f=r?tge(r,t,e.fileName,u,o):d.projectService.findCreateOrReloadConfiguredProject(a,t,u,i,e.fileName,o);if(f)return c.set(f.project,s),f.sentConfigFileDiag&&_.add(f.project),g(f.project,d);un.assert(3===t)}function g(n,r){if(c.get(n)===t)return;c.set(n,t);const i=a?e:n.projectService.getScriptInfo(e.fileName),o=i&&n.containsScriptInfo(i);if(o&&!n.isSourceOfProjectReferenceRedirect(i.path))return p=r,u=n;!d&&a&&o&&(f=r,d=n)}}tryFindDefaultConfiguredProjectAndLoadAncestorsForOpenScriptInfo(e,t,n,r){const i=1===t,o=this.tryFindDefaultConfiguredProjectForOpenScriptInfo(e,t,i,n);if(!o)return;const{defaultProject:a,tsconfigProject:s,seenProjects:c}=o;return a&&Zme(e,s,(e=>{c.set(e.project,t)}),t,`Creating project possibly referencing default composite project ${a.getProjectName()} of open file ${e.fileName}`,i,n,!0,r),o}loadAncestorProjectTree(e){e??(e=new Set(J(this.configuredProjects.entries(),(([e,t])=>t.initialLoadPending?void 0:e))));const t=new Set,n=Oe(this.configuredProjects.values());for(const r of n)nge(r,(t=>e.has(t)))&&sge(r),this.ensureProjectChildren(r,e,t)}ensureProjectChildren(e,t,n){var r;if(!q(n,e.canonicalConfigFilePath))return;if(e.getCompilerOptions().disableReferencedProjectLoad)return;const i=null==(r=e.getCurrentProgram())?void 0:r.getResolvedProjectReferences();if(i)for(const r of i){if(!r)continue;const i=oV(r.references,(e=>t.has(e.sourceFile.path)?e:void 0));if(!i)continue;const o=Tfe(r.sourceFile.fileName),a=this.findConfiguredProjectByProjectName(o)??this.createConfiguredProject(o,`Creating project referenced by : ${e.projectName} as it references project ${i.sourceFile.fileName}`);sge(a),this.ensureProjectChildren(a,t,n)}}cleanupConfiguredProjects(e,t,n){this.getOrphanConfiguredProjects(e,n,t).forEach((e=>this.removeProject(e)))}cleanupProjectsAndScriptInfos(e,t,n){this.cleanupConfiguredProjects(e,n,t);for(const e of this.inferredProjects.slice())e.isOrphan()&&this.removeProject(e);this.removeOrphanScriptInfos()}tryInvokeWildCardDirectories(e){this.configFileExistenceInfoCache.forEach(((t,n)=>{var r,i;(null==(r=t.config)?void 0:r.parsedCommandLine)&&!T(t.config.parsedCommandLine.fileNames,e.fileName,this.host.useCaseSensitiveFileNames?ht:gt)&&(null==(i=t.config.watchedDirectories)||i.forEach(((r,i)=>{Zo(i,e.fileName,!this.host.useCaseSensitiveFileNames)&&(this.logger.info(`Invoking ${n}:: wildcard for open scriptInfo:: ${e.fileName}`),this.onWildCardDirectoryWatcherInvoke(i,n,t.config,r.watcher,e.fileName))})))}))}openClientFileWithNormalizedPath(e,t,n,r,i){const o=this.getScriptInfoForPath(Cfe(e,i?this.getNormalizedAbsolutePath(i):this.currentDirectory,this.toCanonicalFileName)),a=this.getOrCreateOpenScriptInfo(e,t,n,r,i);o||!a||a.isDynamic||this.tryInvokeWildCardDirectories(a);const{retainProjects:s,...c}=this.assignProjectToOpenedScriptInfo(a);return this.cleanupProjectsAndScriptInfos(s,new Set([a.path]),void 0),this.telemetryOnOpenFile(a),this.printProjects(),c}getOrphanConfiguredProjects(e,t,n){const r=new Set(this.configuredProjects.values()),i=e=>{!e.originalConfiguredProjects||!pme(e)&&e.isOrphan()||e.originalConfiguredProjects.forEach(((e,t)=>{const n=this.getConfiguredProjectByCanonicalConfigFilePath(t);return n&&s(n)}))};return null==e||e.forEach(((e,t)=>s(t))),r.size?(this.inferredProjects.forEach(i),this.externalProjects.forEach(i),this.externalProjectToConfiguredProjectMap.forEach(((e,t)=>{(null==n?void 0:n.has(t))||e.forEach(s)})),r.size?(td(this.openFiles,((e,n)=>{if(null==t?void 0:t.has(n))return;const i=this.getScriptInfoForPath(n);if(b(i.containingProjects,fme))return;const o=this.tryFindDefaultConfiguredProjectAndLoadAncestorsForOpenScriptInfo(i,1);return(null==o?void 0:o.defaultProject)&&(null==o||o.seenProjects.forEach(((e,t)=>s(t))),!r.size)?r:void 0})),r.size?(td(this.configuredProjects,(e=>{if(r.has(e)&&(a(e)||ige(e,o))&&(s(e),!r.size))return r})),r):r):r):r;function o(e){return!r.has(e)||a(e)}function a(e){var t,n;return(e.deferredClose||e.projectService.hasPendingProjectUpdate(e))&&!!(null==(n=null==(t=e.projectService.configFileExistenceInfoCache.get(e.canonicalConfigFilePath))?void 0:t.openFilesImpactedByConfigFile)?void 0:n.size)}function s(e){r.delete(e)&&(i(e),ige(e,s))}}removeOrphanScriptInfos(){const e=new Map(this.filenameToScriptInfo);this.filenameToScriptInfo.forEach((t=>{if(!t.deferredDelete){if(!t.isScriptOpen()&&t.isOrphan()&&!Qfe(t)&&!Xfe(t)){if(!t.sourceMapFilePath)return;let e;if(Ze(t.sourceMapFilePath)){const n=this.filenameToScriptInfo.get(t.sourceMapFilePath);e=null==n?void 0:n.sourceInfos}else e=t.sourceMapFilePath.sourceInfos;if(!e)return;if(!nd(e,(e=>{const t=this.getScriptInfoForPath(e);return!!t&&(t.isScriptOpen()||!t.isOrphan())})))return}if(e.delete(t.path),t.sourceMapFilePath){let n;if(Ze(t.sourceMapFilePath)){const r=this.filenameToScriptInfo.get(t.sourceMapFilePath);(null==r?void 0:r.deferredDelete)?t.sourceMapFilePath={watcher:this.addMissingSourceMapFile(r.fileName,t.path),sourceInfos:r.sourceInfos}:e.delete(t.sourceMapFilePath),n=null==r?void 0:r.sourceInfos}else n=t.sourceMapFilePath.sourceInfos;n&&n.forEach(((t,n)=>e.delete(n)))}}})),e.forEach((e=>this.deleteScriptInfo(e)))}telemetryOnOpenFile(e){if(0!==this.serverMode||!this.eventHandler||!e.isJavaScript()||!vx(this.allJsFilesForOpenFileTelemetry,e.path))return;const t=this.ensureDefaultProjectForFile(e);if(!t.languageServiceEnabled)return;const n=t.getSourceFile(e.path),r=!!n&&!!n.checkJsDirective;this.eventHandler({eventName:wme,data:{info:{checkJs:r}}})}closeClientFile(e,t){const n=this.getScriptInfoForNormalizedPath(Tfe(e)),r=!!n&&this.closeOpenFile(n,t);return t||this.printProjects(),r}collectChanges(e,t,n,r){for(const i of t){const t=b(e,(e=>e.projectName===i.getProjectName()));r.push(i.getChangesSinceVersion(t&&t.version,n))}}synchronizeProjectList(e,t){const n=[];return this.collectChanges(e,this.externalProjects,t,n),this.collectChanges(e,J(this.configuredProjects.values(),(e=>e.deferredClose?void 0:e)),t,n),this.collectChanges(e,this.inferredProjects,t,n),n}applyChangesInOpenFiles(e,t,n){let r,i,o,a=!1;if(e)for(const t of e){(r??(r=[])).push(this.getScriptInfoForPath(Cfe(Tfe(t.fileName),t.projectRootPath?this.getNormalizedAbsolutePath(t.projectRootPath):this.currentDirectory,this.toCanonicalFileName)));const e=this.getOrCreateOpenScriptInfo(Tfe(t.fileName),t.content,Jme(t.scriptKind),t.hasMixedContent,t.projectRootPath?Tfe(t.projectRootPath):void 0);(i||(i=[])).push(e)}if(t)for(const e of t){const t=this.getScriptInfo(e.fileName);un.assert(!!t),this.applyChangesToFile(t,e.changes)}if(n)for(const e of n)a=this.closeClientFile(e,!0)||a;d(r,((e,t)=>e||!i[t]||i[t].isDynamic?void 0:this.tryInvokeWildCardDirectories(i[t]))),null==i||i.forEach((e=>{var t;return null==(t=this.assignProjectToOpenedScriptInfo(e).retainProjects)?void 0:t.forEach(((e,t)=>(o??(o=new Map)).set(t,e)))})),a&&this.assignOrphanScriptInfosToInferredProject(),i?(this.cleanupProjectsAndScriptInfos(o,new Set(i.map((e=>e.path))),void 0),i.forEach((e=>this.telemetryOnOpenFile(e))),this.printProjects()):u(n)&&this.printProjects()}applyChangesToFile(e,t){for(const n of t)e.editContent(n.span.start,n.span.start+n.span.length,n.newText)}closeExternalProject(e,t){const n=Tfe(e);if(this.externalProjectToConfiguredProjectMap.get(n))this.externalProjectToConfiguredProjectMap.delete(n);else{const t=this.findExternalProjectByProjectName(e);t&&this.removeProject(t)}t&&(this.cleanupConfiguredProjects(),this.printProjects())}openExternalProjects(e){const t=new Set(this.externalProjects.map((e=>e.getProjectName())));this.externalProjectToConfiguredProjectMap.forEach(((e,n)=>t.add(n)));for(const n of e)this.openExternalProject(n,!1),t.delete(n.projectFileName);t.forEach((e=>this.closeExternalProject(e,!1))),this.cleanupConfiguredProjects(),this.printProjects()}static escapeFilenameForRegex(e){return e.replace(this.filenameEscapeRegexp,"\\$&")}resetSafeList(){this.safelist=Lme}applySafeList(e){const t=e.typeAcquisition;un.assert(!!t,"proj.typeAcquisition should be set by now");const n=this.applySafeListWorker(e,e.rootFiles,t);return(null==n?void 0:n.excludedFiles)??[]}applySafeListWorker(t,n,r){if(!1===r.enable||r.disableFilenameBasedTypeAcquisition)return;const i=r.include||(r.include=[]),o=[],a=n.map((e=>Oo(e.fileName)));for(const t of Object.keys(this.safelist)){const n=this.safelist[t];for(const r of a)if(n.match.test(r)){if(this.logger.info(`Excluding files based on rule ${t} matching file '${r}'`),n.types)for(const e of n.types)i.includes(e)||i.push(e);if(n.exclude)for(const i of n.exclude){const a=r.replace(n.match,((...n)=>i.map((r=>"number"==typeof r?Ze(n[r])?e.escapeFilenameForRegex(n[r]):(this.logger.info(`Incorrect RegExp specification in safelist rule ${t} - not enough groups`),"\\*"):r)).join("")));o.includes(a)||o.push(a)}else{const t=e.escapeFilenameForRegex(r);o.includes(t)||o.push(t)}}}const s=o.map((e=>new RegExp(e,"i")));let c,l;for(let e=0;et.test(a[e]))))_(e);else{if(r.enable){const t=Fo(_t(a[e]));if(ko(t,"js")){const n=Jt(zS(t)),r=this.legacySafelist.get(n);if(void 0!==r){this.logger.info(`Excluded '${a[e]}' because it matched ${n} from the legacy safelist`),_(e),i.includes(r)||i.push(r);continue}}}/^.+[.-]min\.js$/.test(a[e])?_(e):null==c||c.push(n[e])}return l?{rootFiles:c,excludedFiles:l}:void 0;function _(e){l||(un.assert(!c),c=n.slice(0,e),l=[]),l.push(a[e])}}openExternalProject(e,t){const n=this.findExternalProjectByProjectName(e.projectFileName);let r,i=[];for(const t of e.rootFiles){const n=Tfe(t.fileName);if(Lfe(n)){if(0===this.serverMode&&this.host.fileExists(n)){let t=this.findConfiguredProjectByProjectName(n);t||(t=this.createConfiguredProject(n,`Creating configured project in external project: ${e.projectFileName}`),this.getHostPreferences().lazyConfiguredProjectsFromExternalProject||t.updateGraph()),(r??(r=new Set)).add(t),un.assert(!t.isClosed())}}else i.push(t)}if(r)this.externalProjectToConfiguredProjectMap.set(e.projectFileName,r),n&&this.removeProject(n);else{this.externalProjectToConfiguredProjectMap.delete(e.projectFileName);const t=e.typeAcquisition||{};t.include=t.include||[],t.exclude=t.exclude||[],void 0===t.enable&&(t.enable=nme(i.map((e=>e.fileName))));const r=this.applySafeListWorker(e,i,t),o=(null==r?void 0:r.excludedFiles)??[];if(i=(null==r?void 0:r.rootFiles)??i,n){n.excludedFiles=o;const r=Rme(e.options),a=Mme(e.options,n.getCurrentDirectory()),s=this.getFilenameForExceededTotalSizeLimitForNonTsFiles(e.projectFileName,r,i,Vme);s?n.disableLanguageService(s):n.enableLanguageService(),n.setProjectErrors(null==a?void 0:a.errors),this.updateRootAndOptionsOfNonInferredProject(n,i,Vme,r,t,e.options.compileOnSave,null==a?void 0:a.watchOptions),n.updateGraph()}else this.createExternalProject(e.projectFileName,i,e.options,t,o).updateGraph()}t&&(this.cleanupConfiguredProjects(r,new Set([e.projectFileName])),this.printProjects())}hasDeferredExtension(){for(const e of this.hostConfiguration.extraFileExtensions)if(7===e.scriptKind)return!0;return!1}requestEnablePlugin(e,t,n){if(this.host.importPlugin||this.host.require)if(this.logger.info(`Enabling plugin ${t.name} from candidate paths: ${n.join(",")}`),!t.name||Ts(t.name)||/[\\/]\.\.?(?:$|[\\/])/.test(t.name))this.logger.info(`Skipped loading plugin ${t.name||JSON.stringify(t)} because only package name is allowed plugin name`);else{if(this.host.importPlugin){const r=ome.importServicePluginAsync(t,n,this.host,(e=>this.logger.info(e)));this.pendingPluginEnablements??(this.pendingPluginEnablements=new Map);let i=this.pendingPluginEnablements.get(e);return i||this.pendingPluginEnablements.set(e,i=[]),void i.push(r)}this.endEnablePlugin(e,ome.importServicePluginSync(t,n,this.host,(e=>this.logger.info(e))))}else this.logger.info("Plugins were requested but not running in environment that supports 'require'. Nothing will be loaded")}endEnablePlugin(e,{pluginConfigEntry:t,resolvedModule:n,errorLogs:r}){var i;if(n){const r=null==(i=this.currentPluginConfigOverrides)?void 0:i.get(t.name);if(r){const e=t.name;(t=r).name=e}e.enableProxy(n,t)}else d(r,(e=>this.logger.info(e))),this.logger.info(`Couldn't find ${t.name}`)}hasNewPluginEnablementRequests(){return!!this.pendingPluginEnablements}hasPendingPluginEnablements(){return!!this.currentPluginEnablementPromise}async waitForPendingPlugins(){for(;this.currentPluginEnablementPromise;)await this.currentPluginEnablementPromise}enableRequestedPlugins(){this.pendingPluginEnablements&&this.enableRequestedPluginsAsync()}async enableRequestedPluginsAsync(){if(this.currentPluginEnablementPromise&&await this.waitForPendingPlugins(),!this.pendingPluginEnablements)return;const e=Oe(this.pendingPluginEnablements.entries());this.pendingPluginEnablements=void 0,this.currentPluginEnablementPromise=this.enableRequestedPluginsWorker(e),await this.currentPluginEnablementPromise}async enableRequestedPluginsWorker(e){un.assert(void 0===this.currentPluginEnablementPromise);let t=!1;await Promise.all(E(e,(async([e,n])=>{const r=await Promise.all(n);if(e.isClosed()||gme(e))this.logger.info(`Cancelling plugin enabling for ${e.getProjectName()} as it is ${e.isClosed()?"closed":"deferred close"}`);else{t=!0;for(const t of r)this.endEnablePlugin(e,t);this.delayUpdateProjectGraph(e)}}))),this.currentPluginEnablementPromise=void 0,t&&this.sendProjectsUpdatedInBackgroundEvent()}configurePlugin(e){this.forEachEnabledProject((t=>t.onPluginConfigurationChanged(e.pluginName,e.configuration))),this.currentPluginConfigOverrides=this.currentPluginConfigOverrides||new Map,this.currentPluginConfigOverrides.set(e.pluginName,e.configuration)}getPackageJsonsVisibleToFile(e,t,n){const r=this.packageJsonCache,i=n&&this.toPath(n),o=[],a=e=>{switch(r.directoryHasPackageJson(e)){case 3:return r.searchDirectoryAndAncestors(e,t),a(e);case-1:const n=jo(e,"package.json");this.watchPackageJsonFile(n,this.toPath(n),t);const i=r.getInDirectory(e);i&&o.push(i)}if(i&&i===e)return!0};return sM(t,Do(e),a),o}getNearestAncestorDirectoryWithPackageJson(e,t){return sM(t,e,(e=>{switch(this.packageJsonCache.directoryHasPackageJson(e)){case-1:return e;case 0:return;case 3:return this.host.fileExists(jo(e,"package.json"))?e:void 0}}))}watchPackageJsonFile(e,t,n){un.assert(void 0!==n);let r=(this.packageJsonFilesMap??(this.packageJsonFilesMap=new Map)).get(t);if(!r){let n=this.watchFactory.watchFile(e,((e,n)=>{switch(n){case 0:case 1:this.packageJsonCache.addOrUpdate(e,t),this.onPackageJsonChange(r);break;case 2:this.packageJsonCache.delete(t),this.onPackageJsonChange(r),r.projects.clear(),r.close()}}),250,this.hostConfiguration.watchOptions,p$.PackageJson);r={projects:new Set,close:()=>{var e;!r.projects.size&&n&&(n.close(),n=void 0,null==(e=this.packageJsonFilesMap)||e.delete(t),this.packageJsonCache.invalidate(t))}},this.packageJsonFilesMap.set(t,r)}r.projects.add(n),(n.packageJsonWatches??(n.packageJsonWatches=new Set)).add(r)}onPackageJsonChange(e){e.projects.forEach((e=>{var t;return null==(t=e.onPackageJsonChange)?void 0:t.call(e)}))}includePackageJsonAutoImports(){switch(this.hostConfiguration.preferences.includePackageJsonAutoImports){case"on":return 1;case"off":return 0;default:return 2}}getIncompleteCompletionsCache(){return this.incompleteCompletionsCache||(this.incompleteCompletionsCache=function(){let e;return{get:()=>e,set(t){e=t},clear(){e=void 0}}}())}};gge.filenameEscapeRegexp=/[-/\\^$*+?.()|[\]{}]/g;var hge=gge;function yge(e){return void 0!==e.kind}function vge(e){e.print(!1,!1,!1)}function bge(e){let t,n,r;const i={get(e,t,i,o){if(n&&r===a(e,i,o))return n.get(t)},set(n,r,i,a,c,l,_){if(o(n,i,a).set(r,s(c,l,_,void 0,!1)),_)for(const n of l)if(n.isInNodeModules){const r=n.path.substring(0,n.path.indexOf(PR)+PR.length-1),i=e.toPath(r);(null==t?void 0:t.has(i))||(t||(t=new Map)).set(i,e.watchNodeModulesForPackageJsonChanges(r))}},setModulePaths(e,t,n,r,i){const a=o(e,n,r),c=a.get(t);c?c.modulePaths=i:a.set(t,s(void 0,i,void 0,void 0,void 0))},setBlockedByPackageJsonDependencies(e,t,n,r,i,a){const c=o(e,n,r),l=c.get(t);l?(l.isBlockedByPackageJsonDependencies=a,l.packageName=i):c.set(t,s(void 0,void 0,void 0,i,a))},clear(){null==t||t.forEach(tx),null==n||n.clear(),null==t||t.clear(),r=void 0},count:()=>n?n.size:0};return un.isDebugging&&Object.defineProperty(i,"__cache",{get:()=>n}),i;function o(e,t,o){const s=a(e,t,o);return n&&r!==s&&i.clear(),r=s,n||(n=new Map)}function a(e,t,n){return`${e},${t.importModuleSpecifierEnding},${t.importModuleSpecifierPreference},${n.overrideImportMode}`}function s(e,t,n,r,i){return{kind:e,modulePaths:t,moduleSpecifiers:n,packageName:r,isBlockedByPackageJsonDependencies:i}}}function xge(e){const t=new Map,n=new Map;return{addOrUpdate:r,invalidate:function(e){t.delete(e),n.delete(Do(e))},delete:e=>{t.delete(e),n.set(Do(e),!0)},getInDirectory:n=>t.get(e.toPath(jo(n,"package.json")))||void 0,directoryHasPackageJson:t=>i(e.toPath(t)),searchDirectoryAndAncestors:(t,o)=>{sM(o,t,(t=>{const o=e.toPath(t);if(3!==i(o))return!0;const a=jo(t,"package.json");hZ(e,a)?r(a,jo(o,"package.json")):n.set(o,!0)}))}};function r(r,i){const o=un.checkDefined(SZ(r,e.host));t.set(i,o),n.delete(Do(i))}function i(e){return t.has(jo(e,"package.json"))?-1:n.has(e)?0:3}}var kge={isCancellationRequested:()=>!1,setRequest:()=>{},resetRequest:()=>{}};function Sge(e,t){if((dme(e)||fme(e))&&e.isJsOnlyProject()){const n=e.getScriptInfoForNormalizedPath(t);return n&&!n.isJavaScript()}return!1}function Tge(e,t,n){const r=t.getScriptInfoForNormalizedPath(e);return{start:r.positionToLineOffset(n.start),end:r.positionToLineOffset(n.start+n.length),text:UU(n.messageText,"\n"),code:n.code,category:ci(n),reportsUnnecessary:n.reportsUnnecessary,reportsDeprecated:n.reportsDeprecated,source:n.source,relatedInformation:E(n.relatedInformation,Cge)}}function Cge(e){return e.file?{span:{start:wge(Ja(e.file,e.start)),end:wge(Ja(e.file,e.start+e.length)),file:e.file.fileName},message:UU(e.messageText,"\n"),category:ci(e),code:e.code}:{message:UU(e.messageText,"\n"),category:ci(e),code:e.code}}function wge(e){return{line:e.line+1,offset:e.character+1}}function Nge(e,t){const n=e.file&&wge(Ja(e.file,e.start)),r=e.file&&wge(Ja(e.file,e.start+e.length)),i=UU(e.messageText,"\n"),{code:o,source:a}=e,s={start:n,end:r,text:i,code:o,category:ci(e),reportsUnnecessary:e.reportsUnnecessary,reportsDeprecated:e.reportsDeprecated,source:a,relatedInformation:E(e.relatedInformation,Cge)};return t?{...s,fileName:e.file&&e.file.fileName}:s}var Dge=Rfe;function Fge(e,t,n,r){const i=t.hasLevel(3),o=JSON.stringify(e);return i&&t.info(`${e.type}:${VK(e)}`),`Content-Length: ${1+n(o,"utf8")}\r\n\r\n${o}${r}`}var Ege=class{constructor(e){this.operationHost=e}startNew(e){this.complete(),this.requestId=this.operationHost.getCurrentRequestId(),this.executeAction(e)}complete(){void 0!==this.requestId&&(this.operationHost.sendRequestCompletedEvent(this.requestId,this.performanceData),this.requestId=void 0),this.setTimerHandle(void 0),this.setImmediateId(void 0),this.performanceData=void 0}immediate(e,t){const n=this.requestId;un.assert(n===this.operationHost.getCurrentRequestId(),"immediate: incorrect request id"),this.setImmediateId(this.operationHost.getServerHost().setImmediate((()=>{this.immediateId=void 0,this.operationHost.executeWithRequestId(n,(()=>this.executeAction(t)),this.performanceData)}),e))}delay(e,t,n){const r=this.requestId;un.assert(r===this.operationHost.getCurrentRequestId(),"delay: incorrect request id"),this.setTimerHandle(this.operationHost.getServerHost().setTimeout((()=>{this.timerHandle=void 0,this.operationHost.executeWithRequestId(r,(()=>this.executeAction(n)),this.performanceData)}),t,e))}executeAction(e){var t,n,r,i,o,a;let s=!1;try{this.operationHost.isCancellationRequested()?(s=!0,null==(t=Hn)||t.instant(Hn.Phase.Session,"stepCanceled",{seq:this.requestId,early:!0})):(null==(n=Hn)||n.push(Hn.Phase.Session,"stepAction",{seq:this.requestId}),e(this),null==(r=Hn)||r.pop())}catch(e){null==(i=Hn)||i.popAll(),s=!0,e instanceof Cr?null==(o=Hn)||o.instant(Hn.Phase.Session,"stepCanceled",{seq:this.requestId}):(null==(a=Hn)||a.instant(Hn.Phase.Session,"stepError",{seq:this.requestId,message:e.message}),this.operationHost.logError(e,`delayed processing of request ${this.requestId}`))}this.performanceData=this.operationHost.getPerformanceData(),!s&&this.hasPendingWork()||this.complete()}setTimerHandle(e){void 0!==this.timerHandle&&this.operationHost.getServerHost().clearTimeout(this.timerHandle),this.timerHandle=e}setImmediateId(e){void 0!==this.immediateId&&this.operationHost.getServerHost().clearImmediate(this.immediateId),this.immediateId=e}hasPendingWork(){return!!this.timerHandle||!!this.immediateId}};function Pge(e,t){return{seq:0,type:"event",event:e,body:t}}function Age(e){return Xe((({textSpan:e})=>e.start+100003*e.length),ZQ(e))}function Ige(e,t,n){const r=e.getLanguageService().getDefinitionAtPosition(t.fileName,t.pos,!1,n),i=r&&fe(r);return i&&!i.isLocal?{fileName:i.fileName,pos:i.textSpan.start}:void 0}function Oge(e,t,n){for(const r of Qe(e)?e:e.projects)n(r,t);!Qe(e)&&e.symLinkedProjects&&e.symLinkedProjects.forEach(((e,t)=>{for(const r of e)n(r,t)}))}function Lge(e,t,n,r,i,o,a){const s=new Map,c=Ge();c.enqueue({project:t,location:n}),Oge(e,n.fileName,((e,t)=>{const r={fileName:t,pos:n.pos};c.enqueue({project:e,location:r})}));const l=t.projectService,_=t.getCancellationToken(),u=dt((()=>t.isSourceOfProjectReferenceRedirect(r.fileName)?r:t.getLanguageService().getSourceMapper().tryGetGeneratedPosition(r))),d=dt((()=>t.isSourceOfProjectReferenceRedirect(r.fileName)?r:t.getLanguageService().getSourceMapper().tryGetSourcePosition(r))),p=new Set;e:for(;!c.isEmpty();){for(;!c.isEmpty();){if(_.isCancellationRequested())break e;const{project:e,location:t}=c.dequeue();if(s.has(e))continue;if(Mge(e,t))continue;if(sge(e),!e.containsFile(Tfe(t.fileName)))continue;const n=f(e,t);s.set(e,n??xfe),p.add(Bge(e))}r&&(l.loadAncestorProjectTree(p),l.forEachEnabledProject((e=>{if(_.isCancellationRequested())return;if(s.has(e))return;const t=i(r,e,u,d);t&&c.enqueue({project:e,location:t})})))}return 1===s.size?he(s.values()):s;function f(e,t){const n=o(e,t);if(!n||!a)return n;for(const t of n)a(t,(t=>{const n=l.getOriginalLocationEnsuringConfiguredProject(e,t);if(!n)return;const r=l.getScriptInfo(n.fileName);for(const e of r.containingProjects)e.isOrphan()||s.has(e)||c.enqueue({project:e,location:n});const i=l.getSymlinkedProjects(r);i&&i.forEach(((e,t)=>{for(const r of e)r.isOrphan()||s.has(r)||c.enqueue({project:r,location:{fileName:t,pos:n.pos}})}))}));return n}}function jge(e,t){if(t.containsFile(Tfe(e.fileName))&&!Mge(t,e))return e}function Rge(e,t,n,r){const i=jge(e,t);if(i)return i;const o=n();if(o&&t.containsFile(Tfe(o.fileName)))return o;const a=r();return a&&t.containsFile(Tfe(a.fileName))?a:void 0}function Mge(e,t){if(!t)return!1;const n=e.getLanguageService().getProgram();if(!n)return!1;const r=n.getSourceFile(t.fileName);return!!r&&r.resolvedPath!==r.path&&r.resolvedPath!==e.toPath(t.fileName)}function Bge(e){return pme(e)?e.canonicalConfigFilePath:e.getProjectName()}function Jge({fileName:e,textSpan:t}){return{fileName:e,pos:t.start}}function zge(e,t){return nY(e,t.getSourceMapper(),(e=>t.projectService.fileExists(e)))}function qge(e,t){return rY(e,t.getSourceMapper(),(e=>t.projectService.fileExists(e)))}function Uge(e,t){return iY(e,t.getSourceMapper(),(e=>t.projectService.fileExists(e)))}var Vge=["openExternalProject","openExternalProjects","closeExternalProject","synchronizeProjectList","emit-output","compileOnSaveAffectedFileList","compileOnSaveEmitFile","compilerOptionsDiagnostics-full","encodedSemanticClassifications-full","semanticDiagnosticsSync","suggestionDiagnosticsSync","geterrForProject","reload","reloadProjects","getCodeFixes","getCodeFixes-full","getCombinedCodeFix","getCombinedCodeFix-full","applyCodeActionCommand","getSupportedCodeFixes","getApplicableRefactors","getMoveToRefactoringFileSuggestions","getEditsForRefactor","getEditsForRefactor-full","organizeImports","organizeImports-full","getEditsForFileRename","getEditsForFileRename-full","prepareCallHierarchy","provideCallHierarchyIncomingCalls","provideCallHierarchyOutgoingCalls","getPasteEdits","copilotRelated"],Wge=[...Vge,"definition","definition-full","definitionAndBoundSpan","definitionAndBoundSpan-full","typeDefinition","implementation","implementation-full","references","references-full","rename","renameLocations-full","rename-full","quickinfo","quickinfo-full","completionInfo","completions","completions-full","completionEntryDetails","completionEntryDetails-full","signatureHelp","signatureHelp-full","navto","navto-full","documentHighlights","documentHighlights-full","preparePasteEdits"],$ge=class e{constructor(e){this.changeSeq=0,this.regionDiagLineCountThreshold=500,this.handlers=new Map(Object.entries({status:()=>{const e={version:s};return this.requiredResponse(e)},openExternalProject:e=>(this.projectService.openExternalProject(e.arguments,!0),this.requiredResponse(!0)),openExternalProjects:e=>(this.projectService.openExternalProjects(e.arguments.projects),this.requiredResponse(!0)),closeExternalProject:e=>(this.projectService.closeExternalProject(e.arguments.projectFileName,!0),this.requiredResponse(!0)),synchronizeProjectList:e=>{const t=this.projectService.synchronizeProjectList(e.arguments.knownProjects,e.arguments.includeProjectReferenceRedirectInfo);if(!t.some((e=>e.projectErrors&&0!==e.projectErrors.length)))return this.requiredResponse(t);const n=E(t,(e=>e.projectErrors&&0!==e.projectErrors.length?{info:e.info,changes:e.changes,files:e.files,projectErrors:this.convertToDiagnosticsWithLinePosition(e.projectErrors,void 0)}:e));return this.requiredResponse(n)},updateOpen:e=>(this.changeSeq++,this.projectService.applyChangesInOpenFiles(e.arguments.openFiles&&P(e.arguments.openFiles,(e=>({fileName:e.file,content:e.fileContent,scriptKind:e.scriptKindName,projectRootPath:e.projectRootPath}))),e.arguments.changedFiles&&P(e.arguments.changedFiles,(e=>({fileName:e.fileName,changes:J(ue(e.textChanges),(t=>{const n=un.checkDefined(this.projectService.getScriptInfo(e.fileName)),r=n.lineOffsetToPosition(t.start.line,t.start.offset),i=n.lineOffsetToPosition(t.end.line,t.end.offset);return r>=0?{span:{start:r,length:i-r},newText:t.newText}:void 0}))}))),e.arguments.closedFiles),this.requiredResponse(!0)),applyChangedToOpenFiles:e=>(this.changeSeq++,this.projectService.applyChangesInOpenFiles(e.arguments.openFiles,e.arguments.changedFiles&&P(e.arguments.changedFiles,(e=>({fileName:e.fileName,changes:ue(e.changes)}))),e.arguments.closedFiles),this.requiredResponse(!0)),exit:()=>(this.exit(),this.notRequired(void 0)),definition:e=>this.requiredResponse(this.getDefinition(e.arguments,!0)),"definition-full":e=>this.requiredResponse(this.getDefinition(e.arguments,!1)),definitionAndBoundSpan:e=>this.requiredResponse(this.getDefinitionAndBoundSpan(e.arguments,!0)),"definitionAndBoundSpan-full":e=>this.requiredResponse(this.getDefinitionAndBoundSpan(e.arguments,!1)),findSourceDefinition:e=>this.requiredResponse(this.findSourceDefinition(e.arguments)),"emit-output":e=>this.requiredResponse(this.getEmitOutput(e.arguments)),typeDefinition:e=>this.requiredResponse(this.getTypeDefinition(e.arguments)),implementation:e=>this.requiredResponse(this.getImplementation(e.arguments,!0)),"implementation-full":e=>this.requiredResponse(this.getImplementation(e.arguments,!1)),references:e=>this.requiredResponse(this.getReferences(e.arguments,!0)),"references-full":e=>this.requiredResponse(this.getReferences(e.arguments,!1)),rename:e=>this.requiredResponse(this.getRenameLocations(e.arguments,!0)),"renameLocations-full":e=>this.requiredResponse(this.getRenameLocations(e.arguments,!1)),"rename-full":e=>this.requiredResponse(this.getRenameInfo(e.arguments)),open:e=>(this.openClientFile(Tfe(e.arguments.file),e.arguments.fileContent,zme(e.arguments.scriptKindName),e.arguments.projectRootPath?Tfe(e.arguments.projectRootPath):void 0),this.notRequired(e)),quickinfo:e=>this.requiredResponse(this.getQuickInfoWorker(e.arguments,!0)),"quickinfo-full":e=>this.requiredResponse(this.getQuickInfoWorker(e.arguments,!1)),getOutliningSpans:e=>this.requiredResponse(this.getOutliningSpans(e.arguments,!0)),outliningSpans:e=>this.requiredResponse(this.getOutliningSpans(e.arguments,!1)),todoComments:e=>this.requiredResponse(this.getTodoComments(e.arguments)),indentation:e=>this.requiredResponse(this.getIndentation(e.arguments)),nameOrDottedNameSpan:e=>this.requiredResponse(this.getNameOrDottedNameSpan(e.arguments)),breakpointStatement:e=>this.requiredResponse(this.getBreakpointStatement(e.arguments)),braceCompletion:e=>this.requiredResponse(this.isValidBraceCompletion(e.arguments)),docCommentTemplate:e=>this.requiredResponse(this.getDocCommentTemplate(e.arguments)),getSpanOfEnclosingComment:e=>this.requiredResponse(this.getSpanOfEnclosingComment(e.arguments)),fileReferences:e=>this.requiredResponse(this.getFileReferences(e.arguments,!0)),"fileReferences-full":e=>this.requiredResponse(this.getFileReferences(e.arguments,!1)),format:e=>this.requiredResponse(this.getFormattingEditsForRange(e.arguments)),formatonkey:e=>this.requiredResponse(this.getFormattingEditsAfterKeystroke(e.arguments)),"format-full":e=>this.requiredResponse(this.getFormattingEditsForDocumentFull(e.arguments)),"formatonkey-full":e=>this.requiredResponse(this.getFormattingEditsAfterKeystrokeFull(e.arguments)),"formatRange-full":e=>this.requiredResponse(this.getFormattingEditsForRangeFull(e.arguments)),completionInfo:e=>this.requiredResponse(this.getCompletions(e.arguments,"completionInfo")),completions:e=>this.requiredResponse(this.getCompletions(e.arguments,"completions")),"completions-full":e=>this.requiredResponse(this.getCompletions(e.arguments,"completions-full")),completionEntryDetails:e=>this.requiredResponse(this.getCompletionEntryDetails(e.arguments,!1)),"completionEntryDetails-full":e=>this.requiredResponse(this.getCompletionEntryDetails(e.arguments,!0)),compileOnSaveAffectedFileList:e=>this.requiredResponse(this.getCompileOnSaveAffectedFileList(e.arguments)),compileOnSaveEmitFile:e=>this.requiredResponse(this.emitFile(e.arguments)),signatureHelp:e=>this.requiredResponse(this.getSignatureHelpItems(e.arguments,!0)),"signatureHelp-full":e=>this.requiredResponse(this.getSignatureHelpItems(e.arguments,!1)),"compilerOptionsDiagnostics-full":e=>this.requiredResponse(this.getCompilerOptionsDiagnostics(e.arguments)),"encodedSyntacticClassifications-full":e=>this.requiredResponse(this.getEncodedSyntacticClassifications(e.arguments)),"encodedSemanticClassifications-full":e=>this.requiredResponse(this.getEncodedSemanticClassifications(e.arguments)),cleanup:()=>(this.cleanup(),this.requiredResponse(!0)),semanticDiagnosticsSync:e=>this.requiredResponse(this.getSemanticDiagnosticsSync(e.arguments)),syntacticDiagnosticsSync:e=>this.requiredResponse(this.getSyntacticDiagnosticsSync(e.arguments)),suggestionDiagnosticsSync:e=>this.requiredResponse(this.getSuggestionDiagnosticsSync(e.arguments)),geterr:e=>(this.errorCheck.startNew((t=>this.getDiagnostics(t,e.arguments.delay,e.arguments.files))),this.notRequired(void 0)),geterrForProject:e=>(this.errorCheck.startNew((t=>this.getDiagnosticsForProject(t,e.arguments.delay,e.arguments.file))),this.notRequired(void 0)),change:e=>(this.change(e.arguments),this.notRequired(e)),configure:e=>(this.projectService.setHostConfiguration(e.arguments),this.notRequired(e)),reload:e=>(this.reload(e.arguments),this.requiredResponse({reloadFinished:!0})),saveto:e=>{const t=e.arguments;return this.saveToTmp(t.file,t.tmpfile),this.notRequired(e)},close:e=>{const t=e.arguments;return this.closeClientFile(t.file),this.notRequired(e)},navto:e=>this.requiredResponse(this.getNavigateToItems(e.arguments,!0)),"navto-full":e=>this.requiredResponse(this.getNavigateToItems(e.arguments,!1)),brace:e=>this.requiredResponse(this.getBraceMatching(e.arguments,!0)),"brace-full":e=>this.requiredResponse(this.getBraceMatching(e.arguments,!1)),navbar:e=>this.requiredResponse(this.getNavigationBarItems(e.arguments,!0)),"navbar-full":e=>this.requiredResponse(this.getNavigationBarItems(e.arguments,!1)),navtree:e=>this.requiredResponse(this.getNavigationTree(e.arguments,!0)),"navtree-full":e=>this.requiredResponse(this.getNavigationTree(e.arguments,!1)),documentHighlights:e=>this.requiredResponse(this.getDocumentHighlights(e.arguments,!0)),"documentHighlights-full":e=>this.requiredResponse(this.getDocumentHighlights(e.arguments,!1)),compilerOptionsForInferredProjects:e=>(this.setCompilerOptionsForInferredProjects(e.arguments),this.requiredResponse(!0)),projectInfo:e=>this.requiredResponse(this.getProjectInfo(e.arguments)),reloadProjects:e=>(this.projectService.reloadProjects(),this.notRequired(e)),jsxClosingTag:e=>this.requiredResponse(this.getJsxClosingTag(e.arguments)),linkedEditingRange:e=>this.requiredResponse(this.getLinkedEditingRange(e.arguments)),getCodeFixes:e=>this.requiredResponse(this.getCodeFixes(e.arguments,!0)),"getCodeFixes-full":e=>this.requiredResponse(this.getCodeFixes(e.arguments,!1)),getCombinedCodeFix:e=>this.requiredResponse(this.getCombinedCodeFix(e.arguments,!0)),"getCombinedCodeFix-full":e=>this.requiredResponse(this.getCombinedCodeFix(e.arguments,!1)),applyCodeActionCommand:e=>this.requiredResponse(this.applyCodeActionCommand(e.arguments)),getSupportedCodeFixes:e=>this.requiredResponse(this.getSupportedCodeFixes(e.arguments)),getApplicableRefactors:e=>this.requiredResponse(this.getApplicableRefactors(e.arguments)),getEditsForRefactor:e=>this.requiredResponse(this.getEditsForRefactor(e.arguments,!0)),getMoveToRefactoringFileSuggestions:e=>this.requiredResponse(this.getMoveToRefactoringFileSuggestions(e.arguments)),preparePasteEdits:e=>this.requiredResponse(this.preparePasteEdits(e.arguments)),getPasteEdits:e=>this.requiredResponse(this.getPasteEdits(e.arguments)),"getEditsForRefactor-full":e=>this.requiredResponse(this.getEditsForRefactor(e.arguments,!1)),organizeImports:e=>this.requiredResponse(this.organizeImports(e.arguments,!0)),"organizeImports-full":e=>this.requiredResponse(this.organizeImports(e.arguments,!1)),getEditsForFileRename:e=>this.requiredResponse(this.getEditsForFileRename(e.arguments,!0)),"getEditsForFileRename-full":e=>this.requiredResponse(this.getEditsForFileRename(e.arguments,!1)),configurePlugin:e=>(this.configurePlugin(e.arguments),this.notRequired(e)),selectionRange:e=>this.requiredResponse(this.getSmartSelectionRange(e.arguments,!0)),"selectionRange-full":e=>this.requiredResponse(this.getSmartSelectionRange(e.arguments,!1)),prepareCallHierarchy:e=>this.requiredResponse(this.prepareCallHierarchy(e.arguments)),provideCallHierarchyIncomingCalls:e=>this.requiredResponse(this.provideCallHierarchyIncomingCalls(e.arguments)),provideCallHierarchyOutgoingCalls:e=>this.requiredResponse(this.provideCallHierarchyOutgoingCalls(e.arguments)),toggleLineComment:e=>this.requiredResponse(this.toggleLineComment(e.arguments,!0)),"toggleLineComment-full":e=>this.requiredResponse(this.toggleLineComment(e.arguments,!1)),toggleMultilineComment:e=>this.requiredResponse(this.toggleMultilineComment(e.arguments,!0)),"toggleMultilineComment-full":e=>this.requiredResponse(this.toggleMultilineComment(e.arguments,!1)),commentSelection:e=>this.requiredResponse(this.commentSelection(e.arguments,!0)),"commentSelection-full":e=>this.requiredResponse(this.commentSelection(e.arguments,!1)),uncommentSelection:e=>this.requiredResponse(this.uncommentSelection(e.arguments,!0)),"uncommentSelection-full":e=>this.requiredResponse(this.uncommentSelection(e.arguments,!1)),provideInlayHints:e=>this.requiredResponse(this.provideInlayHints(e.arguments)),mapCode:e=>this.requiredResponse(this.mapCode(e.arguments)),copilotRelated:()=>this.requiredResponse(this.getCopilotRelatedInfo())})),this.host=e.host,this.cancellationToken=e.cancellationToken,this.typingsInstaller=e.typingsInstaller||$me,this.byteLength=e.byteLength,this.hrtime=e.hrtime,this.logger=e.logger,this.canUseEvents=e.canUseEvents,this.suppressDiagnosticEvents=e.suppressDiagnosticEvents,this.noGetErrOnBackgroundUpdate=e.noGetErrOnBackgroundUpdate;const{throttleWaitMilliseconds:t}=e;this.eventHandler=this.canUseEvents?e.eventHandler||(e=>this.defaultEventHandler(e)):void 0;const n={executeWithRequestId:(e,t,n)=>this.executeWithRequestId(e,t,n),getCurrentRequestId:()=>this.currentRequestId,getPerformanceData:()=>this.performanceData,getServerHost:()=>this.host,logError:(e,t)=>this.logError(e,t),sendRequestCompletedEvent:(e,t)=>this.sendRequestCompletedEvent(e,t),isCancellationRequested:()=>this.cancellationToken.isCancellationRequested()};this.errorCheck=new Ege(n);const r={host:this.host,logger:this.logger,cancellationToken:this.cancellationToken,useSingleInferredProject:e.useSingleInferredProject,useInferredProjectPerProjectRoot:e.useInferredProjectPerProjectRoot,typingsInstaller:this.typingsInstaller,throttleWaitMilliseconds:t,eventHandler:this.eventHandler,suppressDiagnosticEvents:this.suppressDiagnosticEvents,globalPlugins:e.globalPlugins,pluginProbeLocations:e.pluginProbeLocations,allowLocalPluginLoads:e.allowLocalPluginLoads,typesMapLocation:e.typesMapLocation,serverMode:e.serverMode,session:this,canUseWatchEvents:e.canUseWatchEvents,incrementalVerifier:e.incrementalVerifier};switch(this.projectService=new hge(r),this.projectService.setPerformanceEventHandler(this.performanceEventHandler.bind(this)),this.gcTimer=new Ofe(this.host,7e3,this.logger),this.projectService.serverMode){case 0:break;case 1:Vge.forEach((e=>this.handlers.set(e,(e=>{throw new Error(`Request: ${e.command} not allowed in LanguageServiceMode.PartialSemantic`)}))));break;case 2:Wge.forEach((e=>this.handlers.set(e,(e=>{throw new Error(`Request: ${e.command} not allowed in LanguageServiceMode.Syntactic`)}))));break;default:un.assertNever(this.projectService.serverMode)}}sendRequestCompletedEvent(e,t){this.event({request_seq:e,performanceData:t&&Hge(t)},"requestCompleted")}addPerformanceData(e,t){this.performanceData||(this.performanceData={}),this.performanceData[e]=(this.performanceData[e]??0)+t}addDiagnosticsPerformanceData(e,t,n){var r,i;this.performanceData||(this.performanceData={});let o=null==(r=this.performanceData.diagnosticsDuration)?void 0:r.get(e);o||((i=this.performanceData).diagnosticsDuration??(i.diagnosticsDuration=new Map)).set(e,o={}),o[t]=n}performanceEventHandler(e){switch(e.kind){case"UpdateGraph":this.addPerformanceData("updateGraphDurationMs",e.durationMs);break;case"CreatePackageJsonAutoImportProvider":this.addPerformanceData("createAutoImportProviderProgramDurationMs",e.durationMs)}}defaultEventHandler(e){switch(e.eventName){case vme:this.projectsUpdatedInBackgroundEvent(e.data.openFiles);break;case bme:this.event({projectName:e.data.project.getProjectName(),reason:e.data.reason},e.eventName);break;case xme:this.event({projectName:e.data.project.getProjectName()},e.eventName);break;case kme:case Nme:case Dme:case Fme:this.event(e.data,e.eventName);break;case Sme:this.event({triggerFile:e.data.triggerFile,configFile:e.data.configFileName,diagnostics:E(e.data.diagnostics,(e=>Nge(e,!0)))},e.eventName);break;case Tme:this.event({projectName:e.data.project.getProjectName(),languageServiceEnabled:e.data.languageServiceEnabled},e.eventName);break;case Cme:{const t="telemetry";this.event({telemetryEventName:e.eventName,payload:e.data},t);break}}}projectsUpdatedInBackgroundEvent(e){this.projectService.logger.info(`got projects updated in background ${e}`),e.length&&(this.suppressDiagnosticEvents||this.noGetErrOnBackgroundUpdate||(this.projectService.logger.info(`Queueing diagnostics update for ${e}`),this.errorCheck.startNew((t=>this.updateErrorCheck(t,e,100,!0)))),this.event({openFiles:e},vme))}logError(e,t){this.logErrorWorker(e,t)}logErrorWorker(e,t,n){let r="Exception on executing command "+t;if(e.message&&(r+=":\n"+UK(e.message),e.stack&&(r+="\n"+UK(e.stack))),this.logger.hasLevel(3)){if(n)try{const{file:e,project:t}=this.getFileAndProject(n),i=t.getScriptInfoForNormalizedPath(e);if(i){const e=CQ(i.getSnapshot());r+=`\n\nFile text of ${n.file}:${UK(e)}\n`}}catch{}if(e.ProgramFiles){r+=`\n\nProgram files: ${JSON.stringify(e.ProgramFiles)}\n`,r+="\n\nProjects::\n";let t=0;const n=e=>{r+=`\nProject '${e.projectName}' (${Yfe[e.projectKind]}) ${t}\n`,r+=e.filesToString(!0),r+="\n-----------------------------------------------\n",t++};this.projectService.externalProjects.forEach(n),this.projectService.configuredProjects.forEach(n),this.projectService.inferredProjects.forEach(n)}}this.logger.msg(r,"Err")}send(e){"event"!==e.type||this.canUseEvents?this.writeMessage(e):this.logger.hasLevel(3)&&this.logger.info(`Session does not support events: ignored event: ${VK(e)}`)}writeMessage(e){const t=Fge(e,this.logger,this.byteLength,this.host.newLine);this.host.write(t)}event(e,t){this.send(Pge(t,e))}doOutput(e,t,n,r,i,o){const a={seq:0,type:"response",command:t,request_seq:n,success:r,performanceData:i&&Hge(i)};if(r){let t;if(Qe(e))a.body=e,t=e.metadata,delete e.metadata;else if("object"==typeof e)if(e.metadata){const{metadata:n,...r}=e;a.body=r,t=n}else a.body=e;else a.body=e;t&&(a.metadata=t)}else un.assert(void 0===e);o&&(a.message=o),this.send(a)}semanticCheck(e,t){var n,r;const i=Un();null==(n=Hn)||n.push(Hn.Phase.Session,"semanticCheck",{file:e,configFilePath:t.canonicalConfigFilePath});const o=Sge(t,e)?xfe:t.getLanguageService().getSemanticDiagnostics(e).filter((e=>!!e.file));this.sendDiagnosticsEvent(e,t,o,"semanticDiag",i),null==(r=Hn)||r.pop()}syntacticCheck(e,t){var n,r;const i=Un();null==(n=Hn)||n.push(Hn.Phase.Session,"syntacticCheck",{file:e,configFilePath:t.canonicalConfigFilePath}),this.sendDiagnosticsEvent(e,t,t.getLanguageService().getSyntacticDiagnostics(e),"syntaxDiag",i),null==(r=Hn)||r.pop()}suggestionCheck(e,t){var n,r;const i=Un();null==(n=Hn)||n.push(Hn.Phase.Session,"suggestionCheck",{file:e,configFilePath:t.canonicalConfigFilePath}),this.sendDiagnosticsEvent(e,t,t.getLanguageService().getSuggestionDiagnostics(e),"suggestionDiag",i),null==(r=Hn)||r.pop()}regionSemanticCheck(e,t,n){var r,i,o;const a=Un();let s;null==(r=Hn)||r.push(Hn.Phase.Session,"regionSemanticCheck",{file:e,configFilePath:t.canonicalConfigFilePath}),this.shouldDoRegionCheck(e)&&(s=t.getLanguageService().getRegionSemanticDiagnostics(e,n))?(this.sendDiagnosticsEvent(e,t,s.diagnostics,"regionSemanticDiag",a,s.spans),null==(o=Hn)||o.pop()):null==(i=Hn)||i.pop()}shouldDoRegionCheck(e){var t;const n=null==(t=this.projectService.getScriptInfoForNormalizedPath(e))?void 0:t.textStorage.getLineInfo().getLineCount();return!!(n&&n>=this.regionDiagLineCountThreshold)}sendDiagnosticsEvent(e,t,n,r,i,o){try{const a=un.checkDefined(t.getScriptInfo(e)),s=Un()-i,c={file:e,diagnostics:n.map((n=>Tge(e,t,n))),spans:null==o?void 0:o.map((e=>Kge(e,a)))};this.event(c,r),this.addDiagnosticsPerformanceData(e,r,s)}catch(e){this.logError(e,r)}}updateErrorCheck(e,t,n,r=!0){if(0===t.length)return;un.assert(!this.suppressDiagnosticEvents);const i=this.changeSeq,o=Math.min(n,200);let a=0;const s=()=>{if(a++,t.length>a)return e.delay("checkOne",o,l)},c=(t,n)=>{if(this.semanticCheck(t,n),this.changeSeq===i)return this.getPreferences(t).disableSuggestions?s():void e.immediate("suggestionCheck",(()=>{this.suggestionCheck(t,n),s()}))},l=()=>{if(this.changeSeq!==i)return;let n,o=t[a];if(Ze(o)?o=this.toPendingErrorCheck(o):"ranges"in o&&(n=o.ranges,o=this.toPendingErrorCheck(o.file)),!o)return s();const{fileName:l,project:_}=o;return sge(_),_.containsFile(l,r)&&(this.syntacticCheck(l,_),this.changeSeq===i)?0!==_.projectService.serverMode?s():n?e.immediate("regionSemanticCheck",(()=>{const t=this.projectService.getScriptInfoForNormalizedPath(l);t&&this.regionSemanticCheck(l,_,n.map((e=>this.getRange({file:l,...e},t)))),this.changeSeq===i&&e.immediate("semanticCheck",(()=>c(l,_)))})):void e.immediate("semanticCheck",(()=>c(l,_))):void 0};t.length>a&&this.changeSeq===i&&e.delay("checkOne",n,l)}cleanProjects(e,t){if(t){this.logger.info(`cleaning ${e}`);for(const e of t)e.getLanguageService(!1).cleanupSemanticCache(),e.cleanupProgram()}}cleanup(){this.cleanProjects("inferred projects",this.projectService.inferredProjects),this.cleanProjects("configured projects",Oe(this.projectService.configuredProjects.values())),this.cleanProjects("external projects",this.projectService.externalProjects),this.host.gc&&(this.logger.info("host.gc()"),this.host.gc())}getEncodedSyntacticClassifications(e){const{file:t,languageService:n}=this.getFileAndLanguageServiceForSyntacticOperation(e);return n.getEncodedSyntacticClassifications(t,e)}getEncodedSemanticClassifications(e){const{file:t,project:n}=this.getFileAndProject(e),r="2020"===e.format?"2020":"original";return n.getLanguageService().getEncodedSemanticClassifications(t,e,r)}getProject(e){return void 0===e?void 0:this.projectService.findProject(e)}getConfigFileAndProject(e){const t=this.getProject(e.projectFileName),n=Tfe(e.file);return{configFile:t&&t.hasConfigFile(n)?n:void 0,project:t}}getConfigFileDiagnostics(e,t,n){const r=N(K(t.getAllProjectErrors(),t.getLanguageService().getCompilerOptionsDiagnostics()),(t=>!!t.file&&t.file.fileName===e));return n?this.convertToDiagnosticsWithLinePositionFromDiagnosticFile(r):E(r,(e=>Nge(e,!1)))}convertToDiagnosticsWithLinePositionFromDiagnosticFile(e){return e.map((e=>({message:UU(e.messageText,this.host.newLine),start:e.start,length:e.length,category:ci(e),code:e.code,source:e.source,startLocation:e.file&&wge(Ja(e.file,e.start)),endLocation:e.file&&wge(Ja(e.file,e.start+e.length)),reportsUnnecessary:e.reportsUnnecessary,reportsDeprecated:e.reportsDeprecated,relatedInformation:E(e.relatedInformation,Cge)})))}getCompilerOptionsDiagnostics(e){const t=this.getProject(e.projectFileName);return this.convertToDiagnosticsWithLinePosition(N(t.getLanguageService().getCompilerOptionsDiagnostics(),(e=>!e.file)),void 0)}convertToDiagnosticsWithLinePosition(e,t){return e.map((e=>({message:UU(e.messageText,this.host.newLine),start:e.start,length:e.length,category:ci(e),code:e.code,source:e.source,startLocation:t&&t.positionToLineOffset(e.start),endLocation:t&&t.positionToLineOffset(e.start+e.length),reportsUnnecessary:e.reportsUnnecessary,reportsDeprecated:e.reportsDeprecated,relatedInformation:E(e.relatedInformation,Cge)})))}getDiagnosticsWorker(e,t,n,r){const{project:i,file:o}=this.getFileAndProject(e);if(t&&Sge(i,o))return xfe;const a=i.getScriptInfoForNormalizedPath(o),s=n(i,o);return r?this.convertToDiagnosticsWithLinePosition(s,a):s.map((e=>Tge(o,i,e)))}getDefinition(t,n){const{file:r,project:i}=this.getFileAndProject(t),o=this.getPositionInFile(t,r),a=this.mapDefinitionInfoLocations(i.getLanguageService().getDefinitionAtPosition(r,o)||xfe,i);return n?this.mapDefinitionInfo(a,i):a.map(e.mapToOriginalLocation)}mapDefinitionInfoLocations(e,t){return e.map((e=>{const n=qge(e,t);return n?{...n,containerKind:e.containerKind,containerName:e.containerName,kind:e.kind,name:e.name,failedAliasResolution:e.failedAliasResolution,...e.unverified&&{unverified:e.unverified}}:e}))}getDefinitionAndBoundSpan(t,n){const{file:r,project:i}=this.getFileAndProject(t),o=this.getPositionInFile(t,r),a=un.checkDefined(i.getScriptInfo(r)),s=i.getLanguageService().getDefinitionAndBoundSpan(r,o);if(!s||!s.definitions)return{definitions:xfe,textSpan:void 0};const c=this.mapDefinitionInfoLocations(s.definitions,i),{textSpan:l}=s;return n?{definitions:this.mapDefinitionInfo(c,i),textSpan:Kge(l,a)}:{definitions:c.map(e.mapToOriginalLocation),textSpan:l}}findSourceDefinition(e){var t;const{file:n,project:r}=this.getFileAndProject(e),i=this.getPositionInFile(e,n),o=r.getLanguageService().getDefinitionAtPosition(n,i);let a=this.mapDefinitionInfoLocations(o||xfe,r).slice();if(0===this.projectService.serverMode&&(!$(a,(e=>Tfe(e.fileName)!==n&&!e.isAmbient))||$(a,(e=>!!e.failedAliasResolution)))){const e=Xe((e=>e.textSpan.start),ZQ(this.host.useCaseSensitiveFileNames));null==a||a.forEach((t=>e.add(t)));const o=r.getNoDtsResolutionProject(n),_=o.getLanguageService(),u=null==(t=_.getDefinitionAtPosition(n,i,!0,!1))?void 0:t.filter((e=>Tfe(e.fileName)!==n));if($(u))for(const t of u){if(t.unverified){const n=c(t,r.getLanguageService().getProgram(),_.getProgram());if($(n)){for(const t of n)e.add(t);continue}}e.add(t)}else{const t=a.filter((e=>Tfe(e.fileName)!==n&&e.isAmbient));for(const a of $(t)?t:function(){const e=r.getLanguageService(),t=FX(e.getProgram().getSourceFile(n),i);return(Lu(t)||zN(t))&&kx(t.parent)&&wx(t,(r=>{var i;if(r===t)return;const o=null==(i=e.getDefinitionAtPosition(n,r.getStart(),!0,!1))?void 0:i.filter((e=>Tfe(e.fileName)!==n&&e.isAmbient)).map((e=>({fileName:e.fileName,name:zh(t)})));return $(o)?o:void 0}))||xfe}()){const t=s(a.fileName,n,o);if(!t)continue;const r=this.projectService.getOrCreateScriptInfoNotOpenedByClient(t,o.currentDirectory,o.directoryStructureHost,!1);if(!r)continue;o.containsScriptInfo(r)||(o.addRoot(r),o.updateGraph());const i=_.getProgram(),c=un.checkDefined(i.getSourceFile(t));for(const t of l(a.name,c,i))e.add(t)}}a=Oe(e.values())}return a=a.filter((e=>!e.isAmbient&&!e.failedAliasResolution)),this.mapDefinitionInfo(a,r);function s(e,t,n){var i,o,a;const s=zT(e);if(s&&e.lastIndexOf(PR)===s.topLevelNodeModulesIndex){const c=e.substring(0,s.packageRootIndex),l=null==(i=r.getModuleResolutionCache())?void 0:i.getPackageJsonInfoCache(),_=r.getCompilationSettings(),u=$R(Bo(c,r.getCurrentDirectory()),WR(l,r,_));if(!u)return;const d=UR(u,{moduleResolution:2},r,r.getModuleResolutionCache()),p=mM(gM(e.substring(s.topLevelPackageNameIndex+1,s.packageRootIndex))),f=r.toPath(e);if(d&&$(d,(e=>r.toPath(e)===f)))return null==(o=n.resolutionCache.resolveSingleModuleNameWithoutWatching(p,t).resolvedModule)?void 0:o.resolvedFileName;{const r=`${p}/${zS(e.substring(s.packageRootIndex+1))}`;return null==(a=n.resolutionCache.resolveSingleModuleNameWithoutWatching(r,t).resolvedModule)?void 0:a.resolvedFileName}}}function c(e,t,r){var o;const a=r.getSourceFile(e.fileName);if(!a)return;const s=FX(t.getSourceFile(n),i),c=t.getTypeChecker().getSymbolAtLocation(s),_=c&&Wu(c,276);return _?l((null==(o=_.propertyName)?void 0:o.text)||_.name.text,a,r):void 0}function l(e,t,n){return B(ice.Core.getTopMostDeclarationNamesInFile(e,t),(e=>{const t=n.getTypeChecker().getSymbolAtLocation(e),r=lh(e);if(t&&r)return Wce.createDefinitionInfo(r,n.getTypeChecker(),t,r,!0)}))}}getEmitOutput(e){const{file:t,project:n}=this.getFileAndProject(e);if(!n.shouldEmitFile(n.getScriptInfo(t)))return{emitSkipped:!0,outputFiles:[],diagnostics:[]};const r=n.getLanguageService().getEmitOutput(t);return e.richResponse?{...r,diagnostics:e.includeLinePosition?this.convertToDiagnosticsWithLinePositionFromDiagnosticFile(r.diagnostics):r.diagnostics.map((e=>Nge(e,!0)))}:r}mapJSDocTagInfo(e,t,n){return e?e.map((e=>{var r;return{...e,text:n?this.mapDisplayParts(e.text,t):null==(r=e.text)?void 0:r.map((e=>e.text)).join("")}})):[]}mapDisplayParts(e,t){return e?e.map((e=>"linkName"!==e.kind?e:{...e,target:this.toFileSpan(e.target.fileName,e.target.textSpan,t)})):[]}mapSignatureHelpItems(e,t,n){return e.map((e=>({...e,documentation:this.mapDisplayParts(e.documentation,t),parameters:e.parameters.map((e=>({...e,documentation:this.mapDisplayParts(e.documentation,t)}))),tags:this.mapJSDocTagInfo(e.tags,t,n)})))}mapDefinitionInfo(e,t){return e.map((e=>({...this.toFileSpanWithContext(e.fileName,e.textSpan,e.contextSpan,t),...e.unverified&&{unverified:e.unverified}})))}static mapToOriginalLocation(e){return e.originalFileName?(un.assert(void 0!==e.originalTextSpan,"originalTextSpan should be present if originalFileName is"),{...e,fileName:e.originalFileName,textSpan:e.originalTextSpan,targetFileName:e.fileName,targetTextSpan:e.textSpan,contextSpan:e.originalContextSpan,targetContextSpan:e.contextSpan}):e}toFileSpan(e,t,n){const r=n.getLanguageService(),i=r.toLineColumnOffset(e,t.start),o=r.toLineColumnOffset(e,Ds(t));return{file:e,start:{line:i.line+1,offset:i.character+1},end:{line:o.line+1,offset:o.character+1}}}toFileSpanWithContext(e,t,n,r){const i=this.toFileSpan(e,t,r),o=n&&this.toFileSpan(e,n,r);return o?{...i,contextStart:o.start,contextEnd:o.end}:i}getTypeDefinition(e){const{file:t,project:n}=this.getFileAndProject(e),r=this.getPositionInFile(e,t),i=this.mapDefinitionInfoLocations(n.getLanguageService().getTypeDefinitionAtPosition(t,r)||xfe,n);return this.mapDefinitionInfo(i,n)}mapImplementationLocations(e,t){return e.map((e=>{const n=qge(e,t);return n?{...n,kind:e.kind,displayParts:e.displayParts}:e}))}getImplementation(t,n){const{file:r,project:i}=this.getFileAndProject(t),o=this.getPositionInFile(t,r),a=this.mapImplementationLocations(i.getLanguageService().getImplementationAtPosition(r,o)||xfe,i);return n?a.map((({fileName:e,textSpan:t,contextSpan:n})=>this.toFileSpanWithContext(e,t,n,i))):a.map(e.mapToOriginalLocation)}getSyntacticDiagnosticsSync(e){const{configFile:t}=this.getConfigFileAndProject(e);return t?xfe:this.getDiagnosticsWorker(e,!1,((e,t)=>e.getLanguageService().getSyntacticDiagnostics(t)),!!e.includeLinePosition)}getSemanticDiagnosticsSync(e){const{configFile:t,project:n}=this.getConfigFileAndProject(e);return t?this.getConfigFileDiagnostics(t,n,!!e.includeLinePosition):this.getDiagnosticsWorker(e,!0,((e,t)=>e.getLanguageService().getSemanticDiagnostics(t).filter((e=>!!e.file))),!!e.includeLinePosition)}getSuggestionDiagnosticsSync(e){const{configFile:t}=this.getConfigFileAndProject(e);return t?xfe:this.getDiagnosticsWorker(e,!0,((e,t)=>e.getLanguageService().getSuggestionDiagnostics(t)),!!e.includeLinePosition)}getJsxClosingTag(e){const{file:t,languageService:n}=this.getFileAndLanguageServiceForSyntacticOperation(e),r=this.getPositionInFile(e,t),i=n.getJsxClosingTagAtPosition(t,r);return void 0===i?void 0:{newText:i.newText,caretOffset:0}}getLinkedEditingRange(e){const{file:t,languageService:n}=this.getFileAndLanguageServiceForSyntacticOperation(e),r=this.getPositionInFile(e,t),i=n.getLinkedEditingRangeAtPosition(t,r),o=this.projectService.getScriptInfoForNormalizedPath(t);if(void 0!==o&&void 0!==i)return function(e,t){const n=e.ranges.map((e=>({start:t.positionToLineOffset(e.start),end:t.positionToLineOffset(e.start+e.length)})));return e.wordPattern?{ranges:n,wordPattern:e.wordPattern}:{ranges:n}}(i,o)}getDocumentHighlights(e,t){const{file:n,project:r}=this.getFileAndProject(e),i=this.getPositionInFile(e,n),o=r.getLanguageService().getDocumentHighlights(n,i,e.filesToSearch);return o?t?o.map((({fileName:e,highlightSpans:t})=>{const n=r.getScriptInfo(e);return{file:e,highlightSpans:t.map((({textSpan:e,kind:t,contextSpan:r})=>({...Gge(e,r,n),kind:t})))}})):o:xfe}provideInlayHints(e){const{file:t,project:n}=this.getFileAndProject(e),r=this.projectService.getScriptInfoForNormalizedPath(t);return n.getLanguageService().provideInlayHints(t,e,this.getPreferences(t)).map((e=>{const{position:t,displayParts:n}=e;return{...e,position:r.positionToLineOffset(t),displayParts:null==n?void 0:n.map((({text:e,span:t,file:n})=>{if(t){un.assertIsDefined(n,"Target file should be defined together with its span.");const r=this.projectService.getScriptInfo(n);return{text:e,span:{start:r.positionToLineOffset(t.start),end:r.positionToLineOffset(t.start+t.length),file:n}}}return{text:e}}))}}))}mapCode(e){var t;const n=this.getHostFormatOptions(),r=this.getHostPreferences(),{file:i,languageService:o}=this.getFileAndLanguageServiceForSyntacticOperation(e),a=this.projectService.getScriptInfoForNormalizedPath(i),s=null==(t=e.mapping.focusLocations)?void 0:t.map((e=>e.map((e=>{const t=a.lineOffsetToPosition(e.start.line,e.start.offset);return{start:t,length:a.lineOffsetToPosition(e.end.line,e.end.offset)-t}})))),c=o.mapCode(i,e.mapping.contents,s,n,r);return this.mapTextChangesToCodeEdits(c)}getCopilotRelatedInfo(){return{relatedFiles:[]}}setCompilerOptionsForInferredProjects(e){this.projectService.setCompilerOptionsForInferredProjects(e.options,e.projectRootPath)}getProjectInfo(e){return this.getProjectInfoWorker(e.file,e.projectFileName,e.needFileNameList,e.needDefaultConfiguredProjectInfo,!1)}getProjectInfoWorker(e,t,n,r,i){const{project:o}=this.getFileAndProjectWorker(e,t);return sge(o),{configFileName:o.getProjectName(),languageServiceDisabled:!o.languageServiceEnabled,fileNames:n?o.getFileNames(!1,i):void 0,configuredProjectInfo:r?this.getDefaultConfiguredProjectInfo(e):void 0}}getDefaultConfiguredProjectInfo(e){var t;const n=this.projectService.getScriptInfo(e);if(!n)return;const r=this.projectService.findDefaultConfiguredProjectWorker(n,3);if(!r)return;let i,o;return r.seenProjects.forEach(((e,t)=>{t!==r.defaultProject&&(3!==e?(i??(i=[])).push(Tfe(t.getConfigFilePath())):(o??(o=[])).push(Tfe(t.getConfigFilePath())))})),null==(t=r.seenConfigs)||t.forEach((e=>(i??(i=[])).push(e))),{notMatchedByConfig:i,notInProject:o,defaultProject:r.defaultProject&&Tfe(r.defaultProject.getConfigFilePath())}}getRenameInfo(e){const{file:t,project:n}=this.getFileAndProject(e),r=this.getPositionInFile(e,t),i=this.getPreferences(t);return n.getLanguageService().getRenameInfo(t,r,i)}getProjects(e,t,n){let r,i;if(e.projectFileName){const t=this.getProject(e.projectFileName);t&&(r=[t])}else{const o=t?this.projectService.getScriptInfoEnsuringProjectsUptoDate(e.file):this.projectService.getScriptInfo(e.file);if(!o)return n?xfe:(this.projectService.logErrorForScriptInfoNotFound(e.file),yfe.ThrowNoProject());t||this.projectService.ensureDefaultProjectForFile(o),r=o.containingProjects,i=this.projectService.getSymlinkedProjects(o)}return r=N(r,(e=>e.languageServiceEnabled&&!e.isOrphan())),n||r&&r.length||i?i?{projects:r,symLinkedProjects:i}:r:(this.projectService.logErrorForScriptInfoNotFound(e.file??e.projectFileName),yfe.ThrowNoProject())}getDefaultProject(e){if(e.projectFileName){const t=this.getProject(e.projectFileName);if(t)return t;if(!e.file)return yfe.ThrowNoProject()}return this.projectService.getScriptInfo(e.file).getDefaultProject()}getRenameLocations(e,t){const n=Tfe(e.file),r=this.getPositionInFile(e,n),i=this.getProjects(e),o=this.getDefaultProject(e),a=this.getPreferences(n),s=this.mapRenameInfo(o.getLanguageService().getRenameInfo(n,r,a),un.checkDefined(this.projectService.getScriptInfo(n)));if(!s.canRename)return t?{info:s,locs:[]}:[];const c=function(e,t,n,r,i,o,a){const s=Lge(e,t,n,Ige(t,n,!0),Rge,((e,t)=>e.getLanguageService().findRenameLocations(t.fileName,t.pos,r,i,o)),((e,t)=>t(Jge(e))));if(Qe(s))return s;const c=[],l=Age(a);return s.forEach(((e,t)=>{for(const n of e)l.has(n)||zge(Jge(n),t)||(c.push(n),l.add(n))})),c}(i,o,{fileName:e.file,pos:r},!!e.findInStrings,!!e.findInComments,a,this.host.useCaseSensitiveFileNames);return t?{info:s,locs:this.toSpanGroups(c)}:c}mapRenameInfo(e,t){if(e.canRename){const{canRename:n,fileToRename:r,displayName:i,fullDisplayName:o,kind:a,kindModifiers:s,triggerSpan:c}=e;return{canRename:n,fileToRename:r,displayName:i,fullDisplayName:o,kind:a,kindModifiers:s,triggerSpan:Kge(c,t)}}return e}toSpanGroups(e){const t=new Map;for(const{fileName:n,textSpan:r,contextSpan:i,originalContextSpan:o,originalTextSpan:a,originalFileName:s,...c}of e){let e=t.get(n);e||t.set(n,e={file:n,locs:[]});const o=un.checkDefined(this.projectService.getScriptInfo(n));e.locs.push({...Gge(r,i,o),...c})}return Oe(t.values())}getReferences(e,t){const n=Tfe(e.file),r=this.getProjects(e),i=this.getPositionInFile(e,n),o=function(e,t,n,r,i){var o,a;const s=Lge(e,t,n,Ige(t,n,!1),Rge,((e,t)=>(i.info(`Finding references to ${t.fileName} position ${t.pos} in project ${e.getProjectName()}`),e.getLanguageService().findReferences(t.fileName,t.pos))),((e,t)=>{t(Jge(e.definition));for(const n of e.references)t(Jge(n))}));if(Qe(s))return s;const c=s.get(t);if(void 0===(null==(a=null==(o=null==c?void 0:c[0])?void 0:o.references[0])?void 0:a.isDefinition))s.forEach((e=>{for(const t of e)for(const e of t.references)delete e.isDefinition}));else{const e=Age(r);for(const t of c)for(const n of t.references)if(n.isDefinition){e.add(n);break}const t=new Set;for(;;){let n=!1;if(s.forEach(((r,i)=>{t.has(i)||i.getLanguageService().updateIsDefinitionOfReferencedSymbols(r,e)&&(t.add(i),n=!0)})),!n)break}s.forEach(((e,n)=>{if(!t.has(n))for(const t of e)for(const e of t.references)e.isDefinition=!1}))}const l=[],_=Age(r);return s.forEach(((e,t)=>{for(const n of e){const e=zge(Jge(n.definition),t),i=void 0===e?n.definition:{...n.definition,textSpan:Vs(e.pos,n.definition.textSpan.length),fileName:e.fileName,contextSpan:Uge(n.definition,t)};let o=b(l,(e=>YQ(e.definition,i,r)));o||(o={definition:i,references:[]},l.push(o));for(const e of n.references)_.has(e)||zge(Jge(e),t)||(_.add(e),o.references.push(e))}})),l.filter((e=>0!==e.references.length))}(r,this.getDefaultProject(e),{fileName:e.file,pos:i},this.host.useCaseSensitiveFileNames,this.logger);if(!t)return o;const a=this.getPreferences(n),s=this.getDefaultProject(e),c=s.getScriptInfoForNormalizedPath(n),l=s.getLanguageService().getQuickInfoAtPosition(n,i),_=l?D8(l.displayParts):"",u=l&&l.textSpan,d=u?c.positionToLineOffset(u.start).offset:0,p=u?c.getSnapshot().getText(u.start,Ds(u)):"";return{refs:O(o,(e=>e.references.map((e=>Yge(this.projectService,e,a))))),symbolName:p,symbolStartOffset:d,symbolDisplayString:_}}getFileReferences(e,t){const n=this.getProjects(e),r=Tfe(e.file),i=this.getPreferences(r),o={fileName:r,pos:0},a=Lge(n,this.getDefaultProject(e),o,o,jge,(e=>(this.logger.info(`Finding references to file ${r} in project ${e.getProjectName()}`),e.getLanguageService().getFileReferences(r))));let s;if(Qe(a))s=a;else{s=[];const e=Age(this.host.useCaseSensitiveFileNames);a.forEach((t=>{for(const n of t)e.has(n)||(s.push(n),e.add(n))}))}return t?{refs:s.map((e=>Yge(this.projectService,e,i))),symbolName:`"${e.file}"`}:s}openClientFile(e,t,n,r){this.projectService.openClientFileWithNormalizedPath(e,t,n,!1,r)}getPosition(e,t){return void 0!==e.position?e.position:t.lineOffsetToPosition(e.line,e.offset)}getPositionInFile(e,t){const n=this.projectService.getScriptInfoForNormalizedPath(t);return this.getPosition(e,n)}getFileAndProject(e){return this.getFileAndProjectWorker(e.file,e.projectFileName)}getFileAndLanguageServiceForSyntacticOperation(e){const{file:t,project:n}=this.getFileAndProject(e);return{file:t,languageService:n.getLanguageService(!1)}}getFileAndProjectWorker(e,t){const n=Tfe(e);return{file:n,project:this.getProject(t)||this.projectService.ensureDefaultProjectForFile(n)}}getOutliningSpans(e,t){const{file:n,languageService:r}=this.getFileAndLanguageServiceForSyntacticOperation(e),i=r.getOutliningSpans(n);if(t){const e=this.projectService.getScriptInfoForNormalizedPath(n);return i.map((t=>({textSpan:Kge(t.textSpan,e),hintSpan:Kge(t.hintSpan,e),bannerText:t.bannerText,autoCollapse:t.autoCollapse,kind:t.kind})))}return i}getTodoComments(e){const{file:t,project:n}=this.getFileAndProject(e);return n.getLanguageService().getTodoComments(t,e.descriptors)}getDocCommentTemplate(e){const{file:t,languageService:n}=this.getFileAndLanguageServiceForSyntacticOperation(e),r=this.getPositionInFile(e,t);return n.getDocCommentTemplateAtPosition(t,r,this.getPreferences(t),this.getFormatOptions(t))}getSpanOfEnclosingComment(e){const{file:t,languageService:n}=this.getFileAndLanguageServiceForSyntacticOperation(e),r=e.onlyMultiLine,i=this.getPositionInFile(e,t);return n.getSpanOfEnclosingComment(t,i,r)}getIndentation(e){const{file:t,languageService:n}=this.getFileAndLanguageServiceForSyntacticOperation(e),r=this.getPositionInFile(e,t),i=e.options?jme(e.options):this.getFormatOptions(t);return{position:r,indentation:n.getIndentationAtPosition(t,r,i)}}getBreakpointStatement(e){const{file:t,languageService:n}=this.getFileAndLanguageServiceForSyntacticOperation(e),r=this.getPositionInFile(e,t);return n.getBreakpointStatementAtPosition(t,r)}getNameOrDottedNameSpan(e){const{file:t,languageService:n}=this.getFileAndLanguageServiceForSyntacticOperation(e),r=this.getPositionInFile(e,t);return n.getNameOrDottedNameSpan(t,r,r)}isValidBraceCompletion(e){const{file:t,languageService:n}=this.getFileAndLanguageServiceForSyntacticOperation(e),r=this.getPositionInFile(e,t);return n.isValidBraceCompletionAtPosition(t,r,e.openingBrace.charCodeAt(0))}getQuickInfoWorker(e,t){const{file:n,project:r}=this.getFileAndProject(e),i=this.projectService.getScriptInfoForNormalizedPath(n),o=r.getLanguageService().getQuickInfoAtPosition(n,this.getPosition(e,i));if(!o)return;const a=!!this.getPreferences(n).displayPartsForJSDoc;if(t){const e=D8(o.displayParts);return{kind:o.kind,kindModifiers:o.kindModifiers,start:i.positionToLineOffset(o.textSpan.start),end:i.positionToLineOffset(Ds(o.textSpan)),displayString:e,documentation:a?this.mapDisplayParts(o.documentation,r):D8(o.documentation),tags:this.mapJSDocTagInfo(o.tags,r,a)}}return a?o:{...o,tags:this.mapJSDocTagInfo(o.tags,r,!1)}}getFormattingEditsForRange(e){const{file:t,languageService:n}=this.getFileAndLanguageServiceForSyntacticOperation(e),r=this.projectService.getScriptInfoForNormalizedPath(t),i=r.lineOffsetToPosition(e.line,e.offset),o=r.lineOffsetToPosition(e.endLine,e.endOffset),a=n.getFormattingEditsForRange(t,i,o,this.getFormatOptions(t));if(a)return a.map((e=>this.convertTextChangeToCodeEdit(e,r)))}getFormattingEditsForRangeFull(e){const{file:t,languageService:n}=this.getFileAndLanguageServiceForSyntacticOperation(e),r=e.options?jme(e.options):this.getFormatOptions(t);return n.getFormattingEditsForRange(t,e.position,e.endPosition,r)}getFormattingEditsForDocumentFull(e){const{file:t,languageService:n}=this.getFileAndLanguageServiceForSyntacticOperation(e),r=e.options?jme(e.options):this.getFormatOptions(t);return n.getFormattingEditsForDocument(t,r)}getFormattingEditsAfterKeystrokeFull(e){const{file:t,languageService:n}=this.getFileAndLanguageServiceForSyntacticOperation(e),r=e.options?jme(e.options):this.getFormatOptions(t);return n.getFormattingEditsAfterKeystroke(t,e.position,e.key,r)}getFormattingEditsAfterKeystroke(e){const{file:t,languageService:n}=this.getFileAndLanguageServiceForSyntacticOperation(e),r=this.projectService.getScriptInfoForNormalizedPath(t),i=r.lineOffsetToPosition(e.line,e.offset),o=this.getFormatOptions(t),a=n.getFormattingEditsAfterKeystroke(t,i,e.key,o);if("\n"===e.key&&(!a||0===a.length||function(e,t){return e.every((e=>Ds(e.span)({start:r.positionToLineOffset(e.span.start),end:r.positionToLineOffset(Ds(e.span)),newText:e.newText?e.newText:""})))}getCompletions(e,t){const{file:n,project:r}=this.getFileAndProject(e),i=this.projectService.getScriptInfoForNormalizedPath(n),o=this.getPosition(e,i),a=r.getLanguageService().getCompletionsAtPosition(n,o,{...qme(this.getPreferences(n)),triggerCharacter:e.triggerCharacter,triggerKind:e.triggerKind,includeExternalModuleExports:e.includeExternalModuleExports,includeInsertTextCompletions:e.includeInsertTextCompletions},r.projectService.getFormatCodeOptions(n));if(void 0===a)return;if("completions-full"===t)return a;const s=e.prefix||"",c=B(a.entries,(e=>{if(a.isMemberCompletion||Gt(e.name.toLowerCase(),s.toLowerCase())){const t=e.replacementSpan?Kge(e.replacementSpan,i):void 0;return{...e,replacementSpan:t,hasAction:e.hasAction||void 0,symbol:void 0}}}));return"completions"===t?(a.metadata&&(c.metadata=a.metadata),c):{...a,optionalReplacementSpan:a.optionalReplacementSpan&&Kge(a.optionalReplacementSpan,i),entries:c}}getCompletionEntryDetails(e,t){const{file:n,project:r}=this.getFileAndProject(e),i=this.projectService.getScriptInfoForNormalizedPath(n),o=this.getPosition(e,i),a=r.projectService.getFormatCodeOptions(n),s=!!this.getPreferences(n).displayPartsForJSDoc,c=B(e.entryNames,(e=>{const{name:t,source:i,data:s}="string"==typeof e?{name:e,source:void 0,data:void 0}:e;return r.getLanguageService().getCompletionEntryDetails(n,o,t,a,i,this.getPreferences(n),s?nt(s,Zge):void 0)}));return t?s?c:c.map((e=>({...e,tags:this.mapJSDocTagInfo(e.tags,r,!1)}))):c.map((e=>({...e,codeActions:E(e.codeActions,(e=>this.mapCodeAction(e))),documentation:this.mapDisplayParts(e.documentation,r),tags:this.mapJSDocTagInfo(e.tags,r,s)})))}getCompileOnSaveAffectedFileList(e){const t=this.getProjects(e,!0,!0),n=this.projectService.getScriptInfo(e.file);return n?function(e,t,n,r){const i=L(Qe(n)?n:n.projects,(t=>r(t,e)));return!Qe(n)&&n.symLinkedProjects&&n.symLinkedProjects.forEach(((e,n)=>{const o=t(n);i.push(...O(e,(e=>r(e,o))))})),Q(i,mt)}(n,(e=>this.projectService.getScriptInfoForPath(e)),t,((e,t)=>{if(!e.compileOnSaveEnabled||!e.languageServiceEnabled||e.isOrphan())return;const n=e.getCompilationSettings();return n.noEmit||$I(t.fileName)&&!function(e){return Nk(e)||!!e.emitDecoratorMetadata}(n)?void 0:{projectFileName:e.getProjectName(),fileNames:e.getCompileOnSaveAffectedFileList(t),projectUsesOutFile:!!n.outFile}})):xfe}emitFile(e){const{file:t,project:n}=this.getFileAndProject(e);if(n||yfe.ThrowNoProject(),!n.languageServiceEnabled)return!!e.richResponse&&{emitSkipped:!0,diagnostics:[]};const r=n.getScriptInfo(t),{emitSkipped:i,diagnostics:o}=n.emitFile(r,((e,t,n)=>this.host.writeFile(e,t,n)));return e.richResponse?{emitSkipped:i,diagnostics:e.includeLinePosition?this.convertToDiagnosticsWithLinePositionFromDiagnosticFile(o):o.map((e=>Nge(e,!0)))}:!i}getSignatureHelpItems(e,t){const{file:n,project:r}=this.getFileAndProject(e),i=this.projectService.getScriptInfoForNormalizedPath(n),o=this.getPosition(e,i),a=r.getLanguageService().getSignatureHelpItems(n,o,e),s=!!this.getPreferences(n).displayPartsForJSDoc;if(a&&t){const e=a.applicableSpan;return{...a,applicableSpan:{start:i.positionToLineOffset(e.start),end:i.positionToLineOffset(e.start+e.length)},items:this.mapSignatureHelpItems(a.items,r,s)}}return s||!a?a:{...a,items:a.items.map((e=>({...e,tags:this.mapJSDocTagInfo(e.tags,r,!1)})))}}toPendingErrorCheck(e){const t=Tfe(e),n=this.projectService.tryGetDefaultProjectForFile(t);return n&&{fileName:t,project:n}}getDiagnostics(e,t,n){this.suppressDiagnosticEvents||n.length>0&&this.updateErrorCheck(e,n,t)}change(e){const t=this.projectService.getScriptInfo(e.file);un.assert(!!t),t.textStorage.switchToScriptVersionCache();const n=t.lineOffsetToPosition(e.line,e.offset),r=t.lineOffsetToPosition(e.endLine,e.endOffset);n>=0&&(this.changeSeq++,this.projectService.applyChangesToFile(t,U({span:{start:n,length:r-n},newText:e.insertString})))}reload(e){const t=Tfe(e.file),n=void 0===e.tmpfile?void 0:Tfe(e.tmpfile),r=this.projectService.getScriptInfoForNormalizedPath(t);r&&(this.changeSeq++,r.reloadFromFile(n))}saveToTmp(e,t){const n=this.projectService.getScriptInfo(e);n&&n.saveTo(t)}closeClientFile(e){if(!e)return;const t=Jo(e);this.projectService.closeClientFile(t)}mapLocationNavigationBarItems(e,t){return E(e,(e=>({text:e.text,kind:e.kind,kindModifiers:e.kindModifiers,spans:e.spans.map((e=>Kge(e,t))),childItems:this.mapLocationNavigationBarItems(e.childItems,t),indent:e.indent})))}getNavigationBarItems(e,t){const{file:n,languageService:r}=this.getFileAndLanguageServiceForSyntacticOperation(e),i=r.getNavigationBarItems(n);return i?t?this.mapLocationNavigationBarItems(i,this.projectService.getScriptInfoForNormalizedPath(n)):i:void 0}toLocationNavigationTree(e,t){return{text:e.text,kind:e.kind,kindModifiers:e.kindModifiers,spans:e.spans.map((e=>Kge(e,t))),nameSpan:e.nameSpan&&Kge(e.nameSpan,t),childItems:E(e.childItems,(e=>this.toLocationNavigationTree(e,t)))}}getNavigationTree(e,t){const{file:n,languageService:r}=this.getFileAndLanguageServiceForSyntacticOperation(e),i=r.getNavigationTree(n);return i?t?this.toLocationNavigationTree(i,this.projectService.getScriptInfoForNormalizedPath(n)):i:void 0}getNavigateToItems(e,t){return O(this.getFullNavigateToItems(e),t?({project:e,navigateToItems:t})=>t.map((t=>{const n=e.getScriptInfo(t.fileName),r={name:t.name,kind:t.kind,kindModifiers:t.kindModifiers,isCaseSensitive:t.isCaseSensitive,matchKind:t.matchKind,file:t.fileName,start:n.positionToLineOffset(t.textSpan.start),end:n.positionToLineOffset(Ds(t.textSpan))};return t.kindModifiers&&""!==t.kindModifiers&&(r.kindModifiers=t.kindModifiers),t.containerName&&t.containerName.length>0&&(r.containerName=t.containerName),t.containerKind&&t.containerKind.length>0&&(r.containerKind=t.containerKind),r})):({navigateToItems:e})=>e)}getFullNavigateToItems(e){const{currentFileOnly:t,searchValue:n,maxResultCount:r,projectFileName:i}=e;if(t){un.assertIsDefined(e.file);const{file:t,project:i}=this.getFileAndProject(e);return[{project:i,navigateToItems:i.getLanguageService().getNavigateToItems(n,r,t)}]}const o=this.getHostPreferences(),a=[],s=new Map;return e.file||i?Oge(this.getProjects(e),void 0,(e=>c(e))):(this.projectService.loadAncestorProjectTree(),this.projectService.forEachEnabledProject((e=>c(e)))),a;function c(e){const t=N(e.getLanguageService().getNavigateToItems(n,r,void 0,e.isNonTsProject(),o.excludeLibrarySymbolsInNavTo),(t=>function(e){const t=e.name;if(!s.has(t))return s.set(t,[e]),!0;const n=s.get(t);for(const t of n)if((r=t)===(i=e)||r&&i&&r.containerKind===i.containerKind&&r.containerName===i.containerName&&r.fileName===i.fileName&&r.isCaseSensitive===i.isCaseSensitive&&r.kind===i.kind&&r.kindModifiers===i.kindModifiers&&r.matchKind===i.matchKind&&r.name===i.name&&r.textSpan.start===i.textSpan.start&&r.textSpan.length===i.textSpan.length)return!1;var r,i;return n.push(e),!0}(t)&&!zge(Jge(t),e)));t.length&&a.push({project:e,navigateToItems:t})}}getSupportedCodeFixes(e){if(!e)return E8();if(e.file){const{file:t,project:n}=this.getFileAndProject(e);return n.getLanguageService().getSupportedCodeFixes(t)}const t=this.getProject(e.projectFileName);return t||yfe.ThrowNoProject(),t.getLanguageService().getSupportedCodeFixes()}isLocation(e){return void 0!==e.line}extractPositionOrRange(e,t){let n,r;var i;return this.isLocation(e)?n=void 0!==(i=e).position?i.position:t.lineOffsetToPosition(i.line,i.offset):r=this.getRange(e,t),un.checkDefined(void 0===n?r:n)}getRange(e,t){const{startPosition:n,endPosition:r}=this.getStartAndEndPosition(e,t);return{pos:n,end:r}}getApplicableRefactors(e){const{file:t,project:n}=this.getFileAndProject(e),r=n.getScriptInfoForNormalizedPath(t);return n.getLanguageService().getApplicableRefactors(t,this.extractPositionOrRange(e,r),this.getPreferences(t),e.triggerReason,e.kind,e.includeInteractiveActions).map((e=>({...e,actions:e.actions.map((e=>({...e,range:e.range?{start:wge({line:e.range.start.line,character:e.range.start.offset}),end:wge({line:e.range.end.line,character:e.range.end.offset})}:void 0})))})))}getEditsForRefactor(e,t){const{file:n,project:r}=this.getFileAndProject(e),i=r.getScriptInfoForNormalizedPath(n),o=r.getLanguageService().getEditsForRefactor(n,this.getFormatOptions(n),this.extractPositionOrRange(e,i),e.refactor,e.action,this.getPreferences(n),e.interactiveRefactorArguments);if(void 0===o)return{edits:[]};if(t){const{renameFilename:e,renameLocation:t,edits:n}=o;let i;return void 0!==e&&void 0!==t&&(i=Qge(CQ(r.getScriptInfoForNormalizedPath(Tfe(e)).getSnapshot()),e,t,n)),{renameLocation:i,renameFilename:e,edits:this.mapTextChangesToCodeEdits(n),notApplicableReason:o.notApplicableReason}}return o}getMoveToRefactoringFileSuggestions(e){const{file:t,project:n}=this.getFileAndProject(e),r=n.getScriptInfoForNormalizedPath(t);return n.getLanguageService().getMoveToRefactoringFileSuggestions(t,this.extractPositionOrRange(e,r),this.getPreferences(t))}preparePasteEdits(e){const{file:t,project:n}=this.getFileAndProject(e);return n.getLanguageService().preparePasteEditsForFile(t,e.copiedTextSpan.map((e=>this.getRange({file:t,startLine:e.start.line,startOffset:e.start.offset,endLine:e.end.line,endOffset:e.end.offset},this.projectService.getScriptInfoForNormalizedPath(t)))))}getPasteEdits(e){const{file:t,project:n}=this.getFileAndProject(e);if(Kfe(t))return;const r=e.copiedFrom?{file:e.copiedFrom.file,range:e.copiedFrom.spans.map((t=>this.getRange({file:e.copiedFrom.file,startLine:t.start.line,startOffset:t.start.offset,endLine:t.end.line,endOffset:t.end.offset},n.getScriptInfoForNormalizedPath(Tfe(e.copiedFrom.file)))))}:void 0,i=n.getLanguageService().getPasteEdits({targetFile:t,pastedText:e.pastedText,pasteLocations:e.pasteLocations.map((e=>this.getRange({file:t,startLine:e.start.line,startOffset:e.start.offset,endLine:e.end.line,endOffset:e.end.offset},n.getScriptInfoForNormalizedPath(t)))),copiedFrom:r,preferences:this.getPreferences(t)},this.getFormatOptions(t));return i&&this.mapPasteEditsAction(i)}organizeImports(e,t){un.assert("file"===e.scope.type);const{file:n,project:r}=this.getFileAndProject(e.scope.args),i=r.getLanguageService().organizeImports({fileName:n,mode:e.mode??(e.skipDestructiveCodeActions?"SortAndCombine":void 0),type:"file"},this.getFormatOptions(n),this.getPreferences(n));return t?this.mapTextChangesToCodeEdits(i):i}getEditsForFileRename(e,t){const n=Tfe(e.oldFilePath),r=Tfe(e.newFilePath),i=this.getHostFormatOptions(),o=this.getHostPreferences(),a=new Set,s=[];return this.projectService.loadAncestorProjectTree(),this.projectService.forEachEnabledProject((e=>{const t=e.getLanguageService().getEditsForFileRename(n,r,i,o),c=[];for(const e of t)a.has(e.fileName)||(s.push(e),c.push(e.fileName));for(const e of c)a.add(e)})),t?s.map((e=>this.mapTextChangeToCodeEdit(e))):s}getCodeFixes(e,t){const{file:n,project:r}=this.getFileAndProject(e),i=r.getScriptInfoForNormalizedPath(n),{startPosition:o,endPosition:a}=this.getStartAndEndPosition(e,i);let s;try{s=r.getLanguageService().getCodeFixesAtPosition(n,o,a,e.errorCodes,this.getFormatOptions(n),this.getPreferences(n))}catch(t){const i=r.getLanguageService(),s=[...i.getSyntacticDiagnostics(n),...i.getSemanticDiagnostics(n),...i.getSuggestionDiagnostics(n)].map((e=>Bs(o,a-o,e.start,e.length)&&e.code)),c=e.errorCodes.find((e=>!s.includes(e)));throw void 0!==c&&(t.message=`BADCLIENT: Bad error code, ${c} not found in range ${o}..${a} (found: ${s.join(", ")}); could have caused this error:\n${t.message}`),t}return t?s.map((e=>this.mapCodeFixAction(e))):s}getCombinedCodeFix({scope:e,fixId:t},n){un.assert("file"===e.type);const{file:r,project:i}=this.getFileAndProject(e.args),o=i.getLanguageService().getCombinedCodeFix({type:"file",fileName:r},t,this.getFormatOptions(r),this.getPreferences(r));return n?{changes:this.mapTextChangesToCodeEdits(o.changes),commands:o.commands}:o}applyCodeActionCommand(e){const t=e.command;for(const e of Ye(t)){const{file:t,project:n}=this.getFileAndProject(e);n.getLanguageService().applyCodeActionCommand(e,this.getFormatOptions(t)).then((e=>{}),(e=>{}))}return{}}getStartAndEndPosition(e,t){let n,r;return void 0!==e.startPosition?n=e.startPosition:(n=t.lineOffsetToPosition(e.startLine,e.startOffset),e.startPosition=n),void 0!==e.endPosition?r=e.endPosition:(r=t.lineOffsetToPosition(e.endLine,e.endOffset),e.endPosition=r),{startPosition:n,endPosition:r}}mapCodeAction({description:e,changes:t,commands:n}){return{description:e,changes:this.mapTextChangesToCodeEdits(t),commands:n}}mapCodeFixAction({fixName:e,description:t,changes:n,commands:r,fixId:i,fixAllDescription:o}){return{fixName:e,description:t,changes:this.mapTextChangesToCodeEdits(n),commands:r,fixId:i,fixAllDescription:o}}mapPasteEditsAction({edits:e,fixId:t}){return{edits:this.mapTextChangesToCodeEdits(e),fixId:t}}mapTextChangesToCodeEdits(e){return e.map((e=>this.mapTextChangeToCodeEdit(e)))}mapTextChangeToCodeEdit(e){const t=this.projectService.getScriptInfoOrConfig(e.fileName);return!!e.isNewFile==!!t&&(t||this.projectService.logErrorForScriptInfoNotFound(e.fileName),un.fail("Expected isNewFile for (only) new files. "+JSON.stringify({isNewFile:!!e.isNewFile,hasScriptInfo:!!t}))),t?{fileName:e.fileName,textChanges:e.textChanges.map((e=>function(e,t){return{start:Xge(t,e.span.start),end:Xge(t,Ds(e.span)),newText:e.newText}}(e,t)))}:function(e){un.assert(1===e.textChanges.length);const t=ge(e.textChanges);return un.assert(0===t.span.start&&0===t.span.length),{fileName:e.fileName,textChanges:[{start:{line:0,offset:0},end:{line:0,offset:0},newText:t.newText}]}}(e)}convertTextChangeToCodeEdit(e,t){return{start:t.positionToLineOffset(e.span.start),end:t.positionToLineOffset(e.span.start+e.span.length),newText:e.newText?e.newText:""}}getBraceMatching(e,t){const{file:n,languageService:r}=this.getFileAndLanguageServiceForSyntacticOperation(e),i=this.projectService.getScriptInfoForNormalizedPath(n),o=this.getPosition(e,i),a=r.getBraceMatchingAtPosition(n,o);return a?t?a.map((e=>Kge(e,i))):a:void 0}getDiagnosticsForProject(e,t,n){if(this.suppressDiagnosticEvents)return;const{fileNames:r,languageServiceDisabled:i}=this.getProjectInfoWorker(n,void 0,!0,void 0,!0);if(i)return;const o=r.filter((e=>!e.includes("lib.d.ts")));if(0===o.length)return;const a=[],s=[],c=[],l=[],_=Tfe(n),u=this.projectService.ensureDefaultProjectForFile(_);for(const e of o)this.getCanonicalFileName(e)===this.getCanonicalFileName(n)?a.push(e):this.projectService.getScriptInfo(e).isScriptOpen()?s.push(e):$I(e)?l.push(e):c.push(e);const d=[...a,...s,...c,...l].map((e=>({fileName:e,project:u})));this.updateErrorCheck(e,d,t,!1)}configurePlugin(e){this.projectService.configurePlugin(e)}getSmartSelectionRange(e,t){const{locations:n}=e,{file:r,languageService:i}=this.getFileAndLanguageServiceForSyntacticOperation(e),o=un.checkDefined(this.projectService.getScriptInfo(r));return E(n,(e=>{const n=this.getPosition(e,o),a=i.getSmartSelectionRange(r,n);return t?this.mapSelectionRange(a,o):a}))}toggleLineComment(e,t){const{file:n,languageService:r}=this.getFileAndLanguageServiceForSyntacticOperation(e),i=this.projectService.getScriptInfo(n),o=this.getRange(e,i),a=r.toggleLineComment(n,o);if(t){const e=this.projectService.getScriptInfoForNormalizedPath(n);return a.map((t=>this.convertTextChangeToCodeEdit(t,e)))}return a}toggleMultilineComment(e,t){const{file:n,languageService:r}=this.getFileAndLanguageServiceForSyntacticOperation(e),i=this.projectService.getScriptInfoForNormalizedPath(n),o=this.getRange(e,i),a=r.toggleMultilineComment(n,o);if(t){const e=this.projectService.getScriptInfoForNormalizedPath(n);return a.map((t=>this.convertTextChangeToCodeEdit(t,e)))}return a}commentSelection(e,t){const{file:n,languageService:r}=this.getFileAndLanguageServiceForSyntacticOperation(e),i=this.projectService.getScriptInfoForNormalizedPath(n),o=this.getRange(e,i),a=r.commentSelection(n,o);if(t){const e=this.projectService.getScriptInfoForNormalizedPath(n);return a.map((t=>this.convertTextChangeToCodeEdit(t,e)))}return a}uncommentSelection(e,t){const{file:n,languageService:r}=this.getFileAndLanguageServiceForSyntacticOperation(e),i=this.projectService.getScriptInfoForNormalizedPath(n),o=this.getRange(e,i),a=r.uncommentSelection(n,o);if(t){const e=this.projectService.getScriptInfoForNormalizedPath(n);return a.map((t=>this.convertTextChangeToCodeEdit(t,e)))}return a}mapSelectionRange(e,t){const n={textSpan:Kge(e.textSpan,t)};return e.parent&&(n.parent=this.mapSelectionRange(e.parent,t)),n}getScriptInfoFromProjectService(e){const t=Tfe(e);return this.projectService.getScriptInfoForNormalizedPath(t)||(this.projectService.logErrorForScriptInfoNotFound(t),yfe.ThrowNoProject())}toProtocolCallHierarchyItem(e){const t=this.getScriptInfoFromProjectService(e.file);return{name:e.name,kind:e.kind,kindModifiers:e.kindModifiers,file:e.file,containerName:e.containerName,span:Kge(e.span,t),selectionSpan:Kge(e.selectionSpan,t)}}toProtocolCallHierarchyIncomingCall(e){const t=this.getScriptInfoFromProjectService(e.from.file);return{from:this.toProtocolCallHierarchyItem(e.from),fromSpans:e.fromSpans.map((e=>Kge(e,t)))}}toProtocolCallHierarchyOutgoingCall(e,t){return{to:this.toProtocolCallHierarchyItem(e.to),fromSpans:e.fromSpans.map((e=>Kge(e,t)))}}prepareCallHierarchy(e){const{file:t,project:n}=this.getFileAndProject(e),r=this.projectService.getScriptInfoForNormalizedPath(t);if(r){const i=this.getPosition(e,r),o=n.getLanguageService().prepareCallHierarchy(t,i);return o&&AZ(o,(e=>this.toProtocolCallHierarchyItem(e)))}}provideCallHierarchyIncomingCalls(e){const{file:t,project:n}=this.getFileAndProject(e),r=this.getScriptInfoFromProjectService(t);return n.getLanguageService().provideCallHierarchyIncomingCalls(t,this.getPosition(e,r)).map((e=>this.toProtocolCallHierarchyIncomingCall(e)))}provideCallHierarchyOutgoingCalls(e){const{file:t,project:n}=this.getFileAndProject(e),r=this.getScriptInfoFromProjectService(t);return n.getLanguageService().provideCallHierarchyOutgoingCalls(t,this.getPosition(e,r)).map((e=>this.toProtocolCallHierarchyOutgoingCall(e,r)))}getCanonicalFileName(e){return Jo(this.host.useCaseSensitiveFileNames?e:_t(e))}exit(){}notRequired(e){return e&&this.doOutput(void 0,e.command,e.seq,!0,this.performanceData),{responseRequired:!1,performanceData:this.performanceData}}requiredResponse(e){return{response:e,responseRequired:!0,performanceData:this.performanceData}}addProtocolHandler(e,t){if(this.handlers.has(e))throw new Error(`Protocol handler already exists for command "${e}"`);this.handlers.set(e,t)}setCurrentRequest(e){un.assert(void 0===this.currentRequestId),this.currentRequestId=e,this.cancellationToken.setRequest(e)}resetCurrentRequest(e){un.assert(this.currentRequestId===e),this.currentRequestId=void 0,this.cancellationToken.resetRequest(e)}executeWithRequestId(e,t,n){const r=this.performanceData;try{return this.performanceData=n,this.setCurrentRequest(e),t()}finally{this.resetCurrentRequest(e),this.performanceData=r}}executeCommand(e){const t=this.handlers.get(e.command);if(t){const n=this.executeWithRequestId(e.seq,(()=>t(e)),void 0);return this.projectService.enableRequestedPlugins(),n}return this.logger.msg(`Unrecognized JSON command:${VK(e)}`,"Err"),this.doOutput(void 0,"unknown",e.seq,!1,void 0,`Unrecognized JSON command: ${e.command}`),{responseRequired:!1}}onMessage(e){var t,n,r,i,o,a,s;let c;this.gcTimer.scheduleCollect();const l=this.performanceData;let _,u;this.logger.hasLevel(2)&&(c=this.hrtime(),this.logger.hasLevel(3)&&this.logger.info(`request:${UK(this.toStringMessage(e))}`));try{_=this.parseMessage(e),u=_.arguments&&_.arguments.file?_.arguments:void 0,null==(t=Hn)||t.instant(Hn.Phase.Session,"request",{seq:_.seq,command:_.command}),null==(n=Hn)||n.push(Hn.Phase.Session,"executeCommand",{seq:_.seq,command:_.command},!0);const{response:o,responseRequired:a,performanceData:s}=this.executeCommand(_);if(null==(r=Hn)||r.pop(),this.logger.hasLevel(2)){const e=(d=this.hrtime(c),(1e9*d[0]+d[1])/1e6).toFixed(4);a?this.logger.perftrc(`${_.seq}::${_.command}: elapsed time (in milliseconds) ${e}`):this.logger.perftrc(`${_.seq}::${_.command}: async elapsed time (in milliseconds) ${e}`)}null==(i=Hn)||i.instant(Hn.Phase.Session,"response",{seq:_.seq,command:_.command,success:!!o}),o?this.doOutput(o,_.command,_.seq,!0,s):a&&this.doOutput(void 0,_.command,_.seq,!1,s,"No content available.")}catch(t){if(null==(o=Hn)||o.popAll(),t instanceof Cr)return null==(a=Hn)||a.instant(Hn.Phase.Session,"commandCanceled",{seq:null==_?void 0:_.seq,command:null==_?void 0:_.command}),void this.doOutput({canceled:!0},_.command,_.seq,!0,this.performanceData);this.logErrorWorker(t,this.toStringMessage(e),u),null==(s=Hn)||s.instant(Hn.Phase.Session,"commandError",{seq:null==_?void 0:_.seq,command:null==_?void 0:_.command,message:t.message}),this.doOutput(void 0,_?_.command:"unknown",_?_.seq:0,!1,this.performanceData,"Error processing request. "+t.message+"\n"+t.stack)}finally{this.performanceData=l}var d}parseMessage(e){return JSON.parse(e)}toStringMessage(e){return e}getFormatOptions(e){return this.projectService.getFormatCodeOptions(e)}getPreferences(e){return this.projectService.getPreferences(e)}getHostFormatOptions(){return this.projectService.getHostFormatCodeOptions()}getHostPreferences(){return this.projectService.getHostPreferences()}};function Hge(e){const t=e.diagnosticsDuration&&Oe(e.diagnosticsDuration,(([e,t])=>({...t,file:e})));return{...e,diagnosticsDuration:t}}function Kge(e,t){return{start:t.positionToLineOffset(e.start),end:t.positionToLineOffset(Ds(e))}}function Gge(e,t,n){const r=Kge(e,n),i=t&&Kge(t,n);return i?{...r,contextStart:i.start,contextEnd:i.end}:r}function Xge(e,t){return yge(e)?{line:(n=e.getLineAndCharacterOfPosition(t)).line+1,offset:n.character+1}:e.positionToLineOffset(t);var n}function Qge(e,t,n,r){const i=function(e,t,n){for(const{fileName:r,textChanges:i}of n)if(r===t)for(let t=i.length-1;t>=0;t--){const{newText:n,span:{start:r,length:o}}=i[t];e=e.slice(0,r)+n+e.slice(r+o)}return e}(e,t,r),{line:o,character:a}=Ra(Ia(i),n);return{line:o+1,offset:a+1}}function Yge(e,{fileName:t,textSpan:n,contextSpan:r,isWriteAccess:i,isDefinition:o},{disableLineTextInReferences:a}){const s=un.checkDefined(e.getScriptInfo(t)),c=Gge(n,r,s),l=a?void 0:function(e,t){const n=e.lineToTextSpan(t.start.line-1);return e.getSnapshot().getText(n.start,Ds(n)).replace(/\r|\n/g,"")}(s,c);return{file:t,...c,lineText:l,isWriteAccess:i,isDefinition:o}}function Zge(e){return void 0===e||e&&"object"==typeof e&&"string"==typeof e.exportName&&(void 0===e.fileName||"string"==typeof e.fileName)&&(void 0===e.ambientModuleName||"string"==typeof e.ambientModuleName&&(void 0===e.isPackageJsonImport||"boolean"==typeof e.isPackageJsonImport))}var ehe=(e=>(e[e.PreStart=0]="PreStart",e[e.Start=1]="Start",e[e.Entire=2]="Entire",e[e.Mid=3]="Mid",e[e.End=4]="End",e[e.PostEnd=5]="PostEnd",e))(ehe||{}),the=class{constructor(){this.goSubtree=!0,this.lineIndex=new ahe,this.endBranch=[],this.state=2,this.initialText="",this.trailingText="",this.lineIndex.root=new she,this.startPath=[this.lineIndex.root],this.stack=[this.lineIndex.root]}get done(){return!1}insertLines(e,t){t&&(this.trailingText=""),e=e?this.initialText+e+this.trailingText:this.initialText+this.trailingText;const n=ahe.linesFromText(e).lines;let r,i;n.length>1&&""===n[n.length-1]&&n.pop();for(let e=this.endBranch.length-1;e>=0;e--)this.endBranch[e].updateCounts(),0===this.endBranch[e].charCount()&&(i=this.endBranch[e],r=e>0?this.endBranch[e-1]:this.branchNode);i&&r.remove(i);const o=this.startPath[this.startPath.length-1];if(n.length>0)if(o.text=n[0],n.length>1){let e=new Array(n.length-1),t=o;for(let t=1;t=0;){const n=this.startPath[r];e=n.insertAt(t,e),r--,t=n}let i=e.length;for(;i>0;){const t=new she;t.add(this.lineIndex.root),e=t.insertAt(this.lineIndex.root,e),i=e.length,this.lineIndex.root=t}this.lineIndex.root.updateCounts()}else for(let e=this.startPath.length-2;e>=0;e--)this.startPath[e].updateCounts();else{this.startPath[this.startPath.length-2].remove(o);for(let e=this.startPath.length-2;e>=0;e--)this.startPath[e].updateCounts()}return this.lineIndex}post(e,t,n){n===this.lineCollectionAtBranch&&(this.state=4),this.stack.pop()}pre(e,t,n,r,i){const o=this.stack[this.stack.length-1];let a;function s(e){return e.isLeaf()?new che(""):new she}switch(2===this.state&&1===i&&(this.state=1,this.branchNode=o,this.lineCollectionAtBranch=n),i){case 0:this.goSubtree=!1,4!==this.state&&o.add(n);break;case 1:4===this.state?this.goSubtree=!1:(a=s(n),o.add(a),this.startPath.push(a));break;case 2:4!==this.state?(a=s(n),o.add(a),this.startPath.push(a)):n.isLeaf()||(a=s(n),o.add(a),this.endBranch.push(a));break;case 3:this.goSubtree=!1;break;case 4:4!==this.state?this.goSubtree=!1:n.isLeaf()||(a=s(n),o.add(a),this.endBranch.push(a));break;case 5:this.goSubtree=!1,1!==this.state&&o.add(n)}this.goSubtree&&this.stack.push(a)}leaf(e,t,n){1===this.state?this.initialText=n.text.substring(0,e):2===this.state?(this.initialText=n.text.substring(0,e),this.trailingText=n.text.substring(e+t)):this.trailingText=n.text.substring(e+t)}},nhe=class{constructor(e,t,n){this.pos=e,this.deleteLen=t,this.insertedText=n}getTextChangeRange(){return Ks(Vs(this.pos,this.deleteLen),this.insertedText?this.insertedText.length:0)}},rhe=class e{constructor(){this.changes=[],this.versions=new Array(e.maxVersions),this.minVersion=0,this.currentVersion=0}versionToIndex(t){if(!(tthis.currentVersion))return t%e.maxVersions}currentVersionToIndex(){return this.currentVersion%e.maxVersions}edit(t,n,r){this.changes.push(new nhe(t,n,r)),(this.changes.length>e.changeNumberThreshold||n>e.changeLengthThreshold||r&&r.length>e.changeLengthThreshold)&&this.getSnapshot()}getSnapshot(){return this._getSnapshot()}_getSnapshot(){let t=this.versions[this.currentVersionToIndex()];if(this.changes.length>0){let n=t.index;for(const e of this.changes)n=n.edit(e.pos,e.deleteLen,e.insertedText);t=new ohe(this.currentVersion+1,this,n,this.changes),this.currentVersion=t.version,this.versions[this.currentVersionToIndex()]=t,this.changes=[],this.currentVersion-this.minVersion>=e.maxVersions&&(this.minVersion=this.currentVersion-e.maxVersions+1)}return t}getSnapshotVersion(){return this._getSnapshot().version}getAbsolutePositionAndLineText(e){return this._getSnapshot().index.lineNumberToInfo(e)}lineOffsetToPosition(e,t){return this._getSnapshot().index.absolutePositionOfStartOfLine(e)+(t-1)}positionToLineOffset(e){return this._getSnapshot().index.positionToLineOffset(e)}lineToTextSpan(e){const t=this._getSnapshot().index,{lineText:n,absolutePosition:r}=t.lineNumberToInfo(e+1);return Vs(r,void 0!==n?n.length:t.absolutePositionOfStartOfLine(e+2)-r)}getTextChangesBetweenVersions(e,t){if(!(e=this.minVersion){const n=[];for(let r=e+1;r<=t;r++){const e=this.versions[this.versionToIndex(r)];for(const t of e.changesSincePreviousVersion)n.push(t.getTextChangeRange())}return Xs(n)}}getLineCount(){return this._getSnapshot().index.getLineCount()}static fromString(t){const n=new e,r=new ohe(0,n,new ahe);n.versions[n.currentVersion]=r;const i=ahe.linesFromText(t);return r.index.load(i.lines),n}};rhe.changeNumberThreshold=8,rhe.changeLengthThreshold=256,rhe.maxVersions=8;var ihe=rhe,ohe=class e{constructor(e,t,n,r=xfe){this.version=e,this.cache=t,this.index=n,this.changesSincePreviousVersion=r}getText(e,t){return this.index.getText(e,t-e)}getLength(){return this.index.getLength()}getChangeRange(t){if(t instanceof e&&this.cache===t.cache)return this.version<=t.version?Gs:this.cache.getTextChangesBetweenVersions(t.version,this.version)}},ahe=class e{constructor(){this.checkEdits=!1}absolutePositionOfStartOfLine(e){return this.lineNumberToInfo(e).absolutePosition}positionToLineOffset(e){const{oneBasedLine:t,zeroBasedColumn:n}=this.root.charOffsetToLineInfo(1,e);return{line:t,offset:n+1}}positionToColumnAndLineText(e){return this.root.charOffsetToLineInfo(1,e)}getLineCount(){return this.root.lineCount()}lineNumberToInfo(e){if(e<=this.getLineCount()){const{position:t,leaf:n}=this.root.lineNumberToInfo(e,0);return{absolutePosition:t,lineText:n&&n.text}}return{absolutePosition:this.root.charCount(),lineText:void 0}}load(t){if(t.length>0){const n=[];for(let e=0;e0&&e{n=n.concat(r.text.substring(e,e+t))}}),n}getLength(){return this.root.charCount()}every(e,t,n){n||(n=this.root.charCount());const r={goSubtree:!0,done:!1,leaf(t,n,r){e(r,t,n)||(this.done=!0)}};return this.walk(t,n-t,r),!r.done}edit(t,n,r){if(0===this.root.charCount())return un.assert(0===n),void 0!==r?(this.load(e.linesFromText(r).lines),this):void 0;{let e;if(this.checkEdits){const i=this.getText(0,this.root.charCount());e=i.slice(0,t)+r+i.slice(t+n)}const i=new the;let o=!1;if(t>=this.root.charCount()){t=this.root.charCount()-1;const e=this.getText(t,1);r=r?e+r:e,n=0,o=!0}else if(n>0){const e=t+n,{zeroBasedColumn:i,lineText:o}=this.positionToColumnAndLineText(e);0===i&&(n+=o.length,r=r?r+o:o)}if(this.root.walk(t,n,i),i.insertLines(r,o),this.checkEdits){const t=i.lineIndex.getText(0,i.lineIndex.getLength());un.assert(e===t,"buffer edit mismatch")}return i.lineIndex}}static buildTreeFromBottom(e){if(e.length<4)return new she(e);const t=new Array(Math.ceil(e.length/4));let n=0;for(let r=0;r0?n[r]=i:n.pop(),{lines:n,lineMap:t}}},she=class e{constructor(e=[]){this.children=e,this.totalChars=0,this.totalLines=0,e.length&&this.updateCounts()}isLeaf(){return!1}updateCounts(){this.totalChars=0,this.totalLines=0;for(const e of this.children)this.totalChars+=e.charCount(),this.totalLines+=e.lineCount()}execWalk(e,t,n,r,i){return n.pre&&n.pre(e,t,this.children[r],this,i),n.goSubtree?(this.children[r].walk(e,t,n),n.post&&n.post(e,t,this.children[r],this,i)):n.goSubtree=!0,n.done}skipChild(e,t,n,r,i){r.pre&&!r.done&&(r.pre(e,t,this.children[n],this,i),r.goSubtree=!0)}walk(e,t,n){if(0===this.children.length)return;let r=0,i=this.children[r].charCount(),o=e;for(;o>=i;)this.skipChild(o,t,r,n,0),o-=i,r++,i=this.children[r].charCount();if(o+t<=i){if(this.execWalk(o,t,n,r,2))return}else{if(this.execWalk(o,i-o,n,r,1))return;let e=t-(i-o);for(r++,i=this.children[r].charCount();e>i;){if(this.execWalk(0,i,n,r,3))return;e-=i,r++,i=this.children[r].charCount()}if(e>0&&this.execWalk(0,e,n,r,4))return}if(n.pre){const e=this.children.length;if(rt)return n.isLeaf()?{oneBasedLine:e,zeroBasedColumn:t,lineText:n.text}:n.charOffsetToLineInfo(e,t);t-=n.charCount(),e+=n.lineCount()}const n=this.lineCount();return 0===n?{oneBasedLine:1,zeroBasedColumn:0,lineText:void 0}:{oneBasedLine:n,zeroBasedColumn:un.checkDefined(this.lineNumberToInfo(n,0).leaf).charCount(),lineText:void 0}}lineNumberToInfo(e,t){for(const n of this.children){const r=n.lineCount();if(r>=e)return n.isLeaf()?{position:t,leaf:n}:n.lineNumberToInfo(e,t);e-=r,t+=n.charCount()}return{position:t,leaf:void 0}}splitAfter(t){let n;const r=this.children.length,i=++t;if(t=0;e--)0===a[e].children.length&&a.pop()}t&&a.push(t),this.updateCounts();for(let e=0;e{(this.packageInstalledPromise??(this.packageInstalledPromise=new Map)).set(this.packageInstallId,{resolve:e,reject:t})}));return this.installer.send(t),n}attach(e){this.projectService=e,this.installer=this.createInstallerProcess()}onProjectClosed(e){this.installer.send({projectName:e.getProjectName(),kind:"closeProject"})}enqueueInstallTypingsRequest(e,t,n){const r=Sfe(e,t,n);this.logger.hasLevel(3)&&this.logger.info(`TIAdapter:: Scheduling throttled operation:${VK(r)}`),this.activeRequestCount0?this.activeRequestCount--:un.fail("TIAdapter:: Received too many responses");!this.requestQueue.isEmpty();){const e=this.requestQueue.dequeue();if(this.requestMap.get(e.projectName)===e){this.requestMap.delete(e.projectName),this.scheduleRequest(e);break}this.logger.hasLevel(3)&&this.logger.info(`TIAdapter:: Skipping defunct request for: ${e.projectName}`)}this.projectService.updateTypingsForProject(e),this.event(e,"setTypings");break;case MK:this.projectService.watchTypingLocations(e)}}scheduleRequest(t){this.logger.hasLevel(3)&&this.logger.info(`TIAdapter:: Scheduling request for: ${t.projectName}`),this.activeRequestCount++,this.host.setTimeout((()=>{this.logger.hasLevel(3)&&this.logger.info(`TIAdapter:: Sending request:${VK(t)}`),this.installer.send(t)}),e.requestDelayMillis,`${t.projectName}::${t.kind}`)}};lhe.requestDelayMillis=100;var _he=lhe,uhe={};i(uhe,{ActionInvalidate:()=>AK,ActionPackageInstalled:()=>IK,ActionSet:()=>PK,ActionWatchTypingLocations:()=>MK,Arguments:()=>FK,AutoImportProviderProject:()=>lme,AuxiliaryProject:()=>sme,CharRangeSection:()=>ehe,CloseFileWatcherEvent:()=>Fme,CommandNames:()=>Dge,ConfigFileDiagEvent:()=>Sme,ConfiguredProject:()=>_me,ConfiguredProjectLoadKind:()=>Qme,CreateDirectoryWatcherEvent:()=>Dme,CreateFileWatcherEvent:()=>Nme,Errors:()=>yfe,EventBeginInstallTypes:()=>LK,EventEndInstallTypes:()=>jK,EventInitializationFailed:()=>RK,EventTypesRegistry:()=>OK,ExternalProject:()=>ume,GcTimer:()=>Ofe,InferredProject:()=>ame,LargeFileReferencedEvent:()=>kme,LineIndex:()=>ahe,LineLeaf:()=>che,LineNode:()=>she,LogLevel:()=>bfe,Msg:()=>kfe,OpenFileInfoTelemetryEvent:()=>wme,Project:()=>ome,ProjectInfoTelemetryEvent:()=>Cme,ProjectKind:()=>Yfe,ProjectLanguageServiceStateEvent:()=>Tme,ProjectLoadingFinishEvent:()=>xme,ProjectLoadingStartEvent:()=>bme,ProjectService:()=>hge,ProjectsUpdatedInBackgroundEvent:()=>vme,ScriptInfo:()=>Gfe,ScriptVersionCache:()=>ihe,Session:()=>$ge,TextStorage:()=>Hfe,ThrottledOperations:()=>Ife,TypingsInstallerAdapter:()=>_he,allFilesAreJsOrDts:()=>tme,allRootFilesAreJsOrDts:()=>eme,asNormalizedPath:()=>wfe,convertCompilerOptions:()=>Rme,convertFormatOptions:()=>jme,convertScriptKindName:()=>zme,convertTypeAcquisition:()=>Bme,convertUserPreferences:()=>qme,convertWatchOptions:()=>Mme,countEachFileTypes:()=>Zfe,createInstallTypingsRequest:()=>Sfe,createModuleSpecifierCache:()=>bge,createNormalizedPathMap:()=>Nfe,createPackageJsonCache:()=>xge,createSortedArray:()=>Afe,emptyArray:()=>xfe,findArgument:()=>JK,formatDiagnosticToProtocol:()=>Nge,formatMessage:()=>Fge,getBaseConfigFileName:()=>Lfe,getDetailWatchInfo:()=>oge,getLocationInNewDocument:()=>Qge,hasArgument:()=>BK,hasNoTypeScriptSource:()=>nme,indent:()=>UK,isBackgroundProject:()=>mme,isConfigFile:()=>yge,isConfiguredProject:()=>pme,isDynamicFileName:()=>Kfe,isExternalProject:()=>fme,isInferredProject:()=>dme,isInferredProjectName:()=>Dfe,isProjectDeferredClose:()=>gme,makeAutoImportProviderProjectName:()=>Efe,makeAuxiliaryProjectName:()=>Pfe,makeInferredProjectName:()=>Ffe,maxFileSize:()=>yme,maxProgramSizeForNonTsFiles:()=>hme,normalizedPathToPath:()=>Cfe,nowString:()=>zK,nullCancellationToken:()=>kge,nullTypingsInstaller:()=>$me,protocol:()=>jfe,scriptInfoIsContainedByBackgroundProject:()=>Xfe,scriptInfoIsContainedByDeferredClosedProject:()=>Qfe,stringifyIndented:()=>VK,toEvent:()=>Pge,toNormalizedPath:()=>Tfe,tryConvertScriptKindName:()=>Jme,typingsInstaller:()=>ufe,updateProjectIfDirty:()=>sge}),"undefined"!=typeof console&&(un.loggingHost={log(e,t){switch(e){case 1:return console.error(t);case 2:return console.warn(t);case 3:case 4:return console.log(t)}}})})({get exports(){return i},set exports(t){i=t,e.exports&&(e.exports=t)}})},992:e=>{function t(e){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}t.keys=()=>[],t.resolve=t,t.id=992,e.exports=t},728:()=>{},714:()=>{},178:()=>{},965:()=>{},98:()=>{},31:()=>{},791:()=>{}},t={};function n(r){var i=t[r];if(void 0!==i)return i.exports;var o=t[r]={exports:{}};return e[r].call(o.exports,o,o.exports,n),o.exports}n.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t);var r=n(421);guts=r})(); \ No newline at end of file diff --git a/typescript-engine/src/index.ts b/typescript-engine/src/index.ts index f7b4f45..fc2f081 100644 --- a/typescript-engine/src/index.ts +++ b/typescript-engine/src/index.ts @@ -11,7 +11,7 @@ // https://astexplorer.net/ import * as ts from "typescript"; -import {Identifier, Modifier, ModifierSyntaxKind, StringLiteral} from "typescript"; +import {Identifier, IntersectionTypeNode, Modifier, ModifierSyntaxKind, StringLiteral, TypeNode} from "typescript"; type modifierKeys = FilterKeys; export function modifier(name: modifierKeys | ts.Modifier): Modifier { @@ -285,6 +285,10 @@ export function typeLiteralNode( return ts.factory.createTypeLiteralNode(members); } +export function intersectionType(types:TypeNode[]): ts.IntersectionTypeNode { + return ts.factory.createIntersectionTypeNode(types); +} + module.exports = { modifier: modifier, identifier: identifier, @@ -312,6 +316,7 @@ module.exports = { arrayLiteral: arrayLiteral, typeOperatorNode: typeOperatorNode, typeLiteralNode: typeLiteralNode, + intersectionType: intersectionType, enumDeclaration: enumDeclaration, enumMember: enumMember, };